|
|
import{e as o8,c0 as Wy,c1 as l8,c2 as u8,c3 as c8,k as f8,l as h8,w as d8,g as Gy,c4 as Yy,c5 as Ky,aF as uc,_ as p8,u as m8,c6 as ac,c7 as sc,F as su,b as v8,c as g8}from"./index.1762932289438.js";import{E as b8}from"./overlay.1762932289438.js";import{k as Xy,c as y8,l as us,o as pa,q as Ys,D as Ld,m as Bd,G as zd,u as Rn,E as oc,I as w8,L as Vy,r as lc,t as _8,H as Ym,M as k8,K as ou,J as jd,F as $y,V as x8,e as S8}from"./vue.1762932289438.js";const lu={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},qy={[lu.primary]:Wy,[lu.success]:c8,[lu.warning]:u8,[lu.error]:l8,[lu.info]:Wy},T8=o8({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}}),E8=Xy({name:"ElResult"}),C8=Xy({...E8,props:T8,setup(kl){const cc=kl,Sn=h8("result"),Si=y8(()=>{const Mn=cc.icon,Za=Mn&&lu[Mn]?lu[Mn]:"icon-info",Wa=qy[Za]||qy["icon-info"];return{class:Za,component:Wa}});return(Mn,Za)=>(pa(),us("div",{class:oc(Rn(Sn).b())},[Ys("div",{class:oc(Rn(Sn).e("icon"))},[Bd(Mn.$slots,"icon",{},()=>[Rn(Si).component?(pa(),zd(w8(Rn(Si).component),{key:0,class:oc(Rn(Si).class)},null,8,["class"])):Ld("v-if",!0)])],2),Mn.title||Mn.$slots.title?(pa(),us("div",{key:0,class:oc(Rn(Sn).e("title"))},[Bd(Mn.$slots,"title",{},()=>[Ys("p",null,Vy(Mn.title),1)])],2)):Ld("v-if",!0),Mn.subTitle||Mn.$slots["sub-title"]?(pa(),us("div",{key:1,class:oc(Rn(Sn).e("subtitle"))},[Bd(Mn.$slots,"sub-title",{},()=>[Ys("p",null,Vy(Mn.subTitle),1)])],2)):Ld("v-if",!0),Mn.$slots.extra?(pa(),us("div",{key:2,class:oc(Rn(Sn).e("extra"))},[Bd(Mn.$slots,"extra")],2)):Ld("v-if",!0)],2))}});var A8=f8(C8,[["__file","result.vue"]]);const M8=d8(A8);var Zy={exports:{}};(function(kl,cc){(function(Sn,Si){kl.exports=Si(Yy(),Ky)})(uc,function(Sn,Si){var Mn=Object.defineProperty,Za=Object.defineProperties,Wa=Object.getOwnPropertyDescriptors,Ns=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,cs=Object.prototype.propertyIsEnumerable,fs=(ht,B,D)=>B in ht?Mn(ht,B,{enumerable:!0,configurable:!0,writable:!0,value:D}):ht[B]=D,Tr=(ht,B)=>{for(var D in B||(B={}))mo.call(B,D)&&fs(ht,D,B[D]);if(Ns)for(var D of Ns(B))cs.call(B,D)&&fs(ht,D,B[D]);return ht},Vt=(ht,B)=>Za(ht,Wa(B)),Xi=(ht,B,D)=>new Promise((V,Z)=>{var et=At=>{try{yt(D.next(At))}catch(Ut){Z(Ut)}},wt=At=>{try{yt(D.throw(At))}catch(Ut){Z(Ut)}},yt=At=>At.done?V(At.value):Promise.resolve(At.value).then(et,wt);yt((D=D.apply(ht,B)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(ht,...B){setTimeout(()=>ht(B))});var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof uc<"u"?uc:typeof self<"u"?self:{};function uu(ht){return ht&&ht.__esModule&&Object.prototype.hasOwnProperty.call(ht,"default")?ht.default:ht}function vo(ht){throw new Error('Could not dynamically require "'+ht+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var go={exports:{}};/*! |
|
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files |
|
|
<http://stuartk.com/jszip> |
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> |
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. |
|
|
|
|
|
JSZip uses the library pako released under the MIT license : |
|
|
https://github.com/nodeca/pako/blob/main/LICENSE |
|
|
*/(function(ht,B){(function(D){ht.exports=D()})(function(){return function D(V,Z,et){function wt(Ut,te){if(!Z[Ut]){if(!V[Ut]){var ee=typeof vo=="function"&&vo;if(!te&&ee)return ee(Ut,!0);if(yt)return yt(Ut,!0);var ne=new Error("Cannot find module '"+Ut+"'");throw ne.code="MODULE_NOT_FOUND",ne}var Rt=Z[Ut]={exports:{}};V[Ut][0].call(Rt.exports,function(Kt){var Ot=V[Ut][1][Kt];return wt(Ot||Kt)},Rt,Rt.exports,D,V,Z,et)}return Z[Ut].exports}for(var yt=typeof vo=="function"&&vo,At=0;At<et.length;At++)wt(et[At]);return wt}({1:[function(D,V,Z){var et=D("./utils"),wt=D("./support"),yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Z.encode=function(At){for(var Ut,te,ee,ne,Rt,Kt,Ot,Wt=[],Lt=0,Yt=At.length,le=Yt,ve=et.getTypeOf(At)!=="string";Lt<At.length;)le=Yt-Lt,ee=ve?(Ut=At[Lt++],te=Lt<Yt?At[Lt++]:0,Lt<Yt?At[Lt++]:0):(Ut=At.charCodeAt(Lt++),te=Lt<Yt?At.charCodeAt(Lt++):0,Lt<Yt?At.charCodeAt(Lt++):0),ne=Ut>>2,Rt=(3&Ut)<<4|te>>4,Kt=1<le?(15&te)<<2|ee>>6:64,Ot=2<le?63&ee:64,Wt.push(yt.charAt(ne)+yt.charAt(Rt)+yt.charAt(Kt)+yt.charAt(Ot));return Wt.join("")},Z.decode=function(At){var Ut,te,ee,ne,Rt,Kt,Ot=0,Wt=0,Lt="data:";if(At.substr(0,Lt.length)===Lt)throw new Error("Invalid base64 input, it looks like a data url.");var Yt,le=3*(At=At.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(At.charAt(At.length-1)===yt.charAt(64)&&le--,At.charAt(At.length-2)===yt.charAt(64)&&le--,le%1!=0)throw new Error("Invalid base64 input, bad content length.");for(Yt=wt.uint8array?new Uint8Array(0|le):new Array(0|le);Ot<At.length;)Ut=yt.indexOf(At.charAt(Ot++))<<2|(ne=yt.indexOf(At.charAt(Ot++)))>>4,te=(15&ne)<<4|(Rt=yt.indexOf(At.charAt(Ot++)))>>2,ee=(3&Rt)<<6|(Kt=yt.indexOf(At.charAt(Ot++))),Yt[Wt++]=Ut,Rt!==64&&(Yt[Wt++]=te),Kt!==64&&(Yt[Wt++]=ee);return Yt}},{"./support":30,"./utils":32}],2:[function(D,V,Z){var et=D("./external"),wt=D("./stream/DataWorker"),yt=D("./stream/Crc32Probe"),At=D("./stream/DataLengthProbe");function Ut(te,ee,ne,Rt,Kt){this.compressedSize=te,this.uncompressedSize=ee,this.crc32=ne,this.compression=Rt,this.compressedContent=Kt}Ut.prototype={getContentWorker:function(){var te=new wt(et.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new At("data_length")),ee=this;return te.on("end",function(){if(this.streamInfo.data_length!==ee.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),te},getCompressedWorker:function(){return new wt(et.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Ut.createWorkerFrom=function(te,ee,ne){return te.pipe(new yt).pipe(new At("uncompressedSize")).pipe(ee.compressWorker(ne)).pipe(new At("compressedSize")).withStreamInfo("compression",ee)},V.exports=Ut},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(D,V,Z){var et=D("./stream/GenericWorker");Z.STORE={magic:"\0\0",compressWorker:function(){return new et("STORE compression")},uncompressWorker:function(){return new et("STORE decompression")}},Z.DEFLATE=D("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(D,V,Z){var et=D("./utils"),wt=function(){for(var yt,At=[],Ut=0;Ut<256;Ut++){yt=Ut;for(var te=0;te<8;te++)yt=1&yt?3988292384^yt>>>1:yt>>>1;At[Ut]=yt}return At}();V.exports=function(yt,At){return yt!==void 0&&yt.length?et.getTypeOf(yt)!=="string"?function(Ut,te,ee,ne){var Rt=wt,Kt=ne+ee;Ut^=-1;for(var Ot=ne;Ot<Kt;Ot++)Ut=Ut>>>8^Rt[255&(Ut^te[Ot])];return-1^Ut}(0|At,yt,yt.length,0):function(Ut,te,ee,ne){var Rt=wt,Kt=ne+ee;Ut^=-1;for(var Ot=ne;Ot<Kt;Ot++)Ut=Ut>>>8^Rt[255&(Ut^te.charCodeAt(Ot))];return-1^Ut}(0|At,yt,yt.length,0):0}},{"./utils":32}],5:[function(D,V,Z){Z.base64=!1,Z.binary=!1,Z.dir=!1,Z.createFolders=!0,Z.date=null,Z.compression=null,Z.compressionOptions=null,Z.comment=null,Z.unixPermissions=null,Z.dosPermissions=null},{}],6:[function(D,V,Z){var et=null;et=typeof Promise<"u"?Promise:D("lie"),V.exports={Promise:et}},{lie:37}],7:[function(D,V,Z){var et=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",wt=D("pako"),yt=D("./utils"),At=D("./stream/GenericWorker"),Ut=et?"uint8array":"array";function te(ee,ne){At.call(this,"FlateWorker/"+ee),this._pako=null,this._pakoAction=ee,this._pakoOptions=ne,this.meta={}}Z.magic="\b\0",yt.inherits(te,At),te.prototype.processChunk=function(ee){this.meta=ee.meta,this._pako===null&&this._createPako(),this._pako.push(yt.transformTo(Ut,ee.data),!1)},te.prototype.flush=function(){At.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},te.prototype.cleanUp=function(){At.prototype.cleanUp.call(this),this._pako=null},te.prototype._createPako=function(){this._pako=new wt[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var ee=this;this._pako.onData=function(ne){ee.push({data:ne,meta:ee.meta})}},Z.compressWorker=function(ee){return new te("Deflate",ee)},Z.uncompressWorker=function(){return new te("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(D,V,Z){function et(Rt,Kt){var Ot,Wt="";for(Ot=0;Ot<Kt;Ot++)Wt+=String.fromCharCode(255&Rt),Rt>>>=8;return Wt}function wt(Rt,Kt,Ot,Wt,Lt,Yt){var le,ve,pe=Rt.file,Ue=Rt.compression,Oe=Yt!==Ut.utf8encode,ar=yt.transformTo("string",Yt(pe.name)),Re=yt.transformTo("string",Ut.utf8encode(pe.name)),mr=pe.comment,Vr=yt.transformTo("string",Yt(mr)),ae=yt.transformTo("string",Ut.utf8encode(mr)),Ie=Re.length!==pe.name.length,_t=ae.length!==mr.length,He="",an="",rr="",dn=pe.dir,lr=pe.date,Jr={crc32:0,compressedSize:0,uncompressedSize:0};Kt&&!Ot||(Jr.crc32=Rt.crc32,Jr.compressedSize=Rt.compressedSize,Jr.uncompressedSize=Rt.uncompressedSize);var Ee=0;Kt&&(Ee|=8),Oe||!Ie&&!_t||(Ee|=2048);var xe=0,$r=0;dn&&(xe|=16),Lt==="UNIX"?($r=798,xe|=function(wr,ii){var Hi=wr;return wr||(Hi=ii?16893:33204),(65535&Hi)<<16}(pe.unixPermissions,dn)):($r=20,xe|=function(wr){return 63&(wr||0)}(pe.dosPermissions)),le=lr.getUTCHours(),le<<=6,le|=lr.getUTCMinutes(),le<<=5,le|=lr.getUTCSeconds()/2,ve=lr.getUTCFullYear()-1980,ve<<=4,ve|=lr.getUTCMonth()+1,ve<<=5,ve|=lr.getUTCDate(),Ie&&(an=et(1,1)+et(te(ar),4)+Re,He+="up"+et(an.length,2)+an),_t&&(rr=et(1,1)+et(te(Vr),4)+ae,He+="uc"+et(rr.length,2)+rr);var Mr="";return Mr+=` |
|
|
\0`,Mr+=et(Ee,2),Mr+=Ue.magic,Mr+=et(le,2),Mr+=et(ve,2),Mr+=et(Jr.crc32,4),Mr+=et(Jr.compressedSize,4),Mr+=et(Jr.uncompressedSize,4),Mr+=et(ar.length,2),Mr+=et(He.length,2),{fileRecord:ee.LOCAL_FILE_HEADER+Mr+ar+He,dirRecord:ee.CENTRAL_FILE_HEADER+et($r,2)+Mr+et(Vr.length,2)+"\0\0\0\0"+et(xe,4)+et(Wt,4)+ar+He+Vr}}var yt=D("../utils"),At=D("../stream/GenericWorker"),Ut=D("../utf8"),te=D("../crc32"),ee=D("../signature");function ne(Rt,Kt,Ot,Wt){At.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Kt,this.zipPlatform=Ot,this.encodeFileName=Wt,this.streamFiles=Rt,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}yt.inherits(ne,At),ne.prototype.push=function(Rt){var Kt=Rt.meta.percent||0,Ot=this.entriesCount,Wt=this._sources.length;this.accumulate?this.contentBuffer.push(Rt):(this.bytesWritten+=Rt.data.length,At.prototype.push.call(this,{data:Rt.data,meta:{currentFile:this.currentFile,percent:Ot?(Kt+100*(Ot-Wt-1))/Ot:100}}))},ne.prototype.openedSource=function(Rt){this.currentSourceOffset=this.bytesWritten,this.currentFile=Rt.file.name;var Kt=this.streamFiles&&!Rt.file.dir;if(Kt){var Ot=wt(Rt,Kt,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:Ot.fileRecord,meta:{percent:0}})}else this.accumulate=!0},ne.prototype.closedSource=function(Rt){this.accumulate=!1;var Kt=this.streamFiles&&!Rt.file.dir,Ot=wt(Rt,Kt,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(Ot.dirRecord),Kt)this.push({data:function(Wt){return ee.DATA_DESCRIPTOR+et(Wt.crc32,4)+et(Wt.compressedSize,4)+et(Wt.uncompressedSize,4)}(Rt),meta:{percent:100}});else for(this.push({data:Ot.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},ne.prototype.flush=function(){for(var Rt=this.bytesWritten,Kt=0;Kt<this.dirRecords.length;Kt++)this.push({data:this.dirRecords[Kt],meta:{percent:100}});var Ot=this.bytesWritten-Rt,Wt=function(Lt,Yt,le,ve,pe){var Ue=yt.transformTo("string",pe(ve));return ee.CENTRAL_DIRECTORY_END+"\0\0\0\0"+et(Lt,2)+et(Lt,2)+et(Yt,4)+et(le,4)+et(Ue.length,2)+Ue}(this.dirRecords.length,Ot,Rt,this.zipComment,this.encodeFileName);this.push({data:Wt,meta:{percent:100}})},ne.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},ne.prototype.registerPrevious=function(Rt){this._sources.push(Rt);var Kt=this;return Rt.on("data",function(Ot){Kt.processChunk(Ot)}),Rt.on("end",function(){Kt.closedSource(Kt.previous.streamInfo),Kt._sources.length?Kt.prepareNextSource():Kt.end()}),Rt.on("error",function(Ot){Kt.error(Ot)}),this},ne.prototype.resume=function(){return!!At.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},ne.prototype.error=function(Rt){var Kt=this._sources;if(!At.prototype.error.call(this,Rt))return!1;for(var Ot=0;Ot<Kt.length;Ot++)try{Kt[Ot].error(Rt)}catch{}return!0},ne.prototype.lock=function(){At.prototype.lock.call(this);for(var Rt=this._sources,Kt=0;Kt<Rt.length;Kt++)Rt[Kt].lock()},V.exports=ne},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(D,V,Z){var et=D("../compressions"),wt=D("./ZipFileWorker");Z.generateWorker=function(yt,At,Ut){var te=new wt(At.streamFiles,Ut,At.platform,At.encodeFileName),ee=0;try{yt.forEach(function(ne,Rt){ee++;var Kt=function(Yt,le){var ve=Yt||le,pe=et[ve];if(!pe)throw new Error(ve+" is not a valid compression method !");return pe}(Rt.options.compression,At.compression),Ot=Rt.options.compressionOptions||At.compressionOptions||{},Wt=Rt.dir,Lt=Rt.date;Rt._compressWorker(Kt,Ot).withStreamInfo("file",{name:ne,dir:Wt,date:Lt,comment:Rt.comment||"",unixPermissions:Rt.unixPermissions,dosPermissions:Rt.dosPermissions}).pipe(te)}),te.entriesCount=ee}catch(ne){te.error(ne)}return te}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(D,V,Z){function et(){if(!(this instanceof et))return new et;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var wt=new et;for(var yt in this)typeof this[yt]!="function"&&(wt[yt]=this[yt]);return wt}}(et.prototype=D("./object")).loadAsync=D("./load"),et.support=D("./support"),et.defaults=D("./defaults"),et.version="3.10.1",et.loadAsync=function(wt,yt){return new et().loadAsync(wt,yt)},et.external=D("./external"),V.exports=et},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(D,V,Z){var et=D("./utils"),wt=D("./external"),yt=D("./utf8"),At=D("./zipEntries"),Ut=D("./stream/Crc32Probe"),te=D("./nodejsUtils");function ee(ne){return new wt.Promise(function(Rt,Kt){var Ot=ne.decompressed.getContentWorker().pipe(new Ut);Ot.on("error",function(Wt){Kt(Wt)}).on("end",function(){Ot.streamInfo.crc32!==ne.decompressed.crc32?Kt(new Error("Corrupted zip : CRC32 mismatch")):Rt()}).resume()})}V.exports=function(ne,Rt){var Kt=this;return Rt=et.extend(Rt||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:yt.utf8decode}),te.isNode&&te.isStream(ne)?wt.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):et.prepareContent("the loaded zip file",ne,!0,Rt.optimizedBinaryString,Rt.base64).then(function(Ot){var Wt=new At(Rt);return Wt.load(Ot),Wt}).then(function(Ot){var Wt=[wt.Promise.resolve(Ot)],Lt=Ot.files;if(Rt.checkCRC32)for(var Yt=0;Yt<Lt.length;Yt++)Wt.push(ee(Lt[Yt]));return wt.Promise.all(Wt)}).then(function(Ot){for(var Wt=Ot.shift(),Lt=Wt.files,Yt=0;Yt<Lt.length;Yt++){var le=Lt[Yt],ve=le.fileNameStr,pe=et.resolve(le.fileNameStr);Kt.file(pe,le.decompressed,{binary:!0,optimizedBinaryString:!0,date:le.date,dir:le.dir,comment:le.fileCommentStr.length?le.fileCommentStr:null,unixPermissions:le.unixPermissions,dosPermissions:le.dosPermissions,createFolders:Rt.createFolders}),le.dir||(Kt.file(pe).unsafeOriginalName=ve)}return Wt.zipComment.length&&(Kt.comment=Wt.zipComment),Kt})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(D,V,Z){var et=D("../utils"),wt=D("../stream/GenericWorker");function yt(At,Ut){wt.call(this,"Nodejs stream input adapter for "+At),this._upstreamEnded=!1,this._bindStream(Ut)}et.inherits(yt,wt),yt.prototype._bindStream=function(At){var Ut=this;(this._stream=At).pause(),At.on("data",function(te){Ut.push({data:te,meta:{percent:0}})}).on("error",function(te){Ut.isPaused?this.generatedError=te:Ut.error(te)}).on("end",function(){Ut.isPaused?Ut._upstreamEnded=!0:Ut.end()})},yt.prototype.pause=function(){return!!wt.prototype.pause.call(this)&&(this._stream.pause(),!0)},yt.prototype.resume=function(){return!!wt.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},V.exports=yt},{"../stream/GenericWorker":28,"../utils":32}],13:[function(D,V,Z){var et=D("readable-stream").Readable;function wt(yt,At,Ut){et.call(this,At),this._helper=yt;var te=this;yt.on("data",function(ee,ne){te.push(ee)||te._helper.pause(),Ut&&Ut(ne)}).on("error",function(ee){te.emit("error",ee)}).on("end",function(){te.push(null)})}D("../utils").inherits(wt,et),wt.prototype._read=function(){this._helper.resume()},V.exports=wt},{"../utils":32,"readable-stream":16}],14:[function(D,V,Z){V.exports={isNode:typeof Buffer<"u",newBufferFrom:function(et,wt){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(et,wt);if(typeof et=="number")throw new Error('The "data" argument must not be a number');return new Buffer(et,wt)},allocBuffer:function(et){if(Buffer.alloc)return Buffer.alloc(et);var wt=new Buffer(et);return wt.fill(0),wt},isBuffer:function(et){return Buffer.isBuffer(et)},isStream:function(et){return et&&typeof et.on=="function"&&typeof et.pause=="function"&&typeof et.resume=="function"}}},{}],15:[function(D,V,Z){function et(pe,Ue,Oe){var ar,Re=yt.getTypeOf(Ue),mr=yt.extend(Oe||{},te);mr.date=mr.date||new Date,mr.compression!==null&&(mr.compression=mr.compression.toUpperCase()),typeof mr.unixPermissions=="string"&&(mr.unixPermissions=parseInt(mr.unixPermissions,8)),mr.unixPermissions&&16384&mr.unixPermissions&&(mr.dir=!0),mr.dosPermissions&&16&mr.dosPermissions&&(mr.dir=!0),mr.dir&&(pe=Lt(pe)),mr.createFolders&&(ar=Wt(pe))&&Yt.call(this,ar,!0);var Vr=Re==="string"&&mr.binary===!1&&mr.base64===!1;Oe&&Oe.binary!==void 0||(mr.binary=!Vr),(Ue instanceof ee&&Ue.uncompressedSize===0||mr.dir||!Ue||Ue.length===0)&&(mr.base64=!1,mr.binary=!0,Ue="",mr.compression="STORE",Re="string");var ae=null;ae=Ue instanceof ee||Ue instanceof At?Ue:Kt.isNode&&Kt.isStream(Ue)?new Ot(pe,Ue):yt.prepareContent(pe,Ue,mr.binary,mr.optimizedBinaryString,mr.base64);var Ie=new ne(pe,ae,mr);this.files[pe]=Ie}var wt=D("./utf8"),yt=D("./utils"),At=D("./stream/GenericWorker"),Ut=D("./stream/StreamHelper"),te=D("./defaults"),ee=D("./compressedObject"),ne=D("./zipObject"),Rt=D("./generate"),Kt=D("./nodejsUtils"),Ot=D("./nodejs/NodejsStreamInputAdapter"),Wt=function(pe){pe.slice(-1)==="/"&&(pe=pe.substring(0,pe.length-1));var Ue=pe.lastIndexOf("/");return 0<Ue?pe.substring(0,Ue):""},Lt=function(pe){return pe.slice(-1)!=="/"&&(pe+="/"),pe},Yt=function(pe,Ue){return Ue=Ue!==void 0?Ue:te.createFolders,pe=Lt(pe),this.files[pe]||et.call(this,pe,null,{dir:!0,createFolders:Ue}),this.files[pe]};function le(pe){return Object.prototype.toString.call(pe)==="[object RegExp]"}var ve={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(pe){var Ue,Oe,ar;for(Ue in this.files)ar=this.files[Ue],(Oe=Ue.slice(this.root.length,Ue.length))&&Ue.slice(0,this.root.length)===this.root&&pe(Oe,ar)},filter:function(pe){var Ue=[];return this.forEach(function(Oe,ar){pe(Oe,ar)&&Ue.push(ar)}),Ue},file:function(pe,Ue,Oe){if(arguments.length!==1)return pe=this.root+pe,et.call(this,pe,Ue,Oe),this;if(le(pe)){var ar=pe;return this.filter(function(mr,Vr){return!Vr.dir&&ar.test(mr)})}var Re=this.files[this.root+pe];return Re&&!Re.dir?Re:null},folder:function(pe){if(!pe)return this;if(le(pe))return this.filter(function(Re,mr){return mr.dir&&pe.test(Re)});var Ue=this.root+pe,Oe=Yt.call(this,Ue),ar=this.clone();return ar.root=Oe.name,ar},remove:function(pe){pe=this.root+pe;var Ue=this.files[pe];if(Ue||(pe.slice(-1)!=="/"&&(pe+="/"),Ue=this.files[pe]),Ue&&!Ue.dir)delete this.files[pe];else for(var Oe=this.filter(function(Re,mr){return mr.name.slice(0,pe.length)===pe}),ar=0;ar<Oe.length;ar++)delete this.files[Oe[ar].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(pe){var Ue,Oe={};try{if((Oe=yt.extend(pe||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:wt.utf8encode})).type=Oe.type.toLowerCase(),Oe.compression=Oe.compression.toUpperCase(),Oe.type==="binarystring"&&(Oe.type="string"),!Oe.type)throw new Error("No output type specified.");yt.checkSupport(Oe.type),Oe.platform!=="darwin"&&Oe.platform!=="freebsd"&&Oe.platform!=="linux"&&Oe.platform!=="sunos"||(Oe.platform="UNIX"),Oe.platform==="win32"&&(Oe.platform="DOS");var ar=Oe.comment||this.comment||"";Ue=Rt.generateWorker(this,Oe,ar)}catch(Re){(Ue=new At("error")).error(Re)}return new Ut(Ue,Oe.type||"string",Oe.mimeType)},generateAsync:function(pe,Ue){return this.generateInternalStream(pe).accumulate(Ue)},generateNodeStream:function(pe,Ue){return(pe=pe||{}).type||(pe.type="nodebuffer"),this.generateInternalStream(pe).toNodejsStream(Ue)}};V.exports=ve},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(D,V,Z){V.exports=D("stream")},{stream:void 0}],17:[function(D,V,Z){var et=D("./DataReader");function wt(yt){et.call(this,yt);for(var At=0;At<this.data.length;At++)yt[At]=255&yt[At]}D("../utils").inherits(wt,et),wt.prototype.byteAt=function(yt){return this.data[this.zero+yt]},wt.prototype.lastIndexOfSignature=function(yt){for(var At=yt.charCodeAt(0),Ut=yt.charCodeAt(1),te=yt.charCodeAt(2),ee=yt.charCodeAt(3),ne=this.length-4;0<=ne;--ne)if(this.data[ne]===At&&this.data[ne+1]===Ut&&this.data[ne+2]===te&&this.data[ne+3]===ee)return ne-this.zero;return-1},wt.prototype.readAndCheckSignature=function(yt){var At=yt.charCodeAt(0),Ut=yt.charCodeAt(1),te=yt.charCodeAt(2),ee=yt.charCodeAt(3),ne=this.readData(4);return At===ne[0]&&Ut===ne[1]&&te===ne[2]&&ee===ne[3]},wt.prototype.readData=function(yt){if(this.checkOffset(yt),yt===0)return[];var At=this.data.slice(this.zero+this.index,this.zero+this.index+yt);return this.index+=yt,At},V.exports=wt},{"../utils":32,"./DataReader":18}],18:[function(D,V,Z){var et=D("../utils");function wt(yt){this.data=yt,this.length=yt.length,this.index=0,this.zero=0}wt.prototype={checkOffset:function(yt){this.checkIndex(this.index+yt)},checkIndex:function(yt){if(this.length<this.zero+yt||yt<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+yt+"). Corrupted zip ?")},setIndex:function(yt){this.checkIndex(yt),this.index=yt},skip:function(yt){this.setIndex(this.index+yt)},byteAt:function(){},readInt:function(yt){var At,Ut=0;for(this.checkOffset(yt),At=this.index+yt-1;At>=this.index;At--)Ut=(Ut<<8)+this.byteAt(At);return this.index+=yt,Ut},readString:function(yt){return et.transformTo("string",this.readData(yt))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var yt=this.readInt(4);return new Date(Date.UTC(1980+(yt>>25&127),(yt>>21&15)-1,yt>>16&31,yt>>11&31,yt>>5&63,(31&yt)<<1))}},V.exports=wt},{"../utils":32}],19:[function(D,V,Z){var et=D("./Uint8ArrayReader");function wt(yt){et.call(this,yt)}D("../utils").inherits(wt,et),wt.prototype.readData=function(yt){this.checkOffset(yt);var At=this.data.slice(this.zero+this.index,this.zero+this.index+yt);return this.index+=yt,At},V.exports=wt},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(D,V,Z){var et=D("./DataReader");function wt(yt){et.call(this,yt)}D("../utils").inherits(wt,et),wt.prototype.byteAt=function(yt){return this.data.charCodeAt(this.zero+yt)},wt.prototype.lastIndexOfSignature=function(yt){return this.data.lastIndexOf(yt)-this.zero},wt.prototype.readAndCheckSignature=function(yt){return yt===this.readData(4)},wt.prototype.readData=function(yt){this.checkOffset(yt);var At=this.data.slice(this.zero+this.index,this.zero+this.index+yt);return this.index+=yt,At},V.exports=wt},{"../utils":32,"./DataReader":18}],21:[function(D,V,Z){var et=D("./ArrayReader");function wt(yt){et.call(this,yt)}D("../utils").inherits(wt,et),wt.prototype.readData=function(yt){if(this.checkOffset(yt),yt===0)return new Uint8Array(0);var At=this.data.subarray(this.zero+this.index,this.zero+this.index+yt);return this.index+=yt,At},V.exports=wt},{"../utils":32,"./ArrayReader":17}],22:[function(D,V,Z){var et=D("../utils"),wt=D("../support"),yt=D("./ArrayReader"),At=D("./StringReader"),Ut=D("./NodeBufferReader"),te=D("./Uint8ArrayReader");V.exports=function(ee){var ne=et.getTypeOf(ee);return et.checkSupport(ne),ne!=="string"||wt.uint8array?ne==="nodebuffer"?new Ut(ee):wt.uint8array?new te(et.transformTo("uint8array",ee)):new yt(et.transformTo("array",ee)):new At(ee)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(D,V,Z){Z.LOCAL_FILE_HEADER="PK",Z.CENTRAL_FILE_HEADER="PK",Z.CENTRAL_DIRECTORY_END="PK",Z.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",Z.ZIP64_CENTRAL_DIRECTORY_END="PK",Z.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(D,V,Z){var et=D("./GenericWorker"),wt=D("../utils");function yt(At){et.call(this,"ConvertWorker to "+At),this.destType=At}wt.inherits(yt,et),yt.prototype.processChunk=function(At){this.push({data:wt.transformTo(this.destType,At.data),meta:At.meta})},V.exports=yt},{"../utils":32,"./GenericWorker":28}],25:[function(D,V,Z){var et=D("./GenericWorker"),wt=D("../crc32");function yt(){et.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}D("../utils").inherits(yt,et),yt.prototype.processChunk=function(At){this.streamInfo.crc32=wt(At.data,this.streamInfo.crc32||0),this.push(At)},V.exports=yt},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(D,V,Z){var et=D("../utils"),wt=D("./GenericWorker");function yt(At){wt.call(this,"DataLengthProbe for "+At),this.propName=At,this.withStreamInfo(At,0)}et.inherits(yt,wt),yt.prototype.processChunk=function(At){if(At){var Ut=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=Ut+At.data.length}wt.prototype.processChunk.call(this,At)},V.exports=yt},{"../utils":32,"./GenericWorker":28}],27:[function(D,V,Z){var et=D("../utils"),wt=D("./GenericWorker");function yt(At){wt.call(this,"DataWorker");var Ut=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,At.then(function(te){Ut.dataIsReady=!0,Ut.data=te,Ut.max=te&&te.length||0,Ut.type=et.getTypeOf(te),Ut.isPaused||Ut._tickAndRepeat()},function(te){Ut.error(te)})}et.inherits(yt,wt),yt.prototype.cleanUp=function(){wt.prototype.cleanUp.call(this),this.data=null},yt.prototype.resume=function(){return!!wt.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,et.delay(this._tickAndRepeat,[],this)),!0)},yt.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(et.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},yt.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var At=null,Ut=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":At=this.data.substring(this.index,Ut);break;case"uint8array":At=this.data.subarray(this.index,Ut);break;case"array":case"nodebuffer":At=this.data.slice(this.index,Ut)}return this.index=Ut,this.push({data:At,meta:{percent:this.max?this.index/this.max*100:0}})},V.exports=yt},{"../utils":32,"./GenericWorker":28}],28:[function(D,V,Z){function et(wt){this.name=wt||"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}et.prototype={push:function(wt){this.emit("data",wt)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(wt){this.emit("error",wt)}return!0},error:function(wt){return!this.isFinished&&(this.isPaused?this.generatedError=wt:(this.isFinished=!0,this.emit("error",wt),this.previous&&this.previous.error(wt),this.cleanUp()),!0)},on:function(wt,yt){return this._listeners[wt].push(yt),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(wt,yt){if(this._listeners[wt])for(var At=0;At<this._listeners[wt].length;At++)this._listeners[wt][At].call(this,yt)},pipe:function(wt){return wt.registerPrevious(this)},registerPrevious:function(wt){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=wt.streamInfo,this.mergeStreamInfo(),this.previous=wt;var yt=this;return wt.on("data",function(At){yt.processChunk(At)}),wt.on("end",function(){yt.end()}),wt.on("error",function(At){yt.error(At)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var wt=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),wt=!0),this.previous&&this.previous.resume(),!wt},flush:function(){},processChunk:function(wt){this.push(wt)},withStreamInfo:function(wt,yt){return this.extraStreamInfo[wt]=yt,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var wt in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,wt)&&(this.streamInfo[wt]=this.extraStreamInfo[wt])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var wt="Worker "+this.name;return this.previous?this.previous+" -> "+wt:wt}},V.exports=et},{}],29:[function(D,V,Z){var et=D("../utils"),wt=D("./ConvertWorker"),yt=D("./GenericWorker"),At=D("../base64"),Ut=D("../support"),te=D("../external"),ee=null;if(Ut.nodestream)try{ee=D("../nodejs/NodejsStreamOutputAdapter")}catch{}function ne(Kt,Ot){return new te.Promise(function(Wt,Lt){var Yt=[],le=Kt._internalType,ve=Kt._outputType,pe=Kt._mimeType;Kt.on("data",function(Ue,Oe){Yt.push(Ue),Ot&&Ot(Oe)}).on("error",function(Ue){Yt=[],Lt(Ue)}).on("end",function(){try{var Ue=function(Oe,ar,Re){switch(Oe){case"blob":return et.newBlob(et.transformTo("arraybuffer",ar),Re);case"base64":return At.encode(ar);default:return et.transformTo(Oe,ar)}}(ve,function(Oe,ar){var Re,mr=0,Vr=null,ae=0;for(Re=0;Re<ar.length;Re++)ae+=ar[Re].length;switch(Oe){case"string":return ar.join("");case"array":return Array.prototype.concat.apply([],ar);case"uint8array":for(Vr=new Uint8Array(ae),Re=0;Re<ar.length;Re++)Vr.set(ar[Re],mr),mr+=ar[Re].length;return Vr;case"nodebuffer":return Buffer.concat(ar);default:throw new Error("concat : unsupported type '"+Oe+"'")}}(le,Yt),pe);Wt(Ue)}catch(Oe){Lt(Oe)}Yt=[]}).resume()})}function Rt(Kt,Ot,Wt){var Lt=Ot;switch(Ot){case"blob":case"arraybuffer":Lt="uint8array";break;case"base64":Lt="string"}try{this._internalType=Lt,this._outputType=Ot,this._mimeType=Wt,et.checkSupport(Lt),this._worker=Kt.pipe(new wt(Lt)),Kt.lock()}catch(Yt){this._worker=new yt("error"),this._worker.error(Yt)}}Rt.prototype={accumulate:function(Kt){return ne(this,Kt)},on:function(Kt,Ot){var Wt=this;return Kt==="data"?this._worker.on(Kt,function(Lt){Ot.call(Wt,Lt.data,Lt.meta)}):this._worker.on(Kt,function(){et.delay(Ot,arguments,Wt)}),this},resume:function(){return et.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Kt){if(et.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new ee(this,{objectMode:this._outputType!=="nodebuffer"},Kt)}},V.exports=Rt},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(D,V,Z){if(Z.base64=!0,Z.array=!0,Z.string=!0,Z.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Z.nodebuffer=typeof Buffer<"u",Z.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")Z.blob=!1;else{var et=new ArrayBuffer(0);try{Z.blob=new Blob([et],{type:"application/zip"}).size===0}catch{try{var wt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);wt.append(et),Z.blob=wt.getBlob("application/zip").size===0}catch{Z.blob=!1}}}try{Z.nodestream=!!D("readable-stream").Readable}catch{Z.nodestream=!1}},{"readable-stream":16}],31:[function(D,V,Z){for(var et=D("./utils"),wt=D("./support"),yt=D("./nodejsUtils"),At=D("./stream/GenericWorker"),Ut=new Array(256),te=0;te<256;te++)Ut[te]=252<=te?6:248<=te?5:240<=te?4:224<=te?3:192<=te?2:1;Ut[254]=Ut[254]=1;function ee(){At.call(this,"utf-8 decode"),this.leftOver=null}function ne(){At.call(this,"utf-8 encode")}Z.utf8encode=function(Rt){return wt.nodebuffer?yt.newBufferFrom(Rt,"utf-8"):function(Kt){var Ot,Wt,Lt,Yt,le,ve=Kt.length,pe=0;for(Yt=0;Yt<ve;Yt++)(64512&(Wt=Kt.charCodeAt(Yt)))==55296&&Yt+1<ve&&(64512&(Lt=Kt.charCodeAt(Yt+1)))==56320&&(Wt=65536+(Wt-55296<<10)+(Lt-56320),Yt++),pe+=Wt<128?1:Wt<2048?2:Wt<65536?3:4;for(Ot=wt.uint8array?new Uint8Array(pe):new Array(pe),Yt=le=0;le<pe;Yt++)(64512&(Wt=Kt.charCodeAt(Yt)))==55296&&Yt+1<ve&&(64512&(Lt=Kt.charCodeAt(Yt+1)))==56320&&(Wt=65536+(Wt-55296<<10)+(Lt-56320),Yt++),Wt<128?Ot[le++]=Wt:(Wt<2048?Ot[le++]=192|Wt>>>6:(Wt<65536?Ot[le++]=224|Wt>>>12:(Ot[le++]=240|Wt>>>18,Ot[le++]=128|Wt>>>12&63),Ot[le++]=128|Wt>>>6&63),Ot[le++]=128|63&Wt);return Ot}(Rt)},Z.utf8decode=function(Rt){return wt.nodebuffer?et.transformTo("nodebuffer",Rt).toString("utf-8"):function(Kt){var Ot,Wt,Lt,Yt,le=Kt.length,ve=new Array(2*le);for(Ot=Wt=0;Ot<le;)if((Lt=Kt[Ot++])<128)ve[Wt++]=Lt;else if(4<(Yt=Ut[Lt]))ve[Wt++]=65533,Ot+=Yt-1;else{for(Lt&=Yt===2?31:Yt===3?15:7;1<Yt&&Ot<le;)Lt=Lt<<6|63&Kt[Ot++],Yt--;1<Yt?ve[Wt++]=65533:Lt<65536?ve[Wt++]=Lt:(Lt-=65536,ve[Wt++]=55296|Lt>>10&1023,ve[Wt++]=56320|1023&Lt)}return ve.length!==Wt&&(ve.subarray?ve=ve.subarray(0,Wt):ve.length=Wt),et.applyFromCharCode(ve)}(Rt=et.transformTo(wt.uint8array?"uint8array":"array",Rt))},et.inherits(ee,At),ee.prototype.processChunk=function(Rt){var Kt=et.transformTo(wt.uint8array?"uint8array":"array",Rt.data);if(this.leftOver&&this.leftOver.length){if(wt.uint8array){var Ot=Kt;(Kt=new Uint8Array(Ot.length+this.leftOver.length)).set(this.leftOver,0),Kt.set(Ot,this.leftOver.length)}else Kt=this.leftOver.concat(Kt);this.leftOver=null}var Wt=function(Yt,le){var ve;for((le=le||Yt.length)>Yt.length&&(le=Yt.length),ve=le-1;0<=ve&&(192&Yt[ve])==128;)ve--;return ve<0||ve===0?le:ve+Ut[Yt[ve]]>le?ve:le}(Kt),Lt=Kt;Wt!==Kt.length&&(wt.uint8array?(Lt=Kt.subarray(0,Wt),this.leftOver=Kt.subarray(Wt,Kt.length)):(Lt=Kt.slice(0,Wt),this.leftOver=Kt.slice(Wt,Kt.length))),this.push({data:Z.utf8decode(Lt),meta:Rt.meta})},ee.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Z.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Z.Utf8DecodeWorker=ee,et.inherits(ne,At),ne.prototype.processChunk=function(Rt){this.push({data:Z.utf8encode(Rt.data),meta:Rt.meta})},Z.Utf8EncodeWorker=ne},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(D,V,Z){var et=D("./support"),wt=D("./base64"),yt=D("./nodejsUtils"),At=D("./external");function Ut(Ot){return Ot}function te(Ot,Wt){for(var Lt=0;Lt<Ot.length;++Lt)Wt[Lt]=255&Ot.charCodeAt(Lt);return Wt}D("setimmediate"),Z.newBlob=function(Ot,Wt){Z.checkSupport("blob");try{return new Blob([Ot],{type:Wt})}catch{try{var Lt=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Lt.append(Ot),Lt.getBlob(Wt)}catch{throw new Error("Bug : can't construct the Blob.")}}};var ee={stringifyByChunk:function(Ot,Wt,Lt){var Yt=[],le=0,ve=Ot.length;if(ve<=Lt)return String.fromCharCode.apply(null,Ot);for(;le<ve;)Wt==="array"||Wt==="nodebuffer"?Yt.push(String.fromCharCode.apply(null,Ot.slice(le,Math.min(le+Lt,ve)))):Yt.push(String.fromCharCode.apply(null,Ot.subarray(le,Math.min(le+Lt,ve)))),le+=Lt;return Yt.join("")},stringifyByChar:function(Ot){for(var Wt="",Lt=0;Lt<Ot.length;Lt++)Wt+=String.fromCharCode(Ot[Lt]);return Wt},applyCanBeUsed:{uint8array:function(){try{return et.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return et.nodebuffer&&String.fromCharCode.apply(null,yt.allocBuffer(1)).length===1}catch{return!1}}()}};function ne(Ot){var Wt=65536,Lt=Z.getTypeOf(Ot),Yt=!0;if(Lt==="uint8array"?Yt=ee.applyCanBeUsed.uint8array:Lt==="nodebuffer"&&(Yt=ee.applyCanBeUsed.nodebuffer),Yt)for(;1<Wt;)try{return ee.stringifyByChunk(Ot,Lt,Wt)}catch{Wt=Math.floor(Wt/2)}return ee.stringifyByChar(Ot)}function Rt(Ot,Wt){for(var Lt=0;Lt<Ot.length;Lt++)Wt[Lt]=Ot[Lt];return Wt}Z.applyFromCharCode=ne;var Kt={};Kt.string={string:Ut,array:function(Ot){return te(Ot,new Array(Ot.length))},arraybuffer:function(Ot){return Kt.string.uint8array(Ot).buffer},uint8array:function(Ot){return te(Ot,new Uint8Array(Ot.length))},nodebuffer:function(Ot){return te(Ot,yt.allocBuffer(Ot.length))}},Kt.array={string:ne,array:Ut,arraybuffer:function(Ot){return new Uint8Array(Ot).buffer},uint8array:function(Ot){return new Uint8Array(Ot)},nodebuffer:function(Ot){return yt.newBufferFrom(Ot)}},Kt.arraybuffer={string:function(Ot){return ne(new Uint8Array(Ot))},array:function(Ot){return Rt(new Uint8Array(Ot),new Array(Ot.byteLength))},arraybuffer:Ut,uint8array:function(Ot){return new Uint8Array(Ot)},nodebuffer:function(Ot){return yt.newBufferFrom(new Uint8Array(Ot))}},Kt.uint8array={string:ne,array:function(Ot){return Rt(Ot,new Array(Ot.length))},arraybuffer:function(Ot){return Ot.buffer},uint8array:Ut,nodebuffer:function(Ot){return yt.newBufferFrom(Ot)}},Kt.nodebuffer={string:ne,array:function(Ot){return Rt(Ot,new Array(Ot.length))},arraybuffer:function(Ot){return Kt.nodebuffer.uint8array(Ot).buffer},uint8array:function(Ot){return Rt(Ot,new Uint8Array(Ot.length))},nodebuffer:Ut},Z.transformTo=function(Ot,Wt){if(Wt=Wt||"",!Ot)return Wt;Z.checkSupport(Ot);var Lt=Z.getTypeOf(Wt);return Kt[Lt][Ot](Wt)},Z.resolve=function(Ot){for(var Wt=Ot.split("/"),Lt=[],Yt=0;Yt<Wt.length;Yt++){var le=Wt[Yt];le==="."||le===""&&Yt!==0&&Yt!==Wt.length-1||(le===".."?Lt.pop():Lt.push(le))}return Lt.join("/")},Z.getTypeOf=function(Ot){return typeof Ot=="string"?"string":Object.prototype.toString.call(Ot)==="[object Array]"?"array":et.nodebuffer&&yt.isBuffer(Ot)?"nodebuffer":et.uint8array&&Ot instanceof Uint8Array?"uint8array":et.arraybuffer&&Ot instanceof ArrayBuffer?"arraybuffer":void 0},Z.checkSupport=function(Ot){if(!et[Ot.toLowerCase()])throw new Error(Ot+" is not supported by this platform")},Z.MAX_VALUE_16BITS=65535,Z.MAX_VALUE_32BITS=-1,Z.pretty=function(Ot){var Wt,Lt,Yt="";for(Lt=0;Lt<(Ot||"").length;Lt++)Yt+="\\x"+((Wt=Ot.charCodeAt(Lt))<16?"0":"")+Wt.toString(16).toUpperCase();return Yt},Z.delay=function(Ot,Wt,Lt){setImmediate(function(){Ot.apply(Lt||null,Wt||[])})},Z.inherits=function(Ot,Wt){function Lt(){}Lt.prototype=Wt.prototype,Ot.prototype=new Lt},Z.extend=function(){var Ot,Wt,Lt={};for(Ot=0;Ot<arguments.length;Ot++)for(Wt in arguments[Ot])Object.prototype.hasOwnProperty.call(arguments[Ot],Wt)&&Lt[Wt]===void 0&&(Lt[Wt]=arguments[Ot][Wt]);return Lt},Z.prepareContent=function(Ot,Wt,Lt,Yt,le){return At.Promise.resolve(Wt).then(function(ve){return et.blob&&(ve instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(ve))!==-1)&&typeof FileReader<"u"?new At.Promise(function(pe,Ue){var Oe=new FileReader;Oe.onload=function(ar){pe(ar.target.result)},Oe.onerror=function(ar){Ue(ar.target.error)},Oe.readAsArrayBuffer(ve)}):ve}).then(function(ve){var pe=Z.getTypeOf(ve);return pe?(pe==="arraybuffer"?ve=Z.transformTo("uint8array",ve):pe==="string"&&(le?ve=wt.decode(ve):Lt&&Yt!==!0&&(ve=function(Ue){return te(Ue,et.uint8array?new Uint8Array(Ue.length):new Array(Ue.length))}(ve))),ve):At.Promise.reject(new Error("Can't read the data of '"+Ot+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(D,V,Z){var et=D("./reader/readerFor"),wt=D("./utils"),yt=D("./signature"),At=D("./zipEntry"),Ut=D("./support");function te(ee){this.files=[],this.loadOptions=ee}te.prototype={checkSignature:function(ee){if(!this.reader.readAndCheckSignature(ee)){this.reader.index-=4;var ne=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+wt.pretty(ne)+", expected "+wt.pretty(ee)+")")}},isSignature:function(ee,ne){var Rt=this.reader.index;this.reader.setIndex(ee);var Kt=this.reader.readString(4)===ne;return this.reader.setIndex(Rt),Kt},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var ee=this.reader.readData(this.zipCommentLength),ne=Ut.uint8array?"uint8array":"array",Rt=wt.transformTo(ne,ee);this.zipComment=this.loadOptions.decodeFileName(Rt)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var ee,ne,Rt,Kt=this.zip64EndOfCentralSize-44;0<Kt;)ee=this.reader.readInt(2),ne=this.reader.readInt(4),Rt=this.reader.readData(ne),this.zip64ExtensibleData[ee]={id:ee,length:ne,value:Rt}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var ee,ne;for(ee=0;ee<this.files.length;ee++)ne=this.files[ee],this.reader.setIndex(ne.localHeaderOffset),this.checkSignature(yt.LOCAL_FILE_HEADER),ne.readLocalPart(this.reader),ne.handleUTF8(),ne.processAttributes()},readCentralDir:function(){var ee;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(yt.CENTRAL_FILE_HEADER);)(ee=new At({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(ee);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var ee=this.reader.lastIndexOfSignature(yt.CENTRAL_DIRECTORY_END);if(ee<0)throw this.isSignature(0,yt.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(ee);var ne=ee;if(this.checkSignature(yt.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===wt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===wt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===wt.MAX_VALUE_16BITS||this.centralDirRecords===wt.MAX_VALUE_16BITS||this.centralDirSize===wt.MAX_VALUE_32BITS||this.centralDirOffset===wt.MAX_VALUE_32BITS){if(this.zip64=!0,(ee=this.reader.lastIndexOfSignature(yt.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(ee),this.checkSignature(yt.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,yt.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(yt.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(yt.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var Rt=this.centralDirOffset+this.centralDirSize;this.zip64&&(Rt+=20,Rt+=12+this.zip64EndOfCentralSize);var Kt=ne-Rt;if(0<Kt)this.isSignature(ne,yt.CENTRAL_FILE_HEADER)||(this.reader.zero=Kt);else if(Kt<0)throw new Error("Corrupted zip: missing "+Math.abs(Kt)+" bytes.")},prepareReader:function(ee){this.reader=et(ee)},load:function(ee){this.prepareReader(ee),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},V.exports=te},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(D,V,Z){var et=D("./reader/readerFor"),wt=D("./utils"),yt=D("./compressedObject"),At=D("./crc32"),Ut=D("./utf8"),te=D("./compressions"),ee=D("./support");function ne(Rt,Kt){this.options=Rt,this.loadOptions=Kt}ne.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(Rt){var Kt,Ot;if(Rt.skip(22),this.fileNameLength=Rt.readInt(2),Ot=Rt.readInt(2),this.fileName=Rt.readData(this.fileNameLength),Rt.skip(Ot),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((Kt=function(Wt){for(var Lt in te)if(Object.prototype.hasOwnProperty.call(te,Lt)&&te[Lt].magic===Wt)return te[Lt];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+wt.pretty(this.compressionMethod)+" unknown (inner file : "+wt.transformTo("string",this.fileName)+")");this.decompressed=new yt(this.compressedSize,this.uncompressedSize,this.crc32,Kt,Rt.readData(this.compressedSize))},readCentralPart:function(Rt){this.versionMadeBy=Rt.readInt(2),Rt.skip(2),this.bitFlag=Rt.readInt(2),this.compressionMethod=Rt.readString(2),this.date=Rt.readDate(),this.crc32=Rt.readInt(4),this.compressedSize=Rt.readInt(4),this.uncompressedSize=Rt.readInt(4);var Kt=Rt.readInt(2);if(this.extraFieldsLength=Rt.readInt(2),this.fileCommentLength=Rt.readInt(2),this.diskNumberStart=Rt.readInt(2),this.internalFileAttributes=Rt.readInt(2),this.externalFileAttributes=Rt.readInt(4),this.localHeaderOffset=Rt.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Rt.skip(Kt),this.readExtraFields(Rt),this.parseZIP64ExtraField(Rt),this.fileComment=Rt.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Rt=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),Rt==0&&(this.dosPermissions=63&this.externalFileAttributes),Rt==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var Rt=et(this.extraFields[1].value);this.uncompressedSize===wt.MAX_VALUE_32BITS&&(this.uncompressedSize=Rt.readInt(8)),this.compressedSize===wt.MAX_VALUE_32BITS&&(this.compressedSize=Rt.readInt(8)),this.localHeaderOffset===wt.MAX_VALUE_32BITS&&(this.localHeaderOffset=Rt.readInt(8)),this.diskNumberStart===wt.MAX_VALUE_32BITS&&(this.diskNumberStart=Rt.readInt(4))}},readExtraFields:function(Rt){var Kt,Ot,Wt,Lt=Rt.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});Rt.index+4<Lt;)Kt=Rt.readInt(2),Ot=Rt.readInt(2),Wt=Rt.readData(Ot),this.extraFields[Kt]={id:Kt,length:Ot,value:Wt};Rt.setIndex(Lt)},handleUTF8:function(){var Rt=ee.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Ut.utf8decode(this.fileName),this.fileCommentStr=Ut.utf8decode(this.fileComment);else{var Kt=this.findExtraFieldUnicodePath();if(Kt!==null)this.fileNameStr=Kt;else{var Ot=wt.transformTo(Rt,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(Ot)}var Wt=this.findExtraFieldUnicodeComment();if(Wt!==null)this.fileCommentStr=Wt;else{var Lt=wt.transformTo(Rt,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Lt)}}},findExtraFieldUnicodePath:function(){var Rt=this.extraFields[28789];if(Rt){var Kt=et(Rt.value);return Kt.readInt(1)!==1||At(this.fileName)!==Kt.readInt(4)?null:Ut.utf8decode(Kt.readData(Rt.length-5))}return null},findExtraFieldUnicodeComment:function(){var Rt=this.extraFields[25461];if(Rt){var Kt=et(Rt.value);return Kt.readInt(1)!==1||At(this.fileComment)!==Kt.readInt(4)?null:Ut.utf8decode(Kt.readData(Rt.length-5))}return null}},V.exports=ne},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(D,V,Z){function et(Kt,Ot,Wt){this.name=Kt,this.dir=Wt.dir,this.date=Wt.date,this.comment=Wt.comment,this.unixPermissions=Wt.unixPermissions,this.dosPermissions=Wt.dosPermissions,this._data=Ot,this._dataBinary=Wt.binary,this.options={compression:Wt.compression,compressionOptions:Wt.compressionOptions}}var wt=D("./stream/StreamHelper"),yt=D("./stream/DataWorker"),At=D("./utf8"),Ut=D("./compressedObject"),te=D("./stream/GenericWorker");et.prototype={internalStream:function(Kt){var Ot=null,Wt="string";try{if(!Kt)throw new Error("No output type specified.");var Lt=(Wt=Kt.toLowerCase())==="string"||Wt==="text";Wt!=="binarystring"&&Wt!=="text"||(Wt="string"),Ot=this._decompressWorker();var Yt=!this._dataBinary;Yt&&!Lt&&(Ot=Ot.pipe(new At.Utf8EncodeWorker)),!Yt&&Lt&&(Ot=Ot.pipe(new At.Utf8DecodeWorker))}catch(le){(Ot=new te("error")).error(le)}return new wt(Ot,Wt,"")},async:function(Kt,Ot){return this.internalStream(Kt).accumulate(Ot)},nodeStream:function(Kt,Ot){return this.internalStream(Kt||"nodebuffer").toNodejsStream(Ot)},_compressWorker:function(Kt,Ot){if(this._data instanceof Ut&&this._data.compression.magic===Kt.magic)return this._data.getCompressedWorker();var Wt=this._decompressWorker();return this._dataBinary||(Wt=Wt.pipe(new At.Utf8EncodeWorker)),Ut.createWorkerFrom(Wt,Kt,Ot)},_decompressWorker:function(){return this._data instanceof Ut?this._data.getContentWorker():this._data instanceof te?this._data:new yt(this._data)}};for(var ee=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],ne=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},Rt=0;Rt<ee.length;Rt++)et.prototype[ee[Rt]]=ne;V.exports=et},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(D,V,Z){(function(et){var wt,yt,At=et.MutationObserver||et.WebKitMutationObserver;if(At){var Ut=0,te=new At(Kt),ee=et.document.createTextNode("");te.observe(ee,{characterData:!0}),wt=function(){ee.data=Ut=++Ut%2}}else if(et.setImmediate||et.MessageChannel===void 0)wt="document"in et&&"onreadystatechange"in et.document.createElement("script")?function(){var Ot=et.document.createElement("script");Ot.onreadystatechange=function(){Kt(),Ot.onreadystatechange=null,Ot.parentNode.removeChild(Ot),Ot=null},et.document.documentElement.appendChild(Ot)}:function(){setTimeout(Kt,0)};else{var ne=new et.MessageChannel;ne.port1.onmessage=Kt,wt=function(){ne.port2.postMessage(0)}}var Rt=[];function Kt(){var Ot,Wt;yt=!0;for(var Lt=Rt.length;Lt;){for(Wt=Rt,Rt=[],Ot=-1;++Ot<Lt;)Wt[Ot]();Lt=Rt.length}yt=!1}V.exports=function(Ot){Rt.push(Ot)!==1||yt||wt()}}).call(this,typeof $t<"u"?$t:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(D,V,Z){var et=D("immediate");function wt(){}var yt={},At=["REJECTED"],Ut=["FULFILLED"],te=["PENDING"];function ee(Lt){if(typeof Lt!="function")throw new TypeError("resolver must be a function");this.state=te,this.queue=[],this.outcome=void 0,Lt!==wt&&Ot(this,Lt)}function ne(Lt,Yt,le){this.promise=Lt,typeof Yt=="function"&&(this.onFulfilled=Yt,this.callFulfilled=this.otherCallFulfilled),typeof le=="function"&&(this.onRejected=le,this.callRejected=this.otherCallRejected)}function Rt(Lt,Yt,le){et(function(){var ve;try{ve=Yt(le)}catch(pe){return yt.reject(Lt,pe)}ve===Lt?yt.reject(Lt,new TypeError("Cannot resolve promise with itself")):yt.resolve(Lt,ve)})}function Kt(Lt){var Yt=Lt&&Lt.then;if(Lt&&(typeof Lt=="object"||typeof Lt=="function")&&typeof Yt=="function")return function(){Yt.apply(Lt,arguments)}}function Ot(Lt,Yt){var le=!1;function ve(Oe){le||(le=!0,yt.reject(Lt,Oe))}function pe(Oe){le||(le=!0,yt.resolve(Lt,Oe))}var Ue=Wt(function(){Yt(pe,ve)});Ue.status==="error"&&ve(Ue.value)}function Wt(Lt,Yt){var le={};try{le.value=Lt(Yt),le.status="success"}catch(ve){le.status="error",le.value=ve}return le}(V.exports=ee).prototype.finally=function(Lt){if(typeof Lt!="function")return this;var Yt=this.constructor;return this.then(function(le){return Yt.resolve(Lt()).then(function(){return le})},function(le){return Yt.resolve(Lt()).then(function(){throw le})})},ee.prototype.catch=function(Lt){return this.then(null,Lt)},ee.prototype.then=function(Lt,Yt){if(typeof Lt!="function"&&this.state===Ut||typeof Yt!="function"&&this.state===At)return this;var le=new this.constructor(wt);return this.state!==te?Rt(le,this.state===Ut?Lt:Yt,this.outcome):this.queue.push(new ne(le,Lt,Yt)),le},ne.prototype.callFulfilled=function(Lt){yt.resolve(this.promise,Lt)},ne.prototype.otherCallFulfilled=function(Lt){Rt(this.promise,this.onFulfilled,Lt)},ne.prototype.callRejected=function(Lt){yt.reject(this.promise,Lt)},ne.prototype.otherCallRejected=function(Lt){Rt(this.promise,this.onRejected,Lt)},yt.resolve=function(Lt,Yt){var le=Wt(Kt,Yt);if(le.status==="error")return yt.reject(Lt,le.value);var ve=le.value;if(ve)Ot(Lt,ve);else{Lt.state=Ut,Lt.outcome=Yt;for(var pe=-1,Ue=Lt.queue.length;++pe<Ue;)Lt.queue[pe].callFulfilled(Yt)}return Lt},yt.reject=function(Lt,Yt){Lt.state=At,Lt.outcome=Yt;for(var le=-1,ve=Lt.queue.length;++le<ve;)Lt.queue[le].callRejected(Yt);return Lt},ee.resolve=function(Lt){return Lt instanceof this?Lt:yt.resolve(new this(wt),Lt)},ee.reject=function(Lt){var Yt=new this(wt);return yt.reject(Yt,Lt)},ee.all=function(Lt){var Yt=this;if(Object.prototype.toString.call(Lt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var le=Lt.length,ve=!1;if(!le)return this.resolve([]);for(var pe=new Array(le),Ue=0,Oe=-1,ar=new this(wt);++Oe<le;)Re(Lt[Oe],Oe);return ar;function Re(mr,Vr){Yt.resolve(mr).then(function(ae){pe[Vr]=ae,++Ue!==le||ve||(ve=!0,yt.resolve(ar,pe))},function(ae){ve||(ve=!0,yt.reject(ar,ae))})}},ee.race=function(Lt){var Yt=this;if(Object.prototype.toString.call(Lt)!=="[object Array]")return this.reject(new TypeError("must be an array"));var le=Lt.length,ve=!1;if(!le)return this.resolve([]);for(var pe=-1,Ue=new this(wt);++pe<le;)Oe=Lt[pe],Yt.resolve(Oe).then(function(ar){ve||(ve=!0,yt.resolve(Ue,ar))},function(ar){ve||(ve=!0,yt.reject(Ue,ar))});var Oe;return Ue}},{immediate:36}],38:[function(D,V,Z){var et={};(0,D("./lib/utils/common").assign)(et,D("./lib/deflate"),D("./lib/inflate"),D("./lib/zlib/constants")),V.exports=et},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(D,V,Z){var et=D("./zlib/deflate"),wt=D("./utils/common"),yt=D("./utils/strings"),At=D("./zlib/messages"),Ut=D("./zlib/zstream"),te=Object.prototype.toString,ee=0,ne=-1,Rt=0,Kt=8;function Ot(Lt){if(!(this instanceof Ot))return new Ot(Lt);this.options=wt.assign({level:ne,method:Kt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Rt,to:""},Lt||{});var Yt=this.options;Yt.raw&&0<Yt.windowBits?Yt.windowBits=-Yt.windowBits:Yt.gzip&&0<Yt.windowBits&&Yt.windowBits<16&&(Yt.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ut,this.strm.avail_out=0;var le=et.deflateInit2(this.strm,Yt.level,Yt.method,Yt.windowBits,Yt.memLevel,Yt.strategy);if(le!==ee)throw new Error(At[le]);if(Yt.header&&et.deflateSetHeader(this.strm,Yt.header),Yt.dictionary){var ve;if(ve=typeof Yt.dictionary=="string"?yt.string2buf(Yt.dictionary):te.call(Yt.dictionary)==="[object ArrayBuffer]"?new Uint8Array(Yt.dictionary):Yt.dictionary,(le=et.deflateSetDictionary(this.strm,ve))!==ee)throw new Error(At[le]);this._dict_set=!0}}function Wt(Lt,Yt){var le=new Ot(Yt);if(le.push(Lt,!0),le.err)throw le.msg||At[le.err];return le.result}Ot.prototype.push=function(Lt,Yt){var le,ve,pe=this.strm,Ue=this.options.chunkSize;if(this.ended)return!1;ve=Yt===~~Yt?Yt:Yt===!0?4:0,typeof Lt=="string"?pe.input=yt.string2buf(Lt):te.call(Lt)==="[object ArrayBuffer]"?pe.input=new Uint8Array(Lt):pe.input=Lt,pe.next_in=0,pe.avail_in=pe.input.length;do{if(pe.avail_out===0&&(pe.output=new wt.Buf8(Ue),pe.next_out=0,pe.avail_out=Ue),(le=et.deflate(pe,ve))!==1&&le!==ee)return this.onEnd(le),!(this.ended=!0);pe.avail_out!==0&&(pe.avail_in!==0||ve!==4&&ve!==2)||(this.options.to==="string"?this.onData(yt.buf2binstring(wt.shrinkBuf(pe.output,pe.next_out))):this.onData(wt.shrinkBuf(pe.output,pe.next_out)))}while((0<pe.avail_in||pe.avail_out===0)&&le!==1);return ve===4?(le=et.deflateEnd(this.strm),this.onEnd(le),this.ended=!0,le===ee):ve!==2||(this.onEnd(ee),!(pe.avail_out=0))},Ot.prototype.onData=function(Lt){this.chunks.push(Lt)},Ot.prototype.onEnd=function(Lt){Lt===ee&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=wt.flattenChunks(this.chunks)),this.chunks=[],this.err=Lt,this.msg=this.strm.msg},Z.Deflate=Ot,Z.deflate=Wt,Z.deflateRaw=function(Lt,Yt){return(Yt=Yt||{}).raw=!0,Wt(Lt,Yt)},Z.gzip=function(Lt,Yt){return(Yt=Yt||{}).gzip=!0,Wt(Lt,Yt)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(D,V,Z){var et=D("./zlib/inflate"),wt=D("./utils/common"),yt=D("./utils/strings"),At=D("./zlib/constants"),Ut=D("./zlib/messages"),te=D("./zlib/zstream"),ee=D("./zlib/gzheader"),ne=Object.prototype.toString;function Rt(Ot){if(!(this instanceof Rt))return new Rt(Ot);this.options=wt.assign({chunkSize:16384,windowBits:0,to:""},Ot||{});var Wt=this.options;Wt.raw&&0<=Wt.windowBits&&Wt.windowBits<16&&(Wt.windowBits=-Wt.windowBits,Wt.windowBits===0&&(Wt.windowBits=-15)),!(0<=Wt.windowBits&&Wt.windowBits<16)||Ot&&Ot.windowBits||(Wt.windowBits+=32),15<Wt.windowBits&&Wt.windowBits<48&&!(15&Wt.windowBits)&&(Wt.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new te,this.strm.avail_out=0;var Lt=et.inflateInit2(this.strm,Wt.windowBits);if(Lt!==At.Z_OK)throw new Error(Ut[Lt]);this.header=new ee,et.inflateGetHeader(this.strm,this.header)}function Kt(Ot,Wt){var Lt=new Rt(Wt);if(Lt.push(Ot,!0),Lt.err)throw Lt.msg||Ut[Lt.err];return Lt.result}Rt.prototype.push=function(Ot,Wt){var Lt,Yt,le,ve,pe,Ue,Oe=this.strm,ar=this.options.chunkSize,Re=this.options.dictionary,mr=!1;if(this.ended)return!1;Yt=Wt===~~Wt?Wt:Wt===!0?At.Z_FINISH:At.Z_NO_FLUSH,typeof Ot=="string"?Oe.input=yt.binstring2buf(Ot):ne.call(Ot)==="[object ArrayBuffer]"?Oe.input=new Uint8Array(Ot):Oe.input=Ot,Oe.next_in=0,Oe.avail_in=Oe.input.length;do{if(Oe.avail_out===0&&(Oe.output=new wt.Buf8(ar),Oe.next_out=0,Oe.avail_out=ar),(Lt=et.inflate(Oe,At.Z_NO_FLUSH))===At.Z_NEED_DICT&&Re&&(Ue=typeof Re=="string"?yt.string2buf(Re):ne.call(Re)==="[object ArrayBuffer]"?new Uint8Array(Re):Re,Lt=et.inflateSetDictionary(this.strm,Ue)),Lt===At.Z_BUF_ERROR&&mr===!0&&(Lt=At.Z_OK,mr=!1),Lt!==At.Z_STREAM_END&&Lt!==At.Z_OK)return this.onEnd(Lt),!(this.ended=!0);Oe.next_out&&(Oe.avail_out!==0&&Lt!==At.Z_STREAM_END&&(Oe.avail_in!==0||Yt!==At.Z_FINISH&&Yt!==At.Z_SYNC_FLUSH)||(this.options.to==="string"?(le=yt.utf8border(Oe.output,Oe.next_out),ve=Oe.next_out-le,pe=yt.buf2string(Oe.output,le),Oe.next_out=ve,Oe.avail_out=ar-ve,ve&&wt.arraySet(Oe.output,Oe.output,le,ve,0),this.onData(pe)):this.onData(wt.shrinkBuf(Oe.output,Oe.next_out)))),Oe.avail_in===0&&Oe.avail_out===0&&(mr=!0)}while((0<Oe.avail_in||Oe.avail_out===0)&&Lt!==At.Z_STREAM_END);return Lt===At.Z_STREAM_END&&(Yt=At.Z_FINISH),Yt===At.Z_FINISH?(Lt=et.inflateEnd(this.strm),this.onEnd(Lt),this.ended=!0,Lt===At.Z_OK):Yt!==At.Z_SYNC_FLUSH||(this.onEnd(At.Z_OK),!(Oe.avail_out=0))},Rt.prototype.onData=function(Ot){this.chunks.push(Ot)},Rt.prototype.onEnd=function(Ot){Ot===At.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=wt.flattenChunks(this.chunks)),this.chunks=[],this.err=Ot,this.msg=this.strm.msg},Z.Inflate=Rt,Z.inflate=Kt,Z.inflateRaw=function(Ot,Wt){return(Wt=Wt||{}).raw=!0,Kt(Ot,Wt)},Z.ungzip=Kt},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(D,V,Z){var et=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";Z.assign=function(At){for(var Ut=Array.prototype.slice.call(arguments,1);Ut.length;){var te=Ut.shift();if(te){if(typeof te!="object")throw new TypeError(te+"must be non-object");for(var ee in te)te.hasOwnProperty(ee)&&(At[ee]=te[ee])}}return At},Z.shrinkBuf=function(At,Ut){return At.length===Ut?At:At.subarray?At.subarray(0,Ut):(At.length=Ut,At)};var wt={arraySet:function(At,Ut,te,ee,ne){if(Ut.subarray&&At.subarray)At.set(Ut.subarray(te,te+ee),ne);else for(var Rt=0;Rt<ee;Rt++)At[ne+Rt]=Ut[te+Rt]},flattenChunks:function(At){var Ut,te,ee,ne,Rt,Kt;for(Ut=ee=0,te=At.length;Ut<te;Ut++)ee+=At[Ut].length;for(Kt=new Uint8Array(ee),Ut=ne=0,te=At.length;Ut<te;Ut++)Rt=At[Ut],Kt.set(Rt,ne),ne+=Rt.length;return Kt}},yt={arraySet:function(At,Ut,te,ee,ne){for(var Rt=0;Rt<ee;Rt++)At[ne+Rt]=Ut[te+Rt]},flattenChunks:function(At){return[].concat.apply([],At)}};Z.setTyped=function(At){At?(Z.Buf8=Uint8Array,Z.Buf16=Uint16Array,Z.Buf32=Int32Array,Z.assign(Z,wt)):(Z.Buf8=Array,Z.Buf16=Array,Z.Buf32=Array,Z.assign(Z,yt))},Z.setTyped(et)},{}],42:[function(D,V,Z){var et=D("./common"),wt=!0,yt=!0;try{String.fromCharCode.apply(null,[0])}catch{wt=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yt=!1}for(var At=new et.Buf8(256),Ut=0;Ut<256;Ut++)At[Ut]=252<=Ut?6:248<=Ut?5:240<=Ut?4:224<=Ut?3:192<=Ut?2:1;function te(ee,ne){if(ne<65537&&(ee.subarray&&yt||!ee.subarray&&wt))return String.fromCharCode.apply(null,et.shrinkBuf(ee,ne));for(var Rt="",Kt=0;Kt<ne;Kt++)Rt+=String.fromCharCode(ee[Kt]);return Rt}At[254]=At[254]=1,Z.string2buf=function(ee){var ne,Rt,Kt,Ot,Wt,Lt=ee.length,Yt=0;for(Ot=0;Ot<Lt;Ot++)(64512&(Rt=ee.charCodeAt(Ot)))==55296&&Ot+1<Lt&&(64512&(Kt=ee.charCodeAt(Ot+1)))==56320&&(Rt=65536+(Rt-55296<<10)+(Kt-56320),Ot++),Yt+=Rt<128?1:Rt<2048?2:Rt<65536?3:4;for(ne=new et.Buf8(Yt),Ot=Wt=0;Wt<Yt;Ot++)(64512&(Rt=ee.charCodeAt(Ot)))==55296&&Ot+1<Lt&&(64512&(Kt=ee.charCodeAt(Ot+1)))==56320&&(Rt=65536+(Rt-55296<<10)+(Kt-56320),Ot++),Rt<128?ne[Wt++]=Rt:(Rt<2048?ne[Wt++]=192|Rt>>>6:(Rt<65536?ne[Wt++]=224|Rt>>>12:(ne[Wt++]=240|Rt>>>18,ne[Wt++]=128|Rt>>>12&63),ne[Wt++]=128|Rt>>>6&63),ne[Wt++]=128|63&Rt);return ne},Z.buf2binstring=function(ee){return te(ee,ee.length)},Z.binstring2buf=function(ee){for(var ne=new et.Buf8(ee.length),Rt=0,Kt=ne.length;Rt<Kt;Rt++)ne[Rt]=ee.charCodeAt(Rt);return ne},Z.buf2string=function(ee,ne){var Rt,Kt,Ot,Wt,Lt=ne||ee.length,Yt=new Array(2*Lt);for(Rt=Kt=0;Rt<Lt;)if((Ot=ee[Rt++])<128)Yt[Kt++]=Ot;else if(4<(Wt=At[Ot]))Yt[Kt++]=65533,Rt+=Wt-1;else{for(Ot&=Wt===2?31:Wt===3?15:7;1<Wt&&Rt<Lt;)Ot=Ot<<6|63&ee[Rt++],Wt--;1<Wt?Yt[Kt++]=65533:Ot<65536?Yt[Kt++]=Ot:(Ot-=65536,Yt[Kt++]=55296|Ot>>10&1023,Yt[Kt++]=56320|1023&Ot)}return te(Yt,Kt)},Z.utf8border=function(ee,ne){var Rt;for((ne=ne||ee.length)>ee.length&&(ne=ee.length),Rt=ne-1;0<=Rt&&(192&ee[Rt])==128;)Rt--;return Rt<0||Rt===0?ne:Rt+At[ee[Rt]]>ne?Rt:ne}},{"./common":41}],43:[function(D,V,Z){V.exports=function(et,wt,yt,At){for(var Ut=65535&et|0,te=et>>>16&65535|0,ee=0;yt!==0;){for(yt-=ee=2e3<yt?2e3:yt;te=te+(Ut=Ut+wt[At++]|0)|0,--ee;);Ut%=65521,te%=65521}return Ut|te<<16|0}},{}],44:[function(D,V,Z){V.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}},{}],45:[function(D,V,Z){var et=function(){for(var wt,yt=[],At=0;At<256;At++){wt=At;for(var Ut=0;Ut<8;Ut++)wt=1&wt?3988292384^wt>>>1:wt>>>1;yt[At]=wt}return yt}();V.exports=function(wt,yt,At,Ut){var te=et,ee=Ut+At;wt^=-1;for(var ne=Ut;ne<ee;ne++)wt=wt>>>8^te[255&(wt^yt[ne])];return-1^wt}},{}],46:[function(D,V,Z){var et,wt=D("../utils/common"),yt=D("./trees"),At=D("./adler32"),Ut=D("./crc32"),te=D("./messages"),ee=0,ne=4,Rt=0,Kt=-2,Ot=-1,Wt=4,Lt=2,Yt=8,le=9,ve=286,pe=30,Ue=19,Oe=2*ve+1,ar=15,Re=3,mr=258,Vr=mr+Re+1,ae=42,Ie=113,_t=1,He=2,an=3,rr=4;function dn(ut,De){return ut.msg=te[De],De}function lr(ut){return(ut<<1)-(4<ut?9:0)}function Jr(ut){for(var De=ut.length;0<=--De;)ut[De]=0}function Ee(ut){var De=ut.state,Ce=De.pending;Ce>ut.avail_out&&(Ce=ut.avail_out),Ce!==0&&(wt.arraySet(ut.output,De.pending_buf,De.pending_out,Ce,ut.next_out),ut.next_out+=Ce,De.pending_out+=Ce,ut.total_out+=Ce,ut.avail_out-=Ce,De.pending-=Ce,De.pending===0&&(De.pending_out=0))}function xe(ut,De){yt._tr_flush_block(ut,0<=ut.block_start?ut.block_start:-1,ut.strstart-ut.block_start,De),ut.block_start=ut.strstart,Ee(ut.strm)}function $r(ut,De){ut.pending_buf[ut.pending++]=De}function Mr(ut,De){ut.pending_buf[ut.pending++]=De>>>8&255,ut.pending_buf[ut.pending++]=255&De}function wr(ut,De){var Ce,qt,Ht=ut.max_chain_length,ce=ut.strstart,Xe=ut.prev_length,Qe=ut.nice_match,we=ut.strstart>ut.w_size-Vr?ut.strstart-(ut.w_size-Vr):0,ur=ut.window,Rr=ut.w_mask,hr=ut.prev,Ur=ut.strstart+mr,$n=ur[ce+Xe-1],Cn=ur[ce+Xe];ut.prev_length>=ut.good_match&&(Ht>>=2),Qe>ut.lookahead&&(Qe=ut.lookahead);do if(ur[(Ce=De)+Xe]===Cn&&ur[Ce+Xe-1]===$n&&ur[Ce]===ur[ce]&&ur[++Ce]===ur[ce+1]){ce+=2,Ce++;do;while(ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ur[++ce]===ur[++Ce]&&ce<Ur);if(qt=mr-(Ur-ce),ce=Ur-mr,Xe<qt){if(ut.match_start=De,Qe<=(Xe=qt))break;$n=ur[ce+Xe-1],Cn=ur[ce+Xe]}}while((De=hr[De&Rr])>we&&--Ht!=0);return Xe<=ut.lookahead?Xe:ut.lookahead}function ii(ut){var De,Ce,qt,Ht,ce,Xe,Qe,we,ur,Rr,hr=ut.w_size;do{if(Ht=ut.window_size-ut.lookahead-ut.strstart,ut.strstart>=hr+(hr-Vr)){for(wt.arraySet(ut.window,ut.window,hr,hr,0),ut.match_start-=hr,ut.strstart-=hr,ut.block_start-=hr,De=Ce=ut.hash_size;qt=ut.head[--De],ut.head[De]=hr<=qt?qt-hr:0,--Ce;);for(De=Ce=hr;qt=ut.prev[--De],ut.prev[De]=hr<=qt?qt-hr:0,--Ce;);Ht+=hr}if(ut.strm.avail_in===0)break;if(Xe=ut.strm,Qe=ut.window,we=ut.strstart+ut.lookahead,ur=Ht,Rr=void 0,Rr=Xe.avail_in,ur<Rr&&(Rr=ur),Ce=Rr===0?0:(Xe.avail_in-=Rr,wt.arraySet(Qe,Xe.input,Xe.next_in,Rr,we),Xe.state.wrap===1?Xe.adler=At(Xe.adler,Qe,Rr,we):Xe.state.wrap===2&&(Xe.adler=Ut(Xe.adler,Qe,Rr,we)),Xe.next_in+=Rr,Xe.total_in+=Rr,Rr),ut.lookahead+=Ce,ut.lookahead+ut.insert>=Re)for(ce=ut.strstart-ut.insert,ut.ins_h=ut.window[ce],ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ce+1])&ut.hash_mask;ut.insert&&(ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ce+Re-1])&ut.hash_mask,ut.prev[ce&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=ce,ce++,ut.insert--,!(ut.lookahead+ut.insert<Re)););}while(ut.lookahead<Vr&&ut.strm.avail_in!==0)}function Hi(ut,De){for(var Ce,qt;;){if(ut.lookahead<Vr){if(ii(ut),ut.lookahead<Vr&&De===ee)return _t;if(ut.lookahead===0)break}if(Ce=0,ut.lookahead>=Re&&(ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ut.strstart+Re-1])&ut.hash_mask,Ce=ut.prev[ut.strstart&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=ut.strstart),Ce!==0&&ut.strstart-Ce<=ut.w_size-Vr&&(ut.match_length=wr(ut,Ce)),ut.match_length>=Re)if(qt=yt._tr_tally(ut,ut.strstart-ut.match_start,ut.match_length-Re),ut.lookahead-=ut.match_length,ut.match_length<=ut.max_lazy_match&&ut.lookahead>=Re){for(ut.match_length--;ut.strstart++,ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ut.strstart+Re-1])&ut.hash_mask,Ce=ut.prev[ut.strstart&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=ut.strstart,--ut.match_length!=0;);ut.strstart++}else ut.strstart+=ut.match_length,ut.match_length=0,ut.ins_h=ut.window[ut.strstart],ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ut.strstart+1])&ut.hash_mask;else qt=yt._tr_tally(ut,0,ut.window[ut.strstart]),ut.lookahead--,ut.strstart++;if(qt&&(xe(ut,!1),ut.strm.avail_out===0))return _t}return ut.insert=ut.strstart<Re-1?ut.strstart:Re-1,De===ne?(xe(ut,!0),ut.strm.avail_out===0?an:rr):ut.last_lit&&(xe(ut,!1),ut.strm.avail_out===0)?_t:He}function En(ut,De){for(var Ce,qt,Ht;;){if(ut.lookahead<Vr){if(ii(ut),ut.lookahead<Vr&&De===ee)return _t;if(ut.lookahead===0)break}if(Ce=0,ut.lookahead>=Re&&(ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ut.strstart+Re-1])&ut.hash_mask,Ce=ut.prev[ut.strstart&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=ut.strstart),ut.prev_length=ut.match_length,ut.prev_match=ut.match_start,ut.match_length=Re-1,Ce!==0&&ut.prev_length<ut.max_lazy_match&&ut.strstart-Ce<=ut.w_size-Vr&&(ut.match_length=wr(ut,Ce),ut.match_length<=5&&(ut.strategy===1||ut.match_length===Re&&4096<ut.strstart-ut.match_start)&&(ut.match_length=Re-1)),ut.prev_length>=Re&&ut.match_length<=ut.prev_length){for(Ht=ut.strstart+ut.lookahead-Re,qt=yt._tr_tally(ut,ut.strstart-1-ut.prev_match,ut.prev_length-Re),ut.lookahead-=ut.prev_length-1,ut.prev_length-=2;++ut.strstart<=Ht&&(ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[ut.strstart+Re-1])&ut.hash_mask,Ce=ut.prev[ut.strstart&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=ut.strstart),--ut.prev_length!=0;);if(ut.match_available=0,ut.match_length=Re-1,ut.strstart++,qt&&(xe(ut,!1),ut.strm.avail_out===0))return _t}else if(ut.match_available){if((qt=yt._tr_tally(ut,0,ut.window[ut.strstart-1]))&&xe(ut,!1),ut.strstart++,ut.lookahead--,ut.strm.avail_out===0)return _t}else ut.match_available=1,ut.strstart++,ut.lookahead--}return ut.match_available&&(qt=yt._tr_tally(ut,0,ut.window[ut.strstart-1]),ut.match_available=0),ut.insert=ut.strstart<Re-1?ut.strstart:Re-1,De===ne?(xe(ut,!0),ut.strm.avail_out===0?an:rr):ut.last_lit&&(xe(ut,!1),ut.strm.avail_out===0)?_t:He}function Pn(ut,De,Ce,qt,Ht){this.good_length=ut,this.max_lazy=De,this.nice_length=Ce,this.max_chain=qt,this.func=Ht}function Di(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Yt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new wt.Buf16(2*Oe),this.dyn_dtree=new wt.Buf16(2*(2*pe+1)),this.bl_tree=new wt.Buf16(2*(2*Ue+1)),Jr(this.dyn_ltree),Jr(this.dyn_dtree),Jr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new wt.Buf16(ar+1),this.heap=new wt.Buf16(2*ve+1),Jr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new wt.Buf16(2*ve+1),Jr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ci(ut){var De;return ut&&ut.state?(ut.total_in=ut.total_out=0,ut.data_type=Lt,(De=ut.state).pending=0,De.pending_out=0,De.wrap<0&&(De.wrap=-De.wrap),De.status=De.wrap?ae:Ie,ut.adler=De.wrap===2?0:1,De.last_flush=ee,yt._tr_init(De),Rt):dn(ut,Kt)}function ds(ut){var De=ci(ut);return De===Rt&&function(Ce){Ce.window_size=2*Ce.w_size,Jr(Ce.head),Ce.max_lazy_match=et[Ce.level].max_lazy,Ce.good_match=et[Ce.level].good_length,Ce.nice_match=et[Ce.level].nice_length,Ce.max_chain_length=et[Ce.level].max_chain,Ce.strstart=0,Ce.block_start=0,Ce.lookahead=0,Ce.insert=0,Ce.match_length=Ce.prev_length=Re-1,Ce.match_available=0,Ce.ins_h=0}(ut.state),De}function $a(ut,De,Ce,qt,Ht,ce){if(!ut)return Kt;var Xe=1;if(De===Ot&&(De=6),qt<0?(Xe=0,qt=-qt):15<qt&&(Xe=2,qt-=16),Ht<1||le<Ht||Ce!==Yt||qt<8||15<qt||De<0||9<De||ce<0||Wt<ce)return dn(ut,Kt);qt===8&&(qt=9);var Qe=new Di;return(ut.state=Qe).strm=ut,Qe.wrap=Xe,Qe.gzhead=null,Qe.w_bits=qt,Qe.w_size=1<<Qe.w_bits,Qe.w_mask=Qe.w_size-1,Qe.hash_bits=Ht+7,Qe.hash_size=1<<Qe.hash_bits,Qe.hash_mask=Qe.hash_size-1,Qe.hash_shift=~~((Qe.hash_bits+Re-1)/Re),Qe.window=new wt.Buf8(2*Qe.w_size),Qe.head=new wt.Buf16(Qe.hash_size),Qe.prev=new wt.Buf16(Qe.w_size),Qe.lit_bufsize=1<<Ht+6,Qe.pending_buf_size=4*Qe.lit_bufsize,Qe.pending_buf=new wt.Buf8(Qe.pending_buf_size),Qe.d_buf=1*Qe.lit_bufsize,Qe.l_buf=3*Qe.lit_bufsize,Qe.level=De,Qe.strategy=ce,Qe.method=Ce,ds(ut)}et=[new Pn(0,0,0,0,function(ut,De){var Ce=65535;for(Ce>ut.pending_buf_size-5&&(Ce=ut.pending_buf_size-5);;){if(ut.lookahead<=1){if(ii(ut),ut.lookahead===0&&De===ee)return _t;if(ut.lookahead===0)break}ut.strstart+=ut.lookahead,ut.lookahead=0;var qt=ut.block_start+Ce;if((ut.strstart===0||ut.strstart>=qt)&&(ut.lookahead=ut.strstart-qt,ut.strstart=qt,xe(ut,!1),ut.strm.avail_out===0)||ut.strstart-ut.block_start>=ut.w_size-Vr&&(xe(ut,!1),ut.strm.avail_out===0))return _t}return ut.insert=0,De===ne?(xe(ut,!0),ut.strm.avail_out===0?an:rr):(ut.strstart>ut.block_start&&(xe(ut,!1),ut.strm.avail_out),_t)}),new Pn(4,4,8,4,Hi),new Pn(4,5,16,8,Hi),new Pn(4,6,32,32,Hi),new Pn(4,4,16,16,En),new Pn(8,16,32,32,En),new Pn(8,16,128,128,En),new Pn(8,32,128,256,En),new Pn(32,128,258,1024,En),new Pn(32,258,258,4096,En)],Z.deflateInit=function(ut,De){return $a(ut,De,Yt,15,8,0)},Z.deflateInit2=$a,Z.deflateReset=ds,Z.deflateResetKeep=ci,Z.deflateSetHeader=function(ut,De){return ut&&ut.state?ut.state.wrap!==2?Kt:(ut.state.gzhead=De,Rt):Kt},Z.deflate=function(ut,De){var Ce,qt,Ht,ce;if(!ut||!ut.state||5<De||De<0)return ut?dn(ut,Kt):Kt;if(qt=ut.state,!ut.output||!ut.input&&ut.avail_in!==0||qt.status===666&&De!==ne)return dn(ut,ut.avail_out===0?-5:Kt);if(qt.strm=ut,Ce=qt.last_flush,qt.last_flush=De,qt.status===ae)if(qt.wrap===2)ut.adler=0,$r(qt,31),$r(qt,139),$r(qt,8),qt.gzhead?($r(qt,(qt.gzhead.text?1:0)+(qt.gzhead.hcrc?2:0)+(qt.gzhead.extra?4:0)+(qt.gzhead.name?8:0)+(qt.gzhead.comment?16:0)),$r(qt,255&qt.gzhead.time),$r(qt,qt.gzhead.time>>8&255),$r(qt,qt.gzhead.time>>16&255),$r(qt,qt.gzhead.time>>24&255),$r(qt,qt.level===9?2:2<=qt.strategy||qt.level<2?4:0),$r(qt,255&qt.gzhead.os),qt.gzhead.extra&&qt.gzhead.extra.length&&($r(qt,255&qt.gzhead.extra.length),$r(qt,qt.gzhead.extra.length>>8&255)),qt.gzhead.hcrc&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending,0)),qt.gzindex=0,qt.status=69):($r(qt,0),$r(qt,0),$r(qt,0),$r(qt,0),$r(qt,0),$r(qt,qt.level===9?2:2<=qt.strategy||qt.level<2?4:0),$r(qt,3),qt.status=Ie);else{var Xe=Yt+(qt.w_bits-8<<4)<<8;Xe|=(2<=qt.strategy||qt.level<2?0:qt.level<6?1:qt.level===6?2:3)<<6,qt.strstart!==0&&(Xe|=32),Xe+=31-Xe%31,qt.status=Ie,Mr(qt,Xe),qt.strstart!==0&&(Mr(qt,ut.adler>>>16),Mr(qt,65535&ut.adler)),ut.adler=1}if(qt.status===69)if(qt.gzhead.extra){for(Ht=qt.pending;qt.gzindex<(65535&qt.gzhead.extra.length)&&(qt.pending!==qt.pending_buf_size||(qt.gzhead.hcrc&&qt.pending>Ht&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending-Ht,Ht)),Ee(ut),Ht=qt.pending,qt.pending!==qt.pending_buf_size));)$r(qt,255&qt.gzhead.extra[qt.gzindex]),qt.gzindex++;qt.gzhead.hcrc&&qt.pending>Ht&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending-Ht,Ht)),qt.gzindex===qt.gzhead.extra.length&&(qt.gzindex=0,qt.status=73)}else qt.status=73;if(qt.status===73)if(qt.gzhead.name){Ht=qt.pending;do{if(qt.pending===qt.pending_buf_size&&(qt.gzhead.hcrc&&qt.pending>Ht&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending-Ht,Ht)),Ee(ut),Ht=qt.pending,qt.pending===qt.pending_buf_size)){ce=1;break}ce=qt.gzindex<qt.gzhead.name.length?255&qt.gzhead.name.charCodeAt(qt.gzindex++):0,$r(qt,ce)}while(ce!==0);qt.gzhead.hcrc&&qt.pending>Ht&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending-Ht,Ht)),ce===0&&(qt.gzindex=0,qt.status=91)}else qt.status=91;if(qt.status===91)if(qt.gzhead.comment){Ht=qt.pending;do{if(qt.pending===qt.pending_buf_size&&(qt.gzhead.hcrc&&qt.pending>Ht&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending-Ht,Ht)),Ee(ut),Ht=qt.pending,qt.pending===qt.pending_buf_size)){ce=1;break}ce=qt.gzindex<qt.gzhead.comment.length?255&qt.gzhead.comment.charCodeAt(qt.gzindex++):0,$r(qt,ce)}while(ce!==0);qt.gzhead.hcrc&&qt.pending>Ht&&(ut.adler=Ut(ut.adler,qt.pending_buf,qt.pending-Ht,Ht)),ce===0&&(qt.status=103)}else qt.status=103;if(qt.status===103&&(qt.gzhead.hcrc?(qt.pending+2>qt.pending_buf_size&&Ee(ut),qt.pending+2<=qt.pending_buf_size&&($r(qt,255&ut.adler),$r(qt,ut.adler>>8&255),ut.adler=0,qt.status=Ie)):qt.status=Ie),qt.pending!==0){if(Ee(ut),ut.avail_out===0)return qt.last_flush=-1,Rt}else if(ut.avail_in===0&&lr(De)<=lr(Ce)&&De!==ne)return dn(ut,-5);if(qt.status===666&&ut.avail_in!==0)return dn(ut,-5);if(ut.avail_in!==0||qt.lookahead!==0||De!==ee&&qt.status!==666){var Qe=qt.strategy===2?function(we,ur){for(var Rr;;){if(we.lookahead===0&&(ii(we),we.lookahead===0)){if(ur===ee)return _t;break}if(we.match_length=0,Rr=yt._tr_tally(we,0,we.window[we.strstart]),we.lookahead--,we.strstart++,Rr&&(xe(we,!1),we.strm.avail_out===0))return _t}return we.insert=0,ur===ne?(xe(we,!0),we.strm.avail_out===0?an:rr):we.last_lit&&(xe(we,!1),we.strm.avail_out===0)?_t:He}(qt,De):qt.strategy===3?function(we,ur){for(var Rr,hr,Ur,$n,Cn=we.window;;){if(we.lookahead<=mr){if(ii(we),we.lookahead<=mr&&ur===ee)return _t;if(we.lookahead===0)break}if(we.match_length=0,we.lookahead>=Re&&0<we.strstart&&(hr=Cn[Ur=we.strstart-1])===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]){$n=we.strstart+mr;do;while(hr===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]&&hr===Cn[++Ur]&&Ur<$n);we.match_length=mr-($n-Ur),we.match_length>we.lookahead&&(we.match_length=we.lookahead)}if(we.match_length>=Re?(Rr=yt._tr_tally(we,1,we.match_length-Re),we.lookahead-=we.match_length,we.strstart+=we.match_length,we.match_length=0):(Rr=yt._tr_tally(we,0,we.window[we.strstart]),we.lookahead--,we.strstart++),Rr&&(xe(we,!1),we.strm.avail_out===0))return _t}return we.insert=0,ur===ne?(xe(we,!0),we.strm.avail_out===0?an:rr):we.last_lit&&(xe(we,!1),we.strm.avail_out===0)?_t:He}(qt,De):et[qt.level].func(qt,De);if(Qe!==an&&Qe!==rr||(qt.status=666),Qe===_t||Qe===an)return ut.avail_out===0&&(qt.last_flush=-1),Rt;if(Qe===He&&(De===1?yt._tr_align(qt):De!==5&&(yt._tr_stored_block(qt,0,0,!1),De===3&&(Jr(qt.head),qt.lookahead===0&&(qt.strstart=0,qt.block_start=0,qt.insert=0))),Ee(ut),ut.avail_out===0))return qt.last_flush=-1,Rt}return De!==ne?Rt:qt.wrap<=0?1:(qt.wrap===2?($r(qt,255&ut.adler),$r(qt,ut.adler>>8&255),$r(qt,ut.adler>>16&255),$r(qt,ut.adler>>24&255),$r(qt,255&ut.total_in),$r(qt,ut.total_in>>8&255),$r(qt,ut.total_in>>16&255),$r(qt,ut.total_in>>24&255)):(Mr(qt,ut.adler>>>16),Mr(qt,65535&ut.adler)),Ee(ut),0<qt.wrap&&(qt.wrap=-qt.wrap),qt.pending!==0?Rt:1)},Z.deflateEnd=function(ut){var De;return ut&&ut.state?(De=ut.state.status)!==ae&&De!==69&&De!==73&&De!==91&&De!==103&&De!==Ie&&De!==666?dn(ut,Kt):(ut.state=null,De===Ie?dn(ut,-3):Rt):Kt},Z.deflateSetDictionary=function(ut,De){var Ce,qt,Ht,ce,Xe,Qe,we,ur,Rr=De.length;if(!ut||!ut.state||(ce=(Ce=ut.state).wrap)===2||ce===1&&Ce.status!==ae||Ce.lookahead)return Kt;for(ce===1&&(ut.adler=At(ut.adler,De,Rr,0)),Ce.wrap=0,Rr>=Ce.w_size&&(ce===0&&(Jr(Ce.head),Ce.strstart=0,Ce.block_start=0,Ce.insert=0),ur=new wt.Buf8(Ce.w_size),wt.arraySet(ur,De,Rr-Ce.w_size,Ce.w_size,0),De=ur,Rr=Ce.w_size),Xe=ut.avail_in,Qe=ut.next_in,we=ut.input,ut.avail_in=Rr,ut.next_in=0,ut.input=De,ii(Ce);Ce.lookahead>=Re;){for(qt=Ce.strstart,Ht=Ce.lookahead-(Re-1);Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[qt+Re-1])&Ce.hash_mask,Ce.prev[qt&Ce.w_mask]=Ce.head[Ce.ins_h],Ce.head[Ce.ins_h]=qt,qt++,--Ht;);Ce.strstart=qt,Ce.lookahead=Re-1,ii(Ce)}return Ce.strstart+=Ce.lookahead,Ce.block_start=Ce.strstart,Ce.insert=Ce.lookahead,Ce.lookahead=0,Ce.match_length=Ce.prev_length=Re-1,Ce.match_available=0,ut.next_in=Qe,ut.input=we,ut.avail_in=Xe,Ce.wrap=ce,Rt},Z.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(D,V,Z){V.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(D,V,Z){V.exports=function(et,wt){var yt,At,Ut,te,ee,ne,Rt,Kt,Ot,Wt,Lt,Yt,le,ve,pe,Ue,Oe,ar,Re,mr,Vr,ae,Ie,_t,He;yt=et.state,At=et.next_in,_t=et.input,Ut=At+(et.avail_in-5),te=et.next_out,He=et.output,ee=te-(wt-et.avail_out),ne=te+(et.avail_out-257),Rt=yt.dmax,Kt=yt.wsize,Ot=yt.whave,Wt=yt.wnext,Lt=yt.window,Yt=yt.hold,le=yt.bits,ve=yt.lencode,pe=yt.distcode,Ue=(1<<yt.lenbits)-1,Oe=(1<<yt.distbits)-1;t:do{le<15&&(Yt+=_t[At++]<<le,le+=8,Yt+=_t[At++]<<le,le+=8),ar=ve[Yt&Ue];e:for(;;){if(Yt>>>=Re=ar>>>24,le-=Re,(Re=ar>>>16&255)===0)He[te++]=65535&ar;else{if(!(16&Re)){if(!(64&Re)){ar=ve[(65535&ar)+(Yt&(1<<Re)-1)];continue e}if(32&Re){yt.mode=12;break t}et.msg="invalid literal/length code",yt.mode=30;break t}mr=65535&ar,(Re&=15)&&(le<Re&&(Yt+=_t[At++]<<le,le+=8),mr+=Yt&(1<<Re)-1,Yt>>>=Re,le-=Re),le<15&&(Yt+=_t[At++]<<le,le+=8,Yt+=_t[At++]<<le,le+=8),ar=pe[Yt&Oe];r:for(;;){if(Yt>>>=Re=ar>>>24,le-=Re,!(16&(Re=ar>>>16&255))){if(!(64&Re)){ar=pe[(65535&ar)+(Yt&(1<<Re)-1)];continue r}et.msg="invalid distance code",yt.mode=30;break t}if(Vr=65535&ar,le<(Re&=15)&&(Yt+=_t[At++]<<le,(le+=8)<Re&&(Yt+=_t[At++]<<le,le+=8)),Rt<(Vr+=Yt&(1<<Re)-1)){et.msg="invalid distance too far back",yt.mode=30;break t}if(Yt>>>=Re,le-=Re,(Re=te-ee)<Vr){if(Ot<(Re=Vr-Re)&&yt.sane){et.msg="invalid distance too far back",yt.mode=30;break t}if(Ie=Lt,(ae=0)===Wt){if(ae+=Kt-Re,Re<mr){for(mr-=Re;He[te++]=Lt[ae++],--Re;);ae=te-Vr,Ie=He}}else if(Wt<Re){if(ae+=Kt+Wt-Re,(Re-=Wt)<mr){for(mr-=Re;He[te++]=Lt[ae++],--Re;);if(ae=0,Wt<mr){for(mr-=Re=Wt;He[te++]=Lt[ae++],--Re;);ae=te-Vr,Ie=He}}}else if(ae+=Wt-Re,Re<mr){for(mr-=Re;He[te++]=Lt[ae++],--Re;);ae=te-Vr,Ie=He}for(;2<mr;)He[te++]=Ie[ae++],He[te++]=Ie[ae++],He[te++]=Ie[ae++],mr-=3;mr&&(He[te++]=Ie[ae++],1<mr&&(He[te++]=Ie[ae++]))}else{for(ae=te-Vr;He[te++]=He[ae++],He[te++]=He[ae++],He[te++]=He[ae++],2<(mr-=3););mr&&(He[te++]=He[ae++],1<mr&&(He[te++]=He[ae++]))}break}}break}}while(At<Ut&&te<ne);At-=mr=le>>3,Yt&=(1<<(le-=mr<<3))-1,et.next_in=At,et.next_out=te,et.avail_in=At<Ut?Ut-At+5:5-(At-Ut),et.avail_out=te<ne?ne-te+257:257-(te-ne),yt.hold=Yt,yt.bits=le}},{}],49:[function(D,V,Z){var et=D("../utils/common"),wt=D("./adler32"),yt=D("./crc32"),At=D("./inffast"),Ut=D("./inftrees"),te=1,ee=2,ne=0,Rt=-2,Kt=1,Ot=852,Wt=592;function Lt(ae){return(ae>>>24&255)+(ae>>>8&65280)+((65280&ae)<<8)+((255&ae)<<24)}function Yt(){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 et.Buf16(320),this.work=new et.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function le(ae){var Ie;return ae&&ae.state?(Ie=ae.state,ae.total_in=ae.total_out=Ie.total=0,ae.msg="",Ie.wrap&&(ae.adler=1&Ie.wrap),Ie.mode=Kt,Ie.last=0,Ie.havedict=0,Ie.dmax=32768,Ie.head=null,Ie.hold=0,Ie.bits=0,Ie.lencode=Ie.lendyn=new et.Buf32(Ot),Ie.distcode=Ie.distdyn=new et.Buf32(Wt),Ie.sane=1,Ie.back=-1,ne):Rt}function ve(ae){var Ie;return ae&&ae.state?((Ie=ae.state).wsize=0,Ie.whave=0,Ie.wnext=0,le(ae)):Rt}function pe(ae,Ie){var _t,He;return ae&&ae.state?(He=ae.state,Ie<0?(_t=0,Ie=-Ie):(_t=1+(Ie>>4),Ie<48&&(Ie&=15)),Ie&&(Ie<8||15<Ie)?Rt:(He.window!==null&&He.wbits!==Ie&&(He.window=null),He.wrap=_t,He.wbits=Ie,ve(ae))):Rt}function Ue(ae,Ie){var _t,He;return ae?(He=new Yt,(ae.state=He).window=null,(_t=pe(ae,Ie))!==ne&&(ae.state=null),_t):Rt}var Oe,ar,Re=!0;function mr(ae){if(Re){var Ie;for(Oe=new et.Buf32(512),ar=new et.Buf32(32),Ie=0;Ie<144;)ae.lens[Ie++]=8;for(;Ie<256;)ae.lens[Ie++]=9;for(;Ie<280;)ae.lens[Ie++]=7;for(;Ie<288;)ae.lens[Ie++]=8;for(Ut(te,ae.lens,0,288,Oe,0,ae.work,{bits:9}),Ie=0;Ie<32;)ae.lens[Ie++]=5;Ut(ee,ae.lens,0,32,ar,0,ae.work,{bits:5}),Re=!1}ae.lencode=Oe,ae.lenbits=9,ae.distcode=ar,ae.distbits=5}function Vr(ae,Ie,_t,He){var an,rr=ae.state;return rr.window===null&&(rr.wsize=1<<rr.wbits,rr.wnext=0,rr.whave=0,rr.window=new et.Buf8(rr.wsize)),He>=rr.wsize?(et.arraySet(rr.window,Ie,_t-rr.wsize,rr.wsize,0),rr.wnext=0,rr.whave=rr.wsize):(He<(an=rr.wsize-rr.wnext)&&(an=He),et.arraySet(rr.window,Ie,_t-He,an,rr.wnext),(He-=an)?(et.arraySet(rr.window,Ie,_t-He,He,0),rr.wnext=He,rr.whave=rr.wsize):(rr.wnext+=an,rr.wnext===rr.wsize&&(rr.wnext=0),rr.whave<rr.wsize&&(rr.whave+=an))),0}Z.inflateReset=ve,Z.inflateReset2=pe,Z.inflateResetKeep=le,Z.inflateInit=function(ae){return Ue(ae,15)},Z.inflateInit2=Ue,Z.inflate=function(ae,Ie){var _t,He,an,rr,dn,lr,Jr,Ee,xe,$r,Mr,wr,ii,Hi,En,Pn,Di,ci,ds,$a,ut,De,Ce,qt,Ht=0,ce=new et.Buf8(4),Xe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ae||!ae.state||!ae.output||!ae.input&&ae.avail_in!==0)return Rt;(_t=ae.state).mode===12&&(_t.mode=13),dn=ae.next_out,an=ae.output,Jr=ae.avail_out,rr=ae.next_in,He=ae.input,lr=ae.avail_in,Ee=_t.hold,xe=_t.bits,$r=lr,Mr=Jr,De=ne;t:for(;;)switch(_t.mode){case Kt:if(_t.wrap===0){_t.mode=13;break}for(;xe<16;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(2&_t.wrap&&Ee===35615){ce[_t.check=0]=255&Ee,ce[1]=Ee>>>8&255,_t.check=yt(_t.check,ce,2,0),xe=Ee=0,_t.mode=2;break}if(_t.flags=0,_t.head&&(_t.head.done=!1),!(1&_t.wrap)||(((255&Ee)<<8)+(Ee>>8))%31){ae.msg="incorrect header check",_t.mode=30;break}if((15&Ee)!=8){ae.msg="unknown compression method",_t.mode=30;break}if(xe-=4,ut=8+(15&(Ee>>>=4)),_t.wbits===0)_t.wbits=ut;else if(ut>_t.wbits){ae.msg="invalid window size",_t.mode=30;break}_t.dmax=1<<ut,ae.adler=_t.check=1,_t.mode=512&Ee?10:12,xe=Ee=0;break;case 2:for(;xe<16;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(_t.flags=Ee,(255&_t.flags)!=8){ae.msg="unknown compression method",_t.mode=30;break}if(57344&_t.flags){ae.msg="unknown header flags set",_t.mode=30;break}_t.head&&(_t.head.text=Ee>>8&1),512&_t.flags&&(ce[0]=255&Ee,ce[1]=Ee>>>8&255,_t.check=yt(_t.check,ce,2,0)),xe=Ee=0,_t.mode=3;case 3:for(;xe<32;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}_t.head&&(_t.head.time=Ee),512&_t.flags&&(ce[0]=255&Ee,ce[1]=Ee>>>8&255,ce[2]=Ee>>>16&255,ce[3]=Ee>>>24&255,_t.check=yt(_t.check,ce,4,0)),xe=Ee=0,_t.mode=4;case 4:for(;xe<16;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}_t.head&&(_t.head.xflags=255&Ee,_t.head.os=Ee>>8),512&_t.flags&&(ce[0]=255&Ee,ce[1]=Ee>>>8&255,_t.check=yt(_t.check,ce,2,0)),xe=Ee=0,_t.mode=5;case 5:if(1024&_t.flags){for(;xe<16;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}_t.length=Ee,_t.head&&(_t.head.extra_len=Ee),512&_t.flags&&(ce[0]=255&Ee,ce[1]=Ee>>>8&255,_t.check=yt(_t.check,ce,2,0)),xe=Ee=0}else _t.head&&(_t.head.extra=null);_t.mode=6;case 6:if(1024&_t.flags&&(lr<(wr=_t.length)&&(wr=lr),wr&&(_t.head&&(ut=_t.head.extra_len-_t.length,_t.head.extra||(_t.head.extra=new Array(_t.head.extra_len)),et.arraySet(_t.head.extra,He,rr,wr,ut)),512&_t.flags&&(_t.check=yt(_t.check,He,wr,rr)),lr-=wr,rr+=wr,_t.length-=wr),_t.length))break t;_t.length=0,_t.mode=7;case 7:if(2048&_t.flags){if(lr===0)break t;for(wr=0;ut=He[rr+wr++],_t.head&&ut&&_t.length<65536&&(_t.head.name+=String.fromCharCode(ut)),ut&&wr<lr;);if(512&_t.flags&&(_t.check=yt(_t.check,He,wr,rr)),lr-=wr,rr+=wr,ut)break t}else _t.head&&(_t.head.name=null);_t.length=0,_t.mode=8;case 8:if(4096&_t.flags){if(lr===0)break t;for(wr=0;ut=He[rr+wr++],_t.head&&ut&&_t.length<65536&&(_t.head.comment+=String.fromCharCode(ut)),ut&&wr<lr;);if(512&_t.flags&&(_t.check=yt(_t.check,He,wr,rr)),lr-=wr,rr+=wr,ut)break t}else _t.head&&(_t.head.comment=null);_t.mode=9;case 9:if(512&_t.flags){for(;xe<16;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(Ee!==(65535&_t.check)){ae.msg="header crc mismatch",_t.mode=30;break}xe=Ee=0}_t.head&&(_t.head.hcrc=_t.flags>>9&1,_t.head.done=!0),ae.adler=_t.check=0,_t.mode=12;break;case 10:for(;xe<32;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}ae.adler=_t.check=Lt(Ee),xe=Ee=0,_t.mode=11;case 11:if(_t.havedict===0)return ae.next_out=dn,ae.avail_out=Jr,ae.next_in=rr,ae.avail_in=lr,_t.hold=Ee,_t.bits=xe,2;ae.adler=_t.check=1,_t.mode=12;case 12:if(Ie===5||Ie===6)break t;case 13:if(_t.last){Ee>>>=7&xe,xe-=7&xe,_t.mode=27;break}for(;xe<3;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}switch(_t.last=1&Ee,xe-=1,3&(Ee>>>=1)){case 0:_t.mode=14;break;case 1:if(mr(_t),_t.mode=20,Ie!==6)break;Ee>>>=2,xe-=2;break t;case 2:_t.mode=17;break;case 3:ae.msg="invalid block type",_t.mode=30}Ee>>>=2,xe-=2;break;case 14:for(Ee>>>=7&xe,xe-=7&xe;xe<32;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if((65535&Ee)!=(Ee>>>16^65535)){ae.msg="invalid stored block lengths",_t.mode=30;break}if(_t.length=65535&Ee,xe=Ee=0,_t.mode=15,Ie===6)break t;case 15:_t.mode=16;case 16:if(wr=_t.length){if(lr<wr&&(wr=lr),Jr<wr&&(wr=Jr),wr===0)break t;et.arraySet(an,He,rr,wr,dn),lr-=wr,rr+=wr,Jr-=wr,dn+=wr,_t.length-=wr;break}_t.mode=12;break;case 17:for(;xe<14;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(_t.nlen=257+(31&Ee),Ee>>>=5,xe-=5,_t.ndist=1+(31&Ee),Ee>>>=5,xe-=5,_t.ncode=4+(15&Ee),Ee>>>=4,xe-=4,286<_t.nlen||30<_t.ndist){ae.msg="too many length or distance symbols",_t.mode=30;break}_t.have=0,_t.mode=18;case 18:for(;_t.have<_t.ncode;){for(;xe<3;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}_t.lens[Xe[_t.have++]]=7&Ee,Ee>>>=3,xe-=3}for(;_t.have<19;)_t.lens[Xe[_t.have++]]=0;if(_t.lencode=_t.lendyn,_t.lenbits=7,Ce={bits:_t.lenbits},De=Ut(0,_t.lens,0,19,_t.lencode,0,_t.work,Ce),_t.lenbits=Ce.bits,De){ae.msg="invalid code lengths set",_t.mode=30;break}_t.have=0,_t.mode=19;case 19:for(;_t.have<_t.nlen+_t.ndist;){for(;Pn=(Ht=_t.lencode[Ee&(1<<_t.lenbits)-1])>>>16&255,Di=65535&Ht,!((En=Ht>>>24)<=xe);){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(Di<16)Ee>>>=En,xe-=En,_t.lens[_t.have++]=Di;else{if(Di===16){for(qt=En+2;xe<qt;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(Ee>>>=En,xe-=En,_t.have===0){ae.msg="invalid bit length repeat",_t.mode=30;break}ut=_t.lens[_t.have-1],wr=3+(3&Ee),Ee>>>=2,xe-=2}else if(Di===17){for(qt=En+3;xe<qt;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}xe-=En,ut=0,wr=3+(7&(Ee>>>=En)),Ee>>>=3,xe-=3}else{for(qt=En+7;xe<qt;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}xe-=En,ut=0,wr=11+(127&(Ee>>>=En)),Ee>>>=7,xe-=7}if(_t.have+wr>_t.nlen+_t.ndist){ae.msg="invalid bit length repeat",_t.mode=30;break}for(;wr--;)_t.lens[_t.have++]=ut}}if(_t.mode===30)break;if(_t.lens[256]===0){ae.msg="invalid code -- missing end-of-block",_t.mode=30;break}if(_t.lenbits=9,Ce={bits:_t.lenbits},De=Ut(te,_t.lens,0,_t.nlen,_t.lencode,0,_t.work,Ce),_t.lenbits=Ce.bits,De){ae.msg="invalid literal/lengths set",_t.mode=30;break}if(_t.distbits=6,_t.distcode=_t.distdyn,Ce={bits:_t.distbits},De=Ut(ee,_t.lens,_t.nlen,_t.ndist,_t.distcode,0,_t.work,Ce),_t.distbits=Ce.bits,De){ae.msg="invalid distances set",_t.mode=30;break}if(_t.mode=20,Ie===6)break t;case 20:_t.mode=21;case 21:if(6<=lr&&258<=Jr){ae.next_out=dn,ae.avail_out=Jr,ae.next_in=rr,ae.avail_in=lr,_t.hold=Ee,_t.bits=xe,At(ae,Mr),dn=ae.next_out,an=ae.output,Jr=ae.avail_out,rr=ae.next_in,He=ae.input,lr=ae.avail_in,Ee=_t.hold,xe=_t.bits,_t.mode===12&&(_t.back=-1);break}for(_t.back=0;Pn=(Ht=_t.lencode[Ee&(1<<_t.lenbits)-1])>>>16&255,Di=65535&Ht,!((En=Ht>>>24)<=xe);){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(Pn&&!(240&Pn)){for(ci=En,ds=Pn,$a=Di;Pn=(Ht=_t.lencode[$a+((Ee&(1<<ci+ds)-1)>>ci)])>>>16&255,Di=65535&Ht,!(ci+(En=Ht>>>24)<=xe);){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}Ee>>>=ci,xe-=ci,_t.back+=ci}if(Ee>>>=En,xe-=En,_t.back+=En,_t.length=Di,Pn===0){_t.mode=26;break}if(32&Pn){_t.back=-1,_t.mode=12;break}if(64&Pn){ae.msg="invalid literal/length code",_t.mode=30;break}_t.extra=15&Pn,_t.mode=22;case 22:if(_t.extra){for(qt=_t.extra;xe<qt;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}_t.length+=Ee&(1<<_t.extra)-1,Ee>>>=_t.extra,xe-=_t.extra,_t.back+=_t.extra}_t.was=_t.length,_t.mode=23;case 23:for(;Pn=(Ht=_t.distcode[Ee&(1<<_t.distbits)-1])>>>16&255,Di=65535&Ht,!((En=Ht>>>24)<=xe);){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(!(240&Pn)){for(ci=En,ds=Pn,$a=Di;Pn=(Ht=_t.distcode[$a+((Ee&(1<<ci+ds)-1)>>ci)])>>>16&255,Di=65535&Ht,!(ci+(En=Ht>>>24)<=xe);){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}Ee>>>=ci,xe-=ci,_t.back+=ci}if(Ee>>>=En,xe-=En,_t.back+=En,64&Pn){ae.msg="invalid distance code",_t.mode=30;break}_t.offset=Di,_t.extra=15&Pn,_t.mode=24;case 24:if(_t.extra){for(qt=_t.extra;xe<qt;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}_t.offset+=Ee&(1<<_t.extra)-1,Ee>>>=_t.extra,xe-=_t.extra,_t.back+=_t.extra}if(_t.offset>_t.dmax){ae.msg="invalid distance too far back",_t.mode=30;break}_t.mode=25;case 25:if(Jr===0)break t;if(wr=Mr-Jr,_t.offset>wr){if((wr=_t.offset-wr)>_t.whave&&_t.sane){ae.msg="invalid distance too far back",_t.mode=30;break}ii=wr>_t.wnext?(wr-=_t.wnext,_t.wsize-wr):_t.wnext-wr,wr>_t.length&&(wr=_t.length),Hi=_t.window}else Hi=an,ii=dn-_t.offset,wr=_t.length;for(Jr<wr&&(wr=Jr),Jr-=wr,_t.length-=wr;an[dn++]=Hi[ii++],--wr;);_t.length===0&&(_t.mode=21);break;case 26:if(Jr===0)break t;an[dn++]=_t.length,Jr--,_t.mode=21;break;case 27:if(_t.wrap){for(;xe<32;){if(lr===0)break t;lr--,Ee|=He[rr++]<<xe,xe+=8}if(Mr-=Jr,ae.total_out+=Mr,_t.total+=Mr,Mr&&(ae.adler=_t.check=_t.flags?yt(_t.check,an,Mr,dn-Mr):wt(_t.check,an,Mr,dn-Mr)),Mr=Jr,(_t.flags?Ee:Lt(Ee))!==_t.check){ae.msg="incorrect data check",_t.mode=30;break}xe=Ee=0}_t.mode=28;case 28:if(_t.wrap&&_t.flags){for(;xe<32;){if(lr===0)break t;lr--,Ee+=He[rr++]<<xe,xe+=8}if(Ee!==(4294967295&_t.total)){ae.msg="incorrect length check",_t.mode=30;break}xe=Ee=0}_t.mode=29;case 29:De=1;break t;case 30:De=-3;break t;case 31:return-4;case 32:default:return Rt}return ae.next_out=dn,ae.avail_out=Jr,ae.next_in=rr,ae.avail_in=lr,_t.hold=Ee,_t.bits=xe,(_t.wsize||Mr!==ae.avail_out&&_t.mode<30&&(_t.mode<27||Ie!==4))&&Vr(ae,ae.output,ae.next_out,Mr-ae.avail_out)?(_t.mode=31,-4):($r-=ae.avail_in,Mr-=ae.avail_out,ae.total_in+=$r,ae.total_out+=Mr,_t.total+=Mr,_t.wrap&&Mr&&(ae.adler=_t.check=_t.flags?yt(_t.check,an,Mr,ae.next_out-Mr):wt(_t.check,an,Mr,ae.next_out-Mr)),ae.data_type=_t.bits+(_t.last?64:0)+(_t.mode===12?128:0)+(_t.mode===20||_t.mode===15?256:0),($r==0&&Mr===0||Ie===4)&&De===ne&&(De=-5),De)},Z.inflateEnd=function(ae){if(!ae||!ae.state)return Rt;var Ie=ae.state;return Ie.window&&(Ie.window=null),ae.state=null,ne},Z.inflateGetHeader=function(ae,Ie){var _t;return ae&&ae.state&&2&(_t=ae.state).wrap?((_t.head=Ie).done=!1,ne):Rt},Z.inflateSetDictionary=function(ae,Ie){var _t,He=Ie.length;return ae&&ae.state?(_t=ae.state).wrap!==0&&_t.mode!==11?Rt:_t.mode===11&&wt(1,Ie,He,0)!==_t.check?-3:Vr(ae,Ie,He,He)?(_t.mode=31,-4):(_t.havedict=1,ne):Rt},Z.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(D,V,Z){var et=D("../utils/common"),wt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],yt=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],At=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Ut=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];V.exports=function(te,ee,ne,Rt,Kt,Ot,Wt,Lt){var Yt,le,ve,pe,Ue,Oe,ar,Re,mr,Vr=Lt.bits,ae=0,Ie=0,_t=0,He=0,an=0,rr=0,dn=0,lr=0,Jr=0,Ee=0,xe=null,$r=0,Mr=new et.Buf16(16),wr=new et.Buf16(16),ii=null,Hi=0;for(ae=0;ae<=15;ae++)Mr[ae]=0;for(Ie=0;Ie<Rt;Ie++)Mr[ee[ne+Ie]]++;for(an=Vr,He=15;1<=He&&Mr[He]===0;He--);if(He<an&&(an=He),He===0)return Kt[Ot++]=20971520,Kt[Ot++]=20971520,Lt.bits=1,0;for(_t=1;_t<He&&Mr[_t]===0;_t++);for(an<_t&&(an=_t),ae=lr=1;ae<=15;ae++)if(lr<<=1,(lr-=Mr[ae])<0)return-1;if(0<lr&&(te===0||He!==1))return-1;for(wr[1]=0,ae=1;ae<15;ae++)wr[ae+1]=wr[ae]+Mr[ae];for(Ie=0;Ie<Rt;Ie++)ee[ne+Ie]!==0&&(Wt[wr[ee[ne+Ie]]++]=Ie);if(Oe=te===0?(xe=ii=Wt,19):te===1?(xe=wt,$r-=257,ii=yt,Hi-=257,256):(xe=At,ii=Ut,-1),ae=_t,Ue=Ot,dn=Ie=Ee=0,ve=-1,pe=(Jr=1<<(rr=an))-1,te===1&&852<Jr||te===2&&592<Jr)return 1;for(;;){for(ar=ae-dn,mr=Wt[Ie]<Oe?(Re=0,Wt[Ie]):Wt[Ie]>Oe?(Re=ii[Hi+Wt[Ie]],xe[$r+Wt[Ie]]):(Re=96,0),Yt=1<<ae-dn,_t=le=1<<rr;Kt[Ue+(Ee>>dn)+(le-=Yt)]=ar<<24|Re<<16|mr|0,le!==0;);for(Yt=1<<ae-1;Ee&Yt;)Yt>>=1;if(Yt!==0?(Ee&=Yt-1,Ee+=Yt):Ee=0,Ie++,--Mr[ae]==0){if(ae===He)break;ae=ee[ne+Wt[Ie]]}if(an<ae&&(Ee&pe)!==ve){for(dn===0&&(dn=an),Ue+=_t,lr=1<<(rr=ae-dn);rr+dn<He&&!((lr-=Mr[rr+dn])<=0);)rr++,lr<<=1;if(Jr+=1<<rr,te===1&&852<Jr||te===2&&592<Jr)return 1;Kt[ve=Ee&pe]=an<<24|rr<<16|Ue-Ot|0}}return Ee!==0&&(Kt[Ue+Ee]=ae-dn<<24|64<<16|0),Lt.bits=an,0}},{"../utils/common":41}],51:[function(D,V,Z){V.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"}},{}],52:[function(D,V,Z){var et=D("../utils/common"),wt=0,yt=1;function At(Ht){for(var ce=Ht.length;0<=--ce;)Ht[ce]=0}var Ut=0,te=29,ee=256,ne=ee+1+te,Rt=30,Kt=19,Ot=2*ne+1,Wt=15,Lt=16,Yt=7,le=256,ve=16,pe=17,Ue=18,Oe=[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],ar=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],mr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vr=new Array(2*(ne+2));At(Vr);var ae=new Array(2*Rt);At(ae);var Ie=new Array(512);At(Ie);var _t=new Array(256);At(_t);var He=new Array(te);At(He);var an,rr,dn,lr=new Array(Rt);function Jr(Ht,ce,Xe,Qe,we){this.static_tree=Ht,this.extra_bits=ce,this.extra_base=Xe,this.elems=Qe,this.max_length=we,this.has_stree=Ht&&Ht.length}function Ee(Ht,ce){this.dyn_tree=Ht,this.max_code=0,this.stat_desc=ce}function xe(Ht){return Ht<256?Ie[Ht]:Ie[256+(Ht>>>7)]}function $r(Ht,ce){Ht.pending_buf[Ht.pending++]=255&ce,Ht.pending_buf[Ht.pending++]=ce>>>8&255}function Mr(Ht,ce,Xe){Ht.bi_valid>Lt-Xe?(Ht.bi_buf|=ce<<Ht.bi_valid&65535,$r(Ht,Ht.bi_buf),Ht.bi_buf=ce>>Lt-Ht.bi_valid,Ht.bi_valid+=Xe-Lt):(Ht.bi_buf|=ce<<Ht.bi_valid&65535,Ht.bi_valid+=Xe)}function wr(Ht,ce,Xe){Mr(Ht,Xe[2*ce],Xe[2*ce+1])}function ii(Ht,ce){for(var Xe=0;Xe|=1&Ht,Ht>>>=1,Xe<<=1,0<--ce;);return Xe>>>1}function Hi(Ht,ce,Xe){var Qe,we,ur=new Array(Wt+1),Rr=0;for(Qe=1;Qe<=Wt;Qe++)ur[Qe]=Rr=Rr+Xe[Qe-1]<<1;for(we=0;we<=ce;we++){var hr=Ht[2*we+1];hr!==0&&(Ht[2*we]=ii(ur[hr]++,hr))}}function En(Ht){var ce;for(ce=0;ce<ne;ce++)Ht.dyn_ltree[2*ce]=0;for(ce=0;ce<Rt;ce++)Ht.dyn_dtree[2*ce]=0;for(ce=0;ce<Kt;ce++)Ht.bl_tree[2*ce]=0;Ht.dyn_ltree[2*le]=1,Ht.opt_len=Ht.static_len=0,Ht.last_lit=Ht.matches=0}function Pn(Ht){8<Ht.bi_valid?$r(Ht,Ht.bi_buf):0<Ht.bi_valid&&(Ht.pending_buf[Ht.pending++]=Ht.bi_buf),Ht.bi_buf=0,Ht.bi_valid=0}function Di(Ht,ce,Xe,Qe){var we=2*ce,ur=2*Xe;return Ht[we]<Ht[ur]||Ht[we]===Ht[ur]&&Qe[ce]<=Qe[Xe]}function ci(Ht,ce,Xe){for(var Qe=Ht.heap[Xe],we=Xe<<1;we<=Ht.heap_len&&(we<Ht.heap_len&&Di(ce,Ht.heap[we+1],Ht.heap[we],Ht.depth)&&we++,!Di(ce,Qe,Ht.heap[we],Ht.depth));)Ht.heap[Xe]=Ht.heap[we],Xe=we,we<<=1;Ht.heap[Xe]=Qe}function ds(Ht,ce,Xe){var Qe,we,ur,Rr,hr=0;if(Ht.last_lit!==0)for(;Qe=Ht.pending_buf[Ht.d_buf+2*hr]<<8|Ht.pending_buf[Ht.d_buf+2*hr+1],we=Ht.pending_buf[Ht.l_buf+hr],hr++,Qe===0?wr(Ht,we,ce):(wr(Ht,(ur=_t[we])+ee+1,ce),(Rr=Oe[ur])!==0&&Mr(Ht,we-=He[ur],Rr),wr(Ht,ur=xe(--Qe),Xe),(Rr=ar[ur])!==0&&Mr(Ht,Qe-=lr[ur],Rr)),hr<Ht.last_lit;);wr(Ht,le,ce)}function $a(Ht,ce){var Xe,Qe,we,ur=ce.dyn_tree,Rr=ce.stat_desc.static_tree,hr=ce.stat_desc.has_stree,Ur=ce.stat_desc.elems,$n=-1;for(Ht.heap_len=0,Ht.heap_max=Ot,Xe=0;Xe<Ur;Xe++)ur[2*Xe]!==0?(Ht.heap[++Ht.heap_len]=$n=Xe,Ht.depth[Xe]=0):ur[2*Xe+1]=0;for(;Ht.heap_len<2;)ur[2*(we=Ht.heap[++Ht.heap_len]=$n<2?++$n:0)]=1,Ht.depth[we]=0,Ht.opt_len--,hr&&(Ht.static_len-=Rr[2*we+1]);for(ce.max_code=$n,Xe=Ht.heap_len>>1;1<=Xe;Xe--)ci(Ht,ur,Xe);for(we=Ur;Xe=Ht.heap[1],Ht.heap[1]=Ht.heap[Ht.heap_len--],ci(Ht,ur,1),Qe=Ht.heap[1],Ht.heap[--Ht.heap_max]=Xe,Ht.heap[--Ht.heap_max]=Qe,ur[2*we]=ur[2*Xe]+ur[2*Qe],Ht.depth[we]=(Ht.depth[Xe]>=Ht.depth[Qe]?Ht.depth[Xe]:Ht.depth[Qe])+1,ur[2*Xe+1]=ur[2*Qe+1]=we,Ht.heap[1]=we++,ci(Ht,ur,1),2<=Ht.heap_len;);Ht.heap[--Ht.heap_max]=Ht.heap[1],function(Cn,Na){var El,Qa,Cl,fi,_u,ku,Ls=Na.dyn_tree,Ec=Na.max_code,yp=Na.stat_desc.static_tree,fh=Na.stat_desc.has_stree,wp=Na.stat_desc.extra_bits,Cc=Na.stat_desc.extra_base,Al=Na.stat_desc.max_length,Ml=0;for(fi=0;fi<=Wt;fi++)Cn.bl_count[fi]=0;for(Ls[2*Cn.heap[Cn.heap_max]+1]=0,El=Cn.heap_max+1;El<Ot;El++)Al<(fi=Ls[2*Ls[2*(Qa=Cn.heap[El])+1]+1]+1)&&(fi=Al,Ml++),Ls[2*Qa+1]=fi,Ec<Qa||(Cn.bl_count[fi]++,_u=0,Cc<=Qa&&(_u=wp[Qa-Cc]),ku=Ls[2*Qa],Cn.opt_len+=ku*(fi+_u),fh&&(Cn.static_len+=ku*(yp[2*Qa+1]+_u)));if(Ml!==0){do{for(fi=Al-1;Cn.bl_count[fi]===0;)fi--;Cn.bl_count[fi]--,Cn.bl_count[fi+1]+=2,Cn.bl_count[Al]--,Ml-=2}while(0<Ml);for(fi=Al;fi!==0;fi--)for(Qa=Cn.bl_count[fi];Qa!==0;)Ec<(Cl=Cn.heap[--El])||(Ls[2*Cl+1]!==fi&&(Cn.opt_len+=(fi-Ls[2*Cl+1])*Ls[2*Cl],Ls[2*Cl+1]=fi),Qa--)}}(Ht,ce),Hi(ur,$n,Ht.bl_count)}function ut(Ht,ce,Xe){var Qe,we,ur=-1,Rr=ce[1],hr=0,Ur=7,$n=4;for(Rr===0&&(Ur=138,$n=3),ce[2*(Xe+1)+1]=65535,Qe=0;Qe<=Xe;Qe++)we=Rr,Rr=ce[2*(Qe+1)+1],++hr<Ur&&we===Rr||(hr<$n?Ht.bl_tree[2*we]+=hr:we!==0?(we!==ur&&Ht.bl_tree[2*we]++,Ht.bl_tree[2*ve]++):hr<=10?Ht.bl_tree[2*pe]++:Ht.bl_tree[2*Ue]++,ur=we,$n=(hr=0)===Rr?(Ur=138,3):we===Rr?(Ur=6,3):(Ur=7,4))}function De(Ht,ce,Xe){var Qe,we,ur=-1,Rr=ce[1],hr=0,Ur=7,$n=4;for(Rr===0&&(Ur=138,$n=3),Qe=0;Qe<=Xe;Qe++)if(we=Rr,Rr=ce[2*(Qe+1)+1],!(++hr<Ur&&we===Rr)){if(hr<$n)for(;wr(Ht,we,Ht.bl_tree),--hr!=0;);else we!==0?(we!==ur&&(wr(Ht,we,Ht.bl_tree),hr--),wr(Ht,ve,Ht.bl_tree),Mr(Ht,hr-3,2)):hr<=10?(wr(Ht,pe,Ht.bl_tree),Mr(Ht,hr-3,3)):(wr(Ht,Ue,Ht.bl_tree),Mr(Ht,hr-11,7));ur=we,$n=(hr=0)===Rr?(Ur=138,3):we===Rr?(Ur=6,3):(Ur=7,4)}}At(lr);var Ce=!1;function qt(Ht,ce,Xe,Qe){Mr(Ht,(Ut<<1)+(Qe?1:0),3),function(we,ur,Rr,hr){Pn(we),$r(we,Rr),$r(we,~Rr),et.arraySet(we.pending_buf,we.window,ur,Rr,we.pending),we.pending+=Rr}(Ht,ce,Xe)}Z._tr_init=function(Ht){Ce||(function(){var ce,Xe,Qe,we,ur,Rr=new Array(Wt+1);for(we=Qe=0;we<te-1;we++)for(He[we]=Qe,ce=0;ce<1<<Oe[we];ce++)_t[Qe++]=we;for(_t[Qe-1]=we,we=ur=0;we<16;we++)for(lr[we]=ur,ce=0;ce<1<<ar[we];ce++)Ie[ur++]=we;for(ur>>=7;we<Rt;we++)for(lr[we]=ur<<7,ce=0;ce<1<<ar[we]-7;ce++)Ie[256+ur++]=we;for(Xe=0;Xe<=Wt;Xe++)Rr[Xe]=0;for(ce=0;ce<=143;)Vr[2*ce+1]=8,ce++,Rr[8]++;for(;ce<=255;)Vr[2*ce+1]=9,ce++,Rr[9]++;for(;ce<=279;)Vr[2*ce+1]=7,ce++,Rr[7]++;for(;ce<=287;)Vr[2*ce+1]=8,ce++,Rr[8]++;for(Hi(Vr,ne+1,Rr),ce=0;ce<Rt;ce++)ae[2*ce+1]=5,ae[2*ce]=ii(ce,5);an=new Jr(Vr,Oe,ee+1,ne,Wt),rr=new Jr(ae,ar,0,Rt,Wt),dn=new Jr(new Array(0),Re,0,Kt,Yt)}(),Ce=!0),Ht.l_desc=new Ee(Ht.dyn_ltree,an),Ht.d_desc=new Ee(Ht.dyn_dtree,rr),Ht.bl_desc=new Ee(Ht.bl_tree,dn),Ht.bi_buf=0,Ht.bi_valid=0,En(Ht)},Z._tr_stored_block=qt,Z._tr_flush_block=function(Ht,ce,Xe,Qe){var we,ur,Rr=0;0<Ht.level?(Ht.strm.data_type===2&&(Ht.strm.data_type=function(hr){var Ur,$n=4093624447;for(Ur=0;Ur<=31;Ur++,$n>>>=1)if(1&$n&&hr.dyn_ltree[2*Ur]!==0)return wt;if(hr.dyn_ltree[18]!==0||hr.dyn_ltree[20]!==0||hr.dyn_ltree[26]!==0)return yt;for(Ur=32;Ur<ee;Ur++)if(hr.dyn_ltree[2*Ur]!==0)return yt;return wt}(Ht)),$a(Ht,Ht.l_desc),$a(Ht,Ht.d_desc),Rr=function(hr){var Ur;for(ut(hr,hr.dyn_ltree,hr.l_desc.max_code),ut(hr,hr.dyn_dtree,hr.d_desc.max_code),$a(hr,hr.bl_desc),Ur=Kt-1;3<=Ur&&hr.bl_tree[2*mr[Ur]+1]===0;Ur--);return hr.opt_len+=3*(Ur+1)+5+5+4,Ur}(Ht),we=Ht.opt_len+3+7>>>3,(ur=Ht.static_len+3+7>>>3)<=we&&(we=ur)):we=ur=Xe+5,Xe+4<=we&&ce!==-1?qt(Ht,ce,Xe,Qe):Ht.strategy===4||ur===we?(Mr(Ht,2+(Qe?1:0),3),ds(Ht,Vr,ae)):(Mr(Ht,4+(Qe?1:0),3),function(hr,Ur,$n,Cn){var Na;for(Mr(hr,Ur-257,5),Mr(hr,$n-1,5),Mr(hr,Cn-4,4),Na=0;Na<Cn;Na++)Mr(hr,hr.bl_tree[2*mr[Na]+1],3);De(hr,hr.dyn_ltree,Ur-1),De(hr,hr.dyn_dtree,$n-1)}(Ht,Ht.l_desc.max_code+1,Ht.d_desc.max_code+1,Rr+1),ds(Ht,Ht.dyn_ltree,Ht.dyn_dtree)),En(Ht),Qe&&Pn(Ht)},Z._tr_tally=function(Ht,ce,Xe){return Ht.pending_buf[Ht.d_buf+2*Ht.last_lit]=ce>>>8&255,Ht.pending_buf[Ht.d_buf+2*Ht.last_lit+1]=255&ce,Ht.pending_buf[Ht.l_buf+Ht.last_lit]=255&Xe,Ht.last_lit++,ce===0?Ht.dyn_ltree[2*Xe]++:(Ht.matches++,ce--,Ht.dyn_ltree[2*(_t[Xe]+ee+1)]++,Ht.dyn_dtree[2*xe(ce)]++),Ht.last_lit===Ht.lit_bufsize-1},Z._tr_align=function(Ht){Mr(Ht,2,3),wr(Ht,le,Vr),function(ce){ce.bi_valid===16?($r(ce,ce.bi_buf),ce.bi_buf=0,ce.bi_valid=0):8<=ce.bi_valid&&(ce.pending_buf[ce.pending++]=255&ce.bi_buf,ce.bi_buf>>=8,ce.bi_valid-=8)}(Ht)}},{"../utils/common":41}],53:[function(D,V,Z){V.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(D,V,Z){(function(et){(function(wt,yt){if(!wt.setImmediate){var At,Ut,te,ee,ne=1,Rt={},Kt=!1,Ot=wt.document,Wt=Object.getPrototypeOf&&Object.getPrototypeOf(wt);Wt=Wt&&Wt.setTimeout?Wt:wt,At={}.toString.call(wt.process)==="[object process]"?function(ve){process.nextTick(function(){Yt(ve)})}:function(){if(wt.postMessage&&!wt.importScripts){var ve=!0,pe=wt.onmessage;return wt.onmessage=function(){ve=!1},wt.postMessage("","*"),wt.onmessage=pe,ve}}()?(ee="setImmediate$"+Math.random()+"$",wt.addEventListener?wt.addEventListener("message",le,!1):wt.attachEvent("onmessage",le),function(ve){wt.postMessage(ee+ve,"*")}):wt.MessageChannel?((te=new MessageChannel).port1.onmessage=function(ve){Yt(ve.data)},function(ve){te.port2.postMessage(ve)}):Ot&&"onreadystatechange"in Ot.createElement("script")?(Ut=Ot.documentElement,function(ve){var pe=Ot.createElement("script");pe.onreadystatechange=function(){Yt(ve),pe.onreadystatechange=null,Ut.removeChild(pe),pe=null},Ut.appendChild(pe)}):function(ve){setTimeout(Yt,0,ve)},Wt.setImmediate=function(ve){typeof ve!="function"&&(ve=new Function(""+ve));for(var pe=new Array(arguments.length-1),Ue=0;Ue<pe.length;Ue++)pe[Ue]=arguments[Ue+1];var Oe={callback:ve,args:pe};return Rt[ne]=Oe,At(ne),ne++},Wt.clearImmediate=Lt}function Lt(ve){delete Rt[ve]}function Yt(ve){if(Kt)setTimeout(Yt,0,ve);else{var pe=Rt[ve];if(pe){Kt=!0;try{(function(Ue){var Oe=Ue.callback,ar=Ue.args;switch(ar.length){case 0:Oe();break;case 1:Oe(ar[0]);break;case 2:Oe(ar[0],ar[1]);break;case 3:Oe(ar[0],ar[1],ar[2]);break;default:Oe.apply(yt,ar)}})(pe)}finally{Lt(ve),Kt=!1}}}}function le(ve){ve.source===wt&&typeof ve.data=="string"&&ve.data.indexOf(ee)===0&&Yt(+ve.data.slice(ee.length))}})(typeof self>"u"?et===void 0?this:et:self)}).call(this,typeof $t<"u"?$t:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(go);var ke=go.exports;const nn=uu(ke);var zn;(function(ht){ht.OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",ht.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",ht.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",ht.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",ht.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",ht.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",ht.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",ht.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",ht.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",ht.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",ht.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",ht.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",ht.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",ht.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",ht.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",ht.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ht.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",ht.Comments="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",ht.CommentsExtended="http://schemas.microsoft.com/office/2011/relationships/commentsExtended"})(zn||(zn={}));function pi(ht,B){return B.elements(ht).map(D=>({id:B.attr(D,"Id"),type:B.attr(D,"Type"),target:B.attr(D,"Target"),targetMode:B.attr(D,"TargetMode")}))}const Qn={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},Nn={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"}};function Va(ht,B=Nn.Dxa){return ht==null||/.+(p[xt]|[%])$/.test(ht)?ht:`${(parseInt(ht)*B.mul).toFixed(2)}${B.unit}`}function bo(ht,B=!1){switch(ht){case"1":return!0;case"0":return!1;case"on":return!0;case"off":return!1;case"true":return!0;case"false":return!1;default:return B}}function Ti(ht,B,D){if(ht.namespaceURI!=Qn.wordml)return!1;switch(ht.localName){case"color":B.color=D.attr(ht,"val");break;case"sz":B.fontSize=D.lengthAttr(ht,"val",Nn.FontSize);break;default:return!1}return!0}function xl(ht,B=!1){B&&(ht=ht.replace(/<[?].*[?]>/,"")),ht=Hd(ht);const D=new DOMParser().parseFromString(ht,"application/xml"),V=Ud(D);if(V)throw new Error(V);return D}function Ud(ht){var B;return(B=ht.getElementsByTagName("parsererror")[0])==null?void 0:B.textContent}function Hd(ht){return ht.charCodeAt(0)===65279?ht.substring(1):ht}function Wd(ht){return new XMLSerializer().serializeToString(ht)}class fc{elements(B,D=null){const V=[];for(let Z=0,et=B.childNodes.length;Z<et;Z++){let wt=B.childNodes.item(Z);wt.nodeType==1&&(D==null||wt.localName==D)&&V.push(wt)}return V}element(B,D){for(let V=0,Z=B.childNodes.length;V<Z;V++){let et=B.childNodes.item(V);if(et.nodeType==1&&et.localName==D)return et}return null}elementAttr(B,D,V){var Z=this.element(B,D);return Z?this.attr(Z,V):void 0}attrs(B){return Array.from(B.attributes)}attr(B,D){for(let V=0,Z=B.attributes.length;V<Z;V++){let et=B.attributes.item(V);if(et.localName==D)return et.value}return null}intAttr(B,D,V=null){var Z=this.attr(B,D);return Z?parseInt(Z):V}hexAttr(B,D,V=null){var Z=this.attr(B,D);return Z?parseInt(Z,16):V}floatAttr(B,D,V=null){var Z=this.attr(B,D);return Z?parseFloat(Z):V}boolAttr(B,D,V=null){return bo(this.attr(B,D),V)}lengthAttr(B,D,V=Nn.Dxa){return Va(this.attr(B,D),V)}}const de=new fc;class Ia{constructor(B,D){this._package=B,this.path=D}load(){return Xi(this,null,function*(){this.rels=yield this._package.loadRelationships(this.path);const B=yield this._package.load(this.path),D=this._package.parseXmlDocument(B);this._package.options.keepOrigin&&(this._xmlDocument=D),this.parseXml(D.firstElementChild)})}save(){this._package.update(this.path,Wd(this._xmlDocument))}parseXml(B){}}const Vd={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function Mf(ht,B){return B.elements(ht).map(D=>hc(D,B))}function hc(ht,B){let D={name:B.attr(ht,"name"),embedFontRefs:[]};for(let V of B.elements(ht))switch(V.localName){case"family":D.family=B.attr(V,"val");break;case"altName":D.altName=B.attr(V,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":D.embedFontRefs.push(yo(V,B));break}return D}function yo(ht,B){return{id:B.attr(ht,"id"),key:B.attr(ht,"fontKey"),type:Vd[ht.localName]}}class ma extends Ia{parseXml(B){this.fonts=Mf(B,this._package.xmlParser)}}function $d(ht){return ht==null?void 0:ht.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}function cu(ht){let B=ht.lastIndexOf("/")+1,D=B==0?"":ht.substring(0,B),V=B==0?ht:ht.substring(B);return[D,V]}function dc(ht,B){try{const D="http://docx/";return new URL(ht,D+B).toString().substring(D.length)}catch{return`${B}${ht}`}}function Ps(ht,B){return ht.reduce((D,V)=>(D[B(V)]=V,D),{})}function pc(ht){return new Promise((B,D)=>{const V=new FileReader;V.onloadend=()=>B(V.result),V.onerror=()=>D(),V.readAsDataURL(ht)})}function fu(ht){return ht&&typeof ht=="object"&&!Array.isArray(ht)}function Rf(ht){return typeof ht=="string"||ht instanceof String}function si(ht,...B){var D;if(!B.length)return ht;const V=B.shift();if(fu(ht)&&fu(V))for(const Z in V)if(fu(V[Z])){const et=(D=ht[Z])!=null?D:ht[Z]={};si(et,V[Z])}else ht[Z]=V[Z];return si(ht,...B)}function un(ht){return Array.isArray(ht)?ht:[ht]}class hu{constructor(B,D){this._zip=B,this.options=D,this.xmlParser=new fc}get(B){var D;const V=Of(B);return(D=this._zip.files[V])!=null?D:this._zip.files[V.replace(/\//g,"\\")]}update(B,D){this._zip.file(B,D)}static load(B,D){return Xi(this,null,function*(){const V=yield nn.loadAsync(B);return new hu(V,D)})}save(B="blob"){return this._zip.generateAsync({type:B})}load(B,D="string"){var V,Z;return(Z=(V=this.get(B))==null?void 0:V.async(D))!=null?Z:Promise.resolve(null)}loadRelationships(B=null){return Xi(this,null,function*(){let D="_rels/.rels";if(B!=null){const[Z,et]=cu(B);D=`${Z}_rels/${et}.rels`}const V=yield this.load(D);return V?pi(this.parseXmlDocument(V).firstElementChild,this.xmlParser):null})}parseXmlDocument(B){return xl(B,this.options.trimXmlDeclaration)}}function Of(ht){return ht.startsWith("/")?ht.substr(1):ht}class Ja extends Ia{constructor(B,D,V){super(B,D),this._documentParser=V}parseXml(B){this.body=this._documentParser.parseDocumentFile(B)}}function Sl(ht,B){return{type:B.attr(ht,"val"),color:B.attr(ht,"color"),size:B.lengthAttr(ht,"sz",Nn.Border),offset:B.lengthAttr(ht,"space",Nn.Point),frame:B.boolAttr(ht,"frame"),shadow:B.boolAttr(ht,"shadow")}}function If(ht,B){var D={};for(let V of B.elements(ht))switch(V.localName){case"left":D.left=Sl(V,B);break;case"top":D.top=Sl(V,B);break;case"right":D.right=Sl(V,B);break;case"bottom":D.bottom=Sl(V,B);break}return D}var Nf;(function(ht){ht.Continuous="continuous",ht.NextPage="nextPage",ht.NextColumn="nextColumn",ht.EvenPage="evenPage",ht.OddPage="oddPage"})(Nf||(Nf={}));function Pf(ht,B=de){var D,V,Z={};for(let et of B.elements(ht))switch(et.localName){case"pgSz":Z.pageSize={width:B.lengthAttr(et,"w"),height:B.lengthAttr(et,"h"),orientation:B.attr(et,"orient")};break;case"type":Z.type=B.attr(et,"val");break;case"pgMar":Z.pageMargins={left:B.lengthAttr(et,"left"),right:B.lengthAttr(et,"right"),top:B.lengthAttr(et,"top"),bottom:B.lengthAttr(et,"bottom"),header:B.lengthAttr(et,"header"),footer:B.lengthAttr(et,"footer"),gutter:B.lengthAttr(et,"gutter")};break;case"cols":Z.columns=Df(et,B);break;case"headerReference":((D=Z.headerRefs)!=null?D:Z.headerRefs=[]).push(Lf(et,B));break;case"footerReference":((V=Z.footerRefs)!=null?V:Z.footerRefs=[]).push(Lf(et,B));break;case"titlePg":Z.titlePage=B.boolAttr(et,"val",!0);break;case"pgBorders":Z.pageBorders=If(et,B);break;case"pgNumType":Z.pageNumber=Ff(et,B);break}return Z}function Df(ht,B){return{numberOfColumns:B.intAttr(ht,"num"),space:B.lengthAttr(ht,"space"),separator:B.boolAttr(ht,"sep"),equalWidth:B.boolAttr(ht,"equalWidth",!0),columns:B.elements(ht,"col").map(D=>({width:B.lengthAttr(D,"w"),space:B.lengthAttr(D,"space")}))}}function Ff(ht,B){return{chapSep:B.attr(ht,"chapSep"),chapStyle:B.attr(ht,"chapStyle"),format:B.attr(ht,"fmt"),start:B.intAttr(ht,"start")}}function Lf(ht,B){return{id:B.attr(ht,"id"),type:B.attr(ht,"type")}}function Ho(ht,B){return{before:B.lengthAttr(ht,"before"),after:B.lengthAttr(ht,"after"),line:B.intAttr(ht,"line"),lineRule:B.attr(ht,"lineRule")}}function mc(ht,B){let D={};for(let V of B.elements(ht))qd(V,D,B);return D}function qd(ht,B,D){return!!Ti(ht,B,D)}function Bf(ht,B){let D={};for(let V of B.elements(ht))jf(V,D,B);return D}function jf(ht,B,D){if(ht.namespaceURI!=Qn.wordml)return!1;if(Ti(ht,B,D))return!0;switch(ht.localName){case"tabs":B.tabs=Gd(ht,D);break;case"sectPr":B.sectionProps=Pf(ht,D);break;case"numPr":B.numbering=zf(ht,D);break;case"spacing":return B.lineSpacing=Ho(ht,D),!1;case"textAlignment":return B.textAlignment=D.attr(ht,"val"),!1;case"keepLines":B.keepLines=D.boolAttr(ht,"val",!0);break;case"keepNext":B.keepNext=D.boolAttr(ht,"val",!0);break;case"pageBreakBefore":B.pageBreakBefore=D.boolAttr(ht,"val",!0);break;case"outlineLvl":B.outlineLevel=D.intAttr(ht,"val");break;case"pStyle":B.styleName=D.attr(ht,"val");break;case"rPr":B.runProps=mc(ht,D);break;default:return!1}return!0}function Gd(ht,B){return B.elements(ht,"tab").map(D=>({position:B.lengthAttr(D,"pos"),leader:B.attr(D,"leader"),style:B.attr(D,"val")}))}function zf(ht,B){var D={};for(let V of B.elements(ht))switch(V.localName){case"numId":D.id=B.attr(V,"val");break;case"ilvl":D.level=B.intAttr(V,"val");break}return D}function ia(ht,B){let D={numberings:[],abstractNumberings:[],bulletPictures:[]};for(let V of B.elements(ht))switch(V.localName){case"num":D.numberings.push(du(V,B));break;case"abstractNum":D.abstractNumberings.push(Wo(V,B));break;case"numPicBullet":D.bulletPictures.push(Hf(V,B));break}return D}function du(ht,B){let D={id:B.attr(ht,"numId"),overrides:[]};for(let V of B.elements(ht))switch(V.localName){case"abstractNumId":D.abstractId=B.attr(V,"val");break;case"lvlOverride":D.overrides.push(Uf(V,B));break}return D}function Wo(ht,B){let D={id:B.attr(ht,"abstractNumId"),levels:[]};for(let V of B.elements(ht))switch(V.localName){case"name":D.name=B.attr(V,"val");break;case"multiLevelType":D.multiLevelType=B.attr(V,"val");break;case"numStyleLink":D.numberingStyleLink=B.attr(V,"val");break;case"styleLink":D.styleLink=B.attr(V,"val");break;case"lvl":D.levels.push(Vo(V,B));break}return D}function Vo(ht,B){let D={level:B.intAttr(ht,"ilvl")};for(let V of B.elements(ht))switch(V.localName){case"start":D.start=B.attr(V,"val");break;case"lvlRestart":D.restart=B.intAttr(V,"val");break;case"numFmt":D.format=B.attr(V,"val");break;case"lvlText":D.text=B.attr(V,"val");break;case"lvlJc":D.justification=B.attr(V,"val");break;case"lvlPicBulletId":D.bulletPictureId=B.attr(V,"val");break;case"pStyle":D.paragraphStyle=B.attr(V,"val");break;case"pPr":D.paragraphProps=Bf(V,B);break;case"rPr":D.runProps=mc(V,B);break}return D}function Uf(ht,B){let D={level:B.intAttr(ht,"ilvl")};for(let V of B.elements(ht))switch(V.localName){case"startOverride":D.start=B.intAttr(V,"val");break;case"lvl":D.numberingLevel=Vo(V,B);break}return D}function Hf(ht,B){var D=B.element(ht,"pict"),V=D&&B.element(D,"shape"),Z=V&&B.element(V,"imagedata");return Z?{id:B.attr(ht,"numPicBulletId"),referenceId:B.attr(Z,"id"),style:B.attr(V,"style")}:null}class er extends Ia{constructor(B,D,V){super(B,D),this._documentParser=V}parseXml(B){Object.assign(this,ia(B,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(B)}}class Wf extends Ia{constructor(B,D,V){super(B,D),this._documentParser=V}parseXml(B){this.styles=this._documentParser.parseStylesFile(B)}}var Te;(function(ht){ht.Document="document",ht.Paragraph="paragraph",ht.Run="run",ht.Break="break",ht.NoBreakHyphen="noBreakHyphen",ht.Table="table",ht.Row="row",ht.Cell="cell",ht.Hyperlink="hyperlink",ht.SmartTag="smartTag",ht.Drawing="drawing",ht.Image="image",ht.Text="text",ht.Tab="tab",ht.Symbol="symbol",ht.BookmarkStart="bookmarkStart",ht.BookmarkEnd="bookmarkEnd",ht.Footer="footer",ht.Header="header",ht.FootnoteReference="footnoteReference",ht.EndnoteReference="endnoteReference",ht.Footnote="footnote",ht.Endnote="endnote",ht.SimpleField="simpleField",ht.ComplexField="complexField",ht.Instruction="instruction",ht.VmlPicture="vmlPicture",ht.MmlMath="mmlMath",ht.MmlMathParagraph="mmlMathParagraph",ht.MmlFraction="mmlFraction",ht.MmlFunction="mmlFunction",ht.MmlFunctionName="mmlFunctionName",ht.MmlNumerator="mmlNumerator",ht.MmlDenominator="mmlDenominator",ht.MmlRadical="mmlRadical",ht.MmlBase="mmlBase",ht.MmlDegree="mmlDegree",ht.MmlSuperscript="mmlSuperscript",ht.MmlSubscript="mmlSubscript",ht.MmlPreSubSuper="mmlPreSubSuper",ht.MmlSubArgument="mmlSubArgument",ht.MmlSuperArgument="mmlSuperArgument",ht.MmlNary="mmlNary",ht.MmlDelimiter="mmlDelimiter",ht.MmlRun="mmlRun",ht.MmlEquationArray="mmlEquationArray",ht.MmlLimit="mmlLimit",ht.MmlLimitLower="mmlLimitLower",ht.MmlMatrix="mmlMatrix",ht.MmlMatrixRow="mmlMatrixRow",ht.MmlBox="mmlBox",ht.MmlBar="mmlBar",ht.MmlGroupChar="mmlGroupChar",ht.VmlElement="vmlElement",ht.Inserted="inserted",ht.Deleted="deleted",ht.DeletedText="deletedText",ht.Comment="comment",ht.CommentReference="commentReference",ht.CommentRangeStart="commentRangeStart",ht.CommentRangeEnd="commentRangeEnd"})(Te||(Te={}));class Ds{constructor(){this.children=[],this.cssStyle={}}}class pu extends Ds{constructor(){super(...arguments),this.type=Te.Header}}class vc extends Ds{constructor(){super(...arguments),this.type=Te.Footer}}class mu extends Ia{constructor(B,D,V){super(B,D),this._documentParser=V}parseXml(B){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(B)}}class gc extends mu{createRootElement(){return new pu}}class bc extends mu{createRootElement(){return new vc}}function Yd(ht,B){const D={};for(let V of B.elements(ht))switch(V.localName){case"Template":D.template=V.textContent;break;case"Pages":D.pages=$o(V.textContent);break;case"Words":D.words=$o(V.textContent);break;case"Characters":D.characters=$o(V.textContent);break;case"Application":D.application=V.textContent;break;case"Lines":D.lines=$o(V.textContent);break;case"Paragraphs":D.paragraphs=$o(V.textContent);break;case"Company":D.company=V.textContent;break;case"AppVersion":D.appVersion=V.textContent;break}return D}function $o(ht){if(typeof ht<"u")return parseInt(ht)}class Vf extends Ia{parseXml(B){this.props=Yd(B,this._package.xmlParser)}}function $f(ht,B){const D={};for(let V of B.elements(ht))switch(V.localName){case"title":D.title=V.textContent;break;case"description":D.description=V.textContent;break;case"subject":D.subject=V.textContent;break;case"creator":D.creator=V.textContent;break;case"keywords":D.keywords=V.textContent;break;case"language":D.language=V.textContent;break;case"lastModifiedBy":D.lastModifiedBy=V.textContent;break;case"revision":V.textContent&&(D.revision=parseInt(V.textContent));break}return D}class yc extends Ia{parseXml(B){this.props=$f(B,this._package.xmlParser)}}class Kd{}function qf(ht,B){var D=new Kd,V=B.element(ht,"themeElements");for(let Z of B.elements(V))switch(Z.localName){case"clrScheme":D.colorScheme=Gf(Z,B);break;case"fontScheme":D.fontScheme=Yf(Z,B);break}return D}function Gf(ht,B){var D={name:B.attr(ht,"name"),colors:{}};for(let et of B.elements(ht)){var V=B.element(et,"srgbClr"),Z=B.element(et,"sysClr");V?D.colors[et.localName]=B.attr(V,"val"):Z&&(D.colors[et.localName]=B.attr(Z,"lastClr"))}return D}function Yf(ht,B){var D={name:B.attr(ht,"name")};for(let V of B.elements(ht))switch(V.localName){case"majorFont":D.majorFont=Kf(V,B);break;case"minorFont":D.minorFont=Kf(V,B);break}return D}function Kf(ht,B){return{latinTypeface:B.elementAttr(ht,"latin","typeface"),eaTypeface:B.elementAttr(ht,"ea","typeface"),csTypeface:B.elementAttr(ht,"cs","typeface")}}class Xd extends Ia{constructor(B,D){super(B,D)}parseXml(B){this.theme=qf(B,this._package.xmlParser)}}class Xf{}class Zd extends Xf{constructor(){super(...arguments),this.type=Te.Footnote}}class Jd extends Xf{constructor(){super(...arguments),this.type=Te.Endnote}}class wc extends Ia{constructor(B,D,V){super(B,D),this._documentParser=V}}class cn extends wc{constructor(B,D,V){super(B,D,V)}parseXml(B){this.notes=this._documentParser.parseNotes(B,"footnote",Zd)}}class cr extends wc{constructor(B,D,V){super(B,D,V)}parseXml(B){this.notes=this._documentParser.parseNotes(B,"endnote",Jd)}}function Zf(ht,B){var D={};for(let V of B.elements(ht))switch(V.localName){case"defaultTabStop":D.defaultTabStop=B.lengthAttr(V,"val");break;case"footnotePr":D.footnoteProps=ge(V,B);break;case"endnotePr":D.endnoteProps=ge(V,B);break;case"autoHyphenation":D.autoHyphenation=B.boolAttr(V,"val");break}return D}function ge(ht,B){var D={defaultNoteIds:[]};for(let V of B.elements(ht))switch(V.localName){case"numFmt":D.nummeringFormat=B.attr(V,"val");break;case"footnote":case"endnote":D.defaultNoteIds.push(B.attr(V,"id"));break}return D}class Jf extends Ia{constructor(B,D){super(B,D)}parseXml(B){this.settings=Zf(B,this._package.xmlParser)}}function Zi(ht,B){return B.elements(ht,"property").map(D=>{const V=D.firstChild;return{formatId:B.attr(D,"fmtid"),name:B.attr(D,"name"),type:V.nodeName,value:V.textContent}})}class Qf extends Ia{parseXml(B){this.props=Zi(B,this._package.xmlParser)}}class Qd extends Ia{constructor(B,D,V){super(B,D),this._documentParser=V}parseXml(B){this.comments=this._documentParser.parseComments(B),this.commentMap=Ps(this.comments,D=>D.id)}}class tp extends Ia{constructor(B,D){super(B,D),this.comments=[]}parseXml(B){const D=this._package.xmlParser;for(let V of D.elements(B,"commentEx"))this.comments.push({paraId:D.attr(V,"paraId"),paraIdParent:D.attr(V,"paraIdParent"),done:D.boolAttr(V,"done")});this.commentMap=Ps(this.comments,V=>V.paraId)}}const ep=[{type:zn.OfficeDocument,target:"word/document.xml"},{type:zn.ExtendedProperties,target:"docProps/app.xml"},{type:zn.CoreProperties,target:"docProps/core.xml"},{type:zn.CustomProperties,target:"docProps/custom.xml"}];class qo{constructor(){this.parts=[],this.partsMap={}}static load(B,D,V){return Xi(this,null,function*(){var Z=new qo;return Z._options=V,Z._parser=D,Z._package=yield hu.load(B,V),Z.rels=yield Z._package.loadRelationships(),yield Promise.all(ep.map(et=>{var wt;const yt=(wt=Z.rels.find(At=>At.type===et.type))!=null?wt:et;return Z.loadRelationshipPart(yt.target,yt.type)})),Z})}save(B="blob"){return this._package.save(B)}loadRelationshipPart(B,D){return Xi(this,null,function*(){var V;if(this.partsMap[B])return this.partsMap[B];if(!this._package.get(B))return null;let Z=null;switch(D){case zn.OfficeDocument:this.documentPart=Z=new Ja(this._package,B,this._parser);break;case zn.FontTable:this.fontTablePart=Z=new ma(this._package,B);break;case zn.Numbering:this.numberingPart=Z=new er(this._package,B,this._parser);break;case zn.Styles:this.stylesPart=Z=new Wf(this._package,B,this._parser);break;case zn.Theme:this.themePart=Z=new Xd(this._package,B);break;case zn.Footnotes:this.footnotesPart=Z=new cn(this._package,B,this._parser);break;case zn.Endnotes:this.endnotesPart=Z=new cr(this._package,B,this._parser);break;case zn.Footer:Z=new bc(this._package,B,this._parser);break;case zn.Header:Z=new gc(this._package,B,this._parser);break;case zn.CoreProperties:this.corePropsPart=Z=new yc(this._package,B);break;case zn.ExtendedProperties:this.extendedPropsPart=Z=new Vf(this._package,B);break;case zn.CustomProperties:Z=new Qf(this._package,B);break;case zn.Settings:this.settingsPart=Z=new Jf(this._package,B);break;case zn.Comments:this.commentsPart=Z=new Qd(this._package,B,this._parser);break;case zn.CommentsExtended:this.commentsExtendedPart=Z=new tp(this._package,B);break}if(Z==null)return Promise.resolve(null);if(this.partsMap[B]=Z,this.parts.push(Z),yield Z.load(),((V=Z.rels)==null?void 0:V.length)>0){const[et]=cu(Z.path);yield Promise.all(Z.rels.map(wt=>this.loadRelationshipPart(dc(wt.target,et),wt.type)))}return Z})}loadDocumentImage(B,D){return Xi(this,null,function*(){const V=yield this.loadResource(D??this.documentPart,B,"blob");return this.blobToURL(V)})}loadNumberingImage(B){return Xi(this,null,function*(){const D=yield this.loadResource(this.numberingPart,B,"blob");return this.blobToURL(D)})}loadFont(B,D){return Xi(this,null,function*(){const V=yield this.loadResource(this.fontTablePart,B,"uint8array");return V&&this.blobToURL(new Blob([rp(V,D)]))})}blobToURL(B){return B?this._options.useBase64URL?pc(B):URL.createObjectURL(B):null}findPartByRelId(B,D=null){var V,Z=((V=D.rels)!=null?V:this.rels).find(wt=>wt.id==B);const et=D?cu(D.path)[0]:"";return Z?this.partsMap[dc(Z.target,et)]:null}getPathById(B,D){const V=B.rels.find(et=>et.id==D),[Z]=cu(B.path);return V?dc(V.target,Z):null}loadResource(B,D,V){const Z=this.getPathById(B,D);return Z?this._package.load(Z,V):Promise.resolve(null)}}function rp(ht,B){const D=B.replace(/{|}|-/g,""),V=new Array(16);for(let Z=0;Z<16;Z++)V[16-Z-1]=parseInt(D.substr(Z*2,2),16);for(let Z=0;Z<32;Z++)ht[Z]=ht[Z]^V[Z%16];return ht}function np(ht,B){return{type:Te.BookmarkStart,id:B.attr(ht,"id"),name:B.attr(ht,"name"),colFirst:B.intAttr(ht,"colFirst"),colLast:B.intAttr(ht,"colLast")}}function ip(ht,B){return{type:Te.BookmarkEnd,id:B.attr(ht,"id")}}class ap extends Ds{constructor(){super(...arguments),this.type=Te.VmlElement,this.attrs={}}}function _c(ht,B){var D=new ap;switch(ht.localName){case"rect":D.tagName="rect",Object.assign(D.attrs,{width:"100%",height:"100%"});break;case"oval":D.tagName="ellipse",Object.assign(D.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":D.tagName="line";break;case"shape":D.tagName="g";break;case"textbox":D.tagName="foreignObject",Object.assign(D.attrs,{width:"100%",height:"100%"});break;default:return null}for(const V of de.attrs(ht))switch(V.localName){case"style":D.cssStyleText=V.value;break;case"fillcolor":D.attrs.fill=V.value;break;case"from":const[Z,et]=th(V.value);Object.assign(D.attrs,{x1:Z,y1:et});break;case"to":const[wt,yt]=th(V.value);Object.assign(D.attrs,{x2:wt,y2:yt});break}for(const V of de.elements(ht))switch(V.localName){case"stroke":Object.assign(D.attrs,sp(V));break;case"fill":Object.assign(D.attrs,op());break;case"imagedata":D.tagName="image",Object.assign(D.attrs,{width:"100%",height:"100%"}),D.imageHref={id:de.attr(V,"id"),title:de.attr(V,"title")};break;case"txbxContent":D.children.push(...B.parseBodyElements(V));break;default:const Z=_c(V,B);Z&&D.children.push(Z);break}return D}function sp(ht){var B;return{stroke:de.attr(ht,"color"),"stroke-width":(B=de.lengthAttr(ht,"weight",Nn.Emu))!=null?B:"1px"}}function op(ht){return{}}function th(ht){return ht.split(",")}class eh extends Ds{constructor(){super(...arguments),this.type=Te.Comment}}class wo extends Ds{constructor(B){super(),this.id=B,this.type=Te.CommentReference}}class vu extends Ds{constructor(B){super(),this.id=B,this.type=Te.CommentRangeStart}}class kc extends Ds{constructor(B){super(),this.id=B,this.type=Te.CommentRangeEnd}}var tn={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};const Go=[],rh={oMath:Te.MmlMath,oMathPara:Te.MmlMathParagraph,f:Te.MmlFraction,func:Te.MmlFunction,fName:Te.MmlFunctionName,num:Te.MmlNumerator,den:Te.MmlDenominator,rad:Te.MmlRadical,deg:Te.MmlDegree,e:Te.MmlBase,sSup:Te.MmlSuperscript,sSub:Te.MmlSubscript,sPre:Te.MmlPreSubSuper,sup:Te.MmlSuperArgument,sub:Te.MmlSubArgument,d:Te.MmlDelimiter,nary:Te.MmlNary,eqArr:Te.MmlEquationArray,lim:Te.MmlLimit,limLow:Te.MmlLimitLower,m:Te.MmlMatrix,mr:Te.MmlMatrixRow,box:Te.MmlBox,bar:Te.MmlBar,groupChr:Te.MmlGroupChar};class nh{constructor(B){this.options=Tr({ignoreWidth:!1,debug:!1},B)}parseNotes(B,D,V){var Z=[];for(let et of de.elements(B,D)){const wt=new V;wt.id=de.attr(et,"id"),wt.noteType=de.attr(et,"type"),wt.children=this.parseBodyElements(et),Z.push(wt)}return Z}parseComments(B){var D=[];for(let V of de.elements(B,"comment")){const Z=new eh;Z.id=de.attr(V,"id"),Z.author=de.attr(V,"author"),Z.initials=de.attr(V,"initials"),Z.date=de.attr(V,"date"),Z.children=this.parseBodyElements(V),D.push(Z)}return D}parseDocumentFile(B){var D=de.element(B,"body"),V=de.element(B,"background"),Z=de.element(D,"sectPr");return{type:Te.Document,children:this.parseBodyElements(D),props:Z?Pf(Z,de):{},cssStyle:V?this.parseBackground(V):{}}}parseBackground(B){var D={},V=ti.colorAttr(B,"color");return V&&(D["background-color"]=V),D}parseBodyElements(B){var D=[];for(let V of de.elements(B))switch(V.localName){case"p":D.push(this.parseParagraph(V));break;case"tbl":D.push(this.parseTable(V));break;case"sdt":D.push(...this.parseSdt(V,Z=>this.parseBodyElements(Z)));break}return D}parseStylesFile(B){var D=[];return ti.foreach(B,V=>{switch(V.localName){case"style":D.push(this.parseStyle(V));break;case"docDefaults":D.push(this.parseDefaultStyles(V));break}}),D}parseDefaultStyles(B){var D={id:null,name:null,target:null,basedOn:null,styles:[]};return ti.foreach(B,V=>{switch(V.localName){case"rPrDefault":var Z=de.element(V,"rPr");Z&&D.styles.push({target:"span",values:this.parseDefaultProperties(Z,{})});break;case"pPrDefault":var et=de.element(V,"pPr");et&&D.styles.push({target:"p",values:this.parseDefaultProperties(et,{})});break}}),D}parseStyle(B){var D={id:de.attr(B,"styleId"),isDefault:de.boolAttr(B,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(de.attr(B,"type")){case"paragraph":D.target="p";break;case"table":D.target="table";break;case"character":D.target="span";break}return ti.foreach(B,V=>{switch(V.localName){case"basedOn":D.basedOn=de.attr(V,"val");break;case"name":D.name=de.attr(V,"val");break;case"link":D.linked=de.attr(V,"val");break;case"next":D.next=de.attr(V,"val");break;case"aliases":D.aliases=de.attr(V,"val").split(",");break;case"pPr":D.styles.push({target:"p",values:this.parseDefaultProperties(V,{})}),D.paragraphProps=Bf(V,de);break;case"rPr":D.styles.push({target:"span",values:this.parseDefaultProperties(V,{})}),D.runProps=mc(V,de);break;case"tblPr":case"tcPr":D.styles.push({target:"td",values:this.parseDefaultProperties(V,{})});break;case"tblStylePr":for(let Z of this.parseTableStyle(V))D.styles.push(Z);break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:this.options.debug&&console.warn(`DOCX: Unknown style element: ${V.localName}`)}}),D}parseTableStyle(B){var D=[],V=de.attr(B,"type"),Z="",et="";switch(V){case"firstRow":et=".first-row",Z="tr.first-row td";break;case"lastRow":et=".last-row",Z="tr.last-row td";break;case"firstCol":et=".first-col",Z="td.first-col";break;case"lastCol":et=".last-col",Z="td.last-col";break;case"band1Vert":et=":not(.no-vband)",Z="td.odd-col";break;case"band2Vert":et=":not(.no-vband)",Z="td.even-col";break;case"band1Horz":et=":not(.no-hband)",Z="tr.odd-row";break;case"band2Horz":et=":not(.no-hband)",Z="tr.even-row";break;default:return[]}return ti.foreach(B,wt=>{switch(wt.localName){case"pPr":D.push({target:`${Z} p`,mod:et,values:this.parseDefaultProperties(wt,{})});break;case"rPr":D.push({target:`${Z} span`,mod:et,values:this.parseDefaultProperties(wt,{})});break;case"tblPr":case"tcPr":D.push({target:Z,mod:et,values:this.parseDefaultProperties(wt,{})});break}}),D}parseNumberingFile(B){var D=[],V={},Z=[];return ti.foreach(B,et=>{switch(et.localName){case"abstractNum":this.parseAbstractNumbering(et,Z).forEach(At=>D.push(At));break;case"numPicBullet":Z.push(this.parseNumberingPicBullet(et));break;case"num":var wt=de.attr(et,"numId"),yt=de.elementAttr(et,"abstractNumId","val");V[yt]=wt;break}}),D.forEach(et=>et.id=V[et.id]),D}parseNumberingPicBullet(B){var D=de.element(B,"pict"),V=D&&de.element(D,"shape"),Z=V&&de.element(V,"imagedata");return Z?{id:de.intAttr(B,"numPicBulletId"),src:de.attr(Z,"id"),style:de.attr(V,"style")}:null}parseAbstractNumbering(B,D){var V=[],Z=de.attr(B,"abstractNumId");return ti.foreach(B,et=>{switch(et.localName){case"lvl":V.push(this.parseNumberingLevel(Z,et,D));break}}),V}parseNumberingLevel(B,D,V){var Z={id:B,level:de.intAttr(D,"ilvl"),start:1,pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return ti.foreach(D,et=>{switch(et.localName){case"start":Z.start=de.intAttr(et,"val");break;case"pPr":this.parseDefaultProperties(et,Z.pStyle);break;case"rPr":this.parseDefaultProperties(et,Z.rStyle);break;case"lvlPicBulletId":var wt=de.intAttr(et,"val");Z.bullet=V.find(yt=>(yt==null?void 0:yt.id)==wt);break;case"lvlText":Z.levelText=de.attr(et,"val");break;case"pStyle":Z.pStyleName=de.attr(et,"val");break;case"numFmt":Z.format=de.attr(et,"val");break;case"suff":Z.suff=de.attr(et,"val");break}}),Z}parseSdt(B,D){const V=de.element(B,"sdtContent");return V?D(V):[]}parseInserted(B,D){var V,Z;return{type:Te.Inserted,children:(Z=(V=D(B))==null?void 0:V.children)!=null?Z:[]}}parseDeleted(B,D){var V,Z;return{type:Te.Deleted,children:(Z=(V=D(B))==null?void 0:V.children)!=null?Z:[]}}parseParagraph(B){var D={type:Te.Paragraph,children:[]};for(let V of de.elements(B))switch(V.localName){case"pPr":this.parseParagraphProperties(V,D);break;case"r":D.children.push(this.parseRun(V,D));break;case"hyperlink":D.children.push(this.parseHyperlink(V,D));break;case"smartTag":D.children.push(this.parseSmartTag(V,D));break;case"bookmarkStart":D.children.push(np(V,de));break;case"bookmarkEnd":D.children.push(ip(V,de));break;case"commentRangeStart":D.children.push(new vu(de.attr(V,"id")));break;case"commentRangeEnd":D.children.push(new kc(de.attr(V,"id")));break;case"oMath":case"oMathPara":D.children.push(this.parseMathElement(V));break;case"sdt":D.children.push(...this.parseSdt(V,Z=>this.parseParagraph(Z).children));break;case"ins":D.children.push(this.parseInserted(V,Z=>this.parseParagraph(Z)));break;case"del":D.children.push(this.parseDeleted(V,Z=>this.parseParagraph(Z)));break}return D}parseParagraphProperties(B,D){this.parseDefaultProperties(B,D.cssStyle={},null,V=>{if(jf(V,D,de))return!0;switch(V.localName){case"pStyle":D.styleName=de.attr(V,"val");break;case"cnfStyle":D.className=Vn.classNameOfCnfStyle(V);break;case"framePr":this.parseFrame(V,D);break;case"rPr":break;default:return!1}return!0})}parseFrame(B,D){var V=de.attr(B,"dropCap");V=="drop"&&(D.cssStyle.float="left")}parseHyperlink(B,D){var V={type:Te.Hyperlink,parent:D,children:[]},Z=de.attr(B,"anchor"),et=de.attr(B,"id");return Z&&(V.href="#"+Z),et&&(V.id=et),ti.foreach(B,wt=>{switch(wt.localName){case"r":V.children.push(this.parseRun(wt,V));break}}),V}parseSmartTag(B,D){var V={type:Te.SmartTag,parent:D,children:[]},Z=de.attr(B,"uri"),et=de.attr(B,"element");return Z&&(V.uri=Z),et&&(V.element=et),ti.foreach(B,wt=>{switch(wt.localName){case"r":V.children.push(this.parseRun(wt,V));break}}),V}parseRun(B,D){var V={type:Te.Run,parent:D,children:[]};return ti.foreach(B,Z=>{switch(Z=this.checkAlternateContent(Z),Z.localName){case"t":V.children.push({type:Te.Text,text:Z.textContent});break;case"delText":V.children.push({type:Te.DeletedText,text:Z.textContent});break;case"commentReference":V.children.push(new wo(de.attr(Z,"id")));break;case"fldSimple":V.children.push({type:Te.SimpleField,instruction:de.attr(Z,"instr"),lock:de.boolAttr(Z,"lock",!1),dirty:de.boolAttr(Z,"dirty",!1)});break;case"instrText":V.fieldRun=!0,V.children.push({type:Te.Instruction,text:Z.textContent});break;case"fldChar":V.fieldRun=!0,V.children.push({type:Te.ComplexField,charType:de.attr(Z,"fldCharType"),lock:de.boolAttr(Z,"lock",!1),dirty:de.boolAttr(Z,"dirty",!1)});break;case"noBreakHyphen":V.children.push({type:Te.NoBreakHyphen});break;case"br":V.children.push({type:Te.Break,break:de.attr(Z,"type")||"textWrapping"});break;case"lastRenderedPageBreak":V.children.push({type:Te.Break,break:"lastRenderedPageBreak"});break;case"sym":V.children.push({type:Te.Symbol,font:de.attr(Z,"font"),char:de.attr(Z,"char")});break;case"tab":V.children.push({type:Te.Tab});break;case"footnoteReference":V.children.push({type:Te.FootnoteReference,id:de.attr(Z,"id")});break;case"endnoteReference":V.children.push({type:Te.EndnoteReference,id:de.attr(Z,"id")});break;case"drawing":let et=this.parseDrawing(Z);et&&(V.children=[et]);break;case"pict":V.children.push(this.parseVmlPicture(Z));break;case"rPr":this.parseRunProperties(Z,V);break}}),V}parseMathElement(B){const D=`${B.localName}Pr`,V={type:rh[B.localName],children:[]};for(const et of de.elements(B))if(rh[et.localName])V.children.push(this.parseMathElement(et));else if(et.localName=="r"){var Z=this.parseRun(et);Z.type=Te.MmlRun,V.children.push(Z)}else et.localName==D&&(V.props=this.parseMathProperies(et));return V}parseMathProperies(B){const D={};for(const V of de.elements(B))switch(V.localName){case"chr":D.char=de.attr(V,"val");break;case"vertJc":D.verticalJustification=de.attr(V,"val");break;case"pos":D.position=de.attr(V,"val");break;case"degHide":D.hideDegree=de.boolAttr(V,"val");break;case"begChr":D.beginChar=de.attr(V,"val");break;case"endChr":D.endChar=de.attr(V,"val");break}return D}parseRunProperties(B,D){this.parseDefaultProperties(B,D.cssStyle={},null,V=>{switch(V.localName){case"rStyle":D.styleName=de.attr(V,"val");break;case"vertAlign":D.verticalAlign=Vn.valueOfVertAlign(V,!0);break;default:return!1}return!0})}parseVmlPicture(B){const D={type:Te.VmlPicture,children:[]};for(const V of de.elements(B)){const Z=_c(V,this);Z&&D.children.push(Z)}return D}checkAlternateContent(B){var D;if(B.localName!="AlternateContent")return B;var V=de.element(B,"Choice");if(V){var Z=de.attr(V,"Requires"),et=B.lookupNamespaceURI(Z);if(Go.includes(et))return V.firstElementChild}return(D=de.element(B,"Fallback"))==null?void 0:D.firstElementChild}parseDrawing(B){for(var D of de.elements(B))switch(D.localName){case"inline":case"anchor":return this.parseDrawingWrapper(D)}}parseDrawingWrapper(B){var D,V={type:Te.Drawing,children:[],cssStyle:{}},Z=B.localName=="anchor";let et=null,wt=de.boolAttr(B,"simplePos");de.boolAttr(B,"behindDoc");let yt={relative:"page",align:"left",offset:"0"},At={relative:"page",align:"top",offset:"0"};for(var Ut of de.elements(B))switch(Ut.localName){case"simplePos":wt&&(yt.offset=de.lengthAttr(Ut,"x",Nn.Emu),At.offset=de.lengthAttr(Ut,"y",Nn.Emu));break;case"extent":V.cssStyle.width=de.lengthAttr(Ut,"cx",Nn.Emu),V.cssStyle.height=de.lengthAttr(Ut,"cy",Nn.Emu);break;case"positionH":case"positionV":if(!wt){let Rt=Ut.localName=="positionH"?yt:At;var te=de.element(Ut,"align"),ee=de.element(Ut,"posOffset");Rt.relative=(D=de.attr(Ut,"relativeFrom"))!=null?D:Rt.relative,te&&(Rt.align=te.textContent),ee&&(Rt.offset=ti.sizeValue(ee,Nn.Emu))}break;case"wrapTopAndBottom":et="wrapTopAndBottom";break;case"wrapNone":et="wrapNone";break;case"graphic":var ne=this.parseGraphic(Ut);ne&&V.children.push(ne);break}return et=="wrapTopAndBottom"?(V.cssStyle.display="block",yt.align&&(V.cssStyle["text-align"]=yt.align,V.cssStyle.width="100%")):et=="wrapNone"?(V.cssStyle.display="block",V.cssStyle.position="relative",V.cssStyle.width="0px",V.cssStyle.height="0px",yt.offset&&(V.cssStyle.left=yt.offset),At.offset&&(V.cssStyle.top=At.offset)):Z&&(yt.align=="left"||yt.align=="right")&&(V.cssStyle.float=yt.align),V}parseGraphic(B){var D=de.element(B,"graphicData");for(let V of de.elements(D))switch(V.localName){case"pic":return this.parsePicture(V)}return null}parsePicture(B){var D={type:Te.Image,src:"",cssStyle:{}},V=de.element(B,"blipFill"),Z=de.element(V,"blip");D.src=de.attr(Z,"embed");var et=de.element(B,"spPr"),wt=de.element(et,"xfrm");D.cssStyle.position="relative";for(var yt of de.elements(wt))switch(yt.localName){case"ext":D.cssStyle.width=de.lengthAttr(yt,"cx",Nn.Emu),D.cssStyle.height=de.lengthAttr(yt,"cy",Nn.Emu);break;case"off":D.cssStyle.left=de.lengthAttr(yt,"x",Nn.Emu),D.cssStyle.top=de.lengthAttr(yt,"y",Nn.Emu);break}return D}parseTable(B){var D={type:Te.Table,children:[]};return ti.foreach(B,V=>{switch(V.localName){case"tr":D.children.push(this.parseTableRow(V));break;case"tblGrid":D.columns=this.parseTableColumns(V);break;case"tblPr":this.parseTableProperties(V,D);break}}),D}parseTableColumns(B){var D=[];return ti.foreach(B,V=>{switch(V.localName){case"gridCol":D.push({width:de.lengthAttr(V,"w")});break}}),D}parseTableProperties(B,D){switch(D.cssStyle={},D.cellStyle={},this.parseDefaultProperties(B,D.cssStyle,D.cellStyle,V=>{switch(V.localName){case"tblStyle":D.styleName=de.attr(V,"val");break;case"tblLook":D.className=Vn.classNameOftblLook(V);break;case"tblpPr":this.parseTablePosition(V,D);break;case"tblStyleColBandSize":D.colBandSize=de.intAttr(V,"val");break;case"tblStyleRowBandSize":D.rowBandSize=de.intAttr(V,"val");break;default:return!1}return!0}),D.cssStyle["text-align"]){case"center":delete D.cssStyle["text-align"],D.cssStyle["margin-left"]="auto",D.cssStyle["margin-right"]="auto";break;case"right":delete D.cssStyle["text-align"],D.cssStyle["margin-left"]="auto";break}}parseTablePosition(B,D){var V=de.lengthAttr(B,"topFromText"),Z=de.lengthAttr(B,"bottomFromText"),et=de.lengthAttr(B,"rightFromText"),wt=de.lengthAttr(B,"leftFromText");D.cssStyle.float="left",D.cssStyle["margin-bottom"]=Vn.addSize(D.cssStyle["margin-bottom"],Z),D.cssStyle["margin-left"]=Vn.addSize(D.cssStyle["margin-left"],wt),D.cssStyle["margin-right"]=Vn.addSize(D.cssStyle["margin-right"],et),D.cssStyle["margin-top"]=Vn.addSize(D.cssStyle["margin-top"],V)}parseTableRow(B){var D={type:Te.Row,children:[]};return ti.foreach(B,V=>{switch(V.localName){case"tc":D.children.push(this.parseTableCell(V));break;case"trPr":this.parseTableRowProperties(V,D);break}}),D}parseTableRowProperties(B,D){D.cssStyle=this.parseDefaultProperties(B,{},null,V=>{switch(V.localName){case"cnfStyle":D.className=Vn.classNameOfCnfStyle(V);break;case"tblHeader":D.isHeader=de.boolAttr(V,"val");break;default:return!1}return!0})}parseTableCell(B){var D={type:Te.Cell,children:[]};return ti.foreach(B,V=>{switch(V.localName){case"tbl":D.children.push(this.parseTable(V));break;case"p":D.children.push(this.parseParagraph(V));break;case"tcPr":this.parseTableCellProperties(V,D);break}}),D}parseTableCellProperties(B,D){D.cssStyle=this.parseDefaultProperties(B,{},null,V=>{var Z;switch(V.localName){case"gridSpan":D.span=de.intAttr(V,"val",null);break;case"vMerge":D.verticalMerge=(Z=de.attr(V,"val"))!=null?Z:"continue";break;case"cnfStyle":D.className=Vn.classNameOfCnfStyle(V);break;default:return!1}return!0})}parseDefaultProperties(B,D=null,V=null,Z=null){return D=D||{},ti.foreach(B,et=>{if(!(Z!=null&&Z(et)))switch(et.localName){case"jc":D["text-align"]=Vn.valueOfJc(et);break;case"textAlignment":D["vertical-align"]=Vn.valueOfTextAlignment(et);break;case"color":D.color=ti.colorAttr(et,"val",null,tn.color);break;case"sz":D["font-size"]=D["min-height"]=de.lengthAttr(et,"val",Nn.FontSize);break;case"shd":D["background-color"]=ti.colorAttr(et,"fill",null,tn.shd);break;case"highlight":D["background-color"]=ti.colorAttr(et,"val",null,tn.highlight);break;case"vertAlign":break;case"position":D.verticalAlign=de.lengthAttr(et,"val",Nn.FontSize);break;case"tcW":if(this.options.ignoreWidth)break;case"tblW":D.width=Vn.valueOfSize(et,"w");break;case"trHeight":this.parseTrHeight(et,D);break;case"strike":D["text-decoration"]=de.boolAttr(et,"val",!0)?"line-through":"none";break;case"b":D["font-weight"]=de.boolAttr(et,"val",!0)?"bold":"normal";break;case"i":D["font-style"]=de.boolAttr(et,"val",!0)?"italic":"normal";break;case"caps":D["text-transform"]=de.boolAttr(et,"val",!0)?"uppercase":"none";break;case"smallCaps":D["font-variant"]=de.boolAttr(et,"val",!0)?"small-caps":"none";break;case"u":this.parseUnderline(et,D);break;case"ind":case"tblInd":this.parseIndentation(et,D);break;case"rFonts":this.parseFont(et,D);break;case"tblBorders":this.parseBorderProperties(et,V||D);break;case"tblCellSpacing":D["border-spacing"]=Vn.valueOfMargin(et),D["border-collapse"]="separate";break;case"pBdr":this.parseBorderProperties(et,D);break;case"bdr":D.border=Vn.valueOfBorder(et);break;case"tcBorders":this.parseBorderProperties(et,D);break;case"vanish":de.boolAttr(et,"val",!0)&&(D.display="none");break;case"kern":break;case"noWrap":break;case"tblCellMar":case"tcMar":this.parseMarginProperties(et,V||D);break;case"tblLayout":D["table-layout"]=Vn.valueOfTblLayout(et);break;case"vAlign":D["vertical-align"]=Vn.valueOfTextAlignment(et);break;case"spacing":B.localName=="pPr"&&this.parseSpacing(et,D);break;case"wordWrap":de.boolAttr(et,"val")&&(D["overflow-wrap"]="break-word");break;case"suppressAutoHyphens":D.hyphens=de.boolAttr(et,"val",!0)?"none":"auto";break;case"lang":D.$lang=de.attr(et,"val");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:this.options.debug&&console.warn(`DOCX: Unknown document element: ${B.localName}.${et.localName}`);break}}),D}parseUnderline(B,D){var V=de.attr(B,"val");if(V!=null){switch(V){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":D["text-decoration"]="underline dashed";break;case"dotted":case"dottedHeavy":D["text-decoration"]="underline dotted";break;case"double":D["text-decoration"]="underline double";break;case"single":case"thick":D["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":D["text-decoration"]="underline wavy";break;case"words":D["text-decoration"]="underline";break;case"none":D["text-decoration"]="none";break}var Z=ti.colorAttr(B,"color");Z&&(D["text-decoration-color"]=Z)}}parseFont(B,D){var V=de.attr(B,"ascii"),Z=Vn.themeValue(B,"asciiTheme"),et=[V,Z].filter(wt=>wt).join(", ");et.length>0&&(D["font-family"]=et)}parseIndentation(B,D){var V=de.lengthAttr(B,"firstLine"),Z=de.lengthAttr(B,"hanging"),et=de.lengthAttr(B,"left"),wt=de.lengthAttr(B,"start"),yt=de.lengthAttr(B,"right"),At=de.lengthAttr(B,"end");V&&(D["text-indent"]=V),Z&&(D["text-indent"]=`-${Z}`),(et||wt)&&(D["margin-left"]=et||wt),(yt||At)&&(D["margin-right"]=yt||At)}parseSpacing(B,D){var V=de.lengthAttr(B,"before"),Z=de.lengthAttr(B,"after"),et=de.intAttr(B,"line",null),wt=de.attr(B,"lineRule");if(V&&(D["margin-top"]=V),Z&&(D["margin-bottom"]=Z),et!==null)switch(wt){case"auto":D["line-height"]=`${(et/240).toFixed(2)}`;break;case"atLeast":D["line-height"]=`calc(100% + ${et/20}pt)`;break;default:D["line-height"]=D["min-height"]=`${et/20}pt`;break}}parseMarginProperties(B,D){ti.foreach(B,V=>{switch(V.localName){case"left":D["padding-left"]=Vn.valueOfMargin(V);break;case"right":D["padding-right"]=Vn.valueOfMargin(V);break;case"top":D["padding-top"]=Vn.valueOfMargin(V);break;case"bottom":D["padding-bottom"]=Vn.valueOfMargin(V);break}})}parseTrHeight(B,D){switch(de.attr(B,"hRule")){case"exact":D.height=de.lengthAttr(B,"val");break;case"atLeast":default:D.height=de.lengthAttr(B,"val");break}}parseBorderProperties(B,D){ti.foreach(B,V=>{switch(V.localName){case"start":case"left":D["border-left"]=Vn.valueOfBorder(V);break;case"end":case"right":D["border-right"]=Vn.valueOfBorder(V);break;case"top":D["border-top"]=Vn.valueOfBorder(V);break;case"bottom":D["border-bottom"]=Vn.valueOfBorder(V);break}})}}const ih=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"];class ti{static foreach(B,D){for(var V=0;V<B.childNodes.length;V++){let Z=B.childNodes[V];Z.nodeType==Node.ELEMENT_NODE&&D(Z)}}static colorAttr(B,D,V=null,Z="black"){var et=de.attr(B,D);if(et)return et=="auto"?Z:ih.includes(et)?et:`#${et}`;var wt=de.attr(B,"themeColor");return wt?`var(--docx-${wt}-color)`:V}static sizeValue(B,D=Nn.Dxa){return Va(B.textContent,D)}}class Vn{static themeValue(B,D){var V=de.attr(B,D);return V?`var(--docx-${V}-font)`:null}static valueOfSize(B,D){var V=Nn.Dxa;switch(de.attr(B,"type")){case"dxa":break;case"pct":V=Nn.Percent;break;case"auto":return"auto"}return de.lengthAttr(B,D,V)}static valueOfMargin(B){return de.lengthAttr(B,"w")}static valueOfBorder(B){var D=de.attr(B,"val");if(D=="nil")return"none";var V=ti.colorAttr(B,"color"),Z=de.lengthAttr(B,"sz",Nn.Border);return`${Z} solid ${V=="auto"?tn.borderColor:V}`}static valueOfTblLayout(B){var D=de.attr(B,"val");return D=="fixed"?"fixed":"auto"}static classNameOfCnfStyle(B){const D=de.attr(B,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((V,Z)=>D[Z]=="1").join(" ")}static valueOfJc(B){var D=de.attr(B,"val");switch(D){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return D}static valueOfVertAlign(B,D=!1){var V=de.attr(B,"val");switch(V){case"subscript":return"sub";case"superscript":return D?"sup":"super"}return D?null:V}static valueOfTextAlignment(B){var D=de.attr(B,"val");switch(D){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return D}static addSize(B,D){return B==null?D:D==null?B:`calc(${B} + ${D})`}static classNameOftblLook(B){const D=de.hexAttr(B,"val",0);let V="";return(de.boolAttr(B,"firstRow")||D&32)&&(V+=" first-row"),(de.boolAttr(B,"lastRow")||D&64)&&(V+=" last-row"),(de.boolAttr(B,"firstColumn")||D&128)&&(V+=" first-col"),(de.boolAttr(B,"lastColumn")||D&256)&&(V+=" last-col"),(de.boolAttr(B,"noHBand")||D&512)&&(V+=" no-hband"),(de.boolAttr(B,"noVBand")||D&1024)&&(V+=" no-vband"),V.trim()}}const ah={pos:0,leader:"none",style:"left"},sh=50;function lp(ht=document.body){const B=document.createElement("div");B.style.width="100pt",ht.appendChild(B);const D=100/B.offsetWidth;return ht.removeChild(B),D}function xc(ht,B,D,V=72/96){const Z=ht.closest("p"),et=ht.getBoundingClientRect(),wt=Z.getBoundingClientRect(),yt=getComputedStyle(Z),At=(B==null?void 0:B.length)>0?B.map(Yt=>({pos:oh(Yt.position),leader:Yt.leader,style:Yt.style})).sort((Yt,le)=>Yt.pos-le.pos):[ah],Ut=At[At.length-1],te=wt.width*V,ee=oh(D);let ne=Ut.pos+ee;if(ne<te)for(;ne<te&&At.length<sh;ne+=ee)At.push(Vt(Tr({},ah),{pos:ne}));const Rt=parseFloat(yt.marginLeft),Kt=wt.left+Rt,Ot=(et.left-Kt)*V,Wt=At.find(Yt=>Yt.style!="clear"&&Yt.pos>Ot);if(Wt==null)return;let Lt=1;if(Wt.style=="right"||Wt.style=="center"){const Yt=Array.from(Z.querySelectorAll(`.${ht.className}`)),le=Yt.indexOf(ht)+1,ve=document.createRange();ve.setStart(ht,1),le<Yt.length?ve.setEndBefore(Yt[le]):ve.setEndAfter(Z);const pe=Wt.style=="center"?.5:1,Ue=ve.getBoundingClientRect(),Oe=Ue.left+pe*Ue.width-(wt.left-Rt);Lt=Wt.pos-Oe*V}else Lt=Wt.pos-Ot;switch(ht.innerHTML=" ",ht.style.textDecoration="inherit",ht.style.wordSpacing=`${Lt.toFixed(0)}pt`,Wt.leader){case"dot":case"middleDot":ht.style.textDecoration="underline",ht.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":ht.style.textDecoration="underline";break}}function oh(ht){return parseFloat(ht)}const yn={svg:"http://www.w3.org/2000/svg",mathML:"http://www.w3.org/1998/Math/MathML"};class Yo{constructor(B){this.htmlDocument=B,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.commentMap={},this.tasks=[],this.postRenderTasks=[],this.createElement=hs}render(B,D,V=null,Z){var et;this.document=B,this.options=Z,this.className=Z.className,this.rootSelector=Z.inWrapper?`.${this.className}-wrapper`:":root",this.styleMap=null,this.tasks=[],this.options.renderComments&&globalThis.Highlight&&(this.commentHighlight=new Highlight),V=V||D,lh(V),lh(D),Ks(V,"docxjs library predefined styles"),V.appendChild(this.renderDefaultStyle()),B.themePart&&(Ks(V,"docxjs document theme values"),this.renderTheme(B.themePart,V)),B.stylesPart!=null&&(this.styleMap=this.processStyles(B.stylesPart.styles),Ks(V,"docxjs document styles"),V.appendChild(this.renderStyles(B.stylesPart.styles))),B.numberingPart&&(this.prodessNumberings(B.numberingPart.domNumberings),Ks(V,"docxjs document numbering styles"),V.appendChild(this.renderNumbering(B.numberingPart.domNumberings,V))),B.footnotesPart&&(this.footnoteMap=Ps(B.footnotesPart.notes,yt=>yt.id)),B.endnotesPart&&(this.endnoteMap=Ps(B.endnotesPart.notes,yt=>yt.id)),B.settingsPart&&(this.defaultTabSize=(et=B.settingsPart.settings)==null?void 0:et.defaultTabStop),!Z.ignoreFonts&&B.fontTablePart&&this.renderFontTable(B.fontTablePart,V);var wt=this.renderSections(B.documentPart.body);this.options.inWrapper?D.appendChild(this.renderWrapper(wt)):Sc(D,wt),this.commentHighlight&&Z.renderComments&&CSS.highlights.set(`${this.className}-comments`,this.commentHighlight),this.refreshTabStops(),this.postRenderTasks.forEach(yt=>yt())}renderTheme(B,D){var V,Z;const et={},wt=(V=B.theme)==null?void 0:V.fontScheme;wt&&(wt.majorFont&&(et["--docx-majorHAnsi-font"]=wt.majorFont.latinTypeface),wt.minorFont&&(et["--docx-minorHAnsi-font"]=wt.minorFont.latinTypeface));const yt=(Z=B.theme)==null?void 0:Z.colorScheme;if(yt)for(let[Ut,te]of Object.entries(yt.colors))et[`--docx-${Ut}-color`]=`#${te}`;const At=this.styleToString(`.${this.className}`,et);D.appendChild(_o(At))}renderFontTable(B,D){for(let V of B.fonts)for(let Z of V.embedFontRefs)this.tasks.push(this.document.loadFont(Z.id,Z.key).then(et=>{const wt={"font-family":V.name,src:`url(${et})`};(Z.type=="bold"||Z.type=="boldItalic")&&(wt["font-weight"]="bold"),(Z.type=="italic"||Z.type=="boldItalic")&&(wt["font-style"]="italic"),Ks(D,`docxjs ${V.name} font`);const yt=this.styleToString("@font-face",wt);D.appendChild(_o(yt)),this.refreshTabStops()}))}processStyleName(B){return B?`${this.className}_${$d(B)}`:this.className}processStyles(B){const D=Ps(B.filter(Z=>Z.id!=null),Z=>Z.id);for(const Z of B.filter(et=>et.basedOn)){var V=D[Z.basedOn];if(V){Z.paragraphProps=si(Z.paragraphProps,V.paragraphProps),Z.runProps=si(Z.runProps,V.runProps);for(const et of V.styles){const wt=Z.styles.find(yt=>yt.target==et.target);wt?this.copyStyleProperties(et.values,wt.values):Z.styles.push(Vt(Tr({},et),{values:Tr({},et.values)}))}}else this.options.debug&&console.warn(`Can't find base style ${Z.basedOn}`)}for(let Z of B)Z.cssName=this.processStyleName(Z.id);return D}prodessNumberings(B){var D;for(let V of B.filter(Z=>Z.pStyleName)){const Z=this.findStyle(V.pStyleName);(D=Z==null?void 0:Z.paragraphProps)!=null&&D.numbering&&(Z.paragraphProps.numbering.level=V.level)}}processElement(B){if(B.children)for(var D of B.children)D.parent=B,D.type==Te.Table?this.processTable(D):this.processElement(D)}processTable(B){for(var D of B.children)for(var V of D.children)V.cssStyle=this.copyStyleProperties(B.cellStyle,V.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(V)}copyStyleProperties(B,D,V=null){if(!B)return D;D==null&&(D={}),V==null&&(V=Object.getOwnPropertyNames(B));for(var Z of V)B.hasOwnProperty(Z)&&!D.hasOwnProperty(Z)&&(D[Z]=B[Z]);return D}createPageElement(B,D){var V=this.createElement("section",{className:B});return D&&(D.pageMargins&&(V.style.paddingLeft=D.pageMargins.left,V.style.paddingRight=D.pageMargins.right,V.style.paddingTop=D.pageMargins.top,V.style.paddingBottom=D.pageMargins.bottom),D.pageSize&&(this.options.ignoreWidth||(V.style.width=D.pageSize.width),this.options.ignoreHeight||(V.style.minHeight=D.pageSize.height))),V}createSectionContent(B){var D=this.createElement("article");return B.columns&&B.columns.numberOfColumns&&(D.style.columnCount=`${B.columns.numberOfColumns}`,D.style.columnGap=B.columns.space,B.columns.separator&&(D.style.columnRule="1px solid black")),D}renderSections(B){const D=[];this.processElement(B);const V=this.splitBySection(B.children,B.props),Z=this.groupByPageBreaks(V);let et=null;for(let yt=0,At=Z.length;yt<At;yt++){this.currentFootnoteIds=[];let Ut=Z[yt][0].sectProps;const te=this.createPageElement(this.className,Ut);this.renderStyleValues(B.cssStyle,te),this.options.renderHeaders&&this.renderHeaderFooter(Ut.headerRefs,Ut,D.length,et!=Ut,te);for(const ee of Z[yt]){var wt=this.createSectionContent(ee.sectProps);this.renderElements(ee.elements,wt),te.appendChild(wt),Ut=ee.sectProps}this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,te),this.options.renderEndnotes&&yt==At-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,te),this.options.renderFooters&&this.renderHeaderFooter(Ut.footerRefs,Ut,D.length,et!=Ut,te),D.push(te),et=Ut}return D}renderHeaderFooter(B,D,V,Z,et){var wt,yt;if(B){var At=(yt=(wt=D.titlePage&&Z?B.find(te=>te.type=="first"):null)!=null?wt:V%2==1?B.find(te=>te.type=="even"):null)!=null?yt:B.find(te=>te.type=="default"),Ut=At&&this.document.findPartByRelId(At.id,this.document.documentPart);if(Ut){this.currentPart=Ut,this.usedHederFooterParts.includes(Ut.path)||(this.processElement(Ut.rootElement),this.usedHederFooterParts.push(Ut.path));const[te]=this.renderElements([Ut.rootElement],et);D!=null&&D.pageMargins&&(Ut.rootElement.type===Te.Header?(te.style.marginTop=`calc(${D.pageMargins.header} - ${D.pageMargins.top})`,te.style.minHeight=`calc(${D.pageMargins.top} - ${D.pageMargins.header})`):Ut.rootElement.type===Te.Footer&&(te.style.marginBottom=`calc(${D.pageMargins.footer} - ${D.pageMargins.bottom})`,te.style.minHeight=`calc(${D.pageMargins.bottom} - ${D.pageMargins.footer})`)),this.currentPart=null}}}isPageBreakElement(B){return B.type!=Te.Break?!1:B.break=="lastRenderedPageBreak"?!this.options.ignoreLastRenderedPageBreak:B.break=="page"}isPageBreakSection(B,D){var V,Z,et,wt,yt,At;return!B||!D?!1:((V=B.pageSize)==null?void 0:V.orientation)!=((Z=D.pageSize)==null?void 0:Z.orientation)||((et=B.pageSize)==null?void 0:et.width)!=((wt=D.pageSize)==null?void 0:wt.width)||((yt=B.pageSize)==null?void 0:yt.height)!=((At=D.pageSize)==null?void 0:At.height)}splitBySection(B,D){var V,Z={sectProps:null,elements:[],pageBreak:!1},et=[Z];for(let ne of B){if(ne.type==Te.Paragraph){const Rt=this.findStyle(ne.styleName);(V=Rt==null?void 0:Rt.paragraphProps)!=null&&V.pageBreakBefore&&(Z.sectProps=wt,Z.pageBreak=!0,Z={sectProps:null,elements:[],pageBreak:!1},et.push(Z))}if(Z.elements.push(ne),ne.type==Te.Paragraph){const Rt=ne;var wt=Rt.sectionProps,yt=-1,At=-1;if(this.options.breakPages&&Rt.children&&(yt=Rt.children.findIndex(Kt=>{var Ot,Wt;return At=(Wt=(Ot=Kt.children)==null?void 0:Ot.findIndex(this.isPageBreakElement.bind(this)))!=null?Wt:-1,At!=-1})),(wt||yt!=-1)&&(Z.sectProps=wt,Z.pageBreak=yt!=-1,Z={sectProps:null,elements:[],pageBreak:!1},et.push(Z)),yt!=-1){let Kt=Rt.children[yt],Ot=At<Kt.children.length-1;if(yt<Rt.children.length-1||Ot){var Ut=ne.children,te=Vt(Tr({},ne),{children:Ut.slice(yt)});if(ne.children=Ut.slice(0,yt),Z.elements.push(te),Ot){let Wt=Kt.children,Lt=Vt(Tr({},Kt),{children:Wt.slice(0,At)});ne.children.push(Lt),Kt.children=Wt.slice(At)}}}}}let ee=null;for(let ne=et.length-1;ne>=0;ne--)et[ne].sectProps==null?et[ne].sectProps=ee??D:ee=et[ne].sectProps;return et}groupByPageBreaks(B){let D=[],V;const Z=[D];for(let et of B)D.push(et),(this.options.ignoreLastRenderedPageBreak||et.pageBreak||this.isPageBreakSection(V,et.sectProps))&&Z.push(D=[]),V=et.sectProps;return Z.filter(et=>et.length>0)}renderWrapper(B){return this.createElement("div",{className:`${this.className}-wrapper`},B)}renderDefaultStyle(){var B=this.className,D=` |
|
|
.${B}-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } |
|
|
.${B}-wrapper>section.${B} { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; } |
|
|
.${B} { color: black; hyphens: auto; text-underline-position: from-font; } |
|
|
section.${B} { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; } |
|
|
section.${B}>article { margin-bottom: auto; z-index: 1; } |
|
|
section.${B}>footer { z-index: 1; } |
|
|
.${B} table { border-collapse: collapse; } |
|
|
.${B} table td, .${B} table th { vertical-align: top; } |
|
|
.${B} p { margin: 0pt; min-height: 1em; } |
|
|
.${B} span { white-space: pre-wrap; overflow-wrap: break-word; } |
|
|
.${B} a { color: inherit; text-decoration: inherit; } |
|
|
.${B} svg { fill: transparent; } |
|
|
`;return this.options.renderComments&&(D+=` |
|
|
.${B}-comment-ref { cursor: default; } |
|
|
.${B}-comment-popover { display: none; z-index: 1000; padding: 0.5rem; background: white; position: absolute; box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25); width: 30ch; } |
|
|
.${B}-comment-ref:hover~.${B}-comment-popover { display: block; } |
|
|
.${B}-comment-author,.${B}-comment-date { font-size: 0.875rem; color: #888; } |
|
|
`),_o(D)}renderNumbering(B,D){var V="",Z=[];for(var et of B){var wt=`p.${this.numberingClass(et.id,et.level)}`,yt="none";if(et.bullet){let At=`--${this.className}-${et.bullet.src}`.toLowerCase();V+=this.styleToString(`${wt}:before`,{content:"' '",display:"inline-block",background:`var(${At})`},et.bullet.style),this.tasks.push(this.document.loadNumberingImage(et.bullet.src).then(Ut=>{var te=`${this.rootSelector} { ${At}: url(${Ut}) }`;D.appendChild(_o(te))}))}else if(et.levelText){let At=this.numberingCounter(et.id,et.level);const Ut=At+" "+(et.start-1);et.level>0&&(V+=this.styleToString(`p.${this.numberingClass(et.id,et.level-1)}`,{"counter-reset":Ut})),Z.push(Ut),V+=this.styleToString(`${wt}:before`,Tr({content:this.levelTextToContent(et.levelText,et.suff,et.id,this.numFormatToCssValue(et.format)),"counter-increment":At},et.rStyle))}else yt=this.numFormatToCssValue(et.format);V+=this.styleToString(wt,Tr({display:"list-item","list-style-position":"inside","list-style-type":yt},et.pStyle))}return Z.length>0&&(V+=this.styleToString(this.rootSelector,{"counter-reset":Z.join(" ")})),_o(V)}renderStyles(B){var D,V="";const Z=this.styleMap,et=Ps(B.filter(Ut=>Ut.isDefault),Ut=>Ut.target);for(const Ut of B){var wt=Ut.styles;if(Ut.linked){var yt=Ut.linked&&Z[Ut.linked];yt?wt=wt.concat(yt.styles):this.options.debug&&console.warn(`Can't find linked style ${Ut.linked}`)}for(const te of wt){var At=`${(D=Ut.target)!=null?D:""}.${Ut.cssName}`;Ut.target!=te.target&&(At+=` ${te.target}`),et[Ut.target]==Ut&&(At=`.${this.className} ${Ut.target}, `+At),V+=this.styleToString(At,te.values)}}return _o(V)}renderNotes(B,D,V){var Z=B.map(wt=>D[wt]).filter(wt=>wt);if(Z.length>0){var et=this.createElement("ol",null,this.renderElements(Z));V.appendChild(et)}}renderElement(B){switch(B.type){case Te.Paragraph:return this.renderParagraph(B);case Te.BookmarkStart:return this.renderBookmarkStart(B);case Te.BookmarkEnd:return null;case Te.Run:return this.renderRun(B);case Te.Table:return this.renderTable(B);case Te.Row:return this.renderTableRow(B);case Te.Cell:return this.renderTableCell(B);case Te.Hyperlink:return this.renderHyperlink(B);case Te.SmartTag:return this.renderSmartTag(B);case Te.Drawing:return this.renderDrawing(B);case Te.Image:return this.renderImage(B);case Te.Text:return this.renderText(B);case Te.Text:return this.renderText(B);case Te.DeletedText:return this.renderDeletedText(B);case Te.Tab:return this.renderTab(B);case Te.Symbol:return this.renderSymbol(B);case Te.Break:return this.renderBreak(B);case Te.Footer:return this.renderContainer(B,"footer");case Te.Header:return this.renderContainer(B,"header");case Te.Footnote:case Te.Endnote:return this.renderContainer(B,"li");case Te.FootnoteReference:return this.renderFootnoteReference(B);case Te.EndnoteReference:return this.renderEndnoteReference(B);case Te.NoBreakHyphen:return this.createElement("wbr");case Te.VmlPicture:return this.renderVmlPicture(B);case Te.VmlElement:return this.renderVmlElement(B);case Te.MmlMath:return this.renderContainerNS(B,yn.mathML,"math",{xmlns:yn.mathML});case Te.MmlMathParagraph:return this.renderContainer(B,"span");case Te.MmlFraction:return this.renderContainerNS(B,yn.mathML,"mfrac");case Te.MmlBase:return this.renderContainerNS(B,yn.mathML,B.parent.type==Te.MmlMatrixRow?"mtd":"mrow");case Te.MmlNumerator:case Te.MmlDenominator:case Te.MmlFunction:case Te.MmlLimit:case Te.MmlBox:return this.renderContainerNS(B,yn.mathML,"mrow");case Te.MmlGroupChar:return this.renderMmlGroupChar(B);case Te.MmlLimitLower:return this.renderContainerNS(B,yn.mathML,"munder");case Te.MmlMatrix:return this.renderContainerNS(B,yn.mathML,"mtable");case Te.MmlMatrixRow:return this.renderContainerNS(B,yn.mathML,"mtr");case Te.MmlRadical:return this.renderMmlRadical(B);case Te.MmlSuperscript:return this.renderContainerNS(B,yn.mathML,"msup");case Te.MmlSubscript:return this.renderContainerNS(B,yn.mathML,"msub");case Te.MmlDegree:case Te.MmlSuperArgument:case Te.MmlSubArgument:return this.renderContainerNS(B,yn.mathML,"mn");case Te.MmlFunctionName:return this.renderContainerNS(B,yn.mathML,"ms");case Te.MmlDelimiter:return this.renderMmlDelimiter(B);case Te.MmlRun:return this.renderMmlRun(B);case Te.MmlNary:return this.renderMmlNary(B);case Te.MmlPreSubSuper:return this.renderMmlPreSubSuper(B);case Te.MmlBar:return this.renderMmlBar(B);case Te.MmlEquationArray:return this.renderMllList(B);case Te.Inserted:return this.renderInserted(B);case Te.Deleted:return this.renderDeleted(B);case Te.CommentRangeStart:return this.renderCommentRangeStart(B);case Te.CommentRangeEnd:return this.renderCommentRangeEnd(B);case Te.CommentReference:return this.renderCommentReference(B)}return null}renderChildren(B,D){return this.renderElements(B.children,D)}renderElements(B,D){if(B==null)return null;var V=B.flatMap(Z=>this.renderElement(Z)).filter(Z=>Z!=null);return D&&Sc(D,V),V}renderContainer(B,D,V){return this.createElement(D,V,this.renderChildren(B))}renderContainerNS(B,D,V,Z){return Kn(D,V,Z,this.renderChildren(B))}renderParagraph(B){var D,V,Z,et=this.createElement("p");const wt=this.findStyle(B.styleName);B.tabs!=null||(B.tabs=(D=wt==null?void 0:wt.paragraphProps)==null?void 0:D.tabs),this.renderClass(B,et),this.renderChildren(B,et),this.renderStyleValues(B.cssStyle,et),this.renderCommonProperties(et.style,B);const yt=(Z=B.numbering)!=null?Z:(V=wt==null?void 0:wt.paragraphProps)==null?void 0:V.numbering;return yt&&et.classList.add(this.numberingClass(yt.id,yt.level)),et}renderRunProperties(B,D){this.renderCommonProperties(B,D)}renderCommonProperties(B,D){D!=null&&(D.color&&(B.color=D.color),D.fontSize&&(B["font-size"]=D.fontSize))}renderHyperlink(B){var D=this.createElement("a");if(this.renderChildren(B,D),this.renderStyleValues(B.cssStyle,D),B.href)D.href=B.href;else if(B.id){const V=this.document.documentPart.rels.find(Z=>Z.id==B.id&&Z.targetMode==="External");D.href=V==null?void 0:V.target}return D}renderSmartTag(B){var D=this.createElement("span");return this.renderChildren(B,D),D}renderCommentRangeStart(B){var D;if(!this.options.renderComments)return null;const V=new Range;(D=this.commentHighlight)==null||D.add(V);const Z=this.htmlDocument.createComment(`start of comment #${B.id}`);return this.later(()=>V.setStart(Z,0)),this.commentMap[B.id]=V,Z}renderCommentRangeEnd(B){if(!this.options.renderComments)return null;const D=this.commentMap[B.id],V=this.htmlDocument.createComment(`end of comment #${B.id}`);return this.later(()=>D==null?void 0:D.setEnd(V,0)),V}renderCommentReference(B){var D;if(!this.options.renderComments)return null;var V=(D=this.document.commentsPart)==null?void 0:D.commentMap[B.id];if(!V)return null;const Z=new DocumentFragment,et=hs("span",{className:`${this.className}-comment-ref`},["💬"]),wt=hs("div",{className:`${this.className}-comment-popover`});return this.renderCommentContent(V,wt),Z.appendChild(this.htmlDocument.createComment(`comment #${V.id} by ${V.author} on ${V.date}`)),Z.appendChild(et),Z.appendChild(wt),Z}renderCommentContent(B,D){D.appendChild(hs("div",{className:`${this.className}-comment-author`},[B.author])),D.appendChild(hs("div",{className:`${this.className}-comment-date`},[new Date(B.date).toLocaleString()])),this.renderChildren(B,D)}renderDrawing(B){var D=this.createElement("div");return D.style.display="inline-block",D.style.position="relative",D.style.textIndent="0px",this.renderChildren(B,D),this.renderStyleValues(B.cssStyle,D),D}renderImage(B){let D=this.createElement("img");return this.renderStyleValues(B.cssStyle,D),this.document&&this.tasks.push(this.document.loadDocumentImage(B.src,this.currentPart).then(V=>{D.src=V})),D}renderText(B){return this.htmlDocument.createTextNode(B.text)}renderDeletedText(B){return this.options.renderEndnotes?this.htmlDocument.createTextNode(B.text):null}renderBreak(B){return B.break=="textWrapping"?this.createElement("br"):null}renderInserted(B){return this.options.renderChanges?this.renderContainer(B,"ins"):this.renderChildren(B)}renderDeleted(B){return this.options.renderChanges?this.renderContainer(B,"del"):null}renderSymbol(B){var D=this.createElement("span");return D.style.fontFamily=B.font,D.innerHTML=`&#x${B.char};`,D}renderFootnoteReference(B){var D=this.createElement("sup");return this.currentFootnoteIds.push(B.id),D.textContent=`${this.currentFootnoteIds.length}`,D}renderEndnoteReference(B){var D=this.createElement("sup");return this.currentEndnoteIds.push(B.id),D.textContent=`${this.currentEndnoteIds.length}`,D}renderTab(B){var D,V=this.createElement("span");if(V.innerHTML=" ",this.options.experimental){V.className=this.tabStopClass();var Z=(D=up(B,Te.Paragraph))==null?void 0:D.tabs;this.currentTabs.push({stops:Z,span:V})}return V}renderBookmarkStart(B){var D=this.createElement("span");return D.id=B.name,D}renderRun(B){if(B.fieldRun)return null;const D=this.createElement("span");if(B.id&&(D.id=B.id),this.renderClass(B,D),this.renderStyleValues(B.cssStyle,D),B.verticalAlign){const V=this.createElement(B.verticalAlign);this.renderChildren(B,V),D.appendChild(V)}else this.renderChildren(B,D);return D}renderTable(B){let D=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},B.columns&&D.appendChild(this.renderTableColumns(B.columns)),this.renderClass(B,D),this.renderChildren(B,D),this.renderStyleValues(B.cssStyle,D),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),D}renderTableColumns(B){let D=this.createElement("colgroup");for(let V of B){let Z=this.createElement("col");V.width&&(Z.style.width=V.width),D.appendChild(Z)}return D}renderTableRow(B){let D=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(B,D),this.renderChildren(B,D),this.renderStyleValues(B.cssStyle,D),this.currentCellPosition.row++,D}renderTableCell(B){let D=this.createElement("td");const V=this.currentCellPosition.col;return B.verticalMerge?B.verticalMerge=="restart"?(this.currentVerticalMerge[V]=D,D.rowSpan=1):this.currentVerticalMerge[V]&&(this.currentVerticalMerge[V].rowSpan+=1,D.style.display="none"):this.currentVerticalMerge[V]=null,this.renderClass(B,D),this.renderChildren(B,D),this.renderStyleValues(B.cssStyle,D),B.span&&(D.colSpan=B.span),this.currentCellPosition.col+=D.colSpan,D}renderVmlPicture(B){var D=hs("div");return this.renderChildren(B,D),D}renderVmlElement(B){var D,V,Z=Ko("svg");Z.setAttribute("style",B.cssStyleText);const et=this.renderVmlChildElement(B);return(D=B.imageHref)!=null&&D.id&&this.tasks.push((V=this.document)==null?void 0:V.loadDocumentImage(B.imageHref.id,this.currentPart).then(wt=>et.setAttribute("href",wt))),Z.appendChild(et),requestAnimationFrame(()=>{const wt=Z.firstElementChild.getBBox();Z.setAttribute("width",`${Math.ceil(wt.x+wt.width)}`),Z.setAttribute("height",`${Math.ceil(wt.y+wt.height)}`)}),Z}renderVmlChildElement(B){const D=Ko(B.tagName);Object.entries(B.attrs).forEach(([V,Z])=>D.setAttribute(V,Z));for(let V of B.children)V.type==Te.VmlElement?D.appendChild(this.renderVmlChildElement(V)):D.appendChild(...un(this.renderElement(V)));return D}renderMmlRadical(B){var D;const V=B.children.find(et=>et.type==Te.MmlBase);if((D=B.props)!=null&&D.hideDegree)return Kn(yn.mathML,"msqrt",null,this.renderElements([V]));const Z=B.children.find(et=>et.type==Te.MmlDegree);return Kn(yn.mathML,"mroot",null,this.renderElements([V,Z]))}renderMmlDelimiter(B){var D,V;const Z=[];return Z.push(Kn(yn.mathML,"mo",null,[(D=B.props.beginChar)!=null?D:"("])),Z.push(...this.renderElements(B.children)),Z.push(Kn(yn.mathML,"mo",null,[(V=B.props.endChar)!=null?V:")"])),Kn(yn.mathML,"mrow",null,Z)}renderMmlNary(B){var D,V;const Z=[],et=Ps(B.children,ee=>ee.type),wt=et[Te.MmlSuperArgument],yt=et[Te.MmlSubArgument],At=wt?Kn(yn.mathML,"mo",null,un(this.renderElement(wt))):null,Ut=yt?Kn(yn.mathML,"mo",null,un(this.renderElement(yt))):null,te=Kn(yn.mathML,"mo",null,[(V=(D=B.props)==null?void 0:D.char)!=null?V:"∫"]);return At||Ut?Z.push(Kn(yn.mathML,"munderover",null,[te,Ut,At])):At?Z.push(Kn(yn.mathML,"mover",null,[te,At])):Ut?Z.push(Kn(yn.mathML,"munder",null,[te,Ut])):Z.push(te),Z.push(...this.renderElements(et[Te.MmlBase].children)),Kn(yn.mathML,"mrow",null,Z)}renderMmlPreSubSuper(B){const D=[],V=Ps(B.children,Ut=>Ut.type),Z=V[Te.MmlSuperArgument],et=V[Te.MmlSubArgument],wt=Z?Kn(yn.mathML,"mo",null,un(this.renderElement(Z))):null,yt=et?Kn(yn.mathML,"mo",null,un(this.renderElement(et))):null,At=Kn(yn.mathML,"mo",null);return D.push(Kn(yn.mathML,"msubsup",null,[At,yt,wt])),D.push(...this.renderElements(V[Te.MmlBase].children)),Kn(yn.mathML,"mrow",null,D)}renderMmlGroupChar(B){const D=B.props.verticalJustification==="bot"?"mover":"munder",V=this.renderContainerNS(B,yn.mathML,D);return B.props.char&&V.appendChild(Kn(yn.mathML,"mo",null,[B.props.char])),V}renderMmlBar(B){const D=this.renderContainerNS(B,yn.mathML,"mrow");switch(B.props.position){case"top":D.style.textDecoration="overline";break;case"bottom":D.style.textDecoration="underline";break}return D}renderMmlRun(B){const D=Kn(yn.mathML,"ms");return this.renderClass(B,D),this.renderStyleValues(B.cssStyle,D),this.renderChildren(B,D),D}renderMllList(B){const D=Kn(yn.mathML,"mtable");this.renderClass(B,D),this.renderStyleValues(B.cssStyle,D),this.renderChildren(B);for(let V of this.renderChildren(B))D.appendChild(Kn(yn.mathML,"mtr",null,[Kn(yn.mathML,"mtd",null,[V])]));return D}renderStyleValues(B,D){for(let V in B)V.startsWith("$")?D.setAttribute(V.slice(1),B[V]):D.style[V]=B[V]}renderClass(B,D){B.className&&(D.className=B.className),B.styleName&&D.classList.add(this.processStyleName(B.styleName))}findStyle(B){var D;return B&&((D=this.styleMap)==null?void 0:D[B])}numberingClass(B,D){return`${this.className}-num-${B}-${D}`}tabStopClass(){return`${this.className}-tab-stop`}styleToString(B,D,V=null){let Z=`${B} {\r |
|
|
`;for(const et in D)et.startsWith("$")||(Z+=` ${et}: ${D[et]};\r |
|
|
`);return V&&(Z+=V),Z+`}\r |
|
|
`}numberingCounter(B,D){return`${this.className}-num-${B}-${D}`}levelTextToContent(B,D,V,Z){var et;const wt={tab:"\\9",space:"\\a0"};var yt=B.replace(/%\d*/g,At=>{let Ut=parseInt(At.substring(1),10)-1;return`"counter(${this.numberingCounter(V,Ut)}, ${Z})"`});return`"${yt}${(et=wt[D])!=null?et:""}"`}numFormatToCssValue(B){var D,V={none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman",decimalZero:"decimal-leading-zero",aiueo:"katakana",aiueoFullWidth:"katakana",chineseCounting:"simp-chinese-informal",chineseCountingThousand:"simp-chinese-informal",chineseLegalSimplified:"simp-chinese-formal",chosung:"hangul-consonant",ideographDigital:"cjk-ideographic",ideographTraditional:"cjk-heavenly-stem",ideographLegalTraditional:"trad-chinese-formal",ideographZodiac:"cjk-earthly-branch",iroha:"katakana-iroha",irohaFullWidth:"katakana-iroha",japaneseCounting:"japanese-informal",japaneseDigitalTenThousand:"cjk-decimal",japaneseLegal:"japanese-formal",thaiNumbers:"thai",koreanCounting:"korean-hangul-formal",koreanDigital:"korean-hangul-formal",koreanDigital2:"korean-hanja-informal",hebrew1:"hebrew",hebrew2:"hebrew",hindiNumbers:"devanagari",ganada:"hangul",taiwaneseCounting:"cjk-ideographic",taiwaneseCountingThousand:"cjk-ideographic",taiwaneseDigital:"cjk-decimal"};return(D=V[B])!=null?D:B}refreshTabStops(){this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout(()=>{const B=lp();for(let D of this.currentTabs)xc(D.span,D.stops,this.defaultTabSize,B)},500))}later(B){this.postRenderTasks.push(B)}}function hs(ht,B,D){return Kn(void 0,ht,B,D)}function Ko(ht,B,D){return Kn(yn.svg,ht,B,D)}function Kn(ht,B,D,V){var Z=ht?document.createElementNS(ht,B):document.createElement(B);return Object.assign(Z,D),V&&Sc(Z,V),Z}function lh(ht){ht.innerHTML=""}function Sc(ht,B){B.forEach(D=>ht.appendChild(Rf(D)?document.createTextNode(D):D))}function _o(ht){return hs("style",{innerHTML:ht})}function Ks(ht,B){ht.appendChild(document.createComment(B))}function up(ht,B){for(var D=ht.parent;D!=null&&D.type!=B;)D=D.parent;return D}const Tl={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,renderChanges:!1,renderComments:!1};function uh(ht,B){const D=Tr(Tr({},Tl),B);return qo.load(ht,new nh(D),D)}function gu(ht,B,D,V){return Xi(this,null,function*(){const Z=Tr(Tr({},Tl),V),et=new Yo(window.document);return et.render(ht,B,D,Z),Promise.allSettled(et.tasks)})}function cp(ht,B,D,V){return Xi(this,null,function*(){const Z=yield uh(ht,V);return yield gu(Z,B,D,V),Z})}const bu={ignoreLastRenderedPageBreak:!1};function fp(ht,B={}){return typeof ht=="string"?hp(ht,B):Promise.resolve(ht)}function hp(ht,B){return fetch(ht,B).then(D=>D.status!==200?Promise.reject(D):D)}function yu(ht){return Xi(this,null,function*(){let B;return ht instanceof Blob?B=ht:ht instanceof Response?B=yield ht.blob():ht instanceof ArrayBuffer&&(B=new Blob([ht])),B})}function Tc(ht,B,D={}){if(!ht)return B.innerHTML="",Promise.resolve();let V;return ht instanceof Blob?V=ht:ht instanceof Response?V=ht.blob():ht instanceof ArrayBuffer&&(V=new Blob([ht])),cp(V,B,B,Tr(Tr({},bu),D))}const Fs={getData:fp,render:Tc,getBlob:yu};function ch(ht,B){return Xi(this,null,function*(){B&&(B instanceof ArrayBuffer&&(B=new Blob([B])),dp(ht,URL.createObjectURL(B)))})}function dp(ht,B){let D=document.createElement("a");D.download=ht,D.style.display="none",D.href=B,document.body.appendChild(D),D.click(),document.body.removeChild(D)}const pp=(ht,B)=>{const D=ht.__vccOpts||ht;for(const[V,Z]of B)D[V]=Z;return D},mp=Sn.defineComponent({name:"VueOfficeDocx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(ht,{emit:B}){const D=Sn.ref(null);let V=null;function Z(){let wt=D.value;Fs.getData(ht.src,ht.requestOptions).then(yt=>Xi(this,null,function*(){V=yield Fs.getBlob(yt),Fs.render(V,wt,ht.options).then(()=>{B("rendered")}).catch(At=>{Fs.render("",wt,ht.options),B("error",At)})})).catch(yt=>{Fs.render("",wt,ht.options),B("error",yt)})}Sn.onMounted(()=>{ht.src&&Z()}),Sn.watch(()=>ht.src,()=>{ht.src?Z():Fs.render("",D.value,ht.options).then(()=>{B("rendered")})});function et(wt){ch(wt||`vue-office-docx-${new Date().getTime()}.docx`,V)}return{rootRef:D,save:et}}}),vp={class:"vue-office-docx"},gp={class:"vue-office-docx-main",ref:"rootRef"};function bp(ht,B,D,V,Z,et){return Si.openBlock(),Si.createElementBlock("div",vp,[Si.createElementVNode("div",gp,null,512)])}const wu=pp(mp,[["render",bp]]);return wu.install=function(ht){ht.component(wu.name,wu)},wu})})(Zy);var R8=Zy.exports;const O8=Gy(R8);var Jy={exports:{}};(function(kl,cc){(function(Sn,Si){kl.exports=Si(Yy(),Ky)})(uc,function(Sn,Si){function Mn(t){return(Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function Za(t){var r=function(e,n){if(Mn(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var o=a.call(e,n);if(Mn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}(t,"string");return Mn(r)=="symbol"?r:r+""}function Wa(t,r,e){return(r=Za(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Ns(t){if(Array.isArray(t))return t}function mo(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function cs(t,r){if(t){if(typeof t=="string")return mo(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?mo(t,r):void 0}}function fs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tr(t,r){return Ns(t)||function(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var o,s,i,u,l=[],f=!0,c=!1;try{if(i=(a=a.call(e)).next,n===0){if(Object(a)!==a)return;f=!1}else for(;!(f=(o=i.call(a)).done)&&(l.push(o.value),l.length!==n);f=!0);}catch(h){c=!0,s=h}finally{try{if(!f&&a.return!=null&&(u=a.return(),Object(u)!==u))return}finally{if(c)throw s}}return l}}(t,r)||cs(t,r)||fs()}function Vt(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Xi(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Za(n.key),n)}}function $t(t,r,e){return r&&Xi(t.prototype,r),e&&Xi(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uu(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vo(t){return Ns(t)||uu(t)||cs(t)||fs()}var go=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Vt(this,t),typeof r=="string"?(this.el=document.createElement(r),this.el.className=e):this.el=r,this.data={}}return $t(t,[{key:"data",value:function(r,e){return e!==void 0?(this.data[r]=e,this):this.data[r]}},{key:"on",value:function(r,e){var n=vo(r.split(".")),a=n[0],o=n.slice(1),s=a;return s==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(s="DOMMouseScroll"),this.el.addEventListener(s,function(i){e(i);for(var u=0;u<o.length;u+=1){var l=o[u];if(l==="left"&&i.button!==0||l==="right"&&i.button!==2)return;l==="stop"&&i.stopPropagation()}}),this}},{key:"offset",value:function(r){var e=this;if(r!==void 0)return Object.keys(r).forEach(function(a){e.css(a,"".concat(r[a],"px"))}),this;var n=this.el;return{top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth}}},{key:"scroll",value:function(r){var e=this.el;return r!==void 0&&(r.left!==void 0&&(e.scrollLeft=r.left),r.top!==void 0&&(e.scrollTop=r.top)),{left:e.scrollLeft,top:e.scrollTop}}},{key:"box",value:function(){return this.el.getBoundingClientRect()}},{key:"parent",value:function(){return new t(this.el.parentNode)}},{key:"children",value:function(){for(var r=this,e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return arguments.length===0?this.el.childNodes:(n.forEach(function(o){return r.child(o)}),this)}},{key:"removeChild",value:function(r){this.el.removeChild(r)}},{key:"child",value:function(r){var e=r;return typeof r=="string"?e=document.createTextNode(r):r instanceof t&&(e=r.el),this.el.appendChild(e),this}},{key:"contains",value:function(r){return this.el.contains(r)}},{key:"className",value:function(r){return r!==void 0?(this.el.className=r,this):this.el.className}},{key:"addClass",value:function(r){return this.el.classList.add(r),this}},{key:"hasClass",value:function(r){return this.el.classList.contains(r)}},{key:"removeClass",value:function(r){return this.el.classList.remove(r),this}},{key:"toggle",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"active";return this.toggleClass(r)}},{key:"toggleClass",value:function(r){return this.el.classList.toggle(r)}},{key:"active",value:function(){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"active";return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass(r):this.removeClass(r),this}},{key:"checked",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.active(r,"checked"),this}},{key:"disabled",value:function(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass("disabled"):this.removeClass("disabled"),this}},{key:"attr",value:function(r,e){var n=this;if(e!==void 0)this.el.setAttribute(r,e);else{if(typeof r=="string")return this.el.getAttribute(r);Object.keys(r).forEach(function(a){n.el.setAttribute(a,r[a])})}return this}},{key:"removeAttr",value:function(r){return this.el.removeAttribute(r),this}},{key:"html",value:function(r){return r!==void 0?(this.el.innerHTML=r,this):this.el.innerHTML}},{key:"val",value:function(r){return r!==void 0?(this.el.value=r,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var r=this,e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return n.forEach(function(o){return r.el.style.removeProperty(o)}),this}},{key:"css",value:function(r,e){var n=this;return e===void 0&&typeof r!="string"?(Object.keys(r).forEach(function(a){n.el.style[a]=r[a]}),this):e!==void 0?(this.el.style[r]=e,this):this.el.style[r]}},{key:"computedStyle",value:function(){return window.getComputedStyle(this.el,null)}},{key:"show",value:function(){return this.css("display","block"),this}},{key:"hide",value:function(){return this.css("display","none"),this}}])}(),ke=function(t){return new go(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:"")};function nn(t){return function(r){if(Array.isArray(r))return mo(r)}(t)||uu(t)||cs(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var zn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function pi(t){for(var r="",e=t;e>=zn.length;)e/=zn.length,e-=1,r+=zn[parseInt(e,10)%zn.length];return r+=zn[t%zn.length]}function Qn(t){for(var r=0,e=0;e!==t.length;++e)r=26*r+t.charCodeAt(e)-64;return r-1}function Nn(t){for(var r="",e="",n=0;n<t.length;n+=1)t.charAt(n)>="0"&&t.charAt(n)<="9"?e+=t.charAt(n):r+=t.charAt(n);return[Qn(r),parseInt(e,10)-1]}function Va(t,r){return"".concat(pi(t)).concat(r+1)}function bo(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(r===0&&e===0)return t;var a=Tr(Nn(t),2),o=a[0],s=a[1];return n(o,s)?Va(o+r,s+e):t}var Ti=function(){function t(r,e,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;Vt(this,t),this.sri=r,this.sci=e,this.eri=n,this.eci=a,this.w=o,this.h=s}return $t(t,[{key:"set",value:function(r,e,n,a){this.sri=r,this.sci=e,this.eri=n,this.eci=a}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var r=0,e=0,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];if(a.length===1){var s=Tr(Nn(a[0]),2);e=s[0],r=s[1]}else a.length===2&&(r=a[0],e=a[1]);var i=this.sri,u=this.sci,l=this.eri,f=this.eci;return i<=r&&r<=l&&u<=e&&e<=f}},{key:"each",value:function(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},n=this.sri,a=this.sci,o=this.eri,s=this.eci,i=n;i<=o;i+=1)if(e(i))for(var u=a;u<=s;u+=1)r(i,u)}},{key:"contains",value:function(r){return this.sri<=r.sri&&this.sci<=r.sci&&this.eri>=r.eri&&this.eci>=r.eci}},{key:"within",value:function(r){return this.sri>=r.sri&&this.sci>=r.sci&&this.eri<=r.eri&&this.eci<=r.eci}},{key:"disjoint",value:function(r){return this.sri>r.eri||this.sci>r.eci||r.sri>this.eri||r.sci>this.eci}},{key:"intersects",value:function(r){return this.sri<=r.eri&&this.sci<=r.eci&&r.sri<=this.eri&&r.sci<=this.eci}},{key:"union",value:function(r){var e=this.sri,n=this.sci,a=this.eri,o=this.eci;return new t(r.sri<e?r.sri:e,r.sci<n?r.sci:n,r.eri>a?r.eri:a,r.eci>o?r.eci:o)}},{key:"difference",value:function(r){var e=[],n=function(h,d,p,m){e.push(new t(h,d,p,m))},a=this.sri,o=this.sci,s=this.eri,i=this.eci,u=r.sri-a,l=r.sci-o,f=s-r.eri,c=i-r.eci;return u>0?(n(a,o,r.sri-1,i),f>0?(n(r.eri+1,o,s,i),l>0&&n(r.sri,o,r.eri,r.sci-1),c>0&&n(r.sri,r.eci+1,r.eri,i)):(l>0&&n(r.sri,o,s,r.sci-1),c>0&&n(r.sri,r.eci+1,s,i))):f>0&&(n(r.eri+1,o,s,i),l>0&&n(a,o,r.eri,r.sci-1),c>0&&n(a,r.eci+1,r.eri,i)),l>0?(n(a,o,s,r.sci-1),c>0?(n(a,r.eri+1,s,i),u>0&&n(a,r.sci,r.sri-1,r.eci),f>0&&n(r.sri+1,r.sci,s,r.eci)):(u>0&&n(a,r.sci,r.sri-1,i),f>0&&n(r.sri+1,r.sci,s,i))):c>0&&(n(s,r.eci+1,s,i),u>0&&n(a,o,r.sri-1,r.eci),f>0&&n(r.eri+1,o,s,r.eci)),e}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var r=this.sri,e=this.sci,n=this.eri,a=this.eci,o=Va(e,r);return this.multiple()&&(o="".concat(o,":").concat(Va(a,n))),o}},{key:"clone",value:function(){return new t(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(r){return this.eri===r.eri&&this.eci===r.eci&&this.sri===r.sri&&this.sci===r.sci}}],[{key:"valueOf",value:function(r){var e=r.split(":"),n=Tr(Nn(e[0]),2),a=n[0],o=n[1],s=o,i=a;if(e.length>1){var u=Tr(Nn(e[1]),2);i=u[0],s=u[1]}return new t(o,a,s,i)}}])}(),xl=function(){return $t(function t(){Vt(this,t),this.range=new Ti(0,0,0,0),this.ri=0,this.ci=0},[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(t,r){this.ri=t,this.ci=r}},{key:"size",value:function(){return this.range.size()}}])}(),Ud=$t(function t(){Vt(this,t),this.x=0,this.y=0,this.ri=0,this.ci=0}),Hd=function(){return $t(function t(){Vt(this,t),this.undoItems=[],this.redoItems=[]},[{key:"add",value:function(t){this.undoItems.push(JSON.stringify(t)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(t,r){var e=this.undoItems,n=this.redoItems;this.canUndo()&&(n.push(JSON.stringify(t)),r(JSON.parse(e.pop())))}},{key:"redo",value:function(t,r){var e=this.undoItems,n=this.redoItems;this.canRedo()&&(e.push(JSON.stringify(t)),r(JSON.parse(n.pop())))}}])}(),Wd=function(){return $t(function t(){Vt(this,t),this.range=null,this.state="clear"},[{key:"copy",value:function(t){return this.range=t,this.state="copy",this}},{key:"cut",value:function(t){return this.range=t,this.state="cut",this}},{key:"isCopy",value:function(){return this.state==="copy"}},{key:"isCut",value:function(){return this.state==="cut"}},{key:"isClear",value:function(){return this.state==="clear"}},{key:"clear",value:function(){this.range=null,this.state="clear"}}])}(),fc=function(){return $t(function t(r,e,n){Vt(this,t),this.ci=r,this.operator=e,this.value=n},[{key:"set",value:function(t,r){this.operator=t,this.value=r}},{key:"includes",value:function(t){var r=this.operator,e=this.value;return r==="all"||r==="in"&&e.includes(t)}},{key:"vlength",value:function(){var t=this.operator,r=this.value;return t==="in"?r.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}])}(),de=function(){return $t(function t(r,e){Vt(this,t),this.ci=r,this.order=e},[{key:"asc",value:function(){return this.order==="asc"}},{key:"desc",value:function(){return this.order==="desc"}}])}(),Ia=function(){return $t(function t(){Vt(this,t),this.ref=null,this.filters=[],this.sort=null},[{key:"setData",value:function(t){var r=t.ref,e=t.filters,n=t.sort;r!=null&&(this.ref=r,this.filters=e.map(function(a){return new fc(a.ci,a.operator,a.value)}),n&&(this.sort=new de(n.ci,n.order)))}},{key:"getData",value:function(){if(this.active()){var t=this.ref,r=this.filters,e=this.sort;return{ref:t,filters:r.map(function(n){return n.getData()}),sort:e}}return{}}},{key:"addFilter",value:function(t,r,e){var n=this.getFilter(t);n==null?this.filters.push(new fc(t,r,e)):n.set(r,e)}},{key:"setSort",value:function(t,r){this.sort=r?new de(t,r):null}},{key:"includes",value:function(t,r){return!!this.active()&&this.hrange().includes(t,r)}},{key:"getSort",value:function(t){var r=this.sort;return r&&r.ci===t?r:null}},{key:"getFilter",value:function(t){for(var r=this.filters,e=0;e<r.length;e+=1)if(r[e].ci===t)return r[e];return null}},{key:"filteredRows",value:function(t){var r=new Set,e=new Set;if(this.active())for(var n=this.range(),a=n.sri,o=n.eri,s=this.filters,i=a+1;i<=o;i+=1)for(var u=0;u<s.length;u+=1){var l=s[u],f=t(i,l.ci),c=f?f.text:"";if(!l.includes(c)){r.add(i);break}e.add(i)}return{rset:r,fset:e}}},{key:"items",value:function(t,r){var e={};if(this.active())for(var n=this.range(),a=n.sri,o=n.eri,s=a+1;s<=o;s+=1){var i=r(s,t);if(i===null||/^\s*$/.test(i.text))e[""]=(e[""]||0)+1;else{var u=i.text,l=(e[u]||0)+1;e[u]=l}}return e}},{key:"range",value:function(){return Ti.valueOf(this.ref)}},{key:"hrange",value:function(){var t=this.range();return t.eri=t.sri,t}},{key:"clear",value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:"active",value:function(){return this.ref!==null}}])}(),Vd=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Vt(this,t),this._=r}return $t(t,[{key:"forEach",value:function(r){this._.forEach(r)}},{key:"deleteWithin",value:function(r){this._=this._.filter(function(e){return!e.within(r)})}},{key:"getFirstIncludes",value:function(r,e){for(var n=0;n<this._.length;n+=1){var a=this._[n];if(a.includes(r,e))return a}return null}},{key:"filterIntersects",value:function(r){return new t(this._.filter(function(e){return e.intersects(r)}))}},{key:"intersects",value:function(r){for(var e=0;e<this._.length;e+=1)if(this._[e].intersects(r))return!0;return!1}},{key:"union",value:function(r){var e=r;return this._.forEach(function(n){n.intersects(e)&&(e=n.union(e))}),e}},{key:"add",value:function(r){this.deleteWithin(r),this._.push(r)}},{key:"shift",value:function(r,e,n,a){this._.forEach(function(o){var s=o.sri,i=o.sci,u=o.eri,l=o.eci,f=o;r==="row"?s>=e?(f.sri+=n,f.eri+=n):s<e&&e<=u&&(f.eri+=n,a(s,i,n,0)):r==="column"&&(i>=e?(f.sci+=n,f.eci+=n):i<e&&e<=l&&(f.eci+=n,a(s,i,0,n)))})}},{key:"move",value:function(r,e,n){this._.forEach(function(a){var o=a;o.within(r)&&(o.eri+=e,o.sri+=e,o.sci+=n,o.eci+=n)})}},{key:"setData",value:function(r){return this._=r.map(function(e){return Ti.valueOf(e)}),this}},{key:"getData",value:function(){return this._.map(function(r){return r.toString()})}}])}(),Mf=function(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return e.forEach(function(a){Object.keys(a).forEach(function(o){var s=a[o];typeof s=="string"||typeof s=="number"||typeof s=="boolean"?t[o]=s:typeof s!="function"&&!Array.isArray(s)&&s instanceof Object?(t[o]=t[o]||{},Mf(t[o],s)):t[o]=s})}),t};function hc(t){for(var r="".concat(t),e=0,n=!1,a=0;a<r.length;a+=1)n===!0&&(e+=1),r.charAt(a)==="."&&(n=!0);return e}function yo(t,r,e){if(Number.isNaN(r)||Number.isNaN(e))return r+t+e;var n=hc(r),a=hc(e),o=Number(r),s=Number(e),i=0;if(t==="-")i=o-s;else if(t==="+")i=o+s;else if(t==="*")i=o*s;else if(t==="/")return hc(i=o/s)>5?i.toFixed(2):i;return i.toFixed(Math.max(n,a))}const ma={cloneDeep:function(t){return JSON.parse(JSON.stringify(t))},merge:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return Mf.apply(void 0,[{}].concat(r))},equals:function t(r,e){var n=Object.keys(r);if(n.length!==Object.keys(e).length)return!1;for(var a=0;a<n.length;a+=1){var o=n[a],s=r[o],i=e[o];if(i===void 0)return!1;if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"){if(s!==i)return!1}else if(Array.isArray(s)){if(s.length!==i.length)return!1;for(var u=0;u<s.length;u+=1)if(!t(s[u],i[u]))return!1}else if(typeof s!="function"&&!Array.isArray(s)&&s instanceof Object&&!t(s,i))return!1}return!0},arrayEquals:function(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;e+=1)if(t[e]!==r[e])return!1;return!0},sum:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(a){return a},e=0,n=0;return Object.keys(t).forEach(function(a){e+=r(t[a],a),n+=1}),[e,n]},rangeEach:function(t,r,e){for(var n=t;n<r;n+=1)e(n)},rangeSum:function(t,r,e){for(var n=0,a=t;a<r;a+=1)n+=e(a);return n},rangeReduceIf:function(t,r,e,n,a,o){for(var s=e,i=n,u=t;u<r&&!(s>a);u+=1)s+=i=o(u);return[u,s-i,i]},deleteProperty:function(t,r){var e=t["".concat(r)];return delete t["".concat(r)],e},numberCalc:yo};var $d=function(){return $t(function t(r){var e=r.len,n=r.height;Vt(this,t),this._={},this.len=e,this.height=n},[{key:"getHeight",value:function(t){if(this.isHide(t))return 0;var r=this.get(t);return r&&r.height?r.height:this.height}},{key:"setHeight",value:function(t,r){this.getOrNew(t).height=r}},{key:"unhide",value:function(t){for(var r=t;r>0&&(r-=1,this.isHide(r));)this.setHide(r,!1)}},{key:"isHide",value:function(t){var r=this.get(t);return r&&r.hide}},{key:"setHide",value:function(t,r){var e=this.getOrNew(t);r===!0?e.hide=!0:delete e.hide}},{key:"setStyle",value:function(t,r){this.getOrNew(t).style=r}},{key:"sumHeight",value:function(t,r,e){var n=this;return ma.rangeSum(t,r,function(a){return e&&e.has(a)?0:n.getHeight(a)})}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(t){return this._[t]}},{key:"getOrNew",value:function(t){return this._[t]=this._[t]||{cells:{}},this._[t]}},{key:"getCell",value:function(t,r){var e=this.get(t);return e!==void 0&&e.cells!==void 0&&e.cells[r]!==void 0?e.cells[r]:null}},{key:"getCellMerge",value:function(t,r){var e=this.getCell(t,r);return e&&e.merge?e.merge:[0,0]}},{key:"getCellOrNew",value:function(t,r){var e=this.getOrNew(t);return e.cells[r]=e.cells[r]||{},e.cells[r]}},{key:"setCell",value:function(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"all",a=this.getOrNew(t);n==="all"?a.cells[r]=e:n==="text"?(a.cells[r]=a.cells[r]||{},a.cells[r].text=e.text):n==="format"&&(a.cells[r]=a.cells[r]||{},a.cells[r].style=e.style,e.merge&&(a.cells[r].merge=e.merge))}},{key:"setCellText",value:function(t,r,e){var n=this.getCellOrNew(t,r);n.editable!==!1&&(n.text=e)}},{key:"copyPaste",value:function(t,r,e){var n=this,a=arguments.length>3&&arguments[3]!==void 0&&arguments[3],o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},s=t.sri,i=t.sci,u=t.eri,l=t.eci,f=r.sri,c=r.sci,h=r.eri,d=r.eci,p=Tr(t.size(),2),m=p[0],v=p[1],b=Tr(r.size(),2),g=b[0],y=b[1],k=!0,S=0;(h<s||d<i)&&(k=!1,S=h<s?g:y);for(var C=s;C<=u;C+=1)if(this._[C]){for(var O=i;O<=l;O+=1)if(this._[C].cells&&this._[C].cells[O])for(var L=f;L<=h;L+=m)for(var j=function(){var z=L+(C-s),Y=U+(O-i),A=ma.cloneDeep(n._[C].cells[O]);if(a&&A&&A.text&&A.text.length>0){var I=A.text,_=U-c+(L-f)+2;if(k||(_-=S+1),I[0]==="=")A.text=I.replace(/[a-zA-Z]{1,3}\d+/g,function(E){var M=0,F=0;return s===f?M=_-1:F=_-1,/^\d+$/.test(E)?E:bo(E,M,F)});else if(m<=1&&v>1&&(f>u||h<s)||v<=1&&m>1&&(c>l||d<i)||m<=1&&v<=1){var x=/[\\.\d]+$/.exec(I);if(x!==null){var T=Number(x[0])+_-1;A.text=I.substring(0,x.index)+T}}}n.setCell(z,Y,A,e),o(z,Y,A)},U=c;U<=d;U+=v)j()}}},{key:"cutPaste",value:function(t,r){var e=this,n={};this.each(function(a){e.eachCells(a,function(o){var s=parseInt(a,10),i=parseInt(o,10);t.includes(a,o)&&(s=r.sri+(s-t.sri),i=r.sci+(i-t.sci)),n[s]=n[s]||{cells:{}},n[s].cells[i]=e._[a].cells[o]})}),this._=n}},{key:"paste",value:function(t,r){var e=this;if(!(t.length<=0)){var n=r.sri,a=r.sci;t.forEach(function(o,s){var i=n+s;o.forEach(function(u,l){var f=a+l;e.setCellText(i,f,u)})})}}},{key:"insert",value:function(t){var r=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n={};this.each(function(a,o){var s=parseInt(a,10);s>=t&&(s+=e,r.eachCells(a,function(i,u){u.text&&u.text[0]==="="&&(u.text=u.text.replace(/[a-zA-Z]{1,3}\d+/g,function(l){return bo(l,0,e,function(f,c){return c>=t})}))})),n[s]=o}),this._=n,this.len+=e}},{key:"delete",value:function(t,r){var e=this,n=r-t+1,a={};this.each(function(o,s){var i=parseInt(o,10);i<t?a[i]=s:o>r&&(a[i-n]=s,e.eachCells(o,function(u,l){l.text&&l.text[0]==="="&&(l.text=l.text.replace(/[a-zA-Z]{1,3}\d+/g,function(f){return bo(f,0,-n,function(c,h){return h>r})}))}))}),this._=a,this.len-=n}},{key:"insertColumn",value:function(t){var r=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.each(function(n,a){var o={};r.eachCells(n,function(s,i){var u=parseInt(s,10);u>=t&&(u+=e,i.text&&i.text[0]==="="&&(i.text=i.text.replace(/[a-zA-Z]{1,3}\d+/g,function(l){return bo(l,e,0,function(f){return f>=t})}))),o[u]=i}),a.cells=o})}},{key:"deleteColumn",value:function(t,r){var e=this,n=r-t+1;this.each(function(a,o){var s={};e.eachCells(a,function(i,u){var l=parseInt(i,10);l<t?s[l]=u:l>r&&(s[l-n]=u,u.text&&u.text[0]==="="&&(u.text=u.text.replace(/[a-zA-Z]{1,3}\d+/g,function(f){return bo(f,-n,0,function(c){return c>r})})))}),o.cells=s})}},{key:"deleteCells",value:function(t){var r=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";t.each(function(n,a){r.deleteCell(n,a,e)})}},{key:"deleteCell",value:function(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"all",n=this.get(t);if(n!==null){var a=this.getCell(t,r);a!==null&&a.editable!==!1&&(e==="all"?delete n.cells[r]:e==="text"?(a.text&&delete a.text,a.value&&delete a.value):e==="format"?(a.style!==void 0&&delete a.style,a.merge&&delete a.merge):e==="merge"&&a.merge&&delete a.merge)}}},{key:"maxCell",value:function(){var t=Object.keys(this._),r=t[t.length-1],e=this._[r];if(e){var n=e.cells,a=Object.keys(n),o=a[a.length-1];return[parseInt(r,10),parseInt(o,10)]}return[0,0]}},{key:"each",value:function(t){Object.entries(this._).forEach(function(r){var e=Tr(r,2),n=e[0],a=e[1];t(n,a)})}},{key:"eachCells",value:function(t,r){this._[t]&&this._[t].cells&&Object.entries(this._[t].cells).forEach(function(e){var n=Tr(e,2),a=n[0],o=n[1];r(a,o)})}},{key:"setData",value:function(t){t.len&&(this.len=t.len,delete t.len),this._=t}},{key:"getData",value:function(){var t=this.len;return Object.assign({len:t},this._)}}])}(),cu=function(){return $t(function t(r){var e=r.len,n=r.width,a=r.indexWidth,o=r.minWidth;Vt(this,t),this._={},this.len=e,this.width=n,this.indexWidth=a,this.minWidth=o},[{key:"setData",value:function(t){t.len&&(this.len=t.len,delete t.len),this._=t}},{key:"getData",value:function(){var t=this.len;return Object.assign({len:t},this._)}},{key:"getWidth",value:function(t){if(this.isHide(t))return 0;var r=this._[t];return r&&r.width?r.width:this.width}},{key:"getOrNew",value:function(t){return this._[t]=this._[t]||{},this._[t]}},{key:"setWidth",value:function(t,r){this.getOrNew(t).width=r}},{key:"unhide",value:function(t){for(var r=t;r>0&&(r-=1,this.isHide(r));)this.setHide(r,!1)}},{key:"isHide",value:function(t){var r=this._[t];return r&&r.hide}},{key:"setHide",value:function(t,r){var e=this.getOrNew(t);r===!0?e.hide=!0:delete e.hide}},{key:"setStyle",value:function(t,r){this.getOrNew(t).style=r}},{key:"sumWidth",value:function(t,r){var e=this;return ma.rangeSum(t,r,function(n){return e.getWidth(n)})}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}])}();function dc(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(u,l){if(u){if(typeof u=="string")return Ps(u,l);var f={}.toString.call(u).slice(8,-1);return f==="Object"&&u.constructor&&(f=u.constructor.name),f==="Map"||f==="Set"?Array.from(u):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?Ps(u,l):void 0}}(t))||r){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return s=u.done,u},e:function(u){i=!0,o=u},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function Ps(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}var pc=["en"],fu={en:{toolbar:{undo:"Undo",redo:"Redo",print:"Print",paintformat:"Paint format",clearformat:"Clear format",format:"Format",fontName:"Font",fontSize:"Font size",fontBold:"Font bold",fontItalic:"Font italic",underline:"Underline",strike:"Strike",color:"Text color",bgcolor:"Fill color",border:"Borders",merge:"Merge cells",align:"Horizontal align",valign:"Vertical align",textwrap:"Text wrapping",freeze:"Freeze cell",autofilter:"Filter",formula:"Functions",more:"More"},contextmenu:{copy:"Copy",cut:"Cut",paste:"Paste",pasteValue:"Paste values only",pasteFormat:"Paste format only",hide:"Hide",insertRow:"Insert row",insertColumn:"Insert column",deleteSheet:"Delete",deleteRow:"Delete row",deleteColumn:"Delete column",deleteCell:"Delete cell",deleteCellText:"Delete cell text",validation:"Data validations",cellprintable:"Enable export",cellnonprintable:"Disable export",celleditable:"Enable editing",cellnoneditable:"Disable editing"},print:{size:"Paper size",orientation:"Page orientation",orientations:["Landscape","Portrait"]},format:{normal:"Normal",text:"Plain Text",number:"Number",percent:"Percent",rmb:"RMB",usd:"USD",eur:"EUR",date:"Date",time:"Time",datetime:"Date time",duration:"Duration"},formula:{sum:"Sum",average:"Average",max:"Max",min:"Min",_if:"IF",and:"AND",or:"OR",concat:"Concat"},validation:{required:"it must be required",notMatch:"it not match its validation rule",between:"it is between {} and {}",notBetween:"it is not between {} and {}",notIn:"it is not in list",equal:"it equal to {}",notEqual:"it not equal to {}",lessThan:"it less than {}",lessThanEqual:"it less than or equal to {}",greaterThan:"it greater than {}",greaterThanEqual:"it greater than or equal to {}"},error:{pasteForMergedCell:"Unable to do this for merged cells"},calendar:{weeks:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]},button:{next:"Next",cancel:"Cancel",remove:"Remove",save:"Save",ok:"OK"},sort:{desc:"Sort Z -> A",asc:"Sort A -> Z"},filter:{empty:"empty"},dataValidation:{mode:"Mode",range:"Cell Range",criteria:"Criteria",modeType:{cell:"Cell",column:"Colun",row:"Row"},type:{list:"List",number:"Number",date:"Date",phone:"Phone",email:"Email"},operator:{be:"between",nbe:"not betwwen",lt:"less than",lte:"less than or equal to",gt:"greater than",gte:"greater than or equal to",eq:"equal to",neq:"not equal to"}}}};function Rf(t,r){if(r){var e,n=dc(pc);try{for(n.s();!(e=n.n()).done;){var a=e.value;if(!r[a])break;for(var o=r[a],s=t.match(/(?:\\.|[^.])+/g),i=0;i<s.length;i+=1){var u=o[s[i]];if(!u)break;if(i===s.length-1)return u;o=u}}}catch(l){n.e(l)}finally{n.f()}}}function si(t){var r=Rf(t,fu);return!r&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(r=Rf(t,window.x_spreadsheet.$messages)),r||""}function un(t){return function(){return si(t)}}function hu(t,r){arguments.length>2&&arguments[2]!==void 0&&arguments[2]?pc=[t]:pc.unshift(t),r&&(fu[t]=r)}var Of={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function Ja(t,r){var e="";if(!t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];e=si.apply(void 0,["validation.".concat(r)].concat(a))}return[t,e]}var Sl=function(){return $t(function t(r,e,n,a){Vt(this,t),this.required=e,this.value=n,this.type=r,this.operator=a,this.message=""},[{key:"parseValue",value:function(t){var r=this.type;return r==="date"?new Date(t):r==="number"?Number(t):t}},{key:"equals",value:function(t){var r=this.type===t.type&&this.required===t.required&&this.operator===t.operator;return r&&(r=Array.isArray(this.value)?ma.arrayEquals(this.value,t.value):this.value===t.value),r}},{key:"values",value:function(){return this.value.split(",")}},{key:"validate",value:function(t){var r=this.required,e=this.operator,n=this.value,a=this.type;if(r&&/^\s*$/.test(t))return Ja(!1,"required");if(/^\s*$/.test(t))return[!0];if(Of[a]&&!Of[a].test(t))return Ja(!1,"notMatch");if(a==="list")return Ja(this.values().includes(t),"notIn");if(e){var o=this.parseValue(t);if(e==="be"){var s=Tr(n,2),i=s[0],u=s[1];return Ja(o>=this.parseValue(i)&&o<=this.parseValue(u),"between",i,u)}if(e==="nbe"){var l=Tr(n,2),f=l[0],c=l[1];return Ja(o<this.parseValue(f)||o>this.parseValue(c),"notBetween",f,c)}if(e==="eq")return Ja(o===this.parseValue(n),"equal",n);if(e==="neq")return Ja(o!==this.parseValue(n),"notEqual",n);if(e==="lt")return Ja(o<this.parseValue(n),"lessThan",n);if(e==="lte")return Ja(o<=this.parseValue(n),"lessThanEqual",n);if(e==="gt")return Ja(o>this.parseValue(n),"greaterThan",n);if(e==="gte")return Ja(o>=this.parseValue(n),"greaterThanEqual",n)}return[!0]}}])}(),If=function(){function t(r,e,n){Vt(this,t),this.refs=e,this.mode=r,this.validator=n}return $t(t,[{key:"includes",value:function(r,e){for(var n=this.refs,a=0;a<n.length;a+=1)if(Ti.valueOf(n[a]).includes(r,e))return!0;return!1}},{key:"addRef",value:function(r){this.remove(Ti.valueOf(r)),this.refs.push(r)}},{key:"remove",value:function(r){var e=[];this.refs.forEach(function(n){var a=Ti.valueOf(n);a.intersects(r)?a.difference(r).forEach(function(o){return e.push(o.toString())}):e.push(n)}),this.refs=e}},{key:"getData",value:function(){var r=this.refs,e=this.mode,n=this.validator;return{refs:r,mode:e,type:n.type,required:n.required,operator:n.operator,value:n.value}}}],[{key:"valueOf",value:function(r){var e=r.refs,n=r.mode,a=r.type,o=r.required,s=r.operator,i=r.value;return new t(n,e,new Sl(a,o,i,s))}}])}(),Nf=function(){return $t(function t(){Vt(this,t),this._=[],this.errors=new Map},[{key:"getError",value:function(t,r){return this.errors.get("".concat(t,"_").concat(r))}},{key:"validate",value:function(t,r,e){var n=this.get(t,r),a="".concat(t,"_").concat(r),o=this.errors;if(n!==null){var s=Tr(n.validator.validate(e),2),i=s[0],u=s[1];i?o.delete(a):o.set(a,u)}else o.delete(a);return!0}},{key:"add",value:function(t,r,e){var n=e.type,a=e.required,o=e.value,s=e.operator,i=new Sl(n,a,o,s),u=this.getByValidator(i);u!==null?u.addRef(r):this._.push(new If(t,[r],i))}},{key:"getByValidator",value:function(t){for(var r=0;r<this._.length;r+=1){var e=this._[r];if(e.validator.equals(t))return e}return null}},{key:"get",value:function(t,r){for(var e=0;e<this._.length;e+=1){var n=this._[e];if(n.includes(t,r))return n}return null}},{key:"remove",value:function(t){this.each(function(r){r.remove(t)})}},{key:"each",value:function(t){this._.forEach(function(r){return t(r)})}},{key:"getData",value:function(){return this._.filter(function(t){return t.refs.length>0}).map(function(t){return t.getData()})}},{key:"setData",value:function(t){this._=t.map(function(r){return If.valueOf(r)})}}])}(),Pf={mode:"edit",view:{height:function(){return document.documentElement.clientHeight},width:function(){return document.documentElement.clientWidth}},showGrid:!0,showToolbar:!0,showContextmenu:!0,showBottomBar:!0,row:{len:100,height:25},col:{len:26,width:100,indexWidth:60,minWidth:60},style:{bgcolor:"#ffffff",align:"left",valign:"middle",textwrap:!1,strike:!1,underline:!1,color:"#0a0a0a",font:{name:"Arial",size:10,bold:!1,italic:!1},format:"normal"}};function Df(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},n=this.merges,a=r.clone(),o=Tr(t.size(),2),s=o[0],i=o[1],u=Tr(r.size(),2),l=u[0],f=u[1];return s>l&&(a.eri=r.sri+s-1),i>f&&(a.eci=r.sci+i-1),!n.intersects(a)||(e(si("error.pasteForMergedCell")),!1)}function Ff(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=this.rows,o=this.merges;e!=="all"&&e!=="format"||(a.deleteCells(r,e),o.deleteWithin(r)),a.copyPaste(t,r,e,n,function(s,i,u){if(u&&u.merge){var l=Tr(u.merge,2),f=l[0],c=l[1];if(f<=0&&c<=0)return;o.add(new Ti(s,i,s+f,i+c))}})}function Lf(t,r){var e=this.clipboard,n=this.rows,a=this.merges;n.cutPaste(t,r),a.move(t,r.sri-t.sri,r.sci-t.sci),e.clear()}function Ho(t,r,e){var n=this.styles,a=this.rows.getCellOrNew(t,r),o={};a.style!==void 0&&(o=ma.cloneDeep(n[a.style])),o=ma.merge(o,{border:e}),a.style=this.addStyle(o)}function mc(t){var r=this,e=t.mode,n=t.style,a=t.color,o=this.styles,s=this.selector,i=this.rows,u=s.range,l=u.sri,f=u.sci,c=u.eri,h=u.eci,d=!this.isSingleSelected();if(d||e!=="inside"&&e!=="horizontal"&&e!=="vertical")if(e!=="outside"||d){if(e==="none")s.range.each(function(T,E){var M=i.getCell(T,E);if(M&&M.style!==void 0){var F=ma.cloneDeep(o[M.style]);delete F.border,M.style=r.addStyle(F)}});else if(e==="all"||e==="inside"||e==="outside"||e==="horizontal"||e==="vertical")for(var p=[],m=l;m<=c;m+=1)for(var v=f;v<=h;v+=1){for(var b=[],g=0;g<p.length;g+=1){var y=Tr(p[g],4),k=y[0],S=y[1],C=y[2],O=y[3];if(m===k+C+1&&b.push(g),k<=m&&m<=k+C&&v===S){v+=O+1;break}}if(b.forEach(function(T){return p.splice(T,1)}),v>h)break;var L=i.getCell(m,v),j=0,U=0;if(L&&L.merge){var z=Tr(L.merge,2);j=z[0],U=z[1],p.push([m,v,j,U])}var Y=j>0&&m+j===c,A=U>0&&v+U===h,I={};e==="all"?I={bottom:[n,a],top:[n,a],left:[n,a],right:[n,a]}:e==="inside"?(!A&&v<h&&(I.right=[n,a]),!Y&&m<c&&(I.bottom=[n,a])):e==="horizontal"?!Y&&m<c&&(I.bottom=[n,a]):e==="vertical"?!A&&v<h&&(I.right=[n,a]):e==="outside"&&d&&(l===m&&(I.top=[n,a]),(Y||c===m)&&(I.bottom=[n,a]),f===v&&(I.left=[n,a]),(A||h===v)&&(I.right=[n,a])),Object.keys(I).length>0&&Ho.call(this,m,v,I),v+=U}else if(e==="top"||e==="bottom")for(var _=f;_<=h;_+=1)e==="top"&&(Ho.call(this,l,_,{top:[n,a]}),_+=i.getCellMerge(l,_)[1]),e==="bottom"&&(Ho.call(this,c,_,{bottom:[n,a]}),_+=i.getCellMerge(c,_)[1]);else if(e==="left"||e==="right")for(var x=l;x<=c;x+=1)e==="left"&&(Ho.call(this,x,f,{left:[n,a]}),x+=i.getCellMerge(x,f)[0]),e==="right"&&(Ho.call(this,x,h,{right:[n,a]}),x+=i.getCellMerge(x,h)[0])}else Ho.call(this,l,f,{top:[n,a],bottom:[n,a],left:[n,a],right:[n,a]})}function qd(t,r){var e=this.rows,n=this.freezeTotalHeight(),a=e.height;n+e.height<t&&(a-=r);for(var o=this.exceptRowSet,s=0,i=a,u=e.height;s<e.len&&!(i>t);s+=1)o.has(s)||(i+=u=e.getHeight(s));return(i-=u)<=0?{ri:-1,top:0,height:u}:{ri:s-1,top:i,height:u}}function Bf(t,r){var e=this.cols,n=this.freezeTotalWidth(),a=e.indexWidth;n+e.indexWidth<t&&(a-=r);var o=Tr(ma.rangeReduceIf(0,e.len,a,e.indexWidth,t,function(l){return e.getWidth(l)}),3),s=o[0],i=o[1],u=o[2];return i<=0?{ci:-1,left:0,width:e.indexWidth}:{ci:s-1,left:i,width:u}}var jf=function(){return $t(function t(r,e){Vt(this,t),this.settings=ma.merge(Pf,e||{}),this.name=r||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new Vd,this.rows=new $d(this.settings.row),this.cols=new cu(this.settings.col),this.validations=new Nf,this.hyperlinks={},this.comments={},this.selector=new xl,this.scroll=new Ud,this.history=new Hd,this.clipboard=new Wd,this.autoFilter=new Ia,this.change=function(){},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map},[{key:"addValidation",value:function(t,r,e){var n=this;this.changeData(function(){n.validations.add(t,r,e)})}},{key:"removeValidation",value:function(){var t=this,r=this.selector.range;this.changeData(function(){t.validations.remove(r)})}},{key:"getSelectedValidator",value:function(){var t=this.selector,r=t.ri,e=t.ci,n=this.validations.get(r,e);return n?n.validator:null}},{key:"getSelectedValidation",value:function(){var t=this.selector,r=t.ri,e=t.ci,n=t.range,a=this.validations.get(r,e),o={ref:n.toString()};return a!==null&&(o.mode=a.mode,o.validator=a.validator),o}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"undo",value:function(){var t=this;this.history.undo(this.getData(),function(r){t.setData(r)})}},{key:"redo",value:function(){var t=this;this.history.redo(this.getData(),function(r){t.setData(r)})}},{key:"copy",value:function(){this.clipboard.copy(this.selector.range)}},{key:"copyToSystemClipboard",value:function(t){for(var r=[],e=this.selector.range,n=e.sri,a=e.eri,o=e.sci,s=e.eci,i=n;i<=a;i+=1){for(var u=[],l=o;l<=s;l+=1){var f=this.getCell(i,l);u.push(f&&f.text||"")}r.push(u)}r=r.map(function(c){return c.join(" ")}).join(` |
|
|
`),t&&(t.clipboardData.clearData(),t.clipboardData.setData("text/plain",r),t.preventDefault()),navigator.clipboard&&navigator.clipboard.writeText(r).then(function(){},function(c){console.log("text copy to the system clipboard error ",r,c)})}},{key:"cut",value:function(){this.clipboard.cut(this.selector.range)}},{key:"paste",value:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},n=this.clipboard,a=this.selector;return!n.isClear()&&!!Df.call(this,n.range,a.range,e)&&(this.changeData(function(){n.isCopy()?Ff.call(t,n.range,a.range,r):n.isCut()&&Lf.call(t,n.range,a.range)}),!0)}},{key:"pasteFromSystemClipboard",value:function(t,r){var e=this,n=this.selector;navigator.clipboard.readText().then(function(a){var o=e.parseClipboardContent(a),s=n.ri;o.forEach(function(i){var u=n.ci;i.forEach(function(l){e.setCellText(s,u,l,"input"),u+=1}),s+=1}),t(),r(e.rows.getData())})}},{key:"parseClipboardContent",value:function(t){var r=[],e=t.split(` |
|
|
`),n=0;return e.forEach(function(a){r[n]=a.split(" "),n+=1}),r}},{key:"pasteFromText",value:function(t){var r=[];if((r=/\r\n/.test(t)?t.split(`\r |
|
|
`).map(function(a){return a.replace(/"/g,"").split(" ")}):t.split(` |
|
|
`).map(function(a){return a.replace(/"/g,"").split(" ")})).length){var e=this.rows,n=this.selector;this.changeData(function(){e.paste(r,n.range)})}}},{key:"autofill",value:function(t,r){var e=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=this.selector.range;return!!Df.call(this,a,t,n)&&(this.changeData(function(){Ff.call(e,a,t,r,!0)}),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(t,r){var e=this.selector,n=this.rows,a=this.cols,o=this.merges,s=e.range,i=s.sri,u=s.sci,l=s.eri,f=s.eci,c=e.ri,h=e.ci,d=t,p=r;return t<0&&(d=n.len-1),r<0&&(p=a.len-1),d>c?(i=c,l=d):(i=d,l=c),p>h?(u=h,f=p):(u=p,f=h),e.range=o.union(new Ti(i,u,l,f)),e.range=o.union(e.range),e.range}},{key:"calSelectedRangeByStart",value:function(t,r){var e=this.selector,n=this.rows,a=this.cols,o=this.merges.getFirstIncludes(t,r);return o===null&&(o=new Ti(t,r,t,r),t===-1&&(o.sri=0,o.eri=n.len-1),r===-1&&(o.sci=0,o.eci=a.len-1)),e.range=o,o}},{key:"setSelectedCellAttr",value:function(t,r){var e=this;this.changeData(function(){var n=e.selector,a=e.styles,o=e.rows;if(t==="merge")r?e.merge():e.unmerge();else if(t==="border")mc.call(e,r);else if(t==="formula"){var s=n.ri,i=n.ci,u=n.range;if(n.multiple()){var l=Tr(n.size(),2),f=l[0],c=l[1],h=u.sri,d=u.sci,p=u.eri,m=u.eci;if(f>1)for(var v=d;v<=m;v+=1)o.getCellOrNew(p+1,v).text="=".concat(r,"(").concat(Va(v,h),":").concat(Va(v,p),")");else c>1&&(o.getCellOrNew(s,m+1).text="=".concat(r,"(").concat(Va(d,s),":").concat(Va(m,s),")"))}else o.getCellOrNew(s,i).text="=".concat(r,"()")}else n.range.each(function(b,g){var y=o.getCellOrNew(b,g),k={};if(y.style!==void 0&&(k=ma.cloneDeep(a[y.style])),t==="format")k.format=r,y.style=e.addStyle(k);else if(t==="font-bold"||t==="font-italic"||t==="font-name"||t==="font-size"){var S={};S[t.split("-")[1]]=r,k.font=Object.assign(k.font||{},S),y.style=e.addStyle(k)}else t==="strike"||t==="textwrap"||t==="underline"||t==="align"||t==="valign"||t==="color"||t==="bgcolor"?(k[t]=r,y.style=e.addStyle(k)):y[t]=r})})}},{key:"setSelectedCellText",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"input",e=this.autoFilter,n=this.selector,a=this.rows,o=n.ri,s=n.ci,i=o;this.unsortedRowMap.has(o)&&(i=this.unsortedRowMap.get(o));var u=a.getCell(i,s),l=u?u.text:"";if(this.setCellText(i,s,t,r),e.active()){var f=e.getFilter(s);if(f){var c=f.value.findIndex(function(h){return h===l});c>=0&&f.value.splice(c,1,t)}}}},{key:"getSelectedCell",value:function(){var t=this.selector,r=t.ri,e=t.ci,n=r;return this.unsortedRowMap.has(r)&&(n=this.unsortedRowMap.get(r)),this.rows.getCell(n,e)}},{key:"xyInSelectedRect",value:function(t,r){var e=this.getSelectedRect(),n=e.left,a=e.top,o=e.width,s=e.height,i=t-this.cols.indexWidth,u=r-this.rows.height;return i>n&&i<n+o&&u>a&&u<a+s}},{key:"getSelectedRect",value:function(){return this.getRect(this.selector.range)}},{key:"getClipboardRect",value:function(){var t=this.clipboard;return t.isClear()?{left:-100,top:-100}:this.getRect(t.range)}},{key:"getRect",value:function(t){var r=this.scroll,e=this.rows,n=this.cols,a=this.exceptRowSet,o=t.sri,s=t.sci,i=t.eri,u=t.eci;if(o<0&&s<0)return{left:0,l:0,top:0,t:0,scroll:r};var l=n.sumWidth(0,s),f=e.sumHeight(0,o,a),c=e.sumHeight(o,i+1,a),h=n.sumWidth(s,u+1),d=l-r.x,p=f-r.y,m=this.freezeTotalHeight(),v=this.freezeTotalWidth();return v>0&&v>l&&(d=l),m>0&&m>f&&(p=f),{l,t:f,left:d,top:p,height:c,width:h,scroll:r}}},{key:"getCellRectByXY",value:function(t,r){var e=this.scroll,n=this.merges,a=this.rows,o=this.cols,s=qd.call(this,r,e.y),i=s.ri,u=s.top,l=s.height,f=Bf.call(this,t,e.x),c=f.ci,h=f.left,d=f.width;if(c===-1&&(d=o.totalWidth()),i===-1&&(l=a.totalHeight()),i>=0||c>=0){var p=n.getFirstIncludes(i,c);if(p){i=p.sri,c=p.sci;var m=this.cellRect(i,c);h=m.left,u=m.top,d=m.width,l=m.height}}return{ri:i,ci:c,left:h,top:u,width:d,height:l}}},{key:"isSingleSelected",value:function(){var t=this.selector.range,r=t.sri,e=t.sci,n=t.eri,a=t.eci,o=this.getCell(r,e);if(o&&o.merge){var s=Tr(o.merge,2),i=s[0],u=s[1];if(r+i===n&&e+u===a)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var t=this.selector.range,r=t.sri,e=t.sci,n=t.eri,a=t.eci,o=this.getCell(r,e);if(o&&o.merge){var s=Tr(o.merge,2),i=s[0],u=s[1];if(r+i===n&&e+u===a)return!0}return!1}},{key:"merge",value:function(){var t=this,r=this.selector,e=this.rows;if(!this.isSingleSelected()){var n=Tr(r.size(),2),a=n[0],o=n[1];if(a>1||o>1){var s=r.range,i=s.sri,u=s.sci;this.changeData(function(){var l=e.getCellOrNew(i,u);l.merge=[a-1,o-1],t.merges.add(r.range),t.rows.deleteCells(r.range),t.rows.setCell(i,u,l)})}}}},{key:"unmerge",value:function(){var t=this,r=this.selector;if(this.isSingleSelected()){var e=r.range,n=e.sri,a=e.sci;this.changeData(function(){t.rows.deleteCell(n,a,"merge"),t.merges.deleteWithin(r.range)})}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var t=this,r=this.autoFilter,e=this.selector;this.changeData(function(){r.active()?(r.clear(),t.exceptRowSet=new Set,t.sortedRowMap=new Map,t.unsortedRowMap=new Map):r.ref=e.range.toString()})}},{key:"setAutoFilter",value:function(t,r,e,n){var a=this.autoFilter;a.addFilter(t,e,n),a.setSort(t,r),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var t=this,r=this.autoFilter,e=this.rows;if(r.active()){var n=r.sort,a=r.filteredRows(function(l,f){return e.getCell(l,f)}),o=a.rset,s=a.fset,i=Array.from(s),u=Array.from(s);n&&i.sort(function(l,f){return n.order==="asc"?l-f:n.order==="desc"?f-l:0}),this.exceptRowSet=o,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,i.forEach(function(l,f){t.sortedRowMap.set(u[f],l),t.unsortedRowMap.set(l,u[f])})}}},{key:"deleteCell",value:function(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",e=this.selector;this.changeData(function(){t.rows.deleteCells(e.range,r),r!=="all"&&r!=="format"||t.merges.deleteWithin(e.range)})}},{key:"insert",value:function(t){var r=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.changeData(function(){var n=r.selector.range,a=n.sri,o=n.sci,s=r.rows,i=r.merges,u=r.cols,l=a;t==="row"?s.insert(a,e):t==="column"&&(s.insertColumn(o,e),l=o,u.len+=e,Object.keys(u._).reverse().forEach(function(f){var c=parseInt(f,10);c>=o&&(u._[c+e]=u._[c],delete u._[c])})),i.shift(t,l,e,function(f,c,h,d){var p=s.getCell(f,c);p.merge[0]+=h,p.merge[1]+=d})})}},{key:"delete",value:function(t){var r=this;this.changeData(function(){var e=r.rows,n=r.merges,a=r.selector,o=r.cols,s=a.range,i=a.range,u=i.sri,l=i.sci,f=i.eri,c=i.eci,h=Tr(a.range.size(),2),d=h[0],p=h[1],m=u,v=d;t==="row"?e.delete(u,f):t==="column"&&(e.deleteColumn(l,c),m=s.sci,v=p,o.len-=c-l+1,Object.keys(o._).forEach(function(b){var g=parseInt(b,10);g>=l&&(g>c&&(o._[g-(c-l+1)]=o._[g]),delete o._[g])})),n.shift(t,m,-v,function(b,g,y,k){var S=e.getCell(b,g);S.merge[0]+=y,S.merge[1]+=k,S.merge[0]===0&&S.merge[1]===0&&delete S.merge})})}},{key:"scrollx",value:function(t,r){var e=this.scroll,n=this.freeze,a=this.cols,o=Tr(n,2)[1],s=Tr(ma.rangeReduceIf(o,a.len,0,0,t,function(c){return a.getWidth(c)}),3),i=s[0],u=s[1],l=s[2],f=u;t>0&&(f+=l),e.x!==f&&(e.ci=t>0?i:0,e.x=f,r())}},{key:"scrolly",value:function(t,r){var e=this.scroll,n=this.freeze,a=this.rows,o=Tr(n,1)[0],s=Tr(ma.rangeReduceIf(o,a.len,0,0,t,function(c){return a.getHeight(c)}),3),i=s[0],u=s[1],l=s[2],f=u;t>0&&(f+=l),e.y!==f&&(e.ri=t>0?i:0,e.y=f,r())}},{key:"cellRect",value:function(t,r){var e=this.rows,n=this.cols,a=n.sumWidth(0,r),o=e.sumHeight(0,t),s=e.getCell(t,r),i=n.getWidth(r),u=e.getHeight(t);if(s!==null&&s.merge){var l=Tr(s.merge,2),f=l[0],c=l[1];if(f>0)for(var h=1;h<=f;h+=1)u+=e.getHeight(t+h);if(c>0)for(var d=1;d<=c;d+=1)i+=n.getWidth(r+d)}return{left:a,top:o,width:i,height:u,cell:s}}},{key:"getCell",value:function(t,r){return this.rows.getCell(t,r)}},{key:"getCellTextOrDefault",value:function(t,r){var e=this.getCell(t,r);return e&&e.text?e.text:""}},{key:"getCellStyle",value:function(t,r){var e=this.getCell(t,r);return e&&e.style!==void 0?this.styles[e.style]:null}},{key:"getCellStyleOrDefault",value:function(t,r){var e=this.styles,n=this.rows.getCell(t,r),a=n&&n.style!==void 0?e[n.style]:{};return ma.merge(this.defaultStyle(),a)}},{key:"getSelectedCellStyle",value:function(){var t=this.selector,r=t.ri,e=t.ci;return this.getCellStyleOrDefault(r,e)}},{key:"setCellText",value:function(t,r,e,n){var a=this.rows,o=this.history,s=this.validations;n==="finished"?(a.setCellText(t,r,""),o.add(this.getData()),a.setCellText(t,r,e)):(a.setCellText(t,r,e),this.change(this.getData())),s.validate(t,r,e)}},{key:"freezeIsActive",value:function(){var t=Tr(this.freeze,2),r=t[0],e=t[1];return r>0||e>0}},{key:"setFreeze",value:function(t,r){var e=this;this.changeData(function(){e.freeze=[t,r]})}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(t,r){var e=this;this.changeData(function(){e.rows.setHeight(t,r)})}},{key:"setColWidth",value:function(t,r){var e=this;this.changeData(function(){e.cols.setWidth(t,r)})}},{key:"viewHeight",value:function(){var t=this.settings,r=t.view,e=t.showToolbar,n=t.showBottomBar,a=r.height();return n&&(a-=41),e&&(a-=41),a}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var t=Tr(this.freeze,2),r=t[0],e=t[1];return new Ti(0,0,r-1,e-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var t=this.rows,r=this.cols,e=Tr(t.maxCell(),2),n=e[0],a=e[1],o=t.sumHeight(0,n+1),s=r.sumWidth(0,a+1);return new Ti(0,0,n,a,s,o)}},{key:"exceptRowTotalHeight",value:function(t,r){var e=this.exceptRowSet,n=this.rows,a=Array.from(e),o=0;return a.forEach(function(s){if(s<t||s>r){var i=n.getHeight(s);o+=i}}),o}},{key:"viewRange",value:function(){var t=this.scroll,r=this.rows,e=this.cols,n=this.freeze,a=this.exceptRowSet,o=t.ri,s=t.ci;o<=0&&(o=Tr(n,1)[0]),s<=0&&(s=Tr(n,2)[1]);for(var i=0,u=0,l=[r.len,e.len],f=l[0],c=l[1],h=o;h<r.len&&(a.has(h)||(u+=r.getHeight(h),f=h),!(u>this.viewHeight()));h+=1);for(var d=s;d<e.len&&(c=d,!((i+=e.getWidth(d))>this.viewWidth()));d+=1);return new Ti(o,s,f,c,i,u)}},{key:"eachMergesInView",value:function(t,r){this.merges.filterIntersects(t).forEach(function(e){return r(e)})}},{key:"hideRowsOrCols",value:function(){var t=this.rows,r=this.cols,e=this.selector,n=Tr(e.size(),2),a=n[0],o=n[1],s=e.range,i=s.sri,u=s.sci,l=s.eri,f=s.eci;if(a===t.len)for(var c=u;c<=f;c+=1)r.setHide(c,!0);else if(o===r.len)for(var h=i;h<=l;h+=1)t.setHide(h,!0)}},{key:"unhideRowsOrCols",value:function(t,r){this["".concat(t,"s")].unhide(r)}},{key:"rowEach",value:function(t,r,e){for(var n=0,a=this.rows,o=this.exceptRowSet,s=nn(o),i=0,u=0;u<s.length;u+=1)s[u]<t&&(i+=1);for(var l=t+i;l<=r+i;l+=1)if(o.has(l))i+=1;else{var f=a.getHeight(l);if(f>0&&(e(l,n,f),(n+=f)>this.viewHeight()))break}}},{key:"colEach",value:function(t,r,e){for(var n=0,a=this.cols,o=t;o<=r;o+=1){var s=a.getWidth(o);if(s>0&&(e(o,n,s),(n+=s)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(t){for(var r=this.styles,e=0;e<r.length;e+=1){var n=r[e];if(ma.equals(n,t))return e}return r.push(t),r.length-1}},{key:"changeData",value:function(t){this.history.add(this.getData()),t(),this.change(this.getData())}},{key:"setData",value:function(t){var r=this;return Object.keys(t).forEach(function(e){if(e==="merges"||e==="rows"||e==="cols"||e==="validations")r[e].setData(t[e]);else if(e==="freeze"){var n=Tr(Nn(t[e]),2),a=n[0],o=n[1];r.freeze=[o,a]}else e==="autofilter"?r.autoFilter.setData(t[e]):t[e]!==void 0&&(r[e]=t[e])}),this}},{key:"getData",value:function(){var t=this.name,r=this.freeze,e=this.styles,n=this.merges,a=this.rows,o=this.cols,s=this.validations,i=this.autoFilter;return{name:t,freeze:Va(r[1],r[0]),styles:e,merges:n.getData(),rows:a.getData(),cols:o.getData(),validations:s.getData(),autofilter:i.getData()}}}])}();function Gd(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(u,l){if(u){if(typeof u=="string")return zf(u,l);var f={}.toString.call(u).slice(8,-1);return f==="Object"&&u.constructor&&(f=u.constructor.name),f==="Map"||f==="Set"?Array.from(u):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?zf(u,l):void 0}}(t))||r){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return s=u.done,u},e:function(u){i=!0,o=u},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function zf(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function ia(t,r,e){t.addEventListener(r,e)}function du(t,r,e){t.removeEventListener(r,e)}function Wo(t){t.xclickoutside&&(du(window.document.body,"click",t.xclickoutside),delete t.xclickoutside)}function Vo(t,r){t.xclickoutside=function(e){e.detail===2||t.contains(e.target)||(r?r(t):(t.hide(),Wo(t)))},ia(window.document.body,"click",t.xclickoutside)}function Uf(t,r,e){ia(t,"mousemove",r),t.xEvtUp=function(n){du(t,"mousemove",r),du(t,"mouseup",t.xEvtUp),e(n)},ia(t,"mouseup",t.xEvtUp)}function Hf(t,r,e,n){Math.abs(t)>Math.abs(r)?n(t>0?"right":"left",t,e):n(r>0?"down":"up",r,e)}var er="x-spreadsheet",Wf=function(){return $t(function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1?arguments[1]:void 0;Vt(this,t),this.moving=!1,this.vertical=e,this.el=ke("div","".concat(er,"-resizer ").concat(e?"vertical":"horizontal")).children(this.unhideHoverEl=ke("div","".concat(er,"-resizer-hover")).on("dblclick.stop",function(a){return r.mousedblclickHandler(a)}).css("position","absolute").hide(),this.hoverEl=ke("div","".concat(er,"-resizer-hover")).on("mousedown.stop",function(a){return r.mousedownHandler(a)}),this.lineEl=ke("div","".concat(er,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=n,this.unhideFn=function(){}},[{key:"showUnhide",value:function(t){this.unhideIndex=t,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(t,r){var e=this.moving,n=this.vertical,a=this.hoverEl,o=this.lineEl,s=this.el,i=this.unhideHoverEl;if(!e){this.cRect=t;var u=t.left,l=t.top,f=t.width,c=t.height;s.offset({left:n?u+f-5:u,top:n?l:l+c-5}).show(),a.offset({width:n?5:f,height:n?c:5}),o.offset({width:n?0:r.width,height:n?r.height:0}),i.offset({left:n?5-f:u,top:n?l:5-c,width:n?5:f,height:n?c:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(t){var r=this,e=t,n=this.el,a=this.lineEl,o=this.cRect,s=this.vertical,i=this.minDistance,u=s?o.width:o.height;a.show(),Uf(window,function(l){r.moving=!0,e!==null&&l.buttons===1&&(s?(u+=l.movementX)>i&&n.css("left","".concat(o.left+u,"px")):(u+=l.movementY)>i&&n.css("top","".concat(o.top+u,"px")),e=l)},function(){e=null,a.hide(),r.moving=!1,r.hide(),r.finishedFn&&(u<i&&(u=i),r.finishedFn(o,u))})}}])}(),Te=function(){return $t(function t(r){var e=this;Vt(this,t),this.vertical=r,this.moveFn=null,this.el=ke("div","".concat(er,"-scrollbar ").concat(r?"vertical":"horizontal")).child(this.contentEl=ke("div","")).on("mousemove.stop",function(){}).on("scroll.stop",function(n){var a=n.target,o=a.scrollTop,s=a.scrollLeft;e.moveFn&&e.moveFn(e.vertical?o:s,n)})},[{key:"move",value:function(t){return this.el.scroll(t),this}},{key:"scroll",value:function(){return this.el.scroll()}},{key:"set",value:function(t,r){var e=t-1;if(r>e){var n=this.vertical?"height":"width";this.el.css(n,"".concat(e-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(n,"".concat(r,"px"))}else this.el.hide();return this}}])}(),Ds=10,pu=function(){return $t(function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];Vt(this,t),this.useHideInput=e,this.autoFocus=n,this.inputChange=function(){},this.cornerEl=ke("div","".concat(er,"-selector-corner")),this.areaEl=ke("div","".concat(er,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=ke("div","".concat(er,"-selector-clipboard")).hide(),this.autofillEl=ke("div","".concat(er,"-selector-autofill")).hide(),this.el=ke("div","".concat(er,"-selector")).css("z-index","".concat(Ds)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),e&&(this.hideInput=ke("input","").on("compositionend",function(a){r.inputChange(a.target.value)}),this.el.child(this.hideInputDiv=ke("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=ke("div","hide-input").child(this.hideInput))),Ds+=1},[{key:"setOffset",value:function(t){return this.el.offset(t).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(t){var r=t.left,e=t.top,n={width:t.width-3+.8,height:t.height-3+.8,left:r-.8,top:e-.8};this.areaEl.offset(n).show(),this.useHideInput&&(this.hideInputDiv.offset(n),this.autoFocus?this.hideInput.val("").focus():this.hideInput.val(""))}},{key:"setClipboardOffset",value:function(t){var r=t.left,e=t.top,n=t.width,a=t.height;this.clipboardEl.offset({left:r,top:e,width:n-5,height:a-5})}},{key:"showAutofill",value:function(t){var r=t.left,e=t.top,n=t.width,a=t.height;this.autofillEl.offset({width:n-3,height:a-3,left:r,top:e}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}])}();function vc(t){var r=this.data,e=t.left,n=t.top,a=t.width,o=t.height,s=t.scroll,i=t.l,u=t.t,l=r.freezeTotalWidth(),f=r.freezeTotalHeight(),c=e-l;l>i&&(c-=s.x);var h=n-f;return f>u&&(h-=s.y),{left:c,top:h,width:a,height:o}}function mu(t){var r=this.data,e=t.left,n=t.width,a=t.height,o=t.l,s=t.t,i=t.scroll,u=r.freezeTotalWidth(),l=e-u;return u>o&&(l-=i.x),{left:l,top:s,width:n,height:a}}function gc(t){var r=this.data,e=t.top,n=t.width,a=t.height,o=t.l,s=t.t,i=t.scroll,u=r.freezeTotalHeight(),l=e-u;return u>s&&(l-=i.y),{left:o,top:l,width:n,height:a}}function bc(t){this.br.setAreaOffset(vc.call(this,t))}function Yd(t){this.tl.setAreaOffset(t)}function $o(t){this.t.setAreaOffset(mu.call(this,t))}function Vf(t){this.l.setAreaOffset(gc.call(this,t))}function $f(t){this.l.setClipboardOffset(gc.call(this,t))}function yc(t){this.br.setClipboardOffset(vc.call(this,t))}function Kd(t){this.tl.setClipboardOffset(t)}function qf(t){this.t.setClipboardOffset(mu.call(this,t))}function Gf(t){bc.call(this,t),Yd.call(this,t),$o.call(this,t),Vf.call(this,t)}function Yf(t){yc.call(this,t),Kd.call(this,t),qf.call(this,t),$f.call(this,t)}var Kf=function(){return $t(function t(r){var e=this;Vt(this,t);var n=r.settings.autoFocus;this.inputChange=function(){},this.data=r,this.br=new pu(!0,n),this.t=new pu,this.l=new pu,this.tl=new pu,this.br.inputChange=function(a){e.inputChange(a)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=ke("div","".concat(er,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,Ds+=1},[{key:"resetData",value:function(t){this.data=t,this.range=t.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var t=this.data,r=this.tl,e=this.t,n=this.l,a=this.br,o=t.freezeTotalHeight(),s=t.freezeTotalWidth();o>0||s>0?(r.setOffset({width:s,height:o}),e.setOffset({left:s,height:o}),n.setOffset({top:o,width:s}),a.setOffset({left:s,top:o})):(r.hide(),e.hide(),n.hide(),a.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var t=this.data.getSelectedRect(),r=this.data.getClipboardRect();Gf.call(this,t),Yf.call(this,r),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var t=this.data.getSelectedRect(),r=this.data.getClipboardRect();bc.call(this,t),$o.call(this,t),yc.call(this,r),qf.call(this,r),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var t=this.data.getSelectedRect(),r=this.data.getClipboardRect();bc.call(this,t),Vf.call(this,t),yc.call(this,r),$f.call(this,r),this.resetOffset()}},{key:"set",value:function(t,r){var e=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=this.data,a=n.calSelectedRangeByStart(t,r),o=a.sri,s=a.sci;if(e){var i=t,u=r;t<0&&(i=0),r<0&&(u=0),n.selector.setIndexes(i,u),this.indexes=[i,u]}this.moveIndexes=[o,s],this.range=a,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(t,r){var e=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=this.data,a=this.lastri,o=this.lastci;if(e){if(t===a&&r===o)return;this.lastri=t,this.lastci=r}this.range=n.calSelectedRangeByEnd(t,r),Gf.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var t=this.data.selector.range,r=t.eri,e=t.eci;this.setEnd(r,e)}},{key:"showAutofill",value:function(t,r){if(t!==-1||r!==-1){var e=this.range,n=e.sri,a=e.sci,o=e.eri,s=e.eci,i=t,u=r,l=n-t,f=o-t,c=s-r;if(a-r>0)this.arange=new Ti(n,u,o,a-1);else if(l>0)this.arange=new Ti(i,a,n-1,s);else if(c<0)this.arange=new Ti(n,s+1,o,u);else{if(!(f<0))return void(this.arange=null);this.arange=new Ti(o+1,a,i,s)}if(this.arange!==null){var h=this.data.getRect(this.arange);h.width+=2,h.height+=2;var d=this.br,p=this.l,m=this.t,v=this.tl;d.showAutofill(vc.call(this,h)),p.showAutofill(gc.call(this,h)),m.showAutofill(mu.call(this,h)),v.showAutofill(h)}}}},{key:"hideAutofill",value:function(){var t=this;["br","l","t","tl"].forEach(function(r){t[r].hideAutofill()})}},{key:"showClipboard",value:function(){var t=this,r=this.data.getClipboardRect();Yf.call(this,r),["br","l","t","tl"].forEach(function(e){t[e].showClipboard()})}},{key:"hideClipboard",value:function(){var t=this;["br","l","t","tl"].forEach(function(r){t[r].hideClipboard()})}}])}();function Xd(t){t.preventDefault(),t.stopPropagation();var r=this.filterItems;r.length<=0||(this.itemIndex>=0&&r[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=r.length-1),r[this.itemIndex].toggle())}function Xf(t){t.stopPropagation();var r=this.filterItems;r.length<=0||(this.itemIndex>=0&&r[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>r.length-1&&(this.itemIndex=0),r[this.itemIndex].toggle())}function Zd(t){t.preventDefault();var r=this.filterItems;r.length<=0||(t.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),r[this.itemIndex].el.click(),this.hide())}function Jd(t){var r=t.keyCode;switch(t.ctrlKey&&t.stopPropagation(),r){case 37:case 39:default:t.stopPropagation();break;case 38:Xd.call(this,t);break;case 40:Xf.call(this,t);break;case 13:case 9:Zd.call(this,t)}}var wc=function(){return $t(function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"200px";Vt(this,t),this.filterItems=[],this.items=r,this.el=ke("div","".concat(er,"-suggest")).css("width",n).hide(),this.itemClick=e,this.itemIndex=-1},[{key:"setOffset",value:function(t){this.el.cssRemoveKeys("top","bottom").offset(t)}},{key:"hide",value:function(){var t=this.el;this.filterItems=[],this.itemIndex=-1,t.hide(),Wo(this.el.parent())}},{key:"setItems",value:function(t){this.items=t}},{key:"search",value:function(t){var r,e=this,n=this.items;if(/^\s*$/.test(t)||(n=n.filter(function(o){return(o.key||o).startsWith(t.toUpperCase())})),n=n.map(function(o){var s=o.title;s?typeof s=="function"&&(s=s()):s=o;var i=ke("div","".concat(er,"-item")).child(s).on("click.stop",function(){e.itemClick(o),e.hide()});return o.label&&i.child(ke("div","label").html(o.label)),i}),this.filterItems=n,!(n.length<=0)){var a=this.el;(r=a.html("")).children.apply(r,nn(n)).show(),Vo(a.parent(),function(){e.hide()})}}},{key:"bindInputEvents",value:function(t){var r=this;t.on("keydown",function(e){return Jd.call(r,e)})}}])}();function cn(t,r){if(r&&(Mn(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function cr(t){return(cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}function Zf(t,r){return(Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(t,r)}function ge(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&Zf(t,r)}function Jf(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jf=function(){return!!t})()}var Zi=function(t){function r(e){var n,a,o,s;return Vt(this,r),a=this,o=r,s=["div","".concat(er,"-icon")],o=cr(o),(n=cn(a,Jf()?Reflect.construct(o,s||[],cr(a).constructor):o.apply(a,s))).iconNameEl=ke("div","".concat(er,"-icon-img ").concat(e)),n.child(n.iconNameEl),n}return ge(r,t),$t(r,[{key:"setName",value:function(e){this.iconNameEl.className("".concat(er,"-icon-img ").concat(e))}}])}(go);function Qf(t,r){t.setMonth(t.getMonth()+r)}function Qd(t,r){var e=new Date(t);return e.setDate(r-t.getDay()+1),e}var tp=function(){return $t(function t(r){var e,n=this;Vt(this,t),this.value=r,this.cvalue=new Date(r),this.headerLeftEl=ke("div","calendar-header-left"),this.bodyEl=ke("tbody",""),this.buildAll(),this.el=ke("div","x-spreadsheet-calendar").children(ke("div","calendar-header").children(this.headerLeftEl,ke("div","calendar-header-right").children(ke("a","calendar-prev").on("click.stop",function(){return n.prev()}).child(new Zi("chevron-left")),ke("a","calendar-next").on("click.stop",function(){return n.next()}).child(new Zi("chevron-right")))),ke("table","calendar-body").children(ke("thead","").child((e=ke("tr","")).children.apply(e,nn(si("calendar.weeks").map(function(a){return ke("th","cell").child(a)})))),this.bodyEl)),this.selectChange=function(){}},[{key:"setValue",value:function(t){this.value=t,this.cvalue=new Date(t),this.buildAll()}},{key:"prev",value:function(){Qf(this.value,-1),this.buildAll()}},{key:"next",value:function(){Qf(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var t=this.value;this.headerLeftEl.html("".concat(si("calendar.months")[t.getMonth()]," ").concat(t.getFullYear()))}},{key:"buildBody",value:function(){var t,r=this,e=this.value,n=this.cvalue,a=this.bodyEl,o=function(s,i,u){for(var l=new Date(s,i,1,23,59,59),f=[[],[],[],[],[],[]],c=0;c<6;c+=1)for(var h=0;h<7;h+=1){var d=Qd(l,7*c+h),p=d.getMonth()!==i,m=d.getMonth()===u.getMonth()&&d.getDate()===u.getDate();f[c][h]={d,disabled:p,active:m}}return f}(e.getFullYear(),e.getMonth(),n).map(function(s){var i,u=s.map(function(l){var f="cell";return l.disabled&&(f+=" disabled"),l.active&&(f+=" active"),ke("td","").child(ke("div",f).on("click.stop",function(){r.selectChange(l.d)}).child(l.d.getDate().toString()))});return(i=ke("tr","")).children.apply(i,nn(u))});(t=a.html("")).children.apply(t,nn(o))}}])}(),ep=function(){return $t(function t(){Vt(this,t),this.calendar=new tp(new Date),this.el=ke("div","".concat(er,"-datepicker")).child(this.calendar.el).hide()},[{key:"setValue",value:function(t){var r=this.calendar;return typeof t=="string"?/^\d{4}-\d{1,2}-\d{1,2}$/.test(t)&&r.setValue(new Date(t.replace(new RegExp("-","g"),"/"))):t instanceof Date&&r.setValue(t),this}},{key:"change",value:function(t){var r=this;this.calendar.selectChange=function(e){t(e),r.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])}();function qo(){var t=this.inputText;if(!/^\s*$/.test(t)){var r=this.textlineEl,e=this.textEl,n=this.areaOffset,a=t.split(` |
|
|
`),o=Math.max.apply(Math,nn(a.map(function(c){return c.length}))),s=r.offset().width/t.length,i=(o+1)*s+5,u=this.viewFn().width-n.left-s,l=a.length;if(i>n.width){var f=i;i>u&&(f=u,l+=parseInt(i/u,10),l+=i%u>0?1:0),e.css("width","".concat(f,"px"))}(l*=this.rowHeight)>n.height&&e.css("height","".concat(l,"px"))}}function rp(t,r){var e=t.target,n=e.value,a=e.selectionEnd,o="".concat(n.slice(0,a)).concat(r).concat(n.slice(a));e.value=o,e.setSelectionRange(a+1,a+1),this.inputText=o,this.textlineEl.html(o),qo.call(this)}function np(t){var r=t.keyCode,e=t.altKey;r!==13&&r!==9&&t.stopPropagation(),r===13&&e&&(rp.call(this,t,` |
|
|
`),t.stopPropagation()),r!==13||e||t.preventDefault()}function ip(t){var r=t.target.value,e=this.suggest,n=this.textlineEl,a=this.validator,o=this.cell;if(o!==null)if("editable"in o&&o.editable===!0||o.editable===void 0){if(this.inputText=r,a)a.type==="list"?e.search(r):e.hide();else{var s=r.lastIndexOf("=");s!==-1?e.search(r.substring(s+1)):e.hide()}n.html(r),qo.call(this),this.change("input",r)}else t.target.value=o.text||"";else{if(this.inputText=r,a)a.type==="list"?e.search(r):e.hide();else{var i=r.lastIndexOf("=");i!==-1?e.search(r.substring(i+1)):e.hide()}n.html(r),qo.call(this),this.change("input",r)}}function ap(t){var r=this.textEl.el;setTimeout(function(){r.focus(),r.setSelectionRange(t,t)},0)}function _c(t,r){var e=this.textEl,n=this.textlineEl;e.el.blur(),e.val(t),n.html(t),ap.call(this,r)}function sp(t){var r=this.inputText,e=this.validator,n=0;if(e&&e.type==="list")this.inputText=t,n=this.inputText.length;else{var a=r.lastIndexOf("="),o=r.substring(0,a+1),s=r.substring(a+1);s=s.indexOf(")")!==-1?s.substring(s.indexOf(")")):"",this.inputText="".concat(o+t.key,"("),n=this.inputText.length,this.inputText+=")".concat(s)}_c.call(this,this.inputText,n)}function op(){this.suggest.setItems(this.formulas)}var th=function(){return $t(function t(r,e,n){var a=this;Vt(this,t),this.viewFn=e,this.rowHeight=n,this.formulas=r,this.suggest=new wc(r,function(o){sp.call(a,o)}),this.datepicker=new ep,this.datepicker.change(function(o){a.setText(function(s){var i=s.getMonth()+1,u=s.getDate();return i<10&&(i="0".concat(i)),u<10&&(u="0".concat(u)),"".concat(s.getFullYear(),"-").concat(i,"-").concat(u)}(o)),a.clear()}),this.areaEl=ke("div","".concat(er,"-editor-area")).children(this.textEl=ke("textarea","").on("input",function(o){return ip.call(a,o)}).on("paste.stop",function(){}).on("keydown",function(o){return np.call(a,o)}),this.textlineEl=ke("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",function(){}).on("mousedown.stop",function(){}),this.el=ke("div","".concat(er,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}},[{key:"setFreezeLengths",value:function(t,r){this.freeze.w=t,this.freeze.h=r}},{key:"clear",value:function(){this.inputText!==""&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),op.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",e=this.textEl,n=this.areaEl,a=this.suggest,o=this.freeze,s=this.el;if(t){this.areaOffset=t;var i=t.left,u=t.top,l=t.width,f=t.height,c=t.l,h=t.t,d={left:0,top:0};o.w>c&&o.h>h||(o.w<c&&o.h<h?(d.left=o.w,d.top=o.h):o.w>c?d.top=o.h:o.h>h&&(d.left=o.w)),s.offset(d),n.offset({left:i-d.left-.8,top:u-d.top-.8}),e.offset({width:l-9+.8,height:f-3+.8});var p={left:0};p[r]=f,a.setOffset(p),a.hide()}}},{key:"setCell",value:function(t,r){if(!t||t.editable!==!1){var e=this.el,n=this.datepicker,a=this.suggest;e.show(),this.cell=t;var o=t&&t.text||"";if(this.setText(o),this.validator=r,r){var s=r.type;s==="date"&&(n.show(),/^\s*$/.test(o)||n.setValue(o)),s==="list"&&(a.setItems(r.values()),a.search(""))}}}},{key:"setText",value:function(t){this.inputText=t,_c.call(this,t,t.length),qo.call(this)}}])}();function eh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eh=function(){return!!t})()}var wo=function(t){function r(e){var n,a,o,s,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Vt(this,r),a=this,o=r,s=["div","".concat(er,"-button ").concat(i)],o=cr(o),(n=cn(a,eh()?Reflect.construct(o,s||[],cr(a).constructor):o.apply(a,s))).child(si("button.".concat(e))),n}return ge(r,t),$t(r)}(go);function vu(){return window.devicePixelRatio||1}function kc(){return vu()-.5}function tn(t){return parseInt(t*vu(),10)}function Go(t){var r=tn(t);return r>0?r-.5:.5}var rh=function(){return $t(function t(r,e,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;Vt(this,t),this.x=r,this.y=e,this.width=n,this.height=a,this.padding=o,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null},[{key:"setBorders",value:function(t){var r=t.top,e=t.bottom,n=t.left,a=t.right;r&&(this.borderTop=r),a&&(this.borderRight=a),e&&(this.borderBottom=e),n&&(this.borderLeft=n)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(t){var r=this.width,e=this.padding,n=this.x;return t==="left"?n+=e:t==="center"?n+=r/2:t==="right"&&(n+=r-e),n}},{key:"texty",value:function(t,r){var e=this.height,n=this.padding,a=this.y;return t==="top"?a+=n:t==="middle"?a+=e/2-r/2:t==="bottom"&&(a+=e-n-r),a}},{key:"topxys",value:function(){var t=this.x,r=this.y;return[[t,r],[t+this.width,r]]}},{key:"rightxys",value:function(){var t=this.x,r=this.y,e=this.width;return[[t+e,r],[t+e,r+this.height]]}},{key:"bottomxys",value:function(){var t=this.x,r=this.y,e=this.width,n=this.height;return[[t,r+n],[t+e,r+n]]}},{key:"leftxys",value:function(){var t=this.x,r=this.y;return[[t,r],[t,r+this.height]]}}])}();function nh(t,r,e,n,a,o,s){var i={x:0,y:0};t==="underline"?i.y=a==="bottom"?0:a==="top"?-(o+2):-o/2:t==="strike"&&(a==="bottom"?i.y=o/2:a==="top"&&(i.y=-(o/2+2))),n==="center"?i.x=s/2:n==="right"&&(i.x=s),this.line([r-i.x,e-i.y],[r-i.x+s,e-i.y])}var ih=function(){return $t(function t(r,e,n){Vt(this,t),this.el=r,this.ctx=r.getContext("2d"),this.resize(e,n),this.ctx.scale(vu(),vu())},[{key:"resize",value:function(t,r){this.el.style.width="".concat(t,"px"),this.el.style.height="".concat(r,"px"),this.el.width=tn(t),this.el.height=tn(r)}},{key:"clear",value:function(){var t=this.el,r=t.width,e=t.height;return this.ctx.clearRect(0,0,r,e),this}},{key:"attr",value:function(t){return Object.assign(this.ctx,t),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(t,r){return this.ctx.translate(tn(t),tn(r)),this}},{key:"scale",value:function(t,r){return this.ctx.scale(t,r),this}},{key:"clearRect",value:function(t,r,e,n){return this.ctx.clearRect(t,r,e,n),this}},{key:"fillRect",value:function(t,r,e,n){return this.ctx.fillRect(tn(t)-.5,tn(r)-.5,tn(e),tn(n)),this}},{key:"fillText",value:function(t,r,e){return this.ctx.fillText(t,tn(r),tn(e)),this}},{key:"text",value:function(t,r){var e=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=this.ctx,s=n.align,i=n.valign,u=n.font,l=n.color,f=n.strike,c=n.underline,h=r.textx(s);o.save(),o.beginPath(),this.attr({textAlign:s,textBaseline:i,font:"".concat(u.italic?"italic":""," ").concat(u.bold?"bold":""," ").concat(tn(u.size),"px ").concat(u.name),fillStyle:l,strokeStyle:l});var d="".concat(t).split(` |
|
|
`),p=r.innerWidth(),m=[];d.forEach(function(g){var y=o.measureText(g).width;if(a&&y>tn(p)){for(var k={w:0,len:0,start:0},S=0;S<g.length;S+=1)k.w>=tn(p)&&(m.push(g.substr(k.start,k.len)),k={w:0,len:0,start:S}),k.len+=1,k.w+=o.measureText(g[S]).width+1;k.len>0&&m.push(g.substr(k.start,k.len))}else m.push(g)});var v=(m.length-1)*(u.size+2),b=r.texty(i,v);return m.forEach(function(g){var y=o.measureText(g).width;e.fillText(g,h,b),f&&nh.call(e,"strike",h,b,s,i,u.size,y),c&&nh.call(e,"underline",h,b,s,i,u.size,y),b+=u.size+2}),o.restore(),this}},{key:"border",value:function(t,r){var e=this.ctx;return e.lineWidth=kc,e.strokeStyle=r,t==="medium"?e.lineWidth=tn(2)-.5:t==="thick"?e.lineWidth=tn(3):t==="dashed"?e.setLineDash([tn(3),tn(2)]):t==="dotted"?e.setLineDash([tn(1),tn(1)]):t==="double"&&e.setLineDash([tn(2),0]),this}},{key:"line",value:function(){var t=this.ctx;if(arguments.length>1){t.beginPath();var r=Tr(arguments.length<=0?void 0:arguments[0],2),e=r[0],n=r[1];t.moveTo(Go(e),Go(n));for(var a=1;a<arguments.length;a+=1){var o=Tr(a<0||arguments.length<=a?void 0:arguments[a],2),s=o[0],i=o[1];t.lineTo(Go(s),Go(i))}t.stroke()}return this}},{key:"strokeBorders",value:function(t){var r=this.ctx;r.save();var e=t.borderTop,n=t.borderRight,a=t.borderBottom,o=t.borderLeft;e&&(this.border.apply(this,nn(e)),this.line.apply(this,nn(t.topxys()))),n&&(this.border.apply(this,nn(n)),this.line.apply(this,nn(t.rightxys()))),a&&(this.border.apply(this,nn(a)),this.line.apply(this,nn(t.bottomxys()))),o&&(this.border.apply(this,nn(o)),this.line.apply(this,nn(t.leftxys()))),r.restore()}},{key:"dropdown",value:function(t){var r=this.ctx,e=t.x,n=t.y,a=e+t.width-15,o=n+t.height-15;r.save(),r.beginPath(),r.moveTo(tn(a),tn(o)),r.lineTo(tn(a+8),tn(o)),r.lineTo(tn(a+4),tn(o+6)),r.closePath(),r.fillStyle="rgba(0, 0, 0, .45)",r.fill(),r.restore()}},{key:"error",value:function(t){var r=this.ctx,e=t.x,n=t.y,a=e+t.width-1;r.save(),r.beginPath(),r.moveTo(tn(a-8),tn(n-1)),r.lineTo(tn(a),tn(n-1)),r.lineTo(tn(a),tn(n+8)),r.closePath(),r.fillStyle="rgba(255, 0, 0, .65)",r.fill(),r.restore()}},{key:"frozen",value:function(t){var r=this.ctx,e=t.x,n=t.y,a=e+t.width-1;r.save(),r.beginPath(),r.moveTo(tn(a-8),tn(n-1)),r.lineTo(tn(a),tn(n-1)),r.lineTo(tn(a),tn(n+8)),r.closePath(),r.fillStyle="rgba(0, 255, 0, .85)",r.fill(),r.restore()}},{key:"rect",value:function(t,r){var e=this.ctx,n=t.x,a=t.y,o=t.width,s=t.height,i=t.bgcolor;e.save(),e.beginPath(),e.fillStyle=i||"#fff",e.rect(Go(n+1),Go(a+1),tn(o-2),tn(s-2)),e.clip(),e.fill(),r(),e.restore()}}])}(),ti=[{key:"Arial",title:"Arial"},{key:"Helvetica",title:"Helvetica"},{key:"Source Sans Pro",title:"Source Sans Pro"},{key:"Comic Sans MS",title:"Comic Sans MS"},{key:"Courier New",title:"Courier New"},{key:"Verdana",title:"Verdana"},{key:"Lato",title:"Lato"}],Vn=[{pt:7.5,px:10},{pt:8,px:11},{pt:9,px:12},{pt:10,px:13},{pt:10.5,px:14},{pt:11,px:15},{pt:12,px:16},{pt:14,px:18.7},{pt:15,px:20},{pt:16,px:21.3},{pt:18,px:24},{pt:22,px:29.3},{pt:24,px:32},{pt:26,px:34.7},{pt:36,px:48},{pt:42,px:56}],ah=function(t,r){var e=Tr(t,1)[0],n=t;if(e==='"')return t.substring(1);var a=1;if(e==="-"&&(n=t.substring(1),a=-1),n[0]>="0"&&n[0]<="9")return a*Number(n);var o=Tr(Nn(n),2);return a*r(o[0],o[1])},sh=function(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(t[0]==="="){var a=function(o){for(var s=[],i=[],u=[],l=0,f="",c=1,h="",d=0;d<o.length;d+=1){var p=o.charAt(d);if(p!==" "){if(p>="a"&&p<="z")u.push(p.toUpperCase());else if(p>="0"&&p<="9"||p>="A"&&p<="Z"||p===".")u.push(p);else if(p==='"'){for(d+=1;o.charAt(d)!=='"';)u.push(o.charAt(d)),d+=1;i.push('"'.concat(u.join(""))),u=[]}else if(p==="-"&&/[+\-*/,(]/.test(h))u.push(p);else{if(p!=="("&&u.length>0&&i.push(u.join("")),p===")"){var m=s.pop();if(l===2)try{for(var v=Tr(Nn(i.pop()),2),b=v[0],g=v[1],y=Tr(Nn(i.pop()),2),k=y[0],S=y[1],C=0,O=k;O<=b;O+=1)for(var L=S;L<=g;L+=1)i.push(Va(O,L)),C+=1;i.push([m,C])}catch{}else if(l===1||l===3)l===3&&i.push(f),i.push([m,c]),c=1;else for(;m!=="("&&(i.push(m),!(s.length<=0));)m=s.pop();l=0}else if(p==="="||p===">"||p==="<"){var j=o.charAt(d+1);f=p,j!=="="&&j!=="-"||(f+=j,d+=1),l=3}else if(p===":")l=2;else if(p===",")l===3&&i.push(f),l=1,c+=1;else if(p==="("&&u.length>0)s.push(u.join(""));else{if(s.length>0&&(p==="+"||p==="-")){var U=s[s.length-1];if(U!=="("&&i.push(s.pop()),U==="*"||U==="/")for(;s.length>0&&(U=s[s.length-1])!=="(";)i.push(s.pop())}else if(s.length>0){var z=s[s.length-1];z!=="*"&&z!=="/"||i.push(s.pop())}s.push(p)}u=[]}h=p}}for(u.length>0&&i.push(u.join(""));s.length>0;)i.push(s.pop());return i}(t.substring(1));return a.length<=0?t:function(o,s,i,u){for(var l=[],f=0;f<o.length;f+=1){var c=o[f],h=c[0];if(c==="+"){var d=l.pop();l.push(yo("+",l.pop(),d))}else if(c==="-")if(l.length===1){var p=l.pop();l.push(yo("*",p,-1))}else{var m=l.pop();l.push(yo("-",l.pop(),m))}else if(c==="*")l.push(yo("*",l.pop(),l.pop()));else if(c==="/"){var v=l.pop();l.push(yo("/",l.pop(),v))}else if(h==="="||h===">"||h==="<"){var b=l.pop();Number.isNaN(b)||(b=Number(b));var g=l.pop();Number.isNaN(g)||(g=Number(g));var y=!1;h==="="?y=g===b:c===">"?y=g>b:c===">="?y=g>=b:c==="<"?y=g<b:c==="<="&&(y=g<=b),l.push(y)}else if(Array.isArray(c)){for(var k=Tr(c,2),S=k[0],C=k[1],O=[],L=0;L<C;L+=1)O.push(l.pop());l.push(s[S].render(O.reverse()))}else{if(u.includes(c))return 0;(h>="a"&&h<="z"||h>="A"&&h<="Z")&&u.push(c),l.push(ah(c,i)),u.pop()}}return l[0]}(a,r,function(o,s){return sh(e(o,s),r,e,n)},n)}return t};const lp={render:sh};var xc=[{key:"SUM",title:un("formula.sum"),render:function(t){return t.reduce(function(r,e){return yo("+",r,e)},0)}},{key:"AVERAGE",title:un("formula.average"),render:function(t){return t.reduce(function(r,e){return Number(r)+Number(e)},0)/t.length}},{key:"MAX",title:un("formula.max"),render:function(t){return Math.max.apply(Math,nn(t.map(function(r){return Number(r)})))}},{key:"MIN",title:un("formula.min"),render:function(t){return Math.min.apply(Math,nn(t.map(function(r){return Number(r)})))}},{key:"IF",title:un("formula._if"),render:function(t){var r=Tr(t,3),e=r[0],n=r[1],a=r[2];return e?n:a}},{key:"AND",title:un("formula.and"),render:function(t){return t.every(function(r){return r})}},{key:"OR",title:un("formula.or"),render:function(t){return t.some(function(r){return r})}},{key:"CONCAT",title:un("formula.concat"),render:function(t){return t.join("")}}],oh=xc,yn={};xc.forEach(function(t){yn[t.key]=t});var Yo=function(t){return t},hs=function(t){if(/^(-?\d*.?\d*)$/.test(t)){var r=vo(Number(t).toFixed(2).toString().split("\\.")),e=r[0],n=r.slice(1);return[e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(nn(n))}return t},Ko=[{key:"normal",title:un("format.normal"),type:"string",render:Yo},{key:"text",title:un("format.text"),type:"string",render:Yo},{key:"number",title:un("format.number"),type:"number",label:"1,000.12",render:hs},{key:"percent",title:un("format.percent"),type:"number",label:"10.12%",render:function(t){return"".concat(t,"%")}},{key:"rmb",title:un("format.rmb"),type:"number",label:"¥10.00",render:function(t){return"¥".concat(hs(t))}},{key:"usd",title:un("format.usd"),type:"number",label:"$10.00",render:function(t){return"$".concat(hs(t))}},{key:"eur",title:un("format.eur"),type:"number",label:"€10.00",render:function(t){return"€".concat(hs(t))}},{key:"date",title:un("format.date"),type:"date",label:"26/09/2008",render:Yo},{key:"time",title:un("format.time"),type:"date",label:"15:59:00",render:Yo},{key:"datetime",title:un("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:Yo},{key:"duration",title:un("format.duration"),type:"date",label:"24:01:00",render:Yo}],Kn={};Ko.forEach(function(t){Kn[t.key]=t});var lh={fillStyle:"#f4f5f8"},Sc={fillStyle:"#fff",lineWidth:kc,strokeStyle:"#e6e6e6"};function _o(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=t.cellRect(r,e),o=a.left,s=a.top,i=a.width,u=a.height;return new rh(o,s+n,i,u,5)}function Ks(t,r,e,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=r.sortedRowMap,s=r.rows,i=r.cols;if(!s.isHide(e)&&!i.isHide(n)){var u=e;o.has(e)&&(u=o.get(e));var l=r.getCell(u,n);if(l!==null){var f=!1;"editable"in l&&l.editable===!1&&(f=!0);var c=r.getCellStyleOrDefault(u,n),h=_o(r,e,n,a);h.bgcolor=c.bgcolor,c.border!==void 0&&(h.setBorders(c.border),t.strokeBorders(h)),t.rect(h,function(){var d="";d=r.settings.evalPaused?l.text||"":lp.render(l.text||"",yn,function(m,v){return r.getCellTextOrDefault(v,m)}),c.format&&(d=Kn[c.format].render(d));var p=Object.assign({},c.font);p.size=function(m){for(var v=0;v<Vn.length;v+=1){var b=Vn[v];if(b.pt===m)return b.px}return m}(p.size),t.text(d,h,{align:c.align,valign:c.valign,font:p,color:c.color,strike:c.strike,underline:c.underline},c.textwrap),r.validations.getError(e,n)&&t.error(h),f&&t.frozen(h)})}}}function up(t){var r=this.data,e=this.draw;if(t){var n=r.autoFilter;if(!n.active())return;var a=n.hrange();t.intersects(a)&&a.each(function(o,s){var i=_o(r,o,s);e.dropdown(i)})}}function Tl(t,r,e,n,a){var o=this.draw,s=this.data;o.save(),o.translate(r,e).translate(n,a);var i=s.exceptRowSet,u=s.exceptRowTotalHeight(t.sri,t.eri);o.save(),o.translate(0,-u),t.each(function(f,c){Ks(o,s,f,c)},function(f){return function(c){var h=i.has(c);if(h){var d=s.rows.getHeight(c);o.translate(0,-d)}return!h}(f)}),o.restore();var l=new Set;o.save(),o.translate(0,-u),s.eachMergesInView(t,function(f){var c=f.sri,h=f.sci,d=f.eri;if(i.has(c)){if(!l.has(c)){l.add(c);var p=s.rows.sumHeight(c,d+1);o.translate(0,-p)}}else Ks(o,s,c,h)}),o.restore(),up.call(this,t),o.restore()}function uh(t,r,e,n){var a=this.draw;a.save(),a.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(t,r,e,n),a.restore()}function gu(t,r,e,n,a,o){var s=this,i=this.draw,u=this.data,l=r.h,f=r.w,c=o+n,h=a+e;i.save(),i.attr(lh),t!=="all"&&t!=="left"||i.fillRect(0,c,e,l),t!=="all"&&t!=="top"||i.fillRect(h,0,f,n);var d=u.selector.range,p=d.sri,m=d.sci,v=d.eri,b=d.eci;i.attr({textAlign:"center",textBaseline:"middle",font:"500 ".concat(tn(12),"px Source Sans Pro"),fillStyle:"#585757",lineWidth:kc(),strokeStyle:"#e6e6e6"}),t!=="all"&&t!=="left"||(u.rowEach(r.sri,r.eri,function(g,y,k){var S=c+y,C=g;i.line([0,S],[e,S]),p<=C&&C<v+1&&uh.call(s,0,S,e,k),i.fillText(C+1,e/2,S+k/2),g>0&&u.rows.isHide(g-1)&&(i.save(),i.attr({strokeStyle:"#c6c6c6"}),i.line([5,S+5],[e-5,S+5]),i.restore())}),i.line([0,l+c],[e,l+c]),i.line([e,c],[e,l+c])),t!=="all"&&t!=="top"||(u.colEach(r.sci,r.eci,function(g,y,k){var S=h+y,C=g;i.line([S,0],[S,n]),m<=C&&C<b+1&&uh.call(s,S,0,k,n),i.fillText(pi(C),S+k/2,n/2),g>0&&u.cols.isHide(g-1)&&(i.save(),i.attr({strokeStyle:"#c6c6c6"}),i.line([S+5,5],[S+5,n-5]),i.restore())}),i.line([f+h,0],[f+h,n]),i.line([0,n],[f+h,n])),i.restore()}function cp(t,r){var e=this.draw;e.save(),e.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,t,r),e.restore()}function bu(t,r,e,n,a){var o=t.sri,s=t.sci,i=t.eri,u=t.eci,l=t.w,f=t.h,c=this.draw,h=this.data,d=h.settings;c.save(),c.attr(Sc).translate(r+n,e+a),d.showGrid&&(h.rowEach(o,i,function(p,m,v){p!==o&&c.line([0,m],[l,m]),p===i&&c.line([0,m+v],[l,m+v])}),h.colEach(s,u,function(p,m,v){p!==s&&c.line([m,0],[m,f]),p===u&&c.line([m+v,0],[m+v,f])})),c.restore()}function fp(t,r,e,n){var a=this.draw,o=this.data,s=o.viewWidth()-t,i=o.viewHeight()-r;a.save().translate(t,r).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),a.line([0,n],[s,n]),a.line([e,0],[e,i]),a.restore()}var hp=function(){return $t(function t(r,e){Vt(this,t),this.el=r,this.draw=new ih(r,e.viewWidth(),e.viewHeight()),this.data=e},[{key:"resetData",value:function(t){this.data=t,this.render()}},{key:"render",value:function(){var t=this.data,r=t.rows,e=t.cols.indexWidth,n=r.height;this.draw.resize(t.viewWidth(),t.viewHeight()),this.clear();var a=t.viewRange(),o=t.freezeTotalWidth(),s=t.freezeTotalHeight(),i=t.scroll,u=i.x,l=i.y;bu.call(this,a,e,n,o,s),Tl.call(this,a,e,n,-u,-l),gu.call(this,"all",a,e,n,o,s),cp.call(this,e,n);var f=Tr(t.freeze,2),c=f[0],h=f[1];if(c>0||h>0){if(c>0){var d=a.clone();d.sri=0,d.eri=c-1,d.h=s,bu.call(this,d,e,n,o,0),Tl.call(this,d,e,n,-u,0),gu.call(this,"top",d,e,n,o,0)}if(h>0){var p=a.clone();p.sci=0,p.eci=h-1,p.w=o,bu.call(this,p,e,n,0,s),gu.call(this,"left",p,e,n,0,s),Tl.call(this,p,e,n,0,-l)}var m=t.freezeViewRange();bu.call(this,m,e,n,0,0),gu.call(this,"all",m,e,n,0,0),Tl.call(this,m,e,n,0,0),fp.call(this,e,n,o,s)}}},{key:"clear",value:function(){this.draw.clear()}}])}(),yu=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],Tc=["landscape","portrait"];function Fs(t){return parseInt(96*t,10)}function ch(t){t==="cancel"?this.el.hide():this.toPrint()}function dp(t){var r=this.paper,e=t.target.value,n=yu[e];r.w=Fs(n[1]),r.h=Fs(n[2]),this.preview()}function pp(t){var r=this.paper,e=t.target.value,n=Tc[e];r.orientation=n,this.preview()}var mp=function(){return $t(function t(r){var e,n;Vt(this,t),this.paper={w:Fs(yu[0][1]),h:Fs(yu[0][2]),padding:50,orientation:Tc[0],get width(){return this.orientation==="landscape"?this.h:this.w},get height(){return this.orientation==="landscape"?this.w:this.h}},this.data=r,this.el=ke("div","".concat(er,"-print")).children(ke("div","".concat(er,"-print-bar")).children(ke("div","-title").child("Print settings"),ke("div","-right").children(ke("div","".concat(er,"-buttons")).children(new wo("cancel").on("click",ch.bind(this,"cancel")),new wo("next","primary").on("click",ch.bind(this,"next"))))),ke("div","".concat(er,"-print-content")).children(this.contentEl=ke("div","-content"),ke("div","-sider").child(ke("form","").children(ke("fieldset","").children(ke("label","").child("".concat(si("print.size"))),(e=ke("select","")).children.apply(e,nn(yu.map(function(a,o){return ke("option","").attr("value",o).child("".concat(a[0]," ( ").concat(a[1],"''x").concat(a[2],"'' )"))}))).on("change",dp.bind(this))),ke("fieldset","").children(ke("label","").child("".concat(si("print.orientation"))),(n=ke("select","")).children.apply(n,nn(Tc.map(function(a,o){return ke("option","").attr("value",o).child("".concat(si("print.orientations")[o]))}))).on("change",pp.bind(this))))))).hide()},[{key:"resetData",value:function(t){this.data=t}},{key:"preview",value:function(){var t=this,r=this.data,e=this.paper,n=e.width,a=e.height,o=e.padding,s=n-2*o,i=a-2*o,u=r.contentRange(),l=parseInt(u.h/i,10)+1,f=s/u.w,c=o,h=o;f>1&&(c+=(s-u.w)/2);var d=0,p=0;this.contentEl.html(""),this.canvases=[];for(var m={sri:0,sci:0,eri:0,eci:0},v=function(){var g=0,y=0,k=ke("div","".concat(er,"-canvas-card")),S=ke("canvas","".concat(er,"-canvas"));t.canvases.push(S.el);var C=new ih(S.el,n,a);for(C.save(),C.translate(c,h),f<1&&C.scale(f,f);d<=u.eri;d+=1){var O=r.rows.getHeight(d);if(!((g+=O)<i)){y=-(g-O);break}for(var L=0;L<=u.eci;L+=1)Ks(C,r,d,L,p),m.eci=L}m.eri=d,C.restore(),C.save(),C.translate(c,h),f<1&&C.scale(f,f);var j=p;r.eachMergesInView(m,function(U){var z=U.sri,Y=U.sci;Ks(C,r,z,Y,j)}),C.restore(),m.sri=m.eri,m.sci=m.eci,p+=y,t.contentEl.child(ke("div","".concat(er,"-canvas-card-wraper")).child(k.child(S)))},b=0;b<l;b+=1)v();this.el.show()}},{key:"toPrint",value:function(){this.el.hide();var t=this.paper,r=ke("iframe","").hide().el;window.document.body.appendChild(r);var e=r.contentWindow,n=e.document,a=document.createElement("style");a.innerHTML=` |
|
|
@page { size: `.concat(t.width,"px ").concat(t.height,`px; }; |
|
|
canvas { |
|
|
page-break-before: auto; |
|
|
page-break-after: always; |
|
|
image-rendering: pixelated; |
|
|
}; |
|
|
`),n.head.appendChild(a),this.canvases.forEach(function(o){var s=o.cloneNode(!1);s.getContext("2d").drawImage(o,0,0),n.body.appendChild(s)}),e.print()}}])}(),vp=[{key:"copy",title:un("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:un("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:un("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:un("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:un("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:un("contextmenu.insertRow")},{key:"insert-column",title:un("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:un("contextmenu.deleteRow")},{key:"delete-column",title:un("contextmenu.deleteColumn")},{key:"delete-cell-text",title:un("contextmenu.deleteCellText")},{key:"hide",title:un("contextmenu.hide")},{key:"divider"},{key:"validation",title:un("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:un("contextmenu.cellprintable")},{key:"cell-non-printable",title:un("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:un("contextmenu.celleditable")},{key:"cell-non-editable",title:un("contextmenu.cellnoneditable")}];function gp(t){var r=this;return t.key==="divider"?ke("div","".concat(er,"-item divider")):ke("div","".concat(er,"-item")).on("click",function(){r.itemClick(t.key),r.hide()}).children(t.title(),ke("div","label").child(t.label||""))}function bp(){var t=this;return vp.map(function(r){return gp.call(t,r)})}var wu=function(){return $t(function t(r){var e,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];Vt(this,t),this.menuItems=bp.call(this),this.el=(e=ke("div","".concat(er,"-contextmenu"))).children.apply(e,nn(this.menuItems)).hide(),this.viewFn=r,this.itemClick=function(){},this.isHide=n,this.setMode("range")},[{key:"setMode",value:function(t){var r=this.menuItems[12];t==="row-col"?r.show():r.hide()}},{key:"hide",value:function(){var t=this.el;t.hide(),Wo(t)}},{key:"setPosition",value:function(t,r){if(!this.isHide){var e=this.el,n=e.show().offset().width,a=this.viewFn(),o=a.height/2,s=t;a.width-t<=n&&(s-=n),e.css("left","".concat(s,"px")),r>o?e.css("bottom","".concat(a.height-r,"px")).css("max-height","".concat(r,"px")).css("top","auto"):e.css("top","".concat(r,"px")).css("max-height","".concat(a.height-r,"px")).css("bottom","auto"),Vo(e)}}}])}();function ht(){return ht=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,r,e){var n=function(o,s){for(;!{}.hasOwnProperty.call(o,s)&&(o=cr(o))!==null;);return o}(t,r);if(n){var a=Object.getOwnPropertyDescriptor(n,r);return a.get?a.get.call(arguments.length<3?t:e):a.value}},ht.apply(null,arguments)}var B=function(){return $t(function t(r,e,n){Vt(this,t),this.tip="",r&&(this.tip=si("toolbar.".concat(r.replace(/-[a-z]/g,function(a){return a[1].toUpperCase()})))),e&&(this.tip+=" (".concat(e,")")),this.tag=r,this.shortcut=e,this.value=n,this.el=this.element(),this.change=function(){}},[{key:"element",value:function(){var t=this,r=this.tip;return ke("div","".concat(er,"-toolbar-btn")).on("mouseenter",function(e){t.tip&&function(n,a){if(!a.classList.contains("active")){var o=a.getBoundingClientRect(),s=o.left,i=o.top,u=o.width,l=o.height,f=ke("div","".concat(er,"-tooltip")).html(n).show();document.body.appendChild(f.el);var c=f.box();f.css("left","".concat(s+u/2-c.width/2,"px")).css("top","".concat(i+l+2,"px")),ia(a,"mouseleave",function(){document.body.contains(f.el)&&document.body.removeChild(f.el)}),ia(a,"click",function(){document.body.contains(f.el)&&document.body.removeChild(f.el)})}}(t.tip,e.target)}).attr("data-tooltip",r)}},{key:"setState",value:function(){}}])}();function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D=function(){return!!t})()}var V=function(t){function r(){return Vt(this,r),e=this,a=arguments,n=cr(n=r),cn(e,D()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(e){return e}},{key:"element",value:function(){var e,n,a,o,s,i=this,u=this.tag;return this.dd=this.dropdown(),this.dd.change=function(l){return i.change(u,i.getValue(l))},(e=r,n="element",a=this,o=3,s=ht(cr(1&o?e.prototype:e),n,a),2&o&&typeof s=="function"?function(l){return s.apply(a,l)}:s)([]).child(this.dd)}},{key:"setState",value:function(e){e&&(this.value=e,this.dd.setTitle(e))}}])}(B);function Z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z=function(){return!!t})()}var et=function(t){function r(e,n,a,o){var s,i,u,l,f;Vt(this,r),u=this,l=r,f=["div","".concat(er,"-dropdown ").concat(o)],l=cr(l),(i=cn(u,Z()?Reflect.construct(l,f||[],cr(u).constructor):l.apply(u,f))).title=e,i.change=function(){},i.headerClick=function(){},typeof e=="string"?i.title=ke("div","".concat(er,"-dropdown-title")).child(e):a&&i.title.addClass("arrow-left"),i.contentEl=ke("div","".concat(er,"-dropdown-content")).css("width",n).hide();for(var c=arguments.length,h=new Array(c>4?c-4:0),d=4;d<c;d++)h[d-4]=arguments[d];return(s=i).setContentChildren.apply(s,h),i.headerEl=ke("div","".concat(er,"-dropdown-header")),i.headerEl.on("click",function(){i.contentEl.css("display")!=="block"?i.show():i.hide()}).children(i.title,a?ke("div","".concat(er,"-icon arrow-right")).child(ke("div","".concat(er,"-icon-img arrow-down"))):""),i.children(i.headerEl,i.contentEl),i}return ge(r,t),$t(r,[{key:"setContentChildren",value:function(){var e;this.contentEl.html(""),arguments.length>0&&(e=this.contentEl).children.apply(e,arguments)}},{key:"setTitle",value:function(e){this.title.html(e),this.hide()}},{key:"show",value:function(){var e=this;this.contentEl.show(),this.parent().active(),Vo(this.parent(),function(){e.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),Wo(this.parent())}}])}(go);function wt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wt=function(){return!!t})()}var yt=function(t){function r(e,n){var a;Vt(this,r);var o,s,i,u=new Zi("align-".concat(n)),l=e.map(function(f){return(c="align-".concat(f),ke("div","".concat(er,"-item")).child(new Zi(c))).on("click",function(){a.setTitle(f),a.change(f)});var c});return o=this,s=r,i=[u,"auto",!0,"bottom-left"].concat(nn(l)),s=cr(s),a=cn(o,wt()?Reflect.construct(s,i||[],cr(o).constructor):s.apply(o,i))}return ge(r,t),$t(r,[{key:"setTitle",value:function(e){this.title.setName("align-".concat(e)),this.hide()}}])}(et);function At(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(At=function(){return!!t})()}var Ut=function(t){function r(e){return Vt(this,r),n=this,o=["align","",e],a=cr(a=r),cn(n,At()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o));var n,a,o}return ge(r,t),$t(r,[{key:"dropdown",value:function(){var e=this.value;return new yt(["left","center","right"],e)}}])}(V);function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(te=function(){return!!t})()}var ee=function(t){function r(e){return Vt(this,r),n=this,o=["valign","",e],a=cr(a=r),cn(n,te()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o));var n,a,o}return ge(r,t),$t(r,[{key:"dropdown",value:function(){var e=this.value;return new yt(["top","middle","bottom"],e)}}])}(V);function ne(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ne=function(){return!!t})()}var Rt=function(t){function r(){return Vt(this,r),e=this,a=arguments,n=cr(n=r),cn(e,ne()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"element",value:function(){var e,n,a,o,s,i=this,u=this.tag;return(e=r,n="element",a=this,o=3,s=ht(cr(1&o?e.prototype:e),n,a),2&o&&typeof s=="function"?function(l){return s.apply(a,l)}:s)([]).child(new Zi(u)).on("click",function(){return i.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(e){this.el.active(e)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}])}(B);function Kt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kt=function(){return!!t})()}var Ot=function(t){function r(){return Vt(this,r),e=this,a=["autofilter"],n=cr(n=r),cn(e,Kt()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"setState",value:function(){}}])}(Rt);function Wt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wt=function(){return!!t})()}var Lt=function(t){function r(){return Vt(this,r),e=this,a=["font-bold","Ctrl+B"],n=cr(n=r),cn(e,Wt()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(Rt);function Yt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yt=function(){return!!t})()}var le=function(t){function r(){return Vt(this,r),e=this,a=["font-italic","Ctrl+I"],n=cr(n=r),cn(e,Yt()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(Rt);function ve(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ve=function(){return!!t})()}var pe=function(t){function r(){return Vt(this,r),e=this,a=["strike","Ctrl+U"],n=cr(n=r),cn(e,ve()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(Rt);function Ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ue=function(){return!!t})()}var Oe=function(t){function r(){return Vt(this,r),e=this,a=["underline","Ctrl+U"],n=cr(n=r),cn(e,Ue()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(Rt),ar=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],Re=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],mr=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Vr(t){var r=this;return ke("td","").child(ke("div","".concat(er,"-color-palette-cell")).on("click.stop",function(){return r.change(t)}).css("background-color",t))}var ae=$t(function t(){var r,e,n,a=this;Vt(this,t),this.el=ke("div","".concat(er,"-color-palette")),this.change=function(){};var o=ke("table","").children((r=ke("tbody","")).children.apply(r,[(e=ke("tr","".concat(er,"-theme-color-placeholders"))).children.apply(e,nn(ar.map(function(s){return Vr.call(a,s)})))].concat(nn(Re.map(function(s){var i;return(i=ke("tr","".concat(er,"-theme-colors"))).children.apply(i,nn(s.map(function(u){return Vr.call(a,u)})))})),[(n=ke("tr","".concat(er,"-standard-colors"))).children.apply(n,nn(mr.map(function(s){return Vr.call(a,s)})))])));this.el.child(o)});function Ie(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ie=function(){return!!t})()}var _t=function(t){function r(e,n){var a;Vt(this,r);var o,s,i,u=new Zi(e).css("height","16px").css("border-bottom","3px solid ".concat(n)),l=new ae;return l.change=function(f){a.setTitle(f),a.change(f)},o=this,s=r,i=[u,"auto",!1,"bottom-left",l.el],s=cr(s),a=cn(o,Ie()?Reflect.construct(s,i||[],cr(o).constructor):s.apply(o,i))}return ge(r,t),$t(r,[{key:"setTitle",value:function(e){this.title.css("border-color",e),this.hide()}}])}(et);function He(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(He=function(){return!!t})()}var an=[["thin",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" style="user-select: none;"></line></svg>'],["medium",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="2" style="user-select: none;"><line x1="0" y1="1.0" x2="50" y2="1.0" stroke-width="2" stroke="black" style="user-select: none;"></line></svg>'],["thick",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" style="user-select: none;"><line x1="0" y1="1.5" x2="50" y2="1.5" stroke-width="3" stroke="black" style="user-select: none;"></line></svg>'],["dashed",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="2" style="user-select: none;"></line></svg>'],["dotted",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="1" style="user-select: none;"></line></svg>']],rr=function(t){function r(e){var n;Vt(this,r);var a,o,s,i=new Zi("line-type"),u=0,l=an.map(function(f,c){return ke("div","".concat(er,"-item state ").concat(e===f[0]?"checked":"")).on("click",function(){l[u].toggle("checked"),l[c].toggle("checked"),u=c,n.hide(),n.change(f)}).child(ke("div","".concat(er,"-line-type")).html(f[1]))});return a=this,o=r,s=[i,"auto",!1,"bottom-left"].concat(nn(l)),o=cr(o),n=cn(a,He()?Reflect.construct(o,s||[],cr(a).constructor):o.apply(a,s))}return ge(r,t),$t(r)}(et);function dn(){var t;return ke("table","").child((t=ke("tbody","")).children.apply(t,arguments))}function lr(t){var r=this;return ke("td","").child(ke("div","".concat(er,"-border-palette-cell")).child(new Zi("border-".concat(t))).on("click",function(){r.mode=t;var e=r.mode,n=r.style,a=r.color;r.change({mode:e,style:n,color:a})}))}var Jr=$t(function t(){var r,e,n=this;Vt(this,t),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new _t("line-color",this.color),this.ddColor.change=function(o){n.color=o},this.ddType=new rr(this.style),this.ddType.change=function(o){var s=Tr(o,1)[0];n.style=s},this.el=ke("div","".concat(er,"-border-palette"));var a=dn(ke("tr","").children(ke("td","".concat(er,"-border-palette-left")).child(dn((r=ke("tr","")).children.apply(r,nn(["all","inside","horizontal","vertical","outside"].map(function(o){return lr.call(n,o)}))),(e=ke("tr","")).children.apply(e,nn(["left","top","right","bottom","none"].map(function(o){return lr.call(n,o)}))))),ke("td","".concat(er,"-border-palette-right")).children(ke("div","".concat(er,"-toolbar-btn")).child(this.ddColor.el),ke("div","".concat(er,"-toolbar-btn")).child(this.ddType.el))));this.el.child(a)});function Ee(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ee=function(){return!!t})()}var xe=function(t){function r(){var e;Vt(this,r);var n,a,o,s=new Zi("border-all"),i=new Jr;return i.change=function(u){e.change(u),e.hide()},n=this,a=r,o=[s,"auto",!1,"bottom-left",i.el],a=cr(a),e=cn(n,Ee()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o))}return ge(r,t),$t(r)}(et);function $r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($r=function(){return!!t})()}var Mr=function(t){function r(){return Vt(this,r),e=this,a=["border"],n=cr(n=r),cn(e,$r()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"dropdown",value:function(){return new xe}}])}(V);function wr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wr=function(){return!!t})()}var ii=function(t){function r(){return Vt(this,r),e=this,a=arguments,n=cr(n=r),cn(e,wr()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"element",value:function(){var e,n,a,o,s,i=this;return(e=r,n="element",a=this,o=3,s=ht(cr(1&o?e.prototype:e),n,a),2&o&&typeof s=="function"?function(u){return s.apply(a,u)}:s)([]).child(new Zi(this.tag)).on("click",function(){return i.change(i.tag)})}},{key:"setState",value:function(e){this.el.disabled(e)}}])}(B);function Hi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hi=function(){return!!t})()}var En=function(t){function r(){return Vt(this,r),e=this,a=["clearformat"],n=cr(n=r),cn(e,Hi()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(ii);function Pn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pn=function(){return!!t})()}var Di=function(t){function r(){return Vt(this,r),e=this,a=["paintformat"],n=cr(n=r),cn(e,Pn()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"setState",value:function(){}}])}(Rt);function ci(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ci=function(){return!!t})()}var ds=function(t){function r(e){return Vt(this,r),n=this,o=["color",void 0,e],a=cr(a=r),cn(n,ci()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o));var n,a,o}return ge(r,t),$t(r,[{key:"dropdown",value:function(){var e=this.tag,n=this.value;return new _t(e,n)}}])}(V);function $a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($a=function(){return!!t})()}var ut=function(t){function r(e){return Vt(this,r),n=this,o=["bgcolor",void 0,e],a=cr(a=r),cn(n,$a()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o));var n,a,o}return ge(r,t),$t(r,[{key:"dropdown",value:function(){var e=this.tag,n=this.value;return new _t(e,n)}}])}(V);function De(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(De=function(){return!!t})()}var Ce=function(t){function r(){var e;Vt(this,r);var n,a,o,s=Vn.map(function(i){return ke("div","".concat(er,"-item")).on("click",function(){e.setTitle("".concat(i.pt)),e.change(i)}).child("".concat(i.pt))});return n=this,a=r,o=["10","60px",!0,"bottom-left"].concat(nn(s)),a=cr(a),e=cn(n,De()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o))}return ge(r,t),$t(r)}(et);function qt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qt=function(){return!!t})()}var Ht=function(t){function r(){return Vt(this,r),e=this,a=["font-size"],n=cr(n=r),cn(e,qt()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"getValue",value:function(e){return e.pt}},{key:"dropdown",value:function(){return new Ce}}])}(V);function ce(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ce=function(){return!!t})()}var Xe=function(t){function r(){var e;Vt(this,r);var n,a,o,s=ti.map(function(i){return ke("div","".concat(er,"-item")).on("click",function(){e.setTitle(i.title),e.change(i)}).child(i.title)});return n=this,a=r,o=[ti[0].title,"160px",!0,"bottom-left"].concat(nn(s)),a=cr(a),e=cn(n,ce()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o))}return ge(r,t),$t(r)}(et);function Qe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qe=function(){return!!t})()}var we=function(t){function r(){return Vt(this,r),e=this,a=["font-name"],n=cr(n=r),cn(e,Qe()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new Xe}}])}(V);function ur(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ur=function(){return!!t})()}var Rr=function(t){function r(){var e;Vt(this,r);var n,a,o,s=Ko.slice(0);return s.splice(2,0,{key:"divider"}),s.splice(8,0,{key:"divider"}),s=s.map(function(i){var u=ke("div","".concat(er,"-item"));return i.key==="divider"?u.addClass("divider"):(u.child(i.title()).on("click",function(){e.setTitle(i.title()),e.change(i)}),i.label&&u.child(ke("div","label").html(i.label))),u}),n=this,a=r,o=["Normal","220px",!0,"bottom-left"].concat(nn(s)),a=cr(a),e=cn(n,ur()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o))}return ge(r,t),$t(r,[{key:"setTitle",value:function(e){for(var n=0;n<Ko.length;n+=1)Ko[n].key===e&&this.title.html(Ko[n].title());this.hide()}}])}(et);function hr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hr=function(){return!!t})()}var Ur=function(t){function r(){return Vt(this,r),e=this,a=["format"],n=cr(n=r),cn(e,hr()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new Rr}}])}(V);function $n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($n=function(){return!!t})()}var Cn=function(t){function r(){var e;Vt(this,r);var n,a,o,s=xc.map(function(i){return ke("div","".concat(er,"-item")).on("click",function(){e.hide(),e.change(i)}).child(i.key)});return n=this,a=r,o=[new Zi("formula"),"180px",!0,"bottom-left"].concat(nn(s)),a=cr(a),e=cn(n,$n()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o))}return ge(r,t),$t(r)}(et);function Na(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Na=function(){return!!t})()}var El=function(t){function r(){return Vt(this,r),e=this,a=["formula"],n=cr(n=r),cn(e,Na()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"getValue",value:function(e){return e.key}},{key:"dropdown",value:function(){return new Cn}}])}(V);function Qa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qa=function(){return!!t})()}var Cl=function(t){function r(){return Vt(this,r),e=this,a=["freeze"],n=cr(n=r),cn(e,Qa()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(Rt);function fi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fi=function(){return!!t})()}var _u=function(t){function r(){return Vt(this,r),e=this,a=["merge"],n=cr(n=r),cn(e,fi()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r,[{key:"setState",value:function(e,n){this.el.active(e).disabled(n)}}])}(Rt);function ku(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ku=function(){return!!t})()}var Ls=function(t){function r(){return Vt(this,r),e=this,a=["redo","Ctrl+Y"],n=cr(n=r),cn(e,ku()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(ii);function Ec(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ec=function(){return!!t})()}var yp=function(t){function r(){return Vt(this,r),e=this,a=["undo","Ctrl+Z"],n=cr(n=r),cn(e,Ec()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(ii);function fh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fh=function(){return!!t})()}var wp=function(t){function r(){return Vt(this,r),e=this,a=["print","Ctrl+P"],n=cr(n=r),cn(e,fh()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(ii);function Cc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cc=function(){return!!t})()}var Al=function(t){function r(){return Vt(this,r),e=this,a=["textwrap"],n=cr(n=r),cn(e,Cc()?Reflect.construct(n,a||[],cr(e).constructor):n.apply(e,a));var e,n,a}return ge(r,t),$t(r)}(Rt);function Ml(t,r,e){return r=cr(r),cn(t,Km()?Reflect.construct(r,e||[],cr(t).constructor):r.apply(t,e))}function Km(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Km=function(){return!!t})()}var Qy=function(t){function r(){var e;Vt(this,r);var n=new Zi("ellipsis"),a=ke("div","".concat(er,"-toolbar-more"));return(e=Ml(this,r,[n,"auto",!1,"bottom-right",a])).moreBtns=a,e.contentEl.css("max-width","420px"),e}return ge(r,t),$t(r)}(et),tw=function(t){function r(){var e;return Vt(this,r),(e=Ml(this,r,["more"])).el.hide(),e}return ge(r,t),$t(r,[{key:"dropdown",value:function(){return new Qy}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}])}(V);function Xo(){return ke("div","".concat(er,"-toolbar-divider"))}function ew(){var t=this;this.btns2=[],this.items.forEach(function(r){if(Array.isArray(r))r.forEach(function(s){var i=s.el,u=i.box(),l=i.computedStyle(),f=l.marginLeft,c=l.marginRight;t.btns2.push([i,u.width+parseInt(f,10)+parseInt(c,10)])});else{var e=r.box(),n=r.computedStyle(),a=n.marginLeft,o=n.marginRight;t.btns2.push([r,e.width+parseInt(a,10)+parseInt(o,10)])}})}function Xm(){var t,r,e=this.el,n=this.btns,a=this.moreEl,o=this.btns2,s=a.dd,i=s.moreBtns,u=s.contentEl;e.css("width","".concat(this.widthFn(),"px"));var l=e.box(),f=160,c=12,h=[],d=[];o.forEach(function(p,m){var v=Tr(p,2),b=v[0],g=v[1];f+=g,m===o.length-1||f<l.width?h.push(b):(c+=g,d.push(b))}),(t=n.html("")).children.apply(t,h),(r=i.html("")).children.apply(r,d),u.css("width","".concat(c,"px")),d.length>0?a.show():a.hide()}function Zm(t){var r=this,e=new B;e.el.on("click",function(){t.onClick&&t.onClick(r.data.getData(),r.data)}),e.tip=t.tip||"";var n=t.el;if(t.icon&&(n=ke("img").attr("src",t.icon)),n){var a=ke("div","".concat(er,"-icon"));a.child(n),e.el.child(a)}return e}var rw=function(){return $t(function t(r,e){var n=this,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Vt(this,t),this.data=r,this.change=function(){},this.widthFn=e,this.isHide=a;var o=r.defaultStyle();this.items=[[this.undoEl=new yp,this.redoEl=new Ls,new wp,this.paintformatEl=new Di,this.clearformatEl=new En],Xo(),[this.formatEl=new Ur],Xo(),[this.fontEl=new we,this.fontSizeEl=new Ht],Xo(),[this.boldEl=new Lt,this.italicEl=new le,this.underlineEl=new Oe,this.strikeEl=new pe,this.textColorEl=new ds(o.color)],Xo(),[this.fillColorEl=new ut(o.bgcolor),this.borderEl=new Mr,this.mergeEl=new _u],Xo(),[this.alignEl=new Ut(o.align),this.valignEl=new ee(o.valign),this.textwrapEl=new Al],Xo(),[this.freezeEl=new Cl,this.autofilterEl=new Ot,this.formulaEl=new El]];var s=r.settings.extendToolbar,i=s===void 0?{}:s;if(i.left&&i.left.length>0){this.items.unshift(Xo());var u=i.left.map(Zm.bind(this));this.items.unshift(u)}if(i.right&&i.right.length>0){this.items.push(Xo());var l=i.right.map(Zm.bind(this));this.items.push(l)}this.items.push([this.moreEl=new tw]),this.el=ke("div","".concat(er,"-toolbar")),this.btns=ke("div","".concat(er,"-toolbar-btns")),this.items.forEach(function(f){Array.isArray(f)?f.forEach(function(c){n.btns.child(c.el),c.change=function(){n.change.apply(n,arguments)}}):n.btns.child(f.el)}),this.el.child(this.btns),a?this.el.hide():(this.reset(),setTimeout(function(){ew.call(n),Xm.call(n)},0),ia(window,"resize",function(){Xm.call(n)}))},[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(t){this["".concat(t,"El")].click()}},{key:"resetData",value:function(t){this.data=t,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var t=this.data,r=t.getSelectedCellStyle();this.undoEl.setState(!t.canUndo()),this.redoEl.setState(!t.canRedo()),this.mergeEl.setState(t.canUnmerge(),!t.selector.multiple()),this.autofilterEl.setState(!t.canAutofilter());var e=r.font,n=r.format;this.formatEl.setState(n),this.fontEl.setState(e.name),this.fontSizeEl.setState(e.size),this.boldEl.setState(e.bold),this.italicEl.setState(e.italic),this.underlineEl.setState(r.underline),this.strikeEl.setState(r.strike),this.textColorEl.setState(r.color),this.fillColorEl.setState(r.bgcolor),this.alignEl.setState(r.align),this.valignEl.setState(r.valign),this.textwrapEl.setState(r.textwrap),this.freezeEl.setState(t.freezeIsActive())}}}])}(),nw=function(){return $t(function t(r,e){var n,a=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"600px";Vt(this,t),this.title=r,this.el=ke("div","".concat(er,"-modal")).css("width",o).children(ke("div","".concat(er,"-modal-header")).children(new Zi("close").on("click.stop",function(){return a.hide()}),this.title),(n=ke("div","".concat(er,"-modal-content"))).children.apply(n,nn(e))).hide()},[{key:"show",value:function(){var t=this;this.dimmer=ke("div","".concat(er,"-dimmer active")),document.body.appendChild(this.dimmer.el);var r=this.el.show().box(),e=r.width,n=r.height,a=document.documentElement,o=a.clientHeight,s=a.clientWidth;this.el.offset({left:(s-e)/2,top:(o-n)/3}),window.xkeydownEsc=function(i){i.keyCode===27&&t.hide()},ia(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),du(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}])}(),xu=function(){return $t(function t(r,e){var n=this;Vt(this,t),this.vchange=function(){},this.el=ke("div","".concat(er,"-form-input")),this.input=ke("input","").css("width",r).on("input",function(a){return n.vchange(a)}).attr("placeholder",e),this.el.child(this.input)},[{key:"focus",value:function(){var t=this;setTimeout(function(){t.input.el.focus()},10)}},{key:"hint",value:function(t){this.input.attr("placeholder",t)}},{key:"val",value:function(t){return this.input.val(t)}}])}(),_p=function(){return $t(function t(r,e,n){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(i){return i},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){};Vt(this,t),this.key=r,this.getTitle=o,this.vchange=function(){},this.el=ke("div","".concat(er,"-form-select")),this.suggest=new wc(e.map(function(i){return{key:i,title:a.getTitle(i)}}),function(i){a.itemClick(i.key),s(i.key),a.vchange(i.key)},n,this.el),this.el.children(this.itemEl=ke("div","input-text").html(this.getTitle(r)),this.suggest.el).on("click",function(){return a.show()})},[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(t){this.key=t,this.itemEl.html(this.getTitle(t))}},{key:"val",value:function(t){return t!==void 0?(this.key=t,this.itemEl.html(this.getTitle(t)),this):this.key}}])}(),iw={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},Zo=function(){return $t(function t(r,e,n,a){var o=this;Vt(this,t),this.label="",this.rule=e,n&&(this.label=ke("label","label").css("width","".concat(a,"px")).html(n)),this.tip=ke("div","tip").child("tip").hide(),this.input=r,this.input.vchange=function(){return o.validate()},this.el=ke("div","".concat(er,"-form-field")).children(this.label,r.el,this.tip)},[{key:"isShow",value:function(){return this.el.css("display")!=="none"}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(t){return this.input.val(t)}},{key:"hint",value:function(t){this.input.hint(t)}},{key:"validate",value:function(){var t=this.input,r=this.rule,e=this.tip,n=this.el,a=t.val();return r.required&&/^\s*$/.test(a)?(e.html(si("validation.required")),n.addClass("error"),!1):(r.type||r.pattern)&&!(r.pattern||iw[r.type]).test(a)?(e.html(si("validation.notMatch")),n.addClass("error"),!1):(n.removeClass("error"),!0)}}])}();function Jm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jm=function(){return!!t})()}var aw=function(t){function r(){var e;Vt(this,r);var n,a,o,s=new Zo(new _p("cell",["cell"],"100%",function(p){return si("dataValidation.modeType.".concat(p))}),{required:!0},"".concat(si("dataValidation.range"),":"),100),i=new Zo(new xu("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),u=new Zo(new _p("list",["list","number","date","phone","email"],"100%",function(p){return si("dataValidation.type.".concat(p))},function(p){return e.criteriaSelected(p)}),{required:!0},"".concat(si("dataValidation.criteria"),":"),100),l=new Zo(new _p("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",function(p){return si("dataValidation.operator.".concat(p))},function(p){return e.criteriaOperatorSelected(p)}),{required:!0}).hide(),f=new Zo(new xu("70px","10"),{required:!0}).hide(),c=new Zo(new xu("70px","100"),{required:!0,type:"number"}).hide(),h=new Zo(new xu("120px","a,b,c"),{required:!0}),d=new Zo(new xu("70px","10"),{required:!0,type:"number"}).hide();return n=this,a=r,o=[si("contextmenu.validation"),[ke("div","".concat(er,"-form-fields")).children(s.el,i.el),ke("div","".concat(er,"-form-fields")).children(u.el,l.el,f.el,c.el,d.el,h.el),ke("div","".concat(er,"-buttons")).children(new wo("cancel").on("click",function(){return e.btnClick("cancel")}),new wo("remove").on("click",function(){return e.btnClick("remove")}),new wo("save","primary").on("click",function(){return e.btnClick("save")}))]],a=cr(a),(e=cn(n,Jm()?Reflect.construct(a,o||[],cr(n).constructor):a.apply(n,o))).mf=s,e.rf=i,e.cf=u,e.of=l,e.minvf=f,e.maxvf=c,e.vf=d,e.svf=h,e.change=function(){},e}return ge(r,t),$t(r,[{key:"showVf",value:function(e){var n=e==="date"?"2018-11-12":"10",a=this.vf;a.input.hint(n),a.show()}},{key:"criteriaSelected",value:function(e){var n=this.of,a=this.minvf,o=this.maxvf,s=this.vf,i=this.svf;e==="date"||e==="number"?(n.show(),a.rule.type=e,o.rule.type=e,e==="date"?(a.hint("2018-11-12"),o.hint("2019-11-12")):(a.hint("10"),o.hint("100")),a.show(),o.show(),s.hide(),i.hide()):(e==="list"?i.show():i.hide(),s.hide(),n.hide(),a.hide(),o.hide())}},{key:"criteriaOperatorSelected",value:function(e){if(e){var n=this.minvf,a=this.maxvf,o=this.vf;if(e==="be"||e==="nbe")n.show(),a.show(),o.hide();else{var s=this.cf.val();o.rule.type=s,s==="date"?o.hint("2018-11-12"):o.hint("10"),o.show(),n.hide(),a.hide()}}}},{key:"btnClick",value:function(e){if(e==="cancel")this.hide();else if(e==="remove")this.change("remove"),this.hide();else if(e==="save"){for(var n=["mf","rf","cf","of","svf","vf","minvf","maxvf"],a=0;a<n.length;a+=1){var o=this[n[a]];if(o.isShow()&&!o.validate())return}var s=this.mf.val(),i=this.rf.val(),u=this.cf.val(),l=this.of.val(),f=this.svf.val();u!=="number"&&u!=="date"||(f=l==="be"||l==="nbe"?[this.minvf.val(),this.maxvf.val()]:this.vf.val()),this.change("save",s,i,{type:u,operator:l,required:!1,value:f}),this.hide()}}},{key:"setValue",value:function(e){if(e){var n=this.mf,a=this.rf,o=this.cf,s=this.of,i=this.svf,u=this.vf,l=this.minvf,f=this.maxvf,c=e.mode,h=e.ref,d=e.validator||{type:"list"},p=d.type,m=d.operator,v=d.value;n.val(c||"cell"),a.val(h),o.val(p),s.val(m),Array.isArray(v)?(l.val(v[0]),f.val(v[1])):(i.val(v||""),u.val(v||"")),this.criteriaSelected(p),this.criteriaOperatorSelected(m)}this.show()}}])}(nw);function Qm(t){return ke("div","".concat(er,"-item ").concat(t))}function t1(t){var r=this;return Qm("state").child(si("sort.".concat(t))).on("click.stop",function(){return r.itemClick(t)})}function sw(t){var r=this,e=this.filterbEl,n=this.filterValues;e.html(""),Object.keys(t).forEach(function(a,o){var s=t[a],i=n.includes(a)?"checked":"";e.child(ke("div","".concat(er,"-item state ").concat(i)).on("click.stop",function(){return r.filterClick(o,a)}).children(a===""?si("filter.empty"):a,ke("div","label").html("(".concat(s,")"))))})}function e1(){var t=this.filterhEl,r=this.filterValues,e=this.values;t.html("".concat(r.length," / ").concat(e.length)),t.checked(r.length===e.length)}var ow=function(){return $t(function t(){var r=this;Vt(this,t),this.filterbEl=ke("div","".concat(er,"-body")),this.filterhEl=ke("div","".concat(er,"-header state")).on("click.stop",function(){return r.filterClick(0,"all")}),this.el=ke("div","".concat(er,"-sort-filter")).children(this.sortAscEl=t1.call(this,"asc"),this.sortDescEl=t1.call(this,"desc"),Qm("divider"),ke("div","".concat(er,"-filter")).children(this.filterhEl,this.filterbEl),ke("div","".concat(er,"-buttons")).children(new wo("cancel").on("click",function(){return r.btnClick("cancel")}),new wo("ok","primary").on("click",function(){return r.btnClick("ok")}))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]},[{key:"btnClick",value:function(t){if(t==="ok"){var r=this.ci,e=this.sort,n=this.filterValues;this.ok&&this.ok(r,e,"in",n)}this.hide()}},{key:"itemClick",value:function(t){this.sort=t;var r=this.sortAscEl,e=this.sortDescEl;r.checked(t==="asc"),e.checked(t==="desc")}},{key:"filterClick",value:function(t,r){var e=this.filterbEl,n=this.filterValues,a=this.values,o=e.children();r==="all"?o.length===n.length?(this.filterValues=[],o.forEach(function(s){return ke(s).checked(!1)})):(this.filterValues=Array.from(a),o.forEach(function(s){return ke(s).checked(!0)})):ke(o[t]).toggle("checked")?n.push(r):n.splice(n.findIndex(function(s){return s===r}),1),e1.call(this)}},{key:"set",value:function(t,r,e,n){this.ci=t;var a=this.sortAscEl,o=this.sortDescEl;n!==null?(this.sort=n.order,a.checked(n.asc()),o.checked(n.desc())):(this.sortDesc=null,a.checked(!1),o.checked(!1)),this.values=Object.keys(r),this.filterValues=e?Array.from(e.value):Object.keys(r),sw.call(this,r,e),e1.call(this)}},{key:"setOffset",value:function(t){var r=this;this.el.offset(t).show();var e=1;Vo(this.el,function(){e<=0&&r.hide(),e-=1})}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide(),Wo(this.el)}}])}();function r1(t,r){var e=ke("div","".concat(er,"-toast")),n=ke("div","".concat(er,"-dimmer active"));e.children(ke("div","".concat(er,"-toast-header")).children(new Zi("close").on("click.stop",function(){return document.body.removeChild(e.el),void document.body.removeChild(n.el)}),t),ke("div","".concat(er,"-toast-content")).html(r)),document.body.appendChild(e.el),document.body.appendChild(n.el);var a=e.box(),o=a.width,s=a.height,i=document.documentElement,u=i.clientHeight,l=i.clientWidth;e.offset({left:(l-o)/2,top:(u-s)/3})}function kp(t,r){var e,n=this;return function(){for(var a=n,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];var u=s;e||(e=setTimeout(function(){e=null,t.apply(a,u)},r))}}function lw(){var t=this.data,r=this.verticalScrollbar,e=this.horizontalScrollbar,n=t.getSelectedRect(),a=n.l,o=n.t,s=n.left,i=n.top,u=n.width,l=n.height,f=this.getTableOffset();if(Math.abs(s)+u>f.width)e.move({left:a+u-f.width});else{var c=t.freezeTotalWidth();s<c&&e.move({left:a-1-c})}if(Math.abs(i)+l>f.height)r.move({top:o+l-f.height-1});else{var h=t.freezeTotalHeight();i<h&&r.move({top:o-1-h})}}function Su(t,r,e){var n=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],a=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(r!==-1||e!==-1){this.table;var o=this.selector;this.toolbar;var s=this.data,i=this.contextMenu,u=s.getCell(r,e);t?(o.setEnd(r,e,a),this.trigger("cells-selected",u,o.range)):(o.set(r,e,n),this.trigger("cell-selected",u,r,e)),i.setMode(r===-1||e===-1?"row-col":"range")}}function Xs(t,r){var e=this.selector,n=this.data,a=n.rows,o=n.cols,s=Tr(e.indexes,2),i=s[0],u=s[1],l=e.range,f=l.eri,c=l.eci;if(t){var h=Tr(e.moveIndexes,2);i=h[0],u=h[1]}r==="left"?u>0&&(u-=1):r==="right"?(c!==u&&(u=c),u<o.len-1&&(u+=1)):r==="up"?i>0&&(i-=1):r==="down"?(f!==i&&(i=f),i<a.len-1&&(i+=1)):r==="row-first"?u=0:r==="row-last"?u=o.len-1:r==="col-first"?i=0:r==="col-last"&&(i=a.len-1),t&&(e.moveIndexes=[i,u]),Su.call(this,t,i,u),lw.call(this)}function uw(t){if(t.buttons===0&&t.target.className!=="".concat(er,"-resizer-hover")){var r=t.offsetX,e=t.offsetY,n=this.rowResizer,a=this.colResizer,o=this.tableEl,s=this.data,i=s.rows,u=s.cols;if(r>u.indexWidth&&e>i.height)return n.hide(),void a.hide();var l=o.box(),f=s.getCellRectByXY(t.offsetX,t.offsetY);f.ri>=0&&f.ci===-1?(f.width=u.indexWidth,n.show(f,{width:l.width}),i.isHide(f.ri-1)?n.showUnhide(f.ri):n.hideUnhide()):n.hide(),f.ri===-1&&f.ci>=0?(f.height=i.height,a.show(f,{height:l.height}),u.isHide(f.ci-1)?a.showUnhide(f.ci):a.hideUnhide()):a.hide()}}function cw(t){var r=this.verticalScrollbar,e=this.horizontalScrollbar,n=this.data,a=r.scroll().top,o=e.scroll().left,s=n.rows,i=n.cols,u=t.deltaY,l=t.deltaX,f=function(m,v){var b=m,g=0;do g=v(b),b+=1;while(g<=0);return g},c=function(m){if(m>0){var v=n.scroll.ri+1;if(v<s.len){var b=f(v,function(k){return s.getHeight(k)});r.move({top:a+b-1})}}else{var g=n.scroll.ri-1;if(g>=0){var y=f(g,function(k){return s.getHeight(k)});r.move({top:g===0?0:a-y})}}},h=Math.abs(u),d=Math.abs(l),p=Math.max(h,d);/Firefox/i.test(window.navigator.userAgent)&&kp(c(t.detail),50),p===d&&kp(function(m){if(m>0){var v=n.scroll.ci+1;if(v<i.len){var b=f(v,function(k){return i.getWidth(k)});e.move({left:o+b-1})}}else{var g=n.scroll.ci-1;if(g>=0){var y=f(g,function(k){return i.getWidth(k)});e.move({left:g===0?0:o-y})}}}(l),50),p===h&&kp(c(u),50)}function fw(t,r){var e=this.verticalScrollbar,n=this.horizontalScrollbar,a=e.scroll().top,o=n.scroll().left;t==="left"||t==="right"?n.move({left:o-r}):t!=="up"&&t!=="down"||e.move({top:a-r})}function xp(){var t=this.data,r=this.verticalScrollbar,e=this.getTableOffset().height,n=t.exceptRowTotalHeight(0,-1);r.set(e,t.rows.totalHeight()-n)}function Sp(){var t=this.data,r=this.horizontalScrollbar,e=this.getTableOffset().width;t&&r.set(e,t.cols.totalWidth())}function hw(){var t=this.selector,r=this.data,e=this.editor,n=Tr(r.freeze,2),a=n[0],o=n[1];if(a>0||o>0){var s=r.freezeTotalWidth(),i=r.freezeTotalHeight();e.setFreezeLengths(s,i)}t.resetAreaOffset()}function Pa(){var t=this.tableEl,r=this.overlayerEl,e=this.overlayerCEl,n=this.table,a=this.toolbar,o=this.selector,s=this.el,i=this.getTableOffset(),u=this.getRect();t.attr(u),r.offset(u),e.offset(i),s.css("width","".concat(u.width,"px")),xp.call(this),Sp.call(this),hw.call(this),n.render(),a.reset(),o.reset()}function Ac(){var t=this.data,r=this.selector;t.clearClipboard(),r.hideClipboard()}function Tp(t){var r=this.data,e=this.selector;r.settings.mode!=="read"&&(r.copy(),r.copyToSystemClipboard(t),e.showClipboard())}function n1(){var t=this.data,r=this.selector;t.settings.mode!=="read"&&(t.cut(),r.showClipboard())}function Mc(t,r){var e=this,n=this.data;if(n.settings.mode!=="read"){if(n.clipboard.isClear())n.pasteFromSystemClipboard(function(){return Pa.call(e)},function(o){e.trigger("pasted-clipboard",o)});else if(n.paste(t,function(o){return r1("Tip",o)}))Pa.call(this);else if(r){var a=r.clipboardData.getData("text/plain");this.data.pasteFromText(a),Pa.call(this)}}}function dw(){this.data.hideRowsOrCols(),Pa.call(this)}function i1(t,r){this.data.unhideRowsOrCols(t,r),Pa.call(this)}function pw(){this.data.autofilter(),Pa.call(this)}function mw(){var t=this.toolbar;t.paintformatActive()&&(Mc.call(this,"format"),Ac.call(this),t.paintformatToggle())}function a1(t){var r=this,e=this.selector,n=this.data,a=this.table,o=this.sortFilter,s=t.offsetX,i=t.offsetY,u=t.target.className==="".concat(er,"-selector-corner"),l=n.getCellRectByXY(s,i),f=l.left,c=l.top,h=l.width,d=l.height,p=l.ri,m=l.ci,v=n.autoFilter;if(v.includes(p,m)&&f+h-20<s&&c+d-20<i){var b=v.items(m,function(g,y){return n.rows.getCell(g,y)});return o.hide(),o.set(m,b,v.getFilter(m),v.getSort(m)),void o.setOffset({left:f,top:c+d+2})}t.shiftKey||(u?e.showAutofill(p,m):Su.call(this,!1,p,m),Uf(window,function(g){var y=n.getCellRectByXY(g.offsetX,g.offsetY);p=y.ri,m=y.ci,u?e.showAutofill(p,m):g.buttons!==1||g.shiftKey||Su.call(r,!0,p,m,!0,!0)},function(){u&&e.arange&&n.settings.mode!=="read"&&n.autofill(e.arange,"all",function(g){return r1("Tip",g)})&&a.render(),e.hideAutofill(),mw.call(r)})),u||t.buttons!==1||t.shiftKey&&Su.call(this,!0,p,m)}function Rc(){var t=this.editor,r=this.data.getSelectedRect(),e=this.getTableOffset(),n="top";r.top>e.height/2&&(n="bottom"),t.setOffset(r,n)}function Oc(){var t=this.editor,r=this.data;r.settings.mode!=="read"&&(Rc.call(this),t.setCell(r.getSelectedCell(),r.getSelectedValidator()),Ac.call(this))}function vw(t){var r=this,e=this.data,n=this.table,a=this.selector;e.scrolly(t,function(){a.resetBRLAreaOffset(),Rc.call(r),n.render()})}function gw(t){var r=this,e=this.data,n=this.table,a=this.selector;e.scrollx(t,function(){a.resetBRTAreaOffset(),Rc.call(r),n.render()})}function bw(t,r){var e=t.ri,n=this.table,a=this.selector,o=this.data,s=a.range,i=s.sri,u=s.eri;if(e>=i&&e<=u)for(var l=i;l<=u;l+=1)o.rows.setHeight(l,r);else o.rows.setHeight(e,r);n.render(),a.resetAreaOffset(),xp.call(this),Rc.call(this)}function yw(t,r){var e=t.ci,n=this.table,a=this.selector,o=this.data,s=a.range,i=s.sci,u=s.eci;if(e>=i&&e<=u)for(var l=i;l<=u;l+=1)o.cols.setWidth(l,r);else o.cols.setWidth(e,r);n.render(),a.resetAreaOffset(),Sp.call(this),Rc.call(this)}function Ep(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"finished",e=this.data,n=this.table;if(e.settings.mode!=="read"){e.setSelectedCellText(t,r);var a=e.selector,o=a.ri,s=a.ci;r==="finished"?n.render():this.trigger("cell-edited",t,o,s)}}function hh(t){var r=this.data;r.settings.mode!=="read"&&(t==="insert-row"?r.insert("row"):t==="delete-row"?r.delete("row"):t==="insert-column"?r.insert("column"):t==="delete-column"?r.delete("column"):t==="delete-cell"?r.deleteCell():t==="delete-cell-format"?r.deleteCell("format"):t==="delete-cell-text"?r.deleteCell("text"):t==="cell-printable"?r.setSelectedCellAttr("printable",!0):t==="cell-non-printable"?r.setSelectedCellAttr("printable",!1):t==="cell-editable"?r.setSelectedCellAttr("editable",!0):t==="cell-non-editable"&&r.setSelectedCellAttr("editable",!1),Ac.call(this),Pa.call(this))}function ww(t,r){var e=this.data;if(t==="undo")this.undo();else if(t==="redo")this.redo();else if(t==="print")this.print.preview();else if(t==="paintformat")r===!0?Tp.call(this):Ac.call(this);else if(t==="clearformat")hh.call(this,"delete-cell-format");else if(t!=="link"){if(t!=="chart")if(t==="autofilter")pw.call(this);else if(t==="freeze")if(r){var n=e.selector,a=n.ri,o=n.ci;this.freeze(a,o)}else this.freeze(0,0);else e.setSelectedCellAttr(t,r),t!=="formula"||e.selector.multiple()||Oc.call(this),Pa.call(this)}}function _w(t,r,e,n){this.data.setAutoFilter(t,r,e,n),Pa.call(this)}function kw(){var t,r,e,n,a,o,s=this,i=this.selector,u=this.overlayerEl,l=this.rowResizer,f=this.colResizer,c=this.verticalScrollbar,h=this.horizontalScrollbar,d=this.editor,p=this.contextMenu,m=this.toolbar,v=this.modalValidation,b=this.sortFilter;u.on("mousemove",function(g){uw.call(s,g)}).on("mousedown",function(g){p.hide(),g.buttons===2?(s.data.xyInSelectedRect(g.offsetX,g.offsetY)||a1.call(s,g),p.setPosition(g.offsetX,g.offsetY),g.stopPropagation()):g.detail===2?Oc.call(s):a1.call(s,g)}).on("mousewheel.stop",function(g){cw.call(s,g)}).on("mouseout",function(g){var y=g.offsetX;g.offsetY<=0&&f.hide(),y<=0&&l.hide()}),i.inputChange=function(g){Ep.call(s,g,"input"),Oc.call(s)},t=u.el,e=(r={move:function(g,y){fw.call(s,g,y)}}).move,n=r.end,a=0,o=0,ia(t,"touchstart",function(g){var y=g.touches[0],k=y.pageX,S=y.pageY;a=k,o=S}),ia(t,"touchmove",function(g){if(e){var y=g.changedTouches[0],k=y.pageX,S=y.pageY,C=k-a,O=S-o;(Math.abs(C)>10||Math.abs(O)>10)&&(Hf(C,O,g,e),a=k,o=S),g.preventDefault()}}),ia(t,"touchend",function(g){if(n){var y=g.changedTouches[0],k=y.pageX,S=y.pageY;Hf(k-a,S-o,g,n)}}),m.change=function(g,y){return ww.call(s,g,y)},b.ok=function(g,y,k,S){return _w.call(s,g,y,k,S)},l.finishedFn=function(g,y){bw.call(s,g,y)},f.finishedFn=function(g,y){yw.call(s,g,y)},l.unhideFn=function(g){i1.call(s,"row",g)},f.unhideFn=function(g){i1.call(s,"col",g)},c.moveFn=function(g,y){vw.call(s,g,y)},h.moveFn=function(g,y){gw.call(s,g,y)},d.change=function(g,y){Ep.call(s,y,g)},v.change=function(g){if(g==="save"){for(var y,k=arguments.length,S=new Array(k>1?k-1:0),C=1;C<k;C++)S[C-1]=arguments[C];(y=s.data).addValidation.apply(y,S)}else s.data.removeValidation()},p.itemClick=function(g){g==="validation"?v.setValue(s.data.getSelectedValidation()):g==="copy"?Tp.call(s):g==="cut"?n1.call(s):g==="paste"?Mc.call(s,"all"):g==="paste-value"?Mc.call(s,"text"):g==="paste-format"?Mc.call(s,"format"):g==="hide"?dw.call(s):hh.call(s,g)},ia(window,"resize",function(){s.reload()}),ia(window,"click",function(g){s.focusing=u.contains(g.target)}),ia(window,"paste",function(g){s.focusing&&(Mc.call(s,"all",g),g.preventDefault())}),ia(window,"copy",function(g){s.focusing&&(Tp.call(s,g),g.preventDefault())}),ia(window,"keydown",function(g){if(s.focusing){var y=g.keyCode||g.which,k=g.key,S=g.ctrlKey,C=g.shiftKey,O=g.metaKey;if(S||O)switch(y){case 90:s.undo(),g.preventDefault();break;case 89:s.redo(),g.preventDefault();break;case 67:case 86:break;case 88:n1.call(s),g.preventDefault();break;case 85:m.trigger("underline"),g.preventDefault();break;case 37:Xs.call(s,C,"row-first"),g.preventDefault();break;case 38:Xs.call(s,C,"col-first"),g.preventDefault();break;case 39:Xs.call(s,C,"row-last"),g.preventDefault();break;case 40:Xs.call(s,C,"col-last"),g.preventDefault();break;case 32:Su.call(s,!1,-1,s.data.selector.ci,!1),g.preventDefault();break;case 66:m.trigger("bold");break;case 73:m.trigger("italic")}else{switch(y){case 32:C&&Su.call(s,!1,s.data.selector.ri,-1,!1);break;case 27:p.hide(),Ac.call(s);break;case 37:Xs.call(s,C,"left"),g.preventDefault();break;case 38:Xs.call(s,C,"up"),g.preventDefault();break;case 39:Xs.call(s,C,"right"),g.preventDefault();break;case 40:Xs.call(s,C,"down"),g.preventDefault();break;case 9:d.clear(),Xs.call(s,!1,C?"left":"right"),g.preventDefault();break;case 13:d.clear(),Xs.call(s,!1,C?"up":"down"),g.preventDefault();break;case 8:hh.call(s,"delete-cell-text"),g.preventDefault()}k==="Delete"?(hh.call(s,"delete-cell-text"),g.preventDefault()):y>=65&&y<=90||y>=48&&y<=57||y>=96&&y<=105||g.key==="="?(Ep.call(s,g.key,"input"),Oc.call(s)):y===113&&Oc.call(s)}}})}var xw=function(){return $t(function t(r,e){var n=this;Vt(this,t),this.eventMap=function(){var u=new Map;function l(c,h){var d;return u.has(c)&&(d=u.get(c),Array.isArray(d)&&d.push(h)||!1)||u.set(c,[].concat(h))}function f(c,h){var d,p;return u.has(c)&&(p=(d=u.get(c)).indexOf(h))>=0&&d.splice(p,1)&&u.get(c).length===0&&u.delete(c)}return{get current(){return u},on:l,once:function(c,h){var d=function(){for(var p=arguments.length,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];h.call.apply(h,[null].concat(m)),f(c,d)};return l(c,d)},fire:function(c,h){return u.has(c)&&function(){var d,p=Gd(u.get(c));try{for(p.s();!(d=p.n()).done;){var m=d.value;m.call.apply(m,[null].concat(nn(h)))}}catch(v){p.e(v)}finally{p.f()}}()},removeListener:f,removeAllListeners:function(){u.clear()}}}();var a=e.settings,o=a.view,s=a.showToolbar,i=a.showContextmenu;this.el=ke("div","".concat(er,"-sheet")),this.toolbar=new rw(e,o.width,!s),this.print=new mp(e),r.children(this.toolbar.el,this.el,this.print.el),this.data=e,this.tableEl=ke("canvas","".concat(er,"-table")),this.rowResizer=new Wf(!1,e.rows.height),this.colResizer=new Wf(!0,e.cols.minWidth),this.verticalScrollbar=new Te(!0),this.horizontalScrollbar=new Te(!1),this.editor=new th(oh,function(){return n.getTableOffset()},e.rows.height),this.modalValidation=new aw,this.contextMenu=new wu(function(){return n.getRect()},!i),this.selector=new Kf(e),this.overlayerCEl=ke("div","".concat(er,"-overlayer-content")).children(this.editor.el,this.selector.el),this.overlayerEl=ke("div","".concat(er,"-overlayer")).child(this.overlayerCEl),this.sortFilter=new ow,this.el.children(this.tableEl,this.overlayerEl.el,this.rowResizer.el,this.colResizer.el,this.verticalScrollbar.el,this.horizontalScrollbar.el,this.contextMenu.el,this.modalValidation.el,this.sortFilter.el),this.table=new hp(this.tableEl.el,e),kw.call(this),Pa.call(this)},[{key:"on",value:function(t,r){return this.eventMap.on(t,r),this}},{key:"trigger",value:function(t){for(var r=this.eventMap,e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];r.fire(t,n)}},{key:"resetData",value:function(t){this.editor.clear(),this.data=t,xp.call(this),Sp.call(this),this.toolbar.resetData(t),this.print.resetData(t),this.selector.resetData(t),this.table.resetData(t)}},{key:"loadData",value:function(t){return this.data.setData(t),Pa.call(this),this}},{key:"freeze",value:function(t,r){return this.data.setFreeze(t,r),Pa.call(this),this}},{key:"undo",value:function(){this.data.undo(),Pa.call(this)}},{key:"redo",value:function(){this.data.redo(),Pa.call(this)}},{key:"reload",value:function(){return Pa.call(this),this}},{key:"getRect",value:function(){var t=this.data;return{width:t.viewWidth(),height:t.viewHeight()}}},{key:"getTableOffset",value:function(){var t=this.data,r=t.rows,e=t.cols,n=this.getRect(),a=n.width,o=n.height;return{width:a-e.indexWidth,height:o-r.height,left:e.indexWidth,top:r.height}}}])}();function s1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s1=function(){return!!t})()}var Sw=function(t){function r(e){var n;Vt(this,r);var a,o,s,i=new Zi("ellipsis");return a=this,s=[i,"auto",!1,"top-left"],o=cr(o=r),(n=cn(a,s1()?Reflect.construct(o,s||[],cr(a).constructor):o.apply(a,s))).contentClick=e,n}return ge(r,t),$t(r,[{key:"reset",value:function(e){var n=this,a=e.map(function(o,s){return ke("div","".concat(er,"-item")).css("width","150px").css("font-weight","normal").on("click",function(){n.contentClick(s),n.hide()}).child(o)});this.setContentChildren.apply(this,nn(a))}},{key:"setTitle",value:function(){}}])}(et),Tw=[{key:"delete",title:un("contextmenu.deleteSheet")}];function Ew(t){var r=this;return ke("div","".concat(er,"-item")).child(t.title()).on("click",function(){r.itemClick(t.key),r.hide()})}function Cw(){var t=this;return Tw.map(function(r){return Ew.call(t,r)})}var Aw=function(){return $t(function t(){var r;Vt(this,t),this.el=(r=ke("div","".concat(er,"-contextmenu")).css("width","160px")).children.apply(r,nn(Cw.call(this))).hide(),this.itemClick=function(){}},[{key:"hide",value:function(){var t=this.el;t.hide(),Wo(t)}},{key:"setOffset",value:function(t){var r=this.el;r.offset(t),r.show(),Vo(r)}}])}(),Mw=function(){return $t(function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){};Vt(this,t),this.swapFunc=n,this.updateFunc=o,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new Sw(function(s){r.clickSwap2(r.items[s])}),this.contextMenu=new Aw,this.contextMenu.itemClick=a,this.el=ke("div","".concat(er,"-bottombar")).children(this.contextMenu.el,this.menuEl=ke("ul","".concat(er,"-menu")).child(ke("li","").children(new Zi("add").on("click",function(){e()}),ke("span","").child(this.moreEl))))},[{key:"addItem",value:function(t,r,e){var n=this;this.dataNames.push(t);var a=ke("li",r?"active":"").child(t);a.on("click",function(){n.clickSwap2(a)}).on("contextmenu",function(o){if(e.mode!=="read"){var s=o.target,i=s.offsetLeft,u=s.offsetHeight;n.contextMenu.setOffset({left:i,bottom:u+1}),n.deleteEl=a}}).on("dblclick",function(){if(e.mode!=="read"){var o=a.html(),s=new xu("auto","");s.val(o),s.input.on("blur",function(i){var u=i.target.value,l=n.dataNames.findIndex(function(f){return f===o});n.renameItem(l,u)}),a.html("").child(s.el),s.focus()}}),r&&this.clickSwap(a),this.items.push(a),this.menuEl.child(a),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(t,r){this.dataNames.splice(t,1,r),this.moreEl.reset(this.dataNames),this.items[t].html("").child(r),this.updateFunc(t,r)}},{key:"clear",value:function(){var t=this;this.items.forEach(function(r){t.menuEl.removeChild(r.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var t=this.activeEl,r=this.deleteEl;if(this.items.length>1){var e=this.items.findIndex(function(a){return a===r});if(this.items.splice(e,1),this.dataNames.splice(e,1),this.menuEl.removeChild(r.el),this.moreEl.reset(this.dataNames),t===r){var n=Tr(this.items,1)[0];return this.activeEl=n,this.activeEl.toggle(),[e,0]}return[e,-1]}return[-1]}},{key:"clickSwap2",value:function(t){var r=this.items.findIndex(function(e){return e===t});this.clickSwap(t),this.activeEl.toggle(),this.swapFunc(r)}},{key:"clickSwap",value:function(t){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=t}}])}();function o1(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}var l1=function(){return $t(function t(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Vt(this,t);var a=r;this.options=function(s){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?o1(Object(u),!0).forEach(function(l){Wa(s,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):o1(Object(u)).forEach(function(l){Object.defineProperty(s,l,Object.getOwnPropertyDescriptor(u,l))})}return s}({showBottomBar:!0},n),this.sheetIndex=1,this.datas=[],typeof r=="string"&&(a=document.querySelector(r)),this.bottombar=this.options.showBottomBar?new Mw(function(){if(e.options.mode!=="read"){var s=e.addSheet();e.sheet.resetData(s)}},function(s){var i=e.datas[s];e.sheet.resetData(i)},function(){e.deleteSheet()},function(s,i){e.datas[s].name=i,e.sheet.trigger("change")}):null,this.data=this.addSheet();var o=ke("div","".concat(er)).on("contextmenu",function(s){return s.preventDefault()});a.appendChild(o.el),this.sheet=new xw(o,this.data),this.bottombar!==null&&o.child(this.bottombar.el)},[{key:"addSheet",value:function(t){var r=this,e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=t||"sheet".concat(this.sheetIndex),a=new jf(n,this.options);return a.change=function(){for(var o,s=arguments.length,i=new Array(s),u=0;u<s;u++)i[u]=arguments[u];(o=r.sheet).trigger.apply(o,["change"].concat(i))},this.datas.push(a),this.bottombar!==null&&this.bottombar.addItem(n,e,this.options),this.sheetIndex+=1,a}},{key:"deleteSheet",value:function(){if(this.bottombar!==null){var t=Tr(this.bottombar.deleteItem(),2),r=t[0],e=t[1];r>=0&&(this.datas.splice(r,1),e>=0&&this.sheet.resetData(this.datas[e]),this.sheet.trigger("change"))}}},{key:"loadData",value:function(t){var r=Array.isArray(t)?t:[t];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],r.length>0)for(var e=0;e<r.length;e+=1){var n=r[e],a=this.addSheet(n.name,e===0);a.setData(n),e===0&&this.sheet.resetData(a)}return this}},{key:"getData",value:function(){return this.datas.map(function(t){return t.getData()})}},{key:"cellText",value:function(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return this.datas[n].setCellText(t,r,e,"finished"),this}},{key:"cell",value:function(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[e].getCell(t,r)}},{key:"cellStyle",value:function(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[e].getCellStyle(t,r)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(t,r){return this.sheet.on(t,r),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(t){return this.sheet.on("change",t),this}}],[{key:"locale",value:function(t,r){hu(t,r)}}])}();function u1(t,r,e,n,a,o,s){try{var i=t[o](s),u=i.value}catch(l){return void e(l)}i.done?r(u):Promise.resolve(u).then(n,a)}function On(t){return function(){var r=this,e=arguments;return new Promise(function(n,a){var o=t.apply(r,e);function s(u){u1(o,n,a,s,i,"next",u)}function i(u){u1(o,n,a,s,i,"throw",u)}s(void 0)})}}function c1(t,r){this.v=t,this.k=r}function f1(t){return new c1(t,0)}function Ic(t){var r,e;function n(o,s){try{var i=t[o](s),u=i.value,l=u instanceof c1;Promise.resolve(l?u.v:u).then(function(f){if(l){var c=o==="return"?"return":"next";if(!u.k||f.done)return n(c,f);f=t[c](f).value}a(i.done?"return":"normal",f)},function(f){n("throw",f)})}catch(f){a("throw",f)}}function a(o,s){switch(o){case"return":r.resolve({value:s,done:!0});break;case"throw":r.reject(s);break;default:r.resolve({value:s,done:!1})}(r=r.next)?n(r.key,r.arg):e=null}this._invoke=function(o,s){return new Promise(function(i,u){var l={key:o,arg:s,resolve:i,reject:u,next:null};e?e=e.next=l:(r=e=l,n(o,s))})},typeof t.return!="function"&&(this.return=void 0)}window&&(window.x_spreadsheet=function(t){return new l1(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})},window.x_spreadsheet.locale=function(t,r){return hu(t,r)}),Ic.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Ic.prototype.next=function(t){return this._invoke("next",t)},Ic.prototype.throw=function(t){return this._invoke("throw",t)},Ic.prototype.return=function(t){return this._invoke("return",t)};var pn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof uc<"u"?uc:typeof self<"u"?self:{};function h1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d1={exports:{}},p1={exports:{}};(function(t){function r(e){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(p1);var Rw=p1.exports;(function(t){var r=Rw.default;function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=e=function(){return a},t.exports.__esModule=!0,t.exports.default=t.exports;var n,a={},o=Object.prototype,s=o.hasOwnProperty,i=Object.defineProperty||function(M,F,P){M[F]=P.value},u=typeof Symbol=="function"?Symbol:{},l=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function h(M,F,P){return Object.defineProperty(M,F,{value:P,enumerable:!0,configurable:!0,writable:!0}),M[F]}try{h({},"")}catch{h=function(F,P,W){return F[P]=W}}function d(M,F,P,W){var N=F&&F.prototype instanceof k?F:k,q=Object.create(N.prototype),nt=new T(W||[]);return i(q,"_invoke",{value:A(M,P,nt)}),q}function p(M,F,P){try{return{type:"normal",arg:M.call(F,P)}}catch(W){return{type:"throw",arg:W}}}a.wrap=d;var m="suspendedStart",v="suspendedYield",b="executing",g="completed",y={};function k(){}function S(){}function C(){}var O={};h(O,l,function(){return this});var L=Object.getPrototypeOf,j=L&&L(L(E([])));j&&j!==o&&s.call(j,l)&&(O=j);var U=C.prototype=k.prototype=Object.create(O);function z(M){["next","throw","return"].forEach(function(F){h(M,F,function(P){return this._invoke(F,P)})})}function Y(M,F){function P(N,q,nt,J){var St=p(M[N],M,q);if(St.type!=="throw"){var kt=St.arg,Mt=kt.value;return Mt&&r(Mt)=="object"&&s.call(Mt,"__await")?F.resolve(Mt.__await).then(function(at){P("next",at,nt,J)},function(at){P("throw",at,nt,J)}):F.resolve(Mt).then(function(at){kt.value=at,nt(kt)},function(at){return P("throw",at,nt,J)})}J(St.arg)}var W;i(this,"_invoke",{value:function(N,q){function nt(){return new F(function(J,St){P(N,q,J,St)})}return W=W?W.then(nt,nt):nt()}})}function A(M,F,P){var W=m;return function(N,q){if(W===b)throw Error("Generator is already running");if(W===g){if(N==="throw")throw q;return{value:n,done:!0}}for(P.method=N,P.arg=q;;){var nt=P.delegate;if(nt){var J=I(nt,P);if(J){if(J===y)continue;return J}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(W===m)throw W=g,P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);W=b;var St=p(M,F,P);if(St.type==="normal"){if(W=P.done?g:v,St.arg===y)continue;return{value:St.arg,done:P.done}}St.type==="throw"&&(W=g,P.method="throw",P.arg=St.arg)}}}function I(M,F){var P=F.method,W=M.iterator[P];if(W===n)return F.delegate=null,P==="throw"&&M.iterator.return&&(F.method="return",F.arg=n,I(M,F),F.method==="throw")||P!=="return"&&(F.method="throw",F.arg=new TypeError("The iterator does not provide a '"+P+"' method")),y;var N=p(W,M.iterator,F.arg);if(N.type==="throw")return F.method="throw",F.arg=N.arg,F.delegate=null,y;var q=N.arg;return q?q.done?(F[M.resultName]=q.value,F.next=M.nextLoc,F.method!=="return"&&(F.method="next",F.arg=n),F.delegate=null,y):q:(F.method="throw",F.arg=new TypeError("iterator result is not an object"),F.delegate=null,y)}function _(M){var F={tryLoc:M[0]};1 in M&&(F.catchLoc=M[1]),2 in M&&(F.finallyLoc=M[2],F.afterLoc=M[3]),this.tryEntries.push(F)}function x(M){var F=M.completion||{};F.type="normal",delete F.arg,M.completion=F}function T(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(_,this),this.reset(!0)}function E(M){if(M||M===""){var F=M[l];if(F)return F.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var P=-1,W=function N(){for(;++P<M.length;)if(s.call(M,P))return N.value=M[P],N.done=!1,N;return N.value=n,N.done=!0,N};return W.next=W}}throw new TypeError(r(M)+" is not iterable")}return S.prototype=C,i(U,"constructor",{value:C,configurable:!0}),i(C,"constructor",{value:S,configurable:!0}),S.displayName=h(C,c,"GeneratorFunction"),a.isGeneratorFunction=function(M){var F=typeof M=="function"&&M.constructor;return!!F&&(F===S||(F.displayName||F.name)==="GeneratorFunction")},a.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,C):(M.__proto__=C,h(M,c,"GeneratorFunction")),M.prototype=Object.create(U),M},a.awrap=function(M){return{__await:M}},z(Y.prototype),h(Y.prototype,f,function(){return this}),a.AsyncIterator=Y,a.async=function(M,F,P,W,N){N===void 0&&(N=Promise);var q=new Y(d(M,F,P,W),N);return a.isGeneratorFunction(F)?q:q.next().then(function(nt){return nt.done?nt.value:q.next()})},z(U),h(U,c,"Generator"),h(U,l,function(){return this}),h(U,"toString",function(){return"[object Generator]"}),a.keys=function(M){var F=Object(M),P=[];for(var W in F)P.push(W);return P.reverse(),function N(){for(;P.length;){var q=P.pop();if(q in F)return N.value=q,N.done=!1,N}return N.done=!0,N}},a.values=E,T.prototype={constructor:T,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(x),!M)for(var F in this)F.charAt(0)==="t"&&s.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=n)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var F=this;function P(St,kt){return q.type="throw",q.arg=M,F.next=St,kt&&(F.method="next",F.arg=n),!!kt}for(var W=this.tryEntries.length-1;W>=0;--W){var N=this.tryEntries[W],q=N.completion;if(N.tryLoc==="root")return P("end");if(N.tryLoc<=this.prev){var nt=s.call(N,"catchLoc"),J=s.call(N,"finallyLoc");if(nt&&J){if(this.prev<N.catchLoc)return P(N.catchLoc,!0);if(this.prev<N.finallyLoc)return P(N.finallyLoc)}else if(nt){if(this.prev<N.catchLoc)return P(N.catchLoc,!0)}else{if(!J)throw Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return P(N.finallyLoc)}}}},abrupt:function(M,F){for(var P=this.tryEntries.length-1;P>=0;--P){var W=this.tryEntries[P];if(W.tryLoc<=this.prev&&s.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var N=W;break}}N&&(M==="break"||M==="continue")&&N.tryLoc<=F&&F<=N.finallyLoc&&(N=null);var q=N?N.completion:{};return q.type=M,q.arg=F,N?(this.method="next",this.next=N.finallyLoc,y):this.complete(q)},complete:function(M,F){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&F&&(this.next=F),y},finish:function(M){for(var F=this.tryEntries.length-1;F>=0;--F){var P=this.tryEntries[F];if(P.finallyLoc===M)return this.complete(P.completion,P.afterLoc),x(P),y}},catch:function(M){for(var F=this.tryEntries.length-1;F>=0;--F){var P=this.tryEntries[F];if(P.tryLoc===M){var W=P.completion;if(W.type==="throw"){var N=W.arg;x(P)}return N}}throw Error("illegal catch attempt")},delegateYield:function(M,F,P){return this.delegate={iterator:E(M),resultName:F,nextLoc:P},this.method==="next"&&(this.arg=n),y}},a}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(d1);var dh=(0,d1.exports)(),Ow=dh;try{regeneratorRuntime=dh}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=dh:Function("r","regeneratorRuntime = r")(dh)}const Er=h1(Ow);function Cp(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var m1={exports:{}};function v1(t,r,e,n){var a=ht(cr(t.prototype),r,e);return 2&n&&typeof a=="function"?function(o){return a.apply(e,o)}:a}function Pe(t,r,e){return r=cr(r),cn(t,g1()?Reflect.construct(r,e||[],cr(t).constructor):r.apply(t,e))}function g1(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g1=function(){return!!t})()}function ph(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(u,l){if(u){if(typeof u=="string")return b1(u,l);var f={}.toString.call(u).slice(8,-1);return f==="Object"&&u.constructor&&(f=u.constructor.name),f==="Map"||f==="Set"?Array.from(u):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?b1(u,l):void 0}}(t))||r){e&&(t=e);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. |
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,i=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return s=u.done,u},e:function(u){i=!0,o=u},f:function(){try{s||e.return==null||e.return()}finally{if(i)throw o}}}}function b1(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function y1(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}function Fi(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?y1(Object(e),!0).forEach(function(n){Wa(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):y1(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Ap(t){var r,e,n,a=2;for(typeof Symbol<"u"&&(e=Symbol.asyncIterator,n=Symbol.iterator);a--;){if(e&&(r=t[e])!=null)return r.call(t);if(n&&(r=t[n])!=null)return new Mp(r.call(t));e="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function Mp(t){function r(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var n=e.done;return Promise.resolve(e.value).then(function(a){return{value:a,done:n}})}return(Mp=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):r(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):r(n.apply(this.s,arguments))}},new Mp(t)}m1.exports=function(){function t(r,e,n){function a(i,u){if(!e[i]){if(!r[i]){if(!u&&Cp)return Cp(i);if(o)return o(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var f=e[i]={exports:{}};r[i][0].call(f.exports,function(c){return a(r[i][1][c]||c)},f,f.exports,t,r,e,n)}return e[i].exports}for(var o=Cp,s=0;s<n.length;s++)a(n[s]);return a}return t}()({1:[function(t,r,e){var n=t("fs"),a=t("fast-csv"),o=t("dayjs/plugin/customParseFormat"),s=t("dayjs/plugin/utc"),i=t("dayjs").extend(o).extend(s),u=t("../utils/stream-buf"),l=t("../utils/utils").fs.exists,f={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}},c=function(){function h(d){Vt(this,h),this.workbook=d,this.worksheet=null}return $t(h,[{key:"readFile",value:function(){var d=On(Er.mark(function m(v,b){var g,y;return Er.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return b=b||{},k.next=3,l(v);case 3:if(k.sent){k.next=5;break}throw new Error("File not found: ".concat(v));case 5:return g=n.createReadStream(v),k.next=8,this.read(g,b);case 8:return y=k.sent,g.close(),k.abrupt("return",y);case 11:case"end":return k.stop()}},m,this)}));function p(m,v){return d.apply(this,arguments)}return p}()},{key:"read",value:function(d,p){var m=this;return p=p||{},new Promise(function(v,b){var g=m.workbook.addWorksheet(p.sheetName),y=p.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],k=p.map||function(C){if(C==="")return null;var O=Number(C);if(!Number.isNaN(O)&&O!==1/0)return O;var L=y.reduce(function(U,z){if(U)return U;var Y=i(C,z,!0);return Y.isValid()?Y:null},null);if(L)return new Date(L.valueOf());var j=f[C];return j!==void 0?j:C},S=a.parse(p.parserOptions).on("data",function(C){g.addRow(C.map(k))}).on("end",function(){S.emit("worksheet",g)});S.on("worksheet",v).on("error",b),d.pipe(S)})}},{key:"createInputStream",value:function(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"write",value:function(d,p){var m=this;return new Promise(function(v,b){p=p||{};var g=m.workbook.getWorksheet(p.sheetName||p.sheetId),y=a.format(p.formatterOptions);d.on("finish",function(){v()}),y.on("error",b),y.pipe(d);var k=p,S=k.dateFormat,C=k.dateUTC,O=p.map||function(U){if(U){if(U.text||U.hyperlink)return U.hyperlink||U.text||"";if(U.formula||U.result)return U.result||"";if(U instanceof Date)return S?C?i.utc(U).format(S):i(U).format(S):C?i.utc(U).format():i(U).format();if(U.error)return U.error;if(typeof U=="object")return JSON.stringify(U)}return U},L=p.includeEmptyRows===void 0||p.includeEmptyRows,j=1;g&&g.eachRow(function(U,z){if(L)for(;j++<z-1;)y.write([]);var Y=U.values;Y.shift(),y.write(Y.map(O)),j=z}),y.end()})}},{key:"writeFile",value:function(d,p){var m={encoding:(p=p||{}).encoding||"utf8"},v=n.createWriteStream(d,m);return this.write(v,p)}},{key:"writeBuffer",value:function(){var d=On(Er.mark(function m(v){var b;return Er.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return b=new u,g.next=3,this.write(b,v);case 3:return g.abrupt("return",b.read());case 4:case"end":return g.stop()}},m,this)}));function p(m){return d.apply(this,arguments)}return p}()}])}();r.exports=c},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,r,e){var n=t("../utils/col-cache"),a=function(){function o(s,i){Vt(this,o);var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=s,i)if(typeof i=="string"){var l=n.decodeAddress(i);this.nativeCol=l.col+u,this.nativeColOff=0,this.nativeRow=l.row+u,this.nativeRowOff=0}else i.nativeCol!==void 0?(this.nativeCol=i.nativeCol||0,this.nativeColOff=i.nativeColOff||0,this.nativeRow=i.nativeRow||0,this.nativeRowOff=i.nativeRowOff||0):i.col!==void 0?(this.col=i.col+u,this.row=i.row+u):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return $t(o,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(s){this.nativeCol=Math.floor(s),this.nativeColOff=Math.floor((s-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(s){this.nativeRow=Math.floor(s),this.nativeRowOff=Math.floor((s-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(s){this.nativeCol=s.nativeCol,this.nativeColOff=s.nativeColOff,this.nativeRow=s.nativeRow,this.nativeRowOff=s.nativeRowOff}}],[{key:"asInstance",value:function(s){return s instanceof o||s==null?s:new o(s)}}])}();r.exports=a},{"../utils/col-cache":19}],3:[function(t,r,e){var n=t("../utils/col-cache"),a=t("../utils/under-dash"),o=t("./enums"),s=t("../utils/shared-formula").slideFormula,i=t("./note"),u=function(){function C(O,L,j){if(Vt(this,C),!O||!L)throw new Error("A Cell needs a Row");this._row=O,this._column=L,n.validateAddress(j),this._address=j,this._value=S.create(C.Types.Null,this),this.style=this._mergeStyle(O.style,L.style,{}),this._mergeCount=0}return $t(C,[{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(O){this.style.numFmt=O}},{key:"font",get:function(){return this.style.font},set:function(O){this.style.font=O}},{key:"alignment",get:function(){return this.style.alignment},set:function(O){this.style.alignment=O}},{key:"border",get:function(){return this.style.border},set:function(O){this.style.border=O}},{key:"fill",get:function(){return this.style.fill},set:function(O){this.style.fill=O}},{key:"protection",get:function(){return this.style.protection},set:function(O){this.style.protection=O}},{key:"_mergeStyle",value:function(O,L,j){var U=O&&O.numFmt||L&&L.numFmt;U&&(j.numFmt=U);var z=O&&O.font||L&&L.font;z&&(j.font=z);var Y=O&&O.alignment||L&&L.alignment;Y&&(j.alignment=Y);var A=O&&O.border||L&&L.border;A&&(j.border=A);var I=O&&O.fill||L&&L.fill;I&&(j.fill=I);var _=O&&O.protection||L&&L.protection;return _&&(j.protection=_),j}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===C.Types.Merge}},{key:"merge",value:function(O,L){this._value.release(),this._value=S.create(C.Types.Merge,this,O),L||(this.style=O.style)}},{key:"unmerge",value:function(){this.type===C.Types.Merge&&(this._value.release(),this._value=S.create(C.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(O){return this._value.type===C.Types.Merge&&this._value.isMergedTo(O)}},{key:"master",get:function(){return this.type===C.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===C.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(O){this.type!==C.Types.Merge?(this._value.release(),this._value=S.create(S.getType(O),this,O)):this._value.master.value=O}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(O){this._comment=new i(O)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return a.escapeHtml(this.text)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(O){this.type===C.Types.String&&(this._value=S.create(C.Types.Hyperlink,this,{text:this._value.value,hyperlink:O}))}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(O){this.names=[O]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(O){var L=this,j=this.workbook.definedNames;j.removeAllNames(this.fullAddress),O.forEach(function(U){j.addEx(L.fullAddress,U)})}},{key:"addName",value:function(O){this.workbook.definedNames.addEx(this.fullAddress,O)}},{key:"removeName",value:function(O){this.workbook.definedNames.removeEx(this.fullAddress,O)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(O){this._dataValidations.add(this.address,O)}},{key:"model",get:function(){var O=this._value.model;return O.style=this.style,this._comment&&(O.comment=this._comment.model),O},set:function(O){this._value.release(),this._value=S.create(O.type,this),this._value.model=O,O.comment&&O.comment.type==="note"&&(this._comment=i.fromModel(O.comment)),O.style?this.style=O.style:this.style={}}}])}();u.Types=o.ValueType;var l=function(){function C(O){Vt(this,C),this.model={address:O.address,type:u.Types.Null}}return $t(C,[{key:"value",get:function(){return null},set:function(O){}},{key:"type",get:function(){return u.Types.Null}},{key:"effectiveType",get:function(){return u.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}}])}(),f=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.Number,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return u.Types.Number}},{key:"effectiveType",get:function(){return u.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),c=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.String,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return u.Types.String}},{key:"effectiveType",get:function(){return u.Types.String}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),h=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.String,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"toString",value:function(){return this.model.value.richText.map(function(O){return O.text}).join("")}},{key:"type",get:function(){return u.Types.RichText}},{key:"effectiveType",get:function(){return u.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}}])}(),d=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.Date,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return u.Types.Date}},{key:"effectiveType",get:function(){return u.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),p=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.Hyperlink,text:L?L.text:void 0,hyperlink:L?L.hyperlink:void 0},L&&L.tooltip&&(this.model.tooltip=L.tooltip)}return $t(C,[{key:"value",get:function(){var O={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(O.tooltip=this.model.tooltip),O},set:function(O){this.model={text:O.text,hyperlink:O.hyperlink},O.tooltip&&(this.model.tooltip=O.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(O){this.model.text=O}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(O){this.model.hyperlink=O}},{key:"type",get:function(){return u.Types.Hyperlink}},{key:"effectiveType",get:function(){return u.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}}])}(),m=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.Merge,master:L?L.address:void 0},this._master=L,L&&L.addMergeRef()}return $t(C,[{key:"value",get:function(){return this._master.value},set:function(O){O instanceof u?(this._master&&this._master.releaseMergeRef(),O.addMergeRef(),this._master=O):this._master.value=O}},{key:"isMergedTo",value:function(O){return O===this._master}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return u.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}}])}(),v=function(){function C(O,L){Vt(this,C),this.cell=O,this.model={address:O.address,type:u.Types.Formula,shareType:L?L.shareType:void 0,ref:L?L.ref:void 0,formula:L?L.formula:void 0,sharedFormula:L?L.sharedFormula:void 0,result:L?L.result:void 0}}return $t(C,[{key:"_copyModel",value:function(O){var L={},j=function(U){var z=O[U];z&&(L[U]=z)};return j("formula"),j("result"),j("ref"),j("shareType"),j("sharedFormula"),L}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(O){this.model=this._copyModel(O)}},{key:"validate",value:function(O){switch(S.getType(O)){case u.Types.Null:case u.Types.String:case u.Types.Number:case u.Types.Date:break;case u.Types.Hyperlink:case u.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(O){this.model.formula=O}},{key:"formulaType",get:function(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(O){this.model.result=O}},{key:"type",get:function(){return u.Types.Formula}},{key:"effectiveType",get:function(){var O=this.model.result;return O==null?o.ValueType.Null:O instanceof String||typeof O=="string"?o.ValueType.String:typeof O=="number"?o.ValueType.Number:O instanceof Date?o.ValueType.Date:O.text&&O.hyperlink?o.ValueType.Hyperlink:O.formula?o.ValueType.Formula:o.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var O=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=O&&s(O.formula,O.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}}])}(),b=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.SharedString,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return u.Types.SharedString}},{key:"effectiveType",get:function(){return u.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),g=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.Boolean,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return u.Types.Boolean}},{key:"effectiveType",get:function(){return u.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),y=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.Error,value:L}}return $t(C,[{key:"value",get:function(){return this.model.value},set:function(O){this.model.value=O}},{key:"type",get:function(){return u.Types.Error}},{key:"effectiveType",get:function(){return u.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}}])}(),k=function(){function C(O,L){Vt(this,C),this.model={address:O.address,type:u.Types.String,value:JSON.stringify(L),rawValue:L}}return $t(C,[{key:"value",get:function(){return this.model.rawValue},set:function(O){this.model.rawValue=O,this.model.value=JSON.stringify(O)}},{key:"type",get:function(){return u.Types.String}},{key:"effectiveType",get:function(){return u.Types.String}},{key:"address",get:function(){return this.model.address},set:function(O){this.model.address=O}},{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),S={getType:function(C){return C==null?u.Types.Null:C instanceof String||typeof C=="string"?u.Types.String:typeof C=="number"?u.Types.Number:typeof C=="boolean"?u.Types.Boolean:C instanceof Date?u.Types.Date:C.text&&C.hyperlink?u.Types.Hyperlink:C.formula||C.sharedFormula?u.Types.Formula:C.richText?u.Types.RichText:C.sharedString?u.Types.SharedString:C.error?u.Types.Error:u.Types.JSON},types:[{t:u.Types.Null,f:l},{t:u.Types.Number,f},{t:u.Types.String,f:c},{t:u.Types.Date,f:d},{t:u.Types.Hyperlink,f:p},{t:u.Types.Formula,f:v},{t:u.Types.Merge,f:m},{t:u.Types.JSON,f:k},{t:u.Types.SharedString,f:b},{t:u.Types.RichText,f:h},{t:u.Types.Boolean,f:g},{t:u.Types.Error,f:y}].reduce(function(C,O){return C[O.t]=O.f,C},[]),create:function(C,O,L){var j=this.types[C];if(!j)throw new Error("Could not create Value of type ".concat(C));return new j(O,L)}};r.exports=u},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,r,e){var n=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),s=9,i=function(){function u(l,f,c){Vt(this,u),this._worksheet=l,this._number=f,c!==!1&&(this.defn=c)}return $t(u,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return o.n2l(this._number)}},{key:"isCustomWidth",get:function(){return this.width!==void 0&&this.width!==s}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:s,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(l){var f=this;l!==void 0?(this._header=l,this.headers.forEach(function(c,h){f._worksheet.getCell(h+1,f.number).value=c})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(l){this._hidden=l}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(l){this._outlineLevel=l}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&n.isEqual(this.style,l.style)}},{key:"isDefault",get:function(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;var l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"eachCell",value:function(l,f){var c=this.number;f||(f=l,l=null),this._worksheet.eachRow(l,function(h,d){f(h.getCell(c),d)})}},{key:"values",get:function(){var l=[];return this.eachCell(function(f,c){f&&f.type!==a.ValueType.Null&&(l[c]=f.value)}),l},set:function(l){var f=this;if(l){var c=this.number,h=0;l.hasOwnProperty("0")&&(h=1),l.forEach(function(d,p){f._worksheet.getCell(p+h,c).value=d})}}},{key:"_applyStyle",value:function(l,f){return this.style[l]=f,this.eachCell(function(c){c[l]=f}),f}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(l){this._applyStyle("numFmt",l)}},{key:"font",get:function(){return this.style.font},set:function(l){this._applyStyle("font",l)}},{key:"alignment",get:function(){return this.style.alignment},set:function(l){this._applyStyle("alignment",l)}},{key:"protection",get:function(){return this.style.protection},set:function(l){this._applyStyle("protection",l)}},{key:"border",get:function(){return this.style.border},set:function(l){this._applyStyle("border",l)}},{key:"fill",get:function(){return this.style.fill},set:function(l){this._applyStyle("fill",l)}}],[{key:"toModel",value:function(l){var f=[],c=null;return l&&l.forEach(function(h,d){h.isDefault?c&&(c=null):c&&h.equivalentTo(c)?c.max=d+1:(c={min:d+1,max:d+1,width:h.width!==void 0?h.width:s,style:h.style,isCustomWidth:h.isCustomWidth,hidden:h.hidden,outlineLevel:h.outlineLevel,collapsed:h.collapsed},f.push(c))}),f.length?f:void 0}},{key:"fromModel",value:function(l,f){var c=[],h=1,d=0;for(f=(f=f||[]).sort(function(m,v){return m.min-v.min});d<f.length;){for(var p=f[d++];h<p.min;)c.push(new u(l,h++));for(;h<=p.max;)c.push(new u(l,h++,p))}return c.length?c:null}}])}();r.exports=i},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,r,e){var n=function(){function a(o){Vt(this,a),this.model=o||{}}return $t(a,[{key:"add",value:function(o,s){return this.model[o]=s}},{key:"find",value:function(o){return this.model[o]}},{key:"remove",value:function(o){this.model[o]=void 0}}])}();r.exports=n},{}],6:[function(t,r,e){var n=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("../utils/cell-matrix"),s=t("./range"),i=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,u=function(){function l(){Vt(this,l),this.matrixMap={}}return $t(l,[{key:"getMatrix",value:function(f){return this.matrixMap[f]||(this.matrixMap[f]=new o)}},{key:"add",value:function(f,c){var h=a.decodeEx(f);this.addEx(h,c)}},{key:"addEx",value:function(f,c){var h=this.getMatrix(c);if(f.top)for(var d=f.left;d<=f.right;d++)for(var p=f.top;p<=f.bottom;p++){var m={sheetName:f.sheetName,address:a.n2l(d)+p,row:p,col:d};h.addCellEx(m)}else h.addCellEx(f)}},{key:"remove",value:function(f,c){var h=a.decodeEx(f);this.removeEx(h,c)}},{key:"removeEx",value:function(f,c){this.getMatrix(c).removeCellEx(f)}},{key:"removeAllNames",value:function(f){n.each(this.matrixMap,function(c){c.removeCellEx(f)})}},{key:"forEach",value:function(f){n.each(this.matrixMap,function(c,h){c.forEach(function(d){f(h,d)})})}},{key:"getNames",value:function(f){return this.getNamesEx(a.decodeEx(f))}},{key:"getNamesEx",value:function(f){return n.map(this.matrixMap,function(c,h){return c.findCellEx(f)&&h}).filter(Boolean)}},{key:"_explore",value:function(f,c){c.mark=!1;var h,d,p=c.sheetName,m=new s(c.row,c.col,c.row,c.col,p);function v(g,y){var k=f.findCellAt(p,g,c.col);return!(!k||!k.mark||(m[y]=g,k.mark=!1,0))}for(d=c.row-1;v(d,"top");d--);for(d=c.row+1;v(d,"bottom");d++);function b(g,y){var k=[];for(d=m.top;d<=m.bottom;d++){var S=f.findCellAt(p,d,g);if(!S||!S.mark)return!1;k.push(S)}m[y]=g;for(var C=0;C<k.length;C++)k[C].mark=!1;return!0}for(h=c.col-1;b(h,"left");h--);for(h=c.col+1;b(h,"right");h++);return m}},{key:"getRanges",value:function(f,c){var h=this;return(c=c||this.matrixMap[f])?(c.forEach(function(d){d.mark=!0}),{name:f,ranges:c.map(function(d){return d.mark&&h._explore(c,d)}).filter(Boolean).map(function(d){return d.$shortRange})}):{name:f,ranges:[]}}},{key:"normaliseMatrix",value:function(f,c){f.forEachInSheet(c,function(h,d,p){h&&(h.row===d&&h.col===p||(h.row=d,h.col=p,h.address=a.n2l(p)+d))})}},{key:"spliceRows",value:function(f,c,h,d){var p=this;n.each(this.matrixMap,function(m){m.spliceRows(f,c,h,d),p.normaliseMatrix(m,f)})}},{key:"spliceColumns",value:function(f,c,h,d){var p=this;n.each(this.matrixMap,function(m){m.spliceColumns(f,c,h,d),p.normaliseMatrix(m,f)})}},{key:"model",get:function(){var f=this;return n.map(this.matrixMap,function(c,h){return f.getRanges(h,c)}).filter(function(c){return c.ranges.length})},set:function(f){var c=this.matrixMap={};f.forEach(function(h){var d=c[h.name]=new o;h.ranges.forEach(function(p){i.test(p.split("!").pop()||"")&&d.addCell(p)})})}}])}();r.exports=u},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,r,e){r.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,r,e){var n=t("../utils/col-cache"),a=t("./anchor"),o=function(){function s(i,u){Vt(this,s),this.worksheet=i,this.model=u}return $t(s,[{key:"model",get:function(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}},set:function(i){var u=i.type,l=i.imageId,f=i.range,c=i.hyperlinks;if(this.type=u,this.imageId=l,u==="image")if(typeof f=="string"){var h=n.decode(f);this.range={tl:new a(this.worksheet,{col:h.left,row:h.top},-1),br:new a(this.worksheet,{col:h.right,row:h.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,f.tl,0),br:f.br&&new a(this.worksheet,f.br,0),ext:f.ext,editAs:f.editAs,hyperlinks:c||f.hyperlinks}}}])}();r.exports=o},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,r,e){var n=t("../utils/under-dash"),a=function(){function o(s){Vt(this,o),this.note=s}return $t(o,[{key:"model",get:function(){var s=null;return s=typeof this.note=="string"?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},n.deepMerge({},o.DEFAULT_CONFIGS,s)},set:function(s){var i=s.note,u=i.texts;u.length===1&&Object.keys(u[0]).length===1?this.note=u[0].text:this.note=i}}],[{key:"fromModel",value:function(s){var i=new o;return i.model=s,i}}])}();a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},r.exports=a},{"../utils/under-dash":26}],10:[function(t,r,e){var n=t("../utils/col-cache"),a=function(){function o(){Vt(this,o),this.decode(arguments)}return $t(o,[{key:"setTLBR",value:function(s,i,u,l,f){if(arguments.length<4){var c=n.decodeAddress(s),h=n.decodeAddress(i);this.model={top:Math.min(c.row,h.row),left:Math.min(c.col,h.col),bottom:Math.max(c.row,h.row),right:Math.max(c.col,h.col),sheetName:u},this.setTLBR(c.row,c.col,h.row,h.col,f)}else this.model={top:Math.min(s,u),left:Math.min(i,l),bottom:Math.max(s,u),right:Math.max(i,l),sheetName:f}}},{key:"decode",value:function(s){switch(s.length){case 5:this.setTLBR(s[0],s[1],s[2],s[3],s[4]);break;case 4:this.setTLBR(s[0],s[1],s[2],s[3]);break;case 3:this.setTLBR(s[0],s[1],s[2]);break;case 2:this.setTLBR(s[0],s[1]);break;case 1:var i=s[0];if(i instanceof o)this.model={top:i.model.top,left:i.model.left,bottom:i.model.bottom,right:i.model.right,sheetName:i.sheetName};else if(i instanceof Array)this.decode(i);else if(i.top&&i.left&&i.bottom&&i.right)this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName};else{var u=n.decodeEx(i);u.top?this.model={top:u.top,left:u.left,bottom:u.bottom,right:u.right,sheetName:u.sheetName}:this.model={top:u.row,left:u.col,bottom:u.row,right:u.col,sheetName:u.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - ".concat(s.length))}}},{key:"top",get:function(){return this.model.top||1},set:function(s){this.model.top=s}},{key:"left",get:function(){return this.model.left||1},set:function(s){this.model.left=s}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(s){this.model.bottom=s}},{key:"right",get:function(){return this.model.right||1},set:function(s){this.model.right=s}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(s){this.model.sheetName=s}},{key:"_serialisedSheetName",get:function(){var s=this.model.sheetName;return s?/^[a-zA-Z0-9]*$/.test(s)?"".concat(s,"!"):"'".concat(s,"'!"):""}},{key:"expand",value:function(s,i,u,l){(!this.model.top||s<this.top)&&(this.top=s),(!this.model.left||i<this.left)&&(this.left=i),(!this.model.bottom||u>this.bottom)&&(this.bottom=u),(!this.model.right||l>this.right)&&(this.right=l)}},{key:"expandRow",value:function(s){if(s){var i=s.dimensions,u=s.number;i&&this.expand(u,i.min,u,i.max)}}},{key:"expandToAddress",value:function(s){var i=n.decodeEx(s);this.expand(i.row,i.col,i.row,i.col)}},{key:"tl",get:function(){return n.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(n.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return n.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(n.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(s){return!(s.sheetName&&this.sheetName&&s.sheetName!==this.sheetName||s.bottom<this.top||s.top>this.bottom||s.right<this.left||s.left>this.right)}},{key:"contains",value:function(s){var i=n.decodeEx(s);return this.containsEx(i)}},{key:"containsEx",value:function(s){return(!s.sheetName||!this.sheetName||s.sheetName===this.sheetName)&&s.row>=this.top&&s.row<=this.bottom&&s.col>=this.left&&s.col<=this.right}},{key:"forEachAddress",value:function(s){for(var i=this.left;i<=this.right;i++)for(var u=this.top;u<=this.bottom;u++)s(n.encodeAddress(u,i),u,i)}}])}();r.exports=a},{"../utils/col-cache":19}],11:[function(t,r,e){var n=t("../utils/under-dash"),a=t("./enums"),o=t("../utils/col-cache"),s=t("./cell"),i=function(){function u(l,f){Vt(this,u),this._worksheet=l,this._number=f,this._cells=[],this.style={},this.outlineLevel=0}return $t(u,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(l){return this._cells[l-1]}},{key:"getCellEx",value:function(l){var f=this._cells[l.col-1];if(!f){var c=this._worksheet.getColumn(l.col);f=new s(this,c,l.address),this._cells[l.col-1]=f}return f}},{key:"getCell",value:function(l){if(typeof l=="string"){var f=this._worksheet.getColumnKey(l);l=f?f.number:o.l2n(l)}return this._cells[l-1]||this.getCellEx({address:o.encodeAddress(this._number,l),row:this._number,col:l})}},{key:"splice",value:function(l,f){for(var c=l+f,h=arguments.length,d=new Array(h>2?h-2:0),p=2;p<h;p++)d[p-2]=arguments[p];var m,v,b,g=d.length-f,y=this._cells.length;if(g<0)for(m=l+d.length;m<=y;m++)b=this._cells[m-1],(v=this._cells[m-g-1])?((b=this.getCell(m)).value=v.value,b.style=v.style,b._comment=v._comment):b&&(b.value=null,b.style={},b._comment=void 0);else if(g>0)for(m=y;m>=c;m--)(v=this._cells[m-1])?((b=this.getCell(m+g)).value=v.value,b.style=v.style,b._comment=v._comment):this._cells[m+g-1]=void 0;for(m=0;m<d.length;m++)(b=this.getCell(l+m)).value=d[m],b.style={},b._comment=void 0}},{key:"eachCell",value:function(l,f){if(f||(f=l,l=null),l&&l.includeEmpty)for(var c=this._cells.length,h=1;h<=c;h++)f(this.getCell(h),h);else this._cells.forEach(function(d,p){d&&d.type!==a.ValueType.Null&&f(d,p+1)})}},{key:"addPageBreak",value:function(l,f){var c=this._worksheet,h=Math.max(0,l-1)||0,d=Math.max(0,f-1)||16838,p={id:this._number,max:d,man:1};h&&(p.min=h),c.rowBreaks.push(p)}},{key:"values",get:function(){var l=[];return this._cells.forEach(function(f){f&&f.type!==a.ValueType.Null&&(l[f.col]=f.value)}),l},set:function(l){var f=this;if(this._cells=[],l)if(l instanceof Array){var c=0;l.hasOwnProperty("0")&&(c=1),l.forEach(function(h,d){h!==void 0&&(f.getCellEx({address:o.encodeAddress(f._number,d+c),row:f._number,col:d+c}).value=h)})}else this._worksheet.eachColumnKey(function(h,d){l[d]!==void 0&&(f.getCellEx({address:o.encodeAddress(f._number,h.number),row:f._number,col:h.number}).value=l[d])})}},{key:"hasValues",get:function(){return n.some(this._cells,function(l){return l&&l.type!==a.ValueType.Null})}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var l=0;return this.eachCell(function(){l++}),l}},{key:"dimensions",get:function(){var l=0,f=0;return this._cells.forEach(function(c){c&&c.type!==a.ValueType.Null&&((!l||l>c.col)&&(l=c.col),f<c.col&&(f=c.col))}),l>0?{min:l,max:f}:null}},{key:"_applyStyle",value:function(l,f){return this.style[l]=f,this._cells.forEach(function(c){c&&(c[l]=f)}),f}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(l){this._applyStyle("numFmt",l)}},{key:"font",get:function(){return this.style.font},set:function(l){this._applyStyle("font",l)}},{key:"alignment",get:function(){return this.style.alignment},set:function(l){this._applyStyle("alignment",l)}},{key:"protection",get:function(){return this.style.protection},set:function(l){this._applyStyle("protection",l)}},{key:"border",get:function(){return this.style.border},set:function(l){this._applyStyle("border",l)}},{key:"fill",get:function(){return this.style.fill},set:function(l){this._applyStyle("fill",l)}},{key:"hidden",get:function(){return!!this._hidden},set:function(l){this._hidden=l}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(l){this._outlineLevel=l}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var l=[],f=0,c=0;return this._cells.forEach(function(h){if(h){var d=h.model;d&&((!f||f>h.col)&&(f=h.col),c<h.col&&(c=h.col),l.push(d))}}),this.height||l.length?{cells:l,number:this.number,min:f,max:c,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(l){var f,c=this;if(l.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],l.cells.forEach(function(h){if(h.type!==s.Types.Merge){var d;if(h.address)d=o.decodeAddress(h.address);else if(f){var p=f.row,m=f.col+1;d={row:p,col:m,address:o.encodeAddress(p,m),$col$row:"$".concat(o.n2l(m),"$").concat(p)}}f=d,c.getCellEx(d).model=h}}),l.height?this.height=l.height:delete this.height,this.hidden=l.hidden,this.outlineLevel=l.outlineLevel||0,this.style=l.style&&JSON.parse(JSON.stringify(l.style))||{}}}])}();r.exports=i},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,r,e){var n=t("../utils/col-cache"),a=function(){function s(i,u,l){Vt(this,s),this.table=i,this.column=u,this.index=l}return $t(s,[{key:"_set",value:function(i,u){this.table.cacheState(),this.column[i]=u}},{key:"name",get:function(){return this.column.name},set:function(i){this._set("name",i)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(i){this.column.filterButton=i}},{key:"style",get:function(){return this.column.style},set:function(i){this.column.style=i}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(i){this._set("totalsRowLabel",i)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(i){this._set("totalsRowFunction",i)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(i){this._set("totalsRowResult",i)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(i){this._set("totalsRowFormula",i)}}])}(),o=function(){function s(i,u){Vt(this,s),this.worksheet=i,u&&(this.table=u,this.validate(),this.store())}return $t(s,[{key:"getFormula",value:function(i){switch(i.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(i.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(i.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(i.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(i.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(i.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(i.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(i.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(i.name,"])");case"custom":return i.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(i.totalsRowFunction))}}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"validate",value:function(){var i=this,u=this.table,l=function(b,g,y){b[g]===void 0&&(b[g]=y)};l(u,"headerRow",!0),l(u,"totalsRow",!1),l(u,"style",{}),l(u.style,"theme","TableStyleMedium2"),l(u.style,"showFirstColumn",!1),l(u.style,"showLastColumn",!1),l(u.style,"showRowStripes",!1),l(u.style,"showColumnStripes",!1);var f=function(b,g){if(!b)throw new Error(g)};f(u.ref,"Table must have ref"),f(u.columns,"Table must have column definitions"),f(u.rows,"Table must have row definitions"),u.tl=n.decodeAddress(u.ref);var c=u.tl,h=c.row,d=c.col;f(h>0,"Table must be on valid row"),f(d>0,"Table must be on valid col");var p=this.width,m=this.filterHeight,v=this.tableHeight;u.autoFilterRef=n.encode(h,d,h+m-1,d+p-1),u.tableRef=n.encode(h,d,h+v-1,d+p-1),u.columns.forEach(function(b,g){f(b.name,"Column ".concat(g," must have a name")),g===0?l(b,"totalsRowLabel","Total"):(l(b,"totalsRowFunction","none"),b.totalsRowFormula=i.getFormula(b))})}},{key:"store",value:function(){var i=this,u=function(b,g){g&&Object.keys(g).forEach(function(y){b[y]=g[y]})},l=this.worksheet,f=this.table,c=f.tl,h=c.row,d=c.col,p=0;if(f.headerRow){var m=l.getRow(h+p++);f.columns.forEach(function(b,g){var y=b.style,k=b.name,S=m.getCell(d+g);S.value=k,u(S,y)})}if(f.rows.forEach(function(b){var g=l.getRow(h+p++);b.forEach(function(y,k){var S=g.getCell(d+k);S.value=y,u(S,f.columns[k].style)})}),f.totalsRow){var v=l.getRow(h+p++);f.columns.forEach(function(b,g){var y=v.getCell(d+g);if(g===0)y.value=b.totalsRowLabel;else{var k=i.getFormula(b);y.value=k?{formula:b.totalsRowFormula,result:b.totalsRowResult}:null}u(y,b.style)})}}},{key:"load",value:function(i){var u=this,l=this.table,f=l.tl,c=f.row,h=f.col,d=0;if(l.headerRow){var p=i.getRow(c+d++);l.columns.forEach(function(v,b){p.getCell(h+b).value=v.name})}if(l.rows.forEach(function(v){var b=i.getRow(c+d++);v.forEach(function(g,y){b.getCell(h+y).value=g})}),l.totalsRow){var m=i.getRow(c+d++);l.columns.forEach(function(v,b){var g=m.getCell(h+b);b===0?g.value=v.totalsRowLabel:u.getFormula(v)&&(g.value={formula:v.totalsRowFormula,result:v.totalsRowResult})})}}},{key:"model",get:function(){return this.table},set:function(i){this.table=i}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var i=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var u=0;u<this._cache.tableHeight;u++)for(var l=this.worksheet.getRow(i.row+u),f=0;f<this._cache.width;f++)l.getCell(i.col+f).value=null;else{for(var c=this.tableHeight;c<this._cache.tableHeight;c++)for(var h=this.worksheet.getRow(i.row+c),d=0;d<this._cache.width;d++)h.getCell(i.col+d).value=null;for(var p=0;p<this.tableHeight;p++)for(var m=this.worksheet.getRow(i.row+p),v=this.width;v<this._cache.width;v++)m.getCell(i.col+v).value=null}this.store()}}},{key:"addRow",value:function(i,u){this.cacheState(),u===void 0?this.table.rows.push(i):this.table.rows.splice(u,0,i)}},{key:"removeRows",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(i,u)}},{key:"getColumn",value:function(i){var u=this.table.columns[i];return new a(this,u,i)}},{key:"addColumn",value:function(i,u,l){this.cacheState(),l===void 0?(this.table.columns.push(i),this.table.rows.forEach(function(f,c){f.push(u[c])})):(this.table.columns.splice(l,0,i),this.table.rows.forEach(function(f,c){f.splice(l,0,u[c])}))}},{key:"removeColumns",value:function(i){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(i,u),this.table.rows.forEach(function(l){l.splice(i,u)})}},{key:"_assign",value:function(i,u,l){this.cacheState(),i[u]=l}},{key:"ref",get:function(){return this.table.ref},set:function(i){this._assign(this.table,"ref",i)}},{key:"name",get:function(){return this.table.name},set:function(i){this.table.name=i}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(i){this.table.displayName=i}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(i){this._assign(this.table,"headerRow",i)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(i){this._assign(this.table,"totalsRow",i)}},{key:"theme",get:function(){return this.table.style.name},set:function(i){this.table.style.name=i}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(i){this.table.style.showFirstColumn=i}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(i){this.table.style.showLastColumn=i}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(i){this.table.style.showRowStripes=i}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(i){this.table.style.showColumnStripes=i}}])}();r.exports=o},{"../utils/col-cache":19}],13:[function(t,r,e){var n=t("./worksheet"),a=t("./defined-names"),o=t("../xlsx/xlsx"),s=t("../csv/csv"),i=function(){function u(){Vt(this,u),this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}return $t(u,[{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new s(this)),this._csv}},{key:"nextId",get:function(){for(var l=1;l<this._worksheets.length;l++)if(!this._worksheets[l])return l;return this._worksheets.length||1}},{key:"addWorksheet",value:function(l,f){var c=this.nextId;f&&(typeof f=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),f={properties:{tabColor:{argb:f}}}):(f.argb||f.theme||f.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),f={properties:{tabColor:f}}));var h=this._worksheets.reduce(function(m,v){return(v&&v.orderNo)>m?v.orderNo:m},0),d=Object.assign({},f,{id:c,name:l,orderNo:h+1,workbook:this}),p=new n(d);return this._worksheets[c]=p,p}},{key:"removeWorksheetEx",value:function(l){delete this._worksheets[l.id]}},{key:"removeWorksheet",value:function(l){var f=this.getWorksheet(l);f&&f.destroy()}},{key:"getWorksheet",value:function(l){return l===void 0?this._worksheets.find(Boolean):typeof l=="number"?this._worksheets[l]:typeof l=="string"?this._worksheets.find(function(f){return f&&f.name===l}):void 0}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(l,f){return l.orderNo-f.orderNo}).filter(Boolean)}},{key:"eachSheet",value:function(l){this.worksheets.forEach(function(f){l(f,f.id)})}},{key:"definedNames",get:function(){return this._definedNames}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(l){var f=this.media.length;return this.media.push(Object.assign({},l,{type:"image"})),f}},{key:"getImage",value:function(l){return this.media[l]}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(function(l){return l.model}),sheets:this.worksheets.map(function(l){return l.model}).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(l){var f=this;this.creator=l.creator,this.lastModifiedBy=l.lastModifiedBy,this.lastPrinted=l.lastPrinted,this.created=l.created,this.modified=l.modified,this.company=l.company,this.manager=l.manager,this.title=l.title,this.subject=l.subject,this.keywords=l.keywords,this.category=l.category,this.description=l.description,this.language=l.language,this.revision=l.revision,this.contentStatus=l.contentStatus,this.properties=l.properties,this.calcProperties=l.calcProperties,this._worksheets=[],l.worksheets.forEach(function(c){var h=c.id,d=c.name,p=c.state,m=l.sheets&&l.sheets.findIndex(function(v){return v.id===h});(f._worksheets[h]=new n({id:h,name:d,orderNo:m,state:p,workbook:f})).model=c}),this._definedNames.model=l.definedNames,this.views=l.views,this._themes=l.themes,this.media=l.media||[]}}])}();r.exports=i},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,r,e){var n=t("../utils/under-dash"),a=t("../utils/col-cache"),o=t("./range"),s=t("./row"),i=t("./column"),u=t("./enums"),l=t("./image"),f=t("./table"),c=t("./data-validations"),h=t("../utils/encryptor"),d=t("../utils/copy-style").copyStyle,p=function(){function m(v){Vt(this,m),v=v||{},this._workbook=v.workbook,this.id=v.id,this.orderNo=v.orderNo,this.name=v.name,this.state=v.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},v.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!v.pageSetup||!v.pageSetup.fitToWidth&&!v.pageSetup.fitToHeight||v.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},v.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},v.headerFooter),this.dataValidations=new c,this.views=v.views||[],this.autoFilter=v.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return $t(m,[{key:"name",get:function(){return this._name},set:function(v){if(v===void 0&&(v="sheet".concat(this.id)),this._name!==v){if(typeof v!="string")throw new Error("The name has to be a string.");if(v==="")throw new Error("The name can't be empty.");if(v==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(v))throw new Error("Worksheet name ".concat(v," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(v))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(v));if(v&&v.length>31&&(console.warn("Worksheet name ".concat(v," exceeds 31 chars. This will be truncated")),v=v.substring(0,31)),this._workbook._worksheets.find(function(b){return b&&b.name.toLowerCase()===v.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(v));this._name=v}}},{key:"workbook",get:function(){return this._workbook}},{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"dimensions",get:function(){var v=new o;return this._rows.forEach(function(b){if(b){var g=b.dimensions;g&&v.expand(b.number,g.min,b.number,g.max)}}),v}},{key:"columns",get:function(){return this._columns},set:function(v){var b=this;this._headerRowCount=v.reduce(function(k,S){var C=(S.header?1:S.headers&&S.headers.length)||0;return Math.max(k,C)},0);var g=1,y=this._columns=[];v.forEach(function(k){var S=new i(b,g++,!1);y.push(S),S.defn=k})}},{key:"getColumnKey",value:function(v){return this._keys[v]}},{key:"setColumnKey",value:function(v,b){this._keys[v]=b}},{key:"deleteColumnKey",value:function(v){delete this._keys[v]}},{key:"eachColumnKey",value:function(v){n.each(this._keys,v)}},{key:"getColumn",value:function(v){if(typeof v=="string"){var b=this._keys[v];if(b)return b;v=a.l2n(v)}if(this._columns||(this._columns=[]),v>this._columns.length)for(var g=this._columns.length+1;g<=v;)this._columns.push(new i(this,g++));return this._columns[v-1]}},{key:"spliceColumns",value:function(v,b){for(var g=this,y=this._rows.length,k=arguments.length,S=new Array(k>2?k-2:0),C=2;C<k;C++)S[C-2]=arguments[C];if(S.length>0)for(var O=function(_){var x=[v,b];S.forEach(function(E){x.push(E[_]||null)});var T=g.getRow(_+1);T.splice.apply(T,x)},L=0;L<y;L++)O(L);else this._rows.forEach(function(_){_&&_.splice(v,b)});var j=S.length-b,U=v+b,z=this._columns.length;if(j<0)for(var Y=v+S.length;Y<=z;Y++)this.getColumn(Y).defn=this.getColumn(Y-j).defn;else if(j>0)for(var A=z;A>=U;A--)this.getColumn(A+j).defn=this.getColumn(A).defn;for(var I=v;I<v+S.length;I++)this.getColumn(I).defn=null;this.workbook.definedNames.spliceColumns(this.name,v,b,S.length)}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var v=0;return this.eachRow(function(b){v=Math.max(v,b.cellCount)}),v}},{key:"actualColumnCount",get:function(){var v=[],b=0;return this.eachRow(function(g){g.eachCell(function(y){var k=y.col;v[k]||(v[k]=!0,b++)})}),b}},{key:"_commitRow",value:function(){}},{key:"_lastRowNumber",get:function(){for(var v=this._rows,b=v.length;b>0&&v[b-1]===void 0;)b--;return b}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"findRow",value:function(v){return this._rows[v-1]}},{key:"findRows",value:function(v,b){return this._rows.slice(v-1,v-1+b)}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var v=0;return this.eachRow(function(){v++}),v}},{key:"getRow",value:function(v){var b=this._rows[v-1];return b||(b=this._rows[v-1]=new s(this,v)),b}},{key:"getRows",value:function(v,b){if(!(b<1)){for(var g=[],y=v;y<v+b;y++)g.push(this.getRow(y));return g}}},{key:"addRow",value:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",g=this._nextRow,y=this.getRow(g);return y.values=v,this._setStyleOption(g,b[0]==="i"?b:"n"),y}},{key:"addRows",value:function(v){var b=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",y=[];return v.forEach(function(k){y.push(b.addRow(k,g))}),y}},{key:"insertRow",value:function(v,b){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(v,0,b),this._setStyleOption(v,g),this.getRow(v)}},{key:"insertRows",value:function(v,b){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows.apply(this,[v,0].concat(nn(b))),g!=="n")for(var y=0;y<b.length;y++)g[0]==="o"&&this.findRow(b.length+v+y)!==void 0?this._copyStyle(b.length+v+y,v+y,g[1]==="+"):g[0]==="i"&&this.findRow(v-1)!==void 0&&this._copyStyle(v-1,v+y,g[1]==="+");return this.getRows(v,b.length)}},{key:"_setStyleOption",value:function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(v+1)!==void 0?this._copyStyle(v+1,v,b[1]==="+"):b[0]==="i"&&this.findRow(v-1)!==void 0&&this._copyStyle(v-1,v,b[1]==="+")}},{key:"_copyStyle",value:function(v,b){var g=arguments.length>2&&arguments[2]!==void 0&&arguments[2],y=this.getRow(v),k=this.getRow(b);k.style=d(y.style),y.eachCell({includeEmpty:g},function(S,C){k.getCell(C).style=d(S.style)}),k.height=y.height}},{key:"duplicateRow",value:function(v,b){var g=this,y=arguments.length>2&&arguments[2]!==void 0&&arguments[2],k=this._rows[v-1],S=new Array(b).fill(k.values);this.spliceRows.apply(this,[v+1,y?0:b].concat(nn(S)));for(var C=function(){var L=g._rows[v+O];L.style=k.style,L.height=k.height,k.eachCell({includeEmpty:!0},function(j,U){L.getCell(U).style=j.style})},O=0;O<b;O++)C()}},{key:"spliceRows",value:function(v,b){for(var g=this,y=v+b,k=arguments.length,S=new Array(k>2?k-2:0),C=2;C<k;C++)S[C-2]=arguments[C];var O,L,j=S.length,U=j-b,z=this._rows.length;if(U<0){v===z&&(this._rows[z-1]=void 0);var Y=function(){if(L=g._rows[O-1]){var _=g.getRow(O+U);_.values=L.values,_.style=L.style,_.height=L.height,L.eachCell({includeEmpty:!0},function(x,T){_.getCell(T).style=x.style}),g._rows[O-1]=void 0}else g._rows[O+U-1]=void 0};for(O=y;O<=z;O++)Y()}else if(U>0){var A=function(){if(L=g._rows[O-1]){var _=g.getRow(O+U);_.values=L.values,_.style=L.style,_.height=L.height,L.eachCell({includeEmpty:!0},function(x,T){if(_.getCell(T).style=x.style,x._value.constructor.name==="MergeValue"){var E=g.getRow(x._row._number+j).getCell(T),M=x._value._master,F=g.getRow(M._row._number+j).getCell(M._column._number);E.merge(F)}})}else g._rows[O+U-1]=void 0};for(O=z;O>=y;O--)A()}for(O=0;O<j;O++){var I=this.getRow(v+O);I.style={},I.values=S[O]}this.workbook.definedNames.spliceRows(this.name,v,b,j)}},{key:"eachRow",value:function(v,b){if(b||(b=v,v=void 0),v&&v.includeEmpty)for(var g=this._rows.length,y=1;y<=g;y++)b(this.getRow(y),y);else this._rows.forEach(function(k){k&&k.hasValues&&b(k,k.number)})}},{key:"getSheetValues",value:function(){var v=[];return this._rows.forEach(function(b){b&&(v[b.number]=b.values)}),v}},{key:"findCell",value:function(v,b){var g=a.getAddress(v,b),y=this._rows[g.row-1];return y?y.findCell(g.col):void 0}},{key:"getCell",value:function(v,b){var g=a.getAddress(v,b);return this.getRow(g.row).getCellEx(g)}},{key:"mergeCells",value:function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];var y=new o(b);this._mergeCellsInternal(y)}},{key:"mergeCellsWithoutStyle",value:function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];var y=new o(b);this._mergeCellsInternal(y,!0)}},{key:"_mergeCellsInternal",value:function(v,b){n.each(this._merges,function(S){if(S.intersects(v))throw new Error("Cannot merge already merged cells")});for(var g=this.getCell(v.top,v.left),y=v.top;y<=v.bottom;y++)for(var k=v.left;k<=v.right;k++)(y>v.top||k>v.left)&&this.getCell(y,k).merge(g,b);this._merges[g.address]=v}},{key:"_unMergeMaster",value:function(v){var b=this._merges[v.address];if(b){for(var g=b.top;g<=b.bottom;g++)for(var y=b.left;y<=b.right;y++)this.getCell(g,y).unmerge();delete this._merges[v.address]}}},{key:"hasMerges",get:function(){return n.some(this._merges,Boolean)}},{key:"unMergeCells",value:function(){for(var v=arguments.length,b=new Array(v),g=0;g<v;g++)b[g]=arguments[g];for(var y=new o(b),k=y.top;k<=y.bottom;k++)for(var S=y.left;S<=y.right;S++){var C=this.findCell(k,S);C&&(C.type===u.ValueType.Merge?this._unMergeMaster(C.master):this._merges[C.address]&&this._unMergeMaster(C))}}},{key:"fillFormula",value:function(v,b,g){var y,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared",S=a.decode(v),C=S.top,O=S.left,L=S.bottom,j=S.right,U=j-O+1,z=a.encodeAddress(C,O),Y=k==="shared";y=typeof g=="function"?g:Array.isArray(g)?Array.isArray(g[0])?function(x,T){return g[x-C][T-O]}:function(x,T){return g[(x-C)*U+(T-O)]}:function(){};for(var A=!0,I=C;I<=L;I++)for(var _=O;_<=j;_++)A?(this.getCell(I,_).value={shareType:k,formula:b,ref:v,result:y(I,_)},A=!1):this.getCell(I,_).value=Y?{sharedFormula:z,result:y(I,_)}:y(I,_)}},{key:"addImage",value:function(v,b){var g={type:"image",imageId:v,range:b};this._media.push(new l(this,g))}},{key:"getImages",value:function(){return this._media.filter(function(v){return v.type==="image"})}},{key:"addBackgroundImage",value:function(v){var b={type:"background",imageId:v};this._media.push(new l(this,b))}},{key:"getBackgroundImageId",value:function(){var v=this._media.find(function(b){return b.type==="background"});return v&&v.imageId}},{key:"protect",value:function(v,b){var g=this;return new Promise(function(y){g.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),v&&(g.sheetProtection.algorithmName="SHA-512",g.sheetProtection.saltValue=h.randomBytes(16).toString("base64"),g.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,g.sheetProtection.hashValue=h.convertPasswordToHash(v,"SHA512",g.sheetProtection.saltValue,g.sheetProtection.spinCount)),b&&(g.sheetProtection=Object.assign(g.sheetProtection,b),!v&&"spinCount"in b&&delete g.sheetProtection.spinCount),y()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(v){var b=new f(this,v);return this.tables[v.name]=b,b}},{key:"getTable",value:function(v){return this.tables[v]}},{key:"removeTable",value:function(v){delete this.tables[v]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(v){this.conditionalFormattings.push(v)}},{key:"removeConditionalFormatting",value:function(v){typeof v=="number"?this.conditionalFormattings.splice(v,1):this.conditionalFormattings=v instanceof Function?this.conditionalFormattings.filter(v):[]}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(v){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=v}},{key:"model",get:function(){var v={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(function(y){return y.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(y){return y.model}),conditionalFormattings:this.conditionalFormattings};v.cols=i.toModel(this.columns);var b=v.rows=[],g=v.dimensions=new o;return this._rows.forEach(function(y){var k=y&&y.model;k&&(g.expand(k.number,k.min,k.number,k.max),b.push(k))}),v.merges=[],n.each(this._merges,function(y){v.merges.push(y.range)}),v},set:function(v){var b=this;this.name=v.name,this._columns=i.fromModel(this,v.cols),this._parseRows(v),this._parseMergeCells(v),this.dataValidations=new c(v.dataValidations),this.properties=v.properties,this.pageSetup=v.pageSetup,this.headerFooter=v.headerFooter,this.views=v.views,this.autoFilter=v.autoFilter,this._media=v.media.map(function(g){return new l(b,g)}),this.sheetProtection=v.sheetProtection,this.tables=v.tables.reduce(function(g,y){var k=new f;return k.model=y,g[y.name]=k,g},{}),this.conditionalFormattings=v.conditionalFormattings}},{key:"_parseRows",value:function(v){var b=this;this._rows=[],v.rows.forEach(function(g){var y=new s(b,g.number);b._rows[y.number-1]=y,y.model=g})}},{key:"_parseMergeCells",value:function(v){var b=this;n.each(v.mergeCells,function(g){b.mergeCellsWithoutStyle(g)})}}])}();r.exports=p},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,r,e){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");var n={Workbook:t("./doc/workbook")},a=t("./doc/enums");Object.keys(a).forEach(function(o){n[o]=a[o]}),r.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,r,e){var n=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function a(o){return typeof o=="string"?o:n?n.decode(o):o.toString()}e.bufferToString=a},{}],17:[function(t,r,e){var n=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),a=t("buffer").Buffer;function o(s){return typeof s!="string"?s:n?a.from(n.encode(s).buffer):a.from(s)}e.stringToBuffer=o},{buffer:220}],18:[function(t,r,e){var n=t("./under-dash"),a=t("./col-cache"),o=function(){function s(i){Vt(this,s),this.template=i,this.sheets={}}return $t(s,[{key:"addCell",value:function(i){this.addCellEx(a.decodeEx(i))}},{key:"getCell",value:function(i){return this.findCellEx(a.decodeEx(i),!0)}},{key:"findCell",value:function(i){return this.findCellEx(a.decodeEx(i),!1)}},{key:"findCellAt",value:function(i,u,l){var f=this.sheets[i],c=f&&f[u];return c&&c[l]}},{key:"addCellEx",value:function(i){if(i.top)for(var u=i.top;u<=i.bottom;u++)for(var l=i.left;l<=i.right;l++)this.getCellAt(i.sheetName,u,l);else this.findCellEx(i,!0)}},{key:"getCellEx",value:function(i){return this.findCellEx(i,!0)}},{key:"findCellEx",value:function(i,u){var l=this.findSheet(i,u),f=this.findSheetRow(l,i,u);return this.findRowCell(f,i,u)}},{key:"getCellAt",value:function(i,u,l){var f=this.sheets[i]||(this.sheets[i]=[]),c=f[u]||(f[u]=[]);return c[l]||(c[l]={sheetName:i,address:a.n2l(l)+u,row:u,col:l})}},{key:"removeCellEx",value:function(i){var u=this.findSheet(i);if(u){var l=this.findSheetRow(u,i);l&&delete l[i.col]}}},{key:"forEachInSheet",value:function(i,u){var l=this.sheets[i];l&&l.forEach(function(f,c){f&&f.forEach(function(h,d){h&&u(h,c,d)})})}},{key:"forEach",value:function(i){var u=this;n.each(this.sheets,function(l,f){u.forEachInSheet(f,i)})}},{key:"map",value:function(i){var u=[];return this.forEach(function(l){u.push(i(l))}),u}},{key:"findSheet",value:function(i,u){var l=i.sheetName;return this.sheets[l]?this.sheets[l]:u?this.sheets[l]=[]:void 0}},{key:"findSheetRow",value:function(i,u,l){var f=u.row;return i&&i[f]?i[f]:l?i[f]=[]:void 0}},{key:"findRowCell",value:function(i,u,l){var f=u.col;return i&&i[f]?i[f]:l?i[f]=this.template?Object.assign(u,JSON.parse(JSON.stringify(this.template))):u:void 0}},{key:"spliceRows",value:function(i,u,l,f){var c=this.sheets[i];if(c){for(var h=[],d=0;d<f;d++)h.push([]);c.splice.apply(c,[u,l].concat(h))}}},{key:"spliceColumns",value:function(i,u,l,f){var c=this.sheets[i];if(c){for(var h=[],d=0;d<f;d++)h.push(null);n.each(c,function(p){p.splice.apply(p,[u,l].concat(h))})}}}])}();r.exports=o},{"./col-cache":19,"./under-dash":26}],19:[function(t,r,e){var n=/^[A-Z]+\d+$/,a={_dictionary:["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"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(o){return o<=26?1:o<=676?2:3},_fill:function(o){var s,i,u,l,f,c=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;c<=26;)s=this._dictionary[c-1],this._n2l[c]=s,this._l2n[s]=c,c++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(c=27;c<=702;)u=(i=c-27)%26,l=Math.floor(i/26),s=this._dictionary[l]+this._dictionary[u],this._n2l[c]=s,this._l2n[s]=c,c++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(c=703;c<=16384;)u=(i=c-703)%26,l=Math.floor(i/26)%26,f=Math.floor(i/676),s=this._dictionary[f]+this._dictionary[l]+this._dictionary[u],this._n2l[c]=s,this._l2n[s]=c,c++;this._l2nFill=3}},l2n:function(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: ".concat(o));return this._l2n[o]},n2l:function(o){if(o<1||o>16384)throw new Error("".concat(o," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress:function(o){if(!n.test(o))throw new Error("Invalid Address: ".concat(o));return!0},decodeAddress:function(o){var s=o.length<5&&this._hash[o];if(s)return s;for(var i,u=!1,l="",f=0,c=!1,h="",d=0,p=0;p<o.length;p++)if(i=o.charCodeAt(p),!c&&i>=65&&i<=90)u=!0,l+=o[p],f=26*f+i-64;else if(i>=48&&i<=57)c=!0,h+=o[p],d=10*d+i-48;else if(c&&u&&i!==36)break;if(u){if(f>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(l))}else f=void 0;c||(d=void 0);var m={address:o=l+h,col:f,row:d,$col$row:"$".concat(l,"$").concat(h)};return f<=100&&d<=100&&(this._hash[o]=m,this._hash[m.$col$row]=m),m},getAddress:function(o,s){if(s){var i=this.n2l(s)+o;return this.decodeAddress(i)}return this.decodeAddress(o)},decode:function(o){var s=o.split(":");if(s.length===2){var i=this.decodeAddress(s[0]),u=this.decodeAddress(s[1]),l={top:Math.min(i.row,u.row),left:Math.min(i.col,u.col),bottom:Math.max(i.row,u.row),right:Math.max(i.col,u.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions="".concat(l.tl,":").concat(l.br),l}return this.decodeAddress(o)},decodeEx:function(o){var s=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=s[1]||s[2],u=s[3],l=u.split(":");if(l.length>1){var f=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]),h=Math.min(f.row,c.row),d=Math.min(f.col,c.col),p=Math.max(f.row,c.row),m=Math.max(f.col,c.col);return f=this.n2l(d)+h,c=this.n2l(m)+p,{top:h,left:d,bottom:p,right:m,sheetName:i,tl:{address:f,col:d,row:h,$col$row:"$".concat(this.n2l(d),"$").concat(h),sheetName:i},br:{address:c,col:m,row:p,$col$row:"$".concat(this.n2l(m),"$").concat(p),sheetName:i},dimensions:"".concat(f,":").concat(c)}}if(u.startsWith("#"))return i?{sheetName:i,error:u}:{error:u};var v=this.decodeAddress(u);return i?Fi({sheetName:i},v):v},encodeAddress:function(o,s){return a.n2l(s)+o},encode:function(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(a.encodeAddress(arguments[0],arguments[1]),":").concat(a.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(o,s){var i=Tr(o,5),u=i[0],l=i[1],f=i[3],c=i[4],h=Tr(s,2),d=h[0],p=h[1];return d>=u&&d<=f&&p>=l&&p<=c}};r.exports=a},{}],20:[function(t,r,e){var n=function(i,u){return Fi(Fi({},i),u.reduce(function(l,f){return i[f]&&(l[f]=Fi({},i[f])),l},{}))},a=function(i,u,l){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];i[l]&&(u[l]=n(i[l],f))},o=function(i){return Object.keys(i).length===0},s=function(i){if(!i)return i;if(o(i))return{};var u=Fi({},i);return a(i,u,"font",["color"]),a(i,u,"alignment"),a(i,u,"protection"),i.border&&(a(i,u,"border"),a(i.border,u.border,"top",["color"]),a(i.border,u.border,"left",["color"]),a(i.border,u.border,"bottom",["color"]),a(i.border,u.border,"right",["color"]),a(i.border,u.border,"diagonal",["color"])),i.fill&&(a(i,u,"fill",["fgColor","bgColor","center"]),i.fill.stops&&(u.fill.stops=i.fill.stops.map(function(l){return n(l,["color"])}))),u};e.copyStyle=s},{}],21:[function(t,r,e){(function(n){(function(){var a=t("crypto"),o={hash:function(s){for(var i=a.createHash(s),u=arguments.length,l=new Array(u>1?u-1:0),f=1;f<u;f++)l[f-1]=arguments[f];return i.update(n.concat(l)),i.digest()},convertPasswordToHash:function(s,i,u,l){if(i=i.toLowerCase(),a.getHashes().indexOf(i)<0)throw new Error("Hash algorithm '".concat(i,"' not supported!"));for(var f=n.from(s,"utf16le"),c=this.hash(i,n.from(u,"base64"),f),h=0;h<l;h++){var d=n.alloc(4);d.writeUInt32LE(h,0),c=this.hash(i,c,d)}return c.toString("base64")},randomBytes:function(s){return a.randomBytes(s)}};r.exports=o}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,r,e){var n=t("saxes").SaxesParser,a=t("readable-stream").PassThrough,o=t("./browser-buffer-decode").bufferToString;r.exports=function(){var s,i=(s=Er.mark(function u(l){var f,c,h,d,p,m,v,b,g;return Er.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:l.pipe&&!l[Symbol.asyncIterator]&&(l=l.pipe(new a)),(f=new n).on("error",function(k){c=k}),h=[],f.on("opentag",function(k){return h.push({eventType:"opentag",value:k})}),f.on("text",function(k){return h.push({eventType:"text",value:k})}),f.on("closetag",function(k){return h.push({eventType:"closetag",value:k})}),d=!1,p=!1,y.prev=9,v=Ap(l);case 11:return y.next=13,f1(v.next());case 13:if(!(d=!(b=y.sent).done)){y.next=24;break}if(g=b.value,f.write(o(g)),!c){y.next=18;break}throw c;case 18:return y.next=20,h;case 20:h=[];case 21:d=!1,y.next=11;break;case 24:y.next=30;break;case 26:y.prev=26,y.t0=y.catch(9),p=!0,m=y.t0;case 30:if(y.prev=30,y.prev=31,!d||v.return==null){y.next=35;break}return y.next=35,f1(v.return());case 35:if(y.prev=35,!p){y.next=38;break}throw m;case 38:return y.finish(35);case 39:return y.finish(30);case 40:case"end":return y.stop()}},u,null,[[9,26,30,40],[31,,35,39]])}),function(){return new Ic(s.apply(this,arguments))});return function(u){return i.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,r,e){var n=t("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function s(i,u,l){var f=n.decode(u),c=n.decode(l);return i.replace(a,function(h,d,p,m,v){if(v)return h;var b=o.exec(m);if(b){var g=b[1],y=b[2].toUpperCase(),k=b[3],S=b[4];if(y.length>3||y.length===3&&y>"XFD")return h;var C=n.l2n(y),O=parseInt(S,10);return g||(C+=c.col-f.col),k||(O+=c.row-f.row),(d||"")+(g||"")+n.n2l(C)+(k||"")+O}return h})}r.exports={slideFormula:s}},{"./col-cache":19}],24:[function(t,r,e){(function(n,a){(function(){var o=t("readable-stream"),s=t("./utils"),i=t("./string-buf"),u=function(){function d(p,m){Vt(this,d),this._data=p,this._encoding=m}return $t(d,[{key:"length",get:function(){return this.toBuffer().length}},{key:"copy",value:function(p,m,v,b){return this.toBuffer().copy(p,m,v,b)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}])}(),l=function(){function d(p){Vt(this,d),this._data=p}return $t(d,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(p,m,v,b){return this._data._buf.copy(p,m,v,b)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}}])}(),f=function(){function d(p){Vt(this,d),this._data=p}return $t(d,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(p,m,v,b){this._data.copy(p,m,v,b)}},{key:"toBuffer",value:function(){return this._data}}])}(),c=function(){function d(p){Vt(this,d),this.size=p,this.buffer=a.alloc(p),this.iRead=0,this.iWrite=0}return $t(d,[{key:"toBuffer",value:function(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;var p=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(p,0,this.iRead,this.iWrite),p}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}},{key:"read",value:function(p){var m;return p===0?null:p===void 0||p>=this.length?(m=this.toBuffer(),this.iRead=this.iWrite,m):(m=a.alloc(p),this.buffer.copy(m,0,this.iRead,p),this.iRead+=p,m)}},{key:"write",value:function(p,m,v){var b=Math.min(v,this.size-this.iWrite);return p.copy(this.buffer,this.iWrite,m,m+b),this.iWrite+=b,b}}])}(),h=function(d){d=d||{},this.bufSize=d.bufSize||1048576,this.buffers=[],this.batch=d.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(h,o.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(function(d){return d.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var d=this.buffers[this.buffers.length-1];if(!d.full)return d}var p=new c(this.bufSize);return this.buffers.push(p),p},_pipe:function(d){var p=this;return On(Er.mark(function m(){var v;return Er.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return v=function(g){return new Promise(function(y){g.write(d.toBuffer(),function(){y()})})},b.next=3,Promise.all(p.pipes.map(v));case 3:case"end":return b.stop()}},m)}))()},_writeToBuffers:function(d){for(var p=0,m=d.length;p<m;)p+=this._getWritableBuffer().write(d,p,m-p)},write:function(d,p,m){var v=this;return On(Er.mark(function b(){var g;return Er.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(p instanceof Function&&(m=p,p="utf8"),m=m||s.nop,!(d instanceof i)){y.next=6;break}g=new l(d),y.next=15;break;case 6:if(!(d instanceof a)){y.next=10;break}g=new f(d),y.next=15;break;case 10:if(!(typeof d=="string"||d instanceof String||d instanceof ArrayBuffer)){y.next=14;break}g=new u(d,p),y.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!v.pipes.length){y.next=31;break}if(!v.batch){y.next=21;break}for(v._writeToBuffers(g);!v.corked&&v.buffers.length>1;)v._pipe(v.buffers.shift());y.next=29;break;case 21:if(v.corked){y.next=27;break}return y.next=24,v._pipe(g);case 24:m(),y.next=29;break;case 27:v._writeToBuffers(g),n.nextTick(m);case 29:y.next=34;break;case 31:v.paused||v.emit("data",g.toBuffer()),v._writeToBuffers(g),v.emit("readable");case 34:return y.abrupt("return",!0);case 35:case"end":return y.stop()}},b)}))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(d,p,m){var v=this,b=function(g){g?m(g):(v._flush(),v.pipes.forEach(function(y){y.end()}),v.emit("finish"))};d?this.write(d,p,b):b()},read:function(d){var p;if(d){for(p=[];d&&this.buffers.length&&!this.buffers[0].eod;){var m=this.buffers[0],v=m.read(d);d-=v.length,p.push(v),m.eod&&m.full&&this.buffers.shift()}return a.concat(p)}return p=this.buffers.map(function(b){return b.toBuffer()}).filter(Boolean),this.buffers=[],a.concat(p)},setEncoding:function(d){this.encoding=d},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(d){this.pipes.push(d),!this.paused&&this.buffers.length&&this.end()},unpipe:function(d){this.pipes=this.pipes.filter(function(p){return p!==d})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),r.exports=h}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,r,e){(function(n){(function(){var a=function(){function o(s){Vt(this,o),this._buf=n.alloc(s&&s.size||16384),this._encoding=s&&s.encoding||"utf8",this._inPos=0,this._buffer=void 0}return $t(o,[{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=n.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(s){s=s||0,this._buffer=void 0,this._inPos=s}},{key:"_grow",value:function(s){for(var i=2*this._buf.length;i<s;)i*=2;var u=n.alloc(i);this._buf.copy(u,0),this._buf=u}},{key:"addText",value:function(s){this._buffer=void 0;for(var i=this._inPos+this._buf.write(s,this._inPos,this._encoding);i>=this._buf.length-4;)this._grow(this._inPos+s.length),i=this._inPos+this._buf.write(s,this._inPos,this._encoding);this._inPos=i}},{key:"addStringBuf",value:function(s){s.length&&(this._buffer=void 0,this.length+s.length>this.capacity&&this._grow(this.length+s.length),s._buf.copy(this._buf,this._inPos,0,s.length),this._inPos+=s.length)}}])}();r.exports=a}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,r,e){var n=Object.prototype.toString,a=/["&<>]/,o={each:function(s,i){s&&(Array.isArray(s)?s.forEach(i):Object.keys(s).forEach(function(u){i(s[u],u)}))},some:function(s,i){return!!s&&(Array.isArray(s)?s.some(i):Object.keys(s).some(function(u){return i(s[u],u)}))},every:function(s,i){return!s||(Array.isArray(s)?s.every(i):Object.keys(s).every(function(u){return i(s[u],u)}))},map:function(s,i){return s?Array.isArray(s)?s.map(i):Object.keys(s).map(function(u){return i(s[u],u)}):[]},keyBy:function(s,i){return s.reduce(function(u,l){return u[l[i]]=l,u},{})},isEqual:function(s,i){var u,l=typeof s,f=typeof i,c=Array.isArray(s),h=Array.isArray(i);if(l!==f)return!1;if(typeof s=="object"){if(c||h)return!(!c||!h)&&s.length===i.length&&s.every(function(v,b){var g=i[b];return o.isEqual(v,g)});if(s===null||i===null)return s===i;if(u=Object.keys(s),Object.keys(i).length!==u.length)return!1;var d,p=ph(u);try{for(p.s();!(d=p.n()).done;){var m=d.value;if(!i.hasOwnProperty(m))return!1}}catch(v){p.e(v)}finally{p.f()}return o.every(s,function(v,b){var g=i[b];return o.isEqual(v,g)})}return s===i},escapeHtml:function(s){var i=a.exec(s);if(!i)return s;for(var u="",l="",f=0,c=i.index;c<s.length;c++){switch(s.charAt(c)){case'"':l=""";break;case"&":l="&";break;case"'":l="'";break;case"<":l="<";break;case">":l=">";break;default:continue}f!==c&&(u+=s.substring(f,c)),f=c+1,u+=l}return f!==c?u+s.substring(f,c):u},strcmp:function(s,i){return s<i?-1:s>i?1:0},isUndefined:function(s){return n.call(s)==="[object Undefined]"},isObject:function(s){return n.call(s)==="[object Object]"},deepMerge:function(){var s,i,u,l=arguments[0]||{},f=arguments.length;function c(d,p){s=l[p],u=Array.isArray(d),o.isObject(d)||u?(u?(u=!1,i=s&&Array.isArray(s)?s:[]):i=s&&o.isObject(s)?s:{},l[p]=o.deepMerge(i,d)):o.isUndefined(d)||(l[p]=d)}for(var h=0;h<f;h++)o.each(arguments[h],c);return l}};r.exports=o},{}],27:[function(t,r,e){(function(n,a){(function(){var o=t("fs"),s=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,i={nop:function(){},promiseImmediate:function(u){return new Promise(function(l){n.setImmediate?a(function(){l(u)}):setTimeout(function(){l(u)},1)})},inherits:function(u,l,f,c){u.super_=l,c||(c=f,f=null),f&&Object.keys(f).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(f,d))});var h={constructor:{value:u,enumerable:!1,writable:!1,configurable:!0}};c&&Object.keys(c).forEach(function(d){h[d]=Object.getOwnPropertyDescriptor(c,d)}),u.prototype=Object.create(l.prototype,h)},dateToExcel:function(u,l){return 25569+u.getTime()/864e5-(l?1462:0)},excelToDate:function(u,l){var f=Math.round(24*(u-25569+(l?1462:0))*3600*1e3);return new Date(f)},parsePath:function(u){var l=u.lastIndexOf("/");return{path:u.substring(0,l),name:u.substring(l+1)}},getRelsPath:function(u){var l=i.parsePath(u);return"".concat(l.path,"/_rels/").concat(l.name,".rels")},xmlEncode:function(u){var l=s.exec(u);if(!l)return u;for(var f="",c="",h=0,d=l.index;d<u.length;d++){var p=u.charCodeAt(d);switch(p){case 34:c=""";break;case 38:c="&";break;case 39:c="'";break;case 60:c="<";break;case 62:c=">";break;case 127:c="";break;default:if(p<=31&&(p<=8||p>=11&&p!==13)){c="";break}continue}h!==d&&(f+=u.substring(h,d)),h=d+1,c&&(f+=c)}return h!==d?f+u.substring(h,d):f},xmlDecode:function(u){return u.replace(/&([a-z]*);/g,function(l){switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}})},validInt:function(u){var l=parseInt(u,10);return Number.isNaN(l)?0:l},isDateFmt:function(u){return!!u&&(u=(u=u.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null},fs:{exists:function(u){return new Promise(function(l){o.access(u,o.constants.F_OK,function(f){l(!f)})})}},toIsoDateString:function(u){return u.toIsoString().subsstr(0,10)},parseBoolean:function(u){return u===!0||u==="true"||u===1||u==="1"}};r.exports=i}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,r,e){var n=t("./under-dash"),a=t("./utils"),o="<",s=">",i="</",u="/>";function l(h,d,p){h.push(" ".concat(d,'="').concat(a.xmlEncode(p.toString()),'"'))}function f(h,d){if(d){var p=[];n.each(d,function(m,v){m!==void 0&&l(p,v,m)}),h.push(p.join(""))}}var c=function(){function h(){Vt(this,h),this._xml=[],this._stack=[],this._rollbacks=[]}return $t(h,[{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"openXml",value:function(d){var p=this._xml;p.push("<?xml"),f(p,d),p.push(`?> |
|
|
`)}},{key:"openNode",value:function(d,p){var m=this.tos,v=this._xml;m&&this.open&&v.push(s),this._stack.push(d),v.push(o),v.push(d),f(v,p),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(d,p){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");p!==void 0&&l(this._xml,d,p)}},{key:"addAttributes",value:function(d){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");f(this._xml,d)}},{key:"writeText",value:function(d){var p=this._xml;this.open&&(p.push(s),this.open=!1),this.leaf=!1,p.push(a.xmlEncode(d.toString()))}},{key:"writeXml",value:function(d){this.open&&(this._xml.push(s),this.open=!1),this.leaf=!1,this._xml.push(d)}},{key:"closeNode",value:function(){var d=this._stack.pop(),p=this._xml;this.leaf?p.push(u):(p.push(i),p.push(d),p.push(s)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(d,p,m){this.openNode(d,p),m!==void 0&&this.writeText(m),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var d=this._rollbacks.pop();this._xml.length>d.xml&&this._xml.splice(d.xml,this._xml.length-d.xml),this._stack.length>d.stack&&this._stack.splice(d.stack,this._stack.length-d.stack),this.leaf=d.leaf,this.open=d.open}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])}();c.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},r.exports=c},{"./under-dash":26,"./utils":27}],29:[function(t,r,e){(function(n){(function(){var a=t("events"),o=t("jszip"),s=t("./stream-buf"),i=t("./browser-buffer-encode").stringToBuffer,u=function(l){function f(c){var h;return Vt(this,f),(h=Pe(this,f)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},c),h.zip=new o,h.stream=new s,h}return ge(f,l),$t(f,[{key:"append",value:function(c,h){h.hasOwnProperty("base64")&&h.base64?this.zip.file(h.name,c,{base64:!0}):(n.browser&&typeof c=="string"&&(c=i(c)),this.zip.file(h.name,c))}},{key:"finalize",value:function(){var c=On(Er.mark(function d(){var p;return Er.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,this.zip.generateAsync(this.options);case 2:p=m.sent,this.stream.end(p),this.emit("finish");case 5:case"end":return m.stop()}},d,this)}));function h(){return c.apply(this,arguments)}return h}()},{key:"read",value:function(c){return this.stream.read(c)}},{key:"setEncoding",value:function(c){return this.stream.setEncoding(c)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(c,h){return this.stream.pipe(c,h)}},{key:"unpipe",value:function(c){return this.stream.unpipe(c)}},{key:"unshift",value:function(c){return this.stream.unshift(c)}},{key:"wrap",value:function(c){return this.stream.wrap(c)}}])}(a.EventEmitter);r.exports={ZipWriter:u}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,r,e){r.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,r,e){r.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,r,e){var n=t("../../utils/parse-sax"),a=t("../../utils/xml-stream"),o=function(){function s(){Vt(this,s)}return $t(s,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(i){}},{key:"parseText",value:function(i){}},{key:"parseClose",value:function(i){}},{key:"reconcile",value:function(i,u){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(i){i instanceof s?i.reset():i.xform&&i.xform.reset()})}},{key:"mergeModel",value:function(i){this.model=Object.assign(this.model||{},i)}},{key:"parse",value:function(){var i=On(Er.mark(function l(f){var c,h,d,p,m,v,b,g,y,k,S;return Er.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:c=!1,h=!1,C.prev=2,p=Ap(f);case 4:return C.next=6,p.next();case 6:if(!(c=!(m=C.sent).done)){C.next=37;break}v=m.value,b=ph(v),C.prev=9,b.s();case 11:if((g=b.n()).done){C.next=26;break}if(y=g.value,k=y.eventType,S=y.value,k!=="opentag"){C.next=17;break}this.parseOpen(S),C.next=24;break;case 17:if(k!=="text"){C.next=21;break}this.parseText(S),C.next=24;break;case 21:if(k!=="closetag"){C.next=24;break}if(this.parseClose(S.name)){C.next=24;break}return C.abrupt("return",this.model);case 24:C.next=11;break;case 26:C.next=31;break;case 28:C.prev=28,C.t0=C.catch(9),b.e(C.t0);case 31:return C.prev=31,b.f(),C.finish(31);case 34:c=!1,C.next=4;break;case 37:C.next=43;break;case 39:C.prev=39,C.t1=C.catch(2),h=!0,d=C.t1;case 43:if(C.prev=43,C.prev=44,!c||p.return==null){C.next=48;break}return C.next=48,p.return();case 48:if(C.prev=48,!h){C.next=51;break}throw d;case 51:return C.finish(48);case 52:return C.finish(43);case 53:return C.abrupt("return",this.model);case 54:case"end":return C.stop()}},l,this,[[2,39,43,53],[9,28,31,34],[44,,48,52]])}));function u(l){return i.apply(this,arguments)}return u}()},{key:"parseStream",value:function(){var i=On(Er.mark(function l(f){return Er.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",this.parse(n(f)));case 1:case"end":return c.stop()}},l,this)}));function u(l){return i.apply(this,arguments)}return u}()},{key:"xml",get:function(){return this.toXml(this.model)}},{key:"toXml",value:function(i){var u=new a;return this.render(u,i),u.xml}}],[{key:"toAttribute",value:function(i,u){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i===void 0){if(l)return u}else if(l||i!==u)return i.toString()}},{key:"toStringAttribute",value:function(i,u){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(i,u,l)}},{key:"toStringValue",value:function(i,u){return i===void 0?u:i}},{key:"toBoolAttribute",value:function(i,u){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i===void 0){if(l)return u}else if(l||i!==u)return i?"1":"0"}},{key:"toBoolValue",value:function(i,u){return i===void 0?u:i==="1"}},{key:"toIntAttribute",value:function(i,u){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(i,u,l)}},{key:"toIntValue",value:function(i,u){return i===void 0?u:parseInt(i,10)}},{key:"toFloatAttribute",value:function(i,u){var l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(i,u,l)}},{key:"toFloatValue",value:function(i,u){return i===void 0?u:parseFloat(i)}}])}();r.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,r,e){var n=t("../base-xform"),a=t("../../../utils/col-cache"),o=function(u){function l(){return Vt(this,l),Pe(this,l,arguments)}return ge(l,u),$t(l,[{key:"render",value:function(f,c){f.openNode("definedName",{name:c.name,localSheetId:c.localSheetId}),f.writeText(c.ranges.join(",")),f.closeNode()}},{key:"parseOpen",value:function(f){return f.name==="definedName"&&(this._parsedName=f.attributes.name,this._parsedLocalSheetId=f.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(f){this._parsedText.push(f)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:i(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])}(n);function s(u){try{return a.decodeEx(u),!0}catch{return!1}}function i(u){var l=[],f=!1,c="";return u.split(",").forEach(function(h){if(h){var d=(h.match(/'/g)||[]).length;if(d){var p=d%2==0;!f&&p&&s(h)?l.push(h):f&&!p?(f=!1,s(c+h)&&l.push(c+h),c=""):(f=!0,c+="".concat(h,","))}else f?c+="".concat(h,","):s(h)&&l.push(h)}}),l}r.exports=o},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,r,e){var n=t("../../../utils/utils"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"render",value:function(i,u){i.leafNode("sheet",{sheetId:u.id,name:u.name,state:u.state,"r:id":u.rId})}},{key:"parseOpen",value:function(i){return i.name==="sheet"&&(this.model={name:n.xmlDecode(i.attributes.name),id:parseInt(i.attributes.sheetId,10),state:i.attributes.state,rId:i.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=a},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"render",value:function(s,i){s.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:i.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(s){return s.name==="calcPr"&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],36:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"render",value:function(s,i){s.leafNode("workbookPr",{date1904:i.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(s){return s.name==="workbookPr"&&(this.model={date1904:s.attributes.date1904==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],37:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"render",value:function(s,i){var u={xWindow:i.x||0,yWindow:i.y||0,windowWidth:i.width||12e3,windowHeight:i.height||24e3,firstSheet:i.firstSheet,activeTab:i.activeTab};i.visibility&&i.visibility!=="visible"&&(u.visibility=i.visibility),s.leafNode("workbookView",u)}},{key:"parseOpen",value:function(s){if(s.name==="workbookView"){var i=this.model={},u=function(f,c,h){var d=c!==void 0?i[f]=c:h;d!==void 0&&(i[f]=d)},l=function(f,c,h){var d=c!==void 0?i[f]=parseInt(c,10):h;d!==void 0&&(i[f]=d)};return l("x",s.attributes.xWindow,0),l("y",s.attributes.yWindow,0),l("width",s.attributes.windowWidth,25e3),l("height",s.attributes.windowHeight,1e4),u("visibility",s.attributes.visibility,"visible"),l("activeTab",s.attributes.activeTab,void 0),l("firstSheet",s.attributes.firstSheet,void 0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],38:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),s=t("../base-xform"),i=t("../static-xform"),u=t("../list-xform"),l=t("./defined-name-xform"),f=t("./sheet-xform"),c=t("./workbook-view-xform"),h=t("./workbook-properties-xform"),d=t("./workbook-calc-properties-xform"),p=function(m){function v(){var b;return Vt(this,v),(b=Pe(this,v)).map={fileVersion:v.STATIC_XFORMS.fileVersion,workbookPr:new h,bookViews:new u({tag:"bookViews",count:!1,childXform:new c}),sheets:new u({tag:"sheets",count:!1,childXform:new f}),definedNames:new u({tag:"definedNames",count:!1,childXform:new l}),calcPr:new d},b}return ge(v,m),$t(v,[{key:"prepare",value:function(b){b.sheets=b.worksheets;var g=[],y=0;b.sheets.forEach(function(k){if(k.pageSetup&&k.pageSetup.printArea&&k.pageSetup.printArea.split("&&").forEach(function(j){var U=j.split(":"),z={name:"_xlnm.Print_Area",ranges:["'".concat(k.name,"'!$").concat(U[0],":$").concat(U[1])],localSheetId:y};g.push(z)}),k.pageSetup&&(k.pageSetup.printTitlesRow||k.pageSetup.printTitlesColumn)){var S=[];if(k.pageSetup.printTitlesColumn){var C=k.pageSetup.printTitlesColumn.split(":");S.push("'".concat(k.name,"'!$").concat(C[0],":$").concat(C[1]))}if(k.pageSetup.printTitlesRow){var O=k.pageSetup.printTitlesRow.split(":");S.push("'".concat(k.name,"'!$").concat(O[0],":$").concat(O[1]))}var L={name:"_xlnm.Print_Titles",ranges:S,localSheetId:y};g.push(L)}y++}),g.length&&(b.definedNames=b.definedNames.concat(g)),(b.media||[]).forEach(function(k,S){k.name=k.type+(S+1)})}},{key:"render",value:function(b,g){b.openXml(o.StdDocAttributes),b.openNode("workbook",v.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(b),this.map.workbookPr.render(b,g.properties),this.map.bookViews.render(b,g.views),this.map.sheets.render(b,g.sheets),this.map.definedNames.render(b,g.definedNames),this.map.calcPr.render(b,g.calcProperties),b.closeNode()}},{key:"parseOpen",value:function(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name==="workbook"||(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}},{key:"parseText",value:function(b){this.parser&&this.parser.parseText(b)}},{key:"parseClose",value:function(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b!=="workbook"||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:"reconcile",value:function(b){var g,y=(b.workbookRels||[]).reduce(function(O,L){return O[L.Id]=L,O},{}),k=[],S=0;(b.sheets||[]).forEach(function(O){var L=y[O.rId];L&&(g=b.worksheetHash["xl/".concat(L.Target.replace(/^(\s|\/xl\/)+/,""))])&&(g.name=O.name,g.id=O.id,g.state=O.state,k[S++]=g)});var C=[];n.each(b.definedNames,function(O){if(O.name==="_xlnm.Print_Area"){if(g=k[O.localSheetId]){g.pageSetup||(g.pageSetup={});var L=a.decodeEx(O.ranges[0]);g.pageSetup.printArea=g.pageSetup.printArea?"".concat(g.pageSetup.printArea,"&&").concat(L.dimensions):L.dimensions}}else if(O.name==="_xlnm.Print_Titles"){if(g=k[O.localSheetId]){g.pageSetup||(g.pageSetup={});var j=O.ranges.join(","),U=/\$/g,z=/\$\d+:\$\d+/,Y=j.match(z);if(Y&&Y.length){var A=Y[0];g.pageSetup.printTitlesRow=A.replace(U,"")}var I=/\$[A-Z]+:\$[A-Z]+/,_=j.match(I);if(_&&_.length){var x=_[0];g.pageSetup.printTitlesColumn=x.replace(U,"")}}}else C.push(O)}),b.definedNames=C,b.media.forEach(function(O,L){O.index=L})}}])}(s);p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new i({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},r.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,r,e){var n=t("../strings/rich-text-xform"),a=t("../../../utils/utils"),o=t("../base-xform"),s=r.exports=function(i){this.model=i};a.inherits(s,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render:function(i,u){var l=this;u=u||this.model,i.openNode("comment",{ref:u.ref,authorId:0}),i.openNode("text"),u&&u.note&&u.note.texts&&u.note.texts.forEach(function(f){l.richTextXform.render(i,f)}),i.closeNode(),i.closeNode()},parseOpen:function(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"comment":return this.model=Fi({type:"note",note:{texts:[]}},i.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(i),!0;default:return!1}},parseText:function(i){this.parser&&this.parser.parseText(i)},parseClose:function(i){switch(i){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(i),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../../../utils/utils"),o=t("../base-xform"),s=t("./comment-xform"),i=r.exports=function(){this.map={comment:new s}};a.inherits(i,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(u,l){var f=this;l=l||this.model,u.openXml(n.StdDocAttributes),u.openNode("comments",i.COMMENTS_ATTRIBUTES),u.openNode("authors"),u.leafNode("author",null,"Author"),u.closeNode(),u.openNode("commentList"),l.comments.forEach(function(c){f.map.comment.render(u,c)}),u.closeNode(),u.closeNode()},parseOpen:function(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(u),!0;default:return!1}},parseText:function(u){this.parser&&this.parser.parseText(u)},parseClose:function(u){switch(u){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(u),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o))._model=s,i}return ge(o,a),$t(o,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(s,i,u){(i===u[2]||this.tag==="x:SizeWithCells"&&i===u[1])&&s.leafNode(this.tag)}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],42:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o))._model=s,i}return ge(o,a),$t(o,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(s,i){s.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(s){this.text=s}},{key:"parseClose",value:function(){return!1}}])}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],43:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"x:Anchor"}},{key:"getAnchorRect",value:function(s){var i=Math.floor(s.left),u=Math.floor(68*(s.left-i)),l=Math.floor(s.top),f=Math.floor(18*(s.top-l)),c=Math.floor(s.right),h=Math.floor(68*(s.right-c)),d=Math.floor(s.bottom);return[i,u,l,f,c,h,d,Math.floor(18*(s.bottom-d))]}},{key:"getDefaultRect",value:function(s){var i=s.col,u=6,l=Math.max(s.row-2,0);return[i,u,l,14,i+2,2,l+4,16]}},{key:"render",value:function(s,i){var u=i.anchor?this.getAnchorRect(i.anchor):this.getDefaultRect(i.refAddress);s.leafNode("x:Anchor",null,u.join(", "))}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(s){this.text=s}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],44:[function(t,r,e){var n=t("../base-xform"),a=t("./vml-anchor-xform"),o=t("./style/vml-protection-xform"),s=t("./style/vml-position-xform"),i=["twoCells","oneCells","absolute"],u=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={"x:Anchor":new a,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new s({tag:"x:SizeWithCells"}),"x:MoveWithCells":new s({tag:"x:MoveWithCells"})},c}return ge(f,l),$t(f,[{key:"tag",get:function(){return"x:ClientData"}},{key:"render",value:function(c,h){var d=h.note,p=d.protection,m=d.editAs;c.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(c,m,i),this.map["x:SizeWithCells"].render(c,m,i),this.map["x:Anchor"].render(c,h),this.map["x:Locked"].render(c,p.locked),c.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(c,p.lockText),c.leafNode("x:Row",null,h.refAddress.row-1),c.leafNode("x:Column",null,h.refAddress.col-1),c.closeNode()}},{key:"parseOpen",value:function(c){return c.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)),!0}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var c=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),h=Object.keys(c).length;this.model.editAs=i[h],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}])}(n);r.exports=u},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./vml-shape-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"v:shape":new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"xml"}},{key:"render",value:function(l,f){var c=this;l.openXml(n.StdDocAttributes),l.openNode(this.tag,u.DRAWING_ATTRIBUTES),l.openNode("o:shapelayout",{"v:ext":"edit"}),l.leafNode("o:idmap",{"v:ext":"edit",data:1}),l.closeNode(),l.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),l.leafNode("v:stroke",{joinstyle:"miter"}),l.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),l.closeNode(),f.comments.forEach(function(h,d){c.map["v:shape"].render(l,h,d)}),l.closeNode()}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):l!==this.tag}},{key:"reconcile",value:function(l,f){var c=this;l.anchors.forEach(function(h){h.br?c.map["xdr:twoCellAnchor"].reconcile(h,f):c.map["xdr:oneCellAnchor"].reconcile(h,f)})}}])}(a);s.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},r.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,r,e){var n=t("../base-xform"),a=t("./vml-textbox-xform"),o=t("./vml-client-data-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"v:textbox":new a,"x:ClientData":new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"v:shape"}},{key:"render",value:function(l,f,c){l.openNode("v:shape",u.V_SHAPE_ATTRIBUTES(f,c)),l.leafNode("v:fill",{color2:"infoBackground [80]"}),l.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),l.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(l,f),this.map["x:ClientData"].render(l,f),l.closeNode()}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?(this.reset(),this.model={margins:{insetmode:l.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}])}(n);s.V_SHAPE_ATTRIBUTES=function(i,u){return{id:"_x0000_s".concat(1025+u),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":i.note.margins&&i.note.margins.insetmode}},r.exports=s},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"v:textbox"}},{key:"conversionUnit",value:function(s,i,u){return"".concat(parseFloat(s)*i.toFixed(2)).concat(u)}},{key:"reverseConversionUnit",value:function(s){var i=this;return(s||"").split(",").map(function(u){return Number(parseFloat(i.conversionUnit(parseFloat(u),.1,"")).toFixed(2))})}},{key:"render",value:function(s,i){var u=this,l={style:"mso-direction-alt:auto"};if(i&&i.note){var f=(i.note&&i.note.margins).inset;Array.isArray(f)&&(f=f.map(function(c){return u.conversionUnit(c,10,"mm")}).join(",")),f&&(l.inset=f)}s.openNode("v:textbox",l),s.leafNode("div",{style:"text-align:left"}),s.closeNode()}},{key:"parseOpen",value:function(s){return s.name!==this.tag||(this.model={inset:this.reverseConversionUnit(s.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],48:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"createNewModel",value:function(s){return{}}},{key:"parseOpen",value:function(s){return this.parser=this.parser||this.map[s.name],this.parser?(this.parser.parseOpen(s),!0):s.name===this.tag&&(this.model=this.createNewModel(s),!0)}},{key:"parseText",value:function(s){this.parser&&this.parser.parseText(s)}},{key:"onParserClose",value:function(s,i){this.model[s]=i.model}},{key:"parseClose",value:function(s){return this.parser?(this.parser.parseClose(s)||(this.onParserClose(s,this.parser),this.parser=void 0),!0):s!==this.tag}}])}(t("./base-xform"));r.exports=n},{"./base-xform":32}],49:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"render",value:function(s,i){s.openNode("HeadingPairs"),s.openNode("vt:vector",{size:2,baseType:"variant"}),s.openNode("vt:variant"),s.leafNode("vt:lpstr",void 0,"Worksheets"),s.closeNode(),s.openNode("vt:variant"),s.leafNode("vt:i4",void 0,i.length),s.closeNode(),s.closeNode(),s.closeNode()}},{key:"parseOpen",value:function(s){return s.name==="HeadingPairs"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(s){return s!=="HeadingPairs"}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],50:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"render",value:function(s,i){s.openNode("TitlesOfParts"),s.openNode("vt:vector",{size:i.length,baseType:"lpstr"}),i.forEach(function(u){s.leafNode("vt:lpstr",void 0,u.name)}),s.closeNode(),s.closeNode()}},{key:"parseOpen",value:function(s){return s.name==="TitlesOfParts"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(s){return s!=="TitlesOfParts"}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],51:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/string-xform"),s=t("./app-heading-pairs-xform"),i=t("./app-titles-of-parts-xform"),u=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new s,TitleOfParts:new i},c}return ge(f,l),$t(f,[{key:"render",value:function(c,h){c.openXml(n.StdDocAttributes),c.openNode("Properties",f.PROPERTY_ATTRIBUTES),c.leafNode("Application",void 0,"Microsoft Excel"),c.leafNode("DocSecurity",void 0,"0"),c.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(c,h.worksheets),this.map.TitleOfParts.render(c,h.worksheets),this.map.Company.render(c,h.company||""),this.map.Manager.render(c,h.manager),c.leafNode("LinksUpToDate",void 0,"false"),c.leafNode("SharedDoc",void 0,"false"),c.leafNode("HyperlinksChanged",void 0,"false"),c.leafNode("AppVersion",void 0,"16.0300"),c.closeNode()}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):c.name==="Properties"||(this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0))}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!=="Properties"||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}])}(a);u.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},u.DateAttrs={"xsi:type":"dcterms:W3CDTF"},u.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},r.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"render",value:function(i,u){i.openXml(n.StdDocAttributes),i.openNode("Types",s.PROPERTY_ATTRIBUTES);var l={};(u.media||[]).forEach(function(f){if(f.type==="image"){var c=f.extension;l[c]||(l[c]=!0,i.leafNode("Default",{Extension:c,ContentType:"image/".concat(c)}))}}),i.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),i.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),i.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),u.worksheets.forEach(function(f){var c="/xl/worksheets/sheet".concat(f.id,".xml");i.leafNode("Override",{PartName:c,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),i.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),i.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),u.sharedStrings&&u.sharedStrings.count&&i.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),u.tables&&u.tables.forEach(function(f){i.leafNode("Override",{PartName:"/xl/tables/".concat(f.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),u.drawings&&u.drawings.forEach(function(f){i.leafNode("Override",{PartName:"/xl/drawings/".concat(f.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),u.commentRefs&&(i.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),u.commentRefs.forEach(function(f){var c=f.commentName;i.leafNode("Override",{PartName:"/xl/".concat(c,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),i.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),i.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),i.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../simple/date-xform"),s=t("../simple/string-xform"),i=t("../simple/integer-xform"),u=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={"dc:creator":new s({tag:"dc:creator"}),"dc:title":new s({tag:"dc:title"}),"dc:subject":new s({tag:"dc:subject"}),"dc:description":new s({tag:"dc:description"}),"dc:identifier":new s({tag:"dc:identifier"}),"dc:language":new s({tag:"dc:language"}),"cp:keywords":new s({tag:"cp:keywords"}),"cp:category":new s({tag:"cp:category"}),"cp:lastModifiedBy":new s({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:f.DateFormat}),"cp:revision":new i({tag:"cp:revision"}),"cp:version":new s({tag:"cp:version"}),"cp:contentStatus":new s({tag:"cp:contentStatus"}),"cp:contentType":new s({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:f.DateAttrs,format:f.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:f.DateAttrs,format:f.DateFormat})},c}return ge(f,l),$t(f,[{key:"render",value:function(c,h){c.openXml(n.StdDocAttributes),c.openNode("cp:coreProperties",f.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(c,h.creator),this.map["dc:title"].render(c,h.title),this.map["dc:subject"].render(c,h.subject),this.map["dc:description"].render(c,h.description),this.map["dc:identifier"].render(c,h.identifier),this.map["dc:language"].render(c,h.language),this.map["cp:keywords"].render(c,h.keywords),this.map["cp:category"].render(c,h.category),this.map["cp:lastModifiedBy"].render(c,h.lastModifiedBy),this.map["cp:lastPrinted"].render(c,h.lastPrinted),this.map["cp:revision"].render(c,h.revision),this.map["cp:version"].render(c,h.version),this.map["cp:contentStatus"].render(c,h.contentStatus),this.map["cp:contentType"].render(c,h.contentType),this.map["dcterms:created"].render(c,h.created),this.map["dcterms:modified"].render(c,h.modified),c.closeNode()}},{key:"parseOpen",value:function(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[c.name],this.parser)return this.parser.parseOpen(c),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(c)))}}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){if(this.parser)return this.parser.parseClose(c)||(this.parser=void 0),!0;switch(c){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(c))}}}])}(a);u.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},u.DateAttrs={"xsi:type":"dcterms:W3CDTF"},u.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},r.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"render",value:function(s,i){s.leafNode("Relationship",i)}},{key:"parseOpen",value:function(s){return s.name==="Relationship"&&(this.model=s.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],55:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./relationship-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={Relationship:new o},l}return ge(u,i),$t(u,[{key:"render",value:function(l,f){var c=this;f=f||this._values,l.openXml(n.StdDocAttributes),l.openNode("Relationships",u.RELATIONSHIPS_ATTRIBUTES),f.forEach(function(h){c.map.Relationship.render(l,h)}),l.closeNode()}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;if(l.name==="Relationships")return this.model=[],!0;if(this.parser=this.map[l.name],this.parser)return this.parser.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(l)))}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){if(this.parser)return this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(l==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(l))}}])}(a);s.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},r.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"parseOpen",value:function(s){return this.parser?(this.parser.parseOpen(s),!0):(s.name===this.tag?(this.reset(),this.model={range:{editAs:s.attributes.editAs||"oneCell"}}):(this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)),!0)}},{key:"parseText",value:function(s){this.parser&&this.parser.parseText(s)}},{key:"reconcilePicture",value:function(s,i){if(s&&s.rId){var u=i.rels[s.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(u){var l=u[1],f=i.mediaIndex[l];return i.media[f]}}}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],57:[function(t,r,e){var n=t("../base-xform"),a=t("./blip-xform"),o=function(s){function i(){var u;return Vt(this,i),(u=Pe(this,i)).map={"a:blip":new a},u}return ge(i,s),$t(i,[{key:"tag",get:function(){return"xdr:blipFill"}},{key:"render",value:function(u,l){u.openNode(this.tag),this.map["a:blip"].render(u,l),u.openNode("a:stretch"),u.leafNode("a:fillRect"),u.closeNode(),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model=this.map["a:blip"].model,!1)}}])}(n);r.exports=o},{"../base-xform":32,"./blip-xform":58}],58:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"a:blip"}},{key:"render",value:function(s,i){s.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":i.rId,cstate:"print"})}},{key:"parseOpen",value:function(s){return s.name!==this.tag||(this.model={rId:s.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],59:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"xdr:cNvPicPr"}},{key:"render",value:function(s){s.openNode(this.tag),s.leafNode("a:picLocks",{noChangeAspect:"1"}),s.closeNode()}},{key:"parseOpen",value:function(s){return s.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],60:[function(t,r,e){var n=t("../base-xform"),a=t("./hlink-click-xform"),o=t("./ext-lst-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"a:hlinkClick":new a,"a:extLst":new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"xdr:cNvPr"}},{key:"render",value:function(l,f){l.openNode(this.tag,{id:f.index,name:"Picture ".concat(f.index)}),this.map["a:hlinkClick"].render(l,f),this.map["a:extLst"].render(l,f),l.closeNode()}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}])}(n);r.exports=s},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,r,e){var n=t("../base-xform"),a=t("../simple/integer-xform"),o=function(s){function i(u){var l;return Vt(this,i),(l=Pe(this,i)).tag=u.tag,l.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})},l}return ge(i,s),$t(i,[{key:"render",value:function(u,l){u.openNode(this.tag),this.map["xdr:col"].render(u,l.nativeCol),this.map["xdr:colOff"].render(u,l.nativeColOff),this.map["xdr:row"].render(u,l.nativeRow),this.map["xdr:rowOff"].render(u,l.nativeRowOff),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}])}(n);r.exports=o},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,r,e){var n=t("../../../utils/col-cache"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),s=t("./two-cell-anchor-xform"),i=t("./one-cell-anchor-xform");function u(f){return(typeof f.range=="string"?n.decode(f.range):f.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}var l=function(f){function c(){var h;return Vt(this,c),(h=Pe(this,c)).map={"xdr:twoCellAnchor":new s,"xdr:oneCellAnchor":new i},h}return ge(c,f),$t(c,[{key:"prepare",value:function(h){var d=this;h.anchors.forEach(function(p,m){p.anchorType=u(p),d.map[p.anchorType].prepare(p,{index:m})})}},{key:"tag",get:function(){return"xdr:wsDr"}},{key:"render",value:function(h,d){var p=this;h.openXml(a.StdDocAttributes),h.openNode(this.tag,c.DRAWING_ATTRIBUTES),d.anchors.forEach(function(m){p.map[m.anchorType].render(h,m)}),h.closeNode()}},{key:"parseOpen",value:function(h){return this.parser?(this.parser.parseOpen(h),!0):(h.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)),!0)}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){return this.parser?(this.parser.parseClose(h)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):h!==this.tag}},{key:"reconcile",value:function(h,d){var p=this;h.anchors.forEach(function(m){m.br?p.map["xdr:twoCellAnchor"].reconcile(m,d):p.map["xdr:oneCellAnchor"].reconcile(m,d)})}}])}(o);l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},r.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"a:extLst"}},{key:"render",value:function(s){s.openNode(this.tag),s.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),s.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),s.closeNode(),s.closeNode()}},{key:"parseOpen",value:function(s){return s.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],64:[function(t,r,e){var n=t("../base-xform"),a=9525,o=function(s){function i(u){var l;return Vt(this,i),(l=Pe(this,i)).tag=u.tag,l.map={},l}return ge(i,s),$t(i,[{key:"render",value:function(u,l){u.openNode(this.tag);var f=Math.floor(l.width*a),c=Math.floor(l.height*a);u.addAttribute("cx",f),u.addAttribute("cy",c),u.closeNode()}},{key:"parseOpen",value:function(u){return u.name===this.tag&&(this.model={width:parseInt(u.attributes.cx||"0",10)/a,height:parseInt(u.attributes.cy||"0",10)/a},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n);r.exports=o},{"../base-xform":32}],65:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"a:hlinkClick"}},{key:"render",value:function(s,i){i.hyperlinks&&i.hyperlinks.rId&&s.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":i.hyperlinks.rId,tooltip:i.hyperlinks.tooltip})}},{key:"parseOpen",value:function(s){return s.name!==this.tag||(this.model={hyperlinks:{rId:s.attributes["r:id"],tooltip:s.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],66:[function(t,r,e){var n=t("../base-xform"),a=t("./c-nv-pr-xform"),o=t("./c-nv-pic-pr-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"xdr:nvPicPr"}},{key:"render",value:function(l,f){l.openNode(this.tag),this.map["xdr:cNvPr"].render(l,f),this.map["xdr:cNvPicPr"].render(l,f),l.closeNode()}},{key:"parseOpen",value:function(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}])}(n);r.exports=s},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,r,e){var n=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),s=t("./ext-xform"),i=t("./pic-xform"),u=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new s({tag:"xdr:ext"}),"xdr:pic":new i,"xdr:clientData":new a({tag:"xdr:clientData"})},c}return ge(f,l),$t(f,[{key:"tag",get:function(){return"xdr:oneCellAnchor"}},{key:"prepare",value:function(c,h){this.map["xdr:pic"].prepare(c.picture,h)}},{key:"render",value:function(c,h){c.openNode(this.tag,{editAs:h.range.editAs||"oneCell"}),this.map["xdr:from"].render(c,h.range.tl),this.map["xdr:ext"].render(c,h.range.ext),this.map["xdr:pic"].render(c,h.picture),this.map["xdr:clientData"].render(c,{}),c.closeNode()}},{key:"parseClose",value:function(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(c,h){c.medium=this.reconcilePicture(c.picture,h)}}])}(n);r.exports=u},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,r,e){var n=t("../base-xform"),a=t("../static-xform"),o=t("./blip-fill-xform"),s=t("./nv-pic-pr-xform"),i=t("./sp-pr"),u=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={"xdr:nvPicPr":new s,"xdr:blipFill":new o,"xdr:spPr":new a(i)},c}return ge(f,l),$t(f,[{key:"tag",get:function(){return"xdr:pic"}},{key:"prepare",value:function(c,h){c.index=h.index+1}},{key:"render",value:function(c,h){c.openNode(this.tag),this.map["xdr:nvPicPr"].render(c,h),this.map["xdr:blipFill"].render(c,h),this.map["xdr:spPr"].render(c,h),c.closeNode()}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):(c.name===this.tag?this.reset():(this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(c){return this.parser?(this.parser.parseClose(c)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):c!==this.tag}}])}(n);r.exports=u},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,r,e){r.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,r,e){var n=t("./base-cell-anchor-xform"),a=t("../static-xform"),o=t("./cell-position-xform"),s=t("./pic-xform"),i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new s,"xdr:clientData":new a({tag:"xdr:clientData"})},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"xdr:twoCellAnchor"}},{key:"prepare",value:function(f,c){this.map["xdr:pic"].prepare(f.picture,c)}},{key:"render",value:function(f,c){f.openNode(this.tag,{editAs:c.range.editAs||"oneCell"}),this.map["xdr:from"].render(f,c.range.tl),this.map["xdr:to"].render(f,c.range.br),this.map["xdr:pic"].render(f,c.picture),this.map["xdr:clientData"].render(f,{}),f.closeNode()}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(f,c){f.medium=this.reconcilePicture(f.picture,c)}}])}(n);r.exports=i},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).tag=s.tag,i.always=!!s.always,i.count=s.count,i.empty=s.empty,i.$count=s.$count||"count",i.$=s.$,i.childXform=s.childXform,i.maxItems=s.maxItems,i}return ge(o,a),$t(o,[{key:"prepare",value:function(s,i){var u=this.childXform;s&&s.forEach(function(l,f){i.index=f,u.prepare(l,i)})}},{key:"render",value:function(s,i){if(this.always||i&&i.length){s.openNode(this.tag,this.$),this.count&&s.addAttribute(this.$count,i&&i.length||0);var u=this.childXform;(i||[]).forEach(function(l,f){u.render(s,l,f)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}},{key:"parseOpen",value:function(s){return this.parser?(this.parser.parseOpen(s),!0):s.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(s)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(s){this.parser&&this.parser.parseText(s)}},{key:"parseClose",value:function(s){if(this.parser){if(!this.parser.parseClose(s)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(s,i){if(s){var u=this.childXform;s.forEach(function(l){u.reconcile(l,i)})}}}])}(t("./base-xform"));r.exports=n},{"./base-xform":32}],72:[function(t,r,e){var n=t("../../../utils/col-cache"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"tag",get:function(){return"autoFilter"}},{key:"render",value:function(i,u){if(u)if(typeof u=="string")i.leafNode("autoFilter",{ref:u});else{var l=function(h){return typeof h=="string"?h:n.getAddress(h.row,h.column).address},f=l(u.from),c=l(u.to);f&&c&&i.leafNode("autoFilter",{ref:"".concat(f,":").concat(c)})}}},{key:"parseOpen",value:function(i){i.name==="autoFilter"&&(this.model=i.attributes.ref)}}])}(t("../base-xform"));r.exports=a},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,r,e){var n=t("../../../utils/utils"),a=t("../base-xform"),o=t("../../../doc/range"),s=t("../../../doc/enums"),i=t("../strings/rich-text-xform");function u(c){if(c==null)return s.ValueType.Null;if(c instanceof String||typeof c=="string")return s.ValueType.String;if(typeof c=="number")return s.ValueType.Number;if(typeof c=="boolean")return s.ValueType.Boolean;if(c instanceof Date)return s.ValueType.Date;if(c.text&&c.hyperlink)return s.ValueType.Hyperlink;if(c.formula)return s.ValueType.Formula;if(c.error)return s.ValueType.Error;throw new Error("I could not understand type of value")}function l(c){return c.type===s.ValueType.Formula?u(c.result):c.type}var f=function(c){function h(){var d;return Vt(this,h),(d=Pe(this,h)).richTextXForm=new i,d}return ge(h,c),$t(h,[{key:"tag",get:function(){return"c"}},{key:"prepare",value:function(d,p){var m=p.styles.addStyleModel(d.style||{},l(d));switch(m&&(d.styleId=m),d.comment&&p.comments.push(Fi(Fi({},d.comment),{},{ref:d.address})),d.type){case s.ValueType.String:case s.ValueType.RichText:p.sharedStrings&&(d.ssId=p.sharedStrings.add(d.value));break;case s.ValueType.Date:p.date1904&&(d.date1904=!0);break;case s.ValueType.Hyperlink:p.sharedStrings&&d.text!==void 0&&d.text!==null&&(d.ssId=p.sharedStrings.add(d.text)),p.hyperlinks.push({address:d.address,target:d.hyperlink,tooltip:d.tooltip});break;case s.ValueType.Merge:p.merges.add(d);break;case s.ValueType.Formula:if(p.date1904&&(d.date1904=!0),d.shareType==="shared"&&(d.si=p.siFormulae++),d.formula)p.formulae[d.address]=d;else if(d.sharedFormula){var v=p.formulae[d.sharedFormula];if(!v)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(d.address));v.si===void 0?(v.shareType="shared",v.si=p.siFormulae++,v.range=new o(v.address,d.address)):v.range&&v.range.expandToAddress(d.address),d.si=v.si}}}},{key:"renderFormula",value:function(d,p){var m=null;switch(p.shareType){case"shared":m={t:"shared",ref:p.ref||p.range.range,si:p.si};break;case"array":m={t:"array",ref:p.ref};break;default:p.si!==void 0&&(m={t:"shared",si:p.si})}switch(u(p.result)){case s.ValueType.Null:d.leafNode("f",m,p.formula);break;case s.ValueType.String:d.addAttribute("t","str"),d.leafNode("f",m,p.formula),d.leafNode("v",null,p.result);break;case s.ValueType.Number:d.leafNode("f",m,p.formula),d.leafNode("v",null,p.result);break;case s.ValueType.Boolean:d.addAttribute("t","b"),d.leafNode("f",m,p.formula),d.leafNode("v",null,p.result?1:0);break;case s.ValueType.Error:d.addAttribute("t","e"),d.leafNode("f",m,p.formula),d.leafNode("v",null,p.result.error);break;case s.ValueType.Date:d.leafNode("f",m,p.formula),d.leafNode("v",null,n.dateToExcel(p.result,p.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(d,p){var m=this;if(p.type!==s.ValueType.Null||p.styleId){switch(d.openNode("c"),d.addAttribute("r",p.address),p.styleId&&d.addAttribute("s",p.styleId),p.type){case s.ValueType.Null:break;case s.ValueType.Number:d.leafNode("v",null,p.value);break;case s.ValueType.Boolean:d.addAttribute("t","b"),d.leafNode("v",null,p.value?"1":"0");break;case s.ValueType.Error:d.addAttribute("t","e"),d.leafNode("v",null,p.value.error);break;case s.ValueType.String:case s.ValueType.RichText:p.ssId!==void 0?(d.addAttribute("t","s"),d.leafNode("v",null,p.ssId)):p.value&&p.value.richText?(d.addAttribute("t","inlineStr"),d.openNode("is"),p.value.richText.forEach(function(v){m.richTextXForm.render(d,v)}),d.closeNode("is")):(d.addAttribute("t","str"),d.leafNode("v",null,p.value));break;case s.ValueType.Date:d.leafNode("v",null,n.dateToExcel(p.value,p.date1904));break;case s.ValueType.Hyperlink:p.ssId!==void 0?(d.addAttribute("t","s"),d.leafNode("v",null,p.ssId)):(d.addAttribute("t","str"),d.leafNode("v",null,p.text));break;case s.ValueType.Formula:this.renderFormula(d,p);case s.ValueType.Merge:}d.closeNode()}}},{key:"parseOpen",value:function(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"c":return this.model={address:d.attributes.r},this.t=d.attributes.t,d.attributes.s&&(this.model.styleId=parseInt(d.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=d.attributes.si,this.model.shareType=d.attributes.t,this.model.ref=d.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(d),!0;default:return!1}}},{key:"parseText",value:function(d){if(this.parser)this.parser.parseText(d);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+d:d;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+d:d:this.model.value=this.model.value?this.model.value+d:d}}},{key:"parseClose",value:function(d){switch(d){case"c":var p=this.model;if(p.formula||p.shareType)p.type=s.ValueType.Formula,p.value&&(this.t==="str"?p.result=n.xmlDecode(p.value):this.t==="b"?p.result=parseInt(p.value,10)!==0:this.t==="e"?p.result={error:p.value}:p.result=parseFloat(p.value),p.value=void 0);else if(p.value!==void 0)switch(this.t){case"s":p.type=s.ValueType.String,p.value=parseInt(p.value,10);break;case"str":p.type=s.ValueType.String,p.value=n.xmlDecode(p.value);break;case"inlineStr":p.type=s.ValueType.String;break;case"b":p.type=s.ValueType.Boolean,p.value=parseInt(p.value,10)!==0;break;case"e":p.type=s.ValueType.Error,p.value={error:p.value};break;default:p.type=s.ValueType.Number,p.value=parseFloat(p.value)}else p.styleId?p.type=s.ValueType.Null:p.type=s.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(d),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(d),!0)}}},{key:"reconcile",value:function(d,p){var m=d.styleId&&p.styles&&p.styles.getStyleModel(d.styleId);switch(m&&(d.style=m),d.styleId!==void 0&&(d.styleId=void 0),d.type){case s.ValueType.String:typeof d.value=="number"&&p.sharedStrings&&(d.value=p.sharedStrings.getString(d.value)),d.value.richText&&(d.type=s.ValueType.RichText);break;case s.ValueType.Number:m&&n.isDateFmt(m.numFmt)&&(d.type=s.ValueType.Date,d.value=n.excelToDate(d.value,p.date1904));break;case s.ValueType.Formula:d.result!==void 0&&m&&n.isDateFmt(m.numFmt)&&(d.result=n.excelToDate(d.result,p.date1904)),d.shareType==="shared"&&(d.ref?p.formulae[d.si]=d.address:(d.sharedFormula=p.formulae[d.si],delete d.shareType),delete d.si)}var v=p.hyperlinkMap[d.address];v&&(d.type===s.ValueType.Formula?(d.text=d.result,d.result=void 0):(d.text=d.value,d.value=void 0),d.type=s.ValueType.Hyperlink,d.hyperlink=v);var b=p.commentsMap&&p.commentsMap[d.address];b&&(d.comment=b)}}])}(a);r.exports=f},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,r,e){var n=t("../../base-xform"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"tag",get:function(){return"x14:cfIcon"}},{key:"render",value:function(i,u){i.leafNode(this.tag,{iconSet:u.iconSet,iconId:u.iconId})}},{key:"parseOpen",value:function(i){var u=i.attributes;this.model={iconSet:u.iconSet,iconId:n.toIntValue(u.iconId)}}},{key:"parseClose",value:function(i){return i!==this.tag}}])}(n);r.exports=a},{"../../base-xform":32}],75:[function(t,r,e){var n=t("uuid").v4,a=t("../../base-xform"),o=t("../../composite-xform"),s=t("./databar-ext-xform"),i=t("./icon-set-ext-xform"),u={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},l=function(f){function c(){var h;return Vt(this,c),(h=Pe(this,c)).map={"x14:dataBar":h.databarXform=new s,"x14:iconSet":h.iconSetXform=new i},h}return ge(c,f),$t(c,[{key:"tag",get:function(){return"x14:cfRule"}},{key:"prepare",value:function(h){c.isExt(h)&&(h.x14Id="{".concat(n(),"}").toUpperCase())}},{key:"render",value:function(h,d){if(c.isExt(d))switch(d.type){case"dataBar":this.renderDataBar(h,d);break;case"iconSet":this.renderIconSet(h,d)}}},{key:"renderDataBar",value:function(h,d){h.openNode(this.tag,{type:"dataBar",id:d.x14Id}),this.databarXform.render(h,d),h.closeNode()}},{key:"renderIconSet",value:function(h,d){h.openNode(this.tag,{type:"iconSet",priority:d.priority,id:d.x14Id||"{".concat(n(),"}")}),this.iconSetXform.render(h,d),h.closeNode()}},{key:"createNewModel",value:function(h){var d=h.attributes;return{type:d.type,x14Id:d.id,priority:a.toIntValue(d.priority)}}},{key:"onParserClose",value:function(h,d){Object.assign(this.model,d.model)}}],[{key:"isExt",value:function(h){return h.type==="dataBar"?s.isExt(h):!(h.type!=="iconSet"||!h.custom&&!u[h.iconSet])}}])}(o);r.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,r,e){var n=t("../../composite-xform"),a=t("./f-ext-xform"),o=function(s){function i(){var u;return Vt(this,i),(u=Pe(this,i)).map={"xm:f":u.fExtXform=new a},u}return ge(i,s),$t(i,[{key:"tag",get:function(){return"x14:cfvo"}},{key:"render",value:function(u,l){u.openNode(this.tag,{type:l.type}),l.value!==void 0&&this.fExtXform.render(u,l.value),u.closeNode()}},{key:"createNewModel",value:function(u){return{type:u.attributes.type}}},{key:"onParserClose",value:function(u,l){u==="xm:f"&&(this.model.value=l.model?parseFloat(l.model):0)}}])}(n);r.exports=o},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,r,e){var n=t("../../composite-xform"),a=t("./sqref-ext-xform"),o=t("./cf-rule-ext-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"xm:sqref":l.sqRef=new a,"x14:cfRule":l.cfRule=new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"x14:conditionalFormatting"}},{key:"prepare",value:function(l,f){var c=this;l.rules.forEach(function(h){c.cfRule.prepare(h,f)})}},{key:"render",value:function(l,f){var c=this;f.rules.some(o.isExt)&&(l.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),f.rules.filter(o.isExt).forEach(function(h){return c.cfRule.render(l,h)}),this.sqRef.render(l,f.ref),l.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(l,f){switch(l){case"xm:sqref":this.model.ref=f.model;break;case"x14:cfRule":this.model.rules.push(f.model)}}}])}(n);r.exports=s},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,r,e){var n=t("../../composite-xform"),a=t("./cf-rule-ext-xform"),o=t("./conditional-formatting-ext-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"x14:conditionalFormatting":l.cfXform=new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"x14:conditionalFormattings"}},{key:"hasContent",value:function(l){return l.hasExtContent===void 0&&(l.hasExtContent=l.some(function(f){return f.rules.some(a.isExt)})),l.hasExtContent}},{key:"prepare",value:function(l,f){var c=this;l.forEach(function(h){c.cfXform.prepare(h,f)})}},{key:"render",value:function(l,f){var c=this;this.hasContent(f)&&(l.openNode(this.tag),f.forEach(function(h){return c.cfXform.render(l,h)}),l.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(l,f){this.model.push(f.model)}}])}(n);r.exports=s},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../style/color-xform"),s=t("./cfvo-ext-xform"),i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={"x14:cfvo":f.cfvoXform=new s,"x14:borderColor":f.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":f.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":f.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":f.axisColorXform=new o("x14:axisColor")},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"x14:dataBar"}},{key:"render",value:function(f,c){var h=this;f.openNode(this.tag,{minLength:n.toIntAttribute(c.minLength,0,!0),maxLength:n.toIntAttribute(c.maxLength,100,!0),border:n.toBoolAttribute(c.border,!1),gradient:n.toBoolAttribute(c.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(c.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(c.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(c.axisPosition,"auto"),direction:n.toAttribute(c.direction,"leftToRight")}),c.cfvo.forEach(function(d){h.cfvoXform.render(f,d)}),this.borderColorXform.render(f,c.borderColor),this.negativeBorderColorXform.render(f,c.negativeBorderColor),this.negativeFillColorXform.render(f,c.negativeFillColor),this.axisColorXform.render(f,c.axisColor),f.closeNode()}},{key:"createNewModel",value:function(f){var c=f.attributes;return{cfvo:[],minLength:n.toIntValue(c.minLength,0),maxLength:n.toIntValue(c.maxLength,100),border:n.toBoolValue(c.border,!1),gradient:n.toBoolValue(c.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(c.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(c.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(c.axisPosition,"auto"),direction:n.toStringValue(c.direction,"leftToRight")}}},{key:"onParserClose",value:function(f,c){var h=Tr(f.split(":"),2)[1];h==="cfvo"?this.model.cfvo.push(c.model):this.model[h]=c.model}}],[{key:"isExt",value:function(f){return!f.gradient}}])}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"xm:f"}},{key:"render",value:function(s,i){s.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(s){this.model+=s}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],81:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-ext-xform"),s=t("./cf-icon-ext-xform"),i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={"x14:cfvo":f.cfvoXform=new o,"x14:cfIcon":f.cfIconXform=new s},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"x14:iconSet"}},{key:"render",value:function(f,c){var h=this;f.openNode(this.tag,{iconSet:n.toStringAttribute(c.iconSet),reverse:n.toBoolAttribute(c.reverse,!1),showValue:n.toBoolAttribute(c.showValue,!0),custom:n.toBoolAttribute(c.icons,!1)}),c.cfvo.forEach(function(d){h.cfvoXform.render(f,d)}),c.icons&&c.icons.forEach(function(d,p){d.iconId=p,h.cfIconXform.render(f,d)}),f.closeNode()}},{key:"createNewModel",value:function(f){var c=f.attributes;return{cfvo:[],iconSet:n.toStringValue(c.iconSet,"3TrafficLights"),reverse:n.toBoolValue(c.reverse,!1),showValue:n.toBoolValue(c.showValue,!0)}}},{key:"onParserClose",value:function(f,c){var h=Tr(f.split(":"),2)[1];switch(h){case"cfvo":this.model.cfvo.push(c.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(c.model);break;default:this.model[h]=c.model}}}])}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"xm:sqref"}},{key:"render",value:function(s,i){s.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(s){this.model+=s}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],83:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("../../../../doc/range"),s=t("./databar-xform"),i=t("./ext-lst-ref-xform"),u=t("./formula-xform"),l=t("./color-scale-xform"),f=t("./icon-set-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},h=function(v){if(v.formulae&&v.formulae[0])return v.formulae[0];var b=new o(v.ref).tl;switch(v.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(v.text,'",').concat(b,")))");case"containsBlanks":return"LEN(TRIM(".concat(b,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(b,"))>0");case"containsErrors":return"ISERROR(".concat(b,")");case"notContainsErrors":return"NOT(ISERROR(".concat(b,"))");default:return}},d=function(v){if(v.formulae&&v.formulae[0])return v.formulae[0];var b=new o(v.ref).tl;switch(v.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(b,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(b,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(b,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(b,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(b,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(b,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(b,",1)=TODAY()-1");case"today":return"FLOOR(".concat(b,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(b,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(b,",1)<=6,FLOOR(").concat(b,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(b,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(b,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(b,")=MONTH(TODAY()),YEAR(").concat(b,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(b,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(b,")=YEAR(EDATE(TODAY(),0+1)))");default:return}},p=function(v){var b=v.type,g=v.operator;switch(b){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:b};default:return{type:b,operator:g}}},m=function(v){function b(){var g;return Vt(this,b),(g=Pe(this,b)).map={dataBar:g.databarXform=new s,extLst:g.extLstRefXform=new i,formula:g.formulaXform=new u,colorScale:g.colorScaleXform=new l,iconSet:g.iconSetXform=new f},g}return ge(b,v),$t(b,[{key:"tag",get:function(){return"cfRule"}},{key:"render",value:function(g,y){switch(y.type){case"expression":this.renderExpression(g,y);break;case"cellIs":this.renderCellIs(g,y);break;case"top10":this.renderTop10(g,y);break;case"aboveAverage":this.renderAboveAverage(g,y);break;case"dataBar":this.renderDataBar(g,y);break;case"colorScale":this.renderColorScale(g,y);break;case"iconSet":this.renderIconSet(g,y);break;case"containsText":this.renderText(g,y);break;case"timePeriod":this.renderTimePeriod(g,y)}}},{key:"renderExpression",value:function(g,y){g.openNode(this.tag,{type:"expression",dxfId:y.dxfId,priority:y.priority}),this.formulaXform.render(g,y.formulae[0]),g.closeNode()}},{key:"renderCellIs",value:function(g,y){var k=this;g.openNode(this.tag,{type:"cellIs",dxfId:y.dxfId,priority:y.priority,operator:y.operator}),y.formulae.forEach(function(S){k.formulaXform.render(g,S)}),g.closeNode()}},{key:"renderTop10",value:function(g,y){g.leafNode(this.tag,{type:"top10",dxfId:y.dxfId,priority:y.priority,percent:n.toBoolAttribute(y.percent,!1),bottom:n.toBoolAttribute(y.bottom,!1),rank:n.toIntValue(y.rank,10,!0)})}},{key:"renderAboveAverage",value:function(g,y){g.leafNode(this.tag,{type:"aboveAverage",dxfId:y.dxfId,priority:y.priority,aboveAverage:n.toBoolAttribute(y.aboveAverage,!0)})}},{key:"renderDataBar",value:function(g,y){g.openNode(this.tag,{type:"dataBar",priority:y.priority}),this.databarXform.render(g,y),this.extLstRefXform.render(g,y),g.closeNode()}},{key:"renderColorScale",value:function(g,y){g.openNode(this.tag,{type:"colorScale",priority:y.priority}),this.colorScaleXform.render(g,y),g.closeNode()}},{key:"renderIconSet",value:function(g,y){b.isPrimitive(y)&&(g.openNode(this.tag,{type:"iconSet",priority:y.priority}),this.iconSetXform.render(g,y),g.closeNode())}},{key:"renderText",value:function(g,y){g.openNode(this.tag,{type:y.operator,dxfId:y.dxfId,priority:y.priority,operator:n.toStringAttribute(y.operator,"containsText")});var k=h(y);k&&this.formulaXform.render(g,k),g.closeNode()}},{key:"renderTimePeriod",value:function(g,y){g.openNode(this.tag,{type:"timePeriod",dxfId:y.dxfId,priority:y.priority,timePeriod:y.timePeriod});var k=d(y);k&&this.formulaXform.render(g,k),g.closeNode()}},{key:"createNewModel",value:function(g){var y=g.attributes;return Fi(Fi({},p(y)),{},{dxfId:n.toIntValue(y.dxfId),priority:n.toIntValue(y.priority),timePeriod:y.timePeriod,percent:n.toBoolValue(y.percent),bottom:n.toBoolValue(y.bottom),rank:n.toIntValue(y.rank),aboveAverage:n.toBoolValue(y.aboveAverage)})}},{key:"onParserClose",value:function(g,y){switch(g){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,y.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(y.model)}}}],[{key:"isPrimitive",value:function(g){return g.type!=="iconSet"||!g.custom&&!c[g.iconSet]}}])}(a);r.exports=m},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,r,e){var n=t("../../base-xform"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"tag",get:function(){return"cfvo"}},{key:"render",value:function(i,u){i.leafNode(this.tag,{type:u.type,val:u.value})}},{key:"parseOpen",value:function(i){this.model={type:i.attributes.type,value:n.toFloatValue(i.attributes.val)}}},{key:"parseClose",value:function(i){return i!==this.tag}}])}(n);r.exports=a},{"../../base-xform":32}],85:[function(t,r,e){var n=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={cfvo:l.cfvoXform=new o,color:l.colorXform=new a},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"colorScale"}},{key:"render",value:function(l,f){var c=this;l.openNode(this.tag),f.cfvo.forEach(function(h){c.cfvoXform.render(l,h)}),f.color.forEach(function(h){c.colorXform.render(l,h)}),l.closeNode()}},{key:"createNewModel",value:function(l){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(l,f){this.model[l].push(f.model)}}])}(n);r.exports=s},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,r,e){var n=t("../../composite-xform"),a=t("./cf-rule-xform"),o=function(s){function i(){var u;return Vt(this,i),(u=Pe(this,i)).map={cfRule:new a},u}return ge(i,s),$t(i,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"render",value:function(u,l){var f=this;l.rules.some(a.isPrimitive)&&(u.openNode(this.tag,{sqref:l.ref}),l.rules.forEach(function(c){a.isPrimitive(c)&&(c.ref=l.ref,f.map.cfRule.render(u,c))}),u.closeNode())}},{key:"createNewModel",value:function(u){return{ref:u.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(u,l){this.model.rules.push(l.model)}}])}(n);r.exports=o},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,r,e){var n=t("../../base-xform"),a=t("./conditional-formatting-xform"),o=function(s){function i(){var u;return Vt(this,i),(u=Pe(this,i)).cfXform=new a,u}return ge(i,s),$t(i,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(u,l){var f=u.reduce(function(c,h){return Math.max.apply(Math,[c].concat(nn(h.rules.map(function(d){return d.priority||0}))))},1);u.forEach(function(c){c.rules.forEach(function(h){h.priority||(h.priority=f++),h.style&&(h.dxfId=l.styles.addDxfStyle(h.style))})})}},{key:"render",value:function(u,l){var f=this;l.forEach(function(c){f.cfXform.render(u,c)})}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):u.name==="conditionalFormatting"&&(this.parser=this.cfXform,this.parser.parseOpen(u),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return!(!this.parser||!this.parser.parseClose(u)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(u,l){u.forEach(function(f){f.rules.forEach(function(c){c.dxfId!==void 0&&(c.style=l.styles.getDxfStyle(c.dxfId),delete c.dxfId)})})}}])}(n);r.exports=o},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,r,e){var n=t("../../composite-xform"),a=t("../../style/color-xform"),o=t("./cfvo-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={cfvo:l.cfvoXform=new o,color:l.colorXform=new a},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"dataBar"}},{key:"render",value:function(l,f){var c=this;l.openNode(this.tag),f.cfvo.forEach(function(h){c.cfvoXform.render(l,h)}),this.colorXform.render(l,f.color),l.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(l,f){switch(l){case"cfvo":this.model.cfvo.push(f.model);break;case"color":this.model.color=f.model}}}])}(n);r.exports=s},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=function(u){function l(){return Vt(this,l),Pe(this,l,arguments)}return ge(l,u),$t(l,[{key:"tag",get:function(){return"x14:id"}},{key:"render",value:function(f,c){f.leafNode(this.tag,null,c)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(f){this.model+=f}},{key:"parseClose",value:function(f){return f!==this.tag}}])}(n),s=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={"x14:id":f.idXform=new o},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"ext"}},{key:"render",value:function(f,c){f.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(f,c.x14Id),f.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(f,c){this.model.x14Id=c.model}}])}(a),i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={ext:new s},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"extLst"}},{key:"render",value:function(f,c){f.openNode(this.tag),this.map.ext.render(f,c),f.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(f,c){Object.assign(this.model,c.model)}}])}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"formula"}},{key:"render",value:function(s,i){s.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(s){this.model+=s}},{key:"parseClose",value:function(s){return s!==this.tag}}])}(t("../../base-xform"));r.exports=n},{"../../base-xform":32}],91:[function(t,r,e){var n=t("../../base-xform"),a=t("../../composite-xform"),o=t("./cfvo-xform"),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={cfvo:l.cfvoXform=new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"iconSet"}},{key:"render",value:function(l,f){var c=this;l.openNode(this.tag,{iconSet:n.toStringAttribute(f.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(f.reverse,!1),showValue:n.toBoolAttribute(f.showValue,!0)}),f.cfvo.forEach(function(h){c.cfvoXform.render(l,h)}),l.closeNode()}},{key:"createNewModel",value:function(l){var f=l.attributes;return{iconSet:n.toStringValue(f.iconSet,"3TrafficLights"),reverse:n.toBoolValue(f.reverse),showValue:n.toBoolValue(f.showValue),cfvo:[]}}},{key:"onParserClose",value:function(l,f){this.model[l].push(f.model)}}])}(a);r.exports=s},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,r,e){var n=t("../../../utils/utils"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"tag",get:function(){return"col"}},{key:"prepare",value:function(i,u){var l=u.styles.addStyleModel(i.style||{});l&&(i.styleId=l)}},{key:"render",value:function(i,u){i.openNode("col"),i.addAttribute("min",u.min),i.addAttribute("max",u.max),u.width&&i.addAttribute("width",u.width),u.styleId&&i.addAttribute("style",u.styleId),u.hidden&&i.addAttribute("hidden","1"),u.bestFit&&i.addAttribute("bestFit","1"),u.outlineLevel&&i.addAttribute("outlineLevel",u.outlineLevel),u.collapsed&&i.addAttribute("collapsed","1"),i.addAttribute("customWidth","1"),i.closeNode()}},{key:"parseOpen",value:function(i){if(i.name==="col"){var u=this.model={min:parseInt(i.attributes.min||"0",10),max:parseInt(i.attributes.max||"0",10),width:i.attributes.width===void 0?void 0:parseFloat(i.attributes.width||"0")};return i.attributes.style&&(u.styleId=parseInt(i.attributes.style,10)),n.parseBoolean(i.attributes.hidden)&&(u.hidden=!0),n.parseBoolean(i.attributes.bestFit)&&(u.bestFit=!0),i.attributes.outlineLevel&&(u.outlineLevel=parseInt(i.attributes.outlineLevel,10)),n.parseBoolean(i.attributes.collapsed)&&(u.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(i,u){i.styleId&&(i.style=u.styles.getStyleModel(i.styleId))}}])}(t("../base-xform"));r.exports=a},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../utils/utils"),o=t("../../../utils/col-cache"),s=t("../base-xform"),i=t("../../../doc/range");function u(h,d,p,m){var v=d[p];v!==void 0?h[p]=v:m!==void 0&&(h[p]=m)}function l(h,d,p,m){var v=d[p];v!==void 0&&(h[p]=a.parseBoolean(v))}function f(h){var d=n.map(h,function(v,b){return{address:b,dataValidation:v,marked:!1}}).sort(function(v,b){return n.strcmp(v.address,b.address)}),p=n.keyBy(d,"address"),m=function(v,b,g){for(var y=0;y<b;y++){var k=o.encodeAddress(v.row+y,g);if(!h[k]||!n.isEqual(h[v.address],h[k]))return!1}return!0};return d.map(function(v){if(!v.marked){var b=o.decodeEx(v.address);if(b.dimensions)return p[b.dimensions].marked=!0,Fi(Fi({},v.dataValidation),{},{sqref:v.address});for(var g=1,y=o.encodeAddress(b.row+g,b.col);h[y]&&n.isEqual(v.dataValidation,h[y]);)g++,y=o.encodeAddress(b.row+g,b.col);for(var k=1;m(b,g,b.col+k);)k++;for(var S=0;S<g;S++)for(var C=0;C<k;C++)y=o.encodeAddress(b.row+S,b.col+C),p[y].marked=!0;if(g>1||k>1){var O=b.row+(g-1),L=b.col+(k-1);return Fi(Fi({},v.dataValidation),{},{sqref:"".concat(v.address,":").concat(o.encodeAddress(O,L))})}return Fi(Fi({},v.dataValidation),{},{sqref:v.address})}return null}).filter(Boolean)}var c=function(h){function d(){return Vt(this,d),Pe(this,d,arguments)}return ge(d,h),$t(d,[{key:"tag",get:function(){return"dataValidations"}},{key:"render",value:function(p,m){var v=f(m);v.length&&(p.openNode("dataValidations",{count:v.length}),v.forEach(function(b){p.openNode("dataValidation"),b.type!=="any"&&(p.addAttribute("type",b.type),b.operator&&b.type!=="list"&&b.operator!=="between"&&p.addAttribute("operator",b.operator),b.allowBlank&&p.addAttribute("allowBlank","1")),b.showInputMessage&&p.addAttribute("showInputMessage","1"),b.promptTitle&&p.addAttribute("promptTitle",b.promptTitle),b.prompt&&p.addAttribute("prompt",b.prompt),b.showErrorMessage&&p.addAttribute("showErrorMessage","1"),b.errorStyle&&p.addAttribute("errorStyle",b.errorStyle),b.errorTitle&&p.addAttribute("errorTitle",b.errorTitle),b.error&&p.addAttribute("error",b.error),p.addAttribute("sqref",b.sqref),(b.formulae||[]).forEach(function(g,y){p.openNode("formula".concat(y+1)),b.type==="date"?p.writeText(a.dateToExcel(new Date(g))):p.writeText(g),p.closeNode()}),p.closeNode()}),p.closeNode())}},{key:"parseOpen",value:function(p){switch(p.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=p.attributes.sqref;var m={type:p.attributes.type||"any",formulae:[]};switch(p.attributes.type&&l(m,p.attributes,"allowBlank"),l(m,p.attributes,"showInputMessage"),l(m,p.attributes,"showErrorMessage"),m.type){case"any":case"list":case"custom":break;default:u(m,p.attributes,"operator","between")}return u(m,p.attributes,"promptTitle"),u(m,p.attributes,"prompt"),u(m,p.attributes,"errorStyle"),u(m,p.attributes,"errorTitle"),u(m,p.attributes,"error"),this._dataValidation=m,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(p){this._formula&&this._formula.push(p)}},{key:"parseClose",value:function(p){var m=this;switch(p){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(function(b){b.includes(":")?new i(b).forEachAddress(function(g){m.model[g]=m._dataValidation}):m.model[b]=m._dataValidation}),!0;case"formula1":case"formula2":var v=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":v=parseInt(v,10);break;case"decimal":v=parseFloat(v);break;case"date":v=a.excelToDate(parseFloat(v))}return this._dataValidation.formulae.push(v),this._formula=void 0,!0;default:return!0}}}])}(s);r.exports=c},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"dimension"}},{key:"render",value:function(s,i){i&&s.leafNode("dimension",{ref:i})}},{key:"parseOpen",value:function(s){return s.name==="dimension"&&(this.model=s.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],95:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"drawing"}},{key:"render",value:function(s,i){i&&s.leafNode(this.tag,{"r:id":i.rId})}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={rId:s.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],96:[function(t,r,e){var n=t("../composite-xform"),a=t("./cf-ext/conditional-formattings-ext-xform"),o=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={"x14:conditionalFormattings":l.conditionalFormattings=new a},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"ext"}},{key:"hasContent",value:function(l){return this.conditionalFormattings.hasContent(l.conditionalFormattings)}},{key:"prepare",value:function(l,f){this.conditionalFormattings.prepare(l.conditionalFormattings,f)}},{key:"render",value:function(l,f){l.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(l,f.conditionalFormattings),l.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(l,f){this.model[l]=f.model}}])}(n),s=function(i){function u(){var l;return Vt(this,u),(l=Pe(this,u)).map={ext:l.ext=new o},l}return ge(u,i),$t(u,[{key:"tag",get:function(){return"extLst"}},{key:"prepare",value:function(l,f){this.ext.prepare(l,f)}},{key:"hasContent",value:function(l){return this.ext.hasContent(l)}},{key:"render",value:function(l,f){this.hasContent(f)&&(l.openNode("extLst"),this.ext.render(l,f),l.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(l,f){Object.assign(this.model,f.model)}}])}(n);r.exports=s},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"headerFooter"}},{key:"render",value:function(s,i){if(i){s.addRollback();var u=!1;s.openNode("headerFooter"),i.differentFirst&&(s.addAttribute("differentFirst","1"),u=!0),i.differentOddEven&&(s.addAttribute("differentOddEven","1"),u=!0),i.oddHeader&&typeof i.oddHeader=="string"&&(s.leafNode("oddHeader",null,i.oddHeader),u=!0),i.oddFooter&&typeof i.oddFooter=="string"&&(s.leafNode("oddFooter",null,i.oddFooter),u=!0),i.evenHeader&&typeof i.evenHeader=="string"&&(s.leafNode("evenHeader",null,i.evenHeader),u=!0),i.evenFooter&&typeof i.evenFooter=="string"&&(s.leafNode("evenFooter",null,i.evenFooter),u=!0),i.firstHeader&&typeof i.firstHeader=="string"&&(s.leafNode("firstHeader",null,i.firstHeader),u=!0),i.firstFooter&&typeof i.firstFooter=="string"&&(s.leafNode("firstFooter",null,i.firstFooter),u=!0),u?(s.closeNode(),s.commit()):s.rollback()}}},{key:"parseOpen",value:function(s){switch(s.name){case"headerFooter":return this.model={},s.attributes.differentFirst&&(this.model.differentFirst=parseInt(s.attributes.differentFirst,0)===1),s.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(s.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(s){switch(this.currentNode){case"oddHeader":this.model.oddHeader=s;break;case"oddFooter":this.model.oddFooter=s;break;case"evenHeader":this.model.evenHeader=s;break;case"evenFooter":this.model.evenFooter=s;break;case"firstHeader":this.model.firstHeader=s;break;case"firstFooter":this.model.firstFooter=s}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],98:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"hyperlink"}},{key:"render",value:function(s,i){this.isInternalLink(i)?s.leafNode("hyperlink",{ref:i.address,"r:id":i.rId,tooltip:i.tooltip,location:i.target}):s.leafNode("hyperlink",{ref:i.address,"r:id":i.rId,tooltip:i.tooltip})}},{key:"parseOpen",value:function(s){return s.name==="hyperlink"&&(this.model={address:s.attributes.ref,rId:s.attributes["r:id"],tooltip:s.attributes.tooltip},s.attributes.location&&(this.model.target=s.attributes.location),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"isInternalLink",value:function(s){return s.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(s.target)}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],99:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"mergeCell"}},{key:"render",value:function(s,i){s.leafNode("mergeCell",{ref:i})}},{key:"parseOpen",value:function(s){return s.name==="mergeCell"&&(this.model=s.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],100:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../doc/range"),o=t("../../../utils/col-cache"),s=t("../../../doc/enums"),i=function(){function u(){Vt(this,u),this.merges={}}return $t(u,[{key:"add",value:function(l){if(this.merges[l.master])this.merges[l.master].expandToAddress(l.address);else{var f="".concat(l.master,":").concat(l.address);this.merges[l.master]=new a(f)}}},{key:"mergeCells",get:function(){return n.map(this.merges,function(l){return l.range})}},{key:"reconcile",value:function(l,f){n.each(l,function(c){for(var h=o.decode(c),d=h.top;d<=h.bottom;d++)for(var p=f[d-1],m=h.left;m<=h.right;m++){var v=p.cells[m-1];v?v.type===s.ValueType.Merge&&(v.master=h.tl):p.cells[m]={type:s.ValueType.Null,address:o.encodeAddress(d,m)}}})}},{key:"getMasterAddress",value:function(l){var f=this.hash[l];return f&&f.tl}}])}();r.exports=i},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,r,e){var n=t("../base-xform"),a=function(s){return s!==void 0},o=function(s){function i(){return Vt(this,i),Pe(this,i,arguments)}return ge(i,s),$t(i,[{key:"tag",get:function(){return"outlinePr"}},{key:"render",value:function(u,l){return!(!l||!a(l.summaryBelow)&&!a(l.summaryRight)||(u.leafNode(this.tag,{summaryBelow:a(l.summaryBelow)?Number(l.summaryBelow):void 0,summaryRight:a(l.summaryRight)?Number(l.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(u){return u.name===this.tag&&(this.model={summaryBelow:a(u.attributes.summaryBelow)?!!Number(u.attributes.summaryBelow):void 0,summaryRight:a(u.attributes.summaryRight)?!!Number(u.attributes.summaryRight):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n);r.exports=o},{"../base-xform":32}],102:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"brk"}},{key:"render",value:function(s,i){s.leafNode("brk",i)}},{key:"parseOpen",value:function(s){return s.name==="brk"&&(this.model=s.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],103:[function(t,r,e){var n=t("../../../utils/under-dash"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"tag",get:function(){return"pageMargins"}},{key:"render",value:function(i,u){if(u){var l={left:u.left,right:u.right,top:u.top,bottom:u.bottom,header:u.header,footer:u.footer};n.some(l,function(f){return f!==void 0})&&i.leafNode(this.tag,l)}}},{key:"parseOpen",value:function(i){return i.name===this.tag&&(this.model={left:parseFloat(i.attributes.left||.7),right:parseFloat(i.attributes.right||.7),top:parseFloat(i.attributes.top||.75),bottom:parseFloat(i.attributes.bottom||.75),header:parseFloat(i.attributes.header||.3),footer:parseFloat(i.attributes.footer||.3)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=a},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"pageSetUpPr"}},{key:"render",value:function(s,i){return!(!i||!i.fitToPage||(s.leafNode(this.tag,{fitToPage:i.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={fitToPage:s.attributes.fitToPage==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],105:[function(t,r,e){var n=t("../../../utils/under-dash");function a(f){return f?"1":void 0}function o(f){if(f==="overThenDown")return f}function s(f){switch(f){case"atEnd":case"asDisplyed":return f;default:return}}function i(f){switch(f){case"dash":case"blank":case"NA":return f;default:return}}function u(f){return f!==void 0?parseInt(f,10):void 0}var l=function(f){function c(){return Vt(this,c),Pe(this,c,arguments)}return ge(c,f),$t(c,[{key:"tag",get:function(){return"pageSetup"}},{key:"render",value:function(h,d){if(d){var p={paperSize:d.paperSize,orientation:d.orientation,horizontalDpi:d.horizontalDpi,verticalDpi:d.verticalDpi,pageOrder:o(d.pageOrder),blackAndWhite:a(d.blackAndWhite),draft:a(d.draft),cellComments:s(d.cellComments),errors:i(d.errors),scale:d.scale,fitToWidth:d.fitToWidth,fitToHeight:d.fitToHeight,firstPageNumber:d.firstPageNumber,useFirstPageNumber:a(d.firstPageNumber),usePrinterDefaults:a(d.usePrinterDefaults),copies:d.copies};n.some(p,function(m){return m!==void 0})&&h.leafNode(this.tag,p)}}},{key:"parseOpen",value:function(h){return h.name===this.tag&&(this.model={paperSize:u(h.attributes.paperSize),orientation:h.attributes.orientation||"portrait",horizontalDpi:parseInt(h.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(h.attributes.verticalDpi||"4294967295",10),pageOrder:h.attributes.pageOrder||"downThenOver",blackAndWhite:h.attributes.blackAndWhite==="1",draft:h.attributes.draft==="1",cellComments:h.attributes.cellComments||"None",errors:h.attributes.errors||"displayed",scale:parseInt(h.attributes.scale||"100",10),fitToWidth:parseInt(h.attributes.fitToWidth||"1",10),fitToHeight:parseInt(h.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(h.attributes.firstPageNumber||"1",10),useFirstPageNumber:h.attributes.useFirstPageNumber==="1",usePrinterDefaults:h.attributes.usePrinterDefaults==="1",copies:parseInt(h.attributes.copies||"1",10)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=l},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"picture"}},{key:"render",value:function(s,i){i&&s.leafNode(this.tag,{"r:id":i.rId})}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={rId:s.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],107:[function(t,r,e){var n=t("../../../utils/under-dash");function a(s){return s?"1":void 0}var o=function(s){function i(){return Vt(this,i),Pe(this,i,arguments)}return ge(i,s),$t(i,[{key:"tag",get:function(){return"printOptions"}},{key:"render",value:function(u,l){if(l){var f={headings:a(l.showRowColHeaders),gridLines:a(l.showGridLines),horizontalCentered:a(l.horizontalCentered),verticalCentered:a(l.verticalCentered)};n.some(f,function(c){return c!==void 0})&&u.leafNode(this.tag,f)}}},{key:"parseOpen",value:function(u){return u.name===this.tag&&(this.model={showRowColHeaders:u.attributes.headings==="1",showGridLines:u.attributes.gridLines==="1",horizontalCentered:u.attributes.horizontalCentered==="1",verticalCentered:u.attributes.verticalCentered==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=o},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,r,e){var n=t("./page-breaks-xform"),a=function(o){function s(){return Vt(this,s),Pe(this,s,[{tag:"rowBreaks",count:!0,childXform:new n}])}return ge(s,o),$t(s,[{key:"render",value:function(i,u){if(u&&u.length){i.openNode(this.tag,this.$),this.count&&(i.addAttribute(this.$count,u.length),i.addAttribute("manualBreakCount",u.length));var l=this.childXform;u.forEach(function(f){l.render(i,f)}),i.closeNode()}else this.empty&&i.leafNode(this.tag)}}])}(t("../list-xform"));r.exports=a},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,r,e){var n=t("../base-xform"),a=t("../../../utils/utils"),o=t("./cell-xform"),s=function(i){function u(l){var f;return Vt(this,u),(f=Pe(this,u)).maxItems=l&&l.maxItems,f.map={c:new o},f}return ge(u,i),$t(u,[{key:"tag",get:function(){return"row"}},{key:"prepare",value:function(l,f){var c=f.styles.addStyleModel(l.style);c&&(l.styleId=c);var h=this.map.c;l.cells.forEach(function(d){h.prepare(d,f)})}},{key:"render",value:function(l,f,c){l.openNode("row"),l.addAttribute("r",f.number),f.height&&(l.addAttribute("ht",f.height),l.addAttribute("customHeight","1")),f.hidden&&l.addAttribute("hidden","1"),f.min>0&&f.max>0&&f.min<=f.max&&l.addAttribute("spans","".concat(f.min,":").concat(f.max)),f.styleId&&(l.addAttribute("s",f.styleId),l.addAttribute("customFormat","1")),l.addAttribute("x14ac:dyDescent","0.25"),f.outlineLevel&&l.addAttribute("outlineLevel",f.outlineLevel),f.collapsed&&l.addAttribute("collapsed","1");var h=this.map.c;f.cells.forEach(function(d){h.render(l,d,c)}),l.closeNode()}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;if(l.name==="row"){this.numRowsSeen+=1;var f=l.attributes.spans?l.attributes.spans.split(":").map(function(h){return parseInt(h,10)}):[void 0,void 0],c=this.model={number:parseInt(l.attributes.r,10),min:f[0],max:f[1],cells:[]};return l.attributes.s&&(c.styleId=parseInt(l.attributes.s,10)),a.parseBoolean(l.attributes.hidden)&&(c.hidden=!0),a.parseBoolean(l.attributes.bestFit)&&(c.bestFit=!0),l.attributes.ht&&(c.height=parseFloat(l.attributes.ht)),l.attributes.outlineLevel&&(c.outlineLevel=parseInt(l.attributes.outlineLevel,10)),a.parseBoolean(l.attributes.collapsed)&&(c.collapsed=!0),!0}return this.parser=this.map[l.name],!!this.parser&&(this.parser.parseOpen(l),!0)}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){if(this.parser){if(!this.parser.parseClose(l)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(l,f){l.style=l.styleId?f.styles.getStyleModel(l.styleId):{},l.styleId!==void 0&&(l.styleId=void 0);var c=this.map.c;l.cells.forEach(function(h){c.reconcile(h,f)})}}])}(n);r.exports=s},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,r,e){var n=t("../../../utils/under-dash"),a=function(o){function s(){return Vt(this,s),Pe(this,s,arguments)}return ge(s,o),$t(s,[{key:"tag",get:function(){return"sheetFormatPr"}},{key:"render",value:function(i,u){if(u){var l={defaultRowHeight:u.defaultRowHeight,outlineLevelRow:u.outlineLevelRow,outlineLevelCol:u.outlineLevelCol,"x14ac:dyDescent":u.dyDescent};u.defaultColWidth&&(l.defaultColWidth=u.defaultColWidth),u.defaultRowHeight&&u.defaultRowHeight===15||(l.customHeight="1"),n.some(l,function(f){return f!==void 0})&&i.leafNode("sheetFormatPr",l)}}},{key:"parseOpen",value:function(i){return i.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(i.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(i.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(i.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(i.attributes.outlineLevelCol||"0",10)},i.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(i.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=a},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,r,e){var n=t("../base-xform"),a=t("../style/color-xform"),o=t("./page-setup-properties-xform"),s=t("./outline-properties-xform"),i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={tabColor:new a("tabColor"),pageSetUpPr:new o,outlinePr:new s},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"sheetPr"}},{key:"render",value:function(f,c){if(c){f.addRollback(),f.openNode("sheetPr");var h=!1;h=this.map.tabColor.render(f,c.tabColor)||h,h=this.map.pageSetUpPr.render(f,c.pageSetup)||h,(h=this.map.outlinePr.render(f,c.outlineProperties)||h)?(f.closeNode(),f.commit()):f.rollback()}}},{key:"parseOpen",value:function(f){return this.parser?(this.parser.parseOpen(f),!0):f.name===this.tag?(this.reset(),!0):!!this.map[f.name]&&(this.parser=this.map[f.name],this.parser.parseOpen(f),!0)}},{key:"parseText",value:function(f){return!!this.parser&&(this.parser.parseText(f),!0)}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}])}(n);r.exports=i},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,r,e){var n=t("../../../utils/under-dash");function a(i,u){return i?u:void 0}function o(i,u){return i===u||void 0}var s=function(i){function u(){return Vt(this,u),Pe(this,u,arguments)}return ge(u,i),$t(u,[{key:"tag",get:function(){return"sheetProtection"}},{key:"render",value:function(l,f){if(f){var c={sheet:a(f.sheet,"1"),selectLockedCells:f.selectLockedCells===!1?"1":void 0,selectUnlockedCells:f.selectUnlockedCells===!1?"1":void 0,formatCells:a(f.formatCells,"0"),formatColumns:a(f.formatColumns,"0"),formatRows:a(f.formatRows,"0"),insertColumns:a(f.insertColumns,"0"),insertRows:a(f.insertRows,"0"),insertHyperlinks:a(f.insertHyperlinks,"0"),deleteColumns:a(f.deleteColumns,"0"),deleteRows:a(f.deleteRows,"0"),sort:a(f.sort,"0"),autoFilter:a(f.autoFilter,"0"),pivotTables:a(f.pivotTables,"0")};f.sheet&&(c.algorithmName=f.algorithmName,c.hashValue=f.hashValue,c.saltValue=f.saltValue,c.spinCount=f.spinCount,c.objects=a(f.objects===!1,"1"),c.scenarios=a(f.scenarios===!1,"1")),n.some(c,function(h){return h!==void 0})&&l.leafNode(this.tag,c)}}},{key:"parseOpen",value:function(l){return l.name===this.tag&&(this.model={sheet:o(l.attributes.sheet,"1"),objects:l.attributes.objects!=="1"&&void 0,scenarios:l.attributes.scenarios!=="1"&&void 0,selectLockedCells:l.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:l.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:o(l.attributes.formatCells,"0"),formatColumns:o(l.attributes.formatColumns,"0"),formatRows:o(l.attributes.formatRows,"0"),insertColumns:o(l.attributes.insertColumns,"0"),insertRows:o(l.attributes.insertRows,"0"),insertHyperlinks:o(l.attributes.insertHyperlinks,"0"),deleteColumns:o(l.attributes.deleteColumns,"0"),deleteRows:o(l.attributes.deleteRows,"0"),sort:o(l.attributes.sort,"0"),autoFilter:o(l.attributes.autoFilter,"0"),pivotTables:o(l.attributes.pivotTables,"0")},l.attributes.algorithmName&&(this.model.algorithmName=l.attributes.algorithmName,this.model.hashValue=l.attributes.hashValue,this.model.saltValue=l.attributes.saltValue,this.model.spinCount=parseInt(l.attributes.spinCount,10)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=s},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,r,e){var n=t("../../../utils/col-cache"),a=t("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"},s=function(i){function u(){return Vt(this,u),Pe(this,u,arguments)}return ge(u,i),$t(u,[{key:"tag",get:function(){return"sheetView"}},{key:"prepare",value:function(l){switch(l.state){case"frozen":case"split":break;default:l.state="normal"}}},{key:"render",value:function(l,f){l.openNode("sheetView",{workbookViewId:f.workbookViewId||0});var c,h,d,p,m=function(v,b,g){g&&l.addAttribute(v,b)};switch(m("rightToLeft","1",f.rightToLeft===!0),m("tabSelected","1",f.tabSelected),m("showRuler","0",f.showRuler===!1),m("showRowColHeaders","0",f.showRowColHeaders===!1),m("showGridLines","0",f.showGridLines===!1),m("zoomScale",f.zoomScale,f.zoomScale),m("zoomScaleNormal",f.zoomScaleNormal,f.zoomScaleNormal),m("view",f.style,f.style),f.state){case"frozen":h=f.xSplit||0,d=f.ySplit||0,c=f.topLeftCell||n.getAddress(d+1,h+1).address,p=(f.xSplit&&f.ySplit?"bottomRight":f.xSplit&&"topRight")||"bottomLeft",l.leafNode("pane",{xSplit:f.xSplit||void 0,ySplit:f.ySplit||void 0,topLeftCell:c,activePane:p,state:"frozen"}),l.leafNode("selection",{pane:p,activeCell:f.activeCell,sqref:f.activeCell});break;case"split":f.activePane==="topLeft"&&(f.activePane=void 0),l.leafNode("pane",{xSplit:f.xSplit||void 0,ySplit:f.ySplit||void 0,topLeftCell:f.topLeftCell,activePane:f.activePane}),l.leafNode("selection",{pane:f.activePane,activeCell:f.activeCell,sqref:f.activeCell});break;case"normal":f.activeCell&&l.leafNode("selection",{activeCell:f.activeCell,sqref:f.activeCell})}l.closeNode()}},{key:"parseOpen",value:function(l){switch(l.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(l.attributes.workbookViewId,10),rightToLeft:l.attributes.rightToLeft==="1",tabSelected:l.attributes.tabSelected==="1",showRuler:l.attributes.showRuler!=="0",showRowColHeaders:l.attributes.showRowColHeaders!=="0",showGridLines:l.attributes.showGridLines!=="0",zoomScale:parseInt(l.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(l.attributes.zoomScaleNormal||"100",10),style:l.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(l.attributes.xSplit||"0",10),ySplit:parseInt(l.attributes.ySplit||"0",10),topLeftCell:l.attributes.topLeftCell,activePane:l.attributes.activePane||"topLeft",state:l.attributes.state},!0;case"selection":var f=l.attributes.pane||"topLeft";return this.selections[f]={pane:f,activeCell:l.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(l){var f,c;return l!=="sheetView"||(this.sheetView&&this.pane?(f=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(f.activePane=this.pane.activePane),(c=this.selections[this.pane.activePane])&&c.activeCell&&(f.activeCell=c.activeCell),this.sheetView.style&&(f.style=this.sheetView.style)):(f=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},(c=this.selections.topLeft)&&c.activeCell&&(f.activeCell=c.activeCell),this.sheetView.style&&(f.style=this.sheetView.style)),!1)}},{key:"reconcile",value:function(){}}])}(a);r.exports=s},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"tablePart"}},{key:"render",value:function(s,i){i&&s.leafNode(this.tag,{"r:id":i.rId})}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={rId:s.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],115:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),s=t("../../rel-type"),i=t("./merges"),u=t("../base-xform"),l=t("../list-xform"),f=t("./row-xform"),c=t("./col-xform"),h=t("./dimension-xform"),d=t("./hyperlink-xform"),p=t("./merge-cell-xform"),m=t("./data-validations-xform"),v=t("./sheet-properties-xform"),b=t("./sheet-format-properties-xform"),g=t("./sheet-view-xform"),y=t("./sheet-protection-xform"),k=t("./page-margins-xform"),S=t("./page-setup-xform"),C=t("./print-options-xform"),O=t("./auto-filter-xform"),L=t("./picture-xform"),j=t("./drawing-xform"),U=t("./table-part-xform"),z=t("./row-breaks-xform"),Y=t("./header-footer-xform"),A=t("./cf/conditional-formattings-xform"),I=t("./ext-lst-xform"),_=function(E,M){Object.keys(M).forEach(function(F){var P=E[F],W=M[F];P===void 0&&W!==void 0&&(E[F]=W)})},x=function(E,M){if(!M||!M.length)return E;if(!E||!E.length)return M;var F={},P={};return E.forEach(function(W){F[W.ref]=W,W.rules.forEach(function(N){var q=N.x14Id;q&&(P[q]=N)})}),M.forEach(function(W){W.rules.forEach(function(N){var q=P[N.x14Id];q?_(q,N):F[W.ref]?F[W.ref].rules.push(N):E.push({ref:W.ref,rules:[N]})})}),E},T=function(E){function M(F){var P;Vt(this,M),P=Pe(this,M);var W=F||{},N=W.maxRows,q=W.maxCols,nt=W.ignoreNodes;return P.ignoreNodes=nt||[],P.map={sheetPr:new v,dimension:new h,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new g}),sheetFormatPr:new b,cols:new l({tag:"cols",count:!1,childXform:new c}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new f({maxItems:q}),maxItems:N}),autoFilter:new O,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new z,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new d}),pageMargins:new k,dataValidations:new m,pageSetup:new S,headerFooter:new Y,printOptions:new C,picture:new L,drawing:new j,sheetProtection:new y,tableParts:new l({tag:"tableParts",count:!0,childXform:new U}),conditionalFormatting:new A,extLst:new I},P}return ge(M,E),$t(M,[{key:"prepare",value:function(F,P){var W=this;P.merges=new i,F.hyperlinks=P.hyperlinks=[],F.comments=P.comments=[],P.formulae={},P.siFormulae=0,this.map.cols.prepare(F.cols,P),this.map.sheetData.prepare(F.rows,P),this.map.conditionalFormatting.prepare(F.conditionalFormattings,P),F.mergeCells=P.merges.mergeCells;var N=F.rels=[];function q(Mt){return"rId".concat(Mt.length+1)}if(F.hyperlinks.forEach(function(Mt){var at=q(N);Mt.rId=at,N.push({Id:at,Type:s.Hyperlink,Target:Mt.target,TargetMode:"External"})}),F.comments.length>0){var nt={Id:q(N),Type:s.Comments,Target:"../comments".concat(F.id,".xml")};N.push(nt);var J={Id:q(N),Type:s.VmlDrawing,Target:"../drawings/vmlDrawing".concat(F.id,".vml")};N.push(J),F.comments.forEach(function(Mt){Mt.refAddress=a.decodeAddress(Mt.ref)}),P.commentRefs.push({commentName:"comments".concat(F.id),vmlDrawing:"vmlDrawing".concat(F.id)})}var St,kt=[];F.media.forEach(function(Mt){if(Mt.type==="background"){var at=q(N);St=P.media[Mt.imageId],N.push({Id:at,Type:s.Image,Target:"../media/".concat(St.name,".").concat(St.extension)}),F.background={rId:at},F.image=P.media[Mt.imageId]}else if(Mt.type==="image"){var K=F.drawing;St=P.media[Mt.imageId],K||(K=F.drawing={rId:q(N),name:"drawing".concat(++P.drawingsCount),anchors:[],rels:[]},P.drawings.push(K),N.push({Id:K.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(K.name,".xml")}));var it=W.preImageId===Mt.imageId?kt[Mt.imageId]:kt[K.rels.length];it||(it=q(K.rels),kt[K.rels.length]=it,K.rels.push({Id:it,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(St.name,".").concat(St.extension)}));var st={picture:{rId:it},range:Mt.range};if(Mt.hyperlinks&&Mt.hyperlinks.hyperlink){var Nt=q(K.rels);kt[K.rels.length]=Nt,st.picture.hyperlinks={tooltip:Mt.hyperlinks.tooltip,rId:Nt},K.rels.push({Id:Nt,Type:s.Hyperlink,Target:Mt.hyperlinks.hyperlink,TargetMode:"External"})}W.preImageId=Mt.imageId,K.anchors.push(st)}}),F.tables.forEach(function(Mt){var at=q(N);Mt.rId=at,N.push({Id:at,Type:s.Table,Target:"../tables/".concat(Mt.target)}),Mt.columns.forEach(function(K){var it=K.style;it&&(K.dxfId=P.styles.addDxfStyle(it))})}),this.map.extLst.prepare(F,P)}},{key:"render",value:function(F,P){F.openXml(o.StdDocAttributes),F.openNode("worksheet",M.WORKSHEET_ATTRIBUTES);var W=P.properties?{defaultRowHeight:P.properties.defaultRowHeight,dyDescent:P.properties.dyDescent,outlineLevelCol:P.properties.outlineLevelCol,outlineLevelRow:P.properties.outlineLevelRow}:void 0;P.properties&&P.properties.defaultColWidth&&(W.defaultColWidth=P.properties.defaultColWidth);var N={outlineProperties:P.properties&&P.properties.outlineProperties,tabColor:P.properties&&P.properties.tabColor,pageSetup:P.pageSetup&&P.pageSetup.fitToPage?{fitToPage:P.pageSetup.fitToPage}:void 0},q=P.pageSetup&&P.pageSetup.margins,nt={showRowColHeaders:P.pageSetup&&P.pageSetup.showRowColHeaders,showGridLines:P.pageSetup&&P.pageSetup.showGridLines,horizontalCentered:P.pageSetup&&P.pageSetup.horizontalCentered,verticalCentered:P.pageSetup&&P.pageSetup.verticalCentered},J=P.sheetProtection;this.map.sheetPr.render(F,N),this.map.dimension.render(F,P.dimensions),this.map.sheetViews.render(F,P.views),this.map.sheetFormatPr.render(F,W),this.map.cols.render(F,P.cols),this.map.sheetData.render(F,P.rows),this.map.sheetProtection.render(F,J),this.map.autoFilter.render(F,P.autoFilter),this.map.mergeCells.render(F,P.mergeCells),this.map.conditionalFormatting.render(F,P.conditionalFormattings),this.map.dataValidations.render(F,P.dataValidations),this.map.hyperlinks.render(F,P.hyperlinks),this.map.printOptions.render(F,nt),this.map.pageMargins.render(F,q),this.map.pageSetup.render(F,P.pageSetup),this.map.headerFooter.render(F,P.headerFooter),this.map.rowBreaks.render(F,P.rowBreaks),this.map.drawing.render(F,P.drawing),this.map.picture.render(F,P.background),this.map.tableParts.render(F,P.tables),this.map.extLst.render(F,P),P.rels&&P.rels.forEach(function(St){St.Type===s.VmlDrawing&&F.leafNode("legacyDrawing",{"r:id":St.Id})}),F.closeNode()}},{key:"parseOpen",value:function(F){return this.parser?(this.parser.parseOpen(F),!0):F.name==="worksheet"?(n.each(this.map,function(P){P.reset()}),!0):(this.map[F.name]&&!this.ignoreNodes.includes(F.name)&&(this.parser=this.map[F.name],this.parser.parseOpen(F)),!0)}},{key:"parseText",value:function(F){this.parser&&this.parser.parseText(F)}},{key:"parseClose",value:function(F){if(this.parser)return this.parser.parseClose(F)||(this.parser=void 0),!0;if(F==="worksheet"){var P=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(P.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(P.outlineProperties=this.map.sheetPr.model.outlineProperties);var W={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},N=Object.assign(W,this.map.pageSetup.model,this.map.printOptions.model),q=x(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:P,views:this.map.sheetViews.model,pageSetup:N,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:q},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}},{key:"reconcile",value:function(F,P){var W=(F.relationships||[]).reduce(function(kt,Mt){if(kt[Mt.Id]=Mt,Mt.Type===s.Comments&&(F.comments=P.comments[Mt.Target].comments),Mt.Type===s.VmlDrawing&&F.comments&&F.comments.length){var at=P.vmlDrawings[Mt.Target].comments;F.comments.forEach(function(K,it){K.note=Object.assign({},K.note,at[it])})}return kt},{});if(P.commentsMap=(F.comments||[]).reduce(function(kt,Mt){return Mt.ref&&(kt[Mt.ref]=Mt),kt},{}),P.hyperlinkMap=(F.hyperlinks||[]).reduce(function(kt,Mt){return Mt.rId&&(kt[Mt.address]=W[Mt.rId].Target),kt},{}),P.formulae={},F.rows=F.rows&&F.rows.filter(Boolean)||[],F.rows.forEach(function(kt){kt.cells=kt.cells&&kt.cells.filter(Boolean)||[]}),this.map.cols.reconcile(F.cols,P),this.map.sheetData.reconcile(F.rows,P),this.map.conditionalFormatting.reconcile(F.conditionalFormattings,P),F.media=[],F.drawing){var N=W[F.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(N){var q=N[1];P.drawings[q].anchors.forEach(function(kt){if(kt.medium){var Mt={type:"image",imageId:kt.medium.index,range:kt.range,hyperlinks:kt.picture.hyperlinks};F.media.push(Mt)}})}}var nt=F.background&&W[F.background.rId];if(nt){var J=nt.Target.split("/media/")[1],St=P.mediaIndex&&P.mediaIndex[J];St!==void 0&&F.media.push({type:"background",imageId:St})}F.tables=(F.tables||[]).map(function(kt){var Mt=W[kt.rId];return P.tables[Mt.Target]}),delete F.relationships,delete F.hyperlinks,delete F.comments}}])}(u);T.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},r.exports=T},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).tag=s.tag,i.attr=s.attr,i}return ge(o,a),$t(o,[{key:"render",value:function(s,i){i&&(s.openNode(this.tag),s.closeNode())}},{key:"parseOpen",value:function(s){s.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],117:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).tag=s.tag,i.attr=s.attr,i.attrs=s.attrs,i._format=s.format||function(u){try{return Number.isNaN(u.getTime())?"":u.toISOString()}catch{return""}},i._parse=s.parse||function(u){return new Date(u)},i}return ge(o,a),$t(o,[{key:"render",value:function(s,i){i&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,this._format(i)):s.writeText(this._format(i)),s.closeNode())}},{key:"parseOpen",value:function(s){s.name===this.tag&&(this.attr?this.model=this._parse(s.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(s){this.attr||this.text.push(s)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],118:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).tag=s.tag,i.attr=s.attr,i.attrs=s.attrs,i.zero=s.zero,i}return ge(o,a),$t(o,[{key:"render",value:function(s,i){(i||this.zero)&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,i):s.writeText(i),s.closeNode())}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.attr?this.model=parseInt(s.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(s){this.attr||this.text.push(s)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],119:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).tag=s.tag,i.attr=s.attr,i.attrs=s.attrs,i}return ge(o,a),$t(o,[{key:"render",value:function(s,i){i!==void 0&&(s.openNode(this.tag),this.attrs&&s.addAttributes(this.attrs),this.attr?s.addAttribute(this.attr,i):s.writeText(i),s.closeNode())}},{key:"parseOpen",value:function(s){s.name===this.tag&&(this.attr?this.model=s.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(s){this.attr||this.text.push(s)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],120:[function(t,r,e){var n=t("./base-xform"),a=t("../../utils/xml-stream");function o(i,u){i.openNode(u.tag,u.$),u.c&&u.c.forEach(function(l){o(i,l)}),u.t&&i.writeText(u.t),i.closeNode()}var s=function(i){function u(l){var f;return Vt(this,u),(f=Pe(this,u))._model=l,f}return ge(u,i),$t(u,[{key:"render",value:function(l){if(!this._xml){var f=new a;o(f,this._model),this._xml=f.xml}l.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(l){return l!==this._model.tag}}])}(n);r.exports=s},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,r,e){var n=t("./text-xform"),a=t("./rich-text-xform"),o=function(s){function i(){var u;return Vt(this,i),(u=Pe(this,i)).map={r:new a,t:new n},u}return ge(i,s),$t(i,[{key:"tag",get:function(){return"rPh"}},{key:"render",value:function(u,l){if(u.openNode(this.tag,{sb:l.sb||0,eb:l.eb||0}),l&&l.hasOwnProperty("richText")&&l.richText){var f=this.map.r;l.richText.forEach(function(c){f.render(u,c)})}else l&&this.map.t.render(u,l.text);u.closeNode()}},{key:"parseOpen",value:function(u){var l=u.name;return this.parser?(this.parser.parseOpen(u),!0):l===this.tag?(this.model={sb:parseInt(u.attributes.sb,10),eb:parseInt(u.attributes.eb,10)},!0):(this.parser=this.map[l],!!this.parser&&(this.parser.parseOpen(u),!0))}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser){if(!this.parser.parseClose(u)){switch(u){case"r":var l=this.model.richText;l||(l=this.model.richText=[]),l.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return u!==this.tag}}])}(t("../base-xform"));r.exports=o},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,r,e){var n=t("./text-xform"),a=t("../style/font-xform"),o=function(s){function i(u){var l;return Vt(this,i),(l=Pe(this,i)).model=u,l}return ge(i,s),$t(i,[{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new n)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new a(i.FONT_OPTIONS))}},{key:"render",value:function(u,l){l=l||this.model,u.openNode("r"),l.font&&this.fontXform.render(u,l.font),this.textXform.render(u,l.text),u.closeNode()}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(u),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(u),!0;default:return!1}}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){switch(u){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(u),!0}}}])}(t("../base-xform"));o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},r.exports=o},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,r,e){var n=t("./text-xform"),a=t("./rich-text-xform"),o=t("./phonetic-text-xform"),s=function(i){function u(l){var f;return Vt(this,u),(f=Pe(this,u)).model=l,f.map={r:new a,t:new n,rPh:new o},f}return ge(u,i),$t(u,[{key:"tag",get:function(){return"si"}},{key:"render",value:function(l,f){var c=this;l.openNode(this.tag),f&&f.hasOwnProperty("richText")&&f.richText?f.richText.length?f.richText.forEach(function(h){c.map.r.render(l,h)}):this.map.t.render(l,""):f!=null&&this.map.t.render(l,f),l.closeNode()}},{key:"parseOpen",value:function(l){var f=l.name;return this.parser?(this.parser.parseOpen(l),!0):f===this.tag?(this.model={},!0):(this.parser=this.map[f],!!this.parser&&(this.parser.parseOpen(l),!0))}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){if(this.parser){if(!this.parser.parseClose(l)){switch(l){case"r":var f=this.model.richText;f||(f=this.model.richText=[]),f.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}return l!==this.tag}}])}(t("../base-xform"));r.exports=s},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("./shared-string-xform"),s=function(i){function u(l){var f;return Vt(this,u),(f=Pe(this,u)).model=l||{values:[],count:0},f.hash=Object.create(null),f.rich=Object.create(null),f}return ge(u,i),$t(u,[{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new o)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}},{key:"getString",value:function(l){return this.model.values[l]}},{key:"add",value:function(l){return l.richText?this.addRichText(l):this.addText(l)}},{key:"addText",value:function(l){var f=this.hash[l];return f===void 0&&(f=this.hash[l]=this.model.values.length,this.model.values.push(l)),this.model.count++,f}},{key:"addRichText",value:function(l){var f=this.sharedStringXform.toXml(l),c=this.rich[f];return c===void 0&&(c=this.rich[f]=this.model.values.length,this.model.values.push(l)),this.model.count++,c}},{key:"render",value:function(l,f){f=f||this._values,l.openXml(n.StdDocAttributes),l.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:f.count,uniqueCount:f.values.length});var c=this.sharedStringXform;f.values.forEach(function(h){c.render(l,h)}),l.closeNode()}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(l),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(l)))}}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){if(this.parser)return this.parser.parseClose(l)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(l==="sst")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(l))}}])}(a);r.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"t"}},{key:"render",value:function(s,i){s.openNode("t"),/^\s|\n|\s$/.test(i)&&s.addAttribute("xml:space","preserve"),s.writeText(i),s.closeNode()}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,function(s,i){return String.fromCharCode(parseInt(i,16))})}},{key:"parseOpen",value:function(s){return s.name==="t"&&(this._text=[],!0)}},{key:"parseText",value:function(s){this._text.push(s)}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],126:[function(t,r,e){var n=t("../../../doc/enums"),a=t("../../../utils/utils"),o=t("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(function(l,f){return l[f]=!0,l},{}),horizontal:function(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(function(l,f){return l[f]=!0,l},{}),vertical:function(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText:function(l){return!!l||void 0},shrinkToFit:function(l){return!!l||void 0},textRotation:function(l){return l==="vertical"||(l=a.validInt(l))>=-90&&l<=90?l:void 0},indent:function(l){return l=a.validInt(l),Math.max(0,l)},readingOrder:function(l){switch(l){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},i={toXml:function(l){if(l=s.textRotation(l)){if(l==="vertical")return 255;var f=Math.round(l);if(f>=0&&f<=90)return f;if(f<0&&f>=-90)return 90-f}},toModel:function(l){var f=a.validInt(l);if(f!==void 0){if(f===255)return"vertical";if(f>=0&&f<=90)return f;if(f>90&&f<=180)return 90-f}}},u=function(l){function f(){return Vt(this,f),Pe(this,f,arguments)}return ge(f,l),$t(f,[{key:"tag",get:function(){return"alignment"}},{key:"render",value:function(c,h){c.addRollback(),c.openNode("alignment");var d=!1;function p(m,v){v&&(c.addAttribute(m,v),d=!0)}p("horizontal",s.horizontal(h.horizontal)),p("vertical",s.vertical(h.vertical)),p("wrapText",!!s.wrapText(h.wrapText)&&"1"),p("shrinkToFit",!!s.shrinkToFit(h.shrinkToFit)&&"1"),p("indent",s.indent(h.indent)),p("textRotation",i.toXml(h.textRotation)),p("readingOrder",s.readingOrder(h.readingOrder)),c.closeNode(),d?c.commit():c.rollback()}},{key:"parseOpen",value:function(c){var h={},d=!1;function p(m,v,b){m&&(h[v]=b,d=!0)}p(c.attributes.horizontal,"horizontal",c.attributes.horizontal),p(c.attributes.vertical,"vertical",c.attributes.vertical==="center"?"middle":c.attributes.vertical),p(c.attributes.wrapText,"wrapText",a.parseBoolean(c.attributes.wrapText)),p(c.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(c.attributes.shrinkToFit)),p(c.attributes.indent,"indent",parseInt(c.attributes.indent,10)),p(c.attributes.textRotation,"textRotation",i.toModel(c.attributes.textRotation)),p(c.attributes.readingOrder,"readingOrder",c.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=d?h:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(o);r.exports=u},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,r,e){var n=t("../base-xform"),a=t("../../../utils/utils"),o=t("./color-xform"),s=function(u){function l(f){var c;return Vt(this,l),(c=Pe(this,l)).name=f,c.map={color:new o},c}return ge(l,u),$t(l,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(f,c,h){var d=c&&c.color||h||this.defaultColor;f.openNode(this.name),c&&c.style&&(f.addAttribute("style",c.style),d&&this.map.color.render(f,d)),f.closeNode()}},{key:"parseOpen",value:function(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.name:var c=f.attributes.style;return this.model=c?{style:c}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(f),!0;default:return!1}}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):(f===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(f){return l.validStyleValues[f]}}])}(n);s.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(function(u,l){return u[l]=!0,u},{});var i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")},f}return ge(l,u),$t(l,[{key:"render",value:function(f,c){var h=c.color;function d(p,m){p&&!p.color&&c.color&&(p=Fi(Fi({},p),{},{color:c.color})),m.render(f,p,h)}f.openNode("border"),c.diagonal&&c.diagonal.style&&(c.diagonal.up&&f.addAttribute("diagonalUp","1"),c.diagonal.down&&f.addAttribute("diagonalDown","1")),d(c.left,this.map.left),d(c.right,this.map.right),d(c.top,this.map.top),d(c.bottom,this.map.bottom),d(c.diagonal,this.map.diagonal),f.closeNode()}},{key:"parseOpen",value:function(f){return this.parser?(this.parser.parseOpen(f),!0):f.name==="border"?(this.reset(),this.diagonalUp=a.parseBoolean(f.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(f.attributes.diagonalDown),!0):(this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0))}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;if(f==="border"){var c=this.model={},h=function(d,p,m){p&&(m&&Object.assign(p,m),c[d]=p)};h("left",this.map.left.model),h("right",this.map.right.model),h("top",this.map.top.model),h("bottom",this.map.bottom.model),h("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}])}(n);r.exports=i},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).name=s||"color",i}return ge(o,a),$t(o,[{key:"tag",get:function(){return this.name}},{key:"render",value:function(s,i){return!!i&&(s.openNode(this.name),i.argb?s.addAttribute("rgb",i.argb):i.theme!==void 0?(s.addAttribute("theme",i.theme),i.tint!==void 0&&s.addAttribute("tint",i.tint)):i.indexed!==void 0?s.addAttribute("indexed",i.indexed):s.addAttribute("auto","1"),s.closeNode(),!0)}},{key:"parseOpen",value:function(s){return s.name===this.name&&(s.attributes.rgb?this.model={argb:s.attributes.rgb}:s.attributes.theme?(this.model={theme:parseInt(s.attributes.theme,10)},s.attributes.tint&&(this.model.tint=parseFloat(s.attributes.tint))):s.attributes.indexed?this.model={indexed:parseInt(s.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],129:[function(t,r,e){var n=t("../base-xform"),a=t("./alignment-xform"),o=t("./border-xform"),s=t("./fill-xform"),i=t("./font-xform"),u=t("./numfmt-xform"),l=t("./protection-xform"),f=function(c){function h(){var d;return Vt(this,h),(d=Pe(this,h)).map={alignment:new a,border:new o,fill:new s,font:new i,numFmt:new u,protection:new l},d}return ge(h,c),$t(h,[{key:"tag",get:function(){return"dxf"}},{key:"render",value:function(d,p){if(d.openNode(this.tag),p.font&&this.map.font.render(d,p.font),p.numFmt&&p.numFmtId){var m={id:p.numFmtId,formatCode:p.numFmt};this.map.numFmt.render(d,m)}p.fill&&this.map.fill.render(d,p.fill),p.alignment&&this.map.alignment.render(d,p.alignment),p.border&&this.map.border.render(d,p.border),p.protection&&this.map.protection.render(d,p.protection),d.closeNode()}},{key:"parseOpen",value:function(d){return this.parser?(this.parser.parseOpen(d),!0):d.name===this.tag?(this.reset(),!0):(this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d),!0)}},{key:"parseText",value:function(d){this.parser&&this.parser.parseText(d)}},{key:"parseClose",value:function(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}])}(n);r.exports=f},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,r,e){var n=t("../base-xform"),a=t("./color-xform"),o=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={color:new a},c}return ge(f,l),$t(f,[{key:"tag",get:function(){return"stop"}},{key:"render",value:function(c,h){c.openNode("stop"),c.addAttribute("position",h.position),this.map.color.render(c,h.color),c.closeNode()}},{key:"parseOpen",value:function(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"stop":return this.model={position:parseFloat(c.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(c),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}])}(n),s=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={fgColor:new a("fgColor"),bgColor:new a("bgColor")},c}return ge(f,l),$t(f,[{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}},{key:"render",value:function(c,h){c.openNode("patternFill"),c.addAttribute("patternType",h.pattern),h.fgColor&&this.map.fgColor.render(c,h.fgColor),h.bgColor&&this.map.bgColor.render(c,h.bgColor),c.closeNode()}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):c.name==="patternFill"?(this.model={type:"pattern",pattern:c.attributes.patternType},!0):(this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0))}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return!!this.parser&&(this.parser.parseClose(c)||(this.parser.model&&(this.model[c]=this.parser.model),this.parser=void 0),!0)}}])}(n),i=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={stop:new o},c}return ge(f,l),$t(f,[{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}},{key:"render",value:function(c,h){switch(c.openNode("gradientFill"),h.gradient){case"angle":c.addAttribute("degree",h.degree);break;case"path":c.addAttribute("type","path"),h.center.left&&(c.addAttribute("left",h.center.left),h.center.right===void 0&&c.addAttribute("right",h.center.left)),h.center.right&&c.addAttribute("right",h.center.right),h.center.top&&(c.addAttribute("top",h.center.top),h.center.bottom===void 0&&c.addAttribute("bottom",h.center.top)),h.center.bottom&&c.addAttribute("bottom",h.center.bottom)}var d=this.map.stop;h.stops.forEach(function(p){d.render(c,p)}),c.closeNode()}},{key:"parseOpen",value:function(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"gradientFill":var h=this.model={stops:[]};return c.attributes.degree?(h.gradient="angle",h.degree=parseInt(c.attributes.degree,10)):c.attributes.type==="path"&&(h.gradient="path",h.center={left:c.attributes.left?parseFloat(c.attributes.left):0,top:c.attributes.top?parseFloat(c.attributes.top):0},c.attributes.right!==c.attributes.left&&(h.center.right=c.attributes.right?parseFloat(c.attributes.right):0),c.attributes.bottom!==c.attributes.top&&(h.center.bottom=c.attributes.bottom?parseFloat(c.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(c),!0;default:return!1}}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}])}(n),u=function(l){function f(){var c;return Vt(this,f),(c=Pe(this,f)).map={patternFill:new s,gradientFill:new i},c}return ge(f,l),$t(f,[{key:"tag",get:function(){return"fill"}},{key:"render",value:function(c,h){switch(c.addRollback(),c.openNode("fill"),h.type){case"pattern":this.map.patternFill.render(c,h);break;case"gradient":this.map.gradientFill.render(c,h);break;default:return void c.rollback()}c.closeNode(),c.commit()}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):c.name==="fill"?(this.model={},!0):(this.parser=this.map[c.name],!!this.parser&&(this.parser.parseOpen(c),!0))}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return!!this.parser&&(this.parser.parseClose(c)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(c){return f.validPatternValues[c]}}])}(n);u.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(function(l,f){return l[f]=!0,l},{}),u.StopXform=o,u.PatternFillXform=s,u.GradientFillXform=i,r.exports=u},{"../base-xform":32,"./color-xform":128}],131:[function(t,r,e){var n=t("./color-xform"),a=t("../simple/boolean-xform"),o=t("../simple/integer-xform"),s=t("../simple/string-xform"),i=t("./underline-xform"),u=t("../../../utils/under-dash"),l=function(f){function c(h){var d;return Vt(this,c),(d=Pe(this,c)).options=h||c.OPTIONS,d.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new i},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new s({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new s({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},d.map[d.options.fontNameTag]={prop:"name",xform:new s({tag:d.options.fontNameTag,attr:"val"})},d}return ge(c,f),$t(c,[{key:"tag",get:function(){return this.options.tagName}},{key:"render",value:function(h,d){var p=this.map;h.openNode(this.options.tagName),u.each(this.map,function(m,v){p[v].xform.render(h,d[m.prop])}),h.closeNode()}},{key:"parseOpen",value:function(h){return this.parser?(this.parser.parseOpen(h),!0):this.map[h.name]?(this.parser=this.map[h.name].xform,this.parser.parseOpen(h)):h.name===this.options.tagName&&(this.model={},!0)}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){if(this.parser&&!this.parser.parseClose(h)){var d=this.map[h];return this.parser.model&&(this.model[d.prop]=this.parser.model),this.parser=void 0,!0}return h!==this.options.tagName}}])}(t("../base-xform"));l.OPTIONS={tagName:"font",fontNameTag:"name"},r.exports=l},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,r,e){var n=t("../../../utils/under-dash"),a=t("../../defaultnumformats"),o=t("../base-xform");function s(){var l={};return n.each(a,function(f,c){f.f&&(l[f.f]=parseInt(c,10))}),l}var i=s(),u=function(l){function f(c,h){var d;return Vt(this,f),(d=Pe(this,f)).id=c,d.formatCode=h,d}return ge(f,l),$t(f,[{key:"tag",get:function(){return"numFmt"}},{key:"render",value:function(c,h){c.leafNode("numFmt",{numFmtId:h.id,formatCode:h.formatCode})}},{key:"parseOpen",value:function(c){return c.name==="numFmt"&&(this.model={id:parseInt(c.attributes.numFmtId,10),formatCode:c.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(o);u.getDefaultFmtId=function(l){return i[l]},u.getDefaultFmtCode=function(l){return a[l]&&a[l].f},r.exports=u},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,r,e){var n=t("../base-xform"),a={boolean:function(s,i){return s===void 0?i:s}},o=function(s){function i(){return Vt(this,i),Pe(this,i,arguments)}return ge(i,s),$t(i,[{key:"tag",get:function(){return"protection"}},{key:"render",value:function(u,l){u.addRollback(),u.openNode("protection");var f=!1;function c(h,d){d!==void 0&&(u.addAttribute(h,d),f=!0)}c("locked",a.boolean(l.locked,!0)?void 0:"0"),c("hidden",a.boolean(l.hidden,!1)?"1":void 0),u.closeNode(),f?u.commit():u.rollback()}},{key:"parseOpen",value:function(u){var l={locked:u.attributes.locked!=="0",hidden:u.attributes.hidden==="1"},f=!l.locked||l.hidden;this.model=f?l:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n);r.exports=o},{"../base-xform":32}],134:[function(t,r,e){var n=t("../base-xform"),a=t("./alignment-xform"),o=t("./protection-xform"),s=function(i){function u(l){var f;return Vt(this,u),(f=Pe(this,u)).xfId=!(!l||!l.xfId),f.map={alignment:new a,protection:new o},f}return ge(u,i),$t(u,[{key:"tag",get:function(){return"xf"}},{key:"render",value:function(l,f){l.openNode("xf",{numFmtId:f.numFmtId||0,fontId:f.fontId||0,fillId:f.fillId||0,borderId:f.borderId||0}),this.xfId&&l.addAttribute("xfId",f.xfId||0),f.numFmtId&&l.addAttribute("applyNumberFormat","1"),f.fontId&&l.addAttribute("applyFont","1"),f.fillId&&l.addAttribute("applyFill","1"),f.borderId&&l.addAttribute("applyBorder","1"),f.alignment&&l.addAttribute("applyAlignment","1"),f.protection&&l.addAttribute("applyProtection","1"),f.alignment&&this.map.alignment.render(l,f.alignment),f.protection&&this.map.protection.render(l,f.protection),l.closeNode()}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"xf":return this.model={numFmtId:parseInt(l.attributes.numFmtId,10),fontId:parseInt(l.attributes.fontId,10),fillId:parseInt(l.attributes.fillId,10),borderId:parseInt(l.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(l.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(l),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(l),!0;default:return!1}}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){return this.parser?(this.parser.parseClose(l)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):l!=="xf"}}])}(n);r.exports=s},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,r,e){var n=t("../../../doc/enums"),a=t("../../../utils/xml-stream"),o=t("../base-xform"),s=t("../static-xform"),i=t("../list-xform"),u=t("./font-xform"),l=t("./fill-xform"),f=t("./border-xform"),c=t("./numfmt-xform"),h=t("./style-xform"),d=t("./dxf-xform"),p=164,m=function(b){function g(y){var k;return Vt(this,g),(k=Pe(this,g)).map={numFmts:new i({tag:"numFmts",count:!0,childXform:new c}),fonts:new i({tag:"fonts",count:!0,childXform:new u,$:{"x14ac:knownFonts":1}}),fills:new i({tag:"fills",count:!0,childXform:new l}),borders:new i({tag:"borders",count:!0,childXform:new f}),cellStyleXfs:new i({tag:"cellStyleXfs",count:!0,childXform:new h}),cellXfs:new i({tag:"cellXfs",count:!0,childXform:new h({xfId:!0})}),dxfs:new i({tag:"dxfs",always:!0,count:!0,childXform:new d}),numFmt:new c,font:new u,fill:new l,border:new f,style:new h({xfId:!0}),cellStyles:g.STATIC_XFORMS.cellStyles,tableStyles:g.STATIC_XFORMS.tableStyles,extLst:g.STATIC_XFORMS.extLst},y&&k.init(),k}return ge(g,b),$t(g,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}},{key:"render",value:function(y,k){k=k||this.model,y.openXml(a.StdDocAttributes),y.openNode("styleSheet",g.STYLESHEET_ATTRIBUTES),this.index?(k.numFmts&&k.numFmts.length&&(y.openNode("numFmts",{count:k.numFmts.length}),k.numFmts.forEach(function(S){y.writeXml(S)}),y.closeNode()),k.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),y.openNode("fonts",{count:k.fonts.length,"x14ac:knownFonts":1}),k.fonts.forEach(function(S){y.writeXml(S)}),y.closeNode(),y.openNode("fills",{count:k.fills.length}),k.fills.forEach(function(S){y.writeXml(S)}),y.closeNode(),y.openNode("borders",{count:k.borders.length}),k.borders.forEach(function(S){y.writeXml(S)}),y.closeNode(),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),y.openNode("cellXfs",{count:k.styles.length}),k.styles.forEach(function(S){y.writeXml(S)}),y.closeNode()):(this.map.numFmts.render(y,k.numFmts),this.map.fonts.render(y,k.fonts),this.map.fills.render(y,k.fills),this.map.borders.render(y,k.borders),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(y,k.styles)),g.STATIC_XFORMS.cellStyles.render(y),this.map.dxfs.render(y,k.dxfs),g.STATIC_XFORMS.tableStyles.render(y),g.STATIC_XFORMS.extLst.render(y),y.closeNode()}},{key:"parseOpen",value:function(y){return this.parser?(this.parser.parseOpen(y),!0):y.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y),!0)}},{key:"parseText",value:function(y){this.parser&&this.parser.parseText(y)}},{key:"parseClose",value:function(y){var k=this;if(this.parser)return this.parser.parseClose(y)||(this.parser=void 0),!0;if(y==="styleSheet"){this.model={};var S=function(O,L){L.model&&L.model.length&&(k.model[O]=L.model)};if(S("numFmts",this.map.numFmts),S("fonts",this.map.fonts),S("fills",this.map.fills),S("borders",this.map.borders),S("styles",this.map.cellXfs),S("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var C=this.index.numFmt;this.model.numFmts.forEach(function(O){C[O.id]=O.formatCode})}return!1}return!0}},{key:"addStyleModel",value:function(y,k){if(!y)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(y))return this.weakMap.get(y);var S={};if(k=k||n.ValueType.Number,y.numFmt)S.numFmtId=this._addNumFmtStr(y.numFmt);else switch(k){case n.ValueType.Number:S.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:S.numFmtId=this._addNumFmtStr("mm-dd-yy")}y.font&&(S.fontId=this._addFont(y.font)),y.border&&(S.borderId=this._addBorder(y.border)),y.fill&&(S.fillId=this._addFill(y.fill)),y.alignment&&(S.alignment=y.alignment),y.protection&&(S.protection=y.protection);var C=this._addStyle(S);return this.weakMap&&this.weakMap.set(y,C),C}},{key:"getStyleModel",value:function(y){var k=this.model.styles[y];if(!k)return null;var S=this.index.model[y];if(S)return S;if(S=this.index.model[y]={},k.numFmtId){var C=this.index.numFmt[k.numFmtId]||c.getDefaultFmtCode(k.numFmtId);C&&(S.numFmt=C)}function O(L,j,U){if(U||U===0){var z=j[U];z&&(S[L]=z)}}return O("font",this.model.fonts,k.fontId),O("border",this.model.borders,k.borderId),O("fill",this.model.fills,k.fillId),k.alignment&&(S.alignment=k.alignment),k.protection&&(S.protection=k.protection),S}},{key:"addDxfStyle",value:function(y){return y.numFmt&&(y.numFmtId=this._addNumFmtStr(y.numFmt)),this.model.dxfs.push(y),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(y){return this.model.dxfs[y]}},{key:"_addStyle",value:function(y){var k=this.map.style.toXml(y),S=this.index.style[k];return S===void 0&&(S=this.index.style[k]=this.model.styles.length,this.model.styles.push(k)),S}},{key:"_addNumFmtStr",value:function(y){var k=c.getDefaultFmtId(y);if(k!==void 0||(k=this.index.numFmt[y])!==void 0)return k;k=this.index.numFmt[y]=p+this.model.numFmts.length;var S=this.map.numFmt.toXml({id:k,formatCode:y});return this.model.numFmts.push(S),k}},{key:"_addFont",value:function(y){var k=this.map.font.toXml(y),S=this.index.font[k];return S===void 0&&(S=this.index.font[k]=this.model.fonts.length,this.model.fonts.push(k)),S}},{key:"_addBorder",value:function(y){var k=this.map.border.toXml(y),S=this.index.border[k];return S===void 0&&(S=this.index.border[k]=this.model.borders.length,this.model.borders.push(k)),S}},{key:"_addFill",value:function(y){var k=this.map.fill.toXml(y),S=this.index.fill[k];return S===void 0&&(S=this.index.fill[k]=this.model.fills.length,this.model.fills.push(k)),S}}])}(o);m.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},m.STATIC_XFORMS={cellStyles:new s({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new s({tag:"dxfs",$:{count:0}}),tableStyles:new s({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new s({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};var v=function(b){function g(){var y;return Vt(this,g),(y=Pe(this,g)).model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]},y}return ge(g,b),$t(g,[{key:"parseStream",value:function(y){return y.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(y,k){return k===n.ValueType.Date?this.dateStyleId:0}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var y={numFmtId:c.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(y)}return this._dateStyleId}},{key:"getStyleModel",value:function(){return{}}}])}(m);m.Mock=v,r.exports=m},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,r,e){var n=function(a){function o(s){var i;return Vt(this,o),(i=Pe(this,o)).model=s,i}return ge(o,a),$t(o,[{key:"tag",get:function(){return"u"}},{key:"render",value:function(s,i){if((i=i||this.model)===!0)s.leafNode("u");else{var u=o.Attributes[i];u&&s.leafNode("u",u)}}},{key:"parseOpen",value:function(s){s.name==="u"&&(this.model=s.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));n.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},r.exports=n},{"../base-xform":32}],137:[function(t,r,e){var n=t("../base-xform"),a=t("./filter-column-xform"),o=function(s){function i(){var u;return Vt(this,i),(u=Pe(this,i)).map={filterColumn:new a},u}return ge(i,s),$t(i,[{key:"tag",get:function(){return"autoFilter"}},{key:"prepare",value:function(u){var l=this;u.columns.forEach(function(f,c){l.map.filterColumn.prepare(f,{index:c})})}},{key:"render",value:function(u,l){var f=this;return u.openNode(this.tag,{ref:l.autoFilterRef}),l.columns.forEach(function(c){f.map.filterColumn.render(u,c)}),u.closeNode(),!0}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;if(u.name===this.tag)return this.model={autoFilterRef:u.attributes.ref,columns:[]},!0;if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(u)))}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser)return this.parser.parseClose(u)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(u===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(u))}}])}(n);r.exports=o},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"customFilter"}},{key:"render",value:function(s,i){s.leafNode(this.tag,{val:i.val,operator:i.operator})}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={val:s.attributes.val,operator:s.attributes.operator},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],139:[function(t,r,e){var n=t("../base-xform"),a=t("../list-xform"),o=t("./custom-filter-xform"),s=t("./filter-xform"),i=function(u){function l(){var f;return Vt(this,l),(f=Pe(this,l)).map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new s})},f}return ge(l,u),$t(l,[{key:"tag",get:function(){return"filterColumn"}},{key:"prepare",value:function(f,c){f.colId=c.index.toString()}},{key:"render",value:function(f,c){return c.customFilters?(f.openNode(this.tag,{colId:c.colId,hiddenButton:c.filterButton?"0":"1"}),this.map.customFilters.render(f,c.customFilters),f.closeNode(),!0):(f.leafNode(this.tag,{colId:c.colId,hiddenButton:c.filterButton?"0":"1"}),!0)}},{key:"parseOpen",value:function(f){if(this.parser)return this.parser.parseOpen(f),!0;var c=f.attributes;if(f.name===this.tag)return this.model={filterButton:c.hiddenButton==="0"},!0;if(this.parser=this.map[f.name],this.parser)return this.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(f)))}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}])}(n);r.exports=i},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"filter"}},{key:"render",value:function(s,i){s.leafNode(this.tag,{val:i.val})}},{key:"parseOpen",value:function(s){return s.name===this.tag&&(this.model={val:s.attributes.val},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],141:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"tableColumn"}},{key:"prepare",value:function(s,i){s.id=i.index+1}},{key:"render",value:function(s,i){return s.leafNode(this.tag,{id:i.id.toString(),name:i.name,totalsRowLabel:i.totalsRowLabel,totalsRowFunction:i.totalsRowFunction,dxfId:i.dxfId}),!0}},{key:"parseOpen",value:function(s){if(s.name===this.tag){var i=s.attributes;return this.model={name:i.name,totalsRowLabel:i.totalsRowLabel,totalsRowFunction:i.totalsRowFunction,dxfId:i.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],142:[function(t,r,e){var n=function(a){function o(){return Vt(this,o),Pe(this,o,arguments)}return ge(o,a),$t(o,[{key:"tag",get:function(){return"tableStyleInfo"}},{key:"render",value:function(s,i){return s.leafNode(this.tag,{name:i.theme?i.theme:void 0,showFirstColumn:i.showFirstColumn?"1":"0",showLastColumn:i.showLastColumn?"1":"0",showRowStripes:i.showRowStripes?"1":"0",showColumnStripes:i.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(s){if(s.name===this.tag){var i=s.attributes;return this.model={theme:i.name?i.name:null,showFirstColumn:i.showFirstColumn==="1",showLastColumn:i.showLastColumn==="1",showRowStripes:i.showRowStripes==="1",showColumnStripes:i.showColumnStripes==="1"},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(t("../base-xform"));r.exports=n},{"../base-xform":32}],143:[function(t,r,e){var n=t("../../../utils/xml-stream"),a=t("../base-xform"),o=t("../list-xform"),s=t("./auto-filter-xform"),i=t("./table-column-xform"),u=t("./table-style-info-xform"),l=function(f){function c(){var h;return Vt(this,c),(h=Pe(this,c)).map={autoFilter:new s,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new i}),tableStyleInfo:new u},h}return ge(c,f),$t(c,[{key:"prepare",value:function(h,d){this.map.autoFilter.prepare(h),this.map.tableColumns.prepare(h.columns,d)}},{key:"tag",get:function(){return"table"}},{key:"render",value:function(h,d){h.openXml(n.StdDocAttributes),h.openNode(this.tag,Fi(Fi({},c.TABLE_ATTRIBUTES),{},{id:d.id,name:d.name,displayName:d.displayName||d.name,ref:d.tableRef,totalsRowCount:d.totalsRow?"1":void 0,totalsRowShown:d.totalsRow?void 0:"1",headerRowCount:d.headerRow?"1":"0"})),this.map.autoFilter.render(h,d),this.map.tableColumns.render(h,d.columns),this.map.tableStyleInfo.render(h,d.style),h.closeNode()}},{key:"parseOpen",value:function(h){if(this.parser)return this.parser.parseOpen(h),!0;var d=h.name,p=h.attributes;return d===this.tag?(this.reset(),this.model={name:p.name,displayName:p.displayName||p.name,tableRef:p.ref,totalsRow:p.totalsRowCount==="1",headerRow:p.headerRowCount==="1"}):(this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)),!0}},{key:"parseText",value:function(h){this.parser&&this.parser.parseText(h)}},{key:"parseClose",value:function(h){var d=this;return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(function(p,m){d.model.columns[m].filterButton=p.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:"reconcile",value:function(h,d){h.columns.forEach(function(p){p.dxfId!==void 0&&(p.style=d.styles.getDxfStyle(p.dxfId))})}}])}(a);l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},r.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,r,e){(function(n,a){(function(){var o=t("fs"),s=t("jszip"),i=t("readable-stream").PassThrough,u=t("../utils/zip-stream"),l=t("../utils/stream-buf"),f=t("../utils/utils"),c=t("../utils/xml-stream"),h=t("../utils/browser-buffer-decode").bufferToString,d=t("./xform/style/styles-xform"),p=t("./xform/core/core-xform"),m=t("./xform/strings/shared-strings-xform"),v=t("./xform/core/relationships-xform"),b=t("./xform/core/content-types-xform"),g=t("./xform/core/app-xform"),y=t("./xform/book/workbook-xform"),k=t("./xform/sheet/worksheet-xform"),S=t("./xform/drawing/drawing-xform"),C=t("./xform/table/table-xform"),O=t("./xform/comment/comments-xform"),L=t("./xform/comment/vml-notes-xform"),j=t("./xml/theme1");function U(Y,A){return new Promise(function(I,_){o.readFile(Y,A,function(x,T){x?_(x):I(T)})})}var z=function(){function Y(A){Vt(this,Y),this.workbook=A}return $t(Y,[{key:"readFile",value:function(){var A=On(Er.mark(function _(x,T){var E,M;return Er.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,f.fs.exists(x);case 2:if(F.sent){F.next=4;break}throw new Error("File not found: ".concat(x));case 4:return E=o.createReadStream(x),F.prev=5,F.next=8,this.read(E,T);case 8:return M=F.sent,E.close(),F.abrupt("return",M);case 13:throw F.prev=13,F.t0=F.catch(5),E.close(),F.t0;case 17:case"end":return F.stop()}},_,this,[[5,13]])}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"parseRels",value:function(A){return new v().parseStream(A)}},{key:"parseWorkbook",value:function(A){return new y().parseStream(A)}},{key:"parseSharedStrings",value:function(A){return new m().parseStream(A)}},{key:"reconcile",value:function(A,I){var _=new y,x=new k(I),T=new S,E=new C;_.reconcile(A);var M={media:A.media,mediaIndex:A.mediaIndex};Object.keys(A.drawings).forEach(function(W){var N=A.drawings[W],q=A.drawingRels[W];q&&(M.rels=q.reduce(function(nt,J){return nt[J.Id]=J,nt},{}),(N.anchors||[]).forEach(function(nt){var J=nt.picture&&nt.picture.hyperlinks;J&&M.rels[J.rId]&&(J.hyperlink=M.rels[J.rId].Target,delete J.rId)}),T.reconcile(N,M))});var F={styles:A.styles};Object.values(A.tables).forEach(function(W){E.reconcile(W,F)});var P={styles:A.styles,sharedStrings:A.sharedStrings,media:A.media,mediaIndex:A.mediaIndex,date1904:A.properties&&A.properties.date1904,drawings:A.drawings,comments:A.comments,tables:A.tables,vmlDrawings:A.vmlDrawings};A.worksheets.forEach(function(W){W.relationships=A.worksheetRels[W.sheetNo],x.reconcile(W,P)}),delete A.worksheetHash,delete A.worksheetRels,delete A.globalRels,delete A.sharedStrings,delete A.workbookRels,delete A.sheetDefs,delete A.styles,delete A.mediaIndex,delete A.drawings,delete A.drawingRels,delete A.vmlDrawings}},{key:"_processWorksheetEntry",value:function(){var A=On(Er.mark(function _(x,T,E,M,F){var P,W;return Er.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return P=new k(M),N.next=3,P.parseStream(x);case 3:(W=N.sent).sheetNo=E,T.worksheetHash[F]=W,T.worksheets.push(W);case 7:case"end":return N.stop()}},_)}));function I(_,x,T,E,M){return A.apply(this,arguments)}return I}()},{key:"_processCommentEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F;return Er.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return M=new O,P.next=3,M.parseStream(x);case 3:F=P.sent,T.comments["../".concat(E,".xml")]=F;case 5:case"end":return P.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processTableEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F;return Er.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return M=new C,P.next=3,M.parseStream(x);case 3:F=P.sent,T.tables["../tables/".concat(E,".xml")]=F;case 5:case"end":return P.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processWorksheetRelsEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F;return Er.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return M=new v,P.next=3,M.parseStream(x);case 3:F=P.sent,T.worksheetRels[E]=F;case 5:case"end":return P.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processMediaEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F,P;return Er.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(!((M=E.lastIndexOf("."))>=1)){W.next=6;break}return F=E.substr(M+1),P=E.substr(0,M),W.next=6,new Promise(function(N,q){var nt=new l;nt.on("finish",function(){T.mediaIndex[E]=T.media.length,T.mediaIndex[P]=T.media.length;var J={type:"image",name:P,extension:F,buffer:nt.toBuffer()};T.media.push(J),N()}),x.on("error",function(J){q(J)}),x.pipe(nt)});case 6:case"end":return W.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processDrawingEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F;return Er.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return M=new S,P.next=3,M.parseStream(x);case 3:F=P.sent,T.drawings[E]=F;case 5:case"end":return P.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processDrawingRelsEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F;return Er.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return M=new v,P.next=3,M.parseStream(x);case 3:F=P.sent,T.drawingRels[E]=F;case 5:case"end":return P.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processVmlDrawingEntry",value:function(){var A=On(Er.mark(function _(x,T,E){var M,F;return Er.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return M=new L,P.next=3,M.parseStream(x);case 3:F=P.sent,T.vmlDrawings["../drawings/".concat(E,".vml")]=F;case 5:case"end":return P.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"_processThemeEntry",value:function(){var A=On(Er.mark(function _(x,T,E){return Er.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,new Promise(function(F,P){var W=new l;x.on("error",P),W.on("error",P),W.on("finish",function(){T.themes[E]=W.read().toString(),F()}),x.pipe(W)});case 2:case"end":return M.stop()}},_)}));function I(_,x,T){return A.apply(this,arguments)}return I}()},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:function(){var A=On(Er.mark(function _(x,T){var E,M,F,P,W,N,q;return Er.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:!x[Symbol.asyncIterator]&&x.pipe&&(x=x.pipe(new i)),E=[],M=!1,F=!1,nt.prev=4,W=Ap(x);case 6:return nt.next=8,W.next();case 8:if(!(M=!(N=nt.sent).done)){nt.next=14;break}q=N.value,E.push(q);case 11:M=!1,nt.next=6;break;case 14:nt.next=20;break;case 16:nt.prev=16,nt.t0=nt.catch(4),F=!0,P=nt.t0;case 20:if(nt.prev=20,nt.prev=21,!M||W.return==null){nt.next=25;break}return nt.next=25,W.return();case 25:if(nt.prev=25,!F){nt.next=28;break}throw P;case 28:return nt.finish(25);case 29:return nt.finish(20);case 30:return nt.abrupt("return",this.load(a.concat(E),T));case 31:case"end":return nt.stop()}},_,this,[[4,16,20,30],[21,,25,29]])}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"load",value:function(){var A=On(Er.mark(function _(x,T){var E,M,F,P,W,N,q,nt,J,St,kt,Mt,at,K,it,st,Nt;return Er.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return E=T&&T.base64?a.from(x.toString(),"base64"):x,M={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},rt.next=4,s.loadAsync(E);case 4:F=rt.sent,P=0,W=Object.values(F.files);case 6:if(!(P<W.length)){rt.next=126;break}if((N=W[P]).dir){rt.next=123;break}if((q=N.name)[0]==="/"&&(q=q.substr(1)),nt=void 0,!q.match(/xl\/media\//)&&!q.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){rt.next=21;break}return nt=new i,rt.t0=nt,rt.next=17,N.async("nodebuffer");case 17:rt.t1=rt.sent,rt.t0.write.call(rt.t0,rt.t1),rt.next=36;break;case 21:if(nt=new i({writableObjectMode:!0,readableObjectMode:!0}),J=void 0,!n.browser){rt.next=31;break}return rt.t2=h,rt.next=27,N.async("nodebuffer");case 27:rt.t3=rt.sent,J=(0,rt.t2)(rt.t3),rt.next=34;break;case 31:return rt.next=33,N.async("string");case 33:J=rt.sent;case 34:for(St=16384,kt=0;kt<J.length;kt+=St)nt.write(J.substring(kt,kt+St));case 36:nt.end(),rt.t4=q,rt.next=rt.t4==="_rels/.rels"?40:rt.t4==="xl/workbook.xml"?44:rt.t4==="xl/_rels/workbook.xml.rels"?53:rt.t4==="xl/sharedStrings.xml"?57:rt.t4==="xl/styles.xml"?61:rt.t4==="docProps/app.xml"?65:rt.t4==="docProps/core.xml"?72:78;break;case 40:return rt.next=42,this.parseRels(nt);case 42:return M.globalRels=rt.sent,rt.abrupt("break",123);case 44:return rt.next=46,this.parseWorkbook(nt);case 46:return Mt=rt.sent,M.sheets=Mt.sheets,M.definedNames=Mt.definedNames,M.views=Mt.views,M.properties=Mt.properties,M.calcProperties=Mt.calcProperties,rt.abrupt("break",123);case 53:return rt.next=55,this.parseRels(nt);case 55:return M.workbookRels=rt.sent,rt.abrupt("break",123);case 57:return M.sharedStrings=new m,rt.next=60,M.sharedStrings.parseStream(nt);case 60:return rt.abrupt("break",123);case 61:return M.styles=new d,rt.next=64,M.styles.parseStream(nt);case 64:return rt.abrupt("break",123);case 65:return at=new g,rt.next=68,at.parseStream(nt);case 68:return K=rt.sent,M.company=K.company,M.manager=K.manager,rt.abrupt("break",123);case 72:return it=new p,rt.next=75,it.parseStream(nt);case 75:return st=rt.sent,Object.assign(M,st),rt.abrupt("break",123);case 78:if(!(Nt=q.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){rt.next=83;break}return rt.next=82,this._processWorksheetEntry(nt,M,Nt[1],T,q);case 82:return rt.abrupt("break",123);case 83:if(!(Nt=q.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){rt.next=88;break}return rt.next=87,this._processWorksheetRelsEntry(nt,M,Nt[1]);case 87:return rt.abrupt("break",123);case 88:if(!(Nt=q.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){rt.next=93;break}return rt.next=92,this._processThemeEntry(nt,M,Nt[1]);case 92:return rt.abrupt("break",123);case 93:if(!(Nt=q.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){rt.next=98;break}return rt.next=97,this._processMediaEntry(nt,M,Nt[1]);case 97:return rt.abrupt("break",123);case 98:if(!(Nt=q.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){rt.next=103;break}return rt.next=102,this._processDrawingEntry(nt,M,Nt[1]);case 102:return rt.abrupt("break",123);case 103:if(!(Nt=q.match(/xl\/(comments\d+)[.]xml/))){rt.next=108;break}return rt.next=107,this._processCommentEntry(nt,M,Nt[1]);case 107:return rt.abrupt("break",123);case 108:if(!(Nt=q.match(/xl\/tables\/(table\d+)[.]xml/))){rt.next=113;break}return rt.next=112,this._processTableEntry(nt,M,Nt[1]);case 112:return rt.abrupt("break",123);case 113:if(!(Nt=q.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){rt.next=118;break}return rt.next=117,this._processDrawingRelsEntry(nt,M,Nt[1]);case 117:return rt.abrupt("break",123);case 118:if(!(Nt=q.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){rt.next=123;break}return rt.next=122,this._processVmlDrawingEntry(nt,M,Nt[1]);case 122:return rt.abrupt("break",123);case 123:P++,rt.next=6;break;case 126:return this.reconcile(M,T),this.workbook.model=M,rt.abrupt("return",this.workbook);case 129:case"end":return rt.stop()}},_,this)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addMedia",value:function(){var A=On(Er.mark(function _(x,T){return Er.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,Promise.all(T.media.map(function(){var M=On(Er.mark(function F(P){var W,N,q,nt;return Er.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(P.type!=="image"){J.next=13;break}if(W="xl/media/".concat(P.name,".").concat(P.extension),!P.filename){J.next=7;break}return J.next=5,U(P.filename);case 5:return N=J.sent,J.abrupt("return",x.append(N,{name:W}));case 7:if(!P.buffer){J.next=9;break}return J.abrupt("return",x.append(P.buffer,{name:W}));case 9:if(!P.base64){J.next=13;break}return q=P.base64,nt=q.substring(q.indexOf(",")+1),J.abrupt("return",x.append(nt,{name:W,base64:!0}));case 13:throw new Error("Unsupported media");case 14:case"end":return J.stop()}},F)}));return function(F){return M.apply(this,arguments)}}()));case 2:case"end":return E.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addDrawings",value:function(A,I){var _=new S,x=new v;I.worksheets.forEach(function(T){var E=T.drawing;if(E){_.prepare(E,{});var M=_.toXml(E);A.append(M,{name:"xl/drawings/".concat(E.name,".xml")}),M=x.toXml(E.rels),A.append(M,{name:"xl/drawings/_rels/".concat(E.name,".xml.rels")})}})}},{key:"addTables",value:function(A,I){var _=new C;I.worksheets.forEach(function(x){x.tables.forEach(function(T){_.prepare(T,{});var E=_.toXml(T);A.append(E,{name:"xl/tables/".concat(T.target)})})})}},{key:"addContentTypes",value:function(){var A=On(Er.mark(function _(x,T){var E,M;return Er.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:E=new b,M=E.toXml(T),x.append(M,{name:"[Content_Types].xml"});case 3:case"end":return F.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addApp",value:function(){var A=On(Er.mark(function _(x,T){var E,M;return Er.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:E=new g,M=E.toXml(T),x.append(M,{name:"docProps/app.xml"});case 3:case"end":return F.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addCore",value:function(){var A=On(Er.mark(function _(x,T){var E;return Er.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:E=new p,x.append(E.toXml(T),{name:"docProps/core.xml"});case 2:case"end":return M.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addThemes",value:function(){var A=On(Er.mark(function _(x,T){var E;return Er.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:E=T.themes||{theme1:j},Object.keys(E).forEach(function(F){var P=E[F],W="xl/theme/".concat(F,".xml");x.append(P,{name:W})});case 2:case"end":return M.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addOfficeRels",value:function(){var A=On(Er.mark(function _(x){var T,E;return Er.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:T=new v,E=T.toXml([{Id:"rId1",Type:Y.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:Y.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:Y.RelType.ExtenderProperties,Target:"docProps/app.xml"}]),x.append(E,{name:"_rels/.rels"});case 3:case"end":return M.stop()}},_)}));function I(_){return A.apply(this,arguments)}return I}()},{key:"addWorkbookRels",value:function(){var A=On(Er.mark(function _(x,T){var E,M,F,P;return Er.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:E=1,M=[{Id:"rId".concat(E++),Type:Y.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(E++),Type:Y.RelType.Theme,Target:"theme/theme1.xml"}],T.sharedStrings.count&&M.push({Id:"rId".concat(E++),Type:Y.RelType.SharedStrings,Target:"sharedStrings.xml"}),T.worksheets.forEach(function(N){N.rId="rId".concat(E++),M.push({Id:N.rId,Type:Y.RelType.Worksheet,Target:"worksheets/sheet".concat(N.id,".xml")})}),F=new v,P=F.toXml(M),x.append(P,{name:"xl/_rels/workbook.xml.rels"});case 7:case"end":return W.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addSharedStrings",value:function(){var A=On(Er.mark(function _(x,T){return Er.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:T.sharedStrings&&T.sharedStrings.count&&x.append(T.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return E.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addStyles",value:function(){var A=On(Er.mark(function _(x,T){var E;return Er.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:(E=T.styles.xml)&&x.append(E,{name:"xl/styles.xml"});case 2:case"end":return M.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addWorkbook",value:function(){var A=On(Er.mark(function _(x,T){var E;return Er.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:E=new y,x.append(E.toXml(T),{name:"xl/workbook.xml"});case 2:case"end":return M.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"addWorksheets",value:function(){var A=On(Er.mark(function _(x,T){var E,M,F,P;return Er.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:E=new k,M=new v,F=new O,P=new L,T.worksheets.forEach(function(N){var q=new c;E.render(q,N),x.append(q.xml,{name:"xl/worksheets/sheet".concat(N.id,".xml")}),N.rels&&N.rels.length&&(q=new c,M.render(q,N.rels),x.append(q.xml,{name:"xl/worksheets/_rels/sheet".concat(N.id,".xml.rels")})),N.comments.length>0&&(q=new c,F.render(q,N),x.append(q.xml,{name:"xl/comments".concat(N.id,".xml")}),q=new c,P.render(q,N),x.append(q.xml,{name:"xl/drawings/vmlDrawing".concat(N.id,".vml")}))});case 5:case"end":return W.stop()}},_)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"_finalize",value:function(A){var I=this;return new Promise(function(_,x){A.on("finish",function(){_(I)}),A.on("error",x),A.finalize()})}},{key:"prepareModel",value:function(A,I){A.creator=A.creator||"ExcelJS",A.lastModifiedBy=A.lastModifiedBy||"ExcelJS",A.created=A.created||new Date,A.modified=A.modified||new Date,A.useSharedStrings=I.useSharedStrings===void 0||I.useSharedStrings,A.useStyles=I.useStyles===void 0||I.useStyles,A.sharedStrings=new m,A.styles=A.useStyles?new d(!0):new d.Mock;var _=new y,x=new k;_.prepare(A);var T={sharedStrings:A.sharedStrings,styles:A.styles,date1904:A.properties.date1904,drawingsCount:0,media:A.media};T.drawings=A.drawings=[],T.commentRefs=A.commentRefs=[];var E=0;A.tables=[],A.worksheets.forEach(function(M){M.tables.forEach(function(F){E++,F.target="table".concat(E,".xml"),F.id=E,A.tables.push(F)}),x.prepare(M,T)})}},{key:"write",value:function(){var A=On(Er.mark(function _(x,T){var E,M;return Er.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return T=T||{},E=this.workbook.model,(M=new u.ZipWriter(T.zip)).pipe(x),this.prepareModel(E,T),F.next=7,this.addContentTypes(M,E);case 7:return F.next=9,this.addOfficeRels(M,E);case 9:return F.next=11,this.addWorkbookRels(M,E);case 11:return F.next=13,this.addWorksheets(M,E);case 13:return F.next=15,this.addSharedStrings(M,E);case 15:return F.next=17,this.addDrawings(M,E);case 17:return F.next=19,this.addTables(M,E);case 19:return F.next=21,Promise.all([this.addThemes(M,E),this.addStyles(M,E)]);case 21:return F.next=23,this.addMedia(M,E);case 23:return F.next=25,Promise.all([this.addApp(M,E),this.addCore(M,E)]);case 25:return F.next=27,this.addWorkbook(M,E);case 27:return F.abrupt("return",this._finalize(M));case 28:case"end":return F.stop()}},_,this)}));function I(_,x){return A.apply(this,arguments)}return I}()},{key:"writeFile",value:function(A,I){var _=this,x=o.createWriteStream(A);return new Promise(function(T,E){x.on("finish",function(){T()}),x.on("error",function(M){E(M)}),_.write(x,I).then(function(){x.end()}).catch(function(M){E(M)})})}},{key:"writeBuffer",value:function(){var A=On(Er.mark(function _(x){var T;return Er.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return T=new l,E.next=3,this.write(T,x);case 3:return E.abrupt("return",T.read());case 4:case"end":return E.stop()}},_,this)}));function I(_){return A.apply(this,arguments)}return I}()}])}();z.RelType=t("./rel-type"),r.exports=z}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,r,e){r.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
|
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(t,r,e){(function(n){(function(){Object.defineProperty(e,"__esModule",{value:!0}),e.CsvFormatterStream=void 0;var a=t("stream"),o=t("./formatter"),s=function(i){function u(l){var f;return Vt(this,u),(f=Pe(this,u,[{writableObjectMode:l.objectMode}])).hasWrittenBOM=!1,f.formatterOptions=l,f.rowFormatter=new o.RowFormatter(l),f.hasWrittenBOM=!l.writeBOM,f}return ge(u,i),$t(u,[{key:"transform",value:function(l){return this.rowFormatter.rowTransform=l,this}},{key:"_transform",value:function(l,f,c){var h=this,d=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(l,function(p,m){return p?(d=!0,c(p)):(m&&m.forEach(function(v){h.push(n.from(v,"utf8"))}),d=!0,c())})}catch(p){if(d)throw p;c(p)}}},{key:"_flush",value:function(l){var f=this;this.rowFormatter.finish(function(c,h){return c?l(c):(h&&h.forEach(function(d){f.push(n.from(d,"utf8"))}),l())})}}])}(a.Transform);e.CsvFormatterStream=s}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FormatterOptions=void 0;var n=$t(function a(){Vt(this,a);var o,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` |
|
|
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,s||{}),(s==null?void 0:s.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(s==null?void 0:s.quote)===!0?this.quote='"':(s==null?void 0:s.quote)===!1&&(this.quote=""),typeof(s==null?void 0:s.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=s.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)});e.FormatterOptions=n},{}],148:[function(t,r,e){var n=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.FieldFormatter=void 0;var a=n(t("lodash.isboolean")),o=n(t("lodash.isnil")),s=n(t("lodash.escaperegexp")),i=function(){function u(l){Vt(this,u),this._headers=null,this.formatterOptions=l,l.headers!==null&&(this.headers=l.headers),this.REPLACE_REGEXP=new RegExp(l.quote,"g");var f="[".concat(l.delimiter).concat(s.default(l.rowDelimiter),`|\r| |
|
|
]`);this.ESCAPE_REGEXP=new RegExp(f)}return $t(u,[{key:"headers",set:function(l){this._headers=l}},{key:"shouldQuote",value:function(l,f){var c=f?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return a.default(c)?c:Array.isArray(c)?c[l]:this._headers!==null&&c[this._headers[l]]}},{key:"format",value:function(l,f,c){var h="".concat(o.default(l)?"":l).replace(/\0/g,""),d=this.formatterOptions;return d.quote!==""&&h.indexOf(d.quote)!==-1?this.quoteField(h.replace(this.REPLACE_REGEXP,d.escapedQuote)):h.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(f,c)?this.quoteField(h):h}},{key:"quoteField",value:function(l){var f=this.formatterOptions.quote;return"".concat(f).concat(l).concat(f)}}])}();e.FieldFormatter=i},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(t,r,e){var n=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.RowFormatter=void 0;var a=n(t("lodash.isfunction")),o=n(t("lodash.isequal")),s=t("./FieldFormatter"),i=t("../types"),u=function(){function l(f){Vt(this,l),this.rowCount=0,this.formatterOptions=f,this.fieldFormatter=new s.FieldFormatter(f),this.headers=f.headers,this.shouldWriteHeaders=f.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),f.transform&&(this.rowTransform=f.transform)}return $t(l,[{key:"rowTransform",set:function(f){if(!a.default(f))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(f)}},{key:"format",value:function(f,c){var h=this;this.callTransformer(f,function(d,p){if(d)return c(d);if(!f)return c(null);var m=[];if(p){var v=h.checkHeaders(p),b=v.shouldFormatColumns,g=v.headers;if(h.shouldWriteHeaders&&g&&!h.hasWrittenHeaders&&(m.push(h.formatColumns(g,!0)),h.hasWrittenHeaders=!0),b){var y=h.gatherColumns(p);m.push(h.formatColumns(y,!1))}}return c(null,m)})}},{key:"finish",value:function(f){var c=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return f(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));c.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&c.push(this.formatterOptions.rowDelimiter),f(null,c)}},{key:"checkHeaders",value:function(f){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var c=l.gatherHeaders(f);return this.headers=c,this.fieldFormatter.headers=c,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(c,f),headers:c}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(f){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(f)?l.isRowHashArray(f)?this.headers.map(function(c,h){var d=f[h];return d?d[1]:""}):l.isRowArray(f)&&!this.shouldWriteHeaders?f:this.headers.map(function(c,h){return f[h]}):this.headers.map(function(c){return f[c]})}},{key:"callTransformer",value:function(f,c){return this._rowTransform?this._rowTransform(f,c):c(null,f)}},{key:"formatColumns",value:function(f,c){var h=this,d=f.map(function(m,v){return h.fieldFormatter.format(m,v,c)}).join(this.formatterOptions.delimiter),p=this.rowCount;return this.rowCount+=1,p?[this.formatterOptions.rowDelimiter,d].join(""):d}}],[{key:"isRowHashArray",value:function(f){return!!Array.isArray(f)&&Array.isArray(f[0])&&f[0].length===2}},{key:"isRowArray",value:function(f){return Array.isArray(f)&&!this.isRowHashArray(f)}},{key:"gatherHeaders",value:function(f){return l.isRowHashArray(f)?f.map(function(c){return c[0]}):Array.isArray(f)?f:Object.keys(f)}},{key:"createTransform",value:function(f){return i.isSyncTransform(f)?function(c,h){var d=null;try{d=f(c)}catch(p){return h(p)}return h(null,d)}:function(c,h){f(c,h)}}}])}();e.RowFormatter=u},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FieldFormatter=e.RowFormatter=void 0;var n=t("./RowFormatter");Object.defineProperty(e,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var a=t("./FieldFormatter");Object.defineProperty(e,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(t,r,e){(function(n){(function(){var a=Object.create?function(m,v,b,g){g===void 0&&(g=b),Object.defineProperty(m,g,{enumerable:!0,get:function(){return v[b]}})}:function(m,v,b,g){g===void 0&&(g=b),m[g]=v[b]},o=Object.create?function(m,v){Object.defineProperty(m,"default",{enumerable:!0,value:v})}:function(m,v){m.default=v},s=function(m){if(m&&m.__esModule)return m;var v={};if(m!=null)for(var b in m)b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)&&a(v,m,b);return o(v,m),v},i=function(m,v){for(var b in m)b==="default"||Object.prototype.hasOwnProperty.call(v,b)||a(v,m,b)};Object.defineProperty(e,"__esModule",{value:!0}),e.writeToPath=e.writeToString=e.writeToBuffer=e.writeToStream=e.write=e.format=e.FormatterOptions=e.CsvFormatterStream=void 0;var u=t("util"),l=t("stream"),f=s(t("fs")),c=t("./FormatterOptions"),h=t("./CsvFormatterStream");i(t("./types"),e);var d=t("./CsvFormatterStream");Object.defineProperty(e,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}});var p=t("./FormatterOptions");Object.defineProperty(e,"FormatterOptions",{enumerable:!0,get:function(){return p.FormatterOptions}}),e.format=function(m){return new h.CsvFormatterStream(new c.FormatterOptions(m))},e.write=function(m,v){var b=e.format(v),g=u.promisify(function(y,k){b.write(y,void 0,k)});return m.reduce(function(y,k){return y.then(function(){return g(k)})},Promise.resolve()).then(function(){return b.end()}).catch(function(y){b.emit("error",y)}),b},e.writeToStream=function(m,v,b){return e.write(v,b).pipe(m)},e.writeToBuffer=function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=[],g=new l.Writable({write:function(y,k,S){b.push(y),S()}});return new Promise(function(y,k){g.on("error",k).on("finish",function(){return y(n.concat(b))}),e.write(m,v).pipe(g)})},e.writeToString=function(m,v){return e.writeToBuffer(m,v).then(function(b){return b.toString()})},e.writeToPath=function(m,v,b){var g=f.createWriteStream(m,{encoding:"utf8"});return e.write(v,b).pipe(g)}}).call(this)}).call(this,t("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncTransform=void 0,e.isSyncTransform=function(n){return n.length===1}},{}],153:[function(t,r,e){(function(n){(function(){Object.defineProperty(e,"__esModule",{value:!0}),e.CsvParserStream=void 0;var a=t("string_decoder"),o=t("stream"),s=t("./transforms"),i=t("./parser"),u=function(l){function f(c){var h;return Vt(this,f),(h=Pe(this,f,[{objectMode:c.objectMode}])).lines="",h.rowCount=0,h.parsedRowCount=0,h.parsedLineCount=0,h.endEmitted=!1,h.headersEmitted=!1,h.parserOptions=c,h.parser=new i.Parser(c),h.headerTransformer=new s.HeaderTransformer(c),h.decoder=new a.StringDecoder(c.encoding),h.rowTransformerValidator=new s.RowTransformerValidator,h}return ge(f,l),$t(f,[{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}},{key:"transform",value:function(c){return this.rowTransformerValidator.rowTransform=c,this}},{key:"validate",value:function(c){return this.rowTransformerValidator.rowValidator=c,this}},{key:"emit",value:function(c){if(c==="end")return this.endEmitted||(this.endEmitted=!0,v1(f,"emit",this,3)(["end",this.rowCount])),!1;for(var h=arguments.length,d=new Array(h>1?h-1:0),p=1;p<h;p++)d[p-1]=arguments[p];return v1(f,"emit",this,3)([c].concat(d))}},{key:"_transform",value:function(c,h,d){if(this.hasHitRowLimit)return d();var p=f.wrapDoneCallback(d);try{var m=this.lines+this.decoder.write(c),v=this.parse(m,!0);return this.processRows(v,p)}catch(b){return p(b)}}},{key:"_flush",value:function(c){var h=f.wrapDoneCallback(c);if(this.hasHitRowLimit)return h();try{var d=this.lines+this.decoder.end(),p=this.parse(d,!1);return this.processRows(p,h)}catch(m){return h(m)}}},{key:"parse",value:function(c,h){if(!c)return[];var d=this.parser.parse(c,h),p=d.line,m=d.rows;return this.lines=p,m}},{key:"processRows",value:function(c,h){var d=this,p=c.length,m=function(v){var b=function(k){return k?h(k):v%100!=0?m(v+1):void n(function(){return m(v+1)})};if(d.checkAndEmitHeaders(),v>=p||d.hasHitRowLimit)return h();if(d.parsedLineCount+=1,d.shouldSkipLine)return b();var g=c[v];d.rowCount+=1,d.parsedRowCount+=1;var y=d.rowCount;return d.transformRow(g,function(k,S){if(k)return d.rowCount-=1,b(k);if(!S)return b(new Error("expected transform result"));if(S.isValid){if(S.row)return d.pushRow(S.row,b)}else d.emit("data-invalid",S.row,y,S.reason);return b()})};m(0)}},{key:"transformRow",value:function(c,h){var d=this;try{this.headerTransformer.transform(c,function(p,m){return p?h(p):m?m.isValid?m.row?d.shouldEmitRows?d.rowTransformerValidator.transformAndValidate(m.row,h):d.skipRow(h):(d.rowCount-=1,d.parsedRowCount-=1,h(null,{row:null,isValid:!0})):d.shouldEmitRows?h(null,{isValid:!1,row:c}):d.skipRow(h):h(new Error("Expected result from header transform"))})}catch(p){h(p)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(c){return this.rowCount-=1,c(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(c,h){try{this.parserOptions.objectMode?this.push(c):this.push(JSON.stringify(c)),h()}catch(d){h(d)}}}],[{key:"wrapDoneCallback",value:function(c){var h=!1;return function(d){if(d){if(h)throw d;return h=!0,void c(d)}for(var p=arguments.length,m=new Array(p>1?p-1:0),v=1;v<p;v++)m[v-1]=arguments[v];c.apply(void 0,m)}}}])}(o.Transform);e.CsvParserStream=u}).call(this)}).call(this,t("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(t,r,e){var n=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserOptions=void 0;var a=n(t("lodash.escaperegexp")),o=n(t("lodash.isnil")),s=$t(function i(u){var l;if(Vt(this,i),this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,u||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=(l=this.escape)!==null&&l!==void 0?l:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)});e.ParserOptions=s},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(t,r,e){var n=Object.create?function(d,p,m,v){v===void 0&&(v=m),Object.defineProperty(d,v,{enumerable:!0,get:function(){return p[m]}})}:function(d,p,m,v){v===void 0&&(v=m),d[v]=p[m]},a=Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p},o=function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var m in d)m!=="default"&&Object.prototype.hasOwnProperty.call(d,m)&&n(p,d,m);return a(p,d),p},s=function(d,p){for(var m in d)m==="default"||Object.prototype.hasOwnProperty.call(p,m)||n(p,d,m)};Object.defineProperty(e,"__esModule",{value:!0}),e.parseString=e.parseFile=e.parseStream=e.parse=e.ParserOptions=e.CsvParserStream=void 0;var i=o(t("fs")),u=t("stream"),l=t("./ParserOptions"),f=t("./CsvParserStream");s(t("./types"),e);var c=t("./CsvParserStream");Object.defineProperty(e,"CsvParserStream",{enumerable:!0,get:function(){return c.CsvParserStream}});var h=t("./ParserOptions");Object.defineProperty(e,"ParserOptions",{enumerable:!0,get:function(){return h.ParserOptions}}),e.parse=function(d){return new f.CsvParserStream(new l.ParserOptions(d))},e.parseStream=function(d,p){return d.pipe(new f.CsvParserStream(new l.ParserOptions(p)))},e.parseFile=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.createReadStream(d).pipe(new f.CsvParserStream(new l.ParserOptions(p)))},e.parseString=function(d,p){var m=new u.Readable;return m.push(d),m.push(null),m.pipe(new f.CsvParserStream(new l.ParserOptions(p)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var n=t("./Scanner"),a=t("./RowParser"),o=t("./Token"),s=function(){function i(u){Vt(this,i),this.parserOptions=u,this.rowParser=new a.RowParser(this.parserOptions)}return $t(i,[{key:"parse",value:function(u,l){var f=new n.Scanner({line:i.removeBOM(u),parserOptions:this.parserOptions,hasMoreData:l});return this.parserOptions.supportsComments?this.parseWithComments(f):this.parseWithoutComments(f)}},{key:"parseWithoutComments",value:function(u){for(var l=[],f=!0;f;)f=this.parseRow(u,l);return{line:u.line,rows:l}}},{key:"parseWithComments",value:function(u){for(var l=this.parserOptions,f=[],c=u.nextCharacterToken;c!==null;c=u.nextCharacterToken)if(o.Token.isTokenComment(c,l)){if(u.advancePastLine()===null)return{line:u.lineFromCursor,rows:f};if(!u.hasMoreCharacters)return{line:u.lineFromCursor,rows:f};u.truncateToCursor()}else if(!this.parseRow(u,f))break;return{line:u.line,rows:f}}},{key:"parseRow",value:function(u,l){if(!u.nextNonSpaceToken)return!1;var f=this.rowParser.parse(u);return f!==null&&(this.parserOptions.ignoreEmpty&&a.RowParser.isEmptyRow(f)||l.push(f),!0)}}],[{key:"removeBOM",value:function(u){return u&&u.charCodeAt(0)===65279?u.slice(1):u}}])}();e.Parser=s},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.RowParser=void 0;var n=t("./column"),a=t("./Token"),o="",s=function(){function i(u){Vt(this,i),this.parserOptions=u,this.columnParser=new n.ColumnParser(u)}return $t(i,[{key:"parse",value:function(u){for(var l=this.parserOptions,f=u.hasMoreData,c=u,h=[],d=this.getStartToken(c,h);d;){if(a.Token.isTokenRowDelimiter(d))return c.advancePastToken(d),!c.hasMoreCharacters&&a.Token.isTokenCarriageReturn(d,l)&&f?null:(c.truncateToCursor(),h);if(!this.shouldSkipColumnParse(c,d,h)){var p=this.columnParser.parse(c);if(p===null)return null;h.push(p)}d=c.nextNonSpaceToken}return f?null:(c.truncateToCursor(),h)}},{key:"getStartToken",value:function(u,l){var f=u.nextNonSpaceToken;return f!==null&&a.Token.isTokenDelimiter(f,this.parserOptions)?(l.push(""),u.nextNonSpaceToken):f}},{key:"shouldSkipColumnParse",value:function(u,l,f){var c=this.parserOptions;if(a.Token.isTokenDelimiter(l,c)){u.advancePastToken(l);var h=u.nextCharacterToken;if(!u.hasMoreCharacters||h!==null&&a.Token.isTokenRowDelimiter(h)||h!==null&&a.Token.isTokenDelimiter(h,c))return f.push(""),!0}return!1}}],[{key:"isEmptyRow",value:function(u){return u.join(o).replace(/\s+/g,o)===o}}])}();e.RowParser=s},{"./Token":159,"./column":164}],158:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scanner=void 0;var n=t("./Token"),a=/((?:\r\n)|\n|\r)/,o=function(){function s(i){Vt(this,s),this.cursor=0,this.line=i.line,this.lineLength=this.line.length,this.parserOptions=i.parserOptions,this.hasMoreData=i.hasMoreData,this.cursor=i.cursor||0}return $t(s,[{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var i=this.lineFromCursor,u=this.parserOptions.NEXT_TOKEN_REGEXP;if(i.search(u)===-1)return null;var l=u.exec(i);if(l==null)return null;var f=l[1],c=this.cursor+(l.index||0);return new n.Token({token:f,startCursor:c,endCursor:c+f.length-1})}},{key:"nextCharacterToken",get:function(){var i=this.cursor;return this.lineLength<=i?null:new n.Token({token:this.line[i],startCursor:i,endCursor:i})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}},{key:"advancePastLine",value:function(){var i=a.exec(this.lineFromCursor);return i?(this.cursor+=(i.index||0)+i[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(i){return this.cursor=i,this}},{key:"advanceToToken",value:function(i){return this.cursor=i.startCursor,this}},{key:"advancePastToken",value:function(i){return this.cursor=i.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}])}();e.Scanner=o},{"./Token":159}],159:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;var n=function(){function a(o){Vt(this,a),this.token=o.token,this.startCursor=o.startCursor,this.endCursor=o.endCursor}return $t(a,null,[{key:"isTokenRowDelimiter",value:function(o){var s=o.token;return s==="\r"||s===` |
|
|
`||s===`\r |
|
|
`}},{key:"isTokenCarriageReturn",value:function(o,s){return o.token===s.carriageReturn}},{key:"isTokenComment",value:function(o,s){return s.supportsComments&&!!o&&o.token===s.comment}},{key:"isTokenEscapeCharacter",value:function(o,s){return o.token===s.escapeChar}},{key:"isTokenQuote",value:function(o,s){return o.token===s.quote}},{key:"isTokenDelimiter",value:function(o,s){return o.token===s.delimiter}}])}();e.Token=n},{}],160:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnFormatter=void 0;var n=$t(function a(o){Vt(this,a),o.trim?this.format=function(s){return s.trim()}:o.ltrim?this.format=function(s){return s.trimLeft()}:o.rtrim?this.format=function(s){return s.trimRight()}:this.format=function(s){return s}});e.ColumnFormatter=n},{}],161:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnParser=void 0;var n=t("./NonQuotedColumnParser"),a=t("./QuotedColumnParser"),o=t("../Token"),s=function(){function i(u){Vt(this,i),this.parserOptions=u,this.quotedColumnParser=new a.QuotedColumnParser(u),this.nonQuotedColumnParser=new n.NonQuotedColumnParser(u)}return $t(i,[{key:"parse",value:function(u){var l=u.nextNonSpaceToken;return l!==null&&o.Token.isTokenQuote(l,this.parserOptions)?(u.advanceToToken(l),this.quotedColumnParser.parse(u)):this.nonQuotedColumnParser.parse(u)}}])}();e.ColumnParser=s},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.NonQuotedColumnParser=void 0;var n=t("./ColumnFormatter"),a=t("../Token"),o=function(){function s(i){Vt(this,s),this.parserOptions=i,this.columnFormatter=new n.ColumnFormatter(i)}return $t(s,[{key:"parse",value:function(i){if(!i.hasMoreCharacters)return null;for(var u=this.parserOptions,l=[],f=i.nextCharacterToken;f&&!a.Token.isTokenDelimiter(f,u)&&!a.Token.isTokenRowDelimiter(f);f=i.nextCharacterToken)l.push(f.token),i.advancePastToken(f);return this.columnFormatter.format(l.join(""))}}])}();e.NonQuotedColumnParser=o},{"../Token":159,"./ColumnFormatter":160}],163:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuotedColumnParser=void 0;var n=t("./ColumnFormatter"),a=t("../Token"),o=function(){function s(i){Vt(this,s),this.parserOptions=i,this.columnFormatter=new n.ColumnFormatter(i)}return $t(s,[{key:"parse",value:function(i){if(!i.hasMoreCharacters)return null;var u=i.cursor,l=this.gatherDataBetweenQuotes(i),f=l.foundClosingQuote,c=l.col;if(!f){if(i.advanceTo(u),!i.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(i.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(i),c}},{key:"gatherDataBetweenQuotes",value:function(i){for(var u=this.parserOptions,l=!1,f=!1,c=[],h=i.nextCharacterToken;!f&&h!==null;h=i.nextCharacterToken){var d=a.Token.isTokenQuote(h,u);if(!l&&d)l=!0;else if(l)if(a.Token.isTokenEscapeCharacter(h,u)){i.advancePastToken(h);var p=i.nextCharacterToken;p!==null&&(a.Token.isTokenQuote(p,u)||a.Token.isTokenEscapeCharacter(p,u))?(c.push(p.token),h=p):d?f=!0:c.push(h.token)}else d?f=!0:c.push(h.token);i.advancePastToken(h)}return{col:this.columnFormatter.format(c.join("")),foundClosingQuote:f}}},{key:"checkForMalformedColumn",value:function(i){var u=this.parserOptions,l=i.nextNonSpaceToken;if(l){var f=a.Token.isTokenDelimiter(l,u),c=a.Token.isTokenRowDelimiter(l);if(!f&&!c){var h=i.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(u.escapedDelimiter,"' OR new line got: '").concat(l.token,"'. at '").concat(h))}i.advanceToToken(l)}else i.hasMoreData||i.advancePastLine()}}])}();e.QuotedColumnParser=o},{"../Token":159,"./ColumnFormatter":160}],164:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnFormatter=e.QuotedColumnParser=e.NonQuotedColumnParser=e.ColumnParser=void 0;var n=t("./ColumnParser");Object.defineProperty(e,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var a=t("./NonQuotedColumnParser");Object.defineProperty(e,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var o=t("./QuotedColumnParser");Object.defineProperty(e,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var s=t("./ColumnFormatter");Object.defineProperty(e,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuotedColumnParser=e.NonQuotedColumnParser=e.ColumnParser=e.Token=e.Scanner=e.RowParser=e.Parser=void 0;var n=t("./Parser");Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return n.Parser}});var a=t("./RowParser");Object.defineProperty(e,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var o=t("./Scanner");Object.defineProperty(e,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var s=t("./Token");Object.defineProperty(e,"Token",{enumerable:!0,get:function(){return s.Token}});var i=t("./column");Object.defineProperty(e,"ColumnParser",{enumerable:!0,get:function(){return i.ColumnParser}}),Object.defineProperty(e,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}}),Object.defineProperty(e,"QuotedColumnParser",{enumerable:!0,get:function(){return i.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(t,r,e){var n=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderTransformer=void 0;var a=n(t("lodash.isundefined")),o=n(t("lodash.isfunction")),s=n(t("lodash.uniq")),i=n(t("lodash.groupby")),u=function(){function l(f){Vt(this,l),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=f,f.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(f.headers)?this.setHeaders(f.headers):o.default(f.headers)&&(this.headersTransform=f.headers)}return $t(l,[{key:"transform",value:function(f,c){return this.shouldMapRow(f)?c(null,this.processRow(f)):c(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(f){var c=this.parserOptions;if(!this.headersTransform&&c.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(f)){if(this.headersTransform)this.setHeaders(this.headersTransform(f));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(f)}return!1}return!0}},{key:"processRow",value:function(f){if(!this.headers)return{row:f,isValid:!0};var c=this.parserOptions;if(!c.discardUnmappedColumns&&f.length>this.headersLength){if(!c.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(f.length));return{row:f,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(f.length)}}return c.strictColumnHandling&&f.length<this.headersLength?{row:f,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(f.length)}:{row:this.mapHeaders(f),isValid:!0}}},{key:"mapHeaders",value:function(f){for(var c={},h=this.headers,d=this.headersLength,p=0;p<d;p+=1){var m=h[p];if(!a.default(m)){var v=f[p];a.default(v)?c[m]="":c[m]=v}}return c}},{key:"setHeaders",value:function(f){var c,h=f.filter(function(m){return!!m});if(s.default(h).length!==h.length){var d=i.default(h),p=Object.keys(d).filter(function(m){return d[m].length>1});throw new Error("Duplicate headers found ".concat(JSON.stringify(p)))}this.headers=f,this.receivedHeaders=!0,this.headersLength=((c=this.headers)===null||c===void 0?void 0:c.length)||0}}])}();e.HeaderTransformer=u},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(t,r,e){var n=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.RowTransformerValidator=void 0;var a=n(t("lodash.isfunction")),o=t("../types"),s=function(){function i(){Vt(this,i),this._rowTransform=null,this._rowValidator=null}return $t(i,[{key:"rowTransform",set:function(u){if(!a.default(u))throw new TypeError("The transform should be a function");this._rowTransform=i.createTransform(u)}},{key:"rowValidator",set:function(u){if(!a.default(u))throw new TypeError("The validate should be a function");this._rowValidator=i.createValidator(u)}},{key:"transformAndValidate",value:function(u,l){var f=this;return this.callTransformer(u,function(c,h){return c?l(c):h?f.callValidator(h,function(d,p){return d?l(d):p&&!p.isValid?l(null,{row:h,isValid:!1,reason:p.reason}):l(null,{row:h,isValid:!0})}):l(null,{row:null,isValid:!0})})}},{key:"callTransformer",value:function(u,l){return this._rowTransform?this._rowTransform(u,l):l(null,u)}},{key:"callValidator",value:function(u,l){return this._rowValidator?this._rowValidator(u,l):l(null,{row:u,isValid:!0})}}],[{key:"createTransform",value:function(u){return o.isSyncTransform(u)?function(l,f){var c=null;try{c=u(l)}catch(h){return f(h)}return f(null,c)}:u}},{key:"createValidator",value:function(u){return o.isSyncValidate(u)?function(l,f){f(null,{row:l,isValid:u(l)})}:function(l,f){u(l,function(c,h,d){return c?f(c):f(null,h?{row:l,isValid:h,reason:d}:{row:l,isValid:!1,reason:d})})}}}])}();e.RowTransformerValidator=s},{"../types":169,"lodash.isfunction":446}],168:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderTransformer=e.RowTransformerValidator=void 0;var n=t("./RowTransformerValidator");Object.defineProperty(e,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var a=t("./HeaderTransformer");Object.defineProperty(e,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncValidate=e.isSyncTransform=void 0,e.isSyncTransform=function(n){return n.length===1},e.isSyncValidate=function(n){return n.length===1}},{}],170:[function(t,r,e){var n=e;n.bignum=t("bn.js"),n.define=t("./asn1/api").define,n.base=t("./asn1/base"),n.constants=t("./asn1/constants"),n.decoders=t("./asn1/decoders"),n.encoders=t("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(t,r,e){var n=t("./encoders"),a=t("./decoders"),o=t("inherits");function s(i,u){this.name=i,this.body=u,this.decoders={},this.encoders={}}e.define=function(i,u){return new s(i,u)},s.prototype._createNamed=function(i){var u=this.name;function l(f){this._initNamed(f,u)}return o(l,i),l.prototype._initNamed=function(f,c){i.call(this,f,c)},new l(this)},s.prototype._getDecoder=function(i){return i=i||"der",this.decoders.hasOwnProperty(i)||(this.decoders[i]=this._createNamed(a[i])),this.decoders[i]},s.prototype.decode=function(i,u,l){return this._getDecoder(u).decode(i,l)},s.prototype._getEncoder=function(i){return i=i||"der",this.encoders.hasOwnProperty(i)||(this.encoders[i]=this._createNamed(n[i])),this.encoders[i]},s.prototype.encode=function(i,u,l){return this._getEncoder(u).encode(i,l)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(t,r,e){var n=t("inherits"),a=t("../base/reporter").Reporter,o=t("safer-buffer").Buffer;function s(u,l){a.call(this,l),o.isBuffer(u)?(this.base=u,this.offset=0,this.length=u.length):this.error("Input not Buffer")}function i(u,l){if(Array.isArray(u))this.length=0,this.value=u.map(function(f){return i.isEncoderBuffer(f)||(f=new i(f,l)),this.length+=f.length,f},this);else if(typeof u=="number"){if(!(0<=u&&u<=255))return l.error("non-byte EncoderBuffer value");this.value=u,this.length=1}else if(typeof u=="string")this.value=u,this.length=o.byteLength(u);else{if(!o.isBuffer(u))return l.error("Unsupported type: "+typeof u);this.value=u,this.length=u.length}}n(s,a),e.DecoderBuffer=s,s.isDecoderBuffer=function(u){return u instanceof s||typeof u=="object"&&o.isBuffer(u.base)&&u.constructor.name==="DecoderBuffer"&&typeof u.offset=="number"&&typeof u.length=="number"&&typeof u.save=="function"&&typeof u.restore=="function"&&typeof u.isEmpty=="function"&&typeof u.readUInt8=="function"&&typeof u.skip=="function"&&typeof u.raw=="function"},s.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},s.prototype.restore=function(u){var l=new s(this.base);return l.offset=u.offset,l.length=this.offset,this.offset=u.offset,a.prototype.restore.call(this,u.reporter),l},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(u){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(u||"DecoderBuffer overrun")},s.prototype.skip=function(u,l){if(!(this.offset+u<=this.length))return this.error(l||"DecoderBuffer overrun");var f=new s(this.base);return f._reporterState=this._reporterState,f.offset=this.offset,f.length=this.offset+u,this.offset+=u,f},s.prototype.raw=function(u){return this.base.slice(u?u.offset:this.offset,this.length)},e.EncoderBuffer=i,i.isEncoderBuffer=function(u){return u instanceof i||typeof u=="object"&&u.constructor.name==="EncoderBuffer"&&typeof u.length=="number"&&typeof u.join=="function"},i.prototype.join=function(u,l){return u||(u=o.alloc(this.length)),l||(l=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(f){f.join(u,l),l+=f.length}):(typeof this.value=="number"?u[l]=this.value:typeof this.value=="string"?u.write(this.value,l):o.isBuffer(this.value)&&this.value.copy(u,l),l+=this.length)),u}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(t,r,e){var n=e;n.Reporter=t("./reporter").Reporter,n.DecoderBuffer=t("./buffer").DecoderBuffer,n.EncoderBuffer=t("./buffer").EncoderBuffer,n.Node=t("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(t,r,e){var n=t("../base/reporter").Reporter,a=t("../base/buffer").EncoderBuffer,o=t("../base/buffer").DecoderBuffer,s=t("minimalistic-assert"),i=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(i),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function f(h,d,p){var m={};this._baseState=m,m.name=p,m.enc=h,m.parent=d||null,m.children=null,m.tag=null,m.args=null,m.reverseArgs=null,m.choice=null,m.optional=!1,m.any=!1,m.obj=!1,m.use=null,m.useDecoder=null,m.key=null,m.default=null,m.explicit=null,m.implicit=null,m.contains=null,m.parent||(m.children=[],this._wrap())}r.exports=f;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var h=this._baseState,d={};c.forEach(function(m){d[m]=h[m]});var p=new this.constructor(d.parent);return p._baseState=d,p},f.prototype._wrap=function(){var h=this._baseState;u.forEach(function(d){this[d]=function(){var p=new this.constructor(this);return h.children.push(p),p[d].apply(p,arguments)}},this)},f.prototype._init=function(h){var d=this._baseState;s(d.parent===null),h.call(this),d.children=d.children.filter(function(p){return p._baseState.parent===this},this),s.equal(d.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(h){var d=this._baseState,p=h.filter(function(m){return m instanceof this.constructor},this);h=h.filter(function(m){return!(m instanceof this.constructor)},this),p.length!==0&&(s(d.children===null),d.children=p,p.forEach(function(m){m._baseState.parent=this},this)),h.length!==0&&(s(d.args===null),d.args=h,d.reverseArgs=h.map(function(m){if(typeof m!="object"||m.constructor!==Object)return m;var v={};return Object.keys(m).forEach(function(b){b==(0|b)&&(b|=0);var g=m[b];v[g]=b}),v}))},l.forEach(function(h){f.prototype[h]=function(){var d=this._baseState;throw new Error(h+" not implemented for encoding: "+d.enc)}}),i.forEach(function(h){f.prototype[h]=function(){var d=this._baseState,p=Array.prototype.slice.call(arguments);return s(d.tag===null),d.tag=h,this._useArgs(p),this}}),f.prototype.use=function(h){s(h);var d=this._baseState;return s(d.use===null),d.use=h,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(h){var d=this._baseState;return s(d.default===null),d.default=h,d.optional=!0,this},f.prototype.explicit=function(h){var d=this._baseState;return s(d.explicit===null&&d.implicit===null),d.explicit=h,this},f.prototype.implicit=function(h){var d=this._baseState;return s(d.explicit===null&&d.implicit===null),d.implicit=h,this},f.prototype.obj=function(){var h=this._baseState,d=Array.prototype.slice.call(arguments);return h.obj=!0,d.length!==0&&this._useArgs(d),this},f.prototype.key=function(h){var d=this._baseState;return s(d.key===null),d.key=h,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(h){var d=this._baseState;return s(d.choice===null),d.choice=h,this._useArgs(Object.keys(h).map(function(p){return h[p]})),this},f.prototype.contains=function(h){var d=this._baseState;return s(d.use===null),d.contains=h,this},f.prototype._decode=function(h,d){var p=this._baseState;if(p.parent===null)return h.wrapResult(p.children[0]._decode(h,d));var m,v=p.default,b=!0,g=null;if(p.key!==null&&(g=h.enterKey(p.key)),p.optional){var y=null;if(p.explicit!==null?y=p.explicit:p.implicit!==null?y=p.implicit:p.tag!==null&&(y=p.tag),y!==null||p.any){if(b=this._peekTag(h,y,p.any),h.isError(b))return b}else{var k=h.save();try{p.choice===null?this._decodeGeneric(p.tag,h,d):this._decodeChoice(h,d),b=!0}catch{b=!1}h.restore(k)}}if(p.obj&&b&&(m=h.enterObject()),b){if(p.explicit!==null){var S=this._decodeTag(h,p.explicit);if(h.isError(S))return S;h=S}var C=h.offset;if(p.use===null&&p.choice===null){var O;p.any&&(O=h.save());var L=this._decodeTag(h,p.implicit!==null?p.implicit:p.tag,p.any);if(h.isError(L))return L;p.any?v=h.raw(O):h=L}if(d&&d.track&&p.tag!==null&&d.track(h.path(),C,h.length,"tagged"),d&&d.track&&p.tag!==null&&d.track(h.path(),h.offset,h.length,"content"),p.any||(v=p.choice===null?this._decodeGeneric(p.tag,h,d):this._decodeChoice(h,d)),h.isError(v))return v;if(p.any||p.choice!==null||p.children===null||p.children.forEach(function(U){U._decode(h,d)}),p.contains&&(p.tag==="octstr"||p.tag==="bitstr")){var j=new o(v);v=this._getUse(p.contains,h._reporterState.obj)._decode(j,d)}}return p.obj&&b&&(v=h.leaveObject(m)),p.key===null||v===null&&b!==!0?g!==null&&h.exitKey(g):h.leaveKey(g,p.key,v),v},f.prototype._decodeGeneric=function(h,d,p){var m=this._baseState;return h==="seq"||h==="set"?null:h==="seqof"||h==="setof"?this._decodeList(d,h,m.args[0],p):/str$/.test(h)?this._decodeStr(d,h,p):h==="objid"&&m.args?this._decodeObjid(d,m.args[0],m.args[1],p):h==="objid"?this._decodeObjid(d,null,null,p):h==="gentime"||h==="utctime"?this._decodeTime(d,h,p):h==="null_"?this._decodeNull(d,p):h==="bool"?this._decodeBool(d,p):h==="objDesc"?this._decodeStr(d,h,p):h==="int"||h==="enum"?this._decodeInt(d,m.args&&m.args[0],p):m.use!==null?this._getUse(m.use,d._reporterState.obj)._decode(d,p):d.error("unknown tag: "+h)},f.prototype._getUse=function(h,d){var p=this._baseState;return p.useDecoder=this._use(h,d),s(p.useDecoder._baseState.parent===null),p.useDecoder=p.useDecoder._baseState.children[0],p.implicit!==p.useDecoder._baseState.implicit&&(p.useDecoder=p.useDecoder.clone(),p.useDecoder._baseState.implicit=p.implicit),p.useDecoder},f.prototype._decodeChoice=function(h,d){var p=this._baseState,m=null,v=!1;return Object.keys(p.choice).some(function(b){var g=h.save(),y=p.choice[b];try{var k=y._decode(h,d);if(h.isError(k))return!1;m={type:b,value:k},v=!0}catch{return h.restore(g),!1}return!0},this),v?m:h.error("Choice not matched")},f.prototype._createEncoderBuffer=function(h){return new a(h,this.reporter)},f.prototype._encode=function(h,d,p){var m=this._baseState;if(m.default===null||m.default!==h){var v=this._encodeValue(h,d,p);if(v!==void 0&&!this._skipDefault(v,d,p))return v}},f.prototype._encodeValue=function(h,d,p){var m=this._baseState;if(m.parent===null)return m.children[0]._encode(h,d||new n);var v=null;if(this.reporter=d,m.optional&&h===void 0){if(m.default===null)return;h=m.default}var b=null,g=!1;if(m.any)v=this._createEncoderBuffer(h);else if(m.choice)v=this._encodeChoice(h,d);else if(m.contains)b=this._getUse(m.contains,p)._encode(h,d),g=!0;else if(m.children)b=m.children.map(function(C){if(C._baseState.tag==="null_")return C._encode(null,d,h);if(C._baseState.key===null)return d.error("Child should have a key");var O=d.enterKey(C._baseState.key);if(typeof h!="object")return d.error("Child expected, but input is not object");var L=C._encode(h[C._baseState.key],d,h);return d.leaveKey(O),L},this).filter(function(C){return C}),b=this._createEncoderBuffer(b);else if(m.tag==="seqof"||m.tag==="setof"){if(!m.args||m.args.length!==1)return d.error("Too many args for : "+m.tag);if(!Array.isArray(h))return d.error("seqof/setof, but data is not Array");var y=this.clone();y._baseState.implicit=null,b=this._createEncoderBuffer(h.map(function(C){var O=this._baseState;return this._getUse(O.args[0],h)._encode(C,d)},y))}else m.use!==null?v=this._getUse(m.use,p)._encode(h,d):(b=this._encodePrimitive(m.tag,h),g=!0);if(!m.any&&m.choice===null){var k=m.implicit!==null?m.implicit:m.tag,S=m.implicit===null?"universal":"context";k===null?m.use===null&&d.error("Tag could be omitted only for .use()"):m.use===null&&(v=this._encodeComposite(k,g,S,b))}return m.explicit!==null&&(v=this._encodeComposite(m.explicit,!1,"context",v)),v},f.prototype._encodeChoice=function(h,d){var p=this._baseState,m=p.choice[h.type];return m||s(!1,h.type+" not found in "+JSON.stringify(Object.keys(p.choice))),m._encode(h.value,d)},f.prototype._encodePrimitive=function(h,d){var p=this._baseState;if(/str$/.test(h))return this._encodeStr(d,h);if(h==="objid"&&p.args)return this._encodeObjid(d,p.reverseArgs[0],p.args[1]);if(h==="objid")return this._encodeObjid(d,null,null);if(h==="gentime"||h==="utctime")return this._encodeTime(d,h);if(h==="null_")return this._encodeNull();if(h==="int"||h==="enum")return this._encodeInt(d,p.args&&p.reverseArgs[0]);if(h==="bool")return this._encodeBool(d);if(h==="objDesc")return this._encodeStr(d,h);throw new Error("Unsupported tag: "+h)},f.prototype._isNumstr=function(h){return/^[0-9 ]*$/.test(h)},f.prototype._isPrintstr=function(h){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(h)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(t,r,e){var n=t("inherits");function a(s){this._reporterState={obj:null,path:[],options:s||{},errors:[]}}function o(s,i){this.path=s,this.rethrow(i)}e.Reporter=a,a.prototype.isError=function(s){return s instanceof o},a.prototype.save=function(){var s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},a.prototype.restore=function(s){var i=this._reporterState;i.obj=s.obj,i.path=i.path.slice(0,s.pathLen)},a.prototype.enterKey=function(s){return this._reporterState.path.push(s)},a.prototype.exitKey=function(s){var i=this._reporterState;i.path=i.path.slice(0,s-1)},a.prototype.leaveKey=function(s,i,u){var l=this._reporterState;this.exitKey(s),l.obj!==null&&(l.obj[i]=u)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var s=this._reporterState,i=s.obj;return s.obj={},i},a.prototype.leaveObject=function(s){var i=this._reporterState,u=i.obj;return i.obj=s,u},a.prototype.error=function(s){var i,u=this._reporterState,l=s instanceof o;if(i=l?s:new o(u.path.map(function(f){return"["+JSON.stringify(f)+"]"}).join(""),s.message||s,s.stack),!u.options.partial)throw i;return l||u.errors.push(i),i},a.prototype.wrapResult=function(s){var i=this._reporterState;return i.options.partial?{result:this.isError(s)?null:s,errors:i.errors}:s},n(o,Error),o.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(i){this.stack=i.stack}return this}},{inherits:440}],176:[function(t,r,e){function n(a){var o={};return Object.keys(a).forEach(function(s){(0|s)==s&&(s|=0);var i=a[s];o[i]=s}),o}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=n(e.tag)},{}],177:[function(t,r,e){var n=e;n._reverse=function(a){var o={};return Object.keys(a).forEach(function(s){(0|s)==s&&(s|=0);var i=a[s];o[i]=s}),o},n.der=t("./der")},{"./der":176}],178:[function(t,r,e){var n=t("inherits"),a=t("bn.js"),o=t("../base/buffer").DecoderBuffer,s=t("../base/node"),i=t("../constants/der");function u(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new l,this.tree._init(h.body)}function l(h){s.call(this,"der",h)}function f(h,d){var p=h.readUInt8(d);if(h.isError(p))return p;var m=i.tagClass[p>>6],v=!(32&p);if(31&~p)p&=31;else{var b=p;for(p=0;!(128&~b);){if(b=h.readUInt8(d),h.isError(b))return b;p<<=7,p|=127&b}}return{cls:m,primitive:v,tag:p,tagStr:i.tag[p]}}function c(h,d,p){var m=h.readUInt8(p);if(h.isError(m))return m;if(!d&&m===128)return null;if(!(128&m))return m;var v=127&m;if(v>4)return h.error("length octect is too long");m=0;for(var b=0;b<v;b++){m<<=8;var g=h.readUInt8(p);if(h.isError(g))return g;m|=g}return m}r.exports=u,u.prototype.decode=function(h,d){return o.isDecoderBuffer(h)||(h=new o(h,d)),this.tree._decode(h,d)},n(l,s),l.prototype._peekTag=function(h,d,p){if(h.isEmpty())return!1;var m=h.save(),v=f(h,'Failed to peek tag: "'+d+'"');return h.isError(v)?v:(h.restore(m),v.tag===d||v.tagStr===d||v.tagStr+"of"===d||p)},l.prototype._decodeTag=function(h,d,p){var m=f(h,'Failed to decode tag of "'+d+'"');if(h.isError(m))return m;var v=c(h,m.primitive,'Failed to get length of "'+d+'"');if(h.isError(v))return v;if(!p&&m.tag!==d&&m.tagStr!==d&&m.tagStr+"of"!==d)return h.error('Failed to match tag: "'+d+'"');if(m.primitive||v!==null)return h.skip(v,'Failed to match body of: "'+d+'"');var b=h.save(),g=this._skipUntilEnd(h,'Failed to skip indefinite length body: "'+this.tag+'"');return h.isError(g)?g:(v=h.offset-b.offset,h.restore(b),h.skip(v,'Failed to match body of: "'+d+'"'))},l.prototype._skipUntilEnd=function(h,d){for(;;){var p=f(h,d);if(h.isError(p))return p;var m=c(h,p.primitive,d);if(h.isError(m))return m;var v=void 0;if(v=p.primitive||m!==null?h.skip(m):this._skipUntilEnd(h,d),h.isError(v))return v;if(p.tagStr==="end")break}},l.prototype._decodeList=function(h,d,p,m){for(var v=[];!h.isEmpty();){var b=this._peekTag(h,"end");if(h.isError(b))return b;var g=p.decode(h,"der",m);if(h.isError(g)&&b)break;v.push(g)}return v},l.prototype._decodeStr=function(h,d){if(d==="bitstr"){var p=h.readUInt8();return h.isError(p)?p:{unused:p,data:h.raw()}}if(d==="bmpstr"){var m=h.raw();if(m.length%2==1)return h.error("Decoding of string type: bmpstr length mismatch");for(var v="",b=0;b<m.length/2;b++)v+=String.fromCharCode(m.readUInt16BE(2*b));return v}if(d==="numstr"){var g=h.raw().toString("ascii");return this._isNumstr(g)?g:h.error("Decoding of string type: numstr unsupported characters")}if(d==="octstr"||d==="objDesc")return h.raw();if(d==="printstr"){var y=h.raw().toString("ascii");return this._isPrintstr(y)?y:h.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(d)?h.raw().toString():h.error("Decoding of string type: "+d+" unsupported")},l.prototype._decodeObjid=function(h,d,p){for(var m,v=[],b=0,g=0;!h.isEmpty();)b<<=7,b|=127&(g=h.readUInt8()),128&g||(v.push(b),b=0);128&g&&v.push(b);var y=v[0]/40|0,k=v[0]%40;if(m=p?v:[y,k].concat(v.slice(1)),d){var S=d[m.join(" ")];S===void 0&&(S=d[m.join(".")]),S!==void 0&&(m=S)}return m},l.prototype._decodeTime=function(h,d){var p,m,v,b,g,y,k=h.raw().toString();if(d==="gentime")p=0|k.slice(0,4),m=0|k.slice(4,6),v=0|k.slice(6,8),b=0|k.slice(8,10),g=0|k.slice(10,12),y=0|k.slice(12,14);else{if(d!=="utctime")return h.error("Decoding "+d+" time is not supported yet");p=0|k.slice(0,2),m=0|k.slice(2,4),v=0|k.slice(4,6),b=0|k.slice(6,8),g=0|k.slice(8,10),y=0|k.slice(10,12),p=p<70?2e3+p:1900+p}return Date.UTC(p,m-1,v,b,g,y,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(h){var d=h.readUInt8();return h.isError(d)?d:d!==0},l.prototype._decodeInt=function(h,d){var p=h.raw(),m=new a(p);return d&&(m=d[m.toString(10)]||m),m},l.prototype._use=function(h,d){return typeof h=="function"&&(h=h(d)),h._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(t,r,e){var n=e;n.der=t("./der"),n.pem=t("./pem")},{"./der":178,"./pem":180}],180:[function(t,r,e){var n=t("inherits"),a=t("safer-buffer").Buffer,o=t("./der");function s(i){o.call(this,i),this.enc="pem"}n(s,o),r.exports=s,s.prototype.decode=function(i,u){for(var l=i.toString().split(/[\r\n]+/g),f=u.label.toUpperCase(),c=/^-----(BEGIN|END) ([^-]+)-----$/,h=-1,d=-1,p=0;p<l.length;p++){var m=l[p].match(c);if(m!==null&&m[2]===f){if(h!==-1){if(m[1]!=="END")break;d=p;break}if(m[1]!=="BEGIN")break;h=p}}if(h===-1||d===-1)throw new Error("PEM section not found for: "+f);var v=l.slice(h+1,d).join("");v.replace(/[^a-z0-9+/=]+/gi,"");var b=a.from(v,"base64");return o.prototype.decode.call(this,b,u)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(t,r,e){var n=t("inherits"),a=t("safer-buffer").Buffer,o=t("../base/node"),s=t("../constants/der");function i(c){this.enc="der",this.name=c.name,this.entity=c,this.tree=new u,this.tree._init(c.body)}function u(c){o.call(this,"der",c)}function l(c){return c<10?"0"+c:c}function f(c,h,d,p){var m;if(c==="seqof"?c="seq":c==="setof"&&(c="set"),s.tagByName.hasOwnProperty(c))m=s.tagByName[c];else{if(typeof c!="number"||(0|c)!==c)return p.error("Unknown tag: "+c);m=c}return m>=31?p.error("Multi-octet tag encoding unsupported"):(h||(m|=32),m|=s.tagClassByName[d||"universal"]<<6)}r.exports=i,i.prototype.encode=function(c,h){return this.tree._encode(c,h).join()},n(u,o),u.prototype._encodeComposite=function(c,h,d,p){var m=f(c,h,d,this.reporter);if(p.length<128){var v=a.alloc(2);return v[0]=m,v[1]=p.length,this._createEncoderBuffer([v,p])}for(var b=1,g=p.length;g>=256;g>>=8)b++;var y=a.alloc(2+b);y[0]=m,y[1]=128|b;for(var k=1+b,S=p.length;S>0;k--,S>>=8)y[k]=255&S;return this._createEncoderBuffer([y,p])},u.prototype._encodeStr=function(c,h){if(h==="bitstr")return this._createEncoderBuffer([0|c.unused,c.data]);if(h==="bmpstr"){for(var d=a.alloc(2*c.length),p=0;p<c.length;p++)d.writeUInt16BE(c.charCodeAt(p),2*p);return this._createEncoderBuffer(d)}return h==="numstr"?this._isNumstr(c)?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: numstr supports only digits and space"):h==="printstr"?this._isPrintstr(c)?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(h)||h==="objDesc"?this._createEncoderBuffer(c):this.reporter.error("Encoding of string type: "+h+" unsupported")},u.prototype._encodeObjid=function(c,h,d){if(typeof c=="string"){if(!h)return this.reporter.error("string objid given, but no values map found");if(!h.hasOwnProperty(c))return this.reporter.error("objid not found in values map");c=h[c].split(/[\s.]+/g);for(var p=0;p<c.length;p++)c[p]|=0}else if(Array.isArray(c)){c=c.slice();for(var m=0;m<c.length;m++)c[m]|=0}if(!Array.isArray(c))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(c));if(!d){if(c[1]>=40)return this.reporter.error("Second objid identifier OOB");c.splice(0,2,40*c[0]+c[1])}for(var v=0,b=0;b<c.length;b++){var g=c[b];for(v++;g>=128;g>>=7)v++}for(var y=a.alloc(v),k=y.length-1,S=c.length-1;S>=0;S--){var C=c[S];for(y[k--]=127&C;(C>>=7)>0;)y[k--]=128|127&C}return this._createEncoderBuffer(y)},u.prototype._encodeTime=function(c,h){var d,p=new Date(c);return h==="gentime"?d=[l(p.getUTCFullYear()),l(p.getUTCMonth()+1),l(p.getUTCDate()),l(p.getUTCHours()),l(p.getUTCMinutes()),l(p.getUTCSeconds()),"Z"].join(""):h==="utctime"?d=[l(p.getUTCFullYear()%100),l(p.getUTCMonth()+1),l(p.getUTCDate()),l(p.getUTCHours()),l(p.getUTCMinutes()),l(p.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+h+" time is not supported yet"),this._encodeStr(d,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(c,h){if(typeof c=="string"){if(!h)return this.reporter.error("String int or enum given, but no values map");if(!h.hasOwnProperty(c))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(c));c=h[c]}if(typeof c!="number"&&!a.isBuffer(c)){var d=c.toArray();!c.sign&&128&d[0]&&d.unshift(0),c=a.from(d)}if(a.isBuffer(c)){var p=c.length;c.length===0&&p++;var m=a.alloc(p);return c.copy(m),c.length===0&&(m[0]=0),this._createEncoderBuffer(m)}if(c<128)return this._createEncoderBuffer(c);if(c<256)return this._createEncoderBuffer([0,c]);for(var v=1,b=c;b>=256;b>>=8)v++;for(var g=new Array(v),y=g.length-1;y>=0;y--)g[y]=255&c,c>>=8;return 128&g[0]&&g.unshift(0),this._createEncoderBuffer(a.from(g))},u.prototype._encodeBool=function(c){return this._createEncoderBuffer(c?255:0)},u.prototype._use=function(c,h){return typeof c=="function"&&(c=c(h)),c._getEncoder("der").tree},u.prototype._skipDefault=function(c,h,d){var p,m=this._baseState;if(m.default===null)return!1;var v=c.join();if(m.defaultBuffer===void 0&&(m.defaultBuffer=this._encodeValue(m.default,h,d).join()),v.length!==m.defaultBuffer.length)return!1;for(p=0;p<v.length;p++)if(v[p]!==m.defaultBuffer[p])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(t,r,e){var n=e;n.der=t("./der"),n.pem=t("./pem")},{"./der":181,"./pem":183}],183:[function(t,r,e){var n=t("inherits"),a=t("./der");function o(s){a.call(this,s),this.enc="pem"}n(o,a),r.exports=o,o.prototype.encode=function(s,i){for(var u=a.prototype.encode.call(this,s).toString("base64"),l=["-----BEGIN "+i.label+"-----"],f=0;f<u.length;f+=64)l.push(u.slice(f,f+64));return l.push("-----END "+i.label+"-----"),l.join(` |
|
|
`)}},{"./der":181,inherits:440}],184:[function(t,r,e){(function(n,a){function o(A,I){if(!A)throw new Error(I||"Assertion failed")}function s(A,I){A.super_=I;var _=function(){};_.prototype=I.prototype,A.prototype=new _,A.prototype.constructor=A}function i(A,I,_){if(i.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&(I!=="le"&&I!=="be"||(_=I,I=10),this._init(A||0,I||10,_||"be"))}var u;typeof n=="object"?n.exports=i:a.BN=i,i.BN=i,i.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function l(A,I){var _=A.charCodeAt(I);return _>=65&&_<=70?_-55:_>=97&&_<=102?_-87:_-48&15}function f(A,I,_){var x=l(A,_);return _-1>=I&&(x|=l(A,_-1)<<4),x}function c(A,I,_,x){for(var T=0,E=Math.min(A.length,_),M=I;M<E;M++){var F=A.charCodeAt(M)-48;T*=x,T+=F>=49?F-49+10:F>=17?F-17+10:F}return T}i.isBN=function(A){return A instanceof i||A!==null&&typeof A=="object"&&A.constructor.wordSize===i.wordSize&&Array.isArray(A.words)},i.max=function(A,I){return A.cmp(I)>0?A:I},i.min=function(A,I){return A.cmp(I)<0?A:I},i.prototype._init=function(A,I,_){if(typeof A=="number")return this._initNumber(A,I,_);if(typeof A=="object")return this._initArray(A,I,_);I==="hex"&&(I=16),o(I===(0|I)&&I>=2&&I<=36);var x=0;(A=A.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<A.length&&(I===16?this._parseHex(A,x,_):(this._parseBase(A,I,x),_==="le"&&this._initArray(this.toArray(),I,_)))},i.prototype._initNumber=function(A,I,_){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[67108863&A],this.length=1):A<4503599627370496?(this.words=[67108863&A,A/67108864&67108863],this.length=2):(o(A<9007199254740992),this.words=[67108863&A,A/67108864&67108863,1],this.length=3),_==="le"&&this._initArray(this.toArray(),I,_)},i.prototype._initArray=function(A,I,_){if(o(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var T,E,M=0;if(_==="be")for(x=A.length-1,T=0;x>=0;x-=3)E=A[x]|A[x-1]<<8|A[x-2]<<16,this.words[T]|=E<<M&67108863,this.words[T+1]=E>>>26-M&67108863,(M+=24)>=26&&(M-=26,T++);else if(_==="le")for(x=0,T=0;x<A.length;x+=3)E=A[x]|A[x+1]<<8|A[x+2]<<16,this.words[T]|=E<<M&67108863,this.words[T+1]=E>>>26-M&67108863,(M+=24)>=26&&(M-=26,T++);return this.strip()},i.prototype._parseHex=function(A,I,_){this.length=Math.ceil((A.length-I)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var T,E=0,M=0;if(_==="be")for(x=A.length-1;x>=I;x-=2)T=f(A,I,x)<<E,this.words[M]|=67108863&T,E>=18?(E-=18,M+=1,this.words[M]|=T>>>26):E+=8;else for(x=(A.length-I)%2==0?I+1:I;x<A.length;x+=2)T=f(A,I,x)<<E,this.words[M]|=67108863&T,E>=18?(E-=18,M+=1,this.words[M]|=T>>>26):E+=8;this.strip()},i.prototype._parseBase=function(A,I,_){this.words=[0],this.length=1;for(var x=0,T=1;T<=67108863;T*=I)x++;x--,T=T/I|0;for(var E=A.length-_,M=E%x,F=Math.min(E,E-M)+_,P=0,W=_;W<F;W+=x)P=c(A,W,W+x,I),this.imuln(T),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(M!==0){var N=1;for(P=c(A,W,A.length,I),W=0;W<M;W++)N*=I;this.imuln(N),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},i.prototype.copy=function(A){A.words=new Array(this.length);for(var I=0;I<this.length;I++)A.words[I]=this.words[I];A.length=this.length,A.negative=this.negative,A.red=this.red},i.prototype.clone=function(){var A=new i(null);return this.copy(A),A},i.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(A){for(var I=new Array(A.bitLength()),_=0;_<I.length;_++){var x=_/26|0,T=_%26;I[_]=(A.words[x]&1<<T)>>>T}return I}function v(A,I,_){_.negative=I.negative^A.negative;var x=A.length+I.length|0;_.length=x,x=x-1|0;var T=0|A.words[0],E=0|I.words[0],M=T*E,F=67108863&M,P=M/67108864|0;_.words[0]=F;for(var W=1;W<x;W++){for(var N=P>>>26,q=67108863&P,nt=Math.min(W,I.length-1),J=Math.max(0,W-A.length+1);J<=nt;J++){var St=W-J|0;N+=(M=(T=0|A.words[St])*(E=0|I.words[J])+q)/67108864|0,q=67108863&M}_.words[W]=0|q,P=0|N}return P!==0?_.words[W]=0|P:_.length--,_.strip()}i.prototype.toString=function(A,I){var _;if(I=0|I||1,(A=A||10)===16||A==="hex"){_="";for(var x=0,T=0,E=0;E<this.length;E++){var M=this.words[E],F=(16777215&(M<<x|T)).toString(16);_=(T=M>>>24-x&16777215)!=0||E!==this.length-1?h[6-F.length]+F+_:F+_,(x+=2)>=26&&(x-=26,E--)}for(T!==0&&(_=T.toString(16)+_);_.length%I!=0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(A===(0|A)&&A>=2&&A<=36){var P=d[A],W=p[A];_="";var N=this.clone();for(N.negative=0;!N.isZero();){var q=N.modn(W).toString(A);_=(N=N.idivn(W)).isZero()?q+_:h[P-q.length]+q+_}for(this.isZero()&&(_="0"+_);_.length%I!=0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=67108864*this.words[1]:this.length===3&&this.words[2]===1?A+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(A,I){return o(u!==void 0),this.toArrayLike(u,A,I)},i.prototype.toArray=function(A,I){return this.toArrayLike(Array,A,I)},i.prototype.toArrayLike=function(A,I,_){var x=this.byteLength(),T=_||Math.max(1,x);o(x<=T,"byte array longer than desired length"),o(T>0,"Requested array length <= 0"),this.strip();var E,M,F=I==="le",P=new A(T),W=this.clone();if(F){for(M=0;!W.isZero();M++)E=W.andln(255),W.iushrn(8),P[M]=E;for(;M<T;M++)P[M]=0}else{for(M=0;M<T-x;M++)P[M]=0;for(M=0;!W.isZero();M++)E=W.andln(255),W.iushrn(8),P[T-M-1]=E}return P},Math.clz32?i.prototype._countBits=function(A){return 32-Math.clz32(A)}:i.prototype._countBits=function(A){var I=A,_=0;return I>=4096&&(_+=13,I>>>=13),I>=64&&(_+=7,I>>>=7),I>=8&&(_+=4,I>>>=4),I>=2&&(_+=2,I>>>=2),_+I},i.prototype._zeroBits=function(A){if(A===0)return 26;var I=A,_=0;return 8191&I||(_+=13,I>>>=13),127&I||(_+=7,I>>>=7),15&I||(_+=4,I>>>=4),3&I||(_+=2,I>>>=2),1&I||_++,_},i.prototype.bitLength=function(){var A=this.words[this.length-1],I=this._countBits(A);return 26*(this.length-1)+I},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,I=0;I<this.length;I++){var _=this._zeroBits(this.words[I]);if(A+=_,_!==26)break}return A},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},i.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var I=0;I<A.length;I++)this.words[I]=this.words[I]|A.words[I];return this.strip()},i.prototype.ior=function(A){return o(!(this.negative|A.negative)),this.iuor(A)},i.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},i.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},i.prototype.iuand=function(A){var I;I=this.length>A.length?A:this;for(var _=0;_<I.length;_++)this.words[_]=this.words[_]&A.words[_];return this.length=I.length,this.strip()},i.prototype.iand=function(A){return o(!(this.negative|A.negative)),this.iuand(A)},i.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},i.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},i.prototype.iuxor=function(A){var I,_;this.length>A.length?(I=this,_=A):(I=A,_=this);for(var x=0;x<_.length;x++)this.words[x]=I.words[x]^_.words[x];if(this!==I)for(;x<I.length;x++)this.words[x]=I.words[x];return this.length=I.length,this.strip()},i.prototype.ixor=function(A){return o(!(this.negative|A.negative)),this.iuxor(A)},i.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},i.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},i.prototype.inotn=function(A){o(typeof A=="number"&&A>=0);var I=0|Math.ceil(A/26),_=A%26;this._expand(I),_>0&&I--;for(var x=0;x<I;x++)this.words[x]=67108863&~this.words[x];return _>0&&(this.words[x]=~this.words[x]&67108863>>26-_),this.strip()},i.prototype.notn=function(A){return this.clone().inotn(A)},i.prototype.setn=function(A,I){o(typeof A=="number"&&A>=0);var _=A/26|0,x=A%26;return this._expand(_+1),this.words[_]=I?this.words[_]|1<<x:this.words[_]&~(1<<x),this.strip()},i.prototype.iadd=function(A){var I,_,x;if(this.negative!==0&&A.negative===0)return this.negative=0,I=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,I=this.isub(A),A.negative=1,I._normSign();this.length>A.length?(_=this,x=A):(_=A,x=this);for(var T=0,E=0;E<x.length;E++)I=(0|_.words[E])+(0|x.words[E])+T,this.words[E]=67108863&I,T=I>>>26;for(;T!==0&&E<_.length;E++)I=(0|_.words[E])+T,this.words[E]=67108863&I,T=I>>>26;if(this.length=_.length,T!==0)this.words[this.length]=T,this.length++;else if(_!==this)for(;E<_.length;E++)this.words[E]=_.words[E];return this},i.prototype.add=function(A){var I;return A.negative!==0&&this.negative===0?(A.negative=0,I=this.sub(A),A.negative^=1,I):A.negative===0&&this.negative!==0?(this.negative=0,I=A.sub(this),this.negative=1,I):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},i.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var I=this.iadd(A);return A.negative=1,I._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var _,x,T=this.cmp(A);if(T===0)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(_=this,x=A):(_=A,x=this);for(var E=0,M=0;M<x.length;M++)E=(I=(0|_.words[M])-(0|x.words[M])+E)>>26,this.words[M]=67108863&I;for(;E!==0&&M<_.length;M++)E=(I=(0|_.words[M])+E)>>26,this.words[M]=67108863&I;if(E===0&&M<_.length&&_!==this)for(;M<_.length;M++)this.words[M]=_.words[M];return this.length=Math.max(this.length,M),_!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(A){return this.clone().isub(A)};var b=function(A,I,_){var x,T,E,M=A.words,F=I.words,P=_.words,W=0,N=0|M[0],q=8191&N,nt=N>>>13,J=0|M[1],St=8191&J,kt=J>>>13,Mt=0|M[2],at=8191&Mt,K=Mt>>>13,it=0|M[3],st=8191&it,Nt=it>>>13,rt=0|M[4],mt=8191&rt,Xt=rt>>>13,G=0|M[5],tt=8191&G,dt=G>>>13,Dt=0|M[6],re=8191&Dt,X=Dt>>>13,Gt=0|M[7],Jt=8191&Gt,vt=Gt>>>13,gt=0|M[8],Tt=8191>,ie=gt>>>13,ot=0|M[9],ct=8191&ot,xt=ot>>>13,Ft=0|F[0],bt=8191&Ft,lt=Ft>>>13,Ct=0|F[1],zt=8191&Ct,Zt=Ct>>>13,Se=0|F[2],me=8191&Se,Ze=Se>>>13,Ae=0|F[3],_e=8191&Ae,Je=Ae>>>13,We=0|F[4],$e=8191&We,ir=We>>>13,Le=0|F[5],nr=8191&Le,Sr=Le>>>13,Pr=0|F[6],je=8191&Pr,dr=Pr>>>13,pr=0|F[7],Ne=8191&pr,fr=pr>>>13,_r=0|F[8],xr=8191&_r,Ar=_r>>>13,Br=0|F[9],tr=8191&Br,Or=Br>>>13;_.negative=A.negative^I.negative,_.length=19;var Gr=(W+(x=Math.imul(q,bt))|0)+((8191&(T=(T=Math.imul(q,lt))+Math.imul(nt,bt)|0))<<13)|0;W=((E=Math.imul(nt,lt))+(T>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,x=Math.imul(St,bt),T=(T=Math.imul(St,lt))+Math.imul(kt,bt)|0,E=Math.imul(kt,lt);var Hr=(W+(x=x+Math.imul(q,zt)|0)|0)+((8191&(T=(T=T+Math.imul(q,Zt)|0)+Math.imul(nt,zt)|0))<<13)|0;W=((E=E+Math.imul(nt,Zt)|0)+(T>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,x=Math.imul(at,bt),T=(T=Math.imul(at,lt))+Math.imul(K,bt)|0,E=Math.imul(K,lt),x=x+Math.imul(St,zt)|0,T=(T=T+Math.imul(St,Zt)|0)+Math.imul(kt,zt)|0,E=E+Math.imul(kt,Zt)|0;var vn=(W+(x=x+Math.imul(q,me)|0)|0)+((8191&(T=(T=T+Math.imul(q,Ze)|0)+Math.imul(nt,me)|0))<<13)|0;W=((E=E+Math.imul(nt,Ze)|0)+(T>>>13)|0)+(vn>>>26)|0,vn&=67108863,x=Math.imul(st,bt),T=(T=Math.imul(st,lt))+Math.imul(Nt,bt)|0,E=Math.imul(Nt,lt),x=x+Math.imul(at,zt)|0,T=(T=T+Math.imul(at,Zt)|0)+Math.imul(K,zt)|0,E=E+Math.imul(K,Zt)|0,x=x+Math.imul(St,me)|0,T=(T=T+Math.imul(St,Ze)|0)+Math.imul(kt,me)|0,E=E+Math.imul(kt,Ze)|0;var It=(W+(x=x+Math.imul(q,_e)|0)|0)+((8191&(T=(T=T+Math.imul(q,Je)|0)+Math.imul(nt,_e)|0))<<13)|0;W=((E=E+Math.imul(nt,Je)|0)+(T>>>13)|0)+(It>>>26)|0,It&=67108863,x=Math.imul(mt,bt),T=(T=Math.imul(mt,lt))+Math.imul(Xt,bt)|0,E=Math.imul(Xt,lt),x=x+Math.imul(st,zt)|0,T=(T=T+Math.imul(st,Zt)|0)+Math.imul(Nt,zt)|0,E=E+Math.imul(Nt,Zt)|0,x=x+Math.imul(at,me)|0,T=(T=T+Math.imul(at,Ze)|0)+Math.imul(K,me)|0,E=E+Math.imul(K,Ze)|0,x=x+Math.imul(St,_e)|0,T=(T=T+Math.imul(St,Je)|0)+Math.imul(kt,_e)|0,E=E+Math.imul(kt,Je)|0;var se=(W+(x=x+Math.imul(q,$e)|0)|0)+((8191&(T=(T=T+Math.imul(q,ir)|0)+Math.imul(nt,$e)|0))<<13)|0;W=((E=E+Math.imul(nt,ir)|0)+(T>>>13)|0)+(se>>>26)|0,se&=67108863,x=Math.imul(tt,bt),T=(T=Math.imul(tt,lt))+Math.imul(dt,bt)|0,E=Math.imul(dt,lt),x=x+Math.imul(mt,zt)|0,T=(T=T+Math.imul(mt,Zt)|0)+Math.imul(Xt,zt)|0,E=E+Math.imul(Xt,Zt)|0,x=x+Math.imul(st,me)|0,T=(T=T+Math.imul(st,Ze)|0)+Math.imul(Nt,me)|0,E=E+Math.imul(Nt,Ze)|0,x=x+Math.imul(at,_e)|0,T=(T=T+Math.imul(at,Je)|0)+Math.imul(K,_e)|0,E=E+Math.imul(K,Je)|0,x=x+Math.imul(St,$e)|0,T=(T=T+Math.imul(St,ir)|0)+Math.imul(kt,$e)|0,E=E+Math.imul(kt,ir)|0;var he=(W+(x=x+Math.imul(q,nr)|0)|0)+((8191&(T=(T=T+Math.imul(q,Sr)|0)+Math.imul(nt,nr)|0))<<13)|0;W=((E=E+Math.imul(nt,Sr)|0)+(T>>>13)|0)+(he>>>26)|0,he&=67108863,x=Math.imul(re,bt),T=(T=Math.imul(re,lt))+Math.imul(X,bt)|0,E=Math.imul(X,lt),x=x+Math.imul(tt,zt)|0,T=(T=T+Math.imul(tt,Zt)|0)+Math.imul(dt,zt)|0,E=E+Math.imul(dt,Zt)|0,x=x+Math.imul(mt,me)|0,T=(T=T+Math.imul(mt,Ze)|0)+Math.imul(Xt,me)|0,E=E+Math.imul(Xt,Ze)|0,x=x+Math.imul(st,_e)|0,T=(T=T+Math.imul(st,Je)|0)+Math.imul(Nt,_e)|0,E=E+Math.imul(Nt,Je)|0,x=x+Math.imul(at,$e)|0,T=(T=T+Math.imul(at,ir)|0)+Math.imul(K,$e)|0,E=E+Math.imul(K,ir)|0,x=x+Math.imul(St,nr)|0,T=(T=T+Math.imul(St,Sr)|0)+Math.imul(kt,nr)|0,E=E+Math.imul(kt,Sr)|0;var yr=(W+(x=x+Math.imul(q,je)|0)|0)+((8191&(T=(T=T+Math.imul(q,dr)|0)+Math.imul(nt,je)|0))<<13)|0;W=((E=E+Math.imul(nt,dr)|0)+(T>>>13)|0)+(yr>>>26)|0,yr&=67108863,x=Math.imul(Jt,bt),T=(T=Math.imul(Jt,lt))+Math.imul(vt,bt)|0,E=Math.imul(vt,lt),x=x+Math.imul(re,zt)|0,T=(T=T+Math.imul(re,Zt)|0)+Math.imul(X,zt)|0,E=E+Math.imul(X,Zt)|0,x=x+Math.imul(tt,me)|0,T=(T=T+Math.imul(tt,Ze)|0)+Math.imul(dt,me)|0,E=E+Math.imul(dt,Ze)|0,x=x+Math.imul(mt,_e)|0,T=(T=T+Math.imul(mt,Je)|0)+Math.imul(Xt,_e)|0,E=E+Math.imul(Xt,Je)|0,x=x+Math.imul(st,$e)|0,T=(T=T+Math.imul(st,ir)|0)+Math.imul(Nt,$e)|0,E=E+Math.imul(Nt,ir)|0,x=x+Math.imul(at,nr)|0,T=(T=T+Math.imul(at,Sr)|0)+Math.imul(K,nr)|0,E=E+Math.imul(K,Sr)|0,x=x+Math.imul(St,je)|0,T=(T=T+Math.imul(St,dr)|0)+Math.imul(kt,je)|0,E=E+Math.imul(kt,dr)|0;var Ir=(W+(x=x+Math.imul(q,Ne)|0)|0)+((8191&(T=(T=T+Math.imul(q,fr)|0)+Math.imul(nt,Ne)|0))<<13)|0;W=((E=E+Math.imul(nt,fr)|0)+(T>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,x=Math.imul(Tt,bt),T=(T=Math.imul(Tt,lt))+Math.imul(ie,bt)|0,E=Math.imul(ie,lt),x=x+Math.imul(Jt,zt)|0,T=(T=T+Math.imul(Jt,Zt)|0)+Math.imul(vt,zt)|0,E=E+Math.imul(vt,Zt)|0,x=x+Math.imul(re,me)|0,T=(T=T+Math.imul(re,Ze)|0)+Math.imul(X,me)|0,E=E+Math.imul(X,Ze)|0,x=x+Math.imul(tt,_e)|0,T=(T=T+Math.imul(tt,Je)|0)+Math.imul(dt,_e)|0,E=E+Math.imul(dt,Je)|0,x=x+Math.imul(mt,$e)|0,T=(T=T+Math.imul(mt,ir)|0)+Math.imul(Xt,$e)|0,E=E+Math.imul(Xt,ir)|0,x=x+Math.imul(st,nr)|0,T=(T=T+Math.imul(st,Sr)|0)+Math.imul(Nt,nr)|0,E=E+Math.imul(Nt,Sr)|0,x=x+Math.imul(at,je)|0,T=(T=T+Math.imul(at,dr)|0)+Math.imul(K,je)|0,E=E+Math.imul(K,dr)|0,x=x+Math.imul(St,Ne)|0,T=(T=T+Math.imul(St,fr)|0)+Math.imul(kt,Ne)|0,E=E+Math.imul(kt,fr)|0;var xn=(W+(x=x+Math.imul(q,xr)|0)|0)+((8191&(T=(T=T+Math.imul(q,Ar)|0)+Math.imul(nt,xr)|0))<<13)|0;W=((E=E+Math.imul(nt,Ar)|0)+(T>>>13)|0)+(xn>>>26)|0,xn&=67108863,x=Math.imul(ct,bt),T=(T=Math.imul(ct,lt))+Math.imul(xt,bt)|0,E=Math.imul(xt,lt),x=x+Math.imul(Tt,zt)|0,T=(T=T+Math.imul(Tt,Zt)|0)+Math.imul(ie,zt)|0,E=E+Math.imul(ie,Zt)|0,x=x+Math.imul(Jt,me)|0,T=(T=T+Math.imul(Jt,Ze)|0)+Math.imul(vt,me)|0,E=E+Math.imul(vt,Ze)|0,x=x+Math.imul(re,_e)|0,T=(T=T+Math.imul(re,Je)|0)+Math.imul(X,_e)|0,E=E+Math.imul(X,Je)|0,x=x+Math.imul(tt,$e)|0,T=(T=T+Math.imul(tt,ir)|0)+Math.imul(dt,$e)|0,E=E+Math.imul(dt,ir)|0,x=x+Math.imul(mt,nr)|0,T=(T=T+Math.imul(mt,Sr)|0)+Math.imul(Xt,nr)|0,E=E+Math.imul(Xt,Sr)|0,x=x+Math.imul(st,je)|0,T=(T=T+Math.imul(st,dr)|0)+Math.imul(Nt,je)|0,E=E+Math.imul(Nt,dr)|0,x=x+Math.imul(at,Ne)|0,T=(T=T+Math.imul(at,fr)|0)+Math.imul(K,Ne)|0,E=E+Math.imul(K,fr)|0,x=x+Math.imul(St,xr)|0,T=(T=T+Math.imul(St,Ar)|0)+Math.imul(kt,xr)|0,E=E+Math.imul(kt,Ar)|0;var ai=(W+(x=x+Math.imul(q,tr)|0)|0)+((8191&(T=(T=T+Math.imul(q,Or)|0)+Math.imul(nt,tr)|0))<<13)|0;W=((E=E+Math.imul(nt,Or)|0)+(T>>>13)|0)+(ai>>>26)|0,ai&=67108863,x=Math.imul(ct,zt),T=(T=Math.imul(ct,Zt))+Math.imul(xt,zt)|0,E=Math.imul(xt,Zt),x=x+Math.imul(Tt,me)|0,T=(T=T+Math.imul(Tt,Ze)|0)+Math.imul(ie,me)|0,E=E+Math.imul(ie,Ze)|0,x=x+Math.imul(Jt,_e)|0,T=(T=T+Math.imul(Jt,Je)|0)+Math.imul(vt,_e)|0,E=E+Math.imul(vt,Je)|0,x=x+Math.imul(re,$e)|0,T=(T=T+Math.imul(re,ir)|0)+Math.imul(X,$e)|0,E=E+Math.imul(X,ir)|0,x=x+Math.imul(tt,nr)|0,T=(T=T+Math.imul(tt,Sr)|0)+Math.imul(dt,nr)|0,E=E+Math.imul(dt,Sr)|0,x=x+Math.imul(mt,je)|0,T=(T=T+Math.imul(mt,dr)|0)+Math.imul(Xt,je)|0,E=E+Math.imul(Xt,dr)|0,x=x+Math.imul(st,Ne)|0,T=(T=T+Math.imul(st,fr)|0)+Math.imul(Nt,Ne)|0,E=E+Math.imul(Nt,fr)|0,x=x+Math.imul(at,xr)|0,T=(T=T+Math.imul(at,Ar)|0)+Math.imul(K,xr)|0,E=E+Math.imul(K,Ar)|0;var _i=(W+(x=x+Math.imul(St,tr)|0)|0)+((8191&(T=(T=T+Math.imul(St,Or)|0)+Math.imul(kt,tr)|0))<<13)|0;W=((E=E+Math.imul(kt,Or)|0)+(T>>>13)|0)+(_i>>>26)|0,_i&=67108863,x=Math.imul(ct,me),T=(T=Math.imul(ct,Ze))+Math.imul(xt,me)|0,E=Math.imul(xt,Ze),x=x+Math.imul(Tt,_e)|0,T=(T=T+Math.imul(Tt,Je)|0)+Math.imul(ie,_e)|0,E=E+Math.imul(ie,Je)|0,x=x+Math.imul(Jt,$e)|0,T=(T=T+Math.imul(Jt,ir)|0)+Math.imul(vt,$e)|0,E=E+Math.imul(vt,ir)|0,x=x+Math.imul(re,nr)|0,T=(T=T+Math.imul(re,Sr)|0)+Math.imul(X,nr)|0,E=E+Math.imul(X,Sr)|0,x=x+Math.imul(tt,je)|0,T=(T=T+Math.imul(tt,dr)|0)+Math.imul(dt,je)|0,E=E+Math.imul(dt,dr)|0,x=x+Math.imul(mt,Ne)|0,T=(T=T+Math.imul(mt,fr)|0)+Math.imul(Xt,Ne)|0,E=E+Math.imul(Xt,fr)|0,x=x+Math.imul(st,xr)|0,T=(T=T+Math.imul(st,Ar)|0)+Math.imul(Nt,xr)|0,E=E+Math.imul(Nt,Ar)|0;var Mi=(W+(x=x+Math.imul(at,tr)|0)|0)+((8191&(T=(T=T+Math.imul(at,Or)|0)+Math.imul(K,tr)|0))<<13)|0;W=((E=E+Math.imul(K,Or)|0)+(T>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,x=Math.imul(ct,_e),T=(T=Math.imul(ct,Je))+Math.imul(xt,_e)|0,E=Math.imul(xt,Je),x=x+Math.imul(Tt,$e)|0,T=(T=T+Math.imul(Tt,ir)|0)+Math.imul(ie,$e)|0,E=E+Math.imul(ie,ir)|0,x=x+Math.imul(Jt,nr)|0,T=(T=T+Math.imul(Jt,Sr)|0)+Math.imul(vt,nr)|0,E=E+Math.imul(vt,Sr)|0,x=x+Math.imul(re,je)|0,T=(T=T+Math.imul(re,dr)|0)+Math.imul(X,je)|0,E=E+Math.imul(X,dr)|0,x=x+Math.imul(tt,Ne)|0,T=(T=T+Math.imul(tt,fr)|0)+Math.imul(dt,Ne)|0,E=E+Math.imul(dt,fr)|0,x=x+Math.imul(mt,xr)|0,T=(T=T+Math.imul(mt,Ar)|0)+Math.imul(Xt,xr)|0,E=E+Math.imul(Xt,Ar)|0;var Sa=(W+(x=x+Math.imul(st,tr)|0)|0)+((8191&(T=(T=T+Math.imul(st,Or)|0)+Math.imul(Nt,tr)|0))<<13)|0;W=((E=E+Math.imul(Nt,Or)|0)+(T>>>13)|0)+(Sa>>>26)|0,Sa&=67108863,x=Math.imul(ct,$e),T=(T=Math.imul(ct,ir))+Math.imul(xt,$e)|0,E=Math.imul(xt,ir),x=x+Math.imul(Tt,nr)|0,T=(T=T+Math.imul(Tt,Sr)|0)+Math.imul(ie,nr)|0,E=E+Math.imul(ie,Sr)|0,x=x+Math.imul(Jt,je)|0,T=(T=T+Math.imul(Jt,dr)|0)+Math.imul(vt,je)|0,E=E+Math.imul(vt,dr)|0,x=x+Math.imul(re,Ne)|0,T=(T=T+Math.imul(re,fr)|0)+Math.imul(X,Ne)|0,E=E+Math.imul(X,fr)|0,x=x+Math.imul(tt,xr)|0,T=(T=T+Math.imul(tt,Ar)|0)+Math.imul(dt,xr)|0,E=E+Math.imul(dt,Ar)|0;var Ri=(W+(x=x+Math.imul(mt,tr)|0)|0)+((8191&(T=(T=T+Math.imul(mt,Or)|0)+Math.imul(Xt,tr)|0))<<13)|0;W=((E=E+Math.imul(Xt,Or)|0)+(T>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,x=Math.imul(ct,nr),T=(T=Math.imul(ct,Sr))+Math.imul(xt,nr)|0,E=Math.imul(xt,Sr),x=x+Math.imul(Tt,je)|0,T=(T=T+Math.imul(Tt,dr)|0)+Math.imul(ie,je)|0,E=E+Math.imul(ie,dr)|0,x=x+Math.imul(Jt,Ne)|0,T=(T=T+Math.imul(Jt,fr)|0)+Math.imul(vt,Ne)|0,E=E+Math.imul(vt,fr)|0,x=x+Math.imul(re,xr)|0,T=(T=T+Math.imul(re,Ar)|0)+Math.imul(X,xr)|0,E=E+Math.imul(X,Ar)|0;var ei=(W+(x=x+Math.imul(tt,tr)|0)|0)+((8191&(T=(T=T+Math.imul(tt,Or)|0)+Math.imul(dt,tr)|0))<<13)|0;W=((E=E+Math.imul(dt,Or)|0)+(T>>>13)|0)+(ei>>>26)|0,ei&=67108863,x=Math.imul(ct,je),T=(T=Math.imul(ct,dr))+Math.imul(xt,je)|0,E=Math.imul(xt,dr),x=x+Math.imul(Tt,Ne)|0,T=(T=T+Math.imul(Tt,fr)|0)+Math.imul(ie,Ne)|0,E=E+Math.imul(ie,fr)|0,x=x+Math.imul(Jt,xr)|0,T=(T=T+Math.imul(Jt,Ar)|0)+Math.imul(vt,xr)|0,E=E+Math.imul(vt,Ar)|0;var gn=(W+(x=x+Math.imul(re,tr)|0)|0)+((8191&(T=(T=T+Math.imul(re,Or)|0)+Math.imul(X,tr)|0))<<13)|0;W=((E=E+Math.imul(X,Or)|0)+(T>>>13)|0)+(gn>>>26)|0,gn&=67108863,x=Math.imul(ct,Ne),T=(T=Math.imul(ct,fr))+Math.imul(xt,Ne)|0,E=Math.imul(xt,fr),x=x+Math.imul(Tt,xr)|0,T=(T=T+Math.imul(Tt,Ar)|0)+Math.imul(ie,xr)|0,E=E+Math.imul(ie,Ar)|0;var Kr=(W+(x=x+Math.imul(Jt,tr)|0)|0)+((8191&(T=(T=T+Math.imul(Jt,Or)|0)+Math.imul(vt,tr)|0))<<13)|0;W=((E=E+Math.imul(vt,Or)|0)+(T>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,x=Math.imul(ct,xr),T=(T=Math.imul(ct,Ar))+Math.imul(xt,xr)|0,E=Math.imul(xt,Ar);var Ba=(W+(x=x+Math.imul(Tt,tr)|0)|0)+((8191&(T=(T=T+Math.imul(Tt,Or)|0)+Math.imul(ie,tr)|0))<<13)|0;W=((E=E+Math.imul(ie,Or)|0)+(T>>>13)|0)+(Ba>>>26)|0,Ba&=67108863;var Vi=(W+(x=Math.imul(ct,tr))|0)+((8191&(T=(T=Math.imul(ct,Or))+Math.imul(xt,tr)|0))<<13)|0;return W=((E=Math.imul(xt,Or))+(T>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,P[0]=Gr,P[1]=Hr,P[2]=vn,P[3]=It,P[4]=se,P[5]=he,P[6]=yr,P[7]=Ir,P[8]=xn,P[9]=ai,P[10]=_i,P[11]=Mi,P[12]=Sa,P[13]=Ri,P[14]=ei,P[15]=gn,P[16]=Kr,P[17]=Ba,P[18]=Vi,W!==0&&(P[19]=W,_.length++),_};function g(A,I,_){_.negative=I.negative^A.negative,_.length=A.length+I.length;for(var x=0,T=0,E=0;E<_.length-1;E++){var M=T;T=0;for(var F=67108863&x,P=Math.min(E,I.length-1),W=Math.max(0,E-A.length+1);W<=P;W++){var N=E-W,q=(0|A.words[N])*(0|I.words[W]),nt=67108863&q;F=67108863&(nt=nt+F|0),T+=(M=(M=M+(q/67108864|0)|0)+(nt>>>26)|0)>>>26,M&=67108863}_.words[E]=F,x=M,M=T}return x!==0?_.words[E]=x:_.length--,_.strip()}function y(A,I,_){return new k().mulp(A,I,_)}function k(A,I){this.x=A,this.y=I}Math.imul||(b=v),i.prototype.mulTo=function(A,I){var _=this.length+A.length;return this.length===10&&A.length===10?b(this,A,I):_<63?v(this,A,I):_<1024?g(this,A,I):y(this,A,I)},k.prototype.makeRBT=function(A){for(var I=new Array(A),_=i.prototype._countBits(A)-1,x=0;x<A;x++)I[x]=this.revBin(x,_,A);return I},k.prototype.revBin=function(A,I,_){if(A===0||A===_-1)return A;for(var x=0,T=0;T<I;T++)x|=(1&A)<<I-T-1,A>>=1;return x},k.prototype.permute=function(A,I,_,x,T,E){for(var M=0;M<E;M++)x[M]=I[A[M]],T[M]=_[A[M]]},k.prototype.transform=function(A,I,_,x,T,E){this.permute(E,A,I,_,x,T);for(var M=1;M<T;M<<=1)for(var F=M<<1,P=Math.cos(2*Math.PI/F),W=Math.sin(2*Math.PI/F),N=0;N<T;N+=F)for(var q=P,nt=W,J=0;J<M;J++){var St=_[N+J],kt=x[N+J],Mt=_[N+J+M],at=x[N+J+M],K=q*Mt-nt*at;at=q*at+nt*Mt,Mt=K,_[N+J]=St+Mt,x[N+J]=kt+at,_[N+J+M]=St-Mt,x[N+J+M]=kt-at,J!==F&&(K=P*q-W*nt,nt=P*nt+W*q,q=K)}},k.prototype.guessLen13b=function(A,I){var _=1|Math.max(I,A),x=1&_,T=0;for(_=_/2|0;_;_>>>=1)T++;return 1<<T+1+x},k.prototype.conjugate=function(A,I,_){if(!(_<=1))for(var x=0;x<_/2;x++){var T=A[x];A[x]=A[_-x-1],A[_-x-1]=T,T=I[x],I[x]=-I[_-x-1],I[_-x-1]=-T}},k.prototype.normalize13b=function(A,I){for(var _=0,x=0;x<I/2;x++){var T=8192*Math.round(A[2*x+1]/I)+Math.round(A[2*x]/I)+_;A[x]=67108863&T,_=T<67108864?0:T/67108864|0}return A},k.prototype.convert13b=function(A,I,_,x){for(var T=0,E=0;E<I;E++)T+=0|A[E],_[2*E]=8191&T,T>>>=13,_[2*E+1]=8191&T,T>>>=13;for(E=2*I;E<x;++E)_[E]=0;o(T===0),o(!(-8192&T))},k.prototype.stub=function(A){for(var I=new Array(A),_=0;_<A;_++)I[_]=0;return I},k.prototype.mulp=function(A,I,_){var x=2*this.guessLen13b(A.length,I.length),T=this.makeRBT(x),E=this.stub(x),M=new Array(x),F=new Array(x),P=new Array(x),W=new Array(x),N=new Array(x),q=new Array(x),nt=_.words;nt.length=x,this.convert13b(A.words,A.length,M,x),this.convert13b(I.words,I.length,W,x),this.transform(M,E,F,P,x,T),this.transform(W,E,N,q,x,T);for(var J=0;J<x;J++){var St=F[J]*N[J]-P[J]*q[J];P[J]=F[J]*q[J]+P[J]*N[J],F[J]=St}return this.conjugate(F,P,x),this.transform(F,P,nt,E,x,T),this.conjugate(nt,E,x),this.normalize13b(nt,x),_.negative=A.negative^I.negative,_.length=A.length+I.length,_.strip()},i.prototype.mul=function(A){var I=new i(null);return I.words=new Array(this.length+A.length),this.mulTo(A,I)},i.prototype.mulf=function(A){var I=new i(null);return I.words=new Array(this.length+A.length),y(this,A,I)},i.prototype.imul=function(A){return this.clone().mulTo(A,this)},i.prototype.imuln=function(A){o(typeof A=="number"),o(A<67108864);for(var I=0,_=0;_<this.length;_++){var x=(0|this.words[_])*A,T=(67108863&x)+(67108863&I);I>>=26,I+=x/67108864|0,I+=T>>>26,this.words[_]=67108863&T}return I!==0&&(this.words[_]=I,this.length++),this},i.prototype.muln=function(A){return this.clone().imuln(A)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(A){var I=m(A);if(I.length===0)return new i(1);for(var _=this,x=0;x<I.length&&I[x]===0;x++,_=_.sqr());if(++x<I.length)for(var T=_.sqr();x<I.length;x++,T=T.sqr())I[x]!==0&&(_=_.mul(T));return _},i.prototype.iushln=function(A){o(typeof A=="number"&&A>=0);var I,_=A%26,x=(A-_)/26,T=67108863>>>26-_<<26-_;if(_!==0){var E=0;for(I=0;I<this.length;I++){var M=this.words[I]&T,F=(0|this.words[I])-M<<_;this.words[I]=F|E,E=M>>>26-_}E&&(this.words[I]=E,this.length++)}if(x!==0){for(I=this.length-1;I>=0;I--)this.words[I+x]=this.words[I];for(I=0;I<x;I++)this.words[I]=0;this.length+=x}return this.strip()},i.prototype.ishln=function(A){return o(this.negative===0),this.iushln(A)},i.prototype.iushrn=function(A,I,_){var x;o(typeof A=="number"&&A>=0),x=I?(I-I%26)/26:0;var T=A%26,E=Math.min((A-T)/26,this.length),M=67108863^67108863>>>T<<T,F=_;if(x-=E,x=Math.max(0,x),F){for(var P=0;P<E;P++)F.words[P]=this.words[P];F.length=E}if(E!==0)if(this.length>E)for(this.length-=E,P=0;P<this.length;P++)this.words[P]=this.words[P+E];else this.words[0]=0,this.length=1;var W=0;for(P=this.length-1;P>=0&&(W!==0||P>=x);P--){var N=0|this.words[P];this.words[P]=W<<26-T|N>>>T,W=N&M}return F&&W!==0&&(F.words[F.length++]=W),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(A,I,_){return o(this.negative===0),this.iushrn(A,I,_)},i.prototype.shln=function(A){return this.clone().ishln(A)},i.prototype.ushln=function(A){return this.clone().iushln(A)},i.prototype.shrn=function(A){return this.clone().ishrn(A)},i.prototype.ushrn=function(A){return this.clone().iushrn(A)},i.prototype.testn=function(A){o(typeof A=="number"&&A>=0);var I=A%26,_=(A-I)/26,x=1<<I;return!(this.length<=_||!(this.words[_]&x))},i.prototype.imaskn=function(A){o(typeof A=="number"&&A>=0);var I=A%26,_=(A-I)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(I!==0&&_++,this.length=Math.min(_,this.length),I!==0){var x=67108863^67108863>>>I<<I;this.words[this.length-1]&=x}return this.strip()},i.prototype.maskn=function(A){return this.clone().imaskn(A)},i.prototype.iaddn=function(A){return o(typeof A=="number"),o(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(0|this.words[0])<A?(this.words[0]=A-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},i.prototype._iaddn=function(A){this.words[0]+=A;for(var I=0;I<this.length&&this.words[I]>=67108864;I++)this.words[I]-=67108864,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},i.prototype.isubn=function(A){if(o(typeof A=="number"),o(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I<this.length&&this.words[I]<0;I++)this.words[I]+=67108864,this.words[I+1]-=1;return this.strip()},i.prototype.addn=function(A){return this.clone().iaddn(A)},i.prototype.subn=function(A){return this.clone().isubn(A)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(A,I,_){var x,T,E=A.length+_;this._expand(E);var M=0;for(x=0;x<A.length;x++){T=(0|this.words[x+_])+M;var F=(0|A.words[x])*I;M=((T-=67108863&F)>>26)-(F/67108864|0),this.words[x+_]=67108863&T}for(;x<this.length-_;x++)M=(T=(0|this.words[x+_])+M)>>26,this.words[x+_]=67108863&T;if(M===0)return this.strip();for(o(M===-1),M=0,x=0;x<this.length;x++)M=(T=-(0|this.words[x])+M)>>26,this.words[x]=67108863&T;return this.negative=1,this.strip()},i.prototype._wordDiv=function(A,I){var _=this.length-A.length,x=this.clone(),T=A,E=0|T.words[T.length-1];(_=26-this._countBits(E))!=0&&(T=T.ushln(_),x.iushln(_),E=0|T.words[T.length-1]);var M,F=x.length-T.length;if(I!=="mod"){(M=new i(null)).length=F+1,M.words=new Array(M.length);for(var P=0;P<M.length;P++)M.words[P]=0}var W=x.clone()._ishlnsubmul(T,1,F);W.negative===0&&(x=W,M&&(M.words[F]=1));for(var N=F-1;N>=0;N--){var q=67108864*(0|x.words[T.length+N])+(0|x.words[T.length+N-1]);for(q=Math.min(q/E|0,67108863),x._ishlnsubmul(T,q,N);x.negative!==0;)q--,x.negative=0,x._ishlnsubmul(T,1,N),x.isZero()||(x.negative^=1);M&&(M.words[N]=q)}return M&&M.strip(),x.strip(),I!=="div"&&_!==0&&x.iushrn(_),{div:M||null,mod:x}},i.prototype.divmod=function(A,I,_){return o(!A.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&A.negative===0?(E=this.neg().divmod(A,I),I!=="mod"&&(x=E.div.neg()),I!=="div"&&(T=E.mod.neg(),_&&T.negative!==0&&T.iadd(A)),{div:x,mod:T}):this.negative===0&&A.negative!==0?(E=this.divmod(A.neg(),I),I!=="mod"&&(x=E.div.neg()),{div:x,mod:E.mod}):this.negative&A.negative?(E=this.neg().divmod(A.neg(),I),I!=="div"&&(T=E.mod.neg(),_&&T.negative!==0&&T.isub(A)),{div:E.div,mod:T}):A.length>this.length||this.cmp(A)<0?{div:new i(0),mod:this}:A.length===1?I==="div"?{div:this.divn(A.words[0]),mod:null}:I==="mod"?{div:null,mod:new i(this.modn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new i(this.modn(A.words[0]))}:this._wordDiv(A,I);var x,T,E},i.prototype.div=function(A){return this.divmod(A,"div",!1).div},i.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},i.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},i.prototype.divRound=function(A){var I=this.divmod(A);if(I.mod.isZero())return I.div;var _=I.div.negative!==0?I.mod.isub(A):I.mod,x=A.ushrn(1),T=A.andln(1),E=_.cmp(x);return E<0||T===1&&E===0?I.div:I.div.negative!==0?I.div.isubn(1):I.div.iaddn(1)},i.prototype.modn=function(A){o(A<=67108863);for(var I=(1<<26)%A,_=0,x=this.length-1;x>=0;x--)_=(I*_+(0|this.words[x]))%A;return _},i.prototype.idivn=function(A){o(A<=67108863);for(var I=0,_=this.length-1;_>=0;_--){var x=(0|this.words[_])+67108864*I;this.words[_]=x/A|0,I=x%A}return this.strip()},i.prototype.divn=function(A){return this.clone().idivn(A)},i.prototype.egcd=function(A){o(A.negative===0),o(!A.isZero());var I=this,_=A.clone();I=I.negative!==0?I.umod(A):I.clone();for(var x=new i(1),T=new i(0),E=new i(0),M=new i(1),F=0;I.isEven()&&_.isEven();)I.iushrn(1),_.iushrn(1),++F;for(var P=_.clone(),W=I.clone();!I.isZero();){for(var N=0,q=1;!(I.words[0]&q)&&N<26;++N,q<<=1);if(N>0)for(I.iushrn(N);N-- >0;)(x.isOdd()||T.isOdd())&&(x.iadd(P),T.isub(W)),x.iushrn(1),T.iushrn(1);for(var nt=0,J=1;!(_.words[0]&J)&&nt<26;++nt,J<<=1);if(nt>0)for(_.iushrn(nt);nt-- >0;)(E.isOdd()||M.isOdd())&&(E.iadd(P),M.isub(W)),E.iushrn(1),M.iushrn(1);I.cmp(_)>=0?(I.isub(_),x.isub(E),T.isub(M)):(_.isub(I),E.isub(x),M.isub(T))}return{a:E,b:M,gcd:_.iushln(F)}},i.prototype._invmp=function(A){o(A.negative===0),o(!A.isZero());var I=this,_=A.clone();I=I.negative!==0?I.umod(A):I.clone();for(var x,T=new i(1),E=new i(0),M=_.clone();I.cmpn(1)>0&&_.cmpn(1)>0;){for(var F=0,P=1;!(I.words[0]&P)&&F<26;++F,P<<=1);if(F>0)for(I.iushrn(F);F-- >0;)T.isOdd()&&T.iadd(M),T.iushrn(1);for(var W=0,N=1;!(_.words[0]&N)&&W<26;++W,N<<=1);if(W>0)for(_.iushrn(W);W-- >0;)E.isOdd()&&E.iadd(M),E.iushrn(1);I.cmp(_)>=0?(I.isub(_),T.isub(E)):(_.isub(I),E.isub(T))}return(x=I.cmpn(1)===0?T:E).cmpn(0)<0&&x.iadd(A),x},i.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var I=this.clone(),_=A.clone();I.negative=0,_.negative=0;for(var x=0;I.isEven()&&_.isEven();x++)I.iushrn(1),_.iushrn(1);for(;;){for(;I.isEven();)I.iushrn(1);for(;_.isEven();)_.iushrn(1);var T=I.cmp(_);if(T<0){var E=I;I=_,_=E}else if(T===0||_.cmpn(1)===0)break;I.isub(_)}return _.iushln(x)},i.prototype.invm=function(A){return this.egcd(A).a.umod(A)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(A){return this.words[0]&A},i.prototype.bincn=function(A){o(typeof A=="number");var I=A%26,_=(A-I)/26,x=1<<I;if(this.length<=_)return this._expand(_+1),this.words[_]|=x,this;for(var T=x,E=_;T!==0&&E<this.length;E++){var M=0|this.words[E];T=(M+=T)>>>26,M&=67108863,this.words[E]=M}return T!==0&&(this.words[E]=T,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(A){var I,_=A<0;if(this.negative!==0&&!_)return-1;if(this.negative===0&&_)return 1;if(this.strip(),this.length>1)I=1;else{_&&(A=-A),o(A<=67108863,"Number is too big");var x=0|this.words[0];I=x===A?0:x<A?-1:1}return this.negative!==0?0|-I:I},i.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var I=this.ucmp(A);return this.negative!==0?0|-I:I},i.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var I=0,_=this.length-1;_>=0;_--){var x=0|this.words[_],T=0|A.words[_];if(x!==T){x<T?I=-1:x>T&&(I=1);break}}return I},i.prototype.gtn=function(A){return this.cmpn(A)===1},i.prototype.gt=function(A){return this.cmp(A)===1},i.prototype.gten=function(A){return this.cmpn(A)>=0},i.prototype.gte=function(A){return this.cmp(A)>=0},i.prototype.ltn=function(A){return this.cmpn(A)===-1},i.prototype.lt=function(A){return this.cmp(A)===-1},i.prototype.lten=function(A){return this.cmpn(A)<=0},i.prototype.lte=function(A){return this.cmp(A)<=0},i.prototype.eqn=function(A){return this.cmpn(A)===0},i.prototype.eq=function(A){return this.cmp(A)===0},i.red=function(A){return new z(A)},i.prototype.toRed=function(A){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(A){return this.red=A,this},i.prototype.forceRed=function(A){return o(!this.red,"Already a number in reduction context"),this._forceRed(A)},i.prototype.redAdd=function(A){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},i.prototype.redIAdd=function(A){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},i.prototype.redSub=function(A){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},i.prototype.redISub=function(A){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},i.prototype.redShl=function(A){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},i.prototype.redMul=function(A){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},i.prototype.redIMul=function(A){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(A){return o(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var S={k256:null,p224:null,p192:null,p25519:null};function C(A,I){this.name=A,this.p=new i(I,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function O(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function L(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function U(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(A){if(typeof A=="string"){var I=i._prime(A);this.m=I.p,this.prime=I}else o(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function Y(A){z.call(this,A),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}C.prototype._tmp=function(){var A=new i(null);return A.words=new Array(Math.ceil(this.n/13)),A},C.prototype.ireduce=function(A){var I,_=A;do this.split(_,this.tmp),I=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength();while(I>this.n);var x=I<this.n?-1:_.ucmp(this.p);return x===0?(_.words[0]=0,_.length=1):x>0?_.isub(this.p):_.strip!==void 0?_.strip():_._strip(),_},C.prototype.split=function(A,I){A.iushrn(this.n,0,I)},C.prototype.imulK=function(A){return A.imul(this.k)},s(O,C),O.prototype.split=function(A,I){for(var _=4194303,x=Math.min(A.length,9),T=0;T<x;T++)I.words[T]=A.words[T];if(I.length=x,A.length<=9)return A.words[0]=0,void(A.length=1);var E=A.words[9];for(I.words[I.length++]=E&_,T=10;T<A.length;T++){var M=0|A.words[T];A.words[T-10]=(M&_)<<4|E>>>22,E=M}E>>>=22,A.words[T-10]=E,E===0&&A.length>10?A.length-=10:A.length-=9},O.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var I=0,_=0;_<A.length;_++){var x=0|A.words[_];I+=977*x,A.words[_]=67108863&I,I=64*x+(I/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A},s(L,C),s(j,C),s(U,C),U.prototype.imulK=function(A){for(var I=0,_=0;_<A.length;_++){var x=19*(0|A.words[_])+I,T=67108863&x;x>>>=26,A.words[_]=T,I=x}return I!==0&&(A.words[A.length++]=I),A},i._prime=function(A){if(S[A])return S[A];var I;if(A==="k256")I=new O;else if(A==="p224")I=new L;else if(A==="p192")I=new j;else{if(A!=="p25519")throw new Error("Unknown prime "+A);I=new U}return S[A]=I,I},z.prototype._verify1=function(A){o(A.negative===0,"red works only with positives"),o(A.red,"red works only with red numbers")},z.prototype._verify2=function(A,I){o(!(A.negative|I.negative),"red works only with positives"),o(A.red&&A.red===I.red,"red works only with red numbers")},z.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):A.umod(this.m)._forceRed(this)},z.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},z.prototype.add=function(A,I){this._verify2(A,I);var _=A.add(I);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},z.prototype.iadd=function(A,I){this._verify2(A,I);var _=A.iadd(I);return _.cmp(this.m)>=0&&_.isub(this.m),_},z.prototype.sub=function(A,I){this._verify2(A,I);var _=A.sub(I);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},z.prototype.isub=function(A,I){this._verify2(A,I);var _=A.isub(I);return _.cmpn(0)<0&&_.iadd(this.m),_},z.prototype.shl=function(A,I){return this._verify1(A),this.imod(A.ushln(I))},z.prototype.imul=function(A,I){return this._verify2(A,I),this.imod(A.imul(I))},z.prototype.mul=function(A,I){return this._verify2(A,I),this.imod(A.mul(I))},z.prototype.isqr=function(A){return this.imul(A,A.clone())},z.prototype.sqr=function(A){return this.mul(A,A)},z.prototype.sqrt=function(A){if(A.isZero())return A.clone();var I=this.m.andln(3);if(o(I%2==1),I===3){var _=this.m.add(new i(1)).iushrn(2);return this.pow(A,_)}for(var x=this.m.subn(1),T=0;!x.isZero()&&x.andln(1)===0;)T++,x.iushrn(1);o(!x.isZero());var E=new i(1).toRed(this),M=E.redNeg(),F=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new i(2*P*P).toRed(this);this.pow(P,F).cmp(M)!==0;)P.redIAdd(M);for(var W=this.pow(P,x),N=this.pow(A,x.addn(1).iushrn(1)),q=this.pow(A,x),nt=T;q.cmp(E)!==0;){for(var J=q,St=0;J.cmp(E)!==0;St++)J=J.redSqr();o(St<nt);var kt=this.pow(W,new i(1).iushln(nt-St-1));N=N.redMul(kt),W=kt.redSqr(),q=q.redMul(W),nt=St}return N},z.prototype.invm=function(A){var I=A._invmp(this.m);return I.negative!==0?(I.negative=0,this.imod(I).redNeg()):this.imod(I)},z.prototype.pow=function(A,I){if(I.isZero())return new i(1).toRed(this);if(I.cmpn(1)===0)return A.clone();var _=4,x=new Array(1<<_);x[0]=new i(1).toRed(this),x[1]=A;for(var T=2;T<x.length;T++)x[T]=this.mul(x[T-1],A);var E=x[0],M=0,F=0,P=I.bitLength()%26;for(P===0&&(P=26),T=I.length-1;T>=0;T--){for(var W=I.words[T],N=P-1;N>=0;N--){var q=W>>N&1;E!==x[0]&&(E=this.sqr(E)),q!==0||M!==0?(M<<=1,M|=q,(++F===_||T===0&&N===0)&&(E=this.mul(E,x[M]),F=0,M=0)):F=0}P=26}return E},z.prototype.convertTo=function(A){var I=A.umod(this.m);return I===A?I.clone():I},z.prototype.convertFrom=function(A){var I=A.clone();return I.red=null,I},i.mont=function(A){return new Y(A)},s(Y,z),Y.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},Y.prototype.convertFrom=function(A){var I=this.imod(A.mul(this.rinv));return I.red=null,I},Y.prototype.imul=function(A,I){if(A.isZero()||I.isZero())return A.words[0]=0,A.length=1,A;var _=A.imul(I),x=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=_.isub(x).iushrn(this.shift),E=T;return T.cmp(this.m)>=0?E=T.isub(this.m):T.cmpn(0)<0&&(E=T.iadd(this.m)),E._forceRed(this)},Y.prototype.mul=function(A,I){if(A.isZero()||I.isZero())return new i(0)._forceRed(this);var _=A.mul(I),x=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=_.isub(x).iushrn(this.shift),E=T;return T.cmp(this.m)>=0?E=T.isub(this.m):T.cmpn(0)<0&&(E=T.iadd(this.m)),E._forceRed(this)},Y.prototype.invm=function(A){return this.imod(A._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r,void 0)},{buffer:188}],185:[function(t,r,e){e.byteLength=f,e.toByteArray=h,e.fromByteArray=m;for(var n=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,u=s.length;i<u;++i)n[i]=s[i],a[s.charCodeAt(i)]=i;function l(v){var b=v.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=v.indexOf("=");return g===-1&&(g=b),[g,g===b?0:4-g%4]}function f(v){var b=l(v),g=b[0],y=b[1];return 3*(g+y)/4-y}function c(v,b,g){return 3*(b+g)/4-g}function h(v){var b,g,y=l(v),k=y[0],S=y[1],C=new o(c(v,k,S)),O=0,L=S>0?k-4:k;for(g=0;g<L;g+=4)b=a[v.charCodeAt(g)]<<18|a[v.charCodeAt(g+1)]<<12|a[v.charCodeAt(g+2)]<<6|a[v.charCodeAt(g+3)],C[O++]=b>>16&255,C[O++]=b>>8&255,C[O++]=255&b;return S===2&&(b=a[v.charCodeAt(g)]<<2|a[v.charCodeAt(g+1)]>>4,C[O++]=255&b),S===1&&(b=a[v.charCodeAt(g)]<<10|a[v.charCodeAt(g+1)]<<4|a[v.charCodeAt(g+2)]>>2,C[O++]=b>>8&255,C[O++]=255&b),C}function d(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[63&v]}function p(v,b,g){for(var y,k=[],S=b;S<g;S+=3)y=(v[S]<<16&16711680)+(v[S+1]<<8&65280)+(255&v[S+2]),k.push(d(y));return k.join("")}function m(v){for(var b,g=v.length,y=g%3,k=[],S=16383,C=0,O=g-y;C<O;C+=S)k.push(p(v,C,C+S>O?O:C+S));return y===1?(b=v[g-1],k.push(n[b>>2]+n[b<<4&63]+"==")):y===2&&(b=(v[g-2]<<8)+v[g-1],k.push(n[b>>10]+n[b>>4&63]+n[b<<2&63]+"=")),k.join("")}a[45]=62,a[95]=63},{}],186:[function(t,r,e){(function(n,a){function o(_,x){if(!_)throw new Error(x||"Assertion failed")}function s(_,x){_.super_=x;var T=function(){};T.prototype=x.prototype,_.prototype=new T,_.prototype.constructor=_}function i(_,x,T){if(i.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&(x!=="le"&&x!=="be"||(T=x,x=10),this._init(_||0,x||10,T||"be"))}var u;typeof n=="object"?n.exports=i:a.BN=i,i.BN=i,i.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function l(_,x){var T=_.charCodeAt(x);return T>=48&&T<=57?T-48:T>=65&&T<=70?T-55:T>=97&&T<=102?T-87:void o(!1,"Invalid character in "+_)}function f(_,x,T){var E=l(_,T);return T-1>=x&&(E|=l(_,T-1)<<4),E}function c(_,x,T,E){for(var M=0,F=0,P=Math.min(_.length,T),W=x;W<P;W++){var N=_.charCodeAt(W)-48;M*=E,F=N>=49?N-49+10:N>=17?N-17+10:N,o(N>=0&&F<E,"Invalid character"),M+=F}return M}function h(_,x){_.words=x.words,_.length=x.length,_.negative=x.negative,_.red=x.red}if(i.isBN=function(_){return _ instanceof i||_!==null&&typeof _=="object"&&_.constructor.wordSize===i.wordSize&&Array.isArray(_.words)},i.max=function(_,x){return _.cmp(x)>0?_:x},i.min=function(_,x){return _.cmp(x)<0?_:x},i.prototype._init=function(_,x,T){if(typeof _=="number")return this._initNumber(_,x,T);if(typeof _=="object")return this._initArray(_,x,T);x==="hex"&&(x=16),o(x===(0|x)&&x>=2&&x<=36);var E=0;(_=_.toString().replace(/\s+/g,""))[0]==="-"&&(E++,this.negative=1),E<_.length&&(x===16?this._parseHex(_,E,T):(this._parseBase(_,x,E),T==="le"&&this._initArray(this.toArray(),x,T)))},i.prototype._initNumber=function(_,x,T){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[67108863&_],this.length=1):_<4503599627370496?(this.words=[67108863&_,_/67108864&67108863],this.length=2):(o(_<9007199254740992),this.words=[67108863&_,_/67108864&67108863,1],this.length=3),T==="le"&&this._initArray(this.toArray(),x,T)},i.prototype._initArray=function(_,x,T){if(o(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var M,F,P=0;if(T==="be")for(E=_.length-1,M=0;E>=0;E-=3)F=_[E]|_[E-1]<<8|_[E-2]<<16,this.words[M]|=F<<P&67108863,this.words[M+1]=F>>>26-P&67108863,(P+=24)>=26&&(P-=26,M++);else if(T==="le")for(E=0,M=0;E<_.length;E+=3)F=_[E]|_[E+1]<<8|_[E+2]<<16,this.words[M]|=F<<P&67108863,this.words[M+1]=F>>>26-P&67108863,(P+=24)>=26&&(P-=26,M++);return this._strip()},i.prototype._parseHex=function(_,x,T){this.length=Math.ceil((_.length-x)/6),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var M,F=0,P=0;if(T==="be")for(E=_.length-1;E>=x;E-=2)M=f(_,x,E)<<F,this.words[P]|=67108863&M,F>=18?(F-=18,P+=1,this.words[P]|=M>>>26):F+=8;else for(E=(_.length-x)%2==0?x+1:x;E<_.length;E+=2)M=f(_,x,E)<<F,this.words[P]|=67108863&M,F>=18?(F-=18,P+=1,this.words[P]|=M>>>26):F+=8;this._strip()},i.prototype._parseBase=function(_,x,T){this.words=[0],this.length=1;for(var E=0,M=1;M<=67108863;M*=x)E++;E--,M=M/x|0;for(var F=_.length-T,P=F%E,W=Math.min(F,F-P)+T,N=0,q=T;q<W;q+=E)N=c(_,q,q+E,x),this.imuln(M),this.words[0]+N<67108864?this.words[0]+=N:this._iaddn(N);if(P!==0){var nt=1;for(N=c(_,q,_.length,x),q=0;q<P;q++)nt*=x;this.imuln(nt),this.words[0]+N<67108864?this.words[0]+=N:this._iaddn(N)}this._strip()},i.prototype.copy=function(_){_.words=new Array(this.length);for(var x=0;x<this.length;x++)_.words[x]=this.words[x];_.length=this.length,_.negative=this.negative,_.red=this.red},i.prototype._move=function(_){h(_,this)},i.prototype.clone=function(){var _=new i(null);return this.copy(_),_},i.prototype._expand=function(_){for(;this.length<_;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(_,x){var T;if(x=0|x||1,(_=_||10)===16||_==="hex"){T="";for(var E=0,M=0,F=0;F<this.length;F++){var P=this.words[F],W=(16777215&(P<<E|M)).toString(16);M=P>>>24-E&16777215,(E+=2)>=26&&(E-=26,F--),T=M!==0||F!==this.length-1?p[6-W.length]+W+T:W+T}for(M!==0&&(T=M.toString(16)+T);T.length%x!=0;)T="0"+T;return this.negative!==0&&(T="-"+T),T}if(_===(0|_)&&_>=2&&_<=36){var N=m[_],q=v[_];T="";var nt=this.clone();for(nt.negative=0;!nt.isZero();){var J=nt.modrn(q).toString(_);T=(nt=nt.idivn(q)).isZero()?J+T:p[N-J.length]+J+T}for(this.isZero()&&(T="0"+T);T.length%x!=0;)T="0"+T;return this.negative!==0&&(T="-"+T),T}o(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var _=this.words[0];return this.length===2?_+=67108864*this.words[1]:this.length===3&&this.words[2]===1?_+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-_:_},i.prototype.toJSON=function(){return this.toString(16,2)},u&&(i.prototype.toBuffer=function(_,x){return this.toArrayLike(u,_,x)}),i.prototype.toArray=function(_,x){return this.toArrayLike(Array,_,x)};var b=function(_,x){return _.allocUnsafe?_.allocUnsafe(x):new _(x)};function g(_){for(var x=new Array(_.bitLength()),T=0;T<x.length;T++){var E=T/26|0,M=T%26;x[T]=_.words[E]>>>M&1}return x}function y(_,x,T){T.negative=x.negative^_.negative;var E=_.length+x.length|0;T.length=E,E=E-1|0;var M=0|_.words[0],F=0|x.words[0],P=M*F,W=67108863&P,N=P/67108864|0;T.words[0]=W;for(var q=1;q<E;q++){for(var nt=N>>>26,J=67108863&N,St=Math.min(q,x.length-1),kt=Math.max(0,q-_.length+1);kt<=St;kt++){var Mt=q-kt|0;nt+=(P=(M=0|_.words[Mt])*(F=0|x.words[kt])+J)/67108864|0,J=67108863&P}T.words[q]=0|J,N=0|nt}return N!==0?T.words[q]=0|N:T.length--,T._strip()}i.prototype.toArrayLike=function(_,x,T){this._strip();var E=this.byteLength(),M=T||Math.max(1,E);o(E<=M,"byte array longer than desired length"),o(M>0,"Requested array length <= 0");var F=b(_,M);return this["_toArrayLike"+(x==="le"?"LE":"BE")](F,E),F},i.prototype._toArrayLikeLE=function(_,x){for(var T=0,E=0,M=0,F=0;M<this.length;M++){var P=this.words[M]<<F|E;_[T++]=255&P,T<_.length&&(_[T++]=P>>8&255),T<_.length&&(_[T++]=P>>16&255),F===6?(T<_.length&&(_[T++]=P>>24&255),E=0,F=0):(E=P>>>24,F+=2)}if(T<_.length)for(_[T++]=E;T<_.length;)_[T++]=0},i.prototype._toArrayLikeBE=function(_,x){for(var T=_.length-1,E=0,M=0,F=0;M<this.length;M++){var P=this.words[M]<<F|E;_[T--]=255&P,T>=0&&(_[T--]=P>>8&255),T>=0&&(_[T--]=P>>16&255),F===6?(T>=0&&(_[T--]=P>>24&255),E=0,F=0):(E=P>>>24,F+=2)}if(T>=0)for(_[T--]=E;T>=0;)_[T--]=0},Math.clz32?i.prototype._countBits=function(_){return 32-Math.clz32(_)}:i.prototype._countBits=function(_){var x=_,T=0;return x>=4096&&(T+=13,x>>>=13),x>=64&&(T+=7,x>>>=7),x>=8&&(T+=4,x>>>=4),x>=2&&(T+=2,x>>>=2),T+x},i.prototype._zeroBits=function(_){if(_===0)return 26;var x=_,T=0;return 8191&x||(T+=13,x>>>=13),127&x||(T+=7,x>>>=7),15&x||(T+=4,x>>>=4),3&x||(T+=2,x>>>=2),1&x||T++,T},i.prototype.bitLength=function(){var _=this.words[this.length-1],x=this._countBits(_);return 26*(this.length-1)+x},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var _=0,x=0;x<this.length;x++){var T=this._zeroBits(this.words[x]);if(_+=T,T!==26)break}return _},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(_){return this.negative!==0?this.abs().inotn(_).iaddn(1):this.clone()},i.prototype.fromTwos=function(_){return this.testn(_-1)?this.notn(_).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(_){for(;this.length<_.length;)this.words[this.length++]=0;for(var x=0;x<_.length;x++)this.words[x]=this.words[x]|_.words[x];return this._strip()},i.prototype.ior=function(_){return o(!(this.negative|_.negative)),this.iuor(_)},i.prototype.or=function(_){return this.length>_.length?this.clone().ior(_):_.clone().ior(this)},i.prototype.uor=function(_){return this.length>_.length?this.clone().iuor(_):_.clone().iuor(this)},i.prototype.iuand=function(_){var x;x=this.length>_.length?_:this;for(var T=0;T<x.length;T++)this.words[T]=this.words[T]&_.words[T];return this.length=x.length,this._strip()},i.prototype.iand=function(_){return o(!(this.negative|_.negative)),this.iuand(_)},i.prototype.and=function(_){return this.length>_.length?this.clone().iand(_):_.clone().iand(this)},i.prototype.uand=function(_){return this.length>_.length?this.clone().iuand(_):_.clone().iuand(this)},i.prototype.iuxor=function(_){var x,T;this.length>_.length?(x=this,T=_):(x=_,T=this);for(var E=0;E<T.length;E++)this.words[E]=x.words[E]^T.words[E];if(this!==x)for(;E<x.length;E++)this.words[E]=x.words[E];return this.length=x.length,this._strip()},i.prototype.ixor=function(_){return o(!(this.negative|_.negative)),this.iuxor(_)},i.prototype.xor=function(_){return this.length>_.length?this.clone().ixor(_):_.clone().ixor(this)},i.prototype.uxor=function(_){return this.length>_.length?this.clone().iuxor(_):_.clone().iuxor(this)},i.prototype.inotn=function(_){o(typeof _=="number"&&_>=0);var x=0|Math.ceil(_/26),T=_%26;this._expand(x),T>0&&x--;for(var E=0;E<x;E++)this.words[E]=67108863&~this.words[E];return T>0&&(this.words[E]=~this.words[E]&67108863>>26-T),this._strip()},i.prototype.notn=function(_){return this.clone().inotn(_)},i.prototype.setn=function(_,x){o(typeof _=="number"&&_>=0);var T=_/26|0,E=_%26;return this._expand(T+1),this.words[T]=x?this.words[T]|1<<E:this.words[T]&~(1<<E),this._strip()},i.prototype.iadd=function(_){var x,T,E;if(this.negative!==0&&_.negative===0)return this.negative=0,x=this.isub(_),this.negative^=1,this._normSign();if(this.negative===0&&_.negative!==0)return _.negative=0,x=this.isub(_),_.negative=1,x._normSign();this.length>_.length?(T=this,E=_):(T=_,E=this);for(var M=0,F=0;F<E.length;F++)x=(0|T.words[F])+(0|E.words[F])+M,this.words[F]=67108863&x,M=x>>>26;for(;M!==0&&F<T.length;F++)x=(0|T.words[F])+M,this.words[F]=67108863&x,M=x>>>26;if(this.length=T.length,M!==0)this.words[this.length]=M,this.length++;else if(T!==this)for(;F<T.length;F++)this.words[F]=T.words[F];return this},i.prototype.add=function(_){var x;return _.negative!==0&&this.negative===0?(_.negative=0,x=this.sub(_),_.negative^=1,x):_.negative===0&&this.negative!==0?(this.negative=0,x=_.sub(this),this.negative=1,x):this.length>_.length?this.clone().iadd(_):_.clone().iadd(this)},i.prototype.isub=function(_){if(_.negative!==0){_.negative=0;var x=this.iadd(_);return _.negative=1,x._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(_),this.negative=1,this._normSign();var T,E,M=this.cmp(_);if(M===0)return this.negative=0,this.length=1,this.words[0]=0,this;M>0?(T=this,E=_):(T=_,E=this);for(var F=0,P=0;P<E.length;P++)F=(x=(0|T.words[P])-(0|E.words[P])+F)>>26,this.words[P]=67108863&x;for(;F!==0&&P<T.length;P++)F=(x=(0|T.words[P])+F)>>26,this.words[P]=67108863&x;if(F===0&&P<T.length&&T!==this)for(;P<T.length;P++)this.words[P]=T.words[P];return this.length=Math.max(this.length,P),T!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(_){return this.clone().isub(_)};var k=function(_,x,T){var E,M,F,P=_.words,W=x.words,N=T.words,q=0,nt=0|P[0],J=8191&nt,St=nt>>>13,kt=0|P[1],Mt=8191&kt,at=kt>>>13,K=0|P[2],it=8191&K,st=K>>>13,Nt=0|P[3],rt=8191&Nt,mt=Nt>>>13,Xt=0|P[4],G=8191&Xt,tt=Xt>>>13,dt=0|P[5],Dt=8191&dt,re=dt>>>13,X=0|P[6],Gt=8191&X,Jt=X>>>13,vt=0|P[7],gt=8191&vt,Tt=vt>>>13,ie=0|P[8],ot=8191&ie,ct=ie>>>13,xt=0|P[9],Ft=8191&xt,bt=xt>>>13,lt=0|W[0],Ct=8191<,zt=lt>>>13,Zt=0|W[1],Se=8191&Zt,me=Zt>>>13,Ze=0|W[2],Ae=8191&Ze,_e=Ze>>>13,Je=0|W[3],We=8191&Je,$e=Je>>>13,ir=0|W[4],Le=8191&ir,nr=ir>>>13,Sr=0|W[5],Pr=8191&Sr,je=Sr>>>13,dr=0|W[6],pr=8191&dr,Ne=dr>>>13,fr=0|W[7],_r=8191&fr,xr=fr>>>13,Ar=0|W[8],Br=8191&Ar,tr=Ar>>>13,Or=0|W[9],Gr=8191&Or,Hr=Or>>>13;T.negative=_.negative^x.negative,T.length=19;var vn=(q+(E=Math.imul(J,Ct))|0)+((8191&(M=(M=Math.imul(J,zt))+Math.imul(St,Ct)|0))<<13)|0;q=((F=Math.imul(St,zt))+(M>>>13)|0)+(vn>>>26)|0,vn&=67108863,E=Math.imul(Mt,Ct),M=(M=Math.imul(Mt,zt))+Math.imul(at,Ct)|0,F=Math.imul(at,zt);var It=(q+(E=E+Math.imul(J,Se)|0)|0)+((8191&(M=(M=M+Math.imul(J,me)|0)+Math.imul(St,Se)|0))<<13)|0;q=((F=F+Math.imul(St,me)|0)+(M>>>13)|0)+(It>>>26)|0,It&=67108863,E=Math.imul(it,Ct),M=(M=Math.imul(it,zt))+Math.imul(st,Ct)|0,F=Math.imul(st,zt),E=E+Math.imul(Mt,Se)|0,M=(M=M+Math.imul(Mt,me)|0)+Math.imul(at,Se)|0,F=F+Math.imul(at,me)|0;var se=(q+(E=E+Math.imul(J,Ae)|0)|0)+((8191&(M=(M=M+Math.imul(J,_e)|0)+Math.imul(St,Ae)|0))<<13)|0;q=((F=F+Math.imul(St,_e)|0)+(M>>>13)|0)+(se>>>26)|0,se&=67108863,E=Math.imul(rt,Ct),M=(M=Math.imul(rt,zt))+Math.imul(mt,Ct)|0,F=Math.imul(mt,zt),E=E+Math.imul(it,Se)|0,M=(M=M+Math.imul(it,me)|0)+Math.imul(st,Se)|0,F=F+Math.imul(st,me)|0,E=E+Math.imul(Mt,Ae)|0,M=(M=M+Math.imul(Mt,_e)|0)+Math.imul(at,Ae)|0,F=F+Math.imul(at,_e)|0;var he=(q+(E=E+Math.imul(J,We)|0)|0)+((8191&(M=(M=M+Math.imul(J,$e)|0)+Math.imul(St,We)|0))<<13)|0;q=((F=F+Math.imul(St,$e)|0)+(M>>>13)|0)+(he>>>26)|0,he&=67108863,E=Math.imul(G,Ct),M=(M=Math.imul(G,zt))+Math.imul(tt,Ct)|0,F=Math.imul(tt,zt),E=E+Math.imul(rt,Se)|0,M=(M=M+Math.imul(rt,me)|0)+Math.imul(mt,Se)|0,F=F+Math.imul(mt,me)|0,E=E+Math.imul(it,Ae)|0,M=(M=M+Math.imul(it,_e)|0)+Math.imul(st,Ae)|0,F=F+Math.imul(st,_e)|0,E=E+Math.imul(Mt,We)|0,M=(M=M+Math.imul(Mt,$e)|0)+Math.imul(at,We)|0,F=F+Math.imul(at,$e)|0;var yr=(q+(E=E+Math.imul(J,Le)|0)|0)+((8191&(M=(M=M+Math.imul(J,nr)|0)+Math.imul(St,Le)|0))<<13)|0;q=((F=F+Math.imul(St,nr)|0)+(M>>>13)|0)+(yr>>>26)|0,yr&=67108863,E=Math.imul(Dt,Ct),M=(M=Math.imul(Dt,zt))+Math.imul(re,Ct)|0,F=Math.imul(re,zt),E=E+Math.imul(G,Se)|0,M=(M=M+Math.imul(G,me)|0)+Math.imul(tt,Se)|0,F=F+Math.imul(tt,me)|0,E=E+Math.imul(rt,Ae)|0,M=(M=M+Math.imul(rt,_e)|0)+Math.imul(mt,Ae)|0,F=F+Math.imul(mt,_e)|0,E=E+Math.imul(it,We)|0,M=(M=M+Math.imul(it,$e)|0)+Math.imul(st,We)|0,F=F+Math.imul(st,$e)|0,E=E+Math.imul(Mt,Le)|0,M=(M=M+Math.imul(Mt,nr)|0)+Math.imul(at,Le)|0,F=F+Math.imul(at,nr)|0;var Ir=(q+(E=E+Math.imul(J,Pr)|0)|0)+((8191&(M=(M=M+Math.imul(J,je)|0)+Math.imul(St,Pr)|0))<<13)|0;q=((F=F+Math.imul(St,je)|0)+(M>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,E=Math.imul(Gt,Ct),M=(M=Math.imul(Gt,zt))+Math.imul(Jt,Ct)|0,F=Math.imul(Jt,zt),E=E+Math.imul(Dt,Se)|0,M=(M=M+Math.imul(Dt,me)|0)+Math.imul(re,Se)|0,F=F+Math.imul(re,me)|0,E=E+Math.imul(G,Ae)|0,M=(M=M+Math.imul(G,_e)|0)+Math.imul(tt,Ae)|0,F=F+Math.imul(tt,_e)|0,E=E+Math.imul(rt,We)|0,M=(M=M+Math.imul(rt,$e)|0)+Math.imul(mt,We)|0,F=F+Math.imul(mt,$e)|0,E=E+Math.imul(it,Le)|0,M=(M=M+Math.imul(it,nr)|0)+Math.imul(st,Le)|0,F=F+Math.imul(st,nr)|0,E=E+Math.imul(Mt,Pr)|0,M=(M=M+Math.imul(Mt,je)|0)+Math.imul(at,Pr)|0,F=F+Math.imul(at,je)|0;var xn=(q+(E=E+Math.imul(J,pr)|0)|0)+((8191&(M=(M=M+Math.imul(J,Ne)|0)+Math.imul(St,pr)|0))<<13)|0;q=((F=F+Math.imul(St,Ne)|0)+(M>>>13)|0)+(xn>>>26)|0,xn&=67108863,E=Math.imul(gt,Ct),M=(M=Math.imul(gt,zt))+Math.imul(Tt,Ct)|0,F=Math.imul(Tt,zt),E=E+Math.imul(Gt,Se)|0,M=(M=M+Math.imul(Gt,me)|0)+Math.imul(Jt,Se)|0,F=F+Math.imul(Jt,me)|0,E=E+Math.imul(Dt,Ae)|0,M=(M=M+Math.imul(Dt,_e)|0)+Math.imul(re,Ae)|0,F=F+Math.imul(re,_e)|0,E=E+Math.imul(G,We)|0,M=(M=M+Math.imul(G,$e)|0)+Math.imul(tt,We)|0,F=F+Math.imul(tt,$e)|0,E=E+Math.imul(rt,Le)|0,M=(M=M+Math.imul(rt,nr)|0)+Math.imul(mt,Le)|0,F=F+Math.imul(mt,nr)|0,E=E+Math.imul(it,Pr)|0,M=(M=M+Math.imul(it,je)|0)+Math.imul(st,Pr)|0,F=F+Math.imul(st,je)|0,E=E+Math.imul(Mt,pr)|0,M=(M=M+Math.imul(Mt,Ne)|0)+Math.imul(at,pr)|0,F=F+Math.imul(at,Ne)|0;var ai=(q+(E=E+Math.imul(J,_r)|0)|0)+((8191&(M=(M=M+Math.imul(J,xr)|0)+Math.imul(St,_r)|0))<<13)|0;q=((F=F+Math.imul(St,xr)|0)+(M>>>13)|0)+(ai>>>26)|0,ai&=67108863,E=Math.imul(ot,Ct),M=(M=Math.imul(ot,zt))+Math.imul(ct,Ct)|0,F=Math.imul(ct,zt),E=E+Math.imul(gt,Se)|0,M=(M=M+Math.imul(gt,me)|0)+Math.imul(Tt,Se)|0,F=F+Math.imul(Tt,me)|0,E=E+Math.imul(Gt,Ae)|0,M=(M=M+Math.imul(Gt,_e)|0)+Math.imul(Jt,Ae)|0,F=F+Math.imul(Jt,_e)|0,E=E+Math.imul(Dt,We)|0,M=(M=M+Math.imul(Dt,$e)|0)+Math.imul(re,We)|0,F=F+Math.imul(re,$e)|0,E=E+Math.imul(G,Le)|0,M=(M=M+Math.imul(G,nr)|0)+Math.imul(tt,Le)|0,F=F+Math.imul(tt,nr)|0,E=E+Math.imul(rt,Pr)|0,M=(M=M+Math.imul(rt,je)|0)+Math.imul(mt,Pr)|0,F=F+Math.imul(mt,je)|0,E=E+Math.imul(it,pr)|0,M=(M=M+Math.imul(it,Ne)|0)+Math.imul(st,pr)|0,F=F+Math.imul(st,Ne)|0,E=E+Math.imul(Mt,_r)|0,M=(M=M+Math.imul(Mt,xr)|0)+Math.imul(at,_r)|0,F=F+Math.imul(at,xr)|0;var _i=(q+(E=E+Math.imul(J,Br)|0)|0)+((8191&(M=(M=M+Math.imul(J,tr)|0)+Math.imul(St,Br)|0))<<13)|0;q=((F=F+Math.imul(St,tr)|0)+(M>>>13)|0)+(_i>>>26)|0,_i&=67108863,E=Math.imul(Ft,Ct),M=(M=Math.imul(Ft,zt))+Math.imul(bt,Ct)|0,F=Math.imul(bt,zt),E=E+Math.imul(ot,Se)|0,M=(M=M+Math.imul(ot,me)|0)+Math.imul(ct,Se)|0,F=F+Math.imul(ct,me)|0,E=E+Math.imul(gt,Ae)|0,M=(M=M+Math.imul(gt,_e)|0)+Math.imul(Tt,Ae)|0,F=F+Math.imul(Tt,_e)|0,E=E+Math.imul(Gt,We)|0,M=(M=M+Math.imul(Gt,$e)|0)+Math.imul(Jt,We)|0,F=F+Math.imul(Jt,$e)|0,E=E+Math.imul(Dt,Le)|0,M=(M=M+Math.imul(Dt,nr)|0)+Math.imul(re,Le)|0,F=F+Math.imul(re,nr)|0,E=E+Math.imul(G,Pr)|0,M=(M=M+Math.imul(G,je)|0)+Math.imul(tt,Pr)|0,F=F+Math.imul(tt,je)|0,E=E+Math.imul(rt,pr)|0,M=(M=M+Math.imul(rt,Ne)|0)+Math.imul(mt,pr)|0,F=F+Math.imul(mt,Ne)|0,E=E+Math.imul(it,_r)|0,M=(M=M+Math.imul(it,xr)|0)+Math.imul(st,_r)|0,F=F+Math.imul(st,xr)|0,E=E+Math.imul(Mt,Br)|0,M=(M=M+Math.imul(Mt,tr)|0)+Math.imul(at,Br)|0,F=F+Math.imul(at,tr)|0;var Mi=(q+(E=E+Math.imul(J,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(J,Hr)|0)+Math.imul(St,Gr)|0))<<13)|0;q=((F=F+Math.imul(St,Hr)|0)+(M>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,E=Math.imul(Ft,Se),M=(M=Math.imul(Ft,me))+Math.imul(bt,Se)|0,F=Math.imul(bt,me),E=E+Math.imul(ot,Ae)|0,M=(M=M+Math.imul(ot,_e)|0)+Math.imul(ct,Ae)|0,F=F+Math.imul(ct,_e)|0,E=E+Math.imul(gt,We)|0,M=(M=M+Math.imul(gt,$e)|0)+Math.imul(Tt,We)|0,F=F+Math.imul(Tt,$e)|0,E=E+Math.imul(Gt,Le)|0,M=(M=M+Math.imul(Gt,nr)|0)+Math.imul(Jt,Le)|0,F=F+Math.imul(Jt,nr)|0,E=E+Math.imul(Dt,Pr)|0,M=(M=M+Math.imul(Dt,je)|0)+Math.imul(re,Pr)|0,F=F+Math.imul(re,je)|0,E=E+Math.imul(G,pr)|0,M=(M=M+Math.imul(G,Ne)|0)+Math.imul(tt,pr)|0,F=F+Math.imul(tt,Ne)|0,E=E+Math.imul(rt,_r)|0,M=(M=M+Math.imul(rt,xr)|0)+Math.imul(mt,_r)|0,F=F+Math.imul(mt,xr)|0,E=E+Math.imul(it,Br)|0,M=(M=M+Math.imul(it,tr)|0)+Math.imul(st,Br)|0,F=F+Math.imul(st,tr)|0;var Sa=(q+(E=E+Math.imul(Mt,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(Mt,Hr)|0)+Math.imul(at,Gr)|0))<<13)|0;q=((F=F+Math.imul(at,Hr)|0)+(M>>>13)|0)+(Sa>>>26)|0,Sa&=67108863,E=Math.imul(Ft,Ae),M=(M=Math.imul(Ft,_e))+Math.imul(bt,Ae)|0,F=Math.imul(bt,_e),E=E+Math.imul(ot,We)|0,M=(M=M+Math.imul(ot,$e)|0)+Math.imul(ct,We)|0,F=F+Math.imul(ct,$e)|0,E=E+Math.imul(gt,Le)|0,M=(M=M+Math.imul(gt,nr)|0)+Math.imul(Tt,Le)|0,F=F+Math.imul(Tt,nr)|0,E=E+Math.imul(Gt,Pr)|0,M=(M=M+Math.imul(Gt,je)|0)+Math.imul(Jt,Pr)|0,F=F+Math.imul(Jt,je)|0,E=E+Math.imul(Dt,pr)|0,M=(M=M+Math.imul(Dt,Ne)|0)+Math.imul(re,pr)|0,F=F+Math.imul(re,Ne)|0,E=E+Math.imul(G,_r)|0,M=(M=M+Math.imul(G,xr)|0)+Math.imul(tt,_r)|0,F=F+Math.imul(tt,xr)|0,E=E+Math.imul(rt,Br)|0,M=(M=M+Math.imul(rt,tr)|0)+Math.imul(mt,Br)|0,F=F+Math.imul(mt,tr)|0;var Ri=(q+(E=E+Math.imul(it,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(it,Hr)|0)+Math.imul(st,Gr)|0))<<13)|0;q=((F=F+Math.imul(st,Hr)|0)+(M>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,E=Math.imul(Ft,We),M=(M=Math.imul(Ft,$e))+Math.imul(bt,We)|0,F=Math.imul(bt,$e),E=E+Math.imul(ot,Le)|0,M=(M=M+Math.imul(ot,nr)|0)+Math.imul(ct,Le)|0,F=F+Math.imul(ct,nr)|0,E=E+Math.imul(gt,Pr)|0,M=(M=M+Math.imul(gt,je)|0)+Math.imul(Tt,Pr)|0,F=F+Math.imul(Tt,je)|0,E=E+Math.imul(Gt,pr)|0,M=(M=M+Math.imul(Gt,Ne)|0)+Math.imul(Jt,pr)|0,F=F+Math.imul(Jt,Ne)|0,E=E+Math.imul(Dt,_r)|0,M=(M=M+Math.imul(Dt,xr)|0)+Math.imul(re,_r)|0,F=F+Math.imul(re,xr)|0,E=E+Math.imul(G,Br)|0,M=(M=M+Math.imul(G,tr)|0)+Math.imul(tt,Br)|0,F=F+Math.imul(tt,tr)|0;var ei=(q+(E=E+Math.imul(rt,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(rt,Hr)|0)+Math.imul(mt,Gr)|0))<<13)|0;q=((F=F+Math.imul(mt,Hr)|0)+(M>>>13)|0)+(ei>>>26)|0,ei&=67108863,E=Math.imul(Ft,Le),M=(M=Math.imul(Ft,nr))+Math.imul(bt,Le)|0,F=Math.imul(bt,nr),E=E+Math.imul(ot,Pr)|0,M=(M=M+Math.imul(ot,je)|0)+Math.imul(ct,Pr)|0,F=F+Math.imul(ct,je)|0,E=E+Math.imul(gt,pr)|0,M=(M=M+Math.imul(gt,Ne)|0)+Math.imul(Tt,pr)|0,F=F+Math.imul(Tt,Ne)|0,E=E+Math.imul(Gt,_r)|0,M=(M=M+Math.imul(Gt,xr)|0)+Math.imul(Jt,_r)|0,F=F+Math.imul(Jt,xr)|0,E=E+Math.imul(Dt,Br)|0,M=(M=M+Math.imul(Dt,tr)|0)+Math.imul(re,Br)|0,F=F+Math.imul(re,tr)|0;var gn=(q+(E=E+Math.imul(G,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(G,Hr)|0)+Math.imul(tt,Gr)|0))<<13)|0;q=((F=F+Math.imul(tt,Hr)|0)+(M>>>13)|0)+(gn>>>26)|0,gn&=67108863,E=Math.imul(Ft,Pr),M=(M=Math.imul(Ft,je))+Math.imul(bt,Pr)|0,F=Math.imul(bt,je),E=E+Math.imul(ot,pr)|0,M=(M=M+Math.imul(ot,Ne)|0)+Math.imul(ct,pr)|0,F=F+Math.imul(ct,Ne)|0,E=E+Math.imul(gt,_r)|0,M=(M=M+Math.imul(gt,xr)|0)+Math.imul(Tt,_r)|0,F=F+Math.imul(Tt,xr)|0,E=E+Math.imul(Gt,Br)|0,M=(M=M+Math.imul(Gt,tr)|0)+Math.imul(Jt,Br)|0,F=F+Math.imul(Jt,tr)|0;var Kr=(q+(E=E+Math.imul(Dt,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(Dt,Hr)|0)+Math.imul(re,Gr)|0))<<13)|0;q=((F=F+Math.imul(re,Hr)|0)+(M>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,E=Math.imul(Ft,pr),M=(M=Math.imul(Ft,Ne))+Math.imul(bt,pr)|0,F=Math.imul(bt,Ne),E=E+Math.imul(ot,_r)|0,M=(M=M+Math.imul(ot,xr)|0)+Math.imul(ct,_r)|0,F=F+Math.imul(ct,xr)|0,E=E+Math.imul(gt,Br)|0,M=(M=M+Math.imul(gt,tr)|0)+Math.imul(Tt,Br)|0,F=F+Math.imul(Tt,tr)|0;var Ba=(q+(E=E+Math.imul(Gt,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(Gt,Hr)|0)+Math.imul(Jt,Gr)|0))<<13)|0;q=((F=F+Math.imul(Jt,Hr)|0)+(M>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,E=Math.imul(Ft,_r),M=(M=Math.imul(Ft,xr))+Math.imul(bt,_r)|0,F=Math.imul(bt,xr),E=E+Math.imul(ot,Br)|0,M=(M=M+Math.imul(ot,tr)|0)+Math.imul(ct,Br)|0,F=F+Math.imul(ct,tr)|0;var Vi=(q+(E=E+Math.imul(gt,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(gt,Hr)|0)+Math.imul(Tt,Gr)|0))<<13)|0;q=((F=F+Math.imul(Tt,Hr)|0)+(M>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,E=Math.imul(Ft,Br),M=(M=Math.imul(Ft,tr))+Math.imul(bt,Br)|0,F=Math.imul(bt,tr);var ja=(q+(E=E+Math.imul(ot,Gr)|0)|0)+((8191&(M=(M=M+Math.imul(ot,Hr)|0)+Math.imul(ct,Gr)|0))<<13)|0;q=((F=F+Math.imul(ct,Hr)|0)+(M>>>13)|0)+(ja>>>26)|0,ja&=67108863;var Ss=(q+(E=Math.imul(Ft,Gr))|0)+((8191&(M=(M=Math.imul(Ft,Hr))+Math.imul(bt,Gr)|0))<<13)|0;return q=((F=Math.imul(bt,Hr))+(M>>>13)|0)+(Ss>>>26)|0,Ss&=67108863,N[0]=vn,N[1]=It,N[2]=se,N[3]=he,N[4]=yr,N[5]=Ir,N[6]=xn,N[7]=ai,N[8]=_i,N[9]=Mi,N[10]=Sa,N[11]=Ri,N[12]=ei,N[13]=gn,N[14]=Kr,N[15]=Ba,N[16]=Vi,N[17]=ja,N[18]=Ss,q!==0&&(N[19]=q,T.length++),T};function S(_,x,T){T.negative=x.negative^_.negative,T.length=_.length+x.length;for(var E=0,M=0,F=0;F<T.length-1;F++){var P=M;M=0;for(var W=67108863&E,N=Math.min(F,x.length-1),q=Math.max(0,F-_.length+1);q<=N;q++){var nt=F-q,J=(0|_.words[nt])*(0|x.words[q]),St=67108863&J;W=67108863&(St=St+W|0),M+=(P=(P=P+(J/67108864|0)|0)+(St>>>26)|0)>>>26,P&=67108863}T.words[F]=W,E=P,P=M}return E!==0?T.words[F]=E:T.length--,T._strip()}function C(_,x,T){return S(_,x,T)}Math.imul||(k=y),i.prototype.mulTo=function(_,x){var T=this.length+_.length;return this.length===10&&_.length===10?k(this,_,x):T<63?y(this,_,x):T<1024?S(this,_,x):C(this,_,x)},i.prototype.mul=function(_){var x=new i(null);return x.words=new Array(this.length+_.length),this.mulTo(_,x)},i.prototype.mulf=function(_){var x=new i(null);return x.words=new Array(this.length+_.length),C(this,_,x)},i.prototype.imul=function(_){return this.clone().mulTo(_,this)},i.prototype.imuln=function(_){var x=_<0;x&&(_=-_),o(typeof _=="number"),o(_<67108864);for(var T=0,E=0;E<this.length;E++){var M=(0|this.words[E])*_,F=(67108863&M)+(67108863&T);T>>=26,T+=M/67108864|0,T+=F>>>26,this.words[E]=67108863&F}return T!==0&&(this.words[E]=T,this.length++),x?this.ineg():this},i.prototype.muln=function(_){return this.clone().imuln(_)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(_){var x=g(_);if(x.length===0)return new i(1);for(var T=this,E=0;E<x.length&&x[E]===0;E++,T=T.sqr());if(++E<x.length)for(var M=T.sqr();E<x.length;E++,M=M.sqr())x[E]!==0&&(T=T.mul(M));return T},i.prototype.iushln=function(_){o(typeof _=="number"&&_>=0);var x,T=_%26,E=(_-T)/26,M=67108863>>>26-T<<26-T;if(T!==0){var F=0;for(x=0;x<this.length;x++){var P=this.words[x]&M,W=(0|this.words[x])-P<<T;this.words[x]=W|F,F=P>>>26-T}F&&(this.words[x]=F,this.length++)}if(E!==0){for(x=this.length-1;x>=0;x--)this.words[x+E]=this.words[x];for(x=0;x<E;x++)this.words[x]=0;this.length+=E}return this._strip()},i.prototype.ishln=function(_){return o(this.negative===0),this.iushln(_)},i.prototype.iushrn=function(_,x,T){var E;o(typeof _=="number"&&_>=0),E=x?(x-x%26)/26:0;var M=_%26,F=Math.min((_-M)/26,this.length),P=67108863^67108863>>>M<<M,W=T;if(E-=F,E=Math.max(0,E),W){for(var N=0;N<F;N++)W.words[N]=this.words[N];W.length=F}if(F!==0)if(this.length>F)for(this.length-=F,N=0;N<this.length;N++)this.words[N]=this.words[N+F];else this.words[0]=0,this.length=1;var q=0;for(N=this.length-1;N>=0&&(q!==0||N>=E);N--){var nt=0|this.words[N];this.words[N]=q<<26-M|nt>>>M,q=nt&P}return W&&q!==0&&(W.words[W.length++]=q),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(_,x,T){return o(this.negative===0),this.iushrn(_,x,T)},i.prototype.shln=function(_){return this.clone().ishln(_)},i.prototype.ushln=function(_){return this.clone().iushln(_)},i.prototype.shrn=function(_){return this.clone().ishrn(_)},i.prototype.ushrn=function(_){return this.clone().iushrn(_)},i.prototype.testn=function(_){o(typeof _=="number"&&_>=0);var x=_%26,T=(_-x)/26,E=1<<x;return!(this.length<=T||!(this.words[T]&E))},i.prototype.imaskn=function(_){o(typeof _=="number"&&_>=0);var x=_%26,T=(_-x)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=T)return this;if(x!==0&&T++,this.length=Math.min(T,this.length),x!==0){var E=67108863^67108863>>>x<<x;this.words[this.length-1]&=E}return this._strip()},i.prototype.maskn=function(_){return this.clone().imaskn(_)},i.prototype.iaddn=function(_){return o(typeof _=="number"),o(_<67108864),_<0?this.isubn(-_):this.negative!==0?this.length===1&&(0|this.words[0])<=_?(this.words[0]=_-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(_),this.negative=1,this):this._iaddn(_)},i.prototype._iaddn=function(_){this.words[0]+=_;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},i.prototype.isubn=function(_){if(o(typeof _=="number"),o(_<67108864),_<0)return this.iaddn(-_);if(this.negative!==0)return this.negative=0,this.iaddn(_),this.negative=1,this;if(this.words[0]-=_,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},i.prototype.addn=function(_){return this.clone().iaddn(_)},i.prototype.subn=function(_){return this.clone().isubn(_)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(_,x,T){var E,M,F=_.length+T;this._expand(F);var P=0;for(E=0;E<_.length;E++){M=(0|this.words[E+T])+P;var W=(0|_.words[E])*x;P=((M-=67108863&W)>>26)-(W/67108864|0),this.words[E+T]=67108863&M}for(;E<this.length-T;E++)P=(M=(0|this.words[E+T])+P)>>26,this.words[E+T]=67108863&M;if(P===0)return this._strip();for(o(P===-1),P=0,E=0;E<this.length;E++)P=(M=-(0|this.words[E])+P)>>26,this.words[E]=67108863&M;return this.negative=1,this._strip()},i.prototype._wordDiv=function(_,x){var T=this.length-_.length,E=this.clone(),M=_,F=0|M.words[M.length-1];(T=26-this._countBits(F))!=0&&(M=M.ushln(T),E.iushln(T),F=0|M.words[M.length-1]);var P,W=E.length-M.length;if(x!=="mod"){(P=new i(null)).length=W+1,P.words=new Array(P.length);for(var N=0;N<P.length;N++)P.words[N]=0}var q=E.clone()._ishlnsubmul(M,1,W);q.negative===0&&(E=q,P&&(P.words[W]=1));for(var nt=W-1;nt>=0;nt--){var J=67108864*(0|E.words[M.length+nt])+(0|E.words[M.length+nt-1]);for(J=Math.min(J/F|0,67108863),E._ishlnsubmul(M,J,nt);E.negative!==0;)J--,E.negative=0,E._ishlnsubmul(M,1,nt),E.isZero()||(E.negative^=1);P&&(P.words[nt]=J)}return P&&P._strip(),E._strip(),x!=="div"&&T!==0&&E.iushrn(T),{div:P||null,mod:E}},i.prototype.divmod=function(_,x,T){return o(!_.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:this.negative!==0&&_.negative===0?(F=this.neg().divmod(_,x),x!=="mod"&&(E=F.div.neg()),x!=="div"&&(M=F.mod.neg(),T&&M.negative!==0&&M.iadd(_)),{div:E,mod:M}):this.negative===0&&_.negative!==0?(F=this.divmod(_.neg(),x),x!=="mod"&&(E=F.div.neg()),{div:E,mod:F.mod}):this.negative&_.negative?(F=this.neg().divmod(_.neg(),x),x!=="div"&&(M=F.mod.neg(),T&&M.negative!==0&&M.isub(_)),{div:F.div,mod:M}):_.length>this.length||this.cmp(_)<0?{div:new i(0),mod:this}:_.length===1?x==="div"?{div:this.divn(_.words[0]),mod:null}:x==="mod"?{div:null,mod:new i(this.modrn(_.words[0]))}:{div:this.divn(_.words[0]),mod:new i(this.modrn(_.words[0]))}:this._wordDiv(_,x);var E,M,F},i.prototype.div=function(_){return this.divmod(_,"div",!1).div},i.prototype.mod=function(_){return this.divmod(_,"mod",!1).mod},i.prototype.umod=function(_){return this.divmod(_,"mod",!0).mod},i.prototype.divRound=function(_){var x=this.divmod(_);if(x.mod.isZero())return x.div;var T=x.div.negative!==0?x.mod.isub(_):x.mod,E=_.ushrn(1),M=_.andln(1),F=T.cmp(E);return F<0||M===1&&F===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},i.prototype.modrn=function(_){var x=_<0;x&&(_=-_),o(_<=67108863);for(var T=(1<<26)%_,E=0,M=this.length-1;M>=0;M--)E=(T*E+(0|this.words[M]))%_;return x?-E:E},i.prototype.modn=function(_){return this.modrn(_)},i.prototype.idivn=function(_){var x=_<0;x&&(_=-_),o(_<=67108863);for(var T=0,E=this.length-1;E>=0;E--){var M=(0|this.words[E])+67108864*T;this.words[E]=M/_|0,T=M%_}return this._strip(),x?this.ineg():this},i.prototype.divn=function(_){return this.clone().idivn(_)},i.prototype.egcd=function(_){o(_.negative===0),o(!_.isZero());var x=this,T=_.clone();x=x.negative!==0?x.umod(_):x.clone();for(var E=new i(1),M=new i(0),F=new i(0),P=new i(1),W=0;x.isEven()&&T.isEven();)x.iushrn(1),T.iushrn(1),++W;for(var N=T.clone(),q=x.clone();!x.isZero();){for(var nt=0,J=1;!(x.words[0]&J)&&nt<26;++nt,J<<=1);if(nt>0)for(x.iushrn(nt);nt-- >0;)(E.isOdd()||M.isOdd())&&(E.iadd(N),M.isub(q)),E.iushrn(1),M.iushrn(1);for(var St=0,kt=1;!(T.words[0]&kt)&&St<26;++St,kt<<=1);if(St>0)for(T.iushrn(St);St-- >0;)(F.isOdd()||P.isOdd())&&(F.iadd(N),P.isub(q)),F.iushrn(1),P.iushrn(1);x.cmp(T)>=0?(x.isub(T),E.isub(F),M.isub(P)):(T.isub(x),F.isub(E),P.isub(M))}return{a:F,b:P,gcd:T.iushln(W)}},i.prototype._invmp=function(_){o(_.negative===0),o(!_.isZero());var x=this,T=_.clone();x=x.negative!==0?x.umod(_):x.clone();for(var E,M=new i(1),F=new i(0),P=T.clone();x.cmpn(1)>0&&T.cmpn(1)>0;){for(var W=0,N=1;!(x.words[0]&N)&&W<26;++W,N<<=1);if(W>0)for(x.iushrn(W);W-- >0;)M.isOdd()&&M.iadd(P),M.iushrn(1);for(var q=0,nt=1;!(T.words[0]&nt)&&q<26;++q,nt<<=1);if(q>0)for(T.iushrn(q);q-- >0;)F.isOdd()&&F.iadd(P),F.iushrn(1);x.cmp(T)>=0?(x.isub(T),M.isub(F)):(T.isub(x),F.isub(M))}return(E=x.cmpn(1)===0?M:F).cmpn(0)<0&&E.iadd(_),E},i.prototype.gcd=function(_){if(this.isZero())return _.abs();if(_.isZero())return this.abs();var x=this.clone(),T=_.clone();x.negative=0,T.negative=0;for(var E=0;x.isEven()&&T.isEven();E++)x.iushrn(1),T.iushrn(1);for(;;){for(;x.isEven();)x.iushrn(1);for(;T.isEven();)T.iushrn(1);var M=x.cmp(T);if(M<0){var F=x;x=T,T=F}else if(M===0||T.cmpn(1)===0)break;x.isub(T)}return T.iushln(E)},i.prototype.invm=function(_){return this.egcd(_).a.umod(_)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(_){return this.words[0]&_},i.prototype.bincn=function(_){o(typeof _=="number");var x=_%26,T=(_-x)/26,E=1<<x;if(this.length<=T)return this._expand(T+1),this.words[T]|=E,this;for(var M=E,F=T;M!==0&&F<this.length;F++){var P=0|this.words[F];M=(P+=M)>>>26,P&=67108863,this.words[F]=P}return M!==0&&(this.words[F]=M,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(_){var x,T=_<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;if(this._strip(),this.length>1)x=1;else{T&&(_=-_),o(_<=67108863,"Number is too big");var E=0|this.words[0];x=E===_?0:E<_?-1:1}return this.negative!==0?0|-x:x},i.prototype.cmp=function(_){if(this.negative!==0&&_.negative===0)return-1;if(this.negative===0&&_.negative!==0)return 1;var x=this.ucmp(_);return this.negative!==0?0|-x:x},i.prototype.ucmp=function(_){if(this.length>_.length)return 1;if(this.length<_.length)return-1;for(var x=0,T=this.length-1;T>=0;T--){var E=0|this.words[T],M=0|_.words[T];if(E!==M){E<M?x=-1:E>M&&(x=1);break}}return x},i.prototype.gtn=function(_){return this.cmpn(_)===1},i.prototype.gt=function(_){return this.cmp(_)===1},i.prototype.gten=function(_){return this.cmpn(_)>=0},i.prototype.gte=function(_){return this.cmp(_)>=0},i.prototype.ltn=function(_){return this.cmpn(_)===-1},i.prototype.lt=function(_){return this.cmp(_)===-1},i.prototype.lten=function(_){return this.cmpn(_)<=0},i.prototype.lte=function(_){return this.cmp(_)<=0},i.prototype.eqn=function(_){return this.cmpn(_)===0},i.prototype.eq=function(_){return this.cmp(_)===0},i.red=function(_){return new A(_)},i.prototype.toRed=function(_){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),_.convertTo(this)._forceRed(_)},i.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(_){return this.red=_,this},i.prototype.forceRed=function(_){return o(!this.red,"Already a number in reduction context"),this._forceRed(_)},i.prototype.redAdd=function(_){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,_)},i.prototype.redIAdd=function(_){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,_)},i.prototype.redSub=function(_){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,_)},i.prototype.redISub=function(_){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,_)},i.prototype.redShl=function(_){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,_)},i.prototype.redMul=function(_){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.mul(this,_)},i.prototype.redIMul=function(_){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.imul(this,_)},i.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(_){return o(this.red&&!_.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,_)};var O={k256:null,p224:null,p192:null,p25519:null};function L(_,x){this.name=_,this.p=new i(x,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function U(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function Y(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(_){if(typeof _=="string"){var x=i._prime(_);this.m=x.p,this.prime=x}else o(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function I(_){A.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}L.prototype._tmp=function(){var _=new i(null);return _.words=new Array(Math.ceil(this.n/13)),_},L.prototype.ireduce=function(_){var x,T=_;do this.split(T,this.tmp),x=(T=(T=this.imulK(T)).iadd(this.tmp)).bitLength();while(x>this.n);var E=x<this.n?-1:T.ucmp(this.p);return E===0?(T.words[0]=0,T.length=1):E>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},L.prototype.split=function(_,x){_.iushrn(this.n,0,x)},L.prototype.imulK=function(_){return _.imul(this.k)},s(j,L),j.prototype.split=function(_,x){for(var T=4194303,E=Math.min(_.length,9),M=0;M<E;M++)x.words[M]=_.words[M];if(x.length=E,_.length<=9)return _.words[0]=0,void(_.length=1);var F=_.words[9];for(x.words[x.length++]=F&T,M=10;M<_.length;M++){var P=0|_.words[M];_.words[M-10]=(P&T)<<4|F>>>22,F=P}F>>>=22,_.words[M-10]=F,F===0&&_.length>10?_.length-=10:_.length-=9},j.prototype.imulK=function(_){_.words[_.length]=0,_.words[_.length+1]=0,_.length+=2;for(var x=0,T=0;T<_.length;T++){var E=0|_.words[T];x+=977*E,_.words[T]=67108863&x,x=64*E+(x/67108864|0)}return _.words[_.length-1]===0&&(_.length--,_.words[_.length-1]===0&&_.length--),_},s(U,L),s(z,L),s(Y,L),Y.prototype.imulK=function(_){for(var x=0,T=0;T<_.length;T++){var E=19*(0|_.words[T])+x,M=67108863&E;E>>>=26,_.words[T]=M,x=E}return x!==0&&(_.words[_.length++]=x),_},i._prime=function(_){if(O[_])return O[_];var x;if(_==="k256")x=new j;else if(_==="p224")x=new U;else if(_==="p192")x=new z;else{if(_!=="p25519")throw new Error("Unknown prime "+_);x=new Y}return O[_]=x,x},A.prototype._verify1=function(_){o(_.negative===0,"red works only with positives"),o(_.red,"red works only with red numbers")},A.prototype._verify2=function(_,x){o(!(_.negative|x.negative),"red works only with positives"),o(_.red&&_.red===x.red,"red works only with red numbers")},A.prototype.imod=function(_){return this.prime?this.prime.ireduce(_)._forceRed(this):(h(_,_.umod(this.m)._forceRed(this)),_)},A.prototype.neg=function(_){return _.isZero()?_.clone():this.m.sub(_)._forceRed(this)},A.prototype.add=function(_,x){this._verify2(_,x);var T=_.add(x);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},A.prototype.iadd=function(_,x){this._verify2(_,x);var T=_.iadd(x);return T.cmp(this.m)>=0&&T.isub(this.m),T},A.prototype.sub=function(_,x){this._verify2(_,x);var T=_.sub(x);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},A.prototype.isub=function(_,x){this._verify2(_,x);var T=_.isub(x);return T.cmpn(0)<0&&T.iadd(this.m),T},A.prototype.shl=function(_,x){return this._verify1(_),this.imod(_.ushln(x))},A.prototype.imul=function(_,x){return this._verify2(_,x),this.imod(_.imul(x))},A.prototype.mul=function(_,x){return this._verify2(_,x),this.imod(_.mul(x))},A.prototype.isqr=function(_){return this.imul(_,_.clone())},A.prototype.sqr=function(_){return this.mul(_,_)},A.prototype.sqrt=function(_){if(_.isZero())return _.clone();var x=this.m.andln(3);if(o(x%2==1),x===3){var T=this.m.add(new i(1)).iushrn(2);return this.pow(_,T)}for(var E=this.m.subn(1),M=0;!E.isZero()&&E.andln(1)===0;)M++,E.iushrn(1);o(!E.isZero());var F=new i(1).toRed(this),P=F.redNeg(),W=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new i(2*N*N).toRed(this);this.pow(N,W).cmp(P)!==0;)N.redIAdd(P);for(var q=this.pow(N,E),nt=this.pow(_,E.addn(1).iushrn(1)),J=this.pow(_,E),St=M;J.cmp(F)!==0;){for(var kt=J,Mt=0;kt.cmp(F)!==0;Mt++)kt=kt.redSqr();o(Mt<St);var at=this.pow(q,new i(1).iushln(St-Mt-1));nt=nt.redMul(at),q=at.redSqr(),J=J.redMul(q),St=Mt}return nt},A.prototype.invm=function(_){var x=_._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},A.prototype.pow=function(_,x){if(x.isZero())return new i(1).toRed(this);if(x.cmpn(1)===0)return _.clone();var T=4,E=new Array(1<<T);E[0]=new i(1).toRed(this),E[1]=_;for(var M=2;M<E.length;M++)E[M]=this.mul(E[M-1],_);var F=E[0],P=0,W=0,N=x.bitLength()%26;for(N===0&&(N=26),M=x.length-1;M>=0;M--){for(var q=x.words[M],nt=N-1;nt>=0;nt--){var J=q>>nt&1;F!==E[0]&&(F=this.sqr(F)),J!==0||P!==0?(P<<=1,P|=J,(++W===T||M===0&&nt===0)&&(F=this.mul(F,E[P]),W=0,P=0)):W=0}N=26}return F},A.prototype.convertTo=function(_){var x=_.umod(this.m);return x===_?x.clone():x},A.prototype.convertFrom=function(_){var x=_.clone();return x.red=null,x},i.mont=function(_){return new I(_)},s(I,A),I.prototype.convertTo=function(_){return this.imod(_.ushln(this.shift))},I.prototype.convertFrom=function(_){var x=this.imod(_.mul(this.rinv));return x.red=null,x},I.prototype.imul=function(_,x){if(_.isZero()||x.isZero())return _.words[0]=0,_.length=1,_;var T=_.imul(x),E=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=T.isub(E).iushrn(this.shift),F=M;return M.cmp(this.m)>=0?F=M.isub(this.m):M.cmpn(0)<0&&(F=M.iadd(this.m)),F._forceRed(this)},I.prototype.mul=function(_,x){if(_.isZero()||x.isZero())return new i(0)._forceRed(this);var T=_.mul(x),E=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=T.isub(E).iushrn(this.shift),F=M;return M.cmp(this.m)>=0?F=M.isub(this.m):M.cmpn(0)<0&&(F=M.iadd(this.m)),F._forceRed(this)},I.prototype.invm=function(_){return this.imod(_._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r,void 0)},{buffer:188}],187:[function(t,r,e){var n;function a(s){this.rand=s}if(r.exports=function(s){return n||(n=new a(null)),n.generate(s)},r.exports.Rand=a,a.prototype.generate=function(s){return this._rand(s)},a.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var i=new Uint8Array(s),u=0;u<i.length;u++)i[u]=this.rand.getByte();return i},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(s){var i=new Uint8Array(s);return self.crypto.getRandomValues(i),i}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(s){var i=new Uint8Array(s);return self.msCrypto.getRandomValues(i),i}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=t("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(s){return o.randomBytes(s)}}catch{}},{crypto:188}],188:[function(t,r,e){},{}],189:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(f){n.isBuffer(f)||(f=n.from(f));for(var c=f.length/4|0,h=new Array(c),d=0;d<c;d++)h[d]=f.readUInt32BE(4*d);return h}function o(f){for(var c=0;c<f.length;f++)f[c]=0}function s(f,c,h,d,p){for(var m,v,b,g,y=h[0],k=h[1],S=h[2],C=h[3],O=f[0]^c[0],L=f[1]^c[1],j=f[2]^c[2],U=f[3]^c[3],z=4,Y=1;Y<p;Y++)m=y[O>>>24]^k[L>>>16&255]^S[j>>>8&255]^C[255&U]^c[z++],v=y[L>>>24]^k[j>>>16&255]^S[U>>>8&255]^C[255&O]^c[z++],b=y[j>>>24]^k[U>>>16&255]^S[O>>>8&255]^C[255&L]^c[z++],g=y[U>>>24]^k[O>>>16&255]^S[L>>>8&255]^C[255&j]^c[z++],O=m,L=v,j=b,U=g;return m=(d[O>>>24]<<24|d[L>>>16&255]<<16|d[j>>>8&255]<<8|d[255&U])^c[z++],v=(d[L>>>24]<<24|d[j>>>16&255]<<16|d[U>>>8&255]<<8|d[255&O])^c[z++],b=(d[j>>>24]<<24|d[U>>>16&255]<<16|d[O>>>8&255]<<8|d[255&L])^c[z++],g=(d[U>>>24]<<24|d[O>>>16&255]<<16|d[L>>>8&255]<<8|d[255&j])^c[z++],[m>>>=0,v>>>=0,b>>>=0,g>>>=0]}var i=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var f=new Array(256),c=0;c<256;c++)f[c]=c<128?c<<1:c<<1^283;for(var h=[],d=[],p=[[],[],[],[]],m=[[],[],[],[]],v=0,b=0,g=0;g<256;++g){var y=b^b<<1^b<<2^b<<3^b<<4;y=y>>>8^255&y^99,h[v]=y,d[y]=v;var k=f[v],S=f[k],C=f[S],O=257*f[y]^16843008*y;p[0][v]=O<<24|O>>>8,p[1][v]=O<<16|O>>>16,p[2][v]=O<<8|O>>>24,p[3][v]=O,O=16843009*C^65537*S^257*k^16843008*v,m[0][y]=O<<24|O>>>8,m[1][y]=O<<16|O>>>16,m[2][y]=O<<8|O>>>24,m[3][y]=O,v===0?v=b=1:(v=k^f[f[f[C^k]]],b^=f[f[b]])}return{SBOX:h,INV_SBOX:d,SUB_MIX:p,INV_SUB_MIX:m}}();function l(f){this._key=a(f),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var f=this._key,c=f.length,h=c+6,d=4*(h+1),p=[],m=0;m<c;m++)p[m]=f[m];for(m=c;m<d;m++){var v=p[m-1];m%c==0?(v=v<<8|v>>>24,v=u.SBOX[v>>>24]<<24|u.SBOX[v>>>16&255]<<16|u.SBOX[v>>>8&255]<<8|u.SBOX[255&v],v^=i[m/c|0]<<24):c>6&&m%c==4&&(v=u.SBOX[v>>>24]<<24|u.SBOX[v>>>16&255]<<16|u.SBOX[v>>>8&255]<<8|u.SBOX[255&v]),p[m]=p[m-c]^v}for(var b=[],g=0;g<d;g++){var y=d-g,k=p[y-(g%4?0:4)];b[g]=g<4||y<=4?k:u.INV_SUB_MIX[0][u.SBOX[k>>>24]]^u.INV_SUB_MIX[1][u.SBOX[k>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[k>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&k]]}this._nRounds=h,this._keySchedule=p,this._invKeySchedule=b},l.prototype.encryptBlockRaw=function(f){return s(f=a(f),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},l.prototype.encryptBlock=function(f){var c=this.encryptBlockRaw(f),h=n.allocUnsafe(16);return h.writeUInt32BE(c[0],0),h.writeUInt32BE(c[1],4),h.writeUInt32BE(c[2],8),h.writeUInt32BE(c[3],12),h},l.prototype.decryptBlock=function(f){var c=(f=a(f))[1];f[1]=f[3],f[3]=c;var h=s(f,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),d=n.allocUnsafe(16);return d.writeUInt32BE(h[0],0),d.writeUInt32BE(h[3],4),d.writeUInt32BE(h[2],8),d.writeUInt32BE(h[1],12),d},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},r.exports.AES=l},{"safe-buffer":494}],190:[function(t,r,e){var n=t("./aes"),a=t("safe-buffer").Buffer,o=t("cipher-base"),s=t("inherits"),i=t("./ghash"),u=t("buffer-xor"),l=t("./incr32");function f(d,p){var m=0;d.length!==p.length&&m++;for(var v=Math.min(d.length,p.length),b=0;b<v;++b)m+=d[b]^p[b];return m}function c(d,p,m){if(p.length===12)return d._finID=a.concat([p,a.from([0,0,0,1])]),a.concat([p,a.from([0,0,0,2])]);var v=new i(m),b=p.length,g=b%16;v.update(p),g&&(g=16-g,v.update(a.alloc(g,0))),v.update(a.alloc(8,0));var y=8*b,k=a.alloc(8);k.writeUIntBE(y,0,8),v.update(k),d._finID=v.state;var S=a.from(d._finID);return l(S),S}function h(d,p,m,v){o.call(this);var b=a.alloc(4,0);this._cipher=new n.AES(p);var g=this._cipher.encryptBlock(b);this._ghash=new i(g),m=c(this,m,g),this._prev=a.from(m),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=v,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}s(h,o),h.prototype._update=function(d){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=a.alloc(p,0),this._ghash.update(p))}this._called=!0;var m=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(m),this._len+=d.length,m},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&f(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(d){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=d},h.prototype.setAAD=function(d){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(d),this._alen+=d.length},r.exports=h},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(t,r,e){var n=t("./encrypter"),a=t("./decrypter"),o=t("./modes/list.json");function s(){return Object.keys(o)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=a.createDecipher,e.createDecipheriv=e.Decipheriv=a.createDecipheriv,e.listCiphers=e.getCiphers=s},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(t,r,e){var n=t("./authCipher"),a=t("safe-buffer").Buffer,o=t("./modes"),s=t("./streamCipher"),i=t("cipher-base"),u=t("./aes"),l=t("evp_bytestokey");function f(m,v,b){i.call(this),this._cache=new c,this._last=void 0,this._cipher=new u.AES(v),this._prev=a.from(b),this._mode=m,this._autopadding=!0}function c(){this.cache=a.allocUnsafe(0)}function h(m){var v=m[15];if(v<1||v>16)throw new Error("unable to decrypt data");for(var b=-1;++b<v;)if(m[b+(16-v)]!==v)throw new Error("unable to decrypt data");if(v!==16)return m.slice(0,16-v)}function d(m,v,b){var g=o[m.toLowerCase()];if(!g)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=a.from(b)),g.mode!=="GCM"&&b.length!==g.iv)throw new TypeError("invalid iv length "+b.length);if(typeof v=="string"&&(v=a.from(v)),v.length!==g.key/8)throw new TypeError("invalid key length "+v.length);return g.type==="stream"?new s(g.module,v,b,!0):g.type==="auth"?new n(g.module,v,b,!0):new f(g.module,v,b)}function p(m,v){var b=o[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var g=l(v,!1,b.key,b.iv);return d(m,g.key,g.iv)}t("inherits")(f,i),f.prototype._update=function(m){var v,b;this._cache.add(m);for(var g=[];v=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,v),g.push(b);return a.concat(g)},f.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return h(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},c.prototype.add=function(m){this.cache=a.concat([this.cache,m])},c.prototype.get=function(m){var v;if(m){if(this.cache.length>16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v}else if(this.cache.length>=16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v;return null},c.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=p,e.createDecipheriv=d},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(t,r,e){var n=t("./modes"),a=t("./authCipher"),o=t("safe-buffer").Buffer,s=t("./streamCipher"),i=t("cipher-base"),u=t("./aes"),l=t("evp_bytestokey");function f(m,v,b){i.call(this),this._cache=new h,this._cipher=new u.AES(v),this._prev=o.from(b),this._mode=m,this._autopadding=!0}t("inherits")(f,i),f.prototype._update=function(m){var v,b;this._cache.add(m);for(var g=[];v=this._cache.get();)b=this._mode.encrypt(this,v),g.push(b);return o.concat(g)};var c=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function d(m,v,b){var g=n[m.toLowerCase()];if(!g)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=o.from(v)),v.length!==g.key/8)throw new TypeError("invalid key length "+v.length);if(typeof b=="string"&&(b=o.from(b)),g.mode!=="GCM"&&b.length!==g.iv)throw new TypeError("invalid iv length "+b.length);return g.type==="stream"?new s(g.module,v,b):g.type==="auth"?new a(g.module,v,b):new f(g.module,v,b)}function p(m,v){var b=n[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var g=l(v,!1,b.key,b.iv);return d(m,g.key,g.iv)}f.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return m=this._mode.encrypt(this,m),this._cipher.scrub(),m;if(!m.equals(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},h.prototype.add=function(m){this.cache=o.concat([this.cache,m])},h.prototype.get=function(){if(this.cache.length>15){var m=this.cache.slice(0,16);return this.cache=this.cache.slice(16),m}return null},h.prototype.flush=function(){for(var m=16-this.cache.length,v=o.allocUnsafe(m),b=-1;++b<m;)v.writeUInt8(m,b);return o.concat([this.cache,v])},e.createCipheriv=d,e.createCipher=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(t,r,e){var n=t("safe-buffer").Buffer,a=n.alloc(16,0);function o(u){return[u.readUInt32BE(0),u.readUInt32BE(4),u.readUInt32BE(8),u.readUInt32BE(12)]}function s(u){var l=n.allocUnsafe(16);return l.writeUInt32BE(u[0]>>>0,0),l.writeUInt32BE(u[1]>>>0,4),l.writeUInt32BE(u[2]>>>0,8),l.writeUInt32BE(u[3]>>>0,12),l}function i(u){this.h=u,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}i.prototype.ghash=function(u){for(var l=-1;++l<u.length;)this.state[l]^=u[l];this._multiply()},i.prototype._multiply=function(){for(var u,l,f=o(this.h),c=[0,0,0,0],h=-1;++h<128;){for(this.state[~~(h/8)]&1<<7-h%8&&(c[0]^=f[0],c[1]^=f[1],c[2]^=f[2],c[3]^=f[3]),l=!!(1&f[3]),u=3;u>0;u--)f[u]=f[u]>>>1|(1&f[u-1])<<31;f[0]=f[0]>>>1,l&&(f[0]=f[0]^225<<24)}this.state=s(c)},i.prototype.update=function(u){var l;for(this.cache=n.concat([this.cache,u]);this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},i.prototype.final=function(u,l){return this.cache.length&&this.ghash(n.concat([this.cache,a],16)),this.ghash(s([0,u,0,l])),this.state},r.exports=i},{"safe-buffer":494}],195:[function(t,r,e){function n(a){for(var o,s=a.length;s--;){if((o=a.readUInt8(s))!==255){o++,a.writeUInt8(o,s);break}a.writeUInt8(0,s)}}r.exports=n},{}],196:[function(t,r,e){var n=t("buffer-xor");e.encrypt=function(a,o){var s=n(o,a._prev);return a._prev=a._cipher.encryptBlock(s),a._prev},e.decrypt=function(a,o){var s=a._prev;a._prev=o;var i=a._cipher.decryptBlock(o);return n(i,s)}},{"buffer-xor":219}],197:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("buffer-xor");function o(s,i,u){var l=i.length,f=a(i,s._cache);return s._cache=s._cache.slice(l),s._prev=n.concat([s._prev,u?i:f]),f}e.encrypt=function(s,i,u){for(var l,f=n.allocUnsafe(0);i.length;){if(s._cache.length===0&&(s._cache=s._cipher.encryptBlock(s._prev),s._prev=n.allocUnsafe(0)),!(s._cache.length<=i.length)){f=n.concat([f,o(s,i,u)]);break}l=s._cache.length,f=n.concat([f,o(s,i.slice(0,l),u)]),i=i.slice(l)}return f}},{"buffer-xor":219,"safe-buffer":494}],198:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(s,i,u){for(var l,f,c=-1,h=8,d=0;++c<h;)l=i&1<<7-c?128:0,d+=(128&(f=s._cipher.encryptBlock(s._prev)[0]^l))>>c%8,s._prev=o(s._prev,u?l:f);return d}function o(s,i){var u=s.length,l=-1,f=n.allocUnsafe(s.length);for(s=n.concat([s,n.from([i])]);++l<u;)f[l]=s[l]<<1|s[l+1]>>7;return f}e.encrypt=function(s,i,u){for(var l=i.length,f=n.allocUnsafe(l),c=-1;++c<l;)f[c]=a(s,i[c],u);return f}},{"safe-buffer":494}],199:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(o,s,i){var u=o._cipher.encryptBlock(o._prev)[0]^s;return o._prev=n.concat([o._prev.slice(1),n.from([i?s:u])]),u}e.encrypt=function(o,s,i){for(var u=s.length,l=n.allocUnsafe(u),f=-1;++f<u;)l[f]=a(o,s[f],i);return l}},{"safe-buffer":494}],200:[function(t,r,e){var n=t("buffer-xor"),a=t("safe-buffer").Buffer,o=t("../incr32");function s(u){var l=u._cipher.encryptBlockRaw(u._prev);return o(u._prev),l}var i=16;e.encrypt=function(u,l){var f=Math.ceil(l.length/i),c=u._cache.length;u._cache=a.concat([u._cache,a.allocUnsafe(f*i)]);for(var h=0;h<f;h++){var d=s(u),p=c+h*i;u._cache.writeUInt32BE(d[0],p+0),u._cache.writeUInt32BE(d[1],p+4),u._cache.writeUInt32BE(d[2],p+8),u._cache.writeUInt32BE(d[3],p+12)}var m=u._cache.slice(0,l.length);return u._cache=u._cache.slice(l.length),n(l,m)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(t,r,e){e.encrypt=function(n,a){return n._cipher.encryptBlock(a)},e.decrypt=function(n,a){return n._cipher.decryptBlock(a)}},{}],202:[function(t,r,e){var n={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},a=t("./list.json");for(var o in a)a[o].module=n[a[o].mode];r.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(t,r,e){r.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(t,r,e){(function(n){(function(){var a=t("buffer-xor");function o(s){return s._prev=s._cipher.encryptBlock(s._prev),s._prev}e.encrypt=function(s,i){for(;s._cache.length<i.length;)s._cache=n.concat([s._cache,o(s)]);var u=s._cache.slice(0,i.length);return s._cache=s._cache.slice(i.length),a(i,u)}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(t,r,e){var n=t("./aes"),a=t("safe-buffer").Buffer,o=t("cipher-base");function s(i,u,l,f){o.call(this),this._cipher=new n.AES(u),this._prev=a.from(l),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=f,this._mode=i}t("inherits")(s,o),s.prototype._update=function(i){return this._mode.encrypt(this,i,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},r.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(t,r,e){var n=t("browserify-des"),a=t("browserify-aes/browser"),o=t("browserify-aes/modes"),s=t("browserify-des/modes"),i=t("evp_bytestokey");function u(d,p){var m,v;if(d=d.toLowerCase(),o[d])m=o[d].key,v=o[d].iv;else{if(!s[d])throw new TypeError("invalid suite type");m=8*s[d].key,v=s[d].iv}var b=i(p,!1,m,v);return f(d,b.key,b.iv)}function l(d,p){var m,v;if(d=d.toLowerCase(),o[d])m=o[d].key,v=o[d].iv;else{if(!s[d])throw new TypeError("invalid suite type");m=8*s[d].key,v=s[d].iv}var b=i(p,!1,m,v);return c(d,b.key,b.iv)}function f(d,p,m){if(d=d.toLowerCase(),o[d])return a.createCipheriv(d,p,m);if(s[d])return new n({key:p,iv:m,mode:d});throw new TypeError("invalid suite type")}function c(d,p,m){if(d=d.toLowerCase(),o[d])return a.createDecipheriv(d,p,m);if(s[d])return new n({key:p,iv:m,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function h(){return Object.keys(s).concat(a.getCiphers())}e.createCipher=e.Cipher=u,e.createCipheriv=e.Cipheriv=f,e.createDecipher=e.Decipher=l,e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=h},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(t,r,e){var n=t("cipher-base"),a=t("des.js"),o=t("inherits"),s=t("safe-buffer").Buffer,i={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function u(l){n.call(this);var f,c=l.mode.toLowerCase(),h=i[c];f=l.decrypt?"decrypt":"encrypt";var d=l.key;s.isBuffer(d)||(d=s.from(d)),c!=="des-ede"&&c!=="des-ede-cbc"||(d=s.concat([d,d.slice(0,8)]));var p=l.iv;s.isBuffer(p)||(p=s.from(p)),this._des=h.create({key:d,iv:p,type:f})}i.des=i["des-cbc"],i.des3=i["des-ede3-cbc"],r.exports=u,o(u,n),u.prototype._update=function(l){return s.from(this._des.update(l))},u.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(t,r,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},{}],209:[function(t,r,e){(function(n){(function(){var a=t("bn.js"),o=t("randombytes");function s(l){var f=i(l);return{blinder:f.toRed(a.mont(l.modulus)).redPow(new a(l.publicExponent)).fromRed(),unblinder:f.invm(l.modulus)}}function i(l){var f,c=l.modulus.byteLength();do f=new a(o(c));while(f.cmp(l.modulus)>=0||!f.umod(l.prime1)||!f.umod(l.prime2));return f}function u(l,f){var c=s(f),h=f.modulus.byteLength(),d=new a(l).mul(c.blinder).umod(f.modulus),p=d.toRed(a.mont(f.prime1)),m=d.toRed(a.mont(f.prime2)),v=f.coefficient,b=f.prime1,g=f.prime2,y=p.redPow(f.exponent1).fromRed(),k=m.redPow(f.exponent2).fromRed(),S=y.isub(k).imul(v).umod(b).imul(g);return k.iadd(S).imul(c.unblinder).umod(f.modulus).toArrayLike(n,"be",h)}u.getr=i,r.exports=u}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(t,r,e){r.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(t,r,e){r.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(t,r,e){r.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("create-hash"),o=t("readable-stream"),s=t("inherits"),i=t("./sign"),u=t("./verify"),l=t("./algorithms.json");function f(p){o.Writable.call(this);var m=l[p];if(!m)throw new Error("Unknown message digest");this._hashType=m.hash,this._hash=a(m.hash),this._tag=m.id,this._signType=m.sign}function c(p){o.Writable.call(this);var m=l[p];if(!m)throw new Error("Unknown message digest");this._hash=a(m.hash),this._tag=m.id,this._signType=m.sign}function h(p){return new f(p)}function d(p){return new c(p)}Object.keys(l).forEach(function(p){l[p].id=n.from(l[p].id,"hex"),l[p.toLowerCase()]=l[p]}),s(f,o.Writable),f.prototype._write=function(p,m,v){this._hash.update(p),v()},f.prototype.update=function(p,m){return typeof p=="string"&&(p=n.from(p,m)),this._hash.update(p),this},f.prototype.sign=function(p,m){this.end();var v=this._hash.digest(),b=i(v,p,this._hashType,this._signType,this._tag);return m?b.toString(m):b},s(c,o.Writable),c.prototype._write=function(p,m,v){this._hash.update(p),v()},c.prototype.update=function(p,m){return typeof p=="string"&&(p=n.from(p,m)),this._hash.update(p),this},c.prototype.verify=function(p,m,v){typeof m=="string"&&(m=n.from(m,v)),this.end();var b=this._hash.digest();return u(m,b,p,this._signType,this._tag)},r.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("create-hmac"),o=t("browserify-rsa"),s=t("elliptic").ec,i=t("bn.js"),u=t("parse-asn1"),l=t("./curves.json");function f(y,k,S,C,O){var L=u(k);if(L.curve){if(C!=="ecdsa"&&C!=="ecdsa/rsa")throw new Error("wrong private key type");return c(y,L)}if(L.type==="dsa"){if(C!=="dsa")throw new Error("wrong private key type");return h(y,L,S)}if(C!=="rsa"&&C!=="ecdsa/rsa")throw new Error("wrong private key type");y=n.concat([O,y]);for(var j=L.modulus.byteLength(),U=[0,1];y.length+U.length+1<j;)U.push(255);U.push(0);for(var z=-1;++z<y.length;)U.push(y[z]);return o(U,L)}function c(y,k){var S=l[k.curve.join(".")];if(!S)throw new Error("unknown curve "+k.curve.join("."));var C=new s(S).keyFromPrivate(k.privateKey).sign(y);return n.from(C.toDER())}function h(y,k,S){for(var C,O=k.params.priv_key,L=k.params.p,j=k.params.q,U=k.params.g,z=new i(0),Y=m(y,j).mod(j),A=!1,I=p(O,j,y,S);A===!1;)z=g(U,C=b(j,I,S),L,j),(A=C.invm(j).imul(Y.add(O.mul(z))).mod(j)).cmpn(0)===0&&(A=!1,z=new i(0));return d(z,A)}function d(y,k){y=y.toArray(),k=k.toArray(),128&y[0]&&(y=[0].concat(y)),128&k[0]&&(k=[0].concat(k));var S=[48,y.length+k.length+4,2,y.length];return S=S.concat(y,[2,k.length],k),n.from(S)}function p(y,k,S,C){if((y=n.from(y.toArray())).length<k.byteLength()){var O=n.alloc(k.byteLength()-y.length);y=n.concat([O,y])}var L=S.length,j=v(S,k),U=n.alloc(L);U.fill(1);var z=n.alloc(L);return z=a(C,z).update(U).update(n.from([0])).update(y).update(j).digest(),U=a(C,z).update(U).digest(),{k:z=a(C,z).update(U).update(n.from([1])).update(y).update(j).digest(),v:U=a(C,z).update(U).digest()}}function m(y,k){var S=new i(y),C=(y.length<<3)-k.bitLength();return C>0&&S.ishrn(C),S}function v(y,k){y=(y=m(y,k)).mod(k);var S=n.from(y.toArray());if(S.length<k.byteLength()){var C=n.alloc(k.byteLength()-S.length);S=n.concat([C,S])}return S}function b(y,k,S){var C,O;do{for(C=n.alloc(0);8*C.length<y.bitLength();)k.v=a(S,k.k).update(k.v).digest(),C=n.concat([C,k.v]);O=m(C,y),k.k=a(S,k.k).update(k.v).update(n.from([0])).digest(),k.v=a(S,k.k).update(k.v).digest()}while(O.cmp(y)!==-1);return O}function g(y,k,S,C){return y.toRed(i.mont(S)).redPow(k).fromRed().mod(C)}r.exports=f,r.exports.getKey=p,r.exports.makeKey=b},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("bn.js"),o=t("elliptic").ec,s=t("parse-asn1"),i=t("./curves.json");function u(h,d,p,m,v){var b=s(p);if(b.type==="ec"){if(m!=="ecdsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");return l(h,d,b)}if(b.type==="dsa"){if(m!=="dsa")throw new Error("wrong public key type");return f(h,d,b)}if(m!=="rsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");d=n.concat([v,d]);for(var g=b.modulus.byteLength(),y=[1],k=0;d.length+y.length+2<g;)y.push(255),k++;y.push(0);for(var S=-1;++S<d.length;)y.push(d[S]);y=n.from(y);var C=a.mont(b.modulus);h=(h=new a(h).toRed(C)).redPow(new a(b.publicExponent)),h=n.from(h.fromRed().toArray());var O=k<8?1:0;for(g=Math.min(h.length,y.length),h.length!==y.length&&(O=1),S=-1;++S<g;)O|=h[S]^y[S];return O===0}function l(h,d,p){var m=i[p.data.algorithm.curve.join(".")];if(!m)throw new Error("unknown curve "+p.data.algorithm.curve.join("."));var v=new o(m),b=p.data.subjectPrivateKey.data;return v.verify(d,h,b)}function f(h,d,p){var m=p.data.p,v=p.data.q,b=p.data.g,g=p.data.pub_key,y=s.signature.decode(h,"der"),k=y.s,S=y.r;c(k,v),c(S,v);var C=a.mont(m),O=k.invm(v);return b.toRed(C).redPow(new a(d).mul(O).mod(v)).fromRed().mul(g.toRed(C).redPow(S.mul(O).mod(v)).fromRed()).mod(m).mod(v).cmp(S)===0}function c(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=d)throw new Error("invalid sig")}r.exports=u},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(t,r,e){},{}],217:[function(t,r,e){var n=t("buffer"),a=n.Buffer;function o(i,u){for(var l in i)u[l]=i[l]}function s(i,u,l){return a(i,u,l)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=n:(o(n,e),e.Buffer=s),o(a,s),s.from=function(i,u,l){if(typeof i=="number")throw new TypeError("Argument must not be a number");return a(i,u,l)},s.alloc=function(i,u,l){if(typeof i!="number")throw new TypeError("Argument must be a number");var f=a(i);return u!==void 0?typeof l=="string"?f.fill(u,l):f.fill(u):f.fill(0),f},s.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return a(i)},s.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(i)}},{buffer:220}],218:[function(t,r,e){var n=t("safe-buffer").Buffer,a=n.isEncoding||function(k){switch((k=""+k)&&k.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 o(k){if(!k)return"utf8";for(var S;;)switch(k){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 k;default:if(S)return;k=(""+k).toLowerCase(),S=!0}}function s(k){var S=o(k);if(typeof S!="string"&&(n.isEncoding===a||!a(k)))throw new Error("Unknown encoding: "+k);return S||k}function i(k){var S;switch(this.encoding=s(k),this.encoding){case"utf16le":this.text=p,this.end=m,S=4;break;case"utf8":this.fillLast=c,S=4;break;case"base64":this.text=v,this.end=b,S=3;break;default:return this.write=g,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(S)}function u(k){return k<=127?0:k>>5==6?2:k>>4==14?3:k>>3==30?4:k>>6==2?-1:-2}function l(k,S,C){var O=S.length-1;if(O<C)return 0;var L=u(S[O]);return L>=0?(L>0&&(k.lastNeed=L-1),L):--O<C||L===-2?0:(L=u(S[O]))>=0?(L>0&&(k.lastNeed=L-2),L):--O<C||L===-2?0:(L=u(S[O]))>=0?(L>0&&(L===2?L=0:k.lastNeed=L-3),L):0}function f(k,S,C){if((192&S[0])!=128)return k.lastNeed=0,"<EFBFBD>";if(k.lastNeed>1&&S.length>1){if((192&S[1])!=128)return k.lastNeed=1,"<EFBFBD>";if(k.lastNeed>2&&S.length>2&&(192&S[2])!=128)return k.lastNeed=2,"<EFBFBD>"}}function c(k){var S=this.lastTotal-this.lastNeed,C=f(this,k);return C!==void 0?C:this.lastNeed<=k.length?(k.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(k.copy(this.lastChar,S,0,k.length),void(this.lastNeed-=k.length))}function h(k,S){var C=l(this,k,S);if(!this.lastNeed)return k.toString("utf8",S);this.lastTotal=C;var O=k.length-(C-this.lastNeed);return k.copy(this.lastChar,0,O),k.toString("utf8",S,O)}function d(k){var S=k&&k.length?this.write(k):"";return this.lastNeed?S+"<EFBFBD>":S}function p(k,S){if((k.length-S)%2==0){var C=k.toString("utf16le",S);if(C){var O=C.charCodeAt(C.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",S,k.length-1)}function m(k){var S=k&&k.length?this.write(k):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,C)}return S}function v(k,S){var C=(k.length-S)%3;return C===0?k.toString("base64",S):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",S,k.length-C))}function b(k){var S=k&&k.length?this.write(k):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function g(k){return k.toString(this.encoding)}function y(k){return k&&k.length?this.write(k):""}e.StringDecoder=i,i.prototype.write=function(k){if(k.length===0)return"";var S,C;if(this.lastNeed){if((S=this.fillLast(k))===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<k.length?S?S+this.text(k,C):this.text(k,C):S||""},i.prototype.end=d,i.prototype.text=h,i.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length}},{"safe-buffer":217}],219:[function(t,r,e){(function(n){(function(){r.exports=function(a,o){for(var s=Math.min(a.length,o.length),i=new n(s),u=0;u<s;++u)i[u]=a[u]^o[u];return i}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],220:[function(t,r,e){(function(n){(function(){var a=t("base64-js"),o=t("ieee754");e.Buffer=l,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;var s=2147483647;function i(){try{var G=new Uint8Array(1);return G.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},G.foo()===42}catch{return!1}}function u(G){if(G>s)throw new RangeError('The value "'+G+'" is invalid for option "size"');var tt=new Uint8Array(G);return tt.__proto__=l.prototype,tt}function l(G,tt,dt){if(typeof G=="number"){if(typeof tt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(G)}return f(G,tt,dt)}function f(G,tt,dt){if(typeof G=="string")return p(G,tt);if(ArrayBuffer.isView(G))return m(G);if(G==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(mt(G,ArrayBuffer)||G&&mt(G.buffer,ArrayBuffer))return v(G,tt,dt);if(typeof G=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Dt=G.valueOf&&G.valueOf();if(Dt!=null&&Dt!==G)return l.from(Dt,tt,dt);var re=b(G);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]=="function")return l.from(G[Symbol.toPrimitive]("string"),tt,dt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}function c(G){if(typeof G!="number")throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function h(G,tt,dt){return c(G),G<=0?u(G):tt!==void 0?typeof dt=="string"?u(G).fill(tt,dt):u(G).fill(tt):u(G)}function d(G){return c(G),u(G<0?0:0|g(G))}function p(G,tt){if(typeof tt=="string"&&tt!==""||(tt="utf8"),!l.isEncoding(tt))throw new TypeError("Unknown encoding: "+tt);var dt=0|k(G,tt),Dt=u(dt),re=Dt.write(G,tt);return re!==dt&&(Dt=Dt.slice(0,re)),Dt}function m(G){for(var tt=G.length<0?0:0|g(G.length),dt=u(tt),Dt=0;Dt<tt;Dt+=1)dt[Dt]=255&G[Dt];return dt}function v(G,tt,dt){if(tt<0||G.byteLength<tt)throw new RangeError('"offset" is outside of buffer bounds');if(G.byteLength<tt+(dt||0))throw new RangeError('"length" is outside of buffer bounds');var Dt;return(Dt=tt===void 0&&dt===void 0?new Uint8Array(G):dt===void 0?new Uint8Array(G,tt):new Uint8Array(G,tt,dt)).__proto__=l.prototype,Dt}function b(G){if(l.isBuffer(G)){var tt=0|g(G.length),dt=u(tt);return dt.length===0||G.copy(dt,0,0,tt),dt}return G.length!==void 0?typeof G.length!="number"||Xt(G.length)?u(0):m(G):G.type==="Buffer"&&Array.isArray(G.data)?m(G.data):void 0}function g(G){if(G>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|G}function y(G){return+G!=G&&(G=0),l.alloc(+G)}function k(G,tt){if(l.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||mt(G,ArrayBuffer))return G.byteLength;if(typeof G!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);var dt=G.length,Dt=arguments.length>2&&arguments[2]===!0;if(!Dt&&dt===0)return 0;for(var re=!1;;)switch(tt){case"ascii":case"latin1":case"binary":return dt;case"utf8":case"utf-8":return K(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*dt;case"hex":return dt>>>1;case"base64":return Nt(G).length;default:if(re)return Dt?-1:K(G).length;tt=(""+tt).toLowerCase(),re=!0}}function S(G,tt,dt){var Dt=!1;if((tt===void 0||tt<0)&&(tt=0),tt>this.length||((dt===void 0||dt>this.length)&&(dt=this.length),dt<=0)||(dt>>>=0)<=(tt>>>=0))return"";for(G||(G="utf8");;)switch(G){case"hex":return P(this,tt,dt);case"utf8":case"utf-8":return x(this,tt,dt);case"ascii":return M(this,tt,dt);case"latin1":case"binary":return F(this,tt,dt);case"base64":return _(this,tt,dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,tt,dt);default:if(Dt)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),Dt=!0}}function C(G,tt,dt){var Dt=G[tt];G[tt]=G[dt],G[dt]=Dt}function O(G,tt,dt,Dt,re){if(G.length===0)return-1;if(typeof dt=="string"?(Dt=dt,dt=0):dt>2147483647?dt=2147483647:dt<-2147483648&&(dt=-2147483648),Xt(dt=+dt)&&(dt=re?0:G.length-1),dt<0&&(dt=G.length+dt),dt>=G.length){if(re)return-1;dt=G.length-1}else if(dt<0){if(!re)return-1;dt=0}if(typeof tt=="string"&&(tt=l.from(tt,Dt)),l.isBuffer(tt))return tt.length===0?-1:L(G,tt,dt,Dt,re);if(typeof tt=="number")return tt&=255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(G,tt,dt):Uint8Array.prototype.lastIndexOf.call(G,tt,dt):L(G,[tt],dt,Dt,re);throw new TypeError("val must be string, number or Buffer")}function L(G,tt,dt,Dt,re){var X,Gt=1,Jt=G.length,vt=tt.length;if(Dt!==void 0&&((Dt=String(Dt).toLowerCase())==="ucs2"||Dt==="ucs-2"||Dt==="utf16le"||Dt==="utf-16le")){if(G.length<2||tt.length<2)return-1;Gt=2,Jt/=2,vt/=2,dt/=2}function gt(ct,xt){return Gt===1?ct[xt]:ct.readUInt16BE(xt*Gt)}if(re){var Tt=-1;for(X=dt;X<Jt;X++)if(gt(G,X)===gt(tt,Tt===-1?0:X-Tt)){if(Tt===-1&&(Tt=X),X-Tt+1===vt)return Tt*Gt}else Tt!==-1&&(X-=X-Tt),Tt=-1}else for(dt+vt>Jt&&(dt=Jt-vt),X=dt;X>=0;X--){for(var ie=!0,ot=0;ot<vt;ot++)if(gt(G,X+ot)!==gt(tt,ot)){ie=!1;break}if(ie)return X}return-1}function j(G,tt,dt,Dt){dt=Number(dt)||0;var re=G.length-dt;Dt?(Dt=Number(Dt))>re&&(Dt=re):Dt=re;var X=tt.length;Dt>X/2&&(Dt=X/2);for(var Gt=0;Gt<Dt;++Gt){var Jt=parseInt(tt.substr(2*Gt,2),16);if(Xt(Jt))return Gt;G[dt+Gt]=Jt}return Gt}function U(G,tt,dt,Dt){return rt(K(tt,G.length-dt),G,dt,Dt)}function z(G,tt,dt,Dt){return rt(it(tt),G,dt,Dt)}function Y(G,tt,dt,Dt){return z(G,tt,dt,Dt)}function A(G,tt,dt,Dt){return rt(Nt(tt),G,dt,Dt)}function I(G,tt,dt,Dt){return rt(st(tt,G.length-dt),G,dt,Dt)}function _(G,tt,dt){return tt===0&&dt===G.length?a.fromByteArray(G):a.fromByteArray(G.slice(tt,dt))}function x(G,tt,dt){dt=Math.min(G.length,dt);for(var Dt=[],re=tt;re<dt;){var X,Gt,Jt,vt,gt=G[re],Tt=null,ie=gt>239?4:gt>223?3:gt>191?2:1;if(re+ie<=dt)switch(ie){case 1:gt<128&&(Tt=gt);break;case 2:(192&(X=G[re+1]))==128&&(vt=(31>)<<6|63&X)>127&&(Tt=vt);break;case 3:X=G[re+1],Gt=G[re+2],(192&X)==128&&(192&Gt)==128&&(vt=(15>)<<12|(63&X)<<6|63&Gt)>2047&&(vt<55296||vt>57343)&&(Tt=vt);break;case 4:X=G[re+1],Gt=G[re+2],Jt=G[re+3],(192&X)==128&&(192&Gt)==128&&(192&Jt)==128&&(vt=(15>)<<18|(63&X)<<12|(63&Gt)<<6|63&Jt)>65535&&vt<1114112&&(Tt=vt)}Tt===null?(Tt=65533,ie=1):Tt>65535&&(Tt-=65536,Dt.push(Tt>>>10&1023|55296),Tt=56320|1023&Tt),Dt.push(Tt),re+=ie}return E(Dt)}e.kMaxLength=s,l.TYPED_ARRAY_SUPPORT=i(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),l.poolSize=8192,l.from=function(G,tt,dt){return f(G,tt,dt)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,l.alloc=function(G,tt,dt){return h(G,tt,dt)},l.allocUnsafe=function(G){return d(G)},l.allocUnsafeSlow=function(G){return d(G)},l.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==l.prototype},l.compare=function(G,tt){if(mt(G,Uint8Array)&&(G=l.from(G,G.offset,G.byteLength)),mt(tt,Uint8Array)&&(tt=l.from(tt,tt.offset,tt.byteLength)),!l.isBuffer(G)||!l.isBuffer(tt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===tt)return 0;for(var dt=G.length,Dt=tt.length,re=0,X=Math.min(dt,Dt);re<X;++re)if(G[re]!==tt[re]){dt=G[re],Dt=tt[re];break}return dt<Dt?-1:Dt<dt?1:0},l.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(G,tt){if(!Array.isArray(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return l.alloc(0);var dt;if(tt===void 0)for(tt=0,dt=0;dt<G.length;++dt)tt+=G[dt].length;var Dt=l.allocUnsafe(tt),re=0;for(dt=0;dt<G.length;++dt){var X=G[dt];if(mt(X,Uint8Array)&&(X=l.from(X)),!l.isBuffer(X))throw new TypeError('"list" argument must be an Array of Buffers');X.copy(Dt,re),re+=X.length}return Dt},l.byteLength=k,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var tt=0;tt<G;tt+=2)C(this,tt,tt+1);return this},l.prototype.swap32=function(){var G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var tt=0;tt<G;tt+=4)C(this,tt,tt+3),C(this,tt+1,tt+2);return this},l.prototype.swap64=function(){var G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var tt=0;tt<G;tt+=8)C(this,tt,tt+7),C(this,tt+1,tt+6),C(this,tt+2,tt+5),C(this,tt+3,tt+4);return this},l.prototype.toString=function(){var G=this.length;return G===0?"":arguments.length===0?x(this,0,G):S.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(G){if(!l.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G||l.compare(this,G)===0},l.prototype.inspect=function(){var G="",tt=e.INSPECT_MAX_BYTES;return G=this.toString("hex",0,tt).replace(/(.{2})/g,"$1 ").trim(),this.length>tt&&(G+=" ... "),"<Buffer "+G+">"},l.prototype.compare=function(G,tt,dt,Dt,re){if(mt(G,Uint8Array)&&(G=l.from(G,G.offset,G.byteLength)),!l.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(tt===void 0&&(tt=0),dt===void 0&&(dt=G?G.length:0),Dt===void 0&&(Dt=0),re===void 0&&(re=this.length),tt<0||dt>G.length||Dt<0||re>this.length)throw new RangeError("out of range index");if(Dt>=re&&tt>=dt)return 0;if(Dt>=re)return-1;if(tt>=dt)return 1;if(this===G)return 0;for(var X=(re>>>=0)-(Dt>>>=0),Gt=(dt>>>=0)-(tt>>>=0),Jt=Math.min(X,Gt),vt=this.slice(Dt,re),gt=G.slice(tt,dt),Tt=0;Tt<Jt;++Tt)if(vt[Tt]!==gt[Tt]){X=vt[Tt],Gt=gt[Tt];break}return X<Gt?-1:Gt<X?1:0},l.prototype.includes=function(G,tt,dt){return this.indexOf(G,tt,dt)!==-1},l.prototype.indexOf=function(G,tt,dt){return O(this,G,tt,dt,!0)},l.prototype.lastIndexOf=function(G,tt,dt){return O(this,G,tt,dt,!1)},l.prototype.write=function(G,tt,dt,Dt){if(tt===void 0)Dt="utf8",dt=this.length,tt=0;else if(dt===void 0&&typeof tt=="string")Dt=tt,dt=this.length,tt=0;else{if(!isFinite(tt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");tt>>>=0,isFinite(dt)?(dt>>>=0,Dt===void 0&&(Dt="utf8")):(Dt=dt,dt=void 0)}var re=this.length-tt;if((dt===void 0||dt>re)&&(dt=re),G.length>0&&(dt<0||tt<0)||tt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Dt||(Dt="utf8");for(var X=!1;;)switch(Dt){case"hex":return j(this,G,tt,dt);case"utf8":case"utf-8":return U(this,G,tt,dt);case"ascii":return z(this,G,tt,dt);case"latin1":case"binary":return Y(this,G,tt,dt);case"base64":return A(this,G,tt,dt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,G,tt,dt);default:if(X)throw new TypeError("Unknown encoding: "+Dt);Dt=(""+Dt).toLowerCase(),X=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function E(G){var tt=G.length;if(tt<=T)return String.fromCharCode.apply(String,G);for(var dt="",Dt=0;Dt<tt;)dt+=String.fromCharCode.apply(String,G.slice(Dt,Dt+=T));return dt}function M(G,tt,dt){var Dt="";dt=Math.min(G.length,dt);for(var re=tt;re<dt;++re)Dt+=String.fromCharCode(127&G[re]);return Dt}function F(G,tt,dt){var Dt="";dt=Math.min(G.length,dt);for(var re=tt;re<dt;++re)Dt+=String.fromCharCode(G[re]);return Dt}function P(G,tt,dt){var Dt=G.length;(!tt||tt<0)&&(tt=0),(!dt||dt<0||dt>Dt)&&(dt=Dt);for(var re="",X=tt;X<dt;++X)re+=at(G[X]);return re}function W(G,tt,dt){for(var Dt=G.slice(tt,dt),re="",X=0;X<Dt.length;X+=2)re+=String.fromCharCode(Dt[X]+256*Dt[X+1]);return re}function N(G,tt,dt){if(G%1!=0||G<0)throw new RangeError("offset is not uint");if(G+tt>dt)throw new RangeError("Trying to access beyond buffer length")}function q(G,tt,dt,Dt,re,X){if(!l.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(tt>re||tt<X)throw new RangeError('"value" argument is out of bounds');if(dt+Dt>G.length)throw new RangeError("Index out of range")}function nt(G,tt,dt,Dt,re,X){if(dt+Dt>G.length)throw new RangeError("Index out of range");if(dt<0)throw new RangeError("Index out of range")}function J(G,tt,dt,Dt,re){return tt=+tt,dt>>>=0,re||nt(G,tt,dt,4),o.write(G,tt,dt,Dt,23,4),dt+4}function St(G,tt,dt,Dt,re){return tt=+tt,dt>>>=0,re||nt(G,tt,dt,8),o.write(G,tt,dt,Dt,52,8),dt+8}l.prototype.slice=function(G,tt){var dt=this.length;(G=~~G)<0?(G+=dt)<0&&(G=0):G>dt&&(G=dt),(tt=tt===void 0?dt:~~tt)<0?(tt+=dt)<0&&(tt=0):tt>dt&&(tt=dt),tt<G&&(tt=G);var Dt=this.subarray(G,tt);return Dt.__proto__=l.prototype,Dt},l.prototype.readUIntLE=function(G,tt,dt){G>>>=0,tt>>>=0,dt||N(G,tt,this.length);for(var Dt=this[G],re=1,X=0;++X<tt&&(re*=256);)Dt+=this[G+X]*re;return Dt},l.prototype.readUIntBE=function(G,tt,dt){G>>>=0,tt>>>=0,dt||N(G,tt,this.length);for(var Dt=this[G+--tt],re=1;tt>0&&(re*=256);)Dt+=this[G+--tt]*re;return Dt},l.prototype.readUInt8=function(G,tt){return G>>>=0,tt||N(G,1,this.length),this[G]},l.prototype.readUInt16LE=function(G,tt){return G>>>=0,tt||N(G,2,this.length),this[G]|this[G+1]<<8},l.prototype.readUInt16BE=function(G,tt){return G>>>=0,tt||N(G,2,this.length),this[G]<<8|this[G+1]},l.prototype.readUInt32LE=function(G,tt){return G>>>=0,tt||N(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+16777216*this[G+3]},l.prototype.readUInt32BE=function(G,tt){return G>>>=0,tt||N(G,4,this.length),16777216*this[G]+(this[G+1]<<16|this[G+2]<<8|this[G+3])},l.prototype.readIntLE=function(G,tt,dt){G>>>=0,tt>>>=0,dt||N(G,tt,this.length);for(var Dt=this[G],re=1,X=0;++X<tt&&(re*=256);)Dt+=this[G+X]*re;return Dt>=(re*=128)&&(Dt-=Math.pow(2,8*tt)),Dt},l.prototype.readIntBE=function(G,tt,dt){G>>>=0,tt>>>=0,dt||N(G,tt,this.length);for(var Dt=tt,re=1,X=this[G+--Dt];Dt>0&&(re*=256);)X+=this[G+--Dt]*re;return X>=(re*=128)&&(X-=Math.pow(2,8*tt)),X},l.prototype.readInt8=function(G,tt){return G>>>=0,tt||N(G,1,this.length),128&this[G]?-1*(255-this[G]+1):this[G]},l.prototype.readInt16LE=function(G,tt){G>>>=0,tt||N(G,2,this.length);var dt=this[G]|this[G+1]<<8;return 32768&dt?4294901760|dt:dt},l.prototype.readInt16BE=function(G,tt){G>>>=0,tt||N(G,2,this.length);var dt=this[G+1]|this[G]<<8;return 32768&dt?4294901760|dt:dt},l.prototype.readInt32LE=function(G,tt){return G>>>=0,tt||N(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},l.prototype.readInt32BE=function(G,tt){return G>>>=0,tt||N(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},l.prototype.readFloatLE=function(G,tt){return G>>>=0,tt||N(G,4,this.length),o.read(this,G,!0,23,4)},l.prototype.readFloatBE=function(G,tt){return G>>>=0,tt||N(G,4,this.length),o.read(this,G,!1,23,4)},l.prototype.readDoubleLE=function(G,tt){return G>>>=0,tt||N(G,8,this.length),o.read(this,G,!0,52,8)},l.prototype.readDoubleBE=function(G,tt){return G>>>=0,tt||N(G,8,this.length),o.read(this,G,!1,52,8)},l.prototype.writeUIntLE=function(G,tt,dt,Dt){G=+G,tt>>>=0,dt>>>=0,Dt||q(this,G,tt,dt,Math.pow(2,8*dt)-1,0);var re=1,X=0;for(this[tt]=255&G;++X<dt&&(re*=256);)this[tt+X]=G/re&255;return tt+dt},l.prototype.writeUIntBE=function(G,tt,dt,Dt){G=+G,tt>>>=0,dt>>>=0,Dt||q(this,G,tt,dt,Math.pow(2,8*dt)-1,0);var re=dt-1,X=1;for(this[tt+re]=255&G;--re>=0&&(X*=256);)this[tt+re]=G/X&255;return tt+dt},l.prototype.writeUInt8=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,1,255,0),this[tt]=255&G,tt+1},l.prototype.writeUInt16LE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,2,65535,0),this[tt]=255&G,this[tt+1]=G>>>8,tt+2},l.prototype.writeUInt16BE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,2,65535,0),this[tt]=G>>>8,this[tt+1]=255&G,tt+2},l.prototype.writeUInt32LE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,4,4294967295,0),this[tt+3]=G>>>24,this[tt+2]=G>>>16,this[tt+1]=G>>>8,this[tt]=255&G,tt+4},l.prototype.writeUInt32BE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,4,4294967295,0),this[tt]=G>>>24,this[tt+1]=G>>>16,this[tt+2]=G>>>8,this[tt+3]=255&G,tt+4},l.prototype.writeIntLE=function(G,tt,dt,Dt){if(G=+G,tt>>>=0,!Dt){var re=Math.pow(2,8*dt-1);q(this,G,tt,dt,re-1,-re)}var X=0,Gt=1,Jt=0;for(this[tt]=255&G;++X<dt&&(Gt*=256);)G<0&&Jt===0&&this[tt+X-1]!==0&&(Jt=1),this[tt+X]=(G/Gt|0)-Jt&255;return tt+dt},l.prototype.writeIntBE=function(G,tt,dt,Dt){if(G=+G,tt>>>=0,!Dt){var re=Math.pow(2,8*dt-1);q(this,G,tt,dt,re-1,-re)}var X=dt-1,Gt=1,Jt=0;for(this[tt+X]=255&G;--X>=0&&(Gt*=256);)G<0&&Jt===0&&this[tt+X+1]!==0&&(Jt=1),this[tt+X]=(G/Gt|0)-Jt&255;return tt+dt},l.prototype.writeInt8=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,1,127,-128),G<0&&(G=255+G+1),this[tt]=255&G,tt+1},l.prototype.writeInt16LE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,2,32767,-32768),this[tt]=255&G,this[tt+1]=G>>>8,tt+2},l.prototype.writeInt16BE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,2,32767,-32768),this[tt]=G>>>8,this[tt+1]=255&G,tt+2},l.prototype.writeInt32LE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,4,2147483647,-2147483648),this[tt]=255&G,this[tt+1]=G>>>8,this[tt+2]=G>>>16,this[tt+3]=G>>>24,tt+4},l.prototype.writeInt32BE=function(G,tt,dt){return G=+G,tt>>>=0,dt||q(this,G,tt,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[tt]=G>>>24,this[tt+1]=G>>>16,this[tt+2]=G>>>8,this[tt+3]=255&G,tt+4},l.prototype.writeFloatLE=function(G,tt,dt){return J(this,G,tt,!0,dt)},l.prototype.writeFloatBE=function(G,tt,dt){return J(this,G,tt,!1,dt)},l.prototype.writeDoubleLE=function(G,tt,dt){return St(this,G,tt,!0,dt)},l.prototype.writeDoubleBE=function(G,tt,dt){return St(this,G,tt,!1,dt)},l.prototype.copy=function(G,tt,dt,Dt){if(!l.isBuffer(G))throw new TypeError("argument should be a Buffer");if(dt||(dt=0),Dt||Dt===0||(Dt=this.length),tt>=G.length&&(tt=G.length),tt||(tt=0),Dt>0&&Dt<dt&&(Dt=dt),Dt===dt||G.length===0||this.length===0)return 0;if(tt<0)throw new RangeError("targetStart out of bounds");if(dt<0||dt>=this.length)throw new RangeError("Index out of range");if(Dt<0)throw new RangeError("sourceEnd out of bounds");Dt>this.length&&(Dt=this.length),G.length-tt<Dt-dt&&(Dt=G.length-tt+dt);var re=Dt-dt;if(this===G&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(tt,dt,Dt);else if(this===G&&dt<tt&&tt<Dt)for(var X=re-1;X>=0;--X)G[X+tt]=this[X+dt];else Uint8Array.prototype.set.call(G,this.subarray(dt,Dt),tt);return re},l.prototype.fill=function(G,tt,dt,Dt){if(typeof G=="string"){if(typeof tt=="string"?(Dt=tt,tt=0,dt=this.length):typeof dt=="string"&&(Dt=dt,dt=this.length),Dt!==void 0&&typeof Dt!="string")throw new TypeError("encoding must be a string");if(typeof Dt=="string"&&!l.isEncoding(Dt))throw new TypeError("Unknown encoding: "+Dt);if(G.length===1){var re=G.charCodeAt(0);(Dt==="utf8"&&re<128||Dt==="latin1")&&(G=re)}}else typeof G=="number"&&(G&=255);if(tt<0||this.length<tt||this.length<dt)throw new RangeError("Out of range index");if(dt<=tt)return this;var X;if(tt>>>=0,dt=dt===void 0?this.length:dt>>>0,G||(G=0),typeof G=="number")for(X=tt;X<dt;++X)this[X]=G;else{var Gt=l.isBuffer(G)?G:l.from(G,Dt),Jt=Gt.length;if(Jt===0)throw new TypeError('The value "'+G+'" is invalid for argument "value"');for(X=0;X<dt-tt;++X)this[X+tt]=Gt[X%Jt]}return this};var kt=/[^+/0-9A-Za-z-_]/g;function Mt(G){if((G=(G=G.split("=")[0]).trim().replace(kt,"")).length<2)return"";for(;G.length%4!=0;)G+="=";return G}function at(G){return G<16?"0"+G.toString(16):G.toString(16)}function K(G,tt){var dt;tt=tt||1/0;for(var Dt=G.length,re=null,X=[],Gt=0;Gt<Dt;++Gt){if((dt=G.charCodeAt(Gt))>55295&&dt<57344){if(!re){if(dt>56319){(tt-=3)>-1&&X.push(239,191,189);continue}if(Gt+1===Dt){(tt-=3)>-1&&X.push(239,191,189);continue}re=dt;continue}if(dt<56320){(tt-=3)>-1&&X.push(239,191,189),re=dt;continue}dt=65536+(re-55296<<10|dt-56320)}else re&&(tt-=3)>-1&&X.push(239,191,189);if(re=null,dt<128){if((tt-=1)<0)break;X.push(dt)}else if(dt<2048){if((tt-=2)<0)break;X.push(dt>>6|192,63&dt|128)}else if(dt<65536){if((tt-=3)<0)break;X.push(dt>>12|224,dt>>6&63|128,63&dt|128)}else{if(!(dt<1114112))throw new Error("Invalid code point");if((tt-=4)<0)break;X.push(dt>>18|240,dt>>12&63|128,dt>>6&63|128,63&dt|128)}}return X}function it(G){for(var tt=[],dt=0;dt<G.length;++dt)tt.push(255&G.charCodeAt(dt));return tt}function st(G,tt){for(var dt,Dt,re,X=[],Gt=0;Gt<G.length&&!((tt-=2)<0);++Gt)Dt=(dt=G.charCodeAt(Gt))>>8,re=dt%256,X.push(re),X.push(Dt);return X}function Nt(G){return a.toByteArray(Mt(G))}function rt(G,tt,dt,Dt){for(var re=0;re<Dt&&!(re+dt>=tt.length||re>=G.length);++re)tt[re+dt]=G[re];return re}function mt(G,tt){return G instanceof tt||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===tt.name}function Xt(G){return G!=G}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("stream").Transform,o=t("string_decoder").StringDecoder;function s(i){a.call(this),this.hashMode=typeof i=="string",this.hashMode?this[i]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(s,a),s.prototype.update=function(i,u,l){typeof i=="string"&&(i=n.from(i,u));var f=this._update(i);return this.hashMode?this:(l&&(f=this._toString(f,l)),f)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(i,u,l){var f;try{this.hashMode?this._update(i):this.push(this._update(i))}catch(c){f=c}finally{l(f)}},s.prototype._flush=function(i){var u;try{this.push(this.__final())}catch(l){u=l}i(u)},s.prototype._finalOrDigest=function(i){var u=this.__final()||n.alloc(0);return i&&(u=this._toString(u,i,!0)),u},s.prototype._toString=function(i,u,l){if(this._decoder||(this._decoder=new o(u),this._encoding=u),this._encoding!==u)throw new Error("can't switch encodings");var f=this._decoder.write(i);return l&&(f+=this._decoder.end()),f},r.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(t,r,e){var n=t("../internals/is-callable"),a=t("../internals/try-to-string"),o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(a(s)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(t,r,e){var n=t("../internals/is-constructor"),a=t("../internals/try-to-string"),o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(a(s)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(t,r,e){var n=t("../internals/is-callable"),a=String,o=TypeError;r.exports=function(s){if(typeof s=="object"||n(s))return s;throw new o("Can't set "+a(s)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(t,r,e){var n=t("../internals/well-known-symbol"),a=t("../internals/object-create"),o=t("../internals/object-define-property").f,s=n("unscopables"),i=Array.prototype;i[s]===void 0&&o(i,s,{configurable:!0,value:a(null)}),r.exports=function(u){i[s][u]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(t,r,e){var n=t("../internals/object-is-prototype-of"),a=TypeError;r.exports=function(o,s){if(n(s,o))return o;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(t,r,e){var n=t("../internals/is-object"),a=String,o=TypeError;r.exports=function(s){if(n(s))return s;throw new o(a(s)+" is not an object")}},{"../internals/is-object":289}],228:[function(t,r,e){var n=t("../internals/to-indexed-object"),a=t("../internals/to-absolute-index"),o=t("../internals/length-of-array-like"),s=function(i){return function(u,l,f){var c,h=n(u),d=o(h),p=a(f,d);if(i&&l!=l){for(;d>p;)if((c=h[p++])!=c)return!0}else for(;d>p;p++)if((i||p in h)&&h[p]===l)return i||p||0;return!i&&-1}};r.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(t,r,e){var n=t("../internals/function-bind-context"),a=t("../internals/function-uncurry-this"),o=t("../internals/indexed-object"),s=t("../internals/to-object"),i=t("../internals/length-of-array-like"),u=t("../internals/array-species-create"),l=a([].push),f=function(c){var h=c===1,d=c===2,p=c===3,m=c===4,v=c===6,b=c===7,g=c===5||v;return function(y,k,S,C){for(var O,L,j=s(y),U=o(j),z=n(k,S),Y=i(U),A=0,I=C||u,_=h?I(y,Y):d||b?I(y,0):void 0;Y>A;A++)if((g||A in U)&&(L=z(O=U[A],A,j),c))if(h)_[A]=L;else if(L)switch(c){case 3:return!0;case 5:return O;case 6:return A;case 2:l(_,O)}else switch(c){case 4:return!1;case 7:l(_,O)}return v?-1:p||m?m:_}};r.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(t,r,e){var n=t("../internals/to-absolute-index"),a=t("../internals/length-of-array-like"),o=t("../internals/create-property"),s=Array,i=Math.max;r.exports=function(u,l,f){for(var c=a(u),h=n(l,c),d=n(f===void 0?c:f,c),p=s(i(d-h,0)),m=0;h<d;h++,m++)o(p,m,u[h]);return p.length=m,p}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(t,r,e){var n=t("../internals/function-uncurry-this");r.exports=n([].slice)},{"../internals/function-uncurry-this":268}],232:[function(t,r,e){var n=t("../internals/is-array"),a=t("../internals/is-constructor"),o=t("../internals/is-object"),s=t("../internals/well-known-symbol")("species"),i=Array;r.exports=function(u){var l;return n(u)&&(l=u.constructor,(a(l)&&(l===i||n(l.prototype))||o(l)&&(l=l[s])===null)&&(l=void 0)),l===void 0?i:l}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(t,r,e){var n=t("../internals/array-species-constructor");r.exports=function(a,o){return new(n(a))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(t,r,e){var n=t("../internals/well-known-symbol")("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch{}r.exports=function(i,u){try{if(!u&&!a)return!1}catch{return!1}var l=!1;try{var f={};f[n]=function(){return{next:function(){return{done:l=!0}}}},i(f)}catch{}return l}},{"../internals/well-known-symbol":357}],235:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=n({}.toString),o=n("".slice);r.exports=function(s){return o(a(s),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(t,r,e){var n=t("../internals/to-string-tag-support"),a=t("../internals/is-callable"),o=t("../internals/classof-raw"),s=t("../internals/well-known-symbol")("toStringTag"),i=Object,u=o(function(){return arguments}())==="Arguments",l=function(f,c){try{return f[c]}catch{}};r.exports=n?o:function(f){var c,h,d;return f===void 0?"Undefined":f===null?"Null":typeof(h=l(c=i(f),s))=="string"?h:u?o(c):(d=o(c))==="Object"&&a(c.callee)?"Arguments":d}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(t,r,e){var n=t("../internals/has-own-property"),a=t("../internals/own-keys"),o=t("../internals/object-get-own-property-descriptor"),s=t("../internals/object-define-property");r.exports=function(i,u,l){for(var f=a(u),c=s.f,h=o.f,d=0;d<f.length;d++){var p=f[d];n(i,p)||l&&n(l,p)||c(i,p,h(u,p))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(t,r,e){var n=t("../internals/well-known-symbol")("match");r.exports=function(a){var o=/./;try{"/./"[a](o)}catch{try{return o[n]=!1,"/./"[a](o)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},{"../internals/fails":260}],240:[function(t,r,e){r.exports=function(n,a){return{value:n,done:a}}},{}],241:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");r.exports=n?function(s,i,u){return a.f(s,i,o(1,u))}:function(s,i,u){return s[i]=u,s}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(t,r,e){r.exports=function(n,a){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:a}}},{}],243:[function(t,r,e){var n=t("../internals/to-property-key"),a=t("../internals/object-define-property"),o=t("../internals/create-property-descriptor");r.exports=function(s,i,u){var l=n(i);l in s?a.f(s,l,o(0,u)):s[l]=u}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(t,r,e){var n=t("../internals/make-built-in"),a=t("../internals/object-define-property");r.exports=function(o,s,i){return i.get&&n(i.get,s,{getter:!0}),i.set&&n(i.set,s,{setter:!0}),a.f(o,s,i)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(t,r,e){var n=t("../internals/is-callable"),a=t("../internals/object-define-property"),o=t("../internals/make-built-in"),s=t("../internals/define-global-property");r.exports=function(i,u,l,f){f||(f={});var c=f.enumerable,h=f.name!==void 0?f.name:u;if(n(l)&&o(l,h,f),f.global)c?i[u]=l:s(u,l);else{try{f.unsafe?i[u]&&(c=!0):delete i[u]}catch{}c?i[u]=l:a.f(i,u,{value:l,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(t,r,e){var n=t("../internals/global"),a=Object.defineProperty;r.exports=function(o,s){try{a(n,o,{value:s,configurable:!0,writable:!0})}catch{n[o]=s}return s}},{"../internals/global":274}],247:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(t,r,e){var n=typeof document=="object"&&document.all,a=n===void 0&&n!==void 0;r.exports={all:n,IS_HTMLDDA:a}},{}],249:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/is-object"),o=n.document,s=a(o)&&a(o.createElement);r.exports=function(i){return s?o.createElement(i):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(t,r,e){var n=t("../internals/engine-is-deno"),a=t("../internals/engine-is-node");r.exports=!n&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(t,r,e){r.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":256}],254:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/classof-raw");r.exports=a(n.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":256}],256:[function(t,r,e){r.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(t,r,e){var n,a,o=t("../internals/global"),s=t("../internals/engine-user-agent"),i=o.process,u=o.Deno,l=i&&i.versions||u&&u.version,f=l&&l.v8;f&&(a=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!a&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(a=+n[1]),r.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(t,r,e){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/object-get-own-property-descriptor").f,o=t("../internals/create-non-enumerable-property"),s=t("../internals/define-built-in"),i=t("../internals/define-global-property"),u=t("../internals/copy-constructor-properties"),l=t("../internals/is-forced");r.exports=function(f,c){var h,d,p,m,v,b=f.target,g=f.global,y=f.stat;if(h=g?n:y?n[b]||i(b,{}):(n[b]||{}).prototype)for(d in c){if(m=c[d],p=f.dontCallGetSet?(v=a(h,d))&&v.value:h[d],!l(g?d:b+(y?".":"#")+d,f.forced)&&p!==void 0){if(typeof m==typeof p)continue;u(m,p)}(f.sham||p&&p.sham)&&o(m,"sham",!0),s(h,d,m,f)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(t,r,e){r.exports=function(n){try{return!!n()}catch{return!0}}},{}],261:[function(t,r,e){var n=t("../internals/function-bind-native"),a=Function.prototype,o=a.apply,s=a.call;r.exports=typeof Reflect=="object"&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(t,r,e){var n=t("../internals/function-uncurry-this-clause"),a=t("../internals/a-callable"),o=t("../internals/function-bind-native"),s=n(n.bind);r.exports=function(i,u){return a(i),u===void 0?i:o?s(i,u):function(){return i.apply(u,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(t,r,e){var n=t("../internals/function-bind-native"),a=Function.prototype.call;r.exports=n?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/has-own-property"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,i=a(o,"name"),u=i&&(function(){}).name==="something",l=i&&(!n||n&&s(o,"name").configurable);r.exports={EXISTS:i,PROPER:u,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/a-callable");r.exports=function(o,s,i){try{return n(a(Object.getOwnPropertyDescriptor(o,s)[i]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(t,r,e){var n=t("../internals/classof-raw"),a=t("../internals/function-uncurry-this");r.exports=function(o){if(n(o)==="Function")return a(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(t,r,e){var n=t("../internals/function-bind-native"),a=Function.prototype,o=a.call,s=n&&a.bind.bind(o,o);r.exports=n?s:function(i){return function(){return o.apply(i,arguments)}}},{"../internals/function-bind-native":263}],269:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/is-callable"),o=function(s){return a(s)?s:void 0};r.exports=function(s,i){return arguments.length<2?o(n[s]):n[s]&&n[s][i]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(t,r,e){var n=t("../internals/classof"),a=t("../internals/get-method"),o=t("../internals/is-null-or-undefined"),s=t("../internals/iterators"),i=t("../internals/well-known-symbol")("iterator");r.exports=function(u){if(!o(u))return a(u,i)||a(u,"@@iterator")||s[n(u)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/a-callable"),o=t("../internals/an-object"),s=t("../internals/try-to-string"),i=t("../internals/get-iterator-method"),u=TypeError;r.exports=function(l,f){var c=arguments.length<2?i(l):f;if(a(c))return o(n(c,l));throw new u(s(l)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/is-array"),o=t("../internals/is-callable"),s=t("../internals/classof-raw"),i=t("../internals/to-string"),u=n([].push);r.exports=function(l){if(o(l))return l;if(a(l)){for(var f=l.length,c=[],h=0;h<f;h++){var d=l[h];typeof d=="string"?u(c,d):typeof d!="number"&&s(d)!=="Number"&&s(d)!=="String"||u(c,i(d))}var p=c.length,m=!0;return function(v,b){if(m)return m=!1,b;if(a(this))return b;for(var g=0;g<p;g++)if(c[g]===v)return b}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(t,r,e){var n=t("../internals/a-callable"),a=t("../internals/is-null-or-undefined");r.exports=function(o,s){var i=o[s];return a(i)?void 0:n(i)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(t,r,e){(function(n){(function(){var a=function(o){return o&&o.Math===Math&&o};r.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof n=="object"&&n)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/to-object"),o=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(s,i){return o(a(s),i)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(t,r,e){r.exports={}},{}],277:[function(t,r,e){r.exports=function(n,a){try{arguments.length===1?console.error(n):console.error(n,a)}catch{}}},{}],278:[function(t,r,e){var n=t("../internals/get-built-in");r.exports=n("document","documentElement")},{"../internals/get-built-in":269}],279:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/fails"),o=t("../internals/document-create-element");r.exports=!n&&!a(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/classof-raw"),s=Object,i=n("".split);r.exports=a(function(){return!s("z").propertyIsEnumerable(0)})?function(u){return o(u)==="String"?i(u,""):s(u)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/is-callable"),o=t("../internals/shared-store"),s=n(Function.toString);a(o.inspectSource)||(o.inspectSource=function(i){return s(i)}),r.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(t,r,e){var n,a,o,s=t("../internals/weak-map-basic-detection"),i=t("../internals/global"),u=t("../internals/is-object"),l=t("../internals/create-non-enumerable-property"),f=t("../internals/has-own-property"),c=t("../internals/shared-store"),h=t("../internals/shared-key"),d=t("../internals/hidden-keys"),p="Object already initialized",m=i.TypeError,v=i.WeakMap,b=function(S){return o(S)?a(S):n(S,{})},g=function(S){return function(C){var O;if(!u(C)||(O=a(C)).type!==S)throw new m("Incompatible receiver, "+S+" required");return O}};if(s||c.state){var y=c.state||(c.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,n=function(S,C){if(y.has(S))throw new m(p);return C.facade=S,y.set(S,C),C},a=function(S){return y.get(S)||{}},o=function(S){return y.has(S)}}else{var k=h("state");d[k]=!0,n=function(S,C){if(f(S,k))throw new m(p);return C.facade=S,l(S,k,C),C},a=function(S){return f(S,k)?S[k]:{}},o=function(S){return f(S,k)}}r.exports={set:n,get:a,has:o,enforce:b,getterFor:g}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(t,r,e){var n=t("../internals/well-known-symbol"),a=t("../internals/iterators"),o=n("iterator"),s=Array.prototype;r.exports=function(i){return i!==void 0&&(a.Array===i||s[o]===i)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(t,r,e){var n=t("../internals/classof-raw");r.exports=Array.isArray||function(a){return n(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(t,r,e){var n=t("../internals/document-all"),a=n.all;r.exports=n.IS_HTMLDDA?function(o){return typeof o=="function"||o===a}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/is-callable"),s=t("../internals/classof"),i=t("../internals/get-built-in"),u=t("../internals/inspect-source"),l=function(){},f=[],c=i("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),p=!h.test(l),m=function(b){if(!o(b))return!1;try{return c(l,f,b),!0}catch{return!1}},v=function(b){if(!o(b))return!1;switch(s(b)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,u(b))}catch{return!0}};v.sham=!0,r.exports=!c||a(function(){var b;return m(m.call)||!m(Object)||!m(function(){b=!0})||b})?v:m},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(t,r,e){var n=t("../internals/fails"),a=t("../internals/is-callable"),o=/#|\.prototype\./,s=function(c,h){var d=u[i(c)];return d===f||d!==l&&(a(h)?n(h):!!h)},i=s.normalize=function(c){return String(c).replace(o,".").toLowerCase()},u=s.data={},l=s.NATIVE="N",f=s.POLYFILL="P";r.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(t,r,e){r.exports=function(n){return n==null}},{}],289:[function(t,r,e){var n=t("../internals/is-callable"),a=t("../internals/document-all"),o=a.all;r.exports=a.IS_HTMLDDA?function(s){return typeof s=="object"?s!==null:n(s)||s===o}:function(s){return typeof s=="object"?s!==null:n(s)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(t,r,e){r.exports=!1},{}],291:[function(t,r,e){var n=t("../internals/is-object"),a=t("../internals/classof-raw"),o=t("../internals/well-known-symbol")("match");r.exports=function(s){var i;return n(s)&&((i=s[o])!==void 0?!!i:a(s)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(t,r,e){var n=t("../internals/get-built-in"),a=t("../internals/is-callable"),o=t("../internals/object-is-prototype-of"),s=t("../internals/use-symbol-as-uid"),i=Object;r.exports=s?function(u){return typeof u=="symbol"}:function(u){var l=n("Symbol");return a(l)&&o(l.prototype,i(u))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(t,r,e){var n=t("../internals/function-bind-context"),a=t("../internals/function-call"),o=t("../internals/an-object"),s=t("../internals/try-to-string"),i=t("../internals/is-array-iterator-method"),u=t("../internals/length-of-array-like"),l=t("../internals/object-is-prototype-of"),f=t("../internals/get-iterator"),c=t("../internals/get-iterator-method"),h=t("../internals/iterator-close"),d=TypeError,p=function(v,b){this.stopped=v,this.result=b},m=p.prototype;r.exports=function(v,b,g){var y,k,S,C,O,L,j,U=g&&g.that,z=!(!g||!g.AS_ENTRIES),Y=!(!g||!g.IS_RECORD),A=!(!g||!g.IS_ITERATOR),I=!(!g||!g.INTERRUPTED),_=n(b,U),x=function(E){return y&&h(y,"normal",E),new p(!0,E)},T=function(E){return z?(o(E),I?_(E[0],E[1],x):_(E[0],E[1])):I?_(E,x):_(E)};if(Y)y=v.iterator;else if(A)y=v;else{if(!(k=c(v)))throw new d(s(v)+" is not iterable");if(i(k)){for(S=0,C=u(v);C>S;S++)if((O=T(v[S]))&&l(m,O))return O;return new p(!1)}y=f(v,k)}for(L=Y?v.next:y.next;!(j=a(L,y)).done;){try{O=T(j.value)}catch(E){h(y,"throw",E)}if(typeof O=="object"&&O&&l(m,O))return O}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/an-object"),o=t("../internals/get-method");r.exports=function(s,i,u){var l,f;a(s);try{if(!(l=o(s,"return"))){if(i==="throw")throw u;return u}l=n(l,s)}catch(c){f=!0,l=c}if(i==="throw")throw u;if(f)throw l;return a(l),u}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(t,r,e){var n=t("../internals/iterators-core").IteratorPrototype,a=t("../internals/object-create"),o=t("../internals/create-property-descriptor"),s=t("../internals/set-to-string-tag"),i=t("../internals/iterators"),u=function(){return this};r.exports=function(l,f,c,h){var d=f+" Iterator";return l.prototype=a(n,{next:o(+!h,c)}),s(l,d,!1,!0),i[d]=u,l}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/is-pure"),s=t("../internals/function-name"),i=t("../internals/is-callable"),u=t("../internals/iterator-create-constructor"),l=t("../internals/object-get-prototype-of"),f=t("../internals/object-set-prototype-of"),c=t("../internals/set-to-string-tag"),h=t("../internals/create-non-enumerable-property"),d=t("../internals/define-built-in"),p=t("../internals/well-known-symbol"),m=t("../internals/iterators"),v=t("../internals/iterators-core"),b=s.PROPER,g=s.CONFIGURABLE,y=v.IteratorPrototype,k=v.BUGGY_SAFARI_ITERATORS,S=p("iterator"),C="keys",O="values",L="entries",j=function(){return this};r.exports=function(U,z,Y,A,I,_,x){u(Y,z,A);var T,E,M,F=function(St){if(St===I&&nt)return nt;if(!k&&St&&St in N)return N[St];switch(St){case C:case O:case L:return function(){return new Y(this,St)}}return function(){return new Y(this)}},P=z+" Iterator",W=!1,N=U.prototype,q=N[S]||N["@@iterator"]||I&&N[I],nt=!k&&q||F(I),J=z==="Array"&&N.entries||q;if(J&&(T=l(J.call(new U)))!==Object.prototype&&T.next&&(o||l(T)===y||(f?f(T,y):i(T[S])||d(T,S,j)),c(T,P,!0,!0),o&&(m[P]=j)),b&&I===O&&q&&q.name!==O&&(!o&&g?h(N,"name",O):(W=!0,nt=function(){return a(q,this)})),I)if(E={values:F(O),keys:_?nt:F(C),entries:F(L)},x)for(M in E)(k||W||!(M in N))&&d(N,M,E[M]);else n({target:z,proto:!0,forced:k||W},E);return o&&!x||N[S]===nt||d(N,S,nt,{name:I}),m[z]=nt,E}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(t,r,e){var n,a,o,s=t("../internals/fails"),i=t("../internals/is-callable"),u=t("../internals/is-object"),l=t("../internals/object-create"),f=t("../internals/object-get-prototype-of"),c=t("../internals/define-built-in"),h=t("../internals/well-known-symbol"),d=t("../internals/is-pure"),p=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(a=f(f(o)))!==Object.prototype&&(n=a):m=!0),!u(n)||s(function(){var v={};return n[p].call(v)!==v})?n={}:d&&(n=l(n)),i(n[p])||c(n,p,function(){return this}),r.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(t,r,e){arguments[4][276][0].apply(e,arguments)},{dup:276}],299:[function(t,r,e){var n=t("../internals/to-length");r.exports=function(a){return n(a.length)}},{"../internals/to-length":343}],300:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/fails"),o=t("../internals/is-callable"),s=t("../internals/has-own-property"),i=t("../internals/descriptors"),u=t("../internals/function-name").CONFIGURABLE,l=t("../internals/inspect-source"),f=t("../internals/internal-state"),c=f.enforce,h=f.get,d=String,p=Object.defineProperty,m=n("".slice),v=n("".replace),b=n([].join),g=i&&!a(function(){return p(function(){},"length",{value:8}).length!==8}),y=String(String).split("String"),k=r.exports=function(S,C,O){m(d(C),0,7)==="Symbol("&&(C="["+v(d(C),/^Symbol\(([^)]*)\)/,"$1")+"]"),O&&O.getter&&(C="get "+C),O&&O.setter&&(C="set "+C),(!s(S,"name")||u&&S.name!==C)&&(i?p(S,"name",{value:C,configurable:!0}):S.name=C),g&&O&&s(O,"arity")&&S.length!==O.arity&&p(S,"length",{value:O.arity});try{O&&s(O,"constructor")&&O.constructor?i&&p(S,"prototype",{writable:!1}):S.prototype&&(S.prototype=void 0)}catch{}var L=c(S);return s(L,"source")||(L.source=b(y,typeof C=="string"?C:"")),S};Function.prototype.toString=k(function(){return o(this)&&h(this).source||l(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(t,r,e){var n=Math.ceil,a=Math.floor;r.exports=Math.trunc||function(o){var s=+o;return(s>0?a:n)(s)}},{}],302:[function(t,r,e){var n,a,o,s,i,u=t("../internals/global"),l=t("../internals/function-bind-context"),f=t("../internals/object-get-own-property-descriptor").f,c=t("../internals/task").set,h=t("../internals/queue"),d=t("../internals/engine-is-ios"),p=t("../internals/engine-is-ios-pebble"),m=t("../internals/engine-is-webos-webkit"),v=t("../internals/engine-is-node"),b=u.MutationObserver||u.WebKitMutationObserver,g=u.document,y=u.process,k=u.Promise,S=f(u,"queueMicrotask"),C=S&&S.value;if(!C){var O=new h,L=function(){var j,U;for(v&&(j=y.domain)&&j.exit();U=O.get();)try{U()}catch(z){throw O.head&&n(),z}j&&j.enter()};d||v||m||!b||!g?!p&&k&&k.resolve?((s=k.resolve(void 0)).constructor=k,i=l(s.then,s),n=function(){i(L)}):v?n=function(){y.nextTick(L)}:(c=l(c,u),n=function(){c(L)}):(a=!0,o=g.createTextNode(""),new b(L).observe(o,{characterData:!0}),n=function(){o.data=a=!a}),C=function(j){O.head||n(),O.add(j)}}r.exports=C},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(t,r,e){var n=t("../internals/a-callable"),a=TypeError,o=function(s){var i,u;this.promise=new s(function(l,f){if(i!==void 0||u!==void 0)throw new a("Bad Promise constructor");i=l,u=f}),this.resolve=n(i),this.reject=n(u)};r.exports.f=function(s){return new o(s)}},{"../internals/a-callable":222}],304:[function(t,r,e){var n=t("../internals/is-regexp"),a=TypeError;r.exports=function(o){if(n(o))throw new a("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/function-uncurry-this"),o=t("../internals/function-call"),s=t("../internals/fails"),i=t("../internals/object-keys"),u=t("../internals/object-get-own-property-symbols"),l=t("../internals/object-property-is-enumerable"),f=t("../internals/to-object"),c=t("../internals/indexed-object"),h=Object.assign,d=Object.defineProperty,p=a([].concat);r.exports=!h||s(function(){if(n&&h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var m={},v={},b=Symbol("assign detection"),g="abcdefghijklmnopqrst";return m[b]=7,g.split("").forEach(function(y){v[y]=y}),h({},m)[b]!==7||i(h({},v)).join("")!==g})?function(m,v){for(var b=f(m),g=arguments.length,y=1,k=u.f,S=l.f;g>y;)for(var C,O=c(arguments[y++]),L=k?p(i(O),k(O)):i(O),j=L.length,U=0;j>U;)C=L[U++],n&&!o(S,O,C)||(b[C]=O[C]);return b}:h},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(t,r,e){var n,a=t("../internals/an-object"),o=t("../internals/object-define-properties"),s=t("../internals/enum-bug-keys"),i=t("../internals/hidden-keys"),u=t("../internals/html"),l=t("../internals/document-create-element"),f=t("../internals/shared-key"),c=">",h="<",d="prototype",p="script",m=f("IE_PROTO"),v=function(){},b=function(S){return h+p+c+S+h+"/"+p+c},g=function(S){S.write(b("")),S.close();var C=S.parentWindow.Object;return S=null,C},y=function(){var S,C=l("iframe"),O="java"+p+":";return C.style.display="none",u.appendChild(C),C.src=String(O),(S=C.contentWindow.document).open(),S.write(b("document.F=Object")),S.close(),S.F},k=function(){try{n=new ActiveXObject("htmlfile")}catch{}k=typeof document<"u"?document.domain&&n?g(n):y():g(n);for(var S=s.length;S--;)delete k[d][s[S]];return k()};i[m]=!0,r.exports=Object.create||function(S,C){var O;return S!==null?(v[d]=a(S),O=new v,v[d]=null,O[m]=S):O=k(),C===void 0?O:o.f(O,C)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/v8-prototype-define-bug"),o=t("../internals/object-define-property"),s=t("../internals/an-object"),i=t("../internals/to-indexed-object"),u=t("../internals/object-keys");e.f=n&&!a?Object.defineProperties:function(l,f){s(l);for(var c,h=i(f),d=u(f),p=d.length,m=0;p>m;)o.f(l,c=d[m++],h[c]);return l}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/ie8-dom-define"),o=t("../internals/v8-prototype-define-bug"),s=t("../internals/an-object"),i=t("../internals/to-property-key"),u=TypeError,l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",h="configurable",d="writable";e.f=n?o?function(p,m,v){if(s(p),m=i(m),s(v),typeof p=="function"&&m==="prototype"&&"value"in v&&d in v&&!v[d]){var b=f(p,m);b&&b[d]&&(p[m]=v.value,v={configurable:h in v?v[h]:b[h],enumerable:c in v?v[c]:b[c],writable:!1})}return l(p,m,v)}:l:function(p,m,v){if(s(p),m=i(m),s(v),a)try{return l(p,m,v)}catch{}if("get"in v||"set"in v)throw new u("Accessors not supported");return"value"in v&&(p[m]=v.value),p}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/function-call"),o=t("../internals/object-property-is-enumerable"),s=t("../internals/create-property-descriptor"),i=t("../internals/to-indexed-object"),u=t("../internals/to-property-key"),l=t("../internals/has-own-property"),f=t("../internals/ie8-dom-define"),c=Object.getOwnPropertyDescriptor;e.f=n?c:function(h,d){if(h=i(h),d=u(d),f)try{return c(h,d)}catch{}if(l(h,d))return s(!a(o.f,h,d),h[d])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(t,r,e){var n=t("../internals/classof-raw"),a=t("../internals/to-indexed-object"),o=t("../internals/object-get-own-property-names").f,s=t("../internals/array-slice-simple"),i=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(l){try{return o(l)}catch{return s(i)}};r.exports.f=function(l){return i&&n(l)==="Window"?u(l):o(a(l))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(t,r,e){var n=t("../internals/object-keys-internal"),a=t("../internals/enum-bug-keys").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(o){return n(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(t,r,e){e.f=Object.getOwnPropertySymbols},{}],313:[function(t,r,e){var n=t("../internals/has-own-property"),a=t("../internals/is-callable"),o=t("../internals/to-object"),s=t("../internals/shared-key"),i=t("../internals/correct-prototype-getter"),u=s("IE_PROTO"),l=Object,f=l.prototype;r.exports=i?l.getPrototypeOf:function(c){var h=o(c);if(n(h,u))return h[u];var d=h.constructor;return a(d)&&h instanceof d?d.prototype:h instanceof l?f:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(t,r,e){var n=t("../internals/function-uncurry-this");r.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=t("../internals/has-own-property"),o=t("../internals/to-indexed-object"),s=t("../internals/array-includes").indexOf,i=t("../internals/hidden-keys"),u=n([].push);r.exports=function(l,f){var c,h=o(l),d=0,p=[];for(c in h)!a(i,c)&&a(h,c)&&u(p,c);for(;f.length>d;)a(h,c=f[d++])&&(~s(p,c)||u(p,c));return p}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(t,r,e){var n=t("../internals/object-keys-internal"),a=t("../internals/enum-bug-keys");r.exports=Object.keys||function(o){return n(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(t,r,e){var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!n.call({1:2},1);e.f=o?function(s){var i=a(this,s);return!!i&&i.enumerable}:n},{}],318:[function(t,r,e){var n=t("../internals/function-uncurry-this-accessor"),a=t("../internals/an-object"),o=t("../internals/a-possible-prototype");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s,i=!1,u={};try{(s=n(Object.prototype,"__proto__","set"))(u,[]),i=u instanceof Array}catch{}return function(l,f){return a(l),o(f),i?s(l,f):l.__proto__=f,l}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/fails"),o=t("../internals/function-uncurry-this"),s=t("../internals/object-get-prototype-of"),i=t("../internals/object-keys"),u=t("../internals/to-indexed-object"),l=o(t("../internals/object-property-is-enumerable").f),f=o([].push),c=n&&a(function(){var d=Object.create(null);return d[2]=2,!l(d,2)}),h=function(d){return function(p){for(var m,v=u(p),b=i(v),g=c&&s(v)===null,y=b.length,k=0,S=[];y>k;)m=b[k++],n&&!(g?m in v:l(v,m))||f(S,d?[m,v[m]]:v[m]);return S}};r.exports={entries:h(!0),values:h(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/is-callable"),o=t("../internals/is-object"),s=TypeError;r.exports=function(i,u){var l,f;if(u==="string"&&a(l=i.toString)&&!o(f=n(l,i))||a(l=i.valueOf)&&!o(f=n(l,i))||u!=="string"&&a(l=i.toString)&&!o(f=n(l,i)))return f;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(t,r,e){var n=t("../internals/get-built-in"),a=t("../internals/function-uncurry-this"),o=t("../internals/object-get-own-property-names"),s=t("../internals/object-get-own-property-symbols"),i=t("../internals/an-object"),u=a([].concat);r.exports=n("Reflect","ownKeys")||function(l){var f=o.f(i(l)),c=s.f;return c?u(f,c(l)):f}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(t,r,e){var n=t("../internals/global");r.exports=n},{"../internals/global":274}],323:[function(t,r,e){r.exports=function(n){try{return{error:!1,value:n()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/promise-native-constructor"),o=t("../internals/is-callable"),s=t("../internals/is-forced"),i=t("../internals/inspect-source"),u=t("../internals/well-known-symbol"),l=t("../internals/engine-is-browser"),f=t("../internals/engine-is-deno"),c=t("../internals/is-pure"),h=t("../internals/engine-v8-version"),d=a&&a.prototype,p=u("species"),m=!1,v=o(n.PromiseRejectionEvent),b=s("Promise",function(){var g=i(a),y=g!==String(a);if(!y&&h===66||c&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(g)){var k=new a(function(C){C(1)}),S=function(C){C(function(){},function(){})};if((k.constructor={})[p]=S,!(m=k.then(function(){})instanceof S))return!0}return!y&&(l||f)&&!v});r.exports={CONSTRUCTOR:b,REJECTION_EVENT:v,SUBCLASSING:m}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(t,r,e){var n=t("../internals/global");r.exports=n.Promise},{"../internals/global":274}],326:[function(t,r,e){var n=t("../internals/an-object"),a=t("../internals/is-object"),o=t("../internals/new-promise-capability");r.exports=function(s,i){if(n(s),a(i)&&i.constructor===s)return i;var u=o.f(s);return(0,u.resolve)(i),u.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(t,r,e){var n=t("../internals/promise-native-constructor"),a=t("../internals/check-correctness-of-iteration"),o=t("../internals/promise-constructor-detection").CONSTRUCTOR;r.exports=o||!a(function(s){n.all(s).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(t,r,e){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(a){var o={item:a,next:null},s=this.tail;s?s.next=o:this.head=o,this.tail=o},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},r.exports=n},{}],329:[function(t,r,e){var n=t("../internals/is-null-or-undefined"),a=TypeError;r.exports=function(o){if(n(o))throw new a("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(t,r,e){var n=t("../internals/get-built-in"),a=t("../internals/define-built-in-accessor"),o=t("../internals/well-known-symbol"),s=t("../internals/descriptors"),i=o("species");r.exports=function(u){var l=n(u);s&&l&&!l[i]&&a(l,i,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(t,r,e){var n=t("../internals/object-define-property").f,a=t("../internals/has-own-property"),o=t("../internals/well-known-symbol")("toStringTag");r.exports=function(s,i,u){s&&!u&&(s=s.prototype),s&&!a(s,o)&&n(s,o,{configurable:!0,value:i})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(t,r,e){var n=t("../internals/shared"),a=t("../internals/uid"),o=n("keys");r.exports=function(s){return o[s]||(o[s]=a(s))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/define-global-property"),o="__core-js_shared__",s=n[o]||a(o,{});r.exports=s},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(t,r,e){var n=t("../internals/is-pure"),a=t("../internals/shared-store");(r.exports=function(o,s){return a[o]||(a[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(t,r,e){var n=t("../internals/an-object"),a=t("../internals/a-constructor"),o=t("../internals/is-null-or-undefined"),s=t("../internals/well-known-symbol")("species");r.exports=function(i,u){var l,f=n(i).constructor;return f===void 0||o(l=n(f)[s])?u:a(l)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(t,r,e){var n=t("../internals/engine-v8-version"),a=t("../internals/fails"),o=t("../internals/global").String;r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/get-built-in"),o=t("../internals/well-known-symbol"),s=t("../internals/define-built-in");r.exports=function(){var i=a("Symbol"),u=i&&i.prototype,l=u&&u.valueOf,f=o("toPrimitive");u&&!u[f]&&s(u,f,function(c){return n(l,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(t,r,e){var n=t("../internals/symbol-constructor-detection");r.exports=n&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(t,r,e){var n,a,o,s,i=t("../internals/global"),u=t("../internals/function-apply"),l=t("../internals/function-bind-context"),f=t("../internals/is-callable"),c=t("../internals/has-own-property"),h=t("../internals/fails"),d=t("../internals/html"),p=t("../internals/array-slice"),m=t("../internals/document-create-element"),v=t("../internals/validate-arguments-length"),b=t("../internals/engine-is-ios"),g=t("../internals/engine-is-node"),y=i.setImmediate,k=i.clearImmediate,S=i.process,C=i.Dispatch,O=i.Function,L=i.MessageChannel,j=i.String,U=0,z={},Y="onreadystatechange";h(function(){n=i.location});var A=function(T){if(c(z,T)){var E=z[T];delete z[T],E()}},I=function(T){return function(){A(T)}},_=function(T){A(T.data)},x=function(T){i.postMessage(j(T),n.protocol+"//"+n.host)};y&&k||(y=function(T){v(arguments.length,1);var E=f(T)?T:O(T),M=p(arguments,1);return z[++U]=function(){u(E,void 0,M)},a(U),U},k=function(T){delete z[T]},g?a=function(T){S.nextTick(I(T))}:C&&C.now?a=function(T){C.now(I(T))}:L&&!b?(s=(o=new L).port2,o.port1.onmessage=_,a=l(s.postMessage,s)):i.addEventListener&&f(i.postMessage)&&!i.importScripts&&n&&n.protocol!=="file:"&&!h(x)?(a=x,i.addEventListener("message",_,!1)):a=Y in m("script")?function(T){d.appendChild(m("script"))[Y]=function(){d.removeChild(this),A(T)}}:function(T){setTimeout(I(T),0)}),r.exports={set:y,clear:k}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(t,r,e){var n=t("../internals/to-integer-or-infinity"),a=Math.max,o=Math.min;r.exports=function(s,i){var u=n(s);return u<0?a(u+i,0):o(u,i)}},{"../internals/to-integer-or-infinity":342}],341:[function(t,r,e){var n=t("../internals/indexed-object"),a=t("../internals/require-object-coercible");r.exports=function(o){return n(a(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(t,r,e){var n=t("../internals/math-trunc");r.exports=function(a){var o=+a;return o!=o||o===0?0:n(o)}},{"../internals/math-trunc":301}],343:[function(t,r,e){var n=t("../internals/to-integer-or-infinity"),a=Math.min;r.exports=function(o){return o>0?a(n(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(t,r,e){var n=t("../internals/require-object-coercible"),a=Object;r.exports=function(o){return a(n(o))}},{"../internals/require-object-coercible":329}],345:[function(t,r,e){var n=t("../internals/function-call"),a=t("../internals/is-object"),o=t("../internals/is-symbol"),s=t("../internals/get-method"),i=t("../internals/ordinary-to-primitive"),u=t("../internals/well-known-symbol"),l=TypeError,f=u("toPrimitive");r.exports=function(c,h){if(!a(c)||o(c))return c;var d,p=s(c,f);if(p){if(h===void 0&&(h="default"),d=n(p,c,h),!a(d)||o(d))return d;throw new l("Can't convert object to primitive value")}return h===void 0&&(h="number"),i(c,h)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(t,r,e){var n=t("../internals/to-primitive"),a=t("../internals/is-symbol");r.exports=function(o){var s=n(o,"string");return a(s)?s:s+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(t,r,e){var n={};n[t("../internals/well-known-symbol")("toStringTag")]="z",r.exports=String(n)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(t,r,e){var n=t("../internals/classof"),a=String;r.exports=function(o){if(n(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(o)}},{"../internals/classof":236}],349:[function(t,r,e){var n=String;r.exports=function(a){try{return n(a)}catch{return"Object"}}},{}],350:[function(t,r,e){var n=t("../internals/function-uncurry-this"),a=0,o=Math.random(),s=n(1 .toString);r.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+s(++a+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(t,r,e){var n=t("../internals/symbol-constructor-detection");r.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(t,r,e){var n=t("../internals/descriptors"),a=t("../internals/fails");r.exports=n&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(t,r,e){var n=TypeError;r.exports=function(a,o){if(a<o)throw new n("Not enough arguments");return a}},{}],354:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/is-callable"),o=n.WeakMap;r.exports=a(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(t,r,e){var n=t("../internals/path"),a=t("../internals/has-own-property"),o=t("../internals/well-known-symbol-wrapped"),s=t("../internals/object-define-property").f;r.exports=function(i){var u=n.Symbol||(n.Symbol={});a(u,i)||s(u,i,{value:o.f(i)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(t,r,e){var n=t("../internals/well-known-symbol");e.f=n},{"../internals/well-known-symbol":357}],357:[function(t,r,e){var n=t("../internals/global"),a=t("../internals/shared"),o=t("../internals/has-own-property"),s=t("../internals/uid"),i=t("../internals/symbol-constructor-detection"),u=t("../internals/use-symbol-as-uid"),l=n.Symbol,f=a("wks"),c=u?l.for||l:l&&l.withoutSetter||s;r.exports=function(h){return o(f,h)||(f[h]=i&&o(l,h)?l[h]:c("Symbol."+h)),f[h]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/array-iteration").findIndex,o=t("../internals/add-to-unscopables"),s="findIndex",i=!0;s in[]&&Array(1)[s](function(){i=!1}),n({target:"Array",proto:!0,forced:i},{findIndex:function(u){return a(this,u,arguments.length>1?arguments[1]:void 0)}}),o(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/array-iteration").find,o=t("../internals/add-to-unscopables"),s="find",i=!0;s in[]&&Array(1)[s](function(){i=!1}),n({target:"Array",proto:!0,forced:i},{find:function(u){return a(this,u,arguments.length>1?arguments[1]:void 0)}}),o(s)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/array-includes").includes,o=t("../internals/fails"),s=t("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(i){return a(this,i,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(t,r,e){var n=t("../internals/to-indexed-object"),a=t("../internals/add-to-unscopables"),o=t("../internals/iterators"),s=t("../internals/internal-state"),i=t("../internals/object-define-property").f,u=t("../internals/iterator-define"),l=t("../internals/create-iter-result-object"),f=t("../internals/is-pure"),c=t("../internals/descriptors"),h="Array Iterator",d=s.set,p=s.getterFor(h);r.exports=u(Array,"Array",function(v,b){d(this,{type:h,target:n(v),index:0,kind:b})},function(){var v=p(this),b=v.target,g=v.kind,y=v.index++;if(!b||y>=b.length)return v.target=void 0,l(void 0,!0);switch(g){case"keys":return l(y,!1);case"values":return l(b[y],!1)}return l([y,b[y]],!1)},"values");var m=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!f&&c&&m.name!=="values")try{i(m,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/function-apply"),s=t("../internals/function-call"),i=t("../internals/function-uncurry-this"),u=t("../internals/fails"),l=t("../internals/is-callable"),f=t("../internals/is-symbol"),c=t("../internals/array-slice"),h=t("../internals/get-json-replacer-function"),d=t("../internals/symbol-constructor-detection"),p=String,m=a("JSON","stringify"),v=i(/./.exec),b=i("".charAt),g=i("".charCodeAt),y=i("".replace),k=i(1 .toString),S=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,L=!d||u(function(){var Y=a("Symbol")("stringify detection");return m([Y])!=="[null]"||m({a:Y})!=="{}"||m(Object(Y))!=="{}"}),j=u(function(){return m("\uDF06\uD834")!=='"\\udf06\\ud834"'||m("\uDEAD")!=='"\\udead"'}),U=function(Y,A){var I=c(arguments),_=h(A);if(l(_)||Y!==void 0&&!f(Y))return I[1]=function(x,T){if(l(_)&&(T=s(_,this,p(x),T)),!f(T))return T},o(m,null,I)},z=function(Y,A,I){var _=b(I,A-1),x=b(I,A+1);return v(C,Y)&&!v(O,x)||v(O,Y)&&!v(C,_)?"\\u"+k(g(Y,0),16):Y};m&&n({target:"JSON",stat:!0,arity:3,forced:L||j},{stringify:function(Y,A,I){var _=c(arguments),x=o(L?U:m,null,_);return j&&typeof x=="string"?y(x,S,z):x}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(t,r,e){t("../internals/export")({target:"Number",stat:!0},{isNaN:function(n){return n!=n}})},{"../internals/export":259}],364:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/symbol-constructor-detection"),o=t("../internals/fails"),s=t("../internals/object-get-own-property-symbols"),i=t("../internals/to-object");n({target:"Object",stat:!0,forced:!a||o(function(){s.f(1)})},{getOwnPropertySymbols:function(u){var l=s.f;return l?l(i(u)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/to-object"),o=t("../internals/object-keys");n({target:"Object",stat:!0,forced:t("../internals/fails")(function(){o(1)})},{keys:function(s){return o(a(s))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(o){return a(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),i=t("../internals/perform"),u=t("../internals/iterate");n({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{all:function(l){var f=this,c=s.f(f),h=c.resolve,d=c.reject,p=i(function(){var m=o(f.resolve),v=[],b=0,g=1;u(l,function(y){var k=b++,S=!1;g++,a(m,f,y).then(function(C){S||(S=!0,v[k]=C,--g||h(v))},d)}),--g||h(v)});return p.error&&d(p.value),c.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/is-pure"),o=t("../internals/promise-constructor-detection").CONSTRUCTOR,s=t("../internals/promise-native-constructor"),i=t("../internals/get-built-in"),u=t("../internals/is-callable"),l=t("../internals/define-built-in"),f=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(h){return this.then(void 0,h)}}),!a&&u(s)){var c=i("Promise").prototype.catch;f.catch!==c&&l(f,"catch",c,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(t,r,e){var n,a,o,s,i=t("../internals/export"),u=t("../internals/is-pure"),l=t("../internals/engine-is-node"),f=t("../internals/global"),c=t("../internals/function-call"),h=t("../internals/define-built-in"),d=t("../internals/object-set-prototype-of"),p=t("../internals/set-to-string-tag"),m=t("../internals/set-species"),v=t("../internals/a-callable"),b=t("../internals/is-callable"),g=t("../internals/is-object"),y=t("../internals/an-instance"),k=t("../internals/species-constructor"),S=t("../internals/task").set,C=t("../internals/microtask"),O=t("../internals/host-report-errors"),L=t("../internals/perform"),j=t("../internals/queue"),U=t("../internals/internal-state"),z=t("../internals/promise-native-constructor"),Y=t("../internals/promise-constructor-detection"),A=t("../internals/new-promise-capability"),I="Promise",_=Y.CONSTRUCTOR,x=Y.REJECTION_EVENT,T=Y.SUBCLASSING,E=U.getterFor(I),M=U.set,F=z&&z.prototype,P=z,W=F,N=f.TypeError,q=f.document,nt=f.process,J=A.f,St=J,kt=!!(q&&q.createEvent&&f.dispatchEvent),Mt="unhandledrejection",at="rejectionhandled",K=0,it=1,st=2,Nt=1,rt=2,mt=function(vt){var gt;return!(!g(vt)||!b(gt=vt.then))&>},Xt=function(vt,gt){var Tt,ie,ot,ct=gt.value,xt=gt.state===it,Ft=xt?vt.ok:vt.fail,bt=vt.resolve,lt=vt.reject,Ct=vt.domain;try{Ft?(xt||(gt.rejection===rt&&re(gt),gt.rejection=Nt),Ft===!0?Tt=ct:(Ct&&Ct.enter(),Tt=Ft(ct),Ct&&(Ct.exit(),ot=!0)),Tt===vt.promise?lt(new N("Promise-chain cycle")):(ie=mt(Tt))?c(ie,Tt,bt,lt):bt(Tt)):lt(ct)}catch(zt){Ct&&!ot&&Ct.exit(),lt(zt)}},G=function(vt,gt){vt.notified||(vt.notified=!0,C(function(){for(var Tt,ie=vt.reactions;Tt=ie.get();)Xt(Tt,vt);vt.notified=!1,gt&&!vt.rejection&&dt(vt)}))},tt=function(vt,gt,Tt){var ie,ot;kt?((ie=q.createEvent("Event")).promise=gt,ie.reason=Tt,ie.initEvent(vt,!1,!0),f.dispatchEvent(ie)):ie={promise:gt,reason:Tt},!x&&(ot=f["on"+vt])?ot(ie):vt===Mt&&O("Unhandled promise rejection",Tt)},dt=function(vt){c(S,f,function(){var gt,Tt=vt.facade,ie=vt.value;if(Dt(vt)&&(gt=L(function(){l?nt.emit("unhandledRejection",ie,Tt):tt(Mt,Tt,ie)}),vt.rejection=l||Dt(vt)?rt:Nt,gt.error))throw gt.value})},Dt=function(vt){return vt.rejection!==Nt&&!vt.parent},re=function(vt){c(S,f,function(){var gt=vt.facade;l?nt.emit("rejectionHandled",gt):tt(at,gt,vt.value)})},X=function(vt,gt,Tt){return function(ie){vt(gt,ie,Tt)}},Gt=function(vt,gt,Tt){vt.done||(vt.done=!0,Tt&&(vt=Tt),vt.value=gt,vt.state=st,G(vt,!0))},Jt=function(vt,gt,Tt){if(!vt.done){vt.done=!0,Tt&&(vt=Tt);try{if(vt.facade===gt)throw new N("Promise can't be resolved itself");var ie=mt(gt);ie?C(function(){var ot={done:!1};try{c(ie,gt,X(Jt,ot,vt),X(Gt,ot,vt))}catch(ct){Gt(ot,ct,vt)}}):(vt.value=gt,vt.state=it,G(vt,!1))}catch(ot){Gt({done:!1},ot,vt)}}};if(_&&(W=(P=function(vt){y(this,W),v(vt),c(n,this);var gt=E(this);try{vt(X(Jt,gt),X(Gt,gt))}catch(Tt){Gt(gt,Tt)}}).prototype,(n=function(vt){M(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:K,value:void 0})}).prototype=h(W,"then",function(vt,gt){var Tt=E(this),ie=J(k(this,P));return Tt.parent=!0,ie.ok=!b(vt)||vt,ie.fail=b(gt)&>,ie.domain=l?nt.domain:void 0,Tt.state===K?Tt.reactions.add(ie):C(function(){Xt(ie,Tt)}),ie.promise}),a=function(){var vt=new n,gt=E(vt);this.promise=vt,this.resolve=X(Jt,gt),this.reject=X(Gt,gt)},A.f=J=function(vt){return vt===P||vt===o?new a(vt):St(vt)},!u&&b(z)&&F!==Object.prototype)){s=F.then,T||h(F,"then",function(vt,gt){var Tt=this;return new P(function(ie,ot){c(s,Tt,ie,ot)}).then(vt,gt)},{unsafe:!0});try{delete F.constructor}catch{}d&&d(F,W)}i({global:!0,constructor:!0,wrap:!0,forced:_},{Promise:P}),p(P,I,!1,!0),m(I)},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/is-pure"),o=t("../internals/promise-native-constructor"),s=t("../internals/fails"),i=t("../internals/get-built-in"),u=t("../internals/is-callable"),l=t("../internals/species-constructor"),f=t("../internals/promise-resolve"),c=t("../internals/define-built-in"),h=o&&o.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(p){var m=l(this,i("Promise")),v=u(p);return this.then(v?function(b){return f(m,p()).then(function(){return b})}:p,v?function(b){return f(m,p()).then(function(){throw b})}:p)}}),!a&&u(o)){var d=i("Promise").prototype.finally;h.finally!==d&&c(h,"finally",d,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(t,r,e){t("../modules/es.promise.constructor"),t("../modules/es.promise.all"),t("../modules/es.promise.catch"),t("../modules/es.promise.race"),t("../modules/es.promise.reject"),t("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),i=t("../internals/perform"),u=t("../internals/iterate");n({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{race:function(l){var f=this,c=s.f(f),h=c.reject,d=i(function(){var p=o(f.resolve);u(l,function(m){a(p,f,m).then(c.resolve,h)})});return d.error&&h(d.value),c.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-call"),o=t("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:t("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(s){var i=o.f(this);return a(i.reject,void 0,s),i.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/is-pure"),s=t("../internals/promise-native-constructor"),i=t("../internals/promise-constructor-detection").CONSTRUCTOR,u=t("../internals/promise-resolve"),l=a("Promise"),f=o&&!i;n({target:"Promise",stat:!0,forced:o||i},{resolve:function(c){return u(f&&this===l?s:this,c)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-uncurry-this"),o=t("../internals/to-absolute-index"),s=RangeError,i=String.fromCharCode,u=String.fromCodePoint,l=a([].join);n({target:"String",stat:!0,arity:1,forced:!!u&&u.length!==1},{fromCodePoint:function(f){for(var c,h=[],d=arguments.length,p=0;d>p;){if(c=+arguments[p++],o(c,1114111)!==c)throw new s(c+" is not a valid code point");h[p]=c<65536?i(c):i(55296+((c-=65536)>>10),c%1024+56320)}return l(h,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/function-uncurry-this"),o=t("../internals/not-a-regexp"),s=t("../internals/require-object-coercible"),i=t("../internals/to-string"),u=t("../internals/correct-is-regexp-logic"),l=a("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(f){return!!~l(i(s(this)),i(o(f)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(t,r,e){t("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/global"),o=t("../internals/function-call"),s=t("../internals/function-uncurry-this"),i=t("../internals/is-pure"),u=t("../internals/descriptors"),l=t("../internals/symbol-constructor-detection"),f=t("../internals/fails"),c=t("../internals/has-own-property"),h=t("../internals/object-is-prototype-of"),d=t("../internals/an-object"),p=t("../internals/to-indexed-object"),m=t("../internals/to-property-key"),v=t("../internals/to-string"),b=t("../internals/create-property-descriptor"),g=t("../internals/object-create"),y=t("../internals/object-keys"),k=t("../internals/object-get-own-property-names"),S=t("../internals/object-get-own-property-names-external"),C=t("../internals/object-get-own-property-symbols"),O=t("../internals/object-get-own-property-descriptor"),L=t("../internals/object-define-property"),j=t("../internals/object-define-properties"),U=t("../internals/object-property-is-enumerable"),z=t("../internals/define-built-in"),Y=t("../internals/define-built-in-accessor"),A=t("../internals/shared"),I=t("../internals/shared-key"),_=t("../internals/hidden-keys"),x=t("../internals/uid"),T=t("../internals/well-known-symbol"),E=t("../internals/well-known-symbol-wrapped"),M=t("../internals/well-known-symbol-define"),F=t("../internals/symbol-define-to-primitive"),P=t("../internals/set-to-string-tag"),W=t("../internals/internal-state"),N=t("../internals/array-iteration").forEach,q=I("hidden"),nt="Symbol",J="prototype",St=W.set,kt=W.getterFor(nt),Mt=Object[J],at=a.Symbol,K=at&&at[J],it=a.RangeError,st=a.TypeError,Nt=a.QObject,rt=O.f,mt=L.f,Xt=S.f,G=U.f,tt=s([].push),dt=A("symbols"),Dt=A("op-symbols"),re=A("wks"),X=!Nt||!Nt[J]||!Nt[J].findChild,Gt=function(bt,lt,Ct){var zt=rt(Mt,lt);zt&&delete Mt[lt],mt(bt,lt,Ct),zt&&bt!==Mt&&mt(Mt,lt,zt)},Jt=u&&f(function(){return g(mt({},"a",{get:function(){return mt(this,"a",{value:7}).a}})).a!==7})?Gt:mt,vt=function(bt,lt){var Ct=dt[bt]=g(K);return St(Ct,{type:nt,tag:bt,description:lt}),u||(Ct.description=lt),Ct},gt=function(bt,lt,Ct){bt===Mt&>(Dt,lt,Ct),d(bt);var zt=m(lt);return d(Ct),c(dt,zt)?(Ct.enumerable?(c(bt,q)&&bt[q][zt]&&(bt[q][zt]=!1),Ct=g(Ct,{enumerable:b(0,!1)})):(c(bt,q)||mt(bt,q,b(1,{})),bt[q][zt]=!0),Jt(bt,zt,Ct)):mt(bt,zt,Ct)},Tt=function(bt,lt){d(bt);var Ct=p(lt),zt=y(Ct).concat(Ft(Ct));return N(zt,function(Zt){u&&!o(ot,Ct,Zt)||gt(bt,Zt,Ct[Zt])}),bt},ie=function(bt,lt){return lt===void 0?g(bt):Tt(g(bt),lt)},ot=function(bt){var lt=m(bt),Ct=o(G,this,lt);return!(this===Mt&&c(dt,lt)&&!c(Dt,lt))&&(!(Ct||!c(this,lt)||!c(dt,lt)||c(this,q)&&this[q][lt])||Ct)},ct=function(bt,lt){var Ct=p(bt),zt=m(lt);if(Ct!==Mt||!c(dt,zt)||c(Dt,zt)){var Zt=rt(Ct,zt);return!Zt||!c(dt,zt)||c(Ct,q)&&Ct[q][zt]||(Zt.enumerable=!0),Zt}},xt=function(bt){var lt=Xt(p(bt)),Ct=[];return N(lt,function(zt){c(dt,zt)||c(_,zt)||tt(Ct,zt)}),Ct},Ft=function(bt){var lt=bt===Mt,Ct=Xt(lt?Dt:p(bt)),zt=[];return N(Ct,function(Zt){!c(dt,Zt)||lt&&!c(Mt,Zt)||tt(zt,dt[Zt])}),zt};l||(at=function(){if(h(K,this))throw new st("Symbol is not a constructor");var bt=arguments.length&&arguments[0]!==void 0?v(arguments[0]):void 0,lt=x(bt),Ct=function(zt){this===Mt&&o(Ct,Dt,zt),c(this,q)&&c(this[q],lt)&&(this[q][lt]=!1);var Zt=b(1,zt);try{Jt(this,lt,Zt)}catch(Se){if(!(Se instanceof it))throw Se;Gt(this,lt,Zt)}};return u&&X&&Jt(Mt,lt,{configurable:!0,set:Ct}),vt(lt,bt)},z(K=at[J],"toString",function(){return kt(this).tag}),z(at,"withoutSetter",function(bt){return vt(x(bt),bt)}),U.f=ot,L.f=gt,j.f=Tt,O.f=ct,k.f=S.f=xt,C.f=Ft,E.f=function(bt){return vt(T(bt),bt)},u&&(Y(K,"description",{configurable:!0,get:function(){return kt(this).description}}),i||z(Mt,"propertyIsEnumerable",ot,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:at}),N(y(re),function(bt){M(bt)}),n({target:nt,stat:!0,forced:!l},{useSetter:function(){X=!0},useSimple:function(){X=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!u},{create:ie,defineProperty:gt,defineProperties:Tt,getOwnPropertyDescriptor:ct}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:xt}),F(),P(at,nt),_[q]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/get-built-in"),o=t("../internals/has-own-property"),s=t("../internals/to-string"),i=t("../internals/shared"),u=t("../internals/symbol-registry-detection"),l=i("string-to-symbol-registry"),f=i("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(c){var h=s(c);if(o(l,h))return l[h];var d=a("Symbol")(h);return l[h]=d,f[d]=h,d}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(t,r,e){t("../modules/es.symbol.constructor"),t("../modules/es.symbol.for"),t("../modules/es.symbol.key-for"),t("../modules/es.json.stringify"),t("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(t,r,e){var n=t("../internals/export"),a=t("../internals/has-own-property"),o=t("../internals/is-symbol"),s=t("../internals/try-to-string"),i=t("../internals/shared"),u=t("../internals/symbol-registry-detection"),l=i("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(f){if(!o(f))throw new TypeError(s(f)+" is not a symbol");if(a(l,f))return l[f]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(t,r,e){function n(g){return Array.isArray?Array.isArray(g):b(g)==="[object Array]"}function a(g){return typeof g=="boolean"}function o(g){return g===null}function s(g){return g==null}function i(g){return typeof g=="number"}function u(g){return typeof g=="string"}function l(g){return typeof g=="symbol"}function f(g){return g===void 0}function c(g){return b(g)==="[object RegExp]"}function h(g){return typeof g=="object"&&g!==null}function d(g){return b(g)==="[object Date]"}function p(g){return b(g)==="[object Error]"||g instanceof Error}function m(g){return typeof g=="function"}function v(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||typeof g=="symbol"||g===void 0}function b(g){return Object.prototype.toString.call(g)}e.isArray=n,e.isBoolean=a,e.isNull=o,e.isNullOrUndefined=s,e.isNumber=i,e.isString=u,e.isSymbol=l,e.isUndefined=f,e.isRegExp=c,e.isObject=h,e.isDate=d,e.isError=p,e.isFunction=m,e.isPrimitive=v,e.isBuffer=t("buffer").Buffer.isBuffer},{buffer:220}],384:[function(t,r,e){(function(n){(function(){var a=t("elliptic"),o=t("bn.js");r.exports=function(l){return new i(l)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(l){this.curveType=s[l],this.curveType||(this.curveType={name:l}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function u(l,f,c){Array.isArray(l)||(l=l.toArray());var h=new n(l);if(c&&h.length<c){var d=new n(c-h.length);d.fill(0),h=n.concat([d,h])}return f?h.toString(f):h}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,i.prototype.generateKeys=function(l,f){return this.keys=this.curve.genKeyPair(),this.getPublicKey(l,f)},i.prototype.computeSecret=function(l,f,c){return f=f||"utf8",n.isBuffer(l)||(l=new n(l,f)),u(this.curve.keyFromPublic(l).getPublic().mul(this.keys.getPrivate()).getX(),c,this.curveType.byteLength)},i.prototype.getPublicKey=function(l,f){var c=this.keys.getPublic(f==="compressed",!0);return f==="hybrid"&&(c[c.length-1]%2?c[0]=7:c[0]=6),u(c,l)},i.prototype.getPrivateKey=function(l){return u(this.keys.getPrivate(),l)},i.prototype.setPublicKey=function(l,f){return f=f||"utf8",n.isBuffer(l)||(l=new n(l,f)),this.keys._importPublic(l),this},i.prototype.setPrivateKey=function(l,f){f=f||"utf8",n.isBuffer(l)||(l=new n(l,f));var c=new o(l);return c=c.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(c),this}}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],386:[function(t,r,e){var n=t("inherits"),a=t("md5.js"),o=t("ripemd160"),s=t("sha.js"),i=t("cipher-base");function u(l){i.call(this,"digest"),this._hash=l}n(u,i),u.prototype._update=function(l){this._hash.update(l)},u.prototype._final=function(){return this._hash.digest()},r.exports=function(l){return(l=l.toLowerCase())==="md5"?new a:l==="rmd160"||l==="ripemd160"?new o:new u(s(l))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(t,r,e){var n=t("md5.js");r.exports=function(a){return new n().update(a).digest()}},{"md5.js":450}],388:[function(t,r,e){var n=t("inherits"),a=t("./legacy"),o=t("cipher-base"),s=t("safe-buffer").Buffer,i=t("create-hash/md5"),u=t("ripemd160"),l=t("sha.js"),f=s.alloc(128);function c(h,d){o.call(this,"digest"),typeof d=="string"&&(d=s.from(d));var p=h==="sha512"||h==="sha384"?128:64;this._alg=h,this._key=d,d.length>p?d=(h==="rmd160"?new u:l(h)).update(d).digest():d.length<p&&(d=s.concat([d,f],p));for(var m=this._ipad=s.allocUnsafe(p),v=this._opad=s.allocUnsafe(p),b=0;b<p;b++)m[b]=54^d[b],v[b]=92^d[b];this._hash=h==="rmd160"?new u:l(h),this._hash.update(m)}n(c,o),c.prototype._update=function(h){this._hash.update(h)},c.prototype._final=function(){var h=this._hash.digest();return(this._alg==="rmd160"?new u:l(this._alg)).update(this._opad).update(h).digest()},r.exports=function(h,d){return(h=h.toLowerCase())==="rmd160"||h==="ripemd160"?new c("rmd160",d):h==="md5"?new a(i,d):new c(h,d)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(t,r,e){var n=t("inherits"),a=t("safe-buffer").Buffer,o=t("cipher-base"),s=a.alloc(128),i=64;function u(l,f){o.call(this,"digest"),typeof f=="string"&&(f=a.from(f)),this._alg=l,this._key=f,f.length>i?f=l(f):f.length<i&&(f=a.concat([f,s],i));for(var c=this._ipad=a.allocUnsafe(i),h=this._opad=a.allocUnsafe(i),d=0;d<i;d++)c[d]=54^f[d],h[d]=92^f[d];this._hash=[c]}n(u,o),u.prototype._update=function(l){this._hash.push(l)},u.prototype._final=function(){var l=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,l]))},r.exports=u},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(t,r,e){e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=t("randombytes"),e.createHash=e.Hash=t("create-hash"),e.createHmac=e.Hmac=t("create-hmac");var n=t("browserify-sign/algos"),a=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);e.getHashes=function(){return o};var s=t("pbkdf2");e.pbkdf2=s.pbkdf2,e.pbkdf2Sync=s.pbkdf2Sync;var i=t("browserify-cipher");e.Cipher=i.Cipher,e.createCipher=i.createCipher,e.Cipheriv=i.Cipheriv,e.createCipheriv=i.createCipheriv,e.Decipher=i.Decipher,e.createDecipher=i.createDecipher,e.Decipheriv=i.Decipheriv,e.createDecipheriv=i.createDecipheriv,e.getCiphers=i.getCiphers,e.listCiphers=i.listCiphers;var u=t("diffie-hellman");e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var l=t("browserify-sign");e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=t("create-ecdh");var f=t("public-encrypt");e.publicEncrypt=f.publicEncrypt,e.privateEncrypt=f.privateEncrypt,e.publicDecrypt=f.publicDecrypt,e.privateDecrypt=f.privateDecrypt;var c=t("randomfill");e.randomFill=c.randomFill,e.randomFillSync=c.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` |
|
|
`))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(t,r,e){var n,a;n=void 0,a=function(){var o=1e3,s=6e4,i=36e5,u="millisecond",l="second",f="minute",c="hour",h="day",d="week",p="month",m="quarter",v="year",b="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var E=["th","st","nd","rd"],M=T%100;return"["+T+(E[(M-20)%10]||E[M]||E[0])+"]"}},C=function(T,E,M){var F=String(T);return!F||F.length>=E?T:""+Array(E+1-F.length).join(M)+T},O={s:C,z:function(T){var E=-T.utcOffset(),M=Math.abs(E),F=Math.floor(M/60),P=M%60;return(E<=0?"+":"-")+C(F,2,"0")+":"+C(P,2,"0")},m:function T(E,M){if(E.date()<M.date())return-T(M,E);var F=12*(M.year()-E.year())+(M.month()-E.month()),P=E.clone().add(F,p),W=M-P<0,N=E.clone().add(F+(W?-1:1),p);return+(-(F+(M-P)/(W?P-N:N-P))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:p,y:v,w:d,d:h,D:b,h:c,m:f,s:l,ms:u,Q:m}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},L="en",j={};j[L]=S;var U="$isDayjsObject",z=function(T){return T instanceof _||!(!T||!T[U])},Y=function T(E,M,F){var P;if(!E)return L;if(typeof E=="string"){var W=E.toLowerCase();j[W]&&(P=W),M&&(j[W]=M,P=W);var N=E.split("-");if(!P&&N.length>1)return T(N[0])}else{var q=E.name;j[q]=E,P=q}return!F&&P&&(L=P),P||!F&&L},A=function(T,E){if(z(T))return T.clone();var M=typeof E=="object"?E:{};return M.date=T,M.args=arguments,new _(M)},I=O;I.l=Y,I.i=z,I.w=function(T,E){return A(T,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var _=function(){function T(M){this.$L=Y(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[U]=!0}var E=T.prototype;return E.parse=function(M){this.$d=function(F){var P=F.date,W=F.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var N=P.match(y);if(N){var q=N[2]-1||0,nt=(N[7]||"0").substring(0,3);return W?new Date(Date.UTC(N[1],q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,nt)):new Date(N[1],q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,nt)}}return new Date(P)}(M),this.init()},E.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},E.$utils=function(){return I},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(M,F){var P=A(M);return this.startOf(F)<=P&&P<=this.endOf(F)},E.isAfter=function(M,F){return A(M)<this.startOf(F)},E.isBefore=function(M,F){return this.endOf(F)<A(M)},E.$g=function(M,F,P){return I.u(M)?this[F]:this.set(P,M)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(M,F){var P=this,W=!!I.u(F)||F,N=I.p(M),q=function(it,st){var Nt=I.w(P.$u?Date.UTC(P.$y,st,it):new Date(P.$y,st,it),P);return W?Nt:Nt.endOf(h)},nt=function(it,st){return I.w(P.toDate()[it].apply(P.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(st)),P)},J=this.$W,St=this.$M,kt=this.$D,Mt="set"+(this.$u?"UTC":"");switch(N){case v:return W?q(1,0):q(31,11);case p:return W?q(1,St):q(0,St+1);case d:var at=this.$locale().weekStart||0,K=(J<at?J+7:J)-at;return q(W?kt-K:kt+(6-K),St);case h:case b:return nt(Mt+"Hours",0);case c:return nt(Mt+"Minutes",1);case f:return nt(Mt+"Seconds",2);case l:return nt(Mt+"Milliseconds",3);default:return this.clone()}},E.endOf=function(M){return this.startOf(M,!1)},E.$set=function(M,F){var P,W=I.p(M),N="set"+(this.$u?"UTC":""),q=(P={},P[h]=N+"Date",P[b]=N+"Date",P[p]=N+"Month",P[v]=N+"FullYear",P[c]=N+"Hours",P[f]=N+"Minutes",P[l]=N+"Seconds",P[u]=N+"Milliseconds",P)[W],nt=W===h?this.$D+(F-this.$W):F;if(W===p||W===v){var J=this.clone().set(b,1);J.$d[q](nt),J.init(),this.$d=J.set(b,Math.min(this.$D,J.daysInMonth())).$d}else q&&this.$d[q](nt);return this.init(),this},E.set=function(M,F){return this.clone().$set(M,F)},E.get=function(M){return this[I.p(M)]()},E.add=function(M,F){var P,W=this;M=Number(M);var N=I.p(F),q=function(St){var kt=A(W);return I.w(kt.date(kt.date()+Math.round(St*M)),W)};if(N===p)return this.set(p,this.$M+M);if(N===v)return this.set(v,this.$y+M);if(N===h)return q(1);if(N===d)return q(7);var nt=(P={},P[f]=s,P[c]=i,P[l]=o,P)[N]||1,J=this.$d.getTime()+M*nt;return I.w(J,this)},E.subtract=function(M,F){return this.add(-1*M,F)},E.format=function(M){var F=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var W=M||"YYYY-MM-DDTHH:mm:ssZ",N=I.z(this),q=this.$H,nt=this.$m,J=this.$M,St=P.weekdays,kt=P.months,Mt=P.meridiem,at=function(st,Nt,rt,mt){return st&&(st[Nt]||st(F,W))||rt[Nt].slice(0,mt)},K=function(st){return I.s(q%12||12,st,"0")},it=Mt||function(st,Nt,rt){var mt=st<12?"AM":"PM";return rt?mt.toLowerCase():mt};return W.replace(k,function(st,Nt){return Nt||function(rt){switch(rt){case"YY":return String(F.$y).slice(-2);case"YYYY":return I.s(F.$y,4,"0");case"M":return J+1;case"MM":return I.s(J+1,2,"0");case"MMM":return at(P.monthsShort,J,kt,3);case"MMMM":return at(kt,J);case"D":return F.$D;case"DD":return I.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return at(P.weekdaysMin,F.$W,St,2);case"ddd":return at(P.weekdaysShort,F.$W,St,3);case"dddd":return St[F.$W];case"H":return String(q);case"HH":return I.s(q,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return it(q,nt,!0);case"A":return it(q,nt,!1);case"m":return String(nt);case"mm":return I.s(nt,2,"0");case"s":return String(F.$s);case"ss":return I.s(F.$s,2,"0");case"SSS":return I.s(F.$ms,3,"0");case"Z":return N}return null}(st)||N.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(M,F,P){var W,N=this,q=I.p(F),nt=A(M),J=(nt.utcOffset()-this.utcOffset())*s,St=this-nt,kt=function(){return I.m(N,nt)};switch(q){case v:W=kt()/12;break;case p:W=kt();break;case m:W=kt()/3;break;case d:W=(St-J)/6048e5;break;case h:W=(St-J)/864e5;break;case c:W=St/i;break;case f:W=St/s;break;case l:W=St/o;break;default:W=St}return P?W:I.a(W)},E.daysInMonth=function(){return this.endOf(p).$D},E.$locale=function(){return j[this.$L]},E.locale=function(M,F){if(!M)return this.$L;var P=this.clone(),W=Y(M,F,!0);return W&&(P.$L=W),P},E.clone=function(){return I.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},T}(),x=_.prototype;return A.prototype=x,[["$ms",u],["$s",l],["$m",f],["$H",c],["$W",h],["$M",p],["$y",v],["$D",b]].forEach(function(T){x[T[1]]=function(E){return this.$g(E,T[0],T[1])}}),A.extend=function(T,E){return T.$i||(T(E,_,A),T.$i=!0),A},A.locale=Y,A.isDayjs=z,A.unix=function(T){return A(1e3*T)},A.en=j[L],A.Ls=j,A.p={},A},typeof e=="object"&&r!==void 0?r.exports=a():(n=typeof globalThis<"u"?globalThis:n||self).dayjs=a()},{}],392:[function(t,r,e){var n,a;n=void 0,a=function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,u=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,f={},c=function(g){return(g=+g)+(g>68?1900:2e3)},h=function(g){return function(y){this[g]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var k=y.match(/([+-]|\d\d)/g),S=60*k[1]+(+k[2]||0);return S===0?0:k[0]==="+"?-S:S}(g)}],p=function(g){var y=f[g];return y&&(y.indexOf?y:y.s.concat(y.f))},m=function(g,y){var k,S=f.meridiem;if(S){for(var C=1;C<=24;C+=1)if(g.indexOf(S(C,0,y))>-1){k=C>12;break}}else k=g===(y?"pm":"PM");return k},v={A:[l,function(g){this.afternoon=m(g,!1)}],a:[l,function(g){this.afternoon=m(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[u,h("seconds")],ss:[u,h("seconds")],m:[u,h("minutes")],mm:[u,h("minutes")],H:[u,h("hours")],h:[u,h("hours")],HH:[u,h("hours")],hh:[u,h("hours")],D:[u,h("day")],DD:[i,h("day")],Do:[l,function(g){var y=f.ordinal,k=g.match(/\d+/);if(this.day=k[0],y)for(var S=1;S<=31;S+=1)y(S).replace(/\[|\]/g,"")===g&&(this.day=S)}],M:[u,h("month")],MM:[i,h("month")],MMM:[l,function(g){var y=p("months"),k=(p("monthsShort")||y.map(function(S){return S.slice(0,3)})).indexOf(g)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[l,function(g){var y=p("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,h("year")],YY:[i,function(g){this.year=c(g)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function b(g){var y,k;y=g,k=f&&f.formats;for(var S=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Y,A,I){var _=I&&I.toUpperCase();return A||k[I]||o[I]||k[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,T,E){return T||E.slice(1)})})).match(s),C=S.length,O=0;O<C;O+=1){var L=S[O],j=v[L],U=j&&j[0],z=j&&j[1];S[O]=z?{regex:U,parser:z}:L.replace(/^\[|\]$/g,"")}return function(Y){for(var A={},I=0,_=0;I<C;I+=1){var x=S[I];if(typeof x=="string")_+=x.length;else{var T=x.regex,E=x.parser,M=Y.slice(_),F=T.exec(M)[0];E.call(A,F),Y=Y.replace(F,"")}}return function(P){var W=P.afternoon;if(W!==void 0){var N=P.hours;W?N<12&&(P.hours+=12):N===12&&(P.hours=0),delete P.afternoon}}(A),A}}return function(g,y,k){k.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var S=y.prototype,C=S.parse;S.parse=function(O){var L=O.date,j=O.utc,U=O.args;this.$u=j;var z=U[1];if(typeof z=="string"){var Y=U[2]===!0,A=U[3]===!0,I=Y||A,_=U[2];A&&(_=U[2]),f=this.$locale(),!Y&&_&&(f=k.Ls[_]),this.$d=function(M,F,P){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*M);var W=b(F)(M),N=W.year,q=W.month,nt=W.day,J=W.hours,St=W.minutes,kt=W.seconds,Mt=W.milliseconds,at=W.zone,K=new Date,it=nt||(N||q?1:K.getDate()),st=N||K.getFullYear(),Nt=0;N&&!q||(Nt=q>0?q-1:K.getMonth());var rt=J||0,mt=St||0,Xt=kt||0,G=Mt||0;return at?new Date(Date.UTC(st,Nt,it,rt,mt,Xt,G+60*at.offset*1e3)):P?new Date(Date.UTC(st,Nt,it,rt,mt,Xt,G)):new Date(st,Nt,it,rt,mt,Xt,G)}catch{return new Date("")}}(L,z,j),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),I&&L!=this.format(z)&&(this.$d=new Date("")),f={}}else if(z instanceof Array)for(var x=z.length,T=1;T<=x;T+=1){U[1]=z[T-1];var E=k.apply(this,U);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}T===x&&(this.$d=new Date(""))}else C.call(this,O)}}},typeof e=="object"&&r!==void 0?r.exports=a():(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=a()},{}],393:[function(t,r,e){var n,a;n=void 0,a=function(){var o="minute",s=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(u,l,f){var c=l.prototype;f.utc=function(g){return new l({date:g,utc:!0,args:arguments})},c.utc=function(g){var y=f(this.toDate(),{locale:this.$L,utc:!0});return g?y.add(this.utcOffset(),o):y},c.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var h=c.parse;c.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),h.call(this,g)};var d=c.init;c.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else d.call(this)};var p=c.utcOffset;c.utcOffset=function(g,y){var k=this.$utils().u;if(k(g))return this.$u?0:k(this.$offset)?p.call(this):this.$offset;if(typeof g=="string"&&(g=function(L){L===void 0&&(L="");var j=L.match(s);if(!j)return null;var U=(""+j[0]).match(i)||["-",0,0],z=U[0],Y=60*+U[1]+ +U[2];return Y===0?0:z==="+"?Y:-Y}(g))===null)return this;var S=Math.abs(g)<=16?60*g:g,C=this;if(y)return C.$offset=S,C.$u=g===0,C;if(g!==0){var O=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(S+O,o)).$offset=S,C.$x.$localOffset=O}else C=this.utc();return C};var m=c.format;c.format=function(g){var y=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,y)},c.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var v=c.toDate;c.toDate=function(g){return g==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var b=c.diff;c.diff=function(g,y,k){if(g&&this.$u===g.$u)return b.call(this,g,y,k);var S=this.local(),C=f(g).local();return b.call(S,C,y,k)}}},typeof e=="object"&&r!==void 0?r.exports=a():(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=a()},{}],394:[function(t,r,e){e.utils=t("./des/utils"),e.Cipher=t("./des/cipher"),e.DES=t("./des/des"),e.CBC=t("./des/cbc"),e.EDE=t("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits"),o={};function s(u){n.equal(u.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=u[l]}function i(u){function l(d){u.call(this,d),this._cbcInit()}a(l,u);for(var f=Object.keys(o),c=0;c<f.length;c++){var h=f[c];l.prototype[h]=o[h]}return l.create=function(d){return new l(d)},l}e.instantiate=i,o._cbcInit=function(){var u=new s(this.options.iv);this._cbcState=u},o._update=function(u,l,f,c){var h=this._cbcState,d=this.constructor.super_.prototype,p=h.iv;if(this.type==="encrypt"){for(var m=0;m<this.blockSize;m++)p[m]^=u[l+m];for(d._update.call(this,p,0,f,c),m=0;m<this.blockSize;m++)p[m]=f[c+m]}else{for(d._update.call(this,u,l,f,c),m=0;m<this.blockSize;m++)f[c+m]^=p[m];for(m=0;m<this.blockSize;m++)p[m]=u[l+m]}}},{inherits:440,"minimalistic-assert":453}],396:[function(t,r,e){var n=t("minimalistic-assert");function a(o){this.options=o,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=o.padding!==!1}r.exports=a,a.prototype._init=function(){},a.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},a.prototype._buffer=function(o,s){for(var i=Math.min(this.buffer.length-this.bufferOff,o.length-s),u=0;u<i;u++)this.buffer[this.bufferOff+u]=o[s+u];return this.bufferOff+=i,i},a.prototype._flushBuffer=function(o,s){return this._update(this.buffer,0,o,s),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(o){var s=0,i=0,u=(this.bufferOff+o.length)/this.blockSize|0,l=new Array(u*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(o,s),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(l,i)));for(var f=o.length-(o.length-s)%this.blockSize;s<f;s+=this.blockSize)this._update(o,s,l,i),i+=this.blockSize;for(;s<o.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=o[s];return l},a.prototype._updateDecrypt=function(o){for(var s=0,i=0,u=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,l=new Array(u*this.blockSize);u>0;u--)s+=this._buffer(o,s),i+=this._flushBuffer(l,i);return s+=this._buffer(o,s),l},a.prototype.final=function(o){var s,i;return o&&(s=this.update(o)),i=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),s?s.concat(i):i},a.prototype._pad=function(o,s){if(s===0)return!1;for(;s<o.length;)o[s++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var o=new Array(this.blockSize);return this._update(this.buffer,0,o,0),o},a.prototype._unpad=function(o){return o},a.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var o=new Array(this.blockSize);return this._flushBuffer(o,0),this._unpad(o)}},{"minimalistic-assert":453}],397:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits"),o=t("./utils"),s=t("./cipher");function i(){this.tmp=new Array(2),this.keys=null}function u(f){s.call(this,f);var c=new i;this._desState=c,this.deriveKeys(c,f.key)}a(u,s),r.exports=u,u.create=function(f){return new u(f)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(f,c){f.keys=new Array(32),n.equal(c.length,this.blockSize,"Invalid key length");var h=o.readUInt32BE(c,0),d=o.readUInt32BE(c,4);o.pc1(h,d,f.tmp,0),h=f.tmp[0],d=f.tmp[1];for(var p=0;p<f.keys.length;p+=2){var m=l[p>>>1];h=o.r28shl(h,m),d=o.r28shl(d,m),o.pc2(h,d,f.keys,p)}},u.prototype._update=function(f,c,h,d){var p=this._desState,m=o.readUInt32BE(f,c),v=o.readUInt32BE(f,c+4);o.ip(m,v,p.tmp,0),m=p.tmp[0],v=p.tmp[1],this.type==="encrypt"?this._encrypt(p,m,v,p.tmp,0):this._decrypt(p,m,v,p.tmp,0),m=p.tmp[0],v=p.tmp[1],o.writeUInt32BE(h,m,d),o.writeUInt32BE(h,v,d+4)},u.prototype._pad=function(f,c){if(this.padding===!1)return!1;for(var h=f.length-c,d=c;d<f.length;d++)f[d]=h;return!0},u.prototype._unpad=function(f){if(this.padding===!1)return f;for(var c=f[f.length-1],h=f.length-c;h<f.length;h++)n.equal(f[h],c);return f.slice(0,f.length-c)},u.prototype._encrypt=function(f,c,h,d,p){for(var m=c,v=h,b=0;b<f.keys.length;b+=2){var g=f.keys[b],y=f.keys[b+1];o.expand(v,f.tmp,0),g^=f.tmp[0],y^=f.tmp[1];var k=o.substitute(g,y),S=v;v=(m^o.permute(k))>>>0,m=S}o.rip(v,m,d,p)},u.prototype._decrypt=function(f,c,h,d,p){for(var m=h,v=c,b=f.keys.length-2;b>=0;b-=2){var g=f.keys[b],y=f.keys[b+1];o.expand(m,f.tmp,0),g^=f.tmp[0],y^=f.tmp[1];var k=o.substitute(g,y),S=m;m=(v^o.permute(k))>>>0,v=S}o.rip(m,v,d,p)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits"),o=t("./cipher"),s=t("./des");function i(l,f){n.equal(f.length,24,"Invalid key length");var c=f.slice(0,8),h=f.slice(8,16),d=f.slice(16,24);this.ciphers=l==="encrypt"?[s.create({type:"encrypt",key:c}),s.create({type:"decrypt",key:h}),s.create({type:"encrypt",key:d})]:[s.create({type:"decrypt",key:d}),s.create({type:"encrypt",key:h}),s.create({type:"decrypt",key:c})]}function u(l){o.call(this,l);var f=new i(this.type,this.options.key);this._edeState=f}a(u,o),r.exports=u,u.create=function(l){return new u(l)},u.prototype._update=function(l,f,c,h){var d=this._edeState;d.ciphers[0]._update(l,f,c,h),d.ciphers[1]._update(c,h,c,h),d.ciphers[2]._update(c,h,c,h)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(t,r,e){e.readUInt32BE=function(s,i){return(s[0+i]<<24|s[1+i]<<16|s[2+i]<<8|s[3+i])>>>0},e.writeUInt32BE=function(s,i,u){s[0+u]=i>>>24,s[1+u]=i>>>16&255,s[2+u]=i>>>8&255,s[3+u]=255&i},e.ip=function(s,i,u,l){for(var f=0,c=0,h=6;h>=0;h-=2){for(var d=0;d<=24;d+=8)f<<=1,f|=i>>>d+h&1;for(d=0;d<=24;d+=8)f<<=1,f|=s>>>d+h&1}for(h=6;h>=0;h-=2){for(d=1;d<=25;d+=8)c<<=1,c|=i>>>d+h&1;for(d=1;d<=25;d+=8)c<<=1,c|=s>>>d+h&1}u[l+0]=f>>>0,u[l+1]=c>>>0},e.rip=function(s,i,u,l){for(var f=0,c=0,h=0;h<4;h++)for(var d=24;d>=0;d-=8)f<<=1,f|=i>>>d+h&1,f<<=1,f|=s>>>d+h&1;for(h=4;h<8;h++)for(d=24;d>=0;d-=8)c<<=1,c|=i>>>d+h&1,c<<=1,c|=s>>>d+h&1;u[l+0]=f>>>0,u[l+1]=c>>>0},e.pc1=function(s,i,u,l){for(var f=0,c=0,h=7;h>=5;h--){for(var d=0;d<=24;d+=8)f<<=1,f|=i>>d+h&1;for(d=0;d<=24;d+=8)f<<=1,f|=s>>d+h&1}for(d=0;d<=24;d+=8)f<<=1,f|=i>>d+h&1;for(h=1;h<=3;h++){for(d=0;d<=24;d+=8)c<<=1,c|=i>>d+h&1;for(d=0;d<=24;d+=8)c<<=1,c|=s>>d+h&1}for(d=0;d<=24;d+=8)c<<=1,c|=s>>d+h&1;u[l+0]=f>>>0,u[l+1]=c>>>0},e.r28shl=function(s,i){return s<<i&268435455|s>>>28-i};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(s,i,u,l){for(var f=0,c=0,h=n.length>>>1,d=0;d<h;d++)f<<=1,f|=s>>>n[d]&1;for(d=h;d<n.length;d++)c<<=1,c|=i>>>n[d]&1;u[l+0]=f>>>0,u[l+1]=c>>>0},e.expand=function(s,i,u){var l=0,f=0;l=(1&s)<<5|s>>>27;for(var c=23;c>=15;c-=4)l<<=6,l|=s>>>c&63;for(c=11;c>=3;c-=4)f|=s>>>c&63,f<<=6;f|=(31&s)<<1|s>>>31,i[u+0]=l>>>0,i[u+1]=f>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(s,i){for(var u=0,l=0;l<4;l++)u<<=4,u|=a[64*l+(s>>>18-6*l&63)];for(l=0;l<4;l++)u<<=4,u|=a[256+64*l+(i>>>18-6*l&63)];return u>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(s){for(var i=0,u=0;u<o.length;u++)i<<=1,i|=s>>>o[u]&1;return i>>>0},e.padSplit=function(s,i,u){for(var l=s.toString(2);l.length<i;)l="0"+l;for(var f=[],c=0;c<i;c+=u)f.push(l.slice(c,c+u));return f.join(" ")}},{}],400:[function(t,r,e){(function(n){(function(){var a=t("./lib/generatePrime"),o=t("./lib/primes.json"),s=t("./lib/dh");function i(f){var c=new n(o[f].prime,"hex"),h=new n(o[f].gen,"hex");return new s(c,h)}var u={binary:!0,hex:!0,base64:!0};function l(f,c,h,d){return n.isBuffer(c)||u[c]===void 0?l(f,"binary",c,h):(c=c||"binary",d=d||"binary",h=h||new n([2]),n.isBuffer(h)||(h=new n(h,d)),typeof f=="number"?new s(a(f,h),h,!0):(n.isBuffer(f)||(f=new n(f,c)),new s(f,h,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=i,e.createDiffieHellman=e.DiffieHellman=l}).call(this)}).call(this,t("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(t,r,e){(function(n){(function(){var a=t("bn.js"),o=new(t("miller-rabin")),s=new a(24),i=new a(11),u=new a(10),l=new a(3),f=new a(7),c=t("./generatePrime"),h=t("randombytes");function d(y,k){return k=k||"utf8",n.isBuffer(y)||(y=new n(y,k)),this._pub=new a(y),this}function p(y,k){return k=k||"utf8",n.isBuffer(y)||(y=new n(y,k)),this._priv=new a(y),this}r.exports=b;var m={};function v(y,k){var S=k.toString("hex"),C=[S,y.toString(16)].join("_");if(C in m)return m[C];var O,L=0;if(y.isEven()||!c.simpleSieve||!c.fermatTest(y)||!o.test(y))return L+=1,L+=S==="02"||S==="05"?8:4,m[C]=L,L;switch(o.test(y.shrn(1))||(L+=2),S){case"02":y.mod(s).cmp(i)&&(L+=8);break;case"05":(O=y.mod(u)).cmp(l)&&O.cmp(f)&&(L+=8);break;default:L+=4}return m[C]=L,L}function b(y,k,S){this.setGenerator(k),this.__prime=new a(y),this._prime=a.mont(this.__prime),this._primeLen=y.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,S?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function g(y,k){var S=new n(y.toArray());return k?S.toString(k):S}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=v(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new a(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(y){var k=(y=(y=new a(y)).toRed(this._prime)).redPow(this._priv).fromRed(),S=new n(k.toArray()),C=this.getPrime();if(S.length<C.length){var O=new n(C.length-S.length);O.fill(0),S=n.concat([O,S])}return S},b.prototype.getPublicKey=function(y){return g(this._pub,y)},b.prototype.getPrivateKey=function(y){return g(this._priv,y)},b.prototype.getPrime=function(y){return g(this.__prime,y)},b.prototype.getGenerator=function(y){return g(this._gen,y)},b.prototype.setGenerator=function(y,k){return k=k||"utf8",n.isBuffer(y)||(y=new n(y,k)),this.__gen=y,this._gen=new a(y),this}}).call(this)}).call(this,t("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(t,r,e){var n=t("randombytes");r.exports=g,g.simpleSieve=v,g.fermatTest=b;var a=t("bn.js"),o=new a(24),s=new(t("miller-rabin")),i=new a(1),u=new a(2),l=new a(5);new a(16),new a(8);var f=new a(10),c=new a(3);new a(7);var h=new a(11),d=new a(4);new a(12);var p=null;function m(){if(p!==null)return p;var y=1048576,k=[];k[0]=2;for(var S=1,C=3;C<y;C+=2){for(var O=Math.ceil(Math.sqrt(C)),L=0;L<S&&k[L]<=O&&C%k[L]!=0;L++);S!==L&&k[L]<=O||(k[S++]=C)}return p=k,k}function v(y){for(var k=m(),S=0;S<k.length;S++)if(y.modn(k[S])===0)return y.cmpn(k[S])===0;return!0}function b(y){var k=a.mont(y);return u.toRed(k).redPow(y.subn(1)).fromRed().cmpn(1)===0}function g(y,k){if(y<16)return new a(k===2||k===5?[140,123]:[140,39]);var S,C;for(k=new a(k);;){for(S=new a(n(Math.ceil(y/8)));S.bitLength()>y;)S.ishrn(1);if(S.isEven()&&S.iadd(i),S.testn(1)||S.iadd(u),k.cmp(u)){if(!k.cmp(l))for(;S.mod(f).cmp(c);)S.iadd(d)}else for(;S.mod(o).cmp(h);)S.iadd(d);if(v(C=S.shrn(1))&&v(S)&&b(C)&&b(S)&&s.test(C)&&s.test(S))return S}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(t,r,e){r.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],405:[function(t,r,e){var n=e;n.version=t("../package.json").version,n.utils=t("./elliptic/utils"),n.rand=t("brorand"),n.curve=t("./elliptic/curve"),n.curves=t("./elliptic/curves"),n.ec=t("./elliptic/ec"),n.eddsa=t("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(t,r,e){var n=t("bn.js"),a=t("../utils"),o=a.getNAF,s=a.getJSF,i=a.assert;function u(f,c){this.type=f,this.p=new n(c.p,16),this.red=c.prime?n.red(c.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=c.n&&new n(c.n,16),this.g=c.g&&this.pointFromJSON(c.g,c.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var h=this.n&&this.p.div(this.n);!h||h.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(f,c){this.curve=f,this.type=c,this.precomputed=null}r.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(f,c){i(f.precomputed);var h=f._getDoubles(),d=o(c,1,this._bitLength),p=(1<<h.step+1)-(h.step%2==0?2:1);p/=3;var m,v,b=[];for(m=0;m<d.length;m+=h.step){v=0;for(var g=m+h.step-1;g>=m;g--)v=(v<<1)+d[g];b.push(v)}for(var y=this.jpoint(null,null,null),k=this.jpoint(null,null,null),S=p;S>0;S--){for(m=0;m<b.length;m++)(v=b[m])===S?k=k.mixedAdd(h.points[m]):v===-S&&(k=k.mixedAdd(h.points[m].neg()));y=y.add(k)}return y.toP()},u.prototype._wnafMul=function(f,c){var h=4,d=f._getNAFPoints(h);h=d.wnd;for(var p=d.points,m=o(c,h,this._bitLength),v=this.jpoint(null,null,null),b=m.length-1;b>=0;b--){for(var g=0;b>=0&&m[b]===0;b--)g++;if(b>=0&&g++,v=v.dblp(g),b<0)break;var y=m[b];i(y!==0),v=f.type==="affine"?y>0?v.mixedAdd(p[y-1>>1]):v.mixedAdd(p[-y-1>>1].neg()):y>0?v.add(p[y-1>>1]):v.add(p[-y-1>>1].neg())}return f.type==="affine"?v.toP():v},u.prototype._wnafMulAdd=function(f,c,h,d,p){var m,v,b,g=this._wnafT1,y=this._wnafT2,k=this._wnafT3,S=0;for(m=0;m<d;m++){var C=(b=c[m])._getNAFPoints(f);g[m]=C.wnd,y[m]=C.points}for(m=d-1;m>=1;m-=2){var O=m-1,L=m;if(g[O]===1&&g[L]===1){var j=[c[O],null,null,c[L]];c[O].y.cmp(c[L].y)===0?(j[1]=c[O].add(c[L]),j[2]=c[O].toJ().mixedAdd(c[L].neg())):c[O].y.cmp(c[L].y.redNeg())===0?(j[1]=c[O].toJ().mixedAdd(c[L]),j[2]=c[O].add(c[L].neg())):(j[1]=c[O].toJ().mixedAdd(c[L]),j[2]=c[O].toJ().mixedAdd(c[L].neg()));var U=[-3,-1,-5,-7,0,7,5,1,3],z=s(h[O],h[L]);for(S=Math.max(z[0].length,S),k[O]=new Array(S),k[L]=new Array(S),v=0;v<S;v++){var Y=0|z[0][v],A=0|z[1][v];k[O][v]=U[3*(Y+1)+(A+1)],k[L][v]=0,y[O]=j}}else k[O]=o(h[O],g[O],this._bitLength),k[L]=o(h[L],g[L],this._bitLength),S=Math.max(k[O].length,S),S=Math.max(k[L].length,S)}var I=this.jpoint(null,null,null),_=this._wnafT4;for(m=S;m>=0;m--){for(var x=0;m>=0;){var T=!0;for(v=0;v<d;v++)_[v]=0|k[v][m],_[v]!==0&&(T=!1);if(!T)break;x++,m--}if(m>=0&&x++,I=I.dblp(x),m<0)break;for(v=0;v<d;v++){var E=_[v];E!==0&&(E>0?b=y[v][E-1>>1]:E<0&&(b=y[v][-E-1>>1].neg()),I=b.type==="affine"?I.mixedAdd(b):I.add(b))}}for(m=0;m<d;m++)y[m]=null;return p?I:I.toP()},u.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(f,c){f=a.toArray(f,c);var h=this.p.byteLength();if((f[0]===4||f[0]===6||f[0]===7)&&f.length-1==2*h)return f[0]===6?i(f[f.length-1]%2==0):f[0]===7&&i(f[f.length-1]%2==1),this.point(f.slice(1,1+h),f.slice(1+h,1+2*h));if((f[0]===2||f[0]===3)&&f.length-1===h)return this.pointFromX(f.slice(1,1+h),f[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(f){return this.encode(f,!0)},l.prototype._encode=function(f){var c=this.curve.p.byteLength(),h=this.getX().toArray("be",c);return f?[this.getY().isEven()?2:3].concat(h):[4].concat(h,this.getY().toArray("be",c))},l.prototype.encode=function(f,c){return a.encode(this._encode(c),f)},l.prototype.precompute=function(f){if(this.precomputed)return this;var c={doubles:null,naf:null,beta:null};return c.naf=this._getNAFPoints(8),c.doubles=this._getDoubles(4,f),c.beta=this._getBeta(),this.precomputed=c,this},l.prototype._hasDoubles=function(f){if(!this.precomputed)return!1;var c=this.precomputed.doubles;return!!c&&c.points.length>=Math.ceil((f.bitLength()+1)/c.step)},l.prototype._getDoubles=function(f,c){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var h=[this],d=this,p=0;p<c;p+=f){for(var m=0;m<f;m++)d=d.dbl();h.push(d)}return{step:f,points:h}},l.prototype._getNAFPoints=function(f){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var c=[this],h=(1<<f)-1,d=h===1?null:this.dbl(),p=1;p<h;p++)c[p]=c[p-1].add(d);return{wnd:f,points:c}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(f){for(var c=this,h=0;h<f;h++)c=c.dbl();return c}},{"../utils":419,"bn.js":420}],407:[function(t,r,e){var n=t("../utils"),a=t("bn.js"),o=t("inherits"),s=t("./base"),i=n.assert;function u(f){this.twisted=(0|f.a)!=1,this.mOneA=this.twisted&&(0|f.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",f),this.a=new a(f.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(f.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(f.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),i(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|f.c)==1}function l(f,c,h,d,p){s.BasePoint.call(this,f,"projective"),c===null&&h===null&&d===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(c,16),this.y=new a(h,16),this.z=d?new a(d,16):this.curve.one,this.t=p&&new a(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),r.exports=u,u.prototype._mulA=function(f){return this.mOneA?f.redNeg():this.a.redMul(f)},u.prototype._mulC=function(f){return this.oneC?f:this.c.redMul(f)},u.prototype.jpoint=function(f,c,h,d){return this.point(f,c,h,d)},u.prototype.pointFromX=function(f,c){(f=new a(f,16)).red||(f=f.toRed(this.red));var h=f.redSqr(),d=this.c2.redSub(this.a.redMul(h)),p=this.one.redSub(this.c2.redMul(this.d).redMul(h)),m=d.redMul(p.redInvm()),v=m.redSqrt();if(v.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var b=v.fromRed().isOdd();return(c&&!b||!c&&b)&&(v=v.redNeg()),this.point(f,v)},u.prototype.pointFromY=function(f,c){(f=new a(f,16)).red||(f=f.toRed(this.red));var h=f.redSqr(),d=h.redSub(this.c2),p=h.redMul(this.d).redMul(this.c2).redSub(this.a),m=d.redMul(p.redInvm());if(m.cmp(this.zero)===0){if(c)throw new Error("invalid point");return this.point(this.zero,f)}var v=m.redSqrt();if(v.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==c&&(v=v.redNeg()),this.point(v,f)},u.prototype.validate=function(f){if(f.isInfinity())return!0;f.normalize();var c=f.x.redSqr(),h=f.y.redSqr(),d=c.redMul(this.a).redAdd(h),p=this.c2.redMul(this.one.redAdd(this.d.redMul(c).redMul(h)));return d.cmp(p)===0},o(l,s.BasePoint),u.prototype.pointFromJSON=function(f){return l.fromJSON(this,f)},u.prototype.point=function(f,c,h,d){return new l(this,f,c,h,d)},l.fromJSON=function(f,c){return new l(f,c[0],c[1],c[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},l.prototype._extDbl=function(){var f=this.x.redSqr(),c=this.y.redSqr(),h=this.z.redSqr();h=h.redIAdd(h);var d=this.curve._mulA(f),p=this.x.redAdd(this.y).redSqr().redISub(f).redISub(c),m=d.redAdd(c),v=m.redSub(h),b=d.redSub(c),g=p.redMul(v),y=m.redMul(b),k=p.redMul(b),S=v.redMul(m);return this.curve.point(g,y,S,k)},l.prototype._projDbl=function(){var f,c,h,d,p,m,v=this.x.redAdd(this.y).redSqr(),b=this.x.redSqr(),g=this.y.redSqr();if(this.curve.twisted){var y=(d=this.curve._mulA(b)).redAdd(g);this.zOne?(f=v.redSub(b).redSub(g).redMul(y.redSub(this.curve.two)),c=y.redMul(d.redSub(g)),h=y.redSqr().redSub(y).redSub(y)):(p=this.z.redSqr(),m=y.redSub(p).redISub(p),f=v.redSub(b).redISub(g).redMul(m),c=y.redMul(d.redSub(g)),h=y.redMul(m))}else d=b.redAdd(g),p=this.curve._mulC(this.z).redSqr(),m=d.redSub(p).redSub(p),f=this.curve._mulC(v.redISub(d)).redMul(m),c=this.curve._mulC(d).redMul(b.redISub(g)),h=d.redMul(m);return this.curve.point(f,c,h)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(f){var c=this.y.redSub(this.x).redMul(f.y.redSub(f.x)),h=this.y.redAdd(this.x).redMul(f.y.redAdd(f.x)),d=this.t.redMul(this.curve.dd).redMul(f.t),p=this.z.redMul(f.z.redAdd(f.z)),m=h.redSub(c),v=p.redSub(d),b=p.redAdd(d),g=h.redAdd(c),y=m.redMul(v),k=b.redMul(g),S=m.redMul(g),C=v.redMul(b);return this.curve.point(y,k,C,S)},l.prototype._projAdd=function(f){var c,h,d=this.z.redMul(f.z),p=d.redSqr(),m=this.x.redMul(f.x),v=this.y.redMul(f.y),b=this.curve.d.redMul(m).redMul(v),g=p.redSub(b),y=p.redAdd(b),k=this.x.redAdd(this.y).redMul(f.x.redAdd(f.y)).redISub(m).redISub(v),S=d.redMul(g).redMul(k);return this.curve.twisted?(c=d.redMul(y).redMul(v.redSub(this.curve._mulA(m))),h=g.redMul(y)):(c=d.redMul(y).redMul(v.redSub(m)),h=this.curve._mulC(g).redMul(y)),this.curve.point(S,c,h)},l.prototype.add=function(f){return this.isInfinity()?f:f.isInfinity()?this:this.curve.extended?this._extAdd(f):this._projAdd(f)},l.prototype.mul=function(f){return this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve._wnafMul(this,f)},l.prototype.mulAdd=function(f,c,h){return this.curve._wnafMulAdd(1,[this,c],[f,h],2,!1)},l.prototype.jmulAdd=function(f,c,h){return this.curve._wnafMulAdd(1,[this,c],[f,h],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var f=this.z.redInvm();return this.x=this.x.redMul(f),this.y=this.y.redMul(f),this.t&&(this.t=this.t.redMul(f)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(f){return this===f||this.getX().cmp(f.getX())===0&&this.getY().cmp(f.getY())===0},l.prototype.eqXToP=function(f){var c=f.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(c)===0)return!0;for(var h=f.clone(),d=this.curve.redN.redMul(this.z);;){if(h.iadd(this.curve.n),h.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(d),this.x.cmp(c)===0)return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(t,r,e){var n=e;n.base=t("./base"),n.short=t("./short"),n.mont=t("./mont"),n.edwards=t("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(t,r,e){var n=t("bn.js"),a=t("inherits"),o=t("./base"),s=t("../utils");function i(l){o.call(this,"mont",l),this.a=new n(l.a,16).toRed(this.red),this.b=new n(l.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(l,f,c){o.BasePoint.call(this,l,"projective"),f===null&&c===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(f,16),this.z=new n(c,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(i,o),r.exports=i,i.prototype.validate=function(l){var f=l.normalize().x,c=f.redSqr(),h=c.redMul(f).redAdd(c.redMul(this.a)).redAdd(f);return h.redSqrt().redSqr().cmp(h)===0},a(u,o.BasePoint),i.prototype.decodePoint=function(l,f){return this.point(s.toArray(l,f),1)},i.prototype.point=function(l,f){return new u(this,l,f)},i.prototype.pointFromJSON=function(l){return u.fromJSON(this,l)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(l,f){return new u(l,f[0],f[1]||l.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0},u.prototype.dbl=function(){var l=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),c=l.redSub(f),h=l.redMul(f),d=c.redMul(f.redAdd(this.curve.a24.redMul(c)));return this.curve.point(h,d)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(l,f){var c=this.x.redAdd(this.z),h=this.x.redSub(this.z),d=l.x.redAdd(l.z),p=l.x.redSub(l.z).redMul(c),m=d.redMul(h),v=f.z.redMul(p.redAdd(m).redSqr()),b=f.x.redMul(p.redISub(m).redSqr());return this.curve.point(v,b)},u.prototype.mul=function(l){for(var f=l.clone(),c=this,h=this.curve.point(null,null),d=this,p=[];f.cmpn(0)!==0;f.iushrn(1))p.push(f.andln(1));for(var m=p.length-1;m>=0;m--)p[m]===0?(c=c.diffAdd(h,d),h=h.dbl()):(h=c.diffAdd(h,d),c=c.dbl());return h},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(l){return this.getX().cmp(l.getX())===0},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(t,r,e){var n=t("../utils"),a=t("bn.js"),o=t("inherits"),s=t("./base"),i=n.assert;function u(c){s.call(this,"short",c),this.a=new a(c.a,16).toRed(this.red),this.b=new a(c.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(c),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(c,h,d,p){s.BasePoint.call(this,c,"affine"),h===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(h,16),this.y=new a(d,16),p&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(c,h,d,p){s.BasePoint.call(this,c,"jacobian"),h===null&&d===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(h,16),this.y=new a(d,16),this.z=new a(p,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),r.exports=u,u.prototype._getEndomorphism=function(c){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var h,d;if(c.beta)h=new a(c.beta,16).toRed(this.red);else{var p=this._getEndoRoots(this.p);h=(h=p[0].cmp(p[1])<0?p[0]:p[1]).toRed(this.red)}if(c.lambda)d=new a(c.lambda,16);else{var m=this._getEndoRoots(this.n);this.g.mul(m[0]).x.cmp(this.g.x.redMul(h))===0?d=m[0]:(d=m[1],i(this.g.mul(d).x.cmp(this.g.x.redMul(h))===0))}return{beta:h,lambda:d,basis:c.basis?c.basis.map(function(v){return{a:new a(v.a,16),b:new a(v.b,16)}}):this._getEndoBasis(d)}}},u.prototype._getEndoRoots=function(c){var h=c===this.p?this.red:a.mont(c),d=new a(2).toRed(h).redInvm(),p=d.redNeg(),m=new a(3).toRed(h).redNeg().redSqrt().redMul(d);return[p.redAdd(m).fromRed(),p.redSub(m).fromRed()]},u.prototype._getEndoBasis=function(c){for(var h,d,p,m,v,b,g,y,k,S=this.n.ushrn(Math.floor(this.n.bitLength()/2)),C=c,O=this.n.clone(),L=new a(1),j=new a(0),U=new a(0),z=new a(1),Y=0;C.cmpn(0)!==0;){var A=O.div(C);y=O.sub(A.mul(C)),k=U.sub(A.mul(L));var I=z.sub(A.mul(j));if(!p&&y.cmp(S)<0)h=g.neg(),d=L,p=y.neg(),m=k;else if(p&&++Y==2)break;g=y,O=C,C=y,U=L,L=k,z=j,j=I}v=y.neg(),b=k;var _=p.sqr().add(m.sqr());return v.sqr().add(b.sqr()).cmp(_)>=0&&(v=h,b=d),p.negative&&(p=p.neg(),m=m.neg()),v.negative&&(v=v.neg(),b=b.neg()),[{a:p,b:m},{a:v,b}]},u.prototype._endoSplit=function(c){var h=this.endo.basis,d=h[0],p=h[1],m=p.b.mul(c).divRound(this.n),v=d.b.neg().mul(c).divRound(this.n),b=m.mul(d.a),g=v.mul(p.a),y=m.mul(d.b),k=v.mul(p.b);return{k1:c.sub(b).sub(g),k2:y.add(k).neg()}},u.prototype.pointFromX=function(c,h){(c=new a(c,16)).red||(c=c.toRed(this.red));var d=c.redSqr().redMul(c).redIAdd(c.redMul(this.a)).redIAdd(this.b),p=d.redSqrt();if(p.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var m=p.fromRed().isOdd();return(h&&!m||!h&&m)&&(p=p.redNeg()),this.point(c,p)},u.prototype.validate=function(c){if(c.inf)return!0;var h=c.x,d=c.y,p=this.a.redMul(h),m=h.redSqr().redMul(h).redIAdd(p).redIAdd(this.b);return d.redSqr().redISub(m).cmpn(0)===0},u.prototype._endoWnafMulAdd=function(c,h,d){for(var p=this._endoWnafT1,m=this._endoWnafT2,v=0;v<c.length;v++){var b=this._endoSplit(h[v]),g=c[v],y=g._getBeta();b.k1.negative&&(b.k1.ineg(),g=g.neg(!0)),b.k2.negative&&(b.k2.ineg(),y=y.neg(!0)),p[2*v]=g,p[2*v+1]=y,m[2*v]=b.k1,m[2*v+1]=b.k2}for(var k=this._wnafMulAdd(1,p,m,2*v,d),S=0;S<2*v;S++)p[S]=null,m[S]=null;return k},o(l,s.BasePoint),u.prototype.point=function(c,h,d){return new l(this,c,h,d)},u.prototype.pointFromJSON=function(c,h){return l.fromJSON(this,c,h)},l.prototype._getBeta=function(){if(this.curve.endo){var c=this.precomputed;if(c&&c.beta)return c.beta;var h=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(c){var d=this.curve,p=function(m){return d.point(m.x.redMul(d.endo.beta),m.y)};c.beta=h,h.precomputed={beta:null,naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(p)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(p)}}}return h}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(c,h,d){typeof h=="string"&&(h=JSON.parse(h));var p=c.point(h[0],h[1],d);if(!h[2])return p;function m(b){return c.point(b[0],b[1],d)}var v=h[2];return p.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[p].concat(v.doubles.points.map(m))},naf:v.naf&&{wnd:v.naf.wnd,points:[p].concat(v.naf.points.map(m))}},p},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(c){if(this.inf)return c;if(c.inf)return this;if(this.eq(c))return this.dbl();if(this.neg().eq(c))return this.curve.point(null,null);if(this.x.cmp(c.x)===0)return this.curve.point(null,null);var h=this.y.redSub(c.y);h.cmpn(0)!==0&&(h=h.redMul(this.x.redSub(c.x).redInvm()));var d=h.redSqr().redISub(this.x).redISub(c.x),p=h.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,p)},l.prototype.dbl=function(){if(this.inf)return this;var c=this.y.redAdd(this.y);if(c.cmpn(0)===0)return this.curve.point(null,null);var h=this.curve.a,d=this.x.redSqr(),p=c.redInvm(),m=d.redAdd(d).redIAdd(d).redIAdd(h).redMul(p),v=m.redSqr().redISub(this.x.redAdd(this.x)),b=m.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,b)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(c){return c=new a(c,16),this.isInfinity()?this:this._hasDoubles(c)?this.curve._fixedNafMul(this,c):this.curve.endo?this.curve._endoWnafMulAdd([this],[c]):this.curve._wnafMul(this,c)},l.prototype.mulAdd=function(c,h,d){var p=[this,h],m=[c,d];return this.curve.endo?this.curve._endoWnafMulAdd(p,m):this.curve._wnafMulAdd(1,p,m,2)},l.prototype.jmulAdd=function(c,h,d){var p=[this,h],m=[c,d];return this.curve.endo?this.curve._endoWnafMulAdd(p,m,!0):this.curve._wnafMulAdd(1,p,m,2,!0)},l.prototype.eq=function(c){return this===c||this.inf===c.inf&&(this.inf||this.x.cmp(c.x)===0&&this.y.cmp(c.y)===0)},l.prototype.neg=function(c){if(this.inf)return this;var h=this.curve.point(this.x,this.y.redNeg());if(c&&this.precomputed){var d=this.precomputed,p=function(m){return m.neg()};h.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(p)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(p)}}}return h},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,s.BasePoint),u.prototype.jpoint=function(c,h,d){return new f(this,c,h,d)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var c=this.z.redInvm(),h=c.redSqr(),d=this.x.redMul(h),p=this.y.redMul(h).redMul(c);return this.curve.point(d,p)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(c){if(this.isInfinity())return c;if(c.isInfinity())return this;var h=c.z.redSqr(),d=this.z.redSqr(),p=this.x.redMul(h),m=c.x.redMul(d),v=this.y.redMul(h.redMul(c.z)),b=c.y.redMul(d.redMul(this.z)),g=p.redSub(m),y=v.redSub(b);if(g.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var k=g.redSqr(),S=k.redMul(g),C=p.redMul(k),O=y.redSqr().redIAdd(S).redISub(C).redISub(C),L=y.redMul(C.redISub(O)).redISub(v.redMul(S)),j=this.z.redMul(c.z).redMul(g);return this.curve.jpoint(O,L,j)},f.prototype.mixedAdd=function(c){if(this.isInfinity())return c.toJ();if(c.isInfinity())return this;var h=this.z.redSqr(),d=this.x,p=c.x.redMul(h),m=this.y,v=c.y.redMul(h).redMul(this.z),b=d.redSub(p),g=m.redSub(v);if(b.cmpn(0)===0)return g.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var y=b.redSqr(),k=y.redMul(b),S=d.redMul(y),C=g.redSqr().redIAdd(k).redISub(S).redISub(S),O=g.redMul(S.redISub(C)).redISub(m.redMul(k)),L=this.z.redMul(b);return this.curve.jpoint(C,O,L)},f.prototype.dblp=function(c){if(c===0)return this;if(this.isInfinity())return this;if(!c)return this.dbl();var h;if(this.curve.zeroA||this.curve.threeA){var d=this;for(h=0;h<c;h++)d=d.dbl();return d}var p=this.curve.a,m=this.curve.tinv,v=this.x,b=this.y,g=this.z,y=g.redSqr().redSqr(),k=b.redAdd(b);for(h=0;h<c;h++){var S=v.redSqr(),C=k.redSqr(),O=C.redSqr(),L=S.redAdd(S).redIAdd(S).redIAdd(p.redMul(y)),j=v.redMul(C),U=L.redSqr().redISub(j.redAdd(j)),z=j.redISub(U),Y=L.redMul(z);Y=Y.redIAdd(Y).redISub(O);var A=k.redMul(g);h+1<c&&(y=y.redMul(O)),v=U,g=A,k=Y}return this.curve.jpoint(v,k.redMul(m),g)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var c,h,d;if(this.zOne){var p=this.x.redSqr(),m=this.y.redSqr(),v=m.redSqr(),b=this.x.redAdd(m).redSqr().redISub(p).redISub(v);b=b.redIAdd(b);var g=p.redAdd(p).redIAdd(p),y=g.redSqr().redISub(b).redISub(b),k=v.redIAdd(v);k=(k=k.redIAdd(k)).redIAdd(k),c=y,h=g.redMul(b.redISub(y)).redISub(k),d=this.y.redAdd(this.y)}else{var S=this.x.redSqr(),C=this.y.redSqr(),O=C.redSqr(),L=this.x.redAdd(C).redSqr().redISub(S).redISub(O);L=L.redIAdd(L);var j=S.redAdd(S).redIAdd(S),U=j.redSqr(),z=O.redIAdd(O);z=(z=z.redIAdd(z)).redIAdd(z),c=U.redISub(L).redISub(L),h=j.redMul(L.redISub(c)).redISub(z),d=(d=this.y.redMul(this.z)).redIAdd(d)}return this.curve.jpoint(c,h,d)},f.prototype._threeDbl=function(){var c,h,d;if(this.zOne){var p=this.x.redSqr(),m=this.y.redSqr(),v=m.redSqr(),b=this.x.redAdd(m).redSqr().redISub(p).redISub(v);b=b.redIAdd(b);var g=p.redAdd(p).redIAdd(p).redIAdd(this.curve.a),y=g.redSqr().redISub(b).redISub(b);c=y;var k=v.redIAdd(v);k=(k=k.redIAdd(k)).redIAdd(k),h=g.redMul(b.redISub(y)).redISub(k),d=this.y.redAdd(this.y)}else{var S=this.z.redSqr(),C=this.y.redSqr(),O=this.x.redMul(C),L=this.x.redSub(S).redMul(this.x.redAdd(S));L=L.redAdd(L).redIAdd(L);var j=O.redIAdd(O),U=(j=j.redIAdd(j)).redAdd(j);c=L.redSqr().redISub(U),d=this.y.redAdd(this.z).redSqr().redISub(C).redISub(S);var z=C.redSqr();z=(z=(z=z.redIAdd(z)).redIAdd(z)).redIAdd(z),h=L.redMul(j.redISub(c)).redISub(z)}return this.curve.jpoint(c,h,d)},f.prototype._dbl=function(){var c=this.curve.a,h=this.x,d=this.y,p=this.z,m=p.redSqr().redSqr(),v=h.redSqr(),b=d.redSqr(),g=v.redAdd(v).redIAdd(v).redIAdd(c.redMul(m)),y=h.redAdd(h),k=(y=y.redIAdd(y)).redMul(b),S=g.redSqr().redISub(k.redAdd(k)),C=k.redISub(S),O=b.redSqr();O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O);var L=g.redMul(C).redISub(O),j=d.redAdd(d).redMul(p);return this.curve.jpoint(S,L,j)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var c=this.x.redSqr(),h=this.y.redSqr(),d=this.z.redSqr(),p=h.redSqr(),m=c.redAdd(c).redIAdd(c),v=m.redSqr(),b=this.x.redAdd(h).redSqr().redISub(c).redISub(p),g=(b=(b=(b=b.redIAdd(b)).redAdd(b).redIAdd(b)).redISub(v)).redSqr(),y=p.redIAdd(p);y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y);var k=m.redIAdd(b).redSqr().redISub(v).redISub(g).redISub(y),S=h.redMul(k);S=(S=S.redIAdd(S)).redIAdd(S);var C=this.x.redMul(g).redISub(S);C=(C=C.redIAdd(C)).redIAdd(C);var O=this.y.redMul(k.redMul(y.redISub(k)).redISub(b.redMul(g)));O=(O=(O=O.redIAdd(O)).redIAdd(O)).redIAdd(O);var L=this.z.redAdd(b).redSqr().redISub(d).redISub(g);return this.curve.jpoint(C,O,L)},f.prototype.mul=function(c,h){return c=new a(c,h),this.curve._wnafMul(this,c)},f.prototype.eq=function(c){if(c.type==="affine")return this.eq(c.toJ());if(this===c)return!0;var h=this.z.redSqr(),d=c.z.redSqr();if(this.x.redMul(d).redISub(c.x.redMul(h)).cmpn(0)!==0)return!1;var p=h.redMul(this.z),m=d.redMul(c.z);return this.y.redMul(m).redISub(c.y.redMul(p)).cmpn(0)===0},f.prototype.eqXToP=function(c){var h=this.z.redSqr(),d=c.toRed(this.curve.red).redMul(h);if(this.x.cmp(d)===0)return!0;for(var p=c.clone(),m=this.curve.redN.redMul(h);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(m),this.x.cmp(d)===0)return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(t,r,e){var n,a=e,o=t("hash.js"),s=t("./curve"),i=t("./utils").assert;function u(f){f.type==="short"?this.curve=new s.short(f):f.type==="edwards"?this.curve=new s.edwards(f):this.curve=new s.mont(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(f,c){Object.defineProperty(a,f,{configurable:!0,enumerable:!0,get:function(){var h=new u(c);return Object.defineProperty(a,f,{configurable:!0,enumerable:!0,value:h}),h}})}a.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=t("./precomputed/secp256k1")}catch{n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(t,r,e){var n=t("bn.js"),a=t("hmac-drbg"),o=t("../utils"),s=t("../curves"),i=t("brorand"),u=o.assert,l=t("./key"),f=t("./signature");function c(h){if(!(this instanceof c))return new c(h);typeof h=="string"&&(u(Object.prototype.hasOwnProperty.call(s,h),"Unknown curve "+h),h=s[h]),h instanceof s.PresetCurve&&(h={curve:h}),this.curve=h.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=h.curve.g,this.g.precompute(h.curve.n.bitLength()+1),this.hash=h.hash||h.curve.hash}r.exports=c,c.prototype.keyPair=function(h){return new l(this,h)},c.prototype.keyFromPrivate=function(h,d){return l.fromPrivate(this,h,d)},c.prototype.keyFromPublic=function(h,d){return l.fromPublic(this,h,d)},c.prototype.genKeyPair=function(h){h||(h={});for(var d=new a({hash:this.hash,pers:h.pers,persEnc:h.persEnc||"utf8",entropy:h.entropy||i(this.hash.hmacStrength),entropyEnc:h.entropy&&h.entropyEnc||"utf8",nonce:this.n.toArray()}),p=this.n.byteLength(),m=this.n.sub(new n(2));;){var v=new n(d.generate(p));if(!(v.cmp(m)>0))return v.iaddn(1),this.keyFromPrivate(v)}},c.prototype._truncateToN=function(h,d){var p=8*h.byteLength()-this.n.bitLength();return p>0&&(h=h.ushrn(p)),!d&&h.cmp(this.n)>=0?h.sub(this.n):h},c.prototype.sign=function(h,d,p,m){typeof p=="object"&&(m=p,p=null),m||(m={}),d=this.keyFromPrivate(d,p),h=this._truncateToN(new n(h,16));for(var v=this.n.byteLength(),b=d.getPrivate().toArray("be",v),g=h.toArray("be",v),y=new a({hash:this.hash,entropy:b,nonce:g,pers:m.pers,persEnc:m.persEnc||"utf8"}),k=this.n.sub(new n(1)),S=0;;S++){var C=m.k?m.k(S):new n(y.generate(this.n.byteLength()));if(!((C=this._truncateToN(C,!0)).cmpn(1)<=0||C.cmp(k)>=0)){var O=this.g.mul(C);if(!O.isInfinity()){var L=O.getX(),j=L.umod(this.n);if(j.cmpn(0)!==0){var U=C.invm(this.n).mul(j.mul(d.getPrivate()).iadd(h));if((U=U.umod(this.n)).cmpn(0)!==0){var z=(O.getY().isOdd()?1:0)|(L.cmp(j)!==0?2:0);return m.canonical&&U.cmp(this.nh)>0&&(U=this.n.sub(U),z^=1),new f({r:j,s:U,recoveryParam:z})}}}}}},c.prototype.verify=function(h,d,p,m){h=this._truncateToN(new n(h,16)),p=this.keyFromPublic(p,m);var v=(d=new f(d,"hex")).r,b=d.s;if(v.cmpn(1)<0||v.cmp(this.n)>=0||b.cmpn(1)<0||b.cmp(this.n)>=0)return!1;var g,y=b.invm(this.n),k=y.mul(h).umod(this.n),S=y.mul(v).umod(this.n);return this.curve._maxwellTrick?!(g=this.g.jmulAdd(k,p.getPublic(),S)).isInfinity()&&g.eqXToP(v):!(g=this.g.mulAdd(k,p.getPublic(),S)).isInfinity()&&g.getX().umod(this.n).cmp(v)===0},c.prototype.recoverPubKey=function(h,d,p,m){u((3&p)===p,"The recovery param is more than two bits"),d=new f(d,m);var v=this.n,b=new n(h),g=d.r,y=d.s,k=1&p,S=p>>1;if(g.cmp(this.curve.p.umod(this.curve.n))>=0&&S)throw new Error("Unable to find sencond key candinate");g=S?this.curve.pointFromX(g.add(this.curve.n),k):this.curve.pointFromX(g,k);var C=d.r.invm(v),O=v.sub(b).mul(C).umod(v),L=y.mul(C).umod(v);return this.g.mulAdd(O,g,L)},c.prototype.getKeyRecoveryParam=function(h,d,p,m){if((d=new f(d,m)).recoveryParam!==null)return d.recoveryParam;for(var v=0;v<4;v++){var b;try{b=this.recoverPubKey(h,d,v)}catch{continue}if(b.eq(p))return v}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(t,r,e){var n=t("bn.js"),a=t("../utils").assert;function o(s,i){this.ec=s,this.priv=null,this.pub=null,i.priv&&this._importPrivate(i.priv,i.privEnc),i.pub&&this._importPublic(i.pub,i.pubEnc)}r.exports=o,o.fromPublic=function(s,i,u){return i instanceof o?i:new o(s,{pub:i,pubEnc:u})},o.fromPrivate=function(s,i,u){return i instanceof o?i:new o(s,{priv:i,privEnc:u})},o.prototype.validate=function(){var s=this.getPublic();return s.isInfinity()?{result:!1,reason:"Invalid public key"}:s.validate()?s.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(s,i){return typeof s=="string"&&(i=s,s=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),i?this.pub.encode(i,s):this.pub},o.prototype.getPrivate=function(s){return s==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(s,i){this.priv=new n(s,i||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(s,i){if(s.x||s.y)return this.ec.curve.type==="mont"?a(s.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||a(s.x&&s.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(s.x,s.y));this.pub=this.ec.curve.decodePoint(s,i)},o.prototype.derive=function(s){return s.validate()||a(s.validate(),"public point not validated"),s.mul(this.priv).getX()},o.prototype.sign=function(s,i,u){return this.ec.sign(s,this,i,u)},o.prototype.verify=function(s,i){return this.ec.verify(s,i,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(t,r,e){var n=t("bn.js"),a=t("../utils"),o=a.assert;function s(c,h){if(c instanceof s)return c;this._importDER(c,h)||(o(c.r&&c.s,"Signature without r or s"),this.r=new n(c.r,16),this.s=new n(c.s,16),c.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=c.recoveryParam)}function i(){this.place=0}function u(c,h){var d=c[h.place++];if(!(128&d))return d;var p=15&d;if(p===0||p>4)return!1;for(var m=0,v=0,b=h.place;v<p;v++,b++)m<<=8,m|=c[b],m>>>=0;return!(m<=127)&&(h.place=b,m)}function l(c){for(var h=0,d=c.length-1;!c[h]&&!(128&c[h+1])&&h<d;)h++;return h===0?c:c.slice(h)}function f(c,h){if(h<128)c.push(h);else{var d=1+(Math.log(h)/Math.LN2>>>3);for(c.push(128|d);--d;)c.push(h>>>(d<<3)&255);c.push(h)}}r.exports=s,s.prototype._importDER=function(c,h){c=a.toArray(c,h);var d=new i;if(c[d.place++]!==48)return!1;var p=u(c,d);if(p===!1||p+d.place!==c.length||c[d.place++]!==2)return!1;var m=u(c,d);if(m===!1)return!1;var v=c.slice(d.place,m+d.place);if(d.place+=m,c[d.place++]!==2)return!1;var b=u(c,d);if(b===!1||c.length!==b+d.place)return!1;var g=c.slice(d.place,b+d.place);if(v[0]===0){if(!(128&v[1]))return!1;v=v.slice(1)}if(g[0]===0){if(!(128&g[1]))return!1;g=g.slice(1)}return this.r=new n(v),this.s=new n(g),this.recoveryParam=null,!0},s.prototype.toDER=function(c){var h=this.r.toArray(),d=this.s.toArray();for(128&h[0]&&(h=[0].concat(h)),128&d[0]&&(d=[0].concat(d)),h=l(h),d=l(d);!(d[0]||128&d[1]);)d=d.slice(1);var p=[2];f(p,h.length),(p=p.concat(h)).push(2),f(p,d.length);var m=p.concat(d),v=[48];return f(v,m.length),v=v.concat(m),a.encode(v,c)}},{"../utils":419,"bn.js":420}],415:[function(t,r,e){var n=t("hash.js"),a=t("../curves"),o=t("../utils"),s=o.assert,i=o.parseBytes,u=t("./key"),l=t("./signature");function f(c){if(s(c==="ed25519","only tested with ed25519 so far"),!(this instanceof f))return new f(c);c=a[c].curve,this.curve=c,this.g=c.g,this.g.precompute(c.n.bitLength()+1),this.pointClass=c.point().constructor,this.encodingLength=Math.ceil(c.n.bitLength()/8),this.hash=n.sha512}r.exports=f,f.prototype.sign=function(c,h){c=i(c);var d=this.keyFromSecret(h),p=this.hashInt(d.messagePrefix(),c),m=this.g.mul(p),v=this.encodePoint(m),b=this.hashInt(v,d.pubBytes(),c).mul(d.priv()),g=p.add(b).umod(this.curve.n);return this.makeSignature({R:m,S:g,Rencoded:v})},f.prototype.verify=function(c,h,d){c=i(c),h=this.makeSignature(h);var p=this.keyFromPublic(d),m=this.hashInt(h.Rencoded(),p.pubBytes(),c),v=this.g.mul(h.S());return h.R().add(p.pub().mul(m)).eq(v)},f.prototype.hashInt=function(){for(var c=this.hash(),h=0;h<arguments.length;h++)c.update(arguments[h]);return o.intFromLE(c.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(c){return u.fromPublic(this,c)},f.prototype.keyFromSecret=function(c){return u.fromSecret(this,c)},f.prototype.makeSignature=function(c){return c instanceof l?c:new l(this,c)},f.prototype.encodePoint=function(c){var h=c.getY().toArray("le",this.encodingLength);return h[this.encodingLength-1]|=c.getX().isOdd()?128:0,h},f.prototype.decodePoint=function(c){var h=(c=o.parseBytes(c)).length-1,d=c.slice(0,h).concat(-129&c[h]),p=!!(128&c[h]),m=o.intFromLE(d);return this.curve.pointFromY(m,p)},f.prototype.encodeInt=function(c){return c.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(c){return o.intFromLE(c)},f.prototype.isPoint=function(c){return c instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(t,r,e){var n=t("../utils"),a=n.assert,o=n.parseBytes,s=n.cachedProperty;function i(u,l){this.eddsa=u,this._secret=o(l.secret),u.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=o(l.pub)}i.fromPublic=function(u,l){return l instanceof i?l:new i(u,{pub:l})},i.fromSecret=function(u,l){return l instanceof i?l:new i(u,{secret:l})},i.prototype.secret=function(){return this._secret},s(i,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(i,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(i,"privBytes",function(){var u=this.eddsa,l=this.hash(),f=u.encodingLength-1,c=l.slice(0,u.encodingLength);return c[0]&=248,c[f]&=127,c[f]|=64,c}),s(i,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(i,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(i,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),i.prototype.sign=function(u){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)},i.prototype.verify=function(u,l){return this.eddsa.verify(u,l,this)},i.prototype.getSecret=function(u){return a(this._secret,"KeyPair is public only"),n.encode(this.secret(),u)},i.prototype.getPublic=function(u){return n.encode(this.pubBytes(),u)},r.exports=i},{"../utils":419}],417:[function(t,r,e){var n=t("bn.js"),a=t("../utils"),o=a.assert,s=a.cachedProperty,i=a.parseBytes;function u(l,f){this.eddsa=l,typeof f!="object"&&(f=i(f)),Array.isArray(f)&&(f={R:f.slice(0,l.encodingLength),S:f.slice(l.encodingLength)}),o(f.R&&f.S,"Signature without R or S"),l.isPoint(f.R)&&(this._R=f.R),f.S instanceof n&&(this._S=f.S),this._Rencoded=Array.isArray(f.R)?f.R:f.Rencoded,this._Sencoded=Array.isArray(f.S)?f.S:f.Sencoded}s(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},r.exports=u},{"../utils":419,"bn.js":420}],418:[function(t,r,e){r.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(t,r,e){var n=e,a=t("bn.js"),o=t("minimalistic-assert"),s=t("minimalistic-crypto-utils");function i(h,d,p){var m=new Array(Math.max(h.bitLength(),p)+1);m.fill(0);for(var v=1<<d+1,b=h.clone(),g=0;g<m.length;g++){var y,k=b.andln(v-1);b.isOdd()?(y=k>(v>>1)-1?(v>>1)-k:k,b.isubn(y)):y=0,m[g]=y,b.iushrn(1)}return m}function u(h,d){var p=[[],[]];h=h.clone(),d=d.clone();for(var m,v=0,b=0;h.cmpn(-v)>0||d.cmpn(-b)>0;){var g,y,k=h.andln(3)+v&3,S=d.andln(3)+b&3;k===3&&(k=-1),S===3&&(S=-1),g=1&k?(m=h.andln(7)+v&7)!=3&&m!==5||S!==2?k:-k:0,p[0].push(g),y=1&S?(m=d.andln(7)+b&7)!=3&&m!==5||k!==2?S:-S:0,p[1].push(y),2*v===g+1&&(v=1-v),2*b===y+1&&(b=1-b),h.iushrn(1),d.iushrn(1)}return p}function l(h,d,p){var m="_"+d;h.prototype[d]=function(){return this[m]!==void 0?this[m]:this[m]=p.call(this)}}function f(h){return typeof h=="string"?n.toArray(h,"hex"):h}function c(h){return new a(h,"hex","le")}n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=i,n.getJSF=u,n.cachedProperty=l,n.parseBytes=f,n.intFromLE=c},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],421:[function(t,r,e){r.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(t,r,e){var n=Object.create||L,a=Object.keys||j,o=Function.prototype.bind||U;function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}r.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var i,u=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),i=l.x===0}catch{i=!1}function f(z){return z._maxListeners===void 0?s.defaultMaxListeners:z._maxListeners}function c(z,Y,A){if(Y)z.call(A);else for(var I=z.length,_=C(z,I),x=0;x<I;++x)_[x].call(A)}function h(z,Y,A,I){if(Y)z.call(A,I);else for(var _=z.length,x=C(z,_),T=0;T<_;++T)x[T].call(A,I)}function d(z,Y,A,I,_){if(Y)z.call(A,I,_);else for(var x=z.length,T=C(z,x),E=0;E<x;++E)T[E].call(A,I,_)}function p(z,Y,A,I,_,x){if(Y)z.call(A,I,_,x);else for(var T=z.length,E=C(z,T),M=0;M<T;++M)E[M].call(A,I,_,x)}function m(z,Y,A,I){if(Y)z.apply(A,I);else for(var _=z.length,x=C(z,_),T=0;T<_;++T)x[T].apply(A,I)}function v(z,Y,A,I){var _,x,T;if(typeof A!="function")throw new TypeError('"listener" argument must be a function');if((x=z._events)?(x.newListener&&(z.emit("newListener",Y,A.listener?A.listener:A),x=z._events),T=x[Y]):(x=z._events=n(null),z._eventsCount=0),T){if(typeof T=="function"?T=x[Y]=I?[A,T]:[T,A]:I?T.unshift(A):T.push(A),!T.warned&&(_=f(z))&&_>0&&T.length>_){T.warned=!0;var E=new Error("Possible EventEmitter memory leak detected. "+T.length+' "'+String(Y)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');E.name="MaxListenersExceededWarning",E.emitter=z,E.type=Y,E.count=T.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",E.name,E.message)}}else T=x[Y]=A,++z._eventsCount;return z}function b(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var z=new Array(arguments.length),Y=0;Y<z.length;++Y)z[Y]=arguments[Y];this.listener.apply(this.target,z)}}function g(z,Y,A){var I={fired:!1,wrapFn:void 0,target:z,type:Y,listener:A},_=o.call(b,I);return _.listener=A,I.wrapFn=_,_}function y(z,Y,A){var I=z._events;if(!I)return[];var _=I[Y];return _?typeof _=="function"?A?[_.listener||_]:[_]:A?O(_):C(_,_.length):[]}function k(z){var Y=this._events;if(Y){var A=Y[z];if(typeof A=="function")return 1;if(A)return A.length}return 0}function S(z,Y){for(var A=Y,I=A+1,_=z.length;I<_;A+=1,I+=1)z[A]=z[I];z.pop()}function C(z,Y){for(var A=new Array(Y),I=0;I<Y;++I)A[I]=z[I];return A}function O(z){for(var Y=new Array(z.length),A=0;A<Y.length;++A)Y[A]=z[A].listener||z[A];return Y}function L(z){var Y=function(){};return Y.prototype=z,new Y}function j(z){for(var Y in z)Object.prototype.hasOwnProperty.call(z,Y);return Y}function U(z){var Y=this;return function(){return Y.apply(z,arguments)}}i?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(z){if(typeof z!="number"||z<0||z!=z)throw new TypeError('"defaultMaxListeners" must be a positive number');u=z}}):s.defaultMaxListeners=u,s.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||isNaN(z))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=z,this},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(z){var Y,A,I,_,x,T,E=z==="error";if(T=this._events)E=E&&T.error==null;else if(!E)return!1;if(E){if(arguments.length>1&&(Y=arguments[1]),Y instanceof Error)throw Y;var M=new Error('Unhandled "error" event. ('+Y+")");throw M.context=Y,M}if(!(A=T[z]))return!1;var F=typeof A=="function";switch(I=arguments.length){case 1:c(A,F,this);break;case 2:h(A,F,this,arguments[1]);break;case 3:d(A,F,this,arguments[1],arguments[2]);break;case 4:p(A,F,this,arguments[1],arguments[2],arguments[3]);break;default:for(_=new Array(I-1),x=1;x<I;x++)_[x-1]=arguments[x];m(A,F,this,_)}return!0},s.prototype.addListener=function(z,Y){return v(this,z,Y,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(z,Y){return v(this,z,Y,!0)},s.prototype.once=function(z,Y){if(typeof Y!="function")throw new TypeError('"listener" argument must be a function');return this.on(z,g(this,z,Y)),this},s.prototype.prependOnceListener=function(z,Y){if(typeof Y!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(z,g(this,z,Y)),this},s.prototype.removeListener=function(z,Y){var A,I,_,x,T;if(typeof Y!="function")throw new TypeError('"listener" argument must be a function');if(!(I=this._events))return this;if(!(A=I[z]))return this;if(A===Y||A.listener===Y)--this._eventsCount==0?this._events=n(null):(delete I[z],I.removeListener&&this.emit("removeListener",z,A.listener||Y));else if(typeof A!="function"){for(_=-1,x=A.length-1;x>=0;x--)if(A[x]===Y||A[x].listener===Y){T=A[x].listener,_=x;break}if(_<0)return this;_===0?A.shift():S(A,_),A.length===1&&(I[z]=A[0]),I.removeListener&&this.emit("removeListener",z,T||Y)}return this},s.prototype.removeAllListeners=function(z){var Y,A,I;if(!(A=this._events))return this;if(!A.removeListener)return arguments.length===0?(this._events=n(null),this._eventsCount=0):A[z]&&(--this._eventsCount==0?this._events=n(null):delete A[z]),this;if(arguments.length===0){var _,x=a(A);for(I=0;I<x.length;++I)(_=x[I])!=="removeListener"&&this.removeAllListeners(_);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if(typeof(Y=A[z])=="function")this.removeListener(z,Y);else if(Y)for(I=Y.length-1;I>=0;I--)this.removeListener(z,Y[I]);return this},s.prototype.listeners=function(z){return y(this,z,!0)},s.prototype.rawListeners=function(z){return y(this,z,!1)},s.listenerCount=function(z,Y){return typeof z.listenerCount=="function"?z.listenerCount(Y):k.call(z,Y)},s.prototype.listenerCount=k,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("md5.js");function o(s,i,u,l){if(n.isBuffer(s)||(s=n.from(s,"binary")),i&&(n.isBuffer(i)||(i=n.from(i,"binary")),i.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var f=u/8,c=n.alloc(f),h=n.alloc(l||0),d=n.alloc(0);f>0||l>0;){var p=new a;p.update(d),p.update(s),i&&p.update(i),d=p.digest();var m=0;if(f>0){var v=c.length-f;m=Math.min(f,d.length),d.copy(c,v,0,m),f-=m}if(m<d.length&&l>0){var b=h.length-l,g=Math.min(l,d.length-m);d.copy(h,b,m,m+g),l-=g}}return d.fill(0),{key:c,iv:h}}r.exports=o},{"md5.js":450,"safe-buffer":494}],424:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CsvParserStream=e.ParserOptions=e.parseFile=e.parseStream=e.parseString=e.parse=e.FormatterOptions=e.CsvFormatterStream=e.writeToPath=e.writeToString=e.writeToBuffer=e.writeToStream=e.write=e.format=void 0;var n=t("@fast-csv/format");Object.defineProperty(e,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(e,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(e,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(e,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(e,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(e,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(e,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(e,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var a=t("@fast-csv/parse");Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(e,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(e,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(e,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(e,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(e,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(t,r,e){var n=t("safe-buffer").Buffer,a=t("readable-stream").Transform;function o(i,u){if(!n.isBuffer(i)&&typeof i!="string")throw new TypeError(u+" must be a string or a buffer")}function s(i){a.call(this),this._block=n.allocUnsafe(i),this._blockSize=i,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(s,a),s.prototype._transform=function(i,u,l){var f=null;try{this.update(i,u)}catch(c){f=c}l(f)},s.prototype._flush=function(i){var u=null;try{this.push(this.digest())}catch(l){u=l}i(u)},s.prototype.update=function(i,u){if(o(i,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(i)||(i=n.from(i,u));for(var l=this._block,f=0;this._blockOffset+i.length-f>=this._blockSize;){for(var c=this._blockOffset;c<this._blockSize;)l[c++]=i[f++];this._update(),this._blockOffset=0}for(;f<i.length;)l[this._blockOffset++]=i[f++];for(var h=0,d=8*i.length;d>0;++h)this._length[h]+=d,(d=this._length[h]/4294967296|0)>0&&(this._length[h]-=4294967296*d);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();i!==void 0&&(u=u.toString(i)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return u},s.prototype._digest=function(){throw new Error("_digest is not implemented")},r.exports=s},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(t,r,e){var n=e;n.utils=t("./hash/utils"),n.common=t("./hash/common"),n.sha=t("./hash/sha"),n.ripemd=t("./hash/ripemd"),n.hmac=t("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(t,r,e){var n=t("./utils"),a=t("minimalistic-assert");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(s,i){if(s=n.toArray(s,i),this.pending?this.pending=this.pending.concat(s):this.pending=s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var u=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-u,s.length),this.pending.length===0&&(this.pending=null),s=n.join32(s,0,s.length-u,this.endian);for(var l=0;l<s.length;l+=this._delta32)this._update(s,l,l+this._delta32)}return this},o.prototype.digest=function(s){return this.update(this._pad()),a(this.pending===null),this._digest(s)},o.prototype._pad=function(){var s=this.pendingTotal,i=this._delta8,u=i-(s+this.padLength)%i,l=new Array(u+this.padLength);l[0]=128;for(var f=1;f<u;f++)l[f]=0;if(s<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)l[f++]=0;l[f++]=0,l[f++]=0,l[f++]=0,l[f++]=0,l[f++]=s>>>24&255,l[f++]=s>>>16&255,l[f++]=s>>>8&255,l[f++]=255&s}else for(l[f++]=255&s,l[f++]=s>>>8&255,l[f++]=s>>>16&255,l[f++]=s>>>24&255,l[f++]=0,l[f++]=0,l[f++]=0,l[f++]=0,c=8;c<this.padLength;c++)l[f++]=0;return l}},{"./utils":437,"minimalistic-assert":453}],428:[function(t,r,e){var n=t("./utils"),a=t("minimalistic-assert");function o(s,i,u){if(!(this instanceof o))return new o(s,i,u);this.Hash=s,this.blockSize=s.blockSize/8,this.outSize=s.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(i,u))}r.exports=o,o.prototype._init=function(s){s.length>this.blockSize&&(s=new this.Hash().update(s).digest()),a(s.length<=this.blockSize);for(var i=s.length;i<this.blockSize;i++)s.push(0);for(i=0;i<s.length;i++)s[i]^=54;for(this.inner=new this.Hash().update(s),i=0;i<s.length;i++)s[i]^=106;this.outer=new this.Hash().update(s)},o.prototype.update=function(s,i){return this.inner.update(s,i),this},o.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},{"./utils":437,"minimalistic-assert":453}],429:[function(t,r,e){var n=t("./utils"),a=t("./common"),o=n.rotl32,s=n.sum32,i=n.sum32_3,u=n.sum32_4,l=a.BlockHash;function f(){if(!(this instanceof f))return new f;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function c(g,y,k,S){return g<=15?y^k^S:g<=31?y&k|~y&S:g<=47?(y|~k)^S:g<=63?y&S|k&~S:y^(k|~S)}function h(g){return g<=15?0:g<=31?1518500249:g<=47?1859775393:g<=63?2400959708:2840853838}function d(g){return g<=15?1352829926:g<=31?1548603684:g<=47?1836072691:g<=63?2053994217:0}n.inherits(f,l),e.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(g,y){for(var k=this.h[0],S=this.h[1],C=this.h[2],O=this.h[3],L=this.h[4],j=k,U=S,z=C,Y=O,A=L,I=0;I<80;I++){var _=s(o(u(k,c(I,S,C,O),g[p[I]+y],h(I)),v[I]),L);k=L,L=O,O=o(C,10),C=S,S=_,_=s(o(u(j,c(79-I,U,z,Y),g[m[I]+y],d(I)),b[I]),A),j=A,A=Y,Y=o(z,10),z=U,U=_}_=i(this.h[1],C,Y),this.h[1]=i(this.h[2],O,A),this.h[2]=i(this.h[3],L,j),this.h[3]=i(this.h[4],k,U),this.h[4]=i(this.h[0],S,z),this.h[0]=_},f.prototype._digest=function(g){return g==="hex"?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],b=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(t,r,e){e.sha1=t("./sha/1"),e.sha224=t("./sha/224"),e.sha256=t("./sha/256"),e.sha384=t("./sha/384"),e.sha512=t("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(t,r,e){var n=t("../utils"),a=t("../common"),o=t("./common"),s=n.rotl32,i=n.sum32,u=n.sum32_5,l=o.ft_1,f=a.BlockHash,c=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,f),r.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(d,p){for(var m=this.W,v=0;v<16;v++)m[v]=d[p+v];for(;v<m.length;v++)m[v]=s(m[v-3]^m[v-8]^m[v-14]^m[v-16],1);var b=this.h[0],g=this.h[1],y=this.h[2],k=this.h[3],S=this.h[4];for(v=0;v<m.length;v++){var C=~~(v/20),O=u(s(b,5),l(C,g,y,k),S,m[v],c[C]);S=k,k=y,y=s(g,30),g=b,b=O}this.h[0]=i(this.h[0],b),this.h[1]=i(this.h[1],g),this.h[2]=i(this.h[2],y),this.h[3]=i(this.h[3],k),this.h[4]=i(this.h[4],S)},h.prototype._digest=function(d){return d==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(t,r,e){var n=t("../utils"),a=t("./256");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,a),r.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(s){return s==="hex"?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(t,r,e){var n=t("../utils"),a=t("../common"),o=t("./common"),s=t("minimalistic-assert"),i=n.sum32,u=n.sum32_4,l=n.sum32_5,f=o.ch32,c=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=a.BlockHash,b=[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];function g(){if(!(this instanceof g))return new g;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(g,v),r.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(y,k){for(var S=this.W,C=0;C<16;C++)S[C]=y[k+C];for(;C<S.length;C++)S[C]=u(m(S[C-2]),S[C-7],p(S[C-15]),S[C-16]);var O=this.h[0],L=this.h[1],j=this.h[2],U=this.h[3],z=this.h[4],Y=this.h[5],A=this.h[6],I=this.h[7];for(s(this.k.length===S.length),C=0;C<S.length;C++){var _=l(I,d(z),f(z,Y,A),this.k[C],S[C]),x=i(h(O),c(O,L,j));I=A,A=Y,Y=z,z=i(U,_),U=j,j=L,L=O,O=i(_,x)}this.h[0]=i(this.h[0],O),this.h[1]=i(this.h[1],L),this.h[2]=i(this.h[2],j),this.h[3]=i(this.h[3],U),this.h[4]=i(this.h[4],z),this.h[5]=i(this.h[5],Y),this.h[6]=i(this.h[6],A),this.h[7]=i(this.h[7],I)},g.prototype._digest=function(y){return y==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(t,r,e){var n=t("../utils"),a=t("./512");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,a),r.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(s){return s==="hex"?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(t,r,e){var n=t("../utils"),a=t("../common"),o=t("minimalistic-assert"),s=n.rotr64_hi,i=n.rotr64_lo,u=n.shr64_hi,l=n.shr64_lo,f=n.sum64,c=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,v=n.sum64_5_lo,b=a.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function k(x,T,E,M,F){var P=x&E^~x&F;return P<0&&(P+=4294967296),P}function S(x,T,E,M,F,P){var W=T&M^~T&P;return W<0&&(W+=4294967296),W}function C(x,T,E,M,F){var P=x&E^x&F^E&F;return P<0&&(P+=4294967296),P}function O(x,T,E,M,F,P){var W=T&M^T&P^M&P;return W<0&&(W+=4294967296),W}function L(x,T){var E=s(x,T,28)^s(T,x,2)^s(T,x,7);return E<0&&(E+=4294967296),E}function j(x,T){var E=i(x,T,28)^i(T,x,2)^i(T,x,7);return E<0&&(E+=4294967296),E}function U(x,T){var E=s(x,T,14)^s(x,T,18)^s(T,x,9);return E<0&&(E+=4294967296),E}function z(x,T){var E=i(x,T,14)^i(x,T,18)^i(T,x,9);return E<0&&(E+=4294967296),E}function Y(x,T){var E=s(x,T,1)^s(x,T,8)^u(x,T,7);return E<0&&(E+=4294967296),E}function A(x,T){var E=i(x,T,1)^i(x,T,8)^l(x,T,7);return E<0&&(E+=4294967296),E}function I(x,T){var E=s(x,T,19)^s(T,x,29)^u(x,T,6);return E<0&&(E+=4294967296),E}function _(x,T){var E=i(x,T,19)^i(T,x,29)^l(x,T,6);return E<0&&(E+=4294967296),E}n.inherits(y,b),r.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(x,T){for(var E=this.W,M=0;M<32;M++)E[M]=x[T+M];for(;M<E.length;M+=2){var F=I(E[M-4],E[M-3]),P=_(E[M-4],E[M-3]),W=E[M-14],N=E[M-13],q=Y(E[M-30],E[M-29]),nt=A(E[M-30],E[M-29]),J=E[M-32],St=E[M-31];E[M]=d(F,P,W,N,q,nt,J,St),E[M+1]=p(F,P,W,N,q,nt,J,St)}},y.prototype._update=function(x,T){this._prepareBlock(x,T);var E=this.W,M=this.h[0],F=this.h[1],P=this.h[2],W=this.h[3],N=this.h[4],q=this.h[5],nt=this.h[6],J=this.h[7],St=this.h[8],kt=this.h[9],Mt=this.h[10],at=this.h[11],K=this.h[12],it=this.h[13],st=this.h[14],Nt=this.h[15];o(this.k.length===E.length);for(var rt=0;rt<E.length;rt+=2){var mt=st,Xt=Nt,G=U(St,kt),tt=z(St,kt),dt=k(St,kt,Mt,at,K),Dt=S(St,kt,Mt,at,K,it),re=this.k[rt],X=this.k[rt+1],Gt=E[rt],Jt=E[rt+1],vt=m(mt,Xt,G,tt,dt,Dt,re,X,Gt,Jt),gt=v(mt,Xt,G,tt,dt,Dt,re,X,Gt,Jt);mt=L(M,F),Xt=j(M,F),G=C(M,F,P,W,N),tt=O(M,F,P,W,N,q);var Tt=c(mt,Xt,G,tt),ie=h(mt,Xt,G,tt);st=K,Nt=it,K=Mt,it=at,Mt=St,at=kt,St=c(nt,J,vt,gt),kt=h(J,J,vt,gt),nt=N,J=q,N=P,q=W,P=M,W=F,M=c(vt,gt,Tt,ie),F=h(vt,gt,Tt,ie)}f(this.h,0,M,F),f(this.h,2,P,W),f(this.h,4,N,q),f(this.h,6,nt,J),f(this.h,8,St,kt),f(this.h,10,Mt,at),f(this.h,12,K,it),f(this.h,14,st,Nt)},y.prototype._digest=function(x){return x==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(t,r,e){var n=t("../utils").rotr32;function a(h,d,p,m){return h===0?o(d,p,m):h===1||h===3?i(d,p,m):h===2?s(d,p,m):void 0}function o(h,d,p){return h&d^~h&p}function s(h,d,p){return h&d^h&p^d&p}function i(h,d,p){return h^d^p}function u(h){return n(h,2)^n(h,13)^n(h,22)}function l(h){return n(h,6)^n(h,11)^n(h,25)}function f(h){return n(h,7)^n(h,18)^h>>>3}function c(h){return n(h,17)^n(h,19)^h>>>10}e.ft_1=a,e.ch32=o,e.maj32=s,e.p32=i,e.s0_256=u,e.s1_256=l,e.g0_256=f,e.g1_256=c},{"../utils":437}],437:[function(t,r,e){var n=t("minimalistic-assert"),a=t("inherits");function o(_,x){return(64512&_.charCodeAt(x))==55296&&!(x<0||x+1>=_.length)&&(64512&_.charCodeAt(x+1))==56320}function s(_,x){if(Array.isArray(_))return _.slice();if(!_)return[];var T=[];if(typeof _=="string")if(x){if(x==="hex")for((_=_.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(_="0"+_),M=0;M<_.length;M+=2)T.push(parseInt(_[M]+_[M+1],16))}else for(var E=0,M=0;M<_.length;M++){var F=_.charCodeAt(M);F<128?T[E++]=F:F<2048?(T[E++]=F>>6|192,T[E++]=63&F|128):o(_,M)?(F=65536+((1023&F)<<10)+(1023&_.charCodeAt(++M)),T[E++]=F>>18|240,T[E++]=F>>12&63|128,T[E++]=F>>6&63|128,T[E++]=63&F|128):(T[E++]=F>>12|224,T[E++]=F>>6&63|128,T[E++]=63&F|128)}else for(M=0;M<_.length;M++)T[M]=0|_[M];return T}function i(_){for(var x="",T=0;T<_.length;T++)x+=f(_[T].toString(16));return x}function u(_){return(_>>>24|_>>>8&65280|_<<8&16711680|(255&_)<<24)>>>0}function l(_,x){for(var T="",E=0;E<_.length;E++){var M=_[E];x==="little"&&(M=u(M)),T+=c(M.toString(16))}return T}function f(_){return _.length===1?"0"+_:_}function c(_){return _.length===7?"0"+_:_.length===6?"00"+_:_.length===5?"000"+_:_.length===4?"0000"+_:_.length===3?"00000"+_:_.length===2?"000000"+_:_.length===1?"0000000"+_:_}function h(_,x,T,E){var M=T-x;n(M%4==0);for(var F=new Array(M/4),P=0,W=x;P<F.length;P++,W+=4){var N;N=E==="big"?_[W]<<24|_[W+1]<<16|_[W+2]<<8|_[W+3]:_[W+3]<<24|_[W+2]<<16|_[W+1]<<8|_[W],F[P]=N>>>0}return F}function d(_,x){for(var T=new Array(4*_.length),E=0,M=0;E<_.length;E++,M+=4){var F=_[E];x==="big"?(T[M]=F>>>24,T[M+1]=F>>>16&255,T[M+2]=F>>>8&255,T[M+3]=255&F):(T[M+3]=F>>>24,T[M+2]=F>>>16&255,T[M+1]=F>>>8&255,T[M]=255&F)}return T}function p(_,x){return _>>>x|_<<32-x}function m(_,x){return _<<x|_>>>32-x}function v(_,x){return _+x>>>0}function b(_,x,T){return _+x+T>>>0}function g(_,x,T,E){return _+x+T+E>>>0}function y(_,x,T,E,M){return _+x+T+E+M>>>0}function k(_,x,T,E){var M=_[x],F=E+_[x+1]>>>0,P=(F<E?1:0)+T+M;_[x]=P>>>0,_[x+1]=F}function S(_,x,T,E){return(x+E>>>0<x?1:0)+_+T>>>0}function C(_,x,T,E){return x+E>>>0}function O(_,x,T,E,M,F,P,W){var N=0,q=x;return N+=(q=q+E>>>0)<x?1:0,N+=(q=q+F>>>0)<F?1:0,_+T+M+P+(N+=(q=q+W>>>0)<W?1:0)>>>0}function L(_,x,T,E,M,F,P,W){return x+E+F+W>>>0}function j(_,x,T,E,M,F,P,W,N,q){var nt=0,J=x;return nt+=(J=J+E>>>0)<x?1:0,nt+=(J=J+F>>>0)<F?1:0,nt+=(J=J+W>>>0)<W?1:0,_+T+M+P+N+(nt+=(J=J+q>>>0)<q?1:0)>>>0}function U(_,x,T,E,M,F,P,W,N,q){return x+E+F+W+q>>>0}function z(_,x,T){return(x<<32-T|_>>>T)>>>0}function Y(_,x,T){return(_<<32-T|x>>>T)>>>0}function A(_,x,T){return _>>>T}function I(_,x,T){return(_<<32-T|x>>>T)>>>0}e.inherits=a,e.toArray=s,e.toHex=i,e.htonl=u,e.toHex32=l,e.zero2=f,e.zero8=c,e.join32=h,e.split32=d,e.rotr32=p,e.rotl32=m,e.sum32=v,e.sum32_3=b,e.sum32_4=g,e.sum32_5=y,e.sum64=k,e.sum64_hi=S,e.sum64_lo=C,e.sum64_4_hi=O,e.sum64_4_lo=L,e.sum64_5_hi=j,e.sum64_5_lo=U,e.rotr64_hi=z,e.rotr64_lo=Y,e.shr64_hi=A,e.shr64_lo=I},{inherits:440,"minimalistic-assert":453}],438:[function(t,r,e){var n=t("hash.js"),a=t("minimalistic-crypto-utils"),o=t("minimalistic-assert");function s(i){if(!(this instanceof s))return new s(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var u=a.toArray(i.entropy,i.entropyEnc||"hex"),l=a.toArray(i.nonce,i.nonceEnc||"hex"),f=a.toArray(i.pers,i.persEnc||"hex");o(u.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(u,l,f)}r.exports=s,s.prototype._init=function(i,u,l){var f=i.concat(u).concat(l);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var c=0;c<this.V.length;c++)this.K[c]=0,this.V[c]=1;this._update(f),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(i){var u=this._hmac().update(this.V).update([0]);i&&(u=u.update(i)),this.K=u.digest(),this.V=this._hmac().update(this.V).digest(),i&&(this.K=this._hmac().update(this.V).update([1]).update(i).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(i,u,l,f){typeof u!="string"&&(f=l,l=u,u=null),i=a.toArray(i,u),l=a.toArray(l,f),o(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(i.concat(l||[])),this._reseed=1},s.prototype.generate=function(i,u,l,f){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof u!="string"&&(f=l,l=u,u=null),l&&(l=a.toArray(l,f||"hex"),this._update(l));for(var c=[];c.length<i;)this.V=this._hmac().update(this.V).digest(),c=c.concat(this.V);var h=c.slice(0,i);return this._update(l),this._reseed++,a.encode(h,u)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(t,r,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(n,a,o,s,i){var u,l,f=8*i-s-1,c=(1<<f)-1,h=c>>1,d=-7,p=o?i-1:0,m=o?-1:1,v=n[a+p];for(p+=m,u=v&(1<<-d)-1,v>>=-d,d+=f;d>0;u=256*u+n[a+p],p+=m,d-=8);for(l=u&(1<<-d)-1,u>>=-d,d+=s;d>0;l=256*l+n[a+p],p+=m,d-=8);if(u===0)u=1-h;else{if(u===c)return l?NaN:1/0*(v?-1:1);l+=Math.pow(2,s),u-=h}return(v?-1:1)*l*Math.pow(2,u-s)},e.write=function(n,a,o,s,i,u){var l,f,c,h=8*u-i-1,d=(1<<h)-1,p=d>>1,m=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=s?0:u-1,b=s?1:-1,g=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(f=isNaN(a)?1:0,l=d):(l=Math.floor(Math.log(a)/Math.LN2),a*(c=Math.pow(2,-l))<1&&(l--,c*=2),(a+=l+p>=1?m/c:m*Math.pow(2,1-p))*c>=2&&(l++,c/=2),l+p>=d?(f=0,l=d):l+p>=1?(f=(a*c-1)*Math.pow(2,i),l+=p):(f=a*Math.pow(2,p-1)*Math.pow(2,i),l=0));i>=8;n[o+v]=255&f,v+=b,f/=256,i-=8);for(l=l<<i|f,h+=i;h>0;n[o+v]=255&l,v+=b,l/=256,h-=8);n[o+v-b]|=128*g}},{}],440:[function(t,r,e){typeof Object.create=="function"?r.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(n,a){if(a){n.super_=a;var o=function(){};o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n}}},{}],441:[function(t,r,e){(function(n,a,o,s,i,u,l,f){(function(){/*! |
|
|
|
|
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files |
|
|
<http://stuartk.com/jszip> |
|
|
|
|
|
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> |
|
|
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. |
|
|
|
|
|
JSZip uses the library pako released under the MIT license : |
|
|
https://github.com/nodeca/pako/blob/main/LICENSE |
|
|
*/(function(c){typeof e=="object"&&r!==void 0?r.exports=c():(typeof window<"u"?window:a!==void 0?a:typeof self<"u"?self:this).JSZip=c()})(function(){return function c(h,d,p){function m(g,y){if(!d[g]){if(!h[g]){var k=typeof t=="function"&&t;if(!y&&k)return k(g,!0);if(v)return v(g,!0);var S=new Error("Cannot find module '"+g+"'");throw S.code="MODULE_NOT_FOUND",S}var C=d[g]={exports:{}};h[g][0].call(C.exports,function(O){return m(h[g][1][O]||O)},C,C.exports,c,h,d,p)}return d[g].exports}for(var v=typeof t=="function"&&t,b=0;b<p.length;b++)m(p[b]);return m}({1:[function(c,h,d){var p=c("./utils"),m=c("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(b){for(var g,y,k,S,C,O,L,j=[],U=0,z=b.length,Y=z,A=p.getTypeOf(b)!=="string";U<b.length;)Y=z-U,k=A?(g=b[U++],y=U<z?b[U++]:0,U<z?b[U++]:0):(g=b.charCodeAt(U++),y=U<z?b.charCodeAt(U++):0,U<z?b.charCodeAt(U++):0),S=g>>2,C=(3&g)<<4|y>>4,O=1<Y?(15&y)<<2|k>>6:64,L=2<Y?63&k:64,j.push(v.charAt(S)+v.charAt(C)+v.charAt(O)+v.charAt(L));return j.join("")},d.decode=function(b){var g,y,k,S,C,O,L=0,j=0,U="data:";if(b.substr(0,U.length)===U)throw new Error("Invalid base64 input, it looks like a data url.");var z,Y=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===v.charAt(64)&&Y--,b.charAt(b.length-2)===v.charAt(64)&&Y--,Y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(z=m.uint8array?new Uint8Array(0|Y):new Array(0|Y);L<b.length;)g=v.indexOf(b.charAt(L++))<<2|(S=v.indexOf(b.charAt(L++)))>>4,y=(15&S)<<4|(C=v.indexOf(b.charAt(L++)))>>2,k=(3&C)<<6|(O=v.indexOf(b.charAt(L++))),z[j++]=g,C!==64&&(z[j++]=y),O!==64&&(z[j++]=k);return z}},{"./support":30,"./utils":32}],2:[function(c,h,d){var p=c("./external"),m=c("./stream/DataWorker"),v=c("./stream/Crc32Probe"),b=c("./stream/DataLengthProbe");function g(y,k,S,C,O){this.compressedSize=y,this.uncompressedSize=k,this.crc32=S,this.compression=C,this.compressedContent=O}g.prototype={getContentWorker:function(){var y=new m(p.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),k=this;return y.on("end",function(){if(this.streamInfo.data_length!==k.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new m(p.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,k,S){return y.pipe(new v).pipe(new b("uncompressedSize")).pipe(k.compressWorker(S)).pipe(new b("compressedSize")).withStreamInfo("compression",k)},h.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(c,h,d){var p=c("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new p("STORE compression")},uncompressWorker:function(){return new p("STORE decompression")}},d.DEFLATE=c("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(c,h,d){var p=c("./utils"),m=function(){for(var v,b=[],g=0;g<256;g++){v=g;for(var y=0;y<8;y++)v=1&v?3988292384^v>>>1:v>>>1;b[g]=v}return b}();h.exports=function(v,b){return v!==void 0&&v.length?p.getTypeOf(v)!=="string"?function(g,y,k,S){var C=m,O=S+k;g^=-1;for(var L=S;L<O;L++)g=g>>>8^C[255&(g^y[L])];return~g}(0|b,v,v.length,0):function(g,y,k,S){var C=m,O=S+k;g^=-1;for(var L=S;L<O;L++)g=g>>>8^C[255&(g^y.charCodeAt(L))];return~g}(0|b,v,v.length,0):0}},{"./utils":32}],5:[function(c,h,d){d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(c,h,d){var p=null;p=typeof Promise<"u"?Promise:c("lie"),h.exports={Promise:p}},{lie:37}],7:[function(c,h,d){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",m=c("pako"),v=c("./utils"),b=c("./stream/GenericWorker"),g=p?"uint8array":"array";function y(k,S){b.call(this,"FlateWorker/"+k),this._pako=null,this._pakoAction=k,this._pakoOptions=S,this.meta={}}d.magic="\b\0",v.inherits(y,b),y.prototype.processChunk=function(k){this.meta=k.meta,this._pako===null&&this._createPako(),this._pako.push(v.transformTo(g,k.data),!1)},y.prototype.flush=function(){b.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var k=this;this._pako.onData=function(S){k.push({data:S,meta:k.meta})}},d.compressWorker=function(k){return new y("Deflate",k)},d.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(c,h,d){function p(C,O){var L,j="";for(L=0;L<O;L++)j+=String.fromCharCode(255&C),C>>>=8;return j}function m(C,O,L,j,U,z){var Y,A,I=C.file,_=C.compression,x=z!==g.utf8encode,T=v.transformTo("string",z(I.name)),E=v.transformTo("string",g.utf8encode(I.name)),M=I.comment,F=v.transformTo("string",z(M)),P=v.transformTo("string",g.utf8encode(M)),W=E.length!==I.name.length,N=P.length!==M.length,q="",nt="",J="",St=I.dir,kt=I.date,Mt={crc32:0,compressedSize:0,uncompressedSize:0};O&&!L||(Mt.crc32=C.crc32,Mt.compressedSize=C.compressedSize,Mt.uncompressedSize=C.uncompressedSize);var at=0;O&&(at|=8),x||!W&&!N||(at|=2048);var K,it,st,Nt=0,rt=0;St&&(Nt|=16),U==="UNIX"?(rt=798,Nt|=(K=I.unixPermissions,it=St,st=K,K||(st=it?16893:33204),(65535&st)<<16)):(rt=20,Nt|=function(Xt){return 63&(Xt||0)}(I.dosPermissions)),Y=kt.getUTCHours(),Y<<=6,Y|=kt.getUTCMinutes(),Y<<=5,Y|=kt.getUTCSeconds()/2,A=kt.getUTCFullYear()-1980,A<<=4,A|=kt.getUTCMonth()+1,A<<=5,A|=kt.getUTCDate(),W&&(nt=p(1,1)+p(y(T),4)+E,q+="up"+p(nt.length,2)+nt),N&&(J=p(1,1)+p(y(F),4)+P,q+="uc"+p(J.length,2)+J);var mt="";return mt+=` |
|
|
\0`,mt+=p(at,2),mt+=_.magic,mt+=p(Y,2),mt+=p(A,2),mt+=p(Mt.crc32,4),mt+=p(Mt.compressedSize,4),mt+=p(Mt.uncompressedSize,4),mt+=p(T.length,2),mt+=p(q.length,2),{fileRecord:k.LOCAL_FILE_HEADER+mt+T+q,dirRecord:k.CENTRAL_FILE_HEADER+p(rt,2)+mt+p(F.length,2)+"\0\0\0\0"+p(Nt,4)+p(j,4)+T+q+F}}var v=c("../utils"),b=c("../stream/GenericWorker"),g=c("../utf8"),y=c("../crc32"),k=c("../signature");function S(C,O,L,j){b.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=O,this.zipPlatform=L,this.encodeFileName=j,this.streamFiles=C,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(S,b),S.prototype.push=function(C){var O=C.meta.percent||0,L=this.entriesCount,j=this._sources.length;this.accumulate?this.contentBuffer.push(C):(this.bytesWritten+=C.data.length,b.prototype.push.call(this,{data:C.data,meta:{currentFile:this.currentFile,percent:L?(O+100*(L-j-1))/L:100}}))},S.prototype.openedSource=function(C){this.currentSourceOffset=this.bytesWritten,this.currentFile=C.file.name;var O=this.streamFiles&&!C.file.dir;if(O){var L=m(C,O,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},S.prototype.closedSource=function(C){this.accumulate=!1;var O,L=this.streamFiles&&!C.file.dir,j=m(C,L,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(j.dirRecord),L)this.push({data:(O=C,k.DATA_DESCRIPTOR+p(O.crc32,4)+p(O.compressedSize,4)+p(O.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:j.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},S.prototype.flush=function(){for(var C=this.bytesWritten,O=0;O<this.dirRecords.length;O++)this.push({data:this.dirRecords[O],meta:{percent:100}});var L,j,U,z,Y,A,I=this.bytesWritten-C,_=(L=this.dirRecords.length,j=I,U=C,z=this.zipComment,Y=this.encodeFileName,A=v.transformTo("string",Y(z)),k.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(L,2)+p(L,2)+p(j,4)+p(U,4)+p(A.length,2)+A);this.push({data:_,meta:{percent:100}})},S.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},S.prototype.registerPrevious=function(C){this._sources.push(C);var O=this;return C.on("data",function(L){O.processChunk(L)}),C.on("end",function(){O.closedSource(O.previous.streamInfo),O._sources.length?O.prepareNextSource():O.end()}),C.on("error",function(L){O.error(L)}),this},S.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},S.prototype.error=function(C){var O=this._sources;if(!b.prototype.error.call(this,C))return!1;for(var L=0;L<O.length;L++)try{O[L].error(C)}catch{}return!0},S.prototype.lock=function(){b.prototype.lock.call(this);for(var C=this._sources,O=0;O<C.length;O++)C[O].lock()},h.exports=S},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(c,h,d){var p=c("../compressions"),m=c("./ZipFileWorker");d.generateWorker=function(v,b,g){var y=new m(b.streamFiles,g,b.platform,b.encodeFileName),k=0;try{v.forEach(function(S,C){k++;var O=function(z,Y){var A=z||Y,I=p[A];if(!I)throw new Error(A+" is not a valid compression method !");return I}(C.options.compression,b.compression),L=C.options.compressionOptions||b.compressionOptions||{},j=C.dir,U=C.date;C._compressWorker(O,L).withStreamInfo("file",{name:S,dir:j,date:U,comment:C.comment||"",unixPermissions:C.unixPermissions,dosPermissions:C.dosPermissions}).pipe(y)}),y.entriesCount=k}catch(S){y.error(S)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(c,h,d){function p(){if(!(this instanceof p))return new p;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var m=new p;for(var v in this)typeof this[v]!="function"&&(m[v]=this[v]);return m}}(p.prototype=c("./object")).loadAsync=c("./load"),p.support=c("./support"),p.defaults=c("./defaults"),p.version="3.10.1",p.loadAsync=function(m,v){return new p().loadAsync(m,v)},p.external=c("./external"),h.exports=p},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(c,h,d){var p=c("./utils"),m=c("./external"),v=c("./utf8"),b=c("./zipEntries"),g=c("./stream/Crc32Probe"),y=c("./nodejsUtils");function k(S){return new m.Promise(function(C,O){var L=S.decompressed.getContentWorker().pipe(new g);L.on("error",function(j){O(j)}).on("end",function(){L.streamInfo.crc32!==S.decompressed.crc32?O(new Error("Corrupted zip : CRC32 mismatch")):C()}).resume()})}h.exports=function(S,C){var O=this;return C=p.extend(C||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v.utf8decode}),y.isNode&&y.isStream(S)?m.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):p.prepareContent("the loaded zip file",S,!0,C.optimizedBinaryString,C.base64).then(function(L){var j=new b(C);return j.load(L),j}).then(function(L){var j=[m.Promise.resolve(L)],U=L.files;if(C.checkCRC32)for(var z=0;z<U.length;z++)j.push(k(U[z]));return m.Promise.all(j)}).then(function(L){for(var j=L.shift(),U=j.files,z=0;z<U.length;z++){var Y=U[z],A=Y.fileNameStr,I=p.resolve(Y.fileNameStr);O.file(I,Y.decompressed,{binary:!0,optimizedBinaryString:!0,date:Y.date,dir:Y.dir,comment:Y.fileCommentStr.length?Y.fileCommentStr:null,unixPermissions:Y.unixPermissions,dosPermissions:Y.dosPermissions,createFolders:C.createFolders}),Y.dir||(O.file(I).unsafeOriginalName=A)}return j.zipComment.length&&(O.comment=j.zipComment),O})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(c,h,d){var p=c("../utils"),m=c("../stream/GenericWorker");function v(b,g){m.call(this,"Nodejs stream input adapter for "+b),this._upstreamEnded=!1,this._bindStream(g)}p.inherits(v,m),v.prototype._bindStream=function(b){var g=this;(this._stream=b).pause(),b.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},v.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},v.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},h.exports=v},{"../stream/GenericWorker":28,"../utils":32}],13:[function(c,h,d){var p=c("readable-stream").Readable;function m(v,b,g){p.call(this,b),this._helper=v;var y=this;v.on("data",function(k,S){y.push(k)||y._helper.pause(),g&&g(S)}).on("error",function(k){y.emit("error",k)}).on("end",function(){y.push(null)})}c("../utils").inherits(m,p),m.prototype._read=function(){this._helper.resume()},h.exports=m},{"../utils":32,"readable-stream":16}],14:[function(c,h,d){h.exports={isNode:o!==void 0,newBufferFrom:function(p,m){if(o.from&&o.from!==Uint8Array.from)return o.from(p,m);if(typeof p=="number")throw new Error('The "data" argument must not be a number');return new o(p,m)},allocBuffer:function(p){if(o.alloc)return o.alloc(p);var m=new o(p);return m.fill(0),m},isBuffer:function(p){return o.isBuffer(p)},isStream:function(p){return p&&typeof p.on=="function"&&typeof p.pause=="function"&&typeof p.resume=="function"}}},{}],15:[function(c,h,d){function p(I,_,x){var T,E=v.getTypeOf(_),M=v.extend(x||{},y);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(I=U(I)),M.createFolders&&(T=j(I))&&z.call(this,T,!0);var F=E==="string"&&M.binary===!1&&M.base64===!1;x&&x.binary!==void 0||(M.binary=!F),(_ instanceof k&&_.uncompressedSize===0||M.dir||!_||_.length===0)&&(M.base64=!1,M.binary=!0,_="",M.compression="STORE",E="string");var P=null;P=_ instanceof k||_ instanceof b?_:O.isNode&&O.isStream(_)?new L(I,_):v.prepareContent(I,_,M.binary,M.optimizedBinaryString,M.base64);var W=new S(I,P,M);this.files[I]=W}var m=c("./utf8"),v=c("./utils"),b=c("./stream/GenericWorker"),g=c("./stream/StreamHelper"),y=c("./defaults"),k=c("./compressedObject"),S=c("./zipObject"),C=c("./generate"),O=c("./nodejsUtils"),L=c("./nodejs/NodejsStreamInputAdapter"),j=function(I){I.slice(-1)==="/"&&(I=I.substring(0,I.length-1));var _=I.lastIndexOf("/");return 0<_?I.substring(0,_):""},U=function(I){return I.slice(-1)!=="/"&&(I+="/"),I},z=function(I,_){return _=_!==void 0?_:y.createFolders,I=U(I),this.files[I]||p.call(this,I,null,{dir:!0,createFolders:_}),this.files[I]};function Y(I){return Object.prototype.toString.call(I)==="[object RegExp]"}var A={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(I){var _,x,T;for(_ in this.files)T=this.files[_],(x=_.slice(this.root.length,_.length))&&_.slice(0,this.root.length)===this.root&&I(x,T)},filter:function(I){var _=[];return this.forEach(function(x,T){I(x,T)&&_.push(T)}),_},file:function(I,_,x){if(arguments.length!==1)return I=this.root+I,p.call(this,I,_,x),this;if(Y(I)){var T=I;return this.filter(function(M,F){return!F.dir&&T.test(M)})}var E=this.files[this.root+I];return E&&!E.dir?E:null},folder:function(I){if(!I)return this;if(Y(I))return this.filter(function(E,M){return M.dir&&I.test(E)});var _=this.root+I,x=z.call(this,_),T=this.clone();return T.root=x.name,T},remove:function(I){I=this.root+I;var _=this.files[I];if(_||(I.slice(-1)!=="/"&&(I+="/"),_=this.files[I]),_&&!_.dir)delete this.files[I];else for(var x=this.filter(function(E,M){return M.name.slice(0,I.length)===I}),T=0;T<x.length;T++)delete this.files[x[T].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(I){var _,x={};try{if((x=v.extend(I||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.utf8encode})).type=x.type.toLowerCase(),x.compression=x.compression.toUpperCase(),x.type==="binarystring"&&(x.type="string"),!x.type)throw new Error("No output type specified.");v.checkSupport(x.type),x.platform!=="darwin"&&x.platform!=="freebsd"&&x.platform!=="linux"&&x.platform!=="sunos"||(x.platform="UNIX"),x.platform==="win32"&&(x.platform="DOS");var T=x.comment||this.comment||"";_=C.generateWorker(this,x,T)}catch(E){(_=new b("error")).error(E)}return new g(_,x.type||"string",x.mimeType)},generateAsync:function(I,_){return this.generateInternalStream(I).accumulate(_)},generateNodeStream:function(I,_){return(I=I||{}).type||(I.type="nodebuffer"),this.generateInternalStream(I).toNodejsStream(_)}};h.exports=A},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(c,h,d){h.exports=c("stream")},{stream:void 0}],17:[function(c,h,d){var p=c("./DataReader");function m(v){p.call(this,v);for(var b=0;b<this.data.length;b++)v[b]=255&v[b]}c("../utils").inherits(m,p),m.prototype.byteAt=function(v){return this.data[this.zero+v]},m.prototype.lastIndexOfSignature=function(v){for(var b=v.charCodeAt(0),g=v.charCodeAt(1),y=v.charCodeAt(2),k=v.charCodeAt(3),S=this.length-4;0<=S;--S)if(this.data[S]===b&&this.data[S+1]===g&&this.data[S+2]===y&&this.data[S+3]===k)return S-this.zero;return-1},m.prototype.readAndCheckSignature=function(v){var b=v.charCodeAt(0),g=v.charCodeAt(1),y=v.charCodeAt(2),k=v.charCodeAt(3),S=this.readData(4);return b===S[0]&&g===S[1]&&y===S[2]&&k===S[3]},m.prototype.readData=function(v){if(this.checkOffset(v),v===0)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./DataReader":18}],18:[function(c,h,d){var p=c("../utils");function m(v){this.data=v,this.length=v.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(v){this.checkIndex(this.index+v)},checkIndex:function(v){if(this.length<this.zero+v||v<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+v+"). Corrupted zip ?")},setIndex:function(v){this.checkIndex(v),this.index=v},skip:function(v){this.setIndex(this.index+v)},byteAt:function(){},readInt:function(v){var b,g=0;for(this.checkOffset(v),b=this.index+v-1;b>=this.index;b--)g=(g<<8)+this.byteAt(b);return this.index+=v,g},readString:function(v){return p.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},h.exports=m},{"../utils":32}],19:[function(c,h,d){var p=c("./Uint8ArrayReader");function m(v){p.call(this,v)}c("../utils").inherits(m,p),m.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(c,h,d){var p=c("./DataReader");function m(v){p.call(this,v)}c("../utils").inherits(m,p),m.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},m.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},m.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},m.prototype.readData=function(v){this.checkOffset(v);var b=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./DataReader":18}],21:[function(c,h,d){var p=c("./ArrayReader");function m(v){p.call(this,v)}c("../utils").inherits(m,p),m.prototype.readData=function(v){if(this.checkOffset(v),v===0)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,b},h.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(c,h,d){var p=c("../utils"),m=c("../support"),v=c("./ArrayReader"),b=c("./StringReader"),g=c("./NodeBufferReader"),y=c("./Uint8ArrayReader");h.exports=function(k){var S=p.getTypeOf(k);return p.checkSupport(S),S!=="string"||m.uint8array?S==="nodebuffer"?new g(k):m.uint8array?new y(p.transformTo("uint8array",k)):new v(p.transformTo("array",k)):new b(k)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(c,h,d){d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(c,h,d){var p=c("./GenericWorker"),m=c("../utils");function v(b){p.call(this,"ConvertWorker to "+b),this.destType=b}m.inherits(v,p),v.prototype.processChunk=function(b){this.push({data:m.transformTo(this.destType,b.data),meta:b.meta})},h.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(c,h,d){var p=c("./GenericWorker"),m=c("../crc32");function v(){p.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c("../utils").inherits(v,p),v.prototype.processChunk=function(b){this.streamInfo.crc32=m(b.data,this.streamInfo.crc32||0),this.push(b)},h.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(c,h,d){var p=c("../utils"),m=c("./GenericWorker");function v(b){m.call(this,"DataLengthProbe for "+b),this.propName=b,this.withStreamInfo(b,0)}p.inherits(v,m),v.prototype.processChunk=function(b){if(b){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+b.data.length}m.prototype.processChunk.call(this,b)},h.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(c,h,d){var p=c("../utils"),m=c("./GenericWorker");function v(b){m.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=p.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}p.inherits(v,m),v.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,p.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(p.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var b=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,g);break;case"uint8array":b=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":b=this.data.slice(this.index,g)}return this.index=g,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},h.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(c,h,d){function p(m){this.name=m||"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}p.prototype={push:function(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,v){return this._listeners[m].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,v){if(this._listeners[m])for(var b=0;b<this._listeners[m].length;b++)this._listeners[m][b].call(this,v)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var v=this;return m.on("data",function(b){v.processChunk(b)}),m.on("end",function(){v.end()}),m.on("error",function(b){v.error(b)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,v){return this.extraStreamInfo[m]=v,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},h.exports=p},{}],29:[function(c,h,d){var p=c("../utils"),m=c("./ConvertWorker"),v=c("./GenericWorker"),b=c("../base64"),g=c("../support"),y=c("../external"),k=null;if(g.nodestream)try{k=c("../nodejs/NodejsStreamOutputAdapter")}catch{}function S(O,L){return new y.Promise(function(j,U){var z=[],Y=O._internalType,A=O._outputType,I=O._mimeType;O.on("data",function(_,x){z.push(_),L&&L(x)}).on("error",function(_){z=[],U(_)}).on("end",function(){try{var _=function(x,T,E){switch(x){case"blob":return p.newBlob(p.transformTo("arraybuffer",T),E);case"base64":return b.encode(T);default:return p.transformTo(x,T)}}(A,function(x,T){var E,M=0,F=null,P=0;for(E=0;E<T.length;E++)P+=T[E].length;switch(x){case"string":return T.join("");case"array":return Array.prototype.concat.apply([],T);case"uint8array":for(F=new Uint8Array(P),E=0;E<T.length;E++)F.set(T[E],M),M+=T[E].length;return F;case"nodebuffer":return o.concat(T);default:throw new Error("concat : unsupported type '"+x+"'")}}(Y,z),I);j(_)}catch(x){U(x)}z=[]}).resume()})}function C(O,L,j){var U=L;switch(L){case"blob":case"arraybuffer":U="uint8array";break;case"base64":U="string"}try{this._internalType=U,this._outputType=L,this._mimeType=j,p.checkSupport(U),this._worker=O.pipe(new m(U)),O.lock()}catch(z){this._worker=new v("error"),this._worker.error(z)}}C.prototype={accumulate:function(O){return S(this,O)},on:function(O,L){var j=this;return O==="data"?this._worker.on(O,function(U){L.call(j,U.data,U.meta)}):this._worker.on(O,function(){p.delay(L,arguments,j)}),this},resume:function(){return p.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(O){if(p.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new k(this,{objectMode:this._outputType!=="nodebuffer"},O)}},h.exports=C},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(c,h,d){if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",d.nodebuffer=o!==void 0,d.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")d.blob=!1;else{var p=new ArrayBuffer(0);try{d.blob=new Blob([p],{type:"application/zip"}).size===0}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(p),d.blob=m.getBlob("application/zip").size===0}catch{d.blob=!1}}}try{d.nodestream=!!c("readable-stream").Readable}catch{d.nodestream=!1}},{"readable-stream":16}],31:[function(c,h,d){for(var p=c("./utils"),m=c("./support"),v=c("./nodejsUtils"),b=c("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function k(){b.call(this,"utf-8 decode"),this.leftOver=null}function S(){b.call(this,"utf-8 encode")}g[254]=g[254]=1,d.utf8encode=function(C){return m.nodebuffer?v.newBufferFrom(C,"utf-8"):function(O){var L,j,U,z,Y,A=O.length,I=0;for(z=0;z<A;z++)(64512&(j=O.charCodeAt(z)))==55296&&z+1<A&&(64512&(U=O.charCodeAt(z+1)))==56320&&(j=65536+(j-55296<<10)+(U-56320),z++),I+=j<128?1:j<2048?2:j<65536?3:4;for(L=m.uint8array?new Uint8Array(I):new Array(I),z=Y=0;Y<I;z++)(64512&(j=O.charCodeAt(z)))==55296&&z+1<A&&(64512&(U=O.charCodeAt(z+1)))==56320&&(j=65536+(j-55296<<10)+(U-56320),z++),j<128?L[Y++]=j:(j<2048?L[Y++]=192|j>>>6:(j<65536?L[Y++]=224|j>>>12:(L[Y++]=240|j>>>18,L[Y++]=128|j>>>12&63),L[Y++]=128|j>>>6&63),L[Y++]=128|63&j);return L}(C)},d.utf8decode=function(C){return m.nodebuffer?p.transformTo("nodebuffer",C).toString("utf-8"):function(O){var L,j,U,z,Y=O.length,A=new Array(2*Y);for(L=j=0;L<Y;)if((U=O[L++])<128)A[j++]=U;else if(4<(z=g[U]))A[j++]=65533,L+=z-1;else{for(U&=z===2?31:z===3?15:7;1<z&&L<Y;)U=U<<6|63&O[L++],z--;1<z?A[j++]=65533:U<65536?A[j++]=U:(U-=65536,A[j++]=55296|U>>10&1023,A[j++]=56320|1023&U)}return A.length!==j&&(A.subarray?A=A.subarray(0,j):A.length=j),p.applyFromCharCode(A)}(C=p.transformTo(m.uint8array?"uint8array":"array",C))},p.inherits(k,b),k.prototype.processChunk=function(C){var O=p.transformTo(m.uint8array?"uint8array":"array",C.data);if(this.leftOver&&this.leftOver.length){if(m.uint8array){var L=O;(O=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),O.set(L,this.leftOver.length)}else O=this.leftOver.concat(O);this.leftOver=null}var j=function(z,Y){var A;for((Y=Y||z.length)>z.length&&(Y=z.length),A=Y-1;0<=A&&(192&z[A])==128;)A--;return A<0||A===0?Y:A+g[z[A]]>Y?A:Y}(O),U=O;j!==O.length&&(m.uint8array?(U=O.subarray(0,j),this.leftOver=O.subarray(j,O.length)):(U=O.slice(0,j),this.leftOver=O.slice(j,O.length))),this.push({data:d.utf8decode(U),meta:C.meta})},k.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=k,p.inherits(S,b),S.prototype.processChunk=function(C){this.push({data:d.utf8encode(C.data),meta:C.meta})},d.Utf8EncodeWorker=S},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(c,h,d){var p=c("./support"),m=c("./base64"),v=c("./nodejsUtils"),b=c("./external");function g(L){return L}function y(L,j){for(var U=0;U<L.length;++U)j[U]=255&L.charCodeAt(U);return j}c("setimmediate"),d.newBlob=function(L,j){d.checkSupport("blob");try{return new Blob([L],{type:j})}catch{try{var U=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return U.append(L),U.getBlob(j)}catch{throw new Error("Bug : can't construct the Blob.")}}};var k={stringifyByChunk:function(L,j,U){var z=[],Y=0,A=L.length;if(A<=U)return String.fromCharCode.apply(null,L);for(;Y<A;)j==="array"||j==="nodebuffer"?z.push(String.fromCharCode.apply(null,L.slice(Y,Math.min(Y+U,A)))):z.push(String.fromCharCode.apply(null,L.subarray(Y,Math.min(Y+U,A)))),Y+=U;return z.join("")},stringifyByChar:function(L){for(var j="",U=0;U<L.length;U++)j+=String.fromCharCode(L[U]);return j},applyCanBeUsed:{uint8array:function(){try{return p.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return p.nodebuffer&&String.fromCharCode.apply(null,v.allocBuffer(1)).length===1}catch{return!1}}()}};function S(L){var j=65536,U=d.getTypeOf(L),z=!0;if(U==="uint8array"?z=k.applyCanBeUsed.uint8array:U==="nodebuffer"&&(z=k.applyCanBeUsed.nodebuffer),z)for(;1<j;)try{return k.stringifyByChunk(L,U,j)}catch{j=Math.floor(j/2)}return k.stringifyByChar(L)}function C(L,j){for(var U=0;U<L.length;U++)j[U]=L[U];return j}d.applyFromCharCode=S;var O={};O.string={string:g,array:function(L){return y(L,new Array(L.length))},arraybuffer:function(L){return O.string.uint8array(L).buffer},uint8array:function(L){return y(L,new Uint8Array(L.length))},nodebuffer:function(L){return y(L,v.allocBuffer(L.length))}},O.array={string:S,array:g,arraybuffer:function(L){return new Uint8Array(L).buffer},uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return v.newBufferFrom(L)}},O.arraybuffer={string:function(L){return S(new Uint8Array(L))},array:function(L){return C(new Uint8Array(L),new Array(L.byteLength))},arraybuffer:g,uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return v.newBufferFrom(new Uint8Array(L))}},O.uint8array={string:S,array:function(L){return C(L,new Array(L.length))},arraybuffer:function(L){return L.buffer},uint8array:g,nodebuffer:function(L){return v.newBufferFrom(L)}},O.nodebuffer={string:S,array:function(L){return C(L,new Array(L.length))},arraybuffer:function(L){return O.nodebuffer.uint8array(L).buffer},uint8array:function(L){return C(L,new Uint8Array(L.length))},nodebuffer:g},d.transformTo=function(L,j){if(j=j||"",!L)return j;d.checkSupport(L);var U=d.getTypeOf(j);return O[U][L](j)},d.resolve=function(L){for(var j=L.split("/"),U=[],z=0;z<j.length;z++){var Y=j[z];Y==="."||Y===""&&z!==0&&z!==j.length-1||(Y===".."?U.pop():U.push(Y))}return U.join("/")},d.getTypeOf=function(L){return typeof L=="string"?"string":Object.prototype.toString.call(L)==="[object Array]"?"array":p.nodebuffer&&v.isBuffer(L)?"nodebuffer":p.uint8array&&L instanceof Uint8Array?"uint8array":p.arraybuffer&&L instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(L){if(!p[L.toLowerCase()])throw new Error(L+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(L){var j,U,z="";for(U=0;U<(L||"").length;U++)z+="\\x"+((j=L.charCodeAt(U))<16?"0":"")+j.toString(16).toUpperCase();return z},d.delay=function(L,j,U){f(function(){L.apply(U||null,j||[])})},d.inherits=function(L,j){function U(){}U.prototype=j.prototype,L.prototype=new U},d.extend=function(){var L,j,U={};for(L=0;L<arguments.length;L++)for(j in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],j)&&U[j]===void 0&&(U[j]=arguments[L][j]);return U},d.prepareContent=function(L,j,U,z,Y){return b.Promise.resolve(j).then(function(A){return p.blob&&(A instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(A))!==-1)&&typeof FileReader<"u"?new b.Promise(function(I,_){var x=new FileReader;x.onload=function(T){I(T.target.result)},x.onerror=function(T){_(T.target.error)},x.readAsArrayBuffer(A)}):A}).then(function(A){var I,_=d.getTypeOf(A);return _?(_==="arraybuffer"?A=d.transformTo("uint8array",A):_==="string"&&(Y?A=m.decode(A):U&&z!==!0&&(A=y(I=A,p.uint8array?new Uint8Array(I.length):new Array(I.length)))),A):b.Promise.reject(new Error("Can't read the data of '"+L+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(c,h,d){var p=c("./reader/readerFor"),m=c("./utils"),v=c("./signature"),b=c("./zipEntry"),g=c("./support");function y(k){this.files=[],this.loadOptions=k}y.prototype={checkSignature:function(k){if(!this.reader.readAndCheckSignature(k)){this.reader.index-=4;var S=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(S)+", expected "+m.pretty(k)+")")}},isSignature:function(k,S){var C=this.reader.index;this.reader.setIndex(k);var O=this.reader.readString(4)===S;return this.reader.setIndex(C),O},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var k=this.reader.readData(this.zipCommentLength),S=g.uint8array?"uint8array":"array",C=m.transformTo(S,k);this.zipComment=this.loadOptions.decodeFileName(C)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var k,S,C,O=this.zip64EndOfCentralSize-44;0<O;)k=this.reader.readInt(2),S=this.reader.readInt(4),C=this.reader.readData(S),this.zip64ExtensibleData[k]={id:k,length:S,value:C}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var k,S;for(k=0;k<this.files.length;k++)S=this.files[k],this.reader.setIndex(S.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),S.readLocalPart(this.reader),S.handleUTF8(),S.processAttributes()},readCentralDir:function(){var k;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(k=new b({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(k);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var k=this.reader.lastIndexOfSignature(v.CENTRAL_DIRECTORY_END);if(k<0)throw this.isSignature(0,v.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(k);var S=k;if(this.checkSignature(v.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(k=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(k),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,v.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var C=this.centralDirOffset+this.centralDirSize;this.zip64&&(C+=20,C+=12+this.zip64EndOfCentralSize);var O=S-C;if(0<O)this.isSignature(S,v.CENTRAL_FILE_HEADER)||(this.reader.zero=O);else if(O<0)throw new Error("Corrupted zip: missing "+Math.abs(O)+" bytes.")},prepareReader:function(k){this.reader=p(k)},load:function(k){this.prepareReader(k),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},h.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(c,h,d){var p=c("./reader/readerFor"),m=c("./utils"),v=c("./compressedObject"),b=c("./crc32"),g=c("./utf8"),y=c("./compressions"),k=c("./support");function S(C,O){this.options=C,this.loadOptions=O}S.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(C){var O,L;if(C.skip(22),this.fileNameLength=C.readInt(2),L=C.readInt(2),this.fileName=C.readData(this.fileNameLength),C.skip(L),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((O=function(j){for(var U in y)if(Object.prototype.hasOwnProperty.call(y,U)&&y[U].magic===j)return y[U];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new v(this.compressedSize,this.uncompressedSize,this.crc32,O,C.readData(this.compressedSize))},readCentralPart:function(C){this.versionMadeBy=C.readInt(2),C.skip(2),this.bitFlag=C.readInt(2),this.compressionMethod=C.readString(2),this.date=C.readDate(),this.crc32=C.readInt(4),this.compressedSize=C.readInt(4),this.uncompressedSize=C.readInt(4);var O=C.readInt(2);if(this.extraFieldsLength=C.readInt(2),this.fileCommentLength=C.readInt(2),this.diskNumberStart=C.readInt(2),this.internalFileAttributes=C.readInt(2),this.externalFileAttributes=C.readInt(4),this.localHeaderOffset=C.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");C.skip(O),this.readExtraFields(C),this.parseZIP64ExtraField(C),this.fileComment=C.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var C=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),C==0&&(this.dosPermissions=63&this.externalFileAttributes),C==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var C=p(this.extraFields[1].value);this.uncompressedSize===m.MAX_VALUE_32BITS&&(this.uncompressedSize=C.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=C.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=C.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=C.readInt(4))}},readExtraFields:function(C){var O,L,j,U=C.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});C.index+4<U;)O=C.readInt(2),L=C.readInt(2),j=C.readData(L),this.extraFields[O]={id:O,length:L,value:j};C.setIndex(U)},handleUTF8:function(){var C=k.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var O=this.findExtraFieldUnicodePath();if(O!==null)this.fileNameStr=O;else{var L=m.transformTo(C,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var j=this.findExtraFieldUnicodeComment();if(j!==null)this.fileCommentStr=j;else{var U=m.transformTo(C,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(U)}}},findExtraFieldUnicodePath:function(){var C=this.extraFields[28789];if(C){var O=p(C.value);return O.readInt(1)!==1||b(this.fileName)!==O.readInt(4)?null:g.utf8decode(O.readData(C.length-5))}return null},findExtraFieldUnicodeComment:function(){var C=this.extraFields[25461];if(C){var O=p(C.value);return O.readInt(1)!==1||b(this.fileComment)!==O.readInt(4)?null:g.utf8decode(O.readData(C.length-5))}return null}},h.exports=S},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(c,h,d){function p(O,L,j){this.name=O,this.dir=j.dir,this.date=j.date,this.comment=j.comment,this.unixPermissions=j.unixPermissions,this.dosPermissions=j.dosPermissions,this._data=L,this._dataBinary=j.binary,this.options={compression:j.compression,compressionOptions:j.compressionOptions}}var m=c("./stream/StreamHelper"),v=c("./stream/DataWorker"),b=c("./utf8"),g=c("./compressedObject"),y=c("./stream/GenericWorker");p.prototype={internalStream:function(O){var L=null,j="string";try{if(!O)throw new Error("No output type specified.");var U=(j=O.toLowerCase())==="string"||j==="text";j!=="binarystring"&&j!=="text"||(j="string"),L=this._decompressWorker();var z=!this._dataBinary;z&&!U&&(L=L.pipe(new b.Utf8EncodeWorker)),!z&&U&&(L=L.pipe(new b.Utf8DecodeWorker))}catch(Y){(L=new y("error")).error(Y)}return new m(L,j,"")},async:function(O,L){return this.internalStream(O).accumulate(L)},nodeStream:function(O,L){return this.internalStream(O||"nodebuffer").toNodejsStream(L)},_compressWorker:function(O,L){if(this._data instanceof g&&this._data.compression.magic===O.magic)return this._data.getCompressedWorker();var j=this._decompressWorker();return this._dataBinary||(j=j.pipe(new b.Utf8EncodeWorker)),g.createWorkerFrom(j,O,L)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?this._data:new v(this._data)}};for(var k=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],S=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},C=0;C<k.length;C++)p.prototype[k[C]]=S;h.exports=p},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(c,h,d){(function(p){var m,v,b=p.MutationObserver||p.WebKitMutationObserver;if(b){var g=0,y=new b(O),k=p.document.createTextNode("");y.observe(k,{characterData:!0}),m=function(){k.data=g=++g%2}}else if(p.setImmediate||p.MessageChannel===void 0)m="document"in p&&"onreadystatechange"in p.document.createElement("script")?function(){var L=p.document.createElement("script");L.onreadystatechange=function(){O(),L.onreadystatechange=null,L.parentNode.removeChild(L),L=null},p.document.documentElement.appendChild(L)}:function(){setTimeout(O,0)};else{var S=new p.MessageChannel;S.port1.onmessage=O,m=function(){S.port2.postMessage(0)}}var C=[];function O(){var L,j;v=!0;for(var U=C.length;U;){for(j=C,C=[],L=-1;++L<U;)j[L]();U=C.length}v=!1}h.exports=function(L){C.push(L)!==1||v||m()}}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(c,h,d){var p=c("immediate");function m(){}var v={},b=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function k(U){if(typeof U!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,U!==m&&L(this,U)}function S(U,z,Y){this.promise=U,typeof z=="function"&&(this.onFulfilled=z,this.callFulfilled=this.otherCallFulfilled),typeof Y=="function"&&(this.onRejected=Y,this.callRejected=this.otherCallRejected)}function C(U,z,Y){p(function(){var A;try{A=z(Y)}catch(I){return v.reject(U,I)}A===U?v.reject(U,new TypeError("Cannot resolve promise with itself")):v.resolve(U,A)})}function O(U){var z=U&&U.then;if(U&&(typeof U=="object"||typeof U=="function")&&typeof z=="function")return function(){z.apply(U,arguments)}}function L(U,z){var Y=!1;function A(x){Y||(Y=!0,v.reject(U,x))}function I(x){Y||(Y=!0,v.resolve(U,x))}var _=j(function(){z(I,A)});_.status==="error"&&A(_.value)}function j(U,z){var Y={};try{Y.value=U(z),Y.status="success"}catch(A){Y.status="error",Y.value=A}return Y}(h.exports=k).prototype.finally=function(U){if(typeof U!="function")return this;var z=this.constructor;return this.then(function(Y){return z.resolve(U()).then(function(){return Y})},function(Y){return z.resolve(U()).then(function(){throw Y})})},k.prototype.catch=function(U){return this.then(null,U)},k.prototype.then=function(U,z){if(typeof U!="function"&&this.state===g||typeof z!="function"&&this.state===b)return this;var Y=new this.constructor(m);return this.state!==y?C(Y,this.state===g?U:z,this.outcome):this.queue.push(new S(Y,U,z)),Y},S.prototype.callFulfilled=function(U){v.resolve(this.promise,U)},S.prototype.otherCallFulfilled=function(U){C(this.promise,this.onFulfilled,U)},S.prototype.callRejected=function(U){v.reject(this.promise,U)},S.prototype.otherCallRejected=function(U){C(this.promise,this.onRejected,U)},v.resolve=function(U,z){var Y=j(O,z);if(Y.status==="error")return v.reject(U,Y.value);var A=Y.value;if(A)L(U,A);else{U.state=g,U.outcome=z;for(var I=-1,_=U.queue.length;++I<_;)U.queue[I].callFulfilled(z)}return U},v.reject=function(U,z){U.state=b,U.outcome=z;for(var Y=-1,A=U.queue.length;++Y<A;)U.queue[Y].callRejected(z);return U},k.resolve=function(U){return U instanceof this?U:v.resolve(new this(m),U)},k.reject=function(U){var z=new this(m);return v.reject(z,U)},k.all=function(U){var z=this;if(Object.prototype.toString.call(U)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Y=U.length,A=!1;if(!Y)return this.resolve([]);for(var I=new Array(Y),_=0,x=-1,T=new this(m);++x<Y;)E(U[x],x);return T;function E(M,F){z.resolve(M).then(function(P){I[F]=P,++_!==Y||A||(A=!0,v.resolve(T,I))},function(P){A||(A=!0,v.reject(T,P))})}},k.race=function(U){var z=this;if(Object.prototype.toString.call(U)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Y=U.length,A=!1;if(!Y)return this.resolve([]);for(var I,_=-1,x=new this(m);++_<Y;)I=U[_],z.resolve(I).then(function(T){A||(A=!0,v.resolve(x,T))},function(T){A||(A=!0,v.reject(x,T))});return x}},{immediate:36}],38:[function(c,h,d){var p={};(0,c("./lib/utils/common").assign)(p,c("./lib/deflate"),c("./lib/inflate"),c("./lib/zlib/constants")),h.exports=p},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(c,h,d){var p=c("./zlib/deflate"),m=c("./utils/common"),v=c("./utils/strings"),b=c("./zlib/messages"),g=c("./zlib/zstream"),y=Object.prototype.toString,k=0,S=-1,C=0,O=8;function L(U){if(!(this instanceof L))return new L(U);this.options=m.assign({level:S,method:O,chunkSize:16384,windowBits:15,memLevel:8,strategy:C,to:""},U||{});var z=this.options;z.raw&&0<z.windowBits?z.windowBits=-z.windowBits:z.gzip&&0<z.windowBits&&z.windowBits<16&&(z.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var Y=p.deflateInit2(this.strm,z.level,z.method,z.windowBits,z.memLevel,z.strategy);if(Y!==k)throw new Error(b[Y]);if(z.header&&p.deflateSetHeader(this.strm,z.header),z.dictionary){var A;if(A=typeof z.dictionary=="string"?v.string2buf(z.dictionary):y.call(z.dictionary)==="[object ArrayBuffer]"?new Uint8Array(z.dictionary):z.dictionary,(Y=p.deflateSetDictionary(this.strm,A))!==k)throw new Error(b[Y]);this._dict_set=!0}}function j(U,z){var Y=new L(z);if(Y.push(U,!0),Y.err)throw Y.msg||b[Y.err];return Y.result}L.prototype.push=function(U,z){var Y,A,I=this.strm,_=this.options.chunkSize;if(this.ended)return!1;A=z===~~z?z:z===!0?4:0,typeof U=="string"?I.input=v.string2buf(U):y.call(U)==="[object ArrayBuffer]"?I.input=new Uint8Array(U):I.input=U,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new m.Buf8(_),I.next_out=0,I.avail_out=_),(Y=p.deflate(I,A))!==1&&Y!==k)return this.onEnd(Y),!(this.ended=!0);I.avail_out!==0&&(I.avail_in!==0||A!==4&&A!==2)||(this.options.to==="string"?this.onData(v.buf2binstring(m.shrinkBuf(I.output,I.next_out))):this.onData(m.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||I.avail_out===0)&&Y!==1);return A===4?(Y=p.deflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===k):A!==2||(this.onEnd(k),!(I.avail_out=0))},L.prototype.onData=function(U){this.chunks.push(U)},L.prototype.onEnd=function(U){U===k&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},d.Deflate=L,d.deflate=j,d.deflateRaw=function(U,z){return(z=z||{}).raw=!0,j(U,z)},d.gzip=function(U,z){return(z=z||{}).gzip=!0,j(U,z)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(c,h,d){var p=c("./zlib/inflate"),m=c("./utils/common"),v=c("./utils/strings"),b=c("./zlib/constants"),g=c("./zlib/messages"),y=c("./zlib/zstream"),k=c("./zlib/gzheader"),S=Object.prototype.toString;function C(L){if(!(this instanceof C))return new C(L);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},L||{});var j=this.options;j.raw&&0<=j.windowBits&&j.windowBits<16&&(j.windowBits=-j.windowBits,j.windowBits===0&&(j.windowBits=-15)),!(0<=j.windowBits&&j.windowBits<16)||L&&L.windowBits||(j.windowBits+=32),15<j.windowBits&&j.windowBits<48&&!(15&j.windowBits)&&(j.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var U=p.inflateInit2(this.strm,j.windowBits);if(U!==b.Z_OK)throw new Error(g[U]);this.header=new k,p.inflateGetHeader(this.strm,this.header)}function O(L,j){var U=new C(j);if(U.push(L,!0),U.err)throw U.msg||g[U.err];return U.result}C.prototype.push=function(L,j){var U,z,Y,A,I,_,x=this.strm,T=this.options.chunkSize,E=this.options.dictionary,M=!1;if(this.ended)return!1;z=j===~~j?j:j===!0?b.Z_FINISH:b.Z_NO_FLUSH,typeof L=="string"?x.input=v.binstring2buf(L):S.call(L)==="[object ArrayBuffer]"?x.input=new Uint8Array(L):x.input=L,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new m.Buf8(T),x.next_out=0,x.avail_out=T),(U=p.inflate(x,b.Z_NO_FLUSH))===b.Z_NEED_DICT&&E&&(_=typeof E=="string"?v.string2buf(E):S.call(E)==="[object ArrayBuffer]"?new Uint8Array(E):E,U=p.inflateSetDictionary(this.strm,_)),U===b.Z_BUF_ERROR&&M===!0&&(U=b.Z_OK,M=!1),U!==b.Z_STREAM_END&&U!==b.Z_OK)return this.onEnd(U),!(this.ended=!0);x.next_out&&(x.avail_out!==0&&U!==b.Z_STREAM_END&&(x.avail_in!==0||z!==b.Z_FINISH&&z!==b.Z_SYNC_FLUSH)||(this.options.to==="string"?(Y=v.utf8border(x.output,x.next_out),A=x.next_out-Y,I=v.buf2string(x.output,Y),x.next_out=A,x.avail_out=T-A,A&&m.arraySet(x.output,x.output,Y,A,0),this.onData(I)):this.onData(m.shrinkBuf(x.output,x.next_out)))),x.avail_in===0&&x.avail_out===0&&(M=!0)}while((0<x.avail_in||x.avail_out===0)&&U!==b.Z_STREAM_END);return U===b.Z_STREAM_END&&(z=b.Z_FINISH),z===b.Z_FINISH?(U=p.inflateEnd(this.strm),this.onEnd(U),this.ended=!0,U===b.Z_OK):z!==b.Z_SYNC_FLUSH||(this.onEnd(b.Z_OK),!(x.avail_out=0))},C.prototype.onData=function(L){this.chunks.push(L)},C.prototype.onEnd=function(L){L===b.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg},d.Inflate=C,d.inflate=O,d.inflateRaw=function(L,j){return(j=j||{}).raw=!0,O(L,j)},d.ungzip=O},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(c,h,d){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";d.assign=function(b){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var k in y)y.hasOwnProperty(k)&&(b[k]=y[k])}}return b},d.shrinkBuf=function(b,g){return b.length===g?b:b.subarray?b.subarray(0,g):(b.length=g,b)};var m={arraySet:function(b,g,y,k,S){if(g.subarray&&b.subarray)b.set(g.subarray(y,y+k),S);else for(var C=0;C<k;C++)b[S+C]=g[y+C]},flattenChunks:function(b){var g,y,k,S,C,O;for(g=k=0,y=b.length;g<y;g++)k+=b[g].length;for(O=new Uint8Array(k),g=S=0,y=b.length;g<y;g++)C=b[g],O.set(C,S),S+=C.length;return O}},v={arraySet:function(b,g,y,k,S){for(var C=0;C<k;C++)b[S+C]=g[y+C]},flattenChunks:function(b){return[].concat.apply([],b)}};d.setTyped=function(b){b?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,m)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,v))},d.setTyped(p)},{}],42:[function(c,h,d){var p=c("./common"),m=!0,v=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{v=!1}for(var b=new p.Buf8(256),g=0;g<256;g++)b[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(k,S){if(S<65537&&(k.subarray&&v||!k.subarray&&m))return String.fromCharCode.apply(null,p.shrinkBuf(k,S));for(var C="",O=0;O<S;O++)C+=String.fromCharCode(k[O]);return C}b[254]=b[254]=1,d.string2buf=function(k){var S,C,O,L,j,U=k.length,z=0;for(L=0;L<U;L++)(64512&(C=k.charCodeAt(L)))==55296&&L+1<U&&(64512&(O=k.charCodeAt(L+1)))==56320&&(C=65536+(C-55296<<10)+(O-56320),L++),z+=C<128?1:C<2048?2:C<65536?3:4;for(S=new p.Buf8(z),L=j=0;j<z;L++)(64512&(C=k.charCodeAt(L)))==55296&&L+1<U&&(64512&(O=k.charCodeAt(L+1)))==56320&&(C=65536+(C-55296<<10)+(O-56320),L++),C<128?S[j++]=C:(C<2048?S[j++]=192|C>>>6:(C<65536?S[j++]=224|C>>>12:(S[j++]=240|C>>>18,S[j++]=128|C>>>12&63),S[j++]=128|C>>>6&63),S[j++]=128|63&C);return S},d.buf2binstring=function(k){return y(k,k.length)},d.binstring2buf=function(k){for(var S=new p.Buf8(k.length),C=0,O=S.length;C<O;C++)S[C]=k.charCodeAt(C);return S},d.buf2string=function(k,S){var C,O,L,j,U=S||k.length,z=new Array(2*U);for(C=O=0;C<U;)if((L=k[C++])<128)z[O++]=L;else if(4<(j=b[L]))z[O++]=65533,C+=j-1;else{for(L&=j===2?31:j===3?15:7;1<j&&C<U;)L=L<<6|63&k[C++],j--;1<j?z[O++]=65533:L<65536?z[O++]=L:(L-=65536,z[O++]=55296|L>>10&1023,z[O++]=56320|1023&L)}return y(z,O)},d.utf8border=function(k,S){var C;for((S=S||k.length)>k.length&&(S=k.length),C=S-1;0<=C&&(192&k[C])==128;)C--;return C<0||C===0?S:C+b[k[C]]>S?C:S}},{"./common":41}],43:[function(c,h,d){h.exports=function(p,m,v,b){for(var g=65535&p,y=p>>>16&65535,k=0;v!==0;){for(v-=k=2e3<v?2e3:v;y=y+(g=g+m[b++]|0)|0,--k;);g%=65521,y%=65521}return g|y<<16}},{}],44:[function(c,h,d){h.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}},{}],45:[function(c,h,d){var p=function(){for(var m,v=[],b=0;b<256;b++){m=b;for(var g=0;g<8;g++)m=1&m?3988292384^m>>>1:m>>>1;v[b]=m}return v}();h.exports=function(m,v,b,g){var y=p,k=g+b;m^=-1;for(var S=g;S<k;S++)m=m>>>8^y[255&(m^v[S])];return~m}},{}],46:[function(c,h,d){var p,m=c("../utils/common"),v=c("./trees"),b=c("./adler32"),g=c("./crc32"),y=c("./messages"),k=0,S=4,C=0,O=-2,L=-1,j=4,U=2,z=8,Y=9,A=286,I=30,_=19,x=2*A+1,T=15,E=3,M=258,F=M+E+1,P=42,W=113,N=1,q=2,nt=3,J=4;function St(X,Gt){return X.msg=y[Gt],Gt}function kt(X){return(X<<1)-(4<X?9:0)}function Mt(X){for(var Gt=X.length;0<=--Gt;)X[Gt]=0}function at(X){var Gt=X.state,Jt=Gt.pending;Jt>X.avail_out&&(Jt=X.avail_out),Jt!==0&&(m.arraySet(X.output,Gt.pending_buf,Gt.pending_out,Jt,X.next_out),X.next_out+=Jt,Gt.pending_out+=Jt,X.total_out+=Jt,X.avail_out-=Jt,Gt.pending-=Jt,Gt.pending===0&&(Gt.pending_out=0))}function K(X,Gt){v._tr_flush_block(X,0<=X.block_start?X.block_start:-1,X.strstart-X.block_start,Gt),X.block_start=X.strstart,at(X.strm)}function it(X,Gt){X.pending_buf[X.pending++]=Gt}function st(X,Gt){X.pending_buf[X.pending++]=Gt>>>8&255,X.pending_buf[X.pending++]=255&Gt}function Nt(X,Gt){var Jt,vt,gt=X.max_chain_length,Tt=X.strstart,ie=X.prev_length,ot=X.nice_match,ct=X.strstart>X.w_size-F?X.strstart-(X.w_size-F):0,xt=X.window,Ft=X.w_mask,bt=X.prev,lt=X.strstart+M,Ct=xt[Tt+ie-1],zt=xt[Tt+ie];X.prev_length>=X.good_match&&(gt>>=2),ot>X.lookahead&&(ot=X.lookahead);do if(xt[(Jt=Gt)+ie]===zt&&xt[Jt+ie-1]===Ct&&xt[Jt]===xt[Tt]&&xt[++Jt]===xt[Tt+1]){Tt+=2,Jt++;do;while(xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&xt[++Tt]===xt[++Jt]&&Tt<lt);if(vt=M-(lt-Tt),Tt=lt-M,ie<vt){if(X.match_start=Gt,ot<=(ie=vt))break;Ct=xt[Tt+ie-1],zt=xt[Tt+ie]}}while((Gt=bt[Gt&Ft])>ct&&--gt!=0);return ie<=X.lookahead?ie:X.lookahead}function rt(X){var Gt,Jt,vt,gt,Tt,ie,ot,ct,xt,Ft,bt=X.w_size;do{if(gt=X.window_size-X.lookahead-X.strstart,X.strstart>=bt+(bt-F)){for(m.arraySet(X.window,X.window,bt,bt,0),X.match_start-=bt,X.strstart-=bt,X.block_start-=bt,Gt=Jt=X.hash_size;vt=X.head[--Gt],X.head[Gt]=bt<=vt?vt-bt:0,--Jt;);for(Gt=Jt=bt;vt=X.prev[--Gt],X.prev[Gt]=bt<=vt?vt-bt:0,--Jt;);gt+=bt}if(X.strm.avail_in===0)break;if(ie=X.strm,ot=X.window,ct=X.strstart+X.lookahead,Ft=void 0,(xt=gt)<(Ft=ie.avail_in)&&(Ft=xt),Jt=Ft===0?0:(ie.avail_in-=Ft,m.arraySet(ot,ie.input,ie.next_in,Ft,ct),ie.state.wrap===1?ie.adler=b(ie.adler,ot,Ft,ct):ie.state.wrap===2&&(ie.adler=g(ie.adler,ot,Ft,ct)),ie.next_in+=Ft,ie.total_in+=Ft,Ft),X.lookahead+=Jt,X.lookahead+X.insert>=E)for(Tt=X.strstart-X.insert,X.ins_h=X.window[Tt],X.ins_h=(X.ins_h<<X.hash_shift^X.window[Tt+1])&X.hash_mask;X.insert&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[Tt+E-1])&X.hash_mask,X.prev[Tt&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=Tt,Tt++,X.insert--,!(X.lookahead+X.insert<E)););}while(X.lookahead<F&&X.strm.avail_in!==0)}function mt(X,Gt){for(var Jt,vt;;){if(X.lookahead<F){if(rt(X),X.lookahead<F&&Gt===k)return N;if(X.lookahead===0)break}if(Jt=0,X.lookahead>=E&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+E-1])&X.hash_mask,Jt=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),Jt!==0&&X.strstart-Jt<=X.w_size-F&&(X.match_length=Nt(X,Jt)),X.match_length>=E)if(vt=v._tr_tally(X,X.strstart-X.match_start,X.match_length-E),X.lookahead-=X.match_length,X.match_length<=X.max_lazy_match&&X.lookahead>=E){for(X.match_length--;X.strstart++,X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+E-1])&X.hash_mask,Jt=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart,--X.match_length!=0;);X.strstart++}else X.strstart+=X.match_length,X.match_length=0,X.ins_h=X.window[X.strstart],X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+1])&X.hash_mask;else vt=v._tr_tally(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++;if(vt&&(K(X,!1),X.strm.avail_out===0))return N}return X.insert=X.strstart<E-1?X.strstart:E-1,Gt===S?(K(X,!0),X.strm.avail_out===0?nt:J):X.last_lit&&(K(X,!1),X.strm.avail_out===0)?N:q}function Xt(X,Gt){for(var Jt,vt,gt;;){if(X.lookahead<F){if(rt(X),X.lookahead<F&&Gt===k)return N;if(X.lookahead===0)break}if(Jt=0,X.lookahead>=E&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+E-1])&X.hash_mask,Jt=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),X.prev_length=X.match_length,X.prev_match=X.match_start,X.match_length=E-1,Jt!==0&&X.prev_length<X.max_lazy_match&&X.strstart-Jt<=X.w_size-F&&(X.match_length=Nt(X,Jt),X.match_length<=5&&(X.strategy===1||X.match_length===E&&4096<X.strstart-X.match_start)&&(X.match_length=E-1)),X.prev_length>=E&&X.match_length<=X.prev_length){for(gt=X.strstart+X.lookahead-E,vt=v._tr_tally(X,X.strstart-1-X.prev_match,X.prev_length-E),X.lookahead-=X.prev_length-1,X.prev_length-=2;++X.strstart<=gt&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+E-1])&X.hash_mask,Jt=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),--X.prev_length!=0;);if(X.match_available=0,X.match_length=E-1,X.strstart++,vt&&(K(X,!1),X.strm.avail_out===0))return N}else if(X.match_available){if((vt=v._tr_tally(X,0,X.window[X.strstart-1]))&&K(X,!1),X.strstart++,X.lookahead--,X.strm.avail_out===0)return N}else X.match_available=1,X.strstart++,X.lookahead--}return X.match_available&&(vt=v._tr_tally(X,0,X.window[X.strstart-1]),X.match_available=0),X.insert=X.strstart<E-1?X.strstart:E-1,Gt===S?(K(X,!0),X.strm.avail_out===0?nt:J):X.last_lit&&(K(X,!1),X.strm.avail_out===0)?N:q}function G(X,Gt,Jt,vt,gt){this.good_length=X,this.max_lazy=Gt,this.nice_length=Jt,this.max_chain=vt,this.func=gt}function tt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=z,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new m.Buf16(2*x),this.dyn_dtree=new m.Buf16(2*(2*I+1)),this.bl_tree=new m.Buf16(2*(2*_+1)),Mt(this.dyn_ltree),Mt(this.dyn_dtree),Mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(T+1),this.heap=new m.Buf16(2*A+1),Mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*A+1),Mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function dt(X){var Gt;return X&&X.state?(X.total_in=X.total_out=0,X.data_type=U,(Gt=X.state).pending=0,Gt.pending_out=0,Gt.wrap<0&&(Gt.wrap=-Gt.wrap),Gt.status=Gt.wrap?P:W,X.adler=Gt.wrap===2?0:1,Gt.last_flush=k,v._tr_init(Gt),C):St(X,O)}function Dt(X){var Gt,Jt=dt(X);return Jt===C&&((Gt=X.state).window_size=2*Gt.w_size,Mt(Gt.head),Gt.max_lazy_match=p[Gt.level].max_lazy,Gt.good_match=p[Gt.level].good_length,Gt.nice_match=p[Gt.level].nice_length,Gt.max_chain_length=p[Gt.level].max_chain,Gt.strstart=0,Gt.block_start=0,Gt.lookahead=0,Gt.insert=0,Gt.match_length=Gt.prev_length=E-1,Gt.match_available=0,Gt.ins_h=0),Jt}function re(X,Gt,Jt,vt,gt,Tt){if(!X)return O;var ie=1;if(Gt===L&&(Gt=6),vt<0?(ie=0,vt=-vt):15<vt&&(ie=2,vt-=16),gt<1||Y<gt||Jt!==z||vt<8||15<vt||Gt<0||9<Gt||Tt<0||j<Tt)return St(X,O);vt===8&&(vt=9);var ot=new tt;return(X.state=ot).strm=X,ot.wrap=ie,ot.gzhead=null,ot.w_bits=vt,ot.w_size=1<<ot.w_bits,ot.w_mask=ot.w_size-1,ot.hash_bits=gt+7,ot.hash_size=1<<ot.hash_bits,ot.hash_mask=ot.hash_size-1,ot.hash_shift=~~((ot.hash_bits+E-1)/E),ot.window=new m.Buf8(2*ot.w_size),ot.head=new m.Buf16(ot.hash_size),ot.prev=new m.Buf16(ot.w_size),ot.lit_bufsize=1<<gt+6,ot.pending_buf_size=4*ot.lit_bufsize,ot.pending_buf=new m.Buf8(ot.pending_buf_size),ot.d_buf=1*ot.lit_bufsize,ot.l_buf=3*ot.lit_bufsize,ot.level=Gt,ot.strategy=Tt,ot.method=Jt,Dt(X)}p=[new G(0,0,0,0,function(X,Gt){var Jt=65535;for(Jt>X.pending_buf_size-5&&(Jt=X.pending_buf_size-5);;){if(X.lookahead<=1){if(rt(X),X.lookahead===0&&Gt===k)return N;if(X.lookahead===0)break}X.strstart+=X.lookahead,X.lookahead=0;var vt=X.block_start+Jt;if((X.strstart===0||X.strstart>=vt)&&(X.lookahead=X.strstart-vt,X.strstart=vt,K(X,!1),X.strm.avail_out===0)||X.strstart-X.block_start>=X.w_size-F&&(K(X,!1),X.strm.avail_out===0))return N}return X.insert=0,Gt===S?(K(X,!0),X.strm.avail_out===0?nt:J):(X.strstart>X.block_start&&(K(X,!1),X.strm.avail_out),N)}),new G(4,4,8,4,mt),new G(4,5,16,8,mt),new G(4,6,32,32,mt),new G(4,4,16,16,Xt),new G(8,16,32,32,Xt),new G(8,16,128,128,Xt),new G(8,32,128,256,Xt),new G(32,128,258,1024,Xt),new G(32,258,258,4096,Xt)],d.deflateInit=function(X,Gt){return re(X,Gt,z,15,8,0)},d.deflateInit2=re,d.deflateReset=Dt,d.deflateResetKeep=dt,d.deflateSetHeader=function(X,Gt){return X&&X.state?X.state.wrap!==2?O:(X.state.gzhead=Gt,C):O},d.deflate=function(X,Gt){var Jt,vt,gt,Tt;if(!X||!X.state||5<Gt||Gt<0)return X?St(X,O):O;if(vt=X.state,!X.output||!X.input&&X.avail_in!==0||vt.status===666&&Gt!==S)return St(X,X.avail_out===0?-5:O);if(vt.strm=X,Jt=vt.last_flush,vt.last_flush=Gt,vt.status===P)if(vt.wrap===2)X.adler=0,it(vt,31),it(vt,139),it(vt,8),vt.gzhead?(it(vt,(vt.gzhead.text?1:0)+(vt.gzhead.hcrc?2:0)+(vt.gzhead.extra?4:0)+(vt.gzhead.name?8:0)+(vt.gzhead.comment?16:0)),it(vt,255&vt.gzhead.time),it(vt,vt.gzhead.time>>8&255),it(vt,vt.gzhead.time>>16&255),it(vt,vt.gzhead.time>>24&255),it(vt,vt.level===9?2:2<=vt.strategy||vt.level<2?4:0),it(vt,255&vt.gzhead.os),vt.gzhead.extra&&vt.gzhead.extra.length&&(it(vt,255&vt.gzhead.extra.length),it(vt,vt.gzhead.extra.length>>8&255)),vt.gzhead.hcrc&&(X.adler=g(X.adler,vt.pending_buf,vt.pending,0)),vt.gzindex=0,vt.status=69):(it(vt,0),it(vt,0),it(vt,0),it(vt,0),it(vt,0),it(vt,vt.level===9?2:2<=vt.strategy||vt.level<2?4:0),it(vt,3),vt.status=W);else{var ie=z+(vt.w_bits-8<<4)<<8;ie|=(2<=vt.strategy||vt.level<2?0:vt.level<6?1:vt.level===6?2:3)<<6,vt.strstart!==0&&(ie|=32),ie+=31-ie%31,vt.status=W,st(vt,ie),vt.strstart!==0&&(st(vt,X.adler>>>16),st(vt,65535&X.adler)),X.adler=1}if(vt.status===69)if(vt.gzhead.extra){for(gt=vt.pending;vt.gzindex<(65535&vt.gzhead.extra.length)&&(vt.pending!==vt.pending_buf_size||(vt.gzhead.hcrc&&vt.pending>gt&&(X.adler=g(X.adler,vt.pending_buf,vt.pending-gt,gt)),at(X),gt=vt.pending,vt.pending!==vt.pending_buf_size));)it(vt,255&vt.gzhead.extra[vt.gzindex]),vt.gzindex++;vt.gzhead.hcrc&&vt.pending>gt&&(X.adler=g(X.adler,vt.pending_buf,vt.pending-gt,gt)),vt.gzindex===vt.gzhead.extra.length&&(vt.gzindex=0,vt.status=73)}else vt.status=73;if(vt.status===73)if(vt.gzhead.name){gt=vt.pending;do{if(vt.pending===vt.pending_buf_size&&(vt.gzhead.hcrc&&vt.pending>gt&&(X.adler=g(X.adler,vt.pending_buf,vt.pending-gt,gt)),at(X),gt=vt.pending,vt.pending===vt.pending_buf_size)){Tt=1;break}Tt=vt.gzindex<vt.gzhead.name.length?255&vt.gzhead.name.charCodeAt(vt.gzindex++):0,it(vt,Tt)}while(Tt!==0);vt.gzhead.hcrc&&vt.pending>gt&&(X.adler=g(X.adler,vt.pending_buf,vt.pending-gt,gt)),Tt===0&&(vt.gzindex=0,vt.status=91)}else vt.status=91;if(vt.status===91)if(vt.gzhead.comment){gt=vt.pending;do{if(vt.pending===vt.pending_buf_size&&(vt.gzhead.hcrc&&vt.pending>gt&&(X.adler=g(X.adler,vt.pending_buf,vt.pending-gt,gt)),at(X),gt=vt.pending,vt.pending===vt.pending_buf_size)){Tt=1;break}Tt=vt.gzindex<vt.gzhead.comment.length?255&vt.gzhead.comment.charCodeAt(vt.gzindex++):0,it(vt,Tt)}while(Tt!==0);vt.gzhead.hcrc&&vt.pending>gt&&(X.adler=g(X.adler,vt.pending_buf,vt.pending-gt,gt)),Tt===0&&(vt.status=103)}else vt.status=103;if(vt.status===103&&(vt.gzhead.hcrc?(vt.pending+2>vt.pending_buf_size&&at(X),vt.pending+2<=vt.pending_buf_size&&(it(vt,255&X.adler),it(vt,X.adler>>8&255),X.adler=0,vt.status=W)):vt.status=W),vt.pending!==0){if(at(X),X.avail_out===0)return vt.last_flush=-1,C}else if(X.avail_in===0&&kt(Gt)<=kt(Jt)&&Gt!==S)return St(X,-5);if(vt.status===666&&X.avail_in!==0)return St(X,-5);if(X.avail_in!==0||vt.lookahead!==0||Gt!==k&&vt.status!==666){var ot=vt.strategy===2?function(ct,xt){for(var Ft;;){if(ct.lookahead===0&&(rt(ct),ct.lookahead===0)){if(xt===k)return N;break}if(ct.match_length=0,Ft=v._tr_tally(ct,0,ct.window[ct.strstart]),ct.lookahead--,ct.strstart++,Ft&&(K(ct,!1),ct.strm.avail_out===0))return N}return ct.insert=0,xt===S?(K(ct,!0),ct.strm.avail_out===0?nt:J):ct.last_lit&&(K(ct,!1),ct.strm.avail_out===0)?N:q}(vt,Gt):vt.strategy===3?function(ct,xt){for(var Ft,bt,lt,Ct,zt=ct.window;;){if(ct.lookahead<=M){if(rt(ct),ct.lookahead<=M&&xt===k)return N;if(ct.lookahead===0)break}if(ct.match_length=0,ct.lookahead>=E&&0<ct.strstart&&(bt=zt[lt=ct.strstart-1])===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]){Ct=ct.strstart+M;do;while(bt===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]&&bt===zt[++lt]&<<Ct);ct.match_length=M-(Ct-lt),ct.match_length>ct.lookahead&&(ct.match_length=ct.lookahead)}if(ct.match_length>=E?(Ft=v._tr_tally(ct,1,ct.match_length-E),ct.lookahead-=ct.match_length,ct.strstart+=ct.match_length,ct.match_length=0):(Ft=v._tr_tally(ct,0,ct.window[ct.strstart]),ct.lookahead--,ct.strstart++),Ft&&(K(ct,!1),ct.strm.avail_out===0))return N}return ct.insert=0,xt===S?(K(ct,!0),ct.strm.avail_out===0?nt:J):ct.last_lit&&(K(ct,!1),ct.strm.avail_out===0)?N:q}(vt,Gt):p[vt.level].func(vt,Gt);if(ot!==nt&&ot!==J||(vt.status=666),ot===N||ot===nt)return X.avail_out===0&&(vt.last_flush=-1),C;if(ot===q&&(Gt===1?v._tr_align(vt):Gt!==5&&(v._tr_stored_block(vt,0,0,!1),Gt===3&&(Mt(vt.head),vt.lookahead===0&&(vt.strstart=0,vt.block_start=0,vt.insert=0))),at(X),X.avail_out===0))return vt.last_flush=-1,C}return Gt!==S?C:vt.wrap<=0?1:(vt.wrap===2?(it(vt,255&X.adler),it(vt,X.adler>>8&255),it(vt,X.adler>>16&255),it(vt,X.adler>>24&255),it(vt,255&X.total_in),it(vt,X.total_in>>8&255),it(vt,X.total_in>>16&255),it(vt,X.total_in>>24&255)):(st(vt,X.adler>>>16),st(vt,65535&X.adler)),at(X),0<vt.wrap&&(vt.wrap=-vt.wrap),vt.pending!==0?C:1)},d.deflateEnd=function(X){var Gt;return X&&X.state?(Gt=X.state.status)!==P&&Gt!==69&&Gt!==73&&Gt!==91&&Gt!==103&&Gt!==W&&Gt!==666?St(X,O):(X.state=null,Gt===W?St(X,-3):C):O},d.deflateSetDictionary=function(X,Gt){var Jt,vt,gt,Tt,ie,ot,ct,xt,Ft=Gt.length;if(!X||!X.state||(Tt=(Jt=X.state).wrap)===2||Tt===1&&Jt.status!==P||Jt.lookahead)return O;for(Tt===1&&(X.adler=b(X.adler,Gt,Ft,0)),Jt.wrap=0,Ft>=Jt.w_size&&(Tt===0&&(Mt(Jt.head),Jt.strstart=0,Jt.block_start=0,Jt.insert=0),xt=new m.Buf8(Jt.w_size),m.arraySet(xt,Gt,Ft-Jt.w_size,Jt.w_size,0),Gt=xt,Ft=Jt.w_size),ie=X.avail_in,ot=X.next_in,ct=X.input,X.avail_in=Ft,X.next_in=0,X.input=Gt,rt(Jt);Jt.lookahead>=E;){for(vt=Jt.strstart,gt=Jt.lookahead-(E-1);Jt.ins_h=(Jt.ins_h<<Jt.hash_shift^Jt.window[vt+E-1])&Jt.hash_mask,Jt.prev[vt&Jt.w_mask]=Jt.head[Jt.ins_h],Jt.head[Jt.ins_h]=vt,vt++,--gt;);Jt.strstart=vt,Jt.lookahead=E-1,rt(Jt)}return Jt.strstart+=Jt.lookahead,Jt.block_start=Jt.strstart,Jt.insert=Jt.lookahead,Jt.lookahead=0,Jt.match_length=Jt.prev_length=E-1,Jt.match_available=0,X.next_in=ot,X.input=ct,X.avail_in=ie,Jt.wrap=Tt,C},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(c,h,d){h.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(c,h,d){h.exports=function(p,m){var v,b,g,y,k,S,C,O,L,j,U,z,Y,A,I,_,x,T,E,M,F,P,W,N,q;v=p.state,b=p.next_in,N=p.input,g=b+(p.avail_in-5),y=p.next_out,q=p.output,k=y-(m-p.avail_out),S=y+(p.avail_out-257),C=v.dmax,O=v.wsize,L=v.whave,j=v.wnext,U=v.window,z=v.hold,Y=v.bits,A=v.lencode,I=v.distcode,_=(1<<v.lenbits)-1,x=(1<<v.distbits)-1;t:do{Y<15&&(z+=N[b++]<<Y,Y+=8,z+=N[b++]<<Y,Y+=8),T=A[z&_];e:for(;;){if(z>>>=E=T>>>24,Y-=E,(E=T>>>16&255)==0)q[y++]=65535&T;else{if(!(16&E)){if(!(64&E)){T=A[(65535&T)+(z&(1<<E)-1)];continue e}if(32&E){v.mode=12;break t}p.msg="invalid literal/length code",v.mode=30;break t}M=65535&T,(E&=15)&&(Y<E&&(z+=N[b++]<<Y,Y+=8),M+=z&(1<<E)-1,z>>>=E,Y-=E),Y<15&&(z+=N[b++]<<Y,Y+=8,z+=N[b++]<<Y,Y+=8),T=I[z&x];r:for(;;){if(z>>>=E=T>>>24,Y-=E,!(16&(E=T>>>16&255))){if(!(64&E)){T=I[(65535&T)+(z&(1<<E)-1)];continue r}p.msg="invalid distance code",v.mode=30;break t}if(F=65535&T,Y<(E&=15)&&(z+=N[b++]<<Y,(Y+=8)<E&&(z+=N[b++]<<Y,Y+=8)),C<(F+=z&(1<<E)-1)){p.msg="invalid distance too far back",v.mode=30;break t}if(z>>>=E,Y-=E,(E=y-k)<F){if(L<(E=F-E)&&v.sane){p.msg="invalid distance too far back",v.mode=30;break t}if(W=U,(P=0)===j){if(P+=O-E,E<M){for(M-=E;q[y++]=U[P++],--E;);P=y-F,W=q}}else if(j<E){if(P+=O+j-E,(E-=j)<M){for(M-=E;q[y++]=U[P++],--E;);if(P=0,j<M){for(M-=E=j;q[y++]=U[P++],--E;);P=y-F,W=q}}}else if(P+=j-E,E<M){for(M-=E;q[y++]=U[P++],--E;);P=y-F,W=q}for(;2<M;)q[y++]=W[P++],q[y++]=W[P++],q[y++]=W[P++],M-=3;M&&(q[y++]=W[P++],1<M&&(q[y++]=W[P++]))}else{for(P=y-F;q[y++]=q[P++],q[y++]=q[P++],q[y++]=q[P++],2<(M-=3););M&&(q[y++]=q[P++],1<M&&(q[y++]=q[P++]))}break}}break}}while(b<g&&y<S);b-=M=Y>>3,z&=(1<<(Y-=M<<3))-1,p.next_in=b,p.next_out=y,p.avail_in=b<g?g-b+5:5-(b-g),p.avail_out=y<S?S-y+257:257-(y-S),v.hold=z,v.bits=Y}},{}],49:[function(c,h,d){var p=c("../utils/common"),m=c("./adler32"),v=c("./crc32"),b=c("./inffast"),g=c("./inftrees"),y=1,k=2,S=0,C=-2,O=1,L=852,j=592;function U(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function z(){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 p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Y(P){var W;return P&&P.state?(W=P.state,P.total_in=P.total_out=W.total=0,P.msg="",W.wrap&&(P.adler=1&W.wrap),W.mode=O,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new p.Buf32(L),W.distcode=W.distdyn=new p.Buf32(j),W.sane=1,W.back=-1,S):C}function A(P){var W;return P&&P.state?((W=P.state).wsize=0,W.whave=0,W.wnext=0,Y(P)):C}function I(P,W){var N,q;return P&&P.state?(q=P.state,W<0?(N=0,W=-W):(N=1+(W>>4),W<48&&(W&=15)),W&&(W<8||15<W)?C:(q.window!==null&&q.wbits!==W&&(q.window=null),q.wrap=N,q.wbits=W,A(P))):C}function _(P,W){var N,q;return P?(q=new z,(P.state=q).window=null,(N=I(P,W))!==S&&(P.state=null),N):C}var x,T,E=!0;function M(P){if(E){var W;for(x=new p.Buf32(512),T=new p.Buf32(32),W=0;W<144;)P.lens[W++]=8;for(;W<256;)P.lens[W++]=9;for(;W<280;)P.lens[W++]=7;for(;W<288;)P.lens[W++]=8;for(g(y,P.lens,0,288,x,0,P.work,{bits:9}),W=0;W<32;)P.lens[W++]=5;g(k,P.lens,0,32,T,0,P.work,{bits:5}),E=!1}P.lencode=x,P.lenbits=9,P.distcode=T,P.distbits=5}function F(P,W,N,q){var nt,J=P.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new p.Buf8(J.wsize)),q>=J.wsize?(p.arraySet(J.window,W,N-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):(q<(nt=J.wsize-J.wnext)&&(nt=q),p.arraySet(J.window,W,N-q,nt,J.wnext),(q-=nt)?(p.arraySet(J.window,W,N-q,q,0),J.wnext=q,J.whave=J.wsize):(J.wnext+=nt,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=nt))),0}d.inflateReset=A,d.inflateReset2=I,d.inflateResetKeep=Y,d.inflateInit=function(P){return _(P,15)},d.inflateInit2=_,d.inflate=function(P,W){var N,q,nt,J,St,kt,Mt,at,K,it,st,Nt,rt,mt,Xt,G,tt,dt,Dt,re,X,Gt,Jt,vt,gt=0,Tt=new p.Buf8(4),ie=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return C;(N=P.state).mode===12&&(N.mode=13),St=P.next_out,nt=P.output,Mt=P.avail_out,J=P.next_in,q=P.input,kt=P.avail_in,at=N.hold,K=N.bits,it=kt,st=Mt,Gt=S;t:for(;;)switch(N.mode){case O:if(N.wrap===0){N.mode=13;break}for(;K<16;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(2&N.wrap&&at===35615){Tt[N.check=0]=255&at,Tt[1]=at>>>8&255,N.check=v(N.check,Tt,2,0),K=at=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&at)<<8)+(at>>8))%31){P.msg="incorrect header check",N.mode=30;break}if((15&at)!=8){P.msg="unknown compression method",N.mode=30;break}if(K-=4,X=8+(15&(at>>>=4)),N.wbits===0)N.wbits=X;else if(X>N.wbits){P.msg="invalid window size",N.mode=30;break}N.dmax=1<<X,P.adler=N.check=1,N.mode=512&at?10:12,K=at=0;break;case 2:for(;K<16;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(N.flags=at,(255&N.flags)!=8){P.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){P.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=at>>8&1),512&N.flags&&(Tt[0]=255&at,Tt[1]=at>>>8&255,N.check=v(N.check,Tt,2,0)),K=at=0,N.mode=3;case 3:for(;K<32;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}N.head&&(N.head.time=at),512&N.flags&&(Tt[0]=255&at,Tt[1]=at>>>8&255,Tt[2]=at>>>16&255,Tt[3]=at>>>24&255,N.check=v(N.check,Tt,4,0)),K=at=0,N.mode=4;case 4:for(;K<16;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}N.head&&(N.head.xflags=255&at,N.head.os=at>>8),512&N.flags&&(Tt[0]=255&at,Tt[1]=at>>>8&255,N.check=v(N.check,Tt,2,0)),K=at=0,N.mode=5;case 5:if(1024&N.flags){for(;K<16;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}N.length=at,N.head&&(N.head.extra_len=at),512&N.flags&&(Tt[0]=255&at,Tt[1]=at>>>8&255,N.check=v(N.check,Tt,2,0)),K=at=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(kt<(Nt=N.length)&&(Nt=kt),Nt&&(N.head&&(X=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),p.arraySet(N.head.extra,q,J,Nt,X)),512&N.flags&&(N.check=v(N.check,q,Nt,J)),kt-=Nt,J+=Nt,N.length-=Nt),N.length))break t;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(kt===0)break t;for(Nt=0;X=q[J+Nt++],N.head&&X&&N.length<65536&&(N.head.name+=String.fromCharCode(X)),X&&Nt<kt;);if(512&N.flags&&(N.check=v(N.check,q,Nt,J)),kt-=Nt,J+=Nt,X)break t}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(kt===0)break t;for(Nt=0;X=q[J+Nt++],N.head&&X&&N.length<65536&&(N.head.comment+=String.fromCharCode(X)),X&&Nt<kt;);if(512&N.flags&&(N.check=v(N.check,q,Nt,J)),kt-=Nt,J+=Nt,X)break t}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;K<16;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(at!==(65535&N.check)){P.msg="header crc mismatch",N.mode=30;break}K=at=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),P.adler=N.check=0,N.mode=12;break;case 10:for(;K<32;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}P.adler=N.check=U(at),K=at=0,N.mode=11;case 11:if(N.havedict===0)return P.next_out=St,P.avail_out=Mt,P.next_in=J,P.avail_in=kt,N.hold=at,N.bits=K,2;P.adler=N.check=1,N.mode=12;case 12:if(W===5||W===6)break t;case 13:if(N.last){at>>>=7&K,K-=7&K,N.mode=27;break}for(;K<3;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}switch(N.last=1&at,K-=1,3&(at>>>=1)){case 0:N.mode=14;break;case 1:if(M(N),N.mode=20,W!==6)break;at>>>=2,K-=2;break t;case 2:N.mode=17;break;case 3:P.msg="invalid block type",N.mode=30}at>>>=2,K-=2;break;case 14:for(at>>>=7&K,K-=7&K;K<32;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if((65535&at)!=(at>>>16^65535)){P.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&at,K=at=0,N.mode=15,W===6)break t;case 15:N.mode=16;case 16:if(Nt=N.length){if(kt<Nt&&(Nt=kt),Mt<Nt&&(Nt=Mt),Nt===0)break t;p.arraySet(nt,q,J,Nt,St),kt-=Nt,J+=Nt,Mt-=Nt,St+=Nt,N.length-=Nt;break}N.mode=12;break;case 17:for(;K<14;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(N.nlen=257+(31&at),at>>>=5,K-=5,N.ndist=1+(31&at),at>>>=5,K-=5,N.ncode=4+(15&at),at>>>=4,K-=4,286<N.nlen||30<N.ndist){P.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;K<3;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}N.lens[ie[N.have++]]=7&at,at>>>=3,K-=3}for(;N.have<19;)N.lens[ie[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,Jt={bits:N.lenbits},Gt=g(0,N.lens,0,19,N.lencode,0,N.work,Jt),N.lenbits=Jt.bits,Gt){P.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;G=(gt=N.lencode[at&(1<<N.lenbits)-1])>>>16&255,tt=65535>,!((Xt=gt>>>24)<=K);){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(tt<16)at>>>=Xt,K-=Xt,N.lens[N.have++]=tt;else{if(tt===16){for(vt=Xt+2;K<vt;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(at>>>=Xt,K-=Xt,N.have===0){P.msg="invalid bit length repeat",N.mode=30;break}X=N.lens[N.have-1],Nt=3+(3&at),at>>>=2,K-=2}else if(tt===17){for(vt=Xt+3;K<vt;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}K-=Xt,X=0,Nt=3+(7&(at>>>=Xt)),at>>>=3,K-=3}else{for(vt=Xt+7;K<vt;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}K-=Xt,X=0,Nt=11+(127&(at>>>=Xt)),at>>>=7,K-=7}if(N.have+Nt>N.nlen+N.ndist){P.msg="invalid bit length repeat",N.mode=30;break}for(;Nt--;)N.lens[N.have++]=X}}if(N.mode===30)break;if(N.lens[256]===0){P.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,Jt={bits:N.lenbits},Gt=g(y,N.lens,0,N.nlen,N.lencode,0,N.work,Jt),N.lenbits=Jt.bits,Gt){P.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,Jt={bits:N.distbits},Gt=g(k,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,Jt),N.distbits=Jt.bits,Gt){P.msg="invalid distances set",N.mode=30;break}if(N.mode=20,W===6)break t;case 20:N.mode=21;case 21:if(6<=kt&&258<=Mt){P.next_out=St,P.avail_out=Mt,P.next_in=J,P.avail_in=kt,N.hold=at,N.bits=K,b(P,st),St=P.next_out,nt=P.output,Mt=P.avail_out,J=P.next_in,q=P.input,kt=P.avail_in,at=N.hold,K=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;G=(gt=N.lencode[at&(1<<N.lenbits)-1])>>>16&255,tt=65535>,!((Xt=gt>>>24)<=K);){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(G&&!(240&G)){for(dt=Xt,Dt=G,re=tt;G=(gt=N.lencode[re+((at&(1<<dt+Dt)-1)>>dt)])>>>16&255,tt=65535>,!(dt+(Xt=gt>>>24)<=K);){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}at>>>=dt,K-=dt,N.back+=dt}if(at>>>=Xt,K-=Xt,N.back+=Xt,N.length=tt,G===0){N.mode=26;break}if(32&G){N.back=-1,N.mode=12;break}if(64&G){P.msg="invalid literal/length code",N.mode=30;break}N.extra=15&G,N.mode=22;case 22:if(N.extra){for(vt=N.extra;K<vt;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}N.length+=at&(1<<N.extra)-1,at>>>=N.extra,K-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;G=(gt=N.distcode[at&(1<<N.distbits)-1])>>>16&255,tt=65535>,!((Xt=gt>>>24)<=K);){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(!(240&G)){for(dt=Xt,Dt=G,re=tt;G=(gt=N.distcode[re+((at&(1<<dt+Dt)-1)>>dt)])>>>16&255,tt=65535>,!(dt+(Xt=gt>>>24)<=K);){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}at>>>=dt,K-=dt,N.back+=dt}if(at>>>=Xt,K-=Xt,N.back+=Xt,64&G){P.msg="invalid distance code",N.mode=30;break}N.offset=tt,N.extra=15&G,N.mode=24;case 24:if(N.extra){for(vt=N.extra;K<vt;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}N.offset+=at&(1<<N.extra)-1,at>>>=N.extra,K-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){P.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(Mt===0)break t;if(Nt=st-Mt,N.offset>Nt){if((Nt=N.offset-Nt)>N.whave&&N.sane){P.msg="invalid distance too far back",N.mode=30;break}rt=Nt>N.wnext?(Nt-=N.wnext,N.wsize-Nt):N.wnext-Nt,Nt>N.length&&(Nt=N.length),mt=N.window}else mt=nt,rt=St-N.offset,Nt=N.length;for(Mt<Nt&&(Nt=Mt),Mt-=Nt,N.length-=Nt;nt[St++]=mt[rt++],--Nt;);N.length===0&&(N.mode=21);break;case 26:if(Mt===0)break t;nt[St++]=N.length,Mt--,N.mode=21;break;case 27:if(N.wrap){for(;K<32;){if(kt===0)break t;kt--,at|=q[J++]<<K,K+=8}if(st-=Mt,P.total_out+=st,N.total+=st,st&&(P.adler=N.check=N.flags?v(N.check,nt,st,St-st):m(N.check,nt,st,St-st)),st=Mt,(N.flags?at:U(at))!==N.check){P.msg="incorrect data check",N.mode=30;break}K=at=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;K<32;){if(kt===0)break t;kt--,at+=q[J++]<<K,K+=8}if(at!==(4294967295&N.total)){P.msg="incorrect length check",N.mode=30;break}K=at=0}N.mode=29;case 29:Gt=1;break t;case 30:Gt=-3;break t;case 31:return-4;default:return C}return P.next_out=St,P.avail_out=Mt,P.next_in=J,P.avail_in=kt,N.hold=at,N.bits=K,(N.wsize||st!==P.avail_out&&N.mode<30&&(N.mode<27||W!==4))&&F(P,P.output,P.next_out,st-P.avail_out)?(N.mode=31,-4):(it-=P.avail_in,st-=P.avail_out,P.total_in+=it,P.total_out+=st,N.total+=st,N.wrap&&st&&(P.adler=N.check=N.flags?v(N.check,nt,st,P.next_out-st):m(N.check,nt,st,P.next_out-st)),P.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(it==0&&st===0||W===4)&&Gt===S&&(Gt=-5),Gt)},d.inflateEnd=function(P){if(!P||!P.state)return C;var W=P.state;return W.window&&(W.window=null),P.state=null,S},d.inflateGetHeader=function(P,W){var N;return P&&P.state&&2&(N=P.state).wrap?((N.head=W).done=!1,S):C},d.inflateSetDictionary=function(P,W){var N,q=W.length;return P&&P.state?(N=P.state).wrap!==0&&N.mode!==11?C:N.mode===11&&m(1,W,q,0)!==N.check?-3:F(P,W,q,q)?(N.mode=31,-4):(N.havedict=1,S):C},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(c,h,d){var p=c("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],v=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],b=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];h.exports=function(y,k,S,C,O,L,j,U){var z,Y,A,I,_,x,T,E,M,F=U.bits,P=0,W=0,N=0,q=0,nt=0,J=0,St=0,kt=0,Mt=0,at=0,K=null,it=0,st=new p.Buf16(16),Nt=new p.Buf16(16),rt=null,mt=0;for(P=0;P<=15;P++)st[P]=0;for(W=0;W<C;W++)st[k[S+W]]++;for(nt=F,q=15;1<=q&&st[q]===0;q--);if(q<nt&&(nt=q),q===0)return O[L++]=20971520,O[L++]=20971520,U.bits=1,0;for(N=1;N<q&&st[N]===0;N++);for(nt<N&&(nt=N),P=kt=1;P<=15;P++)if(kt<<=1,(kt-=st[P])<0)return-1;if(0<kt&&(y===0||q!==1))return-1;for(Nt[1]=0,P=1;P<15;P++)Nt[P+1]=Nt[P]+st[P];for(W=0;W<C;W++)k[S+W]!==0&&(j[Nt[k[S+W]]++]=W);if(x=y===0?(K=rt=j,19):y===1?(K=m,it-=257,rt=v,mt-=257,256):(K=b,rt=g,-1),P=N,_=L,St=W=at=0,A=-1,I=(Mt=1<<(J=nt))-1,y===1&&852<Mt||y===2&&592<Mt)return 1;for(;;){for(T=P-St,M=j[W]<x?(E=0,j[W]):j[W]>x?(E=rt[mt+j[W]],K[it+j[W]]):(E=96,0),z=1<<P-St,N=Y=1<<J;O[_+(at>>St)+(Y-=z)]=T<<24|E<<16|M,Y!==0;);for(z=1<<P-1;at&z;)z>>=1;if(z!==0?(at&=z-1,at+=z):at=0,W++,--st[P]==0){if(P===q)break;P=k[S+j[W]]}if(nt<P&&(at&I)!==A){for(St===0&&(St=nt),_+=N,kt=1<<(J=P-St);J+St<q&&!((kt-=st[J+St])<=0);)J++,kt<<=1;if(Mt+=1<<J,y===1&&852<Mt||y===2&&592<Mt)return 1;O[A=at&I]=nt<<24|J<<16|_-L}}return at!==0&&(O[_+at]=P-St<<24|64<<16),U.bits=nt,0}},{"../utils/common":41}],51:[function(c,h,d){h.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"}},{}],52:[function(c,h,d){var p=c("../utils/common"),m=0,v=1;function b(gt){for(var Tt=gt.length;0<=--Tt;)gt[Tt]=0}var g=0,y=29,k=256,S=k+1+y,C=30,O=19,L=2*S+1,j=15,U=16,z=7,Y=256,A=16,I=17,_=18,x=[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],T=[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],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(S+2));b(F);var P=new Array(2*C);b(P);var W=new Array(512);b(W);var N=new Array(256);b(N);var q=new Array(y);b(q);var nt,J,St,kt=new Array(C);function Mt(gt,Tt,ie,ot,ct){this.static_tree=gt,this.extra_bits=Tt,this.extra_base=ie,this.elems=ot,this.max_length=ct,this.has_stree=gt&>.length}function at(gt,Tt){this.dyn_tree=gt,this.max_code=0,this.stat_desc=Tt}function K(gt){return gt<256?W[gt]:W[256+(gt>>>7)]}function it(gt,Tt){gt.pending_buf[gt.pending++]=255&Tt,gt.pending_buf[gt.pending++]=Tt>>>8&255}function st(gt,Tt,ie){gt.bi_valid>U-ie?(gt.bi_buf|=Tt<<gt.bi_valid&65535,it(gt,gt.bi_buf),gt.bi_buf=Tt>>U-gt.bi_valid,gt.bi_valid+=ie-U):(gt.bi_buf|=Tt<<gt.bi_valid&65535,gt.bi_valid+=ie)}function Nt(gt,Tt,ie){st(gt,ie[2*Tt],ie[2*Tt+1])}function rt(gt,Tt){for(var ie=0;ie|=1>,gt>>>=1,ie<<=1,0<--Tt;);return ie>>>1}function mt(gt,Tt,ie){var ot,ct,xt=new Array(j+1),Ft=0;for(ot=1;ot<=j;ot++)xt[ot]=Ft=Ft+ie[ot-1]<<1;for(ct=0;ct<=Tt;ct++){var bt=gt[2*ct+1];bt!==0&&(gt[2*ct]=rt(xt[bt]++,bt))}}function Xt(gt){var Tt;for(Tt=0;Tt<S;Tt++)gt.dyn_ltree[2*Tt]=0;for(Tt=0;Tt<C;Tt++)gt.dyn_dtree[2*Tt]=0;for(Tt=0;Tt<O;Tt++)gt.bl_tree[2*Tt]=0;gt.dyn_ltree[2*Y]=1,gt.opt_len=gt.static_len=0,gt.last_lit=gt.matches=0}function G(gt){8<gt.bi_valid?it(gt,gt.bi_buf):0<gt.bi_valid&&(gt.pending_buf[gt.pending++]=gt.bi_buf),gt.bi_buf=0,gt.bi_valid=0}function tt(gt,Tt,ie,ot){var ct=2*Tt,xt=2*ie;return gt[ct]<gt[xt]||gt[ct]===gt[xt]&&ot[Tt]<=ot[ie]}function dt(gt,Tt,ie){for(var ot=gt.heap[ie],ct=ie<<1;ct<=gt.heap_len&&(ct<gt.heap_len&&tt(Tt,gt.heap[ct+1],gt.heap[ct],gt.depth)&&ct++,!tt(Tt,ot,gt.heap[ct],gt.depth));)gt.heap[ie]=gt.heap[ct],ie=ct,ct<<=1;gt.heap[ie]=ot}function Dt(gt,Tt,ie){var ot,ct,xt,Ft,bt=0;if(gt.last_lit!==0)for(;ot=gt.pending_buf[gt.d_buf+2*bt]<<8|gt.pending_buf[gt.d_buf+2*bt+1],ct=gt.pending_buf[gt.l_buf+bt],bt++,ot===0?Nt(gt,ct,Tt):(Nt(gt,(xt=N[ct])+k+1,Tt),(Ft=x[xt])!==0&&st(gt,ct-=q[xt],Ft),Nt(gt,xt=K(--ot),ie),(Ft=T[xt])!==0&&st(gt,ot-=kt[xt],Ft)),bt<gt.last_lit;);Nt(gt,Y,Tt)}function re(gt,Tt){var ie,ot,ct,xt=Tt.dyn_tree,Ft=Tt.stat_desc.static_tree,bt=Tt.stat_desc.has_stree,lt=Tt.stat_desc.elems,Ct=-1;for(gt.heap_len=0,gt.heap_max=L,ie=0;ie<lt;ie++)xt[2*ie]!==0?(gt.heap[++gt.heap_len]=Ct=ie,gt.depth[ie]=0):xt[2*ie+1]=0;for(;gt.heap_len<2;)xt[2*(ct=gt.heap[++gt.heap_len]=Ct<2?++Ct:0)]=1,gt.depth[ct]=0,gt.opt_len--,bt&&(gt.static_len-=Ft[2*ct+1]);for(Tt.max_code=Ct,ie=gt.heap_len>>1;1<=ie;ie--)dt(gt,xt,ie);for(ct=lt;ie=gt.heap[1],gt.heap[1]=gt.heap[gt.heap_len--],dt(gt,xt,1),ot=gt.heap[1],gt.heap[--gt.heap_max]=ie,gt.heap[--gt.heap_max]=ot,xt[2*ct]=xt[2*ie]+xt[2*ot],gt.depth[ct]=(gt.depth[ie]>=gt.depth[ot]?gt.depth[ie]:gt.depth[ot])+1,xt[2*ie+1]=xt[2*ot+1]=ct,gt.heap[1]=ct++,dt(gt,xt,1),2<=gt.heap_len;);gt.heap[--gt.heap_max]=gt.heap[1],function(zt,Zt){var Se,me,Ze,Ae,_e,Je,We=Zt.dyn_tree,$e=Zt.max_code,ir=Zt.stat_desc.static_tree,Le=Zt.stat_desc.has_stree,nr=Zt.stat_desc.extra_bits,Sr=Zt.stat_desc.extra_base,Pr=Zt.stat_desc.max_length,je=0;for(Ae=0;Ae<=j;Ae++)zt.bl_count[Ae]=0;for(We[2*zt.heap[zt.heap_max]+1]=0,Se=zt.heap_max+1;Se<L;Se++)Pr<(Ae=We[2*We[2*(me=zt.heap[Se])+1]+1]+1)&&(Ae=Pr,je++),We[2*me+1]=Ae,$e<me||(zt.bl_count[Ae]++,_e=0,Sr<=me&&(_e=nr[me-Sr]),Je=We[2*me],zt.opt_len+=Je*(Ae+_e),Le&&(zt.static_len+=Je*(ir[2*me+1]+_e)));if(je!==0){do{for(Ae=Pr-1;zt.bl_count[Ae]===0;)Ae--;zt.bl_count[Ae]--,zt.bl_count[Ae+1]+=2,zt.bl_count[Pr]--,je-=2}while(0<je);for(Ae=Pr;Ae!==0;Ae--)for(me=zt.bl_count[Ae];me!==0;)$e<(Ze=zt.heap[--Se])||(We[2*Ze+1]!==Ae&&(zt.opt_len+=(Ae-We[2*Ze+1])*We[2*Ze],We[2*Ze+1]=Ae),me--)}}(gt,Tt),mt(xt,Ct,gt.bl_count)}function X(gt,Tt,ie){var ot,ct,xt=-1,Ft=Tt[1],bt=0,lt=7,Ct=4;for(Ft===0&&(lt=138,Ct=3),Tt[2*(ie+1)+1]=65535,ot=0;ot<=ie;ot++)ct=Ft,Ft=Tt[2*(ot+1)+1],++bt<lt&&ct===Ft||(bt<Ct?gt.bl_tree[2*ct]+=bt:ct!==0?(ct!==xt&>.bl_tree[2*ct]++,gt.bl_tree[2*A]++):bt<=10?gt.bl_tree[2*I]++:gt.bl_tree[2*_]++,xt=ct,Ct=(bt=0)===Ft?(lt=138,3):ct===Ft?(lt=6,3):(lt=7,4))}function Gt(gt,Tt,ie){var ot,ct,xt=-1,Ft=Tt[1],bt=0,lt=7,Ct=4;for(Ft===0&&(lt=138,Ct=3),ot=0;ot<=ie;ot++)if(ct=Ft,Ft=Tt[2*(ot+1)+1],!(++bt<lt&&ct===Ft)){if(bt<Ct)for(;Nt(gt,ct,gt.bl_tree),--bt!=0;);else ct!==0?(ct!==xt&&(Nt(gt,ct,gt.bl_tree),bt--),Nt(gt,A,gt.bl_tree),st(gt,bt-3,2)):bt<=10?(Nt(gt,I,gt.bl_tree),st(gt,bt-3,3)):(Nt(gt,_,gt.bl_tree),st(gt,bt-11,7));xt=ct,Ct=(bt=0)===Ft?(lt=138,3):ct===Ft?(lt=6,3):(lt=7,4)}}b(kt);var Jt=!1;function vt(gt,Tt,ie,ot){var ct,xt,Ft,bt;st(gt,(g<<1)+(ot?1:0),3),xt=Tt,Ft=ie,bt=!0,G(ct=gt),bt&&(it(ct,Ft),it(ct,~Ft)),p.arraySet(ct.pending_buf,ct.window,xt,Ft,ct.pending),ct.pending+=Ft}d._tr_init=function(gt){Jt||(function(){var Tt,ie,ot,ct,xt,Ft=new Array(j+1);for(ct=ot=0;ct<y-1;ct++)for(q[ct]=ot,Tt=0;Tt<1<<x[ct];Tt++)N[ot++]=ct;for(N[ot-1]=ct,ct=xt=0;ct<16;ct++)for(kt[ct]=xt,Tt=0;Tt<1<<T[ct];Tt++)W[xt++]=ct;for(xt>>=7;ct<C;ct++)for(kt[ct]=xt<<7,Tt=0;Tt<1<<T[ct]-7;Tt++)W[256+xt++]=ct;for(ie=0;ie<=j;ie++)Ft[ie]=0;for(Tt=0;Tt<=143;)F[2*Tt+1]=8,Tt++,Ft[8]++;for(;Tt<=255;)F[2*Tt+1]=9,Tt++,Ft[9]++;for(;Tt<=279;)F[2*Tt+1]=7,Tt++,Ft[7]++;for(;Tt<=287;)F[2*Tt+1]=8,Tt++,Ft[8]++;for(mt(F,S+1,Ft),Tt=0;Tt<C;Tt++)P[2*Tt+1]=5,P[2*Tt]=rt(Tt,5);nt=new Mt(F,x,k+1,S,j),J=new Mt(P,T,0,C,j),St=new Mt(new Array(0),E,0,O,z)}(),Jt=!0),gt.l_desc=new at(gt.dyn_ltree,nt),gt.d_desc=new at(gt.dyn_dtree,J),gt.bl_desc=new at(gt.bl_tree,St),gt.bi_buf=0,gt.bi_valid=0,Xt(gt)},d._tr_stored_block=vt,d._tr_flush_block=function(gt,Tt,ie,ot){var ct,xt,Ft=0;0<gt.level?(gt.strm.data_type===2&&(gt.strm.data_type=function(bt){var lt,Ct=4093624447;for(lt=0;lt<=31;lt++,Ct>>>=1)if(1&Ct&&bt.dyn_ltree[2*lt]!==0)return m;if(bt.dyn_ltree[18]!==0||bt.dyn_ltree[20]!==0||bt.dyn_ltree[26]!==0)return v;for(lt=32;lt<k;lt++)if(bt.dyn_ltree[2*lt]!==0)return v;return m}(gt)),re(gt,gt.l_desc),re(gt,gt.d_desc),Ft=function(bt){var lt;for(X(bt,bt.dyn_ltree,bt.l_desc.max_code),X(bt,bt.dyn_dtree,bt.d_desc.max_code),re(bt,bt.bl_desc),lt=O-1;3<=lt&&bt.bl_tree[2*M[lt]+1]===0;lt--);return bt.opt_len+=3*(lt+1)+5+5+4,lt}(gt),ct=gt.opt_len+3+7>>>3,(xt=gt.static_len+3+7>>>3)<=ct&&(ct=xt)):ct=xt=ie+5,ie+4<=ct&&Tt!==-1?vt(gt,Tt,ie,ot):gt.strategy===4||xt===ct?(st(gt,2+(ot?1:0),3),Dt(gt,F,P)):(st(gt,4+(ot?1:0),3),function(bt,lt,Ct,zt){var Zt;for(st(bt,lt-257,5),st(bt,Ct-1,5),st(bt,zt-4,4),Zt=0;Zt<zt;Zt++)st(bt,bt.bl_tree[2*M[Zt]+1],3);Gt(bt,bt.dyn_ltree,lt-1),Gt(bt,bt.dyn_dtree,Ct-1)}(gt,gt.l_desc.max_code+1,gt.d_desc.max_code+1,Ft+1),Dt(gt,gt.dyn_ltree,gt.dyn_dtree)),Xt(gt),ot&&G(gt)},d._tr_tally=function(gt,Tt,ie){return gt.pending_buf[gt.d_buf+2*gt.last_lit]=Tt>>>8&255,gt.pending_buf[gt.d_buf+2*gt.last_lit+1]=255&Tt,gt.pending_buf[gt.l_buf+gt.last_lit]=255&ie,gt.last_lit++,Tt===0?gt.dyn_ltree[2*ie]++:(gt.matches++,Tt--,gt.dyn_ltree[2*(N[ie]+k+1)]++,gt.dyn_dtree[2*K(Tt)]++),gt.last_lit===gt.lit_bufsize-1},d._tr_align=function(gt){var Tt;st(gt,2,3),Nt(gt,Y,F),(Tt=gt).bi_valid===16?(it(Tt,Tt.bi_buf),Tt.bi_buf=0,Tt.bi_valid=0):8<=Tt.bi_valid&&(Tt.pending_buf[Tt.pending++]=255&Tt.bi_buf,Tt.bi_buf>>=8,Tt.bi_valid-=8)}},{"../utils/common":41}],53:[function(c,h,d){h.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(c,h,d){(function(p){(function(m,v){if(!m.setImmediate){var b,g,y,k,S=1,C={},O=!1,L=m.document,j=Object.getPrototypeOf&&Object.getPrototypeOf(m);j=j&&j.setTimeout?j:m,b={}.toString.call(m.process)==="[object process]"?function(A){n.nextTick(function(){z(A)})}:function(){if(m.postMessage&&!m.importScripts){var A=!0,I=m.onmessage;return m.onmessage=function(){A=!1},m.postMessage("","*"),m.onmessage=I,A}}()?(k="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",Y,!1):m.attachEvent("onmessage",Y),function(A){m.postMessage(k+A,"*")}):m.MessageChannel?((y=new MessageChannel).port1.onmessage=function(A){z(A.data)},function(A){y.port2.postMessage(A)}):L&&"onreadystatechange"in L.createElement("script")?(g=L.documentElement,function(A){var I=L.createElement("script");I.onreadystatechange=function(){z(A),I.onreadystatechange=null,g.removeChild(I),I=null},g.appendChild(I)}):function(A){setTimeout(z,0,A)},j.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var I=new Array(arguments.length-1),_=0;_<I.length;_++)I[_]=arguments[_+1];var x={callback:A,args:I};return C[S]=x,b(S),S++},j.clearImmediate=U}function U(A){delete C[A]}function z(A){if(O)setTimeout(z,0,A);else{var I=C[A];if(I){O=!0;try{(function(_){var x=_.callback,T=_.args;switch(T.length){case 0:x();break;case 1:x(T[0]);break;case 2:x(T[0],T[1]);break;case 3:x(T[0],T[1],T[2]);break;default:x.apply(v,T)}})(I)}finally{U(A),O=!1}}}}function Y(A){A.source===m&&typeof A.data=="string"&&A.data.indexOf(k)===0&&z(+A.data.slice(k.length))}})(typeof self>"u"?p===void 0?this:p:self)}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],t("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(t,r,e){(function(n){(function(){var a="[object Symbol]",o=/[\\^$.*+?()[\]{}|]/g,s=RegExp(o.source),i=typeof n=="object"&&n&&n.Object===Object&&n,u=typeof self=="object"&&self&&self.Object===Object&&self,l=i||u||Function("return this")(),f=Object.prototype.toString,c=l.Symbol,h=c?c.prototype:void 0,d=h?h.toString:void 0;function p(y){if(typeof y=="string")return y;if(v(y))return d?d.call(y):"";var k=y+"";return k=="0"&&1/y==-1/0?"-0":k}function m(y){return!!y&&typeof y=="object"}function v(y){return typeof y=="symbol"||m(y)&&f.call(y)==a}function b(y){return y==null?"":p(y)}function g(y){return(y=b(y))&&s.test(y)?y.replace(o,"\\$&"):y}r.exports=g}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(t,r,e){(function(n){(function(){var a=200,o="Expected a function",s="__lodash_hash_undefined__",i=1,u=2,l=9007199254740991,f="[object Arguments]",c="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",v="[object GeneratorFunction]",b="[object Map]",g="[object Number]",y="[object Object]",k="[object Promise]",S="[object RegExp]",C="[object Set]",O="[object String]",L="[object Symbol]",j="[object WeakMap]",U="[object ArrayBuffer]",z="[object DataView]",Y="[object Float64Array]",A="[object Int8Array]",I="[object Int16Array]",_="[object Int32Array]",x="[object Uint8Array]",T="[object Uint8ClampedArray]",E="[object Uint16Array]",M="[object Uint32Array]",F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/,W=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,nt=/\\(\\)?/g,J=/^\[object .+?Constructor\]$/,St=/^(?:0|[1-9]\d*)$/,kt={};kt["[object Float32Array]"]=kt[Y]=kt[A]=kt[I]=kt[_]=kt[x]=kt[T]=kt[E]=kt[M]=!0,kt[f]=kt[c]=kt[U]=kt[h]=kt[z]=kt[d]=kt[p]=kt[m]=kt[b]=kt[g]=kt[y]=kt[S]=kt[C]=kt[O]=kt[j]=!1;var Mt=typeof n=="object"&&n&&n.Object===Object&&n,at=typeof self=="object"&&self&&self.Object===Object&&self,K=Mt||at||Function("return this")(),it=typeof e=="object"&&e&&!e.nodeType&&e,st=it&&typeof r=="object"&&r&&!r.nodeType&&r,Nt=st&&st.exports===it&&Mt.process,rt=function(){try{return Nt&&Nt.binding("util")}catch{}}(),mt=rt&&rt.isTypedArray;function Xt(ft,jt,fe,qe){for(var Dr=-1,sr=ft?ft.length:0;++Dr<sr;){var sn=ft[Dr];jt(qe,sn,fe(sn),ft)}return qe}function G(ft,jt){for(var fe=-1,qe=ft?ft.length:0;++fe<qe;)if(jt(ft[fe],fe,ft))return!0;return!1}function tt(ft){return function(jt){return jt==null?void 0:jt[ft]}}function dt(ft,jt){for(var fe=-1,qe=Array(ft);++fe<ft;)qe[fe]=jt(fe);return qe}function Dt(ft){return function(jt){return ft(jt)}}function re(ft,jt){return ft==null?void 0:ft[jt]}function X(ft){var jt=!1;if(ft!=null&&typeof ft.toString!="function")try{jt=!!(ft+"")}catch{}return jt}function Gt(ft){var jt=-1,fe=Array(ft.size);return ft.forEach(function(qe,Dr){fe[++jt]=[Dr,qe]}),fe}function Jt(ft,jt){return function(fe){return ft(jt(fe))}}function vt(ft){var jt=-1,fe=Array(ft.size);return ft.forEach(function(qe){fe[++jt]=qe}),fe}var gt,Tt=Array.prototype,ie=Function.prototype,ot=Object.prototype,ct=K["__core-js_shared__"],xt=(gt=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+gt:"",Ft=ie.toString,bt=ot.hasOwnProperty,lt=ot.toString,Ct=RegExp("^"+Ft.call(bt).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=K.Symbol,Zt=K.Uint8Array,Se=ot.propertyIsEnumerable,me=Tt.splice,Ze=Jt(Object.keys,Object),Ae=Ea(K,"DataView"),_e=Ea(K,"Map"),Je=Ea(K,"Promise"),We=Ea(K,"Set"),$e=Ea(K,"WeakMap"),ir=Ea(Object,"create"),Le=Bt(Ae),nr=Bt(_e),Sr=Bt(Je),Pr=Bt(We),je=Bt($e),dr=zt?zt.prototype:void 0,pr=dr?dr.valueOf:void 0,Ne=dr?dr.toString:void 0;function fr(ft){var jt=-1,fe=ft?ft.length:0;for(this.clear();++jt<fe;){var qe=ft[jt];this.set(qe[0],qe[1])}}function _r(){this.__data__=ir?ir(null):{}}function xr(ft){return this.has(ft)&&delete this.__data__[ft]}function Ar(ft){var jt=this.__data__;if(ir){var fe=jt[ft];return fe===s?void 0:fe}return bt.call(jt,ft)?jt[ft]:void 0}function Br(ft){var jt=this.__data__;return ir?jt[ft]!==void 0:bt.call(jt,ft)}function tr(ft,jt){return this.__data__[ft]=ir&&jt===void 0?s:jt,this}function Or(ft){var jt=-1,fe=ft?ft.length:0;for(this.clear();++jt<fe;){var qe=ft[jt];this.set(qe[0],qe[1])}}function Gr(){this.__data__=[]}function Hr(ft){var jt=this.__data__,fe=ul(jt,ft);return!(fe<0||(fe==jt.length-1?jt.pop():me.call(jt,fe,1),0))}function vn(ft){var jt=this.__data__,fe=ul(jt,ft);return fe<0?void 0:jt[fe][1]}function It(ft){return ul(this.__data__,ft)>-1}function se(ft,jt){var fe=this.__data__,qe=ul(fe,ft);return qe<0?fe.push([ft,jt]):fe[qe][1]=jt,this}function he(ft){var jt=-1,fe=ft?ft.length:0;for(this.clear();++jt<fe;){var qe=ft[jt];this.set(qe[0],qe[1])}}function yr(){this.__data__={hash:new fr,map:new(_e||Or),string:new fr}}function Ir(ft){return Io(this,ft).delete(ft)}function xn(ft){return Io(this,ft).get(ft)}function ai(ft){return Io(this,ft).has(ft)}function _i(ft,jt){return Io(this,ft).set(ft,jt),this}function Mi(ft){var jt=-1,fe=ft?ft.length:0;for(this.__data__=new he;++jt<fe;)this.add(ft[jt])}function Sa(ft){return this.__data__.set(ft,s),this}function Ri(ft){return this.__data__.has(ft)}function ei(ft){this.__data__=new Or(ft)}function gn(){this.__data__=new Or}function Kr(ft){return this.__data__.delete(ft)}function Ba(ft){return this.__data__.get(ft)}function Vi(ft){return this.__data__.has(ft)}function ja(ft,jt){var fe=this.__data__;if(fe instanceof Or){var qe=fe.__data__;if(!_e||qe.length<a-1)return qe.push([ft,jt]),this;fe=this.__data__=new he(qe)}return fe.set(ft,jt),this}function Ss(ft,jt){var fe=qr(ft)||Hn(ft)?dt(ft.length,String):[],qe=fe.length,Dr=!!qe;for(var sr in ft)!bt.call(ft,sr)||Dr&&(sr=="length"||Xl(sr,qe))||fe.push(sr);return fe}function ul(ft,jt){for(var fe=ft.length;fe--;)if(Cr(ft[fe][0],jt))return fe;return-1}function Oi(ft,jt,fe,qe){return io(ft,function(Dr,sr,sn){jt(qe,Dr,fe(Dr),sn)}),qe}fr.prototype.clear=_r,fr.prototype.delete=xr,fr.prototype.get=Ar,fr.prototype.has=Br,fr.prototype.set=tr,Or.prototype.clear=Gr,Or.prototype.delete=Hr,Or.prototype.get=vn,Or.prototype.has=It,Or.prototype.set=se,he.prototype.clear=yr,he.prototype.delete=Ir,he.prototype.get=xn,he.prototype.has=ai,he.prototype.set=_i,Mi.prototype.add=Mi.prototype.push=Sa,Mi.prototype.has=Ri,ei.prototype.clear=gn,ei.prototype.delete=Kr,ei.prototype.get=Ba,ei.prototype.has=Vi,ei.prototype.set=ja;var io=Zn(ao),Vs=Es();function ao(ft,jt){return ft&&Vs(ft,jt,be)}function Oo(ft,jt){for(var fe=0,qe=(jt=oo(jt,ft)?[jt]:Ta(jt)).length;ft!=null&&fe<qe;)ft=ft[Ui(jt[fe++])];return fe&&fe==qe?ft:void 0}function ua(ft){return lt.call(ft)}function Hu(ft,jt){return ft!=null&&jt in Object(ft)}function cl(ft,jt,fe,qe,Dr){return ft===jt||(ft==null||jt==null||!Dn(ft)&&!qi(jt)?ft!=ft&&jt!=jt:Wu(ft,jt,cl,fe,qe,Dr))}function Wu(ft,jt,fe,qe,Dr,sr){var sn=qr(ft),Ii=qr(jt),In=c,gi=c;sn||(In=(In=fa(ft))==f?y:In),Ii||(gi=(gi=fa(jt))==f?y:gi);var ki=In==y&&!X(ft),Gi=gi==y&&!X(jt),Aa=In==gi;if(Aa&&!ki)return sr||(sr=new ei),sn||ni(ft)?fl(ft,jt,fe,qe,Dr,sr):pf(ft,jt,In,fe,qe,Dr,sr);if(!(Dr&u)){var ra=ki&&bt.call(ft,"__wrapped__"),fn=Gi&&bt.call(jt,"__wrapped__");if(ra||fn){var $s=ra?ft.value():ft,uo=fn?jt.value():jt;return sr||(sr=new ei),fe($s,uo,qe,Dr,sr)}}return!!Aa&&(sr||(sr=new ei),as(ft,jt,fe,qe,Dr,sr))}function Vu(ft,jt,fe,qe){var Dr=fe.length,sr=Dr;if(ft==null)return!sr;for(ft=Object(ft);Dr--;){var sn=fe[Dr];if(sn[2]?sn[1]!==ft[sn[0]]:!(sn[0]in ft))return!1}for(;++Dr<sr;){var Ii=(sn=fe[Dr])[0],In=ft[Ii],gi=sn[1];if(sn[2]){if(In===void 0&&!(Ii in ft))return!1}else{var ki=new ei,Gi;if(!(Gi===void 0?cl(gi,In,qe,i|u,ki):Gi))return!1}}return!0}function Gl(ft){return!(!Dn(ft)||dl(ft))&&(mi(ft)||X(ft)?Ct:J).test(Bt(ft))}function $u(ft){return qi(ft)&&Bn(ft.length)&&!!kt[lt.call(ft)]}function ca(ft){return typeof ft=="function"?ft:ft==null?Fe:typeof ft=="object"?qr(ft)?so(ft[0],ft[1]):$i(ft):Ke(ft)}function qu(ft){if(!lo(ft))return Ze(ft);var jt=[];for(var fe in Object(ft))bt.call(ft,fe)&&fe!="constructor"&&jt.push(fe);return jt}function $i(ft){var jt=Yu(ft);return jt.length==1&&jt[0][2]?pl(jt[0][0],jt[0][1]):function(fe){return fe===ft||Vu(fe,ft,jt)}}function so(ft,jt){return oo(ft)&&No(jt)?pl(Ui(ft),jt):function(fe){var qe=ss(fe,ft);return qe===void 0&&qe===jt?Ca(fe,ft):cl(jt,qe,void 0,i|u)}}function Gu(ft){return function(jt){return Oo(jt,ft)}}function Ts(ft){if(typeof ft=="string")return ft;if(vi(ft))return Ne?Ne.call(ft):"";var jt=ft+"";return jt=="0"&&1/ft==-1/0?"-0":jt}function Ta(ft){return qr(ft)?ft:Ku(ft)}function Yl(ft,jt){return function(fe,qe){var Dr=qr(fe)?Xt:Oi,sr={};return Dr(fe,ft,ca(qe),sr)}}function Zn(ft,jt){return function(fe,qe){if(fe==null)return fe;if(!Jn(fe))return ft(fe,qe);for(var Dr=fe.length,sr=-1,sn=Object(fe);++sr<Dr&&qe(sn[sr],sr,sn)!==!1;);return fe}}function Es(ft){return function(jt,fe,qe){for(var Dr=-1,sr=Object(jt),sn=qe(jt),Ii=sn.length;Ii--;){var In=sn[++Dr];if(fe(sr[In],In,sr)===!1)break}return jt}}function fl(ft,jt,fe,qe,Dr,sr){var sn=Dr&u,Ii=ft.length,In=jt.length;if(Ii!=In&&!(sn&&In>Ii))return!1;var gi=sr.get(ft);if(gi&&sr.get(jt))return gi==jt;var ki=-1,Gi=!0,Aa=Dr&i?new Mi:void 0;for(sr.set(ft,jt),sr.set(jt,ft);++ki<Ii;){var ra=ft[ki],fn=jt[ki];if(qe)var $s=sn?qe(fn,ra,ki,jt,ft,sr):qe(ra,fn,ki,ft,jt,sr);if($s!==void 0){if($s)continue;Gi=!1;break}if(Aa){if(!G(jt,function(uo,Cs){if(!Aa.has(Cs)&&(ra===uo||fe(ra,uo,qe,Dr,sr)))return Aa.add(Cs)})){Gi=!1;break}}else if(ra!==fn&&!fe(ra,fn,qe,Dr,sr)){Gi=!1;break}}return sr.delete(ft),sr.delete(jt),Gi}function pf(ft,jt,fe,qe,Dr,sr,sn){switch(fe){case z:if(ft.byteLength!=jt.byteLength||ft.byteOffset!=jt.byteOffset)return!1;ft=ft.buffer,jt=jt.buffer;case U:return!(ft.byteLength!=jt.byteLength||!qe(new Zt(ft),new Zt(jt)));case h:case d:case g:return Cr(+ft,+jt);case p:return ft.name==jt.name&&ft.message==jt.message;case S:case O:return ft==jt+"";case b:var Ii=Gt;case C:var In=sr&u;if(Ii||(Ii=vt),ft.size!=jt.size&&!In)return!1;var gi=sn.get(ft);if(gi)return gi==jt;sr|=i,sn.set(ft,jt);var ki=fl(Ii(ft),Ii(jt),qe,Dr,sr,sn);return sn.delete(ft),ki;case L:if(pr)return pr.call(ft)==pr.call(jt)}return!1}function as(ft,jt,fe,qe,Dr,sr){var sn=Dr&u,Ii=be(ft),In=Ii.length;if(In!=be(jt).length&&!sn)return!1;for(var gi=In;gi--;){var ki=Ii[gi];if(!(sn?ki in jt:bt.call(jt,ki)))return!1}var Gi=sr.get(ft);if(Gi&&sr.get(jt))return Gi==jt;var Aa=!0;sr.set(ft,jt),sr.set(jt,ft);for(var ra=sn;++gi<In;){var fn=ft[ki=Ii[gi]],$s=jt[ki];if(qe)var uo=sn?qe($s,fn,ki,jt,ft,sr):qe(fn,$s,ki,ft,jt,sr);if(!(uo===void 0?fn===$s||fe(fn,$s,qe,Dr,sr):uo)){Aa=!1;break}ra||(ra=ki=="constructor")}if(Aa&&!ra){var Cs=ft.constructor,Xu=jt.constructor;Cs==Xu||!("constructor"in ft)||!("constructor"in jt)||typeof Cs=="function"&&Cs instanceof Cs&&typeof Xu=="function"&&Xu instanceof Xu||(Aa=!1)}return sr.delete(ft),sr.delete(jt),Aa}function Io(ft,jt){var fe=ft.__data__;return hl(jt)?fe[typeof jt=="string"?"string":"hash"]:fe.map}function Yu(ft){for(var jt=be(ft),fe=jt.length;fe--;){var qe=jt[fe],Dr=ft[qe];jt[fe]=[qe,Dr,No(Dr)]}return jt}function Ea(ft,jt){var fe=re(ft,jt);return Gl(fe)?fe:void 0}var fa=ua;function Kl(ft,jt,fe){for(var qe,Dr=-1,sr=(jt=oo(jt,ft)?[jt]:Ta(jt)).length;++Dr<sr;){var sn=Ui(jt[Dr]);if(!(qe=ft!=null&&fe(ft,sn)))break;ft=ft[sn]}return qe||!!(sr=ft?ft.length:0)&&Bn(sr)&&Xl(sn,sr)&&(qr(ft)||Hn(ft))}function Xl(ft,jt){return!!(jt=jt??l)&&(typeof ft=="number"||St.test(ft))&&ft>-1&&ft%1==0&&ft<jt}function oo(ft,jt){if(qr(ft))return!1;var fe=typeof ft;return!(fe!="number"&&fe!="symbol"&&fe!="boolean"&&ft!=null&&!vi(ft))||P.test(ft)||!F.test(ft)||jt!=null&&ft in Object(jt)}function hl(ft){var jt=typeof ft;return jt=="string"||jt=="number"||jt=="symbol"||jt=="boolean"?ft!=="__proto__":ft===null}function dl(ft){return!!xt&&xt in ft}function lo(ft){var jt=ft&&ft.constructor;return ft===(typeof jt=="function"&&jt.prototype||ot)}function No(ft){return ft==ft&&!Dn(ft)}function pl(ft,jt){return function(fe){return fe!=null&&fe[ft]===jt&&(jt!==void 0||ft in Object(fe))}}(Ae&&fa(new Ae(new ArrayBuffer(1)))!=z||_e&&fa(new _e)!=b||Je&&fa(Je.resolve())!=k||We&&fa(new We)!=C||$e&&fa(new $e)!=j)&&(fa=function(ft){var jt=lt.call(ft),fe=jt==y?ft.constructor:void 0,qe=fe?Bt(fe):void 0;if(qe)switch(qe){case Le:return z;case nr:return b;case Sr:return k;case Pr:return C;case je:return j}return jt});var Ku=Ve(function(ft){ft=ha(ft);var jt=[];return W.test(ft)&&jt.push(""),ft.replace(N,function(fe,qe,Dr,sr){jt.push(Dr?sr.replace(nt,"$1"):qe||fe)}),jt});function Ui(ft){if(typeof ft=="string"||vi(ft))return ft;var jt=ft+"";return jt=="0"&&1/ft==-1/0?"-0":jt}function Bt(ft){if(ft!=null){try{return Ft.call(ft)}catch{}try{return ft+""}catch{}}return""}var ue=Yl(function(ft,jt,fe){bt.call(ft,fe)?ft[fe].push(jt):ft[fe]=[jt]});function Ve(ft,jt){if(typeof ft!="function"||jt&&typeof jt!="function")throw new TypeError(o);var fe=function(){var qe=arguments,Dr=jt?jt.apply(this,qe):qe[0],sr=fe.cache;if(sr.has(Dr))return sr.get(Dr);var sn=ft.apply(this,qe);return fe.cache=sr.set(Dr,sn),sn};return fe.cache=new(Ve.Cache||he),fe}function Cr(ft,jt){return ft===jt||ft!=ft&&jt!=jt}function Hn(ft){return ri(ft)&&bt.call(ft,"callee")&&(!Se.call(ft,"callee")||lt.call(ft)==f)}Ve.Cache=he;var qr=Array.isArray;function Jn(ft){return ft!=null&&Bn(ft.length)&&!mi(ft)}function ri(ft){return qi(ft)&&Jn(ft)}function mi(ft){var jt=Dn(ft)?lt.call(ft):"";return jt==m||jt==v}function Bn(ft){return typeof ft=="number"&&ft>-1&&ft%1==0&&ft<=l}function Dn(ft){var jt=typeof ft;return!!ft&&(jt=="object"||jt=="function")}function qi(ft){return!!ft&&typeof ft=="object"}function vi(ft){return typeof ft=="symbol"||qi(ft)&<.call(ft)==L}var ni=mt?Dt(mt):$u;function ha(ft){return ft==null?"":Ts(ft)}function ss(ft,jt,fe){var qe=ft==null?void 0:Oo(ft,jt);return qe===void 0?fe:qe}function Ca(ft,jt){return ft!=null&&Kl(ft,jt,Hu)}function be(ft){return Jn(ft)?Ss(ft):qu(ft)}function Fe(ft){return ft}function Ke(ft){return oo(ft)?tt(Ui(ft)):Gu(ft)}r.exports=ue}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(t,r,e){var n="[object Boolean]",a=Object.prototype.toString;function o(i){return i===!0||i===!1||s(i)&&a.call(i)==n}function s(i){return!!i&&typeof i=="object"}r.exports=o},{}],445:[function(t,r,e){(function(n){(function(){var a=200,o="__lodash_hash_undefined__",s=1,i=2,u=9007199254740991,l="[object Arguments]",f="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",v="[object GeneratorFunction]",b="[object Map]",g="[object Number]",y="[object Null]",k="[object Object]",S="[object Promise]",C="[object Proxy]",O="[object RegExp]",L="[object Set]",j="[object String]",U="[object Symbol]",z="[object Undefined]",Y="[object WeakMap]",A="[object ArrayBuffer]",I="[object DataView]",_="[object Float64Array]",x="[object Int8Array]",T="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,nt=/^(?:0|[1-9]\d*)$/,J={};J["[object Float32Array]"]=J[_]=J[x]=J[T]=J[E]=J[M]=J[F]=J[P]=J[W]=!0,J[l]=J[f]=J[A]=J[h]=J[I]=J[d]=J[p]=J[m]=J[b]=J[g]=J[k]=J[O]=J[L]=J[j]=J[Y]=!1;var St=typeof n=="object"&&n&&n.Object===Object&&n,kt=typeof self=="object"&&self&&self.Object===Object&&self,Mt=St||kt||Function("return this")(),at=typeof e=="object"&&e&&!e.nodeType&&e,K=at&&typeof r=="object"&&r&&!r.nodeType&&r,it=K&&K.exports===at,st=it&&St.process,Nt=function(){try{return st&&st.binding&&st.binding("util")}catch{}}(),rt=Nt&&Nt.isTypedArray;function mt(Bt,ue){for(var Ve=-1,Cr=Bt==null?0:Bt.length,Hn=0,qr=[];++Ve<Cr;){var Jn=Bt[Ve];ue(Jn,Ve,Bt)&&(qr[Hn++]=Jn)}return qr}function Xt(Bt,ue){for(var Ve=-1,Cr=ue.length,Hn=Bt.length;++Ve<Cr;)Bt[Hn+Ve]=ue[Ve];return Bt}function G(Bt,ue){for(var Ve=-1,Cr=Bt==null?0:Bt.length;++Ve<Cr;)if(ue(Bt[Ve],Ve,Bt))return!0;return!1}function tt(Bt,ue){for(var Ve=-1,Cr=Array(Bt);++Ve<Bt;)Cr[Ve]=ue(Ve);return Cr}function dt(Bt){return function(ue){return Bt(ue)}}function Dt(Bt,ue){return Bt.has(ue)}function re(Bt,ue){return Bt==null?void 0:Bt[ue]}function X(Bt){var ue=-1,Ve=Array(Bt.size);return Bt.forEach(function(Cr,Hn){Ve[++ue]=[Hn,Cr]}),Ve}function Gt(Bt,ue){return function(Ve){return Bt(ue(Ve))}}function Jt(Bt){var ue=-1,Ve=Array(Bt.size);return Bt.forEach(function(Cr){Ve[++ue]=Cr}),Ve}var vt,gt=Array.prototype,Tt=Function.prototype,ie=Object.prototype,ot=Mt["__core-js_shared__"],ct=Tt.toString,xt=ie.hasOwnProperty,Ft=(vt=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||""))?"Symbol(src)_1."+vt:"",bt=ie.toString,lt=RegExp("^"+ct.call(xt).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ct=it?Mt.Buffer:void 0,zt=Mt.Symbol,Zt=Mt.Uint8Array,Se=ie.propertyIsEnumerable,me=gt.splice,Ze=zt?zt.toStringTag:void 0,Ae=Object.getOwnPropertySymbols,_e=Ct?Ct.isBuffer:void 0,Je=Gt(Object.keys,Object),We=so(Mt,"DataView"),$e=so(Mt,"Map"),ir=so(Mt,"Promise"),Le=so(Mt,"Set"),nr=so(Mt,"WeakMap"),Sr=so(Object,"create"),Pr=as(We),je=as($e),dr=as(ir),pr=as(Le),Ne=as(nr),fr=zt?zt.prototype:void 0,_r=fr?fr.valueOf:void 0;function xr(Bt){var ue=-1,Ve=Bt==null?0:Bt.length;for(this.clear();++ue<Ve;){var Cr=Bt[ue];this.set(Cr[0],Cr[1])}}function Ar(){this.__data__=Sr?Sr(null):{},this.size=0}function Br(Bt){var ue=this.has(Bt)&&delete this.__data__[Bt];return this.size-=ue?1:0,ue}function tr(Bt){var ue=this.__data__;if(Sr){var Ve=ue[Bt];return Ve===o?void 0:Ve}return xt.call(ue,Bt)?ue[Bt]:void 0}function Or(Bt){var ue=this.__data__;return Sr?ue[Bt]!==void 0:xt.call(ue,Bt)}function Gr(Bt,ue){var Ve=this.__data__;return this.size+=this.has(Bt)?0:1,Ve[Bt]=Sr&&ue===void 0?o:ue,this}function Hr(Bt){var ue=-1,Ve=Bt==null?0:Bt.length;for(this.clear();++ue<Ve;){var Cr=Bt[ue];this.set(Cr[0],Cr[1])}}function vn(){this.__data__=[],this.size=0}function It(Bt){var ue=this.__data__,Ve=io(ue,Bt);return!(Ve<0||(Ve==ue.length-1?ue.pop():me.call(ue,Ve,1),--this.size,0))}function se(Bt){var ue=this.__data__,Ve=io(ue,Bt);return Ve<0?void 0:ue[Ve][1]}function he(Bt){return io(this.__data__,Bt)>-1}function yr(Bt,ue){var Ve=this.__data__,Cr=io(Ve,Bt);return Cr<0?(++this.size,Ve.push([Bt,ue])):Ve[Cr][1]=ue,this}function Ir(Bt){var ue=-1,Ve=Bt==null?0:Bt.length;for(this.clear();++ue<Ve;){var Cr=Bt[ue];this.set(Cr[0],Cr[1])}}function xn(){this.size=0,this.__data__={hash:new xr,map:new($e||Hr),string:new xr}}function ai(Bt){var ue=$i(this,Bt).delete(Bt);return this.size-=ue?1:0,ue}function _i(Bt){return $i(this,Bt).get(Bt)}function Mi(Bt){return $i(this,Bt).has(Bt)}function Sa(Bt,ue){var Ve=$i(this,Bt),Cr=Ve.size;return Ve.set(Bt,ue),this.size+=Ve.size==Cr?0:1,this}function Ri(Bt){var ue=-1,Ve=Bt==null?0:Bt.length;for(this.__data__=new Ir;++ue<Ve;)this.add(Bt[ue])}function ei(Bt){return this.__data__.set(Bt,o),this}function gn(Bt){return this.__data__.has(Bt)}function Kr(Bt){var ue=this.__data__=new Hr(Bt);this.size=ue.size}function Ba(){this.__data__=new Hr,this.size=0}function Vi(Bt){var ue=this.__data__,Ve=ue.delete(Bt);return this.size=ue.size,Ve}function ja(Bt){return this.__data__.get(Bt)}function Ss(Bt){return this.__data__.has(Bt)}function ul(Bt,ue){var Ve=this.__data__;if(Ve instanceof Hr){var Cr=Ve.__data__;if(!$e||Cr.length<a-1)return Cr.push([Bt,ue]),this.size=++Ve.size,this;Ve=this.__data__=new Ir(Cr)}return Ve.set(Bt,ue),this.size=Ve.size,this}function Oi(Bt,ue){var Ve=Ea(Bt),Cr=!Ve&&Yu(Bt),Hn=!Ve&&!Cr&&Kl(Bt),qr=!Ve&&!Cr&&!Hn&&No(Bt),Jn=Ve||Cr||Hn||qr,ri=Jn?tt(Bt.length,String):[],mi=ri.length;for(var Bn in Bt)!xt.call(Bt,Bn)||Jn&&(Bn=="length"||Hn&&(Bn=="offset"||Bn=="parent")||qr&&(Bn=="buffer"||Bn=="byteLength"||Bn=="byteOffset")||Yl(Bn,mi))||ri.push(Bn);return ri}function io(Bt,ue){for(var Ve=Bt.length;Ve--;)if(Io(Bt[Ve][0],ue))return Ve;return-1}function Vs(Bt,ue,Ve){var Cr=ue(Bt);return Ea(Bt)?Cr:Xt(Cr,Ve(Bt))}function ao(Bt){return Bt==null?Bt===void 0?z:y:Ze&&Ze in Object(Bt)?Gu(Bt):pf(Bt)}function Oo(Bt){return lo(Bt)&&ao(Bt)==l}function ua(Bt,ue,Ve,Cr,Hn){return Bt===ue||(Bt==null||ue==null||!lo(Bt)&&!lo(ue)?Bt!=Bt&&ue!=ue:Hu(Bt,ue,Ve,Cr,ua,Hn))}function Hu(Bt,ue,Ve,Cr,Hn,qr){var Jn=Ea(Bt),ri=Ea(ue),mi=Jn?f:Ta(Bt),Bn=ri?f:Ta(ue),Dn=(mi=mi==l?k:mi)==k,qi=(Bn=Bn==l?k:Bn)==k,vi=mi==Bn;if(vi&&Kl(Bt)){if(!Kl(ue))return!1;Jn=!0,Dn=!1}if(vi&&!Dn)return qr||(qr=new Kr),Jn||No(Bt)?Gl(Bt,ue,Ve,Cr,Hn,qr):$u(Bt,ue,mi,Ve,Cr,Hn,qr);if(!(Ve&s)){var ni=Dn&&xt.call(Bt,"__wrapped__"),ha=qi&&xt.call(ue,"__wrapped__");if(ni||ha){var ss=ni?Bt.value():Bt,Ca=ha?ue.value():ue;return qr||(qr=new Kr),Hn(ss,Ca,Ve,Cr,qr)}}return!!vi&&(qr||(qr=new Kr),ca(Bt,ue,Ve,Cr,Hn,qr))}function cl(Bt){return!(!dl(Bt)||Es(Bt))&&(oo(Bt)?lt:q).test(as(Bt))}function Wu(Bt){return lo(Bt)&&hl(Bt.length)&&!!J[ao(Bt)]}function Vu(Bt){if(!fl(Bt))return Je(Bt);var ue=[];for(var Ve in Object(Bt))xt.call(Bt,Ve)&&Ve!="constructor"&&ue.push(Ve);return ue}function Gl(Bt,ue,Ve,Cr,Hn,qr){var Jn=Ve&s,ri=Bt.length,mi=ue.length;if(ri!=mi&&!(Jn&&mi>ri))return!1;var Bn=qr.get(Bt);if(Bn&&qr.get(ue))return Bn==ue;var Dn=-1,qi=!0,vi=Ve&i?new Ri:void 0;for(qr.set(Bt,ue),qr.set(ue,Bt);++Dn<ri;){var ni=Bt[Dn],ha=ue[Dn];if(Cr)var ss=Jn?Cr(ha,ni,Dn,ue,Bt,qr):Cr(ni,ha,Dn,Bt,ue,qr);if(ss!==void 0){if(ss)continue;qi=!1;break}if(vi){if(!G(ue,function(Ca,be){if(!Dt(vi,be)&&(ni===Ca||Hn(ni,Ca,Ve,Cr,qr)))return vi.push(be)})){qi=!1;break}}else if(ni!==ha&&!Hn(ni,ha,Ve,Cr,qr)){qi=!1;break}}return qr.delete(Bt),qr.delete(ue),qi}function $u(Bt,ue,Ve,Cr,Hn,qr,Jn){switch(Ve){case I:if(Bt.byteLength!=ue.byteLength||Bt.byteOffset!=ue.byteOffset)return!1;Bt=Bt.buffer,ue=ue.buffer;case A:return!(Bt.byteLength!=ue.byteLength||!qr(new Zt(Bt),new Zt(ue)));case h:case d:case g:return Io(+Bt,+ue);case p:return Bt.name==ue.name&&Bt.message==ue.message;case O:case j:return Bt==ue+"";case b:var ri=X;case L:var mi=Cr&s;if(ri||(ri=Jt),Bt.size!=ue.size&&!mi)return!1;var Bn=Jn.get(Bt);if(Bn)return Bn==ue;Cr|=i,Jn.set(Bt,ue);var Dn=Gl(ri(Bt),ri(ue),Cr,Hn,qr,Jn);return Jn.delete(Bt),Dn;case U:if(_r)return _r.call(Bt)==_r.call(ue)}return!1}function ca(Bt,ue,Ve,Cr,Hn,qr){var Jn=Ve&s,ri=qu(Bt),mi=ri.length;if(mi!=qu(ue).length&&!Jn)return!1;for(var Bn=mi;Bn--;){var Dn=ri[Bn];if(!(Jn?Dn in ue:xt.call(ue,Dn)))return!1}var qi=qr.get(Bt);if(qi&&qr.get(ue))return qi==ue;var vi=!0;qr.set(Bt,ue),qr.set(ue,Bt);for(var ni=Jn;++Bn<mi;){var ha=Bt[Dn=ri[Bn]],ss=ue[Dn];if(Cr)var Ca=Jn?Cr(ss,ha,Dn,ue,Bt,qr):Cr(ha,ss,Dn,Bt,ue,qr);if(!(Ca===void 0?ha===ss||Hn(ha,ss,Ve,Cr,qr):Ca)){vi=!1;break}ni||(ni=Dn=="constructor")}if(vi&&!ni){var be=Bt.constructor,Fe=ue.constructor;be==Fe||!("constructor"in Bt)||!("constructor"in ue)||typeof be=="function"&&be instanceof be&&typeof Fe=="function"&&Fe instanceof Fe||(vi=!1)}return qr.delete(Bt),qr.delete(ue),vi}function qu(Bt){return Vs(Bt,pl,Ts)}function $i(Bt,ue){var Ve=Bt.__data__;return Zn(ue)?Ve[typeof ue=="string"?"string":"hash"]:Ve.map}function so(Bt,ue){var Ve=re(Bt,ue);return cl(Ve)?Ve:void 0}function Gu(Bt){var ue=xt.call(Bt,Ze),Ve=Bt[Ze];try{Bt[Ze]=void 0;var Cr=!0}catch{}var Hn=bt.call(Bt);return Cr&&(ue?Bt[Ze]=Ve:delete Bt[Ze]),Hn}xr.prototype.clear=Ar,xr.prototype.delete=Br,xr.prototype.get=tr,xr.prototype.has=Or,xr.prototype.set=Gr,Hr.prototype.clear=vn,Hr.prototype.delete=It,Hr.prototype.get=se,Hr.prototype.has=he,Hr.prototype.set=yr,Ir.prototype.clear=xn,Ir.prototype.delete=ai,Ir.prototype.get=_i,Ir.prototype.has=Mi,Ir.prototype.set=Sa,Ri.prototype.add=Ri.prototype.push=ei,Ri.prototype.has=gn,Kr.prototype.clear=Ba,Kr.prototype.delete=Vi,Kr.prototype.get=ja,Kr.prototype.has=Ss,Kr.prototype.set=ul;var Ts=Ae?function(Bt){return Bt==null?[]:(Bt=Object(Bt),mt(Ae(Bt),function(ue){return Se.call(Bt,ue)}))}:Ku,Ta=ao;function Yl(Bt,ue){return!!(ue=ue??u)&&(typeof Bt=="number"||nt.test(Bt))&&Bt>-1&&Bt%1==0&&Bt<ue}function Zn(Bt){var ue=typeof Bt;return ue=="string"||ue=="number"||ue=="symbol"||ue=="boolean"?Bt!=="__proto__":Bt===null}function Es(Bt){return!!Ft&&Ft in Bt}function fl(Bt){var ue=Bt&&Bt.constructor;return Bt===(typeof ue=="function"&&ue.prototype||ie)}function pf(Bt){return bt.call(Bt)}function as(Bt){if(Bt!=null){try{return ct.call(Bt)}catch{}try{return Bt+""}catch{}}return""}function Io(Bt,ue){return Bt===ue||Bt!=Bt&&ue!=ue}(We&&Ta(new We(new ArrayBuffer(1)))!=I||$e&&Ta(new $e)!=b||ir&&Ta(ir.resolve())!=S||Le&&Ta(new Le)!=L||nr&&Ta(new nr)!=Y)&&(Ta=function(Bt){var ue=ao(Bt),Ve=ue==k?Bt.constructor:void 0,Cr=Ve?as(Ve):"";if(Cr)switch(Cr){case Pr:return I;case je:return b;case dr:return S;case pr:return L;case Ne:return Y}return ue});var Yu=Oo(function(){return arguments}())?Oo:function(Bt){return lo(Bt)&&xt.call(Bt,"callee")&&!Se.call(Bt,"callee")},Ea=Array.isArray;function fa(Bt){return Bt!=null&&hl(Bt.length)&&!oo(Bt)}var Kl=_e||Ui;function Xl(Bt,ue){return ua(Bt,ue)}function oo(Bt){if(!dl(Bt))return!1;var ue=ao(Bt);return ue==m||ue==v||ue==c||ue==C}function hl(Bt){return typeof Bt=="number"&&Bt>-1&&Bt%1==0&&Bt<=u}function dl(Bt){var ue=typeof Bt;return Bt!=null&&(ue=="object"||ue=="function")}function lo(Bt){return Bt!=null&&typeof Bt=="object"}var No=rt?dt(rt):Wu;function pl(Bt){return fa(Bt)?Oi(Bt):Vu(Bt)}function Ku(){return[]}function Ui(){return!1}r.exports=Xl}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(t,r,e){(function(n){(function(){var a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",i="[object Null]",u="[object Proxy]",l="[object Undefined]",f=typeof n=="object"&&n&&n.Object===Object&&n,c=typeof self=="object"&&self&&self.Object===Object&&self,h=f||c||Function("return this")(),d=Object.prototype,p=d.hasOwnProperty,m=d.toString,v=h.Symbol,b=v?v.toStringTag:void 0;function g(O){return O==null?O===void 0?l:i:b&&b in Object(O)?y(O):k(O)}function y(O){var L=p.call(O,b),j=O[b];try{O[b]=void 0;var U=!0}catch{}var z=m.call(O);return U&&(L?O[b]=j:delete O[b]),z}function k(O){return m.call(O)}function S(O){if(!C(O))return!1;var L=g(O);return L==o||L==s||L==a||L==u}function C(O){var L=typeof O;return O!=null&&(L=="object"||L=="function")}r.exports=S}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(t,r,e){function n(a){return a==null}r.exports=n},{}],448:[function(t,r,e){function n(a){return a===void 0}r.exports=n},{}],449:[function(t,r,e){(function(n){(function(){var a=200,o="__lodash_hash_undefined__",s=1/0,i="[object Function]",u="[object GeneratorFunction]",l=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,c=typeof n=="object"&&n&&n.Object===Object&&n,h=typeof self=="object"&&self&&self.Object===Object&&self,d=c||h||Function("return this")();function p(lt,Ct){return!(!lt||!lt.length)&&v(lt,Ct,0)>-1}function m(lt,Ct,zt,Zt){for(var Se=lt.length,me=zt+-1;++me<Se;)if(Ct(lt[me],me,lt))return me;return-1}function v(lt,Ct,zt){if(Ct!=Ct)return m(lt,b,zt);for(var Zt=zt-1,Se=lt.length;++Zt<Se;)if(lt[Zt]===Ct)return Zt;return-1}function b(lt){return lt!=lt}function g(lt,Ct){return lt.has(Ct)}function y(lt,Ct){return lt==null?void 0:lt[Ct]}function k(lt){var Ct=!1;if(lt!=null&&typeof lt.toString!="function")try{Ct=!!(lt+"")}catch{}return Ct}function S(lt){var Ct=-1,zt=Array(lt.size);return lt.forEach(function(Zt){zt[++Ct]=Zt}),zt}var C,O=Array.prototype,L=Function.prototype,j=Object.prototype,U=d["__core-js_shared__"],z=(C=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",Y=L.toString,A=j.hasOwnProperty,I=j.toString,_=RegExp("^"+Y.call(A).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=O.splice,T=vt(d,"Map"),E=vt(d,"Set"),M=vt(Object,"create");function F(lt){var Ct=-1,zt=lt?lt.length:0;for(this.clear();++Ct<zt;){var Zt=lt[Ct];this.set(Zt[0],Zt[1])}}function P(){this.__data__=M?M(null):{}}function W(lt){return this.has(lt)&&delete this.__data__[lt]}function N(lt){var Ct=this.__data__;if(M){var zt=Ct[lt];return zt===o?void 0:zt}return A.call(Ct,lt)?Ct[lt]:void 0}function q(lt){var Ct=this.__data__;return M?Ct[lt]!==void 0:A.call(Ct,lt)}function nt(lt,Ct){return this.__data__[lt]=M&&Ct===void 0?o:Ct,this}function J(lt){var Ct=-1,zt=lt?lt.length:0;for(this.clear();++Ct<zt;){var Zt=lt[Ct];this.set(Zt[0],Zt[1])}}function St(){this.__data__=[]}function kt(lt){var Ct=this.__data__,zt=Dt(Ct,lt);return!(zt<0||(zt==Ct.length-1?Ct.pop():x.call(Ct,zt,1),0))}function Mt(lt){var Ct=this.__data__,zt=Dt(Ct,lt);return zt<0?void 0:Ct[zt][1]}function at(lt){return Dt(this.__data__,lt)>-1}function K(lt,Ct){var zt=this.__data__,Zt=Dt(zt,lt);return Zt<0?zt.push([lt,Ct]):zt[Zt][1]=Ct,this}function it(lt){var Ct=-1,zt=lt?lt.length:0;for(this.clear();++Ct<zt;){var Zt=lt[Ct];this.set(Zt[0],Zt[1])}}function st(){this.__data__={hash:new F,map:new(T||J),string:new F}}function Nt(lt){return Jt(this,lt).delete(lt)}function rt(lt){return Jt(this,lt).get(lt)}function mt(lt){return Jt(this,lt).has(lt)}function Xt(lt,Ct){return Jt(this,lt).set(lt,Ct),this}function G(lt){var Ct=-1,zt=lt?lt.length:0;for(this.__data__=new it;++Ct<zt;)this.add(lt[Ct])}function tt(lt){return this.__data__.set(lt,o),this}function dt(lt){return this.__data__.has(lt)}function Dt(lt,Ct){for(var zt=lt.length;zt--;)if(ct(lt[zt][0],Ct))return zt;return-1}function re(lt){return!(!Ft(lt)||Tt(lt))&&(xt(lt)||k(lt)?_:f).test(ie(lt))}function X(lt,Ct,zt){var Zt=-1,Se=p,me=lt.length,Ze=!0,Ae=[],_e=Ae;if(me>=a){var Je=Gt(lt);if(Je)return S(Je);Ze=!1,Se=g,_e=new G}else _e=Ae;t:for(;++Zt<me;){var We=lt[Zt],$e=We;if(We=We!==0?We:0,Ze&&$e==$e){for(var ir=_e.length;ir--;)if(_e[ir]===$e)continue t;Ae.push(We)}else Se(_e,$e,zt)||(_e!==Ae&&_e.push($e),Ae.push(We))}return Ae}F.prototype.clear=P,F.prototype.delete=W,F.prototype.get=N,F.prototype.has=q,F.prototype.set=nt,J.prototype.clear=St,J.prototype.delete=kt,J.prototype.get=Mt,J.prototype.has=at,J.prototype.set=K,it.prototype.clear=st,it.prototype.delete=Nt,it.prototype.get=rt,it.prototype.has=mt,it.prototype.set=Xt,G.prototype.add=G.prototype.push=tt,G.prototype.has=dt;var Gt=E&&1/S(new E([,-0]))[1]==s?function(lt){return new E(lt)}:bt;function Jt(lt,Ct){var zt=lt.__data__;return gt(Ct)?zt[typeof Ct=="string"?"string":"hash"]:zt.map}function vt(lt,Ct){var zt=y(lt,Ct);return re(zt)?zt:void 0}function gt(lt){var Ct=typeof lt;return Ct=="string"||Ct=="number"||Ct=="symbol"||Ct=="boolean"?lt!=="__proto__":lt===null}function Tt(lt){return!!z&&z in lt}function ie(lt){if(lt!=null){try{return Y.call(lt)}catch{}try{return lt+""}catch{}}return""}function ot(lt){return lt&<.length?X(lt):[]}function ct(lt,Ct){return lt===Ct||lt!=lt&&Ct!=Ct}function xt(lt){var Ct=Ft(lt)?I.call(lt):"";return Ct==i||Ct==u}function Ft(lt){var Ct=typeof lt;return!!lt&&(Ct=="object"||Ct=="function")}function bt(){}r.exports=ot}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(t,r,e){var n=t("inherits"),a=t("hash-base"),o=t("safe-buffer").Buffer,s=new Array(16);function i(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(d,p){return d<<p|d>>>32-p}function l(d,p,m,v,b,g,y){return u(d+(p&m|~p&v)+b+g|0,y)+p|0}function f(d,p,m,v,b,g,y){return u(d+(p&v|m&~v)+b+g|0,y)+p|0}function c(d,p,m,v,b,g,y){return u(d+(p^m^v)+b+g|0,y)+p|0}function h(d,p,m,v,b,g,y){return u(d+(m^(p|~v))+b+g|0,y)+p|0}n(i,a),i.prototype._update=function(){for(var d=s,p=0;p<16;++p)d[p]=this._block.readInt32LE(4*p);var m=this._a,v=this._b,b=this._c,g=this._d;m=l(m,v,b,g,d[0],3614090360,7),g=l(g,m,v,b,d[1],3905402710,12),b=l(b,g,m,v,d[2],606105819,17),v=l(v,b,g,m,d[3],3250441966,22),m=l(m,v,b,g,d[4],4118548399,7),g=l(g,m,v,b,d[5],1200080426,12),b=l(b,g,m,v,d[6],2821735955,17),v=l(v,b,g,m,d[7],4249261313,22),m=l(m,v,b,g,d[8],1770035416,7),g=l(g,m,v,b,d[9],2336552879,12),b=l(b,g,m,v,d[10],4294925233,17),v=l(v,b,g,m,d[11],2304563134,22),m=l(m,v,b,g,d[12],1804603682,7),g=l(g,m,v,b,d[13],4254626195,12),b=l(b,g,m,v,d[14],2792965006,17),m=f(m,v=l(v,b,g,m,d[15],1236535329,22),b,g,d[1],4129170786,5),g=f(g,m,v,b,d[6],3225465664,9),b=f(b,g,m,v,d[11],643717713,14),v=f(v,b,g,m,d[0],3921069994,20),m=f(m,v,b,g,d[5],3593408605,5),g=f(g,m,v,b,d[10],38016083,9),b=f(b,g,m,v,d[15],3634488961,14),v=f(v,b,g,m,d[4],3889429448,20),m=f(m,v,b,g,d[9],568446438,5),g=f(g,m,v,b,d[14],3275163606,9),b=f(b,g,m,v,d[3],4107603335,14),v=f(v,b,g,m,d[8],1163531501,20),m=f(m,v,b,g,d[13],2850285829,5),g=f(g,m,v,b,d[2],4243563512,9),b=f(b,g,m,v,d[7],1735328473,14),m=c(m,v=f(v,b,g,m,d[12],2368359562,20),b,g,d[5],4294588738,4),g=c(g,m,v,b,d[8],2272392833,11),b=c(b,g,m,v,d[11],1839030562,16),v=c(v,b,g,m,d[14],4259657740,23),m=c(m,v,b,g,d[1],2763975236,4),g=c(g,m,v,b,d[4],1272893353,11),b=c(b,g,m,v,d[7],4139469664,16),v=c(v,b,g,m,d[10],3200236656,23),m=c(m,v,b,g,d[13],681279174,4),g=c(g,m,v,b,d[0],3936430074,11),b=c(b,g,m,v,d[3],3572445317,16),v=c(v,b,g,m,d[6],76029189,23),m=c(m,v,b,g,d[9],3654602809,4),g=c(g,m,v,b,d[12],3873151461,11),b=c(b,g,m,v,d[15],530742520,16),m=h(m,v=c(v,b,g,m,d[2],3299628645,23),b,g,d[0],4096336452,6),g=h(g,m,v,b,d[7],1126891415,10),b=h(b,g,m,v,d[14],2878612391,15),v=h(v,b,g,m,d[5],4237533241,21),m=h(m,v,b,g,d[12],1700485571,6),g=h(g,m,v,b,d[3],2399980690,10),b=h(b,g,m,v,d[10],4293915773,15),v=h(v,b,g,m,d[1],2240044497,21),m=h(m,v,b,g,d[8],1873313359,6),g=h(g,m,v,b,d[15],4264355552,10),b=h(b,g,m,v,d[6],2734768916,15),v=h(v,b,g,m,d[13],1309151649,21),m=h(m,v,b,g,d[4],4149444226,6),g=h(g,m,v,b,d[11],3174756917,10),b=h(b,g,m,v,d[2],718787259,15),v=h(v,b,g,m,d[9],3951481745,21),this._a=this._a+m|0,this._b=this._b+v|0,this._c=this._c+b|0,this._d=this._d+g|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var d=o.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d},r.exports=i},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(t,r,e){var n=t("bn.js"),a=t("brorand");function o(s){this.rand=s||new a.Rand}r.exports=o,o.create=function(s){return new o(s)},o.prototype._randbelow=function(s){var i=s.bitLength(),u=Math.ceil(i/8);do var l=new n(this.rand.generate(u));while(l.cmp(s)>=0);return l},o.prototype._randrange=function(s,i){var u=i.sub(s);return s.add(this._randbelow(u))},o.prototype.test=function(s,i,u){var l=s.bitLength(),f=n.mont(s),c=new n(1).toRed(f);i||(i=Math.max(1,l/48|0));for(var h=s.subn(1),d=0;!h.testn(d);d++);for(var p=s.shrn(d),m=h.toRed(f),v=!0;i>0;i--){var b=this._randrange(new n(2),h);u&&u(b);var g=b.toRed(f).redPow(p);if(g.cmp(c)!==0&&g.cmp(m)!==0){for(var y=1;y<d;y++){if((g=g.redSqr()).cmp(c)===0)return!1;if(g.cmp(m)===0)break}if(y===d)return!1}}return v},o.prototype.getDivisor=function(s,i){var u=s.bitLength(),l=n.mont(s),f=new n(1).toRed(l);i||(i=Math.max(1,u/48|0));for(var c=s.subn(1),h=0;!c.testn(h);h++);for(var d=s.shrn(h),p=c.toRed(l);i>0;i--){var m=this._randrange(new n(2),c),v=s.gcd(m);if(v.cmpn(1)!==0)return v;var b=m.toRed(l).redPow(d);if(b.cmp(f)!==0&&b.cmp(p)!==0){for(var g=1;g<h;g++){if((b=b.redSqr()).cmp(f)===0)return b.fromRed().subn(1).gcd(s);if(b.cmp(p)===0)break}if(g===h)return(b=b.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},{"bn.js":452,brorand:187}],452:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],453:[function(t,r,e){function n(a,o){if(!a)throw new Error(o||"Assertion failed")}r.exports=n,n.equal=function(a,o,s){if(a!=o)throw new Error(s||"Assertion failed: "+a+" != "+o)}},{}],454:[function(t,r,e){var n=e;function a(i,u){if(Array.isArray(i))return i.slice();if(!i)return[];var l=[];if(typeof i!="string"){for(var f=0;f<i.length;f++)l[f]=0|i[f];return l}if(u==="hex")for((i=i.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(i="0"+i),f=0;f<i.length;f+=2)l.push(parseInt(i[f]+i[f+1],16));else for(f=0;f<i.length;f++){var c=i.charCodeAt(f),h=c>>8,d=255&c;h?l.push(h,d):l.push(d)}return l}function o(i){return i.length===1?"0"+i:i}function s(i){for(var u="",l=0;l<i.length;l++)u+=o(i[l].toString(16));return u}n.toArray=a,n.zero2=o,n.toHex=s,n.encode=function(i,u){return u==="hex"?s(i):i}},{}],455:[function(t,r,e){r.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(t,r,e){var n=t("asn1.js");e.certificate=t("./certificate");var a=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=a;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(i),this.key("subjectPublicKey").bitstr())});e.PublicKey=s;var i=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(i),this.key("subjectPrivateKey").octstr())});e.PrivateKey=u;var l=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=l;var f=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=f,e.DSAparam=n.define("DSAparam",function(){this.int()});var c=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=c;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(t,r,e){var n=t("asn1.js"),a=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),i=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),l=n.define("RDNSequence",function(){this.seqof(u)}),f=n.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),c=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(f),this.key("validity").use(c),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(i),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});r.exports=p},{"asn1.js":170}],458:[function(t,r,e){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=t("evp_bytestokey"),i=t("browserify-aes"),u=t("safe-buffer").Buffer;r.exports=function(l,f){var c,h=l.toString(),d=h.match(n);if(d){var p="aes"+d[1],m=u.from(d[2],"hex"),v=u.from(d[3].replace(/[\r\n]/g,""),"base64"),b=s(f,m.slice(0,8),parseInt(d[1],10)).key,g=[],y=i.createDecipheriv(p,b,m);g.push(y.update(v)),g.push(y.final()),c=u.concat(g)}else{var k=h.match(o);c=u.from(k[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(a)[1],data:c}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(t,r,e){var n=t("./asn1"),a=t("./aesid.json"),o=t("./fixProc"),s=t("browserify-aes"),i=t("pbkdf2"),u=t("safe-buffer").Buffer;function l(c){var h;typeof c!="object"||u.isBuffer(c)||(h=c.passphrase,c=c.key),typeof c=="string"&&(c=u.from(c));var d,p,m=o(c,h),v=m.tag,b=m.data;switch(v){case"CERTIFICATE":p=n.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(p||(p=n.PublicKey.decode(b,"der")),d=p.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(p.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return p.subjectPrivateKey=p.subjectPublicKey,{type:"ec",data:p};case"1.2.840.10040.4.1":return p.algorithm.params.pub_key=n.DSAparam.decode(p.subjectPublicKey.data,"der"),{type:"dsa",data:p.algorithm.params};default:throw new Error("unknown key id "+d)}case"ENCRYPTED PRIVATE KEY":b=f(b=n.EncryptedPrivateKey.decode(b,"der"),h);case"PRIVATE KEY":switch(d=(p=n.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(p.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:p.algorithm.curve,privateKey:n.ECPrivateKey.decode(p.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return p.algorithm.params.priv_key=n.DSAparam.decode(p.subjectPrivateKey,"der"),{type:"dsa",params:p.algorithm.params};default:throw new Error("unknown key id "+d)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=n.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+v)}}function f(c,h){var d=c.algorithm.decrypt.kde.kdeparams.salt,p=parseInt(c.algorithm.decrypt.kde.kdeparams.iters.toString(),10),m=a[c.algorithm.decrypt.cipher.algo.join(".")],v=c.algorithm.decrypt.cipher.iv,b=c.subjectPrivateKey,g=parseInt(m.split("-")[1],10)/8,y=i.pbkdf2Sync(h,d,p,g,"sha1"),k=s.createDecipheriv(m,y,v),S=[];return S.push(k.update(b)),S.push(k.final()),u.concat(S)}r.exports=l,l.signature=n.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(t,r,e){e.pbkdf2=t("./lib/async"),e.pbkdf2Sync=t("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(t,r,e){(function(n){(function(){var a,o,s=t("safe-buffer").Buffer,i=t("./precondition"),u=t("./default-encoding"),l=t("./sync"),f=t("./to-buffer"),c=n.crypto&&n.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function p(g){if(n.process&&!n.process.browser||!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(d[g]!==void 0)return d[g];var y=v(a=a||s.alloc(8),a,10,128,g).then(function(){return!0}).catch(function(){return!1});return d[g]=y,y}function m(){return o||(o=n.process&&n.process.nextTick?n.process.nextTick:n.queueMicrotask?n.queueMicrotask:n.setImmediate?n.setImmediate:n.setTimeout)}function v(g,y,k,S,C){return c.importKey("raw",g,{name:"PBKDF2"},!1,["deriveBits"]).then(function(O){return c.deriveBits({name:"PBKDF2",salt:y,iterations:k,hash:{name:C}},O,S<<3)}).then(function(O){return s.from(O)})}function b(g,y){g.then(function(k){m()(function(){y(null,k)})},function(k){m()(function(){y(k)})})}r.exports=function(g,y,k,S,C,O){typeof C=="function"&&(O=C,C=void 0);var L=h[(C=C||"sha1").toLowerCase()];if(L&&typeof n.Promise=="function"){if(i(k,S),g=f(g,u,"Password"),y=f(y,u,"Salt"),typeof O!="function")throw new Error("No callback provided to pbkdf2");b(p(L).then(function(j){return j?v(g,y,k,S,L):l(g,y,k,S,C)}),O)}else m()(function(){var j;try{j=l(g,y,k,S,C)}catch(U){return O(U)}O(null,j)})}}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(t,r,e){(function(n,a){(function(){var o;o=a.process&&a.process.browser?"utf-8":a.process&&a.process.version?parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",r.exports=o}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(t,r,e){var n=Math.pow(2,30)-1;r.exports=function(a,o){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>n||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(t,r,e){var n=t("create-hash/md5"),a=t("ripemd160"),o=t("sha.js"),s=t("safe-buffer").Buffer,i=t("./precondition"),u=t("./default-encoding"),l=t("./to-buffer"),f=s.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(m,v,b){var g=d(m),y=m==="sha512"||m==="sha384"?128:64;v.length>y?v=g(v):v.length<y&&(v=s.concat([v,f],y));for(var k=s.allocUnsafe(y+c[m]),S=s.allocUnsafe(y+c[m]),C=0;C<y;C++)k[C]=54^v[C],S[C]=92^v[C];var O=s.allocUnsafe(y+b+4);k.copy(O,0,0,y),this.ipad1=O,this.ipad2=k,this.opad=S,this.alg=m,this.blocksize=y,this.hash=g,this.size=c[m]}function d(m){function v(g){return o(m).update(g).digest()}function b(g){return new a().update(g).digest()}return m==="rmd160"||m==="ripemd160"?b:m==="md5"?n:v}function p(m,v,b,g,y){i(b,g);var k=new h(y=y||"sha1",m=l(m,u,"Password"),(v=l(v,u,"Salt")).length),S=s.allocUnsafe(g),C=s.allocUnsafe(v.length+4);v.copy(C,0,0,v.length);for(var O=0,L=c[y],j=Math.ceil(g/L),U=1;U<=j;U++){C.writeUInt32BE(U,v.length);for(var z=k.run(C,k.ipad1),Y=z,A=1;A<b;A++){Y=k.run(Y,k.ipad2);for(var I=0;I<L;I++)z[I]^=Y[I]}z.copy(S,O),O+=L}return S}h.prototype.run=function(m,v){return m.copy(v,this.blocksize),this.hash(v).copy(this.opad,this.blocksize),this.hash(this.opad)},r.exports=p},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(t,r,e){var n=t("safe-buffer").Buffer;r.exports=function(a,o,s){if(n.isBuffer(a))return a;if(typeof a=="string")return n.from(a,o);if(ArrayBuffer.isView(a))return n.from(a.buffer);throw new TypeError(s+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(t,r,e){(function(n){(function(){function a(o,s,i,u){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var l,f,c=arguments.length;switch(c){case 0:case 1:return n.nextTick(o);case 2:return n.nextTick(function(){o.call(null,s)});case 3:return n.nextTick(function(){o.call(null,s,i)});case 4:return n.nextTick(function(){o.call(null,s,i,u)});default:for(l=new Array(c-1),f=0;f<l.length;)l[f++]=arguments[f];return n.nextTick(function(){o.apply(null,l)})}}n===void 0||!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.version.indexOf("v1.8.")!==0?r.exports={nextTick:a}:r.exports=n}).call(this)}).call(this,t("_process"))},{_process:467}],467:[function(t,r,e){var n,a,o=r.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(g){if(n===setTimeout)return setTimeout(g,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(g,0);try{return n(g,0)}catch{try{return n.call(null,g,0)}catch{return n.call(this,g,0)}}}function l(g){if(a===clearTimeout)return clearTimeout(g);if((a===i||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(g);try{return a(g)}catch{try{return a.call(null,g)}catch{return a.call(this,g)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:s}catch{n=s}try{a=typeof clearTimeout=="function"?clearTimeout:i}catch{a=i}})();var f,c=[],h=!1,d=-1;function p(){h&&f&&(h=!1,f.length?c=f.concat(c):d=-1,c.length&&m())}function m(){if(!h){var g=u(p);h=!0;for(var y=c.length;y;){for(f=c,c=[];++d<y;)f&&f[d].run();d=-1,y=c.length}f=null,h=!1,l(g)}}function v(g,y){this.fun=g,this.array=y}function b(){}o.nextTick=function(g){var y=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)y[k-1]=arguments[k];c.push(new v(g,y)),c.length!==1||h||u(m)},v.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(g){return[]},o.binding=function(g){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(g){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(t,r,e){e.publicEncrypt=t("./publicEncrypt"),e.privateDecrypt=t("./privateDecrypt"),e.privateEncrypt=function(n,a){return e.publicEncrypt(n,a,!0)},e.publicDecrypt=function(n,a){return e.privateDecrypt(n,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(t,r,e){var n=t("create-hash"),a=t("safe-buffer").Buffer;function o(s){var i=a.allocUnsafe(4);return i.writeUInt32BE(s,0),i}r.exports=function(s,i){for(var u,l=a.alloc(0),f=0;l.length<i;)u=o(f++),l=a.concat([l,n("sha1").update(s).update(u).digest()]);return l.slice(0,i)}},{"create-hash":386,"safe-buffer":494}],470:[function(t,r,e){arguments[4][184][0].apply(e,arguments)},{buffer:188,dup:184}],471:[function(t,r,e){var n=t("parse-asn1"),a=t("./mgf"),o=t("./xor"),s=t("bn.js"),i=t("browserify-rsa"),u=t("create-hash"),l=t("./withPublic"),f=t("safe-buffer").Buffer;function c(p,m){var v=p.modulus.byteLength(),b=u("sha1").update(f.alloc(0)).digest(),g=b.length;if(m[0]!==0)throw new Error("decryption error");var y=m.slice(1,g+1),k=m.slice(g+1),S=o(y,a(k,g)),C=o(k,a(S,v-g-1));if(d(b,C.slice(0,g)))throw new Error("decryption error");for(var O=g;C[O]===0;)O++;if(C[O++]!==1)throw new Error("decryption error");return C.slice(O)}function h(p,m,v){for(var b=m.slice(0,2),g=2,y=0;m[g++]!==0;)if(g>=m.length){y++;break}var k=m.slice(2,g-1);if((b.toString("hex")!=="0002"&&!v||b.toString("hex")!=="0001"&&v)&&y++,k.length<8&&y++,y)throw new Error("decryption error");return m.slice(g)}function d(p,m){p=f.from(p),m=f.from(m);var v=0,b=p.length;p.length!==m.length&&(v++,b=Math.min(p.length,m.length));for(var g=-1;++g<b;)v+=p[g]^m[g];return v}r.exports=function(p,m,v){var b;b=p.padding?p.padding:v?1:4;var g,y=n(p),k=y.modulus.byteLength();if(m.length>k||new s(m).cmp(y.modulus)>=0)throw new Error("decryption error");g=v?l(new s(m),y):i(m,y);var S=f.alloc(k-g.length);if(g=f.concat([S,g],k),b===4)return c(y,g);if(b===1)return h(y,g,v);if(b===3)return g;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(t,r,e){var n=t("parse-asn1"),a=t("randombytes"),o=t("create-hash"),s=t("./mgf"),i=t("./xor"),u=t("bn.js"),l=t("./withPublic"),f=t("browserify-rsa"),c=t("safe-buffer").Buffer;function h(m,v){var b=m.modulus.byteLength(),g=v.length,y=o("sha1").update(c.alloc(0)).digest(),k=y.length,S=2*k;if(g>b-S-2)throw new Error("message too long");var C=c.alloc(b-g-S-2),O=b-k-1,L=a(k),j=i(c.concat([y,C,c.alloc(1,1),v],O),s(L,O)),U=i(L,s(j,k));return new u(c.concat([c.alloc(1),U,j],b))}function d(m,v,b){var g,y=v.length,k=m.modulus.byteLength();if(y>k-11)throw new Error("message too long");return g=b?c.alloc(k-y-3,255):p(k-y-3),new u(c.concat([c.from([0,b?1:2]),g,c.alloc(1),v],k))}function p(m){for(var v,b=c.allocUnsafe(m),g=0,y=a(2*m),k=0;g<m;)k===y.length&&(y=a(2*m),k=0),(v=y[k++])&&(b[g++]=v);return b}r.exports=function(m,v,b){var g;g=m.padding?m.padding:b?1:4;var y,k=n(m);if(g===4)y=h(k,v);else if(g===1)y=d(k,v,b);else{if(g!==3)throw new Error("unknown padding");if((y=new u(v)).cmp(k.modulus)>=0)throw new Error("data too long for modulus")}return b?f(y,k):l(y,k)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(t,r,e){var n=t("bn.js"),a=t("safe-buffer").Buffer;function o(s,i){return a.from(s.toRed(n.mont(i.modulus)).redPow(new n(i.publicExponent)).fromRed().toArray())}r.exports=o},{"bn.js":470,"safe-buffer":494}],474:[function(t,r,e){r.exports=function(n,a){for(var o=n.length,s=-1;++s<o;)n[s]^=a[s];return n}},{}],475:[function(t,r,e){(function(n,a){(function(){var o=65536,s=4294967295;function i(){throw new Error(`Secure random number generation is not supported by this browser. |
|
|
Use Chrome, Firefox or Internet Explorer 11`)}var u=t("safe-buffer").Buffer,l=a.crypto||a.msCrypto;function f(c,h){if(c>s)throw new RangeError("requested too many random bytes");var d=u.allocUnsafe(c);if(c>0)if(c>o)for(var p=0;p<c;p+=o)l.getRandomValues(d.slice(p,p+o));else l.getRandomValues(d);return typeof h=="function"?n.nextTick(function(){h(null,d)}):d}l&&l.getRandomValues?r.exports=f:r.exports=i}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(t,r,e){(function(n,a){(function(){function o(){throw new Error(`secure random number generation not supported by this browser |
|
|
use chrome, FireFox or Internet Explorer 11`)}var s=t("safe-buffer"),i=t("randombytes"),u=s.Buffer,l=s.kMaxLength,f=a.crypto||a.msCrypto,c=Math.pow(2,32)-1;function h(b,g){if(typeof b!="number"||b!=b)throw new TypeError("offset must be a number");if(b>c||b<0)throw new TypeError("offset must be a uint32");if(b>l||b>g)throw new RangeError("offset out of range")}function d(b,g,y){if(typeof b!="number"||b!=b)throw new TypeError("size must be a number");if(b>c||b<0)throw new TypeError("size must be a uint32");if(b+g>y||b>l)throw new RangeError("buffer too small")}function p(b,g,y,k){if(!(u.isBuffer(b)||b instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof g=="function")k=g,g=0,y=b.length;else if(typeof y=="function")k=y,y=b.length-g;else if(typeof k!="function")throw new TypeError('"cb" argument must be a function');return h(g,b.length),d(y,g,b.length),m(b,g,y,k)}function m(b,g,y,k){if(n.browser){var S=b.buffer,C=new Uint8Array(S,g,y);return f.getRandomValues(C),k?void n.nextTick(function(){k(null,b)}):b}if(!k)return i(y).copy(b,g),b;i(y,function(O,L){if(O)return k(O);L.copy(b,g),k(null,b)})}function v(b,g,y){if(g===void 0&&(g=0),!(u.isBuffer(b)||b instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(g,b.length),y===void 0&&(y=b.length-g),d(y,g,b.length),m(b,g,y)}f&&f.getRandomValues||!n.browser?(e.randomFill=p,e.randomFillSync=v):(e.randomFill=o,e.randomFillSync=o)}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(t,r,e){function n(f,c){f.prototype=Object.create(c.prototype),f.prototype.constructor=f,f.__proto__=c}var a={};function o(f,c,h){function d(m,v,b){return typeof c=="string"?c:c(m,v,b)}h||(h=Error);var p=function(m){function v(b,g,y){return m.call(this,d(b,g,y))||this}return n(v,m),v}(h);p.prototype.name=h.name,p.prototype.code=f,a[f]=p}function s(f,c){if(Array.isArray(f)){var h=f.length;return f=f.map(function(d){return String(d)}),h>2?"one of ".concat(c," ").concat(f.slice(0,h-1).join(", "),", or ")+f[h-1]:h===2?"one of ".concat(c," ").concat(f[0]," or ").concat(f[1]):"of ".concat(c," ").concat(f[0])}return"of ".concat(c," ").concat(String(f))}function i(f,c,h){return f.substr(0,c.length)===c}function u(f,c,h){return(h===void 0||h>f.length)&&(h=f.length),f.substring(h-c.length,h)===c}function l(f,c,h){return typeof h!="number"&&(h=0),!(h+c.length>f.length)&&f.indexOf(c,h)!==-1}o("ERR_INVALID_OPT_VALUE",function(f,c){return'The value "'+c+'" is invalid for option "'+f+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(f,c,h){var d,p;if(typeof c=="string"&&i(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be",u(f," argument"))p="The ".concat(f," ").concat(d," ").concat(s(c,"type"));else{var m=l(f,".")?"property":"argument";p='The "'.concat(f,'" ').concat(m," ").concat(d," ").concat(s(c,"type"))}return p+=". Received type ".concat(typeof h)},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.codes=a},{}],478:[function(t,r,e){(function(n){(function(){var a=Object.keys||function(d){var p=[];for(var m in d)p.push(m);return p};r.exports=f;var o=t("./_stream_readable"),s=t("./_stream_writable");t("inherits")(f,o);for(var i=a(s.prototype),u=0;u<i.length;u++){var l=i[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(d){if(!(this instanceof f))return new f(d);o.call(this,d),s.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(d){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=d,this._writableState.destroyed=d)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(t,r,e){r.exports=a;var n=t("./_stream_transform");function a(o){if(!(this instanceof a))return new a(o);n.call(this,o)}t("inherits")(a,n),a.prototype._transform=function(o,s,i){i(null,o)}},{"./_stream_transform":481,inherits:440}],480:[function(t,r,e){(function(n,a){(function(){var o;r.exports=A,A.ReadableState=Y,t("events").EventEmitter;var s=function(rt,mt){return rt.listeners(mt).length},i=t("./internal/streams/stream"),u=t("buffer").Buffer,l=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f(rt){return u.from(rt)}function c(rt){return u.isBuffer(rt)||rt instanceof l}var h,d=t("util");h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m,v,b=t("./internal/streams/buffer_list"),g=t("./internal/streams/destroy"),y=t("./internal/streams/state").getHighWaterMark,k=t("../errors").codes,S=k.ERR_INVALID_ARG_TYPE,C=k.ERR_STREAM_PUSH_AFTER_EOF,O=k.ERR_METHOD_NOT_IMPLEMENTED,L=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(A,i);var j=g.errorOrDestroy,U=["error","close","destroy","pause","resume"];function z(rt,mt,Xt){if(typeof rt.prependListener=="function")return rt.prependListener(mt,Xt);rt._events&&rt._events[mt]?Array.isArray(rt._events[mt])?rt._events[mt].unshift(Xt):rt._events[mt]=[Xt,rt._events[mt]]:rt.on(mt,Xt)}function Y(rt,mt,Xt){o=o||t("./_stream_duplex"),rt=rt||{},typeof Xt!="boolean"&&(Xt=mt instanceof o),this.objectMode=!!rt.objectMode,Xt&&(this.objectMode=this.objectMode||!!rt.readableObjectMode),this.highWaterMark=y(this,rt,"readableHighWaterMark",Xt),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=rt.emitClose!==!1,this.autoDestroy=!!rt.autoDestroy,this.destroyed=!1,this.defaultEncoding=rt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,rt.encoding&&(p||(p=t("string_decoder/").StringDecoder),this.decoder=new p(rt.encoding),this.encoding=rt.encoding)}function A(rt){if(o=o||t("./_stream_duplex"),!(this instanceof A))return new A(rt);var mt=this instanceof o;this._readableState=new Y(rt,this,mt),this.readable=!0,rt&&(typeof rt.read=="function"&&(this._read=rt.read),typeof rt.destroy=="function"&&(this._destroy=rt.destroy)),i.call(this)}function I(rt,mt,Xt,G,tt){h("readableAddChunk",mt);var dt,Dt=rt._readableState;if(mt===null)Dt.reading=!1,F(rt,Dt);else if(tt||(dt=x(Dt,mt)),dt)j(rt,dt);else if(Dt.objectMode||mt&&mt.length>0)if(typeof mt=="string"||Dt.objectMode||Object.getPrototypeOf(mt)===u.prototype||(mt=f(mt)),G)Dt.endEmitted?j(rt,new L):_(rt,Dt,mt,!0);else if(Dt.ended)j(rt,new C);else{if(Dt.destroyed)return!1;Dt.reading=!1,Dt.decoder&&!Xt?(mt=Dt.decoder.write(mt),Dt.objectMode||mt.length!==0?_(rt,Dt,mt,!1):N(rt,Dt)):_(rt,Dt,mt,!1)}else G||(Dt.reading=!1,N(rt,Dt));return!Dt.ended&&(Dt.length<Dt.highWaterMark||Dt.length===0)}function _(rt,mt,Xt,G){mt.flowing&&mt.length===0&&!mt.sync?(mt.awaitDrain=0,rt.emit("data",Xt)):(mt.length+=mt.objectMode?1:Xt.length,G?mt.buffer.unshift(Xt):mt.buffer.push(Xt),mt.needReadable&&P(rt)),N(rt,mt)}function x(rt,mt){var Xt;return c(mt)||typeof mt=="string"||mt===void 0||rt.objectMode||(Xt=new S("chunk",["string","Buffer","Uint8Array"],mt)),Xt}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(rt){this._readableState&&(this._readableState.destroyed=rt)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(rt,mt){mt(rt)},A.prototype.push=function(rt,mt){var Xt,G=this._readableState;return G.objectMode?Xt=!0:typeof rt=="string"&&((mt=mt||G.defaultEncoding)!==G.encoding&&(rt=u.from(rt,mt),mt=""),Xt=!0),I(this,rt,mt,!1,Xt)},A.prototype.unshift=function(rt){return I(this,rt,null,!0,!1)},A.prototype.isPaused=function(){return this._readableState.flowing===!1},A.prototype.setEncoding=function(rt){p||(p=t("string_decoder/").StringDecoder);var mt=new p(rt);this._readableState.decoder=mt,this._readableState.encoding=this._readableState.decoder.encoding;for(var Xt=this._readableState.buffer.head,G="";Xt!==null;)G+=mt.write(Xt.data),Xt=Xt.next;return this._readableState.buffer.clear(),G!==""&&this._readableState.buffer.push(G),this._readableState.length=G.length,this};var T=1073741824;function E(rt){return rt>=T?rt=T:(rt--,rt|=rt>>>1,rt|=rt>>>2,rt|=rt>>>4,rt|=rt>>>8,rt|=rt>>>16,rt++),rt}function M(rt,mt){return rt<=0||mt.length===0&&mt.ended?0:mt.objectMode?1:rt!=rt?mt.flowing&&mt.length?mt.buffer.head.data.length:mt.length:(rt>mt.highWaterMark&&(mt.highWaterMark=E(rt)),rt<=mt.length?rt:mt.ended?mt.length:(mt.needReadable=!0,0))}function F(rt,mt){if(h("onEofChunk"),!mt.ended){if(mt.decoder){var Xt=mt.decoder.end();Xt&&Xt.length&&(mt.buffer.push(Xt),mt.length+=mt.objectMode?1:Xt.length)}mt.ended=!0,mt.sync?P(rt):(mt.needReadable=!1,mt.emittedReadable||(mt.emittedReadable=!0,W(rt)))}}function P(rt){var mt=rt._readableState;h("emitReadable",mt.needReadable,mt.emittedReadable),mt.needReadable=!1,mt.emittedReadable||(h("emitReadable",mt.flowing),mt.emittedReadable=!0,n.nextTick(W,rt))}function W(rt){var mt=rt._readableState;h("emitReadable_",mt.destroyed,mt.length,mt.ended),mt.destroyed||!mt.length&&!mt.ended||(rt.emit("readable"),mt.emittedReadable=!1),mt.needReadable=!mt.flowing&&!mt.ended&&mt.length<=mt.highWaterMark,at(rt)}function N(rt,mt){mt.readingMore||(mt.readingMore=!0,n.nextTick(q,rt,mt))}function q(rt,mt){for(;!mt.reading&&!mt.ended&&(mt.length<mt.highWaterMark||mt.flowing&&mt.length===0);){var Xt=mt.length;if(h("maybeReadMore read 0"),rt.read(0),Xt===mt.length)break}mt.readingMore=!1}function nt(rt){return function(){var mt=rt._readableState;h("pipeOnDrain",mt.awaitDrain),mt.awaitDrain&&mt.awaitDrain--,mt.awaitDrain===0&&s(rt,"data")&&(mt.flowing=!0,at(rt))}}function J(rt){var mt=rt._readableState;mt.readableListening=rt.listenerCount("readable")>0,mt.resumeScheduled&&!mt.paused?mt.flowing=!0:rt.listenerCount("data")>0&&rt.resume()}function St(rt){h("readable nexttick read 0"),rt.read(0)}function kt(rt,mt){mt.resumeScheduled||(mt.resumeScheduled=!0,n.nextTick(Mt,rt,mt))}function Mt(rt,mt){h("resume",mt.reading),mt.reading||rt.read(0),mt.resumeScheduled=!1,rt.emit("resume"),at(rt),mt.flowing&&!mt.reading&&rt.read(0)}function at(rt){var mt=rt._readableState;for(h("flow",mt.flowing);mt.flowing&&rt.read()!==null;);}function K(rt,mt){return mt.length===0?null:(mt.objectMode?Xt=mt.buffer.shift():!rt||rt>=mt.length?(Xt=mt.decoder?mt.buffer.join(""):mt.buffer.length===1?mt.buffer.first():mt.buffer.concat(mt.length),mt.buffer.clear()):Xt=mt.buffer.consume(rt,mt.decoder),Xt);var Xt}function it(rt){var mt=rt._readableState;h("endReadable",mt.endEmitted),mt.endEmitted||(mt.ended=!0,n.nextTick(st,mt,rt))}function st(rt,mt){if(h("endReadableNT",rt.endEmitted,rt.length),!rt.endEmitted&&rt.length===0&&(rt.endEmitted=!0,mt.readable=!1,mt.emit("end"),rt.autoDestroy)){var Xt=mt._writableState;(!Xt||Xt.autoDestroy&&Xt.finished)&&mt.destroy()}}function Nt(rt,mt){for(var Xt=0,G=rt.length;Xt<G;Xt++)if(rt[Xt]===mt)return Xt;return-1}A.prototype.read=function(rt){h("read",rt),rt=parseInt(rt,10);var mt=this._readableState,Xt=rt;if(rt!==0&&(mt.emittedReadable=!1),rt===0&&mt.needReadable&&((mt.highWaterMark!==0?mt.length>=mt.highWaterMark:mt.length>0)||mt.ended))return h("read: emitReadable",mt.length,mt.ended),mt.length===0&&mt.ended?it(this):P(this),null;if((rt=M(rt,mt))===0&&mt.ended)return mt.length===0&&it(this),null;var G,tt=mt.needReadable;return h("need readable",tt),(mt.length===0||mt.length-rt<mt.highWaterMark)&&h("length less than watermark",tt=!0),mt.ended||mt.reading?h("reading or ended",tt=!1):tt&&(h("do read"),mt.reading=!0,mt.sync=!0,mt.length===0&&(mt.needReadable=!0),this._read(mt.highWaterMark),mt.sync=!1,mt.reading||(rt=M(Xt,mt))),(G=rt>0?K(rt,mt):null)===null?(mt.needReadable=mt.length<=mt.highWaterMark,rt=0):(mt.length-=rt,mt.awaitDrain=0),mt.length===0&&(mt.ended||(mt.needReadable=!0),Xt!==rt&&mt.ended&&it(this)),G!==null&&this.emit("data",G),G},A.prototype._read=function(rt){j(this,new O("_read()"))},A.prototype.pipe=function(rt,mt){var Xt=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=rt;break;case 1:G.pipes=[G.pipes,rt];break;default:G.pipes.push(rt)}G.pipesCount+=1,h("pipe count=%d opts=%j",G.pipesCount,mt);var tt=mt&&mt.end===!1||rt===n.stdout||rt===n.stderr?ie:Dt;function dt(ot,ct){h("onunpipe"),ot===Xt&&ct&&ct.hasUnpiped===!1&&(ct.hasUnpiped=!0,Gt())}function Dt(){h("onend"),rt.end()}G.endEmitted?n.nextTick(tt):Xt.once("end",tt),rt.on("unpipe",dt);var re=nt(Xt);rt.on("drain",re);var X=!1;function Gt(){h("cleanup"),rt.removeListener("close",gt),rt.removeListener("finish",Tt),rt.removeListener("drain",re),rt.removeListener("error",vt),rt.removeListener("unpipe",dt),Xt.removeListener("end",Dt),Xt.removeListener("end",ie),Xt.removeListener("data",Jt),X=!0,!G.awaitDrain||rt._writableState&&!rt._writableState.needDrain||re()}function Jt(ot){h("ondata");var ct=rt.write(ot);h("dest.write",ct),ct===!1&&((G.pipesCount===1&&G.pipes===rt||G.pipesCount>1&&Nt(G.pipes,rt)!==-1)&&!X&&(h("false write response, pause",G.awaitDrain),G.awaitDrain++),Xt.pause())}function vt(ot){h("onerror",ot),ie(),rt.removeListener("error",vt),s(rt,"error")===0&&j(rt,ot)}function gt(){rt.removeListener("finish",Tt),ie()}function Tt(){h("onfinish"),rt.removeListener("close",gt),ie()}function ie(){h("unpipe"),Xt.unpipe(rt)}return Xt.on("data",Jt),z(rt,"error",vt),rt.once("close",gt),rt.once("finish",Tt),rt.emit("pipe",Xt),G.flowing||(h("pipe resume"),Xt.resume()),rt},A.prototype.unpipe=function(rt){var mt=this._readableState,Xt={hasUnpiped:!1};if(mt.pipesCount===0)return this;if(mt.pipesCount===1)return rt&&rt!==mt.pipes||(rt||(rt=mt.pipes),mt.pipes=null,mt.pipesCount=0,mt.flowing=!1,rt&&rt.emit("unpipe",this,Xt)),this;if(!rt){var G=mt.pipes,tt=mt.pipesCount;mt.pipes=null,mt.pipesCount=0,mt.flowing=!1;for(var dt=0;dt<tt;dt++)G[dt].emit("unpipe",this,{hasUnpiped:!1});return this}var Dt=Nt(mt.pipes,rt);return Dt===-1||(mt.pipes.splice(Dt,1),mt.pipesCount-=1,mt.pipesCount===1&&(mt.pipes=mt.pipes[0]),rt.emit("unpipe",this,Xt)),this},A.prototype.on=function(rt,mt){var Xt=i.prototype.on.call(this,rt,mt),G=this._readableState;return rt==="data"?(G.readableListening=this.listenerCount("readable")>0,G.flowing!==!1&&this.resume()):rt==="readable"&&(G.endEmitted||G.readableListening||(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,h("on readable",G.length,G.reading),G.length?P(this):G.reading||n.nextTick(St,this))),Xt},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(rt,mt){var Xt=i.prototype.removeListener.call(this,rt,mt);return rt==="readable"&&n.nextTick(J,this),Xt},A.prototype.removeAllListeners=function(rt){var mt=i.prototype.removeAllListeners.apply(this,arguments);return rt!=="readable"&&rt!==void 0||n.nextTick(J,this),mt},A.prototype.resume=function(){var rt=this._readableState;return rt.flowing||(h("resume"),rt.flowing=!rt.readableListening,kt(this,rt)),rt.paused=!1,this},A.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(rt){var mt=this,Xt=this._readableState,G=!1;for(var tt in rt.on("end",function(){if(h("wrapped end"),Xt.decoder&&!Xt.ended){var Dt=Xt.decoder.end();Dt&&Dt.length&&mt.push(Dt)}mt.push(null)}),rt.on("data",function(Dt){h("wrapped data"),Xt.decoder&&(Dt=Xt.decoder.write(Dt)),Xt.objectMode&&Dt==null||(Xt.objectMode||Dt&&Dt.length)&&(mt.push(Dt)||(G=!0,rt.pause()))}),rt)this[tt]===void 0&&typeof rt[tt]=="function"&&(this[tt]=function(Dt){return function(){return rt[Dt].apply(rt,arguments)}}(tt));for(var dt=0;dt<U.length;dt++)rt.on(U[dt],this.emit.bind(this,U[dt]));return this._read=function(Dt){h("wrapped _read",Dt),G&&(G=!1,rt.resume())},this},typeof Symbol=="function"&&(A.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=t("./internal/streams/async_iterator")),m(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(rt){this._readableState&&(this._readableState.flowing=rt)}}),A._fromList=K,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(A.from=function(rt,mt){return v===void 0&&(v=t("./internal/streams/from")),v(A,rt,mt)})}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(t,r,e){r.exports=f;var n=t("../errors").codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=n.ERR_TRANSFORM_WITH_LENGTH_0,u=t("./_stream_duplex");function l(d,p){var m=this._transformState;m.transforming=!1;var v=m.writecb;if(v===null)return this.emit("error",new o);m.writechunk=null,m.writecb=null,p!=null&&this.push(p),v(d);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function f(d){if(!(this instanceof f))return new f(d);u.call(this,d),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush(function(p,m){h(d,p,m)})}function h(d,p,m){if(p)return d.emit("error",p);if(m!=null&&d.push(m),d._writableState.length)throw new i;if(d._transformState.transforming)throw new s;return d.push(null)}t("inherits")(f,u),f.prototype.push=function(d,p){return this._transformState.needTransform=!1,u.prototype.push.call(this,d,p)},f.prototype._transform=function(d,p,m){m(new a("_transform()"))},f.prototype._write=function(d,p,m){var v=this._transformState;if(v.writecb=m,v.writechunk=d,v.writeencoding=p,!v.transforming){var b=this._readableState;(v.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},f.prototype._read=function(d){var p=this._transformState;p.writechunk===null||p.transforming?p.needTransform=!0:(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform))},f.prototype._destroy=function(d,p){u.prototype._destroy.call(this,d,function(m){p(m)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(t,r,e){(function(n,a){(function(){function o(at){var K=this;this.next=null,this.entry=null,this.finish=function(){Mt(K,at)}}var s;r.exports=Y,Y.WritableState=z;var i={deprecate:t("util-deprecate")},u=t("./internal/streams/stream"),l=t("buffer").Buffer,f=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(at){return l.from(at)}function h(at){return l.isBuffer(at)||at instanceof f}var d,p=t("./internal/streams/destroy"),m=t("./internal/streams/state").getHighWaterMark,v=t("../errors").codes,b=v.ERR_INVALID_ARG_TYPE,g=v.ERR_METHOD_NOT_IMPLEMENTED,y=v.ERR_MULTIPLE_CALLBACK,k=v.ERR_STREAM_CANNOT_PIPE,S=v.ERR_STREAM_DESTROYED,C=v.ERR_STREAM_NULL_VALUES,O=v.ERR_STREAM_WRITE_AFTER_END,L=v.ERR_UNKNOWN_ENCODING,j=p.errorOrDestroy;function U(){}function z(at,K,it){s=s||t("./_stream_duplex"),at=at||{},typeof it!="boolean"&&(it=K instanceof s),this.objectMode=!!at.objectMode,it&&(this.objectMode=this.objectMode||!!at.writableObjectMode),this.highWaterMark=m(this,at,"writableHighWaterMark",it),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var st=at.decodeStrings===!1;this.decodeStrings=!st,this.defaultEncoding=at.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Nt){F(K,Nt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=at.emitClose!==!1,this.autoDestroy=!!at.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function Y(at){var K=this instanceof(s=s||t("./_stream_duplex"));if(!K&&!d.call(Y,this))return new Y(at);this._writableState=new z(at,this,K),this.writable=!0,at&&(typeof at.write=="function"&&(this._write=at.write),typeof at.writev=="function"&&(this._writev=at.writev),typeof at.destroy=="function"&&(this._destroy=at.destroy),typeof at.final=="function"&&(this._final=at.final)),u.call(this)}function A(at,K){var it=new O;j(at,it),n.nextTick(K,it)}function I(at,K,it,st){var Nt;return it===null?Nt=new C:typeof it=="string"||K.objectMode||(Nt=new b("chunk",["string","Buffer"],it)),!Nt||(j(at,Nt),n.nextTick(st,Nt),!1)}function _(at,K,it){return at.objectMode||at.decodeStrings===!1||typeof K!="string"||(K=l.from(K,it)),K}function x(at,K,it,st,Nt,rt){if(!it){var mt=_(K,st,Nt);st!==mt&&(it=!0,Nt="buffer",st=mt)}var Xt=K.objectMode?1:st.length;K.length+=Xt;var G=K.length<K.highWaterMark;if(G||(K.needDrain=!0),K.writing||K.corked){var tt=K.lastBufferedRequest;K.lastBufferedRequest={chunk:st,encoding:Nt,isBuf:it,callback:rt,next:null},tt?tt.next=K.lastBufferedRequest:K.bufferedRequest=K.lastBufferedRequest,K.bufferedRequestCount+=1}else T(at,K,!1,Xt,st,Nt,rt);return G}function T(at,K,it,st,Nt,rt,mt){K.writelen=st,K.writecb=mt,K.writing=!0,K.sync=!0,K.destroyed?K.onwrite(new S("write")):it?at._writev(Nt,K.onwrite):at._write(Nt,rt,K.onwrite),K.sync=!1}function E(at,K,it,st,Nt){--K.pendingcb,it?(n.nextTick(Nt,st),n.nextTick(St,at,K),at._writableState.errorEmitted=!0,j(at,st)):(Nt(st),at._writableState.errorEmitted=!0,j(at,st),St(at,K))}function M(at){at.writing=!1,at.writecb=null,at.length-=at.writelen,at.writelen=0}function F(at,K){var it=at._writableState,st=it.sync,Nt=it.writecb;if(typeof Nt!="function")throw new y;if(M(it),K)E(at,it,st,K,Nt);else{var rt=q(it)||at.destroyed;rt||it.corked||it.bufferProcessing||!it.bufferedRequest||N(at,it),st?n.nextTick(P,at,it,rt,Nt):P(at,it,rt,Nt)}}function P(at,K,it,st){it||W(at,K),K.pendingcb--,st(),St(at,K)}function W(at,K){K.length===0&&K.needDrain&&(K.needDrain=!1,at.emit("drain"))}function N(at,K){K.bufferProcessing=!0;var it=K.bufferedRequest;if(at._writev&&it&&it.next){var st=K.bufferedRequestCount,Nt=new Array(st),rt=K.corkedRequestsFree;rt.entry=it;for(var mt=0,Xt=!0;it;)Nt[mt]=it,it.isBuf||(Xt=!1),it=it.next,mt+=1;Nt.allBuffers=Xt,T(at,K,!0,K.length,Nt,"",rt.finish),K.pendingcb++,K.lastBufferedRequest=null,rt.next?(K.corkedRequestsFree=rt.next,rt.next=null):K.corkedRequestsFree=new o(K),K.bufferedRequestCount=0}else{for(;it;){var G=it.chunk,tt=it.encoding,dt=it.callback;if(T(at,K,!1,K.objectMode?1:G.length,G,tt,dt),it=it.next,K.bufferedRequestCount--,K.writing)break}it===null&&(K.lastBufferedRequest=null)}K.bufferedRequest=it,K.bufferProcessing=!1}function q(at){return at.ending&&at.length===0&&at.bufferedRequest===null&&!at.finished&&!at.writing}function nt(at,K){at._final(function(it){K.pendingcb--,it&&j(at,it),K.prefinished=!0,at.emit("prefinish"),St(at,K)})}function J(at,K){K.prefinished||K.finalCalled||(typeof at._final!="function"||K.destroyed?(K.prefinished=!0,at.emit("prefinish")):(K.pendingcb++,K.finalCalled=!0,n.nextTick(nt,at,K)))}function St(at,K){var it=q(K);if(it&&(J(at,K),K.pendingcb===0&&(K.finished=!0,at.emit("finish"),K.autoDestroy))){var st=at._readableState;(!st||st.autoDestroy&&st.endEmitted)&&at.destroy()}return it}function kt(at,K,it){K.ending=!0,St(at,K),it&&(K.finished?n.nextTick(it):at.once("finish",it)),K.ended=!0,at.writable=!1}function Mt(at,K,it){var st=at.entry;for(at.entry=null;st;){var Nt=st.callback;K.pendingcb--,Nt(it),st=st.next}K.corkedRequestsFree.next=at}t("inherits")(Y,u),z.prototype.getBuffer=function(){for(var at=this.bufferedRequest,K=[];at;)K.push(at),at=at.next;return K},function(){try{Object.defineProperty(z.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(at){return!!d.call(this,at)||this===Y&&at&&at._writableState instanceof z}})):d=function(at){return at instanceof this},Y.prototype.pipe=function(){j(this,new k)},Y.prototype.write=function(at,K,it){var st=this._writableState,Nt=!1,rt=!st.objectMode&&h(at);return rt&&!l.isBuffer(at)&&(at=c(at)),typeof K=="function"&&(it=K,K=null),rt?K="buffer":K||(K=st.defaultEncoding),typeof it!="function"&&(it=U),st.ending?A(this,it):(rt||I(this,st,at,it))&&(st.pendingcb++,Nt=x(this,st,rt,at,K,it)),Nt},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){var at=this._writableState;at.corked&&(at.corked--,at.writing||at.corked||at.bufferProcessing||!at.bufferedRequest||N(this,at))},Y.prototype.setDefaultEncoding=function(at){if(typeof at=="string"&&(at=at.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((at+"").toLowerCase())>-1))throw new L(at);return this._writableState.defaultEncoding=at,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(at,K,it){it(new g("_write()"))},Y.prototype._writev=null,Y.prototype.end=function(at,K,it){var st=this._writableState;return typeof at=="function"?(it=at,at=null,K=null):typeof K=="function"&&(it=K,K=null),at!=null&&this.write(at,K),st.corked&&(st.corked=1,this.uncork()),st.ending||kt(this,st,it),this},Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(at){this._writableState&&(this._writableState.destroyed=at)}}),Y.prototype.destroy=p.destroy,Y.prototype._undestroy=p.undestroy,Y.prototype._destroy=function(at,K){K(at)}}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(t,r,e){(function(n){(function(){var a;function o(O,L,j){return(L=s(L))in O?Object.defineProperty(O,L,{value:j,enumerable:!0,configurable:!0,writable:!0}):O[L]=j,O}function s(O){var L=i(O,"string");return typeof L=="symbol"?L:String(L)}function i(O,L){if(typeof O!="object"||O===null)return O;var j=O[Symbol.toPrimitive];if(j!==void 0){var U=j.call(O,L);if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(O)}var u=t("./end-of-stream"),l=Symbol("lastResolve"),f=Symbol("lastReject"),c=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function v(O,L){return{value:O,done:L}}function b(O){var L=O[l];if(L!==null){var j=O[m].read();j!==null&&(O[d]=null,O[l]=null,O[f]=null,L(v(j,!1)))}}function g(O){n.nextTick(b,O)}function y(O,L){return function(j,U){O.then(function(){L[h]?j(v(void 0,!0)):L[p](j,U)},U)}}var k=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((o(a={get stream(){return this[m]},next:function(){var O=this,L=this[c];if(L!==null)return Promise.reject(L);if(this[h])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise(function(Y,A){n.nextTick(function(){O[c]?A(O[c]):Y(v(void 0,!0))})});var j,U=this[d];if(U)j=new Promise(y(U,this));else{var z=this[m].read();if(z!==null)return Promise.resolve(v(z,!1));j=new Promise(this[p])}return this[d]=j,j}},Symbol.asyncIterator,function(){return this}),o(a,"return",function(){var O=this;return new Promise(function(L,j){O[m].destroy(null,function(U){U?j(U):L(v(void 0,!0))})})}),a),k),C=function(O){var L,j=Object.create(S,(o(L={},m,{value:O,writable:!0}),o(L,l,{value:null,writable:!0}),o(L,f,{value:null,writable:!0}),o(L,c,{value:null,writable:!0}),o(L,h,{value:O._readableState.endEmitted,writable:!0}),o(L,p,{value:function(U,z){var Y=j[m].read();Y?(j[d]=null,j[l]=null,j[f]=null,U(v(Y,!1))):(j[l]=U,j[f]=z)},writable:!0}),L));return j[d]=null,u(O,function(U){if(U&&U.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=j[f];return z!==null&&(j[d]=null,j[l]=null,j[f]=null,z(U)),void(j[c]=U)}var Y=j[l];Y!==null&&(j[d]=null,j[l]=null,j[f]=null,Y(v(void 0,!0))),j[h]=!0}),O.on("readable",g.bind(null,j)),j};r.exports=C}).call(this)}).call(this,t("_process"))},{"./end-of-stream":486,_process:467}],484:[function(t,r,e){function n(m,v){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);v&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable})),b.push.apply(b,g)}return b}function a(m){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?n(Object(b),!0).forEach(function(g){o(m,g,b[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):n(Object(b)).forEach(function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(b,g))})}return m}function o(m,v,b){return(v=l(v))in m?Object.defineProperty(m,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[v]=b,m}function s(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function i(m,v){for(var b=0;b<v.length;b++){var g=v[b];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,l(g.key),g)}}function u(m,v,b){return v&&i(m.prototype,v),Object.defineProperty(m,"prototype",{writable:!1}),m}function l(m){var v=f(m,"string");return typeof v=="symbol"?v:String(v)}function f(m,v){if(typeof m!="object"||m===null)return m;var b=m[Symbol.toPrimitive];if(b!==void 0){var g=b.call(m,v);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var c=t("buffer").Buffer,h=t("util").inspect,d=h&&h.custom||"inspect";function p(m,v,b){c.prototype.copy.call(m,v,b)}r.exports=function(){function m(){s(this,m),this.head=null,this.tail=null,this.length=0}return u(m,[{key:"push",value:function(v){var b={data:v,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(v){var b={data:v,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var b=this.head,g=""+b.data;b=b.next;)g+=v+b.data;return g}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var b=c.allocUnsafe(v>>>0),g=this.head,y=0;g;)p(g.data,b,y),y+=g.data.length,g=g.next;return b}},{key:"consume",value:function(v,b){var g;return v<this.head.data.length?(g=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):g=v===this.head.data.length?this.shift():b?this._getString(v):this._getBuffer(v),g}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var b=this.head,g=1,y=b.data;for(v-=y.length;b=b.next;){var k=b.data,S=v>k.length?k.length:v;if(S===k.length?y+=k:y+=k.slice(0,v),(v-=S)==0){S===k.length?(++g,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=k.slice(S));break}++g}return this.length-=g,y}},{key:"_getBuffer",value:function(v){var b=c.allocUnsafe(v),g=this.head,y=1;for(g.data.copy(b),v-=g.data.length;g=g.next;){var k=g.data,S=v>k.length?k.length:v;if(k.copy(b,b.length-v,0,S),(v-=S)==0){S===k.length?(++y,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=k.slice(S));break}++y}return this.length-=y,b}},{key:d,value:function(v,b){return h(this,a(a({},b),{},{depth:0,customInspect:!1}))}}]),m}()},{buffer:220,util:188}],485:[function(t,r,e){(function(n){(function(){function a(f,c){var h=this,d=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return d||p?(c?c(f):f&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(u,this,f)):n.nextTick(u,this,f)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(f||null,function(m){!c&&m?h._writableState?h._writableState.errorEmitted?n.nextTick(s,h):(h._writableState.errorEmitted=!0,n.nextTick(o,h,m)):n.nextTick(o,h,m):c?(n.nextTick(s,h),c(m)):n.nextTick(s,h)}),this)}function o(f,c){u(f,c),s(f)}function s(f){f._writableState&&!f._writableState.emitClose||f._readableState&&!f._readableState.emitClose||f.emit("close")}function i(){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)}function u(f,c){f.emit("error",c)}function l(f,c){var h=f._readableState,d=f._writableState;h&&h.autoDestroy||d&&d.autoDestroy?f.destroy(c):f.emit("error",c)}r.exports={destroy:a,undestroy:i,errorOrDestroy:l}}).call(this)}).call(this,t("_process"))},{_process:467}],486:[function(t,r,e){var n=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(u){var l=!1;return function(){if(!l){l=!0;for(var f=arguments.length,c=new Array(f),h=0;h<f;h++)c[h]=arguments[h];u.apply(this,c)}}}function o(){}function s(u){return u.setHeader&&typeof u.abort=="function"}function i(u,l,f){if(typeof l=="function")return i(u,null,l);l||(l={}),f=a(f||o);var c=l.readable||l.readable!==!1&&u.readable,h=l.writable||l.writable!==!1&&u.writable,d=function(){u.writable||m()},p=u._writableState&&u._writableState.finished,m=function(){h=!1,p=!0,c||f.call(u)},v=u._readableState&&u._readableState.endEmitted,b=function(){c=!1,v=!0,h||f.call(u)},g=function(S){f.call(u,S)},y=function(){var S;return c&&!v?(u._readableState&&u._readableState.ended||(S=new n),f.call(u,S)):h&&!p?(u._writableState&&u._writableState.ended||(S=new n),f.call(u,S)):void 0},k=function(){u.req.on("finish",m)};return s(u)?(u.on("complete",m),u.on("abort",y),u.req?k():u.on("request",k)):h&&!u._writableState&&(u.on("end",d),u.on("close",d)),u.on("end",b),u.on("finish",m),l.error!==!1&&u.on("error",g),u.on("close",y),function(){u.removeListener("complete",m),u.removeListener("abort",y),u.removeListener("request",k),u.req&&u.req.removeListener("finish",m),u.removeListener("end",d),u.removeListener("close",d),u.removeListener("finish",m),u.removeListener("end",b),u.removeListener("error",g),u.removeListener("close",y)}}r.exports=i},{"../../../errors":477}],487:[function(t,r,e){r.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(t,r,e){var n;function a(m){var v=!1;return function(){v||(v=!0,m.apply(void 0,arguments))}}var o=t("../../../errors").codes,s=o.ERR_MISSING_ARGS,i=o.ERR_STREAM_DESTROYED;function u(m){if(m)throw m}function l(m){return m.setHeader&&typeof m.abort=="function"}function f(m,v,b,g){g=a(g);var y=!1;m.on("close",function(){y=!0}),n===void 0&&(n=t("./end-of-stream")),n(m,{readable:v,writable:b},function(S){if(S)return g(S);y=!0,g()});var k=!1;return function(S){if(!y&&!k)return k=!0,l(m)?m.abort():typeof m.destroy=="function"?m.destroy():void g(S||new i("pipe"))}}function c(m){m()}function h(m,v){return m.pipe(v)}function d(m){return m.length?typeof m[m.length-1]!="function"?u:m.pop():u}function p(){for(var m=arguments.length,v=new Array(m),b=0;b<m;b++)v[b]=arguments[b];var g,y=d(v);if(Array.isArray(v[0])&&(v=v[0]),v.length<2)throw new s("streams");var k=v.map(function(S,C){var O=C<v.length-1;return f(S,O,C>0,function(L){g||(g=L),L&&k.forEach(c),O||(k.forEach(c),y(g))})});return v.reduce(h)}r.exports=p},{"../../../errors":477,"./end-of-stream":486}],489:[function(t,r,e){var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;function a(s,i,u){return s.highWaterMark!=null?s.highWaterMark:i?s[u]:null}function o(s,i,u,l){var f=a(i,l,u);if(f!=null){if(!isFinite(f)||Math.floor(f)!==f||f<0)throw new n(l?u:"highWaterMark",f);return Math.floor(f)}return s.objectMode?16:16384}r.exports={getHighWaterMark:o}},{"../../../errors":477}],490:[function(t,r,e){r.exports=t("events").EventEmitter},{events:422}],491:[function(t,r,e){(e=r.exports=t("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=t("./lib/_stream_writable.js"),e.Duplex=t("./lib/_stream_duplex.js"),e.Transform=t("./lib/_stream_transform.js"),e.PassThrough=t("./lib/_stream_passthrough.js"),e.finished=t("./lib/internal/streams/end-of-stream.js"),e.pipeline=t("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(t,r,e){var n=function(a){var o,s=Object.prototype,i=s.hasOwnProperty,u=Object.defineProperty||function(P,W,N){P[W]=N.value},l=typeof Symbol=="function"?Symbol:{},f=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function d(P,W,N){return Object.defineProperty(P,W,{value:N,enumerable:!0,configurable:!0,writable:!0}),P[W]}try{d({},"")}catch{d=function(W,N,q){return W[N]=q}}function p(P,W,N,q){var nt=W&&W.prototype instanceof S?W:S,J=Object.create(nt.prototype),St=new E(q||[]);return u(J,"_invoke",{value:I(P,N,St)}),J}function m(P,W,N){try{return{type:"normal",arg:P.call(W,N)}}catch(q){return{type:"throw",arg:q}}}a.wrap=p;var v="suspendedStart",b="suspendedYield",g="executing",y="completed",k={};function S(){}function C(){}function O(){}var L={};d(L,f,function(){return this});var j=Object.getPrototypeOf,U=j&&j(j(M([])));U&&U!==s&&i.call(U,f)&&(L=U);var z=O.prototype=S.prototype=Object.create(L);function Y(P){["next","throw","return"].forEach(function(W){d(P,W,function(N){return this._invoke(W,N)})})}function A(P,W){function N(J,St,kt,Mt){var at=m(P[J],P,St);if(at.type!=="throw"){var K=at.arg,it=K.value;return it&&typeof it=="object"&&i.call(it,"__await")?W.resolve(it.__await).then(function(st){N("next",st,kt,Mt)},function(st){N("throw",st,kt,Mt)}):W.resolve(it).then(function(st){K.value=st,kt(K)},function(st){return N("throw",st,kt,Mt)})}Mt(at.arg)}var q;function nt(J,St){function kt(){return new W(function(Mt,at){N(J,St,Mt,at)})}return q=q?q.then(kt,kt):kt()}u(this,"_invoke",{value:nt})}function I(P,W,N){var q=v;return function(nt,J){if(q===g)throw new Error("Generator is already running");if(q===y){if(nt==="throw")throw J;return F()}for(N.method=nt,N.arg=J;;){var St=N.delegate;if(St){var kt=_(St,N);if(kt){if(kt===k)continue;return kt}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(q===v)throw q=y,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);q=g;var Mt=m(P,W,N);if(Mt.type==="normal"){if(q=N.done?y:b,Mt.arg===k)continue;return{value:Mt.arg,done:N.done}}Mt.type==="throw"&&(q=y,N.method="throw",N.arg=Mt.arg)}}}function _(P,W){var N=W.method,q=P.iterator[N];if(q===o)return W.delegate=null,N==="throw"&&P.iterator.return&&(W.method="return",W.arg=o,_(P,W),W.method==="throw")||N!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+N+"' method")),k;var nt=m(q,P.iterator,W.arg);if(nt.type==="throw")return W.method="throw",W.arg=nt.arg,W.delegate=null,k;var J=nt.arg;return J?J.done?(W[P.resultName]=J.value,W.next=P.nextLoc,W.method!=="return"&&(W.method="next",W.arg=o),W.delegate=null,k):J:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,k)}function x(P){var W={tryLoc:P[0]};1 in P&&(W.catchLoc=P[1]),2 in P&&(W.finallyLoc=P[2],W.afterLoc=P[3]),this.tryEntries.push(W)}function T(P){var W=P.completion||{};W.type="normal",delete W.arg,P.completion=W}function E(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(x,this),this.reset(!0)}function M(P){if(P){var W=P[f];if(W)return W.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var N=-1,q=function nt(){for(;++N<P.length;)if(i.call(P,N))return nt.value=P[N],nt.done=!1,nt;return nt.value=o,nt.done=!0,nt};return q.next=q}}return{next:F}}function F(){return{value:o,done:!0}}return C.prototype=O,u(z,"constructor",{value:O,configurable:!0}),u(O,"constructor",{value:C,configurable:!0}),C.displayName=d(O,h,"GeneratorFunction"),a.isGeneratorFunction=function(P){var W=typeof P=="function"&&P.constructor;return!!W&&(W===C||(W.displayName||W.name)==="GeneratorFunction")},a.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,O):(P.__proto__=O,d(P,h,"GeneratorFunction")),P.prototype=Object.create(z),P},a.awrap=function(P){return{__await:P}},Y(A.prototype),d(A.prototype,c,function(){return this}),a.AsyncIterator=A,a.async=function(P,W,N,q,nt){nt===void 0&&(nt=Promise);var J=new A(p(P,W,N,q),nt);return a.isGeneratorFunction(W)?J:J.next().then(function(St){return St.done?St.value:J.next()})},Y(z),d(z,h,"Generator"),d(z,f,function(){return this}),d(z,"toString",function(){return"[object Generator]"}),a.keys=function(P){var W=Object(P),N=[];for(var q in W)N.push(q);return N.reverse(),function nt(){for(;N.length;){var J=N.pop();if(J in W)return nt.value=J,nt.done=!1,nt}return nt.done=!0,nt}},a.values=M,E.prototype={constructor:E,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(T),!P)for(var W in this)W.charAt(0)==="t"&&i.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=o)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var W=this;function N(Mt,at){return J.type="throw",J.arg=P,W.next=Mt,at&&(W.method="next",W.arg=o),!!at}for(var q=this.tryEntries.length-1;q>=0;--q){var nt=this.tryEntries[q],J=nt.completion;if(nt.tryLoc==="root")return N("end");if(nt.tryLoc<=this.prev){var St=i.call(nt,"catchLoc"),kt=i.call(nt,"finallyLoc");if(St&&kt){if(this.prev<nt.catchLoc)return N(nt.catchLoc,!0);if(this.prev<nt.finallyLoc)return N(nt.finallyLoc)}else if(St){if(this.prev<nt.catchLoc)return N(nt.catchLoc,!0)}else{if(!kt)throw new Error("try statement without catch or finally");if(this.prev<nt.finallyLoc)return N(nt.finallyLoc)}}}},abrupt:function(P,W){for(var N=this.tryEntries.length-1;N>=0;--N){var q=this.tryEntries[N];if(q.tryLoc<=this.prev&&i.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var nt=q;break}}nt&&(P==="break"||P==="continue")&&nt.tryLoc<=W&&W<=nt.finallyLoc&&(nt=null);var J=nt?nt.completion:{};return J.type=P,J.arg=W,nt?(this.method="next",this.next=nt.finallyLoc,k):this.complete(J)},complete:function(P,W){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&W&&(this.next=W),k},finish:function(P){for(var W=this.tryEntries.length-1;W>=0;--W){var N=this.tryEntries[W];if(N.finallyLoc===P)return this.complete(N.completion,N.afterLoc),T(N),k}},catch:function(P){for(var W=this.tryEntries.length-1;W>=0;--W){var N=this.tryEntries[W];if(N.tryLoc===P){var q=N.completion;if(q.type==="throw"){var nt=q.arg;T(N)}return nt}}throw new Error("illegal catch attempt")},delegateYield:function(P,W,N){return this.delegate={iterator:M(P),resultName:W,nextLoc:N},this.method==="next"&&(this.arg=o),k}},a}(typeof r=="object"?r.exports:{});try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{}],493:[function(t,r,e){var n=t("buffer").Buffer,a=t("inherits"),o=t("hash-base"),s=new Array(16),i=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(k,S){return k<<S|k>>>32-S}function m(k,S,C,O,L,j,U,z){return p(k+(S^C^O)+j+U|0,z)+L|0}function v(k,S,C,O,L,j,U,z){return p(k+(S&C|~S&O)+j+U|0,z)+L|0}function b(k,S,C,O,L,j,U,z){return p(k+((S|~C)^O)+j+U|0,z)+L|0}function g(k,S,C,O,L,j,U,z){return p(k+(S&O|C&~O)+j+U|0,z)+L|0}function y(k,S,C,O,L,j,U,z){return p(k+(S^(C|~O))+j+U|0,z)+L|0}a(d,o),d.prototype._update=function(){for(var k=s,S=0;S<16;++S)k[S]=this._block.readInt32LE(4*S);for(var C=0|this._a,O=0|this._b,L=0|this._c,j=0|this._d,U=0|this._e,z=0|this._a,Y=0|this._b,A=0|this._c,I=0|this._d,_=0|this._e,x=0;x<80;x+=1){var T,E;x<16?(T=m(C,O,L,j,U,k[i[x]],c[0],l[x]),E=y(z,Y,A,I,_,k[u[x]],h[0],f[x])):x<32?(T=v(C,O,L,j,U,k[i[x]],c[1],l[x]),E=g(z,Y,A,I,_,k[u[x]],h[1],f[x])):x<48?(T=b(C,O,L,j,U,k[i[x]],c[2],l[x]),E=b(z,Y,A,I,_,k[u[x]],h[2],f[x])):x<64?(T=g(C,O,L,j,U,k[i[x]],c[3],l[x]),E=v(z,Y,A,I,_,k[u[x]],h[3],f[x])):(T=y(C,O,L,j,U,k[i[x]],c[4],l[x]),E=m(z,Y,A,I,_,k[u[x]],h[4],f[x])),C=U,U=j,j=p(L,10),L=O,O=T,z=_,_=I,I=p(A,10),A=Y,Y=E}var M=this._b+L+I|0;this._b=this._c+j+_|0,this._c=this._d+U+z|0,this._d=this._e+C+Y|0,this._e=this._a+O+A|0,this._a=M},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var k=n.alloc?n.alloc(20):new n(20);return k.writeInt32LE(this._a,0),k.writeInt32LE(this._b,4),k.writeInt32LE(this._c,8),k.writeInt32LE(this._d,12),k.writeInt32LE(this._e,16),k},r.exports=d},{buffer:220,"hash-base":425,inherits:440}],494:[function(t,r,e){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=t("buffer"),a=n.Buffer;function o(i,u){for(var l in i)u[l]=i[l]}function s(i,u,l){return a(i,u,l)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?r.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(a.prototype),o(a,s),s.from=function(i,u,l){if(typeof i=="number")throw new TypeError("Argument must not be a number");return a(i,u,l)},s.alloc=function(i,u,l){if(typeof i!="number")throw new TypeError("Argument must be a number");var f=a(i);return u!==void 0?typeof l=="string"?f.fill(u,l):f.fill(u):f.fill(0),f},s.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return a(i)},s.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(i)}},{buffer:220}],495:[function(t,r,e){(function(n){(function(){var a,o=t("buffer"),s=o.Buffer,i={};for(a in o)o.hasOwnProperty(a)&&a!=="SlowBuffer"&&a!=="Buffer"&&(i[a]=o[a]);var u=i.Buffer={};for(a in s)s.hasOwnProperty(a)&&a!=="allocUnsafe"&&a!=="allocUnsafeSlow"&&(u[a]=s[a]);if(i.Buffer.prototype=s.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(l,f,c){if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof l);if(l&&l.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);return s(l,f,c)}),u.alloc||(u.alloc=function(l,f,c){if(typeof l!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof l);if(l<0||l>=2*(1<<30))throw new RangeError('The value "'+l+'" is invalid for option "size"');var h=s(l);return f&&f.length!==0?typeof c=="string"?h.fill(f,c):h.fill(f):h.fill(0),h}),!i.kStringMaxLength)try{i.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch{}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),r.exports=i}).call(this)}).call(this,t("_process"))},{_process:467,buffer:220}],496:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("xmlchars/xml/1.0/ed5"),a=t("xmlchars/xml/1.1/ed2"),o=t("xmlchars/xmlns/1.0/ed3"),s=n.isS,i=n.isChar,u=n.isNameStartChar,l=n.isNameChar,f=n.S_LIST,c=n.NAME_RE,h=a.isChar,d=o.isNCNameStartChar,p=o.isNCNameChar,m=o.NC_NAME_RE,v="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",g={__proto__:null,xml:v,xmlns:b},y={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},k=-1,S=-2,C=0,O=1,L=2,j=3,U=4,z=5,Y=6,A=7,I=8,_=9,x=10,T=11,E=12,M=13,F=14,P=15,W=16,N=17,q=18,nt=19,J=20,St=21,kt=22,Mt=23,at=24,K=25,it=26,st=27,Nt=28,rt=29,mt=30,Xt=31,G=32,tt=33,dt=34,Dt=35,re=36,X=37,Gt=38,Jt=39,vt=40,gt=41,Tt=42,ie=43,ot=44,ct=9,xt=10,Ft=13,bt=32,lt=33,Ct=34,zt=38,Zt=39,Se=45,me=47,Ze=59,Ae=60,_e=61,Je=62,We=63,$e=91,ir=93,Le=133,nr=8232,Sr=function(vn){return vn===Ct||vn===Zt},Pr=[Ct,Zt],je=[].concat(Pr,[$e,Je]),dr=[].concat(Pr,[Ae,ir]),pr=[_e,We].concat(nn(f)),Ne=[].concat(nn(f),[Je,zt,Ae]);function fr(vn,It,se){switch(It){case"xml":se!==v&&vn.fail("xml prefix must be bound to ".concat(v,"."));break;case"xmlns":se!==b&&vn.fail("xmlns prefix must be bound to ".concat(b,"."))}switch(se){case b:vn.fail(It===""?"the default namespace may not be set to ".concat(se,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(b,"."));break;case v:switch(It){case"xml":break;case"":vn.fail("the default namespace may not be set to ".concat(se,"."));break;default:vn.fail("may not assign the xml namespace to another prefix.")}}}function _r(vn,It){for(var se=0,he=Object.keys(It);se<he.length;se++){var yr=he[se];fr(vn,yr,It[yr])}}var xr=function(vn){return m.test(vn)},Ar=function(vn){return c.test(vn)},Br=0,tr=1,Or=2;e.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var Gr={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},Hr=function(){function vn(It){Vt(this,vn),this.opt=It??{},this.fragmentOpt=!!this.opt.fragment;var se=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,se){this.nameStartCheck=d,this.nameCheck=p,this.isName=xr,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},g);var he=this.opt.additionalNamespaces;he!=null&&(_r(this,he),Object.assign(this.ns,he))}else this.nameStartCheck=u,this.nameCheck=l,this.isName=Ar,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}return $t(vn,[{key:"closed",get:function(){return this._closed}},{key:"_init",value:function(){var It;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=Br,this.attribList=[];var se=this.fragmentOpt;this.state=se?M:C,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=se,this.xmlDeclPossible=!se,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var he=this.opt.defaultXMLVersion;if(he===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");he="1.0"}this.setXMLVersion(he),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(y),(It=this.readyHandler)===null||It===void 0||It.call(this)}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}},{key:"on",value:function(It,se){this[Gr[It]]=se}},{key:"off",value:function(It){this[Gr[It]]=void 0}},{key:"makeError",value:function(It){var se,he=(se=this.fileName)!==null&&se!==void 0?se:"";return this.trackPosition&&(he.length>0&&(he+=":"),he+="".concat(this.line,":").concat(this.column)),he.length>0&&(he+=": "),new Error(he+It)}},{key:"fail",value:function(It){var se=this.makeError(It),he=this.errorHandler;if(he===void 0)throw se;return he(se),this}},{key:"write",value:function(It){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var se=!1;It===null?(se=!0,It=""):typeof It=="object"&&(It=It.toString()),this.carriedFromPrevious!==void 0&&(It="".concat(this.carriedFromPrevious).concat(It),this.carriedFromPrevious=void 0);var he=It.length,yr=It.charCodeAt(he-1);!se&&(yr===Ft||yr>=55296&&yr<=56319)&&(this.carriedFromPrevious=It[he-1],he--,It=It.slice(0,he));var Ir=this.stateTable;for(this.chunk=It,this.i=0;this.i<he;)Ir[this.state].call(this);return this.chunkPosition+=he,se?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var It=this.chunk,se=this.i;if(this.prevI=se,this.i=se+1,se>=It.length)return k;var he=It.charCodeAt(se);if(this.column++,he<55296){if(he>=bt||he===ct)return he;switch(he){case xt:return this.line++,this.column=0,this.positionAtNewLine=this.position,xt;case Ft:return It.charCodeAt(se+1)===xt&&(this.i=se+2),this.line++,this.column=0,this.positionAtNewLine=this.position,S;default:return this.fail("disallowed character."),he}}if(he>56319)return he>=57344&&he<=65533||this.fail("disallowed character."),he;var yr=65536+1024*(he-55296)+(It.charCodeAt(se+1)-56320);return this.i=se+2,yr>1114111&&this.fail("disallowed character."),yr}},{key:"getCode11",value:function(){var It=this.chunk,se=this.i;if(this.prevI=se,this.i=se+1,se>=It.length)return k;var he=It.charCodeAt(se);if(this.column++,he<55296){if(he>31&&he<127||he>159&&he!==nr||he===ct)return he;switch(he){case xt:return this.line++,this.column=0,this.positionAtNewLine=this.position,xt;case Ft:var yr=It.charCodeAt(se+1);yr!==xt&&yr!==Le||(this.i=se+2);case Le:case nr:return this.line++,this.column=0,this.positionAtNewLine=this.position,S;default:return this.fail("disallowed character."),he}}if(he>56319)return he>=57344&&he<=65533||this.fail("disallowed character."),he;var Ir=65536+1024*(he-55296)+(It.charCodeAt(se+1)-56320);return this.i=se+2,Ir>1114111&&this.fail("disallowed character."),Ir}},{key:"getCodeNorm",value:function(){var It=this.getCode();return It===S?xt:It}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(It){for(var se=this.i,he=this.chunk;;){var yr=this.getCode(),Ir=yr===S,xn=Ir?xt:yr;if(xn===k||It.includes(xn))return this.text+=he.slice(se,this.prevI),xn;Ir&&(this.text+="".concat(he.slice(se,this.prevI),` |
|
|
`),se=this.i)}}},{key:"captureToChar",value:function(It){for(var se=this.i,he=this.chunk;;){var yr=this.getCode();switch(yr){case S:this.text+="".concat(he.slice(se,this.prevI),` |
|
|
`),se=this.i,yr=xt;break;case k:return this.text+=he.slice(se),!1}if(yr===It)return this.text+=he.slice(se,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var It=this.chunk,se=this.i;;){var he=this.getCode();if(he===k)return this.name+=It.slice(se),k;if(!l(he))return this.name+=It.slice(se,this.prevI),he===S?xt:he}}},{key:"skipSpaces",value:function(){for(;;){var It=this.getCodeNorm();if(It===k||!s(It))return It}}},{key:"setXMLVersion",value:function(It){this.currentXMLVersion=It,It==="1.0"?(this.isChar=i,this.getCode=this.getCode10):(this.isChar=h,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=O}},{key:"sBeginWhitespace",value:function(){var It=this.i,se=this.skipSpaces();switch(this.prevI!==It&&(this.xmlDeclPossible=!1),se){case Ae:if(this.state=P,this.text.length!==0)throw new Error("no-empty text at start");break;case k:break;default:this.unget(),this.state=M,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var It,se=this.captureTo(je);switch(se){case Je:(It=this.doctypeHandler)===null||It===void 0||It.call(this,this.text),this.text="",this.state=M,this.doctype=!0;break;case k:break;default:this.text+=String.fromCodePoint(se),se===$e?this.state=U:Sr(se)&&(this.state=j,this.q=se)}}},{key:"sDoctypeQuote",value:function(){var It=this.q;this.captureToChar(It)&&(this.text+=String.fromCodePoint(It),this.q=null,this.state=L)}},{key:"sDTD",value:function(){var It=this.captureTo(dr);It!==k&&(this.text+=String.fromCodePoint(It),It===ir?this.state=L:It===Ae?this.state=Y:Sr(It)&&(this.state=z,this.q=It))}},{key:"sDTDQuoted",value:function(){var It=this.q;this.captureToChar(It)&&(this.text+=String.fromCodePoint(It),this.state=U,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var It=this.getCodeNorm();switch(this.text+=String.fromCodePoint(It),It){case lt:this.state=A,this.openWakaBang="";break;case We:this.state=T;break;default:this.state=U}}},{key:"sDTDOpenWakaBang",value:function(){var It=String.fromCodePoint(this.getCodeNorm()),se=this.openWakaBang+=It;this.text+=It,se!=="-"&&(this.state=se==="--"?I:U,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(Se)&&(this.text+="-",this.state=_)}},{key:"sDTDCommentEnding",value:function(){var It=this.getCodeNorm();this.text+=String.fromCodePoint(It),this.state=It===Se?x:I}},{key:"sDTDCommentEnded",value:function(){var It=this.getCodeNorm();this.text+=String.fromCodePoint(It),It===Je?this.state=U:(this.fail("malformed comment."),this.state=I)}},{key:"sDTDPI",value:function(){this.captureToChar(We)&&(this.text+="?",this.state=E)}},{key:"sDTDPIEnding",value:function(){var It=this.getCodeNorm();this.text+=String.fromCodePoint(It),It===Je&&(this.state=U)}},{key:"sText",value:function(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var It=this.i,se=this.chunk;t:for(;;)switch(this.getCode()){case S:this.entity+="".concat(se.slice(It,this.prevI),` |
|
|
`),It=this.i;break;case Ze:var he=this.entityReturnState,yr=this.entity+se.slice(It,this.prevI);this.state=he;var Ir=void 0;yr===""?(this.fail("empty entity name."),Ir="&;"):(Ir=this.parseEntity(yr),this.entity=""),he===M&&this.textHandler===void 0||(this.text+=Ir);break t;case k:this.entity+=se.slice(It);break t}}},{key:"sOpenWaka",value:function(){var It=this.getCode();if(u(It))this.state=dt,this.unget(),this.xmlDeclPossible=!1;else switch(It){case me:this.state=ie,this.xmlDeclPossible=!1;break;case lt:this.state=W,this.openWakaBang="",this.xmlDeclPossible=!1;break;case We:this.state=Mt;break;default:this.fail("disallowed character in tag name"),this.state=M,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=J,this.openWakaBang="";break;case"--":this.state=N,this.openWakaBang="";break;case"DOCTYPE":this.state=L,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(Se)&&(this.state=q)}},{key:"sCommentEnding",value:function(){var It,se=this.getCodeNorm();se===Se?(this.state=nt,(It=this.commentHandler)===null||It===void 0||It.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(se)),this.state=N)}},{key:"sCommentEnded",value:function(){var It=this.getCodeNorm();It!==Je?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(It)),this.state=N):this.state=M}},{key:"sCData",value:function(){this.captureToChar(ir)&&(this.state=St)}},{key:"sCDataEnding",value:function(){var It=this.getCodeNorm();It===ir?this.state=kt:(this.text+="]".concat(String.fromCodePoint(It)),this.state=J)}},{key:"sCDataEnding2",value:function(){var It,se=this.getCodeNorm();switch(se){case Je:(It=this.cdataHandler)===null||It===void 0||It.call(this,this.text),this.text="",this.state=M;break;case ir:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(se)),this.state=J}}},{key:"sPIFirstChar",value:function(){var It=this.getCodeNorm();this.nameStartCheck(It)?(this.piTarget+=String.fromCodePoint(It),this.state=at):It===We||s(It)?(this.fail("processing instruction without a target."),this.state=It===We?it:K):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(It),this.state=at)}},{key:"sPIRest",value:function(){for(var It=this.chunk,se=this.i;;){var he=this.getCodeNorm();if(he===k)return void(this.piTarget+=It.slice(se));if(!this.nameCheck(he)){this.piTarget+=It.slice(se,this.prevI);var yr=he===We;yr||s(he)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=yr?tt:st):this.state=yr?it:K:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(he));break}}}},{key:"sPIBody",value:function(){if(this.text.length===0){var It=this.getCodeNorm();It===We?this.state=it:s(It)||(this.text=String.fromCodePoint(It))}else this.captureToChar(We)&&(this.state=it)}},{key:"sPIEnding",value:function(){var It,se=this.getCodeNorm();if(se===Je){var he=this.piTarget;he.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(It=this.piHandler)===null||It===void 0||It.call(this,{target:he,body:this.text}),this.piTarget=this.text="",this.state=M}else se===We?this.text+="?":(this.text+="?".concat(String.fromCodePoint(se)),this.state=K);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var It=this.skipSpaces();It!==We?It!==k&&(this.state=Nt,this.name=String.fromCodePoint(It)):this.state=tt}},{key:"sXMLDeclName",value:function(){var It=this.captureTo(pr);if(It===We)return this.state=tt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(s(It)||It===_e){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=It===_e?mt:rt}}},{key:"sXMLDeclEq",value:function(){var It=this.getCodeNorm();if(It===We)return this.state=tt,void this.fail("XML declaration is incomplete.");s(It)||(It!==_e&&this.fail("value required."),this.state=mt)}},{key:"sXMLDeclValueStart",value:function(){var It=this.getCodeNorm();if(It===We)return this.state=tt,void this.fail("XML declaration is incomplete.");s(It)||(Sr(It)?this.q=It:(this.fail("value must be quoted."),this.q=bt),this.state=Xt)}},{key:"sXMLDeclValue",value:function(){var It=this.captureTo([this.q,We]);if(It===We)return this.state=tt,this.text="",void this.fail("XML declaration is incomplete.");if(It!==k){var se=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var he=se;this.xmlDecl.version=he,/^1\.[0-9]+$/.test(he)?this.opt.forceXMLVersion||this.setXMLVersion(he):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(se)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=se;break;case"standalone":se!=="yes"&&se!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=se}this.name="",this.state=G}}},{key:"sXMLDeclSeparator",value:function(){var It=this.getCodeNorm();It!==We?(s(It)||(this.fail("whitespace required."),this.unget()),this.state=st):this.state=tt}},{key:"sXMLDeclEnding",value:function(){var It;this.getCodeNorm()===Je?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(It=this.xmldeclHandler)===null||It===void 0||It.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=M):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var It,se=this.captureNameChars();if(se!==k){var he=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=he.ns=Object.create(null)),(It=this.openTagStartHandler)===null||It===void 0||It.call(this,he),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),se){case Je:this.openTag();break;case me:this.state=Dt;break;default:s(se)||this.fail("disallowed character in tag name."),this.state=re}}}},{key:"sOpenTagSlash",value:function(){this.getCode()===Je?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=re)}},{key:"sAttrib",value:function(){var It=this.skipSpaces();It!==k&&(u(It)?(this.unget(),this.state=X):It===Je?this.openTag():It===me?this.state=Dt:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var It=this.captureNameChars();It===_e?this.state=Jt:s(It)?this.state=Gt:It===Je?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):It!==k&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var It=this.skipSpaces();switch(It){case k:return;case _e:this.state=Jt;break;default:this.fail("attribute without value."),this.text="",this.name="",It===Je?this.openTag():u(It)?(this.unget(),this.state=X):(this.fail("disallowed character in attribute name."),this.state=re)}}},{key:"sAttribValue",value:function(){var It=this.getCodeNorm();Sr(It)?(this.q=It,this.state=vt):s(It)||(this.fail("unquoted attribute value."),this.state=Tt,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var It=this.q,se=this.chunk,he=this.i;;)switch(this.getCode()){case It:return this.pushAttrib(this.name,this.text+se.slice(he,this.prevI)),this.name=this.text="",this.q=null,void(this.state=gt);case zt:return this.text+=se.slice(he,this.prevI),this.state=F,void(this.entityReturnState=vt);case xt:case S:case ct:this.text+="".concat(se.slice(he,this.prevI)," "),he=this.i;break;case Ae:return this.text+=se.slice(he,this.prevI),void this.fail("disallowed character.");case k:return void(this.text+=se.slice(he))}}},{key:"sAttribValueClosed",value:function(){var It=this.getCodeNorm();s(It)?this.state=re:It===Je?this.openTag():It===me?this.state=Dt:u(It)?(this.fail("no whitespace between attributes."),this.unget(),this.state=X):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var It=this.captureTo(Ne);switch(It){case zt:this.state=F,this.entityReturnState=Tt;break;case Ae:this.fail("disallowed character.");break;case k:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",It===Je?this.openTag():this.state=re}}},{key:"sCloseTag",value:function(){var It=this.captureNameChars();It===Je?this.closeTag():s(It)?this.state=ot:It!==k&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case Je:this.closeTag();break;case k:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var It=this.i,se=this.forbiddenState,he=this.chunk,yr=this.textHandler;t:for(;;)switch(this.getCode()){case Ae:if(this.state=P,yr!==void 0){var Ir=this.text,xn=he.slice(It,this.prevI);Ir.length!==0?(yr(Ir+xn),this.text=""):xn.length!==0&&yr(xn)}se=Br;break t;case zt:this.state=F,this.entityReturnState=M,yr!==void 0&&(this.text+=he.slice(It,this.prevI)),se=Br;break t;case ir:switch(se){case Br:se=tr;break;case tr:se=Or;break;case Or:break;default:throw new Error("impossible state")}break;case Je:se===Or&&this.fail('the string "]]>" is disallowed in char data.'),se=Br;break;case S:yr!==void 0&&(this.text+="".concat(he.slice(It,this.prevI),` |
|
|
`)),It=this.i,se=Br;break;case k:yr!==void 0&&(this.text+=he.slice(It));break t;default:se=Br}this.forbiddenState=se}},{key:"handleTextOutsideRoot",value:function(){var It=this.i,se=this.chunk,he=this.textHandler,yr=!1;t:for(;;){var Ir=this.getCode();switch(Ir){case Ae:if(this.state=P,he!==void 0){var xn=this.text,ai=se.slice(It,this.prevI);xn.length!==0?(he(xn+ai),this.text=""):ai.length!==0&&he(ai)}break t;case zt:this.state=F,this.entityReturnState=M,he!==void 0&&(this.text+=se.slice(It,this.prevI)),yr=!0;break t;case S:he!==void 0&&(this.text+="".concat(se.slice(It,this.prevI),` |
|
|
`)),It=this.i;break;case k:he!==void 0&&(this.text+=se.slice(It));break t;default:s(Ir)||(yr=!0)}}yr&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(It,se){var he,yr=this.qname(It),Ir=yr.prefix,xn=yr.local,ai={name:It,prefix:Ir,local:xn,value:se};if(this.attribList.push(ai),(he=this.attributeHandler)===null||he===void 0||he.call(this,ai),Ir==="xmlns"){var _i=se.trim();this.currentXMLVersion==="1.0"&&_i===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[xn]=_i,fr(this,xn,_i)}else if(It==="xmlns"){var Mi=se.trim();this.topNS[""]=Mi,fr(this,"",Mi)}}},{key:"pushAttribPlain",value:function(It,se){var he,yr={name:It,value:se};this.attribList.push(yr),(he=this.attributeHandler)===null||he===void 0||he.call(this,yr)}},{key:"end",value:function(){var It,se;this.sawRoot||this.fail("document must contain a root element.");for(var he=this.tags;he.length>0;){var yr=he.pop();this.fail("unclosed tag: ".concat(yr.name))}this.state!==C&&this.state!==M&&this.fail("unexpected end.");var Ir=this.text;return Ir.length!==0&&((It=this.textHandler)===null||It===void 0||It.call(this,Ir),this.text=""),this._closed=!0,(se=this.endHandler)===null||se===void 0||se.call(this),this._init(),this}},{key:"resolve",value:function(It){var se,he,yr=this.topNS[It];if(yr!==void 0)return yr;for(var Ir=this.tags,xn=Ir.length-1;xn>=0;xn--)if((yr=Ir[xn].ns[It])!==void 0)return yr;return(yr=this.ns[It])!==void 0?yr:(he=(se=this.opt).resolvePrefix)===null||he===void 0?void 0:he.call(se,It)}},{key:"qname",value:function(It){var se=It.indexOf(":");if(se===-1)return{prefix:"",local:It};var he=It.slice(se+1),yr=It.slice(0,se);return(yr===""||he===""||he.includes(":"))&&this.fail("malformed name: ".concat(It,".")),{prefix:yr,local:he}}},{key:"processAttribsNS",value:function(){var It,se=this.attribList,he=this.tag,yr=this.qname(he.name),Ir=yr.prefix,xn=yr.local;he.prefix=Ir,he.local=xn;var ai=he.uri=(It=this.resolve(Ir))!==null&&It!==void 0?It:"";if(Ir!==""&&(Ir==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),ai===""&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(Ir),".")),he.uri=Ir)),se.length!==0){var _i,Mi=he.attributes,Sa=new Set,Ri=ph(se);try{for(Ri.s();!(_i=Ri.n()).done;){var ei=_i.value,gn=ei.name,Kr=ei.prefix,Ba=ei.local,Vi=void 0,ja=void 0;Kr===""?(Vi=gn==="xmlns"?b:"",ja=gn):((Vi=this.resolve(Kr))===void 0&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(Kr),".")),Vi=Kr),ja="{".concat(Vi,"}").concat(Ba)),Sa.has(ja)&&this.fail("duplicate attribute: ".concat(ja,".")),Sa.add(ja),ei.uri=Vi,Mi[gn]=ei}}catch(Ss){Ri.e(Ss)}finally{Ri.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var It,se=this.attribList,he=this.tag.attributes,yr=ph(se);try{for(yr.s();!(It=yr.n()).done;){var Ir=It.value,xn=Ir.name,ai=Ir.value;he[xn]!==void 0&&this.fail("duplicate attribute: ".concat(xn,".")),he[xn]=ai}}catch(_i){yr.e(_i)}finally{yr.f()}this.attribList=[]}},{key:"openTag",value:function(){var It;this.processAttribs();var se=this.tags,he=this.tag;he.isSelfClosing=!1,(It=this.openTagHandler)===null||It===void 0||It.call(this,he),se.push(he),this.state=M,this.name=""}},{key:"openSelfClosingTag",value:function(){var It,se,he;this.processAttribs();var yr=this.tags,Ir=this.tag;Ir.isSelfClosing=!0,(It=this.openTagHandler)===null||It===void 0||It.call(this,Ir),(se=this.closeTagHandler)===null||se===void 0||se.call(this,Ir),(this.tag=(he=yr[yr.length-1])!==null&&he!==void 0?he:null)===null&&(this.closedRoot=!0),this.state=M,this.name=""}},{key:"closeTag",value:function(){var It=this.tags,se=this.name;if(this.state=M,this.name="",se==="")return this.fail("weird empty close tag."),void(this.text+="</>");for(var he=this.closeTagHandler,yr=It.length;yr-- >0;){var Ir=this.tag=It.pop();if(this.topNS=Ir.ns,he==null||he(Ir),Ir.name===se)break;this.fail("unexpected close tag.")}yr===0?this.closedRoot=!0:yr<0&&(this.fail("unmatched closing tag: ".concat(se,".")),this.text+="</".concat(se,">"))}},{key:"parseEntity",value:function(It){if(It[0]!=="#"){var se=this.ENTITIES[It];return se!==void 0?se:(this.fail(this.isName(It)?"undefined entity.":"disallowed character in entity name."),"&".concat(It,";"))}var he=NaN;return It[1]==="x"&&/^#x[0-9a-f]+$/i.test(It)?he=parseInt(It.slice(2),16):/^#[0-9]+$/.test(It)&&(he=parseInt(It.slice(1),10)),this.isChar(he)?String.fromCodePoint(he):(this.fail("malformed character entity."),"&".concat(It,";"))}}])}();e.SaxesParser=Hr},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(t,r,e){var n=t("safe-buffer").Buffer;function a(o,s){this._block=n.alloc(o),this._finalSize=s,this._blockSize=o,this._len=0}a.prototype.update=function(o,s){typeof o=="string"&&(s=s||"utf8",o=n.from(o,s));for(var i=this._block,u=this._blockSize,l=o.length,f=this._len,c=0;c<l;){for(var h=f%u,d=Math.min(l-c,u-h),p=0;p<d;p++)i[h+p]=o[c+p];c+=d,(f+=d)%u==0&&this._update(i)}return this._len+=l,this},a.prototype.digest=function(o){var s=this._len%this._blockSize;this._block[s]=128,this._block.fill(0,s+1),s>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var u=(4294967295&i)>>>0,l=(i-u)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var f=this._hash();return o?f.toString(o):f},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},r.exports=a},{"safe-buffer":494}],498:[function(t,r,e){var n=r.exports=function(a){a=a.toLowerCase();var o=n[a];if(!o)throw new Error(a+" is not supported (we accept pull requests)");return new o};n.sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function u(){this.init(),this._w=i,a.call(this,64,56)}function l(h){return h<<5|h>>>27}function f(h){return h<<30|h>>>2}function c(h,d,p,m){return h===0?d&p|~d&m:h===2?d&p|d&m|p&m:d^p^m}n(u,a),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(h){for(var d=this._w,p=0|this._a,m=0|this._b,v=0|this._c,b=0|this._d,g=0|this._e,y=0;y<16;++y)d[y]=h.readInt32BE(4*y);for(;y<80;++y)d[y]=d[y-3]^d[y-8]^d[y-14]^d[y-16];for(var k=0;k<80;++k){var S=~~(k/20),C=l(p)+c(S,m,v,b)+g+d[k]+s[S]|0;g=b,b=v,v=f(m),m=p,p=C}this._a=p+this._a|0,this._b=m+this._b|0,this._c=v+this._c|0,this._d=b+this._d|0,this._e=g+this._e|0},u.prototype._hash=function(){var h=o.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},r.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function u(){this.init(),this._w=i,a.call(this,64,56)}function l(d){return d<<1|d>>>31}function f(d){return d<<5|d>>>27}function c(d){return d<<30|d>>>2}function h(d,p,m,v){return d===0?p&m|~p&v:d===2?p&m|p&v|m&v:p^m^v}n(u,a),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(d){for(var p=this._w,m=0|this._a,v=0|this._b,b=0|this._c,g=0|this._d,y=0|this._e,k=0;k<16;++k)p[k]=d.readInt32BE(4*k);for(;k<80;++k)p[k]=l(p[k-3]^p[k-8]^p[k-14]^p[k-16]);for(var S=0;S<80;++S){var C=~~(S/20),O=f(m)+h(C,v,b,g)+y+p[S]+s[C]|0;y=g,g=b,b=c(v),v=m,m=O}this._a=m+this._a|0,this._b=v+this._b|0,this._c=b+this._c|0,this._d=g+this._d|0,this._e=y+this._e|0},u.prototype._hash=function(){var d=o.allocUnsafe(20);return d.writeInt32BE(0|this._a,0),d.writeInt32BE(0|this._b,4),d.writeInt32BE(0|this._c,8),d.writeInt32BE(0|this._d,12),d.writeInt32BE(0|this._e,16),d},r.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(t,r,e){var n=t("inherits"),a=t("./sha256"),o=t("./hash"),s=t("safe-buffer").Buffer,i=new Array(64);function u(){this.init(),this._w=i,o.call(this,64,56)}n(u,a),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var l=s.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},r.exports=u},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,s=[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],i=new Array(64);function u(){this.init(),this._w=i,a.call(this,64,56)}function l(m,v,b){return b^m&(v^b)}function f(m,v,b){return m&v|b&(m|v)}function c(m){return(m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10)}function h(m){return(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7)}function d(m){return(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3}function p(m){return(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10}n(u,a),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(m){for(var v=this._w,b=0|this._a,g=0|this._b,y=0|this._c,k=0|this._d,S=0|this._e,C=0|this._f,O=0|this._g,L=0|this._h,j=0;j<16;++j)v[j]=m.readInt32BE(4*j);for(;j<64;++j)v[j]=p(v[j-2])+v[j-7]+d(v[j-15])+v[j-16]|0;for(var U=0;U<64;++U){var z=L+h(S)+l(S,C,O)+s[U]+v[U]|0,Y=c(b)+f(b,g,y)|0;L=O,O=C,C=S,S=k+z|0,k=y,y=g,g=b,b=z+Y|0}this._a=b+this._a|0,this._b=g+this._b|0,this._c=y+this._c|0,this._d=k+this._d|0,this._e=S+this._e|0,this._f=C+this._f|0,this._g=O+this._g|0,this._h=L+this._h|0},u.prototype._hash=function(){var m=o.allocUnsafe(32);return m.writeInt32BE(this._a,0),m.writeInt32BE(this._b,4),m.writeInt32BE(this._c,8),m.writeInt32BE(this._d,12),m.writeInt32BE(this._e,16),m.writeInt32BE(this._f,20),m.writeInt32BE(this._g,24),m.writeInt32BE(this._h,28),m},r.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(t,r,e){var n=t("inherits"),a=t("./sha512"),o=t("./hash"),s=t("safe-buffer").Buffer,i=new Array(160);function u(){this.init(),this._w=i,o.call(this,128,112)}n(u,a),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var l=s.allocUnsafe(48);function f(c,h,d){l.writeInt32BE(c,d),l.writeInt32BE(h,d+4)}return f(this._ah,this._al,0),f(this._bh,this._bl,8),f(this._ch,this._cl,16),f(this._dh,this._dl,24),f(this._eh,this._el,32),f(this._fh,this._fl,40),l},r.exports=u},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(t,r,e){var n=t("inherits"),a=t("./hash"),o=t("safe-buffer").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],i=new Array(160);function u(){this.init(),this._w=i,a.call(this,128,112)}function l(g,y,k){return k^g&(y^k)}function f(g,y,k){return g&y|k&(g|y)}function c(g,y){return(g>>>28|y<<4)^(y>>>2|g<<30)^(y>>>7|g<<25)}function h(g,y){return(g>>>14|y<<18)^(g>>>18|y<<14)^(y>>>9|g<<23)}function d(g,y){return(g>>>1|y<<31)^(g>>>8|y<<24)^g>>>7}function p(g,y){return(g>>>1|y<<31)^(g>>>8|y<<24)^(g>>>7|y<<25)}function m(g,y){return(g>>>19|y<<13)^(y>>>29|g<<3)^g>>>6}function v(g,y){return(g>>>19|y<<13)^(y>>>29|g<<3)^(g>>>6|y<<26)}function b(g,y){return g>>>0<y>>>0?1:0}n(u,a),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(g){for(var y=this._w,k=0|this._ah,S=0|this._bh,C=0|this._ch,O=0|this._dh,L=0|this._eh,j=0|this._fh,U=0|this._gh,z=0|this._hh,Y=0|this._al,A=0|this._bl,I=0|this._cl,_=0|this._dl,x=0|this._el,T=0|this._fl,E=0|this._gl,M=0|this._hl,F=0;F<32;F+=2)y[F]=g.readInt32BE(4*F),y[F+1]=g.readInt32BE(4*F+4);for(;F<160;F+=2){var P=y[F-30],W=y[F-30+1],N=d(P,W),q=p(W,P),nt=m(P=y[F-4],W=y[F-4+1]),J=v(W,P),St=y[F-14],kt=y[F-14+1],Mt=y[F-32],at=y[F-32+1],K=q+kt|0,it=N+St+b(K,q)|0;it=(it=it+nt+b(K=K+J|0,J)|0)+Mt+b(K=K+at|0,at)|0,y[F]=it,y[F+1]=K}for(var st=0;st<160;st+=2){it=y[st],K=y[st+1];var Nt=f(k,S,C),rt=f(Y,A,I),mt=c(k,Y),Xt=c(Y,k),G=h(L,x),tt=h(x,L),dt=s[st],Dt=s[st+1],re=l(L,j,U),X=l(x,T,E),Gt=M+tt|0,Jt=z+G+b(Gt,M)|0;Jt=(Jt=(Jt=Jt+re+b(Gt=Gt+X|0,X)|0)+dt+b(Gt=Gt+Dt|0,Dt)|0)+it+b(Gt=Gt+K|0,K)|0;var vt=Xt+rt|0,gt=mt+Nt+b(vt,Xt)|0;z=U,M=E,U=j,E=T,j=L,T=x,L=O+Jt+b(x=_+Gt|0,_)|0,O=C,_=I,C=S,I=A,S=k,A=Y,k=Jt+gt+b(Y=Gt+vt|0,Gt)|0}this._al=this._al+Y|0,this._bl=this._bl+A|0,this._cl=this._cl+I|0,this._dl=this._dl+_|0,this._el=this._el+x|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+M|0,this._ah=this._ah+k+b(this._al,Y)|0,this._bh=this._bh+S+b(this._bl,A)|0,this._ch=this._ch+C+b(this._cl,I)|0,this._dh=this._dh+O+b(this._dl,_)|0,this._eh=this._eh+L+b(this._el,x)|0,this._fh=this._fh+j+b(this._fl,T)|0,this._gh=this._gh+U+b(this._gl,E)|0,this._hh=this._hh+z+b(this._hl,M)|0},u.prototype._hash=function(){var g=o.allocUnsafe(64);function y(k,S,C){g.writeInt32BE(k,C),g.writeInt32BE(S,C+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),g},r.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(t,r,e){r.exports=a;var n=t("events").EventEmitter;function a(){n.call(this)}t("inherits")(a,n),a.Readable=t("readable-stream/readable.js"),a.Writable=t("readable-stream/writable.js"),a.Duplex=t("readable-stream/duplex.js"),a.Transform=t("readable-stream/transform.js"),a.PassThrough=t("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(o,s){var i=this;function u(m){o.writable&&o.write(m)===!1&&i.pause&&i.pause()}function l(){i.readable&&i.resume&&i.resume()}i.on("data",u),o.on("drain",l),o._isStdio||s&&s.end===!1||(i.on("end",c),i.on("close",h));var f=!1;function c(){f||(f=!0,o.end())}function h(){f||(f=!0,typeof o.destroy=="function"&&o.destroy())}function d(m){if(p(),n.listenerCount(this,"error")===0)throw m}function p(){i.removeListener("data",u),o.removeListener("drain",l),i.removeListener("end",c),i.removeListener("close",h),i.removeListener("error",d),o.removeListener("error",d),i.removeListener("end",p),i.removeListener("close",p),o.removeListener("close",p)}return i.on("error",d),o.on("error",d),i.on("end",p),i.on("close",p),o.on("close",p),o.emit("pipe",i),o}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(t,r,e){var n={}.toString;r.exports=Array.isArray||function(a){return n.call(a)=="[object Array]"}},{}],507:[function(t,r,e){r.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(t,r,e){var n=t("process-nextick-args"),a=Object.keys||function(p){var m=[];for(var v in p)m.push(v);return m};r.exports=c;var o=Object.create(t("core-util-is"));o.inherits=t("inherits");var s=t("./_stream_readable"),i=t("./_stream_writable");o.inherits(c,s);for(var u=a(i.prototype),l=0;l<u.length;l++){var f=u[l];c.prototype[f]||(c.prototype[f]=i.prototype[f])}function c(p){if(!(this instanceof c))return new c(p);s.call(this,p),i.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(d,this)}function d(p){p.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),c.prototype._destroy=function(p,m){this.push(null),this.end(),n.nextTick(m,p)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(t,r,e){r.exports=o;var n=t("./_stream_transform"),a=Object.create(t("core-util-is"));function o(s){if(!(this instanceof o))return new o(s);n.call(this,s)}a.inherits=t("inherits"),a.inherits(o,n),o.prototype._transform=function(s,i,u){u(null,s)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(t,r,e){(function(n,a){(function(){var o=t("process-nextick-args");r.exports=O;var s,i=t("isarray");O.ReadableState=C,t("events").EventEmitter;var u=function(it,st){return it.listeners(st).length},l=t("./internal/streams/stream"),f=t("safe-buffer").Buffer,c=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(it){return f.from(it)}function d(it){return f.isBuffer(it)||it instanceof c}var p=Object.create(t("core-util-is"));p.inherits=t("inherits");var m=t("util"),v=void 0;v=m&&m.debuglog?m.debuglog("stream"):function(){};var b,g=t("./internal/streams/BufferList"),y=t("./internal/streams/destroy");p.inherits(O,l);var k=["error","close","destroy","pause","resume"];function S(it,st,Nt){if(typeof it.prependListener=="function")return it.prependListener(st,Nt);it._events&&it._events[st]?i(it._events[st])?it._events[st].unshift(Nt):it._events[st]=[Nt,it._events[st]]:it.on(st,Nt)}function C(it,st){it=it||{};var Nt=st instanceof(s=s||t("./_stream_duplex"));this.objectMode=!!it.objectMode,Nt&&(this.objectMode=this.objectMode||!!it.readableObjectMode);var rt=it.highWaterMark,mt=it.readableHighWaterMark,Xt=this.objectMode?16:16384;this.highWaterMark=rt||rt===0?rt:Nt&&(mt||mt===0)?mt:Xt,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=it.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,it.encoding&&(b||(b=t("string_decoder/").StringDecoder),this.decoder=new b(it.encoding),this.encoding=it.encoding)}function O(it){if(s=s||t("./_stream_duplex"),!(this instanceof O))return new O(it);this._readableState=new C(it,this),this.readable=!0,it&&(typeof it.read=="function"&&(this._read=it.read),typeof it.destroy=="function"&&(this._destroy=it.destroy)),l.call(this)}function L(it,st,Nt,rt,mt){var Xt,G=it._readableState;return st===null?(G.reading=!1,_(it,G)):(mt||(Xt=U(G,st)),Xt?it.emit("error",Xt):G.objectMode||st&&st.length>0?(typeof st=="string"||G.objectMode||Object.getPrototypeOf(st)===f.prototype||(st=h(st)),rt?G.endEmitted?it.emit("error",new Error("stream.unshift() after end event")):j(it,G,st,!0):G.ended?it.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Nt?(st=G.decoder.write(st),G.objectMode||st.length!==0?j(it,G,st,!1):E(it,G)):j(it,G,st,!1))):rt||(G.reading=!1)),z(G)}function j(it,st,Nt,rt){st.flowing&&st.length===0&&!st.sync?(it.emit("data",Nt),it.read(0)):(st.length+=st.objectMode?1:Nt.length,rt?st.buffer.unshift(Nt):st.buffer.push(Nt),st.needReadable&&x(it)),E(it,st)}function U(it,st){var Nt;return d(st)||typeof st=="string"||st===void 0||it.objectMode||(Nt=new TypeError("Invalid non-string/buffer chunk")),Nt}function z(it){return!it.ended&&(it.needReadable||it.length<it.highWaterMark||it.length===0)}Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(it){this._readableState&&(this._readableState.destroyed=it)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(it,st){this.push(null),st(it)},O.prototype.push=function(it,st){var Nt,rt=this._readableState;return rt.objectMode?Nt=!0:typeof it=="string"&&((st=st||rt.defaultEncoding)!==rt.encoding&&(it=f.from(it,st),st=""),Nt=!0),L(this,it,st,!1,Nt)},O.prototype.unshift=function(it){return L(this,it,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(it){return b||(b=t("string_decoder/").StringDecoder),this._readableState.decoder=new b(it),this._readableState.encoding=it,this};var Y=8388608;function A(it){return it>=Y?it=Y:(it--,it|=it>>>1,it|=it>>>2,it|=it>>>4,it|=it>>>8,it|=it>>>16,it++),it}function I(it,st){return it<=0||st.length===0&&st.ended?0:st.objectMode?1:it!=it?st.flowing&&st.length?st.buffer.head.data.length:st.length:(it>st.highWaterMark&&(st.highWaterMark=A(it)),it<=st.length?it:st.ended?st.length:(st.needReadable=!0,0))}function _(it,st){if(!st.ended){if(st.decoder){var Nt=st.decoder.end();Nt&&Nt.length&&(st.buffer.push(Nt),st.length+=st.objectMode?1:Nt.length)}st.ended=!0,x(it)}}function x(it){var st=it._readableState;st.needReadable=!1,st.emittedReadable||(v("emitReadable",st.flowing),st.emittedReadable=!0,st.sync?o.nextTick(T,it):T(it))}function T(it){v("emit readable"),it.emit("readable"),q(it)}function E(it,st){st.readingMore||(st.readingMore=!0,o.nextTick(M,it,st))}function M(it,st){for(var Nt=st.length;!st.reading&&!st.flowing&&!st.ended&&st.length<st.highWaterMark&&(v("maybeReadMore read 0"),it.read(0),Nt!==st.length);)Nt=st.length;st.readingMore=!1}function F(it){return function(){var st=it._readableState;v("pipeOnDrain",st.awaitDrain),st.awaitDrain&&st.awaitDrain--,st.awaitDrain===0&&u(it,"data")&&(st.flowing=!0,q(it))}}function P(it){v("readable nexttick read 0"),it.read(0)}function W(it,st){st.resumeScheduled||(st.resumeScheduled=!0,o.nextTick(N,it,st))}function N(it,st){st.reading||(v("resume read 0"),it.read(0)),st.resumeScheduled=!1,st.awaitDrain=0,it.emit("resume"),q(it),st.flowing&&!st.reading&&it.read(0)}function q(it){var st=it._readableState;for(v("flow",st.flowing);st.flowing&&it.read()!==null;);}function nt(it,st){return st.length===0?null:(st.objectMode?Nt=st.buffer.shift():!it||it>=st.length?(Nt=st.decoder?st.buffer.join(""):st.buffer.length===1?st.buffer.head.data:st.buffer.concat(st.length),st.buffer.clear()):Nt=J(it,st.buffer,st.decoder),Nt);var Nt}function J(it,st,Nt){var rt;return it<st.head.data.length?(rt=st.head.data.slice(0,it),st.head.data=st.head.data.slice(it)):rt=it===st.head.data.length?st.shift():Nt?St(it,st):kt(it,st),rt}function St(it,st){var Nt=st.head,rt=1,mt=Nt.data;for(it-=mt.length;Nt=Nt.next;){var Xt=Nt.data,G=it>Xt.length?Xt.length:it;if(G===Xt.length?mt+=Xt:mt+=Xt.slice(0,it),(it-=G)==0){G===Xt.length?(++rt,Nt.next?st.head=Nt.next:st.head=st.tail=null):(st.head=Nt,Nt.data=Xt.slice(G));break}++rt}return st.length-=rt,mt}function kt(it,st){var Nt=f.allocUnsafe(it),rt=st.head,mt=1;for(rt.data.copy(Nt),it-=rt.data.length;rt=rt.next;){var Xt=rt.data,G=it>Xt.length?Xt.length:it;if(Xt.copy(Nt,Nt.length-it,0,G),(it-=G)==0){G===Xt.length?(++mt,rt.next?st.head=rt.next:st.head=st.tail=null):(st.head=rt,rt.data=Xt.slice(G));break}++mt}return st.length-=mt,Nt}function Mt(it){var st=it._readableState;if(st.length>0)throw new Error('"endReadable()" called on non-empty stream');st.endEmitted||(st.ended=!0,o.nextTick(at,st,it))}function at(it,st){it.endEmitted||it.length!==0||(it.endEmitted=!0,st.readable=!1,st.emit("end"))}function K(it,st){for(var Nt=0,rt=it.length;Nt<rt;Nt++)if(it[Nt]===st)return Nt;return-1}O.prototype.read=function(it){v("read",it),it=parseInt(it,10);var st=this._readableState,Nt=it;if(it!==0&&(st.emittedReadable=!1),it===0&&st.needReadable&&(st.length>=st.highWaterMark||st.ended))return v("read: emitReadable",st.length,st.ended),st.length===0&&st.ended?Mt(this):x(this),null;if((it=I(it,st))===0&&st.ended)return st.length===0&&Mt(this),null;var rt,mt=st.needReadable;return v("need readable",mt),(st.length===0||st.length-it<st.highWaterMark)&&v("length less than watermark",mt=!0),st.ended||st.reading?v("reading or ended",mt=!1):mt&&(v("do read"),st.reading=!0,st.sync=!0,st.length===0&&(st.needReadable=!0),this._read(st.highWaterMark),st.sync=!1,st.reading||(it=I(Nt,st))),(rt=it>0?nt(it,st):null)===null?(st.needReadable=!0,it=0):st.length-=it,st.length===0&&(st.ended||(st.needReadable=!0),Nt!==it&&st.ended&&Mt(this)),rt!==null&&this.emit("data",rt),rt},O.prototype._read=function(it){this.emit("error",new Error("_read() is not implemented"))},O.prototype.pipe=function(it,st){var Nt=this,rt=this._readableState;switch(rt.pipesCount){case 0:rt.pipes=it;break;case 1:rt.pipes=[rt.pipes,it];break;default:rt.pipes.push(it)}rt.pipesCount+=1,v("pipe count=%d opts=%j",rt.pipesCount,st);var mt=st&&st.end===!1||it===n.stdout||it===n.stderr?gt:G;function Xt(Tt,ie){v("onunpipe"),Tt===Nt&&ie&&ie.hasUnpiped===!1&&(ie.hasUnpiped=!0,Dt())}function G(){v("onend"),it.end()}rt.endEmitted?o.nextTick(mt):Nt.once("end",mt),it.on("unpipe",Xt);var tt=F(Nt);it.on("drain",tt);var dt=!1;function Dt(){v("cleanup"),it.removeListener("close",Jt),it.removeListener("finish",vt),it.removeListener("drain",tt),it.removeListener("error",Gt),it.removeListener("unpipe",Xt),Nt.removeListener("end",G),Nt.removeListener("end",gt),Nt.removeListener("data",X),dt=!0,!rt.awaitDrain||it._writableState&&!it._writableState.needDrain||tt()}var re=!1;function X(Tt){v("ondata"),re=!1,it.write(Tt)!==!1||re||((rt.pipesCount===1&&rt.pipes===it||rt.pipesCount>1&&K(rt.pipes,it)!==-1)&&!dt&&(v("false write response, pause",rt.awaitDrain),rt.awaitDrain++,re=!0),Nt.pause())}function Gt(Tt){v("onerror",Tt),gt(),it.removeListener("error",Gt),u(it,"error")===0&&it.emit("error",Tt)}function Jt(){it.removeListener("finish",vt),gt()}function vt(){v("onfinish"),it.removeListener("close",Jt),gt()}function gt(){v("unpipe"),Nt.unpipe(it)}return Nt.on("data",X),S(it,"error",Gt),it.once("close",Jt),it.once("finish",vt),it.emit("pipe",Nt),rt.flowing||(v("pipe resume"),Nt.resume()),it},O.prototype.unpipe=function(it){var st=this._readableState,Nt={hasUnpiped:!1};if(st.pipesCount===0)return this;if(st.pipesCount===1)return it&&it!==st.pipes||(it||(it=st.pipes),st.pipes=null,st.pipesCount=0,st.flowing=!1,it&&it.emit("unpipe",this,Nt)),this;if(!it){var rt=st.pipes,mt=st.pipesCount;st.pipes=null,st.pipesCount=0,st.flowing=!1;for(var Xt=0;Xt<mt;Xt++)rt[Xt].emit("unpipe",this,{hasUnpiped:!1});return this}var G=K(st.pipes,it);return G===-1||(st.pipes.splice(G,1),st.pipesCount-=1,st.pipesCount===1&&(st.pipes=st.pipes[0]),it.emit("unpipe",this,Nt)),this},O.prototype.on=function(it,st){var Nt=l.prototype.on.call(this,it,st);if(it==="data")this._readableState.flowing!==!1&&this.resume();else if(it==="readable"){var rt=this._readableState;rt.endEmitted||rt.readableListening||(rt.readableListening=rt.needReadable=!0,rt.emittedReadable=!1,rt.reading?rt.length&&x(this):o.nextTick(P,this))}return Nt},O.prototype.addListener=O.prototype.on,O.prototype.resume=function(){var it=this._readableState;return it.flowing||(v("resume"),it.flowing=!0,W(this,it)),this},O.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this},O.prototype.wrap=function(it){var st=this,Nt=this._readableState,rt=!1;for(var mt in it.on("end",function(){if(v("wrapped end"),Nt.decoder&&!Nt.ended){var G=Nt.decoder.end();G&&G.length&&st.push(G)}st.push(null)}),it.on("data",function(G){v("wrapped data"),Nt.decoder&&(G=Nt.decoder.write(G)),Nt.objectMode&&G==null||(Nt.objectMode||G&&G.length)&&(st.push(G)||(rt=!0,it.pause()))}),it)this[mt]===void 0&&typeof it[mt]=="function"&&(this[mt]=function(G){return function(){return it[G].apply(it,arguments)}}(mt));for(var Xt=0;Xt<k.length;Xt++)it.on(k[Xt],this.emit.bind(this,k[Xt]));return this._read=function(G){v("wrapped _read",G),rt&&(rt=!1,it.resume())},this},Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),O._fromList=nt}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(t,r,e){r.exports=s;var n=t("./_stream_duplex"),a=Object.create(t("core-util-is"));function o(l,f){var c=this._transformState;c.transforming=!1;var h=c.writecb;if(!h)return this.emit("error",new Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,f!=null&&this.push(f),h(l);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function s(l){if(!(this instanceof s))return new s(l);n.call(this,l),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",i)}function i(){var l=this;typeof this._flush=="function"?this._flush(function(f,c){u(l,f,c)}):u(this,null,null)}function u(l,f,c){if(f)return l.emit("error",f);if(c!=null&&l.push(c),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}a.inherits=t("inherits"),a.inherits(s,n),s.prototype.push=function(l,f){return this._transformState.needTransform=!1,n.prototype.push.call(this,l,f)},s.prototype._transform=function(l,f,c){throw new Error("_transform() is not implemented")},s.prototype._write=function(l,f,c){var h=this._transformState;if(h.writecb=c,h.writechunk=l,h.writeencoding=f,!h.transforming){var d=this._readableState;(h.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},s.prototype._read=function(l){var f=this._transformState;f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(l,f){var c=this;n.prototype._destroy.call(this,l,function(h){f(h),c.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(t,r,e){(function(n,a,o){(function(){var s=t("process-nextick-args");function i(N){var q=this;this.next=null,this.entry=null,this.finish=function(){W(q,N)}}r.exports=S;var u,l=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?o:s.nextTick;S.WritableState=k;var f=Object.create(t("core-util-is"));f.inherits=t("inherits");var c={deprecate:t("util-deprecate")},h=t("./internal/streams/stream"),d=t("safe-buffer").Buffer,p=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function m(N){return d.from(N)}function v(N){return d.isBuffer(N)||N instanceof p}var b,g=t("./internal/streams/destroy");function y(){}function k(N,q){u=u||t("./_stream_duplex"),N=N||{};var nt=q instanceof u;this.objectMode=!!N.objectMode,nt&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var J=N.highWaterMark,St=N.writableHighWaterMark,kt=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:nt&&(St||St===0)?St:kt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Mt=N.decodeStrings===!1;this.decodeStrings=!Mt,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(at){A(q,at)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(N){if(u=u||t("./_stream_duplex"),!(b.call(S,this)||this instanceof u))return new S(N);this._writableState=new k(N,this),this.writable=!0,N&&(typeof N.write=="function"&&(this._write=N.write),typeof N.writev=="function"&&(this._writev=N.writev),typeof N.destroy=="function"&&(this._destroy=N.destroy),typeof N.final=="function"&&(this._final=N.final)),h.call(this)}function C(N,q){var nt=new Error("write after end");N.emit("error",nt),s.nextTick(q,nt)}function O(N,q,nt,J){var St=!0,kt=!1;return nt===null?kt=new TypeError("May not write null values to stream"):typeof nt=="string"||nt===void 0||q.objectMode||(kt=new TypeError("Invalid non-string/buffer chunk")),kt&&(N.emit("error",kt),s.nextTick(J,kt),St=!1),St}function L(N,q,nt){return N.objectMode||N.decodeStrings===!1||typeof q!="string"||(q=d.from(q,nt)),q}function j(N,q,nt,J,St,kt){if(!nt){var Mt=L(q,J,St);J!==Mt&&(nt=!0,St="buffer",J=Mt)}var at=q.objectMode?1:J.length;q.length+=at;var K=q.length<q.highWaterMark;if(K||(q.needDrain=!0),q.writing||q.corked){var it=q.lastBufferedRequest;q.lastBufferedRequest={chunk:J,encoding:St,isBuf:nt,callback:kt,next:null},it?it.next=q.lastBufferedRequest:q.bufferedRequest=q.lastBufferedRequest,q.bufferedRequestCount+=1}else U(N,q,!1,at,J,St,kt);return K}function U(N,q,nt,J,St,kt,Mt){q.writelen=J,q.writecb=Mt,q.writing=!0,q.sync=!0,nt?N._writev(St,q.onwrite):N._write(St,kt,q.onwrite),q.sync=!1}function z(N,q,nt,J,St){--q.pendingcb,nt?(s.nextTick(St,J),s.nextTick(F,N,q),N._writableState.errorEmitted=!0,N.emit("error",J)):(St(J),N._writableState.errorEmitted=!0,N.emit("error",J),F(N,q))}function Y(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function A(N,q){var nt=N._writableState,J=nt.sync,St=nt.writecb;if(Y(nt),q)z(N,nt,J,q,St);else{var kt=T(nt);kt||nt.corked||nt.bufferProcessing||!nt.bufferedRequest||x(N,nt),J?l(I,N,nt,kt,St):I(N,nt,kt,St)}}function I(N,q,nt,J){nt||_(N,q),q.pendingcb--,J(),F(N,q)}function _(N,q){q.length===0&&q.needDrain&&(q.needDrain=!1,N.emit("drain"))}function x(N,q){q.bufferProcessing=!0;var nt=q.bufferedRequest;if(N._writev&&nt&&nt.next){var J=q.bufferedRequestCount,St=new Array(J),kt=q.corkedRequestsFree;kt.entry=nt;for(var Mt=0,at=!0;nt;)St[Mt]=nt,nt.isBuf||(at=!1),nt=nt.next,Mt+=1;St.allBuffers=at,U(N,q,!0,q.length,St,"",kt.finish),q.pendingcb++,q.lastBufferedRequest=null,kt.next?(q.corkedRequestsFree=kt.next,kt.next=null):q.corkedRequestsFree=new i(q),q.bufferedRequestCount=0}else{for(;nt;){var K=nt.chunk,it=nt.encoding,st=nt.callback;if(U(N,q,!1,q.objectMode?1:K.length,K,it,st),nt=nt.next,q.bufferedRequestCount--,q.writing)break}nt===null&&(q.lastBufferedRequest=null)}q.bufferedRequest=nt,q.bufferProcessing=!1}function T(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function E(N,q){N._final(function(nt){q.pendingcb--,nt&&N.emit("error",nt),q.prefinished=!0,N.emit("prefinish"),F(N,q)})}function M(N,q){q.prefinished||q.finalCalled||(typeof N._final=="function"?(q.pendingcb++,q.finalCalled=!0,s.nextTick(E,N,q)):(q.prefinished=!0,N.emit("prefinish")))}function F(N,q){var nt=T(q);return nt&&(M(N,q),q.pendingcb===0&&(q.finished=!0,N.emit("finish"))),nt}function P(N,q,nt){q.ending=!0,F(N,q),nt&&(q.finished?s.nextTick(nt):N.once("finish",nt)),q.ended=!0,N.writable=!1}function W(N,q,nt){var J=N.entry;for(N.entry=null;J;){var St=J.callback;q.pendingcb--,St(nt),J=J.next}q.corkedRequestsFree.next=N}f.inherits(S,h),k.prototype.getBuffer=function(){for(var N=this.bufferedRequest,q=[];N;)q.push(N),N=N.next;return q},function(){try{Object.defineProperty(k.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(N){return!!b.call(this,N)||this===S&&N&&N._writableState instanceof k}})):b=function(N){return N instanceof this},S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},S.prototype.write=function(N,q,nt){var J=this._writableState,St=!1,kt=!J.objectMode&&v(N);return kt&&!d.isBuffer(N)&&(N=m(N)),typeof q=="function"&&(nt=q,q=null),kt?q="buffer":q||(q=J.defaultEncoding),typeof nt!="function"&&(nt=y),J.ended?C(this,nt):(kt||O(this,J,N,nt))&&(J.pendingcb++,St=j(this,J,kt,N,q,nt)),St},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.bufferProcessing||!N.bufferedRequest||x(this,N))},S.prototype.setDefaultEncoding=function(N){if(typeof N=="string"&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(N,q,nt){nt(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(N,q,nt){var J=this._writableState;typeof N=="function"?(nt=N,N=null,q=null):typeof q=="function"&&(nt=q,q=null),N!=null&&this.write(N,q),J.corked&&(J.corked=1,this.uncork()),J.ending||P(this,J,nt)},Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(N,q){this.end(),q(N)}}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(t,r,e){function n(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}var a=t("safe-buffer").Buffer,o=t("util");function s(i,u,l){i.copy(u,l)}r.exports=function(){function i(){n(this,i),this.head=null,this.tail=null,this.length=0}return i.prototype.push=function(u){var l={data:u,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length},i.prototype.unshift=function(u){var l={data:u,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},i.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(u){if(this.length===0)return"";for(var l=this.head,f=""+l.data;l=l.next;)f+=u+l.data;return f},i.prototype.concat=function(u){if(this.length===0)return a.alloc(0);for(var l=a.allocUnsafe(u>>>0),f=this.head,c=0;f;)s(f.data,l,c),c+=f.data.length,f=f.next;return l},i}(),o&&o.inspect&&o.inspect.custom&&(r.exports.prototype[o.inspect.custom]=function(){var i=o.inspect({length:this.length});return this.constructor.name+" "+i})},{"safe-buffer":520,util:188}],514:[function(t,r,e){var n=t("process-nextick-args");function a(i,u){var l=this,f=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return f||c?(u?u(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,i)):n.nextTick(s,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(h){!u&&h?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,n.nextTick(s,l,h)):n.nextTick(s,l,h):u&&u(h)}),this)}function o(){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)}function s(i,u){i.emit("error",u)}r.exports={destroy:a,undestroy:o}},{"process-nextick-args":466}],515:[function(t,r,e){arguments[4][490][0].apply(e,arguments)},{dup:490,events:422}],516:[function(t,r,e){r.exports=t("./readable").PassThrough},{"./readable":517}],517:[function(t,r,e){(e=r.exports=t("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=t("./lib/_stream_writable.js"),e.Duplex=t("./lib/_stream_duplex.js"),e.Transform=t("./lib/_stream_transform.js"),e.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(t,r,e){r.exports=t("./readable").Transform},{"./readable":517}],519:[function(t,r,e){r.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(t,r,e){arguments[4][217][0].apply(e,arguments)},{buffer:220,dup:217}],521:[function(t,r,e){arguments[4][218][0].apply(e,arguments)},{dup:218,"safe-buffer":520}],522:[function(t,r,e){arguments[4][218][0].apply(e,arguments)},{dup:218,"safe-buffer":494}],523:[function(t,r,e){(function(n,a){(function(){var o=t("process/browser.js").nextTick,s=Function.prototype.apply,i=Array.prototype.slice,u={},l=0;function f(c,h){this._id=c,this._clearFn=h}e.setTimeout=function(){return new f(s.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new f(s.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(c){c.close()},f.prototype.unref=f.prototype.ref=function(){},f.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(c,h){clearTimeout(c._idleTimeoutId),c._idleTimeout=h},e.unenroll=function(c){clearTimeout(c._idleTimeoutId),c._idleTimeout=-1},e._unrefActive=e.active=function(c){clearTimeout(c._idleTimeoutId);var h=c._idleTimeout;h>=0&&(c._idleTimeoutId=setTimeout(function(){c._onTimeout&&c._onTimeout()},h))},e.setImmediate=typeof n=="function"?n:function(c){var h=l++,d=!(arguments.length<2)&&i.call(arguments,1);return u[h]=!0,o(function(){u[h]&&(d?c.apply(null,d):c.call(null),e.clearImmediate(h))}),h},e.clearImmediate=typeof a=="function"?a:function(c){delete u[c]}}).call(this)}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(t,r,e){(function(n){(function(){function a(s,i){if(o("noDeprecation"))return s;var u=!1;function l(){if(!u){if(o("throwDeprecation"))throw new Error(i);o("traceDeprecation")?console.trace(i):console.warn(i),u=!0}return s.apply(this,arguments)}return l}function o(s){try{if(!n.localStorage)return!1}catch{return!1}var i=n.localStorage[s];return i!=null&&String(i).toLowerCase()==="true"}r.exports=a}).call(this)}).call(this,pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(t,r,e){typeof Object.create=="function"?r.exports=function(n,a){n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,a){n.super_=a;var o=function(){};o.prototype=a.prototype,n.prototype=new o,n.prototype.constructor=n}},{}],526:[function(t,r,e){r.exports=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}},{}],527:[function(t,r,e){(function(n,a){(function(){var o=/%[sdj%]/g;e.format=function(P){if(!O(P)){for(var W=[],N=0;N<arguments.length;N++)W.push(u(arguments[N]));return W.join(" ")}N=1;for(var q=arguments,nt=q.length,J=String(P).replace(o,function(kt){if(kt==="%%")return"%";if(N>=nt)return kt;switch(kt){case"%s":return String(q[N++]);case"%d":return Number(q[N++]);case"%j":try{return JSON.stringify(q[N++])}catch{return"[Circular]"}default:return kt}}),St=q[N];N<nt;St=q[++N])k(St)||!z(St)?J+=" "+St:J+=" "+u(St);return J},e.deprecate=function(P,W){if(j(a.process))return function(){return e.deprecate(P,W).apply(this,arguments)};if(n.noDeprecation===!0)return P;var N=!1;function q(){if(!N){if(n.throwDeprecation)throw new Error(W);n.traceDeprecation?console.trace(W):console.error(W),N=!0}return P.apply(this,arguments)}return q};var s,i={};function u(P,W){var N={seen:[],stylize:f};return arguments.length>=3&&(N.depth=arguments[2]),arguments.length>=4&&(N.colors=arguments[3]),y(W)?N.showHidden=W:W&&e._extend(N,W),j(N.showHidden)&&(N.showHidden=!1),j(N.depth)&&(N.depth=2),j(N.colors)&&(N.colors=!1),j(N.customInspect)&&(N.customInspect=!0),N.colors&&(N.stylize=l),h(N,P,N.depth)}function l(P,W){var N=u.styles[W];return N?"\x1B["+u.colors[N][0]+"m"+P+"\x1B["+u.colors[N][1]+"m":P}function f(P,W){return P}function c(P){var W={};return P.forEach(function(N,q){W[N]=!0}),W}function h(P,W,N){if(P.customInspect&&W&&I(W.inspect)&&W.inspect!==e.inspect&&(!W.constructor||W.constructor.prototype!==W)){var q=W.inspect(N,P);return O(q)||(q=h(P,q,N)),q}var nt=d(P,W);if(nt)return nt;var J=Object.keys(W),St=c(J);if(P.showHidden&&(J=Object.getOwnPropertyNames(W)),A(W)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return p(W);if(J.length===0){if(I(W)){var kt=W.name?": "+W.name:"";return P.stylize("[Function"+kt+"]","special")}if(U(W))return P.stylize(RegExp.prototype.toString.call(W),"regexp");if(Y(W))return P.stylize(Date.prototype.toString.call(W),"date");if(A(W))return p(W)}var Mt,at="",K=!1,it=["{","}"];return g(W)&&(K=!0,it=["[","]"]),I(W)&&(at=" [Function"+(W.name?": "+W.name:"")+"]"),U(W)&&(at=" "+RegExp.prototype.toString.call(W)),Y(W)&&(at=" "+Date.prototype.toUTCString.call(W)),A(W)&&(at=" "+p(W)),J.length!==0||K&&W.length!=0?N<0?U(W)?P.stylize(RegExp.prototype.toString.call(W),"regexp"):P.stylize("[Object]","special"):(P.seen.push(W),Mt=K?m(P,W,N,St,J):J.map(function(st){return v(P,W,N,St,st,K)}),P.seen.pop(),b(Mt,at,it)):it[0]+at+it[1]}function d(P,W){if(j(W))return P.stylize("undefined","undefined");if(O(W)){var N="'"+JSON.stringify(W).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(N,"string")}return C(W)?P.stylize(""+W,"number"):y(W)?P.stylize(""+W,"boolean"):k(W)?P.stylize("null","null"):void 0}function p(P){return"["+Error.prototype.toString.call(P)+"]"}function m(P,W,N,q,nt){for(var J=[],St=0,kt=W.length;St<kt;++St)F(W,String(St))?J.push(v(P,W,N,q,String(St),!0)):J.push("");return nt.forEach(function(Mt){Mt.match(/^\d+$/)||J.push(v(P,W,N,q,Mt,!0))}),J}function v(P,W,N,q,nt,J){var St,kt,Mt;if((Mt=Object.getOwnPropertyDescriptor(W,nt)||{value:W[nt]}).get?kt=Mt.set?P.stylize("[Getter/Setter]","special"):P.stylize("[Getter]","special"):Mt.set&&(kt=P.stylize("[Setter]","special")),F(q,nt)||(St="["+nt+"]"),kt||(P.seen.indexOf(Mt.value)<0?(kt=k(N)?h(P,Mt.value,null):h(P,Mt.value,N-1)).indexOf(` |
|
|
`)>-1&&(kt=J?kt.split(` |
|
|
`).map(function(at){return" "+at}).join(` |
|
|
`).substr(2):` |
|
|
`+kt.split(` |
|
|
`).map(function(at){return" "+at}).join(` |
|
|
`)):kt=P.stylize("[Circular]","special")),j(St)){if(J&&nt.match(/^\d+$/))return kt;(St=JSON.stringify(""+nt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(St=St.substr(1,St.length-2),St=P.stylize(St,"name")):(St=St.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),St=P.stylize(St,"string"))}return St+": "+kt}function b(P,W,N){return P.reduce(function(q,nt){return nt.indexOf(` |
|
|
`),q+nt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?N[0]+(W===""?"":W+` |
|
|
`)+" "+P.join(`, |
|
|
`)+" "+N[1]:N[0]+W+" "+P.join(", ")+" "+N[1]}function g(P){return Array.isArray(P)}function y(P){return typeof P=="boolean"}function k(P){return P===null}function S(P){return P==null}function C(P){return typeof P=="number"}function O(P){return typeof P=="string"}function L(P){return typeof P=="symbol"}function j(P){return P===void 0}function U(P){return z(P)&&x(P)==="[object RegExp]"}function z(P){return typeof P=="object"&&P!==null}function Y(P){return z(P)&&x(P)==="[object Date]"}function A(P){return z(P)&&(x(P)==="[object Error]"||P instanceof Error)}function I(P){return typeof P=="function"}function _(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||P===void 0}function x(P){return Object.prototype.toString.call(P)}function T(P){return P<10?"0"+P.toString(10):P.toString(10)}e.debuglog=function(P){if(j(s)&&(s=n.env.NODE_DEBUG||""),P=P.toUpperCase(),!i[P])if(new RegExp("\\b"+P+"\\b","i").test(s)){var W=n.pid;i[P]=function(){var N=e.format.apply(e,arguments);console.error("%s %d: %s",P,W,N)}}else i[P]=function(){};return i[P]},e.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=g,e.isBoolean=y,e.isNull=k,e.isNullOrUndefined=S,e.isNumber=C,e.isString=O,e.isSymbol=L,e.isUndefined=j,e.isRegExp=U,e.isObject=z,e.isDate=Y,e.isError=A,e.isFunction=I,e.isPrimitive=_,e.isBuffer=t("./support/isBuffer");var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var P=new Date,W=[T(P.getHours()),T(P.getMinutes()),T(P.getSeconds())].join(":");return[P.getDate(),E[P.getMonth()],W].join(" ")}function F(P,W){return Object.prototype.hasOwnProperty.call(P,W)}e.log=function(){console.log("%s - %s",M(),e.format.apply(e,arguments))},e.inherits=t("inherits"),e._extend=function(P,W){if(!W||!z(W))return P;for(var N=Object.keys(W),q=N.length;q--;)P[N[q]]=W[N[q]];return P}}).call(this)}).call(this,t("_process"),pn!==void 0?pn:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.default}});var n=h(t("./v1.js")),a=h(t("./v3.js")),o=h(t("./v4.js")),s=h(t("./v5.js")),i=h(t("./nil.js")),u=h(t("./version.js")),l=h(t("./validate.js")),f=h(t("./stringify.js")),c=h(t("./parse.js"));function h(d){return d&&d.__esModule?d:{default:d}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(t,r,e){function n(v){if(typeof v=="string"){var b=unescape(encodeURIComponent(v));v=new Uint8Array(b.length);for(var g=0;g<b.length;++g)v[g]=b.charCodeAt(g)}return a(s(i(v),8*v.length))}function a(v){for(var b=[],g=32*v.length,y="0123456789abcdef",k=0;k<g;k+=8){var S=v[k>>5]>>>k%32&255,C=parseInt(y.charAt(S>>>4&15)+y.charAt(15&S),16);b.push(C)}return b}function o(v){return 14+(v+64>>>9<<4)+1}function s(v,b){v[b>>5]|=128<<b%32,v[o(b)-1]=b;for(var g=1732584193,y=-271733879,k=-1732584194,S=271733878,C=0;C<v.length;C+=16){var O=g,L=y,j=k,U=S;g=c(g,y,k,S,v[C],7,-680876936),S=c(S,g,y,k,v[C+1],12,-389564586),k=c(k,S,g,y,v[C+2],17,606105819),y=c(y,k,S,g,v[C+3],22,-1044525330),g=c(g,y,k,S,v[C+4],7,-176418897),S=c(S,g,y,k,v[C+5],12,1200080426),k=c(k,S,g,y,v[C+6],17,-1473231341),y=c(y,k,S,g,v[C+7],22,-45705983),g=c(g,y,k,S,v[C+8],7,1770035416),S=c(S,g,y,k,v[C+9],12,-1958414417),k=c(k,S,g,y,v[C+10],17,-42063),y=c(y,k,S,g,v[C+11],22,-1990404162),g=c(g,y,k,S,v[C+12],7,1804603682),S=c(S,g,y,k,v[C+13],12,-40341101),k=c(k,S,g,y,v[C+14],17,-1502002290),g=h(g,y=c(y,k,S,g,v[C+15],22,1236535329),k,S,v[C+1],5,-165796510),S=h(S,g,y,k,v[C+6],9,-1069501632),k=h(k,S,g,y,v[C+11],14,643717713),y=h(y,k,S,g,v[C],20,-373897302),g=h(g,y,k,S,v[C+5],5,-701558691),S=h(S,g,y,k,v[C+10],9,38016083),k=h(k,S,g,y,v[C+15],14,-660478335),y=h(y,k,S,g,v[C+4],20,-405537848),g=h(g,y,k,S,v[C+9],5,568446438),S=h(S,g,y,k,v[C+14],9,-1019803690),k=h(k,S,g,y,v[C+3],14,-187363961),y=h(y,k,S,g,v[C+8],20,1163531501),g=h(g,y,k,S,v[C+13],5,-1444681467),S=h(S,g,y,k,v[C+2],9,-51403784),k=h(k,S,g,y,v[C+7],14,1735328473),g=d(g,y=h(y,k,S,g,v[C+12],20,-1926607734),k,S,v[C+5],4,-378558),S=d(S,g,y,k,v[C+8],11,-2022574463),k=d(k,S,g,y,v[C+11],16,1839030562),y=d(y,k,S,g,v[C+14],23,-35309556),g=d(g,y,k,S,v[C+1],4,-1530992060),S=d(S,g,y,k,v[C+4],11,1272893353),k=d(k,S,g,y,v[C+7],16,-155497632),y=d(y,k,S,g,v[C+10],23,-1094730640),g=d(g,y,k,S,v[C+13],4,681279174),S=d(S,g,y,k,v[C],11,-358537222),k=d(k,S,g,y,v[C+3],16,-722521979),y=d(y,k,S,g,v[C+6],23,76029189),g=d(g,y,k,S,v[C+9],4,-640364487),S=d(S,g,y,k,v[C+12],11,-421815835),k=d(k,S,g,y,v[C+15],16,530742520),g=p(g,y=d(y,k,S,g,v[C+2],23,-995338651),k,S,v[C],6,-198630844),S=p(S,g,y,k,v[C+7],10,1126891415),k=p(k,S,g,y,v[C+14],15,-1416354905),y=p(y,k,S,g,v[C+5],21,-57434055),g=p(g,y,k,S,v[C+12],6,1700485571),S=p(S,g,y,k,v[C+3],10,-1894986606),k=p(k,S,g,y,v[C+10],15,-1051523),y=p(y,k,S,g,v[C+1],21,-2054922799),g=p(g,y,k,S,v[C+8],6,1873313359),S=p(S,g,y,k,v[C+15],10,-30611744),k=p(k,S,g,y,v[C+6],15,-1560198380),y=p(y,k,S,g,v[C+13],21,1309151649),g=p(g,y,k,S,v[C+4],6,-145523070),S=p(S,g,y,k,v[C+11],10,-1120210379),k=p(k,S,g,y,v[C+2],15,718787259),y=p(y,k,S,g,v[C+9],21,-343485551),g=u(g,O),y=u(y,L),k=u(k,j),S=u(S,U)}return[g,y,k,S]}function i(v){if(v.length===0)return[];for(var b=8*v.length,g=new Uint32Array(o(b)),y=0;y<b;y+=8)g[y>>5]|=(255&v[y/8])<<y%32;return g}function u(v,b){var g=(65535&v)+(65535&b);return(v>>16)+(b>>16)+(g>>16)<<16|65535&g}function l(v,b){return v<<b|v>>>32-b}function f(v,b,g,y,k,S){return u(l(u(u(b,v),u(y,S)),k),g)}function c(v,b,g,y,k,S,C){return f(b&g|~b&y,v,b,k,S,C)}function h(v,b,g,y,k,S,C){return f(b&y|g&~y,v,b,k,S,C)}function d(v,b,g,y,k,S,C){return f(b^g^y,v,b,k,S,C)}function p(v,b,g,y,k,S,C){return f(g^(b|~y),v,b,k,S,C)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var m=n;e.default=m},{}],530:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n="00000000-0000-0000-0000-000000000000";e.default=n},{}],531:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./validate.js"));function a(i){return i&&i.__esModule?i:{default:i}}function o(i){if(!(0,n.default)(i))throw TypeError("Invalid UUID");var u,l=new Uint8Array(16);return l[0]=(u=parseInt(i.slice(0,8),16))>>>24,l[1]=u>>>16&255,l[2]=u>>>8&255,l[3]=255&u,l[4]=(u=parseInt(i.slice(9,13),16))>>>8,l[5]=255&u,l[6]=(u=parseInt(i.slice(14,18),16))>>>8,l[7]=255&u,l[8]=(u=parseInt(i.slice(19,23),16))>>>8,l[9]=255&u,l[10]=(u=parseInt(i.slice(24,36),16))/1099511627776&255,l[11]=u/4294967296&255,l[12]=u>>>24&255,l[13]=u>>>16&255,l[14]=u>>>8&255,l[15]=255&u,l}var s=o;e.default=s},{"./validate.js":541}],532:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;e.default=n},{}],533:[function(t,r,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=new Uint8Array(16);function o(){if(!n&&!(n=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}},{}],534:[function(t,r,e){function n(i,u,l,f){switch(i){case 0:return u&l^~u&f;case 1:case 3:return u^l^f;case 2:return u&l^u&f^l&f}}function a(i,u){return i<<u|i>>>32-u}function o(i){var u=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){var f=unescape(encodeURIComponent(i));i=[];for(var c=0;c<f.length;++c)i.push(f.charCodeAt(c))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);for(var h=i.length/4+2,d=Math.ceil(h/16),p=new Array(d),m=0;m<d;++m){for(var v=new Uint32Array(16),b=0;b<16;++b)v[b]=i[64*m+4*b]<<24|i[64*m+4*b+1]<<16|i[64*m+4*b+2]<<8|i[64*m+4*b+3];p[m]=v}p[d-1][14]=8*(i.length-1)/Math.pow(2,32),p[d-1][14]=Math.floor(p[d-1][14]),p[d-1][15]=8*(i.length-1)&4294967295;for(var g=0;g<d;++g){for(var y=new Uint32Array(80),k=0;k<16;++k)y[k]=p[g][k];for(var S=16;S<80;++S)y[S]=a(y[S-3]^y[S-8]^y[S-14]^y[S-16],1);for(var C=l[0],O=l[1],L=l[2],j=l[3],U=l[4],z=0;z<80;++z){var Y=Math.floor(z/20),A=a(C,5)+n(Y,O,L,j)+U+u[Y]+y[z]>>>0;U=j,j=L,L=a(O,30)>>>0,O=C,C=A}l[0]=l[0]+C>>>0,l[1]=l[1]+O>>>0,l[2]=l[2]+L>>>0,l[3]=l[3]+j>>>0,l[4]=l[4]+U>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,255&l[0],l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,255&l[1],l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,255&l[2],l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,255&l[3],l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,255&l[4]]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=o;e.default=s},{}],535:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./validate.js"));function a(l){return l&&l.__esModule?l:{default:l}}for(var o=[],s=0;s<256;++s)o.push((s+256).toString(16).substr(1));function i(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,c=(o[l[f+0]]+o[l[f+1]]+o[l[f+2]]+o[l[f+3]]+"-"+o[l[f+4]]+o[l[f+5]]+"-"+o[l[f+6]]+o[l[f+7]]+"-"+o[l[f+8]]+o[l[f+9]]+"-"+o[l[f+10]]+o[l[f+11]]+o[l[f+12]]+o[l[f+13]]+o[l[f+14]]+o[l[f+15]]).toLowerCase();if(!(0,n.default)(c))throw TypeError("Stringified UUID is invalid");return c}var u=i;e.default=u},{"./validate.js":541}],536:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,a,o=i(t("./rng.js")),s=i(t("./stringify.js"));function i(h){return h&&h.__esModule?h:{default:h}}var u=0,l=0;function f(h,d,p){var m=d&&p||0,v=d||new Array(16),b=(h=h||{}).node||n,g=h.clockseq!==void 0?h.clockseq:a;if(b==null||g==null){var y=h.random||(h.rng||o.default)();b==null&&(b=n=[1|y[0],y[1],y[2],y[3],y[4],y[5]]),g==null&&(g=a=16383&(y[6]<<8|y[7]))}var k=h.msecs!==void 0?h.msecs:Date.now(),S=h.nsecs!==void 0?h.nsecs:l+1,C=k-u+(S-l)/1e4;if(C<0&&h.clockseq===void 0&&(g=g+1&16383),(C<0||k>u)&&h.nsecs===void 0&&(S=0),S>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=k,l=S,a=g;var O=(1e4*(268435455&(k+=122192928e5))+S)%4294967296;v[m++]=O>>>24&255,v[m++]=O>>>16&255,v[m++]=O>>>8&255,v[m++]=255&O;var L=k/4294967296*1e4&268435455;v[m++]=L>>>8&255,v[m++]=255&L,v[m++]=L>>>24&15|16,v[m++]=L>>>16&255,v[m++]=g>>>8|128,v[m++]=255&g;for(var j=0;j<6;++j)v[m+j]=b[j];return d||(0,s.default)(v)}var c=f;e.default=c},{"./rng.js":533,"./stringify.js":535}],537:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(t("./v35.js")),a=o(t("./md5.js"));function o(i){return i&&i.__esModule?i:{default:i}}var s=(0,n.default)("v3",48,a.default);e.default=s},{"./md5.js":529,"./v35.js":538}],538:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l,e.URL=e.DNS=void 0;var n=o(t("./stringify.js")),a=o(t("./parse.js"));function o(f){return f&&f.__esModule?f:{default:f}}function s(f){f=unescape(encodeURIComponent(f));for(var c=[],h=0;h<f.length;++h)c.push(f.charCodeAt(h));return c}var i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";e.DNS=i;var u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function l(f,c,h){function d(p,m,v,b){if(typeof p=="string"&&(p=s(p)),typeof m=="string"&&(m=(0,a.default)(m)),m.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var g=new Uint8Array(16+p.length);if(g.set(m),g.set(p,m.length),(g=h(g))[6]=15&g[6]|c,g[8]=63&g[8]|128,v){b=b||0;for(var y=0;y<16;++y)v[b+y]=g[y];return v}return(0,n.default)(g)}try{d.name=f}catch{}return d.DNS=i,d.URL=u,d}e.URL=u},{"./parse.js":531,"./stringify.js":535}],539:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(t("./rng.js")),a=o(t("./stringify.js"));function o(u){return u&&u.__esModule?u:{default:u}}function s(u,l,f){var c=(u=u||{}).random||(u.rng||n.default)();if(c[6]=15&c[6]|64,c[8]=63&c[8]|128,l){f=f||0;for(var h=0;h<16;++h)l[f+h]=c[h];return l}return(0,a.default)(c)}var i=s;e.default=i},{"./rng.js":533,"./stringify.js":535}],540:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(t("./v35.js")),a=o(t("./sha1.js"));function o(i){return i&&i.__esModule?i:{default:i}}var s=(0,n.default)("v5",80,a.default);e.default=s},{"./sha1.js":534,"./v35.js":538}],541:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./regex.js"));function a(i){return i&&i.__esModule?i:{default:i}}function o(i){return typeof i=="string"&&n.default.test(i)}var s=o;e.default=s},{"./regex.js":532}],542:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t("./validate.js"));function a(i){return i&&i.__esModule?i:{default:i}}function o(i){if(!(0,n.default)(i))throw TypeError("Invalid UUID");return parseInt(i.substr(14,1),16)}var s=o;e.default=s},{"./validate.js":541}],543:[function(t,r,e){/** |
|
|
* Character classes and associated utilities for the 5th edition of XML 1.0. |
|
|
* |
|
|
* @author Louis-Dominique Dubeau |
|
|
* @license MIT |
|
|
* @copyright Louis-Dominique Dubeau |
|
|
*/Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR=` |
|
|
\r --<EFBFBD>𐀀-`,e.S=` \r |
|
|
`,e.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<EFBFBD>𐀀-",e.NAME_CHAR="-"+e.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.CHAR_RE=new RegExp("^["+e.CHAR+"]$","u"),e.S_RE=new RegExp("^["+e.S+"]+$","u"),e.NAME_START_CHAR_RE=new RegExp("^["+e.NAME_START_CHAR+"]$","u"),e.NAME_CHAR_RE=new RegExp("^["+e.NAME_CHAR+"]$","u"),e.NAME_RE=new RegExp("^["+e.NAME_START_CHAR+"]["+e.NAME_CHAR+"]*$","u"),e.NMTOKEN_RE=new RegExp("^["+e.NAME_CHAR+"]+$","u");var n=9,a=10,o=13,s=32;function i(c){return c>=s&&c<=55295||c===a||c===o||c===n||c>=57344&&c<=65533||c>=65536&&c<=1114111}function u(c){return c===s||c===a||c===o||c===n}function l(c){return c>=65&&c<=90||c>=97&&c<=122||c===58||c===95||c===8204||c===8205||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=880&&c<=893||c>=895&&c<=8191||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533||c>=65536&&c<=983039}function f(c){return l(c)||c>=48&&c<=57||c===45||c===46||c===183||c>=768&&c<=879||c>=8255&&c<=8256}e.S_LIST=[s,a,o,n],e.isChar=i,e.isS=u,e.isNameStartChar=l,e.isNameChar=f},{}],544:[function(t,r,e){/** |
|
|
* Character classes and associated utilities for the 2nd edition of XML 1.1. |
|
|
* |
|
|
* @author Louis-Dominique Dubeau |
|
|
* @license MIT |
|
|
* @copyright Louis-Dominique Dubeau |
|
|
*/Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR="--<EFBFBD>𐀀-",e.RESTRICTED_CHAR="-\b\v\f---",e.S=` \r |
|
|
`,e.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<EFBFBD>𐀀-",e.NAME_CHAR="-"+e.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.CHAR_RE=new RegExp("^["+e.CHAR+"]$","u"),e.RESTRICTED_CHAR_RE=new RegExp("^["+e.RESTRICTED_CHAR+"]$","u"),e.S_RE=new RegExp("^["+e.S+"]+$","u"),e.NAME_START_CHAR_RE=new RegExp("^["+e.NAME_START_CHAR+"]$","u"),e.NAME_CHAR_RE=new RegExp("^["+e.NAME_CHAR+"]$","u"),e.NAME_RE=new RegExp("^["+e.NAME_START_CHAR+"]["+e.NAME_CHAR+"]*$","u"),e.NMTOKEN_RE=new RegExp("^["+e.NAME_CHAR+"]+$","u");var n=9,a=10,o=13,s=32;function i(d){return d>=1&&d<=55295||d>=57344&&d<=65533||d>=65536&&d<=1114111}function u(d){return d>=1&&d<=8||d===11||d===12||d>=14&&d<=31||d>=127&&d<=132||d>=134&&d<=159}function l(d){return d===9||d===10||d===13||d>31&&d<127||d===133||d>159&&d<=55295||d>=57344&&d<=65533||d>=65536&&d<=1114111}function f(d){return d===s||d===a||d===o||d===n}function c(d){return d>=65&&d<=90||d>=97&&d<=122||d===58||d===95||d===8204||d===8205||d>=192&&d<=214||d>=216&&d<=246||d>=248&&d<=767||d>=880&&d<=893||d>=895&&d<=8191||d>=8304&&d<=8591||d>=11264&&d<=12271||d>=12289&&d<=55295||d>=63744&&d<=64975||d>=65008&&d<=65533||d>=65536&&d<=983039}function h(d){return c(d)||d>=48&&d<=57||d===45||d===46||d===183||d>=768&&d<=879||d>=8255&&d<=8256}e.S_LIST=[s,a,o,n],e.isChar=i,e.isRestrictedChar=u,e.isCharAndNotRestricted=l,e.isS=f,e.isNameStartChar=c,e.isNameChar=h},{}],545:[function(t,r,e){function n(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}function a(o){return n(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}/** |
|
|
* Character class utilities for XML NS 1.0 edition 3. |
|
|
* |
|
|
* @author Louis-Dominique Dubeau |
|
|
* @license MIT |
|
|
* @copyright Louis-Dominique Dubeau |
|
|
*/Object.defineProperty(e,"__esModule",{value:!0}),e.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<EFBFBD>𐀀-",e.NC_NAME_CHAR="-"+e.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.NC_NAME_START_CHAR_RE=new RegExp("^["+e.NC_NAME_START_CHAR+"]$","u"),e.NC_NAME_CHAR_RE=new RegExp("^["+e.NC_NAME_CHAR+"]$","u"),e.NC_NAME_RE=new RegExp("^["+e.NC_NAME_START_CHAR+"]["+e.NC_NAME_CHAR+"]*$","u"),e.isNCNameStartChar=n,e.isNCNameChar=a},{}]},{},[15])(15);var Iw=m1.exports;function w1(){return(w1=On(Er.mark(function t(r,e){return Er.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return");case 2:e instanceof ArrayBuffer&&(e=new Blob([e])),Nw(r,URL.createObjectURL(e));case 4:case"end":return n.stop()}},t)}))).apply(this,arguments)}function Nw(t,r){var e=document.createElement("a");e.download=t,e.style.display="none",e.href=r,document.body.appendChild(e),e.click(),document.body.removeChild(e)}function Rp(t){return(Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}var Pw=/^\s+/,Dw=/\s+$/;function Lr(t,r){if(r=r||{},(t=t||"")instanceof Lr)return t;if(!(this instanceof Lr))return new Lr(t,r);var e=function(n){var a={r:0,g:0,b:0},o=1,s=null,i=null,u=null,l=!1,f=!1;typeof n=="string"&&(n=function(p){p=p.replace(Pw,"").replace(Dw,"").toLowerCase();var m,v=!1;if(Op[p])p=Op[p],v=!0;else if(p=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(m=js.rgb.exec(p))?{r:m[1],g:m[2],b:m[3]}:(m=js.rgba.exec(p))?{r:m[1],g:m[2],b:m[3],a:m[4]}:(m=js.hsl.exec(p))?{h:m[1],s:m[2],l:m[3]}:(m=js.hsla.exec(p))?{h:m[1],s:m[2],l:m[3],a:m[4]}:(m=js.hsv.exec(p))?{h:m[1],s:m[2],v:m[3]}:(m=js.hsva.exec(p))?{h:m[1],s:m[2],v:m[3],a:m[4]}:(m=js.hex8.exec(p))?{r:ts(m[1]),g:ts(m[2]),b:ts(m[3]),a:A1(m[4]),format:v?"name":"hex8"}:(m=js.hex6.exec(p))?{r:ts(m[1]),g:ts(m[2]),b:ts(m[3]),format:v?"name":"hex"}:(m=js.hex4.exec(p))?{r:ts(m[1]+""+m[1]),g:ts(m[2]+""+m[2]),b:ts(m[3]+""+m[3]),a:A1(m[4]+""+m[4]),format:v?"name":"hex8"}:(m=js.hex3.exec(p))?{r:ts(m[1]+""+m[1]),g:ts(m[2]+""+m[2]),b:ts(m[3]+""+m[3]),format:v?"name":"hex"}:!1}(n)),Rp(n)=="object"&&(ko(n.r)&&ko(n.g)&&ko(n.b)?(c=n.r,h=n.g,d=n.b,a={r:255*hi(c,255),g:255*hi(h,255),b:255*hi(d,255)},l=!0,f=String(n.r).substr(-1)==="%"?"prgb":"rgb"):ko(n.h)&&ko(n.s)&&ko(n.v)?(s=Nc(n.s),i=Nc(n.v),a=function(p,m,v){p=6*hi(p,360),m=hi(m,100),v=hi(v,100);var b=Math.floor(p),g=p-b,y=v*(1-m),k=v*(1-g*m),S=v*(1-(1-g)*m),C=b%6,O=[v,k,y,y,S,v][C],L=[S,v,v,k,y,y][C],j=[y,y,S,v,v,k][C];return{r:255*O,g:255*L,b:255*j}}(n.h,s,i),l=!0,f="hsv"):ko(n.h)&&ko(n.s)&&ko(n.l)&&(s=Nc(n.s),u=Nc(n.l),a=function(p,m,v){var b,g,y;function k(O,L,j){return j<0&&(j+=1),j>1&&(j-=1),j<1/6?O+6*(L-O)*j:j<.5?L:j<2/3?O+(L-O)*(2/3-j)*6:O}if(p=hi(p,360),m=hi(m,100),v=hi(v,100),m===0)b=g=y=v;else{var S=v<.5?v*(1+m):v+m-v*m,C=2*v-S;b=k(C,S,p+1/3),g=k(C,S,p),y=k(C,S,p-1/3)}return{r:255*b,g:255*g,b:255*y}}(n.h,s,u),l=!0,f="hsl"),n.hasOwnProperty("a")&&(o=n.a));var c,h,d;return o=E1(o),{ok:l,format:n.format||f,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:o}}(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}function _1(t,r,e){t=hi(t,255),r=hi(r,255),e=hi(e,255);var n,a,o=Math.max(t,r,e),s=Math.min(t,r,e),i=(o+s)/2;if(o==s)n=a=0;else{var u=o-s;switch(a=i>.5?u/(2-o-s):u/(o+s),o){case t:n=(r-e)/u+(r<e?6:0);break;case r:n=(e-t)/u+2;break;case e:n=(t-r)/u+4}n/=6}return{h:n,s:a,l:i}}function k1(t,r,e){t=hi(t,255),r=hi(r,255),e=hi(e,255);var n,a,o=Math.max(t,r,e),s=Math.min(t,r,e),i=o,u=o-s;if(a=o===0?0:u/o,o==s)n=0;else{switch(o){case t:n=(r-e)/u+(r<e?6:0);break;case r:n=(e-t)/u+2;break;case e:n=(t-r)/u+4}n/=6}return{h:n,s:a,v:i}}function x1(t,r,e,n){var a=[Bs(Math.round(t).toString(16)),Bs(Math.round(r).toString(16)),Bs(Math.round(e).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function S1(t,r,e,n){return[Bs(C1(n)),Bs(Math.round(t).toString(16)),Bs(Math.round(r).toString(16)),Bs(Math.round(e).toString(16))].join("")}function Fw(t,r){r=r===0?0:r||10;var e=Lr(t).toHsl();return e.s-=r/100,e.s=mh(e.s),Lr(e)}function Lw(t,r){r=r===0?0:r||10;var e=Lr(t).toHsl();return e.s+=r/100,e.s=mh(e.s),Lr(e)}function Bw(t){return Lr(t).desaturate(100)}function jw(t,r){r=r===0?0:r||10;var e=Lr(t).toHsl();return e.l+=r/100,e.l=mh(e.l),Lr(e)}function zw(t,r){r=r===0?0:r||10;var e=Lr(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-r/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-r/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-r/100*255))),Lr(e)}function Uw(t,r){r=r===0?0:r||10;var e=Lr(t).toHsl();return e.l-=r/100,e.l=mh(e.l),Lr(e)}function Hw(t,r){var e=Lr(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,Lr(e)}function Ww(t){var r=Lr(t).toHsl();return r.h=(r.h+180)%360,Lr(r)}function T1(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=Lr(t).toHsl(),n=[Lr(t)],a=360/r,o=1;o<r;o++)n.push(Lr({h:(e.h+o*a)%360,s:e.s,l:e.l}));return n}function Vw(t){var r=Lr(t).toHsl(),e=r.h;return[Lr(t),Lr({h:(e+72)%360,s:r.s,l:r.l}),Lr({h:(e+216)%360,s:r.s,l:r.l})]}function $w(t,r,e){r=r||6,e=e||30;var n=Lr(t).toHsl(),a=360/e,o=[Lr(t)];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(Lr(n));return o}function qw(t,r){r=r||6;for(var e=Lr(t).toHsv(),n=e.h,a=e.s,o=e.v,s=[],i=1/r;r--;)s.push(Lr({h:n,s:a,v:o})),o=(o+i)%1;return s}Lr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,e,n=this.toRgb();return t=n.r/255,r=n.g/255,e=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=E1(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=k1(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=k1(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),n=Math.round(100*t.v);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=_1(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=_1(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),n=Math.round(100*t.l);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return x1(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(r,e,n,a,o){var s=[Bs(Math.round(r).toString(16)),Bs(Math.round(e).toString(16)),Bs(Math.round(n).toString(16)),Bs(C1(a))];return o&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*hi(this._r,255))+"%",g:Math.round(100*hi(this._g,255))+"%",b:Math.round(100*hi(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*hi(this._r,255))+"%, "+Math.round(100*hi(this._g,255))+"%, "+Math.round(100*hi(this._b,255))+"%)":"rgba("+Math.round(100*hi(this._r,255))+"%, "+Math.round(100*hi(this._g,255))+"%, "+Math.round(100*hi(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(Gw[x1(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+S1(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=Lr(t);e="#"+S1(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0;return r||!n||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return Lr(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(jw,arguments)},brighten:function(){return this._applyModification(zw,arguments)},darken:function(){return this._applyModification(Uw,arguments)},desaturate:function(){return this._applyModification(Fw,arguments)},saturate:function(){return this._applyModification(Lw,arguments)},greyscale:function(){return this._applyModification(Bw,arguments)},spin:function(){return this._applyModification(Hw,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination($w,arguments)},complement:function(){return this._applyCombination(Ww,arguments)},monochromatic:function(){return this._applyCombination(qw,arguments)},splitcomplement:function(){return this._applyCombination(Vw,arguments)},triad:function(){return this._applyCombination(T1,[3])},tetrad:function(){return this._applyCombination(T1,[4])}},Lr.fromRatio=function(t,r){if(Rp(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=n==="a"?t[n]:Nc(t[n]));t=e}return Lr(t,r)},Lr.equals=function(t,r){return!(!t||!r)&&Lr(t).toRgbString()==Lr(r).toRgbString()},Lr.random=function(){return Lr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Lr.mix=function(t,r,e){e=e===0?0:e||50;var n=Lr(t).toRgb(),a=Lr(r).toRgb(),o=e/100;return Lr({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},Lr.readability=function(t,r){var e=Lr(t),n=Lr(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},Lr.isReadable=function(t,r,e){var n,a,o=Lr.readability(t,r);switch(a=!1,(n=function(s){var i,u;return i=((s=s||{level:"AA",size:"small"}).level||"AA").toUpperCase(),u=(s.size||"small").toLowerCase(),i!=="AA"&&i!=="AAA"&&(i="AA"),u!=="small"&&u!=="large"&&(u="small"),{level:i,size:u}}(e)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},Lr.mostReadable=function(t,r,e){var n,a,o,s,i=null,u=0;a=(e=e||{}).includeFallbackColors,o=e.level,s=e.size;for(var l=0;l<r.length;l++)(n=Lr.readability(t,r[l]))>u&&(u=n,i=Lr(r[l]));return Lr.isReadable(t,i,{level:o,size:s})||!a?i:(e.includeFallbackColors=!1,Lr.mostReadable(t,["#fff","#000"],e))};var Op=Lr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Gw=Lr.hexNames=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(Op);function E1(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function hi(t,r){(function(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1})(t)&&(t="100%");var e=function(n){return typeof n=="string"&&n.indexOf("%")!=-1}(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function mh(t){return Math.min(1,Math.max(0,t))}function ts(t){return parseInt(t,16)}function Bs(t){return t.length==1?"0"+t:""+t}function Nc(t){return t<=1&&(t=100*t+"%"),t}function C1(t){return Math.round(255*parseFloat(t)).toString(16)}function A1(t){return ts(t)/255}var Jo,vh,gh,js=(vh="[\\s|\\(]+("+(Jo="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Jo+")[,|\\s]+("+Jo+")\\s*\\)?",gh="[\\s|\\(]+("+Jo+")[,|\\s]+("+Jo+")[,|\\s]+("+Jo+")[,|\\s]+("+Jo+")\\s*\\)?",{CSS_UNIT:new RegExp(Jo),rgb:new RegExp("rgb"+vh),rgba:new RegExp("rgba"+gh),hsl:new RegExp("hsl"+vh),hsla:new RegExp("hsla"+gh),hsv:new RegExp("hsv"+vh),hsva:new RegExp("hsva"+gh),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function ko(t){return!!js.CSS_UNIT.exec(t)}var Ip={exports:{}};(function(t,r){(function(){var e,n="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,i=32,u=64,l=128,f=256,c=1/0,h=9007199254740991,d=NaN,p=4294967295,m=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",i],["partialRight",u],["rearg",f]],v="[object Arguments]",b="[object Array]",g="[object Boolean]",y="[object Date]",k="[object Error]",S="[object Function]",C="[object GeneratorFunction]",O="[object Map]",L="[object Number]",j="[object Object]",U="[object Promise]",z="[object RegExp]",Y="[object Set]",A="[object String]",I="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",T="[object DataView]",E="[object Float32Array]",M="[object Float64Array]",F="[object Int8Array]",P="[object Int16Array]",W="[object Int32Array]",N="[object Uint8Array]",q="[object Uint8ClampedArray]",nt="[object Uint16Array]",J="[object Uint32Array]",St=/\b__p \+= '';/g,kt=/\b(__p \+=) '' \+/g,Mt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,at=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,it=RegExp(at.source),st=RegExp(K.source),Nt=/<%-([\s\S]+?)%>/g,rt=/<%([\s\S]+?)%>/g,mt=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dt=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(dt.source),re=/^\s+/,X=/\s/,Gt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jt=/\{\n\/\* \[wrapped with (.+)\] \*/,vt=/,? & /,gt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tt=/[()=,{}\[\]\/\s]/,ie=/\\(\\)?/g,ot=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,xt=/^[-+]0x[0-9a-f]+$/i,Ft=/^0b[01]+$/i,bt=/^\[object .+?Constructor\]$/,lt=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zt=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,me="\\ud800-\\udfff",Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ae="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Je="A-Z\\xc0-\\xd6\\xd8-\\xde",We="\\ufe0e\\ufe0f",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ir="['’]",Le="["+me+"]",nr="["+$e+"]",Sr="["+Ze+"]",Pr="\\d+",je="["+Ae+"]",dr="["+_e+"]",pr="[^"+me+$e+Pr+Ae+_e+Je+"]",Ne="\\ud83c[\\udffb-\\udfff]",fr="[^"+me+"]",_r="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Ar="["+Je+"]",Br="\\u200d",tr="(?:"+dr+"|"+pr+")",Or="(?:"+Ar+"|"+pr+")",Gr="(?:['’](?:d|ll|m|re|s|t|ve))?",Hr="(?:['’](?:D|LL|M|RE|S|T|VE))?",vn="(?:"+Sr+"|"+Ne+")?",It="["+We+"]?",se=It+vn+("(?:"+Br+"(?:"+[fr,_r,xr].join("|")+")"+It+vn+")*"),he="(?:"+[je,_r,xr].join("|")+")"+se,yr="(?:"+[fr+Sr+"?",Sr,_r,xr,Le].join("|")+")",Ir=RegExp(ir,"g"),xn=RegExp(Sr,"g"),ai=RegExp(Ne+"(?="+Ne+")|"+yr+se,"g"),_i=RegExp([Ar+"?"+dr+"+"+Gr+"(?="+[nr,Ar,"$"].join("|")+")",Or+"+"+Hr+"(?="+[nr,Ar+tr,"$"].join("|")+")",Ar+"?"+tr+"+"+Gr,Ar+"+"+Hr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pr,he].join("|"),"g"),Mi=RegExp("["+Br+me+Ze+We+"]"),Sa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ri=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ei=-1,gn={};gn[E]=gn[M]=gn[F]=gn[P]=gn[W]=gn[N]=gn[q]=gn[nt]=gn[J]=!0,gn[v]=gn[b]=gn[x]=gn[g]=gn[T]=gn[y]=gn[k]=gn[S]=gn[O]=gn[L]=gn[j]=gn[z]=gn[Y]=gn[A]=gn[_]=!1;var Kr={};Kr[v]=Kr[b]=Kr[x]=Kr[T]=Kr[g]=Kr[y]=Kr[E]=Kr[M]=Kr[F]=Kr[P]=Kr[W]=Kr[O]=Kr[L]=Kr[j]=Kr[z]=Kr[Y]=Kr[A]=Kr[I]=Kr[N]=Kr[q]=Kr[nt]=Kr[J]=!0,Kr[k]=Kr[S]=Kr[_]=!1;var Ba={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vi=parseFloat,ja=parseInt,Ss=typeof pn=="object"&&pn&&pn.Object===Object&&pn,ul=typeof self=="object"&&self&&self.Object===Object&&self,Oi=Ss||ul||Function("return this")(),io=r&&!r.nodeType&&r,Vs=io&&t&&!t.nodeType&&t,ao=Vs&&Vs.exports===io,Oo=ao&&Ss.process,ua=function(){try{var be=Vs&&Vs.require&&Vs.require("util").types;return be||Oo&&Oo.binding&&Oo.binding("util")}catch{}}(),Hu=ua&&ua.isArrayBuffer,cl=ua&&ua.isDate,Wu=ua&&ua.isMap,Vu=ua&&ua.isRegExp,Gl=ua&&ua.isSet,$u=ua&&ua.isTypedArray;function ca(be,Fe,Ke){switch(Ke.length){case 0:return be.call(Fe);case 1:return be.call(Fe,Ke[0]);case 2:return be.call(Fe,Ke[0],Ke[1]);case 3:return be.call(Fe,Ke[0],Ke[1],Ke[2])}return be.apply(Fe,Ke)}function qu(be,Fe,Ke,ft){for(var jt=-1,fe=be==null?0:be.length;++jt<fe;){var qe=be[jt];Fe(ft,qe,Ke(qe),be)}return ft}function $i(be,Fe){for(var Ke=-1,ft=be==null?0:be.length;++Ke<ft&&Fe(be[Ke],Ke,be)!==!1;);return be}function so(be,Fe){for(var Ke=be==null?0:be.length;Ke--&&Fe(be[Ke],Ke,be)!==!1;);return be}function Gu(be,Fe){for(var Ke=-1,ft=be==null?0:be.length;++Ke<ft;)if(!Fe(be[Ke],Ke,be))return!1;return!0}function Ts(be,Fe){for(var Ke=-1,ft=be==null?0:be.length,jt=0,fe=[];++Ke<ft;){var qe=be[Ke];Fe(qe,Ke,be)&&(fe[jt++]=qe)}return fe}function Ta(be,Fe){return!!(be!=null&&be.length)&&fa(be,Fe,0)>-1}function Yl(be,Fe,Ke){for(var ft=-1,jt=be==null?0:be.length;++ft<jt;)if(Ke(Fe,be[ft]))return!0;return!1}function Zn(be,Fe){for(var Ke=-1,ft=be==null?0:be.length,jt=Array(ft);++Ke<ft;)jt[Ke]=Fe(be[Ke],Ke,be);return jt}function Es(be,Fe){for(var Ke=-1,ft=Fe.length,jt=be.length;++Ke<ft;)be[jt+Ke]=Fe[Ke];return be}function fl(be,Fe,Ke,ft){var jt=-1,fe=be==null?0:be.length;for(ft&&fe&&(Ke=be[++jt]);++jt<fe;)Ke=Fe(Ke,be[jt],jt,be);return Ke}function pf(be,Fe,Ke,ft){var jt=be==null?0:be.length;for(ft&&jt&&(Ke=be[--jt]);jt--;)Ke=Fe(Ke,be[jt],jt,be);return Ke}function as(be,Fe){for(var Ke=-1,ft=be==null?0:be.length;++Ke<ft;)if(Fe(be[Ke],Ke,be))return!0;return!1}var Io=hl("length");function Yu(be,Fe,Ke){var ft;return Ke(be,function(jt,fe,qe){if(Fe(jt,fe,qe))return ft=fe,!1}),ft}function Ea(be,Fe,Ke,ft){for(var jt=be.length,fe=Ke+(ft?1:-1);ft?fe--:++fe<jt;)if(Fe(be[fe],fe,be))return fe;return-1}function fa(be,Fe,Ke){return Fe==Fe?function(ft,jt,fe){for(var qe=fe-1,Dr=ft.length;++qe<Dr;)if(ft[qe]===jt)return qe;return-1}(be,Fe,Ke):Ea(be,Xl,Ke)}function Kl(be,Fe,Ke,ft){for(var jt=Ke-1,fe=be.length;++jt<fe;)if(ft(be[jt],Fe))return jt;return-1}function Xl(be){return be!=be}function oo(be,Fe){var Ke=be==null?0:be.length;return Ke?No(be,Fe)/Ke:d}function hl(be){return function(Fe){return Fe==null?e:Fe[be]}}function dl(be){return function(Fe){return be==null?e:be[Fe]}}function lo(be,Fe,Ke,ft,jt){return jt(be,function(fe,qe,Dr){Ke=ft?(ft=!1,fe):Fe(Ke,fe,qe,Dr)}),Ke}function No(be,Fe){for(var Ke,ft=-1,jt=be.length;++ft<jt;){var fe=Fe(be[ft]);fe!==e&&(Ke=Ke===e?fe:Ke+fe)}return Ke}function pl(be,Fe){for(var Ke=-1,ft=Array(be);++Ke<be;)ft[Ke]=Fe(Ke);return ft}function Ku(be){return be&&be.slice(0,ha(be)+1).replace(re,"")}function Ui(be){return function(Fe){return be(Fe)}}function Bt(be,Fe){return Zn(Fe,function(Ke){return be[Ke]})}function ue(be,Fe){return be.has(Fe)}function Ve(be,Fe){for(var Ke=-1,ft=be.length;++Ke<ft&&fa(Fe,be[Ke],0)>-1;);return Ke}function Cr(be,Fe){for(var Ke=be.length;Ke--&&fa(Fe,be[Ke],0)>-1;);return Ke}var Hn=dl({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),qr=dl({"&":"&","<":"<",">":">",'"':""","'":"'"});function Jn(be){return"\\"+Ba[be]}function ri(be){return Mi.test(be)}function mi(be){var Fe=-1,Ke=Array(be.size);return be.forEach(function(ft,jt){Ke[++Fe]=[jt,ft]}),Ke}function Bn(be,Fe){return function(Ke){return be(Fe(Ke))}}function Dn(be,Fe){for(var Ke=-1,ft=be.length,jt=0,fe=[];++Ke<ft;){var qe=be[Ke];qe!==Fe&&qe!==o||(be[Ke]=o,fe[jt++]=Ke)}return fe}function qi(be){var Fe=-1,Ke=Array(be.size);return be.forEach(function(ft){Ke[++Fe]=ft}),Ke}function vi(be){return ri(be)?function(Fe){for(var Ke=ai.lastIndex=0;ai.test(Fe);)++Ke;return Ke}(be):Io(be)}function ni(be){return ri(be)?function(Fe){return Fe.match(ai)||[]}(be):function(Fe){return Fe.split("")}(be)}function ha(be){for(var Fe=be.length;Fe--&&X.test(be.charAt(Fe)););return Fe}var ss=dl({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ca=function be(Fe){var Ke,ft=(Fe=Fe==null?Oi:Ca.defaults(Oi.Object(),Fe,Ca.pick(Oi,Ri))).Array,jt=Fe.Date,fe=Fe.Error,qe=Fe.Function,Dr=Fe.Math,sr=Fe.Object,sn=Fe.RegExp,Ii=Fe.String,In=Fe.TypeError,gi=ft.prototype,ki=qe.prototype,Gi=sr.prototype,Aa=Fe["__core-js_shared__"],ra=ki.toString,fn=Gi.hasOwnProperty,$s=0,uo=(Ke=/[^.]+$/.exec(Aa&&Aa.keys&&Aa.keys.IE_PROTO||""))?"Symbol(src)_1."+Ke:"",Cs=Gi.toString,Xu=ra.call(sr),f_=Oi._,h_=sn("^"+ra.call(fn).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jh=ao?Fe.Buffer:e,ml=Fe.Symbol,Qh=Fe.Uint8Array,t2=Jh?Jh.allocUnsafe:e,td=Bn(sr.getPrototypeOf,sr),e2=sr.create,r2=Gi.propertyIsEnumerable,ed=gi.splice,n2=ml?ml.isConcatSpreadable:e,mf=ml?ml.iterator:e,Zl=ml?ml.toStringTag:e,rd=function(){try{var w=ru(sr,"defineProperty");return w({},"",{}),w}catch{}}(),d_=Fe.clearTimeout!==Oi.clearTimeout&&Fe.clearTimeout,p_=jt&&jt.now!==Oi.Date.now&&jt.now,m_=Fe.setTimeout!==Oi.setTimeout&&Fe.setTimeout,nd=Dr.ceil,id=Dr.floor,X0=sr.getOwnPropertySymbols,v_=Jh?Jh.isBuffer:e,i2=Fe.isFinite,g_=gi.join,b_=Bn(sr.keys,sr),Yi=Dr.max,Ma=Dr.min,y_=jt.now,w_=Fe.parseInt,a2=Dr.random,__=gi.reverse,Z0=ru(Fe,"DataView"),vf=ru(Fe,"Map"),J0=ru(Fe,"Promise"),Zu=ru(Fe,"Set"),gf=ru(Fe,"WeakMap"),bf=ru(sr,"create"),ad=gf&&new gf,Ju={},k_=nu(Z0),x_=nu(vf),S_=nu(J0),T_=nu(Zu),E_=nu(gf),sd=ml?ml.prototype:e,yf=sd?sd.valueOf:e,s2=sd?sd.toString:e;function Et(w){if(xi(w)&&!ln(w)&&!(w instanceof An)){if(w instanceof As)return w;if(fn.call(w,"__wrapped__"))return ly(w)}return new As(w)}var Qu=function(){function w(){}return function(R){if(!bi(R))return{};if(e2)return e2(R);w.prototype=R;var H=new w;return w.prototype=e,H}}();function od(){}function As(w,R){this.__wrapped__=w,this.__actions__=[],this.__chain__=!!R,this.__index__=0,this.__values__=e}function An(w){this.__wrapped__=w,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Jl(w){var R=-1,H=w==null?0:w.length;for(this.clear();++R<H;){var Q=w[R];this.set(Q[0],Q[1])}}function Po(w){var R=-1,H=w==null?0:w.length;for(this.clear();++R<H;){var Q=w[R];this.set(Q[0],Q[1])}}function Do(w){var R=-1,H=w==null?0:w.length;for(this.clear();++R<H;){var Q=w[R];this.set(Q[0],Q[1])}}function Ql(w){var R=-1,H=w==null?0:w.length;for(this.__data__=new Do;++R<H;)this.add(w[R])}function qs(w){var R=this.__data__=new Po(w);this.size=R.size}function o2(w,R){var H=ln(w),Q=!H&&iu(w),pt=!H&&!Q&&wl(w),Pt=!H&&!Q&&!pt&&nc(w),Qt=H||Q||pt||Pt,oe=Qt?pl(w.length,Ii):[],ye=oe.length;for(var Be in w)!R&&!fn.call(w,Be)||Qt&&(Be=="length"||pt&&(Be=="offset"||Be=="parent")||Pt&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||jo(Be,ye))||oe.push(Be);return oe}function l2(w){var R=w.length;return R?w[um(0,R-1)]:e}function C_(w,R){return _d(Ga(w),tu(R,0,w.length))}function A_(w){return _d(Ga(w))}function Q0(w,R,H){(H!==e&&!Gs(w[R],H)||H===e&&!(R in w))&&Fo(w,R,H)}function wf(w,R,H){var Q=w[R];fn.call(w,R)&&Gs(Q,H)&&(H!==e||R in w)||Fo(w,R,H)}function ld(w,R){for(var H=w.length;H--;)if(Gs(w[H][0],R))return H;return-1}function M_(w,R,H,Q){return vl(w,function(pt,Pt,Qt){R(Q,pt,H(pt),Qt)}),Q}function u2(w,R){return w&&fo(R,na(R),w)}function Fo(w,R,H){R=="__proto__"&&rd?rd(w,R,{configurable:!0,enumerable:!0,value:H,writable:!0}):w[R]=H}function tm(w,R){for(var H=-1,Q=R.length,pt=ft(Q),Pt=w==null;++H<Q;)pt[H]=Pt?e:Fm(w,R[H]);return pt}function tu(w,R,H){return w==w&&(H!==e&&(w=w<=H?w:H),R!==e&&(w=w>=R?w:R)),w}function Ms(w,R,H,Q,pt,Pt){var Qt,oe=1&R,ye=2&R,Be=4&R;if(H&&(Qt=pt?H(w,Q,pt,Pt):H(w)),Qt!==e)return Qt;if(!bi(w))return w;var ze=ln(w);if(ze){if(Qt=function(Ge){var gr=Ge.length,Xr=new Ge.constructor(gr);return gr&&typeof Ge[0]=="string"&&fn.call(Ge,"index")&&(Xr.index=Ge.index,Xr.input=Ge.input),Xr}(w),!oe)return Ga(w,Qt)}else{var or=Ra(w),Nr=or==S||or==C;if(wl(w))return N2(w,oe);if(or==j||or==v||Nr&&!pt){if(Qt=ye||Nr?{}:J2(w),!oe)return ye?function(Ge,gr){return fo(Ge,X2(Ge),gr)}(w,function(Ge,gr){return Ge&&fo(gr,Ka(gr),Ge)}(Qt,w)):function(Ge,gr){return fo(Ge,xm(Ge),gr)}(w,u2(Qt,w))}else{if(!Kr[or])return pt?w:{};Qt=function(Ge,gr,Xr){var kr=Ge.constructor;switch(gr){case x:return vm(Ge);case g:case y:return new kr(+Ge);case T:return function(rn,jn){var jr=jn?vm(rn.buffer):rn.buffer;return new rn.constructor(jr,rn.byteOffset,rn.byteLength)}(Ge,Xr);case E:case M:case F:case P:case W:case N:case q:case nt:case J:return P2(Ge,Xr);case O:return new kr;case L:case A:return new kr(Ge);case z:return function(rn){var jn=new rn.constructor(rn.source,ct.exec(rn));return jn.lastIndex=rn.lastIndex,jn}(Ge);case Y:return new kr;case I:return hn=Ge,yf?sr(yf.call(hn)):{}}var hn}(w,or,oe)}}Pt||(Pt=new qs);var Fr=Pt.get(w);if(Fr)return Fr;Pt.set(w,Qt),Ey(w)?w.forEach(function(Ge){Qt.add(Ms(Ge,R,H,Ge,w,Pt))}):Sy(w)&&w.forEach(function(Ge,gr){Qt.set(gr,Ms(Ge,R,H,gr,w,Pt))});var Wr=ze?e:(Be?ye?wm:ym:ye?Ka:na)(w);return $i(Wr||w,function(Ge,gr){Wr&&(Ge=w[gr=Ge]),wf(Qt,gr,Ms(Ge,R,H,gr,w,Pt))}),Qt}function c2(w,R,H){var Q=H.length;if(w==null)return!Q;for(w=sr(w);Q--;){var pt=H[Q],Pt=R[pt],Qt=w[pt];if(Qt===e&&!(pt in w)||!Pt(Qt))return!1}return!0}function f2(w,R,H){if(typeof w!="function")throw new In(n);return Cf(function(){w.apply(e,H)},R)}function _f(w,R,H,Q){var pt=-1,Pt=Ta,Qt=!0,oe=w.length,ye=[],Be=R.length;if(!oe)return ye;H&&(R=Zn(R,Ui(H))),Q?(Pt=Yl,Qt=!1):R.length>=200&&(Pt=ue,Qt=!1,R=new Ql(R));t:for(;++pt<oe;){var ze=w[pt],or=H==null?ze:H(ze);if(ze=Q||ze!==0?ze:0,Qt&&or==or){for(var Nr=Be;Nr--;)if(R[Nr]===or)continue t;ye.push(ze)}else Pt(R,or,Q)||ye.push(ze)}return ye}Et.templateSettings={escape:Nt,evaluate:rt,interpolate:mt,variable:"",imports:{_:Et}},Et.prototype=od.prototype,Et.prototype.constructor=Et,As.prototype=Qu(od.prototype),As.prototype.constructor=As,An.prototype=Qu(od.prototype),An.prototype.constructor=An,Jl.prototype.clear=function(){this.__data__=bf?bf(null):{},this.size=0},Jl.prototype.delete=function(w){var R=this.has(w)&&delete this.__data__[w];return this.size-=R?1:0,R},Jl.prototype.get=function(w){var R=this.__data__;if(bf){var H=R[w];return H===a?e:H}return fn.call(R,w)?R[w]:e},Jl.prototype.has=function(w){var R=this.__data__;return bf?R[w]!==e:fn.call(R,w)},Jl.prototype.set=function(w,R){var H=this.__data__;return this.size+=this.has(w)?0:1,H[w]=bf&&R===e?a:R,this},Po.prototype.clear=function(){this.__data__=[],this.size=0},Po.prototype.delete=function(w){var R=this.__data__,H=ld(R,w);return!(H<0)&&(H==R.length-1?R.pop():ed.call(R,H,1),--this.size,!0)},Po.prototype.get=function(w){var R=this.__data__,H=ld(R,w);return H<0?e:R[H][1]},Po.prototype.has=function(w){return ld(this.__data__,w)>-1},Po.prototype.set=function(w,R){var H=this.__data__,Q=ld(H,w);return Q<0?(++this.size,H.push([w,R])):H[Q][1]=R,this},Do.prototype.clear=function(){this.size=0,this.__data__={hash:new Jl,map:new(vf||Po),string:new Jl}},Do.prototype.delete=function(w){var R=wd(this,w).delete(w);return this.size-=R?1:0,R},Do.prototype.get=function(w){return wd(this,w).get(w)},Do.prototype.has=function(w){return wd(this,w).has(w)},Do.prototype.set=function(w,R){var H=wd(this,w),Q=H.size;return H.set(w,R),this.size+=H.size==Q?0:1,this},Ql.prototype.add=Ql.prototype.push=function(w){return this.__data__.set(w,a),this},Ql.prototype.has=function(w){return this.__data__.has(w)},qs.prototype.clear=function(){this.__data__=new Po,this.size=0},qs.prototype.delete=function(w){var R=this.__data__,H=R.delete(w);return this.size=R.size,H},qs.prototype.get=function(w){return this.__data__.get(w)},qs.prototype.has=function(w){return this.__data__.has(w)},qs.prototype.set=function(w,R){var H=this.__data__;if(H instanceof Po){var Q=H.__data__;if(!vf||Q.length<199)return Q.push([w,R]),this.size=++H.size,this;H=this.__data__=new Do(Q)}return H.set(w,R),this.size=H.size,this};var vl=B2(co),h2=B2(rm,!0);function R_(w,R){var H=!0;return vl(w,function(Q,pt,Pt){return H=!!R(Q,pt,Pt)}),H}function ud(w,R,H){for(var Q=-1,pt=w.length;++Q<pt;){var Pt=w[Q],Qt=R(Pt);if(Qt!=null&&(oe===e?Qt==Qt&&!ls(Qt):H(Qt,oe)))var oe=Qt,ye=Pt}return ye}function d2(w,R){var H=[];return vl(w,function(Q,pt,Pt){R(Q,pt,Pt)&&H.push(Q)}),H}function da(w,R,H,Q,pt){var Pt=-1,Qt=w.length;for(H||(H=H_),pt||(pt=[]);++Pt<Qt;){var oe=w[Pt];R>0&&H(oe)?R>1?da(oe,R-1,H,Q,pt):Es(pt,oe):Q||(pt[pt.length]=oe)}return pt}var em=j2(),p2=j2(!0);function co(w,R){return w&&em(w,R,na)}function rm(w,R){return w&&p2(w,R,na)}function cd(w,R){return Ts(R,function(H){return zo(w[H])})}function eu(w,R){for(var H=0,Q=(R=bl(R,w)).length;w!=null&&H<Q;)w=w[ho(R[H++])];return H&&H==Q?w:e}function m2(w,R,H){var Q=R(w);return ln(w)?Q:Es(Q,H(w))}function za(w){return w==null?w===e?"[object Undefined]":"[object Null]":Zl&&Zl in sr(w)?function(R){var H=fn.call(R,Zl),Q=R[Zl];try{R[Zl]=e;var pt=!0}catch{}var Pt=Cs.call(R);return pt&&(H?R[Zl]=Q:delete R[Zl]),Pt}(w):function(R){return Cs.call(R)}(w)}function nm(w,R){return w>R}function O_(w,R){return w!=null&&fn.call(w,R)}function I_(w,R){return w!=null&&R in sr(w)}function im(w,R,H){for(var Q=H?Yl:Ta,pt=w[0].length,Pt=w.length,Qt=Pt,oe=ft(Pt),ye=1/0,Be=[];Qt--;){var ze=w[Qt];Qt&&R&&(ze=Zn(ze,Ui(R))),ye=Ma(ze.length,ye),oe[Qt]=!H&&(R||pt>=120&&ze.length>=120)?new Ql(Qt&&ze):e}ze=w[0];var or=-1,Nr=oe[0];t:for(;++or<pt&&Be.length<ye;){var Fr=ze[or],Wr=R?R(Fr):Fr;if(Fr=H||Fr!==0?Fr:0,!(Nr?ue(Nr,Wr):Q(Be,Wr,H))){for(Qt=Pt;--Qt;){var Ge=oe[Qt];if(!(Ge?ue(Ge,Wr):Q(w[Qt],Wr,H)))continue t}Nr&&Nr.push(Wr),Be.push(Fr)}}return Be}function kf(w,R,H){var Q=(w=ry(w,R=bl(R,w)))==null?w:w[ho(Os(R))];return Q==null?e:ca(Q,w,H)}function v2(w){return xi(w)&&za(w)==v}function xf(w,R,H,Q,pt){return w===R||(w==null||R==null||!xi(w)&&!xi(R)?w!=w&&R!=R:function(Pt,Qt,oe,ye,Be,ze){var or=ln(Pt),Nr=ln(Qt),Fr=or?b:Ra(Pt),Wr=Nr?b:Ra(Qt),Ge=(Fr=Fr==v?j:Fr)==j,gr=(Wr=Wr==v?j:Wr)==j,Xr=Fr==Wr;if(Xr&&wl(Pt)){if(!wl(Qt))return!1;or=!0,Ge=!1}if(Xr&&!Ge)return ze||(ze=new qs),or||nc(Pt)?K2(Pt,Qt,oe,ye,Be,ze):function(jr,Zr,Ki,Pi,Ha,ui,Oa){switch(Ki){case T:if(jr.byteLength!=Zr.byteLength||jr.byteOffset!=Zr.byteOffset)return!1;jr=jr.buffer,Zr=Zr.buffer;case x:return!(jr.byteLength!=Zr.byteLength||!ui(new Qh(jr),new Qh(Zr)));case g:case y:case L:return Gs(+jr,+Zr);case k:return jr.name==Zr.name&&jr.message==Zr.message;case z:case A:return jr==Zr+"";case O:var po=mi;case Y:var _l=1Πif(po||(po=qi),jr.size!=Zr.size&&!_l)return!1;var Rd=Oa.get(jr);if(Rd)return Rd==Zr;Pi|=2,Oa.set(jr,Zr);var qm=K2(po(jr),po(Zr),Pi,Ha,ui,Oa);return Oa.delete(jr),qm;case I:if(yf)return yf.call(jr)==yf.call(Zr)}return!1}(Pt,Qt,Fr,oe,ye,Be,ze);if(!(1&oe)){var kr=Ge&&fn.call(Pt,"__wrapped__"),hn=gr&&fn.call(Qt,"__wrapped__");if(kr||hn){var rn=kr?Pt.value():Pt,jn=hn?Qt.value():Qt;return ze||(ze=new qs),Be(rn,jn,oe,ye,ze)}}return Xr?(ze||(ze=new qs),function(jr,Zr,Ki,Pi,Ha,ui){var Oa=1&Ki,po=ym(jr),_l=po.length,Rd=ym(Zr),qm=Rd.length;if(_l!=qm&&!Oa)return!1;for(var Od=_l;Od--;){var au=po[Od];if(!(Oa?au in Zr:fn.call(Zr,au)))return!1}var zy=ui.get(jr),Uy=ui.get(Zr);if(zy&&Uy)return zy==Zr&&Uy==jr;var Id=!0;ui.set(jr,Zr),ui.set(Zr,jr);for(var Gm=Oa;++Od<_l;){var Nd=jr[au=po[Od]],Pd=Zr[au];if(Pi)var Hy=Oa?Pi(Pd,Nd,au,Zr,jr,ui):Pi(Nd,Pd,au,jr,Zr,ui);if(!(Hy===e?Nd===Pd||Ha(Nd,Pd,Ki,Pi,ui):Hy)){Id=!1;break}Gm||(Gm=au=="constructor")}if(Id&&!Gm){var Dd=jr.constructor,Fd=Zr.constructor;Dd==Fd||!("constructor"in jr)||!("constructor"in Zr)||typeof Dd=="function"&&Dd instanceof Dd&&typeof Fd=="function"&&Fd instanceof Fd||(Id=!1)}return ui.delete(jr),ui.delete(Zr),Id}(Pt,Qt,oe,ye,Be,ze)):!1}(w,R,H,Q,xf,pt))}function am(w,R,H,Q){var pt=H.length,Pt=pt,Qt=!Q;if(w==null)return!Pt;for(w=sr(w);pt--;){var oe=H[pt];if(Qt&&oe[2]?oe[1]!==w[oe[0]]:!(oe[0]in w))return!1}for(;++pt<Pt;){var ye=(oe=H[pt])[0],Be=w[ye],ze=oe[1];if(Qt&&oe[2]){if(Be===e&&!(ye in w))return!1}else{var or=new qs;if(Q)var Nr=Q(Be,ze,ye,w,R,or);if(!(Nr===e?xf(ze,Be,3,Q,or):Nr))return!1}}return!0}function g2(w){return!(!bi(w)||(R=w,uo&&uo in R))&&(zo(w)?h_:bt).test(nu(w));var R}function b2(w){return typeof w=="function"?w:w==null?Xa:typeof w=="object"?ln(w)?_2(w[0],w[1]):w2(w):jy(w)}function sm(w){if(!Ef(w))return b_(w);var R=[];for(var H in sr(w))fn.call(w,H)&&H!="constructor"&&R.push(H);return R}function N_(w){if(!bi(w))return function(pt){var Pt=[];if(pt!=null)for(var Qt in sr(pt))Pt.push(Qt);return Pt}(w);var R=Ef(w),H=[];for(var Q in w)(Q!="constructor"||!R&&fn.call(w,Q))&&H.push(Q);return H}function om(w,R){return w<R}function y2(w,R){var H=-1,Q=Ya(w)?ft(w.length):[];return vl(w,function(pt,Pt,Qt){Q[++H]=R(pt,Pt,Qt)}),Q}function w2(w){var R=km(w);return R.length==1&&R[0][2]?ty(R[0][0],R[0][1]):function(H){return H===w||am(H,w,R)}}function _2(w,R){return Sm(w)&&Q2(R)?ty(ho(w),R):function(H){var Q=Fm(H,w);return Q===e&&Q===R?Lm(H,w):xf(R,Q,3)}}function fd(w,R,H,Q,pt){w!==R&&em(R,function(Pt,Qt){if(pt||(pt=new qs),bi(Pt))(function(ye,Be,ze,or,Nr,Fr,Wr){var Ge=Em(ye,ze),gr=Em(Be,ze),Xr=Wr.get(gr);if(Xr)return void Q0(ye,ze,Xr);var kr=Fr?Fr(Ge,gr,ze+"",ye,Be,Wr):e,hn=kr===e;if(hn){var rn=ln(gr),jn=!rn&&wl(gr),jr=!rn&&!jn&&nc(gr);kr=gr,rn||jn||jr?ln(Ge)?kr=Ge:Ni(Ge)?kr=Ga(Ge):jn?(hn=!1,kr=N2(gr,!0)):jr?(hn=!1,kr=P2(gr,!0)):kr=[]:Af(gr)||iu(gr)?(kr=Ge,iu(Ge)?kr=My(Ge):bi(Ge)&&!zo(Ge)||(kr=J2(gr))):hn=!1}hn&&(Wr.set(gr,kr),Nr(kr,gr,or,Fr,Wr),Wr.delete(gr)),Q0(ye,ze,kr)})(w,R,Qt,H,fd,Q,pt);else{var oe=Q?Q(Em(w,Qt),Pt,Qt+"",w,R,pt):e;oe===e&&(oe=Pt),Q0(w,Qt,oe)}},Ka)}function k2(w,R){var H=w.length;if(H)return jo(R+=R<0?H:0,H)?w[R]:e}function x2(w,R,H){R=R.length?Zn(R,function(pt){return ln(pt)?function(Pt){return eu(Pt,pt.length===1?pt[0]:pt)}:pt}):[Xa];var Q=-1;return R=Zn(R,Ui(Yr())),function(pt,Pt){var Qt=pt.length;for(pt.sort(Pt);Qt--;)pt[Qt]=pt[Qt].value;return pt}(y2(w,function(pt,Pt,Qt){return{criteria:Zn(R,function(oe){return oe(pt)}),index:++Q,value:pt}}),function(pt,Pt){return function(Qt,oe,ye){for(var Be=-1,ze=Qt.criteria,or=oe.criteria,Nr=ze.length,Fr=ye.length;++Be<Nr;){var Wr=D2(ze[Be],or[Be]);if(Wr)return Be>=Fr?Wr:Wr*(ye[Be]=="desc"?-1:1)}return Qt.index-oe.index}(pt,Pt,H)})}function S2(w,R,H){for(var Q=-1,pt=R.length,Pt={};++Q<pt;){var Qt=R[Q],oe=eu(w,Qt);H(oe,Qt)&&Sf(Pt,bl(Qt,w),oe)}return Pt}function lm(w,R,H,Q){var pt=Q?Kl:fa,Pt=-1,Qt=R.length,oe=w;for(w===R&&(R=Ga(R)),H&&(oe=Zn(w,Ui(H)));++Pt<Qt;)for(var ye=0,Be=R[Pt],ze=H?H(Be):Be;(ye=pt(oe,ze,ye,Q))>-1;)oe!==w&&ed.call(oe,ye,1),ed.call(w,ye,1);return w}function T2(w,R){for(var H=w?R.length:0,Q=H-1;H--;){var pt=R[H];if(H==Q||pt!==Pt){var Pt=pt;jo(pt)?ed.call(w,pt,1):hm(w,pt)}}return w}function um(w,R){return w+id(a2()*(R-w+1))}function cm(w,R){var H="";if(!w||R<1||R>h)return H;do R%2&&(H+=w),(R=id(R/2))&&(w+=w);while(R);return H}function _n(w,R){return Cm(ey(w,R,Xa),w+"")}function P_(w){return l2(ic(w))}function D_(w,R){var H=ic(w);return _d(H,tu(R,0,H.length))}function Sf(w,R,H,Q){if(!bi(w))return w;for(var pt=-1,Pt=(R=bl(R,w)).length,Qt=Pt-1,oe=w;oe!=null&&++pt<Pt;){var ye=ho(R[pt]),Be=H;if(ye==="__proto__"||ye==="constructor"||ye==="prototype")return w;if(pt!=Qt){var ze=oe[ye];(Be=Q?Q(ze,ye,oe):e)===e&&(Be=bi(ze)?ze:jo(R[pt+1])?[]:{})}wf(oe,ye,Be),oe=oe[ye]}return w}var E2=ad?function(w,R){return ad.set(w,R),w}:Xa,F_=rd?function(w,R){return rd(w,"toString",{configurable:!0,enumerable:!1,value:jm(R),writable:!0})}:Xa;function L_(w){return _d(ic(w))}function Rs(w,R,H){var Q=-1,pt=w.length;R<0&&(R=-R>pt?0:pt+R),(H=H>pt?pt:H)<0&&(H+=pt),pt=R>H?0:H-R>>>0,R>>>=0;for(var Pt=ft(pt);++Q<pt;)Pt[Q]=w[Q+R];return Pt}function B_(w,R){var H;return vl(w,function(Q,pt,Pt){return!(H=R(Q,pt,Pt))}),!!H}function hd(w,R,H){var Q=0,pt=w==null?Q:w.length;if(typeof R=="number"&&R==R&&pt<=2147483647){for(;Q<pt;){var Pt=Q+pt>>>1,Qt=w[Pt];Qt!==null&&!ls(Qt)&&(H?Qt<=R:Qt<R)?Q=Pt+1:pt=Pt}return pt}return fm(w,R,Xa,H)}function fm(w,R,H,Q){var pt=0,Pt=w==null?0:w.length;if(Pt===0)return 0;for(var Qt=(R=H(R))!=R,oe=R===null,ye=ls(R),Be=R===e;pt<Pt;){var ze=id((pt+Pt)/2),or=H(w[ze]),Nr=or!==e,Fr=or===null,Wr=or==or,Ge=ls(or);if(Qt)var gr=Q||Wr;else gr=Be?Wr&&(Q||Nr):oe?Wr&&Nr&&(Q||!Fr):ye?Wr&&Nr&&!Fr&&(Q||!Ge):!Fr&&!Ge&&(Q?or<=R:or<R);gr?pt=ze+1:Pt=ze}return Ma(Pt,4294967294)}function C2(w,R){for(var H=-1,Q=w.length,pt=0,Pt=[];++H<Q;){var Qt=w[H],oe=R?R(Qt):Qt;if(!H||!Gs(oe,ye)){var ye=oe;Pt[pt++]=Qt===0?0:Qt}}return Pt}function A2(w){return typeof w=="number"?w:ls(w)?d:+w}function os(w){if(typeof w=="string")return w;if(ln(w))return Zn(w,os)+"";if(ls(w))return s2?s2.call(w):"";var R=w+"";return R=="0"&&1/w==-1/0?"-0":R}function gl(w,R,H){var Q=-1,pt=Ta,Pt=w.length,Qt=!0,oe=[],ye=oe;if(H)Qt=!1,pt=Yl;else if(Pt>=200){var Be=R?null:z_(w);if(Be)return qi(Be);Qt=!1,pt=ue,ye=new Ql}else ye=R?[]:oe;t:for(;++Q<Pt;){var ze=w[Q],or=R?R(ze):ze;if(ze=H||ze!==0?ze:0,Qt&&or==or){for(var Nr=ye.length;Nr--;)if(ye[Nr]===or)continue t;R&&ye.push(or),oe.push(ze)}else pt(ye,or,H)||(ye!==oe&&ye.push(or),oe.push(ze))}return oe}function hm(w,R){return(w=ry(w,R=bl(R,w)))==null||delete w[ho(Os(R))]}function M2(w,R,H,Q){return Sf(w,R,H(eu(w,R)),Q)}function dd(w,R,H,Q){for(var pt=w.length,Pt=Q?pt:-1;(Q?Pt--:++Pt<pt)&&R(w[Pt],Pt,w););return H?Rs(w,Q?0:Pt,Q?Pt+1:pt):Rs(w,Q?Pt+1:0,Q?pt:Pt)}function R2(w,R){var H=w;return H instanceof An&&(H=H.value()),fl(R,function(Q,pt){return pt.func.apply(pt.thisArg,Es([Q],pt.args))},H)}function dm(w,R,H){var Q=w.length;if(Q<2)return Q?gl(w[0]):[];for(var pt=-1,Pt=ft(Q);++pt<Q;)for(var Qt=w[pt],oe=-1;++oe<Q;)oe!=pt&&(Pt[pt]=_f(Pt[pt]||Qt,w[oe],R,H));return gl(da(Pt,1),R,H)}function O2(w,R,H){for(var Q=-1,pt=w.length,Pt=R.length,Qt={};++Q<pt;){var oe=Q<Pt?R[Q]:e;H(Qt,w[Q],oe)}return Qt}function pm(w){return Ni(w)?w:[]}function mm(w){return typeof w=="function"?w:Xa}function bl(w,R){return ln(w)?w:Sm(w,R)?[w]:oy(Wn(w))}var j_=_n;function yl(w,R,H){var Q=w.length;return H=H===e?Q:H,!R&&H>=Q?w:Rs(w,R,H)}var I2=d_||function(w){return Oi.clearTimeout(w)};function N2(w,R){if(R)return w.slice();var H=w.length,Q=t2?t2(H):new w.constructor(H);return w.copy(Q),Q}function vm(w){var R=new w.constructor(w.byteLength);return new Qh(R).set(new Qh(w)),R}function P2(w,R){var H=R?vm(w.buffer):w.buffer;return new w.constructor(H,w.byteOffset,w.length)}function D2(w,R){if(w!==R){var H=w!==e,Q=w===null,pt=w==w,Pt=ls(w),Qt=R!==e,oe=R===null,ye=R==R,Be=ls(R);if(!oe&&!Be&&!Pt&&w>R||Pt&&Qt&&ye&&!oe&&!Be||Q&&Qt&&ye||!H&&ye||!pt)return 1;if(!Q&&!Pt&&!Be&&w<R||Be&&H&&pt&&!Q&&!Pt||oe&&H&&pt||!Qt&&pt||!ye)return-1}return 0}function F2(w,R,H,Q){for(var pt=-1,Pt=w.length,Qt=H.length,oe=-1,ye=R.length,Be=Yi(Pt-Qt,0),ze=ft(ye+Be),or=!Q;++oe<ye;)ze[oe]=R[oe];for(;++pt<Qt;)(or||pt<Pt)&&(ze[H[pt]]=w[pt]);for(;Be--;)ze[oe++]=w[pt++];return ze}function L2(w,R,H,Q){for(var pt=-1,Pt=w.length,Qt=-1,oe=H.length,ye=-1,Be=R.length,ze=Yi(Pt-oe,0),or=ft(ze+Be),Nr=!Q;++pt<ze;)or[pt]=w[pt];for(var Fr=pt;++ye<Be;)or[Fr+ye]=R[ye];for(;++Qt<oe;)(Nr||pt<Pt)&&(or[Fr+H[Qt]]=w[pt++]);return or}function Ga(w,R){var H=-1,Q=w.length;for(R||(R=ft(Q));++H<Q;)R[H]=w[H];return R}function fo(w,R,H,Q){var pt=!H;H||(H={});for(var Pt=-1,Qt=R.length;++Pt<Qt;){var oe=R[Pt],ye=Q?Q(H[oe],w[oe],oe,H,w):e;ye===e&&(ye=w[oe]),pt?Fo(H,oe,ye):wf(H,oe,ye)}return H}function pd(w,R){return function(H,Q){var pt=ln(H)?qu:M_,Pt=R?R():{};return pt(H,w,Yr(Q,2),Pt)}}function tc(w){return _n(function(R,H){var Q=-1,pt=H.length,Pt=pt>1?H[pt-1]:e,Qt=pt>2?H[2]:e;for(Pt=w.length>3&&typeof Pt=="function"?(pt--,Pt):e,Qt&&Ua(H[0],H[1],Qt)&&(Pt=pt<3?e:Pt,pt=1),R=sr(R);++Q<pt;){var oe=H[Q];oe&&w(R,oe,Q,Pt)}return R})}function B2(w,R){return function(H,Q){if(H==null)return H;if(!Ya(H))return w(H,Q);for(var pt=H.length,Pt=R?pt:-1,Qt=sr(H);(R?Pt--:++Pt<pt)&&Q(Qt[Pt],Pt,Qt)!==!1;);return H}}function j2(w){return function(R,H,Q){for(var pt=-1,Pt=sr(R),Qt=Q(R),oe=Qt.length;oe--;){var ye=Qt[w?oe:++pt];if(H(Pt[ye],ye,Pt)===!1)break}return R}}function z2(w){return function(R){var H=ri(R=Wn(R))?ni(R):e,Q=H?H[0]:R.charAt(0),pt=H?yl(H,1).join(""):R.slice(1);return Q[w]()+pt}}function ec(w){return function(R){return fl(Ly(Fy(R).replace(Ir,"")),w,"")}}function Tf(w){return function(){var R=arguments;switch(R.length){case 0:return new w;case 1:return new w(R[0]);case 2:return new w(R[0],R[1]);case 3:return new w(R[0],R[1],R[2]);case 4:return new w(R[0],R[1],R[2],R[3]);case 5:return new w(R[0],R[1],R[2],R[3],R[4]);case 6:return new w(R[0],R[1],R[2],R[3],R[4],R[5]);case 7:return new w(R[0],R[1],R[2],R[3],R[4],R[5],R[6])}var H=Qu(w.prototype),Q=w.apply(H,R);return bi(Q)?Q:H}}function U2(w){return function(R,H,Q){var pt=sr(R);if(!Ya(R)){var Pt=Yr(H,3);R=na(R),H=function(oe){return Pt(pt[oe],oe,pt)}}var Qt=w(R,H,Q);return Qt>-1?pt[Pt?R[Qt]:Qt]:e}}function H2(w){return Bo(function(R){var H=R.length,Q=H,pt=As.prototype.thru;for(w&&R.reverse();Q--;){var Pt=R[Q];if(typeof Pt!="function")throw new In(n);if(pt&&!Qt&&yd(Pt)=="wrapper")var Qt=new As([],!0)}for(Q=Qt?Q:H;++Q<H;){var oe=yd(Pt=R[Q]),ye=oe=="wrapper"?_m(Pt):e;Qt=ye&&Tm(ye[0])&&ye[1]==424&&!ye[4].length&&ye[9]==1?Qt[yd(ye[0])].apply(Qt,ye[3]):Pt.length==1&&Tm(Pt)?Qt[oe]():Qt.thru(Pt)}return function(){var Be=arguments,ze=Be[0];if(Qt&&Be.length==1&&ln(ze))return Qt.plant(ze).value();for(var or=0,Nr=H?R[or].apply(this,Be):ze;++or<H;)Nr=R[or].call(this,Nr);return Nr}})}function md(w,R,H,Q,pt,Pt,Qt,oe,ye,Be){var ze=R&l,or=1&R,Nr=2&R,Fr=24&R,Wr=512&R,Ge=Nr?e:Tf(w);return function gr(){for(var Xr=arguments.length,kr=ft(Xr),hn=Xr;hn--;)kr[hn]=arguments[hn];if(Fr)var rn=rc(gr),jn=function(Pi,Ha){for(var ui=Pi.length,Oa=0;ui--;)Pi[ui]===Ha&&++Oa;return Oa}(kr,rn);if(Q&&(kr=F2(kr,Q,pt,Fr)),Pt&&(kr=L2(kr,Pt,Qt,Fr)),Xr-=jn,Fr&&Xr<Be){var jr=Dn(kr,rn);return $2(w,R,md,gr.placeholder,H,kr,jr,oe,ye,Be-Xr)}var Zr=or?H:this,Ki=Nr?Zr[w]:w;return Xr=kr.length,oe?kr=function(Pi,Ha){for(var ui=Pi.length,Oa=Ma(Ha.length,ui),po=Ga(Pi);Oa--;){var _l=Ha[Oa];Pi[Oa]=jo(_l,ui)?po[_l]:e}return Pi}(kr,oe):Wr&&Xr>1&&kr.reverse(),ze&&ye<Xr&&(kr.length=ye),this&&this!==Oi&&this instanceof gr&&(Ki=Ge||Tf(Ki)),Ki.apply(Zr,kr)}}function W2(w,R){return function(H,Q){return function(pt,Pt,Qt,oe){return co(pt,function(ye,Be,ze){Pt(oe,Qt(ye),Be,ze)}),oe}(H,w,R(Q),{})}}function vd(w,R){return function(H,Q){var pt;if(H===e&&Q===e)return R;if(H!==e&&(pt=H),Q!==e){if(pt===e)return Q;typeof H=="string"||typeof Q=="string"?(H=os(H),Q=os(Q)):(H=A2(H),Q=A2(Q)),pt=w(H,Q)}return pt}}function gm(w){return Bo(function(R){return R=Zn(R,Ui(Yr())),_n(function(H){var Q=this;return w(R,function(pt){return ca(pt,Q,H)})})})}function gd(w,R){var H=(R=R===e?" ":os(R)).length;if(H<2)return H?cm(R,w):R;var Q=cm(R,nd(w/vi(R)));return ri(R)?yl(ni(Q),0,w).join(""):Q.slice(0,w)}function V2(w){return function(R,H,Q){return Q&&typeof Q!="number"&&Ua(R,H,Q)&&(H=Q=e),R=Uo(R),H===e?(H=R,R=0):H=Uo(H),function(pt,Pt,Qt,oe){for(var ye=-1,Be=Yi(nd((Pt-pt)/(Qt||1)),0),ze=ft(Be);Be--;)ze[oe?Be:++ye]=pt,pt+=Qt;return ze}(R,H,Q=Q===e?R<H?1:-1:Uo(Q),w)}}function bd(w){return function(R,H){return typeof R=="string"&&typeof H=="string"||(R=Is(R),H=Is(H)),w(R,H)}}function $2(w,R,H,Q,pt,Pt,Qt,oe,ye,Be){var ze=8&R;R|=ze?i:u,4&(R&=~(ze?u:i))||(R&=-4);var or=[w,R,pt,ze?Pt:e,ze?Qt:e,ze?e:Pt,ze?e:Qt,oe,ye,Be],Nr=H.apply(e,or);return Tm(w)&&ny(Nr,or),Nr.placeholder=Q,iy(Nr,w,R)}function bm(w){var R=Dr[w];return function(H,Q){if(H=Is(H),(Q=Q==null?0:Ma(bn(Q),292))&&i2(H)){var pt=(Wn(H)+"e").split("e");return+((pt=(Wn(R(pt[0]+"e"+(+pt[1]+Q)))+"e").split("e"))[0]+"e"+(+pt[1]-Q))}return R(H)}}var z_=Zu&&1/qi(new Zu([,-0]))[1]==c?function(w){return new Zu(w)}:Hm;function q2(w){return function(R){var H=Ra(R);return H==O?mi(R):H==Y?function(Q){var pt=-1,Pt=Array(Q.size);return Q.forEach(function(Qt){Pt[++pt]=[Qt,Qt]}),Pt}(R):function(Q,pt){return Zn(pt,function(Pt){return[Pt,Q[Pt]]})}(R,w(R))}}function Lo(w,R,H,Q,pt,Pt,Qt,oe){var ye=2&R;if(!ye&&typeof w!="function")throw new In(n);var Be=Q?Q.length:0;if(Be||(R&=-97,Q=pt=e),Qt=Qt===e?Qt:Yi(bn(Qt),0),oe=oe===e?oe:bn(oe),Be-=pt?pt.length:0,R&u){var ze=Q,or=pt;Q=pt=e}var Nr=ye?e:_m(w),Fr=[w,R,H,Q,pt,ze,or,Pt,Qt,oe];if(Nr&&function(Ge,gr){var Xr=Ge[1],kr=gr[1],hn=Xr|kr,rn=hn<131,jn=kr==l&&Xr==8||kr==l&&Xr==f&&Ge[7].length<=gr[8]||kr==384&&gr[7].length<=gr[8]&&Xr==8;if(!rn&&!jn)return Ge;1&kr&&(Ge[2]=gr[2],hn|=1&Xr?0:4);var jr=gr[3];if(jr){var Zr=Ge[3];Ge[3]=Zr?F2(Zr,jr,gr[4]):jr,Ge[4]=Zr?Dn(Ge[3],o):gr[4]}(jr=gr[5])&&(Zr=Ge[5],Ge[5]=Zr?L2(Zr,jr,gr[6]):jr,Ge[6]=Zr?Dn(Ge[5],o):gr[6]),(jr=gr[7])&&(Ge[7]=jr),kr&l&&(Ge[8]=Ge[8]==null?gr[8]:Ma(Ge[8],gr[8])),Ge[9]==null&&(Ge[9]=gr[9]),Ge[0]=gr[0],Ge[1]=hn}(Fr,Nr),w=Fr[0],R=Fr[1],H=Fr[2],Q=Fr[3],pt=Fr[4],!(oe=Fr[9]=Fr[9]===e?ye?0:w.length:Yi(Fr[9]-Be,0))&&24&R&&(R&=-25),R&&R!=1)Wr=R==8||R==s?function(Ge,gr,Xr){var kr=Tf(Ge);return function hn(){for(var rn=arguments.length,jn=ft(rn),jr=rn,Zr=rc(hn);jr--;)jn[jr]=arguments[jr];var Ki=rn<3&&jn[0]!==Zr&&jn[rn-1]!==Zr?[]:Dn(jn,Zr);return(rn-=Ki.length)<Xr?$2(Ge,gr,md,hn.placeholder,e,jn,Ki,e,e,Xr-rn):ca(this&&this!==Oi&&this instanceof hn?kr:Ge,this,jn)}}(w,R,oe):R!=i&&R!=33||pt.length?md.apply(e,Fr):function(Ge,gr,Xr,kr){var hn=1&gr,rn=Tf(Ge);return function jn(){for(var jr=-1,Zr=arguments.length,Ki=-1,Pi=kr.length,Ha=ft(Pi+Zr),ui=this&&this!==Oi&&this instanceof jn?rn:Ge;++Ki<Pi;)Ha[Ki]=kr[Ki];for(;Zr--;)Ha[Ki++]=arguments[++jr];return ca(ui,hn?Xr:this,Ha)}}(w,R,H,Q);else var Wr=function(Ge,gr,Xr){var kr=1&gr,hn=Tf(Ge);return function rn(){return(this&&this!==Oi&&this instanceof rn?hn:Ge).apply(kr?Xr:this,arguments)}}(w,R,H);return iy((Nr?E2:ny)(Wr,Fr),w,R)}function G2(w,R,H,Q){return w===e||Gs(w,Gi[H])&&!fn.call(Q,H)?R:w}function Y2(w,R,H,Q,pt,Pt){return bi(w)&&bi(R)&&(Pt.set(R,w),fd(w,R,e,Y2,Pt),Pt.delete(R)),w}function U_(w){return Af(w)?e:w}function K2(w,R,H,Q,pt,Pt){var Qt=1&H,oe=w.length,ye=R.length;if(oe!=ye&&!(Qt&&ye>oe))return!1;var Be=Pt.get(w),ze=Pt.get(R);if(Be&&ze)return Be==R&&ze==w;var or=-1,Nr=!0,Fr=2&H?new Ql:e;for(Pt.set(w,R),Pt.set(R,w);++or<oe;){var Wr=w[or],Ge=R[or];if(Q)var gr=Qt?Q(Ge,Wr,or,R,w,Pt):Q(Wr,Ge,or,w,R,Pt);if(gr!==e){if(gr)continue;Nr=!1;break}if(Fr){if(!as(R,function(Xr,kr){if(!ue(Fr,kr)&&(Wr===Xr||pt(Wr,Xr,H,Q,Pt)))return Fr.push(kr)})){Nr=!1;break}}else if(Wr!==Ge&&!pt(Wr,Ge,H,Q,Pt)){Nr=!1;break}}return Pt.delete(w),Pt.delete(R),Nr}function Bo(w){return Cm(ey(w,e,fy),w+"")}function ym(w){return m2(w,na,xm)}function wm(w){return m2(w,Ka,X2)}var _m=ad?function(w){return ad.get(w)}:Hm;function yd(w){for(var R=w.name+"",H=Ju[R],Q=fn.call(Ju,R)?H.length:0;Q--;){var pt=H[Q],Pt=pt.func;if(Pt==null||Pt==w)return pt.name}return R}function rc(w){return(fn.call(Et,"placeholder")?Et:w).placeholder}function Yr(){var w=Et.iteratee||zm;return w=w===zm?b2:w,arguments.length?w(arguments[0],arguments[1]):w}function wd(w,R){var H,Q,pt=w.__data__;return((Q=typeof(H=R))=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?H!=="__proto__":H===null)?pt[typeof R=="string"?"string":"hash"]:pt.map}function km(w){for(var R=na(w),H=R.length;H--;){var Q=R[H],pt=w[Q];R[H]=[Q,pt,Q2(pt)]}return R}function ru(w,R){var H=function(Q,pt){return Q==null?e:Q[pt]}(w,R);return g2(H)?H:e}var xm=X0?function(w){return w==null?[]:(w=sr(w),Ts(X0(w),function(R){return r2.call(w,R)}))}:Wm,X2=X0?function(w){for(var R=[];w;)Es(R,xm(w)),w=td(w);return R}:Wm,Ra=za;function Z2(w,R,H){for(var Q=-1,pt=(R=bl(R,w)).length,Pt=!1;++Q<pt;){var Qt=ho(R[Q]);if(!(Pt=w!=null&&H(w,Qt)))break;w=w[Qt]}return Pt||++Q!=pt?Pt:!!(pt=w==null?0:w.length)&&Cd(pt)&&jo(Qt,pt)&&(ln(w)||iu(w))}function J2(w){return typeof w.constructor!="function"||Ef(w)?{}:Qu(td(w))}function H_(w){return ln(w)||iu(w)||!!(n2&&w&&w[n2])}function jo(w,R){var H=typeof w;return!!(R=R??h)&&(H=="number"||H!="symbol"&&Ct.test(w))&&w>-1&&w%1==0&&w<R}function Ua(w,R,H){if(!bi(H))return!1;var Q=typeof R;return!!(Q=="number"?Ya(H)&&jo(R,H.length):Q=="string"&&R in H)&&Gs(H[R],w)}function Sm(w,R){if(ln(w))return!1;var H=typeof w;return!(H!="number"&&H!="symbol"&&H!="boolean"&&w!=null&&!ls(w))||G.test(w)||!Xt.test(w)||R!=null&&w in sr(R)}function Tm(w){var R=yd(w),H=Et[R];if(typeof H!="function"||!(R in An.prototype))return!1;if(w===H)return!0;var Q=_m(H);return!!Q&&w===Q[0]}(Z0&&Ra(new Z0(new ArrayBuffer(1)))!=T||vf&&Ra(new vf)!=O||J0&&Ra(J0.resolve())!=U||Zu&&Ra(new Zu)!=Y||gf&&Ra(new gf)!=_)&&(Ra=function(w){var R=za(w),H=R==j?w.constructor:e,Q=H?nu(H):"";if(Q)switch(Q){case k_:return T;case x_:return O;case S_:return U;case T_:return Y;case E_:return _}return R});var W_=Aa?zo:Vm;function Ef(w){var R=w&&w.constructor;return w===(typeof R=="function"&&R.prototype||Gi)}function Q2(w){return w==w&&!bi(w)}function ty(w,R){return function(H){return H!=null&&H[w]===R&&(R!==e||w in sr(H))}}function ey(w,R,H){return R=Yi(R===e?w.length-1:R,0),function(){for(var Q=arguments,pt=-1,Pt=Yi(Q.length-R,0),Qt=ft(Pt);++pt<Pt;)Qt[pt]=Q[R+pt];pt=-1;for(var oe=ft(R+1);++pt<R;)oe[pt]=Q[pt];return oe[R]=H(Qt),ca(w,this,oe)}}function ry(w,R){return R.length<2?w:eu(w,Rs(R,0,-1))}function Em(w,R){if((R!=="constructor"||typeof w[R]!="function")&&R!="__proto__")return w[R]}var ny=ay(E2),Cf=m_||function(w,R){return Oi.setTimeout(w,R)},Cm=ay(F_);function iy(w,R,H){var Q=R+"";return Cm(w,function(pt,Pt){var Qt=Pt.length;if(!Qt)return pt;var oe=Qt-1;return Pt[oe]=(Qt>1?"& ":"")+Pt[oe],Pt=Pt.join(Qt>2?", ":" "),pt.replace(Gt,`{ |
|
|
/* [wrapped with `+Pt+`] */ |
|
|
`)}(Q,function(pt,Pt){return $i(m,function(Qt){var oe="_."+Qt[0];Pt&Qt[1]&&!Ta(pt,oe)&&pt.push(oe)}),pt.sort()}(function(pt){var Pt=pt.match(Jt);return Pt?Pt[1].split(vt):[]}(Q),H)))}function ay(w){var R=0,H=0;return function(){var Q=y_(),pt=16-(Q-H);if(H=Q,pt>0){if(++R>=800)return arguments[0]}else R=0;return w.apply(e,arguments)}}function _d(w,R){var H=-1,Q=w.length,pt=Q-1;for(R=R===e?Q:R;++H<R;){var Pt=um(H,pt),Qt=w[Pt];w[Pt]=w[H],w[H]=Qt}return w.length=R,w}var sy,Am,Mm,oy=(sy=function(w){var R=[];return w.charCodeAt(0)===46&&R.push(""),w.replace(tt,function(H,Q,pt,Pt){R.push(pt?Pt.replace(ie,"$1"):Q||H)}),R},Am=Td(sy,function(w){return Mm.size===500&&Mm.clear(),w}),Mm=Am.cache,Am);function ho(w){if(typeof w=="string"||ls(w))return w;var R=w+"";return R=="0"&&1/w==-1/0?"-0":R}function nu(w){if(w!=null){try{return ra.call(w)}catch{}try{return w+""}catch{}}return""}function ly(w){if(w instanceof An)return w.clone();var R=new As(w.__wrapped__,w.__chain__);return R.__actions__=Ga(w.__actions__),R.__index__=w.__index__,R.__values__=w.__values__,R}var V_=_n(function(w,R){return Ni(w)?_f(w,da(R,1,Ni,!0)):[]}),$_=_n(function(w,R){var H=Os(R);return Ni(H)&&(H=e),Ni(w)?_f(w,da(R,1,Ni,!0),Yr(H,2)):[]}),q_=_n(function(w,R){var H=Os(R);return Ni(H)&&(H=e),Ni(w)?_f(w,da(R,1,Ni,!0),e,H):[]});function uy(w,R,H){var Q=w==null?0:w.length;if(!Q)return-1;var pt=H==null?0:bn(H);return pt<0&&(pt=Yi(Q+pt,0)),Ea(w,Yr(R,3),pt)}function cy(w,R,H){var Q=w==null?0:w.length;if(!Q)return-1;var pt=Q-1;return H!==e&&(pt=bn(H),pt=H<0?Yi(Q+pt,0):Ma(pt,Q-1)),Ea(w,Yr(R,3),pt,!0)}function fy(w){return w!=null&&w.length?da(w,1):[]}function hy(w){return w&&w.length?w[0]:e}var G_=_n(function(w){var R=Zn(w,pm);return R.length&&R[0]===w[0]?im(R):[]}),Y_=_n(function(w){var R=Os(w),H=Zn(w,pm);return R===Os(H)?R=e:H.pop(),H.length&&H[0]===w[0]?im(H,Yr(R,2)):[]}),K_=_n(function(w){var R=Os(w),H=Zn(w,pm);return(R=typeof R=="function"?R:e)&&H.pop(),H.length&&H[0]===w[0]?im(H,e,R):[]});function Os(w){var R=w==null?0:w.length;return R?w[R-1]:e}var X_=_n(dy);function dy(w,R){return w&&w.length&&R&&R.length?lm(w,R):w}var Z_=Bo(function(w,R){var H=w==null?0:w.length,Q=tm(w,R);return T2(w,Zn(R,function(pt){return jo(pt,H)?+pt:pt}).sort(D2)),Q});function Rm(w){return w==null?w:__.call(w)}var J_=_n(function(w){return gl(da(w,1,Ni,!0))}),Q_=_n(function(w){var R=Os(w);return Ni(R)&&(R=e),gl(da(w,1,Ni,!0),Yr(R,2))}),tk=_n(function(w){var R=Os(w);return R=typeof R=="function"?R:e,gl(da(w,1,Ni,!0),e,R)});function Om(w){if(!w||!w.length)return[];var R=0;return w=Ts(w,function(H){if(Ni(H))return R=Yi(H.length,R),!0}),pl(R,function(H){return Zn(w,hl(H))})}function py(w,R){if(!w||!w.length)return[];var H=Om(w);return R==null?H:Zn(H,function(Q){return ca(R,e,Q)})}var ek=_n(function(w,R){return Ni(w)?_f(w,R):[]}),rk=_n(function(w){return dm(Ts(w,Ni))}),nk=_n(function(w){var R=Os(w);return Ni(R)&&(R=e),dm(Ts(w,Ni),Yr(R,2))}),ik=_n(function(w){var R=Os(w);return R=typeof R=="function"?R:e,dm(Ts(w,Ni),e,R)}),ak=_n(Om),sk=_n(function(w){var R=w.length,H=R>1?w[R-1]:e;return H=typeof H=="function"?(w.pop(),H):e,py(w,H)});function my(w){var R=Et(w);return R.__chain__=!0,R}function kd(w,R){return R(w)}var ok=Bo(function(w){var R=w.length,H=R?w[0]:0,Q=this.__wrapped__,pt=function(Pt){return tm(Pt,w)};return!(R>1||this.__actions__.length)&&Q instanceof An&&jo(H)?((Q=Q.slice(H,+H+(R?1:0))).__actions__.push({func:kd,args:[pt],thisArg:e}),new As(Q,this.__chain__).thru(function(Pt){return R&&!Pt.length&&Pt.push(e),Pt})):this.thru(pt)}),lk=pd(function(w,R,H){fn.call(w,H)?++w[H]:Fo(w,H,1)}),uk=U2(uy),ck=U2(cy);function vy(w,R){return(ln(w)?$i:vl)(w,Yr(R,3))}function gy(w,R){return(ln(w)?so:h2)(w,Yr(R,3))}var fk=pd(function(w,R,H){fn.call(w,H)?w[H].push(R):Fo(w,H,[R])}),hk=_n(function(w,R,H){var Q=-1,pt=typeof R=="function",Pt=Ya(w)?ft(w.length):[];return vl(w,function(Qt){Pt[++Q]=pt?ca(R,Qt,H):kf(Qt,R,H)}),Pt}),dk=pd(function(w,R,H){Fo(w,H,R)});function xd(w,R){return(ln(w)?Zn:y2)(w,Yr(R,3))}var pk=pd(function(w,R,H){w[H?0:1].push(R)},function(){return[[],[]]}),mk=_n(function(w,R){if(w==null)return[];var H=R.length;return H>1&&Ua(w,R[0],R[1])?R=[]:H>2&&Ua(R[0],R[1],R[2])&&(R=[R[0]]),x2(w,da(R,1),[])}),Sd=p_||function(){return Oi.Date.now()};function by(w,R,H){return R=H?e:R,R=w&&R==null?w.length:R,Lo(w,l,e,e,e,e,R)}function yy(w,R){var H;if(typeof R!="function")throw new In(n);return w=bn(w),function(){return--w>0&&(H=R.apply(this,arguments)),w<=1&&(R=e),H}}var Im=_n(function(w,R,H){var Q=1;if(H.length){var pt=Dn(H,rc(Im));Q|=i}return Lo(w,Q,R,H,pt)}),wy=_n(function(w,R,H){var Q=3;if(H.length){var pt=Dn(H,rc(wy));Q|=i}return Lo(R,Q,w,H,pt)});function _y(w,R,H){var Q,pt,Pt,Qt,oe,ye,Be=0,ze=!1,or=!1,Nr=!0;if(typeof w!="function")throw new In(n);function Fr(kr){var hn=Q,rn=pt;return Q=pt=e,Be=kr,Qt=w.apply(rn,hn)}function Wr(kr){var hn=kr-ye;return ye===e||hn>=R||hn<0||or&&kr-Be>=Pt}function Ge(){var kr=Sd();if(Wr(kr))return gr(kr);oe=Cf(Ge,function(hn){var rn=R-(hn-ye);return or?Ma(rn,Pt-(hn-Be)):rn}(kr))}function gr(kr){return oe=e,Nr&&Q?Fr(kr):(Q=pt=e,Qt)}function Xr(){var kr=Sd(),hn=Wr(kr);if(Q=arguments,pt=this,ye=kr,hn){if(oe===e)return function(rn){return Be=rn,oe=Cf(Ge,R),ze?Fr(rn):Qt}(ye);if(or)return I2(oe),oe=Cf(Ge,R),Fr(ye)}return oe===e&&(oe=Cf(Ge,R)),Qt}return R=Is(R)||0,bi(H)&&(ze=!!H.leading,Pt=(or="maxWait"in H)?Yi(Is(H.maxWait)||0,R):Pt,Nr="trailing"in H?!!H.trailing:Nr),Xr.cancel=function(){oe!==e&&I2(oe),Be=0,Q=ye=pt=oe=e},Xr.flush=function(){return oe===e?Qt:gr(Sd())},Xr}var vk=_n(function(w,R){return f2(w,1,R)}),gk=_n(function(w,R,H){return f2(w,Is(R)||0,H)});function Td(w,R){if(typeof w!="function"||R!=null&&typeof R!="function")throw new In(n);var H=function(){var Q=arguments,pt=R?R.apply(this,Q):Q[0],Pt=H.cache;if(Pt.has(pt))return Pt.get(pt);var Qt=w.apply(this,Q);return H.cache=Pt.set(pt,Qt)||Pt,Qt};return H.cache=new(Td.Cache||Do),H}function Ed(w){if(typeof w!="function")throw new In(n);return function(){var R=arguments;switch(R.length){case 0:return!w.call(this);case 1:return!w.call(this,R[0]);case 2:return!w.call(this,R[0],R[1]);case 3:return!w.call(this,R[0],R[1],R[2])}return!w.apply(this,R)}}Td.Cache=Do;var bk=j_(function(w,R){var H=(R=R.length==1&&ln(R[0])?Zn(R[0],Ui(Yr())):Zn(da(R,1),Ui(Yr()))).length;return _n(function(Q){for(var pt=-1,Pt=Ma(Q.length,H);++pt<Pt;)Q[pt]=R[pt].call(this,Q[pt]);return ca(w,this,Q)})}),Nm=_n(function(w,R){var H=Dn(R,rc(Nm));return Lo(w,i,e,R,H)}),ky=_n(function(w,R){var H=Dn(R,rc(ky));return Lo(w,u,e,R,H)}),yk=Bo(function(w,R){return Lo(w,f,e,e,e,R)});function Gs(w,R){return w===R||w!=w&&R!=R}var wk=bd(nm),_k=bd(function(w,R){return w>=R}),iu=v2(function(){return arguments}())?v2:function(w){return xi(w)&&fn.call(w,"callee")&&!r2.call(w,"callee")},ln=ft.isArray,kk=Hu?Ui(Hu):function(w){return xi(w)&&za(w)==x};function Ya(w){return w!=null&&Cd(w.length)&&!zo(w)}function Ni(w){return xi(w)&&Ya(w)}var wl=v_||Vm,xk=cl?Ui(cl):function(w){return xi(w)&&za(w)==y};function Pm(w){if(!xi(w))return!1;var R=za(w);return R==k||R=="[object DOMException]"||typeof w.message=="string"&&typeof w.name=="string"&&!Af(w)}function zo(w){if(!bi(w))return!1;var R=za(w);return R==S||R==C||R=="[object AsyncFunction]"||R=="[object Proxy]"}function xy(w){return typeof w=="number"&&w==bn(w)}function Cd(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=h}function bi(w){var R=typeof w;return w!=null&&(R=="object"||R=="function")}function xi(w){return w!=null&&typeof w=="object"}var Sy=Wu?Ui(Wu):function(w){return xi(w)&&Ra(w)==O};function Ty(w){return typeof w=="number"||xi(w)&&za(w)==L}function Af(w){if(!xi(w)||za(w)!=j)return!1;var R=td(w);if(R===null)return!0;var H=fn.call(R,"constructor")&&R.constructor;return typeof H=="function"&&H instanceof H&&ra.call(H)==Xu}var Dm=Vu?Ui(Vu):function(w){return xi(w)&&za(w)==z},Ey=Gl?Ui(Gl):function(w){return xi(w)&&Ra(w)==Y};function Ad(w){return typeof w=="string"||!ln(w)&&xi(w)&&za(w)==A}function ls(w){return typeof w=="symbol"||xi(w)&&za(w)==I}var nc=$u?Ui($u):function(w){return xi(w)&&Cd(w.length)&&!!gn[za(w)]},Sk=bd(om),Tk=bd(function(w,R){return w<=R});function Cy(w){if(!w)return[];if(Ya(w))return Ad(w)?ni(w):Ga(w);if(mf&&w[mf])return function(H){for(var Q,pt=[];!(Q=H.next()).done;)pt.push(Q.value);return pt}(w[mf]());var R=Ra(w);return(R==O?mi:R==Y?qi:ic)(w)}function Uo(w){return w?(w=Is(w))===c||w===-1/0?17976931348623157e292*(w<0?-1:1):w==w?w:0:w===0?w:0}function bn(w){var R=Uo(w),H=R%1;return R==R?H?R-H:R:0}function Ay(w){return w?tu(bn(w),0,p):0}function Is(w){if(typeof w=="number")return w;if(ls(w))return d;if(bi(w)){var R=typeof w.valueOf=="function"?w.valueOf():w;w=bi(R)?R+"":R}if(typeof w!="string")return w===0?w:+w;w=Ku(w);var H=Ft.test(w);return H||lt.test(w)?ja(w.slice(2),H?2:8):xt.test(w)?d:+w}function My(w){return fo(w,Ka(w))}function Wn(w){return w==null?"":os(w)}var Ek=tc(function(w,R){if(Ef(R)||Ya(R))fo(R,na(R),w);else for(var H in R)fn.call(R,H)&&wf(w,H,R[H])}),Ry=tc(function(w,R){fo(R,Ka(R),w)}),Md=tc(function(w,R,H,Q){fo(R,Ka(R),w,Q)}),Ck=tc(function(w,R,H,Q){fo(R,na(R),w,Q)}),Ak=Bo(tm),Mk=_n(function(w,R){w=sr(w);var H=-1,Q=R.length,pt=Q>2?R[2]:e;for(pt&&Ua(R[0],R[1],pt)&&(Q=1);++H<Q;)for(var Pt=R[H],Qt=Ka(Pt),oe=-1,ye=Qt.length;++oe<ye;){var Be=Qt[oe],ze=w[Be];(ze===e||Gs(ze,Gi[Be])&&!fn.call(w,Be))&&(w[Be]=Pt[Be])}return w}),Rk=_n(function(w){return w.push(e,Y2),ca(Oy,e,w)});function Fm(w,R,H){var Q=w==null?e:eu(w,R);return Q===e?H:Q}function Lm(w,R){return w!=null&&Z2(w,R,I_)}var Ok=W2(function(w,R,H){R!=null&&typeof R.toString!="function"&&(R=Cs.call(R)),w[R]=H},jm(Xa)),Ik=W2(function(w,R,H){R!=null&&typeof R.toString!="function"&&(R=Cs.call(R)),fn.call(w,R)?w[R].push(H):w[R]=[H]},Yr),Nk=_n(kf);function na(w){return Ya(w)?o2(w):sm(w)}function Ka(w){return Ya(w)?o2(w,!0):N_(w)}var Pk=tc(function(w,R,H){fd(w,R,H)}),Oy=tc(function(w,R,H,Q){fd(w,R,H,Q)}),Dk=Bo(function(w,R){var H={};if(w==null)return H;var Q=!1;R=Zn(R,function(Pt){return Pt=bl(Pt,w),Q||(Q=Pt.length>1),Pt}),fo(w,wm(w),H),Q&&(H=Ms(H,7,U_));for(var pt=R.length;pt--;)hm(H,R[pt]);return H}),Fk=Bo(function(w,R){return w==null?{}:function(H,Q){return S2(H,Q,function(pt,Pt){return Lm(H,Pt)})}(w,R)});function Iy(w,R){if(w==null)return{};var H=Zn(wm(w),function(Q){return[Q]});return R=Yr(R),S2(w,H,function(Q,pt){return R(Q,pt[0])})}var Ny=q2(na),Py=q2(Ka);function ic(w){return w==null?[]:Bt(w,na(w))}var Lk=ec(function(w,R,H){return R=R.toLowerCase(),w+(H?Dy(R):R)});function Dy(w){return Bm(Wn(w).toLowerCase())}function Fy(w){return(w=Wn(w))&&w.replace(zt,Hn).replace(xn,"")}var Bk=ec(function(w,R,H){return w+(H?"-":"")+R.toLowerCase()}),jk=ec(function(w,R,H){return w+(H?" ":"")+R.toLowerCase()}),zk=z2("toLowerCase"),Uk=ec(function(w,R,H){return w+(H?"_":"")+R.toLowerCase()}),Hk=ec(function(w,R,H){return w+(H?" ":"")+Bm(R)}),Wk=ec(function(w,R,H){return w+(H?" ":"")+R.toUpperCase()}),Bm=z2("toUpperCase");function Ly(w,R,H){return w=Wn(w),(R=H?e:R)===e?function(Q){return Sa.test(Q)}(w)?function(Q){return Q.match(_i)||[]}(w):function(Q){return Q.match(gt)||[]}(w):w.match(R)||[]}var By=_n(function(w,R){try{return ca(w,e,R)}catch(H){return Pm(H)?H:new fe(H)}}),Vk=Bo(function(w,R){return $i(R,function(H){H=ho(H),Fo(w,H,Im(w[H],w))}),w});function jm(w){return function(){return w}}var $k=H2(),qk=H2(!0);function Xa(w){return w}function zm(w){return b2(typeof w=="function"?w:Ms(w,1))}var Gk=_n(function(w,R){return function(H){return kf(H,w,R)}}),Yk=_n(function(w,R){return function(H){return kf(w,H,R)}});function Um(w,R,H){var Q=na(R),pt=cd(R,Q);H!=null||bi(R)&&(pt.length||!Q.length)||(H=R,R=w,w=this,pt=cd(R,na(R)));var Pt=!(bi(H)&&"chain"in H&&!H.chain),Qt=zo(w);return $i(pt,function(oe){var ye=R[oe];w[oe]=ye,Qt&&(w.prototype[oe]=function(){var Be=this.__chain__;if(Pt||Be){var ze=w(this.__wrapped__);return(ze.__actions__=Ga(this.__actions__)).push({func:ye,args:arguments,thisArg:w}),ze.__chain__=Be,ze}return ye.apply(w,Es([this.value()],arguments))})}),w}function Hm(){}var Kk=gm(Zn),Xk=gm(Gu),Zk=gm(as);function jy(w){return Sm(w)?hl(ho(w)):function(R){return function(H){return eu(H,R)}}(w)}var Jk=V2(),Qk=V2(!0);function Wm(){return[]}function Vm(){return!1}var t8=vd(function(w,R){return w+R},0),e8=bm("ceil"),r8=vd(function(w,R){return w/R},1),n8=bm("floor"),$m,i8=vd(function(w,R){return w*R},1),a8=bm("round"),s8=vd(function(w,R){return w-R},0);return Et.after=function(w,R){if(typeof R!="function")throw new In(n);return w=bn(w),function(){if(--w<1)return R.apply(this,arguments)}},Et.ary=by,Et.assign=Ek,Et.assignIn=Ry,Et.assignInWith=Md,Et.assignWith=Ck,Et.at=Ak,Et.before=yy,Et.bind=Im,Et.bindAll=Vk,Et.bindKey=wy,Et.castArray=function(){if(!arguments.length)return[];var w=arguments[0];return ln(w)?w:[w]},Et.chain=my,Et.chunk=function(w,R,H){R=(H?Ua(w,R,H):R===e)?1:Yi(bn(R),0);var Q=w==null?0:w.length;if(!Q||R<1)return[];for(var pt=0,Pt=0,Qt=ft(nd(Q/R));pt<Q;)Qt[Pt++]=Rs(w,pt,pt+=R);return Qt},Et.compact=function(w){for(var R=-1,H=w==null?0:w.length,Q=0,pt=[];++R<H;){var Pt=w[R];Pt&&(pt[Q++]=Pt)}return pt},Et.concat=function(){var w=arguments.length;if(!w)return[];for(var R=ft(w-1),H=arguments[0],Q=w;Q--;)R[Q-1]=arguments[Q];return Es(ln(H)?Ga(H):[H],da(R,1))},Et.cond=function(w){var R=w==null?0:w.length,H=Yr();return w=R?Zn(w,function(Q){if(typeof Q[1]!="function")throw new In(n);return[H(Q[0]),Q[1]]}):[],_n(function(Q){for(var pt=-1;++pt<R;){var Pt=w[pt];if(ca(Pt[0],this,Q))return ca(Pt[1],this,Q)}})},Et.conforms=function(w){return function(R){var H=na(R);return function(Q){return c2(Q,R,H)}}(Ms(w,1))},Et.constant=jm,Et.countBy=lk,Et.create=function(w,R){var H=Qu(w);return R==null?H:u2(H,R)},Et.curry=function w(R,H,Q){var pt=Lo(R,8,e,e,e,e,e,H=Q?e:H);return pt.placeholder=w.placeholder,pt},Et.curryRight=function w(R,H,Q){var pt=Lo(R,s,e,e,e,e,e,H=Q?e:H);return pt.placeholder=w.placeholder,pt},Et.debounce=_y,Et.defaults=Mk,Et.defaultsDeep=Rk,Et.defer=vk,Et.delay=gk,Et.difference=V_,Et.differenceBy=$_,Et.differenceWith=q_,Et.drop=function(w,R,H){var Q=w==null?0:w.length;return Q?Rs(w,(R=H||R===e?1:bn(R))<0?0:R,Q):[]},Et.dropRight=function(w,R,H){var Q=w==null?0:w.length;return Q?Rs(w,0,(R=Q-(R=H||R===e?1:bn(R)))<0?0:R):[]},Et.dropRightWhile=function(w,R){return w&&w.length?dd(w,Yr(R,3),!0,!0):[]},Et.dropWhile=function(w,R){return w&&w.length?dd(w,Yr(R,3),!0):[]},Et.fill=function(w,R,H,Q){var pt=w==null?0:w.length;return pt?(H&&typeof H!="number"&&Ua(w,R,H)&&(H=0,Q=pt),function(Pt,Qt,oe,ye){var Be=Pt.length;for((oe=bn(oe))<0&&(oe=-oe>Be?0:Be+oe),(ye=ye===e||ye>Be?Be:bn(ye))<0&&(ye+=Be),ye=oe>ye?0:Ay(ye);oe<ye;)Pt[oe++]=Qt;return Pt}(w,R,H,Q)):[]},Et.filter=function(w,R){return(ln(w)?Ts:d2)(w,Yr(R,3))},Et.flatMap=function(w,R){return da(xd(w,R),1)},Et.flatMapDeep=function(w,R){return da(xd(w,R),c)},Et.flatMapDepth=function(w,R,H){return H=H===e?1:bn(H),da(xd(w,R),H)},Et.flatten=fy,Et.flattenDeep=function(w){return w!=null&&w.length?da(w,c):[]},Et.flattenDepth=function(w,R){return w!=null&&w.length?da(w,R=R===e?1:bn(R)):[]},Et.flip=function(w){return Lo(w,512)},Et.flow=$k,Et.flowRight=qk,Et.fromPairs=function(w){for(var R=-1,H=w==null?0:w.length,Q={};++R<H;){var pt=w[R];Q[pt[0]]=pt[1]}return Q},Et.functions=function(w){return w==null?[]:cd(w,na(w))},Et.functionsIn=function(w){return w==null?[]:cd(w,Ka(w))},Et.groupBy=fk,Et.initial=function(w){return w!=null&&w.length?Rs(w,0,-1):[]},Et.intersection=G_,Et.intersectionBy=Y_,Et.intersectionWith=K_,Et.invert=Ok,Et.invertBy=Ik,Et.invokeMap=hk,Et.iteratee=zm,Et.keyBy=dk,Et.keys=na,Et.keysIn=Ka,Et.map=xd,Et.mapKeys=function(w,R){var H={};return R=Yr(R,3),co(w,function(Q,pt,Pt){Fo(H,R(Q,pt,Pt),Q)}),H},Et.mapValues=function(w,R){var H={};return R=Yr(R,3),co(w,function(Q,pt,Pt){Fo(H,pt,R(Q,pt,Pt))}),H},Et.matches=function(w){return w2(Ms(w,1))},Et.matchesProperty=function(w,R){return _2(w,Ms(R,1))},Et.memoize=Td,Et.merge=Pk,Et.mergeWith=Oy,Et.method=Gk,Et.methodOf=Yk,Et.mixin=Um,Et.negate=Ed,Et.nthArg=function(w){return w=bn(w),_n(function(R){return k2(R,w)})},Et.omit=Dk,Et.omitBy=function(w,R){return Iy(w,Ed(Yr(R)))},Et.once=function(w){return yy(2,w)},Et.orderBy=function(w,R,H,Q){return w==null?[]:(ln(R)||(R=R==null?[]:[R]),ln(H=Q?e:H)||(H=H==null?[]:[H]),x2(w,R,H))},Et.over=Kk,Et.overArgs=bk,Et.overEvery=Xk,Et.overSome=Zk,Et.partial=Nm,Et.partialRight=ky,Et.partition=pk,Et.pick=Fk,Et.pickBy=Iy,Et.property=jy,Et.propertyOf=function(w){return function(R){return w==null?e:eu(w,R)}},Et.pull=X_,Et.pullAll=dy,Et.pullAllBy=function(w,R,H){return w&&w.length&&R&&R.length?lm(w,R,Yr(H,2)):w},Et.pullAllWith=function(w,R,H){return w&&w.length&&R&&R.length?lm(w,R,e,H):w},Et.pullAt=Z_,Et.range=Jk,Et.rangeRight=Qk,Et.rearg=yk,Et.reject=function(w,R){return(ln(w)?Ts:d2)(w,Ed(Yr(R,3)))},Et.remove=function(w,R){var H=[];if(!w||!w.length)return H;var Q=-1,pt=[],Pt=w.length;for(R=Yr(R,3);++Q<Pt;){var Qt=w[Q];R(Qt,Q,w)&&(H.push(Qt),pt.push(Q))}return T2(w,pt),H},Et.rest=function(w,R){if(typeof w!="function")throw new In(n);return _n(w,R=R===e?R:bn(R))},Et.reverse=Rm,Et.sampleSize=function(w,R,H){return R=(H?Ua(w,R,H):R===e)?1:bn(R),(ln(w)?C_:D_)(w,R)},Et.set=function(w,R,H){return w==null?w:Sf(w,R,H)},Et.setWith=function(w,R,H,Q){return Q=typeof Q=="function"?Q:e,w==null?w:Sf(w,R,H,Q)},Et.shuffle=function(w){return(ln(w)?A_:L_)(w)},Et.slice=function(w,R,H){var Q=w==null?0:w.length;return Q?(H&&typeof H!="number"&&Ua(w,R,H)?(R=0,H=Q):(R=R==null?0:bn(R),H=H===e?Q:bn(H)),Rs(w,R,H)):[]},Et.sortBy=mk,Et.sortedUniq=function(w){return w&&w.length?C2(w):[]},Et.sortedUniqBy=function(w,R){return w&&w.length?C2(w,Yr(R,2)):[]},Et.split=function(w,R,H){return H&&typeof H!="number"&&Ua(w,R,H)&&(R=H=e),(H=H===e?p:H>>>0)?(w=Wn(w))&&(typeof R=="string"||R!=null&&!Dm(R))&&!(R=os(R))&&ri(w)?yl(ni(w),0,H):w.split(R,H):[]},Et.spread=function(w,R){if(typeof w!="function")throw new In(n);return R=R==null?0:Yi(bn(R),0),_n(function(H){var Q=H[R],pt=yl(H,0,R);return Q&&Es(pt,Q),ca(w,this,pt)})},Et.tail=function(w){var R=w==null?0:w.length;return R?Rs(w,1,R):[]},Et.take=function(w,R,H){return w&&w.length?Rs(w,0,(R=H||R===e?1:bn(R))<0?0:R):[]},Et.takeRight=function(w,R,H){var Q=w==null?0:w.length;return Q?Rs(w,(R=Q-(R=H||R===e?1:bn(R)))<0?0:R,Q):[]},Et.takeRightWhile=function(w,R){return w&&w.length?dd(w,Yr(R,3),!1,!0):[]},Et.takeWhile=function(w,R){return w&&w.length?dd(w,Yr(R,3)):[]},Et.tap=function(w,R){return R(w),w},Et.throttle=function(w,R,H){var Q=!0,pt=!0;if(typeof w!="function")throw new In(n);return bi(H)&&(Q="leading"in H?!!H.leading:Q,pt="trailing"in H?!!H.trailing:pt),_y(w,R,{leading:Q,maxWait:R,trailing:pt})},Et.thru=kd,Et.toArray=Cy,Et.toPairs=Ny,Et.toPairsIn=Py,Et.toPath=function(w){return ln(w)?Zn(w,ho):ls(w)?[w]:Ga(oy(Wn(w)))},Et.toPlainObject=My,Et.transform=function(w,R,H){var Q=ln(w),pt=Q||wl(w)||nc(w);if(R=Yr(R,4),H==null){var Pt=w&&w.constructor;H=pt?Q?new Pt:[]:bi(w)&&zo(Pt)?Qu(td(w)):{}}return(pt?$i:co)(w,function(Qt,oe,ye){return R(H,Qt,oe,ye)}),H},Et.unary=function(w){return by(w,1)},Et.union=J_,Et.unionBy=Q_,Et.unionWith=tk,Et.uniq=function(w){return w&&w.length?gl(w):[]},Et.uniqBy=function(w,R){return w&&w.length?gl(w,Yr(R,2)):[]},Et.uniqWith=function(w,R){return R=typeof R=="function"?R:e,w&&w.length?gl(w,e,R):[]},Et.unset=function(w,R){return w==null||hm(w,R)},Et.unzip=Om,Et.unzipWith=py,Et.update=function(w,R,H){return w==null?w:M2(w,R,mm(H))},Et.updateWith=function(w,R,H,Q){return Q=typeof Q=="function"?Q:e,w==null?w:M2(w,R,mm(H),Q)},Et.values=ic,Et.valuesIn=function(w){return w==null?[]:Bt(w,Ka(w))},Et.without=ek,Et.words=Ly,Et.wrap=function(w,R){return Nm(mm(R),w)},Et.xor=rk,Et.xorBy=nk,Et.xorWith=ik,Et.zip=ak,Et.zipObject=function(w,R){return O2(w||[],R||[],wf)},Et.zipObjectDeep=function(w,R){return O2(w||[],R||[],Sf)},Et.zipWith=sk,Et.entries=Ny,Et.entriesIn=Py,Et.extend=Ry,Et.extendWith=Md,Um(Et,Et),Et.add=t8,Et.attempt=By,Et.camelCase=Lk,Et.capitalize=Dy,Et.ceil=e8,Et.clamp=function(w,R,H){return H===e&&(H=R,R=e),H!==e&&(H=(H=Is(H))==H?H:0),R!==e&&(R=(R=Is(R))==R?R:0),tu(Is(w),R,H)},Et.clone=function(w){return Ms(w,4)},Et.cloneDeep=function(w){return Ms(w,5)},Et.cloneDeepWith=function(w,R){return Ms(w,5,R=typeof R=="function"?R:e)},Et.cloneWith=function(w,R){return Ms(w,4,R=typeof R=="function"?R:e)},Et.conformsTo=function(w,R){return R==null||c2(w,R,na(R))},Et.deburr=Fy,Et.defaultTo=function(w,R){return w==null||w!=w?R:w},Et.divide=r8,Et.endsWith=function(w,R,H){w=Wn(w),R=os(R);var Q=w.length,pt=H=H===e?Q:tu(bn(H),0,Q);return(H-=R.length)>=0&&w.slice(H,pt)==R},Et.eq=Gs,Et.escape=function(w){return(w=Wn(w))&&st.test(w)?w.replace(K,qr):w},Et.escapeRegExp=function(w){return(w=Wn(w))&&Dt.test(w)?w.replace(dt,"\\$&"):w},Et.every=function(w,R,H){var Q=ln(w)?Gu:R_;return H&&Ua(w,R,H)&&(R=e),Q(w,Yr(R,3))},Et.find=uk,Et.findIndex=uy,Et.findKey=function(w,R){return Yu(w,Yr(R,3),co)},Et.findLast=ck,Et.findLastIndex=cy,Et.findLastKey=function(w,R){return Yu(w,Yr(R,3),rm)},Et.floor=n8,Et.forEach=vy,Et.forEachRight=gy,Et.forIn=function(w,R){return w==null?w:em(w,Yr(R,3),Ka)},Et.forInRight=function(w,R){return w==null?w:p2(w,Yr(R,3),Ka)},Et.forOwn=function(w,R){return w&&co(w,Yr(R,3))},Et.forOwnRight=function(w,R){return w&&rm(w,Yr(R,3))},Et.get=Fm,Et.gt=wk,Et.gte=_k,Et.has=function(w,R){return w!=null&&Z2(w,R,O_)},Et.hasIn=Lm,Et.head=hy,Et.identity=Xa,Et.includes=function(w,R,H,Q){w=Ya(w)?w:ic(w),H=H&&!Q?bn(H):0;var pt=w.length;return H<0&&(H=Yi(pt+H,0)),Ad(w)?H<=pt&&w.indexOf(R,H)>-1:!!pt&&fa(w,R,H)>-1},Et.indexOf=function(w,R,H){var Q=w==null?0:w.length;if(!Q)return-1;var pt=H==null?0:bn(H);return pt<0&&(pt=Yi(Q+pt,0)),fa(w,R,pt)},Et.inRange=function(w,R,H){return R=Uo(R),H===e?(H=R,R=0):H=Uo(H),function(Q,pt,Pt){return Q>=Ma(pt,Pt)&&Q<Yi(pt,Pt)}(w=Is(w),R,H)},Et.invoke=Nk,Et.isArguments=iu,Et.isArray=ln,Et.isArrayBuffer=kk,Et.isArrayLike=Ya,Et.isArrayLikeObject=Ni,Et.isBoolean=function(w){return w===!0||w===!1||xi(w)&&za(w)==g},Et.isBuffer=wl,Et.isDate=xk,Et.isElement=function(w){return xi(w)&&w.nodeType===1&&!Af(w)},Et.isEmpty=function(w){if(w==null)return!0;if(Ya(w)&&(ln(w)||typeof w=="string"||typeof w.splice=="function"||wl(w)||nc(w)||iu(w)))return!w.length;var R=Ra(w);if(R==O||R==Y)return!w.size;if(Ef(w))return!sm(w).length;for(var H in w)if(fn.call(w,H))return!1;return!0},Et.isEqual=function(w,R){return xf(w,R)},Et.isEqualWith=function(w,R,H){var Q=(H=typeof H=="function"?H:e)?H(w,R):e;return Q===e?xf(w,R,e,H):!!Q},Et.isError=Pm,Et.isFinite=function(w){return typeof w=="number"&&i2(w)},Et.isFunction=zo,Et.isInteger=xy,Et.isLength=Cd,Et.isMap=Sy,Et.isMatch=function(w,R){return w===R||am(w,R,km(R))},Et.isMatchWith=function(w,R,H){return H=typeof H=="function"?H:e,am(w,R,km(R),H)},Et.isNaN=function(w){return Ty(w)&&w!=+w},Et.isNative=function(w){if(W_(w))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return g2(w)},Et.isNil=function(w){return w==null},Et.isNull=function(w){return w===null},Et.isNumber=Ty,Et.isObject=bi,Et.isObjectLike=xi,Et.isPlainObject=Af,Et.isRegExp=Dm,Et.isSafeInteger=function(w){return xy(w)&&w>=-9007199254740991&&w<=h},Et.isSet=Ey,Et.isString=Ad,Et.isSymbol=ls,Et.isTypedArray=nc,Et.isUndefined=function(w){return w===e},Et.isWeakMap=function(w){return xi(w)&&Ra(w)==_},Et.isWeakSet=function(w){return xi(w)&&za(w)=="[object WeakSet]"},Et.join=function(w,R){return w==null?"":g_.call(w,R)},Et.kebabCase=Bk,Et.last=Os,Et.lastIndexOf=function(w,R,H){var Q=w==null?0:w.length;if(!Q)return-1;var pt=Q;return H!==e&&(pt=(pt=bn(H))<0?Yi(Q+pt,0):Ma(pt,Q-1)),R==R?function(Pt,Qt,oe){for(var ye=oe+1;ye--;)if(Pt[ye]===Qt)return ye;return ye}(w,R,pt):Ea(w,Xl,pt,!0)},Et.lowerCase=jk,Et.lowerFirst=zk,Et.lt=Sk,Et.lte=Tk,Et.max=function(w){return w&&w.length?ud(w,Xa,nm):e},Et.maxBy=function(w,R){return w&&w.length?ud(w,Yr(R,2),nm):e},Et.mean=function(w){return oo(w,Xa)},Et.meanBy=function(w,R){return oo(w,Yr(R,2))},Et.min=function(w){return w&&w.length?ud(w,Xa,om):e},Et.minBy=function(w,R){return w&&w.length?ud(w,Yr(R,2),om):e},Et.stubArray=Wm,Et.stubFalse=Vm,Et.stubObject=function(){return{}},Et.stubString=function(){return""},Et.stubTrue=function(){return!0},Et.multiply=i8,Et.nth=function(w,R){return w&&w.length?k2(w,bn(R)):e},Et.noConflict=function(){return Oi._===this&&(Oi._=f_),this},Et.noop=Hm,Et.now=Sd,Et.pad=function(w,R,H){w=Wn(w);var Q=(R=bn(R))?vi(w):0;if(!R||Q>=R)return w;var pt=(R-Q)/2;return gd(id(pt),H)+w+gd(nd(pt),H)},Et.padEnd=function(w,R,H){w=Wn(w);var Q=(R=bn(R))?vi(w):0;return R&&Q<R?w+gd(R-Q,H):w},Et.padStart=function(w,R,H){w=Wn(w);var Q=(R=bn(R))?vi(w):0;return R&&Q<R?gd(R-Q,H)+w:w},Et.parseInt=function(w,R,H){return H||R==null?R=0:R&&(R=+R),w_(Wn(w).replace(re,""),R||0)},Et.random=function(w,R,H){if(H&&typeof H!="boolean"&&Ua(w,R,H)&&(R=H=e),H===e&&(typeof R=="boolean"?(H=R,R=e):typeof w=="boolean"&&(H=w,w=e)),w===e&&R===e?(w=0,R=1):(w=Uo(w),R===e?(R=w,w=0):R=Uo(R)),w>R){var Q=w;w=R,R=Q}if(H||w%1||R%1){var pt=a2();return Ma(w+pt*(R-w+Vi("1e-"+((pt+"").length-1))),R)}return um(w,R)},Et.reduce=function(w,R,H){var Q=ln(w)?fl:lo,pt=arguments.length<3;return Q(w,Yr(R,4),H,pt,vl)},Et.reduceRight=function(w,R,H){var Q=ln(w)?pf:lo,pt=arguments.length<3;return Q(w,Yr(R,4),H,pt,h2)},Et.repeat=function(w,R,H){return R=(H?Ua(w,R,H):R===e)?1:bn(R),cm(Wn(w),R)},Et.replace=function(){var w=arguments,R=Wn(w[0]);return w.length<3?R:R.replace(w[1],w[2])},Et.result=function(w,R,H){var Q=-1,pt=(R=bl(R,w)).length;for(pt||(pt=1,w=e);++Q<pt;){var Pt=w==null?e:w[ho(R[Q])];Pt===e&&(Q=pt,Pt=H),w=zo(Pt)?Pt.call(w):Pt}return w},Et.round=a8,Et.runInContext=be,Et.sample=function(w){return(ln(w)?l2:P_)(w)},Et.size=function(w){if(w==null)return 0;if(Ya(w))return Ad(w)?vi(w):w.length;var R=Ra(w);return R==O||R==Y?w.size:sm(w).length},Et.snakeCase=Uk,Et.some=function(w,R,H){var Q=ln(w)?as:B_;return H&&Ua(w,R,H)&&(R=e),Q(w,Yr(R,3))},Et.sortedIndex=function(w,R){return hd(w,R)},Et.sortedIndexBy=function(w,R,H){return fm(w,R,Yr(H,2))},Et.sortedIndexOf=function(w,R){var H=w==null?0:w.length;if(H){var Q=hd(w,R);if(Q<H&&Gs(w[Q],R))return Q}return-1},Et.sortedLastIndex=function(w,R){return hd(w,R,!0)},Et.sortedLastIndexBy=function(w,R,H){return fm(w,R,Yr(H,2),!0)},Et.sortedLastIndexOf=function(w,R){if(w!=null&&w.length){var H=hd(w,R,!0)-1;if(Gs(w[H],R))return H}return-1},Et.startCase=Hk,Et.startsWith=function(w,R,H){return w=Wn(w),H=H==null?0:tu(bn(H),0,w.length),R=os(R),w.slice(H,H+R.length)==R},Et.subtract=s8,Et.sum=function(w){return w&&w.length?No(w,Xa):0},Et.sumBy=function(w,R){return w&&w.length?No(w,Yr(R,2)):0},Et.template=function(w,R,H){var Q=Et.templateSettings;H&&Ua(w,R,H)&&(R=e),w=Wn(w),R=Md({},R,Q,G2);var pt,Pt,Qt=Md({},R.imports,Q.imports,G2),oe=na(Qt),ye=Bt(Qt,oe),Be=0,ze=R.interpolate||Zt,or="__p += '",Nr=sn((R.escape||Zt).source+"|"+ze.source+"|"+(ze===mt?ot:Zt).source+"|"+(R.evaluate||Zt).source+"|$","g"),Fr="//# sourceURL="+(fn.call(R,"sourceURL")?(R.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ei+"]")+` |
|
|
`;w.replace(Nr,function(gr,Xr,kr,hn,rn,jn){return kr||(kr=hn),or+=w.slice(Be,jn).replace(Se,Jn),Xr&&(pt=!0,or+=`' + |
|
|
__e(`+Xr+`) + |
|
|
'`),rn&&(Pt=!0,or+=`'; |
|
|
`+rn+`; |
|
|
__p += '`),kr&&(or+=`' + |
|
|
((__t = (`+kr+`)) == null ? '' : __t) + |
|
|
'`),Be=jn+gr.length,gr}),or+=`'; |
|
|
`;var Wr=fn.call(R,"variable")&&R.variable;if(Wr){if(Tt.test(Wr))throw new fe("Invalid `variable` option passed into `_.template`")}else or=`with (obj) { |
|
|
`+or+` |
|
|
} |
|
|
`;or=(Pt?or.replace(St,""):or).replace(kt,"$1").replace(Mt,"$1;"),or="function("+(Wr||"obj")+`) { |
|
|
`+(Wr?"":`obj || (obj = {}); |
|
|
`)+"var __t, __p = ''"+(pt?", __e = _.escape":"")+(Pt?`, __j = Array.prototype.join; |
|
|
function print() { __p += __j.call(arguments, '') } |
|
|
`:`; |
|
|
`)+or+`return __p |
|
|
}`;var Ge=By(function(){return qe(oe,Fr+"return "+or).apply(e,ye)});if(Ge.source=or,Pm(Ge))throw Ge;return Ge},Et.times=function(w,R){if((w=bn(w))<1||w>h)return[];var H=p,Q=Ma(w,p);R=Yr(R),w-=p;for(var pt=pl(Q,R);++H<w;)R(H);return pt},Et.toFinite=Uo,Et.toInteger=bn,Et.toLength=Ay,Et.toLower=function(w){return Wn(w).toLowerCase()},Et.toNumber=Is,Et.toSafeInteger=function(w){return w?tu(bn(w),-9007199254740991,h):w===0?w:0},Et.toString=Wn,Et.toUpper=function(w){return Wn(w).toUpperCase()},Et.trim=function(w,R,H){if((w=Wn(w))&&(H||R===e))return Ku(w);if(!w||!(R=os(R)))return w;var Q=ni(w),pt=ni(R);return yl(Q,Ve(Q,pt),Cr(Q,pt)+1).join("")},Et.trimEnd=function(w,R,H){if((w=Wn(w))&&(H||R===e))return w.slice(0,ha(w)+1);if(!w||!(R=os(R)))return w;var Q=ni(w);return yl(Q,0,Cr(Q,ni(R))+1).join("")},Et.trimStart=function(w,R,H){if((w=Wn(w))&&(H||R===e))return w.replace(re,"");if(!w||!(R=os(R)))return w;var Q=ni(w);return yl(Q,Ve(Q,ni(R))).join("")},Et.truncate=function(w,R){var H=30,Q="...";if(bi(R)){var pt="separator"in R?R.separator:pt;H="length"in R?bn(R.length):H,Q="omission"in R?os(R.omission):Q}var Pt=(w=Wn(w)).length;if(ri(w)){var Qt=ni(w);Pt=Qt.length}if(H>=Pt)return w;var oe=H-vi(Q);if(oe<1)return Q;var ye=Qt?yl(Qt,0,oe).join(""):w.slice(0,oe);if(pt===e)return ye+Q;if(Qt&&(oe+=ye.length-oe),Dm(pt)){if(w.slice(oe).search(pt)){var Be,ze=ye;for(pt.global||(pt=sn(pt.source,Wn(ct.exec(pt))+"g")),pt.lastIndex=0;Be=pt.exec(ze);)var or=Be.index;ye=ye.slice(0,or===e?oe:or)}}else if(w.indexOf(os(pt),oe)!=oe){var Nr=ye.lastIndexOf(pt);Nr>-1&&(ye=ye.slice(0,Nr))}return ye+Q},Et.unescape=function(w){return(w=Wn(w))&&it.test(w)?w.replace(at,ss):w},Et.uniqueId=function(w){var R=++$s;return Wn(w)+R},Et.upperCase=Wk,Et.upperFirst=Bm,Et.each=vy,Et.eachRight=gy,Et.first=hy,Um(Et,($m={},co(Et,function(w,R){fn.call(Et.prototype,R)||($m[R]=w)}),$m),{chain:!1}),Et.VERSION="4.17.21",$i(["bind","bindKey","curry","curryRight","partial","partialRight"],function(w){Et[w].placeholder=Et}),$i(["drop","take"],function(w,R){An.prototype[w]=function(H){H=H===e?1:Yi(bn(H),0);var Q=this.__filtered__&&!R?new An(this):this.clone();return Q.__filtered__?Q.__takeCount__=Ma(H,Q.__takeCount__):Q.__views__.push({size:Ma(H,p),type:w+(Q.__dir__<0?"Right":"")}),Q},An.prototype[w+"Right"]=function(H){return this.reverse()[w](H).reverse()}}),$i(["filter","map","takeWhile"],function(w,R){var H=R+1,Q=H==1||H==3;An.prototype[w]=function(pt){var Pt=this.clone();return Pt.__iteratees__.push({iteratee:Yr(pt,3),type:H}),Pt.__filtered__=Pt.__filtered__||Q,Pt}}),$i(["head","last"],function(w,R){var H="take"+(R?"Right":"");An.prototype[w]=function(){return this[H](1).value()[0]}}),$i(["initial","tail"],function(w,R){var H="drop"+(R?"":"Right");An.prototype[w]=function(){return this.__filtered__?new An(this):this[H](1)}}),An.prototype.compact=function(){return this.filter(Xa)},An.prototype.find=function(w){return this.filter(w).head()},An.prototype.findLast=function(w){return this.reverse().find(w)},An.prototype.invokeMap=_n(function(w,R){return typeof w=="function"?new An(this):this.map(function(H){return kf(H,w,R)})}),An.prototype.reject=function(w){return this.filter(Ed(Yr(w)))},An.prototype.slice=function(w,R){w=bn(w);var H=this;return H.__filtered__&&(w>0||R<0)?new An(H):(w<0?H=H.takeRight(-w):w&&(H=H.drop(w)),R!==e&&(H=(R=bn(R))<0?H.dropRight(-R):H.take(R-w)),H)},An.prototype.takeRightWhile=function(w){return this.reverse().takeWhile(w).reverse()},An.prototype.toArray=function(){return this.take(p)},co(An.prototype,function(w,R){var H=/^(?:filter|find|map|reject)|While$/.test(R),Q=/^(?:head|last)$/.test(R),pt=Et[Q?"take"+(R=="last"?"Right":""):R],Pt=Q||/^find/.test(R);pt&&(Et.prototype[R]=function(){var Qt=this.__wrapped__,oe=Q?[1]:arguments,ye=Qt instanceof An,Be=oe[0],ze=ye||ln(Qt),or=function(Xr){var kr=pt.apply(Et,Es([Xr],oe));return Q&&Nr?kr[0]:kr};ze&&H&&typeof Be=="function"&&Be.length!=1&&(ye=ze=!1);var Nr=this.__chain__,Fr=!!this.__actions__.length,Wr=Pt&&!Nr,Ge=ye&&!Fr;if(!Pt&&ze){Qt=Ge?Qt:new An(this);var gr=w.apply(Qt,oe);return gr.__actions__.push({func:kd,args:[or],thisArg:e}),new As(gr,Nr)}return Wr&&Ge?w.apply(this,oe):(gr=this.thru(or),Wr?Q?gr.value()[0]:gr.value():gr)})}),$i(["pop","push","shift","sort","splice","unshift"],function(w){var R=gi[w],H=/^(?:push|sort|unshift)$/.test(w)?"tap":"thru",Q=/^(?:pop|shift)$/.test(w);Et.prototype[w]=function(){var pt=arguments;if(Q&&!this.__chain__){var Pt=this.value();return R.apply(ln(Pt)?Pt:[],pt)}return this[H](function(Qt){return R.apply(ln(Qt)?Qt:[],pt)})}}),co(An.prototype,function(w,R){var H=Et[R];if(H){var Q=H.name+"";fn.call(Ju,Q)||(Ju[Q]=[]),Ju[Q].push({name:R,func:H})}}),Ju[md(e,2).name]=[{name:"wrapper",func:e}],An.prototype.clone=function(){var w=new An(this.__wrapped__);return w.__actions__=Ga(this.__actions__),w.__dir__=this.__dir__,w.__filtered__=this.__filtered__,w.__iteratees__=Ga(this.__iteratees__),w.__takeCount__=this.__takeCount__,w.__views__=Ga(this.__views__),w},An.prototype.reverse=function(){if(this.__filtered__){var w=new An(this);w.__dir__=-1,w.__filtered__=!0}else(w=this.clone()).__dir__*=-1;return w},An.prototype.value=function(){var w=this.__wrapped__.value(),R=this.__dir__,H=ln(w),Q=R<0,pt=H?w.length:0,Pt=function(jn,jr,Zr){for(var Ki=-1,Pi=Zr.length;++Ki<Pi;){var Ha=Zr[Ki],ui=Ha.size;switch(Ha.type){case"drop":jn+=ui;break;case"dropRight":jr-=ui;break;case"take":jr=Ma(jr,jn+ui);break;case"takeRight":jn=Yi(jn,jr-ui)}}return{start:jn,end:jr}}(0,pt,this.__views__),Qt=Pt.start,oe=Pt.end,ye=oe-Qt,Be=Q?oe:Qt-1,ze=this.__iteratees__,or=ze.length,Nr=0,Fr=Ma(ye,this.__takeCount__);if(!H||!Q&&pt==ye&&Fr==ye)return R2(w,this.__actions__);var Wr=[];t:for(;ye--&&Nr<Fr;){for(var Ge=-1,gr=w[Be+=R];++Ge<or;){var Xr=ze[Ge],kr=Xr.iteratee,hn=Xr.type,rn=kr(gr);if(hn==2)gr=rn;else if(!rn){if(hn==1)continue t;break t}}Wr[Nr++]=gr}return Wr},Et.prototype.at=ok,Et.prototype.chain=function(){return my(this)},Et.prototype.commit=function(){return new As(this.value(),this.__chain__)},Et.prototype.next=function(){this.__values__===e&&(this.__values__=Cy(this.value()));var w=this.__index__>=this.__values__.length;return{done:w,value:w?e:this.__values__[this.__index__++]}},Et.prototype.plant=function(w){for(var R,H=this;H instanceof od;){var Q=ly(H);Q.__index__=0,Q.__values__=e,R?pt.__wrapped__=Q:R=Q;var pt=Q;H=H.__wrapped__}return pt.__wrapped__=w,R},Et.prototype.reverse=function(){var w=this.__wrapped__;if(w instanceof An){var R=w;return this.__actions__.length&&(R=new An(this)),(R=R.reverse()).__actions__.push({func:kd,args:[Rm],thisArg:e}),new As(R,this.__chain__)}return this.thru(Rm)},Et.prototype.toJSON=Et.prototype.valueOf=Et.prototype.value=function(){return R2(this.__wrapped__,this.__actions__)},Et.prototype.first=Et.prototype.head,mf&&(Et.prototype[mf]=function(){return this}),Et}();Vs?((Vs.exports=Ca)._=Ca,io._=Ca):Oi._=Ca}).call(pn)})(Ip,Ip.exports);var bh=Ip.exports;function M1(t){for(var r=(t=t.replace("#","")).match(/../g),e=0;e<3;e++)r[e]=parseInt(r[e],16);return r}function R1(t,r,e){for(var n=[t.toString(16),r.toString(16),e.toString(16)],a=0;a<3;a++)n[a].length==1&&(n[a]="0"+n[a]);return"#"+n.join("")}var O1={exports:{}};(function(t){t.exports=function(){var r=1e3,e=6e4,n=36e5,a="millisecond",o="second",s="minute",i="hour",u="day",l="week",f="month",c="quarter",h="year",d="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var I=["th","st","nd","rd"],_=A%100;return"["+A+(I[(_-20)%10]||I[_]||I[0])+"]"}},g=function(A,I,_){var x=String(A);return!x||x.length>=I?A:""+Array(I+1-x.length).join(_)+A},y={s:g,z:function(A){var I=-A.utcOffset(),_=Math.abs(I),x=Math.floor(_/60),T=_%60;return(I<=0?"+":"-")+g(x,2,"0")+":"+g(T,2,"0")},m:function A(I,_){if(I.date()<_.date())return-A(_,I);var x=12*(_.year()-I.year())+(_.month()-I.month()),T=I.clone().add(x,f),E=_-T<0,M=I.clone().add(x+(E?-1:1),f);return+(-(x+(_-T)/(E?T-M:M-T))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:f,y:h,w:l,d:u,D:d,h:i,m:s,s:o,ms:a,Q:c}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},k="en",S={};S[k]=b;var C="$isDayjsObject",O=function(A){return A instanceof z||!(!A||!A[C])},L=function A(I,_,x){var T;if(!I)return k;if(typeof I=="string"){var E=I.toLowerCase();S[E]&&(T=E),_&&(S[E]=_,T=E);var M=I.split("-");if(!T&&M.length>1)return A(M[0])}else{var F=I.name;S[F]=I,T=F}return!x&&T&&(k=T),T||!x&&k},j=function(A,I){if(O(A))return A.clone();var _=typeof I=="object"?I:{};return _.date=A,_.args=arguments,new z(_)},U=y;U.l=L,U.i=O,U.w=function(A,I){return j(A,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var z=function(){function A(_){this.$L=L(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[C]=!0}var I=A.prototype;return I.parse=function(_){this.$d=function(x){var T=x.date,E=x.utc;if(T===null)return new Date(NaN);if(U.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var M=T.match(m);if(M){var F=M[2]-1||0,P=(M[7]||"0").substring(0,3);return E?new Date(Date.UTC(M[1],F,M[3]||1,M[4]||0,M[5]||0,M[6]||0,P)):new Date(M[1],F,M[3]||1,M[4]||0,M[5]||0,M[6]||0,P)}}return new Date(T)}(_),this.init()},I.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},I.$utils=function(){return U},I.isValid=function(){return this.$d.toString()!==p},I.isSame=function(_,x){var T=j(_);return this.startOf(x)<=T&&T<=this.endOf(x)},I.isAfter=function(_,x){return j(_)<this.startOf(x)},I.isBefore=function(_,x){return this.endOf(x)<j(_)},I.$g=function(_,x,T){return U.u(_)?this[x]:this.set(T,_)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(_,x){var T=this,E=!!U.u(x)||x,M=U.p(_),F=function(kt,Mt){var at=U.w(T.$u?Date.UTC(T.$y,Mt,kt):new Date(T.$y,Mt,kt),T);return E?at:at.endOf(u)},P=function(kt,Mt){return U.w(T.toDate()[kt].apply(T.toDate("s"),(E?[0,0,0,0]:[23,59,59,999]).slice(Mt)),T)},W=this.$W,N=this.$M,q=this.$D,nt="set"+(this.$u?"UTC":"");switch(M){case h:return E?F(1,0):F(31,11);case f:return E?F(1,N):F(0,N+1);case l:var J=this.$locale().weekStart||0,St=(W<J?W+7:W)-J;return F(E?q-St:q+(6-St),N);case u:case d:return P(nt+"Hours",0);case i:return P(nt+"Minutes",1);case s:return P(nt+"Seconds",2);case o:return P(nt+"Milliseconds",3);default:return this.clone()}},I.endOf=function(_){return this.startOf(_,!1)},I.$set=function(_,x){var T,E=U.p(_),M="set"+(this.$u?"UTC":""),F=(T={},T[u]=M+"Date",T[d]=M+"Date",T[f]=M+"Month",T[h]=M+"FullYear",T[i]=M+"Hours",T[s]=M+"Minutes",T[o]=M+"Seconds",T[a]=M+"Milliseconds",T)[E],P=E===u?this.$D+(x-this.$W):x;if(E===f||E===h){var W=this.clone().set(d,1);W.$d[F](P),W.init(),this.$d=W.set(d,Math.min(this.$D,W.daysInMonth())).$d}else F&&this.$d[F](P);return this.init(),this},I.set=function(_,x){return this.clone().$set(_,x)},I.get=function(_){return this[U.p(_)]()},I.add=function(_,x){var T,E=this;_=Number(_);var M=U.p(x),F=function(N){var q=j(E);return U.w(q.date(q.date()+Math.round(N*_)),E)};if(M===f)return this.set(f,this.$M+_);if(M===h)return this.set(h,this.$y+_);if(M===u)return F(1);if(M===l)return F(7);var P=(T={},T[s]=e,T[i]=n,T[o]=r,T)[M]||1,W=this.$d.getTime()+_*P;return U.w(W,this)},I.subtract=function(_,x){return this.add(-1*_,x)},I.format=function(_){var x=this,T=this.$locale();if(!this.isValid())return T.invalidDate||p;var E=_||"YYYY-MM-DDTHH:mm:ssZ",M=U.z(this),F=this.$H,P=this.$m,W=this.$M,N=T.weekdays,q=T.months,nt=T.meridiem,J=function(Mt,at,K,it){return Mt&&(Mt[at]||Mt(x,E))||K[at].slice(0,it)},St=function(Mt){return U.s(F%12||12,Mt,"0")},kt=nt||function(Mt,at,K){var it=Mt<12?"AM":"PM";return K?it.toLowerCase():it};return E.replace(v,function(Mt,at){return at||function(K){switch(K){case"YY":return String(x.$y).slice(-2);case"YYYY":return U.s(x.$y,4,"0");case"M":return W+1;case"MM":return U.s(W+1,2,"0");case"MMM":return J(T.monthsShort,W,q,3);case"MMMM":return J(q,W);case"D":return x.$D;case"DD":return U.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return J(T.weekdaysMin,x.$W,N,2);case"ddd":return J(T.weekdaysShort,x.$W,N,3);case"dddd":return N[x.$W];case"H":return String(F);case"HH":return U.s(F,2,"0");case"h":return St(1);case"hh":return St(2);case"a":return kt(F,P,!0);case"A":return kt(F,P,!1);case"m":return String(P);case"mm":return U.s(P,2,"0");case"s":return String(x.$s);case"ss":return U.s(x.$s,2,"0");case"SSS":return U.s(x.$ms,3,"0");case"Z":return M}return null}(Mt)||M.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(_,x,T){var E,M=this,F=U.p(x),P=j(_),W=(P.utcOffset()-this.utcOffset())*e,N=this-P,q=function(){return U.m(M,P)};switch(F){case h:E=q()/12;break;case f:E=q();break;case c:E=q()/3;break;case l:E=(N-W)/6048e5;break;case u:E=(N-W)/864e5;break;case i:E=N/n;break;case s:E=N/e;break;case o:E=N/r;break;default:E=N}return T?E:U.a(E)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return S[this.$L]},I.locale=function(_,x){if(!_)return this.$L;var T=this.clone(),E=L(_,x,!0);return E&&(T.$L=E),T},I.clone=function(){return U.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},A}(),Y=z.prototype;return j.prototype=Y,[["$ms",a],["$s",o],["$m",s],["$H",i],["$W",u],["$M",f],["$y",h],["$D",d]].forEach(function(A){Y[A[1]]=function(I){return this.$g(I,A[0],A[1])}}),j.extend=function(A,I){return A.$i||(A(I,z,j),A.$i=!0),j},j.locale=L,j.isDayjs=O,j.unix=function(A){return j(1e3*A)},j.en=S[k],j.Ls=S,j.p={},j}()})(O1);const Tu=h1(O1.exports);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Np={version:"0.18.5"},I1=1252,Yw=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Pp={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Dp=function(t){Yw.indexOf(t)!=-1&&(I1=Pp[0]=t)},zs=function(t){Dp(t)};function Fp(){zs(1200),Dp(1252)}function N1(t){for(var r=[],e=0,n=t.length;e<n;++e)r[e]=t.charCodeAt(e);return r}function P1(t){for(var r=[],e=0;e<t.length>>1;++e)r[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return r.join("")}var Lp,Pc=function(t){var r=t.charCodeAt(0),e=t.charCodeAt(1);return r==255&&e==254?function(n){for(var a=[],o=0;o<n.length>>1;++o)a[o]=String.fromCharCode(n.charCodeAt(2*o)+(n.charCodeAt(2*o+1)<<8));return a.join("")}(t.slice(2)):r==254&&e==255?P1(t.slice(2)):r==65279?t.slice(1):t},yh=function(t){return String.fromCharCode(t)},D1=function(t){return String.fromCharCode(t)},Qo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Dc(t){for(var r="",e=0,n=0,a=0,o=0,s=0,i=0,u=0,l=0;l<t.length;)o=(e=t.charCodeAt(l++))>>2,s=(3&e)<<4|(n=t.charCodeAt(l++))>>4,i=(15&n)<<2|(a=t.charCodeAt(l++))>>6,u=63&a,isNaN(n)?i=u=64:isNaN(a)&&(u=64),r+=Qo.charAt(o)+Qo.charAt(s)+Qo.charAt(i)+Qo.charAt(u);return r}function es(t){var r="",e=0,n=0,a=0,o=0,s=0,i=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<t.length;)e=Qo.indexOf(t.charAt(u++))<<2|(o=Qo.indexOf(t.charAt(u++)))>>4,r+=String.fromCharCode(e),n=(15&o)<<4|(s=Qo.indexOf(t.charAt(u++)))>>2,s!==64&&(r+=String.fromCharCode(n)),a=(3&s)<<6|(i=Qo.indexOf(t.charAt(u++))),i!==64&&(r+=String.fromCharCode(a));return r}var wn=function(){return typeof Buffer<"u"&&typeof process<"u"&&process.versions!==void 0&&!!process.versions.node}(),xo=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(r,e){return e?new Buffer(r,e):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function tl(t){return wn?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function F1(t){return wn?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var rs=function(t){return wn?xo(t,"binary"):t.split("").map(function(r){return 255&r.charCodeAt(0)})};function wh(t){if(typeof ArrayBuffer>"u")return rs(t);for(var r=new ArrayBuffer(t.length),e=new Uint8Array(r),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return r}function el(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],e=0;e<t.length;++e)r[e]=String.fromCharCode(t[e]);return r.join("")}function Bp(t){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(t instanceof ArrayBuffer)return Bp(new Uint8Array(t));for(var r=new Array(t.length),e=0;e<t.length;++e)r[e]=t[e];return r}var Ji=wn?function(t){return Buffer.concat(t.map(function(r){return Buffer.isBuffer(r)?r:xo(r)}))}:function(t){if(typeof Uint8Array<"u"){var r=0,e=0;for(r=0;r<t.length;++r)e+=t[r].length;var n=new Uint8Array(e),a=0;for(r=0,e=0;r<t.length;e+=a,++r)if(a=t[r].length,t[r]instanceof Uint8Array)n.set(t[r],e);else{if(typeof t[r]=="string")throw"wtf";n.set(new Uint8Array(t[r]),e)}return n}return[].concat.apply([],t.map(function(o){return Array.isArray(o)?o:[].slice.call(o)}))},Da=/\u0000/g,Fc=/[\u0001-\u0006]/g;function Eu(t){for(var r="",e=t.length-1;e>=0;)r+=t.charAt(e--);return r}function Us(t,r){var e=""+t;return e.length>=r?e:yi("0",r-e.length)+e}function jp(t,r){var e=""+t;return e.length>=r?e:yi(" ",r-e.length)+e}function _h(t,r){var e=""+t;return e.length>=r?e:e+yi(" ",r-e.length)}var L1=Math.pow(2,32);function Cu(t,r){return t>L1||t<-L1?function(e,n){var a=""+Math.round(e);return a.length>=n?a:yi("0",n-a.length)+a}(t,r):function(e,n){var a=""+e;return a.length>=n?a:yi("0",n-a.length)+a}(Math.round(t),r)}function kh(t,r){return r=r||0,t.length>=7+r&&(32|t.charCodeAt(r))==103&&(32|t.charCodeAt(r+1))==101&&(32|t.charCodeAt(r+2))==110&&(32|t.charCodeAt(r+3))==101&&(32|t.charCodeAt(r+4))==114&&(32|t.charCodeAt(r+5))==97&&(32|t.charCodeAt(r+6))==108}var B1=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],zp=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Qr={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},j1={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Kw={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function xh(t,r,e){for(var n=t<0?-1:1,a=t*n,o=0,s=1,i=0,u=1,l=0,f=0,c=Math.floor(a);l<r&&(i=(c=Math.floor(a))*s+o,f=c*l+u,!(a-c<5e-8));)a=1/(a-c),o=s,s=i,u=l,l=f;if(f>r&&(l>r?(f=u,i=o):(f=l,i=s)),!e)return[0,n*i,f];var h=Math.floor(n*i/f);return[h,n*i-h*f,f]}function Rl(t,r,e){if(t>2958465||t<0)return null;var n=0|t,a=Math.floor(86400*(t-n)),o=0,s=[],i={D:n,T:a,u:86400*(t-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(i.u)<1e-6&&(i.u=0),r&&r.date1904&&(n+=1462),i.u>.9999&&(i.u=0,++a==86400&&(i.T=a=0,++n,++i.D)),n===60)s=e?[1317,10,29]:[1900,2,29],o=3;else if(n===0)s=e?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var u=new Date(1900,0,1);u.setDate(u.getDate()+n-1),s=[u.getFullYear(),u.getMonth()+1,u.getDate()],o=u.getDay(),n<60&&(o=(o+6)%7),e&&(o=function(l,f){f[0]-=581;var c=l.getDay();return l<60&&(c=(c+6)%7),c}(u,s))}return i.y=s[0],i.m=s[1],i.d=s[2],i.S=a%60,a=Math.floor(a/60),i.M=a%60,a=Math.floor(a/60),i.H=a,i.q=o,i}var z1=new Date(1899,11,31,0,0,0),Xw=z1.getTime(),Zw=new Date(1900,2,1,0,0,0);function U1(t,r){var e=t.getTime();return r?e-=1262304e5:t>=Zw&&(e+=864e5),(e-(Xw+6e4*(t.getTimezoneOffset()-z1.getTimezoneOffset())))/864e5}function Up(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Lc(t){var r,e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return r=e>=-4&&e<=-1?t.toPrecision(10+e):Math.abs(e)<=9?function(n){var a=n<0?12:11,o=Up(n.toFixed(12));return o.length<=a||(o=n.toPrecision(10)).length<=a?o:n.toExponential(5)}(t):e===10?t.toFixed(10).substr(0,12):function(n){var a=Up(n.toFixed(11));return a.length>(n<0?12:11)||a==="0"||a==="-0"?n.toPrecision(6):a}(t),Up(function(n){return n.indexOf("E")==-1?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(r.toUpperCase()))}function Ol(t,r){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):Lc(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return ms(14,U1(t,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+t)}function Jw(t,r,e,n){var a,o="",s=0,i=0,u=e.y,l=0;switch(t){case 98:u=e.y+543;case 121:switch(r.length){case 1:case 2:a=u%100,l=2;break;default:a=u%1e4,l=4}break;case 109:switch(r.length){case 1:case 2:a=e.m,l=r.length;break;case 3:return zp[e.m-1][1];case 5:return zp[e.m-1][0];default:return zp[e.m-1][2]}break;case 100:switch(r.length){case 1:case 2:a=e.d,l=r.length;break;case 3:return B1[e.q][0];default:return B1[e.q][1]}break;case 104:switch(r.length){case 1:case 2:a=1+(e.H+11)%12,l=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:a=e.H,l=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:a=e.M,l=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return e.u!==0||r!="s"&&r!="ss"?(i=n>=2?n===3?1e3:100:n===1?10:1,(s=Math.round(i*(e.S+e.u)))>=60*i&&(s=0),r==="s"?s===0?"0":""+s/i:(o=Us(s,2+n),r==="ss"?o.substr(0,2):"."+o.substr(2,r.length-1))):Us(e.S,r.length);case 90:switch(r){case"[h]":case"[hh]":a=24*e.D+e.H;break;case"[m]":case"[mm]":a=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":a=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+r}l=r.length===3?1:2;break;case 101:a=u,l=1}return l>0?Us(a,l):""}function rl(t){if(t.length<=3)return t;for(var r=t.length%3,e=t.substr(0,r);r!=t.length;r+=3)e+=(e.length>0?",":"")+t.substr(r,3);return e}var H1=/%/g;function W1(t,r){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+W1(t,-r);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var o=Math.floor(Math.log(r)*Math.LOG10E)%a;if(o<0&&(o+=a),(e=(r/Math.pow(10,o)).toPrecision(n+1+(a+o)%a)).indexOf("e")===-1){var s=Math.floor(Math.log(r)*Math.LOG10E);for(e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o);e.substr(0,2)==="0.";)e=(e=e.charAt(0)+e.substr(2,a)+"."+e.substr(2+a)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(i,u,l,f){return u+l+f.substr(0,(a+o)%a)+"."+f.substr(o)+"E"})}else e=r.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var V1=/# (\?+)( ?)\/( ?)(\d+)/,$1=/^#*0*\.([0#]+)/,q1=/\).*[0#]/,G1=/\(###\) ###\\?-####/;function Fa(t){for(var r,e="",n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function Y1(t,r){var e=Math.pow(10,r);return""+Math.round(t*e)/e}function K1(t,r){var e=t-Math.floor(t),n=Math.pow(10,r);return r<(""+Math.round(e*n)).length?0:Math.round(e*n)}function ps(t,r,e){if(t.charCodeAt(0)===40&&!r.match(q1)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?ps("n",n,e):"("+ps("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return function(p,m,v){for(var b=m.length-1;m.charCodeAt(b-1)===44;)--b;return So(p,m.substr(0,b),v/Math.pow(10,3*(m.length-b)))}(t,r,e);if(r.indexOf("%")!==-1)return function(p,m,v){var b=m.replace(H1,""),g=m.length-b.length;return So(p,b,v*Math.pow(10,2*g))+yi("%",g)}(t,r,e);if(r.indexOf("E")!==-1)return W1(r,e);if(r.charCodeAt(0)===36)return"$"+ps(t,r.substr(r.charAt(1)==" "?2:1),e);var a,o,s,i,u=Math.abs(e),l=e<0?"-":"";if(r.match(/^00+$/))return l+Cu(u,r.length);if(r.match(/^[#?]+$/))return(a=Cu(e,0))==="0"&&(a=""),a.length>r.length?a:Fa(r.substr(0,r.length-a.length))+a;if(o=r.match(V1))return function(p,m,v){var b=parseInt(p[4],10),g=Math.round(m*b),y=Math.floor(g/b),k=g-y*b,S=b;return v+(y===0?"":""+y)+" "+(k===0?yi(" ",p[1].length+1+p[4].length):jp(k,p[1].length)+p[2]+"/"+p[3]+Us(S,p[4].length))}(o,u,l);if(r.match(/^#+0+$/))return l+Cu(u,r.length-r.indexOf("0"));if(o=r.match($1))return a=Y1(e,o[1].length).replace(/^([^\.]+)$/,"$1."+Fa(o[1])).replace(/\.$/,"."+Fa(o[1])).replace(/\.(\d*)$/,function(p,m){return"."+m+yi("0",Fa(o[1]).length-m.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return l+Y1(u,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return l+rl(Cu(u,0));if(o=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+ps(t,r,-e):rl(""+(Math.floor(e)+function(p,m){return m<(""+Math.round((p-Math.floor(p))*Math.pow(10,m))).length?1:0}(e,o[1].length)))+"."+Us(K1(e,o[1].length),o[1].length);if(o=r.match(/^#,#*,#0/))return ps(t,r.replace(/^#,#*,/,""),e);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Eu(ps(t,r.replace(/[\\-]/g,""),e)),s=0,Eu(Eu(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return s<a.length?a.charAt(s++):p==="0"?"0":""}));if(r.match(G1))return"("+(a=ps(t,"##########",e)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(o=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(o[4].length,7),i=xh(u,Math.pow(10,s)-1,!1),a=""+l,(f=So("n",o[1],i[1])).charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+o[2]+"/"+o[3],(f=_h(i[2],s)).length<o[4].length&&(f=Fa(o[4].substr(o[4].length-f.length))+f),a+=f;if(o=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(o[1].length,o[4].length),7),l+((i=xh(u,Math.pow(10,s)-1,!0))[0]||(i[1]?"":"0"))+" "+(i[1]?jp(i[1],s)+o[2]+"/"+o[3]+_h(i[2],s):yi(" ",2*s+1+o[2].length+o[3].length));if(o=r.match(/^[#0?]+$/))return a=Cu(e,0),r.length<=a.length?a:Fa(r.substr(0,r.length-a.length))+a;if(o=r.match(/^([#0?]+)\.([#0]+)$/)){a=""+e.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var c=r.indexOf(".")-s,h=r.length-a.length-c;return Fa(r.substr(0,c)+a+r.substr(r.length-h))}if(o=r.match(/^00,000\.([#0]*0)$/))return s=K1(e,o[1].length),e<0?"-"+ps(t,r,-e):rl(function(p){return p<2147483647&&p>-2147483648?""+(p>=0?0|p:p-1|0):""+Math.floor(p)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(p){return"00,"+(p.length<3?Us(0,3-p.length):"")+p})+"."+Us(s,o[1].length);switch(r){case"###,##0.00":return ps(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var d=rl(Cu(u,0));return d!=="0"?l+d:"";case"###,###.00":return ps(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return ps(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function X1(t,r){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+X1(t,-r);var a=t.indexOf(".");a===-1&&(a=t.indexOf("E"));var o=Math.floor(Math.log(r)*Math.LOG10E)%a;if(o<0&&(o+=a),!(e=(r/Math.pow(10,o)).toPrecision(n+1+(a+o)%a)).match(/[Ee]/)){var s=Math.floor(Math.log(r)*Math.LOG10E);e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(s-e.length+o):e+="E+"+(s-o),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(i,u,l,f){return u+l+f.substr(0,(a+o)%a)+"."+f.substr(o)+"E"})}else e=r.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function Zs(t,r,e){if(t.charCodeAt(0)===40&&!r.match(q1)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Zs("n",n,e):"("+Zs("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return function(p,m,v){for(var b=m.length-1;m.charCodeAt(b-1)===44;)--b;return So(p,m.substr(0,b),v/Math.pow(10,3*(m.length-b)))}(t,r,e);if(r.indexOf("%")!==-1)return function(p,m,v){var b=m.replace(H1,""),g=m.length-b.length;return So(p,b,v*Math.pow(10,2*g))+yi("%",g)}(t,r,e);if(r.indexOf("E")!==-1)return X1(r,e);if(r.charCodeAt(0)===36)return"$"+Zs(t,r.substr(r.charAt(1)==" "?2:1),e);var a,o,s,i,u=Math.abs(e),l=e<0?"-":"";if(r.match(/^00+$/))return l+Us(u,r.length);if(r.match(/^[#?]+$/))return a=""+e,e===0&&(a=""),a.length>r.length?a:Fa(r.substr(0,r.length-a.length))+a;if(o=r.match(V1))return function(p,m,v){return v+(m===0?"":""+m)+yi(" ",p[1].length+2+p[4].length)}(o,u,l);if(r.match(/^#+0+$/))return l+Us(u,r.length-r.indexOf("0"));if(o=r.match($1))return a=(a=(""+e).replace(/^([^\.]+)$/,"$1."+Fa(o[1])).replace(/\.$/,"."+Fa(o[1]))).replace(/\.(\d*)$/,function(p,m){return"."+m+yi("0",Fa(o[1]).length-m.length)}),r.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),o=r.match(/^(0*)\.(#*)$/))return l+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=r.match(/^#{1,3},##0(\.?)$/))return l+rl(""+u);if(o=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Zs(t,r,-e):rl(""+e)+"."+yi("0",o[1].length);if(o=r.match(/^#,#*,#0/))return Zs(t,r.replace(/^#,#*,/,""),e);if(o=r.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Eu(Zs(t,r.replace(/[\\-]/g,""),e)),s=0,Eu(Eu(r.replace(/\\/g,"")).replace(/[0#]/g,function(p){return s<a.length?a.charAt(s++):p==="0"?"0":""}));if(r.match(G1))return"("+(a=Zs(t,"##########",e)).substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var f="";if(o=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(o[4].length,7),i=xh(u,Math.pow(10,s)-1,!1),a=""+l,(f=So("n",o[1],i[1])).charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),a+=f+o[2]+"/"+o[3],(f=_h(i[2],s)).length<o[4].length&&(f=Fa(o[4].substr(o[4].length-f.length))+f),a+=f;if(o=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(o[1].length,o[4].length),7),l+((i=xh(u,Math.pow(10,s)-1,!0))[0]||(i[1]?"":"0"))+" "+(i[1]?jp(i[1],s)+o[2]+"/"+o[3]+_h(i[2],s):yi(" ",2*s+1+o[2].length+o[3].length));if(o=r.match(/^[#0?]+$/))return a=""+e,r.length<=a.length?a:Fa(r.substr(0,r.length-a.length))+a;if(o=r.match(/^([#0]+)\.([#0]+)$/)){a=""+e.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var c=r.indexOf(".")-s,h=r.length-a.length-c;return Fa(r.substr(0,c)+a+r.substr(r.length-h))}if(o=r.match(/^00,000\.([#0]*0)$/))return e<0?"-"+Zs(t,r,-e):rl(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(p){return"00,"+(p.length<3?Us(0,3-p.length):"")+p})+"."+Us(0,o[1].length);switch(r){case"###,###":case"##,###":case"#,###":var d=rl(""+u);return d!=="0"?l+d:"";default:if(r.match(/\.[0#?]*$/))return Zs(t,r.slice(0,r.lastIndexOf(".")),e)+Fa(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function So(t,r,e){return(0|e)===e?Zs(t,r,e):ps(t,r,e)}var Z1=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Au(t){for(var r=0,e="",n="";r<t.length;)switch(e=t.charAt(r)){case"G":kh(t,r)&&(r+=6),r++;break;case'"':for(;t.charCodeAt(++r)!==34&&r<t.length;);++r;break;case"\\":case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(t.charAt(r+1)==="1"||t.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(r,3).toUpperCase()==="A/P"||t.substr(r,5).toUpperCase()==="AM/PM"||t.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=e;t.charAt(r++)!=="]"&&r<t.length;)n+=t.charAt(r);if(n.match(Z1))return!0;break;case".":case"0":case"#":for(;r<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++r))>-1||e=="\\"&&t.charAt(r+1)=="-"&&"0#".indexOf(t.charAt(r+2))>-1););break;case"?":for(;t.charAt(++r)===e;);break;case"*":++r,t.charAt(r)!=" "&&t.charAt(r)!="*"||++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<t.length&&"0123456789".indexOf(t.charAt(++r))>-1;);break;default:++r}return!1}var J1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Q1(t,r){if(r==null)return!1;var e=parseFloat(r[2]);switch(r[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function Qw(t,r){var e=function(u){for(var l=[],f=!1,c=0,h=0;c<u.length;++c)switch(u.charCodeAt(c)){case 34:f=!f;break;case 95:case 42:case 92:++c;break;case 59:l[l.length]=u.substr(h,c-h),h=c+1}if(l[l.length]=u.substr(h),f===!0)throw new Error("Format |"+u+"| unterminated string ");return l}(t),n=e.length,a=e[n-1].indexOf("@");if(n<4&&a>-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if(typeof r!="number")return[4,e.length===4||a>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=a>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=a>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=a>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var o=r>0?e[0]:r<0?e[1]:e[2];if(e[0].indexOf("[")===-1&&e[1].indexOf("[")===-1)return[n,o];if(e[0].match(/\[[=<>]/)!=null||e[1].match(/\[[=<>]/)!=null){var s=e[0].match(J1),i=e[1].match(J1);return Q1(r,s)?[n,e[0]]:Q1(r,i)?[n,e[1]]:[n,e[s!=null&&i!=null?2:1]]}return[n,o]}function ms(t,r,e){e==null&&(e={});var n="";switch(typeof t){case"string":n=t=="m/d/yy"&&e.dateNF?e.dateNF:t;break;case"number":(n=t==14&&e.dateNF?e.dateNF:(e.table!=null?e.table:Qr)[t])==null&&(n=e.table&&e.table[j1[t]]||Qr[j1[t]]),n==null&&(n=Kw[t]||"General")}if(kh(n,0))return Ol(r,e);r instanceof Date&&(r=U1(r,e.date1904));var a=Qw(n,r);if(kh(a[1]))return Ol(r,e);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return function(o,s,i,u){for(var l,f,c,h=[],d="",p=0,m="",v="t",b="H";p<o.length;)switch(m=o.charAt(p)){case"G":if(!kh(o,p))throw new Error("unrecognized character "+m+" in "+o);h[h.length]={t:"G",v:"General"},p+=7;break;case'"':for(d="";(c=o.charCodeAt(++p))!==34&&p<o.length;)d+=String.fromCharCode(c);h[h.length]={t:"t",v:d},++p;break;case"\\":var g=o.charAt(++p),y=g==="("||g===")"?g:"t";h[h.length]={t:y,v:g},++p;break;case"_":h[h.length]={t:"t",v:" "},p+=2;break;case"@":h[h.length]={t:"T",v:s},++p;break;case"B":case"b":if(o.charAt(p+1)==="1"||o.charAt(p+1)==="2"){if(l==null&&(l=Rl(s,i,o.charAt(p+1)==="2"))==null)return"";h[h.length]={t:"X",v:o.substr(p,2)},v=m,p+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":m=m.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(s<0||l==null&&(l=Rl(s,i))==null)return"";for(d=m;++p<o.length&&o.charAt(p).toLowerCase()===m;)d+=m;m==="m"&&v.toLowerCase()==="h"&&(m="M"),m==="h"&&(m=b),h[h.length]={t:m,v:d},v=m;break;case"A":case"a":case"上":var k={t:m,v:m};if(l==null&&(l=Rl(s,i)),o.substr(p,3).toUpperCase()==="A/P"?(l!=null&&(k.v=l.H>=12?"P":"A"),k.t="T",b="h",p+=3):o.substr(p,5).toUpperCase()==="AM/PM"?(l!=null&&(k.v=l.H>=12?"PM":"AM"),k.t="T",p+=5,b="h"):o.substr(p,5).toUpperCase()==="上午/下午"?(l!=null&&(k.v=l.H>=12?"下午":"上午"),k.t="T",p+=5,b="h"):(k.t="t",++p),l==null&&k.t==="T")return"";h[h.length]=k,v=m;break;case"[":for(d=m;o.charAt(p++)!=="]"&&p<o.length;)d+=o.charAt(p);if(d.slice(-1)!=="]")throw'unterminated "[" block: |'+d+"|";if(d.match(Z1)){if(l==null&&(l=Rl(s,i))==null)return"";h[h.length]={t:"Z",v:d.toLowerCase()},v=d.charAt(1)}else d.indexOf("$")>-1&&(d=(d.match(/\$([^-\[\]]*)/)||[])[1]||"$",Au(o)||(h[h.length]={t:"t",v:d}));break;case".":if(l!=null){for(d=m;++p<o.length&&(m=o.charAt(p))==="0";)d+=m;h[h.length]={t:"s",v:d};break}case"0":case"#":for(d=m;++p<o.length&&"0#?.,E+-%".indexOf(m=o.charAt(p))>-1;)d+=m;h[h.length]={t:"n",v:d};break;case"?":for(d=m;o.charAt(++p)===m;)d+=m;h[h.length]={t:m,v:d},v=m;break;case"*":++p,o.charAt(p)!=" "&&o.charAt(p)!="*"||++p;break;case"(":case")":h[h.length]={t:u===1?"t":m,v:m},++p;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(d=m;p<o.length&&"0123456789".indexOf(o.charAt(++p))>-1;)d+=o.charAt(p);h[h.length]={t:"D",v:d};break;case" ":h[h.length]={t:m,v:m},++p;break;case"$":h[h.length]={t:"t",v:"$"},++p;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(m)===-1)throw new Error("unrecognized character "+m+" in "+o);h[h.length]={t:"t",v:m},++p}var S,C=0,O=0;for(p=h.length-1,v="t";p>=0;--p)switch(h[p].t){case"h":case"H":h[p].t=b,v="h",C<1&&(C=1);break;case"s":(S=h[p].v.match(/\.0+$/))&&(O=Math.max(O,S[0].length-1)),C<3&&(C=3);case"d":case"y":case"M":case"e":v=h[p].t;break;case"m":v==="s"&&(h[p].t="M",C<2&&(C=2));break;case"X":break;case"Z":C<1&&h[p].v.match(/[Hh]/)&&(C=1),C<2&&h[p].v.match(/[Mm]/)&&(C=2),C<3&&h[p].v.match(/[Ss]/)&&(C=3)}switch(C){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M)}var L,j="";for(p=0;p<h.length;++p)switch(h[p].t){case"t":case"T":case" ":case"D":break;case"X":h[p].v="",h[p].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":h[p].v=Jw(h[p].t.charCodeAt(0),h[p].v,l,O),h[p].t="t";break;case"n":case"?":for(L=p+1;h[L]!=null&&((m=h[L].t)==="?"||m==="D"||(m===" "||m==="t")&&h[L+1]!=null&&(h[L+1].t==="?"||h[L+1].t==="t"&&h[L+1].v==="/")||h[p].t==="("&&(m===" "||m==="n"||m===")")||m==="t"&&(h[L].v==="/"||h[L].v===" "&&h[L+1]!=null&&h[L+1].t=="?"));)h[p].v+=h[L].v,h[L]={v:"",t:";"},++L;j+=h[p].v,p=L-1;break;case"G":h[p].t="t",h[p].v=Ol(s,i)}var U,z,Y="";if(j.length>0){j.charCodeAt(0)==40?(U=s<0&&j.charCodeAt(0)===45?-s:s,z=So("n",j,U)):(z=So("n",j,U=s<0&&u>1?-s:s),U<0&&h[0]&&h[0].t=="t"&&(z=z.substr(1),h[0].v="-"+h[0].v)),L=z.length-1;var A=h.length;for(p=0;p<h.length;++p)if(h[p]!=null&&h[p].t!="t"&&h[p].v.indexOf(".")>-1){A=p;break}var I=h.length;if(A===h.length&&z.indexOf("E")===-1){for(p=h.length-1;p>=0;--p)h[p]!=null&&"n?".indexOf(h[p].t)!==-1&&(L>=h[p].v.length-1?(L-=h[p].v.length,h[p].v=z.substr(L+1,h[p].v.length)):L<0?h[p].v="":(h[p].v=z.substr(0,L+1),L=-1),h[p].t="t",I=p);L>=0&&I<h.length&&(h[I].v=z.substr(0,L+1)+h[I].v)}else if(A!==h.length&&z.indexOf("E")===-1){for(L=z.indexOf(".")-1,p=A;p>=0;--p)if(h[p]!=null&&"n?".indexOf(h[p].t)!==-1){for(f=h[p].v.indexOf(".")>-1&&p===A?h[p].v.indexOf(".")-1:h[p].v.length-1,Y=h[p].v.substr(f+1);f>=0;--f)L>=0&&(h[p].v.charAt(f)==="0"||h[p].v.charAt(f)==="#")&&(Y=z.charAt(L--)+Y);h[p].v=Y,h[p].t="t",I=p}for(L>=0&&I<h.length&&(h[I].v=z.substr(0,L+1)+h[I].v),L=z.indexOf(".")+1,p=A;p<h.length;++p)if(h[p]!=null&&("n?(".indexOf(h[p].t)!==-1||p===A)){for(f=h[p].v.indexOf(".")>-1&&p===A?h[p].v.indexOf(".")+1:0,Y=h[p].v.substr(0,f);f<h[p].v.length;++f)L<z.length&&(Y+=z.charAt(L++));h[p].v=Y,h[p].t="t",I=p}}}for(p=0;p<h.length;++p)h[p]!=null&&"n?".indexOf(h[p].t)>-1&&(U=u>1&&s<0&&p>0&&h[p-1].v==="-"?-s:s,h[p].v=So(h[p].t,h[p].v,U),h[p].t="t");var _="";for(p=0;p!==h.length;++p)h[p]!=null&&(_+=h[p].v);return _}(a[1],r,e,a[0])}function To(t,r){if(typeof r!="number"){r=+r||-1;for(var e=0;e<392;++e)if(Qr[e]!=null){if(Qr[e]==t){r=e;break}}else r<0&&(r=e);r<0&&(r=391)}return Qr[r]=t,r}function Sh(t){for(var r=0;r!=392;++r)t[r]!==void 0&&To(t[r],r)}function Mu(){var t;t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',Qr=t}var t3={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},tv=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,e3=function(){var t={};t.version="1.2.0";var r=function(){for(var g=0,y=new Array(256),k=0;k!=256;++k)g=1&(g=1&(g=1&(g=1&(g=1&(g=1&(g=1&(g=1&(g=k)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1)?-306674912^g>>>1:g>>>1,y[k]=g;return typeof Int32Array<"u"?new Int32Array(y):y}(),e=function(g){var y=0,k=0,S=0,C=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(S=0;S!=256;++S)C[S]=g[S];for(S=0;S!=256;++S)for(k=g[S],y=256+S;y<4096;y+=256)k=C[y]=k>>>8^g[255&k];var O=[];for(S=1;S!=16;++S)O[S-1]=typeof Int32Array<"u"?C.subarray(256*S,256*S+256):C.slice(256*S,256*S+256);return O}(r),n=e[0],a=e[1],o=e[2],s=e[3],i=e[4],u=e[5],l=e[6],f=e[7],c=e[8],h=e[9],d=e[10],p=e[11],m=e[12],v=e[13],b=e[14];return t.table=r,t.bstr=function(g,y){for(var k=~y,S=0,C=g.length;S<C;)k=k>>>8^r[255&(k^g.charCodeAt(S++))];return~k},t.buf=function(g,y){for(var k=~y,S=g.length-15,C=0;C<S;)k=b[g[C++]^255&k]^v[g[C++]^k>>8&255]^m[g[C++]^k>>16&255]^p[g[C++]^k>>>24]^d[g[C++]]^h[g[C++]]^c[g[C++]]^f[g[C++]]^l[g[C++]]^u[g[C++]]^i[g[C++]]^s[g[C++]]^o[g[C++]]^a[g[C++]]^n[g[C++]]^r[g[C++]];for(S+=15;C<S;)k=k>>>8^r[255&(k^g[C++])];return~k},t.str=function(g,y){for(var k=~y,S=0,C=g.length,O=0,L=0;S<C;)(O=g.charCodeAt(S++))<128?k=k>>>8^r[255&(k^O)]:O<2048?k=(k=k>>>8^r[255&(k^(192|O>>6&31))])>>>8^r[255&(k^(128|63&O))]:O>=55296&&O<57344?(O=64+(1023&O),L=1023&g.charCodeAt(S++),k=(k=(k=(k=k>>>8^r[255&(k^(240|O>>8&7))])>>>8^r[255&(k^(128|O>>2&63))])>>>8^r[255&(k^(128|L>>6&15|(3&O)<<4))])>>>8^r[255&(k^(128|63&L))]):k=(k=(k=k>>>8^r[255&(k^(224|O>>12&15))])>>>8^r[255&(k^(128|O>>6&63))])>>>8^r[255&(k^(128|63&O))];return~k},t}(),zr=function(){var t,r={};function e(ot){if(ot.charAt(ot.length-1)=="/")return ot.slice(0,-1).indexOf("/")===-1?ot:e(ot.slice(0,-1));var ct=ot.lastIndexOf("/");return ct===-1?ot:ot.slice(0,ct+1)}function n(ot){if(ot.charAt(ot.length-1)=="/")return n(ot.slice(0,-1));var ct=ot.lastIndexOf("/");return ct===-1?ot:ot.slice(ct+1)}function a(ot,ct){typeof ct=="string"&&(ct=new Date(ct));var xt=ct.getHours();xt=(xt=xt<<6|ct.getMinutes())<<5|ct.getSeconds()>>>1,ot.write_shift(2,xt);var Ft=ct.getFullYear()-1980;Ft=(Ft=Ft<<4|ct.getMonth()+1)<<5|ct.getDate(),ot.write_shift(2,Ft)}function o(ot){oa(ot,0);for(var ct={},xt=0;ot.l<=ot.length-4;){var Ft=ot.read_shift(2),bt=ot.read_shift(2),lt=ot.l+bt,Ct={};Ft===21589&&(1&(xt=ot.read_shift(1))&&(Ct.mtime=ot.read_shift(4)),bt>5&&(2&xt&&(Ct.atime=ot.read_shift(4)),4&xt&&(Ct.ctime=ot.read_shift(4))),Ct.mtime&&(Ct.mt=new Date(1e3*Ct.mtime))),ot.l=lt,ct[Ft]=Ct}return ct}function s(){return t||(t={})}function i(ot,ct){if(ot[0]==80&&ot[1]==75)return re(ot,ct);if((32|ot[0])==109&&(32|ot[1])==105)return function(je,dr){if(C(je.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var pr=dr&&dr.root||"",Ne=(wn&&Buffer.isBuffer(je)?je.toString("binary"):C(je)).split(`\r |
|
|
`),fr=0,_r="";for(fr=0;fr<Ne.length;++fr)if(_r=Ne[fr],/^Content-Location:/i.test(_r)&&(_r=_r.slice(_r.indexOf("file")),pr||(pr=_r.slice(0,_r.lastIndexOf("/")+1)),_r.slice(0,pr.length)!=pr))for(;pr.length>0&&(pr=(pr=pr.slice(0,pr.length-1)).slice(0,pr.lastIndexOf("/")+1),_r.slice(0,pr.length)!=pr););var xr=(Ne[1]||"").match(/boundary="(.*?)"/);if(!xr)throw new Error("MAD cannot find boundary");var Ar="--"+(xr[1]||""),Br=[],tr=[],Or={FileIndex:Br,FullPaths:tr};h(Or);var Gr,Hr=0;for(fr=0;fr<Ne.length;++fr){var vn=Ne[fr];vn!==Ar&&vn!==Ar+"--"||(Hr++&&Tt(Or,Ne.slice(Gr,fr),pr),Gr=fr)}return Or}(ot,ct);if(ot.length<512)throw new Error("CFB file size "+ot.length+" < 512");var xt,Ft,bt,lt,Ct,zt,Zt=512,Se=[],me=ot.slice(0,512);oa(me,0);var Ze=function(je){if(je[je.l]==80&&je[je.l+1]==75)return[0,0];je.chk(g,"Header Signature: "),je.l+=16;var dr=je.read_shift(2,"u");return[je.read_shift(2,"u"),dr]}(me);switch(xt=Ze[0]){case 3:Zt=512;break;case 4:Zt=4096;break;case 0:if(Ze[1]==0)return re(ot,ct);default:throw new Error("Major Version: Expected 3 or 4 saw "+xt)}Zt!==512&&oa(me=ot.slice(0,Zt),28);var Ae=ot.slice(0,Zt);(function(je,dr){var pr=9;switch(je.l+=2,pr=je.read_shift(2)){case 9:if(dr!=3)throw new Error("Sector Shift: Expected 9 saw "+pr);break;case 12:if(dr!=4)throw new Error("Sector Shift: Expected 12 saw "+pr);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+pr)}je.chk("0600","Mini Sector Shift: "),je.chk("000000000000","Reserved: ")})(me,xt);var _e=me.read_shift(4,"i");if(xt===3&&_e!==0)throw new Error("# Directory Sectors: Expected 0 saw "+_e);me.l+=4,lt=me.read_shift(4,"i"),me.l+=4,me.chk("00100000","Mini Stream Cutoff Size: "),Ct=me.read_shift(4,"i"),Ft=me.read_shift(4,"i"),zt=me.read_shift(4,"i"),bt=me.read_shift(4,"i");for(var Je=-1,We=0;We<109&&!((Je=me.read_shift(4,"i"))<0);++We)Se[We]=Je;var $e=function(je,dr){for(var pr=Math.ceil(je.length/dr)-1,Ne=[],fr=1;fr<pr;++fr)Ne[fr-1]=je.slice(fr*dr,(fr+1)*dr);return Ne[pr-1]=je.slice(pr*dr),Ne}(ot,Zt);l(zt,bt,$e,Zt,Se);var ir=function(je,dr,pr,Ne){var fr=je.length,_r=[],xr=[],Ar=[],Br=[],tr=Ne-1,Or=0,Gr=0,Hr=0,vn=0;for(Or=0;Or<fr;++Or)if(Ar=[],(Hr=Or+dr)>=fr&&(Hr-=fr),!xr[Hr]){Br=[];var It=[];for(Gr=Hr;Gr>=0;){It[Gr]=!0,xr[Gr]=!0,Ar[Ar.length]=Gr,Br.push(je[Gr]);var se=pr[Math.floor(4*Gr/Ne)];if(Ne<4+(vn=4*Gr&tr))throw new Error("FAT boundary crossed: "+Gr+" 4 "+Ne);if(!je[se]||It[Gr=Pl(je[se],vn)])break}_r[Hr]={nodes:Ar,data:Tv([Br])}}return _r}($e,lt,Se,Zt);ir[lt].name="!Directory",Ft>0&&Ct!==b&&(ir[Ct].name="!MiniFAT"),ir[Se[0]].name="!FAT",ir.fat_addrs=Se,ir.ssz=Zt;var Le=[],nr=[],Sr=[];(function(je,dr,pr,Ne,fr,_r,xr,Ar){for(var Br,tr=0,Or=Ne.length?2:0,Gr=dr[je].data,Hr=0,vn=0;Hr<Gr.length;Hr+=128){var It=Gr.slice(Hr,Hr+128);oa(It,64),vn=It.read_shift(2),Br=Jp(It,0,vn-Or),Ne.push(Br);var se={name:Br,type:It.read_shift(1),color:It.read_shift(1),L:It.read_shift(4,"i"),R:It.read_shift(4,"i"),C:It.read_shift(4,"i"),clsid:It.read_shift(16),state:It.read_shift(4,"i"),start:0,size:0};It.read_shift(2)+It.read_shift(2)+It.read_shift(2)+It.read_shift(2)!==0&&(se.ct=c(It,It.l-8)),It.read_shift(2)+It.read_shift(2)+It.read_shift(2)+It.read_shift(2)!==0&&(se.mt=c(It,It.l-8)),se.start=It.read_shift(4,"i"),se.size=It.read_shift(4,"i"),se.size<0&&se.start<0&&(se.size=se.type=0,se.start=b,se.name=""),se.type===5?(tr=se.start,fr>0&&tr!==b&&(dr[tr].name="!StreamData")):se.size>=4096?(se.storage="fat",dr[se.start]===void 0&&(dr[se.start]=f(pr,se.start,dr.fat_addrs,dr.ssz)),dr[se.start].name=se.name,se.content=dr[se.start].data.slice(0,se.size)):(se.storage="minifat",se.size<0?se.size=0:tr!==b&&se.start!==b&&dr[tr]&&(se.content=u(se,dr[tr].data,(dr[Ar]||{}).data))),se.content&&oa(se.content,0),_r[Br]=se,xr.push(se)}})(lt,ir,$e,Le,Ft,{},nr,Ct),function(je,dr,pr){for(var Ne=0,fr=0,_r=0,xr=0,Ar=0,Br=pr.length,tr=[],Or=[];Ne<Br;++Ne)tr[Ne]=Or[Ne]=Ne,dr[Ne]=pr[Ne];for(;Ar<Or.length;++Ar)fr=je[Ne=Or[Ar]].L,_r=je[Ne].R,xr=je[Ne].C,tr[Ne]===Ne&&(fr!==-1&&tr[fr]!==fr&&(tr[Ne]=tr[fr]),_r!==-1&&tr[_r]!==_r&&(tr[Ne]=tr[_r])),xr!==-1&&(tr[xr]=Ne),fr!==-1&&Ne!=tr[Ne]&&(tr[fr]=tr[Ne],Or.lastIndexOf(fr)<Ar&&Or.push(fr)),_r!==-1&&Ne!=tr[Ne]&&(tr[_r]=tr[Ne],Or.lastIndexOf(_r)<Ar&&Or.push(_r));for(Ne=1;Ne<Br;++Ne)tr[Ne]===Ne&&(_r!==-1&&tr[_r]!==_r?tr[Ne]=tr[_r]:fr!==-1&&tr[fr]!==fr&&(tr[Ne]=tr[fr]));for(Ne=1;Ne<Br;++Ne)if(je[Ne].type!==0){if((Ar=Ne)!=tr[Ar])do Ar=tr[Ar],dr[Ne]=dr[Ar]+"/"+dr[Ne];while(Ar!==0&&tr[Ar]!==-1&&Ar!=tr[Ar]);tr[Ne]=-1}for(dr[0]+="/",Ne=1;Ne<Br;++Ne)je[Ne].type!==2&&(dr[Ne]+="/")}(nr,Sr,Le),Le.shift();var Pr={FileIndex:nr,FullPaths:Sr};return ct&&ct.raw&&(Pr.raw={header:Ae,sectors:$e}),Pr}function u(ot,ct,xt){for(var Ft=ot.start,bt=ot.size,lt=[],Ct=Ft;xt&&bt>0&&Ct>=0;)lt.push(ct.slice(Ct*v,Ct*v+v)),bt-=v,Ct=Pl(xt,4*Ct);return lt.length===0?Me(0):Ji(lt).slice(0,ot.size)}function l(ot,ct,xt,Ft,bt){var lt=b;if(ot===b){if(ct!==0)throw new Error("DIFAT chain shorter than expected")}else if(ot!==-1){var Ct=xt[ot],zt=(Ft>>>2)-1;if(!Ct)return;for(var Zt=0;Zt<zt&&(lt=Pl(Ct,4*Zt))!==b;++Zt)bt.push(lt);l(Pl(Ct,Ft-4),ct-1,xt,Ft,bt)}}function f(ot,ct,xt,Ft,bt){var lt=[],Ct=[];bt||(bt=[]);var zt=Ft-1,Zt=0,Se=0;for(Zt=ct;Zt>=0;){bt[Zt]=!0,lt[lt.length]=Zt,Ct.push(ot[Zt]);var me=xt[Math.floor(4*Zt/Ft)];if(Ft<4+(Se=4*Zt&zt))throw new Error("FAT boundary crossed: "+Zt+" 4 "+Ft);if(!ot[me])break;Zt=Pl(ot[me],Se)}return{nodes:lt,data:Tv([Ct])}}function c(ot,ct){return new Date(1e3*(is(ot,ct+4)/1e7*Math.pow(2,32)+is(ot,ct)/1e7-11644473600))}function h(ot,ct){var xt=ct||{},Ft=xt.root||"Root Entry";if(ot.FullPaths||(ot.FullPaths=[]),ot.FileIndex||(ot.FileIndex=[]),ot.FullPaths.length!==ot.FileIndex.length)throw new Error("inconsistent CFB structure");ot.FullPaths.length===0&&(ot.FullPaths[0]=Ft+"/",ot.FileIndex[0]={name:Ft,type:5}),xt.CLSID&&(ot.FileIndex[0].clsid=xt.CLSID),function(bt){var lt="Sh33tJ5";if(!zr.find(bt,"/"+lt)){var Ct=Me(4);Ct[0]=55,Ct[1]=Ct[3]=50,Ct[2]=54,bt.FileIndex.push({name:lt,type:2,content:Ct,size:4,L:69,R:69,C:69}),bt.FullPaths.push(bt.FullPaths[0]+lt),d(bt)}}(ot)}function d(ot,ct){h(ot);for(var xt=!1,Ft=!1,bt=ot.FullPaths.length-1;bt>=0;--bt){var lt=ot.FileIndex[bt];switch(lt.type){case 0:Ft?xt=!0:(ot.FileIndex.pop(),ot.FullPaths.pop());break;case 1:case 2:case 5:Ft=!0,isNaN(lt.R*lt.L*lt.C)&&(xt=!0),lt.R>-1&<.L>-1&<.R==lt.L&&(xt=!0);break;default:xt=!0}}if(xt||ct){var Ct=new Date(1987,1,19),zt=0,Zt=Object.create?Object.create(null):{},Se=[];for(bt=0;bt<ot.FullPaths.length;++bt)Zt[ot.FullPaths[bt]]=!0,ot.FileIndex[bt].type!==0&&Se.push([ot.FullPaths[bt],ot.FileIndex[bt]]);for(bt=0;bt<Se.length;++bt){var me=e(Se[bt][0]);(Ft=Zt[me])||(Se.push([me,{name:n(me).replace("/",""),type:1,clsid:k,ct:Ct,mt:Ct,content:null}]),Zt[me]=!0)}for(Se.sort(function(_e,Je){return function(We,$e){for(var ir=We.split("/"),Le=$e.split("/"),nr=0,Sr=0,Pr=Math.min(ir.length,Le.length);nr<Pr;++nr){if(Sr=ir[nr].length-Le[nr].length)return Sr;if(ir[nr]!=Le[nr])return ir[nr]<Le[nr]?-1:1}return ir.length-Le.length}(_e[0],Je[0])}),ot.FullPaths=[],ot.FileIndex=[],bt=0;bt<Se.length;++bt)ot.FullPaths[bt]=Se[bt][0],ot.FileIndex[bt]=Se[bt][1];for(bt=0;bt<Se.length;++bt){var Ze=ot.FileIndex[bt],Ae=ot.FullPaths[bt];if(Ze.name=n(Ae).replace("/",""),Ze.L=Ze.R=Ze.C=-(Ze.color=1),Ze.size=Ze.content?Ze.content.length:0,Ze.start=0,Ze.clsid=Ze.clsid||k,bt===0)Ze.C=Se.length>1?1:-1,Ze.size=0,Ze.type=5;else if(Ae.slice(-1)=="/"){for(zt=bt+1;zt<Se.length&&e(ot.FullPaths[zt])!=Ae;++zt);for(Ze.C=zt>=Se.length?-1:zt,zt=bt+1;zt<Se.length&&e(ot.FullPaths[zt])!=e(Ae);++zt);Ze.R=zt>=Se.length?-1:zt,Ze.type=1}else e(ot.FullPaths[bt+1]||"")==e(Ae)&&(Ze.R=bt+1),Ze.type=2}}}function p(ot,ct){var xt=ct||{};if(xt.fileType=="mad")return function(_e,Je){for(var We=Je||{},$e=We.boundary||"SheetJS",ir=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+($e="------="+$e).slice(2)+'"',"","",""],Le=_e.FullPaths[0],nr=Le,Sr=_e.FileIndex[0],Pr=1;Pr<_e.FullPaths.length;++Pr)if(nr=_e.FullPaths[Pr].slice(Le.length),(Sr=_e.FileIndex[Pr]).size&&Sr.content&&nr!="Sh33tJ5"){nr=nr.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ar){return"_x"+Ar.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ar){return"_u"+Ar.charCodeAt(0).toString(16)+"_"});for(var je=Sr.content,dr=wn&&Buffer.isBuffer(je)?je.toString("binary"):C(je),pr=0,Ne=Math.min(1024,dr.length),fr=0,_r=0;_r<=Ne;++_r)(fr=dr.charCodeAt(_r))>=32&&fr<128&&++pr;var xr=pr>=4*Ne/5;ir.push($e),ir.push("Content-Location: "+(We.root||"file:///C:/SheetJS/")+nr),ir.push("Content-Transfer-Encoding: "+(xr?"quoted-printable":"base64")),ir.push("Content-Type: "+Jt(Sr,nr)),ir.push(""),ir.push(xr?gt(dr):vt(dr))}return ir.push($e+`--\r |
|
|
`),ir.join(`\r |
|
|
`)}(ot,xt);if(d(ot),xt.fileType==="zip")return function(_e,Je){var We=Je||{},$e=[],ir=[],Le=Me(1),nr=We.compression?8:0,Sr=0,Pr=0,je=0,dr=0,pr=0,Ne=_e.FullPaths[0],fr=Ne,_r=_e.FileIndex[0],xr=[],Ar=0;for(Pr=1;Pr<_e.FullPaths.length;++Pr)if(fr=_e.FullPaths[Pr].slice(Ne.length),(_r=_e.FileIndex[Pr]).size&&_r.content&&fr!="Sh33tJ5"){var Br=dr,tr=Me(fr.length);for(je=0;je<fr.length;++je)tr.write_shift(1,127&fr.charCodeAt(je));tr=tr.slice(0,tr.l),xr[pr]=e3.buf(_r.content,0);var Or=_r.content;nr==8&&(Or=O(Or)),(Le=Me(30)).write_shift(4,67324752),Le.write_shift(2,20),Le.write_shift(2,Sr),Le.write_shift(2,nr),_r.mt?a(Le,_r.mt):Le.write_shift(4,0),Le.write_shift(-4,xr[pr]),Le.write_shift(4,Or.length),Le.write_shift(4,_r.content.length),Le.write_shift(2,tr.length),Le.write_shift(2,0),dr+=Le.length,$e.push(Le),dr+=tr.length,$e.push(tr),dr+=Or.length,$e.push(Or),(Le=Me(46)).write_shift(4,33639248),Le.write_shift(2,0),Le.write_shift(2,20),Le.write_shift(2,Sr),Le.write_shift(2,nr),Le.write_shift(4,0),Le.write_shift(-4,xr[pr]),Le.write_shift(4,Or.length),Le.write_shift(4,_r.content.length),Le.write_shift(2,tr.length),Le.write_shift(2,0),Le.write_shift(2,0),Le.write_shift(2,0),Le.write_shift(2,0),Le.write_shift(4,0),Le.write_shift(4,Br),Ar+=Le.l,ir.push(Le),Ar+=tr.length,ir.push(tr),++pr}return Le=Me(22),Le.write_shift(4,101010256),Le.write_shift(2,0),Le.write_shift(2,0),Le.write_shift(2,pr),Le.write_shift(2,pr),Le.write_shift(4,Ar),Le.write_shift(4,dr),Le.write_shift(2,0),Ji([Ji($e),Ji(ir),Le])}(ot,xt);var Ft=function(_e){for(var Je=0,We=0,$e=0;$e<_e.FileIndex.length;++$e){var ir=_e.FileIndex[$e];if(ir.content){var Le=ir.content.length;Le>0&&(Le<4096?Je+=Le+63>>6:We+=Le+511>>9)}}for(var nr=_e.FullPaths.length+3>>2,Sr=Je+127>>7,Pr=(Je+7>>3)+We+nr+Sr,je=Pr+127>>7,dr=je<=109?0:Math.ceil((je-109)/127);Pr+je+dr+127>>7>je;)dr=++je<=109?0:Math.ceil((je-109)/127);var pr=[1,dr,je,Sr,nr,We,Je,0];return _e.FileIndex[0].size=Je<<6,pr[7]=(_e.FileIndex[0].start=pr[0]+pr[1]+pr[2]+pr[3]+pr[4]+pr[5])+(pr[6]+7>>3),pr}(ot),bt=Me(Ft[7]<<9),lt=0,Ct=0;for(lt=0;lt<8;++lt)bt.write_shift(1,y[lt]);for(lt=0;lt<8;++lt)bt.write_shift(2,0);for(bt.write_shift(2,62),bt.write_shift(2,3),bt.write_shift(2,65534),bt.write_shift(2,9),bt.write_shift(2,6),lt=0;lt<3;++lt)bt.write_shift(2,0);for(bt.write_shift(4,0),bt.write_shift(4,Ft[2]),bt.write_shift(4,Ft[0]+Ft[1]+Ft[2]+Ft[3]-1),bt.write_shift(4,0),bt.write_shift(4,4096),bt.write_shift(4,Ft[3]?Ft[0]+Ft[1]+Ft[2]-1:b),bt.write_shift(4,Ft[3]),bt.write_shift(-4,Ft[1]?Ft[0]-1:b),bt.write_shift(4,Ft[1]),lt=0;lt<109;++lt)bt.write_shift(-4,lt<Ft[2]?Ft[1]+lt:-1);if(Ft[1])for(Ct=0;Ct<Ft[1];++Ct){for(;lt<236+127*Ct;++lt)bt.write_shift(-4,lt<Ft[2]?Ft[1]+lt:-1);bt.write_shift(-4,Ct===Ft[1]-1?b:Ct+1)}var zt=function(_e){for(Ct+=_e;lt<Ct-1;++lt)bt.write_shift(-4,lt+1);_e&&(++lt,bt.write_shift(-4,b))};for(Ct=lt=0,Ct+=Ft[1];lt<Ct;++lt)bt.write_shift(-4,S.DIFSECT);for(Ct+=Ft[2];lt<Ct;++lt)bt.write_shift(-4,S.FATSECT);zt(Ft[3]),zt(Ft[4]);for(var Zt=0,Se=0,me=ot.FileIndex[0];Zt<ot.FileIndex.length;++Zt)(me=ot.FileIndex[Zt]).content&&((Se=me.content.length)<4096||(me.start=Ct,zt(Se+511>>9)));for(zt(Ft[6]+7>>3);511&bt.l;)bt.write_shift(-4,S.ENDOFCHAIN);for(Ct=lt=0,Zt=0;Zt<ot.FileIndex.length;++Zt)(me=ot.FileIndex[Zt]).content&&(!(Se=me.content.length)||Se>=4096||(me.start=Ct,zt(Se+63>>6)));for(;511&bt.l;)bt.write_shift(-4,S.ENDOFCHAIN);for(lt=0;lt<Ft[4]<<2;++lt){var Ze=ot.FullPaths[lt];if(Ze&&Ze.length!==0){me=ot.FileIndex[lt],lt===0&&(me.start=me.size?me.start-1:b);var Ae=lt===0&&xt.root||me.name;if(Se=2*(Ae.length+1),bt.write_shift(64,Ae,"utf16le"),bt.write_shift(2,Se),bt.write_shift(1,me.type),bt.write_shift(1,me.color),bt.write_shift(-4,me.L),bt.write_shift(-4,me.R),bt.write_shift(-4,me.C),me.clsid)bt.write_shift(16,me.clsid,"hex");else for(Zt=0;Zt<4;++Zt)bt.write_shift(4,0);bt.write_shift(4,me.state||0),bt.write_shift(4,0),bt.write_shift(4,0),bt.write_shift(4,0),bt.write_shift(4,0),bt.write_shift(4,me.start),bt.write_shift(4,me.size),bt.write_shift(4,0)}else{for(Zt=0;Zt<17;++Zt)bt.write_shift(4,0);for(Zt=0;Zt<3;++Zt)bt.write_shift(4,-1);for(Zt=0;Zt<12;++Zt)bt.write_shift(4,0)}}for(lt=1;lt<ot.FileIndex.length;++lt)if((me=ot.FileIndex[lt]).size>=4096)if(bt.l=me.start+1<<9,wn&&Buffer.isBuffer(me.content))me.content.copy(bt,bt.l,0,me.size),bt.l+=me.size+511&-512;else{for(Zt=0;Zt<me.size;++Zt)bt.write_shift(1,me.content[Zt]);for(;511&Zt;++Zt)bt.write_shift(1,0)}for(lt=1;lt<ot.FileIndex.length;++lt)if((me=ot.FileIndex[lt]).size>0&&me.size<4096)if(wn&&Buffer.isBuffer(me.content))me.content.copy(bt,bt.l,0,me.size),bt.l+=me.size+63&-64;else{for(Zt=0;Zt<me.size;++Zt)bt.write_shift(1,me.content[Zt]);for(;63&Zt;++Zt)bt.write_shift(1,0)}if(wn)bt.l=bt.length;else for(;bt.l<bt.length;)bt.write_shift(1,0);return bt}r.version="1.2.1";var m,v=64,b=-2,g="d0cf11e0a1b11ae1",y=[208,207,17,224,161,177,26,225],k="00000000000000000000000000000000",S={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:b,FREESECT:-1,HEADER_SIGNATURE:g,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:k,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function C(ot){for(var ct=new Array(ot.length),xt=0;xt<ot.length;++xt)ct[xt]=String.fromCharCode(ot[xt]);return ct.join("")}function O(ot){return m?m.deflateRawSync(ot):st(ot)}for(var L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],U=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],z,Y,A=typeof Uint8Array<"u",I=A?new Uint8Array(256):[],_=0;_<256;++_)I[_]=(Y=void 0,255&((Y=139536&((z=_)<<1|z<<11)|558144&(z<<5|z<<15))>>16|Y>>8|Y));function x(ot,ct){var xt=I[255&ot];return ct<=8?xt>>>8-ct:(xt=xt<<8|I[ot>>8&255],ct<=16?xt>>>16-ct:(xt=xt<<8|I[ot>>16&255])>>>24-ct)}function T(ot,ct){var xt=7&ct,Ft=ct>>>3;return(ot[Ft]|(xt<=6?0:ot[Ft+1]<<8))>>>xt&3}function E(ot,ct){var xt=7&ct,Ft=ct>>>3;return(ot[Ft]|(xt<=5?0:ot[Ft+1]<<8))>>>xt&7}function M(ot,ct){var xt=7&ct,Ft=ct>>>3;return(ot[Ft]|(xt<=3?0:ot[Ft+1]<<8))>>>xt&31}function F(ot,ct){var xt=7&ct,Ft=ct>>>3;return(ot[Ft]|(xt<=1?0:ot[Ft+1]<<8))>>>xt&127}function P(ot,ct,xt){var Ft=7&ct,bt=ct>>>3,lt=(1<<xt)-1,Ct=ot[bt]>>>Ft;return xt<8-Ft?Ct<:(Ct|=ot[bt+1]<<8-Ft,xt<16-Ft?Ct<:(Ct|=ot[bt+2]<<16-Ft,xt<24-Ft?Ct<:(Ct|=ot[bt+3]<<24-Ft)<))}function W(ot,ct,xt){var Ft=7&ct,bt=ct>>>3;return Ft<=5?ot[bt]|=(7&xt)<<Ft:(ot[bt]|=xt<<Ft&255,ot[bt+1]=(7&xt)>>8-Ft),ct+3}function N(ot,ct,xt){return xt=(1&xt)<<(7&ct),ot[ct>>>3]|=xt,ct+1}function q(ot,ct,xt){var Ft=ct>>>3;return xt<<=7&ct,ot[Ft]|=255&xt,xt>>>=8,ot[Ft+1]=xt,ct+8}function nt(ot,ct,xt){var Ft=ct>>>3;return xt<<=7&ct,ot[Ft]|=255&xt,xt>>>=8,ot[Ft+1]=255&xt,ot[Ft+2]=xt>>>8,ct+16}function J(ot,ct){var xt=ot.length,Ft=2*xt>ct?2*xt:ct+5,bt=0;if(xt>=ct)return ot;if(wn){var lt=F1(Ft);if(ot.copy)ot.copy(lt);else for(;bt<ot.length;++bt)lt[bt]=ot[bt];return lt}if(A){var Ct=new Uint8Array(Ft);if(Ct.set)Ct.set(ot);else for(;bt<xt;++bt)Ct[bt]=ot[bt];return Ct}return ot.length=Ft,ot}function St(ot){for(var ct=new Array(ot),xt=0;xt<ot;++xt)ct[xt]=0;return ct}function kt(ot,ct,xt){var Ft=1,bt=0,lt=0,Ct=0,zt=0,Zt=ot.length,Se=A?new Uint16Array(32):St(32);for(lt=0;lt<32;++lt)Se[lt]=0;for(lt=Zt;lt<xt;++lt)ot[lt]=0;Zt=ot.length;var me=A?new Uint16Array(Zt):St(Zt);for(lt=0;lt<Zt;++lt)Se[bt=ot[lt]]++,Ft<bt&&(Ft=bt),me[lt]=0;for(Se[0]=0,lt=1;lt<=Ft;++lt)Se[lt+16]=zt=zt+Se[lt-1]<<1;for(lt=0;lt<Zt;++lt)(zt=ot[lt])!=0&&(me[lt]=Se[zt+16]++);var Ze=0;for(lt=0;lt<Zt;++lt)if((Ze=ot[lt])!=0)for(zt=x(me[lt],Ft)>>Ft-Ze,Ct=(1<<Ft+4-Ze)-1;Ct>=0;--Ct)ct[zt|Ct<<Ze]=15&Ze|lt<<4;return Ft}var Mt=A?new Uint16Array(512):St(512),at=A?new Uint16Array(32):St(32);if(!A){for(var K=0;K<512;++K)Mt[K]=0;for(K=0;K<32;++K)at[K]=0}(function(){for(var ot=[],ct=0;ct<32;ct++)ot.push(5);kt(ot,at,32);var xt=[];for(ct=0;ct<=143;ct++)xt.push(8);for(;ct<=255;ct++)xt.push(9);for(;ct<=279;ct++)xt.push(7);for(;ct<=287;ct++)xt.push(8);kt(xt,Mt,288)})();var it=function(){for(var ot=A?new Uint8Array(32768):[],ct=0,xt=0;ct<U.length-1;++ct)for(;xt<U[ct+1];++xt)ot[xt]=ct;for(;xt<32768;++xt)ot[xt]=29;var Ft=A?new Uint8Array(259):[];for(ct=0,xt=0;ct<j.length-1;++ct)for(;xt<j[ct+1];++xt)Ft[xt]=ct;return function(bt,lt){return bt.length<8?function(Ct,zt){for(var Zt=0;Zt<Ct.length;){var Se=Math.min(65535,Ct.length-Zt),me=Zt+Se==Ct.length;for(zt.write_shift(1,+me),zt.write_shift(2,Se),zt.write_shift(2,65535&~Se);Se-- >0;)zt[zt.l++]=Ct[Zt++]}return zt.l}(bt,lt):function(Ct,zt){for(var Zt=0,Se=0,me=A?new Uint16Array(32768):[];Se<Ct.length;){var Ze=Math.min(65535,Ct.length-Se);if(Ze<10){for(7&(Zt=W(zt,Zt,+(Se+Ze==Ct.length)))&&(Zt+=8-(7&Zt)),zt.l=Zt/8|0,zt.write_shift(2,Ze),zt.write_shift(2,65535&~Ze);Ze-- >0;)zt[zt.l++]=Ct[Se++];Zt=8*zt.l}else{Zt=W(zt,Zt,+(Se+Ze==Ct.length)+2);for(var Ae=0;Ze-- >0;){var _e=Ct[Se],Je=-1,We=0;if((Je=me[Ae=32767&(Ae<<5^_e)])&&((Je|=-32768&Se)>Se&&(Je-=32768),Je<Se))for(;Ct[Je+We]==Ct[Se+We]&&We<250;)++We;if(We>2){(_e=Ft[We])<=22?Zt=q(zt,Zt,I[_e+1]>>1)-1:(q(zt,Zt,3),q(zt,Zt+=5,I[_e-23]>>5),Zt+=3);var $e=_e<8?0:_e-4>>2;$e>0&&(nt(zt,Zt,We-j[_e]),Zt+=$e),_e=ot[Se-Je],Zt=q(zt,Zt,I[_e]>>3),Zt-=3;var ir=_e<4?0:_e-2>>1;ir>0&&(nt(zt,Zt,Se-Je-U[_e]),Zt+=ir);for(var Le=0;Le<We;++Le)me[Ae]=32767&Se,Ae=32767&(Ae<<5^Ct[Se]),++Se;Ze-=We-1}else _e<=143?_e+=48:Zt=N(zt,Zt,1),Zt=q(zt,Zt,I[_e]),me[Ae]=32767&Se,++Se}Zt=q(zt,Zt,0)-1}}return zt.l=(Zt+7)/8|0,zt.l}(bt,lt)}}();function st(ot){var ct=Me(50+Math.floor(1.1*ot.length)),xt=it(ot,ct);return ct.slice(0,xt)}var Nt=A?new Uint16Array(32768):St(32768),rt=A?new Uint16Array(32768):St(32768),mt=A?new Uint16Array(128):St(128),Xt=1,G=1;function tt(ot,ct){var xt=M(ot,ct)+257,Ft=M(ot,ct+=5)+1,bt=function(nr,Sr){var Pr=7&Sr,je=Sr>>>3;return(nr[je]|(Pr<=4?0:nr[je+1]<<8))>>>Pr&15}(ot,ct+=5)+4;ct+=4;for(var lt=0,Ct=A?new Uint8Array(19):St(19),zt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Zt=1,Se=A?new Uint8Array(8):St(8),me=A?new Uint8Array(8):St(8),Ze=Ct.length,Ae=0;Ae<bt;++Ae)Ct[L[Ae]]=lt=E(ot,ct),Zt<lt&&(Zt=lt),Se[lt]++,ct+=3;var _e=0;for(Se[0]=0,Ae=1;Ae<=Zt;++Ae)me[Ae]=_e=_e+Se[Ae-1]<<1;for(Ae=0;Ae<Ze;++Ae)(_e=Ct[Ae])!=0&&(zt[Ae]=me[_e]++);var Je=0;for(Ae=0;Ae<Ze;++Ae)if((Je=Ct[Ae])!=0){_e=I[zt[Ae]]>>8-Je;for(var We=(1<<7-Je)-1;We>=0;--We)mt[_e|We<<Je]=7&Je|Ae<<3}var $e=[];for(Zt=1;$e.length<xt+Ft;)switch(ct+=7&(_e=mt[F(ot,ct)]),_e>>>=3){case 16:for(lt=3+T(ot,ct),ct+=2,_e=$e[$e.length-1];lt-- >0;)$e.push(_e);break;case 17:for(lt=3+E(ot,ct),ct+=3;lt-- >0;)$e.push(0);break;case 18:for(lt=11+F(ot,ct),ct+=7;lt-- >0;)$e.push(0);break;default:$e.push(_e),Zt<_e&&(Zt=_e)}var ir=$e.slice(0,xt),Le=$e.slice(xt);for(Ae=xt;Ae<286;++Ae)ir[Ae]=0;for(Ae=Ft;Ae<30;++Ae)Le[Ae]=0;return Xt=kt(ir,Nt,286),G=kt(Le,rt,30),ct}function dt(ot,ct){var xt=function(Ft,bt){if(Ft[0]==3&&!(3&Ft[1]))return[tl(bt),2];for(var lt=0,Ct=0,zt=F1(bt||262144),Zt=0,Se=zt.length>>>0,me=0,Ze=0;!(1&Ct);)if(Ct=E(Ft,lt),lt+=3,Ct>>>1!=0)for(Ct>>1==1?(me=9,Ze=5):(lt=tt(Ft,lt),me=Xt,Ze=G);;){!bt&&Se<Zt+32767&&(Se=(zt=J(zt,Zt+32767)).length);var Ae=P(Ft,lt,me),_e=Ct>>>1==1?Mt[Ae]:Nt[Ae];if(lt+=15&_e,(_e>>>=4)>>>8&255){if(_e==256)break;var Je=(_e-=257)<8?0:_e-4>>2;Je>5&&(Je=0);var We=Zt+j[_e];Je>0&&(We+=P(Ft,lt,Je),lt+=Je),Ae=P(Ft,lt,Ze),lt+=15&(_e=Ct>>>1==1?at[Ae]:rt[Ae]);var $e=(_e>>>=4)<4?0:_e-2>>1,ir=U[_e];for($e>0&&(ir+=P(Ft,lt,$e),lt+=$e),!bt&&Se<We&&(Se=(zt=J(zt,We+100)).length);Zt<We;)zt[Zt]=zt[Zt-ir],++Zt}else zt[Zt++]=_e}else{7<&&(lt+=8-(7<));var Le=Ft[lt>>>3]|Ft[1+(lt>>>3)]<<8;if(lt+=32,Le>0)for(!bt&&Se<Zt+Le&&(Se=(zt=J(zt,Zt+Le)).length);Le-- >0;)zt[Zt++]=Ft[lt>>>3],lt+=8}return bt?[zt,lt+7>>>3]:[zt.slice(0,Zt),lt+7>>>3]}(ot.slice(ot.l||0),ct);return ot.l+=xt[1],xt[0]}function Dt(ot,ct){if(!ot)throw new Error(ct);typeof console<"u"&&console.error(ct)}function re(ot,ct){var xt=ot;oa(xt,0);var Ft={FileIndex:[],FullPaths:[]};h(Ft,{root:ct.root});for(var bt=xt.length-4;(xt[bt]!=80||xt[bt+1]!=75||xt[bt+2]!=5||xt[bt+3]!=6)&&bt>=0;)--bt;xt.l=bt+4,xt.l+=4;var lt=xt.read_shift(2);xt.l+=6;var Ct=xt.read_shift(4);for(xt.l=Ct,bt=0;bt<lt;++bt){xt.l+=20;var zt=xt.read_shift(4),Zt=xt.read_shift(4),Se=xt.read_shift(2),me=xt.read_shift(2),Ze=xt.read_shift(2);xt.l+=8;var Ae=xt.read_shift(4),_e=o(xt.slice(xt.l+Se,xt.l+Se+me));xt.l+=Se+me+Ze;var Je=xt.l;xt.l=Ae+4,X(xt,zt,Zt,Ft,_e),xt.l=Je}return Ft}function X(ot,ct,xt,Ft,bt){ot.l+=2;var lt=ot.read_shift(2),Ct=ot.read_shift(2),zt=function(ir){var Le=65535&ir.read_shift(2),nr=65535&ir.read_shift(2),Sr=new Date,Pr=31&nr,je=15&(nr>>>=5);nr>>>=4,Sr.setMilliseconds(0),Sr.setFullYear(nr+1980),Sr.setMonth(je-1),Sr.setDate(Pr);var dr=31&Le,pr=63&(Le>>>=5);return Le>>>=6,Sr.setHours(Le),Sr.setMinutes(pr),Sr.setSeconds(dr<<1),Sr}(ot);if(8257<)throw new Error("Unsupported ZIP encryption");ot.read_shift(4);for(var Zt=ot.read_shift(4),Se=ot.read_shift(4),me=ot.read_shift(2),Ze=ot.read_shift(2),Ae="",_e=0;_e<me;++_e)Ae+=String.fromCharCode(ot[ot.l++]);if(Ze){var Je=o(ot.slice(ot.l,ot.l+Ze));(Je[21589]||{}).mt&&(zt=Je[21589].mt),((bt||{})[21589]||{}).mt&&(zt=bt[21589].mt)}ot.l+=Ze;var We=ot.slice(ot.l,ot.l+Zt);switch(Ct){case 8:We=function(ir,Le){if(!m)return dt(ir,Le);var nr=new m.InflateRaw,Sr=nr._processChunk(ir.slice(ir.l),nr._finishFlushFlag);return ir.l+=nr.bytesRead,Sr}(ot,Se);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ct)}var $e=!1;8<&&(ot.read_shift(4)==134695760&&(ot.read_shift(4),$e=!0),Zt=ot.read_shift(4),Se=ot.read_shift(4)),Zt!=ct&&Dt($e,"Bad compressed size: "+ct+" != "+Zt),Se!=xt&&Dt($e,"Bad uncompressed size: "+xt+" != "+Se),ie(Ft,Ae,We,{unsafe:!0,mt:zt})}var Gt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Jt(ot,ct){if(ot.ctype)return ot.ctype;var xt=ot.name||"",Ft=xt.match(/\.([^\.]+)$/);return Ft&&Gt[Ft[1]]||ct&&(Ft=(xt=ct).match(/[\.\\]([^\.\\])+$/))&&Gt[Ft[1]]?Gt[Ft[1]]:"application/octet-stream"}function vt(ot){for(var ct=Dc(ot),xt=[],Ft=0;Ft<ct.length;Ft+=76)xt.push(ct.slice(Ft,Ft+76));return xt.join(`\r |
|
|
`)+`\r |
|
|
`}function gt(ot){var ct=ot.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Se){var me=Se.charCodeAt(0).toString(16).toUpperCase();return"="+(me.length==1?"0"+me:me)});(ct=ct.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)==` |
|
|
`&&(ct="=0D"+ct.slice(1));for(var xt=[],Ft=(ct=ct.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,` |
|
|
=0A`).replace(/([^\r\n])\n/gm,"$1=0A")).split(`\r |
|
|
`),bt=0;bt<Ft.length;++bt){var lt=Ft[bt];if(lt.length!=0)for(var Ct=0;Ct<lt.length;){var zt=76,Zt=lt.slice(Ct,Ct+zt);Zt.charAt(zt-1)=="="?zt--:Zt.charAt(zt-2)=="="?zt-=2:Zt.charAt(zt-3)=="="&&(zt-=3),Zt=lt.slice(Ct,Ct+zt),(Ct+=zt)<lt.length&&(Zt+="="),xt.push(Zt)}else xt.push("")}return xt.join(`\r |
|
|
`)}function Tt(ot,ct,xt){for(var Ft,bt="",lt="",Ct="",zt=0;zt<10;++zt){var Zt=ct[zt];if(!Zt||Zt.match(/^\s*$/))break;var Se=Zt.match(/^(.*?):\s*([^\s].*)$/);if(Se)switch(Se[1].toLowerCase()){case"content-location":bt=Se[2].trim();break;case"content-type":Ct=Se[2].trim();break;case"content-transfer-encoding":lt=Se[2].trim()}}switch(++zt,lt.toLowerCase()){case"base64":Ft=rs(es(ct.slice(zt).join("")));break;case"quoted-printable":Ft=function(Ze){for(var Ae=[],_e=0;_e<Ze.length;++_e){for(var Je=Ze[_e];_e<=Ze.length&&Je.charAt(Je.length-1)=="=";)Je=Je.slice(0,Je.length-1)+Ze[++_e];Ae.push(Je)}for(var We=0;We<Ae.length;++We)Ae[We]=Ae[We].replace(/[=][0-9A-Fa-f]{2}/g,function($e){return String.fromCharCode(parseInt($e.slice(1),16))});return rs(Ae.join(`\r |
|
|
`))}(ct.slice(zt));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+lt)}var me=ie(ot,bt.slice(xt.length),Ft,{unsafe:!0});Ct&&(me.ctype=Ct)}function ie(ot,ct,xt,Ft){var bt=Ft&&Ft.unsafe;bt||h(ot);var lt=!bt&&zr.find(ot,ct);if(!lt){var Ct=ot.FullPaths[0];ct.slice(0,Ct.length)==Ct?Ct=ct:(Ct.slice(-1)!="/"&&(Ct+="/"),Ct=(Ct+ct).replace("//","/")),lt={name:n(ct),type:2},ot.FileIndex.push(lt),ot.FullPaths.push(Ct),bt||zr.utils.cfb_gc(ot)}return lt.content=xt,lt.size=xt?xt.length:0,Ft&&(Ft.CLSID&&(lt.clsid=Ft.CLSID),Ft.mt&&(lt.mt=Ft.mt),Ft.ct&&(lt.ct=Ft.ct)),lt}return r.find=function(ot,ct){var xt=ot.FullPaths.map(function(Zt){return Zt.toUpperCase()}),Ft=xt.map(function(Zt){var Se=Zt.split("/");return Se[Se.length-(Zt.slice(-1)=="/"?2:1)]}),bt=!1;ct.charCodeAt(0)===47?(bt=!0,ct=xt[0].slice(0,-1)+ct):bt=ct.indexOf("/")!==-1;var lt=ct.toUpperCase(),Ct=bt===!0?xt.indexOf(lt):Ft.indexOf(lt);if(Ct!==-1)return ot.FileIndex[Ct];var zt=!lt.match(Fc);for(lt=lt.replace(Da,""),zt&&(lt=lt.replace(Fc,"!")),Ct=0;Ct<xt.length;++Ct)if((zt?xt[Ct].replace(Fc,"!"):xt[Ct]).replace(Da,"")==lt||(zt?Ft[Ct].replace(Fc,"!"):Ft[Ct]).replace(Da,"")==lt)return ot.FileIndex[Ct];return null},r.read=function(ot,ct){var xt=ct&&ct.type;switch(xt||wn&&Buffer.isBuffer(ot)&&(xt="buffer"),xt||"base64"){case"file":return function(Ft,bt){return s(),i(t.readFileSync(Ft),bt)}(ot,ct);case"base64":return i(rs(es(ot)),ct);case"binary":return i(rs(ot),ct)}return i(ot,ct)},r.parse=i,r.write=function(ot,ct){var xt=p(ot,ct);switch(ct&&ct.type||"buffer"){case"file":return s(),t.writeFileSync(ct.filename,xt),xt;case"binary":return typeof xt=="string"?xt:C(xt);case"base64":return Dc(typeof xt=="string"?xt:C(xt));case"buffer":if(wn)return Buffer.isBuffer(xt)?xt:xo(xt);case"array":return typeof xt=="string"?rs(xt):xt}return xt},r.writeFile=function(ot,ct,xt){s();var Ft=p(ot,xt);t.writeFileSync(ct,Ft)},r.utils={cfb_new:function(ot){var ct={};return h(ct,ot),ct},cfb_add:ie,cfb_del:function(ot,ct){h(ot);var xt=zr.find(ot,ct);if(xt){for(var Ft=0;Ft<ot.FileIndex.length;++Ft)if(ot.FileIndex[Ft]==xt)return ot.FileIndex.splice(Ft,1),ot.FullPaths.splice(Ft,1),!0}return!1},cfb_mov:function(ot,ct,xt){h(ot);var Ft=zr.find(ot,ct);if(Ft){for(var bt=0;bt<ot.FileIndex.length;++bt)if(ot.FileIndex[bt]==Ft)return ot.FileIndex[bt].name=n(xt),ot.FullPaths[bt]=xt,!0}return!1},cfb_gc:function(ot){d(ot,!0)},ReadShift:$c,CheckField:Uv,prep_blob:oa,bconcat:Ji,use_zlib:function(ot){try{var ct=new ot.InflateRaw;if(ct._processChunk(new Uint8Array([3,0]),ct._finishFlushFlag),!ct.bytesRead)throw new Error("zlib does not expose bytesRead");m=ot}catch(xt){console.error("cannot use native zlib: "+(xt.message||xt))}},_deflateRaw:st,_inflateRaw:dt,consts:S},r}();function r3(t){return typeof t=="string"?wh(t):Array.isArray(t)?function(r){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(r)}(t):t}function Bc(t,r,e){if(typeof Deno<"u"){if(e&&typeof r=="string")switch(e){case"utf8":r=new TextEncoder(e).encode(r);break;case"binary":r=wh(r);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,r)}var n=e=="utf8"?Qs(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var a=new Blob([r3(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,t);if(typeof saveAs<"u")return saveAs(a,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:t,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=t,s.href=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var i=File(t);return i.open("w"),i.encoding="binary",Array.isArray(r)&&(r=el(r)),i.write(r),i.close(),r}catch(u){if(!u.message||!u.message.match(/onstruct/))throw u}throw new Error("cannot save file "+t)}function Ei(t){for(var r=Object.keys(t),e=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(t,r[n])&&e.push(r[n]);return e}function ev(t,r){for(var e=[],n=Ei(t),a=0;a!==n.length;++a)e[t[n[a]][r]]==null&&(e[t[n[a]][r]]=n[a]);return e}function Th(t){for(var r=[],e=Ei(t),n=0;n!==e.length;++n)r[t[e[n]]]=e[n];return r}function Eh(t){for(var r=[],e=Ei(t),n=0;n!==e.length;++n)r[t[e[n]]]=parseInt(e[n],10);return r}var Ch=new Date(1899,11,30,0,0,0);function aa(t,r){var e=t.getTime();return(e-(Ch.getTime()+6e4*(t.getTimezoneOffset()-Ch.getTimezoneOffset())))/864e5}var rv=new Date,n3=Ch.getTime()+6e4*(rv.getTimezoneOffset()-Ch.getTimezoneOffset()),nv=rv.getTimezoneOffset();function Ah(t){var r=new Date;return r.setTime(24*t*60*60*1e3+n3),r.getTimezoneOffset()!==nv&&r.setTime(r.getTime()+6e4*(r.getTimezoneOffset()-nv)),r}function i3(t){var r=0,e=0,n=!1,a=t.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!a)throw new Error("|"+t+"| is not an ISO8601 Duration");for(var o=1;o!=a.length;++o)if(a[o]){switch(e=1,o>3&&(n=!0),a[o].slice(a[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[o].slice(a[o].length-1));case"D":e*=24;case"H":e*=60;case"M":if(!n)throw new Error("Unsupported ISO Duration Field: M");e*=60}r+=e*parseInt(a[o],10)}return r}var iv=new Date("2017-02-19T19:06:09.000Z"),av=isNaN(iv.getFullYear())?new Date("2/19/17"):iv,a3=av.getFullYear()==2017;function di(t,r){var e=new Date(t);if(a3)return r>0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):r<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(av.getFullYear()==1917&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-1||e.setFullYear(e.getFullYear()+100),e}var a=t.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return t.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function Il(t,r){if(wn&&Buffer.isBuffer(t)){if(r){if(t[0]==255&&t[1]==254)return Qs(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return Qs(P1(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(t[0]==255&&t[1]==254)return Qs(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return Qs(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return e[o]||o})}catch{}for(var n=[],a=0;a!=t.length;++a)n.push(String.fromCharCode(t[a]));return n.join("")}function oi(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=oi(t[e]));return r}function yi(t,r){for(var e="";e.length<r;)e+=t;return e}function Eo(t){var r=Number(t);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(t))return r;var e=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return e*=100,""});return isNaN(r=Number(n))?(n=n.replace(/[(](.*)[)]/,function(a,o){return e=-e,o}),isNaN(r=Number(n))?r:r/e):r/e}var s3=["january","february","march","april","may","june","july","august","september","october","november","december"];function jc(t){var r=new Date(t),e=new Date(NaN),n=r.getYear(),a=r.getMonth(),o=r.getDate();if(isNaN(o))return e;var s=t.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&s3.indexOf(s)==-1)return e}else if(s.match(/[a-z]/))return e;return n<0||n>8099?e:(a>0||o>1)&&n!=101?r:t.match(/[^-0-9:,\/\\]/)?e:r}var o3=function(){var t="abacaba".split(/(:?b)/i).length==5;return function(r,e,n){if(t||typeof e=="string")return r.split(e);for(var a=r.split(e),o=[a[0]],s=1;s<a.length;++s)o.push(n),o.push(a[s]);return o}}();function sv(t){return t?t.content&&t.type?Il(t.content,!0):t.data?Pc(t.data):t.asNodeBuffer&&wn?Pc(t.asNodeBuffer().toString("binary")):t.asBinary?Pc(t.asBinary()):t._data&&t._data.getContent?Pc(Il(Array.prototype.slice.call(t._data.getContent(),0))):null:null}function ov(t){if(!t)return null;if(t.data)return N1(t.data);if(t.asNodeBuffer&&wn)return t.asNodeBuffer();if(t._data&&t._data.getContent){var r=t._data.getContent();return typeof r=="string"?N1(r):Array.prototype.slice.call(r)}return t.content&&t.type?t.content:null}function vs(t,r){for(var e=t.FullPaths||Ei(t.files),n=r.toLowerCase().replace(/[\/]/g,"\\"),a=n.replace(/\\/g,"/"),o=0;o<e.length;++o){var s=e[o].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||a==s)return t.files?t.files[e[o]]:t.FileIndex[o]}return null}function Hp(t,r){var e=vs(t,r);if(e==null)throw new Error("Cannot find file "+r+" in zip");return e}function Li(t,r,e){if(!e)return(n=Hp(t,r))&&n.name.slice(-4)===".bin"?ov(n):sv(n);var n;if(!r)return null;try{return Li(t,r)}catch{return null}}function ns(t,r,e){if(!e)return sv(Hp(t,r));if(!r)return null;try{return ns(t,r)}catch{return null}}function l3(t,r,e){return ov(Hp(t,r))}function lv(t){for(var r=t.FullPaths||Ei(t.files),e=[],n=0;n<r.length;++n)r[n].slice(-1)!="/"&&e.push(r[n].replace(/^Root Entry[\/]/,""));return e.sort()}function mn(t,r,e){if(t.FullPaths){var n;if(typeof e=="string")return n=wn?xo(e):function(a){for(var o=[],s=0,i=a.length+250,u=tl(a.length+255),l=0;l<a.length;++l){var f=a.charCodeAt(l);if(f<128)u[s++]=f;else if(f<2048)u[s++]=192|f>>6&31,u[s++]=128|63&f;else if(f>=55296&&f<57344){f=64+(1023&f);var c=1023&a.charCodeAt(++l);u[s++]=240|f>>8&7,u[s++]=128|f>>2&63,u[s++]=128|c>>6&15|(3&f)<<4,u[s++]=128|63&c}else u[s++]=224|f>>12&15,u[s++]=128|f>>6&63,u[s++]=128|63&f;s>i&&(o.push(u.slice(0,s)),s=0,u=tl(65535),i=65530)}return o.push(u.slice(0,s)),Ji(o)}(e),zr.utils.cfb_add(t,r,n);zr.utils.cfb_add(t,r,e)}else t.file(r,e)}function Wp(){return zr.utils.cfb_new()}function uv(t,r){switch(r.type){case"base64":return zr.read(t,{type:"base64"});case"binary":return zr.read(t,{type:"binary"});case"buffer":case"array":return zr.read(t,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function zc(t,r){if(t.charAt(0)=="/")return t.slice(1);var e=r.split("/");r.slice(-1)!="/"&&e.pop();for(var n=t.split("/");n.length!==0;){var a=n.shift();a===".."?e.pop():a!=="."&&e.push(a)}return e.join("/")}var Ci=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r |
|
|
`,u3=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,cv=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,va=Ci.match(cv)?cv:/<[^>]*>/g,c3=/<\w*:/,f3=/<(\/?)\w+:/;function en(t,r,e){for(var n={},a=0,o=0;a!==t.length&&(o=t.charCodeAt(a))!==32&&o!==10&&o!==13;++a);if(r||(n[0]=t.slice(0,a)),a===t.length)return n;var s=t.match(u3),i=0,u="",l=0,f="",c="",h=1;if(s)for(l=0;l!=s.length;++l){for(c=s[l],o=0;o!=c.length&&c.charCodeAt(o)!==61;++o);for(f=c.slice(0,o).trim();c.charCodeAt(o+1)==32;)++o;for(h=(a=c.charCodeAt(o+1))==34||a==39?1:0,u=c.slice(o+1+h,c.length-h),i=0;i!=f.length&&f.charCodeAt(i)!==58;++i);if(i===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),n[f]=u,n[f.toLowerCase()]=u;else{var d=(i===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(i+1);if(n[d]&&f.slice(i-3,i)=="ext")continue;n[d]=u,n[d.toLowerCase()]=u}}return n}function Js(t){return t.replace(f3,"<$1")}var fv={""":'"',"'":"'",">":">","<":"<","&":"&"},Vp=Th(fv),Fn=function(){var t=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function e(n){var a=n+"",o=a.indexOf("<![CDATA[");if(o==-1)return a.replace(t,function(i,u){return fv[i]||String.fromCharCode(parseInt(u,i.indexOf("x")>-1?16:10))||i}).replace(r,function(i,u){return String.fromCharCode(parseInt(u,16))});var s=a.indexOf("]]>");return e(a.slice(0,o))+a.slice(o+9,s)+e(a.slice(s+3))}}(),$p=/[&<>'"]/g,h3=/[\u0000-\u0008\u000b-\u001f]/g;function qn(t){return(t+"").replace($p,function(r){return Vp[r]}).replace(h3,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function hv(t){return qn(t).replace(/ /g,"_x0020_")}var dv=/[\u0000-\u001f]/g;function qp(t){return(t+"").replace($p,function(r){return Vp[r]}).replace(/\n/g,"<br/>").replace(dv,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var pv=function(){var t=/&#(\d+);/g;function r(e,n){return String.fromCharCode(parseInt(n,10))}return function(e){return e.replace(t,r)}}();function li(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Gp(t){for(var r="",e=0,n=0,a=0,o=0,s=0,i=0;e<t.length;)(n=t.charCodeAt(e++))<128?r+=String.fromCharCode(n):(a=t.charCodeAt(e++),n>191&&n<224?(s=(31&n)<<6,s|=63&a,r+=String.fromCharCode(s)):(o=t.charCodeAt(e++),n<240?r+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&o):(i=((7&n)<<18|(63&a)<<12|(63&o)<<6|63&(s=t.charCodeAt(e++)))-65536,r+=String.fromCharCode(55296+(i>>>10&1023)),r+=String.fromCharCode(56320+(1023&i)))));return r}function mv(t){var r,e,n,a=tl(2*t.length),o=1,s=0,i=0;for(e=0;e<t.length;e+=o)o=1,(n=t.charCodeAt(e))<128?r=n:n<224?(r=64*(31&n)+(63&t.charCodeAt(e+1)),o=2):n<240?(r=4096*(15&n)+64*(63&t.charCodeAt(e+1))+(63&t.charCodeAt(e+2)),o=3):(o=4,r=262144*(7&n)+4096*(63&t.charCodeAt(e+1))+64*(63&t.charCodeAt(e+2))+(63&t.charCodeAt(e+3)),i=55296+((r-=65536)>>>10&1023),r=56320+(1023&r)),i!==0&&(a[s++]=255&i,a[s++]=i>>>8,i=0),a[s++]=r%256,a[s++]=r>>>8;return a.slice(0,s).toString("ucs2")}function vv(t){return xo(t,"binary").toString("utf8")}var Mh="foo bar bazâð£",Xn=wn&&(vv(Mh)==Gp(Mh)&&vv||mv(Mh)==Gp(Mh)&&mv)||Gp,Qs=wn?function(t){return xo(t,"utf8").toString("binary")}:function(t){for(var r=[],e=0,n=0,a=0;e<t.length;)switch(n=t.charCodeAt(e++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(63&n)));break;case(n>=55296&&n<57344):n-=55296,a=t.charCodeAt(e++)-56320+(n<<10),r.push(String.fromCharCode(240+(a>>18&7))),r.push(String.fromCharCode(144+(a>>12&63))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(63&a)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(63&n)))}return r.join("")},Uc=function(){var t={};return function(r,e){var n=r+"|"+(e||"");return t[n]?t[n]:t[n]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",e||"")}}(),d3=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(r){for(var e=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,` |
|
|
`).replace(/<[^>]*>/g,""),n=0;n<t.length;++n)e=e.replace(t[n][0],t[n][1]);return e}}(),p3=function(){var t={};return function(r){return t[r]!==void 0?t[r]:t[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),m3=/<\/?(?:vt:)?variant>/g,v3=/<(?:vt:)([^>]*)>([\s\S]*)</;function gv(t,r){var e=en(t),n=t.match(p3(e.baseType))||[],a=[];if(n.length!=e.size){if(r.WTF)throw new Error("unexpected vector length "+n.length+" != "+e.size);return a}return n.forEach(function(o){var s=o.replace(m3,"").match(v3);s&&a.push({v:Xn(s[2]),t:s[1]})}),a}var bv=/(^\s|\s$|\n)/;function sa(t,r){return"<"+t+(r.match(bv)?' xml:space="preserve"':"")+">"+r+"</"+t+">"}function Hc(t){return Ei(t).map(function(r){return" "+r+'="'+t[r]+'"'}).join("")}function vr(t,r,e){return"<"+t+(e!=null?Hc(e):"")+(r!=null?(r.match(bv)?' xml:space="preserve"':"")+">"+r+"</"+t:"/")+">"}function Yp(t,r){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(r)throw e}return""}function Kp(t){if(wn&&Buffer.isBuffer(t))return t.toString("utf8");if(typeof t=="string")return t;if(typeof Uint8Array<"u"&&t instanceof Uint8Array)return Xn(el(Bp(t)));throw new Error("Bad input format: expected Buffer or string")}var Wc=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,g3="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",b3="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",y3="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",yv="http://schemas.openxmlformats.org/package/2006/content-types",w3="http://schemas.openxmlformats.org/package/2006/relationships",wv="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",_3="http://purl.org/dc/elements/1.1/",k3="http://purl.org/dc/terms/",x3="http://purl.org/dc/dcmitype/",_v="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Xp="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",kv="http://www.w3.org/2001/XMLSchema-instance",S3="http://www.w3.org/2001/XMLSchema",Nl=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Rh="urn:schemas-microsoft-com:office:office",Zp="urn:schemas-microsoft-com:office:excel",xv="urn:schemas-microsoft-com:office:spreadsheet",T3="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",E3="http://macVmlSchemaUri",C3="urn:schemas-microsoft-com:vml",A3="http://www.w3.org/TR/REC-html40",Sv=function(t){for(var r=[],e=0;e<t[0].length;++e)if(t[0][e])for(var n=0,a=t[0][e].length;n<a;n+=10240)r.push.apply(r,t[0][e].slice(n,n+10240));return r},Tv=wn?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(r){return Buffer.isBuffer(r)?r:xo(r)})):Sv(t)}:Sv,Ev=function(t,r,e){for(var n=[],a=r;a<e;a+=2)n.push(String.fromCharCode(Co(t,a)));return n.join("").replace(Da,"")},Jp=wn?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf16le",r,e).replace(Da,""):Ev(t,r,e)}:Ev,Cv=function(t,r,e){for(var n=[],a=r;a<r+e;++a)n.push(("0"+t[a].toString(16)).slice(-2));return n.join("")},Av=wn?function(t,r,e){return Buffer.isBuffer(t)?t.toString("hex",r,r+e):Cv(t,r,e)}:Cv,Mv=function(t,r,e){for(var n=[],a=r;a<e;a++)n.push(String.fromCharCode(Ru(t,a)));return n.join("")},Vc=wn?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf8",r,e):Mv(t,r,e)}:Mv,Rv=function(t,r){var e=is(t,r);return e>0?Vc(t,r+4,r+4+e-1):""},Ov=Rv,Iv=function(t,r){var e=is(t,r);return e>0?Vc(t,r+4,r+4+e-1):""},Nv=Iv,Pv=function(t,r){var e=2*is(t,r);return e>0?Vc(t,r+4,r+4+e-1):""},Dv=Pv,Fv=function(t,r){var e=is(t,r);return e>0?Jp(t,r+4,r+4+e):""},Lv=Fv,Bv=function(t,r){var e=is(t,r);return e>0?Vc(t,r+4,r+4+e):""},jv=Bv,zv=function(t,r){return function(e,n){for(var a=1-2*(e[n+7]>>>7),o=((127&e[n+7])<<4)+(e[n+6]>>>4&15),s=15&e[n+6],i=5;i>=0;--i)s=256*s+e[n+i];return o==2047?s==0?a*(1/0):NaN:(o==0?o=-1022:(o-=1023,s+=Math.pow(2,52)),a*Math.pow(2,o-52)*s)}(t,r)},Oh=zv,Qp=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};wn&&(Ov=function(t,r){if(!Buffer.isBuffer(t))return Rv(t,r);var e=t.readUInt32LE(r);return e>0?t.toString("utf8",r+4,r+4+e-1):""},Nv=function(t,r){if(!Buffer.isBuffer(t))return Iv(t,r);var e=t.readUInt32LE(r);return e>0?t.toString("utf8",r+4,r+4+e-1):""},Dv=function(t,r){if(!Buffer.isBuffer(t))return Pv(t,r);var e=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+e-1)},Lv=function(t,r){if(!Buffer.isBuffer(t))return Fv(t,r);var e=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+e)},jv=function(t,r){if(!Buffer.isBuffer(t))return Bv(t,r);var e=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+e)},Oh=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):zv(t,r)},Qp=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Ru=function(t,r){return t[r]},Co=function(t,r){return 256*t[r+1]+t[r]},M3=function(t,r){var e=256*t[r+1]+t[r];return e<32768?e:-1*(65535-e+1)},is=function(t,r){return t[r+3]*(1<<24)+(t[r+2]<<16)+(t[r+1]<<8)+t[r]},Pl=function(t,r){return t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]},R3=function(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};function $c(t,r){var e,n,a,o,s,i,u="",l=[];switch(r){case"dbcs":if(i=this.l,wn&&Buffer.isBuffer(this))u=this.slice(this.l,this.l+2*t).toString("utf16le");else for(s=0;s<t;++s)u+=String.fromCharCode(Co(this,i)),i+=2;t*=2;break;case"utf8":u=Vc(this,this.l,this.l+t);break;case"utf16le":t*=2,u=Jp(this,this.l,this.l+t);break;case"wstr":return $c.call(this,t,"dbcs");case"lpstr-ansi":u=Ov(this,this.l),t=4+is(this,this.l);break;case"lpstr-cp":u=Nv(this,this.l),t=4+is(this,this.l);break;case"lpwstr":u=Dv(this,this.l),t=4+2*is(this,this.l);break;case"lpp4":t=4+is(this,this.l),u=Lv(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+is(this,this.l),u=jv(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,u="";(a=Ru(this,this.l+t++))!==0;)l.push(yh(a));u=l.join("");break;case"_wstr":for(t=0,u="";(a=Co(this,this.l+t))!==0;)l.push(yh(a)),t+=2;t+=2,u=l.join("");break;case"dbcs-cont":for(u="",i=this.l,s=0;s<t;++s){if(this.lens&&this.lens.indexOf(i)!==-1)return a=Ru(this,i),this.l=i+1,o=$c.call(this,t-s,a?"dbcs-cont":"sbcs-cont"),l.join("")+o;l.push(yh(Co(this,i))),i+=2}u=l.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(u="",i=this.l,s=0;s!=t;++s){if(this.lens&&this.lens.indexOf(i)!==-1)return a=Ru(this,i),this.l=i+1,o=$c.call(this,t-s,a?"dbcs-cont":"sbcs-cont"),l.join("")+o;l.push(yh(Ru(this,i))),i+=1}u=l.join("");break;default:switch(t){case 1:return e=Ru(this,this.l),this.l++,e;case 2:return e=(r==="i"?M3:Co)(this,this.l),this.l+=2,e;case 4:case-4:return r!=="i"&&128&this[this.l+3]?(n=is(this,this.l),this.l+=4,n):(e=(t>0?Pl:R3)(this,this.l),this.l+=4,e);case 8:case-8:if(r==="f")return n=t==8?Oh(this,this.l):Oh([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;t=8;case 16:u=Av(this,this.l,t)}}return this.l+=t,u}var O3=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},I3=function(t,r,e){t[e]=255&r,t[e+1]=r>>8&255,t[e+2]=r>>16&255,t[e+3]=r>>24&255},N3=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255};function P3(t,r,e){var n=0,a=0;if(e==="dbcs"){for(a=0;a!=r.length;++a)N3(this,r.charCodeAt(a),this.l+2*a);n=2*r.length}else if(e==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=r.length;++a)this[this.l+a]=255&r.charCodeAt(a);n=r.length}else{if(e==="hex"){for(;a<t;++a)this[this.l++]=parseInt(r.slice(2*a,2*a+2),16)||0;return this}if(e==="utf16le"){var o=Math.min(this.l+t,this.length);for(a=0;a<Math.min(r.length,t);++a){var s=r.charCodeAt(a);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<o;)this[this.l++]=0;return this}switch(t){case 1:n=1,this[this.l]=255&r;break;case 2:n=2,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r;break;case 3:n=3,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r,r>>>=8,this[this.l+2]=255&r;break;case 4:n=4,O3(this,r,this.l);break;case 8:if(n=8,e==="f"){(function(i,u,l){var f=(u<0||1/u==-1/0?1:0)<<7,c=0,h=0,d=f?-u:u;isFinite(d)?d==0?c=h=0:(c=Math.floor(Math.log(d)/Math.LN2),h=d*Math.pow(2,52-c),c<=-1023&&(!isFinite(h)||h<Math.pow(2,52))?c=-1022:(h-=Math.pow(2,52),c+=1023)):(c=2047,h=isNaN(u)?26985:0);for(var p=0;p<=5;++p,h/=256)i[l+p]=255&h;i[l+6]=(15&c)<<4|15&h,i[l+7]=c>>4|f})(this,r,this.l);break}case 16:break;case-4:n=4,I3(this,r,this.l)}}return this.l+=n,this}function Uv(t,r){var e=Av(this,this.l,t.length>>1);if(e!==t)throw new Error(r+"Expected "+t+" saw "+e);this.l+=t.length>>1}function oa(t,r){t.l=r,t.read_shift=$c,t.chk=Uv,t.write_shift=P3}function ga(t,r){t.l+=r}function Me(t){var r=tl(t);return oa(r,0),r}function Ao(t,r,e){if(t){var n,a,o;oa(t,t.l||0);for(var s=t.length,i=0,u=0;t.l<s;){128&(i=t.read_shift(1))&&(i=(127&i)+((127&t.read_shift(1))<<7));var l=ff[i]||ff[65535];for(o=127&(n=t.read_shift(1)),a=1;a<4&&128&n;++a)o+=(127&(n=t.read_shift(1)))<<7*a;u=t.l+o;var f=l.f&&l.f(t,o,e);if(t.l=u,r(f,l,i))return}}}function qa(){var t=[],r=wn?256:2048,e=function(s){var i=Me(s);return oa(i,0),i},n=e(r),a=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n),n=null)},o=function(s){return n&&s<n.length-n.l?n:(a(),n=e(Math.max(s+1,r)))};return{next:o,push:function(s){a(),(n=s).l==null&&(n.l=n.length),o(r)},end:function(){return a(),Ji(t)},_bufs:t}}function Ye(t,r,e,n){var a,o=+r;if(!isNaN(o)){n||(n=ff[o].p||(e||[]).length||0),a=1+(o>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=t.next(a);o<=127?s.write_shift(1,o):(s.write_shift(1,128+(127&o)),s.write_shift(1,o>>7));for(var i=0;i!=4;++i){if(!(n>=128)){s.write_shift(1,n);break}s.write_shift(1,128+(127&n)),n>>=7}n>0&&Qp(e)&&t.push(e)}}function qc(t,r,e){var n=oi(t);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Hv(t,r,e){var n=oi(t);return n.s=qc(n.s,r.s,e),n.e=qc(n.e,r.s,e),n}function Gc(t,r){if(t.cRel&&t.c<0)for(t=oi(t);t.c<0;)t.c+=r>8?16384:256;if(t.rRel&&t.r<0)for(t=oi(t);t.r<0;)t.r+=r>8?1048576:r>5?65536:16384;var e=on(t);return t.cRel||t.cRel==null||(e=e.replace(/^([A-Z])/,"$$$1")),t.rRel||t.rRel==null||(e=function(n){return n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function t0(t,r){return t.s.r!=0||t.s.rRel||t.e.r!=(r.biff>=12?1048575:r.biff>=8?65536:16384)||t.e.rRel?t.s.c!=0||t.s.cRel||t.e.c!=(r.biff>=12?16383:255)||t.e.cRel?Gc(t.s,r.biff)+":"+Gc(t.e,r.biff):(t.s.rRel?"":"$")+Qi(t.s.r)+":"+(t.e.rRel?"":"$")+Qi(t.e.r):(t.s.cRel?"":"$")+Bi(t.s.c)+":"+(t.e.cRel?"":"$")+Bi(t.e.c)}function Wv(t){return parseInt(t.replace(/\$(\d+)$/,"$1"),10)-1}function Qi(t){return""+(t+1)}function Vv(t){for(var r=t.replace(/^\$([A-Z])/,"$1"),e=0,n=0;n!==r.length;++n)e=26*e+r.charCodeAt(n)-64;return e-1}function Bi(t){if(t<0)throw new Error("invalid column "+t);var r="";for(++t;t;t=Math.floor((t-1)/26))r=String.fromCharCode((t-1)%26+65)+r;return r}function Wi(t){for(var r=0,e=0,n=0;n<t.length;++n){var a=t.charCodeAt(n);a>=48&&a<=57?r=10*r+(a-48):a>=65&&a<=90&&(e=26*e+(a-64))}return{c:e-1,r:r-1}}function on(t){for(var r=t.c+1,e="";r;r=(r-1)/26|0)e=String.fromCharCode((r-1)%26+65)+e;return e+(t.r+1)}function gs(t){var r=t.indexOf(":");return r==-1?{s:Wi(t),e:Wi(t)}:{s:Wi(t.slice(0,r)),e:Wi(t.slice(r+1))}}function Tn(t,r){return r===void 0||typeof r=="number"?Tn(t.s,t.e):(typeof t!="string"&&(t=on(t)),typeof r!="string"&&(r=on(r)),t==r?t:t+":"+r)}function Un(t){var r={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,a=0,o=t.length;for(e=0;n<o&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)e=26*e+a;for(r.s.c=--e,e=0;n<o&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)e=10*e+a;if(r.s.r=--e,n===o||a!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,e=0;n!=o&&!((a=t.charCodeAt(n)-64)<1||a>26);++n)e=26*e+a;for(r.e.c=--e,e=0;n!=o&&!((a=t.charCodeAt(n)-48)<0||a>9);++n)e=10*e+a;return r.e.r=--e,r}function D3(t,r){var e=t.t=="d"&&r instanceof Date;if(t.z!=null)try{return t.w=ms(t.z,e?aa(r):r)}catch{}try{return t.w=ms((t.XF||{}).numFmtId||(e?14:0),e?aa(r):r)}catch{return""+r}}function nl(t,r,e){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),t.t=="e"?Mo[t.v]||t.v:D3(t,r??t.v))}function Dl(t,r){var e=r&&r.sheet?r.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function Yc(t,r){return function(e,n,a){var o=a||{},s=o.dense,i=e||(s?[]:{}),u=0,l=0;if(i&&o.origin!=null){if(typeof o.origin=="number")u=o.origin;else{var f=typeof o.origin=="string"?Wi(o.origin):o.origin;u=f.r,l=f.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var h=Un(i["!ref"]);c.s.c=h.s.c,c.s.r=h.s.r,c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),u==-1&&(c.e.r=u=h.e.r+1)}for(var d=0;d!=n.length;++d)if(n[d]){if(!Array.isArray(n[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var p=0;p!=n[d].length;++p)if(n[d][p]!==void 0){var m={v:n[d][p]},v=u+d,b=l+p;if(c.s.r>v&&(c.s.r=v),c.s.c>b&&(c.s.c=b),c.e.r<v&&(c.e.r=v),c.e.c<b&&(c.e.c=b),!n[d][p]||typeof n[d][p]!="object"||Array.isArray(n[d][p])||n[d][p]instanceof Date)if(Array.isArray(m.v)&&(m.f=n[d][p][1],m.v=m.v[0]),m.v===null)if(m.f)m.t="n";else if(o.nullError)m.t="e",m.v=0;else{if(!o.sheetStubs)continue;m.t="z"}else typeof m.v=="number"?m.t="n":typeof m.v=="boolean"?m.t="b":m.v instanceof Date?(m.z=o.dateNF||Qr[14],o.cellDates?(m.t="d",m.w=ms(m.z,aa(m.v))):(m.t="n",m.v=aa(m.v),m.w=ms(m.z,m.v))):m.t="s";else m=n[d][p];if(s)i[v]||(i[v]=[]),i[v][b]&&i[v][b].z&&(m.z=i[v][b].z),i[v][b]=m;else{var g=on({c:b,r:v});i[g]&&i[g].z&&(m.z=i[g].z),i[g]=m}}}return c.s.c<1e7&&(i["!ref"]=Tn(c)),i}(null,t,r)}function Hs(t,r){return r||(r=Me(4)),r.write_shift(4,t),r}function ba(t){var r=t.read_shift(4);return r===0?"":t.read_shift(r,"dbcs")}function ta(t,r){var e=!1;return r==null&&(e=!0,r=Me(4+2*t.length)),r.write_shift(4,t.length),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}function F3(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function e0(t,r){var e=t.l,n=t.read_shift(1),a=ba(t),o=[],s={t:a,h:a};if(1&n){for(var i=t.read_shift(4),u=0;u!=i;++u)o.push(F3(t));s.r=o}else s.r=[{ich:0,ifnt:0}];return t.l=e+r,s}var L3=e0;function B3(t,r){var e=!1;return r==null&&(e=!0,r=Me(23+4*t.t.length)),r.write_shift(1,1),ta(t.t,r),r.write_shift(4,1),function(n,a){a||(a=Me(4)),a.write_shift(2,0),a.write_shift(2,0)}({},r),e?r.slice(0,r.l):r}function bs(t){var r=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:r,iStyleRef:e}}function Fl(t,r){return r==null&&(r=Me(8)),r.write_shift(-4,t.c),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}function Ll(t){var r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:r}}function Bl(t,r){return r==null&&(r=Me(4)),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}var j3=ba,$v=ta;function r0(t){var r=t.read_shift(4);return r===0||r===4294967295?"":t.read_shift(r,"dbcs")}function Ih(t,r){var e=!1;return r==null&&(e=!0,r=Me(127)),r.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}var z3=ba,n0=r0,i0=Ih;function a0(t){var r=t.slice(t.l,t.l+4),e=1&r[0],n=2&r[0];t.l+=4;var a=n===0?Oh([0,0,0,0,252&r[0],r[1],r[2],r[3]],0):Pl(r,0)>>2;return e?a/100:a}function qv(t,r){r==null&&(r=Me(4));var e=0,n=0,a=100*t;if(t==(0|t)&&t>=-536870912&&t<1<<29?n=1:a==(0|a)&&a>=-536870912&&a<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);r.write_shift(-4,((e?a:t)<<2)+(e+2))}function Gv(t){var r={s:{},e:{}};return r.s.r=t.read_shift(4),r.e.r=t.read_shift(4),r.s.c=t.read_shift(4),r.e.c=t.read_shift(4),r}var jl=Gv,Ou=function(t,r){return r||(r=Me(16)),r.write_shift(4,t.s.r),r.write_shift(4,t.e.r),r.write_shift(4,t.s.c),r.write_shift(4,t.e.c),r};function ya(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Iu(t,r){return(r||Me(8)).write_shift(8,t,"f")}function Nh(t,r){if(r||(r=Me(8)),!t||t.auto)return r.write_shift(4,0),r.write_shift(4,0),r;t.index!=null?(r.write_shift(1,2),r.write_shift(1,t.index)):t.theme!=null?(r.write_shift(1,6),r.write_shift(1,t.theme)):(r.write_shift(1,5),r.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),r.write_shift(2,e),t.rgb&&t.theme==null){var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}else r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);return r}function Yv(t,r){var e=t.read_shift(4);switch(e){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[t.read_shift(4)]||""}if(e>400)throw new Error("Unsupported Clipboard: "+e.toString(16));return t.l-=4,t.read_shift(0,r==1?"lpstr":"lpwstr")}var ea=80,U3=[ea,81],s0={1:{n:"CodePage",t:2},2:{n:"Category",t:ea},3:{n:"PresentationFormat",t:ea},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:ea},15:{n:"Company",t:ea},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:ea},27:{n:"ContentStatus",t:ea},28:{n:"Language",t:ea},29:{n:"Version",t:ea},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},o0={1:{n:"CodePage",t:2},2:{n:"Title",t:ea},3:{n:"Subject",t:ea},4:{n:"Author",t:ea},5:{n:"Keywords",t:ea},6:{n:"Comments",t:ea},7:{n:"Template",t:ea},8:{n:"LastAuthor",t:ea},9:{n:"RevNumber",t:ea},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:ea},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Kv={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},H3=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function W3(t){return t.map(function(r){return[r>>16&255,r>>8&255,255&r]})}var Nu=oi(W3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Mo={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Xv={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},l0={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ph={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Zv(t,r){var e,n=function(u){for(var l=[],f=Ei(u),c=0;c!==f.length;++c)l[u[f[c]]]==null&&(l[u[f[c]]]=[]),l[u[f[c]]].push(f[c]);return l}(l0),a=[];a[a.length]=Ci,a[a.length]=vr("Types",null,{xmlns:yv,"xmlns:xsd":S3,"xmlns:xsi":kv}),a=a.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(u){return vr("Default",null,{Extension:u[0],ContentType:u[1]})}));var o=function(u){t[u]&&t[u].length>0&&(e=t[u][0],a[a.length]=vr("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Ph[u][r.bookType]||Ph[u].xlsx}))},s=function(u){(t[u]||[]).forEach(function(l){a[a.length]=vr("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:Ph[u][r.bookType]||Ph[u].xlsx})})},i=function(u){(t[u]||[]).forEach(function(l){a[a.length]=vr("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:n[u][0]})})};return o("workbooks"),s("sheets"),s("charts"),i("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(i),i("vba"),i("comments"),i("threadedcomments"),i("drawings"),s("metadata"),i("people"),a.length>2&&(a[a.length]="</Types>",a[1]=a[1].replace("/>",">")),a.join("")}var kn={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Kc(t){var r=t.lastIndexOf("/");return t.slice(0,r+1)+"_rels/"+t.slice(r+1)+".rels"}function Xc(t,r){var e={"!id":{}};if(!t)return e;r.charAt(0)!=="/"&&(r="/"+r);var n={};return(t.match(va)||[]).forEach(function(a){var o=en(a);if(o[0]==="<Relationship"){var s={};s.Type=o.Type,s.Target=o.Target,s.Id=o.Id,o.TargetMode&&(s.TargetMode=o.TargetMode);var i=o.TargetMode==="External"?o.Target:zc(o.Target,r);e[i]=s,n[o.Id]=s}}),e["!id"]=n,e}function Pu(t){var r=[Ci,vr("Relationships",null,{xmlns:w3})];return Ei(t["!id"]).forEach(function(e){r[r.length]=vr("Relationship",null,t["!id"][e])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Gn(t,r,e,n,a,o){if(a||(a={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),r<0)for(r=t["!idx"];t["!id"]["rId"+r];++r);if(t["!idx"]=r+1,a.Id="rId"+r,a.Type=n,a.Target=e,[kn.HLINK,kn.XPATH,kn.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),t["!id"][a.Id])throw new Error("Cannot rewrite rId "+r);return t["!id"][a.Id]=a,t[("/"+a.Target).replace("//","/")]=a,r}function Jv(t,r,e){return[' <rdf:Description rdf:about="'+t+`"> |
|
|
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(e||"odf")+"#"+r+`"/> |
|
|
`,` </rdf:Description> |
|
|
`].join("")}function Qv(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Np.version+"</meta:generator></office:meta></office:document-meta>"}var ys=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],V3=function(){for(var t=new Array(ys.length),r=0;r<ys.length;++r){var e=ys[r],n="(?:"+e[0].slice(0,e[0].indexOf(":"))+":)"+e[0].slice(e[0].indexOf(":")+1);t[r]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return t}();function tg(t){var r={};t=Xn(t);for(var e=0;e<ys.length;++e){var n=ys[e],a=t.match(V3[e]);a!=null&&a.length>0&&(r[n[1]]=Fn(a[1])),n[2]==="date"&&r[n[1]]&&(r[n[1]]=di(r[n[1]]))}return r}function u0(t,r,e,n,a){a[t]==null&&r!=null&&r!==""&&(a[t]=r,r=qn(r),n[n.length]=e?vr(t,r,e):sa(t,r))}function eg(t,r){var e=r||{},n=[Ci,vr("cp:coreProperties",null,{"xmlns:cp":g3,"xmlns:dc":_3,"xmlns:dcterms":k3,"xmlns:dcmitype":x3,"xmlns:xsi":kv})],a={};if(!t&&!e.Props)return n.join("");t&&(t.CreatedDate!=null&&u0("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:Yp(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),t.ModifiedDate!=null&&u0("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:Yp(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var o=0;o!=ys.length;++o){var s=ys[o],i=e.Props&&e.Props[s[1]]!=null?e.Props[s[1]]:t?t[s[1]]:null;i===!0?i="1":i===!1?i="0":typeof i=="number"&&(i=String(i)),i!=null&&u0(s[0],i,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var zl=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],rg=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ng(t,r,e,n){var a=[];if(typeof t=="string")a=gv(t,n);else for(var o=0;o<t.length;++o)a=a.concat(t[o].map(function(f){return{v:f}}));var s=typeof r=="string"?gv(r,n).map(function(f){return f.v}):r,i=0,u=0;if(s.length>0)for(var l=0;l!==a.length;l+=2){switch(u=+a[l+1].v,a[l].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":e.Worksheets=u,e.SheetNames=s.slice(i,i+u);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":e.NamedRanges=u,e.DefinedNames=s.slice(i,i+u);break;case"Charts":case"Diagramme":e.Chartsheets=u,e.ChartNames=s.slice(i,i+u)}i+=u}}function ig(t){var r=[],e=vr;return t||(t={}),t.Application="SheetJS",r[r.length]=Ci,r[r.length]=vr("Properties",null,{xmlns:y3,"xmlns:vt":Xp}),zl.forEach(function(n){if(t[n[1]]!==void 0){var a;switch(n[2]){case"string":a=qn(String(t[n[1]]));break;case"bool":a=t[n[1]]?"true":"false"}a!==void 0&&(r[r.length]=e(n[0],a))}}),r[r.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+qn(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var $3=/<[^>]+>[^<]*/g;function ag(t){var r=[Ci,vr("Properties",null,{xmlns:b3,"xmlns:vt":Xp})];if(!t)return r.join("");var e=1;return Ei(t).forEach(function(n){++e,r[r.length]=vr("property",function(a,o){switch(typeof a){case"string":var s=vr("vt:lpwstr",qn(a));return s=s.replace(/"/g,"_x0022_"),s;case"number":return vr((0|a)==a?"vt:i4":"vt:r8",qn(String(a)));case"boolean":return vr("vt:bool",a?"true":"false")}if(a instanceof Date)return vr("vt:filetime",Yp(a));throw new Error("Unable to serialize "+a)}(t[n]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:qn(n)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var c0,f0={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function q3(t,r,e){c0||(c0=Th(f0)),t[r=c0[r]||r]=e}function h0(t){var r=t.read_shift(4),e=t.read_shift(4);return new Date(1e3*(e/1e7*Math.pow(2,32)+r/1e7-11644473600)).toISOString().replace(/\.000/,"")}function sg(t,r,e){var n=t.l,a=t.read_shift(0,"lpstr-cp");if(e)for(;t.l-n&3;)++t.l;return a}function og(t,r,e){var n=t.read_shift(0,"lpwstr");return n}function lg(t,r,e){return r===31?og(t):sg(t,0,e)}function ug(t,r,e){return lg(t,r,e===!1?0:4)}function G3(t){var r=t.l,e=Dh(t,81);return t[t.l]==0&&t[t.l+1]==0&&t.l-r&2&&(t.l+=2),[e,Dh(t,3)]}function cg(t,r){for(var e=t.read_shift(4),n={},a=0;a!=e;++a){var o=t.read_shift(4),s=t.read_shift(4);n[o]=t.read_shift(s,r===1200?"utf16le":"utf8").replace(Da,"").replace(Fc,"!"),r===1200&&s%2&&(t.l+=2)}return 3&t.l&&(t.l=t.l>>3<<2),n}function fg(t){var r=t.read_shift(4),e=t.slice(t.l,t.l+r);return t.l+=r,(3&r)>0&&(t.l+=4-(3&r)&3),e}function Dh(t,r,e){var n,a=t.read_shift(2),o=e||{};if(t.l+=2,r!==12&&a!==r&&U3.indexOf(r)===-1&&((65534&r)!=4126||(65534&a)!=4126))throw new Error("Expected type "+r+" saw "+a);switch(r===12?a:r){case 2:return n=t.read_shift(2,"i"),o.raw||(t.l+=2),n;case 3:return n=t.read_shift(4,"i");case 11:return t.read_shift(4)!==0;case 19:return n=t.read_shift(4);case 30:return sg(t,0,4).replace(Da,"");case 31:return og(t);case 64:return h0(t);case 65:return fg(t);case 71:return function(s){var i={};return i.Size=s.read_shift(4),s.l+=i.Size+3-(i.Size-1)%4,i}(t);case 80:return ug(t,a,!o.raw).replace(Da,"");case 81:return function(s,i){if(!i)throw new Error("VtUnalignedString must have positive length");return lg(s,i,0)}(t,a).replace(Da,"");case 4108:return function(s){for(var i=s.read_shift(4),u=[],l=0;l<i/2;++l)u.push(G3(s));return u}(t);case 4126:case 4127:return a==4127?function(s){for(var i=s.read_shift(4),u=[],l=0;l!=i;++l){var f=s.l;u[l]=s.read_shift(0,"lpwstr").replace(Da,""),s.l-f&2&&(s.l+=2)}return u}(t):function(s){for(var i=s.read_shift(4),u=[],l=0;l!=i;++l)u[l]=s.read_shift(0,"lpstr-cp").replace(Da,"");return u}(t);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a)}}function hg(t,r){var e=Me(4),n=Me(4);switch(e.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,r);break;case 5:(n=Me(8)).write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=function(a){var o=(typeof a=="string"?new Date(Date.parse(a)):a).getTime()/1e3+11644473600,s=o%Math.pow(2,32),i=(o-s)/Math.pow(2,32);i*=1e7;var u=(s*=1e7)/Math.pow(2,32)|0;u>0&&(s%=Math.pow(2,32),i+=u);var l=Me(8);return l.write_shift(4,s),l.write_shift(4,i),l}(r);break;case 31:case 80:for((n=Me(4+2*(r.length+1)+(r.length%2?0:2))).write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+r)}return Ji([e,n])}function dg(t,r){var e=t.l,n=t.read_shift(4),a=t.read_shift(4),o=[],s=0,i=0,u=-1,l={};for(s=0;s!=a;++s){var f=t.read_shift(4),c=t.read_shift(4);o[s]=[f,c+e]}o.sort(function(g,y){return g[1]-y[1]});var h={};for(s=0;s!=a;++s){if(t.l!==o[s][1]){var d=!0;if(s>0&&r)switch(r[o[s-1][0]].t){case 2:t.l+2===o[s][1]&&(t.l+=2,d=!1);break;case 80:case 4108:t.l<=o[s][1]&&(t.l=o[s][1],d=!1)}if((!r||s==0)&&t.l<=o[s][1]&&(d=!1,t.l=o[s][1]),d)throw new Error("Read Error: Expected address "+o[s][1]+" at "+t.l+" :"+s)}if(r){var p=r[o[s][0]];if(h[p.n]=Dh(t,p.t,{raw:!0}),p.p==="version"&&(h[p.n]=String(h[p.n]>>16)+"."+("0000"+String(65535&h[p.n])).slice(-4)),p.n=="CodePage")switch(h[p.n]){case 0:h[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:zs(i=h[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+h[p.n])}}else if(o[s][0]===1){if(i=h.CodePage=Dh(t,2),zs(i),u!==-1){var m=t.l;t.l=o[u][1],l=cg(t,i),t.l=m}}else if(o[s][0]===0){if(i===0){u=s,t.l=o[s+1][1];continue}l=cg(t,i)}else{var v,b=l[o[s][0]];switch(t[t.l]){case 65:t.l+=4,v=fg(t);break;case 30:case 31:t.l+=4,v=ug(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 3:t.l+=4,v=t.read_shift(4,"i");break;case 19:t.l+=4,v=t.read_shift(4);break;case 5:t.l+=4,v=t.read_shift(8,"f");break;case 11:t.l+=4,v=Ai(t,4);break;case 64:t.l+=4,v=di(h0(t));break;default:throw new Error("unparsed value: "+t[t.l])}h[b]=v}}return t.l=e+n,h}var pg=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Y3(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function mg(t,r,e){var n=Me(8),a=[],o=[],s=8,i=0,u=Me(8),l=Me(8);if(u.write_shift(4,2),u.write_shift(4,1200),l.write_shift(4,1),o.push(u),a.push(l),s+=8+u.length,!r){(l=Me(8)).write_shift(4,0),a.unshift(l);var f=[Me(4)];for(f[0].write_shift(4,t.length),i=0;i<t.length;++i){var c=t[i][0];for((u=Me(8+2*(c.length+1)+(c.length%2?0:2))).write_shift(4,i+2),u.write_shift(4,c.length+1),u.write_shift(0,c,"dbcs");u.l!=u.length;)u.write_shift(1,0);f.push(u)}u=Ji(f),o.unshift(u),s+=8+u.length}for(i=0;i<t.length;++i)if((!r||r[t[i][0]])&&!(pg.indexOf(t[i][0])>-1||rg.indexOf(t[i][0])>-1)&&t[i][1]!=null){var h=t[i][1],d=0;if(r){var p=e[d=+r[t[i][0]]];if(p.p=="version"&&typeof h=="string"){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}u=hg(p.t,h)}else{var v=Y3(h);v==-1&&(v=31,h=String(h)),u=hg(v,h)}o.push(u),(l=Me(8)).write_shift(4,r?d:2+i),a.push(l),s+=8+u.length}var b=8*(o.length+1);for(i=0;i<o.length;++i)a[i].write_shift(4,b),b+=o[i].length;return n.write_shift(4,s),n.write_shift(4,o.length),Ji([n].concat(a).concat(o))}function vg(t,r,e){var n=t.content;if(!n)return{};oa(n,0);var a,o,s,i,u=0;n.chk("feff","Byte Order: "),n.read_shift(2);var l=n.read_shift(4),f=n.read_shift(16);if(f!==zr.utils.consts.HEADER_CLSID&&f!==e)throw new Error("Bad PropertySet CLSID "+f);if((a=n.read_shift(4))!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(o=n.read_shift(16),i=n.read_shift(4),a===1&&i!==n.l)throw new Error("Length mismatch: "+i+" !== "+n.l);a===2&&(s=n.read_shift(16),u=n.read_shift(4));var c,h=dg(n,r),d={SystemIdentifier:l};for(var p in h)d[p]=h[p];if(d.FMTID=o,a===1)return d;if(u-n.l==2&&(n.l+=2),n.l!==u)throw new Error("Length mismatch 2: "+n.l+" !== "+u);try{c=dg(n,null)}catch{}for(p in c)d[p]=c[p];return d.FMTID=[o,s],d}function gg(t,r,e,n,a,o){var s=Me(a?68:48),i=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,zr.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,r,"hex"),s.write_shift(4,a?68:48);var u=mg(t,e,n);if(i.push(u),a){var l=mg(a,null,null);s.write_shift(16,o,"hex"),s.write_shift(4,68+u.length),i.push(l)}return Ji(i)}function il(t,r){return t.read_shift(r),null}function Ai(t,r){return t.read_shift(r)===1}function La(t,r){return r||(r=Me(2)),r.write_shift(2,+!!t),r}function ji(t){return t.read_shift(2,"u")}function ws(t,r){return r||(r=Me(2)),r.write_shift(2,t),r}function bg(t,r){return function(e,n,a){for(var o=[],s=e.l+n;e.l<s;)o.push(a(e,s-e.l));if(s!==e.l)throw new Error("Slurp error");return o}(t,r,ji)}function yg(t,r,e){return e||(e=Me(2)),e.write_shift(1,r=="e"?+t:+!!t),e.write_shift(1,r=="e"?1:0),e}function Zc(t,r,e){var n=t.read_shift(e&&e.biff>=12?2:1),a="sbcs-cont";return e&&e.biff,e&&e.biff!=8?e.biff==12&&(a="wstr"):t.read_shift(1)&&(a="dbcs-cont"),e.biff>=2&&e.biff<=5&&(a="cpstr"),n?t.read_shift(n,a):""}function K3(t){var r,e=t.read_shift(2),n=t.read_shift(1),a=4&n,o=8&n,s=1+(1&n),i=0,u={};o&&(i=t.read_shift(2)),a&&(r=t.read_shift(4));var l=s==2?"dbcs-cont":"sbcs-cont",f=e===0?"":t.read_shift(e,l);return o&&(t.l+=4*i),a&&(t.l+=r),u.t=f,o||(u.raw="<t>"+u.t+"</t>",u.r=u.t),u}function X3(t){var r=t.t||"",e=Me(3);e.write_shift(2,r.length),e.write_shift(1,1);var n=Me(2*r.length);return n.write_shift(2*r.length,r,"utf16le"),Ji([e,n])}function Ul(t,r,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(r,"cpstr");if(e.biff>=12)return t.read_shift(r,"dbcs-cont")}return t.read_shift(1)===0?t.read_shift(r,"sbcs-cont"):t.read_shift(r,"dbcs-cont")}function Jc(t,r,e){var n=t.read_shift(e&&e.biff==2?1:2);return n===0?(t.l++,""):Ul(t,n,e)}function Hl(t,r,e){if(e.biff>5)return Jc(t,0,e);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function wg(t,r,e){return e||(e=Me(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function Z3(t,r){var e=t.read_shift(16);switch(e){case"e0c9ea79f9bace118c8200aa004ba90b":return function(n){var a=n.read_shift(4),o=n.l,s=!1;a>24&&(n.l+=a-24,n.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(s=!0),n.l=o);var i=n.read_shift((s?a-24:a)>>1,"utf16le").replace(Da,"");return s&&(n.l+=24),i}(t);case"0303000000000000c000000000000046":return function(n){for(var a=n.read_shift(2),o="";a-- >0;)o+="../";var s=n.read_shift(0,"lpstr-ansi");if(n.l+=2,n.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(n.read_shift(4)===0)return o+s.replace(/\\/g,"/");var i=n.read_shift(4);if(n.read_shift(2)!=3)throw new Error("Bad FileMoniker");return o+n.read_shift(i>>1,"utf16le").replace(Da,"")}(t);default:throw new Error("Unsupported Moniker "+e)}}function Fh(t){var r=t.read_shift(4);return r>0?t.read_shift(r,"utf16le").replace(Da,""):""}function _g(t,r){r||(r=Me(6+2*t.length)),r.write_shift(4,1+t.length);for(var e=0;e<t.length;++e)r.write_shift(2,t.charCodeAt(e));return r.write_shift(2,0),r}function J3(t){var r=Me(512),e=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),o=a>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3}r.write_shift(4,2),r.write_shift(4,o);var s=[8,6815827,6619237,4849780,83];for(e=0;e<s.length;++e)r.write_shift(4,s[e]);if(o==28)_g(n=n.slice(1),r);else if(2&o){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<s.length;++e)r.write_shift(1,parseInt(s[e],16));var i=a>-1?n.slice(0,a):n;for(r.write_shift(4,2*(i.length+1)),e=0;e<i.length;++e)r.write_shift(2,i.charCodeAt(e));r.write_shift(2,0),8&o&&_g(a>-1?n.slice(a+1):"",r)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<s.length;++e)r.write_shift(1,parseInt(s[e],16));for(var u=0;n.slice(3*u,3*u+3)=="../"||n.slice(3*u,3*u+3)=="..\\";)++u;for(r.write_shift(2,u),r.write_shift(4,n.length-3*u+1),e=0;e<n.length-3*u;++e)r.write_shift(1,255&n.charCodeAt(e+3*u));for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),e=0;e<6;++e)r.write_shift(4,0)}return r.slice(0,r.l)}function kg(t){return[t.read_shift(1),t.read_shift(1),t.read_shift(1),t.read_shift(1)]}function xg(t,r){var e=kg(t);return e[3]=0,e}function to(t){return{r:t.read_shift(2),c:t.read_shift(2),ixfe:t.read_shift(2)}}function Wl(t,r,e,n){return n||(n=Me(6)),n.write_shift(2,t),n.write_shift(2,r),n.write_shift(2,e||0),n}function Q3(t,r,e){var n=e.biff>8?4:2;return[t.read_shift(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function Sg(t){return[t.read_shift(2),a0(t)]}function Lh(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r},e:{c:t.read_shift(2),r:e}}}function Tg(t,r){return r||(r=Me(8)),r.write_shift(2,t.s.r),r.write_shift(2,t.e.r),r.write_shift(2,t.s.c),r.write_shift(2,t.e.c),r}function Eg(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(1),r},e:{c:t.read_shift(1),r:e}}}var t4=Eg;function Cg(t){t.l+=4;var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2);return t.l+=12,[e,r,n]}function wa(t){t.l+=2,t.l+=t.read_shift(2)}var e4={0:wa,4:wa,5:wa,6:wa,7:function(t){return t.l+=4,t.cf=t.read_shift(2),{}},8:wa,9:wa,10:wa,11:wa,12:wa,13:function(t){var r={};return t.l+=4,t.l+=16,r.fSharedNote=t.read_shift(2),t.l+=4,r},14:wa,15:wa,16:wa,17:wa,18:wa,19:wa,20:wa,21:Cg};function Bh(t,r){var e={BIFFVer:0,dt:0};switch(e.BIFFVer=t.read_shift(2),(r-=2)>=2&&(e.dt=t.read_shift(2),t.l-=2),e.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+e.BIFFVer)}return t.read_shift(r),e}function d0(t,r,e){var n=1536,a=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;default:throw new Error("unsupported BIFF version")}var o=Me(a);return o.write_shift(2,n),o.write_shift(2,r),a>4&&o.write_shift(2,29282),a>6&&o.write_shift(2,1997),a>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function r4(t,r){var e=!r||r.biff>=8?2:1,n=Me(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,r.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function Ag(t,r,e){var n=0;e&&e.biff==2||(n=t.read_shift(2));var a=t.read_shift(2);return e&&e.biff==2&&(n=1-(a>>15),a&=32767),[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},a]}function n4(t,r,e,n){var a=e&&e.biff==5;n||(n=Me(a?3+r.length:5+2*r.length)),n.write_shift(2,t),n.write_shift(a?1:2,r.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*r.length,r,a?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}var i4=Hl;function Mg(t,r,e){var n=t.l+r,a=e.biff!=8&&e.biff?2:4,o=t.read_shift(a),s=t.read_shift(a),i=t.read_shift(2),u=t.read_shift(2);return t.l=n,{s:{r:o,c:i},e:{r:s,c:u}}}function Rg(t,r,e,n){var a=e&&e.biff==5;n||(n=Me(a?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,r<<4));var o=0;return t.numFmtId>0&&a&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function Og(t,r,e){var n=to(t);e.biff!=2&&r!=9||++t.l;var a=function(o){var s=o.read_shift(1);return o.read_shift(1)===1?s:s===1}(t);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}var Ig=function(t,r,e){return r===0?"":Hl(t,0,e)};function Ng(t,r,e){var n,a=t.read_shift(2),o={fBuiltIn:1&a,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return e.sbcch===14849&&(n=function(s,i,u){s.l+=4,i-=4;var l=s.l+i,f=Zc(s,0,u),c=s.read_shift(2);if(c!==(l-=s.l))throw new Error("Malformed AddinUdf: padding = "+l+" != "+c);return s.l+=c,f}(t,r-2,e)),o.body=n||t.read_shift(r-2),typeof n=="string"&&(o.Name=n),o}var a4=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Pg(t,r,e){var n=t.l+r,a=t.read_shift(2),o=t.read_shift(1),s=t.read_shift(1),i=t.read_shift(e&&e.biff==2?1:2),u=0;(!e||e.biff>=5)&&(e.biff!=5&&(t.l+=2),u=t.read_shift(2),e.biff==5&&(t.l+=2),t.l+=4);var l=Ul(t,s,e);32&a&&(l=a4[l.charCodeAt(0)]);var f=n-t.l;e&&e.biff==2&&--f;var c=n!=t.l&&i!==0&&f>0?function(h,d,p,m){var v,b=h.l+d,g=of(h,m,p);return b!==h.l&&(v=sf(h,b-h.l,g,p)),[g,v]}(t,f,e,i):[];return{chKey:o,Name:l,itab:u,rgce:c}}function Dg(t,r,e){if(e.biff<8)return function(s,i,u){s[s.l+1]==3&&s[s.l]++;var l=Zc(s,0,u);return l.charCodeAt(0)==3?l.slice(1):l}(t,0,e);for(var n=[],a=t.l+r,o=t.read_shift(e.biff>8?4:2);o--!=0;)n.push(Q3(t,e.biff,e));if(t.l!=a)throw new Error("Bad ExternSheet: "+t.l+" != "+a);return n}function Fg(t,r,e){var n=t4(t);switch(e.biff){case 2:t.l++,r-=7;break;case 3:case 4:t.l+=2,r-=8;break;default:t.l+=6,r-=12}return[n,d6(t,r,e)]}var s4={8:function(t,r){var e=t.l+r;t.l+=10;var n=t.read_shift(2);t.l+=4,t.l+=2,t.l+=2,t.l+=2,t.l+=4;var a=t.read_shift(1);return t.l+=a,t.l=e,{fmt:n}}};function o4(t){var r=Me(24),e=Wi(t[0]);r.write_shift(2,e.r),r.write_shift(2,e.r),r.write_shift(2,e.c),r.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)r.write_shift(1,parseInt(n[a],16));return Ji([r,J3(t[1])])}function l4(t){var r=t[1].Tooltip,e=Me(10+2*(r.length+1));e.write_shift(2,2048);var n=Wi(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var a=0;a<r.length;++a)e.write_shift(2,r.charCodeAt(a));return e.write_shift(2,0),e}function Lg(t,r,e){if(!e.cellStyles)return ga(t,r);var n=e&&e.biff>=12?4:2,a=t.read_shift(n),o=t.read_shift(n),s=t.read_shift(n),i=t.read_shift(n),u=t.read_shift(2);n==2&&(t.l+=2);var l={s:a,e:o,w:s,ixfe:i,flags:u};return(e.biff>=5||!e.biff)&&(l.level=u>>8&7),l}var u4=to,c4=bg,f4=Jc,h4=[2,3,48,49,131,139,140,245],p0=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=Th({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function e(a,o){var s=o||{};s.dateNF||(s.dateNF="yyyymmdd");var i=Yc(function(u,l){var f=[],c=tl(1);switch(l.type){case"base64":c=rs(es(u));break;case"binary":c=rs(u);break;case"buffer":case"array":c=u}oa(c,0);var h=c.read_shift(1),d=!!(136&h),p=!1,m=!1;switch(h){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:p=!0,d=!0;break;case 140:m=!0;break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var v=0,b=521;h==2&&(v=c.read_shift(2)),c.l+=3,h!=2&&(v=c.read_shift(4)),v>1048576&&(v=1e6),h!=2&&(b=c.read_shift(2));var g=c.read_shift(2),y=l.codepage||1252;h!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(y=t[c[c.l]]),c.l+=1,c.l+=2),m&&(c.l+=36);for(var k=[],S={},C=Math.min(c.length,h==2?521:b-10-(p?264:0)),O=m?32:11;c.l<C&&c[c.l]!=13;)switch((S={}).name=Lp.utils.decode(y,c.slice(c.l,c.l+O)).replace(/[\u0000\r\n].*$/g,""),c.l+=O,S.type=String.fromCharCode(c.read_shift(1)),h==2||m||(S.offset=c.read_shift(4)),S.len=c.read_shift(1),h==2&&(S.offset=c.read_shift(2)),S.dec=c.read_shift(1),S.name.length&&k.push(S),h!=2&&(c.l+=m?13:14),S.type){case"B":p&&S.len==8||!l.WTF||console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(c[c.l]!==13&&(c.l=b-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=b;var L=0,j=0;for(f[0]=[],j=0;j!=k.length;++j)f[0][j]=k[j].name;for(;v-- >0;)if(c[c.l]!==42)for(++c.l,f[++L]=[],j=0,j=0;j!=k.length;++j){var U=c.slice(c.l,c.l+k[j].len);c.l+=k[j].len,oa(U,0);var z=Lp.utils.decode(y,U);switch(k[j].type){case"C":z.trim().length&&(f[L][j]=z.replace(/\s+$/,""));break;case"D":z.length===8?f[L][j]=new Date(+z.slice(0,4),+z.slice(4,6)-1,+z.slice(6,8)):f[L][j]=z;break;case"F":f[L][j]=parseFloat(z.trim());break;case"+":case"I":f[L][j]=m?2147483648^U.read_shift(-4,"i"):U.read_shift(4,"i");break;case"L":switch(z.trim().toUpperCase()){case"Y":case"T":f[L][j]=!0;break;case"N":case"F":f[L][j]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+z+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));f[L][j]="##MEMO##"+(m?parseInt(z.trim(),10):U.read_shift(4));break;case"N":(z=z.replace(/\u0000/g,"").trim())&&z!="."&&(f[L][j]=+z||0);break;case"@":f[L][j]=new Date(U.read_shift(-8,"f")-621356832e5);break;case"T":f[L][j]=new Date(864e5*(U.read_shift(4)-2440588)+U.read_shift(4));break;case"Y":f[L][j]=U.read_shift(4,"i")/1e4+U.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[L][j]=-U.read_shift(-8,"f");break;case"B":if(p&&k[j].len==8){f[L][j]=U.read_shift(8,"f");break}case"G":case"P":U.l+=k[j].len;break;case"0":if(k[j].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+k[j].type)}}else c.l+=g;if(h!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(f=f.slice(0,l.sheetRows)),l.DBF=k,f}(a,s),s);return i["!cols"]=s.DBF.map(function(u){return{wch:u.len,DBF:u}}),delete s.DBF,i}var n={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(a,o){try{return Dl(e(a,o),o)}catch(s){if(o&&o.WTF)throw s}return{SheetNames:[],Sheets:{}}},to_sheet:e,from_sheet:function(a,o){var s=o||{};if(+s.codepage>=0&&zs(+s.codepage),s.type=="string")throw new Error("Cannot write DBF to JS string");var i=qa(),u=$b(a,{header:1,raw:!0,cellDates:!0}),l=u[0],f=u.slice(1),c=a["!cols"]||[],h=0,d=0,p=0,m=1;for(h=0;h<l.length;++h)if(((c[h]||{}).DBF||{}).name)l[h]=c[h].DBF.name,++p;else if(l[h]!=null){if(++p,typeof l[h]=="number"&&(l[h]=l[h].toString(10)),typeof l[h]!="string")throw new Error("DBF Invalid column name "+l[h]+" |"+typeof l[h]+"|");if(l.indexOf(l[h])!==h){for(d=0;d<1024;++d)if(l.indexOf(l[h]+"_"+d)==-1){l[h]+="_"+d;break}}}var v=Un(a["!ref"]),b=[],g=[],y=[];for(h=0;h<=v.e.c-v.s.c;++h){var k="",S="",C=0,O=[];for(d=0;d<f.length;++d)f[d][h]!=null&&O.push(f[d][h]);if(O.length!=0&&l[h]!=null){for(d=0;d<O.length;++d){switch(typeof O[d]){case"number":S="B";break;case"string":default:S="C";break;case"boolean":S="L";break;case"object":S=O[d]instanceof Date?"D":"C"}C=Math.max(C,String(O[d]).length),k=k&&k!=S?"C":S}C>250&&(C=250),(S=((c[h]||{}).DBF||{}).type)=="C"&&c[h].DBF.len>C&&(C=c[h].DBF.len),k=="B"&&S=="N"&&(k="N",y[h]=c[h].DBF.dec,C=c[h].DBF.len),g[h]=k=="C"||S=="N"?C:n[k]||0,m+=g[h],b[h]=k}else b[h]="?"}var L=i.next(32);for(L.write_shift(4,318902576),L.write_shift(4,f.length),L.write_shift(2,296+32*p),L.write_shift(2,m),h=0;h<4;++h)L.write_shift(4,0);for(L.write_shift(4,(+r[I1]||3)<<8),h=0,d=0;h<l.length;++h)if(l[h]!=null){var j=i.next(32),U=(l[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,U,"sbcs"),j.write_shift(1,b[h]=="?"?"C":b[h],"sbcs"),j.write_shift(4,d),j.write_shift(1,g[h]||n[b[h]]||0),j.write_shift(1,y[h]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),d+=g[h]||n[b[h]]||0}var z=i.next(264);for(z.write_shift(4,13),h=0;h<65;++h)z.write_shift(4,0);for(h=0;h<f.length;++h){var Y=i.next(m);for(Y.write_shift(1,0),d=0;d<l.length;++d)if(l[d]!=null)switch(b[d]){case"L":Y.write_shift(1,f[h][d]==null?63:f[h][d]?84:70);break;case"B":Y.write_shift(8,f[h][d]||0,"f");break;case"N":var A="0";for(typeof f[h][d]=="number"&&(A=f[h][d].toFixed(y[d]||0)),p=0;p<g[d]-A.length;++p)Y.write_shift(1,32);Y.write_shift(1,A,"sbcs");break;case"D":f[h][d]?(Y.write_shift(4,("0000"+f[h][d].getFullYear()).slice(-4),"sbcs"),Y.write_shift(2,("00"+(f[h][d].getMonth()+1)).slice(-2),"sbcs"),Y.write_shift(2,("00"+f[h][d].getDate()).slice(-2),"sbcs")):Y.write_shift(8,"00000000","sbcs");break;case"C":var I=String(f[h][d]!=null?f[h][d]:"").slice(0,g[d]);for(Y.write_shift(1,I,"sbcs"),p=0;p<g[d]-I.length;++p)Y.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),Bg=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+Ei(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(i,u){var l=t[u];return typeof l=="number"?D1(l):l},n=function(i,u,l){var f=u.charCodeAt(0)-32<<4|l.charCodeAt(0)-48;return f==59?i:D1(f)};function a(i,u){var l,f=i.split(/[\n\r]+/),c=-1,h=-1,d=0,p=0,m=[],v=[],b=null,g={},y=[],k=[],S=[],C=0;for(+u.codepage>=0&&zs(+u.codepage);d!==f.length;++d){C=0;var O,L=f[d].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,e),j=L.replace(/;;/g,"\0").split(";").map(function(F){return F.replace(/\u0000/g,";")}),U=j[0];if(L.length>0)switch(U){case"ID":case"E":case"B":case"O":case"W":break;case"P":j[1].charAt(0)=="P"&&v.push(L.slice(3).replace(/;;/g,";"));break;case"C":var z=!1,Y=!1,A=!1,I=!1,_=-1,x=-1;for(p=1;p<j.length;++p)switch(j[p].charAt(0)){case"A":case"G":break;case"X":h=parseInt(j[p].slice(1))-1,Y=!0;break;case"Y":for(c=parseInt(j[p].slice(1))-1,Y||(h=0),l=m.length;l<=c;++l)m[l]=[];break;case"K":(O=j[p].slice(1)).charAt(0)==='"'?O=O.slice(1,O.length-1):O==="TRUE"?O=!0:O==="FALSE"?O=!1:isNaN(Eo(O))?isNaN(jc(O).getDate())||(O=di(O)):(O=Eo(O),b!==null&&Au(b)&&(O=Ah(O))),z=!0;break;case"E":I=!0;var T=Bu(j[p].slice(1),{r:c,c:h});m[c][h]=[m[c][h],T];break;case"S":A=!0,m[c][h]=[m[c][h],"S5S"];break;case"R":_=parseInt(j[p].slice(1))-1;break;case"C":x=parseInt(j[p].slice(1))-1;break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+L)}if(z&&(m[c][h]&&m[c][h].length==2?m[c][h][0]=O:m[c][h]=O,b=null),A){if(I)throw new Error("SYLK shared formula cannot have own formula");var E=_>-1&&m[_][x];if(!E||!E[1])throw new Error("SYLK shared formula cannot find base");m[c][h][1]=nb(E[1],{r:c-_,c:h-x})}break;case"F":var M=0;for(p=1;p<j.length;++p)switch(j[p].charAt(0)){case"X":h=parseInt(j[p].slice(1))-1,++M;break;case"Y":for(c=parseInt(j[p].slice(1))-1,l=m.length;l<=c;++l)m[l]=[];break;case"M":C=parseInt(j[p].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":b=v[parseInt(j[p].slice(1))];break;case"W":for(S=j[p].slice(1).split(" "),l=parseInt(S[0],10);l<=parseInt(S[1],10);++l)C=parseInt(S[2],10),k[l-1]=C===0?{hidden:!0}:{wch:C},al(k[l-1]);break;case"C":k[h=parseInt(j[p].slice(1))-1]||(k[h]={});break;case"R":y[c=parseInt(j[p].slice(1))-1]||(y[c]={}),C>0?(y[c].hpt=C,y[c].hpx=Fu(C)):C===0&&(y[c].hidden=!0);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+L)}M<1&&(b=null);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+L)}}return y.length>0&&(g["!rows"]=y),k.length>0&&(g["!cols"]=k),u&&u.sheetRows&&(m=m.slice(0,u.sheetRows)),[m,g]}function o(i,u){var l=function(d,p){switch(p.type){case"base64":return a(es(d),p);case"binary":return a(d,p);case"buffer":return a(wn&&Buffer.isBuffer(d)?d.toString("binary"):el(d),p);case"array":return a(Il(d),p)}throw new Error("Unrecognized type "+p.type)}(i,u),f=l[0],c=l[1],h=Yc(f,u);return Ei(c).forEach(function(d){h[d]=c[d]}),h}function s(i,u,l,f){var c="C;Y"+(l+1)+";X"+(f+1)+";K";switch(i.t){case"n":c+=i.v||0,i.f&&!i.F&&(c+=";E"+k0(i.f,{r:l,c:f}));break;case"b":c+=i.v?"TRUE":"FALSE";break;case"e":c+=i.w||i.v;break;case"d":c+='"'+(i.w||i.v)+'"';break;case"s":c+='"'+i.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return c}return t["|"]=254,{to_workbook:function(i,u){return Dl(o(i,u),u)},to_sheet:o,from_sheet:function(i,u){var l,f,c=["ID;PWXL;N;E"],h=[],d=Un(i["!ref"]),p=Array.isArray(i),m=`\r |
|
|
`;c.push("P;PGeneral"),c.push("F;P0;DG0G8;M255"),i["!cols"]&&(f=c,i["!cols"].forEach(function(y,k){var S="F;W"+(k+1)+" "+(k+1)+" ";y.hidden?S+="0":(typeof y.width!="number"||y.wpx||(y.wpx=tf(y.width)),typeof y.wpx!="number"||y.wch||(y.wch=ef(y.wpx)),typeof y.wch=="number"&&(S+=Math.round(y.wch))),S.charAt(S.length-1)!=" "&&f.push(S)})),i["!rows"]&&function(y,k){k.forEach(function(S,C){var O="F;";S.hidden?O+="M0;":S.hpt?O+="M"+20*S.hpt+";":S.hpx&&(O+="M"+20*rf(S.hpx)+";"),O.length>2&&y.push(O+"R"+(C+1))})}(c,i["!rows"]),c.push("B;Y"+(d.e.r-d.s.r+1)+";X"+(d.e.c-d.s.c+1)+";D"+[d.s.c,d.s.r,d.e.c,d.e.r].join(" "));for(var v=d.s.r;v<=d.e.r;++v)for(var b=d.s.c;b<=d.e.c;++b){var g=on({r:v,c:b});(l=p?(i[v]||[])[b]:i[g])&&(l.v!=null||l.f&&!l.F)&&h.push(s(l,0,v,b))}return c.join(m)+m+h.join(m)+m+"E"+m}}}(),jg=function(){function t(e,n){for(var a=e.split(` |
|
|
`),o=-1,s=-1,i=0,u=[];i!==a.length;++i)if(a[i].trim()!=="BOT"){if(!(o<0)){for(var l=a[i].trim().split(","),f=l[0],c=l[1],h=a[++i]||"";1&(h.match(/["]/g)||[]).length&&i<a.length-1;)h+=` |
|
|
`+a[++i];switch(h=h.trim(),+f){case-1:if(h==="BOT"){u[++o]=[],s=0;continue}if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?u[o][s]=!0:h==="FALSE"?u[o][s]=!1:isNaN(Eo(c))?isNaN(jc(c).getDate())?u[o][s]=c:u[o][s]=di(c):u[o][s]=Eo(c),++s;break;case 1:(h=(h=h.slice(1,h.length-1)).replace(/""/g,'"'))&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),u[o][s++]=h!==""?h:null}if(h==="EOD")break}}else u[++o]=[],s=0;return n&&n.sheetRows&&(u=u.slice(0,n.sheetRows)),u}function r(e,n){return Yc(function(a,o){switch(o.type){case"base64":return t(es(a),o);case"binary":return t(a,o);case"buffer":return t(wn&&Buffer.isBuffer(a)?a.toString("binary"):el(a),o);case"array":return t(Il(a),o)}throw new Error("Unrecognized type "+o.type)}(e,n),n)}return{to_workbook:function(e,n){return Dl(r(e,n),n)},to_sheet:r,from_sheet:function(){var e=function(a,o,s,i,u){a.push(o),a.push(s+","+i),a.push('"'+u.replace(/"/g,'""')+'"')},n=function(a,o,s,i){a.push(o+","+s),a.push(o==1?'"'+i.replace(/"/g,'""')+'"':i)};return function(a){var o,s=[],i=Un(a["!ref"]),u=Array.isArray(a);e(s,"TABLE",0,1,"sheetjs"),e(s,"VECTORS",0,i.e.r-i.s.r+1,""),e(s,"TUPLES",0,i.e.c-i.s.c+1,""),e(s,"DATA",0,0,"");for(var l=i.s.r;l<=i.e.r;++l){n(s,-1,0,"BOT");for(var f=i.s.c;f<=i.e.c;++f){var c=on({r:l,c:f});if(o=u?(a[l]||[])[f]:a[c])switch(o.t){case"n":var h=o.w;h||o.v==null||(h=o.v),h==null?o.f&&!o.F?n(s,1,0,"="+o.f):n(s,1,0,""):n(s,0,h,"V");break;case"b":n(s,0,o.v?1:0,o.v?"TRUE":"FALSE");break;case"s":n(s,1,0,isNaN(o.v)?o.v:'="'+o.v+'"');break;case"d":o.w||(o.w=ms(o.z||Qr[14],aa(di(o.v)))),n(s,0,o.w,"V");break;default:n(s,1,0,"")}else n(s,1,0,"")}}return n(s,-1,0,"EOD"),s.join(`\r |
|
|
`)}}()}}(),zg=function(){function t(i){return i.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(i,u){return Yc(function(l,f){for(var c=l.split(` |
|
|
`),h=-1,d=-1,p=0,m=[];p!==c.length;++p){var v=c[p].trim().split(":");if(v[0]==="cell"){var b=Wi(v[1]);if(m.length<=b.r)for(h=m.length;h<=b.r;++h)m[h]||(m[h]=[]);switch(h=b.r,d=b.c,v[2]){case"t":m[h][d]=v[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` |
|
|
`);break;case"v":m[h][d]=+v[3];break;case"vtf":var g=v[v.length-1];case"vtc":v[3]==="nl"?m[h][d]=!!+v[4]:m[h][d]=+v[4],v[2]=="vtf"&&(m[h][d]=[m[h][d],g])}}}return f&&f.sheetRows&&(m=m.slice(0,f.sheetRows)),m}(i,u),u)}var e=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` |
|
|
`),n=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` |
|
|
`)+` |
|
|
`,a=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` |
|
|
`),o="--SocialCalcSpreadsheetControlSave--";function s(i){if(!i||!i["!ref"])return"";for(var u,l=[],f=[],c="",h=gs(i["!ref"]),d=Array.isArray(i),p=h.s.r;p<=h.e.r;++p)for(var m=h.s.c;m<=h.e.c;++m)if(c=on({r:p,c:m}),(u=d?(i[p]||[])[m]:i[c])&&u.v!=null&&u.t!=="z"){switch(f=["cell",c,"t"],u.t){case"s":case"str":f.push(t(u.v));break;case"n":u.f?(f[2]="vtf",f[3]="n",f[4]=u.v,f[5]=t(u.f)):(f[2]="v",f[3]=u.v);break;case"b":f[2]="vt"+(u.f?"f":"c"),f[3]="nl",f[4]=u.v?"1":"0",f[5]=t(u.f||(u.v?"TRUE":"FALSE"));break;case"d":var v=aa(di(u.v));f[2]="vtc",f[3]="nd",f[4]=""+v,f[5]=u.w||ms(u.z||Qr[14],v);break;case"e":continue}l.push(f.join(":"))}return l.push("sheet:c:"+(h.e.c-h.s.c+1)+":r:"+(h.e.r-h.s.r+1)+":tvf:1"),l.push("valueformat:1:text-wiki"),l.join(` |
|
|
`)}return{to_workbook:function(i,u){return Dl(r(i,u),u)},to_sheet:r,from_sheet:function(i){return[e,n,a,n,s(i),o].join(` |
|
|
`)}}}(),Du=function(){function t(i,u,l,f,c){c.raw?u[l][f]=i:i===""||(i==="TRUE"?u[l][f]=!0:i==="FALSE"?u[l][f]=!1:isNaN(Eo(i))?isNaN(jc(i).getDate())?u[l][f]=i:u[l][f]=di(i):u[l][f]=Eo(i))}var r={44:",",9:" ",59:";",124:"|"},e={44:3,9:2,59:1,124:0};function n(i){for(var u={},l=!1,f=0,c=0;f<i.length;++f)(c=i.charCodeAt(f))==34?l=!l:!l&&c in r&&(u[c]=(u[c]||0)+1);for(f in c=[],u)Object.prototype.hasOwnProperty.call(u,f)&&c.push([u[f],f]);if(!c.length)for(f in u=e)Object.prototype.hasOwnProperty.call(u,f)&&c.push([u[f],f]);return c.sort(function(h,d){return h[0]-d[0]||e[h[1]]-e[d[1]]}),r[c.pop()[1]]||44}function a(i,u){var l=u||{},f="",c=l.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};i.slice(0,4)=="sep="?i.charCodeAt(5)==13&&i.charCodeAt(6)==10?(f=i.charAt(4),i=i.slice(7)):i.charCodeAt(5)==13||i.charCodeAt(5)==10?(f=i.charAt(4),i=i.slice(6)):f=n(i.slice(0,1024)):f=l&&l.FS?l.FS:n(i.slice(0,1024));var d=0,p=0,m=0,v=0,b=0,g=f.charCodeAt(0),y=!1,k=0,S=i.charCodeAt(0);i=i.replace(/\r\n/gm,` |
|
|
`);var C,O,L=l.dateNF!=null?(C=l.dateNF,O=(O=typeof C=="number"?Qr[C]:C).replace(tv,"(\\d+)"),new RegExp("^"+O+"$")):null;function j(){var U=i.slice(v,b),z={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)z.t="z";else if(l.raw)z.t="s",z.v=U;else if(U.trim().length===0)z.t="s",z.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(z.t="s",z.v=U.slice(2,-1).replace(/""/g,'"')):U.length!=1?(z.t="n",z.f=U.slice(1)):(z.t="s",z.v=U);else if(U=="TRUE")z.t="b",z.v=!0;else if(U=="FALSE")z.t="b",z.v=!1;else if(isNaN(m=Eo(U)))if(!isNaN(jc(U).getDate())||L&&U.match(L)){z.z=l.dateNF||Qr[14];var Y=0;L&&U.match(L)&&(U=function(A,I,_){var x=-1,T=-1,E=-1,M=-1,F=-1,P=-1;(I.match(tv)||[]).forEach(function(q,nt){var J=parseInt(_[nt+1],10);switch(q.toLowerCase().charAt(0)){case"y":x=J;break;case"d":E=J;break;case"h":M=J;break;case"s":P=J;break;case"m":M>=0?F=J:T=J}}),P>=0&&F==-1&&T>=0&&(F=T,T=-1);var W=(""+(x>=0?x:new Date().getFullYear())).slice(-4)+"-"+("00"+(T>=1?T:1)).slice(-2)+"-"+("00"+(E>=1?E:1)).slice(-2);W.length==7&&(W="0"+W),W.length==8&&(W="20"+W);var N=("00"+(M>=0?M:0)).slice(-2)+":"+("00"+(F>=0?F:0)).slice(-2)+":"+("00"+(P>=0?P:0)).slice(-2);return M==-1&&F==-1&&P==-1?W:x==-1&&T==-1&&E==-1?N:W+"T"+N}(0,l.dateNF,U.match(L)||[]),Y=1),l.cellDates?(z.t="d",z.v=di(U,Y)):(z.t="n",z.v=aa(di(U,Y))),l.cellText!==!1&&(z.w=ms(z.z,z.v instanceof Date?aa(z.v):z.v)),l.cellNF||delete z.z}else z.t="s",z.v=U;else z.t="n",l.cellText!==!1&&(z.w=U),z.v=m;if(z.t=="z"||(l.dense?(c[d]||(c[d]=[]),c[d][p]=z):c[on({c:p,r:d})]=z),v=b+1,S=i.charCodeAt(v),h.e.c<p&&(h.e.c=p),h.e.r<d&&(h.e.r=d),k==g)++p;else if(p=0,++d,l.sheetRows&&l.sheetRows<=d)return!0}t:for(;b<i.length;++b)switch(k=i.charCodeAt(b)){case 34:S===34&&(y=!y);break;case g:case 10:case 13:if(!y&&j())break t}return b-v>0&&j(),c["!ref"]=Tn(h),c}function o(i,u){return u&&u.PRN?u.FS||i.slice(0,4)=="sep="||i.indexOf(" ")>=0||i.indexOf(",")>=0||i.indexOf(";")>=0?a(i,u):Yc(function(l,f){var c=f||{},h=[];if(!l||l.length===0)return h;for(var d=l.split(/[\r\n]/),p=d.length-1;p>=0&&d[p].length===0;)--p;for(var m=10,v=0,b=0;b<=p;++b)(v=d[b].indexOf(" "))==-1?v=d[b].length:v++,m=Math.max(m,v);for(b=0;b<=p;++b){h[b]=[];var g=0;for(t(d[b].slice(0,m).trim(),h,b,g,c),g=1;g<=(d[b].length-m)/10+1;++g)t(d[b].slice(m+10*(g-1),m+10*g).trim(),h,b,g,c)}return c.sheetRows&&(h=h.slice(0,c.sheetRows)),h}(i,u),u):a(i,u)}function s(i,u){var l="",f=u.type=="string"?[0,0,0,0]:j0(i,u);switch(u.type){case"base64":l=es(i);break;case"binary":case"string":l=i;break;case"buffer":u.codepage==65001?l=i.toString("utf8"):(u.codepage,l=wn&&Buffer.isBuffer(i)?i.toString("binary"):el(i));break;case"array":l=Il(i);break;default:throw new Error("Unrecognized type "+u.type)}return f[0]==239&&f[1]==187&&f[2]==191?l=Xn(l.slice(3)):u.type!="string"&&u.type!="buffer"&&u.codepage==65001?l=Xn(l):u.type,l.slice(0,19)=="socialcalc:version:"?zg.to_sheet(u.type=="string"?l:Xn(l),u):o(l,u)}return{to_workbook:function(i,u){return Dl(s(i,u),u)},to_sheet:s,from_sheet:function(i){for(var u,l=[],f=Un(i["!ref"]),c=Array.isArray(i),h=f.s.r;h<=f.e.r;++h){for(var d=[],p=f.s.c;p<=f.e.c;++p){var m=on({r:h,c:p});if((u=c?(i[h]||[])[p]:i[m])&&u.v!=null){for(var v=(u.w||(nl(u),u.w)||"").slice(0,10);v.length<10;)v+=" ";d.push(v+(p===0?" ":""))}else d.push(" ")}l.push(d.join(""))}return l.join(` |
|
|
`)}}}(),Vl=function(){function t(y,k,S){if(y){oa(y,y.l||0);for(var C=S.Enum||b;y.l<y.length;){var O=y.read_shift(2),L=C[O]||C[65535],j=y.read_shift(2),U=y.l+j,z=L.f&&L.f(y,j,S);if(y.l=U,k(z,L,O))return}}}function r(y,k){if(!y)return y;var S=k||{},C=S.dense?[]:{},O="Sheet1",L="",j=0,U={},z=[],Y=[],A={s:{r:0,c:0},e:{r:0,c:0}},I=S.sheetRows||0;if(y[2]==0&&(y[3]==8||y[3]==9)&&y.length>=16&&y[14]==5&&y[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(y[2]==2)S.Enum=b,t(y,function(E,M,F){switch(F){case 0:S.vers=E,E>=4096&&(S.qpro=!0);break;case 6:A=E;break;case 204:E&&(L=E);break;case 222:L=E;break;case 15:case 51:S.qpro||(E[1].v=E[1].v.slice(1));case 13:case 14:case 16:F==14&&!(112&~E[2])&&(15&E[2])>1&&(15&E[2])<15&&(E[1].z=S.dateNF||Qr[14],S.cellDates&&(E[1].t="d",E[1].v=Ah(E[1].v))),S.qpro&&E[3]>j&&(C["!ref"]=Tn(A),U[O]=C,z.push(O),C=S.dense?[]:{},A={s:{r:0,c:0},e:{r:0,c:0}},j=E[3],O=L||"Sheet"+(j+1),L="");var P=S.dense?(C[E[0].r]||[])[E[0].c]:C[on(E[0])];if(P){P.t=E[1].t,P.v=E[1].v,E[1].z!=null&&(P.z=E[1].z),E[1].f!=null&&(P.f=E[1].f);break}S.dense?(C[E[0].r]||(C[E[0].r]=[]),C[E[0].r][E[0].c]=E[1]):C[on(E[0])]=E[1]}},S);else{if(y[2]!=26&&y[2]!=14)throw new Error("Unrecognized LOTUS BOF "+y[2]);S.Enum=g,y[2]==14&&(S.qpro=!0,y.l=0),t(y,function(E,M,F){switch(F){case 204:O=E;break;case 22:E[1].v=E[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(E[3]>j&&(C["!ref"]=Tn(A),U[O]=C,z.push(O),C=S.dense?[]:{},A={s:{r:0,c:0},e:{r:0,c:0}},j=E[3],O="Sheet"+(j+1)),I>0&&E[0].r>=I)break;S.dense?(C[E[0].r]||(C[E[0].r]=[]),C[E[0].r][E[0].c]=E[1]):C[on(E[0])]=E[1],A.e.c<E[0].c&&(A.e.c=E[0].c),A.e.r<E[0].r&&(A.e.r=E[0].r);break;case 27:E[14e3]&&(Y[E[14e3][0]]=E[14e3][1]);break;case 1537:Y[E[0]]=E[1],E[0]==j&&(O=E[1])}},S)}if(C["!ref"]=Tn(A),U[L||O]=C,z.push(L||O),!Y.length)return{SheetNames:z,Sheets:U};for(var _={},x=[],T=0;T<Y.length;++T)U[z[T]]?(x.push(Y[T]||z[T]),_[Y[T]]=U[Y[T]]||U[z[T]]):(x.push(Y[T]),_[Y[T]]={"!ref":"A1"});return{SheetNames:x,Sheets:_}}function e(y,k,S){var C=[{c:0,r:0},{t:"n",v:0},0,0];return S.qpro&&S.vers!=20768?(C[0].c=y.read_shift(1),C[3]=y.read_shift(1),C[0].r=y.read_shift(2),y.l+=2):(C[2]=y.read_shift(1),C[0].c=y.read_shift(2),C[0].r=y.read_shift(2)),C}function n(y,k,S){var C=y.l+k,O=e(y,0,S);if(O[1].t="s",S.vers==20768){y.l++;var L=y.read_shift(1);return O[1].v=y.read_shift(L,"utf8"),O}return S.qpro&&y.l++,O[1].v=y.read_shift(C-y.l,"cstr"),O}function a(y,k,S){var C=Me(7+S.length);C.write_shift(1,255),C.write_shift(2,k),C.write_shift(2,y),C.write_shift(1,39);for(var O=0;O<C.length;++O){var L=S.charCodeAt(O);C.write_shift(1,L>=128?95:L)}return C.write_shift(1,0),C}function o(y,k,S){var C=Me(7);return C.write_shift(1,255),C.write_shift(2,k),C.write_shift(2,y),C.write_shift(2,S,"i"),C}function s(y,k,S){var C=Me(13);return C.write_shift(1,255),C.write_shift(2,k),C.write_shift(2,y),C.write_shift(8,S,"f"),C}function i(y,k,S){var C=32768&k;return k=(C?y:0)+((k&=-32769)>=8192?k-16384:k),(C?"":"$")+(S?Bi(k):Qi(k))}var u={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},l=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function f(y){var k=[{c:0,r:0},{t:"n",v:0},0];return k[0].r=y.read_shift(2),k[3]=y[y.l++],k[0].c=y[y.l++],k}function c(y,k,S,C){var O=Me(6+C.length);O.write_shift(2,y),O.write_shift(1,S),O.write_shift(1,k),O.write_shift(1,39);for(var L=0;L<C.length;++L){var j=C.charCodeAt(L);O.write_shift(1,j>=128?95:j)}return O.write_shift(1,0),O}function h(y,k){var S=f(y),C=y.read_shift(4),O=y.read_shift(4),L=y.read_shift(2);if(L==65535)return C===0&&O===3221225472?(S[1].t="e",S[1].v=15):C===0&&O===3489660928?(S[1].t="e",S[1].v=42):S[1].v=0,S;var j=32768&L;return L=(32767&L)-16446,S[1].v=(1-2*j)*(O*Math.pow(2,L+32)+C*Math.pow(2,L)),S}function d(y,k,S,C){var O=Me(14);if(O.write_shift(2,y),O.write_shift(1,S),O.write_shift(1,k),C==0)return O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,65535),O;var L,j=0,U=0,z=0;return C<0&&(j=1,C=-C),U=0|Math.log2(C),2147483648&(z=(C/=Math.pow(2,U-31))>>>0)||(++U,z=(C/=2)>>>0),C-=z,z|=2147483648,z>>>=0,L=(C*=Math.pow(2,32))>>>0,O.write_shift(4,L),O.write_shift(4,z),U+=16383+(j?32768:0),O.write_shift(2,U),O}function p(y,k){var S=f(y),C=y.read_shift(8,"f");return S[1].v=C,S}function m(y,k){return y[y.l+k-1]==0?y.read_shift(k,"cstr"):""}function v(y,k){var S=Me(5+y.length);S.write_shift(2,14e3),S.write_shift(2,k);for(var C=0;C<y.length;++C){var O=y.charCodeAt(C);S[S.l++]=O>127?95:O}return S[S.l++]=0,S}var b={0:{n:"BOF",f:ji},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(y,k,S){var C={s:{c:0,r:0},e:{c:0,r:0}};return k==8&&S.qpro?(C.s.c=y.read_shift(1),y.l++,C.s.r=y.read_shift(2),C.e.c=y.read_shift(1),y.l++,C.e.r=y.read_shift(2),C):(C.s.c=y.read_shift(2),C.s.r=y.read_shift(2),k==12&&S.qpro&&(y.l+=2),C.e.c=y.read_shift(2),C.e.r=y.read_shift(2),k==12&&S.qpro&&(y.l+=2),C.s.c==65535&&(C.s.c=C.e.c=C.s.r=C.e.r=0),C)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(y,k,S){var C=e(y,0,S);return C[1].v=y.read_shift(2,"i"),C}},14:{n:"NUMBER",f:function(y,k,S){var C=e(y,0,S);return C[1].v=y.read_shift(8,"f"),C}},15:{n:"LABEL",f:n},16:{n:"FORMULA",f:function(y,k,S){var C=y.l+k,O=e(y,0,S);if(O[1].v=y.read_shift(8,"f"),S.qpro)y.l=C;else{var L=y.read_shift(2);(function(j,U){oa(j,0);for(var z=[],Y=0,A="",I="",_="",x="";j.l<j.length;){var T=j[j.l++];switch(T){case 0:z.push(j.read_shift(8,"f"));break;case 1:I=i(U[0].c,j.read_shift(2),!0),A=i(U[0].r,j.read_shift(2),!1),z.push(I+A);break;case 2:var E=i(U[0].c,j.read_shift(2),!0),M=i(U[0].r,j.read_shift(2),!1);I=i(U[0].c,j.read_shift(2),!0),A=i(U[0].r,j.read_shift(2),!1),z.push(E+M+":"+I+A);break;case 3:if(j.l<j.length)return void console.error("WK1 premature formula end");break;case 4:z.push("("+z.pop()+")");break;case 5:z.push(j.read_shift(2));break;case 6:for(var F="";T=j[j.l++];)F+=String.fromCharCode(T);z.push('"'+F.replace(/"/g,'""')+'"');break;case 8:z.push("-"+z.pop());break;case 23:z.push("+"+z.pop());break;case 22:z.push("NOT("+z.pop()+")");break;case 20:case 21:x=z.pop(),_=z.pop(),z.push(["AND","OR"][T-20]+"("+_+","+x+")");break;default:if(T<32&&l[T])x=z.pop(),_=z.pop(),z.push(_+l[T]+x);else{if(!u[T])return T<=7?console.error("WK1 invalid opcode "+T.toString(16)):T<=24?console.error("WK1 unsupported op "+T.toString(16)):T<=30?console.error("WK1 invalid opcode "+T.toString(16)):T<=115?console.error("WK1 unsupported function opcode "+T.toString(16)):console.error("WK1 unrecognized opcode "+T.toString(16));if((Y=u[T][1])==69&&(Y=j[j.l++]),Y>z.length)return void console.error("WK1 bad formula parse 0x"+T.toString(16)+":|"+z.join("|")+"|");var P=z.slice(-Y);z.length-=Y,z.push(u[T][0]+"("+P.join(",")+")")}}}z.length==1?U[1].f=""+z[0]:console.error("WK1 bad formula parse |"+z.join("|")+"|")})(y.slice(y.l,y.l+L),O),y.l+=L}return O}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:n},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(y,k){var S=y[y.l++];S>k-1&&(S=k-1);for(var C="";C.length<S;)C+=String.fromCharCode(y[y.l++]);return C}},65535:{n:""}},g={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(y,k){var S=f(y);return S[1].t="s",S[1].v=y.read_shift(k-4,"cstr"),S}},23:{n:"NUMBER17",f:h},24:{n:"NUMBER18",f:function(y,k){var S=f(y);S[1].v=y.read_shift(2);var C=S[1].v>>1;if(1&S[1].v)switch(7&C){case 0:C=5e3*(C>>3);break;case 1:C=500*(C>>3);break;case 2:C=(C>>3)/20;break;case 3:C=(C>>3)/200;break;case 4:C=(C>>3)/2e3;break;case 5:C=(C>>3)/2e4;break;case 6:C=(C>>3)/16;break;case 7:C=(C>>3)/64}return S[1].v=C,S}},25:{n:"FORMULA19",f:function(y,k){var S=h(y);return y.l+=k-14,S}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(y,k){for(var S={},C=y.l+k;y.l<C;){var O=y.read_shift(2);if(O==14e3){for(S[O]=[0,""],S[O][0]=y.read_shift(2);y[y.l];)S[O][1]+=String.fromCharCode(y[y.l]),y.l++;y.l++}}return S}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(y,k){var S=f(y),C=y.read_shift(4);return S[1].v=C>>6,S}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(y,k){var S=p(y);return y.l+=k-10,S}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(y,k,S){if(S.qpro&&!(k<21)){var C=y.read_shift(1);return y.l+=17,y.l+=1,y.l+=2,[C,y.read_shift(k-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(y,k){var S=k||{};if(+S.codepage>=0&&zs(+S.codepage),S.type=="string")throw new Error("Cannot write WK1 to JS string");var C,O,L=qa(),j=Un(y["!ref"]),U=Array.isArray(y),z=[];br(L,0,(C=1030,(O=Me(2)).write_shift(2,C),O)),br(L,6,function(E){var M=Me(8);return M.write_shift(2,E.s.c),M.write_shift(2,E.s.r),M.write_shift(2,E.e.c),M.write_shift(2,E.e.r),M}(j));for(var Y=Math.min(j.e.r,8191),A=j.s.r;A<=Y;++A)for(var I=Qi(A),_=j.s.c;_<=j.e.c;++_){A===j.s.r&&(z[_]=Bi(_));var x=z[_]+I,T=U?(y[A]||[])[_]:y[x];T&&T.t!="z"&&(T.t=="n"?(0|T.v)==T.v&&T.v>=-32768&&T.v<=32767?br(L,13,o(A,_,T.v)):br(L,14,s(A,_,T.v)):br(L,15,a(A,_,nl(T).slice(0,239))))}return br(L,1),L.end()},book_to_wk3:function(y,k){var S=k||{};if(+S.codepage>=0&&zs(+S.codepage),S.type=="string")throw new Error("Cannot write WK3 to JS string");var C=qa();br(C,0,function(F){var P=Me(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var W=0,N=0,q=0,nt=0;nt<F.SheetNames.length;++nt){var J=F.SheetNames[nt],St=F.Sheets[J];if(St&&St["!ref"]){++q;var kt=gs(St["!ref"]);W<kt.e.r&&(W=kt.e.r),N<kt.e.c&&(N=kt.e.c)}}return W>8191&&(W=8191),P.write_shift(2,W),P.write_shift(1,q),P.write_shift(1,N),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}(y));for(var O=0,L=0;O<y.SheetNames.length;++O)(y.Sheets[y.SheetNames[O]]||{})["!ref"]&&br(C,27,v(y.SheetNames[O],L++));var j=0;for(O=0;O<y.SheetNames.length;++O){var U=y.Sheets[y.SheetNames[O]];if(U&&U["!ref"]){for(var z=Un(U["!ref"]),Y=Array.isArray(U),A=[],I=Math.min(z.e.r,8191),_=z.s.r;_<=I;++_)for(var x=Qi(_),T=z.s.c;T<=z.e.c;++T){_===z.s.r&&(A[T]=Bi(T));var E=A[T]+x,M=Y?(U[_]||[])[T]:U[E];M&&M.t!="z"&&(M.t=="n"?br(C,23,d(_,T,j,M.v)):br(C,22,c(_,T,j,nl(M).slice(0,239))))}++j}}return br(C,1),C.end()},to_workbook:function(y,k){switch(k.type){case"base64":return r(rs(es(y)),k);case"binary":return r(rs(y),k);case"buffer":case"array":return r(y,k)}throw"Unsupported type "+k.type}}}(),d4=function(){var t=Uc("t"),r=Uc("rPr");function e(o){var s=o.match(t);if(!s)return{t:"s",v:""};var i={t:"s",v:Fn(s[1])},u=o.match(r);return u&&(i.s=function(l){var f={},c=l.match(va),h=0,d=!1;if(c)for(;h!=c.length;++h){var p=en(c[h]);switch(p[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!p.val)break;case"<shadow>":case"<shadow/>":f.shadow=1;break;case"</shadow>":break;case"<charset":if(p.val=="1")break;f.cp=Pp[parseInt(p.val,10)];break;case"<outline":if(!p.val)break;case"<outline>":case"<outline/>":f.outline=1;break;case"</outline>":break;case"<rFont":f.name=p.val;break;case"<sz":f.sz=p.val;break;case"<strike":if(!p.val)break;case"<strike>":case"<strike/>":f.strike=1;break;case"</strike>":break;case"<u":if(!p.val)break;switch(p.val){case"double":f.uval="double";break;case"singleAccounting":f.uval="single-accounting";break;case"doubleAccounting":f.uval="double-accounting"}case"<u>":case"<u/>":f.u=1;break;case"</u>":break;case"<b":if(p.val=="0")break;case"<b>":case"<b/>":f.b=1;break;case"</b>":break;case"<i":if(p.val=="0")break;case"<i>":case"<i/>":f.i=1;break;case"</i>":break;case"<color":p.rgb&&(f.color=p.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":f.family=p.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":f.valign=p.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":d=!0;break;case"</ext>":d=!1;break;default:if(p[0].charCodeAt(1)!==47&&!d)throw new Error("Unrecognized rich format "+p[0])}}return f}(u[1])),i}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(a).map(e).filter(function(s){return s.v})}}(),p4=function(){var t=/(\r\n|\n)/g;function r(e){var n=[[],e.v,[]];return e.v?(e.s&&function(a,o,s){var i=[];a.u&&i.push("text-decoration: underline;"),a.uval&&i.push("text-underline-style:"+a.uval+";"),a.sz&&i.push("font-size:"+a.sz+"pt;"),a.outline&&i.push("text-effect: outline;"),a.shadow&&i.push("text-shadow: auto;"),o.push('<span style="'+i.join("")+'">'),a.b&&(o.push("<b>"),s.push("</b>")),a.i&&(o.push("<i>"),s.push("</i>")),a.strike&&(o.push("<s>"),s.push("</s>"));var u=a.valign||"";u=="superscript"||u=="super"?u="sup":u=="subscript"&&(u="sub"),u!=""&&(o.push("<"+u+">"),s.push("</"+u+">")),s.push("</span>")}(e.s,n[0],n[2]),n[0].join("")+n[1].replace(t,"<br/>")+n[2].join("")):""}return function(e){return e.map(r).join("")}}(),m4=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,v4=/<(?:\w+:)?r>/,g4=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function m0(t,r){var e=!r||r.cellHTML,n={};return t?(t.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Fn(Xn(t.slice(t.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Xn(t),e&&(n.h=qp(n.t))):t.match(v4)&&(n.r=Xn(t),n.t=Fn(Xn((t.replace(g4,"").match(m4)||[]).join("").replace(va,""))),e&&(n.h=p4(d4(n.r)))),n):{t:""}}var b4=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,y4=/<(?:\w+:)?(?:si|sstItem)>/g,w4=/<\/(?:\w+:)?(?:si|sstItem)>/,_4=/^\s|\s$|[\t\n\r]/;function Ug(t,r){if(!r.bookSST)return"";var e=[Ci];e[e.length]=vr("sst",null,{xmlns:Nl[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var a=t[n],o="<si>";a.r?o+=a.r:(o+="<t",a.t||(a.t=""),a.t.match(_4)&&(o+=' xml:space="preserve"'),o+=">"+qn(a.t)+"</t>"),o+="</si>",e[e.length]=o}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}var k4=function(t,r){var e=!1;return r==null&&(e=!0,r=Me(15+4*t.t.length)),r.write_shift(1,0),ta(t.t,r),e?r.slice(0,r.l):r};function x4(t){var r=qa();Ye(r,159,function(n,a){return a||(a=Me(8)),a.write_shift(4,n.Count),a.write_shift(4,n.Unique),a}(t));for(var e=0;e<t.length;++e)Ye(r,19,k4(t[e]));return Ye(r,160),r.end()}function Hg(t){for(var r=[],e=t.split(""),n=0;n<e.length;++n)r[n]=e[n].charCodeAt(0);return r}function Ro(t,r){var e={};return e.Major=t.read_shift(2),e.Minor=t.read_shift(2),r>=4&&(t.l+=r-4),e}function S4(t){for(var r=t.read_shift(4),e=t.l+r-4,n={},a=t.read_shift(4),o=[];a-- >0;)o.push({t:t.read_shift(4),v:t.read_shift(0,"lpp4")});if(n.name=t.read_shift(0,"lpp4"),n.comps=o,t.l!=e)throw new Error("Bad DataSpaceMapEntry: "+t.l+" != "+e);return n}function T4(t){var r=function(e){var n={};return e.read_shift(4),e.l+=4,n.id=e.read_shift(0,"lpp4"),n.name=e.read_shift(0,"lpp4"),n.R=Ro(e,4),n.U=Ro(e,4),n.W=Ro(e,4),n}(t);if(r.ename=t.read_shift(0,"8lpp4"),r.blksz=t.read_shift(4),r.cmode=t.read_shift(4),t.read_shift(4)!=4)throw new Error("Bad !Primary record");return r}function Wg(t,r){var e=t.l+r,n={};n.Flags=63&t.read_shift(4),t.l+=4,n.AlgID=t.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=t.read_shift(4),n.KeySize=t.read_shift(4),n.ProviderType=t.read_shift(4),t.l+=8,n.CSPName=t.read_shift(e-t.l>>1,"utf16le"),t.l=e,n}function Vg(t,r){var e={},n=t.l+r;return t.l+=4,e.Salt=t.slice(t.l,t.l+16),t.l+=16,e.Verifier=t.slice(t.l,t.l+16),t.l+=16,t.read_shift(4),e.VerifierHash=t.slice(t.l,n),t.l=n,e}function E4(t){if((63&t.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var r=t.read_shift(4);return{t:"Std",h:Wg(t,r),v:Vg(t,t.length-t.l)}}function C4(){throw new Error("File is password-protected: ECMA-376 Extensible")}function A4(t){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];t.l+=4;var e=t.read_shift(t.length-t.l,"utf8"),n={};return e.replace(va,function(a){var o=en(a);switch(Js(o[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":r.forEach(function(s){n[s]=o[s]});break;case"<dataIntegrity":n.encryptedHmacKey=o.encryptedHmacKey,n.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"<keyEncryptor":n.uri=o.uri;break;case"<encryptedKey":n.encs.push(o);break;default:throw o[0]}}),n}function v0(t){var r,e,n=0,a=Hg(t),o=a.length+1;for((r=tl(o))[0]=a.length,e=1;e!=o;++e)r[e]=a[e-1];for(e=o-1;e>=0;--e)n=((16384&n?1:0)|n<<1&32767)^r[e];return 52811^n}var $g=function(){var t=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],e=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(a,o){return 255&((s=a^o)/2|128*s);var s};return function(a){for(var o,s,i,u=Hg(a),l=function(d){for(var p=r[d.length-1],m=104,v=d.length-1;v>=0;--v)for(var b=d[v],g=0;g!=7;++g)64&b&&(p^=e[m]),b*=2,--m;return p}(u),f=u.length,c=tl(16),h=0;h!=16;++h)c[h]=0;for(1&~f||(o=l>>8,c[f]=n(t[0],o),--f,o=255&l,s=u[u.length-1],c[f]=n(s,o));f>0;)o=l>>8,c[--f]=n(u[f],o),o=255&l,c[--f]=n(u[f],o);for(f=15,i=15-u.length;i>0;)o=l>>8,c[f]=n(t[i],o),--i,o=255&l,c[--f]=n(u[f],o),--f,--i;return c}}(),M4=function(t){var r=0,e=$g(t);return function(n){var a=function(o,s,i,u,l){var f,c;for(l||(l=s),u||(u=$g(o)),f=0;f!=s.length;++f)c=s[f],c=255&((c^=u[i])>>5|c<<3),l[f]=c,++i;return[l,i,u]}("",n,r,e);return r=a[1],a[0]}};function R4(t,r,e){var n=e||{};return n.Info=t.read_shift(2),t.l-=2,n.Info===1?n.Data=function(a){var o={},s=o.EncryptionVersionInfo=Ro(a,4);if(s.Major!=1||s.Minor!=1)throw"unrecognized version code "+s.Major+" : "+s.Minor;return o.Salt=a.read_shift(16),o.EncryptedVerifier=a.read_shift(16),o.EncryptedVerifierHash=a.read_shift(16),o}(t):n.Data=function(a,o){var s={},i=s.EncryptionVersionInfo=Ro(a,4);if(o-=4,i.Minor!=2)throw new Error("unrecognized minor version code: "+i.Minor);if(i.Major>4||i.Major<2)throw new Error("unrecognized major version code: "+i.Major);s.Flags=a.read_shift(4),o-=4;var u=a.read_shift(4);return o-=4,s.EncryptionHeader=Wg(a,u),o-=u,s.EncryptionVerifier=Vg(a,o),s}(t,r),n}var qg=function(){function t(e,n){switch(n.type){case"base64":return r(es(e),n);case"binary":return r(e,n);case"buffer":return r(wn&&Buffer.isBuffer(e)?e.toString("binary"):el(e),n);case"array":return r(Il(e),n)}throw new Error("Unrecognized type "+n.type)}function r(e,n){var a=(n||{}).dense?[]:{},o=e.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(i,u){Array.isArray(a)&&(a[u]=[]);for(var l,f=/\\\w+\b/g,c=0,h=-1;l=f.exec(i);){if(l[0]==="\\cell"){var d=i.slice(c,f.lastIndex-l[0].length);if(d[0]==" "&&(d=d.slice(1)),++h,d.length){var p={v:d,t:"s"};Array.isArray(a)?a[u][h]=p:a[on({r:u,c:h})]=p}}c=f.lastIndex}h>s.e.c&&(s.e.c=h)}),a["!ref"]=Tn(s),a}return{to_workbook:function(e,n){return Dl(t(e,n),n)},to_sheet:t,from_sheet:function(e){for(var n,a=["{\\rtf1\\ansi"],o=Un(e["!ref"]),s=Array.isArray(e),i=o.s.r;i<=o.e.r;++i){a.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var l=on({r:i,c:u});(n=s?(e[i]||[])[u]:e[l])&&(n.v!=null||n.f&&!n.F)&&(a.push(" "+(n.w||(nl(n),n.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}}}();function Qc(t){for(var r=0,e=1;r!=3;++r)e=256*e+(t[r]>255?255:t[r]<0?0:t[r]);return e.toString(16).toUpperCase().slice(1)}function jh(t,r){if(r===0)return t;var e,n,a=function(o){var s=o[0]/255,i=o[1]/255,u=o[2]/255,l=Math.max(s,i,u),f=Math.min(s,i,u),c=l-f;if(c===0)return[0,0,s];var h,d=0,p=l+f;switch(h=c/(p>1?2-p:p),l){case s:d=((i-u)/c+6)%6;break;case i:d=(u-s)/c+2;break;case u:d=(s-i)/c+4}return[d/6,h,p/2]}((n=(e=t).slice(e[0]==="#"?1:0).slice(0,6),[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]));return a[2]=r<0?a[2]*(1+r):1-(1-a[2])*(1-r),Qc(function(o){var s,i=o[0],u=o[1],l=o[2],f=2*u*(l<.5?l:1-l),c=l-f/2,h=[c,c,c],d=6*i;if(u!==0)switch(0|d){case 0:case 6:s=f*d,h[0]+=f,h[1]+=s;break;case 1:s=f*(2-d),h[0]+=s,h[1]+=f;break;case 2:s=f*(d-2),h[1]+=f,h[2]+=s;break;case 3:s=f*(4-d),h[1]+=s,h[2]+=f;break;case 4:s=f*(d-4),h[2]+=f,h[0]+=s;break;case 5:s=f*(6-d),h[2]+=s,h[0]+=f}for(var p=0;p!=3;++p)h[p]=Math.round(255*h[p]);return h}(a))}var _a=6;function tf(t){return Math.floor((t+Math.round(128/_a)/256)*_a)}function ef(t){return Math.floor((t-5)/_a*100+.5)/100}function zh(t){return Math.round((t*_a+5)/_a*256)/256}function g0(t){return zh(ef(tf(t)))}function b0(t){var r=Math.abs(t-g0(t)),e=_a;if(r>.005)for(_a=1;_a<15;++_a)Math.abs(t-g0(t))<=r&&(r=Math.abs(t-g0(t)),e=_a);_a=e}function al(t){t.width?(t.wpx=tf(t.width),t.wch=ef(t.wpx),t.MDW=_a):t.wpx?(t.wch=ef(t.wpx),t.width=zh(t.wch),t.MDW=_a):typeof t.wch=="number"&&(t.width=zh(t.wch),t.wpx=tf(t.width),t.MDW=_a),t.customWidth&&delete t.customWidth}var Gg=96;function rf(t){return 96*t/Gg}function Fu(t){return t*Gg/96}var O4={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Uh=["numFmtId","fillId","fontId","borderId","xfId"],Hh=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],I4=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,e=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,s,i){var u,l={};return o&&((u=(o=o.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(t))&&function(f,c,h){c.NumberFmt=[];for(var d=Ei(Qr),p=0;p<d.length;++p)c.NumberFmt[d[p]]=Qr[d[p]];var m=f[0].match(va);if(m)for(p=0;p<m.length;++p){var v=en(m[p]);switch(Js(v[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var b=Fn(Xn(v.formatCode)),g=parseInt(v.numFmtId,10);if(c.NumberFmt[g]=b,g>0){if(g>392){for(g=392;g>60&&c.NumberFmt[g]!=null;--g);c.NumberFmt[g]=b}To(b,g)}break;default:if(h.WTF)throw new Error("unrecognized "+v[0]+" in numFmts")}}}(u,l,i),(u=o.match(n))&&function(f,c,h,d){c.Fonts=[];var p={},m=!1;(f[0].match(va)||[]).forEach(function(v){var b=en(v);switch(Js(b[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":c.Fonts.push(p),p={};break;case"<name":b.val&&(p.name=Xn(b.val));break;case"<b":p.bold=b.val?li(b.val):1;break;case"<b/>":p.bold=1;break;case"<i":p.italic=b.val?li(b.val):1;break;case"<i/>":p.italic=1;break;case"<u":switch(b.val){case"none":p.underline=0;break;case"single":p.underline=1;break;case"double":p.underline=2;break;case"singleAccounting":p.underline=33;break;case"doubleAccounting":p.underline=34}break;case"<u/>":p.underline=1;break;case"<strike":p.strike=b.val?li(b.val):1;break;case"<strike/>":p.strike=1;break;case"<outline":p.outline=b.val?li(b.val):1;break;case"<outline/>":p.outline=1;break;case"<shadow":p.shadow=b.val?li(b.val):1;break;case"<shadow/>":p.shadow=1;break;case"<condense":p.condense=b.val?li(b.val):1;break;case"<condense/>":p.condense=1;break;case"<extend":p.extend=b.val?li(b.val):1;break;case"<extend/>":p.extend=1;break;case"<sz":b.val&&(p.sz=+b.val);break;case"<vertAlign":b.val&&(p.vertAlign=b.val);break;case"<family":b.val&&(p.family=parseInt(b.val,10));break;case"<scheme":b.val&&(p.scheme=b.val);break;case"<charset":if(b.val=="1")break;b.codepage=Pp[parseInt(b.val,10)];break;case"<color":if(p.color||(p.color={}),b.auto&&(p.color.auto=li(b.auto)),b.rgb)p.color.rgb=b.rgb.slice(-6);else if(b.indexed){p.color.index=parseInt(b.indexed,10);var g=Nu[p.color.index];p.color.index==81&&(g=Nu[1]),g||(g=Nu[1]),p.color.rgb=g[0].toString(16)+g[1].toString(16)+g[2].toString(16)}else b.theme&&(p.color.theme=parseInt(b.theme,10),b.tint&&(p.color.tint=parseFloat(b.tint)),b.theme&&h.themeElements&&h.themeElements.clrScheme&&(p.color.rgb=jh(h.themeElements.clrScheme[p.color.theme].rgb,p.color.tint||0)));break;case"<AlternateContent":case"<ext":m=!0;break;case"</AlternateContent>":case"</ext>":m=!1;break;default:if(d&&d.WTF&&!m)throw new Error("unrecognized "+b[0]+" in fonts")}})}(u,l,s,i),(u=o.match(e))&&function(f,c,h,d){c.Fills=[];var p={},m=!1;(f[0].match(va)||[]).forEach(function(v){var b=en(v);switch(Js(b[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":p={},c.Fills.push(p);break;case"<gradientFill":case"</gradientFill>":c.Fills.push(p),p={};break;case"<patternFill":case"<patternFill>":b.patternType&&(p.patternType=b.patternType);break;case"<bgColor":p.bgColor||(p.bgColor={}),b.indexed&&(p.bgColor.indexed=parseInt(b.indexed,10)),b.theme&&(p.bgColor.theme=parseInt(b.theme,10)),b.tint&&(p.bgColor.tint=parseFloat(b.tint)),b.rgb&&(p.bgColor.rgb=b.rgb.slice(-6));break;case"<fgColor":p.fgColor||(p.fgColor={}),b.theme&&(p.fgColor.theme=parseInt(b.theme,10)),b.tint&&(p.fgColor.tint=parseFloat(b.tint)),b.rgb!=null&&(p.fgColor.rgb=b.rgb.slice(-6));break;case"<ext":m=!0;break;case"</ext>":m=!1;break;default:if(d&&d.WTF&&!m)throw new Error("unrecognized "+b[0]+" in fills")}})}(u,l,0,i),(u=o.match(a))&&function(f,c,h,d){c.Borders=[];var p={},m=!1;(f[0].match(va)||[]).forEach(function(v){var b=en(v);switch(Js(b[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":p={},b.diagonalUp&&(p.diagonalUp=li(b.diagonalUp)),b.diagonalDown&&(p.diagonalDown=li(b.diagonalDown)),c.Borders.push(p);break;case"<ext":m=!0;break;case"</ext>":m=!1;break;default:if(d&&d.WTF&&!m)throw new Error("unrecognized "+b[0]+" in borders")}})}(u,l,0,i),(u=o.match(r))&&function(f,c,h){var d;c.CellXf=[];var p=!1;(f[0].match(va)||[]).forEach(function(m){var v=en(m),b=0;switch(Js(v[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(d=v)[0],b=0;b<Uh.length;++b)d[Uh[b]]&&(d[Uh[b]]=parseInt(d[Uh[b]],10));for(b=0;b<Hh.length;++b)d[Hh[b]]&&(d[Hh[b]]=li(d[Hh[b]]));if(c.NumberFmt&&d.numFmtId>392){for(b=392;b>60;--b)if(c.NumberFmt[d.numFmtId]==c.NumberFmt[b]){d.numFmtId=b;break}}c.CellXf.push(d);break;case"<alignment":case"<alignment/>":var g={};v.vertical&&(g.vertical=v.vertical),v.horizontal&&(g.horizontal=v.horizontal),v.textRotation!=null&&(g.textRotation=v.textRotation),v.indent&&(g.indent=v.indent),v.wrapText&&(g.wrapText=li(v.wrapText)),d.alignment=g;break;case"<AlternateContent":case"<ext":p=!0;break;case"</AlternateContent>":case"</ext>":p=!1;break;default:if(h&&h.WTF&&!p)throw new Error("unrecognized "+v[0]+" in cellXfs")}})}(u,l,i)),l}}();function Yg(t,r){var e,n=[Ci,vr("styleSheet",null,{xmlns:Nl[0],"xmlns:vt":Xp})];return t.SSF&&(e=function(a){var o=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(s){for(var i=s[0];i<=s[1];++i)a[i]!=null&&(o[o.length]=vr("numFmt",null,{numFmtId:i,formatCode:qn(a[i])}))}),o.length===1?"":(o[o.length]="</numFmts>",o[0]=vr("numFmts",null,{count:o.length-2}).replace("/>",">"),o.join(""))}(t.SSF))!=null&&(n[n.length]=e),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(e=function(a){var o=[];return o[o.length]=vr("cellXfs",null),a.forEach(function(s){o[o.length]=vr("xf",null,s)}),o[o.length]="</cellXfs>",o.length===2?"":(o[0]=vr("cellXfs",null,{count:o.length-2}).replace("/>",">"),o.join(""))}(r.cellXfs))&&(n[n.length]=e),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function N4(t,r,e){e||(e=Me(6+4*r.length)),e.write_shift(2,t),ta(r,e);var n=e.length>e.l?e.slice(0,e.l):e;return e.l==null&&(e.l=e.length),n}function P4(t,r){r||(r=Me(153)),r.write_shift(2,20*t.sz),function(a,o){o||(o=Me(2));var s=(a.italic?2:0)|(a.strike?8:0)|(a.outline?16:0)|(a.shadow?32:0)|(a.condense?64:0)|(a.extend?128:0);o.write_shift(1,s),o.write_shift(1,0)}(t,r),r.write_shift(2,t.bold?700:400);var e=0;t.vertAlign=="superscript"?e=1:t.vertAlign=="subscript"&&(e=2),r.write_shift(2,e),r.write_shift(1,t.underline||0),r.write_shift(1,t.family||0),r.write_shift(1,t.charset||0),r.write_shift(1,0),Nh(t.color,r);var n=0;return n=2,r.write_shift(1,n),ta(t.name,r),r.length>r.l?r.slice(0,r.l):r}var y0,D4=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],F4=ga;function Kg(t,r){r||(r=Me(84)),y0||(y0=Th(D4));var e=y0[t.patternType];e==null&&(e=40),r.write_shift(4,e);var n=0;if(e!=40)for(Nh({auto:1},r),Nh({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function Xg(t,r,e){return e||(e=Me(16)),e.write_shift(2,r||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function nf(t,r){return r||(r=Me(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var L4=ga;function B4(t){var r;Ye(t,613,Hs(1)),Ye(t,46,(r||(r=Me(51)),r.write_shift(1,0),nf(0,r),nf(0,r),nf(0,r),nf(0,r),nf(0,r),r.length>r.l?r.slice(0,r.l):r)),Ye(t,614)}function j4(t){var r,e;Ye(t,619,Hs(1)),Ye(t,48,(r={xfId:0,builtinId:0,name:"Normal"},e||(e=Me(52)),e.write_shift(4,r.xfId),e.write_shift(2,1),e.write_shift(1,+r.builtinId),e.write_shift(1,0),Ih(r.name||"",e),e.length>e.l?e.slice(0,e.l):e)),Ye(t,620)}function z4(t){Ye(t,508,function(r,e,n){var a=Me(2052);return a.write_shift(4,r),Ih(e,a),Ih(n,a),a.length>a.l?a.slice(0,a.l):a}(0,"TableStyleMedium9","PivotStyleMedium4")),Ye(t,509)}function U4(t,r){var e=qa();return Ye(e,278),function(n,a){if(a){var o=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(s){for(var i=s[0];i<=s[1];++i)a[i]!=null&&++o}),o!=0&&(Ye(n,615,Hs(o)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(s){for(var i=s[0];i<=s[1];++i)a[i]!=null&&Ye(n,44,N4(i,a[i]))}),Ye(n,616))}}(e,t.SSF),function(n){Ye(n,611,Hs(1)),Ye(n,43,P4({sz:12,color:{theme:1},name:"Calibri",family:2})),Ye(n,612)}(e),function(n){Ye(n,603,Hs(2)),Ye(n,45,Kg({patternType:"none"})),Ye(n,45,Kg({patternType:"gray125"})),Ye(n,604)}(e),B4(e),function(n){Ye(n,626,Hs(1)),Ye(n,47,Xg({numFmtId:0},65535)),Ye(n,627)}(e),function(n,a){Ye(n,617,Hs(a.length)),a.forEach(function(o){Ye(n,47,Xg(o,0))}),Ye(n,618)}(e,r.cellXfs),j4(e),function(n){Ye(n,505,Hs(0)),Ye(n,506)}(e),z4(e),Ye(e,279),e.end()}var H4=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function W4(t,r,e){r.themeElements.clrScheme=[];var n={};(t[0].match(va)||[]).forEach(function(a){var o=en(a);switch(o[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=o.val;break;case"<a:sysClr":n.rgb=o.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":o[0].charAt(1)==="/"?(r.themeElements.clrScheme[H4.indexOf(o[0])]=n,n={}):n.name=o[0].slice(3,o[0].length-1);break;default:if(e&&e.WTF)throw new Error("Unrecognized "+o[0]+" in clrScheme")}})}function V4(){}function $4(){}var q4=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,G4=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Y4=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,K4=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Zg(t,r){var e;t&&t.length!==0||(t=w0());var n={};if(!(e=t.match(K4)))throw new Error("themeElements not found in theme");return function(a,o,s){var i;o.themeElements={},[["clrScheme",q4,W4],["fontScheme",G4,V4],["fmtScheme",Y4,$4]].forEach(function(u){if(!(i=a.match(u[1])))throw new Error(u[0]+" not found in themeElements");u[2](i,o,s)})}(e[0],n,r),n.raw=t,n}function w0(t,r){if(r&&r.themeXLSX)return r.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var e=[Ci];return e[e.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',e[e.length]="<a:themeElements>",e[e.length]='<a:clrScheme name="Office">',e[e.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',e[e.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',e[e.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',e[e.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',e[e.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',e[e.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',e[e.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',e[e.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',e[e.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',e[e.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',e[e.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',e[e.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',e[e.length]="</a:clrScheme>",e[e.length]='<a:fontScheme name="Office">',e[e.length]="<a:majorFont>",e[e.length]='<a:latin typeface="Cambria"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',e[e.length]='<a:font script="Hang" typeface="맑은 고딕"/>',e[e.length]='<a:font script="Hans" typeface="宋体"/>',e[e.length]='<a:font script="Hant" typeface="新細明體"/>',e[e.length]='<a:font script="Arab" typeface="Times New Roman"/>',e[e.length]='<a:font script="Hebr" typeface="Times New Roman"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="MoolBoran"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Times New Roman"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:majorFont>",e[e.length]="<a:minorFont>",e[e.length]='<a:latin typeface="Calibri"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',e[e.length]='<a:font script="Hang" typeface="맑은 고딕"/>',e[e.length]='<a:font script="Hans" typeface="宋体"/>',e[e.length]='<a:font script="Hant" typeface="新細明體"/>',e[e.length]='<a:font script="Arab" typeface="Arial"/>',e[e.length]='<a:font script="Hebr" typeface="Arial"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="DaunPenh"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Arial"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:minorFont>",e[e.length]="</a:fontScheme>",e[e.length]='<a:fmtScheme name="Office">',e[e.length]="<a:fillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="1"/>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="0"/>',e[e.length]="</a:gradFill>",e[e.length]="</a:fillStyleLst>",e[e.length]="<a:lnStyleLst>",e[e.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]="</a:lnStyleLst>",e[e.length]="<a:effectStyleLst>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',e[e.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',e[e.length]="</a:effectStyle>",e[e.length]="</a:effectStyleLst>",e[e.length]="<a:bgFillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]="</a:bgFillStyleLst>",e[e.length]="</a:fmtScheme>",e[e.length]="</a:themeElements>",e[e.length]="<a:objectDefaults>",e[e.length]="<a:spDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',e[e.length]="</a:spDef>",e[e.length]="<a:lnDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',e[e.length]="</a:lnDef>",e[e.length]="</a:objectDefaults>",e[e.length]="<a:extraClrSchemeLst/>",e[e.length]="</a:theme>",e.join("")}function X4(t){var r={};switch(r.xclrType=t.read_shift(2),r.nTintShade=t.read_shift(2),r.xclrType){case 0:case 4:t.l+=4;break;case 1:r.xclrValue=function(e,n){return ga(e,n)}(t,4);break;case 2:r.xclrValue=kg(t);break;case 3:r.xclrValue=function(e){return e.read_shift(4)}(t)}return t.l+=8,r}function Z4(t){var r=t.read_shift(2),e=t.read_shift(2)-4,n=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=X4(t);break;case 6:n[1]=function(a,o){return ga(a,o)}(t,e);break;case 14:case 15:n[1]=t.read_shift(e===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+e)}return n}function J4(){var t,r,e=qa();return Ye(e,332),Ye(e,334,Hs(1)),Ye(e,335,((r=Me(12+2*(t={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,t.flags),r.write_shift(4,t.version),ta(t.name,r),r.slice(0,r.l))),Ye(e,336),Ye(e,339,function(n,a){var o=Me(8+2*a.length);return o.write_shift(4,n),ta(a,o),o.slice(0,o.l)}(1,"XLDAPR")),Ye(e,52),Ye(e,35,Hs(514)),Ye(e,4096,Hs(0)),Ye(e,4097,ws(1)),Ye(e,36),Ye(e,53),Ye(e,340),Ye(e,337,function(n,a){var o=Me(8);return o.write_shift(4,n),o.write_shift(4,1),o}(1)),Ye(e,51,function(n){var a=Me(4+8*n.length);a.write_shift(4,n.length);for(var o=0;o<n.length;++o)a.write_shift(4,n[o][0]),a.write_shift(4,n[o][1]);return a}([[1,0]])),Ye(e,338),Ye(e,333),e.end()}function Jg(){var t=[Ci];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"> |
|
|
<metadataTypes count="1"> |
|
|
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/> |
|
|
</metadataTypes> |
|
|
<futureMetadata name="XLDAPR" count="1"> |
|
|
<bk> |
|
|
<extLst> |
|
|
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> |
|
|
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> |
|
|
</ext> |
|
|
</extLst> |
|
|
</bk> |
|
|
</futureMetadata> |
|
|
<cellMetadata count="1"> |
|
|
<bk> |
|
|
<rc t="1" v="0"/> |
|
|
</bk> |
|
|
</cellMetadata> |
|
|
</metadata>`),t.join("")}var Lu=1024;function Qg(t,r){for(var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),a=[vr("xml",null,{"xmlns:v":C3,"xmlns:o":Rh,"xmlns:x":Zp,"xmlns:mv":E3}).replace(/\/>/,">"),vr("o:shapelayout",vr("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),vr("v:shapetype",[vr("v:stroke",null,{joinstyle:"miter"}),vr("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:n})];Lu<1e3*t;)Lu+=1e3;return r.forEach(function(o){var s=Wi(o[0]),i={color2:"#BEFF82",type:"gradient"};i.type=="gradient"&&(i.angle="-180");var u=i.type=="gradient"?vr("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=vr("v:fill",u,i);++Lu,a=a.concat(["<v:shape"+Hc({id:"_x0000_s"+Lu,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(o[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,vr("v:shadow",null,{on:"t",obscured:"t"}),vr("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",sa("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),sa("x:AutoFill","False"),sa("x:Row",String(s.r)),sa("x:Column",String(s.c)),o[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function tb(t,r,e,n){var a,o=Array.isArray(t);r.forEach(function(s){var i=Wi(s.ref);if(o?(t[i.r]||(t[i.r]=[]),a=t[i.r][i.c]):a=t[s.ref],!a){a={t:"z"},o?t[i.r][i.c]=a:t[s.ref]=a;var u=Un(t["!ref"]||"BDWGO1000001:A1");u.s.r>i.r&&(u.s.r=i.r),u.e.r<i.r&&(u.e.r=i.r),u.s.c>i.c&&(u.s.c=i.c),u.e.c<i.c&&(u.e.c=i.c);var l=Tn(u);l!==t["!ref"]&&(t["!ref"]=l)}a.c||(a.c=[]);var f={a:s.author,t:s.t,r:s.r,T:e};s.h&&(f.h=s.h);for(var c=a.c.length-1;c>=0;--c){if(!e&&a.c[c].T)return;e&&!a.c[c].T&&a.c.splice(c,1)}if(e&&n){for(c=0;c<n.length;++c)if(f.a==n[c].id){f.a=n[c].name||f.a;break}}a.c.push(f)})}function eb(t){var r=[Ci,vr("comments",null,{xmlns:Nl[0]})],e=[];return r.push("<authors>"),t.forEach(function(n){n[1].forEach(function(a){var o=qn(a.a);e.indexOf(o)==-1&&(e.push(o),r.push("<author>"+o+"</author>")),a.T&&a.ID&&e.indexOf("tc="+a.ID)==-1&&(e.push("tc="+a.ID),r.push("<author>tc="+a.ID+"</author>"))})}),e.length==0&&(e.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),t.forEach(function(n){var a=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=e.indexOf("tc="+n[1][0].ID):n[1].forEach(function(u){u.a&&(a=e.indexOf(qn(u.a))),o.push(u.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),o.length<=1)r.push(sa("t",qn(o[0]||"")));else{for(var s=`Comment: |
|
|
`+o[0]+` |
|
|
`,i=1;i<o.length;++i)s+=`Reply: |
|
|
`+o[i]+` |
|
|
`;r.push(sa("t",qn(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Q4(t,r,e){var n=[Ci,vr("ThreadedComments",null,{xmlns:wv}).replace(/[\/]>/,">")];return t.forEach(function(a){var o="";(a[1]||[]).forEach(function(s,i){if(s.T){s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var u={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};i==0?o=u.id:u.parentId=o,s.ID=u.id,s.a&&(u.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(vr("threadedComment",sa("text",s.t||""),u))}else delete s.ID})}),n.push("</ThreadedComments>"),n.join("")}var t6=ba;function e6(t){var r=qa(),e=[];return Ye(r,628),Ye(r,630),t.forEach(function(n){n[1].forEach(function(a){e.indexOf(a.a)>-1||(e.push(a.a.slice(0,54)),Ye(r,632,function(o){return ta(o.slice(0,54))}(a.a)))})}),Ye(r,631),Ye(r,633),t.forEach(function(n){n[1].forEach(function(a){a.iauthor=e.indexOf(a.a);var o={s:Wi(n[0]),e:Wi(n[0])};Ye(r,635,function(s,i){return i==null&&(i=Me(36)),i.write_shift(4,s[1].iauthor),Ou(s[0],i),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i}([o,a])),a.t&&a.t.length>0&&Ye(r,637,B3(a)),Ye(r,636),delete a.iauthor})}),Ye(r,634),Ye(r,629),r.end()}var rb=["xlsb","xlsm","xlam","biff8","xla"],Bu=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function e(n,a,o,s){var i=!1,u=!1;o.length==0?u=!0:o.charAt(0)=="["&&(u=!0,o=o.slice(1,-1)),s.length==0?i=!0:s.charAt(0)=="["&&(i=!0,s=s.slice(1,-1));var l=o.length>0?0|parseInt(o,10):0,f=s.length>0?0|parseInt(s,10):0;return i?f+=r.c:--f,u?l+=r.r:--l,a+(i?"":"$")+Bi(f)+(u?"":"$")+Qi(l)}return function(n,a){return r=a,n.replace(t,e)}}(),_0=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,k0=function(){return function(t,r){return t.replace(_0,function(e,n,a,o,s,i){var u=Vv(o)-(a?0:r.c),l=Wv(i)-(s?0:r.r);return n+"R"+(l==0?"":s?l+1:"["+l+"]")+"C"+(u==0?"":a?u+1:"["+u+"]")})}}();function nb(t,r){return t.replace(_0,function(e,n,a,o,s,i){return n+(a=="$"?a+o:Bi(Vv(o)+r.c))+(s=="$"?s+i:Qi(Wv(i)+r.r))})}function r6(t,r,e){var n=gs(r).s,a=Wi(e);return nb(t,{r:a.r-n.r,c:a.c-n.c})}function ib(t){return t.replace(/_xlfn\./g,"")}function zi(t){t.l+=1}function sl(t,r){var e=t.read_shift(2);return[16383&e,e>>14&1,e>>15&1]}function ab(t,r,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return sb(t);e.biff==12&&(n=4)}var a=t.read_shift(n),o=t.read_shift(n),s=sl(t),i=sl(t);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:i[0],cRel:i[1],rRel:i[2]}}}function sb(t){var r=sl(t),e=sl(t),n=t.read_shift(1),a=t.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:e[0],c:a,cRel:e[1],rRel:e[2]}}}function ob(t,r,e){if(e&&e.biff>=2&&e.biff<=5)return function(o){var s=sl(o),i=o.read_shift(1);return{r:s[0],c:i,cRel:s[1],rRel:s[2]}}(t);var n=t.read_shift(e&&e.biff==12?4:2),a=sl(t);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function n6(t){var r=t.read_shift(2),e=t.read_shift(2);return{r,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function lb(t){var r=1&t[t.l+1];return t.l+=4,[r,1]}function ub(t){return[t.read_shift(1),t.read_shift(1)]}function i6(t,r){var e=[t.read_shift(1)];if(r==12)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=Ai(t,1)?"TRUE":"FALSE",r!=12&&(t.l+=7);break;case 37:case 16:e[1]=Mo[t[t.l]],t.l+=r==12?4:8;break;case 0:t.l+=8;break;case 1:e[1]=ya(t);break;case 2:e[1]=Hl(t,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function a6(t,r,e){for(var n=t.read_shift(e.biff==12?4:2),a=[],o=0;o!=n;++o)a.push((e.biff==12?jl:Lh)(t));return a}function s6(t,r,e){var n=0,a=0;e.biff==12?(n=t.read_shift(4),a=t.read_shift(4)):(a=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,--a==0&&(a=256));for(var o=0,s=[];o!=n&&(s[o]=[]);++o)for(var i=0;i!=a;++i)s[o][i]=i6(t,e.biff);return s}function af(t,r,e){return t.l+=2,[n6(t)]}function x0(t){return t.l+=6,[]}function cb(t){return t.l+=2,[ji(t),1&t.read_shift(2)]}var o6=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],fb={1:{n:"PtgExp",f:function(t,r,e){return t.l++,e&&e.biff==12?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&e.biff==2?1:2)]}},2:{n:"PtgTbl",f:ga},3:{n:"PtgAdd",f:zi},4:{n:"PtgSub",f:zi},5:{n:"PtgMul",f:zi},6:{n:"PtgDiv",f:zi},7:{n:"PtgPower",f:zi},8:{n:"PtgConcat",f:zi},9:{n:"PtgLt",f:zi},10:{n:"PtgLe",f:zi},11:{n:"PtgEq",f:zi},12:{n:"PtgGe",f:zi},13:{n:"PtgGt",f:zi},14:{n:"PtgNe",f:zi},15:{n:"PtgIsect",f:zi},16:{n:"PtgUnion",f:zi},17:{n:"PtgRange",f:zi},18:{n:"PtgUplus",f:zi},19:{n:"PtgUminus",f:zi},20:{n:"PtgPercent",f:zi},21:{n:"PtgParen",f:zi},22:{n:"PtgMissArg",f:zi},23:{n:"PtgStr",f:function(t,r,e){return t.l++,Zc(t,0,e)}},26:{n:"PtgSheet",f:function(t,r,e){return t.l+=5,t.l+=2,t.l+=e.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(t,r,e){return t.l+=e.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(t){return t.l++,Mo[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t){return t.l++,t.read_shift(1)!==0}},30:{n:"PtgInt",f:function(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t){return t.l++,ya(t)}},32:{n:"PtgArray",f:function(t,r,e){var n=(96&t[t.l++])>>5;return t.l+=e.biff==2?6:e.biff==12?14:7,[n]}},33:{n:"PtgFunc",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var a=t.read_shift(e&&e.biff<=3?1:2);return[w6[a],pb[a],n]}},34:{n:"PtgFuncVar",f:function(t,r,e){var n=t[t.l++],a=t.read_shift(1),o=e&&e.biff<=3?[n==88?-1:0,t.read_shift(1)]:function(s){return[s[s.l+1]>>7,32767&s.read_shift(2)]}(t);return[a,(o[0]===0?pb:y6)[o[1]]]}},35:{n:"PtgName",f:function(t,r,e){var n=t.read_shift(1)>>>5&3,a=!e||e.biff>=8?4:2,o=t.read_shift(a);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[n,0,o]}},36:{n:"PtgRef",f:function(t,r,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,ob(t,0,e)]}},37:{n:"PtgArea",f:function(t,r,e){return[(96&t[t.l++])>>5,ab(t,e.biff>=2&&e.biff,e)]}},38:{n:"PtgMemArea",f:function(t,r,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&e.biff==2?3:4,[n,t.read_shift(e&&e.biff==2?1:2)]}},39:{n:"PtgMemErr",f:ga},40:{n:"PtgMemNoMem",f:ga},41:{n:"PtgMemFunc",f:function(t,r,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&e.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(t,r,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,e.biff==12&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function(t,r,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var a=function(o,s,i){var u=i&&i.biff?i.biff:8;if(u>=2&&u<=5)return function(d){var p=d.read_shift(2),m=d.read_shift(1),v=(32768&p)>>15,b=(16384&p)>>14;return p&=16383,v==1&&p>=8192&&(p-=16384),b==1&&m>=128&&(m-=256),{r:p,c:m,cRel:b,rRel:v}}(o);var l=o.read_shift(u>=12?4:2),f=o.read_shift(2),c=(16384&f)>>14,h=(32768&f)>>15;if(f&=16383,h==1)for(;l>524287;)l-=1048576;if(c==1)for(;f>8191;)f-=16384;return{r:l,c:f,cRel:c,rRel:h}}(t,0,e);return[n,a]}},45:{n:"PtgAreaN",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=function(o,s,i){if(i.biff<8)return sb(o);var u=o.read_shift(i.biff==12?4:2),l=o.read_shift(i.biff==12?4:2),f=sl(o),c=sl(o);return{s:{r:u,c:f[0],cRel:f[1],rRel:f[2]},e:{r:l,c:c[0],cRel:c[1],rRel:c[2]}}}(t,0,e);return[n,a]}},46:{n:"PtgMemAreaN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function(t,r,e){return e.biff==5?function(n){var a=n.read_shift(1)>>>5&3,o=n.read_shift(2,"i");n.l+=8;var s=n.read_shift(2);return n.l+=12,[a,o,s]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var a=t.read_shift(2);return e&&e.biff==5&&(t.l+=12),[n,a,ob(t,0,e)]}},59:{n:"PtgArea3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=t.read_shift(2,"i");if(e)switch(e.biff){case 5:t.l+=12;break}return[n,a,ab(t,0,e)]}},60:{n:"PtgRefErr3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=t.read_shift(2),o=4;if(e)switch(e.biff){case 5:o=15;break;case 12:o=6}return t.l+=o,[n,a]}},61:{n:"PtgAreaErr3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,a=t.read_shift(2),o=8;if(e)switch(e.biff){case 5:t.l+=12,o=6;break;case 12:o=12}return t.l+=o,[n,a]}},255:{}},l6={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},u6={1:{n:"PtgElfLel",f:cb},2:{n:"PtgElfRw",f:af},3:{n:"PtgElfCol",f:af},6:{n:"PtgElfRwV",f:af},7:{n:"PtgElfColV",f:af},10:{n:"PtgElfRadical",f:af},11:{n:"PtgElfRadicalS",f:x0},13:{n:"PtgElfColS",f:x0},15:{n:"PtgElfColSV",f:x0},16:{n:"PtgElfRadicalLel",f:cb},25:{n:"PtgList",f:function(t){t.l+=2;var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),a=t.read_shift(2),o=t.read_shift(2);return{ixti:r,coltype:3&e,rt:o6[e>>2&31],idx:n,c:a,C:o}}},29:{n:"PtgSxName",f:function(t){return t.l+=2,[t.read_shift(4)]}},255:{}},c6={0:{n:"PtgAttrNoop",f:function(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&e.biff==2?3:4,[n]}},2:{n:"PtgAttrIf",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(t,r,e){t.l+=2;for(var n=t.read_shift(e&&e.biff==2?1:2),a=[],o=0;o<=n;++o)a.push(t.read_shift(e&&e.biff==2?1:2));return a}},8:{n:"PtgAttrGoto",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(t,r,e){t.l+=e&&e.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:lb},33:{n:"PtgAttrBaxcel",f:lb},64:{n:"PtgAttrSpace",f:function(t){return t.read_shift(2),ub(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t){return t.read_shift(2),ub(t)}},128:{n:"PtgAttrIfError",f:function(t){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(2)]}},255:{}};function sf(t,r,e,n){if(n.biff<8)return ga(t,r);for(var a=t.l+r,o=[],s=0;s!==e.length;++s)switch(e[s][0]){case"PtgArray":e[s][1]=s6(t,0,n),o.push(e[s][1]);break;case"PtgMemArea":e[s][2]=a6(t,e[s][1],n),o.push(e[s][2]);break;case"PtgExp":n&&n.biff==12&&(e[s][1][1]=t.read_shift(4),o.push(e[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[s][0]}return(r=a-t.l)!==0&&o.push(ga(t,r)),o}function of(t,r,e){for(var n,a,o=t.l+r,s=[];o!=t.l;)r=o-t.l,a=t[t.l],n=fb[a]||fb[l6[a]],a!==24&&a!==25||(n=(a===24?u6:c6)[t[t.l+1]]),n&&n.f?s.push([n.n,n.f(t,r,e)]):ga(t,r);return s}function f6(t){for(var r=[],e=0;e<t.length;++e){for(var n=t[e],a=[],o=0;o<n.length;++o){var s=n[o];s?s[0]===2?a.push('"'+s[1].replace(/"/g,'""')+'"'):a.push(s[1]):a.push("")}r.push(a.join(","))}return r.join(";")}var h6={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function hb(t,r,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[r]))return t.SheetNames[r];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[r];if(e.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":t.XTI[r-1];if(!n)return"SH33TJSERR1";var a="";if(e.biff>8)switch(t[n[0]][0]){case 357:return a=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 358:return e.SID!=null?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return t[n[0]][0][3]?(a=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function db(t,r,e){var n=hb(t,r,e);return n=="#REF"?n:function(a,o){if(!(a||o&&o.biff<=5&&o.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(a)?"'"+a+"'":a}(n,e)}function ka(t,r,e,n,a){var o,s,i,u,l=a&&a.biff||8,f={s:{c:0,r:0}},c=[],h=0,d=0,p="";if(!t[0]||!t[0][0])return"";for(var m=-1,v="",b=0,g=t[0].length;b<g;++b){var y=t[0][b];switch(y[0]){case"PtgUminus":c.push("-"+c.pop());break;case"PtgUplus":c.push("+"+c.pop());break;case"PtgPercent":c.push(c.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=c.pop(),s=c.pop(),m>=0){switch(t[0][m][1][0]){case 0:v=yi(" ",t[0][m][1][1]);break;case 1:v=yi("\r",t[0][m][1][1]);break;default:if(v="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}s+=v,m=-1}c.push(s+h6[y[0]]+o);break;case"PtgIsect":o=c.pop(),s=c.pop(),c.push(s+" "+o);break;case"PtgUnion":o=c.pop(),s=c.pop(),c.push(s+","+o);break;case"PtgRange":o=c.pop(),s=c.pop(),c.push(s+":"+o);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":i=qc(y[1][1],f,a),c.push(Gc(i,l));break;case"PtgRefN":i=e?qc(y[1][1],e,a):y[1][1],c.push(Gc(i,l));break;case"PtgRef3d":h=y[1][1],i=qc(y[1][2],f,a),p=db(n,h,a),c.push(p+"!"+Gc(i,l));break;case"PtgFunc":case"PtgFuncVar":var k=y[1][0],S=y[1][1];k||(k=0);var C=(k&=127)==0?[]:c.slice(-k);c.length-=k,S==="User"&&(S=C.shift()),c.push(S+"("+C.join(",")+")");break;case"PtgBool":c.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":c.push(y[1]);break;case"PtgNum":c.push(String(y[1]));break;case"PtgStr":c.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":u=Hv(y[1][1],e?{s:e}:f,a),c.push(t0(u,a));break;case"PtgArea":u=Hv(y[1][1],f,a),c.push(t0(u,a));break;case"PtgArea3d":h=y[1][1],u=y[1][2],p=db(n,h,a),c.push(p+"!"+t0(u,a));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgName":d=y[1][2];var O=(n.names||[])[d-1]||(n[0]||[])[d],L=O?O.Name:"SH33TJSNAME"+String(d);L&&L.slice(0,6)=="_xlfn."&&!a.xlfn&&(L=L.slice(6)),c.push(L);break;case"PtgNameX":var j,U=y[1][1];if(d=y[1][2],!(a.biff<=5)){var z="";if(((n[U]||[])[0]||[])[0]==14849||(((n[U]||[])[0]||[])[0]==1025?n[U][d]&&n[U][d].itab>0&&(z=n.SheetNames[n[U][d].itab-1]+"!"):z=n.SheetNames[d-1]+"!"),n[U]&&n[U][d])z+=n[U][d].Name;else if(n[0]&&n[0][d])z+=n[0][d].Name;else{var Y=(hb(n,U,a)||"").split(";;");Y[d-1]?z=Y[d-1]:z+="SH33TJSERRX"}c.push(z);break}U<0&&(U=-U),n[U]&&(j=n[U][d]),j||(j={Name:"SH33TJSERRY"}),c.push(j.Name);break;case"PtgParen":var A="(",I=")";if(m>=0){switch(v="",t[0][m][1][0]){case 2:A=yi(" ",t[0][m][1][1])+A;break;case 3:A=yi("\r",t[0][m][1][1])+A;break;case 4:I=yi(" ",t[0][m][1][1])+I;break;case 5:I=yi("\r",t[0][m][1][1])+I;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}m=-1}c.push(A+c.pop()+I);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":c.push("#REF!");break;case"PtgExp":i={c:y[1][1],r:y[1][0]};var _={c:e.c,r:e.r};if(n.sharedf[on(i)]){var x=n.sharedf[on(i)];c.push(ka(x,f,_,n,a))}else{var T=!1;for(o=0;o!=n.arrayf.length;++o)if(s=n.arrayf[o],!(i.c<s[0].s.c||i.c>s[0].e.c||i.r<s[0].s.r||i.r>s[0].e.r)){c.push(ka(s[1],f,_,n,a)),T=!0;break}T||c.push(y[1])}break;case"PtgArray":c.push("{"+f6(y[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=b;break;case"PtgMissArg":c.push("");break;case"PtgList":c.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(y))}if(a.biff!=3&&m>=0&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][b][0])==-1){var E=!0;switch((y=t[0][m])[1][0]){case 4:E=!1;case 0:v=yi(" ",y[1][1]);break;case 5:E=!1;case 1:v=yi("\r",y[1][1]);break;default:if(v="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}c.push((E?v:"")+c.pop()+(E?"":v)),m=-1}}if(c.length>1&&a.WTF)throw new Error("bad formula stack");return c[0]}function d6(t,r,e){var n,a=t.l+r,o=e.biff==2?1:2,s=t.read_shift(o);if(s==65535)return[[],ga(t,r-2)];var i=of(t,s,e);return r!==s+o&&(n=sf(t,r-s-o,i,e)),t.l=a,[i,n]}function p6(t,r,e){var n,a=t.l+r,o=t.read_shift(2),s=of(t,o,e);return o==65535?[[],ga(t,r-2)]:(r!==o+2&&(n=sf(t,a-o-2,s,e)),[s,n])}function S0(t,r,e){var n=t.l+r,a=to(t);e.biff==2&&++t.l;var o=function(u){var l;if(Co(u,u.l+6)!==65535)return[ya(u),"n"];switch(u[u.l]){case 0:return u.l+=8,["String","s"];case 1:return l=u[u.l+2]===1,u.l+=8,[l,"b"];case 2:return l=u[u.l+2],u.l+=8,[l,"e"];case 3:return u.l+=8,["","s"]}return[]}(t),s=t.read_shift(1);e.biff!=2&&(t.read_shift(1),e.biff>=5&&t.read_shift(4));var i=function(u,l,f){var c,h=u.l+l,d=f.biff==2?1:2,p=u.read_shift(d);if(p==65535)return[[],ga(u,l-2)];var m=of(u,p,f);return l!==p+d&&(c=sf(u,l-p-d,m,f)),u.l=h,[m,c]}(t,n-t.l,e);return{cell:a,val:o[0],formula:i,shared:s>>3&1,tt:o[1]}}function m6(t,r,e,n,a){var o=Wl(r,e,a),s=function(f){if(f==null){var c=Me(8);return c.write_shift(1,3),c.write_shift(1,0),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(2,65535),c}return Iu(typeof f=="number"?f:0)}(t.v),i=Me(6);i.write_shift(2,33),i.write_shift(4,0);for(var u=Me(t.bf.length),l=0;l<t.bf.length;++l)u[l]=t.bf[l];return Ji([o,s,i,u])}function Wh(t,r,e){var n=t.read_shift(4),a=of(t,n,e),o=t.read_shift(4);return[a,o>0?sf(t,o,a,e):null]}var v6=Wh,Vh=Wh,g6=Wh,b6=Wh,y6={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},pb={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},w6={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function mb(t){return t.slice(0,3)=="of:"&&(t=t.slice(3)),t.charCodeAt(0)==61&&(t=t.slice(1)).charCodeAt(0)==61&&(t=t.slice(1)),(t=(t=(t=t.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(r,e){return e.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function T0(t){var r=t.split(":");return[r[0].split(".")[0],r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}var lf={},ju={},uf=typeof Map<"u";function E0(t,r,e){var n=0,a=t.length;if(e){if(uf?e.has(r):Object.prototype.hasOwnProperty.call(e,r)){for(var o=uf?e.get(r):e[r];n<o.length;++n)if(t[o[n]].t===r)return t.Count++,o[n]}}else for(;n<a;++n)if(t[n].t===r)return t.Count++,n;return t[a]={t:r},t.Count++,t.Unique++,e&&(uf?(e.has(r)||e.set(r,[]),e.get(r).push(a)):(Object.prototype.hasOwnProperty.call(e,r)||(e[r]=[]),e[r].push(a))),a}function $h(t,r){var e={min:t+1,max:t+1},n=-1;return r.MDW&&(_a=r.MDW),r.width!=null?e.customWidth=1:r.wpx!=null?n=ef(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(e.width=zh(n),e.customWidth=1):r.width!=null&&(e.width=r.width),r.hidden&&(e.hidden=!0),r.level!=null&&(e.outlineLevel=e.level=r.level),e}function $l(t,r){if(t){var e=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(e=[1,1,1,1,.5,.5]),t.left==null&&(t.left=e[0]),t.right==null&&(t.right=e[1]),t.top==null&&(t.top=e[2]),t.bottom==null&&(t.bottom=e[3]),t.header==null&&(t.header=e[4]),t.footer==null&&(t.footer=e[5])}}function ol(t,r,e){var n=e.revssf[r.z!=null?r.z:"General"],a=60,o=t.length;if(n==null&&e.ssf){for(;a<392;++a)if(e.ssf[a]==null){To(r.z,a),e.ssf[a]=r.z,e.revssf[r.z]=n=a;break}}for(a=0;a!=o;++a)if(t[a].numFmtId===n)return a;return t[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function vb(t,r,e,n,a,o){try{n.cellNF&&(t.z=Qr[r])}catch(i){if(n.WTF)throw i}if(t.t!=="z"||n.cellStyles){if(t.t==="d"&&typeof t.v=="string"&&(t.v=di(t.v)),(!n||n.cellText!==!1)&&t.t!=="z")try{if(Qr[r]==null&&To(t3[r]||"General",r),t.t==="e")t.w=t.w||Mo[t.v];else if(r===0)if(t.t==="n")(0|t.v)===t.v?t.w=t.v.toString(10):t.w=Lc(t.v);else if(t.t==="d"){var s=aa(t.v);t.w=(0|s)===s?s.toString(10):Lc(s)}else{if(t.v===void 0)return"";t.w=Ol(t.v,ju)}else t.t==="d"?t.w=ms(r,aa(t.v),ju):t.w=ms(r,t.v,ju)}catch(i){if(n.WTF)throw i}if(n.cellStyles&&e!=null)try{t.s=o.Fills[e],t.s.fgColor&&t.s.fgColor.theme&&!t.s.fgColor.rgb&&(t.s.fgColor.rgb=jh(a.themeElements.clrScheme[t.s.fgColor.theme].rgb,t.s.fgColor.tint||0),n.WTF&&(t.s.fgColor.raw_rgb=a.themeElements.clrScheme[t.s.fgColor.theme].rgb)),t.s.bgColor&&t.s.bgColor.theme&&(t.s.bgColor.rgb=jh(a.themeElements.clrScheme[t.s.bgColor.theme].rgb,t.s.bgColor.tint||0),n.WTF&&(t.s.bgColor.raw_rgb=a.themeElements.clrScheme[t.s.bgColor.theme].rgb))}catch(i){if(n.WTF&&o.Fills)throw i}}}function _6(t,r,e){if(t&&t["!ref"]){var n=Un(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}var k6=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,x6=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,S6=/<(?:\w:)?hyperlink [^>]*>/gm,T6=/"(\w*:\w*)"/,E6=/<(?:\w:)?col\b[^>]*[\/]?>/g,C6=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,A6=/<(?:\w:)?pageMargins[^>]*\/>/g,gb=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,M6=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,R6=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function O6(t,r,e,n,a,o,s){if(!t)return t;n||(n={"!id":{}});var i=r.dense?[]:{},u={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",c=t.match(x6);c?(l=t.slice(0,c.index),f=t.slice(c.index+c[0].length)):l=f=t;var h=l.match(gb);h?C0(h[0],i,a,e):(h=l.match(M6))&&function(U,z,Y,A,I){C0(U.slice(0,U.indexOf(">")),Y,A,I)}(h[0],h[1],i,a,e);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(T6);p&&function(U,z){var Y=Un(z);Y.s.r<=Y.e.r&&Y.s.c<=Y.e.c&&Y.s.r>=0&&Y.s.c>=0&&(U["!ref"]=Tn(Y))}(i,p[1])}var m=l.match(R6);m&&m[1]&&function(U,z){z.Views||(z.Views=[{}]),(U.match(P6)||[]).forEach(function(Y,A){var I=en(Y);z.Views[A]||(z.Views[A]={}),+I.zoomScale&&(z.Views[A].zoom=+I.zoomScale),li(I.rightToLeft)&&(z.Views[A].RTL=!0)})}(m[1],a);var v=[];if(r.cellStyles){var b=l.match(E6);b&&function(U,z){for(var Y=!1,A=0;A!=z.length;++A){var I=en(z[A],!0);I.hidden&&(I.hidden=li(I.hidden));var _=parseInt(I.min,10)-1,x=parseInt(I.max,10)-1;for(I.outlineLevel&&(I.level=+I.outlineLevel||0),delete I.min,delete I.max,I.width=+I.width,!Y&&I.width&&(Y=!0,b0(I.width)),al(I);_<=x;)U[_++]=oi(I)}}(v,b)}c&&F6(c[1],i,r,u,o,s);var g=f.match(C6);g&&(i["!autofilter"]=function(U){var z={ref:(U.match(/ref="([^"]*)"/)||[])[1]};return z}(g[0]));var y=[],k=f.match(k6);if(k)for(d=0;d!=k.length;++d)y[d]=Un(k[d].slice(k[d].indexOf('"')+1));var S=f.match(S6);S&&function(U,z,Y){for(var A=Array.isArray(U),I=0;I!=z.length;++I){var _=en(Xn(z[I]),!0);if(!_.ref)return;var x=((Y||{})["!id"]||[])[_.id];x?(_.Target=x.Target,_.location&&(_.Target+="#"+Fn(_.location))):(_.Target="#"+Fn(_.location),x={Target:_.Target,TargetMode:"Internal"}),_.Rel=x,_.tooltip&&(_.Tooltip=_.tooltip,delete _.tooltip);for(var T=Un(_.ref),E=T.s.r;E<=T.e.r;++E)for(var M=T.s.c;M<=T.e.c;++M){var F=on({c:M,r:E});A?(U[E]||(U[E]=[]),U[E][M]||(U[E][M]={t:"z",v:void 0}),U[E][M].l=_):(U[F]||(U[F]={t:"z",v:void 0}),U[F].l=_)}}}(i,S,n);var C,O,L=f.match(A6);if(L&&(i["!margins"]=(C=en(L[0]),O={},["left","right","top","bottom","header","footer"].forEach(function(U){C[U]&&(O[U]=parseFloat(C[U]))}),O)),!i["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(i["!ref"]=Tn(u)),r.sheetRows>0&&i["!ref"]){var j=Un(i["!ref"]);r.sheetRows<=+j.e.r&&(j.e.r=r.sheetRows-1,j.e.r>u.e.r&&(j.e.r=u.e.r),j.e.r<j.s.r&&(j.s.r=j.e.r),j.e.c>u.e.c&&(j.e.c=u.e.c),j.e.c<j.s.c&&(j.s.c=j.e.c),i["!fullref"]=i["!ref"],i["!ref"]=Tn(j))}return v.length>0&&(i["!cols"]=v),y.length>0&&(i["!merges"]=y),i}function C0(t,r,e,n){var a=en(t);e.Sheets[n]||(e.Sheets[n]={}),a.codeName&&(e.Sheets[n].CodeName=Fn(Xn(a.codeName)))}var I6=["objects","scenarios","selectLockedCells","selectUnlockedCells"],N6=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],P6=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function D6(t,r,e,n){if(t.c&&e["!comments"].push([r,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var a="",o=t.t,s=t.v;if(t.t!=="z")switch(t.t){case"b":a=t.v?"1":"0";break;case"n":a=""+t.v;break;case"e":a=Mo[t.v];break;case"d":n&&n.cellDates?a=di(t.v,-1).toISOString():((t=oi(t)).t="n",a=""+(t.v=aa(di(t.v)))),t.z===void 0&&(t.z=Qr[14]);break;default:a=t.v}var i=sa("v",qn(a)),u={r},l=ol(n.cellXfs,t,n);switch(l!==0&&(u.s=l),t.t){case"n":case"z":break;case"d":u.t="d";break;case"b":u.t="b";break;case"e":u.t="e";break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){i=sa("v",""+E0(n.Strings,t.v,n.revStrings)),u.t="s";break}u.t="str"}if(t.t!=o&&(t.t=o,t.v=s),typeof t.f=="string"&&t.f){var f=t.F&&t.F.slice(0,r.length)==r?{t:"array",ref:t.F}:null;i=vr("f",qn(t.f),f)+(t.v!=null?i:"")}return t.l&&e["!links"].push([r,t.l]),t.D&&(u.cm=1),vr("c",i,u)}var F6=function(){var t=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,e=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,o=Uc("v"),s=Uc("f");return function(i,u,l,f,c,h){for(var d,p,m,v,b,g=0,y="",k=[],S=[],C=0,O=0,L=0,j="",U=0,z=0,Y=0,A=0,I=Array.isArray(h.CellXf),_=[],x=[],T=Array.isArray(u),E=[],M={},F=!1,P=!!l.sheetStubs,W=i.split(r),N=0,q=W.length;N!=q;++N){var nt=(y=W[N].trim()).length;if(nt!==0){var J=0;t:for(g=0;g<nt;++g)switch(y[g]){case">":if(y[g-1]!="/"){++g;break t}if(l&&l.cellStyles){if(U=(p=en(y.slice(J,g),!0)).r!=null?parseInt(p.r,10):U+1,z=-1,l.sheetRows&&l.sheetRows<U)continue;M={},F=!1,p.ht&&(F=!0,M.hpt=parseFloat(p.ht),M.hpx=Fu(M.hpt)),p.hidden=="1"&&(F=!0,M.hidden=!0),p.outlineLevel!=null&&(F=!0,M.level=+p.outlineLevel),F&&(E[U-1]=M)}break;case"<":J=g}if(J>=g)break;if(U=(p=en(y.slice(J,g),!0)).r!=null?parseInt(p.r,10):U+1,z=-1,!(l.sheetRows&&l.sheetRows<U)){f.s.r>U-1&&(f.s.r=U-1),f.e.r<U-1&&(f.e.r=U-1),l&&l.cellStyles&&(M={},F=!1,p.ht&&(F=!0,M.hpt=parseFloat(p.ht),M.hpx=Fu(M.hpt)),p.hidden=="1"&&(F=!0,M.hidden=!0),p.outlineLevel!=null&&(F=!0,M.level=+p.outlineLevel),F&&(E[U-1]=M)),k=y.slice(g).split(t);for(var St=0;St!=k.length&&k[St].trim().charAt(0)=="<";++St);for(k=k.slice(St),g=0;g!=k.length;++g)if((y=k[g].trim()).length!==0){if(S=y.match(e),C=g,O=0,L=0,y="<c "+(y.slice(0,1)=="<"?">":"")+y,S!=null&&S.length===2){for(C=0,j=S[1],O=0;O!=j.length&&!((L=j.charCodeAt(O)-64)<1||L>26);++O)C=26*C+L;z=--C}else++z;for(O=0;O!=y.length&&y.charCodeAt(O)!==62;++O);if(++O,(p=en(y.slice(0,O),!0)).r||(p.r=on({r:U-1,c:z})),d={t:""},(S=(j=y.slice(O)).match(o))!=null&&S[1]!==""&&(d.v=Fn(S[1])),l.cellFormula){if((S=j.match(s))!=null&&S[1]!==""){if(d.f=Fn(Xn(S[1])).replace(/\r\n/g,` |
|
|
`),l.xlfn||(d.f=ib(d.f)),S[0].indexOf('t="array"')>-1)d.F=(j.match(a)||[])[1],d.F.indexOf(":")>-1&&_.push([Un(d.F),d.F]);else if(S[0].indexOf('t="shared"')>-1){v=en(S[0]);var kt=Fn(Xn(S[1]));l.xlfn||(kt=ib(kt)),x[parseInt(v.si,10)]=[v,kt,p.r]}}else(S=j.match(/<f[^>]*\/>/))&&x[(v=en(S[0])).si]&&(d.f=r6(x[v.si][1],x[v.si][2],p.r));var Mt=Wi(p.r);for(O=0;O<_.length;++O)Mt.r>=_[O][0].s.r&&Mt.r<=_[O][0].e.r&&Mt.c>=_[O][0].s.c&&Mt.c<=_[O][0].e.c&&(d.F=_[O][1])}if(p.t==null&&d.v===void 0)if(d.f||d.F)d.v=0,d.t="n";else{if(!P)continue;d.t="z"}else d.t=p.t||"n";switch(f.s.c>z&&(f.s.c=z),f.e.c<z&&(f.e.c=z),d.t){case"n":if(d.v==""||d.v==null){if(!P)continue;d.t="z"}else d.v=parseFloat(d.v);break;case"s":if(d.v===void 0){if(!P)continue;d.t="z"}else m=lf[parseInt(d.v,10)],d.v=m.t,d.r=m.r,l.cellHTML&&(d.h=m.h);break;case"str":d.t="s",d.v=d.v!=null?Xn(d.v):"",l.cellHTML&&(d.h=qp(d.v));break;case"inlineStr":S=j.match(n),d.t="s",S!=null&&(m=m0(S[1]))?(d.v=m.t,l.cellHTML&&(d.h=m.h)):d.v="";break;case"b":d.v=li(d.v);break;case"d":l.cellDates?d.v=di(d.v,1):(d.v=aa(di(d.v,1)),d.t="n");break;case"e":l&&l.cellText===!1||(d.w=d.v),d.v=Xv[d.v]}if(Y=A=0,b=null,I&&p.s!==void 0&&(b=h.CellXf[p.s])!=null&&(b.numFmtId!=null&&(Y=b.numFmtId),l.cellStyles&&b.fillId!=null&&(A=b.fillId)),vb(d,Y,A,l,c,h),l.cellDates&&I&&d.t=="n"&&Au(Qr[Y])&&(d.t="d",d.v=Ah(d.v)),p.cm&&l.xlmeta){var at=(l.xlmeta.Cell||[])[+p.cm-1];at&&at.type=="XLDAPR"&&(d.D=!0)}if(T){var K=Wi(p.r);u[K.r]||(u[K.r]=[]),u[K.r][K.c]=d}else u[p.r]=d}}}}E.length>0&&(u["!rows"]=E)}}();function bb(t,r,e,n){var a,o=[Ci,vr("worksheet",null,{xmlns:Nl[0],"xmlns:r":_v})],s=e.SheetNames[t],i="",u=e.Sheets[s];u==null&&(u={});var l=u["!ref"]||"A1",f=Un(l);if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),l=Tn(f)}n||(n={}),u["!comments"]=[];var c=[];(function(v,b,g,y,k){var S=!1,C={},O=null;if(y.bookType!=="xlsx"&&b.vbaraw){var L=b.SheetNames[g];try{b.Workbook&&(L=b.Workbook.Sheets[g].CodeName||L)}catch{}S=!0,C.codeName=Qs(qn(L))}if(v&&v["!outline"]){var j={summaryBelow:1,summaryRight:1};v["!outline"].above&&(j.summaryBelow=0),v["!outline"].left&&(j.summaryRight=0),O=(O||"")+vr("outlinePr",null,j)}(S||O)&&(k[k.length]=vr("sheetPr",O,C))})(u,e,t,r,o),o[o.length]=vr("dimension",null,{ref:l}),o[o.length]=function(v,b,g,y){var k={workbookViewId:"0"};return(((y||{}).Workbook||{}).Views||[])[0]&&(k.rightToLeft=y.Workbook.Views[0].RTL?"1":"0"),vr("sheetViews",vr("sheetView",null,k),{})}(0,0,0,e),r.sheetFormat&&(o[o.length]=vr("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),u["!cols"]!=null&&u["!cols"].length>0&&(o[o.length]=function(v,b){for(var g,y=["<cols>"],k=0;k!=b.length;++k)(g=b[k])&&(y[y.length]=vr("col",null,$h(k,g)));return y[y.length]="</cols>",y.join("")}(0,u["!cols"])),o[a=o.length]="<sheetData/>",u["!links"]=[],u["!ref"]!=null&&(i=function(v,b){var g,y,k=[],S=[],C=Un(v["!ref"]),O="",L="",j=[],U=0,z=0,Y=v["!rows"],A=Array.isArray(v),I={r:L},_=-1;for(z=C.s.c;z<=C.e.c;++z)j[z]=Bi(z);for(U=C.s.r;U<=C.e.r;++U){for(S=[],L=Qi(U),z=C.s.c;z<=C.e.c;++z){g=j[z]+L;var x=A?(v[U]||[])[z]:v[g];x!==void 0&&(O=D6(x,g,v,b))!=null&&S.push(O)}(S.length>0||Y&&Y[U])&&(I={r:L},Y&&Y[U]&&((y=Y[U]).hidden&&(I.hidden=1),_=-1,y.hpx?_=rf(y.hpx):y.hpt&&(_=y.hpt),_>-1&&(I.ht=_,I.customHeight=1),y.level&&(I.outlineLevel=y.level)),k[k.length]=vr("row",S.join(""),I))}if(Y)for(;U<Y.length;++U)Y&&Y[U]&&(I={r:U+1},(y=Y[U]).hidden&&(I.hidden=1),_=-1,y.hpx?_=rf(y.hpx):y.hpt&&(_=y.hpt),_>-1&&(I.ht=_,I.customHeight=1),y.level&&(I.outlineLevel=y.level),k[k.length]=vr("row","",I));return k.join("")}(u,r),i.length>0&&(o[o.length]=i)),o.length>a+1&&(o[o.length]="</sheetData>",o[a]=o[a].replace("/>",">")),u["!protect"]&&(o[o.length]=function(v){var b={sheet:1};return I6.forEach(function(g){v[g]!=null&&v[g]&&(b[g]="1")}),N6.forEach(function(g){v[g]==null||v[g]||(b[g]="0")}),v.password&&(b.password=v0(v.password).toString(16).toUpperCase()),vr("sheetProtection",null,b)}(u["!protect"])),u["!autofilter"]!=null&&(o[o.length]=function(v,b,g,y){var k=typeof v.ref=="string"?v.ref:Tn(v.ref);g.Workbook||(g.Workbook={Sheets:[]}),g.Workbook.Names||(g.Workbook.Names=[]);var S=g.Workbook.Names,C=gs(k);C.s.r==C.e.r&&(C.e.r=gs(b["!ref"]).e.r,k=Tn(C));for(var O=0;O<S.length;++O){var L=S[O];if(L.Name=="_xlnm._FilterDatabase"&&L.Sheet==y){L.Ref="'"+g.SheetNames[y]+"'!"+k;break}}return O==S.length&&S.push({Name:"_xlnm._FilterDatabase",Sheet:y,Ref:"'"+g.SheetNames[y]+"'!"+k}),vr("autoFilter",null,{ref:k})}(u["!autofilter"],u,e,t)),u["!merges"]!=null&&u["!merges"].length>0&&(o[o.length]=function(v){if(v.length===0)return"";for(var b='<mergeCells count="'+v.length+'">',g=0;g!=v.length;++g)b+='<mergeCell ref="'+Tn(v[g])+'"/>';return b+"</mergeCells>"}(u["!merges"]));var h,d,p=-1,m=-1;return u["!links"].length>0&&(o[o.length]="<hyperlinks>",u["!links"].forEach(function(v){v[1].Target&&(h={ref:v[0]},v[1].Target.charAt(0)!="#"&&(m=Gn(n,-1,qn(v[1].Target).replace(/#.*$/,""),kn.HLINK),h["r:id"]="rId"+m),(p=v[1].Target.indexOf("#"))>-1&&(h.location=qn(v[1].Target.slice(p+1))),v[1].Tooltip&&(h.tooltip=qn(v[1].Tooltip)),o[o.length]=vr("hyperlink",null,h))}),o[o.length]="</hyperlinks>"),delete u["!links"],u["!margins"]!=null&&(o[o.length]=($l(d=u["!margins"]),vr("pageMargins",null,d))),r&&!r.ignoreEC&&r.ignoreEC!=null||(o[o.length]=sa("ignoredErrors",vr("ignoredError",null,{numberStoredAsText:1,sqref:l}))),c.length>0&&(m=Gn(n,-1,"../drawings/drawing"+(t+1)+".xml",kn.DRAW),o[o.length]=vr("drawing",null,{"r:id":"rId"+m}),u["!drawing"]=c),u["!comments"].length>0&&(m=Gn(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",kn.VML),o[o.length]=vr("legacyDrawing",null,{"r:id":"rId"+m}),u["!legacy"]=m),o.length>1&&(o[o.length]="</worksheet>",o[1]=o[1].replace("/>",">")),o.join("")}function L6(t,r,e,n){var a=function(o,s,i){var u=Me(145),l=(i["!rows"]||[])[o]||{};u.write_shift(4,o),u.write_shift(4,0);var f=320;l.hpx?f=20*rf(l.hpx):l.hpt&&(f=20*l.hpt),u.write_shift(2,f),u.write_shift(1,0);var c=0;l.level&&(c|=l.level),l.hidden&&(c|=16),(l.hpx||l.hpt)&&(c|=32),u.write_shift(1,c),u.write_shift(1,0);var h=0,d=u.l;u.l+=4;for(var p={r:o,c:0},m=0;m<16;++m)if(!(s.s.c>m+1<<10||s.e.c<m<<10)){for(var v=-1,b=-1,g=m<<10;g<m+1<<10;++g)p.c=g,(Array.isArray(i)?(i[p.r]||[])[p.c]:i[on(p)])&&(v<0&&(v=g),b=g);v<0||(++h,u.write_shift(4,v),u.write_shift(4,b))}var y=u.l;return u.l=d,u.write_shift(4,h),u.l=y,u.length>u.l?u.slice(0,u.l):u}(n,e,r);(a.length>17||(r["!rows"]||[])[n])&&Ye(t,0,a)}var B6=jl,j6=Ou;function yb(t){return[Ll(t),ya(t),"n"]}var z6=jl,U6=Ou,wb=["left","right","top","bottom","header","footer"];function H6(t,r,e,n,a,o,s){if(r.v===void 0)return!1;var i="";switch(r.t){case"b":i=r.v?"1":"0";break;case"d":(r=oi(r)).z=r.z||Qr[14],r.v=aa(di(r.v)),r.t="n";break;case"n":case"e":i=""+r.v;break;default:i=r.v}var u={r:e,c:n};switch(u.s=ol(a.cellXfs,r,a),r.l&&o["!links"].push([on(u),r.l]),r.c&&o["!comments"].push([on(u),r.c]),r.t){case"s":case"str":return a.bookSST?(i=E0(a.Strings,r.v,a.revStrings),u.t="s",u.v=i,s?Ye(t,18,function(l,f,c){return c==null&&(c=Me(8)),Bl(f,c),c.write_shift(4,f.v),c}(0,u)):Ye(t,7,function(l,f,c){return c==null&&(c=Me(12)),Fl(f,c),c.write_shift(4,f.v),c}(0,u))):(u.t="str",s?Ye(t,17,function(l,f,c){return c==null&&(c=Me(8+4*l.v.length)),Bl(f,c),ta(l.v,c),c.length>c.l?c.slice(0,c.l):c}(r,u)):Ye(t,6,function(l,f,c){return c==null&&(c=Me(12+4*l.v.length)),Fl(f,c),ta(l.v,c),c.length>c.l?c.slice(0,c.l):c}(r,u))),!0;case"n":return r.v==(0|r.v)&&r.v>-1e3&&r.v<1e3?s?Ye(t,13,function(l,f,c){return c==null&&(c=Me(8)),Bl(f,c),qv(l.v,c),c}(r,u)):Ye(t,2,function(l,f,c){return c==null&&(c=Me(12)),Fl(f,c),qv(l.v,c),c}(r,u)):s?Ye(t,16,function(l,f,c){return c==null&&(c=Me(12)),Bl(f,c),Iu(l.v,c),c}(r,u)):Ye(t,5,function(l,f,c){return c==null&&(c=Me(16)),Fl(f,c),Iu(l.v,c),c}(r,u)),!0;case"b":return u.t="b",s?Ye(t,15,function(l,f,c){return c==null&&(c=Me(5)),Bl(f,c),c.write_shift(1,l.v?1:0),c}(r,u)):Ye(t,4,function(l,f,c){return c==null&&(c=Me(9)),Fl(f,c),c.write_shift(1,l.v?1:0),c}(r,u)),!0;case"e":return u.t="e",s?Ye(t,14,function(l,f,c){return c==null&&(c=Me(8)),Bl(f,c),c.write_shift(1,l.v),c.write_shift(2,0),c.write_shift(1,0),c}(r,u)):Ye(t,3,function(l,f,c){return c==null&&(c=Me(9)),Fl(f,c),c.write_shift(1,l.v),c}(r,u)),!0}return s?Ye(t,12,function(l,f,c){return c==null&&(c=Me(4)),Bl(f,c)}(0,u)):Ye(t,1,function(l,f,c){return c==null&&(c=Me(8)),Fl(f,c)}(0,u)),!0}function W6(t,r){var e,n;r&&r["!merges"]&&(Ye(t,177,(e=r["!merges"].length,n==null&&(n=Me(4)),n.write_shift(4,e),n)),r["!merges"].forEach(function(a){Ye(t,176,U6(a))}),Ye(t,178))}function V6(t,r){r&&r["!cols"]&&(Ye(t,390),r["!cols"].forEach(function(e,n){e&&Ye(t,60,function(a,o,s){s==null&&(s=Me(18));var i=$h(a,o);s.write_shift(-4,a),s.write_shift(-4,a),s.write_shift(4,256*(i.width||10)),s.write_shift(4,0);var u=0;return o.hidden&&(u|=1),typeof i.width=="number"&&(u|=2),o.level&&(u|=o.level<<8),s.write_shift(2,u),s}(n,e))}),Ye(t,391))}function $6(t,r){var e,n;r&&r["!ref"]&&(Ye(t,648),Ye(t,649,(e=Un(r["!ref"]),(n=Me(24)).write_shift(4,4),n.write_shift(4,1),Ou(e,n),n)),Ye(t,650))}function q6(t,r,e){r["!links"].forEach(function(n){if(n[1].Target){var a=Gn(e,-1,n[1].Target.replace(/#.*$/,""),kn.HLINK);Ye(t,494,function(o,s){var i=Me(50+4*(o[1].Target.length+(o[1].Tooltip||"").length));Ou({s:Wi(o[0]),e:Wi(o[0])},i),i0("rId"+s,i);var u=o[1].Target.indexOf("#");return ta((u==-1?"":o[1].Target.slice(u+1))||"",i),ta(o[1].Tooltip||"",i),ta("",i),i.slice(0,i.l)}(n,a))}}),delete r["!links"]}function G6(t,r,e){Ye(t,133),Ye(t,137,function(n,a,o){o==null&&(o=Me(30));var s=924;return(((a||{}).Views||[])[0]||{}).RTL&&(s|=32),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(4,0),o.write_shift(1,0),o.write_shift(1,0),o.write_shift(2,0),o.write_shift(2,100),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o}(0,e)),Ye(t,138),Ye(t,134)}function Y6(t,r){var e,n;r["!protect"]&&Ye(t,535,(e=r["!protect"],n==null&&(n=Me(66)),n.write_shift(2,e.password?v0(e.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(a){a[1]?n.write_shift(4,e[a[0]]==null||e[a[0]]?0:1):n.write_shift(4,e[a[0]]!=null&&e[a[0]]?0:1)}),n))}function K6(t,r,e,n){var a=qa(),o=e.SheetNames[t],s=e.Sheets[o]||{},i=o;try{e&&e.Workbook&&(i=e.Workbook.Sheets[t].CodeName||i)}catch{}var u,l,f=Un(s["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Ye(a,129),(e.vbaraw||s["!outline"])&&Ye(a,147,function(c,h,d){d==null&&(d=Me(84+4*c.length));var p=192;h&&(h.above&&(p&=-65),h.left&&(p&=-129)),d.write_shift(1,p);for(var m=1;m<3;++m)d.write_shift(1,0);return Nh({auto:1},d),d.write_shift(-4,-1),d.write_shift(-4,-1),$v(c,d),d.slice(0,d.l)}(i,s["!outline"])),Ye(a,148,j6(f)),G6(a,0,e.Workbook),V6(a,s),function(c,h,d,p){var m,v=Un(h["!ref"]||"A1"),b="",g=[];Ye(c,145);var y=Array.isArray(h),k=v.e.r;h["!rows"]&&(k=Math.max(v.e.r,h["!rows"].length-1));for(var S=v.s.r;S<=k;++S){b=Qi(S),L6(c,h,v,S);var C=!1;if(S<=v.e.r)for(var O=v.s.c;O<=v.e.c;++O){S===v.s.r&&(g[O]=Bi(O)),m=g[O]+b;var L=y?(h[S]||[])[O]:h[m];C=!!L&&H6(c,L,S,O,p,h,C)}}Ye(c,146)}(a,s,0,r),Y6(a,s),function(c,h,d,p){if(h["!autofilter"]){var m=h["!autofilter"],v=typeof m.ref=="string"?m.ref:Tn(m.ref);d.Workbook||(d.Workbook={Sheets:[]}),d.Workbook.Names||(d.Workbook.Names=[]);var b=d.Workbook.Names,g=gs(v);g.s.r==g.e.r&&(g.e.r=gs(h["!ref"]).e.r,v=Tn(g));for(var y=0;y<b.length;++y){var k=b[y];if(k.Name=="_xlnm._FilterDatabase"&&k.Sheet==p){k.Ref="'"+d.SheetNames[p]+"'!"+v;break}}y==b.length&&b.push({Name:"_xlnm._FilterDatabase",Sheet:p,Ref:"'"+d.SheetNames[p]+"'!"+v}),Ye(c,161,Ou(Un(v))),Ye(c,162)}}(a,s,e,t),W6(a,s),q6(a,s,n),s["!margins"]&&Ye(a,476,(u=s["!margins"],l==null&&(l=Me(48)),$l(u),wb.forEach(function(c){Iu(u[c],l)}),l)),r&&!r.ignoreEC&&r.ignoreEC!=null||$6(a,s),function(c,h,d,p){if(h["!comments"].length>0){var m=Gn(p,-1,"../drawings/vmlDrawing"+(d+1)+".vml",kn.VML);Ye(c,551,i0("rId"+m)),h["!legacy"]=m}}(a,s,t,n),Ye(a,130),a.end()}function X6(t,r,e,n,a,o){var s=o||{"!type":"chart"};if(!t)return o;var i=0,u=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(t.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(c){var h=function(d){var p,m=[],v=d.match(/^<c:numCache>/);(d.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(g){var y=g.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);y&&(m[+y[1]]=v?+y[2]:y[2])});var b=Fn((d.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(d.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(g){p=g.replace(/<.*?>/g,"")}),[m,b,p]}(c);f.s.r=f.s.c=0,f.e.c=i,l=Bi(i),h[0].forEach(function(d,p){s[l+Qi(p)]={t:"n",v:d,z:h[1]},u=p}),f.e.r<u&&(f.e.r=u),++i}),i>0&&(s["!ref"]=Tn(f)),s}var A0=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],Z6=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],J6=[],Q6=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function _b(t,r){for(var e=0;e!=t.length;++e)for(var n=t[e],a=0;a!=r.length;++a){var o=r[a];if(n[o[0]]==null)n[o[0]]=o[1];else switch(o[2]){case"bool":typeof n[o[0]]=="string"&&(n[o[0]]=li(n[o[0]]));break;case"int":typeof n[o[0]]=="string"&&(n[o[0]]=parseInt(n[o[0]],10))}}}function kb(t,r){for(var e=0;e!=r.length;++e){var n=r[e];if(t[n[0]]==null)t[n[0]]=n[1];else switch(n[2]){case"bool":typeof t[n[0]]=="string"&&(t[n[0]]=li(t[n[0]]));break;case"int":typeof t[n[0]]=="string"&&(t[n[0]]=parseInt(t[n[0]],10))}}}function xb(t){kb(t.WBProps,A0),kb(t.CalcPr,Q6),_b(t.WBView,Z6),_b(t.Sheets,J6),ju.date1904=li(t.WBProps.date1904)}var t5="][*?/\\".split("");function Sb(t,r){if(t.length>31)throw new Error("Sheet names cannot exceed 31 chars");var e=!0;return t5.forEach(function(n){if(t.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),e}function e5(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var r,e,n,a=t.Workbook&&t.Workbook.Sheets||[];r=t.SheetNames,e=a,n=!!t.vbaraw,r.forEach(function(s,i){Sb(s);for(var u=0;u<i;++u)if(s==r[u])throw new Error("Duplicate Sheet Name: "+s);if(n){var l=e&&e[i]&&e[i].CodeName||s;if(l.charCodeAt(0)==95&&l.length>22)throw new Error("Bad Code Name: Worksheet"+l)}});for(var o=0;o<t.SheetNames.length;++o)_6(t.Sheets[t.SheetNames[o]],t.SheetNames[o],o)}var r5=/<\w+:workbook/;function Tb(t){var r=[Ci];r[r.length]=vr("workbook",null,{xmlns:Nl[0],"xmlns:r":_v});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(A0.forEach(function(i){t.Workbook.WBProps[i[0]]!=null&&t.Workbook.WBProps[i[0]]!=i[1]&&(n[i[0]]=t.Workbook.WBProps[i[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=vr("workbookPr",null,n);var a=t.Workbook&&t.Workbook.Sheets||[],o=0;if(a&&a[0]&&a[0].Hidden){for(r[r.length]="<bookViews>",o=0;o!=t.SheetNames.length&&a[o]&&a[o].Hidden;++o);o==t.SheetNames.length&&(o=0),r[r.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",o=0;o!=t.SheetNames.length;++o){var s={name:qn(t.SheetNames[o].slice(0,31))};if(s.sheetId=""+(o+1),s["r:id"]="rId"+(o+1),a[o])switch(a[o].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden"}r[r.length]=vr("sheet",null,s)}return r[r.length]="</sheets>",e&&(r[r.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(i){var u={name:i.Name};i.Comment&&(u.comment=i.Comment),i.Sheet!=null&&(u.localSheetId=""+i.Sheet),i.Hidden&&(u.hidden="1"),i.Ref&&(r[r.length]=vr("definedName",qn(i.Ref),u))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function n5(t,r){var e={};return t.read_shift(4),e.ArchID=t.read_shift(4),t.l+=r-8,e}function i5(t,r){if(r.Workbook&&r.Workbook.Sheets){for(var e,n,a=r.Workbook.Sheets,o=0,s=-1,i=-1;o<a.length;++o)!a[o]||!a[o].Hidden&&s==-1?s=o:a[o].Hidden==1&&i==-1&&(i=o);i>s||(Ye(t,135),Ye(t,158,(e=s,n||(n=Me(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,e),n.write_shift(4,e),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n)),Ye(t,136))}}function a5(t,r){var e=qa();return Ye(e,131),Ye(e,128,function(n,a){a||(a=Me(127));for(var o=0;o!=4;++o)a.write_shift(4,0);return ta("SheetJS",a),ta(Np.version,a),ta(Np.version,a),ta("7262",a),a.length>a.l?a.slice(0,a.l):a}()),Ye(e,153,function(n,a){a||(a=Me(72));var o=0;return n&&n.filterPrivacy&&(o|=8),a.write_shift(4,o),a.write_shift(4,0),$v(n&&n.CodeName||"ThisWorkbook",a),a.slice(0,a.l)}(t.Workbook&&t.Workbook.WBProps||null)),i5(e,t),function(n,a){Ye(n,143);for(var o=0;o!=a.SheetNames.length;++o)Ye(n,156,(s={Hidden:a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[o]&&a.Workbook.Sheets[o].Hidden||0,iTabID:o+1,strRelID:"rId"+(o+1),name:a.SheetNames[o]},(i=void 0)||(i=Me(127)),i.write_shift(4,s.Hidden),i.write_shift(4,s.iTabID),i0(s.strRelID,i),ta(s.name.slice(0,31),i),i.length>i.l?i.slice(0,i.l):i));var s,i;Ye(n,144)}(e,t),Ye(e,132),e.end()}function s5(t,r,e){return r.slice(-4)===".bin"?function(n,a){var o={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},s=[],i=!1;a||(a={}),a.biff=12;var u=[],l=[[]];return l.SheetNames=[],l.XTI=[],ff[16]={n:"BrtFRTArchID$",f:n5},Ao(n,function(f,c,h){switch(h){case 156:l.SheetNames.push(f.name),o.Sheets.push(f);break;case 153:o.WBProps=f;break;case 39:f.Sheet!=null&&(a.SID=f.Sheet),f.Ref=ka(f.Ptg,0,null,l,a),delete a.SID,delete f.Ptg,u.push(f);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:l[0].length?l.push([h,f]):l[0]=[h,f],l[l.length-1].XTI=[];break;case 362:l.length===0&&(l[0]=[],l[0].XTI=[]),l[l.length-1].XTI=l[l.length-1].XTI.concat(f),l.XTI=l.XTI.concat(f);break;case 35:case 37:s.push(h),i=!0;break;case 36:case 38:s.pop(),i=!1;break;default:if(!c.T){if(!i||a.WTF&&s[s.length-1]!=37&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+h.toString(16))}}},a),xb(o),o.Names=u,o.supbooks=l,o}(t,e):function(n,a){if(!n)throw new Error("Could not find file");var o={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},s=!1,i="xmlns",u={},l=0;if(n.replace(va,function(f,c){var h=en(f);switch(Js(h[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":f.match(r5)&&(i="xmlns"+f.match(/<(\w+):/)[1]),o.xmlns=h[i];break;case"<fileVersion":delete h[0],o.AppVersion=h;break;case"<workbookPr":case"<workbookPr/>":A0.forEach(function(d){if(h[d[0]]!=null)switch(d[2]){case"bool":o.WBProps[d[0]]=li(h[d[0]]);break;case"int":o.WBProps[d[0]]=parseInt(h[d[0]],10);break;default:o.WBProps[d[0]]=h[d[0]]}}),h.codeName&&(o.WBProps.CodeName=Xn(h.codeName));break;case"<workbookView":case"<workbookView/>":delete h[0],o.WBView.push(h);break;case"<sheet":switch(h.state){case"hidden":h.Hidden=1;break;case"veryHidden":h.Hidden=2;break;default:h.Hidden=0}delete h.state,h.name=Fn(Xn(h.name)),delete h[0],o.Sheets.push(h);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":s=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":s=!1;break;case"<definedName":(u={}).Name=Xn(h.name),h.comment&&(u.Comment=h.comment),h.localSheetId&&(u.Sheet=+h.localSheetId),li(h.hidden||"0")&&(u.Hidden=!0),l=c+f.length;break;case"</definedName>":u.Ref=Fn(Xn(n.slice(l,c))),o.Names.push(u);break;case"<calcPr":case"<calcPr/>":delete h[0],o.CalcPr=h;break;default:if(!s&&a.WTF)throw new Error("unrecognized "+h[0]+" in workbook")}return f}),Nl.indexOf(o.xmlns)===-1)throw new Error("Unknown Namespace: "+o.xmlns);return xb(o),o}(t,e)}function o5(t,r,e,n,a,o,s,i){return r.slice(-4)===".bin"?function(u,l,f,c,h,d,p){if(!u)return u;var m=l||{};c||(c={"!id":{}});var v,b,g,y,k,S,C,O,L,j,U=m.dense?[]:{},z={s:{r:2e6,c:2e6},e:{r:0,c:0}},Y=!1,A=!1,I=[];m.biff=12,m["!row"]=0;var _=0,x=!1,T=[],E={},M=m.supbooks||h.supbooks||[[]];if(M.sharedf=E,M.arrayf=T,M.SheetNames=h.SheetNames||h.Sheets.map(function(J){return J.name}),!m.supbooks&&(m.supbooks=M,h.Names))for(var F=0;F<h.Names.length;++F)M[0][F+1]=h.Names[F];var P,W=[],N=[],q=!1;if(ff[16]={n:"BrtShortReal",f:yb},Ao(u,function(J,St,kt){if(!A)switch(kt){case 148:v=J;break;case 0:b=J,m.sheetRows&&m.sheetRows<=b.r&&(A=!0),L=Qi(k=b.r),m["!row"]=b.r,(J.hidden||J.hpt||J.level!=null)&&(J.hpt&&(J.hpx=Fu(J.hpt)),N[J.r]=J);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(g={t:J[2]},J[2]){case"n":g.v=J[1];break;case"s":O=lf[J[1]],g.v=O.t,g.r=O.r;break;case"b":g.v=!!J[1];break;case"e":g.v=J[1],m.cellText!==!1&&(g.w=Mo[g.v]);break;case"str":g.t="s",g.v=J[1];break;case"is":g.t="s",g.v=J[1].t}if((y=p.CellXf[J[0].iStyleRef])&&vb(g,y.numFmtId,null,m,d,p),S=J[0].c==-1?S+1:J[0].c,m.dense?(U[k]||(U[k]=[]),U[k][S]=g):U[Bi(S)+L]=g,m.cellFormula){for(x=!1,_=0;_<T.length;++_){var Mt=T[_];b.r>=Mt[0].s.r&&b.r<=Mt[0].e.r&&S>=Mt[0].s.c&&S<=Mt[0].e.c&&(g.F=Tn(Mt[0]),x=!0)}!x&&J.length>3&&(g.f=J[3])}if(z.s.r>b.r&&(z.s.r=b.r),z.s.c>S&&(z.s.c=S),z.e.r<b.r&&(z.e.r=b.r),z.e.c<S&&(z.e.c=S),m.cellDates&&y&&g.t=="n"&&Au(Qr[y.numFmtId])){var at=Rl(g.v);at&&(g.t="d",g.v=new Date(at.y,at.m-1,at.d,at.H,at.M,at.S,at.u))}P&&(P.type=="XLDAPR"&&(g.D=!0),P=void 0);break;case 1:case 12:if(!m.sheetStubs||Y)break;g={t:"z",v:void 0},S=J[0].c==-1?S+1:J[0].c,m.dense?(U[k]||(U[k]=[]),U[k][S]=g):U[Bi(S)+L]=g,z.s.r>b.r&&(z.s.r=b.r),z.s.c>S&&(z.s.c=S),z.e.r<b.r&&(z.e.r=b.r),z.e.c<S&&(z.e.c=S),P&&(P.type=="XLDAPR"&&(g.D=!0),P=void 0);break;case 176:I.push(J);break;case 49:P=((m.xlmeta||{}).Cell||[])[J-1];break;case 494:var K=c["!id"][J.relId];for(K?(J.Target=K.Target,J.loc&&(J.Target+="#"+J.loc),J.Rel=K):J.relId==""&&(J.Target="#"+J.loc),k=J.rfx.s.r;k<=J.rfx.e.r;++k)for(S=J.rfx.s.c;S<=J.rfx.e.c;++S)m.dense?(U[k]||(U[k]=[]),U[k][S]||(U[k][S]={t:"z",v:void 0}),U[k][S].l=J):(C=on({c:S,r:k}),U[C]||(U[C]={t:"z",v:void 0}),U[C].l=J);break;case 426:if(!m.cellFormula)break;T.push(J),(j=m.dense?U[k][S]:U[Bi(S)+L]).f=ka(J[1],0,{r:b.r,c:S},M,m),j.F=Tn(J[0]);break;case 427:if(!m.cellFormula)break;E[on(J[0].s)]=J[1],(j=m.dense?U[k][S]:U[Bi(S)+L]).f=ka(J[1],0,{r:b.r,c:S},M,m);break;case 60:if(!m.cellStyles)break;for(;J.e>=J.s;)W[J.e--]={width:J.w/256,hidden:!!(1&J.flags),level:J.level},q||(q=!0,b0(J.w/256)),al(W[J.e+1]);break;case 161:U["!autofilter"]={ref:Tn(J)};break;case 476:U["!margins"]=J;break;case 147:h.Sheets[f]||(h.Sheets[f]={}),J.name&&(h.Sheets[f].CodeName=J.name),(J.above||J.left)&&(U["!outline"]={above:J.above,left:J.left});break;case 137:h.Views||(h.Views=[{}]),h.Views[0]||(h.Views[0]={}),J.RTL&&(h.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:case 37:Y=!0;break;case 36:case 38:Y=!1;break;default:if(!St.T){if(!Y||m.WTF)throw new Error("Unexpected record 0x"+kt.toString(16))}}},m),delete m.supbooks,delete m["!row"],!U["!ref"]&&(z.s.r<2e6||v&&(v.e.r>0||v.e.c>0||v.s.r>0||v.s.c>0))&&(U["!ref"]=Tn(v||z)),m.sheetRows&&U["!ref"]){var nt=Un(U["!ref"]);m.sheetRows<=+nt.e.r&&(nt.e.r=m.sheetRows-1,nt.e.r>z.e.r&&(nt.e.r=z.e.r),nt.e.r<nt.s.r&&(nt.s.r=nt.e.r),nt.e.c>z.e.c&&(nt.e.c=z.e.c),nt.e.c<nt.s.c&&(nt.s.c=nt.e.c),U["!fullref"]=U["!ref"],U["!ref"]=Tn(nt))}return I.length>0&&(U["!merges"]=I),W.length>0&&(U["!cols"]=W),N.length>0&&(U["!rows"]=N),U}(t,n,e,a,o,s,i):O6(t,n,e,a,o,s,i)}function l5(t,r,e,n,a,o,s,i){return r.slice(-4)===".bin"?function(u,l,f,c,h){if(!u)return u;c||(c={"!id":{}});var d={"!type":"chart","!drawel":null,"!rel":""},p=!1;return Ao(u,function(m,v,b){switch(b){case 550:d["!rel"]=m;break;case 651:h.Sheets[f]||(h.Sheets[f]={}),m.name&&(h.Sheets[f].CodeName=m.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:case 37:case 38:break;case 35:p=!0;break;case 36:p=!1;break;default:if(!(v.T>0)){if(!(v.T<0)){if(!p||l.WTF)throw new Error("Unexpected record 0x"+b.toString(16))}}}},l),c["!id"][d["!rel"]]&&(d["!drawel"]=c["!id"][d["!rel"]]),d}(t,n,e,a,o):function(u,l,f,c,h){if(!u)return u;c||(c={"!id":{}});var d,p={"!type":"chart","!drawel":null,"!rel":""},m=u.match(gb);return m&&C0(m[0],0,h,f),(d=u.match(/drawing r:id="(.*?)"/))&&(p["!rel"]=d[1]),c["!id"][p["!rel"]]&&(p["!drawel"]=c["!id"][p["!rel"]]),p}(t,0,e,a,o)}function u5(t,r,e,n){return r.slice(-4)===".bin"?function(a,o,s){var i={NumberFmt:[]};for(var u in Qr)i.NumberFmt[u]=Qr[u];i.CellXf=[],i.Fonts=[];var l=[],f=!1;return Ao(a,function(c,h,d){switch(d){case 44:i.NumberFmt[c[0]]=c[1],To(c[1],c[0]);break;case 43:i.Fonts.push(c),c.color.theme!=null&&o&&o.themeElements&&o.themeElements.clrScheme&&(c.color.rgb=jh(o.themeElements.clrScheme[c.color.theme].rgb,c.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:l[l.length-1]==617&&i.CellXf.push(c);break;case 35:f=!0;break;case 36:f=!1;break;case 37:l.push(d),f=!0;break;case 38:l.pop(),f=!1;break;default:if(h.T>0)l.push(d);else if(h.T<0)l.pop();else if(!f||s.WTF&&l[l.length-1]!=37)throw new Error("Unexpected record 0x"+d.toString(16))}}),i}(t,e,n):I4(t,e,n)}function c5(t,r,e){return r.slice(-4)===".bin"?function(n,a){var o=[],s=!1;return Ao(n,function(i,u,l){switch(l){case 159:o.Count=i[0],o.Unique=i[1];break;case 19:o.push(i);break;case 160:return!0;case 35:s=!0;break;case 36:s=!1;break;default:if(u.T,!s||a.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),o}(t,e):function(n,a){var o=[],s="";if(!n)return o;var i=n.match(b4);if(i){s=i[2].replace(y4,"").split(w4);for(var u=0;u!=s.length;++u){var l=m0(s[u].trim(),a);l!=null&&(o[o.length]=l)}i=en(i[1]),o.Count=i.count,o.Unique=i.uniqueCount}return o}(t,e)}function f5(t,r,e){return r.slice(-4)===".bin"?function(n,a){var o=[],s=[],i={},u=!1;return Ao(n,function(l,f,c){switch(c){case 632:s.push(l);break;case 635:i=l;break;case 637:i.t=l.t,i.h=l.h,i.r=l.r;break;case 636:if(i.author=s[i.iauthor],delete i.iauthor,a.sheetRows&&i.rfx&&a.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,o.push(i);break;case 3072:case 37:case 38:break;case 35:u=!0;break;case 36:u=!1;break;default:if(!f.T){if(!u||a.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),o}(t,e):function(n,a){if(n.match(/<(?:\w+:)?comments *\/>/))return[];var o=[],s=[],i=n.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(l){if(l!==""&&l.trim()!==""){var f=l.match(/<(?:\w+:)?author[^>]*>(.*)/);f&&o.push(f[1])}});var u=n.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return u&&u[1]&&u[1].split(/<\/\w*:?comment>/).forEach(function(l){if(l!==""&&l.trim()!==""){var f=l.match(/<(?:\w+:)?comment[^>]*>/);if(f){var c=en(f[0]),h={author:c.authorId&&o[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},d=Wi(c.ref);if(!(a.sheetRows&&a.sheetRows<=d.r)){var p=l.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),m=!!p&&!!p[1]&&m0(p[1])||{r:"",t:"",h:""};h.r=m.r,m.r=="<t></t>"&&(m.t=m.h=""),h.t=(m.t||"").replace(/\r\n/g,` |
|
|
`).replace(/\r/g,` |
|
|
`),a.cellHTML&&(h.h=m.h),s.push(h)}}}}),s}(t,e)}function h5(t,r,e){return r.slice(-4)===".bin"?function(n){var a=[];return Ao(n,function(o,s,i){if(i===63)a.push(o);else if(!s.T)throw new Error("Unexpected record 0x"+i.toString(16))}),a}(t):function(n){var a=[];if(!n)return a;var o=1;return(n.match(va)||[]).forEach(function(s){var i=en(s);switch(i[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?o=i.i:i.i=o,a.push(i)}}),a}(t)}function d5(t,r,e,n){if(e.slice(-4)===".bin")return function(a,o,s,i){if(!a)return a;var u=i||{},l=!1;Ao(a,function(f,c,h){switch(h){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:l=!0;break;case 36:l=!1;break;default:if(!c.T){if(!l||u.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}},u)}(t,0,0,n)}function p5(t,r,e){return r.slice(-4)===".bin"?function(n,a,o){var s={Types:[],Cell:[],Value:[]},i=o||{},u=[],l=!1,f=2;return Ao(n,function(c,h,d){switch(d){case 335:s.Types.push({name:c.name});break;case 51:c.forEach(function(p){f==1?s.Cell.push({type:s.Types[p[0]-1].name,index:p[1]}):f==0&&s.Value.push({type:s.Types[p[0]-1].name,index:p[1]})});break;case 337:f=c?1:0;break;case 338:f=2;break;case 35:u.push(d),l=!0;break;case 36:u.pop(),l=!1;break;default:if(!h.T){if(!l||i.WTF&&u[u.length-1]!=35)throw new Error("Unexpected record 0x"+d.toString(16))}}}),s}(t,0,e):function(n,a,o){var s={Types:[],Cell:[],Value:[]};if(!n)return s;var i,u=!1,l=2;return n.replace(va,function(f){var c=en(f);switch(Js(c[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":s.Types.push({name:c.name});break;case"<futureMetadata":for(var h=0;h<s.Types.length;++h)s.Types[h].name==c.name&&(i=s.Types[h]);break;case"<rc":l==1?s.Cell.push({type:s.Types[c.t-1].name,index:+c.v}):l==0&&s.Value.push({type:s.Types[c.t-1].name,index:+c.v});break;case"<cellMetadata":l=1;break;case"</cellMetadata>":case"</valueMetadata>":l=2;break;case"<valueMetadata":l=0;break;case"<ext":u=!0;break;case"</ext>":u=!1;break;case"<rvb":if(!i)break;i.offsets||(i.offsets=[]),i.offsets.push(+c.i);break;default:if(!u&&o.WTF)throw new Error("unrecognized "+c[0]+" in metadata")}return f}),s}(t,0,e)}function m5(t,r,e,n,a){return(r.slice(-4)===".bin"?K6:bb)(t,e,n,a)}function v5(t,r,e){return(r.slice(-4)===".bin"?e6:eb)(t)}var cf,Eb=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Cb=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ws(t,r){var e=t.split(/\s+/),n=[];if(n[0]=e[0],e.length===1)return n;var a,o,s,i=t.match(Eb);if(i)for(s=0;s!=i.length;++s)(o=(a=i[s].match(Cb))[1].indexOf(":"))===-1?n[a[1]]=a[2].slice(1,a[2].length-1):n[a[1].slice(0,6)==="xmlns:"?"xmlns"+a[1].slice(6):a[1].slice(o+1)]=a[2].slice(1,a[2].length-1);return n}function g5(t){var r={};if(t.split(/\s+/).length===1)return r;var e,n,a,o=t.match(Eb);if(o)for(a=0;a!=o.length;++a)(n=(e=o[a].match(Cb))[1].indexOf(":"))===-1?r[e[1]]=e[2].slice(1,e[2].length-1):r[e[1].slice(0,6)==="xmlns:"?"xmlns"+e[1].slice(6):e[1].slice(n+1)]=e[2].slice(1,e[2].length-1);return r}function b5(t,r,e,n){var a=n;switch((e[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=li(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=di(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+e[0])}t[Fn(r)]=a}function y5(t,r,e){if(t.t!=="z"){if(!e||e.cellText!==!1)try{t.t==="e"?t.w=t.w||Mo[t.v]:r==="General"?t.t==="n"?(0|t.v)===t.v?t.w=t.v.toString(10):t.w=Lc(t.v):t.w=Ol(t.v):t.w=(n=r||"General",a=t.v,(o=cf[n]||Fn(n))==="General"?Ol(a):ms(o,a))}catch(u){if(e.WTF)throw u}var n,a,o;try{var s=cf[r]||r||"General";if(e.cellNF&&(t.z=s),e.cellDates&&t.t=="n"&&Au(s)){var i=Rl(t.v);i&&(t.t="d",t.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(u){if(e.WTF)throw u}}}function w5(t,r,e){if(e.cellStyles&&r.Interior){var n=r.Interior;n.Pattern&&(n.patternType=O4[n.Pattern]||n.Pattern)}t[r.ID]=r}function _5(t,r,e,n,a,o,s,i,u,l){var f="General",c=n.StyleID,h={};l=l||{};var d=[],p=0;for(c===void 0&&i&&(c=i.StyleID),c===void 0&&s&&(c=s.StyleID);o[c]!==void 0&&(o[c].nf&&(f=o[c].nf),o[c].Interior&&d.push(o[c].Interior),o[c].Parent);)c=o[c].Parent;switch(e.Type){case"Boolean":n.t="b",n.v=li(t);break;case"String":n.t="s",n.r=pv(Fn(t)),n.v=t.indexOf("<")>-1?Fn(r||t).replace(/<.*?>/g,""):n.r;break;case"DateTime":t.slice(-1)!="Z"&&(t+="Z"),n.v=(di(t)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=Fn(t):n.v<60&&(n.v=n.v-1),f&&f!="General"||(f="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+t),n.t||(n.t="n");break;case"Error":n.t="e",n.v=Xv[t],l.cellText!==!1&&(n.w=t);break;default:t==""&&r==""?n.t="z":(n.t="s",n.v=pv(r||t))}if(y5(n,f,l),l.cellFormula!==!1)if(n.Formula){var m=Fn(n.Formula);m.charCodeAt(0)==61&&(m=m.slice(1)),n.f=Bu(m,a),delete n.Formula,n.ArrayRange=="RC"?n.F=Bu("RC:RC",a):n.ArrayRange&&(n.F=Bu(n.ArrayRange,a),u.push([Un(n.F),n.F]))}else for(p=0;p<u.length;++p)a.r>=u[p][0].s.r&&a.r<=u[p][0].e.r&&a.c>=u[p][0].s.c&&a.c<=u[p][0].e.c&&(n.F=u[p][1]);l.cellStyles&&(d.forEach(function(v){!h.patternType&&v.patternType&&(h.patternType=v.patternType)}),n.s=h),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function k5(t){t.t=t.v||"",t.t=t.t.replace(/\r\n/g,` |
|
|
`).replace(/\r/g,` |
|
|
`),t.v=t.w=t.ixfe=void 0}function M0(t,r){var e=r||{};Mu();var n=Pc(Kp(t));e.type!="binary"&&e.type!="array"&&e.type!="base64"||(n=Xn(n));var a,o=n.slice(0,1024).toLowerCase(),s=!1;if((1023&(o=o.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&o.indexOf(","),1023&o.indexOf(";"))){var i=oi(e);return i.type="string",Du.to_workbook(n,i)}if(o.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(G){o.indexOf("<"+G)>=0&&(s=!0)}),s)return function(G,tt){var dt=G.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!dt||dt.length==0)throw new Error("Invalid HTML: could not find <table>");if(dt.length==1)return Dl(Nb(dt[0],tt),tt);var Dt={SheetNames:[],Sheets:{}};return dt.forEach(function(re,X){Yb(Dt,Nb(re,tt),"Sheet"+(X+1))}),Dt}(n,e);cf={"General Number":"General","General Date":Qr[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Qr[15],"Short Date":Qr[14],"Long Time":Qr[19],"Medium Time":Qr[18],"Short Time":Qr[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Qr[2],Standard:Qr[4],Percent:Qr[10],Scientific:Qr[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var u,l,f=[],c={},h=[],d=e.dense?[]:{},p="",m={},v={},b=Ws('<Data ss:Type="String">'),g=0,y=0,k=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},C={},O={},L="",j=0,U=[],z={},Y={},A=0,I=[],_=[],x={},T=[],E=!1,M=[],F=[],P={},W=0,N=0,q={Sheets:[],WBProps:{date1904:!1}},nt={};Wc.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"");for(var J="";a=Wc.exec(n);)switch(a[3]=(J=a[3]).toLowerCase()){case"data":if(J=="data"){if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"))}else a[0].charAt(a[0].length-2)!=="/"&&f.push([a[3],!0]);break}if(f[f.length-1][1])break;a[1]==="/"?_5(n.slice(g,a.index),L,b,f[f.length-1][0]=="comment"?x:m,{c:y,r:k},C,T[y],v,M,e):(L="",b=Ws(a[0]),g=a.index+a[0].length);break;case"cell":if(a[1]==="/")if(_.length>0&&(m.c=_),(!e.sheetRows||e.sheetRows>k)&&m.v!==void 0&&(e.dense?(d[k]||(d[k]=[]),d[k][y]=m):d[Bi(y)+Qi(k)]=m),m.HRef&&(m.l={Target:Fn(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(W=y+(0|parseInt(m.MergeAcross,10)),N=k+(0|parseInt(m.MergeDown,10)),U.push({s:{c:y,r:k},e:{c:W,r:N}})),e.sheetStubs)if(m.MergeAcross||m.MergeDown){for(var St=y;St<=W;++St)for(var kt=k;kt<=N;++kt)(St>y||kt>k)&&(e.dense?(d[kt]||(d[kt]=[]),d[kt][St]={t:"z"}):d[Bi(St)+Qi(kt)]={t:"z"});y=W+1}else++y;else m.MergeAcross?y=W+1:++y;else(m=g5(a[0])).Index&&(y=+m.Index-1),y<S.s.c&&(S.s.c=y),y>S.e.c&&(S.e.c=y),a[0].slice(-2)==="/>"&&++y,_=[];break;case"row":a[1]==="/"||a[0].slice(-2)==="/>"?(k<S.s.r&&(S.s.r=k),k>S.e.r&&(S.e.r=k),a[0].slice(-2)==="/>"&&(v=Ws(a[0])).Index&&(k=+v.Index-1),y=0,++k):((v=Ws(a[0])).Index&&(k=+v.Index-1),P={},(v.AutoFitHeight=="0"||v.Height)&&(P.hpx=parseInt(v.Height,10),P.hpt=rf(P.hpx),F[k]=P),v.Hidden=="1"&&(P.hidden=!0,F[k]=P));break;case"worksheet":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"));h.push(p),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(d["!ref"]=Tn(S),e.sheetRows&&e.sheetRows<=S.e.r&&(d["!fullref"]=d["!ref"],S.e.r=e.sheetRows-1,d["!ref"]=Tn(S))),U.length&&(d["!merges"]=U),T.length>0&&(d["!cols"]=T),F.length>0&&(d["!rows"]=F),c[p]=d}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},k=y=0,f.push([a[3],!1]),u=Ws(a[0]),p=Fn(u.Name),d=e.dense?[]:{},U=[],M=[],F=[],nt={name:p,Hidden:0},q.Sheets.push(nt);break;case"table":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"))}else{if(a[0].slice(-2)=="/>")break;f.push([a[3],!1]),T=[],E=!1}break;case"style":a[1]==="/"?w5(C,O,e):O=Ws(a[0]);break;case"numberformat":O.nf=Fn(Ws(a[0]).Format||"General"),cf[O.nf]&&(O.nf=cf[O.nf]);for(var Mt=0;Mt!=392&&Qr[Mt]!=O.nf;++Mt);if(Mt==392){for(Mt=57;Mt!=392;++Mt)if(Qr[Mt]==null){To(O.nf,Mt);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if((l=Ws(a[0])).Hidden&&(l.hidden=!0,delete l.Hidden),l.Width&&(l.wpx=parseInt(l.Width,10)),!E&&l.wpx>10){E=!0,_a=6;for(var at=0;at<T.length;++at)T[at]&&al(T[at])}E&&al(l),T[l.Index-1||T.length]=l;for(var K=0;K<+l.Span;++K)T[T.length]=oi(l);break;case"namedrange":if(a[1]==="/")break;q.Names||(q.Names=[]);var it=en(a[0]),st={Name:it.Name,Ref:Bu(it.RefersTo.slice(1),{r:0,c:0})};q.Sheets.length>0&&(st.Sheet=q.Sheets.length-1),q.Names.push(st);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if(a[0].slice(-2)==="/>")break;a[1]==="/"?L+=n.slice(j,a.index):j=a.index+a[0].length;break;case"interior":if(!e.cellStyles)break;O.Interior=Ws(a[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(a[0].slice(-2)==="/>")break;a[1]==="/"?q3(z,J,n.slice(A,a.index)):A=a.index+a[0].length;break;case"styles":case"workbook":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"))}else f.push([a[3],!1]);break;case"comment":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"));k5(x),_.push(x)}else f.push([a[3],!1]),x={a:(u=Ws(a[0])).Author};break;case"autofilter":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"))}else if(a[0].charAt(a[0].length-2)!=="/"){var Nt=Ws(a[0]);d["!autofilter"]={ref:Bu(Nt.Range).replace(/\$/g,"")},f.push([a[3],!0])}break;case"datavalidation":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"))}else a[0].charAt(a[0].length-2)!=="/"&&f.push([a[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(a[1]==="/"){if((u=f.pop())[0]!==a[3])throw new Error("Bad state: "+u.join("|"))}else a[0].charAt(a[0].length-2)!=="/"&&f.push([a[3],!0]);break;default:if(f.length==0&&a[3]=="document"||f.length==0&&a[3]=="uof")return Fb(n,e);var rt=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(a[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:rt=!1}break;case"componentoptions":switch(a[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:rt=!1}break;case"excelworkbook":switch(a[3]){case"date1904":q.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:rt=!1}break;case"workbookoptions":switch(a[3]){case"owcversion":case"height":case"width":break;default:rt=!1}break;case"worksheetoptions":switch(a[3]){case"visible":if(a[0].slice(-2)!=="/>")if(a[1]==="/")switch(n.slice(A,a.index)){case"SheetHidden":nt.Hidden=1;break;case"SheetVeryHidden":nt.Hidden=2}else A=a.index+a[0].length;break;case"header":d["!margins"]||$l(d["!margins"]={},"xlml"),isNaN(+en(a[0]).Margin)||(d["!margins"].header=+en(a[0]).Margin);break;case"footer":d["!margins"]||$l(d["!margins"]={},"xlml"),isNaN(+en(a[0]).Margin)||(d["!margins"].footer=+en(a[0]).Margin);break;case"pagemargins":var mt=en(a[0]);d["!margins"]||$l(d["!margins"]={},"xlml"),isNaN(+mt.Top)||(d["!margins"].top=+mt.Top),isNaN(+mt.Left)||(d["!margins"].left=+mt.Left),isNaN(+mt.Right)||(d["!margins"].right=+mt.Right),isNaN(+mt.Bottom)||(d["!margins"].bottom=+mt.Bottom);break;case"displayrighttoleft":q.Views||(q.Views=[]),q.Views[0]||(q.Views[0]={}),q.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;default:rt=!1}break;case"pivottable":case"pivotcache":switch(a[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:rt=!1}break;case"pagebreaks":switch(a[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:rt=!1}break;case"autofilter":switch(a[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:rt=!1}break;case"querytable":switch(a[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:rt=!1}break;case"datavalidation":switch(a[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:rt=!1}break;case"sorting":case"conditionalformatting":switch(a[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:rt=!1}break;case"mapinfo":case"schema":case"data":switch(a[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:rt=!1}break;case"smarttags":break;default:rt=!1}if(rt||a[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+a[3]+"|"+f.join("|");if(f[f.length-1][0]==="customdocumentproperties"){if(a[0].slice(-2)==="/>")break;a[1]==="/"?b5(Y,J,I,n.slice(A,a.index)):(I=a,A=a.index+a[0].length);break}if(e.WTF)throw"Unrecognized tag: "+a[3]+"|"+f.join("|")}var Xt={};return e.bookSheets||e.bookProps||(Xt.Sheets=c),Xt.SheetNames=h,Xt.Workbook=q,Xt.SSF=oi(Qr),Xt.Props=z,Xt.Custprops=Y,Xt}function R0(t,r){switch(L0(r=r||{}),r.type||"base64"){case"base64":return M0(es(t),r);case"binary":case"buffer":case"file":return M0(t,r);case"array":return M0(el(t),r)}}function x5(t,r){var e=[];return t.Props&&e.push(function(n,a){var o=[];return Ei(f0).map(function(s){for(var i=0;i<ys.length;++i)if(ys[i][1]==s)return ys[i];for(i=0;i<zl.length;++i)if(zl[i][1]==s)return zl[i];throw s}).forEach(function(s){if(n[s[1]]!=null){var i=a&&a.Props&&a.Props[s[1]]!=null?a.Props[s[1]]:n[s[1]];s[2]==="date"&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"Z")),typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),o.push(sa(f0[s[1]]||s[1],i))}}),vr("DocumentProperties",o.join(""),{xmlns:Rh})}(t.Props,r)),t.Custprops&&e.push(function(n,a){var o=["Worksheets","SheetNames"],s="CustomDocumentProperties",i=[];return n&&Ei(n).forEach(function(u){if(Object.prototype.hasOwnProperty.call(n,u)){for(var l=0;l<ys.length;++l)if(u==ys[l][1])return;for(l=0;l<zl.length;++l)if(u==zl[l][1])return;for(l=0;l<o.length;++l)if(u==o[l])return;var f=n[u],c="string";typeof f=="number"?(c="float",f=String(f)):f===!0||f===!1?(c="boolean",f=f?"1":"0"):f=String(f),i.push(vr(hv(u),f,{"dt:dt":c}))}}),a&&Ei(a).forEach(function(u){if(Object.prototype.hasOwnProperty.call(a,u)&&(!n||!Object.prototype.hasOwnProperty.call(n,u))){var l=a[u],f="string";typeof l=="number"?(f="float",l=String(l)):l===!0||l===!1?(f="boolean",l=l?"1":"0"):l instanceof Date?(f="dateTime.tz",l=l.toISOString()):l=String(l),i.push(vr(hv(u),l,{"dt:dt":f}))}}),"<"+s+' xmlns="'+Rh+'">'+i.join("")+"</"+s+">"}(t.Props,t.Custprops)),e.join("")}function Ab(t){return vr("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+k0(t.Ref,{r:0,c:0})})}function S5(t,r,e,n,a,o,s){if(!t||t.v==null&&t.f==null)return"";var i={};if(t.f&&(i["ss:Formula"]="="+qn(k0(t.f,s))),t.F&&t.F.slice(0,r.length)==r){var u=Wi(t.F.slice(r.length+1));i["ss:ArrayRange"]="RC:R"+(u.r==s.r?"":"["+(u.r-s.r)+"]")+"C"+(u.c==s.c?"":"["+(u.c-s.c)+"]")}if(t.l&&t.l.Target&&(i["ss:HRef"]=qn(t.l.Target),t.l.Tooltip&&(i["x:HRefScreenTip"]=qn(t.l.Tooltip))),e["!merges"])for(var l=e["!merges"],f=0;f!=l.length;++f)l[f].s.c==s.c&&l[f].s.r==s.r&&(l[f].e.c>l[f].s.c&&(i["ss:MergeAcross"]=l[f].e.c-l[f].s.c),l[f].e.r>l[f].s.r&&(i["ss:MergeDown"]=l[f].e.r-l[f].s.r));var c="",h="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":c="Number",h=String(t.v);break;case"b":c="Boolean",h=t.v?"1":"0";break;case"e":c="Error",h=Mo[t.v];break;case"d":c="DateTime",h=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Qr[14]);break;case"s":c="String",h=((t.v||"")+"").replace($p,function(v){return Vp[v]}).replace(dv,function(v){return"&#x"+v.charCodeAt(0).toString(16).toUpperCase()+";"})}var d=ol(n.cellXfs,t,n);i["ss:StyleID"]="s"+(21+d),i["ss:Index"]=s.c+1;var p=t.v!=null?h:"",m=t.t=="z"?"":'<Data ss:Type="'+c+'">'+p+"</Data>";return(t.c||[]).length>0&&(m+=t.c.map(function(v){var b=vr("ss:Data",(v.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return vr("Comment",b,{"ss:Author":v.a})}).join("")),vr("Cell",m,i)}function T5(t,r){var e='<Row ss:Index="'+(t+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=Fu(r.hpt)),r.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(e+=' ss:Hidden="1"')),e+">"}function E5(t,r,e){var n=[],a=e.SheetNames[t],o=e.Sheets[a],s=o?function(i,u,l,f){if(!i||!((f||{}).Workbook||{}).Names)return"";for(var c=f.Workbook.Names,h=[],d=0;d<c.length;++d){var p=c[d];p.Sheet==l&&(p.Name.match(/^_xlfn\./)||h.push(Ab(p)))}return h.join("")}(o,0,t,e):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=o?function(i,u){if(!i["!ref"])return"";var l=Un(i["!ref"]),f=i["!merges"]||[],c=0,h=[];i["!cols"]&&i["!cols"].forEach(function(S,C){al(S);var O=!!S.width,L=$h(C,S),j={"ss:Index":C+1};O&&(j["ss:Width"]=tf(L.width)),S.hidden&&(j["ss:Hidden"]="1"),h.push(vr("Column",null,j))});for(var d=Array.isArray(i),p=l.s.r;p<=l.e.r;++p){for(var m=[T5(p,(i["!rows"]||[])[p])],v=l.s.c;v<=l.e.c;++v){var b=!1;for(c=0;c!=f.length;++c)if(!(f[c].s.c>v||f[c].s.r>p||f[c].e.c<v||f[c].e.r<p)){f[c].s.c==v&&f[c].s.r==p||(b=!0);break}if(!b){var g={r:p,c:v},y=on(g),k=d?(i[p]||[])[v]:i[y];m.push(S5(k,y,i,u,0,0,g))}}m.push("</Row>"),m.length>2&&h.push(m.join(""))}return h.join("")}(o,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(function(i,u,l,f){if(!i)return"";var c=[];if(i["!margins"]&&(c.push("<PageSetup>"),i["!margins"].header&&c.push(vr("Header",null,{"x:Margin":i["!margins"].header})),i["!margins"].footer&&c.push(vr("Footer",null,{"x:Margin":i["!margins"].footer})),c.push(vr("PageMargins",null,{"x:Bottom":i["!margins"].bottom||"0.75","x:Left":i["!margins"].left||"0.7","x:Right":i["!margins"].right||"0.7","x:Top":i["!margins"].top||"0.75"})),c.push("</PageSetup>")),f&&f.Workbook&&f.Workbook.Sheets&&f.Workbook.Sheets[l])if(f.Workbook.Sheets[l].Hidden)c.push(vr("Visible",f.Workbook.Sheets[l].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var h=0;h<l&&(!f.Workbook.Sheets[h]||f.Workbook.Sheets[h].Hidden);++h);h==l&&c.push("<Selected/>")}return((((f||{}).Workbook||{}).Views||[])[0]||{}).RTL&&c.push("<DisplayRightToLeft/>"),i["!protect"]&&(c.push(sa("ProtectContents","True")),i["!protect"].objects&&c.push(sa("ProtectObjects","True")),i["!protect"].scenarios&&c.push(sa("ProtectScenarios","True")),i["!protect"].selectLockedCells==null||i["!protect"].selectLockedCells?i["!protect"].selectUnlockedCells==null||i["!protect"].selectUnlockedCells||c.push(sa("EnableSelection","UnlockedCells")):c.push(sa("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(d){i["!protect"][d[0]]&&c.push("<"+d[1]+"/>")})),c.length==0?"":vr("WorksheetOptions",c.join(""),{xmlns:Zp})}(o,0,t,e)),n.join("")}function C5(t,r){r||(r={}),t.SSF||(t.SSF=oi(Qr)),t.SSF&&(Mu(),Sh(t.SSF),r.revssf=Eh(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF,r.cellXfs=[],ol(r.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(x5(t,r)),e.push(""),e.push(""),e.push("");for(var n=0;n<t.SheetNames.length;++n)e.push(vr("Worksheet",E5(n,r,t),{"ss:Name":qn(t.SheetNames[n])}));return e[2]=function(a,o){var s=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return o.cellXfs.forEach(function(i,u){var l=[];l.push(vr("NumberFormat",null,{"ss:Format":qn(Qr[i.numFmtId])}));var f={"ss:ID":"s"+(21+u)};s.push(vr("Style",l.join(""),f))}),vr("Styles",s.join(""))}(0,r),e[3]=function(a){if(!((a||{}).Workbook||{}).Names)return"";for(var o=a.Workbook.Names,s=[],i=0;i<o.length;++i){var u=o[i];u.Sheet==null&&(u.Name.match(/^_xlfn\./)||s.push(Ab(u)))}return vr("Names",s.join(""))}(t),Ci+vr("Workbook",e.join(""),{xmlns:xv,"xmlns:o":Rh,"xmlns:x":Zp,"xmlns:ss":xv,"xmlns:dt":T3,"xmlns:html":A3})}function A5(t){var r={},e=t.content;if(e.l=28,r.AnsiUserType=e.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=function(a){return Yv(a,1)}(e),e.length-e.l<=4)return r;var n=e.read_shift(4);return n==0||n>40?r:(e.l-=4,r.Reserved1=e.read_shift(0,"lpstr-ansi"),e.length-e.l<=4||(n=e.read_shift(4))!==1907505652?r:(r.UnicodeClipboardFormat=function(a){return Yv(a,2)}(e),(n=e.read_shift(4))==0||n>40?r:(e.l-=4,void(r.Reserved2=e.read_shift(0,"lpwstr")))))}var M5=[60,1084,2066,2165,2175];function R5(t,r,e,n,a){var o=n,s=[],i=e.slice(e.l,e.l+o);if(a&&a.enc&&a.enc.insitu&&i.length>0)switch(t){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:a.enc.insitu(i)}s.push(i),e.l+=o;for(var u=Co(e,e.l),l=O0[u],f=0;l!=null&&M5.indexOf(u)>-1;)o=Co(e,e.l+2),f=e.l+4,u==2066?f+=4:u!=2165&&u!=2175||(f+=12),i=e.slice(f,e.l+4+o),s.push(i),e.l+=4+o,l=O0[u=Co(e,e.l)];var c=Ji(s);oa(c,0);var h=0;c.lens=[];for(var d=0;d<s.length;++d)c.lens.push(h),h+=s[d].length;if(c.length<n)throw"XLS Record 0x"+t.toString(16)+" Truncated: "+c.length+" < "+n;return r.f(c,c.length,a)}function eo(t,r,e){if(t.t!=="z"&&t.XF){var n=0;try{n=t.z||t.XF.numFmtId||0,r.cellNF&&(t.z=Qr[n])}catch(o){if(r.WTF)throw o}if(!r||r.cellText!==!1)try{t.t==="e"?t.w=t.w||Mo[t.v]:n===0||n=="General"?t.t==="n"?(0|t.v)===t.v?t.w=t.v.toString(10):t.w=Lc(t.v):t.w=Ol(t.v):t.w=ms(n,t.v,{date1904:!!e,dateNF:r&&r.dateNF})}catch(o){if(r.WTF)throw o}if(r.cellDates&&n&&t.t=="n"&&Au(Qr[n]||String(n))){var a=Rl(t.v);a&&(t.t="d",t.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}}function qh(t,r,e){return{v:t,ixfe:r,t:e}}function O5(t,r){var e,n,a,o,s,i,u,l,f={opts:{}},c={},h=r.dense?[]:{},d={},p={},m=null,v=[],b="",g={},y="",k={},S=[],C=[],O=[],L={Sheets:[],WBProps:{date1904:!1},Views:[{}]},j={},U=function(Tt){return Tt<8?Nu[Tt]:Tt<64&&O[Tt-8]||Nu[Tt]},z=function(Tt,ie,ot){if(!(P>1||ot.sheetRows&&Tt.r>=ot.sheetRows)){if(ot.cellStyles&&ie.XF&&ie.XF.data&&function(xt,Ft,bt){var lt,Ct=Ft.XF.data;Ct&&Ct.patternType&&bt&&bt.cellStyles&&(Ft.s={},Ft.s.patternType=Ct.patternType,(lt=Qc(U(Ct.icvFore)))&&(Ft.s.fgColor={rgb:lt}),(lt=Qc(U(Ct.icvBack)))&&(Ft.s.bgColor={rgb:lt}))}(0,ie,ot),delete ie.ixfe,delete ie.XF,e=Tt,y=on(Tt),p&&p.s&&p.e||(p={s:{r:0,c:0},e:{r:0,c:0}}),Tt.r<p.s.r&&(p.s.r=Tt.r),Tt.c<p.s.c&&(p.s.c=Tt.c),Tt.r+1>p.e.r&&(p.e.r=Tt.r+1),Tt.c+1>p.e.c&&(p.e.c=Tt.c+1),ot.cellFormula&&ie.f){for(var ct=0;ct<S.length;++ct)if(!(S[ct][0].s.c>Tt.c||S[ct][0].s.r>Tt.r||S[ct][0].e.c<Tt.c||S[ct][0].e.r<Tt.r)){ie.F=Tn(S[ct][0]),S[ct][0].s.c==Tt.c&&S[ct][0].s.r==Tt.r||delete ie.f,ie.f&&(ie.f=""+ka(S[ct][1],0,Tt,E,Y));break}}ot.dense?(h[Tt.r]||(h[Tt.r]=[]),h[Tt.r][Tt.c]=ie):h[y]=ie}},Y={enc:!1,sbcch:0,snames:[],sharedf:k,arrayf:S,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(Y.password=r.password);var A=[],I=[],_=[],x=[],T=!1,E=[];E.SheetNames=Y.snames,E.sharedf=Y.sharedf,E.arrayf=Y.arrayf,E.names=[],E.XTI=[];var M,F=0,P=0,W=0,N=[],q=[];Y.codepage=1200,zs(1200);for(var nt=!1;t.l<t.length-1;){var J=t.l,St=t.read_shift(2);if(St===0&&F===10)break;var kt=t.l===t.length?0:t.read_shift(2),Mt=O0[St];if(Mt&&Mt.f){if(r.bookSheets&&F===133&&St!==133)break;if(F=St,Mt.r===2||Mt.r==12){var at=t.read_shift(2);if(kt-=2,!Y.enc&&at!==St&&((255&at)<<8|at>>8)!==St)throw new Error("rt mismatch: "+at+"!="+St);Mt.r==12&&(t.l+=10,kt-=10)}var K={};if(K=St===10?Mt.f(t,kt,Y):R5(St,Mt,t,kt,Y),P==0&&[9,521,1033,2057].indexOf(F)===-1)continue;switch(St){case 34:f.opts.Date1904=L.WBProps.date1904=K;break;case 134:f.opts.WriteProtect=!0;break;case 47:if(Y.enc||(t.l=0),Y.enc=K,!r.password)throw new Error("File is password-protected");if(K.valid==null)throw new Error("Encryption scheme unsupported");if(!K.valid)throw new Error("Password is incorrect");break;case 92:Y.lastuser=K;break;case 66:var it=Number(K);switch(it){case 21010:it=1200;break;case 32768:it=1e4;break;case 32769:it=1252}zs(Y.codepage=it),nt=!0;break;case 317:Y.rrtabid=K;break;case 25:Y.winlocked=K;break;case 439:f.opts.RefreshAll=K;break;case 12:f.opts.CalcCount=K;break;case 16:f.opts.CalcDelta=K;break;case 17:f.opts.CalcIter=K;break;case 13:f.opts.CalcMode=K;break;case 14:f.opts.CalcPrecision=K;break;case 95:f.opts.CalcSaveRecalc=K;break;case 15:Y.CalcRefMode=K;break;case 2211:f.opts.FullCalc=K;break;case 129:K.fDialog&&(h["!type"]="dialog"),K.fBelow||((h["!outline"]||(h["!outline"]={})).above=!0),K.fRight||((h["!outline"]||(h["!outline"]={})).left=!0);break;case 224:C.push(K);break;case 430:E.push([K]),E[E.length-1].XTI=[];break;case 35:case 547:E[E.length-1].push(K);break;case 24:case 536:M={Name:K.Name,Ref:ka(K.rgce,0,null,E,Y)},K.itab>0&&(M.Sheet=K.itab-1),E.names.push(M),E[0]||(E[0]=[],E[0].XTI=[]),E[E.length-1].push(K),K.Name=="_xlnm._FilterDatabase"&&K.itab>0&&K.rgce&&K.rgce[0]&&K.rgce[0][0]&&K.rgce[0][0][0]=="PtgArea3d"&&(q[K.itab-1]={ref:Tn(K.rgce[0][0][1][2])});break;case 22:Y.ExternCount=K;break;case 23:E.length==0&&(E[0]=[],E[0].XTI=[]),E[E.length-1].XTI=E[E.length-1].XTI.concat(K),E.XTI=E.XTI.concat(K);break;case 2196:if(Y.biff<8)break;M!=null&&(M.Comment=K[1]);break;case 18:h["!protect"]=K;break;case 19:K!==0&&Y.WTF&&console.error("Password verifier: "+K);break;case 133:d[K.pos]=K,Y.snames.push(K.name);break;case 10:if(--P)break;if(p.e){if(p.e.r>0&&p.e.c>0){if(p.e.r--,p.e.c--,h["!ref"]=Tn(p),r.sheetRows&&r.sheetRows<=p.e.r){var st=p.e.r;p.e.r=r.sheetRows-1,h["!fullref"]=h["!ref"],h["!ref"]=Tn(p),p.e.r=st}p.e.r++,p.e.c++}A.length>0&&(h["!merges"]=A),I.length>0&&(h["!objects"]=I),_.length>0&&(h["!cols"]=_),x.length>0&&(h["!rows"]=x),L.Sheets.push(j)}b===""?g=h:c[b]=h,h=r.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(Y.biff===8&&(Y.biff={9:2,521:3,1033:4}[St]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[K.BIFFVer]||8),Y.biffguess=K.BIFFVer==0,K.BIFFVer==0&&K.dt==4096&&(Y.biff=5,nt=!0,zs(Y.codepage=28591)),Y.biff==8&&K.BIFFVer==0&&K.dt==16&&(Y.biff=2),P++)break;if(h=r.dense?[]:{},Y.biff<8&&!nt&&(nt=!0,zs(Y.codepage=r.codepage||1252)),Y.biff<5||K.BIFFVer==0&&K.dt==4096){b===""&&(b="Sheet1"),p={s:{r:0,c:0},e:{r:0,c:0}};var Nt={pos:t.l-kt,name:b};d[Nt.pos]=Nt,Y.snames.push(b)}else b=(d[J]||{name:""}).name;K.dt==32&&(h["!type"]="chart"),K.dt==64&&(h["!type"]="macro"),A=[],I=[],Y.arrayf=S=[],_=[],x=[],T=!1,j={Hidden:(d[J]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:h["!type"]=="chart"&&(r.dense?(h[K.r]||[])[K.c]:h[on({c:K.c,r:K.r})])&&++K.c,i={ixfe:K.ixfe,XF:C[K.ixfe]||{},v:K.val,t:"n"},W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:K.c,r:K.r},i,r);break;case 5:case 517:i={ixfe:K.ixfe,XF:C[K.ixfe],v:K.val,t:K.t},W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:K.c,r:K.r},i,r);break;case 638:i={ixfe:K.ixfe,XF:C[K.ixfe],v:K.rknum,t:"n"},W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:K.c,r:K.r},i,r);break;case 189:for(var rt=K.c;rt<=K.C;++rt){var mt=K.rkrec[rt-K.c][0];i={ixfe:mt,XF:C[mt],v:K.rkrec[rt-K.c][1],t:"n"},W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:rt,r:K.r},i,r)}break;case 6:case 518:case 1030:if(K.val=="String"){m=K;break}if((i=qh(K.val,K.cell.ixfe,K.tt)).XF=C[i.ixfe],r.cellFormula){var Xt=K.formula;if(Xt&&Xt[0]&&Xt[0][0]&&Xt[0][0][0]=="PtgExp"){var G=Xt[0][0][1][0],tt=Xt[0][0][1][1],dt=on({r:G,c:tt});k[dt]?i.f=""+ka(K.formula,0,K.cell,E,Y):i.F=((r.dense?(h[G]||[])[tt]:h[dt])||{}).F}else i.f=""+ka(K.formula,0,K.cell,E,Y)}W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z(K.cell,i,r),m=K;break;case 7:case 519:if(!m)throw new Error("String record expects Formula");m.val=K,(i=qh(K,m.cell.ixfe,"s")).XF=C[i.ixfe],r.cellFormula&&(i.f=""+ka(m.formula,0,m.cell,E,Y)),W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z(m.cell,i,r),m=null;break;case 33:case 545:S.push(K);var Dt=on(K[0].s);if(n=r.dense?(h[K[0].s.r]||[])[K[0].s.c]:h[Dt],r.cellFormula&&n){if(!m||!Dt||!n)break;n.f=""+ka(K[1],0,K[0],E,Y),n.F=Tn(K[0])}break;case 1212:if(!r.cellFormula)break;if(y){if(!m)break;k[on(m.cell)]=K[0],((n=r.dense?(h[m.cell.r]||[])[m.cell.c]:h[on(m.cell)])||{}).f=""+ka(K[0],0,e,E,Y)}break;case 253:i=qh(v[K.isst].t,K.ixfe,"s"),v[K.isst].h&&(i.h=v[K.isst].h),i.XF=C[i.ixfe],W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:K.c,r:K.r},i,r);break;case 513:r.sheetStubs&&(i={ixfe:K.ixfe,XF:C[K.ixfe],t:"z"},W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:K.c,r:K.r},i,r));break;case 190:if(r.sheetStubs)for(var re=K.c;re<=K.C;++re){var X=K.ixfe[re-K.c];i={ixfe:X,XF:C[X],t:"z"},W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:re,r:K.r},i,r)}break;case 214:case 516:case 4:(i=qh(K.val,K.ixfe,"s")).XF=C[i.ixfe],W>0&&(i.z=N[i.ixfe>>8&63]),eo(i,r,f.opts.Date1904),z({c:K.c,r:K.r},i,r);break;case 0:case 512:P===1&&(p=K);break;case 252:v=K;break;case 1054:if(Y.biff==4){N[W++]=K[1];for(var Gt=0;Gt<W+163&&Qr[Gt]!=K[1];++Gt);Gt>=163&&To(K[1],W+163)}else To(K[1],K[0]);break;case 30:N[W++]=K;for(var Jt=0;Jt<W+163&&Qr[Jt]!=K;++Jt);Jt>=163&&To(K,W+163);break;case 229:A=A.concat(K);break;case 93:I[K.cmo[0]]=Y.lastobj=K;break;case 438:Y.lastobj.TxO=K;break;case 127:Y.lastobj.ImData=K;break;case 440:for(s=K[0].s.r;s<=K[0].e.r;++s)for(o=K[0].s.c;o<=K[0].e.c;++o)(n=r.dense?(h[s]||[])[o]:h[on({c:o,r:s})])&&(n.l=K[1]);break;case 2048:for(s=K[0].s.r;s<=K[0].e.r;++s)for(o=K[0].s.c;o<=K[0].e.c;++o)(n=r.dense?(h[s]||[])[o]:h[on({c:o,r:s})])&&n.l&&(n.l.Tooltip=K[1]);break;case 28:if(Y.biff<=5&&Y.biff>=2)break;n=r.dense?(h[K[0].r]||[])[K[0].c]:h[on(K[0])];var vt=I[K[2]];n||(r.dense?(h[K[0].r]||(h[K[0].r]=[]),n=h[K[0].r][K[0].c]={t:"z"}):n=h[on(K[0])]={t:"z"},p.e.r=Math.max(p.e.r,K[0].r),p.s.r=Math.min(p.s.r,K[0].r),p.e.c=Math.max(p.e.c,K[0].c),p.s.c=Math.min(p.s.c,K[0].c)),n.c||(n.c=[]),a={a:K[1],t:vt.TxO.t},n.c.push(a);break;case 2173:C[K.ixfe],K.ext.forEach(function(Tt){Tt[0]});break;case 125:if(!Y.cellStyles)break;for(;K.e>=K.s;)_[K.e--]={width:K.w/256,level:K.level||0,hidden:!!(1&K.flags)},T||(T=!0,b0(K.w/256)),al(_[K.e+1]);break;case 520:var gt={};K.level!=null&&(x[K.r]=gt,gt.level=K.level),K.hidden&&(x[K.r]=gt,gt.hidden=!0),K.hpt&&(x[K.r]=gt,gt.hpt=K.hpt,gt.hpx=Fu(K.hpt));break;case 38:case 39:case 40:case 41:h["!margins"]||$l(h["!margins"]={}),h["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[St]]=K;break;case 161:h["!margins"]||$l(h["!margins"]={}),h["!margins"].header=K.header,h["!margins"].footer=K.footer;break;case 574:K.RTL&&(L.Views[0].RTL=!0);break;case 146:O=K;break;case 2198:l=K;break;case 140:u=K;break;case 442:b?j.CodeName=K||j.name:L.WBProps.CodeName=K||"ThisWorkbook"}}else Mt||console.error("Missing Info for XLS Record 0x"+St.toString(16)),t.l+=kt}return f.SheetNames=Ei(d).sort(function(Tt,ie){return Number(Tt)-Number(ie)}).map(function(Tt){return d[Tt].name}),r.bookSheets||(f.Sheets=c),!f.SheetNames.length&&g["!ref"]?(f.SheetNames.push("Sheet1"),f.Sheets&&(f.Sheets.Sheet1=g)):f.Preamble=g,f.Sheets&&q.forEach(function(Tt,ie){f.Sheets[f.SheetNames[ie]]["!autofilter"]=Tt}),f.Strings=v,f.SSF=oi(Qr),Y.enc&&(f.Encryption=Y.enc),l&&(f.Themes=l),f.Metadata={},u!==void 0&&(f.Metadata.Country=u),E.names.length>0&&(L.Names=E.names),f.Workbook=L,f}var Mb="e0859ff2f94f6810ab9108002b27b3d9",Rb="02d5cdd59c2e1b10939708002b2cf9ae",I5="05d5cdd59c2e1b10939708002b2cf9ae";function Ob(t,r){var e,n,a,o;if(r||(r={}),L0(r),Fp(),r.codepage&&Dp(r.codepage),t.FullPaths){if(zr.find(t,"/encryption"))throw new Error("File is password-protected");e=zr.find(t,"!CompObj"),n=zr.find(t,"/Workbook")||zr.find(t,"/Book")}else{switch(r.type){case"base64":t=rs(es(t));break;case"binary":t=rs(t);break;case"buffer":break;case"array":Array.isArray(t)||(t=Array.prototype.slice.call(t))}oa(t,0),n={content:t}}if(e&&A5(e),r.bookProps&&!r.bookSheets)a={};else{var s=wn?"buffer":"array";if(n&&n.content)a=O5(n.content,r);else if((o=zr.find(t,"PerfectOffice_MAIN"))&&o.content)a=Vl.to_workbook(o.content,(r.type=s,r));else{if(!(o=zr.find(t,"NativeContent_MAIN"))||!o.content)throw(o=zr.find(t,"MN0"))&&o.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");a=Vl.to_workbook(o.content,(r.type=s,r))}r.bookVBA&&t.FullPaths&&zr.find(t,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=function(u){var l=zr.utils.cfb_new({root:"R"});return u.FullPaths.forEach(function(f,c){if(f.slice(-1)!=="/"&&f.match(/_VBA_PROJECT_CUR/)){var h=f.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");zr.utils.cfb_add(l,h,u.FileIndex[c].content)}}),zr.write(l)}(t))}var i={};return t.FullPaths&&function(u,l,f){var c=zr.find(u,"/!DocumentSummaryInformation");if(c&&c.size>0)try{var h=vg(c,s0,Rb);for(var d in h)l[d]=h[d]}catch(b){if(f.WTF)throw b}var p=zr.find(u,"/!SummaryInformation");if(p&&p.size>0)try{var m=vg(p,o0,Mb);for(var v in m)l[v]==null&&(l[v]=m[v])}catch(b){if(f.WTF)throw b}l.HeadingPairs&&l.TitlesOfParts&&(ng(l.HeadingPairs,l.TitlesOfParts,l,f),delete l.HeadingPairs,delete l.TitlesOfParts)}(t,i,r),a.Props=a.Custprops=i,r.bookFiles&&(a.cfb=t),a}function N5(t,r){var e=r||{},n=zr.utils.cfb_new({root:"R"}),a="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":a="/Workbook",e.biff=8;break;case"biff5":a="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return zr.utils.cfb_add(n,a,Ib(t,e)),e.biff==8&&(t.Props||t.Custprops)&&function(o,s){var i,u=[],l=[],f=[],c=0,h=ev(s0,"n"),d=ev(o0,"n");if(o.Props)for(i=Ei(o.Props),c=0;c<i.length;++c)(Object.prototype.hasOwnProperty.call(h,i[c])?u:Object.prototype.hasOwnProperty.call(d,i[c])?l:f).push([i[c],o.Props[i[c]]]);if(o.Custprops)for(i=Ei(o.Custprops),c=0;c<i.length;++c)Object.prototype.hasOwnProperty.call(o.Props||{},i[c])||(Object.prototype.hasOwnProperty.call(h,i[c])?u:Object.prototype.hasOwnProperty.call(d,i[c])?l:f).push([i[c],o.Custprops[i[c]]]);var p=[];for(c=0;c<f.length;++c)pg.indexOf(f[c][0])>-1||rg.indexOf(f[c][0])>-1||f[c][1]!=null&&p.push(f[c]);l.length&&zr.utils.cfb_add(s,"/SummaryInformation",gg(l,Mb,d,o0)),(u.length||p.length)&&zr.utils.cfb_add(s,"/DocumentSummaryInformation",gg(u,Rb,h,s0,p.length?p:null,I5))}(t,n),e.biff==8&&t.vbaraw&&function(o,s){s.FullPaths.forEach(function(i,u){if(u!=0){var l=i.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");l.slice(-1)!=="/"&&zr.utils.cfb_add(o,l,s.FileIndex[u].content)}})}(n,zr.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var ff={0:{f:function(t,r){var e={},n=t.l+r;e.r=t.read_shift(4),t.l+=4;var a=t.read_shift(2);t.l+=1;var o=t.read_shift(1);return t.l=n,7&o&&(e.level=7&o),16&o&&(e.hidden=!0),32&o&&(e.hpt=a/20),e}},1:{f:function(t){return[bs(t)]}},2:{f:function(t){return[bs(t),a0(t),"n"]}},3:{f:function(t){return[bs(t),t.read_shift(1),"e"]}},4:{f:function(t){return[bs(t),t.read_shift(1),"b"]}},5:{f:function(t){return[bs(t),ya(t),"n"]}},6:{f:function(t){return[bs(t),ba(t),"str"]}},7:{f:function(t){return[bs(t),t.read_shift(4),"s"]}},8:{f:function(t,r,e){var n=t.l+r,a=bs(t);a.r=e["!row"];var o=[a,ba(t),"str"];if(e.cellFormula){t.l+=2;var s=Vh(t,n-t.l,e);o[3]=ka(s,0,a,e.supbooks,e)}else t.l=n;return o}},9:{f:function(t,r,e){var n=t.l+r,a=bs(t);a.r=e["!row"];var o=[a,ya(t),"n"];if(e.cellFormula){t.l+=2;var s=Vh(t,n-t.l,e);o[3]=ka(s,0,a,e.supbooks,e)}else t.l=n;return o}},10:{f:function(t,r,e){var n=t.l+r,a=bs(t);a.r=e["!row"];var o=[a,t.read_shift(1),"b"];if(e.cellFormula){t.l+=2;var s=Vh(t,n-t.l,e);o[3]=ka(s,0,a,e.supbooks,e)}else t.l=n;return o}},11:{f:function(t,r,e){var n=t.l+r,a=bs(t);a.r=e["!row"];var o=[a,t.read_shift(1),"e"];if(e.cellFormula){t.l+=2;var s=Vh(t,n-t.l,e);o[3]=ka(s,0,a,e.supbooks,e)}else t.l=n;return o}},12:{f:function(t){return[Ll(t)]}},13:{f:function(t){return[Ll(t),a0(t),"n"]}},14:{f:function(t){return[Ll(t),t.read_shift(1),"e"]}},15:{f:function(t){return[Ll(t),t.read_shift(1),"b"]}},16:{f:yb},17:{f:function(t){return[Ll(t),ba(t),"str"]}},18:{f:function(t){return[Ll(t),t.read_shift(4),"s"]}},19:{f:e0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(t,r,e){var n=t.l+r;t.l+=4,t.l+=1;var a=t.read_shift(4),o=z3(t),s=g6(t,0,e),i=r0(t);t.l=n;var u={Name:o,Ptg:s};return a<268435455&&(u.Sheet=a),i&&(u.Comment=i),u}},40:{},42:{},43:{f:function(t,r,e){var n={};n.sz=t.read_shift(2)/20;var a=function(u){var l=u.read_shift(1);return u.l++,{fBold:1&l,fItalic:2&l,fUnderline:4&l,fStrikeout:8&l,fOutline:16&l,fShadow:32&l,fCondense:64&l,fExtend:128&l}}(t);switch(a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1),t.read_shift(2)===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var o=t.read_shift(1);o!=0&&(n.underline=o);var s=t.read_shift(1);s>0&&(n.family=s);var i=t.read_shift(1);switch(i>0&&(n.charset=i),t.l++,n.color=function(u){var l={},f=u.read_shift(1)>>>1,c=u.read_shift(1),h=u.read_shift(2,"i"),d=u.read_shift(1),p=u.read_shift(1),m=u.read_shift(1);switch(u.l++,f){case 0:l.auto=1;break;case 1:l.index=c;var v=Nu[c];v&&(l.rgb=Qc(v));break;case 2:l.rgb=Qc([d,p,m]);break;case 3:l.theme=c}return h!=0&&(l.tint=h>0?h/32767:h/32768),l}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=ba(t),n}},44:{f:function(t,r){return[t.read_shift(2),ba(t)]}},45:{f:F4},46:{f:L4},47:{f:function(t,r){var e=t.l+r,n=t.read_shift(2),a=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:a}}},48:{},49:{f:function(t){return t.read_shift(4,"i")}},50:{},51:{f:function(t){for(var r=[],e=t.read_shift(4);e-- >0;)r.push([t.read_shift(4),t.read_shift(4)]);return r}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Lg},62:{f:function(t){return[bs(t),e0(t),"is"]}},63:{f:function(t){var r={};r.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),r.r=on(e);var n=t.read_shift(1);return 2&n&&(r.l="1"),8&n&&(r.a="1"),r}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ga,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(t){var r=t.read_shift(2);return t.l+=28,{RTL:32&r}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(t,r){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=j3(t),e}},148:{f:B6,p:16},151:{f:function(){}},152:{},153:{f:function(t,r){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var a=r>8?ba(t):"";return a.length>0&&(e.CodeName=a),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function(t,r){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=n0(t),e.name=ba(t),e}},157:{},158:{},159:{T:1,f:function(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:jl},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:z6},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(t,r){return{flags:t.read_shift(4),version:t.read_shift(4),name:ba(t)}}},336:{T:-1},337:{f:function(t){return t.l+=4,t.read_shift(4)!=0},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:n0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Dg},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(t,r,e){var n=t.l+r,a=Gv(t),o=t.read_shift(1),s=[a];if(s[2]=o,e.cellFormula){var i=v6(t,n-t.l,e);s[1]=i}else t.l=n;return s}},427:{f:function(t,r,e){var n=t.l+r,a=[jl(t)];if(e.cellFormula){var o=b6(t,n-t.l,e);a[1]=o,t.l=n}else t.l=n;return a}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(t){var r={};return wb.forEach(function(e){r[e]=ya(t)}),r}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(t,r){var e=t.l+r,n=jl(t),a=r0(t),o=ba(t),s=ba(t),i=ba(t);t.l=e;var u={rfx:n,relId:a,loc:o,display:i};return s&&(u.Tooltip=s),u}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:n0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:t6},633:{T:1},634:{T:-1},635:{T:1,f:function(t){var r={};r.iauthor=t.read_shift(4);var e=jl(t);return r.rfx=e.s,r.ref=on(e.s),t.l+=16,r}},636:{T:-1},637:{f:L3},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(t,r){return t.l+=10,{name:ba(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},O0={6:{f:S0},10:{f:il},12:{f:ji},13:{f:ji},14:{f:Ai},15:{f:Ai},16:{f:ya},17:{f:Ai},18:{f:Ai},19:{f:ji},20:{f:Ig},21:{f:Ig},23:{f:Dg},24:{f:Pg},25:{f:Ai},26:{},27:{},28:{f:function(t,r,e){return function(n,a,o){if(!(o.biff<8)){var s=n.read_shift(2),i=n.read_shift(2),u=n.read_shift(2),l=n.read_shift(2),f=Hl(n,0,o);return o.biff<8&&n.read_shift(1),[{r:s,c:i},f,l,u]}}(t,0,e)}},29:{},34:{f:Ai},35:{f:Ng},38:{f:ya},39:{f:ya},40:{f:ya},41:{f:ya},42:{f:Ai},43:{f:Ai},47:{f:function(t,r,e){var n={Type:e.biff>=8?t.read_shift(2):0};return n.Type?R4(t,r-2,n):function(a,o,s,i){var u={key:ji(a),verificationBytes:ji(a)};s.password&&(u.verifier=v0(s.password)),i.valid=u.verificationBytes===u.verifier,i.valid&&(i.insitu=M4(s.password))}(t,e.biff,e,n),n}},49:{f:function(t,r,e){var n={dyHeight:t.read_shift(2),fl:t.read_shift(2)};switch(e&&e.biff||8){case 2:break;case 3:case 4:t.l+=2;break;default:t.l+=10}return n.name=Zc(t,0,e),n}},51:{f:ji},60:{},61:{f:function(t){return{Pos:[t.read_shift(2),t.read_shift(2)],Dim:[t.read_shift(2),t.read_shift(2)],Flags:t.read_shift(2),CurTab:t.read_shift(2),FirstTab:t.read_shift(2),Selected:t.read_shift(2),TabRatio:t.read_shift(2)}}},64:{f:Ai},65:{f:function(){}},66:{f:ji},77:{},80:{},81:{},82:{},85:{f:ji},89:{},90:{},91:{},92:{f:function(t,r,e){if(e.enc)return t.l+=r,"";var n=t.l,a=Hl(t,0,e);return t.read_shift(r+n-t.l),a}},93:{f:function(t,r,e){if(e&&e.biff<8)return function(o,s,i){o.l+=4;var u=o.read_shift(2),l=o.read_shift(2),f=o.read_shift(2);o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=2,o.l+=6,s-=36;var c=[];return c.push((s4[u]||ga)(o,s,i)),{cmo:[l,u,f],ft:c}}(t,r,e);var n=Cg(t),a=function(o,s){for(var i=o.l+s,u=[];o.l<i;){var l=o.read_shift(2);o.l-=2;try{u.push(e4[l](o,i-o.l))}catch{return o.l=i,u}}return o.l!=i&&(o.l=i),u}(t,r-22,n[1]);return{cmo:n,ft:a}}},94:{},95:{f:Ai},96:{},97:{},99:{f:Ai},125:{f:Lg},128:{f:function(t){t.l+=4;var r=[t.read_shift(2),t.read_shift(2)];if(r[0]!==0&&r[0]--,r[1]!==0&&r[1]--,r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}},129:{f:function(t,r,e){var n=e&&e.biff==8||r==2?t.read_shift(2):(t.l+=r,0);return{fDialog:16&n,fBelow:64&n,fRight:128&n}}},130:{f:ji},131:{f:Ai},132:{f:Ai},133:{f:function(t,r,e){var n=t.read_shift(4),a=3&t.read_shift(1),o=t.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule"}var s=Zc(t,0,e);return s.length===0&&(s="Sheet1"),{pos:n,hs:a,dt:o,name:s}}},134:{},140:{f:function(t){var r,e=[0,0];return r=t.read_shift(2),e[0]=Kv[r]||r,r=t.read_shift(2),e[1]=Kv[r]||r,e}},141:{f:ji},144:{},146:{f:function(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(xg(t));return e}},151:{},152:{},153:{},154:{},155:{},156:{f:ji},157:{},158:{},160:{f:c4},161:{f:function(t,r){var e={};return r<32||(t.l+=16,e.header=ya(t),e.footer=ya(t),t.l+=2),e}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(t,r){for(var e=t.l+r-2,n=t.read_shift(2),a=t.read_shift(2),o=[];t.l<e;)o.push(Sg(t));if(t.l!==e)throw new Error("MulRK read error");var s=t.read_shift(2);if(o.length!=s-a+1)throw new Error("MulRK length mismatch");return{r:n,c:a,C:s,rkrec:o}}},190:{f:function(t,r){for(var e=t.l+r-2,n=t.read_shift(2),a=t.read_shift(2),o=[];t.l<e;)o.push(t.read_shift(2));if(t.l!==e)throw new Error("MulBlank read error");var s=t.read_shift(2);if(o.length!=s-a+1)throw new Error("MulBlank length mismatch");return{r:n,c:a,C:s,ixfe:o}}},193:{f:il},197:{},198:{},199:{},200:{},201:{},202:{f:Ai},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ji},220:{},221:{f:Ai},222:{},224:{f:function(t,r,e){var n={};return n.ifnt=t.read_shift(2),n.numFmtId=t.read_shift(2),n.flags=t.read_shift(2),n.fStyle=n.flags>>2&1,n.data=function(a,o,s,i){var u={},l=a.read_shift(4),f=a.read_shift(4),c=a.read_shift(4),h=a.read_shift(2);return u.patternType=H3[c>>26],i.cellStyles&&(u.alc=7&l,u.fWrap=l>>3&1,u.alcV=l>>4&7,u.fJustLast=l>>7&1,u.trot=l>>8&255,u.cIndent=l>>16&15,u.fShrinkToFit=l>>20&1,u.iReadOrder=l>>22&2,u.fAtrNum=l>>26&1,u.fAtrFnt=l>>27&1,u.fAtrAlc=l>>28&1,u.fAtrBdr=l>>29&1,u.fAtrPat=l>>30&1,u.fAtrProt=l>>31&1,u.dgLeft=15&f,u.dgRight=f>>4&15,u.dgTop=f>>8&15,u.dgBottom=f>>12&15,u.icvLeft=f>>16&127,u.icvRight=f>>23&127,u.grbitDiag=f>>30&3,u.icvTop=127&c,u.icvBottom=c>>7&127,u.icvDiag=c>>14&127,u.dgDiag=c>>21&15,u.icvFore=127&h,u.icvBack=h>>7&127,u.fsxButton=h>>14&1),u}(t,0,n.fStyle,e),n}},225:{f:function(t,r){return r===0||t.read_shift(2),1200}},226:{f:il},227:{},229:{f:function(t,r){for(var e=[],n=t.read_shift(2);n--;)e.push(Lh(t));return e}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(t,r){for(var e=t.l+r,n=t.read_shift(4),a=t.read_shift(4),o=[],s=0;s!=a&&t.l<e;++s)o.push(K3(t));return o.Count=n,o.Unique=a,o}},253:{f:function(t){var r=to(t);return r.isst=t.read_shift(4),r}},255:{f:function(t,r){var e={};return e.dsst=t.read_shift(2),t.l+=r-2,e}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:bg},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Ai},353:{f:il},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(t,r,e){var n=t.l+r,a=t.read_shift(2),o=t.read_shift(2);if(e.sbcch=o,o==1025||o==14849)return[o,a];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);for(var s=Ul(t,o),i=[];n>t.l;)i.push(Jc(t));return[o,a,s,i]}},431:{f:Ai},432:{},433:{},434:{},437:{},438:{f:function(t,r,e){var n=t.l,a="";try{t.l+=4;var o=(e.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(o)==-1?t.l+=6:function(f){var c=f.read_shift(1);f.l++;var h=f.read_shift(2);return f.l+=2,[c,h]}(t);var s=t.read_shift(2);t.read_shift(2),ji(t);var i=t.read_shift(2);t.l+=i;for(var u=1;u<t.lens.length-1;++u){if(t.l-n!=t.lens[u])throw new Error("TxO: bad continue record");var l=t[t.l];if((a+=Ul(t,t.lens[u+1]-t.lens[u]-1)).length>=(l?s:2*s))break}if(a.length!==s&&a.length!==2*s)throw new Error("cchText: "+s+" != "+a.length);return t.l=n+r,{t:a}}catch{return t.l=n+r,{t:a}}}},439:{f:Ai},440:{f:function(t,r){var e=Lh(t);t.l+=16;var n=function(a,o){var s=a.l+o,i=a.read_shift(4);if(i!==2)throw new Error("Unrecognized streamVersion: "+i);var u=a.read_shift(2);a.l+=2;var l,f,c,h,d,p,m="";16&u&&(l=Fh(a,a.l)),128&u&&(f=Fh(a,a.l)),257&~u||(c=Fh(a,a.l)),(257&u)==1&&(h=Z3(a,a.l)),8&u&&(m=Fh(a,a.l)),32&u&&(d=a.read_shift(16)),64&u&&(p=h0(a)),a.l=s;var v=f||c||h||"";v&&m&&(v+="#"+m),v||(v="#"+m),2&u&&v.charAt(0)=="/"&&v.charAt(1)!="/"&&(v="file://"+v);var b={Target:v};return d&&(b.guid=d),p&&(b.time=p),l&&(b.Tooltip=l),b}(t,r-24);return[e,n]}},441:{},442:{f:Jc},443:{},444:{f:ji},445:{},446:{},448:{f:il},449:{f:function(t){return t.read_shift(2),t.read_shift(4)},r:2},450:{f:il},512:{f:Mg},513:{f:u4},515:{f:function(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=to(t),a=ya(t);return n.val=a,n}},516:{f:function(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5),t.l;var n=to(t);e.biff==2&&t.l++;var a=Jc(t,t.l,e);return n.val=a,n}},517:{f:Og},519:{f:f4},520:{f:function(t){var r={};r.r=t.read_shift(2),r.c=t.read_shift(2),r.cnt=t.read_shift(2)-r.c;var e=t.read_shift(2);t.l+=4;var n=t.read_shift(1);return t.l+=3,7&n&&(r.level=7&n),32&n&&(r.hidden=!0),64&n&&(r.hpt=e/20),r}},523:{},545:{f:Fg},549:{f:Ag},566:{},574:{f:function(t,r,e){return e&&e.biff>=2&&e.biff<5?{}:{RTL:64&t.read_shift(2)}}},638:{f:function(t){var r=t.read_shift(2),e=t.read_shift(2),n=Sg(t);return{r,c:e,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(t,r,e){return[t.read_shift(2),Hl(t,0,e)]}},1084:{},1212:{f:function(t,r,e){var n=Eg(t);t.l++;var a=t.read_shift(1);return[p6(t,r-=8,e),a,n]}},2048:{f:function(t,r){t.read_shift(2);var e=Lh(t),n=t.read_shift((r-10)/2,"dbcs-cont");return[e,n=n.replace(Da,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Bh},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:il},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(t){t.l+=2;var r={cxfs:0,crc:0};return r.cxfs=t.read_shift(2),r.crc=t.read_shift(4),r},r:12},2173:{f:function(t,r){t.l,t.l+=2;var e=t.read_shift(2);t.l+=2;for(var n=t.read_shift(2),a=[];n-- >0;)a.push(Z4(t,t.l));return{ixfe:e,ext:a}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Ai,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(t,r,e){if(!(e.biff<8)){var n=t.read_shift(2),a=t.read_shift(2);return[Ul(t,n,e),Ul(t,a,e)]}t.l+=r},r:12},2197:{},2198:{f:function(t,r,e){var n=t.l+r;if(t.read_shift(4)!==124226)if(e.cellStyles){var a,o=t.slice(t.l);t.l=n;try{a=uv(o,{type:"array"})}catch{return}var s=ns(a,"theme/theme/theme1.xml",!0);if(s)return Zg(s,e)}else t.l=n},r:12},2199:{},2200:{},2201:{},2202:{f:function(t){return[t.read_shift(4)!==0,t.read_shift(4)!==0,t.read_shift(4)]},r:12},2203:{f:il},2204:{},2205:{},2206:{},2207:{},2211:{f:function(t){var r=function(e){var n=e.read_shift(2),a=e.read_shift(2);return e.l+=8,{type:n,flags:a}}(t);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);return t.read_shift(4)!==0}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ji},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(t,r,e){var n={area:!1};if(e.biff!=5)return t.l+=r,n;var a=t.read_shift(1);return t.l+=3,16&a&&(n.area=!0),n}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(xg(t));return e}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Mg},1:{},2:{f:function(t){var r=to(t);++t.l;var e=t.read_shift(2);return r.t="n",r.val=e,r}},3:{f:function(t){var r=to(t);++t.l;var e=ya(t);return r.t="n",r.val=e,r}},4:{f:function(t,r,e){e.biffguess&&e.biff==5&&(e.biff=2);var n=to(t);++t.l;var a=Hl(t,0,e);return n.t="str",n.val=a,n}},5:{f:Og},7:{f:function(t){var r=t.read_shift(1);return r===0?(t.l++,""):t.read_shift(r,"sbcs-cont")}},8:{},9:{f:Bh},11:{},22:{f:ji},30:{f:i4},31:{},32:{},33:{f:Fg},36:{},37:{f:Ag},50:{f:function(t,r){t.l+=6,t.l+=2,t.l+=1,t.l+=3,t.l+=1,t.l+=r-13}},62:{},52:{},67:{},68:{f:ji},69:{},86:{},126:{},127:{f:function(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),a={fmt:r,env:e,len:n,data:t.slice(t.l,t.l+n)};return t.l+=n,a}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(t,r,e){var n=t.l+r,a=to(t),o=t.read_shift(2),s=Ul(t,o,e);return t.l=n,a.t="str",a.val=s,a}},223:{},234:{},354:{},421:{},518:{f:S0},521:{f:Bh},536:{f:Pg},547:{f:Ng},561:{},579:{},1030:{f:S0},1033:{f:Bh},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function br(t,r,e,n){var a=r;if(!isNaN(a)){var o=n||(e||[]).length||0,s=t.next(4);s.write_shift(2,a),s.write_shift(2,o),o>0&&Qp(e)&&t.push(e)}}function hf(t,r,e){return t||(t=Me(7)),t.write_shift(2,r),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function P5(t,r,e,n){if(r.v!=null)switch(r.t){case"d":case"n":var a=r.t=="d"?aa(di(r.v)):r.v;return void(a==(0|a)&&a>=0&&a<65536?br(t,2,(o=e,s=n,i=a,u=Me(9),hf(u,o,s),u.write_shift(2,i),u)):br(t,3,function(l,f,c){var h=Me(15);return hf(h,l,f),h.write_shift(8,c,"f"),h}(e,n,a)));case"b":case"e":return void br(t,5,function(l,f,c,h){var d=Me(9);return hf(d,l,f),yg(c,h||"b",d),d}(e,n,r.v,r.t));case"s":case"str":return void br(t,4,function(l,f,c){var h=Me(8+2*c.length);return hf(h,l,f),h.write_shift(1,c.length),h.write_shift(c.length,c,"sbcs"),h.l<h.length?h.slice(0,h.l):h}(e,n,(r.v||"").slice(0,255)))}var o,s,i,u;br(t,1,hf(null,e,n))}function D5(t,r){for(var e=r||{},n=qa(),a=0,o=0;o<t.SheetNames.length;++o)t.SheetNames[o]==e.sheet&&(a=o);if(a==0&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return br(n,e.biff==4?1033:e.biff==3?521:9,d0(0,16,e)),function(s,i,u,l){var f,c=Array.isArray(i),h=Un(i["!ref"]||"A1"),d="",p=[];if(h.e.c>255||h.e.r>16383){if(l.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,16383),f=Tn(h)}for(var m=h.s.r;m<=h.e.r;++m){d=Qi(m);for(var v=h.s.c;v<=h.e.c;++v){m===h.s.r&&(p[v]=Bi(v)),f=p[v]+d;var b=c?(i[m]||[])[v]:i[f];b&&P5(s,b,m,v)}}}(n,t.Sheets[t.SheetNames[a]],0,e),br(n,10),n.end()}function F5(t,r,e){br(t,49,function(n,a){var o=n.name||"Arial",s=a&&a.biff==5,i=Me(s?15+o.length:16+2*o.length);return i.write_shift(2,20*n.sz),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,o.length),s||i.write_shift(1,1),i.write_shift((s?1:2)*o.length,o,s?"sbcs":"utf16le"),i}({sz:12,name:"Arial"},e))}function L5(t,r){if(r){var e=0;r.forEach(function(n,a){++e<=256&&n&&br(t,125,function(o,s){var i=Me(12);i.write_shift(2,s),i.write_shift(2,s),i.write_shift(2,256*o.width),i.write_shift(2,0);var u=0;return o.hidden&&(u|=1),i.write_shift(1,u),u=o.level||0,i.write_shift(1,u),i.write_shift(2,0),i}($h(a,n),a))})}}function B5(t,r,e,n,a){var o=16+ol(a.cellXfs,r,a);if(r.v!=null||r.bf)if(r.bf)br(t,6,m6(r,e,n,0,o));else switch(r.t){case"d":case"n":br(t,515,function(s,i,u,l){var f=Me(14);return Wl(s,i,l,f),Iu(u,f),f}(e,n,r.t=="d"?aa(di(r.v)):r.v,o));break;case"b":case"e":br(t,517,function(s,i,u,l,f,c){var h=Me(8);return Wl(s,i,l,h),yg(u,c,h),h}(e,n,r.v,o,0,r.t));break;case"s":case"str":a.bookSST?br(t,253,function(s,i,u,l){var f=Me(10);return Wl(s,i,l,f),f.write_shift(4,u),f}(e,n,E0(a.Strings,r.v,a.revStrings),o)):br(t,516,function(s,i,u,l,f){var c=!f||f.biff==8,h=Me(+c+8+(1+c)*u.length);return Wl(s,i,l,h),h.write_shift(2,u.length),c&&h.write_shift(1,1),h.write_shift((1+c)*u.length,u,c?"utf16le":"sbcs"),h}(e,n,(r.v||"").slice(0,255),o,a));break;default:br(t,513,Wl(e,n,o))}else br(t,513,Wl(e,n,o))}function j5(t,r,e){var n,a,o,s=qa(),i=e.SheetNames[t],u=e.Sheets[i]||{},l=(e||{}).Workbook||{},f=(l.Sheets||[])[t]||{},c=Array.isArray(u),h=r.biff==8,d="",p=[],m=Un(u["!ref"]||"A1"),v=h?65536:16384;if(m.e.c>255||m.e.r>=v){if(r.WTF)throw new Error("Range "+(u["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,v-1)}br(s,2057,d0(0,16,r)),br(s,13,ws(1)),br(s,12,ws(100)),br(s,15,La(!0)),br(s,17,La(!1)),br(s,16,Iu(.001)),br(s,95,La(!0)),br(s,42,La(!1)),br(s,43,La(!1)),br(s,130,ws(1)),br(s,128,(a=[0,0],(o=Me(8)).write_shift(4,0),o.write_shift(2,a[0]?a[0]+1:0),o.write_shift(2,a[1]?a[1]+1:0),o)),br(s,131,La(!1)),br(s,132,La(!1)),h&&L5(s,u["!cols"]),br(s,512,function(S,C){var O=C.biff!=8&&C.biff?2:4,L=Me(2*O+6);return L.write_shift(O,S.s.r),L.write_shift(O,S.e.r+1),L.write_shift(2,S.s.c),L.write_shift(2,S.e.c+1),L.write_shift(2,0),L}(m,r)),h&&(u["!links"]=[]);for(var b=m.s.r;b<=m.e.r;++b){d=Qi(b);for(var g=m.s.c;g<=m.e.c;++g){b===m.s.r&&(p[g]=Bi(g)),n=p[g]+d;var y=c?(u[b]||[])[g]:u[n];y&&(B5(s,y,b,g,r),h&&y.l&&u["!links"].push([n,y.l]))}}var k=f.CodeName||f.name||i;return h&&br(s,574,function(S){var C=Me(18),O=1718;return S&&S.RTL&&(O|=64),C.write_shift(2,O),C.write_shift(4,0),C.write_shift(4,64),C.write_shift(4,0),C.write_shift(4,0),C}((l.Views||[])[0])),h&&(u["!merges"]||[]).length&&br(s,229,function(S){var C=Me(2+8*S.length);C.write_shift(2,S.length);for(var O=0;O<S.length;++O)Tg(S[O],C);return C}(u["!merges"])),h&&function(S,C){for(var O=0;O<C["!links"].length;++O){var L=C["!links"][O];br(S,440,o4(L)),L[1].Tooltip&&br(S,2048,l4(L))}delete C["!links"]}(s,u),br(s,442,wg(k)),h&&function(S,C){var O=Me(19);O.write_shift(4,2151),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,1),O.write_shift(4,0),br(S,2151,O),(O=Me(39)).write_shift(4,2152),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,0),O.write_shift(4,0),O.write_shift(2,1),O.write_shift(4,4),O.write_shift(2,0),Tg(Un(C["!ref"]||"A1"),O),O.write_shift(4,4),br(S,2152,O)}(s,u),br(s,10),s.end()}function z5(t,r,e){var n,a=qa(),o=(t||{}).Workbook||{},s=o.Sheets||[],i=o.WBProps||{},u=e.biff==8,l=e.biff==5;br(a,2057,d0(0,5,e)),e.bookType=="xla"&&br(a,135),br(a,225,u?ws(1200):null),br(a,193,function(y,k){k||(k=Me(y));for(var S=0;S<y;++S)k.write_shift(1,0);return k}(2)),l&&br(a,191),l&&br(a,192),br(a,226),br(a,92,function(y,k){var S=!k||k.biff==8,C=Me(S?112:54);for(C.write_shift(k.biff==8?2:1,7),S&&C.write_shift(1,0),C.write_shift(4,859007059),C.write_shift(4,5458548|(S?0:536870912));C.l<C.length;)C.write_shift(1,S?0:32);return C}(0,e)),br(a,66,ws(u?1200:1252)),u&&br(a,353,ws(0)),u&&br(a,448),br(a,317,function(y){for(var k=Me(2*y),S=0;S<y;++S)k.write_shift(2,S+1);return k}(t.SheetNames.length)),u&&t.vbaraw&&br(a,211),u&&t.vbaraw&&br(a,442,wg(i.CodeName||"ThisWorkbook")),br(a,156,ws(17)),br(a,25,La(!1)),br(a,18,La(!1)),br(a,19,ws(0)),u&&br(a,431,La(!1)),u&&br(a,444,ws(0)),br(a,61,((n=Me(18)).write_shift(2,0),n.write_shift(2,0),n.write_shift(2,29280),n.write_shift(2,17600),n.write_shift(2,56),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,1),n.write_shift(2,500),n)),br(a,64,La(!1)),br(a,141,ws(0)),br(a,34,La(function(y){return y.Workbook&&y.Workbook.WBProps&&li(y.Workbook.WBProps.date1904)?"true":"false"}(t)=="true")),br(a,14,La(!0)),u&&br(a,439,La(!1)),br(a,218,ws(0)),F5(a,0,e),function(y,k,S){k&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(C){for(var O=C[0];O<=C[1];++O)k[O]!=null&&br(y,1054,n4(O,k[O],S))})}(a,t.SSF,e),function(y,k){for(var S=0;S<16;++S)br(y,224,Rg({numFmtId:0,style:!0},0,k));k.cellXfs.forEach(function(C){br(y,224,Rg(C,0,k))})}(a,e),u&&br(a,352,La(!1));var f=a.end(),c=qa();u&&br(c,140,function(y){return y||(y=Me(4)),y.write_shift(2,1),y.write_shift(2,1),y}()),u&&e.Strings&&function(y,k,S,C){var O=(S||[]).length||0;if(O<=8224)return br(y,k,S,O);var L=k;if(!isNaN(L)){for(var j=S.parts||[],U=0,z=0,Y=0;Y+(j[U]||8224)<=8224;)Y+=j[U]||8224,U++;var A=y.next(4);for(A.write_shift(2,L),A.write_shift(2,Y),y.push(S.slice(z,z+Y)),z+=Y;z<O;){for((A=y.next(4)).write_shift(2,60),Y=0;Y+(j[U]||8224)<=8224;)Y+=j[U]||8224,U++;A.write_shift(2,Y),y.push(S.slice(z,z+Y)),z+=Y}}}(c,252,function(y){var k=Me(8);k.write_shift(4,y.Count),k.write_shift(4,y.Unique);for(var S=[],C=0;C<y.length;++C)S[C]=X3(y[C]);var O=Ji([k].concat(S));return O.parts=[k.length].concat(S.map(function(L){return L.length})),O}(e.Strings)),br(c,10);var h=c.end(),d=qa(),p=0,m=0;for(m=0;m<t.SheetNames.length;++m)p+=(u?12:11)+(u?2:1)*t.SheetNames[m].length;var v=f.length+p+h.length;for(m=0;m<t.SheetNames.length;++m)br(d,133,r4({pos:v,hs:(s[m]||{}).Hidden||0,dt:0,name:t.SheetNames[m]},e)),v+=r[m].length;var b=d.end();if(p!=b.length)throw new Error("BS8 "+p+" != "+b.length);var g=[];return f.length&&g.push(f),b.length&&g.push(b),h.length&&g.push(h),Ji(g)}function Ib(t,r){for(var e=0;e<=t.SheetNames.length;++e){var n=t.Sheets[t.SheetNames[e]];n&&n["!ref"]&&gs(n["!ref"]).e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var a=r||{};switch(a.biff||2){case 8:case 5:return function(o,s){var i=s||{},u=[];o&&!o.SSF&&(o.SSF=oi(Qr)),o&&o.SSF&&(Mu(),Sh(o.SSF),i.revssf=Eh(o.SSF),i.revssf[o.SSF[65535]]=0,i.ssf=o.SSF),i.Strings=[],i.Strings.Count=0,i.Strings.Unique=0,B0(i),i.cellXfs=[],ol(i.cellXfs,{},{revssf:{General:0}}),o.Props||(o.Props={});for(var l=0;l<o.SheetNames.length;++l)u[u.length]=j5(l,i,o);return u.unshift(z5(o,u,i)),Ji(u)}(t,r);case 4:case 3:case 2:return D5(t,r)}throw new Error("invalid type "+a.bookType+" for BIFF")}function Nb(t,r){var e=r||{},n=e.dense?[]:{},a=(t=t.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!a)throw new Error("Invalid HTML: could not find <table>");var o=t.match(/<\/table/i),s=a.index,i=o&&o.index||t.length,u=o3(t.slice(s,i),/(:?<tr[^>]*>)/i,"<tr>"),l=-1,f=0,c=0,h=0,d={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(s=0;s<u.length;++s){var m=u[s].trim(),v=m.slice(0,3).toLowerCase();if(v!="<tr"){if(v=="<td"||v=="<th"){var b=m.split(/<\/t[dh]>/i);for(i=0;i<b.length;++i){var g=b[i].trim();if(g.match(/<t[dh]/i)){for(var y=g,k=0;y.charAt(0)=="<"&&(k=y.indexOf(">"))>-1;)y=y.slice(k+1);for(var S=0;S<p.length;++S){var C=p[S];C.s.c==f&&C.s.r<l&&l<=C.e.r&&(f=C.e.c+1,S=-1)}var O=en(g.slice(0,g.indexOf(">")));h=O.colspan?+O.colspan:1,((c=+O.rowspan)>1||h>1)&&p.push({s:{r:l,c:f},e:{r:l+(c||1)-1,c:f+h-1}});var L=O.t||O["data-t"]||"";if(y.length)if(y=d3(y),d.s.r>l&&(d.s.r=l),d.e.r<l&&(d.e.r=l),d.s.c>f&&(d.s.c=f),d.e.c<f&&(d.e.c=f),y.length){var j={t:"s",v:y};e.raw||!y.trim().length||L=="s"||(y==="TRUE"?j={t:"b",v:!0}:y==="FALSE"?j={t:"b",v:!1}:isNaN(Eo(y))?isNaN(jc(y).getDate())||(j={t:"d",v:di(y)},e.cellDates||(j={t:"n",v:aa(j.v)}),j.z=e.dateNF||Qr[14]):j={t:"n",v:Eo(y)}),e.dense?(n[l]||(n[l]=[]),n[l][f]=j):n[on({r:l,c:f})]=j,f+=h}else f+=h;else f+=h}}}}else{if(++l,e.sheetRows&&e.sheetRows<=l){--l;break}f=0}}return n["!ref"]=Tn(d),p.length&&(n["!merges"]=p),n}function U5(t,r,e,n){for(var a=t["!merges"]||[],o=[],s=r.s.c;s<=r.e.c;++s){for(var i=0,u=0,l=0;l<a.length;++l)if(!(a[l].s.r>e||a[l].s.c>s||a[l].e.r<e||a[l].e.c<s)){if(a[l].s.r<e||a[l].s.c<s){i=-1;break}i=a[l].e.r-a[l].s.r+1,u=a[l].e.c-a[l].s.c+1;break}if(!(i<0)){var f=on({r:e,c:s}),c=n.dense?(t[e]||[])[s]:t[f],h=c&&c.v!=null&&(c.h||qp(c.w||(nl(c),c.w)||""))||"",d={};i>1&&(d.rowspan=i),u>1&&(d.colspan=u),n.editable?h='<span contenteditable="true">'+h+"</span>":c&&(d["data-t"]=c&&c.t||"z",c.v!=null&&(d["data-v"]=c.v),c.z!=null&&(d["data-z"]=c.z),c.l&&(c.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+c.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+f,o.push(vr("td",h,d))}}return"<tr>"+o.join("")+"</tr>"}var H5={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Pb(t,r){var e,n,a,o,s,i,u,l,f=r||{},c=Kp(t),h=[],d={name:""},p="",m=0,v={},b=[],g=f.dense?[]:{},y={value:""},k="",S=0,C=[],O=-1,L=-1,j={s:{r:1e6,c:1e7},e:{r:0,c:0}},U=0,z={},Y=[],A={},I=[],_=1,x=1,T=[],E={Names:[]},M={},F=["",""],P=[],W={},N="",q=0,nt=!1,J=!1,St=0;for(Wc.lastIndex=0,c=c.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");s=Wc.exec(c);)switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":s[1]==="/"?(j.e.c>=j.s.c&&j.e.r>=j.s.r?g["!ref"]=Tn(j):g["!ref"]="A1:A1",f.sheetRows>0&&f.sheetRows<=j.e.r&&(g["!fullref"]=g["!ref"],j.e.r=f.sheetRows-1,g["!ref"]=Tn(j)),Y.length&&(g["!merges"]=Y),I.length&&(g["!rows"]=I),a.name=a.名称||a.name,typeof JSON<"u"&&JSON.stringify(a),b.push(a.name),v[a.name]=g,J=!1):s[0].charAt(s[0].length-2)!=="/"&&(a=en(s[0],!1),O=L=-1,j.s.r=j.s.c=1e7,j.e.r=j.e.c=0,g=f.dense?[]:{},Y=[],I=[],J=!0);break;case"table-row-group":s[1]==="/"?--U:++U;break;case"table-row":case"行":if(s[1]==="/"){O+=_,_=1;break}if((o=en(s[0],!1)).行号?O=o.行号-1:O==-1&&(O=0),(_=+o["number-rows-repeated"]||1)<10)for(St=0;St<_;++St)U>0&&(I[O+St]={level:U});L=-1;break;case"covered-table-cell":s[1]!=="/"&&++L,f.sheetStubs&&(f.dense?(g[O]||(g[O]=[]),g[O][L]={t:"z"}):g[on({r:O,c:L})]={t:"z"}),k="",C=[];break;case"table-cell":case"数据":if(s[0].charAt(s[0].length-2)==="/")++L,y=en(s[0],!1),x=parseInt(y["number-columns-repeated"]||"1",10),i={t:"z",v:null},y.formula&&f.cellFormula!=0&&(i.f=mb(Fn(y.formula))),(y.数据类型||y["value-type"])=="string"&&(i.t="s",i.v=Fn(y["string-value"]||""),f.dense?(g[O]||(g[O]=[]),g[O][L]=i):g[on({r:O,c:L})]=i),L+=x-1;else if(s[1]!=="/"){k="",S=0,C=[],x=1;var kt=_?O+_-1:O;if(++L>j.e.c&&(j.e.c=L),L<j.s.c&&(j.s.c=L),O<j.s.r&&(j.s.r=O),kt>j.e.r&&(j.e.r=kt),P=[],W={},i={t:(y=en(s[0],!1)).数据类型||y["value-type"],v:null},f.cellFormula)if(y.formula&&(y.formula=Fn(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(A={s:{r:O,c:L},e:{r:O+(parseInt(y["number-matrix-rows-spanned"],10)||0)-1,c:L+(parseInt(y["number-matrix-columns-spanned"],10)||0)-1}},i.F=Tn(A),T.push([A,i.F])),y.formula)i.f=mb(y.formula);else for(St=0;St<T.length;++St)O>=T[St][0].s.r&&O<=T[St][0].e.r&&L>=T[St][0].s.c&&L<=T[St][0].e.c&&(i.F=T[St][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(A={s:{r:O,c:L},e:{r:O+(parseInt(y["number-rows-spanned"],10)||0)-1,c:L+(parseInt(y["number-columns-spanned"],10)||0)-1}},Y.push(A)),y["number-columns-repeated"]&&(x=parseInt(y["number-columns-repeated"],10)),i.t){case"boolean":i.t="b",i.v=li(y["boolean-value"]);break;case"float":case"percentage":case"currency":i.t="n",i.v=parseFloat(y.value);break;case"date":i.t="d",i.v=di(y["date-value"]),f.cellDates||(i.t="n",i.v=aa(i.v)),i.z="m/d/yy";break;case"time":i.t="n",i.v=i3(y["time-value"])/86400,f.cellDates&&(i.t="d",i.v=Ah(i.v)),i.z="HH:MM:SS";break;case"number":i.t="n",i.v=parseFloat(y.数据数值);break;default:if(i.t!=="string"&&i.t!=="text"&&i.t)throw new Error("Unsupported value type "+i.t);i.t="s",y["string-value"]!=null&&(k=Fn(y["string-value"]),C=[])}}else{if(nt=!1,i.t==="s"&&(i.v=k||"",C.length&&(i.R=C),nt=S==0),M.Target&&(i.l=M),P.length>0&&(i.c=P,P=[]),k&&f.cellText!==!1&&(i.w=k),nt&&(i.t="z",delete i.v),(!nt||f.sheetStubs)&&!(f.sheetRows&&f.sheetRows<=O))for(var Mt=0;Mt<_;++Mt){if(x=parseInt(y["number-columns-repeated"]||"1",10),f.dense)for(g[O+Mt]||(g[O+Mt]=[]),g[O+Mt][L]=Mt==0?i:oi(i);--x>0;)g[O+Mt][L+x]=oi(i);else for(g[on({r:O+Mt,c:L})]=i;--x>0;)g[on({r:O+Mt,c:L+x})]=oi(i);j.e.c<=L&&(j.e.c=L)}L+=(x=parseInt(y["number-columns-repeated"]||"1",10))-1,x=0,i={},k="",C=[]}M={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(s[1]==="/"){if((e=h.pop())[0]!==s[3])throw"Bad state: "+e}else s[0].charAt(s[0].length-2)!=="/"&&h.push([s[3],!0]);break;case"annotation":if(s[1]==="/"){if((e=h.pop())[0]!==s[3])throw"Bad state: "+e;W.t=k,C.length&&(W.R=C),W.a=N,P.push(W)}else s[0].charAt(s[0].length-2)!=="/"&&h.push([s[3],!1]);N="",q=0,k="",S=0,C=[];break;case"creator":s[1]==="/"?N=c.slice(q,s.index):q=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(s[1]==="/"){if((e=h.pop())[0]!==s[3])throw"Bad state: "+e}else s[0].charAt(s[0].length-2)!=="/"&&h.push([s[3],!1]);k="",S=0,C=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(s[1]==="/"){if(z[d.name]=p,(e=h.pop())[0]!==s[3])throw"Bad state: "+e}else s[0].charAt(s[0].length-2)!=="/"&&(p="",d=en(s[0],!1),h.push([s[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":n=en(s[0],!1),p+=H5[s[3]][n.style==="long"?1:0]}break;case"text":if(s[0].slice(-2)==="/>")break;if(s[1]==="/")switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":p+=c.slice(m,s.index)}else m=s.index+s[0].length;break;case"named-range":F=T0((n=en(s[0],!1))["cell-range-address"]);var at={Name:n.name,Ref:F[0]+"!"+F[1]};J&&(at.Sheet=b.length),E.Names.push(at);break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if(s[1]!=="/"||y&&y["string-value"])en(s[0],!1),S=s.index+s[0].length;else{var K=(u=c.slice(S,s.index),l=void 0,l=u.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(st,Nt){return Array(parseInt(Nt,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,` |
|
|
`),[Fn(l.replace(/<[^>]*>/g,""))]);k=(k.length>0?k+` |
|
|
`:"")+K[0]}break;case"database-range":if(s[1]==="/")break;try{v[(F=T0(en(s[0])["target-range-address"]))[0]]["!autofilter"]={ref:F[1]}}catch{}break;case"a":if(s[1]!=="/"){if(!(M=en(s[0],!1)).href)break;M.Target=Fn(M.href),delete M.href,M.Target.charAt(0)=="#"&&M.Target.indexOf(".")>-1?(F=T0(M.Target.slice(1)),M.Target="#"+F[0]+"!"+F[1]):M.Target.match(/^\.\.[\\\/]/)&&(M.Target=M.Target.slice(3))}break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(f.WTF)throw new Error(s)}}var it={Sheets:v,SheetNames:b,Workbook:E};return f.bookSheets&&delete it.Sheets,it}function Db(t,r){r=r||{},vs(t,"META-INF/manifest.xml")&&function(a,o){for(var s,i,u=Kp(a);s=Wc.exec(u);)switch(s[3]){case"manifest":break;case"file-entry":if((i=en(s[0],!1)).path=="/"&&i.type!=="application/vnd.oasis.opendocument.spreadsheet")throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(o&&o.WTF)throw s}}(Li(t,"META-INF/manifest.xml"),r);var e=ns(t,"content.xml");if(!e)throw new Error("Missing content.xml in ODS / UOF file");var n=Pb(Xn(e),r);return vs(t,"meta.xml")&&(n.Props=tg(Li(t,"meta.xml"))),n}function Fb(t,r){return Pb(t,r)}var W5=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+Hc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Ci+r}}(),Lb=function(){var t=` <table:table-cell /> |
|
|
`,r=function(e,n,a){var o=[];o.push(' <table:table table:name="'+qn(n.SheetNames[a])+`" table:style-name="ta1"> |
|
|
`);var s=0,i=0,u=gs(e["!ref"]||"A1"),l=e["!merges"]||[],f=0,c=Array.isArray(e);if(e["!cols"])for(i=0;i<=u.e.c;++i)o.push(" <table:table-column"+(e["!cols"][i]?' table:style-name="co'+e["!cols"][i].ods+'"':"")+`></table:table-column> |
|
|
`);var h="",d=e["!rows"]||[];for(s=0;s<u.s.r;++s)h=d[s]?' table:style-name="ro'+d[s].ods+'"':"",o.push(" <table:table-row"+h+`></table:table-row> |
|
|
`);for(;s<=u.e.r;++s){for(h=d[s]?' table:style-name="ro'+d[s].ods+'"':"",o.push(" <table:table-row"+h+`> |
|
|
`),i=0;i<u.s.c;++i)o.push(t);for(;i<=u.e.c;++i){var p=!1,m={},v="";for(f=0;f!=l.length;++f)if(!(l[f].s.c>i||l[f].s.r>s||l[f].e.c<i||l[f].e.r<s)){l[f].s.c==i&&l[f].s.r==s||(p=!0),m["table:number-columns-spanned"]=l[f].e.c-l[f].s.c+1,m["table:number-rows-spanned"]=l[f].e.r-l[f].s.r+1;break}if(p)o.push(` <table:covered-table-cell/> |
|
|
`);else{var b=on({r:s,c:i}),g=c?(e[s]||[])[i]:e[b];if(g&&g.f&&(m["table:formula"]=qn(("of:="+g.f.replace(_0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),g.F&&g.F.slice(0,b.length)==b)){var y=gs(g.F);m["table:number-matrix-columns-spanned"]=y.e.c-y.s.c+1,m["table:number-matrix-rows-spanned"]=y.e.r-y.s.r+1}if(g){switch(g.t){case"b":v=g.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=g.v?"true":"false";break;case"n":v=g.w||String(g.v||0),m["office:value-type"]="float",m["office:value"]=g.v||0;break;case"s":case"str":v=g.v==null?"":g.v,m["office:value-type"]="string";break;case"d":v=g.w||di(g.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=di(g.v).toISOString(),m["table:style-name"]="ce1";break;default:o.push(t);continue}var k=qn(v).replace(/ +/g,function(C){return'<text:s text:c="'+C.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(g.l&&g.l.Target){var S=g.l.Target;(S=S.charAt(0)=="#"?"#"+S.slice(1).replace(/\./,"!"):S).charAt(0)=="#"||S.match(/^\w+:/)||(S="../"+S),k=vr("text:a",k,{"xlink:href":S.replace(/&/g,"&")})}o.push(" "+vr("table:table-cell",vr("text:p",k,{}),m)+` |
|
|
`)}else o.push(t)}}o.push(` </table:table-row> |
|
|
`)}return o.push(` </table:table> |
|
|
`),o.join("")};return function(e,n){var a=[Ci],o=Hc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),s=Hc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});n.bookType=="fods"?(a.push("<office:document"+o+s+`> |
|
|
`),a.push(Qv().replace(/office:document-meta/g,"office:meta"))):a.push("<office:document-content"+o+`> |
|
|
`),function(u,l){u.push(` <office:automatic-styles> |
|
|
`),u.push(` <number:date-style style:name="N37" number:automatic-order="true"> |
|
|
`),u.push(` <number:month number:style="long"/> |
|
|
`),u.push(` <number:text>/</number:text> |
|
|
`),u.push(` <number:day number:style="long"/> |
|
|
`),u.push(` <number:text>/</number:text> |
|
|
`),u.push(` <number:year/> |
|
|
`),u.push(` </number:date-style> |
|
|
`);var f=0;l.SheetNames.map(function(h){return l.Sheets[h]}).forEach(function(h){if(h&&h["!cols"]){for(var d=0;d<h["!cols"].length;++d)if(h["!cols"][d]){var p=h["!cols"][d];if(p.width==null&&p.wpx==null&&p.wch==null)continue;al(p),p.ods=f;var m=h["!cols"][d].wpx+"px";u.push(' <style:style style:name="co'+f+`" style:family="table-column"> |
|
|
`),u.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+m+`"/> |
|
|
`),u.push(` </style:style> |
|
|
`),++f}}});var c=0;l.SheetNames.map(function(h){return l.Sheets[h]}).forEach(function(h){if(h&&h["!rows"]){for(var d=0;d<h["!rows"].length;++d)if(h["!rows"][d]){h["!rows"][d].ods=c;var p=h["!rows"][d].hpx+"px";u.push(' <style:style style:name="ro'+c+`" style:family="table-row"> |
|
|
`),u.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/> |
|
|
`),u.push(` </style:style> |
|
|
`),++c}}}),u.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1"> |
|
|
`),u.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/> |
|
|
`),u.push(` </style:style> |
|
|
`),u.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/> |
|
|
`),u.push(` </office:automatic-styles> |
|
|
`)}(a,e),a.push(` <office:body> |
|
|
`),a.push(` <office:spreadsheet> |
|
|
`);for(var i=0;i!=e.SheetNames.length;++i)a.push(r(e.Sheets[e.SheetNames[i]],e,i));return a.push(` </office:spreadsheet> |
|
|
`),a.push(` </office:body> |
|
|
`),n.bookType=="fods"?a.push("</office:document>"):a.push("</office:document-content>"),a.join("")}}();function Bb(t,r){if(r.bookType=="fods")return Lb(t,r);var e=Wp(),n="",a=[],o=[];return mn(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),mn(e,n="content.xml",Lb(t,r)),a.push([n,"text/xml"]),o.push([n,"ContentFile"]),mn(e,n="styles.xml",W5(t,r)),a.push([n,"text/xml"]),o.push([n,"StylesFile"]),mn(e,n="meta.xml",Ci+Qv()),a.push([n,"text/xml"]),o.push([n,"MetadataFile"]),mn(e,n="manifest.rdf",function(s){var i,u,l=[Ci];l.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
|
|
`);for(var f=0;f!=s.length;++f)l.push(Jv(s[f][0],s[f][1])),l.push((i="",u=s[f][0],[' <rdf:Description rdf:about="'+i+`"> |
|
|
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+u+`"/> |
|
|
`,` </rdf:Description> |
|
|
`].join("")));return l.push(Jv("","Document","pkg")),l.push("</rdf:RDF>"),l.join("")}(o)),a.push([n,"application/rdf+xml"]),mn(e,n="META-INF/manifest.xml",function(s){var i=[Ci];i.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2"> |
|
|
`),i.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/> |
|
|
`);for(var u=0;u<s.length;++u)i.push(' <manifest:file-entry manifest:full-path="'+s[u][0]+'" manifest:media-type="'+s[u][1]+`"/> |
|
|
`);return i.push("</manifest:manifest>"),i.join("")}(a)),e}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ql(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function I0(t){return typeof TextDecoder<"u"?new TextDecoder().decode(t):Xn(el(t))}function V5(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):rs(Qs(t))}function ll(t){var r=t.reduce(function(a,o){return a+o.length},0),e=new Uint8Array(r),n=0;return t.forEach(function(a){e.set(a,n),n+=a.length}),e}function jb(t){return 16843009*((t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135)>>>24}function df(t,r){var e=r?r[0]:0,n=127&t[e];t:if(t[e++]>=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break t;return r&&(r[0]=e),n}function Yn(t){var r=new Uint8Array(7);r[0]=127&t;var e=1;t:if(t>127){if(r[e-1]|=128,r[e]=t>>7&127,++e,t<=16383||(r[e-1]|=128,r[e]=t>>14&127,++e,t<=2097151)||(r[e-1]|=128,r[e]=t>>21&127,++e,t<=268435455)||(r[e-1]|=128,r[e]=t/256>>>21&127,++e,t<=34359738367)||(r[e-1]|=128,r[e]=t/65536>>>21&127,++e,t<=4398046511103))break t;r[e-1]|=128,r[e]=t/16777216>>>21&127,++e}return r.slice(0,e)}function wi(t){var r=0,e=127&t[r];t:if(t[r++]>=128){if(e|=(127&t[r])<<7,t[r++]<128||(e|=(127&t[r])<<14,t[r++]<128)||(e|=(127&t[r])<<21,t[r++]<128))break t;e|=(127&t[r])<<28}return e}function Ln(t){for(var r=[],e=[0];e[0]<t.length;){var n,a=e[0],o=df(t,e),s=7&o,i=0;if((o=Math.floor(o/8))==0)break;switch(s){case 0:for(var u=e[0];t[e[0]++]>=128;);n=t.slice(u,e[0]);break;case 5:i=4,n=t.slice(e[0],e[0]+i),e[0]+=i;break;case 1:i=8,n=t.slice(e[0],e[0]+i),e[0]+=i;break;case 2:i=df(t,e),n=t.slice(e[0],e[0]+i),e[0]+=i;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(o," at offset ").concat(a))}var l={data:n,type:s};r[o]==null?r[o]=[l]:r[o].push(l)}return r}function la(t){var r=[];return t.forEach(function(e,n){e.forEach(function(a){a.data&&(r.push(Yn(8*n+a.type)),a.type==2&&r.push(Yn(a.data.length)),r.push(a.data))})}),ll(r)}function N0(t,r){return(t==null?void 0:t.map(function(e){return r(e.data)}))||[]}function _s(t){for(var r,e=[],n=[0];n[0]<t.length;){var a=df(t,n),o=Ln(t.slice(n[0],n[0]+a));n[0]+=a;var s={id:wi(o[1][0].data),messages:[]};o[2].forEach(function(i){var u=Ln(i.data),l=wi(u[3][0].data);s.messages.push({meta:u,data:t.slice(n[0],n[0]+l)}),n[0]+=l}),(r=o[3])!=null&&r[0]&&(s.merge=wi(o[3][0].data)>>>0>0),e.push(s)}return e}function zu(t){var r=[];return t.forEach(function(e){var n=[];n[1]=[{data:Yn(e.id),type:0}],n[2]=[],e.merge!=null&&(n[3]=[{data:Yn(+!!e.merge),type:0}]);var a=[];e.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:Yn(s.data.length)}],n[2].push({data:la(s.meta),type:2})});var o=la(n);r.push(Yn(o.length)),r.push(o),a.forEach(function(s){return r.push(s)})}),ll(r)}function $5(t,r){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],n=df(r,e),a=[];e[0]<r.length;){var o=3&r[e[0]];if(o!=0){var s=0,i=0;if(o==1?(i=4+(r[e[0]]>>2&7),s=(224&r[e[0]++])<<3,s|=r[e[0]++]):(i=1+(r[e[0]++]>>2),o==2?(s=r[e[0]]|r[e[0]+1]<<8,e[0]+=2):(s=(r[e[0]]|r[e[0]+1]<<8|r[e[0]+2]<<16|r[e[0]+3]<<24)>>>0,e[0]+=4)),a=[ll(a)],s==0)throw new Error("Invalid offset 0");if(s>a[0].length)throw new Error("Invalid offset beyond length");if(i>=s)for(a.push(a[0].slice(-s)),i-=s;i>=a[a.length-1].length;)a.push(a[a.length-1]),i-=a[a.length-1].length;a.push(a[0].slice(-s,-s+i))}else{var u=r[e[0]++]>>2;if(u<60)++u;else{var l=u-59;u=r[e[0]],l>1&&(u|=r[e[0]+1]<<8),l>2&&(u|=r[e[0]+2]<<16),l>3&&(u|=r[e[0]+3]<<24),u>>>=0,u++,e[0]+=l}a.push(r.slice(e[0],e[0]+u)),e[0]+=u}}var f=ll(a);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function ks(t){for(var r=[],e=0;e<t.length;){var n=t[e++],a=t[e]|t[e+1]<<8|t[e+2]<<16;e+=3,r.push($5(n,t.slice(e,e+a))),e+=a}if(e!==t.length)throw new Error("data is not a valid framed stream!");return ll(r)}function Uu(t){for(var r=[],e=0;e<t.length;){var n=Math.min(t.length-e,268435455),a=new Uint8Array(4);r.push(a);var o=Yn(n),s=o.length;r.push(o),n<=60?(s++,r.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(t.slice(e,e+n)),s+=n,a[0]=0,a[1]=255&s,a[2]=s>>8&255,a[3]=s>>16&255,e+=n}return ll(r)}function q5(t,r,e){var n,a=ql(t),o=a.getUint32(8,!0),s=12,i=-1,u=-1,l=NaN,f=NaN,c=new Date(2001,0,1);switch(1&o&&(l=function(h,d){for(var p=(127&h[d+15])<<7|h[d+14]>>1,m=1&h[d+14],v=d+13;v>=d;--v)m=256*m+h[v];return(128&h[d+15]?-m:m)*Math.pow(10,p-6176)}(t,s),s+=16),2&o&&(f=a.getFloat64(s,!0),s+=8),4&o&&(c.setTime(c.getTime()+1e3*a.getFloat64(s,!0)),s+=8),8&o&&(u=a.getUint32(s,!0),s+=4),16&o&&(i=a.getUint32(s,!0),s+=4),t[1]){case 0:break;case 2:case 10:n={t:"n",v:l};break;case 3:n={t:"s",v:r[u]};break;case 5:n={t:"d",v:c};break;case 6:n={t:"b",v:f>0};break;case 7:n={t:"n",v:f/86400};break;case 8:n={t:"e",v:0};break;case 9:if(!(i>-1))throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(31&o," : ").concat(t.slice(0,4)));n={t:"s",v:e[i]};break;default:throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(31&o," : ").concat(t.slice(0,4)))}return n}function P0(t,r){var e=new Uint8Array(32),n=ql(e),a=12,o=0;switch(e[0]=5,t.t){case"n":e[1]=2,function(s,i,u){var l=Math.floor(u==0?0:Math.LOG10E*Math.log(Math.abs(u)))+6176-20,f=u/Math.pow(10,l-6176);s[i+15]|=l>>7,s[i+14]|=(127&l)<<1;for(var c=0;f>=1;++c,f/=256)s[i+c]=255&f;s[i+15]|=u>=0?0:128}(e,a,t.v),o|=1,a+=16;break;case"b":e[1]=6,n.setFloat64(a,t.v?1:0,!0),o|=2,a+=8;break;case"s":if(r.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[1]=3,n.setUint32(a,r.indexOf(t.v),!0),o|=8,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,o,!0),e.slice(0,a)}function D0(t,r){var e=new Uint8Array(32),n=ql(e),a=12,o=0;switch(e[0]=3,t.t){case"n":e[2]=2,n.setFloat64(a,t.v,!0),o|=32,a+=8;break;case"b":e[2]=6,n.setFloat64(a,t.v?1:0,!0),o|=32,a+=8;break;case"s":if(r.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[2]=3,n.setUint32(a,r.indexOf(t.v),!0),o|=16,a+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,o,!0),e.slice(0,a)}function G5(t,r,e){switch(t[0]){case 0:case 1:case 2:case 3:return function(n,a,o,s){var i,u=ql(n),l=u.getUint32(4,!0),f=(s>1?12:8)+4*jb(l&(s>1?3470:398)),c=-1,h=-1,d=NaN,p=new Date(2001,0,1);switch(512&l&&(c=u.getUint32(f,!0),f+=4),f+=4*jb(l&(s>1?12288:4096)),16&l&&(h=u.getUint32(f,!0),f+=4),32&l&&(d=u.getFloat64(f,!0),f+=8),64&l&&(p.setTime(p.getTime()+1e3*u.getFloat64(f,!0)),f+=8),n[2]){case 0:break;case 2:i={t:"n",v:d};break;case 3:i={t:"s",v:a[h]};break;case 5:i={t:"d",v:p};break;case 6:i={t:"b",v:d>0};break;case 7:i={t:"n",v:d/86400};break;case 8:i={t:"e",v:0};break;case 9:if(c>-1)i={t:"s",v:o[c]};else if(h>-1)i={t:"s",v:a[h]};else{if(isNaN(d))throw new Error("Unsupported cell type ".concat(n.slice(0,4)));i={t:"n",v:d}}break;default:throw new Error("Unsupported cell type ".concat(n.slice(0,4)))}return i}(t,r,e,t[0]);case 5:return q5(t,r,e);default:throw new Error("Unsupported payload version ".concat(t[0]))}}function xa(t){return df(Ln(t)[1][0].data)}function zb(t,r){var e=Ln(r.data),n=wi(e[1][0].data),a=e[3],o=[];return(a||[]).forEach(function(s){var i=Ln(s.data),u=wi(i[1][0].data)>>>0;switch(n){case 1:o[u]=I0(i[3][0].data);break;case 8:var l=Ln(t[xa(i[9][0].data)][0].data),f=t[xa(l[1][0].data)][0],c=wi(f.meta[1][0].data);if(c!=2001)throw new Error("2000 unexpected reference to ".concat(c));var h=Ln(f.data);o[u]=h[3].map(function(d){return I0(d.data)}).join("")}}),o}function Y5(t,r){var e,n=Ln(r.data),a=(e=n==null?void 0:n[7])!=null&&e[0]?wi(n[7][0].data)>>>0>0?1:0:-1,o=N0(n[5],function(s){return function(i,u){var l,f,c,h,d,p,m,v,b,g,y,k,S,C,O,L,j=Ln(i),U=wi(j[1][0].data)>>>0,z=wi(j[2][0].data)>>>0,Y=((f=(l=j[8])==null?void 0:l[0])==null?void 0:f.data)&&wi(j[8][0].data)>0||!1;if((h=(c=j[7])==null?void 0:c[0])!=null&&h.data&&u!=0)O=(p=(d=j[7])==null?void 0:d[0])==null?void 0:p.data,L=(v=(m=j[6])==null?void 0:m[0])==null?void 0:v.data;else{if(!((g=(b=j[4])==null?void 0:b[0])!=null&&g.data)||u==1)throw"NUMBERS Tile missing ".concat(u," cell storage");O=(k=(y=j[4])==null?void 0:y[0])==null?void 0:k.data,L=(C=(S=j[3])==null?void 0:S[0])==null?void 0:C.data}for(var A=Y?4:1,I=ql(O),_=[],x=0;x<O.length/2;++x){var T=I.getUint16(2*x,!0);T<65535&&_.push([x,T])}if(_.length!=z)throw"Expected ".concat(z," cells, found ").concat(_.length);var E=[];for(x=0;x<_.length-1;++x)E[_[x][0]]=L.subarray(_[x][1]*A,_[x+1][1]*A);return _.length>=1&&(E[_[_.length-1][0]]=L.subarray(_[_.length-1][1]*A)),{R:U,cells:E}}(s,a)});return{nrows:wi(n[4][0].data)>>>0,data:o.reduce(function(s,i){return s[i.R]||(s[i.R]=[]),i.cells.forEach(function(u,l){if(s[i.R][l])throw new Error("Duplicate cell r=".concat(i.R," c=").concat(l));s[i.R][l]=u}),s},[])}}function K5(t,r){var e={"!ref":"A1"},n=t[xa(Ln(r.data)[2][0].data)],a=wi(n[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return function(o,s,i){var u,l=Ln(s.data),f={s:{r:0,c:0},e:{r:0,c:0}};if(f.e.r=(wi(l[6][0].data)>>>0)-1,f.e.r<0)throw new Error("Invalid row varint ".concat(l[6][0].data));if(f.e.c=(wi(l[7][0].data)>>>0)-1,f.e.c<0)throw new Error("Invalid col varint ".concat(l[7][0].data));i["!ref"]=Tn(f);var c=Ln(l[4][0].data),h=zb(o,o[xa(c[4][0].data)][0]),d=(u=c[17])!=null&&u[0]?zb(o,o[xa(c[17][0].data)][0]):[],p=Ln(c[3][0].data),m=0;p[1].forEach(function(v){var b=Ln(v.data),g=o[xa(b[2][0].data)][0],y=wi(g.meta[1][0].data);if(y!=6002)throw new Error("6001 unexpected reference to ".concat(y));var k=Y5(0,g);k.data.forEach(function(S,C){S.forEach(function(O,L){var j=on({r:m+C,c:L}),U=G5(O,h,d);U&&(i[j]=U)})}),m+=k.nrows})}(t,n[0],e),e}function X5(t,r){var e={SheetNames:[],Sheets:{}};if(N0(Ln(r.data)[1],xa).forEach(function(n){t[n].forEach(function(a){if(wi(a.meta[1][0].data)==2){var o=function(s,i){var u,l=Ln(i.data),f={name:(u=l[1])!=null&&u[0]?I0(l[1][0].data):"",sheets:[]};return N0(l[2],xa).forEach(function(c){s[c].forEach(function(h){wi(h.meta[1][0].data)==6e3&&f.sheets.push(K5(s,h))})}),f}(t,a);o.sheets.forEach(function(s,i){Yb(e,s,i==0?o.name:o.name+"_"+i,!0)})}})}),e.SheetNames.length==0)throw new Error("Empty NUMBERS file");return e}function F0(t){var r,e,n,a,o={},s=[];if(t.FullPaths.forEach(function(u){if(u.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),t.FileIndex.forEach(function(u){if(u.name.match(/\.iwa$/)){var l,f;try{l=ks(u.content)}catch(c){return console.log("?? "+u.content.length+" "+(c.message||c))}try{f=_s(l)}catch(c){return console.log("## "+(c.message||c))}f.forEach(function(c){o[c.id]=c.messages,s.push(c.id)})}}),!s.length)throw new Error("File has no messages");var i=((a=(n=(e=(r=o==null?void 0:o[1])==null?void 0:r[0])==null?void 0:e.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&wi(o[1][0].meta[1][0].data)==1&&o[1][0];if(i||s.forEach(function(u){o[u].forEach(function(l){if(wi(l.meta[1][0].data)>>>0==1){if(i)throw new Error("Document has multiple roots");i=l}})}),!i)throw new Error("Cannot find Document root");return X5(o,i)}function Z5(t,r,e){var n,a,o,s;if(!((n=t[6])!=null&&n[0])||!((a=t[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";if((s=(o=t[8])==null?void 0:o[0])!=null&&s.data&&wi(t[8][0].data)>0)throw"Math only works with normal offsets";for(var i=0,u=ql(t[7][0].data),l=0,f=[],c=ql(t[4][0].data),h=0,d=[],p=0;p<r.length;++p)if(r[p]!=null){var m,v;switch(u.setUint16(2*p,l,!0),c.setUint16(2*p,h,!0),typeof r[p]){case"string":m=P0({t:"s",v:r[p]},e),v=D0({t:"s",v:r[p]},e);break;case"number":m=P0({t:"n",v:r[p]},e),v=D0({t:"n",v:r[p]},e);break;case"boolean":m=P0({t:"b",v:r[p]},e),v=D0({t:"b",v:r[p]},e);break;default:throw new Error("Unsupported value "+r[p])}f.push(m),l+=m.length,d.push(v),h+=v.length,++i}else u.setUint16(2*p,65535,!0),c.setUint16(2*p,65535);for(t[2][0].data=Yn(i);p<t[7][0].data.length/2;++p)u.setUint16(2*p,65535,!0),c.setUint16(2*p,65535,!0);return t[6][0].data=ll(f),t[3][0].data=ll(d),i}function Ub(t){return function(r){for(var e=0;e!=t.length;++e){var n=t[e];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function L0(t){Ub([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(t)}function B0(t){Ub([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function J5(t,r,e,n,a,o,s,i,u,l,f,c){try{o[n]=Xc(ns(t,e,!0),r);var h,d=Li(t,r);switch(i){case"sheet":h=o5(d,r,a,u,o[n],l,f,c);break;case"chart":if(!(h=l5(d,r,a,u,o[n],l))||!h["!drawel"])break;var p=zc(h["!drawel"].Target,r),m=Kc(p),v=function(S,C){if(!S)return"??";var O=(S.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return C["!id"][O].Target}(ns(t,p,!0),Xc(ns(t,m,!0),p)),b=zc(v,p),g=Kc(b);h=X6(ns(t,b,!0),0,0,Xc(ns(t,g,!0),b),0,h);break;case"macro":k=r,o[n],k.slice(-4),h={"!type":"macro"};break;case"dialog":h=function(S,C){return C.slice(-4),{"!type":"dialog"}}(0,r,0,0,o[n]);break;default:throw new Error("Unrecognized sheet type "+i)}s[n]=h;var y=[];o&&o[n]&&Ei(o[n]).forEach(function(S){var C="";if(o[n][S].Type==kn.CMNT){C=zc(o[n][S].Target,r);var O=f5(Li(t,C,!0),C,u);if(!O||!O.length)return;tb(h,O,!1)}o[n][S].Type==kn.TCMNT&&(C=zc(o[n][S].Target,r),y=y.concat(function(L,j){var U=[],z=!1,Y={},A=0;return L.replace(va,function(I,_){var x=en(I);switch(Js(x[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":Y={author:x.personId,guid:x.id,ref:x.ref,T:1};break;case"</threadedComment>":Y.t!=null&&U.push(Y);break;case"<text>":case"<text":A=_+I.length;break;case"</text>":Y.t=L.slice(A,_).replace(/\r\n/g,` |
|
|
`).replace(/\r/g,` |
|
|
`);break;case"<mentions":case"<mentions>":case"<ext":z=!0;break;case"</mentions>":case"</ext>":z=!1;break;default:if(!z&&j.WTF)throw new Error("unrecognized "+x[0]+" in threaded comments")}return I}),U}(Li(t,C,!0),u)))}),y&&y.length&&tb(h,y,!0,u.people||[])}catch(S){if(u.WTF)throw S}var k}function xs(t){return t.charAt(0)=="/"?t.slice(1):t}function Q5(t,r){if(Mu(),L0(r=r||{}),vs(t,"META-INF/manifest.xml")||vs(t,"objectdata.xml"))return Db(t,r);if(vs(t,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(F0!==void 0){if(t.FileIndex)return F0(t);var e=zr.utils.cfb_new();return lv(t).forEach(function(I){mn(e,I,l3(t,I))}),F0(e)}throw new Error("Unsupported NUMBERS file")}if(!vs(t,"[Content_Types].xml"))throw vs(t,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):vs(t,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n,a,o=lv(t),s=function(I){var _={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!I||!I.match)return _;var x={};if((I.match(va)||[]).forEach(function(T){var E=en(T);switch(E[0].replace(c3,"<")){case"<?xml":break;case"<Types":_.xmlns=E["xmlns"+(E[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":x[E.Extension]=E.ContentType;break;case"<Override":_[l0[E.ContentType]]!==void 0&&_[l0[E.ContentType]].push(E.PartName)}}),_.xmlns!==yv)throw new Error("Unknown Namespace: "+_.xmlns);return _.calcchain=_.calcchains.length>0?_.calcchains[0]:"",_.sst=_.strs.length>0?_.strs[0]:"",_.style=_.styles.length>0?_.styles[0]:"",_.defaults=x,delete _.calcchains,_}(ns(t,"[Content_Types].xml")),i=!1;if(s.workbooks.length===0&&Li(t,a="xl/workbook.xml",!0)&&s.workbooks.push(a),s.workbooks.length===0){if(!Li(t,a="xl/workbook.bin",!0))throw new Error("Could not find workbook");s.workbooks.push(a),i=!0}s.workbooks[0].slice(-3)=="bin"&&(i=!0);var u={},l={};if(!r.bookSheets&&!r.bookProps){if(lf=[],s.sst)try{lf=c5(Li(t,xs(s.sst)),s.sst,r)}catch(I){if(r.WTF)throw I}r.cellStyles&&s.themes.length&&(u=function(I,_,x){return Zg(I,x)}(ns(t,s.themes[0].replace(/^\//,""),!0)||"",s.themes[0],r)),s.style&&(l=u5(Li(t,xs(s.style)),s.style,u,r))}s.links.map(function(I){try{return Xc(ns(t,Kc(xs(I))),I),d5(Li(t,xs(I)),0,I,r)}catch{}});var f=s5(Li(t,xs(s.workbooks[0])),s.workbooks[0],r),c={},h="";s.coreprops.length&&((h=Li(t,xs(s.coreprops[0]),!0))&&(c=tg(h)),s.extprops.length!==0&&(h=Li(t,xs(s.extprops[0]),!0))&&function(I,_,x){var T={};_||(_={}),I=Xn(I),zl.forEach(function(E){var M=(I.match(Uc(E[0]))||[])[1];switch(E[2]){case"string":M&&(_[E[1]]=Fn(M));break;case"bool":_[E[1]]=M==="true";break;case"raw":var F=I.match(new RegExp("<"+E[0]+"[^>]*>([\\s\\S]*?)</"+E[0]+">"));F&&F.length>0&&(T[E[1]]=F[1])}}),T.HeadingPairs&&T.TitlesOfParts&&ng(T.HeadingPairs,T.TitlesOfParts,_,x)}(h,c,r));var d={};r.bookSheets&&!r.bookProps||s.custprops.length!==0&&(h=ns(t,xs(s.custprops[0]),!0))&&(d=function(I,_){var x={},T="",E=I.match($3);if(E)for(var M=0;M!=E.length;++M){var F=E[M],P=en(F);switch(P[0]){case"<?xml":case"<Properties":break;case"<property":T=Fn(P.name);break;case"</property>":T=null;break;default:if(F.indexOf("<vt:")===0){var W=F.split(">"),N=W[0].slice(4),q=W[1];switch(N){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":x[T]=Fn(q);break;case"bool":x[T]=li(q);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":x[T]=parseInt(q,10);break;case"r4":case"r8":case"decimal":x[T]=parseFloat(q);break;case"filetime":case"date":x[T]=di(q);break;default:if(N.slice(-1)=="/")break;_.WTF&&typeof console<"u"&&console.warn("Unexpected",F,N,W)}}else if(F.slice(0,2)!=="</"){if(_.WTF)throw new Error(F)}}}return x}(h,r));var p={};if((r.bookSheets||r.bookProps)&&(f.Sheets?n=f.Sheets.map(function(I){return I.name}):c.Worksheets&&c.SheetNames.length>0&&(n=c.SheetNames),r.bookProps&&(p.Props=c,p.Custprops=d),r.bookSheets&&n!==void 0&&(p.SheetNames=n),r.bookSheets?p.SheetNames:r.bookProps))return p;n={};var m={};r.bookDeps&&s.calcchain&&(m=h5(Li(t,xs(s.calcchain)),s.calcchain));var v,b,g=0,y={},k=f.Sheets;c.Worksheets=k.length,c.SheetNames=[];for(var S=0;S!=k.length;++S)c.SheetNames[S]=k[S].name;var C=i?"bin":"xml",O=s.workbooks[0].lastIndexOf("/"),L=(s.workbooks[0].slice(0,O+1)+"_rels/"+s.workbooks[0].slice(O+1)+".rels").replace(/^\//,"");vs(t,L)||(L="xl/_rels/workbook."+C+".rels");var j=Xc(ns(t,L,!0),L.replace(/_rels.*/,"s5s"));(s.metadata||[]).length>=1&&(r.xlmeta=p5(Li(t,xs(s.metadata[0])),s.metadata[0],r)),(s.people||[]).length>=1&&(r.people=function(I,_){var x=[],T=!1;return I.replace(va,function(E){var M=en(E);switch(Js(M[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":x.push({name:M.displayname,id:M.id});break;case"<ext":T=!0;break;case"</ext>":T=!1;break;default:if(!T&&_.WTF)throw new Error("unrecognized "+M[0]+" in threaded comments")}return E}),x}(Li(t,xs(s.people[0])),r)),j&&(j=function(I,_){if(!I)return 0;try{I=_.map(function(x){return x.id||(x.id=x.strRelID),[x.name,I["!id"][x.id].Target,(T=I["!id"][x.id].Type,kn.WS.indexOf(T)>-1?"sheet":T==kn.CS?"chart":T==kn.DS?"dialog":T==kn.MS?"macro":T&&T.length?T:"sheet")];var T})}catch{return null}return I&&I.length!==0?I:null}(j,f.Sheets));var U=Li(t,"xl/worksheets/sheet.xml",!0)?1:0;t:for(g=0;g!=c.Worksheets;++g){var z="sheet";if(j&&j[g]?(v="xl/"+j[g][1].replace(/[\/]?xl\//,""),vs(t,v)||(v=j[g][1]),vs(t,v)||(v=L.replace(/_rels\/.*$/,"")+j[g][1]),z=j[g][2]):v=(v="xl/worksheets/sheet"+(g+1-U)+"."+C).replace(/sheet0\./,"sheet."),b=v.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(g!=r.sheets)continue t;break;case"string":if(c.SheetNames[g].toLowerCase()!=r.sheets.toLowerCase())continue t;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var Y=!1,A=0;A!=r.sheets.length;++A)typeof r.sheets[A]=="number"&&r.sheets[A]==g&&(Y=1),typeof r.sheets[A]=="string"&&r.sheets[A].toLowerCase()==c.SheetNames[g].toLowerCase()&&(Y=1);if(!Y)continue t}}J5(t,v,b,c.SheetNames[g],g,y,n,z,r,f,u,l)}return p={Directory:s,Workbook:f,Props:c,Custprops:d,Deps:m,Sheets:n,SheetNames:c.SheetNames,Strings:lf,Styles:l,Themes:u,SSF:oi(Qr)},r&&r.bookFiles&&(t.files?(p.keys=o,p.files=t.files):(p.keys=[],p.files={},t.FullPaths.forEach(function(I,_){I=I.replace(/^Root Entry[\/]/,""),p.keys.push(I),p.files[I]=t.FileIndex[_]}))),r&&r.bookVBA&&(s.vba.length>0?p.vbaraw=Li(t,xs(s.vba[0]),!0):s.defaults&&s.defaults.bin==="application/vnd.ms-office.vbaProject"&&(p.vbaraw=Li(t,"xl/vbaProject.bin",!0))),p}function t_(t,r){var e,n,a=r||{},o="Workbook",s=zr.find(t,o);try{if(o="/!DataSpaces/Version",!(s=zr.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);if(e=s.content,(n={}).id=e.read_shift(0,"lpp4"),n.R=Ro(e,4),n.U=Ro(e,4),n.W=Ro(e,4),o="/!DataSpaces/DataSpaceMap",!(s=zr.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);var i=function(f){var c=[];f.l+=4;for(var h=f.read_shift(4);h-- >0;)c.push(S4(f));return c}(s.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+o);if(o="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(s=zr.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);var u=function(f){var c=[];f.l+=4;for(var h=f.read_shift(4);h-- >0;)c.push(f.read_shift(0,"lpp4"));return c}(s.content);if(u.length!=1||u[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+o);if(o="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(s=zr.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);T4(s.content)}catch{}if(o="/EncryptionInfo",!(s=zr.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);var l=function(f){var c=Ro(f);switch(c.Minor){case 2:return[c.Minor,E4(f)];case 3:return[c.Minor,C4()];case 4:return[c.Minor,A4(f)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+c.Minor)}(s.content);if(o="/EncryptedPackage",!(s=zr.find(t,o))||!s.content)throw new Error("ECMA-376 Encrypted file missing "+o);if(l[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(l[1],s.content,a.password||"",a);if(l[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(l[1],s.content,a.password||"",a);throw new Error("File is password-protected")}function e_(t,r){return r.bookType=="ods"?Bb(t,r):r.bookType=="numbers"?function(e,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var a=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var o=gs(a["!ref"]);o.s.r=o.s.c=0;var s=!1;o.e.c>9&&(s=!0,o.e.c=9),o.e.r>49&&(s=!0,o.e.r=49),s&&console.error("The Numbers writer is currently limited to ".concat(Tn(o)));var i=$b(a,{range:o,header:1}),u=["~Sh33tJ5~"];i.forEach(function(N){return N.forEach(function(q){typeof q=="string"&&u.push(q)})});var l={},f=[],c=zr.read(n.numbers,{type:"base64"});c.FileIndex.map(function(N,q){return[N,c.FullPaths[q]]}).forEach(function(N){var q=N[0],nt=N[1];q.type==2&&q.name.match(/\.iwa/)&&_s(ks(q.content)).forEach(function(J){f.push(J.id),l[J.id]={deps:[],location:nt,type:wi(J.messages[0].meta[1][0].data)}})}),f.sort(function(N,q){return N-q});var h=f.filter(function(N){return N>1}).map(function(N){return[N,Yn(N)]});c.FileIndex.map(function(N,q){return[N,c.FullPaths[q]]}).forEach(function(N){var q=N[0];N[1],q.name.match(/\.iwa/)&&_s(ks(q.content)).forEach(function(nt){nt.messages.forEach(function(J){h.forEach(function(St){nt.messages.some(function(kt){return wi(kt.meta[1][0].data)!=11006&&function(Mt,at){t:for(var K=0;K<=Mt.length-at.length;++K){for(var it=0;it<at.length;++it)if(Mt[K+it]!=at[it])continue t;return!0}return!1}(kt.data,St[1])})&&l[St[0]].deps.push(nt.id)})})})});for(var d,p=zr.find(c,l[1].location),m=_s(ks(p.content)),v=0;v<m.length;++v){var b=m[v];b.id==1&&(d=b)}var g=xa(Ln(d.messages[0].data)[1][0].data);for(m=_s(ks((p=zr.find(c,l[g].location)).content)),v=0;v<m.length;++v)(b=m[v]).id==g&&(d=b);for(g=xa(Ln(d.messages[0].data)[2][0].data),m=_s(ks((p=zr.find(c,l[g].location)).content)),v=0;v<m.length;++v)(b=m[v]).id==g&&(d=b);for(g=xa(Ln(d.messages[0].data)[2][0].data),m=_s(ks((p=zr.find(c,l[g].location)).content)),v=0;v<m.length;++v)(b=m[v]).id==g&&(d=b);var y=Ln(d.messages[0].data);y[6][0].data=Yn(o.e.r+1),y[7][0].data=Yn(o.e.c+1);for(var k=xa(y[46][0].data),S=zr.find(c,l[k].location),C=_s(ks(S.content)),O=0;O<C.length&&C[O].id!=k;++O);if(C[O].id!=k)throw"Bad ColumnRowUIDMapArchive";var L=Ln(C[O].messages[0].data);L[1]=[],L[2]=[],L[3]=[];for(var j=0;j<=o.e.c;++j){var U=[];U[1]=U[2]=[{type:0,data:Yn(j+420690)}],L[1].push({type:2,data:la(U)}),L[2].push({type:0,data:Yn(j)}),L[3].push({type:0,data:Yn(j)})}L[4]=[],L[5]=[],L[6]=[];for(var z=0;z<=o.e.r;++z)(U=[])[1]=U[2]=[{type:0,data:Yn(z+726270)}],L[4].push({type:2,data:la(U)}),L[5].push({type:0,data:Yn(z)}),L[6].push({type:0,data:Yn(z)});C[O].messages[0].data=la(L),S.content=Uu(zu(C)),S.size=S.content.length,delete y[46];var Y=Ln(y[4][0].data);Y[7][0].data=Yn(o.e.r+1);var A=xa(Ln(Y[1][0].data)[2][0].data);if((C=_s(ks((S=zr.find(c,l[A].location)).content)))[0].id!=A)throw"Bad HeaderStorageBucket";var I=Ln(C[0].messages[0].data);for(z=0;z<i.length;++z){var _=Ln(I[2][0].data);_[1][0].data=Yn(z),_[4][0].data=Yn(i[z].length),I[2][z]={type:I[2][0].type,data:la(_)}}C[0].messages[0].data=la(I),S.content=Uu(zu(C)),S.size=S.content.length;var x=xa(Y[2][0].data);if((C=_s(ks((S=zr.find(c,l[x].location)).content)))[0].id!=x)throw"Bad HeaderStorageBucket";for(I=Ln(C[0].messages[0].data),j=0;j<=o.e.c;++j)(_=Ln(I[2][0].data))[1][0].data=Yn(j),_[4][0].data=Yn(o.e.r+1),I[2][j]={type:I[2][0].type,data:la(_)};C[0].messages[0].data=la(I),S.content=Uu(zu(C)),S.size=S.content.length;var T=xa(Y[4][0].data);(function(){for(var N,q=zr.find(c,l[T].location),nt=_s(ks(q.content)),J=0;J<nt.length;++J){var St=nt[J];St.id==T&&(N=St)}var kt=Ln(N.messages[0].data);kt[3]=[];var Mt=[];u.forEach(function(K,it){Mt[1]=[{type:0,data:Yn(it)}],Mt[2]=[{type:0,data:Yn(1)}],Mt[3]=[{type:2,data:V5(K)}],kt[3].push({type:2,data:la(Mt)})}),N.messages[0].data=la(kt);var at=Uu(zu(nt));q.content=at,q.size=q.content.length})();var E=Ln(Y[3][0].data),M=E[1][0];delete E[2];var F=Ln(M.data),P=xa(F[2][0].data);(function(){for(var N,q=zr.find(c,l[P].location),nt=_s(ks(q.content)),J=0;J<nt.length;++J){var St=nt[J];St.id==P&&(N=St)}var kt=Ln(N.messages[0].data);delete kt[6],delete E[7];var Mt=new Uint8Array(kt[5][0].data);kt[5]=[];for(var at=0,K=0;K<=o.e.r;++K){var it=Ln(Mt);at+=Z5(it,i[K],u),it[1][0].data=Yn(K),kt[5].push({data:la(it),type:2})}kt[1]=[{type:0,data:Yn(o.e.c+1)}],kt[2]=[{type:0,data:Yn(o.e.r+1)}],kt[3]=[{type:0,data:Yn(at)}],kt[4]=[{type:0,data:Yn(o.e.r+1)}],N.messages[0].data=la(kt);var st=Uu(zu(nt));q.content=st,q.size=q.content.length})(),M.data=la(F),Y[3][0].data=la(E),y[4][0].data=la(Y),d.messages[0].data=la(y);var W=Uu(zu(m));return p.content=W,p.size=p.content.length,c}(t,r):r.bookType=="xlsb"?function(e,n){Lu=1024,e&&!e.SSF&&(e.SSF=oi(Qr)),e&&e.SSF&&(Mu(),Sh(e.SSF),n.revssf=Eh(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,uf?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var a=n.bookType=="xlsb"?"bin":"xml",o=rb.indexOf(n.bookType)>-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};B0(n=n||{});var i=Wp(),u="",l=0;if(n.cellXfs=[],ol(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),mn(i,u="docProps/core.xml",eg(e.Props,n)),s.coreprops.push(u),Gn(n.rels,2,u,kn.CORE_PROPS),u="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(e.Workbook&&e.Workbook.Sheets){for(var f=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&f.push(e.SheetNames[c]);e.Props.SheetNames=f}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,mn(i,u,ig(e.Props)),s.extprops.push(u),Gn(n.rels,3,u,kn.EXT_PROPS),e.Custprops!==e.Props&&Ei(e.Custprops||{}).length>0&&(mn(i,u="docProps/custom.xml",ag(e.Custprops)),s.custprops.push(u),Gn(n.rels,4,u,kn.CUST_PROPS)),l=1;l<=e.SheetNames.length;++l){var h={"!id":{}},d=e.Sheets[e.SheetNames[l-1]];if((d||{})["!type"],mn(i,u="xl/worksheets/sheet"+l+"."+a,m5(l-1,u,n,e,h)),s.sheets.push(u),Gn(n.wbrels,-1,"worksheets/sheet"+l+"."+a,kn.WS[0]),d){var p=d["!comments"],m=!1,v="";p&&p.length>0&&(mn(i,v="xl/comments"+l+"."+a,v5(p,v)),s.comments.push(v),Gn(h,-1,"../comments"+l+"."+a,kn.CMNT),m=!0),d["!legacy"]&&m&&mn(i,"xl/drawings/vmlDrawing"+l+".vml",Qg(l,d["!comments"])),delete d["!comments"],delete d["!legacy"]}h["!id"].rId1&&mn(i,Kc(u),Pu(h))}return n.Strings!=null&&n.Strings.length>0&&(mn(i,u="xl/sharedStrings."+a,function(b,g,y){return(g.slice(-4)===".bin"?x4:Ug)(b,y)}(n.Strings,u,n)),s.strs.push(u),Gn(n.wbrels,-1,"sharedStrings."+a,kn.SST)),mn(i,u="xl/workbook."+a,function(b,g){return(g.slice(-4)===".bin"?a5:Tb)(b)}(e,u)),s.workbooks.push(u),Gn(n.rels,1,u,kn.WB),mn(i,u="xl/theme/theme1.xml",w0(e.Themes,n)),s.themes.push(u),Gn(n.wbrels,-1,"theme/theme1.xml",kn.THEME),mn(i,u="xl/styles."+a,function(b,g,y){return(g.slice(-4)===".bin"?U4:Yg)(b,y)}(e,u,n)),s.styles.push(u),Gn(n.wbrels,-1,"styles."+a,kn.STY),e.vbaraw&&o&&(mn(i,u="xl/vbaProject.bin",e.vbaraw),s.vba.push(u),Gn(n.wbrels,-1,"vbaProject.bin",kn.VBA)),mn(i,u="xl/metadata."+a,function(b){return(b.slice(-4)===".bin"?J4:Jg)()}(u)),s.metadata.push(u),Gn(n.wbrels,-1,"metadata."+a,kn.XLMETA),mn(i,"[Content_Types].xml",Zv(s,n)),mn(i,"_rels/.rels",Pu(n.rels)),mn(i,"xl/_rels/workbook."+a+".rels",Pu(n.wbrels)),delete n.revssf,delete n.ssf,i}(t,r):function(e,n){Lu=1024,e&&!e.SSF&&(e.SSF=oi(Qr)),e&&e.SSF&&(Mu(),Sh(e.SSF),n.revssf=Eh(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,uf?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var a="xml",o=rb.indexOf(n.bookType)>-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};B0(n=n||{});var i=Wp(),u="",l=0;if(n.cellXfs=[],ol(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),mn(i,u="docProps/core.xml",eg(e.Props,n)),s.coreprops.push(u),Gn(n.rels,2,u,kn.CORE_PROPS),u="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(e.Workbook&&e.Workbook.Sheets){for(var f=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&f.push(e.SheetNames[c]);e.Props.SheetNames=f}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,mn(i,u,ig(e.Props)),s.extprops.push(u),Gn(n.rels,3,u,kn.EXT_PROPS),e.Custprops!==e.Props&&Ei(e.Custprops||{}).length>0&&(mn(i,u="docProps/custom.xml",ag(e.Custprops)),s.custprops.push(u),Gn(n.rels,4,u,kn.CUST_PROPS));var h=["SheetJ5"];for(n.tcid=0,l=1;l<=e.SheetNames.length;++l){var d={"!id":{}},p=e.Sheets[e.SheetNames[l-1]];if((p||{})["!type"],mn(i,u="xl/worksheets/sheet"+l+"."+a,bb(l-1,n,e,d)),s.sheets.push(u),Gn(n.wbrels,-1,"worksheets/sheet"+l+"."+a,kn.WS[0]),p){var m=p["!comments"],v=!1,b="";if(m&&m.length>0){var g=!1;m.forEach(function(y){y[1].forEach(function(k){k.T==1&&(g=!0)})}),g&&(mn(i,b="xl/threadedComments/threadedComment"+l+"."+a,Q4(m,h,n)),s.threadedcomments.push(b),Gn(d,-1,"../threadedComments/threadedComment"+l+"."+a,kn.TCMNT)),mn(i,b="xl/comments"+l+"."+a,eb(m)),s.comments.push(b),Gn(d,-1,"../comments"+l+"."+a,kn.CMNT),v=!0}p["!legacy"]&&v&&mn(i,"xl/drawings/vmlDrawing"+l+".vml",Qg(l,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&mn(i,Kc(u),Pu(d))}return n.Strings!=null&&n.Strings.length>0&&(mn(i,u="xl/sharedStrings."+a,Ug(n.Strings,n)),s.strs.push(u),Gn(n.wbrels,-1,"sharedStrings."+a,kn.SST)),mn(i,u="xl/workbook."+a,Tb(e)),s.workbooks.push(u),Gn(n.rels,1,u,kn.WB),mn(i,u="xl/theme/theme1.xml",w0(e.Themes,n)),s.themes.push(u),Gn(n.wbrels,-1,"theme/theme1.xml",kn.THEME),mn(i,u="xl/styles."+a,Yg(e,n)),s.styles.push(u),Gn(n.wbrels,-1,"styles."+a,kn.STY),e.vbaraw&&o&&(mn(i,u="xl/vbaProject.bin",e.vbaraw),s.vba.push(u),Gn(n.wbrels,-1,"vbaProject.bin",kn.VBA)),mn(i,u="xl/metadata."+a,Jg()),s.metadata.push(u),Gn(n.wbrels,-1,"metadata."+a,kn.XLMETA),h.length>1&&(mn(i,u="xl/persons/person.xml",function(y){var k=[Ci,vr("personList",null,{xmlns:wv,"xmlns:x":Nl[0]}).replace(/[\/]>/,">")];return y.forEach(function(S,C){k.push(vr("person",null,{displayName:S,id:"{54EE7950-7262-4200-6969-"+("000000000000"+C).slice(-12)+"}",userId:S,providerId:"None"}))}),k.push("</personList>"),k.join("")}(h)),s.people.push(u),Gn(n.wbrels,-1,"persons/person.xml",kn.PEOPLE)),mn(i,"[Content_Types].xml",Zv(s,n)),mn(i,"_rels/.rels",Pu(n.rels)),mn(i,"xl/_rels/workbook."+a+".rels",Pu(n.wbrels)),delete n.revssf,delete n.ssf,i}(t,r)}function j0(t,r){var e="";switch((r||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=es(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}function Hb(t,r){var e=0;t:for(;e<t.length;)switch(t.charCodeAt(e)){case 10:case 13:case 32:++e;break;case 60:return R0(t.slice(e),r);default:break t}return Du.to_workbook(t,r)}function z0(t,r,e,n){return n?(e.type="string",Du.to_workbook(t,e)):Du.to_workbook(r,e)}function U0(t,r){Fp();var e=r||{};if(typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer)return U0(new Uint8Array(t),((e=oi(e)).type="array",e));typeof Uint8Array<"u"&&t instanceof Uint8Array&&!e.type&&(e.type=typeof Deno<"u"?"buffer":"array");var n,a=t,o=!1;if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),ju={},e.dateNF&&(ju.dateNF=e.dateNF),e.type||(e.type=wn&&Buffer.isBuffer(t)?"buffer":"base64"),e.type=="file"&&(e.type=wn?"buffer":"binary",a=function(u){if(typeof Deno<"u")return Deno.readFileSync(u);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var l=File(u);l.open("r"),l.encoding="binary";var f=l.read();return l.close(),f}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("Cannot access file "+u)}(t),typeof Uint8Array>"u"||wn||(e.type="array")),e.type=="string"&&(o=!0,e.type="binary",e.codepage=65001,a=function(u){return u.match(/[^\x00-\x7F]/)?Qs(u):u}(t)),e.type=="array"&&typeof Uint8Array<"u"&&t instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),i=new Uint8Array(s);if(i.foo="bar",!i.foo)return(e=oi(e)).type="array",U0(Bp(a),e)}switch((n=j0(a,e))[0]){case 208:if(n[1]===207&&n[2]===17&&n[3]===224&&n[4]===161&&n[5]===177&&n[6]===26&&n[7]===225)return function(u,l){return zr.find(u,"EncryptedPackage")?t_(u,l):Ob(u,l)}(zr.read(a,e),e);break;case 9:if(n[1]<=8)return Ob(a,e);break;case 60:return R0(a,e);case 73:if(n[1]===73&&n[2]===42&&n[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(n[1]===68)return function(u,l){var f=l||{},c=!!f.WTF;f.WTF=!0;try{var h=Bg.to_workbook(u,f);return f.WTF=c,h}catch(d){if(f.WTF=c,!d.message.match(/SYLK bad record ID/)&&c)throw d;return Du.to_workbook(u,l)}}(a,e);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return jg.to_workbook(a,e);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?function(u,l){var f=u,c=l||{};return c.type||(c.type=wn&&Buffer.isBuffer(u)?"buffer":"base64"),Q5(uv(f,c),c)}(a,e):z0(t,a,e,o);case 239:return n[3]===60?R0(a,e):z0(t,a,e,o);case 255:if(n[1]===254)return function(u,l){var f=u;return l.type=="base64"&&(f=es(f)),f=Lp.utils.decode(1200,f.slice(2),"str"),l.type="binary",Hb(f,l)}(a,e);if(n[1]===0&&n[2]===2&&n[3]===0)return Vl.to_workbook(a,e);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return Vl.to_workbook(a,e);break;case 3:case 131:case 139:case 140:return p0.to_workbook(a,e);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return qg.to_workbook(a,e);break;case 10:case 13:case 32:return function(u,l){var f="",c=j0(u,l);switch(l.type){case"base64":f=es(u);break;case"binary":f=u;break;case"buffer":f=u.toString("binary");break;case"array":f=Il(u);break;default:throw new Error("Unrecognized type "+l.type)}return c[0]==239&&c[1]==187&&c[2]==191&&(f=Xn(f)),l.type="binary",Hb(f,l)}(a,e);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return h4.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?p0.to_workbook(a,e):z0(t,a,e,o)}function Wb(t,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return Bc(r.file,zr.write(t,{type:wn?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return zr.write(t,r)}function r_(t,r){var e=oi(r||{});return function(n,a){var o={},s=wn?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(a.compression&&(o.compression="DEFLATE"),a.password)o.type=s;else switch(a.type){case"base64":o.type="base64";break;case"binary":o.type="string";break;case"string":throw new Error("'string' output type invalid for '"+a.bookType+"' files");case"buffer":case"file":o.type=s;break;default:throw new Error("Unrecognized type "+a.type)}var i=n.FullPaths?zr.write(n,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[o.type]||o.type,compression:!!a.compression}):n.generate(o);if(typeof Deno<"u"&&typeof i=="string"){if(a.type=="binary"||a.type=="base64")return i;i=new Uint8Array(wh(i))}return a.password&&typeof encrypt_agile<"u"?Wb(encrypt_agile(i,a.password),a):a.type==="file"?Bc(a.file,i):a.type=="string"?Xn(i):i}(e_(t,e),e)}function ro(t,r,e){e||(e="");var n=e+t;switch(r.type){case"base64":return Dc(Qs(n));case"binary":return Qs(n);case"string":return t;case"file":return Bc(r.file,n,"utf8");case"buffer":return wn?xo(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):ro(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Gh(t,r){switch(r.type){case"string":case"base64":case"binary":for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return r.type=="base64"?Dc(e):r.type=="string"?Xn(e):e;case"file":return Bc(r.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+r.type)}}function Vb(t,r){Fp(),e5(t);var e=oi(r||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),e.type=="array"){e.type="binary";var n=Vb(t,e);return e.type="array",wh(n)}var a=0;if(e.sheet&&(a=typeof e.sheet=="number"?e.sheet:t.SheetNames.indexOf(e.sheet),!t.SheetNames[a]))throw new Error("Sheet not found: "+e.sheet+" : "+typeof e.sheet);switch(e.bookType||"xlsb"){case"xml":case"xlml":return ro(C5(t,e),e);case"slk":case"sylk":return ro(Bg.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"htm":case"html":return ro(function(o,s){var i=s||{},u=i.header!=null?i.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',l=i.footer!=null?i.footer:"</body></html>",f=[u],c=gs(o["!ref"]);i.dense=Array.isArray(o),f.push(function(d,p,m){return[].join("")+"<table"+(m&&m.id?' id="'+m.id+'"':"")+">"}(0,0,i));for(var h=c.s.r;h<=c.e.r;++h)f.push(U5(o,c,h,i));return f.push("</table>"+l),f.join("")}(t.Sheets[t.SheetNames[a]],e),e);case"txt":return function(o,s){switch(s.type){case"base64":return Dc(o);case"binary":case"string":return o;case"file":return Bc(s.file,o,"binary");case"buffer":return wn?xo(o,"binary"):o.split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+s.type)}(function(o,s){s||(s={}),s.FS=" ",s.RS=` |
|
|
`;var i=Gb(o,s);return i}(t.Sheets[t.SheetNames[a]],e),e);case"csv":return ro(Gb(t.Sheets[t.SheetNames[a]],e),e,"\uFEFF");case"dif":return ro(jg.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"dbf":return Gh(p0.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"prn":return ro(Du.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"rtf":return ro(qg.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"eth":return ro(zg.from_sheet(t.Sheets[t.SheetNames[a]],e),e);case"fods":return ro(Bb(t,e),e);case"wk1":return Gh(Vl.sheet_to_wk1(t.Sheets[t.SheetNames[a]],e),e);case"wk3":return Gh(Vl.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),Gh(Ib(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function(o,s){var i=s||{};return Wb(N5(o,i),i)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return r_(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function n_(t,r,e,n,a,o,s,i){var u=Qi(e),l=i.defval,f=i.raw||!Object.prototype.hasOwnProperty.call(i,"raw"),c=!0,h=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:e,enumerable:!1})}catch{h.__rowNum__=e}else h.__rowNum__=e;if(!s||t[e])for(var d=r.s.c;d<=r.e.c;++d){var p=s?t[e][d]:t[n[d]+u];if(p!==void 0&&p.t!==void 0){var m=p.v;switch(p.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(o[d]!=null){if(m==null)if(p.t=="e"&&m===null)h[o[d]]=null;else if(l!==void 0)h[o[d]]=l;else{if(!f||m!==null)continue;h[o[d]]=null}else h[o[d]]=f&&(p.t!=="n"||p.t==="n"&&i.rawNumbers!==!1)?m:nl(p,m,i);m!=null&&(c=!1)}}else{if(l===void 0)continue;o[d]!=null&&(h[o[d]]=l)}}return{row:h,isempty:c}}function $b(t,r){if(t==null||t["!ref"]==null)return[];var e={t:"n",v:0},n=0,a=1,o=[],s=0,i="",u={s:{r:0,c:0},e:{r:0,c:0}},l=r||{},f=l.range!=null?l.range:t["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof f){case"string":u=Un(f);break;case"number":(u=Un(t["!ref"])).s.r=f;break;default:u=f}n>0&&(a=0);var c=Qi(u.s.r),h=[],d=[],p=0,m=0,v=Array.isArray(t),b=u.s.r,g=0,y={};v&&!t[b]&&(t[b]=[]);var k=l.skipHidden&&t["!cols"]||[],S=l.skipHidden&&t["!rows"]||[];for(g=u.s.c;g<=u.e.c;++g)if(!(k[g]||{}).hidden)switch(h[g]=Bi(g),e=v?t[b][g]:t[h[g]+c],n){case 1:o[g]=g-u.s.c;break;case 2:o[g]=h[g];break;case 3:o[g]=l.header[g-u.s.c];break;default:if(e==null&&(e={w:"__EMPTY",t:"s"}),i=s=nl(e,null,l),m=y[s]||0){do i=s+"_"+m++;while(y[i]);y[s]=m,y[i]=1}else y[s]=1;o[g]=i}for(b=u.s.r+a;b<=u.e.r;++b)if(!(S[b]||{}).hidden){var C=n_(t,u,b,h,n,o,v,l);(C.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(d[p++]=C.row)}return d.length=p,d}var qb=/"/g;function i_(t,r,e,n,a,o,s,i){for(var u=!0,l=[],f="",c=Qi(e),h=r.s.c;h<=r.e.c;++h)if(n[h]){var d=i.dense?(t[e]||[])[h]:t[n[h]+c];if(d==null)f="";else if(d.v!=null){u=!1,f=""+(i.rawNumbers&&d.t=="n"?d.v:nl(d,null,i));for(var p=0,m=0;p!==f.length;++p)if((m=f.charCodeAt(p))===a||m===o||m===34||i.forceQuotes){f='"'+f.replace(qb,'""')+'"';break}f=="ID"&&(f='"ID"')}else d.f==null||d.F?f="":(u=!1,(f="="+d.f).indexOf(",")>=0&&(f='"'+f.replace(qb,'""')+'"'));l.push(f)}return i.blankrows===!1&&u?null:l.join(s)}function Gb(t,r){var e=[],n=r??{};if(t==null||t["!ref"]==null)return"";var a=Un(t["!ref"]),o=n.FS!==void 0?n.FS:",",s=o.charCodeAt(0),i=n.RS!==void 0?n.RS:` |
|
|
`,u=i.charCodeAt(0),l=new RegExp((o=="|"?"\\|":o)+"+$"),f="",c=[];n.dense=Array.isArray(t);for(var h=n.skipHidden&&t["!cols"]||[],d=n.skipHidden&&t["!rows"]||[],p=a.s.c;p<=a.e.c;++p)(h[p]||{}).hidden||(c[p]=Bi(p));for(var m=0,v=a.s.r;v<=a.e.r;++v)(d[v]||{}).hidden||(f=i_(t,a,v,c,s,u,o,n))!=null&&(n.strip&&(f=f.replace(l,"")),(f||n.blankrows!==!1)&&e.push((m++?i:"")+f));return delete n.dense,e.join("")}function Yb(t,r,e,n){var a=1;if(!e)for(;a<=65535&&t.SheetNames.indexOf(e="Sheet"+a)!=-1;++a,e=void 0);if(!e||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var o=e.match(/(^.*?)(\d+)$/);a=o&&+o[2]||0;var s=o&&o[1]||e;for(++a;a<=65535&&t.SheetNames.indexOf(e=s+a)!=-1;++a);}if(Sb(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=r,e}function Kb(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}var H0=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],W0=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333","#000000"];function Xb(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(e,n){return new Promise(function(a,o){var s=new XMLHttpRequest;s.open(n.method||"GET",e,!0),s.responseType=n.responseType||"arraybuffer",s.onload=function(){s.status===200?a(s.response):o(s.status)},s.onerror=function(){o(s.status)},s.withCredentials=n.withCredentials||!1,n.headers&&Object.keys(n.headers).forEach(function(i){s.setRequestHeader(i,n.headers[i])}),s.send(n.body)})}(function(e,n){return typeof e=="string"?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e],n)):e instanceof Response?URL.createObjectURL(e.blob()):e}(t),r)}function V0(t){if(typeof t=="object")return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(t))return t.startsWith("#")?t:"#"+t;t=t.trim().toLowerCase();var r={};try{var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r.r=parseInt(e[2],16),r.g=parseInt(e[3],16),r.b=parseInt(e[4],16),r.a=parseInt(e[1],16)/255,Lr("rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(r.a,")")).toHexString()}catch(n){console.warn(n)}}function $0(t,r){return t>9?"#C7C9CC":r===void 0?H0[t]:r>0?function(e,n){for(var a=M1(e),o=0;o<3;o++)a[o]=Math.floor((255-a[o])*n+a[o]);return R1(a[0],a[1],a[2])}(H0[t],r):function(e,n){for(var a=M1(e),o=0;o<3;o++)a[o]=Math.floor(a[o]*(1-n));return R1(a[0],a[1],a[2])}(H0[t],Math.abs(r))}function a_(t){t.style=bh.cloneDeep(t.style);var r=null;t.style.fill&&t.style.fill.fgColor&&(r=t.style.fill.fgColor.argb?V0(t.style.fill.fgColor.argb):t.style.fill.fgColor.hasOwnProperty("theme")?$0(t.style.fill.fgColor.theme,t.style.fill.fgColor.tint):t.style.fill.fgColor.indexed&&W0[t.style.fill.fgColor.indexed]||"#C7C9CC"),r&&(t.style.bgcolor=r);var e=null;if(t.style.font&&t.style.font.color&&(e=t.style.font.color.argb?V0(t.style.font.color.argb):t.style.font.color.hasOwnProperty("theme")?$0(t.style.font.color.theme,t.style.font.color.tint):t.style.font.color.indexed&&W0[t.style.font.color.indexed]||"#000000"),e&&(t.style.color=e),t.style.alignment&&(t.style.alignment.horizontal&&(t.style.align=t.style.alignment.horizontal),t.style.alignment.vertical&&(t.style.valign=t.style.alignment.vertical)),t.style.alignment&&t.style.alignment.wrapText&&(t.style.textwrap=!0),t.style.border){var n={};Object.keys(t.style.border).forEach(function(a){var o=t.style.border[a],s="#000000";typeof o.color=="string"?s=o.color:o.color&&(o.color.argb?s=V0(o.color.argb):o.color.hasOwnProperty("theme")?s=$0(o.color.theme,o.color.tint):o.color.indexed&&(s=W0[o.color.indexed])),n[a]=[o.style||"thin",s]}),t.style.border2=function(a){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{};o%2?Kb(Object(s),!0).forEach(function(i){Wa(a,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Kb(Object(s)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(s,i))})}return a}({},t.style.border),t.style.border=n}return t.style.font&&t.style.font.size&&typeof t.style.font.size=="number"&&(t.style.font.size=Math.round(t.style.font.size/1.333333)),t.style}function s_(t,r){var e=[];console.log(t,"workbook");var n=[];return t.eachSheet(function(a){n.push(a);var o={name:a.name,styles:[],rows:{},cols:{},merges:[],media:[]},s=[];for(var i in a._merges){o.merges.push(a._merges[i].shortRange);var u={};u.startAddress=a._merges[i].tl,u.endAddress=a._merges[i].br,u.YRange=a._merges[i].model.bottom-a._merges[i].model.top,u.XRange=a._merges[i].model.right-a._merges[i].model.left,s.push(u)}var l=0;(a._rows||[]).forEach(function(c,h){o.rows[h]={cells:{}},c._hidden?(o.rows[h].height=.1,c._cells=[]):c.height?o.rows[h].height=c.height+(r.heightOffset||0):o.rows[h].height=24+(r.heightOffset||0),(c._cells||[]).forEach(function(d,p){o.rows[h].cells[p]={},l=Math.max(l,p);var m=bh.find(s,function(v){return v.startAddress==d._address});m&&d.master.address!=m.startAddress||(m&&(o.rows[h].cells[p].merge=[m.YRange,m.XRange]),o.rows[h].cells[p].text=function(v){var b=v.numFmt,g=v.value;switch(v.type){case 2:try{if(v.style.numFmt){if(v.style.numFmt.endsWith("%")){var y=v.style.numFmt.match(/\.(\d+)%/);return y?(100*g).toFixed(y[1].length)+"%":100*g+"%"}if(/0(\.0+)?/.test(v.style.numFmt)){var k="";if(v.style.numFmt.startsWith("$")?k="$":v.style.numFmt.startsWith('"¥')&&(k="¥"),g===0&&v.style.numFmt.startsWith("_"))return"-";var S=v.style.numFmt.match(/0\.(0+)(_|;|$)/);S=S?S[1].length:0;var C=g.toFixed(S)+"";if(v.style.numFmt.includes("#,##")){for(var O=(C=C.split("."))[0].split("").reverse(),L=[],j=0;j<O.length;j++)L.push(O[j]),(j+1)%3==0&&j<O.length-1&&O[j+1]!=="-"&&L.push(",");C[0]=L.reverse().join(""),C=C.join(".")}return k+C}}return g+""}catch{return g}case 3:return g;case 4:switch(b){case"yyyy-mm-dd;@":default:return Tu(g).format("YYYY-MM-DD");case"mm-dd-yy":return Tu(g).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return Tu(g).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return Tu(g).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return Tu(g).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return Tu(g).format("HH:mm")}case 5:return g.text;case 6:return bh.get(g,"result.error")||g.result;case 8:return v.text;case 9:return v.text.toUpperCase();default:return g}}(d),o.styles.push(a_(d)),o.rows[h].cells[p].style=o.styles.length-1)})}),o._media&&(o.media=o._media);var f=Object.keys(o.rows);o.rows.len=Math.max(+f[f.length-1]+1,r.hasOwnProperty("minRowLength")?r.minRowLength:100),a._columns&&a._columns.length>l+1&&(a._columns=a._columns.slice(0,l+1)),function(c,h,d){for(var p=0;p<(c.columns||[]).length;p++)h.cols[p.toString()]={},c.columns[p]._hidden?h.cols[p.toString()].width=.1:c.columns[p].width?h.cols[p.toString()].width=6*c.columns[p].width+(d.widthOffset||0):h.cols[p.toString()].width=80+(d.widthOffset||0);h.cols.len=Math.max(Object.keys(h.cols).length,d.minColLength||0)}(a,o,r),e.push(o)}),t._worksheets=n,{workbookData:e,workbookSource:t,medias:t.media||[]}}var Yh=[];function q0(t,r,e,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};e&&e._media.length&&e._media.forEach(function(o){var s=o.imageId,i=o.range;if(o.type==="image"){var u=function(l,f,c,h){for(var d,p,m=h.widthOffset,v=h.heightOffset,b=f.tl,g=f.br,y=f.ext,k=b||{},S=k.nativeCol,C=S===void 0?0:S,O=k.nativeColOff,L=O===void 0?0:O,j=k.nativeRow,U=j===void 0?0:j,z=k.nativeRowOff,Y=z===void 0?0:z,A=Kh,I=Xh,_=0;_<C;_++){var x;A+=6*(l==null||(x=l._columns)===null||x===void 0||(x=x[_])===null||x===void 0?void 0:x.width)||G0,A+=m||0}for(var T=0;T<U;T++){var E;I+=(l==null||(E=l._rows)===null||E===void 0||(E=E[T])===null||E===void 0?void 0:E.height)||Y0,I+=v||0}var M,F=A+L/12700,P=I+Y/12700,W=g||{},N=W.nativeCol,q=N===void 0?0:N,nt=W.nativeColOff,J=nt===void 0?0:nt,St=W.nativeRow,kt=St===void 0?0:St,Mt=W.nativeRowOff,at=Mt===void 0?0:Mt,K=0;if(C===q&&g)K=(J-L)/12700;else if(g){var it;K=(6*(l==null||(it=l._columns)===null||it===void 0||(it=it[C])===null||it===void 0?void 0:it.width)||G0)-L/12700;for(var st=C+1;st<q;st++){var Nt;K+=6*(l==null||(Nt=l._columns)===null||Nt===void 0||(Nt=Nt[st])===null||Nt===void 0?void 0:Nt.width)||G0}K+=J/12700}else y!=null&&y.width&&(K=y.width/1.333333);if(U===kt)M=(at-Y)/12700;else if(g){var rt;M=((l==null||(rt=l._rows)===null||rt===void 0||(rt=rt[U])===null||rt===void 0?void 0:rt.height)||Y0)-Y/12700;for(var mt=U+1;mt<kt;mt++){var Xt;M+=(l==null||(Xt=l._rows)===null||Xt===void 0||(Xt=Xt[mt])===null||Xt===void 0?void 0:Xt.height)||Y0}M+=at/12700}else y!=null&&y.height&&(M=y.height/1.333333);return{x:(F-((c==null||(d=c.scroll)===null||d===void 0?void 0:d.x)||0))*no,y:(P-((c==null||(p=c.scroll)===null||p===void 0?void 0:p.y)||0))*no,width:K*no,height:M*no}}(e,i,n,a);(function(l,f,c,h){(function(d,p){return new Promise(function(m,v){if(Yh[d])return m(Yh[d]);var b=p.buffer.buffer,g=new Blob([b],{type:"image/"+p.extension}),y=URL.createObjectURL(g),k=new Image;k.src=y,k.onload=function(){m(k),Yh[d]=k},k.onerror=function(S){v(S)}})})(f,c).then(function(d){var p=0,m=0,v=d.width,b=d.height,g=h.x,y=h.y,k=h.width,S=h.height,C=k/v,O=S/b;if(g<Kh*no){var L=Kh*no-g;g=Kh*no,k-=L,v-=L/C,p+=L/C}if(y<Xh*no){var j=Xh*no-y;y=Xh*no,S-=j,b-=j/O,m+=j/O}var U=window.outerWidth/window.innerWidth;l.drawImage(d,p,m,v,b,g*U,y*U,k*U,S*U)}).catch(function(d){console.error(d)})})(t,s,r[s],u)}})}var Kh=60,Xh=25,G0=80,Y0=24,no=window.devicePixelRatio;function Zb(){Yh=[]}const o_=(t,r)=>{const e=t.__vccOpts||t;for(const[n,a]of r)e[n]=a;return e};function Jb(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),e.push.apply(e,n)}return e}function K0(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Jb(Object(e),!0).forEach(function(n){Wa(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Jb(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}var Qb={xls:!1,minColLength:20},l_=Sn.defineComponent({name:"VueOfficeExcel",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return K0({},Qb)}}},emits:["rendered","error","switchSheet","cellSelected","cellsSelected"],setup:function(t,r){var e=r.emit,n=Sn.ref(null),a=Sn.ref(null),o={_worksheets:[]},s=[],i=0,u=null,l=null,f=null,c=null;function h(d){c=d,function(p,m){try{return m&&(p=Vb(U0(p,{type:"array"}),{bookType:"xlsx",type:"array"})),new Iw.Workbook().xlsx.load(p)}catch(v){return console.warn(v),Promise.reject(v)}}(d,t.options.xls).then(function(p){if(!p._worksheets||p._worksheets.length===0)throw new Error("未获取到数据,可能文件格式不正确或文件已损坏");t.options.beforeTransformData&&typeof t.options.beforeTransformData=="function"&&(p=t.options.beforeTransformData(p));var m=s_(p,K0(K0({},Qb),t.options)),v=m.workbookData,b=m.medias,g=m.workbookSource;t.options.transformData&&typeof t.options.transformData=="function"&&(v=t.options.transformData(v)),s=b,o=g,f=null,i=0,Zb(),l.loadData(v),q0(u,s,o._worksheets[i],f,t.options),e("rendered"),e("switchSheet",0)}).catch(function(p){console.warn(p),s=[],o={_worksheets:[]},Zb(),l&&l.loadData({}),e("error",p),e("switchSheet",0)})}return Sn.onMounted(function(){Sn.nextTick(function(){(l=new l1(a.value,{mode:"read",showToolbar:!1,showContextmenu:t.options.showContextmenu||!1,view:{height:function(){return n.value&&n.value.clientHeight||300},width:function(){return n.value&&n.value.clientWidth||1200}},row:{height:24,len:100},col:{len:26,width:80,indexWidth:60,minWidth:60},autoFocus:!1}).loadData({})).on("cell-selected",function(g,y,k){e("cellSelected",{cell:g,rowIndex:y,columnIndex:k})}),l.on("cells-selected",function(g,y){var k=y.sri,S=y.sci,C=y.eri,O=y.eci;e("cellsSelected",{cell:g,startRowIndex:k,startColumnIndex:S,endRowIndex:C,endColumnIndex:O})});var d=l.bottombar.swapFunc;l.bottombar.swapFunc=function(g){d.call(l.bottombar,g),i=g,f=l.sheet.data.getSelectedRect(),setTimeout(function(){l.reRender(),q0(u,s,o._worksheets[i],f,t.options),e("switchSheet",g)})};var p=bh.debounce(q0,200,{leading:!0}),m=l.sheet.table.render;l.sheet.table.render=function(){for(var g=arguments.length,y=new Array(g),k=0;k<g;k++)y[k]=arguments[k];l&&l.sheet&&m.apply(l.sheet.table,y),p(u,s,o._worksheets[i],f,t.options)};var v=l.sheet.editor.setOffset;l.sheet.editor.setOffset=function(){for(var g=arguments.length,y=new Array(g),k=0;k<g;k++)y[k]=arguments[k];v.apply(l.sheet.editor,y),f=y[0]};var b=a.value.querySelector("canvas");u=b.getContext("2d"),t.src&&Xb(t.src,t.requestOptions).then(h).catch(function(g){s=[],o={_worksheets:[]},l.loadData({}),e("error",g)})})}),Sn.onBeforeUnmount(function(){l=null}),Sn.watch(function(){return t.src},function(){t.src?Xb(t.src,t.requestOptions).then(h).catch(function(d){s=[],o={_worksheets:[]},l.loadData({}),e("error",d)}):(s=[],o={_worksheets:[]},l.loadData({}),e("error",new Error("src属性不能为空")))}),{wrapperRef:n,rootRef:a,save:function(d){(function(p,m){w1.apply(this,arguments)})(d||"vue-office-excel-".concat(new Date().getTime(),".xlsx"),c)}}}}),u_={class:"vue-office-excel",ref:"wrapperRef"},c_={class:"vue-office-excel-main",ref:"rootRef"};const Zh=o_(l_,[["render",function(t,r,e,n,a,o){return Si.openBlock(),Si.createElementBlock("div",u_,[Si.createElementVNode("div",c_,null,512)],512)}]]);return Zh.install=function(t){t.component(Zh.name,Zh)},Zh})})(Jy);var I8=Jy.exports;const N8=Gy(I8),P8={class:"file-content flex center v-center"},D8=["src"],F8=["src"],L8={key:2,controls:"",style:{width:"50vw"}},B8=["src"],j8=["src"],z8={key:1,class:"error flex column text-center"},U8={key:1,class:"error flex column text-center"},H8={key:6,style:{background:"#fff"}},W8={__name:"index",props:{activeFile:{type:Object,default:()=>{}},preview:{type:Boolean,default:!1}},emits:["closeFile"],setup(kl,{emit:cc}){const Sn=kl;m8();const Si=lc(!1);_8(()=>Sn.preview,pi=>{console.log("val",pi),Si.value=pi},{deep:!0,immediate:!0});const Mn=lc(0),Za=lc(0),Wa=lc(0),Ns=lc(0);let mo=!1,cs=0,fs=0;const Tr=lc(!1);function Vt(){window.open(`${su}/file/stream/${Sn.activeFile.filePath}`)}function Xi(pi){pi.deltaY>0&&Za.value>.5&&(Za.value-=.1),pi.deltaY<0&&(Za.value+=.1)}function $t(){mo=!0,cs=event.clientX,fs=event.clientY}function uu(pi){mo&&(Mn.value%360===0&&(Wa.value+=pi.clientX-cs,Ns.value+=pi.clientY-fs),Mn.value===90&&(Ns.value-=pi.clientX-cs,Wa.value+=pi.clientY-fs),Mn.value===180&&(Wa.value-=pi.clientX-cs,Ns.value-=pi.clientY-fs),Mn.value===270&&(Ns.value+=pi.clientX-cs,Wa.value-=pi.clientY-fs),cs=pi.clientX,fs=pi.clientY)}function vo(pi){mo=!1}function go(){Mn.value===360?Mn.value=0:Mn.value+=90}function ke(){Mn.value===0?Mn.value=270:Mn.value-=90}const nn=cc,zn=()=>{Si.value=!1,Sn.activeFile.value=null,nn("closeFile",!1)};return(pi,Qn)=>{const Nn=v8,Va=g8,bo=M8,Ti=b8;return pa(),zd(Ti,{title:"详情",modelValue:Rn(Si),"onUpdate:modelValue":Qn[7]||(Qn[7]=xl=>S8(Si)?Si.value=xl:null),width:"80vw",onClose:zn},{default:Ym(()=>[Ys("div",P8,[Rn(ac)(Sn.activeFile.name)===Rn(sc).IMG?(pa(),us("div",{key:0,class:"img-container flex center",onWheel:Xi},[Ys("img",{src:`${Rn(su)}/file/stream/${Sn.activeFile.filePath}`,ref:"imgRef",onClick:Qn[0]||(Qn[0]=ou(()=>{},["stop"])),style:k8({transform:`rotate(${Rn(Mn)}deg) scale(${Rn(Za)}) translate(${Rn(Wa)}px, ${Rn(Ns)}px)`}),onMousedown:$t,onMousemove:uu,onMouseup:vo,draggable:"false"},null,44,D8),Ys("button",{class:"rotate-left-btn pointer",onClick:ou(go,["stop","prevent"]),size:"small",title:"左旋转"},[jd(Nn,{name:"local-icon-rotate-left",size:28})]),Ys("button",{class:"rotate-right-btn pointer",onClick:ou(ke,["stop","prevent"]),size:"small",title:"右旋转"},[jd(Nn,{name:"local-icon-rotate-right",size:28})])],32)):Rn(ac)(Sn.activeFile.name)===Rn(sc).PDF?(pa(),us("iframe",{key:1,src:`${Rn(su)}/file/stream/${Sn.activeFile.filePath}`,style:{height:"100vh",width:"900px"}},null,8,F8)):Rn(ac)(Sn.activeFile.name)===Rn(sc).MP3?(pa(),us("audio",L8,[Ys("source",{src:`${Rn(su)}/file/stream/${Sn.activeFile.filePath}`,type:"audio/mp3"},null,8,B8)])):Rn(ac)(Sn.activeFile.name)===Rn(sc).MP4?(pa(),us("video",{key:3,controls:"",onClick:Qn[1]||(Qn[1]=ou(()=>{},["stop"])),style:{"max-height":"100vh"}},[Ys("source",{src:`${Rn(su)}/file/stream/${Sn.activeFile.filePath}`,type:"video/mp4"},null,8,j8)])):Rn(ac)(Sn.activeFile.name)===Rn(sc).WORD?(pa(),us($y,{key:4},[Rn(Tr)?(pa(),us("div",z8,Qn[8]||(Qn[8]=[Ys("span",{style:{padding:"20px"}},"文件预览解析错误,如有需要请下载到本地预览",-1)]))):(pa(),zd(Rn(O8),{key:0,src:`${Rn(su)}/file/stream/${Sn.activeFile.filePath}`,style:{height:"100vh",width:"900px"},onError:Qn[2]||(Qn[2]=xl=>Tr.value=!0),onClick:Qn[3]||(Qn[3]=ou(()=>{},["stop"]))},null,8,["src"]))],64)):Rn(ac)(Sn.activeFile.name)===Rn(sc).EXCEL&&Sn.activeFile.name.toLocaleLowerCase().endsWith(".xlsx")?(pa(),us($y,{key:5},[Rn(Tr)?(pa(),us("div",U8,Qn[9]||(Qn[9]=[Ys("span",{style:{padding:"20px"}},"文件预览解析错误,如有需要请下载到本地预览",-1)]))):(pa(),zd(Rn(N8),{key:0,src:`${Rn(su)}/file/stream/${Sn.activeFile.filePath}`,style:{height:"100vh",width:"60vw"},onError:Qn[4]||(Qn[4]=xl=>Tr.value=!0),onClick:Qn[5]||(Qn[5]=ou(()=>{},["stop"]))},null,8,["src"]))],64)):(pa(),us("div",H8,[jd(bo,{icon:"error",title:"不支持预览","sub-title":"该文件格式暂不支持预览,请下载预览",style:{background:"#fff",width:"100%",height:"400px"},onClick:Qn[6]||(Qn[6]=ou(()=>{},["stop"]))},{extra:Ym(()=>[jd(Va,{type:"primary",text:"",size:"large",onClick:Vt},{default:Ym(()=>Qn[10]||(Qn[10]=[x8("下载文件",-1)])),_:1,__:[10]})]),_:1})]))])]),_:1},8,["modelValue"])}}},G8=p8(W8,[["__scopeId","data-v-9760b44b"]]);export{M8 as E,O8 as V,N8 as a,G8 as r};
|