import{t as _8,b as x8,a as C8,d as S8,E as Pn,e as B0,c as ks,f as Qh,g as OC,h as ha,i as Jw,j as _i,k as LC,m as k8,l as PC,n as T8,s as Au,o as mx,p as gx,D as kd}from"./app-BxVyp1Ow.js";import{i as E8,b as I8,d as pa,g as dy,c as st,a as Oe,e as de,n as av,r as Ce,f as Et,w as q,t as ht,h as xi,j as z,F as Zt,k as Hr,l as ao,m as Ue,p as we,q as Vl,E as ut,o as oa,s as Ai,u as na,v as tr,x as Cl,y as Ra,z as Pr,A as St,B as B8,C as qw,D as Zn,G as il,H as R1,I as RC,J as hy,K as UC,L as qh,M as Ro,N as e_,O as F8,P as _0,Q as H2,R as NC,S as M8,T as Xh,U as $l,V as U0,W as iA,X as sA,Y as D8,Z as jC,_ as vx,$ as Ay,a0 as t_,a1 as Cf,a2 as O8,a3 as L8,a4 as P8,a5 as R8,a6 as U8,a7 as N8,a8 as HC,a9 as j8,aa as H8,ab as _1,ac as Q8,ad as z8,ae as V8,af as W8,ag as G8}from"./index-CEikA1F8.js";import{c as Xu,r as vb,a as py,b as Sf,d as $8,g as K8,B as N0}from"./pdf-converter-Dh5k_UdV.js";import{G as Y8,D as To,a as pi,P as pu,u as ls,c as QC,b as zC,t as X8,q as yx,f as VC,d as my,e as Z8,h as Zu,m as Wm,j as WC,k as r_,l as cw,n as GC,o as $C,p as J8,r as n_,s as q8,v as eT,w as tT,x as rT,y as nT,z as KC,A as fw,B as Un,C as aT,E as Di,F as iT,H as kf,I as sT,U as oT,J as lT,K as Vh,L as uT,M as cT,N as fT,O as dT,Q as bx,R as hT,S as AT,T as pT,V as a_,W as mT,X as gT,i as vT,Y as yT}from"./labelTemplate-C33WPopD.js";import{_ as cn}from"./_plugin-vue_export-helper-DlAUqK2U.js";var wx=1/0,bT=17976931348623157e292;function wT(a){if(!a)return a===0?a:0;if(a=_8(a),a===wx||a===-wx){var s=a<0?-1:1;return s*bT}return a===a?a:0}function _T(a){var s=wT(a),r=s%1;return s===s?r?s-r:s:0}var xT=Math.ceil,CT=Math.max;function ST(a,s,r){s===void 0?s=1:s=CT(_T(s),0);var i=a==null?0:a.length;if(!i||s<1)return[];for(var n=0,t=0,c=Array(xT(i/s));n<i;)c[t++]=x8(a,n,n+=s);return c}function kT(a,s,r,i){for(var n=-1,t=a==null?0:a.length;++n<t;){var c=a[n];s(i,c,r(c),a)}return i}function TT(a,s,r,i){return C8(a,function(n,t,c){s(i,n,r(n),c)}),i}function ET(a,s){return function(r,i){var n=E8(r)?kT:TT,t={};return n(r,a,S8(i),t)}}var IT=Object.prototype,BT=IT.hasOwnProperty,FT=ET(function(a,s,r){BT.call(a,r)?a[r].push(s):I8(a,r,[s])}),yb={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
*/var _x;function MT(){return _x||(_x=1,(function(a,s){(function(r){a.exports=r()})(function(){return(function r(i,n,t){function c(o,l){if(!n[o]){if(!i[o]){var g=typeof Xu=="function"&&Xu;if(!l&&g)return g(o,!0);if(u)return u(o,!0);var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}var p=n[o]={exports:{}};i[o][0].call(p.exports,function(_){var y=i[o][1][_];return c(y||_)},p,p.exports,r,i,n,t)}return n[o].exports}for(var u=typeof Xu=="function"&&Xu,f=0;f<t.length;f++)c(t[f]);return c})({1:[function(r,i,n){var t=r("./utils"),c=r("./support"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(f){for(var o,l,g,m,p,_,y,h=[],d=0,A=f.length,v=A,w=t.getTypeOf(f)!=="string";d<f.length;)v=A-d,g=w?(o=f[d++],l=d<A?f[d++]:0,d<A?f[d++]:0):(o=f.charCodeAt(d++),l=d<A?f.charCodeAt(d++):0,d<A?f.charCodeAt(d++):0),m=o>>2,p=(3&o)<<4|l>>4,_=1<v?(15&l)<<2|g>>6:64,y=2<v?63&g:64,h.push(u.charAt(m)+u.charAt(p)+u.charAt(_)+u.charAt(y));return h.join("")},n.decode=function(f){var o,l,g,m,p,_,y=0,h=0,d="data:";if(f.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var A,v=3*(f=f.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(f.charAt(f.length-1)===u.charAt(64)&&v--,f.charAt(f.length-2)===u.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(A=c.uint8array?new Uint8Array(0|v):new Array(0|v);y<f.length;)o=u.indexOf(f.charAt(y++))<<2|(m=u.indexOf(f.charAt(y++)))>>4,l=(15&m)<<4|(p=u.indexOf(f.charAt(y++)))>>2,g=(3&p)<<6|(_=u.indexOf(f.charAt(y++))),A[h++]=o,p!==64&&(A[h++]=l),_!==64&&(A[h++]=g);return A}},{"./support":30,"./utils":32}],2:[function(r,i,n){var t=r("./external"),c=r("./stream/DataWorker"),u=r("./stream/Crc32Probe"),f=r("./stream/DataLengthProbe");function o(l,g,m,p,_){this.compressedSize=l,this.uncompressedSize=g,this.crc32=m,this.compression=p,this.compressedContent=_}o.prototype={getContentWorker:function(){var l=new c(t.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new f("data_length")),g=this;return l.on("end",function(){if(this.streamInfo.data_length!==g.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new c(t.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(l,g,m){return l.pipe(new u).pipe(new f("uncompressedSize")).pipe(g.compressWorker(m)).pipe(new f("compressedSize")).withStreamInfo("compression",g)},i.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,i,n){var t=r("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new t("STORE compression")},uncompressWorker:function(){return new t("STORE decompression")}},n.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,i,n){var t=r("./utils"),c=(function(){for(var u,f=[],o=0;o<256;o++){u=o;for(var l=0;l<8;l++)u=1&u?3988292384^u>>>1:u>>>1;f[o]=u}return f})();i.exports=function(u,f){return u!==void 0&&u.length?t.getTypeOf(u)!=="string"?(function(o,l,g,m){var p=c,_=m+g;o^=-1;for(var y=m;y<_;y++)o=o>>>8^p[255&(o^l[y])];return-1^o})(0|f,u,u.length,0):(function(o,l,g,m){var p=c,_=m+g;o^=-1;for(var y=m;y<_;y++)o=o>>>8^p[255&(o^l.charCodeAt(y))];return-1^o})(0|f,u,u.length,0):0}},{"./utils":32}],5:[function(r,i,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(r,i,n){var t=null;t=typeof Promise<"u"?Promise:r("lie"),i.exports={Promise:t}},{lie:37}],7:[function(r,i,n){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",c=r("pako"),u=r("./utils"),f=r("./stream/GenericWorker"),o=t?"uint8array":"array";function l(g,m){f.call(this,"FlateWorker/"+g),this._pako=null,this._pakoAction=g,this._pakoOptions=m,this.meta={}}n.magic="\b\0",u.inherits(l,f),l.prototype.processChunk=function(g){this.meta=g.meta,this._pako===null&&this._createPako(),this._pako.push(u.transformTo(o,g.data),!1)},l.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new c[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var g=this;this._pako.onData=function(m){g.push({data:m,meta:g.meta})}},n.compressWorker=function(g){return new l("Deflate",g)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,i,n){function t(p,_){var y,h="";for(y=0;y<_;y++)h+=String.fromCharCode(255&p),p>>>=8;return h}function c(p,_,y,h,d,A){var v,w,x=p.file,C=p.compression,k=A!==o.utf8encode,T=u.transformTo("string",A(x.name)),S=u.transformTo("string",o.utf8encode(x.name)),M=x.comment,P=u.transformTo("string",A(M)),N=u.transformTo("string",o.utf8encode(M)),B=S.length!==x.name.length,O=N.length!==M.length,I="",F="",L="",R=x.dir,U=x.date,V={crc32:0,compressedSize:0,uncompressedSize:0};_&&!y||(V.crc32=p.crc32,V.compressedSize=p.compressedSize,V.uncompressedSize=p.uncompressedSize);var W=0;_&&(W|=8),k||!B&&!O||(W|=2048);var Q=0,le=0;R&&(Q|=16),d==="UNIX"?(le=798,Q|=(function(fe,ie){var he=fe;return fe||(he=ie?16893:33204),(65535&he)<<16})(x.unixPermissions,R)):(le=20,Q|=(function(fe){return 63&(fe||0)})(x.dosPermissions)),v=U.getUTCHours(),v<<=6,v|=U.getUTCMinutes(),v<<=5,v|=U.getUTCSeconds()/2,w=U.getUTCFullYear()-1980,w<<=4,w|=U.getUTCMonth()+1,w<<=5,w|=U.getUTCDate(),B&&(F=t(1,1)+t(l(T),4)+S,I+="up"+t(F.length,2)+F),O&&(L=t(1,1)+t(l(P),4)+N,I+="uc"+t(L.length,2)+L);var G="";return G+=`
\0`,G+=t(W,2),G+=C.magic,G+=t(v,2),G+=t(w,2),G+=t(V.crc32,4),G+=t(V.compressedSize,4),G+=t(V.uncompressedSize,4),G+=t(T.length,2),G+=t(I.length,2),{fileRecord:g.LOCAL_FILE_HEADER+G+T+I,dirRecord:g.CENTRAL_FILE_HEADER+t(le,2)+G+t(P.length,2)+"\0\0\0\0"+t(Q,4)+t(h,4)+T+I+P}}var u=r("../utils"),f=r("../stream/GenericWorker"),o=r("../utf8"),l=r("../crc32"),g=r("../signature");function m(p,_,y,h){f.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=_,this.zipPlatform=y,this.encodeFileName=h,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}u.inherits(m,f),m.prototype.push=function(p){var _=p.meta.percent||0,y=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,f.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:y?(_+100*(y-h-1))/y:100}}))},m.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var _=this.streamFiles&&!p.file.dir;if(_){var y=c(p,_,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(p){this.accumulate=!1;var _=this.streamFiles&&!p.file.dir,y=c(p,_,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),_)this.push({data:(function(h){return g.DATA_DESCRIPTOR+t(h.crc32,4)+t(h.compressedSize,4)+t(h.uncompressedSize,4)})(p),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var p=this.bytesWritten,_=0;_<this.dirRecords.length;_++)this.push({data:this.dirRecords[_],meta:{percent:100}});var y=this.bytesWritten-p,h=(function(d,A,v,w,x){var C=u.transformTo("string",x(w));return g.CENTRAL_DIRECTORY_END+"\0\0\0\0"+t(d,2)+t(d,2)+t(A,4)+t(v,4)+t(C.length,2)+C})(this.dirRecords.length,y,p,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(p){this._sources.push(p);var _=this;return p.on("data",function(y){_.processChunk(y)}),p.on("end",function(){_.closedSource(_.previous.streamInfo),_._sources.length?_.prepareNextSource():_.end()}),p.on("error",function(y){_.error(y)}),this},m.prototype.resume=function(){return!!f.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(p){var _=this._sources;if(!f.prototype.error.call(this,p))return!1;for(var y=0;y<_.length;y++)try{_[y].error(p)}catch{}return!0},m.prototype.lock=function(){f.prototype.lock.call(this);for(var p=this._sources,_=0;_<p.length;_++)p[_].lock()},i.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,i,n){var t=r("../compressions"),c=r("./ZipFileWorker");n.generateWorker=function(u,f,o){var l=new c(f.streamFiles,o,f.platform,f.encodeFileName),g=0;try{u.forEach(function(m,p){g++;var _=(function(A,v){var w=A||v,x=t[w];if(!x)throw new Error(w+" is not a valid compression method !");return x})(p.options.compression,f.compression),y=p.options.compressionOptions||f.compressionOptions||{},h=p.dir,d=p.date;p._compressWorker(_,y).withStreamInfo("file",{name:m,dir:h,date:d,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(l)}),l.entriesCount=g}catch(m){l.error(m)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,i,n){function t(){if(!(this instanceof t))return new t;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 c=new t;for(var u in this)typeof this[u]!="function"&&(c[u]=this[u]);return c}}(t.prototype=r("./object")).loadAsync=r("./load"),t.support=r("./support"),t.defaults=r("./defaults"),t.version="3.10.1",t.loadAsync=function(c,u){return new t().loadAsync(c,u)},t.external=r("./external"),i.exports=t},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,i,n){var t=r("./utils"),c=r("./external"),u=r("./utf8"),f=r("./zipEntries"),o=r("./stream/Crc32Probe"),l=r("./nodejsUtils");function g(m){return new c.Promise(function(p,_){var y=m.decompressed.getContentWorker().pipe(new o);y.on("error",function(h){_(h)}).on("end",function(){y.streamInfo.crc32!==m.decompressed.crc32?_(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}i.exports=function(m,p){var _=this;return p=t.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:u.utf8decode}),l.isNode&&l.isStream(m)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):t.prepareContent("the loaded zip file",m,!0,p.optimizedBinaryString,p.base64).then(function(y){var h=new f(p);return h.load(y),h}).then(function(y){var h=[c.Promise.resolve(y)],d=y.files;if(p.checkCRC32)for(var A=0;A<d.length;A++)h.push(g(d[A]));return c.Promise.all(h)}).then(function(y){for(var h=y.shift(),d=h.files,A=0;A<d.length;A++){var v=d[A],w=v.fileNameStr,x=t.resolve(v.fileNameStr);_.file(x,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:p.createFolders}),v.dir||(_.file(x).unsafeOriginalName=w)}return h.zipComment.length&&(_.comment=h.zipComment),_})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,i,n){var t=r("../utils"),c=r("../stream/GenericWorker");function u(f,o){c.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(o)}t.inherits(u,c),u.prototype._bindStream=function(f){var o=this;(this._stream=f).pause(),f.on("data",function(l){o.push({data:l,meta:{percent:0}})}).on("error",function(l){o.isPaused?this.generatedError=l:o.error(l)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},u.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},u.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=u},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,i,n){var t=r("readable-stream").Readable;function c(u,f,o){t.call(this,f),this._helper=u;var l=this;u.on("data",function(g,m){l.push(g)||l._helper.pause(),o&&o(m)}).on("error",function(g){l.emit("error",g)}).on("end",function(){l.push(null)})}r("../utils").inherits(c,t),c.prototype._read=function(){this._helper.resume()},i.exports=c},{"../utils":32,"readable-stream":16}],14:[function(r,i,n){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(t,c){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,c);if(typeof t=="number")throw new Error('The "data" argument must not be a number');return new Buffer(t,c)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var c=new Buffer(t);return c.fill(0),c},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&typeof t.on=="function"&&typeof t.pause=="function"&&typeof t.resume=="function"}}},{}],15:[function(r,i,n){function t(x,C,k){var T,S=u.getTypeOf(C),M=u.extend(k||{},l);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&&(x=d(x)),M.createFolders&&(T=h(x))&&A.call(this,T,!0);var P=S==="string"&&M.binary===!1&&M.base64===!1;k&&k.binary!==void 0||(M.binary=!P),(C instanceof g&&C.uncompressedSize===0||M.dir||!C||C.length===0)&&(M.base64=!1,M.binary=!0,C="",M.compression="STORE",S="string");var N=null;N=C instanceof g||C instanceof f?C:_.isNode&&_.isStream(C)?new y(x,C):u.prepareContent(x,C,M.binary,M.optimizedBinaryString,M.base64);var B=new m(x,N,M);this.files[x]=B}var c=r("./utf8"),u=r("./utils"),f=r("./stream/GenericWorker"),o=r("./stream/StreamHelper"),l=r("./defaults"),g=r("./compressedObject"),m=r("./zipObject"),p=r("./generate"),_=r("./nodejsUtils"),y=r("./nodejs/NodejsStreamInputAdapter"),h=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var C=x.lastIndexOf("/");return 0<C?x.substring(0,C):""},d=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},A=function(x,C){return C=C!==void 0?C:l.createFolders,x=d(x),this.files[x]||t.call(this,x,null,{dir:!0,createFolders:C}),this.files[x]};function v(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var C,k,T;for(C in this.files)T=this.files[C],(k=C.slice(this.root.length,C.length))&&C.slice(0,this.root.length)===this.root&&x(k,T)},filter:function(x){var C=[];return this.forEach(function(k,T){x(k,T)&&C.push(T)}),C},file:function(x,C,k){if(arguments.length!==1)return x=this.root+x,t.call(this,x,C,k),this;if(v(x)){var T=x;return this.filter(function(M,P){return!P.dir&&T.test(M)})}var S=this.files[this.root+x];return S&&!S.dir?S:null},folder:function(x){if(!x)return this;if(v(x))return this.filter(function(S,M){return M.dir&&x.test(S)});var C=this.root+x,k=A.call(this,C),T=this.clone();return T.root=k.name,T},remove:function(x){x=this.root+x;var C=this.files[x];if(C||(x.slice(-1)!=="/"&&(x+="/"),C=this.files[x]),C&&!C.dir)delete this.files[x];else for(var k=this.filter(function(S,M){return M.name.slice(0,x.length)===x}),T=0;T<k.length;T++)delete this.files[k[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(x){var C,k={};try{if((k=u.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=k.type.toLowerCase(),k.compression=k.compression.toUpperCase(),k.type==="binarystring"&&(k.type="string"),!k.type)throw new Error("No output type specified.");u.checkSupport(k.type),k.platform!=="darwin"&&k.platform!=="freebsd"&&k.platform!=="linux"&&k.platform!=="sunos"||(k.platform="UNIX"),k.platform==="win32"&&(k.platform="DOS");var T=k.comment||this.comment||"";C=p.generateWorker(this,k,T)}catch(S){(C=new f("error")).error(S)}return new o(C,k.type||"string",k.mimeType)},generateAsync:function(x,C){return this.generateInternalStream(x).accumulate(C)},generateNodeStream:function(x,C){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(C)}};i.exports=w},{"./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(r,i,n){i.exports=r("stream")},{stream:void 0}],17:[function(r,i,n){var t=r("./DataReader");function c(u){t.call(this,u);for(var f=0;f<this.data.length;f++)u[f]=255&u[f]}r("../utils").inherits(c,t),c.prototype.byteAt=function(u){return this.data[this.zero+u]},c.prototype.lastIndexOfSignature=function(u){for(var f=u.charCodeAt(0),o=u.charCodeAt(1),l=u.charCodeAt(2),g=u.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===f&&this.data[m+1]===o&&this.data[m+2]===l&&this.data[m+3]===g)return m-this.zero;return-1},c.prototype.readAndCheckSignature=function(u){var f=u.charCodeAt(0),o=u.charCodeAt(1),l=u.charCodeAt(2),g=u.charCodeAt(3),m=this.readData(4);return f===m[0]&&o===m[1]&&l===m[2]&&g===m[3]},c.prototype.readData=function(u){if(this.checkOffset(u),u===0)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./DataReader":18}],18:[function(r,i,n){var t=r("../utils");function c(u){this.data=u,this.length=u.length,this.index=0,this.zero=0}c.prototype={checkOffset:function(u){this.checkIndex(this.index+u)},checkIndex:function(u){if(this.length<this.zero+u||u<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+u+"). Corrupted zip ?")},setIndex:function(u){this.checkIndex(u),this.index=u},skip:function(u){this.setIndex(this.index+u)},byteAt:function(){},readInt:function(u){var f,o=0;for(this.checkOffset(u),f=this.index+u-1;f>=this.index;f--)o=(o<<8)+this.byteAt(f);return this.index+=u,o},readString:function(u){return t.transformTo("string",this.readData(u))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var u=this.readInt(4);return new Date(Date.UTC(1980+(u>>25&127),(u>>21&15)-1,u>>16&31,u>>11&31,u>>5&63,(31&u)<<1))}},i.exports=c},{"../utils":32}],19:[function(r,i,n){var t=r("./Uint8ArrayReader");function c(u){t.call(this,u)}r("../utils").inherits(c,t),c.prototype.readData=function(u){this.checkOffset(u);var f=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,i,n){var t=r("./DataReader");function c(u){t.call(this,u)}r("../utils").inherits(c,t),c.prototype.byteAt=function(u){return this.data.charCodeAt(this.zero+u)},c.prototype.lastIndexOfSignature=function(u){return this.data.lastIndexOf(u)-this.zero},c.prototype.readAndCheckSignature=function(u){return u===this.readData(4)},c.prototype.readData=function(u){this.checkOffset(u);var f=this.data.slice(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./DataReader":18}],21:[function(r,i,n){var t=r("./ArrayReader");function c(u){t.call(this,u)}r("../utils").inherits(c,t),c.prototype.readData=function(u){if(this.checkOffset(u),u===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+u);return this.index+=u,f},i.exports=c},{"../utils":32,"./ArrayReader":17}],22:[function(r,i,n){var t=r("../utils"),c=r("../support"),u=r("./ArrayReader"),f=r("./StringReader"),o=r("./NodeBufferReader"),l=r("./Uint8ArrayReader");i.exports=function(g){var m=t.getTypeOf(g);return t.checkSupport(m),m!=="string"||c.uint8array?m==="nodebuffer"?new o(g):c.uint8array?new l(t.transformTo("uint8array",g)):new u(t.transformTo("array",g)):new f(g)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,i,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,i,n){var t=r("./GenericWorker"),c=r("../utils");function u(f){t.call(this,"ConvertWorker to "+f),this.destType=f}c.inherits(u,t),u.prototype.processChunk=function(f){this.push({data:c.transformTo(this.destType,f.data),meta:f.meta})},i.exports=u},{"../utils":32,"./GenericWorker":28}],25:[function(r,i,n){var t=r("./GenericWorker"),c=r("../crc32");function u(){t.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(u,t),u.prototype.processChunk=function(f){this.streamInfo.crc32=c(f.data,this.streamInfo.crc32||0),this.push(f)},i.exports=u},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,i,n){var t=r("../utils"),c=r("./GenericWorker");function u(f){c.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}t.inherits(u,c),u.prototype.processChunk=function(f){if(f){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+f.data.length}c.prototype.processChunk.call(this,f)},i.exports=u},{"../utils":32,"./GenericWorker":28}],27:[function(r,i,n){var t=r("../utils"),c=r("./GenericWorker");function u(f){c.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,f.then(function(l){o.dataIsReady=!0,o.data=l,o.max=l&&l.length||0,o.type=t.getTypeOf(l),o.isPaused||o._tickAndRepeat()},function(l){o.error(l)})}t.inherits(u,c),u.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},u.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,t.delay(this._tickAndRepeat,[],this)),!0)},u.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(t.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},u.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var f=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":f=this.data.substring(this.index,o);break;case"uint8array":f=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":f=this.data.slice(this.index,o)}return this.index=o,this.push({data:f,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=u},{"../utils":32,"./GenericWorker":28}],28:[function(r,i,n){function t(c){this.name=c||"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}t.prototype={push:function(c){this.emit("data",c)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(c){this.emit("error",c)}return!0},error:function(c){return!this.isFinished&&(this.isPaused?this.generatedError=c:(this.isFinished=!0,this.emit("error",c),this.previous&&this.previous.error(c),this.cleanUp()),!0)},on:function(c,u){return this._listeners[c].push(u),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(c,u){if(this._listeners[c])for(var f=0;f<this._listeners[c].length;f++)this._listeners[c][f].call(this,u)},pipe:function(c){return c.registerPrevious(this)},registerPrevious:function(c){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=c.streamInfo,this.mergeStreamInfo(),this.previous=c;var u=this;return c.on("data",function(f){u.processChunk(f)}),c.on("end",function(){u.end()}),c.on("error",function(f){u.error(f)}),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 c=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),c=!0),this.previous&&this.previous.resume(),!c},flush:function(){},processChunk:function(c){this.push(c)},withStreamInfo:function(c,u){return this.extraStreamInfo[c]=u,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var c in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,c)&&(this.streamInfo[c]=this.extraStreamInfo[c])},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 c="Worker "+this.name;return this.previous?this.previous+" -> "+c:c}},i.exports=t},{}],29:[function(r,i,n){var t=r("../utils"),c=r("./ConvertWorker"),u=r("./GenericWorker"),f=r("../base64"),o=r("../support"),l=r("../external"),g=null;if(o.nodestream)try{g=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(_,y){return new l.Promise(function(h,d){var A=[],v=_._internalType,w=_._outputType,x=_._mimeType;_.on("data",function(C,k){A.push(C),y&&y(k)}).on("error",function(C){A=[],d(C)}).on("end",function(){try{var C=(function(k,T,S){switch(k){case"blob":return t.newBlob(t.transformTo("arraybuffer",T),S);case"base64":return f.encode(T);default:return t.transformTo(k,T)}})(w,(function(k,T){var S,M=0,P=null,N=0;for(S=0;S<T.length;S++)N+=T[S].length;switch(k){case"string":return T.join("");case"array":return Array.prototype.concat.apply([],T);case"uint8array":for(P=new Uint8Array(N),S=0;S<T.length;S++)P.set(T[S],M),M+=T[S].length;return P;case"nodebuffer":return Buffer.concat(T);default:throw new Error("concat : unsupported type '"+k+"'")}})(v,A),x);h(C)}catch(k){d(k)}A=[]}).resume()})}function p(_,y,h){var d=y;switch(y){case"blob":case"arraybuffer":d="uint8array";break;case"base64":d="string"}try{this._internalType=d,this._outputType=y,this._mimeType=h,t.checkSupport(d),this._worker=_.pipe(new c(d)),_.lock()}catch(A){this._worker=new u("error"),this._worker.error(A)}}p.prototype={accumulate:function(_){return m(this,_)},on:function(_,y){var h=this;return _==="data"?this._worker.on(_,function(d){y.call(h,d.data,d.meta)}):this._worker.on(_,function(){t.delay(y,arguments,h)}),this},resume:function(){return t.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(_){if(t.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new g(this,{objectMode:this._outputType!=="nodebuffer"},_)}},i.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,i,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",n.nodebuffer=typeof Buffer<"u",n.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")n.blob=!1;else{var t=new ArrayBuffer(0);try{n.blob=new Blob([t],{type:"application/zip"}).size===0}catch{try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(t),n.blob=c.getBlob("application/zip").size===0}catch{n.blob=!1}}}try{n.nodestream=!!r("readable-stream").Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(r,i,n){for(var t=r("./utils"),c=r("./support"),u=r("./nodejsUtils"),f=r("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;o[254]=o[254]=1;function g(){f.call(this,"utf-8 decode"),this.leftOver=null}function m(){f.call(this,"utf-8 encode")}n.utf8encode=function(p){return c.nodebuffer?u.newBufferFrom(p,"utf-8"):(function(_){var y,h,d,A,v,w=_.length,x=0;for(A=0;A<w;A++)(64512&(h=_.charCodeAt(A)))==55296&&A+1<w&&(64512&(d=_.charCodeAt(A+1)))==56320&&(h=65536+(h-55296<<10)+(d-56320),A++),x+=h<128?1:h<2048?2:h<65536?3:4;for(y=c.uint8array?new Uint8Array(x):new Array(x),A=v=0;v<x;A++)(64512&(h=_.charCodeAt(A)))==55296&&A+1<w&&(64512&(d=_.charCodeAt(A+1)))==56320&&(h=65536+(h-55296<<10)+(d-56320),A++),h<128?y[v++]=h:(h<2048?y[v++]=192|h>>>6:(h<65536?y[v++]=224|h>>>12:(y[v++]=240|h>>>18,y[v++]=128|h>>>12&63),y[v++]=128|h>>>6&63),y[v++]=128|63&h);return y})(p)},n.utf8decode=function(p){return c.nodebuffer?t.transformTo("nodebuffer",p).toString("utf-8"):(function(_){var y,h,d,A,v=_.length,w=new Array(2*v);for(y=h=0;y<v;)if((d=_[y++])<128)w[h++]=d;else if(4<(A=o[d]))w[h++]=65533,y+=A-1;else{for(d&=A===2?31:A===3?15:7;1<A&&y<v;)d=d<<6|63&_[y++],A--;1<A?w[h++]=65533:d<65536?w[h++]=d:(d-=65536,w[h++]=55296|d>>10&1023,w[h++]=56320|1023&d)}return w.length!==h&&(w.subarray?w=w.subarray(0,h):w.length=h),t.applyFromCharCode(w)})(p=t.transformTo(c.uint8array?"uint8array":"array",p))},t.inherits(g,f),g.prototype.processChunk=function(p){var _=t.transformTo(c.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(c.uint8array){var y=_;(_=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),_.set(y,this.leftOver.length)}else _=this.leftOver.concat(_);this.leftOver=null}var h=(function(A,v){var w;for((v=v||A.length)>A.length&&(v=A.length),w=v-1;0<=w&&(192&A[w])==128;)w--;return w<0||w===0?v:w+o[A[w]]>v?w:v})(_),d=_;h!==_.length&&(c.uint8array?(d=_.subarray(0,h),this.leftOver=_.subarray(h,_.length)):(d=_.slice(0,h),this.leftOver=_.slice(h,_.length))),this.push({data:n.utf8decode(d),meta:p.meta})},g.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=g,t.inherits(m,f),m.prototype.processChunk=function(p){this.push({data:n.utf8encode(p.data),meta:p.meta})},n.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,i,n){var t=r("./support"),c=r("./base64"),u=r("./nodejsUtils"),f=r("./external");function o(y){return y}function l(y,h){for(var d=0;d<y.length;++d)h[d]=255&y.charCodeAt(d);return h}r("setimmediate"),n.newBlob=function(y,h){n.checkSupport("blob");try{return new Blob([y],{type:h})}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return d.append(y),d.getBlob(h)}catch{throw new Error("Bug : can't construct the Blob.")}}};var g={stringifyByChunk:function(y,h,d){var A=[],v=0,w=y.length;if(w<=d)return String.fromCharCode.apply(null,y);for(;v<w;)h==="array"||h==="nodebuffer"?A.push(String.fromCharCode.apply(null,y.slice(v,Math.min(v+d,w)))):A.push(String.fromCharCode.apply(null,y.subarray(v,Math.min(v+d,w)))),v+=d;return A.join("")},stringifyByChar:function(y){for(var h="",d=0;d<y.length;d++)h+=String.fromCharCode(y[d]);return h},applyCanBeUsed:{uint8array:(function(){try{return t.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return t.nodebuffer&&String.fromCharCode.apply(null,u.allocBuffer(1)).length===1}catch{return!1}})()}};function m(y){var h=65536,d=n.getTypeOf(y),A=!0;if(d==="uint8array"?A=g.applyCanBeUsed.uint8array:d==="nodebuffer"&&(A=g.applyCanBeUsed.nodebuffer),A)for(;1<h;)try{return g.stringifyByChunk(y,d,h)}catch{h=Math.floor(h/2)}return g.stringifyByChar(y)}function p(y,h){for(var d=0;d<y.length;d++)h[d]=y[d];return h}n.applyFromCharCode=m;var _={};_.string={string:o,array:function(y){return l(y,new Array(y.length))},arraybuffer:function(y){return _.string.uint8array(y).buffer},uint8array:function(y){return l(y,new Uint8Array(y.length))},nodebuffer:function(y){return l(y,u.allocBuffer(y.length))}},_.array={string:m,array:o,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return u.newBufferFrom(y)}},_.arraybuffer={string:function(y){return m(new Uint8Array(y))},array:function(y){return p(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:o,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return u.newBufferFrom(new Uint8Array(y))}},_.uint8array={string:m,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:o,nodebuffer:function(y){return u.newBufferFrom(y)}},_.nodebuffer={string:m,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return _.nodebuffer.uint8array(y).buffer},uint8array:function(y){return p(y,new Uint8Array(y.length))},nodebuffer:o},n.transformTo=function(y,h){if(h=h||"",!y)return h;n.checkSupport(y);var d=n.getTypeOf(h);return _[d][y](h)},n.resolve=function(y){for(var h=y.split("/"),d=[],A=0;A<h.length;A++){var v=h[A];v==="."||v===""&&A!==0&&A!==h.length-1||(v===".."?d.pop():d.push(v))}return d.join("/")},n.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":t.nodebuffer&&u.isBuffer(y)?"nodebuffer":t.uint8array&&y instanceof Uint8Array?"uint8array":t.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(y){if(!t[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(y){var h,d,A="";for(d=0;d<(y||"").length;d++)A+="\\x"+((h=y.charCodeAt(d))<16?"0":"")+h.toString(16).toUpperCase();return A},n.delay=function(y,h,d){setImmediate(function(){y.apply(d||null,h||[])})},n.inherits=function(y,h){function d(){}d.prototype=h.prototype,y.prototype=new d},n.extend=function(){var y,h,d={};for(y=0;y<arguments.length;y++)for(h in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],h)&&d[h]===void 0&&(d[h]=arguments[y][h]);return d},n.prepareContent=function(y,h,d,A,v){return f.Promise.resolve(h).then(function(w){return t.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new f.Promise(function(x,C){var k=new FileReader;k.onload=function(T){x(T.target.result)},k.onerror=function(T){C(T.target.error)},k.readAsArrayBuffer(w)}):w}).then(function(w){var x=n.getTypeOf(w);return x?(x==="arraybuffer"?w=n.transformTo("uint8array",w):x==="string"&&(v?w=c.decode(w):d&&A!==!0&&(w=(function(C){return l(C,t.uint8array?new Uint8Array(C.length):new Array(C.length))})(w))),w):f.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,i,n){var t=r("./reader/readerFor"),c=r("./utils"),u=r("./signature"),f=r("./zipEntry"),o=r("./support");function l(g){this.files=[],this.loadOptions=g}l.prototype={checkSignature:function(g){if(!this.reader.readAndCheckSignature(g)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(m)+", expected "+c.pretty(g)+")")}},isSignature:function(g,m){var p=this.reader.index;this.reader.setIndex(g);var _=this.reader.readString(4)===m;return this.reader.setIndex(p),_},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 g=this.reader.readData(this.zipCommentLength),m=o.uint8array?"uint8array":"array",p=c.transformTo(m,g);this.zipComment=this.loadOptions.decodeFileName(p)},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 g,m,p,_=this.zip64EndOfCentralSize-44;0<_;)g=this.reader.readInt(2),m=this.reader.readInt(4),p=this.reader.readData(m),this.zip64ExtensibleData[g]={id:g,length:m,value:p}},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 g,m;for(g=0;g<this.files.length;g++)m=this.files[g],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(u.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var g;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(u.CENTRAL_FILE_HEADER);)(g=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(g);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 g=this.reader.lastIndexOfSignature(u.CENTRAL_DIRECTORY_END);if(g<0)throw this.isSignature(0,u.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(g);var m=g;if(this.checkSignature(u.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,(g=this.reader.lastIndexOfSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(g),this.checkSignature(u.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,u.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(u.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(u.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var _=m-p;if(0<_)this.isSignature(m,u.CENTRAL_FILE_HEADER)||(this.reader.zero=_);else if(_<0)throw new Error("Corrupted zip: missing "+Math.abs(_)+" bytes.")},prepareReader:function(g){this.reader=t(g)},load:function(g){this.prepareReader(g),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,i,n){var t=r("./reader/readerFor"),c=r("./utils"),u=r("./compressedObject"),f=r("./crc32"),o=r("./utf8"),l=r("./compressions"),g=r("./support");function m(p,_){this.options=p,this.loadOptions=_}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var _,y;if(p.skip(22),this.fileNameLength=p.readInt(2),y=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(y),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((_=(function(h){for(var d in l)if(Object.prototype.hasOwnProperty.call(l,d)&&l[d].magic===h)return l[d];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new u(this.compressedSize,this.uncompressedSize,this.crc32,_,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var _=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(_),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=t(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var _,y,h,d=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<d;)_=p.readInt(2),y=p.readInt(2),h=p.readData(y),this.extraFields[_]={id:_,length:y,value:h};p.setIndex(d)},handleUTF8:function(){var p=g.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var y=c.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var d=c.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(d)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var _=t(p.value);return _.readInt(1)!==1||f(this.fileName)!==_.readInt(4)?null:o.utf8decode(_.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var _=t(p.value);return _.readInt(1)!==1||f(this.fileComment)!==_.readInt(4)?null:o.utf8decode(_.readData(p.length-5))}return null}},i.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,i,n){function t(_,y,h){this.name=_,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=y,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var c=r("./stream/StreamHelper"),u=r("./stream/DataWorker"),f=r("./utf8"),o=r("./compressedObject"),l=r("./stream/GenericWorker");t.prototype={internalStream:function(_){var y=null,h="string";try{if(!_)throw new Error("No output type specified.");var d=(h=_.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),y=this._decompressWorker();var A=!this._dataBinary;A&&!d&&(y=y.pipe(new f.Utf8EncodeWorker)),!A&&d&&(y=y.pipe(new f.Utf8DecodeWorker))}catch(v){(y=new l("error")).error(v)}return new c(y,h,"")},async:function(_,y){return this.internalStream(_).accumulate(y)},nodeStream:function(_,y){return this.internalStream(_||"nodebuffer").toNodejsStream(y)},_compressWorker:function(_,y){if(this._data instanceof o&&this._data.compression.magic===_.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new f.Utf8EncodeWorker)),o.createWorkerFrom(h,_,y)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new u(this._data)}};for(var g=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<g.length;p++)t.prototype[g[p]]=m;i.exports=t},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,i,n){(function(t){var c,u,f=t.MutationObserver||t.WebKitMutationObserver;if(f){var o=0,l=new f(_),g=t.document.createTextNode("");l.observe(g,{characterData:!0}),c=function(){g.data=o=++o%2}}else if(t.setImmediate||t.MessageChannel===void 0)c="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var y=t.document.createElement("script");y.onreadystatechange=function(){_(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},t.document.documentElement.appendChild(y)}:function(){setTimeout(_,0)};else{var m=new t.MessageChannel;m.port1.onmessage=_,c=function(){m.port2.postMessage(0)}}var p=[];function _(){var y,h;u=!0;for(var d=p.length;d;){for(h=p,p=[],y=-1;++y<d;)h[y]();d=p.length}u=!1}i.exports=function(y){p.push(y)!==1||u||c()}}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,i,n){var t=r("immediate");function c(){}var u={},f=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function g(d){if(typeof d!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,d!==c&&y(this,d)}function m(d,A,v){this.promise=d,typeof A=="function"&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function p(d,A,v){t(function(){var w;try{w=A(v)}catch(x){return u.reject(d,x)}w===d?u.reject(d,new TypeError("Cannot resolve promise with itself")):u.resolve(d,w)})}function _(d){var A=d&&d.then;if(d&&(typeof d=="object"||typeof d=="function")&&typeof A=="function")return function(){A.apply(d,arguments)}}function y(d,A){var v=!1;function w(k){v||(v=!0,u.reject(d,k))}function x(k){v||(v=!0,u.resolve(d,k))}var C=h(function(){A(x,w)});C.status==="error"&&w(C.value)}function h(d,A){var v={};try{v.value=d(A),v.status="success"}catch(w){v.status="error",v.value=w}return v}(i.exports=g).prototype.finally=function(d){if(typeof d!="function")return this;var A=this.constructor;return this.then(function(v){return A.resolve(d()).then(function(){return v})},function(v){return A.resolve(d()).then(function(){throw v})})},g.prototype.catch=function(d){return this.then(null,d)},g.prototype.then=function(d,A){if(typeof d!="function"&&this.state===o||typeof A!="function"&&this.state===f)return this;var v=new this.constructor(c);return this.state!==l?p(v,this.state===o?d:A,this.outcome):this.queue.push(new m(v,d,A)),v},m.prototype.callFulfilled=function(d){u.resolve(this.promise,d)},m.prototype.otherCallFulfilled=function(d){p(this.promise,this.onFulfilled,d)},m.prototype.callRejected=function(d){u.reject(this.promise,d)},m.prototype.otherCallRejected=function(d){p(this.promise,this.onRejected,d)},u.resolve=function(d,A){var v=h(_,A);if(v.status==="error")return u.reject(d,v.value);var w=v.value;if(w)y(d,w);else{d.state=o,d.outcome=A;for(var x=-1,C=d.queue.length;++x<C;)d.queue[x].callFulfilled(A)}return d},u.reject=function(d,A){d.state=f,d.outcome=A;for(var v=-1,w=d.queue.length;++v<w;)d.queue[v].callRejected(A);return d},g.resolve=function(d){return d instanceof this?d:u.resolve(new this(c),d)},g.reject=function(d){var A=new this(c);return u.reject(A,d)},g.all=function(d){var A=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=d.length,w=!1;if(!v)return this.resolve([]);for(var x=new Array(v),C=0,k=-1,T=new this(c);++k<v;)S(d[k],k);return T;function S(M,P){A.resolve(M).then(function(N){x[P]=N,++C!==v||w||(w=!0,u.resolve(T,x))},function(N){w||(w=!0,u.reject(T,N))})}},g.race=function(d){var A=this;if(Object.prototype.toString.call(d)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=d.length,w=!1;if(!v)return this.resolve([]);for(var x=-1,C=new this(c);++x<v;)k=d[x],A.resolve(k).then(function(T){w||(w=!0,u.resolve(C,T))},function(T){w||(w=!0,u.reject(C,T))});var k;return C}},{immediate:36}],38:[function(r,i,n){var t={};(0,r("./lib/utils/common").assign)(t,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),i.exports=t},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,i,n){var t=r("./zlib/deflate"),c=r("./utils/common"),u=r("./utils/strings"),f=r("./zlib/messages"),o=r("./zlib/zstream"),l=Object.prototype.toString,g=0,m=-1,p=0,_=8;function y(d){if(!(this instanceof y))return new y(d);this.options=c.assign({level:m,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},d||{});var A=this.options;A.raw&&0<A.windowBits?A.windowBits=-A.windowBits:A.gzip&&0<A.windowBits&&A.windowBits<16&&(A.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var v=t.deflateInit2(this.strm,A.level,A.method,A.windowBits,A.memLevel,A.strategy);if(v!==g)throw new Error(f[v]);if(A.header&&t.deflateSetHeader(this.strm,A.header),A.dictionary){var w;if(w=typeof A.dictionary=="string"?u.string2buf(A.dictionary):l.call(A.dictionary)==="[object ArrayBuffer]"?new Uint8Array(A.dictionary):A.dictionary,(v=t.deflateSetDictionary(this.strm,w))!==g)throw new Error(f[v]);this._dict_set=!0}}function h(d,A){var v=new y(A);if(v.push(d,!0),v.err)throw v.msg||f[v.err];return v.result}y.prototype.push=function(d,A){var v,w,x=this.strm,C=this.options.chunkSize;if(this.ended)return!1;w=A===~~A?A:A===!0?4:0,typeof d=="string"?x.input=u.string2buf(d):l.call(d)==="[object ArrayBuffer]"?x.input=new Uint8Array(d):x.input=d,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new c.Buf8(C),x.next_out=0,x.avail_out=C),(v=t.deflate(x,w))!==1&&v!==g)return this.onEnd(v),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(u.buf2binstring(c.shrinkBuf(x.output,x.next_out))):this.onData(c.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&v!==1);return w===4?(v=t.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===g):w!==2||(this.onEnd(g),!(x.avail_out=0))},y.prototype.onData=function(d){this.chunks.push(d)},y.prototype.onEnd=function(d){d===g&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=d,this.msg=this.strm.msg},n.Deflate=y,n.deflate=h,n.deflateRaw=function(d,A){return(A=A||{}).raw=!0,h(d,A)},n.gzip=function(d,A){return(A=A||{}).gzip=!0,h(d,A)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,i,n){var t=r("./zlib/inflate"),c=r("./utils/common"),u=r("./utils/strings"),f=r("./zlib/constants"),o=r("./zlib/messages"),l=r("./zlib/zstream"),g=r("./zlib/gzheader"),m=Object.prototype.toString;function p(y){if(!(this instanceof p))return new p(y);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},y||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||y&&y.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&(15&h.windowBits)==0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var d=t.inflateInit2(this.strm,h.windowBits);if(d!==f.Z_OK)throw new Error(o[d]);this.header=new g,t.inflateGetHeader(this.strm,this.header)}function _(y,h){var d=new p(h);if(d.push(y,!0),d.err)throw d.msg||o[d.err];return d.result}p.prototype.push=function(y,h){var d,A,v,w,x,C,k=this.strm,T=this.options.chunkSize,S=this.options.dictionary,M=!1;if(this.ended)return!1;A=h===~~h?h:h===!0?f.Z_FINISH:f.Z_NO_FLUSH,typeof y=="string"?k.input=u.binstring2buf(y):m.call(y)==="[object ArrayBuffer]"?k.input=new Uint8Array(y):k.input=y,k.next_in=0,k.avail_in=k.input.length;do{if(k.avail_out===0&&(k.output=new c.Buf8(T),k.next_out=0,k.avail_out=T),(d=t.inflate(k,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&S&&(C=typeof S=="string"?u.string2buf(S):m.call(S)==="[object ArrayBuffer]"?new Uint8Array(S):S,d=t.inflateSetDictionary(this.strm,C)),d===f.Z_BUF_ERROR&&M===!0&&(d=f.Z_OK,M=!1),d!==f.Z_STREAM_END&&d!==f.Z_OK)return this.onEnd(d),!(this.ended=!0);k.next_out&&(k.avail_out!==0&&d!==f.Z_STREAM_END&&(k.avail_in!==0||A!==f.Z_FINISH&&A!==f.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=u.utf8border(k.output,k.next_out),w=k.next_out-v,x=u.buf2string(k.output,v),k.next_out=w,k.avail_out=T-w,w&&c.arraySet(k.output,k.output,v,w,0),this.onData(x)):this.onData(c.shrinkBuf(k.output,k.next_out)))),k.avail_in===0&&k.avail_out===0&&(M=!0)}while((0<k.avail_in||k.avail_out===0)&&d!==f.Z_STREAM_END);return d===f.Z_STREAM_END&&(A=f.Z_FINISH),A===f.Z_FINISH?(d=t.inflateEnd(this.strm),this.onEnd(d),this.ended=!0,d===f.Z_OK):A!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),!(k.avail_out=0))},p.prototype.onData=function(y){this.chunks.push(y)},p.prototype.onEnd=function(y){y===f.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},n.Inflate=p,n.inflate=_,n.inflateRaw=function(y,h){return(h=h||{}).raw=!0,_(y,h)},n.ungzip=_},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,i,n){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";n.assign=function(f){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var l=o.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var g in l)l.hasOwnProperty(g)&&(f[g]=l[g])}}return f},n.shrinkBuf=function(f,o){return f.length===o?f:f.subarray?f.subarray(0,o):(f.length=o,f)};var c={arraySet:function(f,o,l,g,m){if(o.subarray&&f.subarray)f.set(o.subarray(l,l+g),m);else for(var p=0;p<g;p++)f[m+p]=o[l+p]},flattenChunks:function(f){var o,l,g,m,p,_;for(o=g=0,l=f.length;o<l;o++)g+=f[o].length;for(_=new Uint8Array(g),o=m=0,l=f.length;o<l;o++)p=f[o],_.set(p,m),m+=p.length;return _}},u={arraySet:function(f,o,l,g,m){for(var p=0;p<g;p++)f[m+p]=o[l+p]},flattenChunks:function(f){return[].concat.apply([],f)}};n.setTyped=function(f){f?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,c)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,u))},n.setTyped(t)},{}],42:[function(r,i,n){var t=r("./common"),c=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch{c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{u=!1}for(var f=new t.Buf8(256),o=0;o<256;o++)f[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(g,m){if(m<65537&&(g.subarray&&u||!g.subarray&&c))return String.fromCharCode.apply(null,t.shrinkBuf(g,m));for(var p="",_=0;_<m;_++)p+=String.fromCharCode(g[_]);return p}f[254]=f[254]=1,n.string2buf=function(g){var m,p,_,y,h,d=g.length,A=0;for(y=0;y<d;y++)(64512&(p=g.charCodeAt(y)))==55296&&y+1<d&&(64512&(_=g.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(_-56320),y++),A+=p<128?1:p<2048?2:p<65536?3:4;for(m=new t.Buf8(A),y=h=0;h<A;y++)(64512&(p=g.charCodeAt(y)))==55296&&y+1<d&&(64512&(_=g.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(_-56320),y++),p<128?m[h++]=p:(p<2048?m[h++]=192|p>>>6:(p<65536?m[h++]=224|p>>>12:(m[h++]=240|p>>>18,m[h++]=128|p>>>12&63),m[h++]=128|p>>>6&63),m[h++]=128|63&p);return m},n.buf2binstring=function(g){return l(g,g.length)},n.binstring2buf=function(g){for(var m=new t.Buf8(g.length),p=0,_=m.length;p<_;p++)m[p]=g.charCodeAt(p);return m},n.buf2string=function(g,m){var p,_,y,h,d=m||g.length,A=new Array(2*d);for(p=_=0;p<d;)if((y=g[p++])<128)A[_++]=y;else if(4<(h=f[y]))A[_++]=65533,p+=h-1;else{for(y&=h===2?31:h===3?15:7;1<h&&p<d;)y=y<<6|63&g[p++],h--;1<h?A[_++]=65533:y<65536?A[_++]=y:(y-=65536,A[_++]=55296|y>>10&1023,A[_++]=56320|1023&y)}return l(A,_)},n.utf8border=function(g,m){var p;for((m=m||g.length)>g.length&&(m=g.length),p=m-1;0<=p&&(192&g[p])==128;)p--;return p<0||p===0?m:p+f[g[p]]>m?p:m}},{"./common":41}],43:[function(r,i,n){i.exports=function(t,c,u,f){for(var o=65535&t|0,l=t>>>16&65535|0,g=0;u!==0;){for(u-=g=2e3<u?2e3:u;l=l+(o=o+c[f++]|0)|0,--g;);o%=65521,l%=65521}return o|l<<16|0}},{}],44:[function(r,i,n){i.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(r,i,n){var t=(function(){for(var c,u=[],f=0;f<256;f++){c=f;for(var o=0;o<8;o++)c=1&c?3988292384^c>>>1:c>>>1;u[f]=c}return u})();i.exports=function(c,u,f,o){var l=t,g=o+f;c^=-1;for(var m=o;m<g;m++)c=c>>>8^l[255&(c^u[m])];return-1^c}},{}],46:[function(r,i,n){var t,c=r("../utils/common"),u=r("./trees"),f=r("./adler32"),o=r("./crc32"),l=r("./messages"),g=0,m=4,p=0,_=-2,y=-1,h=4,d=2,A=8,v=9,w=286,x=30,C=19,k=2*w+1,T=15,S=3,M=258,P=M+S+1,N=42,B=113,O=1,I=2,F=3,L=4;function R(ue,Te){return ue.msg=l[Te],Te}function U(ue){return(ue<<1)-(4<ue?9:0)}function V(ue){for(var Te=ue.length;0<=--Te;)ue[Te]=0}function W(ue){var Te=ue.state,Ee=Te.pending;Ee>ue.avail_out&&(Ee=ue.avail_out),Ee!==0&&(c.arraySet(ue.output,Te.pending_buf,Te.pending_out,Ee,ue.next_out),ue.next_out+=Ee,Te.pending_out+=Ee,ue.total_out+=Ee,ue.avail_out-=Ee,Te.pending-=Ee,Te.pending===0&&(Te.pending_out=0))}function Q(ue,Te){u._tr_flush_block(ue,0<=ue.block_start?ue.block_start:-1,ue.strstart-ue.block_start,Te),ue.block_start=ue.strstart,W(ue.strm)}function le(ue,Te){ue.pending_buf[ue.pending++]=Te}function G(ue,Te){ue.pending_buf[ue.pending++]=Te>>>8&255,ue.pending_buf[ue.pending++]=255&Te}function fe(ue,Te){var Ee,ye,Se=ue.max_chain_length,Fe=ue.strstart,Ve=ue.prev_length,ke=ue.nice_match,Pe=ue.strstart>ue.w_size-P?ue.strstart-(ue.w_size-P):0,Re=ue.window,Ye=ue.w_mask,Ke=ue.prev,ot=ue.strstart+M,nt=Re[Fe+Ve-1],mt=Re[Fe+Ve];ue.prev_length>=ue.good_match&&(Se>>=2),ke>ue.lookahead&&(ke=ue.lookahead);do if(Re[(Ee=Te)+Ve]===mt&&Re[Ee+Ve-1]===nt&&Re[Ee]===Re[Fe]&&Re[++Ee]===Re[Fe+1]){Fe+=2,Ee++;do;while(Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Re[++Fe]===Re[++Ee]&&Fe<ot);if(ye=M-(ot-Fe),Fe=ot-M,Ve<ye){if(ue.match_start=Te,ke<=(Ve=ye))break;nt=Re[Fe+Ve-1],mt=Re[Fe+Ve]}}while((Te=Ke[Te&Ye])>Pe&&--Se!=0);return Ve<=ue.lookahead?Ve:ue.lookahead}function ie(ue){var Te,Ee,ye,Se,Fe,Ve,ke,Pe,Re,Ye,Ke=ue.w_size;do{if(Se=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=Ke+(Ke-P)){for(c.arraySet(ue.window,ue.window,Ke,Ke,0),ue.match_start-=Ke,ue.strstart-=Ke,ue.block_start-=Ke,Te=Ee=ue.hash_size;ye=ue.head[--Te],ue.head[Te]=Ke<=ye?ye-Ke:0,--Ee;);for(Te=Ee=Ke;ye=ue.prev[--Te],ue.prev[Te]=Ke<=ye?ye-Ke:0,--Ee;);Se+=Ke}if(ue.strm.avail_in===0)break;if(Ve=ue.strm,ke=ue.window,Pe=ue.strstart+ue.lookahead,Re=Se,Ye=void 0,Ye=Ve.avail_in,Re<Ye&&(Ye=Re),Ee=Ye===0?0:(Ve.avail_in-=Ye,c.arraySet(ke,Ve.input,Ve.next_in,Ye,Pe),Ve.state.wrap===1?Ve.adler=f(Ve.adler,ke,Ye,Pe):Ve.state.wrap===2&&(Ve.adler=o(Ve.adler,ke,Ye,Pe)),Ve.next_in+=Ye,Ve.total_in+=Ye,Ye),ue.lookahead+=Ee,ue.lookahead+ue.insert>=S)for(Fe=ue.strstart-ue.insert,ue.ins_h=ue.window[Fe],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[Fe+1])&ue.hash_mask;ue.insert&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[Fe+S-1])&ue.hash_mask,ue.prev[Fe&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=Fe,Fe++,ue.insert--,!(ue.lookahead+ue.insert<S)););}while(ue.lookahead<P&&ue.strm.avail_in!==0)}function he(ue,Te){for(var Ee,ye;;){if(ue.lookahead<P){if(ie(ue),ue.lookahead<P&&Te===g)return O;if(ue.lookahead===0)break}if(Ee=0,ue.lookahead>=S&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+S-1])&ue.hash_mask,Ee=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),Ee!==0&&ue.strstart-Ee<=ue.w_size-P&&(ue.match_length=fe(ue,Ee)),ue.match_length>=S)if(ye=u._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-S),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=S){for(ue.match_length--;ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+S-1])&ue.hash_mask,Ee=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart,--ue.match_length!=0;);ue.strstart++}else ue.strstart+=ue.match_length,ue.match_length=0,ue.ins_h=ue.window[ue.strstart],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+1])&ue.hash_mask;else ye=u._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(ye&&(Q(ue,!1),ue.strm.avail_out===0))return O}return ue.insert=ue.strstart<S-1?ue.strstart:S-1,Te===m?(Q(ue,!0),ue.strm.avail_out===0?F:L):ue.last_lit&&(Q(ue,!1),ue.strm.avail_out===0)?O:I}function Y(ue,Te){for(var Ee,ye,Se;;){if(ue.lookahead<P){if(ie(ue),ue.lookahead<P&&Te===g)return O;if(ue.lookahead===0)break}if(Ee=0,ue.lookahead>=S&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+S-1])&ue.hash_mask,Ee=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ue.prev_length=ue.match_length,ue.prev_match=ue.match_start,ue.match_length=S-1,Ee!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-Ee<=ue.w_size-P&&(ue.match_length=fe(ue,Ee),ue.match_length<=5&&(ue.strategy===1||ue.match_length===S&&4096<ue.strstart-ue.match_start)&&(ue.match_length=S-1)),ue.prev_length>=S&&ue.match_length<=ue.prev_length){for(Se=ue.strstart+ue.lookahead-S,ye=u._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-S),ue.lookahead-=ue.prev_length-1,ue.prev_length-=2;++ue.strstart<=Se&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+S-1])&ue.hash_mask,Ee=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),--ue.prev_length!=0;);if(ue.match_available=0,ue.match_length=S-1,ue.strstart++,ye&&(Q(ue,!1),ue.strm.avail_out===0))return O}else if(ue.match_available){if((ye=u._tr_tally(ue,0,ue.window[ue.strstart-1]))&&Q(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return O}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(ye=u._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<S-1?ue.strstart:S-1,Te===m?(Q(ue,!0),ue.strm.avail_out===0?F:L):ue.last_lit&&(Q(ue,!1),ue.strm.avail_out===0)?O:I}function K(ue,Te,Ee,ye,Se){this.good_length=ue,this.max_lazy=Te,this.nice_length=Ee,this.max_chain=ye,this.func=Se}function oe(){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=A,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 c.Buf16(2*k),this.dyn_dtree=new c.Buf16(2*(2*x+1)),this.bl_tree=new c.Buf16(2*(2*C+1)),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(T+1),this.heap=new c.Buf16(2*w+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*w+1),V(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 pe(ue){var Te;return ue&&ue.state?(ue.total_in=ue.total_out=0,ue.data_type=d,(Te=ue.state).pending=0,Te.pending_out=0,Te.wrap<0&&(Te.wrap=-Te.wrap),Te.status=Te.wrap?N:B,ue.adler=Te.wrap===2?0:1,Te.last_flush=g,u._tr_init(Te),p):R(ue,_)}function ve(ue){var Te=pe(ue);return Te===p&&(function(Ee){Ee.window_size=2*Ee.w_size,V(Ee.head),Ee.max_lazy_match=t[Ee.level].max_lazy,Ee.good_match=t[Ee.level].good_length,Ee.nice_match=t[Ee.level].nice_length,Ee.max_chain_length=t[Ee.level].max_chain,Ee.strstart=0,Ee.block_start=0,Ee.lookahead=0,Ee.insert=0,Ee.match_length=Ee.prev_length=S-1,Ee.match_available=0,Ee.ins_h=0})(ue.state),Te}function ge(ue,Te,Ee,ye,Se,Fe){if(!ue)return _;var Ve=1;if(Te===y&&(Te=6),ye<0?(Ve=0,ye=-ye):15<ye&&(Ve=2,ye-=16),Se<1||v<Se||Ee!==A||ye<8||15<ye||Te<0||9<Te||Fe<0||h<Fe)return R(ue,_);ye===8&&(ye=9);var ke=new oe;return(ue.state=ke).strm=ue,ke.wrap=Ve,ke.gzhead=null,ke.w_bits=ye,ke.w_size=1<<ke.w_bits,ke.w_mask=ke.w_size-1,ke.hash_bits=Se+7,ke.hash_size=1<<ke.hash_bits,ke.hash_mask=ke.hash_size-1,ke.hash_shift=~~((ke.hash_bits+S-1)/S),ke.window=new c.Buf8(2*ke.w_size),ke.head=new c.Buf16(ke.hash_size),ke.prev=new c.Buf16(ke.w_size),ke.lit_bufsize=1<<Se+6,ke.pending_buf_size=4*ke.lit_bufsize,ke.pending_buf=new c.Buf8(ke.pending_buf_size),ke.d_buf=1*ke.lit_bufsize,ke.l_buf=3*ke.lit_bufsize,ke.level=Te,ke.strategy=Fe,ke.method=Ee,ve(ue)}t=[new K(0,0,0,0,function(ue,Te){var Ee=65535;for(Ee>ue.pending_buf_size-5&&(Ee=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(ie(ue),ue.lookahead===0&&Te===g)return O;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var ye=ue.block_start+Ee;if((ue.strstart===0||ue.strstart>=ye)&&(ue.lookahead=ue.strstart-ye,ue.strstart=ye,Q(ue,!1),ue.strm.avail_out===0)||ue.strstart-ue.block_start>=ue.w_size-P&&(Q(ue,!1),ue.strm.avail_out===0))return O}return ue.insert=0,Te===m?(Q(ue,!0),ue.strm.avail_out===0?F:L):(ue.strstart>ue.block_start&&(Q(ue,!1),ue.strm.avail_out),O)}),new K(4,4,8,4,he),new K(4,5,16,8,he),new K(4,6,32,32,he),new K(4,4,16,16,Y),new K(8,16,32,32,Y),new K(8,16,128,128,Y),new K(8,32,128,256,Y),new K(32,128,258,1024,Y),new K(32,258,258,4096,Y)],n.deflateInit=function(ue,Te){return ge(ue,Te,A,15,8,0)},n.deflateInit2=ge,n.deflateReset=ve,n.deflateResetKeep=pe,n.deflateSetHeader=function(ue,Te){return ue&&ue.state?ue.state.wrap!==2?_:(ue.state.gzhead=Te,p):_},n.deflate=function(ue,Te){var Ee,ye,Se,Fe;if(!ue||!ue.state||5<Te||Te<0)return ue?R(ue,_):_;if(ye=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||ye.status===666&&Te!==m)return R(ue,ue.avail_out===0?-5:_);if(ye.strm=ue,Ee=ye.last_flush,ye.last_flush=Te,ye.status===N)if(ye.wrap===2)ue.adler=0,le(ye,31),le(ye,139),le(ye,8),ye.gzhead?(le(ye,(ye.gzhead.text?1:0)+(ye.gzhead.hcrc?2:0)+(ye.gzhead.extra?4:0)+(ye.gzhead.name?8:0)+(ye.gzhead.comment?16:0)),le(ye,255&ye.gzhead.time),le(ye,ye.gzhead.time>>8&255),le(ye,ye.gzhead.time>>16&255),le(ye,ye.gzhead.time>>24&255),le(ye,ye.level===9?2:2<=ye.strategy||ye.level<2?4:0),le(ye,255&ye.gzhead.os),ye.gzhead.extra&&ye.gzhead.extra.length&&(le(ye,255&ye.gzhead.extra.length),le(ye,ye.gzhead.extra.length>>8&255)),ye.gzhead.hcrc&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending,0)),ye.gzindex=0,ye.status=69):(le(ye,0),le(ye,0),le(ye,0),le(ye,0),le(ye,0),le(ye,ye.level===9?2:2<=ye.strategy||ye.level<2?4:0),le(ye,3),ye.status=B);else{var Ve=A+(ye.w_bits-8<<4)<<8;Ve|=(2<=ye.strategy||ye.level<2?0:ye.level<6?1:ye.level===6?2:3)<<6,ye.strstart!==0&&(Ve|=32),Ve+=31-Ve%31,ye.status=B,G(ye,Ve),ye.strstart!==0&&(G(ye,ue.adler>>>16),G(ye,65535&ue.adler)),ue.adler=1}if(ye.status===69)if(ye.gzhead.extra){for(Se=ye.pending;ye.gzindex<(65535&ye.gzhead.extra.length)&&(ye.pending!==ye.pending_buf_size||(ye.gzhead.hcrc&&ye.pending>Se&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending-Se,Se)),W(ue),Se=ye.pending,ye.pending!==ye.pending_buf_size));)le(ye,255&ye.gzhead.extra[ye.gzindex]),ye.gzindex++;ye.gzhead.hcrc&&ye.pending>Se&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending-Se,Se)),ye.gzindex===ye.gzhead.extra.length&&(ye.gzindex=0,ye.status=73)}else ye.status=73;if(ye.status===73)if(ye.gzhead.name){Se=ye.pending;do{if(ye.pending===ye.pending_buf_size&&(ye.gzhead.hcrc&&ye.pending>Se&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending-Se,Se)),W(ue),Se=ye.pending,ye.pending===ye.pending_buf_size)){Fe=1;break}Fe=ye.gzindex<ye.gzhead.name.length?255&ye.gzhead.name.charCodeAt(ye.gzindex++):0,le(ye,Fe)}while(Fe!==0);ye.gzhead.hcrc&&ye.pending>Se&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending-Se,Se)),Fe===0&&(ye.gzindex=0,ye.status=91)}else ye.status=91;if(ye.status===91)if(ye.gzhead.comment){Se=ye.pending;do{if(ye.pending===ye.pending_buf_size&&(ye.gzhead.hcrc&&ye.pending>Se&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending-Se,Se)),W(ue),Se=ye.pending,ye.pending===ye.pending_buf_size)){Fe=1;break}Fe=ye.gzindex<ye.gzhead.comment.length?255&ye.gzhead.comment.charCodeAt(ye.gzindex++):0,le(ye,Fe)}while(Fe!==0);ye.gzhead.hcrc&&ye.pending>Se&&(ue.adler=o(ue.adler,ye.pending_buf,ye.pending-Se,Se)),Fe===0&&(ye.status=103)}else ye.status=103;if(ye.status===103&&(ye.gzhead.hcrc?(ye.pending+2>ye.pending_buf_size&&W(ue),ye.pending+2<=ye.pending_buf_size&&(le(ye,255&ue.adler),le(ye,ue.adler>>8&255),ue.adler=0,ye.status=B)):ye.status=B),ye.pending!==0){if(W(ue),ue.avail_out===0)return ye.last_flush=-1,p}else if(ue.avail_in===0&&U(Te)<=U(Ee)&&Te!==m)return R(ue,-5);if(ye.status===666&&ue.avail_in!==0)return R(ue,-5);if(ue.avail_in!==0||ye.lookahead!==0||Te!==g&&ye.status!==666){var ke=ye.strategy===2?(function(Pe,Re){for(var Ye;;){if(Pe.lookahead===0&&(ie(Pe),Pe.lookahead===0)){if(Re===g)return O;break}if(Pe.match_length=0,Ye=u._tr_tally(Pe,0,Pe.window[Pe.strstart]),Pe.lookahead--,Pe.strstart++,Ye&&(Q(Pe,!1),Pe.strm.avail_out===0))return O}return Pe.insert=0,Re===m?(Q(Pe,!0),Pe.strm.avail_out===0?F:L):Pe.last_lit&&(Q(Pe,!1),Pe.strm.avail_out===0)?O:I})(ye,Te):ye.strategy===3?(function(Pe,Re){for(var Ye,Ke,ot,nt,mt=Pe.window;;){if(Pe.lookahead<=M){if(ie(Pe),Pe.lookahead<=M&&Re===g)return O;if(Pe.lookahead===0)break}if(Pe.match_length=0,Pe.lookahead>=S&&0<Pe.strstart&&(Ke=mt[ot=Pe.strstart-1])===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]){nt=Pe.strstart+M;do;while(Ke===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]&&Ke===mt[++ot]&&ot<nt);Pe.match_length=M-(nt-ot),Pe.match_length>Pe.lookahead&&(Pe.match_length=Pe.lookahead)}if(Pe.match_length>=S?(Ye=u._tr_tally(Pe,1,Pe.match_length-S),Pe.lookahead-=Pe.match_length,Pe.strstart+=Pe.match_length,Pe.match_length=0):(Ye=u._tr_tally(Pe,0,Pe.window[Pe.strstart]),Pe.lookahead--,Pe.strstart++),Ye&&(Q(Pe,!1),Pe.strm.avail_out===0))return O}return Pe.insert=0,Re===m?(Q(Pe,!0),Pe.strm.avail_out===0?F:L):Pe.last_lit&&(Q(Pe,!1),Pe.strm.avail_out===0)?O:I})(ye,Te):t[ye.level].func(ye,Te);if(ke!==F&&ke!==L||(ye.status=666),ke===O||ke===F)return ue.avail_out===0&&(ye.last_flush=-1),p;if(ke===I&&(Te===1?u._tr_align(ye):Te!==5&&(u._tr_stored_block(ye,0,0,!1),Te===3&&(V(ye.head),ye.lookahead===0&&(ye.strstart=0,ye.block_start=0,ye.insert=0))),W(ue),ue.avail_out===0))return ye.last_flush=-1,p}return Te!==m?p:ye.wrap<=0?1:(ye.wrap===2?(le(ye,255&ue.adler),le(ye,ue.adler>>8&255),le(ye,ue.adler>>16&255),le(ye,ue.adler>>24&255),le(ye,255&ue.total_in),le(ye,ue.total_in>>8&255),le(ye,ue.total_in>>16&255),le(ye,ue.total_in>>24&255)):(G(ye,ue.adler>>>16),G(ye,65535&ue.adler)),W(ue),0<ye.wrap&&(ye.wrap=-ye.wrap),ye.pending!==0?p:1)},n.deflateEnd=function(ue){var Te;return ue&&ue.state?(Te=ue.state.status)!==N&&Te!==69&&Te!==73&&Te!==91&&Te!==103&&Te!==B&&Te!==666?R(ue,_):(ue.state=null,Te===B?R(ue,-3):p):_},n.deflateSetDictionary=function(ue,Te){var Ee,ye,Se,Fe,Ve,ke,Pe,Re,Ye=Te.length;if(!ue||!ue.state||(Fe=(Ee=ue.state).wrap)===2||Fe===1&&Ee.status!==N||Ee.lookahead)return _;for(Fe===1&&(ue.adler=f(ue.adler,Te,Ye,0)),Ee.wrap=0,Ye>=Ee.w_size&&(Fe===0&&(V(Ee.head),Ee.strstart=0,Ee.block_start=0,Ee.insert=0),Re=new c.Buf8(Ee.w_size),c.arraySet(Re,Te,Ye-Ee.w_size,Ee.w_size,0),Te=Re,Ye=Ee.w_size),Ve=ue.avail_in,ke=ue.next_in,Pe=ue.input,ue.avail_in=Ye,ue.next_in=0,ue.input=Te,ie(Ee);Ee.lookahead>=S;){for(ye=Ee.strstart,Se=Ee.lookahead-(S-1);Ee.ins_h=(Ee.ins_h<<Ee.hash_shift^Ee.window[ye+S-1])&Ee.hash_mask,Ee.prev[ye&Ee.w_mask]=Ee.head[Ee.ins_h],Ee.head[Ee.ins_h]=ye,ye++,--Se;);Ee.strstart=ye,Ee.lookahead=S-1,ie(Ee)}return Ee.strstart+=Ee.lookahead,Ee.block_start=Ee.strstart,Ee.insert=Ee.lookahead,Ee.lookahead=0,Ee.match_length=Ee.prev_length=S-1,Ee.match_available=0,ue.next_in=ke,ue.input=Pe,ue.avail_in=Ve,Ee.wrap=Fe,p},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,i,n){i.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(r,i,n){i.exports=function(t,c){var u,f,o,l,g,m,p,_,y,h,d,A,v,w,x,C,k,T,S,M,P,N,B,O,I;u=t.state,f=t.next_in,O=t.input,o=f+(t.avail_in-5),l=t.next_out,I=t.output,g=l-(c-t.avail_out),m=l+(t.avail_out-257),p=u.dmax,_=u.wsize,y=u.whave,h=u.wnext,d=u.window,A=u.hold,v=u.bits,w=u.lencode,x=u.distcode,C=(1<<u.lenbits)-1,k=(1<<u.distbits)-1;e:do{v<15&&(A+=O[f++]<<v,v+=8,A+=O[f++]<<v,v+=8),T=w[A&C];t:for(;;){if(A>>>=S=T>>>24,v-=S,(S=T>>>16&255)===0)I[l++]=65535&T;else{if(!(16&S)){if((64&S)==0){T=w[(65535&T)+(A&(1<<S)-1)];continue t}if(32&S){u.mode=12;break e}t.msg="invalid literal/length code",u.mode=30;break e}M=65535&T,(S&=15)&&(v<S&&(A+=O[f++]<<v,v+=8),M+=A&(1<<S)-1,A>>>=S,v-=S),v<15&&(A+=O[f++]<<v,v+=8,A+=O[f++]<<v,v+=8),T=x[A&k];r:for(;;){if(A>>>=S=T>>>24,v-=S,!(16&(S=T>>>16&255))){if((64&S)==0){T=x[(65535&T)+(A&(1<<S)-1)];continue r}t.msg="invalid distance code",u.mode=30;break e}if(P=65535&T,v<(S&=15)&&(A+=O[f++]<<v,(v+=8)<S&&(A+=O[f++]<<v,v+=8)),p<(P+=A&(1<<S)-1)){t.msg="invalid distance too far back",u.mode=30;break e}if(A>>>=S,v-=S,(S=l-g)<P){if(y<(S=P-S)&&u.sane){t.msg="invalid distance too far back",u.mode=30;break e}if(B=d,(N=0)===h){if(N+=_-S,S<M){for(M-=S;I[l++]=d[N++],--S;);N=l-P,B=I}}else if(h<S){if(N+=_+h-S,(S-=h)<M){for(M-=S;I[l++]=d[N++],--S;);if(N=0,h<M){for(M-=S=h;I[l++]=d[N++],--S;);N=l-P,B=I}}}else if(N+=h-S,S<M){for(M-=S;I[l++]=d[N++],--S;);N=l-P,B=I}for(;2<M;)I[l++]=B[N++],I[l++]=B[N++],I[l++]=B[N++],M-=3;M&&(I[l++]=B[N++],1<M&&(I[l++]=B[N++]))}else{for(N=l-P;I[l++]=I[N++],I[l++]=I[N++],I[l++]=I[N++],2<(M-=3););M&&(I[l++]=I[N++],1<M&&(I[l++]=I[N++]))}break}}break}}while(f<o&&l<m);f-=M=v>>3,A&=(1<<(v-=M<<3))-1,t.next_in=f,t.next_out=l,t.avail_in=f<o?o-f+5:5-(f-o),t.avail_out=l<m?m-l+257:257-(l-m),u.hold=A,u.bits=v}},{}],49:[function(r,i,n){var t=r("../utils/common"),c=r("./adler32"),u=r("./crc32"),f=r("./inffast"),o=r("./inftrees"),l=1,g=2,m=0,p=-2,_=1,y=852,h=592;function d(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function A(){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 t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(N){var B;return N&&N.state?(B=N.state,N.total_in=N.total_out=B.total=0,N.msg="",B.wrap&&(N.adler=1&B.wrap),B.mode=_,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new t.Buf32(y),B.distcode=B.distdyn=new t.Buf32(h),B.sane=1,B.back=-1,m):p}function w(N){var B;return N&&N.state?((B=N.state).wsize=0,B.whave=0,B.wnext=0,v(N)):p}function x(N,B){var O,I;return N&&N.state?(I=N.state,B<0?(O=0,B=-B):(O=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?p:(I.window!==null&&I.wbits!==B&&(I.window=null),I.wrap=O,I.wbits=B,w(N))):p}function C(N,B){var O,I;return N?(I=new A,(N.state=I).window=null,(O=x(N,B))!==m&&(N.state=null),O):p}var k,T,S=!0;function M(N){if(S){var B;for(k=new t.Buf32(512),T=new t.Buf32(32),B=0;B<144;)N.lens[B++]=8;for(;B<256;)N.lens[B++]=9;for(;B<280;)N.lens[B++]=7;for(;B<288;)N.lens[B++]=8;for(o(l,N.lens,0,288,k,0,N.work,{bits:9}),B=0;B<32;)N.lens[B++]=5;o(g,N.lens,0,32,T,0,N.work,{bits:5}),S=!1}N.lencode=k,N.lenbits=9,N.distcode=T,N.distbits=5}function P(N,B,O,I){var F,L=N.state;return L.window===null&&(L.wsize=1<<L.wbits,L.wnext=0,L.whave=0,L.window=new t.Buf8(L.wsize)),I>=L.wsize?(t.arraySet(L.window,B,O-L.wsize,L.wsize,0),L.wnext=0,L.whave=L.wsize):(I<(F=L.wsize-L.wnext)&&(F=I),t.arraySet(L.window,B,O-I,F,L.wnext),(I-=F)?(t.arraySet(L.window,B,O-I,I,0),L.wnext=I,L.whave=L.wsize):(L.wnext+=F,L.wnext===L.wsize&&(L.wnext=0),L.whave<L.wsize&&(L.whave+=F))),0}n.inflateReset=w,n.inflateReset2=x,n.inflateResetKeep=v,n.inflateInit=function(N){return C(N,15)},n.inflateInit2=C,n.inflate=function(N,B){var O,I,F,L,R,U,V,W,Q,le,G,fe,ie,he,Y,K,oe,pe,ve,ge,ue,Te,Ee,ye,Se=0,Fe=new t.Buf8(4),Ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return p;(O=N.state).mode===12&&(O.mode=13),R=N.next_out,F=N.output,V=N.avail_out,L=N.next_in,I=N.input,U=N.avail_in,W=O.hold,Q=O.bits,le=U,G=V,Te=m;e:for(;;)switch(O.mode){case _:if(O.wrap===0){O.mode=13;break}for(;Q<16;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(2&O.wrap&&W===35615){Fe[O.check=0]=255&W,Fe[1]=W>>>8&255,O.check=u(O.check,Fe,2,0),Q=W=0,O.mode=2;break}if(O.flags=0,O.head&&(O.head.done=!1),!(1&O.wrap)||(((255&W)<<8)+(W>>8))%31){N.msg="incorrect header check",O.mode=30;break}if((15&W)!=8){N.msg="unknown compression method",O.mode=30;break}if(Q-=4,ue=8+(15&(W>>>=4)),O.wbits===0)O.wbits=ue;else if(ue>O.wbits){N.msg="invalid window size",O.mode=30;break}O.dmax=1<<ue,N.adler=O.check=1,O.mode=512&W?10:12,Q=W=0;break;case 2:for(;Q<16;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(O.flags=W,(255&O.flags)!=8){N.msg="unknown compression method",O.mode=30;break}if(57344&O.flags){N.msg="unknown header flags set",O.mode=30;break}O.head&&(O.head.text=W>>8&1),512&O.flags&&(Fe[0]=255&W,Fe[1]=W>>>8&255,O.check=u(O.check,Fe,2,0)),Q=W=0,O.mode=3;case 3:for(;Q<32;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}O.head&&(O.head.time=W),512&O.flags&&(Fe[0]=255&W,Fe[1]=W>>>8&255,Fe[2]=W>>>16&255,Fe[3]=W>>>24&255,O.check=u(O.check,Fe,4,0)),Q=W=0,O.mode=4;case 4:for(;Q<16;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}O.head&&(O.head.xflags=255&W,O.head.os=W>>8),512&O.flags&&(Fe[0]=255&W,Fe[1]=W>>>8&255,O.check=u(O.check,Fe,2,0)),Q=W=0,O.mode=5;case 5:if(1024&O.flags){for(;Q<16;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}O.length=W,O.head&&(O.head.extra_len=W),512&O.flags&&(Fe[0]=255&W,Fe[1]=W>>>8&255,O.check=u(O.check,Fe,2,0)),Q=W=0}else O.head&&(O.head.extra=null);O.mode=6;case 6:if(1024&O.flags&&(U<(fe=O.length)&&(fe=U),fe&&(O.head&&(ue=O.head.extra_len-O.length,O.head.extra||(O.head.extra=new Array(O.head.extra_len)),t.arraySet(O.head.extra,I,L,fe,ue)),512&O.flags&&(O.check=u(O.check,I,fe,L)),U-=fe,L+=fe,O.length-=fe),O.length))break e;O.length=0,O.mode=7;case 7:if(2048&O.flags){if(U===0)break e;for(fe=0;ue=I[L+fe++],O.head&&ue&&O.length<65536&&(O.head.name+=String.fromCharCode(ue)),ue&&fe<U;);if(512&O.flags&&(O.check=u(O.check,I,fe,L)),U-=fe,L+=fe,ue)break e}else O.head&&(O.head.name=null);O.length=0,O.mode=8;case 8:if(4096&O.flags){if(U===0)break e;for(fe=0;ue=I[L+fe++],O.head&&ue&&O.length<65536&&(O.head.comment+=String.fromCharCode(ue)),ue&&fe<U;);if(512&O.flags&&(O.check=u(O.check,I,fe,L)),U-=fe,L+=fe,ue)break e}else O.head&&(O.head.comment=null);O.mode=9;case 9:if(512&O.flags){for(;Q<16;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(W!==(65535&O.check)){N.msg="header crc mismatch",O.mode=30;break}Q=W=0}O.head&&(O.head.hcrc=O.flags>>9&1,O.head.done=!0),N.adler=O.check=0,O.mode=12;break;case 10:for(;Q<32;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}N.adler=O.check=d(W),Q=W=0,O.mode=11;case 11:if(O.havedict===0)return N.next_out=R,N.avail_out=V,N.next_in=L,N.avail_in=U,O.hold=W,O.bits=Q,2;N.adler=O.check=1,O.mode=12;case 12:if(B===5||B===6)break e;case 13:if(O.last){W>>>=7&Q,Q-=7&Q,O.mode=27;break}for(;Q<3;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}switch(O.last=1&W,Q-=1,3&(W>>>=1)){case 0:O.mode=14;break;case 1:if(M(O),O.mode=20,B!==6)break;W>>>=2,Q-=2;break e;case 2:O.mode=17;break;case 3:N.msg="invalid block type",O.mode=30}W>>>=2,Q-=2;break;case 14:for(W>>>=7&Q,Q-=7&Q;Q<32;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if((65535&W)!=(W>>>16^65535)){N.msg="invalid stored block lengths",O.mode=30;break}if(O.length=65535&W,Q=W=0,O.mode=15,B===6)break e;case 15:O.mode=16;case 16:if(fe=O.length){if(U<fe&&(fe=U),V<fe&&(fe=V),fe===0)break e;t.arraySet(F,I,L,fe,R),U-=fe,L+=fe,V-=fe,R+=fe,O.length-=fe;break}O.mode=12;break;case 17:for(;Q<14;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(O.nlen=257+(31&W),W>>>=5,Q-=5,O.ndist=1+(31&W),W>>>=5,Q-=5,O.ncode=4+(15&W),W>>>=4,Q-=4,286<O.nlen||30<O.ndist){N.msg="too many length or distance symbols",O.mode=30;break}O.have=0,O.mode=18;case 18:for(;O.have<O.ncode;){for(;Q<3;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}O.lens[Ve[O.have++]]=7&W,W>>>=3,Q-=3}for(;O.have<19;)O.lens[Ve[O.have++]]=0;if(O.lencode=O.lendyn,O.lenbits=7,Ee={bits:O.lenbits},Te=o(0,O.lens,0,19,O.lencode,0,O.work,Ee),O.lenbits=Ee.bits,Te){N.msg="invalid code lengths set",O.mode=30;break}O.have=0,O.mode=19;case 19:for(;O.have<O.nlen+O.ndist;){for(;K=(Se=O.lencode[W&(1<<O.lenbits)-1])>>>16&255,oe=65535&Se,!((Y=Se>>>24)<=Q);){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(oe<16)W>>>=Y,Q-=Y,O.lens[O.have++]=oe;else{if(oe===16){for(ye=Y+2;Q<ye;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(W>>>=Y,Q-=Y,O.have===0){N.msg="invalid bit length repeat",O.mode=30;break}ue=O.lens[O.have-1],fe=3+(3&W),W>>>=2,Q-=2}else if(oe===17){for(ye=Y+3;Q<ye;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}Q-=Y,ue=0,fe=3+(7&(W>>>=Y)),W>>>=3,Q-=3}else{for(ye=Y+7;Q<ye;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}Q-=Y,ue=0,fe=11+(127&(W>>>=Y)),W>>>=7,Q-=7}if(O.have+fe>O.nlen+O.ndist){N.msg="invalid bit length repeat",O.mode=30;break}for(;fe--;)O.lens[O.have++]=ue}}if(O.mode===30)break;if(O.lens[256]===0){N.msg="invalid code -- missing end-of-block",O.mode=30;break}if(O.lenbits=9,Ee={bits:O.lenbits},Te=o(l,O.lens,0,O.nlen,O.lencode,0,O.work,Ee),O.lenbits=Ee.bits,Te){N.msg="invalid literal/lengths set",O.mode=30;break}if(O.distbits=6,O.distcode=O.distdyn,Ee={bits:O.distbits},Te=o(g,O.lens,O.nlen,O.ndist,O.distcode,0,O.work,Ee),O.distbits=Ee.bits,Te){N.msg="invalid distances set",O.mode=30;break}if(O.mode=20,B===6)break e;case 20:O.mode=21;case 21:if(6<=U&&258<=V){N.next_out=R,N.avail_out=V,N.next_in=L,N.avail_in=U,O.hold=W,O.bits=Q,f(N,G),R=N.next_out,F=N.output,V=N.avail_out,L=N.next_in,I=N.input,U=N.avail_in,W=O.hold,Q=O.bits,O.mode===12&&(O.back=-1);break}for(O.back=0;K=(Se=O.lencode[W&(1<<O.lenbits)-1])>>>16&255,oe=65535&Se,!((Y=Se>>>24)<=Q);){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(K&&(240&K)==0){for(pe=Y,ve=K,ge=oe;K=(Se=O.lencode[ge+((W&(1<<pe+ve)-1)>>pe)])>>>16&255,oe=65535&Se,!(pe+(Y=Se>>>24)<=Q);){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}W>>>=pe,Q-=pe,O.back+=pe}if(W>>>=Y,Q-=Y,O.back+=Y,O.length=oe,K===0){O.mode=26;break}if(32&K){O.back=-1,O.mode=12;break}if(64&K){N.msg="invalid literal/length code",O.mode=30;break}O.extra=15&K,O.mode=22;case 22:if(O.extra){for(ye=O.extra;Q<ye;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}O.length+=W&(1<<O.extra)-1,W>>>=O.extra,Q-=O.extra,O.back+=O.extra}O.was=O.length,O.mode=23;case 23:for(;K=(Se=O.distcode[W&(1<<O.distbits)-1])>>>16&255,oe=65535&Se,!((Y=Se>>>24)<=Q);){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if((240&K)==0){for(pe=Y,ve=K,ge=oe;K=(Se=O.distcode[ge+((W&(1<<pe+ve)-1)>>pe)])>>>16&255,oe=65535&Se,!(pe+(Y=Se>>>24)<=Q);){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}W>>>=pe,Q-=pe,O.back+=pe}if(W>>>=Y,Q-=Y,O.back+=Y,64&K){N.msg="invalid distance code",O.mode=30;break}O.offset=oe,O.extra=15&K,O.mode=24;case 24:if(O.extra){for(ye=O.extra;Q<ye;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}O.offset+=W&(1<<O.extra)-1,W>>>=O.extra,Q-=O.extra,O.back+=O.extra}if(O.offset>O.dmax){N.msg="invalid distance too far back",O.mode=30;break}O.mode=25;case 25:if(V===0)break e;if(fe=G-V,O.offset>fe){if((fe=O.offset-fe)>O.whave&&O.sane){N.msg="invalid distance too far back",O.mode=30;break}ie=fe>O.wnext?(fe-=O.wnext,O.wsize-fe):O.wnext-fe,fe>O.length&&(fe=O.length),he=O.window}else he=F,ie=R-O.offset,fe=O.length;for(V<fe&&(fe=V),V-=fe,O.length-=fe;F[R++]=he[ie++],--fe;);O.length===0&&(O.mode=21);break;case 26:if(V===0)break e;F[R++]=O.length,V--,O.mode=21;break;case 27:if(O.wrap){for(;Q<32;){if(U===0)break e;U--,W|=I[L++]<<Q,Q+=8}if(G-=V,N.total_out+=G,O.total+=G,G&&(N.adler=O.check=O.flags?u(O.check,F,G,R-G):c(O.check,F,G,R-G)),G=V,(O.flags?W:d(W))!==O.check){N.msg="incorrect data check",O.mode=30;break}Q=W=0}O.mode=28;case 28:if(O.wrap&&O.flags){for(;Q<32;){if(U===0)break e;U--,W+=I[L++]<<Q,Q+=8}if(W!==(4294967295&O.total)){N.msg="incorrect length check",O.mode=30;break}Q=W=0}O.mode=29;case 29:Te=1;break e;case 30:Te=-3;break e;case 31:return-4;case 32:default:return p}return N.next_out=R,N.avail_out=V,N.next_in=L,N.avail_in=U,O.hold=W,O.bits=Q,(O.wsize||G!==N.avail_out&&O.mode<30&&(O.mode<27||B!==4))&&P(N,N.output,N.next_out,G-N.avail_out)?(O.mode=31,-4):(le-=N.avail_in,G-=N.avail_out,N.total_in+=le,N.total_out+=G,O.total+=G,O.wrap&&G&&(N.adler=O.check=O.flags?u(O.check,F,G,N.next_out-G):c(O.check,F,G,N.next_out-G)),N.data_type=O.bits+(O.last?64:0)+(O.mode===12?128:0)+(O.mode===20||O.mode===15?256:0),(le==0&&G===0||B===4)&&Te===m&&(Te=-5),Te)},n.inflateEnd=function(N){if(!N||!N.state)return p;var B=N.state;return B.window&&(B.window=null),N.state=null,m},n.inflateGetHeader=function(N,B){var O;return N&&N.state?(2&(O=N.state).wrap)==0?p:((O.head=B).done=!1,m):p},n.inflateSetDictionary=function(N,B){var O,I=B.length;return N&&N.state?(O=N.state).wrap!==0&&O.mode!==11?p:O.mode===11&&c(1,B,I,0)!==O.check?-3:P(N,B,I,I)?(O.mode=31,-4):(O.havedict=1,m):p},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,i,n){var t=r("../utils/common"),c=[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],u=[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],f=[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],o=[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];i.exports=function(l,g,m,p,_,y,h,d){var A,v,w,x,C,k,T,S,M,P=d.bits,N=0,B=0,O=0,I=0,F=0,L=0,R=0,U=0,V=0,W=0,Q=null,le=0,G=new t.Buf16(16),fe=new t.Buf16(16),ie=null,he=0;for(N=0;N<=15;N++)G[N]=0;for(B=0;B<p;B++)G[g[m+B]]++;for(F=P,I=15;1<=I&&G[I]===0;I--);if(I<F&&(F=I),I===0)return _[y++]=20971520,_[y++]=20971520,d.bits=1,0;for(O=1;O<I&&G[O]===0;O++);for(F<O&&(F=O),N=U=1;N<=15;N++)if(U<<=1,(U-=G[N])<0)return-1;if(0<U&&(l===0||I!==1))return-1;for(fe[1]=0,N=1;N<15;N++)fe[N+1]=fe[N]+G[N];for(B=0;B<p;B++)g[m+B]!==0&&(h[fe[g[m+B]]++]=B);if(k=l===0?(Q=ie=h,19):l===1?(Q=c,le-=257,ie=u,he-=257,256):(Q=f,ie=o,-1),N=O,C=y,R=B=W=0,w=-1,x=(V=1<<(L=F))-1,l===1&&852<V||l===2&&592<V)return 1;for(;;){for(T=N-R,M=h[B]<k?(S=0,h[B]):h[B]>k?(S=ie[he+h[B]],Q[le+h[B]]):(S=96,0),A=1<<N-R,O=v=1<<L;_[C+(W>>R)+(v-=A)]=T<<24|S<<16|M|0,v!==0;);for(A=1<<N-1;W&A;)A>>=1;if(A!==0?(W&=A-1,W+=A):W=0,B++,--G[N]==0){if(N===I)break;N=g[m+h[B]]}if(F<N&&(W&x)!==w){for(R===0&&(R=F),C+=O,U=1<<(L=N-R);L+R<I&&!((U-=G[L+R])<=0);)L++,U<<=1;if(V+=1<<L,l===1&&852<V||l===2&&592<V)return 1;_[w=W&x]=F<<24|L<<16|C-y|0}}return W!==0&&(_[C+W]=N-R<<24|64<<16|0),d.bits=F,0}},{"../utils/common":41}],51:[function(r,i,n){i.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(r,i,n){var t=r("../utils/common"),c=0,u=1;function f(Se){for(var Fe=Se.length;0<=--Fe;)Se[Fe]=0}var o=0,l=29,g=256,m=g+1+l,p=30,_=19,y=2*m+1,h=15,d=16,A=7,v=256,w=16,x=17,C=18,k=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],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],S=[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],P=new Array(2*(m+2));f(P);var N=new Array(2*p);f(N);var B=new Array(512);f(B);var O=new Array(256);f(O);var I=new Array(l);f(I);var F,L,R,U=new Array(p);function V(Se,Fe,Ve,ke,Pe){this.static_tree=Se,this.extra_bits=Fe,this.extra_base=Ve,this.elems=ke,this.max_length=Pe,this.has_stree=Se&&Se.length}function W(Se,Fe){this.dyn_tree=Se,this.max_code=0,this.stat_desc=Fe}function Q(Se){return Se<256?B[Se]:B[256+(Se>>>7)]}function le(Se,Fe){Se.pending_buf[Se.pending++]=255&Fe,Se.pending_buf[Se.pending++]=Fe>>>8&255}function G(Se,Fe,Ve){Se.bi_valid>d-Ve?(Se.bi_buf|=Fe<<Se.bi_valid&65535,le(Se,Se.bi_buf),Se.bi_buf=Fe>>d-Se.bi_valid,Se.bi_valid+=Ve-d):(Se.bi_buf|=Fe<<Se.bi_valid&65535,Se.bi_valid+=Ve)}function fe(Se,Fe,Ve){G(Se,Ve[2*Fe],Ve[2*Fe+1])}function ie(Se,Fe){for(var Ve=0;Ve|=1&Se,Se>>>=1,Ve<<=1,0<--Fe;);return Ve>>>1}function he(Se,Fe,Ve){var ke,Pe,Re=new Array(h+1),Ye=0;for(ke=1;ke<=h;ke++)Re[ke]=Ye=Ye+Ve[ke-1]<<1;for(Pe=0;Pe<=Fe;Pe++){var Ke=Se[2*Pe+1];Ke!==0&&(Se[2*Pe]=ie(Re[Ke]++,Ke))}}function Y(Se){var Fe;for(Fe=0;Fe<m;Fe++)Se.dyn_ltree[2*Fe]=0;for(Fe=0;Fe<p;Fe++)Se.dyn_dtree[2*Fe]=0;for(Fe=0;Fe<_;Fe++)Se.bl_tree[2*Fe]=0;Se.dyn_ltree[2*v]=1,Se.opt_len=Se.static_len=0,Se.last_lit=Se.matches=0}function K(Se){8<Se.bi_valid?le(Se,Se.bi_buf):0<Se.bi_valid&&(Se.pending_buf[Se.pending++]=Se.bi_buf),Se.bi_buf=0,Se.bi_valid=0}function oe(Se,Fe,Ve,ke){var Pe=2*Fe,Re=2*Ve;return Se[Pe]<Se[Re]||Se[Pe]===Se[Re]&&ke[Fe]<=ke[Ve]}function pe(Se,Fe,Ve){for(var ke=Se.heap[Ve],Pe=Ve<<1;Pe<=Se.heap_len&&(Pe<Se.heap_len&&oe(Fe,Se.heap[Pe+1],Se.heap[Pe],Se.depth)&&Pe++,!oe(Fe,ke,Se.heap[Pe],Se.depth));)Se.heap[Ve]=Se.heap[Pe],Ve=Pe,Pe<<=1;Se.heap[Ve]=ke}function ve(Se,Fe,Ve){var ke,Pe,Re,Ye,Ke=0;if(Se.last_lit!==0)for(;ke=Se.pending_buf[Se.d_buf+2*Ke]<<8|Se.pending_buf[Se.d_buf+2*Ke+1],Pe=Se.pending_buf[Se.l_buf+Ke],Ke++,ke===0?fe(Se,Pe,Fe):(fe(Se,(Re=O[Pe])+g+1,Fe),(Ye=k[Re])!==0&&G(Se,Pe-=I[Re],Ye),fe(Se,Re=Q(--ke),Ve),(Ye=T[Re])!==0&&G(Se,ke-=U[Re],Ye)),Ke<Se.last_lit;);fe(Se,v,Fe)}function ge(Se,Fe){var Ve,ke,Pe,Re=Fe.dyn_tree,Ye=Fe.stat_desc.static_tree,Ke=Fe.stat_desc.has_stree,ot=Fe.stat_desc.elems,nt=-1;for(Se.heap_len=0,Se.heap_max=y,Ve=0;Ve<ot;Ve++)Re[2*Ve]!==0?(Se.heap[++Se.heap_len]=nt=Ve,Se.depth[Ve]=0):Re[2*Ve+1]=0;for(;Se.heap_len<2;)Re[2*(Pe=Se.heap[++Se.heap_len]=nt<2?++nt:0)]=1,Se.depth[Pe]=0,Se.opt_len--,Ke&&(Se.static_len-=Ye[2*Pe+1]);for(Fe.max_code=nt,Ve=Se.heap_len>>1;1<=Ve;Ve--)pe(Se,Re,Ve);for(Pe=ot;Ve=Se.heap[1],Se.heap[1]=Se.heap[Se.heap_len--],pe(Se,Re,1),ke=Se.heap[1],Se.heap[--Se.heap_max]=Ve,Se.heap[--Se.heap_max]=ke,Re[2*Pe]=Re[2*Ve]+Re[2*ke],Se.depth[Pe]=(Se.depth[Ve]>=Se.depth[ke]?Se.depth[Ve]:Se.depth[ke])+1,Re[2*Ve+1]=Re[2*ke+1]=Pe,Se.heap[1]=Pe++,pe(Se,Re,1),2<=Se.heap_len;);Se.heap[--Se.heap_max]=Se.heap[1],(function(mt,Ut){var Ot,wt,Kt,_t,Jt,yr,vr=Ut.dyn_tree,Br=Ut.max_code,zr=Ut.stat_desc.static_tree,mn=Ut.stat_desc.has_stree,jr=Ut.stat_desc.extra_bits,Tn=Ut.stat_desc.extra_base,Lt=Ut.stat_desc.max_length,Gt=0;for(_t=0;_t<=h;_t++)mt.bl_count[_t]=0;for(vr[2*mt.heap[mt.heap_max]+1]=0,Ot=mt.heap_max+1;Ot<y;Ot++)Lt<(_t=vr[2*vr[2*(wt=mt.heap[Ot])+1]+1]+1)&&(_t=Lt,Gt++),vr[2*wt+1]=_t,Br<wt||(mt.bl_count[_t]++,Jt=0,Tn<=wt&&(Jt=jr[wt-Tn]),yr=vr[2*wt],mt.opt_len+=yr*(_t+Jt),mn&&(mt.static_len+=yr*(zr[2*wt+1]+Jt)));if(Gt!==0){do{for(_t=Lt-1;mt.bl_count[_t]===0;)_t--;mt.bl_count[_t]--,mt.bl_count[_t+1]+=2,mt.bl_count[Lt]--,Gt-=2}while(0<Gt);for(_t=Lt;_t!==0;_t--)for(wt=mt.bl_count[_t];wt!==0;)Br<(Kt=mt.heap[--Ot])||(vr[2*Kt+1]!==_t&&(mt.opt_len+=(_t-vr[2*Kt+1])*vr[2*Kt],vr[2*Kt+1]=_t),wt--)}})(Se,Fe),he(Re,nt,Se.bl_count)}function ue(Se,Fe,Ve){var ke,Pe,Re=-1,Ye=Fe[1],Ke=0,ot=7,nt=4;for(Ye===0&&(ot=138,nt=3),Fe[2*(Ve+1)+1]=65535,ke=0;ke<=Ve;ke++)Pe=Ye,Ye=Fe[2*(ke+1)+1],++Ke<ot&&Pe===Ye||(Ke<nt?Se.bl_tree[2*Pe]+=Ke:Pe!==0?(Pe!==Re&&Se.bl_tree[2*Pe]++,Se.bl_tree[2*w]++):Ke<=10?Se.bl_tree[2*x]++:Se.bl_tree[2*C]++,Re=Pe,nt=(Ke=0)===Ye?(ot=138,3):Pe===Ye?(ot=6,3):(ot=7,4))}function Te(Se,Fe,Ve){var ke,Pe,Re=-1,Ye=Fe[1],Ke=0,ot=7,nt=4;for(Ye===0&&(ot=138,nt=3),ke=0;ke<=Ve;ke++)if(Pe=Ye,Ye=Fe[2*(ke+1)+1],!(++Ke<ot&&Pe===Ye)){if(Ke<nt)for(;fe(Se,Pe,Se.bl_tree),--Ke!=0;);else Pe!==0?(Pe!==Re&&(fe(Se,Pe,Se.bl_tree),Ke--),fe(Se,w,Se.bl_tree),G(Se,Ke-3,2)):Ke<=10?(fe(Se,x,Se.bl_tree),G(Se,Ke-3,3)):(fe(Se,C,Se.bl_tree),G(Se,Ke-11,7));Re=Pe,nt=(Ke=0)===Ye?(ot=138,3):Pe===Ye?(ot=6,3):(ot=7,4)}}f(U);var Ee=!1;function ye(Se,Fe,Ve,ke){G(Se,(o<<1)+(ke?1:0),3),(function(Pe,Re,Ye,Ke){K(Pe),le(Pe,Ye),le(Pe,~Ye),t.arraySet(Pe.pending_buf,Pe.window,Re,Ye,Pe.pending),Pe.pending+=Ye})(Se,Fe,Ve)}n._tr_init=function(Se){Ee||((function(){var Fe,Ve,ke,Pe,Re,Ye=new Array(h+1);for(Pe=ke=0;Pe<l-1;Pe++)for(I[Pe]=ke,Fe=0;Fe<1<<k[Pe];Fe++)O[ke++]=Pe;for(O[ke-1]=Pe,Pe=Re=0;Pe<16;Pe++)for(U[Pe]=Re,Fe=0;Fe<1<<T[Pe];Fe++)B[Re++]=Pe;for(Re>>=7;Pe<p;Pe++)for(U[Pe]=Re<<7,Fe=0;Fe<1<<T[Pe]-7;Fe++)B[256+Re++]=Pe;for(Ve=0;Ve<=h;Ve++)Ye[Ve]=0;for(Fe=0;Fe<=143;)P[2*Fe+1]=8,Fe++,Ye[8]++;for(;Fe<=255;)P[2*Fe+1]=9,Fe++,Ye[9]++;for(;Fe<=279;)P[2*Fe+1]=7,Fe++,Ye[7]++;for(;Fe<=287;)P[2*Fe+1]=8,Fe++,Ye[8]++;for(he(P,m+1,Ye),Fe=0;Fe<p;Fe++)N[2*Fe+1]=5,N[2*Fe]=ie(Fe,5);F=new V(P,k,g+1,m,h),L=new V(N,T,0,p,h),R=new V(new Array(0),S,0,_,A)})(),Ee=!0),Se.l_desc=new W(Se.dyn_ltree,F),Se.d_desc=new W(Se.dyn_dtree,L),Se.bl_desc=new W(Se.bl_tree,R),Se.bi_buf=0,Se.bi_valid=0,Y(Se)},n._tr_stored_block=ye,n._tr_flush_block=function(Se,Fe,Ve,ke){var Pe,Re,Ye=0;0<Se.level?(Se.strm.data_type===2&&(Se.strm.data_type=(function(Ke){var ot,nt=4093624447;for(ot=0;ot<=31;ot++,nt>>>=1)if(1&nt&&Ke.dyn_ltree[2*ot]!==0)return c;if(Ke.dyn_ltree[18]!==0||Ke.dyn_ltree[20]!==0||Ke.dyn_ltree[26]!==0)return u;for(ot=32;ot<g;ot++)if(Ke.dyn_ltree[2*ot]!==0)return u;return c})(Se)),ge(Se,Se.l_desc),ge(Se,Se.d_desc),Ye=(function(Ke){var ot;for(ue(Ke,Ke.dyn_ltree,Ke.l_desc.max_code),ue(Ke,Ke.dyn_dtree,Ke.d_desc.max_code),ge(Ke,Ke.bl_desc),ot=_-1;3<=ot&&Ke.bl_tree[2*M[ot]+1]===0;ot--);return Ke.opt_len+=3*(ot+1)+5+5+4,ot})(Se),Pe=Se.opt_len+3+7>>>3,(Re=Se.static_len+3+7>>>3)<=Pe&&(Pe=Re)):Pe=Re=Ve+5,Ve+4<=Pe&&Fe!==-1?ye(Se,Fe,Ve,ke):Se.strategy===4||Re===Pe?(G(Se,2+(ke?1:0),3),ve(Se,P,N)):(G(Se,4+(ke?1:0),3),(function(Ke,ot,nt,mt){var Ut;for(G(Ke,ot-257,5),G(Ke,nt-1,5),G(Ke,mt-4,4),Ut=0;Ut<mt;Ut++)G(Ke,Ke.bl_tree[2*M[Ut]+1],3);Te(Ke,Ke.dyn_ltree,ot-1),Te(Ke,Ke.dyn_dtree,nt-1)})(Se,Se.l_desc.max_code+1,Se.d_desc.max_code+1,Ye+1),ve(Se,Se.dyn_ltree,Se.dyn_dtree)),Y(Se),ke&&K(Se)},n._tr_tally=function(Se,Fe,Ve){return Se.pending_buf[Se.d_buf+2*Se.last_lit]=Fe>>>8&255,Se.pending_buf[Se.d_buf+2*Se.last_lit+1]=255&Fe,Se.pending_buf[Se.l_buf+Se.last_lit]=255&Ve,Se.last_lit++,Fe===0?Se.dyn_ltree[2*Ve]++:(Se.matches++,Fe--,Se.dyn_ltree[2*(O[Ve]+g+1)]++,Se.dyn_dtree[2*Q(Fe)]++),Se.last_lit===Se.lit_bufsize-1},n._tr_align=function(Se){G(Se,2,3),fe(Se,v,P),(function(Fe){Fe.bi_valid===16?(le(Fe,Fe.bi_buf),Fe.bi_buf=0,Fe.bi_valid=0):8<=Fe.bi_valid&&(Fe.pending_buf[Fe.pending++]=255&Fe.bi_buf,Fe.bi_buf>>=8,Fe.bi_valid-=8)})(Se)}},{"../utils/common":41}],53:[function(r,i,n){i.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(r,i,n){(function(t){(function(c,u){if(!c.setImmediate){var f,o,l,g,m=1,p={},_=!1,y=c.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(c);h=h&&h.setTimeout?h:c,f={}.toString.call(c.process)==="[object process]"?function(w){process.nextTick(function(){A(w)})}:(function(){if(c.postMessage&&!c.importScripts){var w=!0,x=c.onmessage;return c.onmessage=function(){w=!1},c.postMessage("","*"),c.onmessage=x,w}})()?(g="setImmediate$"+Math.random()+"$",c.addEventListener?c.addEventListener("message",v,!1):c.attachEvent("onmessage",v),function(w){c.postMessage(g+w,"*")}):c.MessageChannel?((l=new MessageChannel).port1.onmessage=function(w){A(w.data)},function(w){l.port2.postMessage(w)}):y&&"onreadystatechange"in y.createElement("script")?(o=y.documentElement,function(w){var x=y.createElement("script");x.onreadystatechange=function(){A(w),x.onreadystatechange=null,o.removeChild(x),x=null},o.appendChild(x)}):function(w){setTimeout(A,0,w)},h.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var x=new Array(arguments.length-1),C=0;C<x.length;C++)x[C]=arguments[C+1];var k={callback:w,args:x};return p[m]=k,f(m),m++},h.clearImmediate=d}function d(w){delete p[w]}function A(w){if(_)setTimeout(A,0,w);else{var x=p[w];if(x){_=!0;try{(function(C){var k=C.callback,T=C.args;switch(T.length){case 0:k();break;case 1:k(T[0]);break;case 2:k(T[0],T[1]);break;case 3:k(T[0],T[1],T[2]);break;default:k.apply(u,T)}})(x)}finally{d(w),_=!1}}}}function v(w){w.source===c&&typeof w.data=="string"&&w.data.indexOf(g)===0&&A(+w.data.slice(g.length))}})(typeof self>"u"?t===void 0?this:t:self)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(yb)),yb.exports}var DT=MT();const YC=dy(DT),j0=""+new URL("logo-DGFYJoXU.png",import.meta.url).href,xx={mdi:{size:24,viewbox:"0 0 24 24"},"simple-icons":{size:24,viewbox:"0 0 24 24"},default:{size:0,viewbox:"0 0 0 0"}},OT={name:"icon",props:{type:String,path:{type:String,required:!0},size:{type:[String,Number],default:24},viewbox:String,flip:{type:String,validator:a=>["horizontal","vertical","both","none"].includes(a)},rotate:{type:Number,default:0}},computed:{styles(){return{"--sx":["both","horizontal"].includes(this.flip)?"-1":"1","--sy":["both","vertical"].includes(this.flip)?"-1":"1","--r":isNaN(this.rotate)?this.rotate:this.rotate+"deg"}},defaults(){return xx[this.type]||xx.default},sizeValue(){return this.size||this.defaults.size},viewboxValue(){return this.viewbox||this.defaults.viewbox}}},LT=["width","height","viewBox"],PT=["d"];function RT(a,s,r,i,n,t){return Oe(),st("svg",{width:t.sizeValue,height:t.sizeValue,viewBox:t.viewboxValue,style:av(t.styles)},[de("path",{d:r.path},null,8,PT)],12,LT)}const Rc=cn(OT,[["render",RT],["__scopeId","data-v-88e9ad95"]]);var XC="M18.54 9.88L17.12 8.47L15 10.59L12.88 8.47L11.47 9.88L13.59 12L11.47 14.12L12.88 15.54L15 13.41L17.12 15.54L18.54 14.12L16.41 12M2 12C2 9.21 3.64 6.8 6 5.68V3.5C2.5 4.76 0 8.09 0 12S2.5 19.24 6 20.5V18.32C3.64 17.2 2 14.79 2 12M15 3C10.04 3 6 7.04 6 12S10.04 21 15 21 24 16.96 24 12 19.96 3 15 3M15 19C11.14 19 8 15.86 8 12S11.14 5 15 5 22 8.14 22 12 18.86 19 15 19Z",ZC="M5 3H19C20.11 3 21 3.9 21 5V19C21 20.11 20.11 21 19 21H5C3.9 21 3 20.11 3 19V5C3 3.9 3.9 3 5 3M8 17H16V15H8V17M16 10H13.5V7H10.5V10H8L12 14L16 10Z",UT="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",NT="M10,9A1,1 0 0,1 11,8A1,1 0 0,1 12,9V13.47L13.21,13.6L18.15,15.79C18.68,16.03 19,16.56 19,17.14V21.5C18.97,22.32 18.32,22.97 17.5,23H11C10.62,23 10.26,22.85 10,22.57L5.1,18.37L5.84,17.6C6.03,17.39 6.3,17.28 6.58,17.28H6.8L10,19V9M11,5A4,4 0 0,1 15,9C15,10.5 14.2,11.77 13,12.46V11.24C13.61,10.69 14,9.89 14,9A3,3 0 0,0 11,6A3,3 0 0,0 8,9C8,9.89 8.39,10.69 9,11.24V12.46C7.8,11.77 7,10.5 7,9A4,4 0 0,1 11,5M11,3A6,6 0 0,1 17,9C17,10.7 16.29,12.23 15.16,13.33L14.16,12.88C15.28,11.96 16,10.56 16,9A5,5 0 0,0 11,4A5,5 0 0,0 6,9C6,11.05 7.23,12.81 9,13.58V14.66C6.67,13.83 5,11.61 5,9A6,6 0 0,1 11,3Z",jT="M22.11 21.46L2.39 1.73L1.11 3L3.21 5.1C3.09 5.29 3 5.5 3 5.75V16C3 20.42 6.58 24 11 24C13.93 24 16.58 22.39 17.97 19.86L20.84 22.73L22.11 21.46M5.5 12V7.39L6.5 8.39V12H5.5M10 12H9V10.89L10 11.89V12M16 12.8L13.5 10.3V3.25C13.5 2.56 14.06 2 14.75 2S16 2.56 16 3.25V12.8M19.5 16.28L17.16 13.96L18.16 11.47C18.38 10.92 18.84 10.5 19.4 10.31L20.19 10.05C21 9.79 21.74 10.58 21.43 11.37L19.5 16.28M9 5.8L6.5 3.3V2.75C6.5 2.06 7.06 1.5 7.75 1.5S9 2.06 9 2.75V5.8M12.5 9.3L10 6.8V1.25C10 .56 10.56 0 11.25 0S12.5 .56 12.5 1.25V9.3Z",HT="M19.31 18.9C19.75 18.21 20 17.38 20 16.5C20 14 18 12 15.5 12S11 14 11 16.5 13 21 15.5 21C16.37 21 17.19 20.75 17.88 20.32L21 23.39L22.39 22L19.31 18.9M15.5 19C14.12 19 13 17.88 13 16.5S14.12 14 15.5 14 18 15.12 18 16.5 16.88 19 15.5 19M5 20V12H2L12 3L22 12H20.18C19 10.77 17.34 10 15.5 10C11.92 10 9 12.92 9 16.5C9 17.79 9.38 19 10.03 20H5Z",JC="M18 15V18H15V20H18V23H20V20H23V18H20V15H18M13.3 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V13.3C20.4 13.1 19.7 13 19 13C17.9 13 16.8 13.3 15.9 13.9L14.5 12L11 16.5L8.5 13.5L5 18H13.1C13 18.3 13 18.7 13 19C13 19.7 13.1 20.4 13.3 21Z",QT="M3.27,1L2,2.27L6.22,6.5L3,9L4.63,10.27L12,16L14.1,14.37L15.53,15.8L12,18.54L4.63,12.81L3,14.07L12,21.07L16.95,17.22L20.73,21L22,19.73L3.27,1M19.36,10.27L21,9L12,2L9.09,4.27L16.96,12.15L19.36,10.27M19.81,15L21,14.07L19.57,12.64L18.38,13.56L19.81,15Z";const zT=async a=>{let s={"Accept-Encoding":"gzip, deflate, br","Accept-Language":"zh-CN,zh;q=0.9,zh-TW;q=0.8,en-US;q=0.7,en;q=0.6","Content-Type":"text/html",Origin:"https://www.temu.com",Referer:"https://www.temu.com",Cookie:document.cookie};return await Y8(a,s,4e4)};function qC(a){return To({url:"/serv/api/1688ImageSearch",method:"POST",data:a})}function Cx(a){return To({url:"/serv/api/1688QueryProductDetail",method:"POST",data:a})}const VT={__name:"m-tooltip",props:{text:String,disabled:{type:Boolean,default:!1}},setup(a){return(s,r)=>{const i=Ce("el-tooltip");return Oe(),Et(i,{disabled:a.disabled,content:a.text,"show-after":1e3,"popper-options":{offset:0},placement:"top",effect:"light"},{default:q(()=>[de("p",null,ht(a.text),1)]),_:1},8,["disabled","content"])}}},hm=cn(VT,[["__scopeId","data-v-a37629aa"]]);function WT(a){return To({url:"/serv/feedback_api/upload",method:"POST",data:a})}function GT(a){return To({url:"/serv/feedback_api/create",method:"POST",data:a})}function $T(a){return pu("/api/api/temuFeedbackJoinSite",a,36e4)}function KT(a){return pu("/api/api/temuFeedbackImageReview",a,36e4)}async function YT(a){let s=100,r=[];const i=a.isSemiManagedMall?"https://seller.kuajingmaihuo.com/marvel-mms/cn/api/kiana/xmen/select/searchForSemiSupplier":"https://seller.kuajingmaihuo.com/marvel-mms/cn/api/kiana/xmen/select/searchForChainSupplier";for(let n=1;n<=5;n++){const{success:t,errorMsg:c,result:u}=await pi({method:"POST",url:i,data:{pageSize:s,pageNum:n,priceReviewStatusList:[0],secondarySelectStatusList:[7],supplierTodoTypeList:[]},headers:{"Content-Type":"application/json;charset=UTF-8",Mallid:a.mallId},timeout:1e4});if(!t)throw new Error(c);const{total:f,dataList:o}=u;if(!f)break;for(let l of o)for(let g of l.skcList)r.push(g);if(s*n>=f)break}return r}function XT(a,{feedbackType:s,productSkcId:r,feedbackProblemType:i,remark:n}){return pi({method:"POST",url:"https://seller.kuajingmaihuo.com/moonKnight/api/mallFeedbackMmsExecute/submitFeedback",data:{feedbackType:s,productSkcId:r,feedbackProblemType:i,remark:n},headers:{"Content-Type":"application/json;charset=UTF-8",Mallid:a},timeout:1e4})}const ZT=xi({name:"my-feedback",setup(){const a=we(!1),s=()=>{a.value=!0},r=()=>{a.value=!1},i=["凌风功能优化建议或者bug反馈","其他功能开发需求","其他问题"],n=["电话","微信","qq"],t=we(0),c=we("/serv/feedback_api//upload"),u=we(""),f=we(!1),o=we([]),l=we([]),g=we(!1);function m(v){o.value.push(v.file),g.value=o.value.length>=5}const p=Vl({adivceType:t.value,descriptionText:"",imageUrlList:[],contactType:"",contactInfomation:""});function _(v){t.value!==v&&(t.value=v)}const y=async()=>{let v=new FormData;if(!o.value.length){l.value=[];return}o.value.forEach(x=>{v.append("images",x)});const w=await WT(v);return console.log(w,">>>>>>上传"),w.status===1?(ut({type:"error",message:w.errorMsg||"上传错误"}),Promise.reject(!1)):(l.value=w.data.imagesUrlList,Promise.resolve())};return{isShow:a,open:s,close:r,form:p,adivceTypeList:i,activeIndex:t,changeType:_,contactTypeList:n,uploadURL:c,fileList:o,handleRemove:(v,w)=>{o.value=[],console.log("uploadFiles",w),w.forEach(x=>{o.value.push(x.raw)}),g.value=o.value.length>=5},handlePreview:v=>{u.value=v.url,f.value=!0},uploadShow:g,dialogImageUrl:u,dialogVisible:f,httpRequest:m,onSubmit:async()=>{if(await y(),p.adivceType=t.value,p.imageUrlList=l.value,p.contactType||(p.contactType=null),p.contactInfomation||(p.contactInfomation=null),!p.descriptionText&&!p.imageUrlList.length){ut({type:"error",message:"文字或图片至少填写一种!"});return}await GT(p),r(),ut({type:"success",message:"提交成功!"})}}}}),JT=["src"];function qT(a,s,r,i,n,t){const c=Ce("el-button"),u=Ce("el-form-item"),f=Ce("el-input"),o=Ce("var-icon"),l=Ce("el-upload"),g=Ce("el-dialog"),m=Ce("el-option"),p=Ce("el-select"),_=Ce("el-form"),y=Ce("el-drawer");return Oe(),Et(y,{modelValue:a.isShow,"onUpdate:modelValue":s[5]||(s[5]=h=>a.isShow=h),title:"【凌风跨境工具箱】我要反馈需求",size:"800px","append-to-body":""},{default:q(()=>[z(_,{model:a.form,"label-width":"120px"},{default:q(()=>[z(u,null,{default:q(()=>[(Oe(!0),st(Zt,null,Hr(a.adivceTypeList,(h,d)=>(Oe(),Et(c,{class:ao([a.activeIndex===d?"active":""]),key:d,onClick:A=>a.changeType(d)},{default:q(()=>[Ue(ht(h),1)]),_:2},1032,["class","onClick"]))),128))]),_:1}),z(u,{label:"文字"},{default:q(()=>[z(f,{modelValue:a.form.descriptionText,"onUpdate:modelValue":s[0]||(s[0]=h=>a.form.descriptionText=h),type:"textarea",maxlength:"5000",rows:"8",resize:"none","show-word-limit":""},null,8,["modelValue"])]),_:1}),z(u,{label:"图片"},{default:q(()=>[z(l,{class:ao({"hide-upload":a.uploadShow}),multiple:"","list-type":"picture-card",accept:".jpeg,.jpg,.png",limit:"5",action:a.uploadURL,"on-preview":a.handlePreview,"on-remove":a.handleRemove,"http-request":h=>a.httpRequest(h)},{default:q(()=>[z(o,{name:"plus"})]),_:1},8,["class","action","on-preview","on-remove","http-request"]),z(g,{modelValue:a.dialogVisible,"onUpdate:modelValue":s[1]||(s[1]=h=>a.dialogVisible=h)},{default:q(()=>[de("img",{style:{"max-width":"100%"},"w-full":"",src:a.dialogImageUrl,alt:"Preview Image"},null,8,JT)]),_:1},8,["modelValue"])]),_:1}),z(u,{label:"联系方式"},{default:q(()=>[z(p,{modelValue:a.form.contactType,"onUpdate:modelValue":s[2]||(s[2]=h=>a.form.contactType=h),placeholder:"请选择联系方式"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(a.contactTypeList,(h,d)=>(Oe(),Et(m,{key:d,label:h,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),z(f,{modelValue:a.form.contactInfomation,"onUpdate:modelValue":s[3]||(s[3]=h=>a.form.contactInfomation=h),placeholder:"请输入电话、微信、qq",style:{width:"220px"}},null,8,["modelValue"])]),_:1}),z(u,null,{default:q(()=>[z(c,{type:"primary",onClick:a.onSubmit},{default:q(()=>[...s[6]||(s[6]=[Ue("提交",-1)])]),_:1},8,["onClick"]),z(c,{onClick:s[4]||(s[4]=h=>a.close())},{default:q(()=>[...s[7]||(s[7]=[Ue("取消",-1)])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}const eE=cn(ZT,[["render",qT],["__scopeId","data-v-8da54622"]]),tE={__name:"feedBackFixed",setup(a){const s=we(),r=()=>{s.value.open()};return(i,n)=>{const t=Ce("var-icon");return Oe(),st(Zt,null,[de("div",{class:"feedBack",onClick:r},[z(t,{name:"chevron-left",size:22}),z(t,{name:"message-processing-outline",size:22})]),z(eE,{ref_key:"feedbackRef",ref:s},null,512)],64)}}},eS=cn(tE,[["__scopeId","data-v-7ac28d2a"]]),rE=["src"],nE={class:"searchBox"},aE={class:"goodImg"},iE=["src"],sE={class:"goodsData"},oE={key:1,class:"goodsList"},lE=["onClick"],uE={class:"good-img"},cE=["src"],fE={class:"good-des"},dE={class:"good-title"},hE={class:"good-title"},AE={__name:"index",setup(a){const s=ls(),r=we(!1),i=we("en"),n=we(""),t=Vl({score:[],rate24:[],rate48:[],type:[]}),c=we([]),u=Vl({top:0,left:0,display:"none",img:""}),f=()=>{p.current<p.totalPage&&(p.current=p.current+1,w())},o=async k=>!(!await QC()||!await zC(k)),l=async()=>{await o(s)&&(n.value=u.img,r.value=!0,p.current=1,t.score=[],t.rate24=[],t.rate48=[],t.type=[],w())},g=()=>{p.current=1,w()},m=we(!1),p=Vl({current:1,pageSize:10,total:0,totalPage:0}),_=we(!1);let y=!1;const h=()=>{y=!0},d=()=>{y=!1};async function A(k){const S=await(await fetch(k)).blob();return new Promise((M,P)=>{const N=new FileReader;N.onloadend=()=>{M(N.result)},N.onerror=P,N.readAsDataURL(S)})}function v(k){const T=k.indexOf("?");return T!==-1?k.substring(0,T):k}const w=async()=>{m.value=!0;const k=v(n.value);let T=await A(k);T=T.replace(/^data:image\/\w+;base64,/,"");let S={imageBase64:T,beginPage:p.current,pageSize:p.pageSize,country:i.value,filter:x()};qC(S).then(M=>{m.value=!1,p.total=M.total,p.totalPage=M.totalPage;let P=[];if(p.current===1)P=M.result||[],P.forEach((N,B)=>{Cx({offerId:N.offerId,country:i.value}).then(O=>{c.value[B].detailInfo=O.result||{}})});else{P=c.value;let N=(p.current-1)*p.pageSize;M.result&&M.result.forEach((B,O)=>{P.push(B),Cx({offerId:B.offerId,country:i.value}).then(I=>{c.value[N+O].detailInfo=I.result||{}})})}c.value=P}).catch(M=>{console.log("err:",M),c.value=[],m.value=!1})},x=()=>{let k="";return Object.keys(t).forEach(T=>{t[T].filter(Boolean).join("")!==""&&(k+=t[T].filter(Boolean).join(",")+",")}),k.slice(0,-1)},C=(k,T)=>{window.open(`https://detail.1688.com/offer/${k}.html?kj_agent_plugin=lingfengplugin&token=${T}`,"_blank")};return oa(()=>{window.addEventListener("mouseover",k=>{var F;if(y)return;let{clientX:T,clientY:S,offsetX:M,offsetY:P}=k,{clientWidth:N,clientHeight:B,src:O}=k.target,I=!1;if(k.target.tagName.toLowerCase()==="img")I=!0;else{let L=k.target.querySelector("img");if(L||(L=(F=k.target.parentElement)==null?void 0:F.querySelector("img")),L){const R=L.getBoundingClientRect();T>=R.left&&T<=R.right&&S>=R.top&&S<=R.bottom&&(I=!0,N=L.clientWidth,B=L.clientHeight,M=T-R.left,P=S-R.top,O=L.src)}}I&&N>100&&B>100?(u.top=S-P,u.left=T-M+N-40,u.img=O,u.initialScrollY=window.scrollY,u.initialScrollX=window.scrollX,_.value=!0):_.value=!1}),window.addEventListener("scroll",()=>{_.value&&(u.top-=window.scrollY-u.initialScrollY,u.left-=window.scrollX-u.initialScrollX,u.initialScrollY=window.scrollY,u.initialScrollX=window.scrollX)}),setTimeout(()=>{w()},1e3)}),(k,T)=>{const S=Ce("var-icon"),M=Ce("var-tooltip"),P=Ce("CircleCloseFilled"),N=Ce("el-icon"),B=Ce("el-option"),O=Ce("el-select"),I=Ce("el-form-item"),F=Ce("el-checkbox"),L=Ce("el-checkbox-group"),R=Ce("el-button"),U=Ce("el-form"),V=Ce("el-empty"),W=Ce("el-drawer"),Q=Ai("infinite-scroll"),le=Ai("loading");return Oe(),st(Zt,null,[na(de("div",{class:"picture",onClick:T[0]||(T[0]=G=>r.value=!0)},[z(S,{name:"chevron-left",size:22}),de("img",{src:n.value},null,8,rE)],512),[[Cl,n.value]]),_.value?(Oe(),st("div",{key:0,id:"magnify",class:"magnify-container",onClick:l,onMouseover:h,onMouseleave:d,style:av({top:u.top+"px",left:u.left+"px"})},[z(M,{content:"【凌风跨境工具箱】图搜货源",placement:"top"},{default:q(()=>[z(S,{name:"magnify",size:30})]),_:1})],36)):tr("",!0),z(W,{modelValue:r.value,"onUpdate:modelValue":T[5]||(T[5]=G=>r.value=G),direction:"rtl",size:"80%",style:{"max-width":"1300px"},class:"goodDrawer"},{header:q(({close:G})=>[T[6]||(T[6]=de("div",{class:"logo_box"},[de("img",{class:"_logo",src:j0,alt:""}),de("h1",{class:"_title"},"凌风跨境工具箱")],-1)),z(N,{onClick:G,class:"lf-icon--left"},{default:q(()=>[z(P)]),_:1},8,["onClick"])]),default:q(()=>[de("div",nE,[de("div",aE,[de("img",{class:"-img",src:n.value},null,8,iE)]),de("div",sE,[z(U,{inline:!0,model:t,class:"demo-form-inline"},{default:q(()=>[z(I,{label:"综合体验分"},{default:q(()=>[z(O,{multiple:"",modelValue:t.score,"onUpdate:modelValue":T[1]||(T[1]=G=>t.score=G),placeholder:"请选择",clearable:""},{default:q(()=>[z(B,{label:"不限",value:""}),z(B,{label:"5星",value:"totalEpScoreLv1"}),z(B,{label:"4.5星-5.0星",value:"totalEpScoreLv2"}),z(B,{label:"4星-4.5星",value:"totalEpScoreLv3"}),z(B,{label:"4星以下",value:"totalEpScoreLv4"})]),_:1},8,["modelValue"])]),_:1}),z(I,{label:"24小时揽收率"},{default:q(()=>[z(O,{multiple:"",modelValue:t.rate24,"onUpdate:modelValue":T[2]||(T[2]=G=>t.rate24=G),placeholder:"请选择",clearable:""},{default:q(()=>[z(B,{label:"不限",value:""}),z(B,{label:"<95%",value:"getRate24HLv1"}),z(B,{label:">=95%",value:"getRate24HLv2"}),z(B,{label:">=99%",value:"getRate24HLv3"})]),_:1},8,["modelValue"])]),_:1}),z(I,{label:"48小时揽收率"},{default:q(()=>[z(O,{multiple:"",modelValue:t.rate48,"onUpdate:modelValue":T[3]||(T[3]=G=>t.rate48=G),placeholder:"请选择",clearable:""},{default:q(()=>[z(B,{label:"不限",value:""}),z(B,{label:"<95%",value:"getRate48HLv1"}),z(B,{label:">=95%",value:"getRate48HLv2"}),z(B,{label:">=99%",value:"getRate48HLv3"})]),_:1},8,["modelValue"])]),_:1}),z(I,{label:""},{default:q(()=>[z(L,{modelValue:t.type,"onUpdate:modelValue":T[4]||(T[4]=G=>t.type=G)},{default:q(()=>[z(F,{label:"certifiedFactory"},{default:q(()=>[...T[7]||(T[7]=[Ue("认证工厂",-1)])]),_:1}),z(F,{label:"shipInToday"},{default:q(()=>[...T[8]||(T[8]=[Ue("当日发货",-1)])]),_:1}),z(F,{label:"jxhy"},{default:q(()=>[...T[9]||(T[9]=[Ue("精选货源",-1)])]),_:1}),z(F,{label:"shipIn24Hours"},{default:q(()=>[...T[10]||(T[10]=[Ue("24小时发货",-1)])]),_:1}),z(F,{label:"shipIn48Hours"},{default:q(()=>[...T[11]||(T[11]=[Ue("48小时发货",-1)])]),_:1}),z(F,{label:"noReason7DReturn"},{default:q(()=>[...T[12]||(T[12]=[Ue("7天无理由",-1)])]),_:1}),z(F,{label:"isOnePsale"},{default:q(()=>[...T[13]||(T[13]=[Ue("支持一件代发",-1)])]),_:1}),z(F,{label:"isOnePsaleFreePost"},{default:q(()=>[...T[14]||(T[14]=[Ue("支持包邮（一件代发包邮）",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(I,null,{default:q(()=>[z(R,{type:"primary",onClick:g},{default:q(()=>[...T[15]||(T[15]=[Ue("筛选数据",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),c.value.length===0?(Oe(),Et(V,{key:0,description:m.value?"loading...":"No Data","image-size":200},null,8,["description"])):na((Oe(),st("div",oE,[(Oe(!0),st(Zt,null,Hr(c.value,G=>{var fe,ie,he,Y,K,oe,pe,ve,ge,ue,Te;return Oe(),st("div",{class:"good",key:G,onClick:Ee=>C(G.offerId,G.token)},[de("div",uE,[de("img",{src:G.imageUrl},null,8,cE)]),de("div",fE,[de("p",dE,[z(S,{name:"cart-outline"}),T[16]||(T[16]=Ue("商品近30天交易记录",-1))]),z(hm,{class:"good-name",text:`商品名：${G.subject}`},null,8,["text"]),de("p",null,"价格：￥"+ht(G.priceInfo.price),1),de("p",null,"近30日成交："+ht(G.monthSold),1),de("p",null,"支付订单数："+ht(((fe=G==null?void 0:G.detailInfo)==null?void 0:fe.soldOut)||0),1),de("p",null,"复购率："+ht(G.repurchaseRate),1),de("p",null,"48小时揽收率/履约率："+ht(((ie=G==null?void 0:G.detailInfo)==null?void 0:ie.sellerDataInfo.collect30DayWithin48HPercent)||"--")+"/"+ht(((he=G==null?void 0:G.detailInfo)==null?void 0:he.sellerDataInfo.qualityRefundWithin30Day)||"--"),1),de("p",hE,[z(S,{name:"home-outline"}),T[17]||(T[17]=Ue("店铺",-1))]),z(hm,{text:`商家身份:${(Y=G==null?void 0:G.detailInfo)==null?void 0:Y.offerIdentities.map(Ee=>({super_factory:"超级工厂",powerful_merchants:"实力商家",tp_member:"诚信通"})[Ee])}`},null,8,["text"]),z(hm,{text:`综合服务分：${((K=G==null?void 0:G.detailInfo)==null?void 0:K.sellerDataInfo.compositeServiceScore)||"--"} 物流体验分：${((oe=G==null?void 0:G.detailInfo)==null?void 0:oe.sellerDataInfo.logisticsExperienceScore)||"--"}`},null,8,["text"]),z(hm,{text:`纠纷解决分：${((pe=G==null?void 0:G.detailInfo)==null?void 0:pe.sellerDataInfo.disputeComplaintScore)||"--"} 商品体验分：${((ve=G==null?void 0:G.detailInfo)==null?void 0:ve.sellerDataInfo.offerExperienceScore)||"--"}`},null,8,["text"]),z(hm,{text:`咨询体验分：${((ge=G==null?void 0:G.detailInfo)==null?void 0:ge.sellerDataInfo.consultingExperienceScore)||"--"} 卖家回头率：${((ue=G==null?void 0:G.detailInfo)==null?void 0:ue.sellerDataInfo.repeatPurchasePercent)*100||"--"}%`},null,8,["text"]),z(hm,{text:`退换体验分：${((Te=G==null?void 0:G.detailInfo)==null?void 0:Te.sellerDataInfo.afterSalesExperienceScore)||"--"}`},null,8,["text"])])],8,lE)}),128))])),[[Q,f],[le,m.value]])])])]),_:1},8,["modelValue"]),z(eS)],64)}}},pE=cn(AE,[["__scopeId","data-v-15671ffc"]]),mE={__name:"skuTable",props:{isVisible:{type:Boolean,default:!1}},setup(a){const s=we(""),r=we("en"),i=we([]),n=we(!1),t=ls(),c=a;oa(()=>{u()}),Ra(()=>c.isVisible,m=>{m&&u()});const u=async()=>{if(!await f(t))return;const _=document.querySelector("div._1CQ4cRYC").querySelectorAll("img");_.length>0?s.value=_[0].src:console.log("没有找到图片"),g()},f=async m=>!(!await QC()||!await zC(m));async function o(m){const _=await(await fetch(m)).blob();return new Promise((y,h)=>{const d=new FileReader;d.onloadend=()=>{y(d.result)},d.onerror=h,d.readAsDataURL(_)})}function l(m){const p=m.indexOf("?");return p!==-1?m.substring(0,p):m}const g=async()=>{n.value=!0;const m=l(s.value);let p=await o(m);p=p.replace(/^data:image\/\w+;base64,/,"");let _={imageBase64:p,beginPage:1,pageSize:10,country:r.value,sort:"{'price':'asc'}"};qC(_).then(y=>{n.value=!1,i.value=y.result||[]}).catch(y=>{console.log("err:",y),i.value=[],n.value=!1})};return(m,p)=>{const _=Ce("el-image"),y=Ce("el-table-column"),h=Ce("el-table"),d=Ai("loading");return na((Oe(),Et(h,{data:i.value,height:"250",style:{width:"100%"}},{default:q(()=>[z(y,{prop:"date",label:"商品图片",width:"80"},{default:q(({row:A})=>[z(_,{style:{width:"60px",height:"60px"},src:A.imageUrl,fit:"cover"},null,8,["src"])]),_:1}),z(y,{prop:"subject",label:"商品名",width:"180"}),z(y,{label:"当前价格"},{default:q(({row:A})=>[Ue(" ￥"+ht(A.priceInfo.price),1)]),_:1}),z(y,{label:"预估供货价"},{default:q(({row:A})=>[Ue(" ￥"+ht(A.priceInfo.price),1)]),_:1})]),_:1},8,["data"])),[[d,n.value]])}}},i_={__name:"TemuCategorySelector",props:{modelValue:{type:Array,default:()=>[]},mallList:{type:Array,default:()=>[]}},emits:["update:modelValue","change"],setup(a,{emit:s}){const r=a,i=s,n=we([]),t=Pr({get(){return r.modelValue},set(y){let h=[];if(!y)n.value=[];else{if(y.length===1){t.value=y[0],n.value=[];return}h=y}i("update:modelValue",h),i("change",h)}}),c=we(!1),u=ls();let f;const o=()=>new Promise(async y=>{var h,d,A;if(f){y(f);return}if((h=u.userInfo)!=null&&h.companyList||await u.getPddInfo(),(d=u.userInfo)!=null&&d.companyList&&((A=u.userInfo)!=null&&A.companyList[0])){const v=u.userInfo.companyList[0].malInfoList,w=r.mallList.length>0?v.filter(x=>x.isSemiManagedMall===r.mallList[0].isSemiManagedMall):v;if(Array.isArray(w))for(const x of w)try{const{result:C}=await yx(`${x.mallId}`,0);if(Array.isArray(C)&&C.length>0){f=`${x.mallId}`,y(f);return}}catch(C){console.error("获取商家类目失败",C)}}ut.error("请先登录到 TEMU 商家后台")}),l=(y,h=1,d="")=>{const A=y[`cat${h}NodeVO`];if(!A)return null;const v=d?`${d} > ${A.catName}`:A.catName;return l(y,h+1,v)||v},g=(y,h=1)=>{const d=y[`cat${h}NodeVO`];if(!d)return null;const A=g(y,h+1);return A?[d.catId,...A]:[d.catId]},m=y=>{const h=g(y);return{catName:l(y),isLeaf:!0,catId:h}},p=we({value:"catId",leaf:"isLeaf",label:"catName",lazy:!0,lazyLoad:(y,h)=>{o().then(d=>{if(!d)return ut.error("请先登录到 TEMU 商家后台"),h([]),!1;let A=0;(y==null?void 0:y.level)>0&&(A=y.data.catId),yx(d,A).then(({status:v,result:w,error:x})=>{if(v!==0){ut.error(`加载类目失败: ${x}`);return}i("getResult",w),h(w)}).catch(v=>{console.log("加载级联类目失败",v)})})}}),_=y=>(y?o().then(h=>{if(!h)return!1;c.value=!0,X8(h,y).then(({status:d,error:A,errorMsg:v,catData:w})=>{if(d!==0){ut.error(`搜索类目失败: ${A||v}`);return}let x=[];w!=null&&w.categoryPaths&&(x=w.categoryPaths.map(C=>m(C))),n.value=x}).catch(d=>{console.log("搜索类目失败",d)}).finally(()=>{c.value=!1})}):n.value=[],!1);return(y,h)=>{const d=Ce("el-cascader"),A=Ai("loading");return na((Oe(),Et(d,{placeholder:"请选择或搜索类目",modelValue:t.value,"onUpdate:modelValue":h[0]||(h[0]=v=>t.value=v),options:n.value,props:p.value,"show-all-levels":!1,filterable:"","before-filter":_,clearable:""},null,8,["modelValue","options","props"])),[[A,c.value]])}}},tS={__name:"TemuMallSelector",props:{modelValue:{type:[String,Array],default:null},filter:{type:Function,required:!1,default:a=>!0},multiple:{type:Boolean,default:!1},showEmptyOption:{type:Boolean,default:!1},size:{type:String,default:""},beforeUpdate:{type:Function,default:({mall:a,sysUser:s,userStore:r,mallId:i})=>!0},permissions:{type:Array,default:()=>["mallBind"]}},emits:["update:modelValue","change","selectedMall"],setup(a,{expose:s,emit:r}){const i=a,n=r,t=ls(),c=Pr(()=>t.sysUser),u=we(i.modelValue);Ra(()=>i.modelValue,l=>{u.value=l});const f=Pr(()=>{var l,g;if((l=t.userInfo)!=null&&l.companyList&&((g=t.userInfo)!=null&&g.companyList[0])){const m=t.userInfo.companyList[0].malInfoList;return i.filter?m.filter(i.filter):m}else return[]}),o=l=>{var p;if(i.multiple&&l.length===0){n("update:modelValue",l),n("selectedMall",[]),n("change",l),u.value=l;return}else if(!i.multiple&&!l){n("update:modelValue",l),n("selectedMall",null),n("change",l),u.value=l;return}let g=[];if(i.multiple)g=l.map(_=>{const y=parseInt(_);return f.value.find(h=>parseInt(h.mallId)===y)});else{const _=parseInt(l);g=[f.value.find(h=>parseInt(h.mallId)===_)]}if((p=i.permissions)!=null&&p.includes("mallBind")){const _=c.value.bindMallIds||[];for(const y of g){const h=`${y.mallId}`;if(!_.includes(h)&&!_.includes(l))if(c.value.max_mallShops-c.value.boundled_mallShops.length===0){Pn.confirm("您的店铺绑定数量已满。请前往工具箱升级您的账号，以增加绑定店铺的数量。","提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{window.open("https://www.kuajingabc.com/#/service")});return}else{Pn.confirm(`检测到店铺 ${y.mallName} 未绑定，点击确定前往工具箱绑定店铺！`,"提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{window.open("https://www.kuajingabc.com/#/user/user-center")});return}}}const m=i.multiple?g:g[0];i.beforeUpdate({mall:m,sysUser:c,userStore:t,mallId:l})&&(n("update:modelValue",l),n("selectedMall",m),n("change",l),u.value=l)};return s({getMallList:()=>f.value,getSelectedMall:()=>i.multiple?f.value.filter(l=>u.value.includes(`${l.mallId}`)):f.value.find(l=>`${l.mallId}`===u.value)}),(l,g)=>{const m=Ce("el-option"),p=Ce("el-select");return Oe(),Et(p,{"model-value":u.value,"onUpdate:modelValue":g[0]||(g[0]=_=>o(_)),size:a.size,multiple:a.multiple,placeholder:"请选择店铺"},{default:q(()=>[a.showEmptyOption?(Oe(),Et(m,{key:"empty",label:"请选择店铺",value:""})):tr("",!0),(Oe(!0),st(Zt,null,Hr(f.value,_=>(Oe(),Et(m,{key:_.mallId,label:`${_.mallName}${_.mallName?"("+(_.isSemiManagedMall?"半托管":"全托管")+")":""}`,value:`${_.mallId}`},null,8,["label","value"]))),128))]),_:1},8,["model-value","size","multiple"])}}},rS="dragSwitcherPosition",nS=()=>localStorage.getItem(rS),aS=a=>{localStorage.setItem(rS,a)};var M2={exports:{}},gE=M2.exports,Sx;function vE(){return Sx||(Sx=1,(function(a,s){(function(r,i){i()})(gE,function(){function r(o,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}function i(o,l,g){var m=new XMLHttpRequest;m.open("GET",o),m.responseType="blob",m.onload=function(){f(m.response,l,g)},m.onerror=function(){console.error("could not download file")},m.send()}function n(o){var l=new XMLHttpRequest;l.open("HEAD",o,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function t(o){try{o.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),o.dispatchEvent(l)}}var c=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof pa=="object"&&pa.global===pa?pa:void 0,u=c.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=c.saveAs||(typeof window!="object"||window!==c?function(){}:"download"in HTMLAnchorElement.prototype&&!u?function(o,l,g){var m=c.URL||c.webkitURL,p=document.createElement("a");l=l||o.name||"download",p.download=l,p.rel="noopener",typeof o=="string"?(p.href=o,p.origin===location.origin?t(p):n(p.href)?i(o,l,g):t(p,p.target="_blank")):(p.href=m.createObjectURL(o),setTimeout(function(){m.revokeObjectURL(p.href)},4e4),setTimeout(function(){t(p)},0))}:"msSaveOrOpenBlob"in navigator?function(o,l,g){if(l=l||o.name||"download",typeof o!="string")navigator.msSaveOrOpenBlob(r(o,g),l);else if(n(o))i(o,l,g);else{var m=document.createElement("a");m.href=o,m.target="_blank",setTimeout(function(){t(m)})}}:function(o,l,g,m){if(m=m||open("","_blank"),m&&(m.document.title=m.document.body.innerText="downloading..."),typeof o=="string")return i(o,l,g);var p=o.type==="application/octet-stream",_=/constructor/i.test(c.HTMLElement)||c.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||p&&_||u)&&typeof FileReader<"u"){var h=new FileReader;h.onloadend=function(){var v=h.result;v=y?v:v.replace(/^data:[^;]*;/,"data:attachment/file;"),m?m.location.href=v:location=v,m=null},h.readAsDataURL(o)}else{var d=c.URL||c.webkitURL,A=d.createObjectURL(o);m?m.location=A:location.href=A,m=null,setTimeout(function(){d.revokeObjectURL(A)},4e4)}});c.saveAs=f.saveAs=f,a.exports=f})})(M2)),M2.exports}var gy=vE();/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Q2={};Q2.version="0.18.5";var iS=1252,yE=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],s_={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},o_=function(a){yE.indexOf(a)!=-1&&(iS=s_[0]=a)};function bE(){o_(1252)}var Dc=function(a){o_(a)};function vy(){Dc(1200),bE()}function kx(a){for(var s=[],r=0,i=a.length;r<i;++r)s[r]=a.charCodeAt(r);return s}function wE(a){for(var s=[],r=0;r<a.length>>1;++r)s[r]=String.fromCharCode(a.charCodeAt(2*r)+(a.charCodeAt(2*r+1)<<8));return s.join("")}function sS(a){for(var s=[],r=0;r<a.length>>1;++r)s[r]=String.fromCharCode(a.charCodeAt(2*r+1)+(a.charCodeAt(2*r)<<8));return s.join("")}var c1=function(a){var s=a.charCodeAt(0),r=a.charCodeAt(1);return s==255&&r==254?wE(a.slice(2)):s==254&&r==255?sS(a.slice(2)):s==65279?a.slice(1):a},Gv=function(s){return String.fromCharCode(s)},Tx=function(s){return String.fromCharCode(s)},U1,Wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function N1(a){for(var s="",r=0,i=0,n=0,t=0,c=0,u=0,f=0,o=0;o<a.length;)r=a.charCodeAt(o++),t=r>>2,i=a.charCodeAt(o++),c=(r&3)<<4|i>>4,n=a.charCodeAt(o++),u=(i&15)<<2|n>>6,f=n&63,isNaN(i)?u=f=64:isNaN(n)&&(f=64),s+=Wh.charAt(t)+Wh.charAt(c)+Wh.charAt(u)+Wh.charAt(f);return s}function hu(a){var s="",r=0,i=0,n=0,t=0,c=0,u=0,f=0;a=a.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<a.length;)t=Wh.indexOf(a.charAt(o++)),c=Wh.indexOf(a.charAt(o++)),r=t<<2|c>>4,s+=String.fromCharCode(r),u=Wh.indexOf(a.charAt(o++)),i=(c&15)<<4|u>>2,u!==64&&(s+=String.fromCharCode(i)),f=Wh.indexOf(a.charAt(o++)),n=(u&3)<<6|f,f!==64&&(s+=String.fromCharCode(n));return s}var Ga=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Ld=(function(){if(typeof Buffer<"u"){var a=!Buffer.from;if(!a)try{Buffer.from("foo","utf8")}catch{a=!0}return a?function(s,r){return r?new Buffer(s,r):new Buffer(s)}:Buffer.from.bind(Buffer)}return function(){}})();function eA(a){return Ga?Buffer.alloc?Buffer.alloc(a):new Buffer(a):typeof Uint8Array<"u"?new Uint8Array(a):new Array(a)}function Ex(a){return Ga?Buffer.allocUnsafe?Buffer.allocUnsafe(a):new Buffer(a):typeof Uint8Array<"u"?new Uint8Array(a):new Array(a)}var cu=function(s){return Ga?Ld(s,"binary"):s.split("").map(function(r){return r.charCodeAt(0)&255})};function iv(a){if(typeof ArrayBuffer>"u")return cu(a);for(var s=new ArrayBuffer(a.length),r=new Uint8Array(s),i=0;i!=a.length;++i)r[i]=a.charCodeAt(i)&255;return s}function oA(a){if(Array.isArray(a))return a.map(function(i){return String.fromCharCode(i)}).join("");for(var s=[],r=0;r<a.length;++r)s[r]=String.fromCharCode(a[r]);return s.join("")}function _E(a){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(a)}function l_(a){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(a instanceof ArrayBuffer)return l_(new Uint8Array(a));for(var s=new Array(a.length),r=0;r<a.length;++r)s[r]=a[r];return s}var So=Ga?function(a){return Buffer.concat(a.map(function(s){return Buffer.isBuffer(s)?s:Ld(s)}))}:function(a){if(typeof Uint8Array<"u"){var s=0,r=0;for(s=0;s<a.length;++s)r+=a[s].length;var i=new Uint8Array(r),n=0;for(s=0,r=0;s<a.length;r+=n,++s)if(n=a[s].length,a[s]instanceof Uint8Array)i.set(a[s],r);else{if(typeof a[s]=="string")throw"wtf";i.set(new Uint8Array(a[s]),r)}return i}return[].concat.apply([],a.map(function(t){return Array.isArray(t)?t:[].slice.call(t)}))};function xE(a){for(var s=[],r=0,i=a.length+250,n=eA(a.length+255),t=0;t<a.length;++t){var c=a.charCodeAt(t);if(c<128)n[r++]=c;else if(c<2048)n[r++]=192|c>>6&31,n[r++]=128|c&63;else if(c>=55296&&c<57344){c=(c&1023)+64;var u=a.charCodeAt(++t)&1023;n[r++]=240|c>>8&7,n[r++]=128|c>>2&63,n[r++]=128|u>>6&15|(c&3)<<4,n[r++]=128|u&63}else n[r++]=224|c>>12&15,n[r++]=128|c>>6&63,n[r++]=128|c&63;r>i&&(s.push(n.slice(0,r)),r=0,n=eA(65535),i=65530)}return s.push(n.slice(0,r)),So(s)}var Sl=/\u0000/g,f1=/[\u0001-\u0006]/g;function Um(a){for(var s="",r=a.length-1;r>=0;)s+=a.charAt(r--);return s}function Oc(a,s){var r=""+a;return r.length>=s?r:Ss("0",s-r.length)+r}function u_(a,s){var r=""+a;return r.length>=s?r:Ss(" ",s-r.length)+r}function z2(a,s){var r=""+a;return r.length>=s?r:r+Ss(" ",s-r.length)}function CE(a,s){var r=""+Math.round(a);return r.length>=s?r:Ss("0",s-r.length)+r}function SE(a,s){var r=""+a;return r.length>=s?r:Ss("0",s-r.length)+r}var Ix=Math.pow(2,32);function Am(a,s){if(a>Ix||a<-Ix)return CE(a,s);var r=Math.round(a);return SE(r,s)}function V2(a,s){return s=s||0,a.length>=7+s&&(a.charCodeAt(s)|32)===103&&(a.charCodeAt(s+1)|32)===101&&(a.charCodeAt(s+2)|32)===110&&(a.charCodeAt(s+3)|32)===101&&(a.charCodeAt(s+4)|32)===114&&(a.charCodeAt(s+5)|32)===97&&(a.charCodeAt(s+6)|32)===108}var Bx=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],bb=[["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"]];function kE(a){return a||(a={}),a[0]="General",a[1]="0",a[2]="0.00",a[3]="#,##0",a[4]="#,##0.00",a[9]="0%",a[10]="0.00%",a[11]="0.00E+00",a[12]="# ?/?",a[13]="# ??/??",a[14]="m/d/yy",a[15]="d-mmm-yy",a[16]="d-mmm",a[17]="mmm-yy",a[18]="h:mm AM/PM",a[19]="h:mm:ss AM/PM",a[20]="h:mm",a[21]="h:mm:ss",a[22]="m/d/yy h:mm",a[37]="#,##0 ;(#,##0)",a[38]="#,##0 ;[Red](#,##0)",a[39]="#,##0.00;(#,##0.00)",a[40]="#,##0.00;[Red](#,##0.00)",a[45]="mm:ss",a[46]="[h]:mm:ss",a[47]="mmss.0",a[48]="##0.0E+0",a[49]="@",a[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',a}var fa={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"秒 "'},Fx={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},TE={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 W2(a,s,r){for(var i=a<0?-1:1,n=a*i,t=0,c=1,u=0,f=1,o=0,l=0,g=Math.floor(n);o<s&&(g=Math.floor(n),u=g*c+t,l=g*o+f,!(n-g<5e-8));)n=1/(n-g),t=c,c=u,f=o,o=l;if(l>s&&(o>s?(l=f,u=t):(l=o,u=c)),!r)return[0,i*u,l];var m=Math.floor(i*u/l);return[m,i*u-m*l,l]}function b0(a,s,r){if(a>2958465||a<0)return null;var i=a|0,n=Math.floor(86400*(a-i)),t=0,c=[],u={D:i,T:n,u:86400*(a-i)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(u.u)<1e-6&&(u.u=0),s&&s.date1904&&(i+=1462),u.u>.9999&&(u.u=0,++n==86400&&(u.T=n=0,++i,++u.D)),i===60)c=r?[1317,10,29]:[1900,2,29],t=3;else if(i===0)c=r?[1317,8,29]:[1900,1,0],t=6;else{i>60&&--i;var f=new Date(1900,0,1);f.setDate(f.getDate()+i-1),c=[f.getFullYear(),f.getMonth()+1,f.getDate()],t=f.getDay(),i<60&&(t=(t+6)%7),r&&(t=DE(f,c))}return u.y=c[0],u.m=c[1],u.d=c[2],u.S=n%60,n=Math.floor(n/60),u.M=n%60,n=Math.floor(n/60),u.H=n,u.q=t,u}var oS=new Date(1899,11,31,0,0,0),EE=oS.getTime(),IE=new Date(1900,2,1,0,0,0);function lS(a,s){var r=a.getTime();return s?r-=1461*24*60*60*1e3:a>=IE&&(r+=1440*60*1e3),(r-(EE+(a.getTimezoneOffset()-oS.getTimezoneOffset())*6e4))/(1440*60*1e3)}function c_(a){return a.indexOf(".")==-1?a:a.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function BE(a){return a.indexOf("E")==-1?a:a.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function FE(a){var s=a<0?12:11,r=c_(a.toFixed(12));return r.length<=s||(r=a.toPrecision(10),r.length<=s)?r:a.toExponential(5)}function ME(a){var s=c_(a.toFixed(11));return s.length>(a<0?12:11)||s==="0"||s==="-0"?a.toPrecision(6):s}function j1(a){var s=Math.floor(Math.log(Math.abs(a))*Math.LOG10E),r;return s>=-4&&s<=-1?r=a.toPrecision(10+s):Math.abs(s)<=9?r=FE(a):s===10?r=a.toFixed(10).substr(0,12):r=ME(a),c_(BE(r.toUpperCase()))}function F0(a,s){switch(typeof a){case"string":return a;case"boolean":return a?"TRUE":"FALSE";case"number":return(a|0)===a?a.toString(10):j1(a);case"undefined":return"";case"object":if(a==null)return"";if(a instanceof Date)return tc(14,lS(a,s&&s.date1904),s)}throw new Error("unsupported value in General format: "+a)}function DE(a,s){s[0]-=581;var r=a.getDay();return a<60&&(r=(r+6)%7),r}function OE(a,s,r,i){var n="",t=0,c=0,u=r.y,f,o=0;switch(a){case 98:u=r.y+543;case 121:switch(s.length){case 1:case 2:f=u%100,o=2;break;default:f=u%1e4,o=4;break}break;case 109:switch(s.length){case 1:case 2:f=r.m,o=s.length;break;case 3:return bb[r.m-1][1];case 5:return bb[r.m-1][0];default:return bb[r.m-1][2]}break;case 100:switch(s.length){case 1:case 2:f=r.d,o=s.length;break;case 3:return Bx[r.q][0];default:return Bx[r.q][1]}break;case 104:switch(s.length){case 1:case 2:f=1+(r.H+11)%12,o=s.length;break;default:throw"bad hour format: "+s}break;case 72:switch(s.length){case 1:case 2:f=r.H,o=s.length;break;default:throw"bad hour format: "+s}break;case 77:switch(s.length){case 1:case 2:f=r.M,o=s.length;break;default:throw"bad minute format: "+s}break;case 115:if(s!="s"&&s!="ss"&&s!=".0"&&s!=".00"&&s!=".000")throw"bad second format: "+s;return r.u===0&&(s=="s"||s=="ss")?Oc(r.S,s.length):(i>=2?c=i===3?1e3:100:c=i===1?10:1,t=Math.round(c*(r.S+r.u)),t>=60*c&&(t=0),s==="s"?t===0?"0":""+t/c:(n=Oc(t,2+i),s==="ss"?n.substr(0,2):"."+n.substr(2,s.length-1)));case 90:switch(s){case"[h]":case"[hh]":f=r.D*24+r.H;break;case"[m]":case"[mm]":f=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":f=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+s}o=s.length===3?1:2;break;case 101:f=u,o=1;break}var l=o>0?Oc(f,o):"";return l}function Gh(a){var s=3;if(a.length<=s)return a;for(var r=a.length%s,i=a.substr(0,r);r!=a.length;r+=s)i+=(i.length>0?",":"")+a.substr(r,s);return i}var uS=/%/g;function LE(a,s,r){var i=s.replace(uS,""),n=s.length-i.length;return Ed(a,i,r*Math.pow(10,2*n))+Ss("%",n)}function PE(a,s,r){for(var i=s.length-1;s.charCodeAt(i-1)===44;)--i;return Ed(a,s.substr(0,i),r/Math.pow(10,3*(s.length-i)))}function cS(a,s){var r,i=a.indexOf("E")-a.indexOf(".")-1;if(a.match(/^#+0.0E\+0$/)){if(s==0)return"0.0E+0";if(s<0)return"-"+cS(a,-s);var n=a.indexOf(".");n===-1&&(n=a.indexOf("E"));var t=Math.floor(Math.log(s)*Math.LOG10E)%n;if(t<0&&(t+=n),r=(s/Math.pow(10,t)).toPrecision(i+1+(n+t)%n),r.indexOf("e")===-1){var c=Math.floor(Math.log(s)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(c-r.length+t):r+="E+"+(c-t);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(u,f,o,l){return f+o+l.substr(0,(n+t)%n)+"."+l.substr(t)+"E"})}else r=s.toExponential(i);return a.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),a.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var fS=/# (\?+)( ?)\/( ?)(\d+)/;function RE(a,s,r){var i=parseInt(a[4],10),n=Math.round(s*i),t=Math.floor(n/i),c=n-t*i,u=i;return r+(t===0?"":""+t)+" "+(c===0?Ss(" ",a[1].length+1+a[4].length):u_(c,a[1].length)+a[2]+"/"+a[3]+Oc(u,a[4].length))}function UE(a,s,r){return r+(s===0?"":""+s)+Ss(" ",a[1].length+2+a[4].length)}var dS=/^#*0*\.([0#]+)/,hS=/\).*[0#]/,AS=/\(###\) ###\\?-####/;function _l(a){for(var s="",r,i=0;i!=a.length;++i)switch(r=a.charCodeAt(i)){case 35:break;case 63:s+=" ";break;case 48:s+="0";break;default:s+=String.fromCharCode(r)}return s}function Mx(a,s){var r=Math.pow(10,s);return""+Math.round(a*r)/r}function Dx(a,s){var r=a-Math.floor(a),i=Math.pow(10,s);return s<(""+Math.round(r*i)).length?0:Math.round(r*i)}function NE(a,s){return s<(""+Math.round((a-Math.floor(a))*Math.pow(10,s))).length?1:0}function jE(a){return a<2147483647&&a>-2147483648?""+(a>=0?a|0:a-1|0):""+Math.floor(a)}function Qu(a,s,r){if(a.charCodeAt(0)===40&&!s.match(hS)){var i=s.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Qu("n",i,r):"("+Qu("n",i,-r)+")"}if(s.charCodeAt(s.length-1)===44)return PE(a,s,r);if(s.indexOf("%")!==-1)return LE(a,s,r);if(s.indexOf("E")!==-1)return cS(s,r);if(s.charCodeAt(0)===36)return"$"+Qu(a,s.substr(s.charAt(1)==" "?2:1),r);var n,t,c,u,f=Math.abs(r),o=r<0?"-":"";if(s.match(/^00+$/))return o+Am(f,s.length);if(s.match(/^[#?]+$/))return n=Am(r,0),n==="0"&&(n=""),n.length>s.length?n:_l(s.substr(0,s.length-n.length))+n;if(t=s.match(fS))return RE(t,f,o);if(s.match(/^#+0+$/))return o+Am(f,s.length-s.indexOf("0"));if(t=s.match(dS))return n=Mx(r,t[1].length).replace(/^([^\.]+)$/,"$1."+_l(t[1])).replace(/\.$/,"."+_l(t[1])).replace(/\.(\d*)$/,function(_,y){return"."+y+Ss("0",_l(t[1]).length-y.length)}),s.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(s=s.replace(/^#+([0.])/,"$1"),t=s.match(/^(0*)\.(#*)$/))return o+Mx(f,t[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,t[1].length?"0.":".");if(t=s.match(/^#{1,3},##0(\.?)$/))return o+Gh(Am(f,0));if(t=s.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Qu(a,s,-r):Gh(""+(Math.floor(r)+NE(r,t[1].length)))+"."+Oc(Dx(r,t[1].length),t[1].length);if(t=s.match(/^#,#*,#0/))return Qu(a,s.replace(/^#,#*,/,""),r);if(t=s.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Um(Qu(a,s.replace(/[\\-]/g,""),r)),c=0,Um(Um(s.replace(/\\/g,"")).replace(/[0#]/g,function(_){return c<n.length?n.charAt(c++):_==="0"?"0":""}));if(s.match(AS))return n=Qu(a,"##########",r),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var l="";if(t=s.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(t[4].length,7),u=W2(f,Math.pow(10,c)-1,!1),n=""+o,l=Ed("n",t[1],u[1]),l.charAt(l.length-1)==" "&&(l=l.substr(0,l.length-1)+"0"),n+=l+t[2]+"/"+t[3],l=z2(u[2],c),l.length<t[4].length&&(l=_l(t[4].substr(t[4].length-l.length))+l),n+=l,n;if(t=s.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(Math.max(t[1].length,t[4].length),7),u=W2(f,Math.pow(10,c)-1,!0),o+(u[0]||(u[1]?"":"0"))+" "+(u[1]?u_(u[1],c)+t[2]+"/"+t[3]+z2(u[2],c):Ss(" ",2*c+1+t[2].length+t[3].length));if(t=s.match(/^[#0?]+$/))return n=Am(r,0),s.length<=n.length?n:_l(s.substr(0,s.length-n.length))+n;if(t=s.match(/^([#0?]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(t[2].length,10)).replace(/([^0])0+$/,"$1"),c=n.indexOf(".");var g=s.indexOf(".")-c,m=s.length-n.length-g;return _l(s.substr(0,g)+n+s.substr(s.length-m))}if(t=s.match(/^00,000\.([#0]*0)$/))return c=Dx(r,t[1].length),r<0?"-"+Qu(a,s,-r):Gh(jE(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?Oc(0,3-_.length):"")+_})+"."+Oc(c,t[1].length);switch(s){case"###,##0.00":return Qu(a,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var p=Gh(Am(f,0));return p!=="0"?o+p:"";case"###,###.00":return Qu(a,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Qu(a,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+s+"|")}function HE(a,s,r){for(var i=s.length-1;s.charCodeAt(i-1)===44;)--i;return Ed(a,s.substr(0,i),r/Math.pow(10,3*(s.length-i)))}function QE(a,s,r){var i=s.replace(uS,""),n=s.length-i.length;return Ed(a,i,r*Math.pow(10,2*n))+Ss("%",n)}function pS(a,s){var r,i=a.indexOf("E")-a.indexOf(".")-1;if(a.match(/^#+0.0E\+0$/)){if(s==0)return"0.0E+0";if(s<0)return"-"+pS(a,-s);var n=a.indexOf(".");n===-1&&(n=a.indexOf("E"));var t=Math.floor(Math.log(s)*Math.LOG10E)%n;if(t<0&&(t+=n),r=(s/Math.pow(10,t)).toPrecision(i+1+(n+t)%n),!r.match(/[Ee]/)){var c=Math.floor(Math.log(s)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(c-r.length+t):r+="E+"+(c-t),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(u,f,o,l){return f+o+l.substr(0,(n+t)%n)+"."+l.substr(t)+"E"})}else r=s.toExponential(i);return a.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),a.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function yf(a,s,r){if(a.charCodeAt(0)===40&&!s.match(hS)){var i=s.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?yf("n",i,r):"("+yf("n",i,-r)+")"}if(s.charCodeAt(s.length-1)===44)return HE(a,s,r);if(s.indexOf("%")!==-1)return QE(a,s,r);if(s.indexOf("E")!==-1)return pS(s,r);if(s.charCodeAt(0)===36)return"$"+yf(a,s.substr(s.charAt(1)==" "?2:1),r);var n,t,c,u,f=Math.abs(r),o=r<0?"-":"";if(s.match(/^00+$/))return o+Oc(f,s.length);if(s.match(/^[#?]+$/))return n=""+r,r===0&&(n=""),n.length>s.length?n:_l(s.substr(0,s.length-n.length))+n;if(t=s.match(fS))return UE(t,f,o);if(s.match(/^#+0+$/))return o+Oc(f,s.length-s.indexOf("0"));if(t=s.match(dS))return n=(""+r).replace(/^([^\.]+)$/,"$1."+_l(t[1])).replace(/\.$/,"."+_l(t[1])),n=n.replace(/\.(\d*)$/,function(_,y){return"."+y+Ss("0",_l(t[1]).length-y.length)}),s.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(s=s.replace(/^#+([0.])/,"$1"),t=s.match(/^(0*)\.(#*)$/))return o+(""+f).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,t[1].length?"0.":".");if(t=s.match(/^#{1,3},##0(\.?)$/))return o+Gh(""+f);if(t=s.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+yf(a,s,-r):Gh(""+r)+"."+Ss("0",t[1].length);if(t=s.match(/^#,#*,#0/))return yf(a,s.replace(/^#,#*,/,""),r);if(t=s.match(/^([0#]+)(\\?-([0#]+))+$/))return n=Um(yf(a,s.replace(/[\\-]/g,""),r)),c=0,Um(Um(s.replace(/\\/g,"")).replace(/[0#]/g,function(_){return c<n.length?n.charAt(c++):_==="0"?"0":""}));if(s.match(AS))return n=yf(a,"##########",r),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var l="";if(t=s.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(t[4].length,7),u=W2(f,Math.pow(10,c)-1,!1),n=""+o,l=Ed("n",t[1],u[1]),l.charAt(l.length-1)==" "&&(l=l.substr(0,l.length-1)+"0"),n+=l+t[2]+"/"+t[3],l=z2(u[2],c),l.length<t[4].length&&(l=_l(t[4].substr(t[4].length-l.length))+l),n+=l,n;if(t=s.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(Math.max(t[1].length,t[4].length),7),u=W2(f,Math.pow(10,c)-1,!0),o+(u[0]||(u[1]?"":"0"))+" "+(u[1]?u_(u[1],c)+t[2]+"/"+t[3]+z2(u[2],c):Ss(" ",2*c+1+t[2].length+t[3].length));if(t=s.match(/^[#0?]+$/))return n=""+r,s.length<=n.length?n:_l(s.substr(0,s.length-n.length))+n;if(t=s.match(/^([#0]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(t[2].length,10)).replace(/([^0])0+$/,"$1"),c=n.indexOf(".");var g=s.indexOf(".")-c,m=s.length-n.length-g;return _l(s.substr(0,g)+n+s.substr(s.length-m))}if(t=s.match(/^00,000\.([#0]*0)$/))return r<0?"-"+yf(a,s,-r):Gh(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?Oc(0,3-_.length):"")+_})+"."+Oc(0,t[1].length);switch(s){case"###,###":case"##,###":case"#,###":var p=Gh(""+f);return p!=="0"?o+p:"";default:if(s.match(/\.[0#?]*$/))return yf(a,s.slice(0,s.lastIndexOf(".")),r)+_l(s.slice(s.lastIndexOf(".")))}throw new Error("unsupported format |"+s+"|")}function Ed(a,s,r){return(r|0)===r?yf(a,s,r):Qu(a,s,r)}function zE(a){for(var s=[],r=!1,i=0,n=0;i<a.length;++i)switch(a.charCodeAt(i)){case 34:r=!r;break;case 95:case 42:case 92:++i;break;case 59:s[s.length]=a.substr(n,i-n),n=i+1}if(s[s.length]=a.substr(n),r===!0)throw new Error("Format |"+a+"| unterminated string ");return s}var mS=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Jm(a){for(var s=0,r="",i="";s<a.length;)switch(r=a.charAt(s)){case"G":V2(a,s)&&(s+=6),s++;break;case'"':for(;a.charCodeAt(++s)!==34&&s<a.length;);++s;break;case"\\":s+=2;break;case"_":s+=2;break;case"@":++s;break;case"B":case"b":if(a.charAt(s+1)==="1"||a.charAt(s+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(a.substr(s,3).toUpperCase()==="A/P"||a.substr(s,5).toUpperCase()==="AM/PM"||a.substr(s,5).toUpperCase()==="上午/下午")return!0;++s;break;case"[":for(i=r;a.charAt(s++)!=="]"&&s<a.length;)i+=a.charAt(s);if(i.match(mS))return!0;break;case".":case"0":case"#":for(;s<a.length&&("0#?.,E+-%".indexOf(r=a.charAt(++s))>-1||r=="\\"&&a.charAt(s+1)=="-"&&"0#".indexOf(a.charAt(s+2))>-1););break;case"?":for(;a.charAt(++s)===r;);break;case"*":++s,(a.charAt(s)==" "||a.charAt(s)=="*")&&++s;break;case"(":case")":++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;s<a.length&&"0123456789".indexOf(a.charAt(++s))>-1;);break;case" ":++s;break;default:++s;break}return!1}function VE(a,s,r,i){for(var n=[],t="",c=0,u="",f="t",o,l,g,m="H";c<a.length;)switch(u=a.charAt(c)){case"G":if(!V2(a,c))throw new Error("unrecognized character "+u+" in "+a);n[n.length]={t:"G",v:"General"},c+=7;break;case'"':for(t="";(g=a.charCodeAt(++c))!==34&&c<a.length;)t+=String.fromCharCode(g);n[n.length]={t:"t",v:t},++c;break;case"\\":var p=a.charAt(++c),_=p==="("||p===")"?p:"t";n[n.length]={t:_,v:p},++c;break;case"_":n[n.length]={t:"t",v:" "},c+=2;break;case"@":n[n.length]={t:"T",v:s},++c;break;case"B":case"b":if(a.charAt(c+1)==="1"||a.charAt(c+1)==="2"){if(o==null&&(o=b0(s,r,a.charAt(c+1)==="2"),o==null))return"";n[n.length]={t:"X",v:a.substr(c,2)},f=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(s<0||o==null&&(o=b0(s,r),o==null))return"";for(t=u;++c<a.length&&a.charAt(c).toLowerCase()===u;)t+=u;u==="m"&&f.toLowerCase()==="h"&&(u="M"),u==="h"&&(u=m),n[n.length]={t:u,v:t},f=u;break;case"A":case"a":case"上":var y={t:u,v:u};if(o==null&&(o=b0(s,r)),a.substr(c,3).toUpperCase()==="A/P"?(o!=null&&(y.v=o.H>=12?"P":"A"),y.t="T",m="h",c+=3):a.substr(c,5).toUpperCase()==="AM/PM"?(o!=null&&(y.v=o.H>=12?"PM":"AM"),y.t="T",c+=5,m="h"):a.substr(c,5).toUpperCase()==="上午/下午"?(o!=null&&(y.v=o.H>=12?"下午":"上午"),y.t="T",c+=5,m="h"):(y.t="t",++c),o==null&&y.t==="T")return"";n[n.length]=y,f=u;break;case"[":for(t=u;a.charAt(c++)!=="]"&&c<a.length;)t+=a.charAt(c);if(t.slice(-1)!=="]")throw'unterminated "[" block: |'+t+"|";if(t.match(mS)){if(o==null&&(o=b0(s,r),o==null))return"";n[n.length]={t:"Z",v:t.toLowerCase()},f=t.charAt(1)}else t.indexOf("$")>-1&&(t=(t.match(/\$([^-\[\]]*)/)||[])[1]||"$",Jm(a)||(n[n.length]={t:"t",v:t}));break;case".":if(o!=null){for(t=u;++c<a.length&&(u=a.charAt(c))==="0";)t+=u;n[n.length]={t:"s",v:t};break}case"0":case"#":for(t=u;++c<a.length&&"0#?.,E+-%".indexOf(u=a.charAt(c))>-1;)t+=u;n[n.length]={t:"n",v:t};break;case"?":for(t=u;a.charAt(++c)===u;)t+=u;n[n.length]={t:u,v:t},f=u;break;case"*":++c,(a.charAt(c)==" "||a.charAt(c)=="*")&&++c;break;case"(":case")":n[n.length]={t:i===1?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(t=u;c<a.length&&"0123456789".indexOf(a.charAt(++c))>-1;)t+=a.charAt(c);n[n.length]={t:"D",v:t};break;case" ":n[n.length]={t:u,v:u},++c;break;case"$":n[n.length]={t:"t",v:"$"},++c;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u)===-1)throw new Error("unrecognized character "+u+" in "+a);n[n.length]={t:"t",v:u},++c;break}var h=0,d=0,A;for(c=n.length-1,f="t";c>=0;--c)switch(n[c].t){case"h":case"H":n[c].t=m,f="h",h<1&&(h=1);break;case"s":(A=n[c].v.match(/\.0+$/))&&(d=Math.max(d,A[0].length-1)),h<3&&(h=3);case"d":case"y":case"M":case"e":f=n[c].t;break;case"m":f==="s"&&(n[c].t="M",h<2&&(h=2));break;case"X":break;case"Z":h<1&&n[c].v.match(/[Hh]/)&&(h=1),h<2&&n[c].v.match(/[Mm]/)&&(h=2),h<3&&n[c].v.match(/[Ss]/)&&(h=3)}switch(h){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M);break}var v="",w;for(c=0;c<n.length;++c)switch(n[c].t){case"t":case"T":case" ":case"D":break;case"X":n[c].v="",n[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[c].v=OE(n[c].t.charCodeAt(0),n[c].v,o,d),n[c].t="t";break;case"n":case"?":for(w=c+1;n[w]!=null&&((u=n[w].t)==="?"||u==="D"||(u===" "||u==="t")&&n[w+1]!=null&&(n[w+1].t==="?"||n[w+1].t==="t"&&n[w+1].v==="/")||n[c].t==="("&&(u===" "||u==="n"||u===")")||u==="t"&&(n[w].v==="/"||n[w].v===" "&&n[w+1]!=null&&n[w+1].t=="?"));)n[c].v+=n[w].v,n[w]={v:"",t:";"},++w;v+=n[c].v,c=w-1;break;case"G":n[c].t="t",n[c].v=F0(s,r);break}var x="",C,k;if(v.length>0){v.charCodeAt(0)==40?(C=s<0&&v.charCodeAt(0)===45?-s:s,k=Ed("n",v,C)):(C=s<0&&i>1?-s:s,k=Ed("n",v,C),C<0&&n[0]&&n[0].t=="t"&&(k=k.substr(1),n[0].v="-"+n[0].v)),w=k.length-1;var T=n.length;for(c=0;c<n.length;++c)if(n[c]!=null&&n[c].t!="t"&&n[c].v.indexOf(".")>-1){T=c;break}var S=n.length;if(T===n.length&&k.indexOf("E")===-1){for(c=n.length-1;c>=0;--c)n[c]==null||"n?".indexOf(n[c].t)===-1||(w>=n[c].v.length-1?(w-=n[c].v.length,n[c].v=k.substr(w+1,n[c].v.length)):w<0?n[c].v="":(n[c].v=k.substr(0,w+1),w=-1),n[c].t="t",S=c);w>=0&&S<n.length&&(n[S].v=k.substr(0,w+1)+n[S].v)}else if(T!==n.length&&k.indexOf("E")===-1){for(w=k.indexOf(".")-1,c=T;c>=0;--c)if(!(n[c]==null||"n?".indexOf(n[c].t)===-1)){for(l=n[c].v.indexOf(".")>-1&&c===T?n[c].v.indexOf(".")-1:n[c].v.length-1,x=n[c].v.substr(l+1);l>=0;--l)w>=0&&(n[c].v.charAt(l)==="0"||n[c].v.charAt(l)==="#")&&(x=k.charAt(w--)+x);n[c].v=x,n[c].t="t",S=c}for(w>=0&&S<n.length&&(n[S].v=k.substr(0,w+1)+n[S].v),w=k.indexOf(".")+1,c=T;c<n.length;++c)if(!(n[c]==null||"n?(".indexOf(n[c].t)===-1&&c!==T)){for(l=n[c].v.indexOf(".")>-1&&c===T?n[c].v.indexOf(".")+1:0,x=n[c].v.substr(0,l);l<n[c].v.length;++l)w<k.length&&(x+=k.charAt(w++));n[c].v=x,n[c].t="t",S=c}}}for(c=0;c<n.length;++c)n[c]!=null&&"n?".indexOf(n[c].t)>-1&&(C=i>1&&s<0&&c>0&&n[c-1].v==="-"?-s:s,n[c].v=Ed(n[c].t,n[c].v,C),n[c].t="t");var M="";for(c=0;c!==n.length;++c)n[c]!=null&&(M+=n[c].v);return M}var Ox=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Lx(a,s){if(s==null)return!1;var r=parseFloat(s[2]);switch(s[1]){case"=":if(a==r)return!0;break;case">":if(a>r)return!0;break;case"<":if(a<r)return!0;break;case"<>":if(a!=r)return!0;break;case">=":if(a>=r)return!0;break;case"<=":if(a<=r)return!0;break}return!1}function WE(a,s){var r=zE(a),i=r.length,n=r[i-1].indexOf("@");if(i<4&&n>-1&&--i,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof s!="number")return[4,r.length===4||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var t=s>0?r[0]:s<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[i,t];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var c=r[0].match(Ox),u=r[1].match(Ox);return Lx(s,c)?[i,r[0]]:Lx(s,u)?[i,r[1]]:[i,r[c!=null&&u!=null?2:1]]}return[i,t]}function tc(a,s,r){r==null&&(r={});var i="";switch(typeof a){case"string":a=="m/d/yy"&&r.dateNF?i=r.dateNF:i=a;break;case"number":a==14&&r.dateNF?i=r.dateNF:i=(r.table!=null?r.table:fa)[a],i==null&&(i=r.table&&r.table[Fx[a]]||fa[Fx[a]]),i==null&&(i=TE[a]||"General");break}if(V2(i,0))return F0(s,r);s instanceof Date&&(s=lS(s,r.date1904));var n=WE(i,s);if(V2(n[1]))return F0(s,r);if(s===!0)s="TRUE";else if(s===!1)s="FALSE";else if(s===""||s==null)return"";return VE(n[1],s,r,n[0])}function Id(a,s){if(typeof s!="number"){s=+s||-1;for(var r=0;r<392;++r){if(fa[r]==null){s<0&&(s=r);continue}if(fa[r]==a){s=r;break}}s<0&&(s=391)}return fa[s]=a,s}function yy(a){for(var s=0;s!=392;++s)a[s]!==void 0&&Id(a[s],s)}function qm(){fa=kE()}var GE={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"},gS=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function $E(a){var s=typeof a=="number"?fa[a]:a;return s=s.replace(gS,"(\\d+)"),new RegExp("^"+s+"$")}function KE(a,s,r){var i=-1,n=-1,t=-1,c=-1,u=-1,f=-1;(s.match(gS)||[]).forEach(function(g,m){var p=parseInt(r[m+1],10);switch(g.toLowerCase().charAt(0)){case"y":i=p;break;case"d":t=p;break;case"h":c=p;break;case"s":f=p;break;case"m":c>=0?u=p:n=p;break}}),f>=0&&u==-1&&n>=0&&(u=n,n=-1);var o=(""+(i>=0?i:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(t>=1?t:1)).slice(-2);o.length==7&&(o="0"+o),o.length==8&&(o="20"+o);var l=("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(u>=0?u:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2);return c==-1&&u==-1&&f==-1?o:i==-1&&n==-1&&t==-1?l:o+"T"+l}var YE=(function(){var a={};a.version="1.2.0";function s(){for(var k=0,T=new Array(256),S=0;S!=256;++S)k=S,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,k=k&1?-306674912^k>>>1:k>>>1,T[S]=k;return typeof Int32Array<"u"?new Int32Array(T):T}var r=s();function i(k){var T=0,S=0,M=0,P=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(M=0;M!=256;++M)P[M]=k[M];for(M=0;M!=256;++M)for(S=k[M],T=256+M;T<4096;T+=256)S=P[T]=S>>>8^k[S&255];var N=[];for(M=1;M!=16;++M)N[M-1]=typeof Int32Array<"u"?P.subarray(M*256,M*256+256):P.slice(M*256,M*256+256);return N}var n=i(r),t=n[0],c=n[1],u=n[2],f=n[3],o=n[4],l=n[5],g=n[6],m=n[7],p=n[8],_=n[9],y=n[10],h=n[11],d=n[12],A=n[13],v=n[14];function w(k,T){for(var S=T^-1,M=0,P=k.length;M<P;)S=S>>>8^r[(S^k.charCodeAt(M++))&255];return~S}function x(k,T){for(var S=T^-1,M=k.length-15,P=0;P<M;)S=v[k[P++]^S&255]^A[k[P++]^S>>8&255]^d[k[P++]^S>>16&255]^h[k[P++]^S>>>24]^y[k[P++]]^_[k[P++]]^p[k[P++]]^m[k[P++]]^g[k[P++]]^l[k[P++]]^o[k[P++]]^f[k[P++]]^u[k[P++]]^c[k[P++]]^t[k[P++]]^r[k[P++]];for(M+=15;P<M;)S=S>>>8^r[(S^k[P++])&255];return~S}function C(k,T){for(var S=T^-1,M=0,P=k.length,N=0,B=0;M<P;)N=k.charCodeAt(M++),N<128?S=S>>>8^r[(S^N)&255]:N<2048?(S=S>>>8^r[(S^(192|N>>6&31))&255],S=S>>>8^r[(S^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,B=k.charCodeAt(M++)&1023,S=S>>>8^r[(S^(240|N>>8&7))&255],S=S>>>8^r[(S^(128|N>>2&63))&255],S=S>>>8^r[(S^(128|B>>6&15|(N&3)<<4))&255],S=S>>>8^r[(S^(128|B&63))&255]):(S=S>>>8^r[(S^(224|N>>12&15))&255],S=S>>>8^r[(S^(128|N>>6&63))&255],S=S>>>8^r[(S^(128|N&63))&255]);return~S}return a.table=r,a.bstr=w,a.buf=x,a.str=C,a})(),ra=(function(){var s={};s.version="1.2.1";function r(ze,Ze){for(var qe=ze.split("/"),Ge=Ze.split("/"),$e=0,tt=0,bt=Math.min(qe.length,Ge.length);$e<bt;++$e){if(tt=qe[$e].length-Ge[$e].length)return tt;if(qe[$e]!=Ge[$e])return qe[$e]<Ge[$e]?-1:1}return qe.length-Ge.length}function i(ze){if(ze.charAt(ze.length-1)=="/")return ze.slice(0,-1).indexOf("/")===-1?ze:i(ze.slice(0,-1));var Ze=ze.lastIndexOf("/");return Ze===-1?ze:ze.slice(0,Ze+1)}function n(ze){if(ze.charAt(ze.length-1)=="/")return n(ze.slice(0,-1));var Ze=ze.lastIndexOf("/");return Ze===-1?ze:ze.slice(Ze+1)}function t(ze,Ze){typeof Ze=="string"&&(Ze=new Date(Ze));var qe=Ze.getHours();qe=qe<<6|Ze.getMinutes(),qe=qe<<5|Ze.getSeconds()>>>1,ze.write_shift(2,qe);var Ge=Ze.getFullYear()-1980;Ge=Ge<<4|Ze.getMonth()+1,Ge=Ge<<5|Ze.getDate(),ze.write_shift(2,Ge)}function c(ze){var Ze=ze.read_shift(2)&65535,qe=ze.read_shift(2)&65535,Ge=new Date,$e=qe&31;qe>>>=5;var tt=qe&15;qe>>>=4,Ge.setMilliseconds(0),Ge.setFullYear(qe+1980),Ge.setMonth(tt-1),Ge.setDate($e);var bt=Ze&31;Ze>>>=5;var xt=Ze&63;return Ze>>>=6,Ge.setHours(Ze),Ge.setMinutes(xt),Ge.setSeconds(bt<<1),Ge}function u(ze){jo(ze,0);for(var Ze={},qe=0;ze.l<=ze.length-4;){var Ge=ze.read_shift(2),$e=ze.read_shift(2),tt=ze.l+$e,bt={};switch(Ge){case 21589:qe=ze.read_shift(1),qe&1&&(bt.mtime=ze.read_shift(4)),$e>5&&(qe&2&&(bt.atime=ze.read_shift(4)),qe&4&&(bt.ctime=ze.read_shift(4))),bt.mtime&&(bt.mt=new Date(bt.mtime*1e3));break}ze.l=tt,Ze[Ge]=bt}return Ze}var f;function o(){return f||(f={})}function l(ze,Ze){if(ze[0]==80&&ze[1]==75)return jr(ze,Ze);if((ze[0]|32)==109&&(ze[1]|32)==105)return fn(ze,Ze);if(ze.length<512)throw new Error("CFB file size "+ze.length+" < 512");var qe=3,Ge=512,$e=0,tt=0,bt=0,xt=0,kt=0,Bt=[],Dt=ze.slice(0,512);jo(Dt,0);var or=g(Dt);switch(qe=or[0],qe){case 3:Ge=512;break;case 4:Ge=4096;break;case 0:if(or[1]==0)return jr(ze,Ze);default:throw new Error("Major Version: Expected 3 or 4 saw "+qe)}Ge!==512&&(Dt=ze.slice(0,Ge),jo(Dt,28));var gr=ze.slice(0,Ge);m(Dt,qe);var kr=Dt.read_shift(4,"i");if(qe===3&&kr!==0)throw new Error("# Directory Sectors: Expected 0 saw "+kr);Dt.l+=4,bt=Dt.read_shift(4,"i"),Dt.l+=4,Dt.chk("00100000","Mini Stream Cutoff Size: "),xt=Dt.read_shift(4,"i"),$e=Dt.read_shift(4,"i"),kt=Dt.read_shift(4,"i"),tt=Dt.read_shift(4,"i");for(var it=-1,We=0;We<109&&(it=Dt.read_shift(4,"i"),!(it<0));++We)Bt[We]=it;var gt=p(ze,Ge);h(kt,tt,gt,Ge,Bt);var yt=A(gt,bt,Bt,Ge);yt[bt].name="!Directory",$e>0&&xt!==B&&(yt[xt].name="!MiniFAT"),yt[Bt[0]].name="!FAT",yt.fat_addrs=Bt,yt.ssz=Ge;var Rt={},Mt=[],It=[],xr=[];v(bt,yt,gt,Mt,$e,Rt,It,xt),_(It,xr,Mt),Mt.shift();var rn={FileIndex:It,FullPaths:xr};return Ze&&Ze.raw&&(rn.raw={header:gr,sectors:gt}),rn}function g(ze){if(ze[ze.l]==80&&ze[ze.l+1]==75)return[0,0];ze.chk(O,"Header Signature: "),ze.l+=16;var Ze=ze.read_shift(2,"u");return[ze.read_shift(2,"u"),Ze]}function m(ze,Ze){var qe=9;switch(ze.l+=2,qe=ze.read_shift(2)){case 9:if(Ze!=3)throw new Error("Sector Shift: Expected 9 saw "+qe);break;case 12:if(Ze!=4)throw new Error("Sector Shift: Expected 12 saw "+qe);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+qe)}ze.chk("0600","Mini Sector Shift: "),ze.chk("000000000000","Reserved: ")}function p(ze,Ze){for(var qe=Math.ceil(ze.length/Ze)-1,Ge=[],$e=1;$e<qe;++$e)Ge[$e-1]=ze.slice($e*Ze,($e+1)*Ze);return Ge[qe-1]=ze.slice(qe*Ze),Ge}function _(ze,Ze,qe){for(var Ge=0,$e=0,tt=0,bt=0,xt=0,kt=qe.length,Bt=[],Dt=[];Ge<kt;++Ge)Bt[Ge]=Dt[Ge]=Ge,Ze[Ge]=qe[Ge];for(;xt<Dt.length;++xt)Ge=Dt[xt],$e=ze[Ge].L,tt=ze[Ge].R,bt=ze[Ge].C,Bt[Ge]===Ge&&($e!==-1&&Bt[$e]!==$e&&(Bt[Ge]=Bt[$e]),tt!==-1&&Bt[tt]!==tt&&(Bt[Ge]=Bt[tt])),bt!==-1&&(Bt[bt]=Ge),$e!==-1&&Ge!=Bt[Ge]&&(Bt[$e]=Bt[Ge],Dt.lastIndexOf($e)<xt&&Dt.push($e)),tt!==-1&&Ge!=Bt[Ge]&&(Bt[tt]=Bt[Ge],Dt.lastIndexOf(tt)<xt&&Dt.push(tt));for(Ge=1;Ge<kt;++Ge)Bt[Ge]===Ge&&(tt!==-1&&Bt[tt]!==tt?Bt[Ge]=Bt[tt]:$e!==-1&&Bt[$e]!==$e&&(Bt[Ge]=Bt[$e]));for(Ge=1;Ge<kt;++Ge)if(ze[Ge].type!==0){if(xt=Ge,xt!=Bt[xt])do xt=Bt[xt],Ze[Ge]=Ze[xt]+"/"+Ze[Ge];while(xt!==0&&Bt[xt]!==-1&&xt!=Bt[xt]);Bt[Ge]=-1}for(Ze[0]+="/",Ge=1;Ge<kt;++Ge)ze[Ge].type!==2&&(Ze[Ge]+="/")}function y(ze,Ze,qe){for(var Ge=ze.start,$e=ze.size,tt=[],bt=Ge;qe&&$e>0&&bt>=0;)tt.push(Ze.slice(bt*N,bt*N+N)),$e-=N,bt=g0(qe,bt*4);return tt.length===0?Er(0):So(tt).slice(0,ze.size)}function h(ze,Ze,qe,Ge,$e){var tt=B;if(ze===B){if(Ze!==0)throw new Error("DIFAT chain shorter than expected")}else if(ze!==-1){var bt=qe[ze],xt=(Ge>>>2)-1;if(!bt)return;for(var kt=0;kt<xt&&(tt=g0(bt,kt*4))!==B;++kt)$e.push(tt);h(g0(bt,Ge-4),Ze-1,qe,Ge,$e)}}function d(ze,Ze,qe,Ge,$e){var tt=[],bt=[];$e||($e=[]);var xt=Ge-1,kt=0,Bt=0;for(kt=Ze;kt>=0;){$e[kt]=!0,tt[tt.length]=kt,bt.push(ze[kt]);var Dt=qe[Math.floor(kt*4/Ge)];if(Bt=kt*4&xt,Ge<4+Bt)throw new Error("FAT boundary crossed: "+kt+" 4 "+Ge);if(!ze[Dt])break;kt=g0(ze[Dt],Bt)}return{nodes:tt,data:$x([bt])}}function A(ze,Ze,qe,Ge){var $e=ze.length,tt=[],bt=[],xt=[],kt=[],Bt=Ge-1,Dt=0,or=0,gr=0,kr=0;for(Dt=0;Dt<$e;++Dt)if(xt=[],gr=Dt+Ze,gr>=$e&&(gr-=$e),!bt[gr]){kt=[];var it=[];for(or=gr;or>=0;){it[or]=!0,bt[or]=!0,xt[xt.length]=or,kt.push(ze[or]);var We=qe[Math.floor(or*4/Ge)];if(kr=or*4&Bt,Ge<4+kr)throw new Error("FAT boundary crossed: "+or+" 4 "+Ge);if(!ze[We]||(or=g0(ze[We],kr),it[or]))break}tt[gr]={nodes:xt,data:$x([kt])}}return tt}function v(ze,Ze,qe,Ge,$e,tt,bt,xt){for(var kt=0,Bt=Ge.length?2:0,Dt=Ze[ze].data,or=0,gr=0,kr;or<Dt.length;or+=128){var it=Dt.slice(or,or+128);jo(it,64),gr=it.read_shift(2),kr=g_(it,0,gr-Bt),Ge.push(kr);var We={name:kr,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},gt=it.read_shift(2)+it.read_shift(2)+it.read_shift(2)+it.read_shift(2);gt!==0&&(We.ct=w(it,it.l-8));var yt=it.read_shift(2)+it.read_shift(2)+it.read_shift(2)+it.read_shift(2);yt!==0&&(We.mt=w(it,it.l-8)),We.start=it.read_shift(4,"i"),We.size=it.read_shift(4,"i"),We.size<0&&We.start<0&&(We.size=We.type=0,We.start=B,We.name=""),We.type===5?(kt=We.start,$e>0&&kt!==B&&(Ze[kt].name="!StreamData")):We.size>=4096?(We.storage="fat",Ze[We.start]===void 0&&(Ze[We.start]=d(qe,We.start,Ze.fat_addrs,Ze.ssz)),Ze[We.start].name=We.name,We.content=Ze[We.start].data.slice(0,We.size)):(We.storage="minifat",We.size<0?We.size=0:kt!==B&&We.start!==B&&Ze[kt]&&(We.content=y(We,Ze[kt].data,(Ze[xt]||{}).data))),We.content&&jo(We.content,0),tt[kr]=We,bt.push(We)}}function w(ze,Ze){return new Date((uu(ze,Ze+4)/1e7*Math.pow(2,32)+uu(ze,Ze)/1e7-11644473600)*1e3)}function x(ze,Ze){return o(),l(f.readFileSync(ze),Ze)}function C(ze,Ze){var qe=Ze&&Ze.type;switch(qe||Ga&&Buffer.isBuffer(ze)&&(qe="buffer"),qe||"base64"){case"file":return x(ze,Ze);case"base64":return l(cu(hu(ze)),Ze);case"binary":return l(cu(ze),Ze)}return l(ze,Ze)}function k(ze,Ze){var qe=Ze||{},Ge=qe.root||"Root Entry";if(ze.FullPaths||(ze.FullPaths=[]),ze.FileIndex||(ze.FileIndex=[]),ze.FullPaths.length!==ze.FileIndex.length)throw new Error("inconsistent CFB structure");ze.FullPaths.length===0&&(ze.FullPaths[0]=Ge+"/",ze.FileIndex[0]={name:Ge,type:5}),qe.CLSID&&(ze.FileIndex[0].clsid=qe.CLSID),T(ze)}function T(ze){var Ze="Sh33tJ5";if(!ra.find(ze,"/"+Ze)){var qe=Er(4);qe[0]=55,qe[1]=qe[3]=50,qe[2]=54,ze.FileIndex.push({name:Ze,type:2,content:qe,size:4,L:69,R:69,C:69}),ze.FullPaths.push(ze.FullPaths[0]+Ze),S(ze)}}function S(ze,Ze){k(ze);for(var qe=!1,Ge=!1,$e=ze.FullPaths.length-1;$e>=0;--$e){var tt=ze.FileIndex[$e];switch(tt.type){case 0:Ge?qe=!0:(ze.FileIndex.pop(),ze.FullPaths.pop());break;case 1:case 2:case 5:Ge=!0,isNaN(tt.R*tt.L*tt.C)&&(qe=!0),tt.R>-1&&tt.L>-1&&tt.R==tt.L&&(qe=!0);break;default:qe=!0;break}}if(!(!qe&&!Ze)){var bt=new Date(1987,1,19),xt=0,kt=Object.create?Object.create(null):{},Bt=[];for($e=0;$e<ze.FullPaths.length;++$e)kt[ze.FullPaths[$e]]=!0,ze.FileIndex[$e].type!==0&&Bt.push([ze.FullPaths[$e],ze.FileIndex[$e]]);for($e=0;$e<Bt.length;++$e){var Dt=i(Bt[$e][0]);Ge=kt[Dt],Ge||(Bt.push([Dt,{name:n(Dt).replace("/",""),type:1,clsid:F,ct:bt,mt:bt,content:null}]),kt[Dt]=!0)}for(Bt.sort(function(kr,it){return r(kr[0],it[0])}),ze.FullPaths=[],ze.FileIndex=[],$e=0;$e<Bt.length;++$e)ze.FullPaths[$e]=Bt[$e][0],ze.FileIndex[$e]=Bt[$e][1];for($e=0;$e<Bt.length;++$e){var or=ze.FileIndex[$e],gr=ze.FullPaths[$e];if(or.name=n(gr).replace("/",""),or.L=or.R=or.C=-(or.color=1),or.size=or.content?or.content.length:0,or.start=0,or.clsid=or.clsid||F,$e===0)or.C=Bt.length>1?1:-1,or.size=0,or.type=5;else if(gr.slice(-1)=="/"){for(xt=$e+1;xt<Bt.length&&i(ze.FullPaths[xt])!=gr;++xt);for(or.C=xt>=Bt.length?-1:xt,xt=$e+1;xt<Bt.length&&i(ze.FullPaths[xt])!=i(gr);++xt);or.R=xt>=Bt.length?-1:xt,or.type=1}else i(ze.FullPaths[$e+1]||"")==i(gr)&&(or.R=$e+1),or.type=2}}}function M(ze,Ze){var qe=Ze||{};if(qe.fileType=="mad")return Or(ze,qe);switch(S(ze),qe.fileType){case"zip":return Lt(ze,qe)}var Ge=(function(kr){for(var it=0,We=0,gt=0;gt<kr.FileIndex.length;++gt){var yt=kr.FileIndex[gt];if(yt.content){var Rt=yt.content.length;Rt>0&&(Rt<4096?it+=Rt+63>>6:We+=Rt+511>>9)}}for(var Mt=kr.FullPaths.length+3>>2,It=it+7>>3,xr=it+127>>7,rn=It+We+Mt+xr,Zr=rn+127>>7,Rr=Zr<=109?0:Math.ceil((Zr-109)/127);rn+Zr+Rr+127>>7>Zr;)Rr=++Zr<=109?0:Math.ceil((Zr-109)/127);var $r=[1,Rr,Zr,xr,Mt,We,it,0];return kr.FileIndex[0].size=it<<6,$r[7]=(kr.FileIndex[0].start=$r[0]+$r[1]+$r[2]+$r[3]+$r[4]+$r[5])+($r[6]+7>>3),$r})(ze),$e=Er(Ge[7]<<9),tt=0,bt=0;{for(tt=0;tt<8;++tt)$e.write_shift(1,I[tt]);for(tt=0;tt<8;++tt)$e.write_shift(2,0);for($e.write_shift(2,62),$e.write_shift(2,3),$e.write_shift(2,65534),$e.write_shift(2,9),$e.write_shift(2,6),tt=0;tt<3;++tt)$e.write_shift(2,0);for($e.write_shift(4,0),$e.write_shift(4,Ge[2]),$e.write_shift(4,Ge[0]+Ge[1]+Ge[2]+Ge[3]-1),$e.write_shift(4,0),$e.write_shift(4,4096),$e.write_shift(4,Ge[3]?Ge[0]+Ge[1]+Ge[2]-1:B),$e.write_shift(4,Ge[3]),$e.write_shift(-4,Ge[1]?Ge[0]-1:B),$e.write_shift(4,Ge[1]),tt=0;tt<109;++tt)$e.write_shift(-4,tt<Ge[2]?Ge[1]+tt:-1)}if(Ge[1])for(bt=0;bt<Ge[1];++bt){for(;tt<236+bt*127;++tt)$e.write_shift(-4,tt<Ge[2]?Ge[1]+tt:-1);$e.write_shift(-4,bt===Ge[1]-1?B:bt+1)}var xt=function(kr){for(bt+=kr;tt<bt-1;++tt)$e.write_shift(-4,tt+1);kr&&(++tt,$e.write_shift(-4,B))};for(bt=tt=0,bt+=Ge[1];tt<bt;++tt)$e.write_shift(-4,L.DIFSECT);for(bt+=Ge[2];tt<bt;++tt)$e.write_shift(-4,L.FATSECT);xt(Ge[3]),xt(Ge[4]);for(var kt=0,Bt=0,Dt=ze.FileIndex[0];kt<ze.FileIndex.length;++kt)Dt=ze.FileIndex[kt],Dt.content&&(Bt=Dt.content.length,!(Bt<4096)&&(Dt.start=bt,xt(Bt+511>>9)));for(xt(Ge[6]+7>>3);$e.l&511;)$e.write_shift(-4,L.ENDOFCHAIN);for(bt=tt=0,kt=0;kt<ze.FileIndex.length;++kt)Dt=ze.FileIndex[kt],Dt.content&&(Bt=Dt.content.length,!(!Bt||Bt>=4096)&&(Dt.start=bt,xt(Bt+63>>6)));for(;$e.l&511;)$e.write_shift(-4,L.ENDOFCHAIN);for(tt=0;tt<Ge[4]<<2;++tt){var or=ze.FullPaths[tt];if(!or||or.length===0){for(kt=0;kt<17;++kt)$e.write_shift(4,0);for(kt=0;kt<3;++kt)$e.write_shift(4,-1);for(kt=0;kt<12;++kt)$e.write_shift(4,0);continue}Dt=ze.FileIndex[tt],tt===0&&(Dt.start=Dt.size?Dt.start-1:B);var gr=tt===0&&qe.root||Dt.name;if(Bt=2*(gr.length+1),$e.write_shift(64,gr,"utf16le"),$e.write_shift(2,Bt),$e.write_shift(1,Dt.type),$e.write_shift(1,Dt.color),$e.write_shift(-4,Dt.L),$e.write_shift(-4,Dt.R),$e.write_shift(-4,Dt.C),Dt.clsid)$e.write_shift(16,Dt.clsid,"hex");else for(kt=0;kt<4;++kt)$e.write_shift(4,0);$e.write_shift(4,Dt.state||0),$e.write_shift(4,0),$e.write_shift(4,0),$e.write_shift(4,0),$e.write_shift(4,0),$e.write_shift(4,Dt.start),$e.write_shift(4,Dt.size),$e.write_shift(4,0)}for(tt=1;tt<ze.FileIndex.length;++tt)if(Dt=ze.FileIndex[tt],Dt.size>=4096)if($e.l=Dt.start+1<<9,Ga&&Buffer.isBuffer(Dt.content))Dt.content.copy($e,$e.l,0,Dt.size),$e.l+=Dt.size+511&-512;else{for(kt=0;kt<Dt.size;++kt)$e.write_shift(1,Dt.content[kt]);for(;kt&511;++kt)$e.write_shift(1,0)}for(tt=1;tt<ze.FileIndex.length;++tt)if(Dt=ze.FileIndex[tt],Dt.size>0&&Dt.size<4096)if(Ga&&Buffer.isBuffer(Dt.content))Dt.content.copy($e,$e.l,0,Dt.size),$e.l+=Dt.size+63&-64;else{for(kt=0;kt<Dt.size;++kt)$e.write_shift(1,Dt.content[kt]);for(;kt&63;++kt)$e.write_shift(1,0)}if(Ga)$e.l=$e.length;else for(;$e.l<$e.length;)$e.write_shift(1,0);return $e}function P(ze,Ze){var qe=ze.FullPaths.map(function(kt){return kt.toUpperCase()}),Ge=qe.map(function(kt){var Bt=kt.split("/");return Bt[Bt.length-(kt.slice(-1)=="/"?2:1)]}),$e=!1;Ze.charCodeAt(0)===47?($e=!0,Ze=qe[0].slice(0,-1)+Ze):$e=Ze.indexOf("/")!==-1;var tt=Ze.toUpperCase(),bt=$e===!0?qe.indexOf(tt):Ge.indexOf(tt);if(bt!==-1)return ze.FileIndex[bt];var xt=!tt.match(f1);for(tt=tt.replace(Sl,""),xt&&(tt=tt.replace(f1,"!")),bt=0;bt<qe.length;++bt)if((xt?qe[bt].replace(f1,"!"):qe[bt]).replace(Sl,"")==tt||(xt?Ge[bt].replace(f1,"!"):Ge[bt]).replace(Sl,"")==tt)return ze.FileIndex[bt];return null}var N=64,B=-2,O="d0cf11e0a1b11ae1",I=[208,207,17,224,161,177,26,225],F="00000000000000000000000000000000",L={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:B,FREESECT:-1,HEADER_SIGNATURE:O,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:F,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function R(ze,Ze,qe){o();var Ge=M(ze,qe);f.writeFileSync(Ze,Ge)}function U(ze){for(var Ze=new Array(ze.length),qe=0;qe<ze.length;++qe)Ze[qe]=String.fromCharCode(ze[qe]);return Ze.join("")}function V(ze,Ze){var qe=M(ze,Ze);switch(Ze&&Ze.type||"buffer"){case"file":return o(),f.writeFileSync(Ze.filename,qe),qe;case"binary":return typeof qe=="string"?qe:U(qe);case"base64":return N1(typeof qe=="string"?qe:U(qe));case"buffer":if(Ga)return Buffer.isBuffer(qe)?qe:Ld(qe);case"array":return typeof qe=="string"?cu(qe):qe}return qe}var W;function Q(ze){try{var Ze=ze.InflateRaw,qe=new Ze;if(qe._processChunk(new Uint8Array([3,0]),qe._finishFlushFlag),qe.bytesRead)W=ze;else throw new Error("zlib does not expose bytesRead")}catch(Ge){console.error("cannot use native zlib: "+(Ge.message||Ge))}}function le(ze,Ze){if(!W)return zr(ze,Ze);var qe=W.InflateRaw,Ge=new qe,$e=Ge._processChunk(ze.slice(ze.l),Ge._finishFlushFlag);return ze.l+=Ge.bytesRead,$e}function G(ze){return W?W.deflateRawSync(ze):Ot(ze)}var fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ie=[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],he=[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];function Y(ze){var Ze=(ze<<1|ze<<11)&139536|(ze<<5|ze<<15)&558144;return(Ze>>16|Ze>>8|Ze)&255}for(var K=typeof Uint8Array<"u",oe=K?new Uint8Array(256):[],pe=0;pe<256;++pe)oe[pe]=Y(pe);function ve(ze,Ze){var qe=oe[ze&255];return Ze<=8?qe>>>8-Ze:(qe=qe<<8|oe[ze>>8&255],Ze<=16?qe>>>16-Ze:(qe=qe<<8|oe[ze>>16&255],qe>>>24-Ze))}function ge(ze,Ze){var qe=Ze&7,Ge=Ze>>>3;return(ze[Ge]|(qe<=6?0:ze[Ge+1]<<8))>>>qe&3}function ue(ze,Ze){var qe=Ze&7,Ge=Ze>>>3;return(ze[Ge]|(qe<=5?0:ze[Ge+1]<<8))>>>qe&7}function Te(ze,Ze){var qe=Ze&7,Ge=Ze>>>3;return(ze[Ge]|(qe<=4?0:ze[Ge+1]<<8))>>>qe&15}function Ee(ze,Ze){var qe=Ze&7,Ge=Ze>>>3;return(ze[Ge]|(qe<=3?0:ze[Ge+1]<<8))>>>qe&31}function ye(ze,Ze){var qe=Ze&7,Ge=Ze>>>3;return(ze[Ge]|(qe<=1?0:ze[Ge+1]<<8))>>>qe&127}function Se(ze,Ze,qe){var Ge=Ze&7,$e=Ze>>>3,tt=(1<<qe)-1,bt=ze[$e]>>>Ge;return qe<8-Ge||(bt|=ze[$e+1]<<8-Ge,qe<16-Ge)||(bt|=ze[$e+2]<<16-Ge,qe<24-Ge)||(bt|=ze[$e+3]<<24-Ge),bt&tt}function Fe(ze,Ze,qe){var Ge=Ze&7,$e=Ze>>>3;return Ge<=5?ze[$e]|=(qe&7)<<Ge:(ze[$e]|=qe<<Ge&255,ze[$e+1]=(qe&7)>>8-Ge),Ze+3}function Ve(ze,Ze,qe){var Ge=Ze&7,$e=Ze>>>3;return qe=(qe&1)<<Ge,ze[$e]|=qe,Ze+1}function ke(ze,Ze,qe){var Ge=Ze&7,$e=Ze>>>3;return qe<<=Ge,ze[$e]|=qe&255,qe>>>=8,ze[$e+1]=qe,Ze+8}function Pe(ze,Ze,qe){var Ge=Ze&7,$e=Ze>>>3;return qe<<=Ge,ze[$e]|=qe&255,qe>>>=8,ze[$e+1]=qe&255,ze[$e+2]=qe>>>8,Ze+16}function Re(ze,Ze){var qe=ze.length,Ge=2*qe>Ze?2*qe:Ze+5,$e=0;if(qe>=Ze)return ze;if(Ga){var tt=Ex(Ge);if(ze.copy)ze.copy(tt);else for(;$e<ze.length;++$e)tt[$e]=ze[$e];return tt}else if(K){var bt=new Uint8Array(Ge);if(bt.set)bt.set(ze);else for(;$e<qe;++$e)bt[$e]=ze[$e];return bt}return ze.length=Ge,ze}function Ye(ze){for(var Ze=new Array(ze),qe=0;qe<ze;++qe)Ze[qe]=0;return Ze}function Ke(ze,Ze,qe){var Ge=1,$e=0,tt=0,bt=0,xt=0,kt=ze.length,Bt=K?new Uint16Array(32):Ye(32);for(tt=0;tt<32;++tt)Bt[tt]=0;for(tt=kt;tt<qe;++tt)ze[tt]=0;kt=ze.length;var Dt=K?new Uint16Array(kt):Ye(kt);for(tt=0;tt<kt;++tt)Bt[$e=ze[tt]]++,Ge<$e&&(Ge=$e),Dt[tt]=0;for(Bt[0]=0,tt=1;tt<=Ge;++tt)Bt[tt+16]=xt=xt+Bt[tt-1]<<1;for(tt=0;tt<kt;++tt)xt=ze[tt],xt!=0&&(Dt[tt]=Bt[xt+16]++);var or=0;for(tt=0;tt<kt;++tt)if(or=ze[tt],or!=0)for(xt=ve(Dt[tt],Ge)>>Ge-or,bt=(1<<Ge+4-or)-1;bt>=0;--bt)Ze[xt|bt<<or]=or&15|tt<<4;return Ge}var ot=K?new Uint16Array(512):Ye(512),nt=K?new Uint16Array(32):Ye(32);if(!K){for(var mt=0;mt<512;++mt)ot[mt]=0;for(mt=0;mt<32;++mt)nt[mt]=0}(function(){for(var ze=[],Ze=0;Ze<32;Ze++)ze.push(5);Ke(ze,nt,32);var qe=[];for(Ze=0;Ze<=143;Ze++)qe.push(8);for(;Ze<=255;Ze++)qe.push(9);for(;Ze<=279;Ze++)qe.push(7);for(;Ze<=287;Ze++)qe.push(8);Ke(qe,ot,288)})();var Ut=(function(){for(var Ze=K?new Uint8Array(32768):[],qe=0,Ge=0;qe<he.length-1;++qe)for(;Ge<he[qe+1];++Ge)Ze[Ge]=qe;for(;Ge<32768;++Ge)Ze[Ge]=29;var $e=K?new Uint8Array(259):[];for(qe=0,Ge=0;qe<ie.length-1;++qe)for(;Ge<ie[qe+1];++Ge)$e[Ge]=qe;function tt(xt,kt){for(var Bt=0;Bt<xt.length;){var Dt=Math.min(65535,xt.length-Bt),or=Bt+Dt==xt.length;for(kt.write_shift(1,+or),kt.write_shift(2,Dt),kt.write_shift(2,~Dt&65535);Dt-- >0;)kt[kt.l++]=xt[Bt++]}return kt.l}function bt(xt,kt){for(var Bt=0,Dt=0,or=K?new Uint16Array(32768):[];Dt<xt.length;){var gr=Math.min(65535,xt.length-Dt);if(gr<10){for(Bt=Fe(kt,Bt,+(Dt+gr==xt.length)),Bt&7&&(Bt+=8-(Bt&7)),kt.l=Bt/8|0,kt.write_shift(2,gr),kt.write_shift(2,~gr&65535);gr-- >0;)kt[kt.l++]=xt[Dt++];Bt=kt.l*8;continue}Bt=Fe(kt,Bt,+(Dt+gr==xt.length)+2);for(var kr=0;gr-- >0;){var it=xt[Dt];kr=(kr<<5^it)&32767;var We=-1,gt=0;if((We=or[kr])&&(We|=Dt&-32768,We>Dt&&(We-=32768),We<Dt))for(;xt[We+gt]==xt[Dt+gt]&&gt<250;)++gt;if(gt>2){it=$e[gt],it<=22?Bt=ke(kt,Bt,oe[it+1]>>1)-1:(ke(kt,Bt,3),Bt+=5,ke(kt,Bt,oe[it-23]>>5),Bt+=3);var yt=it<8?0:it-4>>2;yt>0&&(Pe(kt,Bt,gt-ie[it]),Bt+=yt),it=Ze[Dt-We],Bt=ke(kt,Bt,oe[it]>>3),Bt-=3;var Rt=it<4?0:it-2>>1;Rt>0&&(Pe(kt,Bt,Dt-We-he[it]),Bt+=Rt);for(var Mt=0;Mt<gt;++Mt)or[kr]=Dt&32767,kr=(kr<<5^xt[Dt])&32767,++Dt;gr-=gt-1}else it<=143?it=it+48:Bt=Ve(kt,Bt,1),Bt=ke(kt,Bt,oe[it]),or[kr]=Dt&32767,++Dt}Bt=ke(kt,Bt,0)-1}return kt.l=(Bt+7)/8|0,kt.l}return function(kt,Bt){return kt.length<8?tt(kt,Bt):bt(kt,Bt)}})();function Ot(ze){var Ze=Er(50+Math.floor(ze.length*1.1)),qe=Ut(ze,Ze);return Ze.slice(0,qe)}var wt=K?new Uint16Array(32768):Ye(32768),Kt=K?new Uint16Array(32768):Ye(32768),_t=K?new Uint16Array(128):Ye(128),Jt=1,yr=1;function vr(ze,Ze){var qe=Ee(ze,Ze)+257;Ze+=5;var Ge=Ee(ze,Ze)+1;Ze+=5;var $e=Te(ze,Ze)+4;Ze+=4;for(var tt=0,bt=K?new Uint8Array(19):Ye(19),xt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],kt=1,Bt=K?new Uint8Array(8):Ye(8),Dt=K?new Uint8Array(8):Ye(8),or=bt.length,gr=0;gr<$e;++gr)bt[fe[gr]]=tt=ue(ze,Ze),kt<tt&&(kt=tt),Bt[tt]++,Ze+=3;var kr=0;for(Bt[0]=0,gr=1;gr<=kt;++gr)Dt[gr]=kr=kr+Bt[gr-1]<<1;for(gr=0;gr<or;++gr)(kr=bt[gr])!=0&&(xt[gr]=Dt[kr]++);var it=0;for(gr=0;gr<or;++gr)if(it=bt[gr],it!=0){kr=oe[xt[gr]]>>8-it;for(var We=(1<<7-it)-1;We>=0;--We)_t[kr|We<<it]=it&7|gr<<3}var gt=[];for(kt=1;gt.length<qe+Ge;)switch(kr=_t[ye(ze,Ze)],Ze+=kr&7,kr>>>=3){case 16:for(tt=3+ge(ze,Ze),Ze+=2,kr=gt[gt.length-1];tt-- >0;)gt.push(kr);break;case 17:for(tt=3+ue(ze,Ze),Ze+=3;tt-- >0;)gt.push(0);break;case 18:for(tt=11+ye(ze,Ze),Ze+=7;tt-- >0;)gt.push(0);break;default:gt.push(kr),kt<kr&&(kt=kr);break}var yt=gt.slice(0,qe),Rt=gt.slice(qe);for(gr=qe;gr<286;++gr)yt[gr]=0;for(gr=Ge;gr<30;++gr)Rt[gr]=0;return Jt=Ke(yt,wt,286),yr=Ke(Rt,Kt,30),Ze}function Br(ze,Ze){if(ze[0]==3&&!(ze[1]&3))return[eA(Ze),2];for(var qe=0,Ge=0,$e=Ex(Ze||1<<18),tt=0,bt=$e.length>>>0,xt=0,kt=0;(Ge&1)==0;){if(Ge=ue(ze,qe),qe+=3,Ge>>>1)Ge>>1==1?(xt=9,kt=5):(qe=vr(ze,qe),xt=Jt,kt=yr);else{qe&7&&(qe+=8-(qe&7));var Bt=ze[qe>>>3]|ze[(qe>>>3)+1]<<8;if(qe+=32,Bt>0)for(!Ze&&bt<tt+Bt&&($e=Re($e,tt+Bt),bt=$e.length);Bt-- >0;)$e[tt++]=ze[qe>>>3],qe+=8;continue}for(;;){!Ze&&bt<tt+32767&&($e=Re($e,tt+32767),bt=$e.length);var Dt=Se(ze,qe,xt),or=Ge>>>1==1?ot[Dt]:wt[Dt];if(qe+=or&15,or>>>=4,(or>>>8&255)===0)$e[tt++]=or;else{if(or==256)break;or-=257;var gr=or<8?0:or-4>>2;gr>5&&(gr=0);var kr=tt+ie[or];gr>0&&(kr+=Se(ze,qe,gr),qe+=gr),Dt=Se(ze,qe,kt),or=Ge>>>1==1?nt[Dt]:Kt[Dt],qe+=or&15,or>>>=4;var it=or<4?0:or-2>>1,We=he[or];for(it>0&&(We+=Se(ze,qe,it),qe+=it),!Ze&&bt<kr&&($e=Re($e,kr+100),bt=$e.length);tt<kr;)$e[tt]=$e[tt-We],++tt}}}return Ze?[$e,qe+7>>>3]:[$e.slice(0,tt),qe+7>>>3]}function zr(ze,Ze){var qe=ze.slice(ze.l||0),Ge=Br(qe,Ze);return ze.l+=Ge[1],Ge[0]}function mn(ze,Ze){if(ze)typeof console<"u"&&console.error(Ze);else throw new Error(Ze)}function jr(ze,Ze){var qe=ze;jo(qe,0);var Ge=[],$e=[],tt={FileIndex:Ge,FullPaths:$e};k(tt,{root:Ze.root});for(var bt=qe.length-4;(qe[bt]!=80||qe[bt+1]!=75||qe[bt+2]!=5||qe[bt+3]!=6)&&bt>=0;)--bt;qe.l=bt+4,qe.l+=4;var xt=qe.read_shift(2);qe.l+=6;var kt=qe.read_shift(4);for(qe.l=kt,bt=0;bt<xt;++bt){qe.l+=20;var Bt=qe.read_shift(4),Dt=qe.read_shift(4),or=qe.read_shift(2),gr=qe.read_shift(2),kr=qe.read_shift(2);qe.l+=8;var it=qe.read_shift(4),We=u(qe.slice(qe.l+or,qe.l+or+gr));qe.l+=or+gr+kr;var gt=qe.l;qe.l=it+4,Tn(qe,Bt,Dt,tt,We),qe.l=gt}return tt}function Tn(ze,Ze,qe,Ge,$e){ze.l+=2;var tt=ze.read_shift(2),bt=ze.read_shift(2),xt=c(ze);if(tt&8257)throw new Error("Unsupported ZIP encryption");for(var kt=ze.read_shift(4),Bt=ze.read_shift(4),Dt=ze.read_shift(4),or=ze.read_shift(2),gr=ze.read_shift(2),kr="",it=0;it<or;++it)kr+=String.fromCharCode(ze[ze.l++]);if(gr){var We=u(ze.slice(ze.l,ze.l+gr));(We[21589]||{}).mt&&(xt=We[21589].mt),(($e||{})[21589]||{}).mt&&(xt=$e[21589].mt)}ze.l+=gr;var gt=ze.slice(ze.l,ze.l+Bt);switch(bt){case 8:gt=le(ze,Dt);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+bt)}var yt=!1;tt&8&&(kt=ze.read_shift(4),kt==134695760&&(kt=ze.read_shift(4),yt=!0),Bt=ze.read_shift(4),Dt=ze.read_shift(4)),Bt!=Ze&&mn(yt,"Bad compressed size: "+Ze+" != "+Bt),Dt!=qe&&mn(yt,"Bad uncompressed size: "+qe+" != "+Dt),Wr(Ge,kr,gt,{unsafe:!0,mt:xt})}function Lt(ze,Ze){var qe=Ze||{},Ge=[],$e=[],tt=Er(1),bt=qe.compression?8:0,xt=0,kt=0,Bt=0,Dt=0,or=0,gr=ze.FullPaths[0],kr=gr,it=ze.FileIndex[0],We=[],gt=0;for(kt=1;kt<ze.FullPaths.length;++kt)if(kr=ze.FullPaths[kt].slice(gr.length),it=ze.FileIndex[kt],!(!it.size||!it.content||kr=="Sh33tJ5")){var yt=Dt,Rt=Er(kr.length);for(Bt=0;Bt<kr.length;++Bt)Rt.write_shift(1,kr.charCodeAt(Bt)&127);Rt=Rt.slice(0,Rt.l),We[or]=YE.buf(it.content,0);var Mt=it.content;bt==8&&(Mt=G(Mt)),tt=Er(30),tt.write_shift(4,67324752),tt.write_shift(2,20),tt.write_shift(2,xt),tt.write_shift(2,bt),it.mt?t(tt,it.mt):tt.write_shift(4,0),tt.write_shift(-4,We[or]),tt.write_shift(4,Mt.length),tt.write_shift(4,it.content.length),tt.write_shift(2,Rt.length),tt.write_shift(2,0),Dt+=tt.length,Ge.push(tt),Dt+=Rt.length,Ge.push(Rt),Dt+=Mt.length,Ge.push(Mt),tt=Er(46),tt.write_shift(4,33639248),tt.write_shift(2,0),tt.write_shift(2,20),tt.write_shift(2,xt),tt.write_shift(2,bt),tt.write_shift(4,0),tt.write_shift(-4,We[or]),tt.write_shift(4,Mt.length),tt.write_shift(4,it.content.length),tt.write_shift(2,Rt.length),tt.write_shift(2,0),tt.write_shift(2,0),tt.write_shift(2,0),tt.write_shift(2,0),tt.write_shift(4,0),tt.write_shift(4,yt),gt+=tt.l,$e.push(tt),gt+=Rt.length,$e.push(Rt),++or}return tt=Er(22),tt.write_shift(4,101010256),tt.write_shift(2,0),tt.write_shift(2,0),tt.write_shift(2,or),tt.write_shift(2,or),tt.write_shift(4,gt),tt.write_shift(4,Dt),tt.write_shift(2,0),So([So(Ge),So($e),tt])}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 $t(ze,Ze){if(ze.ctype)return ze.ctype;var qe=ze.name||"",Ge=qe.match(/\.([^\.]+)$/);return Ge&&Gt[Ge[1]]||Ze&&(Ge=(qe=Ze).match(/[\.\\]([^\.\\])+$/),Ge&&Gt[Ge[1]])?Gt[Ge[1]]:"application/octet-stream"}function Sr(ze){for(var Ze=N1(ze),qe=[],Ge=0;Ge<Ze.length;Ge+=76)qe.push(Ze.slice(Ge,Ge+76));return qe.join(`\r
`)+`\r
`}function br(ze){var Ze=ze.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Bt){var Dt=Bt.charCodeAt(0).toString(16).toUpperCase();return"="+(Dt.length==1?"0"+Dt:Dt)});Ze=Ze.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),Ze.charAt(0)==`
`&&(Ze="=0D"+Ze.slice(1)),Ze=Ze.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var qe=[],Ge=Ze.split(`\r
`),$e=0;$e<Ge.length;++$e){var tt=Ge[$e];if(tt.length==0){qe.push("");continue}for(var bt=0;bt<tt.length;){var xt=76,kt=tt.slice(bt,bt+xt);kt.charAt(xt-1)=="="?xt--:kt.charAt(xt-2)=="="?xt-=2:kt.charAt(xt-3)=="="&&(xt-=3),kt=tt.slice(bt,bt+xt),bt+=xt,bt<tt.length&&(kt+="="),qe.push(kt)}}return qe.join(`\r
`)}function sr(ze){for(var Ze=[],qe=0;qe<ze.length;++qe){for(var Ge=ze[qe];qe<=ze.length&&Ge.charAt(Ge.length-1)=="=";)Ge=Ge.slice(0,Ge.length-1)+ze[++qe];Ze.push(Ge)}for(var $e=0;$e<Ze.length;++$e)Ze[$e]=Ze[$e].replace(/[=][0-9A-Fa-f]{2}/g,function(tt){return String.fromCharCode(parseInt(tt.slice(1),16))});return cu(Ze.join(`\r
`))}function Fn(ze,Ze,qe){for(var Ge="",$e="",tt="",bt,xt=0;xt<10;++xt){var kt=Ze[xt];if(!kt||kt.match(/^\s*$/))break;var Bt=kt.match(/^(.*?):\s*([^\s].*)$/);if(Bt)switch(Bt[1].toLowerCase()){case"content-location":Ge=Bt[2].trim();break;case"content-type":tt=Bt[2].trim();break;case"content-transfer-encoding":$e=Bt[2].trim();break}}switch(++xt,$e.toLowerCase()){case"base64":bt=cu(hu(Ze.slice(xt).join("")));break;case"quoted-printable":bt=sr(Ze.slice(xt));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+$e)}var Dt=Wr(ze,Ge.slice(qe.length),bt,{unsafe:!0});tt&&(Dt.ctype=tt)}function fn(ze,Ze){if(U(ze.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var qe=Ze&&Ze.root||"",Ge=(Ga&&Buffer.isBuffer(ze)?ze.toString("binary"):U(ze)).split(`\r
`),$e=0,tt="";for($e=0;$e<Ge.length;++$e)if(tt=Ge[$e],!!/^Content-Location:/i.test(tt)&&(tt=tt.slice(tt.indexOf("file")),qe||(qe=tt.slice(0,tt.lastIndexOf("/")+1)),tt.slice(0,qe.length)!=qe))for(;qe.length>0&&(qe=qe.slice(0,qe.length-1),qe=qe.slice(0,qe.lastIndexOf("/")+1),tt.slice(0,qe.length)!=qe););var bt=(Ge[1]||"").match(/boundary="(.*?)"/);if(!bt)throw new Error("MAD cannot find boundary");var xt="--"+(bt[1]||""),kt=[],Bt=[],Dt={FileIndex:kt,FullPaths:Bt};k(Dt);var or,gr=0;for($e=0;$e<Ge.length;++$e){var kr=Ge[$e];kr!==xt&&kr!==xt+"--"||(gr++&&Fn(Dt,Ge.slice(or,$e),qe),or=$e)}return Dt}function Or(ze,Ze){var qe=Ze||{},Ge=qe.boundary||"SheetJS";Ge="------="+Ge;for(var $e=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+Ge.slice(2)+'"',"","",""],tt=ze.FullPaths[0],bt=tt,xt=ze.FileIndex[0],kt=1;kt<ze.FullPaths.length;++kt)if(bt=ze.FullPaths[kt].slice(tt.length),xt=ze.FileIndex[kt],!(!xt.size||!xt.content||bt=="Sh33tJ5")){bt=bt.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(gt){return"_x"+gt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(gt){return"_u"+gt.charCodeAt(0).toString(16)+"_"});for(var Bt=xt.content,Dt=Ga&&Buffer.isBuffer(Bt)?Bt.toString("binary"):U(Bt),or=0,gr=Math.min(1024,Dt.length),kr=0,it=0;it<=gr;++it)(kr=Dt.charCodeAt(it))>=32&&kr<128&&++or;var We=or>=gr*4/5;$e.push(Ge),$e.push("Content-Location: "+(qe.root||"file:///C:/SheetJS/")+bt),$e.push("Content-Transfer-Encoding: "+(We?"quoted-printable":"base64")),$e.push("Content-Type: "+$t(xt,bt)),$e.push(""),$e.push(We?br(Dt):Sr(Dt))}return $e.push(Ge+`--\r
`),$e.join(`\r
`)}function ar(ze){var Ze={};return k(Ze,ze),Ze}function Wr(ze,Ze,qe,Ge){var $e=Ge&&Ge.unsafe;$e||k(ze);var tt=!$e&&ra.find(ze,Ze);if(!tt){var bt=ze.FullPaths[0];Ze.slice(0,bt.length)==bt?bt=Ze:(bt.slice(-1)!="/"&&(bt+="/"),bt=(bt+Ze).replace("//","/")),tt={name:n(Ze),type:2},ze.FileIndex.push(tt),ze.FullPaths.push(bt),$e||ra.utils.cfb_gc(ze)}return tt.content=qe,tt.size=qe?qe.length:0,Ge&&(Ge.CLSID&&(tt.clsid=Ge.CLSID),Ge.mt&&(tt.mt=Ge.mt),Ge.ct&&(tt.ct=Ge.ct)),tt}function Tt(ze,Ze){k(ze);var qe=ra.find(ze,Ze);if(qe){for(var Ge=0;Ge<ze.FileIndex.length;++Ge)if(ze.FileIndex[Ge]==qe)return ze.FileIndex.splice(Ge,1),ze.FullPaths.splice(Ge,1),!0}return!1}function Qt(ze,Ze,qe){k(ze);var Ge=ra.find(ze,Ze);if(Ge){for(var $e=0;$e<ze.FileIndex.length;++$e)if(ze.FileIndex[$e]==Ge)return ze.FileIndex[$e].name=n(qe),ze.FullPaths[$e]=qe,!0}return!1}function hr(ze){S(ze,!0)}return s.find=P,s.read=C,s.parse=l,s.write=V,s.writeFile=R,s.utils={cfb_new:ar,cfb_add:Wr,cfb_del:Tt,cfb_mov:Qt,cfb_gc:hr,ReadShift:x1,CheckField:NS,prep_blob:jo,bconcat:So,use_zlib:Q,_deflateRaw:Ot,_inflateRaw:zr,consts:L},s})();function XE(a){return typeof a=="string"?iv(a):Array.isArray(a)?_E(a):a}function sv(a,s,r){if(typeof Deno<"u"){if(r&&typeof s=="string")switch(r){case"utf8":s=new TextEncoder(r).encode(s);break;case"binary":s=iv(s);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(a,s)}var i=r=="utf8"?wf(s):s;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,a);if(typeof Blob<"u"){var n=new Blob([XE(i)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(n,a);if(typeof saveAs<"u")return saveAs(n,a);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var t=URL.createObjectURL(n);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(t)},6e4),chrome.downloads.download({url:t,filename:a,saveAs:!0});var c=document.createElement("a");if(c.download!=null)return c.download=a,c.href=t,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(t)},6e4),t}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var u=File(a);return u.open("w"),u.encoding="binary",Array.isArray(s)&&(s=oA(s)),u.write(s),u.close(),s}catch(f){if(!f.message||!f.message.match(/onstruct/))throw f}throw new Error("cannot save file "+a)}function ZE(a){if(typeof Deno<"u")return Deno.readFileSync(a);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(a);s.open("r"),s.encoding="binary";var r=s.read();return s.close(),r}catch(i){if(!i.message||!i.message.match(/onstruct/))throw i}throw new Error("Cannot access file "+a)}function Es(a){for(var s=Object.keys(a),r=[],i=0;i<s.length;++i)Object.prototype.hasOwnProperty.call(a,s[i])&&r.push(s[i]);return r}function Px(a,s){for(var r=[],i=Es(a),n=0;n!==i.length;++n)r[a[i[n]][s]]==null&&(r[a[i[n]][s]]=i[n]);return r}function by(a){for(var s=[],r=Es(a),i=0;i!==r.length;++i)s[a[r[i]]]=r[i];return s}function wy(a){for(var s=[],r=Es(a),i=0;i!==r.length;++i)s[a[r[i]]]=parseInt(r[i],10);return s}function JE(a){for(var s=[],r=Es(a),i=0;i!==r.length;++i)s[a[r[i]]]==null&&(s[a[r[i]]]=[]),s[a[r[i]]].push(r[i]);return s}var G2=new Date(1899,11,30,0,0,0);function Ao(a,s){var r=a.getTime(),i=G2.getTime()+(a.getTimezoneOffset()-G2.getTimezoneOffset())*6e4;return(r-i)/(1440*60*1e3)}var vS=new Date,qE=G2.getTime()+(vS.getTimezoneOffset()-G2.getTimezoneOffset())*6e4,Rx=vS.getTimezoneOffset();function _y(a){var s=new Date;return s.setTime(a*24*60*60*1e3+qE),s.getTimezoneOffset()!==Rx&&s.setTime(s.getTime()+(s.getTimezoneOffset()-Rx)*6e4),s}function eI(a){var s=0,r=0,i=!1,n=a.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+a+"| is not an ISO8601 Duration");for(var t=1;t!=n.length;++t)if(n[t]){switch(r=1,t>3&&(i=!0),n[t].slice(n[t].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[t].slice(n[t].length-1));case"D":r*=24;case"H":r*=60;case"M":if(i)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}s+=r*parseInt(n[t],10)}return s}var Ux=new Date("2017-02-19T19:06:09.000Z"),yS=isNaN(Ux.getFullYear())?new Date("2/19/17"):Ux,tI=yS.getFullYear()==2017;function qi(a,s){var r=new Date(a);if(tI)return s>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):s<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(a instanceof Date)return a;if(yS.getFullYear()==1917&&!isNaN(r.getFullYear())){var i=r.getFullYear();return a.indexOf(""+i)>-1||r.setFullYear(r.getFullYear()+100),r}var n=a.match(/\d+/g)||["2017","2","19","0","0","0"],t=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return a.indexOf("Z")>-1&&(t=new Date(t.getTime()-t.getTimezoneOffset()*60*1e3)),t}function M0(a,s){if(Ga&&Buffer.isBuffer(a)){if(s){if(a[0]==255&&a[1]==254)return wf(a.slice(2).toString("utf16le"));if(a[1]==254&&a[2]==255)return wf(sS(a.slice(2).toString("binary")))}return a.toString("binary")}if(typeof TextDecoder<"u")try{if(s){if(a[0]==255&&a[1]==254)return wf(new TextDecoder("utf-16le").decode(a.slice(2)));if(a[0]==254&&a[1]==255)return wf(new TextDecoder("utf-16be").decode(a.slice(2)))}var r={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(a)&&(a=new Uint8Array(a)),new TextDecoder("latin1").decode(a).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(t){return r[t]||t})}catch{}for(var i=[],n=0;n!=a.length;++n)i.push(String.fromCharCode(a[n]));return i.join("")}function Ui(a){if(typeof JSON<"u"&&!Array.isArray(a))return JSON.parse(JSON.stringify(a));if(typeof a!="object"||a==null)return a;if(a instanceof Date)return new Date(a.getTime());var s={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(s[r]=Ui(a[r]));return s}function Ss(a,s){for(var r="";r.length<s;)r+=a;return r}function Uc(a){var s=Number(a);if(!isNaN(s))return isFinite(s)?s:NaN;if(!/\d/.test(a))return s;var r=1,i=a.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(s=Number(i))||(i=i.replace(/[(](.*)[)]/,function(n,t){return r=-r,t}),!isNaN(s=Number(i)))?s/r:s}var rI=["january","february","march","april","may","june","july","august","september","october","november","december"];function Gm(a){var s=new Date(a),r=new Date(NaN),i=s.getYear(),n=s.getMonth(),t=s.getDate();if(isNaN(t))return r;var c=a.toLowerCase();if(c.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(c=c.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),c.length>3&&rI.indexOf(c)==-1)return r}else if(c.match(/[a-z]/))return r;return i<0||i>8099?r:(n>0||t>1)&&i!=101?s:a.match(/[^-0-9:,\/\\]/)?r:s}var nI=(function(){var a="abacaba".split(/(:?b)/i).length==5;return function(r,i,n){if(a||typeof i=="string")return r.split(i);for(var t=r.split(i),c=[t[0]],u=1;u<t.length;++u)c.push(n),c.push(t[u]);return c}})();function bS(a){return a?a.content&&a.type?M0(a.content,!0):a.data?c1(a.data):a.asNodeBuffer&&Ga?c1(a.asNodeBuffer().toString("binary")):a.asBinary?c1(a.asBinary()):a._data&&a._data.getContent?c1(M0(Array.prototype.slice.call(a._data.getContent(),0))):null:null}function wS(a){if(!a)return null;if(a.data)return kx(a.data);if(a.asNodeBuffer&&Ga)return a.asNodeBuffer();if(a._data&&a._data.getContent){var s=a._data.getContent();return typeof s=="string"?kx(s):Array.prototype.slice.call(s)}return a.content&&a.type?a.content:null}function aI(a){return a&&a.name.slice(-4)===".bin"?wS(a):bS(a)}function Wu(a,s){for(var r=a.FullPaths||Es(a.files),i=s.toLowerCase().replace(/[\/]/g,"\\"),n=i.replace(/\\/g,"/"),t=0;t<r.length;++t){var c=r[t].replace(/^Root Entry[\/]/,"").toLowerCase();if(i==c||n==c)return a.files?a.files[r[t]]:a.FileIndex[t]}return null}function f_(a,s){var r=Wu(a,s);if(r==null)throw new Error("Cannot find file "+s+" in zip");return r}function to(a,s,r){if(!r)return aI(f_(a,s));if(!s)return null;try{return to(a,s)}catch{return null}}function fu(a,s,r){if(!r)return bS(f_(a,s));if(!s)return null;try{return fu(a,s)}catch{return null}}function iI(a,s,r){return wS(f_(a,s))}function Nx(a){for(var s=a.FullPaths||Es(a.files),r=[],i=0;i<s.length;++i)s[i].slice(-1)!="/"&&r.push(s[i].replace(/^Root Entry[\/]/,""));return r.sort()}function Pa(a,s,r){if(a.FullPaths){if(typeof r=="string"){var i;return Ga?i=Ld(r):i=xE(r),ra.utils.cfb_add(a,s,i)}ra.utils.cfb_add(a,s,r)}else a.file(s,r)}function d_(){return ra.utils.cfb_new()}function _S(a,s){switch(s.type){case"base64":return ra.read(a,{type:"base64"});case"binary":return ra.read(a,{type:"binary"});case"buffer":case"array":return ra.read(a,{type:"buffer"})}throw new Error("Unrecognized type "+s.type)}function d1(a,s){if(a.charAt(0)=="/")return a.slice(1);var r=s.split("/");s.slice(-1)!="/"&&r.pop();for(var i=a.split("/");i.length!==0;){var n=i.shift();n===".."?r.pop():n!=="."&&r.push(n)}return r.join("/")}var Vs=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,sI=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,jx=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,oI=/<[^>]*>/g,ol=Vs.match(jx)?jx:oI,lI=/<\w*:/,uI=/<(\/?)\w+:/;function ma(a,s,r){for(var i={},n=0,t=0;n!==a.length&&!((t=a.charCodeAt(n))===32||t===10||t===13);++n);if(s||(i[0]=a.slice(0,n)),n===a.length)return i;var c=a.match(sI),u=0,f="",o=0,l="",g="",m=1;if(c)for(o=0;o!=c.length;++o){for(g=c[o],t=0;t!=g.length&&g.charCodeAt(t)!==61;++t);for(l=g.slice(0,t).trim();g.charCodeAt(t+1)==32;)++t;for(m=(n=g.charCodeAt(t+1))==34||n==39?1:0,f=g.slice(t+1+m,g.length-m),u=0;u!=l.length&&l.charCodeAt(u)!==58;++u);if(u===l.length)l.indexOf("_")>0&&(l=l.slice(0,l.indexOf("_"))),i[l]=f,i[l.toLowerCase()]=f;else{var p=(u===5&&l.slice(0,5)==="xmlns"?"xmlns":"")+l.slice(u+1);if(i[p]&&l.slice(u-3,u)=="ext")continue;i[p]=f,i[p.toLowerCase()]=f}}return i}function Tf(a){return a.replace(uI,"<$1")}var xS={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},h_=by(xS),hi=(function(){var a=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,s=/_x([\da-fA-F]{4})_/ig;return function r(i){var n=i+"",t=n.indexOf("<![CDATA[");if(t==-1)return n.replace(a,function(u,f){return xS[u]||String.fromCharCode(parseInt(f,u.indexOf("x")>-1?16:10))||u}).replace(s,function(u,f){return String.fromCharCode(parseInt(f,16))});var c=n.indexOf("]]>");return r(n.slice(0,t))+n.slice(t+9,c)+r(n.slice(c+3))}})(),A_=/[&<>'"]/g,cI=/[\u0000-\u0008\u000b-\u001f]/g;function Ii(a){var s=a+"";return s.replace(A_,function(r){return h_[r]}).replace(cI,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Hx(a){return Ii(a).replace(/ /g,"_x0020_")}var CS=/[\u0000-\u001f]/g;function p_(a){var s=a+"";return s.replace(A_,function(r){return h_[r]}).replace(/\n/g,"<br/>").replace(CS,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function fI(a){var s=a+"";return s.replace(A_,function(r){return h_[r]}).replace(CS,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var Qx=(function(){var a=/&#(\d+);/g;function s(r,i){return String.fromCharCode(parseInt(i,10))}return function(i){return i.replace(a,s)}})();function dI(a){return a.replace(/(\r\n|[\r\n])/g,"&#10;")}function Ji(a){switch(a){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function wb(a){for(var s="",r=0,i=0,n=0,t=0,c=0,u=0;r<a.length;){if(i=a.charCodeAt(r++),i<128){s+=String.fromCharCode(i);continue}if(n=a.charCodeAt(r++),i>191&&i<224){c=(i&31)<<6,c|=n&63,s+=String.fromCharCode(c);continue}if(t=a.charCodeAt(r++),i<240){s+=String.fromCharCode((i&15)<<12|(n&63)<<6|t&63);continue}c=a.charCodeAt(r++),u=((i&7)<<18|(n&63)<<12|(t&63)<<6|c&63)-65536,s+=String.fromCharCode(55296+(u>>>10&1023)),s+=String.fromCharCode(56320+(u&1023))}return s}function zx(a){var s=eA(2*a.length),r,i,n=1,t=0,c=0,u;for(i=0;i<a.length;i+=n)n=1,(u=a.charCodeAt(i))<128?r=u:u<224?(r=(u&31)*64+(a.charCodeAt(i+1)&63),n=2):u<240?(r=(u&15)*4096+(a.charCodeAt(i+1)&63)*64+(a.charCodeAt(i+2)&63),n=3):(n=4,r=(u&7)*262144+(a.charCodeAt(i+1)&63)*4096+(a.charCodeAt(i+2)&63)*64+(a.charCodeAt(i+3)&63),r-=65536,c=55296+(r>>>10&1023),r=56320+(r&1023)),c!==0&&(s[t++]=c&255,s[t++]=c>>>8,c=0),s[t++]=r%256,s[t++]=r>>>8;return s.slice(0,t).toString("ucs2")}function Vx(a){return Ld(a,"binary").toString("utf8")}var $v="foo bar bazâð£",Mi=Ga&&(Vx($v)==wb($v)&&Vx||zx($v)==wb($v)&&zx)||wb,wf=Ga?function(a){return Ld(a,"utf8").toString("binary")}:function(a){for(var s=[],r=0,i=0,n=0;r<a.length;)switch(i=a.charCodeAt(r++),!0){case i<128:s.push(String.fromCharCode(i));break;case i<2048:s.push(String.fromCharCode(192+(i>>6))),s.push(String.fromCharCode(128+(i&63)));break;case(i>=55296&&i<57344):i-=55296,n=a.charCodeAt(r++)-56320+(i<<10),s.push(String.fromCharCode(240+(n>>18&7))),s.push(String.fromCharCode(144+(n>>12&63))),s.push(String.fromCharCode(128+(n>>6&63))),s.push(String.fromCharCode(128+(n&63)));break;default:s.push(String.fromCharCode(224+(i>>12))),s.push(String.fromCharCode(128+(i>>6&63))),s.push(String.fromCharCode(128+(i&63)))}return s.join("")},H1=(function(){var a={};return function(r,i){var n=r+"|"+(i||"");return a[n]?a[n]:a[n]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",i||"")}})(),SS=(function(){var a=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(s){return[new RegExp("&"+s[0]+";","ig"),s[1]]});return function(r){for(var i=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<a.length;++n)i=i.replace(a[n][0],a[n][1]);return i}})(),hI=(function(){var a={};return function(r){return a[r]!==void 0?a[r]:a[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}})(),AI=/<\/?(?:vt:)?variant>/g,pI=/<(?:vt:)([^>]*)>([\s\S]*)</;function Wx(a,s){var r=ma(a),i=a.match(hI(r.baseType))||[],n=[];if(i.length!=r.size){if(s.WTF)throw new Error("unexpected vector length "+i.length+" != "+r.size);return n}return i.forEach(function(t){var c=t.replace(AI,"").match(pI);c&&n.push({v:Mi(c[2]),t:c[1]})}),n}var kS=/(^\s|\s$|\n)/;function Ho(a,s){return"<"+a+(s.match(kS)?' xml:space="preserve"':"")+">"+s+"</"+a+">"}function Q1(a){return Es(a).map(function(s){return" "+s+'="'+a[s]+'"'}).join("")}function An(a,s,r){return"<"+a+(r!=null?Q1(r):"")+(s!=null?(s.match(kS)?' xml:space="preserve"':"")+">"+s+"</"+a:"/")+">"}function dw(a,s){try{return a.toISOString().replace(/\.\d*/,"")}catch(r){if(s)throw r}return""}function mI(a,s){switch(typeof a){case"string":var r=An("vt:lpwstr",Ii(a));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return An((a|0)==a?"vt:i4":"vt:r8",Ii(String(a)));case"boolean":return An("vt:bool",a?"true":"false")}if(a instanceof Date)return An("vt:filetime",dw(a));throw new Error("Unable to serialize "+a)}function m_(a){if(Ga&&Buffer.isBuffer(a))return a.toString("utf8");if(typeof a=="string")return a;if(typeof Uint8Array<"u"&&a instanceof Uint8Array)return Mi(oA(l_(a)));throw new Error("Bad input format: expected Buffer or string")}var z1=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,ho={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},H0=["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"],lu={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function gI(a,s){for(var r=1-2*(a[s+7]>>>7),i=((a[s+7]&127)<<4)+(a[s+6]>>>4&15),n=a[s+6]&15,t=5;t>=0;--t)n=n*256+a[s+t];return i==2047?n==0?r*(1/0):NaN:(i==0?i=-1022:(i-=1023,n+=Math.pow(2,52)),r*Math.pow(2,i-52)*n)}function vI(a,s,r){var i=(s<0||1/s==-1/0?1:0)<<7,n=0,t=0,c=i?-s:s;isFinite(c)?c==0?n=t=0:(n=Math.floor(Math.log(c)/Math.LN2),t=c*Math.pow(2,52-n),n<=-1023&&(!isFinite(t)||t<Math.pow(2,52))?n=-1022:(t-=Math.pow(2,52),n+=1023)):(n=2047,t=isNaN(s)?26985:0);for(var u=0;u<=5;++u,t/=256)a[r+u]=t&255;a[r+6]=(n&15)<<4|t&15,a[r+7]=n>>4|i}var Gx=function(a){for(var s=[],r=10240,i=0;i<a[0].length;++i)if(a[0][i])for(var n=0,t=a[0][i].length;n<t;n+=r)s.push.apply(s,a[0][i].slice(n,n+r));return s},$x=Ga?function(a){return a[0].length>0&&Buffer.isBuffer(a[0][0])?Buffer.concat(a[0].map(function(s){return Buffer.isBuffer(s)?s:Ld(s)})):Gx(a)}:Gx,Kx=function(a,s,r){for(var i=[],n=s;n<r;n+=2)i.push(String.fromCharCode(Td(a,n)));return i.join("").replace(Sl,"")},g_=Ga?function(a,s,r){return Buffer.isBuffer(a)?a.toString("utf16le",s,r).replace(Sl,""):Kx(a,s,r)}:Kx,Yx=function(a,s,r){for(var i=[],n=s;n<s+r;++n)i.push(("0"+a[n].toString(16)).slice(-2));return i.join("")},TS=Ga?function(a,s,r){return Buffer.isBuffer(a)?a.toString("hex",s,s+r):Yx(a,s,r)}:Yx,Xx=function(a,s,r){for(var i=[],n=s;n<r;n++)i.push(String.fromCharCode(Em(a,n)));return i.join("")},ov=Ga?function(s,r,i){return Buffer.isBuffer(s)?s.toString("utf8",r,i):Xx(s,r,i)}:Xx,ES=function(a,s){var r=uu(a,s);return r>0?ov(a,s+4,s+4+r-1):""},IS=ES,BS=function(a,s){var r=uu(a,s);return r>0?ov(a,s+4,s+4+r-1):""},FS=BS,MS=function(a,s){var r=2*uu(a,s);return r>0?ov(a,s+4,s+4+r-1):""},DS=MS,OS=function(s,r){var i=uu(s,r);return i>0?g_(s,r+4,r+4+i):""},LS=OS,PS=function(a,s){var r=uu(a,s);return r>0?ov(a,s+4,s+4+r):""},RS=PS,US=function(a,s){return gI(a,s)},$2=US,v_=function(s){return Array.isArray(s)||typeof Uint8Array<"u"&&s instanceof Uint8Array};Ga&&(IS=function(s,r){if(!Buffer.isBuffer(s))return ES(s,r);var i=s.readUInt32LE(r);return i>0?s.toString("utf8",r+4,r+4+i-1):""},FS=function(s,r){if(!Buffer.isBuffer(s))return BS(s,r);var i=s.readUInt32LE(r);return i>0?s.toString("utf8",r+4,r+4+i-1):""},DS=function(s,r){if(!Buffer.isBuffer(s))return MS(s,r);var i=2*s.readUInt32LE(r);return s.toString("utf16le",r+4,r+4+i-1)},LS=function(s,r){if(!Buffer.isBuffer(s))return OS(s,r);var i=s.readUInt32LE(r);return s.toString("utf16le",r+4,r+4+i)},RS=function(s,r){if(!Buffer.isBuffer(s))return PS(s,r);var i=s.readUInt32LE(r);return s.toString("utf8",r+4,r+4+i)},$2=function(s,r){return Buffer.isBuffer(s)?s.readDoubleLE(r):US(s,r)},v_=function(s){return Buffer.isBuffer(s)||Array.isArray(s)||typeof Uint8Array<"u"&&s instanceof Uint8Array});var Em=function(a,s){return a[s]},Td=function(a,s){return a[s+1]*256+a[s]},yI=function(a,s){var r=a[s+1]*256+a[s];return r<32768?r:(65535-r+1)*-1},uu=function(a,s){return a[s+3]*(1<<24)+(a[s+2]<<16)+(a[s+1]<<8)+a[s]},g0=function(a,s){return a[s+3]<<24|a[s+2]<<16|a[s+1]<<8|a[s]},bI=function(a,s){return a[s]<<24|a[s+1]<<16|a[s+2]<<8|a[s+3]};function x1(a,s){var r="",i,n,t=[],c,u,f,o;switch(s){case"dbcs":if(o=this.l,Ga&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*a).toString("utf16le");else for(f=0;f<a;++f)r+=String.fromCharCode(Td(this,o)),o+=2;a*=2;break;case"utf8":r=ov(this,this.l,this.l+a);break;case"utf16le":a*=2,r=g_(this,this.l,this.l+a);break;case"wstr":return x1.call(this,a,"dbcs");case"lpstr-ansi":r=IS(this,this.l),a=4+uu(this,this.l);break;case"lpstr-cp":r=FS(this,this.l),a=4+uu(this,this.l);break;case"lpwstr":r=DS(this,this.l),a=4+2*uu(this,this.l);break;case"lpp4":a=4+uu(this,this.l),r=LS(this,this.l),a&2&&(a+=2);break;case"8lpp4":a=4+uu(this,this.l),r=RS(this,this.l),a&3&&(a+=4-(a&3));break;case"cstr":for(a=0,r="";(c=Em(this,this.l+a++))!==0;)t.push(Gv(c));r=t.join("");break;case"_wstr":for(a=0,r="";(c=Td(this,this.l+a))!==0;)t.push(Gv(c)),a+=2;a+=2,r=t.join("");break;case"dbcs-cont":for(r="",o=this.l,f=0;f<a;++f){if(this.lens&&this.lens.indexOf(o)!==-1)return c=Em(this,o),this.l=o+1,u=x1.call(this,a-f,c?"dbcs-cont":"sbcs-cont"),t.join("")+u;t.push(Gv(Td(this,o))),o+=2}r=t.join(""),a*=2;break;case"cpstr":case"sbcs-cont":for(r="",o=this.l,f=0;f!=a;++f){if(this.lens&&this.lens.indexOf(o)!==-1)return c=Em(this,o),this.l=o+1,u=x1.call(this,a-f,c?"dbcs-cont":"sbcs-cont"),t.join("")+u;t.push(Gv(Em(this,o))),o+=1}r=t.join("");break;default:switch(a){case 1:return i=Em(this,this.l),this.l++,i;case 2:return i=(s==="i"?yI:Td)(this,this.l),this.l+=2,i;case 4:case-4:return s==="i"||(this[this.l+3]&128)===0?(i=(a>0?g0:bI)(this,this.l),this.l+=4,i):(n=uu(this,this.l),this.l+=4,n);case 8:case-8:if(s==="f")return a==8?n=$2(this,this.l):n=$2([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;a=8;case 16:r=TS(this,this.l,a);break}}return this.l+=a,r}var wI=function(a,s,r){a[r]=s&255,a[r+1]=s>>>8&255,a[r+2]=s>>>16&255,a[r+3]=s>>>24&255},_I=function(a,s,r){a[r]=s&255,a[r+1]=s>>8&255,a[r+2]=s>>16&255,a[r+3]=s>>24&255},xI=function(a,s,r){a[r]=s&255,a[r+1]=s>>>8&255};function CI(a,s,r){var i=0,n=0;if(r==="dbcs"){for(n=0;n!=s.length;++n)xI(this,s.charCodeAt(n),this.l+2*n);i=2*s.length}else if(r==="sbcs"){for(s=s.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=s.length;++n)this[this.l+n]=s.charCodeAt(n)&255;i=s.length}else if(r==="hex"){for(;n<a;++n)this[this.l++]=parseInt(s.slice(2*n,2*n+2),16)||0;return this}else if(r==="utf16le"){var t=Math.min(this.l+a,this.length);for(n=0;n<Math.min(s.length,a);++n){var c=s.charCodeAt(n);this[this.l++]=c&255,this[this.l++]=c>>8}for(;this.l<t;)this[this.l++]=0;return this}else switch(a){case 1:i=1,this[this.l]=s&255;break;case 2:i=2,this[this.l]=s&255,s>>>=8,this[this.l+1]=s&255;break;case 3:i=3,this[this.l]=s&255,s>>>=8,this[this.l+1]=s&255,s>>>=8,this[this.l+2]=s&255;break;case 4:i=4,wI(this,s,this.l);break;case 8:if(i=8,r==="f"){vI(this,s,this.l);break}case 16:break;case-4:i=4,_I(this,s,this.l);break}return this.l+=i,this}function NS(a,s){var r=TS(this,this.l,a.length>>1);if(r!==a)throw new Error(s+"Expected "+a+" saw "+r);this.l+=a.length>>1}function jo(a,s){a.l=s,a.read_shift=x1,a.chk=NS,a.write_shift=CI}function sl(a,s){a.l+=s}function Er(a){var s=eA(a);return jo(s,0),s}function Pd(a,s,r){if(a){var i,n,t;jo(a,a.l||0);for(var c=a.length,u=0,f=0;a.l<c;){u=a.read_shift(1),u&128&&(u=(u&127)+((a.read_shift(1)&127)<<7));var o=Y1[u]||Y1[65535];for(i=a.read_shift(1),t=i&127,n=1;n<4&&i&128;++n)t+=((i=a.read_shift(1))&127)<<7*n;f=a.l+t;var l=o.f&&o.f(a,t,r);if(a.l=f,s(l,o,u))return}}}function Wl(){var a=[],s=Ga?256:2048,r=function(o){var l=Er(o);return jo(l,0),l},i=r(s),n=function(){i&&(i.length>i.l&&(i=i.slice(0,i.l),i.l=i.length),i.length>0&&a.push(i),i=null)},t=function(o){return i&&o<i.length-i.l?i:(n(),i=r(Math.max(o+1,s)))},c=function(){return n(),So(a)},u=function(o){n(),i=o,i.l==null&&(i.l=i.length),t(s)};return{next:t,push:u,end:c,_bufs:a}}function Vr(a,s,r,i){var n=+s,t;if(!isNaN(n)){i||(i=Y1[n].p||(r||[]).length||0),t=1+(n>=128?1:0)+1,i>=128&&++t,i>=16384&&++t,i>=2097152&&++t;var c=a.next(t);n<=127?c.write_shift(1,n):(c.write_shift(1,(n&127)+128),c.write_shift(1,n>>7));for(var u=0;u!=4;++u)if(i>=128)c.write_shift(1,(i&127)+128),i>>=7;else{c.write_shift(1,i);break}i>0&&v_(r)&&a.push(r)}}function C1(a,s,r){var i=Ui(a);if(s.s?(i.cRel&&(i.c+=s.s.c),i.rRel&&(i.r+=s.s.r)):(i.cRel&&(i.c+=s.c),i.rRel&&(i.r+=s.r)),!r||r.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function Zx(a,s,r){var i=Ui(a);return i.s=C1(i.s,s.s,r),i.e=C1(i.e,s.s,r),i}function S1(a,s){if(a.cRel&&a.c<0)for(a=Ui(a);a.c<0;)a.c+=s>8?16384:256;if(a.rRel&&a.r<0)for(a=Ui(a);a.r<0;)a.r+=s>8?1048576:s>5?65536:16384;var r=da(a);return!a.cRel&&a.cRel!=null&&(r=TI(r)),!a.rRel&&a.rRel!=null&&(r=SI(r)),r}function _b(a,s){return a.s.r==0&&!a.s.rRel&&a.e.r==(s.biff>=12?1048575:s.biff>=8?65536:16384)&&!a.e.rRel?(a.s.cRel?"":"$")+As(a.s.c)+":"+(a.e.cRel?"":"$")+As(a.e.c):a.s.c==0&&!a.s.cRel&&a.e.c==(s.biff>=12?16383:255)&&!a.e.cRel?(a.s.rRel?"":"$")+zs(a.s.r)+":"+(a.e.rRel?"":"$")+zs(a.e.r):S1(a.s,s.biff)+":"+S1(a.e,s.biff)}function y_(a){return parseInt(kI(a),10)-1}function zs(a){return""+(a+1)}function SI(a){return a.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function kI(a){return a.replace(/\$(\d+)$/,"$1")}function b_(a){for(var s=EI(a),r=0,i=0;i!==s.length;++i)r=26*r+s.charCodeAt(i)-64;return r-1}function As(a){if(a<0)throw new Error("invalid column "+a);var s="";for(++a;a;a=Math.floor((a-1)/26))s=String.fromCharCode((a-1)%26+65)+s;return s}function TI(a){return a.replace(/^([A-Z])/,"$$$1")}function EI(a){return a.replace(/^\$([A-Z])/,"$1")}function II(a){return a.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ps(a){for(var s=0,r=0,i=0;i<a.length;++i){var n=a.charCodeAt(i);n>=48&&n<=57?s=10*s+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:s-1}}function da(a){for(var s=a.c+1,r="";s;s=(s-1)/26|0)r=String.fromCharCode((s-1)%26+65)+r;return r+(a.r+1)}function Gl(a){var s=a.indexOf(":");return s==-1?{s:ps(a),e:ps(a)}:{s:ps(a.slice(0,s)),e:ps(a.slice(s+1))}}function Ma(a,s){return typeof s>"u"||typeof s=="number"?Ma(a.s,a.e):(typeof a!="string"&&(a=da(a)),typeof s!="string"&&(s=da(s)),a==s?a:a+":"+s)}function mi(a){var s={s:{c:0,r:0},e:{c:0,r:0}},r=0,i=0,n=0,t=a.length;for(r=0;i<t&&!((n=a.charCodeAt(i)-64)<1||n>26);++i)r=26*r+n;for(s.s.c=--r,r=0;i<t&&!((n=a.charCodeAt(i)-48)<0||n>9);++i)r=10*r+n;if(s.s.r=--r,i===t||n!=10)return s.e.c=s.s.c,s.e.r=s.s.r,s;for(++i,r=0;i!=t&&!((n=a.charCodeAt(i)-64)<1||n>26);++i)r=26*r+n;for(s.e.c=--r,r=0;i!=t&&!((n=a.charCodeAt(i)-48)<0||n>9);++i)r=10*r+n;return s.e.r=--r,s}function Jx(a,s){var r=a.t=="d"&&s instanceof Date;if(a.z!=null)try{return a.w=tc(a.z,r?Ao(s):s)}catch{}try{return a.w=tc((a.XF||{}).numFmtId||(r?14:0),r?Ao(s):s)}catch{return""+s}}function Md(a,s,r){return a==null||a.t==null||a.t=="z"?"":a.w!==void 0?a.w:(a.t=="d"&&!a.z&&r&&r.dateNF&&(a.z=r.dateNF),a.t=="e"?Rd[a.v]||a.v:s==null?Jx(a,a.v):Jx(a,s))}function lA(a,s){var r=s&&s.sheet?s.sheet:"Sheet1",i={};return i[r]=a,{SheetNames:[r],Sheets:i}}function jS(a,s,r){var i=r||{},n=a?Array.isArray(a):i.dense,t=a||(n?[]:{}),c=0,u=0;if(t&&i.origin!=null){if(typeof i.origin=="number")c=i.origin;else{var f=typeof i.origin=="string"?ps(i.origin):i.origin;c=f.r,u=f.c}t["!ref"]||(t["!ref"]="A1:A1")}var o={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(t["!ref"]){var l=mi(t["!ref"]);o.s.c=l.s.c,o.s.r=l.s.r,o.e.c=Math.max(o.e.c,l.e.c),o.e.r=Math.max(o.e.r,l.e.r),c==-1&&(o.e.r=c=l.e.r+1)}for(var g=0;g!=s.length;++g)if(s[g]){if(!Array.isArray(s[g]))throw new Error("aoa_to_sheet expects an array of arrays");for(var m=0;m!=s[g].length;++m)if(!(typeof s[g][m]>"u")){var p={v:s[g][m]},_=c+g,y=u+m;if(o.s.r>_&&(o.s.r=_),o.s.c>y&&(o.s.c=y),o.e.r<_&&(o.e.r=_),o.e.c<y&&(o.e.c=y),s[g][m]&&typeof s[g][m]=="object"&&!Array.isArray(s[g][m])&&!(s[g][m]instanceof Date))p=s[g][m];else if(Array.isArray(p.v)&&(p.f=s[g][m][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(i.nullError)p.t="e",p.v=0;else if(i.sheetStubs)p.t="z";else continue;else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=i.dateNF||fa[14],i.cellDates?(p.t="d",p.w=tc(p.z,Ao(p.v))):(p.t="n",p.v=Ao(p.v),p.w=tc(p.z,p.v))):p.t="s";if(n)t[_]||(t[_]=[]),t[_][y]&&t[_][y].z&&(p.z=t[_][y].z),t[_][y]=p;else{var h=da({c:y,r:_});t[h]&&t[h].z&&(p.z=t[h].z),t[h]=p}}}return o.s.c<1e7&&(t["!ref"]=Ma(o)),t}function eg(a,s){return jS(null,a,s)}function BI(a){return a.read_shift(4,"i")}function Nc(a,s){return s||(s=Er(4)),s.write_shift(4,a),s}function al(a){var s=a.read_shift(4);return s===0?"":a.read_shift(s,"dbcs")}function ko(a,s){var r=!1;return s==null&&(r=!0,s=Er(4+2*a.length)),s.write_shift(4,a.length),a.length>0&&s.write_shift(0,a,"dbcs"),r?s.slice(0,s.l):s}function FI(a){return{ich:a.read_shift(2),ifnt:a.read_shift(2)}}function MI(a,s){return s||(s=Er(4)),s.write_shift(2,0),s.write_shift(2,0),s}function w_(a,s){var r=a.l,i=a.read_shift(1),n=al(a),t=[],c={t:n,h:n};if((i&1)!==0){for(var u=a.read_shift(4),f=0;f!=u;++f)t.push(FI(a));c.r=t}else c.r=[{ich:0,ifnt:0}];return a.l=r+s,c}function DI(a,s){var r=!1;return s==null&&(r=!0,s=Er(15+4*a.t.length)),s.write_shift(1,0),ko(a.t,s),r?s.slice(0,s.l):s}var OI=w_;function LI(a,s){var r=!1;return s==null&&(r=!0,s=Er(23+4*a.t.length)),s.write_shift(1,1),ko(a.t,s),s.write_shift(4,1),MI({},s),r?s.slice(0,s.l):s}function rc(a){var s=a.read_shift(4),r=a.read_shift(2);return r+=a.read_shift(1)<<16,a.l++,{c:s,iStyleRef:r}}function Q0(a,s){return s==null&&(s=Er(8)),s.write_shift(-4,a.c),s.write_shift(3,a.iStyleRef||a.s),s.write_shift(1,0),s}function z0(a){var s=a.read_shift(2);return s+=a.read_shift(1)<<16,a.l++,{c:-1,iStyleRef:s}}function V0(a,s){return s==null&&(s=Er(4)),s.write_shift(3,a.iStyleRef||a.s),s.write_shift(1,0),s}var PI=al,HS=ko;function __(a){var s=a.read_shift(4);return s===0||s===4294967295?"":a.read_shift(s,"dbcs")}function K2(a,s){var r=!1;return s==null&&(r=!0,s=Er(127)),s.write_shift(4,a.length>0?a.length:4294967295),a.length>0&&s.write_shift(0,a,"dbcs"),r?s.slice(0,s.l):s}var RI=al,hw=__,x_=K2;function C_(a){var s=a.slice(a.l,a.l+4),r=s[0]&1,i=s[0]&2;a.l+=4;var n=i===0?$2([0,0,0,0,s[0]&252,s[1],s[2],s[3]],0):g0(s,0)>>2;return r?n/100:n}function QS(a,s){s==null&&(s=Er(4));var r=0,i=0,n=a*100;if(a==(a|0)&&a>=-536870912&&a<1<<29?i=1:n==(n|0)&&n>=-536870912&&n<1<<29&&(i=1,r=1),i)s.write_shift(-4,((r?n:a)<<2)+(r+2));else throw new Error("unsupported RkNumber "+a)}function zS(a){var s={s:{},e:{}};return s.s.r=a.read_shift(4),s.e.r=a.read_shift(4),s.s.c=a.read_shift(4),s.e.c=a.read_shift(4),s}function UI(a,s){return s||(s=Er(16)),s.write_shift(4,a.s.r),s.write_shift(4,a.e.r),s.write_shift(4,a.s.c),s.write_shift(4,a.e.c),s}var W0=zS,tg=UI;function nl(a){if(a.length-a.l<8)throw"XLS Xnum Buffer underflow";return a.read_shift(8,"f")}function D0(a,s){return(s||Er(8)).write_shift(8,a,"f")}function NI(a){var s={},r=a.read_shift(1),i=r>>>1,n=a.read_shift(1),t=a.read_shift(2,"i"),c=a.read_shift(1),u=a.read_shift(1),f=a.read_shift(1);switch(a.l++,i){case 0:s.auto=1;break;case 1:s.index=n;var o=x0[n];o&&(s.rgb=W1(o));break;case 2:s.rgb=W1([c,u,f]);break;case 3:s.theme=n;break}return t!=0&&(s.tint=t>0?t/32767:t/32768),s}function Y2(a,s){if(s||(s=Er(8)),!a||a.auto)return s.write_shift(4,0),s.write_shift(4,0),s;a.index!=null?(s.write_shift(1,2),s.write_shift(1,a.index)):a.theme!=null?(s.write_shift(1,6),s.write_shift(1,a.theme)):(s.write_shift(1,5),s.write_shift(1,0));var r=a.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),s.write_shift(2,r),!a.rgb||a.theme!=null)s.write_shift(2,0),s.write_shift(1,0),s.write_shift(1,0);else{var i=a.rgb||"FFFFFF";typeof i=="number"&&(i=("000000"+i.toString(16)).slice(-6)),s.write_shift(1,parseInt(i.slice(0,2),16)),s.write_shift(1,parseInt(i.slice(2,4),16)),s.write_shift(1,parseInt(i.slice(4,6),16)),s.write_shift(1,255)}return s}function jI(a){var s=a.read_shift(1);a.l++;var r={fBold:s&1,fItalic:s&2,fUnderline:s&4,fStrikeout:s&8,fOutline:s&16,fShadow:s&32,fCondense:s&64,fExtend:s&128};return r}function HI(a,s){s||(s=Er(2));var r=(a.italic?2:0)|(a.strike?8:0)|(a.outline?16:0)|(a.shadow?32:0)|(a.condense?64:0)|(a.extend?128:0);return s.write_shift(1,r),s.write_shift(1,0),s}function VS(a,s){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},i=a.read_shift(4);switch(i){case 0:return"";case 4294967295:case 4294967294:return r[a.read_shift(4)]||""}if(i>400)throw new Error("Unsupported Clipboard: "+i.toString(16));return a.l-=4,a.read_shift(0,s==1?"lpstr":"lpwstr")}function QI(a){return VS(a,1)}function zI(a){return VS(a,2)}var S_=2,Ql=3,Kv=11,qx=12,X2=19,Yv=64,VI=65,WI=71,GI=4108,$I=4126,Co=80,WS=81,KI=[Co,WS],Aw={1:{n:"CodePage",t:S_},2:{n:"Category",t:Co},3:{n:"PresentationFormat",t:Co},4:{n:"ByteCount",t:Ql},5:{n:"LineCount",t:Ql},6:{n:"ParagraphCount",t:Ql},7:{n:"SlideCount",t:Ql},8:{n:"NoteCount",t:Ql},9:{n:"HiddenCount",t:Ql},10:{n:"MultimediaClipCount",t:Ql},11:{n:"ScaleCrop",t:Kv},12:{n:"HeadingPairs",t:GI},13:{n:"TitlesOfParts",t:$I},14:{n:"Manager",t:Co},15:{n:"Company",t:Co},16:{n:"LinksUpToDate",t:Kv},17:{n:"CharacterCount",t:Ql},19:{n:"SharedDoc",t:Kv},22:{n:"HyperlinksChanged",t:Kv},23:{n:"AppVersion",t:Ql,p:"version"},24:{n:"DigSig",t:VI},26:{n:"ContentType",t:Co},27:{n:"ContentStatus",t:Co},28:{n:"Language",t:Co},29:{n:"Version",t:Co},255:{},2147483648:{n:"Locale",t:X2},2147483651:{n:"Behavior",t:X2},1919054434:{}},pw={1:{n:"CodePage",t:S_},2:{n:"Title",t:Co},3:{n:"Subject",t:Co},4:{n:"Author",t:Co},5:{n:"Keywords",t:Co},6:{n:"Comments",t:Co},7:{n:"Template",t:Co},8:{n:"LastAuthor",t:Co},9:{n:"RevNumber",t:Co},10:{n:"EditTime",t:Yv},11:{n:"LastPrinted",t:Yv},12:{n:"CreatedDate",t:Yv},13:{n:"ModifiedDate",t:Yv},14:{n:"PageCount",t:Ql},15:{n:"WordCount",t:Ql},16:{n:"CharCount",t:Ql},17:{n:"Thumbnail",t:WI},18:{n:"Application",t:Co},19:{n:"DocSecurity",t:Ql},255:{},2147483648:{n:"Locale",t:X2},2147483651:{n:"Behavior",t:X2},1919054434:{}},e4={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"},YI=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function XI(a){return a.map(function(s){return[s>>16&255,s>>8&255,s&255]})}var ZI=XI([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]),x0=Ui(ZI),Rd={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},GS={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},mw={"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"},Xv={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 k_(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function JI(a){var s=k_();if(!a||!a.match)return s;var r={};if((a.match(ol)||[]).forEach(function(i){var n=ma(i);switch(n[0].replace(lI,"<")){case"<?xml":break;case"<Types":s.xmlns=n["xmlns"+(n[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[n.Extension]=n.ContentType;break;case"<Override":s[mw[n.ContentType]]!==void 0&&s[mw[n.ContentType]].push(n.PartName);break}}),s.xmlns!==ho.CT)throw new Error("Unknown Namespace: "+s.xmlns);return s.calcchain=s.calcchains.length>0?s.calcchains[0]:"",s.sst=s.strs.length>0?s.strs[0]:"",s.style=s.styles.length>0?s.styles[0]:"",s.defaults=r,delete s.calcchains,s}function $S(a,s){var r=JE(mw),i=[],n;i[i.length]=Vs,i[i.length]=An("Types",null,{xmlns:ho.CT,"xmlns:xsd":ho.xsd,"xmlns:xsi":ho.xsi}),i=i.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(f){return An("Default",null,{Extension:f[0],ContentType:f[1]})}));var t=function(f){a[f]&&a[f].length>0&&(n=a[f][0],i[i.length]=An("Override",null,{PartName:(n[0]=="/"?"":"/")+n,ContentType:Xv[f][s.bookType]||Xv[f].xlsx}))},c=function(f){(a[f]||[]).forEach(function(o){i[i.length]=An("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:Xv[f][s.bookType]||Xv[f].xlsx})})},u=function(f){(a[f]||[]).forEach(function(o){i[i.length]=An("Override",null,{PartName:(o[0]=="/"?"":"/")+o,ContentType:r[f][0]})})};return t("workbooks"),c("sheets"),c("charts"),u("themes"),["strs","styles"].forEach(t),["coreprops","extprops","custprops"].forEach(u),u("vba"),u("comments"),u("threadedcomments"),u("drawings"),c("metadata"),u("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var Ya={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 V1(a){var s=a.lastIndexOf("/");return a.slice(0,s+1)+"_rels/"+a.slice(s+1)+".rels"}function k1(a,s){var r={"!id":{}};if(!a)return r;s.charAt(0)!=="/"&&(s="/"+s);var i={};return(a.match(ol)||[]).forEach(function(n){var t=ma(n);if(t[0]==="<Relationship"){var c={};c.Type=t.Type,c.Target=t.Target,c.Id=t.Id,t.TargetMode&&(c.TargetMode=t.TargetMode);var u=t.TargetMode==="External"?t.Target:d1(t.Target,s);r[u]=c,i[t.Id]=c}}),r["!id"]=i,r}function Nm(a){var s=[Vs,An("Relationships",null,{xmlns:ho.RELS})];return Es(a["!id"]).forEach(function(r){s[s.length]=An("Relationship",null,a["!id"][r])}),s.length>2&&(s[s.length]="</Relationships>",s[1]=s[1].replace("/>",">")),s.join("")}function Ei(a,s,r,i,n,t){if(n||(n={}),a["!id"]||(a["!id"]={}),a["!idx"]||(a["!idx"]=1),s<0)for(s=a["!idx"];a["!id"]["rId"+s];++s);if(a["!idx"]=s+1,n.Id="rId"+s,n.Type=i,n.Target=r,[Ya.HLINK,Ya.XPATH,Ya.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),a["!id"][n.Id])throw new Error("Cannot rewrite rId "+s);return a["!id"][n.Id]=n,a[("/"+n.Target).replace("//","/")]=n,s}var qI="application/vnd.oasis.opendocument.spreadsheet";function eB(a,s){for(var r=m_(a),i,n;i=z1.exec(r);)switch(i[3]){case"manifest":break;case"file-entry":if(n=ma(i[0],!1),n.path=="/"&&n.type!==qI)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(s&&s.WTF)throw i}}function tB(a){var s=[Vs];s.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),s.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var r=0;r<a.length;++r)s.push('  <manifest:file-entry manifest:full-path="'+a[r][0]+'" manifest:media-type="'+a[r][1]+`"/>
`);return s.push("</manifest:manifest>"),s.join("")}function t4(a,s,r){return['  <rdf:Description rdf:about="'+a+`">
`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+s+`"/>
`,`  </rdf:Description>
`].join("")}function rB(a,s){return['  <rdf:Description rdf:about="'+a+`">
`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+s+`"/>
`,`  </rdf:Description>
`].join("")}function nB(a){var s=[Vs];s.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var r=0;r!=a.length;++r)s.push(t4(a[r][0],a[r][1])),s.push(rB("",a[r][0]));return s.push(t4("","Document","pkg")),s.push("</rdf:RDF>"),s.join("")}function KS(){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 '+Q2.version+"</meta:generator></office:meta></office:document-meta>"}var ec=[["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"]],aB=(function(){for(var a=new Array(ec.length),s=0;s<ec.length;++s){var r=ec[s],i="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);a[s]=new RegExp("<"+i+"[^>]*>([\\s\\S]*?)</"+i+">")}return a})();function YS(a){var s={};a=Mi(a);for(var r=0;r<ec.length;++r){var i=ec[r],n=a.match(aB[r]);n!=null&&n.length>0&&(s[i[1]]=hi(n[1])),i[2]==="date"&&s[i[1]]&&(s[i[1]]=qi(s[i[1]]))}return s}function xb(a,s,r,i,n){n[a]!=null||s==null||s===""||(n[a]=s,s=Ii(s),i[i.length]=r?An(a,s,r):Ho(a,s))}function XS(a,s){var r=s||{},i=[Vs,An("cp:coreProperties",null,{"xmlns:cp":ho.CORE_PROPS,"xmlns:dc":ho.dc,"xmlns:dcterms":ho.dcterms,"xmlns:dcmitype":ho.dcmitype,"xmlns:xsi":ho.xsi})],n={};if(!a&&!r.Props)return i.join("");a&&(a.CreatedDate!=null&&xb("dcterms:created",typeof a.CreatedDate=="string"?a.CreatedDate:dw(a.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},i,n),a.ModifiedDate!=null&&xb("dcterms:modified",typeof a.ModifiedDate=="string"?a.ModifiedDate:dw(a.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},i,n));for(var t=0;t!=ec.length;++t){var c=ec[t],u=r.Props&&r.Props[c[1]]!=null?r.Props[c[1]]:a?a[c[1]]:null;u===!0?u="1":u===!1?u="0":typeof u=="number"&&(u=String(u)),u!=null&&xb(c[0],u,null,i,n)}return i.length>2&&(i[i.length]="</cp:coreProperties>",i[1]=i[1].replace("/>",">")),i.join("")}var C0=[["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"]],ZS=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function JS(a,s,r,i){var n=[];if(typeof a=="string")n=Wx(a,i);else for(var t=0;t<a.length;++t)n=n.concat(a[t].map(function(l){return{v:l}}));var c=typeof s=="string"?Wx(s,i).map(function(l){return l.v}):s,u=0,f=0;if(c.length>0)for(var o=0;o!==n.length;o+=2){switch(f=+n[o+1].v,n[o].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":r.Worksheets=f,r.SheetNames=c.slice(u,u+f);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=f,r.DefinedNames=c.slice(u,u+f);break;case"Charts":case"Diagramme":r.Chartsheets=f,r.ChartNames=c.slice(u,u+f);break}u+=f}}function iB(a,s,r){var i={};return s||(s={}),a=Mi(a),C0.forEach(function(n){var t=(a.match(H1(n[0]))||[])[1];switch(n[2]){case"string":t&&(s[n[1]]=hi(t));break;case"bool":s[n[1]]=t==="true";break;case"raw":var c=a.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));c&&c.length>0&&(i[n[1]]=c[1]);break}}),i.HeadingPairs&&i.TitlesOfParts&&JS(i.HeadingPairs,i.TitlesOfParts,s,r),s}function qS(a){var s=[],r=An;return a||(a={}),a.Application="SheetJS",s[s.length]=Vs,s[s.length]=An("Properties",null,{xmlns:ho.EXT_PROPS,"xmlns:vt":ho.vt}),C0.forEach(function(i){if(a[i[1]]!==void 0){var n;switch(i[2]){case"string":n=Ii(String(a[i[1]]));break;case"bool":n=a[i[1]]?"true":"false";break}n!==void 0&&(s[s.length]=r(i[0],n))}}),s[s.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(a.Worksheets))),{size:2,baseType:"variant"})),s[s.length]=r("TitlesOfParts",r("vt:vector",a.SheetNames.map(function(i){return"<vt:lpstr>"+Ii(i)+"</vt:lpstr>"}).join(""),{size:a.Worksheets,baseType:"lpstr"})),s.length>2&&(s[s.length]="</Properties>",s[1]=s[1].replace("/>",">")),s.join("")}var sB=/<[^>]+>[^<]*/g;function oB(a,s){var r={},i="",n=a.match(sB);if(n)for(var t=0;t!=n.length;++t){var c=n[t],u=ma(c);switch(u[0]){case"<?xml":break;case"<Properties":break;case"<property":i=hi(u.name);break;case"</property>":i=null;break;default:if(c.indexOf("<vt:")===0){var f=c.split(">"),o=f[0].slice(4),l=f[1];switch(o){case"lpstr":case"bstr":case"lpwstr":r[i]=hi(l);break;case"bool":r[i]=Ji(l);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[i]=parseInt(l,10);break;case"r4":case"r8":case"decimal":r[i]=parseFloat(l);break;case"filetime":case"date":r[i]=qi(l);break;case"cy":case"error":r[i]=hi(l);break;default:if(o.slice(-1)=="/")break;s.WTF&&typeof console<"u"&&console.warn("Unexpected",c,o,f)}}else if(c.slice(0,2)!=="</"){if(s.WTF)throw new Error(c)}}}return r}function e5(a){var s=[Vs,An("Properties",null,{xmlns:ho.CUST_PROPS,"xmlns:vt":ho.vt})];if(!a)return s.join("");var r=1;return Es(a).forEach(function(n){++r,s[s.length]=An("property",mI(a[n]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Ii(n)})}),s.length>2&&(s[s.length]="</Properties>",s[1]=s[1].replace("/>",">")),s.join("")}var gw={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"},Cb;function lB(a,s,r){Cb||(Cb=by(gw)),s=Cb[s]||s,a[s]=r}function uB(a,s){var r=[];return Es(gw).map(function(i){for(var n=0;n<ec.length;++n)if(ec[n][1]==i)return ec[n];for(n=0;n<C0.length;++n)if(C0[n][1]==i)return C0[n];throw i}).forEach(function(i){if(a[i[1]]!=null){var n=s&&s.Props&&s.Props[i[1]]!=null?s.Props[i[1]]:a[i[1]];switch(i[2]){case"date":n=new Date(n).toISOString().replace(/\.\d*Z/,"Z");break}typeof n=="number"?n=String(n):n===!0||n===!1?n=n?"1":"0":n instanceof Date&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"")),r.push(Ho(gw[i[1]]||i[1],n))}}),An("DocumentProperties",r.join(""),{xmlns:lu.o})}function cB(a,s){var r=["Worksheets","SheetNames"],i="CustomDocumentProperties",n=[];return a&&Es(a).forEach(function(t){if(Object.prototype.hasOwnProperty.call(a,t)){for(var c=0;c<ec.length;++c)if(t==ec[c][1])return;for(c=0;c<C0.length;++c)if(t==C0[c][1])return;for(c=0;c<r.length;++c)if(t==r[c])return;var u=a[t],f="string";typeof u=="number"?(f="float",u=String(u)):u===!0||u===!1?(f="boolean",u=u?"1":"0"):u=String(u),n.push(An(Hx(t),u,{"dt:dt":f}))}}),s&&Es(s).forEach(function(t){if(Object.prototype.hasOwnProperty.call(s,t)&&!(a&&Object.prototype.hasOwnProperty.call(a,t))){var c=s[t],u="string";typeof c=="number"?(u="float",c=String(c)):c===!0||c===!1?(u="boolean",c=c?"1":"0"):c instanceof Date?(u="dateTime.tz",c=c.toISOString()):c=String(c),n.push(An(Hx(t),c,{"dt:dt":u}))}}),"<"+i+' xmlns="'+lu.o+'">'+n.join("")+"</"+i+">"}function T_(a){var s=a.read_shift(4),r=a.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+s/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function fB(a){var s=typeof a=="string"?new Date(Date.parse(a)):a,r=s.getTime()/1e3+11644473600,i=r%Math.pow(2,32),n=(r-i)/Math.pow(2,32);i*=1e7,n*=1e7;var t=i/Math.pow(2,32)|0;t>0&&(i=i%Math.pow(2,32),n+=t);var c=Er(8);return c.write_shift(4,i),c.write_shift(4,n),c}function t5(a,s,r){var i=a.l,n=a.read_shift(0,"lpstr-cp");if(r)for(;a.l-i&3;)++a.l;return n}function r5(a,s,r){var i=a.read_shift(0,"lpwstr");return i}function n5(a,s,r){return s===31?r5(a):t5(a,s,r)}function vw(a,s,r){return n5(a,s,r===!1?0:4)}function dB(a,s){if(!s)throw new Error("VtUnalignedString must have positive length");return n5(a,s,0)}function hB(a){for(var s=a.read_shift(4),r=[],i=0;i!=s;++i){var n=a.l;r[i]=a.read_shift(0,"lpwstr").replace(Sl,""),a.l-n&2&&(a.l+=2)}return r}function AB(a){for(var s=a.read_shift(4),r=[],i=0;i!=s;++i)r[i]=a.read_shift(0,"lpstr-cp").replace(Sl,"");return r}function pB(a){var s=a.l,r=Z2(a,WS);a[a.l]==0&&a[a.l+1]==0&&a.l-s&2&&(a.l+=2);var i=Z2(a,Ql);return[r,i]}function mB(a){for(var s=a.read_shift(4),r=[],i=0;i<s/2;++i)r.push(pB(a));return r}function r4(a,s){for(var r=a.read_shift(4),i={},n=0;n!=r;++n){var t=a.read_shift(4),c=a.read_shift(4);i[t]=a.read_shift(c,s===1200?"utf16le":"utf8").replace(Sl,"").replace(f1,"!"),s===1200&&c%2&&(a.l+=2)}return a.l&3&&(a.l=a.l>>3<<2),i}function a5(a){var s=a.read_shift(4),r=a.slice(a.l,a.l+s);return a.l+=s,(s&3)>0&&(a.l+=4-(s&3)&3),r}function gB(a){var s={};return s.Size=a.read_shift(4),a.l+=s.Size+3-(s.Size-1)%4,s}function Z2(a,s,r){var i=a.read_shift(2),n,t=r||{};if(a.l+=2,s!==qx&&i!==s&&KI.indexOf(s)===-1&&!((s&65534)==4126&&(i&65534)==4126))throw new Error("Expected type "+s+" saw "+i);switch(s===qx?i:s){case 2:return n=a.read_shift(2,"i"),t.raw||(a.l+=2),n;case 3:return n=a.read_shift(4,"i"),n;case 11:return a.read_shift(4)!==0;case 19:return n=a.read_shift(4),n;case 30:return t5(a,i,4).replace(Sl,"");case 31:return r5(a);case 64:return T_(a);case 65:return a5(a);case 71:return gB(a);case 80:return vw(a,i,!t.raw).replace(Sl,"");case 81:return dB(a,i).replace(Sl,"");case 4108:return mB(a);case 4126:case 4127:return i==4127?hB(a):AB(a);default:throw new Error("TypedPropertyValue unrecognized type "+s+" "+i)}}function n4(a,s){var r=Er(4),i=Er(4);switch(r.write_shift(4,a==80?31:a),a){case 3:i.write_shift(-4,s);break;case 5:i=Er(8),i.write_shift(8,s,"f");break;case 11:i.write_shift(4,s?1:0);break;case 64:i=fB(s);break;case 31:case 80:for(i=Er(4+2*(s.length+1)+(s.length%2?0:2)),i.write_shift(4,s.length+1),i.write_shift(0,s,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+s)}return So([r,i])}function a4(a,s){var r=a.l,i=a.read_shift(4),n=a.read_shift(4),t=[],c=0,u=0,f=-1,o={};for(c=0;c!=n;++c){var l=a.read_shift(4),g=a.read_shift(4);t[c]=[l,g+r]}t.sort(function(A,v){return A[1]-v[1]});var m={};for(c=0;c!=n;++c){if(a.l!==t[c][1]){var p=!0;if(c>0&&s)switch(s[t[c-1][0]].t){case 2:a.l+2===t[c][1]&&(a.l+=2,p=!1);break;case 80:a.l<=t[c][1]&&(a.l=t[c][1],p=!1);break;case 4108:a.l<=t[c][1]&&(a.l=t[c][1],p=!1);break}if((!s||c==0)&&a.l<=t[c][1]&&(p=!1,a.l=t[c][1]),p)throw new Error("Read Error: Expected address "+t[c][1]+" at "+a.l+" :"+c)}if(s){var _=s[t[c][0]];if(m[_.n]=Z2(a,_.t,{raw:!0}),_.p==="version"&&(m[_.n]=String(m[_.n]>>16)+"."+("0000"+String(m[_.n]&65535)).slice(-4)),_.n=="CodePage")switch(m[_.n]){case 0:m[_.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:Dc(u=m[_.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+m[_.n])}}else if(t[c][0]===1){if(u=m.CodePage=Z2(a,S_),Dc(u),f!==-1){var y=a.l;a.l=t[f][1],o=r4(a,u),a.l=y}}else if(t[c][0]===0){if(u===0){f=c,a.l=t[c+1][1];continue}o=r4(a,u)}else{var h=o[t[c][0]],d;switch(a[a.l]){case 65:a.l+=4,d=a5(a);break;case 30:a.l+=4,d=vw(a,a[a.l-4]).replace(/\u0000+$/,"");break;case 31:a.l+=4,d=vw(a,a[a.l-4]).replace(/\u0000+$/,"");break;case 3:a.l+=4,d=a.read_shift(4,"i");break;case 19:a.l+=4,d=a.read_shift(4);break;case 5:a.l+=4,d=a.read_shift(8,"f");break;case 11:a.l+=4,d=js(a,4);break;case 64:a.l+=4,d=qi(T_(a));break;default:throw new Error("unparsed value: "+a[a.l])}m[h]=d}}return a.l=r+i,m}var i5=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function vB(a){switch(typeof a){case"boolean":return 11;case"number":return(a|0)==a?3:5;case"string":return 31;case"object":if(a instanceof Date)return 64;break}return-1}function i4(a,s,r){var i=Er(8),n=[],t=[],c=8,u=0,f=Er(8),o=Er(8);if(f.write_shift(4,2),f.write_shift(4,1200),o.write_shift(4,1),t.push(f),n.push(o),c+=8+f.length,!s){o=Er(8),o.write_shift(4,0),n.unshift(o);var l=[Er(4)];for(l[0].write_shift(4,a.length),u=0;u<a.length;++u){var g=a[u][0];for(f=Er(8+2*(g.length+1)+(g.length%2?0:2)),f.write_shift(4,u+2),f.write_shift(4,g.length+1),f.write_shift(0,g,"dbcs");f.l!=f.length;)f.write_shift(1,0);l.push(f)}f=So(l),t.unshift(f),c+=8+f.length}for(u=0;u<a.length;++u)if(!(s&&!s[a[u][0]])&&!(i5.indexOf(a[u][0])>-1||ZS.indexOf(a[u][0])>-1)&&a[u][1]!=null){var m=a[u][1],p=0;if(s){p=+s[a[u][0]];var _=r[p];if(_.p=="version"&&typeof m=="string"){var y=m.split(".");m=(+y[0]<<16)+(+y[1]||0)}f=n4(_.t,m)}else{var h=vB(m);h==-1&&(h=31,m=String(m)),f=n4(h,m)}t.push(f),o=Er(8),o.write_shift(4,s?p:2+u),n.push(o),c+=8+f.length}var d=8*(t.length+1);for(u=0;u<t.length;++u)n[u].write_shift(4,d),d+=t[u].length;return i.write_shift(4,c),i.write_shift(4,t.length),So([i].concat(n).concat(t))}function s4(a,s,r){var i=a.content;if(!i)return{};jo(i,0);var n,t,c,u,f=0;i.chk("feff","Byte Order: "),i.read_shift(2);var o=i.read_shift(4),l=i.read_shift(16);if(l!==ra.utils.consts.HEADER_CLSID&&l!==r)throw new Error("Bad PropertySet CLSID "+l);if(n=i.read_shift(4),n!==1&&n!==2)throw new Error("Unrecognized #Sets: "+n);if(t=i.read_shift(16),u=i.read_shift(4),n===1&&u!==i.l)throw new Error("Length mismatch: "+u+" !== "+i.l);n===2&&(c=i.read_shift(16),f=i.read_shift(4));var g=a4(i,s),m={SystemIdentifier:o};for(var p in g)m[p]=g[p];if(m.FMTID=t,n===1)return m;if(f-i.l==2&&(i.l+=2),i.l!==f)throw new Error("Length mismatch 2: "+i.l+" !== "+f);var _;try{_=a4(i,null)}catch{}for(p in _)m[p]=_[p];return m.FMTID=[t,c],m}function o4(a,s,r,i,n,t){var c=Er(n?68:48),u=[c];c.write_shift(2,65534),c.write_shift(2,0),c.write_shift(4,842412599),c.write_shift(16,ra.utils.consts.HEADER_CLSID,"hex"),c.write_shift(4,n?2:1),c.write_shift(16,s,"hex"),c.write_shift(4,n?68:48);var f=i4(a,r,i);if(u.push(f),n){var o=i4(n,null,null);c.write_shift(16,t,"hex"),c.write_shift(4,68+f.length),u.push(o)}return So(u)}function Nh(a,s){return a.read_shift(s),null}function yB(a,s){s||(s=Er(a));for(var r=0;r<a;++r)s.write_shift(1,0);return s}function bB(a,s,r){for(var i=[],n=a.l+s;a.l<n;)i.push(r(a,n-a.l));if(n!==a.l)throw new Error("Slurp error");return i}function js(a,s){return a.read_shift(s)===1}function xl(a,s){return s||(s=Er(2)),s.write_shift(2,+!!a),s}function ro(a){return a.read_shift(2,"u")}function $u(a,s){return s||(s=Er(2)),s.write_shift(2,a),s}function s5(a,s){return bB(a,s,ro)}function wB(a){var s=a.read_shift(1),r=a.read_shift(1);return r===1?s:s===1}function o5(a,s,r){return r||(r=Er(2)),r.write_shift(1,s=="e"?+a:+!!a),r.write_shift(1,s=="e"?1:0),r}function lv(a,s,r){var i=a.read_shift(r&&r.biff>=12?2:1),n="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var t=a.read_shift(1);t&&(n="dbcs-cont")}else r.biff==12&&(n="wstr");r.biff>=2&&r.biff<=5&&(n="cpstr");var c=i?a.read_shift(i,n):"";return c}function _B(a){var s=a.read_shift(2),r=a.read_shift(1),i=r&4,n=r&8,t=1+(r&1),c=0,u,f={};n&&(c=a.read_shift(2)),i&&(u=a.read_shift(4));var o=t==2?"dbcs-cont":"sbcs-cont",l=s===0?"":a.read_shift(s,o);return n&&(a.l+=4*c),i&&(a.l+=u),f.t=l,n||(f.raw="<t>"+f.t+"</t>",f.r=f.t),f}function xB(a){var s=a.t||"",r=Er(3);r.write_shift(2,s.length),r.write_shift(1,1);var i=Er(2*s.length);i.write_shift(2*s.length,s,"utf16le");var n=[r,i];return So(n)}function O0(a,s,r){var i;if(r){if(r.biff>=2&&r.biff<=5)return a.read_shift(s,"cpstr");if(r.biff>=12)return a.read_shift(s,"dbcs-cont")}var n=a.read_shift(1);return n===0?i=a.read_shift(s,"sbcs-cont"):i=a.read_shift(s,"dbcs-cont"),i}function uv(a,s,r){var i=a.read_shift(r&&r.biff==2?1:2);return i===0?(a.l++,""):O0(a,i,r)}function G0(a,s,r){if(r.biff>5)return uv(a,s,r);var i=a.read_shift(1);return i===0?(a.l++,""):a.read_shift(i,r.biff<=4||!a.lens?"cpstr":"sbcs-cont")}function l5(a,s,r){return r||(r=Er(3+2*a.length)),r.write_shift(2,a.length),r.write_shift(1,1),r.write_shift(31,a,"utf16le"),r}function CB(a){var s=a.read_shift(1);a.l++;var r=a.read_shift(2);return a.l+=2,[s,r]}function SB(a){var s=a.read_shift(4),r=a.l,i=!1;s>24&&(a.l+=s-24,a.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(i=!0),a.l=r);var n=a.read_shift((i?s-24:s)>>1,"utf16le").replace(Sl,"");return i&&(a.l+=24),n}function kB(a){for(var s=a.read_shift(2),r="";s-- >0;)r+="../";var i=a.read_shift(0,"lpstr-ansi");if(a.l+=2,a.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var n=a.read_shift(4);if(n===0)return r+i.replace(/\\/g,"/");var t=a.read_shift(4);if(a.read_shift(2)!=3)throw new Error("Bad FileMoniker");var c=a.read_shift(t>>1,"utf16le").replace(Sl,"");return r+c}function TB(a,s){var r=a.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return SB(a);case"0303000000000000c000000000000046":return kB(a);default:throw new Error("Unsupported Moniker "+r)}}function Zv(a){var s=a.read_shift(4),r=s>0?a.read_shift(s,"utf16le").replace(Sl,""):"";return r}function l4(a,s){s||(s=Er(6+a.length*2)),s.write_shift(4,1+a.length);for(var r=0;r<a.length;++r)s.write_shift(2,a.charCodeAt(r));return s.write_shift(2,0),s}function EB(a,s){var r=a.l+s,i=a.read_shift(4);if(i!==2)throw new Error("Unrecognized streamVersion: "+i);var n=a.read_shift(2);a.l+=2;var t,c,u,f,o="",l,g;n&16&&(t=Zv(a,r-a.l)),n&128&&(c=Zv(a,r-a.l)),(n&257)===257&&(u=Zv(a,r-a.l)),(n&257)===1&&(f=TB(a,r-a.l)),n&8&&(o=Zv(a,r-a.l)),n&32&&(l=a.read_shift(16)),n&64&&(g=T_(a)),a.l=r;var m=c||u||f||"";m&&o&&(m+="#"+o),m||(m="#"+o),n&2&&m.charAt(0)=="/"&&m.charAt(1)!="/"&&(m="file://"+m);var p={Target:m};return l&&(p.guid=l),g&&(p.time=g),t&&(p.Tooltip=t),p}function IB(a){var s=Er(512),r=0,i=a.Target;i.slice(0,7)=="file://"&&(i=i.slice(7));var n=i.indexOf("#"),t=n>-1?31:23;switch(i.charAt(0)){case"#":t=28;break;case".":t&=-3;break}s.write_shift(4,2),s.write_shift(4,t);var c=[8,6815827,6619237,4849780,83];for(r=0;r<c.length;++r)s.write_shift(4,c[r]);if(t==28)i=i.slice(1),l4(i,s);else if(t&2){for(c="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<c.length;++r)s.write_shift(1,parseInt(c[r],16));var u=n>-1?i.slice(0,n):i;for(s.write_shift(4,2*(u.length+1)),r=0;r<u.length;++r)s.write_shift(2,u.charCodeAt(r));s.write_shift(2,0),t&8&&l4(n>-1?i.slice(n+1):"",s)}else{for(c="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<c.length;++r)s.write_shift(1,parseInt(c[r],16));for(var f=0;i.slice(f*3,f*3+3)=="../"||i.slice(f*3,f*3+3)=="..\\";)++f;for(s.write_shift(2,f),s.write_shift(4,i.length-3*f+1),r=0;r<i.length-3*f;++r)s.write_shift(1,i.charCodeAt(r+3*f)&255);for(s.write_shift(1,0),s.write_shift(2,65535),s.write_shift(2,57005),r=0;r<6;++r)s.write_shift(4,0)}return s.slice(0,s.l)}function u5(a){var s=a.read_shift(1),r=a.read_shift(1),i=a.read_shift(1),n=a.read_shift(1);return[s,r,i,n]}function c5(a,s){var r=u5(a);return r[3]=0,r}function Ef(a){var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(2);return{r:s,c:r,ixfe:i}}function L0(a,s,r,i){return i||(i=Er(6)),i.write_shift(2,a),i.write_shift(2,s),i.write_shift(2,r||0),i}function BB(a){var s=a.read_shift(2),r=a.read_shift(2);return a.l+=8,{type:s,flags:r}}function FB(a,s,r){return s===0?"":G0(a,s,r)}function MB(a,s,r){var i=r.biff>8?4:2,n=a.read_shift(i),t=a.read_shift(i,"i"),c=a.read_shift(i,"i");return[n,t,c]}function f5(a){var s=a.read_shift(2),r=C_(a);return[s,r]}function DB(a,s,r){a.l+=4,s-=4;var i=a.l+s,n=lv(a,s,r),t=a.read_shift(2);if(i-=a.l,t!==i)throw new Error("Malformed AddinUdf: padding = "+i+" != "+t);return a.l+=t,n}function xy(a){var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(2),n=a.read_shift(2);return{s:{c:i,r:s},e:{c:n,r}}}function d5(a,s){return s||(s=Er(8)),s.write_shift(2,a.s.r),s.write_shift(2,a.e.r),s.write_shift(2,a.s.c),s.write_shift(2,a.e.c),s}function h5(a){var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(1),n=a.read_shift(1);return{s:{c:i,r:s},e:{c:n,r}}}var OB=h5;function A5(a){a.l+=4;var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(2);return a.l+=12,[r,s,i]}function LB(a){var s={};return a.l+=4,a.l+=16,s.fSharedNote=a.read_shift(2),a.l+=4,s}function PB(a){var s={};return a.l+=4,a.cf=a.read_shift(2),s}function Zo(a){a.l+=2,a.l+=a.read_shift(2)}var RB={0:Zo,4:Zo,5:Zo,6:Zo,7:PB,8:Zo,9:Zo,10:Zo,11:Zo,12:Zo,13:LB,14:Zo,15:Zo,16:Zo,17:Zo,18:Zo,19:Zo,20:Zo,21:A5};function UB(a,s){for(var r=a.l+s,i=[];a.l<r;){var n=a.read_shift(2);a.l-=2;try{i.push(RB[n](a,r-a.l))}catch{return a.l=r,i}}return a.l!=r&&(a.l=r),i}function Jv(a,s){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=a.read_shift(2),s-=2,s>=2&&(r.dt=a.read_shift(2),a.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(s>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return a.read_shift(s),r}function E_(a,s,r){var i=1536,n=16;switch(r.bookType){case"biff8":break;case"biff5":i=1280,n=8;break;case"biff4":i=4,n=6;break;case"biff3":i=3,n=6;break;case"biff2":i=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var t=Er(n);return t.write_shift(2,i),t.write_shift(2,s),n>4&&t.write_shift(2,29282),n>6&&t.write_shift(2,1997),n>8&&(t.write_shift(2,49161),t.write_shift(2,1),t.write_shift(2,1798),t.write_shift(2,0)),t}function NB(a,s){return s===0||a.read_shift(2),1200}function jB(a,s,r){if(r.enc)return a.l+=s,"";var i=a.l,n=G0(a,0,r);return a.read_shift(s+i-a.l),n}function HB(a,s){var r=!s||s.biff==8,i=Er(r?112:54);for(i.write_shift(s.biff==8?2:1,7),r&&i.write_shift(1,0),i.write_shift(4,859007059),i.write_shift(4,5458548|(r?0:536870912));i.l<i.length;)i.write_shift(1,r?0:32);return i}function QB(a,s,r){var i=r&&r.biff==8||s==2?a.read_shift(2):(a.l+=s,0);return{fDialog:i&16,fBelow:i&64,fRight:i&128}}function zB(a,s,r){var i=a.read_shift(4),n=a.read_shift(1)&3,t=a.read_shift(1);switch(t){case 0:t="Worksheet";break;case 1:t="Macrosheet";break;case 2:t="Chartsheet";break;case 6:t="VBAModule";break}var c=lv(a,0,r);return c.length===0&&(c="Sheet1"),{pos:i,hs:n,dt:t,name:c}}function VB(a,s){var r=!s||s.biff>=8?2:1,i=Er(8+r*a.name.length);i.write_shift(4,a.pos),i.write_shift(1,a.hs||0),i.write_shift(1,a.dt),i.write_shift(1,a.name.length),s.biff>=8&&i.write_shift(1,1),i.write_shift(r*a.name.length,a.name,s.biff<8?"sbcs":"utf16le");var n=i.slice(0,i.l);return n.l=i.l,n}function WB(a,s){for(var r=a.l+s,i=a.read_shift(4),n=a.read_shift(4),t=[],c=0;c!=n&&a.l<r;++c)t.push(_B(a));return t.Count=i,t.Unique=n,t}function GB(a,s){var r=Er(8);r.write_shift(4,a.Count),r.write_shift(4,a.Unique);for(var i=[],n=0;n<a.length;++n)i[n]=xB(a[n]);var t=So([r].concat(i));return t.parts=[r.length].concat(i.map(function(c){return c.length})),t}function $B(a,s){var r={};return r.dsst=a.read_shift(2),a.l+=s-2,r}function KB(a){var s={};s.r=a.read_shift(2),s.c=a.read_shift(2),s.cnt=a.read_shift(2)-s.c;var r=a.read_shift(2);a.l+=4;var i=a.read_shift(1);return a.l+=3,i&7&&(s.level=i&7),i&32&&(s.hidden=!0),i&64&&(s.hpt=r/20),s}function YB(a){var s=BB(a);if(s.type!=2211)throw new Error("Invalid Future Record "+s.type);var r=a.read_shift(4);return r!==0}function XB(a){return a.read_shift(2),a.read_shift(4)}function u4(a,s,r){var i=0;r&&r.biff==2||(i=a.read_shift(2));var n=a.read_shift(2);r&&r.biff==2&&(i=1-(n>>15),n&=32767);var t={Unsynced:i&1,DyZero:(i&2)>>1,ExAsc:(i&4)>>2,ExDsc:(i&8)>>3};return[t,n]}function ZB(a){var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(2),n=a.read_shift(2),t=a.read_shift(2),c=a.read_shift(2),u=a.read_shift(2),f=a.read_shift(2),o=a.read_shift(2);return{Pos:[s,r],Dim:[i,n],Flags:t,CurTab:c,FirstTab:u,Selected:f,TabRatio:o}}function JB(){var a=Er(18);return a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,29280),a.write_shift(2,17600),a.write_shift(2,56),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,1),a.write_shift(2,500),a}function qB(a,s,r){if(r&&r.biff>=2&&r.biff<5)return{};var i=a.read_shift(2);return{RTL:i&64}}function eF(a){var s=Er(18),r=1718;return a&&a.RTL&&(r|=64),s.write_shift(2,r),s.write_shift(4,0),s.write_shift(4,64),s.write_shift(4,0),s.write_shift(4,0),s}function tF(){}function rF(a,s,r){var i={dyHeight:a.read_shift(2),fl:a.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:a.l+=2;break;default:a.l+=10;break}return i.name=lv(a,0,r),i}function nF(a,s){var r=a.name||"Arial",i=s&&s.biff==5,n=i?15+r.length:16+2*r.length,t=Er(n);return t.write_shift(2,a.sz*20),t.write_shift(4,0),t.write_shift(2,400),t.write_shift(4,0),t.write_shift(2,0),t.write_shift(1,r.length),i||t.write_shift(1,1),t.write_shift((i?1:2)*r.length,r,i?"sbcs":"utf16le"),t}function aF(a){var s=Ef(a);return s.isst=a.read_shift(4),s}function iF(a,s,r,i){var n=Er(10);return L0(a,s,i,n),n.write_shift(4,r),n}function sF(a,s,r){r.biffguess&&r.biff==2&&(r.biff=5);var i=a.l+s,n=Ef(a);r.biff==2&&a.l++;var t=uv(a,i-a.l,r);return n.val=t,n}function oF(a,s,r,i,n){var t=!n||n.biff==8,c=Er(8+ +t+(1+t)*r.length);return L0(a,s,i,c),c.write_shift(2,r.length),t&&c.write_shift(1,1),c.write_shift((1+t)*r.length,r,t?"utf16le":"sbcs"),c}function lF(a,s,r){var i=a.read_shift(2),n=G0(a,0,r);return[i,n]}function uF(a,s,r,i){var n=r&&r.biff==5;i||(i=Er(n?3+s.length:5+2*s.length)),i.write_shift(2,a),i.write_shift(n?1:2,s.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*s.length,s,n?"sbcs":"utf16le");var t=i.length>i.l?i.slice(0,i.l):i;return t.l==null&&(t.l=t.length),t}var cF=G0;function c4(a,s,r){var i=a.l+s,n=r.biff==8||!r.biff?4:2,t=a.read_shift(n),c=a.read_shift(n),u=a.read_shift(2),f=a.read_shift(2);return a.l=i,{s:{r:t,c:u},e:{r:c,c:f}}}function fF(a,s){var r=s.biff==8||!s.biff?4:2,i=Er(2*r+6);return i.write_shift(r,a.s.r),i.write_shift(r,a.e.r+1),i.write_shift(2,a.s.c),i.write_shift(2,a.e.c+1),i.write_shift(2,0),i}function dF(a){var s=a.read_shift(2),r=a.read_shift(2),i=f5(a);return{r:s,c:r,ixfe:i[0],rknum:i[1]}}function hF(a,s){for(var r=a.l+s-2,i=a.read_shift(2),n=a.read_shift(2),t=[];a.l<r;)t.push(f5(a));if(a.l!==r)throw new Error("MulRK read error");var c=a.read_shift(2);if(t.length!=c-n+1)throw new Error("MulRK length mismatch");return{r:i,c:n,C:c,rkrec:t}}function AF(a,s){for(var r=a.l+s-2,i=a.read_shift(2),n=a.read_shift(2),t=[];a.l<r;)t.push(a.read_shift(2));if(a.l!==r)throw new Error("MulBlank read error");var c=a.read_shift(2);if(t.length!=c-n+1)throw new Error("MulBlank length mismatch");return{r:i,c:n,C:c,ixfe:t}}function pF(a,s,r,i){var n={},t=a.read_shift(4),c=a.read_shift(4),u=a.read_shift(4),f=a.read_shift(2);return n.patternType=YI[u>>26],i.cellStyles&&(n.alc=t&7,n.fWrap=t>>3&1,n.alcV=t>>4&7,n.fJustLast=t>>7&1,n.trot=t>>8&255,n.cIndent=t>>16&15,n.fShrinkToFit=t>>20&1,n.iReadOrder=t>>22&2,n.fAtrNum=t>>26&1,n.fAtrFnt=t>>27&1,n.fAtrAlc=t>>28&1,n.fAtrBdr=t>>29&1,n.fAtrPat=t>>30&1,n.fAtrProt=t>>31&1,n.dgLeft=c&15,n.dgRight=c>>4&15,n.dgTop=c>>8&15,n.dgBottom=c>>12&15,n.icvLeft=c>>16&127,n.icvRight=c>>23&127,n.grbitDiag=c>>30&3,n.icvTop=u&127,n.icvBottom=u>>7&127,n.icvDiag=u>>14&127,n.dgDiag=u>>21&15,n.icvFore=f&127,n.icvBack=f>>7&127,n.fsxButton=f>>14&1),n}function mF(a,s,r){var i={};return i.ifnt=a.read_shift(2),i.numFmtId=a.read_shift(2),i.flags=a.read_shift(2),i.fStyle=i.flags>>2&1,s-=6,i.data=pF(a,s,i.fStyle,r),i}function f4(a,s,r,i){var n=r&&r.biff==5;i||(i=Er(n?16:20)),i.write_shift(2,0),a.style?(i.write_shift(2,a.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,a.numFmtId||0),i.write_shift(2,s<<4));var t=0;return a.numFmtId>0&&n&&(t|=1024),i.write_shift(4,t),i.write_shift(4,0),n||i.write_shift(4,0),i.write_shift(2,0),i}function gF(a){a.l+=4;var s=[a.read_shift(2),a.read_shift(2)];if(s[0]!==0&&s[0]--,s[1]!==0&&s[1]--,s[0]>7||s[1]>7)throw new Error("Bad Gutters: "+s.join("|"));return s}function vF(a){var s=Er(8);return s.write_shift(4,0),s.write_shift(2,0),s.write_shift(2,0),s}function d4(a,s,r){var i=Ef(a);(r.biff==2||s==9)&&++a.l;var n=wB(a);return i.val=n,i.t=n===!0||n===!1?"b":"e",i}function yF(a,s,r,i,n,t){var c=Er(8);return L0(a,s,i,c),o5(r,t,c),c}function bF(a,s,r){r.biffguess&&r.biff==2&&(r.biff=5);var i=Ef(a),n=nl(a);return i.val=n,i}function wF(a,s,r,i){var n=Er(14);return L0(a,s,i,n),D0(r,n),n}var h4=FB;function _F(a,s,r){var i=a.l+s,n=a.read_shift(2),t=a.read_shift(2);if(r.sbcch=t,t==1025||t==14849)return[t,n];if(t<1||t>255)throw new Error("Unexpected SupBook type: "+t);for(var c=O0(a,t),u=[];i>a.l;)u.push(uv(a));return[t,n,c,u]}function A4(a,s,r){var i=a.read_shift(2),n,t={fBuiltIn:i&1,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return r.sbcch===14849&&(n=DB(a,s-2,r)),t.body=n||a.read_shift(s-2),typeof n=="string"&&(t.Name=n),t}var xF=["_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 p4(a,s,r){var i=a.l+s,n=a.read_shift(2),t=a.read_shift(1),c=a.read_shift(1),u=a.read_shift(r&&r.biff==2?1:2),f=0;(!r||r.biff>=5)&&(r.biff!=5&&(a.l+=2),f=a.read_shift(2),r.biff==5&&(a.l+=2),a.l+=4);var o=O0(a,c,r);n&32&&(o=xF[o.charCodeAt(0)]);var l=i-a.l;r&&r.biff==2&&--l;var g=i==a.l||u===0||!(l>0)?[]:U7(a,l,r,u);return{chKey:t,Name:o,itab:f,rgce:g}}function p5(a,s,r){if(r.biff<8)return CF(a,s,r);for(var i=[],n=a.l+s,t=a.read_shift(r.biff>8?4:2);t--!==0;)i.push(MB(a,r.biff>8?12:6,r));if(a.l!=n)throw new Error("Bad ExternSheet: "+a.l+" != "+n);return i}function CF(a,s,r){a[a.l+1]==3&&a[a.l]++;var i=lv(a,s,r);return i.charCodeAt(0)==3?i.slice(1):i}function SF(a,s,r){if(r.biff<8){a.l+=s;return}var i=a.read_shift(2),n=a.read_shift(2),t=O0(a,i,r),c=O0(a,n,r);return[t,c]}function kF(a,s,r){var i=h5(a);a.l++;var n=a.read_shift(1);return s-=8,[N7(a,s,r),n,i]}function m4(a,s,r){var i=OB(a);switch(r.biff){case 2:a.l++,s-=7;break;case 3:case 4:a.l+=2,s-=8;break;default:a.l+=6,s-=12}return[i,P7(a,s,r)]}function TF(a){var s=a.read_shift(4)!==0,r=a.read_shift(4)!==0,i=a.read_shift(4);return[s,r,i]}function EF(a,s,r){if(!(r.biff<8)){var i=a.read_shift(2),n=a.read_shift(2),t=a.read_shift(2),c=a.read_shift(2),u=G0(a,0,r);return r.biff<8&&a.read_shift(1),[{r:i,c:n},u,c,t]}}function IF(a,s,r){return EF(a,s,r)}function BF(a,s){for(var r=[],i=a.read_shift(2);i--;)r.push(xy(a));return r}function FF(a){var s=Er(2+a.length*8);s.write_shift(2,a.length);for(var r=0;r<a.length;++r)d5(a[r],s);return s}function MF(a,s,r){if(r&&r.biff<8)return OF(a,s,r);var i=A5(a),n=UB(a,s-22,i[1]);return{cmo:i,ft:n}}var DF={8:function(a,s){var r=a.l+s;a.l+=10;var i=a.read_shift(2);a.l+=4,a.l+=2,a.l+=2,a.l+=2,a.l+=4;var n=a.read_shift(1);return a.l+=n,a.l=r,{fmt:i}}};function OF(a,s,r){a.l+=4;var i=a.read_shift(2),n=a.read_shift(2),t=a.read_shift(2);a.l+=2,a.l+=2,a.l+=2,a.l+=2,a.l+=2,a.l+=2,a.l+=2,a.l+=2,a.l+=2,a.l+=6,s-=36;var c=[];return c.push((DF[i]||sl)(a,s,r)),{cmo:[n,i,t],ft:c}}function LF(a,s,r){var i=a.l,n="";try{a.l+=4;var t=(r.lastobj||{cmo:[0,0]}).cmo[1],c;[0,5,7,11,12,14].indexOf(t)==-1?a.l+=6:c=CB(a,6,r);var u=a.read_shift(2);a.read_shift(2),ro(a,2);var f=a.read_shift(2);a.l+=f;for(var o=1;o<a.lens.length-1;++o){if(a.l-i!=a.lens[o])throw new Error("TxO: bad continue record");var l=a[a.l],g=O0(a,a.lens[o+1]-a.lens[o]-1);if(n+=g,n.length>=(l?u:2*u))break}if(n.length!==u&&n.length!==u*2)throw new Error("cchText: "+u+" != "+n.length);return a.l=i+s,{t:n}}catch{return a.l=i+s,{t:n}}}function PF(a,s){var r=xy(a);a.l+=16;var i=EB(a,s-24);return[r,i]}function RF(a){var s=Er(24),r=ps(a[0]);s.write_shift(2,r.r),s.write_shift(2,r.r),s.write_shift(2,r.c),s.write_shift(2,r.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)s.write_shift(1,parseInt(i[n],16));return So([s,IB(a[1])])}function UF(a,s){a.read_shift(2);var r=xy(a),i=a.read_shift((s-10)/2,"dbcs-cont");return i=i.replace(Sl,""),[r,i]}function NF(a){var s=a[1].Tooltip,r=Er(10+2*(s.length+1));r.write_shift(2,2048);var i=ps(a[0]);r.write_shift(2,i.r),r.write_shift(2,i.r),r.write_shift(2,i.c),r.write_shift(2,i.c);for(var n=0;n<s.length;++n)r.write_shift(2,s.charCodeAt(n));return r.write_shift(2,0),r}function jF(a){var s=[0,0],r;return r=a.read_shift(2),s[0]=e4[r]||r,r=a.read_shift(2),s[1]=e4[r]||r,s}function HF(a){return a||(a=Er(4)),a.write_shift(2,1),a.write_shift(2,1),a}function QF(a){for(var s=a.read_shift(2),r=[];s-- >0;)r.push(c5(a));return r}function zF(a){for(var s=a.read_shift(2),r=[];s-- >0;)r.push(c5(a));return r}function VF(a){a.l+=2;var s={cxfs:0,crc:0};return s.cxfs=a.read_shift(2),s.crc=a.read_shift(4),s}function m5(a,s,r){if(!r.cellStyles)return sl(a,s);var i=r&&r.biff>=12?4:2,n=a.read_shift(i),t=a.read_shift(i),c=a.read_shift(i),u=a.read_shift(i),f=a.read_shift(2);i==2&&(a.l+=2);var o={s:n,e:t,w:c,ixfe:u,flags:f};return(r.biff>=5||!r.biff)&&(o.level=f>>8&7),o}function WF(a,s){var r=Er(12);r.write_shift(2,s),r.write_shift(2,s),r.write_shift(2,a.width*256),r.write_shift(2,0);var i=0;return a.hidden&&(i|=1),r.write_shift(1,i),i=a.level||0,r.write_shift(1,i),r.write_shift(2,0),r}function GF(a,s){var r={};return s<32||(a.l+=16,r.header=nl(a),r.footer=nl(a),a.l+=2),r}function $F(a,s,r){var i={area:!1};if(r.biff!=5)return a.l+=s,i;var n=a.read_shift(1);return a.l+=3,n&16&&(i.area=!0),i}function KF(a){for(var s=Er(2*a),r=0;r<a;++r)s.write_shift(2,r+1);return s}var YF=Ef,XF=s5,ZF=uv;function JF(a){var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(4),n={fmt:s,env:r,len:i,data:a.slice(a.l,a.l+i)};return a.l+=i,n}function qF(a,s,r){r.biffguess&&r.biff==5&&(r.biff=2);var i=Ef(a);++a.l;var n=G0(a,s-7,r);return i.t="str",i.val=n,i}function eM(a){var s=Ef(a);++a.l;var r=nl(a);return s.t="n",s.val=r,s}function tM(a,s,r){var i=Er(15);return hv(i,a,s),i.write_shift(8,r,"f"),i}function rM(a){var s=Ef(a);++a.l;var r=a.read_shift(2);return s.t="n",s.val=r,s}function nM(a,s,r){var i=Er(9);return hv(i,a,s),i.write_shift(2,r),i}function aM(a){var s=a.read_shift(1);return s===0?(a.l++,""):a.read_shift(s,"sbcs-cont")}function iM(a,s){a.l+=6,a.l+=2,a.l+=1,a.l+=3,a.l+=1,a.l+=s-13}function sM(a,s,r){var i=a.l+s,n=Ef(a),t=a.read_shift(2),c=O0(a,t,r);return a.l=i,n.t="str",n.val=c,n}var oM=[2,3,48,49,131,139,140,245],yw=(function(){var a={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},s=by({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 r(u,f){var o=[],l=eA(1);switch(f.type){case"base64":l=cu(hu(u));break;case"binary":l=cu(u);break;case"buffer":case"array":l=u;break}jo(l,0);var g=l.read_shift(1),m=!!(g&136),p=!1,_=!1;switch(g){case 2:break;case 3:break;case 48:p=!0,m=!0;break;case 49:p=!0,m=!0;break;case 131:break;case 139:break;case 140:_=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+g.toString(16))}var y=0,h=521;g==2&&(y=l.read_shift(2)),l.l+=3,g!=2&&(y=l.read_shift(4)),y>1048576&&(y=1e6),g!=2&&(h=l.read_shift(2));var d=l.read_shift(2),A=f.codepage||1252;g!=2&&(l.l+=16,l.read_shift(1),l[l.l]!==0&&(A=a[l[l.l]]),l.l+=1,l.l+=2),_&&(l.l+=36);for(var v=[],w={},x=Math.min(l.length,g==2?521:h-10-(p?264:0)),C=_?32:11;l.l<x&&l[l.l]!=13;)switch(w={},w.name=U1.utils.decode(A,l.slice(l.l,l.l+C)).replace(/[\u0000\r\n].*$/g,""),l.l+=C,w.type=String.fromCharCode(l.read_shift(1)),g!=2&&!_&&(w.offset=l.read_shift(4)),w.len=l.read_shift(1),g==2&&(w.offset=l.read_shift(2)),w.dec=l.read_shift(1),w.name.length&&v.push(w),g!=2&&(l.l+=_?13:14),w.type){case"B":(!p||w.len!=8)&&f.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"G":case"P":f.WTF&&console.log("Skipping "+w.name+":"+w.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: "+w.type)}if(l[l.l]!==13&&(l.l=h-1),l.read_shift(1)!==13)throw new Error("DBF Terminator not found "+l.l+" "+l[l.l]);l.l=h;var k=0,T=0;for(o[0]=[],T=0;T!=v.length;++T)o[0][T]=v[T].name;for(;y-- >0;){if(l[l.l]===42){l.l+=d;continue}for(++l.l,o[++k]=[],T=0,T=0;T!=v.length;++T){var S=l.slice(l.l,l.l+v[T].len);l.l+=v[T].len,jo(S,0);var M=U1.utils.decode(A,S);switch(v[T].type){case"C":M.trim().length&&(o[k][T]=M.replace(/\s+$/,""));break;case"D":M.length===8?o[k][T]=new Date(+M.slice(0,4),+M.slice(4,6)-1,+M.slice(6,8)):o[k][T]=M;break;case"F":o[k][T]=parseFloat(M.trim());break;case"+":case"I":o[k][T]=_?S.read_shift(-4,"i")^2147483648:S.read_shift(4,"i");break;case"L":switch(M.trim().toUpperCase()){case"Y":case"T":o[k][T]=!0;break;case"N":case"F":o[k][T]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+M+"|")}break;case"M":if(!m)throw new Error("DBF Unexpected MEMO for type "+g.toString(16));o[k][T]="##MEMO##"+(_?parseInt(M.trim(),10):S.read_shift(4));break;case"N":M=M.replace(/\u0000/g,"").trim(),M&&M!="."&&(o[k][T]=+M||0);break;case"@":o[k][T]=new Date(S.read_shift(-8,"f")-621356832e5);break;case"T":o[k][T]=new Date((S.read_shift(4)-2440588)*864e5+S.read_shift(4));break;case"Y":o[k][T]=S.read_shift(4,"i")/1e4+S.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":o[k][T]=-S.read_shift(-8,"f");break;case"B":if(p&&v[T].len==8){o[k][T]=S.read_shift(8,"f");break}case"G":case"P":S.l+=v[T].len;break;case"0":if(v[T].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+v[T].type)}}}if(g!=2&&l.l<l.length&&l[l.l++]!=26)throw new Error("DBF EOF Marker missing "+(l.l-1)+" of "+l.length+" "+l[l.l-1].toString(16));return f&&f.sheetRows&&(o=o.slice(0,f.sheetRows)),f.DBF=v,o}function i(u,f){var o=f||{};o.dateNF||(o.dateNF="yyyymmdd");var l=eg(r(u,o),o);return l["!cols"]=o.DBF.map(function(g){return{wch:g.len,DBF:g}}),delete o.DBF,l}function n(u,f){try{return lA(i(u,f),f)}catch(o){if(f&&f.WTF)throw o}return{SheetNames:[],Sheets:{}}}var t={B:8,C:250,L:1,D:8,"?":0,"":0};function c(u,f){var o=f||{};if(+o.codepage>=0&&Dc(+o.codepage),o.type=="string")throw new Error("Cannot write DBF to JS string");var l=Wl(),g=ey(u,{header:1,raw:!0,cellDates:!0}),m=g[0],p=g.slice(1),_=u["!cols"]||[],y=0,h=0,d=0,A=1;for(y=0;y<m.length;++y){if(((_[y]||{}).DBF||{}).name){m[y]=_[y].DBF.name,++d;continue}if(m[y]!=null){if(++d,typeof m[y]=="number"&&(m[y]=m[y].toString(10)),typeof m[y]!="string")throw new Error("DBF Invalid column name "+m[y]+" |"+typeof m[y]+"|");if(m.indexOf(m[y])!==y){for(h=0;h<1024;++h)if(m.indexOf(m[y]+"_"+h)==-1){m[y]+="_"+h;break}}}}var v=mi(u["!ref"]),w=[],x=[],C=[];for(y=0;y<=v.e.c-v.s.c;++y){var k="",T="",S=0,M=[];for(h=0;h<p.length;++h)p[h][y]!=null&&M.push(p[h][y]);if(M.length==0||m[y]==null){w[y]="?";continue}for(h=0;h<M.length;++h){switch(typeof M[h]){case"number":T="B";break;case"string":T="C";break;case"boolean":T="L";break;case"object":T=M[h]instanceof Date?"D":"C";break;default:T="C"}S=Math.max(S,String(M[h]).length),k=k&&k!=T?"C":T}S>250&&(S=250),T=((_[y]||{}).DBF||{}).type,T=="C"&&_[y].DBF.len>S&&(S=_[y].DBF.len),k=="B"&&T=="N"&&(k="N",C[y]=_[y].DBF.dec,S=_[y].DBF.len),x[y]=k=="C"||T=="N"?S:t[k]||0,A+=x[y],w[y]=k}var P=l.next(32);for(P.write_shift(4,318902576),P.write_shift(4,p.length),P.write_shift(2,296+32*d),P.write_shift(2,A),y=0;y<4;++y)P.write_shift(4,0);for(P.write_shift(4,0|(+s[iS]||3)<<8),y=0,h=0;y<m.length;++y)if(m[y]!=null){var N=l.next(32),B=(m[y].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);N.write_shift(1,B,"sbcs"),N.write_shift(1,w[y]=="?"?"C":w[y],"sbcs"),N.write_shift(4,h),N.write_shift(1,x[y]||t[w[y]]||0),N.write_shift(1,C[y]||0),N.write_shift(1,2),N.write_shift(4,0),N.write_shift(1,0),N.write_shift(4,0),N.write_shift(4,0),h+=x[y]||t[w[y]]||0}var O=l.next(264);for(O.write_shift(4,13),y=0;y<65;++y)O.write_shift(4,0);for(y=0;y<p.length;++y){var I=l.next(A);for(I.write_shift(1,0),h=0;h<m.length;++h)if(m[h]!=null)switch(w[h]){case"L":I.write_shift(1,p[y][h]==null?63:p[y][h]?84:70);break;case"B":I.write_shift(8,p[y][h]||0,"f");break;case"N":var F="0";for(typeof p[y][h]=="number"&&(F=p[y][h].toFixed(C[h]||0)),d=0;d<x[h]-F.length;++d)I.write_shift(1,32);I.write_shift(1,F,"sbcs");break;case"D":p[y][h]?(I.write_shift(4,("0000"+p[y][h].getFullYear()).slice(-4),"sbcs"),I.write_shift(2,("00"+(p[y][h].getMonth()+1)).slice(-2),"sbcs"),I.write_shift(2,("00"+p[y][h].getDate()).slice(-2),"sbcs")):I.write_shift(8,"00000000","sbcs");break;case"C":var L=String(p[y][h]!=null?p[y][h]:"").slice(0,x[h]);for(I.write_shift(1,L,"sbcs"),d=0;d<x[h]-L.length;++d)I.write_shift(1,32);break}}return l.next(1).write_shift(1,26),l.end()}return{to_workbook:n,to_sheet:i,from_sheet:c}})(),g5=(function(){var a={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},s=new RegExp("\x1BN("+Es(a).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(m,p){var _=a[p];return typeof _=="number"?Tx(_):_},i=function(m,p,_){var y=p.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return y==59?m:Tx(y)};a["|"]=254;function n(m,p){switch(p.type){case"base64":return t(hu(m),p);case"binary":return t(m,p);case"buffer":return t(Ga&&Buffer.isBuffer(m)?m.toString("binary"):oA(m),p);case"array":return t(M0(m),p)}throw new Error("Unrecognized type "+p.type)}function t(m,p){var _=m.split(/[\n\r]+/),y=-1,h=-1,d=0,A=0,v=[],w=[],x=null,C={},k=[],T=[],S=[],M=0,P;for(+p.codepage>=0&&Dc(+p.codepage);d!==_.length;++d){M=0;var N=_[d].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(s,r),B=N.replace(/;;/g,"\0").split(";").map(function(fe){return fe.replace(/\u0000/g,";")}),O=B[0],I;if(N.length>0)switch(O){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":B[1].charAt(0)=="P"&&w.push(N.slice(3).replace(/;;/g,";"));break;case"C":var F=!1,L=!1,R=!1,U=!1,V=-1,W=-1;for(A=1;A<B.length;++A)switch(B[A].charAt(0)){case"A":break;case"X":h=parseInt(B[A].slice(1))-1,L=!0;break;case"Y":for(y=parseInt(B[A].slice(1))-1,L||(h=0),P=v.length;P<=y;++P)v[P]=[];break;case"K":I=B[A].slice(1),I.charAt(0)==='"'?I=I.slice(1,I.length-1):I==="TRUE"?I=!0:I==="FALSE"?I=!1:isNaN(Uc(I))?isNaN(Gm(I).getDate())||(I=qi(I)):(I=Uc(I),x!==null&&Jm(x)&&(I=_y(I))),F=!0;break;case"E":U=!0;var Q=jm(B[A].slice(1),{r:y,c:h});v[y][h]=[v[y][h],Q];break;case"S":R=!0,v[y][h]=[v[y][h],"S5S"];break;case"G":break;case"R":V=parseInt(B[A].slice(1))-1;break;case"C":W=parseInt(B[A].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+N)}if(F&&(v[y][h]&&v[y][h].length==2?v[y][h][0]=I:v[y][h]=I,x=null),R){if(U)throw new Error("SYLK shared formula cannot have own formula");var le=V>-1&&v[V][W];if(!le||!le[1])throw new Error("SYLK shared formula cannot find base");v[y][h][1]=L5(le[1],{r:y-V,c:h-W})}break;case"F":var G=0;for(A=1;A<B.length;++A)switch(B[A].charAt(0)){case"X":h=parseInt(B[A].slice(1))-1,++G;break;case"Y":for(y=parseInt(B[A].slice(1))-1,P=v.length;P<=y;++P)v[P]=[];break;case"M":M=parseInt(B[A].slice(1))/20;break;case"F":break;case"G":break;case"P":x=w[parseInt(B[A].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(S=B[A].slice(1).split(" "),P=parseInt(S[0],10);P<=parseInt(S[1],10);++P)M=parseInt(S[2],10),T[P-1]=M===0?{hidden:!0}:{wch:M},tA(T[P-1]);break;case"C":h=parseInt(B[A].slice(1))-1,T[h]||(T[h]={});break;case"R":y=parseInt(B[A].slice(1))-1,k[y]||(k[y]={}),M>0?(k[y].hpt=M,k[y].hpx=Km(M)):M===0&&(k[y].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+N)}G<1&&(x=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+N)}}return k.length>0&&(C["!rows"]=k),T.length>0&&(C["!cols"]=T),p&&p.sheetRows&&(v=v.slice(0,p.sheetRows)),[v,C]}function c(m,p){var _=n(m,p),y=_[0],h=_[1],d=eg(y,p);return Es(h).forEach(function(A){d[A]=h[A]}),d}function u(m,p){return lA(c(m,p),p)}function f(m,p,_,y){var h="C;Y"+(_+1)+";X"+(y+1)+";K";switch(m.t){case"n":h+=m.v||0,m.f&&!m.F&&(h+=";E"+O_(m.f,{r:_,c:y}));break;case"b":h+=m.v?"TRUE":"FALSE";break;case"e":h+=m.w||m.v;break;case"d":h+='"'+(m.w||m.v)+'"';break;case"s":h+='"'+m.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return h}function o(m,p){p.forEach(function(_,y){var h="F;W"+(y+1)+" "+(y+1)+" ";_.hidden?h+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=G1(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=$1(_.wpx)),typeof _.wch=="number"&&(h+=Math.round(_.wch))),h.charAt(h.length-1)!=" "&&m.push(h)})}function l(m,p){p.forEach(function(_,y){var h="F;";_.hidden?h+="M0;":_.hpt?h+="M"+20*_.hpt+";":_.hpx&&(h+="M"+20*K1(_.hpx)+";"),h.length>2&&m.push(h+"R"+(y+1))})}function g(m,p){var _=["ID;PWXL;N;E"],y=[],h=mi(m["!ref"]),d,A=Array.isArray(m),v=`\r
`;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),m["!cols"]&&o(_,m["!cols"]),m["!rows"]&&l(_,m["!rows"]),_.push("B;Y"+(h.e.r-h.s.r+1)+";X"+(h.e.c-h.s.c+1)+";D"+[h.s.c,h.s.r,h.e.c,h.e.r].join(" "));for(var w=h.s.r;w<=h.e.r;++w)for(var x=h.s.c;x<=h.e.c;++x){var C=da({r:w,c:x});d=A?(m[w]||[])[x]:m[C],!(!d||d.v==null&&(!d.f||d.F))&&y.push(f(d,m,w,x))}return _.join(v)+v+y.join(v)+v+"E"+v}return{to_workbook:u,to_sheet:c,from_sheet:g}})(),v5=(function(){function a(t,c){switch(c.type){case"base64":return s(hu(t),c);case"binary":return s(t,c);case"buffer":return s(Ga&&Buffer.isBuffer(t)?t.toString("binary"):oA(t),c);case"array":return s(M0(t),c)}throw new Error("Unrecognized type "+c.type)}function s(t,c){for(var u=t.split(`
`),f=-1,o=-1,l=0,g=[];l!==u.length;++l){if(u[l].trim()==="BOT"){g[++f]=[],o=0;continue}if(!(f<0)){var m=u[l].trim().split(","),p=m[0],_=m[1];++l;for(var y=u[l]||"";(y.match(/["]/g)||[]).length&1&&l<u.length-1;)y+=`
`+u[++l];switch(y=y.trim(),+p){case-1:if(y==="BOT"){g[++f]=[],o=0;continue}else if(y!=="EOD")throw new Error("Unrecognized DIF special command "+y);break;case 0:y==="TRUE"?g[f][o]=!0:y==="FALSE"?g[f][o]=!1:isNaN(Uc(_))?isNaN(Gm(_).getDate())?g[f][o]=_:g[f][o]=qi(_):g[f][o]=Uc(_),++o;break;case 1:y=y.slice(1,y.length-1),y=y.replace(/""/g,'"'),y&&y.match(/^=".*"$/)&&(y=y.slice(2,-1)),g[f][o++]=y!==""?y:null;break}if(y==="EOD")break}}return c&&c.sheetRows&&(g=g.slice(0,c.sheetRows)),g}function r(t,c){return eg(a(t,c),c)}function i(t,c){return lA(r(t,c),c)}var n=(function(){var t=function(f,o,l,g,m){f.push(o),f.push(l+","+g),f.push('"'+m.replace(/"/g,'""')+'"')},c=function(f,o,l,g){f.push(o+","+l),f.push(o==1?'"'+g.replace(/"/g,'""')+'"':g)};return function(f){var o=[],l=mi(f["!ref"]),g,m=Array.isArray(f);t(o,"TABLE",0,1,"sheetjs"),t(o,"VECTORS",0,l.e.r-l.s.r+1,""),t(o,"TUPLES",0,l.e.c-l.s.c+1,""),t(o,"DATA",0,0,"");for(var p=l.s.r;p<=l.e.r;++p){c(o,-1,0,"BOT");for(var _=l.s.c;_<=l.e.c;++_){var y=da({r:p,c:_});if(g=m?(f[p]||[])[_]:f[y],!g){c(o,1,0,"");continue}switch(g.t){case"n":var h=g.w;!h&&g.v!=null&&(h=g.v),h==null?g.f&&!g.F?c(o,1,0,"="+g.f):c(o,1,0,""):c(o,0,h,"V");break;case"b":c(o,0,g.v?1:0,g.v?"TRUE":"FALSE");break;case"s":c(o,1,0,isNaN(g.v)?g.v:'="'+g.v+'"');break;case"d":g.w||(g.w=tc(g.z||fa[14],Ao(qi(g.v)))),c(o,0,g.w,"V");break;default:c(o,1,0,"")}}}c(o,-1,0,"EOD");var d=`\r
`,A=o.join(d);return A}})();return{to_workbook:i,to_sheet:r,from_sheet:n}})(),y5=(function(){function a(g){return g.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function s(g){return g.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(g,m){for(var p=g.split(`
`),_=-1,y=-1,h=0,d=[];h!==p.length;++h){var A=p[h].trim().split(":");if(A[0]==="cell"){var v=ps(A[1]);if(d.length<=v.r)for(_=d.length;_<=v.r;++_)d[_]||(d[_]=[]);switch(_=v.r,y=v.c,A[2]){case"t":d[_][y]=a(A[3]);break;case"v":d[_][y]=+A[3];break;case"vtf":var w=A[A.length-1];case"vtc":switch(A[3]){case"nl":d[_][y]=!!+A[4];break;default:d[_][y]=+A[4];break}A[2]=="vtf"&&(d[_][y]=[d[_][y],w])}}}return m&&m.sheetRows&&(d=d.slice(0,m.sheetRows)),d}function i(g,m){return eg(r(g,m),m)}function n(g,m){return lA(i(g,m),m)}var t=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),c=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,u=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),f="--SocialCalcSpreadsheetControlSave--";function o(g){if(!g||!g["!ref"])return"";for(var m=[],p=[],_,y="",h=Gl(g["!ref"]),d=Array.isArray(g),A=h.s.r;A<=h.e.r;++A)for(var v=h.s.c;v<=h.e.c;++v)if(y=da({r:A,c:v}),_=d?(g[A]||[])[v]:g[y],!(!_||_.v==null||_.t==="z")){switch(p=["cell",y,"t"],_.t){case"s":case"str":p.push(s(_.v));break;case"n":_.f?(p[2]="vtf",p[3]="n",p[4]=_.v,p[5]=s(_.f)):(p[2]="v",p[3]=_.v);break;case"b":p[2]="vt"+(_.f?"f":"c"),p[3]="nl",p[4]=_.v?"1":"0",p[5]=s(_.f||(_.v?"TRUE":"FALSE"));break;case"d":var w=Ao(qi(_.v));p[2]="vtc",p[3]="nd",p[4]=""+w,p[5]=_.w||tc(_.z||fa[14],w);break;case"e":continue}m.push(p.join(":"))}return m.push("sheet:c:"+(h.e.c-h.s.c+1)+":r:"+(h.e.r-h.s.r+1)+":tvf:1"),m.push("valueformat:1:text-wiki"),m.join(`
`)}function l(g){return[t,c,u,c,o(g),f].join(`
`)}return{to_workbook:n,to_sheet:i,from_sheet:l}})(),$m=(function(){function a(l,g,m,p,_){_.raw?g[m][p]=l:l===""||(l==="TRUE"?g[m][p]=!0:l==="FALSE"?g[m][p]=!1:isNaN(Uc(l))?isNaN(Gm(l).getDate())?g[m][p]=l:g[m][p]=qi(l):g[m][p]=Uc(l))}function s(l,g){var m=g||{},p=[];if(!l||l.length===0)return p;for(var _=l.split(/[\r\n]/),y=_.length-1;y>=0&&_[y].length===0;)--y;for(var h=10,d=0,A=0;A<=y;++A)d=_[A].indexOf(" "),d==-1?d=_[A].length:d++,h=Math.max(h,d);for(A=0;A<=y;++A){p[A]=[];var v=0;for(a(_[A].slice(0,h).trim(),p,A,v,m),v=1;v<=(_[A].length-h)/10+1;++v)a(_[A].slice(h+(v-1)*10,h+v*10).trim(),p,A,v,m)}return m.sheetRows&&(p=p.slice(0,m.sheetRows)),p}var r={44:",",9:"	",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function n(l){for(var g={},m=!1,p=0,_=0;p<l.length;++p)(_=l.charCodeAt(p))==34?m=!m:!m&&_ in r&&(g[_]=(g[_]||0)+1);_=[];for(p in g)Object.prototype.hasOwnProperty.call(g,p)&&_.push([g[p],p]);if(!_.length){g=i;for(p in g)Object.prototype.hasOwnProperty.call(g,p)&&_.push([g[p],p])}return _.sort(function(y,h){return y[0]-h[0]||i[y[1]]-i[h[1]]}),r[_.pop()[1]]||44}function t(l,g){var m=g||{},p="",_=m.dense?[]:{},y={s:{c:0,r:0},e:{c:0,r:0}};l.slice(0,4)=="sep="?l.charCodeAt(5)==13&&l.charCodeAt(6)==10?(p=l.charAt(4),l=l.slice(7)):l.charCodeAt(5)==13||l.charCodeAt(5)==10?(p=l.charAt(4),l=l.slice(6)):p=n(l.slice(0,1024)):m&&m.FS?p=m.FS:p=n(l.slice(0,1024));var h=0,d=0,A=0,v=0,w=0,x=p.charCodeAt(0),C=!1,k=0,T=l.charCodeAt(0);l=l.replace(/\r\n/mg,`
`);var S=m.dateNF!=null?$E(m.dateNF):null;function M(){var P=l.slice(v,w),N={};if(P.charAt(0)=='"'&&P.charAt(P.length-1)=='"'&&(P=P.slice(1,-1).replace(/""/g,'"')),P.length===0)N.t="z";else if(m.raw)N.t="s",N.v=P;else if(P.trim().length===0)N.t="s",N.v=P;else if(P.charCodeAt(0)==61)P.charCodeAt(1)==34&&P.charCodeAt(P.length-1)==34?(N.t="s",N.v=P.slice(2,-1).replace(/""/g,'"')):_D(P)?(N.t="n",N.f=P.slice(1)):(N.t="s",N.v=P);else if(P=="TRUE")N.t="b",N.v=!0;else if(P=="FALSE")N.t="b",N.v=!1;else if(!isNaN(A=Uc(P)))N.t="n",m.cellText!==!1&&(N.w=P),N.v=A;else if(!isNaN(Gm(P).getDate())||S&&P.match(S)){N.z=m.dateNF||fa[14];var B=0;S&&P.match(S)&&(P=KE(P,m.dateNF,P.match(S)||[]),B=1),m.cellDates?(N.t="d",N.v=qi(P,B)):(N.t="n",N.v=Ao(qi(P,B))),m.cellText!==!1&&(N.w=tc(N.z,N.v instanceof Date?Ao(N.v):N.v)),m.cellNF||delete N.z}else N.t="s",N.v=P;if(N.t=="z"||(m.dense?(_[h]||(_[h]=[]),_[h][d]=N):_[da({c:d,r:h})]=N),v=w+1,T=l.charCodeAt(v),y.e.c<d&&(y.e.c=d),y.e.r<h&&(y.e.r=h),k==x)++d;else if(d=0,++h,m.sheetRows&&m.sheetRows<=h)return!0}e:for(;w<l.length;++w)switch(k=l.charCodeAt(w)){case 34:T===34&&(C=!C);break;case x:case 10:case 13:if(!C&&M())break e;break}return w-v>0&&M(),_["!ref"]=Ma(y),_}function c(l,g){return!(g&&g.PRN)||g.FS||l.slice(0,4)=="sep="||l.indexOf("	")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?t(l,g):eg(s(l,g),g)}function u(l,g){var m="",p=g.type=="string"?[0,0,0,0]:Q_(l,g);switch(g.type){case"base64":m=hu(l);break;case"binary":m=l;break;case"buffer":g.codepage==65001?m=l.toString("utf8"):g.codepage&&typeof U1<"u"||(m=Ga&&Buffer.isBuffer(l)?l.toString("binary"):oA(l));break;case"array":m=M0(l);break;case"string":m=l;break;default:throw new Error("Unrecognized type "+g.type)}return p[0]==239&&p[1]==187&&p[2]==191?m=Mi(m.slice(3)):g.type!="string"&&g.type!="buffer"&&g.codepage==65001?m=Mi(m):g.type=="binary"&&typeof U1<"u",m.slice(0,19)=="socialcalc:version:"?y5.to_sheet(g.type=="string"?m:Mi(m),g):c(m,g)}function f(l,g){return lA(u(l,g),g)}function o(l){for(var g=[],m=mi(l["!ref"]),p,_=Array.isArray(l),y=m.s.r;y<=m.e.r;++y){for(var h=[],d=m.s.c;d<=m.e.c;++d){var A=da({r:y,c:d});if(p=_?(l[y]||[])[d]:l[A],!p||p.v==null){h.push("          ");continue}for(var v=(p.w||(Md(p),p.w)||"").slice(0,10);v.length<10;)v+=" ";h.push(v+(d===0?" ":""))}g.push(h.join(""))}return g.join(`
`)}return{to_workbook:f,to_sheet:u,from_sheet:o}})();function lM(a,s){var r=s||{},i=!!r.WTF;r.WTF=!0;try{var n=g5.to_workbook(a,r);return r.WTF=i,n}catch(t){if(r.WTF=i,!t.message.match(/SYLK bad record ID/)&&i)throw t;return $m.to_workbook(a,s)}}var S0=(function(){function a(Q,le,G){if(Q){jo(Q,Q.l||0);for(var fe=G.Enum||V;Q.l<Q.length;){var ie=Q.read_shift(2),he=fe[ie]||fe[65535],Y=Q.read_shift(2),K=Q.l+Y,oe=he.f&&he.f(Q,Y,G);if(Q.l=K,le(oe,he,ie))return}}}function s(Q,le){switch(le.type){case"base64":return r(cu(hu(Q)),le);case"binary":return r(cu(Q),le);case"buffer":case"array":return r(Q,le)}throw"Unsupported type "+le.type}function r(Q,le){if(!Q)return Q;var G=le||{},fe=G.dense?[]:{},ie="Sheet1",he="",Y=0,K={},oe=[],pe=[],ve={s:{r:0,c:0},e:{r:0,c:0}},ge=G.sheetRows||0;if(Q[2]==0&&(Q[3]==8||Q[3]==9)&&Q.length>=16&&Q[14]==5&&Q[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(Q[2]==2)G.Enum=V,a(Q,function(ye,Se,Fe){switch(Fe){case 0:G.vers=ye,ye>=4096&&(G.qpro=!0);break;case 6:ve=ye;break;case 204:ye&&(he=ye);break;case 222:he=ye;break;case 15:case 51:G.qpro||(ye[1].v=ye[1].v.slice(1));case 13:case 14:case 16:Fe==14&&(ye[2]&112)==112&&(ye[2]&15)>1&&(ye[2]&15)<15&&(ye[1].z=G.dateNF||fa[14],G.cellDates&&(ye[1].t="d",ye[1].v=_y(ye[1].v))),G.qpro&&ye[3]>Y&&(fe["!ref"]=Ma(ve),K[ie]=fe,oe.push(ie),fe=G.dense?[]:{},ve={s:{r:0,c:0},e:{r:0,c:0}},Y=ye[3],ie=he||"Sheet"+(Y+1),he="");var Ve=G.dense?(fe[ye[0].r]||[])[ye[0].c]:fe[da(ye[0])];if(Ve){Ve.t=ye[1].t,Ve.v=ye[1].v,ye[1].z!=null&&(Ve.z=ye[1].z),ye[1].f!=null&&(Ve.f=ye[1].f);break}G.dense?(fe[ye[0].r]||(fe[ye[0].r]=[]),fe[ye[0].r][ye[0].c]=ye[1]):fe[da(ye[0])]=ye[1];break}},G);else if(Q[2]==26||Q[2]==14)G.Enum=W,Q[2]==14&&(G.qpro=!0,Q.l=0),a(Q,function(ye,Se,Fe){switch(Fe){case 204:ie=ye;break;case 22:ye[1].v=ye[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ye[3]>Y&&(fe["!ref"]=Ma(ve),K[ie]=fe,oe.push(ie),fe=G.dense?[]:{},ve={s:{r:0,c:0},e:{r:0,c:0}},Y=ye[3],ie="Sheet"+(Y+1)),ge>0&&ye[0].r>=ge)break;G.dense?(fe[ye[0].r]||(fe[ye[0].r]=[]),fe[ye[0].r][ye[0].c]=ye[1]):fe[da(ye[0])]=ye[1],ve.e.c<ye[0].c&&(ve.e.c=ye[0].c),ve.e.r<ye[0].r&&(ve.e.r=ye[0].r);break;case 27:ye[14e3]&&(pe[ye[14e3][0]]=ye[14e3][1]);break;case 1537:pe[ye[0]]=ye[1],ye[0]==Y&&(ie=ye[1]);break}},G);else throw new Error("Unrecognized LOTUS BOF "+Q[2]);if(fe["!ref"]=Ma(ve),K[he||ie]=fe,oe.push(he||ie),!pe.length)return{SheetNames:oe,Sheets:K};for(var ue={},Te=[],Ee=0;Ee<pe.length;++Ee)K[oe[Ee]]?(Te.push(pe[Ee]||oe[Ee]),ue[pe[Ee]]=K[pe[Ee]]||K[oe[Ee]]):(Te.push(pe[Ee]),ue[pe[Ee]]={"!ref":"A1"});return{SheetNames:Te,Sheets:ue}}function i(Q,le){var G=le||{};if(+G.codepage>=0&&Dc(+G.codepage),G.type=="string")throw new Error("Cannot write WK1 to JS string");var fe=Wl(),ie=mi(Q["!ref"]),he=Array.isArray(Q),Y=[];pn(fe,0,t(1030)),pn(fe,6,f(ie));for(var K=Math.min(ie.e.r,8191),oe=ie.s.r;oe<=K;++oe)for(var pe=zs(oe),ve=ie.s.c;ve<=ie.e.c;++ve){oe===ie.s.r&&(Y[ve]=As(ve));var ge=Y[ve]+pe,ue=he?(Q[oe]||[])[ve]:Q[ge];if(!(!ue||ue.t=="z"))if(ue.t=="n")(ue.v|0)==ue.v&&ue.v>=-32768&&ue.v<=32767?pn(fe,13,p(oe,ve,ue.v)):pn(fe,14,y(oe,ve,ue.v));else{var Te=Md(ue);pn(fe,15,g(oe,ve,Te.slice(0,239)))}}return pn(fe,1),fe.end()}function n(Q,le){var G=le||{};if(+G.codepage>=0&&Dc(+G.codepage),G.type=="string")throw new Error("Cannot write WK3 to JS string");var fe=Wl();pn(fe,0,c(Q));for(var ie=0,he=0;ie<Q.SheetNames.length;++ie)(Q.Sheets[Q.SheetNames[ie]]||{})["!ref"]&&pn(fe,27,U(Q.SheetNames[ie],he++));var Y=0;for(ie=0;ie<Q.SheetNames.length;++ie){var K=Q.Sheets[Q.SheetNames[ie]];if(!(!K||!K["!ref"])){for(var oe=mi(K["!ref"]),pe=Array.isArray(K),ve=[],ge=Math.min(oe.e.r,8191),ue=oe.s.r;ue<=ge;++ue)for(var Te=zs(ue),Ee=oe.s.c;Ee<=oe.e.c;++Ee){ue===oe.s.r&&(ve[Ee]=As(Ee));var ye=ve[Ee]+Te,Se=pe?(K[ue]||[])[Ee]:K[ye];if(!(!Se||Se.t=="z"))if(Se.t=="n")pn(fe,23,M(ue,Ee,Y,Se.v));else{var Fe=Md(Se);pn(fe,22,k(ue,Ee,Y,Fe.slice(0,239)))}}++Y}}return pn(fe,1),fe.end()}function t(Q){var le=Er(2);return le.write_shift(2,Q),le}function c(Q){var le=Er(26);le.write_shift(2,4096),le.write_shift(2,4),le.write_shift(4,0);for(var G=0,fe=0,ie=0,he=0;he<Q.SheetNames.length;++he){var Y=Q.SheetNames[he],K=Q.Sheets[Y];if(!(!K||!K["!ref"])){++ie;var oe=Gl(K["!ref"]);G<oe.e.r&&(G=oe.e.r),fe<oe.e.c&&(fe=oe.e.c)}}return G>8191&&(G=8191),le.write_shift(2,G),le.write_shift(1,ie),le.write_shift(1,fe),le.write_shift(2,0),le.write_shift(2,0),le.write_shift(1,1),le.write_shift(1,2),le.write_shift(4,0),le.write_shift(4,0),le}function u(Q,le,G){var fe={s:{c:0,r:0},e:{c:0,r:0}};return le==8&&G.qpro?(fe.s.c=Q.read_shift(1),Q.l++,fe.s.r=Q.read_shift(2),fe.e.c=Q.read_shift(1),Q.l++,fe.e.r=Q.read_shift(2),fe):(fe.s.c=Q.read_shift(2),fe.s.r=Q.read_shift(2),le==12&&G.qpro&&(Q.l+=2),fe.e.c=Q.read_shift(2),fe.e.r=Q.read_shift(2),le==12&&G.qpro&&(Q.l+=2),fe.s.c==65535&&(fe.s.c=fe.e.c=fe.s.r=fe.e.r=0),fe)}function f(Q){var le=Er(8);return le.write_shift(2,Q.s.c),le.write_shift(2,Q.s.r),le.write_shift(2,Q.e.c),le.write_shift(2,Q.e.r),le}function o(Q,le,G){var fe=[{c:0,r:0},{t:"n",v:0},0,0];return G.qpro&&G.vers!=20768?(fe[0].c=Q.read_shift(1),fe[3]=Q.read_shift(1),fe[0].r=Q.read_shift(2),Q.l+=2):(fe[2]=Q.read_shift(1),fe[0].c=Q.read_shift(2),fe[0].r=Q.read_shift(2)),fe}function l(Q,le,G){var fe=Q.l+le,ie=o(Q,le,G);if(ie[1].t="s",G.vers==20768){Q.l++;var he=Q.read_shift(1);return ie[1].v=Q.read_shift(he,"utf8"),ie}return G.qpro&&Q.l++,ie[1].v=Q.read_shift(fe-Q.l,"cstr"),ie}function g(Q,le,G){var fe=Er(7+G.length);fe.write_shift(1,255),fe.write_shift(2,le),fe.write_shift(2,Q),fe.write_shift(1,39);for(var ie=0;ie<fe.length;++ie){var he=G.charCodeAt(ie);fe.write_shift(1,he>=128?95:he)}return fe.write_shift(1,0),fe}function m(Q,le,G){var fe=o(Q,le,G);return fe[1].v=Q.read_shift(2,"i"),fe}function p(Q,le,G){var fe=Er(7);return fe.write_shift(1,255),fe.write_shift(2,le),fe.write_shift(2,Q),fe.write_shift(2,G,"i"),fe}function _(Q,le,G){var fe=o(Q,le,G);return fe[1].v=Q.read_shift(8,"f"),fe}function y(Q,le,G){var fe=Er(13);return fe.write_shift(1,255),fe.write_shift(2,le),fe.write_shift(2,Q),fe.write_shift(8,G,"f"),fe}function h(Q,le,G){var fe=Q.l+le,ie=o(Q,le,G);if(ie[1].v=Q.read_shift(8,"f"),G.qpro)Q.l=fe;else{var he=Q.read_shift(2);w(Q.slice(Q.l,Q.l+he),ie),Q.l+=he}return ie}function d(Q,le,G){var fe=le&32768;return le&=-32769,le=(fe?Q:0)+(le>=8192?le-16384:le),(fe?"":"$")+(G?As(le):zs(le))}var A={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]},v=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function w(Q,le){jo(Q,0);for(var G=[],fe=0,ie="",he="",Y="",K="";Q.l<Q.length;){var oe=Q[Q.l++];switch(oe){case 0:G.push(Q.read_shift(8,"f"));break;case 1:he=d(le[0].c,Q.read_shift(2),!0),ie=d(le[0].r,Q.read_shift(2),!1),G.push(he+ie);break;case 2:{var pe=d(le[0].c,Q.read_shift(2),!0),ve=d(le[0].r,Q.read_shift(2),!1);he=d(le[0].c,Q.read_shift(2),!0),ie=d(le[0].r,Q.read_shift(2),!1),G.push(pe+ve+":"+he+ie)}break;case 3:if(Q.l<Q.length){console.error("WK1 premature formula end");return}break;case 4:G.push("("+G.pop()+")");break;case 5:G.push(Q.read_shift(2));break;case 6:{for(var ge="";oe=Q[Q.l++];)ge+=String.fromCharCode(oe);G.push('"'+ge.replace(/"/g,'""')+'"')}break;case 8:G.push("-"+G.pop());break;case 23:G.push("+"+G.pop());break;case 22:G.push("NOT("+G.pop()+")");break;case 20:case 21:K=G.pop(),Y=G.pop(),G.push(["AND","OR"][oe-20]+"("+Y+","+K+")");break;default:if(oe<32&&v[oe])K=G.pop(),Y=G.pop(),G.push(Y+v[oe]+K);else if(A[oe]){if(fe=A[oe][1],fe==69&&(fe=Q[Q.l++]),fe>G.length){console.error("WK1 bad formula parse 0x"+oe.toString(16)+":|"+G.join("|")+"|");return}var ue=G.slice(-fe);G.length-=fe,G.push(A[oe][0]+"("+ue.join(",")+")")}else return oe<=7?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=24?console.error("WK1 unsupported op "+oe.toString(16)):oe<=30?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=115?console.error("WK1 unsupported function opcode "+oe.toString(16)):console.error("WK1 unrecognized opcode "+oe.toString(16))}}G.length==1?le[1].f=""+G[0]:console.error("WK1 bad formula parse |"+G.join("|")+"|")}function x(Q){var le=[{c:0,r:0},{t:"n",v:0},0];return le[0].r=Q.read_shift(2),le[3]=Q[Q.l++],le[0].c=Q[Q.l++],le}function C(Q,le){var G=x(Q);return G[1].t="s",G[1].v=Q.read_shift(le-4,"cstr"),G}function k(Q,le,G,fe){var ie=Er(6+fe.length);ie.write_shift(2,Q),ie.write_shift(1,G),ie.write_shift(1,le),ie.write_shift(1,39);for(var he=0;he<fe.length;++he){var Y=fe.charCodeAt(he);ie.write_shift(1,Y>=128?95:Y)}return ie.write_shift(1,0),ie}function T(Q,le){var G=x(Q);G[1].v=Q.read_shift(2);var fe=G[1].v>>1;if(G[1].v&1)switch(fe&7){case 0:fe=(fe>>3)*5e3;break;case 1:fe=(fe>>3)*500;break;case 2:fe=(fe>>3)/20;break;case 3:fe=(fe>>3)/200;break;case 4:fe=(fe>>3)/2e3;break;case 5:fe=(fe>>3)/2e4;break;case 6:fe=(fe>>3)/16;break;case 7:fe=(fe>>3)/64;break}return G[1].v=fe,G}function S(Q,le){var G=x(Q),fe=Q.read_shift(4),ie=Q.read_shift(4),he=Q.read_shift(2);if(he==65535)return fe===0&&ie===3221225472?(G[1].t="e",G[1].v=15):fe===0&&ie===3489660928?(G[1].t="e",G[1].v=42):G[1].v=0,G;var Y=he&32768;return he=(he&32767)-16446,G[1].v=(1-Y*2)*(ie*Math.pow(2,he+32)+fe*Math.pow(2,he)),G}function M(Q,le,G,fe){var ie=Er(14);if(ie.write_shift(2,Q),ie.write_shift(1,G),ie.write_shift(1,le),fe==0)return ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(2,65535),ie;var he=0,Y=0,K=0,oe=0;return fe<0&&(he=1,fe=-fe),Y=Math.log2(fe)|0,fe/=Math.pow(2,Y-31),oe=fe>>>0,(oe&2147483648)==0&&(fe/=2,++Y,oe=fe>>>0),fe-=oe,oe|=2147483648,oe>>>=0,fe*=Math.pow(2,32),K=fe>>>0,ie.write_shift(4,K),ie.write_shift(4,oe),Y+=16383+(he?32768:0),ie.write_shift(2,Y),ie}function P(Q,le){var G=S(Q);return Q.l+=le-14,G}function N(Q,le){var G=x(Q),fe=Q.read_shift(4);return G[1].v=fe>>6,G}function B(Q,le){var G=x(Q),fe=Q.read_shift(8,"f");return G[1].v=fe,G}function O(Q,le){var G=B(Q);return Q.l+=le-10,G}function I(Q,le){return Q[Q.l+le-1]==0?Q.read_shift(le,"cstr"):""}function F(Q,le){var G=Q[Q.l++];G>le-1&&(G=le-1);for(var fe="";fe.length<G;)fe+=String.fromCharCode(Q[Q.l++]);return fe}function L(Q,le,G){if(!(!G.qpro||le<21)){var fe=Q.read_shift(1);Q.l+=17,Q.l+=1,Q.l+=2;var ie=Q.read_shift(le-21,"cstr");return[fe,ie]}}function R(Q,le){for(var G={},fe=Q.l+le;Q.l<fe;){var ie=Q.read_shift(2);if(ie==14e3){for(G[ie]=[0,""],G[ie][0]=Q.read_shift(2);Q[Q.l];)G[ie][1]+=String.fromCharCode(Q[Q.l]),Q.l++;Q.l++}}return G}function U(Q,le){var G=Er(5+Q.length);G.write_shift(2,14e3),G.write_shift(2,le);for(var fe=0;fe<Q.length;++fe){var ie=Q.charCodeAt(fe);G[G.l++]=ie>127?95:ie}return G[G.l++]=0,G}var V={0:{n:"BOF",f:ro},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:u},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:_},15:{n:"LABEL",f:l},16:{n:"FORMULA",f:h},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:l},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:I},222:{n:"SHEETNAMELP",f:F},65535:{n:""}},W={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:C},23:{n:"NUMBER17",f:S},24:{n:"NUMBER18",f:T},25:{n:"FORMULA19",f:P},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:R},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:N},38:{n:"??"},39:{n:"NUMBER27",f:B},40:{n:"FORMULA28",f:O},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:I},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:L},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:i,book_to_wk3:n,to_workbook:s}})();function uM(a){var s={},r=a.match(ol),i=0,n=!1;if(r)for(;i!=r.length;++i){var t=ma(r[i]);switch(t[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!t.val)break;case"<shadow>":case"<shadow/>":s.shadow=1;break;case"</shadow>":break;case"<charset":if(t.val=="1")break;s.cp=s_[parseInt(t.val,10)];break;case"<outline":if(!t.val)break;case"<outline>":case"<outline/>":s.outline=1;break;case"</outline>":break;case"<rFont":s.name=t.val;break;case"<sz":s.sz=t.val;break;case"<strike":if(!t.val)break;case"<strike>":case"<strike/>":s.strike=1;break;case"</strike>":break;case"<u":if(!t.val)break;switch(t.val){case"double":s.uval="double";break;case"singleAccounting":s.uval="single-accounting";break;case"doubleAccounting":s.uval="double-accounting";break}case"<u>":case"<u/>":s.u=1;break;case"</u>":break;case"<b":if(t.val=="0")break;case"<b>":case"<b/>":s.b=1;break;case"</b>":break;case"<i":if(t.val=="0")break;case"<i>":case"<i/>":s.i=1;break;case"</i>":break;case"<color":t.rgb&&(s.color=t.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":s.family=t.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":s.valign=t.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(t[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+t[0])}}return s}var cM=(function(){var a=H1("t"),s=H1("rPr");function r(t){var c=t.match(a);if(!c)return{t:"s",v:""};var u={t:"s",v:hi(c[1])},f=t.match(s);return f&&(u.s=uM(f[1])),u}var i=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(c){return c.replace(i,"").split(n).map(r).filter(function(u){return u.v})}})(),fM=(function(){var s=/(\r\n|\n)/g;function r(n,t,c){var u=[];n.u&&u.push("text-decoration: underline;"),n.uval&&u.push("text-underline-style:"+n.uval+";"),n.sz&&u.push("font-size:"+n.sz+"pt;"),n.outline&&u.push("text-effect: outline;"),n.shadow&&u.push("text-shadow: auto;"),t.push('<span style="'+u.join("")+'">'),n.b&&(t.push("<b>"),c.push("</b>")),n.i&&(t.push("<i>"),c.push("</i>")),n.strike&&(t.push("<s>"),c.push("</s>"));var f=n.valign||"";return f=="superscript"||f=="super"?f="sup":f=="subscript"&&(f="sub"),f!=""&&(t.push("<"+f+">"),c.push("</"+f+">")),c.push("</span>"),n}function i(n){var t=[[],n.v,[]];return n.v?(n.s&&r(n.s,t[0],t[2]),t[0].join("")+t[1].replace(s,"<br/>")+t[2].join("")):""}return function(t){return t.map(i).join("")}})(),dM=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,hM=/<(?:\w+:)?r>/,AM=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function I_(a,s){var r=s?s.cellHTML:!0,i={};return a?(a.match(/^\s*<(?:\w+:)?t[^>]*>/)?(i.t=hi(Mi(a.slice(a.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),i.r=Mi(a),r&&(i.h=p_(i.t))):a.match(hM)&&(i.r=Mi(a),i.t=hi(Mi((a.replace(AM,"").match(dM)||[]).join("").replace(ol,""))),r&&(i.h=fM(cM(i.r)))),i):{t:""}}var pM=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,mM=/<(?:\w+:)?(?:si|sstItem)>/g,gM=/<\/(?:\w+:)?(?:si|sstItem)>/;function vM(a,s){var r=[],i="";if(!a)return r;var n=a.match(pM);if(n){i=n[2].replace(mM,"").split(gM);for(var t=0;t!=i.length;++t){var c=I_(i[t].trim(),s);c!=null&&(r[r.length]=c)}n=ma(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}var yM=/^\s|\s$|[\t\n\r]/;function b5(a,s){if(!s.bookSST)return"";var r=[Vs];r[r.length]=An("sst",null,{xmlns:H0[0],count:a.Count,uniqueCount:a.Unique});for(var i=0;i!=a.length;++i)if(a[i]!=null){var n=a[i],t="<si>";n.r?t+=n.r:(t+="<t",n.t||(n.t=""),n.t.match(yM)&&(t+=' xml:space="preserve"'),t+=">"+Ii(n.t)+"</t>"),t+="</si>",r[r.length]=t}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function bM(a){return[a.read_shift(4),a.read_shift(4)]}function wM(a,s){var r=[],i=!1;return Pd(a,function(t,c,u){switch(u){case 159:r.Count=t[0],r.Unique=t[1];break;case 19:r.push(t);break;case 160:return!0;case 35:i=!0;break;case 36:i=!1;break;default:if(c.T,!i||s.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}),r}function _M(a,s){return s||(s=Er(8)),s.write_shift(4,a.Count),s.write_shift(4,a.Unique),s}var xM=DI;function CM(a){var s=Wl();Vr(s,159,_M(a));for(var r=0;r<a.length;++r)Vr(s,19,xM(a[r]));return Vr(s,160),s.end()}function w5(a){for(var s=[],r=a.split(""),i=0;i<r.length;++i)s[i]=r[i].charCodeAt(0);return s}function Bd(a,s){var r={};return r.Major=a.read_shift(2),r.Minor=a.read_shift(2),s>=4&&(a.l+=s-4),r}function SM(a){var s={};return s.id=a.read_shift(0,"lpp4"),s.R=Bd(a,4),s.U=Bd(a,4),s.W=Bd(a,4),s}function kM(a){for(var s=a.read_shift(4),r=a.l+s-4,i={},n=a.read_shift(4),t=[];n-- >0;)t.push({t:a.read_shift(4),v:a.read_shift(0,"lpp4")});if(i.name=a.read_shift(0,"lpp4"),i.comps=t,a.l!=r)throw new Error("Bad DataSpaceMapEntry: "+a.l+" != "+r);return i}function TM(a){var s=[];a.l+=4;for(var r=a.read_shift(4);r-- >0;)s.push(kM(a));return s}function EM(a){var s=[];a.l+=4;for(var r=a.read_shift(4);r-- >0;)s.push(a.read_shift(0,"lpp4"));return s}function IM(a){var s={};return a.read_shift(4),a.l+=4,s.id=a.read_shift(0,"lpp4"),s.name=a.read_shift(0,"lpp4"),s.R=Bd(a,4),s.U=Bd(a,4),s.W=Bd(a,4),s}function BM(a){var s=IM(a);if(s.ename=a.read_shift(0,"8lpp4"),s.blksz=a.read_shift(4),s.cmode=a.read_shift(4),a.read_shift(4)!=4)throw new Error("Bad !Primary record");return s}function _5(a,s){var r=a.l+s,i={};i.Flags=a.read_shift(4)&63,a.l+=4,i.AlgID=a.read_shift(4);var n=!1;switch(i.AlgID){case 26126:case 26127:case 26128:n=i.Flags==36;break;case 26625:n=i.Flags==4;break;case 0:n=i.Flags==16||i.Flags==4||i.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+i.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return i.AlgIDHash=a.read_shift(4),i.KeySize=a.read_shift(4),i.ProviderType=a.read_shift(4),a.l+=8,i.CSPName=a.read_shift(r-a.l>>1,"utf16le"),a.l=r,i}function x5(a,s){var r={},i=a.l+s;return a.l+=4,r.Salt=a.slice(a.l,a.l+16),a.l+=16,r.Verifier=a.slice(a.l,a.l+16),a.l+=16,a.read_shift(4),r.VerifierHash=a.slice(a.l,i),a.l=i,r}function FM(a){var s=Bd(a);switch(s.Minor){case 2:return[s.Minor,MM(a)];case 3:return[s.Minor,DM()];case 4:return[s.Minor,OM(a)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+s.Minor)}function MM(a){var s=a.read_shift(4);if((s&63)!=36)throw new Error("EncryptionInfo mismatch");var r=a.read_shift(4),i=_5(a,r),n=x5(a,a.length-a.l);return{t:"Std",h:i,v:n}}function DM(){throw new Error("File is password-protected: ECMA-376 Extensible")}function OM(a){var s=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];a.l+=4;var r=a.read_shift(a.length-a.l,"utf8"),i={};return r.replace(ol,function(t){var c=ma(t);switch(Tf(c[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":s.forEach(function(u){i[u]=c[u]});break;case"<dataIntegrity":i.encryptedHmacKey=c.encryptedHmacKey,i.encryptedHmacValue=c.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":i.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":i.uri=c.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":i.encs.push(c);break;default:throw c[0]}}),i}function LM(a,s){var r={},i=r.EncryptionVersionInfo=Bd(a,4);if(s-=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);r.Flags=a.read_shift(4),s-=4;var n=a.read_shift(4);return s-=4,r.EncryptionHeader=_5(a,n),s-=n,r.EncryptionVerifier=x5(a,s),r}function PM(a){var s={},r=s.EncryptionVersionInfo=Bd(a,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return s.Salt=a.read_shift(16),s.EncryptedVerifier=a.read_shift(16),s.EncryptedVerifierHash=a.read_shift(16),s}function B_(a){var s=0,r,i=w5(a),n=i.length+1,t,c,u,f,o;for(r=eA(n),r[0]=i.length,t=1;t!=n;++t)r[t]=i[t-1];for(t=n-1;t>=0;--t)c=r[t],u=(s&16384)===0?0:1,f=s<<1&32767,o=u|f,s=o^c;return s^52811}var C5=(function(){var a=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],s=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[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],i=function(c){return(c/2|c*128)&255},n=function(c,u){return i(c^u)},t=function(c){for(var u=s[c.length-1],f=104,o=c.length-1;o>=0;--o)for(var l=c[o],g=0;g!=7;++g)l&64&&(u^=r[f]),l*=2,--f;return u};return function(c){for(var u=w5(c),f=t(u),o=u.length,l=eA(16),g=0;g!=16;++g)l[g]=0;var m,p,_;for((o&1)===1&&(m=f>>8,l[o]=n(a[0],m),--o,m=f&255,p=u[u.length-1],l[o]=n(p,m));o>0;)--o,m=f>>8,l[o]=n(u[o],m),--o,m=f&255,l[o]=n(u[o],m);for(o=15,_=15-u.length;_>0;)m=f>>8,l[o]=n(a[_],m),--o,--_,m=f&255,l[o]=n(u[o],m),--o,--_;return l}})(),RM=function(a,s,r,i,n){n||(n=s),i||(i=C5(a));var t,c;for(t=0;t!=s.length;++t)c=s[t],c^=i[r],c=(c>>5|c<<3)&255,n[t]=c,++r;return[n,r,i]},UM=function(a){var s=0,r=C5(a);return function(i){var n=RM("",i,s,r);return s=n[1],n[0]}};function NM(a,s,r,i){var n={key:ro(a),verificationBytes:ro(a)};return r.password&&(n.verifier=B_(r.password)),i.valid=n.verificationBytes===n.verifier,i.valid&&(i.insitu=UM(r.password)),n}function jM(a,s,r){var i=r||{};return i.Info=a.read_shift(2),a.l-=2,i.Info===1?i.Data=PM(a):i.Data=LM(a,s),i}function HM(a,s,r){var i={Type:r.biff>=8?a.read_shift(2):0};return i.Type?jM(a,s-2,i):NM(a,r.biff>=8?s:s-2,r,i),i}var S5=(function(){function a(n,t){switch(t.type){case"base64":return s(hu(n),t);case"binary":return s(n,t);case"buffer":return s(Ga&&Buffer.isBuffer(n)?n.toString("binary"):oA(n),t);case"array":return s(M0(n),t)}throw new Error("Unrecognized type "+t.type)}function s(n,t){var c=t||{},u=c.dense?[]:{},f=n.match(/\\trowd.*?\\row\b/g);if(!f.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:f.length-1}};return f.forEach(function(l,g){Array.isArray(u)&&(u[g]=[]);for(var m=/\\\w+\b/g,p=0,_,y=-1;_=m.exec(l);){switch(_[0]){case"\\cell":var h=l.slice(p,m.lastIndex-_[0].length);if(h[0]==" "&&(h=h.slice(1)),++y,h.length){var d={v:h,t:"s"};Array.isArray(u)?u[g][y]=d:u[da({r:g,c:y})]=d}break}p=m.lastIndex}y>o.e.c&&(o.e.c=y)}),u["!ref"]=Ma(o),u}function r(n,t){return lA(a(n,t),t)}function i(n){for(var t=["{\\rtf1\\ansi"],c=mi(n["!ref"]),u,f=Array.isArray(n),o=c.s.r;o<=c.e.r;++o){t.push("\\trowd\\trautofit1");for(var l=c.s.c;l<=c.e.c;++l)t.push("\\cellx"+(l+1));for(t.push("\\pard\\intbl"),l=c.s.c;l<=c.e.c;++l){var g=da({r:o,c:l});u=f?(n[o]||[])[l]:n[g],!(!u||u.v==null&&(!u.f||u.F))&&(t.push(" "+(u.w||(Md(u),u.w))),t.push("\\cell"))}t.push("\\pard\\intbl\\row")}return t.join("")+"}"}return{to_workbook:r,to_sheet:a,from_sheet:i}})();function QM(a){var s=a.slice(a[0]==="#"?1:0).slice(0,6);return[parseInt(s.slice(0,2),16),parseInt(s.slice(2,4),16),parseInt(s.slice(4,6),16)]}function W1(a){for(var s=0,r=1;s!=3;++s)r=r*256+(a[s]>255?255:a[s]<0?0:a[s]);return r.toString(16).toUpperCase().slice(1)}function zM(a){var s=a[0]/255,r=a[1]/255,i=a[2]/255,n=Math.max(s,r,i),t=Math.min(s,r,i),c=n-t;if(c===0)return[0,0,s];var u=0,f=0,o=n+t;switch(f=c/(o>1?2-o:o),n){case s:u=((r-i)/c+6)%6;break;case r:u=(i-s)/c+2;break;case i:u=(s-r)/c+4;break}return[u/6,f,o/2]}function VM(a){var s=a[0],r=a[1],i=a[2],n=r*2*(i<.5?i:1-i),t=i-n/2,c=[t,t,t],u=6*s,f;if(r!==0)switch(u|0){case 0:case 6:f=n*u,c[0]+=n,c[1]+=f;break;case 1:f=n*(2-u),c[0]+=f,c[1]+=n;break;case 2:f=n*(u-2),c[1]+=n,c[2]+=f;break;case 3:f=n*(4-u),c[1]+=f,c[2]+=n;break;case 4:f=n*(u-4),c[2]+=n,c[0]+=f;break;case 5:f=n*(6-u),c[2]+=f,c[0]+=n;break}for(var o=0;o!=3;++o)c[o]=Math.round(c[o]*255);return c}function J2(a,s){if(s===0)return a;var r=zM(QM(a));return s<0?r[2]=r[2]*(1+s):r[2]=1-(1-r[2])*(1-s),W1(VM(r))}var k5=6,WM=15,GM=1,rl=k5;function G1(a){return Math.floor((a+Math.round(128/rl)/256)*rl)}function $1(a){return Math.floor((a-5)/rl*100+.5)/100}function q2(a){return Math.round((a*rl+5)/rl*256)/256}function Sb(a){return q2($1(G1(a)))}function F_(a){var s=Math.abs(a-Sb(a)),r=rl;if(s>.005)for(rl=GM;rl<WM;++rl)Math.abs(a-Sb(a))<=s&&(s=Math.abs(a-Sb(a)),r=rl);rl=r}function tA(a){a.width?(a.wpx=G1(a.width),a.wch=$1(a.wpx),a.MDW=rl):a.wpx?(a.wch=$1(a.wpx),a.width=q2(a.wch),a.MDW=rl):typeof a.wch=="number"&&(a.width=q2(a.wch),a.wpx=G1(a.width),a.MDW=rl),a.customWidth&&delete a.customWidth}var $M=96,T5=$M;function K1(a){return a*96/T5}function Km(a){return a*T5/96}var KM={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"};function YM(a,s,r,i){s.Borders=[];var n={},t=!1;(a[0].match(ol)||[]).forEach(function(c){var u=ma(c);switch(Tf(u[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":n={},u.diagonalUp&&(n.diagonalUp=Ji(u.diagonalUp)),u.diagonalDown&&(n.diagonalDown=Ji(u.diagonalDown)),s.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":t=!0;break;case"</ext>":t=!1;break;default:if(i&&i.WTF&&!t)throw new Error("unrecognized "+u[0]+" in borders")}})}function XM(a,s,r,i){s.Fills=[];var n={},t=!1;(a[0].match(ol)||[]).forEach(function(c){var u=ma(c);switch(Tf(u[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":n={},s.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":s.Fills.push(n),n={};break;case"<patternFill":case"<patternFill>":u.patternType&&(n.patternType=u.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":n.bgColor||(n.bgColor={}),u.indexed&&(n.bgColor.indexed=parseInt(u.indexed,10)),u.theme&&(n.bgColor.theme=parseInt(u.theme,10)),u.tint&&(n.bgColor.tint=parseFloat(u.tint)),u.rgb&&(n.bgColor.rgb=u.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":n.fgColor||(n.fgColor={}),u.theme&&(n.fgColor.theme=parseInt(u.theme,10)),u.tint&&(n.fgColor.tint=parseFloat(u.tint)),u.rgb!=null&&(n.fgColor.rgb=u.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":t=!0;break;case"</ext>":t=!1;break;default:if(i&&i.WTF&&!t)throw new Error("unrecognized "+u[0]+" in fills")}})}function ZM(a,s,r,i){s.Fonts=[];var n={},t=!1;(a[0].match(ol)||[]).forEach(function(c){var u=ma(c);switch(Tf(u[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":s.Fonts.push(n),n={};break;case"<name":u.val&&(n.name=Mi(u.val));break;case"<name/>":case"</name>":break;case"<b":n.bold=u.val?Ji(u.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=u.val?Ji(u.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(u.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=u.val?Ji(u.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=u.val?Ji(u.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=u.val?Ji(u.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=u.val?Ji(u.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=u.val?Ji(u.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":u.val&&(n.sz=+u.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":u.val&&(n.vertAlign=u.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":u.val&&(n.family=parseInt(u.val,10));break;case"<family/>":case"</family>":break;case"<scheme":u.val&&(n.scheme=u.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(u.val=="1")break;u.codepage=s_[parseInt(u.val,10)];break;case"<color":if(n.color||(n.color={}),u.auto&&(n.color.auto=Ji(u.auto)),u.rgb)n.color.rgb=u.rgb.slice(-6);else if(u.indexed){n.color.index=parseInt(u.indexed,10);var f=x0[n.color.index];n.color.index==81&&(f=x0[1]),f||(f=x0[1]),n.color.rgb=f[0].toString(16)+f[1].toString(16)+f[2].toString(16)}else u.theme&&(n.color.theme=parseInt(u.theme,10),u.tint&&(n.color.tint=parseFloat(u.tint)),u.theme&&r.themeElements&&r.themeElements.clrScheme&&(n.color.rgb=J2(r.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":t=!0;break;case"</AlternateContent>":t=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":t=!0;break;case"</ext>":t=!1;break;default:if(i&&i.WTF&&!t)throw new Error("unrecognized "+u[0]+" in fonts")}})}function JM(a,s,r){s.NumberFmt=[];for(var i=Es(fa),n=0;n<i.length;++n)s.NumberFmt[i[n]]=fa[i[n]];var t=a[0].match(ol);if(t)for(n=0;n<t.length;++n){var c=ma(t[n]);switch(Tf(c[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var u=hi(Mi(c.formatCode)),f=parseInt(c.numFmtId,10);if(s.NumberFmt[f]=u,f>0){if(f>392){for(f=392;f>60&&s.NumberFmt[f]!=null;--f);s.NumberFmt[f]=u}Id(u,f)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+c[0]+" in numFmts")}}}function qM(a){var s=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)a[i]!=null&&(s[s.length]=An("numFmt",null,{numFmtId:i,formatCode:Ii(a[i])}))}),s.length===1?"":(s[s.length]="</numFmts>",s[0]=An("numFmts",null,{count:s.length-2}).replace("/>",">"),s.join(""))}var qv=["numFmtId","fillId","fontId","borderId","xfId"],e2=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function e9(a,s,r){s.CellXf=[];var i,n=!1;(a[0].match(ol)||[]).forEach(function(t){var c=ma(t),u=0;switch(Tf(c[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(i=c,delete i[0],u=0;u<qv.length;++u)i[qv[u]]&&(i[qv[u]]=parseInt(i[qv[u]],10));for(u=0;u<e2.length;++u)i[e2[u]]&&(i[e2[u]]=Ji(i[e2[u]]));if(s.NumberFmt&&i.numFmtId>392){for(u=392;u>60;--u)if(s.NumberFmt[i.numFmtId]==s.NumberFmt[u]){i.numFmtId=u;break}}s.CellXf.push(i);break;case"</xf>":break;case"<alignment":case"<alignment/>":var f={};c.vertical&&(f.vertical=c.vertical),c.horizontal&&(f.horizontal=c.horizontal),c.textRotation!=null&&(f.textRotation=c.textRotation),c.indent&&(f.indent=c.indent),c.wrapText&&(f.wrapText=Ji(c.wrapText)),i.alignment=f;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":n=!0;break;case"</AlternateContent>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+c[0]+" in cellXfs")}})}function t9(a){var s=[];return s[s.length]=An("cellXfs",null),a.forEach(function(r){s[s.length]=An("xf",null,r)}),s[s.length]="</cellXfs>",s.length===2?"":(s[0]=An("cellXfs",null,{count:s.length-2}).replace("/>",">"),s.join(""))}var r9=(function(){var s=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,i=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,t=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(u,f,o){var l={};if(!u)return l;u=u.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var g;return(g=u.match(s))&&JM(g,l,o),(g=u.match(n))&&ZM(g,l,f,o),(g=u.match(i))&&XM(g,l,f,o),(g=u.match(t))&&YM(g,l,f,o),(g=u.match(r))&&e9(g,l,o),l}})();function E5(a,s){var r=[Vs,An("styleSheet",null,{xmlns:H0[0],"xmlns:vt":ho.vt})],i;return a.SSF&&(i=qM(a.SSF))!=null&&(r[r.length]=i),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(i=t9(s.cellXfs))&&(r[r.length]=i),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function n9(a,s){var r=a.read_shift(2),i=al(a);return[r,i]}function a9(a,s,r){r||(r=Er(6+4*s.length)),r.write_shift(2,a),ko(s,r);var i=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),i}function i9(a,s,r){var i={};i.sz=a.read_shift(2)/20;var n=jI(a);n.fItalic&&(i.italic=1),n.fCondense&&(i.condense=1),n.fExtend&&(i.extend=1),n.fShadow&&(i.shadow=1),n.fOutline&&(i.outline=1),n.fStrikeout&&(i.strike=1);var t=a.read_shift(2);switch(t===700&&(i.bold=1),a.read_shift(2)){case 1:i.vertAlign="superscript";break;case 2:i.vertAlign="subscript";break}var c=a.read_shift(1);c!=0&&(i.underline=c);var u=a.read_shift(1);u>0&&(i.family=u);var f=a.read_shift(1);switch(f>0&&(i.charset=f),a.l++,i.color=NI(a),a.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor";break}return i.name=al(a),i}function s9(a,s){s||(s=Er(153)),s.write_shift(2,a.sz*20),HI(a,s),s.write_shift(2,a.bold?700:400);var r=0;a.vertAlign=="superscript"?r=1:a.vertAlign=="subscript"&&(r=2),s.write_shift(2,r),s.write_shift(1,a.underline||0),s.write_shift(1,a.family||0),s.write_shift(1,a.charset||0),s.write_shift(1,0),Y2(a.color,s);var i=0;return i=2,s.write_shift(1,i),ko(a.name,s),s.length>s.l?s.slice(0,s.l):s}var o9=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],kb,l9=sl;function g4(a,s){s||(s=Er(84)),kb||(kb=by(o9));var r=kb[a.patternType];r==null&&(r=40),s.write_shift(4,r);var i=0;if(r!=40)for(Y2({auto:1},s),Y2({auto:1},s);i<12;++i)s.write_shift(4,0);else{for(;i<4;++i)s.write_shift(4,0);for(;i<12;++i)s.write_shift(4,0)}return s.length>s.l?s.slice(0,s.l):s}function u9(a,s){var r=a.l+s,i=a.read_shift(2),n=a.read_shift(2);return a.l=r,{ixfe:i,numFmtId:n}}function I5(a,s,r){r||(r=Er(16)),r.write_shift(2,s||0),r.write_shift(2,a.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var i=0;return r.write_shift(1,i),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function i1(a,s){return s||(s=Er(10)),s.write_shift(1,0),s.write_shift(1,0),s.write_shift(4,0),s.write_shift(4,0),s}var c9=sl;function f9(a,s){return s||(s=Er(51)),s.write_shift(1,0),i1(null,s),i1(null,s),i1(null,s),i1(null,s),i1(null,s),s.length>s.l?s.slice(0,s.l):s}function d9(a,s){return s||(s=Er(52)),s.write_shift(4,a.xfId),s.write_shift(2,1),s.write_shift(1,0),s.write_shift(1,0),K2(a.name||"",s),s.length>s.l?s.slice(0,s.l):s}function h9(a,s,r){var i=Er(2052);return i.write_shift(4,a),K2(s,i),K2(r,i),i.length>i.l?i.slice(0,i.l):i}function A9(a,s,r){var i={};i.NumberFmt=[];for(var n in fa)i.NumberFmt[n]=fa[n];i.CellXf=[],i.Fonts=[];var t=[],c=!1;return Pd(a,function(f,o,l){switch(l){case 44:i.NumberFmt[f[0]]=f[1],Id(f[1],f[0]);break;case 43:i.Fonts.push(f),f.color.theme!=null&&s&&s.themeElements&&s.themeElements.clrScheme&&(f.color.rgb=J2(s.themeElements.clrScheme[f.color.theme].rgb,f.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:t[t.length-1]==617&&i.CellXf.push(f);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:t.push(l),c=!0;break;case 38:t.pop(),c=!1;break;default:if(o.T>0)t.push(l);else if(o.T<0)t.pop();else if(!c||r.WTF&&t[t.length-1]!=37)throw new Error("Unexpected record 0x"+l.toString(16))}}),i}function p9(a,s){if(s){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var n=i[0];n<=i[1];++n)s[n]!=null&&++r}),r!=0&&(Vr(a,615,Nc(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var n=i[0];n<=i[1];++n)s[n]!=null&&Vr(a,44,a9(n,s[n]))}),Vr(a,616))}}function m9(a){var s=1;Vr(a,611,Nc(s)),Vr(a,43,s9({sz:12,color:{theme:1},name:"Calibri",family:2})),Vr(a,612)}function g9(a){var s=2;Vr(a,603,Nc(s)),Vr(a,45,g4({patternType:"none"})),Vr(a,45,g4({patternType:"gray125"})),Vr(a,604)}function v9(a){var s=1;Vr(a,613,Nc(s)),Vr(a,46,f9()),Vr(a,614)}function y9(a){var s=1;Vr(a,626,Nc(s)),Vr(a,47,I5({numFmtId:0},65535)),Vr(a,627)}function b9(a,s){Vr(a,617,Nc(s.length)),s.forEach(function(r){Vr(a,47,I5(r,0))}),Vr(a,618)}function w9(a){var s=1;Vr(a,619,Nc(s)),Vr(a,48,d9({xfId:0,name:"Normal"})),Vr(a,620)}function _9(a){var s=0;Vr(a,505,Nc(s)),Vr(a,506)}function x9(a){var s=0;Vr(a,508,h9(s,"TableStyleMedium9","PivotStyleMedium4")),Vr(a,509)}function C9(a,s){var r=Wl();return Vr(r,278),p9(r,a.SSF),m9(r),g9(r),v9(r),y9(r),b9(r,s.cellXfs),w9(r),_9(r),x9(r),Vr(r,279),r.end()}var S9=["</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 k9(a,s,r){s.themeElements.clrScheme=[];var i={};(a[0].match(ol)||[]).forEach(function(n){var t=ma(n);switch(t[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":i.rgb=t.val;break;case"<a:sysClr":i.rgb=t.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>":t[0].charAt(1)==="/"?(s.themeElements.clrScheme[S9.indexOf(t[0])]=i,i={}):i.name=t[0].slice(3,t[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+t[0]+" in clrScheme")}})}function T9(){}function E9(){}var I9=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,B9=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,F9=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function M9(a,s,r){s.themeElements={};var i;[["clrScheme",I9,k9],["fontScheme",B9,T9],["fmtScheme",F9,E9]].forEach(function(n){if(!(i=a.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](i,s,r)})}var D9=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function B5(a,s){(!a||a.length===0)&&(a=M_());var r,i={};if(!(r=a.match(D9)))throw new Error("themeElements not found in theme");return M9(r[0],i,s),i.raw=a,i}function M_(a,s){if(s&&s.themeXLSX)return s.themeXLSX;if(a&&typeof a.raw=="string")return a.raw;var r=[Vs];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.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>',r[r.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>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.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>',r[r.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>',r[r.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>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.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>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.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>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.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>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.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>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function O9(a,s,r){var i=a.l+s,n=a.read_shift(4);if(n!==124226){if(!r.cellStyles){a.l=i;return}var t=a.slice(a.l);a.l=i;var c;try{c=_S(t,{type:"array"})}catch{return}var u=fu(c,"theme/theme/theme1.xml",!0);if(u)return B5(u,r)}}function L9(a){return a.read_shift(4)}function P9(a){var s={};switch(s.xclrType=a.read_shift(2),s.nTintShade=a.read_shift(2),s.xclrType){case 0:a.l+=4;break;case 1:s.xclrValue=R9(a,4);break;case 2:s.xclrValue=u5(a);break;case 3:s.xclrValue=L9(a);break;case 4:a.l+=4;break}return a.l+=8,s}function R9(a,s){return sl(a,s)}function U9(a,s){return sl(a,s)}function N9(a){var s=a.read_shift(2),r=a.read_shift(2)-4,i=[s];switch(s){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:i[1]=P9(a);break;case 6:i[1]=U9(a,r);break;case 14:case 15:i[1]=a.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+s+" "+r)}return i}function j9(a,s){var r=a.l+s;a.l+=2;var i=a.read_shift(2);a.l+=2;for(var n=a.read_shift(2),t=[];n-- >0;)t.push(N9(a,r-a.l));return{ixfe:i,ext:t}}function H9(a,s){s.forEach(function(r){r[0]})}function Q9(a,s){return{flags:a.read_shift(4),version:a.read_shift(4),name:al(a)}}function z9(a){var s=Er(12+2*a.name.length);return s.write_shift(4,a.flags),s.write_shift(4,a.version),ko(a.name,s),s.slice(0,s.l)}function V9(a){for(var s=[],r=a.read_shift(4);r-- >0;)s.push([a.read_shift(4),a.read_shift(4)]);return s}function W9(a){var s=Er(4+8*a.length);s.write_shift(4,a.length);for(var r=0;r<a.length;++r)s.write_shift(4,a[r][0]),s.write_shift(4,a[r][1]);return s}function G9(a,s){var r=Er(8+2*s.length);return r.write_shift(4,a),ko(s,r),r.slice(0,r.l)}function $9(a){return a.l+=4,a.read_shift(4)!=0}function K9(a,s){var r=Er(8);return r.write_shift(4,a),r.write_shift(4,1),r}function Y9(a,s,r){var i={Types:[],Cell:[],Value:[]},n=r||{},t=[],c=!1,u=2;return Pd(a,function(f,o,l){switch(l){case 335:i.Types.push({name:f.name});break;case 51:f.forEach(function(g){u==1?i.Cell.push({type:i.Types[g[0]-1].name,index:g[1]}):u==0&&i.Value.push({type:i.Types[g[0]-1].name,index:g[1]})});break;case 337:u=f?1:0;break;case 338:u=2;break;case 35:t.push(l),c=!0;break;case 36:t.pop(),c=!1;break;default:if(!o.T){if(!c||n.WTF&&t[t.length-1]!=35)throw new Error("Unexpected record 0x"+l.toString(16))}}}),i}function X9(){var a=Wl();return Vr(a,332),Vr(a,334,Nc(1)),Vr(a,335,z9({name:"XLDAPR",version:12e4,flags:3496657072})),Vr(a,336),Vr(a,339,G9(1,"XLDAPR")),Vr(a,52),Vr(a,35,Nc(514)),Vr(a,4096,Nc(0)),Vr(a,4097,$u(1)),Vr(a,36),Vr(a,53),Vr(a,340),Vr(a,337,K9(1)),Vr(a,51,W9([[1,0]])),Vr(a,338),Vr(a,333),a.end()}function Z9(a,s,r){var i={Types:[],Cell:[],Value:[]};if(!a)return i;var n=!1,t=2,c;return a.replace(ol,function(u){var f=ma(u);switch(Tf(f[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":i.Types.push({name:f.name});break;case"</metadataType>":break;case"<futureMetadata":for(var o=0;o<i.Types.length;++o)i.Types[o].name==f.name&&(c=i.Types[o]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":t==1?i.Cell.push({type:i.Types[f.t-1].name,index:+f.v}):t==0&&i.Value.push({type:i.Types[f.t-1].name,index:+f.v});break;case"</rc>":break;case"<cellMetadata":t=1;break;case"</cellMetadata>":t=2;break;case"<valueMetadata":t=0;break;case"</valueMetadata>":t=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<rvb":if(!c)break;c.offsets||(c.offsets=[]),c.offsets.push(+f.i);break;default:if(!n&&r.WTF)throw new Error("unrecognized "+f[0]+" in metadata")}return u}),i}function F5(){var a=[Vs];return a.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>`),a.join("")}function J9(a){var s=[];if(!a)return s;var r=1;return(a.match(ol)||[]).forEach(function(i){var n=ma(i);switch(n[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?r=n.i:n.i=r,s.push(n);break}}),s}function q9(a){var s={};s.i=a.read_shift(4);var r={};r.r=a.read_shift(4),r.c=a.read_shift(4),s.r=da(r);var i=a.read_shift(1);return i&2&&(s.l="1"),i&8&&(s.a="1"),s}function eD(a,s,r){var i=[];return Pd(a,function(t,c,u){switch(u){case 63:i.push(t);break;default:if(!c.T)throw new Error("Unexpected record 0x"+u.toString(16))}}),i}function tD(a,s,r,i){if(!a)return a;var n=i||{},t=!1;Pd(a,function(u,f,o){switch(o){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:t=!0;break;case 36:t=!1;break;default:if(!f.T){if(!t||n.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}},n)}function rD(a,s){if(!a)return"??";var r=(a.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return s["!id"][r].Target}var Dm=1024;function M5(a,s){for(var r=[21600,21600],i=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),n=[An("xml",null,{"xmlns:v":lu.v,"xmlns:o":lu.o,"xmlns:x":lu.x,"xmlns:mv":lu.mv}).replace(/\/>/,">"),An("o:shapelayout",An("o:idmap",null,{"v:ext":"edit",data:a}),{"v:ext":"edit"}),An("v:shapetype",[An("v:stroke",null,{joinstyle:"miter"}),An("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:i})];Dm<a*1e3;)Dm+=1e3;return s.forEach(function(t){var c=ps(t[0]),u={color2:"#BEFF82",type:"gradient"};u.type=="gradient"&&(u.angle="-180");var f=u.type=="gradient"?An("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=An("v:fill",f,u),l={on:"t",obscured:"t"};++Dm,n=n.concat(["<v:shape"+Q1({id:"_x0000_s"+Dm,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(t[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,An("v:shadow",null,l),An("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ho("x:Anchor",[c.c+1,0,c.r+1,0,c.c+3,20,c.r+5,20].join(",")),Ho("x:AutoFill","False"),Ho("x:Row",String(c.r)),Ho("x:Column",String(c.c)),t[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),n.push("</xml>"),n.join("")}function v4(a,s,r,i){var n=Array.isArray(a),t;s.forEach(function(c){var u=ps(c.ref);if(n?(a[u.r]||(a[u.r]=[]),t=a[u.r][u.c]):t=a[c.ref],!t){t={t:"z"},n?a[u.r][u.c]=t:a[c.ref]=t;var f=mi(a["!ref"]||"BDWGO1000001:A1");f.s.r>u.r&&(f.s.r=u.r),f.e.r<u.r&&(f.e.r=u.r),f.s.c>u.c&&(f.s.c=u.c),f.e.c<u.c&&(f.e.c=u.c);var o=Ma(f);o!==a["!ref"]&&(a["!ref"]=o)}t.c||(t.c=[]);var l={a:c.author,t:c.t,r:c.r,T:r};c.h&&(l.h=c.h);for(var g=t.c.length-1;g>=0;--g){if(!r&&t.c[g].T)return;r&&!t.c[g].T&&t.c.splice(g,1)}if(r&&i){for(g=0;g<i.length;++g)if(l.a==i[g].id){l.a=i[g].name||l.a;break}}t.c.push(l)})}function nD(a,s){if(a.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],i=[],n=a.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach(function(c){if(!(c===""||c.trim()==="")){var u=c.match(/<(?:\w+:)?author[^>]*>(.*)/);u&&r.push(u[1])}});var t=a.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return t&&t[1]&&t[1].split(/<\/\w*:?comment>/).forEach(function(c){if(!(c===""||c.trim()==="")){var u=c.match(/<(?:\w+:)?comment[^>]*>/);if(u){var f=ma(u[0]),o={author:f.authorId&&r[f.authorId]||"sheetjsghost",ref:f.ref,guid:f.guid},l=ps(f.ref);if(!(s.sheetRows&&s.sheetRows<=l.r)){var g=c.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),m=!!g&&!!g[1]&&I_(g[1])||{r:"",t:"",h:""};o.r=m.r,m.r=="<t></t>"&&(m.t=m.h=""),o.t=(m.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),s.cellHTML&&(o.h=m.h),i.push(o)}}}}),i}function D5(a){var s=[Vs,An("comments",null,{xmlns:H0[0]})],r=[];return s.push("<authors>"),a.forEach(function(i){i[1].forEach(function(n){var t=Ii(n.a);r.indexOf(t)==-1&&(r.push(t),s.push("<author>"+t+"</author>")),n.T&&n.ID&&r.indexOf("tc="+n.ID)==-1&&(r.push("tc="+n.ID),s.push("<author>tc="+n.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),s.push("<author>SheetJ5</author>")),s.push("</authors>"),s.push("<commentList>"),a.forEach(function(i){var n=0,t=[];if(i[1][0]&&i[1][0].T&&i[1][0].ID?n=r.indexOf("tc="+i[1][0].ID):i[1].forEach(function(f){f.a&&(n=r.indexOf(Ii(f.a))),t.push(f.t||"")}),s.push('<comment ref="'+i[0]+'" authorId="'+n+'"><text>'),t.length<=1)s.push(Ho("t",Ii(t[0]||"")));else{for(var c=`Comment:
    `+t[0]+`
`,u=1;u<t.length;++u)c+=`Reply:
    `+t[u]+`
`;s.push(Ho("t",Ii(c)))}s.push("</text></comment>")}),s.push("</commentList>"),s.length>2&&(s[s.length]="</comments>",s[1]=s[1].replace("/>",">")),s.join("")}function aD(a,s){var r=[],i=!1,n={},t=0;return a.replace(ol,function(u,f){var o=ma(u);switch(Tf(o[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":n={author:o.personId,guid:o.id,ref:o.ref,T:1};break;case"</threadedComment>":n.t!=null&&r.push(n);break;case"<text>":case"<text":t=f+u.length;break;case"</text>":n.t=a.slice(t,f).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":i=!0;break;case"</mentions>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(!i&&s.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return u}),r}function iD(a,s,r){var i=[Vs,An("ThreadedComments",null,{xmlns:ho.TCMNT}).replace(/[\/]>/,">")];return a.forEach(function(n){var t="";(n[1]||[]).forEach(function(c,u){if(!c.T){delete c.ID;return}c.a&&s.indexOf(c.a)==-1&&s.push(c.a);var f={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};u==0?t=f.id:f.parentId=t,c.ID=f.id,c.a&&(f.personId="{54EE7950-7262-4200-6969-"+("000000000000"+s.indexOf(c.a)).slice(-12)+"}"),i.push(An("threadedComment",Ho("text",c.t||""),f))})}),i.push("</ThreadedComments>"),i.join("")}function sD(a,s){var r=[],i=!1;return a.replace(ol,function(t){var c=ma(t);switch(Tf(c[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:c.displayname,id:c.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(!i&&s.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return t}),r}function oD(a){var s=[Vs,An("personList",null,{xmlns:ho.TCMNT,"xmlns:x":H0[0]}).replace(/[\/]>/,">")];return a.forEach(function(r,i){s.push(An("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+i).slice(-12)+"}",userId:r,providerId:"None"}))}),s.push("</personList>"),s.join("")}function lD(a){var s={};s.iauthor=a.read_shift(4);var r=W0(a);return s.rfx=r.s,s.ref=da(r.s),a.l+=16,s}function uD(a,s){return s==null&&(s=Er(36)),s.write_shift(4,a[1].iauthor),tg(a[0],s),s.write_shift(4,0),s.write_shift(4,0),s.write_shift(4,0),s.write_shift(4,0),s}var cD=al;function fD(a){return ko(a.slice(0,54))}function dD(a,s){var r=[],i=[],n={},t=!1;return Pd(a,function(u,f,o){switch(o){case 632:i.push(u);break;case 635:n=u;break;case 637:n.t=u.t,n.h=u.h,n.r=u.r;break;case 636:if(n.author=i[n.iauthor],delete n.iauthor,s.sheetRows&&n.rfx&&s.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:break;case 35:t=!0;break;case 36:t=!1;break;case 37:break;case 38:break;default:if(!f.T){if(!t||s.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}}),r}function hD(a){var s=Wl(),r=[];return Vr(s,628),Vr(s,630),a.forEach(function(i){i[1].forEach(function(n){r.indexOf(n.a)>-1||(r.push(n.a.slice(0,54)),Vr(s,632,fD(n.a)))})}),Vr(s,631),Vr(s,633),a.forEach(function(i){i[1].forEach(function(n){n.iauthor=r.indexOf(n.a);var t={s:ps(i[0]),e:ps(i[0])};Vr(s,635,uD([t,n])),n.t&&n.t.length>0&&Vr(s,637,LI(n)),Vr(s,636),delete n.iauthor})}),Vr(s,634),Vr(s,629),s.end()}var AD="application/vnd.ms-office.vbaProject";function pD(a){var s=ra.utils.cfb_new({root:"R"});return a.FullPaths.forEach(function(r,i){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");ra.utils.cfb_add(s,n,a.FileIndex[i].content)}}),ra.write(s)}function mD(a,s){s.FullPaths.forEach(function(r,i){if(i!=0){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&ra.utils.cfb_add(a,n,s.FileIndex[i].content)}})}var O5=["xlsb","xlsm","xlam","biff8","xla"];function gD(){return{"!type":"dialog"}}function vD(){return{"!type":"dialog"}}function yD(){return{"!type":"macro"}}function bD(){return{"!type":"macro"}}var jm=(function(){var a=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,s={r:0,c:0};function r(i,n,t,c){var u=!1,f=!1;t.length==0?f=!0:t.charAt(0)=="["&&(f=!0,t=t.slice(1,-1)),c.length==0?u=!0:c.charAt(0)=="["&&(u=!0,c=c.slice(1,-1));var o=t.length>0?parseInt(t,10)|0:0,l=c.length>0?parseInt(c,10)|0:0;return u?l+=s.c:--l,f?o+=s.r:--o,n+(u?"":"$")+As(l)+(f?"":"$")+zs(o)}return function(n,t){return s=t,n.replace(a,r)}})(),D_=/(^|[^._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,O_=(function(){return function(s,r){return s.replace(D_,function(i,n,t,c,u,f){var o=b_(c)-(t?0:r.c),l=y_(f)-(u?0:r.r),g=l==0?"":u?l+1:"["+l+"]",m=o==0?"":t?o+1:"["+o+"]";return n+"R"+g+"C"+m})}})();function L5(a,s){return a.replace(D_,function(r,i,n,t,c,u){return i+(n=="$"?n+t:As(b_(t)+s.c))+(c=="$"?c+u:zs(y_(u)+s.r))})}function wD(a,s,r){var i=Gl(s),n=i.s,t=ps(r),c={r:t.r-n.r,c:t.c-n.c};return L5(a,c)}function _D(a){return a.length!=1}function y4(a){return a.replace(/_xlfn\./g,"")}function eo(a){a.l+=1}function rA(a,s){var r=a.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function P5(a,s,r){var i=2;if(r){if(r.biff>=2&&r.biff<=5)return R5(a);r.biff==12&&(i=4)}var n=a.read_shift(i),t=a.read_shift(i),c=rA(a),u=rA(a);return{s:{r:n,c:c[0],cRel:c[1],rRel:c[2]},e:{r:t,c:u[0],cRel:u[1],rRel:u[2]}}}function R5(a){var s=rA(a),r=rA(a),i=a.read_shift(1),n=a.read_shift(1);return{s:{r:s[0],c:i,cRel:s[1],rRel:s[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function xD(a,s,r){if(r.biff<8)return R5(a);var i=a.read_shift(r.biff==12?4:2),n=a.read_shift(r.biff==12?4:2),t=rA(a),c=rA(a);return{s:{r:i,c:t[0],cRel:t[1],rRel:t[2]},e:{r:n,c:c[0],cRel:c[1],rRel:c[2]}}}function U5(a,s,r){if(r&&r.biff>=2&&r.biff<=5)return CD(a);var i=a.read_shift(r&&r.biff==12?4:2),n=rA(a);return{r:i,c:n[0],cRel:n[1],rRel:n[2]}}function CD(a){var s=rA(a),r=a.read_shift(1);return{r:s[0],c:r,cRel:s[1],rRel:s[2]}}function SD(a){var s=a.read_shift(2),r=a.read_shift(2);return{r:s,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function kD(a,s,r){var i=r&&r.biff?r.biff:8;if(i>=2&&i<=5)return TD(a);var n=a.read_shift(i>=12?4:2),t=a.read_shift(2),c=(t&16384)>>14,u=(t&32768)>>15;if(t&=16383,u==1)for(;n>524287;)n-=1048576;if(c==1)for(;t>8191;)t=t-16384;return{r:n,c:t,cRel:c,rRel:u}}function TD(a){var s=a.read_shift(2),r=a.read_shift(1),i=(s&32768)>>15,n=(s&16384)>>14;return s&=16383,i==1&&s>=8192&&(s=s-16384),n==1&&r>=128&&(r=r-256),{r:s,c:r,cRel:n,rRel:i}}function ED(a,s,r){var i=(a[a.l++]&96)>>5,n=P5(a,r.biff>=2&&r.biff<=5?6:8,r);return[i,n]}function ID(a,s,r){var i=(a[a.l++]&96)>>5,n=a.read_shift(2,"i"),t=8;if(r)switch(r.biff){case 5:a.l+=12,t=6;break;case 12:t=12;break}var c=P5(a,t,r);return[i,n,c]}function BD(a,s,r){var i=(a[a.l++]&96)>>5;return a.l+=r&&r.biff>8?12:r.biff<8?6:8,[i]}function FD(a,s,r){var i=(a[a.l++]&96)>>5,n=a.read_shift(2),t=8;if(r)switch(r.biff){case 5:a.l+=12,t=6;break;case 12:t=12;break}return a.l+=t,[i,n]}function MD(a,s,r){var i=(a[a.l++]&96)>>5,n=xD(a,s-1,r);return[i,n]}function DD(a,s,r){var i=(a[a.l++]&96)>>5;return a.l+=r.biff==2?6:r.biff==12?14:7,[i]}function b4(a){var s=a[a.l+1]&1,r=1;return a.l+=4,[s,r]}function OD(a,s,r){a.l+=2;for(var i=a.read_shift(r&&r.biff==2?1:2),n=[],t=0;t<=i;++t)n.push(a.read_shift(r&&r.biff==2?1:2));return n}function LD(a,s,r){var i=a[a.l+1]&255?1:0;return a.l+=2,[i,a.read_shift(r&&r.biff==2?1:2)]}function PD(a,s,r){var i=a[a.l+1]&255?1:0;return a.l+=2,[i,a.read_shift(r&&r.biff==2?1:2)]}function RD(a){var s=a[a.l+1]&255?1:0;return a.l+=2,[s,a.read_shift(2)]}function UD(a,s,r){var i=a[a.l+1]&255?1:0;return a.l+=r&&r.biff==2?3:4,[i]}function N5(a){var s=a.read_shift(1),r=a.read_shift(1);return[s,r]}function ND(a){return a.read_shift(2),N5(a)}function jD(a){return a.read_shift(2),N5(a)}function HD(a,s,r){var i=(a[a.l]&96)>>5;a.l+=1;var n=U5(a,0,r);return[i,n]}function QD(a,s,r){var i=(a[a.l]&96)>>5;a.l+=1;var n=kD(a,0,r);return[i,n]}function zD(a,s,r){var i=(a[a.l]&96)>>5;a.l+=1;var n=a.read_shift(2);r&&r.biff==5&&(a.l+=12);var t=U5(a,0,r);return[i,n,t]}function VD(a,s,r){var i=(a[a.l]&96)>>5;a.l+=1;var n=a.read_shift(r&&r.biff<=3?1:2);return[$7[n],Q5[n],i]}function WD(a,s,r){var i=a[a.l++],n=a.read_shift(1),t=r&&r.biff<=3?[i==88?-1:0,a.read_shift(1)]:GD(a);return[n,(t[0]===0?Q5:G7)[t[1]]]}function GD(a){return[a[a.l+1]>>7,a.read_shift(2)&32767]}function $D(a,s,r){a.l+=r&&r.biff==2?3:4}function KD(a,s,r){if(a.l++,r&&r.biff==12)return[a.read_shift(4,"i"),0];var i=a.read_shift(2),n=a.read_shift(r&&r.biff==2?1:2);return[i,n]}function YD(a){return a.l++,Rd[a.read_shift(1)]}function XD(a){return a.l++,a.read_shift(2)}function ZD(a){return a.l++,a.read_shift(1)!==0}function JD(a){return a.l++,nl(a)}function qD(a,s,r){return a.l++,lv(a,s-1,r)}function e7(a,s){var r=[a.read_shift(1)];if(s==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=js(a,1)?"TRUE":"FALSE",s!=12&&(a.l+=7);break;case 37:case 16:r[1]=Rd[a[a.l]],a.l+=s==12?4:8;break;case 0:a.l+=8;break;case 1:r[1]=nl(a);break;case 2:r[1]=G0(a,0,{biff:s>0&&s<8?2:s});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function t7(a,s,r){for(var i=a.read_shift(r.biff==12?4:2),n=[],t=0;t!=i;++t)n.push((r.biff==12?W0:xy)(a));return n}function r7(a,s,r){var i=0,n=0;r.biff==12?(i=a.read_shift(4),n=a.read_shift(4)):(n=1+a.read_shift(1),i=1+a.read_shift(2)),r.biff>=2&&r.biff<8&&(--i,--n==0&&(n=256));for(var t=0,c=[];t!=i&&(c[t]=[]);++t)for(var u=0;u!=n;++u)c[t][u]=e7(a,r.biff);return c}function n7(a,s,r){var i=a.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,t=a.read_shift(n);switch(r.biff){case 2:a.l+=5;break;case 3:case 4:a.l+=8;break;case 5:a.l+=12;break}return[i,0,t]}function a7(a,s,r){if(r.biff==5)return i7(a);var i=a.read_shift(1)>>>5&3,n=a.read_shift(2),t=a.read_shift(4);return[i,n,t]}function i7(a){var s=a.read_shift(1)>>>5&3,r=a.read_shift(2,"i");a.l+=8;var i=a.read_shift(2);return a.l+=12,[s,r,i]}function s7(a,s,r){var i=a.read_shift(1)>>>5&3;a.l+=r&&r.biff==2?3:4;var n=a.read_shift(r&&r.biff==2?1:2);return[i,n]}function o7(a,s,r){var i=a.read_shift(1)>>>5&3,n=a.read_shift(r&&r.biff==2?1:2);return[i,n]}function l7(a,s,r){var i=a.read_shift(1)>>>5&3;return a.l+=4,r.biff<8&&a.l--,r.biff==12&&(a.l+=2),[i]}function u7(a,s,r){var i=(a[a.l++]&96)>>5,n=a.read_shift(2),t=4;if(r)switch(r.biff){case 5:t=15;break;case 12:t=6;break}return a.l+=t,[i,n]}var c7=sl,f7=sl,d7=sl;function cv(a,s,r){return a.l+=2,[SD(a)]}function L_(a){return a.l+=6,[]}var h7=cv,A7=L_,p7=L_,m7=cv;function j5(a){return a.l+=2,[ro(a),a.read_shift(2)&1]}var g7=cv,v7=j5,y7=L_,b7=cv,w7=cv,_7=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function x7(a){a.l+=2;var s=a.read_shift(2),r=a.read_shift(2),i=a.read_shift(4),n=a.read_shift(2),t=a.read_shift(2),c=_7[r>>2&31];return{ixti:s,coltype:r&3,rt:c,idx:i,c:n,C:t}}function C7(a){return a.l+=2,[a.read_shift(4)]}function S7(a,s,r){return a.l+=5,a.l+=2,a.l+=r.biff==2?1:4,["PTGSHEET"]}function k7(a,s,r){return a.l+=r.biff==2?4:5,["PTGENDSHEET"]}function T7(a){var s=a.read_shift(1)>>>5&3,r=a.read_shift(2);return[s,r]}function E7(a){var s=a.read_shift(1)>>>5&3,r=a.read_shift(2);return[s,r]}function I7(a){return a.l+=4,[0,0]}var w4={1:{n:"PtgExp",f:KD},2:{n:"PtgTbl",f:d7},3:{n:"PtgAdd",f:eo},4:{n:"PtgSub",f:eo},5:{n:"PtgMul",f:eo},6:{n:"PtgDiv",f:eo},7:{n:"PtgPower",f:eo},8:{n:"PtgConcat",f:eo},9:{n:"PtgLt",f:eo},10:{n:"PtgLe",f:eo},11:{n:"PtgEq",f:eo},12:{n:"PtgGe",f:eo},13:{n:"PtgGt",f:eo},14:{n:"PtgNe",f:eo},15:{n:"PtgIsect",f:eo},16:{n:"PtgUnion",f:eo},17:{n:"PtgRange",f:eo},18:{n:"PtgUplus",f:eo},19:{n:"PtgUminus",f:eo},20:{n:"PtgPercent",f:eo},21:{n:"PtgParen",f:eo},22:{n:"PtgMissArg",f:eo},23:{n:"PtgStr",f:qD},26:{n:"PtgSheet",f:S7},27:{n:"PtgEndSheet",f:k7},28:{n:"PtgErr",f:YD},29:{n:"PtgBool",f:ZD},30:{n:"PtgInt",f:XD},31:{n:"PtgNum",f:JD},32:{n:"PtgArray",f:DD},33:{n:"PtgFunc",f:VD},34:{n:"PtgFuncVar",f:WD},35:{n:"PtgName",f:n7},36:{n:"PtgRef",f:HD},37:{n:"PtgArea",f:ED},38:{n:"PtgMemArea",f:s7},39:{n:"PtgMemErr",f:c7},40:{n:"PtgMemNoMem",f:f7},41:{n:"PtgMemFunc",f:o7},42:{n:"PtgRefErr",f:l7},43:{n:"PtgAreaErr",f:BD},44:{n:"PtgRefN",f:QD},45:{n:"PtgAreaN",f:MD},46:{n:"PtgMemAreaN",f:T7},47:{n:"PtgMemNoMemN",f:E7},57:{n:"PtgNameX",f:a7},58:{n:"PtgRef3d",f:zD},59:{n:"PtgArea3d",f:ID},60:{n:"PtgRefErr3d",f:u7},61:{n:"PtgAreaErr3d",f:FD},255:{}},B7={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},F7={1:{n:"PtgElfLel",f:j5},2:{n:"PtgElfRw",f:b7},3:{n:"PtgElfCol",f:h7},6:{n:"PtgElfRwV",f:w7},7:{n:"PtgElfColV",f:m7},10:{n:"PtgElfRadical",f:g7},11:{n:"PtgElfRadicalS",f:y7},13:{n:"PtgElfColS",f:A7},15:{n:"PtgElfColSV",f:p7},16:{n:"PtgElfRadicalLel",f:v7},25:{n:"PtgList",f:x7},29:{n:"PtgSxName",f:C7},255:{}},M7={0:{n:"PtgAttrNoop",f:I7},1:{n:"PtgAttrSemi",f:UD},2:{n:"PtgAttrIf",f:PD},4:{n:"PtgAttrChoose",f:OD},8:{n:"PtgAttrGoto",f:LD},16:{n:"PtgAttrSum",f:$D},32:{n:"PtgAttrBaxcel",f:b4},33:{n:"PtgAttrBaxcel",f:b4},64:{n:"PtgAttrSpace",f:ND},65:{n:"PtgAttrSpaceSemi",f:jD},128:{n:"PtgAttrIfError",f:RD},255:{}};function fv(a,s,r,i){if(i.biff<8)return sl(a,s);for(var n=a.l+s,t=[],c=0;c!==r.length;++c)switch(r[c][0]){case"PtgArray":r[c][1]=r7(a,0,i),t.push(r[c][1]);break;case"PtgMemArea":r[c][2]=t7(a,r[c][1],i),t.push(r[c][2]);break;case"PtgExp":i&&i.biff==12&&(r[c][1][1]=a.read_shift(4),t.push(r[c][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[c][0]}return s=n-a.l,s!==0&&t.push(sl(a,s)),t}function dv(a,s,r){for(var i=a.l+s,n,t,c=[];i!=a.l;)s=i-a.l,t=a[a.l],n=w4[t]||w4[B7[t]],(t===24||t===25)&&(n=(t===24?F7:M7)[a[a.l+1]]),!n||!n.f?sl(a,s):c.push([n.n,n.f(a,s,r)]);return c}function D7(a){for(var s=[],r=0;r<a.length;++r){for(var i=a[r],n=[],t=0;t<i.length;++t){var c=i[t];if(c)switch(c[0]){case 2:n.push('"'+c[1].replace(/"/g,'""')+'"');break;default:n.push(c[1])}else n.push("")}s.push(n.join(","))}return s.join(";")}var O7={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function L7(a,s){if(!a&&!(s&&s.biff<=5&&s.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(a)?"'"+a+"'":a}function H5(a,s,r){if(!a)return"SH33TJSERR0";if(r.biff>8&&(!a.XTI||!a.XTI[s]))return a.SheetNames[s];if(!a.XTI)return"SH33TJSERR6";var i=a.XTI[s];if(r.biff<8)return s>1e4&&(s-=65536),s<0&&(s=-s),s==0?"":a.XTI[s-1];if(!i)return"SH33TJSERR1";var n="";if(r.biff>8)switch(a[i[0]][0]){case 357:return n=i[1]==-1?"#REF":a.SheetNames[i[1]],i[1]==i[2]?n:n+":"+a.SheetNames[i[2]];case 358:return r.SID!=null?a.SheetNames[r.SID]:"SH33TJSSAME"+a[i[0]][0];case 355:default:return"SH33TJSSRC"+a[i[0]][0]}switch(a[i[0]][0][0]){case 1025:return n=i[1]==-1?"#REF":a.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?n:n+":"+a.SheetNames[i[2]];case 14849:return a[i[0]].slice(1).map(function(t){return t.Name}).join(";;");default:return a[i[0]][0][3]?(n=i[1]==-1?"#REF":a[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?n:n+":"+a[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function _4(a,s,r){var i=H5(a,s,r);return i=="#REF"?i:L7(i,r)}function el(a,s,r,i,n){var t=n&&n.biff||8,c={s:{c:0,r:0}},u=[],f,o,l,g=0,m=0,p,_="";if(!a[0]||!a[0][0])return"";for(var y=-1,h="",d=0,A=a[0].length;d<A;++d){var v=a[0][d];switch(v[0]){case"PtgUminus":u.push("-"+u.pop());break;case"PtgUplus":u.push("+"+u.pop());break;case"PtgPercent":u.push(u.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(f=u.pop(),o=u.pop(),y>=0){switch(a[0][y][1][0]){case 0:h=Ss(" ",a[0][y][1][1]);break;case 1:h=Ss("\r",a[0][y][1][1]);break;default:if(h="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][y][1][0])}o=o+h,y=-1}u.push(o+O7[v[0]]+f);break;case"PtgIsect":f=u.pop(),o=u.pop(),u.push(o+" "+f);break;case"PtgUnion":f=u.pop(),o=u.pop(),u.push(o+","+f);break;case"PtgRange":f=u.pop(),o=u.pop(),u.push(o+":"+f);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":l=C1(v[1][1],c,n),u.push(S1(l,t));break;case"PtgRefN":l=r?C1(v[1][1],r,n):v[1][1],u.push(S1(l,t));break;case"PtgRef3d":g=v[1][1],l=C1(v[1][2],c,n),_=_4(i,g,n),u.push(_+"!"+S1(l,t));break;case"PtgFunc":case"PtgFuncVar":var w=v[1][0],x=v[1][1];w||(w=0),w&=127;var C=w==0?[]:u.slice(-w);u.length-=w,x==="User"&&(x=C.shift()),u.push(x+"("+C.join(",")+")");break;case"PtgBool":u.push(v[1]?"TRUE":"FALSE");break;case"PtgInt":u.push(v[1]);break;case"PtgNum":u.push(String(v[1]));break;case"PtgStr":u.push('"'+v[1].replace(/"/g,'""')+'"');break;case"PtgErr":u.push(v[1]);break;case"PtgAreaN":p=Zx(v[1][1],r?{s:r}:c,n),u.push(_b(p,n));break;case"PtgArea":p=Zx(v[1][1],c,n),u.push(_b(p,n));break;case"PtgArea3d":g=v[1][1],p=v[1][2],_=_4(i,g,n),u.push(_+"!"+_b(p,n));break;case"PtgAttrSum":u.push("SUM("+u.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":m=v[1][2];var k=(i.names||[])[m-1]||(i[0]||[])[m],T=k?k.Name:"SH33TJSNAME"+String(m);T&&T.slice(0,6)=="_xlfn."&&!n.xlfn&&(T=T.slice(6)),u.push(T);break;case"PtgNameX":var S=v[1][1];m=v[1][2];var M;if(n.biff<=5)S<0&&(S=-S),i[S]&&(M=i[S][m]);else{var P="";if(((i[S]||[])[0]||[])[0]==14849||(((i[S]||[])[0]||[])[0]==1025?i[S][m]&&i[S][m].itab>0&&(P=i.SheetNames[i[S][m].itab-1]+"!"):P=i.SheetNames[m-1]+"!"),i[S]&&i[S][m])P+=i[S][m].Name;else if(i[0]&&i[0][m])P+=i[0][m].Name;else{var N=(H5(i,S,n)||"").split(";;");N[m-1]?P=N[m-1]:P+="SH33TJSERRX"}u.push(P);break}M||(M={Name:"SH33TJSERRY"}),u.push(M.Name);break;case"PtgParen":var B="(",O=")";if(y>=0){switch(h="",a[0][y][1][0]){case 2:B=Ss(" ",a[0][y][1][1])+B;break;case 3:B=Ss("\r",a[0][y][1][1])+B;break;case 4:O=Ss(" ",a[0][y][1][1])+O;break;case 5:O=Ss("\r",a[0][y][1][1])+O;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][y][1][0])}y=-1}u.push(B+u.pop()+O);break;case"PtgRefErr":u.push("#REF!");break;case"PtgRefErr3d":u.push("#REF!");break;case"PtgExp":l={c:v[1][1],r:v[1][0]};var I={c:r.c,r:r.r};if(i.sharedf[da(l)]){var F=i.sharedf[da(l)];u.push(el(F,c,I,i,n))}else{var L=!1;for(f=0;f!=i.arrayf.length;++f)if(o=i.arrayf[f],!(l.c<o[0].s.c||l.c>o[0].e.c)&&!(l.r<o[0].s.r||l.r>o[0].e.r)){u.push(el(o[1],c,I,i,n)),L=!0;break}L||u.push(v[1])}break;case"PtgArray":u.push("{"+D7(v[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":y=d;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":u.push("");break;case"PtgAreaErr":u.push("#REF!");break;case"PtgAreaErr3d":u.push("#REF!");break;case"PtgList":u.push("Table"+v[1].idx+"[#"+v[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":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");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(v));default:throw new Error("Unrecognized Formula Token: "+String(v))}var R=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&y>=0&&R.indexOf(a[0][d][0])==-1){v=a[0][y];var U=!0;switch(v[1][0]){case 4:U=!1;case 0:h=Ss(" ",v[1][1]);break;case 5:U=!1;case 1:h=Ss("\r",v[1][1]);break;default:if(h="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+v[1][0])}u.push((U?h:"")+u.pop()+(U?"":h)),y=-1}}if(u.length>1&&n.WTF)throw new Error("bad formula stack");return u[0]}function P7(a,s,r){var i=a.l+s,n=r.biff==2?1:2,t,c=a.read_shift(n);if(c==65535)return[[],sl(a,s-2)];var u=dv(a,c,r);return s!==c+n&&(t=fv(a,s-c-n,u,r)),a.l=i,[u,t]}function R7(a,s,r){var i=a.l+s,n=r.biff==2?1:2,t,c=a.read_shift(n);if(c==65535)return[[],sl(a,s-2)];var u=dv(a,c,r);return s!==c+n&&(t=fv(a,s-c-n,u,r)),a.l=i,[u,t]}function U7(a,s,r,i){var n=a.l+s,t=dv(a,i,r),c;return n!==a.l&&(c=fv(a,n-a.l,t,r)),[t,c]}function N7(a,s,r){var i=a.l+s,n,t=a.read_shift(2),c=dv(a,t,r);return t==65535?[[],sl(a,s-2)]:(s!==t+2&&(n=fv(a,i-t-2,c,r)),[c,n])}function j7(a){var s;if(Td(a,a.l+6)!==65535)return[nl(a),"n"];switch(a[a.l]){case 0:return a.l+=8,["String","s"];case 1:return s=a[a.l+2]===1,a.l+=8,[s,"b"];case 2:return s=a[a.l+2],a.l+=8,[s,"e"];case 3:return a.l+=8,["","s"]}return[]}function H7(a){if(a==null){var s=Er(8);return s.write_shift(1,3),s.write_shift(1,0),s.write_shift(2,0),s.write_shift(2,0),s.write_shift(2,65535),s}else if(typeof a=="number")return D0(a);return D0(0)}function Tb(a,s,r){var i=a.l+s,n=Ef(a);r.biff==2&&++a.l;var t=j7(a),c=a.read_shift(1);r.biff!=2&&(a.read_shift(1),r.biff>=5&&a.read_shift(4));var u=R7(a,i-a.l,r);return{cell:n,val:t[0],formula:u,shared:c>>3&1,tt:t[1]}}function Q7(a,s,r,i,n){var t=L0(s,r,n),c=H7(a.v),u=Er(6),f=33;u.write_shift(2,f),u.write_shift(4,0);for(var o=Er(a.bf.length),l=0;l<a.bf.length;++l)o[l]=a.bf[l];var g=So([t,c,u,o]);return g}function Cy(a,s,r){var i=a.read_shift(4),n=dv(a,i,r),t=a.read_shift(4),c=t>0?fv(a,t,n,r):null;return[n,c]}var z7=Cy,Sy=Cy,V7=Cy,W7=Cy,G7={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"},Q5={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"},$7={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 x4(a){return a.slice(0,3)=="of:"&&(a=a.slice(3)),a.charCodeAt(0)==61&&(a=a.slice(1),a.charCodeAt(0)==61&&(a=a.slice(1))),a=a.replace(/COM\.MICROSOFT\./g,""),a=a.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(s,r){return r.replace(/\./g,"")}),a=a.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),a.replace(/[;~]/g,",").replace(/\|/g,";")}function K7(a){var s="of:="+a.replace(D_,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return s.replace(/;/g,"|").replace(/,/g,";")}function Eb(a){var s=a.split(":"),r=s[0].split(".")[0];return[r,s[0].split(".")[1]+(s.length>1?":"+(s[1].split(".")[1]||s[1].split(".")[0]):"")]}function Y7(a){return a.replace(/\./,"!")}var T1={},Hm={},E1=typeof Map<"u";function P_(a,s,r){var i=0,n=a.length;if(r){if(E1?r.has(s):Object.prototype.hasOwnProperty.call(r,s)){for(var t=E1?r.get(s):r[s];i<t.length;++i)if(a[t[i]].t===s)return a.Count++,t[i]}}else for(;i<n;++i)if(a[i].t===s)return a.Count++,i;return a[n]={t:s},a.Count++,a.Unique++,r&&(E1?(r.has(s)||r.set(s,[]),r.get(s).push(n)):(Object.prototype.hasOwnProperty.call(r,s)||(r[s]=[]),r[s].push(n))),n}function ky(a,s){var r={min:a+1,max:a+1},i=-1;return s.MDW&&(rl=s.MDW),s.width!=null?r.customWidth=1:s.wpx!=null?i=$1(s.wpx):s.wch!=null&&(i=s.wch),i>-1?(r.width=q2(i),r.customWidth=1):s.width!=null&&(r.width=s.width),s.hidden&&(r.hidden=!0),s.level!=null&&(r.outlineLevel=r.level=s.level),r}function k0(a,s){if(a){var r=[.7,.7,.75,.75,.3,.3];s=="xlml"&&(r=[1,1,1,1,.5,.5]),a.left==null&&(a.left=r[0]),a.right==null&&(a.right=r[1]),a.top==null&&(a.top=r[2]),a.bottom==null&&(a.bottom=r[3]),a.header==null&&(a.header=r[4]),a.footer==null&&(a.footer=r[5])}}function uA(a,s,r){var i=r.revssf[s.z!=null?s.z:"General"],n=60,t=a.length;if(i==null&&r.ssf){for(;n<392;++n)if(r.ssf[n]==null){Id(s.z,n),r.ssf[n]=s.z,r.revssf[s.z]=i=n;break}}for(n=0;n!=t;++n)if(a[n].numFmtId===i)return n;return a[t]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},t}function z5(a,s,r,i,n,t){try{i.cellNF&&(a.z=fa[s])}catch(u){if(i.WTF)throw u}if(!(a.t==="z"&&!i.cellStyles)){if(a.t==="d"&&typeof a.v=="string"&&(a.v=qi(a.v)),(!i||i.cellText!==!1)&&a.t!=="z")try{if(fa[s]==null&&Id(GE[s]||"General",s),a.t==="e")a.w=a.w||Rd[a.v];else if(s===0)if(a.t==="n")(a.v|0)===a.v?a.w=a.v.toString(10):a.w=j1(a.v);else if(a.t==="d"){var c=Ao(a.v);(c|0)===c?a.w=c.toString(10):a.w=j1(c)}else{if(a.v===void 0)return"";a.w=F0(a.v,Hm)}else a.t==="d"?a.w=tc(s,Ao(a.v),Hm):a.w=tc(s,a.v,Hm)}catch(u){if(i.WTF)throw u}if(i.cellStyles&&r!=null)try{a.s=t.Fills[r],a.s.fgColor&&a.s.fgColor.theme&&!a.s.fgColor.rgb&&(a.s.fgColor.rgb=J2(n.themeElements.clrScheme[a.s.fgColor.theme].rgb,a.s.fgColor.tint||0),i.WTF&&(a.s.fgColor.raw_rgb=n.themeElements.clrScheme[a.s.fgColor.theme].rgb)),a.s.bgColor&&a.s.bgColor.theme&&(a.s.bgColor.rgb=J2(n.themeElements.clrScheme[a.s.bgColor.theme].rgb,a.s.bgColor.tint||0),i.WTF&&(a.s.bgColor.raw_rgb=n.themeElements.clrScheme[a.s.bgColor.theme].rgb))}catch(u){if(i.WTF&&t.Fills)throw u}}}function X7(a,s,r){if(a&&a["!ref"]){var i=mi(a["!ref"]);if(i.e.c<i.s.c||i.e.r<i.s.r)throw new Error("Bad range ("+r+"): "+a["!ref"])}}function Z7(a,s){var r=mi(s);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(a["!ref"]=Ma(r))}var J7=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,q7=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,eO=/<(?:\w:)?hyperlink [^>]*>/mg,tO=/"(\w*:\w*)"/,rO=/<(?:\w:)?col\b[^>]*[\/]?>/g,nO=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,aO=/<(?:\w:)?pageMargins[^>]*\/>/g,V5=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,iO=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,sO=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function oO(a,s,r,i,n,t,c){if(!a)return a;i||(i={"!id":{}});var u=s.dense?[]:{},f={s:{r:2e6,c:2e6},e:{r:0,c:0}},o="",l="",g=a.match(q7);g?(o=a.slice(0,g.index),l=a.slice(g.index+g[0].length)):o=l=a;var m=o.match(V5);m?R_(m[0],u,n,r):(m=o.match(iO))&&uO(m[0],m[1]||"",u,n,r);var p=(o.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(p>0){var _=o.slice(p,p+50).match(tO);_&&Z7(u,_[1])}var y=o.match(sO);y&&y[1]&&_O(y[1],n);var h=[];if(s.cellStyles){var d=o.match(rO);d&&gO(h,d)}g&&SO(g[1],u,s,f,t,c);var A=l.match(nO);A&&(u["!autofilter"]=yO(A[0]));var v=[],w=l.match(J7);if(w)for(p=0;p!=w.length;++p)v[p]=mi(w[p].slice(w[p].indexOf('"')+1));var x=l.match(eO);x&&AO(u,x,i);var C=l.match(aO);if(C&&(u["!margins"]=pO(ma(C[0]))),!u["!ref"]&&f.e.c>=f.s.c&&f.e.r>=f.s.r&&(u["!ref"]=Ma(f)),s.sheetRows>0&&u["!ref"]){var k=mi(u["!ref"]);s.sheetRows<=+k.e.r&&(k.e.r=s.sheetRows-1,k.e.r>f.e.r&&(k.e.r=f.e.r),k.e.r<k.s.r&&(k.s.r=k.e.r),k.e.c>f.e.c&&(k.e.c=f.e.c),k.e.c<k.s.c&&(k.s.c=k.e.c),u["!fullref"]=u["!ref"],u["!ref"]=Ma(k))}return h.length>0&&(u["!cols"]=h),v.length>0&&(u["!merges"]=v),u}function lO(a){if(a.length===0)return"";for(var s='<mergeCells count="'+a.length+'">',r=0;r!=a.length;++r)s+='<mergeCell ref="'+Ma(a[r])+'"/>';return s+"</mergeCells>"}function R_(a,s,r,i){var n=ma(a);r.Sheets[i]||(r.Sheets[i]={}),n.codeName&&(r.Sheets[i].CodeName=hi(Mi(n.codeName)))}function uO(a,s,r,i,n){R_(a.slice(0,a.indexOf(">")),r,i,n)}function cO(a,s,r,i,n){var t=!1,c={},u=null;if(i.bookType!=="xlsx"&&s.vbaraw){var f=s.SheetNames[r];try{s.Workbook&&(f=s.Workbook.Sheets[r].CodeName||f)}catch{}t=!0,c.codeName=wf(Ii(f))}if(a&&a["!outline"]){var o={summaryBelow:1,summaryRight:1};a["!outline"].above&&(o.summaryBelow=0),a["!outline"].left&&(o.summaryRight=0),u=(u||"")+An("outlinePr",null,o)}!t&&!u||(n[n.length]=An("sheetPr",u,c))}var fO=["objects","scenarios","selectLockedCells","selectUnlockedCells"],dO=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function hO(a){var s={sheet:1};return fO.forEach(function(r){a[r]!=null&&a[r]&&(s[r]="1")}),dO.forEach(function(r){a[r]!=null&&!a[r]&&(s[r]="0")}),a.password&&(s.password=B_(a.password).toString(16).toUpperCase()),An("sheetProtection",null,s)}function AO(a,s,r){for(var i=Array.isArray(a),n=0;n!=s.length;++n){var t=ma(Mi(s[n]),!0);if(!t.ref)return;var c=((r||{})["!id"]||[])[t.id];c?(t.Target=c.Target,t.location&&(t.Target+="#"+hi(t.location))):(t.Target="#"+hi(t.location),c={Target:t.Target,TargetMode:"Internal"}),t.Rel=c,t.tooltip&&(t.Tooltip=t.tooltip,delete t.tooltip);for(var u=mi(t.ref),f=u.s.r;f<=u.e.r;++f)for(var o=u.s.c;o<=u.e.c;++o){var l=da({c:o,r:f});i?(a[f]||(a[f]=[]),a[f][o]||(a[f][o]={t:"z",v:void 0}),a[f][o].l=t):(a[l]||(a[l]={t:"z",v:void 0}),a[l].l=t)}}}function pO(a){var s={};return["left","right","top","bottom","header","footer"].forEach(function(r){a[r]&&(s[r]=parseFloat(a[r]))}),s}function mO(a){return k0(a),An("pageMargins",null,a)}function gO(a,s){for(var r=!1,i=0;i!=s.length;++i){var n=ma(s[i],!0);n.hidden&&(n.hidden=Ji(n.hidden));var t=parseInt(n.min,10)-1,c=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,F_(n.width)),tA(n);t<=c;)a[t++]=Ui(n)}}function vO(a,s){for(var r=["<cols>"],i,n=0;n!=s.length;++n)(i=s[n])&&(r[r.length]=An("col",null,ky(n,i)));return r[r.length]="</cols>",r.join("")}function yO(a){var s={ref:(a.match(/ref="([^"]*)"/)||[])[1]};return s}function bO(a,s,r,i){var n=typeof a.ref=="string"?a.ref:Ma(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var t=r.Workbook.Names,c=Gl(n);c.s.r==c.e.r&&(c.e.r=Gl(s["!ref"]).e.r,n=Ma(c));for(var u=0;u<t.length;++u){var f=t[u];if(f.Name=="_xlnm._FilterDatabase"&&f.Sheet==i){f.Ref="'"+r.SheetNames[i]+"'!"+n;break}}return u==t.length&&t.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+r.SheetNames[i]+"'!"+n}),An("autoFilter",null,{ref:n})}var wO=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function _O(a,s){s.Views||(s.Views=[{}]),(a.match(wO)||[]).forEach(function(r,i){var n=ma(r);s.Views[i]||(s.Views[i]={}),+n.zoomScale&&(s.Views[i].zoom=+n.zoomScale),Ji(n.rightToLeft)&&(s.Views[i].RTL=!0)})}function xO(a,s,r,i){var n={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),An("sheetViews",An("sheetView",null,n),{})}function CO(a,s,r,i){if(a.c&&r["!comments"].push([s,a.c]),a.v===void 0&&typeof a.f!="string"||a.t==="z"&&!a.f)return"";var n="",t=a.t,c=a.v;if(a.t!=="z")switch(a.t){case"b":n=a.v?"1":"0";break;case"n":n=""+a.v;break;case"e":n=Rd[a.v];break;case"d":i&&i.cellDates?n=qi(a.v,-1).toISOString():(a=Ui(a),a.t="n",n=""+(a.v=Ao(qi(a.v)))),typeof a.z>"u"&&(a.z=fa[14]);break;default:n=a.v;break}var u=Ho("v",Ii(n)),f={r:s},o=uA(i.cellXfs,a,i);switch(o!==0&&(f.s=o),a.t){case"n":break;case"d":f.t="d";break;case"b":f.t="b";break;case"e":f.t="e";break;case"z":break;default:if(a.v==null){delete a.t;break}if(a.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){u=Ho("v",""+P_(i.Strings,a.v,i.revStrings)),f.t="s";break}f.t="str";break}if(a.t!=t&&(a.t=t,a.v=c),typeof a.f=="string"&&a.f){var l=a.F&&a.F.slice(0,s.length)==s?{t:"array",ref:a.F}:null;u=An("f",Ii(a.f),l)+(a.v!=null?u:"")}return a.l&&r["!links"].push([s,a.l]),a.D&&(f.cm=1),An("c",u,f)}var SO=(function(){var a=/<(?:\w+:)?c[ \/>]/,s=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,i=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,t=H1("v"),c=H1("f");return function(f,o,l,g,m,p){for(var _=0,y="",h=[],d=[],A=0,v=0,w=0,x="",C,k,T=0,S=0,M,P,N=0,B=0,O=Array.isArray(p.CellXf),I,F=[],L=[],R=Array.isArray(o),U=[],V={},W=!1,Q=!!l.sheetStubs,le=f.split(s),G=0,fe=le.length;G!=fe;++G){y=le[G].trim();var ie=y.length;if(ie!==0){var he=0;e:for(_=0;_<ie;++_)switch(y[_]){case">":if(y[_-1]!="/"){++_;break e}if(l&&l.cellStyles){if(k=ma(y.slice(he,_),!0),T=k.r!=null?parseInt(k.r,10):T+1,S=-1,l.sheetRows&&l.sheetRows<T)continue;V={},W=!1,k.ht&&(W=!0,V.hpt=parseFloat(k.ht),V.hpx=Km(V.hpt)),k.hidden=="1"&&(W=!0,V.hidden=!0),k.outlineLevel!=null&&(W=!0,V.level=+k.outlineLevel),W&&(U[T-1]=V)}break;case"<":he=_;break}if(he>=_)break;if(k=ma(y.slice(he,_),!0),T=k.r!=null?parseInt(k.r,10):T+1,S=-1,!(l.sheetRows&&l.sheetRows<T)){g.s.r>T-1&&(g.s.r=T-1),g.e.r<T-1&&(g.e.r=T-1),l&&l.cellStyles&&(V={},W=!1,k.ht&&(W=!0,V.hpt=parseFloat(k.ht),V.hpx=Km(V.hpt)),k.hidden=="1"&&(W=!0,V.hidden=!0),k.outlineLevel!=null&&(W=!0,V.level=+k.outlineLevel),W&&(U[T-1]=V)),h=y.slice(_).split(a);for(var Y=0;Y!=h.length&&h[Y].trim().charAt(0)=="<";++Y);for(h=h.slice(Y),_=0;_!=h.length;++_)if(y=h[_].trim(),y.length!==0){if(d=y.match(r),A=_,v=0,w=0,y="<c "+(y.slice(0,1)=="<"?">":"")+y,d!=null&&d.length===2){for(A=0,x=d[1],v=0;v!=x.length&&!((w=x.charCodeAt(v)-64)<1||w>26);++v)A=26*A+w;--A,S=A}else++S;for(v=0;v!=y.length&&y.charCodeAt(v)!==62;++v);if(++v,k=ma(y.slice(0,v),!0),k.r||(k.r=da({r:T-1,c:S})),x=y.slice(v),C={t:""},(d=x.match(t))!=null&&d[1]!==""&&(C.v=hi(d[1])),l.cellFormula){if((d=x.match(c))!=null&&d[1]!==""){if(C.f=hi(Mi(d[1])).replace(/\r\n/g,`
`),l.xlfn||(C.f=y4(C.f)),d[0].indexOf('t="array"')>-1)C.F=(x.match(n)||[])[1],C.F.indexOf(":")>-1&&F.push([mi(C.F),C.F]);else if(d[0].indexOf('t="shared"')>-1){P=ma(d[0]);var K=hi(Mi(d[1]));l.xlfn||(K=y4(K)),L[parseInt(P.si,10)]=[P,K,k.r]}}else(d=x.match(/<f[^>]*\/>/))&&(P=ma(d[0]),L[P.si]&&(C.f=wD(L[P.si][1],L[P.si][2],k.r)));var oe=ps(k.r);for(v=0;v<F.length;++v)oe.r>=F[v][0].s.r&&oe.r<=F[v][0].e.r&&oe.c>=F[v][0].s.c&&oe.c<=F[v][0].e.c&&(C.F=F[v][1])}if(k.t==null&&C.v===void 0)if(C.f||C.F)C.v=0,C.t="n";else if(Q)C.t="z";else continue;else C.t=k.t||"n";switch(g.s.c>S&&(g.s.c=S),g.e.c<S&&(g.e.c=S),C.t){case"n":if(C.v==""||C.v==null){if(!Q)continue;C.t="z"}else C.v=parseFloat(C.v);break;case"s":if(typeof C.v>"u"){if(!Q)continue;C.t="z"}else M=T1[parseInt(C.v,10)],C.v=M.t,C.r=M.r,l.cellHTML&&(C.h=M.h);break;case"str":C.t="s",C.v=C.v!=null?Mi(C.v):"",l.cellHTML&&(C.h=p_(C.v));break;case"inlineStr":d=x.match(i),C.t="s",d!=null&&(M=I_(d[1]))?(C.v=M.t,l.cellHTML&&(C.h=M.h)):C.v="";break;case"b":C.v=Ji(C.v);break;case"d":l.cellDates?C.v=qi(C.v,1):(C.v=Ao(qi(C.v,1)),C.t="n");break;case"e":(!l||l.cellText!==!1)&&(C.w=C.v),C.v=GS[C.v];break}if(N=B=0,I=null,O&&k.s!==void 0&&(I=p.CellXf[k.s],I!=null&&(I.numFmtId!=null&&(N=I.numFmtId),l.cellStyles&&I.fillId!=null&&(B=I.fillId))),z5(C,N,B,l,m,p),l.cellDates&&O&&C.t=="n"&&Jm(fa[N])&&(C.t="d",C.v=_y(C.v)),k.cm&&l.xlmeta){var pe=(l.xlmeta.Cell||[])[+k.cm-1];pe&&pe.type=="XLDAPR"&&(C.D=!0)}if(R){var ve=ps(k.r);o[ve.r]||(o[ve.r]=[]),o[ve.r][ve.c]=C}else o[k.r]=C}}}}U.length>0&&(o["!rows"]=U)}})();function kO(a,s,r,i){var n=[],t=[],c=mi(a["!ref"]),u="",f,o="",l=[],g=0,m=0,p=a["!rows"],_=Array.isArray(a),y={r:o},h,d=-1;for(m=c.s.c;m<=c.e.c;++m)l[m]=As(m);for(g=c.s.r;g<=c.e.r;++g){for(t=[],o=zs(g),m=c.s.c;m<=c.e.c;++m){f=l[m]+o;var A=_?(a[g]||[])[m]:a[f];A!==void 0&&(u=CO(A,f,a,s))!=null&&t.push(u)}(t.length>0||p&&p[g])&&(y={r:o},p&&p[g]&&(h=p[g],h.hidden&&(y.hidden=1),d=-1,h.hpx?d=K1(h.hpx):h.hpt&&(d=h.hpt),d>-1&&(y.ht=d,y.customHeight=1),h.level&&(y.outlineLevel=h.level)),n[n.length]=An("row",t.join(""),y))}if(p)for(;g<p.length;++g)p&&p[g]&&(y={r:g+1},h=p[g],h.hidden&&(y.hidden=1),d=-1,h.hpx?d=K1(h.hpx):h.hpt&&(d=h.hpt),d>-1&&(y.ht=d,y.customHeight=1),h.level&&(y.outlineLevel=h.level),n[n.length]=An("row","",y));return n.join("")}function W5(a,s,r,i){var n=[Vs,An("worksheet",null,{xmlns:H0[0],"xmlns:r":ho.r})],t=r.SheetNames[a],c=0,u="",f=r.Sheets[t];f==null&&(f={});var o=f["!ref"]||"A1",l=mi(o);if(l.e.c>16383||l.e.r>1048575){if(s.WTF)throw new Error("Range "+o+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575),o=Ma(l)}i||(i={}),f["!comments"]=[];var g=[];cO(f,r,a,s,n),n[n.length]=An("dimension",null,{ref:o}),n[n.length]=xO(f,s,a,r),s.sheetFormat&&(n[n.length]=An("sheetFormatPr",null,{defaultRowHeight:s.sheetFormat.defaultRowHeight||"16",baseColWidth:s.sheetFormat.baseColWidth||"10",outlineLevelRow:s.sheetFormat.outlineLevelRow||"7"})),f["!cols"]!=null&&f["!cols"].length>0&&(n[n.length]=vO(f,f["!cols"])),n[c=n.length]="<sheetData/>",f["!links"]=[],f["!ref"]!=null&&(u=kO(f,s),u.length>0&&(n[n.length]=u)),n.length>c+1&&(n[n.length]="</sheetData>",n[c]=n[c].replace("/>",">")),f["!protect"]&&(n[n.length]=hO(f["!protect"])),f["!autofilter"]!=null&&(n[n.length]=bO(f["!autofilter"],f,r,a)),f["!merges"]!=null&&f["!merges"].length>0&&(n[n.length]=lO(f["!merges"]));var m=-1,p,_=-1;return f["!links"].length>0&&(n[n.length]="<hyperlinks>",f["!links"].forEach(function(y){y[1].Target&&(p={ref:y[0]},y[1].Target.charAt(0)!="#"&&(_=Ei(i,-1,Ii(y[1].Target).replace(/#.*$/,""),Ya.HLINK),p["r:id"]="rId"+_),(m=y[1].Target.indexOf("#"))>-1&&(p.location=Ii(y[1].Target.slice(m+1))),y[1].Tooltip&&(p.tooltip=Ii(y[1].Tooltip)),n[n.length]=An("hyperlink",null,p))}),n[n.length]="</hyperlinks>"),delete f["!links"],f["!margins"]!=null&&(n[n.length]=mO(f["!margins"])),(!s||s.ignoreEC||s.ignoreEC==null)&&(n[n.length]=Ho("ignoredErrors",An("ignoredError",null,{numberStoredAsText:1,sqref:o}))),g.length>0&&(_=Ei(i,-1,"../drawings/drawing"+(a+1)+".xml",Ya.DRAW),n[n.length]=An("drawing",null,{"r:id":"rId"+_}),f["!drawing"]=g),f["!comments"].length>0&&(_=Ei(i,-1,"../drawings/vmlDrawing"+(a+1)+".vml",Ya.VML),n[n.length]=An("legacyDrawing",null,{"r:id":"rId"+_}),f["!legacy"]=_),n.length>1&&(n[n.length]="</worksheet>",n[1]=n[1].replace("/>",">")),n.join("")}function TO(a,s){var r={},i=a.l+s;r.r=a.read_shift(4),a.l+=4;var n=a.read_shift(2);a.l+=1;var t=a.read_shift(1);return a.l=i,t&7&&(r.level=t&7),t&16&&(r.hidden=!0),t&32&&(r.hpt=n/20),r}function EO(a,s,r){var i=Er(145),n=(r["!rows"]||[])[a]||{};i.write_shift(4,a),i.write_shift(4,0);var t=320;n.hpx?t=K1(n.hpx)*20:n.hpt&&(t=n.hpt*20),i.write_shift(2,t),i.write_shift(1,0);var c=0;n.level&&(c|=n.level),n.hidden&&(c|=16),(n.hpx||n.hpt)&&(c|=32),i.write_shift(1,c),i.write_shift(1,0);var u=0,f=i.l;i.l+=4;for(var o={r:a,c:0},l=0;l<16;++l)if(!(s.s.c>l+1<<10||s.e.c<l<<10)){for(var g=-1,m=-1,p=l<<10;p<l+1<<10;++p){o.c=p;var _=Array.isArray(r)?(r[o.r]||[])[o.c]:r[da(o)];_&&(g<0&&(g=p),m=p)}g<0||(++u,i.write_shift(4,g),i.write_shift(4,m))}var y=i.l;return i.l=f,i.write_shift(4,u),i.l=y,i.length>i.l?i.slice(0,i.l):i}function IO(a,s,r,i){var n=EO(i,r,s);(n.length>17||(s["!rows"]||[])[i])&&Vr(a,0,n)}var BO=W0,FO=tg;function MO(){}function DO(a,s){var r={},i=a[a.l];return++a.l,r.above=!(i&64),r.left=!(i&128),a.l+=18,r.name=PI(a),r}function OO(a,s,r){r==null&&(r=Er(84+4*a.length));var i=192;s&&(s.above&&(i&=-65),s.left&&(i&=-129)),r.write_shift(1,i);for(var n=1;n<3;++n)r.write_shift(1,0);return Y2({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),HS(a,r),r.slice(0,r.l)}function LO(a){var s=rc(a);return[s]}function PO(a,s,r){return r==null&&(r=Er(8)),Q0(s,r)}function RO(a){var s=z0(a);return[s]}function UO(a,s,r){return r==null&&(r=Er(4)),V0(s,r)}function NO(a){var s=rc(a),r=a.read_shift(1);return[s,r,"b"]}function jO(a,s,r){return r==null&&(r=Er(9)),Q0(s,r),r.write_shift(1,a.v?1:0),r}function HO(a){var s=z0(a),r=a.read_shift(1);return[s,r,"b"]}function QO(a,s,r){return r==null&&(r=Er(5)),V0(s,r),r.write_shift(1,a.v?1:0),r}function zO(a){var s=rc(a),r=a.read_shift(1);return[s,r,"e"]}function VO(a,s,r){return r==null&&(r=Er(9)),Q0(s,r),r.write_shift(1,a.v),r}function WO(a){var s=z0(a),r=a.read_shift(1);return[s,r,"e"]}function GO(a,s,r){return r==null&&(r=Er(8)),V0(s,r),r.write_shift(1,a.v),r.write_shift(2,0),r.write_shift(1,0),r}function $O(a){var s=rc(a),r=a.read_shift(4);return[s,r,"s"]}function KO(a,s,r){return r==null&&(r=Er(12)),Q0(s,r),r.write_shift(4,s.v),r}function YO(a){var s=z0(a),r=a.read_shift(4);return[s,r,"s"]}function XO(a,s,r){return r==null&&(r=Er(8)),V0(s,r),r.write_shift(4,s.v),r}function ZO(a){var s=rc(a),r=nl(a);return[s,r,"n"]}function JO(a,s,r){return r==null&&(r=Er(16)),Q0(s,r),D0(a.v,r),r}function G5(a){var s=z0(a),r=nl(a);return[s,r,"n"]}function qO(a,s,r){return r==null&&(r=Er(12)),V0(s,r),D0(a.v,r),r}function eL(a){var s=rc(a),r=C_(a);return[s,r,"n"]}function tL(a,s,r){return r==null&&(r=Er(12)),Q0(s,r),QS(a.v,r),r}function rL(a){var s=z0(a),r=C_(a);return[s,r,"n"]}function nL(a,s,r){return r==null&&(r=Er(8)),V0(s,r),QS(a.v,r),r}function aL(a){var s=rc(a),r=w_(a);return[s,r,"is"]}function iL(a){var s=rc(a),r=al(a);return[s,r,"str"]}function sL(a,s,r){return r==null&&(r=Er(12+4*a.v.length)),Q0(s,r),ko(a.v,r),r.length>r.l?r.slice(0,r.l):r}function oL(a){var s=z0(a),r=al(a);return[s,r,"str"]}function lL(a,s,r){return r==null&&(r=Er(8+4*a.v.length)),V0(s,r),ko(a.v,r),r.length>r.l?r.slice(0,r.l):r}function uL(a,s,r){var i=a.l+s,n=rc(a);n.r=r["!row"];var t=a.read_shift(1),c=[n,t,"b"];if(r.cellFormula){a.l+=2;var u=Sy(a,i-a.l,r);c[3]=el(u,null,n,r.supbooks,r)}else a.l=i;return c}function cL(a,s,r){var i=a.l+s,n=rc(a);n.r=r["!row"];var t=a.read_shift(1),c=[n,t,"e"];if(r.cellFormula){a.l+=2;var u=Sy(a,i-a.l,r);c[3]=el(u,null,n,r.supbooks,r)}else a.l=i;return c}function fL(a,s,r){var i=a.l+s,n=rc(a);n.r=r["!row"];var t=nl(a),c=[n,t,"n"];if(r.cellFormula){a.l+=2;var u=Sy(a,i-a.l,r);c[3]=el(u,null,n,r.supbooks,r)}else a.l=i;return c}function dL(a,s,r){var i=a.l+s,n=rc(a);n.r=r["!row"];var t=al(a),c=[n,t,"str"];if(r.cellFormula){a.l+=2;var u=Sy(a,i-a.l,r);c[3]=el(u,null,n,r.supbooks,r)}else a.l=i;return c}var hL=W0,AL=tg;function pL(a,s){return s==null&&(s=Er(4)),s.write_shift(4,a),s}function mL(a,s){var r=a.l+s,i=W0(a),n=__(a),t=al(a),c=al(a),u=al(a);a.l=r;var f={rfx:i,relId:n,loc:t,display:u};return c&&(f.Tooltip=c),f}function gL(a,s){var r=Er(50+4*(a[1].Target.length+(a[1].Tooltip||"").length));tg({s:ps(a[0]),e:ps(a[0])},r),x_("rId"+s,r);var i=a[1].Target.indexOf("#"),n=i==-1?"":a[1].Target.slice(i+1);return ko(n||"",r),ko(a[1].Tooltip||"",r),ko("",r),r.slice(0,r.l)}function vL(){}function yL(a,s,r){var i=a.l+s,n=zS(a),t=a.read_shift(1),c=[n];if(c[2]=t,r.cellFormula){var u=z7(a,i-a.l,r);c[1]=u}else a.l=i;return c}function bL(a,s,r){var i=a.l+s,n=W0(a),t=[n];if(r.cellFormula){var c=W7(a,i-a.l,r);t[1]=c,a.l=i}else a.l=i;return t}function wL(a,s,r){r==null&&(r=Er(18));var i=ky(a,s);r.write_shift(-4,a),r.write_shift(-4,a),r.write_shift(4,(i.width||10)*256),r.write_shift(4,0);var n=0;return s.hidden&&(n|=1),typeof i.width=="number"&&(n|=2),s.level&&(n|=s.level<<8),r.write_shift(2,n),r}var $5=["left","right","top","bottom","header","footer"];function _L(a){var s={};return $5.forEach(function(r){s[r]=nl(a)}),s}function xL(a,s){return s==null&&(s=Er(48)),k0(a),$5.forEach(function(r){D0(a[r],s)}),s}function CL(a){var s=a.read_shift(2);return a.l+=28,{RTL:s&32}}function SL(a,s,r){r==null&&(r=Er(30));var i=924;return(((s||{}).Views||[])[0]||{}).RTL&&(i|=32),r.write_shift(2,i),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function kL(a){var s=Er(24);return s.write_shift(4,4),s.write_shift(4,1),tg(a,s),s}function TL(a,s){return s==null&&(s=Er(66)),s.write_shift(2,a.password?B_(a.password):0),s.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(r){r[1]?s.write_shift(4,a[r[0]]!=null&&!a[r[0]]?1:0):s.write_shift(4,a[r[0]]!=null&&a[r[0]]?0:1)}),s}function EL(){}function IL(){}function BL(a,s,r,i,n,t,c){if(!a)return a;var u=s||{};i||(i={"!id":{}});var f=u.dense?[]:{},o,l={s:{r:2e6,c:2e6},e:{r:0,c:0}},g=!1,m=!1,p,_,y,h,d,A,v,w,x,C=[];u.biff=12,u["!row"]=0;var k=0,T=!1,S=[],M={},P=u.supbooks||n.supbooks||[[]];if(P.sharedf=M,P.arrayf=S,P.SheetNames=n.SheetNames||n.Sheets.map(function(R){return R.name}),!u.supbooks&&(u.supbooks=P,n.Names))for(var N=0;N<n.Names.length;++N)P[0][N+1]=n.Names[N];var B=[],O=[],I=!1;Y1[16]={n:"BrtShortReal",f:G5};var F;if(Pd(a,function(U,V,W){if(!m)switch(W){case 148:o=U;break;case 0:p=U,u.sheetRows&&u.sheetRows<=p.r&&(m=!0),w=zs(h=p.r),u["!row"]=p.r,(U.hidden||U.hpt||U.level!=null)&&(U.hpt&&(U.hpx=Km(U.hpt)),O[U.r]=U);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(_={t:U[2]},U[2]){case"n":_.v=U[1];break;case"s":v=T1[U[1]],_.v=v.t,_.r=v.r;break;case"b":_.v=!!U[1];break;case"e":_.v=U[1],u.cellText!==!1&&(_.w=Rd[_.v]);break;case"str":_.t="s",_.v=U[1];break;case"is":_.t="s",_.v=U[1].t;break}if((y=c.CellXf[U[0].iStyleRef])&&z5(_,y.numFmtId,null,u,t,c),d=U[0].c==-1?d+1:U[0].c,u.dense?(f[h]||(f[h]=[]),f[h][d]=_):f[As(d)+w]=_,u.cellFormula){for(T=!1,k=0;k<S.length;++k){var Q=S[k];p.r>=Q[0].s.r&&p.r<=Q[0].e.r&&d>=Q[0].s.c&&d<=Q[0].e.c&&(_.F=Ma(Q[0]),T=!0)}!T&&U.length>3&&(_.f=U[3])}if(l.s.r>p.r&&(l.s.r=p.r),l.s.c>d&&(l.s.c=d),l.e.r<p.r&&(l.e.r=p.r),l.e.c<d&&(l.e.c=d),u.cellDates&&y&&_.t=="n"&&Jm(fa[y.numFmtId])){var le=b0(_.v);le&&(_.t="d",_.v=new Date(le.y,le.m-1,le.d,le.H,le.M,le.S,le.u))}F&&(F.type=="XLDAPR"&&(_.D=!0),F=void 0);break;case 1:case 12:if(!u.sheetStubs||g)break;_={t:"z",v:void 0},d=U[0].c==-1?d+1:U[0].c,u.dense?(f[h]||(f[h]=[]),f[h][d]=_):f[As(d)+w]=_,l.s.r>p.r&&(l.s.r=p.r),l.s.c>d&&(l.s.c=d),l.e.r<p.r&&(l.e.r=p.r),l.e.c<d&&(l.e.c=d),F&&(F.type=="XLDAPR"&&(_.D=!0),F=void 0);break;case 176:C.push(U);break;case 49:F=((u.xlmeta||{}).Cell||[])[U-1];break;case 494:var G=i["!id"][U.relId];for(G?(U.Target=G.Target,U.loc&&(U.Target+="#"+U.loc),U.Rel=G):U.relId==""&&(U.Target="#"+U.loc),h=U.rfx.s.r;h<=U.rfx.e.r;++h)for(d=U.rfx.s.c;d<=U.rfx.e.c;++d)u.dense?(f[h]||(f[h]=[]),f[h][d]||(f[h][d]={t:"z",v:void 0}),f[h][d].l=U):(A=da({c:d,r:h}),f[A]||(f[A]={t:"z",v:void 0}),f[A].l=U);break;case 426:if(!u.cellFormula)break;S.push(U),x=u.dense?f[h][d]:f[As(d)+w],x.f=el(U[1],l,{r:p.r,c:d},P,u),x.F=Ma(U[0]);break;case 427:if(!u.cellFormula)break;M[da(U[0].s)]=U[1],x=u.dense?f[h][d]:f[As(d)+w],x.f=el(U[1],l,{r:p.r,c:d},P,u);break;case 60:if(!u.cellStyles)break;for(;U.e>=U.s;)B[U.e--]={width:U.w/256,hidden:!!(U.flags&1),level:U.level},I||(I=!0,F_(U.w/256)),tA(B[U.e+1]);break;case 161:f["!autofilter"]={ref:Ma(U)};break;case 476:f["!margins"]=U;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),U.name&&(n.Sheets[r].CodeName=U.name),(U.above||U.left)&&(f["!outline"]={above:U.above,left:U.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),U.RTL&&(n.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;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:g=!0;break;case 36:g=!1;break;case 37:g=!0;break;case 38:g=!1;break;default:if(!V.T){if(!g||u.WTF)throw new Error("Unexpected record 0x"+W.toString(16))}}},u),delete u.supbooks,delete u["!row"],!f["!ref"]&&(l.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0))&&(f["!ref"]=Ma(o||l)),u.sheetRows&&f["!ref"]){var L=mi(f["!ref"]);u.sheetRows<=+L.e.r&&(L.e.r=u.sheetRows-1,L.e.r>l.e.r&&(L.e.r=l.e.r),L.e.r<L.s.r&&(L.s.r=L.e.r),L.e.c>l.e.c&&(L.e.c=l.e.c),L.e.c<L.s.c&&(L.s.c=L.e.c),f["!fullref"]=f["!ref"],f["!ref"]=Ma(L))}return C.length>0&&(f["!merges"]=C),B.length>0&&(f["!cols"]=B),O.length>0&&(f["!rows"]=O),f}function FL(a,s,r,i,n,t,c){if(s.v===void 0)return!1;var u="";switch(s.t){case"b":u=s.v?"1":"0";break;case"d":s=Ui(s),s.z=s.z||fa[14],s.v=Ao(qi(s.v)),s.t="n";break;case"n":case"e":u=""+s.v;break;default:u=s.v;break}var f={r,c:i};switch(f.s=uA(n.cellXfs,s,n),s.l&&t["!links"].push([da(f),s.l]),s.c&&t["!comments"].push([da(f),s.c]),s.t){case"s":case"str":return n.bookSST?(u=P_(n.Strings,s.v,n.revStrings),f.t="s",f.v=u,c?Vr(a,18,XO(s,f)):Vr(a,7,KO(s,f))):(f.t="str",c?Vr(a,17,lL(s,f)):Vr(a,6,sL(s,f))),!0;case"n":return s.v==(s.v|0)&&s.v>-1e3&&s.v<1e3?c?Vr(a,13,nL(s,f)):Vr(a,2,tL(s,f)):c?Vr(a,16,qO(s,f)):Vr(a,5,JO(s,f)),!0;case"b":return f.t="b",c?Vr(a,15,QO(s,f)):Vr(a,4,jO(s,f)),!0;case"e":return f.t="e",c?Vr(a,14,GO(s,f)):Vr(a,3,VO(s,f)),!0}return c?Vr(a,12,UO(s,f)):Vr(a,1,PO(s,f)),!0}function ML(a,s,r,i){var n=mi(s["!ref"]||"A1"),t,c="",u=[];Vr(a,145);var f=Array.isArray(s),o=n.e.r;s["!rows"]&&(o=Math.max(n.e.r,s["!rows"].length-1));for(var l=n.s.r;l<=o;++l){c=zs(l),IO(a,s,n,l);var g=!1;if(l<=n.e.r)for(var m=n.s.c;m<=n.e.c;++m){l===n.s.r&&(u[m]=As(m)),t=u[m]+c;var p=f?(s[l]||[])[m]:s[t];if(!p){g=!1;continue}g=FL(a,p,l,m,i,s,g)}}Vr(a,146)}function DL(a,s){!s||!s["!merges"]||(Vr(a,177,pL(s["!merges"].length)),s["!merges"].forEach(function(r){Vr(a,176,AL(r))}),Vr(a,178))}function OL(a,s){!s||!s["!cols"]||(Vr(a,390),s["!cols"].forEach(function(r,i){r&&Vr(a,60,wL(i,r))}),Vr(a,391))}function LL(a,s){!s||!s["!ref"]||(Vr(a,648),Vr(a,649,kL(mi(s["!ref"]))),Vr(a,650))}function PL(a,s,r){s["!links"].forEach(function(i){if(i[1].Target){var n=Ei(r,-1,i[1].Target.replace(/#.*$/,""),Ya.HLINK);Vr(a,494,gL(i,n))}}),delete s["!links"]}function RL(a,s,r,i){if(s["!comments"].length>0){var n=Ei(i,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Ya.VML);Vr(a,551,x_("rId"+n)),s["!legacy"]=n}}function UL(a,s,r,i){if(s["!autofilter"]){var n=s["!autofilter"],t=typeof n.ref=="string"?n.ref:Ma(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var c=r.Workbook.Names,u=Gl(t);u.s.r==u.e.r&&(u.e.r=Gl(s["!ref"]).e.r,t=Ma(u));for(var f=0;f<c.length;++f){var o=c[f];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==i){o.Ref="'"+r.SheetNames[i]+"'!"+t;break}}f==c.length&&c.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+r.SheetNames[i]+"'!"+t}),Vr(a,161,tg(mi(t))),Vr(a,162)}}function NL(a,s,r){Vr(a,133),Vr(a,137,SL(s,r)),Vr(a,138),Vr(a,134)}function jL(a,s){s["!protect"]&&Vr(a,535,TL(s["!protect"]))}function HL(a,s,r,i){var n=Wl(),t=r.SheetNames[a],c=r.Sheets[t]||{},u=t;try{r&&r.Workbook&&(u=r.Workbook.Sheets[a].CodeName||u)}catch{}var f=mi(c["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(s.WTF)throw new Error("Range "+(c["!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 c["!links"]=[],c["!comments"]=[],Vr(n,129),(r.vbaraw||c["!outline"])&&Vr(n,147,OO(u,c["!outline"])),Vr(n,148,FO(f)),NL(n,c,r.Workbook),OL(n,c),ML(n,c,a,s),jL(n,c),UL(n,c,r,a),DL(n,c),PL(n,c,i),c["!margins"]&&Vr(n,476,xL(c["!margins"])),(!s||s.ignoreEC||s.ignoreEC==null)&&LL(n,c),RL(n,c,a,i),Vr(n,130),n.end()}function QL(a){var s=[],r=a.match(/^<c:numCache>/),i;(a.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(t){var c=t.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);c&&(s[+c[1]]=r?+c[2]:c[2])});var n=hi((a.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(a.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(t){i=t.replace(/<.*?>/g,"")}),[s,n,i]}function zL(a,s,r,i,n,t){var c=t||{"!type":"chart"};if(!a)return t;var u=0,f=0,o="A",l={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(a.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(g){var m=QL(g);l.s.r=l.s.c=0,l.e.c=u,o=As(u),m[0].forEach(function(p,_){c[o+zs(_)]={t:"n",v:p,z:m[1]},f=_}),l.e.r<f&&(l.e.r=f),++u}),u>0&&(c["!ref"]=Ma(l)),c}function VL(a,s,r,i,n){if(!a)return a;i||(i={"!id":{}});var t={"!type":"chart","!drawel":null,"!rel":""},c,u=a.match(V5);return u&&R_(u[0],t,n,r),(c=a.match(/drawing r:id="(.*?)"/))&&(t["!rel"]=c[1]),i["!id"][t["!rel"]]&&(t["!drawel"]=i["!id"][t["!rel"]]),t}function WL(a,s){a.l+=10;var r=al(a);return{name:r}}function GL(a,s,r,i,n){if(!a)return a;i||(i={"!id":{}});var t={"!type":"chart","!drawel":null,"!rel":""},c=!1;return Pd(a,function(f,o,l){switch(l){case 550:t["!rel"]=f;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),f.name&&(n.Sheets[r].CodeName=f.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:break;case 38:break;default:if(!(o.T>0)){if(!(o.T<0)){if(!c||s.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}},s),i["!id"][t["!rel"]]&&(t["!drawel"]=i["!id"][t["!rel"]]),t}var U_=[["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"]],$L=[["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"]],KL=[],YL=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function C4(a,s){for(var r=0;r!=a.length;++r)for(var i=a[r],n=0;n!=s.length;++n){var t=s[n];if(i[t[0]]==null)i[t[0]]=t[1];else switch(t[2]){case"bool":typeof i[t[0]]=="string"&&(i[t[0]]=Ji(i[t[0]]));break;case"int":typeof i[t[0]]=="string"&&(i[t[0]]=parseInt(i[t[0]],10));break}}}function S4(a,s){for(var r=0;r!=s.length;++r){var i=s[r];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":typeof a[i[0]]=="string"&&(a[i[0]]=Ji(a[i[0]]));break;case"int":typeof a[i[0]]=="string"&&(a[i[0]]=parseInt(a[i[0]],10));break}}}function K5(a){S4(a.WBProps,U_),S4(a.CalcPr,YL),C4(a.WBView,$L),C4(a.Sheets,KL),Hm.date1904=Ji(a.WBProps.date1904)}function XL(a){return!a.Workbook||!a.Workbook.WBProps?"false":Ji(a.Workbook.WBProps.date1904)?"true":"false"}var ZL="][*?/\\".split("");function Y5(a,s){if(a.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return ZL.forEach(function(i){if(a.indexOf(i)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function JL(a,s,r){a.forEach(function(i,n){Y5(i);for(var t=0;t<n;++t)if(i==a[t])throw new Error("Duplicate Sheet Name: "+i);if(r){var c=s&&s[n]&&s[n].CodeName||i;if(c.charCodeAt(0)==95&&c.length>22)throw new Error("Bad Code Name: Worksheet"+c)}})}function X5(a){if(!a||!a.SheetNames||!a.Sheets)throw new Error("Invalid Workbook");if(!a.SheetNames.length)throw new Error("Workbook is empty");var s=a.Workbook&&a.Workbook.Sheets||[];JL(a.SheetNames,s,!!a.vbaraw);for(var r=0;r<a.SheetNames.length;++r)X7(a.Sheets[a.SheetNames[r]],a.SheetNames[r],r)}var qL=/<\w+:workbook/;function eP(a,s){if(!a)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},i=!1,n="xmlns",t={},c=0;if(a.replace(ol,function(f,o){var l=ma(f);switch(Tf(l[0])){case"<?xml":break;case"<workbook":f.match(qL)&&(n="xmlns"+f.match(/<(\w+):/)[1]),r.xmlns=l[n];break;case"</workbook>":break;case"<fileVersion":delete l[0],r.AppVersion=l;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":U_.forEach(function(g){if(l[g[0]]!=null)switch(g[2]){case"bool":r.WBProps[g[0]]=Ji(l[g[0]]);break;case"int":r.WBProps[g[0]]=parseInt(l[g[0]],10);break;default:r.WBProps[g[0]]=l[g[0]]}}),l.codeName&&(r.WBProps.CodeName=Mi(l.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete l[0],r.WBView.push(l);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(l.state){case"hidden":l.Hidden=1;break;case"veryHidden":l.Hidden=2;break;default:l.Hidden=0}delete l.state,l.name=hi(Mi(l.name)),delete l[0],r.Sheets.push(l);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":i=!0;break;case"</definedNames>":i=!1;break;case"<definedName":t={},t.Name=Mi(l.name),l.comment&&(t.Comment=l.comment),l.localSheetId&&(t.Sheet=+l.localSheetId),Ji(l.hidden||"0")&&(t.Hidden=!0),c=o+f.length;break;case"</definedName>":t.Ref=hi(Mi(a.slice(c,o))),r.Names.push(t);break;case"<definedName/>":break;case"<calcPr":delete l[0],r.CalcPr=l;break;case"<calcPr/>":delete l[0],r.CalcPr=l;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":i=!0;break;case"</AlternateContent>":i=!1;break;case"<revisionPtr":break;default:if(!i&&s.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return f}),H0.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return K5(r),r}function Z5(a){var s=[Vs];s[s.length]=An("workbook",null,{xmlns:H0[0],"xmlns:r":ho.r});var r=a.Workbook&&(a.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};a.Workbook&&a.Workbook.WBProps&&(U_.forEach(function(u){a.Workbook.WBProps[u[0]]!=null&&a.Workbook.WBProps[u[0]]!=u[1]&&(i[u[0]]=a.Workbook.WBProps[u[0]])}),a.Workbook.WBProps.CodeName&&(i.codeName=a.Workbook.WBProps.CodeName,delete i.CodeName)),s[s.length]=An("workbookPr",null,i);var n=a.Workbook&&a.Workbook.Sheets||[],t=0;if(n&&n[0]&&n[0].Hidden){for(s[s.length]="<bookViews>",t=0;t!=a.SheetNames.length&&!(!n[t]||!n[t].Hidden);++t);t==a.SheetNames.length&&(t=0),s[s.length]='<workbookView firstSheet="'+t+'" activeTab="'+t+'"/>',s[s.length]="</bookViews>"}for(s[s.length]="<sheets>",t=0;t!=a.SheetNames.length;++t){var c={name:Ii(a.SheetNames[t].slice(0,31))};if(c.sheetId=""+(t+1),c["r:id"]="rId"+(t+1),n[t])switch(n[t].Hidden){case 1:c.state="hidden";break;case 2:c.state="veryHidden";break}s[s.length]=An("sheet",null,c)}return s[s.length]="</sheets>",r&&(s[s.length]="<definedNames>",a.Workbook&&a.Workbook.Names&&a.Workbook.Names.forEach(function(u){var f={name:u.Name};u.Comment&&(f.comment=u.Comment),u.Sheet!=null&&(f.localSheetId=""+u.Sheet),u.Hidden&&(f.hidden="1"),u.Ref&&(s[s.length]=An("definedName",Ii(u.Ref),f))}),s[s.length]="</definedNames>"),s.length>2&&(s[s.length]="</workbook>",s[1]=s[1].replace("/>",">")),s.join("")}function tP(a,s){var r={};return r.Hidden=a.read_shift(4),r.iTabID=a.read_shift(4),r.strRelID=hw(a),r.name=al(a),r}function rP(a,s){return s||(s=Er(127)),s.write_shift(4,a.Hidden),s.write_shift(4,a.iTabID),x_(a.strRelID,s),ko(a.name.slice(0,31),s),s.length>s.l?s.slice(0,s.l):s}function nP(a,s){var r={},i=a.read_shift(4);r.defaultThemeVersion=a.read_shift(4);var n=s>8?al(a):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(i&65536),r.backupFile=!!(i&64),r.checkCompatibility=!!(i&4096),r.date1904=!!(i&1),r.filterPrivacy=!!(i&8),r.hidePivotFieldList=!!(i&1024),r.promptedSolutions=!!(i&16),r.publishItems=!!(i&2048),r.refreshAllConnections=!!(i&262144),r.saveExternalLinkValues=!!(i&128),r.showBorderUnselectedTables=!!(i&4),r.showInkAnnotation=!!(i&32),r.showObjects=["all","placeholders","none"][i>>13&3],r.showPivotChartFilter=!!(i&32768),r.updateLinks=["userSet","never","always"][i>>8&3],r}function aP(a,s){s||(s=Er(72));var r=0;return a&&a.filterPrivacy&&(r|=8),s.write_shift(4,r),s.write_shift(4,0),HS(a&&a.CodeName||"ThisWorkbook",s),s.slice(0,s.l)}function iP(a,s){var r={};return a.read_shift(4),r.ArchID=a.read_shift(4),a.l+=s-8,r}function sP(a,s,r){var i=a.l+s;a.l+=4,a.l+=1;var n=a.read_shift(4),t=RI(a),c=V7(a,0,r),u=__(a);a.l=i;var f={Name:t,Ptg:c};return n<268435455&&(f.Sheet=n),u&&(f.Comment=u),f}function oP(a,s){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},i=[],n=!1;s||(s={}),s.biff=12;var t=[],c=[[]];return c.SheetNames=[],c.XTI=[],Y1[16]={n:"BrtFRTArchID$",f:iP},Pd(a,function(f,o,l){switch(l){case 156:c.SheetNames.push(f.name),r.Sheets.push(f);break;case 153:r.WBProps=f;break;case 39:f.Sheet!=null&&(s.SID=f.Sheet),f.Ref=el(f.Ptg,null,null,c,s),delete s.SID,delete f.Ptg,t.push(f);break;case 1036:break;case 357:case 358:case 355:case 667:c[0].length?c.push([l,f]):c[0]=[l,f],c[c.length-1].XTI=[];break;case 362:c.length===0&&(c[0]=[],c[0].XTI=[]),c[c.length-1].XTI=c[c.length-1].XTI.concat(f),c.XTI=c.XTI.concat(f);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;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:break;case 35:i.push(l),n=!0;break;case 36:i.pop(),n=!1;break;case 37:i.push(l),n=!0;break;case 38:i.pop(),n=!1;break;case 16:break;default:if(!o.T){if(!n||s.WTF&&i[i.length-1]!=37&&i[i.length-1]!=35)throw new Error("Unexpected record 0x"+l.toString(16))}}},s),K5(r),r.Names=t,r.supbooks=c,r}function lP(a,s){Vr(a,143);for(var r=0;r!=s.SheetNames.length;++r){var i=s.Workbook&&s.Workbook.Sheets&&s.Workbook.Sheets[r]&&s.Workbook.Sheets[r].Hidden||0,n={Hidden:i,iTabID:r+1,strRelID:"rId"+(r+1),name:s.SheetNames[r]};Vr(a,156,rP(n))}Vr(a,144)}function uP(a,s){s||(s=Er(127));for(var r=0;r!=4;++r)s.write_shift(4,0);return ko("SheetJS",s),ko(Q2.version,s),ko(Q2.version,s),ko("7262",s),s.length>s.l?s.slice(0,s.l):s}function cP(a,s){s||(s=Er(29)),s.write_shift(-4,0),s.write_shift(-4,460),s.write_shift(4,28800),s.write_shift(4,17600),s.write_shift(4,500),s.write_shift(4,a),s.write_shift(4,a);var r=120;return s.write_shift(1,r),s.length>s.l?s.slice(0,s.l):s}function fP(a,s){if(!(!s.Workbook||!s.Workbook.Sheets)){for(var r=s.Workbook.Sheets,i=0,n=-1,t=-1;i<r.length;++i)!r[i]||!r[i].Hidden&&n==-1?n=i:r[i].Hidden==1&&t==-1&&(t=i);t>n||(Vr(a,135),Vr(a,158,cP(n)),Vr(a,136))}}function dP(a,s){var r=Wl();return Vr(r,131),Vr(r,128,uP()),Vr(r,153,aP(a.Workbook&&a.Workbook.WBProps||null)),fP(r,a),lP(r,a),Vr(r,132),r.end()}function hP(a,s,r){return s.slice(-4)===".bin"?oP(a,r):eP(a,r)}function AP(a,s,r,i,n,t,c,u){return s.slice(-4)===".bin"?BL(a,i,r,n,t,c,u):oO(a,i,r,n,t,c,u)}function pP(a,s,r,i,n,t,c,u){return s.slice(-4)===".bin"?GL(a,i,r,n,t):VL(a,i,r,n,t)}function mP(a,s,r,i,n,t,c,u){return s.slice(-4)===".bin"?yD():bD()}function gP(a,s,r,i,n,t,c,u){return s.slice(-4)===".bin"?gD():vD()}function vP(a,s,r,i){return s.slice(-4)===".bin"?A9(a,r,i):r9(a,r,i)}function yP(a,s,r){return B5(a,r)}function bP(a,s,r){return s.slice(-4)===".bin"?wM(a,r):vM(a,r)}function wP(a,s,r){return s.slice(-4)===".bin"?dD(a,r):nD(a,r)}function _P(a,s,r){return s.slice(-4)===".bin"?eD(a):J9(a)}function xP(a,s,r,i){return r.slice(-4)===".bin"?tD(a,s,r,i):void 0}function CP(a,s,r){return s.slice(-4)===".bin"?Y9(a,s,r):Z9(a,s,r)}function SP(a,s,r){return(s.slice(-4)===".bin"?dP:Z5)(a)}function kP(a,s,r,i,n){return(s.slice(-4)===".bin"?HL:W5)(a,r,i,n)}function TP(a,s,r){return(s.slice(-4)===".bin"?C9:E5)(a,r)}function EP(a,s,r){return(s.slice(-4)===".bin"?CM:b5)(a,r)}function IP(a,s,r){return(s.slice(-4)===".bin"?hD:D5)(a)}function BP(a){return(a.slice(-4)===".bin"?X9:F5)()}var J5=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,q5=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Bc(a,s){var r=a.split(/\s+/),i=[];if(i[0]=r[0],r.length===1)return i;var n=a.match(J5),t,c,u,f;if(n)for(f=0;f!=n.length;++f)t=n[f].match(q5),(c=t[1].indexOf(":"))===-1?i[t[1]]=t[2].slice(1,t[2].length-1):(t[1].slice(0,6)==="xmlns:"?u="xmlns"+t[1].slice(6):u=t[1].slice(c+1),i[u]=t[2].slice(1,t[2].length-1));return i}function FP(a){var s=a.split(/\s+/),r={};if(s.length===1)return r;var i=a.match(J5),n,t,c,u;if(i)for(u=0;u!=i.length;++u)n=i[u].match(q5),(t=n[1].indexOf(":"))===-1?r[n[1]]=n[2].slice(1,n[2].length-1):(n[1].slice(0,6)==="xmlns:"?c="xmlns"+n[1].slice(6):c=n[1].slice(t+1),r[c]=n[2].slice(1,n[2].length-1));return r}var I1;function MP(a,s){var r=I1[a]||hi(a);return r==="General"?F0(s):tc(r,s)}function DP(a,s,r,i){var n=i;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Ji(i);break;case"i2":case"int":n=parseInt(i,10);break;case"r4":case"float":n=parseFloat(i);break;case"date":case"dateTime.tz":n=qi(i);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}a[hi(s)]=n}function OP(a,s,r){if(a.t!=="z"){if(!r||r.cellText!==!1)try{a.t==="e"?a.w=a.w||Rd[a.v]:s==="General"?a.t==="n"?(a.v|0)===a.v?a.w=a.v.toString(10):a.w=j1(a.v):a.w=F0(a.v):a.w=MP(s||"General",a.v)}catch(t){if(r.WTF)throw t}try{var i=I1[s]||s||"General";if(r.cellNF&&(a.z=i),r.cellDates&&a.t=="n"&&Jm(i)){var n=b0(a.v);n&&(a.t="d",a.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}catch(t){if(r.WTF)throw t}}}function LP(a,s,r){if(r.cellStyles&&s.Interior){var i=s.Interior;i.Pattern&&(i.patternType=KM[i.Pattern]||i.Pattern)}a[s.ID]=s}function PP(a,s,r,i,n,t,c,u,f,o){var l="General",g=i.StyleID,m={};o=o||{};var p=[],_=0;for(g===void 0&&u&&(g=u.StyleID),g===void 0&&c&&(g=c.StyleID);t[g]!==void 0&&(t[g].nf&&(l=t[g].nf),t[g].Interior&&p.push(t[g].Interior),!!t[g].Parent);)g=t[g].Parent;switch(r.Type){case"Boolean":i.t="b",i.v=Ji(a);break;case"String":i.t="s",i.r=Qx(hi(a)),i.v=a.indexOf("<")>-1?hi(s||a).replace(/<.*?>/g,""):i.r;break;case"DateTime":a.slice(-1)!="Z"&&(a+="Z"),i.v=(qi(a)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),i.v!==i.v?i.v=hi(a):i.v<60&&(i.v=i.v-1),(!l||l=="General")&&(l="yyyy-mm-dd");case"Number":i.v===void 0&&(i.v=+a),i.t||(i.t="n");break;case"Error":i.t="e",i.v=GS[a],o.cellText!==!1&&(i.w=a);break;default:a==""&&s==""?i.t="z":(i.t="s",i.v=Qx(s||a));break}if(OP(i,l,o),o.cellFormula!==!1)if(i.Formula){var y=hi(i.Formula);y.charCodeAt(0)==61&&(y=y.slice(1)),i.f=jm(y,n),delete i.Formula,i.ArrayRange=="RC"?i.F=jm("RC:RC",n):i.ArrayRange&&(i.F=jm(i.ArrayRange,n),f.push([mi(i.F),i.F]))}else for(_=0;_<f.length;++_)n.r>=f[_][0].s.r&&n.r<=f[_][0].e.r&&n.c>=f[_][0].s.c&&n.c<=f[_][0].e.c&&(i.F=f[_][1]);o.cellStyles&&(p.forEach(function(h){!m.patternType&&h.patternType&&(m.patternType=h.patternType)}),i.s=m),i.StyleID!==void 0&&(i.ixfe=i.StyleID)}function RP(a){a.t=a.v||"",a.t=a.t.replace(/\r\n/g,`
`).replace(/\r/g,`
`),a.v=a.w=a.ixfe=void 0}function Ib(a,s){var r=s||{};qm();var i=c1(m_(a));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(i=Mi(i));var n=i.slice(0,1024).toLowerCase(),t=!1;if(n=n.replace(/".*?"/g,""),(n.indexOf(">")&1023)>Math.min(n.indexOf(",")&1023,n.indexOf(";")&1023)){var c=Ui(r);return c.type="string",$m.to_workbook(i,c)}if(n.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Se){n.indexOf("<"+Se)>=0&&(t=!0)}),t)return _R(i,r);I1={"General Number":"General","General Date":fa[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":fa[15],"Short Date":fa[14],"Long Time":fa[19],"Medium Time":fa[18],"Short Time":fa[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:fa[2],Standard:fa[4],Percent:fa[10],Scientific:fa[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var u,f=[],o,l={},g=[],m=r.dense?[]:{},p="",_={},y={},h=Bc('<Data ss:Type="String">'),d=0,A=0,v=0,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},x={},C={},k="",T=0,S=[],M={},P={},N=0,B=[],O=[],I={},F=[],L,R=!1,U=[],V=[],W={},Q=0,le=0,G={Sheets:[],WBProps:{date1904:!1}},fe={};z1.lastIndex=0,i=i.replace(/<!--([\s\S]*?)-->/mg,"");for(var ie="";u=z1.exec(i);)switch(u[3]=(ie=u[3]).toLowerCase()){case"data":if(ie=="data"){if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"))}else u[0].charAt(u[0].length-2)!=="/"&&f.push([u[3],!0]);break}if(f[f.length-1][1])break;u[1]==="/"?PP(i.slice(d,u.index),k,h,f[f.length-1][0]=="comment"?I:_,{c:A,r:v},x,F[A],y,U,r):(k="",h=Bc(u[0]),d=u.index+u[0].length);break;case"cell":if(u[1]==="/")if(O.length>0&&(_.c=O),(!r.sheetRows||r.sheetRows>v)&&_.v!==void 0&&(r.dense?(m[v]||(m[v]=[]),m[v][A]=_):m[As(A)+zs(v)]=_),_.HRef&&(_.l={Target:hi(_.HRef)},_.HRefScreenTip&&(_.l.Tooltip=_.HRefScreenTip),delete _.HRef,delete _.HRefScreenTip),(_.MergeAcross||_.MergeDown)&&(Q=A+(parseInt(_.MergeAcross,10)|0),le=v+(parseInt(_.MergeDown,10)|0),S.push({s:{c:A,r:v},e:{c:Q,r:le}})),!r.sheetStubs)_.MergeAcross?A=Q+1:++A;else if(_.MergeAcross||_.MergeDown){for(var he=A;he<=Q;++he)for(var Y=v;Y<=le;++Y)(he>A||Y>v)&&(r.dense?(m[Y]||(m[Y]=[]),m[Y][he]={t:"z"}):m[As(he)+zs(Y)]={t:"z"});A=Q+1}else++A;else _=FP(u[0]),_.Index&&(A=+_.Index-1),A<w.s.c&&(w.s.c=A),A>w.e.c&&(w.e.c=A),u[0].slice(-2)==="/>"&&++A,O=[];break;case"row":u[1]==="/"||u[0].slice(-2)==="/>"?(v<w.s.r&&(w.s.r=v),v>w.e.r&&(w.e.r=v),u[0].slice(-2)==="/>"&&(y=Bc(u[0]),y.Index&&(v=+y.Index-1)),A=0,++v):(y=Bc(u[0]),y.Index&&(v=+y.Index-1),W={},(y.AutoFitHeight=="0"||y.Height)&&(W.hpx=parseInt(y.Height,10),W.hpt=K1(W.hpx),V[v]=W),y.Hidden=="1"&&(W.hidden=!0,V[v]=W));break;case"worksheet":if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"));g.push(p),w.s.r<=w.e.r&&w.s.c<=w.e.c&&(m["!ref"]=Ma(w),r.sheetRows&&r.sheetRows<=w.e.r&&(m["!fullref"]=m["!ref"],w.e.r=r.sheetRows-1,m["!ref"]=Ma(w))),S.length&&(m["!merges"]=S),F.length>0&&(m["!cols"]=F),V.length>0&&(m["!rows"]=V),l[p]=m}else w={s:{r:2e6,c:2e6},e:{r:0,c:0}},v=A=0,f.push([u[3],!1]),o=Bc(u[0]),p=hi(o.Name),m=r.dense?[]:{},S=[],U=[],V=[],fe={name:p,Hidden:0},G.Sheets.push(fe);break;case"table":if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"))}else{if(u[0].slice(-2)=="/>")break;f.push([u[3],!1]),F=[],R=!1}break;case"style":u[1]==="/"?LP(x,C,r):C=Bc(u[0]);break;case"numberformat":C.nf=hi(Bc(u[0]).Format||"General"),I1[C.nf]&&(C.nf=I1[C.nf]);for(var K=0;K!=392&&fa[K]!=C.nf;++K);if(K==392){for(K=57;K!=392;++K)if(fa[K]==null){Id(C.nf,K);break}}break;case"column":if(f[f.length-1][0]!=="table")break;if(L=Bc(u[0]),L.Hidden&&(L.hidden=!0,delete L.Hidden),L.Width&&(L.wpx=parseInt(L.Width,10)),!R&&L.wpx>10){R=!0,rl=k5;for(var oe=0;oe<F.length;++oe)F[oe]&&tA(F[oe])}R&&tA(L),F[L.Index-1||F.length]=L;for(var pe=0;pe<+L.Span;++pe)F[F.length]=Ui(L);break;case"namedrange":if(u[1]==="/")break;G.Names||(G.Names=[]);var ve=ma(u[0]),ge={Name:ve.Name,Ref:jm(ve.RefersTo.slice(1),{r:0,c:0})};G.Sheets.length>0&&(ge.Sheet=G.Sheets.length-1),G.Names.push(ge);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(u[0].slice(-2)==="/>")break;u[1]==="/"?k+=i.slice(T,u.index):T=u.index+u[0].length;break;case"interior":if(!r.cellStyles)break;C.Interior=Bc(u[0]);break;case"protection":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(u[0].slice(-2)==="/>")break;u[1]==="/"?lB(M,ie,i.slice(N,u.index)):N=u.index+u[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"))}else f.push([u[3],!1]);break;case"comment":if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"));RP(I),O.push(I)}else f.push([u[3],!1]),o=Bc(u[0]),I={a:o.Author};break;case"autofilter":if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"))}else if(u[0].charAt(u[0].length-2)!=="/"){var ue=Bc(u[0]);m["!autofilter"]={ref:jm(ue.Range).replace(/\$/g,"")},f.push([u[3],!0])}break;case"name":break;case"datavalidation":if(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"))}else u[0].charAt(u[0].length-2)!=="/"&&f.push([u[3],!0]);break;case"pixelsperinch":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(u[1]==="/"){if((o=f.pop())[0]!==u[3])throw new Error("Bad state: "+o.join("|"))}else u[0].charAt(u[0].length-2)!=="/"&&f.push([u[3],!0]);break;case"null":break;default:if(f.length==0&&u[3]=="document"||f.length==0&&u[3]=="uof")return B4(i,r);var Te=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(u[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Te=!1}break;case"componentoptions":switch(u[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Te=!1}break;case"excelworkbook":switch(u[3]){case"date1904":G.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Te=!1}break;case"workbookoptions":switch(u[3]){case"owcversion":break;case"height":break;case"width":break;default:Te=!1}break;case"worksheetoptions":switch(u[3]){case"visible":if(u[0].slice(-2)!=="/>")if(u[1]==="/")switch(i.slice(N,u.index)){case"SheetHidden":fe.Hidden=1;break;case"SheetVeryHidden":fe.Hidden=2;break}else N=u.index+u[0].length;break;case"header":m["!margins"]||k0(m["!margins"]={},"xlml"),isNaN(+ma(u[0]).Margin)||(m["!margins"].header=+ma(u[0]).Margin);break;case"footer":m["!margins"]||k0(m["!margins"]={},"xlml"),isNaN(+ma(u[0]).Margin)||(m["!margins"].footer=+ma(u[0]).Margin);break;case"pagemargins":var Ee=ma(u[0]);m["!margins"]||k0(m["!margins"]={},"xlml"),isNaN(+Ee.Top)||(m["!margins"].top=+Ee.Top),isNaN(+Ee.Left)||(m["!margins"].left=+Ee.Left),isNaN(+Ee.Right)||(m["!margins"].right=+Ee.Right),isNaN(+Ee.Bottom)||(m["!margins"].bottom=+Ee.Bottom);break;case"displayrighttoleft":G.Views||(G.Views=[]),G.Views[0]||(G.Views[0]={}),G.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Te=!1}break;case"pivottable":case"pivotcache":switch(u[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Te=!1}break;case"pagebreaks":switch(u[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Te=!1}break;case"autofilter":switch(u[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Te=!1}break;case"querytable":switch(u[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Te=!1}break;case"datavalidation":switch(u[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Te=!1}break;case"sorting":case"conditionalformatting":switch(u[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Te=!1}break;case"mapinfo":case"schema":case"data":switch(u[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Te=!1}break;case"smarttags":break;default:Te=!1;break}if(Te||u[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+u[3]+"|"+f.join("|");if(f[f.length-1][0]==="customdocumentproperties"){if(u[0].slice(-2)==="/>")break;u[1]==="/"?DP(P,ie,B,i.slice(N,u.index)):(B=u,N=u.index+u[0].length);break}if(r.WTF)throw"Unrecognized tag: "+u[3]+"|"+f.join("|")}var ye={};return!r.bookSheets&&!r.bookProps&&(ye.Sheets=l),ye.SheetNames=g,ye.Workbook=G,ye.SSF=Ui(fa),ye.Props=M,ye.Custprops=P,ye}function bw(a,s){switch(j_(s=s||{}),s.type||"base64"){case"base64":return Ib(hu(a),s);case"binary":case"buffer":case"file":return Ib(a,s);case"array":return Ib(oA(a),s)}}function UP(a,s){var r=[];return a.Props&&r.push(uB(a.Props,s)),a.Custprops&&r.push(cB(a.Props,a.Custprops)),r.join("")}function NP(){return""}function jP(a,s){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return s.cellXfs.forEach(function(i,n){var t=[];t.push(An("NumberFormat",null,{"ss:Format":Ii(fa[i.numFmtId])}));var c={"ss:ID":"s"+(21+n)};r.push(An("Style",t.join(""),c))}),An("Styles",r.join(""))}function e6(a){return An("NamedRange",null,{"ss:Name":a.Name,"ss:RefersTo":"="+O_(a.Ref,{r:0,c:0})})}function HP(a){if(!((a||{}).Workbook||{}).Names)return"";for(var s=a.Workbook.Names,r=[],i=0;i<s.length;++i){var n=s[i];n.Sheet==null&&(n.Name.match(/^_xlfn\./)||r.push(e6(n)))}return An("Names",r.join(""))}function QP(a,s,r,i){if(!a||!((i||{}).Workbook||{}).Names)return"";for(var n=i.Workbook.Names,t=[],c=0;c<n.length;++c){var u=n[c];u.Sheet==r&&(u.Name.match(/^_xlfn\./)||t.push(e6(u)))}return t.join("")}function zP(a,s,r,i){if(!a)return"";var n=[];if(a["!margins"]&&(n.push("<PageSetup>"),a["!margins"].header&&n.push(An("Header",null,{"x:Margin":a["!margins"].header})),a["!margins"].footer&&n.push(An("Footer",null,{"x:Margin":a["!margins"].footer})),n.push(An("PageMargins",null,{"x:Bottom":a["!margins"].bottom||"0.75","x:Left":a["!margins"].left||"0.7","x:Right":a["!margins"].right||"0.7","x:Top":a["!margins"].top||"0.75"})),n.push("</PageSetup>")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[r])if(i.Workbook.Sheets[r].Hidden)n.push(An("Visible",i.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var t=0;t<r&&!(i.Workbook.Sheets[t]&&!i.Workbook.Sheets[t].Hidden);++t);t==r&&n.push("<Selected/>")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push("<DisplayRightToLeft/>"),a["!protect"]&&(n.push(Ho("ProtectContents","True")),a["!protect"].objects&&n.push(Ho("ProtectObjects","True")),a["!protect"].scenarios&&n.push(Ho("ProtectScenarios","True")),a["!protect"].selectLockedCells!=null&&!a["!protect"].selectLockedCells?n.push(Ho("EnableSelection","NoSelection")):a["!protect"].selectUnlockedCells!=null&&!a["!protect"].selectUnlockedCells&&n.push(Ho("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(c){a["!protect"][c[0]]&&n.push("<"+c[1]+"/>")})),n.length==0?"":An("WorksheetOptions",n.join(""),{xmlns:lu.x})}function VP(a){return a.map(function(s){var r=dI(s.t||""),i=An("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return An("Comment",i,{"ss:Author":s.a})}).join("")}function WP(a,s,r,i,n,t,c){if(!a||a.v==null&&a.f==null)return"";var u={};if(a.f&&(u["ss:Formula"]="="+Ii(O_(a.f,c))),a.F&&a.F.slice(0,s.length)==s){var f=ps(a.F.slice(s.length+1));u["ss:ArrayRange"]="RC:R"+(f.r==c.r?"":"["+(f.r-c.r)+"]")+"C"+(f.c==c.c?"":"["+(f.c-c.c)+"]")}if(a.l&&a.l.Target&&(u["ss:HRef"]=Ii(a.l.Target),a.l.Tooltip&&(u["x:HRefScreenTip"]=Ii(a.l.Tooltip))),r["!merges"])for(var o=r["!merges"],l=0;l!=o.length;++l)o[l].s.c!=c.c||o[l].s.r!=c.r||(o[l].e.c>o[l].s.c&&(u["ss:MergeAcross"]=o[l].e.c-o[l].s.c),o[l].e.r>o[l].s.r&&(u["ss:MergeDown"]=o[l].e.r-o[l].s.r));var g="",m="";switch(a.t){case"z":if(!i.sheetStubs)return"";break;case"n":g="Number",m=String(a.v);break;case"b":g="Boolean",m=a.v?"1":"0";break;case"e":g="Error",m=Rd[a.v];break;case"d":g="DateTime",m=new Date(a.v).toISOString(),a.z==null&&(a.z=a.z||fa[14]);break;case"s":g="String",m=fI(a.v||"");break}var p=uA(i.cellXfs,a,i);u["ss:StyleID"]="s"+(21+p),u["ss:Index"]=c.c+1;var _=a.v!=null?m:"",y=a.t=="z"?"":'<Data ss:Type="'+g+'">'+_+"</Data>";return(a.c||[]).length>0&&(y+=VP(a.c)),An("Cell",y,u)}function GP(a,s){var r='<Row ss:Index="'+(a+1)+'"';return s&&(s.hpt&&!s.hpx&&(s.hpx=Km(s.hpt)),s.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+s.hpx+'"'),s.hidden&&(r+=' ss:Hidden="1"')),r+">"}function $P(a,s,r,i){if(!a["!ref"])return"";var n=mi(a["!ref"]),t=a["!merges"]||[],c=0,u=[];a["!cols"]&&a["!cols"].forEach(function(h,d){tA(h);var A=!!h.width,v=ky(d,h),w={"ss:Index":d+1};A&&(w["ss:Width"]=G1(v.width)),h.hidden&&(w["ss:Hidden"]="1"),u.push(An("Column",null,w))});for(var f=Array.isArray(a),o=n.s.r;o<=n.e.r;++o){for(var l=[GP(o,(a["!rows"]||[])[o])],g=n.s.c;g<=n.e.c;++g){var m=!1;for(c=0;c!=t.length;++c)if(!(t[c].s.c>g)&&!(t[c].s.r>o)&&!(t[c].e.c<g)&&!(t[c].e.r<o)){(t[c].s.c!=g||t[c].s.r!=o)&&(m=!0);break}if(!m){var p={r:o,c:g},_=da(p),y=f?(a[o]||[])[g]:a[_];l.push(WP(y,_,a,s,r,i,p))}}l.push("</Row>"),l.length>2&&u.push(l.join(""))}return u.join("")}function KP(a,s,r){var i=[],n=r.SheetNames[a],t=r.Sheets[n],c=t?QP(t,s,a,r):"";return c.length>0&&i.push("<Names>"+c+"</Names>"),c=t?$P(t,s,a,r):"",c.length>0&&i.push("<Table>"+c+"</Table>"),i.push(zP(t,s,a,r)),i.join("")}function YP(a,s){s||(s={}),a.SSF||(a.SSF=Ui(fa)),a.SSF&&(qm(),yy(a.SSF),s.revssf=wy(a.SSF),s.revssf[a.SSF[65535]]=0,s.ssf=a.SSF,s.cellXfs=[],uA(s.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(UP(a,s)),r.push(NP()),r.push(""),r.push("");for(var i=0;i<a.SheetNames.length;++i)r.push(An("Worksheet",KP(i,s,a),{"ss:Name":Ii(a.SheetNames[i])}));return r[2]=jP(a,s),r[3]=HP(a),Vs+An("Workbook",r.join(""),{xmlns:lu.ss,"xmlns:o":lu.o,"xmlns:x":lu.x,"xmlns:ss":lu.ss,"xmlns:dt":lu.dt,"xmlns:html":lu.html})}function XP(a){var s={},r=a.content;if(r.l=28,s.AnsiUserType=r.read_shift(0,"lpstr-ansi"),s.AnsiClipboardFormat=QI(r),r.length-r.l<=4)return s;var i=r.read_shift(4);if(i==0||i>40||(r.l-=4,s.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(i=r.read_shift(4),i!==1907505652)||(s.UnicodeClipboardFormat=zI(r),i=r.read_shift(4),i==0||i>40))return s;r.l-=4,s.Reserved2=r.read_shift(0,"lpwstr")}var ZP=[60,1084,2066,2165,2175];function JP(a,s,r,i,n){var t=i,c=[],u=r.slice(r.l,r.l+t);if(n&&n.enc&&n.enc.insitu&&u.length>0)switch(a){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:n.enc.insitu(u)}c.push(u),r.l+=t;for(var f=Td(r,r.l),o=ww[f],l=0;o!=null&&ZP.indexOf(f)>-1;)t=Td(r,r.l+2),l=r.l+4,f==2066?l+=4:(f==2165||f==2175)&&(l+=12),u=r.slice(l,r.l+4+t),c.push(u),r.l+=4+t,o=ww[f=Td(r,r.l)];var g=So(c);jo(g,0);var m=0;g.lens=[];for(var p=0;p<c.length;++p)g.lens.push(m),m+=c[p].length;if(g.length<i)throw"XLS Record 0x"+a.toString(16)+" Truncated: "+g.length+" < "+i;return s.f(g,g.length,n)}function gf(a,s,r){if(a.t!=="z"&&a.XF){var i=0;try{i=a.z||a.XF.numFmtId||0,s.cellNF&&(a.z=fa[i])}catch(t){if(s.WTF)throw t}if(!s||s.cellText!==!1)try{a.t==="e"?a.w=a.w||Rd[a.v]:i===0||i=="General"?a.t==="n"?(a.v|0)===a.v?a.w=a.v.toString(10):a.w=j1(a.v):a.w=F0(a.v):a.w=tc(i,a.v,{date1904:!!r,dateNF:s&&s.dateNF})}catch(t){if(s.WTF)throw t}if(s.cellDates&&i&&a.t=="n"&&Jm(fa[i]||String(i))){var n=b0(a.v);n&&(a.t="d",a.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}}function t2(a,s,r){return{v:a,ixfe:s,t:r}}function qP(a,s){var r={opts:{}},i={},n=s.dense?[]:{},t={},c={},u=null,f=[],o="",l={},g,m="",p,_,y,h,d={},A=[],v,w,x=[],C=[],k={Sheets:[],WBProps:{date1904:!1},Views:[{}]},T={},S=function(Ot){return Ot<8?x0[Ot]:Ot<64&&C[Ot-8]||x0[Ot]},M=function(Ot,wt,Kt){var _t=wt.XF.data;if(!(!_t||!_t.patternType||!Kt||!Kt.cellStyles)){wt.s={},wt.s.patternType=_t.patternType;var Jt;(Jt=W1(S(_t.icvFore)))&&(wt.s.fgColor={rgb:Jt}),(Jt=W1(S(_t.icvBack)))&&(wt.s.bgColor={rgb:Jt})}},P=function(Ot,wt,Kt){if(!(W>1)&&!(Kt.sheetRows&&Ot.r>=Kt.sheetRows)){if(Kt.cellStyles&&wt.XF&&wt.XF.data&&M(Ot,wt,Kt),delete wt.ixfe,delete wt.XF,g=Ot,m=da(Ot),(!c||!c.s||!c.e)&&(c={s:{r:0,c:0},e:{r:0,c:0}}),Ot.r<c.s.r&&(c.s.r=Ot.r),Ot.c<c.s.c&&(c.s.c=Ot.c),Ot.r+1>c.e.r&&(c.e.r=Ot.r+1),Ot.c+1>c.e.c&&(c.e.c=Ot.c+1),Kt.cellFormula&&wt.f){for(var _t=0;_t<A.length;++_t)if(!(A[_t][0].s.c>Ot.c||A[_t][0].s.r>Ot.r)&&!(A[_t][0].e.c<Ot.c||A[_t][0].e.r<Ot.r)){wt.F=Ma(A[_t][0]),(A[_t][0].s.c!=Ot.c||A[_t][0].s.r!=Ot.r)&&delete wt.f,wt.f&&(wt.f=""+el(A[_t][1],c,Ot,U,N));break}}Kt.dense?(n[Ot.r]||(n[Ot.r]=[]),n[Ot.r][Ot.c]=wt):n[m]=wt}},N={enc:!1,sbcch:0,snames:[],sharedf:d,arrayf:A,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!s&&!!s.cellStyles,WTF:!!s&&!!s.wtf};s.password&&(N.password=s.password);var B,O=[],I=[],F=[],L=[],R=!1,U=[];U.SheetNames=N.snames,U.sharedf=N.sharedf,U.arrayf=N.arrayf,U.names=[],U.XTI=[];var V=0,W=0,Q=0,le=[],G=[],fe;N.codepage=1200,Dc(1200);for(var ie=!1;a.l<a.length-1;){var he=a.l,Y=a.read_shift(2);if(Y===0&&V===10)break;var K=a.l===a.length?0:a.read_shift(2),oe=ww[Y];if(oe&&oe.f){if(s.bookSheets&&V===133&&Y!==133)break;if(V=Y,oe.r===2||oe.r==12){var pe=a.read_shift(2);if(K-=2,!N.enc&&pe!==Y&&((pe&255)<<8|pe>>8)!==Y)throw new Error("rt mismatch: "+pe+"!="+Y);oe.r==12&&(a.l+=10,K-=10)}var ve={};if(Y===10?ve=oe.f(a,K,N):ve=JP(Y,oe,a,K,N),W==0&&[9,521,1033,2057].indexOf(V)===-1)continue;switch(Y){case 34:r.opts.Date1904=k.WBProps.date1904=ve;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(N.enc||(a.l=0),N.enc=ve,!s.password)throw new Error("File is password-protected");if(ve.valid==null)throw new Error("Encryption scheme unsupported");if(!ve.valid)throw new Error("Password is incorrect");break;case 92:N.lastuser=ve;break;case 66:var ge=Number(ve);switch(ge){case 21010:ge=1200;break;case 32768:ge=1e4;break;case 32769:ge=1252;break}Dc(N.codepage=ge),ie=!0;break;case 317:N.rrtabid=ve;break;case 25:N.winlocked=ve;break;case 439:r.opts.RefreshAll=ve;break;case 12:r.opts.CalcCount=ve;break;case 16:r.opts.CalcDelta=ve;break;case 17:r.opts.CalcIter=ve;break;case 13:r.opts.CalcMode=ve;break;case 14:r.opts.CalcPrecision=ve;break;case 95:r.opts.CalcSaveRecalc=ve;break;case 15:N.CalcRefMode=ve;break;case 2211:r.opts.FullCalc=ve;break;case 129:ve.fDialog&&(n["!type"]="dialog"),ve.fBelow||((n["!outline"]||(n["!outline"]={})).above=!0),ve.fRight||((n["!outline"]||(n["!outline"]={})).left=!0);break;case 224:x.push(ve);break;case 430:U.push([ve]),U[U.length-1].XTI=[];break;case 35:case 547:U[U.length-1].push(ve);break;case 24:case 536:fe={Name:ve.Name,Ref:el(ve.rgce,c,null,U,N)},ve.itab>0&&(fe.Sheet=ve.itab-1),U.names.push(fe),U[0]||(U[0]=[],U[0].XTI=[]),U[U.length-1].push(ve),ve.Name=="_xlnm._FilterDatabase"&&ve.itab>0&&ve.rgce&&ve.rgce[0]&&ve.rgce[0][0]&&ve.rgce[0][0][0]=="PtgArea3d"&&(G[ve.itab-1]={ref:Ma(ve.rgce[0][0][1][2])});break;case 22:N.ExternCount=ve;break;case 23:U.length==0&&(U[0]=[],U[0].XTI=[]),U[U.length-1].XTI=U[U.length-1].XTI.concat(ve),U.XTI=U.XTI.concat(ve);break;case 2196:if(N.biff<8)break;fe!=null&&(fe.Comment=ve[1]);break;case 18:n["!protect"]=ve;break;case 19:ve!==0&&N.WTF&&console.error("Password verifier: "+ve);break;case 133:t[ve.pos]=ve,N.snames.push(ve.name);break;case 10:{if(--W)break;if(c.e){if(c.e.r>0&&c.e.c>0){if(c.e.r--,c.e.c--,n["!ref"]=Ma(c),s.sheetRows&&s.sheetRows<=c.e.r){var ue=c.e.r;c.e.r=s.sheetRows-1,n["!fullref"]=n["!ref"],n["!ref"]=Ma(c),c.e.r=ue}c.e.r++,c.e.c++}O.length>0&&(n["!merges"]=O),I.length>0&&(n["!objects"]=I),F.length>0&&(n["!cols"]=F),L.length>0&&(n["!rows"]=L),k.Sheets.push(T)}o===""?l=n:i[o]=n,n=s.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(N.biff===8&&(N.biff={9:2,521:3,1033:4}[Y]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[ve.BIFFVer]||8),N.biffguess=ve.BIFFVer==0,ve.BIFFVer==0&&ve.dt==4096&&(N.biff=5,ie=!0,Dc(N.codepage=28591)),N.biff==8&&ve.BIFFVer==0&&ve.dt==16&&(N.biff=2),W++)break;if(n=s.dense?[]:{},N.biff<8&&!ie&&(ie=!0,Dc(N.codepage=s.codepage||1252)),N.biff<5||ve.BIFFVer==0&&ve.dt==4096){o===""&&(o="Sheet1"),c={s:{r:0,c:0},e:{r:0,c:0}};var Te={pos:a.l-K,name:o};t[Te.pos]=Te,N.snames.push(o)}else o=(t[he]||{name:""}).name;ve.dt==32&&(n["!type"]="chart"),ve.dt==64&&(n["!type"]="macro"),O=[],I=[],N.arrayf=A=[],F=[],L=[],R=!1,T={Hidden:(t[he]||{hs:0}).hs,name:o}}break;case 515:case 3:case 2:n["!type"]=="chart"&&(s.dense?(n[ve.r]||[])[ve.c]:n[da({c:ve.c,r:ve.r})])&&++ve.c,v={ixfe:ve.ixfe,XF:x[ve.ixfe]||{},v:ve.val,t:"n"},Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:ve.c,r:ve.r},v,s);break;case 5:case 517:v={ixfe:ve.ixfe,XF:x[ve.ixfe],v:ve.val,t:ve.t},Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:ve.c,r:ve.r},v,s);break;case 638:v={ixfe:ve.ixfe,XF:x[ve.ixfe],v:ve.rknum,t:"n"},Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:ve.c,r:ve.r},v,s);break;case 189:for(var Ee=ve.c;Ee<=ve.C;++Ee){var ye=ve.rkrec[Ee-ve.c][0];v={ixfe:ye,XF:x[ye],v:ve.rkrec[Ee-ve.c][1],t:"n"},Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:Ee,r:ve.r},v,s)}break;case 6:case 518:case 1030:{if(ve.val=="String"){u=ve;break}if(v=t2(ve.val,ve.cell.ixfe,ve.tt),v.XF=x[v.ixfe],s.cellFormula){var Se=ve.formula;if(Se&&Se[0]&&Se[0][0]&&Se[0][0][0]=="PtgExp"){var Fe=Se[0][0][1][0],Ve=Se[0][0][1][1],ke=da({r:Fe,c:Ve});d[ke]?v.f=""+el(ve.formula,c,ve.cell,U,N):v.F=((s.dense?(n[Fe]||[])[Ve]:n[ke])||{}).F}else v.f=""+el(ve.formula,c,ve.cell,U,N)}Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P(ve.cell,v,s),u=ve}break;case 7:case 519:if(u)u.val=ve,v=t2(ve,u.cell.ixfe,"s"),v.XF=x[v.ixfe],s.cellFormula&&(v.f=""+el(u.formula,c,u.cell,U,N)),Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P(u.cell,v,s),u=null;else throw new Error("String record expects Formula");break;case 33:case 545:{A.push(ve);var Pe=da(ve[0].s);if(p=s.dense?(n[ve[0].s.r]||[])[ve[0].s.c]:n[Pe],s.cellFormula&&p){if(!u||!Pe||!p)break;p.f=""+el(ve[1],c,ve[0],U,N),p.F=Ma(ve[0])}}break;case 1212:{if(!s.cellFormula)break;if(m){if(!u)break;d[da(u.cell)]=ve[0],p=s.dense?(n[u.cell.r]||[])[u.cell.c]:n[da(u.cell)],(p||{}).f=""+el(ve[0],c,g,U,N)}}break;case 253:v=t2(f[ve.isst].t,ve.ixfe,"s"),f[ve.isst].h&&(v.h=f[ve.isst].h),v.XF=x[v.ixfe],Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:ve.c,r:ve.r},v,s);break;case 513:s.sheetStubs&&(v={ixfe:ve.ixfe,XF:x[ve.ixfe],t:"z"},Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:ve.c,r:ve.r},v,s));break;case 190:if(s.sheetStubs)for(var Re=ve.c;Re<=ve.C;++Re){var Ye=ve.ixfe[Re-ve.c];v={ixfe:Ye,XF:x[Ye],t:"z"},Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:Re,r:ve.r},v,s)}break;case 214:case 516:case 4:v=t2(ve.val,ve.ixfe,"s"),v.XF=x[v.ixfe],Q>0&&(v.z=le[v.ixfe>>8&63]),gf(v,s,r.opts.Date1904),P({c:ve.c,r:ve.r},v,s);break;case 0:case 512:W===1&&(c=ve);break;case 252:f=ve;break;case 1054:if(N.biff==4){le[Q++]=ve[1];for(var Ke=0;Ke<Q+163&&fa[Ke]!=ve[1];++Ke);Ke>=163&&Id(ve[1],Q+163)}else Id(ve[1],ve[0]);break;case 30:{le[Q++]=ve;for(var ot=0;ot<Q+163&&fa[ot]!=ve;++ot);ot>=163&&Id(ve,Q+163)}break;case 229:O=O.concat(ve);break;case 93:I[ve.cmo[0]]=N.lastobj=ve;break;case 438:N.lastobj.TxO=ve;break;case 127:N.lastobj.ImData=ve;break;case 440:for(h=ve[0].s.r;h<=ve[0].e.r;++h)for(y=ve[0].s.c;y<=ve[0].e.c;++y)p=s.dense?(n[h]||[])[y]:n[da({c:y,r:h})],p&&(p.l=ve[1]);break;case 2048:for(h=ve[0].s.r;h<=ve[0].e.r;++h)for(y=ve[0].s.c;y<=ve[0].e.c;++y)p=s.dense?(n[h]||[])[y]:n[da({c:y,r:h})],p&&p.l&&(p.l.Tooltip=ve[1]);break;case 28:{if(N.biff<=5&&N.biff>=2)break;p=s.dense?(n[ve[0].r]||[])[ve[0].c]:n[da(ve[0])];var nt=I[ve[2]];p||(s.dense?(n[ve[0].r]||(n[ve[0].r]=[]),p=n[ve[0].r][ve[0].c]={t:"z"}):p=n[da(ve[0])]={t:"z"},c.e.r=Math.max(c.e.r,ve[0].r),c.s.r=Math.min(c.s.r,ve[0].r),c.e.c=Math.max(c.e.c,ve[0].c),c.s.c=Math.min(c.s.c,ve[0].c)),p.c||(p.c=[]),_={a:ve[1],t:nt.TxO.t},p.c.push(_)}break;case 2173:H9(x[ve.ixfe],ve.ext);break;case 125:{if(!N.cellStyles)break;for(;ve.e>=ve.s;)F[ve.e--]={width:ve.w/256,level:ve.level||0,hidden:!!(ve.flags&1)},R||(R=!0,F_(ve.w/256)),tA(F[ve.e+1])}break;case 520:{var mt={};ve.level!=null&&(L[ve.r]=mt,mt.level=ve.level),ve.hidden&&(L[ve.r]=mt,mt.hidden=!0),ve.hpt&&(L[ve.r]=mt,mt.hpt=ve.hpt,mt.hpx=Km(ve.hpt))}break;case 38:case 39:case 40:case 41:n["!margins"]||k0(n["!margins"]={}),n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Y]]=ve;break;case 161:n["!margins"]||k0(n["!margins"]={}),n["!margins"].header=ve.header,n["!margins"].footer=ve.footer;break;case 574:ve.RTL&&(k.Views[0].RTL=!0);break;case 146:C=ve;break;case 2198:B=ve;break;case 140:w=ve;break;case 442:o?T.CodeName=ve||T.name:k.WBProps.CodeName=ve||"ThisWorkbook";break}}else oe||console.error("Missing Info for XLS Record 0x"+Y.toString(16)),a.l+=K}return r.SheetNames=Es(t).sort(function(Ut,Ot){return Number(Ut)-Number(Ot)}).map(function(Ut){return t[Ut].name}),s.bookSheets||(r.Sheets=i),!r.SheetNames.length&&l["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=l)):r.Preamble=l,r.Sheets&&G.forEach(function(Ut,Ot){r.Sheets[r.SheetNames[Ot]]["!autofilter"]=Ut}),r.Strings=f,r.SSF=Ui(fa),N.enc&&(r.Encryption=N.enc),B&&(r.Themes=B),r.Metadata={},w!==void 0&&(r.Metadata.Country=w),U.names.length>0&&(k.Names=U.names),r.Workbook=k,r}var B1={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function eR(a,s,r){var i=ra.find(a,"/!DocumentSummaryInformation");if(i&&i.size>0)try{var n=s4(i,Aw,B1.DSI);for(var t in n)s[t]=n[t]}catch(o){if(r.WTF)throw o}var c=ra.find(a,"/!SummaryInformation");if(c&&c.size>0)try{var u=s4(c,pw,B1.SI);for(var f in u)s[f]==null&&(s[f]=u[f])}catch(o){if(r.WTF)throw o}s.HeadingPairs&&s.TitlesOfParts&&(JS(s.HeadingPairs,s.TitlesOfParts,s,r),delete s.HeadingPairs,delete s.TitlesOfParts)}function tR(a,s){var r=[],i=[],n=[],t=0,c,u=Px(Aw,"n"),f=Px(pw,"n");if(a.Props)for(c=Es(a.Props),t=0;t<c.length;++t)(Object.prototype.hasOwnProperty.call(u,c[t])?r:Object.prototype.hasOwnProperty.call(f,c[t])?i:n).push([c[t],a.Props[c[t]]]);if(a.Custprops)for(c=Es(a.Custprops),t=0;t<c.length;++t)Object.prototype.hasOwnProperty.call(a.Props||{},c[t])||(Object.prototype.hasOwnProperty.call(u,c[t])?r:Object.prototype.hasOwnProperty.call(f,c[t])?i:n).push([c[t],a.Custprops[c[t]]]);var o=[];for(t=0;t<n.length;++t)i5.indexOf(n[t][0])>-1||ZS.indexOf(n[t][0])>-1||n[t][1]!=null&&o.push(n[t]);i.length&&ra.utils.cfb_add(s,"/SummaryInformation",o4(i,B1.SI,f,pw)),(r.length||o.length)&&ra.utils.cfb_add(s,"/DocumentSummaryInformation",o4(r,B1.DSI,u,Aw,o.length?o:null,B1.UDI))}function t6(a,s){s||(s={}),j_(s),vy(),s.codepage&&o_(s.codepage);var r,i;if(a.FullPaths){if(ra.find(a,"/encryption"))throw new Error("File is password-protected");r=ra.find(a,"!CompObj"),i=ra.find(a,"/Workbook")||ra.find(a,"/Book")}else{switch(s.type){case"base64":a=cu(hu(a));break;case"binary":a=cu(a);break;case"buffer":break;case"array":Array.isArray(a)||(a=Array.prototype.slice.call(a));break}jo(a,0),i={content:a}}var n,t;if(r&&XP(r),s.bookProps&&!s.bookSheets)n={};else{var c=Ga?"buffer":"array";if(i&&i.content)n=qP(i.content,s);else if((t=ra.find(a,"PerfectOffice_MAIN"))&&t.content)n=S0.to_workbook(t.content,(s.type=c,s));else if((t=ra.find(a,"NativeContent_MAIN"))&&t.content)n=S0.to_workbook(t.content,(s.type=c,s));else throw(t=ra.find(a,"MN0"))&&t.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");s.bookVBA&&a.FullPaths&&ra.find(a,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=pD(a))}var u={};return a.FullPaths&&eR(a,u,s),n.Props=n.Custprops=u,s.bookFiles&&(n.cfb=a),n}function rR(a,s){var r=s||{},i=ra.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return ra.utils.cfb_add(i,n,r6(a,r)),r.biff==8&&(a.Props||a.Custprops)&&tR(a,i),r.biff==8&&a.vbaraw&&mD(i,ra.read(a.vbaraw,{type:typeof a.vbaraw=="string"?"binary":"buffer"})),i}var Y1={0:{f:TO},1:{f:LO},2:{f:eL},3:{f:zO},4:{f:NO},5:{f:ZO},6:{f:iL},7:{f:$O},8:{f:dL},9:{f:fL},10:{f:uL},11:{f:cL},12:{f:RO},13:{f:rL},14:{f:WO},15:{f:HO},16:{f:G5},17:{f:oL},18:{f:YO},19:{f:w_},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:sP},40:{},42:{},43:{f:i9},44:{f:n9},45:{f:l9},46:{f:c9},47:{f:u9},48:{},49:{f:BI},50:{},51:{f:V9},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:m5},62:{f:aL},63:{f:q9},64:{f:EL},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:sl,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:CL},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:DO},148:{f:BO,p:16},151:{f:vL},152:{},153:{f:nP},154:{},155:{},156:{f:tP},157:{},158:{},159:{T:1,f:bM},160:{T:-1},161:{T:1,f:W0},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:hL},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:Q9},336:{T:-1},337:{f:$9,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:hw},357:{},358:{},359:{},360:{T:1},361:{},362:{f:p5},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:yL},427:{f:bL},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:_L},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:MO},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:mL},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:hw},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:cD},633:{T:1},634:{T:-1},635:{T:1,f:lD},636:{T:-1},637:{f:OI},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:WL},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:IL},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:""}},ww={6:{f:Tb},10:{f:Nh},12:{f:ro},13:{f:ro},14:{f:js},15:{f:js},16:{f:nl},17:{f:js},18:{f:js},19:{f:ro},20:{f:h4},21:{f:h4},23:{f:p5},24:{f:p4},25:{f:js},26:{},27:{},28:{f:IF},29:{},34:{f:js},35:{f:A4},38:{f:nl},39:{f:nl},40:{f:nl},41:{f:nl},42:{f:js},43:{f:js},47:{f:HM},49:{f:rF},51:{f:ro},60:{},61:{f:ZB},64:{f:js},65:{f:tF},66:{f:ro},77:{},80:{},81:{},82:{},85:{f:ro},89:{},90:{},91:{},92:{f:jB},93:{f:MF},94:{},95:{f:js},96:{},97:{},99:{f:js},125:{f:m5},128:{f:gF},129:{f:QB},130:{f:ro},131:{f:js},132:{f:js},133:{f:zB},134:{},140:{f:jF},141:{f:ro},144:{},146:{f:zF},151:{},152:{},153:{},154:{},155:{},156:{f:ro},157:{},158:{},160:{f:XF},161:{f:GF},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:hF},190:{f:AF},193:{f:Nh},197:{},198:{},199:{},200:{},201:{},202:{f:js},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ro},220:{},221:{f:js},222:{},224:{f:mF},225:{f:NB},226:{f:Nh},227:{},229:{f:BF},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:WB},253:{f:aF},255:{f:$B},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:s5},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:js},353:{f:Nh},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:_F},431:{f:js},432:{},433:{},434:{},437:{},438:{f:LF},439:{f:js},440:{f:PF},441:{},442:{f:uv},443:{},444:{f:ro},445:{},446:{},448:{f:Nh},449:{f:XB,r:2},450:{f:Nh},512:{f:c4},513:{f:YF},515:{f:bF},516:{f:sF},517:{f:d4},519:{f:ZF},520:{f:KB},523:{},545:{f:m4},549:{f:u4},566:{},574:{f:qB},638:{f:dF},659:{},1048:{},1054:{f:lF},1084:{},1212:{f:kF},2048:{f:UF},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Jv},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:Nh},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:VF,r:12},2173:{f:j9,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:js,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:SF,r:12},2197:{},2198:{f:O9,r:12},2199:{},2200:{},2201:{},2202:{f:TF,r:12},2203:{f:Nh},2204:{},2205:{},2206:{},2207:{},2211:{f:YB},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:ro},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:$F},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:QF},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:c4},1:{},2:{f:rM},3:{f:eM},4:{f:qF},5:{f:d4},7:{f:aM},8:{},9:{f:Jv},11:{},22:{f:ro},30:{f:cF},31:{},32:{},33:{f:m4},36:{},37:{f:u4},50:{f:iM},62:{},52:{},67:{},68:{f:ro},69:{},86:{},126:{},127:{f:JF},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:sM},223:{},234:{},354:{},421:{},518:{f:Tb},521:{f:Jv},536:{f:p4},547:{f:A4},561:{},579:{},1030:{f:Tb},1033:{f:Jv},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function pn(a,s,r,i){var n=s;if(!isNaN(n)){var t=i||(r||[]).length||0,c=a.next(4);c.write_shift(2,n),c.write_shift(2,t),t>0&&v_(r)&&a.push(r)}}function nR(a,s,r,i){var n=(r||[]).length||0;if(n<=8224)return pn(a,s,r,n);var t=s;if(!isNaN(t)){for(var c=r.parts||[],u=0,f=0,o=0;o+(c[u]||8224)<=8224;)o+=c[u]||8224,u++;var l=a.next(4);for(l.write_shift(2,t),l.write_shift(2,o),a.push(r.slice(f,f+o)),f+=o;f<n;){for(l=a.next(4),l.write_shift(2,60),o=0;o+(c[u]||8224)<=8224;)o+=c[u]||8224,u++;l.write_shift(2,o),a.push(r.slice(f,f+o)),f+=o}}}function hv(a,s,r){return a||(a=Er(7)),a.write_shift(2,s),a.write_shift(2,r),a.write_shift(2,0),a.write_shift(1,0),a}function aR(a,s,r,i){var n=Er(9);return hv(n,a,s),o5(r,i||"b",n),n}function iR(a,s,r){var i=Er(8+2*r.length);return hv(i,a,s),i.write_shift(1,r.length),i.write_shift(r.length,r,"sbcs"),i.l<i.length?i.slice(0,i.l):i}function sR(a,s,r,i){if(s.v!=null)switch(s.t){case"d":case"n":var n=s.t=="d"?Ao(qi(s.v)):s.v;n==(n|0)&&n>=0&&n<65536?pn(a,2,nM(r,i,n)):pn(a,3,tM(r,i,n));return;case"b":case"e":pn(a,5,aR(r,i,s.v,s.t));return;case"s":case"str":pn(a,4,iR(r,i,(s.v||"").slice(0,255)));return}pn(a,1,hv(null,r,i))}function oR(a,s,r,i){var n=Array.isArray(s),t=mi(s["!ref"]||"A1"),c,u="",f=[];if(t.e.c>255||t.e.r>16383){if(i.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");t.e.c=Math.min(t.e.c,255),t.e.r=Math.min(t.e.c,16383),c=Ma(t)}for(var o=t.s.r;o<=t.e.r;++o){u=zs(o);for(var l=t.s.c;l<=t.e.c;++l){o===t.s.r&&(f[l]=As(l)),c=f[l]+u;var g=n?(s[o]||[])[l]:s[c];g&&sR(a,g,o,l)}}}function lR(a,s){for(var r=s||{},i=Wl(),n=0,t=0;t<a.SheetNames.length;++t)a.SheetNames[t]==r.sheet&&(n=t);if(n==0&&r.sheet&&a.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return pn(i,r.biff==4?1033:r.biff==3?521:9,E_(a,16,r)),oR(i,a.Sheets[a.SheetNames[n]],n,r),pn(i,10),i.end()}function uR(a,s,r){pn(a,49,nF({sz:12,name:"Arial"},r))}function cR(a,s,r){s&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var n=i[0];n<=i[1];++n)s[n]!=null&&pn(a,1054,uF(n,s[n],r))})}function fR(a,s){var r=Er(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),pn(a,2151,r),r=Er(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),d5(mi(s["!ref"]||"A1"),r),r.write_shift(4,4),pn(a,2152,r)}function dR(a,s){for(var r=0;r<16;++r)pn(a,224,f4({numFmtId:0,style:!0},0,s));s.cellXfs.forEach(function(i){pn(a,224,f4(i,0,s))})}function hR(a,s){for(var r=0;r<s["!links"].length;++r){var i=s["!links"][r];pn(a,440,RF(i)),i[1].Tooltip&&pn(a,2048,NF(i))}delete s["!links"]}function AR(a,s){if(s){var r=0;s.forEach(function(i,n){++r<=256&&i&&pn(a,125,WF(ky(n,i),n))})}}function pR(a,s,r,i,n){var t=16+uA(n.cellXfs,s,n);if(s.v==null&&!s.bf){pn(a,513,L0(r,i,t));return}if(s.bf)pn(a,6,Q7(s,r,i,n,t));else switch(s.t){case"d":case"n":var c=s.t=="d"?Ao(qi(s.v)):s.v;pn(a,515,wF(r,i,c,t));break;case"b":case"e":pn(a,517,yF(r,i,s.v,t,n,s.t));break;case"s":case"str":if(n.bookSST){var u=P_(n.Strings,s.v,n.revStrings);pn(a,253,iF(r,i,u,t))}else pn(a,516,oF(r,i,(s.v||"").slice(0,255),t,n));break;default:pn(a,513,L0(r,i,t))}}function mR(a,s,r){var i=Wl(),n=r.SheetNames[a],t=r.Sheets[n]||{},c=(r||{}).Workbook||{},u=(c.Sheets||[])[a]||{},f=Array.isArray(t),o=s.biff==8,l,g="",m=[],p=mi(t["!ref"]||"A1"),_=o?65536:16384;if(p.e.c>255||p.e.r>=_){if(s.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,_-1)}pn(i,2057,E_(r,16,s)),pn(i,13,$u(1)),pn(i,12,$u(100)),pn(i,15,xl(!0)),pn(i,17,xl(!1)),pn(i,16,D0(.001)),pn(i,95,xl(!0)),pn(i,42,xl(!1)),pn(i,43,xl(!1)),pn(i,130,$u(1)),pn(i,128,vF()),pn(i,131,xl(!1)),pn(i,132,xl(!1)),o&&AR(i,t["!cols"]),pn(i,512,fF(p,s)),o&&(t["!links"]=[]);for(var y=p.s.r;y<=p.e.r;++y){g=zs(y);for(var h=p.s.c;h<=p.e.c;++h){y===p.s.r&&(m[h]=As(h)),l=m[h]+g;var d=f?(t[y]||[])[h]:t[l];d&&(pR(i,d,y,h,s),o&&d.l&&t["!links"].push([l,d.l]))}}var A=u.CodeName||u.name||n;return o&&pn(i,574,eF((c.Views||[])[0])),o&&(t["!merges"]||[]).length&&pn(i,229,FF(t["!merges"])),o&&hR(i,t),pn(i,442,l5(A)),o&&fR(i,t),pn(i,10),i.end()}function gR(a,s,r){var i=Wl(),n=(a||{}).Workbook||{},t=n.Sheets||[],c=n.WBProps||{},u=r.biff==8,f=r.biff==5;if(pn(i,2057,E_(a,5,r)),r.bookType=="xla"&&pn(i,135),pn(i,225,u?$u(1200):null),pn(i,193,yB(2)),f&&pn(i,191),f&&pn(i,192),pn(i,226),pn(i,92,HB("SheetJS",r)),pn(i,66,$u(u?1200:1252)),u&&pn(i,353,$u(0)),u&&pn(i,448),pn(i,317,KF(a.SheetNames.length)),u&&a.vbaraw&&pn(i,211),u&&a.vbaraw){var o=c.CodeName||"ThisWorkbook";pn(i,442,l5(o))}pn(i,156,$u(17)),pn(i,25,xl(!1)),pn(i,18,xl(!1)),pn(i,19,$u(0)),u&&pn(i,431,xl(!1)),u&&pn(i,444,$u(0)),pn(i,61,JB()),pn(i,64,xl(!1)),pn(i,141,$u(0)),pn(i,34,xl(XL(a)=="true")),pn(i,14,xl(!0)),u&&pn(i,439,xl(!1)),pn(i,218,$u(0)),uR(i,a,r),cR(i,a.SSF,r),dR(i,r),u&&pn(i,352,xl(!1));var l=i.end(),g=Wl();u&&pn(g,140,HF()),u&&r.Strings&&nR(g,252,GB(r.Strings)),pn(g,10);var m=g.end(),p=Wl(),_=0,y=0;for(y=0;y<a.SheetNames.length;++y)_+=(u?12:11)+(u?2:1)*a.SheetNames[y].length;var h=l.length+_+m.length;for(y=0;y<a.SheetNames.length;++y){var d=t[y]||{};pn(p,133,VB({pos:h,hs:d.Hidden||0,dt:0,name:a.SheetNames[y]},r)),h+=s[y].length}var A=p.end();if(_!=A.length)throw new Error("BS8 "+_+" != "+A.length);var v=[];return l.length&&v.push(l),A.length&&v.push(A),m.length&&v.push(m),So(v)}function vR(a,s){var r=s||{},i=[];a&&!a.SSF&&(a.SSF=Ui(fa)),a&&a.SSF&&(qm(),yy(a.SSF),r.revssf=wy(a.SSF),r.revssf[a.SSF[65535]]=0,r.ssf=a.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,H_(r),r.cellXfs=[],uA(r.cellXfs,{},{revssf:{General:0}}),a.Props||(a.Props={});for(var n=0;n<a.SheetNames.length;++n)i[i.length]=mR(n,r,a);return i.unshift(gR(a,i,r)),So(i)}function r6(a,s){for(var r=0;r<=a.SheetNames.length;++r){var i=a.Sheets[a.SheetNames[r]];if(!(!i||!i["!ref"])){var n=Gl(i["!ref"]);n.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+a.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var t=s||{};switch(t.biff||2){case 8:case 5:return vR(a,s);case 4:case 3:case 2:return lR(a,s)}throw new Error("invalid type "+t.bookType+" for BIFF")}function k4(a,s){var r=s||{},i=r.dense?[]:{};a=a.replace(/<!--.*?-->/g,"");var n=a.match(/<table/i);if(!n)throw new Error("Invalid HTML: could not find <table>");var t=a.match(/<\/table/i),c=n.index,u=t&&t.index||a.length,f=nI(a.slice(c,u),/(:?<tr[^>]*>)/i,"<tr>"),o=-1,l=0,g=0,m=0,p={s:{r:1e7,c:1e7},e:{r:0,c:0}},_=[];for(c=0;c<f.length;++c){var y=f[c].trim(),h=y.slice(0,3).toLowerCase();if(h=="<tr"){if(++o,r.sheetRows&&r.sheetRows<=o){--o;break}l=0;continue}if(!(h!="<td"&&h!="<th")){var d=y.split(/<\/t[dh]>/i);for(u=0;u<d.length;++u){var A=d[u].trim();if(A.match(/<t[dh]/i)){for(var v=A,w=0;v.charAt(0)=="<"&&(w=v.indexOf(">"))>-1;)v=v.slice(w+1);for(var x=0;x<_.length;++x){var C=_[x];C.s.c==l&&C.s.r<o&&o<=C.e.r&&(l=C.e.c+1,x=-1)}var k=ma(A.slice(0,A.indexOf(">")));m=k.colspan?+k.colspan:1,((g=+k.rowspan)>1||m>1)&&_.push({s:{r:o,c:l},e:{r:o+(g||1)-1,c:l+m-1}});var T=k.t||k["data-t"]||"";if(!v.length){l+=m;continue}if(v=SS(v),p.s.r>o&&(p.s.r=o),p.e.r<o&&(p.e.r=o),p.s.c>l&&(p.s.c=l),p.e.c<l&&(p.e.c=l),!v.length){l+=m;continue}var S={t:"s",v};r.raw||!v.trim().length||T=="s"||(v==="TRUE"?S={t:"b",v:!0}:v==="FALSE"?S={t:"b",v:!1}:isNaN(Uc(v))?isNaN(Gm(v).getDate())||(S={t:"d",v:qi(v)},r.cellDates||(S={t:"n",v:Ao(S.v)}),S.z=r.dateNF||fa[14]):S={t:"n",v:Uc(v)}),r.dense?(i[o]||(i[o]=[]),i[o][l]=S):i[da({r:o,c:l})]=S,l+=m}}}}return i["!ref"]=Ma(p),_.length&&(i["!merges"]=_),i}function yR(a,s,r,i){for(var n=a["!merges"]||[],t=[],c=s.s.c;c<=s.e.c;++c){for(var u=0,f=0,o=0;o<n.length;++o)if(!(n[o].s.r>r||n[o].s.c>c)&&!(n[o].e.r<r||n[o].e.c<c)){if(n[o].s.r<r||n[o].s.c<c){u=-1;break}u=n[o].e.r-n[o].s.r+1,f=n[o].e.c-n[o].s.c+1;break}if(!(u<0)){var l=da({r,c}),g=i.dense?(a[r]||[])[c]:a[l],m=g&&g.v!=null&&(g.h||p_(g.w||(Md(g),g.w)||""))||"",p={};u>1&&(p.rowspan=u),f>1&&(p.colspan=f),i.editable?m='<span contenteditable="true">'+m+"</span>":g&&(p["data-t"]=g&&g.t||"z",g.v!=null&&(p["data-v"]=g.v),g.z!=null&&(p["data-z"]=g.z),g.l&&(g.l.Target||"#").charAt(0)!="#"&&(m='<a href="'+g.l.Target+'">'+m+"</a>")),p.id=(i.id||"sjs")+"-"+l,t.push(An("td",m,p))}}var _="<tr>";return _+t.join("")+"</tr>"}var bR='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',wR="</body></html>";function _R(a,s){var r=a.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return lA(k4(r[0],s),s);var i=V_();return r.forEach(function(n,t){W_(i,k4(n,s),"Sheet"+(t+1))}),i}function xR(a,s,r){var i=[];return i.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function n6(a,s){var r=s||{},i=r.header!=null?r.header:bR,n=r.footer!=null?r.footer:wR,t=[i],c=Gl(a["!ref"]);r.dense=Array.isArray(a),t.push(xR(a,c,r));for(var u=c.s.r;u<=c.e.r;++u)t.push(yR(a,c,u,r));return t.push("</table>"+n),t.join("")}function a6(a,s,r){var i=r||{},n=0,t=0;if(i.origin!=null)if(typeof i.origin=="number")n=i.origin;else{var c=typeof i.origin=="string"?ps(i.origin):i.origin;n=c.r,t=c.c}var u=s.getElementsByTagName("tr"),f=Math.min(i.sheetRows||1e7,u.length),o={s:{r:0,c:0},e:{r:n,c:t}};if(a["!ref"]){var l=Gl(a["!ref"]);o.s.r=Math.min(o.s.r,l.s.r),o.s.c=Math.min(o.s.c,l.s.c),o.e.r=Math.max(o.e.r,l.e.r),o.e.c=Math.max(o.e.c,l.e.c),n==-1&&(o.e.r=n=l.e.r+1)}var g=[],m=0,p=a["!rows"]||(a["!rows"]=[]),_=0,y=0,h=0,d=0,A=0,v=0;for(a["!cols"]||(a["!cols"]=[]);_<u.length&&y<f;++_){var w=u[_];if(T4(w)){if(i.display)continue;p[y]={hidden:!0}}var x=w.children;for(h=d=0;h<x.length;++h){var C=x[h];if(!(i.display&&T4(C))){var k=C.hasAttribute("data-v")?C.getAttribute("data-v"):C.hasAttribute("v")?C.getAttribute("v"):SS(C.innerHTML),T=C.getAttribute("data-z")||C.getAttribute("z");for(m=0;m<g.length;++m){var S=g[m];S.s.c==d+t&&S.s.r<y+n&&y+n<=S.e.r&&(d=S.e.c+1-t,m=-1)}v=+C.getAttribute("colspan")||1,((A=+C.getAttribute("rowspan")||1)>1||v>1)&&g.push({s:{r:y+n,c:d+t},e:{r:y+n+(A||1)-1,c:d+t+(v||1)-1}});var M={t:"s",v:k},P=C.getAttribute("data-t")||C.getAttribute("t")||"";k!=null&&(k.length==0?M.t=P||"z":i.raw||k.trim().length==0||P=="s"||(k==="TRUE"?M={t:"b",v:!0}:k==="FALSE"?M={t:"b",v:!1}:isNaN(Uc(k))?isNaN(Gm(k).getDate())||(M={t:"d",v:qi(k)},i.cellDates||(M={t:"n",v:Ao(M.v)}),M.z=i.dateNF||fa[14]):M={t:"n",v:Uc(k)})),M.z===void 0&&T!=null&&(M.z=T);var N="",B=C.getElementsByTagName("A");if(B&&B.length)for(var O=0;O<B.length&&!(B[O].hasAttribute("href")&&(N=B[O].getAttribute("href"),N.charAt(0)!="#"));++O);N&&N.charAt(0)!="#"&&(M.l={Target:N}),i.dense?(a[y+n]||(a[y+n]=[]),a[y+n][d+t]=M):a[da({c:d+t,r:y+n})]=M,o.e.c<d+t&&(o.e.c=d+t),d+=v}}++y}return g.length&&(a["!merges"]=(a["!merges"]||[]).concat(g)),o.e.r=Math.max(o.e.r,y-1+n),a["!ref"]=Ma(o),y>=f&&(a["!fullref"]=Ma((o.e.r=u.length-_+y-1+n,o))),a}function i6(a,s){var r=s||{},i=r.dense?[]:{};return a6(i,a,s)}function CR(a,s){return lA(i6(a,s),s)}function T4(a){var s="",r=SR(a);return r&&(s=r(a).getPropertyValue("display")),s||(s=a.style&&a.style.display),s==="none"}function SR(a){return a.ownerDocument.defaultView&&typeof a.ownerDocument.defaultView.getComputedStyle=="function"?a.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function kR(a){var s=a.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(i,n){return Array(parseInt(n,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"	").replace(/<text:line-break\/>/g,`
`),r=hi(s.replace(/<[^>]*>/g,""));return[r]}var E4={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 s6(a,s){var r=s||{},i=m_(a),n=[],t,c,u={name:""},f="",o=0,l,g,m={},p=[],_=r.dense?[]:{},y,h,d={value:""},A="",v=0,w=[],x=-1,C=-1,k={s:{r:1e6,c:1e7},e:{r:0,c:0}},T=0,S={},M=[],P={},N=0,B=0,O=[],I=1,F=1,L=[],R={Names:[]},U={},V=["",""],W=[],Q={},le="",G=0,fe=!1,ie=!1,he=0;for(z1.lastIndex=0,i=i.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");y=z1.exec(i);)switch(y[3]=y[3].replace(/_.*$/,"")){case"table":case"工作表":y[1]==="/"?(k.e.c>=k.s.c&&k.e.r>=k.s.r?_["!ref"]=Ma(k):_["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=k.e.r&&(_["!fullref"]=_["!ref"],k.e.r=r.sheetRows-1,_["!ref"]=Ma(k)),M.length&&(_["!merges"]=M),O.length&&(_["!rows"]=O),l.name=l.名称||l.name,typeof JSON<"u"&&JSON.stringify(l),p.push(l.name),m[l.name]=_,ie=!1):y[0].charAt(y[0].length-2)!=="/"&&(l=ma(y[0],!1),x=C=-1,k.s.r=k.s.c=1e7,k.e.r=k.e.c=0,_=r.dense?[]:{},M=[],O=[],ie=!0);break;case"table-row-group":y[1]==="/"?--T:++T;break;case"table-row":case"行":if(y[1]==="/"){x+=I,I=1;break}if(g=ma(y[0],!1),g.行号?x=g.行号-1:x==-1&&(x=0),I=+g["number-rows-repeated"]||1,I<10)for(he=0;he<I;++he)T>0&&(O[x+he]={level:T});C=-1;break;case"covered-table-cell":y[1]!=="/"&&++C,r.sheetStubs&&(r.dense?(_[x]||(_[x]=[]),_[x][C]={t:"z"}):_[da({r:x,c:C})]={t:"z"}),A="",w=[];break;case"table-cell":case"数据":if(y[0].charAt(y[0].length-2)==="/")++C,d=ma(y[0],!1),F=parseInt(d["number-columns-repeated"]||"1",10),h={t:"z",v:null},d.formula&&r.cellFormula!=!1&&(h.f=x4(hi(d.formula))),(d.数据类型||d["value-type"])=="string"&&(h.t="s",h.v=hi(d["string-value"]||""),r.dense?(_[x]||(_[x]=[]),_[x][C]=h):_[da({r:x,c:C})]=h),C+=F-1;else if(y[1]!=="/"){++C,A="",v=0,w=[],F=1;var Y=I?x+I-1:x;if(C>k.e.c&&(k.e.c=C),C<k.s.c&&(k.s.c=C),x<k.s.r&&(k.s.r=x),Y>k.e.r&&(k.e.r=Y),d=ma(y[0],!1),W=[],Q={},h={t:d.数据类型||d["value-type"],v:null},r.cellFormula)if(d.formula&&(d.formula=hi(d.formula)),d["number-matrix-columns-spanned"]&&d["number-matrix-rows-spanned"]&&(N=parseInt(d["number-matrix-rows-spanned"],10)||0,B=parseInt(d["number-matrix-columns-spanned"],10)||0,P={s:{r:x,c:C},e:{r:x+N-1,c:C+B-1}},h.F=Ma(P),L.push([P,h.F])),d.formula)h.f=x4(d.formula);else for(he=0;he<L.length;++he)x>=L[he][0].s.r&&x<=L[he][0].e.r&&C>=L[he][0].s.c&&C<=L[he][0].e.c&&(h.F=L[he][1]);switch((d["number-columns-spanned"]||d["number-rows-spanned"])&&(N=parseInt(d["number-rows-spanned"],10)||0,B=parseInt(d["number-columns-spanned"],10)||0,P={s:{r:x,c:C},e:{r:x+N-1,c:C+B-1}},M.push(P)),d["number-columns-repeated"]&&(F=parseInt(d["number-columns-repeated"],10)),h.t){case"boolean":h.t="b",h.v=Ji(d["boolean-value"]);break;case"float":h.t="n",h.v=parseFloat(d.value);break;case"percentage":h.t="n",h.v=parseFloat(d.value);break;case"currency":h.t="n",h.v=parseFloat(d.value);break;case"date":h.t="d",h.v=qi(d["date-value"]),r.cellDates||(h.t="n",h.v=Ao(h.v)),h.z="m/d/yy";break;case"time":h.t="n",h.v=eI(d["time-value"])/86400,r.cellDates&&(h.t="d",h.v=_y(h.v)),h.z="HH:MM:SS";break;case"number":h.t="n",h.v=parseFloat(d.数据数值);break;default:if(h.t==="string"||h.t==="text"||!h.t)h.t="s",d["string-value"]!=null&&(A=hi(d["string-value"]),w=[]);else throw new Error("Unsupported value type "+h.t)}}else{if(fe=!1,h.t==="s"&&(h.v=A||"",w.length&&(h.R=w),fe=v==0),U.Target&&(h.l=U),W.length>0&&(h.c=W,W=[]),A&&r.cellText!==!1&&(h.w=A),fe&&(h.t="z",delete h.v),(!fe||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=x))for(var K=0;K<I;++K){if(F=parseInt(d["number-columns-repeated"]||"1",10),r.dense)for(_[x+K]||(_[x+K]=[]),_[x+K][C]=K==0?h:Ui(h);--F>0;)_[x+K][C+F]=Ui(h);else for(_[da({r:x+K,c:C})]=h;--F>0;)_[da({r:x+K,c:C+F})]=Ui(h);k.e.c<=C&&(k.e.c=C)}F=parseInt(d["number-columns-repeated"]||"1",10),C+=F-1,F=0,h={},A="",w=[]}U={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(y[1]==="/"){if((t=n.pop())[0]!==y[3])throw"Bad state: "+t}else y[0].charAt(y[0].length-2)!=="/"&&n.push([y[3],!0]);break;case"annotation":if(y[1]==="/"){if((t=n.pop())[0]!==y[3])throw"Bad state: "+t;Q.t=A,w.length&&(Q.R=w),Q.a=le,W.push(Q)}else y[0].charAt(y[0].length-2)!=="/"&&n.push([y[3],!1]);le="",G=0,A="",v=0,w=[];break;case"creator":y[1]==="/"?le=i.slice(G,y.index):G=y.index+y[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(y[1]==="/"){if((t=n.pop())[0]!==y[3])throw"Bad state: "+t}else y[0].charAt(y[0].length-2)!=="/"&&n.push([y[3],!1]);A="",v=0,w=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(y[1]==="/"){if(S[u.name]=f,(t=n.pop())[0]!==y[3])throw"Bad state: "+t}else y[0].charAt(y[0].length-2)!=="/"&&(f="",u=ma(y[0],!1),n.push([y[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(n[n.length-1][0]){case"time-style":case"date-style":c=ma(y[0],!1),f+=E4[y[3]][c.style==="long"?1:0];break}break;case"fraction":break;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(n[n.length-1][0]){case"time-style":case"date-style":c=ma(y[0],!1),f+=E4[y[3]][c.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(y[0].slice(-2)==="/>")break;if(y[1]==="/")switch(n[n.length-1][0]){case"number-style":case"date-style":case"time-style":f+=i.slice(o,y.index);break}else o=y.index+y[0].length;break;case"named-range":c=ma(y[0],!1),V=Eb(c["cell-range-address"]);var oe={Name:c.name,Ref:V[0]+"!"+V[1]};ie&&(oe.Sheet=p.length),R.Names.push(oe);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(n[n.length-1][0])>-1)break;if(y[1]==="/"&&(!d||!d["string-value"])){var pe=kR(i.slice(v,y.index));A=(A.length>0?A+`
`:"")+pe[0]}else ma(y[0],!1),v=y.index+y[0].length;break;case"s":break;case"database-range":if(y[1]==="/")break;try{V=Eb(ma(y[0])["target-range-address"]),m[V[0]]["!autofilter"]={ref:V[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;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":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;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":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(y[1]!=="/"){if(U=ma(y[0],!1),!U.href)break;U.Target=hi(U.href),delete U.href,U.Target.charAt(0)=="#"&&U.Target.indexOf(".")>-1?(V=Eb(U.Target.slice(1)),U.Target="#"+V[0]+"!"+V[1]):U.Target.match(/^\.\.[\\\/]/)&&(U.Target=U.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(y[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(r.WTF)throw new Error(y)}}var ve={Sheets:m,SheetNames:p,Workbook:R};return r.bookSheets&&delete ve.Sheets,ve}function I4(a,s){s=s||{},Wu(a,"META-INF/manifest.xml")&&eB(to(a,"META-INF/manifest.xml"),s);var r=fu(a,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var i=s6(Mi(r),s);return Wu(a,"meta.xml")&&(i.Props=YS(to(a,"meta.xml"))),i}function B4(a,s){return s6(a,s)}var TR=(function(){var a=["<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(""),s="<office:document-styles "+Q1({"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"})+">"+a+"</office:document-styles>";return function(){return Vs+s}})(),F4=(function(){var a=function(t){return Ii(t).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/>")},s=`          <table:table-cell />
`,r=`          <table:covered-table-cell/>
`,i=function(t,c,u){var f=[];f.push('      <table:table table:name="'+Ii(c.SheetNames[u])+`" table:style-name="ta1">
`);var o=0,l=0,g=Gl(t["!ref"]||"A1"),m=t["!merges"]||[],p=0,_=Array.isArray(t);if(t["!cols"])for(l=0;l<=g.e.c;++l)f.push("        <table:table-column"+(t["!cols"][l]?' table:style-name="co'+t["!cols"][l].ods+'"':"")+`></table:table-column>
`);var y="",h=t["!rows"]||[];for(o=0;o<g.s.r;++o)y=h[o]?' table:style-name="ro'+h[o].ods+'"':"",f.push("        <table:table-row"+y+`></table:table-row>
`);for(;o<=g.e.r;++o){for(y=h[o]?' table:style-name="ro'+h[o].ods+'"':"",f.push("        <table:table-row"+y+`>
`),l=0;l<g.s.c;++l)f.push(s);for(;l<=g.e.c;++l){var d=!1,A={},v="";for(p=0;p!=m.length;++p)if(!(m[p].s.c>l)&&!(m[p].s.r>o)&&!(m[p].e.c<l)&&!(m[p].e.r<o)){(m[p].s.c!=l||m[p].s.r!=o)&&(d=!0),A["table:number-columns-spanned"]=m[p].e.c-m[p].s.c+1,A["table:number-rows-spanned"]=m[p].e.r-m[p].s.r+1;break}if(d){f.push(r);continue}var w=da({r:o,c:l}),x=_?(t[o]||[])[l]:t[w];if(x&&x.f&&(A["table:formula"]=Ii(K7(x.f)),x.F&&x.F.slice(0,w.length)==w)){var C=Gl(x.F);A["table:number-matrix-columns-spanned"]=C.e.c-C.s.c+1,A["table:number-matrix-rows-spanned"]=C.e.r-C.s.r+1}if(!x){f.push(s);continue}switch(x.t){case"b":v=x.v?"TRUE":"FALSE",A["office:value-type"]="boolean",A["office:boolean-value"]=x.v?"true":"false";break;case"n":v=x.w||String(x.v||0),A["office:value-type"]="float",A["office:value"]=x.v||0;break;case"s":case"str":v=x.v==null?"":x.v,A["office:value-type"]="string";break;case"d":v=x.w||qi(x.v).toISOString(),A["office:value-type"]="date",A["office:date-value"]=qi(x.v).toISOString(),A["table:style-name"]="ce1";break;default:f.push(s);continue}var k=a(v);if(x.l&&x.l.Target){var T=x.l.Target;T=T.charAt(0)=="#"?"#"+Y7(T.slice(1)):T,T.charAt(0)!="#"&&!T.match(/^\w+:/)&&(T="../"+T),k=An("text:a",k,{"xlink:href":T.replace(/&/g,"&amp;")})}f.push("          "+An("table:table-cell",An("text:p",k,{}),A)+`
`)}f.push(`        </table:table-row>
`)}return f.push(`      </table:table>
`),f.join("")},n=function(t,c){t.push(` <office:automatic-styles>
`),t.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),t.push(`   <number:month number:style="long"/>
`),t.push(`   <number:text>/</number:text>
`),t.push(`   <number:day number:style="long"/>
`),t.push(`   <number:text>/</number:text>
`),t.push(`   <number:year/>
`),t.push(`  </number:date-style>
`);var u=0;c.SheetNames.map(function(o){return c.Sheets[o]}).forEach(function(o){if(o&&o["!cols"]){for(var l=0;l<o["!cols"].length;++l)if(o["!cols"][l]){var g=o["!cols"][l];if(g.width==null&&g.wpx==null&&g.wch==null)continue;tA(g),g.ods=u;var m=o["!cols"][l].wpx+"px";t.push('  <style:style style:name="co'+u+`" style:family="table-column">
`),t.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+m+`"/>
`),t.push(`  </style:style>
`),++u}}});var f=0;c.SheetNames.map(function(o){return c.Sheets[o]}).forEach(function(o){if(o&&o["!rows"]){for(var l=0;l<o["!rows"].length;++l)if(o["!rows"][l]){o["!rows"][l].ods=f;var g=o["!rows"][l].hpx+"px";t.push('  <style:style style:name="ro'+f+`" style:family="table-row">
`),t.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+g+`"/>
`),t.push(`  </style:style>
`),++f}}}),t.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),t.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),t.push(`  </style:style>
`),t.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),t.push(` </office:automatic-styles>
`)};return function(c,u){var f=[Vs],o=Q1({"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"}),l=Q1({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});u.bookType=="fods"?(f.push("<office:document"+o+l+`>
`),f.push(KS().replace(/office:document-meta/g,"office:meta"))):f.push("<office:document-content"+o+`>
`),n(f,c),f.push(`  <office:body>
`),f.push(`    <office:spreadsheet>
`);for(var g=0;g!=c.SheetNames.length;++g)f.push(i(c.Sheets[c.SheetNames[g]],c,g));return f.push(`    </office:spreadsheet>
`),f.push(`  </office:body>
`),u.bookType=="fods"?f.push("</office:document>"):f.push("</office:document-content>"),f.join("")}})();function o6(a,s){if(s.bookType=="fods")return F4(a,s);var r=d_(),i="",n=[],t=[];return i="mimetype",Pa(r,i,"application/vnd.oasis.opendocument.spreadsheet"),i="content.xml",Pa(r,i,F4(a,s)),n.push([i,"text/xml"]),t.push([i,"ContentFile"]),i="styles.xml",Pa(r,i,TR(a,s)),n.push([i,"text/xml"]),t.push([i,"StylesFile"]),i="meta.xml",Pa(r,i,Vs+KS()),n.push([i,"text/xml"]),t.push([i,"MetadataFile"]),i="manifest.rdf",Pa(r,i,nB(t)),n.push([i,"application/rdf+xml"]),i="META-INF/manifest.xml",Pa(r,i,tB(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function P0(a){return new DataView(a.buffer,a.byteOffset,a.byteLength)}function _w(a){return typeof TextDecoder<"u"?new TextDecoder().decode(a):Mi(oA(a))}function ER(a){return typeof TextEncoder<"u"?new TextEncoder().encode(a):cu(wf(a))}function IR(a,s){e:for(var r=0;r<=a.length-s.length;++r){for(var i=0;i<s.length;++i)if(a[r+i]!=s[i])continue e;return!0}return!1}function nA(a){var s=a.reduce(function(n,t){return n+t.length},0),r=new Uint8Array(s),i=0;return a.forEach(function(n){r.set(n,i),i+=n.length}),r}function M4(a){return a-=a>>1&1431655765,a=(a&858993459)+(a>>2&858993459),(a+(a>>4)&252645135)*16843009>>>24}function BR(a,s){for(var r=(a[s+15]&127)<<7|a[s+14]>>1,i=a[s+14]&1,n=s+13;n>=s;--n)i=i*256+a[n];return(a[s+15]&128?-i:i)*Math.pow(10,r-6176)}function FR(a,s,r){var i=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,i-6176);a[s+15]|=i>>7,a[s+14]|=(i&127)<<1;for(var t=0;n>=1;++t,n/=256)a[s+t]=n&255;a[s+15]|=r>=0?0:128}function X1(a,s){var r=s?s[0]:0,i=a[r]&127;e:if(a[r++]>=128&&(i|=(a[r]&127)<<7,a[r++]<128||(i|=(a[r]&127)<<14,a[r++]<128)||(i|=(a[r]&127)<<21,a[r++]<128)||(i+=(a[r]&127)*Math.pow(2,28),++r,a[r++]<128)||(i+=(a[r]&127)*Math.pow(2,35),++r,a[r++]<128)||(i+=(a[r]&127)*Math.pow(2,42),++r,a[r++]<128)))break e;return s&&(s[0]=r),i}function Ti(a){var s=new Uint8Array(7);s[0]=a&127;var r=1;e:if(a>127){if(s[r-1]|=128,s[r]=a>>7&127,++r,a<=16383||(s[r-1]|=128,s[r]=a>>14&127,++r,a<=2097151)||(s[r-1]|=128,s[r]=a>>21&127,++r,a<=268435455)||(s[r-1]|=128,s[r]=a/256>>>21&127,++r,a<=34359738367)||(s[r-1]|=128,s[r]=a/65536>>>21&127,++r,a<=4398046511103))break e;s[r-1]|=128,s[r]=a/16777216>>>21&127,++r}return s.slice(0,r)}function Ts(a){var s=0,r=a[s]&127;e:if(a[s++]>=128){if(r|=(a[s]&127)<<7,a[s++]<128||(r|=(a[s]&127)<<14,a[s++]<128)||(r|=(a[s]&127)<<21,a[s++]<128))break e;r|=(a[s]&127)<<28}return r}function yi(a){for(var s=[],r=[0];r[0]<a.length;){var i=r[0],n=X1(a,r),t=n&7;n=Math.floor(n/8);var c=0,u;if(n==0)break;switch(t){case 0:{for(var f=r[0];a[r[0]++]>=128;);u=a.slice(f,r[0])}break;case 5:c=4,u=a.slice(r[0],r[0]+c),r[0]+=c;break;case 1:c=8,u=a.slice(r[0],r[0]+c),r[0]+=c;break;case 2:c=X1(a,r),u=a.slice(r[0],r[0]+c),r[0]+=c;break;case 3:case 4:default:throw new Error("PB Type ".concat(t," for Field ").concat(n," at offset ").concat(i))}var o={data:u,type:t};s[n]==null?s[n]=[o]:s[n].push(o)}return s}function Po(a){var s=[];return a.forEach(function(r,i){r.forEach(function(n){n.data&&(s.push(Ti(i*8+n.type)),n.type==2&&s.push(Ti(n.data.length)),s.push(n.data))})}),nA(s)}function N_(a,s){return(a==null?void 0:a.map(function(r){return s(r.data)}))||[]}function zu(a){for(var s,r=[],i=[0];i[0]<a.length;){var n=X1(a,i),t=yi(a.slice(i[0],i[0]+n));i[0]+=n;var c={id:Ts(t[1][0].data),messages:[]};t[2].forEach(function(u){var f=yi(u.data),o=Ts(f[3][0].data);c.messages.push({meta:f,data:a.slice(i[0],i[0]+o)}),i[0]+=o}),(s=t[3])!=null&&s[0]&&(c.merge=Ts(t[3][0].data)>>>0>0),r.push(c)}return r}function pm(a){var s=[];return a.forEach(function(r){var i=[];i[1]=[{data:Ti(r.id),type:0}],i[2]=[],r.merge!=null&&(i[3]=[{data:Ti(+!!r.merge),type:0}]);var n=[];r.messages.forEach(function(c){n.push(c.data),c.meta[3]=[{type:0,data:Ti(c.data.length)}],i[2].push({data:Po(c.meta),type:2})});var t=Po(i);s.push(Ti(t.length)),s.push(t),n.forEach(function(c){return s.push(c)})}),nA(s)}function MR(a,s){if(a!=0)throw new Error("Unexpected Snappy chunk type ".concat(a));for(var r=[0],i=X1(s,r),n=[];r[0]<s.length;){var t=s[r[0]]&3;if(t==0){var c=s[r[0]++]>>2;if(c<60)++c;else{var u=c-59;c=s[r[0]],u>1&&(c|=s[r[0]+1]<<8),u>2&&(c|=s[r[0]+2]<<16),u>3&&(c|=s[r[0]+3]<<24),c>>>=0,c++,r[0]+=u}n.push(s.slice(r[0],r[0]+c)),r[0]+=c;continue}else{var f=0,o=0;if(t==1?(o=(s[r[0]]>>2&7)+4,f=(s[r[0]++]&224)<<3,f|=s[r[0]++]):(o=(s[r[0]++]>>2)+1,t==2?(f=s[r[0]]|s[r[0]+1]<<8,r[0]+=2):(f=(s[r[0]]|s[r[0]+1]<<8|s[r[0]+2]<<16|s[r[0]+3]<<24)>>>0,r[0]+=4)),n=[nA(n)],f==0)throw new Error("Invalid offset 0");if(f>n[0].length)throw new Error("Invalid offset beyond length");if(o>=f)for(n.push(n[0].slice(-f)),o-=f;o>=n[n.length-1].length;)n.push(n[n.length-1]),o-=n[n.length-1].length;n.push(n[0].slice(-f,-f+o))}}var l=nA(n);if(l.length!=i)throw new Error("Unexpected length: ".concat(l.length," != ").concat(i));return l}function Vu(a){for(var s=[],r=0;r<a.length;){var i=a[r++],n=a[r]|a[r+1]<<8|a[r+2]<<16;r+=3,s.push(MR(i,a.slice(r,r+n))),r+=n}if(r!==a.length)throw new Error("data is not a valid framed stream!");return nA(s)}function mm(a){for(var s=[],r=0;r<a.length;){var i=Math.min(a.length-r,268435455),n=new Uint8Array(4);s.push(n);var t=Ti(i),c=t.length;s.push(t),i<=60?(c++,s.push(new Uint8Array([i-1<<2]))):i<=256?(c+=2,s.push(new Uint8Array([240,i-1&255]))):i<=65536?(c+=3,s.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(c+=4,s.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(c+=5,s.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),s.push(a.slice(r,r+i)),c+=i,n[0]=0,n[1]=c&255,n[2]=c>>8&255,n[3]=c>>16&255,r+=i}return nA(s)}function DR(a,s,r,i){var n=P0(a),t=n.getUint32(4,!0),c=(i>1?12:8)+M4(t&(i>1?3470:398))*4,u=-1,f=-1,o=NaN,l=new Date(2001,0,1);t&512&&(u=n.getUint32(c,!0),c+=4),c+=M4(t&(i>1?12288:4096))*4,t&16&&(f=n.getUint32(c,!0),c+=4),t&32&&(o=n.getFloat64(c,!0),c+=8),t&64&&(l.setTime(l.getTime()+n.getFloat64(c,!0)*1e3),c+=8);var g;switch(a[2]){case 0:break;case 2:g={t:"n",v:o};break;case 3:g={t:"s",v:s[f]};break;case 5:g={t:"d",v:l};break;case 6:g={t:"b",v:o>0};break;case 7:g={t:"n",v:o/86400};break;case 8:g={t:"e",v:0};break;case 9:if(u>-1)g={t:"s",v:r[u]};else if(f>-1)g={t:"s",v:s[f]};else if(!isNaN(o))g={t:"n",v:o};else throw new Error("Unsupported cell type ".concat(a.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(a.slice(0,4)))}return g}function OR(a,s,r){var i=P0(a),n=i.getUint32(8,!0),t=12,c=-1,u=-1,f=NaN,o=NaN,l=new Date(2001,0,1);n&1&&(f=BR(a,t),t+=16),n&2&&(o=i.getFloat64(t,!0),t+=8),n&4&&(l.setTime(l.getTime()+i.getFloat64(t,!0)*1e3),t+=8),n&8&&(u=i.getUint32(t,!0),t+=4),n&16&&(c=i.getUint32(t,!0),t+=4);var g;switch(a[1]){case 0:break;case 2:g={t:"n",v:f};break;case 3:g={t:"s",v:s[u]};break;case 5:g={t:"d",v:l};break;case 6:g={t:"b",v:o>0};break;case 7:g={t:"n",v:o/86400};break;case 8:g={t:"e",v:0};break;case 9:if(c>-1)g={t:"s",v:r[c]};else throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(n&31," : ").concat(a.slice(0,4)));break;case 10:g={t:"n",v:f};break;default:throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(n&31," : ").concat(a.slice(0,4)))}return g}function Bb(a,s){var r=new Uint8Array(32),i=P0(r),n=12,t=0;switch(r[0]=5,a.t){case"n":r[1]=2,FR(r,n,a.v),t|=1,n+=16;break;case"b":r[1]=6,i.setFloat64(n,a.v?1:0,!0),t|=2,n+=8;break;case"s":if(s.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));r[1]=3,i.setUint32(n,s.indexOf(a.v),!0),t|=8,n+=4;break;default:throw"unsupported cell type "+a.t}return i.setUint32(8,t,!0),r.slice(0,n)}function Fb(a,s){var r=new Uint8Array(32),i=P0(r),n=12,t=0;switch(r[0]=3,a.t){case"n":r[2]=2,i.setFloat64(n,a.v,!0),t|=32,n+=8;break;case"b":r[2]=6,i.setFloat64(n,a.v?1:0,!0),t|=32,n+=8;break;case"s":if(s.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));r[2]=3,i.setUint32(n,s.indexOf(a.v),!0),t|=16,n+=4;break;default:throw"unsupported cell type "+a.t}return i.setUint32(4,t,!0),r.slice(0,n)}function LR(a,s,r){switch(a[0]){case 0:case 1:case 2:case 3:return DR(a,s,r,a[0]);case 5:return OR(a,s,r);default:throw new Error("Unsupported payload version ".concat(a[0]))}}function qo(a){var s=yi(a);return X1(s[1][0].data)}function D4(a,s){var r=yi(s.data),i=Ts(r[1][0].data),n=r[3],t=[];return(n||[]).forEach(function(c){var u=yi(c.data),f=Ts(u[1][0].data)>>>0;switch(i){case 1:t[f]=_w(u[3][0].data);break;case 8:{var o=a[qo(u[9][0].data)][0],l=yi(o.data),g=a[qo(l[1][0].data)][0],m=Ts(g.meta[1][0].data);if(m!=2001)throw new Error("2000 unexpected reference to ".concat(m));var p=yi(g.data);t[f]=p[3].map(function(_){return _w(_.data)}).join("")}break}}),t}function PR(a,s){var r,i,n,t,c,u,f,o,l,g,m,p,_,y,h=yi(a),d=Ts(h[1][0].data)>>>0,A=Ts(h[2][0].data)>>>0,v=((i=(r=h[8])==null?void 0:r[0])==null?void 0:i.data)&&Ts(h[8][0].data)>0||!1,w,x;if((t=(n=h[7])==null?void 0:n[0])!=null&&t.data&&s!=0)w=(u=(c=h[7])==null?void 0:c[0])==null?void 0:u.data,x=(o=(f=h[6])==null?void 0:f[0])==null?void 0:o.data;else if((g=(l=h[4])==null?void 0:l[0])!=null&&g.data&&s!=1)w=(p=(m=h[4])==null?void 0:m[0])==null?void 0:p.data,x=(y=(_=h[3])==null?void 0:_[0])==null?void 0:y.data;else throw"NUMBERS Tile missing ".concat(s," cell storage");for(var C=v?4:1,k=P0(w),T=[],S=0;S<w.length/2;++S){var M=k.getUint16(S*2,!0);M<65535&&T.push([S,M])}if(T.length!=A)throw"Expected ".concat(A," cells, found ").concat(T.length);var P=[];for(S=0;S<T.length-1;++S)P[T[S][0]]=x.subarray(T[S][1]*C,T[S+1][1]*C);return T.length>=1&&(P[T[T.length-1][0]]=x.subarray(T[T.length-1][1]*C)),{R:d,cells:P}}function RR(a,s){var r,i=yi(s.data),n=(r=i==null?void 0:i[7])!=null&&r[0]?Ts(i[7][0].data)>>>0>0?1:0:-1,t=N_(i[5],function(c){return PR(c,n)});return{nrows:Ts(i[4][0].data)>>>0,data:t.reduce(function(c,u){return c[u.R]||(c[u.R]=[]),u.cells.forEach(function(f,o){if(c[u.R][o])throw new Error("Duplicate cell r=".concat(u.R," c=").concat(o));c[u.R][o]=f}),c},[])}}function UR(a,s,r){var i,n=yi(s.data),t={s:{r:0,c:0},e:{r:0,c:0}};if(t.e.r=(Ts(n[6][0].data)>>>0)-1,t.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(t.e.c=(Ts(n[7][0].data)>>>0)-1,t.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));r["!ref"]=Ma(t);var c=yi(n[4][0].data),u=D4(a,a[qo(c[4][0].data)][0]),f=(i=c[17])!=null&&i[0]?D4(a,a[qo(c[17][0].data)][0]):[],o=yi(c[3][0].data),l=0;o[1].forEach(function(g){var m=yi(g.data),p=a[qo(m[2][0].data)][0],_=Ts(p.meta[1][0].data);if(_!=6002)throw new Error("6001 unexpected reference to ".concat(_));var y=RR(a,p);y.data.forEach(function(h,d){h.forEach(function(A,v){var w=da({r:l+d,c:v}),x=LR(A,u,f);x&&(r[w]=x)})}),l+=y.nrows})}function NR(a,s){var r=yi(s.data),i={"!ref":"A1"},n=a[qo(r[2][0].data)],t=Ts(n[0].meta[1][0].data);if(t!=6001)throw new Error("6000 unexpected reference to ".concat(t));return UR(a,n[0],i),i}function jR(a,s){var r,i=yi(s.data),n={name:(r=i[1])!=null&&r[0]?_w(i[1][0].data):"",sheets:[]},t=N_(i[2],qo);return t.forEach(function(c){a[c].forEach(function(u){var f=Ts(u.meta[1][0].data);f==6e3&&n.sheets.push(NR(a,u))})}),n}function HR(a,s){var r=V_(),i=yi(s.data),n=N_(i[1],qo);if(n.forEach(function(t){a[t].forEach(function(c){var u=Ts(c.meta[1][0].data);if(u==2){var f=jR(a,c);f.sheets.forEach(function(o,l){W_(r,o,l==0?f.name:f.name+"_"+l,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function Mb(a){var s,r,i,n,t={},c=[];if(a.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),a.FileIndex.forEach(function(f){if(f.name.match(/\.iwa$/)){var o;try{o=Vu(f.content)}catch(g){return console.log("?? "+f.content.length+" "+(g.message||g))}var l;try{l=zu(o)}catch(g){return console.log("## "+(g.message||g))}l.forEach(function(g){t[g.id]=g.messages,c.push(g.id)})}}),!c.length)throw new Error("File has no messages");var u=((n=(i=(r=(s=t==null?void 0:t[1])==null?void 0:s[0])==null?void 0:r.meta)==null?void 0:i[1])==null?void 0:n[0].data)&&Ts(t[1][0].meta[1][0].data)==1&&t[1][0];if(u||c.forEach(function(f){t[f].forEach(function(o){var l=Ts(o.meta[1][0].data)>>>0;if(l==1)if(!u)u=o;else throw new Error("Document has multiple roots")})}),!u)throw new Error("Cannot find Document root");return HR(t,u)}function QR(a,s,r){var i,n,t,c;if(!((i=a[6])!=null&&i[0])||!((n=a[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var u=((c=(t=a[8])==null?void 0:t[0])==null?void 0:c.data)&&Ts(a[8][0].data)>0||!1;if(u)throw"Math only works with normal offsets";for(var f=0,o=P0(a[7][0].data),l=0,g=[],m=P0(a[4][0].data),p=0,_=[],y=0;y<s.length;++y){if(s[y]==null){o.setUint16(y*2,65535,!0),m.setUint16(y*2,65535);continue}o.setUint16(y*2,l,!0),m.setUint16(y*2,p,!0);var h,d;switch(typeof s[y]){case"string":h=Bb({t:"s",v:s[y]},r),d=Fb({t:"s",v:s[y]},r);break;case"number":h=Bb({t:"n",v:s[y]},r),d=Fb({t:"n",v:s[y]},r);break;case"boolean":h=Bb({t:"b",v:s[y]},r),d=Fb({t:"b",v:s[y]},r);break;default:throw new Error("Unsupported value "+s[y])}g.push(h),l+=h.length,_.push(d),p+=d.length,++f}for(a[2][0].data=Ti(f);y<a[7][0].data.length/2;++y)o.setUint16(y*2,65535,!0),m.setUint16(y*2,65535,!0);return a[6][0].data=nA(g),a[3][0].data=nA(_),f}function zR(a,s){if(!s||!s.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=a.Sheets[a.SheetNames[0]];a.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=Gl(r["!ref"]);i.s.r=i.s.c=0;var n=!1;i.e.c>9&&(n=!0,i.e.c=9),i.e.r>49&&(n=!0,i.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(Ma(i)));var t=ey(r,{range:i,header:1}),c=["~Sh33tJ5~"];t.forEach(function(le){return le.forEach(function(G){typeof G=="string"&&c.push(G)})});var u={},f=[],o=ra.read(s.numbers,{type:"base64"});o.FileIndex.map(function(le,G){return[le,o.FullPaths[G]]}).forEach(function(le){var G=le[0],fe=le[1];if(G.type==2&&G.name.match(/\.iwa/)){var ie=G.content,he=Vu(ie),Y=zu(he);Y.forEach(function(K){f.push(K.id),u[K.id]={deps:[],location:fe,type:Ts(K.messages[0].meta[1][0].data)}})}}),f.sort(function(le,G){return le-G});var l=f.filter(function(le){return le>1}).map(function(le){return[le,Ti(le)]});o.FileIndex.map(function(le,G){return[le,o.FullPaths[G]]}).forEach(function(le){var G=le[0];if(le[1],!!G.name.match(/\.iwa/)){var fe=zu(Vu(G.content));fe.forEach(function(ie){ie.messages.forEach(function(he){l.forEach(function(Y){ie.messages.some(function(K){return Ts(K.meta[1][0].data)!=11006&&IR(K.data,Y[1])})&&u[Y[0]].deps.push(ie.id)})})})}});for(var g=ra.find(o,u[1].location),m=zu(Vu(g.content)),p,_=0;_<m.length;++_){var y=m[_];y.id==1&&(p=y)}var h=qo(yi(p.messages[0].data)[1][0].data);for(g=ra.find(o,u[h].location),m=zu(Vu(g.content)),_=0;_<m.length;++_)y=m[_],y.id==h&&(p=y);for(h=qo(yi(p.messages[0].data)[2][0].data),g=ra.find(o,u[h].location),m=zu(Vu(g.content)),_=0;_<m.length;++_)y=m[_],y.id==h&&(p=y);for(h=qo(yi(p.messages[0].data)[2][0].data),g=ra.find(o,u[h].location),m=zu(Vu(g.content)),_=0;_<m.length;++_)y=m[_],y.id==h&&(p=y);var d=yi(p.messages[0].data);{d[6][0].data=Ti(i.e.r+1),d[7][0].data=Ti(i.e.c+1);var A=qo(d[46][0].data),v=ra.find(o,u[A].location),w=zu(Vu(v.content));{for(var x=0;x<w.length&&w[x].id!=A;++x);if(w[x].id!=A)throw"Bad ColumnRowUIDMapArchive";var C=yi(w[x].messages[0].data);C[1]=[],C[2]=[],C[3]=[];for(var k=0;k<=i.e.c;++k){var T=[];T[1]=T[2]=[{type:0,data:Ti(k+420690)}],C[1].push({type:2,data:Po(T)}),C[2].push({type:0,data:Ti(k)}),C[3].push({type:0,data:Ti(k)})}C[4]=[],C[5]=[],C[6]=[];for(var S=0;S<=i.e.r;++S)T=[],T[1]=T[2]=[{type:0,data:Ti(S+726270)}],C[4].push({type:2,data:Po(T)}),C[5].push({type:0,data:Ti(S)}),C[6].push({type:0,data:Ti(S)});w[x].messages[0].data=Po(C)}v.content=mm(pm(w)),v.size=v.content.length,delete d[46];var M=yi(d[4][0].data);{M[7][0].data=Ti(i.e.r+1);var P=yi(M[1][0].data),N=qo(P[2][0].data);v=ra.find(o,u[N].location),w=zu(Vu(v.content));{if(w[0].id!=N)throw"Bad HeaderStorageBucket";var B=yi(w[0].messages[0].data);for(S=0;S<t.length;++S){var O=yi(B[2][0].data);O[1][0].data=Ti(S),O[4][0].data=Ti(t[S].length),B[2][S]={type:B[2][0].type,data:Po(O)}}w[0].messages[0].data=Po(B)}v.content=mm(pm(w)),v.size=v.content.length;var I=qo(M[2][0].data);v=ra.find(o,u[I].location),w=zu(Vu(v.content));{if(w[0].id!=I)throw"Bad HeaderStorageBucket";for(B=yi(w[0].messages[0].data),k=0;k<=i.e.c;++k)O=yi(B[2][0].data),O[1][0].data=Ti(k),O[4][0].data=Ti(i.e.r+1),B[2][k]={type:B[2][0].type,data:Po(O)};w[0].messages[0].data=Po(B)}v.content=mm(pm(w)),v.size=v.content.length;var F=qo(M[4][0].data);(function(){for(var le=ra.find(o,u[F].location),G=zu(Vu(le.content)),fe,ie=0;ie<G.length;++ie){var he=G[ie];he.id==F&&(fe=he)}var Y=yi(fe.messages[0].data);{Y[3]=[];var K=[];c.forEach(function(ve,ge){K[1]=[{type:0,data:Ti(ge)}],K[2]=[{type:0,data:Ti(1)}],K[3]=[{type:2,data:ER(ve)}],Y[3].push({type:2,data:Po(K)})})}fe.messages[0].data=Po(Y);var oe=pm(G),pe=mm(oe);le.content=pe,le.size=le.content.length})();var L=yi(M[3][0].data);{var R=L[1][0];delete L[2];var U=yi(R.data);{var V=qo(U[2][0].data);(function(){for(var le=ra.find(o,u[V].location),G=zu(Vu(le.content)),fe,ie=0;ie<G.length;++ie){var he=G[ie];he.id==V&&(fe=he)}var Y=yi(fe.messages[0].data);{delete Y[6],delete L[7];var K=new Uint8Array(Y[5][0].data);Y[5]=[];for(var oe=0,pe=0;pe<=i.e.r;++pe){var ve=yi(K);oe+=QR(ve,t[pe],c),ve[1][0].data=Ti(pe),Y[5].push({data:Po(ve),type:2})}Y[1]=[{type:0,data:Ti(i.e.c+1)}],Y[2]=[{type:0,data:Ti(i.e.r+1)}],Y[3]=[{type:0,data:Ti(oe)}],Y[4]=[{type:0,data:Ti(i.e.r+1)}]}fe.messages[0].data=Po(Y);var ge=pm(G),ue=mm(ge);le.content=ue,le.size=le.content.length})()}R.data=Po(U)}M[3][0].data=Po(L)}d[4][0].data=Po(M)}p.messages[0].data=Po(d);var W=pm(m),Q=mm(W);return g.content=Q,g.size=g.content.length,o}function l6(a){return function(r){for(var i=0;i!=a.length;++i){var n=a[i];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function j_(a){l6([["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]])(a)}function H_(a){l6([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(a)}function VR(a){return Ya.WS.indexOf(a)>-1?"sheet":a==Ya.CS?"chart":a==Ya.DS?"dialog":a==Ya.MS?"macro":a&&a.length?a:"sheet"}function WR(a,s){if(!a)return 0;try{a=s.map(function(i){return i.id||(i.id=i.strRelID),[i.name,a["!id"][i.id].Target,VR(a["!id"][i.id].Type)]})}catch{return null}return!a||a.length===0?null:a}function GR(a,s,r,i,n,t,c,u,f,o,l,g){try{t[i]=k1(fu(a,r,!0),s);var m=to(a,s),p;switch(u){case"sheet":p=AP(m,s,n,f,t[i],o,l,g);break;case"chart":if(p=pP(m,s,n,f,t[i],o,l,g),!p||!p["!drawel"])break;var _=d1(p["!drawel"].Target,s),y=V1(_),h=rD(fu(a,_,!0),k1(fu(a,y,!0),_)),d=d1(h,_),A=V1(d);p=zL(fu(a,d,!0),d,f,k1(fu(a,A,!0),d),o,p);break;case"macro":p=mP(m,s,n,f,t[i],o,l,g);break;case"dialog":p=gP(m,s,n,f,t[i],o,l,g);break;default:throw new Error("Unrecognized sheet type "+u)}c[i]=p;var v=[];t&&t[i]&&Es(t[i]).forEach(function(w){var x="";if(t[i][w].Type==Ya.CMNT){x=d1(t[i][w].Target,s);var C=wP(to(a,x,!0),x,f);if(!C||!C.length)return;v4(p,C,!1)}t[i][w].Type==Ya.TCMNT&&(x=d1(t[i][w].Target,s),v=v.concat(aD(to(a,x,!0),f)))}),v&&v.length&&v4(p,v,!0,f.people||[])}catch(w){if(f.WTF)throw w}}function ju(a){return a.charAt(0)=="/"?a.slice(1):a}function $R(a,s){if(qm(),s=s||{},j_(s),Wu(a,"META-INF/manifest.xml")||Wu(a,"objectdata.xml"))return I4(a,s);if(Wu(a,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Mb<"u"){if(a.FileIndex)return Mb(a);var r=ra.utils.cfb_new();return Nx(a).forEach(function(O){Pa(r,O,iI(a,O))}),Mb(r)}throw new Error("Unsupported NUMBERS file")}if(!Wu(a,"[Content_Types].xml"))throw Wu(a,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Wu(a,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var i=Nx(a),n=JI(fu(a,"[Content_Types].xml")),t=!1,c,u;if(n.workbooks.length===0&&(u="xl/workbook.xml",to(a,u,!0)&&n.workbooks.push(u)),n.workbooks.length===0){if(u="xl/workbook.bin",!to(a,u,!0))throw new Error("Could not find workbook");n.workbooks.push(u),t=!0}n.workbooks[0].slice(-3)=="bin"&&(t=!0);var f={},o={};if(!s.bookSheets&&!s.bookProps){if(T1=[],n.sst)try{T1=bP(to(a,ju(n.sst)),n.sst,s)}catch(O){if(s.WTF)throw O}s.cellStyles&&n.themes.length&&(f=yP(fu(a,n.themes[0].replace(/^\//,""),!0)||"",n.themes[0],s)),n.style&&(o=vP(to(a,ju(n.style)),n.style,f,s))}n.links.map(function(O){try{var I=k1(fu(a,V1(ju(O))),O);return xP(to(a,ju(O)),I,O,s)}catch{}});var l=hP(to(a,ju(n.workbooks[0])),n.workbooks[0],s),g={},m="";n.coreprops.length&&(m=to(a,ju(n.coreprops[0]),!0),m&&(g=YS(m)),n.extprops.length!==0&&(m=to(a,ju(n.extprops[0]),!0),m&&iB(m,g,s)));var p={};(!s.bookSheets||s.bookProps)&&n.custprops.length!==0&&(m=fu(a,ju(n.custprops[0]),!0),m&&(p=oB(m,s)));var _={};if((s.bookSheets||s.bookProps)&&(l.Sheets?c=l.Sheets.map(function(I){return I.name}):g.Worksheets&&g.SheetNames.length>0&&(c=g.SheetNames),s.bookProps&&(_.Props=g,_.Custprops=p),s.bookSheets&&typeof c<"u"&&(_.SheetNames=c),s.bookSheets?_.SheetNames:s.bookProps))return _;c={};var y={};s.bookDeps&&n.calcchain&&(y=_P(to(a,ju(n.calcchain)),n.calcchain));var h=0,d={},A,v;{var w=l.Sheets;g.Worksheets=w.length,g.SheetNames=[];for(var x=0;x!=w.length;++x)g.SheetNames[x]=w[x].name}var C=t?"bin":"xml",k=n.workbooks[0].lastIndexOf("/"),T=(n.workbooks[0].slice(0,k+1)+"_rels/"+n.workbooks[0].slice(k+1)+".rels").replace(/^\//,"");Wu(a,T)||(T="xl/_rels/workbook."+C+".rels");var S=k1(fu(a,T,!0),T.replace(/_rels.*/,"s5s"));(n.metadata||[]).length>=1&&(s.xlmeta=CP(to(a,ju(n.metadata[0])),n.metadata[0],s)),(n.people||[]).length>=1&&(s.people=sD(to(a,ju(n.people[0])),s)),S&&(S=WR(S,l.Sheets));var M=to(a,"xl/worksheets/sheet.xml",!0)?1:0;e:for(h=0;h!=g.Worksheets;++h){var P="sheet";if(S&&S[h]?(A="xl/"+S[h][1].replace(/[\/]?xl\//,""),Wu(a,A)||(A=S[h][1]),Wu(a,A)||(A=T.replace(/_rels\/.*$/,"")+S[h][1]),P=S[h][2]):(A="xl/worksheets/sheet"+(h+1-M)+"."+C,A=A.replace(/sheet0\./,"sheet.")),v=A.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),s&&s.sheets!=null)switch(typeof s.sheets){case"number":if(h!=s.sheets)continue e;break;case"string":if(g.SheetNames[h].toLowerCase()!=s.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(s.sheets)){for(var N=!1,B=0;B!=s.sheets.length;++B)typeof s.sheets[B]=="number"&&s.sheets[B]==h&&(N=1),typeof s.sheets[B]=="string"&&s.sheets[B].toLowerCase()==g.SheetNames[h].toLowerCase()&&(N=1);if(!N)continue e}}GR(a,A,v,g.SheetNames[h],h,d,c,P,s,l,f,o)}return _={Directory:n,Workbook:l,Props:g,Custprops:p,Deps:y,Sheets:c,SheetNames:g.SheetNames,Strings:T1,Styles:o,Themes:f,SSF:Ui(fa)},s&&s.bookFiles&&(a.files?(_.keys=i,_.files=a.files):(_.keys=[],_.files={},a.FullPaths.forEach(function(O,I){O=O.replace(/^Root Entry[\/]/,""),_.keys.push(O),_.files[O]=a.FileIndex[I]}))),s&&s.bookVBA&&(n.vba.length>0?_.vbaraw=to(a,ju(n.vba[0]),!0):n.defaults&&n.defaults.bin===AD&&(_.vbaraw=to(a,"xl/vbaProject.bin",!0))),_}function KR(a,s){var r=s||{},i="Workbook",n=ra.find(a,i);try{if(i="/!DataSpaces/Version",n=ra.find(a,i),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(SM(n.content),i="/!DataSpaces/DataSpaceMap",n=ra.find(a,i),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+i);var t=TM(n.content);if(t.length!==1||t[0].comps.length!==1||t[0].comps[0].t!==0||t[0].name!=="StrongEncryptionDataSpace"||t[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=ra.find(a,i),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+i);var c=EM(n.content);if(c.length!=1||c[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+i);if(i="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=ra.find(a,i),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+i);BM(n.content)}catch{}if(i="/EncryptionInfo",n=ra.find(a,i),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+i);var u=FM(n.content);if(i="/EncryptedPackage",n=ra.find(a,i),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+i);if(u[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(u[1],n.content,r.password||"",r);if(u[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(u[1],n.content,r.password||"",r);throw new Error("File is password-protected")}function YR(a,s){return s.bookType=="ods"?o6(a,s):s.bookType=="numbers"?zR(a,s):s.bookType=="xlsb"?XR(a,s):u6(a,s)}function XR(a,s){Dm=1024,a&&!a.SSF&&(a.SSF=Ui(fa)),a&&a.SSF&&(qm(),yy(a.SSF),s.revssf=wy(a.SSF),s.revssf[a.SSF[65535]]=0,s.ssf=a.SSF),s.rels={},s.wbrels={},s.Strings=[],s.Strings.Count=0,s.Strings.Unique=0,E1?s.revStrings=new Map:(s.revStrings={},s.revStrings.foo=[],delete s.revStrings.foo);var r=s.bookType=="xlsb"?"bin":"xml",i=O5.indexOf(s.bookType)>-1,n=k_();H_(s=s||{});var t=d_(),c="",u=0;if(s.cellXfs=[],uA(s.cellXfs,{},{revssf:{General:0}}),a.Props||(a.Props={}),c="docProps/core.xml",Pa(t,c,XS(a.Props,s)),n.coreprops.push(c),Ei(s.rels,2,c,Ya.CORE_PROPS),c="docProps/app.xml",!(a.Props&&a.Props.SheetNames))if(!a.Workbook||!a.Workbook.Sheets)a.Props.SheetNames=a.SheetNames;else{for(var f=[],o=0;o<a.SheetNames.length;++o)(a.Workbook.Sheets[o]||{}).Hidden!=2&&f.push(a.SheetNames[o]);a.Props.SheetNames=f}for(a.Props.Worksheets=a.Props.SheetNames.length,Pa(t,c,qS(a.Props)),n.extprops.push(c),Ei(s.rels,3,c,Ya.EXT_PROPS),a.Custprops!==a.Props&&Es(a.Custprops||{}).length>0&&(c="docProps/custom.xml",Pa(t,c,e5(a.Custprops)),n.custprops.push(c),Ei(s.rels,4,c,Ya.CUST_PROPS)),u=1;u<=a.SheetNames.length;++u){var l={"!id":{}},g=a.Sheets[a.SheetNames[u-1]],m=(g||{})["!type"]||"sheet";switch(m){case"chart":default:c="xl/worksheets/sheet"+u+"."+r,Pa(t,c,kP(u-1,c,s,a,l)),n.sheets.push(c),Ei(s.wbrels,-1,"worksheets/sheet"+u+"."+r,Ya.WS[0])}if(g){var p=g["!comments"],_=!1,y="";p&&p.length>0&&(y="xl/comments"+u+"."+r,Pa(t,y,IP(p,y)),n.comments.push(y),Ei(l,-1,"../comments"+u+"."+r,Ya.CMNT),_=!0),g["!legacy"]&&_&&Pa(t,"xl/drawings/vmlDrawing"+u+".vml",M5(u,g["!comments"])),delete g["!comments"],delete g["!legacy"]}l["!id"].rId1&&Pa(t,V1(c),Nm(l))}return s.Strings!=null&&s.Strings.length>0&&(c="xl/sharedStrings."+r,Pa(t,c,EP(s.Strings,c,s)),n.strs.push(c),Ei(s.wbrels,-1,"sharedStrings."+r,Ya.SST)),c="xl/workbook."+r,Pa(t,c,SP(a,c)),n.workbooks.push(c),Ei(s.rels,1,c,Ya.WB),c="xl/theme/theme1.xml",Pa(t,c,M_(a.Themes,s)),n.themes.push(c),Ei(s.wbrels,-1,"theme/theme1.xml",Ya.THEME),c="xl/styles."+r,Pa(t,c,TP(a,c,s)),n.styles.push(c),Ei(s.wbrels,-1,"styles."+r,Ya.STY),a.vbaraw&&i&&(c="xl/vbaProject.bin",Pa(t,c,a.vbaraw),n.vba.push(c),Ei(s.wbrels,-1,"vbaProject.bin",Ya.VBA)),c="xl/metadata."+r,Pa(t,c,BP(c)),n.metadata.push(c),Ei(s.wbrels,-1,"metadata."+r,Ya.XLMETA),Pa(t,"[Content_Types].xml",$S(n,s)),Pa(t,"_rels/.rels",Nm(s.rels)),Pa(t,"xl/_rels/workbook."+r+".rels",Nm(s.wbrels)),delete s.revssf,delete s.ssf,t}function u6(a,s){Dm=1024,a&&!a.SSF&&(a.SSF=Ui(fa)),a&&a.SSF&&(qm(),yy(a.SSF),s.revssf=wy(a.SSF),s.revssf[a.SSF[65535]]=0,s.ssf=a.SSF),s.rels={},s.wbrels={},s.Strings=[],s.Strings.Count=0,s.Strings.Unique=0,E1?s.revStrings=new Map:(s.revStrings={},s.revStrings.foo=[],delete s.revStrings.foo);var r="xml",i=O5.indexOf(s.bookType)>-1,n=k_();H_(s=s||{});var t=d_(),c="",u=0;if(s.cellXfs=[],uA(s.cellXfs,{},{revssf:{General:0}}),a.Props||(a.Props={}),c="docProps/core.xml",Pa(t,c,XS(a.Props,s)),n.coreprops.push(c),Ei(s.rels,2,c,Ya.CORE_PROPS),c="docProps/app.xml",!(a.Props&&a.Props.SheetNames))if(!a.Workbook||!a.Workbook.Sheets)a.Props.SheetNames=a.SheetNames;else{for(var f=[],o=0;o<a.SheetNames.length;++o)(a.Workbook.Sheets[o]||{}).Hidden!=2&&f.push(a.SheetNames[o]);a.Props.SheetNames=f}a.Props.Worksheets=a.Props.SheetNames.length,Pa(t,c,qS(a.Props)),n.extprops.push(c),Ei(s.rels,3,c,Ya.EXT_PROPS),a.Custprops!==a.Props&&Es(a.Custprops||{}).length>0&&(c="docProps/custom.xml",Pa(t,c,e5(a.Custprops)),n.custprops.push(c),Ei(s.rels,4,c,Ya.CUST_PROPS));var l=["SheetJ5"];for(s.tcid=0,u=1;u<=a.SheetNames.length;++u){var g={"!id":{}},m=a.Sheets[a.SheetNames[u-1]],p=(m||{})["!type"]||"sheet";switch(p){case"chart":default:c="xl/worksheets/sheet"+u+"."+r,Pa(t,c,W5(u-1,s,a,g)),n.sheets.push(c),Ei(s.wbrels,-1,"worksheets/sheet"+u+"."+r,Ya.WS[0])}if(m){var _=m["!comments"],y=!1,h="";if(_&&_.length>0){var d=!1;_.forEach(function(A){A[1].forEach(function(v){v.T==!0&&(d=!0)})}),d&&(h="xl/threadedComments/threadedComment"+u+"."+r,Pa(t,h,iD(_,l,s)),n.threadedcomments.push(h),Ei(g,-1,"../threadedComments/threadedComment"+u+"."+r,Ya.TCMNT)),h="xl/comments"+u+"."+r,Pa(t,h,D5(_)),n.comments.push(h),Ei(g,-1,"../comments"+u+"."+r,Ya.CMNT),y=!0}m["!legacy"]&&y&&Pa(t,"xl/drawings/vmlDrawing"+u+".vml",M5(u,m["!comments"])),delete m["!comments"],delete m["!legacy"]}g["!id"].rId1&&Pa(t,V1(c),Nm(g))}return s.Strings!=null&&s.Strings.length>0&&(c="xl/sharedStrings."+r,Pa(t,c,b5(s.Strings,s)),n.strs.push(c),Ei(s.wbrels,-1,"sharedStrings."+r,Ya.SST)),c="xl/workbook."+r,Pa(t,c,Z5(a)),n.workbooks.push(c),Ei(s.rels,1,c,Ya.WB),c="xl/theme/theme1.xml",Pa(t,c,M_(a.Themes,s)),n.themes.push(c),Ei(s.wbrels,-1,"theme/theme1.xml",Ya.THEME),c="xl/styles."+r,Pa(t,c,E5(a,s)),n.styles.push(c),Ei(s.wbrels,-1,"styles."+r,Ya.STY),a.vbaraw&&i&&(c="xl/vbaProject.bin",Pa(t,c,a.vbaraw),n.vba.push(c),Ei(s.wbrels,-1,"vbaProject.bin",Ya.VBA)),c="xl/metadata."+r,Pa(t,c,F5()),n.metadata.push(c),Ei(s.wbrels,-1,"metadata."+r,Ya.XLMETA),l.length>1&&(c="xl/persons/person.xml",Pa(t,c,oD(l)),n.people.push(c),Ei(s.wbrels,-1,"persons/person.xml",Ya.PEOPLE)),Pa(t,"[Content_Types].xml",$S(n,s)),Pa(t,"_rels/.rels",Nm(s.rels)),Pa(t,"xl/_rels/workbook."+r+".rels",Nm(s.wbrels)),delete s.revssf,delete s.ssf,t}function Q_(a,s){var r="";switch((s||{}).type||"base64"){case"buffer":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];case"base64":r=hu(a.slice(0,12));break;case"binary":r=a;break;case"array":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];default:throw new Error("Unrecognized type "+(s&&s.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function ZR(a,s){return ra.find(a,"EncryptedPackage")?KR(a,s):t6(a,s)}function JR(a,s){var r,i=a,n=s||{};return n.type||(n.type=Ga&&Buffer.isBuffer(a)?"buffer":"base64"),r=_S(i,n),$R(r,n)}function c6(a,s){var r=0;e:for(;r<a.length;)switch(a.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return bw(a.slice(r),s);default:break e}return $m.to_workbook(a,s)}function qR(a,s){var r="",i=Q_(a,s);switch(s.type){case"base64":r=hu(a);break;case"binary":r=a;break;case"buffer":r=a.toString("binary");break;case"array":r=M0(a);break;default:throw new Error("Unrecognized type "+s.type)}return i[0]==239&&i[1]==187&&i[2]==191&&(r=Mi(r)),s.type="binary",c6(r,s)}function eU(a,s){var r=a;return s.type=="base64"&&(r=hu(r)),r=U1.utils.decode(1200,r.slice(2),"str"),s.type="binary",c6(r,s)}function tU(a){return a.match(/[^\x00-\x7F]/)?wf(a):a}function Db(a,s,r,i){return i?(r.type="string",$m.to_workbook(a,r)):$m.to_workbook(s,r)}function xw(a,s){vy();var r=s||{};if(typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer)return xw(new Uint8Array(a),(r=Ui(r),r.type="array",r));typeof Uint8Array<"u"&&a instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var i=a,n=[0,0,0,0],t=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),Hm={},r.dateNF&&(Hm.dateNF=r.dateNF),r.type||(r.type=Ga&&Buffer.isBuffer(a)?"buffer":"base64"),r.type=="file"&&(r.type=Ga?"buffer":"binary",i=ZE(a),typeof Uint8Array<"u"&&!Ga&&(r.type="array")),r.type=="string"&&(t=!0,r.type="binary",r.codepage=65001,i=tU(a)),r.type=="array"&&typeof Uint8Array<"u"&&a instanceof Uint8Array&&typeof ArrayBuffer<"u"){var c=new ArrayBuffer(3),u=new Uint8Array(c);if(u.foo="bar",!u.foo)return r=Ui(r),r.type="array",xw(l_(i),r)}switch((n=Q_(i,r))[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 ZR(ra.read(i,r),r);break;case 9:if(n[1]<=8)return t6(i,r);break;case 60:return bw(i,r);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 lM(i,r);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return v5.to_workbook(i,r);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?JR(i,r):Db(a,i,r,t);case 239:return n[3]===60?bw(i,r):Db(a,i,r,t);case 255:if(n[1]===254)return eU(i,r);if(n[1]===0&&n[2]===2&&n[3]===0)return S0.to_workbook(i,r);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return S0.to_workbook(i,r);break;case 3:case 131:case 139:case 140:return yw.to_workbook(i,r);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return S5.to_workbook(i,r);break;case 10:case 13:case 32:return qR(i,r);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return oM.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?yw.to_workbook(i,r):Db(a,i,r,t)}function f6(a,s){switch(s.type){case"base64":case"binary":break;case"buffer":case"array":s.type="";break;case"file":return sv(s.file,ra.write(a,{type:Ga?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+s.bookType+"' files");default:throw new Error("Unrecognized type "+s.type)}return ra.write(a,s)}function rU(a,s){var r=Ui(s||{}),i=YR(a,r);return d6(i,r)}function nU(a,s){var r=Ui(s||{}),i=u6(a,r);return d6(i,r)}function d6(a,s){var r={},i=Ga?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(s.compression&&(r.compression="DEFLATE"),s.password)r.type=i;else switch(s.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+s.bookType+"' files");case"buffer":case"file":r.type=i;break;default:throw new Error("Unrecognized type "+s.type)}var n=a.FullPaths?ra.write(a,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!s.compression}):a.generate(r);if(typeof Deno<"u"&&typeof n=="string"){if(s.type=="binary"||s.type=="base64")return n;n=new Uint8Array(iv(n))}return s.password&&typeof encrypt_agile<"u"?f6(encrypt_agile(n,s.password),s):s.type==="file"?sv(s.file,n):s.type=="string"?Mi(n):n}function aU(a,s){var r=s||{},i=rR(a,r);return f6(i,r)}function bf(a,s,r){r||(r="");var i=r+a;switch(s.type){case"base64":return N1(wf(i));case"binary":return wf(i);case"string":return a;case"file":return sv(s.file,i,"utf8");case"buffer":return Ga?Ld(i,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(i):bf(i,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+s.type)}function iU(a,s){switch(s.type){case"base64":return N1(a);case"binary":return a;case"string":return a;case"file":return sv(s.file,a,"binary");case"buffer":return Ga?Ld(a,"binary"):a.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+s.type)}function r2(a,s){switch(s.type){case"string":case"base64":case"binary":for(var r="",i=0;i<a.length;++i)r+=String.fromCharCode(a[i]);return s.type=="base64"?N1(r):s.type=="string"?Mi(r):r;case"file":return sv(s.file,a);case"buffer":return a;default:throw new Error("Unrecognized type "+s.type)}}function h6(a,s){vy(),X5(a);var r=Ui(s||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var i=h6(a,r);return r.type="array",iv(i)}return nU(a,r)}function A6(a,s){vy(),X5(a);var r=Ui(s||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var i=A6(a,r);return r.type="array",iv(i)}var n=0;if(r.sheet&&(typeof r.sheet=="number"?n=r.sheet:n=a.SheetNames.indexOf(r.sheet),!a.SheetNames[n]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return bf(YP(a,r),r);case"slk":case"sylk":return bf(g5.from_sheet(a.Sheets[a.SheetNames[n]],r),r);case"htm":case"html":return bf(n6(a.Sheets[a.SheetNames[n]],r),r);case"txt":return iU(p6(a.Sheets[a.SheetNames[n]],r),r);case"csv":return bf(z_(a.Sheets[a.SheetNames[n]],r),r,"\uFEFF");case"dif":return bf(v5.from_sheet(a.Sheets[a.SheetNames[n]],r),r);case"dbf":return r2(yw.from_sheet(a.Sheets[a.SheetNames[n]],r),r);case"prn":return bf($m.from_sheet(a.Sheets[a.SheetNames[n]],r),r);case"rtf":return bf(S5.from_sheet(a.Sheets[a.SheetNames[n]],r),r);case"eth":return bf(y5.from_sheet(a.Sheets[a.SheetNames[n]],r),r);case"fods":return bf(o6(a,r),r);case"wk1":return r2(S0.sheet_to_wk1(a.Sheets[a.SheetNames[n]],r),r);case"wk3":return r2(S0.book_to_wk3(a,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),r2(r6(a,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),aU(a,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return rU(a,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function sU(a){if(!a.bookType){var s={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=a.file.slice(a.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(a.bookType=r.slice(1)),a.bookType=s[a.bookType]||a.bookType}}function oU(a,s,r){var i={};return i.type="file",i.file=s,sU(i),h6(a,i)}function lU(a,s,r,i,n,t,c,u){var f=zs(r),o=u.defval,l=u.raw||!Object.prototype.hasOwnProperty.call(u,"raw"),g=!0,m=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(m,"__rowNum__",{value:r,enumerable:!1})}catch{m.__rowNum__=r}else m.__rowNum__=r;if(!c||a[r])for(var p=s.s.c;p<=s.e.c;++p){var _=c?a[r][p]:a[i[p]+f];if(_===void 0||_.t===void 0){if(o===void 0)continue;t[p]!=null&&(m[t[p]]=o);continue}var y=_.v;switch(_.t){case"z":if(y==null)break;continue;case"e":y=y==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+_.t)}if(t[p]!=null){if(y==null)if(_.t=="e"&&y===null)m[t[p]]=null;else if(o!==void 0)m[t[p]]=o;else if(l&&y===null)m[t[p]]=null;else continue;else m[t[p]]=l&&(_.t!=="n"||_.t==="n"&&u.rawNumbers!==!1)?y:Md(_,y,u);y!=null&&(g=!1)}}return{row:m,isempty:g}}function ey(a,s){if(a==null||a["!ref"]==null)return[];var r={t:"n",v:0},i=0,n=1,t=[],c=0,u="",f={s:{r:0,c:0},e:{r:0,c:0}},o=s||{},l=o.range!=null?o.range:a["!ref"];switch(o.header===1?i=1:o.header==="A"?i=2:Array.isArray(o.header)?i=3:o.header==null&&(i=0),typeof l){case"string":f=mi(l);break;case"number":f=mi(a["!ref"]),f.s.r=l;break;default:f=l}i>0&&(n=0);var g=zs(f.s.r),m=[],p=[],_=0,y=0,h=Array.isArray(a),d=f.s.r,A=0,v={};h&&!a[d]&&(a[d]=[]);var w=o.skipHidden&&a["!cols"]||[],x=o.skipHidden&&a["!rows"]||[];for(A=f.s.c;A<=f.e.c;++A)if(!(w[A]||{}).hidden)switch(m[A]=As(A),r=h?a[d][A]:a[m[A]+g],i){case 1:t[A]=A-f.s.c;break;case 2:t[A]=m[A];break;case 3:t[A]=o.header[A-f.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),u=c=Md(r,null,o),y=v[c]||0,!y)v[c]=1;else{do u=c+"_"+y++;while(v[u]);v[c]=y,v[u]=1}t[A]=u}for(d=f.s.r+n;d<=f.e.r;++d)if(!(x[d]||{}).hidden){var C=lU(a,f,d,m,i,t,h,o);(C.isempty===!1||(i===1?o.blankrows!==!1:o.blankrows))&&(p[_++]=C.row)}return p.length=_,p}var O4=/"/g;function uU(a,s,r,i,n,t,c,u){for(var f=!0,o=[],l="",g=zs(r),m=s.s.c;m<=s.e.c;++m)if(i[m]){var p=u.dense?(a[r]||[])[m]:a[i[m]+g];if(p==null)l="";else if(p.v!=null){f=!1,l=""+(u.rawNumbers&&p.t=="n"?p.v:Md(p,null,u));for(var _=0,y=0;_!==l.length;++_)if((y=l.charCodeAt(_))===n||y===t||y===34||u.forceQuotes){l='"'+l.replace(O4,'""')+'"';break}l=="ID"&&(l='"ID"')}else p.f!=null&&!p.F?(f=!1,l="="+p.f,l.indexOf(",")>=0&&(l='"'+l.replace(O4,'""')+'"')):l="";o.push(l)}return u.blankrows===!1&&f?null:o.join(c)}function z_(a,s){var r=[],i=s??{};if(a==null||a["!ref"]==null)return"";var n=mi(a["!ref"]),t=i.FS!==void 0?i.FS:",",c=t.charCodeAt(0),u=i.RS!==void 0?i.RS:`
`,f=u.charCodeAt(0),o=new RegExp((t=="|"?"\\|":t)+"+$"),l="",g=[];i.dense=Array.isArray(a);for(var m=i.skipHidden&&a["!cols"]||[],p=i.skipHidden&&a["!rows"]||[],_=n.s.c;_<=n.e.c;++_)(m[_]||{}).hidden||(g[_]=As(_));for(var y=0,h=n.s.r;h<=n.e.r;++h)(p[h]||{}).hidden||(l=uU(a,n,h,g,c,f,t,i),l!=null&&(i.strip&&(l=l.replace(o,"")),(l||i.blankrows!==!1)&&r.push((y++?u:"")+l)));return delete i.dense,r.join("")}function p6(a,s){s||(s={}),s.FS="	",s.RS=`
`;var r=z_(a,s);return r}function cU(a){var s="",r,i="";if(a==null||a["!ref"]==null)return[];var n=mi(a["!ref"]),t="",c=[],u,f=[],o=Array.isArray(a);for(u=n.s.c;u<=n.e.c;++u)c[u]=As(u);for(var l=n.s.r;l<=n.e.r;++l)for(t=zs(l),u=n.s.c;u<=n.e.c;++u)if(s=c[u]+t,r=o?(a[l]||[])[u]:a[s],i="",r!==void 0){if(r.F!=null){if(s=r.F,!r.f)continue;i=r.f,s.indexOf(":")==-1&&(s=s+":"+s)}if(r.f!=null)i=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)i=""+r.v;else if(r.t=="b")i=r.v?"TRUE":"FALSE";else if(r.w!==void 0)i="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?i="'"+r.v:i=""+r.v}}f[f.length]=s+"="+i}return f}function m6(a,s,r){var i=r||{},n=+!i.skipHeader,t=a||{},c=0,u=0;if(t&&i.origin!=null)if(typeof i.origin=="number")c=i.origin;else{var f=typeof i.origin=="string"?ps(i.origin):i.origin;c=f.r,u=f.c}var o,l={s:{c:0,r:0},e:{c:u,r:c+s.length-1+n}};if(t["!ref"]){var g=mi(t["!ref"]);l.e.c=Math.max(l.e.c,g.e.c),l.e.r=Math.max(l.e.r,g.e.r),c==-1&&(c=g.e.r+1,l.e.r=c+s.length-1+n)}else c==-1&&(c=0,l.e.r=s.length-1+n);var m=i.header||[],p=0;s.forEach(function(y,h){Es(y).forEach(function(d){(p=m.indexOf(d))==-1&&(m[p=m.length]=d);var A=y[d],v="z",w="",x=da({c:u+p,r:c+h+n});o=Z1(t,x),A&&typeof A=="object"&&!(A instanceof Date)?t[x]=A:(typeof A=="number"?v="n":typeof A=="boolean"?v="b":typeof A=="string"?v="s":A instanceof Date?(v="d",i.cellDates||(v="n",A=Ao(A)),w=i.dateNF||fa[14]):A===null&&i.nullError&&(v="e",A=0),o?(o.t=v,o.v=A,delete o.w,delete o.R,w&&(o.z=w)):t[x]=o={t:v,v:A},w&&(o.z=w))})}),l.e.c=Math.max(l.e.c,u+m.length-1);var _=zs(c);if(n)for(p=0;p<m.length;++p)t[As(p+u)+_]={t:"s",v:m[p]};return t["!ref"]=Ma(l),t}function fU(a,s){return m6(null,a,s)}function Z1(a,s,r){if(typeof s=="string"){if(Array.isArray(a)){var i=ps(s);return a[i.r]||(a[i.r]=[]),a[i.r][i.c]||(a[i.r][i.c]={t:"z"})}return a[s]||(a[s]={t:"z"})}return typeof s!="number"?Z1(a,da(s)):Z1(a,da({r:s,c:r||0}))}function dU(a,s){if(typeof s=="number"){if(s>=0&&a.SheetNames.length>s)return s;throw new Error("Cannot find sheet # "+s)}else if(typeof s=="string"){var r=a.SheetNames.indexOf(s);if(r>-1)return r;throw new Error("Cannot find sheet name |"+s+"|")}else throw new Error("Cannot find sheet |"+s+"|")}function V_(){return{SheetNames:[],Sheets:{}}}function W_(a,s,r,i){var n=1;if(!r)for(;n<=65535&&a.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||a.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&a.SheetNames.indexOf(r)>=0){var t=r.match(/(^.*?)(\d+)$/);n=t&&+t[2]||0;var c=t&&t[1]||r;for(++n;n<=65535&&a.SheetNames.indexOf(r=c+n)!=-1;++n);}if(Y5(r),a.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return a.SheetNames.push(r),a.Sheets[r]=s,r}function hU(a,s,r){a.Workbook||(a.Workbook={}),a.Workbook.Sheets||(a.Workbook.Sheets=[]);var i=dU(a,s);switch(a.Workbook.Sheets[i]||(a.Workbook.Sheets[i]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}a.Workbook.Sheets[i].Hidden=r}function AU(a,s){return a.z=s,a}function g6(a,s,r){return s?(a.l={Target:s},r&&(a.l.Tooltip=r)):delete a.l,a}function pU(a,s,r){return g6(a,"#"+s,r)}function mU(a,s,r){a.c||(a.c=[]),a.c.push({t:s,a:r||"SheetJS"})}function gU(a,s,r,i){for(var n=typeof s!="string"?s:mi(s),t=typeof s=="string"?s:Ma(s),c=n.s.r;c<=n.e.r;++c)for(var u=n.s.c;u<=n.e.c;++u){var f=Z1(a,c,u);f.t="n",f.F=t,delete f.v,c==n.s.r&&u==n.s.c&&(f.f=r,i&&(f.D=!0))}return a}var _f={encode_col:As,encode_row:zs,encode_cell:da,encode_range:Ma,decode_col:b_,decode_row:y_,split_cell:II,decode_cell:ps,decode_range:Gl,format_cell:Md,sheet_add_aoa:jS,sheet_add_json:m6,sheet_add_dom:a6,aoa_to_sheet:eg,json_to_sheet:fU,table_to_sheet:i6,table_to_book:CR,sheet_to_csv:z_,sheet_to_txt:p6,sheet_to_json:ey,sheet_to_html:n6,sheet_to_formulae:cU,sheet_to_row_object_array:ey,sheet_get_cell:Z1,book_new:V_,book_append_sheet:W_,book_set_sheet_visibility:hU,cell_set_number_format:AU,cell_set_hyperlink:g6,cell_set_internal_link:pU,cell_add_comment:mU,sheet_set_array_formula:gU,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},n2={exports:{}},D2={exports:{}};/*! cpexcel.js (C) 2013-present SheetJS -- http://sheetjs.com */var vU=D2.exports,L4;function yU(){return L4||(L4=1,(function(a){var s={version:"1.15.0"};s[437]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñÑªº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[620]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖÜ¢Ł¥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[737]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[850]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñÑªº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýÝ¯´­±‗¾¶§÷¸°¨·¹³²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[852]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘę¬źČş«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[857]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞğ¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[861]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[865]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñÑªº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[866]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[874]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[895]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ČüéďäĎŤčěĚĹÍľǪÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[932]=(function(){var r=[],i={},n=[],t;for(n[0]=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������｡｢｣､･ｦｧｨｩｪｫｬｭｮｯｰｱｲｳｴｵｶｷｸｹｺｻｼｽｾｿﾀﾁﾂﾃﾄﾅﾆﾇﾈﾉﾊﾋﾌﾍﾎﾏﾐﾑﾒﾓﾔﾕﾖﾗﾘﾙﾚﾛﾜﾝﾞﾟ��������������������������������`.split(""),t=0;t!=n[0].length;++t)n[0][t].charCodeAt(0)!==65533&&(i[n[0][t]]=0+t,r[0+t]=n[0][t]);for(n[129]="����������������������������������������������������������������　、。，．・：；？！゛゜´｀¨＾￣＿ヽヾゝゞ〃仝々〆〇ー―‐／＼～∥｜…‥‘’“”（）〔〕［］｛｝〈〉《》「」『』【】＋－±×�÷＝≠＜＞≦≧∞∴♂♀°′″℃￥＄￠￡％＃＆＊＠§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓�����������∈∋⊆⊇⊂⊃∪∩��������∧∨￢⇒⇔∀∃�����������∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬�������Å‰♯♭♪†‡¶����◯���".split(""),t=0;t!=n[129].length;++t)n[129][t].charCodeAt(0)!==65533&&(i[n[129][t]]=33024+t,r[33024+t]=n[129][t]);for(n[130]="�������������������������������������������������������������������������������０１２３４５６７８９�������ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺ�������ａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚ����ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん��������������".split(""),t=0;t!=n[130].length;++t)n[130][t].charCodeAt(0)!==65533&&(i[n[130][t]]=33280+t,r[33280+t]=n[130][t]);for(n[131]="����������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミ�ムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ��������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�����������������������������������������".split(""),t=0;t!=n[131].length;++t)n[131][t].charCodeAt(0)!==65533&&(i[n[131][t]]=33536+t,r[33536+t]=n[131][t]);for(n[132]="����������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмн�опрстуфхцчшщъыьэюя�������������─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂�����������������������������������������������������������������".split(""),t=0;t!=n[132].length;++t)n[132][t].charCodeAt(0)!==65533&&(i[n[132][t]]=33792+t,r[33792+t]=n[132][t]);for(n[135]="����������������������������������������������������������������①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡��������㍻�〝〟№㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪���������������������������������������������������������������������������������������������������".split(""),t=0;t!=n[135].length;++t)n[135][t].charCodeAt(0)!==65533&&(i[n[135][t]]=34560+t,r[34560+t]=n[135][t]);for(n[136]="���������������������������������������������������������������������������������������������������������������������������������������������������������������亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭���".split(""),t=0;t!=n[136].length;++t)n[136][t].charCodeAt(0)!==65533&&(i[n[136][t]]=34816+t,r[34816+t]=n[136][t]);for(n[137]="����������������������������������������������������������������院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円�園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改���".split(""),t=0;t!=n[137].length;++t)n[137][t].charCodeAt(0)!==65533&&(i[n[137][t]]=35072+t,r[35072+t]=n[137][t]);for(n[138]="����������������������������������������������������������������魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫�橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄���".split(""),t=0;t!=n[138].length;++t)n[138][t].charCodeAt(0)!==65533&&(i[n[138][t]]=35328+t,r[35328+t]=n[138][t]);for(n[139]="����������������������������������������������������������������機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救�朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈���".split(""),t=0;t!=n[139].length;++t)n[139][t].charCodeAt(0)!==65533&&(i[n[139][t]]=35584+t,r[35584+t]=n[139][t]);for(n[140]="����������������������������������������������������������������掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨�劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向���".split(""),t=0;t!=n[140].length;++t)n[140][t].charCodeAt(0)!==65533&&(i[n[140][t]]=35840+t,r[35840+t]=n[140][t]);for(n[141]="����������������������������������������������������������������后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降�項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷���".split(""),t=0;t!=n[141].length;++t)n[141][t].charCodeAt(0)!==65533&&(i[n[141][t]]=36096+t,r[36096+t]=n[141][t]);for(n[142]="����������������������������������������������������������������察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止�死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周���".split(""),t=0;t!=n[142].length;++t)n[142][t].charCodeAt(0)!==65533&&(i[n[142][t]]=36352+t,r[36352+t]=n[142][t]);for(n[143]="����������������������������������������������������������������宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳�準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾���".split(""),t=0;t!=n[143].length;++t)n[143][t].charCodeAt(0)!==65533&&(i[n[143][t]]=36608+t,r[36608+t]=n[143][t]);for(n[144]="����������������������������������������������������������������拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨�逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線���".split(""),t=0;t!=n[144].length;++t)n[144][t].charCodeAt(0)!==65533&&(i[n[144][t]]=36864+t,r[36864+t]=n[144][t]);for(n[145]="����������������������������������������������������������������繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻�操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只���".split(""),t=0;t!=n[145].length;++t)n[145][t].charCodeAt(0)!==65533&&(i[n[145][t]]=37120+t,r[37120+t]=n[145][t]);for(n[146]="����������������������������������������������������������������叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄�逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓���".split(""),t=0;t!=n[146].length;++t)n[146][t].charCodeAt(0)!==65533&&(i[n[146][t]]=37376+t,r[37376+t]=n[146][t]);for(n[147]="����������������������������������������������������������������邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬�凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入���".split(""),t=0;t!=n[147].length;++t)n[147][t].charCodeAt(0)!==65533&&(i[n[147][t]]=37632+t,r[37632+t]=n[147][t]);for(n[148]="����������������������������������������������������������������如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅�楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美���".split(""),t=0;t!=n[148].length;++t)n[148][t].charCodeAt(0)!==65533&&(i[n[148][t]]=37888+t,r[37888+t]=n[148][t]);for(n[149]="����������������������������������������������������������������鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷�斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋���".split(""),t=0;t!=n[149].length;++t)n[149][t].charCodeAt(0)!==65533&&(i[n[149][t]]=38144+t,r[38144+t]=n[149][t]);for(n[150]="����������������������������������������������������������������法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆�摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒���".split(""),t=0;t!=n[150].length;++t)n[150][t].charCodeAt(0)!==65533&&(i[n[150][t]]=38400+t,r[38400+t]=n[150][t]);for(n[151]="����������������������������������������������������������������諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲�沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯���".split(""),t=0;t!=n[151].length;++t)n[151][t].charCodeAt(0)!==65533&&(i[n[151][t]]=38656+t,r[38656+t]=n[151][t]);for(n[152]="����������������������������������������������������������������蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕��������������������������������������������弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲���".split(""),t=0;t!=n[152].length;++t)n[152][t].charCodeAt(0)!==65533&&(i[n[152][t]]=38912+t,r[38912+t]=n[152][t]);for(n[153]="����������������������������������������������������������������僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭�凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨���".split(""),t=0;t!=n[153].length;++t)n[153][t].charCodeAt(0)!==65533&&(i[n[153][t]]=39168+t,r[39168+t]=n[153][t]);for(n[154]="����������������������������������������������������������������咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸�噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩���".split(""),t=0;t!=n[154].length;++t)n[154][t].charCodeAt(0)!==65533&&(i[n[154][t]]=39424+t,r[39424+t]=n[154][t]);for(n[155]="����������������������������������������������������������������奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀�它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏���".split(""),t=0;t!=n[155].length;++t)n[155][t].charCodeAt(0)!==65533&&(i[n[155][t]]=39680+t,r[39680+t]=n[155][t]);for(n[156]="����������������������������������������������������������������廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠�怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛���".split(""),t=0;t!=n[156].length;++t)n[156][t].charCodeAt(0)!==65533&&(i[n[156][t]]=39936+t,r[39936+t]=n[156][t]);for(n[157]="����������������������������������������������������������������戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫�捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼���".split(""),t=0;t!=n[157].length;++t)n[157][t].charCodeAt(0)!==65533&&(i[n[157][t]]=40192+t,r[40192+t]=n[157][t]);for(n[158]="����������������������������������������������������������������曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎�梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣���".split(""),t=0;t!=n[158].length;++t)n[158][t].charCodeAt(0)!==65533&&(i[n[158][t]]=40448+t,r[40448+t]=n[158][t]);for(n[159]="����������������������������������������������������������������檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯�麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌���".split(""),t=0;t!=n[159].length;++t)n[159][t].charCodeAt(0)!==65533&&(i[n[159][t]]=40704+t,r[40704+t]=n[159][t]);for(n[224]="����������������������������������������������������������������漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝�烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱���".split(""),t=0;t!=n[224].length;++t)n[224][t].charCodeAt(0)!==65533&&(i[n[224][t]]=57344+t,r[57344+t]=n[224][t]);for(n[225]="����������������������������������������������������������������瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿�痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬���".split(""),t=0;t!=n[225].length;++t)n[225][t].charCodeAt(0)!==65533&&(i[n[225][t]]=57600+t,r[57600+t]=n[225][t]);for(n[226]="����������������������������������������������������������������磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰�窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆���".split(""),t=0;t!=n[226].length;++t)n[226][t].charCodeAt(0)!==65533&&(i[n[226][t]]=57856+t,r[57856+t]=n[226][t]);for(n[227]="����������������������������������������������������������������紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷�縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋���".split(""),t=0;t!=n[227].length;++t)n[227][t].charCodeAt(0)!==65533&&(i[n[227][t]]=58112+t,r[58112+t]=n[227][t]);for(n[228]="����������������������������������������������������������������隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤�艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈���".split(""),t=0;t!=n[228].length;++t)n[228][t].charCodeAt(0)!==65533&&(i[n[228][t]]=58368+t,r[58368+t]=n[228][t]);for(n[229]="����������������������������������������������������������������蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬�蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞���".split(""),t=0;t!=n[229].length;++t)n[229][t].charCodeAt(0)!==65533&&(i[n[229][t]]=58624+t,r[58624+t]=n[229][t]);for(n[230]="����������������������������������������������������������������襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧�諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊���".split(""),t=0;t!=n[230].length;++t)n[230][t].charCodeAt(0)!==65533&&(i[n[230][t]]=58880+t,r[58880+t]=n[230][t]);for(n[231]="����������������������������������������������������������������蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜�轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮���".split(""),t=0;t!=n[231].length;++t)n[231][t].charCodeAt(0)!==65533&&(i[n[231][t]]=59136+t,r[59136+t]=n[231][t]);for(n[232]="����������������������������������������������������������������錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙�閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰���".split(""),t=0;t!=n[232].length;++t)n[232][t].charCodeAt(0)!==65533&&(i[n[232][t]]=59392+t,r[59392+t]=n[232][t]);for(n[233]="����������������������������������������������������������������顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃�騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈���".split(""),t=0;t!=n[233].length;++t)n[233][t].charCodeAt(0)!==65533&&(i[n[233][t]]=59648+t,r[59648+t]=n[233][t]);for(n[234]="����������������������������������������������������������������鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯�黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙�������������������������������������������������������������������������������������������".split(""),t=0;t!=n[234].length;++t)n[234][t].charCodeAt(0)!==65533&&(i[n[234][t]]=59904+t,r[59904+t]=n[234][t]);for(n[237]="����������������������������������������������������������������纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏�塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱���".split(""),t=0;t!=n[237].length;++t)n[237][t].charCodeAt(0)!==65533&&(i[n[237][t]]=60672+t,r[60672+t]=n[237][t]);for(n[238]="����������������������������������������������������������������犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙�蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑��ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ￢￤＇＂���".split(""),t=0;t!=n[238].length;++t)n[238][t].charCodeAt(0)!==65533&&(i[n[238][t]]=60928+t,r[60928+t]=n[238][t]);for(n[250]="����������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ￢￤＇＂㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊�兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯���".split(""),t=0;t!=n[250].length;++t)n[250][t].charCodeAt(0)!==65533&&(i[n[250][t]]=64e3+t,r[64e3+t]=n[250][t]);for(n[251]="����������������������������������������������������������������涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神�祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙���".split(""),t=0;t!=n[251].length;++t)n[251][t].charCodeAt(0)!==65533&&(i[n[251][t]]=64256+t,r[64256+t]=n[251][t]);for(n[252]="����������������������������������������������������������������髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),t=0;t!=n[252].length;++t)n[252][t].charCodeAt(0)!==65533&&(i[n[252][t]]=64512+t,r[64512+t]=n[252][t]);return{enc:i,dec:r}})(),s[936]=(function(){var r=[],i={},n=[],t;for(n[0]=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�������������������������������������������������������������������������������������������������������������������������������`.split(""),t=0;t!=n[0].length;++t)n[0][t].charCodeAt(0)!==65533&&(i[n[0][t]]=0+t,r[0+t]=n[0][t]);for(n[129]="����������������������������������������������������������������丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪乫乬乭乮乯乲乴乵乶乷乸乹乺乻乼乽乿亀亁亂亃亄亅亇亊�亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂伃伄伅伆伇伈伋伌伒伓伔伕伖伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾伿佀佁佂佄佅佇佈佉佊佋佌佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢�".split(""),t=0;t!=n[129].length;++t)n[129][t].charCodeAt(0)!==65533&&(i[n[129][t]]=33024+t,r[33024+t]=n[129][t]);for(n[130]="����������������������������������������������������������������侤侫侭侰侱侲侳侴侶侷侸侹侺侻侼侽侾俀俁係俆俇俈俉俋俌俍俒俓俔俕俖俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿倀倁倂倃倄倅倆倇倈倉倊�個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯倰倱倲倳倴倵倶倷倸倹倻倽倿偀偁偂偄偅偆偉偊偋偍偐偑偒偓偔偖偗偘偙偛偝偞偟偠偡偢偣偤偦偧偨偩偪偫偭偮偯偰偱偲偳側偵偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎傏傐傑傒傓傔傕傖傗傘備傚傛傜傝傞傟傠傡傢傤傦傪傫傭傮傯傰傱傳傴債傶傷傸傹傼�".split(""),t=0;t!=n[130].length;++t)n[130][t].charCodeAt(0)!==65533&&(i[n[130][t]]=33280+t,r[33280+t]=n[130][t]);for(n[131]="����������������������������������������������������������������傽傾傿僀僁僂僃僄僅僆僇僈僉僊僋僌働僎僐僑僒僓僔僕僗僘僙僛僜僝僞僟僠僡僢僣僤僥僨僩僪僫僯僰僱僲僴僶僷僸價僺僼僽僾僿儀儁儂儃億儅儈�儉儊儌儍儎儏儐儑儓儔儕儖儗儘儙儚儛儜儝儞償儠儢儣儤儥儦儧儨儩優儫儬儭儮儯儰儱儲儳儴儵儶儷儸儹儺儻儼儽儾兂兇兊兌兎兏児兒兓兗兘兙兛兝兞兟兠兡兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦冧冨冩冪冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒凓凔凕凖凗�".split(""),t=0;t!=n[131].length;++t)n[131][t].charCodeAt(0)!==65533&&(i[n[131][t]]=33536+t,r[33536+t]=n[131][t]);for(n[132]="����������������������������������������������������������������凘凙凚凜凞凟凢凣凥処凧凨凩凪凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄剅剆則剈剉剋剎剏剒剓剕剗剘�剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳剴創剶剷剸剹剺剻剼剾劀劃劄劅劆劇劉劊劋劌劍劎劏劑劒劔劕劖劗劘劙劚劜劤劥劦劧劮劯劰労劵劶劷劸効劺劻劼劽勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務勚勛勜勝勞勠勡勢勣勥勦勧勨勩勪勫勬勭勮勯勱勲勳勴勵勶勷勸勻勼勽匁匂匃匄匇匉匊匋匌匎�".split(""),t=0;t!=n[132].length;++t)n[132][t].charCodeAt(0)!==65533&&(i[n[132][t]]=33792+t,r[33792+t]=n[132][t]);for(n[133]="����������������������������������������������������������������匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯匰匱匲匳匴匵匶匷匸匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏�厐厑厒厓厔厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯厰厱厲厳厴厵厷厸厹厺厼厽厾叀參叄叅叆叇収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝呞呟呠呡呣呥呧呩呪呫呬呭呮呯呰呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡�".split(""),t=0;t!=n[133].length;++t)n[133][t].charCodeAt(0)!==65533&&(i[n[133][t]]=34048+t,r[34048+t]=n[133][t]);for(n[134]="����������������������������������������������������������������咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠員哢哣哤哫哬哯哰哱哴哵哶哷哸哹哻哾唀唂唃唄唅唈唊唋唌唍唎唒唓唕唖唗唘唙唚唜唝唞唟唡唥唦�唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋啌啍啎問啑啒啓啔啗啘啙啚啛啝啞啟啠啢啣啨啩啫啯啰啱啲啳啴啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠喡喢喣喤喥喦喨喩喪喫喬喭單喯喰喲喴営喸喺喼喿嗀嗁嗂嗃嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗嗘嗙嗚嗛嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸嗹嗺嗻嗼嗿嘂嘃嘄嘅�".split(""),t=0;t!=n[134].length;++t)n[134][t].charCodeAt(0)!==65533&&(i[n[134][t]]=34304+t,r[34304+t]=n[134][t]);for(n[135]="����������������������������������������������������������������嘆嘇嘊嘋嘍嘐嘑嘒嘓嘔嘕嘖嘗嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀噁噂噃噄噅噆噇噈噉噊噋噏噐噑噒噓噕噖噚噛噝噞噟噠噡�噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽噾噿嚀嚁嚂嚃嚄嚇嚈嚉嚊嚋嚌嚍嚐嚑嚒嚔嚕嚖嚗嚘嚙嚚嚛嚜嚝嚞嚟嚠嚡嚢嚤嚥嚦嚧嚨嚩嚪嚫嚬嚭嚮嚰嚱嚲嚳嚴嚵嚶嚸嚹嚺嚻嚽嚾嚿囀囁囂囃囄囅囆囇囈囉囋囌囍囎囏囐囑囒囓囕囖囘囙囜団囥囦囧囨囩囪囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國圌圍圎圏圐圑�".split(""),t=0;t!=n[135].length;++t)n[135][t].charCodeAt(0)!==65533&&(i[n[135][t]]=34560+t,r[34560+t]=n[135][t]);for(n[136]="����������������������������������������������������������������園圓圔圕圖圗團圙圚圛圝圞圠圡圢圤圥圦圧圫圱圲圴圵圶圷圸圼圽圿坁坃坄坅坆坈坉坋坒坓坔坕坖坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀�垁垇垈垉垊垍垎垏垐垑垔垕垖垗垘垙垚垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹垺垻垼垽垾垿埀埁埄埅埆埇埈埉埊埌埍埐埑埓埖埗埛埜埞埡埢埣埥埦埧埨埩埪埫埬埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥堦堧堨堩堫堬堭堮堯報堲堳場堶堷堸堹堺堻堼堽�".split(""),t=0;t!=n[136].length;++t)n[136][t].charCodeAt(0)!==65533&&(i[n[136][t]]=34816+t,r[34816+t]=n[136][t]);for(n[137]="����������������������������������������������������������������堾堿塀塁塂塃塅塆塇塈塉塊塋塎塏塐塒塓塕塖塗塙塚塛塜塝塟塠塡塢塣塤塦塧塨塩塪塭塮塯塰塱塲塳塴塵塶塷塸塹塺塻塼塽塿墂墄墆墇墈墊墋墌�墍墎墏墐墑墔墕墖増墘墛墜墝墠墡墢墣墤墥墦墧墪墫墬墭墮墯墰墱墲墳墴墵墶墷墸墹墺墻墽墾墿壀壂壃壄壆壇壈壉壊壋壌壍壎壏壐壒壓壔壖壗壘壙壚壛壜壝壞壟壠壡壢壣壥壦壧壨壩壪壭壯壱売壴壵壷壸壺壻壼壽壾壿夀夁夃夅夆夈変夊夋夌夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻�".split(""),t=0;t!=n[137].length;++t)n[137][t].charCodeAt(0)!==65533&&(i[n[137][t]]=35072+t,r[35072+t]=n[137][t]);for(n[138]="����������������������������������������������������������������夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛奜奝奞奟奡奣奤奦奧奨奩奪奫奬奭奮奯奰奱奲奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦�妧妬妭妰妱妳妴妵妶妷妸妺妼妽妿姀姁姂姃姄姅姇姈姉姌姍姎姏姕姖姙姛姞姟姠姡姢姤姦姧姩姪姫姭姮姯姰姱姲姳姴姵姶姷姸姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪娫娬娭娮娯娰娳娵娷娸娹娺娻娽娾娿婁婂婃婄婅婇婈婋婌婍婎婏婐婑婒婓婔婖婗婘婙婛婜婝婞婟婠�".split(""),t=0;t!=n[138].length;++t)n[138][t].charCodeAt(0)!==65533&&(i[n[138][t]]=35328+t,r[35328+t]=n[138][t]);for(n[139]="����������������������������������������������������������������婡婣婤婥婦婨婩婫婬婭婮婯婰婱婲婳婸婹婻婼婽婾媀媁媂媃媄媅媆媇媈媉媊媋媌媍媎媏媐媑媓媔媕媖媗媘媙媜媝媞媟媠媡媢媣媤媥媦媧媨媩媫媬�媭媮媯媰媱媴媶媷媹媺媻媼媽媿嫀嫃嫄嫅嫆嫇嫈嫊嫋嫍嫎嫏嫐嫑嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬嫭嫮嫯嫰嫲嫳嫴嫵嫶嫷嫸嫹嫺嫻嫼嫽嫾嫿嬀嬁嬂嬃嬄嬅嬆嬇嬈嬊嬋嬌嬍嬎嬏嬐嬑嬒嬓嬔嬕嬘嬙嬚嬛嬜嬝嬞嬟嬠嬡嬢嬣嬤嬥嬦嬧嬨嬩嬪嬫嬬嬭嬮嬯嬰嬱嬳嬵嬶嬸嬹嬺嬻嬼嬽嬾嬿孁孂孃孄孅孆孇�".split(""),t=0;t!=n[139].length;++t)n[139][t].charCodeAt(0)!==65533&&(i[n[139][t]]=35584+t,r[35584+t]=n[139][t]);for(n[140]="����������������������������������������������������������������孈孉孊孋孌孍孎孏孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏�寑寔寕寖寗寘寙寚寛寜寠寢寣實寧審寪寫寬寭寯寱寲寳寴寵寶寷寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧屨屩屪屫屬屭屰屲屳屴屵屶屷屸屻屼屽屾岀岃岄岅岆岇岉岊岋岎岏岒岓岕岝岞岟岠岡岤岥岦岧岨�".split(""),t=0;t!=n[140].length;++t)n[140][t].charCodeAt(0)!==65533&&(i[n[140][t]]=35840+t,r[35840+t]=n[140][t]);for(n[141]="����������������������������������������������������������������岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅峆峇峈峉峊峌峍峎峏峐峑峓峔峕峖峗峘峚峛峜峝峞峟峠峢峣峧峩峫峬峮峯峱峲峳峴峵島峷峸峹峺峼峽峾峿崀�崁崄崅崈崉崊崋崌崍崏崐崑崒崓崕崗崘崙崚崜崝崟崠崡崢崣崥崨崪崫崬崯崰崱崲崳崵崶崷崸崹崺崻崼崿嵀嵁嵂嵃嵄嵅嵆嵈嵉嵍嵎嵏嵐嵑嵒嵓嵔嵕嵖嵗嵙嵚嵜嵞嵟嵠嵡嵢嵣嵤嵥嵦嵧嵨嵪嵭嵮嵰嵱嵲嵳嵵嵶嵷嵸嵹嵺嵻嵼嵽嵾嵿嶀嶁嶃嶄嶅嶆嶇嶈嶉嶊嶋嶌嶍嶎嶏嶐嶑嶒嶓嶔嶕嶖嶗嶘嶚嶛嶜嶞嶟嶠�".split(""),t=0;t!=n[141].length;++t)n[141][t].charCodeAt(0)!==65533&&(i[n[141][t]]=36096+t,r[36096+t]=n[141][t]);for(n[142]="����������������������������������������������������������������嶡嶢嶣嶤嶥嶦嶧嶨嶩嶪嶫嶬嶭嶮嶯嶰嶱嶲嶳嶴嶵嶶嶸嶹嶺嶻嶼嶽嶾嶿巀巁巂巃巄巆巇巈巉巊巋巌巎巏巐巑巒巓巔巕巖巗巘巙巚巜巟巠巣巤巪巬巭�巰巵巶巸巹巺巻巼巿帀帄帇帉帊帋帍帎帒帓帗帞帟帠帡帢帣帤帥帨帩帪師帬帯帰帲帳帴帵帶帹帺帾帿幀幁幃幆幇幈幉幊幋幍幎幏幐幑幒幓幖幗幘幙幚幜幝幟幠幣幤幥幦幧幨幩幪幫幬幭幮幯幰幱幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨庩庪庫庬庮庯庰庱庲庴庺庻庼庽庿廀廁廂廃廄廅�".split(""),t=0;t!=n[142].length;++t)n[142][t].charCodeAt(0)!==65533&&(i[n[142][t]]=36352+t,r[36352+t]=n[142][t]);for(n[143]="����������������������������������������������������������������廆廇廈廋廌廍廎廏廐廔廕廗廘廙廚廜廝廞廟廠廡廢廣廤廥廦廧廩廫廬廭廮廯廰廱廲廳廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤�弨弫弬弮弰弲弳弴張弶強弸弻弽弾弿彁彂彃彄彅彆彇彈彉彊彋彌彍彎彏彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢徣徤徥徦徧復徫徬徯徰徱徲徳徴徶徸徹徺徻徾徿忀忁忂忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇�".split(""),t=0;t!=n[143].length;++t)n[143][t].charCodeAt(0)!==65533&&(i[n[143][t]]=36608+t,r[36608+t]=n[143][t]);for(n[144]="����������������������������������������������������������������怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰怱怲怳怴怶怷怸怹怺怽怾恀恄恅恆恇恈恉恊恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀�悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽悾悿惀惁惂惃惄惇惈惉惌惍惎惏惐惒惓惔惖惗惙惛惞惡惢惣惤惥惪惱惲惵惷惸惻惼惽惾惿愂愃愄愅愇愊愋愌愐愑愒愓愔愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬愭愮愯愰愱愲愳愴愵愶愷愸愹愺愻愼愽愾慀慁慂慃慄慅慆�".split(""),t=0;t!=n[144].length;++t)n[144][t].charCodeAt(0)!==65533&&(i[n[144][t]]=36864+t,r[36864+t]=n[144][t]);for(n[145]="����������������������������������������������������������������慇慉態慍慏慐慒慓慔慖慗慘慙慚慛慜慞慟慠慡慣慤慥慦慩慪慫慬慭慮慯慱慲慳慴慶慸慹慺慻慼慽慾慿憀憁憂憃憄憅憆憇憈憉憊憌憍憏憐憑憒憓憕�憖憗憘憙憚憛憜憞憟憠憡憢憣憤憥憦憪憫憭憮憯憰憱憲憳憴憵憶憸憹憺憻憼憽憿懀懁懃懄懅懆懇應懌懍懎懏懐懓懕懖懗懘懙懚懛懜懝懞懟懠懡懢懣懤懥懧懨懩懪懫懬懭懮懯懰懱懲懳懴懶懷懸懹懺懻懼懽懾戀戁戂戃戄戅戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸戹戺戻戼扂扄扅扆扊�".split(""),t=0;t!=n[145].length;++t)n[145][t].charCodeAt(0)!==65533&&(i[n[145][t]]=37120+t,r[37120+t]=n[145][t]);for(n[146]="����������������������������������������������������������������扏扐払扖扗扙扚扜扝扞扟扠扡扢扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋抌抍抎抏抐抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁�拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳挴挵挶挷挸挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖捗捘捙捚捛捜捝捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙掚掛掜掝掞掟採掤掦掫掯掱掲掵掶掹掻掽掿揀�".split(""),t=0;t!=n[146].length;++t)n[146][t].charCodeAt(0)!==65533&&(i[n[146][t]]=37376+t,r[37376+t]=n[146][t]);for(n[147]="����������������������������������������������������������������揁揂揃揅揇揈揊揋揌揑揓揔揕揗揘揙揚換揜揝揟揢揤揥揦揧揨揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆搇搈搉搊損搎搑搒搕搖搗搘搙搚搝搟搢搣搤�搥搧搨搩搫搮搯搰搱搲搳搵搶搷搸搹搻搼搾摀摂摃摉摋摌摍摎摏摐摑摓摕摖摗摙摚摛摜摝摟摠摡摢摣摤摥摦摨摪摫摬摮摯摰摱摲摳摴摵摶摷摻摼摽摾摿撀撁撃撆撈撉撊撋撌撍撎撏撐撓撔撗撘撚撛撜撝撟撠撡撢撣撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆擇擈擉擊擋擌擏擑擓擔擕擖擙據�".split(""),t=0;t!=n[147].length;++t)n[147][t].charCodeAt(0)!==65533&&(i[n[147][t]]=37632+t,r[37632+t]=n[147][t]);for(n[148]="����������������������������������������������������������������擛擜擝擟擠擡擣擥擧擨擩擪擫擬擭擮擯擰擱擲擳擴擵擶擷擸擹擺擻擼擽擾擿攁攂攃攄攅攆攇攈攊攋攌攍攎攏攐攑攓攔攕攖攗攙攚攛攜攝攞攟攠攡�攢攣攤攦攧攨攩攪攬攭攰攱攲攳攷攺攼攽敀敁敂敃敄敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數敹敺敻敼敽敾敿斀斁斂斃斄斅斆斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱斲斳斴斵斶斷斸斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘旙旚旛旜旝旞旟旡旣旤旪旫�".split(""),t=0;t!=n[148].length;++t)n[148][t].charCodeAt(0)!==65533&&(i[n[148][t]]=37888+t,r[37888+t]=n[148][t]);for(n[149]="����������������������������������������������������������������旲旳旴旵旸旹旻旼旽旾旿昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷昸昹昺昻昽昿晀時晄晅晆晇晈晉晊晍晎晐晑晘�晙晛晜晝晞晠晢晣晥晧晩晪晫晬晭晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘暙暚暛暜暞暟暠暡暢暣暤暥暦暩暪暫暬暭暯暰暱暲暳暵暶暷暸暺暻暼暽暿曀曁曂曃曄曅曆曇曈曉曊曋曌曍曎曏曐曑曒曓曔曕曖曗曘曚曞曟曠曡曢曣曤曥曧曨曪曫曬曭曮曯曱曵曶書曺曻曽朁朂會�".split(""),t=0;t!=n[149].length;++t)n[149][t].charCodeAt(0)!==65533&&(i[n[149][t]]=38144+t,r[38144+t]=n[149][t]);for(n[150]="����������������������������������������������������������������朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠朡朢朣朤朥朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗杘杙杚杛杝杢杣杤杦杧杫杬杮東杴杶�杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹枺枻枼枽枾枿柀柂柅柆柇柈柉柊柋柌柍柎柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵柶柷柸柹柺査柼柾栁栂栃栄栆栍栐栒栔栕栘栙栚栛栜栞栟栠栢栣栤栥栦栧栨栫栬栭栮栯栰栱栴栵栶栺栻栿桇桋桍桏桒桖桗桘桙桚桛�".split(""),t=0;t!=n[150].length;++t)n[150][t].charCodeAt(0)!==65533&&(i[n[150][t]]=38400+t,r[38400+t]=n[150][t]);for(n[151]="����������������������������������������������������������������桜桝桞桟桪桬桭桮桯桰桱桲桳桵桸桹桺桻桼桽桾桿梀梂梄梇梈梉梊梋梌梍梎梐梑梒梔梕梖梘梙梚梛梜條梞梟梠梡梣梤梥梩梪梫梬梮梱梲梴梶梷梸�梹梺梻梼梽梾梿棁棃棄棅棆棇棈棊棌棎棏棐棑棓棔棖棗棙棛棜棝棞棟棡棢棤棥棦棧棨棩棪棫棬棭棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆椇椈椉椊椌椏椑椓椔椕椖椗椘椙椚椛検椝椞椡椢椣椥椦椧椨椩椪椫椬椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃楄楅楆楇楈楉楊楋楌楍楎楏楐楑楒楓楕楖楘楙楛楜楟�".split(""),t=0;t!=n[151].length;++t)n[151][t].charCodeAt(0)!==65533&&(i[n[151][t]]=38656+t,r[38656+t]=n[151][t]);for(n[152]="����������������������������������������������������������������楡楢楤楥楧楨楩楪楬業楯楰楲楳楴極楶楺楻楽楾楿榁榃榅榊榋榌榎榏榐榑榒榓榖榗榙榚榝榞榟榠榡榢榣榤榥榦榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽�榾榿槀槂槃槄槅槆槇槈槉構槍槏槑槒槓槕槖槗様槙槚槜槝槞槡槢槣槤槥槦槧槨槩槪槫槬槮槯槰槱槳槴槵槶槷槸槹槺槻槼槾樀樁樂樃樄樅樆樇樈樉樋樌樍樎樏樐樑樒樓樔樕樖標樚樛樜樝樞樠樢樣樤樥樦樧権樫樬樭樮樰樲樳樴樶樷樸樹樺樻樼樿橀橁橂橃橅橆橈橉橊橋橌橍橎橏橑橒橓橔橕橖橗橚�".split(""),t=0;t!=n[152].length;++t)n[152][t].charCodeAt(0)!==65533&&(i[n[152][t]]=38912+t,r[38912+t]=n[152][t]);for(n[153]="����������������������������������������������������������������橜橝橞機橠橢橣橤橦橧橨橩橪橫橬橭橮橯橰橲橳橴橵橶橷橸橺橻橽橾橿檁檂檃檅檆檇檈檉檊檋檌檍檏檒檓檔檕檖檘檙檚檛檜檝檞檟檡檢檣檤檥檦�檧檨檪檭檮檯檰檱檲檳檴檵檶檷檸檹檺檻檼檽檾檿櫀櫁櫂櫃櫄櫅櫆櫇櫈櫉櫊櫋櫌櫍櫎櫏櫐櫑櫒櫓櫔櫕櫖櫗櫘櫙櫚櫛櫜櫝櫞櫟櫠櫡櫢櫣櫤櫥櫦櫧櫨櫩櫪櫫櫬櫭櫮櫯櫰櫱櫲櫳櫴櫵櫶櫷櫸櫹櫺櫻櫼櫽櫾櫿欀欁欂欃欄欅欆欇欈欉權欋欌欍欎欏欐欑欒欓欔欕欖欗欘欙欚欛欜欝欞欟欥欦欨欩欪欫欬欭欮�".split(""),t=0;t!=n[153].length;++t)n[153][t].charCodeAt(0)!==65533&&(i[n[153][t]]=39168+t,r[39168+t]=n[153][t]);for(n[154]="����������������������������������������������������������������欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍歎歏歐歑歒歓歔歕歖歗歘歚歛歜歝歞歟歠歡歨歩歫歬歭歮歯歰歱歲歳歴歵歶歷歸歺歽歾歿殀殅殈�殌殎殏殐殑殔殕殗殘殙殜殝殞殟殠殢殣殤殥殦殧殨殩殫殬殭殮殯殰殱殲殶殸殹殺殻殼殽殾毀毃毄毆毇毈毉毊毌毎毐毑毘毚毜毝毞毟毠毢毣毤毥毦毧毨毩毬毭毮毰毱毲毴毶毷毸毺毻毼毾毿氀氁氂氃氄氈氉氊氋氌氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋汌汍汎汏汑汒汓汖汘�".split(""),t=0;t!=n[154].length;++t)n[154][t].charCodeAt(0)!==65533&&(i[n[154][t]]=39424+t,r[39424+t]=n[154][t]);for(n[155]="����������������������������������������������������������������汙汚汢汣汥汦汧汫汬汭汮汯汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘�泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟洠洡洢洣洤洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽浾浿涀涁涃涄涆涇涊涋涍涏涐涒涖涗涘涙涚涜涢涥涬涭涰涱涳涴涶涷涹涺涻涼涽涾淁淂淃淈淉淊�".split(""),t=0;t!=n[155].length;++t)n[155][t].charCodeAt(0)!==65533&&(i[n[155][t]]=39680+t,r[39680+t]=n[155][t]);for(n[156]="����������������������������������������������������������������淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽淾淿渀渁渂渃渄渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵�渶渷渹渻渼渽渾渿湀湁湂湅湆湇湈湉湊湋湌湏湐湑湒湕湗湙湚湜湝湞湠湡湢湣湤湥湦湧湨湩湪湬湭湯湰湱湲湳湴湵湶湷湸湹湺湻湼湽満溁溂溄溇溈溊溋溌溍溎溑溒溓溔溕準溗溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪滫滬滭滮滯�".split(""),t=0;t!=n[156].length;++t)n[156][t].charCodeAt(0)!==65533&&(i[n[156][t]]=39936+t,r[39936+t]=n[156][t]);for(n[157]="����������������������������������������������������������������滰滱滲滳滵滶滷滸滺滻滼滽滾滿漀漁漃漄漅漇漈漊漋漌漍漎漐漑漒漖漗漘漙漚漛漜漝漞漟漡漢漣漥漦漧漨漬漮漰漲漴漵漷漸漹漺漻漼漽漿潀潁潂�潃潄潅潈潉潊潌潎潏潐潑潒潓潔潕潖潗潙潚潛潝潟潠潡潣潤潥潧潨潩潪潫潬潯潰潱潳潵潶潷潹潻潽潾潿澀澁澂澃澅澆澇澊澋澏澐澑澒澓澔澕澖澗澘澙澚澛澝澞澟澠澢澣澤澥澦澨澩澪澫澬澭澮澯澰澱澲澴澵澷澸澺澻澼澽澾澿濁濃濄濅濆濇濈濊濋濌濍濎濏濐濓濔濕濖濗濘濙濚濛濜濝濟濢濣濤濥�".split(""),t=0;t!=n[157].length;++t)n[157][t].charCodeAt(0)!==65533&&(i[n[157][t]]=40192+t,r[40192+t]=n[157][t]);for(n[158]="����������������������������������������������������������������濦濧濨濩濪濫濬濭濰濱濲濳濴濵濶濷濸濹濺濻濼濽濾濿瀀瀁瀂瀃瀄瀅瀆瀇瀈瀉瀊瀋瀌瀍瀎瀏瀐瀒瀓瀔瀕瀖瀗瀘瀙瀜瀝瀞瀟瀠瀡瀢瀤瀥瀦瀧瀨瀩瀪�瀫瀬瀭瀮瀯瀰瀱瀲瀳瀴瀶瀷瀸瀺瀻瀼瀽瀾瀿灀灁灂灃灄灅灆灇灈灉灊灋灍灎灐灑灒灓灔灕灖灗灘灙灚灛灜灝灟灠灡灢灣灤灥灦灧灨灩灪灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞炟炠炡炢炣炤炥炦炧炨炩炪炰炲炴炵炶為炾炿烄烅烆烇烉烋烌烍烎烏烐烑烒烓烔烕烖烗烚�".split(""),t=0;t!=n[158].length;++t)n[158][t].charCodeAt(0)!==65533&&(i[n[158][t]]=40448+t,r[40448+t]=n[158][t]);for(n[159]="����������������������������������������������������������������烜烝烞烠烡烢烣烥烪烮烰烱烲烳烴烵烶烸烺烻烼烾烿焀焁焂焃焄焅焆焇焈焋焌焍焎焏焑焒焔焗焛焜焝焞焟焠無焢焣焤焥焧焨焩焪焫焬焭焮焲焳焴�焵焷焸焹焺焻焼焽焾焿煀煁煂煃煄煆煇煈煉煋煍煏煐煑煒煓煔煕煖煗煘煙煚煛煝煟煠煡煢煣煥煩煪煫煬煭煯煰煱煴煵煶煷煹煻煼煾煿熀熁熂熃熅熆熇熈熉熋熌熍熎熐熑熒熓熕熖熗熚熛熜熝熞熡熢熣熤熥熦熧熩熪熫熭熮熯熰熱熲熴熶熷熸熺熻熼熽熾熿燀燁燂燄燅燆燇燈燉燊燋燌燍燏燐燑燒燓�".split(""),t=0;t!=n[159].length;++t)n[159][t].charCodeAt(0)!==65533&&(i[n[159][t]]=40704+t,r[40704+t]=n[159][t]);for(n[160]="����������������������������������������������������������������燖燗燘燙燚燛燜燝燞營燡燢燣燤燦燨燩燪燫燬燭燯燰燱燲燳燴燵燶燷燸燺燻燼燽燾燿爀爁爂爃爄爅爇爈爉爊爋爌爍爎爏爐爑爒爓爔爕爖爗爘爙爚�爛爜爞爟爠爡爢爣爤爥爦爧爩爫爭爮爯爲爳爴爺爼爾牀牁牂牃牄牅牆牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅犆犇犈犉犌犎犐犑犓犔犕犖犗犘犙犚犛犜犝犞犠犡犢犣犤犥犦犧犨犩犪犫犮犱犲犳犵犺犻犼犽犾犿狀狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛�".split(""),t=0;t!=n[160].length;++t)n[160][t].charCodeAt(0)!==65533&&(i[n[160][t]]=40960+t,r[40960+t]=n[160][t]);for(n[161]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������　、。·ˉˇ¨〃々—～‖…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃＄¤￠￡‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),t=0;t!=n[161].length;++t)n[161][t].charCodeAt(0)!==65533&&(i[n[161][t]]=41216+t,r[41216+t]=n[161][t]);for(n[162]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),t=0;t!=n[162].length;++t)n[162][t].charCodeAt(0)!==65533&&(i[n[162][t]]=41472+t,r[41472+t]=n[162][t]);for(n[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������！＂＃￥％＆＇（）＊＋，－．／０１２３４５６７８９：；＜＝＞？＠ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺ［＼］＾＿｀ａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚ｛｜｝￣�".split(""),t=0;t!=n[163].length;++t)n[163][t].charCodeAt(0)!==65533&&(i[n[163][t]]=41728+t,r[41728+t]=n[163][t]);for(n[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),t=0;t!=n[164].length;++t)n[164][t].charCodeAt(0)!==65533&&(i[n[164][t]]=41984+t,r[41984+t]=n[164][t]);for(n[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),t=0;t!=n[165].length;++t)n[165][t].charCodeAt(0)!==65533&&(i[n[165][t]]=42240+t,r[42240+t]=n[165][t]);for(n[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������︵︶︹︺︿﹀︽︾﹁﹂﹃﹄��︻︼︷︸︱�︳︴����������".split(""),t=0;t!=n[166].length;++t)n[166][t].charCodeAt(0)!==65533&&(i[n[166][t]]=42496+t,r[42496+t]=n[166][t]);for(n[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),t=0;t!=n[167].length;++t)n[167][t].charCodeAt(0)!==65533&&(i[n[167][t]]=42752+t,r[42752+t]=n[167][t]);for(n[168]="����������������������������������������������������������������ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇�█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒〝〞�����������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ�ńň�ɡ����ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),t=0;t!=n[168].length;++t)n[168][t].charCodeAt(0)!==65533&&(i[n[168][t]]=43008+t,r[43008+t]=n[168][t]);for(n[169]="����������������������������������������������������������������〡〢〣〤〥〦〧〨〩㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰￢￤�℡㈱�‐���ー゛゜ヽヾ〆ゝゞ﹉﹊﹋﹌﹍﹎﹏﹐﹑﹒﹔﹕﹖﹗﹙﹚﹛﹜﹝﹞﹟﹠﹡�﹢﹣﹤﹥﹦﹨﹩﹪﹫�������������〇�������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),t=0;t!=n[169].length;++t)n[169][t].charCodeAt(0)!==65533&&(i[n[169][t]]=43264+t,r[43264+t]=n[169][t]);for(n[170]="����������������������������������������������������������������狜狝狟狢狣狤狥狦狧狪狫狵狶狹狽狾狿猀猂猄猅猆猇猈猉猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀獁獂獃獄獅獆獇獈�獉獊獋獌獎獏獑獓獔獕獖獘獙獚獛獜獝獞獟獡獢獣獤獥獦獧獨獩獪獫獮獰獱�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[170].length;++t)n[170][t].charCodeAt(0)!==65533&&(i[n[170][t]]=43520+t,r[43520+t]=n[170][t]);for(n[171]="����������������������������������������������������������������獲獳獴獵獶獷獸獹獺獻獼獽獿玀玁玂玃玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣玤玥玦玧玨玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃珄珅珆珇�珋珌珎珒珓珔珕珖珗珘珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳珴珵珶珷�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[171].length;++t)n[171][t].charCodeAt(0)!==65533&&(i[n[171][t]]=43776+t,r[43776+t]=n[171][t]);for(n[172]="����������������������������������������������������������������珸珹珺珻珼珽現珿琀琁琂琄琇琈琋琌琍琎琑琒琓琔琕琖琗琘琙琜琝琞琟琠琡琣琤琧琩琫琭琯琱琲琷琸琹琺琻琽琾琿瑀瑂瑃瑄瑅瑆瑇瑈瑉瑊瑋瑌瑍�瑎瑏瑐瑑瑒瑓瑔瑖瑘瑝瑠瑡瑢瑣瑤瑥瑦瑧瑨瑩瑪瑫瑬瑮瑯瑱瑲瑳瑴瑵瑸瑹瑺�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[172].length;++t)n[172][t].charCodeAt(0)!==65533&&(i[n[172][t]]=44032+t,r[44032+t]=n[172][t]);for(n[173]="����������������������������������������������������������������瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑璒璓璔璕璖璗璘璙璚璛璝璟璠璡璢璣璤璥璦璪璫璬璭璮璯環璱璲璳璴璵璶璷璸璹璻璼璽璾璿瓀瓁瓂瓃瓄瓅瓆瓇�瓈瓉瓊瓋瓌瓍瓎瓏瓐瓑瓓瓔瓕瓖瓗瓘瓙瓚瓛瓝瓟瓡瓥瓧瓨瓩瓪瓫瓬瓭瓰瓱瓲�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[173].length;++t)n[173][t].charCodeAt(0)!==65533&&(i[n[173][t]]=44288+t,r[44288+t]=n[173][t]);for(n[174]="����������������������������������������������������������������瓳瓵瓸瓹瓺瓻瓼瓽瓾甀甁甂甃甅甆甇甈甉甊甋甌甎甐甒甔甕甖甗甛甝甞甠甡產産甤甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘�畝畞畟畠畡畢畣畤畧畨畩畫畬畭畮畯異畱畳畵當畷畺畻畼畽畾疀疁疂疄疅疇�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[174].length;++t)n[174][t].charCodeAt(0)!==65533&&(i[n[174][t]]=44544+t,r[44544+t]=n[174][t]);for(n[175]="����������������������������������������������������������������疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦疧疨疩疪疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇�瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[175].length;++t)n[175][t].charCodeAt(0)!==65533&&(i[n[175][t]]=44800+t,r[44800+t]=n[175][t]);for(n[176]="����������������������������������������������������������������癅癆癇癈癉癊癋癎癏癐癑癒癓癕癗癘癙癚癛癝癟癠癡癢癤癥癦癧癨癩癪癬癭癮癰癱癲癳癴癵癶癷癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛�皜皝皞皟皠皡皢皣皥皦皧皨皩皪皫皬皭皯皰皳皵皶皷皸皹皺皻皼皽皾盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),t=0;t!=n[176].length;++t)n[176][t].charCodeAt(0)!==65533&&(i[n[176][t]]=45056+t,r[45056+t]=n[176][t]);for(n[177]="����������������������������������������������������������������盄盇盉盋盌盓盕盙盚盜盝盞盠盡盢監盤盦盧盨盩盪盫盬盭盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎眏眐眑眒眓眔眕眖眗眘眛眜眝眞眡眣眤眥眧眪眫�眬眮眰眱眲眳眴眹眻眽眾眿睂睄睅睆睈睉睊睋睌睍睎睏睒睓睔睕睖睗睘睙睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),t=0;t!=n[177].length;++t)n[177][t].charCodeAt(0)!==65533&&(i[n[177][t]]=45312+t,r[45312+t]=n[177][t]);for(n[178]="����������������������������������������������������������������睝睞睟睠睤睧睩睪睭睮睯睰睱睲睳睴睵睶睷睸睺睻睼瞁瞂瞃瞆瞇瞈瞉瞊瞋瞏瞐瞓瞔瞕瞖瞗瞘瞙瞚瞛瞜瞝瞞瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶瞷瞸瞹瞺�瞼瞾矀矁矂矃矄矅矆矇矈矉矊矋矌矎矏矐矑矒矓矔矕矖矘矙矚矝矞矟矠矡矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),t=0;t!=n[178].length;++t)n[178][t].charCodeAt(0)!==65533&&(i[n[178][t]]=45568+t,r[45568+t]=n[178][t]);for(n[179]="����������������������������������������������������������������矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃砄砅砆砇砈砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚�硛硜硞硟硠硡硢硣硤硥硦硧硨硩硯硰硱硲硳硴硵硶硸硹硺硻硽硾硿碀碁碂碃场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),t=0;t!=n[179].length;++t)n[179][t].charCodeAt(0)!==65533&&(i[n[179][t]]=45824+t,r[45824+t]=n[179][t]);for(n[180]="����������������������������������������������������������������碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨碩碪碫碬碭碮碯碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚磛磜磝磞磟磠磡磢磣�磤磥磦磧磩磪磫磭磮磯磰磱磳磵磶磸磹磻磼磽磾磿礀礂礃礄礆礇礈礉礊礋礌础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),t=0;t!=n[180].length;++t)n[180][t].charCodeAt(0)!==65533&&(i[n[180][t]]=46080+t,r[46080+t]=n[180][t]);for(n[181]="����������������������������������������������������������������礍礎礏礐礑礒礔礕礖礗礘礙礚礛礜礝礟礠礡礢礣礥礦礧礨礩礪礫礬礭礮礯礰礱礲礳礵礶礷礸礹礽礿祂祃祄祅祇祊祋祌祍祎祏祐祑祒祔祕祘祙祡祣�祤祦祩祪祫祬祮祰祱祲祳祴祵祶祹祻祼祽祾祿禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),t=0;t!=n[181].length;++t)n[181][t].charCodeAt(0)!==65533&&(i[n[181][t]]=46336+t,r[46336+t]=n[181][t]);for(n[182]="����������������������������������������������������������������禓禔禕禖禗禘禙禛禜禝禞禟禠禡禢禣禤禥禦禨禩禪禫禬禭禮禯禰禱禲禴禵禶禷禸禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙秚秛秜秝秞秠秡秢秥秨秪�秬秮秱秲秳秴秵秶秷秹秺秼秾秿稁稄稅稇稈稉稊稌稏稐稑稒稓稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),t=0;t!=n[182].length;++t)n[182][t].charCodeAt(0)!==65533&&(i[n[182][t]]=46592+t,r[46592+t]=n[182][t]);for(n[183]="����������������������������������������������������������������稝稟稡稢稤稥稦稧稨稩稪稫稬稭種稯稰稱稲稴稵稶稸稺稾穀穁穂穃穄穅穇穈穉穊穋穌積穎穏穐穒穓穔穕穖穘穙穚穛穜穝穞穟穠穡穢穣穤穥穦穧穨�穩穪穫穬穭穮穯穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),t=0;t!=n[183].length;++t)n[183][t].charCodeAt(0)!==65533&&(i[n[183][t]]=46848+t,r[46848+t]=n[183][t]);for(n[184]="����������������������������������������������������������������窣窤窧窩窪窫窮窯窰窱窲窴窵窶窷窸窹窺窻窼窽窾竀竁竂竃竄竅竆竇竈竉竊竌竍竎竏竐竑竒竓竔竕竗竘竚竛竜竝竡竢竤竧竨竩竪竫竬竮竰竱竲竳�竴竵競竷竸竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),t=0;t!=n[184].length;++t)n[184][t].charCodeAt(0)!==65533&&(i[n[184][t]]=47104+t,r[47104+t]=n[184][t]);for(n[185]="����������������������������������������������������������������笯笰笲笴笵笶笷笹笻笽笿筀筁筂筃筄筆筈筊筍筎筓筕筗筙筜筞筟筡筣筤筥筦筧筨筩筪筫筬筭筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆箇箈箉箊箋箌箎箏�箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹箺箻箼箽箾箿節篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),t=0;t!=n[185].length;++t)n[185][t].charCodeAt(0)!==65533&&(i[n[185][t]]=47360+t,r[47360+t]=n[185][t]);for(n[186]="����������������������������������������������������������������篅篈築篊篋篍篎篏篐篒篔篕篖篗篘篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲篳篴篵篶篸篹篺篻篽篿簀簁簂簃簄簅簆簈簉簊簍簎簐簑簒簓簔簕簗簘簙�簚簛簜簝簞簠簡簢簣簤簥簨簩簫簬簭簮簯簰簱簲簳簴簵簶簷簹簺簻簼簽簾籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),t=0;t!=n[186].length;++t)n[186][t].charCodeAt(0)!==65533&&(i[n[186][t]]=47616+t,r[47616+t]=n[186][t]);for(n[187]="����������������������������������������������������������������籃籄籅籆籇籈籉籊籋籌籎籏籐籑籒籓籔籕籖籗籘籙籚籛籜籝籞籟籠籡籢籣籤籥籦籧籨籩籪籫籬籭籮籯籰籱籲籵籶籷籸籹籺籾籿粀粁粂粃粄粅粆粇�粈粊粋粌粍粎粏粐粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴粵粶粷粸粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),t=0;t!=n[187].length;++t)n[187][t].charCodeAt(0)!==65533&&(i[n[187][t]]=47872+t,r[47872+t]=n[187][t]);for(n[188]="����������������������������������������������������������������粿糀糂糃糄糆糉糋糎糏糐糑糒糓糔糘糚糛糝糞糡糢糣糤糥糦糧糩糪糫糬糭糮糰糱糲糳糴糵糶糷糹糺糼糽糾糿紀紁紂紃約紅紆紇紈紉紋紌納紎紏紐�紑紒紓純紕紖紗紘紙級紛紜紝紞紟紡紣紤紥紦紨紩紪紬紭紮細紱紲紳紴紵紶肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),t=0;t!=n[188].length;++t)n[188][t].charCodeAt(0)!==65533&&(i[n[188][t]]=48128+t,r[48128+t]=n[188][t]);for(n[189]="����������������������������������������������������������������紷紸紹紺紻紼紽紾紿絀絁終絃組絅絆絇絈絉絊絋経絍絎絏結絑絒絓絔絕絖絗絘絙絚絛絜絝絞絟絠絡絢絣絤絥給絧絨絩絪絫絬絭絯絰統絲絳絴絵絶�絸絹絺絻絼絽絾絿綀綁綂綃綄綅綆綇綈綉綊綋綌綍綎綏綐綑綒經綔綕綖綗綘健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),t=0;t!=n[189].length;++t)n[189][t].charCodeAt(0)!==65533&&(i[n[189][t]]=48384+t,r[48384+t]=n[189][t]);for(n[190]="����������������������������������������������������������������継続綛綜綝綞綟綠綡綢綣綤綥綧綨綩綪綫綬維綯綰綱網綳綴綵綶綷綸綹綺綻綼綽綾綿緀緁緂緃緄緅緆緇緈緉緊緋緌緍緎総緐緑緒緓緔緕緖緗緘緙�線緛緜緝緞緟締緡緢緣緤緥緦緧編緩緪緫緬緭緮緯緰緱緲緳練緵緶緷緸緹緺尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),t=0;t!=n[190].length;++t)n[190][t].charCodeAt(0)!==65533&&(i[n[190][t]]=48640+t,r[48640+t]=n[190][t]);for(n[191]="����������������������������������������������������������������緻緼緽緾緿縀縁縂縃縄縅縆縇縈縉縊縋縌縍縎縏縐縑縒縓縔縕縖縗縘縙縚縛縜縝縞縟縠縡縢縣縤縥縦縧縨縩縪縫縬縭縮縯縰縱縲縳縴縵縶縷縸縹�縺縼總績縿繀繂繃繄繅繆繈繉繊繋繌繍繎繏繐繑繒繓織繕繖繗繘繙繚繛繜繝俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),t=0;t!=n[191].length;++t)n[191][t].charCodeAt(0)!==65533&&(i[n[191][t]]=48896+t,r[48896+t]=n[191][t]);for(n[192]="����������������������������������������������������������������繞繟繠繡繢繣繤繥繦繧繨繩繪繫繬繭繮繯繰繱繲繳繴繵繶繷繸繹繺繻繼繽繾繿纀纁纃纄纅纆纇纈纉纊纋續纍纎纏纐纑纒纓纔纕纖纗纘纙纚纜纝纞�纮纴纻纼绖绤绬绹缊缐缞缷缹缻缼缽缾缿罀罁罃罆罇罈罉罊罋罌罍罎罏罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),t=0;t!=n[192].length;++t)n[192][t].charCodeAt(0)!==65533&&(i[n[192][t]]=49152+t,r[49152+t]=n[192][t]);for(n[193]="����������������������������������������������������������������罖罙罛罜罝罞罠罣罤罥罦罧罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂羃羄羅羆羇羈羉羋羍羏羐羑羒羓羕羖羗羘羙羛羜羠羢羣羥羦羨義羪羫羬羭羮羱�羳羴羵羶羷羺羻羾翀翂翃翄翆翇翈翉翋翍翏翐翑習翓翖翗翙翚翛翜翝翞翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),t=0;t!=n[193].length;++t)n[193][t].charCodeAt(0)!==65533&&(i[n[193][t]]=49408+t,r[49408+t]=n[193][t]);for(n[194]="����������������������������������������������������������������翤翧翨翪翫翬翭翯翲翴翵翶翷翸翹翺翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫耬耭耮耯耰耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗�聙聛聜聝聞聟聠聡聢聣聤聥聦聧聨聫聬聭聮聯聰聲聳聴聵聶職聸聹聺聻聼聽隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),t=0;t!=n[194].length;++t)n[194][t].charCodeAt(0)!==65533&&(i[n[194][t]]=49664+t,r[49664+t]=n[194][t]);for(n[195]="����������������������������������������������������������������聾肁肂肅肈肊肍肎肏肐肑肒肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇胈胉胊胋胏胐胑胒胓胔胕胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋�脌脕脗脙脛脜脝脟脠脡脢脣脤脥脦脧脨脩脪脫脭脮脰脳脴脵脷脹脺脻脼脽脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),t=0;t!=n[195].length;++t)n[195][t].charCodeAt(0)!==65533&&(i[n[195][t]]=49920+t,r[49920+t]=n[195][t]);for(n[196]="����������������������������������������������������������������腀腁腂腃腄腅腇腉腍腎腏腒腖腗腘腛腜腝腞腟腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃膄膅膆膇膉膋膌膍膎膐膒膓膔膕膖膗膙膚膞膟膠膡膢膤膥�膧膩膫膬膭膮膯膰膱膲膴膵膶膷膸膹膼膽膾膿臄臅臇臈臉臋臍臎臏臐臑臒臓摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),t=0;t!=n[196].length;++t)n[196][t].charCodeAt(0)!==65533&&(i[n[196][t]]=50176+t,r[50176+t]=n[196][t]);for(n[197]="����������������������������������������������������������������臔臕臖臗臘臙臚臛臜臝臞臟臠臡臢臤臥臦臨臩臫臮臯臰臱臲臵臶臷臸臹臺臽臿舃與興舉舊舋舎舏舑舓舕舖舗舘舙舚舝舠舤舥舦舧舩舮舲舺舼舽舿�艀艁艂艃艅艆艈艊艌艍艎艐艑艒艓艔艕艖艗艙艛艜艝艞艠艡艢艣艤艥艦艧艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),t=0;t!=n[197].length;++t)n[197][t].charCodeAt(0)!==65533&&(i[n[197][t]]=50432+t,r[50432+t]=n[197][t]);for(n[198]="����������������������������������������������������������������艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸�苺苼苽苾苿茀茊茋茍茐茒茓茖茘茙茝茞茟茠茡茢茣茤茥茦茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),t=0;t!=n[198].length;++t)n[198][t].charCodeAt(0)!==65533&&(i[n[198][t]]=50688+t,r[50688+t]=n[198][t]);for(n[199]="����������������������������������������������������������������茾茿荁荂荄荅荈荊荋荌荍荎荓荕荖荗荘荙荝荢荰荱荲荳荴荵荶荹荺荾荿莀莁莂莃莄莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡莢莣莤莥莦莧莬莭莮�莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),t=0;t!=n[199].length;++t)n[199][t].charCodeAt(0)!==65533&&(i[n[199][t]]=50944+t,r[50944+t]=n[199][t]);for(n[200]="����������������������������������������������������������������菮華菳菴菵菶菷菺菻菼菾菿萀萂萅萇萈萉萊萐萒萓萔萕萖萗萙萚萛萞萟萠萡萢萣萩萪萫萬萭萮萯萰萲萳萴萵萶萷萹萺萻萾萿葀葁葂葃葄葅葇葈葉�葊葋葌葍葎葏葐葒葓葔葕葖葘葝葞葟葠葢葤葥葦葧葨葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),t=0;t!=n[200].length;++t)n[200][t].charCodeAt(0)!==65533&&(i[n[200][t]]=51200+t,r[51200+t]=n[200][t]);for(n[201]="����������������������������������������������������������������葽葾葿蒀蒁蒃蒄蒅蒆蒊蒍蒏蒐蒑蒒蒓蒔蒕蒖蒘蒚蒛蒝蒞蒟蒠蒢蒣蒤蒥蒦蒧蒨蒩蒪蒫蒬蒭蒮蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗�蓘蓙蓚蓛蓜蓞蓡蓢蓤蓧蓨蓩蓪蓫蓭蓮蓯蓱蓲蓳蓴蓵蓶蓷蓸蓹蓺蓻蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),t=0;t!=n[201].length;++t)n[201][t].charCodeAt(0)!==65533&&(i[n[201][t]]=51456+t,r[51456+t]=n[201][t]);for(n[202]="����������������������������������������������������������������蔃蔄蔅蔆蔇蔈蔉蔊蔋蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢蔣蔤蔥蔦蔧蔨蔩蔪蔭蔮蔯蔰蔱蔲蔳蔴蔵蔶蔾蔿蕀蕁蕂蕄蕅蕆蕇蕋蕌蕍蕎蕏蕐蕑蕒蕓蕔蕕�蕗蕘蕚蕛蕜蕝蕟蕠蕡蕢蕣蕥蕦蕧蕩蕪蕫蕬蕭蕮蕯蕰蕱蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),t=0;t!=n[202].length;++t)n[202][t].charCodeAt(0)!==65533&&(i[n[202][t]]=51712+t,r[51712+t]=n[202][t]);for(n[203]="����������������������������������������������������������������薂薃薆薈薉薊薋薌薍薎薐薑薒薓薔薕薖薗薘薙薚薝薞薟薠薡薢薣薥薦薧薩薫薬薭薱薲薳薴薵薶薸薺薻薼薽薾薿藀藂藃藄藅藆藇藈藊藋藌藍藎藑藒�藔藖藗藘藙藚藛藝藞藟藠藡藢藣藥藦藧藨藪藫藬藭藮藯藰藱藲藳藴藵藶藷藸恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),t=0;t!=n[203].length;++t)n[203][t].charCodeAt(0)!==65533&&(i[n[203][t]]=51968+t,r[51968+t]=n[203][t]);for(n[204]="����������������������������������������������������������������藹藺藼藽藾蘀蘁蘂蘃蘄蘆蘇蘈蘉蘊蘋蘌蘍蘎蘏蘐蘒蘓蘔蘕蘗蘘蘙蘚蘛蘜蘝蘞蘟蘠蘡蘢蘣蘤蘥蘦蘨蘪蘫蘬蘭蘮蘯蘰蘱蘲蘳蘴蘵蘶蘷蘹蘺蘻蘽蘾蘿虀�虁虂虃虄虅虆虇虈虉虊虋虌虒虓處虖虗虘虙虛虜虝號虠虡虣虤虥虦虧虨虩虪獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),t=0;t!=n[204].length;++t)n[204][t].charCodeAt(0)!==65533&&(i[n[204][t]]=52224+t,r[52224+t]=n[204][t]);for(n[205]="����������������������������������������������������������������虭虯虰虲虳虴虵虶虷虸蚃蚄蚅蚆蚇蚈蚉蚎蚏蚐蚑蚒蚔蚖蚗蚘蚙蚚蚛蚞蚟蚠蚡蚢蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻蚼蚽蚾蚿蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜�蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),t=0;t!=n[205].length;++t)n[205][t].charCodeAt(0)!==65533&&(i[n[205][t]]=52480+t,r[52480+t]=n[205][t]);for(n[206]="����������������������������������������������������������������蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀蝁蝂蝃蝄蝅蝆蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚蝛蝜蝝蝞蝟蝡蝢蝦蝧蝨蝩蝪蝫蝬蝭蝯蝱蝲蝳蝵�蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎螏螐螑螒螔螕螖螘螙螚螛螜螝螞螠螡螢螣螤巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),t=0;t!=n[206].length;++t)n[206][t].charCodeAt(0)!==65533&&(i[n[206][t]]=52736+t,r[52736+t]=n[206][t]);for(n[207]="����������������������������������������������������������������螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁蟂蟃蟄蟅蟇蟈蟉蟌蟍蟎蟏蟐蟔蟕蟖蟗蟘蟙蟚蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯蟰蟱蟲蟳蟴蟵蟶蟷蟸�蟺蟻蟼蟽蟿蠀蠁蠂蠄蠅蠆蠇蠈蠉蠋蠌蠍蠎蠏蠐蠑蠒蠔蠗蠘蠙蠚蠜蠝蠞蠟蠠蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),t=0;t!=n[207].length;++t)n[207][t].charCodeAt(0)!==65533&&(i[n[207][t]]=52992+t,r[52992+t]=n[207][t]);for(n[208]="����������������������������������������������������������������蠤蠥蠦蠧蠨蠩蠪蠫蠬蠭蠮蠯蠰蠱蠳蠴蠵蠶蠷蠸蠺蠻蠽蠾蠿衁衂衃衆衇衈衉衊衋衎衏衐衑衒術衕衖衘衚衛衜衝衞衟衠衦衧衪衭衯衱衳衴衵衶衸衹衺�衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗袘袙袚袛袝袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),t=0;t!=n[208].length;++t)n[208][t].charCodeAt(0)!==65533&&(i[n[208][t]]=53248+t,r[53248+t]=n[208][t]);for(n[209]="����������������������������������������������������������������袬袮袯袰袲袳袴袵袶袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚裛補裝裞裠裡裦裧裩裪裫裬裭裮裯裲裵裶裷裺裻製裿褀褁褃褄褅褆複褈�褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟褠褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),t=0;t!=n[209].length;++t)n[209][t].charCodeAt(0)!==65533&&(i[n[209][t]]=53504+t,r[53504+t]=n[209][t]);for(n[210]="����������������������������������������������������������������褸褹褺褻褼褽褾褿襀襂襃襅襆襇襈襉襊襋襌襍襎襏襐襑襒襓襔襕襖襗襘襙襚襛襜襝襠襡襢襣襤襥襧襨襩襪襫襬襭襮襯襰襱襲襳襴襵襶襷襸襹襺襼�襽襾覀覂覄覅覇覈覉覊見覌覍覎規覐覑覒覓覔覕視覗覘覙覚覛覜覝覞覟覠覡摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),t=0;t!=n[210].length;++t)n[210][t].charCodeAt(0)!==65533&&(i[n[210][t]]=53760+t,r[53760+t]=n[210][t]);for(n[211]="����������������������������������������������������������������覢覣覤覥覦覧覨覩親覫覬覭覮覯覰覱覲観覴覵覶覷覸覹覺覻覼覽覾覿觀觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴觵觶觷觸觹觺�觻觼觽觾觿訁訂訃訄訅訆計訉訊訋訌訍討訏訐訑訒訓訔訕訖託記訙訚訛訜訝印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),t=0;t!=n[211].length;++t)n[211][t].charCodeAt(0)!==65533&&(i[n[211][t]]=54016+t,r[54016+t]=n[211][t]);for(n[212]="����������������������������������������������������������������訞訟訠訡訢訣訤訥訦訧訨訩訪訫訬設訮訯訰許訲訳訴訵訶訷訸訹診註証訽訿詀詁詂詃詄詅詆詇詉詊詋詌詍詎詏詐詑詒詓詔評詖詗詘詙詚詛詜詝詞�詟詠詡詢詣詤詥試詧詨詩詪詫詬詭詮詯詰話該詳詴詵詶詷詸詺詻詼詽詾詿誀浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),t=0;t!=n[212].length;++t)n[212][t].charCodeAt(0)!==65533&&(i[n[212][t]]=54272+t,r[54272+t]=n[212][t]);for(n[213]="����������������������������������������������������������������誁誂誃誄誅誆誇誈誋誌認誎誏誐誑誒誔誕誖誗誘誙誚誛誜誝語誟誠誡誢誣誤誥誦誧誨誩說誫説読誮誯誰誱課誳誴誵誶誷誸誹誺誻誼誽誾調諀諁諂�諃諄諅諆談諈諉諊請諌諍諎諏諐諑諒諓諔諕論諗諘諙諚諛諜諝諞諟諠諡諢諣铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),t=0;t!=n[213].length;++t)n[213][t].charCodeAt(0)!==65533&&(i[n[213][t]]=54528+t,r[54528+t]=n[213][t]);for(n[214]="����������������������������������������������������������������諤諥諦諧諨諩諪諫諬諭諮諯諰諱諲諳諴諵諶諷諸諹諺諻諼諽諾諿謀謁謂謃謄謅謆謈謉謊謋謌謍謎謏謐謑謒謓謔謕謖謗謘謙謚講謜謝謞謟謠謡謢謣�謤謥謧謨謩謪謫謬謭謮謯謰謱謲謳謴謵謶謷謸謹謺謻謼謽謾謿譀譁譂譃譄譅帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),t=0;t!=n[214].length;++t)n[214][t].charCodeAt(0)!==65533&&(i[n[214][t]]=54784+t,r[54784+t]=n[214][t]);for(n[215]="����������������������������������������������������������������譆譇譈證譊譋譌譍譎譏譐譑譒譓譔譕譖譗識譙譚譛譜譝譞譟譠譡譢譣譤譥譧譨譩譪譫譭譮譯議譱譲譳譴譵譶護譸譹譺譻譼譽譾譿讀讁讂讃讄讅讆�讇讈讉變讋讌讍讎讏讐讑讒讓讔讕讖讗讘讙讚讛讜讝讞讟讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),t=0;t!=n[215].length;++t)n[215][t].charCodeAt(0)!==65533&&(i[n[215][t]]=55040+t,r[55040+t]=n[215][t]);for(n[216]="����������������������������������������������������������������谸谹谺谻谼谽谾谿豀豂豃豄豅豈豊豋豍豎豏豐豑豒豓豔豖豗豘豙豛豜豝豞豟豠豣豤豥豦豧豨豩豬豭豮豯豰豱豲豴豵豶豷豻豼豽豾豿貀貁貃貄貆貇�貈貋貍貎貏貐貑貒貓貕貖貗貙貚貛貜貝貞貟負財貢貣貤貥貦貧貨販貪貫責貭亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),t=0;t!=n[216].length;++t)n[216][t].charCodeAt(0)!==65533&&(i[n[216][t]]=55296+t,r[55296+t]=n[216][t]);for(n[217]="����������������������������������������������������������������貮貯貰貱貲貳貴貵貶買貸貹貺費貼貽貾貿賀賁賂賃賄賅賆資賈賉賊賋賌賍賎賏賐賑賒賓賔賕賖賗賘賙賚賛賜賝賞賟賠賡賢賣賤賥賦賧賨賩質賫賬�賭賮賯賰賱賲賳賴賵賶賷賸賹賺賻購賽賾賿贀贁贂贃贄贅贆贇贈贉贊贋贌贍佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),t=0;t!=n[217].length;++t)n[217][t].charCodeAt(0)!==65533&&(i[n[217][t]]=55552+t,r[55552+t]=n[217][t]);for(n[218]="����������������������������������������������������������������贎贏贐贑贒贓贔贕贖贗贘贙贚贛贜贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸赹赺赻赼赽赾赿趀趂趃趆趇趈趉趌趍趎趏趐趒趓趕趖趗趘趙趚趛趜趝趞趠趡�趢趤趥趦趧趨趩趪趫趬趭趮趯趰趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),t=0;t!=n[218].length;++t)n[218][t].charCodeAt(0)!==65533&&(i[n[218][t]]=55808+t,r[55808+t]=n[218][t]);for(n[219]="����������������������������������������������������������������跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾跿踀踁踂踃踄踆踇踈踋踍踎踐踑踒踓踕踖踗踘踙踚踛踜踠踡踤踥踦踧踨踫踭踰踲踳踴踶踷踸踻踼踾�踿蹃蹅蹆蹌蹍蹎蹏蹐蹓蹔蹕蹖蹗蹘蹚蹛蹜蹝蹞蹟蹠蹡蹢蹣蹤蹥蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),t=0;t!=n[219].length;++t)n[219][t].charCodeAt(0)!==65533&&(i[n[219][t]]=56064+t,r[56064+t]=n[219][t]);for(n[220]="����������������������������������������������������������������蹳蹵蹷蹸蹹蹺蹻蹽蹾躀躂躃躄躆躈躉躊躋躌躍躎躑躒躓躕躖躗躘躙躚躛躝躟躠躡躢躣躤躥躦躧躨躩躪躭躮躰躱躳躴躵躶躷躸躹躻躼躽躾躿軀軁軂�軃軄軅軆軇軈軉車軋軌軍軏軐軑軒軓軔軕軖軗軘軙軚軛軜軝軞軟軠軡転軣軤堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),t=0;t!=n[220].length;++t)n[220][t].charCodeAt(0)!==65533&&(i[n[220][t]]=56320+t,r[56320+t]=n[220][t]);for(n[221]="����������������������������������������������������������������軥軦軧軨軩軪軫軬軭軮軯軰軱軲軳軴軵軶軷軸軹軺軻軼軽軾軿輀輁輂較輄輅輆輇輈載輊輋輌輍輎輏輐輑輒輓輔輕輖輗輘輙輚輛輜輝輞輟輠輡輢輣�輤輥輦輧輨輩輪輫輬輭輮輯輰輱輲輳輴輵輶輷輸輹輺輻輼輽輾輿轀轁轂轃轄荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),t=0;t!=n[221].length;++t)n[221][t].charCodeAt(0)!==65533&&(i[n[221][t]]=56576+t,r[56576+t]=n[221][t]);for(n[222]="����������������������������������������������������������������轅轆轇轈轉轊轋轌轍轎轏轐轑轒轓轔轕轖轗轘轙轚轛轜轝轞轟轠轡轢轣轤轥轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆�迉迊迋迌迍迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),t=0;t!=n[222].length;++t)n[222][t].charCodeAt(0)!==65533&&(i[n[222][t]]=56832+t,r[56832+t]=n[222][t]);for(n[223]="����������������������������������������������������������������這逜連逤逥逧逨逩逪逫逬逰週進逳逴逷逹逺逽逿遀遃遅遆遈遉遊運遌過達違遖遙遚遜遝遞遟遠遡遤遦遧適遪遫遬遯遰遱遲遳遶遷選遹遺遻遼遾邁�還邅邆邇邉邊邌邍邎邏邐邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),t=0;t!=n[223].length;++t)n[223][t].charCodeAt(0)!==65533&&(i[n[223][t]]=57088+t,r[57088+t]=n[223][t]);for(n[224]="����������������������������������������������������������������郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅鄆鄇鄈鄉鄊鄋鄌鄍鄎鄏鄐鄑鄒鄓鄔鄕鄖鄗鄘鄚鄛鄜�鄝鄟鄠鄡鄤鄥鄦鄧鄨鄩鄪鄫鄬鄭鄮鄰鄲鄳鄴鄵鄶鄷鄸鄺鄻鄼鄽鄾鄿酀酁酂酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),t=0;t!=n[224].length;++t)n[224][t].charCodeAt(0)!==65533&&(i[n[224][t]]=57344+t,r[57344+t]=n[224][t]);for(n[225]="����������������������������������������������������������������酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀醁醂醃醄醆醈醊醎醏醓醔醕醖醗醘醙醜醝醞醟醠醡醤醥醦醧醨醩醫醬醰醱醲醳醶醷醸醹醻�醼醽醾醿釀釁釂釃釄釅釆釈釋釐釒釓釔釕釖釗釘釙釚釛針釞釟釠釡釢釣釤釥帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),t=0;t!=n[225].length;++t)n[225][t].charCodeAt(0)!==65533&&(i[n[225][t]]=57600+t,r[57600+t]=n[225][t]);for(n[226]="����������������������������������������������������������������釦釧釨釩釪釫釬釭釮釯釰釱釲釳釴釵釶釷釸釹釺釻釼釽釾釿鈀鈁鈂鈃鈄鈅鈆鈇鈈鈉鈊鈋鈌鈍鈎鈏鈐鈑鈒鈓鈔鈕鈖鈗鈘鈙鈚鈛鈜鈝鈞鈟鈠鈡鈢鈣鈤�鈥鈦鈧鈨鈩鈪鈫鈬鈭鈮鈯鈰鈱鈲鈳鈴鈵鈶鈷鈸鈹鈺鈻鈼鈽鈾鈿鉀鉁鉂鉃鉄鉅狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),t=0;t!=n[226].length;++t)n[226][t].charCodeAt(0)!==65533&&(i[n[226][t]]=57856+t,r[57856+t]=n[226][t]);for(n[227]="����������������������������������������������������������������鉆鉇鉈鉉鉊鉋鉌鉍鉎鉏鉐鉑鉒鉓鉔鉕鉖鉗鉘鉙鉚鉛鉜鉝鉞鉟鉠鉡鉢鉣鉤鉥鉦鉧鉨鉩鉪鉫鉬鉭鉮鉯鉰鉱鉲鉳鉵鉶鉷鉸鉹鉺鉻鉼鉽鉾鉿銀銁銂銃銄銅�銆銇銈銉銊銋銌銍銏銐銑銒銓銔銕銖銗銘銙銚銛銜銝銞銟銠銡銢銣銤銥銦銧恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),t=0;t!=n[227].length;++t)n[227][t].charCodeAt(0)!==65533&&(i[n[227][t]]=58112+t,r[58112+t]=n[227][t]);for(n[228]="����������������������������������������������������������������銨銩銪銫銬銭銯銰銱銲銳銴銵銶銷銸銹銺銻銼銽銾銿鋀鋁鋂鋃鋄鋅鋆鋇鋉鋊鋋鋌鋍鋎鋏鋐鋑鋒鋓鋔鋕鋖鋗鋘鋙鋚鋛鋜鋝鋞鋟鋠鋡鋢鋣鋤鋥鋦鋧鋨�鋩鋪鋫鋬鋭鋮鋯鋰鋱鋲鋳鋴鋵鋶鋷鋸鋹鋺鋻鋼鋽鋾鋿錀錁錂錃錄錅錆錇錈錉洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),t=0;t!=n[228].length;++t)n[228][t].charCodeAt(0)!==65533&&(i[n[228][t]]=58368+t,r[58368+t]=n[228][t]);for(n[229]="����������������������������������������������������������������錊錋錌錍錎錏錐錑錒錓錔錕錖錗錘錙錚錛錜錝錞錟錠錡錢錣錤錥錦錧錨錩錪錫錬錭錮錯錰錱録錳錴錵錶錷錸錹錺錻錼錽錿鍀鍁鍂鍃鍄鍅鍆鍇鍈鍉�鍊鍋鍌鍍鍎鍏鍐鍑鍒鍓鍔鍕鍖鍗鍘鍙鍚鍛鍜鍝鍞鍟鍠鍡鍢鍣鍤鍥鍦鍧鍨鍩鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),t=0;t!=n[229].length;++t)n[229][t].charCodeAt(0)!==65533&&(i[n[229][t]]=58624+t,r[58624+t]=n[229][t]);for(n[230]="����������������������������������������������������������������鍬鍭鍮鍯鍰鍱鍲鍳鍴鍵鍶鍷鍸鍹鍺鍻鍼鍽鍾鍿鎀鎁鎂鎃鎄鎅鎆鎇鎈鎉鎊鎋鎌鎍鎎鎐鎑鎒鎓鎔鎕鎖鎗鎘鎙鎚鎛鎜鎝鎞鎟鎠鎡鎢鎣鎤鎥鎦鎧鎨鎩鎪鎫�鎬鎭鎮鎯鎰鎱鎲鎳鎴鎵鎶鎷鎸鎹鎺鎻鎼鎽鎾鎿鏀鏁鏂鏃鏄鏅鏆鏇鏈鏉鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),t=0;t!=n[230].length;++t)n[230][t].charCodeAt(0)!==65533&&(i[n[230][t]]=58880+t,r[58880+t]=n[230][t]);for(n[231]="����������������������������������������������������������������鏎鏏鏐鏑鏒鏓鏔鏕鏗鏘鏙鏚鏛鏜鏝鏞鏟鏠鏡鏢鏣鏤鏥鏦鏧鏨鏩鏪鏫鏬鏭鏮鏯鏰鏱鏲鏳鏴鏵鏶鏷鏸鏹鏺鏻鏼鏽鏾鏿鐀鐁鐂鐃鐄鐅鐆鐇鐈鐉鐊鐋鐌鐍�鐎鐏鐐鐑鐒鐓鐔鐕鐖鐗鐘鐙鐚鐛鐜鐝鐞鐟鐠鐡鐢鐣鐤鐥鐦鐧鐨鐩鐪鐫鐬鐭鐮纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),t=0;t!=n[231].length;++t)n[231][t].charCodeAt(0)!==65533&&(i[n[231][t]]=59136+t,r[59136+t]=n[231][t]);for(n[232]="����������������������������������������������������������������鐯鐰鐱鐲鐳鐴鐵鐶鐷鐸鐹鐺鐻鐼鐽鐿鑀鑁鑂鑃鑄鑅鑆鑇鑈鑉鑊鑋鑌鑍鑎鑏鑐鑑鑒鑓鑔鑕鑖鑗鑘鑙鑚鑛鑜鑝鑞鑟鑠鑡鑢鑣鑤鑥鑦鑧鑨鑩鑪鑬鑭鑮鑯�鑰鑱鑲鑳鑴鑵鑶鑷鑸鑹鑺鑻鑼鑽鑾鑿钀钁钂钃钄钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),t=0;t!=n[232].length;++t)n[232][t].charCodeAt(0)!==65533&&(i[n[232][t]]=59392+t,r[59392+t]=n[232][t]);for(n[233]="����������������������������������������������������������������锧锳锽镃镈镋镕镚镠镮镴镵長镸镹镺镻镼镽镾門閁閂閃閄閅閆閇閈閉閊開閌閍閎閏閐閑閒間閔閕閖閗閘閙閚閛閜閝閞閟閠閡関閣閤閥閦閧閨閩閪�閫閬閭閮閯閰閱閲閳閴閵閶閷閸閹閺閻閼閽閾閿闀闁闂闃闄闅闆闇闈闉闊闋椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),t=0;t!=n[233].length;++t)n[233][t].charCodeAt(0)!==65533&&(i[n[233][t]]=59648+t,r[59648+t]=n[233][t]);for(n[234]="����������������������������������������������������������������闌闍闎闏闐闑闒闓闔闕闖闗闘闙闚闛關闝闞闟闠闡闢闣闤闥闦闧闬闿阇阓阘阛阞阠阣阤阥阦阧阨阩阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗�陘陙陚陜陝陞陠陣陥陦陫陭陮陯陰陱陳陸陹険陻陼陽陾陿隀隁隂隃隄隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),t=0;t!=n[234].length;++t)n[234][t].charCodeAt(0)!==65533&&(i[n[234][t]]=59904+t,r[59904+t]=n[234][t]);for(n[235]="����������������������������������������������������������������隌階隑隒隓隕隖隚際隝隞隟隠隡隢隣隤隥隦隨隩險隫隬隭隮隯隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖雗雘雙雚雛雜雝雞雟雡離難雤雥雦雧雫�雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗霘霙霚霛霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),t=0;t!=n[235].length;++t)n[235][t].charCodeAt(0)!==65533&&(i[n[235][t]]=60160+t,r[60160+t]=n[235][t]);for(n[236]="����������������������������������������������������������������霡霢霣霤霥霦霧霨霩霫霬霮霯霱霳霴霵霶霷霺霻霼霽霿靀靁靂靃靄靅靆靇靈靉靊靋靌靍靎靏靐靑靔靕靗靘靚靜靝靟靣靤靦靧靨靪靫靬靭靮靯靰靱�靲靵靷靸靹靺靻靽靾靿鞀鞁鞂鞃鞄鞆鞇鞈鞉鞊鞌鞎鞏鞐鞓鞕鞖鞗鞙鞚鞛鞜鞝臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),t=0;t!=n[236].length;++t)n[236][t].charCodeAt(0)!==65533&&(i[n[236][t]]=60416+t,r[60416+t]=n[236][t]);for(n[237]="����������������������������������������������������������������鞞鞟鞡鞢鞤鞥鞦鞧鞨鞩鞪鞬鞮鞰鞱鞳鞵鞶鞷鞸鞹鞺鞻鞼鞽鞾鞿韀韁韂韃韄韅韆韇韈韉韊韋韌韍韎韏韐韑韒韓韔韕韖韗韘韙韚韛韜韝韞韟韠韡韢韣�韤韥韨韮韯韰韱韲韴韷韸韹韺韻韼韽韾響頀頁頂頃頄項順頇須頉頊頋頌頍頎怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),t=0;t!=n[237].length;++t)n[237][t].charCodeAt(0)!==65533&&(i[n[237][t]]=60672+t,r[60672+t]=n[237][t]);for(n[238]="����������������������������������������������������������������頏預頑頒頓頔頕頖頗領頙頚頛頜頝頞頟頠頡頢頣頤頥頦頧頨頩頪頫頬頭頮頯頰頱頲頳頴頵頶頷頸頹頺頻頼頽頾頿顀顁顂顃顄顅顆顇顈顉顊顋題額�顎顏顐顑顒顓顔顕顖顗願顙顚顛顜顝類顟顠顡顢顣顤顥顦顧顨顩顪顫顬顭顮睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),t=0;t!=n[238].length;++t)n[238][t].charCodeAt(0)!==65533&&(i[n[238][t]]=60928+t,r[60928+t]=n[238][t]);for(n[239]="����������������������������������������������������������������顯顰顱顲顳顴颋颎颒颕颙颣風颩颪颫颬颭颮颯颰颱颲颳颴颵颶颷颸颹颺颻颼颽颾颿飀飁飂飃飄飅飆飇飈飉飊飋飌飍飏飐飔飖飗飛飜飝飠飡飢飣飤�飥飦飩飪飫飬飭飮飯飰飱飲飳飴飵飶飷飸飹飺飻飼飽飾飿餀餁餂餃餄餅餆餇铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),t=0;t!=n[239].length;++t)n[239][t].charCodeAt(0)!==65533&&(i[n[239][t]]=61184+t,r[61184+t]=n[239][t]);for(n[240]="����������������������������������������������������������������餈餉養餋餌餎餏餑餒餓餔餕餖餗餘餙餚餛餜餝餞餟餠餡餢餣餤餥餦餧館餩餪餫餬餭餯餰餱餲餳餴餵餶餷餸餹餺餻餼餽餾餿饀饁饂饃饄饅饆饇饈饉�饊饋饌饍饎饏饐饑饒饓饖饗饘饙饚饛饜饝饞饟饠饡饢饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),t=0;t!=n[240].length;++t)n[240][t].charCodeAt(0)!==65533&&(i[n[240][t]]=61440+t,r[61440+t]=n[240][t]);for(n[241]="����������������������������������������������������������������馌馎馚馛馜馝馞馟馠馡馢馣馤馦馧馩馪馫馬馭馮馯馰馱馲馳馴馵馶馷馸馹馺馻馼馽馾馿駀駁駂駃駄駅駆駇駈駉駊駋駌駍駎駏駐駑駒駓駔駕駖駗駘�駙駚駛駜駝駞駟駠駡駢駣駤駥駦駧駨駩駪駫駬駭駮駯駰駱駲駳駴駵駶駷駸駹瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),t=0;t!=n[241].length;++t)n[241][t].charCodeAt(0)!==65533&&(i[n[241][t]]=61696+t,r[61696+t]=n[241][t]);for(n[242]="����������������������������������������������������������������駺駻駼駽駾駿騀騁騂騃騄騅騆騇騈騉騊騋騌騍騎騏騐騑騒験騔騕騖騗騘騙騚騛騜騝騞騟騠騡騢騣騤騥騦騧騨騩騪騫騬騭騮騯騰騱騲騳騴騵騶騷騸�騹騺騻騼騽騾騿驀驁驂驃驄驅驆驇驈驉驊驋驌驍驎驏驐驑驒驓驔驕驖驗驘驙颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),t=0;t!=n[242].length;++t)n[242][t].charCodeAt(0)!==65533&&(i[n[242][t]]=61952+t,r[61952+t]=n[242][t]);for(n[243]="����������������������������������������������������������������驚驛驜驝驞驟驠驡驢驣驤驥驦驧驨驩驪驫驲骃骉骍骎骔骕骙骦骩骪骫骬骭骮骯骲骳骴骵骹骻骽骾骿髃髄髆髇髈髉髊髍髎髏髐髒體髕髖髗髙髚髛髜�髝髞髠髢髣髤髥髧髨髩髪髬髮髰髱髲髳髴髵髶髷髸髺髼髽髾髿鬀鬁鬂鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),t=0;t!=n[243].length;++t)n[243][t].charCodeAt(0)!==65533&&(i[n[243][t]]=62208+t,r[62208+t]=n[243][t]);for(n[244]="����������������������������������������������������������������鬇鬉鬊鬋鬌鬍鬎鬐鬑鬒鬔鬕鬖鬗鬘鬙鬚鬛鬜鬝鬞鬠鬡鬢鬤鬥鬦鬧鬨鬩鬪鬫鬬鬭鬮鬰鬱鬳鬴鬵鬶鬷鬸鬹鬺鬽鬾鬿魀魆魊魋魌魎魐魒魓魕魖魗魘魙魚�魛魜魝魞魟魠魡魢魣魤魥魦魧魨魩魪魫魬魭魮魯魰魱魲魳魴魵魶魷魸魹魺魻簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),t=0;t!=n[244].length;++t)n[244][t].charCodeAt(0)!==65533&&(i[n[244][t]]=62464+t,r[62464+t]=n[244][t]);for(n[245]="����������������������������������������������������������������魼魽魾魿鮀鮁鮂鮃鮄鮅鮆鮇鮈鮉鮊鮋鮌鮍鮎鮏鮐鮑鮒鮓鮔鮕鮖鮗鮘鮙鮚鮛鮜鮝鮞鮟鮠鮡鮢鮣鮤鮥鮦鮧鮨鮩鮪鮫鮬鮭鮮鮯鮰鮱鮲鮳鮴鮵鮶鮷鮸鮹鮺�鮻鮼鮽鮾鮿鯀鯁鯂鯃鯄鯅鯆鯇鯈鯉鯊鯋鯌鯍鯎鯏鯐鯑鯒鯓鯔鯕鯖鯗鯘鯙鯚鯛酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),t=0;t!=n[245].length;++t)n[245][t].charCodeAt(0)!==65533&&(i[n[245][t]]=62720+t,r[62720+t]=n[245][t]);for(n[246]="����������������������������������������������������������������鯜鯝鯞鯟鯠鯡鯢鯣鯤鯥鯦鯧鯨鯩鯪鯫鯬鯭鯮鯯鯰鯱鯲鯳鯴鯵鯶鯷鯸鯹鯺鯻鯼鯽鯾鯿鰀鰁鰂鰃鰄鰅鰆鰇鰈鰉鰊鰋鰌鰍鰎鰏鰐鰑鰒鰓鰔鰕鰖鰗鰘鰙鰚�鰛鰜鰝鰞鰟鰠鰡鰢鰣鰤鰥鰦鰧鰨鰩鰪鰫鰬鰭鰮鰯鰰鰱鰲鰳鰴鰵鰶鰷鰸鰹鰺鰻觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),t=0;t!=n[246].length;++t)n[246][t].charCodeAt(0)!==65533&&(i[n[246][t]]=62976+t,r[62976+t]=n[246][t]);for(n[247]="����������������������������������������������������������������鰼鰽鰾鰿鱀鱁鱂鱃鱄鱅鱆鱇鱈鱉鱊鱋鱌鱍鱎鱏鱐鱑鱒鱓鱔鱕鱖鱗鱘鱙鱚鱛鱜鱝鱞鱟鱠鱡鱢鱣鱤鱥鱦鱧鱨鱩鱪鱫鱬鱭鱮鱯鱰鱱鱲鱳鱴鱵鱶鱷鱸鱹鱺�鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾鲿鳀鳁鳂鳈鳉鳑鳒鳚鳛鳠鳡鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),t=0;t!=n[247].length;++t)n[247][t].charCodeAt(0)!==65533&&(i[n[247][t]]=63232+t,r[63232+t]=n[247][t]);for(n[248]="����������������������������������������������������������������鳣鳤鳥鳦鳧鳨鳩鳪鳫鳬鳭鳮鳯鳰鳱鳲鳳鳴鳵鳶鳷鳸鳹鳺鳻鳼鳽鳾鳿鴀鴁鴂鴃鴄鴅鴆鴇鴈鴉鴊鴋鴌鴍鴎鴏鴐鴑鴒鴓鴔鴕鴖鴗鴘鴙鴚鴛鴜鴝鴞鴟鴠鴡�鴢鴣鴤鴥鴦鴧鴨鴩鴪鴫鴬鴭鴮鴯鴰鴱鴲鴳鴴鴵鴶鴷鴸鴹鴺鴻鴼鴽鴾鴿鵀鵁鵂�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[248].length;++t)n[248][t].charCodeAt(0)!==65533&&(i[n[248][t]]=63488+t,r[63488+t]=n[248][t]);for(n[249]="����������������������������������������������������������������鵃鵄鵅鵆鵇鵈鵉鵊鵋鵌鵍鵎鵏鵐鵑鵒鵓鵔鵕鵖鵗鵘鵙鵚鵛鵜鵝鵞鵟鵠鵡鵢鵣鵤鵥鵦鵧鵨鵩鵪鵫鵬鵭鵮鵯鵰鵱鵲鵳鵴鵵鵶鵷鵸鵹鵺鵻鵼鵽鵾鵿鶀鶁�鶂鶃鶄鶅鶆鶇鶈鶉鶊鶋鶌鶍鶎鶏鶐鶑鶒鶓鶔鶕鶖鶗鶘鶙鶚鶛鶜鶝鶞鶟鶠鶡鶢�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[249].length;++t)n[249][t].charCodeAt(0)!==65533&&(i[n[249][t]]=63744+t,r[63744+t]=n[249][t]);for(n[250]="����������������������������������������������������������������鶣鶤鶥鶦鶧鶨鶩鶪鶫鶬鶭鶮鶯鶰鶱鶲鶳鶴鶵鶶鶷鶸鶹鶺鶻鶼鶽鶾鶿鷀鷁鷂鷃鷄鷅鷆鷇鷈鷉鷊鷋鷌鷍鷎鷏鷐鷑鷒鷓鷔鷕鷖鷗鷘鷙鷚鷛鷜鷝鷞鷟鷠鷡�鷢鷣鷤鷥鷦鷧鷨鷩鷪鷫鷬鷭鷮鷯鷰鷱鷲鷳鷴鷵鷶鷷鷸鷹鷺鷻鷼鷽鷾鷿鸀鸁鸂�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[250].length;++t)n[250][t].charCodeAt(0)!==65533&&(i[n[250][t]]=64e3+t,r[64e3+t]=n[250][t]);for(n[251]="����������������������������������������������������������������鸃鸄鸅鸆鸇鸈鸉鸊鸋鸌鸍鸎鸏鸐鸑鸒鸓鸔鸕鸖鸗鸘鸙鸚鸛鸜鸝鸞鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴鹵鹶鹷鹸鹹鹺鹻鹼鹽麀�麁麃麄麅麆麉麊麌麍麎麏麐麑麔麕麖麗麘麙麚麛麜麞麠麡麢麣麤麥麧麨麩麪�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[251].length;++t)n[251][t].charCodeAt(0)!==65533&&(i[n[251][t]]=64256+t,r[64256+t]=n[251][t]);for(n[252]="����������������������������������������������������������������麫麬麭麮麯麰麱麲麳麵麶麷麹麺麼麿黀黁黂黃黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰黱黲黳黴黵黶黷黸黺黽黿鼀鼁鼂鼃鼄鼅�鼆鼇鼈鼉鼊鼌鼏鼑鼒鼔鼕鼖鼘鼚鼛鼜鼝鼞鼟鼡鼣鼤鼥鼦鼧鼨鼩鼪鼫鼭鼮鼰鼱�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[252].length;++t)n[252][t].charCodeAt(0)!==65533&&(i[n[252][t]]=64512+t,r[64512+t]=n[252][t]);for(n[253]="����������������������������������������������������������������鼲鼳鼴鼵鼶鼸鼺鼼鼿齀齁齂齃齅齆齇齈齉齊齋齌齍齎齏齒齓齔齕齖齗齘齙齚齛齜齝齞齟齠齡齢齣齤齥齦齧齨齩齪齫齬齭齮齯齰齱齲齳齴齵齶齷齸�齹齺齻齼齽齾龁龂龍龎龏龐龑龒龓龔龕龖龗龘龜龝龞龡龢龣龤龥郎凉秊裏隣�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[253].length;++t)n[253][t].charCodeAt(0)!==65533&&(i[n[253][t]]=64768+t,r[64768+t]=n[253][t]);for(n[254]="����������������������������������������������������������������兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),t=0;t!=n[254].length;++t)n[254][t].charCodeAt(0)!==65533&&(i[n[254][t]]=65024+t,r[65024+t]=n[254][t]);return{enc:i,dec:r}})(),s[949]=(function(){var r=[],i={},n=[],t;for(n[0]=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������`.split(""),t=0;t!=n[0].length;++t)n[0][t].charCodeAt(0)!==65533&&(i[n[0][t]]=0+t,r[0+t]=n[0][t]);for(n[129]="�����������������������������������������������������������������갂갃갅갆갋갌갍갎갏갘갞갟갡갢갣갥갦갧갨갩갪갫갮갲갳갴������갵갶갷갺갻갽갾갿걁걂걃걄걅걆걇걈걉걊걌걎걏걐걑걒걓걕������걖걗걙걚걛걝걞걟걠걡걢걣걤걥걦걧걨걩걪걫걬걭걮걯걲걳걵걶걹걻걼걽걾걿겂겇겈겍겎겏겑겒겓겕겖겗겘겙겚겛겞겢겣겤겥겦겧겫겭겮겱겲겳겴겵겶겷겺겾겿곀곂곃곅곆곇곉곊곋곍곎곏곐곑곒곓곔곖곘곙곚곛곜곝곞곟곢곣곥곦곩곫곭곮곲곴곷곸곹곺곻곾곿괁괂괃괅괇괈괉괊괋괎괐괒괓�".split(""),t=0;t!=n[129].length;++t)n[129][t].charCodeAt(0)!==65533&&(i[n[129][t]]=33024+t,r[33024+t]=n[129][t]);for(n[130]="�����������������������������������������������������������������괔괕괖괗괙괚괛괝괞괟괡괢괣괤괥괦괧괨괪괫괮괯괰괱괲괳������괶괷괹괺괻괽괾괿굀굁굂굃굆굈굊굋굌굍굎굏굑굒굓굕굖굗������굙굚굛굜굝굞굟굠굢굤굥굦굧굨굩굪굫굮굯굱굲굷굸굹굺굾궀궃궄궅궆궇궊궋궍궎궏궑궒궓궔궕궖궗궘궙궚궛궞궟궠궡궢궣궥궦궧궨궩궪궫궬궭궮궯궰궱궲궳궴궵궶궸궹궺궻궼궽궾궿귂귃귅귆귇귉귊귋귌귍귎귏귒귔귕귖귗귘귙귚귛귝귞귟귡귢귣귥귦귧귨귩귪귫귬귭귮귯귰귱귲귳귴귵귶귷�".split(""),t=0;t!=n[130].length;++t)n[130][t].charCodeAt(0)!==65533&&(i[n[130][t]]=33280+t,r[33280+t]=n[130][t]);for(n[131]="�����������������������������������������������������������������귺귻귽귾긂긃긄긅긆긇긊긌긎긏긐긑긒긓긕긖긗긘긙긚긛긜������긝긞긟긠긡긢긣긤긥긦긧긨긩긪긫긬긭긮긯긲긳긵긶긹긻긼������긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗깘깙깚깛깞깢깣깤깦깧깪깫깭깮깯깱깲깳깴깵깶깷깺깾깿꺀꺁꺂꺃꺆꺇꺈꺉꺊꺋꺍꺎꺏꺐꺑꺒꺓꺔꺕꺖꺗꺘꺙꺚꺛꺜꺝꺞꺟꺠꺡꺢꺣꺤꺥꺦꺧꺨꺩꺪꺫꺬꺭꺮꺯꺰꺱꺲꺳꺴꺵꺶꺷꺸꺹꺺꺻꺿껁껂껃껅껆껇껈껉껊껋껎껒껓껔껕껖껗껚껛껝껞껟껠껡껢껣껤껥�".split(""),t=0;t!=n[131].length;++t)n[131][t].charCodeAt(0)!==65533&&(i[n[131][t]]=33536+t,r[33536+t]=n[131][t]);for(n[132]="�����������������������������������������������������������������껦껧껩껪껬껮껯껰껱껲껳껵껶껷껹껺껻껽껾껿꼀꼁꼂꼃꼄꼅������꼆꼉꼊꼋꼌꼎꼏꼑꼒꼓꼔꼕꼖꼗꼘꼙꼚꼛꼜꼝꼞꼟꼠꼡꼢꼣������꼤꼥꼦꼧꼨꼩꼪꼫꼮꼯꼱꼳꼵꼶꼷꼸꼹꼺꼻꼾꽀꽄꽅꽆꽇꽊꽋꽌꽍꽎꽏꽑꽒꽓꽔꽕꽖꽗꽘꽙꽚꽛꽞꽟꽠꽡꽢꽣꽦꽧꽨꽩꽪꽫꽬꽭꽮꽯꽰꽱꽲꽳꽴꽵꽶꽷꽸꽺꽻꽼꽽꽾꽿꾁꾂꾃꾅꾆꾇꾉꾊꾋꾌꾍꾎꾏꾒꾓꾔꾖꾗꾘꾙꾚꾛꾝꾞꾟꾠꾡꾢꾣꾤꾥꾦꾧꾨꾩꾪꾫꾬꾭꾮꾯꾰꾱꾲꾳꾴꾵꾶꾷꾺꾻꾽꾾�".split(""),t=0;t!=n[132].length;++t)n[132][t].charCodeAt(0)!==65533&&(i[n[132][t]]=33792+t,r[33792+t]=n[132][t]);for(n[133]="�����������������������������������������������������������������꾿꿁꿂꿃꿄꿅꿆꿊꿌꿏꿐꿑꿒꿓꿕꿖꿗꿘꿙꿚꿛꿝꿞꿟꿠꿡������꿢꿣꿤꿥꿦꿧꿪꿫꿬꿭꿮꿯꿲꿳꿵꿶꿷꿹꿺꿻꿼꿽꿾꿿뀂뀃������뀅뀆뀇뀈뀉뀊뀋뀍뀎뀏뀑뀒뀓뀕뀖뀗뀘뀙뀚뀛뀞뀟뀠뀡뀢뀣뀤뀥뀦뀧뀩뀪뀫뀬뀭뀮뀯뀰뀱뀲뀳뀴뀵뀶뀷뀸뀹뀺뀻뀼뀽뀾뀿끀끁끂끃끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞끟끠끡끢끣끤끥끦끧끨끩끪끫끬끭끮끯끰끱끲끳끴끵끶끷끸끹끺끻끾끿낁낂낃낅낆낇낈낉낊낋낎낐낒낓낔낕낖낗낛낝낞낣낤�".split(""),t=0;t!=n[133].length;++t)n[133][t].charCodeAt(0)!==65533&&(i[n[133][t]]=34048+t,r[34048+t]=n[133][t]);for(n[134]="�����������������������������������������������������������������낥낦낧낪낰낲낶낷낹낺낻낽낾낿냀냁냂냃냆냊냋냌냍냎냏냒������냓냕냖냗냙냚냛냜냝냞냟냡냢냣냤냦냧냨냩냪냫냬냭냮냯냰������냱냲냳냴냵냶냷냸냹냺냻냼냽냾냿넀넁넂넃넄넅넆넇넊넍넎넏넑넔넕넖넗넚넞넟넠넡넢넦넧넩넪넫넭넮넯넰넱넲넳넶넺넻넼넽넾넿녂녃녅녆녇녉녊녋녌녍녎녏녒녓녖녗녙녚녛녝녞녟녡녢녣녤녥녦녧녨녩녪녫녬녭녮녯녰녱녲녳녴녵녶녷녺녻녽녾녿놁놃놄놅놆놇놊놌놎놏놐놑놕놖놗놙놚놛놝�".split(""),t=0;t!=n[134].length;++t)n[134][t].charCodeAt(0)!==65533&&(i[n[134][t]]=34304+t,r[34304+t]=n[134][t]);for(n[135]="�����������������������������������������������������������������놞놟놠놡놢놣놤놥놦놧놩놪놫놬놭놮놯놰놱놲놳놴놵놶놷놸������놹놺놻놼놽놾놿뇀뇁뇂뇃뇄뇅뇆뇇뇈뇉뇊뇋뇍뇎뇏뇑뇒뇓뇕������뇖뇗뇘뇙뇚뇛뇞뇠뇡뇢뇣뇤뇥뇦뇧뇪뇫뇭뇮뇯뇱뇲뇳뇴뇵뇶뇷뇸뇺뇼뇾뇿눀눁눂눃눆눇눉눊눍눎눏눐눑눒눓눖눘눚눛눜눝눞눟눡눢눣눤눥눦눧눨눩눪눫눬눭눮눯눰눱눲눳눵눶눷눸눹눺눻눽눾눿뉀뉁뉂뉃뉄뉅뉆뉇뉈뉉뉊뉋뉌뉍뉎뉏뉐뉑뉒뉓뉔뉕뉖뉗뉙뉚뉛뉝뉞뉟뉡뉢뉣뉤뉥뉦뉧뉪뉫뉬뉭뉮�".split(""),t=0;t!=n[135].length;++t)n[135][t].charCodeAt(0)!==65533&&(i[n[135][t]]=34560+t,r[34560+t]=n[135][t]);for(n[136]="�����������������������������������������������������������������뉯뉰뉱뉲뉳뉶뉷뉸뉹뉺뉻뉽뉾뉿늀늁늂늃늆늇늈늊늋늌늍늎������늏늒늓늕늖늗늛늜늝늞늟늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷������늸늹늺늻늼늽늾늿닀닁닂닃닄닅닆닇닊닋닍닎닏닑닓닔닕닖닗닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉댊댋댌댍댎댏댒댖댗댘댙댚댛댝댞댟댠댡댢댣댤댥댦댧댨댩댪댫댬댭댮댯댰댱댲댳댴댵댶댷댸댹댺댻댼댽댾댿덀덁덂덃덄덅덆덇덈덉덊덋덌덍덎덏덐덑덒덓덗덙덚덝덠덡덢덣�".split(""),t=0;t!=n[136].length;++t)n[136][t].charCodeAt(0)!==65533&&(i[n[136][t]]=34816+t,r[34816+t]=n[136][t]);for(n[137]="�����������������������������������������������������������������덦덨덪덬덭덯덲덳덵덶덷덹덺덻덼덽덾덿뎂뎆뎇뎈뎉뎊뎋뎍������뎎뎏뎑뎒뎓뎕뎖뎗뎘뎙뎚뎛뎜뎝뎞뎟뎢뎣뎤뎥뎦뎧뎩뎪뎫뎭������뎮뎯뎰뎱뎲뎳뎴뎵뎶뎷뎸뎹뎺뎻뎼뎽뎾뎿돀돁돂돃돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩돪돫돬돭돮돯돰돱돲돳돴돵돶돷돸돹돺돻돽돾돿됀됁됂됃됄됅됆됇됈됉됊됋됌됍됎됏됑됒됓됔됕됖됗됙됚됛됝됞됟됡됢됣됤됥됦됧됪됬됭됮됯됰됱됲됳됵됶됷됸됹됺됻됼됽됾됿둀둁둂둃둄�".split(""),t=0;t!=n[137].length;++t)n[137][t].charCodeAt(0)!==65533&&(i[n[137][t]]=35072+t,r[35072+t]=n[137][t]);for(n[138]="�����������������������������������������������������������������둅둆둇둈둉둊둋둌둍둎둏둒둓둕둖둗둙둚둛둜둝둞둟둢둤둦������둧둨둩둪둫둭둮둯둰둱둲둳둴둵둶둷둸둹둺둻둼둽둾둿뒁뒂������뒃뒄뒅뒆뒇뒉뒊뒋뒌뒍뒎뒏뒐뒑뒒뒓뒔뒕뒖뒗뒘뒙뒚뒛뒜뒞뒟뒠뒡뒢뒣뒥뒦뒧뒩뒪뒫뒭뒮뒯뒰뒱뒲뒳뒴뒶뒸뒺뒻뒼뒽뒾뒿듁듂듃듅듆듇듉듊듋듌듍듎듏듑듒듓듔듖듗듘듙듚듛듞듟듡듢듥듧듨듩듪듫듮듰듲듳듴듵듶듷듹듺듻듼듽듾듿딀딁딂딃딄딅딆딇딈딉딊딋딌딍딎딏딐딑딒딓딖딗딙딚딝�".split(""),t=0;t!=n[138].length;++t)n[138][t].charCodeAt(0)!==65533&&(i[n[138][t]]=35328+t,r[35328+t]=n[138][t]);for(n[139]="�����������������������������������������������������������������딞딟딠딡딢딣딦딫딬딭딮딯딲딳딵딶딷딹딺딻딼딽딾딿땂땆������땇땈땉땊땎땏땑땒땓땕땖땗땘땙땚땛땞땢땣땤땥땦땧땨땩땪������땫땬땭땮땯땰땱땲땳땴땵땶땷땸땹땺땻땼땽땾땿떀떁떂떃떄떅떆떇떈떉떊떋떌떍떎떏떐떑떒떓떔떕떖떗떘떙떚떛떜떝떞떟떢떣떥떦떧떩떬떭떮떯떲떶떷떸떹떺떾떿뗁뗂뗃뗅뗆뗇뗈뗉뗊뗋뗎뗒뗓뗔뗕뗖뗗뗙뗚뗛뗜뗝뗞뗟뗠뗡뗢뗣뗤뗥뗦뗧뗨뗩뗪뗫뗭뗮뗯뗰뗱뗲뗳뗴뗵뗶뗷뗸뗹뗺뗻뗼뗽뗾뗿�".split(""),t=0;t!=n[139].length;++t)n[139][t].charCodeAt(0)!==65533&&(i[n[139][t]]=35584+t,r[35584+t]=n[139][t]);for(n[140]="�����������������������������������������������������������������똀똁똂똃똄똅똆똇똈똉똊똋똌똍똎똏똒똓똕똖똗똙똚똛똜똝������똞똟똠똡똢똣똤똦똧똨똩똪똫똭똮똯똰똱똲똳똵똶똷똸똹똺������똻똼똽똾똿뙀뙁뙂뙃뙄뙅뙆뙇뙉뙊뙋뙌뙍뙎뙏뙐뙑뙒뙓뙔뙕뙖뙗뙘뙙뙚뙛뙜뙝뙞뙟뙠뙡뙢뙣뙥뙦뙧뙩뙪뙫뙬뙭뙮뙯뙰뙱뙲뙳뙴뙵뙶뙷뙸뙹뙺뙻뙼뙽뙾뙿뚀뚁뚂뚃뚄뚅뚆뚇뚈뚉뚊뚋뚌뚍뚎뚏뚐뚑뚒뚓뚔뚕뚖뚗뚘뚙뚚뚛뚞뚟뚡뚢뚣뚥뚦뚧뚨뚩뚪뚭뚮뚯뚰뚲뚳뚴뚵뚶뚷뚸뚹뚺뚻뚼뚽뚾뚿뛀뛁뛂�".split(""),t=0;t!=n[140].length;++t)n[140][t].charCodeAt(0)!==65533&&(i[n[140][t]]=35840+t,r[35840+t]=n[140][t]);for(n[141]="�����������������������������������������������������������������뛃뛄뛅뛆뛇뛈뛉뛊뛋뛌뛍뛎뛏뛐뛑뛒뛓뛕뛖뛗뛘뛙뛚뛛뛜뛝������뛞뛟뛠뛡뛢뛣뛤뛥뛦뛧뛨뛩뛪뛫뛬뛭뛮뛯뛱뛲뛳뛵뛶뛷뛹뛺������뛻뛼뛽뛾뛿뜂뜃뜄뜆뜇뜈뜉뜊뜋뜌뜍뜎뜏뜐뜑뜒뜓뜔뜕뜖뜗뜘뜙뜚뜛뜜뜝뜞뜟뜠뜡뜢뜣뜤뜥뜦뜧뜪뜫뜭뜮뜱뜲뜳뜴뜵뜶뜷뜺뜼뜽뜾뜿띀띁띂띃띅띆띇띉띊띋띍띎띏띐띑띒띓띖띗띘띙띚띛띜띝띞띟띡띢띣띥띦띧띩띪띫띬띭띮띯띲띴띶띷띸띹띺띻띾띿랁랂랃랅랆랇랈랉랊랋랎랓랔랕랚랛랝랞�".split(""),t=0;t!=n[141].length;++t)n[141][t].charCodeAt(0)!==65533&&(i[n[141][t]]=36096+t,r[36096+t]=n[141][t]);for(n[142]="�����������������������������������������������������������������랟랡랢랣랤랥랦랧랪랮랯랰랱랲랳랶랷랹랺랻랼랽랾랿럀럁������럂럃럄럅럆럈럊럋럌럍럎럏럐럑럒럓럔럕럖럗럘럙럚럛럜럝������럞럟럠럡럢럣럤럥럦럧럨럩럪럫럮럯럱럲럳럵럶럷럸럹럺럻럾렂렃렄렅렆렊렋렍렎렏렑렒렓렔렕렖렗렚렜렞렟렠렡렢렣렦렧렩렪렫렭렮렯렰렱렲렳렶렺렻렼렽렾렿롁롂롃롅롆롇롈롉롊롋롌롍롎롏롐롒롔롕롖롗롘롙롚롛롞롟롡롢롣롥롦롧롨롩롪롫롮롰롲롳롴롵롶롷롹롺롻롽롾롿뢀뢁뢂뢃뢄�".split(""),t=0;t!=n[142].length;++t)n[142][t].charCodeAt(0)!==65533&&(i[n[142][t]]=36352+t,r[36352+t]=n[142][t]);for(n[143]="�����������������������������������������������������������������뢅뢆뢇뢈뢉뢊뢋뢌뢎뢏뢐뢑뢒뢓뢔뢕뢖뢗뢘뢙뢚뢛뢜뢝뢞뢟������뢠뢡뢢뢣뢤뢥뢦뢧뢩뢪뢫뢬뢭뢮뢯뢱뢲뢳뢵뢶뢷뢹뢺뢻뢼뢽������뢾뢿룂룄룆룇룈룉룊룋룍룎룏룑룒룓룕룖룗룘룙룚룛룜룞룠룢룣룤룥룦룧룪룫룭룮룯룱룲룳룴룵룶룷룺룼룾룿뤀뤁뤂뤃뤅뤆뤇뤈뤉뤊뤋뤌뤍뤎뤏뤐뤑뤒뤓뤔뤕뤖뤗뤙뤚뤛뤜뤝뤞뤟뤡뤢뤣뤤뤥뤦뤧뤨뤩뤪뤫뤬뤭뤮뤯뤰뤱뤲뤳뤴뤵뤶뤷뤸뤹뤺뤻뤾뤿륁륂륃륅륆륇륈륉륊륋륍륎륐륒륓륔륕륖륗�".split(""),t=0;t!=n[143].length;++t)n[143][t].charCodeAt(0)!==65533&&(i[n[143][t]]=36608+t,r[36608+t]=n[143][t]);for(n[144]="�����������������������������������������������������������������륚륛륝륞륟륡륢륣륤륥륦륧륪륬륮륯륰륱륲륳륶륷륹륺륻륽������륾륿릀릁릂릃릆릈릋릌릏릐릑릒릓릔릕릖릗릘릙릚릛릜릝릞������릟릠릡릢릣릤릥릦릧릨릩릪릫릮릯릱릲릳릵릶릷릸릹릺릻릾맀맂맃맄맅맆맇맊맋맍맓맔맕맖맗맚맜맟맠맢맦맧맩맪맫맭맮맯맰맱맲맳맶맻맼맽맾맿먂먃먄먅먆먇먉먊먋먌먍먎먏먐먑먒먓먔먖먗먘먙먚먛먜먝먞먟먠먡먢먣먤먥먦먧먨먩먪먫먬먭먮먯먰먱먲먳먴먵먶먷먺먻먽먾먿멁멃멄멅멆�".split(""),t=0;t!=n[144].length;++t)n[144][t].charCodeAt(0)!==65533&&(i[n[144][t]]=36864+t,r[36864+t]=n[144][t]);for(n[145]="�����������������������������������������������������������������멇멊멌멏멐멑멒멖멗멙멚멛멝멞멟멠멡멢멣멦멪멫멬멭멮멯������멲멳멵멶멷멹멺멻멼멽멾멿몀몁몂몆몈몉몊몋몍몎몏몐몑몒������몓몔몕몖몗몘몙몚몛몜몝몞몟몠몡몢몣몤몥몦몧몪몭몮몯몱몳몴몵몶몷몺몼몾몿뫀뫁뫂뫃뫅뫆뫇뫉뫊뫋뫌뫍뫎뫏뫐뫑뫒뫓뫔뫕뫖뫗뫚뫛뫜뫝뫞뫟뫠뫡뫢뫣뫤뫥뫦뫧뫨뫩뫪뫫뫬뫭뫮뫯뫰뫱뫲뫳뫴뫵뫶뫷뫸뫹뫺뫻뫽뫾뫿묁묂묃묅묆묇묈묉묊묋묌묎묐묒묓묔묕묖묗묙묚묛묝묞묟묡묢묣묤묥묦묧�".split(""),t=0;t!=n[145].length;++t)n[145][t].charCodeAt(0)!==65533&&(i[n[145][t]]=37120+t,r[37120+t]=n[145][t]);for(n[146]="�����������������������������������������������������������������묨묪묬묭묮묯묰묱묲묳묷묹묺묿뭀뭁뭂뭃뭆뭈뭊뭋뭌뭎뭑뭒������뭓뭕뭖뭗뭙뭚뭛뭜뭝뭞뭟뭠뭢뭤뭥뭦뭧뭨뭩뭪뭫뭭뭮뭯뭰뭱������뭲뭳뭴뭵뭶뭷뭸뭹뭺뭻뭼뭽뭾뭿뮀뮁뮂뮃뮄뮅뮆뮇뮉뮊뮋뮍뮎뮏뮑뮒뮓뮔뮕뮖뮗뮘뮙뮚뮛뮜뮝뮞뮟뮠뮡뮢뮣뮥뮦뮧뮩뮪뮫뮭뮮뮯뮰뮱뮲뮳뮵뮶뮸뮹뮺뮻뮼뮽뮾뮿믁믂믃믅믆믇믉믊믋믌믍믎믏믑믒믔믕믖믗믘믙믚믛믜믝믞믟믠믡믢믣믤믥믦믧믨믩믪믫믬믭믮믯믰믱믲믳믴믵믶믷믺믻믽믾밁�".split(""),t=0;t!=n[146].length;++t)n[146][t].charCodeAt(0)!==65533&&(i[n[146][t]]=37376+t,r[37376+t]=n[146][t]);for(n[147]="�����������������������������������������������������������������밃밄밅밆밇밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵������밶밷밹밺밻밼밽밾밿뱂뱆뱇뱈뱊뱋뱎뱏뱑뱒뱓뱔뱕뱖뱗뱘뱙������뱚뱛뱜뱞뱟뱠뱡뱢뱣뱤뱥뱦뱧뱨뱩뱪뱫뱬뱭뱮뱯뱰뱱뱲뱳뱴뱵뱶뱷뱸뱹뱺뱻뱼뱽뱾뱿벀벁벂벃벆벇벉벊벍벏벐벑벒벓벖벘벛벜벝벞벟벢벣벥벦벩벪벫벬벭벮벯벲벶벷벸벹벺벻벾벿볁볂볃볅볆볇볈볉볊볋볌볎볒볓볔볖볗볙볚볛볝볞볟볠볡볢볣볤볥볦볧볨볩볪볫볬볭볮볯볰볱볲볳볷볹볺볻볽�".split(""),t=0;t!=n[147].length;++t)n[147][t].charCodeAt(0)!==65533&&(i[n[147][t]]=37632+t,r[37632+t]=n[147][t]);for(n[148]="�����������������������������������������������������������������볾볿봀봁봂봃봆봈봊봋봌봍봎봏봑봒봓봕봖봗봘봙봚봛봜봝������봞봟봠봡봢봣봥봦봧봨봩봪봫봭봮봯봰봱봲봳봴봵봶봷봸봹������봺봻봼봽봾봿뵁뵂뵃뵄뵅뵆뵇뵊뵋뵍뵎뵏뵑뵒뵓뵔뵕뵖뵗뵚뵛뵜뵝뵞뵟뵠뵡뵢뵣뵥뵦뵧뵩뵪뵫뵬뵭뵮뵯뵰뵱뵲뵳뵴뵵뵶뵷뵸뵹뵺뵻뵼뵽뵾뵿붂붃붅붆붋붌붍붎붏붒붔붖붗붘붛붝붞붟붠붡붢붣붥붦붧붨붩붪붫붬붭붮붯붱붲붳붴붵붶붷붹붺붻붼붽붾붿뷀뷁뷂뷃뷄뷅뷆뷇뷈뷉뷊뷋뷌뷍뷎뷏뷐뷑�".split(""),t=0;t!=n[148].length;++t)n[148][t].charCodeAt(0)!==65533&&(i[n[148][t]]=37888+t,r[37888+t]=n[148][t]);for(n[149]="�����������������������������������������������������������������뷒뷓뷖뷗뷙뷚뷛뷝뷞뷟뷠뷡뷢뷣뷤뷥뷦뷧뷨뷪뷫뷬뷭뷮뷯뷱������뷲뷳뷵뷶뷷뷹뷺뷻뷼뷽뷾뷿븁븂븄븆븇븈븉븊븋븎븏븑븒븓������븕븖븗븘븙븚븛븞븠븡븢븣븤븥븦븧븨븩븪븫븬븭븮븯븰븱븲븳븴븵븶븷븸븹븺븻븼븽븾븿빀빁빂빃빆빇빉빊빋빍빏빐빑빒빓빖빘빜빝빞빟빢빣빥빦빧빩빫빬빭빮빯빲빶빷빸빹빺빾빿뺁뺂뺃뺅뺆뺇뺈뺉뺊뺋뺎뺒뺓뺔뺕뺖뺗뺚뺛뺜뺝뺞뺟뺠뺡뺢뺣뺤뺥뺦뺧뺩뺪뺫뺬뺭뺮뺯뺰뺱뺲뺳뺴뺵뺶뺷�".split(""),t=0;t!=n[149].length;++t)n[149][t].charCodeAt(0)!==65533&&(i[n[149][t]]=38144+t,r[38144+t]=n[149][t]);for(n[150]="�����������������������������������������������������������������뺸뺹뺺뺻뺼뺽뺾뺿뻀뻁뻂뻃뻄뻅뻆뻇뻈뻉뻊뻋뻌뻍뻎뻏뻒뻓������뻕뻖뻙뻚뻛뻜뻝뻞뻟뻡뻢뻦뻧뻨뻩뻪뻫뻭뻮뻯뻰뻱뻲뻳뻴뻵������뻶뻷뻸뻹뻺뻻뻼뻽뻾뻿뼀뼂뼃뼄뼅뼆뼇뼊뼋뼌뼍뼎뼏뼐뼑뼒뼓뼔뼕뼖뼗뼚뼞뼟뼠뼡뼢뼣뼤뼥뼦뼧뼨뼩뼪뼫뼬뼭뼮뼯뼰뼱뼲뼳뼴뼵뼶뼷뼸뼹뼺뼻뼼뼽뼾뼿뽂뽃뽅뽆뽇뽉뽊뽋뽌뽍뽎뽏뽒뽓뽔뽖뽗뽘뽙뽚뽛뽜뽝뽞뽟뽠뽡뽢뽣뽤뽥뽦뽧뽨뽩뽪뽫뽬뽭뽮뽯뽰뽱뽲뽳뽴뽵뽶뽷뽸뽹뽺뽻뽼뽽뽾뽿뾀뾁뾂�".split(""),t=0;t!=n[150].length;++t)n[150][t].charCodeAt(0)!==65533&&(i[n[150][t]]=38400+t,r[38400+t]=n[150][t]);for(n[151]="�����������������������������������������������������������������뾃뾄뾅뾆뾇뾈뾉뾊뾋뾌뾍뾎뾏뾐뾑뾒뾓뾕뾖뾗뾘뾙뾚뾛뾜뾝������뾞뾟뾠뾡뾢뾣뾤뾥뾦뾧뾨뾩뾪뾫뾬뾭뾮뾯뾱뾲뾳뾴뾵뾶뾷뾸������뾹뾺뾻뾼뾽뾾뾿뿀뿁뿂뿃뿄뿆뿇뿈뿉뿊뿋뿎뿏뿑뿒뿓뿕뿖뿗뿘뿙뿚뿛뿝뿞뿠뿢뿣뿤뿥뿦뿧뿨뿩뿪뿫뿬뿭뿮뿯뿰뿱뿲뿳뿴뿵뿶뿷뿸뿹뿺뿻뿼뿽뿾뿿쀀쀁쀂쀃쀄쀅쀆쀇쀈쀉쀊쀋쀌쀍쀎쀏쀐쀑쀒쀓쀔쀕쀖쀗쀘쀙쀚쀛쀜쀝쀞쀟쀠쀡쀢쀣쀤쀥쀦쀧쀨쀩쀪쀫쀬쀭쀮쀯쀰쀱쀲쀳쀴쀵쀶쀷쀸쀹쀺쀻쀽쀾쀿�".split(""),t=0;t!=n[151].length;++t)n[151][t].charCodeAt(0)!==65533&&(i[n[151][t]]=38656+t,r[38656+t]=n[151][t]);for(n[152]="�����������������������������������������������������������������쁀쁁쁂쁃쁄쁅쁆쁇쁈쁉쁊쁋쁌쁍쁎쁏쁐쁒쁓쁔쁕쁖쁗쁙쁚쁛������쁝쁞쁟쁡쁢쁣쁤쁥쁦쁧쁪쁫쁬쁭쁮쁯쁰쁱쁲쁳쁴쁵쁶쁷쁸쁹������쁺쁻쁼쁽쁾쁿삀삁삂삃삄삅삆삇삈삉삊삋삌삍삎삏삒삓삕삖삗삙삚삛삜삝삞삟삢삤삦삧삨삩삪삫삮삱삲삷삸삹삺삻삾샂샃샄샆샇샊샋샍샎샏샑샒샓샔샕샖샗샚샞샟샠샡샢샣샦샧샩샪샫샭샮샯샰샱샲샳샶샸샺샻샼샽샾샿섁섂섃섅섆섇섉섊섋섌섍섎섏섑섒섓섔섖섗섘섙섚섛섡섢섥섨섩섪섫섮�".split(""),t=0;t!=n[152].length;++t)n[152][t].charCodeAt(0)!==65533&&(i[n[152][t]]=38912+t,r[38912+t]=n[152][t]);for(n[153]="�����������������������������������������������������������������섲섳섴섵섷섺섻섽섾섿셁셂셃셄셅셆셇셊셎셏셐셑셒셓셖셗������셙셚셛셝셞셟셠셡셢셣셦셪셫셬셭셮셯셱셲셳셵셶셷셹셺셻������셼셽셾셿솀솁솂솃솄솆솇솈솉솊솋솏솑솒솓솕솗솘솙솚솛솞솠솢솣솤솦솧솪솫솭솮솯솱솲솳솴솵솶솷솸솹솺솻솼솾솿쇀쇁쇂쇃쇅쇆쇇쇉쇊쇋쇍쇎쇏쇐쇑쇒쇓쇕쇖쇙쇚쇛쇜쇝쇞쇟쇡쇢쇣쇥쇦쇧쇩쇪쇫쇬쇭쇮쇯쇲쇴쇵쇶쇷쇸쇹쇺쇻쇾쇿숁숂숃숅숆숇숈숉숊숋숎숐숒숓숔숕숖숗숚숛숝숞숡숢숣�".split(""),t=0;t!=n[153].length;++t)n[153][t].charCodeAt(0)!==65533&&(i[n[153][t]]=39168+t,r[39168+t]=n[153][t]);for(n[154]="�����������������������������������������������������������������숤숥숦숧숪숬숮숰숳숵숶숷숸숹숺숻숼숽숾숿쉀쉁쉂쉃쉄쉅������쉆쉇쉉쉊쉋쉌쉍쉎쉏쉒쉓쉕쉖쉗쉙쉚쉛쉜쉝쉞쉟쉡쉢쉣쉤쉦������쉧쉨쉩쉪쉫쉮쉯쉱쉲쉳쉵쉶쉷쉸쉹쉺쉻쉾슀슂슃슄슅슆슇슊슋슌슍슎슏슑슒슓슔슕슖슗슙슚슜슞슟슠슡슢슣슦슧슩슪슫슮슯슰슱슲슳슶슸슺슻슼슽슾슿싀싁싂싃싄싅싆싇싈싉싊싋싌싍싎싏싐싑싒싓싔싕싖싗싘싙싚싛싞싟싡싢싥싦싧싨싩싪싮싰싲싳싴싵싷싺싽싾싿쌁쌂쌃쌄쌅쌆쌇쌊쌋쌎쌏�".split(""),t=0;t!=n[154].length;++t)n[154][t].charCodeAt(0)!==65533&&(i[n[154][t]]=39424+t,r[39424+t]=n[154][t]);for(n[155]="�����������������������������������������������������������������쌐쌑쌒쌖쌗쌙쌚쌛쌝쌞쌟쌠쌡쌢쌣쌦쌧쌪쌫쌬쌭쌮쌯쌰쌱쌲������쌳쌴쌵쌶쌷쌸쌹쌺쌻쌼쌽쌾쌿썀썁썂썃썄썆썇썈썉썊썋썌썍������썎썏썐썑썒썓썔썕썖썗썘썙썚썛썜썝썞썟썠썡썢썣썤썥썦썧썪썫썭썮썯썱썳썴썵썶썷썺썻썾썿쎀쎁쎂쎃쎅쎆쎇쎉쎊쎋쎍쎎쎏쎐쎑쎒쎓쎔쎕쎖쎗쎘쎙쎚쎛쎜쎝쎞쎟쎠쎡쎢쎣쎤쎥쎦쎧쎨쎩쎪쎫쎬쎭쎮쎯쎰쎱쎲쎳쎴쎵쎶쎷쎸쎹쎺쎻쎼쎽쎾쎿쏁쏂쏃쏄쏅쏆쏇쏈쏉쏊쏋쏌쏍쏎쏏쏐쏑쏒쏓쏔쏕쏖쏗쏚�".split(""),t=0;t!=n[155].length;++t)n[155][t].charCodeAt(0)!==65533&&(i[n[155][t]]=39680+t,r[39680+t]=n[155][t]);for(n[156]="�����������������������������������������������������������������쏛쏝쏞쏡쏣쏤쏥쏦쏧쏪쏫쏬쏮쏯쏰쏱쏲쏳쏶쏷쏹쏺쏻쏼쏽쏾������쏿쐀쐁쐂쐃쐄쐅쐆쐇쐉쐊쐋쐌쐍쐎쐏쐑쐒쐓쐔쐕쐖쐗쐘쐙쐚������쐛쐜쐝쐞쐟쐠쐡쐢쐣쐥쐦쐧쐨쐩쐪쐫쐭쐮쐯쐱쐲쐳쐵쐶쐷쐸쐹쐺쐻쐾쐿쑀쑁쑂쑃쑄쑅쑆쑇쑉쑊쑋쑌쑍쑎쑏쑐쑑쑒쑓쑔쑕쑖쑗쑘쑙쑚쑛쑜쑝쑞쑟쑠쑡쑢쑣쑦쑧쑩쑪쑫쑭쑮쑯쑰쑱쑲쑳쑶쑷쑸쑺쑻쑼쑽쑾쑿쒁쒂쒃쒄쒅쒆쒇쒈쒉쒊쒋쒌쒍쒎쒏쒐쒑쒒쒓쒕쒖쒗쒘쒙쒚쒛쒝쒞쒟쒠쒡쒢쒣쒤쒥쒦쒧쒨쒩�".split(""),t=0;t!=n[156].length;++t)n[156][t].charCodeAt(0)!==65533&&(i[n[156][t]]=39936+t,r[39936+t]=n[156][t]);for(n[157]="�����������������������������������������������������������������쒪쒫쒬쒭쒮쒯쒰쒱쒲쒳쒴쒵쒶쒷쒹쒺쒻쒽쒾쒿쓀쓁쓂쓃쓄쓅������쓆쓇쓈쓉쓊쓋쓌쓍쓎쓏쓐쓑쓒쓓쓔쓕쓖쓗쓘쓙쓚쓛쓜쓝쓞쓟������쓠쓡쓢쓣쓤쓥쓦쓧쓨쓪쓫쓬쓭쓮쓯쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂씃씄씅씆씇씈씉씊씋씍씎씏씑씒씓씕씖씗씘씙씚씛씝씞씟씠씡씢씣씤씥씦씧씪씫씭씮씯씱씲씳씴씵씶씷씺씼씾씿앀앁앂앃앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩앪앫앬앭앮앯앲앶앷앸앹앺앻앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔�".split(""),t=0;t!=n[157].length;++t)n[157][t].charCodeAt(0)!==65533&&(i[n[157][t]]=40192+t,r[40192+t]=n[157][t]);for(n[158]="�����������������������������������������������������������������얖얙얚얛얝얞얟얡얢얣얤얥얦얧얨얪얫얬얭얮얯얰얱얲얳얶������얷얺얿엀엁엂엃엋엍엏엒엓엕엖엗엙엚엛엜엝엞엟엢엤엦엧������엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑옒옓옔옕옖옗옚옝옞옟옠옡옢옣옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉왊왋왌왍왎왏왒왖왗왘왙왚왛왞왟왡왢왣왤왥왦왧왨왩왪왫왭왮왰왲왳왴왵왶왷왺왻왽왾왿욁욂욃욄욅욆욇욊욌욎욏욐욑욒욓욖욗욙욚욛욝욞욟욠욡욢욣욦�".split(""),t=0;t!=n[158].length;++t)n[158][t].charCodeAt(0)!==65533&&(i[n[158][t]]=40448+t,r[40448+t]=n[158][t]);for(n[159]="�����������������������������������������������������������������욨욪욫욬욭욮욯욲욳욵욶욷욻욼욽욾욿웂웄웆웇웈웉웊웋웎������웏웑웒웓웕웖웗웘웙웚웛웞웟웢웣웤웥웦웧웪웫웭웮웯웱웲������웳웴웵웶웷웺웻웼웾웿윀윁윂윃윆윇윉윊윋윍윎윏윐윑윒윓윖윘윚윛윜윝윞윟윢윣윥윦윧윩윪윫윬윭윮윯윲윴윶윸윹윺윻윾윿읁읂읃읅읆읇읈읉읋읎읐읙읚읛읝읞읟읡읢읣읤읥읦읧읩읪읬읭읮읯읰읱읲읳읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛잜잝잞잟잢잧잨잩잪잫잮잯잱잲잳잵잶잷�".split(""),t=0;t!=n[159].length;++t)n[159][t].charCodeAt(0)!==65533&&(i[n[159][t]]=40704+t,r[40704+t]=n[159][t]);for(n[160]="�����������������������������������������������������������������잸잹잺잻잾쟂쟃쟄쟅쟆쟇쟊쟋쟍쟏쟑쟒쟓쟔쟕쟖쟗쟙쟚쟛쟜������쟞쟟쟠쟡쟢쟣쟥쟦쟧쟩쟪쟫쟭쟮쟯쟰쟱쟲쟳쟴쟵쟶쟷쟸쟹쟺������쟻쟼쟽쟾쟿젂젃젅젆젇젉젋젌젍젎젏젒젔젗젘젙젚젛젞젟젡젢젣젥젦젧젨젩젪젫젮젰젲젳젴젵젶젷젹젺젻젽젾젿졁졂졃졄졅졆졇졊졋졎졏졐졑졒졓졕졖졗졘졙졚졛졜졝졞졟졠졡졢졣졤졥졦졧졨졩졪졫졬졭졮졯졲졳졵졶졷졹졻졼졽졾졿좂좄좈좉좊좎좏좐좑좒좓좕좖좗좘좙좚좛좜좞좠좢좣좤�".split(""),t=0;t!=n[160].length;++t)n[160][t].charCodeAt(0)!==65533&&(i[n[160][t]]=40960+t,r[40960+t]=n[160][t]);for(n[161]="�����������������������������������������������������������������좥좦좧좩좪좫좬좭좮좯좰좱좲좳좴좵좶좷좸좹좺좻좾좿죀죁������죂죃죅죆죇죉죊죋죍죎죏죐죑죒죓죖죘죚죛죜죝죞죟죢죣죥������죦죧죨죩죪죫죬죭죮죯죰죱죲죳죴죶죷죸죹죺죻죾죿줁줂줃줇줈줉줊줋줎　、。·‥…¨〃­―∥＼∼‘’“”〔〕〈〉《》「」『』【】±×÷≠≤≥∞∴°′″℃Å￠￡￥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨￢�".split(""),t=0;t!=n[161].length;++t)n[161][t].charCodeAt(0)!==65533&&(i[n[161][t]]=41216+t,r[41216+t]=n[161][t]);for(n[162]="�����������������������������������������������������������������줐줒줓줔줕줖줗줙줚줛줜줝줞줟줠줡줢줣줤줥줦줧줨줩줪줫������줭줮줯줰줱줲줳줵줶줷줸줹줺줻줼줽줾줿쥀쥁쥂쥃쥄쥅쥆쥇������쥈쥉쥊쥋쥌쥍쥎쥏쥒쥓쥕쥖쥗쥙쥚쥛쥜쥝쥞쥟쥢쥤쥥쥦쥧쥨쥩쥪쥫쥭쥮쥯⇒⇔∀∃´～ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®������������������������".split(""),t=0;t!=n[162].length;++t)n[162][t].charCodeAt(0)!==65533&&(i[n[162][t]]=41472+t,r[41472+t]=n[162][t]);for(n[163]="�����������������������������������������������������������������쥱쥲쥳쥵쥶쥷쥸쥹쥺쥻쥽쥾쥿즀즁즂즃즄즅즆즇즊즋즍즎즏������즑즒즓즔즕즖즗즚즜즞즟즠즡즢즣즤즥즦즧즨즩즪즫즬즭즮������즯즰즱즲즳즴즵즶즷즸즹즺즻즼즽즾즿짂짃짅짆짉짋짌짍짎짏짒짔짗짘짛！＂＃＄％＆＇（）＊＋，－．／０１２３４５６７８９：；＜＝＞？＠ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺ［￦］＾＿｀ａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚ｛｜｝￣�".split(""),t=0;t!=n[163].length;++t)n[163][t].charCodeAt(0)!==65533&&(i[n[163][t]]=41728+t,r[41728+t]=n[163][t]);for(n[164]="�����������������������������������������������������������������짞짟짡짣짥짦짨짩짪짫짮짲짳짴짵짶짷짺짻짽짾짿쨁쨂쨃쨄������쨅쨆쨇쨊쨎쨏쨐쨑쨒쨓쨕쨖쨗쨙쨚쨛쨜쨝쨞쨟쨠쨡쨢쨣쨤쨥������쨦쨧쨨쨪쨫쨬쨭쨮쨯쨰쨱쨲쨳쨴쨵쨶쨷쨸쨹쨺쨻쨼쨽쨾쨿쩀쩁쩂쩃쩄쩅쩆ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ�".split(""),t=0;t!=n[164].length;++t)n[164][t].charCodeAt(0)!==65533&&(i[n[164][t]]=41984+t,r[41984+t]=n[164][t]);for(n[165]="�����������������������������������������������������������������쩇쩈쩉쩊쩋쩎쩏쩑쩒쩓쩕쩖쩗쩘쩙쩚쩛쩞쩢쩣쩤쩥쩦쩧쩩쩪������쩫쩬쩭쩮쩯쩰쩱쩲쩳쩴쩵쩶쩷쩸쩹쩺쩻쩼쩾쩿쪀쪁쪂쪃쪅쪆������쪇쪈쪉쪊쪋쪌쪍쪎쪏쪐쪑쪒쪓쪔쪕쪖쪗쪙쪚쪛쪜쪝쪞쪟쪠쪡쪢쪣쪤쪥쪦쪧ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ�����ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������".split(""),t=0;t!=n[165].length;++t)n[165][t].charCodeAt(0)!==65533&&(i[n[165][t]]=42240+t,r[42240+t]=n[165][t]);for(n[166]="�����������������������������������������������������������������쪨쪩쪪쪫쪬쪭쪮쪯쪰쪱쪲쪳쪴쪵쪶쪷쪸쪹쪺쪻쪾쪿쫁쫂쫃쫅������쫆쫇쫈쫉쫊쫋쫎쫐쫒쫔쫕쫖쫗쫚쫛쫜쫝쫞쫟쫡쫢쫣쫤쫥쫦쫧������쫨쫩쫪쫫쫭쫮쫯쫰쫱쫲쫳쫵쫶쫷쫸쫹쫺쫻쫼쫽쫾쫿쬀쬁쬂쬃쬄쬅쬆쬇쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃╄╅╆╇╈╉╊���������������������������".split(""),t=0;t!=n[166].length;++t)n[166][t].charCodeAt(0)!==65533&&(i[n[166][t]]=42496+t,r[42496+t]=n[166][t]);for(n[167]="�����������������������������������������������������������������쬋쬌쬍쬎쬏쬑쬒쬓쬕쬖쬗쬙쬚쬛쬜쬝쬞쬟쬢쬣쬤쬥쬦쬧쬨쬩������쬪쬫쬬쬭쬮쬯쬰쬱쬲쬳쬴쬵쬶쬷쬸쬹쬺쬻쬼쬽쬾쬿쭀쭂쭃쭄������쭅쭆쭇쭊쭋쭍쭎쭏쭑쭒쭓쭔쭕쭖쭗쭚쭛쭜쭞쭟쭠쭡쭢쭣쭥쭦쭧쭨쭩쭪쭫쭬㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙㎚㎛㎜㎝㎞㎟㎠㎡㎢㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰㎱㎲㎳㎴㎵㎶㎷㎸㎹㎀㎁㎂㎃㎄㎺㎻㎼㎽㎾㎿㎐㎑㎒㎓㎔Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆����������������".split(""),t=0;t!=n[167].length;++t)n[167][t].charCodeAt(0)!==65533&&(i[n[167][t]]=42752+t,r[42752+t]=n[167][t]);for(n[168]="�����������������������������������������������������������������쭭쭮쭯쭰쭱쭲쭳쭴쭵쭶쭷쭺쭻쭼쭽쭾쭿쮀쮁쮂쮃쮄쮅쮆쮇쮈������쮉쮊쮋쮌쮍쮎쮏쮐쮑쮒쮓쮔쮕쮖쮗쮘쮙쮚쮛쮝쮞쮟쮠쮡쮢쮣������쮤쮥쮦쮧쮨쮩쮪쮫쮬쮭쮮쮯쮰쮱쮲쮳쮴쮵쮶쮷쮹쮺쮻쮼쮽쮾쮿쯀쯁쯂쯃쯄ÆÐªĦ�Ĳ�ĿŁØŒºÞŦŊ�㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮½⅓⅔¼¾⅛⅜⅝⅞�".split(""),t=0;t!=n[168].length;++t)n[168][t].charCodeAt(0)!==65533&&(i[n[168][t]]=43008+t,r[43008+t]=n[168][t]);for(n[169]="�����������������������������������������������������������������쯅쯆쯇쯈쯉쯊쯋쯌쯍쯎쯏쯐쯑쯒쯓쯕쯖쯗쯘쯙쯚쯛쯜쯝쯞쯟������쯠쯡쯢쯣쯥쯦쯨쯪쯫쯬쯭쯮쯯쯰쯱쯲쯳쯴쯵쯶쯷쯸쯹쯺쯻쯼������쯽쯾쯿찀찁찂찃찄찅찆찇찈찉찊찋찎찏찑찒찓찕찖찗찘찙찚찛찞찟찠찣찤æđðħıĳĸŀłøœßþŧŋŉ㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂¹²³⁴ⁿ₁₂₃₄�".split(""),t=0;t!=n[169].length;++t)n[169][t].charCodeAt(0)!==65533&&(i[n[169][t]]=43264+t,r[43264+t]=n[169][t]);for(n[170]="�����������������������������������������������������������������찥찦찪찫찭찯찱찲찳찴찵찶찷찺찿챀챁챂챃챆챇챉챊챋챍챎������챏챐챑챒챓챖챚챛챜챝챞챟챡챢챣챥챧챩챪챫챬챭챮챯챱챲������챳챴챶챷챸챹챺챻챼챽챾챿첀첁첂첃첄첅첆첇첈첉첊첋첌첍첎첏첐첑첒첓ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),t=0;t!=n[170].length;++t)n[170][t].charCodeAt(0)!==65533&&(i[n[170][t]]=43520+t,r[43520+t]=n[170][t]);for(n[171]="�����������������������������������������������������������������첔첕첖첗첚첛첝첞첟첡첢첣첤첥첦첧첪첮첯첰첱첲첳첶첷첹������첺첻첽첾첿쳀쳁쳂쳃쳆쳈쳊쳋쳌쳍쳎쳏쳑쳒쳓쳕쳖쳗쳘쳙쳚������쳛쳜쳝쳞쳟쳠쳡쳢쳣쳥쳦쳧쳨쳩쳪쳫쳭쳮쳯쳱쳲쳳쳴쳵쳶쳷쳸쳹쳺쳻쳼쳽ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),t=0;t!=n[171].length;++t)n[171][t].charCodeAt(0)!==65533&&(i[n[171][t]]=43776+t,r[43776+t]=n[171][t]);for(n[172]="�����������������������������������������������������������������쳾쳿촀촂촃촄촅촆촇촊촋촍촎촏촑촒촓촔촕촖촗촚촜촞촟촠������촡촢촣촥촦촧촩촪촫촭촮촯촰촱촲촳촴촵촶촷촸촺촻촼촽촾������촿쵀쵁쵂쵃쵄쵅쵆쵇쵈쵉쵊쵋쵌쵍쵎쵏쵐쵑쵒쵓쵔쵕쵖쵗쵘쵙쵚쵛쵝쵞쵟АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),t=0;t!=n[172].length;++t)n[172][t].charCodeAt(0)!==65533&&(i[n[172][t]]=44032+t,r[44032+t]=n[172][t]);for(n[173]="�����������������������������������������������������������������쵡쵢쵣쵥쵦쵧쵨쵩쵪쵫쵮쵰쵲쵳쵴쵵쵶쵷쵹쵺쵻쵼쵽쵾쵿춀������춁춂춃춄춅춆춇춉춊춋춌춍춎춏춐춑춒춓춖춗춙춚춛춝춞춟������춠춡춢춣춦춨춪춫춬춭춮춯춱춲춳춴춵춶춷춸춹춺춻춼춽춾춿췀췁췂췃췅�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[173].length;++t)n[173][t].charCodeAt(0)!==65533&&(i[n[173][t]]=44288+t,r[44288+t]=n[173][t]);for(n[174]="�����������������������������������������������������������������췆췇췈췉췊췋췍췎췏췑췒췓췔췕췖췗췘췙췚췛췜췝췞췟췠췡������췢췣췤췥췦췧췩췪췫췭췮췯췱췲췳췴췵췶췷췺췼췾췿츀츁츂������츃츅츆츇츉츊츋츍츎츏츐츑츒츓츕츖츗츘츚츛츜츝츞츟츢츣츥츦츧츩츪츫�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[174].length;++t)n[174][t].charCodeAt(0)!==65533&&(i[n[174][t]]=44544+t,r[44544+t]=n[174][t]);for(n[175]="�����������������������������������������������������������������츬츭츮츯츲츴츶츷츸츹츺츻츼츽츾츿칀칁칂칃칄칅칆칇칈칉������칊칋칌칍칎칏칐칑칒칓칔칕칖칗칚칛칝칞칢칣칤칥칦칧칪칬������칮칯칰칱칲칳칶칷칹칺칻칽칾칿캀캁캂캃캆캈캊캋캌캍캎캏캒캓캕캖캗캙�����������������������������������������������������������������������������������������������".split(""),t=0;t!=n[175].length;++t)n[175][t].charCodeAt(0)!==65533&&(i[n[175][t]]=44800+t,r[44800+t]=n[175][t]);for(n[176]="�����������������������������������������������������������������캚캛캜캝캞캟캢캦캧캨캩캪캫캮캯캰캱캲캳캴캵캶캷캸캹캺������캻캼캽캾캿컀컂컃컄컅컆컇컈컉컊컋컌컍컎컏컐컑컒컓컔컕������컖컗컘컙컚컛컜컝컞컟컠컡컢컣컦컧컩컪컭컮컯컰컱컲컳컶컺컻컼컽컾컿가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆�".split(""),t=0;t!=n[176].length;++t)n[176][t].charCodeAt(0)!==65533&&(i[n[176][t]]=45056+t,r[45056+t]=n[176][t]);for(n[177]="�����������������������������������������������������������������켂켃켅켆켇켉켊켋켌켍켎켏켒켔켖켗켘켙켚켛켝켞켟켡켢켣������켥켦켧켨켩켪켫켮켲켳켴켵켶켷켹켺켻켼켽켾켿콀콁콂콃콄������콅콆콇콈콉콊콋콌콍콎콏콐콑콒콓콖콗콙콚콛콝콞콟콠콡콢콣콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸�".split(""),t=0;t!=n[177].length;++t)n[177][t].charCodeAt(0)!==65533&&(i[n[177][t]]=45312+t,r[45312+t]=n[177][t]);for(n[178]="�����������������������������������������������������������������콭콮콯콲콳콵콶콷콹콺콻콼콽콾콿쾁쾂쾃쾄쾆쾇쾈쾉쾊쾋쾍������쾎쾏쾐쾑쾒쾓쾔쾕쾖쾗쾘쾙쾚쾛쾜쾝쾞쾟쾠쾢쾣쾤쾥쾦쾧쾩������쾪쾫쾬쾭쾮쾯쾱쾲쾳쾴쾵쾶쾷쾸쾹쾺쾻쾼쾽쾾쾿쿀쿁쿂쿃쿅쿆쿇쿈쿉쿊쿋깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙�".split(""),t=0;t!=n[178].length;++t)n[178][t].charCodeAt(0)!==65533&&(i[n[178][t]]=45568+t,r[45568+t]=n[178][t]);for(n[179]="�����������������������������������������������������������������쿌쿍쿎쿏쿐쿑쿒쿓쿔쿕쿖쿗쿘쿙쿚쿛쿜쿝쿞쿟쿢쿣쿥쿦쿧쿩������쿪쿫쿬쿭쿮쿯쿲쿴쿶쿷쿸쿹쿺쿻쿽쿾쿿퀁퀂퀃퀅퀆퀇퀈퀉퀊������퀋퀌퀍퀎퀏퀐퀒퀓퀔퀕퀖퀗퀙퀚퀛퀜퀝퀞퀟퀠퀡퀢퀣퀤퀥퀦퀧퀨퀩퀪퀫퀬끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝�".split(""),t=0;t!=n[179].length;++t)n[179][t].charCodeAt(0)!==65533&&(i[n[179][t]]=45824+t,r[45824+t]=n[179][t]);for(n[180]="�����������������������������������������������������������������퀮퀯퀰퀱퀲퀳퀶퀷퀹퀺퀻퀽퀾퀿큀큁큂큃큆큈큊큋큌큍큎큏������큑큒큓큕큖큗큙큚큛큜큝큞큟큡큢큣큤큥큦큧큨큩큪큫큮큯������큱큲큳큵큶큷큸큹큺큻큾큿킀킂킃킄킅킆킇킈킉킊킋킌킍킎킏킐킑킒킓킔뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥�".split(""),t=0;t!=n[180].length;++t)n[180][t].charCodeAt(0)!==65533&&(i[n[180][t]]=46080+t,r[46080+t]=n[180][t]);for(n[181]="�����������������������������������������������������������������킕킖킗킘킙킚킛킜킝킞킟킠킡킢킣킦킧킩킪킫킭킮킯킰킱킲������킳킶킸킺킻킼킽킾킿탂탃탅탆탇탊탋탌탍탎탏탒탖탗탘탙탚������탛탞탟탡탢탣탥탦탧탨탩탪탫탮탲탳탴탵탶탷탹탺탻탼탽탾탿턀턁턂턃턄덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸�".split(""),t=0;t!=n[181].length;++t)n[181][t].charCodeAt(0)!==65533&&(i[n[181][t]]=46336+t,r[46336+t]=n[181][t]);for(n[182]="�����������������������������������������������������������������턅턆턇턈턉턊턋턌턎턏턐턑턒턓턔턕턖턗턘턙턚턛턜턝턞턟������턠턡턢턣턤턥턦턧턨턩턪턫턬턭턮턯턲턳턵턶턷턹턻턼턽턾������턿텂텆텇텈텉텊텋텎텏텑텒텓텕텖텗텘텙텚텛텞텠텢텣텤텥텦텧텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗�".split(""),t=0;t!=n[182].length;++t)n[182][t].charCodeAt(0)!==65533&&(i[n[182][t]]=46592+t,r[46592+t]=n[182][t]);for(n[183]="�����������������������������������������������������������������텮텯텰텱텲텳텴텵텶텷텸텹텺텻텽텾텿톀톁톂톃톅톆톇톉톊������톋톌톍톎톏톐톑톒톓톔톕톖톗톘톙톚톛톜톝톞톟톢톣톥톦톧������톩톪톫톬톭톮톯톲톴톶톷톸톹톻톽톾톿퇁퇂퇃퇄퇅퇆퇇퇈퇉퇊퇋퇌퇍퇎퇏래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩�".split(""),t=0;t!=n[183].length;++t)n[183][t].charCodeAt(0)!==65533&&(i[n[183][t]]=46848+t,r[46848+t]=n[183][t]);for(n[184]="�����������������������������������������������������������������퇐퇑퇒퇓퇔퇕퇖퇗퇙퇚퇛퇜퇝퇞퇟퇠퇡퇢퇣퇤퇥퇦퇧퇨퇩퇪������퇫퇬퇭퇮퇯퇰퇱퇲퇳퇵퇶퇷퇹퇺퇻퇼퇽퇾퇿툀툁툂툃툄툅툆������툈툊툋툌툍툎툏툑툒툓툔툕툖툗툘툙툚툛툜툝툞툟툠툡툢툣툤툥툦툧툨툩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼�".split(""),t=0;t!=n[184].length;++t)n[184][t].charCodeAt(0)!==65533&&(i[n[184][t]]=47104+t,r[47104+t]=n[184][t]);for(n[185]="�����������������������������������������������������������������툪툫툮툯툱툲툳툵툶툷툸툹툺툻툾퉀퉂퉃퉄퉅퉆퉇퉉퉊퉋퉌������퉍퉎퉏퉐퉑퉒퉓퉔퉕퉖퉗퉘퉙퉚퉛퉝퉞퉟퉠퉡퉢퉣퉥퉦퉧퉨������퉩퉪퉫퉬퉭퉮퉯퉰퉱퉲퉳퉴퉵퉶퉷퉸퉹퉺퉻퉼퉽퉾퉿튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗�".split(""),t=0;t!=n[185].length;++t)n[185][t].charCodeAt(0)!==65533&&(i[n[185][t]]=47360+t,r[47360+t]=n[185][t]);for(n[186]="�����������������������������������������������������������������튍튎튏튒튓튔튖튗튘튙튚튛튝튞튟튡튢튣튥튦튧튨튩튪튫튭������튮튯튰튲튳튴튵튶튷튺튻튽튾틁틃틄틅틆틇틊틌틍틎틏틐틑������틒틓틕틖틗틙틚틛틝틞틟틠틡틢틣틦틧틨틩틪틫틬틭틮틯틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤�".split(""),t=0;t!=n[186].length;++t)n[186][t].charCodeAt(0)!==65533&&(i[n[186][t]]=47616+t,r[47616+t]=n[186][t]);for(n[187]="�����������������������������������������������������������������틻틼틽틾틿팂팄팆팇팈팉팊팋팏팑팒팓팕팗팘팙팚팛팞팢팣������팤팦팧팪팫팭팮팯팱팲팳팴팵팶팷팺팾팿퍀퍁퍂퍃퍆퍇퍈퍉������퍊퍋퍌퍍퍎퍏퍐퍑퍒퍓퍔퍕퍖퍗퍘퍙퍚퍛퍜퍝퍞퍟퍠퍡퍢퍣퍤퍥퍦퍧퍨퍩빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤�".split(""),t=0;t!=n[187].length;++t)n[187][t].charCodeAt(0)!==65533&&(i[n[187][t]]=47872+t,r[47872+t]=n[187][t]);for(n[188]="�����������������������������������������������������������������퍪퍫퍬퍭퍮퍯퍰퍱퍲퍳퍴퍵퍶퍷퍸퍹퍺퍻퍾퍿펁펂펃펅펆펇������펈펉펊펋펎펒펓펔펕펖펗펚펛펝펞펟펡펢펣펤펥펦펧펪펬펮������펯펰펱펲펳펵펶펷펹펺펻펽펾펿폀폁폂폃폆폇폊폋폌폍폎폏폑폒폓폔폕폖샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭�".split(""),t=0;t!=n[188].length;++t)n[188][t].charCodeAt(0)!==65533&&(i[n[188][t]]=48128+t,r[48128+t]=n[188][t]);for(n[189]="�����������������������������������������������������������������폗폙폚폛폜폝폞폟폠폢폤폥폦폧폨폩폪폫폮폯폱폲폳폵폶폷������폸폹폺폻폾퐀퐂퐃퐄퐅퐆퐇퐉퐊퐋퐌퐍퐎퐏퐐퐑퐒퐓퐔퐕퐖������퐗퐘퐙퐚퐛퐜퐞퐟퐠퐡퐢퐣퐤퐥퐦퐧퐨퐩퐪퐫퐬퐭퐮퐯퐰퐱퐲퐳퐴퐵퐶퐷숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰�".split(""),t=0;t!=n[189].length;++t)n[189][t].charCodeAt(0)!==65533&&(i[n[189][t]]=48384+t,r[48384+t]=n[189][t]);for(n[190]="�����������������������������������������������������������������퐸퐹퐺퐻퐼퐽퐾퐿푁푂푃푅푆푇푈푉푊푋푌푍푎푏푐푑푒푓������푔푕푖푗푘푙푚푛푝푞푟푡푢푣푥푦푧푨푩푪푫푬푮푰푱푲������푳푴푵푶푷푺푻푽푾풁풃풄풅풆풇풊풌풎풏풐풑풒풓풕풖풗풘풙풚풛풜풝쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎�".split(""),t=0;t!=n[190].length;++t)n[190][t].charCodeAt(0)!==65533&&(i[n[190][t]]=48640+t,r[48640+t]=n[190][t]);for(n[191]="�����������������������������������������������������������������풞풟풠풡풢풣풤풥풦풧풨풪풫풬풭풮풯풰풱풲풳풴풵풶풷풸������풹풺풻풼풽풾풿퓀퓁퓂퓃퓄퓅퓆퓇퓈퓉퓊퓋퓍퓎퓏퓑퓒퓓퓕������퓖퓗퓘퓙퓚퓛퓝퓞퓠퓡퓢퓣퓤퓥퓦퓧퓩퓪퓫퓭퓮퓯퓱퓲퓳퓴퓵퓶퓷퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨�".split(""),t=0;t!=n[191].length;++t)n[191][t].charCodeAt(0)!==65533&&(i[n[191][t]]=48896+t,r[48896+t]=n[191][t]);for(n[192]="�����������������������������������������������������������������퓾퓿픀픁픂픃픅픆픇픉픊픋픍픎픏픐픑픒픓픖픘픙픚픛픜픝������픞픟픠픡픢픣픤픥픦픧픨픩픪픫픬픭픮픯픰픱픲픳픴픵픶픷������픸픹픺픻픾픿핁핂핃핅핆핇핈핉핊핋핎핐핒핓핔핕핖핗핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응읒읓읔읕읖읗의읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊�".split(""),t=0;t!=n[192].length;++t)n[192][t].charCodeAt(0)!==65533&&(i[n[192][t]]=49152+t,r[49152+t]=n[192][t]);for(n[193]="�����������������������������������������������������������������핤핦핧핪핬핮핯핰핱핲핳핶핷핹핺핻핽핾핿햀햁햂햃햆햊햋������햌햍햎햏햑햒햓햔햕햖햗햘햙햚햛햜햝햞햟햠햡햢햣햤햦햧������햨햩햪햫햬햭햮햯햰햱햲햳햴햵햶햷햸햹햺햻햼햽햾햿헀헁헂헃헄헅헆헇점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓�".split(""),t=0;t!=n[193].length;++t)n[193][t].charCodeAt(0)!==65533&&(i[n[193][t]]=49408+t,r[49408+t]=n[193][t]);for(n[194]="�����������������������������������������������������������������헊헋헍헎헏헑헓헔헕헖헗헚헜헞헟헠헡헢헣헦헧헩헪헫헭헮������헯헰헱헲헳헶헸헺헻헼헽헾헿혂혃혅혆혇혉혊혋혌혍혎혏혒������혖혗혘혙혚혛혝혞혟혡혢혣혥혦혧혨혩혪혫혬혮혯혰혱혲혳혴혵혶혷혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻�".split(""),t=0;t!=n[194].length;++t)n[194][t].charCodeAt(0)!==65533&&(i[n[194][t]]=49664+t,r[49664+t]=n[194][t]);for(n[195]="�����������������������������������������������������������������혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝홞홟홠홡������홢홣홤홥홦홨홪홫홬홭홮홯홲홳홵홶홷홸홹홺홻홼홽홾홿횀������횁횂횄횆횇횈횉횊횋횎횏횑횒횓횕횖횗횘횙횚횛횜횞횠횢횣횤횥횦횧횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층�".split(""),t=0;t!=n[195].length;++t)n[195][t].charCodeAt(0)!==65533&&(i[n[195][t]]=49920+t,r[49920+t]=n[195][t]);for(n[196]="�����������������������������������������������������������������횫횭횮횯횱횲횳횴횵횶횷횸횺횼횽횾횿훀훁훂훃훆훇훉훊훋������훍훎훏훐훒훓훕훖훘훚훛훜훝훞훟훡훢훣훥훦훧훩훪훫훬훭������훮훯훱훲훳훴훶훷훸훹훺훻훾훿휁휂휃휅휆휇휈휉휊휋휌휍휎휏휐휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼�".split(""),t=0;t!=n[196].length;++t)n[196][t].charCodeAt(0)!==65533&&(i[n[196][t]]=50176+t,r[50176+t]=n[196][t]);for(n[197]="�����������������������������������������������������������������휕휖휗휚휛휝휞휟휡휢휣휤휥휦휧휪휬휮휯휰휱휲휳휶휷휹������휺휻휽휾휿흀흁흂흃흅흆흈흊흋흌흍흎흏흒흓흕흚흛흜흝흞������흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵흶흷흸흹흺흻흾흿힀힂힃힄힅힆힇힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜�".split(""),t=0;t!=n[197].length;++t)n[197][t].charCodeAt(0)!==65533&&(i[n[197][t]]=50432+t,r[50432+t]=n[197][t]);for(n[198]="�����������������������������������������������������������������힍힎힏힑힒힓힔힕힖힗힚힜힞힟힠힡힢힣������������������������������������������������������������������������������퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁�".split(""),t=0;t!=n[198].length;++t)n[198][t].charCodeAt(0)!==65533&&(i[n[198][t]]=50688+t,r[50688+t]=n[198][t]);for(n[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠�".split(""),t=0;t!=n[199].length;++t)n[199][t].charCodeAt(0)!==65533&&(i[n[199][t]]=50944+t,r[50944+t]=n[199][t]);for(n[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝�".split(""),t=0;t!=n[200].length;++t)n[200][t].charCodeAt(0)!==65533&&(i[n[200][t]]=51200+t,r[51200+t]=n[200][t]);for(n[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕�".split(""),t=0;t!=n[202].length;++t)n[202][t].charCodeAt(0)!==65533&&(i[n[202][t]]=51712+t,r[51712+t]=n[202][t]);for(n[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢�".split(""),t=0;t!=n[203].length;++t)n[203][t].charCodeAt(0)!==65533&&(i[n[203][t]]=51968+t,r[51968+t]=n[203][t]);for(n[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械�".split(""),t=0;t!=n[204].length;++t)n[204][t].charCodeAt(0)!==65533&&(i[n[204][t]]=52224+t,r[52224+t]=n[204][t]);for(n[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜�".split(""),t=0;t!=n[205].length;++t)n[205][t].charCodeAt(0)!==65533&&(i[n[205][t]]=52480+t,r[52480+t]=n[205][t]);for(n[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾�".split(""),t=0;t!=n[206].length;++t)n[206][t].charCodeAt(0)!==65533&&(i[n[206][t]]=52736+t,r[52736+t]=n[206][t]);for(n[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴�".split(""),t=0;t!=n[207].length;++t)n[207][t].charCodeAt(0)!==65533&&(i[n[207][t]]=52992+t,r[52992+t]=n[207][t]);for(n[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣�".split(""),t=0;t!=n[208].length;++t)n[208][t].charCodeAt(0)!==65533&&(i[n[208][t]]=53248+t,r[53248+t]=n[208][t]);for(n[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩羅蘿螺裸邏那樂洛烙珞落諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉�".split(""),t=0;t!=n[209].length;++t)n[209][t].charCodeAt(0)!==65533&&(i[n[209][t]]=53504+t,r[53504+t]=n[209][t]);for(n[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������納臘蠟衲囊娘廊朗浪狼郎乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧老蘆虜路露駑魯鷺碌祿綠菉錄鹿論壟弄濃籠聾膿農惱牢磊腦賂雷尿壘屢樓淚漏累縷陋嫩訥杻紐勒肋凜凌稜綾能菱陵尼泥匿溺多茶�".split(""),t=0;t!=n[210].length;++t)n[210][t].charCodeAt(0)!==65533&&(i[n[210][t]]=53760+t,r[53760+t]=n[210][t]);for(n[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃�".split(""),t=0;t!=n[211].length;++t)n[211][t].charCodeAt(0)!==65533&&(i[n[211][t]]=54016+t,r[54016+t]=n[211][t]);for(n[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅�".split(""),t=0;t!=n[212].length;++t)n[212][t].charCodeAt(0)!==65533&&(i[n[212][t]]=54272+t,r[54272+t]=n[212][t]);for(n[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣�".split(""),t=0;t!=n[213].length;++t)n[213][t].charCodeAt(0)!==65533&&(i[n[213][t]]=54528+t,r[54528+t]=n[213][t]);for(n[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼�".split(""),t=0;t!=n[214].length;++t)n[214][t].charCodeAt(0)!==65533&&(i[n[214][t]]=54784+t,r[54784+t]=n[214][t]);for(n[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬�".split(""),t=0;t!=n[215].length;++t)n[215][t].charCodeAt(0)!==65533&&(i[n[215][t]]=55040+t,r[55040+t]=n[215][t]);for(n[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅�".split(""),t=0;t!=n[216].length;++t)n[216][t].charCodeAt(0)!==65533&&(i[n[216][t]]=55296+t,r[55296+t]=n[216][t]);for(n[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文�".split(""),t=0;t!=n[217].length;++t)n[217][t].charCodeAt(0)!==65533&&(i[n[217][t]]=55552+t,r[55552+t]=n[217][t]);for(n[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑�".split(""),t=0;t!=n[218].length;++t)n[218][t].charCodeAt(0)!==65533&&(i[n[218][t]]=55808+t,r[55808+t]=n[218][t]);for(n[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖�".split(""),t=0;t!=n[219].length;++t)n[219][t].charCodeAt(0)!==65533&&(i[n[219][t]]=56064+t,r[56064+t]=n[219][t]);for(n[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦�".split(""),t=0;t!=n[220].length;++t)n[220][t].charCodeAt(0)!==65533&&(i[n[220][t]]=56320+t,r[56320+t]=n[220][t]);for(n[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥�".split(""),t=0;t!=n[221].length;++t)n[221][t].charCodeAt(0)!==65533&&(i[n[221][t]]=56576+t,r[56576+t]=n[221][t]);for(n[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索�".split(""),t=0;t!=n[222].length;++t)n[222][t].charCodeAt(0)!==65533&&(i[n[222][t]]=56832+t,r[56832+t]=n[222][t]);for(n[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署�".split(""),t=0;t!=n[223].length;++t)n[223][t].charCodeAt(0)!==65533&&(i[n[223][t]]=57088+t,r[57088+t]=n[223][t]);for(n[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬�".split(""),t=0;t!=n[224].length;++t)n[224][t].charCodeAt(0)!==65533&&(i[n[224][t]]=57344+t,r[57344+t]=n[224][t]);for(n[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁�".split(""),t=0;t!=n[225].length;++t)n[225][t].charCodeAt(0)!==65533&&(i[n[225][t]]=57600+t,r[57600+t]=n[225][t]);for(n[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧�".split(""),t=0;t!=n[226].length;++t)n[226][t].charCodeAt(0)!==65533&&(i[n[226][t]]=57856+t,r[57856+t]=n[226][t]);for(n[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁�".split(""),t=0;t!=n[227].length;++t)n[227][t].charCodeAt(0)!==65533&&(i[n[227][t]]=58112+t,r[58112+t]=n[227][t]);for(n[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額�".split(""),t=0;t!=n[228].length;++t)n[228][t].charCodeAt(0)!==65533&&(i[n[228][t]]=58368+t,r[58368+t]=n[228][t]);for(n[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬�".split(""),t=0;t!=n[229].length;++t)n[229][t].charCodeAt(0)!==65533&&(i[n[229][t]]=58624+t,r[58624+t]=n[229][t]);for(n[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒�".split(""),t=0;t!=n[230].length;++t)n[230][t].charCodeAt(0)!==65533&&(i[n[230][t]]=58880+t,r[58880+t]=n[230][t]);for(n[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳�".split(""),t=0;t!=n[231].length;++t)n[231][t].charCodeAt(0)!==65533&&(i[n[231][t]]=59136+t,r[59136+t]=n[231][t]);for(n[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療�".split(""),t=0;t!=n[232].length;++t)n[232][t].charCodeAt(0)!==65533&&(i[n[232][t]]=59392+t,r[59392+t]=n[232][t]);for(n[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓�".split(""),t=0;t!=n[233].length;++t)n[233][t].charCodeAt(0)!==65533&&(i[n[233][t]]=59648+t,r[59648+t]=n[233][t]);for(n[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜�".split(""),t=0;t!=n[234].length;++t)n[234][t].charCodeAt(0)!==65533&&(i[n[234][t]]=59904+t,r[59904+t]=n[234][t]);for(n[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼�".split(""),t=0;t!=n[235].length;++t)n[235][t].charCodeAt(0)!==65533&&(i[n[235][t]]=60160+t,r[60160+t]=n[235][t]);for(n[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄�".split(""),t=0;t!=n[236].length;++t)n[236][t].charCodeAt(0)!==65533&&(i[n[236][t]]=60416+t,r[60416+t]=n[236][t]);for(n[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長�".split(""),t=0;t!=n[237].length;++t)n[237][t].charCodeAt(0)!==65533&&(i[n[237][t]]=60672+t,r[60672+t]=n[237][t]);for(n[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱�".split(""),t=0;t!=n[238].length;++t)n[238][t].charCodeAt(0)!==65533&&(i[n[238][t]]=60928+t,r[60928+t]=n[238][t]);for(n[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖�".split(""),t=0;t!=n[239].length;++t)n[239][t].charCodeAt(0)!==65533&&(i[n[239][t]]=61184+t,r[61184+t]=n[239][t]);for(n[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫�".split(""),t=0;t!=n[240].length;++t)n[240][t].charCodeAt(0)!==65533&&(i[n[240][t]]=61440+t,r[61440+t]=n[240][t]);for(n[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只�".split(""),t=0;t!=n[241].length;++t)n[241][t].charCodeAt(0)!==65533&&(i[n[241][t]]=61696+t,r[61696+t]=n[241][t]);for(n[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯�".split(""),t=0;t!=n[242].length;++t)n[242][t].charCodeAt(0)!==65533&&(i[n[242][t]]=61952+t,r[61952+t]=n[242][t]);for(n[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策�".split(""),t=0;t!=n[243].length;++t)n[243][t].charCodeAt(0)!==65533&&(i[n[243][t]]=62208+t,r[62208+t]=n[243][t]);for(n[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢�".split(""),t=0;t!=n[244].length;++t)n[244][t].charCodeAt(0)!==65533&&(i[n[244][t]]=62464+t,r[62464+t]=n[244][t]);for(n[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃�".split(""),t=0;t!=n[245].length;++t)n[245][t].charCodeAt(0)!==65533&&(i[n[245][t]]=62720+t,r[62720+t]=n[245][t]);for(n[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託�".split(""),t=0;t!=n[246].length;++t)n[246][t].charCodeAt(0)!==65533&&(i[n[246][t]]=62976+t,r[62976+t]=n[246][t]);for(n[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑�".split(""),t=0;t!=n[247].length;++t)n[247][t].charCodeAt(0)!==65533&&(i[n[247][t]]=63232+t,r[63232+t]=n[247][t]);for(n[248]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃�".split(""),t=0;t!=n[248].length;++t)n[248][t].charCodeAt(0)!==65533&&(i[n[248][t]]=63488+t,r[63488+t]=n[248][t]);for(n[249]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航�".split(""),t=0;t!=n[249].length;++t)n[249][t].charCodeAt(0)!==65533&&(i[n[249][t]]=63744+t,r[63744+t]=n[249][t]);for(n[250]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型�".split(""),t=0;t!=n[250].length;++t)n[250][t].charCodeAt(0)!==65533&&(i[n[250][t]]=64e3+t,r[64e3+t]=n[250][t]);for(n[251]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵�".split(""),t=0;t!=n[251].length;++t)n[251][t].charCodeAt(0)!==65533&&(i[n[251][t]]=64256+t,r[64256+t]=n[251][t]);for(n[252]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆�".split(""),t=0;t!=n[252].length;++t)n[252][t].charCodeAt(0)!==65533&&(i[n[252][t]]=64512+t,r[64512+t]=n[252][t]);for(n[253]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰�".split(""),t=0;t!=n[253].length;++t)n[253][t].charCodeAt(0)!==65533&&(i[n[253][t]]=64768+t,r[64768+t]=n[253][t]);return{enc:i,dec:r}})(),s[950]=(function(){var r=[],i={},n=[],t;for(n[0]=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������`.split(""),t=0;t!=n[0].length;++t)n[0][t].charCodeAt(0)!==65533&&(i[n[0][t]]=0+t,r[0+t]=n[0][t]);for(n[161]="����������������������������������������������������������������　，、。．‧；：？！︰…‥﹐﹑﹒·﹔﹕﹖﹗｜–︱—︳╴︴﹏（）︵︶｛｝︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚����������������������������������﹛﹜﹝﹞‘’“”〝〞‵′＃＆＊※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯￣＿ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡＋－×÷±√＜＞＝≦≧≠∞≒≡﹢﹣﹤﹥﹦～∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣／�".split(""),t=0;t!=n[161].length;++t)n[161][t].charCodeAt(0)!==65533&&(i[n[161][t]]=41216+t,r[41216+t]=n[161][t]);for(n[162]="����������������������������������������������������������������＼∕﹨＄￥〒￠￡％＠℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁▂▃▄▅▆▇█▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭����������������������������������╮╰╯═╞╪╡◢◣◥◤╱╲╳０１２３４５６７８９ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ〡〢〣〤〥〦〧〨〩十卄卅ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖ�".split(""),t=0;t!=n[162].length;++t)n[162][t].charCodeAt(0)!==65533&&(i[n[162][t]]=41472+t,r[41472+t]=n[162][t]);for(n[163]="����������������������������������������������������������������ｗｘｙｚΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏ����������������������������������ㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ˙ˉˊˇˋ���������������������������������€������������������������������".split(""),t=0;t!=n[163].length;++t)n[163][t].charCodeAt(0)!==65533&&(i[n[163][t]]=41728+t,r[41728+t]=n[163][t]);for(n[164]="����������������������������������������������������������������一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才����������������������������������丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙�".split(""),t=0;t!=n[164].length;++t)n[164][t].charCodeAt(0)!==65533&&(i[n[164][t]]=41984+t,r[41984+t]=n[164][t]);for(n[165]="����������������������������������������������������������������世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外����������������������������������央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全�".split(""),t=0;t!=n[165].length;++t)n[165][t].charCodeAt(0)!==65533&&(i[n[165][t]]=42240+t,r[42240+t]=n[165][t]);for(n[166]="����������������������������������������������������������������共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年����������������������������������式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣�".split(""),t=0;t!=n[166].length;++t)n[166][t].charCodeAt(0)!==65533&&(i[n[166][t]]=42496+t,r[42496+t]=n[166][t]);for(n[167]="����������������������������������������������������������������作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍����������������������������������均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠�".split(""),t=0;t!=n[167].length;++t)n[167][t].charCodeAt(0)!==65533&&(i[n[167][t]]=42752+t,r[42752+t]=n[167][t]);for(n[168]="����������������������������������������������������������������杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒����������������������������������芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵�".split(""),t=0;t!=n[168].length;++t)n[168][t].charCodeAt(0)!==65533&&(i[n[168][t]]=43008+t,r[43008+t]=n[168][t]);for(n[169]="����������������������������������������������������������������咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居����������������������������������屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊�".split(""),t=0;t!=n[169].length;++t)n[169][t].charCodeAt(0)!==65533&&(i[n[169][t]]=43264+t,r[43264+t]=n[169][t]);for(n[170]="����������������������������������������������������������������昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠����������������������������������炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附�".split(""),t=0;t!=n[170].length;++t)n[170][t].charCodeAt(0)!==65533&&(i[n[170][t]]=43520+t,r[43520+t]=n[170][t]);for(n[171]="����������������������������������������������������������������陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品����������������������������������哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷�".split(""),t=0;t!=n[171].length;++t)n[171][t].charCodeAt(0)!==65533&&(i[n[171][t]]=43776+t,r[43776+t]=n[171][t]);for(n[172]="����������������������������������������������������������������拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗����������������������������������活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄�".split(""),t=0;t!=n[172].length;++t)n[172][t].charCodeAt(0)!==65533&&(i[n[172][t]]=44032+t,r[44032+t]=n[172][t]);for(n[173]="����������������������������������������������������������������耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥����������������������������������迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪�".split(""),t=0;t!=n[173].length;++t)n[173][t].charCodeAt(0)!==65533&&(i[n[173][t]]=44288+t,r[44288+t]=n[173][t]);for(n[174]="����������������������������������������������������������������哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙����������������������������������恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓�".split(""),t=0;t!=n[174].length;++t)n[174][t].charCodeAt(0)!==65533&&(i[n[174][t]]=44544+t,r[44544+t]=n[174][t]);for(n[175]="����������������������������������������������������������������浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷����������������������������������砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃�".split(""),t=0;t!=n[175].length;++t)n[175][t].charCodeAt(0)!==65533&&(i[n[175][t]]=44800+t,r[44800+t]=n[175][t]);for(n[176]="����������������������������������������������������������������虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡����������������������������������陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀�".split(""),t=0;t!=n[176].length;++t)n[176][t].charCodeAt(0)!==65533&&(i[n[176][t]]=45056+t,r[45056+t]=n[176][t]);for(n[177]="����������������������������������������������������������������娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽����������������������������������情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺�".split(""),t=0;t!=n[177].length;++t)n[177][t].charCodeAt(0)!==65533&&(i[n[177][t]]=45312+t,r[45312+t]=n[177][t]);for(n[178]="����������������������������������������������������������������毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶����������������������������������瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼�".split(""),t=0;t!=n[178].length;++t)n[178][t].charCodeAt(0)!==65533&&(i[n[178][t]]=45568+t,r[45568+t]=n[178][t]);for(n[179]="����������������������������������������������������������������莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途����������������������������������部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠�".split(""),t=0;t!=n[179].length;++t)n[179][t].charCodeAt(0)!==65533&&(i[n[179][t]]=45824+t,r[45824+t]=n[179][t]);for(n[180]="����������������������������������������������������������������婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍����������������������������������插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋�".split(""),t=0;t!=n[180].length;++t)n[180][t].charCodeAt(0)!==65533&&(i[n[180][t]]=46080+t,r[46080+t]=n[180][t]);for(n[181]="����������������������������������������������������������������溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘����������������������������������窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁�".split(""),t=0;t!=n[181].length;++t)n[181][t].charCodeAt(0)!==65533&&(i[n[181][t]]=46336+t,r[46336+t]=n[181][t]);for(n[182]="����������������������������������������������������������������詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑����������������������������������間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼�".split(""),t=0;t!=n[182].length;++t)n[182][t].charCodeAt(0)!==65533&&(i[n[182][t]]=46592+t,r[46592+t]=n[182][t]);for(n[183]="����������������������������������������������������������������媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業����������������������������������楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督�".split(""),t=0;t!=n[183].length;++t)n[183][t].charCodeAt(0)!==65533&&(i[n[183][t]]=46848+t,r[46848+t]=n[183][t]);for(n[184]="����������������������������������������������������������������睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫����������������������������������腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊�".split(""),t=0;t!=n[184].length;++t)n[184][t].charCodeAt(0)!==65533&&(i[n[184][t]]=47104+t,r[47104+t]=n[184][t]);for(n[185]="����������������������������������������������������������������辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴����������������������������������飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇�".split(""),t=0;t!=n[185].length;++t)n[185][t].charCodeAt(0)!==65533&&(i[n[185][t]]=47360+t,r[47360+t]=n[185][t]);for(n[186]="����������������������������������������������������������������愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢����������������������������������滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬�".split(""),t=0;t!=n[186].length;++t)n[186][t].charCodeAt(0)!==65533&&(i[n[186][t]]=47616+t,r[47616+t]=n[186][t]);for(n[187]="����������������������������������������������������������������罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤����������������������������������說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜�".split(""),t=0;t!=n[187].length;++t)n[187][t].charCodeAt(0)!==65533&&(i[n[187][t]]=47872+t,r[47872+t]=n[187][t]);for(n[188]="����������������������������������������������������������������劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂����������������������������������慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃�".split(""),t=0;t!=n[188].length;++t)n[188][t].charCodeAt(0)!==65533&&(i[n[188][t]]=48128+t,r[48128+t]=n[188][t]);for(n[189]="����������������������������������������������������������������瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯����������������������������������翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞�".split(""),t=0;t!=n[189].length;++t)n[189][t].charCodeAt(0)!==65533&&(i[n[189][t]]=48384+t,r[48384+t]=n[189][t]);for(n[190]="����������������������������������������������������������������輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉����������������������������������鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡�".split(""),t=0;t!=n[190].length;++t)n[190][t].charCodeAt(0)!==65533&&(i[n[190][t]]=48640+t,r[48640+t]=n[190][t]);for(n[191]="����������������������������������������������������������������濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊����������������������������������縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚�".split(""),t=0;t!=n[191].length;++t)n[191][t].charCodeAt(0)!==65533&&(i[n[191][t]]=48896+t,r[48896+t]=n[191][t]);for(n[192]="����������������������������������������������������������������錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇����������������������������������嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬�".split(""),t=0;t!=n[192].length;++t)n[192][t].charCodeAt(0)!==65533&&(i[n[192][t]]=49152+t,r[49152+t]=n[192][t]);for(n[193]="����������������������������������������������������������������瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪����������������������������������薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁�".split(""),t=0;t!=n[193].length;++t)n[193][t].charCodeAt(0)!==65533&&(i[n[193][t]]=49408+t,r[49408+t]=n[193][t]);for(n[194]="����������������������������������������������������������������駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘����������������������������������癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦�".split(""),t=0;t!=n[194].length;++t)n[194][t].charCodeAt(0)!==65533&&(i[n[194][t]]=49664+t,r[49664+t]=n[194][t]);for(n[195]="����������������������������������������������������������������鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸����������������������������������獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類�".split(""),t=0;t!=n[195].length;++t)n[195][t].charCodeAt(0)!==65533&&(i[n[195][t]]=49920+t,r[49920+t]=n[195][t]);for(n[196]="����������������������������������������������������������������願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼����������������������������������纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴�".split(""),t=0;t!=n[196].length;++t)n[196][t].charCodeAt(0)!==65533&&(i[n[196][t]]=50176+t,r[50176+t]=n[196][t]);for(n[197]="����������������������������������������������������������������護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬����������������������������������禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒�".split(""),t=0;t!=n[197].length;++t)n[197][t].charCodeAt(0)!==65533&&(i[n[197][t]]=50432+t,r[50432+t]=n[197][t]);for(n[198]="����������������������������������������������������������������讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲���������������������������������������������������������������������������������������������������������������������������������".split(""),t=0;t!=n[198].length;++t)n[198][t].charCodeAt(0)!==65533&&(i[n[198][t]]=50688+t,r[50688+t]=n[198][t]);for(n[201]="����������������������������������������������������������������乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕����������������������������������氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋�".split(""),t=0;t!=n[201].length;++t)n[201][t].charCodeAt(0)!==65533&&(i[n[201][t]]=51456+t,r[51456+t]=n[201][t]);for(n[202]="����������������������������������������������������������������汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘����������������������������������吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇�".split(""),t=0;t!=n[202].length;++t)n[202][t].charCodeAt(0)!==65533&&(i[n[202][t]]=51712+t,r[51712+t]=n[202][t]);for(n[203]="����������������������������������������������������������������杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓����������������������������������芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢�".split(""),t=0;t!=n[203].length;++t)n[203][t].charCodeAt(0)!==65533&&(i[n[203][t]]=51968+t,r[51968+t]=n[203][t]);for(n[204]="����������������������������������������������������������������坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋����������������������������������怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲�".split(""),t=0;t!=n[204].length;++t)n[204][t].charCodeAt(0)!==65533&&(i[n[204][t]]=52224+t,r[52224+t]=n[204][t]);for(n[205]="����������������������������������������������������������������泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺����������������������������������矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏�".split(""),t=0;t!=n[205].length;++t)n[205][t].charCodeAt(0)!==65533&&(i[n[205][t]]=52480+t,r[52480+t]=n[205][t]);for(n[206]="����������������������������������������������������������������哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛����������������������������������峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺�".split(""),t=0;t!=n[206].length;++t)n[206][t].charCodeAt(0)!==65533&&(i[n[206][t]]=52736+t,r[52736+t]=n[206][t]);for(n[207]="����������������������������������������������������������������柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂����������������������������������洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀�".split(""),t=0;t!=n[207].length;++t)n[207][t].charCodeAt(0)!==65533&&(i[n[207][t]]=52992+t,r[52992+t]=n[207][t]);for(n[208]="����������������������������������������������������������������穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪����������������������������������苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱�".split(""),t=0;t!=n[208].length;++t)n[208][t].charCodeAt(0)!==65533&&(i[n[208][t]]=53248+t,r[53248+t]=n[208][t]);for(n[209]="����������������������������������������������������������������唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧����������������������������������恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤�".split(""),t=0;t!=n[209].length;++t)n[209][t].charCodeAt(0)!==65533&&(i[n[209][t]]=53504+t,r[53504+t]=n[209][t]);for(n[210]="����������������������������������������������������������������毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸����������������������������������牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐�".split(""),t=0;t!=n[210].length;++t)n[210][t].charCodeAt(0)!==65533&&(i[n[210][t]]=53760+t,r[53760+t]=n[210][t]);for(n[211]="����������������������������������������������������������������笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢����������������������������������荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐�".split(""),t=0;t!=n[211].length;++t)n[211][t].charCodeAt(0)!==65533&&(i[n[211][t]]=54016+t,r[54016+t]=n[211][t]);for(n[212]="����������������������������������������������������������������酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅����������������������������������唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏�".split(""),t=0;t!=n[212].length;++t)n[212][t].charCodeAt(0)!==65533&&(i[n[212][t]]=54272+t,r[54272+t]=n[212][t]);for(n[213]="����������������������������������������������������������������崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟����������������������������������捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉�".split(""),t=0;t!=n[213].length;++t)n[213][t].charCodeAt(0)!==65533&&(i[n[213][t]]=54528+t,r[54528+t]=n[213][t]);for(n[214]="����������������������������������������������������������������淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏����������������������������������痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟�".split(""),t=0;t!=n[214].length;++t)n[214][t].charCodeAt(0)!==65533&&(i[n[214][t]]=54784+t,r[54784+t]=n[214][t]);for(n[215]="����������������������������������������������������������������耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷����������������������������������蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪�".split(""),t=0;t!=n[215].length;++t)n[215][t].charCodeAt(0)!==65533&&(i[n[215][t]]=55040+t,r[55040+t]=n[215][t]);for(n[216]="����������������������������������������������������������������釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷����������������������������������堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔�".split(""),t=0;t!=n[216].length;++t)n[216][t].charCodeAt(0)!==65533&&(i[n[216][t]]=55296+t,r[55296+t]=n[216][t]);for(n[217]="����������������������������������������������������������������惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒����������������������������������晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞�".split(""),t=0;t!=n[217].length;++t)n[217][t].charCodeAt(0)!==65533&&(i[n[217][t]]=55552+t,r[55552+t]=n[217][t]);for(n[218]="����������������������������������������������������������������湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖����������������������������������琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥�".split(""),t=0;t!=n[218].length;++t)n[218][t].charCodeAt(0)!==65533&&(i[n[218][t]]=55808+t,r[55808+t]=n[218][t]);for(n[219]="����������������������������������������������������������������罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳����������������������������������菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺�".split(""),t=0;t!=n[219].length;++t)n[219][t].charCodeAt(0)!==65533&&(i[n[219][t]]=56064+t,r[56064+t]=n[219][t]);for(n[220]="����������������������������������������������������������������軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈����������������������������������隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆�".split(""),t=0;t!=n[220].length;++t)n[220][t].charCodeAt(0)!==65533&&(i[n[220][t]]=56320+t,r[56320+t]=n[220][t]);for(n[221]="����������������������������������������������������������������媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤����������������������������������搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼�".split(""),t=0;t!=n[221].length;++t)n[221][t].charCodeAt(0)!==65533&&(i[n[221][t]]=56576+t,r[56576+t]=n[221][t]);for(n[222]="����������������������������������������������������������������毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓����������������������������������煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓�".split(""),t=0;t!=n[222].length;++t)n[222][t].charCodeAt(0)!==65533&&(i[n[222][t]]=56832+t,r[56832+t]=n[222][t]);for(n[223]="����������������������������������������������������������������稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯����������������������������������腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤�".split(""),t=0;t!=n[223].length;++t)n[223][t].charCodeAt(0)!==65533&&(i[n[223][t]]=57088+t,r[57088+t]=n[223][t]);for(n[224]="����������������������������������������������������������������觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿����������������������������������遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠�".split(""),t=0;t!=n[224].length;++t)n[224][t].charCodeAt(0)!==65533&&(i[n[224][t]]=57344+t,r[57344+t]=n[224][t]);for(n[225]="����������������������������������������������������������������凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠����������������������������������寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉�".split(""),t=0;t!=n[225].length;++t)n[225][t].charCodeAt(0)!==65533&&(i[n[225][t]]=57600+t,r[57600+t]=n[225][t]);for(n[226]="����������������������������������������������������������������榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊����������������������������������漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓�".split(""),t=0;t!=n[226].length;++t)n[226][t].charCodeAt(0)!==65533&&(i[n[226][t]]=57856+t,r[57856+t]=n[226][t]);for(n[227]="����������������������������������������������������������������禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞����������������������������������耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻�".split(""),t=0;t!=n[227].length;++t)n[227][t].charCodeAt(0)!==65533&&(i[n[227][t]]=58112+t,r[58112+t]=n[227][t]);for(n[228]="����������������������������������������������������������������裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍����������������������������������銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘�".split(""),t=0;t!=n[228].length;++t)n[228][t].charCodeAt(0)!==65533&&(i[n[228][t]]=58368+t,r[58368+t]=n[228][t]);for(n[229]="����������������������������������������������������������������噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉����������������������������������憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒�".split(""),t=0;t!=n[229].length;++t)n[229][t].charCodeAt(0)!==65533&&(i[n[229][t]]=58624+t,r[58624+t]=n[229][t]);for(n[230]="����������������������������������������������������������������澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙����������������������������������獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟�".split(""),t=0;t!=n[230].length;++t)n[230][t].charCodeAt(0)!==65533&&(i[n[230][t]]=58880+t,r[58880+t]=n[230][t]);for(n[231]="����������������������������������������������������������������膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢����������������������������������蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧�".split(""),t=0;t!=n[231].length;++t)n[231][t].charCodeAt(0)!==65533&&(i[n[231][t]]=59136+t,r[59136+t]=n[231][t]);for(n[232]="����������������������������������������������������������������踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓����������������������������������銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮�".split(""),t=0;t!=n[232].length;++t)n[232][t].charCodeAt(0)!==65533&&(i[n[232][t]]=59392+t,r[59392+t]=n[232][t]);for(n[233]="����������������������������������������������������������������噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺����������������������������������憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸�".split(""),t=0;t!=n[233].length;++t)n[233][t].charCodeAt(0)!==65533&&(i[n[233][t]]=59648+t,r[59648+t]=n[233][t]);for(n[234]="����������������������������������������������������������������澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙����������������������������������瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘�".split(""),t=0;t!=n[234].length;++t)n[234][t].charCodeAt(0)!==65533&&(i[n[234][t]]=59904+t,r[59904+t]=n[234][t]);for(n[235]="����������������������������������������������������������������蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠����������������������������������諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌�".split(""),t=0;t!=n[235].length;++t)n[235][t].charCodeAt(0)!==65533&&(i[n[235][t]]=60160+t,r[60160+t]=n[235][t]);for(n[236]="����������������������������������������������������������������錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕����������������������������������魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎�".split(""),t=0;t!=n[236].length;++t)n[236][t].charCodeAt(0)!==65533&&(i[n[236][t]]=60416+t,r[60416+t]=n[236][t]);for(n[237]="����������������������������������������������������������������檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶����������������������������������瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞�".split(""),t=0;t!=n[237].length;++t)n[237][t].charCodeAt(0)!==65533&&(i[n[237][t]]=60672+t,r[60672+t]=n[237][t]);for(n[238]="����������������������������������������������������������������蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞����������������������������������謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜�".split(""),t=0;t!=n[238].length;++t)n[238][t].charCodeAt(0)!==65533&&(i[n[238][t]]=60928+t,r[60928+t]=n[238][t]);for(n[239]="����������������������������������������������������������������鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰����������������������������������鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶�".split(""),t=0;t!=n[239].length;++t)n[239][t].charCodeAt(0)!==65533&&(i[n[239][t]]=61184+t,r[61184+t]=n[239][t]);for(n[240]="����������������������������������������������������������������璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒����������������������������������臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧�".split(""),t=0;t!=n[240].length;++t)n[240][t].charCodeAt(0)!==65533&&(i[n[240][t]]=61440+t,r[61440+t]=n[240][t]);for(n[241]="����������������������������������������������������������������蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪����������������������������������鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰�".split(""),t=0;t!=n[241].length;++t)n[241][t].charCodeAt(0)!==65533&&(i[n[241][t]]=61696+t,r[61696+t]=n[241][t]);for(n[242]="����������������������������������������������������������������徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛����������������������������������礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕�".split(""),t=0;t!=n[242].length;++t)n[242][t].charCodeAt(0)!==65533&&(i[n[242][t]]=61952+t,r[61952+t]=n[242][t]);for(n[243]="����������������������������������������������������������������譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦����������������������������������鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲�".split(""),t=0;t!=n[243].length;++t)n[243][t].charCodeAt(0)!==65533&&(i[n[243][t]]=62208+t,r[62208+t]=n[243][t]);for(n[244]="����������������������������������������������������������������嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩����������������������������������禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿�".split(""),t=0;t!=n[244].length;++t)n[244][t].charCodeAt(0)!==65533&&(i[n[244][t]]=62464+t,r[62464+t]=n[244][t]);for(n[245]="����������������������������������������������������������������鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛����������������������������������鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥�".split(""),t=0;t!=n[245].length;++t)n[245][t].charCodeAt(0)!==65533&&(i[n[245][t]]=62720+t,r[62720+t]=n[245][t]);for(n[246]="����������������������������������������������������������������蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺����������������������������������騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚�".split(""),t=0;t!=n[246].length;++t)n[246][t].charCodeAt(0)!==65533&&(i[n[246][t]]=62976+t,r[62976+t]=n[246][t]);for(n[247]="����������������������������������������������������������������糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊����������������������������������驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾�".split(""),t=0;t!=n[247].length;++t)n[247][t].charCodeAt(0)!==65533&&(i[n[247][t]]=63232+t,r[63232+t]=n[247][t]);for(n[248]="����������������������������������������������������������������讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏����������������������������������齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚�".split(""),t=0;t!=n[248].length;++t)n[248][t].charCodeAt(0)!==65533&&(i[n[248][t]]=63488+t,r[63488+t]=n[248][t]);for(n[249]="����������������������������������������������������������������纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊����������������������������������龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓�".split(""),t=0;t!=n[249].length;++t)n[249][t].charCodeAt(0)!==65533&&(i[n[249][t]]=63744+t,r[63744+t]=n[249][t]);return{enc:i,dec:r}})(),s[1250]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1251]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1252]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1253]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1254]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖ×ØÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1255]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1256]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1257]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1258]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖ×ØÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[1e4]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›ﬁﬂ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[10006]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~Ä¹²É³ÖÜ΅àâä΄¨çéèêë£™îï•½‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[10007]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[10008]=(function(){var r=[],i={},n=[],t;for(n[0]=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������������������������������������������������������������`.split(""),t=0;t!=n[0].length;++t)n[0][t].charCodeAt(0)!==65533&&(i[n[0][t]]=0+t,r[0+t]=n[0][t]);for(n[161]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������　、。・ˉˇ¨〃々―～�…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃＄¤￠￡‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),t=0;t!=n[161].length;++t)n[161][t].charCodeAt(0)!==65533&&(i[n[161][t]]=41216+t,r[41216+t]=n[161][t]);for(n[162]="���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),t=0;t!=n[162].length;++t)n[162][t].charCodeAt(0)!==65533&&(i[n[162][t]]=41472+t,r[41472+t]=n[162][t]);for(n[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������！＂＃￥％＆＇（）＊＋，－．／０１２３４５６７８９：；＜＝＞？＠ＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺ［＼］＾＿｀ａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚ｛｜｝￣�".split(""),t=0;t!=n[163].length;++t)n[163][t].charCodeAt(0)!==65533&&(i[n[163][t]]=41728+t,r[41728+t]=n[163][t]);for(n[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),t=0;t!=n[164].length;++t)n[164][t].charCodeAt(0)!==65533&&(i[n[164][t]]=41984+t,r[41984+t]=n[164][t]);for(n[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),t=0;t!=n[165].length;++t)n[165][t].charCodeAt(0)!==65533&&(i[n[165][t]]=42240+t,r[42240+t]=n[165][t]);for(n[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω���������������������������������������".split(""),t=0;t!=n[166].length;++t)n[166][t].charCodeAt(0)!==65533&&(i[n[166][t]]=42496+t,r[42496+t]=n[166][t]);for(n[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),t=0;t!=n[167].length;++t)n[167][t].charCodeAt(0)!==65533&&(i[n[167][t]]=42752+t,r[42752+t]=n[167][t]);for(n[168]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüê����������ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),t=0;t!=n[168].length;++t)n[168][t].charCodeAt(0)!==65533&&(i[n[168][t]]=43008+t,r[43008+t]=n[168][t]);for(n[169]="��������������������������������������������������������������������������������������������������������������������������������������������������������������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),t=0;t!=n[169].length;++t)n[169][t].charCodeAt(0)!==65533&&(i[n[169][t]]=43264+t,r[43264+t]=n[169][t]);for(n[176]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),t=0;t!=n[176].length;++t)n[176][t].charCodeAt(0)!==65533&&(i[n[176][t]]=45056+t,r[45056+t]=n[176][t]);for(n[177]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),t=0;t!=n[177].length;++t)n[177][t].charCodeAt(0)!==65533&&(i[n[177][t]]=45312+t,r[45312+t]=n[177][t]);for(n[178]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),t=0;t!=n[178].length;++t)n[178][t].charCodeAt(0)!==65533&&(i[n[178][t]]=45568+t,r[45568+t]=n[178][t]);for(n[179]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),t=0;t!=n[179].length;++t)n[179][t].charCodeAt(0)!==65533&&(i[n[179][t]]=45824+t,r[45824+t]=n[179][t]);for(n[180]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),t=0;t!=n[180].length;++t)n[180][t].charCodeAt(0)!==65533&&(i[n[180][t]]=46080+t,r[46080+t]=n[180][t]);for(n[181]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),t=0;t!=n[181].length;++t)n[181][t].charCodeAt(0)!==65533&&(i[n[181][t]]=46336+t,r[46336+t]=n[181][t]);for(n[182]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),t=0;t!=n[182].length;++t)n[182][t].charCodeAt(0)!==65533&&(i[n[182][t]]=46592+t,r[46592+t]=n[182][t]);for(n[183]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),t=0;t!=n[183].length;++t)n[183][t].charCodeAt(0)!==65533&&(i[n[183][t]]=46848+t,r[46848+t]=n[183][t]);for(n[184]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),t=0;t!=n[184].length;++t)n[184][t].charCodeAt(0)!==65533&&(i[n[184][t]]=47104+t,r[47104+t]=n[184][t]);for(n[185]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),t=0;t!=n[185].length;++t)n[185][t].charCodeAt(0)!==65533&&(i[n[185][t]]=47360+t,r[47360+t]=n[185][t]);for(n[186]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),t=0;t!=n[186].length;++t)n[186][t].charCodeAt(0)!==65533&&(i[n[186][t]]=47616+t,r[47616+t]=n[186][t]);for(n[187]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),t=0;t!=n[187].length;++t)n[187][t].charCodeAt(0)!==65533&&(i[n[187][t]]=47872+t,r[47872+t]=n[187][t]);for(n[188]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),t=0;t!=n[188].length;++t)n[188][t].charCodeAt(0)!==65533&&(i[n[188][t]]=48128+t,r[48128+t]=n[188][t]);for(n[189]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),t=0;t!=n[189].length;++t)n[189][t].charCodeAt(0)!==65533&&(i[n[189][t]]=48384+t,r[48384+t]=n[189][t]);for(n[190]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),t=0;t!=n[190].length;++t)n[190][t].charCodeAt(0)!==65533&&(i[n[190][t]]=48640+t,r[48640+t]=n[190][t]);for(n[191]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),t=0;t!=n[191].length;++t)n[191][t].charCodeAt(0)!==65533&&(i[n[191][t]]=48896+t,r[48896+t]=n[191][t]);for(n[192]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),t=0;t!=n[192].length;++t)n[192][t].charCodeAt(0)!==65533&&(i[n[192][t]]=49152+t,r[49152+t]=n[192][t]);for(n[193]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),t=0;t!=n[193].length;++t)n[193][t].charCodeAt(0)!==65533&&(i[n[193][t]]=49408+t,r[49408+t]=n[193][t]);for(n[194]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),t=0;t!=n[194].length;++t)n[194][t].charCodeAt(0)!==65533&&(i[n[194][t]]=49664+t,r[49664+t]=n[194][t]);for(n[195]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),t=0;t!=n[195].length;++t)n[195][t].charCodeAt(0)!==65533&&(i[n[195][t]]=49920+t,r[49920+t]=n[195][t]);for(n[196]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),t=0;t!=n[196].length;++t)n[196][t].charCodeAt(0)!==65533&&(i[n[196][t]]=50176+t,r[50176+t]=n[196][t]);for(n[197]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),t=0;t!=n[197].length;++t)n[197][t].charCodeAt(0)!==65533&&(i[n[197][t]]=50432+t,r[50432+t]=n[197][t]);for(n[198]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),t=0;t!=n[198].length;++t)n[198][t].charCodeAt(0)!==65533&&(i[n[198][t]]=50688+t,r[50688+t]=n[198][t]);for(n[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),t=0;t!=n[199].length;++t)n[199][t].charCodeAt(0)!==65533&&(i[n[199][t]]=50944+t,r[50944+t]=n[199][t]);for(n[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),t=0;t!=n[200].length;++t)n[200][t].charCodeAt(0)!==65533&&(i[n[200][t]]=51200+t,r[51200+t]=n[200][t]);for(n[201]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),t=0;t!=n[201].length;++t)n[201][t].charCodeAt(0)!==65533&&(i[n[201][t]]=51456+t,r[51456+t]=n[201][t]);for(n[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),t=0;t!=n[202].length;++t)n[202][t].charCodeAt(0)!==65533&&(i[n[202][t]]=51712+t,r[51712+t]=n[202][t]);for(n[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),t=0;t!=n[203].length;++t)n[203][t].charCodeAt(0)!==65533&&(i[n[203][t]]=51968+t,r[51968+t]=n[203][t]);for(n[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),t=0;t!=n[204].length;++t)n[204][t].charCodeAt(0)!==65533&&(i[n[204][t]]=52224+t,r[52224+t]=n[204][t]);for(n[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),t=0;t!=n[205].length;++t)n[205][t].charCodeAt(0)!==65533&&(i[n[205][t]]=52480+t,r[52480+t]=n[205][t]);for(n[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),t=0;t!=n[206].length;++t)n[206][t].charCodeAt(0)!==65533&&(i[n[206][t]]=52736+t,r[52736+t]=n[206][t]);for(n[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),t=0;t!=n[207].length;++t)n[207][t].charCodeAt(0)!==65533&&(i[n[207][t]]=52992+t,r[52992+t]=n[207][t]);for(n[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),t=0;t!=n[208].length;++t)n[208][t].charCodeAt(0)!==65533&&(i[n[208][t]]=53248+t,r[53248+t]=n[208][t]);for(n[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),t=0;t!=n[209].length;++t)n[209][t].charCodeAt(0)!==65533&&(i[n[209][t]]=53504+t,r[53504+t]=n[209][t]);for(n[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),t=0;t!=n[210].length;++t)n[210][t].charCodeAt(0)!==65533&&(i[n[210][t]]=53760+t,r[53760+t]=n[210][t]);for(n[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),t=0;t!=n[211].length;++t)n[211][t].charCodeAt(0)!==65533&&(i[n[211][t]]=54016+t,r[54016+t]=n[211][t]);for(n[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),t=0;t!=n[212].length;++t)n[212][t].charCodeAt(0)!==65533&&(i[n[212][t]]=54272+t,r[54272+t]=n[212][t]);for(n[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),t=0;t!=n[213].length;++t)n[213][t].charCodeAt(0)!==65533&&(i[n[213][t]]=54528+t,r[54528+t]=n[213][t]);for(n[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),t=0;t!=n[214].length;++t)n[214][t].charCodeAt(0)!==65533&&(i[n[214][t]]=54784+t,r[54784+t]=n[214][t]);for(n[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),t=0;t!=n[215].length;++t)n[215][t].charCodeAt(0)!==65533&&(i[n[215][t]]=55040+t,r[55040+t]=n[215][t]);for(n[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),t=0;t!=n[216].length;++t)n[216][t].charCodeAt(0)!==65533&&(i[n[216][t]]=55296+t,r[55296+t]=n[216][t]);for(n[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),t=0;t!=n[217].length;++t)n[217][t].charCodeAt(0)!==65533&&(i[n[217][t]]=55552+t,r[55552+t]=n[217][t]);for(n[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),t=0;t!=n[218].length;++t)n[218][t].charCodeAt(0)!==65533&&(i[n[218][t]]=55808+t,r[55808+t]=n[218][t]);for(n[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),t=0;t!=n[219].length;++t)n[219][t].charCodeAt(0)!==65533&&(i[n[219][t]]=56064+t,r[56064+t]=n[219][t]);for(n[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),t=0;t!=n[220].length;++t)n[220][t].charCodeAt(0)!==65533&&(i[n[220][t]]=56320+t,r[56320+t]=n[220][t]);for(n[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),t=0;t!=n[221].length;++t)n[221][t].charCodeAt(0)!==65533&&(i[n[221][t]]=56576+t,r[56576+t]=n[221][t]);for(n[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),t=0;t!=n[222].length;++t)n[222][t].charCodeAt(0)!==65533&&(i[n[222][t]]=56832+t,r[56832+t]=n[222][t]);for(n[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),t=0;t!=n[223].length;++t)n[223][t].charCodeAt(0)!==65533&&(i[n[223][t]]=57088+t,r[57088+t]=n[223][t]);for(n[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),t=0;t!=n[224].length;++t)n[224][t].charCodeAt(0)!==65533&&(i[n[224][t]]=57344+t,r[57344+t]=n[224][t]);for(n[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),t=0;t!=n[225].length;++t)n[225][t].charCodeAt(0)!==65533&&(i[n[225][t]]=57600+t,r[57600+t]=n[225][t]);for(n[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),t=0;t!=n[226].length;++t)n[226][t].charCodeAt(0)!==65533&&(i[n[226][t]]=57856+t,r[57856+t]=n[226][t]);for(n[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),t=0;t!=n[227].length;++t)n[227][t].charCodeAt(0)!==65533&&(i[n[227][t]]=58112+t,r[58112+t]=n[227][t]);for(n[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),t=0;t!=n[228].length;++t)n[228][t].charCodeAt(0)!==65533&&(i[n[228][t]]=58368+t,r[58368+t]=n[228][t]);for(n[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),t=0;t!=n[229].length;++t)n[229][t].charCodeAt(0)!==65533&&(i[n[229][t]]=58624+t,r[58624+t]=n[229][t]);for(n[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),t=0;t!=n[230].length;++t)n[230][t].charCodeAt(0)!==65533&&(i[n[230][t]]=58880+t,r[58880+t]=n[230][t]);for(n[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),t=0;t!=n[231].length;++t)n[231][t].charCodeAt(0)!==65533&&(i[n[231][t]]=59136+t,r[59136+t]=n[231][t]);for(n[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),t=0;t!=n[232].length;++t)n[232][t].charCodeAt(0)!==65533&&(i[n[232][t]]=59392+t,r[59392+t]=n[232][t]);for(n[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),t=0;t!=n[233].length;++t)n[233][t].charCodeAt(0)!==65533&&(i[n[233][t]]=59648+t,r[59648+t]=n[233][t]);for(n[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),t=0;t!=n[234].length;++t)n[234][t].charCodeAt(0)!==65533&&(i[n[234][t]]=59904+t,r[59904+t]=n[234][t]);for(n[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),t=0;t!=n[235].length;++t)n[235][t].charCodeAt(0)!==65533&&(i[n[235][t]]=60160+t,r[60160+t]=n[235][t]);for(n[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),t=0;t!=n[236].length;++t)n[236][t].charCodeAt(0)!==65533&&(i[n[236][t]]=60416+t,r[60416+t]=n[236][t]);for(n[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),t=0;t!=n[237].length;++t)n[237][t].charCodeAt(0)!==65533&&(i[n[237][t]]=60672+t,r[60672+t]=n[237][t]);for(n[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),t=0;t!=n[238].length;++t)n[238][t].charCodeAt(0)!==65533&&(i[n[238][t]]=60928+t,r[60928+t]=n[238][t]);for(n[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),t=0;t!=n[239].length;++t)n[239][t].charCodeAt(0)!==65533&&(i[n[239][t]]=61184+t,r[61184+t]=n[239][t]);for(n[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),t=0;t!=n[240].length;++t)n[240][t].charCodeAt(0)!==65533&&(i[n[240][t]]=61440+t,r[61440+t]=n[240][t]);for(n[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),t=0;t!=n[241].length;++t)n[241][t].charCodeAt(0)!==65533&&(i[n[241][t]]=61696+t,r[61696+t]=n[241][t]);for(n[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),t=0;t!=n[242].length;++t)n[242][t].charCodeAt(0)!==65533&&(i[n[242][t]]=61952+t,r[61952+t]=n[242][t]);for(n[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),t=0;t!=n[243].length;++t)n[243][t].charCodeAt(0)!==65533&&(i[n[243][t]]=62208+t,r[62208+t]=n[243][t]);for(n[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),t=0;t!=n[244].length;++t)n[244][t].charCodeAt(0)!==65533&&(i[n[244][t]]=62464+t,r[62464+t]=n[244][t]);for(n[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),t=0;t!=n[245].length;++t)n[245][t].charCodeAt(0)!==65533&&(i[n[245][t]]=62720+t,r[62720+t]=n[245][t]);for(n[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),t=0;t!=n[246].length;++t)n[246][t].charCodeAt(0)!==65533&&(i[n[246][t]]=62976+t,r[62976+t]=n[246][t]);for(n[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),t=0;t!=n[247].length;++t)n[247][t].charCodeAt(0)!==65533&&(i[n[247][t]]=63232+t,r[63232+t]=n[247][t]);return{enc:i,dec:r}})(),s[10029]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄĀāÉĄÖÜáąČäčĆćéŹźĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņŃ¬√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[10079]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüÝ°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[10081]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),s[28591]=(function(){for(var r=`\0\x07\b	
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,i=[],n={},t=0;t!=r.length;++t)r.charCodeAt(t)!==65533&&(n[r.charAt(t)]=t),i[t]=r.charAt(t);return{enc:n,dec:i}})(),a.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"&&(a.exports=s);/*! cputils.js (C) 2013-present SheetJS -- http://sheetjs.com */(function(r,i){if(typeof s>"u")if(typeof Xu<"u"){var n=s;a.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"?a.exports=i(n):r.cptable=i(n)}else throw new Error("cptable not found");else s=i(s)})(vU,function(r){var i={1200:"utf16le",1201:"utf16be",12e3:"utf32le",12001:"utf32be",16969:"utf64le",20127:"ascii",65e3:"utf7",65001:"utf8"},n=[874,1250,1251,1252,1253,1254,1255,1256,1e4],t=[932,936,949,950],c=[65001],u={},f={},o={},l={},g=function(V){return String.fromCharCode(V)},m=function(V){return V.charCodeAt(0)},p=typeof Buffer<"u",_=function(){};if(p){var y=!Buffer.from;if(!y)try{Buffer.from("foo","utf8")}catch{y=!0}_=y?function(U,V){return V?new Buffer(U,V):new Buffer(U)}:Buffer.from.bind(Buffer),Buffer.allocUnsafe||(Buffer.allocUnsafe=function(U){return new Buffer(U)});var h=1024,d=Buffer.allocUnsafe(h),A=function(V){for(var W=Buffer.allocUnsafe(65536),Q=0;Q<65536;++Q)W[Q]=0;for(var le=Object.keys(V),G=le.length,fe=0,ie=le[fe];fe<G;++fe)(ie=le[fe])&&(W[ie.charCodeAt(0)]=V[ie]);return W},v=function(V){var W=A(r[V].enc);return function(le,G){var fe=le.length,ie,he=0,Y=0,K=0,oe=0;if(typeof le=="string")for(ie=Buffer.allocUnsafe(fe),he=0;he<fe;++he)ie[he]=W[le.charCodeAt(he)];else if(Buffer.isBuffer(le)){for(ie=Buffer.allocUnsafe(2*fe),Y=0,he=0;he<fe;++he)K=le[he],K<128?ie[Y++]=W[K]:K<224?(ie[Y++]=W[((K&31)<<6)+(le[he+1]&63)],++he):K<240?(ie[Y++]=W[((K&15)<<12)+((le[he+1]&63)<<6)+(le[he+2]&63)],he+=2):(oe=((K&7)<<18)+((le[he+1]&63)<<12)+((le[he+2]&63)<<6)+(le[he+3]&63),he+=3,oe<65536?ie[Y++]=W[oe]:(oe-=65536,ie[Y++]=W[55296+(oe>>10&1023)],ie[Y++]=W[56320+(oe&1023)]));ie=ie.slice(0,Y)}else for(ie=Buffer.allocUnsafe(fe),he=0;he<fe;++he)ie[he]=W[le[he].charCodeAt(0)];return!G||G==="buf"?ie:G!=="arr"?ie.toString("binary"):[].slice.call(ie)}},w=function(V){var W=r[V].dec,Q=Buffer.allocUnsafe(131072),le=0,G="";for(le=0;le<W.length;++le)if(G=W[le]){var fe=G.charCodeAt(0);Q[2*le]=fe&255,Q[2*le+1]=fe>>8}return function(he){var Y=he.length,K=0,oe=0;if(2*Y>h&&(h=2*Y,d=Buffer.allocUnsafe(h)),Buffer.isBuffer(he))for(K=0;K<Y;K++)oe=2*he[K],d[2*K]=Q[oe],d[2*K+1]=Q[oe+1];else if(typeof he=="string")for(K=0;K<Y;K++)oe=2*he.charCodeAt(K),d[2*K]=Q[oe],d[2*K+1]=Q[oe+1];else for(K=0;K<Y;K++)oe=2*he[K],d[2*K]=Q[oe],d[2*K+1]=Q[oe+1];return d.slice(0,2*Y).toString("ucs2")}},x=function(V){for(var W=r[V].enc,Q=Buffer.allocUnsafe(131072),le=0;le<131072;++le)Q[le]=0;for(var G=Object.keys(W),fe=0,ie=G[fe];fe<G.length;++fe)if(ie=G[fe]){var he=ie.charCodeAt(0);Q[2*he]=W[ie]&255,Q[2*he+1]=W[ie]>>8}return function(K,oe){var pe=K.length,ve=Buffer.allocUnsafe(2*pe),ge=0,ue=0,Te=0,Ee=0,ye=0;if(typeof K=="string"){for(ge=Ee=0;ge<pe;++ge)ue=K.charCodeAt(ge)*2,ve[Ee++]=Q[ue+1]||Q[ue],Q[ue+1]>0&&(ve[Ee++]=Q[ue]);ve=ve.slice(0,Ee)}else if(Buffer.isBuffer(K)){for(ge=Ee=0;ge<pe;++ge)ye=K[ge],ye<128?ue=ye:ye<224?(ue=((ye&31)<<6)+(K[ge+1]&63),++ge):ye<240?(ue=((ye&15)<<12)+((K[ge+1]&63)<<6)+(K[ge+2]&63),ge+=2):(ue=((ye&7)<<18)+((K[ge+1]&63)<<12)+((K[ge+2]&63)<<6)+(K[ge+3]&63),ge+=3),ue<65536?(ue*=2,ve[Ee++]=Q[ue+1]||Q[ue],Q[ue+1]>0&&(ve[Ee++]=Q[ue])):(Te=ue-65536,ue=2*(55296+(Te>>10&1023)),ve[Ee++]=Q[ue+1]||Q[ue],Q[ue+1]>0&&(ve[Ee++]=Q[ue]),ue=2*(56320+(Te&1023)),ve[Ee++]=Q[ue+1]||Q[ue],Q[ue+1]>0&&(ve[Ee++]=Q[ue]));ve=ve.slice(0,Ee)}else for(ge=Ee=0;ge<pe;ge++)ue=K[ge].charCodeAt(0)*2,ve[Ee++]=Q[ue+1]||Q[ue],Q[ue+1]>0&&(ve[Ee++]=Q[ue]);return!oe||oe==="buf"?ve:oe!=="arr"?ve.toString("binary"):[].slice.call(ve)}},C=function(V){var W=r[V].dec,Q=Buffer.allocUnsafe(131072),le=0,G,fe=0,ie=0,he=0;for(he=0;he<65536;++he)Q[2*he]=255,Q[2*he+1]=253;for(le=0;le<W.length;++le)(G=W[le])&&(fe=G.charCodeAt(0),ie=2*le,Q[ie]=fe&255,Q[ie+1]=fe>>8);return function(K){var oe=K.length,pe=Buffer.allocUnsafe(2*oe),ve=0,ge=0,ue=0;if(Buffer.isBuffer(K))for(ve=0;ve<oe;ve++)ge=2*K[ve],Q[ge]===255&&Q[ge+1]===253&&(ge=2*((K[ve]<<8)+K[ve+1]),++ve),pe[ue++]=Q[ge],pe[ue++]=Q[ge+1];else if(typeof K=="string")for(ve=0;ve<oe;ve++)ge=2*K.charCodeAt(ve),Q[ge]===255&&Q[ge+1]===253&&(ge=2*((K.charCodeAt(ve)<<8)+K.charCodeAt(ve+1)),++ve),pe[ue++]=Q[ge],pe[ue++]=Q[ge+1];else for(ve=0;ve<oe;ve++)ge=2*K[ve],Q[ge]===255&&Q[ge+1]===253&&(ge=2*((K[ve]<<8)+K[ve+1]),++ve),pe[ue++]=Q[ge],pe[ue++]=Q[ge+1];return pe.slice(0,ue).toString("ucs2")}};u[65001]=function U(V){if(typeof V=="string")return U(V.split("").map(m));var W=V.length,Q=0,le=0;4*W>h&&(h=4*W,d=Buffer.allocUnsafe(h));var G=0;W>=3&&V[0]==239&&V[1]==187&&V[2]==191&&(G=3);for(var fe=1,ie=0,he=0;G<W;G+=fe)fe=1,he=V[G],he<128?Q=he:he<224?(Q=(he&31)*64+(V[G+1]&63),fe=2):he<240?(Q=((he&15)<<12)+(V[G+1]&63)*64+(V[G+2]&63),fe=3):(Q=(he&7)*262144+((V[G+1]&63)<<12)+(V[G+2]&63)*64+(V[G+3]&63),fe=4),Q<65536?(d[ie++]=Q&255,d[ie++]=Q>>8):(Q-=65536,le=55296+(Q>>10&1023),Q=56320+(Q&1023),d[ie++]=le&255,d[ie++]=le>>>8,d[ie++]=Q&255,d[ie++]=Q>>>8&255);return d.slice(0,ie).toString("ucs2")},f[65001]=function(V,W){if(p&&Buffer.isBuffer(V))return!W||W==="buf"?V:W!=="arr"?V.toString("binary"):[].slice.call(V);var Q=V.length,le=0,G=0,fe=0,ie=typeof V=="string";4*Q>h&&(h=4*Q,d=Buffer.allocUnsafe(h));for(var he=0;he<Q;++he)le=ie?V.charCodeAt(he):V[he].charCodeAt(0),le<=127?d[fe++]=le:le<=2047?(d[fe++]=192+(le>>6),d[fe++]=128+(le&63)):le>=55296&&le<=57343?(le-=55296,++he,G=(ie?V.charCodeAt(he):V[he].charCodeAt(0))-56320+(le<<10),d[fe++]=240+(G>>>18&7),d[fe++]=144+(G>>>12&63),d[fe++]=128+(G>>>6&63),d[fe++]=128+(G&63)):(d[fe++]=224+(le>>12),d[fe++]=128+(le>>6&63),d[fe++]=128+(le&63));return!W||W==="buf"?d.slice(0,fe):W!=="arr"?d.slice(0,fe).toString("binary"):[].slice.call(d,0,fe)}}var k=function(){if(p){if(o[n[0]])return;var V=0,W=0;for(V=0;V<n.length;++V)W=n[V],r[W]&&(o[W]=w(W),l[W]=v(W));for(V=0;V<t.length;++V)W=t[V],r[W]&&(o[W]=C(W),l[W]=x(W));for(V=0;V<c.length;++V)W=c[V],u[W]&&(o[W]=u[W]),f[W]&&(l[W]=f[W])}},T=function(U,V){return""},S=function(V){delete o[V],delete l[V]},M=function(){if(p){if(!o[n[0]])return;n.forEach(S),t.forEach(S),c.forEach(S)}O=T,I=0},P={encache:k,decache:M,sbcs:n,dbcs:t};k();var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'(),-./:?",O=T,I=0,F=function U(V,W,Q){if(V===I&&O)return O(W,Q);if(l[V])return O=l[I=V],O(W,Q);p&&Buffer.isBuffer(W)&&(W=W.toString("utf8"));var le=W.length,G=p?Buffer.allocUnsafe(4*le):[],fe=0,ie=0,he=0,Y=0,K=r[V],oe,pe="",ve=typeof W=="string";if(K&&(oe=K.enc))for(ie=0;ie<le;++ie,++he)fe=oe[ve?W.charAt(ie):W[ie]],fe>255?(G[he]=fe>>8,G[++he]=fe&255):G[he]=fe&255;else if(pe=i[V])switch(pe){case"utf8":if(p&&ve){G=_(W,pe),he=G.length;break}for(ie=0;ie<le;++ie,++he)fe=ve?W.charCodeAt(ie):W[ie].charCodeAt(0),fe<=127?G[he]=fe:fe<=2047?(G[he]=192+(fe>>6),G[++he]=128+(fe&63)):fe>=55296&&fe<=57343?(fe-=55296,Y=(ve?W.charCodeAt(++ie):W[++ie].charCodeAt(0))-56320+(fe<<10),G[he]=240+(Y>>>18&7),G[++he]=144+(Y>>>12&63),G[++he]=128+(Y>>>6&63),G[++he]=128+(Y&63)):(G[he]=224+(fe>>12),G[++he]=128+(fe>>6&63),G[++he]=128+(fe&63));break;case"ascii":if(p&&typeof W=="string"){G=_(W,pe),he=G.length;break}for(ie=0;ie<le;++ie,++he)if(fe=ve?W.charCodeAt(ie):W[ie].charCodeAt(0),fe<=127)G[he]=fe;else throw new Error("bad ascii "+fe);break;case"utf16le":if(p&&typeof W=="string"){G=_(W,pe),he=G.length;break}for(ie=0;ie<le;++ie)fe=ve?W.charCodeAt(ie):W[ie].charCodeAt(0),G[he++]=fe&255,G[he++]=fe>>8;break;case"utf16be":for(ie=0;ie<le;++ie)fe=ve?W.charCodeAt(ie):W[ie].charCodeAt(0),G[he++]=fe>>8,G[he++]=fe&255;break;case"utf32le":for(ie=0;ie<le;++ie)fe=ve?W.charCodeAt(ie):W[ie].charCodeAt(0),fe>=55296&&fe<=57343&&(fe=65536+(fe-55296<<10)+(W[++ie].charCodeAt(0)-56320)),G[he++]=fe&255,fe>>=8,G[he++]=fe&255,fe>>=8,G[he++]=fe&255,fe>>=8,G[he++]=fe&255;break;case"utf32be":for(ie=0;ie<le;++ie)fe=ve?W.charCodeAt(ie):W[ie].charCodeAt(0),fe>=55296&&fe<=57343&&(fe=65536+(fe-55296<<10)+(W[++ie].charCodeAt(0)-56320)),G[he+3]=fe&255,fe>>=8,G[he+2]=fe&255,fe>>=8,G[he+1]=fe&255,fe>>=8,G[he]=fe&255,he+=4;break;case"utf7":for(ie=0;ie<le;ie++){var ge=ve?W.charAt(ie):W[ie].charAt(0);if(ge==="+"){G[he++]=43,G[he++]=45;continue}if(B.indexOf(ge)>-1){G[he++]=ge.charCodeAt(0);continue}var ue=U(1201,ge);G[he++]=43,G[he++]=N.charCodeAt(ue[0]>>2),G[he++]=N.charCodeAt(((ue[0]&3)<<4)+((ue[1]||0)>>4)),G[he++]=N.charCodeAt(((ue[1]&15)<<2)+((ue[2]||0)>>6)),G[he++]=45}break;default:throw new Error("Unsupported magic: "+V+" "+i[V])}else throw new Error("Unrecognized CP: "+V);return G=G.slice(0,he),p?!Q||Q==="buf"?G:Q!=="arr"?G.toString("binary"):[].slice.call(G):Q=="str"?G.map(g).join(""):G},L=function U(V,W){var Q;if(Q=o[V])return Q(W);if(typeof W=="string")return U(V,W.split("").map(m));var le=W.length,G=new Array(le),fe="",ie=0,he=0,Y=1,K=0,oe=0,pe=r[V],ve,ge="";if(pe&&(ve=pe.dec))for(he=0;he<le;he+=Y){if(Y=2,fe=ve[(W[he]<<8)+W[he+1]],fe||(Y=1,fe=ve[W[he]]),!fe)throw new Error("Unrecognized code: "+W[he]+" "+W[he+Y-1]+" "+he+" "+Y+" "+ve[W[he]]);G[K++]=fe}else if(ge=i[V])switch(ge){case"utf8":for(le>=3&&W[0]==239&&W[1]==187&&W[2]==191&&(he=3);he<le;he+=Y)Y=1,W[he]<128?ie=W[he]:W[he]<224?(ie=(W[he]&31)*64+(W[he+1]&63),Y=2):W[he]<240?(ie=((W[he]&15)<<12)+(W[he+1]&63)*64+(W[he+2]&63),Y=3):(ie=(W[he]&7)*262144+((W[he+1]&63)<<12)+(W[he+2]&63)*64+(W[he+3]&63),Y=4),ie<65536||(ie-=65536,oe=55296+(ie>>10&1023),ie=56320+(ie&1023),G[K++]=String.fromCharCode(oe)),G[K++]=String.fromCharCode(ie);break;case"ascii":if(p&&Buffer.isBuffer(W))return W.toString(ge);for(he=0;he<le;he++)G[he]=String.fromCharCode(W[he]);K=le;break;case"utf16le":if(le>=2&&W[0]==255&&W[1]==254&&(he=2),p&&Buffer.isBuffer(W))return W.toString(ge);for(Y=2;he+1<le;he+=Y)G[K++]=String.fromCharCode((W[he+1]<<8)+W[he]);break;case"utf16be":for(le>=2&&W[0]==254&&W[1]==255&&(he=2),Y=2;he+1<le;he+=Y)G[K++]=String.fromCharCode((W[he]<<8)+W[he+1]);break;case"utf32le":for(le>=4&&W[0]==255&&W[1]==254&&W[2]===0&&W[3]===0&&(he=4),Y=4;he<le;he+=Y)ie=(W[he+3]<<24)+(W[he+2]<<16)+(W[he+1]<<8)+W[he],ie>65535?(ie-=65536,G[K++]=String.fromCharCode(55296+(ie>>10&1023)),G[K++]=String.fromCharCode(56320+(ie&1023))):G[K++]=String.fromCharCode(ie);break;case"utf32be":for(le>=4&&W[3]==255&&W[2]==254&&W[1]===0&&W[0]===0&&(he=4),Y=4;he<le;he+=Y)ie=(W[he]<<24)+(W[he+1]<<16)+(W[he+2]<<8)+W[he+3],ie>65535?(ie-=65536,G[K++]=String.fromCharCode(55296+(ie>>10&1023)),G[K++]=String.fromCharCode(56320+(ie&1023))):G[K++]=String.fromCharCode(ie);break;case"utf7":for(le>=4&&W[0]==43&&W[1]==47&&W[2]==118&&(le>=5&&W[3]==56&&W[4]==45?he=5:(W[3]==56||W[3]==57||W[3]==43||W[3]==47)&&(he=4));he<le;he+=Y){if(W[he]!==43){Y=1,G[K++]=String.fromCharCode(W[he]);continue}if(Y=1,W[he+1]===45){Y=2,G[K++]="+";continue}for(;String.fromCharCode(W[he+Y]).match(/[A-Za-z0-9+\/]/);)Y++;var ue=0;W[he+Y]===45&&(++Y,ue=1);for(var Te=[],Ee="",ye=0,Se=0,Fe=0,Ve=0,ke=0,Pe=0,Re=0,Ye=1;Ye<Y-ue&&(Ve=N.indexOf(String.fromCharCode(W[he+Ye++])),ke=N.indexOf(String.fromCharCode(W[he+Ye++])),ye=Ve<<2|ke>>4,Te.push(ye),Pe=N.indexOf(String.fromCharCode(W[he+Ye++])),!(Pe===-1||(Se=(ke&15)<<4|Pe>>2,Te.push(Se),Re=N.indexOf(String.fromCharCode(W[he+Ye++])),Re===-1)));)Fe=(Pe&3)<<6|Re,Re<64&&Te.push(Fe);for(Ee=U(1201,Te),Ye=0;Ye<Ee.length;++Ye)G[K++]=Ee.charAt(Ye)}break;default:throw new Error("Unsupported magic: "+V+" "+i[V])}else throw new Error("Unrecognized CP: "+V);return G.slice(0,K).join("")},R=function(V){return!!(r[V]||i[V])};return r.utils={decode:L,encode:F,hascp:R,magic:i,cache:P},r})})(D2)),D2.exports}var P4;function bU(){return P4||(P4=1,(function(a,s){var r={};function i(n){n.version="0.18.5",n.style_version="1.2.0";var t,c=1200,u=1252;typeof cptable<"u"?t=cptable:typeof Xu<"u"&&(t=yU());var f=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],o={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},l=function(b){f.indexOf(b)!=-1&&(u=o[0]=b)},g=function(b){l(c=b)};function m(){g(1200),l(1252)}function p(b){for(var E=[],D=0,j=b.length;D<j;++D)E[D]=b.charCodeAt(D);return E}function _(b){for(var E=[],D=0;D<b.length>>1;++D)E[D]=String.fromCharCode(b.charCodeAt(2*D+1)+(b.charCodeAt(2*D)<<8));return E.join("")}var y=function(b){var E=b.charCodeAt(0),D=b.charCodeAt(1);return E==255&&D==254?(function(j){for(var J=[],re=0;re<j.length>>1;++re)J[re]=String.fromCharCode(j.charCodeAt(2*re)+(j.charCodeAt(2*re+1)<<8));return J.join("")})(b.slice(2)):E==254&&D==255?_(b.slice(2)):E==65279?b.slice(1):b},h=function(b){return String.fromCharCode(b)},d=function(b){return String.fromCharCode(b)};t!==void 0&&(g=function(b){l(c=b)},y=function(b){return b.charCodeAt(0)===255&&b.charCodeAt(1)===254?t.utils.decode(1200,p(b.slice(2))):b},h=function(b){return c===1200?String.fromCharCode(b):t.utils.decode(c,[255&b,b>>8])[0]},d=function(b){return t.utils.decode(u,[b])[0]});var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function v(b){for(var E,D,j,J,re,ee="",se=0,Ae=0,me=0;me<b.length;)J=(E=b.charCodeAt(me++))>>2,re=(3&E)<<4|(D=b.charCodeAt(me++))>>4,se=(15&D)<<2|(j=b.charCodeAt(me++))>>6,Ae=63&j,isNaN(D)?se=Ae=64:isNaN(j)&&(Ae=64),ee+=A.charAt(J)+A.charAt(re)+A.charAt(se)+A.charAt(Ae);return ee}function w(b){var E,D,j,J,re,ee,se="";b=b.replace(/[^\w\+\/\=]/g,"");for(var Ae=0;Ae<b.length;)E=A.indexOf(b.charAt(Ae++))<<2|(J=A.indexOf(b.charAt(Ae++)))>>4,se+=String.fromCharCode(E),D=(15&J)<<4|(re=A.indexOf(b.charAt(Ae++)))>>2,re!==64&&(se+=String.fromCharCode(D)),j=(3&re)<<6|(ee=A.indexOf(b.charAt(Ae++))),ee!==64&&(se+=String.fromCharCode(j));return se}var x=typeof Buffer<"u"&&typeof process<"u"&&process.versions!==void 0&&!!process.versions.node,C=(function(){if(typeof Buffer>"u")return function(){};var b=!Buffer.from;if(!b)try{Buffer.from("foo","utf8")}catch{b=!0}return b?function(E,D){return D?new Buffer(E,D):new Buffer(E)}:Buffer.from.bind(Buffer)})();function k(b){return x?Buffer.alloc?Buffer.alloc(b):new Buffer(b):new(typeof Uint8Array<"u"?Uint8Array:Array)(b)}function T(b){return x?Buffer.allocUnsafe?Buffer.allocUnsafe(b):new Buffer(b):new(typeof Uint8Array<"u"?Uint8Array:Array)(b)}var S=function(b){return x?C(b,"binary"):b.split("").map(function(E){return 255&E.charCodeAt(0)})};function M(b){if(typeof ArrayBuffer>"u")return S(b);for(var E=new ArrayBuffer(b.length),D=new Uint8Array(E),j=0;j!=b.length;++j)D[j]=255&b.charCodeAt(j);return E}function P(b){if(Array.isArray(b))return b.map(function(j){return String.fromCharCode(j)}).join("");for(var E=[],D=0;D<b.length;++D)E[D]=String.fromCharCode(b[D]);return E.join("")}function N(b){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(b instanceof ArrayBuffer)return N(new Uint8Array(b));for(var E=new Array(b.length),D=0;D<b.length;++D)E[D]=b[D];return E}var B=x?function(b){return Buffer.concat(b.map(function(E){return Buffer.isBuffer(E)?E:C(E)}))}:function(b){if(typeof Uint8Array>"u")return[].concat.apply([],b.map(function(re){return Array.isArray(re)?re:[].slice.call(re)}));for(var D=0,E=0,D=0;D<b.length;++D)E+=b[D].length;for(var j,J=new Uint8Array(E),E=D=0;D<b.length;E+=j,++D)if(j=b[D].length,b[D]instanceof Uint8Array)J.set(b[D],E);else{if(typeof b[D]=="string")throw"wtf";J.set(new Uint8Array(b[D]),E)}return J},O=/\u0000/g,I=/[\u0001-\u0006]/g;function F(b){for(var E="",D=b.length-1;0<=D;)E+=b.charAt(D--);return E}function L(b,E){return b=""+b,E<=b.length?b:xt("0",E-b.length)+b}function R(b,E){return b=""+b,E<=b.length?b:xt(" ",E-b.length)+b}function U(b,E){return b=""+b,E<=b.length?b:b+xt(" ",E-b.length)}var V=Math.pow(2,32);function W(J,E){if(V<J||J<-V)return D=J,j=E,D=""+Math.round(D),j<=D.length?D:xt("0",j-D.length)+D;var D,j,J=Math.round(J);return(E=E)<=(J=""+(J=J)).length?J:xt("0",E-J.length)+J}function Q(b,E){return E=E||0,b.length>=7+E&&(32|b.charCodeAt(E))==103&&(32|b.charCodeAt(E+1))==101&&(32|b.charCodeAt(E+2))==110&&(32|b.charCodeAt(E+3))==101&&(32|b.charCodeAt(E+4))==114&&(32|b.charCodeAt(E+5))==97&&(32|b.charCodeAt(E+6))==108}var le=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],G=[["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"]],fe={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"秒 "'},ie={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},he={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 Y(b,E,D){for(var j=b<0?-1:1,J=b*j,re=0,ee=1,se=0,Ae=1,me=0,_e=0,Be=Math.floor(J);me<E&&(se=(Be=Math.floor(J))*ee+re,_e=Be*me+Ae,!(J-Be<5e-8));)J=1/(J-Be),re=ee,ee=se,Ae=me,me=_e;return E<_e&&(se=E<me?(_e=Ae,re):(_e=me,ee)),D?(D=Math.floor(j*se/_e),[D,j*se-D*_e,_e]):[0,j*se,_e]}function K(se,E,D){if(2958465<se||se<0)return null;var j=0|se,J=Math.floor(86400*(se-j)),re=0,ee=[],se={D:j,T:J,u:86400*(se-j)-J,y:0,m:0,d:0,H:0,M:0,S:0,q:0};return Math.abs(se.u)<1e-6&&(se.u=0),E&&E.date1904&&(j+=1462),.9999<se.u&&(se.u=0,++J==86400&&(se.T=J=0,++j,++se.D)),j===60?(ee=D?[1317,10,29]:[1900,2,29],re=3):j===0?(ee=D?[1317,8,29]:[1900,1,0],re=6):(60<j&&--j,(E=new Date(1900,0,1)).setDate(E.getDate()+j-1),ee=[E.getFullYear(),E.getMonth()+1,E.getDate()],re=E.getDay(),j<60&&(re=(re+6)%7),D&&(re=(function(Ae,me){return me[0]-=581,me=Ae.getDay(),Ae<60&&(me=(me+6)%7),me})(E,ee))),se.y=ee[0],se.m=ee[1],se.d=ee[2],se.S=J%60,J=Math.floor(J/60),se.M=J%60,J=Math.floor(J/60),se.H=J,se.q=re,se}var oe=new Date(1899,11,31,0,0,0),pe=oe.getTime(),ve=new Date(1900,2,1,0,0,0);function ge(b,E){var D=b.getTime();return E?D-=1262304e5:ve<=b&&(D+=864e5),(D-(pe+6e4*(b.getTimezoneOffset()-oe.getTimezoneOffset())))/864e5}function ue(b){return b.indexOf(".")==-1?b:b.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Te(b){var E,D,j,J=Math.floor(Math.log(Math.abs(b))*Math.LOG10E),re=-4<=J&&J<=-1?b.toPrecision(10+J):Math.abs(J)<=9?(D=(E=b)<0?12:11,(j=ue(E.toFixed(12))).length<=D||(j=E.toPrecision(10)).length<=D?j:E.toExponential(5)):J===10?b.toFixed(10).substr(0,12):(re=ue((b=b).toFixed(11))).length>(b<0?12:11)||re==="0"||re==="-0"?b.toPrecision(6):re;return ue((re=re.toUpperCase()).indexOf("E")==-1?re:re.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2"))}function Ee(b,E){switch(typeof b){case"string":return b;case"boolean":return b?"TRUE":"FALSE";case"number":return(0|b)===b?b.toString(10):Te(b);case"undefined":return"";case"object":if(b==null)return"";if(b instanceof Date)return yr(14,ge(b,E&&E.date1904),E)}throw new Error("unsupported value in General format: "+b)}function ye(b){if(b.length<=3)return b;for(var E=b.length%3,D=b.substr(0,E);E!=b.length;E+=3)D+=(0<D.length?",":"")+b.substr(E,3);return D}var Se=/%/g,Fe=/# (\?+)( ?)\/( ?)(\d+)/,Ve=/^#*0*\.([0#]+)/,ke=/\).*[0#]/,Pe=/\(###\) ###\\?-####/;function Re(b){for(var E,D="",j=0;j!=b.length;++j)switch(E=b.charCodeAt(j)){case 35:break;case 63:D+=" ";break;case 48:D+="0";break;default:D+=String.fromCharCode(E)}return D}function Ye(b,E){return E=Math.pow(10,E),""+Math.round(b*E)/E}function Ke(j,E){var D=j-Math.floor(j),j=Math.pow(10,E);return E<(""+Math.round(D*j)).length?0:Math.round(D*j)}function ot(b,E,D){if(b.charCodeAt(0)===40&&!E.match(ke)){var j=E.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return 0<=D?ot("n",j,D):"("+ot("n",j,-D)+")"}if(E.charCodeAt(E.length-1)===44)return(function(Xe,lt,At){for(var pt=lt.length-1;lt.charCodeAt(pt-1)===44;)--pt;return mt(Xe,lt.substr(0,pt),At/Math.pow(10,3*(lt.length-pt)))})(b,E,D);if(E.indexOf("%")!==-1)return se=b,me=D,Ae=(_e=E).replace(Se,""),_e=_e.length-Ae.length,mt(se,Ae,me*Math.pow(10,2*_e))+xt("%",_e);var J;if(E.indexOf("E")!==-1)return(function Xe(lt,At){var pt,jt=lt.indexOf("E")-lt.indexOf(".")-1;if(lt.match(/^#+0.0E\+0$/)){if(At==0)return"0.0E+0";if(At<0)return"-"+Xe(lt,-At);var rr=lt.indexOf(".");rr===-1&&(rr=lt.indexOf("E"));var Yt=Math.floor(Math.log(At)*Math.LOG10E)%rr;if(Yt<0&&(Yt+=rr),(pt=(At/Math.pow(10,Yt)).toPrecision(1+jt+(rr+Yt)%rr)).indexOf("e")===-1){var cr=Math.floor(Math.log(At)*Math.LOG10E);for(pt.indexOf(".")===-1?pt=pt.charAt(0)+"."+pt.substr(1)+"E+"+(cr-pt.length+Yt):pt+="E+"+(cr-Yt);pt.substr(0,2)==="0.";)pt=(pt=pt.charAt(0)+pt.substr(2,rr)+"."+pt.substr(2+rr)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");pt=pt.replace(/\+-/,"-")}pt=pt.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(Fr,Dr,pr,Xr){return Dr+pr+Xr.substr(0,(rr+Yt)%rr)+"."+Xr.substr(Yt)+"E"})}else pt=At.toExponential(jt);return lt.match(/E\+00$/)&&pt.match(/e[+-]\d$/)&&(pt=pt.substr(0,pt.length-1)+"0"+pt.charAt(pt.length-1)),(pt=lt.match(/E\-/)&&pt.match(/e\+/)?pt.replace(/e\+/,"e"):pt).replace("e","E")})(E,D);if(E.charCodeAt(0)===36)return"$"+ot(b,E.substr(E.charAt(1)==" "?2:1),D);var re,ee,se,Ae,me,_e,Be,De=Math.abs(D),Le=D<0?"-":"";if(E.match(/^00+$/))return Le+W(De,E.length);if(E.match(/^[#?]+$/))return(J=(J=W(D,0))==="0"?"":J).length>E.length?J:Re(E.substr(0,E.length-J.length))+J;if(re=E.match(Fe))return Be=re,se=De,Ae=Le,me=parseInt(Be[4],10),_e=Math.round(se*me),se=Math.floor(_e/me),Ae+(se===0?"":""+se)+" "+((_e-=se*me)==0?xt(" ",Be[1].length+1+Be[4].length):R(_e,Be[1].length)+Be[2]+"/"+Be[3]+L(me,Be[4].length));if(E.match(/^#+0+$/))return Le+W(De,E.length-E.indexOf("0"));if(re=E.match(Ve))return J=Ye(D,re[1].length).replace(/^([^\.]+)$/,"$1."+Re(re[1])).replace(/\.$/,"."+Re(re[1])).replace(/\.(\d*)$/,function(Xe,lt){return"."+lt+xt("0",Re(re[1]).length-lt.length)}),E.indexOf("0.")!==-1?J:J.replace(/^0\./,".");if(E=E.replace(/^#+([0.])/,"$1"),re=E.match(/^(0*)\.(#*)$/))return Le+Ye(De,re[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,re[1].length?"0.":".");if(re=E.match(/^#{1,3},##0(\.?)$/))return Le+ye(W(De,0));if(re=E.match(/^#,##0\.([#0]*0)$/))return D<0?"-"+ot(b,E,-D):ye(""+(Math.floor(D)+(Be=D,(Je=re[1].length)<(""+Math.round((Be-Math.floor(Be))*Math.pow(10,Je))).length?1:0)))+"."+L(Ke(D,re[1].length),re[1].length);if(re=E.match(/^#,#*,#0/))return ot(b,E.replace(/^#,#*,/,""),D);if(re=E.match(/^([0#]+)(\\?-([0#]+))+$/))return J=F(ot(b,E.replace(/[\\-]/g,""),D)),ee=0,F(F(E.replace(/\\/g,"")).replace(/[0#]/g,function(Xe){return ee<J.length?J.charAt(ee++):Xe==="0"?"0":""}));if(E.match(Pe))return"("+(J=ot(b,"##########",D)).substr(0,3)+") "+J.substr(3,3)+"-"+J.substr(6);var Je="";if(re=E.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return ee=Math.min(re[4].length,7),He=Y(De,Math.pow(10,ee)-1,!1),J=Le,(Je=mt("n",re[1],He[1])).charAt(Je.length-1)==" "&&(Je=Je.substr(0,Je.length-1)+"0"),J+=Je+re[2]+"/"+re[3],(Je=U(He[2],ee)).length<re[4].length&&(Je=Re(re[4].substr(re[4].length-Je.length))+Je),J+=Je;if(re=E.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return ee=Math.min(Math.max(re[1].length,re[4].length),7),Le+((He=Y(De,Math.pow(10,ee)-1,!0))[0]||(He[1]?"":"0"))+" "+(He[1]?R(He[1],ee)+re[2]+"/"+re[3]+U(He[2],ee):xt(" ",2*ee+1+re[2].length+re[3].length));if(re=E.match(/^[#0?]+$/))return J=W(D,0),E.length<=J.length?J:Re(E.substr(0,E.length-J.length))+J;if(re=E.match(/^([#0?]+)\.([#0]+)$/)){J=""+D.toFixed(Math.min(re[2].length,10)).replace(/([^0])0+$/,"$1"),ee=J.indexOf(".");var He=E.indexOf(".")-ee,ct=E.length-J.length-He;return Re(E.substr(0,He)+J+E.substr(E.length-ct))}if(re=E.match(/^00,000\.([#0]*0)$/))return ee=Ke(D,re[1].length),D<0?"-"+ot(b,E,-D):ye((ct=D)<2147483647&&-2147483648<ct?""+(0<=ct?0|ct:ct-1|0):""+Math.floor(ct)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(Xe){return"00,"+(Xe.length<3?L(0,3-Xe.length):"")+Xe})+"."+L(ee,re[1].length);switch(E){case"###,##0.00":return ot(b,"#,##0.00",D);case"###,###":case"##,###":case"#,###":var et=ye(W(De,0));return et!=="0"?Le+et:"";case"###,###.00":return ot(b,"###,##0.00",D).replace(/^0\./,".");case"#,###.00":return ot(b,"#,##0.00",D).replace(/^0\./,".")}throw new Error("unsupported format |"+E+"|")}function nt(b,E,D){if(b.charCodeAt(0)===40&&!E.match(ke)){var j=E.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return 0<=D?nt("n",j,D):"("+nt("n",j,-D)+")"}if(E.charCodeAt(E.length-1)===44)return(function(He,ct,et){for(var Xe=ct.length-1;ct.charCodeAt(Xe-1)===44;)--Xe;return mt(He,ct.substr(0,Xe),et/Math.pow(10,3*(ct.length-Xe)))})(b,E,D);if(E.indexOf("%")!==-1)return J=b,ee=D,j=(re=E).replace(Se,""),re=re.length-j.length,mt(J,j,ee*Math.pow(10,2*re))+xt("%",re);var J,re,ee,se;if(E.indexOf("E")!==-1)return(function He(ct,et){var Xe,lt=ct.indexOf("E")-ct.indexOf(".")-1;if(ct.match(/^#+0.0E\+0$/)){if(et==0)return"0.0E+0";if(et<0)return"-"+He(ct,-et);var At=ct.indexOf(".");At===-1&&(At=ct.indexOf("E"));var pt,jt=Math.floor(Math.log(et)*Math.LOG10E)%At;jt<0&&(jt+=At),(Xe=(et/Math.pow(10,jt)).toPrecision(1+lt+(At+jt)%At)).match(/[Ee]/)||(pt=Math.floor(Math.log(et)*Math.LOG10E),Xe.indexOf(".")===-1?Xe=Xe.charAt(0)+"."+Xe.substr(1)+"E+"+(pt-Xe.length+jt):Xe+="E+"+(pt-jt),Xe=Xe.replace(/\+-/,"-")),Xe=Xe.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(rr,Yt,cr,Fr){return Yt+cr+Fr.substr(0,(At+jt)%At)+"."+Fr.substr(jt)+"E"})}else Xe=et.toExponential(lt);return ct.match(/E\+00$/)&&Xe.match(/e[+-]\d$/)&&(Xe=Xe.substr(0,Xe.length-1)+"0"+Xe.charAt(Xe.length-1)),(Xe=ct.match(/E\-/)&&Xe.match(/e\+/)?Xe.replace(/e\+/,"e"):Xe).replace("e","E")})(E,D);if(E.charCodeAt(0)===36)return"$"+nt(b,E.substr(E.charAt(1)==" "?2:1),D);var Ae,me,_e=Math.abs(D),Be=D<0?"-":"";if(E.match(/^00+$/))return Be+L(_e,E.length);if(E.match(/^[#?]+$/))return(se=D===0?"":""+D).length>E.length?se:Re(E.substr(0,E.length-se.length))+se;if(Ae=E.match(Fe))return Be+((De=_e)===0?"":""+De)+xt(" ",(De=Ae)[1].length+2+De[4].length);if(E.match(/^#+0+$/))return Be+L(_e,E.length-E.indexOf("0"));if(Ae=E.match(Ve))return se=(se=(""+D).replace(/^([^\.]+)$/,"$1."+Re(Ae[1])).replace(/\.$/,"."+Re(Ae[1]))).replace(/\.(\d*)$/,function(He,ct){return"."+ct+xt("0",Re(Ae[1]).length-ct.length)}),E.indexOf("0.")!==-1?se:se.replace(/^0\./,".");if(E=E.replace(/^#+([0.])/,"$1"),Ae=E.match(/^(0*)\.(#*)$/))return Be+(""+_e).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,Ae[1].length?"0.":".");if(Ae=E.match(/^#{1,3},##0(\.?)$/))return Be+ye(""+_e);if(Ae=E.match(/^#,##0\.([#0]*0)$/))return D<0?"-"+nt(b,E,-D):ye(""+D)+"."+xt("0",Ae[1].length);if(Ae=E.match(/^#,#*,#0/))return nt(b,E.replace(/^#,#*,/,""),D);if(Ae=E.match(/^([0#]+)(\\?-([0#]+))+$/))return se=F(nt(b,E.replace(/[\\-]/g,""),D)),me=0,F(F(E.replace(/\\/g,"")).replace(/[0#]/g,function(He){return me<se.length?se.charAt(me++):He==="0"?"0":""}));if(E.match(Pe))return"("+(se=nt(b,"##########",D)).substr(0,3)+") "+se.substr(3,3)+"-"+se.substr(6);var De="";if(Ae=E.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return me=Math.min(Ae[4].length,7),Le=Y(_e,Math.pow(10,me)-1,!1),se=Be,(De=mt("n",Ae[1],Le[1])).charAt(De.length-1)==" "&&(De=De.substr(0,De.length-1)+"0"),se+=De+Ae[2]+"/"+Ae[3],(De=U(Le[2],me)).length<Ae[4].length&&(De=Re(Ae[4].substr(Ae[4].length-De.length))+De),se+=De;if(Ae=E.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return me=Math.min(Math.max(Ae[1].length,Ae[4].length),7),Be+((Le=Y(_e,Math.pow(10,me)-1,!0))[0]||(Le[1]?"":"0"))+" "+(Le[1]?R(Le[1],me)+Ae[2]+"/"+Ae[3]+U(Le[2],me):xt(" ",2*me+1+Ae[2].length+Ae[3].length));if(Ae=E.match(/^[#0?]+$/))return se=""+D,E.length<=se.length?se:Re(E.substr(0,E.length-se.length))+se;if(Ae=E.match(/^([#0]+)\.([#0]+)$/)){se=""+D.toFixed(Math.min(Ae[2].length,10)).replace(/([^0])0+$/,"$1"),me=se.indexOf(".");var De=E.indexOf(".")-me,Le=E.length-se.length-De;return Re(E.substr(0,De)+se+E.substr(E.length-Le))}if(Ae=E.match(/^00,000\.([#0]*0)$/))return D<0?"-"+nt(b,E,-D):ye(""+D).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(He){return"00,"+(He.length<3?L(0,3-He.length):"")+He})+"."+L(0,Ae[1].length);switch(E){case"###,###":case"##,###":case"#,###":var Je=ye(""+_e);return Je!=="0"?Be+Je:"";default:if(E.match(/\.[0#?]*$/))return nt(b,E.slice(0,E.lastIndexOf(".")),D)+Re(E.slice(E.lastIndexOf(".")))}throw new Error("unsupported format |"+E+"|")}function mt(b,E,D){return((0|D)===D?nt:ot)(b,E,D)}var Ut=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ot(b){for(var E=0,D="",j="";E<b.length;)switch(D=b.charAt(E)){case"G":Q(b,E)&&(E+=6),E++;break;case'"':for(;b.charCodeAt(++E)!==34&&E<b.length;);++E;break;case"\\":case"_":E+=2;break;case"@":++E;break;case"B":case"b":if(b.charAt(E+1)==="1"||b.charAt(E+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(b.substr(E,3).toUpperCase()==="A/P"||b.substr(E,5).toUpperCase()==="AM/PM"||b.substr(E,5).toUpperCase()==="上午/下午")return!0;++E;break;case"[":for(j=D;b.charAt(E++)!=="]"&&E<b.length;)j+=b.charAt(E);if(j.match(Ut))return!0;break;case".":case"0":case"#":for(;E<b.length&&(-1<"0#?.,E+-%".indexOf(D=b.charAt(++E))||D=="\\"&&b.charAt(E+1)=="-"&&-1<"0#".indexOf(b.charAt(E+2))););break;case"?":for(;b.charAt(++E)===D;);break;case"*":++E,b.charAt(E)!=" "&&b.charAt(E)!="*"||++E;break;case"(":case")":++E;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;E<b.length&&-1<"0123456789".indexOf(b.charAt(++E)););break;case" ":default:++E}return!1}function wt(b,E,D,j){for(var J,re,ee,se=[],Ae="",me=0,_e="",Be="t",De="H";me<b.length;)switch(_e=b.charAt(me)){case"G":if(!Q(b,me))throw new Error("unrecognized character "+_e+" in "+b);se[se.length]={t:"G",v:"General"},me+=7;break;case'"':for(Ae="";(ee=b.charCodeAt(++me))!==34&&me<b.length;)Ae+=String.fromCharCode(ee);se[se.length]={t:"t",v:Ae},++me;break;case"\\":var Le=b.charAt(++me),Je=Le==="("||Le===")"?Le:"t";se[se.length]={t:Je,v:Le},++me;break;case"_":se[se.length]={t:"t",v:" "},me+=2;break;case"@":se[se.length]={t:"T",v:E},++me;break;case"B":case"b":if(b.charAt(me+1)==="1"||b.charAt(me+1)==="2"){if(J==null&&(J=K(E,D,b.charAt(me+1)==="2"))==null)return"";se[se.length]={t:"X",v:b.substr(me,2)},Be=_e,me+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":_e=_e.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(E<0||J==null&&(J=K(E,D))==null)return"";for(Ae=_e;++me<b.length&&b.charAt(me).toLowerCase()===_e;)Ae+=_e;(_e=_e==="m"&&Be.toLowerCase()==="h"?"M":_e)==="h"&&(_e=De),se[se.length]={t:_e,v:Ae},Be=_e;break;case"A":case"a":case"上":if(Le={t:_e,v:_e},J==null&&(J=K(E,D)),b.substr(me,3).toUpperCase()==="A/P"?(J!=null&&(Le.v=12<=J.H?"P":"A"),Le.t="T",De="h",me+=3):b.substr(me,5).toUpperCase()==="AM/PM"?(J!=null&&(Le.v=12<=J.H?"PM":"AM"),Le.t="T",me+=5,De="h"):b.substr(me,5).toUpperCase()==="上午/下午"?(J!=null&&(Le.v=12<=J.H?"下午":"上午"),Le.t="T",me+=5,De="h"):(Le.t="t",++me),J==null&&Le.t==="T")return"";se[se.length]=Le,Be=_e;break;case"[":for(Ae=_e;b.charAt(me++)!=="]"&&me<b.length;)Ae+=b.charAt(me);if(Ae.slice(-1)!=="]")throw'unterminated "[" block: |'+Ae+"|";if(Ae.match(Ut)){if(J==null&&(J=K(E,D))==null)return"";se[se.length]={t:"Z",v:Ae.toLowerCase()},Be=Ae.charAt(1)}else-1<Ae.indexOf("$")&&(Ae=(Ae.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ot(b)||(se[se.length]={t:"t",v:Ae}));break;case".":if(J!=null){for(Ae=_e;++me<b.length&&(_e=b.charAt(me))==="0";)Ae+=_e;se[se.length]={t:"s",v:Ae};break}case"0":case"#":for(Ae=_e;++me<b.length&&-1<"0#?.,E+-%".indexOf(_e=b.charAt(me));)Ae+=_e;se[se.length]={t:"n",v:Ae};break;case"?":for(Ae=_e;b.charAt(++me)===_e;)Ae+=_e;se[se.length]={t:_e,v:Ae},Be=_e;break;case"*":++me,b.charAt(me)!=" "&&b.charAt(me)!="*"||++me;break;case"(":case")":se[se.length]={t:j===1?"t":_e,v:_e},++me;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(Ae=_e;me<b.length&&-1<"0123456789".indexOf(b.charAt(++me));)Ae+=b.charAt(me);se[se.length]={t:"D",v:Ae};break;case" ":se[se.length]={t:_e,v:_e},++me;break;case"$":se[se.length]={t:"t",v:"$"},++me;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(_e)===-1)throw new Error("unrecognized character "+_e+" in "+b);se[se.length]={t:"t",v:_e},++me}var He,ct=0,et=0;for(me=se.length-1,Be="t";0<=me;--me)switch(se[me].t){case"h":case"H":se[me].t=De,Be="h",ct<1&&(ct=1);break;case"s":(He=se[me].v.match(/\.0+$/))&&(et=Math.max(et,He[0].length-1)),ct<3&&(ct=3);case"d":case"y":case"M":case"e":Be=se[me].t;break;case"m":Be==="s"&&(se[me].t="M",ct<2&&(ct=2));break;case"X":break;case"Z":(ct=(ct=ct<1&&se[me].v.match(/[Hh]/)?1:ct)<2&&se[me].v.match(/[Mm]/)?2:ct)<3&&se[me].v.match(/[Ss]/)&&(ct=3)}switch(ct){case 0:break;case 1:.5<=J.u&&(J.u=0,++J.S),60<=J.S&&(J.S=0,++J.M),60<=J.M&&(J.M=0,++J.H);break;case 2:.5<=J.u&&(J.u=0,++J.S),60<=J.S&&(J.S=0,++J.M)}var Xe,lt="";for(me=0;me<se.length;++me)switch(se[me].t){case"t":case"T":case" ":case"D":break;case"X":se[me].v="",se[me].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":se[me].v=(function(Fr,Dr,pr,Xr){var bn,dn="",an=0,en=0,tn=pr.y,Qr=0;switch(Fr){case 98:tn=pr.y+543;case 121:switch(Dr.length){case 1:case 2:bn=tn%100,Qr=2;break;default:bn=tn%1e4,Qr=4}break;case 109:switch(Dr.length){case 1:case 2:bn=pr.m,Qr=Dr.length;break;case 3:return G[pr.m-1][1];case 5:return G[pr.m-1][0];default:return G[pr.m-1][2]}break;case 100:switch(Dr.length){case 1:case 2:bn=pr.d,Qr=Dr.length;break;case 3:return le[pr.q][0];default:return le[pr.q][1]}break;case 104:switch(Dr.length){case 1:case 2:bn=1+(pr.H+11)%12,Qr=Dr.length;break;default:throw"bad hour format: "+Dr}break;case 72:switch(Dr.length){case 1:case 2:bn=pr.H,Qr=Dr.length;break;default:throw"bad hour format: "+Dr}break;case 77:switch(Dr.length){case 1:case 2:bn=pr.M,Qr=Dr.length;break;default:throw"bad minute format: "+Dr}break;case 115:if(Dr!="s"&&Dr!="ss"&&Dr!=".0"&&Dr!=".00"&&Dr!=".000")throw"bad second format: "+Dr;return pr.u!==0||Dr!="s"&&Dr!="ss"?(60*(en=2<=Xr?Xr===3?1e3:100:Xr===1?10:1)<=(an=Math.round(en*(pr.S+pr.u)))&&(an=0),Dr==="s"?an===0?"0":""+an/en:(dn=L(an,2+Xr),Dr==="ss"?dn.substr(0,2):"."+dn.substr(2,Dr.length-1))):L(pr.S,Dr.length);case 90:switch(Dr){case"[h]":case"[hh]":bn=24*pr.D+pr.H;break;case"[m]":case"[mm]":bn=60*(24*pr.D+pr.H)+pr.M;break;case"[s]":case"[ss]":bn=60*(60*(24*pr.D+pr.H)+pr.M)+Math.round(pr.S+pr.u);break;default:throw"bad abstime format: "+Dr}Qr=Dr.length===3?1:2;break;case 101:bn=tn,Qr=1}return 0<Qr?L(bn,Qr):""})(se[me].t.charCodeAt(0),se[me].v,J,et),se[me].t="t";break;case"n":case"?":for(Xe=me+1;se[Xe]!=null&&((_e=se[Xe].t)==="?"||_e==="D"||(_e===" "||_e==="t")&&se[Xe+1]!=null&&(se[Xe+1].t==="?"||se[Xe+1].t==="t"&&se[Xe+1].v==="/")||se[me].t==="("&&(_e===" "||_e==="n"||_e===")")||_e==="t"&&(se[Xe].v==="/"||se[Xe].v===" "&&se[Xe+1]!=null&&se[Xe+1].t=="?"));)se[me].v+=se[Xe].v,se[Xe]={v:"",t:";"},++Xe;lt+=se[me].v,me=Xe-1;break;case"G":se[me].t="t",se[me].v=Ee(E,D)}var At,pt,jt="";if(0<lt.length){lt.charCodeAt(0)==40?(At=E<0&&lt.charCodeAt(0)===45?-E:E,pt=mt("n",lt,At)):(pt=mt("n",lt,At=E<0&&1<j?-E:E),At<0&&se[0]&&se[0].t=="t"&&(pt=pt.substr(1),se[0].v="-"+se[0].v)),Xe=pt.length-1;for(var rr=se.length,me=0;me<se.length;++me)if(se[me]!=null&&se[me].t!="t"&&-1<se[me].v.indexOf(".")){rr=me;break}var Yt=se.length;if(rr===se.length&&pt.indexOf("E")===-1){for(me=se.length-1;0<=me;--me)se[me]!=null&&"n?".indexOf(se[me].t)!==-1&&(Xe>=se[me].v.length-1?(Xe-=se[me].v.length,se[me].v=pt.substr(Xe+1,se[me].v.length)):Xe<0?se[me].v="":(se[me].v=pt.substr(0,Xe+1),Xe=-1),se[me].t="t",Yt=me);0<=Xe&&Yt<se.length&&(se[Yt].v=pt.substr(0,Xe+1)+se[Yt].v)}else if(rr!==se.length&&pt.indexOf("E")===-1){for(Xe=pt.indexOf(".")-1,me=rr;0<=me;--me)if(se[me]!=null&&"n?".indexOf(se[me].t)!==-1){for(re=-1<se[me].v.indexOf(".")&&me===rr?se[me].v.indexOf(".")-1:se[me].v.length-1,jt=se[me].v.substr(re+1);0<=re;--re)0<=Xe&&(se[me].v.charAt(re)==="0"||se[me].v.charAt(re)==="#")&&(jt=pt.charAt(Xe--)+jt);se[me].v=jt,se[me].t="t",Yt=me}for(0<=Xe&&Yt<se.length&&(se[Yt].v=pt.substr(0,Xe+1)+se[Yt].v),Xe=pt.indexOf(".")+1,me=rr;me<se.length;++me)if(se[me]!=null&&("n?(".indexOf(se[me].t)!==-1||me===rr)){for(re=-1<se[me].v.indexOf(".")&&me===rr?se[me].v.indexOf(".")+1:0,jt=se[me].v.substr(0,re);re<se[me].v.length;++re)Xe<pt.length&&(jt+=pt.charAt(Xe++));se[me].v=jt,se[me].t="t",Yt=me}}}for(me=0;me<se.length;++me)se[me]!=null&&-1<"n?".indexOf(se[me].t)&&(At=1<j&&E<0&&0<me&&se[me-1].v==="-"?-E:E,se[me].v=mt(se[me].t,se[me].v,At),se[me].t="t");var cr="";for(me=0;me!==se.length;++me)se[me]!=null&&(cr+=se[me].v);return cr}var Kt=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function _t(b,E){if(E!=null){var D=parseFloat(E[2]);switch(E[1]){case"=":if(b==D)return 1;break;case">":if(D<b)return 1;break;case"<":if(b<D)return 1;break;case"<>":if(b!=D)return 1;break;case">=":if(D<=b)return 1;break;case"<=":if(b<=D)return 1}}}function Jt(b,E){var D=(function(ee){for(var se=[],Ae=!1,me=0,_e=0;me<ee.length;++me)switch(ee.charCodeAt(me)){case 34:Ae=!Ae;break;case 95:case 42:case 92:++me;break;case 59:se[se.length]=ee.substr(_e,me-_e),_e=me+1}if(se[se.length]=ee.substr(_e),Ae===!0)throw new Error("Format |"+ee+"| unterminated string ");return se})(b),j=D.length,J=D[j-1].indexOf("@");if(j<4&&-1<J&&--j,4<D.length)throw new Error("cannot find right format for |"+D.join("|")+"|");if(typeof E!="number")return[4,D.length===4||-1<J?D[D.length-1]:"@"];switch(D.length){case 1:D=-1<J?["General","General","General",D[0]]:[D[0],D[0],D[0],"@"];break;case 2:D=-1<J?[D[0],D[0],D[0],D[1]]:[D[0],D[1],D[0],"@"];break;case 3:D=-1<J?[D[0],D[1],D[0],D[2]]:[D[0],D[1],D[2],"@"]}var re=0<E?D[0]:E<0?D[1]:D[2];return D[0].indexOf("[")===-1&&D[1].indexOf("[")===-1?[j,re]:D[0].match(/\[[=<>]/)==null&&D[1].match(/\[[=<>]/)==null?[j,re]:(b=D[0].match(Kt),re=D[1].match(Kt),_t(E,b)?[j,D[0]]:_t(E,re)?[j,D[1]]:[j,D[b!=null&&re!=null?2:1]])}function yr(b,E,D){D==null&&(D={});var j="";switch(typeof b){case"string":j=b=="m/d/yy"&&D.dateNF?D.dateNF:b;break;case"number":(j=(j=b==14&&D.dateNF?D.dateNF:(D.table!=null?D.table:fe)[b])==null?D.table&&D.table[ie[b]]||fe[ie[b]]:j)==null&&(j=he[b]||"General")}if(Q(j,0))return Ee(E,D);var J=Jt(j,E=E instanceof Date?ge(E,D.date1904):E);if(Q(J[1]))return Ee(E,D);if(E===!0)E="TRUE";else if(E===!1)E="FALSE";else if(E===""||E==null)return"";return wt(J[1],E,D,J[0])}function vr(b,E){if(typeof E!="number"){E=+E||-1;for(var D=0;D<392;++D)if(fe[D]!=null){if(fe[D]==b){E=D;break}}else E<0&&(E=D);E<0&&(E=391)}return fe[E]=b,E}function Br(b){for(var E=0;E!=392;++E)b[E]!==void 0&&vr(b[E],E)}function zr(){var b;(b=b||{})[0]="General",b[1]="0",b[2]="0.00",b[3]="#,##0",b[4]="#,##0.00",b[9]="0%",b[10]="0.00%",b[11]="0.00E+00",b[12]="# ?/?",b[13]="# ??/??",b[14]="m/d/yy",b[15]="d-mmm-yy",b[16]="d-mmm",b[17]="mmm-yy",b[18]="h:mm AM/PM",b[19]="h:mm:ss AM/PM",b[20]="h:mm",b[21]="h:mm:ss",b[22]="m/d/yy h:mm",b[37]="#,##0 ;(#,##0)",b[38]="#,##0 ;[Red](#,##0)",b[39]="#,##0.00;(#,##0.00)",b[40]="#,##0.00;[Red](#,##0.00)",b[45]="mm:ss",b[46]="[h]:mm:ss",b[47]="mmss.0",b[48]="##0.0E+0",b[49]="@",b[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',fe=b}var mn={format:yr,load:vr,_table:fe,load_table:Br,parse_date_code:K,is_date:Ot,get_table:function(){return mn._table=fe}},jr={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"},Tn=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Lt,Gt=(function(){var b={};b.version="1.2.0";var E=(function(){for(var Xe=0,lt=new Array(256),At=0;At!=256;++At)Xe=1&(Xe=1&(Xe=1&(Xe=1&(Xe=1&(Xe=1&(Xe=1&(Xe=1&(Xe=At)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1)?-306674912^Xe>>>1:Xe>>>1,lt[At]=Xe;return typeof Int32Array<"u"?new Int32Array(lt):lt})(),D=(function(Xe){for(var lt=0,At=0,jt=0,pt=new(typeof Int32Array<"u"?Int32Array:Array)(4096),jt=0;jt!=256;++jt)pt[jt]=Xe[jt];for(jt=0;jt!=256;++jt)for(At=Xe[jt],lt=256+jt;lt<4096;lt+=256)At=pt[lt]=At>>>8^Xe[255&At];var rr=[];for(jt=1;jt!=16;++jt)rr[jt-1]=typeof Int32Array<"u"?pt.subarray(256*jt,256*jt+256):pt.slice(256*jt,256*jt+256);return rr})(E),j=D[0],J=D[1],re=D[2],ee=D[3],se=D[4],Ae=D[5],me=D[6],_e=D[7],Be=D[8],De=D[9],Le=D[10],Je=D[11],He=D[12],ct=D[13],et=D[14];return b.table=E,b.bstr=function(Xe,lt){for(var At=-1^lt,pt=0,jt=Xe.length;pt<jt;)At=At>>>8^E[255&(At^Xe.charCodeAt(pt++))];return~At},b.buf=function(Xe,lt){for(var At=-1^lt,pt=Xe.length-15,jt=0;jt<pt;)At=et[Xe[jt++]^255&At]^ct[Xe[jt++]^At>>8&255]^He[Xe[jt++]^At>>16&255]^Je[Xe[jt++]^At>>>24]^Le[Xe[jt++]]^De[Xe[jt++]]^Be[Xe[jt++]]^_e[Xe[jt++]]^me[Xe[jt++]]^Ae[Xe[jt++]]^se[Xe[jt++]]^ee[Xe[jt++]]^re[Xe[jt++]]^J[Xe[jt++]]^j[Xe[jt++]]^E[Xe[jt++]];for(pt+=15;jt<pt;)At=At>>>8^E[255&(At^Xe[jt++])];return~At},b.str=function(Xe,lt){for(var At,pt=-1^lt,jt=0,rr=Xe.length,Yt=0;jt<rr;)pt=(Yt=Xe.charCodeAt(jt++))<128?pt>>>8^E[255&(pt^Yt)]:Yt<2048?(pt=pt>>>8^E[255&(pt^(192|Yt>>6&31))])>>>8^E[255&(pt^(128|63&Yt))]:55296<=Yt&&Yt<57344?(Yt=64+(1023&Yt),At=1023&Xe.charCodeAt(jt++),(pt=(pt=(pt=pt>>>8^E[255&(pt^(240|Yt>>8&7))])>>>8^E[255&(pt^(128|Yt>>2&63))])>>>8^E[255&(pt^(128|At>>6&15|(3&Yt)<<4))])>>>8^E[255&(pt^(128|63&At))]):(pt=(pt=pt>>>8^E[255&(pt^(224|Yt>>12&15))])>>>8^E[255&(pt^(128|Yt>>6&63))])>>>8^E[255&(pt^(128|63&Yt))];return~pt},b})(),$t=(function(){var b,E={};function D(Ct){if(Ct.charAt(Ct.length-1)=="/")return Ct.slice(0,-1).indexOf("/")===-1?Ct:D(Ct.slice(0,-1));var mr=Ct.lastIndexOf("/");return mr===-1?Ct:Ct.slice(0,mr+1)}function j(Ct){if(Ct.charAt(Ct.length-1)=="/")return j(Ct.slice(0,-1));var mr=Ct.lastIndexOf("/");return mr===-1?Ct:Ct.slice(mr+1)}function J(Ct){es(Ct,0);for(var mr,Nt={};Ct.l<=Ct.length-4;){var fr=Ct.read_shift(2),Pt=Ct.read_shift(2),Gr=Ct.l+Pt,dr={};fr===21589&&(1&(mr=Ct.read_shift(1))&&(dr.mtime=Ct.read_shift(4)),5<Pt&&(2&mr&&(dr.atime=Ct.read_shift(4)),4&mr&&(dr.ctime=Ct.read_shift(4))),dr.mtime&&(dr.mt=new Date(1e3*dr.mtime))),Ct.l=Gr,Nt[fr]=dr}return Nt}function re(){return b=b||vb}function ee(Ct,mr){if(Ct[0]==80&&Ct[1]==75)return ui(Ct,mr);if((32|Ct[0])==109&&(32|Ct[1])==105)return(function(qr,Wn){if(Xe(qr.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var wn=Wn&&Wn.root||"",sn=(x&&Buffer.isBuffer(qr)?qr.toString("binary"):Xe(qr)).split(`\r
`),Yn=0,Xn="";for(Yn=0;Yn<sn.length;++Yn)if(Xn=sn[Yn],/^Content-Location:/i.test(Xn)&&(Xn=Xn.slice(Xn.indexOf("file")),wn=wn||Xn.slice(0,Xn.lastIndexOf("/")+1),Xn.slice(0,wn.length)!=wn))for(;0<wn.length&&(wn=(wn=wn.slice(0,wn.length-1)).slice(0,wn.lastIndexOf("/")+1),Xn.slice(0,wn.length)!=wn););if(qr=(sn[1]||"").match(/boundary="(.*?)"/),!qr)throw new Error("MAD cannot find boundary");var Fa="--"+(qr[1]||""),ta={FileIndex:[],FullPaths:[]};Ae(ta);var xa,zn=0;for(Yn=0;Yn<sn.length;++Yn){var Ha=sn[Yn];Ha!==Fa&&Ha!==Fa+"--"||(zn++&&(function(Va,yn,On){for(var Cn,Ia="",ai="",Rs="",qs=0;qs<10;++qs){var ds=yn[qs];if(!ds||ds.match(/^\s*$/))break;var wo=ds.match(/^(.*?):\s*([^\s].*)$/);if(wo)switch(wo[1].toLowerCase()){case"content-location":Ia=wo[2].trim();break;case"content-type":Rs=wo[2].trim();break;case"content-transfer-encoding":ai=wo[2].trim()}}switch(++qs,ai.toLowerCase()){case"base64":Cn=S(w(yn.slice(qs).join("")));break;case"quoted-printable":Cn=(function(_o){for(var wd=[],co=0;co<_o.length;++co){for(var au=_o[co];co<=_o.length&&au.charAt(au.length-1)=="=";)au=au.slice(0,au.length-1)+_o[++co];wd.push(au)}for(var _d=0;_d<wd.length;++_d)wd[_d]=wd[_d].replace(/[=][0-9A-Fa-f]{2}/g,function(gb){return String.fromCharCode(parseInt(gb.slice(1),16))});return S(wd.join(`\r
`))})(yn.slice(qs));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+ai)}On=Hl(Va,Ia.slice(On.length),Cn,{unsafe:!0}),Rs&&(On.ctype=Rs)})(ta,sn.slice(xa,Yn),wn),xa=Yn)}return ta})(Ct,mr);if(Ct.length<512)throw new Error("CFB file size "+Ct.length+" < 512");var Nt,fr,Pt,Gr=3,dr=512,ln=0,wr=[],ur=Ct.slice(0,512);es(ur,0);var Ir=(function(qr){if(qr[qr.l]==80&&qr[qr.l+1]==75)return[0,0];qr.chk(Je,"Header Signature: "),qr.l+=16;var Wn=qr.read_shift(2,"u");return[qr.read_shift(2,"u"),Wn]})(ur);switch(Gr=Ir[0]){case 3:dr=512;break;case 4:dr=4096;break;case 0:if(Ir[1]==0)return ui(Ct,mr);default:throw new Error("Major Version: Expected 3 or 4 saw "+Gr)}dr!==512&&es(ur=Ct.slice(0,dr),28);var Jr=Ct.slice(0,dr);(function(qr,Wn){var wn=9;switch(qr.l+=2,wn=qr.read_shift(2)){case 9:if(Wn!=3)throw new Error("Sector Shift: Expected 9 saw "+wn);break;case 12:if(Wn!=4)throw new Error("Sector Shift: Expected 12 saw "+wn);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+wn)}qr.chk("0600","Mini Sector Shift: "),qr.chk("000000000000","Reserved: ")})(ur,Gr);var Hn=ur.read_shift(4,"i");if(Gr===3&&Hn!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Hn);ur.l+=4,fr=ur.read_shift(4,"i"),ur.l+=4,ur.chk("00100000","Mini Stream Cutoff Size: "),Pt=ur.read_shift(4,"i"),Nt=ur.read_shift(4,"i"),Qn=ur.read_shift(4,"i"),ln=ur.read_shift(4,"i");for(var jn,kn=0;kn<109&&!((jn=ur.read_shift(4,"i"))<0);++kn)wr[kn]=jn;var hn=(function(qr,Wn){for(var wn=Math.ceil(qr.length/Wn)-1,sn=[],Yn=1;Yn<wn;++Yn)sn[Yn-1]=qr.slice(Yn*Wn,(Yn+1)*Wn);return sn[wn-1]=qr.slice(wn*Wn),sn})(Ct,dr);(function qr(Wn,wn,sn,Yn,Xn){var Fa=Le;if(Wn===Le){if(wn!==0)throw new Error("DIFAT chain shorter than expected")}else if(Wn!==-1){var ta=sn[Wn],xa=(Yn>>>2)-1;if(ta){for(var zn=0;zn<xa&&(Fa=so(ta,4*zn))!==Le;++zn)Xn.push(Fa);qr(so(ta,Yn-4),wn-1,sn,Yn,Xn)}}})(Qn,ln,hn,dr,wr);var Bn=(function(qr,Wn,wn,sn){var Yn=qr.length,Xn=[],Fa=[],ta=[],xa=[],zn=sn-1,Ha=0,Va=0,yn=0,On=0;for(Ha=0;Ha<Yn;++Ha)if(ta=[],Yn<=(yn=Ha+Wn)&&(yn-=Yn),!Fa[yn]){xa=[];var Cn=[];for(Va=yn;0<=Va;){Cn[Va]=!0,Fa[Va]=!0,ta[ta.length]=Va,xa.push(qr[Va]);var Ia=wn[Math.floor(4*Va/sn)];if(sn<4+(On=4*Va&zn))throw new Error("FAT boundary crossed: "+Va+" 4 "+sn);if(!qr[Ia]||(Va=so(qr[Ia],On),Cn[Va]))break}Xn[yn]={nodes:ta,data:Za([xa])}}return Xn})(hn,fr,wr,dr);Bn[fr].name="!Directory",0<Nt&&Pt!==Le&&(Bn[Pt].name="!MiniFAT"),Bn[wr[0]].name="!FAT",Bn.fat_addrs=wr,Bn.ssz=dr;var Hn=[],Qn=[],ln=[];return(function(qr,Wn,wn,sn,Yn,Xn,Fa){for(var ta,xa=0,zn=wn.length?2:0,Ha=qr[fr].data,Va=0,yn=0;Va<Ha.length;Va+=128){var On=Ha.slice(Va,Va+128);es(On,64),yn=On.read_shift(2),ta=Df(On,0,yn-zn),wn.push(ta);var Cn={name:ta,type:On.read_shift(1),color:On.read_shift(1),L:On.read_shift(4,"i"),R:On.read_shift(4,"i"),C:On.read_shift(4,"i"),clsid:On.read_shift(16),state:On.read_shift(4,"i"),start:0,size:0};On.read_shift(2)+On.read_shift(2)+On.read_shift(2)+On.read_shift(2)!==0&&(Cn.ct=se(On,On.l-8)),On.read_shift(2)+On.read_shift(2)+On.read_shift(2)+On.read_shift(2)!==0&&(Cn.mt=se(On,On.l-8)),Cn.start=On.read_shift(4,"i"),Cn.size=On.read_shift(4,"i"),Cn.size<0&&Cn.start<0&&(Cn.size=Cn.type=0,Cn.start=Le,Cn.name=""),Cn.type===5?(xa=Cn.start,0<sn&&xa!==Le&&(qr[xa].name="!StreamData")):4096<=Cn.size?(Cn.storage="fat",qr[Cn.start]===void 0&&(qr[Cn.start]=(function(Ia,ai,Rs,qs,ds){var wo=[],_o=[];ds=ds||[];var wd=qs-1,co=0,au=0;for(co=ai;0<=co;){ds[co]=!0,wo[wo.length]=co,_o.push(Ia[co]);var _d=Rs[Math.floor(4*co/qs)];if(qs<4+(au=4*co&wd))throw new Error("FAT boundary crossed: "+co+" 4 "+qs);if(!Ia[_d])break;co=so(Ia[_d],au)}return{nodes:wo,data:Za([_o])}})(Wn,Cn.start,qr.fat_addrs,qr.ssz)),qr[Cn.start].name=Cn.name,Cn.content=qr[Cn.start].data.slice(0,Cn.size)):(Cn.storage="minifat",Cn.size<0?Cn.size=0:xa!==Le&&Cn.start!==Le&&qr[xa]&&(Cn.content=(function(Ia,ai,Rs){for(var qs=Ia.start,ds=Ia.size,wo=[],_o=qs;Rs&&0<ds&&0<=_o;)wo.push(ai.slice(_o*De,_o*De+De)),ds-=De,_o=so(Rs,4*_o);return wo.length===0?Cr(0):B(wo).slice(0,Ia.size)})(Cn,qr[xa].data,(qr[Fa]||{}).data))),Cn.content&&es(Cn.content,0),Yn[ta]=Cn,Xn.push(Cn)}})(Bn,hn,Hn,Nt,{},Qn,Pt),(function(qr,Wn,wn){for(var sn=0,Yn=0,Xn=0,Fa=0,ta=0,xa=wn.length,zn=[],Ha=[];sn<xa;++sn)zn[sn]=Ha[sn]=sn,Wn[sn]=wn[sn];for(;ta<Ha.length;++ta)sn=Ha[ta],Yn=qr[sn].L,Xn=qr[sn].R,Fa=qr[sn].C,zn[sn]===sn&&(Yn!==-1&&zn[Yn]!==Yn&&(zn[sn]=zn[Yn]),Xn!==-1&&zn[Xn]!==Xn&&(zn[sn]=zn[Xn])),Fa!==-1&&(zn[Fa]=sn),Yn!==-1&&sn!=zn[sn]&&(zn[Yn]=zn[sn],Ha.lastIndexOf(Yn)<ta&&Ha.push(Yn)),Xn!==-1&&sn!=zn[sn]&&(zn[Xn]=zn[sn],Ha.lastIndexOf(Xn)<ta&&Ha.push(Xn));for(sn=1;sn<xa;++sn)zn[sn]===sn&&(Xn!==-1&&zn[Xn]!==Xn?zn[sn]=zn[Xn]:Yn!==-1&&zn[Yn]!==Yn&&(zn[sn]=zn[Yn]));for(sn=1;sn<xa;++sn)if(qr[sn].type!==0){if((ta=sn)!=zn[ta])for(;ta=zn[ta],Wn[sn]=Wn[ta]+"/"+Wn[sn],ta!==0&&zn[ta]!==-1&&ta!=zn[ta];);zn[sn]=-1}for(Wn[0]+="/",sn=1;sn<xa;++sn)qr[sn].type!==2&&(Wn[sn]+="/")})(Qn,ln,Hn),Hn.shift(),ln={FileIndex:Qn,FullPaths:ln},mr&&mr.raw&&(ln.raw={header:Jr,sectors:hn}),ln}function se(Ct,mr){return new Date(1e3*(_a(Ct,mr+4)/1e7*Math.pow(2,32)+_a(Ct,mr)/1e7-11644473600))}function Ae(Ct,fr){var Nt=fr||{},fr=Nt.root||"Root Entry";if(Ct.FullPaths||(Ct.FullPaths=[]),Ct.FileIndex||(Ct.FileIndex=[]),Ct.FullPaths.length!==Ct.FileIndex.length)throw new Error("inconsistent CFB structure");Ct.FullPaths.length===0&&(Ct.FullPaths[0]=fr+"/",Ct.FileIndex[0]={name:fr,type:5}),Nt.CLSID&&(Ct.FileIndex[0].clsid=Nt.CLSID),fr=Ct,Nt="Sh33tJ5",$t.find(fr,"/"+Nt)||((Ct=Cr(4))[0]=55,Ct[1]=Ct[3]=50,Ct[2]=54,fr.FileIndex.push({name:Nt,type:2,content:Ct,size:4,L:69,R:69,C:69}),fr.FullPaths.push(fr.FullPaths[0]+Nt),me(fr))}function me(Ct,mr){Ae(Ct);for(var Nt=!1,fr=!1,Pt=Ct.FullPaths.length-1;0<=Pt;--Pt){var Gr=Ct.FileIndex[Pt];switch(Gr.type){case 0:fr?Nt=!0:(Ct.FileIndex.pop(),Ct.FullPaths.pop());break;case 1:case 2:case 5:fr=!0,isNaN(Gr.R*Gr.L*Gr.C)&&(Nt=!0),-1<Gr.R&&-1<Gr.L&&Gr.R==Gr.L&&(Nt=!0);break;default:Nt=!0}}if(Nt||mr){for(var dr=new Date(1987,1,19),wr=0,ur=Object.create?Object.create(null):{},Ir=[],Pt=0;Pt<Ct.FullPaths.length;++Pt)ur[Ct.FullPaths[Pt]]=!0,Ct.FileIndex[Pt].type!==0&&Ir.push([Ct.FullPaths[Pt],Ct.FileIndex[Pt]]);for(Pt=0;Pt<Ir.length;++Pt){var Jr=D(Ir[Pt][0]);(fr=ur[Jr])||(Ir.push([Jr,{name:j(Jr).replace("/",""),type:1,clsid:ct,ct:dr,mt:dr,content:null}]),ur[Jr]=!0)}for(Ir.sort(function(hn,Bn){return(function(Hn,Qn){for(var ln,qr=Hn.split("/"),Wn=Qn.split("/"),wn=0,sn=Math.min(qr.length,Wn.length);wn<sn;++wn){if(ln=qr[wn].length-Wn[wn].length)return ln;if(qr[wn]!=Wn[wn])return qr[wn]<Wn[wn]?-1:1}return qr.length-Wn.length})(hn[0],Bn[0])}),Ct.FullPaths=[],Ct.FileIndex=[],Pt=0;Pt<Ir.length;++Pt)Ct.FullPaths[Pt]=Ir[Pt][0],Ct.FileIndex[Pt]=Ir[Pt][1];for(Pt=0;Pt<Ir.length;++Pt){var jn=Ct.FileIndex[Pt],kn=Ct.FullPaths[Pt];if(jn.name=j(kn).replace("/",""),jn.L=jn.R=jn.C=-(jn.color=1),jn.size=jn.content?jn.content.length:0,jn.start=0,jn.clsid=jn.clsid||ct,Pt===0)jn.C=1<Ir.length?1:-1,jn.size=0,jn.type=5;else if(kn.slice(-1)=="/"){for(wr=Pt+1;wr<Ir.length&&D(Ct.FullPaths[wr])!=kn;++wr);for(jn.C=wr>=Ir.length?-1:wr,wr=Pt+1;wr<Ir.length&&D(Ct.FullPaths[wr])!=D(kn);++wr);jn.R=wr>=Ir.length?-1:wr,jn.type=1}else D(Ct.FullPaths[Pt+1]||"")==D(kn)&&(jn.R=Pt+1),jn.type=2}}}function _e(Ct,mr){var Nt=mr||{};if(Nt.fileType=="mad")return(function(kn,hn){for(var Bn=hn||{},Hn=Bn.boundary||"SheetJS",Qn=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(Hn="------="+Hn).slice(2)+'"',"","",""],ln=kn.FullPaths[0],qr=ln,Wn=kn.FileIndex[0],wn=1;wn<kn.FullPaths.length;++wn)if(qr=kn.FullPaths[wn].slice(ln.length),(Wn=kn.FileIndex[wn]).size&&Wn.content&&qr!="Sh33tJ5"){qr=qr.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(zn){return"_x"+zn.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(zn){return"_u"+zn.charCodeAt(0).toString(16)+"_"});for(var sn=Wn.content,Yn=x&&Buffer.isBuffer(sn)?sn.toString("binary"):Xe(sn),Xn=0,Fa=Math.min(1024,Yn.length),ta=0,xa=0;xa<=Fa;++xa)32<=(ta=Yn.charCodeAt(xa))&&ta<128&&++Xn;sn=4*Fa/5<=Xn,Qn.push(Hn),Qn.push("Content-Location: "+(Bn.root||"file:///C:/SheetJS/")+qr),Qn.push("Content-Transfer-Encoding: "+(sn?"quoted-printable":"base64")),Qn.push("Content-Type: "+(function(yn,Ha){if(yn.ctype)return yn.ctype;var Va=yn.name||"",yn=Va.match(/\.([^\.]+)$/);return yn&&Ps[yn[1]]||Ha&&(yn=(Va=Ha).match(/[\.\\]([^\.\\])+$/))&&Ps[yn[1]]?Ps[yn[1]]:"application/octet-stream"})(Wn,qr)),Qn.push(""),Qn.push((sn?function(zn){zn=zn.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Rs){return Rs=Rs.charCodeAt(0).toString(16).toUpperCase(),"="+(Rs.length==1?"0"+Rs:Rs)}),(zn=zn.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)==`
`&&(zn="=0D"+zn.slice(1)),zn=zn.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,`
=0A`).replace(/([^\r\n])\n/gm,"$1=0A");for(var Ha=[],Va=zn.split(`\r
`),yn=0;yn<Va.length;++yn){var On=Va[yn];if(On.length!=0)for(var Cn=0;Cn<On.length;){var Ia=76,ai=On.slice(Cn,Cn+Ia);ai.charAt(Ia-1)=="="?Ia--:ai.charAt(Ia-2)=="="?Ia-=2:ai.charAt(Ia-3)=="="&&(Ia-=3),ai=On.slice(Cn,Cn+Ia),(Cn+=Ia)<On.length&&(ai+="="),Ha.push(ai)}else Ha.push("")}return Ha.join(`\r
`)}:function(zn){for(var Ha=v(zn),Va=[],yn=0;yn<Ha.length;yn+=76)Va.push(Ha.slice(yn,yn+76));return Va.join(`\r
`)+`\r
`})(Yn))}return Qn.push(Hn+`--\r
`),Qn.join(`\r
`)})(Ct,Nt);if(me(Ct),Nt.fileType==="zip")return(function(kn,Bn){var Bn=Bn||{},Hn=[],Qn=[],ln=Cr(1),qr=Bn.compression?8:0,Wn=0,wn=0,sn=0,Yn=0,Xn=0,Fa=kn.FullPaths[0],ta=Fa,xa=kn.FileIndex[0],zn=[],Ha=0;for(wn=1;wn<kn.FullPaths.length;++wn)if(ta=kn.FullPaths[wn].slice(Fa.length),(xa=kn.FileIndex[wn]).size&&xa.content&&ta!="Sh33tJ5"){var Va=Yn,yn=Cr(ta.length);for(sn=0;sn<ta.length;++sn)yn.write_shift(1,127&ta.charCodeAt(sn));yn=yn.slice(0,yn.l),zn[Xn]=Gt.buf(xa.content,0);var On=xa.content;qr==8&&(On=(function(Cn){return Be?Be.deflateRawSync(Cn):xn(Cn)})(On)),(ln=Cr(30)).write_shift(4,67324752),ln.write_shift(2,20),ln.write_shift(2,Wn),ln.write_shift(2,qr),xa.mt?(function(Cn,Ia){var ai=(Ia=typeof Ia=="string"?new Date(Ia):Ia).getHours();ai=(ai=ai<<6|Ia.getMinutes())<<5|Ia.getSeconds()>>>1,Cn.write_shift(2,ai),ai=(ai=(ai=Ia.getFullYear()-1980)<<4|Ia.getMonth()+1)<<5|Ia.getDate(),Cn.write_shift(2,ai)})(ln,xa.mt):ln.write_shift(4,0),ln.write_shift(-4,zn[Xn]),ln.write_shift(4,On.length),ln.write_shift(4,xa.content.length),ln.write_shift(2,yn.length),ln.write_shift(2,0),Yn+=ln.length,Hn.push(ln),Yn+=yn.length,Hn.push(yn),Yn+=On.length,Hn.push(On),(ln=Cr(46)).write_shift(4,33639248),ln.write_shift(2,0),ln.write_shift(2,20),ln.write_shift(2,Wn),ln.write_shift(2,qr),ln.write_shift(4,0),ln.write_shift(-4,zn[Xn]),ln.write_shift(4,On.length),ln.write_shift(4,xa.content.length),ln.write_shift(2,yn.length),ln.write_shift(2,0),ln.write_shift(2,0),ln.write_shift(2,0),ln.write_shift(2,0),ln.write_shift(4,0),ln.write_shift(4,Va),Ha+=ln.l,Qn.push(ln),Ha+=yn.length,Qn.push(yn),++Xn}return(ln=Cr(22)).write_shift(4,101010256),ln.write_shift(2,0),ln.write_shift(2,0),ln.write_shift(2,Xn),ln.write_shift(2,Xn),ln.write_shift(4,Ha),ln.write_shift(4,Yn),ln.write_shift(2,0),B([B(Hn),B(Qn),ln])})(Ct,Nt);for(var fr=(function(kn){for(var hn=0,Bn=0,Hn=0;Hn<kn.FileIndex.length;++Hn){var Qn=kn.FileIndex[Hn];Qn.content&&0<(Qn=Qn.content.length)&&(Qn<4096?hn+=Qn+63>>6:Bn+=Qn+511>>9)}for(var ln=kn.FullPaths.length+3>>2,qr=hn+127>>7,Wn=(hn+7>>3)+Bn+ln+qr,wn=Wn+127>>7,sn=wn<=109?0:Math.ceil((wn-109)/127);wn<Wn+wn+sn+127>>7;)sn=++wn<=109?0:Math.ceil((wn-109)/127);return ln=[1,sn,wn,qr,ln,Bn,hn,0],kn.FileIndex[0].size=hn<<6,ln[7]=(kn.FileIndex[0].start=ln[0]+ln[1]+ln[2]+ln[3]+ln[4]+ln[5])+(ln[6]+7>>3),ln})(Ct),Pt=Cr(fr[7]<<9),dr=0,Gr=0,dr=0;dr<8;++dr)Pt.write_shift(1,He[dr]);for(dr=0;dr<8;++dr)Pt.write_shift(2,0);for(Pt.write_shift(2,62),Pt.write_shift(2,3),Pt.write_shift(2,65534),Pt.write_shift(2,9),Pt.write_shift(2,6),dr=0;dr<3;++dr)Pt.write_shift(2,0);for(Pt.write_shift(4,0),Pt.write_shift(4,fr[2]),Pt.write_shift(4,fr[0]+fr[1]+fr[2]+fr[3]-1),Pt.write_shift(4,0),Pt.write_shift(4,4096),Pt.write_shift(4,fr[3]?fr[0]+fr[1]+fr[2]-1:Le),Pt.write_shift(4,fr[3]),Pt.write_shift(-4,fr[1]?fr[0]-1:Le),Pt.write_shift(4,fr[1]),dr=0;dr<109;++dr)Pt.write_shift(-4,dr<fr[2]?fr[1]+dr:-1);if(fr[1])for(Gr=0;Gr<fr[1];++Gr){for(;dr<236+127*Gr;++dr)Pt.write_shift(-4,dr<fr[2]?fr[1]+dr:-1);Pt.write_shift(-4,Gr===fr[1]-1?Le:Gr+1)}function wr(kn){for(Gr+=kn;dr<Gr-1;++dr)Pt.write_shift(-4,dr+1);kn&&(++dr,Pt.write_shift(-4,Le))}for(Gr=dr=0,Gr+=fr[1];dr<Gr;++dr)Pt.write_shift(-4,et.DIFSECT);for(Gr+=fr[2];dr<Gr;++dr)Pt.write_shift(-4,et.FATSECT);wr(fr[3]),wr(fr[4]);for(var ur=0,Ir=0,Jr=Ct.FileIndex[0];ur<Ct.FileIndex.length;++ur)(Jr=Ct.FileIndex[ur]).content&&((Ir=Jr.content.length)<4096||(Jr.start=Gr,wr(Ir+511>>9)));for(wr(fr[6]+7>>3);511&Pt.l;)Pt.write_shift(-4,et.ENDOFCHAIN);for(ur=Gr=dr=0;ur<Ct.FileIndex.length;++ur)(Jr=Ct.FileIndex[ur]).content&&(!(Ir=Jr.content.length)||4096<=Ir||(Jr.start=Gr,wr(Ir+63>>6)));for(;511&Pt.l;)Pt.write_shift(-4,et.ENDOFCHAIN);for(dr=0;dr<fr[4]<<2;++dr){var jn=Ct.FullPaths[dr];if(jn&&jn.length!==0){if(Jr=Ct.FileIndex[dr],dr===0&&(Jr.start=Jr.size?Jr.start-1:Le),jn=dr===0&&Nt.root||Jr.name,Ir=2*(jn.length+1),Pt.write_shift(64,jn,"utf16le"),Pt.write_shift(2,Ir),Pt.write_shift(1,Jr.type),Pt.write_shift(1,Jr.color),Pt.write_shift(-4,Jr.L),Pt.write_shift(-4,Jr.R),Pt.write_shift(-4,Jr.C),Jr.clsid)Pt.write_shift(16,Jr.clsid,"hex");else for(ur=0;ur<4;++ur)Pt.write_shift(4,0);Pt.write_shift(4,Jr.state||0),Pt.write_shift(4,0),Pt.write_shift(4,0),Pt.write_shift(4,0),Pt.write_shift(4,0),Pt.write_shift(4,Jr.start),Pt.write_shift(4,Jr.size),Pt.write_shift(4,0)}else{for(ur=0;ur<17;++ur)Pt.write_shift(4,0);for(ur=0;ur<3;++ur)Pt.write_shift(4,-1);for(ur=0;ur<12;++ur)Pt.write_shift(4,0)}}for(dr=1;dr<Ct.FileIndex.length;++dr)if(4096<=(Jr=Ct.FileIndex[dr]).size)if(Pt.l=Jr.start+1<<9,x&&Buffer.isBuffer(Jr.content))Jr.content.copy(Pt,Pt.l,0,Jr.size),Pt.l+=Jr.size+511&-512;else{for(ur=0;ur<Jr.size;++ur)Pt.write_shift(1,Jr.content[ur]);for(;511&ur;++ur)Pt.write_shift(1,0)}for(dr=1;dr<Ct.FileIndex.length;++dr)if(0<(Jr=Ct.FileIndex[dr]).size&&Jr.size<4096)if(x&&Buffer.isBuffer(Jr.content))Jr.content.copy(Pt,Pt.l,0,Jr.size),Pt.l+=Jr.size+63&-64;else{for(ur=0;ur<Jr.size;++ur)Pt.write_shift(1,Jr.content[ur]);for(;63&ur;++ur)Pt.write_shift(1,0)}if(x)Pt.l=Pt.length;else for(;Pt.l<Pt.length;)Pt.write_shift(1,0);return Pt}E.version="1.2.1";var Be,De=64,Le=-2,Je="d0cf11e0a1b11ae1",He=[208,207,17,224,161,177,26,225],ct="00000000000000000000000000000000",et={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Le,FREESECT:-1,HEADER_SIGNATURE:Je,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:ct,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Xe(Ct){for(var mr=new Array(Ct.length),Nt=0;Nt<Ct.length;++Nt)mr[Nt]=String.fromCharCode(Ct[Nt]);return mr.join("")}for(var lt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],At=[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],pt=[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],jt,rr=typeof Uint8Array<"u",Yt=rr?new Uint8Array(256):[],cr=0;cr<256;++cr)Yt[cr]=255&((jt=139536&((jt=cr)<<1|jt<<11)|558144&(jt<<5|jt<<15))>>16|jt>>8|jt);function Fr(Ct,fr){var Nt=7&fr,fr=fr>>>3;return(Ct[fr]|(Nt<=5?0:Ct[1+fr]<<8))>>>Nt&7}function Dr(Ct,fr){var Nt=7&fr,fr=fr>>>3;return(Ct[fr]|(Nt<=3?0:Ct[1+fr]<<8))>>>Nt&31}function pr(Ct,fr){var Nt=7&fr,fr=fr>>>3;return(Ct[fr]|(Nt<=1?0:Ct[1+fr]<<8))>>>Nt&127}function Xr(Ct,dr,Nt){var fr=7&dr,Pt=dr>>>3,Gr=(1<<Nt)-1,dr=Ct[Pt]>>>fr;return Nt<8-fr?dr&Gr:(dr|=Ct[1+Pt]<<8-fr,Nt<16-fr?dr&Gr:(dr|=Ct[2+Pt]<<16-fr,Nt<24-fr?dr&Gr:(dr|=Ct[3+Pt]<<24-fr)&Gr))}function bn(Ct,mr,Nt){var fr=7&mr,Pt=mr>>>3;return fr<=5?Ct[Pt]|=(7&Nt)<<fr:(Ct[Pt]|=Nt<<fr&255,Ct[1+Pt]=(7&Nt)>>8-fr),mr+3}function dn(Ct,mr,Nt){var fr=mr>>>3;return Nt<<=7&mr,Ct[fr]|=255&Nt,Nt>>>=8,Ct[1+fr]=Nt,mr+8}function an(Ct,mr,Nt){var fr=mr>>>3;return Nt<<=7&mr,Ct[fr]|=255&Nt,Nt>>>=8,Ct[1+fr]=255&Nt,Ct[2+fr]=Nt>>>8,mr+16}function en(Ct,mr){var Nt=Ct.length,fr=mr<2*Nt?2*Nt:mr+5,Pt=0;if(mr<=Nt)return Ct;if(x){var Gr=T(fr);if(Ct.copy)Ct.copy(Gr);else for(;Pt<Ct.length;++Pt)Gr[Pt]=Ct[Pt];return Gr}if(rr){var dr=new Uint8Array(fr);if(dr.set)dr.set(Ct);else for(;Pt<Nt;++Pt)dr[Pt]=Ct[Pt];return dr}return Ct.length=fr,Ct}function tn(Ct){for(var mr=new Array(Ct),Nt=0;Nt<Ct;++Nt)mr[Nt]=0;return mr}function Qr(Ct,mr,Nt){for(var fr,Pt=1,Ir=0,Gr=0,dr=0,wr=Ct.length,ur=rr?new Uint16Array(32):tn(32),Ir=0;Ir<32;++Ir)ur[Ir]=0;for(Ir=wr;Ir<Nt;++Ir)Ct[Ir]=0;wr=Ct.length;var Jr=rr?new Uint16Array(wr):tn(wr);for(Ir=0;Ir<wr;++Ir)ur[fr=Ct[Ir]]++,Pt<fr&&(Pt=fr),Jr[Ir]=0;for(ur[0]=0,Ir=1;Ir<=Pt;++Ir)ur[Ir+16]=dr=dr+ur[Ir-1]<<1;for(Ir=0;Ir<wr;++Ir)(dr=Ct[Ir])!=0&&(Jr[Ir]=ur[dr+16]++);var jn,kn,hn,Bn;for(Ir=0;Ir<wr;++Ir)if((jn=Ct[Ir])!=0)for(kn=Jr[Ir],hn=Pt,Bn=void 0,Bn=Yt[255&kn],dr=(hn<=8?Bn>>>8-hn:(Bn=Bn<<8|Yt[kn>>8&255],hn<=16?Bn>>>16-hn:(Bn=Bn<<8|Yt[kn>>16&255])>>>24-hn))>>Pt-jn,Gr=(1<<Pt+4-jn)-1;0<=Gr;--Gr)mr[dr|Gr<<jn]=15&jn|Ir<<4;return Pt}var En=rr?new Uint16Array(512):tn(512),Rn=rr?new Uint16Array(32):tn(32);if(!rr){for(var Gn=0;Gn<512;++Gn)En[Gn]=0;for(Gn=0;Gn<32;++Gn)Rn[Gn]=0}(function(){for(var Ct=[],mr=0;mr<32;mr++)Ct.push(5);Qr(Ct,Rn,32);for(var Nt=[],mr=0;mr<=143;mr++)Nt.push(8);for(;mr<=255;mr++)Nt.push(9);for(;mr<=279;mr++)Nt.push(7);for(;mr<=287;mr++)Nt.push(8);Qr(Nt,En,288)})();var Ta=(function(){for(var Ct=rr?new Uint8Array(32768):[],mr=0,Nt=0;mr<pt.length-1;++mr)for(;Nt<pt[mr+1];++Nt)Ct[Nt]=mr;for(;Nt<32768;++Nt)Ct[Nt]=29;for(var fr=rr?new Uint8Array(259):[],mr=0,Nt=0;mr<At.length-1;++mr)for(;Nt<At[mr+1];++Nt)fr[Nt]=mr;return function(Pt,Gr){return(Pt.length<8?function(dr,wr){for(var ur=0;ur<dr.length;){var Ir=Math.min(65535,dr.length-ur),Jr=ur+Ir==dr.length;for(wr.write_shift(1,+Jr),wr.write_shift(2,Ir),wr.write_shift(2,65535&~Ir);0<Ir--;)wr[wr.l++]=dr[ur++]}return wr.l}:function(dr,wr){for(var ur=0,Ir=0,Jr=rr?new Uint16Array(32768):[];Ir<dr.length;){var jn=Math.min(65535,dr.length-Ir);if(jn<10){for(7&(ur=bn(wr,ur,+(Ir+jn==dr.length)))&&(ur+=8-(7&ur)),wr.l=ur/8|0,wr.write_shift(2,jn),wr.write_shift(2,65535&~jn);0<jn--;)wr[wr.l++]=dr[Ir++];ur=8*wr.l}else{ur=bn(wr,ur,+(Ir+jn==dr.length)+2);for(var kn=0;0<jn--;){var hn=dr[Ir],kn=32767&(kn<<5^hn),Bn=-1,Hn=0;if((Bn=Jr[kn])&&(Ir<(Bn|=-32768&Ir)&&(Bn-=32768),Bn<Ir))for(;dr[Bn+Hn]==dr[Ir+Hn]&&Hn<250;)++Hn;if(2<Hn){(hn=fr[Hn])<=22?ur=dn(wr,ur,Yt[hn+1]>>1)-1:(dn(wr,ur,3),dn(wr,ur+=5,Yt[hn-23]>>5),ur+=3);var Qn=hn<8?0:hn-4>>2;0<Qn&&(an(wr,ur,Hn-At[hn]),ur+=Qn),hn=Ct[Ir-Bn],ur=dn(wr,ur,Yt[hn]>>3),ur-=3;var ln=hn<4?0:hn-2>>1;0<ln&&(an(wr,ur,Ir-Bn-pt[hn]),ur+=ln);for(var qr=0;qr<Hn;++qr)Jr[kn]=32767&Ir,kn=32767&(kn<<5^dr[Ir]),++Ir;jn-=Hn-1}else hn<=143?hn+=48:(Qn=((Qn=1)&Qn)<<(7&(ln=ur)),wr[ln>>>3]|=Qn,ur=ln+1),ur=dn(wr,ur,Yt[hn]),Jr[kn]=32767&Ir,++Ir}ur=dn(wr,ur,0)-1}}return wr.l=(ur+7)/8|0,wr.l})(Pt,Gr)}})();function xn(Nt){var mr=Cr(50+Math.floor(1.1*Nt.length)),Nt=Ta(Nt,mr);return mr.slice(0,Nt)}var Yr=rr?new Uint16Array(32768):tn(32768),la=rr?new Uint16Array(32768):tn(32768),Ka=rr?new Uint16Array(128):tn(128),ja=1,fi=1;function ss(Ct,mr){if(Ct[0]==3&&!(3&Ct[1]))return[k(mr),2];for(var Nt=0,fr=0,Pt=T(mr||1<<18),Gr=0,dr=Pt.length>>>0,wr=0,ur=0;(1&fr)==0;)if(fr=Fr(Ct,Nt),Nt+=3,fr>>>1!=0)for(ur=fr>>1==1?(wr=9,5):(Nt=(function(Hn,Qn){var ln,qr,Wn,wn=Dr(Hn,Qn)+257,sn=Dr(Hn,Qn+=5)+1,Yn=(Wn=7&(qr=Qn+=5),4+(((ln=Hn)[qr=qr>>>3]|(Wn<=4?0:ln[1+qr]<<8))>>>Wn&15));Qn+=4;for(var Xn=0,Fa=rr?new Uint8Array(19):tn(19),ta=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],xa=1,zn=rr?new Uint8Array(8):tn(8),Ha=rr?new Uint8Array(8):tn(8),Va=Fa.length,yn=0;yn<Yn;++yn)Fa[lt[yn]]=Xn=Fr(Hn,Qn),xa<Xn&&(xa=Xn),zn[Xn]++,Qn+=3;var On=0;for(zn[0]=0,yn=1;yn<=xa;++yn)Ha[yn]=On=On+zn[yn-1]<<1;for(yn=0;yn<Va;++yn)(On=Fa[yn])!=0&&(ta[yn]=Ha[On]++);for(var Cn,yn=0;yn<Va;++yn)if((Cn=Fa[yn])!=0){On=Yt[ta[yn]]>>8-Cn;for(var Ia=(1<<7-Cn)-1;0<=Ia;--Ia)Ka[On|Ia<<Cn]=7&Cn|yn<<3}for(var ai,Rs,qs,ds=[],xa=1;ds.length<wn+sn;)switch(Qn+=7&(On=Ka[pr(Hn,Qn)]),On>>>=3){case 16:for(Xn=3+(qs=void 0,qs=7&(Rs=Qn),((ai=Hn)[Rs=Rs>>>3]|(qs<=6?0:ai[1+Rs]<<8))>>>qs&3),Qn+=2,On=ds[ds.length-1];0<Xn--;)ds.push(On);break;case 17:for(Xn=3+Fr(Hn,Qn),Qn+=3;0<Xn--;)ds.push(0);break;case 18:for(Xn=11+pr(Hn,Qn),Qn+=7;0<Xn--;)ds.push(0);break;default:ds.push(On),xa<On&&(xa=On)}var wo=ds.slice(0,wn),_o=ds.slice(wn);for(yn=wn;yn<286;++yn)wo[yn]=0;for(yn=sn;yn<30;++yn)_o[yn]=0;return ja=Qr(wo,Yr,286),fi=Qr(_o,la,30),Qn})(Ct,Nt),wr=ja,fi);;){!mr&&dr<Gr+32767&&(dr=(Pt=en(Pt,Gr+32767)).length);var Ir=Xr(Ct,Nt,wr),Jr=(fr>>>1==1?En:Yr)[Ir];if(Nt+=15&Jr,((Jr>>>=4)>>>8&255)==0)Pt[Gr++]=Jr;else{if(Jr==256)break;var jn=(Jr-=257)<8?0:Jr-4>>2;5<jn&&(jn=0);var kn=Gr+At[Jr];0<jn&&(kn+=Xr(Ct,Nt,jn),Nt+=jn),Ir=Xr(Ct,Nt,ur),Nt+=15&(Jr=(fr>>>1==1?Rn:la)[Ir]);var Ir=(Jr>>>=4)<4?0:Jr-2>>1,hn=pt[Jr];for(0<Ir&&(hn+=Xr(Ct,Nt,Ir),Nt+=Ir),!mr&&dr<kn&&(dr=(Pt=en(Pt,kn+100)).length);Gr<kn;)Pt[Gr]=Pt[Gr-hn],++Gr}}else{7&Nt&&(Nt+=8-(7&Nt));var Bn=Ct[Nt>>>3]|Ct[1+(Nt>>>3)]<<8;if(Nt+=32,0<Bn)for(!mr&&dr<Gr+Bn&&(dr=(Pt=en(Pt,Gr+Bn)).length);0<Bn--;)Pt[Gr++]=Ct[Nt>>>3],Nt+=8}return mr?[Pt,Nt+7>>>3]:[Pt.slice(0,Gr),Nt+7>>>3]}function Vt(Ct,mr){return mr=ss(Ct.slice(Ct.l||0),mr),Ct.l+=mr[1],mr[0]}function di(Ct,mr){if(!Ct)throw new Error(mr);typeof console<"u"&&console.error(mr)}function ui(Ct,mr){var Nt=Ct;es(Nt,0);var fr={FileIndex:[],FullPaths:[]};Ae(fr,{root:mr.root});for(var Pt=Nt.length-4;(Nt[Pt]!=80||Nt[Pt+1]!=75||Nt[Pt+2]!=5||Nt[Pt+3]!=6)&&0<=Pt;)--Pt;Nt.l=Pt+4,Nt.l+=4;var Gr=Nt.read_shift(2);for(Nt.l+=6,mr=Nt.read_shift(4),Nt.l=mr,Pt=0;Pt<Gr;++Pt){Nt.l+=20;var dr=Nt.read_shift(4),wr=Nt.read_shift(4),ur=Nt.read_shift(2),Ir=Nt.read_shift(2),Jr=Nt.read_shift(2);Nt.l+=8;var jn=Nt.read_shift(4),kn=J(Nt.slice(Nt.l+ur,Nt.l+ur+Ir));Nt.l+=ur+Ir+Jr,Jr=Nt.l,Nt.l=jn+4,(function(hn,Bn,Hn,Qn,ln){hn.l+=2;var qr=hn.read_shift(2),Wn=hn.read_shift(2),wn=(function(ai){var yn=65535&ai.read_shift(2),On=65535&ai.read_shift(2),Cn=new Date,Ia=31&On,ai=15&(On>>>=5);return On>>>=4,Cn.setMilliseconds(0),Cn.setFullYear(1980+On),Cn.setMonth(ai-1),Cn.setDate(Ia),ai=31&yn,Ia=63&(yn>>>=5),yn>>>=6,Cn.setHours(yn),Cn.setMinutes(Ia),Cn.setSeconds(ai<<1),Cn})(hn);if(8257&qr)throw new Error("Unsupported ZIP encryption");hn.read_shift(4);for(var sn,Yn=hn.read_shift(4),Xn=hn.read_shift(4),Fa=hn.read_shift(2),ta=hn.read_shift(2),xa="",zn=0;zn<Fa;++zn)xa+=String.fromCharCode(hn[hn.l++]);ta&&(((sn=J(hn.slice(hn.l,hn.l+ta)))[21589]||{}).mt&&(wn=sn[21589].mt),((ln||{})[21589]||{}).mt&&(wn=ln[21589].mt)),hn.l+=ta;var Ha=hn.slice(hn.l,hn.l+Yn);switch(Wn){case 8:Ha=(function(Va,Cn){if(!Be)return Vt(Va,Cn);var On=new Be.InflateRaw,Cn=On._processChunk(Va.slice(Va.l),On._finishFlushFlag);return Va.l+=On.bytesRead,Cn})(hn,Xn);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Wn)}ta=!1,8&qr&&(hn.read_shift(4)==134695760&&(hn.read_shift(4),ta=!0),Yn=hn.read_shift(4),Xn=hn.read_shift(4)),Yn!=Bn&&di(ta,"Bad compressed size: "+Bn+" != "+Yn),Xn!=Hn&&di(ta,"Bad uncompressed size: "+Hn+" != "+Xn),Hl(Qn,xa,Ha,{unsafe:!0,mt:wn})})(Nt,dr,wr,fr,kn),Nt.l=Jr}return fr}var Ps={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 Hl(Ct,mr,Nt,fr){var Pt=fr&&fr.unsafe;Pt||Ae(Ct);var Gr,dr=!Pt&&$t.find(Ct,mr);return dr||(Gr=Ct.FullPaths[0],Gr=mr.slice(0,Gr.length)==Gr?mr:(Gr.slice(-1)!="/"&&(Gr+="/"),(Gr+mr).replace("//","/")),dr={name:j(mr),type:2},Ct.FileIndex.push(dr),Ct.FullPaths.push(Gr),Pt||$t.utils.cfb_gc(Ct)),dr.content=Nt,dr.size=Nt?Nt.length:0,fr&&(fr.CLSID&&(dr.clsid=fr.CLSID),fr.mt&&(dr.mt=fr.mt),fr.ct&&(dr.ct=fr.ct)),dr}return E.find=function(Ct,mr){var Nt=Ct.FullPaths.map(function(ur){return ur.toUpperCase()}),fr=Nt.map(function(ur){var Ir=ur.split("/");return Ir[Ir.length-(ur.slice(-1)=="/"?2:1)]}),Pt=!1;mr.charCodeAt(0)===47?(Pt=!0,mr=Nt[0].slice(0,-1)+mr):Pt=mr.indexOf("/")!==-1;var wr=mr.toUpperCase(),Gr=(Pt===!0?Nt:fr).indexOf(wr);if(Gr!==-1)return Ct.FileIndex[Gr];var dr=!wr.match(I),wr=wr.replace(O,"");for(dr&&(wr=wr.replace(I,"!")),Gr=0;Gr<Nt.length;++Gr)if((dr?Nt[Gr].replace(I,"!"):Nt[Gr]).replace(O,"")==wr||(dr?fr[Gr].replace(I,"!"):fr[Gr]).replace(O,"")==wr)return Ct.FileIndex[Gr];return null},E.read=function(Ct,mr){var Nt,fr,Pt=mr&&mr.type;switch(Pt||x&&Buffer.isBuffer(Ct)&&(Pt="buffer"),Pt||"base64"){case"file":return Nt=Ct,fr=mr,re(),ee(b.readFileSync(Nt),fr);case"base64":return ee(S(w(Ct)),mr);case"binary":return ee(S(Ct),mr)}return ee(Ct,mr)},E.parse=ee,E.write=function(Ct,mr){var Nt=_e(Ct,mr);switch(mr&&mr.type||"buffer"){case"file":return re(),b.writeFileSync(mr.filename,Nt),Nt;case"binary":return typeof Nt=="string"?Nt:Xe(Nt);case"base64":return v(typeof Nt=="string"?Nt:Xe(Nt));case"buffer":if(x)return Buffer.isBuffer(Nt)?Nt:C(Nt);case"array":return typeof Nt=="string"?S(Nt):Nt}return Nt},E.writeFile=function(Ct,mr,Nt){re(),Nt=_e(Ct,Nt),b.writeFileSync(mr,Nt)},E.utils={cfb_new:function(Ct){var mr={};return Ae(mr,Ct),mr},cfb_add:Hl,cfb_del:function(Ct,mr){Ae(Ct);var Nt=$t.find(Ct,mr);if(Nt){for(var fr=0;fr<Ct.FileIndex.length;++fr)if(Ct.FileIndex[fr]==Nt)return Ct.FileIndex.splice(fr,1),Ct.FullPaths.splice(fr,1),!0}return!1},cfb_mov:function(Ct,mr,Nt){Ae(Ct);var fr=$t.find(Ct,mr);if(fr){for(var Pt=0;Pt<Ct.FileIndex.length;++Pt)if(Ct.FileIndex[Pt]==fr)return Ct.FileIndex[Pt].name=j(Nt),Ct.FullPaths[Pt]=Nt,!0}return!1},cfb_gc:function(Ct){me(Ct,!0)},ReadShift:Wc,CheckField:pA,prep_blob:es,bconcat:B,use_zlib:function(Ct){try{var mr=new Ct.InflateRaw;if(mr._processChunk(new Uint8Array([3,0]),mr._finishFlushFlag),!mr.bytesRead)throw new Error("zlib does not expose bytesRead");Be=Ct}catch(Nt){console.error("cannot use native zlib: "+(Nt.message||Nt))}},_deflateRaw:xn,_inflateRaw:Vt,consts:et},E})();if(typeof Xu<"u")try{Lt=vb}catch{}function Sr(b){return typeof b=="string"?M(b):Array.isArray(b)?(function(E){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(E)})(b):b}function br(b,E,D){if(Lt!==void 0&&Lt.writeFileSync)return D?Lt.writeFileSync(b,E,D):Lt.writeFileSync(b,E);if(typeof Deno<"u"){if(D&&typeof E=="string")switch(D){case"utf8":E=new TextEncoder(D).encode(E);break;case"binary":E=M(E);break;default:throw new Error("Unsupported encoding "+D)}return Deno.writeFileSync(b,E)}var j=D=="utf8"?Is(E):E;if(typeof IE_SaveFile<"u")return IE_SaveFile(j,b);if(typeof Blob<"u"){if(j=new Blob([Sr(j)],{type:"application/octet-stream"}),typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(j,b);if(typeof saveAs<"u")return saveAs(j,b);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var J=URL.createObjectURL(j);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(J)},6e4),chrome.downloads.download({url:J,filename:b,saveAs:!0});if(j=document.createElement("a"),j.download!=null)return j.download=b,j.href=J,document.body.appendChild(j),j.click(),document.body.removeChild(j),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(J)},6e4),J}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var re=File(b);return re.open("w"),re.encoding="binary",Array.isArray(E)&&(E=P(E)),re.write(E),re.close(),E}catch(ee){if(!ee.message||!ee.message.match(/onstruct/))throw ee}throw new Error("cannot save file "+b)}function sr(b){for(var E=Object.keys(b),D=[],j=0;j<E.length;++j)Object.prototype.hasOwnProperty.call(b,E[j])&&D.push(E[j]);return D}function Fn(b,E){for(var D=[],j=sr(b),J=0;J!==j.length;++J)D[b[j[J]][E]]==null&&(D[b[j[J]][E]]=j[J]);return D}function fn(b){for(var E=[],D=sr(b),j=0;j!==D.length;++j)E[b[D[j]]]=D[j];return E}function Or(b){for(var E=[],D=sr(b),j=0;j!==D.length;++j)E[b[D[j]]]=parseInt(D[j],10);return E}var ar=new Date(1899,11,30,0,0,0);function Wr(b,E){var D=b.getTime();return(D-(ar.getTime()+6e4*(b.getTimezoneOffset()-ar.getTimezoneOffset())))/864e5}var Tt=new Date,Qt=ar.getTime()+6e4*(Tt.getTimezoneOffset()-ar.getTimezoneOffset()),hr=Tt.getTimezoneOffset();function ze(b){var E=new Date;return E.setTime(24*b*60*60*1e3+Qt),E.getTimezoneOffset()!==hr&&E.setTime(E.getTime()+6e4*(E.getTimezoneOffset()-hr)),E}var Ze=new Date("2017-02-19T19:06:09.000Z"),qe=isNaN(Ze.getFullYear())?new Date("2/19/17"):Ze,Ge=qe.getFullYear()==2017;function $e(b,E){var D=new Date(b);return Ge?(0<E?D.setTime(D.getTime()+60*D.getTimezoneOffset()*1e3):E<0&&D.setTime(D.getTime()-60*D.getTimezoneOffset()*1e3),D):b instanceof Date?b:qe.getFullYear()==1917&&!isNaN(D.getFullYear())?(E=D.getFullYear(),-1<b.indexOf(""+E)||D.setFullYear(D.getFullYear()+100),D):(D=b.match(/\d+/g)||["2017","2","19","0","0","0"],D=new Date(+D[0],+D[1]-1,+D[2],+D[3]||0,+D[4]||0,+D[5]||0),D=-1<b.indexOf("Z")?new Date(D.getTime()-60*D.getTimezoneOffset()*1e3):D)}function tt(b,E){if(x&&Buffer.isBuffer(b)){if(E){if(b[0]==255&&b[1]==254)return Is(b.slice(2).toString("utf16le"));if(b[1]==254&&b[2]==255)return Is(_(b.slice(2).toString("binary")))}return b.toString("binary")}if(typeof TextDecoder<"u")try{if(E){if(b[0]==255&&b[1]==254)return Is(new TextDecoder("utf-16le").decode(b.slice(2)));if(b[0]==254&&b[1]==255)return Is(new TextDecoder("utf-16be").decode(b.slice(2)))}var D={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(b)&&(b=new Uint8Array(b)),new TextDecoder("latin1").decode(b).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(re){return D[re]||re})}catch{}for(var j=[],J=0;J!=b.length;++J)j.push(String.fromCharCode(b[J]));return j.join("")}function bt(b){if(typeof JSON<"u"&&!Array.isArray(b))return JSON.parse(JSON.stringify(b));if(typeof b!="object"||b==null)return b;if(b instanceof Date)return new Date(b.getTime());var E,D={};for(E in b)Object.prototype.hasOwnProperty.call(b,E)&&(D[E]=bt(b[E]));return D}function xt(b,E){for(var D="";D.length<E;)D+=b;return D}function kt(j){var E=Number(j);if(!isNaN(E))return isFinite(E)?E:NaN;if(!/\d/.test(j))return E;var D=1,j=j.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return D*=100,""});return isNaN(E=Number(j))?(j=j.replace(/[(](.*)[)]/,function(J,re){return D=-D,re}),isNaN(E=Number(j))?E:E/D):E/D}var Bt=["january","february","march","april","may","june","july","august","september","october","november","december"];function Dt(b){var E=new Date(b),D=new Date(NaN),j=E.getYear(),J=E.getMonth(),re=E.getDate();if(isNaN(re))return D;var ee=b.toLowerCase();if(ee.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(3<(ee=ee.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length&&Bt.indexOf(ee)==-1)return D}else if(ee.match(/[a-z]/))return D;return j<0||8099<j||(!(0<J||1<re)||j==101)&&b.match(/[^-0-9:,\/\\]/)?D:E}var or,gr=(or="abacaba".split(/(:?b)/i).length==5,function(b,E,D){if(or||typeof E=="string")return b.split(E);for(var j=b.split(E),J=[j[0]],re=1;re<j.length;++re)J.push(D),J.push(j[re]);return J});function kr(b){return b?b.content&&b.type?tt(b.content,!0):b.data?y(b.data):b.asNodeBuffer&&x?y(b.asNodeBuffer().toString("binary")):b.asBinary?y(b.asBinary()):b._data&&b._data.getContent?y(tt(Array.prototype.slice.call(b._data.getContent(),0))):null:null}function it(b){if(!b)return null;if(b.data)return p(b.data);if(b.asNodeBuffer&&x)return b.asNodeBuffer();if(b._data&&b._data.getContent){var E=b._data.getContent();return typeof E=="string"?p(E):Array.prototype.slice.call(E)}return b.content&&b.type?b.content:null}function We(b,E){for(var D=b.FullPaths||sr(b.files),j=E.toLowerCase().replace(/[\/]/g,"\\"),J=j.replace(/\\/g,"/"),re=0;re<D.length;++re){var ee=D[re].replace(/^Root Entry[\/]/,"").toLowerCase();if(j==ee||J==ee)return b.files?b.files[D[re]]:b.FileIndex[re]}return null}function gt(b,E){if(b=We(b,E),b==null)throw new Error("Cannot find file "+E+" in zip");return b}function yt(b,E,D){if(!D)return((D=gt(b,E))&&D.name.slice(-4)===".bin"?it:kr)(D);if(!E)return null;try{return yt(b,E)}catch{return null}}function Rt(b,E,D){if(!D)return kr(gt(b,E));if(!E)return null;try{return Rt(b,E)}catch{return null}}function Mt(b){for(var E=b.FullPaths||sr(b.files),D=[],j=0;j<E.length;++j)E[j].slice(-1)!="/"&&D.push(E[j].replace(/^Root Entry[\/]/,""));return D.sort()}function It(b,E,D){if(b.FullPaths){if(typeof D=="string"){var j=(x?C:function(J){for(var re=[],ee=0,se=J.length+250,Ae=k(J.length+255),me=0;me<J.length;++me){var _e,Be=J.charCodeAt(me);Be<128?Ae[ee++]=Be:Be<2048?(Ae[ee++]=192|Be>>6&31,Ae[ee++]=128|63&Be):55296<=Be&&Be<57344?(Be=64+(1023&Be),_e=1023&J.charCodeAt(++me),Ae[ee++]=240|Be>>8&7,Ae[ee++]=128|Be>>2&63,Ae[ee++]=128|_e>>6&15|(3&Be)<<4,Ae[ee++]=128|63&_e):(Ae[ee++]=224|Be>>12&15,Ae[ee++]=128|Be>>6&63,Ae[ee++]=128|63&Be),se<ee&&(re.push(Ae.slice(0,ee)),ee=0,Ae=k(65535),se=65530)}return re.push(Ae.slice(0,ee)),B(re)})(D);return $t.utils.cfb_add(b,E,j)}$t.utils.cfb_add(b,E,D)}else b.file(E,D)}function xr(){return $t.utils.cfb_new()}function rn(b,E){switch(E.type){case"base64":return $t.read(b,{type:"base64"});case"binary":return $t.read(b,{type:"binary"});case"buffer":case"array":return $t.read(b,{type:"buffer"})}throw new Error("Unrecognized type "+E.type)}function Zr(b,E){if(b.charAt(0)=="/")return b.slice(1);var D=E.split("/");E.slice(-1)!="/"&&D.pop();for(var j=b.split("/");j.length!==0;){var J=j.shift();J===".."?D.pop():J!=="."&&D.push(J)}return D.join("/")}var Rr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,$r=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Cc=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,lr=Rr.match(Cc)?Cc:/<[^>]*>/g,Mn=/<\w*:/,ia=/<(\/?)\w+:/;function vn(b,E,D){for(var j={},J=0,re=0;J!==b.length&&(re=b.charCodeAt(J))!==32&&re!==10&&re!==13;++J);if(E||(j[0]=b.slice(0,J)),J===b.length)return j;var ee,se,Ae,me=b.match($r),_e=0,Be=0,De="",Le="";if(me)for(Be=0;Be!=me.length;++Be){for(Le=me[Be],re=0;re!=Le.length&&Le.charCodeAt(re)!==61;++re);for(De=Le.slice(0,re).trim();Le.charCodeAt(re+1)==32;)++re;for(se=(J=Le.charCodeAt(re+1))==34||J==39?1:0,ee=Le.slice(re+1+se,Le.length-se),_e=0;_e!=De.length&&De.charCodeAt(_e)!==58;++_e);_e===De.length?(j[De=0<De.indexOf("_")?De.slice(0,De.indexOf("_")):De]=ee,j[De.toLowerCase()]=ee):j[Ae=(_e===5&&De.slice(0,5)==="xmlns"?"xmlns":"")+De.slice(_e+1)]&&De.slice(_e-3,_e)=="ext"||(j[Ae]=ee,j[Ae.toLowerCase()]=ee)}return j}function ri(b){return b.replace(ia,"<$1")}var ms,gi,Eo={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},kl=fn(Eo),ba=(ms=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,gi=/_x([\da-fA-F]{4})_/gi,function b(E){var D=E+"",j=D.indexOf("<![CDATA[");return j==-1?D.replace(ms,function(J,re){return Eo[J]||String.fromCharCode(parseInt(re,-1<J.indexOf("x")?16:10))||J}).replace(gi,function(J,re){return String.fromCharCode(parseInt(re,16))}):(E=D.indexOf("]]>"),b(D.slice(0,j))+D.slice(j+9,E)+b(D.slice(E+3)))}),Da=/[&<>'"]/g,va=/[\u0000-\u0008\u000b-\u001f]/g;function Ba(b){return(b+"").replace(Da,function(E){return kl[E]}).replace(va,function(E){return"_x"+("000"+E.charCodeAt(0).toString(16)).slice(-4)+"_"})}function po(b){return Ba(b).replace(/ /g,"_x0020_")}var Tl=/[\u0000-\u001f]/g;function Ki(b){return(b+"").replace(Da,function(E){return kl[E]}).replace(/\n/g,"<br/>").replace(Tl,function(E){return"&#x"+("000"+E.charCodeAt(0).toString(16)).slice(-4)+";"})}var gs,mo=(gs=/&#(\d+);/g,function(b){return b.replace(gs,mu)});function mu(b,E){return String.fromCharCode(parseInt(E,10))}function si(b){switch(b){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function ll(b){for(var E,D,j,J,re="",ee=0,se=0;ee<b.length;)(E=b.charCodeAt(ee++))<128?re+=String.fromCharCode(E):(D=b.charCodeAt(ee++),191<E&&E<224?(se=(31&E)<<6,se|=63&D,re+=String.fromCharCode(se)):(j=b.charCodeAt(ee++),E<240?re+=String.fromCharCode((15&E)<<12|(63&D)<<6|63&j):(J=((7&E)<<18|(63&D)<<12|(63&j)<<6|63&(se=b.charCodeAt(ee++)))-65536,re+=String.fromCharCode(55296+(J>>>10&1023)),re+=String.fromCharCode(56320+(1023&J)))));return re}function zo(b){for(var E,D,j=k(2*b.length),J=1,re=0,ee=0,se=0;se<b.length;se+=J)J=1,(D=b.charCodeAt(se))<128?E=D:D<224?(E=64*(31&D)+(63&b.charCodeAt(se+1)),J=2):D<240?(E=4096*(15&D)+64*(63&b.charCodeAt(se+1))+(63&b.charCodeAt(se+2)),J=3):(J=4,E=262144*(7&D)+4096*(63&b.charCodeAt(se+1))+64*(63&b.charCodeAt(se+2))+(63&b.charCodeAt(se+3)),ee=55296+((E-=65536)>>>10&1023),E=56320+(1023&E)),ee!==0&&(j[re++]=255&ee,j[re++]=ee>>>8,ee=0),j[re++]=E%256,j[re++]=E>>>8;return j.slice(0,re).toString("ucs2")}function nc(b){return C(b,"binary").toString("utf8")}var Kl,gu,El,ru="foo bar bazâð£",Xa=x&&(nc(ru)==ll(ru)?nc:zo(ru)==ll(ru)&&zo)||ll,Is=x?function(b){return C(b,"utf8").toString("binary")}:function(b){for(var E,D=[],j=0,J=0;j<b.length;)switch(!0){case(J=b.charCodeAt(j++))<128:D.push(String.fromCharCode(J));break;case J<2048:D.push(String.fromCharCode(192+(J>>6))),D.push(String.fromCharCode(128+(63&J)));break;case(55296<=J&&J<57344):J-=55296,E=b.charCodeAt(j++)-56320+(J<<10),D.push(String.fromCharCode(240+(E>>18&7))),D.push(String.fromCharCode(144+(E>>12&63))),D.push(String.fromCharCode(128+(E>>6&63))),D.push(String.fromCharCode(128+(63&E)));break;default:D.push(String.fromCharCode(224+(J>>12))),D.push(String.fromCharCode(128+(J>>6&63))),D.push(String.fromCharCode(128+(63&J)))}return D.join("")},ul=(Kl={},function(b,E){var D=b+"|"+(E||"");return Kl[D]||(Kl[D]=new RegExp("<(?:\\w+:)?"+b+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+b+">",E||""))}),vu=(gu=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(b){return[new RegExp("&"+b[0]+";","ig"),b[1]]}),function(b){for(var E=b.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,""),D=0;D<gu.length;++D)E=E.replace(gu[D][0],gu[D][1]);return E}),sg=(El={},function(b){return El[b]!==void 0?El[b]:El[b]=new RegExp("<(?:vt:)?"+b+">([\\s\\S]*?)</(?:vt:)?"+b+">","g")}),og=/<\/?(?:vt:)?variant>/g,Ud=/<(?:vt:)([^>]*)>([\s\S]*)</;function Y0(j,E){var D=vn(j),j=j.match(sg(D.baseType))||[],J=[];if(j.length==D.size)return j.forEach(function(re){re=re.replace(og,"").match(Ud),re&&J.push({v:Xa(re[2]),t:re[1]})}),J;if(E.WTF)throw new Error("unexpected vector length "+j.length+" != "+D.size);return J}var X0=/(^\s|\s$|\n)/;function wa(b,E){return"<"+b+(E.match(X0)?' xml:space="preserve"':"")+">"+E+"</"+b+">"}function zc(b){return sr(b).map(function(E){return" "+E+'="'+b[E]+'"'}).join("")}function on(b,E,D){return"<"+b+(D!=null?zc(D):"")+(E!=null?(E.match(X0)?' xml:space="preserve"':"")+">"+E+"</"+b:"/")+">"}function bi(b,E){try{return b.toISOString().replace(/\.\d*/,"")}catch(D){if(E)throw D}return""}function za(b){if(x&&Buffer.isBuffer(b))return b.toString("utf8");if(typeof b=="string")return b;if(typeof Uint8Array<"u"&&b instanceof Uint8Array)return Xa(P(N(b)));throw new Error("Bad input format: expected Buffer or string")}var Ff=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,us={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},ac=["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"],Ni={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Z0(b){for(var E=[],D=0;D<b[0].length;++D)if(b[0][D])for(var j=0,J=b[0][D].length;j<J;j+=10240)E.push.apply(E,b[0][D].slice(j,j+10240));return E}function J0(b,E,D){for(var j=[],J=E;J<D;J+=2)j.push(String.fromCharCode(Bo(b,J)));return j.join("").replace(O,"")}function dA(b,E,D){for(var j=[],J=E;J<E+D;++J)j.push(("0"+b[J].toString(16)).slice(-2));return j.join("")}function q0(b,E,D){for(var j=[],J=E;J<D;J++)j.push(String.fromCharCode(Io(b,J)));return j.join("")}function vs(b,E){var D=_a(b,E);return 0<D?Ca(b,E+4,E+4+D-1):""}function Nd(b,E){var D=_a(b,E);return 0<D?Ca(b,E+4,E+4+D-1):""}function _r(b,E){var D=2*_a(b,E);return 0<D?Ca(b,E+4,E+4+D-1):""}function hA(b,E){var D=_a(b,E);return 0<D?Df(b,E+4,E+4+D):""}function Mf(b,E){var D=_a(b,E);return 0<D?Ca(b,E+4,E+4+D):""}function io(b,E){for(var D=1-2*(b[E+7]>>>7),j=((127&b[E+7])<<4)+(b[E+6]>>>4&15),J=15&b[E+6],re=5;0<=re;--re)J=256*J+b[E+re];return j==2047?J==0?1/0*D:NaN:(j==0?j=-1022:(j-=1023,J+=Math.pow(2,52)),D*Math.pow(2,j-52)*J)}var Za=x?function(b){return 0<b[0].length&&Buffer.isBuffer(b[0][0])?Buffer.concat(b[0].map(function(E){return Buffer.isBuffer(E)?E:C(E)})):Z0(b)}:Z0,Df=x?function(b,E,D){return Buffer.isBuffer(b)?b.toString("utf16le",E,D).replace(O,""):J0(b,E,D)}:J0,Vc=x?function(b,E,D){return Buffer.isBuffer(b)?b.toString("hex",E,E+D):dA(b,E,D)}:dA,Ca=x?function(b,E,D){return Buffer.isBuffer(b)?b.toString("utf8",E,D):q0(b,E,D)}:q0,$a=vs,Of=Nd,gn=_r,AA=hA,ys=Mf,jd=io,Hd=function(b){return Array.isArray(b)||typeof Uint8Array<"u"&&b instanceof Uint8Array};x&&($a=function(b,E){if(!Buffer.isBuffer(b))return vs(b,E);var D=b.readUInt32LE(E);return 0<D?b.toString("utf8",E+4,E+4+D-1):""},Of=function(b,E){if(!Buffer.isBuffer(b))return Nd(b,E);var D=b.readUInt32LE(E);return 0<D?b.toString("utf8",E+4,E+4+D-1):""},gn=function(b,E){if(!Buffer.isBuffer(b))return _r(b,E);var D=2*b.readUInt32LE(E);return b.toString("utf16le",E+4,E+4+D-1)},AA=function(b,E){if(!Buffer.isBuffer(b))return hA(b,E);var D=b.readUInt32LE(E);return b.toString("utf16le",E+4,E+4+D)},ys=function(b,E){if(!Buffer.isBuffer(b))return Mf(b,E);var D=b.readUInt32LE(E);return b.toString("utf8",E+4,E+4+D)},jd=function(b,E){return Buffer.isBuffer(b)?b.readDoubleLE(E):io(b,E)},Hd=function(b){return Buffer.isBuffer(b)||Array.isArray(b)||typeof Uint8Array<"u"&&b instanceof Uint8Array}),t!==void 0&&(Df=function(b,E,D){return t.utils.decode(1200,b.slice(E,D)).replace(O,"")},Ca=function(b,E,D){return t.utils.decode(65001,b.slice(E,D))},$a=function(b,E){var D=_a(b,E);return 0<D?t.utils.decode(u,b.slice(E+4,E+4+D-1)):""},Of=function(b,E){var D=_a(b,E);return 0<D?t.utils.decode(c,b.slice(E+4,E+4+D-1)):""},gn=function(b,E){var D=2*_a(b,E);return 0<D?t.utils.decode(1200,b.slice(E+4,E+4+D-1)):""},AA=function(b,E){var D=_a(b,E);return 0<D?t.utils.decode(1200,b.slice(E+4,E+4+D)):""},ys=function(b,E){var D=_a(b,E);return 0<D?t.utils.decode(65001,b.slice(E+4,E+4+D)):""});var Io=function(b,E){return b[E]},Bo=function(b,E){return 256*b[E+1]+b[E]},Il=function(b,E){return E=256*b[E+1]+b[E],E<32768?E:-1*(65535-E+1)},_a=function(b,E){return b[E+3]*(1<<24)+(b[E+2]<<16)+(b[E+1]<<8)+b[E]},so=function(b,E){return b[E+3]<<24|b[E+2]<<16|b[E+1]<<8|b[E]},go=function(b,E){return b[E]<<24|b[E+1]<<16|b[E+2]<<8|b[E+3]};function Wc(b,E){var D,j,J,re,ee,se,Ae="",me=[];switch(E){case"dbcs":if(se=this.l,x&&Buffer.isBuffer(this))Ae=this.slice(this.l,this.l+2*b).toString("utf16le");else for(ee=0;ee<b;++ee)Ae+=String.fromCharCode(Bo(this,se)),se+=2;b*=2;break;case"utf8":Ae=Ca(this,this.l,this.l+b);break;case"utf16le":b*=2,Ae=Df(this,this.l,this.l+b);break;case"wstr":if(t===void 0)return Wc.call(this,b,"dbcs");Ae=t.utils.decode(c,this.slice(this.l,this.l+2*b)),b*=2;break;case"lpstr-ansi":Ae=$a(this,this.l),b=4+_a(this,this.l);break;case"lpstr-cp":Ae=Of(this,this.l),b=4+_a(this,this.l);break;case"lpwstr":Ae=gn(this,this.l),b=4+2*_a(this,this.l);break;case"lpp4":b=4+_a(this,this.l),Ae=AA(this,this.l),2&b&&(b+=2);break;case"8lpp4":b=4+_a(this,this.l),Ae=ys(this,this.l),3&b&&(b+=4-(3&b));break;case"cstr":for(b=0,Ae="";(J=Io(this,this.l+b++))!==0;)me.push(h(J));Ae=me.join("");break;case"_wstr":for(b=0,Ae="";(J=Bo(this,this.l+b))!==0;)me.push(h(J)),b+=2;b+=2,Ae=me.join("");break;case"dbcs-cont":for(Ae="",se=this.l,ee=0;ee<b;++ee){if(this.lens&&this.lens.indexOf(se)!==-1)return J=Io(this,se),this.l=se+1,re=Wc.call(this,b-ee,J?"dbcs-cont":"sbcs-cont"),me.join("")+re;me.push(h(Bo(this,se))),se+=2}Ae=me.join(""),b*=2;break;case"cpstr":if(t!==void 0){Ae=t.utils.decode(c,this.slice(this.l,this.l+b));break}case"sbcs-cont":for(Ae="",se=this.l,ee=0;ee!=b;++ee){if(this.lens&&this.lens.indexOf(se)!==-1)return J=Io(this,se),this.l=se+1,re=Wc.call(this,b-ee,J?"dbcs-cont":"sbcs-cont"),me.join("")+re;me.push(h(Io(this,se))),se+=1}Ae=me.join("");break;default:switch(b){case 1:return D=Io(this,this.l),this.l++,D;case 2:return D=(E==="i"?Il:Bo)(this,this.l),this.l+=2,D;case 4:case-4:return E==="i"||(128&this[this.l+3])==0?(D=(0<b?so:go)(this,this.l),this.l+=4,D):(j=_a(this,this.l),this.l+=4,j);case 8:case-8:if(E==="f")return j=b==8?jd(this,this.l):jd([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,j;b=8;case 16:Ae=Vc(this,this.l,b)}}return this.l+=b,Ae}var Vo=function(b,E,D){b[D]=255&E,b[D+1]=E>>>8&255,b[D+2]=E>>>16&255,b[D+3]=E>>>24&255},lg=function(b,E,D){b[D]=255&E,b[D+1]=E>>8&255,b[D+2]=E>>16&255,b[D+3]=E>>24&255},ug=function(b,E,D){b[D]=255&E,b[D+1]=E>>>8&255};function cg(b,E,D){var j=0,J=0;if(D==="dbcs"){for(J=0;J!=E.length;++J)ug(this,E.charCodeAt(J),this.l+2*J);j=2*E.length}else if(D==="sbcs"){if(t!==void 0&&u==874)for(J=0;J!=E.length;++J){var re=t.utils.encode(u,E.charAt(J));this[this.l+J]=re[0]}else for(E=E.replace(/[^\x00-\x7F]/g,"_"),J=0;J!=E.length;++J)this[this.l+J]=255&E.charCodeAt(J);j=E.length}else{if(D==="hex"){for(;J<b;++J)this[this.l++]=parseInt(E.slice(2*J,2*J+2),16)||0;return this}if(D==="utf16le"){for(var ee=Math.min(this.l+b,this.length),J=0;J<Math.min(E.length,b);++J){var se=E.charCodeAt(J);this[this.l++]=255&se,this[this.l++]=se>>8}for(;this.l<ee;)this[this.l++]=0;return this}switch(b){case 1:j=1,this[this.l]=255&E;break;case 2:j=2,this[this.l]=255&E,E>>>=8,this[this.l+1]=255&E;break;case 3:j=3,this[this.l]=255&E,E>>>=8,this[this.l+1]=255&E,E>>>=8,this[this.l+2]=255&E;break;case 4:j=4,Vo(this,E,this.l);break;case 8:if(j=8,D==="f"){(function(Ae,me,_e){var Be=(me<0||1/me==-1/0?1:0)<<7,De=0,Le=0,Je=Be?-me:me;isFinite(Je)?Je==0?De=Le=0:(De=Math.floor(Math.log(Je)/Math.LN2),Le=Je*Math.pow(2,52-De),De<=-1023&&(!isFinite(Le)||Le<Math.pow(2,52))?De=-1022:(Le-=Math.pow(2,52),De+=1023)):(De=2047,Le=isNaN(me)?26985:0);for(var He=0;He<=5;++He,Le/=256)Ae[_e+He]=255&Le;Ae[_e+6]=(15&De)<<4|15&Le,Ae[_e+7]=De>>4|Be})(this,E,this.l);break}case 16:break;case-4:j=4,lg(this,E,this.l)}}return this.l+=j,this}function pA(b,E){var D=Vc(this,this.l,b.length>>1);if(D!==b)throw new Error(E+"Expected "+b+" saw "+D);this.l+=b.length>>1}function es(b,E){b.l=E,b.read_shift=Wc,b.chk=pA,b.write_shift=cg}function Yi(b,E){b.l+=E}function Cr(b){return b=k(b),es(b,0),b}function Bl(b,E,D){if(b){es(b,b.l||0);for(var j,J=b.length,re=0;b.l<J;){128&(re=b.read_shift(1))&&(re=(127&re)+((127&b.read_shift(1))<<7));for(var ee,se=u0[re]||u0[65535],Ae=127&(ee=b.read_shift(1)),me=1;me<4&&128&ee;++me)Ae+=(127&(ee=b.read_shift(1)))<<7*me;j=b.l+Ae;var _e=se.f&&se.f(b,Ae,D);if(b.l=j,E(_e,se,re))return}}}function oo(){function b(ee){return es(ee=Cr(ee),0),ee}function E(){re&&(re.length>re.l&&((re=re.slice(0,re.l)).l=re.length),0<re.length&&j.push(re),re=null)}function D(ee){return re&&ee<re.length-re.l?re:(E(),re=b(Math.max(ee+1,J)))}var j=[],J=x?256:2048,re=b(J);return{next:D,push:function(ee){E(),(re=ee).l==null&&(re.l=re.length),D(J)},end:function(){return E(),B(j)},_bufs:j}}function Nr(b,E,D,j){var J=+E;if(!isNaN(J)){E=1+(128<=J?1:0)+1,128<=(j=j||u0[J].p||(D||[]).length||0)&&++E,16384<=j&&++E,2097152<=j&&++E;var re=b.next(E);J<=127?re.write_shift(1,J):(re.write_shift(1,128+(127&J)),re.write_shift(1,J>>7));for(var ee=0;ee!=4;++ee){if(!(128<=j)){re.write_shift(1,j);break}re.write_shift(1,128+(127&j)),j>>=7}0<j&&Hd(D)&&b.push(D)}}function ic(b,E,D){var j=bt(b);if(E.s?(j.cRel&&(j.c+=E.s.c),j.rRel&&(j.r+=E.s.r)):(j.cRel&&(j.c+=E.c),j.rRel&&(j.r+=E.r)),!D||D.biff<12){for(;256<=j.c;)j.c-=256;for(;65536<=j.r;)j.r-=65536}return j}function mA(b,E,D){return b=bt(b),b.s=ic(b.s,E.s,D),b.e=ic(b.e,E.s,D),b}function Lf(b,E){if(b.cRel&&b.c<0)for(b=bt(b);b.c<0;)b.c+=8<E?16384:256;if(b.rRel&&b.r<0)for(b=bt(b);b.r<0;)b.r+=8<E?1048576:5<E?65536:16384;var D=ea(b);return b.cRel||b.cRel==null||(D=D.replace(/^([A-Z])/,"$$$1")),D=!b.rRel&&b.rRel!=null?D.replace(/([A-Z]|^)(\d+)$/,"$1$$$2"):D}function Pf(b,E){return b.s.r!=0||b.s.rRel||b.e.r!=(12<=E.biff?1048575:8<=E.biff?65536:16384)||b.e.rRel?b.s.c!=0||b.s.cRel||b.e.c!=(12<=E.biff?16383:255)||b.e.cRel?Lf(b.s,E.biff)+":"+Lf(b.e,E.biff):(b.s.rRel?"":"$")+ji(b.s.r)+":"+(b.e.rRel?"":"$")+ji(b.e.r):(b.s.cRel?"":"$")+Oa(b.s.c)+":"+(b.e.cRel?"":"$")+Oa(b.e.c)}function Rf(b){return parseInt(b.replace(/\$(\d+)$/,"$1"),10)-1}function ji(b){return""+(b+1)}function Qd(b){for(var E=b.replace(/^\$([A-Z])/,"$1"),D=0,j=0;j!==E.length;++j)D=26*D+E.charCodeAt(j)-64;return D-1}function Oa(b){if(b<0)throw new Error("invalid column "+b);var E="";for(++b;b;b=Math.floor((b-1)/26))E=String.fromCharCode((b-1)%26+65)+E;return E}function ki(b){for(var E=0,D=0,j=0;j<b.length;++j){var J=b.charCodeAt(j);48<=J&&J<=57?E=10*E+(J-48):65<=J&&J<=90&&(D=26*D+(J-64))}return{c:D-1,r:E-1}}function ea(b){for(var E=b.c+1,D="";E;E=(E-1)/26|0)D=String.fromCharCode((E-1)%26+65)+D;return D+(b.r+1)}function Ws(b){var E=b.indexOf(":");return E==-1?{s:ki(b),e:ki(b)}:{s:ki(b.slice(0,E)),e:ki(b.slice(E+1))}}function ga(b,E){return E===void 0||typeof E=="number"?ga(b.s,b.e):(b=typeof b!="string"?ea(b):b)==(E=typeof E!="string"?ea(E):E)?b:b+":"+E}function Ua(b){for(var E={s:{c:0,r:0},e:{c:0,r:0}},re=0,D=0,j=0,J=b.length,re=0;D<J&&!((j=b.charCodeAt(D)-64)<1||26<j);++D)re=26*re+j;for(E.s.c=--re,re=0;D<J&&!((j=b.charCodeAt(D)-48)<0||9<j);++D)re=10*re+j;if(E.s.r=--re,D===J||j!=10)return E.e.c=E.s.c,E.e.r=E.s.r,E;for(++D,re=0;D!=J&&!((j=b.charCodeAt(D)-64)<1||26<j);++D)re=26*re+j;for(E.e.c=--re,re=0;D!=J&&!((j=b.charCodeAt(D)-48)<0||9<j);++D)re=10*re+j;return E.e.r=--re,E}function fg(b,E){var D=b.t=="d"&&E instanceof Date;if(b.z!=null)try{return b.w=yr(b.z,D?Wr(E):E)}catch{}try{return b.w=yr((b.XF||{}).numFmtId||(D?14:0),D?Wr(E):E)}catch{return""+E}}function Fl(b,E,D){return b==null||b.t==null||b.t=="z"?"":b.w!==void 0?b.w:(b.t=="d"&&!b.z&&D&&D.dateNF&&(b.z=D.dateNF),b.t=="e"?Ml[b.v]||b.v:fg(b,E??b.v))}function yu(b,j){var D=j&&j.sheet?j.sheet:"Sheet1",j={};return j[D]=b,{SheetNames:[D],Sheets:j}}function ep(b,E,D){var j=D||{},J=b?Array.isArray(b):j.dense,re=b||(J?[]:{}),ee=0,se=0;re&&j.origin!=null&&(typeof j.origin=="number"?ee=j.origin:(ee=(Ae=typeof j.origin=="string"?ki(j.origin):j.origin).r,se=Ae.c),re["!ref"]||(re["!ref"]="A1:A1"));var Ae,me={s:{c:1e7,r:1e7},e:{c:0,r:0}};re["!ref"]&&(Ae=Ua(re["!ref"]),me.s.c=Ae.s.c,me.s.r=Ae.s.r,me.e.c=Math.max(me.e.c,Ae.e.c),me.e.r=Math.max(me.e.r,Ae.e.r),ee==-1&&(me.e.r=ee=Ae.e.r+1));for(var _e=0;_e!=E.length;++_e)if(E[_e]){if(!Array.isArray(E[_e]))throw new Error("aoa_to_sheet expects an array of arrays");for(var Be=0;Be!=E[_e].length;++Be)if(E[_e][Be]!==void 0){var De={v:E[_e][Be]},Le=ee+_e,Je=se+Be;if(me.s.r>Le&&(me.s.r=Le),me.s.c>Je&&(me.s.c=Je),me.e.r<Le&&(me.e.r=Le),me.e.c<Je&&(me.e.c=Je),!E[_e][Be]||typeof E[_e][Be]!="object"||Array.isArray(E[_e][Be])||E[_e][Be]instanceof Date)if(Array.isArray(De.v)&&(De.f=E[_e][Be][1],De.v=De.v[0]),De.v===null)if(De.f)De.t="n";else if(j.nullError)De.t="e",De.v=0;else{if(!j.sheetStubs)continue;De.t="z"}else typeof De.v=="number"?De.t="n":typeof De.v=="boolean"?De.t="b":De.v instanceof Date?(De.z=j.dateNF||fe[14],j.cellDates?(De.t="d",De.w=yr(De.z,Wr(De.v))):(De.t="n",De.v=Wr(De.v),De.w=yr(De.z,De.v))):De.t="s";else De=E[_e][Be];J?(re[Le]||(re[Le]=[]),re[Le][Je]&&re[Le][Je].z&&(De.z=re[Le][Je].z),re[Le][Je]=De):(re[Le=ea({c:Je,r:Le})]&&re[Le].z&&(De.z=re[Le].z),re[Le]=De)}}return me.s.c<1e7&&(re["!ref"]=ga(me)),re}function cl(b,E){return ep(null,b,E)}function fl(b,E){return(E=E||Cr(4)).write_shift(4,b),E}function Gs(b){var E=b.read_shift(4);return E===0?"":b.read_shift(E,"dbcs")}function ts(b,E){var D=!1;return E==null&&(D=!0,E=Cr(4+2*b.length)),E.write_shift(4,b.length),0<b.length&&E.write_shift(0,b,"dbcs"),D?E.slice(0,E.l):E}function zd(b,E){var D,j=b.l,J=b.read_shift(1),ee=Gs(b),re=[],ee={t:ee,h:ee};if((1&J)!=0){for(var se=b.read_shift(4),Ae=0;Ae!=se;++Ae)re.push({ich:(D=b).read_shift(2),ifnt:D.read_shift(2)});ee.r=re}else ee.r=[{ich:0,ifnt:0}];return b.l=j+E,ee}var bu=zd;function Vd(b,E){var D,j=!1;return E==null&&(j=!0,E=Cr(23+4*b.t.length)),E.write_shift(1,1),ts(b.t,E),E.write_shift(4,1),D={ich:0,ifnt:0},(b=(b=E)||Cr(4)).write_shift(2,D.ich||0),b.write_shift(2,D.ifnt||0),j?E.slice(0,E.l):E}function Wo(b){var E=b.read_shift(4),D=b.read_shift(2);return D+=b.read_shift(1)<<16,b.l++,{c:E,iStyleRef:D}}function sc(b,E){return(E=E??Cr(8)).write_shift(-4,b.c),E.write_shift(3,b.iStyleRef||b.s),E.write_shift(1,0),E}function oc(b){var E=b.read_shift(2);return E+=b.read_shift(1)<<16,b.l++,{c:-1,iStyleRef:E}}function Go(b,E){return(E=E??Cr(4)).write_shift(3,b.iStyleRef||b.s),E.write_shift(1,0),E}var dl=Gs,gA=ts;function vA(b){var E=b.read_shift(4);return E===0||E===4294967295?"":b.read_shift(E,"dbcs")}function Wd(b,E){var D=!1;return E==null&&(D=!0,E=Cr(127)),E.write_shift(4,0<b.length?b.length:4294967295),0<b.length&&E.write_shift(0,b,"dbcs"),D?E.slice(0,E.l):E}var dg=Gs,yA=vA,bA=Wd;function wu(b){var E=b.slice(b.l,b.l+4),D=1&E[0],j=2&E[0];return b.l+=4,E=j==0?jd([0,0,0,0,252&E[0],E[1],E[2],E[3]],0):so(E,0)>>2,D?E/100:E}function er(b,E){E==null&&(E=Cr(4));var D=0,j=0,J=100*b;if(b==(0|b)&&-536870912<=b&&b<1<<29?j=1:J==(0|J)&&-536870912<=J&&J<1<<29&&(D=j=1),!j)throw new Error("unsupported RkNumber "+b);E.write_shift(-4,((D?J:b)<<2)+(D+2))}function Tr(b){var E={s:{},e:{}};return E.s.r=b.read_shift(4),E.e.r=b.read_shift(4),E.s.c=b.read_shift(4),E.e.c=b.read_shift(4),E}var Ar=Tr,_n=function(b,E){return(E=E||Cr(16)).write_shift(4,b.s.r),E.write_shift(4,b.e.r),E.write_shift(4,b.s.c),E.write_shift(4,b.e.c),E};function Vn(b){if(b.length-b.l<8)throw"XLS Xnum Buffer underflow";return b.read_shift(8,"f")}function Na(b,E){return(E||Cr(8)).write_shift(8,b,"f")}function Hi(b,E){if(E=E||Cr(8),!b||b.auto)return E.write_shift(4,0),E.write_shift(4,0),E;b.index!=null?(E.write_shift(1,2),E.write_shift(1,b.index)):b.theme!=null?(E.write_shift(1,6),E.write_shift(1,b.theme)):(E.write_shift(1,5),E.write_shift(1,0));var D=b.tint||0;return 0<D?D*=32767:D<0&&(D*=32768),E.write_shift(2,D),b.rgb&&b.theme==null?(typeof(b=b.rgb||"FFFFFF")=="number"&&(b=("000000"+b.toString(16)).slice(-6)),E.write_shift(1,parseInt(b.slice(0,2),16)),E.write_shift(1,parseInt(b.slice(2,4),16)),E.write_shift(1,parseInt(b.slice(4,6),16)),E.write_shift(1,255)):(E.write_shift(2,0),E.write_shift(1,0),E.write_shift(1,0)),E}function vi(b,E){var D=b.read_shift(4);switch(D){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[b.read_shift(4)]||""}if(400<D)throw new Error("Unsupported Clipboard: "+D.toString(16));return b.l-=4,b.read_shift(0,E==1?"lpstr":"lpwstr")}var Gc=2,vo=3,yo=12,Uf=81,tp=[80,Uf],Yl={1:{n:"CodePage",t:Gc},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:vo},5:{n:"LineCount",t:vo},6:{n:"ParagraphCount",t:vo},7:{n:"SlideCount",t:vo},8:{n:"NoteCount",t:vo},9:{n:"HiddenCount",t:vo},10:{n:"MultimediaClipCount",t:vo},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:vo},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:vo,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},$c={1:{n:"CodePage",t:Gc},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:vo},15:{n:"WordCount",t:vo},16:{n:"CharCount",t:vo},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:vo},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Nf={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"},ci=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],jf=bt([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].map(function(b){return[b>>16&255,b>>8&255,255&b]})),Ml={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Hf={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},wA={"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"},Gd={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 _A(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Qf(b,E){var D,j=(function(Ae){for(var me=[],_e=sr(Ae),Be=0;Be!==_e.length;++Be)me[Ae[_e[Be]]]==null&&(me[Ae[_e[Be]]]=[]),me[Ae[_e[Be]]].push(_e[Be]);return me})(wA),J=[];J[J.length]=Rr,J[J.length]=on("Types",null,{xmlns:us.CT,"xmlns:xsd":us.xsd,"xmlns:xsi":us.xsi}),J=J.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(Ae){return on("Default",null,{Extension:Ae[0],ContentType:Ae[1]})}));function re(Ae){b[Ae]&&0<b[Ae].length&&(D=b[Ae][0],J[J.length]=on("Override",null,{PartName:(D[0]=="/"?"":"/")+D,ContentType:Gd[Ae][E.bookType]||Gd[Ae].xlsx}))}function ee(Ae){(b[Ae]||[]).forEach(function(me){J[J.length]=on("Override",null,{PartName:(me[0]=="/"?"":"/")+me,ContentType:Gd[Ae][E.bookType]||Gd[Ae].xlsx})})}function se(Ae){(b[Ae]||[]).forEach(function(me){J[J.length]=on("Override",null,{PartName:(me[0]=="/"?"":"/")+me,ContentType:j[Ae][0]})})}return re("workbooks"),ee("sheets"),ee("charts"),se("themes"),["strs","styles"].forEach(re),["coreprops","extprops","custprops"].forEach(se),se("vba"),se("comments"),se("threadedcomments"),se("drawings"),ee("metadata"),se("people"),2<J.length&&(J[J.length]="</Types>",J[1]=J[1].replace("/>",">")),J.join("")}var aa={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 Xl(b){var E=b.lastIndexOf("/");return b.slice(0,E+1)+"_rels/"+b.slice(E+1)+".rels"}function Kc(b,E){var D={"!id":{}};if(!b)return D;E.charAt(0)!=="/"&&(E="/"+E);var j={};return(b.match(lr)||[]).forEach(function(J){var re,ee=vn(J);ee[0]==="<Relationship"&&((re={}).Type=ee.Type,re.Target=ee.Target,re.Id=ee.Id,ee.TargetMode&&(re.TargetMode=ee.TargetMode),J=ee.TargetMode==="External"?ee.Target:Zr(ee.Target,E),D[J]=re,j[ee.Id]=re)}),D["!id"]=j,D}function Zl(b){var E=[Rr,on("Relationships",null,{xmlns:us.RELS})];return sr(b["!id"]).forEach(function(D){E[E.length]=on("Relationship",null,b["!id"][D])}),2<E.length&&(E[E.length]="</Relationships>",E[1]=E[1].replace("/>",">")),E.join("")}function oi(b,E,D,j,J,re){if(J=J||{},b["!id"]||(b["!id"]={}),b["!idx"]||(b["!idx"]=1),E<0)for(E=b["!idx"];b["!id"]["rId"+E];++E);if(b["!idx"]=E+1,J.Id="rId"+E,J.Type=j,J.Target=D,-1<[aa.HLINK,aa.XPATH,aa.XMISS].indexOf(J.Type)&&(J.TargetMode="External"),b["!id"][J.Id])throw new Error("Cannot rewrite rId "+E);return b["!id"][J.Id]=J,b[("/"+J.Target).replace("//","/")]=J,E}var rp="application/vnd.oasis.opendocument.spreadsheet";function zf(b,E,D){return['  <rdf:Description rdf:about="'+b+`">
`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(D||"odf")+"#"+E+`"/>
`,`  </rdf:Description>
`].join("")}function xA(){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 '+n.version+"</meta:generator></office:meta></office:document-meta>"}var Bs=[["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"]],lc=(function(){for(var b=new Array(Bs.length),E=0;E<Bs.length;++E){var D=Bs[E],D="(?:"+D[0].slice(0,D[0].indexOf(":"))+":)"+D[0].slice(D[0].indexOf(":")+1);b[E]=new RegExp("<"+D+"[^>]*>([\\s\\S]*?)</"+D+">")}return b})();function Jl(b){var E={};b=Xa(b);for(var D=0;D<Bs.length;++D){var j=Bs[D],J=b.match(lc[D]);J!=null&&0<J.length&&(E[j[1]]=ba(J[1])),j[2]==="date"&&E[j[1]]&&(E[j[1]]=$e(E[j[1]]))}return E}function uc(b,E,D,j,J){J[b]==null&&E!=null&&E!==""&&(E=Ba(J[b]=E),j[j.length]=D?on(b,E,D):wa(b,E))}function CA(b,E){var D=E||{},j=[Rr,on("cp:coreProperties",null,{"xmlns:cp":us.CORE_PROPS,"xmlns:dc":us.dc,"xmlns:dcterms":us.dcterms,"xmlns:dcmitype":us.dcmitype,"xmlns:xsi":us.xsi})],J={};if(!b&&!D.Props)return j.join("");b&&(b.CreatedDate!=null&&uc("dcterms:created",typeof b.CreatedDate=="string"?b.CreatedDate:bi(b.CreatedDate,D.WTF),{"xsi:type":"dcterms:W3CDTF"},j,J),b.ModifiedDate!=null&&uc("dcterms:modified",typeof b.ModifiedDate=="string"?b.ModifiedDate:bi(b.ModifiedDate,D.WTF),{"xsi:type":"dcterms:W3CDTF"},j,J));for(var re=0;re!=Bs.length;++re){var ee=Bs[re],se=D.Props&&D.Props[ee[1]]!=null?D.Props[ee[1]]:b?b[ee[1]]:null;se===!0?se="1":se===!1?se="0":typeof se=="number"&&(se=String(se)),se!=null&&uc(ee[0],se,null,j,J)}return 2<j.length&&(j[j.length]="</cp:coreProperties>",j[1]=j[1].replace("/>",">")),j.join("")}var cc=[["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"]],Vf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Dl(b,E,D,j){var J=[];if(typeof b=="string")J=Y0(b,j);else for(var re=0;re<b.length;++re)J=J.concat(b[re].map(function(_e){return{v:_e}}));var ee,se=typeof E=="string"?Y0(E,j).map(function(_e){return _e.v}):E,Ae=0;if(0<se.length)for(var me=0;me!==J.length;me+=2){switch(ee=+J[me+1].v,J[me].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":D.Worksheets=ee,D.SheetNames=se.slice(Ae,Ae+ee);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":D.NamedRanges=ee,D.DefinedNames=se.slice(Ae,Ae+ee);break;case"Charts":case"Diagramme":D.Chartsheets=ee,D.ChartNames=se.slice(Ae,Ae+ee)}Ae+=ee}}function Wf(b){var E=[],D=on;return(b=b||{}).Application="SheetJS",E[E.length]=Rr,E[E.length]=on("Properties",null,{xmlns:us.EXT_PROPS,"xmlns:vt":us.vt}),cc.forEach(function(j){if(b[j[1]]!==void 0){var J;switch(j[2]){case"string":J=Ba(String(b[j[1]]));break;case"bool":J=b[j[1]]?"true":"false"}J!==void 0&&(E[E.length]=D(j[0],J))}}),E[E.length]=D("HeadingPairs",D("vt:vector",D("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+D("vt:variant",D("vt:i4",String(b.Worksheets))),{size:2,baseType:"variant"})),E[E.length]=D("TitlesOfParts",D("vt:vector",b.SheetNames.map(function(j){return"<vt:lpstr>"+Ba(j)+"</vt:lpstr>"}).join(""),{size:b.Worksheets,baseType:"lpstr"})),2<E.length&&(E[E.length]="</Properties>",E[1]=E[1].replace("/>",">")),E.join("")}var hg=/<[^>]+>[^<]*/g;function SA(b){var E=[Rr,on("Properties",null,{xmlns:us.CUST_PROPS,"xmlns:vt":us.vt})];if(!b)return E.join("");var D=1;return sr(b).forEach(function(j){++D,E[E.length]=on("property",(function(J,re){switch(typeof J){case"string":var ee=on("vt:lpwstr",Ba(J));return ee=ee.replace(/&quot;/g,"_x0022_");case"number":return on((0|J)==J?"vt:i4":"vt:r8",Ba(String(J)));case"boolean":return on("vt:bool",J?"true":"false")}if(J instanceof Date)return on("vt:filetime",bi(J));throw new Error("Unable to serialize "+J)})(b[j]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:D,name:Ba(j)})}),2<E.length&&(E[E.length]="</Properties>",E[1]=E[1].replace("/>",">")),E.join("")}var kA,TA={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 Bi(D){var E=D.read_shift(4),D=D.read_shift(4);return new Date(1e3*(D/1e7*Math.pow(2,32)+E/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Fs(b,E,D){var j=b.l,J=b.read_shift(0,"lpstr-cp");if(D)for(;b.l-j&3;)++b.l;return J}function Fo(b,E,D){var j=b.read_shift(0,"lpwstr");return j}function np(b,E,D){return E===31?Fo(b):Fs(b,0,D)}function EA(b,E,D){return np(b,E,D===!1?0:4)}function Ag(b){for(var E,D,j,J=b.read_shift(4),re=[],ee=0;ee<J/2;++ee)re.push((j=D=void 0,D=(E=b).l,j=Xc(E,Uf),E[E.l]==0&&E[E.l+1]==0&&E.l-D&2&&(E.l+=2),[j,Xc(E,vo)]));return re}function $d(b,E){for(var D=b.read_shift(4),j={},J=0;J!=D;++J){var re=b.read_shift(4),ee=b.read_shift(4);j[re]=b.read_shift(ee,E===1200?"utf16le":"utf8").replace(O,"").replace(I,"!"),E===1200&&ee%2&&(b.l+=2)}return 3&b.l&&(b.l=b.l>>3<<2),j}function Yc(b){var E=b.read_shift(4),D=b.slice(b.l,b.l+E);return b.l+=E,0<(3&E)&&(b.l+=4-(3&E)&3),D}function Xc(b,E,D){var j,J,re=b.read_shift(2),ee=D||{};if(b.l+=2,E!==yo&&re!==E&&tp.indexOf(E)===-1&&((65534&E)!=4126||(65534&re)!=4126))throw new Error("Expected type "+E+" saw "+re);switch(E===yo?re:E){case 2:return j=b.read_shift(2,"i"),ee.raw||(b.l+=2),j;case 3:return j=b.read_shift(4,"i");case 11:return b.read_shift(4)!==0;case 19:return j=b.read_shift(4);case 30:return Fs(b,0,4).replace(O,"");case 31:return Fo(b);case 64:return Bi(b);case 65:return Yc(b);case 71:return(J={}).Size=(j=b).read_shift(4),j.l+=J.Size+3-(J.Size-1)%4,J;case 80:return EA(b,re,!ee.raw).replace(O,"");case 81:return(function(se,Ae){if(!Ae)throw new Error("VtUnalignedString must have positive length");return np(se,Ae,0)})(b,re).replace(O,"");case 4108:return Ag(b);case 4126:case 4127:return(re==4127?function(se){for(var Ae=se.read_shift(4),me=[],_e=0;_e!=Ae;++_e){var Be=se.l;me[_e]=se.read_shift(0,"lpwstr").replace(O,""),se.l-Be&2&&(se.l+=2)}return me}:function(se){for(var Ae=se.read_shift(4),me=[],_e=0;_e!=Ae;++_e)me[_e]=se.read_shift(0,"lpstr-cp").replace(O,"");return me})(b);default:throw new Error("TypedPropertyValue unrecognized type "+E+" "+re)}}function fc(b,E){var D,j,J,re=Cr(4),ee=Cr(4);switch(re.write_shift(4,b==80?31:b),b){case 3:ee.write_shift(-4,E);break;case 5:(ee=Cr(8)).write_shift(8,E,"f");break;case 11:ee.write_shift(4,E?1:0);break;case 64:j=(typeof(D=E)=="string"?new Date(Date.parse(D)):D).getTime()/1e3+11644473600,J=j%Math.pow(2,32),D=(j-J)/Math.pow(2,32),D*=1e7,0<(j=(J*=1e7)/Math.pow(2,32)|0)&&(J%=Math.pow(2,32),D+=j),(j=Cr(8)).write_shift(4,J),j.write_shift(4,D),ee=j;break;case 31:case 80:for((ee=Cr(4+2*(E.length+1)+(E.length%2?0:2))).write_shift(4,E.length+1),ee.write_shift(0,E,"dbcs");ee.l!=ee.length;)ee.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+b+" "+E)}return B([re,ee])}function Zc(b,E){for(var D=b.l,j=b.read_shift(4),J=b.read_shift(4),re=[],me=0,ee=0,se=-1,Ae={},me=0;me!=J;++me){var _e=b.read_shift(4),Be=b.read_shift(4);re[me]=[_e,Be+D]}re.sort(function(et,Xe){return et[1]-Xe[1]});var De={};for(me=0;me!=J;++me){if(b.l!==re[me][1]){var Le=!0;if(0<me&&E)switch(E[re[me-1][0]].t){case 2:b.l+2===re[me][1]&&(b.l+=2,Le=!1);break;case 80:case 4108:b.l<=re[me][1]&&(b.l=re[me][1],Le=!1)}if((!E||me==0)&&b.l<=re[me][1]&&(Le=!1,b.l=re[me][1]),Le)throw new Error("Read Error: Expected address "+re[me][1]+" at "+b.l+" :"+me)}if(E){var Je=E[re[me][0]];if(De[Je.n]=Xc(b,Je.t,{raw:!0}),Je.p==="version"&&(De[Je.n]=String(De[Je.n]>>16)+"."+("0000"+String(65535&De[Je.n])).slice(-4)),Je.n=="CodePage")switch(De[Je.n]){case 0:De[Je.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:g(ee=De[Je.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+De[Je.n])}}else if(re[me][0]===1)ee=De.CodePage=Xc(b,Gc),g(ee),se!==-1&&(ct=b.l,b.l=re[se][1],Ae=$d(b,ee),b.l=ct);else if(re[me][0]===0)ee!==0?Ae=$d(b,ee):(se=me,b.l=re[me+1][1]);else{var He,ct=Ae[re[me][0]];switch(b[b.l]){case 65:b.l+=4,He=Yc(b);break;case 30:case 31:b.l+=4,He=EA(b,b[b.l-4]).replace(/\u0000+$/,"");break;case 3:b.l+=4,He=b.read_shift(4,"i");break;case 19:b.l+=4,He=b.read_shift(4);break;case 5:b.l+=4,He=b.read_shift(8,"f");break;case 11:b.l+=4,He=Qi(b,4);break;case 64:b.l+=4,He=$e(Bi(b));break;default:throw new Error("unparsed value: "+b[b.l])}De[ct]=He}}return b.l=D+j,De}var Jc=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Gf(b,E,D){var j,J,re,ee,se=Cr(8),Ae=[],me=[],_e=8,Be=0,De=Cr(8),Le=Cr(8);if(De.write_shift(4,2),De.write_shift(4,1200),Le.write_shift(4,1),me.push(De),Ae.push(Le),_e+=8+De.length,!E){(Le=Cr(8)).write_shift(4,0),Ae.unshift(Le);var Je=[Cr(4)];for(Je[0].write_shift(4,b.length),Be=0;Be<b.length;++Be){var He=b[Be][0];for((De=Cr(8+2*(He.length+1)+(He.length%2?0:2))).write_shift(4,Be+2),De.write_shift(4,He.length+1),De.write_shift(0,He,"dbcs");De.l!=De.length;)De.write_shift(1,0);Je.push(De)}De=B(Je),me.unshift(De),_e+=8+De.length}for(Be=0;Be<b.length;++Be)E&&!E[b[Be][0]]||-1<Jc.indexOf(b[Be][0])||-1<Vf.indexOf(b[Be][0])||b[Be][1]!=null&&(re=b[Be][1],j=0,De=E?((ee=D[j=+E[b[Be][0]]]).p=="version"&&typeof re=="string"&&(re=(+(J=re.split("."))[0]<<16)+(+J[1]||0)),fc(ee.t,re)):((ee=(function(et){switch(typeof et){case"boolean":return 11;case"number":return(0|et)==et?3:5;case"string":return 31;case"object":if(et instanceof Date)return 64}return-1})(re))==-1&&(ee=31,re=String(re)),fc(ee,re)),me.push(De),(Le=Cr(8)).write_shift(4,E?j:2+Be),Ae.push(Le),_e+=8+De.length);for(var ct=8*(me.length+1),Be=0;Be<me.length;++Be)Ae[Be].write_shift(4,ct),ct+=me[Be].length;return se.write_shift(4,_e),se.write_shift(4,me.length),B([se].concat(Ae).concat(me))}function dc(b,E,D){var j=b.content;if(!j)return{};es(j,0);var J,re=0;j.chk("feff","Byte Order: "),j.read_shift(2);var ee=j.read_shift(4),se=j.read_shift(16);if(se!==$t.utils.consts.HEADER_CLSID&&se!==D)throw new Error("Bad PropertySet CLSID "+se);if((b=j.read_shift(4))!==1&&b!==2)throw new Error("Unrecognized #Sets: "+b);if(D=j.read_shift(16),se=j.read_shift(4),b===1&&se!==j.l)throw new Error("Length mismatch: "+se+" !== "+j.l);b===2&&(J=j.read_shift(16),re=j.read_shift(4));var Ae,me,_e=Zc(j,E),Be={SystemIdentifier:ee};for(Ae in _e)Be[Ae]=_e[Ae];if(Be.FMTID=D,b===1)return Be;if(re-j.l==2&&(j.l+=2),j.l!==re)throw new Error("Length mismatch 2: "+j.l+" !== "+re);try{me=Zc(j,null)}catch{}for(Ae in me)Be[Ae]=me[Ae];return Be.FMTID=[D,J],Be}function ap(b,E,D,j,J,re){var ee=Cr(J?68:48),se=[ee];return ee.write_shift(2,65534),ee.write_shift(2,0),ee.write_shift(4,842412599),ee.write_shift(16,$t.utils.consts.HEADER_CLSID,"hex"),ee.write_shift(4,J?2:1),ee.write_shift(16,E,"hex"),ee.write_shift(4,J?68:48),j=Gf(b,D,j),se.push(j),J&&(J=Gf(J,null,null),ee.write_shift(16,re,"hex"),ee.write_shift(4,68+j.length),se.push(J)),B(se)}function _u(b,E){return b.read_shift(E),null}function Qi(b,E){return b.read_shift(E)===1}function Ms(b,E){return(E=E||Cr(2)).write_shift(2,+!!b),E}function rs(b){return b.read_shift(2,"u")}function bs(b,E){return(E=E||Cr(2)).write_shift(2,b),E}function qc(b,E){return(function(D,j,J){for(var re=[],ee=D.l+j;D.l<ee;)re.push(J(D,ee-D.l));if(ee!==D.l)throw new Error("Slurp error");return re})(b,E,rs)}function IA(b,E,D){return(D=D||Cr(2)).write_shift(1,E=="e"?+b:+!!b),D.write_shift(1,E=="e"?1:0),D}function dt(b,E,D){var j=b.read_shift(D&&12<=D.biff?2:1),J="sbcs-cont",re=c;return D&&8<=D.biff&&(c=1200),D&&D.biff!=8?D.biff==12&&(J="wstr"):b.read_shift(1)&&(J="dbcs-cont"),2<=D.biff&&D.biff<=5&&(J="cpstr"),J=j?b.read_shift(j,J):"",c=re,J}function $o(b,E,D){if(D){if(2<=D.biff&&D.biff<=5)return b.read_shift(E,"cpstr");if(12<=D.biff)return b.read_shift(E,"dbcs-cont")}return b.read_shift(1)===0?b.read_shift(E,"sbcs-cont"):b.read_shift(E,"dbcs-cont")}function xu(b,E,D){var j=b.read_shift(D&&D.biff==2?1:2);return j===0?(b.l++,""):$o(b,j,D)}function ws(b,E,D){if(5<D.biff)return xu(b,0,D);var j=b.read_shift(1);return j===0?(b.l++,""):b.read_shift(j,D.biff<=4||!b.lens?"cpstr":"sbcs-cont")}function La(b,E,D){return(D=D||Cr(3+2*b.length)).write_shift(2,b.length),D.write_shift(1,1),D.write_shift(31,b,"utf16le"),D}function pg(b){var E,D,j,J,re=b.read_shift(16);switch(re){case"e0c9ea79f9bace118c8200aa004ba90b":return D=(E=b).read_shift(4),j=E.l,J=!1,24<D&&(E.l+=D-24,E.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(J=!0),E.l=j),D=E.read_shift((J?D-24:D)>>1,"utf16le").replace(O,""),J&&(E.l+=24),D;case"0303000000000000c000000000000046":return(function(ee){for(var se=ee.read_shift(2),Ae="";0<se--;)Ae+="../";var me=ee.read_shift(0,"lpstr-ansi");if(ee.l+=2,ee.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(ee.read_shift(4)===0)return Ae+me.replace(/\\/g,"/");if(me=ee.read_shift(4),ee.read_shift(2)!=3)throw new Error("Bad FileMoniker");return Ae+ee.read_shift(me>>1,"utf16le").replace(O,"")})(b);default:throw new Error("Unsupported Moniker "+re)}}function Kd(b){var E=b.read_shift(4);return 0<E?b.read_shift(E,"utf16le").replace(O,""):""}function ip(b,E){(E=E||Cr(6+2*b.length)).write_shift(4,1+b.length);for(var D=0;D<b.length;++D)E.write_shift(2,b.charCodeAt(D));return E.write_shift(2,0),E}function Cu(b){return[b.read_shift(1),b.read_shift(1),b.read_shift(1),b.read_shift(1)]}function sp(b){return b=Cu(b),b[3]=0,b}function Ol(b){return{r:b.read_shift(2),c:b.read_shift(2),ixfe:b.read_shift(2)}}function hc(b,E,D,j){return(j=j||Cr(6)).write_shift(2,b),j.write_shift(2,E),j.write_shift(2,D||0),j}function op(b){return[b.read_shift(2),wu(b)]}function Yd(b){var E=b.read_shift(2),D=b.read_shift(2);return{s:{c:b.read_shift(2),r:E},e:{c:b.read_shift(2),r:D}}}function Ll(b,E){return(E=E||Cr(8)).write_shift(2,b.s.r),E.write_shift(2,b.e.r),E.write_shift(2,b.s.c),E.write_shift(2,b.e.c),E}function lp(b){var E=b.read_shift(2),D=b.read_shift(2);return{s:{c:b.read_shift(1),r:E},e:{c:b.read_shift(1),r:D}}}var mg=lp;function up(b){b.l+=4;var E=b.read_shift(2),D=b.read_shift(2),j=b.read_shift(2);return b.l+=12,[D,E,j]}function Ds(b){b.l+=2,b.l+=b.read_shift(2)}var gg={0:Ds,4:Ds,5:Ds,6:Ds,7:function(b){return b.l+=4,b.cf=b.read_shift(2),{}},8:Ds,9:Ds,10:Ds,11:Ds,12:Ds,13:function(b){var E={};return b.l+=4,b.l+=16,E.fSharedNote=b.read_shift(2),b.l+=4,E},14:Ds,15:Ds,16:Ds,17:Ds,18:Ds,19:Ds,20:Ds,21:up};function Ko(b,E){var D={BIFFVer:0,dt:0};switch(D.BIFFVer=b.read_shift(2),2<=(E-=2)&&(D.dt=b.read_shift(2),b.l-=2),D.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(6<E)throw new Error("Unexpected BIFF Ver "+D.BIFFVer)}return b.read_shift(E),D}function Xd(b,E,D){var j=1536,J=16;switch(D.bookType){case"biff8":break;case"biff5":j=1280,J=8;break;case"biff4":j=4,J=6;break;case"biff3":j=3,J=6;break;case"biff2":j=2,J=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}return D=Cr(J),D.write_shift(2,j),D.write_shift(2,E),4<J&&D.write_shift(2,29282),6<J&&D.write_shift(2,1997),8<J&&(D.write_shift(2,49161),D.write_shift(2,1),D.write_shift(2,1798),D.write_shift(2,0)),D}function vg(b){var E=Cr(8);E.write_shift(4,b.Count),E.write_shift(4,b.Unique);for(var D,j,J,re=[],ee=0;ee<b.length;++ee)re[ee]=(D=b[ee],J=j=void 0,j=D.t||"",(J=Cr(3)).write_shift(2,j.length),J.write_shift(1,1),(D=Cr(2*j.length)).write_shift(2*j.length,j,"utf16le"),B([J,D]));var se=B([E].concat(re));return se.parts=[E.length].concat(re.map(function(Ae){return Ae.length})),se}function cp(b,E,D){var j=0;return D&&D.biff==2||(j=b.read_shift(2)),b=b.read_shift(2),D&&D.biff==2&&(j=1-(b>>15),b&=32767),[{Unsynced:1&j,DyZero:(2&j)>>1,ExAsc:(4&j)>>2,ExDsc:(8&j)>>3},b]}var Uh=ws;function fp(b,re,ee){var j=b.l+re,se=ee.biff!=8&&ee.biff?2:4,J=b.read_shift(se),re=b.read_shift(se),ee=b.read_shift(2),se=b.read_shift(2);return b.l=j,{s:{r:J,c:ee},e:{r:re,c:se}}}function dp(b,E,D,j){return D=D&&D.biff==5,(j=j||Cr(D?16:20)).write_shift(2,0),b.style?(j.write_shift(2,b.numFmtId||0),j.write_shift(2,65524)):(j.write_shift(2,b.numFmtId||0),j.write_shift(2,E<<4)),E=0,0<b.numFmtId&&D&&(E|=1024),j.write_shift(4,E),j.write_shift(4,0),D||j.write_shift(4,0),j.write_shift(2,0),j}function Su(b,E,D){var j=Ol(b);return D.biff!=2&&E!=9||++b.l,b=(E=b).read_shift(1),b=E.read_shift(1)===1?b:b===1,j.val=b,j.t=b===!0||b===!1?"b":"e",j}function hp(b,E,D){return E===0?"":ws(b,0,D)}function Ap(b,E,D){var j,J=b.read_shift(2),J={fBuiltIn:1&J,fWantAdvise:J>>>1&1,fWantPict:J>>>2&1,fOle:J>>>3&1,fOleLink:J>>>4&1,cf:J>>>5&1023,fIcon:J>>>15&1};return D.sbcch===14849&&(j=(function(re,me,se){re.l+=4,me-=4;var Ae=re.l+me,me=dt(re,0,se);if((se=re.read_shift(2))!==(Ae-=re.l))throw new Error("Malformed AddinUdf: padding = "+Ae+" != "+se);return re.l+=se,me})(b,E-2,D)),J.body=j||b.read_shift(E-2),typeof j=="string"&&(J.Name=j),J}var hl=["_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 pp(b,Ae,D){var j=b.l+Ae,J=b.read_shift(2),re=b.read_shift(1),ee=b.read_shift(1),se=b.read_shift(D&&D.biff==2?1:2),Ae=0;return(!D||5<=D.biff)&&(D.biff!=5&&(b.l+=2),Ae=b.read_shift(2),D.biff==5&&(b.l+=2),b.l+=4),ee=$o(b,ee,D),32&J&&(ee=hl[ee.charCodeAt(0)]),J=j-b.l,D&&D.biff==2&&--J,{chKey:re,Name:ee,itab:Ae,rgce:j!=b.l&&se!==0&&0<J?(function(me,Je,Be,He){var Le,Je=me.l+Je,He=od(me,He,Be);return Je!==me.l&&(Le=xc(me,Je-me.l,He,Be)),[He,Le]})(b,J,D,se):[]}}function mp(b,E,D){if(D.biff<8)return(function(se,Ae){return se[se.l+1]==3&&se[se.l]++,Ae=dt(se,0,Ae),Ae.charCodeAt(0)==3?Ae.slice(1):Ae})(b,D);for(var j,J,re=[],E=b.l+E,ee=b.read_shift(8<D.biff?4:2);ee--!=0;)re.push((j=b,D.biff,J=8<(J=D).biff?4:2,[j.read_shift(J),j.read_shift(J,"i"),j.read_shift(J,"i")]));if(b.l!=E)throw new Error("Bad ExternSheet: "+b.l+" != "+E);return re}function gp(b,E,D){var j=mg(b);switch(D.biff){case 2:b.l++,E-=7;break;case 3:case 4:b.l+=2,E-=8;break;default:b.l+=6,E-=12}return[j,(function(J,re,ee){var se,Ae=J.l+re,me=ee.biff==2?1:2,_e=J.read_shift(me);if(_e==65535)return[[],Yi(J,re-2)];var Be=od(J,_e,ee);return re!==_e+me&&(se=xc(J,re-_e-me,Be,ee)),J.l=Ae,[Be,se]})(b,E,D)]}var yg={8:function(b,E){var D=b.l+E;b.l+=10;var j=b.read_shift(2);return b.l+=4,b.l+=2,b.l+=2,b.l+=2,b.l+=4,E=b.read_shift(1),b.l+=E,b.l=D,{fmt:j}}};function bg(b){var E=Cr(24),D=ki(b[0]);E.write_shift(2,D.r),E.write_shift(2,D.r),E.write_shift(2,D.c),E.write_shift(2,D.c);for(var j="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),J=0;J<16;++J)E.write_shift(1,parseInt(j[J],16));return B([E,(function(re){var ee=Cr(512),se=0,Ae=re.Target,me=-1<(re=(Ae=Ae.slice(0,7)=="file://"?Ae.slice(7):Ae).indexOf("#"))?31:23;switch(Ae.charAt(0)){case"#":me=28;break;case".":me&=-3}ee.write_shift(4,2),ee.write_shift(4,me);for(var _e=[8,6815827,6619237,4849780,83],se=0;se<_e.length;++se)ee.write_shift(4,_e[se]);if(me==28)ip(Ae=Ae.slice(1),ee);else if(2&me){for(_e="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),se=0;se<_e.length;++se)ee.write_shift(1,parseInt(_e[se],16));var Be=-1<re?Ae.slice(0,re):Ae;for(ee.write_shift(4,2*(Be.length+1)),se=0;se<Be.length;++se)ee.write_shift(2,Be.charCodeAt(se));ee.write_shift(2,0),8&me&&ip(-1<re?Ae.slice(re+1):"",ee)}else{for(_e="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),se=0;se<_e.length;++se)ee.write_shift(1,parseInt(_e[se],16));for(var De=0;Ae.slice(3*De,3*De+3)=="../"||Ae.slice(3*De,3*De+3)=="..\\";)++De;for(ee.write_shift(2,De),ee.write_shift(4,Ae.length-3*De+1),se=0;se<Ae.length-3*De;++se)ee.write_shift(1,255&Ae.charCodeAt(se+3*De));for(ee.write_shift(1,0),ee.write_shift(2,65535),ee.write_shift(2,57005),se=0;se<6;++se)ee.write_shift(4,0)}return ee.slice(0,ee.l)})(b[1])])}function BA(b,Ae,D){if(!D.cellStyles)return Yi(b,Ae);var j=D&&12<=D.biff?4:2,J=b.read_shift(j),re=b.read_shift(j),ee=b.read_shift(j),se=b.read_shift(j),Ae=b.read_shift(2);return j==2&&(b.l+=2),se={s:J,e:re,w:ee,ixfe:se,flags:Ae},(5<=D.biff||!D.biff)&&(se.level=Ae>>8&7),se}var vp=Ol,wg=qc,a1=xu,yp,Zd,ku,Jd=[2,3,48,49,131,139,140,245],FA=(yp={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},Zd=fn({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}),ku={B:8,C:250,L:1,D:8,"?":0,"":0},{to_workbook:function(b,E){try{return yu(MA(b,E),E)}catch(D){if(E&&E.WTF)throw D}return{SheetNames:[],Sheets:{}}},to_sheet:MA,from_sheet:function(b,E){if(0<=+(E=E||{}).codepage&&g(+E.codepage),E.type=="string")throw new Error("Cannot write DBF to JS string");for(var D=oo(),j=(E=p0(b,{header:1,raw:!0,cellDates:!0}))[0],J=E.slice(1),re=b["!cols"]||[],me=0,ee=0,se=0,Ae=1,me=0;me<j.length;++me)if(((re[me]||{}).DBF||{}).name)j[me]=re[me].DBF.name,++se;else if(j[me]!=null){if(++se,typeof j[me]=="number"&&(j[me]=j[me].toString(10)),typeof j[me]!="string")throw new Error("DBF Invalid column name "+j[me]+" |"+typeof j[me]+"|");if(j.indexOf(j[me])!==me){for(ee=0;ee<1024;++ee)if(j.indexOf(j[me]+"_"+ee)==-1){j[me]+="_"+ee;break}}}var _e=Ua(b["!ref"]),Be=[],De=[],Le=[];for(me=0;me<=_e.e.c-_e.s.c;++me){for(var Je="",He="",ct=0,et=[],ee=0;ee<J.length;++ee)J[ee][me]!=null&&et.push(J[ee][me]);if(et.length!=0&&j[me]!=null){for(ee=0;ee<et.length;++ee){switch(typeof et[ee]){case"number":He="B";break;case"string":He="C";break;case"boolean":He="L";break;case"object":He=et[ee]instanceof Date?"D":"C";break;default:He="C"}ct=Math.max(ct,String(et[ee]).length),Je=Je&&Je!=He?"C":He}250<ct&&(ct=250),(He=((re[me]||{}).DBF||{}).type)=="C"&&re[me].DBF.len>ct&&(ct=re[me].DBF.len),Je=="B"&&He=="N"&&(Je="N",Le[me]=re[me].DBF.dec,ct=re[me].DBF.len),De[me]=Je=="C"||He=="N"?ct:ku[Je]||0,Ae+=De[me],Be[me]=Je}else Be[me]="?"}var Xe,lt,At=D.next(32);for(At.write_shift(4,318902576),At.write_shift(4,J.length),At.write_shift(2,296+32*se),At.write_shift(2,Ae),me=0;me<4;++me)At.write_shift(4,0);for(At.write_shift(4,0|(+Zd[u]||3)<<8),ee=me=0;me<j.length;++me)j[me]!=null&&(Xe=D.next(32),lt=(j[me].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11),Xe.write_shift(1,lt,"sbcs"),Xe.write_shift(1,Be[me]=="?"?"C":Be[me],"sbcs"),Xe.write_shift(4,ee),Xe.write_shift(1,De[me]||ku[Be[me]]||0),Xe.write_shift(1,Le[me]||0),Xe.write_shift(1,2),Xe.write_shift(4,0),Xe.write_shift(1,0),Xe.write_shift(4,0),Xe.write_shift(4,0),ee+=De[me]||ku[Be[me]]||0);var pt=D.next(264);for(pt.write_shift(4,13),me=0;me<65;++me)pt.write_shift(4,0);for(me=0;me<J.length;++me){var jt=D.next(Ae);for(jt.write_shift(1,0),ee=0;ee<j.length;++ee)if(j[ee]!=null)switch(Be[ee]){case"L":jt.write_shift(1,J[me][ee]==null?63:J[me][ee]?84:70);break;case"B":jt.write_shift(8,J[me][ee]||0,"f");break;case"N":var rr="0";for(typeof J[me][ee]=="number"&&(rr=J[me][ee].toFixed(Le[ee]||0)),se=0;se<De[ee]-rr.length;++se)jt.write_shift(1,32);jt.write_shift(1,rr,"sbcs");break;case"D":J[me][ee]?(jt.write_shift(4,("0000"+J[me][ee].getFullYear()).slice(-4),"sbcs"),jt.write_shift(2,("00"+(J[me][ee].getMonth()+1)).slice(-2),"sbcs"),jt.write_shift(2,("00"+J[me][ee].getDate()).slice(-2),"sbcs")):jt.write_shift(8,"00000000","sbcs");break;case"C":var Yt=String(J[me][ee]!=null?J[me][ee]:"").slice(0,De[ee]);for(jt.write_shift(1,Yt,"sbcs"),se=0;se<De[ee]-Yt.length;++se)jt.write_shift(1,32)}}return D.next(1).write_shift(1,26),D.end()}});function MA(b,E){return E=E||{},E.dateNF||(E.dateNF="yyyymmdd"),b=cl((function(D,j){var J=[],re=k(1);switch(j.type){case"base64":re=S(w(D));break;case"binary":re=S(D);break;case"buffer":case"array":re=D}es(re,0);var ee=re.read_shift(1),se=!!(136&ee),Ae=!1,me=!1;switch(ee){case 2:case 3:break;case 48:case 49:se=Ae=!0;break;case 131:case 139:break;case 140:me=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+ee.toString(16))}var _e=0,Be=521;ee==2&&(_e=re.read_shift(2)),re.l+=3,1048576<(_e=ee!=2?re.read_shift(4):_e)&&(_e=1e6),ee!=2&&(Be=re.read_shift(2));var De=re.read_shift(2),Le=j.codepage||1252;ee!=2&&(re.l+=16,re.read_shift(1),re[re.l]!==0&&(Le=yp[re[re.l]]),re.l+=1,re.l+=2),me&&(re.l+=36);for(var Je=[],He={},ct=Math.min(re.length,ee==2?521:Be-10-(Ae?264:0)),et=me?32:11;re.l<ct&&re[re.l]!=13;)switch((He={}).name=t.utils.decode(Le,re.slice(re.l,re.l+et)).replace(/[\u0000\r\n].*$/g,""),re.l+=et,He.type=String.fromCharCode(re.read_shift(1)),ee==2||me||(He.offset=re.read_shift(4)),He.len=re.read_shift(1),ee==2&&(He.offset=re.read_shift(2)),He.dec=re.read_shift(1),He.name.length&&Je.push(He),ee!=2&&(re.l+=me?13:14),He.type){case"B":Ae&&He.len==8||!j.WTF||console.log("Skipping "+He.name+":"+He.type);break;case"G":case"P":j.WTF&&console.log("Skipping "+He.name+":"+He.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: "+He.type)}if(re[re.l]!==13&&(re.l=Be-1),re.read_shift(1)!==13)throw new Error("DBF Terminator not found "+re.l+" "+re[re.l]);re.l=Be;var Xe=0,lt=0;for(J[0]=[],lt=0;lt!=Je.length;++lt)J[0][lt]=Je[lt].name;for(;0<_e--;)if(re[re.l]!==42)for(++re.l,J[++Xe]=[],lt=lt=0;lt!=Je.length;++lt){var At=re.slice(re.l,re.l+Je[lt].len);re.l+=Je[lt].len,es(At,0);var pt=t.utils.decode(Le,At);switch(Je[lt].type){case"C":pt.trim().length&&(J[Xe][lt]=pt.replace(/\s+$/,""));break;case"D":pt.length===8?J[Xe][lt]=new Date(+pt.slice(0,4),+pt.slice(4,6)-1,+pt.slice(6,8)):J[Xe][lt]=pt;break;case"F":J[Xe][lt]=parseFloat(pt.trim());break;case"+":case"I":J[Xe][lt]=me?2147483648^At.read_shift(-4,"i"):At.read_shift(4,"i");break;case"L":switch(pt.trim().toUpperCase()){case"Y":case"T":J[Xe][lt]=!0;break;case"N":case"F":J[Xe][lt]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+pt+"|")}break;case"M":if(!se)throw new Error("DBF Unexpected MEMO for type "+ee.toString(16));J[Xe][lt]="##MEMO##"+(me?parseInt(pt.trim(),10):At.read_shift(4));break;case"N":(pt=pt.replace(/\u0000/g,"").trim())&&pt!="."&&(J[Xe][lt]=+pt||0);break;case"@":J[Xe][lt]=new Date(At.read_shift(-8,"f")-621356832e5);break;case"T":J[Xe][lt]=new Date(864e5*(At.read_shift(4)-2440588)+At.read_shift(4));break;case"Y":J[Xe][lt]=At.read_shift(4,"i")/1e4+At.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":J[Xe][lt]=-At.read_shift(-8,"f");break;case"B":if(Ae&&Je[lt].len==8){J[Xe][lt]=At.read_shift(8,"f");break}case"G":case"P":At.l+=Je[lt].len;break;case"0":if(Je[lt].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+Je[lt].type)}}else re.l+=De;if(ee!=2&&re.l<re.length&&re[re.l++]!=26)throw new Error("DBF EOF Marker missing "+(re.l-1)+" of "+re.length+" "+re[re.l-1].toString(16));return j&&j.sheetRows&&(J=J.slice(0,j.sheetRows)),j.DBF=Je,J})(b,E),E),b["!cols"]=E.DBF.map(function(D){return{wch:D.len,DBF:D}}),delete E.DBF,b}var qd,Pl,eh,Tu,Mo=(qd={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},Pl=new RegExp("\x1BN("+sr(qd).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),eh=function(b,E){return E=qd[E],typeof E=="number"?d(E):E},Tu=function(b,E,D){return D=E.charCodeAt(0)-32<<4|D.charCodeAt(0)-48,D==59?b:d(D)},qd["|"]=254,{to_workbook:function(b,E){return yu(ef(b,E),E)},to_sheet:ef,from_sheet:function(b,E){var D,j,J=["ID;PWXL;N;E"],re=[],ee=Ua(b["!ref"]),se=Array.isArray(b),Ae=`\r
`;J.push("P;PGeneral"),J.push("F;P0;DG0G8;M255"),b["!cols"]&&(D=J,b["!cols"].forEach(function(De,Le){Le="F;W"+(Le+1)+" "+(Le+1)+" ",De.hidden?Le+="0":(typeof De.width!="number"||De.wpx||(De.wpx=ed(De.width)),typeof De.wpx!="number"||De.wch||(De.wch=Yo(De.wpx)),typeof De.wch=="number"&&(Le+=Math.round(De.wch))),Le.charAt(Le.length-1)!=" "&&D.push(Le)})),b["!rows"]&&(j=J,b["!rows"].forEach(function(De,Le){var Je="F;";De.hidden?Je+="M0;":De.hpt?Je+="M"+20*De.hpt+";":De.hpx&&(Je+="M"+20*sf(De.hpx)+";"),2<Je.length&&j.push(Je+"R"+(Le+1))})),J.push("B;Y"+(ee.e.r-ee.s.r+1)+";X"+(ee.e.c-ee.s.c+1)+";D"+[ee.s.c,ee.s.r,ee.e.c,ee.e.r].join(" "));for(var me=ee.s.r;me<=ee.e.r;++me)for(var _e=ee.s.c;_e<=ee.e.c;++_e){var Be=ea({r:me,c:_e});(Be=se?(b[me]||[])[_e]:b[Be])&&(Be.v!=null||Be.f&&!Be.F)&&re.push((function(De,Le,Je){var He="C;Y"+(Le+1)+";X"+(Je+1)+";K";switch(De.t){case"n":He+=De.v||0,De.f&&!De.F&&(He+=";E"+df(De.f,{r:Le,c:Je}));break;case"b":He+=De.v?"TRUE":"FALSE";break;case"e":He+=De.w||De.v;break;case"d":He+='"'+(De.w||De.v)+'"';break;case"s":He+='"'+De.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return He})(Be,me,_e))}return J.join(Ae)+Ae+re.join(Ae)+Ae+"E"+Ae}});function th(De,E){var D,j,J=De.split(/[\n\r]+/),re=-1,ee=-1,se=0,Ae=0,me=[],_e=[],Be=null,De={},Le=[],Je=[],He=0;for(0<=+E.codepage&&g(+E.codepage);se!==J.length;++se){He=0;var ct,et=J[se].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,Tu).replace(Pl,eh),Xe=et.replace(/;;/g,"\0").split(";").map(function(Xr){return Xr.replace(/\u0000/g,";")}),lt=Xe[0];if(0<et.length)switch(lt){case"ID":case"E":case"B":case"O":case"W":break;case"P":Xe[1].charAt(0)=="P"&&_e.push(et.slice(3).replace(/;;/g,";"));break;case"C":for(var At=!1,pt=!1,jt=!1,rr=!1,Yt=-1,cr=-1,Ae=1;Ae<Xe.length;++Ae)switch(Xe[Ae].charAt(0)){case"A":break;case"X":ee=parseInt(Xe[Ae].slice(1))-1,pt=!0;break;case"Y":for(re=parseInt(Xe[Ae].slice(1))-1,pt||(ee=0),j=me.length;j<=re;++j)me[j]=[];break;case"K":(ct=Xe[Ae].slice(1)).charAt(0)==='"'?ct=ct.slice(1,ct.length-1):ct==="TRUE"?ct=!0:ct==="FALSE"?ct=!1:isNaN(kt(ct))?isNaN(Dt(ct).getDate())||(ct=$e(ct)):(ct=kt(ct),Be!==null&&Ot(Be)&&(ct=ze(ct))),t!==void 0&&typeof ct=="string"&&(E||{}).type!="string"&&(E||{}).codepage&&(ct=t.utils.decode(E.codepage,ct)),At=!0;break;case"E":rr=!0;var Fr=Ou(Xe[Ae].slice(1),{r:re,c:ee});me[re][ee]=[me[re][ee],Fr];break;case"S":jt=!0,me[re][ee]=[me[re][ee],"S5S"];break;case"G":break;case"R":Yt=parseInt(Xe[Ae].slice(1))-1;break;case"C":cr=parseInt(Xe[Ae].slice(1))-1;break;default:if(E&&E.WTF)throw new Error("SYLK bad record "+et)}if(At&&(me[re][ee]&&me[re][ee].length==2?me[re][ee][0]=ct:me[re][ee]=ct,Be=null),jt){if(rr)throw new Error("SYLK shared formula cannot have own formula");var Dr=-1<Yt&&me[Yt][cr];if(!Dr||!Dr[1])throw new Error("SYLK shared formula cannot find base");me[re][ee][1]=Th(Dr[1],{r:re-Yt,c:ee-cr})}break;case"F":var pr=0;for(Ae=1;Ae<Xe.length;++Ae)switch(Xe[Ae].charAt(0)){case"X":ee=parseInt(Xe[Ae].slice(1))-1,++pr;break;case"Y":for(re=parseInt(Xe[Ae].slice(1))-1,j=me.length;j<=re;++j)me[j]=[];break;case"M":He=parseInt(Xe[Ae].slice(1))/20;break;case"F":case"G":break;case"P":Be=_e[parseInt(Xe[Ae].slice(1))];break;case"S":case"D":case"N":break;case"W":for(D=Xe[Ae].slice(1).split(" "),j=parseInt(D[0],10);j<=parseInt(D[1],10);++j)He=parseInt(D[2],10),Je[j-1]=He===0?{hidden:!0}:{wch:He},Fu(Je[j-1]);break;case"C":Je[ee=parseInt(Xe[Ae].slice(1))-1]||(Je[ee]={});break;case"R":Le[re=parseInt(Xe[Ae].slice(1))-1]||(Le[re]={}),0<He?(Le[re].hpt=He,Le[re].hpx=wc(He)):He===0&&(Le[re].hidden=!0);break;default:if(E&&E.WTF)throw new Error("SYLK bad record "+et)}pr<1&&(Be=null);break;default:if(E&&E.WTF)throw new Error("SYLK bad record "+et)}}return 0<Le.length&&(De["!rows"]=Le),0<Je.length&&(De["!cols"]=Je),[me=E&&E.sheetRows?me.slice(0,E.sheetRows):me,De]}function ef(j,E){var D=(function(ee,se){switch(se.type){case"base64":return th(w(ee),se);case"binary":return th(ee,se);case"buffer":return th(x&&Buffer.isBuffer(ee)?ee.toString("binary"):P(ee),se);case"array":return th(tt(ee),se)}throw new Error("Unrecognized type "+se.type)})(j,E),j=D[0],J=D[1],re=cl(j,E);return sr(J).forEach(function(ee){re[ee]=J[ee]}),re}var DA={to_workbook:function(b,E){return yu(ql(b,E),E)},to_sheet:ql,from_sheet:function(b){var E=[],D=Ua(b["!ref"]),j=Array.isArray(b);Do(E,"TABLE",0,1,"sheetjs"),Do(E,"VECTORS",0,D.e.r-D.s.r+1,""),Do(E,"TUPLES",0,D.e.c-D.s.c+1,""),Do(E,"DATA",0,0,"");for(var J=D.s.r;J<=D.e.r;++J){Al(E,-1,0,"BOT");for(var re=D.s.c;re<=D.e.c;++re){var ee,se=ea({r:J,c:re});if(ee=j?(b[J]||[])[re]:b[se])switch(ee.t){case"n":var Ae=ee.w;(Ae=!Ae&&ee.v!=null?ee.v:Ae)==null?ee.f&&!ee.F?Al(E,1,0,"="+ee.f):Al(E,1,0,""):Al(E,0,Ae,"V");break;case"b":Al(E,0,ee.v?1:0,ee.v?"TRUE":"FALSE");break;case"s":Al(E,1,0,isNaN(ee.v)?ee.v:'="'+ee.v+'"');break;case"d":ee.w||(ee.w=yr(ee.z||fe[14],Wr($e(ee.v)))),Al(E,0,ee.w,"V");break;default:Al(E,1,0,"")}else Al(E,1,0,"")}}return Al(E,-1,0,"EOD"),E.join(`\r
`)}};function Eu(b,E){for(var D=b.split(`
`),j=-1,J=-1,re=0,ee=[];re!==D.length;++re)if(D[re].trim()!=="BOT"){if(!(j<0)){for(var se=D[re].trim().split(","),Ae=se[0],me=se[1],_e=D[++re]||"";1&(_e.match(/["]/g)||[]).length&&re<D.length-1;)_e+=`
`+D[++re];switch(_e=_e.trim(),+Ae){case-1:if(_e==="BOT"){ee[++j]=[],J=0;continue}if(_e!=="EOD")throw new Error("Unrecognized DIF special command "+_e);break;case 0:_e==="TRUE"?ee[j][J]=!0:_e==="FALSE"?ee[j][J]=!1:isNaN(kt(me))?isNaN(Dt(me).getDate())?ee[j][J]=me:ee[j][J]=$e(me):ee[j][J]=kt(me),++J;break;case 1:_e=(_e=_e.slice(1,_e.length-1)).replace(/""/g,'"'),_e&&_e.match(/^=".*"$/)&&(_e=_e.slice(2,-1)),ee[j][J++]=_e!==""?_e:null}if(_e==="EOD")break}}else ee[++j]=[],J=0;return ee=E&&E.sheetRows?ee.slice(0,E.sheetRows):ee}function ql(b,E){return cl((function(D,j){switch(j.type){case"base64":return Eu(w(D),j);case"binary":return Eu(D,j);case"buffer":return Eu(x&&Buffer.isBuffer(D)?D.toString("binary"):P(D),j);case"array":return Eu(tt(D),j)}throw new Error("Unrecognized type "+j.type)})(b,E),E)}function Do(b,E,D,j,J){b.push(E),b.push(D+","+j),b.push('"'+J.replace(/"/g,'""')+'"')}function Al(b,E,D,j){b.push(E+","+D),b.push(E==1?'"'+j.replace(/"/g,'""')+'"':j)}var Ac,OA,pc,Xi,rh=(Ac=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),OA=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,pc=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),Xi="--SocialCalcSpreadsheetControlSave--",{to_workbook:function(b,E){return yu(pl(b,E),E)},to_sheet:pl,from_sheet:function(b){return[Ac,OA,pc,OA,(function(E){if(!E||!E["!ref"])return"";for(var D,j,J=[],re=[],ee=Ws(E["!ref"]),se=Array.isArray(E),Ae=ee.s.r;Ae<=ee.e.r;++Ae)for(var me=ee.s.c;me<=ee.e.c;++me)if(j=ea({r:Ae,c:me}),(D=se?(E[Ae]||[])[me]:E[j])&&D.v!=null&&D.t!=="z"){switch(re=["cell",j,"t"],D.t){case"s":case"str":re.push(tf(D.v));break;case"n":D.f?(re[2]="vtf",re[3]="n",re[4]=D.v,re[5]=tf(D.f)):(re[2]="v",re[3]=D.v);break;case"b":re[2]="vt"+(D.f?"f":"c"),re[3]="nl",re[4]=D.v?"1":"0",re[5]=tf(D.f||(D.v?"TRUE":"FALSE"));break;case"d":var _e=Wr($e(D.v));re[2]="vtc",re[3]="nd",re[4]=""+_e,re[5]=D.w||yr(D.z||fe[14],_e);break;case"e":continue}J.push(re.join(":"))}return J.push("sheet:c:"+(ee.e.c-ee.s.c+1)+":r:"+(ee.e.r-ee.s.r+1)+":tvf:1"),J.push("valueformat:1:text-wiki"),J.join(`
`)})(b),Xi].join(`
`)}});function tf(b){return b.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function pl(b,E){return cl((function(D,j){for(var J,re=D.split(`
`),ee=-1,se=0,Ae=[];se!==re.length;++se){var me=re[se].trim().split(":");if(me[0]==="cell"){var _e=ki(me[1]);if(Ae.length<=_e.r)for(ee=Ae.length;ee<=_e.r;++ee)Ae[ee]||(Ae[ee]=[]);switch(ee=_e.r,J=_e.c,me[2]){case"t":Ae[ee][J]=me[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`);break;case"v":Ae[ee][J]=+me[3];break;case"vtf":var Be=me[me.length-1];case"vtc":me[3]==="nl"?Ae[ee][J]=!!+me[4]:Ae[ee][J]=+me[4],me[2]=="vtf"&&(Ae[ee][J]=[Ae[ee][J],Be])}}}return Ae=j&&j.sheetRows?Ae.slice(0,j.sheetRows):Ae})(b,E),E)}var $f,mc,Oo=($f={44:",",9:"	",59:";",124:"|"},mc={44:3,9:2,59:1,124:0},{to_workbook:function(b,E){return yu(bp(b,E),E)},to_sheet:bp,from_sheet:function(b){for(var E=[],D=Ua(b["!ref"]),j=Array.isArray(b),J=D.s.r;J<=D.e.r;++J){for(var re=[],ee=D.s.c;ee<=D.e.c;++ee){var se=ea({r:J,c:ee});if((se=j?(b[J]||[])[ee]:b[se])&&se.v!=null){for(var Ae=(se.w||(Fl(se),se.w)||"").slice(0,10);Ae.length<10;)Ae+=" ";re.push(Ae+(ee===0?" ":""))}else re.push("          ")}E.push(re.join(""))}return E.join(`
`)}});function LA(b,E,D,j,J){J.raw?E[D][j]=b:b===""||(b==="TRUE"?E[D][j]=!0:b==="FALSE"?E[D][j]=!1:isNaN(kt(b))?isNaN(Dt(b).getDate())?E[D][j]=b:E[D][j]=$e(b):E[D][j]=kt(b))}function $s(b){for(var E={},D=!1,j=0,J=0;j<b.length;++j)(J=b.charCodeAt(j))==34?D=!D:!D&&J in $f&&(E[J]=(E[J]||0)+1);for(j in J=[],E)Object.prototype.hasOwnProperty.call(E,j)&&J.push([E[j],j]);if(!J.length)for(j in E=mc)Object.prototype.hasOwnProperty.call(E,j)&&J.push([E[j],j]);return J.sort(function(re,ee){return re[0]-ee[0]||mc[re[1]]-mc[ee[1]]}),$f[J.pop()[1]]||44}function nh(b,j){var D=j||{},j="",J=D.dense?[]:{},re={s:{c:0,r:0},e:{c:0,r:0}};b.slice(0,4)=="sep="?b.charCodeAt(5)==13&&b.charCodeAt(6)==10?(j=b.charAt(4),b=b.slice(7)):b.charCodeAt(5)==13||b.charCodeAt(5)==10?(j=b.charAt(4),b=b.slice(6)):j=$s(b.slice(0,1024)):j=D&&D.FS?D.FS:$s(b.slice(0,1024));var ee=0,se=0,Ae=0,me=0,_e=0,Be=j.charCodeAt(0),De=!1,Le=0,Je=b.charCodeAt(0);b=b.replace(/\r\n/gm,`
`);var He=D.dateNF!=null?(j=(j=typeof(j=D.dateNF)=="number"?fe[j]:j).replace(Tn,"(\\d+)"),new RegExp("^"+j+"$")):null;function ct(){var et,Xe=b.slice(me,_e),lt={};if((Xe=Xe.charAt(0)=='"'&&Xe.charAt(Xe.length-1)=='"'?Xe.slice(1,-1).replace(/""/g,'"'):Xe).length===0?lt.t="z":D.raw||Xe.trim().length===0?(lt.t="s",lt.v=Xe):Xe.charCodeAt(0)==61?Xe.charCodeAt(1)==34&&Xe.charCodeAt(Xe.length-1)==34?(lt.t="s",lt.v=Xe.slice(2,-1).replace(/""/g,'"')):Xe.length!=1?(lt.t="n",lt.f=Xe.slice(1)):(lt.t="s",lt.v=Xe):Xe=="TRUE"?(lt.t="b",lt.v=!0):Xe=="FALSE"?(lt.t="b",lt.v=!1):isNaN(Ae=kt(Xe))?!isNaN(Dt(Xe).getDate())||He&&Xe.match(He)?(lt.z=D.dateNF||fe[14],et=0,He&&Xe.match(He)&&(Xe=(function(At,pt){var jt=-1,rr=-1,Yt=-1,cr=-1,Fr=-1,Dr=-1;(At.match(Tn)||[]).forEach(function(Xr,bn){var dn=parseInt(pt[bn+1],10);switch(Xr.toLowerCase().charAt(0)){case"y":jt=dn;break;case"d":Yt=dn;break;case"h":cr=dn;break;case"s":Dr=dn;break;case"m":0<=cr?Fr=dn:rr=dn}}),0<=Dr&&Fr==-1&&0<=rr&&(Fr=rr,rr=-1);var pr=(""+(0<=jt?jt:new Date().getFullYear())).slice(-4)+"-"+("00"+(1<=rr?rr:1)).slice(-2)+"-"+("00"+(1<=Yt?Yt:1)).slice(-2);return(pr=pr.length==7?"0"+pr:pr).length==8&&(pr="20"+pr),At=("00"+(0<=cr?cr:0)).slice(-2)+":"+("00"+(0<=Fr?Fr:0)).slice(-2)+":"+("00"+(0<=Dr?Dr:0)).slice(-2),cr==-1&&Fr==-1&&Dr==-1?pr:jt==-1&&rr==-1&&Yt==-1?At:pr+"T"+At})(D.dateNF,Xe.match(He)||[]),et=1),D.cellDates?(lt.t="d",lt.v=$e(Xe,et)):(lt.t="n",lt.v=Wr($e(Xe,et))),D.cellText!==!1&&(lt.w=yr(lt.z,lt.v instanceof Date?Wr(lt.v):lt.v)),D.cellNF||delete lt.z):(lt.t="s",lt.v=Xe):(!(lt.t="n")!==D.cellText&&(lt.w=Xe),lt.v=Ae),lt.t=="z"||(D.dense?(J[ee]||(J[ee]=[]),J[ee][se]=lt):J[ea({c:se,r:ee})]=lt),me=_e+1,Je=b.charCodeAt(me),re.e.c<se&&(re.e.c=se),re.e.r<ee&&(re.e.r=ee),Le!=Be)return se=0,++ee,D.sheetRows&&D.sheetRows<=ee?1:void 0;++se}e:for(;_e<b.length;++_e)switch(Le=b.charCodeAt(_e)){case 34:Je===34&&(De=!De);break;case Be:case 10:case 13:if(!De&&ct())break e}return 0<_e-me&&ct(),J["!ref"]=ga(re),J}function _g(b,E){return!E||!E.PRN||E.FS||b.slice(0,4)=="sep="||0<=b.indexOf("	")||0<=b.indexOf(",")||0<=b.indexOf(";")?nh(b,E):cl((function(D,j){var J=j||{},re=[];if(!D||D.length===0)return re;for(var ee=D.split(/[\r\n]/),se=ee.length-1;0<=se&&ee[se].length===0;)--se;for(var Ae=10,me=0,_e=0;_e<=se;++_e)(me=ee[_e].indexOf(" "))==-1?me=ee[_e].length:me++,Ae=Math.max(Ae,me);for(_e=0;_e<=se;++_e){re[_e]=[];var Be=0;for(LA(ee[_e].slice(0,Ae).trim(),re,_e,Be,J),Be=1;Be<=(ee[_e].length-Ae)/10+1;++Be)LA(ee[_e].slice(Ae+10*(Be-1),Ae+10*Be).trim(),re,_e,Be,J)}return re=J.sheetRows?re.slice(0,J.sheetRows):re})(b,E),E)}function bp(b,E){var D="",j=E.type=="string"?[0,0,0,0]:Xg(b,E);switch(E.type){case"base64":D=w(b);break;case"binary":D=b;break;case"buffer":D=E.codepage==65001?b.toString("utf8"):E.codepage&&t!==void 0?t.utils.decode(E.codepage,b):x&&Buffer.isBuffer(b)?b.toString("binary"):P(b);break;case"array":D=tt(b);break;case"string":D=b;break;default:throw new Error("Unrecognized type "+E.type)}return j[0]==239&&j[1]==187&&j[2]==191?D=Xa(D.slice(3)):E.type!="string"&&E.type!="buffer"&&E.codepage==65001?D=Xa(D):E.type=="binary"&&t!==void 0&&E.codepage&&(D=t.utils.decode(E.codepage,t.utils.encode(28591,D))),D.slice(0,19)=="socialcalc:version:"?rh.to_sheet(E.type=="string"?D:Xa(D),E):_g(D,E)}var ah,Kf,PA,rf,eu=(ah={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]},Kf=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""],PA={0:{n:"BOF",f:rs},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(b,E,D){var j={s:{c:0,r:0},e:{c:0,r:0}};return E==8&&D.qpro?(j.s.c=b.read_shift(1),b.l++,j.s.r=b.read_shift(2),j.e.c=b.read_shift(1),b.l++,j.e.r=b.read_shift(2)):(j.s.c=b.read_shift(2),j.s.r=b.read_shift(2),E==12&&D.qpro&&(b.l+=2),j.e.c=b.read_shift(2),j.e.r=b.read_shift(2),E==12&&D.qpro&&(b.l+=2),j.s.c==65535&&(j.s.c=j.e.c=j.s.r=j.e.r=0)),j}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(b,E,D){return(D=Iu(b,0,D))[1].v=b.read_shift(2,"i"),D}},14:{n:"NUMBER",f:function(b,E,D){return(D=Iu(b,0,D))[1].v=b.read_shift(8,"f"),D}},15:{n:"LABEL",f:_p},16:{n:"FORMULA",f:function(b,E,D){var j=b.l+E;return(E=Iu(b,0,D))[1].v=b.read_shift(8,"f"),D.qpro?b.l=j:(j=b.read_shift(2),(function(J,re){es(J,0);for(var ee=[],se=0,Ae="",me="",_e="",Be="";J.l<J.length;){var De=J[J.l++];switch(De){case 0:ee.push(J.read_shift(8,"f"));break;case 1:me=gc(re[0].c,J.read_shift(2),!0),Ae=gc(re[0].r,J.read_shift(2),!1),ee.push(me+Ae);break;case 2:var Le=gc(re[0].c,J.read_shift(2),!0),Je=gc(re[0].r,J.read_shift(2),!1);me=gc(re[0].c,J.read_shift(2),!0),Ae=gc(re[0].r,J.read_shift(2),!1),ee.push(Le+Je+":"+me+Ae);break;case 3:if(J.l<J.length)return console.error("WK1 premature formula end");break;case 4:ee.push("("+ee.pop()+")");break;case 5:ee.push(J.read_shift(2));break;case 6:for(var He="";De=J[J.l++];)He+=String.fromCharCode(De);ee.push('"'+He.replace(/"/g,'""')+'"');break;case 8:ee.push("-"+ee.pop());break;case 23:ee.push("+"+ee.pop());break;case 22:ee.push("NOT("+ee.pop()+")");break;case 20:case 21:Be=ee.pop(),_e=ee.pop(),ee.push(["AND","OR"][De-20]+"("+_e+","+Be+")");break;default:if(De<32&&Kf[De])Be=ee.pop(),_e=ee.pop(),ee.push(_e+Kf[De]+Be);else{if(!ah[De])return De<=7?console.error("WK1 invalid opcode "+De.toString(16)):De<=24?console.error("WK1 unsupported op "+De.toString(16)):De<=30?console.error("WK1 invalid opcode "+De.toString(16)):De<=115?console.error("WK1 unsupported function opcode "+De.toString(16)):console.error("WK1 unrecognized opcode "+De.toString(16));if((se=(se=ah[De][1])==69?J[J.l++]:se)>ee.length)return console.error("WK1 bad formula parse 0x"+De.toString(16)+":|"+ee.join("|")+"|");Je=ee.slice(-se),ee.length-=se,ee.push(ah[De][0]+"("+Je.join(",")+")")}}}ee.length==1?re[1].f=""+ee[0]:console.error("WK1 bad formula parse |"+ee.join("|")+"|")})(b.slice(b.l,b.l+j),E),b.l+=j),E}},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:_p},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:UA},222:{n:"SHEETNAMELP",f:function(b,E){var D=b[b.l++];E-1<D&&(D=E-1);for(var j="";j.length<D;)j+=String.fromCharCode(b[b.l++]);return j}},65535:{n:""}},rf={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(b,E){var D=vc(b);return D[1].t="s",D[1].v=b.read_shift(E-4,"cstr"),D}},23:{n:"NUMBER17",f:RA},24:{n:"NUMBER18",f:function(b,E){var D=vc(b);D[1].v=b.read_shift(2);var j=D[1].v>>1;if(1&D[1].v)switch(7&j){case 0:j=5e3*(j>>3);break;case 1:j=500*(j>>3);break;case 2:j=(j>>3)/20;break;case 3:j=(j>>3)/200;break;case 4:j=(j>>3)/2e3;break;case 5:j=(j>>3)/2e4;break;case 6:j=(j>>3)/16;break;case 7:j=(j>>3)/64}return D[1].v=j,D}},25:{n:"FORMULA19",f:function(b,E){var D=RA(b);return b.l+=E-14,D}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(b,E){for(var D={},j=b.l+E;b.l<j;){var J=b.read_shift(2);if(J==14e3){for(D[J]=[0,""],D[J][0]=b.read_shift(2);b[b.l];)D[J][1]+=String.fromCharCode(b[b.l]),b.l++;b.l++}}return D}},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(j,E){var D=vc(j),j=j.read_shift(4);return D[1].v=j>>6,D}},38:{n:"??"},39:{n:"NUMBER27",f:xp},40:{n:"FORMULA28",f:function(b,E){var D=xp(b);return b.l+=E-10,D}},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:UA},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(b,E,D){if(D.qpro&&!(E<21))return D=b.read_shift(1),b.l+=17,b.l+=1,b.l+=2,[D,b.read_shift(E-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:""}},{sheet_to_wk1:function(b,E){var D=E||{};if(0<=+D.codepage&&g(+D.codepage),D.type=="string")throw new Error("Cannot write WK1 to JS string");var j=oo(),J=Ua(b["!ref"]),re=Array.isArray(b),ee=[];un(j,0,(E=1030,(D=Cr(2)).write_shift(2,E),D)),un(j,6,(E=J,(D=Cr(8)).write_shift(2,E.s.c),D.write_shift(2,E.s.r),D.write_shift(2,E.e.c),D.write_shift(2,E.e.r),D));for(var se,Ae,me,_e,Be=Math.min(J.e.r,8191),De=J.s.r;De<=Be;++De)for(var Le=ji(De),Je=J.s.c;Je<=J.e.c;++Je){De===J.s.r&&(ee[Je]=Oa(Je));var He=ee[Je]+Le,He=re?(b[De]||[])[Je]:b[He];He&&He.t!="z"&&(He.t=="n"?(0|He.v)==He.v&&-32768<=He.v&&He.v<=32767?un(j,13,(se=De,Ae=Je,me=He.v,_e=void 0,(_e=Cr(7)).write_shift(1,255),_e.write_shift(2,Ae),_e.write_shift(2,se),_e.write_shift(2,me,"i"),_e)):un(j,14,(Ae=De,se=Je,me=He.v,_e=void 0,(_e=Cr(13)).write_shift(1,255),_e.write_shift(2,se),_e.write_shift(2,Ae),_e.write_shift(8,me,"f"),_e)):un(j,15,(function(ct,et,Xe){var lt=Cr(7+Xe.length);lt.write_shift(1,255),lt.write_shift(2,et),lt.write_shift(2,ct),lt.write_shift(1,39);for(var At=0;At<lt.length;++At){var pt=Xe.charCodeAt(At);lt.write_shift(1,128<=pt?95:pt)}return lt.write_shift(1,0),lt})(De,Je,Fl(He).slice(0,239))))}return un(j,1),j.end()},book_to_wk3:function(b,E){if(0<=+(E=E||{}).codepage&&g(+E.codepage),E.type=="string")throw new Error("Cannot write WK3 to JS string");var D=oo();un(D,0,(function(He){var ct=Cr(26);ct.write_shift(2,4096),ct.write_shift(2,4),ct.write_shift(4,0);for(var et=0,Xe=0,lt=0,At=0;At<He.SheetNames.length;++At){var pt=He.SheetNames[At],pt=He.Sheets[pt];pt&&pt["!ref"]&&(++lt,pt=Ws(pt["!ref"]),et<pt.e.r&&(et=pt.e.r),Xe<pt.e.c&&(Xe=pt.e.c))}return 8191<et&&(et=8191),ct.write_shift(2,et),ct.write_shift(1,lt),ct.write_shift(1,Xe),ct.write_shift(2,0),ct.write_shift(2,0),ct.write_shift(1,1),ct.write_shift(1,2),ct.write_shift(4,0),ct.write_shift(4,0),ct})(b));for(var j=0,J=0;j<b.SheetNames.length;++j)(b.Sheets[b.SheetNames[j]]||{})["!ref"]&&un(D,27,(function(He,ct){var et=Cr(5+He.length);et.write_shift(2,14e3),et.write_shift(2,ct);for(var Xe=0;Xe<He.length;++Xe){var lt=He.charCodeAt(Xe);et[et.l++]=127<lt?95:lt}return et[et.l++]=0,et})(b.SheetNames[j],J++));for(var re=0,j=0;j<b.SheetNames.length;++j){var ee=b.Sheets[b.SheetNames[j]];if(ee&&ee["!ref"]){for(var se=Ua(ee["!ref"]),Ae=Array.isArray(ee),me=[],_e=Math.min(se.e.r,8191),Be=se.s.r;Be<=_e;++Be)for(var De=ji(Be),Le=se.s.c;Le<=se.e.c;++Le){Be===se.s.r&&(me[Le]=Oa(Le));var Je=me[Le]+De,Je=Ae?(ee[Be]||[])[Le]:ee[Je];Je&&Je.t!="z"&&(Je.t=="n"?un(D,23,(function(jt,Yt,rr,lt){var At=Cr(14);if(At.write_shift(2,jt),At.write_shift(1,rr),At.write_shift(1,Yt),lt==0)return At.write_shift(4,0),At.write_shift(4,0),At.write_shift(2,65535),At;var pt=0,jt=0,rr=0,Yt=0;return lt<0&&(pt=1,lt=-lt),jt=0|Math.log2(lt),lt/=Math.pow(2,jt-31),(2147483648&(Yt=lt>>>0))==0&&(++jt,Yt=(lt/=2)>>>0),lt-=Yt,Yt|=2147483648,Yt>>>=0,lt*=Math.pow(2,32),rr=lt>>>0,At.write_shift(4,rr),At.write_shift(4,Yt),jt+=16383+(pt?32768:0),At.write_shift(2,jt),At})(Be,Le,re,Je.v)):un(D,22,(function(ct,et,Xe,lt){var At=Cr(6+lt.length);At.write_shift(2,ct),At.write_shift(1,Xe),At.write_shift(1,et),At.write_shift(1,39);for(var pt=0;pt<lt.length;++pt){var jt=lt.charCodeAt(pt);At.write_shift(1,128<=jt?95:jt)}return At.write_shift(1,0),At})(Be,Le,re,Fl(Je).slice(0,239))))}++re}}return un(D,1),D.end()},to_workbook:function(b,E){switch(E.type){case"base64":return ih(S(w(b)),E);case"binary":return ih(S(b),E);case"buffer":case"array":return ih(b,E)}throw"Unsupported type "+E.type}});function wp(b,E,D){if(b){es(b,b.l||0);for(var j=D.Enum||PA;b.l<b.length;){var J=b.read_shift(2),re=j[J]||j[65535],se=b.read_shift(2),ee=b.l+se,se=re.f&&re.f(b,se,D);if(b.l=ee,E(se,re,J))return}}}function ih(b,E){if(!b)return b;var D=E||{},j=D.dense?[]:{},J="Sheet1",re="",ee=0,se={},Ae=[],me=[],_e={s:{r:0,c:0},e:{r:0,c:0}},Be=D.sheetRows||0;if(b[2]==0&&(b[3]==8||b[3]==9)&&16<=b.length&&b[14]==5&&b[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(b[2]==2)D.Enum=PA,wp(b,function(He,ct,et){switch(et){case 0:4096<=(D.vers=He)&&(D.qpro=!0);break;case 6:_e=He;break;case 204:He&&(re=He);break;case 222:re=He;break;case 15:case 51:D.qpro||(He[1].v=He[1].v.slice(1));case 13:case 14:case 16:et==14&&(112&He[2])==112&&1<(15&He[2])&&(15&He[2])<15&&(He[1].z=D.dateNF||fe[14],D.cellDates&&(He[1].t="d",He[1].v=ze(He[1].v))),D.qpro&&He[3]>ee&&(j["!ref"]=ga(_e),se[J]=j,Ae.push(J),j=D.dense?[]:{},_e={s:{r:0,c:0},e:{r:0,c:0}},ee=He[3],J=re||"Sheet"+(ee+1),re="");var Xe=D.dense?(j[He[0].r]||[])[He[0].c]:j[ea(He[0])];if(Xe){Xe.t=He[1].t,Xe.v=He[1].v,He[1].z!=null&&(Xe.z=He[1].z),He[1].f!=null&&(Xe.f=He[1].f);break}D.dense?(j[He[0].r]||(j[He[0].r]=[]),j[He[0].r][He[0].c]=He[1]):j[ea(He[0])]=He[1]}},D);else{if(b[2]!=26&&b[2]!=14)throw new Error("Unrecognized LOTUS BOF "+b[2]);D.Enum=rf,b[2]==14&&(D.qpro=!0,b.l=0),wp(b,function(He,ct,et){switch(et){case 204:J=He;break;case 22:He[1].v=He[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(He[3]>ee&&(j["!ref"]=ga(_e),se[J]=j,Ae.push(J),j=D.dense?[]:{},_e={s:{r:0,c:0},e:{r:0,c:0}},ee=He[3],J="Sheet"+(ee+1)),0<Be&&He[0].r>=Be)break;D.dense?(j[He[0].r]||(j[He[0].r]=[]),j[He[0].r][He[0].c]=He[1]):j[ea(He[0])]=He[1],_e.e.c<He[0].c&&(_e.e.c=He[0].c),_e.e.r<He[0].r&&(_e.e.r=He[0].r);break;case 27:He[14e3]&&(me[He[14e3][0]]=He[14e3][1]);break;case 1537:me[He[0]]=He[1],He[0]==ee&&(J=He[1])}},D)}if(j["!ref"]=ga(_e),se[re||J]=j,Ae.push(re||J),!me.length)return{SheetNames:Ae,Sheets:se};for(var De={},Le=[],Je=0;Je<me.length;++Je)se[Ae[Je]]?(Le.push(me[Je]||Ae[Je]),De[me[Je]]=se[me[Je]]||se[Ae[Je]]):(Le.push(me[Je]),De[me[Je]]={"!ref":"A1"});return{SheetNames:Le,Sheets:De}}function Iu(b,E,D){var j=[{c:0,r:0},{t:"n",v:0},0,0];return D.qpro&&D.vers!=20768?(j[0].c=b.read_shift(1),j[3]=b.read_shift(1),j[0].r=b.read_shift(2),b.l+=2):(j[2]=b.read_shift(1),j[0].c=b.read_shift(2),j[0].r=b.read_shift(2)),j}function _p(b,J,D){var j=b.l+J,J=Iu(b,0,D);return J[1].t="s",D.vers!=20768?(D.qpro&&b.l++,J[1].v=b.read_shift(j-b.l,"cstr"),J):(b.l++,j=b.read_shift(1),J[1].v=b.read_shift(j,"utf8"),J)}function gc(b,E,D){var j=32768&E;return(j?"":"$")+(D?Oa:ji)(E=(j?b:0)+(8192<=(E&=-32769)?E-16384:E))}function vc(b){var E=[{c:0,r:0},{t:"n",v:0},0];return E[0].r=b.read_shift(2),E[3]=b[b.l++],E[0].c=b[b.l++],E}function RA(re,E){var D=vc(re),j=re.read_shift(4),J=re.read_shift(4);if((ee=re.read_shift(2))==65535)return j===0&&J===3221225472?(D[1].t="e",D[1].v=15):j===0&&J===3489660928?(D[1].t="e",D[1].v=42):D[1].v=0,D;var re=32768&ee,ee=(32767&ee)-16446;return D[1].v=(1-2*re)*(J*Math.pow(2,32+ee)+j*Math.pow(2,ee)),D}function xp(j,E){var D=vc(j),j=j.read_shift(8,"f");return D[1].v=j,D}function UA(b,E){return b[b.l+E-1]==0?b.read_shift(E,"cstr"):""}var Cp,NA,sh,oh,lh=(Cp=ul("t"),NA=ul("rPr"),sh=/<(?:\w+:)?r>/g,oh=/<\/(?:\w+:)?r>/,function(b){return b.replace(sh,"").split(oh).map(uh).filter(function(E){return E.v})});function uh(b){var E=b.match(Cp);return E?(E={t:"s",v:ba(E[1])},b=b.match(NA),b&&(E.s=(function(D){var j={},J=D.match(lr),re=0,ee=!1;if(J)for(;re!=J.length;++re){var se=vn(J[re]);switch(se[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!se.val)break;case"<shadow>":case"<shadow/>":j.shadow=1;break;case"</shadow>":break;case"<charset":if(se.val=="1")break;j.cp=o[parseInt(se.val,10)];break;case"<outline":if(!se.val)break;case"<outline>":case"<outline/>":j.outline=1;break;case"</outline>":break;case"<rFont":j.name=se.val;break;case"<sz":j.sz=se.val;break;case"<strike":if(!se.val)break;case"<strike>":case"<strike/>":j.strike=1;break;case"</strike>":break;case"<u":if(!se.val)break;switch(se.val){case"double":j.uval="double";break;case"singleAccounting":j.uval="single-accounting";break;case"doubleAccounting":j.uval="double-accounting"}case"<u>":case"<u/>":j.u=1;break;case"</u>":break;case"<b":if(se.val=="0")break;case"<b>":case"<b/>":j.b=1;break;case"</b>":break;case"<i":if(se.val=="0")break;case"<i>":case"<i/>":j.i=1;break;case"</i>":break;case"<color":se.rgb&&(j.color=se.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":j.family=se.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":j.valign=se.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":ee=!0;break;case"</ext>":ee=!1;break;default:if(se[0].charCodeAt(1)!==47&&!ee)throw new Error("Unrecognized rich format "+se[0])}}return j})(b[1])),E):{t:"s",v:""}}var Yf,Xf=(Yf=/(\r\n|\n)/g,function(b){return b.map(Zf).join("")});function Zf(b){var E,D,j,J=[[],b.v,[]];return b.v?(b.s&&(E=b.s,D=J[0],j=J[2],b=[],E.u&&b.push("text-decoration: underline;"),E.uval&&b.push("text-underline-style:"+E.uval+";"),E.sz&&b.push("font-size:"+E.sz+"pt;"),E.outline&&b.push("text-effect: outline;"),E.shadow&&b.push("text-shadow: auto;"),D.push('<span style="'+b.join("")+'">'),E.b&&(D.push("<b>"),j.push("</b>")),E.i&&(D.push("<i>"),j.push("</i>")),E.strike&&(D.push("<s>"),j.push("</s>")),(b=E.valign||"")=="superscript"||b=="super"?b="sup":b=="subscript"&&(b="sub"),b!=""&&(D.push("<"+b+">"),j.push("</"+b+">")),j.push("</span>")),J[0].join("")+J[1].replace(Yf,"<br/>")+J[2].join("")):""}var xg=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Sp=/<(?:\w+:)?r>/,kp=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function ch(b,j){var D=!j||j.cellHTML,j={};return b?(b.match(/^\s*<(?:\w+:)?t[^>]*>/)?(j.t=ba(Xa(b.slice(b.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),j.r=Xa(b),D&&(j.h=Ki(j.t))):b.match(Sp)&&(j.r=Xa(b),j.t=ba(Xa((b.replace(kp,"").match(xg)||[]).join("").replace(lr,""))),D&&(j.h=Xf(lh(j.r)))),j):{t:""}}var jA=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Cg=/<(?:\w+:)?(?:si|sstItem)>/g,HA=/<\/(?:\w+:)?(?:si|sstItem)>/,Tp=/^\s|\s$|[\t\n\r]/;function fh(b,E){if(!E.bookSST)return"";var D=[Rr];D[D.length]=on("sst",null,{xmlns:ac[0],count:b.Count,uniqueCount:b.Unique});for(var j,J,re=0;re!=b.length;++re)b[re]!=null&&(J="<si>",(j=b[re]).r?J+=j.r:(J+="<t",j.t||(j.t=""),j.t.match(Tp)&&(J+=' xml:space="preserve"'),J+=">"+Ba(j.t)+"</t>"),J+="</si>",D[D.length]=J);return 2<D.length&&(D[D.length]="</sst>",D[1]=D[1].replace("/>",">")),D.join("")}var Ep=function(b,E){var D=!1;return E==null&&(D=!0,E=Cr(15+4*b.t.length)),E.write_shift(1,0),ts(b.t,E),D?E.slice(0,E.l):E};function dh(b){var E,D,j=oo();Nr(j,159,(E=b,(D=D||Cr(8)).write_shift(4,E.Count),D.write_shift(4,E.Unique),D));for(var J=0;J<b.length;++J)Nr(j,19,Ep(b[J]));return Nr(j,160),j.end()}function Sa(b){if(t!==void 0)return t.utils.encode(u,b);for(var E=[],D=b.split(""),j=0;j<D.length;++j)E[j]=D[j].charCodeAt(0);return E}function Ks(b,E){var D={};return D.Major=b.read_shift(2),D.Minor=b.read_shift(2),4<=E&&(b.l+=E-4),D}function Sg(b){var E=[];b.l+=4;for(var D=b.read_shift(4);0<D--;)E.push((function(j){for(var re=j.read_shift(4),J=j.l+re-4,re={},ee=j.read_shift(4),se=[];0<ee--;)se.push({t:j.read_shift(4),v:j.read_shift(0,"lpp4")});if(re.name=j.read_shift(0,"lpp4"),re.comps=se,j.l!=J)throw new Error("Bad DataSpaceMapEntry: "+j.l+" != "+J);return re})(b));return E}function Jf(b){var E,D,D=(D={},(E=b).read_shift(4),E.l+=4,D.id=E.read_shift(0,"lpp4"),D.name=E.read_shift(0,"lpp4"),D.R=Ks(E,4),D.U=Ks(E,4),D.W=Ks(E,4),D);if(D.ename=b.read_shift(0,"8lpp4"),D.blksz=b.read_shift(4),D.cmode=b.read_shift(4),b.read_shift(4)!=4)throw new Error("Bad !Primary record");return D}function QA(b,D){var D=b.l+D,j={};j.Flags=63&b.read_shift(4),b.l+=4,j.AlgID=b.read_shift(4);var J=!1;switch(j.AlgID){case 26126:case 26127:case 26128:J=j.Flags==36;break;case 26625:J=j.Flags==4;break;case 0:J=j.Flags==16||j.Flags==4||j.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+j.AlgID}if(!J)throw new Error("Encryption Flags/AlgID mismatch");return j.AlgIDHash=b.read_shift(4),j.KeySize=b.read_shift(4),j.ProviderType=b.read_shift(4),b.l+=8,j.CSPName=b.read_shift(D-b.l>>1,"utf16le"),b.l=D,j}function Ip(b,j){var D={},j=b.l+j;return b.l+=4,D.Salt=b.slice(b.l,b.l+16),b.l+=16,D.Verifier=b.slice(b.l,b.l+16),b.l+=16,b.read_shift(4),D.VerifierHash=b.slice(b.l,j),b.l=j,D}function kg(b){var E=Ks(b);switch(E.Minor){case 2:return[E.Minor,(function(J){if((63&J.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var j=J.read_shift(4),j=QA(J,j),J=Ip(J,J.length-J.l);return{t:"Std",h:j,v:J}})(b)];case 3:return[E.Minor,(function(){throw new Error("File is password-protected: ECMA-376 Extensible")})()];case 4:return[E.Minor,(function(J){var j=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];J.l+=4;var J=J.read_shift(J.length-J.l,"utf8"),re={};return J.replace(lr,function(ee){var se=vn(ee);switch(ri(se[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":j.forEach(function(Ae){re[Ae]=se[Ae]});break;case"<dataIntegrity":re.encryptedHmacKey=se.encryptedHmacKey,re.encryptedHmacValue=se.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":re.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":re.uri=se.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":re.encs.push(se);break;default:throw se[0]}}),re})(b)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+E.Minor)}function bo(b){var E,D=0,j=Sa(b),J=j.length+1,re=k(J);for(re[0]=j.length,E=1;E!=J;++E)re[E]=j[E-1];for(E=J-1;0<=E;--E)D=(((16384&D)==0?0:1)|D<<1&32767)^re[E];return 52811^D}var zA,qf,hh,VA=(zA=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],qf=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],hh=[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],function(b){for(var E,D,j=Sa(b),J=(function(Ae){for(var me=qf[Ae.length-1],_e=104,Be=Ae.length-1;0<=Be;--Be)for(var De=Ae[Be],Le=0;Le!=7;++Le)64&De&&(me^=hh[_e]),De*=2,--_e;return me})(j),re=j.length,ee=k(16),se=0;se!=16;++se)ee[se]=0;for((1&re)==1&&(E=J>>8,ee[re]=yc(zA[0],E),--re,E=255&J,b=j[j.length-1],ee[re]=yc(b,E));0<re;)E=J>>8,ee[--re]=yc(j[re],E),E=255&J,ee[--re]=yc(j[re],E);for(D=(re=15)-j.length;0<D;)E=J>>8,ee[re]=yc(zA[D],E),--D,E=255&J,ee[--re]=yc(j[re],E),--re,--D;return ee});function yc(b,E){return 255&((E=b^E)/2|128*E)}var Lo=function(b){var E=0,D=VA(b);return function(j){return j=(function(J,re,ee,se,Ae){var me,_e;for(Ae=Ae||re,se=se||VA(J),me=0;me!=re.length;++me)_e=re[me],_e=255&((_e^=se[ee])>>5|_e<<3),Ae[me]=_e,++ee;return[Ae,ee,se]})("",j,E,D),E=j[1],j[0]}};function Bu(b,E,D){return D=D||{},D.Info=b.read_shift(2),b.l-=2,D.Info===1?D.Data=(function(j){var J={},re=J.EncryptionVersionInfo=Ks(j,4);if(re.Major!=1||re.Minor!=1)throw"unrecognized version code "+re.Major+" : "+re.Minor;return J.Salt=j.read_shift(16),J.EncryptedVerifier=j.read_shift(16),J.EncryptedVerifierHash=j.read_shift(16),J})(b):D.Data=(function(j,J){var re={},ee=re.EncryptionVersionInfo=Ks(j,4);if(J-=4,ee.Minor!=2)throw new Error("unrecognized minor version code: "+ee.Minor);if(4<ee.Major||ee.Major<2)throw new Error("unrecognized major version code: "+ee.Major);return re.Flags=j.read_shift(4),J-=4,ee=j.read_shift(4),J-=4,re.EncryptionHeader=QA(j,ee),J-=ee,re.EncryptionVerifier=Ip(j,J),re})(b,E),D}var Ah={to_workbook:function(b,E){return yu(WA(b,E),E)},to_sheet:WA,from_sheet:function(b){for(var E=["{\\rtf1\\ansi"],D=Ua(b["!ref"]),j=Array.isArray(b),J=D.s.r;J<=D.e.r;++J){E.push("\\trowd\\trautofit1");for(var re=D.s.c;re<=D.e.c;++re)E.push("\\cellx"+(re+1));for(E.push("\\pard\\intbl"),re=D.s.c;re<=D.e.c;++re){var ee=ea({r:J,c:re});(ee=j?(b[J]||[])[re]:b[ee])&&(ee.v!=null||ee.f&&!ee.F)&&(E.push(" "+(ee.w||(Fl(ee),ee.w))),E.push("\\cell"))}E.push("\\pard\\intbl\\row")}return E.join("")+"}"}};function WA(b,E){switch(E.type){case"base64":return bc(w(b),E);case"binary":return bc(b,E);case"buffer":return bc(x&&Buffer.isBuffer(b)?b.toString("binary"):P(b),E);case"array":return bc(tt(b),E)}throw new Error("Unrecognized type "+E.type)}function bc(j,E){var D=(E||{}).dense?[]:{},j=j.match(/\\trowd.*?\\row\b/g);if(!j.length)throw new Error("RTF missing table");var J={s:{c:0,r:0},e:{c:0,r:j.length-1}};return j.forEach(function(re,ee){Array.isArray(D)&&(D[ee]=[]);for(var se,Ae=/\\\w+\b/g,me=0,_e=-1;se=Ae.exec(re);)se[0]==="\\cell"&&(++_e,(se=(se=re.slice(me,Ae.lastIndex-se[0].length))[0]==" "?se.slice(1):se).length&&(se={v:se,t:"s"},Array.isArray(D)?D[ee][_e]=se:D[ea({r:ee,c:_e})]=se)),me=Ae.lastIndex;_e>J.e.c&&(J.e.c=_e)}),D["!ref"]=ga(J),D}function nf(b){for(var E=0,D=1;E!=3;++E)D=256*D+(255<b[E]?255:b[E]<0?0:b[E]);return D.toString(16).toUpperCase().slice(1)}function af(b,E){return E===0?b:(b=(function(_e){var j=_e[0]/255,J=_e[1]/255,re=_e[2]/255,ee=Math.max(j,J,re),se=Math.min(j,J,re),Ae=ee-se;if(Ae==0)return[0,0,j];var me=0,_e=0,_e=Ae/(1<(se=ee+se)?2-se:se);switch(ee){case j:me=((J-re)/Ae+6)%6;break;case J:me=(re-j)/Ae+2;break;case re:me=(j-J)/Ae+4}return[me/6,_e,se/2]})((b=(b=b).slice(b[0]==="#"?1:0).slice(0,6),[parseInt(b.slice(0,2),16),parseInt(b.slice(2,4),16),parseInt(b.slice(4,6),16)])),b[2]=E<0?b[2]*(1+E):1-(1-b[2])*(1-E),nf((function(ee){var j,J=ee[0],re=ee[1],ee=ee[2],se=2*re*(ee<.5?ee:1-ee),Ae=[ee=ee-se/2,ee,ee],me=6*J;if(re!==0)switch(0|me){case 0:case 6:j=se*me,Ae[0]+=se,Ae[1]+=j;break;case 1:j=se*(2-me),Ae[0]+=j,Ae[1]+=se;break;case 2:j=se*(me-2),Ae[1]+=se,Ae[2]+=j;break;case 3:j=se*(4-me),Ae[1]+=j,Ae[2]+=se;break;case 4:j=se*(me-4),Ae[2]+=se,Ae[0]+=j;break;case 5:j=se*(6-me),Ae[2]+=j,Ae[0]+=se}for(var _e=0;_e!=3;++_e)Ae[_e]=Math.round(255*Ae[_e]);return Ae})(b)))}var GA=6,$A=15,KA=1,Oi=GA;function ed(b){return Math.floor((b+Math.round(128/Oi)/256)*Oi)}function Yo(b){return Math.floor((b-5)/Oi*100+.5)/100}function td(b){return Math.round((b*Oi+5)/Oi*256)/256}function ph(b){return td(Yo(ed(b)))}function rd(b){var E=Math.abs(b-ph(b)),D=Oi;if(.005<E)for(Oi=KA;Oi<$A;++Oi)Math.abs(b-ph(b))<=E&&(E=Math.abs(b-ph(b)),D=Oi);Oi=D}function Fu(b){b.width?(b.wpx=ed(b.width),b.wch=Yo(b.wpx),b.MDW=Oi):b.wpx?(b.wch=Yo(b.wpx),b.width=td(b.wch),b.MDW=Oi):typeof b.wch=="number"&&(b.width=td(b.wch),b.wpx=ed(b.width),b.MDW=Oi),b.customWidth&&delete b.customWidth}var YA=96;function sf(b){return 96*b/YA}function wc(b){return b*YA/96}var mh={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"},of=["numFmtId","fillId","fontId","borderId","xfId"],nd=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],XA,lo,ml,Bp,Fp,Mu,lf=(XA=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,lo=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,ml=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,Bp=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,Fp=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/,function(b,E,D){var j,J,re,ee,se,Ae={};return b&&((j=(b=b.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(XA))&&(function(me,_e,Be){_e.NumberFmt=[];for(var De=sr(fe),Le=0;Le<De.length;++Le)_e.NumberFmt[De[Le]]=fe[De[Le]];var Je=me[0].match(lr);if(Je)for(Le=0;Le<Je.length;++Le){var He=vn(Je[Le]);switch(ri(He[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":var ct=ba(Xa(He.formatCode)),et=parseInt(He.numFmtId,10);if(_e.NumberFmt[et]=ct,0<et){if(392<et){for(et=392;60<et&&_e.NumberFmt[et]!=null;--et);_e.NumberFmt[et]=ct}vr(ct,et)}break;case"</numFmt>":break;default:if(Be.WTF)throw new Error("unrecognized "+He[0]+" in numFmts")}}})(j,Ae,D),(j=b.match(Bp))&&(function(me,_e,Be,De){_e.Fonts=[];var Le={},Je=!1;(me[0].match(lr)||[]).forEach(function(He){var ct,et=vn(He);switch(ri(et[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":_e.Fonts.push(Le),Le={};break;case"<name":et.val&&(Le.name=Xa(et.val));break;case"<name/>":case"</name>":break;case"<b":Le.bold=et.val?si(et.val):1;break;case"<b/>":Le.bold=1;break;case"<i":Le.italic=et.val?si(et.val):1;break;case"<i/>":Le.italic=1;break;case"<u":switch(et.val){case"none":Le.underline=0;break;case"single":Le.underline=1;break;case"double":Le.underline=2;break;case"singleAccounting":Le.underline=33;break;case"doubleAccounting":Le.underline=34}break;case"<u/>":Le.underline=1;break;case"<strike":Le.strike=et.val?si(et.val):1;break;case"<strike/>":Le.strike=1;break;case"<outline":Le.outline=et.val?si(et.val):1;break;case"<outline/>":Le.outline=1;break;case"<shadow":Le.shadow=et.val?si(et.val):1;break;case"<shadow/>":Le.shadow=1;break;case"<condense":Le.condense=et.val?si(et.val):1;break;case"<condense/>":Le.condense=1;break;case"<extend":Le.extend=et.val?si(et.val):1;break;case"<extend/>":Le.extend=1;break;case"<sz":et.val&&(Le.sz=+et.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":et.val&&(Le.vertAlign=et.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":et.val&&(Le.family=parseInt(et.val,10));break;case"<family/>":case"</family>":break;case"<scheme":et.val&&(Le.scheme=et.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(et.val=="1")break;et.codepage=o[parseInt(et.val,10)];break;case"<color":Le.color||(Le.color={}),et.auto&&(Le.color.auto=si(et.auto)),et.rgb?Le.color.rgb=et.rgb.slice(-6):et.indexed?(Le.color.index=parseInt(et.indexed,10),ct=jf[Le.color.index],ct=(ct=Le.color.index==81?jf[1]:ct)||jf[1],Le.color.rgb=ct[0].toString(16)+ct[1].toString(16)+ct[2].toString(16)):et.theme&&(Le.color.theme=parseInt(et.theme,10),et.tint&&(Le.color.tint=parseFloat(et.tint)),et.theme&&Be.themeElements&&Be.themeElements.clrScheme&&(Le.color.rgb=af(Be.themeElements.clrScheme[Le.color.theme].rgb,Le.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":Je=!0;break;case"</AlternateContent>":Je=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":Je=!0;break;case"</ext>":Je=!1;break;default:if(De&&De.WTF&&!Je)throw new Error("unrecognized "+et[0]+" in fonts")}})})(j,Ae,E,D),(j=b.match(ml))&&(function(me,_e,Be){_e.Fills=[];var De={},Le=!1;(me[0].match(lr)||[]).forEach(function(Je){var He=vn(Je);switch(ri(He[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":De={},_e.Fills.push(De);break;case"</fill>":case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":_e.Fills.push(De),De={};break;case"<patternFill":case"<patternFill>":He.patternType&&(De.patternType=He.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":De.bgColor||(De.bgColor={}),He.indexed&&(De.bgColor.indexed=parseInt(He.indexed,10)),He.theme&&(De.bgColor.theme=parseInt(He.theme,10)),He.tint&&(De.bgColor.tint=parseFloat(He.tint)),He.rgb&&(De.bgColor.rgb=He.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":De.fgColor||(De.fgColor={}),He.theme&&(De.fgColor.theme=parseInt(He.theme,10)),He.tint&&(De.fgColor.tint=parseFloat(He.tint)),He.rgb!=null&&(De.fgColor.rgb=He.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":case"</stop>":break;case"<color":case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":Le=!0;break;case"</ext>":Le=!1;break;default:if(Be&&Be.WTF&&!Le)throw new Error("unrecognized "+He[0]+" in fills")}})})(j,Ae,D),(j=b.match(Fp))&&(function(me,_e,Be){_e.Borders=[];var De={},Le=!1;(me[0].match(lr)||[]).forEach(function(Je){var He=vn(Je);switch(ri(He[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":De={},He.diagonalUp&&(De.diagonalUp=si(He.diagonalUp)),He.diagonalDown&&(De.diagonalDown=si(He.diagonalDown)),_e.Borders.push(De);break;case"</border>":case"<left/>":break;case"<left":case"<left>":case"</left>":case"<right/>":break;case"<right":case"<right>":case"</right>":case"<top/>":break;case"<top":case"<top>":case"</top>":case"<bottom/>":break;case"<bottom":case"<bottom>":case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":break;case"<start":case"<start>":case"<start/>":case"</start>":break;case"<end":case"<end>":case"<end/>":case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":Le=!0;break;case"</ext>":Le=!1;break;default:if(Be&&Be.WTF&&!Le)throw new Error("unrecognized "+He[0]+" in borders")}})})(j,Ae,D),(j=b.match(lo))&&(j=j,re=D,se=!((J=Ae).CellXf=[]),(j[0].match(lr)||[]).forEach(function(me){var _e=vn(me),Be=0;switch(ri(_e[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(delete(ee=_e)[0],Be=0;Be<of.length;++Be)ee[of[Be]]&&(ee[of[Be]]=parseInt(ee[of[Be]],10));for(Be=0;Be<nd.length;++Be)ee[nd[Be]]&&(ee[nd[Be]]=si(ee[nd[Be]]));if(J.NumberFmt&&392<ee.numFmtId){for(Be=392;60<Be;--Be)if(J.NumberFmt[ee.numFmtId]==J.NumberFmt[Be]){ee.numFmtId=Be;break}}J.CellXf.push(ee);break;case"</xf>":break;case"<alignment":case"<alignment/>":var De={};_e.vertical&&(De.vertical=_e.vertical),_e.horizontal&&(De.horizontal=_e.horizontal),_e.textRotation!=null&&(De.textRotation=_e.textRotation),_e.indent&&(De.indent=_e.indent),_e.wrapText&&(De.wrapText=si(_e.wrapText)),ee.alignment=De;break;case"</alignment>":case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":se=!0;break;case"</AlternateContent>":se=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":se=!0;break;case"</ext>":se=!1;break;default:if(re&&re.WTF&&!se)throw new Error("unrecognized "+_e[0]+" in cellXfs")}}))),Ae});function ZA(b,E){if(Mu!==void 0)return Mu.toXml();var D,j,J,re,ee=[Rr,on("styleSheet",null,{xmlns:ac[0],"xmlns:vt":us.vt})];return b.SSF&&(j=b.SSF,J=["<numFmts>"],[[5,8],[23,26],[41,44],[50,392]].forEach(function(se){for(var Ae=se[0];Ae<=se[1];++Ae)j[Ae]!=null&&(J[J.length]=on("numFmt",null,{numFmtId:Ae,formatCode:Ba(j[Ae])}))}),(D=J.length===1?"":(J[J.length]="</numFmts>",J[0]=on("numFmts",null,{count:J.length-2}).replace("/>",">"),J.join("")))!=null)&&(ee[ee.length]=D),ee[ee.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',ee[ee.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',ee[ee.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',ee[ee.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',E=E.cellXfs,(re=[])[re.length]="<cellXfs/>",E.forEach(function(se){re[re.length]=on("xf",null,se)}),re[re.length]="</cellXfs>",(D=re.length===2?"":(re[0]=on("cellXfs",null,{count:re.length-2}).replace("/>",">"),re.join("")))&&(ee[ee.length]=D),ee[ee.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',ee[ee.length]='<dxfs count="0"/>',ee[ee.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',2<ee.length&&(ee[ee.length]="</styleSheet>",ee[1]=ee[1].replace("/>",">")),ee.join("")}function Mp(b,E){var D;(E=E||Cr(153)).write_shift(2,20*b.sz),D=b,j=(j=E)||Cr(2),D=(D.italic?2:0)|(D.strike?8:0)|(D.outline?16:0)|(D.shadow?32:0)|(D.condense?64:0)|(D.extend?128:0),j.write_shift(1,D),j.write_shift(1,0),E.write_shift(2,b.bold?700:400);var j=0;return b.vertAlign=="superscript"?j=1:b.vertAlign=="subscript"&&(j=2),E.write_shift(2,j),E.write_shift(1,b.underline||0),E.write_shift(1,b.family||0),E.write_shift(1,b.charset||0),E.write_shift(1,0),Hi(b.color,E),j=0,b.scheme=="major"&&(j=1),b.scheme=="minor"&&(j=2),E.write_shift(1,j),ts(b.name,E),E.length>E.l?E.slice(0,E.l):E}var ad,Dp=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],uf=Yi;function _c(b,E){E=E||Cr(84),b=(ad=ad||fn(Dp))[b.patternType],b==null&&(b=40),E.write_shift(4,b);var D=0;if(b!=40)for(Hi({auto:1},E),Hi({auto:1},E);D<12;++D)E.write_shift(4,0);else{for(;D<4;++D)E.write_shift(4,0);for(;D<12;++D)E.write_shift(4,0)}return E.length>E.l?E.slice(0,E.l):E}function Op(b,E,D){return(D=D||Cr(16)).write_shift(2,E||0),D.write_shift(2,b.numFmtId||0),D.write_shift(2,0),D.write_shift(2,0),D.write_shift(2,0),D.write_shift(1,0),D.write_shift(1,0),D.write_shift(1,0),D.write_shift(1,0),D.write_shift(1,0),D.write_shift(1,0),D}function cf(b,E){return(E=E||Cr(10)).write_shift(1,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),E}Tt=Yi;function Lp(b,E){var D;E&&(D=0,[[5,8],[23,26],[41,44],[50,392]].forEach(function(j){for(var J=j[0];J<=j[1];++J)E[J]!=null&&++D}),D!=0&&(Nr(b,615,fl(D)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(j){for(var J,re,ee,se=j[0];se<=j[1];++se)E[se]!=null&&Nr(b,44,(J=se,re=E[se],(ee=(ee=void 0)||Cr(6+4*re.length)).write_shift(2,J),ts(re,ee),re=ee.length>ee.l?ee.slice(0,ee.l):ee,ee.l==null&&(ee.l=ee.length),re))}),Nr(b,616)))}function gh(b){var E;Nr(b,613,fl(1)),Nr(b,46,((E=E||Cr(51)).write_shift(1,0),cf(0,E),cf(0,E),cf(0,E),cf(0,E),cf(0,E),E.length>E.l?E.slice(0,E.l):E)),Nr(b,614)}function Pp(b){var E,D;Nr(b,619,fl(1)),Nr(b,48,(E={xfId:0,builtinId:0,name:"Normal"},(D=D||Cr(52)).write_shift(4,E.xfId),D.write_shift(2,1),D.write_shift(1,+E.builtinId),D.write_shift(1,0),Wd(E.name||"",D),D.length>D.l?D.slice(0,D.l):D)),Nr(b,620)}function vh(b){var E,D,j,J;Nr(b,508,(E=0,D="TableStyleMedium9",j="PivotStyleMedium4",(J=Cr(2052)).write_shift(4,E),Wd(D,J),Wd(j,J),J.length>J.l?J.slice(0,J.l):J)),Nr(b,509)}function yh(b,E){var D,j=oo();return Nr(j,278),Lp(j,b.SSF),Nr(b=j,611,fl(1)),Nr(b,43,Mp({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Nr(b,612),Nr(b=j,603,fl(2)),Nr(b,45,_c({patternType:"none"})),Nr(b,45,_c({patternType:"gray125"})),Nr(b,604),gh(j),Nr(b=j,626,fl(1)),Nr(b,47,Op({numFmtId:0},65535)),Nr(b,627),D=j,E=E.cellXfs,Nr(D,617,fl(E.length)),E.forEach(function(J){Nr(D,47,Op(J,0))}),Nr(D,618),Pp(j),Nr(E=j,505,fl(0)),Nr(E,506),vh(j),Nr(j,279),j.end()}var bh=["</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 Tg(b,E,D){E.themeElements.clrScheme=[];var j={};(b[0].match(lr)||[]).forEach(function(J){var re=vn(J);switch(re[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":j.rgb=re.val;break;case"<a:sysClr":j.rgb=re.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>":re[0].charAt(1)==="/"?(E.themeElements.clrScheme[bh.indexOf(re[0])]=j,j={}):j.name=re[0].slice(3,re[0].length-1);break;default:if(D&&D.WTF)throw new Error("Unrecognized "+re[0]+" in clrScheme")}})}function Rp(){}function wh(){}var Up=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,JA=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Eg=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,qA=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function gl(b,E){var D,j,J,re,ee,se={};if(!(D=(b=!b||b.length===0?_h():b).match(qA)))throw new Error("themeElements not found in theme");return j=D[0],re=E,(J=se).themeElements={},[["clrScheme",Up,Tg],["fontScheme",JA,Rp],["fmtScheme",Eg,wh]].forEach(function(Ae){if(!(ee=j.match(Ae[1])))throw new Error(Ae[0]+" not found in themeElements");Ae[2](ee,J,re)}),se.raw=b,se}function _h(b,E){return E&&E.themeXLSX?E.themeXLSX:b&&typeof b.raw=="string"?b.raw:(b=[Rr],b[b.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',b[b.length]="<a:themeElements>",b[b.length]='<a:clrScheme name="Office">',b[b.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',b[b.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',b[b.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',b[b.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',b[b.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',b[b.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',b[b.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',b[b.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',b[b.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',b[b.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',b[b.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',b[b.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',b[b.length]="</a:clrScheme>",b[b.length]='<a:fontScheme name="Office">',b[b.length]="<a:majorFont>",b[b.length]='<a:latin typeface="Cambria"/>',b[b.length]='<a:ea typeface=""/>',b[b.length]='<a:cs typeface=""/>',b[b.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',b[b.length]='<a:font script="Hang" typeface="맑은 고딕"/>',b[b.length]='<a:font script="Hans" typeface="宋体"/>',b[b.length]='<a:font script="Hant" typeface="新細明體"/>',b[b.length]='<a:font script="Arab" typeface="Times New Roman"/>',b[b.length]='<a:font script="Hebr" typeface="Times New Roman"/>',b[b.length]='<a:font script="Thai" typeface="Tahoma"/>',b[b.length]='<a:font script="Ethi" typeface="Nyala"/>',b[b.length]='<a:font script="Beng" typeface="Vrinda"/>',b[b.length]='<a:font script="Gujr" typeface="Shruti"/>',b[b.length]='<a:font script="Khmr" typeface="MoolBoran"/>',b[b.length]='<a:font script="Knda" typeface="Tunga"/>',b[b.length]='<a:font script="Guru" typeface="Raavi"/>',b[b.length]='<a:font script="Cans" typeface="Euphemia"/>',b[b.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',b[b.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',b[b.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',b[b.length]='<a:font script="Thaa" typeface="MV Boli"/>',b[b.length]='<a:font script="Deva" typeface="Mangal"/>',b[b.length]='<a:font script="Telu" typeface="Gautami"/>',b[b.length]='<a:font script="Taml" typeface="Latha"/>',b[b.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',b[b.length]='<a:font script="Orya" typeface="Kalinga"/>',b[b.length]='<a:font script="Mlym" typeface="Kartika"/>',b[b.length]='<a:font script="Laoo" typeface="DokChampa"/>',b[b.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',b[b.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',b[b.length]='<a:font script="Viet" typeface="Times New Roman"/>',b[b.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',b[b.length]='<a:font script="Geor" typeface="Sylfaen"/>',b[b.length]="</a:majorFont>",b[b.length]="<a:minorFont>",b[b.length]='<a:latin typeface="Calibri"/>',b[b.length]='<a:ea typeface=""/>',b[b.length]='<a:cs typeface=""/>',b[b.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',b[b.length]='<a:font script="Hang" typeface="맑은 고딕"/>',b[b.length]='<a:font script="Hans" typeface="宋体"/>',b[b.length]='<a:font script="Hant" typeface="新細明體"/>',b[b.length]='<a:font script="Arab" typeface="Arial"/>',b[b.length]='<a:font script="Hebr" typeface="Arial"/>',b[b.length]='<a:font script="Thai" typeface="Tahoma"/>',b[b.length]='<a:font script="Ethi" typeface="Nyala"/>',b[b.length]='<a:font script="Beng" typeface="Vrinda"/>',b[b.length]='<a:font script="Gujr" typeface="Shruti"/>',b[b.length]='<a:font script="Khmr" typeface="DaunPenh"/>',b[b.length]='<a:font script="Knda" typeface="Tunga"/>',b[b.length]='<a:font script="Guru" typeface="Raavi"/>',b[b.length]='<a:font script="Cans" typeface="Euphemia"/>',b[b.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',b[b.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',b[b.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',b[b.length]='<a:font script="Thaa" typeface="MV Boli"/>',b[b.length]='<a:font script="Deva" typeface="Mangal"/>',b[b.length]='<a:font script="Telu" typeface="Gautami"/>',b[b.length]='<a:font script="Taml" typeface="Latha"/>',b[b.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',b[b.length]='<a:font script="Orya" typeface="Kalinga"/>',b[b.length]='<a:font script="Mlym" typeface="Kartika"/>',b[b.length]='<a:font script="Laoo" typeface="DokChampa"/>',b[b.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',b[b.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',b[b.length]='<a:font script="Viet" typeface="Arial"/>',b[b.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',b[b.length]='<a:font script="Geor" typeface="Sylfaen"/>',b[b.length]="</a:minorFont>",b[b.length]="</a:fontScheme>",b[b.length]='<a:fmtScheme name="Office">',b[b.length]="<a:fillStyleLst>",b[b.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',b[b.length]='<a:gradFill rotWithShape="1">',b[b.length]="<a:gsLst>",b[b.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',b[b.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',b[b.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',b[b.length]="</a:gsLst>",b[b.length]='<a:lin ang="16200000" scaled="1"/>',b[b.length]="</a:gradFill>",b[b.length]='<a:gradFill rotWithShape="1">',b[b.length]="<a:gsLst>",b[b.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>',b[b.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>',b[b.length]="</a:gsLst>",b[b.length]='<a:lin ang="16200000" scaled="0"/>',b[b.length]="</a:gradFill>",b[b.length]="</a:fillStyleLst>",b[b.length]="<a:lnStyleLst>",b[b.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>',b[b.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>',b[b.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>',b[b.length]="</a:lnStyleLst>",b[b.length]="<a:effectStyleLst>",b[b.length]="<a:effectStyle>",b[b.length]="<a:effectLst>",b[b.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',b[b.length]="</a:effectLst>",b[b.length]="</a:effectStyle>",b[b.length]="<a:effectStyle>",b[b.length]="<a:effectLst>",b[b.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',b[b.length]="</a:effectLst>",b[b.length]="</a:effectStyle>",b[b.length]="<a:effectStyle>",b[b.length]="<a:effectLst>",b[b.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',b[b.length]="</a:effectLst>",b[b.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>',b[b.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',b[b.length]="</a:effectStyle>",b[b.length]="</a:effectStyleLst>",b[b.length]="<a:bgFillStyleLst>",b[b.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',b[b.length]='<a:gradFill rotWithShape="1">',b[b.length]="<a:gsLst>",b[b.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',b[b.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>',b[b.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',b[b.length]="</a:gsLst>",b[b.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',b[b.length]="</a:gradFill>",b[b.length]='<a:gradFill rotWithShape="1">',b[b.length]="<a:gsLst>",b[b.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',b[b.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',b[b.length]="</a:gsLst>",b[b.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',b[b.length]="</a:gradFill>",b[b.length]="</a:bgFillStyleLst>",b[b.length]="</a:fmtScheme>",b[b.length]="</a:themeElements>",b[b.length]="<a:objectDefaults>",b[b.length]="<a:spDef>",b[b.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>',b[b.length]="</a:spDef>",b[b.length]="<a:lnDef>",b[b.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>',b[b.length]="</a:lnDef>",b[b.length]="</a:objectDefaults>",b[b.length]="<a:extraClrSchemeLst/>",b[b.length]="</a:theme>",b.join(""))}function xh(b){var E={};switch(E.xclrType=b.read_shift(2),E.nTintShade=b.read_shift(2),E.xclrType){case 0:b.l+=4;break;case 1:E.xclrValue=Yi(b,4);break;case 2:E.xclrValue=Cu(b);break;case 3:E.xclrValue=b.read_shift(4);break;case 4:b.l+=4}return b.l+=8,E}function Ig(b){var E=b.read_shift(2),D=b.read_shift(2)-4,j=[E];switch(E){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:j[1]=xh(b);break;case 6:j[1]=Yi(b,D);break;case 14:case 15:j[1]=b.read_shift(D==1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+E+" "+D)}return j}function Np(){var b,E,D,j=oo();return Nr(j,332),Nr(j,334,fl(1)),Nr(j,335,((D=Cr(12+2*(E={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,E.flags),D.write_shift(4,E.version),ts(E.name,D),D.slice(0,D.l))),Nr(j,336),Nr(j,339,(b=1,(D=Cr(8+2*(E="XLDAPR").length)).write_shift(4,b),ts(E,D),D.slice(0,D.l))),Nr(j,52),Nr(j,35,fl(514)),Nr(j,4096,fl(0)),Nr(j,4097,bs(1)),Nr(j,36),Nr(j,53),Nr(j,340),Nr(j,337,(b=1,E=!0,(D=Cr(8)).write_shift(4,b),D.write_shift(4,E?1:0),D)),Nr(j,51,(function(J){var re=Cr(4+8*J.length);re.write_shift(4,J.length);for(var ee=0;ee<J.length;++ee)re.write_shift(4,J[ee][0]),re.write_shift(4,J[ee][1]);return re})([[1,0]])),Nr(j,338),Nr(j,333),j.end()}function jp(){var b=[Rr];return b.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>`),b.join("")}var ff=1024;function Rl(b,E){for(var D=[21600,21600],j=["m0,0l0",D[1],D[0],D[1],D[0],"0xe"].join(","),J=[on("xml",null,{"xmlns:v":Ni.v,"xmlns:o":Ni.o,"xmlns:x":Ni.x,"xmlns:mv":Ni.mv}).replace(/\/>/,">"),on("o:shapelayout",on("o:idmap",null,{"v:ext":"edit",data:b}),{"v:ext":"edit"}),on("v:shapetype",[on("v:stroke",null,{joinstyle:"miter"}),on("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:D.join(","),path:j})];ff<1e3*b;)ff+=1e3;return E.forEach(function(re){var ee=ki(re[0]),Ae={color2:"#BEFF82",type:"gradient"};Ae.type=="gradient"&&(Ae.angle="-180");var se=Ae.type=="gradient"?on("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,Ae=on("v:fill",se,Ae);++ff,J=J.concat(["<v:shape"+zc({id:"_x0000_s"+ff,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(re[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",Ae,on("v:shadow",null,{on:"t",obscured:"t"}),on("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",wa("x:Anchor",[ee.c+1,0,ee.r+1,0,ee.c+3,20,ee.r+5,20].join(",")),wa("x:AutoFill","False"),wa("x:Row",String(ee.r)),wa("x:Column",String(ee.c)),re[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),J.push("</xml>"),J.join("")}function Ch(b,E,D,j){var J,re=Array.isArray(b);E.forEach(function(ee){var se,Ae=ki(ee.ref);(J=re?(b[Ae.r]||(b[Ae.r]=[]),b[Ae.r][Ae.c]):b[ee.ref])||(J={t:"z"},re?b[Ae.r][Ae.c]=J:b[ee.ref]=J,(se=Ua(b["!ref"]||"BDWGO1000001:A1")).s.r>Ae.r&&(se.s.r=Ae.r),se.e.r<Ae.r&&(se.e.r=Ae.r),se.s.c>Ae.c&&(se.s.c=Ae.c),se.e.c<Ae.c&&(se.e.c=Ae.c),(se=ga(se))!==b["!ref"]&&(b["!ref"]=se)),J.c||(J.c=[]);var me={a:ee.author,t:ee.t,r:ee.r,T:D};ee.h&&(me.h=ee.h);for(var _e=J.c.length-1;0<=_e;--_e){if(!D&&J.c[_e].T)return;D&&!J.c[_e].T&&J.c.splice(_e,1)}if(D&&j){for(_e=0;_e<j.length;++_e)if(me.a==j[_e].id){me.a=j[_e].name||me.a;break}}J.c.push(me)})}function Sh(b){var E=[Rr,on("comments",null,{xmlns:ac[0]})],D=[];return E.push("<authors>"),b.forEach(function(j){j[1].forEach(function(J){var re=Ba(J.a);D.indexOf(re)==-1&&(D.push(re),E.push("<author>"+re+"</author>")),J.T&&J.ID&&D.indexOf("tc="+J.ID)==-1&&(D.push("tc="+J.ID),E.push("<author>tc="+J.ID+"</author>"))})}),D.length==0&&(D.push("SheetJ5"),E.push("<author>SheetJ5</author>")),E.push("</authors>"),E.push("<commentList>"),b.forEach(function(j){var J=0,re=[];if(j[1][0]&&j[1][0].T&&j[1][0].ID?J=D.indexOf("tc="+j[1][0].ID):j[1].forEach(function(Ae){Ae.a&&(J=D.indexOf(Ba(Ae.a))),re.push(Ae.t||"")}),E.push('<comment ref="'+j[0]+'" authorId="'+J+'"><text>'),re.length<=1)E.push(wa("t",Ba(re[0]||"")));else{for(var ee=`Comment:
    `+re[0]+`
`,se=1;se<re.length;++se)ee+=`Reply:
    `+re[se]+`
`;E.push(wa("t",Ba(ee)))}E.push("</text></comment>")}),E.push("</commentList>"),2<E.length&&(E[E.length]="</comments>",E[1]=E[1].replace("/>",">")),E.join("")}Ze=Gs;function e0(b){var E=oo(),D=[];return Nr(E,628),Nr(E,630),b.forEach(function(j){j[1].forEach(function(J){-1<D.indexOf(J.a)||(D.push(J.a.slice(0,54)),Nr(E,632,ts(J.a.slice(0,54))))})}),Nr(E,631),Nr(E,633),b.forEach(function(j){j[1].forEach(function(J){J.iauthor=D.indexOf(J.a);var re,ee={s:ki(j[0]),e:ki(j[0])};Nr(E,635,(ee=[ee,J],(re=re??Cr(36)).write_shift(4,ee[1].iauthor),_n(ee[0],re),re.write_shift(4,0),re.write_shift(4,0),re.write_shift(4,0),re.write_shift(4,0),re)),J.t&&0<J.t.length&&Nr(E,637,Vd(J)),Nr(E,636),delete J.iauthor})}),Nr(E,634),Nr(E,629),E.end()}var kh="application/vnd.ms-office.vbaProject",Du=["xlsb","xlsm","xlam","biff8","xla"],Jn,id,Ou=(id=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,function(b,E){return Jn=E,b.replace(id,Lu)});function Lu(b,E,D,j){var J=!1,re=!1;return D.length==0?re=!0:D.charAt(0)=="["&&(re=!0,D=D.slice(1,-1)),j.length==0?J=!0:j.charAt(0)=="["&&(J=!0,j=j.slice(1,-1)),D=0<D.length?0|parseInt(D,10):0,j=0<j.length?0|parseInt(j,10):0,J?j+=Jn.c:--j,re?D+=Jn.r:--D,E+(J?"":"$")+Oa(j)+(re?"":"$")+ji(D)}var t0=/(^|[^._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,df=function(b,E){return b.replace(t0,function(D,j,J,re,ee,se){return re=Qd(re)-(J?0:E.c),se=Rf(se)-(ee?0:E.r),j+"R"+(se==0?"":ee?1+se:"["+se+"]")+"C"+(re==0?"":J?1+re:"["+re+"]")})};function Th(b,E){return b.replace(t0,function(D,j,J,re,ee,se){return j+(J=="$"?J+re:Oa(Qd(re)+E.c))+(ee=="$"?ee+se:ji(Rf(se)+E.r))})}function Os(b){return b.replace(/_xlfn\./g,"")}function ns(b){b.l+=1}function tu(b,E){return E=b.read_shift(E==1?1:2),[16383&E,E>>14&1,E>>15&1]}function r0(ee,E,J){var re=2;if(J){if(2<=J.biff&&J.biff<=5)return n0(ee);J.biff==12&&(re=4)}var j=ee.read_shift(re),J=ee.read_shift(re),re=tu(ee,2),ee=tu(ee,2);return{s:{r:j,c:re[0],cRel:re[1],rRel:re[2]},e:{r:J,c:ee[0],cRel:ee[1],rRel:ee[2]}}}function n0(J){var E=tu(J,2),D=tu(J,2),j=J.read_shift(1),J=J.read_shift(1);return{s:{r:E[0],c:j,cRel:E[1],rRel:E[2]},e:{r:D[0],c:J,cRel:D[1],rRel:D[2]}}}function Eh(ee,E,re){if(re&&2<=re.biff&&re.biff<=5)return J=tu(j=ee,2),j=j.read_shift(1),{r:J[0],c:j,cRel:J[1],rRel:J[2]};var j,J,re=ee.read_shift(re&&re.biff==12?4:2),ee=tu(ee,2);return{r:re,c:ee[0],cRel:ee[1],rRel:ee[2]}}function Bg(ee,E,re){if(re=re&&re.biff?re.biff:8,2<=re&&re<=5)return(function(Be){var Ae=Be.read_shift(2),me=Be.read_shift(1),_e=(32768&Ae)>>15,Be=(16384&Ae)>>14;return Ae&=16383,_e==1&&8192<=Ae&&(Ae-=16384),Be==1&&128<=me&&(me-=256),{r:Ae,c:me,cRel:Be,rRel:_e}})(ee);var j=ee.read_shift(12<=re?4:2),J=ee.read_shift(2),re=(16384&J)>>14,ee=(32768&J)>>15;if(J&=16383,ee==1)for(;524287<j;)j-=1048576;if(re==1)for(;8191<J;)J-=16384;return{r:j,c:J,cRel:re,rRel:ee}}function Hp(b){var E=1&b[b.l+1];return b.l+=4,[E,1]}function Qp(b){return[b.read_shift(1),b.read_shift(1)]}function Ul(b,E,D){var j=0,J=0;D.biff==12?(j=b.read_shift(4),J=b.read_shift(4)):(J=1+b.read_shift(1),j=1+b.read_shift(2)),2<=D.biff&&D.biff<8&&(--j,--J==0&&(J=256));for(var re=0,ee=[];re!=j&&(ee[re]=[]);++re)for(var se=0;se!=J;++se)ee[re][se]=(function(Ae,me){var _e=[Ae.read_shift(1)];if(me==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]=Qi(Ae,1)?"TRUE":"FALSE",me!=12&&(Ae.l+=7);break;case 37:case 16:_e[1]=Ml[Ae[Ae.l]],Ae.l+=me==12?4:8;break;case 0:Ae.l+=8;break;case 1:_e[1]=Vn(Ae);break;case 2:_e[1]=ws(Ae,0,{biff:0<me&&me<8?2:me});break;default:throw new Error("Bad SerAr: "+_e[0])}return _e})(b,D.biff);return ee}function cs(b,E,D){return b.l+=2,[(b=(j=b).read_shift(2),j=j.read_shift(2),{r:b,c:255&j,fQuoted:!!(16384&j),cRel:j>>15,rRel:j>>15})];var j}function hf(b){return b.l+=6,[]}function zp(b){return b.l+=2,[rs(b),1&b.read_shift(2)]}var Ih=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Vp={1:{n:"PtgExp",f:function(b,E,D){return b.l++,D&&D.biff==12?[b.read_shift(4,"i"),0]:[b.read_shift(2),b.read_shift(D&&D.biff==2?1:2)]}},2:{n:"PtgTbl",f:Yi},3:{n:"PtgAdd",f:ns},4:{n:"PtgSub",f:ns},5:{n:"PtgMul",f:ns},6:{n:"PtgDiv",f:ns},7:{n:"PtgPower",f:ns},8:{n:"PtgConcat",f:ns},9:{n:"PtgLt",f:ns},10:{n:"PtgLe",f:ns},11:{n:"PtgEq",f:ns},12:{n:"PtgGe",f:ns},13:{n:"PtgGt",f:ns},14:{n:"PtgNe",f:ns},15:{n:"PtgIsect",f:ns},16:{n:"PtgUnion",f:ns},17:{n:"PtgRange",f:ns},18:{n:"PtgUplus",f:ns},19:{n:"PtgUminus",f:ns},20:{n:"PtgPercent",f:ns},21:{n:"PtgParen",f:ns},22:{n:"PtgMissArg",f:ns},23:{n:"PtgStr",f:function(b,E,D){return b.l++,dt(b,0,D)}},26:{n:"PtgSheet",f:function(b,E,D){return b.l+=5,b.l+=2,b.l+=D.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(b,E,D){return b.l+=D.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(b){return b.l++,Ml[b.read_shift(1)]}},29:{n:"PtgBool",f:function(b){return b.l++,b.read_shift(1)!==0}},30:{n:"PtgInt",f:function(b){return b.l++,b.read_shift(2)}},31:{n:"PtgNum",f:function(b){return b.l++,Vn(b)}},32:{n:"PtgArray",f:function(b,E,D){var j=(96&b[b.l++])>>5;return b.l+=D.biff==2?6:D.biff==12?14:7,[j]}},33:{n:"PtgFunc",f:function(b,E,D){var j=(96&b[b.l])>>5;return b.l+=1,D=b.read_shift(D&&D.biff<=3?1:2),[xe[D],ne[D],j]}},34:{n:"PtgFuncVar",f:function(b,E,D){var j=b[b.l++],J=b.read_shift(1),re=D&&D.biff<=3?[j==88?-1:0,b.read_shift(1)]:[(re=b)[re.l+1]>>7,32767&re.read_shift(2)];return[J,(re[0]===0?ne:X)[re[1]]]}},35:{n:"PtgName",f:function(b,E,D){var j=b.read_shift(1)>>>5&3,J=!D||8<=D.biff?4:2,J=b.read_shift(J);switch(D.biff){case 2:b.l+=5;break;case 3:case 4:b.l+=8;break;case 5:b.l+=12}return[j,0,J]}},36:{n:"PtgRef",f:function(b,E,D){var j=(96&b[b.l])>>5;return b.l+=1,[j,Eh(b,0,D)]}},37:{n:"PtgArea",f:function(b,E,D){return[(96&b[b.l++])>>5,r0(b,2<=D.biff&&D.biff,D)]}},38:{n:"PtgMemArea",f:function(b,E,D){var j=b.read_shift(1)>>>5&3;return b.l+=D&&D.biff==2?3:4,[j,b.read_shift(D&&D.biff==2?1:2)]}},39:{n:"PtgMemErr",f:Yi},40:{n:"PtgMemNoMem",f:Yi},41:{n:"PtgMemFunc",f:function(b,E,D){return[b.read_shift(1)>>>5&3,b.read_shift(D&&D.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(b,E,D){var j=b.read_shift(1)>>>5&3;return b.l+=4,D.biff<8&&b.l--,D.biff==12&&(b.l+=2),[j]}},43:{n:"PtgAreaErr",f:function(b,E,D){var j=(96&b[b.l++])>>5;return b.l+=D&&8<D.biff?12:D.biff<8?6:8,[j]}},44:{n:"PtgRefN",f:function(b,E,D){var j=(96&b[b.l])>>5;return b.l+=1,[j,Bg(b,0,D)]}},45:{n:"PtgAreaN",f:function(b,E,D){return[(96&b[b.l++])>>5,(function(Ae,se){if(se.biff<8)return n0(Ae);var re=Ae.read_shift(se.biff==12?4:2),ee=Ae.read_shift(se.biff==12?4:2),se=tu(Ae,2),Ae=tu(Ae,2);return{s:{r:re,c:se[0],cRel:se[1],rRel:se[2]},e:{r:ee,c:Ae[0],cRel:Ae[1],rRel:Ae[2]}}})(b,D)]}},46:{n:"PtgMemAreaN",f:function(b){return[b.read_shift(1)>>>5&3,b.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(b){return[b.read_shift(1)>>>5&3,b.read_shift(2)]}},57:{n:"PtgNameX",f:function(b,E,D){return D.biff==5?(function(j){var J=j.read_shift(1)>>>5&3,re=j.read_shift(2,"i");j.l+=8;var ee=j.read_shift(2);return j.l+=12,[J,re,ee]})(b):[b.read_shift(1)>>>5&3,b.read_shift(2),b.read_shift(4)]}},58:{n:"PtgRef3d",f:function(b,E,D){var j=(96&b[b.l])>>5;b.l+=1;var J=b.read_shift(2);return D&&D.biff==5&&(b.l+=12),[j,J,Eh(b,0,D)]}},59:{n:"PtgArea3d",f:function(b,E,D){var j=(96&b[b.l++])>>5,J=b.read_shift(2,"i");if(D)switch(D.biff){case 5:b.l+=12;break}return[j,J,r0(b,0,D)]}},60:{n:"PtgRefErr3d",f:function(b,E,D){var j=(96&b[b.l++])>>5,J=b.read_shift(2),re=4;if(D)switch(D.biff){case 5:re=15;break;case 12:re=6}return b.l+=re,[j,J]}},61:{n:"PtgAreaErr3d",f:function(b,E,D){var j=(96&b[b.l++])>>5,J=b.read_shift(2),re=8;if(D)switch(D.biff){case 5:b.l+=12,re=6;break;case 12:re=12}return b.l+=re,[j,J]}},255:{}},Fg={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},sd={1:{n:"PtgElfLel",f:zp},2:{n:"PtgElfRw",f:cs},3:{n:"PtgElfCol",f:cs},6:{n:"PtgElfRwV",f:cs},7:{n:"PtgElfColV",f:cs},10:{n:"PtgElfRadical",f:cs},11:{n:"PtgElfRadicalS",f:hf},13:{n:"PtgElfColS",f:hf},15:{n:"PtgElfColSV",f:hf},16:{n:"PtgElfRadicalLel",f:zp},25:{n:"PtgList",f:function(re){re.l+=2;var E=re.read_shift(2),D=re.read_shift(2),j=re.read_shift(4),J=re.read_shift(2),re=re.read_shift(2);return{ixti:E,coltype:3&D,rt:Ih[D>>2&31],idx:j,c:J,C:re}}},29:{n:"PtgSxName",f:function(b){return b.l+=2,[b.read_shift(4)]}},255:{}},a0={0:{n:"PtgAttrNoop",f:function(b){return b.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(b,E,D){var j=255&b[b.l+1]?1:0;return b.l+=D&&D.biff==2?3:4,[j]}},2:{n:"PtgAttrIf",f:function(b,E,D){var j=255&b[b.l+1]?1:0;return b.l+=2,[j,b.read_shift(D&&D.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(b,E,D){b.l+=2;for(var j=b.read_shift(D&&D.biff==2?1:2),J=[],re=0;re<=j;++re)J.push(b.read_shift(D&&D.biff==2?1:2));return J}},8:{n:"PtgAttrGoto",f:function(b,E,D){var j=255&b[b.l+1]?1:0;return b.l+=2,[j,b.read_shift(D&&D.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(b,E,D){b.l+=D&&D.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:Hp},33:{n:"PtgAttrBaxcel",f:Hp},64:{n:"PtgAttrSpace",f:function(b){return b.read_shift(2),Qp(b)}},65:{n:"PtgAttrSpaceSemi",f:function(b){return b.read_shift(2),Qp(b)}},128:{n:"PtgAttrIfError",f:function(b){var E=255&b[b.l+1]?1:0;return b.l+=2,[E,b.read_shift(2)]}},255:{}};function xc(b,E,D,j){if(j.biff<8)return Yi(b,E);for(var J=b.l+E,re=[],ee=0;ee!==D.length;++ee)switch(D[ee][0]){case"PtgArray":D[ee][1]=Ul(b,0,j),re.push(D[ee][1]);break;case"PtgMemArea":D[ee][2]=(function(se,Ae){for(var me=se.read_shift(Ae.biff==12?4:2),_e=[],Be=0;Be!=me;++Be)_e.push((Ae.biff==12?Ar:Yd)(se));return _e})(b,(D[ee][1],j)),re.push(D[ee][2]);break;case"PtgExp":j&&j.biff==12&&(D[ee][1][1]=b.read_shift(4),re.push(D[ee][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+D[ee][0]}return(E=J-b.l)!==0&&re.push(Yi(b,E)),re}function od(b,E,D){for(var j,J,re=b.l+E,ee=[];re!=b.l;)E=re-b.l,J=b[b.l],j=Vp[J]||Vp[Fg[J]],(j=J===24||J===25?(J===24?sd:a0)[b[b.l+1]]:j)&&j.f?ee.push([j.n,j.f(b,E,D)]):Yi(b,E);return ee}var Mg={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Wp(b,E,D){if(!b)return"SH33TJSERR0";if(8<D.biff&&(!b.XTI||!b.XTI[E]))return b.SheetNames[E];if(!b.XTI)return"SH33TJSERR6";var j=b.XTI[E];if(D.biff<8)return 1e4<E&&(E-=65536),(E=E<0?-E:E)==0?"":b.XTI[E-1];if(!j)return"SH33TJSERR1";var J="";if(8<D.biff)switch(b[j[0]][0]){case 357:return J=j[1]==-1?"#REF":b.SheetNames[j[1]],j[1]==j[2]?J:J+":"+b.SheetNames[j[2]];case 358:return D.SID!=null?b.SheetNames[D.SID]:"SH33TJSSAME"+b[j[0]][0];case 355:default:return"SH33TJSSRC"+b[j[0]][0]}switch(b[j[0]][0][0]){case 1025:return J=j[1]==-1?"#REF":b.SheetNames[j[1]]||"SH33TJSERR3",j[1]==j[2]?J:J+":"+b.SheetNames[j[2]];case 14849:return b[j[0]].slice(1).map(function(re){return re.Name}).join(";;");default:return b[j[0]][0][3]?(J=j[1]==-1?"#REF":b[j[0]][0][3][j[1]]||"SH33TJSERR4",j[1]==j[2]?J:J+":"+b[j[0]][0][3][j[2]]):"SH33TJSERR2"}}function Gp(b,E,D){return E=Wp(b,E,D),E=="#REF"?E:(function(j,J){if(!(j||J&&J.biff<=5&&2<=J.biff))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(j)?"'"+j+"'":j})(E,D)}function Ys(b,E,D,j,J){var re,ee,se,Ae=J&&J.biff||8,me={s:{c:0,r:0}},_e=[],Be=0,De=0,Le="";if(!b[0]||!b[0][0])return"";for(var Je=-1,He="",ct=0,et=b[0].length;ct<et;++ct){var Xe=b[0][ct];switch(Xe[0]){case"PtgUminus":_e.push("-"+_e.pop());break;case"PtgUplus":_e.push("+"+_e.pop());break;case"PtgPercent":_e.push(_e.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(bn=_e.pop(),re=_e.pop(),0<=Je){switch(b[0][Je][1][0]){case 0:He=xt(" ",b[0][Je][1][1]);break;case 1:He=xt("\r",b[0][Je][1][1]);break;default:if(He="",J.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[0][Je][1][0])}re+=He,Je=-1}_e.push(re+Mg[Xe[0]]+bn);break;case"PtgIsect":bn=_e.pop(),re=_e.pop(),_e.push(re+" "+bn);break;case"PtgUnion":bn=_e.pop(),re=_e.pop(),_e.push(re+","+bn);break;case"PtgRange":bn=_e.pop(),re=_e.pop(),_e.push(re+":"+bn);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":ee=ic(Xe[1][1],me,J),_e.push(Lf(ee,Ae));break;case"PtgRefN":ee=D?ic(Xe[1][1],D,J):Xe[1][1],_e.push(Lf(ee,Ae));break;case"PtgRef3d":Be=Xe[1][1],ee=ic(Xe[1][2],me,J),Le=Gp(j,Be,J),_e.push(Le+"!"+Lf(ee,Ae));break;case"PtgFunc":case"PtgFuncVar":var At=Xe[1][0],lt=Xe[1][1],At=At||0,pt=(At&=127)==0?[]:_e.slice(-At);_e.length-=At,lt==="User"&&(lt=pt.shift()),_e.push(lt+"("+pt.join(",")+")");break;case"PtgBool":_e.push(Xe[1]?"TRUE":"FALSE");break;case"PtgInt":_e.push(Xe[1]);break;case"PtgNum":_e.push(String(Xe[1]));break;case"PtgStr":_e.push('"'+Xe[1].replace(/"/g,'""')+'"');break;case"PtgErr":_e.push(Xe[1]);break;case"PtgAreaN":se=mA(Xe[1][1],D?{s:D}:me,J),_e.push(Pf(se,J));break;case"PtgArea":se=mA(Xe[1][1],me,J),_e.push(Pf(se,J));break;case"PtgArea3d":Be=Xe[1][1],se=Xe[1][2],Le=Gp(j,Be,J),_e.push(Le+"!"+Pf(se,J));break;case"PtgAttrSum":_e.push("SUM("+_e.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":De=Xe[1][2];var jt=(j.names||[])[De-1]||(j[0]||[])[De],rr=jt?jt.Name:"SH33TJSNAME"+String(De);rr&&rr.slice(0,6)=="_xlfn."&&!J.xlfn&&(rr=rr.slice(6)),_e.push(rr);break;case"PtgNameX":var Yt,cr=Xe[1][1],De=Xe[1][2];if(!(J.biff<=5)){jt="",((j[cr]||[])[0]||[])[0]==14849||(((j[cr]||[])[0]||[])[0]==1025?j[cr][De]&&0<j[cr][De].itab&&(jt=j.SheetNames[j[cr][De].itab-1]+"!"):jt=j.SheetNames[De-1]+"!"),j[cr]&&j[cr][De]?jt+=j[cr][De].Name:j[0]&&j[0][De]?jt+=j[0][De].Name:(rr=(Wp(j,cr,J)||"").split(";;"))[De-1]?jt=rr[De-1]:jt+="SH33TJSERRX",_e.push(jt);break}Yt=(Yt=j[cr=cr<0?-cr:cr]?j[cr][De]:Yt)||{Name:"SH33TJSERRY"},_e.push(Yt.Name);break;case"PtgParen":var Fr="(",Dr=")";if(0<=Je){switch(He="",b[0][Je][1][0]){case 2:Fr=xt(" ",b[0][Je][1][1])+Fr;break;case 3:Fr=xt("\r",b[0][Je][1][1])+Fr;break;case 4:Dr=xt(" ",b[0][Je][1][1])+Dr;break;case 5:Dr=xt("\r",b[0][Je][1][1])+Dr;break;default:if(J.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[0][Je][1][0])}Je=-1}_e.push(Fr+_e.pop()+Dr);break;case"PtgRefErr":case"PtgRefErr3d":_e.push("#REF!");break;case"PtgExp":ee={c:Xe[1][1],r:Xe[1][0]};var pr={c:D.c,r:D.r};if(j.sharedf[ea(ee)])cr=j.sharedf[ea(ee)],_e.push(Ys(cr,0,pr,j,J));else{for(var Xr=!1,bn=0;bn!=j.arrayf.length;++bn)if(re=j.arrayf[bn],!(ee.c<re[0].s.c||ee.c>re[0].e.c||ee.r<re[0].s.r||ee.r>re[0].e.r)){_e.push(Ys(re[1],0,pr,j,J)),Xr=!0;break}Xr||_e.push(Xe[1])}break;case"PtgArray":_e.push("{"+(function(en){for(var tn=[],Qr=0;Qr<en.length;++Qr){for(var En=en[Qr],Rn=[],Gn=0;Gn<En.length;++Gn){var Ta=En[Gn];Ta?Ta[0]===2?Rn.push('"'+Ta[1].replace(/"/g,'""')+'"'):Rn.push(Ta[1]):Rn.push("")}tn.push(Rn.join(","))}return tn.join(";")})(Xe[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":Je=ct;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":_e.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":_e.push("#REF!");break;case"PtgList":_e.push("Table"+Xe[1].idx+"[#"+Xe[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":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");case"PtgSxName":default:throw new Error("Unrecognized Formula Token: "+String(Xe))}if(J.biff!=3&&0<=Je&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(b[0][ct][0])==-1){var dn=!0;switch((Xe=b[0][Je])[1][0]){case 4:dn=!1;case 0:He=xt(" ",Xe[1][1]);break;case 5:dn=!1;case 1:He=xt("\r",Xe[1][1]);break;default:if(He="",J.WTF)throw new Error("Unexpected PtgAttrSpaceType "+Xe[1][0])}_e.push((dn?He:"")+_e.pop()+(dn?"":He)),Je=-1}}if(1<_e.length&&J.WTF)throw new Error("bad formula stack");return _e[0]}function ld(b,ee,D){var j=b.l+ee,J=Ol(b);D.biff==2&&++b.l;var re=(function(se){var Ae;if(Bo(se,se.l+6)!==65535)return[Vn(se),"n"];switch(se[se.l]){case 0:return se.l+=8,["String","s"];case 1:return Ae=se[se.l+2]===1,se.l+=8,[Ae,"b"];case 2:return Ae=se[se.l+2],se.l+=8,[Ae,"e"];case 3:return se.l+=8,["","s"]}return[]})(b),ee=b.read_shift(1);return D.biff!=2&&(b.read_shift(1),5<=D.biff&&b.read_shift(4)),D=(function(se,Ae,me){var _e,Be=se.l+Ae,De=me.biff==2?1:2,Le=se.read_shift(De);if(Le==65535)return[[],Yi(se,Ae-2)];var Je=od(se,Le,me);return Ae!==Le+De&&(_e=xc(se,Ae-Le-De,Je,me)),se.l=Be,[Je,_e]})(b,j-b.l,D),{cell:J,val:re[0],formula:D,shared:ee>>3&1,tt:re[1]}}function Dg(b,E,D,j,J){E=hc(E,D,J),J=(D=b.v)!=null?Na(typeof D=="number"?D:0):((D=Cr(8)).write_shift(1,3),D.write_shift(1,0),D.write_shift(2,0),D.write_shift(2,0),D.write_shift(2,65535),D),D=Cr(6),D.write_shift(2,33),D.write_shift(4,0);for(var re=Cr(b.bf.length),ee=0;ee<b.bf.length;++ee)re[ee]=b.bf[ee];return B([E,J,D,re])}function Af(b,E,D){var J=b.read_shift(4),j=od(b,J,D),J=b.read_shift(4);return[j,0<J?xc(b,J,j,D):null]}var Me=Af,ce=Af,Z=Af,te=Af,X={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"},ne={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"},xe={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 Ie(b){return(b=(b=(b=(b=(b=b.slice(0,3)=="of:"?b.slice(3):b).charCodeAt(0)==61&&(b=b.slice(1)).charCodeAt(0)==61?b.slice(1):b).replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(E,D){return D.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Qe(b){return b=b.split(":"),[b[0].split(".")[0],b[0].split(".")[1]+(1<b.length?":"+(b[1].split(".")[1]||b[1].split(".")[0]):"")]}var je={},rt={},ft=typeof Map<"u";function Ht(b,E,D){var j=0,J=b.length;if(D){if(ft?D.has(E):Object.prototype.hasOwnProperty.call(D,E)){for(var re=ft?D.get(E):D[E];j<re.length;++j)if(b[re[j]].t===E)return b.Count++,re[j]}}else for(;j<J;++j)if(b[j].t===E)return b.Count++,j;return b[J]={t:E},b.Count++,b.Unique++,D&&(ft?(D.has(E)||D.set(E,[]),D.get(E).push(J)):(Object.prototype.hasOwnProperty.call(D,E)||(D[E]=[]),D[E].push(J))),J}function zt(j,E){var D={min:j+1,max:j+1},j=-1;return E.MDW&&(Oi=E.MDW),E.width!=null?D.customWidth=1:E.wpx!=null?j=Yo(E.wpx):E.wch!=null&&(j=E.wch),-1<j?(D.width=td(j),D.customWidth=1):E.width!=null&&(D.width=E.width),E.hidden&&(D.hidden=!0),E.level!=null&&(D.outlineLevel=D.level=E.level),D}function qt(b,E){b&&(E=E=="xlml"?[1,1,1,1,.5,.5]:[.7,.7,.75,.75,.3,.3],b.left==null&&(b.left=E[0]),b.right==null&&(b.right=E[1]),b.top==null&&(b.top=E[2]),b.bottom==null&&(b.bottom=E[3]),b.header==null&&(b.header=E[4]),b.footer==null&&(b.footer=E[5]))}function Xt(b,E,D){if(Mu!==void 0){if(/^\d+$/.exec(E.s)||E.s&&E.s==+E.s)return E.s;var j=E.s||{};return E.z&&(j.numFmt=E.z),Mu.addStyle(j)}var J=D.revssf[E.z!=null?E.z:"General"],re=60,ee=b.length;if(J==null&&D.ssf){for(;re<392;++re)if(D.ssf[re]==null){vr(E.z,re),D.ssf[re]=E.z,D.revssf[E.z]=J=re;break}}for(re=0;re!=ee;++re)if(b[re].numFmtId===J)return re;return b[ee]={numFmtId:J,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},ee}function nr(b,E,D,j,J,re){try{j.cellNF&&(b.z=fe[E])}catch(se){if(j.WTF)throw se}if(b.t!=="z"||j.cellStyles){if(b.t==="d"&&typeof b.v=="string"&&(b.v=$e(b.v)),(!j||j.cellText!==!1)&&b.t!=="z")try{if(fe[E]==null&&vr(jr[E]||"General",E),b.t==="e")b.w=b.w||Ml[b.v];else if(E===0)if(b.t==="n")(0|b.v)===b.v?b.w=b.v.toString(10):b.w=Te(b.v);else if(b.t==="d"){var ee=Wr(b.v);b.w=(0|ee)===ee?ee.toString(10):Te(ee)}else{if(b.v===void 0)return;b.w=Ee(b.v,rt)}else b.t==="d"?b.w=yr(E,Wr(b.v),rt):b.w=yr(E,b.v,rt)}catch(se){if(j.WTF)throw se}if(j.cellStyles&&D!=null)try{b.s=re.Fills[D],b.s.fgColor&&b.s.fgColor.theme&&!b.s.fgColor.rgb&&(b.s.fgColor.rgb=af(J.themeElements.clrScheme[b.s.fgColor.theme].rgb,b.s.fgColor.tint||0),j.WTF&&(b.s.fgColor.raw_rgb=J.themeElements.clrScheme[b.s.fgColor.theme].rgb)),b.s.bgColor&&b.s.bgColor.theme&&(b.s.bgColor.rgb=af(J.themeElements.clrScheme[b.s.bgColor.theme].rgb,b.s.bgColor.tint||0),j.WTF&&(b.s.bgColor.raw_rgb=J.themeElements.clrScheme[b.s.bgColor.theme].rgb))}catch(se){if(j.WTF&&re.Fills)throw se}}}var Mr=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Dn=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Nn=/<(?:\w:)?hyperlink [^>]*>/gm,qn=/"(\w*:\w*)"/,nn=/<(?:\w:)?col\b[^>]*[\/]?>/g,Ja=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,_s=/<(?:\w:)?pageMargins[^>]*\/>/g,Xs=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,zi=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,vl=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Pu(b,E,D,j,J,re,ee){if(!b)return b;j=j||{"!id":{}};var se=E.dense?[]:{},Ae={s:{r:2e6,c:2e6},e:{r:0,c:0}},me="",rr="",_e=b.match(Dn);_e?(me=b.slice(0,_e.index),rr=b.slice(_e.index+_e[0].length)):me=rr=b;var Be=me.match(Xs);Be?Ls(Be[0],0,J,D):(Be=me.match(zi))&&(b=Be[0],Be[1],Be=se,De=J,Le=D,Ls(b.slice(0,b.indexOf(">")),0,De,Le));var De,Le,Je=(me.match(/<(?:\w*:)?dimension/)||{index:-1}).index;0<Je&&(De=me.slice(Je,Je+50).match(qn))&&(Le=se,(ct=Ua(ct=De[1])).s.r<=ct.e.r&&ct.s.c<=ct.e.c&&0<=ct.s.r&&0<=ct.s.c&&(Le["!ref"]=ga(ct)));var He,ct=me.match(vl);ct&&ct[1]&&(Xe=ct[1],(He=J).Views||(He.Views=[{}]),(Xe.match(Fh)||[]).forEach(function(Yt,cr){Yt=vn(Yt),He.Views[cr]||(He.Views[cr]={}),+Yt.zoomScale&&(He.Views[cr].zoom=+Yt.zoomScale),si(Yt.rightToLeft)&&(He.Views[cr].RTL=!0)}));var et,Xe=[];E.cellStyles&&(et=me.match(nn))&&(function(Yt,cr){for(var Fr=!1,Dr=0;Dr!=cr.length;++Dr){var pr=vn(cr[Dr],!0);pr.hidden&&(pr.hidden=si(pr.hidden));var Xr=parseInt(pr.min,10)-1,bn=parseInt(pr.max,10)-1;for(pr.outlineLevel&&(pr.level=+pr.outlineLevel||0),delete pr.min,delete pr.max,pr.width=+pr.width,!Fr&&pr.width&&(Fr=!0,rd(pr.width)),Fu(pr);Xr<=bn;)Yt[Xr++]=bt(pr)}})(Xe,et),_e&&md(_e[1],se,E,Ae,re,ee),ee=rr.match(Ja),ee&&(se["!autofilter"]={ref:(ee[0].match(/ref="([^"]*)"/)||[])[1]});var lt=[],At=rr.match(Mr);if(At)for(Je=0;Je!=At.length;++Je)lt[Je]=Ua(At[Je].slice(At[Je].indexOf('"')+1));ee=rr.match(Nn),ee&&(function(Yt,cr,Fr){for(var Dr=Array.isArray(Yt),pr=0;pr!=cr.length;++pr){var Xr=vn(Xa(cr[pr]),!0);if(!Xr.ref)return;var bn=((Fr||{})["!id"]||[])[Xr.id];bn?(Xr.Target=bn.Target,Xr.location&&(Xr.Target+="#"+ba(Xr.location))):(Xr.Target="#"+ba(Xr.location),bn={Target:Xr.Target,TargetMode:"Internal"}),Xr.Rel=bn,Xr.tooltip&&(Xr.Tooltip=Xr.tooltip,delete Xr.tooltip);for(var dn=Ua(Xr.ref),an=dn.s.r;an<=dn.e.r;++an)for(var en=dn.s.c;en<=dn.e.c;++en){var tn=ea({c:en,r:an});Dr?(Yt[an]||(Yt[an]=[]),Yt[an][en]||(Yt[an][en]={t:"z",v:void 0}),Yt[an][en].l=Xr):(Yt[tn]||(Yt[tn]={t:"z",v:void 0}),Yt[tn].l=Xr)}}})(se,ee,j);var pt,jt,rr=rr.match(_s);return rr&&(se["!margins"]=(pt=vn(rr[0]),jt={},["left","right","top","bottom","header","footer"].forEach(function(Yt){pt[Yt]&&(jt[Yt]=parseFloat(pt[Yt]))}),jt)),!se["!ref"]&&Ae.e.c>=Ae.s.c&&Ae.e.r>=Ae.s.r&&(se["!ref"]=ga(Ae)),0<E.sheetRows&&se["!ref"]&&(rr=Ua(se["!ref"]),E.sheetRows<=+rr.e.r&&(rr.e.r=E.sheetRows-1,rr.e.r>Ae.e.r&&(rr.e.r=Ae.e.r),rr.e.r<rr.s.r&&(rr.s.r=rr.e.r),rr.e.c>Ae.e.c&&(rr.e.c=Ae.e.c),rr.e.c<rr.s.c&&(rr.s.c=rr.e.c),se["!fullref"]=se["!ref"],se["!ref"]=ga(rr))),0<Xe.length&&(se["!cols"]=Xe),0<lt.length&&(se["!merges"]=lt),se}function Ls(b,E,D,j){b=vn(b),D.Sheets[j]||(D.Sheets[j]={}),b.codeName&&(D.Sheets[j].CodeName=ba(Xa(b.codeName)))}var ud=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Bh=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],Fh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/,cd,fd,dd,Zs,hd,Ad,pd,md=(cd=/<(?:\w+:)?c[ \/>]/,fd=/<\/(?:\w+:)?row>/,dd=/r=["']([^"']*)["']/,Zs=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,hd=/ref=["']([^"']*)["']/,Ad=ul("v"),pd=ul("f"),function(b,E,D,j,J,re){for(var ee,se,Ae,me,_e,Be,De=0,Le="",Je=[],He=[],ct=0,et=0,Xe="",lt=0,At=0,pt=0,jt=0,rr=Array.isArray(re.CellXf),Yt=[],cr=[],Fr=Array.isArray(E),Dr=[],pr={},Xr=!1,bn=!!D.sheetStubs,dn=b.split(fd),an=0,en=dn.length;an!=en;++an){var tn=(Le=dn[an].trim()).length;if(tn!==0){var Qr=0;e:for(De=0;De<tn;++De)switch(Le[De]){case">":if(Le[De-1]!="/"){++De;break e}if(D&&D.cellStyles){if(lt=(Ae=vn(Le.slice(Qr,De),!0)).r!=null?parseInt(Ae.r,10):lt+1,At=-1,D.sheetRows&&D.sheetRows<lt)continue;Xr=!(pr={}),Ae.ht&&(Xr=!0,pr.hpt=parseFloat(Ae.ht),pr.hpx=wc(pr.hpt)),Ae.hidden=="1"&&(Xr=!0,pr.hidden=!0),Ae.outlineLevel!=null&&(Xr=!0,pr.level=+Ae.outlineLevel),Xr&&(Dr[lt-1]=pr)}break;case"<":Qr=De}if(De<=Qr)break;if(lt=(Ae=vn(Le.slice(Qr,De),!0)).r!=null?parseInt(Ae.r,10):lt+1,At=-1,!(D.sheetRows&&D.sheetRows<lt)){j.s.r>lt-1&&(j.s.r=lt-1),j.e.r<lt-1&&(j.e.r=lt-1),D&&D.cellStyles&&(Xr=!(pr={}),Ae.ht&&(Xr=!0,pr.hpt=parseFloat(Ae.ht),pr.hpx=wc(pr.hpt)),Ae.hidden=="1"&&(Xr=!0,pr.hidden=!0),Ae.outlineLevel!=null&&(Xr=!0,pr.level=+Ae.outlineLevel),Xr&&(Dr[lt-1]=pr)),Je=Le.slice(De).split(cd);for(var En,Rn=0;Rn!=Je.length&&Je[Rn].trim().charAt(0)=="<";++Rn);for(Je=Je.slice(Rn),De=0;De!=Je.length;++De)if((Le=Je[De].trim()).length!==0){if(He=Le.match(dd),ct=De,et=0,Le="<c "+(Le.slice(0,1)=="<"?">":"")+Le,He!=null&&He.length===2){for(ct=0,Xe=He[1],et=0;et!=Xe.length&&!((ee=Xe.charCodeAt(et)-64)<1||26<ee);++et)ct=26*ct+ee;At=--ct}else++At;for(et=0;et!=Le.length&&Le.charCodeAt(et)!==62;++et);if(++et,(Ae=vn(Le.slice(0,et),!0)).r||(Ae.r=ea({r:lt-1,c:At})),se={t:""},(He=(Xe=Le.slice(et)).match(Ad))!=null&&He[1]!==""&&(se.v=ba(He[1])),D.cellFormula){(He=Xe.match(pd))!=null&&He[1]!==""?(se.f=ba(Xa(He[1])).replace(/\r\n/g,`
`),D.xlfn||(se.f=Os(se.f)),-1<He[0].indexOf('t="array"')?(se.F=(Xe.match(hd)||[])[1],-1<se.F.indexOf(":")&&Yt.push([Ua(se.F),se.F])):-1<He[0].indexOf('t="shared"')&&(_e=vn(He[0]),En=ba(Xa(He[1])),D.xlfn||(En=Os(En)),cr[parseInt(_e.si,10)]=[_e,En,Ae.r])):(He=Xe.match(/<f[^>]*\/>/))&&cr[(_e=vn(He[0])).si]&&(se.f=(Be=cr[_e.si][1],xn=cr[_e.si][2],En=Ae.r,xn=Ws(xn).s,En=ki(En),Th(Be,{r:En.r-xn.r,c:En.c-xn.c})));for(var Gn=ki(Ae.r),et=0;et<Yt.length;++et)Gn.r>=Yt[et][0].s.r&&Gn.r<=Yt[et][0].e.r&&Gn.c>=Yt[et][0].s.c&&Gn.c<=Yt[et][0].e.c&&(se.F=Yt[et][1])}if(Ae.t==null&&se.v===void 0)if(se.f||se.F)se.v=0,se.t="n";else{if(!bn)continue;se.t="z"}else se.t=Ae.t||"n";switch(j.s.c>At&&(j.s.c=At),j.e.c<At&&(j.e.c=At),se.t){case"n":if(se.v==""||se.v==null){if(!bn)continue;se.t="z"}else se.v=parseFloat(se.v);break;case"s":if(se.v===void 0){if(!bn)continue;se.t="z"}else me=je[parseInt(se.v,10)],se.v=me.t,se.r=me.r,D.cellHTML&&(se.h=me.h);break;case"str":se.t="s",se.v=se.v!=null?Xa(se.v):"",D.cellHTML&&(se.h=Ki(se.v));break;case"inlineStr":He=Xe.match(Zs),se.t="s",He!=null&&(me=ch(He[1]))?(se.v=me.t,D.cellHTML&&(se.h=me.h)):se.v="";break;case"b":se.v=si(se.v);break;case"d":D.cellDates?se.v=$e(se.v,1):(se.v=Wr($e(se.v,1)),se.t="n");break;case"e":D&&D.cellText===!1||(se.w=se.v),se.v=Hf[se.v]}var Ta,pt=jt=0,xn=null;rr&&Ae.s!==void 0&&(xn=re.CellXf[Ae.s])!=null&&(xn.numFmtId!=null&&(pt=xn.numFmtId),D.cellStyles&&xn.fillId!=null&&(jt=xn.fillId)),nr(se,pt,jt,D,J,re),D.cellDates&&rr&&se.t=="n"&&Ot(fe[pt])&&(se.t="d",se.v=ze(se.v)),Ae.cm&&D.xlmeta&&(Ta=(D.xlmeta.Cell||[])[+Ae.cm-1])&&Ta.type=="XLDAPR"&&(se.D=!0),Fr?(E[(Ta=ki(Ae.r)).r]||(E[Ta.r]=[]),E[Ta.r][Ta.c]=se):E[Ae.r]=se}}}}0<Dr.length&&(E["!rows"]=Dr)});function Mh(b,E){for(var D,j,J,re,ee=[],se=[],Ae=Ua(b["!ref"]),me=[],_e=0,He=0,Be=b["!rows"],De=Array.isArray(b),Le={r:""},Je=-1,He=Ae.s.c;He<=Ae.e.c;++He)me[He]=Oa(He);for(_e=Ae.s.r;_e<=Ae.e.r;++_e){for(se=[],J=ji(_e),He=Ae.s.c;He<=Ae.e.c;++He){j=me[He]+J;var ct=De?(b[_e]||[])[He]:b[j];ct!==void 0&&(D=(function(et,Xe,lt,At){if(et.c&&lt["!comments"].push([Xe,et.c]),et.v===void 0&&typeof et.f!="string"||et.t==="z"&&!et.f)return"";var pt="",jt=et.t,rr=et.v;if(et.t!=="z")switch(et.t){case"b":pt=et.v?"1":"0";break;case"n":pt=""+et.v;break;case"e":pt=Ml[et.v];break;case"d":pt=At&&At.cellDates?$e(et.v,-1).toISOString():((et=bt(et)).t="n",""+(et.v=Wr($e(et.v)))),et.z===void 0&&(et.z=fe[14]);break;default:pt=et.v}var Yt=wa("v",Ba(pt)),cr={r:Xe},Fr=Xt(At.cellXfs,et,At);switch(Fr!==0&&(cr.s=Fr),et.t){case"n":break;case"d":cr.t="d";break;case"b":cr.t="b";break;case"e":cr.t="e";break;case"z":break;default:if(et.v==null){delete et.t;break}if(32767<et.v.length)throw new Error("Text length must not exceed 32767 characters");if(At&&At.bookSST){Yt=wa("v",""+Ht(At.Strings,et.v,At.revStrings)),cr.t="s";break}cr.t="str"}return et.t!=jt&&(et.t=jt,et.v=rr),typeof et.f=="string"&&et.f&&(rr=et.F&&et.F.slice(0,Xe.length)==Xe?{t:"array",ref:et.F}:null,Yt=on("f",Ba(et.f),rr)+(et.v!=null?Yt:"")),et.l&&lt["!links"].push([Xe,et.l]),et.D&&(cr.cm=1),on("c",Yt,cr)})(ct,j,b,E))!=null&&se.push(D)}(0<se.length||Be&&Be[_e])&&(Le={r:J},Be&&Be[_e]&&((re=Be[_e]).hidden&&(Le.hidden=1),Je=-1,re.hpx?Je=sf(re.hpx):re.hpt&&(Je=re.hpt),-1<Je&&(Le.ht=Je,Le.customHeight=1),re.level&&(Le.outlineLevel=re.level)),ee[ee.length]=on("row",se.join(""),Le))}if(Be)for(;_e<Be.length;++_e)Be&&Be[_e]&&(Le={r:_e+1},(re=Be[_e]).hidden&&(Le.hidden=1),Je=-1,re.hpx?Je=sf(re.hpx):re.hpt&&(Je=re.hpt),-1<Je&&(Le.ht=Je,Le.customHeight=1),re.level&&(Le.outlineLevel=re.level),ee[ee.length]=on("row","",Le));return ee.join("")}function gd(b,E,D,j){var J,re,ee=[Rr,on("worksheet",null,{xmlns:ac[0],"xmlns:r":us.r})],se=D.SheetNames[b],Ae=D.Sheets[se],me=(Ae=Ae??{})["!ref"]||"A1",_e=Ua(me);if(16383<_e.e.c||1048575<_e.e.r){if(E.WTF)throw new Error("Range "+me+" exceeds format limit A1:XFD1048576");_e.e.c=Math.min(_e.e.c,16383),_e.e.r=Math.min(_e.e.c,1048575),me=ga(_e)}j=j||{},Ae["!comments"]=[];var Be,De,Le=[];(function(et,Xe,lt,At,pt){var jt=!1,rr={},Yt=null;if(At.bookType!=="xlsx"&&Xe.vbaraw){var cr=Xe.SheetNames[lt];try{Xe.Workbook&&(cr=Xe.Workbook.Sheets[lt].CodeName||cr)}catch{}jt=!0,rr.codeName=Is(Ba(cr))}et&&et["!outline"]&&(At={summaryBelow:1,summaryRight:1},et["!outline"].above&&(At.summaryBelow=0),et["!outline"].left&&(At.summaryRight=0),Yt=(Yt||"")+on("outlinePr",null,At)),(jt||Yt)&&(pt[pt.length]=on("sheetPr",Yt,rr))})(Ae,D,b,E,ee),ee[ee.length]=on("dimension",null,{ref:me}),ee[ee.length]=(se={workbookViewId:"0"},((((_e=D)||{}).Workbook||{}).Views||[])[0]&&(se.rightToLeft=_e.Workbook.Views[0].RTL?"1":"0"),on("sheetViews",on("sheetView",null,se),{})),E.sheetFormat&&(ee[ee.length]=on("sheetFormatPr",null,{defaultRowHeight:E.sheetFormat.defaultRowHeight||"16",baseColWidth:E.sheetFormat.baseColWidth||"10",outlineLevelRow:E.sheetFormat.outlineLevelRow||"7"})),Ae["!cols"]!=null&&0<Ae["!cols"].length&&(ee[ee.length]=(function(et){for(var Xe,lt=["<cols>"],At=0;At!=et.length;++At)(Xe=et[At])&&(lt[lt.length]=on("col",null,zt(At,Xe)));return lt[lt.length]="</cols>",lt.join("")})(Ae["!cols"])),ee[J=ee.length]="<sheetData/>",Ae["!links"]=[],Ae["!ref"]!=null&&0<(re=Mh(Ae,E)).length&&(ee[ee.length]=re),ee.length>J+1&&(ee[ee.length]="</sheetData>",ee[J]=ee[J].replace("/>",">")),Ae["!protect"]&&(ee[ee.length]=(Be=Ae["!protect"],De={sheet:1},ud.forEach(function(et){Be[et]!=null&&Be[et]&&(De[et]="1")}),Bh.forEach(function(et){Be[et]==null||Be[et]||(De[et]="0")}),Be.password&&(De.password=bo(Be.password).toString(16).toUpperCase()),on("sheetProtection",null,De))),Ae["!autofilter"]!=null&&(ee[ee.length]=(function(et,Xe,lt,At){var pt=typeof et.ref=="string"?et.ref:ga(et.ref);lt.Workbook||(lt.Workbook={Sheets:[]}),lt.Workbook.Names||(lt.Workbook.Names=[]);var jt=lt.Workbook.Names;(et=Ws(pt)).s.r==et.e.r&&(et.e.r=Ws(Xe["!ref"]).e.r,pt=ga(et));for(var rr=0;rr<jt.length;++rr){var Yt=jt[rr];if(Yt.Name=="_xlnm._FilterDatabase"&&Yt.Sheet==At){Yt.Ref="'"+lt.SheetNames[At]+"'!"+pt;break}}return rr==jt.length&&jt.push({Name:"_xlnm._FilterDatabase",Sheet:At,Ref:"'"+lt.SheetNames[At]+"'!"+pt}),on("autoFilter",null,{ref:pt})})(Ae["!autofilter"],Ae,D,b)),Ae["!merges"]!=null&&0<Ae["!merges"].length&&(ee[ee.length]=(function(et){if(et.length===0)return"";for(var Xe='<mergeCells count="'+et.length+'">',lt=0;lt!=et.length;++lt)Xe+='<mergeCell ref="'+ga(et[lt])+'"/>';return Xe+"</mergeCells>"})(Ae["!merges"]));var Je,He,ct=-1;return 0<Ae["!links"].length&&(ee[ee.length]="<hyperlinks>",Ae["!links"].forEach(function(et){et[1].Target&&(He={ref:et[0]},et[1].Target.charAt(0)!="#"&&(ct=oi(j,-1,Ba(et[1].Target).replace(/#.*$/,""),aa.HLINK),He["r:id"]="rId"+ct),-1<(Je=et[1].Target.indexOf("#"))&&(He.location=Ba(et[1].Target.slice(Je+1))),et[1].Tooltip&&(He.tooltip=Ba(et[1].Tooltip)),ee[ee.length]=on("hyperlink",null,He))}),ee[ee.length]="</hyperlinks>"),delete Ae["!links"],Ae["!margins"]!=null&&(ee[ee.length]=(qt(D=Ae["!margins"]),on("pageMargins",null,D))),E&&!E.ignoreEC&&E.ignoreEC!=null||(ee[ee.length]=wa("ignoredErrors",on("ignoredError",null,{numberStoredAsText:1,sqref:me}))),0<Le.length&&(ct=oi(j,-1,"../drawings/drawing"+(b+1)+".xml",aa.DRAW),ee[ee.length]=on("drawing",null,{"r:id":"rId"+ct}),Ae["!drawing"]=Le),0<Ae["!comments"].length&&(ct=oi(j,-1,"../drawings/vmlDrawing"+(b+1)+".vml",aa.VML),ee[ee.length]=on("legacyDrawing",null,{"r:id":"rId"+ct}),Ae["!legacy"]=ct),1<ee.length&&(ee[ee.length]="</worksheet>",ee[1]=ee[1].replace("/>",">")),ee.join("")}function Dh(b,E,D,j){D=(function(J,re,ee){var se=Cr(145),Ae=(ee["!rows"]||[])[J]||{};se.write_shift(4,J),se.write_shift(4,0);var _e=320;Ae.hpx?_e=20*sf(Ae.hpx):Ae.hpt&&(_e=20*Ae.hpt),se.write_shift(2,_e),se.write_shift(1,0),_e=0,Ae.level&&(_e|=Ae.level),Ae.hidden&&(_e|=16),(Ae.hpx||Ae.hpt)&&(_e|=32),se.write_shift(1,_e),se.write_shift(1,0);var me=0,_e=se.l;se.l+=4;for(var Be={r:J,c:0},De=0;De<16;++De)if(!(re.s.c>De+1<<10||re.e.c<De<<10)){for(var Le=-1,Je=-1,He=De<<10;He<De+1<<10;++He)Be.c=He,(Array.isArray(ee)?(ee[Be.r]||[])[Be.c]:ee[ea(Be)])&&(Le<0&&(Le=He),Je=He);Le<0||(++me,se.write_shift(4,Le),se.write_shift(4,Je))}return J=se.l,se.l=_e,se.write_shift(4,me),se.l=J,se.length>se.l?se.slice(0,se.l):se})(j,D,E),(17<D.length||(E["!rows"]||[])[j])&&Nr(b,0,D)}var Cc=Ar,pf=_n;function vd(b){return[oc(b),Vn(b),"n"]}var ru=Ar,Oh=_n,Xo=["left","right","top","bottom","header","footer"];function Sc(b,E,D,j,J,re,ee){if(E.v===void 0)return!1;var se="";switch(E.t){case"b":se=E.v?"1":"0";break;case"d":(E=bt(E)).z=E.z||fe[14],E.v=Wr($e(E.v)),E.t="n";break;case"n":case"e":se=""+E.v;break;default:se=E.v}var Ae,me,_e,Be,De,Le,Je,He,ct,et,Xe,lt,At,pt,jt,rr,Yt,cr,Fr,Dr,pr={r:D,c:j};switch(pr.s=Xt(J.cellXfs,E,J),E.l&&re["!links"].push([ea(pr),E.l]),E.c&&re["!comments"].push([ea(pr),E.c]),E.t){case"s":case"str":return J.bookSST?(se=Ht(J.Strings,E.v,J.revStrings),pr.t="s",pr.v=se,ee?Nr(b,18,(Go(Yt=pr,cr=cr??Cr(8)),cr.write_shift(4,Yt.v),cr)):Nr(b,7,(sc(Yt=pr,rr=rr??Cr(12)),rr.write_shift(4,Yt.v),rr))):(pr.t="str",ee?Nr(b,17,(pt=E,Go(pr,jt=jt??Cr(8+4*pt.v.length)),ts(pt.v,jt),jt.length>jt.l?jt.slice(0,jt.l):jt)):Nr(b,6,(pt=E,sc(pr,At=At??Cr(12+4*pt.v.length)),ts(pt.v,At),At.length>At.l?At.slice(0,At.l):At))),!0;case"n":return E.v==(0|E.v)&&-1e3<E.v&&E.v<1e3?ee?Nr(b,13,(Xe=E,Go(pr,lt=lt??Cr(8)),er(Xe.v,lt),lt)):Nr(b,2,(Xe=E,sc(pr,et=et??Cr(12)),er(Xe.v,et),et)):ee?Nr(b,16,(He=E,Go(pr,ct=ct??Cr(12)),Na(He.v,ct),ct)):Nr(b,5,(He=E,sc(pr,Je=Je??Cr(16)),Na(He.v,Je),Je)),!0;case"b":return pr.t="b",ee?Nr(b,15,(De=E,Go(pr,Le=Le??Cr(5)),Le.write_shift(1,De.v?1:0),Le)):Nr(b,4,(De=E,sc(pr,Be=Be??Cr(9)),Be.write_shift(1,De.v?1:0),Be)),!0;case"e":return pr.t="e",ee?Nr(b,14,(me=E,Go(pr,_e=_e??Cr(8)),_e.write_shift(1,me.v),_e.write_shift(2,0),_e.write_shift(1,0),_e)):Nr(b,3,(me=E,sc(pr,Ae=Ae??Cr(9)),Ae.write_shift(1,me.v),Ae)),!0}return ee?Nr(b,12,Go(pr,Dr=Dr??Cr(4))):Nr(b,1,sc(pr,Fr=Fr??Cr(8))),!0}function $p(b,E){var D,j;E&&E["!merges"]&&(Nr(b,177,(D=E["!merges"].length,(j=j??Cr(4)).write_shift(4,D),j)),E["!merges"].forEach(function(J){Nr(b,176,Oh(J))}),Nr(b,178))}function Kp(b,E){E&&E["!cols"]&&(Nr(b,390),E["!cols"].forEach(function(D,j){D&&Nr(b,60,(function(J,re,ee){ee==null&&(ee=Cr(18));var se=zt(J,re);return ee.write_shift(-4,J),ee.write_shift(-4,J),ee.write_shift(4,256*(se.width||10)),ee.write_shift(4,0),J=0,re.hidden&&(J|=1),typeof se.width=="number"&&(J|=2),re.level&&(J|=re.level<<8),ee.write_shift(2,J),ee})(j,D))}),Nr(b,391))}function Yp(b,E){var D;E&&E["!ref"]&&(Nr(b,648),Nr(b,649,(D=Ua(E["!ref"]),(E=Cr(24)).write_shift(4,4),E.write_shift(4,1),_n(D,E),E)),Nr(b,650))}function Xp(b,E,D){E["!links"].forEach(function(j){var J,re;j[1].Target&&(J=oi(D,-1,j[1].Target.replace(/#.*$/,""),aa.HLINK),Nr(b,494,(re=J,j=Cr(50+4*((J=j)[1].Target.length+(J[1].Tooltip||"").length)),_n({s:ki(J[0]),e:ki(J[0])},j),bA("rId"+re,j),ts(((re=J[1].Target.indexOf("#"))==-1?"":J[1].Target.slice(re+1))||"",j),ts(J[1].Tooltip||"",j),ts("",j),j.slice(0,j.l))))}),delete E["!links"]}function Zp(b,E,D){Nr(b,133),Nr(b,137,(function(j,J){J==null&&(J=Cr(30));var re=924;return(((j||{}).Views||[])[0]||{}).RTL&&(re|=32),J.write_shift(2,re),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(4,0),J.write_shift(1,0),J.write_shift(1,0),J.write_shift(2,0),J.write_shift(2,100),J.write_shift(2,0),J.write_shift(2,0),J.write_shift(2,0),J.write_shift(4,0),J})(D)),Nr(b,138),Nr(b,134)}function Jp(b,E){var D,j;E["!protect"]&&Nr(b,535,(D=E["!protect"],(j=j??Cr(66)).write_shift(2,D.password?bo(D.password):0),j.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(J){J[1]?j.write_shift(4,D[J[0]]==null||D[J[0]]?0:1):j.write_shift(4,D[J[0]]!=null&&D[J[0]]?0:1)}),j))}function qp(b,E,D,j){var J=oo(),me=D.SheetNames[b],re=D.Sheets[me]||{},ee=me;try{D&&D.Workbook&&(ee=D.Workbook.Sheets[b].CodeName||ee)}catch{}var se,Ae,me=Ua(re["!ref"]||"A1");if(16383<me.e.c||1048575<me.e.r){if(E.WTF)throw new Error("Range "+(re["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");me.e.c=Math.min(me.e.c,16383),me.e.r=Math.min(me.e.c,1048575)}return re["!links"]=[],re["!comments"]=[],Nr(J,129),(D.vbaraw||re["!outline"])&&Nr(J,147,(function(_e,Be,De){De==null&&(De=Cr(84+4*_e.length));var Le=192;Be&&(Be.above&&(Le&=-65),Be.left&&(Le&=-129)),De.write_shift(1,Le);for(var Je=1;Je<3;++Je)De.write_shift(1,0);return Hi({auto:1},De),De.write_shift(-4,-1),De.write_shift(-4,-1),gA(_e,De),De.slice(0,De.l)})(ee,re["!outline"])),Nr(J,148,pf(me)),Zp(J,0,D.Workbook),Kp(J,re),(function(_e,Be,De){var Le,Je=Ua(Be["!ref"]||"A1"),He=[];Nr(_e,145);var ct=Array.isArray(Be),et=Je.e.r;Be["!rows"]&&(et=Math.max(Je.e.r,Be["!rows"].length-1));for(var Xe=Je.s.r;Xe<=et;++Xe){Le=ji(Xe),Dh(_e,Be,Je,Xe);var lt=!1;if(Xe<=Je.e.r)for(var At=Je.s.c;At<=Je.e.c;++At){Xe===Je.s.r&&(He[At]=Oa(At)),pt=He[At]+Le;var pt=ct?(Be[Xe]||[])[At]:Be[pt];pt?lt=Sc(_e,pt,Xe,At,De,Be,lt):lt=!1}}Nr(_e,146)})(J,re,E),Jp(J,re),(function(_e,Be,De,Le){if(Be["!autofilter"]){var ct=Be["!autofilter"],Je=typeof ct.ref=="string"?ct.ref:ga(ct.ref);De.Workbook||(De.Workbook={Sheets:[]}),De.Workbook.Names||(De.Workbook.Names=[]);var He=De.Workbook.Names,ct=Ws(Je);ct.s.r==ct.e.r&&(ct.e.r=Ws(Be["!ref"]).e.r,Je=ga(ct));for(var et=0;et<He.length;++et){var Xe=He[et];if(Xe.Name=="_xlnm._FilterDatabase"&&Xe.Sheet==Le){Xe.Ref="'"+De.SheetNames[Le]+"'!"+Je;break}}et==He.length&&He.push({Name:"_xlnm._FilterDatabase",Sheet:Le,Ref:"'"+De.SheetNames[Le]+"'!"+Je}),Nr(_e,161,_n(Ua(Je))),Nr(_e,162)}})(J,re,D,b),$p(J,re),Xp(J,re,j),re["!margins"]&&Nr(J,476,(se=re["!margins"],Ae==null&&(Ae=Cr(48)),qt(se),Xo.forEach(function(_e){Na(se[_e],Ae)}),Ae)),E&&!E.ignoreEC&&E.ignoreEC!=null||Yp(J,re),me=J,E=b,j=j,0<(re=re)["!comments"].length&&(E=oi(j,-1,"../drawings/vmlDrawing"+(E+1)+".vml",aa.VML),Nr(me,551,bA("rId"+E)),re["!legacy"]=E),Nr(J,130),J.end()}function em(b,E,D,j,J,re){var ee=re||{"!type":"chart"};if(!b)return re;var se,Ae=0,me=0,_e={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(b.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(Be){var De=(function(Le){var Je,He=[],ct=Le.match(/^<c:numCache>/);(Le.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(Xe){Xe=Xe.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/),Xe&&(He[+Xe[1]]=ct?+Xe[2]:Xe[2])});var et=ba((Le.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(Le.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(Xe){Je=Xe.replace(/<.*?>/g,"")}),[He,et,Je]})(Be);_e.s.r=_e.s.c=0,_e.e.c=Ae,se=Oa(Ae),De[0].forEach(function(Le,Je){ee[se+ji(Je)]={t:"n",v:Le,z:De[1]},me=Je}),_e.e.r<me&&(_e.e.r=me),++Ae}),0<Ae&&(ee["!ref"]=ga(_e)),ee}var Lh=[["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"]],tm=[["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"]],rm=[],nm=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function i0(b,E){for(var D=0;D!=b.length;++D)for(var j=b[D],J=0;J!=E.length;++J){var re=E[J];if(j[re[0]]==null)j[re[0]]=re[1];else switch(re[2]){case"bool":typeof j[re[0]]=="string"&&(j[re[0]]=si(j[re[0]]));break;case"int":typeof j[re[0]]=="string"&&(j[re[0]]=parseInt(j[re[0]],10))}}}function s0(b,E){for(var D=0;D!=E.length;++D){var j=E[D];if(b[j[0]]==null)b[j[0]]=j[1];else switch(j[2]){case"bool":typeof b[j[0]]=="string"&&(b[j[0]]=si(b[j[0]]));break;case"int":typeof b[j[0]]=="string"&&(b[j[0]]=parseInt(b[j[0]],10))}}}function mv(b){s0(b.WBProps,Lh),s0(b.CalcPr,nm),i0(b.WBView,tm),i0(b.Sheets,rm),rt.date1904=si(b.WBProps.date1904)}var Og="][*?/\\".split("");function Lg(b,E){if(31<b.length)throw new Error("Sheet names cannot exceed 31 chars");var D=!0;return Og.forEach(function(j){if(b.indexOf(j)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),D}function gv(b){if(!b||!b.SheetNames||!b.Sheets)throw new Error("Invalid Workbook");if(!b.SheetNames.length)throw new Error("Workbook is empty");var E,D,j,J=b.Workbook&&b.Workbook.Sheets||[];E=b.SheetNames,D=J,j=!!b.vbaraw,E.forEach(function(ee,se){Lg(ee);for(var Ae=0;Ae<se;++Ae)if(ee==E[Ae])throw new Error("Duplicate Sheet Name: "+ee);if(j){var me=D&&D[se]&&D[se].CodeName||ee;if(me.charCodeAt(0)==95&&22<me.length)throw new Error("Bad Code Name: Worksheet"+me)}});for(var re=0;re<b.SheetNames.length;++re)(function(ee,se){if(ee&&ee["!ref"]){var Ae=Ua(ee["!ref"]);if(Ae.e.c<Ae.s.c||Ae.e.r<Ae.s.r)throw new Error("Bad range ("+se+"): "+ee["!ref"])}})(b.Sheets[b.SheetNames[re]],(b.SheetNames[re],re))}var jy=/<\w+:workbook/;function vv(b){var E=[Rr];E[E.length]=on("workbook",null,{xmlns:ac[0],"xmlns:r":us.r});var D=b.Workbook&&0<(b.Workbook.Names||[]).length,j={codeName:"ThisWorkbook"};b.Workbook&&b.Workbook.WBProps&&(Lh.forEach(function(se){b.Workbook.WBProps[se[0]]!=null&&b.Workbook.WBProps[se[0]]!=se[1]&&(j[se[0]]=b.Workbook.WBProps[se[0]])}),b.Workbook.WBProps.CodeName&&(j.codeName=b.Workbook.WBProps.CodeName,delete j.CodeName)),E[E.length]=on("workbookPr",null,j);var J=b.Workbook&&b.Workbook.Sheets||[],re=0;if(J&&J[0]&&J[0].Hidden){for(E[E.length]="<bookViews>",re=0;re!=b.SheetNames.length&&J[re]&&J[re].Hidden;++re);re==b.SheetNames.length&&(re=0),E[E.length]='<workbookView firstSheet="'+re+'" activeTab="'+re+'"/>',E[E.length]="</bookViews>"}for(E[E.length]="<sheets>",re=0;re!=b.SheetNames.length;++re){var ee={name:Ba(b.SheetNames[re].slice(0,31))};if(ee.sheetId=""+(re+1),ee["r:id"]="rId"+(re+1),J[re])switch(J[re].Hidden){case 1:ee.state="hidden";break;case 2:ee.state="veryHidden"}E[E.length]=on("sheet",null,ee)}return E[E.length]="</sheets>",D&&(E[E.length]="<definedNames>",b.Workbook&&b.Workbook.Names&&b.Workbook.Names.forEach(function(se){var Ae={name:se.Name};se.Comment&&(Ae.comment=se.Comment),se.Sheet!=null&&(Ae.localSheetId=""+se.Sheet),se.Hidden&&(Ae.hidden="1"),se.Ref&&(E[E.length]=on("definedName",Ba(se.Ref),Ae))}),E[E.length]="</definedNames>"),2<E.length&&(E[E.length]="</workbook>",E[1]=E[1].replace("/>",">")),E.join("")}function Hy(b,E){var D={};return b.read_shift(4),D.ArchID=b.read_shift(4),b.l+=E-8,D}function Qy(b,E){Nr(b,143);for(var D,j=0;j!=E.SheetNames.length;++j){var J={Hidden:E.Workbook&&E.Workbook.Sheets&&E.Workbook.Sheets[j]&&E.Workbook.Sheets[j].Hidden||0,iTabID:j+1,strRelID:"rId"+(j+1),name:E.SheetNames[j]};Nr(b,156,(D=J,(J=(J=void 0)||Cr(127)).write_shift(4,D.Hidden),J.write_shift(4,D.iTabID),bA(D.strRelID,J),ts(D.name.slice(0,31),J),J.length>J.l?J.slice(0,J.l):J))}Nr(b,144)}function zy(b,E){if(E.Workbook&&E.Workbook.Sheets){for(var D,j=E.Workbook.Sheets,J=0,re=-1,ee=-1;J<j.length;++J)!j[J]||!j[J].Hidden&&re==-1?re=J:j[J].Hidden==1&&ee==-1&&(ee=J);re<ee||(Nr(b,135),Nr(b,158,(E=re,(D=D||Cr(29)).write_shift(-4,0),D.write_shift(-4,460),D.write_shift(4,28800),D.write_shift(4,17600),D.write_shift(4,500),D.write_shift(4,E),D.write_shift(4,E),D.write_shift(1,120),D.length>D.l?D.slice(0,D.l):D)),Nr(b,136))}}function Vy(b,E){var D=oo();return Nr(D,131),Nr(D,128,(function(j){j=j||Cr(127);for(var J=0;J!=4;++J)j.write_shift(4,0);return ts("SheetJS",j),ts(n.version,j),ts(n.version,j),ts("7262",j),j.length>j.l?j.slice(0,j.l):j})()),Nr(D,153,(function(j,J){J=J||Cr(72);var re=0;return j&&j.filterPrivacy&&(re|=8),J.write_shift(4,re),J.write_shift(4,0),gA(j&&j.CodeName||"ThisWorkbook",J),J.slice(0,J.l)})(b.Workbook&&b.Workbook.WBProps||null)),zy(D,b),Qy(D,b),Nr(D,132),D.end()}function Wy(b,E,D){return(E.slice(-4)===".bin"?function(j,J){var re={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},ee=[],se=!1;(J=J||{}).biff=12;var Ae=[],me=[[]];return me.SheetNames=[],me.XTI=[],u0[16]={n:"BrtFRTArchID$",f:Hy},Bl(j,function(_e,Be,De){switch(De){case 156:me.SheetNames.push(_e.name),re.Sheets.push(_e);break;case 153:re.WBProps=_e;break;case 39:_e.Sheet!=null&&(J.SID=_e.Sheet),_e.Ref=Ys(_e.Ptg,0,null,me,J),delete J.SID,delete _e.Ptg,Ae.push(_e);break;case 1036:break;case 357:case 358:case 355:case 667:me[0].length?me.push([De,_e]):me[0]=[De,_e],me[me.length-1].XTI=[];break;case 362:me.length===0&&(me[0]=[],me[0].XTI=[]),me[me.length-1].XTI=me[me.length-1].XTI.concat(_e),me.XTI=me.XTI.concat(_e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;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:break;case 35:ee.push(De),se=!0;break;case 36:ee.pop(),se=!1;break;case 37:ee.push(De),se=!0;break;case 38:ee.pop(),se=!1;break;case 16:break;default:if(!Be.T&&(!se||J.WTF&&ee[ee.length-1]!=37&&ee[ee.length-1]!=35))throw new Error("Unexpected record 0x"+De.toString(16))}},J),mv(re),re.Names=Ae,re.supbooks=me,re}:function(j,J){if(!j)throw new Error("Could not find file");var re={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},ee=!1,se="xmlns",Ae={},me=0;if(j.replace(lr,function(_e,Be){var De=vn(_e);switch(ri(De[0])){case"<?xml":break;case"<workbook":_e.match(jy)&&(se="xmlns"+_e.match(/<(\w+):/)[1]),re.xmlns=De[se];break;case"</workbook>":break;case"<fileVersion":delete De[0],re.AppVersion=De;break;case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Lh.forEach(function(Le){if(De[Le[0]]!=null)switch(Le[2]){case"bool":re.WBProps[Le[0]]=si(De[Le[0]]);break;case"int":re.WBProps[Le[0]]=parseInt(De[Le[0]],10);break;default:re.WBProps[Le[0]]=De[Le[0]]}}),De.codeName&&(re.WBProps.CodeName=Xa(De.codeName));break;case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete De[0],re.WBView.push(De);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(De.state){case"hidden":De.Hidden=1;break;case"veryHidden":De.Hidden=2;break;default:De.Hidden=0}delete De.state,De.name=ba(Xa(De.name)),delete De[0],re.Sheets.push(De);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":break;case"<definedNames>":case"<definedNames":ee=!0;break;case"</definedNames>":ee=!1;break;case"<definedName":(Ae={}).Name=Xa(De.name),De.comment&&(Ae.Comment=De.comment),De.localSheetId&&(Ae.Sheet=+De.localSheetId),si(De.hidden||"0")&&(Ae.Hidden=!0),me=Be+_e.length;break;case"</definedName>":Ae.Ref=ba(Xa(j.slice(me,Be))),re.Names.push(Ae);break;case"<definedName/>":break;case"<calcPr":case"<calcPr/>":delete De[0],re.CalcPr=De;break;case"</calcPr>":case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":ee=!0;break;case"</ext>":ee=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":ee=!0;break;case"</AlternateContent>":ee=!1;break;case"<revisionPtr":break;default:if(!ee&&J.WTF)throw new Error("unrecognized "+De[0]+" in workbook")}return _e}),ac.indexOf(re.xmlns)===-1)throw new Error("Unknown Namespace: "+re.xmlns);return mv(re),re})(b,D)}function yv(b,E,D,j,J,re,ee,se){return(E.slice(-4)===".bin"?function(Ae,me,_e,Be,De,Le,Je){if(!Ae)return Ae;var He=me||{};Be=Be||{"!id":{}};var ct,et,Xe,lt,At,pt,jt,rr,Yt,cr,Fr=He.dense?[]:{},Dr={s:{r:2e6,c:2e6},e:{r:0,c:0}},pr=!1,Xr=!1,bn=[];He.biff=12;var dn=He["!row"]=0,an=!1,en=[],tn={},Qr=He.supbooks||De.supbooks||[[]];if(Qr.sharedf=tn,Qr.arrayf=en,Qr.SheetNames=De.SheetNames||De.Sheets.map(function(Yr){return Yr.name}),!He.supbooks&&(He.supbooks=Qr,De.Names))for(var En=0;En<De.Names.length;++En)Qr[0][En+1]=De.Names[En];var Rn,Gn=[],Ta=[],xn=!1;return u0[16]={n:"BrtShortReal",f:vd},Bl(Ae,function(Yr,la,Ka){if(!Xr)switch(Ka){case 148:ct=Yr;break;case 0:et=Yr,He.sheetRows&&He.sheetRows<=et.r&&(Xr=!0),Yt=ji(At=et.r),He["!row"]=et.r,(Yr.hidden||Yr.hpt||Yr.level!=null)&&(Yr.hpt&&(Yr.hpx=wc(Yr.hpt)),Ta[Yr.r]=Yr);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(Xe={t:Yr[2]},Yr[2]){case"n":Xe.v=Yr[1];break;case"s":rr=je[Yr[1]],Xe.v=rr.t,Xe.r=rr.r;break;case"b":Xe.v=!!Yr[1];break;case"e":Xe.v=Yr[1],He.cellText!==!1&&(Xe.w=Ml[Xe.v]);break;case"str":Xe.t="s",Xe.v=Yr[1];break;case"is":Xe.t="s",Xe.v=Yr[1].t}if((lt=Je.CellXf[Yr[0].iStyleRef])&&nr(Xe,lt.numFmtId,null,He,Le,Je),pt=Yr[0].c==-1?pt+1:Yr[0].c,He.dense?(Fr[At]||(Fr[At]=[]),Fr[At][pt]=Xe):Fr[Oa(pt)+Yt]=Xe,He.cellFormula){for(an=!1,dn=0;dn<en.length;++dn){var ja=en[dn];et.r>=ja[0].s.r&&et.r<=ja[0].e.r&&pt>=ja[0].s.c&&pt<=ja[0].e.c&&(Xe.F=ga(ja[0]),an=!0)}!an&&3<Yr.length&&(Xe.f=Yr[3])}Dr.s.r>et.r&&(Dr.s.r=et.r),Dr.s.c>pt&&(Dr.s.c=pt),Dr.e.r<et.r&&(Dr.e.r=et.r),Dr.e.c<pt&&(Dr.e.c=pt),He.cellDates&&lt&&Xe.t=="n"&&Ot(fe[lt.numFmtId])&&(fi=K(Xe.v))&&(Xe.t="d",Xe.v=new Date(fi.y,fi.m-1,fi.d,fi.H,fi.M,fi.S,fi.u)),Rn&&(Rn.type=="XLDAPR"&&(Xe.D=!0),Rn=void 0);break;case 1:case 12:if(!He.sheetStubs||pr)break;Xe={t:"z",v:void 0},pt=Yr[0].c==-1?pt+1:Yr[0].c,He.dense?(Fr[At]||(Fr[At]=[]),Fr[At][pt]=Xe):Fr[Oa(pt)+Yt]=Xe,Dr.s.r>et.r&&(Dr.s.r=et.r),Dr.s.c>pt&&(Dr.s.c=pt),Dr.e.r<et.r&&(Dr.e.r=et.r),Dr.e.c<pt&&(Dr.e.c=pt),Rn&&(Rn.type=="XLDAPR"&&(Xe.D=!0),Rn=void 0);break;case 176:bn.push(Yr);break;case 49:Rn=((He.xlmeta||{}).Cell||[])[Yr-1];break;case 494:var fi=Be["!id"][Yr.relId];for(fi?(Yr.Target=fi.Target,Yr.loc&&(Yr.Target+="#"+Yr.loc),Yr.Rel=fi):Yr.relId==""&&(Yr.Target="#"+Yr.loc),At=Yr.rfx.s.r;At<=Yr.rfx.e.r;++At)for(pt=Yr.rfx.s.c;pt<=Yr.rfx.e.c;++pt)He.dense?(Fr[At]||(Fr[At]=[]),Fr[At][pt]||(Fr[At][pt]={t:"z",v:void 0}),Fr[At][pt].l=Yr):(jt=ea({c:pt,r:At}),Fr[jt]||(Fr[jt]={t:"z",v:void 0}),Fr[jt].l=Yr);break;case 426:if(!He.cellFormula)break;en.push(Yr),(cr=He.dense?Fr[At][pt]:Fr[Oa(pt)+Yt]).f=Ys(Yr[1],0,{r:et.r,c:pt},Qr,He),cr.F=ga(Yr[0]);break;case 427:if(!He.cellFormula)break;tn[ea(Yr[0].s)]=Yr[1],(cr=He.dense?Fr[At][pt]:Fr[Oa(pt)+Yt]).f=Ys(Yr[1],0,{r:et.r,c:pt},Qr,He);break;case 60:if(!He.cellStyles)break;for(;Yr.e>=Yr.s;)Gn[Yr.e--]={width:Yr.w/256,hidden:!!(1&Yr.flags),level:Yr.level},xn||(xn=!0,rd(Yr.w/256)),Fu(Gn[Yr.e+1]);break;case 161:Fr["!autofilter"]={ref:ga(Yr)};break;case 476:Fr["!margins"]=Yr;break;case 147:De.Sheets[_e]||(De.Sheets[_e]={}),Yr.name&&(De.Sheets[_e].CodeName=Yr.name),(Yr.above||Yr.left)&&(Fr["!outline"]={above:Yr.above,left:Yr.left});break;case 137:De.Views||(De.Views=[{}]),De.Views[0]||(De.Views[0]={}),Yr.RTL&&(De.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:case 151:break;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:pr=!0;break;case 36:pr=!1;break;case 37:pr=!0;break;case 38:pr=!1;break;default:if(!la.T&&(!pr||He.WTF))throw new Error("Unexpected record 0x"+Ka.toString(16))}},He),delete He.supbooks,delete He["!row"],!Fr["!ref"]&&(Dr.s.r<2e6||ct&&(0<ct.e.r||0<ct.e.c||0<ct.s.r||0<ct.s.c))&&(Fr["!ref"]=ga(ct||Dr)),He.sheetRows&&Fr["!ref"]&&(Ae=Ua(Fr["!ref"]),He.sheetRows<=+Ae.e.r&&(Ae.e.r=He.sheetRows-1,Ae.e.r>Dr.e.r&&(Ae.e.r=Dr.e.r),Ae.e.r<Ae.s.r&&(Ae.s.r=Ae.e.r),Ae.e.c>Dr.e.c&&(Ae.e.c=Dr.e.c),Ae.e.c<Ae.s.c&&(Ae.s.c=Ae.e.c),Fr["!fullref"]=Fr["!ref"],Fr["!ref"]=ga(Ae))),0<bn.length&&(Fr["!merges"]=bn),0<Gn.length&&(Fr["!cols"]=Gn),0<Ta.length&&(Fr["!rows"]=Ta),Fr}:Pu)(b,j,D,J,re,ee,se)}function Gy(b,E,D,j,J,re){return E.slice(-4)===".bin"?(function(ee,se,Ae,me,_e){if(!ee)return ee;me=me||{"!id":{}};var Be={"!type":"chart","!drawel":null,"!rel":""},De=!1;return Bl(ee,function(Le,Je,He){switch(He){case 550:Be["!rel"]=Le;break;case 651:_e.Sheets[Ae]||(_e.Sheets[Ae]={}),Le.name&&(_e.Sheets[Ae].CodeName=Le.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:De=!0;break;case 36:De=!1;break;case 37:break;case 38:break;default:if(!(0<Je.T)){if(!(Je.T<0)){if(!De||se.WTF)throw new Error("Unexpected record 0x"+He.toString(16))}}}},se),me["!id"][Be["!rel"]]&&(Be["!drawel"]=me["!id"][Be["!rel"]]),Be})(b,j,D,J,re):(function(ee,se,Ae,me){if(!ee)return ee;Ae=Ae||{"!id":{}};var _e={"!type":"chart","!drawel":null,"!rel":""},Be=ee.match(Xs);return Be&&Ls(Be[0],0,me,se),(ee=ee.match(/drawing r:id="(.*?)"/))&&(_e["!rel"]=ee[1]),Ae["!id"][_e["!rel"]]&&(_e["!drawel"]=Ae["!id"][_e["!rel"]]),_e})(b,D,J,re)}function am(b,E,D,j){return(E.slice(-4)===".bin"?function(J,re,ee){var se,Ae={NumberFmt:[]};for(se in fe)Ae.NumberFmt[se]=fe[se];Ae.CellXf=[],Ae.Fonts=[];var me=[],_e=!1;return Bl(J,function(Be,De,Le){switch(Le){case 44:Ae.NumberFmt[Be[0]]=Be[1],vr(Be[1],Be[0]);break;case 43:Ae.Fonts.push(Be),Be.color.theme!=null&&re&&re.themeElements&&re.themeElements.clrScheme&&(Be.color.rgb=af(re.themeElements.clrScheme[Be.color.theme].rgb,Be.color.tint||0));break;case 1025:case 45:case 46:break;case 47:me[me.length-1]==617&&Ae.CellXf.push(Be);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:_e=!0;break;case 36:_e=!1;break;case 37:me.push(Le),_e=!0;break;case 38:me.pop(),_e=!1;break;default:if(0<De.T)me.push(Le);else if(De.T<0)me.pop();else if(!_e||ee.WTF&&me[me.length-1]!=37)throw new Error("Unexpected record 0x"+Le.toString(16))}}),Ae}:lf)(b,D,j)}function $y(b,E,D){return E.slice(-4)===".bin"?(j=D,re=!(J=[]),Bl(b,function(ee,se,Ae){switch(Ae){case 159:J.Count=ee[0],J.Unique=ee[1];break;case 19:J.push(ee);break;case 160:return 1;case 35:re=!0;break;case 36:re=!1;break;default:if(se.T,!re||j.WTF)throw new Error("Unexpected record 0x"+Ae.toString(16))}}),J):(function(ee,se){var Ae=[],me="";if(!ee)return Ae;if(ee=ee.match(jA)){me=ee[2].replace(Cg,"").split(HA);for(var _e=0;_e!=me.length;++_e){var Be=ch(me[_e].trim(),se);Be!=null&&(Ae[Ae.length]=Be)}ee=vn(ee[1]),Ae.Count=ee.count,Ae.Unique=ee.uniqueCount}return Ae})(b,D);var j,J,re}function Ky(b,E,D){return E.slice(-4)===".bin"?(j=D,J=[],re=[],se=!(ee={}),Bl(b,function(Ae,me,_e){switch(_e){case 632:re.push(Ae);break;case 635:ee=Ae;break;case 637:ee.t=Ae.t,ee.h=Ae.h,ee.r=Ae.r;break;case 636:if(ee.author=re[ee.iauthor],delete ee.iauthor,j.sheetRows&&ee.rfx&&j.sheetRows<=ee.rfx.r)break;ee.t||(ee.t=""),delete ee.rfx,J.push(ee);break;case 3072:break;case 35:se=!0;break;case 36:se=!1;break;case 37:case 38:break;default:if(!me.T&&(!se||j.WTF))throw new Error("Unexpected record 0x"+_e.toString(16))}}),J):(function(Ae,me){if(Ae.match(/<(?:\w+:)?comments *\/>/))return[];var _e=[],Be=[],De=Ae.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);return De&&De[1]&&De[1].split(/<\/\w*:?author>/).forEach(function(Le){Le===""||Le.trim()===""||(Le=Le.match(/<(?:\w+:)?author[^>]*>(.*)/))&&_e.push(Le[1])}),(Ae=Ae.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/))&&Ae[1]&&Ae[1].split(/<\/\w*:?comment>/).forEach(function(Le){var Je,He;Le===""||Le.trim()===""||(Je=Le.match(/<(?:\w+:)?comment[^>]*>/))&&(Je={author:(He=vn(Je[0])).authorId&&_e[He.authorId]||"sheetjsghost",ref:He.ref,guid:He.guid},He=ki(He.ref),me.sheetRows&&me.sheetRows<=He.r||(Le=!!(Le=Le.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/))&&!!Le[1]&&ch(Le[1])||{r:"",t:"",h:""},Je.r=Le.r,Le.r=="<t></t>"&&(Le.t=Le.h=""),Je.t=(Le.t||"").replace(/\r\n/g,`
`).replace(/\r/g,`
`),me.cellHTML&&(Je.h=Le.h),Be.push(Je)))}),Be})(b,D);var j,J,re,ee,se}function Yy(b,E){return E.slice(-4)===".bin"?(D=[],Bl(b,function(j,J,re){if(re===63)D.push(j);else if(!J.T)throw new Error("Unexpected record 0x"+re.toString(16))}),D):(function(j){var J=[];if(!j)return J;var re=1;return(j.match(lr)||[]).forEach(function(ee){var se=vn(ee);switch(se[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete se[0],se.i?re=se.i:se.i=re,J.push(se)}}),J})(b);var D}function Xy(b,E,D,j){if(D.slice(-4)===".bin")return(function(J,re){if(!J)return J;var ee=re||{},se=!1;Bl(J,function(Ae,me,_e){switch(_e){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:se=!0;break;case 36:se=!1;break;default:if(!me.T&&(!se||ee.WTF))throw new Error("Unexpected record 0x"+_e.toString(16))}},ee)})(b,j)}function Zy(b,E,D){return E.slice(-4)===".bin"?(j={Types:[],Cell:[],Value:[]},J=D||{},ee=!(re=[]),se=2,Bl(b,function(Ae,me,_e){switch(_e){case 335:j.Types.push({name:Ae.name});break;case 51:Ae.forEach(function(Be){se==1?j.Cell.push({type:j.Types[Be[0]-1].name,index:Be[1]}):se==0&&j.Value.push({type:j.Types[Be[0]-1].name,index:Be[1]})});break;case 337:se=Ae?1:0;break;case 338:se=2;break;case 35:re.push(_e),ee=!0;break;case 36:re.pop(),ee=!1;break;default:if(!me.T&&(!ee||J.WTF&&re[re.length-1]!=35))throw new Error("Unexpected record 0x"+_e.toString(16))}}),j):(function(Ae,me){var _e={Types:[],Cell:[],Value:[]};if(!Ae)return _e;var Be,De=!1,Le=2;return Ae.replace(lr,function(Je){var He=vn(Je);switch(ri(He[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":_e.Types.push({name:He.name});break;case"</metadataType>":break;case"<futureMetadata":for(var ct=0;ct<_e.Types.length;++ct)_e.Types[ct].name==He.name&&(Be=_e.Types[ct]);break;case"</futureMetadata>":case"<bk>":case"</bk>":break;case"<rc":Le==1?_e.Cell.push({type:_e.Types[He.t-1].name,index:+He.v}):Le==0&&_e.Value.push({type:_e.Types[He.t-1].name,index:+He.v});break;case"</rc>":break;case"<cellMetadata":Le=1;break;case"</cellMetadata>":Le=2;break;case"<valueMetadata":Le=0;break;case"</valueMetadata>":Le=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":De=!0;break;case"</ext>":De=!1;break;case"<rvb":if(!Be)break;Be.offsets||(Be.offsets=[]),Be.offsets.push(+He.i);break;default:if(!De&&me.WTF)throw new Error("unrecognized "+He[0]+" in metadata")}return Je}),_e})(b,D);var j,J,re,ee,se}var o0,bv=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,wv=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function nu(b,E){var D=b.split(/\s+/),j=[];if(j[0]=D[0],D.length===1)return j;var J,re,ee,se=b.match(bv);if(se)for(ee=0;ee!=se.length;++ee)(re=(J=se[ee].match(wv))[1].indexOf(":"))===-1?j[J[1]]=J[2].slice(1,J[2].length-1):j[J[1].slice(0,6)==="xmlns:"?"xmlns"+J[1].slice(6):J[1].slice(re+1)]=J[2].slice(1,J[2].length-1);return j}function Jy(b,E,D){if(b.t!=="z"){if(!D||D.cellText!==!1)try{b.t==="e"?b.w=b.w||Ml[b.v]:E==="General"?b.t==="n"?(0|b.v)===b.v?b.w=b.v.toString(10):b.w=Te(b.v):b.w=Ee(b.v):b.w=(j=E||"General",J=b.v,(j=o0[j]||ba(j))==="General"?Ee(J):yr(j,J))}catch(ee){if(D.WTF)throw ee}var j,J;try{var re=o0[E]||E||"General";D.cellNF&&(b.z=re),D.cellDates&&b.t=="n"&&Ot(re)&&(re=K(b.v))&&(b.t="d",b.v=new Date(re.y,re.m-1,re.d,re.H,re.M,re.S,re.u))}catch(ee){if(D.WTF)throw ee}}}function Pg(b,E){var D=E||{};zr();var j,J=y(za(b)),re=(J=D.type=="binary"||D.type=="array"||D.type=="base64"?t!==void 0?t.utils.decode(65001,p(J)):Xa(J):J).slice(0,1024).toLowerCase(),ee=!1;if((1023&(re=re.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&re.indexOf(","),1023&re.indexOf(";"))){var se=bt(D);return se.type="string",Oo.to_workbook(J,se)}if(re.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Pt){0<=re.indexOf("<"+Pt)&&(ee=!0)}),ee)return(function(Pt,Gr){if(Pt=Pt.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi),!Pt||Pt.length==0)throw new Error("Invalid HTML: could not find <table>");if(Pt.length==1)return yu(Hg(Pt[0],Gr),Gr);var dr=li();return Pt.forEach(function(wr,ur){r1(dr,Hg(wr,Gr),"Sheet"+(ur+1))}),dr})(J,D);o0={"General Number":"General","General Date":fe[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":fe[15],"Short Date":fe[14],"Long Time":fe[19],"Medium Time":fe[18],"Short Time":fe[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:fe[2],Standard:fe[4],Percent:fe[10],Scientific:fe[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var Ae,me=[],_e,Be={},De=[],Le=D.dense?[]:{},Je="",He={},ct={},et=nu('<Data ss:Type="String">'),Xe=0,lt=0,At=0,pt={s:{r:2e6,c:2e6},e:{r:0,c:0}},jt={},rr={},Yt="",cr=0,Fr=[],Dr={},pr={},Xr=0,bn=[],dn=[],an={},en=[],tn=!1,Qr=[],En=[],Rn={},Gn=0,Ta=0,xn={Sheets:[],WBProps:{date1904:!1}},Yr={};Ff.lastIndex=0,J=J.replace(/<!--([\s\S]*?)-->/gm,"");for(var la,Ka,ja,fi,ss="";j=Ff.exec(J);)switch(j[3]=(ss=j[3]).toLowerCase()){case"data":if(ss=="data"){if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"))}else j[0].charAt(j[0].length-2)!=="/"&&me.push([j[3],!0]);break}if(me[me.length-1][1])break;j[1]==="/"?(function(Pt,Gr,dr,wr,ur,Ir,Jr,jn,kn,hn){var Bn="General",Hn=wr.StyleID,Qn={};hn=hn||{};var ln=[],qr=0;for((Hn=Hn===void 0&&jn?jn.StyleID:Hn)===void 0&&Jr&&(Hn=Jr.StyleID);Ir[Hn]!==void 0&&(Ir[Hn].nf&&(Bn=Ir[Hn].nf),Ir[Hn].Interior&&ln.push(Ir[Hn].Interior),Ir[Hn].Parent);)Hn=Ir[Hn].Parent;switch(dr.Type){case"Boolean":wr.t="b",wr.v=si(Pt);break;case"String":wr.t="s",wr.r=mo(ba(Pt)),wr.v=-1<Pt.indexOf("<")?ba(Gr||Pt).replace(/<.*?>/g,""):wr.r;break;case"DateTime":Pt.slice(-1)!="Z"&&(Pt+="Z"),wr.v=($e(Pt)-new Date(Date.UTC(1899,11,30)))/864e5,wr.v!=wr.v?wr.v=ba(Pt):wr.v<60&&(wr.v=wr.v-1),Bn&&Bn!="General"||(Bn="yyyy-mm-dd");case"Number":wr.v===void 0&&(wr.v=+Pt),wr.t||(wr.t="n");break;case"Error":wr.t="e",wr.v=Hf[Pt],hn.cellText!==!1&&(wr.w=Pt);break;default:Pt==""&&Gr==""?wr.t="z":(wr.t="s",wr.v=mo(Gr||Pt))}if(Jy(wr,Bn,hn),hn.cellFormula!==!1)if(wr.Formula)dr=ba(wr.Formula),dr.charCodeAt(0)==61&&(dr=dr.slice(1)),wr.f=Ou(dr,ur),delete wr.Formula,wr.ArrayRange=="RC"?wr.F=Ou("RC:RC",ur):wr.ArrayRange&&(wr.F=Ou(wr.ArrayRange,ur),kn.push([Ua(wr.F),wr.F]));else for(qr=0;qr<kn.length;++qr)ur.r>=kn[qr][0].s.r&&ur.r<=kn[qr][0].e.r&&ur.c>=kn[qr][0].s.c&&ur.c<=kn[qr][0].e.c&&(wr.F=kn[qr][1]);hn.cellStyles&&(ln.forEach(function(Wn){!Qn.patternType&&Wn.patternType&&(Qn.patternType=Wn.patternType)}),wr.s=Qn),wr.StyleID!==void 0&&(wr.ixfe=wr.StyleID)})(J.slice(Xe,j.index),Yt,et,me[me.length-1][0]=="comment"?an:He,{c:lt,r:At},jt,en[lt],ct,Qr,D):(Yt="",et=nu(j[0]),Xe=j.index+j[0].length);break;case"cell":if(j[1]==="/")if(0<dn.length&&(He.c=dn),(!D.sheetRows||D.sheetRows>At)&&He.v!==void 0&&(D.dense?(Le[At]||(Le[At]=[]),Le[At][lt]=He):Le[Oa(lt)+ji(At)]=He),He.HRef&&(He.l={Target:ba(He.HRef)},He.HRefScreenTip&&(He.l.Tooltip=He.HRefScreenTip),delete He.HRef,delete He.HRefScreenTip),(He.MergeAcross||He.MergeDown)&&(Gn=lt+(0|parseInt(He.MergeAcross,10)),Ta=At+(0|parseInt(He.MergeDown,10)),Fr.push({s:{c:lt,r:At},e:{c:Gn,r:Ta}})),D.sheetStubs)if(He.MergeAcross||He.MergeDown){for(var Vt=lt;Vt<=Gn;++Vt)for(var di=At;di<=Ta;++di)(lt<Vt||At<di)&&(D.dense?(Le[di]||(Le[di]=[]),Le[di][Vt]={t:"z"}):Le[Oa(Vt)+ji(di)]={t:"z"});lt=Gn+1}else++lt;else He.MergeAcross?lt=Gn+1:++lt;else(lt=(He=(function(Pt){var Gr={};if(Pt.split(/\s+/).length===1)return Gr;var dr,wr,ur,Ir=Pt.match(bv);if(Ir)for(ur=0;ur!=Ir.length;++ur)(wr=(dr=Ir[ur].match(wv))[1].indexOf(":"))===-1?Gr[dr[1]]=dr[2].slice(1,dr[2].length-1):Gr[dr[1].slice(0,6)==="xmlns:"?"xmlns"+dr[1].slice(6):dr[1].slice(wr+1)]=dr[2].slice(1,dr[2].length-1);return Gr})(j[0])).Index?+He.Index-1:lt)<pt.s.c&&(pt.s.c=lt),lt>pt.e.c&&(pt.e.c=lt),j[0].slice(-2)==="/>"&&++lt,dn=[];break;case"row":j[1]==="/"||j[0].slice(-2)==="/>"?(At<pt.s.r&&(pt.s.r=At),At>pt.e.r&&(pt.e.r=At),j[0].slice(-2)==="/>"&&(ct=nu(j[0])).Index&&(At=+ct.Index-1),lt=0,++At):((ct=nu(j[0])).Index&&(At=+ct.Index-1),Rn={},ct.AutoFitHeight!="0"&&!ct.Height||(Rn.hpx=parseInt(ct.Height,10),Rn.hpt=sf(Rn.hpx),En[At]=Rn),ct.Hidden=="1"&&(Rn.hidden=!0,En[At]=Rn));break;case"worksheet":if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"));De.push(Je),pt.s.r<=pt.e.r&&pt.s.c<=pt.e.c&&(Le["!ref"]=ga(pt),D.sheetRows&&D.sheetRows<=pt.e.r&&(Le["!fullref"]=Le["!ref"],pt.e.r=D.sheetRows-1,Le["!ref"]=ga(pt))),Fr.length&&(Le["!merges"]=Fr),0<en.length&&(Le["!cols"]=en),0<En.length&&(Le["!rows"]=En),Be[Je]=Le}else pt={s:{r:2e6,c:2e6},e:{r:0,c:0}},At=lt=0,me.push([j[3],!1]),Ae=nu(j[0]),Je=ba(Ae.Name),Le=D.dense?[]:{},Fr=[],Qr=[],En=[],Yr={name:Je,Hidden:0},xn.Sheets.push(Yr);break;case"table":if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"))}else{if(j[0].slice(-2)=="/>")break;me.push([j[3],!1]),tn=!(en=[])}break;case"style":j[1]==="/"?(Ka=jt,ja=rr,(fi=D).cellStyles&&(!ja.Interior||(fi=ja.Interior).Pattern&&(fi.patternType=mh[fi.Pattern]||fi.Pattern)),Ka[ja.ID]=ja):rr=nu(j[0]);break;case"numberformat":rr.nf=ba(nu(j[0]).Format||"General"),o0[rr.nf]&&(rr.nf=o0[rr.nf]);for(var ui=0;ui!=392&&fe[ui]!=rr.nf;++ui);if(ui==392){for(ui=57;ui!=392;++ui)if(fe[ui]==null){vr(rr.nf,ui);break}}break;case"column":if(me[me.length-1][0]!=="table")break;if((_e=nu(j[0])).Hidden&&(_e.hidden=!0,delete _e.Hidden),_e.Width&&(_e.wpx=parseInt(_e.Width,10)),!tn&&10<_e.wpx){tn=!0,Oi=GA;for(var Ps=0;Ps<en.length;++Ps)en[Ps]&&Fu(en[Ps])}tn&&Fu(_e),en[_e.Index-1||en.length]=_e;for(var Hl=0;Hl<+_e.Span;++Hl)en[en.length]=bt(_e);break;case"namedrange":if(j[1]==="/")break;xn.Names||(xn.Names=[]);var Ct=vn(j[0]),mr={Name:Ct.Name,Ref:Ou(Ct.RefersTo.slice(1),{r:0,c:0})};0<xn.Sheets.length&&(mr.Sheet=xn.Sheets.length-1),xn.Names.push(mr);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":break;case"font":if(j[0].slice(-2)==="/>")break;j[1]==="/"?Yt+=J.slice(cr,j.index):cr=j.index+j[0].length;break;case"interior":if(!D.cellStyles)break;rr.Interior=nu(j[0]);break;case"protection":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(j[0].slice(-2)==="/>")break;j[1]==="/"?(ja=Dr,Ct=ss,mr=J.slice(Xr,j.index),ja[Ct=(kA=kA||fn(TA))[Ct]||Ct]=mr):Xr=j.index+j[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"))}else me.push([j[3],!1]);break;case"comment":if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"));(la=an).t=la.v||"",la.t=la.t.replace(/\r\n/g,`
`).replace(/\r/g,`
`),la.v=la.w=la.ixfe=void 0,dn.push(an)}else me.push([j[3],!1]),an={a:(Ae=nu(j[0])).Author};break;case"autofilter":if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"))}else j[0].charAt(j[0].length-2)!=="/"&&(la=nu(j[0]),Le["!autofilter"]={ref:Ou(la.Range).replace(/\$/g,"")},me.push([j[3],!0]));break;case"name":break;case"datavalidation":if(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"))}else j[0].charAt(j[0].length-2)!=="/"&&me.push([j[3],!0]);break;case"pixelsperinch":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(j[1]==="/"){if((Ae=me.pop())[0]!==j[3])throw new Error("Bad state: "+Ae.join("|"))}else j[0].charAt(j[0].length-2)!=="/"&&me.push([j[3],!0]);break;case"null":break;default:if(me.length==0&&j[3]=="document"||me.length==0&&j[3]=="uof")return Mv(J,D);var Nt=!0;switch(me[me.length-1][0]){case"officedocumentsettings":switch(j[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:Nt=!1}break;case"componentoptions":switch(j[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:Nt=!1}break;case"excelworkbook":switch(j[3]){case"date1904":xn.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:Nt=!1}break;case"workbookoptions":switch(j[3]){case"owcversion":case"height":case"width":break;default:Nt=!1}break;case"worksheetoptions":switch(j[3]){case"visible":if(j[0].slice(-2)!=="/>")if(j[1]==="/")switch(J.slice(Xr,j.index)){case"SheetHidden":Yr.Hidden=1;break;case"SheetVeryHidden":Yr.Hidden=2}else Xr=j.index+j[0].length;break;case"header":Le["!margins"]||qt(Le["!margins"]={},"xlml"),isNaN(+vn(j[0]).Margin)||(Le["!margins"].header=+vn(j[0]).Margin);break;case"footer":Le["!margins"]||qt(Le["!margins"]={},"xlml"),isNaN(+vn(j[0]).Margin)||(Le["!margins"].footer=+vn(j[0]).Margin);break;case"pagemargins":var fr=vn(j[0]);Le["!margins"]||qt(Le["!margins"]={},"xlml"),isNaN(+fr.Top)||(Le["!margins"].top=+fr.Top),isNaN(+fr.Left)||(Le["!margins"].left=+fr.Left),isNaN(+fr.Right)||(Le["!margins"].right=+fr.Right),isNaN(+fr.Bottom)||(Le["!margins"].bottom=+fr.Bottom);break;case"displayrighttoleft":xn.Views||(xn.Views=[]),xn.Views[0]||(xn.Views[0]={}),xn.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":break;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":break;case"nosummaryrowsbelowdetail":Le["!outline"]||(Le["!outline"]={}),Le["!outline"].above=!0;break;case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":Le["!outline"]||(Le["!outline"]={}),Le["!outline"].left=!0;break;case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;default:Nt=!1}break;case"pivottable":case"pivotcache":switch(j[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:Nt=!1}break;case"pagebreaks":switch(j[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:Nt=!1}break;case"autofilter":switch(j[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:Nt=!1}break;case"querytable":switch(j[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:Nt=!1}break;case"datavalidation":switch(j[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:Nt=!1}break;case"sorting":case"conditionalformatting":switch(j[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:Nt=!1}break;case"mapinfo":case"schema":case"data":switch(j[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:Nt=!1}break;case"smarttags":break;default:Nt=!1}if(Nt||j[3].match(/!\[CDATA/))break;if(!me[me.length-1][1])throw"Unrecognized tag: "+j[3]+"|"+me.join("|");if(me[me.length-1][0]==="customdocumentproperties"){if(j[0].slice(-2)==="/>")break;j[1]==="/"?(function(Pt,Gr,dr,wr){var ur=wr;switch((dr[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":ur=si(wr);break;case"i2":case"int":ur=parseInt(wr,10);break;case"r4":case"float":ur=parseFloat(wr);break;case"date":case"dateTime.tz":ur=$e(wr);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+dr[0])}Pt[ba(Gr)]=ur})(pr,ss,bn,J.slice(Xr,j.index)):Xr=(bn=j).index+j[0].length;break}if(D.WTF)throw"Unrecognized tag: "+j[3]+"|"+me.join("|")}return se={},D.bookSheets||D.bookProps||(se.Sheets=Be),se.SheetNames=De,se.Workbook=xn,se.SSF=bt(fe),se.Props=Dr,se.Custprops=pr,se}function Rg(b,E){switch(Ph(E=E||{}),E.type||"base64"){case"base64":return Pg(w(b),E);case"binary":case"buffer":case"file":return Pg(b,E);case"array":return Pg(P(b),E)}}function qy(b,E){var D,j,J,re,ee,se,Ae,me=[];return b.Props&&me.push((D=b.Props,j=E,J=[],sr(TA).map(function(_e){for(var Be=0;Be<Bs.length;++Be)if(Bs[Be][1]==_e)return Bs[Be];for(Be=0;Be<cc.length;++Be)if(cc[Be][1]==_e)return cc[Be];throw _e}).forEach(function(_e){var Be;D[_e[1]]!=null&&(Be=(j&&j.Props&&j.Props[_e[1]]!=null?j.Props:D)[_e[1]],typeof(Be=_e[2]==="date"?new Date(Be).toISOString().replace(/\.\d*Z/,"Z"):Be)=="number"?Be=String(Be):Be===!0||Be===!1?Be=Be?"1":"0":Be instanceof Date&&(Be=new Date(Be).toISOString().replace(/\.\d*Z/,"")),J.push(wa(TA[_e[1]]||_e[1],Be)))}),on("DocumentProperties",J.join(""),{xmlns:Ni.o}))),b.Custprops&&me.push((re=b.Props,ee=b.Custprops,se=["Worksheets","SheetNames"],b="CustomDocumentProperties",Ae=[],re&&sr(re).forEach(function(_e){if(Object.prototype.hasOwnProperty.call(re,_e)){for(var Be=0;Be<Bs.length;++Be)if(_e==Bs[Be][1])return;for(Be=0;Be<cc.length;++Be)if(_e==cc[Be][1])return;for(Be=0;Be<se.length;++Be)if(_e==se[Be])return;var De="string",Le=typeof(Le=re[_e])=="number"?(De="float",String(Le)):Le===!0||Le===!1?(De="boolean",Le?"1":"0"):String(Le);Ae.push(on(po(_e),Le,{"dt:dt":De}))}}),ee&&sr(ee).forEach(function(_e){var Be,De;Object.prototype.hasOwnProperty.call(ee,_e)&&(re&&Object.prototype.hasOwnProperty.call(re,_e)||(Be="string",De=typeof(De=ee[_e])=="number"?(Be="float",String(De)):De===!0||De===!1?(Be="boolean",De?"1":"0"):De instanceof Date?(Be="dateTime.tz",De.toISOString()):String(De),Ae.push(on(po(_e),De,{"dt:dt":Be}))))}),"<"+b+' xmlns="'+Ni.o+'">'+Ae.join("")+"</"+b+">")),me.join("")}function _v(b){return on("NamedRange",null,{"ss:Name":b.Name,"ss:RefersTo":"="+df(b.Ref,{r:0,c:0})})}function eb(b,E,D,j,J,re,ee){if(!b||b.v==null&&b.f==null)return"";var se={};if(b.f&&(se["ss:Formula"]="="+Ba(df(b.f,ee))),b.F&&b.F.slice(0,E.length)==E&&(E=ki(b.F.slice(E.length+1)),se["ss:ArrayRange"]="RC:R"+(E.r==ee.r?"":"["+(E.r-ee.r)+"]")+"C"+(E.c==ee.c?"":"["+(E.c-ee.c)+"]")),b.l&&b.l.Target&&(se["ss:HRef"]=Ba(b.l.Target),b.l.Tooltip&&(se["x:HRefScreenTip"]=Ba(b.l.Tooltip))),D["!merges"])for(var Ae=D["!merges"],me=0;me!=Ae.length;++me)Ae[me].s.c==ee.c&&Ae[me].s.r==ee.r&&(Ae[me].e.c>Ae[me].s.c&&(se["ss:MergeAcross"]=Ae[me].e.c-Ae[me].s.c),Ae[me].e.r>Ae[me].s.r&&(se["ss:MergeDown"]=Ae[me].e.r-Ae[me].s.r));var _e="",Be="";switch(b.t){case"z":if(!j.sheetStubs)return"";break;case"n":_e="Number",Be=String(b.v);break;case"b":_e="Boolean",Be=b.v?"1":"0";break;case"e":_e="Error",Be=Ml[b.v];break;case"d":_e="DateTime",Be=new Date(b.v).toISOString(),b.z==null&&(b.z=b.z||fe[14]);break;case"s":_e="String",Be=((b.v||"")+"").replace(Da,function(De){return kl[De]}).replace(Tl,function(De){return"&#x"+De.charCodeAt(0).toString(16).toUpperCase()+";"})}return D=Xt(j.cellXfs,b,j),se["ss:StyleID"]="s"+(21+D),se["ss:Index"]=ee.c+1,D=b.v!=null?Be:"",D=b.t=="z"?"":'<Data ss:Type="'+_e+'">'+D+"</Data>",0<(b.c||[]).length&&(D+=b.c.map(function(De){var Le=on("ss:Data",(De.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return on("Comment",Le,{"ss:Author":De.a})}).join("")),on("Cell",D,se)}function tb(b,E){if(!b["!ref"])return"";var D=Ua(b["!ref"]),j=b["!merges"]||[],J=0,re=[];b["!cols"]&&b["!cols"].forEach(function(ct,At){Fu(ct);var Xe=!!ct.width,lt=zt(At,ct),At={"ss:Index":At+1};Xe&&(At["ss:Width"]=ed(lt.width)),ct.hidden&&(At["ss:Hidden"]="1"),re.push(on("Column",null,At))});for(var ee,se,Ae=Array.isArray(b),me=D.s.r;me<=D.e.r;++me){for(var _e=[(ee=me,se=(b["!rows"]||[])[me],ee='<Row ss:Index="'+(ee+1)+'"',se&&(se.hpt&&!se.hpx&&(se.hpx=wc(se.hpt)),se.hpx&&(ee+=' ss:AutoFitHeight="0" ss:Height="'+se.hpx+'"'),se.hidden&&(ee+=' ss:Hidden="1"')),ee+">")],Be=D.s.c;Be<=D.e.c;++Be){for(var De,Le,Je,He=!1,J=0;J!=j.length;++J)if(!(j[J].s.c>Be||j[J].s.r>me||j[J].e.c<Be||j[J].e.r<me)){j[J].s.c==Be&&j[J].s.r==me||(He=!0);break}He||(Le=ea(De={r:me,c:Be}),Je=Ae?(b[me]||[])[Be]:b[Le],_e.push(eb(Je,Le,b,E,0,0,De)))}_e.push("</Row>"),2<_e.length&&re.push(_e.join(""))}return re.join("")}function xv(b,E,D){var j=[],re=D.SheetNames[b],J=D.Sheets[re],re=J?(function(ee,se,Ae){if(!ee||!((Ae||{}).Workbook||{}).Names)return"";for(var me=Ae.Workbook.Names,_e=[],Be=0;Be<me.length;++Be){var De=me[Be];De.Sheet==se&&(De.Name.match(/^_xlfn\./)||_e.push(_v(De)))}return _e.join("")})(J,b,D):"";return 0<re.length&&j.push("<Names>"+re+"</Names>"),0<(re=J?tb(J,E):"").length&&j.push("<Table>"+re+"</Table>"),j.push((function(ee,se,Ae){if(!ee)return"";var me=[];if(ee["!margins"]&&(me.push("<PageSetup>"),ee["!margins"].header&&me.push(on("Header",null,{"x:Margin":ee["!margins"].header})),ee["!margins"].footer&&me.push(on("Footer",null,{"x:Margin":ee["!margins"].footer})),me.push(on("PageMargins",null,{"x:Bottom":ee["!margins"].bottom||"0.75","x:Left":ee["!margins"].left||"0.7","x:Right":ee["!margins"].right||"0.7","x:Top":ee["!margins"].top||"0.75"})),me.push("</PageSetup>")),Ae&&Ae.Workbook&&Ae.Workbook.Sheets&&Ae.Workbook.Sheets[se])if(Ae.Workbook.Sheets[se].Hidden)me.push(on("Visible",Ae.Workbook.Sheets[se].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var _e=0;_e<se&&(!Ae.Workbook.Sheets[_e]||Ae.Workbook.Sheets[_e].Hidden);++_e);_e==se&&me.push("<Selected/>")}return((((Ae||{}).Workbook||{}).Views||[])[0]||{}).RTL&&me.push("<DisplayRightToLeft/>"),ee["!protect"]&&(me.push(wa("ProtectContents","True")),ee["!protect"].objects&&me.push(wa("ProtectObjects","True")),ee["!protect"].scenarios&&me.push(wa("ProtectScenarios","True")),ee["!protect"].selectLockedCells==null||ee["!protect"].selectLockedCells?ee["!protect"].selectUnlockedCells==null||ee["!protect"].selectUnlockedCells||me.push(wa("EnableSelection","UnlockedCells")):me.push(wa("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(Be){ee["!protect"][Be[0]]&&me.push("<"+Be[1]+"/>")})),me.length==0?"":on("WorksheetOptions",me.join(""),{xmlns:Ni.x})})(J,b,D)),j.join("")}function Cv(b,E){E=E||{},b.SSF||(b.SSF=bt(fe)),b.SSF&&(zr(),Br(b.SSF),E.revssf=Or(b.SSF),E.revssf[b.SSF[65535]]=0,E.ssf=b.SSF,E.cellXfs=[],Xt(E.cellXfs,{},{revssf:{General:0}}));var D=[];D.push(qy(b,E)),D.push(""),D.push(""),D.push("");for(var j,J=0;J<b.SheetNames.length;++J)D.push(on("Worksheet",xv(J,E,b),{"ss:Name":Ba(b.SheetNames[J])}));return D[2]=(j=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'],E.cellXfs.forEach(function(re,ee){var se=[];se.push(on("NumberFormat",null,{"ss:Format":Ba(fe[re.numFmtId])})),ee={"ss:ID":"s"+(21+ee)},j.push(on("Style",se.join(""),ee))}),on("Styles",j.join(""))),D[3]=(function(re){if(!((re||{}).Workbook||{}).Names)return"";for(var ee=re.Workbook.Names,se=[],Ae=0;Ae<ee.length;++Ae){var me=ee[Ae];me.Sheet==null&&(me.Name.match(/^_xlfn\./)||se.push(_v(me)))}return on("Names",se.join(""))})(b),Rr+on("Workbook",D.join(""),{xmlns:Ni.ss,"xmlns:o":Ni.o,"xmlns:x":Ni.x,"xmlns:ss":Ni.ss,"xmlns:dt":Ni.dt,"xmlns:html":Ni.html})}function rb(b){var E={},D=b.content;return D.l=28,E.AnsiUserType=D.read_shift(0,"lpstr-ansi"),E.AnsiClipboardFormat=vi(D,1),D.length-D.l<=4?E:(b=D.read_shift(4),b==0||40<b?E:(D.l-=4,E.Reserved1=D.read_shift(0,"lpstr-ansi"),D.length-D.l<=4||(b=D.read_shift(4))!==1907505652?E:(E.UnicodeClipboardFormat=vi(D,2),(b=D.read_shift(4))==0||40<b?E:(D.l-=4,void(E.Reserved2=D.read_shift(0,"lpwstr"))))))}var nb=[60,1084,2066,2165,2175];function Ru(b,E,D){if(b.t!=="z"&&b.XF){var j,J=0;try{J=b.z||b.XF.numFmtId||0,E.cellNF&&(b.z=fe[J])}catch(re){if(E.WTF)throw re}if(!E||E.cellText!==!1)try{b.t==="e"?b.w=b.w||Ml[b.v]:J===0||J=="General"?b.t==="n"?(0|b.v)===b.v?b.w=b.v.toString(10):b.w=Te(b.v):b.w=Ee(b.v):b.w=yr(J,b.v,{date1904:!!D,dateNF:E&&E.dateNF})}catch(re){if(E.WTF)throw re}E.cellDates&&J&&b.t=="n"&&Ot(fe[J]||String(J))&&(j=K(b.v))&&(b.t="d",b.v=new Date(j.y,j.m-1,j.d,j.H,j.M,j.S,j.u))}}function im(b,E,D){return{v:b,ixfe:E,t:D}}function sm(b,E){var D={opts:{}},j={};function J(ur){return!(ur<8)&&ur<64&&jt[ur-8]||jf[ur]}function re(ur,Ir,Jr){if(!(1<tn||Jr.sheetRows&&ur.r>=Jr.sheetRows)){var jn,kn,hn;if(Jr.cellStyles&&Ir.XF&&Ir.XF.data&&(kn=Jr,(hn=(jn=Ir).XF.data)&&hn.patternType&&kn&&kn.cellStyles&&(jn.s={},jn.s.patternType=hn.patternType,(kn=nf(J(hn.icvFore)))&&(jn.s.fgColor={rgb:kn}),(kn=nf(J(hn.icvBack)))&&(jn.s.bgColor={rgb:kn}))),delete Ir.ixfe,delete Ir.XF,Xe=ea(ee=ur),Le&&Le.s&&Le.e||(Le={s:{r:0,c:0},e:{r:0,c:0}}),ur.r<Le.s.r&&(Le.s.r=ur.r),ur.c<Le.s.c&&(Le.s.c=ur.c),ur.r+1>Le.e.r&&(Le.e.r=ur.r+1),ur.c+1>Le.e.c&&(Le.e.c=ur.c+1),Jr.cellFormula&&Ir.f){for(var Bn=0;Bn<At.length;++Bn)if(!(At[Bn][0].s.c>ur.c||At[Bn][0].s.r>ur.r||At[Bn][0].e.c<ur.c||At[Bn][0].e.r<ur.r)){Ir.F=ga(At[Bn][0]),At[Bn][0].s.c==ur.c&&At[Bn][0].s.r==ur.r||delete Ir.f,Ir.f&&(Ir.f=""+Ys(At[Bn][1],0,ur,dn,cr));break}}Jr.dense?(Be[ur.r]||(Be[ur.r]=[]),Be[ur.r][ur.c]=Ir):Be[Xe]=Ir}}var ee,se,Ae,me,_e,Be=E.dense?[]:{},De={},Le={},Je=null,He=[],ct="",et={},Xe="",lt={},At=[],pt=[],jt=[],rr={Sheets:[],WBProps:{date1904:!1},Views:[{}]},Yt={},cr={enc:!1,sbcch:0,snames:[],sharedf:lt,arrayf:At,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!E&&!!E.cellStyles,WTF:!!E&&!!E.wtf};E.password&&(cr.password=E.password);var Fr=[],Dr=[],pr=[],Xr=[],bn=!1,dn=[];dn.SheetNames=cr.snames,dn.sharedf=cr.sharedf,dn.arrayf=cr.arrayf,dn.names=[],dn.XTI=[];var an,en=0,tn=0,Qr=0,En=[],Rn=[];cr.codepage=1200,g(1200);for(var Gn=!1;b.l<b.length-1;){var Ta=b.l,xn=b.read_shift(2);if(xn===0&&en===10)break;var Yr=b.l===b.length?0:b.read_shift(2),la=Ug[xn];if(la&&la.f){if(E.bookSheets&&en===133&&xn!==133)break;if(en=xn,la.r===2||la.r==12){var Ka=b.read_shift(2);if(Yr-=2,!cr.enc&&Ka!==xn&&((255&Ka)<<8|Ka>>8)!==xn)throw new Error("rt mismatch: "+Ka+"!="+xn);la.r==12&&(b.l+=10,Yr-=10)}var ja,fi,ss,Vt={},Vt=xn===10?la.f(b,Yr,cr):(function(ur,Ir,Jr,jn,kn){var hn=jn,Bn=[],Hn=Jr.slice(Jr.l,Jr.l+hn);if(kn&&kn.enc&&kn.enc.insitu&&0<Hn.length)switch(ur){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:kn.enc.insitu(Hn)}Bn.push(Hn),Jr.l+=hn;for(var Qn=Bo(Jr,Jr.l),ln=Ug[Qn],qr=0;ln!=null&&-1<nb.indexOf(Qn);)hn=Bo(Jr,Jr.l+2),qr=Jr.l+4,Qn==2066?qr+=4:Qn!=2165&&Qn!=2175||(qr+=12),Hn=Jr.slice(qr,Jr.l+4+hn),Bn.push(Hn),Jr.l+=4+hn,ln=Ug[Qn=Bo(Jr,Jr.l)];var Wn=B(Bn);es(Wn,0);var wn=0;Wn.lens=[];for(var sn=0;sn<Bn.length;++sn)Wn.lens.push(wn),wn+=Bn[sn].length;if(Wn.length<jn)throw"XLS Record 0x"+ur.toString(16)+" Truncated: "+Wn.length+" < "+jn;return Ir.f(Wn,Wn.length,kn)})(xn,la,b,Yr,cr);if(tn!=0||[9,521,1033,2057].indexOf(en)!==-1)switch(xn){case 34:D.opts.Date1904=rr.WBProps.date1904=Vt;break;case 134:D.opts.WriteProtect=!0;break;case 47:if(cr.enc||(b.l=0),cr.enc=Vt,!E.password)throw new Error("File is password-protected");if(Vt.valid==null)throw new Error("Encryption scheme unsupported");if(!Vt.valid)throw new Error("Password is incorrect");break;case 92:cr.lastuser=Vt;break;case 66:var di=Number(Vt);switch(di){case 21010:di=1200;break;case 32768:di=1e4;break;case 32769:di=1252}g(cr.codepage=di),Gn=!0;break;case 317:cr.rrtabid=Vt;break;case 25:cr.winlocked=Vt;break;case 439:D.opts.RefreshAll=Vt;break;case 12:D.opts.CalcCount=Vt;break;case 16:D.opts.CalcDelta=Vt;break;case 17:D.opts.CalcIter=Vt;break;case 13:D.opts.CalcMode=Vt;break;case 14:D.opts.CalcPrecision=Vt;break;case 95:D.opts.CalcSaveRecalc=Vt;break;case 15:cr.CalcRefMode=Vt;break;case 2211:D.opts.FullCalc=Vt;break;case 129:Vt.fDialog&&(Be["!type"]="dialog"),Vt.fBelow||((Be["!outline"]||(Be["!outline"]={})).above=!0),Vt.fRight||((Be["!outline"]||(Be["!outline"]={})).left=!0);break;case 224:pt.push(Vt);break;case 430:dn.push([Vt]),dn[dn.length-1].XTI=[];break;case 35:case 547:dn[dn.length-1].push(Vt);break;case 24:case 536:an={Name:Vt.Name,Ref:Ys(Vt.rgce,0,null,dn,cr)},0<Vt.itab&&(an.Sheet=Vt.itab-1),dn.names.push(an),dn[0]||(dn[0]=[],dn[0].XTI=[]),dn[dn.length-1].push(Vt),Vt.Name=="_xlnm._FilterDatabase"&&0<Vt.itab&&Vt.rgce&&Vt.rgce[0]&&Vt.rgce[0][0]&&Vt.rgce[0][0][0]=="PtgArea3d"&&(Rn[Vt.itab-1]={ref:ga(Vt.rgce[0][0][1][2])});break;case 22:cr.ExternCount=Vt;break;case 23:dn.length==0&&(dn[0]=[],dn[0].XTI=[]),dn[dn.length-1].XTI=dn[dn.length-1].XTI.concat(Vt),dn.XTI=dn.XTI.concat(Vt);break;case 2196:if(cr.biff<8)break;an!=null&&(an.Comment=Vt[1]);break;case 18:Be["!protect"]=Vt;break;case 19:Vt!==0&&cr.WTF&&console.error("Password verifier: "+Vt);break;case 133:De[Vt.pos]=Vt,cr.snames.push(Vt.name);break;case 10:if(--tn)break;Le.e&&(0<Le.e.r&&0<Le.e.c&&(Le.e.r--,Le.e.c--,Be["!ref"]=ga(Le),E.sheetRows&&E.sheetRows<=Le.e.r&&(ui=Le.e.r,Le.e.r=E.sheetRows-1,Be["!fullref"]=Be["!ref"],Be["!ref"]=ga(Le),Le.e.r=ui),Le.e.r++,Le.e.c++),0<Fr.length&&(Be["!merges"]=Fr),0<Dr.length&&(Be["!objects"]=Dr),0<pr.length&&(Be["!cols"]=pr),0<Xr.length&&(Be["!rows"]=Xr),rr.Sheets.push(Yt)),ct===""?et=Be:j[ct]=Be,Be=E.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(cr.biff===8&&(cr.biff={9:2,521:3,1033:4}[xn]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Vt.BIFFVer]||8),cr.biffguess=Vt.BIFFVer==0,Vt.BIFFVer==0&&Vt.dt==4096&&(cr.biff=5,Gn=!0,g(cr.codepage=28591)),cr.biff==8&&Vt.BIFFVer==0&&Vt.dt==16&&(cr.biff=2),tn++)break;var ui,Be=E.dense?[]:{};cr.biff<8&&!Gn&&(Gn=!0,g(cr.codepage=E.codepage||1252)),cr.biff<5||Vt.BIFFVer==0&&Vt.dt==4096?(ct===""&&(ct="Sheet1"),Le={s:{r:0,c:0},e:{r:0,c:0}},ui={pos:b.l-Yr,name:ct},De[ui.pos]=ui,cr.snames.push(ct)):ct=(De[Ta]||{name:""}).name,Vt.dt==32&&(Be["!type"]="chart"),Vt.dt==64&&(Be["!type"]="macro"),Fr=[],Dr=[],cr.arrayf=At=[],pr=[],bn=!(Xr=[]),Yt={Hidden:(De[Ta]||{hs:0}).hs,name:ct};break;case 515:case 3:case 2:Be["!type"]=="chart"&&(E.dense?(Be[Vt.r]||[])[Vt.c]:Be[ea({c:Vt.c,r:Vt.r})])&&++Vt.c,Ct={ixfe:Vt.ixfe,XF:pt[Vt.ixfe]||{},v:Vt.val,t:"n"},0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Vt.c,r:Vt.r},Ct,E);break;case 5:case 517:Ct={ixfe:Vt.ixfe,XF:pt[Vt.ixfe],v:Vt.val,t:Vt.t},0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Vt.c,r:Vt.r},Ct,E);break;case 638:Ct={ixfe:Vt.ixfe,XF:pt[Vt.ixfe],v:Vt.rknum,t:"n"},0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Vt.c,r:Vt.r},Ct,E);break;case 189:for(var Ps=Vt.c;Ps<=Vt.C;++Ps){var Hl=Vt.rkrec[Ps-Vt.c][0],Ct={ixfe:Hl,XF:pt[Hl],v:Vt.rkrec[Ps-Vt.c][1],t:"n"};0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Ps,r:Vt.r},Ct,E)}break;case 6:case 518:case 1030:if(Vt.val=="String"){Je=Vt;break}(Ct=im(Vt.val,Vt.cell.ixfe,Vt.tt)).XF=pt[Ct.ixfe],E.cellFormula&&(!((mr=Vt.formula)&&mr[0]&&mr[0][0]&&mr[0][0][0]=="PtgExp")||lt[ss=ea({r:ja=mr[0][0][1][0],c:fi=mr[0][0][1][1]})]?Ct.f=""+Ys(Vt.formula,0,Vt.cell,dn,cr):Ct.F=((E.dense?(Be[ja]||[])[fi]:Be[ss])||{}).F),0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re(Vt.cell,Ct,E),Je=Vt;break;case 7:case 519:if(!Je)throw new Error("String record expects Formula");(Ct=im(Je.val=Vt,Je.cell.ixfe,"s")).XF=pt[Ct.ixfe],E.cellFormula&&(Ct.f=""+Ys(Je.formula,0,Je.cell,dn,cr)),0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re(Je.cell,Ct,E),Je=null;break;case 33:case 545:At.push(Vt);var mr=ea(Vt[0].s),Nt=E.dense?(Be[Vt[0].s.r]||[])[Vt[0].s.c]:Be[mr];if(E.cellFormula&&Nt){if(!Je||!mr||!Nt)break;Nt.f=""+Ys(Vt[1],0,Vt[0],dn,cr),Nt.F=ga(Vt[0])}break;case 1212:if(!E.cellFormula)break;if(Xe){if(!Je)break;lt[ea(Je.cell)]=Vt[0],((Nt=E.dense?(Be[Je.cell.r]||[])[Je.cell.c]:Be[ea(Je.cell)])||{}).f=""+Ys(Vt[0],0,ee,dn,cr)}break;case 253:Ct=im(He[Vt.isst].t,Vt.ixfe,"s"),He[Vt.isst].h&&(Ct.h=He[Vt.isst].h),Ct.XF=pt[Ct.ixfe],0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Vt.c,r:Vt.r},Ct,E);break;case 513:E.sheetStubs&&(Ct={ixfe:Vt.ixfe,XF:pt[Vt.ixfe],t:"z"},0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Vt.c,r:Vt.r},Ct,E));break;case 190:if(E.sheetStubs)for(var fr=Vt.c;fr<=Vt.C;++fr){var Pt=Vt.ixfe[fr-Vt.c];Ct={ixfe:Pt,XF:pt[Pt],t:"z"},0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:fr,r:Vt.r},Ct,E)}break;case 214:case 516:case 4:(Ct=im(Vt.val,Vt.ixfe,"s")).XF=pt[Ct.ixfe],0<Qr&&(Ct.z=En[Ct.ixfe>>8&63]),Ru(Ct,E,D.opts.Date1904),re({c:Vt.c,r:Vt.r},Ct,E);break;case 0:case 512:tn===1&&(Le=Vt);break;case 252:He=Vt;break;case 1054:if(cr.biff==4){En[Qr++]=Vt[1];for(var Gr=0;Gr<Qr+163&&fe[Gr]!=Vt[1];++Gr);163<=Gr&&vr(Vt[1],Qr+163)}else vr(Vt[1],Vt[0]);break;case 30:En[Qr++]=Vt;for(var dr=0;dr<Qr+163&&fe[dr]!=Vt;++dr);163<=dr&&vr(Vt,Qr+163);break;case 229:Fr=Fr.concat(Vt);break;case 93:Dr[Vt.cmo[0]]=cr.lastobj=Vt;break;case 438:cr.lastobj.TxO=Vt;break;case 127:cr.lastobj.ImData=Vt;break;case 440:for(Ae=Vt[0].s.r;Ae<=Vt[0].e.r;++Ae)for(se=Vt[0].s.c;se<=Vt[0].e.c;++se)(Nt=E.dense?(Be[Ae]||[])[se]:Be[ea({c:se,r:Ae})])&&(Nt.l=Vt[1]);break;case 2048:for(Ae=Vt[0].s.r;Ae<=Vt[0].e.r;++Ae)for(se=Vt[0].s.c;se<=Vt[0].e.c;++se)(Nt=E.dense?(Be[Ae]||[])[se]:Be[ea({c:se,r:Ae})])&&Nt.l&&(Nt.l.Tooltip=Vt[1]);break;case 28:if(cr.biff<=5&&2<=cr.biff)break;Nt=E.dense?(Be[Vt[0].r]||[])[Vt[0].c]:Be[ea(Vt[0])];var wr=Dr[Vt[2]];Nt||(Nt=E.dense?(Be[Vt[0].r]||(Be[Vt[0].r]=[]),Be[Vt[0].r][Vt[0].c]={t:"z"}):Be[ea(Vt[0])]={t:"z"},Le.e.r=Math.max(Le.e.r,Vt[0].r),Le.s.r=Math.min(Le.s.r,Vt[0].r),Le.e.c=Math.max(Le.e.c,Vt[0].c),Le.s.c=Math.min(Le.s.c,Vt[0].c)),Nt.c||(Nt.c=[]),wr={a:Vt[1],t:wr.TxO.t},Nt.c.push(wr);break;case 2173:pt[Vt.ixfe],Vt.ext.forEach(function(Ir){Ir[0]});break;case 125:if(!cr.cellStyles)break;for(;Vt.e>=Vt.s;)pr[Vt.e--]={width:Vt.w/256,level:Vt.level||0,hidden:!!(1&Vt.flags)},bn||(bn=!0,rd(Vt.w/256)),Fu(pr[Vt.e+1]);break;case 520:wr={},Vt.level!=null&&((Xr[Vt.r]=wr).level=Vt.level),Vt.hidden&&((Xr[Vt.r]=wr).hidden=!0),Vt.hpt&&((Xr[Vt.r]=wr).hpt=Vt.hpt,wr.hpx=wc(Vt.hpt));break;case 38:case 39:case 40:case 41:Be["!margins"]||qt(Be["!margins"]={}),Be["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[xn]]=Vt;break;case 161:Be["!margins"]||qt(Be["!margins"]={}),Be["!margins"].header=Vt.header,Be["!margins"].footer=Vt.footer;break;case 574:Vt.RTL&&(rr.Views[0].RTL=!0);break;case 146:jt=Vt;break;case 2198:_e=Vt;break;case 140:me=Vt;break;case 442:ct?Yt.CodeName=Vt||Yt.name:rr.WBProps.CodeName=Vt||"ThisWorkbook"}}else la||console.error("Missing Info for XLS Record 0x"+xn.toString(16)),b.l+=Yr}return D.SheetNames=sr(De).sort(function(ur,Ir){return Number(ur)-Number(Ir)}).map(function(ur){return De[ur].name}),E.bookSheets||(D.Sheets=j),!D.SheetNames.length&&et["!ref"]?(D.SheetNames.push("Sheet1"),D.Sheets&&(D.Sheets.Sheet1=et)):D.Preamble=et,D.Sheets&&Rn.forEach(function(ur,Ir){D.Sheets[D.SheetNames[Ir]]["!autofilter"]=ur}),D.Strings=He,D.SSF=bt(fe),cr.enc&&(D.Encryption=cr.enc),_e&&(D.Themes=_e),D.Metadata={},me!==void 0&&(D.Metadata.Country=me),0<dn.names.length&&(rr.Names=dn.names),D.Workbook=rr,D}var l0={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function om(b,E){var D,j,J,re,ee;if(Ph(E=E||{}),m(),E.codepage&&l(E.codepage),b.FullPaths){if($t.find(b,"/encryption"))throw new Error("File is password-protected");D=$t.find(b,"!CompObj"),J=$t.find(b,"/Workbook")||$t.find(b,"/Book")}else{switch(E.type){case"base64":b=S(w(b));break;case"binary":b=S(b);break;case"buffer":break;case"array":Array.isArray(b)||(b=Array.prototype.slice.call(b))}es(b,0),J={content:b}}if(D&&rb(D),E.bookProps&&!E.bookSheets)j={};else{var se=x?"buffer":"array";if(J&&J.content)j=sm(J.content,E);else if((J=$t.find(b,"PerfectOffice_MAIN"))&&J.content)j=eu.to_workbook(J.content,(E.type=se,E));else{if(!(J=$t.find(b,"NativeContent_MAIN"))||!J.content)throw(J=$t.find(b,"MN0"))&&J.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");j=eu.to_workbook(J.content,(E.type=se,E))}E.bookVBA&&b.FullPaths&&$t.find(b,"/_VBA_PROJECT_CUR/VBA/dir")&&(j.vbaraw=(re=b,ee=$t.utils.cfb_new({root:"R"}),re.FullPaths.forEach(function(Ae,me){Ae.slice(-1)!=="/"&&Ae.match(/_VBA_PROJECT_CUR/)&&(Ae=Ae.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,""),$t.utils.cfb_add(ee,Ae,re.FileIndex[me].content))}),$t.write(ee)))}return se={},b.FullPaths&&(function(Ae,me,_e){var Be=$t.find(Ae,"/!DocumentSummaryInformation");if(Be&&0<Be.size)try{var De,Le=dc(Be,Yl,l0.DSI);for(De in Le)me[De]=Le[De]}catch(et){if(_e.WTF)throw et}var Je=$t.find(Ae,"/!SummaryInformation");if(Je&&0<Je.size)try{var He,ct=dc(Je,$c,l0.SI);for(He in ct)me[He]==null&&(me[He]=ct[He])}catch(et){if(_e.WTF)throw et}me.HeadingPairs&&me.TitlesOfParts&&(Dl(me.HeadingPairs,me.TitlesOfParts,me,_e),delete me.HeadingPairs,delete me.TitlesOfParts)})(b,se,E),j.Props=j.Custprops=se,E.bookFiles&&(j.cfb=b),j}function ab(b,re){var D,j,J=re||{},re=$t.utils.cfb_new({root:"R"}),ee="/Workbook";switch(J.bookType||"xls"){case"xls":J.bookType="biff8";case"xla":J.bookType||(J.bookType="xla");case"biff8":ee="/Workbook",J.biff=8;break;case"biff5":ee="/Book",J.biff=5;break;default:throw new Error("invalid type "+J.bookType+" for XLS CFB")}return $t.utils.cfb_add(re,ee,jg(b,J)),J.biff==8&&(b.Props||b.Custprops)&&(function(se,Ae){var me,_e=[],Be=[],De=[],Le=0,Je=Fn(Yl,"n"),He=Fn($c,"n");if(se.Props)for(me=sr(se.Props),Le=0;Le<me.length;++Le)(Object.prototype.hasOwnProperty.call(Je,me[Le])?_e:Object.prototype.hasOwnProperty.call(He,me[Le])?Be:De).push([me[Le],se.Props[me[Le]]]);if(se.Custprops)for(me=sr(se.Custprops),Le=0;Le<me.length;++Le)Object.prototype.hasOwnProperty.call(se.Props||{},me[Le])||(Object.prototype.hasOwnProperty.call(Je,me[Le])?_e:Object.prototype.hasOwnProperty.call(He,me[Le])?Be:De).push([me[Le],se.Custprops[me[Le]]]);for(var ct=[],Le=0;Le<De.length;++Le)-1<Jc.indexOf(De[Le][0])||-1<Vf.indexOf(De[Le][0])||De[Le][1]!=null&&ct.push(De[Le]);Be.length&&$t.utils.cfb_add(Ae,"/SummaryInformation",ap(Be,l0.SI,He,$c)),(_e.length||ct.length)&&$t.utils.cfb_add(Ae,"/DocumentSummaryInformation",ap(_e,l0.DSI,Je,Yl,ct.length?ct:null,l0.UDI))})(b,re),J.biff==8&&b.vbaraw&&(D=re,(j=$t.read(b.vbaraw,{type:typeof b.vbaraw=="string"?"binary":"buffer"})).FullPaths.forEach(function(se,Ae){Ae==0||(se=se.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/")).slice(-1)!=="/"&&$t.utils.cfb_add(D,se,j.FileIndex[Ae].content)})),re}var u0={0:{f:function(b,E){var D={},j=b.l+E;D.r=b.read_shift(4),b.l+=4;var J=b.read_shift(2);return b.l+=1,E=b.read_shift(1),b.l=j,7&E&&(D.level=7&E),16&E&&(D.hidden=!0),32&E&&(D.hpt=J/20),D}},1:{f:function(b){return[Wo(b)]}},2:{f:function(b){return[Wo(b),wu(b),"n"]}},3:{f:function(b){return[Wo(b),b.read_shift(1),"e"]}},4:{f:function(b){return[Wo(b),b.read_shift(1),"b"]}},5:{f:function(b){return[Wo(b),Vn(b),"n"]}},6:{f:function(b){return[Wo(b),Gs(b),"str"]}},7:{f:function(b){return[Wo(b),b.read_shift(4),"s"]}},8:{f:function(b,E,D){var j=b.l+E,J=Wo(b);J.r=D["!row"];var re=[J,Gs(b),"str"];return D.cellFormula?(b.l+=2,E=ce(b,j-b.l,D),re[3]=Ys(E,0,J,D.supbooks,D)):b.l=j,re}},9:{f:function(b,E,D){var j=b.l+E,J=Wo(b);J.r=D["!row"];var re=[J,Vn(b),"n"];return D.cellFormula?(b.l+=2,E=ce(b,j-b.l,D),re[3]=Ys(E,0,J,D.supbooks,D)):b.l=j,re}},10:{f:function(b,E,D){var j=b.l+E,J=Wo(b);J.r=D["!row"];var re=[J,b.read_shift(1),"b"];return D.cellFormula?(b.l+=2,E=ce(b,j-b.l,D),re[3]=Ys(E,0,J,D.supbooks,D)):b.l=j,re}},11:{f:function(b,E,D){var j=b.l+E,J=Wo(b);J.r=D["!row"];var re=[J,b.read_shift(1),"e"];return D.cellFormula?(b.l+=2,E=ce(b,j-b.l,D),re[3]=Ys(E,0,J,D.supbooks,D)):b.l=j,re}},12:{f:function(b){return[oc(b)]}},13:{f:function(b){return[oc(b),wu(b),"n"]}},14:{f:function(b){return[oc(b),b.read_shift(1),"e"]}},15:{f:function(b){return[oc(b),b.read_shift(1),"b"]}},16:{f:vd},17:{f:function(b){return[oc(b),Gs(b),"str"]}},18:{f:function(b){return[oc(b),b.read_shift(4),"s"]}},19:{f:zd},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(b,ee,se){var j=b.l+ee;b.l+=4,b.l+=1;var J=b.read_shift(4),re=dg(b),ee=Z(b,0,se),se=vA(b);return b.l=j,ee={Name:re,Ptg:ee},J<268435455&&(ee.Sheet=J),se&&(ee.Comment=se),ee}},40:{},42:{},43:{f:function(b,E,D){var j={};j.sz=b.read_shift(2)/20;var J,re=(re=(J=b).read_shift(1),J.l++,{fBold:1&re,fItalic:2&re,fUnderline:4&re,fStrikeout:8&re,fOutline:16&re,fShadow:32&re,fCondense:64&re,fExtend:128&re});switch(re.fItalic&&(j.italic=1),re.fCondense&&(j.condense=1),re.fExtend&&(j.extend=1),re.fShadow&&(j.shadow=1),re.fOutline&&(j.outline=1),re.fStrikeout&&(j.strike=1),b.read_shift(2)===700&&(j.bold=1),b.read_shift(2)){case 1:j.vertAlign="superscript";break;case 2:j.vertAlign="subscript"}switch((re=b.read_shift(1))!=0&&(j.underline=re),0<(re=b.read_shift(1))&&(j.family=re),0<(re=b.read_shift(1))&&(j.charset=re),b.l++,j.color=(function(ee){var se={},Ae=ee.read_shift(1)>>>1,me=ee.read_shift(1),_e=ee.read_shift(2,"i"),Be=ee.read_shift(1),De=ee.read_shift(1),Le=ee.read_shift(1);switch(ee.l++,Ae){case 0:se.auto=1;break;case 1:se.index=me;var Je=jf[me];Je&&(se.rgb=nf(Je));break;case 2:se.rgb=nf([Be,De,Le]);break;case 3:se.theme=me}return _e!=0&&(se.tint=0<_e?_e/32767:_e/32768),se})(b),b.read_shift(1)){case 1:j.scheme="major";break;case 2:j.scheme="minor"}return j.name=Gs(b),j}},44:{f:function(b,E){return[b.read_shift(2),Gs(b)]}},45:{f:uf},46:{f:Tt},47:{f:function(b,J){var D=b.l+J,j=b.read_shift(2),J=b.read_shift(2);return b.l=D,{ixfe:j,numFmtId:J}}},48:{},49:{f:function(b){return b.read_shift(4,"i")}},50:{},51:{f:function(b){for(var E=[],D=b.read_shift(4);0<D--;)E.push([b.read_shift(4),b.read_shift(4)]);return E}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:BA},62:{f:function(b){return[Wo(b),zd(b),"is"]}},63:{f:function(b){var E={};E.i=b.read_shift(4);var D={};return D.r=b.read_shift(4),D.c=b.read_shift(4),E.r=ea(D),2&(b=b.read_shift(1))&&(E.l="1"),8&b&&(E.a="1"),E}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Yi,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(b){var E=b.read_shift(2);return b.l+=28,{RTL:32&E}}},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(b,E){var D={},j=b[b.l];return++b.l,D.above=!(64&j),D.left=!(128&j),b.l+=18,D.name=dl(b),D}},148:{f:Cc,p:16},151:{f:function(){}},152:{},153:{f:function(b,E){var D={},j=b.read_shift(4);return D.defaultThemeVersion=b.read_shift(4),0<(b=8<E?Gs(b):"").length&&(D.CodeName=b),D.autoCompressPictures=!!(65536&j),D.backupFile=!!(64&j),D.checkCompatibility=!!(4096&j),D.date1904=!!(1&j),D.filterPrivacy=!!(8&j),D.hidePivotFieldList=!!(1024&j),D.promptedSolutions=!!(16&j),D.publishItems=!!(2048&j),D.refreshAllConnections=!!(262144&j),D.saveExternalLinkValues=!!(128&j),D.showBorderUnselectedTables=!!(4&j),D.showInkAnnotation=!!(32&j),D.showObjects=["all","placeholders","none"][j>>13&3],D.showPivotChartFilter=!!(32768&j),D.updateLinks=["userSet","never","always"][j>>8&3],D}},154:{},155:{},156:{f:function(b,E){var D={};return D.Hidden=b.read_shift(4),D.iTabID=b.read_shift(4),D.strRelID=yA(b),D.name=Gs(b),D}},157:{},158:{},159:{T:1,f:function(b){return[b.read_shift(4),b.read_shift(4)]}},160:{T:-1},161:{T:1,f:Ar},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:ru},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(b,E){return{flags:b.read_shift(4),version:b.read_shift(4),name:Gs(b)}}},336:{T:-1},337:{f:function(b){return b.l+=4,b.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:yA},357:{},358:{},359:{},360:{T:1},361:{},362:{f:mp},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(b,re,D){var j=b.l+re,J=Tr(b),re=b.read_shift(1);return(J=[J])[2]=re,D.cellFormula?(D=Me(b,j-b.l,D),J[1]=D):b.l=j,J}},427:{f:function(b,J,D){var j=b.l+J,J=[Ar(b)];return D.cellFormula&&(D=te(b,j-b.l,D),J[1]=D),b.l=j,J}},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(b){var E={};return Xo.forEach(function(D){E[D]=Vn(b)}),E}},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(b,se){var D=b.l+se,j=Ar(b),J=vA(b),re=Gs(b),ee=Gs(b),se=Gs(b);return b.l=D,se={rfx:j,relId:J,loc:re,display:se},ee&&(se.Tooltip=ee),se}},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:yA},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:Ze},633:{T:1},634:{T:-1},635:{T:1,f:function(b){var E={};E.iauthor=b.read_shift(4);var D=Ar(b);return E.rfx=D.s,E.ref=ea(D.s),b.l+=16,E}},636:{T:-1},637:{f:bu},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(b,E){return b.l+=10,{name:Gs(b)}}},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:""}},Ug={6:{f:ld},10:{f:_u},12:{f:rs},13:{f:rs},14:{f:Qi},15:{f:Qi},16:{f:Vn},17:{f:Qi},18:{f:Qi},19:{f:rs},20:{f:hp},21:{f:hp},23:{f:mp},24:{f:pp},25:{f:Qi},26:{},27:{},28:{f:function(b,E,D){return(function(j,J){if(!(J.biff<8)){var re=j.read_shift(2),ee=j.read_shift(2),se=j.read_shift(2),Ae=j.read_shift(2),me=ws(j,0,J);return J.biff<8&&j.read_shift(1),[{r:re,c:ee},me,Ae,se]}})(b,D)}},29:{},34:{f:Qi},35:{f:Ap},38:{f:Vn},39:{f:Vn},40:{f:Vn},41:{f:Vn},42:{f:Qi},43:{f:Qi},47:{f:function(b,E,D){var j={Type:8<=D.biff?b.read_shift(2):0};return j.Type?Bu(b,E-2,j):(E=b,D.biff,b=D,D=j,E={key:rs(E),verificationBytes:rs(E)},b.password&&(E.verifier=bo(b.password)),D.valid=E.verificationBytes===E.verifier,D.valid&&(D.insitu=Lo(b.password))),j}},49:{f:function(b,E,D){var j={dyHeight:b.read_shift(2),fl:b.read_shift(2)};switch(D&&D.biff||8){case 2:break;case 3:case 4:b.l+=2;break;default:b.l+=10}return j.name=dt(b,0,D),j}},51:{f:rs},60:{},61:{f:function(b){return{Pos:[b.read_shift(2),b.read_shift(2)],Dim:[b.read_shift(2),b.read_shift(2)],Flags:b.read_shift(2),CurTab:b.read_shift(2),FirstTab:b.read_shift(2),Selected:b.read_shift(2),TabRatio:b.read_shift(2)}}},64:{f:Qi},65:{f:function(){}},66:{f:rs},77:{},80:{},81:{},82:{},85:{f:rs},89:{},90:{},91:{},92:{f:function(b,E,J){if(J.enc)return b.l+=E,"";var j=b.l,J=ws(b,0,J);return b.read_shift(E+j-b.l),J}},93:{f:function(b,E,D){return D&&D.biff<8?(function(j,J,re){j.l+=4;var ee=j.read_shift(2),se=j.read_shift(2),Ae=j.read_shift(2);j.l+=2,j.l+=2,j.l+=2,j.l+=2,j.l+=2,j.l+=2,j.l+=2,j.l+=2,j.l+=2,j.l+=6,J-=36;var me=[];return me.push((yg[ee]||Yi)(j,J,re)),{cmo:[se,ee,Ae],ft:me}})(b,E,D):{cmo:D=up(b),ft:(function(j,J){for(var re=j.l+J,ee=[];j.l<re;){var se=j.read_shift(2);j.l-=2;try{ee.push(gg[se](j,re-j.l))}catch{return j.l=re,ee}}return j.l!=re&&(j.l=re),ee})(b,E-22,D[1])}}},94:{},95:{f:Qi},96:{},97:{},99:{f:Qi},125:{f:BA},128:{f:function(b){if(b.l+=4,(b=[b.read_shift(2),b.read_shift(2)])[0]!==0&&b[0]--,b[1]!==0&&b[1]--,7<b[0]||7<b[1])throw new Error("Bad Gutters: "+b.join("|"));return b}},129:{f:function(b,E,D){return{fDialog:16&(E=D&&D.biff==8||E==2?b.read_shift(2):(b.l+=E,0)),fBelow:64&E,fRight:128&E}}},130:{f:rs},131:{f:Qi},132:{f:Qi},133:{f:function(b,E,D){var j=b.read_shift(4),J=3&b.read_shift(1),re=b.read_shift(1);switch(re){case 0:re="Worksheet";break;case 1:re="Macrosheet";break;case 2:re="Chartsheet";break;case 6:re="VBAModule"}return D=dt(b,0,D),{pos:j,hs:J,dt:re,name:D=D.length===0?"Sheet1":D}}},134:{},140:{f:function(b){var E=[0,0],D=b.read_shift(2);return E[0]=Nf[D]||D,D=b.read_shift(2),E[1]=Nf[D]||D,E}},141:{f:rs},144:{},146:{f:function(b){for(var E=b.read_shift(2),D=[];0<E--;)D.push(sp(b));return D}},151:{},152:{},153:{},154:{},155:{},156:{f:rs},157:{},158:{},160:{f:wg},161:{f:function(b,E){var D={};return E<32||(b.l+=16,D.header=Vn(b),D.footer=Vn(b),b.l+=2),D}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(b,E){for(var D=b.l+E-2,j=b.read_shift(2),J=b.read_shift(2),re=[];b.l<D;)re.push(op(b));if(b.l!==D)throw new Error("MulRK read error");if(E=b.read_shift(2),re.length!=E-J+1)throw new Error("MulRK length mismatch");return{r:j,c:J,C:E,rkrec:re}}},190:{f:function(b,E){for(var D=b.l+E-2,j=b.read_shift(2),J=b.read_shift(2),re=[];b.l<D;)re.push(b.read_shift(2));if(b.l!==D)throw new Error("MulBlank read error");if(E=b.read_shift(2),re.length!=E-J+1)throw new Error("MulBlank length mismatch");return{r:j,c:J,C:E,ixfe:re}}},193:{f:_u},197:{},198:{},199:{},200:{},201:{},202:{f:Qi},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:rs},220:{},221:{f:Qi},222:{},224:{f:function(b,E,D){var j,J,re,ee={};return ee.ifnt=b.read_shift(2),ee.numFmtId=b.read_shift(2),ee.flags=b.read_shift(2),ee.fStyle=ee.flags>>2&1,E-=6,ee.data=(j=b,ee.fStyle,J=D,re={},E=j.read_shift(4),b=j.read_shift(4),D=j.read_shift(4),j=j.read_shift(2),re.patternType=ci[D>>26],J.cellStyles&&(re.alc=7&E,re.fWrap=E>>3&1,re.alcV=E>>4&7,re.fJustLast=E>>7&1,re.trot=E>>8&255,re.cIndent=E>>16&15,re.fShrinkToFit=E>>20&1,re.iReadOrder=E>>22&2,re.fAtrNum=E>>26&1,re.fAtrFnt=E>>27&1,re.fAtrAlc=E>>28&1,re.fAtrBdr=E>>29&1,re.fAtrPat=E>>30&1,re.fAtrProt=E>>31&1,re.dgLeft=15&b,re.dgRight=b>>4&15,re.dgTop=b>>8&15,re.dgBottom=b>>12&15,re.icvLeft=b>>16&127,re.icvRight=b>>23&127,re.grbitDiag=b>>30&3,re.icvTop=127&D,re.icvBottom=D>>7&127,re.icvDiag=D>>14&127,re.dgDiag=D>>21&15,re.icvFore=127&j,re.icvBack=j>>7&127,re.fsxButton=j>>14&1),re),ee}},225:{f:function(b,E){return E===0||b.read_shift(2),1200}},226:{f:_u},227:{},229:{f:function(b,E){for(var D=[],j=b.read_shift(2);j--;)D.push(Yd(b));return D}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(b,E){for(var D=b.l+E,E=b.read_shift(4),j=b.read_shift(4),J=[],re=0;re!=j&&b.l<D;++re)J.push((function(se){var Ae=c;c=1200;var me,_e=se.read_shift(2),Be=4&(He=se.read_shift(1)),De=8&He,Le=1+(1&He),Je=0,He={};return De&&(Je=se.read_shift(2)),Be&&(me=se.read_shift(4)),Le=Le==2?"dbcs-cont":"sbcs-cont",Le=_e===0?"":se.read_shift(_e,Le),De&&(se.l+=4*Je),Be&&(se.l+=me),He.t=Le,De||(He.raw="<t>"+He.t+"</t>",He.r=He.t),c=Ae,He})(b));return J.Count=E,J.Unique=j,J}},253:{f:function(b){var E=Ol(b);return E.isst=b.read_shift(4),E}},255:{f:function(b,E){var D={};return D.dsst=b.read_shift(2),b.l+=E-2,D}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:qc},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Qi},353:{f:_u},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(b,re,D){var j=b.l+re,J=b.read_shift(2),re=b.read_shift(2);if((D.sbcch=re)==1025||re==14849)return[re,J];if(re<1||255<re)throw new Error("Unexpected SupBook type: "+re);for(var D=$o(b,re),ee=[];j>b.l;)ee.push(xu(b));return[re,J,D,ee]}},431:{f:Qi},432:{},433:{},434:{},437:{},438:{f:function(b,E,D){var j=b.l,J="";try{b.l+=4;var re=(D.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(re)==-1?b.l+=6:(function(me){var _e=me.read_shift(1);me.l++;var Be=me.read_shift(2);me.l+=2})(b);var ee=b.read_shift(2);b.read_shift(2),rs(b),re=b.read_shift(2),b.l+=re;for(var se=1;se<b.lens.length-1;++se){if(b.l-j!=b.lens[se])throw new Error("TxO: bad continue record");var Ae=b[b.l];if((J+=$o(b,b.lens[se+1]-b.lens[se]-1)).length>=(Ae?ee:2*ee))break}if(J.length!==ee&&J.length!==2*ee)throw new Error("cchText: "+ee+" != "+J.length);return b.l=j+E,{t:J}}catch{return b.l=j+E,{t:J}}}},439:{f:Qi},440:{f:function(b,E){var D=Yd(b);return b.l+=16,[D,(function(j,J){var re=j.l+J;if((Be=j.read_shift(4))!==2)throw new Error("Unrecognized streamVersion: "+Be);J=j.read_shift(2),j.l+=2;var ee,se,Ae,me,_e,Be="";16&J&&(ee=Kd(j,j.l)),128&J&&(se=Kd(j,j.l)),(257&J)==257&&(Ae=Kd(j,j.l)),(257&J)==1&&(De=pg(j,j.l)),8&J&&(Be=Kd(j,j.l)),32&J&&(me=j.read_shift(16)),64&J&&(_e=Bi(j)),j.l=re;var De=se||Ae||De||"";return De&&Be&&(De+="#"+Be),De=De||"#"+Be,De={Target:De=2&J&&De.charAt(0)=="/"&&De.charAt(1)!="/"?"file://"+De:De},me&&(De.guid=me),_e&&(De.time=_e),ee&&(De.Tooltip=ee),De})(b,E-24)]}},441:{},442:{f:xu},443:{},444:{f:rs},445:{},446:{},448:{f:_u},449:{f:function(b){return b.read_shift(2),b.read_shift(4)},r:2},450:{f:_u},512:{f:fp},513:{f:vp},515:{f:function(b,E,D){return D.biffguess&&D.biff==2&&(D.biff=5),D=Ol(b),b=Vn(b),D.val=b,D}},516:{f:function(b,E,D){return D.biffguess&&D.biff==2&&(D.biff=5),b.l,E=Ol(b),D.biff==2&&b.l++,D=xu(b,b.l,D),E.val=D,E}},517:{f:Su},519:{f:a1},520:{f:function(b){var E={};E.r=b.read_shift(2),E.c=b.read_shift(2),E.cnt=b.read_shift(2)-E.c;var D=b.read_shift(2);b.l+=4;var j=b.read_shift(1);return b.l+=3,7&j&&(E.level=7&j),32&j&&(E.hidden=!0),64&j&&(E.hpt=D/20),E}},523:{},545:{f:gp},549:{f:cp},566:{},574:{f:function(b,E,D){return D&&2<=D.biff&&D.biff<5?{}:{RTL:64&b.read_shift(2)}}},638:{f:function(j){var E=j.read_shift(2),D=j.read_shift(2),j=op(j);return{r:E,c:D,ixfe:j[0],rknum:j[1]}}},659:{},1048:{},1054:{f:function(b,E,D){return[b.read_shift(2),ws(b,0,D)]}},1084:{},1212:{f:function(b,E,D){var j=lp(b);b.l++;var J=b.read_shift(1);return[(function(re,ee,se){var Ae,me=re.l+ee,_e=re.read_shift(2),Be=od(re,_e,se);return _e==65535?[[],Yi(re,ee-2)]:(ee!==_e+2&&(Ae=xc(re,me-_e-2,Be,se)),[Be,Ae])})(b,E-=8,D),J,j]}},2048:{f:function(b,E){return b.read_shift(2),[Yd(b),b.read_shift((E-10)/2,"dbcs-cont").replace(O,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Ko},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:_u},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(b){b.l+=2;var E={cxfs:0,crc:0};return E.cxfs=b.read_shift(2),E.crc=b.read_shift(4),E},r:12},2173:{f:function(b,E){b.l,b.l+=2,E=b.read_shift(2),b.l+=2;for(var D=b.read_shift(2),j=[];0<D--;)j.push(Ig(b,b.l));return{ixfe:E,ext:j}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Qi,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(b,E,D){if(!(D.biff<8)){var j=b.read_shift(2),J=b.read_shift(2);return[$o(b,j,D),$o(b,J,D)]}b.l+=E},r:12},2197:{},2198:{f:function(b,E,D){var j=b.l+E;if(b.read_shift(4)!==124226)if(D.cellStyles){var J,re=b.slice(b.l);b.l=j;try{J=rn(re,{type:"array"})}catch{return}if(E=Rt(J,"theme/theme/theme1.xml",!0),E)return gl(E,D)}else b.l=j},r:12},2199:{},2200:{},2201:{},2202:{f:function(b){return[b.read_shift(4)!==0,b.read_shift(4)!==0,b.read_shift(4)]},r:12},2203:{f:_u},2204:{},2205:{},2206:{},2207:{},2211:{f:function(b){var E,D,j=(D=(E=b).read_shift(2),j=E.read_shift(2),E.l+=8,{type:D});if(j.type!=2211)throw new Error("Invalid Future Record "+j.type);return b.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:rs},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(b,E,D){var j={area:!1};return D.biff!=5?b.l+=E:(E=b.read_shift(1),b.l+=3,16&E&&(j.area=!0)),j}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(b){for(var E=b.read_shift(2),D=[];0<E--;)D.push(sp(b));return D}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:fp},1:{},2:{f:function(b){var E=Ol(b);return++b.l,b=b.read_shift(2),E.t="n",E.val=b,E}},3:{f:function(b){var E=Ol(b);return++b.l,b=Vn(b),E.t="n",E.val=b,E}},4:{f:function(b,E,D){D.biffguess&&D.biff==5&&(D.biff=2);var j=Ol(b);return++b.l,D=ws(b,0,D),j.t="str",j.val=D,j}},5:{f:Su},7:{f:function(b){var E=b.read_shift(1);return E===0?(b.l++,""):b.read_shift(E,"sbcs-cont")}},8:{},9:{f:Ko},11:{},22:{f:rs},30:{f:Uh},31:{},32:{},33:{f:gp},36:{},37:{f:cp},50:{f:function(b,E){b.l+=6,b.l+=2,b.l+=1,b.l+=3,b.l+=1,b.l+=E-13}},62:{},52:{},67:{},68:{f:rs},69:{},86:{},126:{},127:{f:function(b){var E=b.read_shift(2),j=b.read_shift(2),D=b.read_shift(4),j={fmt:E,env:j,len:D,data:b.slice(b.l,b.l+D)};return b.l+=D,j}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(b,re,ee){var j=b.l+re,J=Ol(b),re=b.read_shift(2),ee=$o(b,re,ee);return b.l=j,J.t="str",J.val=ee,J}},223:{},234:{},354:{},421:{},518:{f:ld},521:{f:Ko},536:{f:pp},547:{f:Ap},561:{},579:{},1030:{f:ld},1033:{f:Ko},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function un(b,E,D,j){var J=E;isNaN(J)||(E=j||(D||[]).length||0,(j=b.next(4)).write_shift(2,J),j.write_shift(2,E),0<E&&Hd(D)&&b.push(D))}function c0(b,E,D){return(b=b||Cr(7)).write_shift(2,E),b.write_shift(2,D),b.write_shift(2,0),b.write_shift(1,0),b}function ib(b,E,D,j){if(E.v!=null)switch(E.t){case"d":case"n":var J=E.t=="d"?Wr($e(E.v)):E.v;return void(J==(0|J)&&0<=J&&J<65536?un(b,2,(_e=D,Be=j,De=J,c0(Le=Cr(9),_e,Be),Le.write_shift(2,De),Le)):un(b,3,(De=D,Le=j,J=J,c0(me=Cr(15),De,Le),me.write_shift(8,J,"f"),me)));case"b":case"e":return void un(b,5,(me=D,re=j,ee=E.v,se=E.t,c0(Ae=Cr(9),me,re),IA(ee,se||"b",Ae),Ae));case"s":case"str":return void un(b,4,(re=D,ee=j,se=(E.v||"").slice(0,255),c0(Ae=Cr(8+2*se.length),re,ee),Ae.write_shift(1,se.length),Ae.write_shift(se.length,se,"sbcs"),Ae.l<Ae.length?Ae.slice(0,Ae.l):Ae))}var re,ee,se,Ae,me,_e,Be,De,Le;un(b,1,c0(null,D,j))}function sb(b,E){for(var D=E||{},E=oo(),j=0,J=0;J<b.SheetNames.length;++J)b.SheetNames[J]==D.sheet&&(j=J);if(j==0&&D.sheet&&b.SheetNames[0]!=D.sheet)throw new Error("Sheet not found: "+D.sheet);return un(E,D.biff==4?1033:D.biff==3?521:9,Xd(0,16,D)),(function(re,ee,se){var Ae,me,_e=Array.isArray(ee),Be=Ua(ee["!ref"]||"A1"),De=[];if(255<Be.e.c||16383<Be.e.r){if(se.WTF)throw new Error("Range "+(ee["!ref"]||"A1")+" exceeds format limit A1:IV16384");Be.e.c=Math.min(Be.e.c,255),Be.e.r=Math.min(Be.e.c,16383),Ae=ga(Be)}for(var Le=Be.s.r;Le<=Be.e.r;++Le){me=ji(Le);for(var Je=Be.s.c;Je<=Be.e.c;++Je){Le===Be.s.r&&(De[Je]=Oa(Je)),Ae=De[Je]+me;var He=_e?(ee[Le]||[])[Je]:ee[Ae];He&&ib(re,He,Le,Je)}}})(E,b.Sheets[b.SheetNames[j]],D),un(E,10),E.end()}function ob(b,E,D){var j,J;un(b,49,(J=(j={sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"}).name||"Arial",(b=Cr((D=(b=D)&&b.biff==5)?15+J.length:16+2*J.length)).write_shift(2,20*(j.sz||12)),b.write_shift(4,0),b.write_shift(2,400),b.write_shift(4,0),b.write_shift(2,0),b.write_shift(1,J.length),D||b.write_shift(1,1),b.write_shift((D?1:2)*J.length,J,D?"sbcs":"utf16le"),b))}function lb(b,E,D){E&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(j){for(var J,re,ee,se,Ae=j[0];Ae<=j[1];++Ae)E[Ae]!=null&&un(b,1054,(J=Ae,re=E[Ae],se=void 0,ee=(ee=D)&&ee.biff==5,(se=se||Cr(ee?3+re.length:5+2*re.length)).write_shift(2,J),se.write_shift(ee?1:2,re.length),ee||se.write_shift(1,1),se.write_shift((ee?1:2)*re.length,re,ee?"sbcs":"utf16le"),(se=se.length>se.l?se.slice(0,se.l):se).l==null&&(se.l=se.length),se))})}function lm(b,E){for(var D=0;D<E["!links"].length;++D){var j=E["!links"][D];un(b,440,bg(j)),j[1].Tooltip&&un(b,2048,(function(J){var re=J[1].Tooltip,ee=Cr(10+2*(re.length+1));ee.write_shift(2,2048),J=ki(J[0]),ee.write_shift(2,J.r),ee.write_shift(2,J.r),ee.write_shift(2,J.c),ee.write_shift(2,J.c);for(var se=0;se<re.length;++se)ee.write_shift(2,re.charCodeAt(se));return ee.write_shift(2,0),ee})(j))}delete E["!links"]}function ub(b,E){var D;E&&(D=0,E.forEach(function(j,J){var re;++D<=256&&j&&un(b,125,(re=zt(J,j),j=J,(J=Cr(12)).write_shift(2,j),J.write_shift(2,j),J.write_shift(2,256*re.width),J.write_shift(2,0),j=0,re.hidden&&(j|=1),J.write_shift(1,j),j=re.level||0,J.write_shift(1,j),J.write_shift(2,0),J))}))}function Sv(b,E,D,j,J){var re,ee,se,Ae,me,_e,Be,De,Le,Je,He,ct=16+Xt(J.cellXfs,E,J);if(E.v!=null||E.bf)if(E.bf)un(b,6,Dg(E,D,j,0,ct));else switch(E.t){case"d":case"n":var et=E.t=="d"?Wr($e(E.v)):E.v;un(b,515,(_e=D,Be=j,De=et,Le=ct,Je=Cr(14),hc(_e,Be,Le,Je),Na(De,Je),Je));break;case"b":case"e":un(b,517,(et=D,_e=j,Be=E.v,Le=ct,De=E.t,Je=Cr(8),hc(et,_e,Le,Je),IA(Be,De,Je),Je));break;case"s":case"str":J.bookSST?(He=Ht(J.Strings,E.v,J.revStrings),un(b,253,(re=D,ee=j,se=He,Ae=ct,me=Cr(10),hc(re,ee,Ae,me),me.write_shift(4,se),me))):un(b,516,(He=D,re=j,ee=(E.v||"").slice(0,255),Ae=ct,se=Cr(+(me=!(se=J)||se.biff==8)+8+(1+me)*ee.length),hc(He,re,Ae,se),se.write_shift(2,ee.length),me&&se.write_shift(1,1),se.write_shift((1+me)*ee.length,ee,me?"utf16le":"sbcs"),se));break;default:un(b,513,hc(D,j,ct))}else un(b,513,hc(D,j,ct))}function kv(b,E,D){var j,J,re=oo(),lt=D.SheetNames[b],ee=D.Sheets[lt]||{},se=(D||{}).Workbook||{},Ae=(se.Sheets||[])[b]||{},me=Array.isArray(ee),_e=E.biff==8,Be=[],De=Ua(ee["!ref"]||"A1"),Le=_e?65536:16384;if(255<De.e.c||De.e.r>=Le){if(E.WTF)throw new Error("Range "+(ee["!ref"]||"A1")+" exceeds format limit A1:IV16384");De.e.c=Math.min(De.e.c,255),De.e.r=Math.min(De.e.c,Le-1)}un(re,2057,Xd(0,16,E)),un(re,13,bs(1)),un(re,12,bs(100)),un(re,15,Ms(!0)),un(re,17,Ms(!1)),un(re,16,Na(.001)),un(re,95,Ms(!0)),un(re,42,Ms(!1)),un(re,43,Ms(!1)),un(re,130,bs(1)),un(re,128,(D=[0,0],(b=Cr(8)).write_shift(4,0),b.write_shift(2,D[0]?D[0]+1:0),b.write_shift(2,D[1]?D[1]+1:0),b)),un(re,131,Ms(!1)),un(re,132,Ms(!1)),_e&&ub(re,ee["!cols"]),un(re,512,(Le=De,(D=Cr(2*(b=(D=E).biff!=8&&D.biff?2:4)+6)).write_shift(b,Le.s.r),D.write_shift(b,Le.e.r+1),D.write_shift(2,Le.s.c),D.write_shift(2,Le.e.c+1),D.write_shift(2,0),D)),_e&&(ee["!links"]=[]);for(var Je=De.s.r;Je<=De.e.r;++Je){J=ji(Je);for(var He=De.s.c;He<=De.e.c;++He){Je===De.s.r&&(Be[He]=Oa(He)),j=Be[He]+J;var ct=me?(ee[Je]||[])[He]:ee[j];ct&&(Sv(re,ct,Je,He,E),_e&&ct.l&&ee["!links"].push([j,ct.l]))}}var et,Xe,lt=Ae.CodeName||Ae.name||lt;return _e&&un(re,574,(se=(se.Views||[])[0],Xe=Cr(18),et=1718,se&&se.RTL&&(et|=64),Xe.write_shift(2,et),Xe.write_shift(4,0),Xe.write_shift(4,64),Xe.write_shift(4,0),Xe.write_shift(4,0),Xe)),_e&&(ee["!merges"]||[]).length&&un(re,229,(function(At){var pt=Cr(2+8*At.length);pt.write_shift(2,At.length);for(var jt=0;jt<At.length;++jt)Ll(At[jt],pt);return pt})(ee["!merges"])),_e&&lm(re,ee),un(re,442,La(lt)),_e&&(et=re,Xe=ee,(lt=Cr(19)).write_shift(4,2151),lt.write_shift(4,0),lt.write_shift(4,0),lt.write_shift(2,3),lt.write_shift(1,1),lt.write_shift(4,0),un(et,2151,lt),(lt=Cr(39)).write_shift(4,2152),lt.write_shift(4,0),lt.write_shift(4,0),lt.write_shift(2,3),lt.write_shift(1,0),lt.write_shift(4,0),lt.write_shift(2,1),lt.write_shift(4,4),lt.write_shift(2,0),Ll(Ua(Xe["!ref"]||"A1"),lt),lt.write_shift(4,4),un(et,2152,lt)),un(re,10),re.end()}function Ng(b,E,D){var j=oo(),se=(b||{}).Workbook||{},J=se.Sheets||[],re=se.WBProps||{},ee=D.biff==8,se=D.biff==5;un(j,2057,Xd(0,5,D)),D.bookType=="xla"&&un(j,135),un(j,225,ee?bs(1200):null),un(j,193,(function(et,Xe){Xe=Xe||Cr(et);for(var lt=0;lt<et;++lt)Xe.write_shift(1,0);return Xe})(2)),se&&un(j,191),se&&un(j,192),un(j,226),un(j,92,(function(et){var Xe=!et||et.biff==8,lt=Cr(Xe?112:54);for(lt.write_shift(et.biff==8?2:1,7),Xe&&lt.write_shift(1,0),lt.write_shift(4,859007059),lt.write_shift(4,5458548|(Xe?0:536870912));lt.l<lt.length;)lt.write_shift(1,Xe?0:32);return lt})(D)),un(j,66,bs(ee?1200:1252)),ee&&un(j,353,bs(0)),ee&&un(j,448),un(j,317,(function(et){for(var Xe=Cr(2*et),lt=0;lt<et;++lt)Xe.write_shift(2,lt+1);return Xe})(b.SheetNames.length)),ee&&b.vbaraw&&un(j,211),ee&&b.vbaraw&&un(j,442,La(re.CodeName||"ThisWorkbook")),un(j,156,bs(17)),un(j,25,Ms(!1)),un(j,18,Ms(!1)),un(j,19,bs(0)),ee&&un(j,431,Ms(!1)),ee&&un(j,444,bs(0)),un(j,61,((se=Cr(18)).write_shift(2,0),se.write_shift(2,0),se.write_shift(2,29280),se.write_shift(2,17600),se.write_shift(2,56),se.write_shift(2,0),se.write_shift(2,0),se.write_shift(2,1),se.write_shift(2,500),se)),un(j,64,Ms(!1)),un(j,141,bs(0)),un(j,34,Ms(((re=b).Workbook&&re.Workbook.WBProps&&si(re.Workbook.WBProps.date1904)?"true":"false")=="true")),un(j,14,Ms(!0)),ee&&un(j,439,Ms(!1)),un(j,218,bs(0)),ob(j,0,D),lb(j,b.SSF,D),(function(et,Xe){for(var lt=0;lt<16;++lt)un(et,224,dp({numFmtId:0,style:!0},0,Xe));Xe.cellXfs.forEach(function(At){un(et,224,dp(At,0,Xe))})})(j,D),ee&&un(j,352,Ms(!1)),se=j.end(),re=oo(),ee&&un(re,140,((ct=ct||Cr(4)).write_shift(2,1),ct.write_shift(2,1),ct)),ee&&D.Strings&&(function(et,Xe,lt){var At=(lt||[]).length||0;if(At<=8224)return un(et,Xe,lt,At);if(!isNaN(Xe)){for(var pt=lt.parts||[],jt=0,rr=0,Yt=0;Yt+(pt[jt]||8224)<=8224;)Yt+=pt[jt]||8224,jt++;var cr=et.next(4);for(cr.write_shift(2,Xe),cr.write_shift(2,Yt),et.push(lt.slice(rr,rr+Yt)),rr+=Yt;rr<At;){for((cr=et.next(4)).write_shift(2,60),Yt=0;Yt+(pt[jt]||8224)<=8224;)Yt+=pt[jt]||8224,jt++;cr.write_shift(2,Yt),et.push(lt.slice(rr,rr+Yt)),rr+=Yt}}})(re,252,vg(D.Strings)),un(re,10);for(var j=re.end(),Ae=oo(),me=0,_e=0,_e=0;_e<b.SheetNames.length;++_e)me+=(ee?12:11)+(ee?2:1)*b.SheetNames[_e].length;var Be,De,Le,Je,He=se.length+me+j.length;for(_e=0;_e<b.SheetNames.length;++_e)un(Ae,133,(Be={pos:He,hs:(J[_e]||{}).Hidden||0,dt:0,name:b.SheetNames[_e]},Je=Le=void 0,Le=!(De=D)||8<=De.biff?2:1,(Je=Cr(8+Le*Be.name.length)).write_shift(4,Be.pos),Je.write_shift(1,Be.hs||0),Je.write_shift(1,Be.dt),Je.write_shift(1,Be.name.length),8<=De.biff&&Je.write_shift(1,1),Je.write_shift(Le*Be.name.length,Be.name,De.biff<8?"sbcs":"utf16le"),(De=Je.slice(0,Je.l)).l=Je.l,De)),He+=E[_e].length;var ct=Ae.end();if(me!=ct.length)throw new Error("BS8 "+me+" != "+ct.length);return re=[],se.length&&re.push(se),ct.length&&re.push(ct),j.length&&re.push(j),B(re)}function jg(b,E){for(var D=0;D<=b.SheetNames.length;++D){var j=b.Sheets[b.SheetNames[D]];j&&j["!ref"]&&255<Ws(j["!ref"]).e.c&&typeof console<"u"&&console.error&&console.error("Worksheet '"+b.SheetNames[D]+"' extends beyond column IV (255).  Data may be lost.")}var J=E||{};switch(J.biff||2){case 8:case 5:return(function(re,ee){var se=ee||{},Ae=[];re&&!re.SSF&&(re.SSF=bt(fe)),re&&re.SSF&&(zr(),Br(re.SSF),se.revssf=Or(re.SSF),se.revssf[re.SSF[65535]]=0,se.ssf=re.SSF),se.Strings=[],se.Strings.Count=0,se.Strings.Unique=0,Li(se),se.cellXfs=[],Xt(se.cellXfs,{},{revssf:{General:0}}),re.Props||(re.Props={});for(var me=0;me<re.SheetNames.length;++me)Ae[Ae.length]=kv(me,se,re);return Ae.unshift(Ng(re,Ae,se)),B(Ae)})(b,E);case 4:case 3:case 2:return sb(b,E)}throw new Error("invalid type "+J.bookType+" for BIFF")}function Hg(b,E){var D=E||{},j=D.dense?[]:{},J=(b=b.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!J)throw new Error("Invalid HTML: could not find <table>");for(var re,E=b.match(/<\/table/i),De=J.index,ee=E&&E.index||b.length,se=gr(b.slice(De,ee),/(:?<tr[^>]*>)/i,"<tr>"),Ae=-1,me=0,_e={s:{r:1e7,c:1e7},e:{r:0,c:0}},Be=[],De=0;De<se.length;++De){var Le=se[De].trim(),Je=Le.slice(0,3).toLowerCase();if(Je!="<tr"){if(Je=="<td"||Je=="<th")for(var He=Le.split(/<\/t[dh]>/i),ee=0;ee<He.length;++ee){var ct=He[ee].trim();if(ct.match(/<t[dh]/i)){for(var et=ct,Xe=0;et.charAt(0)=="<"&&-1<(Xe=et.indexOf(">"));)et=et.slice(Xe+1);for(var lt=0;lt<Be.length;++lt){var At=Be[lt];At.s.c==me&&At.s.r<Ae&&Ae<=At.e.r&&(me=At.e.c+1,lt=-1)}var pt=vn(ct.slice(0,ct.indexOf(">"))),jt=pt.colspan?+pt.colspan:1;(1<(re=+pt.rowspan)||1<jt)&&Be.push({s:{r:Ae,c:me},e:{r:Ae+(re||1)-1,c:me+jt-1}}),ct=pt.t||pt["data-t"]||"",et.length&&(et=vu(et),_e.s.r>Ae&&(_e.s.r=Ae),_e.e.r<Ae&&(_e.e.r=Ae),_e.s.c>me&&(_e.s.c=me),_e.e.c<me&&(_e.e.c=me),et.length&&(pt={t:"s",v:et},D.raw||!et.trim().length||ct=="s"||(et==="TRUE"?pt={t:"b",v:!0}:et==="FALSE"?pt={t:"b",v:!1}:isNaN(kt(et))?isNaN(Dt(et).getDate())||(pt={t:"d",v:$e(et)},(pt=D.cellDates?pt:{t:"n",v:Wr(pt.v)}).z=D.dateNF||fe[14]):pt={t:"n",v:kt(et)}),D.dense?(j[Ae]||(j[Ae]=[]),j[Ae][me]=pt):j[ea({r:Ae,c:me})]=pt)),me+=jt}}}else{if(++Ae,D.sheetRows&&D.sheetRows<=Ae){--Ae;break}me=0}}return j["!ref"]=ga(_e),Be.length&&(j["!merges"]=Be),j}function Qg(b,E,D,j){for(var J=b["!merges"]||[],re=[],ee=E.s.c;ee<=E.e.c;++ee){for(var se,Ae,me,_e,Be=0,De=0,Le=0;Le<J.length;++Le)if(!(J[Le].s.r>D||J[Le].s.c>ee||J[Le].e.r<D||J[Le].e.c<ee)){if(J[Le].s.r<D||J[Le].s.c<ee){Be=-1;break}Be=J[Le].e.r-J[Le].s.r+1,De=J[Le].e.c-J[Le].s.c+1;break}Be<0||(se=ea({r:D,c:ee}),me=(Ae=j.dense?(b[D]||[])[ee]:b[se])&&Ae.v!=null&&(Ae.h||Ki(Ae.w||(Fl(Ae),Ae.w)||""))||"",_e={},1<Be&&(_e.rowspan=Be),1<De&&(_e.colspan=De),j.editable?me='<span contenteditable="true">'+me+"</span>":Ae&&(_e["data-t"]=Ae&&Ae.t||"z",Ae.v!=null&&(_e["data-v"]=Ae.v),Ae.z!=null&&(_e["data-z"]=Ae.z),Ae.l&&(Ae.l.Target||"#").charAt(0)!="#"&&(me='<a href="'+Ae.l.Target+'">'+me+"</a>")),_e.id=(j.id||"sjs")+"-"+se,re.push(on("td",me,_e)))}return"<tr>"+re.join("")+"</tr>"}var zg='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Tv="</body></html>";function Ev(b,E,D){return[].join("")+"<table"+(D&&D.id?' id="'+D.id+'"':"")+">"}function Iv(b,J){var D=J||{},j=D.header!=null?D.header:zg,J=D.footer!=null?D.footer:Tv,re=[j],ee=Ws(b["!ref"]);D.dense=Array.isArray(b),re.push(Ev(0,0,D));for(var se=ee.s.r;se<=ee.e.r;++se)re.push(Qg(b,ee,se,D));return re.push("</table>"+J),re.join("")}function f0(b,E,D){var j=D||{},J=0,re=0;j.origin!=null&&(typeof j.origin=="number"?J=j.origin:(J=(D=typeof j.origin=="string"?ki(j.origin):j.origin).r,re=D.c));var ee=E.getElementsByTagName("tr"),se=Math.min(j.sheetRows||1e7,ee.length),Ae={s:{r:0,c:0},e:{r:J,c:re}};b["!ref"]&&(E=Ws(b["!ref"]),Ae.s.r=Math.min(Ae.s.r,E.s.r),Ae.s.c=Math.min(Ae.s.c,E.s.c),Ae.e.r=Math.max(Ae.e.r,E.e.r),Ae.e.c=Math.max(Ae.e.c,E.e.c),J==-1&&(Ae.e.r=J=E.e.r+1));var me,_e,Be=[],De=0,Le=b["!rows"]||(b["!rows"]=[]),Je=0,He=0,ct=0,et=0;for(b["!cols"]||(b["!cols"]=[]);Je<ee.length&&He<se;++Je){var Xe=ee[Je];if(Bv(Xe)){if(j.display)continue;Le[He]={hidden:!0}}for(var lt=Xe.children,ct=et=0;ct<lt.length;++ct){var At=lt[ct];if(!j.display||!Bv(At)){for(var pt=At.hasAttribute("data-v")?At.getAttribute("data-v"):At.hasAttribute("v")?At.getAttribute("v"):vu(At.innerHTML),jt=At.getAttribute("data-z")||At.getAttribute("z"),De=0;De<Be.length;++De){var rr=Be[De];rr.s.c==et+re&&rr.s.r<He+J&&He+J<=rr.e.r&&(et=rr.e.c+1-re,De=-1)}_e=+At.getAttribute("colspan")||1,(1<(me=+At.getAttribute("rowspan")||1)||1<_e)&&Be.push({s:{r:He+J,c:et+re},e:{r:He+J+(me||1)-1,c:et+re+(_e||1)-1}});var Yt={t:"s",v:pt},cr=At.getAttribute("data-t")||At.getAttribute("t")||"";pt!=null&&(pt.length==0?Yt.t=cr||"z":j.raw||pt.trim().length==0||cr=="s"||(pt==="TRUE"?Yt={t:"b",v:!0}:pt==="FALSE"?Yt={t:"b",v:!1}:isNaN(kt(pt))?isNaN(Dt(pt).getDate())||(Yt={t:"d",v:$e(pt)},(Yt=j.cellDates?Yt:{t:"n",v:Wr(Yt.v)}).z=j.dateNF||fe[14]):Yt={t:"n",v:kt(pt)})),Yt.z===void 0&&jt!=null&&(Yt.z=jt);var Fr="",Dr=At.getElementsByTagName("A");if(Dr&&Dr.length)for(var pr=0;pr<Dr.length&&(!Dr[pr].hasAttribute("href")||(Fr=Dr[pr].getAttribute("href")).charAt(0)=="#");++pr);Fr&&Fr.charAt(0)!="#"&&(Yt.l={Target:Fr}),j.dense?(b[He+J]||(b[He+J]=[]),b[He+J][et+re]=Yt):b[ea({c:et+re,r:He+J})]=Yt,Ae.e.c<et+re&&(Ae.e.c=et+re),et+=_e}}++He}return Be.length&&(b["!merges"]=(b["!merges"]||[]).concat(Be)),Ae.e.r=Math.max(Ae.e.r,He-1+J),b["!ref"]=ga(Ae),se<=He&&(b["!fullref"]=ga((Ae.e.r=ee.length-Je+He-1+J,Ae))),b}function d0(b,E){return f0((E||{}).dense?[]:{},b,E)}function Bv(b){var D,E="",D=(D=b).ownerDocument.defaultView&&typeof D.ownerDocument.defaultView.getComputedStyle=="function"?D.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null;return(E=(E=D?D(b).getPropertyValue("display"):E)||b.style&&b.style.display)==="none"}var Fv={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 um(b,E){var D=E||{},j,J,re,ee,se,Ae=za(b),me=[],_e={name:""},Be="",De=0,Le={},Je=[],He=D.dense?[]:{},ct={value:""},et="",Xe=0,lt=[],At=-1,pt=-1,jt={s:{r:1e6,c:1e7},e:{r:0,c:0}},rr=0,Yt={},cr=[],Fr={},Dr=[],pr=1,Xr=1,bn=[],dn={Names:[]},an={},en=["",""],tn=[],Qr={},En="",Rn=0,Gn=!1,Ta=!1,xn=0;for(Ff.lastIndex=0,Ae=Ae.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");ee=Ff.exec(Ae);)switch(ee[3]=ee[3].replace(/_.*$/,"")){case"table":case"工作表":ee[1]==="/"?(jt.e.c>=jt.s.c&&jt.e.r>=jt.s.r?He["!ref"]=ga(jt):He["!ref"]="A1:A1",0<D.sheetRows&&D.sheetRows<=jt.e.r&&(He["!fullref"]=He["!ref"],jt.e.r=D.sheetRows-1,He["!ref"]=ga(jt)),cr.length&&(He["!merges"]=cr),Dr.length&&(He["!rows"]=Dr),re.name=re.名称||re.name,typeof JSON<"u"&&JSON.stringify(re),Je.push(re.name),Le[re.name]=He,Ta=!1):ee[0].charAt(ee[0].length-2)!=="/"&&(re=vn(ee[0],!1),At=pt=-1,jt.s.r=jt.s.c=1e7,jt.e.r=jt.e.c=0,He=D.dense?[]:{},cr=[],Dr=[],Ta=!0);break;case"table-row-group":ee[1]==="/"?--rr:++rr;break;case"table-row":case"行":if(ee[1]==="/"){At+=pr,pr=1;break}if((Yr=vn(ee[0],!1)).行号?At=Yr.行号-1:At==-1&&(At=0),(pr=+Yr["number-rows-repeated"]||1)<10)for(xn=0;xn<pr;++xn)0<rr&&(Dr[At+xn]={level:rr});pt=-1;break;case"covered-table-cell":ee[1]!=="/"&&++pt,D.sheetStubs&&(D.dense?(He[At]||(He[At]=[]),He[At][pt]={t:"z"}):He[ea({r:At,c:pt})]={t:"z"}),et="",lt=[];break;case"table-cell":case"数据":if(ee[0].charAt(ee[0].length-2)==="/")++pt,ct=vn(ee[0],!1),Xr=parseInt(ct["number-columns-repeated"]||"1",10),se={t:"z",v:null},ct.formula&&D.cellFormula!=0&&(se.f=Ie(ba(ct.formula))),(ct.数据类型||ct["value-type"])=="string"&&(se.t="s",se.v=ba(ct["string-value"]||""),D.dense?(He[At]||(He[At]=[]),He[At][pt]=se):He[ea({r:At,c:pt})]=se),pt+=Xr-1;else if(ee[1]!=="/"){et="",Xe=0,lt=[],Xr=1;var Yr=pr?At+pr-1:At;if(++pt>jt.e.c&&(jt.e.c=pt),pt<jt.s.c&&(jt.s.c=pt),At<jt.s.r&&(jt.s.r=At),Yr>jt.e.r&&(jt.e.r=Yr),tn=[],Qr={},se={t:(ct=vn(ee[0],!1)).数据类型||ct["value-type"],v:null},D.cellFormula)if(ct.formula&&(ct.formula=ba(ct.formula)),ct["number-matrix-columns-spanned"]&&ct["number-matrix-rows-spanned"]&&(Fr={s:{r:At,c:pt},e:{r:At+(parseInt(ct["number-matrix-rows-spanned"],10)||0)-1,c:pt+(parseInt(ct["number-matrix-columns-spanned"],10)||0)-1}},se.F=ga(Fr),bn.push([Fr,se.F])),ct.formula)se.f=Ie(ct.formula);else for(xn=0;xn<bn.length;++xn)At>=bn[xn][0].s.r&&At<=bn[xn][0].e.r&&pt>=bn[xn][0].s.c&&pt<=bn[xn][0].e.c&&(se.F=bn[xn][1]);switch((ct["number-columns-spanned"]||ct["number-rows-spanned"])&&(Fr={s:{r:At,c:pt},e:{r:At+(parseInt(ct["number-rows-spanned"],10)||0)-1,c:pt+(parseInt(ct["number-columns-spanned"],10)||0)-1}},cr.push(Fr)),ct["number-columns-repeated"]&&(Xr=parseInt(ct["number-columns-repeated"],10)),se.t){case"boolean":se.t="b",se.v=si(ct["boolean-value"]);break;case"float":case"percentage":case"currency":se.t="n",se.v=parseFloat(ct.value);break;case"date":se.t="d",se.v=$e(ct["date-value"]),D.cellDates||(se.t="n",se.v=Wr(se.v)),se.z="m/d/yy";break;case"time":se.t="n",se.v=(function(ja){var fi=0,ss=0,Vt=!1,di=ja.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!di)throw new Error("|"+ja+"| is not an ISO8601 Duration");for(var ui=1;ui!=di.length;++ui)if(di[ui]){switch(ss=1,3<ui&&(Vt=!0),di[ui].slice(di[ui].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+di[ui].slice(di[ui].length-1));case"D":ss*=24;case"H":ss*=60;case"M":if(!Vt)throw new Error("Unsupported ISO Duration Field: M");ss*=60}fi+=ss*parseInt(di[ui],10)}return fi})(ct["time-value"])/86400,D.cellDates&&(se.t="d",se.v=ze(se.v)),se.z="HH:MM:SS";break;case"number":se.t="n",se.v=parseFloat(ct.数据数值);break;default:if(se.t!=="string"&&se.t!=="text"&&se.t)throw new Error("Unsupported value type "+se.t);se.t="s",ct["string-value"]!=null&&(et=ba(ct["string-value"]),lt=[])}}else{if(Gn=!1,se.t==="s"&&(se.v=et||"",lt.length&&(se.R=lt),Gn=Xe==0),an.Target&&(se.l=an),0<tn.length&&(se.c=tn,tn=[]),et&&D.cellText!==!1&&(se.w=et),Gn&&(se.t="z",delete se.v),(!Gn||D.sheetStubs)&&!(D.sheetRows&&D.sheetRows<=At))for(var la=0;la<pr;++la){if(Xr=parseInt(ct["number-columns-repeated"]||"1",10),D.dense)for(He[At+la]||(He[At+la]=[]),He[At+la][pt]=la==0?se:bt(se);0<--Xr;)He[At+la][pt+Xr]=bt(se);else for(He[ea({r:At+la,c:pt})]=se;0<--Xr;)He[ea({r:At+la,c:pt+Xr})]=bt(se);jt.e.c<=pt&&(jt.e.c=pt)}pt+=(Xr=parseInt(ct["number-columns-repeated"]||"1",10))-1,Xr=0,se={},et="",lt=[]}an={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(ee[1]==="/"){if((j=me.pop())[0]!==ee[3])throw"Bad state: "+j}else ee[0].charAt(ee[0].length-2)!=="/"&&me.push([ee[3],!0]);break;case"annotation":if(ee[1]==="/"){if((j=me.pop())[0]!==ee[3])throw"Bad state: "+j;Qr.t=et,lt.length&&(Qr.R=lt),Qr.a=En,tn.push(Qr)}else ee[0].charAt(ee[0].length-2)!=="/"&&me.push([ee[3],!1]);et=En="",Xe=Rn=0,lt=[];break;case"creator":ee[1]==="/"?En=Ae.slice(Rn,ee.index):Rn=ee.index+ee[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(ee[1]==="/"){if((j=me.pop())[0]!==ee[3])throw"Bad state: "+j}else ee[0].charAt(ee[0].length-2)!=="/"&&me.push([ee[3],!1]);et="",Xe=0,lt=[];break;case"scientific-number":case"currency-symbol":case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(ee[1]==="/"){if(Yt[_e.name]=Be,(j=me.pop())[0]!==ee[3])throw"Bad state: "+j}else ee[0].charAt(ee[0].length-2)!=="/"&&(Be="",_e=vn(ee[0],!1),me.push([ee[3],!0]));break;case"script":case"libraries":case"automatic-styles":break;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":break;case"number":switch(me[me.length-1][0]){case"time-style":case"date-style":J=vn(ee[0],!1),Be+=Fv[ee[3]][J.style==="long"?1:0]}break;case"fraction":break;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(me[me.length-1][0]){case"time-style":case"date-style":J=vn(ee[0],!1),Be+=Fv[ee[3]][J.style==="long"?1:0]}break;case"boolean-style":case"boolean":case"text-style":break;case"text":if(ee[0].slice(-2)==="/>")break;if(ee[1]==="/")switch(me[me.length-1][0]){case"number-style":case"date-style":case"time-style":Be+=Ae.slice(De,ee.index)}else De=ee.index+ee[0].length;break;case"named-range":en=Qe((J=vn(ee[0],!1))["cell-range-address"]);var Ka={Name:J.name,Ref:en[0]+"!"+en[1]};Ta&&(Ka.Sheet=Je.length),dn.Names.push(Ka);break;case"text-content":case"text-properties":case"embedded-text":break;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":break;case"p":case"文本串":if(-1<["master-styles"].indexOf(me[me.length-1][0]))break;ee[1]!=="/"||ct&&ct["string-value"]?(vn(ee[0],!1),Xe=ee.index+ee[0].length):(Ka=(Ka=Ae.slice(Xe,ee.index)).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(ja,fi){return Array(parseInt(fi,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g,"	").replace(/<text:line-break\/>/g,`
`),Ka=[ba(Ka.replace(/<[^>]*>/g,""))],et=(0<et.length?et+`
`:"")+Ka[0]);break;case"s":break;case"database-range":if(ee[1]==="/")break;try{Le[(en=Qe(vn(ee[0])["target-range-address"]))[0]]["!autofilter"]={ref:en[1]}}catch{}break;case"date":case"object":break;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":break;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":break;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":break;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":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":break;case"a":if(ee[1]!=="/"){if(!(an=vn(ee[0],!1)).href)break;an.Target=ba(an.href),delete an.href,an.Target.charAt(0)=="#"&&-1<an.Target.indexOf(".")?(en=Qe(an.Target.slice(1)),an.Target="#"+en[0]+"!"+en[1]):an.Target.match(/^\.\.[\\\/]/)&&(an.Target=an.Target.slice(3))}break;case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;default:switch(ee[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(D.WTF)throw new Error(ee)}}return b={Sheets:Le,SheetNames:Je,Workbook:dn},D.bookSheets&&delete b.Sheets,b}function Vg(b,E){E=E||{},We(b,"META-INF/manifest.xml")&&(function(j,J){for(var re,ee,se=za(j);re=Ff.exec(se);)switch(re[3]){case"manifest":break;case"file-entry":if((ee=vn(re[0],!1)).path=="/"&&ee.type!==rp)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(J&&J.WTF)throw re}})(yt(b,"META-INF/manifest.xml"),E);var D=Rt(b,"content.xml");if(!D)throw new Error("Missing content.xml in ODS / UOF file");return E=um(Xa(D),E),We(b,"meta.xml")&&(E.Props=Jl(yt(b,"meta.xml"))),E}function Mv(b,E){return um(b,E)}var cb=(function(){var b=["<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(""),E="<office:document-styles "+zc({"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"})+">"+b+"</office:document-styles>";return function(){return Rr+E}})(),Dv=(function(){function b(D,j,J){var re=[];re.push('      <table:table table:name="'+Ba(j.SheetNames[J])+`" table:style-name="ta1">
`);var ee=0,se=0,Ae=Ws(D["!ref"]||"A1"),me=D["!merges"]||[],_e=0,Be=Array.isArray(D);if(D["!cols"])for(se=0;se<=Ae.e.c;++se)re.push("        <table:table-column"+(D["!cols"][se]?' table:style-name="co'+D["!cols"][se].ods+'"':"")+`></table:table-column>
`);for(var De="",Le=D["!rows"]||[],ee=0;ee<Ae.s.r;++ee)De=Le[ee]?' table:style-name="ro'+Le[ee].ods+'"':"",re.push("        <table:table-row"+De+`></table:table-row>
`);for(;ee<=Ae.e.r;++ee){for(De=Le[ee]?' table:style-name="ro'+Le[ee].ods+'"':"",re.push("        <table:table-row"+De+`>
`),se=0;se<Ae.s.c;++se)re.push(E);for(;se<=Ae.e.c;++se){for(var Je=!1,He={},ct="",_e=0;_e!=me.length;++_e)if(!(me[_e].s.c>se||me[_e].s.r>ee||me[_e].e.c<se||me[_e].e.r<ee)){me[_e].s.c==se&&me[_e].s.r==ee||(Je=!0),He["table:number-columns-spanned"]=me[_e].e.c-me[_e].s.c+1,He["table:number-rows-spanned"]=me[_e].e.r-me[_e].s.r+1;break}if(Je)re.push(`          <table:covered-table-cell/>
`);else{var et=ea({r:ee,c:se}),Xe=Be?(D[ee]||[])[se]:D[et];if(Xe&&Xe.f&&(He["table:formula"]=Ba(("of:="+Xe.f.replace(t0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),Xe.F&&Xe.F.slice(0,et.length)==et&&(lt=Ws(Xe.F),He["table:number-matrix-columns-spanned"]=lt.e.c-lt.s.c+1,He["table:number-matrix-rows-spanned"]=lt.e.r-lt.s.r+1)),Xe){switch(Xe.t){case"b":ct=Xe.v?"TRUE":"FALSE",He["office:value-type"]="boolean",He["office:boolean-value"]=Xe.v?"true":"false";break;case"n":ct=Xe.w||String(Xe.v||0),He["office:value-type"]="float",He["office:value"]=Xe.v||0;break;case"s":case"str":ct=Xe.v==null?"":Xe.v,He["office:value-type"]="string";break;case"d":ct=Xe.w||$e(Xe.v).toISOString(),He["office:value-type"]="date",He["office:date-value"]=$e(Xe.v).toISOString(),He["table:style-name"]="ce1";break;default:re.push(E);continue}var lt,et=Ba(ct).replace(/  +/g,function(pt){return'<text:s text:c="'+pt.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");Xe.l&&Xe.l.Target&&(et=on("text:a",et,{"xlink:href":(lt=(lt=(lt=Xe.l.Target).charAt(0)=="#"?"#"+lt.slice(1).replace(/\./,"!"):lt).charAt(0)!="#"&&!lt.match(/^\w+:/)?"../"+lt:lt).replace(/&/g,"&amp;")})),re.push("          "+on("table:table-cell",on("text:p",et,{}),He)+`
`)}else re.push(E)}}re.push(`        </table:table-row>
`)}return re.push(`      </table:table>
`),re.join("")}var E=`          <table:table-cell />
`;return function(D,j){var J=[Rr],re=zc({"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"}),ee=zc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});j.bookType=="fods"?(J.push("<office:document"+re+ee+`>
`),J.push(xA().replace(/office:document-meta/g,"office:meta"))):J.push("<office:document-content"+re+`>
`),(function(Ae,me){Ae.push(` <office:automatic-styles>
`),Ae.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),Ae.push(`   <number:month number:style="long"/>
`),Ae.push(`   <number:text>/</number:text>
`),Ae.push(`   <number:day number:style="long"/>
`),Ae.push(`   <number:text>/</number:text>
`),Ae.push(`   <number:year/>
`),Ae.push(`  </number:date-style>
`);var _e=0;me.SheetNames.map(function(De){return me.Sheets[De]}).forEach(function(De){if(De&&De["!cols"]){for(var Le=0;Le<De["!cols"].length;++Le)if(De["!cols"][Le]){var Je=De["!cols"][Le];if(Je.width==null&&Je.wpx==null&&Je.wch==null)continue;Fu(Je),Je.ods=_e,Je=De["!cols"][Le].wpx+"px",Ae.push('  <style:style style:name="co'+_e+`" style:family="table-column">
`),Ae.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+Je+`"/>
`),Ae.push(`  </style:style>
`),++_e}}});var Be=0;me.SheetNames.map(function(De){return me.Sheets[De]}).forEach(function(De){if(De&&De["!rows"])for(var Le,Je=0;Je<De["!rows"].length;++Je)De["!rows"][Je]&&(De["!rows"][Je].ods=Be,Le=De["!rows"][Je].hpx+"px",Ae.push('  <style:style style:name="ro'+Be+`" style:family="table-row">
`),Ae.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+Le+`"/>
`),Ae.push(`  </style:style>
`),++Be)}),Ae.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),Ae.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),Ae.push(`  </style:style>
`),Ae.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),Ae.push(` </office:automatic-styles>
`)})(J,D),J.push(`  <office:body>
`),J.push(`    <office:spreadsheet>
`);for(var se=0;se!=D.SheetNames.length;++se)J.push(b(D.Sheets[D.SheetNames[se]],D,se));return J.push(`    </office:spreadsheet>
`),J.push(`  </office:body>
`),j.bookType=="fods"?J.push("</office:document>"):J.push("</office:document-content>"),J.join("")}})();function Ov(b,E){if(E.bookType=="fods")return Dv(b,E);var D=xr(),j=[],J=[];return It(D,"mimetype","application/vnd.oasis.opendocument.spreadsheet"),It(D,"content.xml",Dv(b,E)),j.push(["content.xml","text/xml"]),J.push(["content.xml","ContentFile"]),It(D,"styles.xml",cb(b,E)),j.push(["styles.xml","text/xml"]),J.push(["styles.xml","StylesFile"]),It(D,"meta.xml",Rr+xA()),j.push(["meta.xml","text/xml"]),J.push(["meta.xml","MetadataFile"]),It(D,"manifest.rdf",(function(re){var ee=[Rr];ee.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var se=0;se!=re.length;++se)ee.push(zf(re[se][0],re[se][1])),ee.push([`  <rdf:Description rdf:about="">
`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+re[se][0]+`"/>
`,`  </rdf:Description>
`].join(""));return ee.push(zf("","Document","pkg")),ee.push("</rdf:RDF>"),ee.join("")})(J)),j.push(["manifest.rdf","application/rdf+xml"]),It(D,"META-INF/manifest.xml",(function(re){var ee=[Rr];ee.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),ee.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var se=0;se<re.length;++se)ee.push('  <manifest:file-entry manifest:full-path="'+re[se][0]+'" manifest:media-type="'+re[se][1]+`"/>
`);return ee.push("</manifest:manifest>"),ee.join("")})(j)),D}function kc(b){return new DataView(b.buffer,b.byteOffset,b.byteLength)}function Wg(b){return typeof TextDecoder<"u"?new TextDecoder().decode(b):Xa(P(b))}function Lv(b){return typeof TextEncoder<"u"?new TextEncoder().encode(b):S(Is(b))}function mf(b){var E=b.reduce(function(J,re){return J+re.length},0),D=new Uint8Array(E),j=0;return b.forEach(function(J){D.set(J,j),j+=J.length}),D}function Pv(b){return 16843009*((b=(858993459&(b-=b>>1&1431655765))+(b>>2&858993459))+(b>>4)&252645135)>>>24}function h0(b,E){var D=E?E[0]:0,j=127&b[D];return 128<=b[D++]&&(j|=(127&b[D])<<7,b[D++]<128||(j|=(127&b[D])<<14,b[D++]<128||(j|=(127&b[D])<<21,b[D++]<128||(j+=(127&b[D])*Math.pow(2,28),++D,b[D++]<128||(j+=(127&b[D])*Math.pow(2,35),++D,b[D++]<128||(j+=(127&b[D])*Math.pow(2,42),++D,b[D++])))))),E&&(E[0]=D),j}function ni(b){var E=new Uint8Array(7);E[0]=127&b;var D=1;return 127<b&&(E[D-1]|=128,E[D]=b>>7&127,++D,b<=16383||(E[D-1]|=128,E[D]=b>>14&127,++D,b<=2097151||(E[D-1]|=128,E[D]=b>>21&127,++D,b<=268435455||(E[D-1]|=128,E[D]=b/256>>>21&127,++D,b<=34359738367||(E[D-1]|=128,E[D]=b/65536>>>21&127,++D,b<=4398046511103||(E[D-1]|=128,E[D]=b/16777216>>>21&127,++D)))))),E.slice(0,D)}function Vi(b){var E=0,D=127&b[0];return 128<=b[E++]&&(D|=(127&b[1])<<7,b[E++]<128||(D|=(127&b[2])<<14,b[E++]<128||(D|=(127&b[3])<<21,b[+E]<128||(D|=(127&b[4])<<28)))),D}function Aa(b){for(var E=[],D=[0];D[0]<b.length;){var j,J=D[0],re=h0(b,D),ee=7&re,se=0;if((re=Math.floor(re/8))==0)break;switch(ee){case 0:for(var Ae=D[0];128<=b[D[0]++];);j=b.slice(Ae,D[0]);break;case 5:se=4,j=b.slice(D[0],D[0]+se),D[0]+=se;break;case 1:se=8,j=b.slice(D[0],D[0]+se),D[0]+=se;break;case 2:se=h0(b,D),j=b.slice(D[0],D[0]+se),D[0]+=se;break;case 3:case 4:default:throw new Error("PB Type ".concat(ee," for Field ").concat(re," at offset ").concat(J))}var me={data:j,type:ee};E[re]==null?E[re]=[me]:E[re].push(me)}return E}function Zi(b){var E=[];return b.forEach(function(D,j){j!=0&&D.forEach(function(J){J.data&&(E.push(ni(8*j+J.type)),J.type==2&&E.push(ni(J.data.length)),E.push(J.data))})}),mf(E)}function Gg(b,E){return(b==null?void 0:b.map(function(D){return E(D.data)}))||[]}function Js(b){for(var E=[],D=[0];D[0]<b.length;){var j=h0(b,D),J=Aa(b.slice(D[0],D[0]+j));D[0]+=j;var re={id:Vi(J[1][0].data),messages:[]};J[2].forEach(function(Ae){var se=Aa(Ae.data),Ae=Vi(se[3][0].data);re.messages.push({meta:se,data:b.slice(D[0],D[0]+Ae)}),D[0]+=Ae}),(j=J[3])!=null&&j[0]&&(re.merge=0<Vi(J[3][0].data)>>>0),E.push(re)}return E}function sa(b){var E=[];return b.forEach(function(D){var j=[[],[{data:ni(D.id),type:0}],[]];D.merge!=null&&(j[3]=[{data:ni(+!!D.merge),type:0}]);var J=[];D.messages.forEach(function(re){J.push(re.data),re.meta[3]=[{type:0,data:ni(re.data.length)}],j[2].push({data:Zi(re.meta),type:2})}),D=Zi(j),E.push(ni(D.length)),E.push(D),J.forEach(function(re){return E.push(re)})}),mf(E)}function Nl(b){for(var E=[],D=0;D<b.length;){var j=b[D++],J=b[D]|b[D+1]<<8|b[D+2]<<16;D+=3,E.push((function(re,ee){if(re!=0)throw new Error("Unexpected Snappy chunk type ".concat(re));for(var se=[0],Ae=h0(ee,se),me=[];se[0]<ee.length;){var _e=3&ee[se[0]];if(_e!=0){var Be=0,De=0;if(_e==1?(De=4+(ee[se[0]]>>2&7),Be=(224&ee[se[0]++])<<3,Be|=ee[se[0]++]):(De=1+(ee[se[0]++]>>2),_e==2?(Be=ee[se[0]]|ee[se[0]+1]<<8,se[0]+=2):(Be=(ee[se[0]]|ee[se[0]+1]<<8|ee[se[0]+2]<<16|ee[se[0]+3]<<24)>>>0,se[0]+=4)),me=[mf(me)],Be==0)throw new Error("Invalid offset 0");if(Be>me[0].length)throw new Error("Invalid offset beyond length");if(Be<=De)for(me.push(me[0].slice(-Be)),De-=Be;De>=me[me.length-1].length;)me.push(me[me.length-1]),De-=me[me.length-1].length;me.push(me[0].slice(-Be,-Be+De))}else _e=ee[se[0]++]>>2,_e<60?++_e:(Be=_e-59,_e=ee[se[0]],1<Be&&(_e|=ee[se[0]+1]<<8),2<Be&&(_e|=ee[se[0]+2]<<16),3<Be&&(_e|=ee[se[0]+3]<<24),_e>>>=0,_e++,se[0]+=Be),me.push(ee.slice(se[0],se[0]+_e)),se[0]+=_e}if((re=mf(me)).length!=Ae)throw new Error("Unexpected length: ".concat(re.length," != ").concat(Ae));return re})(j,b.slice(D,D+J))),D+=J}if(D!==b.length)throw new Error("data is not a valid framed stream!");return mf(E)}function xs(b){for(var E=[],D=0;D<b.length;){var j=Math.min(b.length-D,268435455),J=new Uint8Array(4);E.push(J);var re=ni(j),ee=re.length;E.push(re),j<=60?(ee++,E.push(new Uint8Array([j-1<<2]))):j<=256?(ee+=2,E.push(new Uint8Array([240,j-1&255]))):j<=65536?(ee+=3,E.push(new Uint8Array([244,j-1&255,j-1>>8&255]))):j<=16777216?(ee+=4,E.push(new Uint8Array([248,j-1&255,j-1>>8&255,j-1>>16&255]))):j<=4294967296&&(ee+=5,E.push(new Uint8Array([252,j-1&255,j-1>>8&255,j-1>>16&255,j-1>>>24&255]))),E.push(b.slice(D,D+j)),ee+=j,J[0]=0,J[1]=255&ee,J[2]=ee>>8&255,J[3]=ee>>16&255,D+=j}return mf(E)}function fs(b,E,D){var j,J=kc(b),re=J.getUint32(8,!0),ee=12,se=-1,Ae=-1,me=NaN,_e=NaN,Be=new Date(2001,0,1);switch(1&re&&(me=(function(De,Le){for(var Je=(127&De[Le+15])<<7|De[Le+14]>>1,He=1&De[Le+14],ct=Le+13;Le<=ct;--ct)He=256*He+De[ct];return(128&De[Le+15]?-He:He)*Math.pow(10,Je-6176)})(b,ee),ee+=16),2&re&&(_e=J.getFloat64(ee,!0),ee+=8),4&re&&(Be.setTime(Be.getTime()+1e3*J.getFloat64(ee,!0)),ee+=8),8&re&&(Ae=J.getUint32(ee,!0),ee+=4),16&re&&(se=J.getUint32(ee,!0),ee+=4),b[1]){case 0:break;case 2:j={t:"n",v:me};break;case 3:j={t:"s",v:E[Ae]};break;case 5:j={t:"d",v:Be};break;case 6:j={t:"b",v:0<_e};break;case 7:j={t:"n",v:_e/86400};break;case 8:j={t:"e",v:0};break;case 9:if(!(-1<se))throw new Error("Unsupported cell type ".concat(b[1]," : ").concat(31&re," : ").concat(b.slice(0,4)));j={t:"s",v:D[se]};break;case 10:j={t:"n",v:me};break;default:throw new Error("Unsupported cell type ".concat(b[1]," : ").concat(31&re," : ").concat(b.slice(0,4)))}return j}function $g(b,E){var D=new Uint8Array(32),j=kc(D),J=12,re=0;switch(D[0]=5,b.t){case"n":D[1]=2,(function(ee,se,Ae){var me=Math.floor(Ae==0?0:Math.LOG10E*Math.log(Math.abs(Ae)))+6176-16,_e=Ae/Math.pow(10,me-6176);ee[se+15]|=me>>7,ee[se+14]|=(127&me)<<1;for(var Be=0;1<=_e;++Be,_e/=256)ee[se+Be]=255&_e;ee[se+15]|=0<=Ae?0:128})(D,J,b.v),re|=1,J+=16;break;case"b":D[1]=6,j.setFloat64(J,b.v?1:0,!0),re|=2,J+=8;break;case"s":if(E.indexOf(b.v)==-1)throw new Error("Value ".concat(b.v," missing from SST!"));D[1]=3,j.setUint32(J,E.indexOf(b.v),!0),re|=8,J+=4;break;default:throw"unsupported cell type "+b.t}return j.setUint32(8,re,!0),D.slice(0,J)}function Uu(b,E){var D=new Uint8Array(32),j=kc(D),J=12,re=0;switch(D[0]=3,b.t){case"n":D[2]=2,j.setFloat64(J,b.v,!0),re|=32,J+=8;break;case"b":D[2]=6,j.setFloat64(J,b.v?1:0,!0),re|=32,J+=8;break;case"s":if(E.indexOf(b.v)==-1)throw new Error("Value ".concat(b.v," missing from SST!"));D[2]=3,j.setUint32(J,E.indexOf(b.v),!0),re|=16,J+=4;break;default:throw"unsupported cell type "+b.t}return j.setUint32(4,re,!0),D.slice(0,J)}function fb(b,E,D){switch(b[0]){case 0:case 1:case 2:case 3:return(function(j,J,re,ee){var se,Ae=kc(j),me=Ae.getUint32(4,!0),_e=(1<ee?12:8)+4*Pv(me&(1<ee?3470:398)),Be=-1,De=-1,Le=NaN,Je=new Date(2001,0,1);switch(512&me&&(Be=Ae.getUint32(_e,!0),_e+=4),_e+=4*Pv(me&(1<ee?12288:4096)),16&me&&(De=Ae.getUint32(_e,!0),_e+=4),32&me&&(Le=Ae.getFloat64(_e,!0),_e+=8),64&me&&(Je.setTime(Je.getTime()+1e3*Ae.getFloat64(_e,!0)),_e+=8),j[2]){case 0:break;case 2:se={t:"n",v:Le};break;case 3:se={t:"s",v:J[De]};break;case 5:se={t:"d",v:Je};break;case 6:se={t:"b",v:0<Le};break;case 7:se={t:"n",v:Le/86400};break;case 8:se={t:"e",v:0};break;case 9:if(-1<Be)se={t:"s",v:re[Be]};else if(-1<De)se={t:"s",v:J[De]};else{if(isNaN(Le))throw new Error("Unsupported cell type ".concat(j.slice(0,4)));se={t:"n",v:Le}}break;default:throw new Error("Unsupported cell type ".concat(j.slice(0,4)))}return se})(b,E,D,b[0]);case 5:return fs(b,E,D);default:throw new Error("Unsupported payload version ".concat(b[0]))}}function uo(b){return h0(Aa(b)[1][0].data)}function Rv(b,j){var j=Aa(j.data),D=Vi(j[1][0].data),j=j[3],J=[];return(j||[]).forEach(function(re){var ee=Aa(re.data),se=Vi(ee[1][0].data)>>>0;switch(D){case 1:J[se]=Wg(ee[3][0].data);break;case 8:var me=Aa(b[uo(ee[9][0].data)][0].data),Ae=b[uo(me[1][0].data)][0],me=Vi(Ae.meta[1][0].data);if(me!=2001)throw new Error("2000 unexpected reference to ".concat(me));Ae=Aa(Ae.data),J[se]=Ae[3].map(function(_e){return Wg(_e.data)}).join("")}}),J}function db(b,J){var D=Aa(J.data),j=(J=D==null?void 0:D[7])!=null&&J[0]?0<Vi(D[7][0].data)>>>0?1:0:-1,J=Gg(D[5],function(re){return(function(ee,se){var Ae,me,_e,Be=Aa(ee),De=Vi(Be[1][0].data)>>>0,Le=Vi(Be[2][0].data)>>>0,Je=((ee=(Je=Be[8])==null?void 0:Je[0])==null?void 0:ee.data)&&0<Vi(Be[8][0].data)||!1;if((ee=(ee=Be[7])==null?void 0:ee[0])!=null&&ee.data&&se!=0)me=(Ae=(Ae=Be[7])==null?void 0:Ae[0])==null?void 0:Ae.data,_e=(Ae=(Ae=Be[6])==null?void 0:Ae[0])==null?void 0:Ae.data;else{if((Ae=(Ae=Be[4])==null?void 0:Ae[0])==null||!Ae.data||se==1)throw"NUMBERS Tile missing ".concat(se," cell storage");me=(se=(se=Be[4])==null?void 0:se[0])==null?void 0:se.data,_e=(Be=(Be=Be[3])==null?void 0:Be[0])==null?void 0:Be.data}for(var He=Je?4:1,ct=kc(me),et=[],Xe=0;Xe<me.length/2;++Xe){var lt=ct.getUint16(2*Xe,!0);lt<65535&&et.push([Xe,lt])}if(et.length!=Le)throw"Expected ".concat(Le," cells, found ").concat(et.length);for(var At=[],Xe=0;Xe<et.length-1;++Xe)At[et[Xe][0]]=_e.subarray(et[Xe][1]*He,et[Xe+1][1]*He);return 1<=et.length&&(At[et[et.length-1][0]]=_e.subarray(et[et.length-1][1]*He)),{R:De,cells:At}})(re,j)});return{nrows:Vi(D[4][0].data)>>>0,data:J.reduce(function(re,ee){return re[ee.R]||(re[ee.R]=[]),ee.cells.forEach(function(se,Ae){if(re[ee.R][Ae])throw new Error("Duplicate cell r=".concat(ee.R," c=").concat(Ae));re[ee.R][Ae]=se}),re},[])}}function hb(b,J){var D={"!ref":"A1"},j=b[uo(Aa(J.data)[2][0].data)],J=Vi(j[0].meta[1][0].data);if(J!=6001)throw new Error("6000 unexpected reference to ".concat(J));return(function(re,Ae,se){var Be=Aa(Ae.data);if((Ae={s:{r:0,c:0},e:{r:0,c:0}}).e.r=(Vi(Be[6][0].data)>>>0)-1,Ae.e.r<0)throw new Error("Invalid row varint ".concat(Be[6][0].data));if(Ae.e.c=(Vi(Be[7][0].data)>>>0)-1,Ae.e.c<0)throw new Error("Invalid col varint ".concat(Be[7][0].data));se["!ref"]=ga(Ae);var Ae=Aa(Be[4][0].data),me=Rv(re,re[uo(Ae[4][0].data)][0]),_e=(Be=Ae[17])!=null&&Be[0]?Rv(re,re[uo(Ae[17][0].data)][0]):[],Be=Aa(Ae[3][0].data),De=0;if(Be[1].forEach(function(Je){var He=Aa(Je.data),Je=re[uo(He[2][0].data)][0],He=Vi(Je.meta[1][0].data);if(He!=6002)throw new Error("6001 unexpected reference to ".concat(He));Je=db(0,Je),Je.data.forEach(function(ct,et){ct.forEach(function(Xe,lt){lt=ea({r:De+et,c:lt}),Xe=fb(Xe,me,_e),Xe&&(se[lt]=Xe)})}),De+=Je.nrows}),(Be=Ae[13])!=null&&Be[0]){if(Be=re[uo(Ae[13][0].data)][0],Ae=Vi(Be.meta[1][0].data),Ae!=6144)throw new Error("Expected merge type 6144, found ".concat(Ae));se["!merges"]=(Be=Aa(Be.data))==null?void 0:Be[1].map(function(Je){var He=Aa(Je.data),Je=kc(Aa(He[1][0].data)[1][0].data),He=kc(Aa(He[2][0].data)[1][0].data);return{s:{r:Je.getUint16(0,!0),c:Je.getUint16(2,!0)},e:{r:Je.getUint16(0,!0)+He.getUint16(0,!0)-1,c:Je.getUint16(2,!0)+He.getUint16(2,!0)-1}}})}})(b,j[0],D),D}function Kg(b,E){var D=li(),j=Aa(E.data);if((E=j[2])!=null&&E[0])throw new Error("Keynote presentations are not supported");if(Gg(j[1],uo).forEach(function(J){b[J].forEach(function(re){var ee,se,Ae,me;Vi(re.meta[1][0].data)==2&&(se=b,re=Aa((Ae=re).data),me={name:(Ae=re[1])!=null&&Ae[0]?Wg(re[1][0].data):"",sheets:[]},Gg(re[2],uo).forEach(function(_e){se[_e].forEach(function(Be){Vi(Be.meta[1][0].data)==6e3&&me.sheets.push(hb(se,Be))})}),(ee=me).sheets.forEach(function(_e,Be){r1(D,_e,Be==0?ee.name:ee.name+"_"+Be,!0)}))})}),D.SheetNames.length==0)throw new Error("Empty NUMBERS file");return D}function Uv(b){var E={},D=[];if(b.FullPaths.forEach(function(J){if(J.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),b.FileIndex.forEach(function(J){if(J.name.match(/\.iwa$/)){var re,ee;try{re=Nl(J.content)}catch(se){return console.log("?? "+J.content.length+" "+(se.message||se))}try{ee=Js(re)}catch(se){return console.log("## "+(se.message||se))}ee.forEach(function(se){E[se.id]=se.messages,D.push(se.id)})}}),!D.length)throw new Error("File has no messages");if((b=(b=(b=(b=E==null?void 0:E[1])==null?void 0:b[0])==null?void 0:b.meta)==null?void 0:b[1])!=null&&b[0].data&&Vi(E[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var j=((b=(b=(b=(b=E==null?void 0:E[1])==null?void 0:b[0])==null?void 0:b.meta)==null?void 0:b[1])==null?void 0:b[0].data)&&Vi(E[1][0].meta[1][0].data)==1&&E[1][0];if(j||D.forEach(function(J){E[J].forEach(function(re){if(Vi(re.meta[1][0].data)>>>0==1){if(j)throw new Error("Document has multiple roots");j=re}})}),!j)throw new Error("Cannot find Document root");return Kg(E,j)}function Tc(b,E){if(!E||!E.numbers)throw new Error("Must pass a `numbers` option -- check the README");var D=b.Sheets[b.SheetNames[0]];1<b.SheetNames.length&&console.error("The Numbers writer currently writes only the first table");var j=Ws(D["!ref"]);j.s.r=j.s.c=0;var J=!1;9<j.e.c&&(J=!0,j.e.c=9),49<j.e.r&&(J=!0,j.e.r=49),J&&console.error("The Numbers writer is currently limited to ".concat(ga(j)));var re=p0(D,{range:j,header:1}),ee=["~Sh33tJ5~"];re.forEach(function(an){return an.forEach(function(en){typeof en=="string"&&ee.push(en)})});var se={},Ae=[],me=$t.read(E.numbers,{type:"base64"});me.FileIndex.map(function(an,en){return[an,me.FullPaths[en]]}).forEach(function(an){var en=an[0],tn=an[1];en.type==2&&en.name.match(/\.iwa/)&&Js(Nl(en.content)).forEach(function(Qr){Ae.push(Qr.id),se[Qr.id]={deps:[],location:tn,type:Vi(Qr.messages[0].meta[1][0].data)}})}),Ae.sort(function(an,en){return an-en});var _e=Ae.filter(function(an){return 1<an}).map(function(an){return[an,ni(an)]});me.FileIndex.map(function(an,en){return[an,me.FullPaths[en]]}).forEach(function(an){var en=an[0];an[1],en.name.match(/\.iwa/)&&Js(Nl(en.content)).forEach(function(tn){tn.messages.forEach(function(Qr){_e.forEach(function(En){tn.messages.some(function(Rn){return Vi(Rn.meta[1][0].data)!=11006&&(function(Gn,Ta){e:for(var xn=0;xn<=Gn.length-Ta.length;++xn){for(var Yr=0;Yr<Ta.length;++Yr)if(Gn[xn+Yr]!=Ta[Yr])continue e;return!0}return!1})(Rn.data,En[1])})&&se[En[0]].deps.push(tn.id)})})})});for(var Be,De=$t.find(me,se[1].location),Le=Js(Nl(De.content)),Je=0;Je<Le.length;++Je){var He=Le[Je];He.id==1&&(Be=He)}for(var ct=uo(Aa(Be.messages[0].data)[1][0].data),Le=Js(Nl((De=$t.find(me,se[ct].location)).content)),Je=0;Je<Le.length;++Je)(He=Le[Je]).id==ct&&(Be=He);var Fr=Aa(Be.messages[0].data);for(Fr[1]=[{type:2,data:Lv(b.SheetNames[0])}],Be.messages[0].data=Zi(Fr),De.content=xs(sa(Le)),De.size=De.content.length,ct=uo(Fr[2][0].data),Le=Js(Nl((De=$t.find(me,se[ct].location)).content)),Je=0;Je<Le.length;++Je)(He=Le[Je]).id==ct&&(Be=He);for(ct=uo(Aa(Be.messages[0].data)[2][0].data),Le=Js(Nl((De=$t.find(me,se[ct].location)).content)),Je=0;Je<Le.length;++Je)(He=Le[Je]).id==ct&&(Be=He);J=Aa(Be.messages[0].data),J[6][0].data=ni(j.e.r+1),J[7][0].data=ni(j.e.c+1);for(var et=uo(J[46][0].data),E=$t.find(me,se[et].location),Xe=Js(Nl(E.content)),lt=0;lt<Xe.length&&Xe[lt].id!=et;++lt);if(Xe[lt].id!=et)throw"Bad ColumnRowUIDMapArchive";var At=Aa(Xe[lt].messages[0].data);At[1]=[],At[2]=[],At[3]=[];for(var pt=0;pt<=j.e.c;++pt)At[1].push({type:2,data:Zi([[],[{type:0,data:ni(pt+420690)}],[{type:0,data:ni(pt+420690)}]])}),At[2].push({type:0,data:ni(pt)}),At[3].push({type:0,data:ni(pt)});At[4]=[],At[5]=[],At[6]=[];for(var jt=0;jt<=j.e.r;++jt)At[4].push({type:2,data:Zi([[],[{type:0,data:ni(jt+726270)}],[{type:0,data:ni(jt+726270)}]])}),At[5].push({type:0,data:ni(jt)}),At[6].push({type:0,data:ni(jt)});if(Xe[lt].messages[0].data=Zi(At),E.content=xs(sa(Xe)),E.size=E.content.length,delete J[46],b=Aa(J[4][0].data),b[7][0].data=ni(j.e.r+1),Fr=uo(Aa(b[1][0].data)[2][0].data),(Xe=Js(Nl((E=$t.find(me,se[Fr].location)).content)))[0].id!=Fr)throw"Bad HeaderStorageBucket";for(var rr=Aa(Xe[0].messages[0].data),jt=0;jt<re.length;++jt){var Yt=Aa(rr[2][0].data);Yt[1][0].data=ni(jt),Yt[4][0].data=ni(re[jt].length),rr[2][jt]={type:rr[2][0].type,data:Zi(Yt)}}Xe[0].messages[0].data=Zi(rr),E.content=xs(sa(Xe)),E.size=E.content.length;var cr,Fr=uo(b[2][0].data);if((Xe=Js(Nl((E=$t.find(me,se[Fr].location)).content)))[0].id!=Fr)throw"Bad HeaderStorageBucket";for(rr=Aa(Xe[0].messages[0].data),pt=0;pt<=j.e.c;++pt)(Yt=Aa(rr[2][0].data))[1][0].data=ni(pt),Yt[4][0].data=ni(j.e.r+1),rr[2][pt]={type:rr[2][0].type,data:Zi(Yt)};Xe[0].messages[0].data=Zi(rr),E.content=xs(sa(Xe)),E.size=E.content.length,D["!merges"]&&(bn=(function(an){for(var en=927262;en<2e6;++en)if(!se[en])return se[en]=an,en;throw new Error("Too many messages")})({type:6144,deps:[ct],location:se[ct].location}),cr=[[],[]],D["!merges"].forEach(function(an){cr[1].push({type:2,data:Zi([[],[{type:2,data:Zi([[],[{type:5,data:new Uint8Array(new Uint16Array([an.s.r,an.s.c]).buffer)}]])}],[{type:2,data:Zi([[],[{type:5,data:new Uint8Array(new Uint16Array([an.e.r-an.s.r+1,an.e.c-an.s.c+1]).buffer)}]])}]])})}),b[13]=[{type:2,data:Zi([[],[{type:0,data:ni(bn)}]])}],Le.push({id:bn,messages:[(Xr=6144,bn=Zi(cr),{meta:[[],[{type:0,data:ni(Xr)}]],data:bn})]}));var Dr=uo(b[4][0].data);(function(){for(var an,en=$t.find(me,se[Dr].location),tn=Js(Nl(en.content)),Qr=0;Qr<tn.length;++Qr){var En=tn[Qr];En.id==Dr&&(an=En)}var Rn=Aa(an.messages[0].data);Rn[3]=[],ee.forEach(function(Gn,Ta){Rn[3].push({type:2,data:Zi([[],[{type:0,data:ni(Ta)}],[{type:0,data:ni(1)}],[{type:2,data:Lv(Gn)}]])})}),an.messages[0].data=Zi(Rn),en.content=xs(sa(tn)),en.size=en.content.length})();var pr=Aa(b[3][0].data),Xr=pr[1][0];delete pr[2];var Xr,bn,bn=Aa(Xr.data),dn=uo(bn[2][0].data);return(function(){for(var an,en=$t.find(me,se[dn].location),tn=Js(Nl(en.content)),Qr=0;Qr<tn.length;++Qr){var En=tn[Qr];En.id==dn&&(an=En)}var Rn=Aa(an.messages[0].data);delete Rn[6],delete pr[7];var Gn=new Uint8Array(Rn[5][0].data);Rn[5]=[];for(var Ta=0,xn=0;xn<=j.e.r;++xn){var Yr=Aa(Gn);Ta+=(function(la,Ka,ja){var fi,ss;if((fi=la[6])==null||!fi[0]||(ss=la[7])==null||!ss[0])throw"Mutation only works on post-BNC storages!";if((ss=(ss=la[8])==null?void 0:ss[0])!=null&&ss.data&&0<Vi(la[8][0].data))throw"Math only works with normal offsets";for(var Vt,di,ui=0,Ps=kc(la[7][0].data),Hl=0,Ct=[],mr=kc(la[4][0].data),Nt=0,fr=[],Pt=0;Pt<Ka.length;++Pt)if(Ka[Pt]!=null){switch(Ps.setUint16(2*Pt,Hl,!0),mr.setUint16(2*Pt,Nt,!0),typeof Ka[Pt]){case"string":Vt=$g({t:"s",v:Ka[Pt]},ja),di=Uu({t:"s",v:Ka[Pt]},ja);break;case"number":Vt=$g({t:"n",v:Ka[Pt]},ja),di=Uu({t:"n",v:Ka[Pt]},ja);break;case"boolean":Vt=$g({t:"b",v:Ka[Pt]},ja),di=Uu({t:"b",v:Ka[Pt]},ja);break;default:throw new Error("Unsupported value "+Ka[Pt])}Ct.push(Vt),Hl+=Vt.length,fr.push(di),Nt+=di.length,++ui}else Ps.setUint16(2*Pt,65535,!0),mr.setUint16(2*Pt,65535);for(la[2][0].data=ni(ui);Pt<la[7][0].data.length/2;++Pt)Ps.setUint16(2*Pt,65535,!0),mr.setUint16(2*Pt,65535,!0);return la[6][0].data=mf(Ct),la[3][0].data=mf(fr),ui})(Yr,re[xn],ee),Yr[1][0].data=ni(xn),Rn[5].push({data:Zi(Yr),type:2})}Rn[1]=[{type:0,data:ni(j.e.c+1)}],Rn[2]=[{type:0,data:ni(j.e.r+1)}],Rn[3]=[{type:0,data:ni(Ta)}],Rn[4]=[{type:0,data:ni(j.e.r+1)}],an.messages[0].data=Zi(Rn),en.content=xs(sa(tn)),en.size=en.content.length})(),Xr.data=Zi(bn),b[3][0].data=Zi(pr),J[4][0].data=Zi(b),Be.messages[0].data=Zi(J),De.content=xs(sa(Le)),De.size=De.content.length,me}function Yg(b){return function(E){for(var D=0;D!=b.length;++D){var j=b[D];E[j[0]]===void 0&&(E[j[0]]=j[1]),j[2]==="n"&&(E[j[0]]=Number(E[j[0]]))}}}function Ph(b){Yg([["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]])(b)}function Li(b){Yg([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(b)}function as(b,E){if(!b)return 0;try{b=E.map(function(D){return D.id||(D.id=D.strRelID),[D.name,b["!id"][D.id].Target,(D=b["!id"][D.id].Type,-1<aa.WS.indexOf(D)?"sheet":aa.CS&&D==aa.CS?"chart":aa.DS&&D==aa.DS?"dialog":aa.MS&&D==aa.MS?"macro":D&&D.length?D:"sheet")]})}catch{return null}return b&&b.length!==0?b:null}function Nv(b,E,D,j,J,re,ee,se,Ae,me,_e,Be){try{re[j]=Kc(Rt(b,D,!0),E);var De=yt(b,E);switch(se){case"sheet":He=yv(De,E,J,Ae,re[j],me,_e,Be);break;case"chart":if(!(He=Gy(De,E,J,Ae,re[j],me))||!He["!drawel"])break;var Je=Zr(He["!drawel"].Target,E),Le=Xl(Je),Xe=Zr((Xe=Rt(b,Je,!0),Le=Kc(Rt(b,Le,!0),Je),Xe?(Xe=(Xe.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1],Le["!id"][Xe].Target):"??"),Je),Je=Xl(Xe),He=em(Rt(b,Xe,!0),0,0,Kc(Rt(b,Je,!0),Xe),0,He);break;case"macro":et=E,re[j],et.slice(-4),He={"!type":"macro"};break;case"dialog":et=E,re[j],et.slice(-4),He={"!type":"dialog"};break;default:throw new Error("Unrecognized sheet type "+se)}ee[j]=He;var ct=[];re&&re[j]&&sr(re[j]).forEach(function(lt){var At,pt,jt,rr,Yt,cr,Fr="";if(re[j][lt].Type==aa.CMNT){Fr=Zr(re[j][lt].Target,E);var Dr=Ky(yt(b,Fr,!0),Fr,Ae);if(!Dr||!Dr.length)return;Ch(He,Dr,!1)}re[j][lt].Type==aa.TCMNT&&(Fr=Zr(re[j][lt].Target,E),ct=ct.concat((At=yt(b,Fr,!0),pt=Ae,rr=!(jt=[]),Yt={},cr=0,At.replace(lr,function(pr,Xr){var bn=vn(pr);switch(ri(bn[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":break;case"<threadedComment":Yt={author:bn.personId,guid:bn.id,ref:bn.ref,T:1};break;case"</threadedComment>":Yt.t!=null&&jt.push(Yt);break;case"<text>":case"<text":cr=Xr+pr.length;break;case"</text>":Yt.t=At.slice(cr,Xr).replace(/\r\n/g,`
`).replace(/\r/g,`
`);break;case"<mentions":case"<mentions>":rr=!0;break;case"</mentions>":rr=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":rr=!0;break;case"</ext>":rr=!1;break;default:if(!rr&&pt.WTF)throw new Error("unrecognized "+bn[0]+" in threaded comments")}return pr}),jt)))}),ct&&ct.length&&Ch(He,ct,!0,Ae.people||[])}catch(lt){if(Ae.WTF)throw lt}var et,Xe}function jl(b){return b.charAt(0)=="/"?b.slice(1):b}function jv(b,E){if(zr(),Ph(E=E||{}),We(b,"META-INF/manifest.xml")||We(b,"objectdata.xml"))return Vg(b,E);if(We(b,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(b.FileIndex)return Uv(b);var D=$t.utils.cfb_new();return Mt(b).forEach(function(tn){It(D,tn,(function(En,Rn,Gn){return it(gt(En,Rn))})(b,tn))}),Uv(D)}if(!We(b,"[Content_Types].xml"))throw We(b,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):We(b,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var j,J,re=Mt(b),ee=(function(tn){var Qr=_A();if(!tn||!tn.match)return Qr;var En={};if((tn.match(lr)||[]).forEach(function(Rn){var Gn=vn(Rn);switch(Gn[0].replace(Mn,"<")){case"<?xml":break;case"<Types":Qr.xmlns=Gn["xmlns"+(Gn[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":En[Gn.Extension]=Gn.ContentType;break;case"<Override":Qr[wA[Gn.ContentType]]!==void 0&&Qr[wA[Gn.ContentType]].push(Gn.PartName)}}),Qr.xmlns!==us.CT)throw new Error("Unknown Namespace: "+Qr.xmlns);return Qr.calcchain=0<Qr.calcchains.length?Qr.calcchains[0]:"",Qr.sst=0<Qr.strs.length?Qr.strs[0]:"",Qr.style=0<Qr.styles.length?Qr.styles[0]:"",Qr.defaults=En,delete Qr.calcchains,Qr})(Rt(b,"[Content_Types].xml")),Yt=!1;if(ee.workbooks.length===0&&yt(b,J="xl/workbook.xml",!0)&&ee.workbooks.push(J),ee.workbooks.length===0){if(!yt(b,J="xl/workbook.bin",!0))throw new Error("Could not find workbook");ee.workbooks.push(J),Yt=!0}ee.workbooks[0].slice(-3)=="bin"&&(Yt=!0);var se={},Ae={};if(!E.bookSheets&&!E.bookProps){if(je=[],ee.sst)try{je=$y(yt(b,jl(ee.sst)),ee.sst,E)}catch(tn){if(E.WTF)throw tn}E.cellStyles&&ee.themes.length&&(Je=Rt(b,ee.themes[0].replace(/^\//,""),!0)||"",ee.themes[0],se=gl(Je,E)),ee.style&&(Ae=am(yt(b,jl(ee.style)),ee.style,se,E))}ee.links.map(function(tn){try{return Kc(Rt(b,Xl(jl(tn))),tn),Xy(yt(b,jl(tn)),0,tn,E)}catch{}});var me,_e,Be,De=Wy(yt(b,jl(ee.workbooks[0])),ee.workbooks[0],E),Le={},Je="";ee.coreprops.length&&((Je=yt(b,jl(ee.coreprops[0]),!0))&&(Le=Jl(Je)),ee.extprops.length!==0&&(Je=yt(b,jl(ee.extprops[0]),!0))&&(He=E,Be={},_e=(_e=Le)||{},me=Xa(me=Je),cc.forEach(function(tn){var Qr=(me.match(ul(tn[0]))||[])[1];switch(tn[2]){case"string":Qr&&(_e[tn[1]]=ba(Qr));break;case"bool":_e[tn[1]]=Qr==="true";break;case"raw":var En=me.match(new RegExp("<"+tn[0]+"[^>]*>([\\s\\S]*?)</"+tn[0]+">"));En&&0<En.length&&(Be[tn[1]]=En[1])}}),Be.HeadingPairs&&Be.TitlesOfParts&&Dl(Be.HeadingPairs,Be.TitlesOfParts,_e,He)));var He={};E.bookSheets&&!E.bookProps||ee.custprops.length!==0&&(Je=Rt(b,jl(ee.custprops[0]),!0))&&(He=(function(tn,Qr){var En={},Rn="",Gn=tn.match(hg);if(Gn)for(var Ta=0;Ta!=Gn.length;++Ta){var xn=Gn[Ta],Yr=vn(xn);switch(Yr[0]){case"<?xml":case"<Properties":break;case"<property":Rn=ba(Yr.name);break;case"</property>":Rn=null;break;default:if(xn.indexOf("<vt:")===0){var la=xn.split(">"),Ka=la[0].slice(4),ja=la[1];switch(Ka){case"lpstr":case"bstr":case"lpwstr":En[Rn]=ba(ja);break;case"bool":En[Rn]=si(ja);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":En[Rn]=parseInt(ja,10);break;case"r4":case"r8":case"decimal":En[Rn]=parseFloat(ja);break;case"filetime":case"date":En[Rn]=$e(ja);break;case"cy":case"error":En[Rn]=ba(ja);break;default:if(Ka.slice(-1)=="/")break;Qr.WTF&&typeof console<"u"&&console.warn("Unexpected",xn,Ka,la)}}else if(xn.slice(0,2)!=="</"&&Qr.WTF)throw new Error(xn)}}return En})(Je,E));var ct={};if((E.bookSheets||E.bookProps)&&(De.Sheets?j=De.Sheets.map(function(tn){return tn.name}):Le.Worksheets&&0<Le.SheetNames.length&&(j=Le.SheetNames),E.bookProps&&(ct.Props=Le,ct.Custprops=He),E.bookSheets&&j!==void 0&&(ct.SheetNames=j),E.bookSheets?ct.SheetNames:E.bookProps))return ct;j={},Je={},E.bookDeps&&ee.calcchain&&(Je=Yy(yt(b,jl(ee.calcchain)),ee.calcchain));var et,Xe,lt=0,At={},pt=De.Sheets;Le.Worksheets=pt.length,Le.SheetNames=[];for(var jt=0;jt!=pt.length;++jt)Le.SheetNames[jt]=pt[jt].name;var rr=Yt?"bin":"xml",Yt=ee.workbooks[0].lastIndexOf("/"),cr=(ee.workbooks[0].slice(0,Yt+1)+"_rels/"+ee.workbooks[0].slice(Yt+1)+".rels").replace(/^\//,"");We(b,cr)||(cr="xl/_rels/workbook."+rr+".rels");var Fr,Dr,pr,Xr=Kc(Rt(b,cr,!0),cr.replace(/_rels.*/,"s5s"));1<=(ee.metadata||[]).length&&(E.xlmeta=Zy(yt(b,jl(ee.metadata[0])),ee.metadata[0],E)),1<=(ee.people||[]).length&&(E.people=(Yt=yt(b,jl(ee.people[0])),Fr=E,pr=!(Dr=[]),Yt.replace(lr,function(tn){var Qr=vn(tn);switch(ri(Qr[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":Dr.push({name:Qr.displayname,id:Qr.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":pr=!0;break;case"</ext>":pr=!1;break;default:if(!pr&&Fr.WTF)throw new Error("unrecognized "+Qr[0]+" in threaded comments")}return tn}),Dr)),Xr=Xr&&as(Xr,De.Sheets);var bn=yt(b,"xl/worksheets/sheet.xml",!0)?1:0;e:for(lt=0;lt!=Le.Worksheets;++lt){var dn="sheet";if(Xr&&Xr[lt]?(et="xl/"+Xr[lt][1].replace(/[\/]?xl\//,""),We(b,et)||(et=Xr[lt][1]),We(b,et)||(et=cr.replace(/_rels\/.*$/,"")+Xr[lt][1]),dn=Xr[lt][2]):et=(et="xl/worksheets/sheet"+(lt+1-bn)+"."+rr).replace(/sheet0\./,"sheet."),Xe=et.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),E&&E.sheets!=null)switch(typeof E.sheets){case"number":if(lt!=E.sheets)continue e;break;case"string":if(Le.SheetNames[lt].toLowerCase()!=E.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(E.sheets)){for(var an=!1,en=0;en!=E.sheets.length;++en)typeof E.sheets[en]=="number"&&E.sheets[en]==lt&&(an=1),typeof E.sheets[en]=="string"&&E.sheets[en].toLowerCase()==Le.SheetNames[lt].toLowerCase()&&(an=1);if(!an)continue e}}Nv(b,et,Xe,Le.SheetNames[lt],lt,At,j,dn,E,De,se,Ae)}return ct={Directory:ee,Workbook:De,Props:Le,Custprops:He,Deps:Je,Sheets:j,SheetNames:Le.SheetNames,Strings:je,Styles:Ae,Themes:se,SSF:bt(fe)},E&&E.bookFiles&&(b.files?(ct.keys=re,ct.files=b.files):(ct.keys=[],ct.files={},b.FullPaths.forEach(function(tn,Qr){tn=tn.replace(/^Root Entry[\/]/,""),ct.keys.push(tn),ct.files[tn]=b.FileIndex[Qr]}))),E&&E.bookVBA&&(0<ee.vba.length?ct.vbaraw=yt(b,jl(ee.vba[0]),!0):ee.defaults&&ee.defaults.bin===kh&&(ct.vbaraw=yt(b,"xl/vbaProject.bin",!0))),ct}function Ab(b,E){var D,j=E||{},J="Workbook",re=$t.find(b,J);try{if(J="/!DataSpaces/Version",!(re=$t.find(b,J))||!re.content)throw new Error("ECMA-376 Encrypted file missing "+J);if(ee=re.content,(D={}).id=ee.read_shift(0,"lpp4"),D.R=Ks(ee,4),D.U=Ks(ee,4),D.W=Ks(ee,4),J="/!DataSpaces/DataSpaceMap",!(re=$t.find(b,J))||!re.content)throw new Error("ECMA-376 Encrypted file missing "+J);var ee=Sg(re.content);if(ee.length!==1||ee[0].comps.length!==1||ee[0].comps[0].t!==0||ee[0].name!=="StrongEncryptionDataSpace"||ee[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+J);if(J="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(re=$t.find(b,J))||!re.content)throw new Error("ECMA-376 Encrypted file missing "+J);if(ee=(function(se){var Ae=[];se.l+=4;for(var me=se.read_shift(4);0<me--;)Ae.push(se.read_shift(0,"lpp4"));return Ae})(re.content),ee.length!=1||ee[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+J);if(J="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(re=$t.find(b,J))||!re.content)throw new Error("ECMA-376 Encrypted file missing "+J);Jf(re.content)}catch{}if(J="/EncryptionInfo",!(re=$t.find(b,J))||!re.content)throw new Error("ECMA-376 Encrypted file missing "+J);if(E=kg(re.content),J="/EncryptedPackage",!(re=$t.find(b,J))||!re.content)throw new Error("ECMA-376 Encrypted file missing "+J);if(E[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(E[1],re.content,j.password||"",j);if(E[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(E[1],re.content,j.password||"",j);throw new Error("File is password-protected")}function pb(b,E){return(E.bookType=="ods"?Ov:E.bookType=="numbers"?Tc:E.bookType=="xlsb"?function(D,j){ff=1024,D&&!D.SSF&&(D.SSF=bt(fe)),D&&D.SSF&&(zr(),Br(D.SSF),j.revssf=Or(D.SSF),j.revssf[D.SSF[65535]]=0,j.ssf=D.SSF),j.rels={},j.wbrels={},j.Strings=[],j.Strings.Count=0,j.Strings.Unique=0,ft?j.revStrings=new Map:(j.revStrings={},j.revStrings.foo=[],delete j.revStrings.foo);var J=j.bookType=="xlsb"?"bin":"xml",re=-1<Du.indexOf(j.bookType),ee=_A();Li(j=j||{});var se=xr(),Ae="",me=0;if(j.cellXfs=[],Xt(j.cellXfs,{},{revssf:{General:0}}),D.Props||(D.Props={}),It(se,Ae="docProps/core.xml",CA(D.Props,j)),ee.coreprops.push(Ae),oi(j.rels,2,Ae,aa.CORE_PROPS),Ae="docProps/app.xml",!D.Props||!D.Props.SheetNames)if(D.Workbook&&D.Workbook.Sheets){for(var _e=[],Be=0;Be<D.SheetNames.length;++Be)(D.Workbook.Sheets[Be]||{}).Hidden!=2&&_e.push(D.SheetNames[Be]);D.Props.SheetNames=_e}else D.Props.SheetNames=D.SheetNames;for(D.Props.Worksheets=D.Props.SheetNames.length,It(se,Ae,Wf(D.Props)),ee.extprops.push(Ae),oi(j.rels,3,Ae,aa.EXT_PROPS),D.Custprops!==D.Props&&0<sr(D.Custprops||{}).length&&(It(se,Ae="docProps/custom.xml",SA(D.Custprops)),ee.custprops.push(Ae),oi(j.rels,4,Ae,aa.CUST_PROPS)),me=1;me<=D.SheetNames.length;++me){var De,Le,Je,He={"!id":{}},ct=D.Sheets[D.SheetNames[me-1]];It(se,Ae="xl/worksheets/sheet"+me+"."+J,(function(et,Xe,lt,At,pt){return(Xe.slice(-4)===".bin"?qp:gd)(et,lt,At,pt)})(me-1,Ae,j,D,He)),ee.sheets.push(Ae),oi(j.wbrels,-1,"worksheets/sheet"+me+"."+J,aa.WS[0]),ct&&(De=ct["!comments"],Le=!1,Je="",De&&0<De.length&&(It(se,Je="xl/comments"+me+"."+J,(function(et,Xe,lt){return(Xe.slice(-4)===".bin"?e0:Sh)(et)})(De,Je)),ee.comments.push(Je),oi(He,-1,"../comments"+me+"."+J,aa.CMNT),Le=!0),ct["!legacy"]&&Le&&It(se,"xl/drawings/vmlDrawing"+me+".vml",Rl(me,ct["!comments"])),delete ct["!comments"],delete ct["!legacy"]),He["!id"].rId1&&It(se,Xl(Ae),Zl(He))}return j.Strings!=null&&0<j.Strings.length&&(It(se,Ae="xl/sharedStrings."+J,(function(et,Xe,lt){return(Xe.slice(-4)===".bin"?dh:fh)(et,lt)})(j.Strings,Ae,j)),ee.strs.push(Ae),oi(j.wbrels,-1,"sharedStrings."+J,aa.SST)),It(se,Ae="xl/workbook."+J,(function(et,Xe,lt){return(Xe.slice(-4)===".bin"?Vy:vv)(et)})(D,Ae)),ee.workbooks.push(Ae),oi(j.rels,1,Ae,aa.WB),It(se,Ae="xl/theme/theme1.xml",_h(D.Themes,j)),ee.themes.push(Ae),oi(j.wbrels,-1,"theme/theme1.xml",aa.THEME),It(se,Ae="xl/styles."+J,(function(et,Xe,lt){return(Xe.slice(-4)===".bin"?yh:ZA)(et,lt)})(D,Ae,j)),ee.styles.push(Ae),oi(j.wbrels,-1,"styles."+J,aa.STY),D.vbaraw&&re&&(It(se,Ae="xl/vbaProject.bin",D.vbaraw),ee.vba.push(Ae),oi(j.wbrels,-1,"vbaProject.bin",aa.VBA)),It(se,Ae="xl/metadata."+J,(function(et){return(et.slice(-4)===".bin"?Np:jp)()})(Ae)),ee.metadata.push(Ae),oi(j.wbrels,-1,"metadata."+J,aa.XLMETA),It(se,"[Content_Types].xml",Qf(ee,j)),It(se,"_rels/.rels",Zl(j.rels)),It(se,"xl/_rels/workbook."+J+".rels",Zl(j.wbrels)),delete j.revssf,delete j.ssf,se}:Hv)(b,E)}function Hv(b,E){ff=1024,b&&!b.SSF&&(b.SSF=bt(fe)),b&&b.SSF&&(zr(),Br(b.SSF),E.revssf=Or(b.SSF),E.revssf[b.SSF[65535]]=0,E.ssf=b.SSF),E.rels={},E.wbrels={},E.Strings=[],E.Strings.Count=0,E.Strings.Unique=0,ft?E.revStrings=new Map:(E.revStrings={},E.revStrings.foo=[],delete E.revStrings.foo);var D="xml",j=-1<Du.indexOf(E.bookType),J=_A();Li(E=E||{});var re=xr(),ee="",se=0;if(E.cellXfs=[],Xt(E.cellXfs,{},{revssf:{General:0}}),b.Props||(b.Props={}),ee="docProps/core.xml",It(re,ee,CA(b.Props,E)),J.coreprops.push(ee),oi(E.rels,2,ee,aa.CORE_PROPS),ee="docProps/app.xml",!b.Props||!b.Props.SheetNames)if(b.Workbook&&b.Workbook.Sheets){for(var Ae=[],me=0;me<b.SheetNames.length;++me)(b.Workbook.Sheets[me]||{}).Hidden!=2&&Ae.push(b.SheetNames[me]);b.Props.SheetNames=Ae}else b.Props.SheetNames=b.SheetNames;b.Props.Worksheets=b.Props.SheetNames.length,It(re,ee,Wf(b.Props)),J.extprops.push(ee),oi(E.rels,3,ee,aa.EXT_PROPS),b.Custprops!==b.Props&&0<sr(b.Custprops||{}).length&&(It(re,ee="docProps/custom.xml",SA(b.Custprops)),J.custprops.push(ee),oi(E.rels,4,ee,aa.CUST_PROPS));var _e,Be=["SheetJ5"];for(E.tcid=0,se=1;se<=b.SheetNames.length;++se){var De,Le,Je,He,ct={"!id":{}},et=b.Sheets[b.SheetNames[se-1]];It(re,ee="xl/worksheets/sheet"+se+"."+D,gd(se-1,E,b,ct)),J.sheets.push(ee),oi(E.wbrels,-1,"worksheets/sheet"+se+"."+D,aa.WS[0]),et&&(Le=!1,Je="",(De=et["!comments"])&&0<De.length&&(He=!1,De.forEach(function(Xe){Xe[1].forEach(function(lt){lt.T==1&&(He=!0)})}),He&&(It(re,Je="xl/threadedComments/threadedComment"+se+"."+D,(function(Xe,lt,At){var pt=[Rr,on("ThreadedComments",null,{xmlns:us.TCMNT}).replace(/[\/]>/,">")];return Xe.forEach(function(jt){var rr="";(jt[1]||[]).forEach(function(Yt,cr){var Fr;Yt.T?(Yt.a&&lt.indexOf(Yt.a)==-1&&lt.push(Yt.a),Fr={ref:jt[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+At.tcid++).slice(-12)+"}"},cr==0?rr=Fr.id:Fr.parentId=rr,Yt.ID=Fr.id,Yt.a&&(Fr.personId="{54EE7950-7262-4200-6969-"+("000000000000"+lt.indexOf(Yt.a)).slice(-12)+"}"),pt.push(on("threadedComment",wa("text",Yt.t||""),Fr))):delete Yt.ID})}),pt.push("</ThreadedComments>"),pt.join("")})(De,Be,E)),J.threadedcomments.push(Je),oi(ct,-1,"../threadedComments/threadedComment"+se+"."+D,aa.TCMNT)),It(re,Je="xl/comments"+se+"."+D,Sh(De)),J.comments.push(Je),oi(ct,-1,"../comments"+se+"."+D,aa.CMNT),Le=!0),et["!legacy"]&&Le&&It(re,"xl/drawings/vmlDrawing"+se+".vml",Rl(se,et["!comments"])),delete et["!comments"],delete et["!legacy"]),ct["!id"].rId1&&It(re,Xl(ee),Zl(ct))}return E.Strings!=null&&0<E.Strings.length&&(It(re,ee="xl/sharedStrings.xml",fh(E.Strings,E)),J.strs.push(ee),oi(E.wbrels,-1,"sharedStrings.xml",aa.SST)),It(re,ee="xl/workbook.xml",vv(b)),J.workbooks.push(ee),oi(E.rels,1,ee,aa.WB),It(re,ee="xl/theme/theme1.xml",_h(b.Themes,E)),J.themes.push(ee),oi(E.wbrels,-1,"theme/theme1.xml",aa.THEME),It(re,ee="xl/styles.xml",ZA(b,E)),J.styles.push(ee),oi(E.wbrels,-1,"styles.xml",aa.STY),b.vbaraw&&j&&(It(re,ee="xl/vbaProject.bin",b.vbaraw),J.vba.push(ee),oi(E.wbrels,-1,"vbaProject.bin",aa.VBA)),It(re,ee="xl/metadata.xml",jp()),J.metadata.push(ee),oi(E.wbrels,-1,"metadata.xml",aa.XLMETA),1<Be.length&&(It(re,ee="xl/persons/person.xml",(j=Be,_e=[Rr,on("personList",null,{xmlns:us.TCMNT,"xmlns:x":ac[0]}).replace(/[\/]>/,">")],j.forEach(function(Xe,lt){_e.push(on("person",null,{displayName:Xe,id:"{54EE7950-7262-4200-6969-"+("000000000000"+lt).slice(-12)+"}",userId:Xe,providerId:"None"}))}),_e.push("</personList>"),_e.join(""))),J.people.push(ee),oi(E.wbrels,-1,"persons/person.xml",aa.PEOPLE)),It(re,"[Content_Types].xml",Qf(J,E)),It(re,"_rels/.rels",Zl(E.rels)),It(re,"xl/_rels/workbook.xml.rels",Zl(E.wbrels)),delete E.revssf,delete E.ssf,re}function Xg(b,E){var D="";switch((E||{}).type||"base64"){case"buffer":return[b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]];case"base64":D=w(b.slice(0,12));break;case"binary":D=b;break;case"array":return[b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7]];default:throw new Error("Unrecognized type "+(E&&E.type||"undefined"))}return[D.charCodeAt(0),D.charCodeAt(1),D.charCodeAt(2),D.charCodeAt(3),D.charCodeAt(4),D.charCodeAt(5),D.charCodeAt(6),D.charCodeAt(7)]}function Zg(b,E){var D=0;e:for(;D<b.length;)switch(b.charCodeAt(D)){case 10:case 13:case 32:++D;break;case 60:return Rg(b.slice(D),E);default:break e}return Oo.to_workbook(b,E)}function yd(b,E,D,j){return j?(D.type="string",Oo.to_workbook(b,D)):Oo.to_workbook(E,D)}function Rh(b,E){m();var D=E||{};if(typeof ArrayBuffer<"u"&&b instanceof ArrayBuffer)return Rh(new Uint8Array(b),((D=bt(D)).type="array",D));typeof Uint8Array<"u"&&b instanceof Uint8Array&&!D.type&&(D.type=typeof Deno<"u"?"buffer":"array");var j,J,re,ee,se,Ae=b,me=!1;if(D.cellStyles&&(D.cellNF=!0,D.sheetStubs=!0),rt={},D.dateNF&&(rt.dateNF=D.dateNF),D.type||(D.type=x&&Buffer.isBuffer(b)?"buffer":"base64"),D.type=="file"&&(D.type=x?"buffer":"binary",Ae=(function(Be){if(Lt!==void 0)return Lt.readFileSync(Be);if(typeof Deno<"u")return Deno.readFileSync(Be);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var De=File(Be);De.open("r"),De.encoding="binary";var Le=De.read();return De.close(),Le}catch(Je){if(!Je.message||!Je.message.match(/onstruct/))throw Je}throw new Error("Cannot access file "+Be)})(b),typeof Uint8Array>"u"||x||(D.type="array")),D.type=="string"&&(me=!0,D.type="binary",D.codepage=65001,Ae=(_e=b).match(/[^\x00-\x7F]/)?Is(_e):_e),D.type=="array"&&typeof Uint8Array<"u"&&b instanceof Uint8Array&&typeof ArrayBuffer<"u"){var _e=new ArrayBuffer(3),_e=new Uint8Array(_e);if(_e.foo="bar",!_e.foo)return(D=bt(D)).type="array",Rh(N(Ae),D)}switch((j=Xg(Ae,D))[0]){case 208:if(j[1]===207&&j[2]===17&&j[3]===224&&j[4]===161&&j[5]===177&&j[6]===26&&j[7]===225)return ee=$t.read(Ae,D),se=D,($t.find(ee,"EncryptedPackage")?Ab:om)(ee,se);break;case 9:if(j[1]<=8)return om(Ae,D);break;case 60:return Rg(Ae,D);case 73:if(j[1]===73&&j[2]===42&&j[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(j[1]===68)return(function(Be,De){var Le=De||{},Je=!!Le.WTF;Le.WTF=!0;try{var He=Mo.to_workbook(Be,Le);return Le.WTF=Je,He}catch(ct){if(Le.WTF=Je,!ct.message.match(/SYLK bad record ID/)&&Je)throw ct;return Oo.to_workbook(Be,De)}})(Ae,D);break;case 84:if(j[1]===65&&j[2]===66&&j[3]===76)return DA.to_workbook(Ae,D);break;case 80:return j[1]===75&&j[2]<9&&j[3]<9?(re=se=Ae,(J=(J=D)||{}).type||(J.type=x&&Buffer.isBuffer(se)?"buffer":"base64"),jv(rn(re,J),J)):yd(b,Ae,D,me);case 239:return j[3]===60?Rg(Ae,D):yd(b,Ae,D,me);case 255:if(j[1]===254)return re=Ae,(J=D).type=="base64"&&(re=w(re)),re=t.utils.decode(1200,re.slice(2),"str"),J.type="binary",Zg(re,J);if(j[1]===0&&j[2]===2&&j[3]===0)return eu.to_workbook(Ae,D);break;case 0:if(j[1]===0&&(2<=j[2]&&j[3]===0||j[2]===0&&(j[3]===8||j[3]===9)))return eu.to_workbook(Ae,D);break;case 3:case 131:case 139:case 140:return FA.to_workbook(Ae,D);case 123:if(j[1]===92&&j[2]===114&&j[3]===116)return Ah.to_workbook(Ae,D);break;case 10:case 13:case 32:return(function(Be,De){var Le="",Je=Xg(Be,De);switch(De.type){case"base64":Le=w(Be);break;case"binary":Le=Be;break;case"buffer":Le=Be.toString("binary");break;case"array":Le=tt(Be);break;default:throw new Error("Unrecognized type "+De.type)}return Je[0]==239&&Je[1]==187&&Je[2]==191&&(Le=Xa(Le)),De.type="binary",Zg(Le,De)})(Ae,D);case 137:if(j[1]===80&&j[2]===78&&j[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return-1<Jd.indexOf(j[0])&&j[2]<=12&&j[3]<=31?FA.to_workbook(Ae,D):yd(b,Ae,D,me)}function Qv(b,E){return E=E||{},E.type="file",Rh(b,E)}function Jg(b,E){switch(E.type){case"base64":case"binary":break;case"buffer":case"array":E.type="";break;case"file":return br(E.file,$t.write(b,{type:x?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+E.bookType+"' files");default:throw new Error("Unrecognized type "+E.type)}return $t.write(b,E)}function A0(b,E){var D={},j=x?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(E.compression&&(D.compression="DEFLATE"),E.password)D.type=j;else switch(E.type){case"base64":D.type="base64";break;case"binary":D.type="string";break;case"string":throw new Error("'string' output type invalid for '"+E.bookType+"' files");case"buffer":case"file":D.type=j;break;default:throw new Error("Unrecognized type "+E.type)}if(b=b.FullPaths?$t.write(b,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[D.type]||D.type,compression:!!E.compression}):b.generate(D),typeof Deno<"u"&&typeof b=="string"){if(E.type=="binary"||E.type=="base64")return b;b=new Uint8Array(M(b))}return E.password&&typeof encrypt_agile<"u"?Jg(encrypt_agile(b,E.password),E):E.type==="file"?br(E.file,b):E.type=="string"?Xa(b):b}function is(b,E,D){var j=(D=D||"")+b;switch(E.type){case"base64":return v(Is(j));case"binary":return Is(j);case"string":return b;case"file":return br(E.file,j,"utf8");case"buffer":return x?C(j,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(j):is(j,{type:"binary"}).split("").map(function(J){return J.charCodeAt(0)})}throw new Error("Unrecognized type "+E.type)}function Ec(b,E){switch(E.type){case"string":case"base64":case"binary":for(var D="",j=0;j<b.length;++j)D+=String.fromCharCode(b[j]);return E.type=="base64"?v(D):E.type=="string"?Xa(D):D;case"file":return br(E.file,b);case"buffer":return b;default:throw new Error("Unrecognized type "+E.type)}}function qg(b,E){m(),gv(b);var D,j=bt(E||{});return j.cellStyles&&(j.cellNF=!0,j.sheetStubs=!0),j.type!="array"?(D=b,E=bt((E=j)||{}),A0(Hv(D,E),E)):(j.type="binary",b=qg(b,j),j.type="array",M(b))}function cm(b,E){m(),gv(b);var D=bt(E||{});if(D.cellStyles&&(D.cellNF=!0,D.sheetStubs=!0),D.type=="array")return D.type="binary",E=cm(b,D),D.type="array",M(E);var j,J,re,ee=0;if(D.sheet&&(ee=typeof D.sheet=="number"?D.sheet:b.SheetNames.indexOf(D.sheet),!b.SheetNames[ee]))throw new Error("Sheet not found: "+D.sheet+" : "+typeof D.sheet);switch(D.bookType||"xlsb"){case"xml":case"xlml":return is(Cv(b,D),D);case"slk":case"sylk":return is(Mo.from_sheet(b.Sheets[b.SheetNames[ee]],D),D);case"htm":case"html":return is(Iv(b.Sheets[b.SheetNames[ee]],D),D);case"txt":return(function(se,Ae){switch(Ae.type){case"base64":return v(se);case"binary":case"string":return se;case"file":return br(Ae.file,se,"binary");case"buffer":return x?C(se,"binary"):se.split("").map(function(me){return me.charCodeAt(0)})}throw new Error("Unrecognized type "+Ae.type)})(yl(b.Sheets[b.SheetNames[ee]],D),D);case"csv":return is(fm(b.Sheets[b.SheetNames[ee]],D),D,"\uFEFF");case"dif":return is(DA.from_sheet(b.Sheets[b.SheetNames[ee]],D),D);case"dbf":return Ec(FA.from_sheet(b.Sheets[b.SheetNames[ee]],D),D);case"prn":return is(Oo.from_sheet(b.Sheets[b.SheetNames[ee]],D),D);case"rtf":return is(Ah.from_sheet(b.Sheets[b.SheetNames[ee]],D),D);case"eth":return is(rh.from_sheet(b.Sheets[b.SheetNames[ee]],D),D);case"fods":return is(Ov(b,D),D);case"wk1":return Ec(eu.sheet_to_wk1(b.Sheets[b.SheetNames[ee]],D),D);case"wk3":return Ec(eu.book_to_wk3(b,D),D);case"biff2":D.biff||(D.biff=2);case"biff3":D.biff||(D.biff=3);case"biff4":return D.biff||(D.biff=4),Ec(jg(b,D),D);case"biff5":D.biff||(D.biff=5);case"biff8":case"xla":case"xls":return D.biff||(D.biff=8),Jg(ab(b,re=(re=D)||{}),re);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return j=b,re=bt((J=D)||{}),Mu=new mb(J),A0(pb(j,re),re);default:throw new Error("Unrecognized bookType |"+D.bookType+"|")}}function e1(b){var E;b.bookType||((E=b.file.slice(b.file.lastIndexOf(".")).toLowerCase()).match(/^\.[a-z]+$/)&&(b.bookType=E.slice(1)),b.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[b.bookType]||b.bookType)}function zv(b,E,D){return D=D||{},D.type="file",D.file=E,e1(D),cm(b,D)}function Vv(b,E,D,j,J,re,ee,se){var Ae=ji(D),me=se.defval,_e=se.raw||!Object.prototype.hasOwnProperty.call(se,"raw"),Be=!0,De=J===1?[]:{};if(J!==1)if(Object.defineProperty)try{Object.defineProperty(De,"__rowNum__",{value:D,enumerable:!1})}catch{De.__rowNum__=D}else De.__rowNum__=D;if(!ee||b[D])for(var Le=E.s.c;Le<=E.e.c;++Le){var Je=ee?b[D][Le]:b[j[Le]+Ae];if(Je!==void 0&&Je.t!==void 0){var He=Je.v;switch(Je.t){case"z":if(He==null)break;continue;case"e":He=He==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+Je.t)}if(re[Le]!=null){if(He==null)if(Je.t=="e"&&He===null)De[re[Le]]=null;else if(me!==void 0)De[re[Le]]=me;else{if(!_e||He!==null)continue;De[re[Le]]=null}else De[re[Le]]=_e&&(Je.t!=="n"||Je.t==="n"&&se.rawNumbers!==!1)?He:Fl(Je,He,se);He!=null&&(Be=!1)}}else me!==void 0&&re[Le]!=null&&(De[re[Le]]=me)}return{row:De,isempty:Be}}function p0(b,E){if(b==null||b["!ref"]==null)return[];var D,j={t:"n",v:0},J=0,re=1,ee=[],se="",Ae={s:{r:0,c:0},e:{r:0,c:0}},me=E||{},_e=me.range!=null?me.range:b["!ref"];switch(me.header===1?J=1:me.header==="A"?J=2:Array.isArray(me.header)?J=3:me.header==null&&(J=0),typeof _e){case"string":Ae=Ua(_e);break;case"number":(Ae=Ua(b["!ref"])).s.r=_e;break;default:Ae=_e}0<J&&(re=0);var Be=ji(Ae.s.r),De=[],Le=[],Je=0,He=0,ct=Array.isArray(b),et=Ae.s.r,Xe=0,lt={};ct&&!b[et]&&(b[et]=[]);for(var At,pt=me.skipHidden&&b["!cols"]||[],jt=me.skipHidden&&b["!rows"]||[],Xe=Ae.s.c;Xe<=Ae.e.c;++Xe)if(!(pt[Xe]||{}).hidden)switch(De[Xe]=Oa(Xe),j=ct?b[et][Xe]:b[De[Xe]+Be],J){case 1:ee[Xe]=Xe-Ae.s.c;break;case 2:ee[Xe]=De[Xe];break;case 3:ee[Xe]=me.header[Xe-Ae.s.c];break;default:if(se=D=Fl(j=j??{w:"__EMPTY",t:"s"},null,me),He=lt[D]||0){for(;se=D+"_"+He++,lt[se];);lt[D]=He,lt[se]=1}else lt[D]=1;ee[Xe]=se}for(et=Ae.s.r+re;et<=Ae.e.r;++et)(jt[et]||{}).hidden||(At=Vv(b,Ae,et,De,J,ee,ct,me)).isempty!==!1&&(J===1?me.blankrows===!1:!me.blankrows)||(Le[Je++]=At.row);return Le.length=Je,Le}var Nu=/"/g;function ka(b,E,D,j,J,re,ee,se){for(var Ae=!0,me=[],_e="",Be=ji(D),De=E.s.c;De<=E.e.c;++De)if(j[De]){var Le=se.dense?(b[D]||[])[De]:b[j[De]+Be];if(Le==null)_e="";else if(Le.v!=null){Ae=!1,_e=""+(se.rawNumbers&&Le.t=="n"?Le.v:Fl(Le,null,se));for(var Je,He=0;He!==_e.length;++He)if((Je=_e.charCodeAt(He))===J||Je===re||Je===34||se.forceQuotes){_e='"'+_e.replace(Nu,'""')+'"';break}_e=="ID"&&(_e='"ID"')}else Le.f==null||Le.F?_e="":(Ae=!1,0<=(_e="="+Le.f).indexOf(",")&&(_e='"'+_e.replace(Nu,'""')+'"'));me.push(_e)}return se.blankrows===!1&&Ae?null:me.join(ee)}function fm(b,E){var D=[],j=E??{};if(b==null||b["!ref"]==null)return"";var J=Ua(b["!ref"]),re=j.FS!==void 0?j.FS:",",ee=re.charCodeAt(0),se=j.RS!==void 0?j.RS:`
`,Ae=se.charCodeAt(0),me=new RegExp((re=="|"?"\\|":re)+"+$"),_e="",Be=[];j.dense=Array.isArray(b);for(var De=j.skipHidden&&b["!cols"]||[],Le=j.skipHidden&&b["!rows"]||[],Je=J.s.c;Je<=J.e.c;++Je)(De[Je]||{}).hidden||(Be[Je]=Oa(Je));for(var He=0,ct=J.s.r;ct<=J.e.r;++ct)(Le[ct]||{}).hidden||(_e=ka(b,J,ct,Be,ee,Ae,re,j))!=null&&(!(_e=j.strip?_e.replace(me,""):_e)&&j.blankrows===!1||D.push((He++?se:"")+_e));return delete j.dense,D.join("")}function yl(b,E){return(E=E||{}).FS="	",E.RS=`
`,b=fm(b,E),t===void 0||E.type=="string"?b:(b=t.utils.encode(1200,b,"str"),"ÿþ"+b)}function t1(_e,E,D){var j,J=D||{},re=+!J.skipHeader,ee=_e||{},se=0,Ae=0;ee&&J.origin!=null&&(typeof J.origin=="number"?se=J.origin:(me=typeof J.origin=="string"?ki(J.origin):J.origin,se=me.r,Ae=me.c));var me,_e={s:{c:0,r:0},e:{c:Ae,r:se+E.length-1+re}};ee["!ref"]?(me=Ua(ee["!ref"]),_e.e.c=Math.max(_e.e.c,me.e.c),_e.e.r=Math.max(_e.e.r,me.e.r),se==-1&&(se=me.e.r+1,_e.e.r=se+E.length-1+re)):se==-1&&(se=0,_e.e.r=E.length-1+re);var Be=J.header||[],De=0;E.forEach(function(Je,He){sr(Je).forEach(function(At){(De=Be.indexOf(At))==-1&&(Be[De=Be.length]=At);var et=Je[At],Xe="z",lt="",At=ea({c:Ae+De,r:se+He+re});j=dm(ee,At),!et||typeof et!="object"||et instanceof Date?(typeof et=="number"?Xe="n":typeof et=="boolean"?Xe="b":typeof et=="string"?Xe="s":et instanceof Date?(Xe="d",J.cellDates||(Xe="n",et=Wr(et)),lt=J.dateNF||fe[14]):et===null&&J.nullError&&(Xe="e",et=0),j?(j.t=Xe,j.v=et,delete j.w,delete j.R,lt&&(j.z=lt)):ee[At]=j={t:Xe,v:et},lt&&(j.z=lt)):ee[At]=et})}),_e.e.c=Math.max(_e.e.c,Ae+Be.length-1);var Le=ji(se);if(re)for(De=0;De<Be.length;++De)ee[Oa(De+Ae)+Le]={t:"s",v:Be[De]};return ee["!ref"]=ga(_e),ee}function dm(b,E,D){return typeof E!="string"?dm(b,ea(typeof E!="number"?E:{r:E,c:D||0})):Array.isArray(b)?(D=ki(E),b[D.r]||(b[D.r]=[]),b[D.r][D.c]||(b[D.r][D.c]={t:"z"})):b[E]||(b[E]={t:"z"})}function li(){return{SheetNames:[],Sheets:{}}}function r1(b,E,D,j){var J=1;if(!D)for(;J<=65535&&b.SheetNames.indexOf(D="Sheet"+J)!=-1;++J,D=void 0);if(!D||65535<=b.SheetNames.length)throw new Error("Too many worksheets");if(j&&0<=b.SheetNames.indexOf(D)){var j=D.match(/(^.*?)(\d+)$/),J=j&&+j[2]||0,re=j&&j[1]||D;for(++J;J<=65535&&b.SheetNames.indexOf(D=re+J)!=-1;++J);}if(Lg(D),0<=b.SheetNames.indexOf(D))throw new Error("Worksheet with name |"+D+"| already exists!");return b.SheetNames.push(D),b.Sheets[D]=E,D}function n1(b,E,D){return E?(b.l={Target:E},D&&(b.l.Tooltip=D)):delete b.l,b}var bd,a1={encode_col:Oa,encode_row:ji,encode_cell:ea,encode_range:ga,decode_col:Qd,decode_row:Rf,split_cell:function(b){return b.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:ki,decode_range:Ws,format_cell:Fl,sheet_add_aoa:ep,sheet_add_json:t1,sheet_add_dom:f0,aoa_to_sheet:cl,json_to_sheet:function(b,E){return t1(null,b,E)},table_to_sheet:d0,table_to_book:function(b,E){return yu(d0(b,E),E)},sheet_to_csv:fm,sheet_to_txt:yl,sheet_to_json:p0,sheet_to_html:Iv,sheet_to_formulae:function(b){var E,D="",j="";if(b==null||b["!ref"]==null)return[];for(var J,re=Ua(b["!ref"]),ee=[],se=[],Ae=Array.isArray(b),me=re.s.c;me<=re.e.c;++me)ee[me]=Oa(me);for(var _e=re.s.r;_e<=re.e.r;++_e)for(J=ji(_e),me=re.s.c;me<=re.e.c;++me)if(D=ee[me]+J,j="",(E=Ae?(b[_e]||[])[me]:b[D])!==void 0){if(E.F!=null){if(D=E.F,!E.f)continue;j=E.f,D.indexOf(":")==-1&&(D=D+":"+D)}if(E.f!=null)j=E.f;else{if(E.t=="z")continue;if(E.t=="n"&&E.v!=null)j=""+E.v;else if(E.t=="b")j=E.v?"TRUE":"FALSE";else if(E.w!==void 0)j="'"+E.w;else{if(E.v===void 0)continue;j=E.t=="s"?"'"+E.v:""+E.v}}se[se.length]=D+"="+j}return se},sheet_to_row_object_array:p0,sheet_get_cell:dm,book_new:li,book_append_sheet:r1,book_set_sheet_visibility:function(b,E,D){switch(b.Workbook||(b.Workbook={}),b.Workbook.Sheets||(b.Workbook.Sheets=[]),E=(function(j,J){if(typeof J=="number"){if(0<=J&&j.SheetNames.length>J)return J;throw new Error("Cannot find sheet # "+J)}if(typeof J!="string")throw new Error("Cannot find sheet |"+J+"|");if(-1<(j=j.SheetNames.indexOf(J)))return j;throw new Error("Cannot find sheet name |"+J+"|")})(b,E),b.Workbook.Sheets[E]||(b.Workbook.Sheets[E]={}),D){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+D)}b.Workbook.Sheets[E].Hidden=D},cell_set_number_format:function(b,E){return b.z=E,b},cell_set_hyperlink:n1,cell_set_internal_link:function(b,E,D){return n1(b,"#"+E,D)},cell_add_comment:function(b,E,D){b.c||(b.c=[]),b.c.push({t:E,a:D||"SheetJS"})},sheet_set_array_formula:function(b,E,D,j){for(var J=typeof E!="string"?E:Ua(E),re=typeof E=="string"?E:ga(E),ee=J.s.r;ee<=J.e.r;++ee)for(var se=J.s.c;se<=J.e.c;++se){var Ae=dm(b,ee,se);Ae.t="n",Ae.F=re,delete Ae.v,ee==J.s.r&&se==J.s.c&&(Ae.f=D,j&&(Ae.D=!0))}return b},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Wv(b){bd=b}var Uh={to_json:function(b,E){var D=bd({objectMode:!0});if(b==null||b["!ref"]==null)return D.push(null),D;var j,J={t:"n",v:0},re=0,ee=1,se=[],Ae="",me={s:{r:0,c:0},e:{r:0,c:0}},_e=E||{},Be=_e.range!=null?_e.range:b["!ref"];switch(_e.header===1?re=1:_e.header==="A"?re=2:Array.isArray(_e.header)&&(re=3),typeof Be){case"string":me=Ua(Be);break;case"number":(me=Ua(b["!ref"])).s.r=Be;break;default:me=Be}0<re&&(ee=0);var De=ji(me.s.r),Le=[],Je=0,He=Array.isArray(b),ct=me.s.r,et=0,Xe={};He&&!b[ct]&&(b[ct]=[]);for(var lt=_e.skipHidden&&b["!cols"]||[],At=_e.skipHidden&&b["!rows"]||[],et=me.s.c;et<=me.e.c;++et)if(!(lt[et]||{}).hidden)switch(Le[et]=Oa(et),J=He?b[ct][et]:b[Le[et]+De],re){case 1:se[et]=et-me.s.c;break;case 2:se[et]=Le[et];break;case 3:se[et]=_e.header[et-me.s.c];break;default:if(Ae=j=Fl(J=J??{w:"__EMPTY",t:"s"},null,_e),Je=Xe[j]||0){for(;Ae=j+"_"+Je++,Xe[Ae];);Xe[j]=Je,Xe[Ae]=1}else Xe[j]=1;se[et]=Ae}return ct=me.s.r+ee,D._read=function(){for(;ct<=me.e.r;)if(!(At[ct-1]||{}).hidden){var pt=Vv(b,me,ct,Le,re,se,He,_e);if(++ct,pt.isempty===!1||(re===1?_e.blankrows!==!1:_e.blankrows))return void D.push(pt.row)}return D.push(null)},D},to_html:function(b,J){var D=bd(),j=J||{},J=j.header!=null?j.header:zg,re=j.footer!=null?j.footer:Tv;D.push(J);var ee=Ws(b["!ref"]);j.dense=Array.isArray(b),D.push(Ev(0,0,j));var se=ee.s.r,Ae=!1;return D._read=function(){if(se>ee.e.r)return Ae||(Ae=!0,D.push("</table>"+re)),D.push(null);for(;se<=ee.e.r;){D.push(Qg(b,ee,se,j)),++se;break}},D},to_csv:function(b,E){var D=bd(),j=E??{};if(b==null||b["!ref"]==null)return D.push(null),D;var J=Ua(b["!ref"]),re=j.FS!==void 0?j.FS:",",ee=re.charCodeAt(0),se=j.RS!==void 0?j.RS:`
`,Ae=se.charCodeAt(0),me=new RegExp((re=="|"?"\\|":re)+"+$"),_e="",Be=[];j.dense=Array.isArray(b);for(var De=j.skipHidden&&b["!cols"]||[],Le=j.skipHidden&&b["!rows"]||[],Je=J.s.c;Je<=J.e.c;++Je)(De[Je]||{}).hidden||(Be[Je]=Oa(Je));var He=J.s.r,ct=!1,et=0;return D._read=function(){if(!ct)return ct=!0,D.push("\uFEFF");for(;He<=J.e.r;)if(++He,!(Le[He-1]||{}).hidden&&(_e=ka(b,J,He-1,Be,ee,Ae,re,j),_e!=null&&((_e=j.strip?_e.replace(me,""):_e)||j.blankrows!==!1)))return D.push((et++?se:"")+_e);return D.push(null)},D},set_readable:Wv},qa=(function(){function b(E,D,j){return this instanceof b?(this.tagName=E,this._attributes=D||{},this._children=j||[],this._prefix="",this):new b(E,D,j)}return b.prototype.createElement=function(){return new b(arguments)},b.prototype.children=function(){return this._children},b.prototype.append=function(E){return this._children.push(E),this},b.prototype.prefix=function(E){return arguments.length==0?this._prefix:(this._prefix=E,this)},b.prototype.attr=function(E,D){if(D==null)return delete this._attributes[E],this;if(arguments.length==0)return this._attributes;if(typeof E=="string"&&arguments.length==1)return this._attributes.attr[E];if(typeof E=="object"&&arguments.length==1)for(var j in E)this._attributes[j]=E[j];else arguments.length==2&&typeof E=="string"&&(this._attributes[E]=D);return this},b.prototype.escapeAttributeValue=function(E){return'"'+E.replace(/\"/g,"&quot;")+'"'},b.prototype.toXml=function(E){var D=(E=E||this)._prefix;if(D+="<"+E.tagName,E._attributes)for(var j in E._attributes)D+=" "+j+"="+this.escapeAttributeValue(""+E._attributes[j]);if(E._children&&0<E._children.length){D+=">";for(var J=0;J<E._children.length;J++)D+=this.toXml(E._children[J]);D+="</"+E.tagName+">"}else D+="/>";return D},b})(),mb=function(b){var E,D=164,j={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"秒 "'},J={};for(E in j)J[j[E]]=E;var re={};return{initialize:function(ee){this.$fonts=qa("fonts").attr("count",0).attr("x14ac:knownFonts","1"),this.$fills=qa("fills").attr("count",0),this.$borders=qa("borders").attr("count",0),this.$numFmts=qa("numFmts").attr("count",0),this.$cellStyleXfs=qa("cellStyleXfs"),this.$xf=qa("xf").attr("numFmtId",0).attr("fontId",0).attr("fillId",0).attr("borderId",0),this.$cellXfs=qa("cellXfs").attr("count",0),this.$cellStyles=qa("cellStyles").append(qa("cellStyle").attr("name","Normal").attr("xfId",0).attr("builtinId",0)),this.$dxfs=qa("dxfs").attr("count","0"),this.$tableStyles=qa("tableStyles").attr("count","0").attr("defaultTableStyle","TableStyleMedium9").attr("defaultPivotStyle","PivotStyleMedium4"),this.$styles=qa("styleSheet").attr("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006").attr("xmlns:x14ac","http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac").attr("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main").attr("mc:Ignorable","x14ac").prefix('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>').append(this.$numFmts).append(this.$fonts).append(this.$fills).append(this.$borders).append(this.$cellStyleXfs.append(this.$xf)).append(this.$cellXfs).append(this.$cellStyles).append(this.$dxfs).append(this.$tableStyles);var se=ee.defaultCellStyle||{};return se.font||(se.font={name:"Calibri",sz:"11"}),se.font.name||(se.font.name="Calibri"),se.font.sz||(se.font.sz=11),se.fill||(se.fill={patternType:"none",fgColor:{}}),se.border||(se.border={}),se.numFmt||(se.numFmt=0),this.defaultStyle=se,ee=JSON.parse(JSON.stringify(se)),ee.fill={patternType:"gray125",fgColor:{}},this.addStyles([se,ee]),this},addStyle:function(ee){var se=JSON.stringify(ee),Ae=re[se];return Ae==null?(Ae=this._addXf(ee),re[se]=Ae):Ae=re[se],Ae},addStyles:function(ee){var se=this;return ee.map(function(Ae){return se.addStyle(Ae)})},_duckTypeStyle:function(ee){return typeof ee=="object"&&(ee.patternFill||ee.fgColor)?{fill:ee}:ee.font||ee.numFmt||ee.border||ee.fill?ee:this._getStyleCSS(ee)},_getStyleCSS:function(ee){return ee},_addXf:function(ee){var se=this._addFont(ee.font),Ae=this._addFill(ee.fill),me=this._addBorder(ee.border),_e=this._addNumFmt(ee.numFmt),Be=qa("xf").attr("numFmtId",_e).attr("fontId",se).attr("fillId",Ae).attr("borderId",me).attr("xfId","0");return 0<se&&Be.attr("applyFont","1"),0<Ae&&Be.attr("applyFill","1"),0<me&&Be.attr("applyBorder","1"),0<_e&&Be.attr("applyNumberFormat","1"),ee.alignment&&(_e=qa("alignment"),ee.alignment.horizontal&&_e.attr("horizontal",ee.alignment.horizontal),ee.alignment.vertical&&_e.attr("vertical",ee.alignment.vertical),ee.alignment.indent&&_e.attr("indent",ee.alignment.indent),ee.alignment.readingOrder&&_e.attr("readingOrder",ee.alignment.readingOrder),ee.alignment.wrapText&&_e.attr("wrapText",ee.alignment.wrapText),ee.alignment.textRotation!=null&&_e.attr("textRotation",ee.alignment.textRotation),Be.append(_e).attr("applyAlignment",1)),this.$cellXfs.append(Be),Be=+this.$cellXfs.children().length,this.$cellXfs.attr("count",Be),Be-1},_addFont:function(ee){if(!ee)return 0;var se=qa("font").append(qa("sz").attr("val",ee.sz||this.defaultStyle.font.sz)).append(qa("name").attr("val",ee.name||this.defaultStyle.font.name));return ee.bold&&se.append(qa("b")),ee.underline&&se.append(qa("u")),ee.italic&&se.append(qa("i")),ee.strike&&se.append(qa("strike")),ee.outline&&se.append(qa("outline")),ee.shadow&&se.append(qa("shadow")),ee.vertAlign&&se.append(qa("vertAlign").attr("val",ee.vertAlign)),ee.color&&(ee.color.theme?(se.append(qa("color").attr("theme",ee.color.theme)),ee.color.tint&&se.append(qa("tint").attr("theme",ee.color.tint))):ee.color.rgb&&se.append(qa("color").attr("rgb",ee.color.rgb))),this.$fonts.append(se),se=this.$fonts.children().length,this.$fonts.attr("count",se),se-1},_addNumFmt:function(ee){if(!ee)return 0;if(typeof ee=="string"){var se=J[ee];if(0<=se)return se}return/^[0-9]+$/.exec(ee)?ee:(ee=ee.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),ee=qa("numFmt").attr("numFmtId",++D).attr("formatCode",ee),this.$numFmts.append(ee),ee=this.$numFmts.children().length,this.$numFmts.attr("count",ee),D)},_addFill:function(ee){if(!ee)return 0;var se,Ae=qa("patternFill").attr("patternType",ee.patternType||"solid");return ee.fgColor&&(se=qa("fgColor"),ee.fgColor.rgb?(ee.fgColor.rgb.length==6&&(ee.fgColor.rgb="FF"+ee.fgColor.rgb),se.attr("rgb",ee.fgColor.rgb),Ae.append(se)):ee.fgColor.theme&&(se.attr("theme",ee.fgColor.theme),ee.fgColor.tint&&se.attr("tint",ee.fgColor.tint),Ae.append(se)),ee.bgColor||(ee.bgColor={indexed:"64"})),ee.bgColor&&(ee=qa("bgColor").attr(ee.bgColor),Ae.append(ee)),Ae=qa("fill").append(Ae),this.$fills.append(Ae),Ae=this.$fills.children().length,this.$fills.attr("count",Ae),Ae-1},_getSubBorder:function(ee,se){var Ae=qa(ee);return se&&(Ae.attr("style",se.style||"medium"),se.color&&(ee=qa("color"),se.color.auto?ee.attr("auto",se.color.auto):se.color.rgb?ee.attr("rgb",se.color.rgb):(se.color.theme||se.color.tint)&&(ee.attr("theme",se.color.theme||"1"),ee.attr("tint",se.color.tint||"0")),Ae.append(ee))),Ae},_addBorder:function(ee){if(!ee)return 0;var se=this,Ae=qa("border").attr("diagonalUp",ee.diagonalUp).attr("diagonalDown",ee.diagonalDown);["left","right","top","bottom","diagonal"].forEach(function(_e){Ae.append(se._getSubBorder(_e,ee[_e]))}),this.$borders.append(Ae);var me=this.$borders.children().length;return this.$borders.attr("count",me),me-1},toXml:function(){return this.$styles.toXml()}}.initialize(b||{})};om!==void 0&&(n.parse_xlscfb=om),n.parse_zip=jv,n.read=Rh,n.readFile=Qv,n.readFileSync=Qv,n.write=cm,n.writeFile=zv,n.writeFileSync=zv,n.writeFileAsync=function(b,E,D,j){var J=D||{};return J.type="file",J.file=b,e1(J),J.type="buffer",j instanceof Function||(j=D),Lt.writeFile(b,cm(E,J),j)},n.utils=a1,n.writeXLSX=qg,n.writeFileXLSX=function(b,E,D){return(D=D||{}).type="file",D.file=E,e1(D),qg(b,D)},n.SSF=mn,Uh!==void 0&&(n.stream=Uh),$t!==void 0&&(n.CFB=$t),typeof Xu>"u"||((Uh=vb)||{}).Readable&&Wv(Uh.Readable)}if(i(s),typeof window<"u"&&!window.XLSX)try{window.XLSX=r}catch{}})(n2,n2.exports)),n2.exports}var wU=bU();const _U=dy(wU),xU={class:"main"},CU={class:"content-header"},SU={class:"flex items-center gap-[5px] !p-[5px]"},kU={style:{"font-size":"13px",color:"rgb(133, 133, 133)","line-height":"13px"}},TU={style:{display:"flex",height:"100%","margin-left":"30px"}},EU={class:"header-total-item"},IU={style:{"font-size":"30px",color:"rgb(37, 37, 37)","line-height":"30px","font-weight":"bold"}},BU={class:"header-total-item"},FU={style:{"font-size":"30px",color:"rgb(37, 37, 37)","line-height":"30px","font-weight":"bold"}},MU={class:"header-total-item"},DU={style:{"font-size":"30px",color:"rgb(37, 37, 37)","line-height":"30px","font-weight":"bold"}},OU={class:"header-total-item"},LU={style:{"font-size":"30px",color:"rgb(37, 37, 37)","line-height":"30px","font-weight":"bold"}},PU={class:"header-total-item"},RU={style:{"font-size":"30px",color:"rgb(37, 37, 37)","line-height":"30px","font-weight":"bold"}},UU={class:"flex items-center justify-between"},NU={class:"content-body"},jU={class:"scrollbar-flex-content"},HU=["onClick"],QU={class:"text-[30px]"},zU={m:"4"},VU=["innerHTML"],WU={__name:"wordTable",props:{pageAll:{type:Boolean,default:!0},count:{type:Number,default:500}},setup(a){const s=a,r=new Date().toLocaleString(),i=we("len"),n=we(0),t=we(),c=s.pageAll?500:s.count,u=we(!1),f=we(),o=we(),l=we(!1),g=we({number:0,wordNumber:0,latterNumber:0,averageLatterNumber:0,maxCount:0}),m=we([]),p=Pr(()=>m.value[i.value]),_=(B,O)=>{n.value=B},y=B=>{},h=we(),d=we(),A=we(!1),v=(B,O)=>{var F;if(d.value=B.word,O.some(L=>L.id===B.id))if(h.value&&h.value!==B.id){A.value=!0;const L=(F=p.value[n.value])==null?void 0:F.data.find(R=>R.id===h.value);L&&o.value.toggleRowExpansion(L,!1),h.value=B.id,setTimeout(()=>{A.value=!1},0)}else h.value||(h.value=B.id);else h.value===B.id&&(h.value=null)},w=()=>{const B=x();C(B)},x=()=>{let B=[];return document.querySelectorAll("div.EKDT7a3v").forEach(I=>{var G;let F=I.querySelectorAll("[data-tooltip-title]")[0].innerText.split(`
`).filter(fe=>fe!=="预览"&&fe!=="广告"&&fe!=="本地仓"),L=I.querySelectorAll("[data-tooltip]")[0].dataset.tooltipTitle,R=F.findIndex(fe=>fe.includes("$")),U=F.findIndex(fe=>fe.includes("已售")),V=I.querySelectorAll("a")[0].href,W=((G=I.querySelector(".araHtJv5 img"))==null?void 0:G.src)||"",Q=M(F[U+1]||0),le=I.querySelectorAll("[data-tooltip]")[0].dataset.tooltip.split("-")[1];B.push({id:le,title:L,prise:F[R],sold:Q,link:V,image:W})}),B};let C=B=>{if(!B)return;let O=[];B.forEach((L,R)=>{R<10&&O.push(L.title)});let I=T(O);u.value=I,f.value=I?"":" ",B=B.filter(L=>I?/[\u4e00-\u9fa5]/.test(L.title):!0),B.length>c&&(B=B.slice(0,c));let F={number:B.length,wordNumber:0,latterNumber:0,averageLatterNumber:0,maxCount:0};B.forEach(L=>{let R=L.title;F.latterNumber+=R.split(f.value).length}),F.averageLatterNumber=Math.round(F.latterNumber/F.number),g.value=F,k(B,"len"),k(B,"count")};function k(B,O){let I={};B=B.sort((V,W)=>W.sold-V.sold),B=B.map((V,W)=>{V.soldRank=W+1;let Q=V.title;return u.value?V.title=Q.replace(/[^\w\u4e00-\u9fa5]/g,""):(V.title=Q.replace(/[^\w\s]/g,""),V.title=V.title.replace(/\s+/g," ")),V}),B.forEach(V=>{let Q=V.title.split(f.value),le=[];Q.forEach(fe=>{(fe.match(/\w/)||fe.match(/[\u4e00-\u9fa5]/))&&le.push(fe)}),S(le).forEach(fe=>{I[fe]=I[fe]?I[fe]:{count:0,goods:[]},I[fe].count=(I[fe].count||0)+1,!I[fe].goods.filter(he=>{if(he.id===V.id)return!0}).length&&I[fe].goods.push(V)})});let F=[];for(let V in I){let W=I[V];(O==="len"?W.count>1:V.split(f.value).length>1)&&(W.goods=W.goods.sort((le,G)=>G.sold-le.sold),F.push({word:V,count:W.count,len:V.split(f.value).length,goods:W.goods,totalSold:W.goods.reduce((le,G)=>le+G.sold,0),maxSold:W.goods[0].sold,maxSoldRank:W.goods[0].soldRank}))}let L=F.filter(V=>V.count>1).sort((V,W)=>W.len-V.len||W.count-V.count);L=L.map((V,W)=>({...V,id:W})),L=L.filter(V=>V);let R={};L.forEach(V=>{R[V[O]]=R[V[O]]?R[V[O]]:[],R[V[O]].push(V)});let U=[];for(let V in R){R[V]=R[V].sort((Q,le)=>le.totalSold-Q.totalSold),R[V]=R[V].map((Q,le)=>(Q.totalSoldRank=le+1,Q)),R[V]=R[V].sort((Q,le)=>le.count-Q.count);let W={};W[O]=V,W.data=R[V],U.push(W)}U=U.map((V,W)=>({...V,id:W})),O==="len"?U.forEach((V,W)=>{let Q=U[W+1];if(!Q)return;let le=Q.data;return V.data=V.data.filter(G=>{let fe=!1;return G.count>g.value.maxCount&&(g.value.maxCount=G.count),le.forEach(ie=>{G.count===ie.count&&G.goods.length===ie.goods.length&&ie.word.includes(G.word)&&(fe=!0)}),!fe}),V}):U.forEach((V,W)=>{V.data=V.data.sort((G,fe)=>fe.word.split(f.value).length-G.word.split(f.value).length);let Q=[],le=!1;V.data.forEach(G=>{Q.forEach(fe=>{fe.word.includes(G.word)&&G.count===fe.count&&G.goods.length===fe.goods.length&&(le=!0)}),le||Q.push(G)}),V.data=Q}),U=U.filter(V=>V.data.length),O==="count"&&U.reverse(),m.value[O]=U,U.forEach(V=>{g.value.wordNumber+=V.data.length})}function T(B){let O=10,I=6;B.length<O&&(I=1);const F=/[\u4e00-\u9fa5]/;let L=0;for(const R of B)if(typeof R=="string"&&F.test(R)&&(L++,L>=I))return!0;return!1}function S(B,O=100){const I=[];for(let F=1;F<=O;F++)for(let L=0;L<=B.length-F;L++){const R=B.slice(L,L+F);I.push(R.join(f.value))}return I}function M(B){const O=B.replace(/,/g,"");if(O.includes("K")){const I=parseFloat(O.replace("K",""));return isNaN(I)?null:I*1e3}else if(O.includes("万")){const I=parseFloat(O.replace("万",""));return isNaN(I)?null:I*1e4}else{const I=parseFloat(O);return isNaN(I)?null:I}}function P(B){const O=d.value,I=new RegExp(`(${O})`,"gi");return B.replace(I,L=>`<span style="color: #ef4444; font-weight: bold;">${L}</span>`)}oa(()=>{w()});const N=()=>{ut.success("表格生成中..."),l.value=!0;const B=_f.book_new();m.value.len.forEach(F=>{let L=[];F.data.forEach((R,U)=>{L.push(["序号","词组","词频","商品数量","总销量排名","最大销量排名","总销量","最大销量"]),L.push([U+1,R.word,R.count,R.goods.length,R.totalSoldRank,R.maxSoldRank,R.totalSold,R.maxSold]),L.push([" ","序号","主图","标题","销量","销量排名","字符数"]),R.goods.forEach((V,W)=>{L.push(["",W+1,V.image,V.title,V.sold,V.soldRank,V.title.length])})}),_f.book_append_sheet(B,_f.aoa_to_sheet(L),`词组长度${F.len}`)});const I=_U.write(B,{bookType:"xlsx",type:"buffer"});gy.saveAs(new Blob([I],{type:"application/octet-stream"}),"凌风跨境工具箱_商品标题词频统计.xlsx"),setTimeout(()=>{ut.success("表格已下载"),l.value=!1},2e3)};return(B,O)=>{var le;const I=Ce("el-avatar"),F=Ce("el-link"),L=Ce("el-radio-button"),R=Ce("el-radio-group"),U=Ce("el-button"),V=Ce("el-scrollbar"),W=Ce("el-table-column"),Q=Ce("el-table");return Oe(),st("div",xU,[de("div",CU,[de("div",null,[de("div",SU,[z(I,{shape:"square",size:20,src:St(j0)},null,8,["src"]),O[2]||(O[2]=Ue()),z(F,{href:"https://www.kuajingabc.com",target:"_blank",class:"mx-1 !text-[18px] font-bold",type:"primary"},{default:q(()=>[...O[1]||(O[1]=[Ue("凌风跨境工具箱",-1)])]),_:1})]),O[3]||(O[3]=de("div",{style:{"margin-top":"10px","font-size":"25px","font-weight":"500",color:"rgb(37, 37, 37)"}}," 商品标题词频统计 ",-1)),de("div",kU,ht(St(r)),1)]),de("div",TU,[de("div",EU,[O[4]||(O[4]=de("div",{style:{"font-size":"14px",color:"rgb(133, 133, 133)","line-height":"40px"}}," 商品总数 ",-1)),de("div",IU,ht(g.value.number||0),1)]),de("div",BU,[O[5]||(O[5]=de("div",{style:{"font-size":"14px",color:"rgb(133, 133, 133)","line-height":"40px"}}," 平均字符数 ",-1)),de("div",FU,ht(g.value.averageLatterNumber||0),1)]),de("div",MU,[O[6]||(O[6]=de("div",{style:{"font-size":"14px",color:"rgb(133, 133, 133)","line-height":"40px"}}," 单词数量 ",-1)),de("div",DU,ht(g.value.wordNumber||0),1)]),de("div",OU,[O[7]||(O[7]=de("div",{style:{"font-size":"14px",color:"rgb(133, 133, 133)","line-height":"40px"}}," 词组数量 ",-1)),de("div",LU,ht(g.value.averageLatterNumber||0),1)]),de("div",PU,[O[8]||(O[8]=de("div",{style:{"font-size":"14px",color:"rgb(133, 133, 133)","line-height":"40px"}}," 最高频次 ",-1)),de("div",RU,ht(g.value.maxCount||0),1)])])]),de("div",UU,[z(R,{modelValue:i.value,"onUpdate:modelValue":O[0]||(O[0]=G=>i.value=G),size:"large"},{default:q(()=>[z(L,{label:"词组长度分类",value:"len"}),z(L,{label:"词组频次分类",value:"count"})]),_:1},8,["modelValue"]),z(U,{type:"primary",loading:l.value,plain:"",onClick:N},{default:q(()=>[...O[9]||(O[9]=[Ue("导出表格",-1)])]),_:1},8,["loading"])]),de("div",NU,[z(V,{ref_key:"scrollbarRef",ref:t,onScroll:y},{default:q(()=>[de("div",jU,[(Oe(!0),st(Zt,null,Hr(p.value,(G,fe)=>(Oe(),st("p",{onClick:ie=>_(fe,ie),class:ao([{active:n.value==fe},"scrollbar-keywords"]),key:G},[de("span",null,ht(i.value==="len"?"词组长度":"词组频次"),1),de("span",QU,ht(G[i.value]),1)],10,HU))),128))])]),_:1},512),de("div",null,[z(Q,{ref_key:"tableRef",ref:o,data:p.value&&((le=p.value[n.value])==null?void 0:le.data),border:!1,"preserve-expanded-content":!1,style:{width:"100%","box-shadow":"#ebeef5 0px 0px 15px"},"row-key":G=>G.id,onExpandChange:v},{default:q(()=>[z(W,{type:"expand"},{default:q(G=>[de("div",zU,[z(Q,{data:G.row.goods,border:!0,"max-height":"500"},{default:q(()=>[z(W,{type:"index",width:"50"}),z(W,{label:"主图",prop:"name",width:"85"},{default:q(({row:fe})=>[z(I,{shape:"square",size:60,src:fe.image},null,8,["src"])]),_:1}),z(W,{label:"标题",prop:"title"},{default:q(({row:fe})=>[z(F,{href:fe.link,target:"_blank",type:"default"},{default:q(()=>[de("span",{innerHTML:P(fe.title)},null,8,VU)]),_:2},1032,["href"])]),_:1}),z(W,{label:"销量",prop:"sold",width:"100"}),z(W,{label:"销量排名",prop:"soldRank",width:"100"}),z(W,{label:"字符数",prop:"zip",width:"100"},{default:q(({row:fe})=>[Ue(ht(fe.title.length),1)]),_:1})]),_:1},8,["data"])])]),_:1}),z(W,{type:"index",width:"50"}),z(W,{label:"词汇",prop:"word"}),z(W,{label:"词频",prop:"count"}),z(W,{label:"商品数量",prop:""},{default:q(({row:G})=>[Ue(ht(G.goods.length),1)]),_:1}),z(W,{label:"总销量排名",prop:"totalSoldRank"}),z(W,{label:"最大销量排名",prop:"maxSoldRank"}),z(W,{label:"总销量",prop:"totalSold"}),z(W,{label:"最大销量",prop:"maxSold"})]),_:1},8,["data","row-key"])])])])}}},GU=cn(WU,[["__scopeId","data-v-be5572dc"]]),$U={class:"flex items-center justify-center gap-[5px] !p-[5px] text-[16px]"},KU={class:"card"},YU={__name:"analysisButton",setup(a){const s=we("30px"),r=we(200),i=we(0),n=we(!1);function t(_){s.value=_?"180px":"30px"}const c=()=>{const h=r.value.replace(/[^\d]/g,"").replace(/^0+/,"")||"";h&&parseInt(h,10)>500?r.value=500:r.value=h},u=async()=>{if(!await VC())return!1;i.value===1?o():n.value=!0};let f=Vl(null);const o=()=>{const _=document.querySelectorAll("div.EKDT7a3v"),y=document.querySelectorAll("#main")[0];if(document.querySelectorAll("html")[0].scrollTop=y.scrollHeight,_.length<r.value)document.querySelectorAll('[role="region"] [role="button"].R8mNGZXv ')[0].click(),setTimeout(()=>{o()},2e3),f&&f.setText(`正在获取列表商品${_.length} / ${r.value}`);else{if(n.value=!0,!f)return;setTimeout(()=>{f.close()},1e3)}f=B0.service({lock:!0,text:`正在获取列表商品${_.length} / ${r.value}`,background:"rgba(0, 0, 0, 0.7)"})},l=we(50),g=we(100),m=we(!1),p=_=>{m.value=!0;const y=_.clientX,h=_.clientY,d=l.value,A=g.value,v=x=>{m.value&&(l.value=d+(y-x.clientX),g.value=A+(x.clientY-h))},w=()=>{m.value=!1,window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",w)};window.addEventListener("mousemove",v),window.addEventListener("mouseup",w)};return(_,y)=>{const h=Ce("el-avatar"),d=Ce("el-text"),A=Ce("var-tab"),v=Ce("var-tabs"),w=Ce("el-input"),x=Ce("el-dialog"),C=Ai("hover");return Oe(),st(Zt,null,[na((Oe(),st("div",{onMousedown:p,style:av({right:`${l.value}px`,top:`${g.value}px`,height:`${s.value}`}),class:"lingfeng_wordFrequencyAnalysis"},[de("div",$U,[z(h,{shape:"square",size:20,src:St(j0)},null,8,["src"]),y[4]||(y[4]=Ue()),z(d,{class:"mx-1",type:"primary"},{default:q(()=>[...y[3]||(y[3]=[Ue("标题词频分析",-1)])]),_:1})]),de("div",KU,[z(v,{class:"tabs-vertical",elevation:"","layout-direction":"vertical",color:"#fff","active-color":"#f97602","inactive-color":"#606266",active:i.value,"onUpdate:active":y[0]||(y[0]=k=>i.value=k)},{default:q(()=>[z(A,null,{default:q(()=>[...y[5]||(y[5]=[Ue("当前页列表标题",-1)])]),_:1}),z(A,null,{default:q(()=>[...y[6]||(y[6]=[Ue("指定的标题数量",-1)])]),_:1})]),_:1},8,["active"]),z(w,{class:"!mt-[8px] text-center",onBlur:c,modelValue:r.value,"onUpdate:modelValue":y[1]||(y[1]=k=>r.value=k),type:"number",max:500,min:1},null,8,["modelValue"])]),de("div",{class:"btn",onClick:u},"开始分析")],36)),[[Cl,!n.value],[C,t]]),z(x,{style:{"background-color":"#f6f6f6"},modelValue:n.value,"onUpdate:modelValue":y[2]||(y[2]=k=>n.value=k),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",fullscreen:""},{default:q(()=>[z(GU,{pageAll:i.value===0,count:r.value},null,8,["pageAll","count"])]),_:1},8,["modelValue"])],64)}}},XU={style:{color:"#fb8114","line-height":"1.2","font-size":"14px"}},ZU={style:{width:"80px","font-size":"13px",color:"#000"}},JU={class:"dialog-footer"},qU={class:"form-item"},eN={class:"form-item","inline-block":""},tN={key:0,class:"pl-wrapper"},rN={style:{display:"flex","align-items":"center"}},nN="https://www.temu.com/login.html",aN={__name:"app",setup(a){my();const s=we([]),r=async({mall:Ge})=>{var bt,xt;if(ze.value=Ge,((bt=ze==null?void 0:ze.value[0])==null?void 0:bt.isSemiManagedMall)===!0){const kt=await cw((xt=ze.value[0])==null?void 0:xt.mallId.toString());kt.success===!0&&(s.value=i(kt.result.siteBaseList,kt.result.semiManagedSiteGroupList))}let $e=!1,tt=!1;for(const kt of Ge)kt.isSemiManagedMall?$e=!0:tt=!0;return $e&&tt?(ut.error("全托管店铺和半托管店铺不能同时选择"),!1):!0},i=(Ge,$e)=>{let tt=[],bt=new Set;return $e.forEach(xt=>{let kt=Ge.filter(Bt=>xt.siteIds.includes(Bt.siteId));kt.length>0&&(tt.push({matchPreSemiHosting:kt.some(Bt=>Bt.matchPreSemiHosting),matchSemiManaged:!0,siteId:xt.siteIds,siteName:xt.groupName||kt.map(Bt=>Bt.siteName).join("、")}),xt.siteIds.forEach(Bt=>bt.add(Bt)))}),Ge.forEach(xt=>{bt.has(xt.siteId)||tt.push(xt)}),tt},n=Ge=>Zn(Qh,{class:"custom-button",type:"primary",style:`{display:${Ge.isTemuGoodsDetail?"block":"none"}}`,innerHTML:"【凌风跨境工具箱】商品采集",onClick:()=>{Ge.openAddGoodsToMallSetting()}}),t=Ge=>Zn(Qh,{class:"custom-button",type:"primary",style:`{display:${Ge.isTemuGoodsDetail?"block":"none"}}`,innerHTML:"【凌风跨境工具箱】下载图片+视频",onClick:()=>{Ge.downloadImage()}}),c=Ge=>Zn(Qh,{class:"custom-button",type:"primary",style:`{display:${Ge.isTemuGoodsDetail?"block":"none"}}`,innerHTML:"【凌风跨境工具箱】查询供货价",onClick:()=>{Ge.openSkuState()}}),u=Ge=>Zn("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px"}},[n(Ge),t(Ge),c(Ge)]),f=setInterval(()=>{let Ge=document.querySelector("div.kEsvWw-N");if(Ge){const $e=document.createElement("div");$e.id="joinContentBtns",Ge.insertBefore($e,Ge.childNodes[2]),ks($e,{name:"App",props:{isTemuGoodsDetail:w,downloadImage:Ye,openSkuState:l,openAddGoodsToMallSetting:Ve},setup(tt){return()=>u(tt)}},{downloadImage:Ye,isTemuGoodsDetail:w.value,openAddGoodsToMallSetting:Ve,openSkuState:l}),clearInterval(f)}},1e3),o=we(!1),l=()=>{o.value=!0;const Ge=setInterval(()=>{const $e=document.querySelector("div#joinContentSku");$e&&$e.remove();let tt=document.querySelector("div.kEsvWw-N");if(tt){const bt=document.createElement("div");bt.id="joinContentSku",tt.insertBefore(bt,tt.childNodes[7]),ks(bt,mE,{isVisible:o.value}),clearInterval(Ge)}},1e3)},g=we(!1),m=we(!1),p=setInterval(()=>{!m.value&&location.href.includes(nN)&&(m.value=!0,Pn.confirm("检测到当前TEMU页面无法正常访问，是否要清理缓存?","【凌风跨境工具箱】提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(async()=>{g.value=!0;try{await Re()}catch(Ge){console.log(Ge)}finally{g.value=!1,clearInterval(p)}}).catch(Ge=>{Ge==="cancel"&&clearInterval(p)}))},1e3),_=we(parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"50")),y=Pr(()=>_.value+"%"),h=Pr(()=>parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100")>50?"left-bottom":"left-top");let d=parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"100"),A=parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100");setInterval(()=>{var bt;let Ge=(bt=document.getElementById("lingfengPlugin"))==null?void 0:bt.getBoundingClientRect();if(!Ge)return;let $e=Ge.x/window.innerWidth*100,tt=Ge.y/window.innerHeight*100;Math.abs(d-$e)>=2&&(d=$e,localStorage.setItem("lingfengPluginLeftPosition",$e+"")),Math.abs(A-tt)>=50&&(A=tt,localStorage.setItem("lingfengPluginTopPosition",tt+""))},1e3);const v=/https:\/\/www\.temu\.com\/.*[a-z0-9-]+-g-\d+\.html|https:\/\/www\.temu\.com\/goods\.html|https:\/\/www\.temu\.com\/.*\/.*-g-\d+\.html/,w=Pr(()=>!!v.test(document.URL)),x=we(!1),C=async()=>{x.value=!0;try{await Zu(k)}catch(Ge){console.log("permission error:",Ge)}ie.value.mallId=[],ut.success("刷新成功！"),x.value=!1},k=ls(),T=Pr(()=>k.sysUser),S=we(),M=Pr(()=>{var $e;const Ge=($e=S.value)==null?void 0:$e.getSelectedMall().find(tt=>tt.isSemiManagedMall);return Ge&&ge(`${Ge.mallId}`),!!Ge}),P=we(""),N=we([]),B=we([]),O=we(!1),I=we(""),F=we(!1),L=we(!1),R=we(!1),U=we(!1),V=we(!1),W=we(!1),Q=we(!1),le=we(!1),G=we(0),fe=we(!1),ie=we({mallId:[]}),he=Pr(()=>ie.value.title),Y=we(0),K=Pr(()=>ie.value.title?ie.value.title.length/60*10+"px":"10px"),oe=we([]),pe=Pr(()=>G.value>=0&&G.value<100?"format":G.value<0?"exception":G.value==100?"success":"format"),ve=Pr(()=>Y.value>=0&&Y.value<100?"format":Y.value<0?"exception":Y.value==100?"success":"format"),ge=Ge=>{B.value.length||Z8(Ge).then(({status:$e,error:tt,errorMsg:bt,result:xt})=>{if($e!==0){ut.error(`获取站点失败: ${bt||tt}`);return}B.value=xt}).catch($e=>{$e.error&&Pn.confirm("采集的时候出了点问题，可能是由于网络波动造成的，请再重试一次","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0})})},ue=we(""),Te=we([]),Ee=async Ge=>{var kt,Bt,Dt;if(ue.value=Ge,vr&&vr.siteIdArr===Ge?console.log("缓存",Ge):oe.value=[],!Ge)return;const $e=s.value.filter(or=>or.siteName===Ge)[0].siteId,tt=Array.isArray($e)?$e.map(or=>Number(or)):[Number($e)],bt=((kt=hr.value)==null?void 0:kt.toString())||((Bt=ke.value)==null?void 0:Bt.toString()),xt=await GC({siteIdList:tt},bt);Te.value=(Dt=xt.result)==null?void 0:Dt.warehouseDTOList};function ye(Ge,$e){const tt=Math.random(),bt=$e-Ge;return Math.round(bt*tt)+Ge}const Se=async Ge=>{if(ie.value.mallId.length===0){ut.error("请先选择店铺！");return}W.value=Ge,L.value=!0;let $e=null;try{let tt={};if(tt.temuGoodsHtmlText=document.documentElement.innerHTML,tt.temuGoodsHtmlText.indexOf('"sizeGuide"')!=-1){let Bt=tt.temuGoodsHtmlText.match(/"sizeGuide":\s*({[^}]+})/);if(Bt){let Dt=JSON.parse(Bt[1]);if(Dt.jumpUrl){let or="https://www.temu.com"+Dt.jumpUrl;const gr=await zT(or);let kr="";new DOMParser().parseFromString(gr,"text/html").querySelectorAll("script").forEach(async yt=>{const Rt=yt.textContent.trim();if(Rt.startsWith("window.__CHUNK_DATA__={};window.rawData={")){const Mt=/window\.rawData=(.*);document/;let It=Rt.match(Mt)[0];kr=It.substring(15,It.length-9)}}),kr&&(tt.temuGoodsHtmlText=tt.temuGoodsHtmlText.replace(/"sizeGuide":\s*{[^}]+}/,'"sizeGuide2":'+kr))}}}if(tt.needTranslate=ie.value.needTranslate,tt.mallId2=ie.value.mallId.map(Bt=>parseInt(Bt)),M.value){if(!P.value){ut.error("请选择经营站点");return}if(!Te.value.some((kr,it)=>Array.isArray(oe.value[it])&&oe.value[it].length>0)){ut.error("请至少选择一个站点的卖家自发货仓");return}const Dt=new Map;Te.value.forEach((kr,it)=>{const We=oe.value[it]||[],gt=Array.isArray(kr.siteId)?kr.siteId:[kr.siteId];We.forEach(yt=>{Dt.has(yt)||Dt.set(yt,new Set),gt.forEach(Rt=>{Dt.get(yt).add(Number(Rt))})})});const or=Array.from(Dt.entries()).map(([kr,it])=>({warehouseId:kr,siteIdList:Array.from(it)})),gr=or.reduce((kr,it)=>kr.concat(it.siteIdList.map(We=>Number(We))),[]);tt.bindSiteIds=[...new Set(gr)],tt.targetRouteList=or}if(O.value){if(N.value.length==0){ut.error("请选择要采集的类目");return}tt.catId=N.value[N.value.length-1]}if(U.value===0?(tt.needSetSupplierPrice=!1,tt.needFill1688Price=!1):U.value===1?tt.needSetSupplierPrice=!0:tt.needFill1688Price=!0,tt.addMaterialCenter=V.value,tt.isSaveTemplate=W.value,tt.spuExtCode=I.value,W.value&&(tt.supplyLink=window.location.href),!await Zu(k))return;Y.value=0;const xt=ye(1,1e8)+"";$e=setInterval(async()=>{const{progress:Bt}=await $C(xt);Y.value=Bt},1e3),tt.uuid=xt;let kt=await J8(tt);if(kt.status!=0)throw kt;yr(),Y.value=100,ut.success("采集成功，可前往商家后台草稿箱编辑您采集的商品"),Pn.confirm(W.value?"采集成功！是否立即前往商品模板中心":"采集成功！是否立即前往商家后台|商品管理|商品列表|草稿箱处编辑或查看","提示",{confirmButtonText:"立即前往",cancelButtonText:"取消",type:"success"}).then(()=>{Ke(W.value?"https://www.kuajingabc.com/#/goods/copy":"https://seller.kuajingmaihuo.com/goods/product/draft")}).catch(()=>{})}catch(tt){let{errorMsg:bt}=tt;clearInterval($e),setTimeout(()=>{Y.value=-1},1e3),bt?(bt.includes("temu未返回temu backend goods category template的有效字段")&&(bt="TEMU 未返回有效的商品类目，请手动选择类目"),Pn.confirm(bt,"提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0})):(console.error(tt),Pn.confirm("采集的时候出了点问题，可能是由于网络波动造成的，刷新 TEMU 缓存可能有助于解决这个问题, 是否需要刷新缓存?","提示",{type:"warning",confirmButtonText:"立即刷新",cancelButtonText:"取消",center:!0}).then(()=>{Re()})),L.value=!1}finally{clearInterval($e),L.value=!1}},Fe=async()=>{localStorage.getItem("i18nextLng").includes("en")||Pn.confirm("检测到当前商品页并非英文页面，采集商品信息可能不会包含商品的属性信息，点击确认可以为您自动切换为英文界面！","提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{L.value=!0;let $e=document.querySelectorAll('div[tabindex="0"][role="button"]._3GBVQxAr')[2],tt=new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0}),bt=new MouseEvent("mousemove",{view:window,bubbles:!0,cancelable:!0}),xt=new MouseEvent("mousedown",{view:window,bubbles:!0,cancelable:!0}),kt=new MouseEvent("mouseup",{view:window,bubbles:!0,cancelable:!0}),Bt=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});function Dt(or,gr){return Math.floor(Math.random()*(gr-or+1))+or}$e.dispatchEvent(tt),setTimeout(()=>{$e.dispatchEvent(bt),setTimeout(()=>{let or=setInterval(()=>{let gr=document.querySelectorAll('[aria-label="en"]')[0];gr&&(setTimeout(()=>{gr.dispatchEvent(xt),setTimeout(()=>{gr.dispatchEvent(kt),gr.dispatchEvent(Bt)},Dt(50,150))},500),clearInterval(or))},100)},Dt(200,500))},Dt(1e3,2e3))})},Ve=async()=>{if(F.value=!0,L.value=!0,Y.value=0,!await Zu(k)){F.value=!1,L.value=!1;return}Fe();try{Wm({add_goods_to_mall_click_cnt:1})}catch($e){console.log($e)}try{try{const $e=await WC();if($e.status===1)throw $e;$e.result.bindSiteIds&&($e.result.siteIdList=$e.result.bindSiteIds.map(tt=>tt.toString())),$e.result.mallId=Array.isArray($e.result.mallId2)?$e.result.mallId2.map(tt=>tt.toString()):[],U.value=$e.result.needSetSupplierPrice?1:0,$e.result.addMaterialCenter?V.value=$e.result.addMaterialCenter:V.value=!1,ie.value=$e.result}catch($e){console.log($e)}ie.value.title=document.querySelector("._2rn4tqXP").textContent,Br()}catch($e){console.log($e),F.value=!1,$e.errorMsg?Pn.confirm($e.errorMsg,"提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}):Pn.confirm("发生了一些未知的错误","提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{const tt="call-lingfengtemu://";window.location.href=tt})}finally{L.value=!1}},ke=we();Ra(()=>M.value,async Ge=>{var $e,tt,bt,xt;if(Ge){const kt=($e=S.value)==null?void 0:$e.getSelectedMall();if(((tt=kt[0])==null?void 0:tt.isSemiManagedMall)===!0){ke.value=(bt=kt[0])==null?void 0:bt.mallId;const Bt=await cw((xt=kt[0])==null?void 0:xt.mallId.toString());Bt.success===!0&&(s.value=i(Bt.result.siteBaseList,Bt.result.semiManagedSiteGroupList))}}},{depe:!0,immediate:!0});async function Pe(Ge){const $e=new YC;let tt=0;const bt=Ge.map(async(xt,kt)=>{try{const Bt=await py.get(xt,{responseType:"arraybuffer"}),or=document.querySelector("nav ol li:last-child span:first-of-type").textContent.trim(),kr=`${xt.split(".").pop()=="mp4",or}_${kt+1}.${xt.split(".").pop()}`;$e.file(kr,Bt.data),tt++,G.value=Math.floor(tt/Ge.length*100)}catch(Bt){console.error(`Failed to download image ${xt}: ${Bt}`)}});await Promise.all(bt),$e.generateAsync({type:"blob"}).then(xt=>{const kt=document.createElement("a");kt.href=URL.createObjectURL(xt),kt.download="images.zip",kt.click()})}const Re=async()=>{try{return await Zu(k)?(await r_(),ut({message:"清理缓存成功",type:"success",confirmButtonText:"确定",cancelButtonText:"取消",duration:1500}),!0):!1}catch{return!1}},Ye=async()=>{le.value=!0,R.value=!0,G.value=0,ie.value.title=document.querySelector("._2rn4tqXP").textContent;try{Wm({download_temu_goods_image_click_cnt:1})}catch(bt){console.log(bt)}new DOMParser().parseFromString(document.documentElement.innerHTML,"text/html").querySelectorAll("script").forEach(async bt=>{const xt=bt.textContent.trim();if(xt.startsWith("window.__CHUNK_DATA__={};window.rawData={")){const kt=/https?:\/\/[^\s",]+\.kwcdn\.com[^\s",]+\.(?:jpg|jpeg|mp4)/gi,Dt=xt.replace(/\\u002F/g,"/").match(kt),or=[...new Set(Dt)];if(or){L.value=!1;try{await Pe(or),ut.success("下载图片成功")}catch{ut.error("下载图片失败，请检查网络后刷新重试")}finally{le.value=!1,R.value=!1}}else console.log("No image links found.")}})},Ke=async Ge=>{window.open(Ge)};let ot=we(!1),nt=null;const mt=()=>{if(ot.value)return;ot.value=!0;const Ge=document.querySelectorAll(".mainContent"),$e=document.querySelector(".baseContent"),tt=document.querySelector(".js-goods-list");Ge.forEach(xt=>{Array.from(xt.querySelectorAll("div")).some(Bt=>Bt.innerText.includes("此商品已售罄")||Bt.innerText.includes("This item is sold out"))&&Ut()}),$e&&Array.from($e.querySelectorAll("div")).some(xt=>xt.innerText.includes("当前没有商品")||xt.innerText.includes("The provider is taking a short break")||xt.innerText.includes("哎呀！商品不见了。")||xt.innerText.includes("重试查找商品")||xt.innerText.includes("Oops! The items are gone")||xt.innerText.includes("Try again to find items"))&&(!tt||!tt.querySelector('[role="link"][aria-label="查看更多"], [role="link"][aria-label="See more"]'))&&Ut()},Ut=()=>{Pn.confirm("检测到temu前端已将当前temu前端账号封禁，无法正常浏览商品，是否要清空账号缓存？","【凌风跨境工具箱】提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{Re()}).catch(Ge=>{console.log("=>(app.vue:1366) error",Ge)}).finally(()=>{ot.value=!1,clearInterval(nt)})},Ot=we(!1),wt=we(!1);let Kt=!1;const _t=Ge=>Ge.classList.length>0?Array.from(Ge.classList):Ge.parentElement?_t(Ge.parentElement):[],Jt=()=>{document.body.addEventListener("click",Ge=>{_t(Ge.target).some(tt=>tt.startsWith("lf-")||tt.startsWith("var-"))&&Ge.stopPropagation()})};B8(()=>{chrome.storage.local.get(["CBFilterBall"],Ge=>{Ge.CBFilterBall!==void 0?(jr.value=Object.values(Ge.CBFilterBall),jr.value.length!=2?Gt():($t(),br())):console.log("未找到过滤状态，使用默认值")})}),oa(()=>{Jt(),nt=setInterval(()=>{mt()},5e3),setTimeout(()=>{Qt()},300)});const yr=()=>{const Ge={settingAddGoodsData:ie.value,siteSelectVisible:M.value,siteIdArr:P.value,warehouseDTOList:oe.value,spuExtCode:I.value,needSwitchCategory:O.value,catIdList:N.value,needSetPrice:U.value,needAddMaterialCenter:V.value,mallId:ie.value.mallId};localStorage.setItem("temuCategory",JSON.stringify(Ge))};let vr={};const Br=async()=>{if(vr=localStorage.getItem("temuCategory"),vr){vr=JSON.parse(vr),ie.value.mallId=vr.mallId.toString(),ie.value=vr.settingAddGoodsData,P.value=vr.siteIdArr,oe.value=vr.warehouseDTOList,I.value=vr.spuExtCode,O.value=vr.needSwitchCategory,N.value=vr.catIdList,U.value=vr.needSetPrice,V.value=vr.needAddMaterialCenter;const $e=S.value.getMallList().filter(tt=>ie.value.mallId.includes(tt.mallId.toString()));if(!$e.length)return;await r({mall:$e}),await Ee(P.value)}},zr=()=>{const Ge=document.querySelectorAll("div.EKDT7a3v"),$e=document.querySelectorAll(".goods-container[aria-label]");return Ge.length>0?Ge:$e},mn=()=>{const Ge=zr();return Array.from(Ge).filter($e=>{const tt=$e.querySelector("span.C9HMW0KN");return jr.value.length==0?$e:jr.value.includes("notLocal")?tt&&(tt.textContent.includes("本地仓")||tt.textContent.includes("Local")):tt==null})},jr=we(["notLocal","local"]);chrome.runtime.onMessage.addListener(Ge=>{if(Ge.greeting==="sendFilterBall")return Ge.FilterBall.length!=2?(console.log("chrome.runtime.onMessage.addListener：开启过滤",Ge.FilterBall),Gt()):(console.log("chrome.runtime.onMessage.addListener：停止过滤",Ge.FilterBall),$t(),br()),jr.value=Ge.FilterBall,!0});let Tn=!1,Lt=null;const Gt=()=>{if(Lt){console.log("定时器已启动，无需重复启动");return}Lt=setInterval(()=>{mn()&&jr.value.length!=2&&!Tn?(console.log("testFiltering ：开启商品过滤"),Tn=!0,Sr().then(()=>{Tn=!1})):console.log(jr.value,"======switchValue")},1e3)},$t=()=>{Lt&&(console.log("停止定时器"),clearInterval(Lt),Lt=null)},Sr=()=>new Promise(Ge=>{const $e=zr();Array.from($e).filter(bt=>{const xt=bt.querySelector("span.C9HMW0KN");if(jr.value.length==0)return bt;if(jr.value.includes("notLocal")){if(xt&&(xt.textContent.includes("本地仓")||xt.textContent.includes("Local")))return xt&&(xt.textContent.includes("本地仓")||xt.textContent.includes("Local"));bt.style.display="block"}else{if(xt==null)return xt==null;bt.style.display="block"}}).forEach(bt=>{bt.style.display="none"}),setTimeout(()=>{Ge()},500)}),br=()=>new Promise(Ge=>{setTimeout(()=>{const $e=zr();Array.from($e).forEach(tt=>{tt.style.display="block"}),Ge()},300)}),sr=()=>{Ot.value=!1,wt.value=!1},Fn=we(null),fn=()=>{Ot.value=!0,setTimeout(()=>{wt.value=!0},500),Fn.value&&clearTimeout(Fn.value),Fn.value=setTimeout(()=>{sr()},1500)},Or=Ge=>{const $e=Ge.target.closest(".noticeSwitch"),tt=Ge.clientY,bt=$e.offsetTop/window.innerHeight*100;$e.style.transition="none";const xt=Bt=>{Kt=!0;const Dt=Bt.clientY-tt;let or=bt+Dt/window.innerHeight*100;or<2&&(or=2),or>95&&(or=95),$e.style.top=or+"%"},kt=()=>{document.removeEventListener("mousemove",xt),document.removeEventListener("mouseup",kt),$e.style.transition="",setTimeout(()=>{Kt=!1},0),Tt($e.style.top)};document.addEventListener("mousemove",xt),document.addEventListener("mouseup",kt)},ar={"--lf-checkbox-checked-text-color":"#fb7701","--lf-checkbox-checked-input-border-color":"#fb7701","--lf-checkbox-checked-bg-color":"#fb7701","--lf-checkbox-input-border-color-hover":"#fb7701","margin-right":"6px"},Wr=Ge=>{jr.value=Ge,console.log(Ge),jr.value.length!=2?Gt():($t(),br())},Tt=Ge=>{aS(Ge)},Qt=()=>{const Ge=document.querySelector(".noticeSwitch");Ge.style.top=nS()||""};Ra(jr,Ge=>{console.log("switchValue变化：",Ge),chrome.storage.local.set({CBFilterBall:Ge},()=>{console.log("数据已存储")})},{deep:!0,immediate:!1});const hr=we(""),ze=we([]),Ze=Ge=>{Ge.length},qe=Ge=>{Ge===!0&&ie.value.mallId.length===0?(ut.error("请先选择店铺！"),il(()=>{O.value=!1})):O.value=Ge};return(Ge,$e)=>{const tt=Ce("var-button"),bt=Ce("var-tooltip"),xt=Ce("var-fab"),kt=Ce("var-icon"),Bt=Ce("el-alert"),Dt=Ce("el-form-item"),or=Ce("el-option"),gr=Ce("el-select"),kr=Ce("el-input"),it=Ce("el-tooltip"),We=Ce("el-radio"),gt=Ce("el-radio-group"),yt=Ce("el-form"),Rt=Ce("el-scrollbar"),Mt=Ce("el-progress"),It=Ce("el-dialog"),xr=Ce("el-checkbox"),rn=Ce("el-checkbox-group"),Zr=Ce("el-popover"),Rr=Ai("loading");return Oe(),st(Zt,null,[z(xt,{id:"lingfengPlugin",direction:"right",drag:"true",attraction:"y",elevation:"18",position:h.value,left:y.value,"z-index":"9999",color:"#f97602","inactive-icon":St(j0),"inactive-icon-size":"30","active-icon-size":"35","safe-area":"true",trigger:"hover"},{default:q(()=>[w.value?(Oe(),Et(bt,{key:0,content:"【凌风跨境工具箱】采集商品",placement:"top"},{default:q(()=>[z(tt,{type:"info","icon-container":"",onClick:Ve,disabled:F.value},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(ZC)},null,8,["path"])]),_:1},8,["disabled"])]),_:1})):tr("",!0),w.value?(Oe(),Et(bt,{key:1,content:"【凌风跨境工具箱】下载图片+视频",placement:"top"},{default:q(()=>[z(tt,{type:"success","icon-container":"",onClick:Ye,disabled:R.value},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(JC)},null,8,["path"])]),_:1},8,["disabled"])]),_:1})):tr("",!0),z(bt,{content:"【凌风跨境工具箱】清除temu缓存，使你能够正常访问temu网页",placement:"top"},{default:q(()=>[z(tt,{type:"success","icon-container":"",onClick:Re,"auto-loading":""},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(XC)},null,8,["path"])]),_:1})]),_:1})]),_:1},8,["position","left","inactive-icon"]),z(It,{class:"warp-float",modelValue:F.value,"onUpdate:modelValue":$e[11]||($e[11]=$r=>F.value=$r),width:"500px",disabled:L.value,"show-close":!L.value,visible:fe.value,"before-close":fe.value=L.value,"align-center":"",style:{"border-radius":"8px"}},{header:q(()=>[$e[15]||($e[15]=de("p",null,"凌风跨境工具箱采集设置",-1)),z(St(Qh),{type:"primary",link:"",class:"refresh",disabled:x.value,onClick:$e[0]||($e[0]=$r=>C())},{default:q(()=>[z(kt,{class:ao({loading:x.value}),name:"refresh"},null,8,["class"]),$e[14]||($e[14]=Ue("刷新",-1))]),_:1},8,["disabled"])]),default:q(()=>[z(Bt,{title:"采集过程中请勿关闭或刷新该页面，可能会导致采集失败",type:"warning","show-icon":!0,closable:!1}),z(Rt,{height:"400px"},{default:q(()=>[na((Oe(),Et(yt,{model:ie.value,"label-position":"top",class:"dialog-body","label-width":"auto"},{default:q(()=>[z(Dt,{label:"商品名：",class:"wrap-label"},{default:q(()=>[de("div",XU,ht(he.value),1)]),_:1}),z(Dt,{label:"采集店铺：",class:"wrap-label"},{default:q(()=>[z(tS,{ref_key:"temuMallSelectorRef",ref:S,modelValue:ie.value.mallId,"onUpdate:modelValue":$e[1]||($e[1]=$r=>ie.value.mallId=$r),"before-update":r,multiple:!0,style:{width:"340px"},size:"default",onChange:Ze},null,8,["modelValue"])]),_:1}),M.value?(Oe(),Et(Dt,{key:0,label:"经营站点："},{default:q(()=>[z(gr,{modelValue:P.value,"onUpdate:modelValue":$e[2]||($e[2]=$r=>P.value=$r),placeholder:"请选择站点",onChange:Ee,style:{width:"340px"},size:"default"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(s.value,($r,lr)=>(Oe(),Et(or,{key:lr,label:$r.siteName,value:$r.siteName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):tr("",!0),M.value&&P.value?(Oe(),Et(Dt,{key:1,label:"卖家自发货仓："},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(Te.value,($r,lr)=>(Oe(),st("div",{key:lr,style:{"margin-bottom":"5px",display:"flex","align-items":"center"}},[de("div",ZU,ht($r.siteName),1),z(gr,{modelValue:oe.value[lr],"onUpdate:modelValue":Mn=>oe.value[lr]=Mn,placeholder:"请选择",style:{width:"260px"},size:"small",multiple:"","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":1},{default:q(()=>[(Oe(!0),st(Zt,null,Hr($r.validWarehouseList,(Mn,ia)=>(Oe(),Et(or,{key:ia,label:Mn.warehouseName,value:Mn.warehouseId},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))]),_:1})):tr("",!0),z(Dt,{label:"主货号："},{default:q(()=>[z(kr,{style:{width:"340px"},size:"default",modelValue:I.value,"onUpdate:modelValue":$e[3]||($e[3]=$r=>I.value=$r),placeholder:"请输入主货号"},null,8,["modelValue"])]),_:1}),z(Dt,null,{label:q(()=>[z(it,{class:"item",effect:"dark",content:"可以选择是否采集到同类目或者其他类目下",placement:"top"},{default:q(()=>[...$e[16]||($e[16]=[de("label",null,"是否更换类目:",-1)])]),_:1})]),default:q(()=>[z(gt,{onChange:qe,modelValue:O.value,"onUpdate:modelValue":$e[4]||($e[4]=$r=>O.value=$r)},{default:q(()=>[z(We,{value:!0},{default:q(()=>[...$e[17]||($e[17]=[Ue("是",-1)])]),_:1}),z(We,{value:!1},{default:q(()=>[...$e[18]||($e[18]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),O.value?(Oe(),Et(Dt,{key:2,label:"类目："},{default:q(()=>[z(i_,{modelValue:N.value,"onUpdate:modelValue":$e[5]||($e[5]=$r=>N.value=$r),style:{width:"300px"}},null,8,["modelValue"])]),_:1})):tr("",!0),z(Dt,null,{label:q(()=>[z(it,{class:"item",effect:"dark",content:"可以选择填写草稿箱中商品模板的核价",placement:"top"},{default:q(()=>[...$e[19]||($e[19]=[de("label",null,"填入核价方式(即前端售价换算为人民币RMB):",-1)])]),_:1})]),default:q(()=>[z(gt,{modelValue:U.value,"onUpdate:modelValue":$e[6]||($e[6]=$r=>U.value=$r)},{default:q(()=>[z(We,{label:0},{default:q(()=>[...$e[20]||($e[20]=[Ue("不填入",-1)])]),_:1}),z(We,{label:1},{default:q(()=>[...$e[21]||($e[21]=[Ue("temu前端价格",-1)])]),_:1}),z(We,{label:2},{default:q(()=>[...$e[22]||($e[22]=[Ue("1688供货价",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(Dt,null,{label:q(()=>[z(it,{class:"item",effect:"dark",content:"使用翻译功能会消耗翻译额度，翻译额度可以在个人中心查看",placement:"top"},{default:q(()=>{var $r,lr,Mn,ia;return[de("label",null,"是否自动翻译("+ht((($r=T.value)==null?void 0:$r.translate_word_num)+((lr=T.value)==null?void 0:lr.translate_word_count_personal))+"/"+ht(((Mn=T.value)==null?void 0:Mn.translate_word_limit_num)+((ia=T.value)==null?void 0:ia.translate_word_limit_num_personal))+"):",1)]}),_:1})]),default:q(()=>[z(gt,{modelValue:ie.value.needTranslate,"onUpdate:modelValue":$e[7]||($e[7]=$r=>ie.value.needTranslate=$r)},{default:q(()=>[z(We,{label:!0},{default:q(()=>[...$e[23]||($e[23]=[Ue("是",-1)])]),_:1}),z(We,{label:!1},{default:q(()=>[...$e[24]||($e[24]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(Dt,null,{label:q(()=>[z(it,{class:"item",effect:"dark",content:"可以选择是否把图片上传到素材中心",placement:"top"},{default:q(()=>[...$e[25]||($e[25]=[de("label",null,"是否上传图片到素材中心:",-1)])]),_:1})]),default:q(()=>[z(gt,{modelValue:V.value,"onUpdate:modelValue":$e[8]||($e[8]=$r=>V.value=$r)},{default:q(()=>[z(We,{label:!0},{default:q(()=>[...$e[26]||($e[26]=[Ue("是",-1)])]),_:1}),z(We,{label:!1},{default:q(()=>[...$e[27]||($e[27]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])),[[Rr,L.value]])]),_:1}),de("div",JU,[z(it,{class:"item",effect:"dark",content:"使用采集功能会消耗采集余额，采集余额可以在个人中心查看",placement:"top"},{default:q(()=>[z(St(Qh),{size:"default",onClick:$e[9]||($e[9]=$r=>Se(!0)),loading:L.value,style:{color:"white"},class:"temu-orange-button"},{default:q(()=>[...$e[28]||($e[28]=[Ue("保存为商品模板",-1)])]),_:1},8,["loading"])]),_:1}),z(it,{class:"item",effect:"dark",content:"使用采集功能会消耗采集余额，采集余额可以在个人中心查看",placement:"top"},{default:q(()=>[z(St(Qh),{size:"default",onClick:$e[10]||($e[10]=$r=>Se(!1)),type:"primary",loading:L.value},{default:q(()=>[...$e[29]||($e[29]=[Ue("开始采集",-1)])]),_:1},8,["loading"])]),_:1})]),z(Mt,{percentage:Y.value,status:ve.value,"stroke-width":12,"text-inside":!0},null,8,["percentage","status"])]),_:1},8,["modelValue","disabled","show-close","visible","before-close"]),z(It,{class:"warp-float",modelValue:le.value,"onUpdate:modelValue":$e[12]||($e[12]=$r=>le.value=$r),title:"正在下载图片，请勿关闭或刷新页面...",width:"500px",disabled:R.value,"show-close":!R.value,visible:Q.value,"before-close":Q.value=R.value},{default:q(()=>[na((Oe(),Et(yt,{model:ie.value,"label-position":"top",class:"dialog-body"},{default:q(()=>[de("div",qU,[$e[30]||($e[30]=de("label",null,"商品名:",-1)),z(Dt,{label:he.value,class:"wrap-label","label-width":"100%",height:K.value},null,8,["label","height"])])]),_:1},8,["model"])),[[Rr,R.value]]),de("div",eN,[$e[31]||($e[31]=de("label",null,"下载进度:",-1)),z(Mt,{percentage:G.value,status:pe.value,"stroke-width":12,"text-inside":!0},null,8,["percentage","status"])])]),_:1},8,["modelValue","disabled","show-close","visible","before-close"]),z(pE),g.value?(Oe(),st("div",tN,[...$e[32]||($e[32]=[qw('<div class="pl" data-v-f7e5fb6a><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__dot" data-v-f7e5fb6a></div><div class="pl__text" data-v-f7e5fb6a>清理缓存中…</div></div>',1)])])):tr("",!0),de("div",{class:ao(["noticeSwitch",{active:Ot.value}]),onMouseover:fn,onMousedown:Or},[z(Zr,{width:"250",visible:!St(Kt)&&wt.value,placement:"left",title:"","show-arrow":!1,content:"【凌风跨境工具箱】"},{reference:q(()=>[de("div",rN,[$e[33]||($e[33]=Ue(" 展示商品： ",-1)),z(rn,{modelValue:jr.value,"onUpdate:modelValue":$e[13]||($e[13]=$r=>jr.value=$r),onChange:Wr},{default:q(()=>[z(xr,{label:"全托管",value:"notLocal",style:ar}),z(xr,{label:"半托管",value:"local",style:ar})]),_:1},8,["modelValue"])])]),_:1},8,["visible"])],34),z(YU)],64)}}},iN=cn(aN,[["__scopeId","data-v-f7e5fb6a"]]),sN={__name:"app",setup(a){const s=ls();my();const r=we(parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"50")),i=Pr(()=>r.value+"%"),n=Pr(()=>parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100")>50?"left-bottom":"left-top");let t=parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"100"),c=parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100");setInterval(()=>{var g;let f=(g=document.getElementById("lingfengPlugin"))==null?void 0:g.getBoundingClientRect();if(!f)return;let o=f.x/window.innerWidth*100,l=f.y/window.innerHeight*100;Math.abs(t-o)>=2&&(t=o,localStorage.setItem("lingfengPluginLeftPosition",o+"")),Math.abs(c-l)>=50&&(c=l,localStorage.setItem("lingfengPluginTopPosition",l+""))},1e3);const u=async()=>{try{if(!await Zu(s))return;await r_(),ut({message:"清理缓存成功",type:"success",confirmButtonText:"确定",cancelButtonText:"取消",duration:1500})}catch{}};return(f,o)=>{const l=Ce("var-button"),g=Ce("var-tooltip"),m=Ce("var-fab");return Oe(),Et(m,{id:"lingfengPlugin",direction:"right",drag:"true",attraction:"y",elevation:"18",position:n.value,left:i.value,"z-index":"9999",color:"#f97602","inactive-icon":St(j0),"inactive-icon-size":"30","active-icon-size":"35","safe-area":"true",trigger:"hover"},{default:q(()=>[z(g,{content:"【凌风跨境工具箱】清除temu缓存，使你能够正常访问temu网页",placement:"top"},{default:q(()=>[z(l,{type:"success","icon-container":"",onClick:u,"auto-loading":""},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(XC)},null,8,["path"])]),_:1})]),_:1})]),_:1},8,["position","left","inactive-icon"])}}},oN=cn(sN,[["__scopeId","data-v-9d1e9feb"]]),Kn=OC("mall",{state:()=>({_mall:null,_checkedPermission:!1}),getters:{id(a){return a._mall?`${a._mall.mallId}`:""},mall(a){return a._mall?{...a._mall,isSemiManagedMall:a._mall.isSemiManagedMall?a._mall.isSemiManagedMall:a._mall.managedType===1}:null}},actions:{async initMall(){try{const a=await q8();if(!a)return!1;this._mall=a}catch(a){return console.error("商城信息初始化失败",a),!1}return!0},async init(){try{if(!await this.initMall())return!1;const a=this._mall,s=await ls(),r=Pr(()=>s.sysUser);if(!await n_(a.mallId+"",s,r))return!1;this._checkedPermission=!0}catch(a){return console.error("商城信息初始化失败",a),!1}return!0}}}),lN=""+new URL("qun-DwBPc6sF.png",import.meta.url).href,uN={},cN={viewBox:"0 0 2048 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function fN(a,s){return Oe(),st("svg",cN,[...s[0]||(s[0]=[de("path",{d:"M128 0h1792c76.8 0 128 51.2 128 128v768c0 76.8-51.2 128-128 128H128C51.2 1024 0 972.8 0 896V128C0 64 51.2 0 128 0z",fill:"currentColor"},null,-1),de("path",{d:"M473.6 832c-25.6 0-51.2-25.6-64-76.8L192 179.2h166.4L512 576l243.2-396.8h179.2l-371.2 576c-38.4 64-64 76.8-89.6 76.8z m409.6-12.8L972.8 192h153.6l-89.6 627.2zM1856 422.4c-12.8 64-38.4 128-102.4 179.2-51.2 38.4-115.2 64-179.2 64h-268.8L1280 819.2h-153.6l51.2-320h435.2c25.6 0 38.4-12.8 51.2-25.6 12.8-12.8 25.6-38.4 25.6-51.2 0-25.6 0-38.4-12.8-51.2-12.8-12.8-38.4-25.6-51.2-25.6h-435.2l128-166.4h320c64 0 128 25.6 166.4 64 51.2 64 64 128 51.2 179.2z",fill:"#802c00"},null,-1)])])}const dN=cn(uN,[["render",fN]]),hN={style:{position:"relative"}},AN={key:0,style:{position:"absolute",right:"-12px",top:"-12px"}},pN={key:0,class:"fixed right-4 bottom-4 w-[520px] z-999"},mN={class:"flex justify-between items-center"},gN={style:{"font-size":"14px"}},vN=["href"],yN={class:"flex flex-col gap-4 items-center"},$0=xi({__name:"FreeVIPButton",props:{style:{type:Object,default:()=>({})}},setup(a){const s=ls(),r=we(!1),i=we(!1),n=we(!1),t=we(!1);oa(()=>{s.getInfo()});const c="https://www.kuajingabc.com",u=async()=>s.isVIP?!0:(tT(5).then(({is_available:o})=>{t.value=!!o}).catch(o=>{console.error(o)}),i.value=!0,!1),f=()=>{n.value||(n.value=!0,eT(5).then(()=>{ut.success("领取成功"),r.value=!1,i.value=!1,s.getInfo()}).catch(o=>{console.error(o)}).finally(()=>{n.value=!1}))};return(o,l)=>{const g=Ce("el-icon"),m=Ce("el-button"),p=Ce("el-card"),_=Ce("el-image"),y=Ce("el-dialog");return Oe(),st(Zt,null,[de("div",hN,[R1(o.$slots,"default",{checkAuth:u}),St(s).isVIP?tr("",!0):(Oe(),st("div",AN,[z(g,{color:"#ffed26",size:"28"},{default:q(()=>[z(dN)]),_:1})]))]),i.value?(Oe(),st("div",pN,[z(p,null,{header:q(()=>[de("div",mN,[l[4]||(l[4]=de("div",{class:"font-bold text-xl"},"【凌风跨境工具箱】提示",-1)),z(m,{text:"",onClick:l[0]||(l[0]=h=>i.value=!1)},{default:q(()=>[z(g,null,{default:q(()=>[z(St(RC))]),_:1})]),_:1})])]),default:q(()=>[de("p",gN,[l[7]||(l[7]=Ue(" 您好, 此功能属于会员功能, 请前往官网开通会员后再来(",-1)),de("a",{href:`${St(c)}/#/user/service`,target:"_blank"},"点击前往",8,vN),l[8]||(l[8]=Ue(" ) ",-1)),t.value?(Oe(),st(Zt,{key:0},[l[5]||(l[5]=Ue(" 或领取3天白银会员体验(",-1)),de("a",{onClick:l[1]||(l[1]=h=>r.value=!0),href:"javascript:void 0"},"点击领取"),l[6]||(l[6]=Ue(") ",-1))],64)):tr("",!0)])]),_:1})])):tr("",!0),z(y,{modelValue:r.value,"onUpdate:modelValue":l[3]||(l[3]=h=>r.value=h),title:"领取3天白银会员","align-center":"",width:"520","append-to-body":""},{default:q(()=>[de("div",yN,[l[10]||(l[10]=de("div",{class:"text-red-600 w-full"},[Ue(' 请扫码加入下方微信群,完成扫码后点击"'),de("strong",null,"我已扫码"),Ue('"按钮, 即可免费领取3天白银会员权限 ')],-1)),z(_,{src:St(lN),style:{width:"80%","object-fit":"contain"}},null,8,["src"]),z(m,{type:"primary",onClick:l[2]||(l[2]=h=>f()),size:"default",loading:n.value},{default:q(()=>[...l[9]||(l[9]=[Ue("我已扫码",-1)])]),_:1},8,["loading"])])]),_:1},8,["modelValue"])],64)}}}),bN={class:"dialog-footer"},wN={__name:"switchCategory",setup(a){const s=Kn(),r=ls(),i=we(),n=we(),t=we(!1),c=we(""),u=we(!1),f=we(1),o=we(!1),l=we({min:0,max:0}),g=we(!1),m=we(""),p=we(!1),_=we(1);Ra(t,O=>{O?console.log("需要更换轮播图，文件夹地址:",c.value):console.log("不需要更换轮播图")}),Ra(u,O=>{O?console.log("需要更换SKU预览图，索引:",f.value):console.log("不需要更换SKU预览图")}),Ra(o,O=>{O?console.log("需要修改核价，价格范围:",l.value):console.log("不需要修改核价")}),Ra(g,O=>{O?console.log("需要修改标题，新标题:",m.value):console.log("不需要修改标题")}),Ra(p,O=>{O?console.log("需要修改详情图文，数量:",_.value):console.log("不需要修改详情图文")});function y(){return o.value&&(l.value.min>l.value.max||l.value.min===0||l.value.max===0)?(ut.error("价格范围不正确，最低价格必须小于等于最高价格，且都不为0"),!1):!0}const h=we(null);function d(){const O=window.location.search.substring(1),I={};return O.split("&").forEach(F=>{const[L,R]=F.split("=");I[L]=decodeURIComponent(R)}),I}const A=we(!1),v=we(!1),w=we(!1),x=we(!1),C=we({}),k=we([]),T=async O=>{var F;v.value=!0;let I=await s.init();if(I&&(I=await O()),v.value=!1,!!I)try{C.value.mallId=s.id;let L=(F=d())==null?void 0:F.from;if(A.value=!0,v.value=!0,L==="productDraftId"||L==="productDraftList")await P();else if(L==="productId"||L==="selfTask"||L==="productList"||L==="seller")await N();else if(window.location.pathname.includes("/goods/edit"))await N();else throw{error:"没有匹配来源"};if(!await Zu(r)){A.value=!1,v.value=!1;return}v.value=!1}catch(L){console.error(L.error),ut.error(L.error),A.value=!1,v.value=!1}},S=()=>{},M=async()=>{if(k.value.length===0){ut.warning("请选择切换类目");return}if(y())try{v.value=!0;let O=await rT({createTemuBackendGoodsParams:h.value,mallId:C.value.mallId,catIds:k.value,carouselFolderPath:t.value?c.value:null,skuPreviewIndex:u.value?f.value:null,priceRange:o.value?{min:l.value.min>0?Math.round(l.value.min*100):0,max:l.value.max>0?Math.round(l.value.max*100):0}:null,newTitle:g.value?m.value:null,detailImageCount:p.value?_.value:null});if(O.status>0)throw new Error(O.errorMsg||O.error);return A.value=!1,Pn.confirm("切换类目成功!是否前往新创建的商品编辑页面，点击确定后跳转到新创建的商品编辑页面","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"success"}).then(()=>{window.open(`https://agentseller.temu.com/goods/edit?productDraftId=${O.draftId}&from=productDraftList`)}).catch(()=>{})}catch(O){ut.error(O.message)}finally{v.value=!1,x.value=!1}},P=async()=>{if(i.value=d().productDraftId||"",!i.value)throw{error:"productDraftId is null"};const{success:O,result:I,errorMsg:F}=await nT({productDraftId:i.value},C.value.mallId);if(O)h.value=I;else throw h.value=null,{error:"商品信息获取失败,"+F}},N=async()=>{if(n.value=d().productId||"",!n.value)throw{error:"productId is null"};const{success:O,result:I,errorMsg:F}=await KC({productEditTaskUid:"",productId:n.value},C.value.mallId);if(O)h.value=I;else throw h.value=null,{error:"商品信息获取失败,"+F}},B=()=>{window.open("https://www.kuajingabc.com/#/manual/46","_blank")};return(O,I)=>{const F=Ce("el-button"),L=Ce("var-icon"),R=Ce("el-form-item"),U=Ce("el-radio"),V=Ce("el-radio-group"),W=Ce("el-input"),Q=Ce("el-input-number"),le=Ce("el-form"),G=Ce("el-scrollbar"),fe=Ce("el-tooltip"),ie=Ce("el-dialog"),he=Ai("loading");return Oe(),st(Zt,null,[z($0,null,{default:q(({checkAuth:Y})=>[z(F,{class:"custom-button",type:"primary",onClick:K=>T(Y)},{default:q(()=>[...I[14]||(I[14]=[Ue("【凌风跨境工具箱】一键商品裂变",-1)])]),_:1},8,["onClick"])]),_:1}),z(ie,{class:"warp-float",modelValue:A.value,"onUpdate:modelValue":I[13]||(I[13]=Y=>A.value=Y),width:"600px",disabled:v.value,"show-close":!v.value,visible:x.value,"before-close":x.value=v.value,"align-center":"",style:{"border-radius":"10px"}},{header:q(()=>[de("div",{style:{display:"flex","align-items":"center"}},[I[15]||(I[15]=de("h3",null,"【凌风跨境工具箱】一键商品裂变设置",-1)),de("div",{class:"DescriptionTips",onClick:B},"查看功能说明")]),z(F,{type:"primary",link:"",class:"refresh",disabled:w.value,onClick:I[0]||(I[0]=Y=>S())},{default:q(()=>[z(L,{class:ao({loading:w.value}),name:"refresh"},null,8,["class"]),I[16]||(I[16]=Ue("刷新",-1))]),_:1},8,["disabled"])]),default:q(()=>[z(G,{height:"380px"},{default:q(()=>[na((Oe(),Et(le,{model:C.value,"label-position":"top",class:"dialog-body","label-width":"auto"},{default:q(()=>[A.value?(Oe(),Et(R,{key:0,label:"类目:"},{default:q(()=>[z(i_,{"mall-id":C.value.mallId,modelValue:k.value,"onUpdate:modelValue":I[1]||(I[1]=Y=>k.value=Y),style:{width:"300px"}},null,8,["mall-id","modelValue"])]),_:1})):tr("",!0),z(R,{label:"是否更换轮播图:"},{default:q(()=>[z(V,{modelValue:t.value,"onUpdate:modelValue":I[2]||(I[2]=Y=>t.value=Y)},{default:q(()=>[z(U,{label:!0},{default:q(()=>[...I[17]||(I[17]=[Ue("是",-1)])]),_:1}),z(U,{label:!1},{default:q(()=>[...I[18]||(I[18]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),t.value?(Oe(),Et(R,{key:1,label:"请输入轮播图文件夹地址:"},{default:q(()=>[z(W,{style:{width:"300px"},modelValue:c.value,"onUpdate:modelValue":I[3]||(I[3]=Y=>c.value=Y),placeholder:"请输入文件夹地址"},null,8,["modelValue"])]),_:1})):tr("",!0),z(R,{label:"是否更换SKU预览图:"},{default:q(()=>[z(V,{modelValue:u.value,"onUpdate:modelValue":I[4]||(I[4]=Y=>u.value=Y)},{default:q(()=>[z(U,{label:!0},{default:q(()=>[...I[19]||(I[19]=[Ue("是",-1)])]),_:1}),z(U,{label:!1},{default:q(()=>[...I[20]||(I[20]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),u.value?(Oe(),Et(R,{key:2,label:"请输入轮播图的第几张作为SKU预览图:"},{default:q(()=>[z(Q,{modelValue:f.value,"onUpdate:modelValue":I[5]||(I[5]=Y=>f.value=Y),min:1,placeholder:"请输入数字"},null,8,["modelValue"])]),_:1})):tr("",!0),z(R,{label:"是否修改核价:"},{default:q(()=>[z(V,{modelValue:o.value,"onUpdate:modelValue":I[6]||(I[6]=Y=>o.value=Y)},{default:q(()=>[z(U,{label:!0},{default:q(()=>[...I[21]||(I[21]=[Ue("是",-1)])]),_:1}),z(U,{label:!1},{default:q(()=>[...I[22]||(I[22]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),o.value?(Oe(),Et(R,{key:3,label:"请输入价格范围（元）:"},{default:q(()=>[z(Q,{modelValue:l.value.min,"onUpdate:modelValue":I[7]||(I[7]=Y=>l.value.min=Y),min:0,placeholder:"最低价格"},{append:q(()=>[...I[23]||(I[23]=[Ue("最低价格",-1)])]),_:1},8,["modelValue"]),I[25]||(I[25]=de("span",{style:{margin:"0 10px"}},"~",-1)),z(Q,{modelValue:l.value.max,"onUpdate:modelValue":I[8]||(I[8]=Y=>l.value.max=Y),min:0,placeholder:"最高价格"},{append:q(()=>[...I[24]||(I[24]=[Ue("最高价格",-1)])]),_:1},8,["modelValue"])]),_:1})):tr("",!0),z(R,{label:"是否修改标题:"},{default:q(()=>[z(V,{modelValue:g.value,"onUpdate:modelValue":I[9]||(I[9]=Y=>g.value=Y)},{default:q(()=>[z(U,{label:!0},{default:q(()=>[...I[26]||(I[26]=[Ue("是",-1)])]),_:1}),z(U,{label:!1},{default:q(()=>[...I[27]||(I[27]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),g.value?(Oe(),Et(R,{key:4,label:"请输入新的标题:"},{default:q(()=>[z(W,{type:"textarea",modelValue:m.value,"onUpdate:modelValue":I[10]||(I[10]=Y=>m.value=Y),placeholder:"请输入新的标题"},null,8,["modelValue"])]),_:1})):tr("",!0),z(R,{label:"是否修改详情图文:"},{default:q(()=>[z(V,{modelValue:p.value,"onUpdate:modelValue":I[11]||(I[11]=Y=>p.value=Y)},{default:q(()=>[z(U,{label:!0},{default:q(()=>[...I[28]||(I[28]=[Ue("是",-1)])]),_:1}),z(U,{label:!1},{default:q(()=>[...I[29]||(I[29]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),p.value?(Oe(),Et(R,{key:5,label:"请输入前几张轮播图片作为详情图:"},{default:q(()=>[z(Q,{modelValue:_.value,"onUpdate:modelValue":I[12]||(I[12]=Y=>_.value=Y),min:1,placeholder:"请输入数字"},null,8,["modelValue"])]),_:1})):tr("",!0)]),_:1},8,["model"])),[[he,v.value]])]),_:1}),de("div",bN,[z(fe,{class:"item",effect:"dark",content:"点击开始一键换类目！",placement:"top"},{default:q(()=>[z(F,{onClick:M,type:"primary",disabled:v.value},{default:q(()=>[...I[30]||(I[30]=[Ue("开始裂变",-1)])]),_:1},8,["disabled"])]),_:1})])]),_:1},8,["modelValue","disabled","show-close","visible","before-close"])],64)}}},_N=cn(wN,[["__scopeId","data-v-91bcf274"]]);function xN(a){return pu("/api/api/exportDeliveryOrderData",a,36e5*12)}function CN(a){return pu("/api/api/getExportDeliveryOrderDataProgress",a,1e4)}function SN(a){return pu("/api/api/getProgressByUUid",a,1e4)}function kN(a){return pu("/api/api/getExportDeliveryOrderDataFile",a,1e4)}function TN(a){return pu("/api/api/stopExportDeliveryOrderData",a,1e4)}function EN(a){return pu("/api/api/exportSubOrderInfoList",a,36e4*12)}function v6(a){return pu("/api/api/getExportTemuSubInfoProgress",a,1e4)}function IN(a){return pu("/api/api/getExportSubInfoListLink",a,1e4)}function BN(a){return pu("/api/api/stopExportSubInfoList",a,1e4)}const FN={class:"flex justify-end items-center gap-2"},MN={__name:"index",props:{exportType:Number,required:!0},setup(a){const s=Kn(),r=ls(),i=Pr(()=>r.sysUser),n=a,t=we(!1),c=we(!1),u=we(!0),f=we(null),o=we(!0),l=we([]),g=we(["导出待装箱发货单","导出待仓库收货单","导出已收货发货单","导出紧急备货单","导出退货包裹","导出退货明细","导出即将售罄商品","导出已售罄商品","导出半托管店铺商品信息","导出今日可发货普通备货单","","导出历史普通备货单","","导出定制备货单","导出商品列表","导出商品列表"]),m=we(""),p=we(!1),_=we(!1),y=we(!1),h=we(!1),d=we({}),A=we(!1),v=async()=>{A.value=!0;const B=await s.init();if(A.value=!1,!!B){y.value=!0;try{if(d.value.mallId=await fw(),p.value=!0,_.value=!0,!await Zu(r)){p.value=!1,_.value=!1;return}_.value=!1}catch(O){console.error(O.error),ut.error(O.error),p.value=!1,_.value=!1}finally{y.value=!1}}},w=async()=>{h.value=!0;try{await Zu(r)}catch(B){h.value=!1,console.log("permission error:",B)}d.value.mallId=await fw(),ut.success("刷新成功！"),h.value=!1},x=we(0),C=Pr(()=>x.value>=0&&x.value<100?"format":x.value<0?"exception":x.value===100?"success":"format"),k=async()=>{if(!_.value)return;if(x.value==100){let O={};if(n.exportType===9?O=await IN():O=await kN({uuid:m.value}),O.status==0)return O}else if(x.value==-1)return;return await P(1),await k()};let T=null;const S=async()=>{if(_.value=!0,!await n_(d.value.mallId,r,i)){_.value=!1;return}m.value=N(1,1e8)+"";try{let O=n.exportType;O==11&&(O=9),O==13&&(O=12),O==14&&(O=10),O==15&&(O=11);let I={uuid:m.value,needExportPicture:t.value,mallId:d.value.mallId,dataType:O,...O===9?{deliverTimeFrom:u.value===!0&&l.value?new Date(l.value[0]).getTime():null,deliverTimeTo:u.value===!0&&l.value?new Date(l.value[1]).getTime()+864e5:null}:{deliverTimeFrom:l.value?new Date(l.value[0]).getTime():null,deliverTimeTo:l.value?new Date(l.value[1]).getTime()+864e5:null},isMerge:o.value,...u.value===!1?{exportNumLimit:f.value||null}:{},...O===9?{isExportInStore:c.value}:{}};[0,10].includes(n.exportType)&&(delete I.deliverTimeFrom,delete I.deliverTimeTo),x.value=0;let F=0;T=setInterval(async()=>{try{if(n.exportType===9){const{loadPercent:V}=await v6();x.value=V.toFixed(2)*100}else{const{loadPercent:V}=await CN({uuid:m.value});x.value=V.toFixed(2)*100}}catch(V){F++,F>3&&(x.value=-1,console.log(V))}},1e3);let L=null;if(n.exportType===9?L=await EN({isNeedPictures:t.value,mallId:d.value.mallId}):L=await xN(I),L.status>0)throw L;let R=await k();if(!_.value)return;if(R.status>0)throw R;const U=document.createElement("a");U.href=R.fileUrl,U.style.display="none",document.body.appendChild(U),U.click(),document.body.removeChild(U),ut.success("导出成功！！"),x.value=100,p.value=!1}catch(O){console.error(O),clearInterval(T),setTimeout(()=>{x.value=-1},1e3),ut.error("导出失败！！")}finally{clearInterval(T),_.value=!1}},M=async()=>{try{let B=null;if(n.exportType===9?B=await BN():B=await TN({uuid:m.value}),B.status>0)throw B;x.value=0,_.value=!1,clearInterval(T),p.value=!1,console.log("取消导出成功！")}catch(B){setTimeout(()=>{x.value=-1},1e3),console.error(B),ut.error("取消导出失败！")}};function P(B){return new Promise(O=>{setTimeout(()=>{O()},B*1e3)})}function N(B,O){const I=Math.random(),F=O-B;return Math.round(F*I)+B}return(B,O)=>{const I=Ce("el-button"),F=Ce("var-icon"),L=Ce("el-radio"),R=Ce("el-radio-group"),U=Ce("el-form-item"),V=Ce("el-date-picker"),W=Ce("el-input-number"),Q=Ce("el-form"),le=Ce("el-progress"),G=Ce("el-tooltip"),fe=Ce("el-dialog"),ie=Ai("loading");return Oe(),st(Zt,null,[z(I,{loading:A.value,class:ao(["custom-button",{"no-margin-top":["导出今日可发货普通备货单","导出历史普通备货单","导出定制备货单"].includes(g.value[a.exportType]),"custom-width":g.value[a.exportType]==="导出即将售罄商品"||g.value[a.exportType]==="导出已售罄商品"}]),type:"primary",onClick:v},{default:q(()=>[Ue("【凌风跨境工具箱】"+ht(g.value[a.exportType]),1)]),_:1},8,["loading","class"]),z(fe,{style:{"border-radius":"8px"},"align-center":"",class:"warp-float",modelValue:p.value,"onUpdate:modelValue":O[7]||(O[7]=he=>p.value=he),width:"570px",disabled:_.value,"show-close":!_.value,"before-close":_.value&&(p.value=!0)},{header:q(()=>[de("p",null,"【凌风跨境工具箱】"+ht(g.value[a.exportType]),1),z(I,{type:"primary",link:"",class:"refresh",disabled:h.value,onClick:O[0]||(O[0]=he=>w())},{default:q(()=>[z(F,{class:ao({loading:h.value}),name:"refresh"},null,8,["class"]),O[8]||(O[8]=Ue("刷新",-1))]),_:1},8,["disabled"])]),default:q(()=>[na((Oe(),Et(Q,{"label-position":"right","label-width":"auto",class:"dialog-body"},{default:q(()=>[a.exportType==11?(Oe(),Et(U,{key:0,label:"导出模式:"},{default:q(()=>[z(R,{modelValue:u.value,"onUpdate:modelValue":O[1]||(O[1]=he=>u.value=he)},{default:q(()=>[z(L,{label:!0},{default:q(()=>[...O[9]||(O[9]=[Ue("按备货单创建时间",-1)])]),_:1}),z(L,{label:!1},{default:q(()=>[...O[10]||(O[10]=[Ue("按入库时间从大到小前X个",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):tr("",!0),![0,9].includes(a.exportType)&&u.value===!0?(Oe(),Et(U,{key:1,label:"创建时间范围:"},{default:q(()=>[z(V,{modelValue:l.value,"onUpdate:modelValue":O[2]||(O[2]=he=>l.value=he),type:"daterange","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"}},null,8,["modelValue"])]),_:1})):tr("",!0),a.exportType==11&&u.value===!1?(Oe(),Et(U,{key:2,label:"数量:"},{default:q(()=>[z(W,{modelValue:f.value,"onUpdate:modelValue":O[3]||(O[3]=he=>f.value=he),min:1,step:1},null,8,["modelValue"])]),_:1})):tr("",!0),a.exportType==11?(Oe(),Et(U,{key:3,label:"是否仅导出已入库:"},{default:q(()=>[z(R,{modelValue:c.value,"onUpdate:modelValue":O[4]||(O[4]=he=>c.value=he)},{default:q(()=>[z(L,{label:!0},{default:q(()=>[...O[11]||(O[11]=[Ue("是",-1)])]),_:1}),z(L,{label:!1},{default:q(()=>[...O[12]||(O[12]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):tr("",!0),a.exportType!==4?(Oe(),Et(U,{key:4,label:"是否导出图片:"},{default:q(()=>[z(R,{modelValue:t.value,"onUpdate:modelValue":O[5]||(O[5]=he=>t.value=he)},{default:q(()=>[z(L,{label:!0},{default:q(()=>[...O[13]||(O[13]=[Ue("是",-1)])]),_:1}),z(L,{label:!1},{default:q(()=>[...O[14]||(O[14]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):tr("",!0),a.exportType!==5?(Oe(),Et(U,{key:5,label:"是否合并相同的skc信息:"},{default:q(()=>[z(R,{modelValue:o.value,"onUpdate:modelValue":O[6]||(O[6]=he=>o.value=he)},{default:q(()=>[z(L,{label:!0},{default:q(()=>[...O[15]||(O[15]=[Ue("是",-1)])]),_:1}),z(L,{label:!1},{default:q(()=>[...O[16]||(O[16]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})):tr("",!0)]),_:1})),[[ie,_.value]]),z(le,{percentage:x.value,status:C.value,"stroke-width":12,"text-inside":!0},null,8,["percentage","status"]),de("div",FN,[z(I,{onClick:M,type:"warning",disabled:!_.value||y.value},{default:q(()=>[...O[17]||(O[17]=[Ue("取消导出",-1)])]),_:1},8,["disabled"]),z(G,{class:"item",effect:"dark",content:"点击开始一键导出！",placement:"top"},{default:q(()=>[z(I,{onClick:S,type:"primary",disabled:_.value},{default:q(()=>[...O[18]||(O[18]=[Ue("开始导出",-1)])]),_:1},8,["disabled"])]),_:1})])]),_:1},8,["modelValue","disabled","show-close","before-close"])],64)}}},R0=cn(MN,[["__scopeId","data-v-07866167"]]),DN=async a=>{const s=document.querySelectorAll("thead tr:first-child th"),r=Array.from(s).findIndex(t=>t.textContent==="SKU ID");if(r===-1)throw new Error("未找到 SKU ID 列");for(let t=0;t<s.length&&(s[t].getAttribute("colspan")&&Number(s[t].getAttribute("colspan")),t!==r);t++);let i=a.parentElement.children[1].querySelectorAll('[class^="product-info_idContent"]');if((i==null?void 0:i.length)!==2)throw new Error("未找到 SPU 和 SKC div 容器");let n=i[0].querySelector("span").textContent;if(!n)throw new Error("未找到 SPU ID");return{spu:n}};function Ob(a){return new Promise(s=>setTimeout(s,a))}async function G_(a){const s=document.querySelectorAll("button"),r=Array.from(s).find(t=>t.textContent==="更多");if(r)r.dispatchEvent(new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0}));else throw new Error("未找到更多按钮");await Ob(200);let i=document.querySelectorAll("ul"),n=!1;for(let t of i){const c=t.querySelectorAll("li");for(let u of c)if(u.textContent==="批量复制ID"){if(u.getAttribute("data-disabled")==="true")return[];u.dispatchEvent(new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0})),await Ob(200),n=!0;break}}if(!n)throw new Error("未找到复制按钮");i=document.querySelectorAll("ul"),n=!1;for(let t of i){const c=t.querySelectorAll("li");for(let u of c)if(u.textContent===a){u.click(),await Ob(200),n=!0;break}}if(n){let t="";try{t=await navigator.clipboard.readText()}catch(c){return console.error("读取剪贴板内容失败",c),ha({title:"读取商品数据失败, 请开启 seller.kuajingmaihuo.com 的剪贴板权限",dangerouslyUseHTMLString:!0,message:`<div style="display: flex;flex-direction: column; gap: 5px">
                            <div><strong>Chrome 浏览器: </strong> 设置 > 隐私和安全 > 网站设置 </div>
                            <div><strong>Edge 浏览器: </strong> 设置 > Cookie 和网站权限 > 剪贴板 </div>
                          </div>`,type:"error",duration:0}),!1}return t?t.split(`
`):[]}else throw new Error("未找到复制按钮")}async function cA(){const a=await G_("SPU ID + SKC ID + SKU ID + SKC货号 + SKU货号");if(!a)return!1;let s=a.map(i=>{const[n,t,c,u,f]=i.split("	");return{spu:+n,skc:+t,sku:+c}});s=s.filter(i=>Number.isNaN(i.spu)===!1);const r=new Map;for(let i of s)if(r.has(i.spu)){const n=r.get(i.spu);n.skc!==i.skc&&(Array.isArray(n.skc)?n.skc.includes(i.skc)||n.skc.push(i.skc):n.skc=[n.skc,i.skc]),n.skus.push(i.sku)}else r.set(i.spu,{spu:i.spu,skc:i.skc,skus:[i.sku]});return Array.from(r.values())}async function ON(){const a=await G_("SKC ID");return a?a.reduce((s,r)=>{const i=r.split(" ");for(const n of i)s.push(+n);return s},[]):!1}async function y6(){const a=await G_("SPU ID");return a?a.reduce((s,r)=>{const i=r.split(" ");for(const n of i)s.push(+n);return s},[]):!1}async function LN(a,s){return PN(a,s,"spu")}async function PN(a,s,r){try{const n=Math.ceil(a.length/20);let t=[];for(let c=1;c<=n;c++){const u=(c-1)*20,f=a.slice(u,u+20),o=await b6({pageSize:20,page:1,productSkcIds:r==="skc"?f:void 0,productIds:r==="spu"?f:void 0,mallId:s});o&&o.result&&o.result.pageItems&&(t=t.concat(o.result.pageItems))}return t}catch(i){return ut.error("网络异常, 请重试"),console.error("分页查询失败:",i),[]}}const b6=({pageSize:a,page:s,productSkcIds:r,productIds:i,mallId:n})=>Un.post("/visage-agent-seller/product/skc/pageQuery",{pageSize:a,page:s,productSkcIds:r,productIds:i},{headers:{Mallid:n}}),R4=()=>document.querySelector('#root form button[class*="BTN_primary"]'),RN=()=>document.querySelector('#root ul[class*="TB_pgtOuterWrapper"]').querySelector('li[class*="PGT_prev_"]'),UN=()=>document.querySelector('#root ul[class*="TB_pgtOuterWrapper"]').querySelector('li[class*="PGT_next_"]'),U4=a=>[...a.classList].some(s=>s.startsWith("PGT_disabled"));async function w6(){return new Promise((a,s)=>{const r=RN(),i=UN();if(!r||!i){const n=R4();if(!n){s(new Error("找不到查询按钮"));return}n.click(),a();return}if(!U4(r))r.click(),setTimeout(()=>{i.click(),a()},500);else if(!U4(i))i.click(),setTimeout(()=>{r.click(),a()},500);else{const n=R4();if(!n){s(new Error("找不到查询按钮"));return}n.click(),a()}})}const NN={class:"upload-container"},jN={class:"flex flex-wrap gap-2"},HN=["onChange"],QN=["onClick"],zN={key:2,class:"image-actions"},VN=["onClick"],WN=["onClick"],GN={style:{display:"flex","align-items":"center"}},$N={style:{height:"calc(100% - 40px)"}},KN={style:{display:"flex"}},YN={style:{"margin-left":"5px",flex:"1"}},XN={style:{color:"#000"}},ZN={style:{"font-size":"12px"}},JN={style:{"font-size":"12px"}},qN={style:{"font-size":"12px"}},ej={style:{"font-size":"12px"}},tj={style:{display:"flex","align-items":"center"}},rj={style:{display:"flex","align-items":"center"}},nj={style:{display:"flex"}},aj={style:{"margin-left":"5px",flex:"1"}},ij={style:{color:"#000"}},sj={style:{"font-size":"12px"}},oj={style:{"font-size":"12px"}},lj={style:{"font-size":"12px"}},uj={style:{"font-size":"12px"}},cj={style:{display:"flex","align-items":"center"}},fj={__name:"MultipleUpload",props:{modelValue:{type:Array,default:()=>[]},spuIdList:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(a,{expose:s,emit:r}){const i=Kn(),n=a,t=we(!1),c=r,u=we({}),f=we(n.modelValue),o=we(!1),l=we(""),g=we([]),m=we([]),p=we(""),_=we("");Ra(()=>n.modelValue,F=>{f.value=F});const y=F=>{l.value=F,o.value=!0},h=F=>{f.value[F]="",c("update:modelValue",f.value)},d=(F,L)=>{const R=F.target.files[0];if(R){const U=new FileReader;U.onload=V=>{f.value[L]=V.target.result,c("update:modelValue",f.value)},U.readAsDataURL(R)}},A=we(!1),v=we(""),w=we("first"),x=we([]);s({activeName:w,skuImageIndexMap:u,skuPreviewFolder:v,secongLoading:A,fileInput:t,skuCarouselMapIndex:m,clearThird:()=>{p.value=null,_.value=null,m.value=[]}});const k=(F,L,R)=>Un.post("/visage-agent-seller/product/skc/pageQuery",{pageSize:F,page:L,productIds:R},{headers:{Mallid:i.id}}),T=async F=>{if(await i.init()&&(F.paneName==="second"||F.paneName==="third")){A.value=!0;try{const U=n.spuIdList,V=Math.ceil(U.length/20);let W=[];for(let Q=1;Q<=V;Q++){const le=(Q-1)*20,G=U.slice(le,le+20),fe=await k(20,1,G);fe&&fe.result&&fe.result.pageItems&&(W=W.concat(fe.result.pageItems))}x.value=W}catch(R){console.error("分页查询失败:",R)}finally{A.value=!1}}},S=Pr(()=>x.value.flatMap(F=>F.productSkuSummaries.map((L,R)=>({mainImageUrl:F.mainImageUrl,productName:F.productName,leafCat:F.leafCat,productId:F.productId,productSkcId:F.productSkcId,sku:L,rowspan:R===0?F.productSkuSummaries.length:0,previewImageIndex:"",carouselImageIndex:_.value?_.value:""})))),M=({row:F,columnIndex:L})=>{if([0].includes(L)){const{rowspan:R}=F;return R>0?[R,1]:[0,0]}else return[1,1]},P=(F,L,R,U)=>{const V=String(L),W=String(R);F[V]={...F[V],[W]:Number(U)}},N=F=>{const{productId:L,sku:R,previewImageIndex:U}=F;P(u.value,L,R.productSkuId,U)},B=()=>{m.value=S.value.map(F=>({skuId:F.sku.productSkuId,carouselMapIndex:F.carouselImageIndex?Number(F.carouselImageIndex):null}))},O=()=>{_.value=p.value,B()},I=ls();return oa(()=>{I.getInfo()}),(F,L)=>{const R=Ce("el-image"),U=Ce("el-icon"),V=Ce("el-dialog"),W=Ce("el-scrollbar"),Q=Ce("el-tab-pane"),le=Ce("el-input"),G=Ce("el-tooltip"),fe=Ce("el-table-column"),ie=Ce("el-table"),he=Ce("el-button"),Y=Ce("el-tabs"),K=Ai("loading");return Oe(),st("div",NN,[z(Y,{type:"border-card",class:"border-card",modelValue:w.value,"onUpdate:modelValue":L[5]||(L[5]=oe=>w.value=oe),onTabClick:T},{default:q(()=>[z(Q,{label:"对不同skc用相同sku预览图更新",name:"first",class:"h-full"},{default:q(()=>[z(W,{height:"100%"},{default:q(()=>[de("div",jN,[(Oe(!0),st(Zt,null,Hr(f.value,(oe,pe)=>(Oe(),st("div",{key:pe,class:"upload-item"},[de("input",{type:"file",class:"file-input",ref_for:!0,ref_key:"fileInputs",ref:g,onClick:L[0]||(L[0]=ve=>ve.target.value=""),onChange:ve=>d(ve,pe)},null,40,HN),oe?(Oe(),Et(R,{key:0,src:oe,class:"uploaded-image"},null,8,["src"])):(Oe(),st("div",{key:1,class:"upload-placeholder",onClick:ve=>g.value[pe].click()},[z(U,null,{default:q(()=>[z(St(hy))]),_:1})],8,QN)),oe?(Oe(),st("div",zN,[de("span",{class:"action-button",onClick:()=>y(oe)},[z(U,null,{default:q(()=>[z(St(UC))]),_:1})],8,VN),de("span",{class:"action-button",onClick:()=>h(pe)},[z(U,null,{default:q(()=>[z(St(qh))]),_:1})],8,WN)])):tr("",!0)]))),128)),z(V,{modelValue:o.value,"onUpdate:modelValue":L[1]||(L[1]=oe=>o.value=oe),width:"80%"},{default:q(()=>[z(R,{src:l.value,class:"full-width"},null,8,["src"])]),_:1},8,["modelValue"])])]),_:1})]),_:1}),z(Q,{label:"对不同skc用不同sku预览图更新",name:"second",class:"h-full flex flex-col gap-2"},{default:q(()=>[de("div",GN,[L[7]||(L[7]=de("div",null,"SKU预览存放文件夹：",-1)),z(le,{disabled:t.value,size:"default",style:{width:"200px","margin-left":"10px"},modelValue:v.value,"onUpdate:modelValue":L[2]||(L[2]=oe=>v.value=oe),placeholder:"如：D:\\SKU预览图"},null,8,["disabled","modelValue"]),z(G,{style:{"margin-left":"5px"},class:"box-item",placement:"right",effect:"light"},{content:q(()=>[...L[6]||(L[6]=[de("div",{style:{"font-size":"14px",color:"#333"}},[de("p",null,[de("strong",null,"SKU预览存放文件夹说明：")]),de("p",null,"1. 在输入框中填写存放SKU预览图的文件夹路径（例如：D:\\SKU预览图）。"),de("p",null,"2. 对于每个商品，在“SKU预览图索引”列中输入图片在文件夹中的对应索引。"),de("p",null,"3. 索引数字应与文件夹中的图片顺序一致（例如：1代表文件夹中的第一张图片，2代表第二张图片）。"),de("p",null,"4. 系统会根据输入的索引自动匹配文件夹中的图片并更新商品的预览图。"),de("p",null,[de("strong",null,"效果说明：")]),de("p",null,"更新后，系统会使用文件夹中的图片替换每个商品的预览图，展示不同SKU的相关图片。")],-1)])]),default:q(()=>[z(U,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1})]),de("div",$N,[na((Oe(),Et(ie,{border:"",style:{"margin-top":"10px"},data:S.value,height:"100%","span-method":M},{default:q(()=>[z(fe,{label:"商品信息",width:"500","header-align":"center"},{default:q(({row:oe})=>{var pe;return[de("div",null,[de("div",KN,[z(R,{style:{width:"100px",height:"100px"},src:oe.mainImageUrl},null,8,["src"]),de("div",YN,[de("div",XN,ht((oe==null?void 0:oe.productName)||"-"),1),de("div",ZN,"类目："+ht(((pe=oe==null?void 0:oe.leafCat)==null?void 0:pe.catName)||"-"),1),de("div",JN,"SPU ID："+ht((oe==null?void 0:oe.productId)||"-"),1),de("div",qN,"SKC ID："+ht((oe==null?void 0:oe.productSkcId)||"-"),1)])])])]}),_:1}),z(fe,{label:"SKU",width:"150","header-align":"center"},{default:q(({row:oe})=>[de("div",null,ht(oe.sku.productSkuId),1)]),_:1}),z(fe,{label:"规格",width:"200","header-align":"center"},{default:q(({row:oe})=>[(Oe(!0),st(Zt,null,Hr(oe.sku.productSkuSpecList,(pe,ve)=>(Oe(),st("div",{key:ve},[de("div",ej,ht(pe.parentSpecName)+"："+ht(pe.specName||"-"),1)]))),128))]),_:1}),z(fe,{label:"SKU 预览图索引","header-align":"center"},{default:q(({row:oe})=>[de("div",tj,[z(le,{onInput:pe=>N(oe),size:"default",modelValue:oe.previewImageIndex,"onUpdate:modelValue":pe=>oe.previewImageIndex=pe,style:{width:"auto"},placeholder:"请输入SKU预览图索引"},null,8,["onInput","modelValue","onUpdate:modelValue"])])]),_:1})]),_:1},8,["data"])),[[K,A.value]])])]),_:1}),St(I).hasPermission("batchUpdateSkuPreviewImage")?(Oe(),Et(Q,{key:0,label:"对不同skc的sku预览图用skc轮播图更新",name:"third"},{default:q(()=>[de("div",rj,[z(le,{size:"default",style:{width:"200px","margin-right":"10px"},modelValue:p.value,"onUpdate:modelValue":L[3]||(L[3]=oe=>p.value=oe),clearable:"",formatter:oe=>oe.replace(/[^\d]/g,""),parser:oe=>oe.replace(/[^\d]/g,""),placeholder:"请输入SKC轮播图序号"},null,8,["modelValue","formatter","parser"]),z(he,{type:"primary",class:"custom-button",onClick:O,loading:F.isUploading},{default:q(()=>[...L[8]||(L[8]=[Ue("批量设置索引",-1)])]),_:1},8,["loading"])]),na((Oe(),Et(ie,{border:"",style:{"margin-top":"10px"},data:S.value,height:400,"span-method":M},{default:q(()=>[z(fe,{label:"商品信息",width:"500","header-align":"center"},{default:q(({row:oe})=>{var pe;return[de("div",null,[de("div",nj,[z(R,{style:{width:"100px",height:"100px"},src:oe.mainImageUrl},null,8,["src"]),de("div",aj,[de("div",ij,ht((oe==null?void 0:oe.productName)||"-"),1),de("div",sj,"类目："+ht(((pe=oe==null?void 0:oe.leafCat)==null?void 0:pe.catName)||"-"),1),de("div",oj,"SPU ID："+ht((oe==null?void 0:oe.productId)||"-"),1),de("div",lj,"SKC ID："+ht((oe==null?void 0:oe.productSkcId)||"-"),1)])])])]}),_:1}),z(fe,{label:"SKU",width:"150","header-align":"center"},{default:q(({row:oe})=>[de("div",null,ht(oe.sku.productSkuId),1)]),_:1}),z(fe,{label:"规格",width:"200","header-align":"center"},{default:q(({row:oe})=>[(Oe(!0),st(Zt,null,Hr(oe.sku.productSkuSpecList,(pe,ve)=>(Oe(),st("div",{key:ve},[de("div",uj,ht(pe.parentSpecName)+"："+ht(pe.specName||"-"),1)]))),128))]),_:1}),z(fe,{label:"SKU 预览图索引","header-align":"center"},{default:q(({row:oe})=>[de("div",cj,[z(le,{onInput:L[4]||(L[4]=pe=>B()),size:"default",modelValue:oe.carouselImageIndex,"onUpdate:modelValue":pe=>oe.carouselImageIndex=pe,style:{width:"auto"},placeholder:"请输入SKC轮播图序号"},null,8,["modelValue","onUpdate:modelValue"])])]),_:1})]),_:1},8,["data"])),[[K,A.value]])]),_:1})):tr("",!0)]),_:1},8,["modelValue"])])}}},dj=cn(fj,[["__scopeId","data-v-504d7f1a"]]),hj={key:0},Aj={key:1},pj={__name:"ProgressTicker",props:{successText:{type:String,default:"100%"},type:{type:String,default:"line",validator:a=>["line","circle","dashboard"].includes(a)},strokeWidth:{type:Number,default(a){return a.type==="line"?18:6}},width:{type:Number,default:126}},setup(a,{expose:s}){const r=we(0),i=we("");let n=null,t=!1;function c(g,m=3600,p=2e3){let _=m;return r.value=0,i.value="",t=!1,n&&(clearInterval(n),n=null),new Promise((y,h)=>{n=setInterval(()=>{if(t){clearInterval(n),n=null,y(r.value),r.value=0,i.value="";return}g().then(({status:d,error:A,errorMsg:v,progress:w,loadPercent:x})=>{if(d!==0){clearInterval(n),n=null,i.value="exception",h(A||v);return}const C=w!==void 0?w:x;if(C===void 0){clearInterval(n),n=null,i.value="exception",h("未获取到进度数据");return}if(r.value===C){_--,_<=0&&(clearInterval(n),n=null,i.value="exception",h("读取进度超时"));return}else _=m;r.value=C,r.value===1&&(i.value="success",clearInterval(n),n=null,y(r.value))}).catch(d=>{_--,_<=0&&(clearInterval(n),n=null,i.value="exception",h(`读取进度超时: ${d.message||d}`))})},p)})}function u(g){return r.value=0,i.value="",new Promise((m,p)=>{g().then(({status:_,error:y,errorMsg:h,progress:d,loadPercent:A})=>{if(_!==0){p(y||h);return}const v=d!==void 0?d:A;if(v===void 0){p("未获取到进度数据");return}r.value=v,r.value===1?i.value="success":i.value="",m(r.value)}).catch(_=>{p(_)})})}function f(){return n!==null}function o(){t=!0}function l(){r.value=0,i.value=""}return s({start:c,stop:o,load:u,reset:l,isRunning:f}),(g,m)=>(Oe(),Et(St(Jw),{percentage:Math.floor(r.value*100),type:a.type,width:a.width,class:ao(a.type==="line"?"full-with":""),"stroke-width":a.strokeWidth,"text-inside":a.type==="line",status:i.value},{default:q(p=>[p.percentage===100?(Oe(),st("span",hj,ht(a.successText),1)):(Oe(),st("span",Aj,ht(p.percentage)+"% ",1))]),_:1},8,["percentage","type","width","class","stroke-width","text-inside","status"]))}},mj=cn(pj,[["__scopeId","data-v-2273a4da"]]);function N4(a){return pu("/api/api/getProgressByUUid",a,1e4,{"Content-Type":"application/json;charset=UTF-8"})}const jc={__name:"UUIDProgressTicker",props:{successText:{type:String,default:"100%"},type:{type:String,default:"line",validator:a=>["line","circle","dashboard"].includes(a)},strokeWidth:{type:Number,default(a){return a.type==="line"?18:6}},width:{type:Number,default:126}},setup(a,{expose:s}){const r=we(null);function i(f,o=3600,l=2e3){return r.value.start(()=>N4({uuid:f}),o,l)}function n(f){return r.value.load(()=>N4({uuid:f}))}function t(){return r.value.stop()}function c(){return r.value.reset()}function u(){return r.value.isRunning()}return s({start:i,stop:t,load:n,reset:c,isRunning:u}),(f,o)=>(Oe(),Et(mj,{ref_key:"progressTickerRef",ref:r,type:a.type,width:a.width,"stroke-width":a.strokeWidth,"success-text":a.successText},null,8,["type","width","stroke-width","success-text"]))}},gj={class:"dialog-header"},vj={key:0,class:"dialog-header-title"},yj={key:1,class:"dialog-header-title"},bj={class:"desc-tooltip"},wj=["textContent"],_j={class:"dialog-header-desc"},xj={key:3,class:"dialog-header-desc"},Cj={class:"action-buttons"},Sj={__name:"SkuPrevImageUploader",setup(a,{expose:s}){const r=we(!1),i=we([]),n=we([]),t=we(!1),c=we(null),u=we(!1),f=we(!1);we(!1);const o=Kn(),l=d=>d.replace(/^data:image\/\w+;base64,/,""),g=()=>{if(y.value.activeName==="first"){if(p.value.length>1){const v=p.value[0].skus.length;for(let w=1;w<p.value.length;w++)if(p.value[w].skus.length!==v)return ut.error("所选商品 SKU 数量不一致, 请选择相同 SKU 数量的商品"),!1}}else if(y.value.activeName==="second"){if(y.value.skuPreviewFolder===""){ut.error("请输入SKU预览存放文件夹");return}if(!y.value.skuImageIndexMap||Object.keys(y.value.skuImageIndexMap).length===0){ut.error("请输入SKU预览图索引");return}const w=((x,C)=>x.filter(T=>{const S=C[T];return!S||typeof S!="object"?!0:!Object.values(S).some(M=>M!=null&&M!==""&&M!==0&&!isNaN(Number(M)))}))(n.value,y.value.skuImageIndexMap);if(w.length>0){ut.error(`以下 SPU 至少填写一个SKU 预览图索引: ${w.join(", ")}`);return}}const d=Sf(),A={mallId:o.id,uuid:d,spuIdList:n.value,addMaterialCenter:t.value,imageBase64List:i.value.map(l),skuImageDir:y.value.skuPreviewFolder||null,skuImageIndex:y.value.skuImageIndexMap&&Object.keys(y.value.skuImageIndexMap).length>0?y.value.skuImageIndexMap:null,carouselMapReplacement:y.value.skuCarouselMapIndex.length>0?y.value.skuCarouselMapIndex:null};if(y.value.activeName==="third"){if(y.value.skuCarouselMapIndex.length==0||!y.value.skuCarouselMapIndex.some(v=>v.carouselMapIndex!=null))return ut.error("至少填写一个SKU 预览图索引");delete A.addMaterialCenter,delete A.imageBase64List,delete A.skuImageDir,delete A.skuImageIndex}c.value.start(d),y.value.secongLoading=!0,y.value.fileInput=!0,u.value=!0,aT(A).then(({status:v,error:w,errorMsg:x,errorMessageList:C,successCnt:k,failCnt:T,failSpuIdList:S})=>{if(v!==0)ut({message:x||w,type:"error",duration:1e4,zIndex:999999999}),c.value.stop();else{let M="";if(k>0&&(M+=`<p class="notify-success-text">成功更新${k}个商品</p>`),T>0){M+=`<p class="notify-error-text">更新失败${T}个商品</p>`,M+="<p>失败原因: </p>",M+="<ul>";for(let P=0;P<C.length;P++){const N=C[P];M+=`<li>SPU: ${N.id}`,M+=`<ul><li>${N.message}</li></ul>`,M+="</li>"}M+="</ul>"}if(M){const P=Zn(_i,{maxHeight:"720px"},{default:()=>Zn("div",{innerHTML:M})});ha({title:"更新 SKU 预览图",message:P,dangerouslyUseHTMLString:!1,type:T>0?"warning":"success",duration:T>0?0:5e3})}i.value=Array(i.value.length).fill("")}}).catch(v=>{ut.error(v.message),console.error(v),c.value.stop()}).finally(()=>{u.value=!1,y.value.secongLoading=!1,y.value.fileInput=!1})},m=async(d,A)=>{if(!Array.isArray(d)||d.length===0){ut.error("请先选择商品");return}p.value=d,f.value=A,await _()&&(r.value=!0,await il(),c.value.reset())},p=we([]),_=async()=>{var d;if(!p.value)return!1;if(p.value.length===0)return ut.error("请选择商品"),!1;for(const A of p.value)if(Array.isArray(A.skc))return ut.error("检测到选择了多 SKC 商品, 该类型商品不支持批量更新 SKU 预览图"),!1;return n.value=p.value.map(A=>A.spu),i.value=(d=p==null?void 0:p.value[0])==null?void 0:d.skus.map(()=>""),!0},y=we(null),h=()=>{r.value=!1,y.value.activeName="first",y.value.skuImageIndexMap={},y.value.skuPreviewFolder="",y.value.clearThird()};return s({openDialog:m}),(d,A)=>{const v=Ce("el-tooltip"),w=Ce("el-button"),x=Ce("el-dialog");return Oe(),Et(x,{modelValue:r.value,"onUpdate:modelValue":A[1]||(A[1]=C=>r.value=C),width:"1100px","append-to-body":"",onClose:h,"align-center":"","close-on-press-escape":!1,"close-on-click-modal":!1},{header:q(()=>[de("div",gj,[f.value?(Oe(),st("h3",yj,"【凌风跨境工具箱】更新SKU预览图")):(Oe(),st("h3",vj,"【凌风跨境工具箱】批量更新SKU预览图")),f.value?(Oe(),st("span",xj,"SPU: "+ht(p.value[0].spu),1)):(Oe(),Et(v,{key:2,"raw-content":"",placement:"left"},{content:q(()=>[de("div",bj,[A[2]||(A[2]=de("p",null,"SPU:",-1)),de("p",{textContent:ht(p.value.map(C=>C.spu).join(", "))},null,8,wj)])]),default:q(()=>[de("span",_j,[A[3]||(A[3]=Ue("当前选中",-1)),de("strong",null,ht(p.value.length)+"个",1),A[4]||(A[4]=Ue("商品",-1))])]),_:1}))])]),footer:q(()=>[de("div",Cj,[z(w,{onClick:h,disabled:u.value},{default:q(()=>[...A[5]||(A[5]=[Ue("关 闭",-1)])]),_:1},8,["disabled"]),z(w,{type:"primary",class:"custom-button",onClick:g,loading:u.value},{default:q(()=>[...A[6]||(A[6]=[Ue("开始更新",-1)])]),_:1},8,["loading"])]),z(jc,{ref_key:"progressTickerRef",ref:c,style:{"margin-top":"10px"},"stroke-width":16},null,512)]),default:q(()=>[z(dj,{ref_key:"MultipleUploadRef",ref:y,spuIdList:n.value,modelValue:i.value,"onUpdate:modelValue":A[0]||(A[0]=C=>i.value=C)},null,8,["spuIdList","modelValue"])]),_:1},8,["modelValue"])}}},_6=cn(Sj,[["__scopeId","data-v-14664cf9"]]),kj={__name:"BatchUpdateSkuPreviewImage",setup(a){const s=we([]),r=we(null),i=Kn(),n=we(!1),t=async()=>{n.value=!0;const u=await i.init();n.value=!1,u&&await c()&&r.value.openDialog(s.value,!1)},c=async()=>{s.value=[];let u=[];try{u=await cA()}catch(f){return ut.error("读取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("读取商品信息失败",f),!1}return u?u.length===0?(ut.error("请选择商品"),!1):(s.value=u,!0):!1};return(u,f)=>{const o=Ce("el-button");return Oe(),st(Zt,null,[z(o,{class:"custom-button",type:"primary",onClick:t,loading:n.value},{default:q(()=>[...f[0]||(f[0]=[Ue(" 【凌风跨境工具箱】批量更新sku预览图 ",-1)])]),_:1},8,["loading"]),z(_6,{ref_key:"dialogRef",ref:r},null,512)],64)}}},Tj={class:"card-list"},Ej=["onClick"],Ij={class:"card-content"},Bj={key:0,class:"check-icon"},Fj={__name:"CardSelector",props:{items:{type:Array,required:!0},modelValue:Object},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get:()=>r.modelValue,set:c=>{i("update:modelValue",c)}});Ra(()=>r.items,c=>{c.length>0&&(n.value=c[0])},{immediate:!0});function t(c){n.value=c}return(c,u)=>{const f=Ce("el-icon");return Oe(),st("div",Tj,[(Oe(!0),st(Zt,null,Hr(a.items,(o,l)=>(Oe(),st("div",{key:l,class:ao(["card-item",{active:o===n.value}]),onClick:g=>t(o)},[de("div",Ij,[de("div",null,[R1(c.$slots,"default",{item:o},void 0,!0)]),o===n.value?(Oe(),st("div",Bj,[z(f,null,{default:q(()=>[z(St(e_))]),_:1})])):tr("",!0)])],10,Ej))),128))])}}},Mj=cn(Fj,[["__scopeId","data-v-9accbe0c"]]),Dj={class:"upload-make-tool_header__2eFWz"},Oj={class:"upload-make-tool_content__35vMG"},Lj={__name:"ManualSelector",props:{modelValue:Object,mallId:String,languagesNames:Object},emits:["update:modelValue","update:pdfs"],setup(a,{emit:s}){const r=a,i=s,n=we({title:"",status:2,pageInfo:{pageNo:1,pageSize:10}}),t=we(0),c=we([]),u=Pr({get:()=>r.modelValue,set:g=>{o(g).then(m=>{i("update:modelValue",g),i("update:pdfs",m)})}}),f=g=>g.targetLanguages.map(m=>r.languagesNames[m]?r.languagesNames[m]:m).join("/"),o=g=>new Promise((m,p)=>{pi({url:"/phoenix-mms/instruction/instructionPdfPage",method:"POST",data:{instructionId:g.instructionBizId},headers:{mallid:r.mallId}}).then(({success:_,errorMsg:y,result:h})=>{if(!_){ut.error(y);return}m(h.pages)})}),l=()=>{c.value=[],t.value=0;const g=n.value;g.title===""&&delete g.title,pi({url:"/phoenix-mms/instruction/paginateInstructions",method:"POST",data:g,headers:{mallid:r.mallId}}).then(({success:m,errorMsg:p,result:_})=>{if(!m){ut.error(p);return}let y=[];for(const h of _.page)y=y.concat(h);c.value=y,t.value=_.total})};return oa(()=>{l()}),(g,m)=>{const p=Ce("el-button"),_=Ce("el-input"),y=Ce("el-form-item"),h=Ce("el-pagination"),d=Ce("el-alert"),A=Ce("el-form");return Oe(),Et(A,null,{default:q(()=>[z(y,null,{default:q(()=>[z(_,{modelValue:n.value.title,"onUpdate:modelValue":m[0]||(m[0]=v=>n.value.title=v),placeholder:"请输入名称",clearable:""},{append:q(()=>[z(p,{type:"primary",onClick:l},{default:q(()=>[...m[4]||(m[4]=[Ue("查询",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(y,null,{default:q(()=>[...m[5]||(m[5]=[de("div",{class:"upload-make-tool_tips__37d9p"},"仅可选择已完成翻译的说明书",-1)])]),_:1}),c.value.length>0?(Oe(),st(Zt,{key:0},[z(y,null,{default:q(()=>[z(Mj,{items:c.value,modelValue:u.value,"onUpdate:modelValue":m[1]||(m[1]=v=>u.value=v),style:{width:"100%"}},{default:q(({item:v})=>[de("div",null,[de("div",Dj,ht(v.title),1),de("div",Oj," 包含语言: "+ht(f(v)),1)])]),_:1},8,["items","modelValue"])]),_:1}),z(y,null,{default:q(()=>[z(h,{onSizeChange:m[2]||(m[2]=v=>{n.value.pageInfo.pageSize=v,l()}),onCurrentChange:m[3]||(m[3]=v=>{n.value.pageInfo.pageNo=v,l()}),"current-page":n.value.pageInfo.pageNo,"page-sizes":[10,20,50,100],"page-size":n.value.pageInfo.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.value},null,8,["current-page","page-size","total"])]),_:1})],64)):(Oe(),Et(y,{key:1},{default:q(()=>[z(d,{title:"未查询到说明书, 请在说明书制作工具中添加说明书并完成翻译",type:"error",closable:!1})]),_:1}))]),_:1})}}},Pj=cn(Lj,[["__scopeId","data-v-6f498b10"]]);function Rj(a){let s=[];if(a.productGuideFileI18nList&&a.productGuideFileI18nList.length>0)for(const r of a.productGuideFileI18nList)for(const i of r.languages)s.push({fileName:r.fileName,fileUrl:r.fileUrl,language:i,supplementId:null,sourceFileUrl:null});else s=a.productGuideFileNewVOList;return s}const Uj={},Nj={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function jj(a,s){return Oe(),st("svg",Nj,[...s[0]||(s[0]=[qw('<path d="M663.49568 80H195.2c-31.81056 0-57.6 25.78944-57.6 57.6V915.20512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V302.90432l-222.90432-222.90432z" fill=""></path><path d="M663.49568 51.2H195.2c-31.81056 0-57.6 25.78944-57.6 57.6V886.40512c0 15.90272 6.44096 30.30528 16.87552 40.72448a57.42592 57.42592 0 0 0 40.72448 16.87552h633.6c31.81056 0 57.6-25.78944 57.6-57.6V274.10432L663.49568 51.2z" fill="#EF4A4A"></path><path d="M764.4672 152.17152l-100.6336 100.62848 222.5664 222.5664V274.10432z" fill=""></path><path d="M663.49568 51.2h-7.49568v172.8c0 31.81056 25.78944 57.6 57.6 57.6h172.8v-7.49568L663.49568 51.2z" fill="#F19A9A"></path><path d="M688.83456 583.296c14.07488 7.90528 12.06272 13.824 22.1184 5.91872 10.05568-7.90016-10.05568-17.77664-26.1376-23.69536-16.09216-5.92896-92.52864-15.2832-92.52864-15.2832s4.81792 6.45632 11.34592 13.06624c12.12416 6.08768 22.93248 10.07104 30.90944 13.9776 16.35328-0.28672 42.41408-0.65024 54.29248 6.016z m21.69856 21.61152c-10.05568-5.91872-47.85664-11.74016-71.9872-25.56416-1.22368-0.70656-2.60608-1.3824-4.00896-2.06336-3.03616 0.04096-5.85216 0.09728-8.05376 0.09728-7.21408 0-15.98976-7.13216-22.85568-14.07488-28.07808-14.09024-63.09376-39.74144-85.76512-103.90528 0 0-14.08-51.35872-16.08704-69.13024-2.01216-17.76128 6.03136-35.54816 10.05056-19.74272 0 0 8.04352 17.77664 4.02432 31.59552l4.02432 23.69536s14.07488-51.33824 4.0192-65.1776c0 0-37.99552-21.7088-40.00256 11.86816-2.01216 33.56672 2.10944 82.63168 6.12864 90.53696 0 0-39.9104 120.24832-92.20608 193.3312 0 0-22.1184 31.58528-32.17408 35.54816 0 0-24.14592 9.87648-8.05888-11.8528 0 0 38.2208-43.44832 46.26432-55.296 0 0-69.97504 39.50592-73.99936 49.36192-4.0192 9.88672-13.9776 29.73184 11.64288 39.50592 0 0 29.54752 2.39104 51.66592-21.30432 0 0 51.87584-63.29344 61.93152-83.04128 0 0 32.60928-11.9552 141.21472-31.70816 0 0 58.33216 27.44832 76.44672 31.3856 18.09408 3.96288 26.1376 17.77664 26.1376 17.77664s21.70368-15.90272 11.648-21.84192z m-245.38624-21.0944l42.56256-83.47136c4.02432 19.75808 43.1872 57.9072 43.1872 57.9072-16.08704 1.9712-85.74976 25.56416-85.74976 25.56416z" fill=""></path><path d="M688.83456 554.496c14.07488 7.90528 12.06272 13.824 22.1184 5.91872 10.05568-7.8848-10.05568-17.76128-26.1376-23.69536-16.09216-5.92896-92.52864-15.2832-92.52864-15.2832s4.81792 6.45632 11.34592 13.06624c12.12416 6.08768 22.93248 10.07104 30.90944 13.9776 16.35328-0.28672 42.41408-0.65024 54.29248 6.016z m21.69856 21.61152c-10.05568-5.91872-47.85664-11.74016-71.9872-25.56416-1.22368-0.70656-2.60608-1.3824-4.00896-2.06336-3.03616 0.04096-5.85216 0.09728-8.05376 0.09728-7.21408 0-15.98976-7.13216-22.85568-14.07488-28.07808-14.09024-63.09376-39.74144-85.76512-103.90528 0 0-14.08-51.35872-16.08704-69.13024-2.01216-17.76128 6.03136-35.54816 10.05056-19.74272 0 0 8.04352 17.77664 4.02432 31.59552l4.02432 23.69536s14.07488-51.33824 4.0192-65.1776c0 0-37.99552-21.7088-40.00256 11.86816-2.01216 33.56672 2.10944 82.63168 6.12864 90.53696 0 0-39.9104 120.24832-92.20608 193.3312 0 0-22.1184 31.58528-32.17408 35.54816 0 0-24.14592 9.87648-8.05888-11.8528 0 0 38.2208-43.44832 46.26432-55.296 0 0-69.97504 39.50592-73.99936 49.36192-4.0192 9.88672-13.9776 29.73184 11.64288 39.50592 0 0 29.54752 2.39104 51.66592-21.30432 0 0 51.87584-63.29344 61.93152-83.04128 0 0 32.60928-11.9552 141.21472-31.70816 0 0 58.33216 27.44832 76.44672 31.3856 18.09408 3.96288 26.1376 17.77664 26.1376 17.77664s21.70368-15.90272 11.648-21.84192z m-245.38624-21.0944l42.56256-83.47136c4.02432 19.75808 43.1872 57.9072 43.1872 57.9072-16.08704 1.9712-85.74976 25.56416-85.74976 25.56416z" fill="#FFFFFF"></path>',6)])])}const Hj=cn(Uj,[["render",jj]]),Qj={class:"flex items-center gap-2"},zj=["href"],Vj={style:{color:"#1055ff","font-size":"12px"}},Wj={style:{color:"#2f2f2f","font-size":"12px"}},j4=xi({__name:"PdfFileLink",props:{file:{}},setup(a){return(s,r)=>{const i=Ce("el-icon");return Oe(),st("div",Qj,[z(i,{size:"18"},{default:q(()=>[z(Hj)]),_:1}),de("div",null,[de("a",{href:s.file.fileUrl,target:"_blank"},[de("span",Vj,ht(s.file.languageCnName)+":",1),de("span",Wj,ht(s.file.fileName),1)],8,zj)])])}}}),Gj={},$j={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function Kj(a,s){return Oe(),st("svg",$j,[...s[0]||(s[0]=[qw('<path d="M901.632 926.72c0 12.8-5.12 25.088-14.336 34.304-9.216 9.216-21.504 14.336-34.304 14.336H170.496c-12.8 0-25.6-5.12-34.304-14.336-9.216-9.216-14.336-21.504-14.336-34.304V48.64c0-12.8 5.12-25.6 14.336-34.304C144.896 5.12 157.696 0 170.496 0h418.816c12.8 0 25.6 5.12 34.816 14.336l263.68 263.68c9.216 9.216 14.336 21.504 14.336 34.816V926.72z" fill="#EBECF0"></path><path d="M901.632 926.72v48.64c0 12.8-5.12 25.6-14.336 34.304-9.216 9.216-21.504 14.336-34.304 14.336H170.496c-27.136 0-48.64-22.016-48.64-48.64V926.72c0 12.8 5.12 25.088 14.336 34.304 9.216 9.216 21.504 14.336 34.304 14.336h682.496c27.136 0 48.64-22.016 48.64-48.64z" fill="#C1C7D0"></path><path d="M24.064 536.576h975.36v243.712c0 27.136-22.016 48.64-48.64 48.64H73.216c-12.8 0-25.6-5.12-34.304-14.336-9.216-9.216-14.336-21.504-14.336-34.816v-243.2z" fill="#10D6E5"></path><path d="M121.856 536.576V438.784L24.064 536.576h97.792z m779.776 0l1.024-97.792 97.28 97.792h-98.304z" fill="#00B3C6"></path><path d="M901.632 312.832v6.656h-263.68c-27.136 0-48.64-22.016-48.64-48.64V0c12.8 0 25.6 5.12 34.816 14.336l264.192 263.68c8.704 9.216 13.824 21.504 13.312 34.816z" fill="#C1C7D0"></path><path d="M196.608 761.856h-49.664v-148.992h49.664v148.992zM268.8 761.856h-44.544v-148.992h59.392l26.624 93.184 26.112-93.184h59.392v148.992h-43.52v-45.568l1.024-23.552 2.56-26.624h-1.024l-26.624 95.744h-33.792l-27.648-95.744 1.536 22.016 1.536 23.552v50.176zM457.728 761.856H409.6l53.248-148.992h49.664l53.248 148.992H517.12l-5.12-19.456h-48.64l-5.632 19.456z m46.08-51.2l-16.384-53.248-15.36 53.248h31.744zM727.552 679.936v81.92h-31.744l-1.536-14.336c-9.728 11.264-25.088 16.896-45.568 16.896-46.592-2.048-70.656-27.136-72.192-75.264 2.56-51.2 28.672-77.824 77.824-80.384 39.936 1.024 64 19.456 71.168 55.296h-47.104c-3.072-12.288-11.776-18.432-25.088-18.432-18.432 0.512-27.648 15.36-28.16 43.52 0.512 27.136 11.264 40.448 31.744 40.448 12.8-1.536 21.504-7.168 25.088-16.896h-22.016v-32.256h67.584zM881.152 761.856h-124.928v-148.992h122.368v34.816h-72.704v20.992h61.44v34.816h-61.44v23.552h75.264v34.816z" fill="#FFFFFF"></path>',6)])])}const Yj=cn(Gj,[["render",Kj]]),Xj={class:"flex items-center gap-2"},Zj=["href"],Jj={style:{color:"#1055ff","font-size":"12px"}},H4=xi({__name:"ImageFileLink",props:{file:{}},setup(a){return(s,r)=>{const i=Ce("el-icon");return Oe(),st("div",Xj,[z(i,{size:"18"},{default:q(()=>[z(Yj)]),_:1}),de("div",null,[de("a",{href:s.file.imgUrl,target:"_blank"},[de("span",Jj,ht(s.file.languageCnName),1)],8,Zj)])])}}}),qj={class:"w-full flex flex-col gap-2"},eH={style:{position:"relative"}},tH={class:"flex gap-4 text-xs"},rH={style:{color:"#303133"},class:"line-clamp-2"},nH={style:{color:"#303133"}},aH={style:{color:"#303133"}},iH={style:{color:"#303133"}},sH={style:{color:"#303133"}},oH={key:0,class:"flex flex-col"},lH={key:1},uH={style:{color:"#1055ff"}},cH={class:"flex flex-col"},fH={key:1,class:"flex flex-col"},dH={key:1},hH={style:{color:"#1055ff"}},AH={class:"flex flex-col"},pH=xi({__name:"ProductTableSelect",props:{multiple:{type:Boolean,default:()=>flase}},emits:["selectChange"],setup(a,{emit:s}){we("");const r=we({idType:"spu",extCodeType:"skc",guideIncludeLangs:["en"]}),i=[{label:"SKC(精准查询)",value:"skc"},{label:"SKC(模糊查询)",value:"fuzzySkc"},{label:"SKU(精准查询)",value:"sku"},{label:"SKU(模糊查询)",value:"fuzzySku"}],n=_=>(_=_.trim(),_=_.replace(/\s+/g,","),_=_.replace(/，/g,","),_.split(",")),t=s,c=we({page:1,pageSize:10,total:0,pageSizes:[10,20,50,100]}),u=we([]),f=we(!1);let o={zh:"中文",en:"英语",es:"西班牙语",de:"德语",fr:"法语",it:"意大利语",ja:"日语",ko:"韩语",ar:"阿拉伯语",cs:"捷克语",sv:"瑞典语",pl:"波兰语",nl:"荷兰语",da:"丹麦语",hu:"匈牙利语",pt:"葡萄牙语",el:"希腊语",fi:"芬兰语",ro:"罗马尼亚语",lt:"立陶宛语",tr:"土耳其语",ru:"俄语",uk:"乌克兰语",nb:"挪威语",he:"希伯来语",bg:"保加利亚语",hr:"克罗地亚语",et:"爱沙尼亚语",lv:"拉脱维亚语",sk:"斯洛伐克语",sl:"斯洛文尼亚语"};const l=async()=>{o=(await Un.post("/temu-sca-config/get-leo-config",{typeList:["allSiteLanguageOptions"]})).allSiteLanguageOptions.descMap},g=(_,y)=>{_&&(c.value.page=_),y&&(c.value.pageSize=y),f.value=!0;const h=r.value,d=Di();if(!d){ut.error("未获取到店铺 ID, 请重新登录后重试");return}const A={page:c.value.page,pageSize:c.value.pageSize};if(h.idStr){const v=n(h.idStr).map(w=>parseInt(w));switch(h.idType){case"spu":A.productIds=v;break;case"skc":A.productSkcIds=v;break;case"sku":A.productSkuIds=v;break}}if(h.extCodeStr){const v=n(h.extCodeStr);switch(h.extCodeType){case"sku":A.skuExtCodes=v;break;case"skc":A.skcExtCodes=v;break;case"fuzzySkc":A.fuzzySkcExtCodes=v;break;case"fuzzySku":A.fuzzySkuExtCodes=v;break}}h.guideIncludeLangs.length>0&&(A.guideIncludeLangs=h.guideIncludeLangs),Un.post("/visage-agent-seller/product/skc/pageQuery",A,{headers:{mallid:d}}).then(({success:v,errorMsg:w,result:x})=>{if(!v){ut.error(w);return}const{total:C,pageItems:k}=x;c.value.total=C,u.value=k.map(T=>{var S;return{...T,selected:!1,guideFiles:Rj(T).map(M=>({...M,languageCnName:o[M.language]||M.language})),guideFilePageImages:(S=T.guideFilePageImages)==null?void 0:S.map(M=>({...M,languageCnName:o[M.language]||M.language}))}})}).finally(()=>{f.value=!1})};oa(async()=>{await l(),g()});const m=(_,y)=>_.productId===y.productId&&_.productSkcId===y.productSkcId,p=_=>{_.selected=!_.selected,a.multiple?t("selectChange",u.value.filter(y=>y.selected)):(u.value.forEach(y=>{!m(y,_)&&y.selected&&(y.selected=!1)}),t("selectChange",_.selected?_:null))};return(_,y)=>{const h=Ce("el-option"),d=Ce("el-select"),A=Ce("el-input"),v=Ce("el-form-item"),w=Ce("el-button"),x=Ce("el-form"),C=Ce("el-checkbox"),k=Ce("el-table-column"),T=Ce("el-image"),S=Ce("el-popover"),M=Ce("el-table"),P=Ce("el-pagination"),N=Ai("loading");return Oe(),st("div",qj,[de("div",null,[z(x,{inline:""},{default:q(()=>[z(v,{label:"商品ID"},{default:q(()=>[z(A,{modelValue:r.value.idStr,"onUpdate:modelValue":y[1]||(y[1]=B=>r.value.idStr=B),placeholder:"多个查询请用空格或逗号依次输入","input-style":{width:"220px"},clearable:""},{prepend:q(()=>[z(d,{modelValue:r.value.idType,"onUpdate:modelValue":y[0]||(y[0]=B=>r.value.idType=B),style:{width:"80px"}},{default:q(()=>[z(h,{label:"SPU",value:"spu"}),z(h,{label:"SKC",value:"skc"}),z(h,{label:"SKU",value:"sku"})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),z(v,{label:"货号"},{default:q(()=>[z(A,{modelValue:r.value.extCodeStr,"onUpdate:modelValue":y[3]||(y[3]=B=>r.value.extCodeStr=B),placeholder:"多个查询请用空格或逗号依次输入","input-style":{width:"220px"},clearable:""},{prepend:q(()=>[z(d,{modelValue:r.value.extCodeType,"onUpdate:modelValue":y[2]||(y[2]=B=>r.value.extCodeType=B),style:{width:"140px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(i,B=>z(h,{key:B.value,value:B.value,label:B.label},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1}),z(v,{label:"说明书包含语言"},{default:q(()=>[z(d,{modelValue:r.value.guideIncludeLangs,"onUpdate:modelValue":y[4]||(y[4]=B=>r.value.guideIncludeLangs=B),multiple:"",style:{width:"220px"},clearable:""},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(St(o),(B,O)=>(Oe(),Et(h,{key:O,label:B,value:O},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(v,null,{default:q(()=>[z(w,{type:"primary",onClick:y[5]||(y[5]=B=>g(1)),loading:f.value},{default:q(()=>[...y[10]||(y[10]=[Ue("查询",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})]),na((Oe(),Et(M,{style:{width:"100%"},data:u.value,height:580,border:"","row-class-name":"cursor-pointer",onRowClick:p},{default:q(()=>[z(k,{width:"50"},{default:q(({row:B})=>[de("div",eH,[z(C,{"model-value":B.selected},null,8,["model-value"]),y[11]||(y[11]=de("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}},null,-1))])]),_:1}),z(k,{label:"商品信息"},{default:q(({row:B})=>[de("div",tH,[de("div",null,[z(T,{style:{width:"50px",height:"50px"},src:B.mainImageUrl},null,8,["src"])]),de("div",null,[de("div",null,[de("span",rH,ht(B.productName),1)]),de("div",null,[y[12]||(y[12]=de("span",{style:{color:"#606266"}},"类目:",-1)),de("span",nH,ht(B.leafCat.catName),1)]),de("div",null,[y[13]||(y[13]=de("span",{style:{color:"#606266"}},"SPU ID:",-1)),de("span",aH,ht(B.productId),1)]),de("div",null,[y[14]||(y[14]=de("span",{style:{color:"#606266"}},"SKC ID:",-1)),de("span",iH,ht(B.productSkcId),1)]),de("div",null,[y[15]||(y[15]=de("span",{style:{color:"#606266"}},"货号:",-1)),de("span",sH,ht(B.extCode),1)])])])]),_:1}),z(k,{label:"说明书信息"},{default:q(({row:B})=>[B.guideFilePageImages?(Oe(),st("div",oH,[(Oe(!0),st(Zt,null,Hr(B.guideFilePageImages,(O,I)=>(Oe(),st(Zt,{key:O.language},[I<3?(Oe(),Et(H4,{key:0,file:O},null,8,["file"])):I===3?(Oe(),st("div",lH,[z(S,{width:380},{reference:q(()=>[de("span",uH,"查看更多("+ht(B.guideFilePageImages.length)+")",1)]),default:q(()=>[de("div",cH,[(Oe(!0),st(Zt,null,Hr(B.guideFilePageImages,F=>(Oe(),Et(H4,{key:F.language,file:F},null,8,["file"]))),128))])]),_:2},1024)])):tr("",!0)],64))),128))])):(Oe(),st("div",fH,[(Oe(!0),st(Zt,null,Hr(B.guideFiles,(O,I)=>(Oe(),st(Zt,{key:O.language},[I<3?(Oe(),Et(j4,{key:0,file:O},null,8,["file"])):I===3?(Oe(),st("div",dH,[z(S,{width:380},{reference:q(()=>[de("span",hH,"查看更多("+ht(B.guideFiles.length)+")",1)]),default:q(()=>[de("div",AH,[(Oe(!0),st(Zt,null,Hr(B.guideFiles,F=>(Oe(),Et(j4,{key:F.language,file:F},null,8,["file"]))),128))])]),_:2},1024)])):tr("",!0)],64))),128))]))]),_:1}),z(k,{label:"创建时间",width:"180"},{default:q(({row:B})=>[de("div",null,ht(new Date(B.createdAt).toLocaleString()),1)]),_:1})]),_:1},8,["data"])),[[N,f.value]]),z(P,{"current-page":c.value.page,"onUpdate:currentPage":y[6]||(y[6]=B=>c.value.page=B),"page-size":c.value.pageSize,"onUpdate:pageSize":y[7]||(y[7]=B=>c.value.pageSize=B),total:c.value.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:y[8]||(y[8]=B=>g(1,B)),onCurrentChange:y[9]||(y[9]=B=>g(B)),"page-sizes":c.value.pageSizes},null,8,["current-page","page-size","total","page-sizes"])])}}}),mH=cn(pH,[["__scopeId","data-v-9e221543"]]),gH={class:"w-full flex justify-between items-center"},vH=["textContent"],yH=xi({__name:"BatchUploadManuals",setup(a){const s=we(!1),r=we([]),i=we("products"),n=we(null),t=we(null),c=we([]),u=we(!1);we(!1);const f=we(!1),o=we(""),l=we([]);let g={zh:"中文",en:"英语",es:"西班牙语",de:"德语",fr:"法语",it:"意大利语",ja:"日语",ko:"韩语",ar:"阿拉伯语",cs:"捷克语",sv:"瑞典语",pl:"波兰语",nl:"荷兰语",da:"丹麦语",hu:"匈牙利语",pt:"葡萄牙语",el:"希腊语",fi:"芬兰语",ro:"罗马尼亚语",lt:"立陶宛语",tr:"土耳其语",ru:"俄语",uk:"乌克兰语",nb:"挪威语",he:"希伯来语",bg:"保加利亚语",hr:"克罗地亚语",et:"爱沙尼亚语",lv:"拉脱维亚语",sk:"斯洛伐克语",sl:"斯洛文尼亚语"};const m=we({name:"",url:"",md5:""});we(),we("https://file.kuajingmaihuo.com/api/galerie/general_file?sdk_version=js-0.0.37&tag_name=product-file-public"),we({sign:"",content_type:"application/pdf",content_md5:""});const p=Kn(),_=async()=>{try{return(await Un.post("/temu-sca-config/get-leo-config",{typeList:["allSiteLanguageOptions"]})).allSiteLanguageOptions.descMap}catch(w){return ut.error(`获取语言列表失败: ${w.message}`),console.error(w),!1}},y=async()=>{u.value=!0;const w=await p.init();u.value=!1,!(!w||(g=await _()||g,!await h()))&&(m.value={url:"",md5:"",name:""},o.value="",l.value=[],s.value=!0)},h=async()=>{r.value=[];let w=[];try{w=await y6()}catch(x){return ut.error("读取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("读取商品信息失败",x),!1}return w?w.length===0?(ut.error("请选择商品"),!1):(r.value=w,!0):!1},d=()=>{switch(i.value){case"products":if(!n.value)return ut.error("请选择已成功设置说明书的商品"),!1;if(n.value.guideFiles.length===0)return ut.error("所选商品未设置说明书"),!1;break;case"upload":if(!m.value.url)return ut.error("请上传包含英文内容的文件"),!1;if(l.value.length===0)return ut.error("请选择说明书语言"),!1;if(!l.value.includes("en"))return ut.error("说明书语言必须包含英语"),!1;break;case"toolbox":if(!t.value)return ut.error("请选择说明书"),!1;break}return!0},A=async()=>{if(!d())return;f.value=!0;let w=0,x="",C=[],k=[],T=[];switch(i.value){case"upload":C=[{languages:l.value,language:"en",fileName:m.value.name,fileUrl:m.value.url}];break;case"toolbox":C=[{languages:t.value.targetLanguages,language:"en",fileName:t.value.title,fileUrl:"",instructionId:t.value.instructionBizId,instructionSnapshotId:t.value.instructionSnapshotId}],T=c.value.map(P=>({language:P.langCode,imgUrl:P.pdfPageUrl}));break;case"products":const S=n.value.guideFilePageImages;Array.isArray(S)&&S.length&&(T=S.filter(P=>P.imgUrl).map(P=>({language:P.language,imgUrl:P.imgUrl})),C=n.value.productGuideFileI18nList.map(P=>({fileName:P.fileName,fileUrl:P.fileUrl,instructionId:P.instructionId,instructionSnapshotId:P.instructionSnapshotId,language:P.language,languages:P.languages,sourceFileUrl:null,supplementId:null})));const M=n.value.guideFiles;Array.isArray(M)&&M.length&&(k=M.filter(P=>P.fileUrl).map(P=>({fileName:P.fileName,fileUrl:P.fileUrl,language:P.language})))}for(const S of r.value){const M={productId:S,productGuideFileI18nReqs:C,productGuideFileNewReqList:k,productGuideFilePageImages:T};try{const P=await Un.post("/visage-agent-seller/product/editGuideFile",M,{headers:{mallid:p.id}});P.success?(w++,x+=`<p>SPU ${S} 说明书设置成功<p>`):x+=`<p>SPU ${S} 说明书设置失败: ${P.errorMsg}<p>`}catch(P){x+=`<p>SPU ${S} 说明书设置失败: ${JSON.stringify(P)}<p>`,console.error("设置说明书失败",P)}}ha({title:"批量设置说明书",dangerouslyUseHTMLString:!0,message:x,duration:w===r.value.length?3e3:0,type:w===r.value.length?"success":"error"}),f.value=!1,s.value=!1},v=w=>{n.value=w};return(w,x)=>{const C=Ce("el-button"),k=Ce("el-popover"),T=Ce("el-tab-pane"),S=Ce("el-tabs"),M=Ce("el-dialog");return Oe(),st(Zt,null,[z(C,{class:"custom-button",type:"primary",onClick:y,loading:u.value},{default:q(()=>[...x[5]||(x[5]=[Ue(" 【凌风跨境工具箱】批量上传说明书 ",-1)])]),_:1},8,["loading"]),z(M,{class:"warp-float",modelValue:s.value,"onUpdate:modelValue":x[4]||(x[4]=P=>s.value=P),width:"90%","append-to-body":"","align-center":""},{header:q(()=>[de("div",gH,[x[9]||(x[9]=de("div",{class:"text-2xl font-bold"},"【凌风跨境工具箱】批量上传说明书",-1)),z(k,{width:520},{default:q(()=>[x[6]||(x[6]=de("p",null,"SPU:",-1)),de("p",{textContent:ht(r.value.join(", "))},null,8,vH)]),reference:q(()=>[de("div",null,[x[7]||(x[7]=Ue("当前选中",-1)),de("strong",null,ht(r.value.length)+"个",1),x[8]||(x[8]=Ue("商品",-1))])]),_:1})])]),footer:q(()=>[z(C,{onClick:x[3]||(x[3]=P=>s.value=!1)},{default:q(()=>[...x[10]||(x[10]=[Ue("取 消",-1)])]),_:1}),z(C,{type:"primary",class:"custom-button",loading:f.value,onClick:A},{default:q(()=>[...x[11]||(x[11]=[Ue("确定",-1)])]),_:1},8,["loading"])]),default:q(()=>[z(S,{type:"border-card",modelValue:i.value,"onUpdate:modelValue":x[2]||(x[2]=P=>i.value=P)},{default:q(()=>[z(T,{label:"从已上传说明书商品中选择",name:"products"},{default:q(()=>[z(mH,{multiple:!1,onSelectChange:v})]),_:1}),z(T,{label:"从说明书制作工具选择",name:"toolbox"},{default:q(()=>[z(Pj,{modelValue:t.value,"onUpdate:modelValue":x[0]||(x[0]=P=>t.value=P),pdfs:c.value,"onUpdate:pdfs":x[1]||(x[1]=P=>c.value=P),"languages-names":St(g),"mall-id":St(p).id},null,8,["modelValue","pdfs","languages-names","mall-id"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}}),bH=cn(yH,[["__scopeId","data-v-459de035"]]),wH={style:{display:"flex","justify-content":"flex-end",gap:"16px"}},_H={__name:"SingleCopyProductToTpl",setup(a,{expose:s}){const r=we(!1),i=we(""),n=we(""),t=we(!1),c=we(!1),u=Kn(),f=()=>{const l={productIdList:[i.value],productSkcIdList:[n.value],mallIdList:[u.mall.mallId],mallNameList:[u.mall.mallName]};c.value=!0,iT(l).then(({status:g,error:m,errorMsg:p})=>{g===0?(ut.success("复制成功"),r.value=!1):ut.error(`复制失败: ${m||p}`)}).catch(g=>{ut.error(`复制失败: ${g.message}`)}).finally(()=>{c.value=!1})};return s({openDialog:async({spu:l,skc:g,skus:m})=>{r.value=!0,t.value=!0;const p=await u.init();if(t.value=!1,!p){r.value=!1;return}i.value=l,n.value=g}}),(l,g)=>{const m=Ce("el-button"),p=Ce("el-dialog"),_=Ai("loading");return na((Oe(),Et(p,{modelValue:r.value,"onUpdate:modelValue":g[1]||(g[1]=y=>r.value=y),title:"【凌风跨境工具箱】复制产品","align-center":"",width:"500",style:{"border-radius":"8px"}},{default:q(()=>[g[4]||(g[4]=de("p",null,"确定复制产品到凌风跨境工具箱的店铺搬家的商品模板列表吗?",-1)),de("div",wH,[z(m,{onClick:g[0]||(g[0]=y=>r.value=!1)},{default:q(()=>[...g[2]||(g[2]=[Ue("取 消",-1)])]),_:1}),z(m,{type:"primary",onClick:f,loading:c.value},{default:q(()=>[...g[3]||(g[3]=[Ue("确 定",-1)])]),_:1},8,["loading"])])]),_:1},8,["modelValue"])),[[_,t.value]])}}},xH={};function CH(a,s){const r=Ce("el-button");return Oe(),Et(r,{class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/goods/copy",target:"_blank",rel:""},{default:q(()=>[...s[0]||(s[0]=[Ue(" 一键前往【凌风跨境工具箱】批量上架搬家页面 ",-1)])]),_:1})}const SH=cn(xH,[["render",CH]]);/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Cw=function(a,s){return Cw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Cw(a,s)};function Hc(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");Cw(a,s);function r(){this.constructor=a}a.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}var Sw=function(){return Sw=Object.assign||function(s){for(var r,i=1,n=arguments.length;i<n;i++){r=arguments[i];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(s[t]=r[t])}return s},Sw.apply(this,arguments)};function wl(a,s,r,i){function n(t){return t instanceof r?t:new r(function(c){c(t)})}return new(r||(r=Promise))(function(t,c){function u(l){try{o(i.next(l))}catch(g){c(g)}}function f(l){try{o(i.throw(l))}catch(g){c(g)}}function o(l){l.done?t(l.value):n(l.value).then(u,f)}o((i=i.apply(a,[])).next())})}function Jo(a,s){var r={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},i,n,t,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(o){return function(l){return f([o,l])}}function f(o){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(t=o[0]&2?n.return:o[0]?n.throw||((t=n.return)&&t.call(n),0):n.next)&&!(t=t.call(n,o[1])).done)return t;switch(n=0,t&&(o=[o[0]&2,t.value]),o[0]){case 0:case 1:t=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,n=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(t=r.trys,!(t=t.length>0&&t[t.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!t||o[1]>t[0]&&o[1]<t[3])){r.label=o[1];break}if(o[0]===6&&r.label<t[1]){r.label=t[1],t=o;break}if(t&&r.label<t[2]){r.label=t[2],r.ops.push(o);break}t[2]&&r.ops.pop(),r.trys.pop();continue}o=s.call(a,r)}catch(l){o=[6,l],n=0}finally{i=t=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function a2(a,s,r){if(arguments.length===2)for(var i=0,n=s.length,t;i<n;i++)(t||!(i in s))&&(t||(t=Array.prototype.slice.call(s,0,i)),t[i]=s[i]);return a.concat(t||s)}var Dd=(function(){function a(s,r,i,n){this.left=s,this.top=r,this.width=i,this.height=n}return a.prototype.add=function(s,r,i,n){return new a(this.left+s,this.top+r,this.width+i,this.height+n)},a.fromClientRect=function(s,r){return new a(r.left+s.windowBounds.left,r.top+s.windowBounds.top,r.width,r.height)},a.fromDOMRectList=function(s,r){var i=Array.from(r).find(function(n){return n.width!==0});return i?new a(i.left+s.windowBounds.left,i.top+s.windowBounds.top,i.width,i.height):a.EMPTY},a.EMPTY=new a(0,0,0,0),a})(),Ty=function(a,s){return Dd.fromClientRect(a,s.getBoundingClientRect())},kH=function(a){var s=a.body,r=a.documentElement;if(!s||!r)throw new Error("Unable to get document size");var i=Math.max(Math.max(s.scrollWidth,r.scrollWidth),Math.max(s.offsetWidth,r.offsetWidth),Math.max(s.clientWidth,r.clientWidth)),n=Math.max(Math.max(s.scrollHeight,r.scrollHeight),Math.max(s.offsetHeight,r.offsetHeight),Math.max(s.clientHeight,r.clientHeight));return new Dd(0,0,i,n)},Ey=function(a){for(var s=[],r=0,i=a.length;r<i;){var n=a.charCodeAt(r++);if(n>=55296&&n<=56319&&r<i){var t=a.charCodeAt(r++);(t&64512)===56320?s.push(((n&1023)<<10)+(t&1023)+65536):(s.push(n),r--)}else s.push(n)}return s},Qs=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(String.fromCodePoint)return String.fromCodePoint.apply(String,a);var r=a.length;if(!r)return"";for(var i=[],n=-1,t="";++n<r;){var c=a[n];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(n+1===r||i.length>16384)&&(t+=String.fromCharCode.apply(String,i),i.length=0)}return t},Q4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",TH=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var i2=0;i2<Q4.length;i2++)TH[Q4.charCodeAt(i2)]=i2;var z4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var s2=0;s2<z4.length;s2++)h1[z4.charCodeAt(s2)]=s2;var EH=function(a){var s=a.length*.75,r=a.length,i,n=0,t,c,u,f;a[a.length-1]==="="&&(s--,a[a.length-2]==="="&&s--);var o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(s):new Array(s),l=Array.isArray(o)?o:new Uint8Array(o);for(i=0;i<r;i+=4)t=h1[a.charCodeAt(i)],c=h1[a.charCodeAt(i+1)],u=h1[a.charCodeAt(i+2)],f=h1[a.charCodeAt(i+3)],l[n++]=t<<2|c>>4,l[n++]=(c&15)<<4|u>>2,l[n++]=(u&3)<<6|f&63;return o},IH=function(a){for(var s=a.length,r=[],i=0;i<s;i+=2)r.push(a[i+1]<<8|a[i]);return r},BH=function(a){for(var s=a.length,r=[],i=0;i<s;i+=4)r.push(a[i+3]<<24|a[i+2]<<16|a[i+1]<<8|a[i]);return r},T0=5,$_=11,Lb=2,FH=$_-T0,x6=65536>>T0,MH=1<<T0,Pb=MH-1,DH=1024>>T0,OH=x6+DH,LH=OH,PH=32,RH=LH+PH,UH=65536>>$_,NH=1<<FH,jH=NH-1,V4=function(a,s,r){return a.slice?a.slice(s,r):new Uint16Array(Array.prototype.slice.call(a,s,r))},HH=function(a,s,r){return a.slice?a.slice(s,r):new Uint32Array(Array.prototype.slice.call(a,s,r))},QH=function(a,s){var r=EH(a),i=Array.isArray(r)?BH(r):new Uint32Array(r),n=Array.isArray(r)?IH(r):new Uint16Array(r),t=24,c=V4(n,t/2,i[4]/2),u=i[5]===2?V4(n,(t+i[4])/2):HH(i,Math.ceil((t+i[4])/4));return new zH(i[0],i[1],i[2],i[3],c,u)},zH=(function(){function a(s,r,i,n,t,c){this.initialValue=s,this.errorValue=r,this.highStart=i,this.highValueIndex=n,this.index=t,this.data=c}return a.prototype.get=function(s){var r;if(s>=0){if(s<55296||s>56319&&s<=65535)return r=this.index[s>>T0],r=(r<<Lb)+(s&Pb),this.data[r];if(s<=65535)return r=this.index[x6+(s-55296>>T0)],r=(r<<Lb)+(s&Pb),this.data[r];if(s<this.highStart)return r=RH-UH+(s>>$_),r=this.index[r],r+=s>>T0&jH,r=this.index[r],r=(r<<Lb)+(s&Pb),this.data[r];if(s<=1114111)return this.data[this.highValueIndex]}return this.errorValue},a})(),W4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VH=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var o2=0;o2<W4.length;o2++)VH[W4.charCodeAt(o2)]=o2;var WH=" ",G4=50,GH=1,C6=2,S6=3,$H=4,KH=5,$4=7,k6=8,K4=9,$h=10,kw=11,Y4=12,Tw=13,YH=14,A1=15,Ew=16,l2=17,s1=18,XH=19,X4=20,Iw=21,o1=22,Rb=23,gm=24,ou=25,p1=26,m1=27,vm=28,ZH=29,v0=30,JH=31,u2=32,c2=33,Bw=34,Fw=35,Mw=36,J1=37,Dw=38,O2=39,L2=40,Ub=41,T6=42,qH=43,eQ=[9001,65288],E6="!",ti="×",f2="÷",Ow=QH(WH),Cd=[v0,Mw],Lw=[GH,C6,S6,KH],I6=[$h,k6],Z4=[m1,p1],tQ=Lw.concat(I6),J4=[Dw,O2,L2,Bw,Fw],rQ=[A1,Tw],nQ=function(a,s){s===void 0&&(s="strict");var r=[],i=[],n=[];return a.forEach(function(t,c){var u=Ow.get(t);if(u>G4?(n.push(!0),u-=G4):n.push(!1),["normal","auto","loose"].indexOf(s)!==-1&&[8208,8211,12316,12448].indexOf(t)!==-1)return i.push(c),r.push(Ew);if(u===$H||u===kw){if(c===0)return i.push(c),r.push(v0);var f=r[c-1];return tQ.indexOf(f)===-1?(i.push(i[c-1]),r.push(f)):(i.push(c),r.push(v0))}if(i.push(c),u===JH)return r.push(s==="strict"?Iw:J1);if(u===T6||u===ZH)return r.push(v0);if(u===qH)return t>=131072&&t<=196605||t>=196608&&t<=262141?r.push(J1):r.push(v0);r.push(u)}),[i,r,n]},Nb=function(a,s,r,i){var n=i[r];if(Array.isArray(a)?a.indexOf(n)!==-1:a===n)for(var t=r;t<=i.length;){t++;var c=i[t];if(c===s)return!0;if(c!==$h)break}if(n===$h)for(var t=r;t>0;){t--;var u=i[t];if(Array.isArray(a)?a.indexOf(u)!==-1:a===u)for(var f=r;f<=i.length;){f++;var c=i[f];if(c===s)return!0;if(c!==$h)break}if(u!==$h)break}return!1},q4=function(a,s){for(var r=a;r>=0;){var i=s[r];if(i===$h)r--;else return i}return 0},aQ=function(a,s,r,i,n){if(r[i]===0)return ti;var t=i-1;if(Array.isArray(n)&&n[t]===!0)return ti;var c=t-1,u=t+1,f=s[t],o=c>=0?s[c]:0,l=s[u];if(f===C6&&l===S6)return ti;if(Lw.indexOf(f)!==-1)return E6;if(Lw.indexOf(l)!==-1||I6.indexOf(l)!==-1)return ti;if(q4(t,s)===k6)return f2;if(Ow.get(a[t])===kw||(f===u2||f===c2)&&Ow.get(a[u])===kw||f===$4||l===$4||f===K4||[$h,Tw,A1].indexOf(f)===-1&&l===K4||[l2,s1,XH,gm,vm].indexOf(l)!==-1||q4(t,s)===o1||Nb(Rb,o1,t,s)||Nb([l2,s1],Iw,t,s)||Nb(Y4,Y4,t,s))return ti;if(f===$h)return f2;if(f===Rb||l===Rb)return ti;if(l===Ew||f===Ew)return f2;if([Tw,A1,Iw].indexOf(l)!==-1||f===YH||o===Mw&&rQ.indexOf(f)!==-1||f===vm&&l===Mw||l===X4||Cd.indexOf(l)!==-1&&f===ou||Cd.indexOf(f)!==-1&&l===ou||f===m1&&[J1,u2,c2].indexOf(l)!==-1||[J1,u2,c2].indexOf(f)!==-1&&l===p1||Cd.indexOf(f)!==-1&&Z4.indexOf(l)!==-1||Z4.indexOf(f)!==-1&&Cd.indexOf(l)!==-1||[m1,p1].indexOf(f)!==-1&&(l===ou||[o1,A1].indexOf(l)!==-1&&s[u+1]===ou)||[o1,A1].indexOf(f)!==-1&&l===ou||f===ou&&[ou,vm,gm].indexOf(l)!==-1)return ti;if([ou,vm,gm,l2,s1].indexOf(l)!==-1)for(var g=t;g>=0;){var m=s[g];if(m===ou)return ti;if([vm,gm].indexOf(m)!==-1)g--;else break}if([m1,p1].indexOf(l)!==-1)for(var g=[l2,s1].indexOf(f)!==-1?c:t;g>=0;){var m=s[g];if(m===ou)return ti;if([vm,gm].indexOf(m)!==-1)g--;else break}if(Dw===f&&[Dw,O2,Bw,Fw].indexOf(l)!==-1||[O2,Bw].indexOf(f)!==-1&&[O2,L2].indexOf(l)!==-1||[L2,Fw].indexOf(f)!==-1&&l===L2||J4.indexOf(f)!==-1&&[X4,p1].indexOf(l)!==-1||J4.indexOf(l)!==-1&&f===m1||Cd.indexOf(f)!==-1&&Cd.indexOf(l)!==-1||f===gm&&Cd.indexOf(l)!==-1||Cd.concat(ou).indexOf(f)!==-1&&l===o1&&eQ.indexOf(a[u])===-1||Cd.concat(ou).indexOf(l)!==-1&&f===s1)return ti;if(f===Ub&&l===Ub){for(var p=r[t],_=1;p>0&&(p--,s[p]===Ub);)_++;if(_%2!==0)return ti}return f===u2&&l===c2?ti:f2},iQ=function(a,s){s||(s={lineBreak:"normal",wordBreak:"normal"});var r=nQ(a,s.lineBreak),i=r[0],n=r[1],t=r[2];(s.wordBreak==="break-all"||s.wordBreak==="break-word")&&(n=n.map(function(u){return[ou,v0,T6].indexOf(u)!==-1?J1:u}));var c=s.wordBreak==="keep-all"?t.map(function(u,f){return u&&a[f]>=19968&&a[f]<=40959}):void 0;return[i,n,c]},sQ=(function(){function a(s,r,i,n){this.codePoints=s,this.required=r===E6,this.start=i,this.end=n}return a.prototype.slice=function(){return Qs.apply(void 0,this.codePoints.slice(this.start,this.end))},a})(),oQ=function(a,s){var r=Ey(a),i=iQ(r,s),n=i[0],t=i[1],c=i[2],u=r.length,f=0,o=0;return{next:function(){if(o>=u)return{done:!0,value:null};for(var l=ti;o<u&&(l=aQ(r,t,n,++o,c))===ti;);if(l!==ti||o===u){var g=new sQ(r,l,f,o);return f=o,{value:g,done:!1}}return{done:!0,value:null}}}},lQ=1,uQ=2,Av=4,e3=8,ty=10,t3=47,F1=92,cQ=9,fQ=32,d2=34,l1=61,dQ=35,hQ=36,AQ=37,h2=39,A2=40,u1=41,pQ=95,zl=45,mQ=33,gQ=60,vQ=62,yQ=64,bQ=91,wQ=93,_Q=61,xQ=123,p2=63,CQ=125,r3=124,SQ=126,kQ=128,n3=65533,jb=42,w0=43,TQ=44,EQ=58,IQ=59,q1=46,BQ=0,FQ=8,MQ=11,DQ=14,OQ=31,LQ=127,vf=-1,B6=48,F6=97,M6=101,PQ=102,RQ=117,UQ=122,D6=65,O6=69,L6=70,NQ=85,jQ=90,tl=function(a){return a>=B6&&a<=57},HQ=function(a){return a>=55296&&a<=57343},ym=function(a){return tl(a)||a>=D6&&a<=L6||a>=F6&&a<=PQ},QQ=function(a){return a>=F6&&a<=UQ},zQ=function(a){return a>=D6&&a<=jQ},VQ=function(a){return QQ(a)||zQ(a)},WQ=function(a){return a>=kQ},m2=function(a){return a===ty||a===cQ||a===fQ},ry=function(a){return VQ(a)||WQ(a)||a===pQ},a3=function(a){return ry(a)||tl(a)||a===zl},GQ=function(a){return a>=BQ&&a<=FQ||a===MQ||a>=DQ&&a<=OQ||a===LQ},zh=function(a,s){return a!==F1?!1:s!==ty},g2=function(a,s,r){return a===zl?ry(s)||zh(s,r):ry(a)?!0:!!(a===F1&&zh(a,s))},Hb=function(a,s,r){return a===w0||a===zl?tl(s)?!0:s===q1&&tl(r):tl(a===q1?s:a)},$Q=function(a){var s=0,r=1;(a[s]===w0||a[s]===zl)&&(a[s]===zl&&(r=-1),s++);for(var i=[];tl(a[s]);)i.push(a[s++]);var n=i.length?parseInt(Qs.apply(void 0,i),10):0;a[s]===q1&&s++;for(var t=[];tl(a[s]);)t.push(a[s++]);var c=t.length,u=c?parseInt(Qs.apply(void 0,t),10):0;(a[s]===O6||a[s]===M6)&&s++;var f=1;(a[s]===w0||a[s]===zl)&&(a[s]===zl&&(f=-1),s++);for(var o=[];tl(a[s]);)o.push(a[s++]);var l=o.length?parseInt(Qs.apply(void 0,o),10):0;return r*(n+u*Math.pow(10,-c))*Math.pow(10,f*l)},KQ={type:2},YQ={type:3},XQ={type:4},ZQ={type:13},JQ={type:8},qQ={type:21},ez={type:9},tz={type:10},rz={type:11},nz={type:12},az={type:14},v2={type:23},iz={type:1},sz={type:25},oz={type:24},lz={type:26},uz={type:27},cz={type:28},fz={type:29},dz={type:31},Pw={type:32},P6=(function(){function a(){this._value=[]}return a.prototype.write=function(s){this._value=this._value.concat(Ey(s))},a.prototype.read=function(){for(var s=[],r=this.consumeToken();r!==Pw;)s.push(r),r=this.consumeToken();return s},a.prototype.consumeToken=function(){var s=this.consumeCodePoint();switch(s){case d2:return this.consumeStringToken(d2);case dQ:var r=this.peekCodePoint(0),i=this.peekCodePoint(1),n=this.peekCodePoint(2);if(a3(r)||zh(i,n)){var t=g2(r,i,n)?uQ:lQ,c=this.consumeName();return{type:5,value:c,flags:t}}break;case hQ:if(this.peekCodePoint(0)===l1)return this.consumeCodePoint(),ZQ;break;case h2:return this.consumeStringToken(h2);case A2:return KQ;case u1:return YQ;case jb:if(this.peekCodePoint(0)===l1)return this.consumeCodePoint(),az;break;case w0:if(Hb(s,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(s),this.consumeNumericToken();break;case TQ:return XQ;case zl:var u=s,f=this.peekCodePoint(0),o=this.peekCodePoint(1);if(Hb(u,f,o))return this.reconsumeCodePoint(s),this.consumeNumericToken();if(g2(u,f,o))return this.reconsumeCodePoint(s),this.consumeIdentLikeToken();if(f===zl&&o===vQ)return this.consumeCodePoint(),this.consumeCodePoint(),oz;break;case q1:if(Hb(s,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(s),this.consumeNumericToken();break;case t3:if(this.peekCodePoint(0)===jb)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===jb&&(l=this.consumeCodePoint(),l===t3))return this.consumeToken();if(l===vf)return this.consumeToken()}break;case EQ:return lz;case IQ:return uz;case gQ:if(this.peekCodePoint(0)===mQ&&this.peekCodePoint(1)===zl&&this.peekCodePoint(2)===zl)return this.consumeCodePoint(),this.consumeCodePoint(),sz;break;case yQ:var g=this.peekCodePoint(0),m=this.peekCodePoint(1),p=this.peekCodePoint(2);if(g2(g,m,p)){var c=this.consumeName();return{type:7,value:c}}break;case bQ:return cz;case F1:if(zh(s,this.peekCodePoint(0)))return this.reconsumeCodePoint(s),this.consumeIdentLikeToken();break;case wQ:return fz;case _Q:if(this.peekCodePoint(0)===l1)return this.consumeCodePoint(),JQ;break;case xQ:return rz;case CQ:return nz;case RQ:case NQ:var _=this.peekCodePoint(0),y=this.peekCodePoint(1);return _===w0&&(ym(y)||y===p2)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(s),this.consumeIdentLikeToken();case r3:if(this.peekCodePoint(0)===l1)return this.consumeCodePoint(),ez;if(this.peekCodePoint(0)===r3)return this.consumeCodePoint(),qQ;break;case SQ:if(this.peekCodePoint(0)===l1)return this.consumeCodePoint(),tz;break;case vf:return Pw}return m2(s)?(this.consumeWhiteSpace(),dz):tl(s)?(this.reconsumeCodePoint(s),this.consumeNumericToken()):ry(s)?(this.reconsumeCodePoint(s),this.consumeIdentLikeToken()):{type:6,value:Qs(s)}},a.prototype.consumeCodePoint=function(){var s=this._value.shift();return typeof s>"u"?-1:s},a.prototype.reconsumeCodePoint=function(s){this._value.unshift(s)},a.prototype.peekCodePoint=function(s){return s>=this._value.length?-1:this._value[s]},a.prototype.consumeUnicodeRangeToken=function(){for(var s=[],r=this.consumeCodePoint();ym(r)&&s.length<6;)s.push(r),r=this.consumeCodePoint();for(var i=!1;r===p2&&s.length<6;)s.push(r),r=this.consumeCodePoint(),i=!0;if(i){var n=parseInt(Qs.apply(void 0,s.map(function(f){return f===p2?B6:f})),16),t=parseInt(Qs.apply(void 0,s.map(function(f){return f===p2?L6:f})),16);return{type:30,start:n,end:t}}var c=parseInt(Qs.apply(void 0,s),16);if(this.peekCodePoint(0)===zl&&ym(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var u=[];ym(r)&&u.length<6;)u.push(r),r=this.consumeCodePoint();var t=parseInt(Qs.apply(void 0,u),16);return{type:30,start:c,end:t}}else return{type:30,start:c,end:c}},a.prototype.consumeIdentLikeToken=function(){var s=this.consumeName();return s.toLowerCase()==="url"&&this.peekCodePoint(0)===A2?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===A2?(this.consumeCodePoint(),{type:19,value:s}):{type:20,value:s}},a.prototype.consumeUrlToken=function(){var s=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===vf)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===h2||r===d2){var i=this.consumeStringToken(this.consumeCodePoint());return i.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===vf||this.peekCodePoint(0)===u1)?(this.consumeCodePoint(),{type:22,value:i.value}):(this.consumeBadUrlRemnants(),v2)}for(;;){var n=this.consumeCodePoint();if(n===vf||n===u1)return{type:22,value:Qs.apply(void 0,s)};if(m2(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===vf||this.peekCodePoint(0)===u1?(this.consumeCodePoint(),{type:22,value:Qs.apply(void 0,s)}):(this.consumeBadUrlRemnants(),v2);if(n===d2||n===h2||n===A2||GQ(n))return this.consumeBadUrlRemnants(),v2;if(n===F1)if(zh(n,this.peekCodePoint(0)))s.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),v2;else s.push(n)}},a.prototype.consumeWhiteSpace=function(){for(;m2(this.peekCodePoint(0));)this.consumeCodePoint()},a.prototype.consumeBadUrlRemnants=function(){for(;;){var s=this.consumeCodePoint();if(s===u1||s===vf)return;zh(s,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},a.prototype.consumeStringSlice=function(s){for(var r=5e4,i="";s>0;){var n=Math.min(r,s);i+=Qs.apply(void 0,this._value.splice(0,n)),s-=n}return this._value.shift(),i},a.prototype.consumeStringToken=function(s){var r="",i=0;do{var n=this._value[i];if(n===vf||n===void 0||n===s)return r+=this.consumeStringSlice(i),{type:0,value:r};if(n===ty)return this._value.splice(0,i),iz;if(n===F1){var t=this._value[i+1];t!==vf&&t!==void 0&&(t===ty?(r+=this.consumeStringSlice(i),i=-1,this._value.shift()):zh(n,t)&&(r+=this.consumeStringSlice(i),r+=Qs(this.consumeEscapedCodePoint()),i=-1))}i++}while(!0)},a.prototype.consumeNumber=function(){var s=[],r=Av,i=this.peekCodePoint(0);for((i===w0||i===zl)&&s.push(this.consumeCodePoint());tl(this.peekCodePoint(0));)s.push(this.consumeCodePoint());i=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(i===q1&&tl(n))for(s.push(this.consumeCodePoint(),this.consumeCodePoint()),r=e3;tl(this.peekCodePoint(0));)s.push(this.consumeCodePoint());i=this.peekCodePoint(0),n=this.peekCodePoint(1);var t=this.peekCodePoint(2);if((i===O6||i===M6)&&((n===w0||n===zl)&&tl(t)||tl(n)))for(s.push(this.consumeCodePoint(),this.consumeCodePoint()),r=e3;tl(this.peekCodePoint(0));)s.push(this.consumeCodePoint());return[$Q(s),r]},a.prototype.consumeNumericToken=function(){var s=this.consumeNumber(),r=s[0],i=s[1],n=this.peekCodePoint(0),t=this.peekCodePoint(1),c=this.peekCodePoint(2);if(g2(n,t,c)){var u=this.consumeName();return{type:15,number:r,flags:i,unit:u}}return n===AQ?(this.consumeCodePoint(),{type:16,number:r,flags:i}):{type:17,number:r,flags:i}},a.prototype.consumeEscapedCodePoint=function(){var s=this.consumeCodePoint();if(ym(s)){for(var r=Qs(s);ym(this.peekCodePoint(0))&&r.length<6;)r+=Qs(this.consumeCodePoint());m2(this.peekCodePoint(0))&&this.consumeCodePoint();var i=parseInt(r,16);return i===0||HQ(i)||i>1114111?n3:i}return s===vf?n3:s},a.prototype.consumeName=function(){for(var s="";;){var r=this.consumeCodePoint();if(a3(r))s+=Qs(r);else if(zh(r,this.peekCodePoint(0)))s+=Qs(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),s}},a})(),R6=(function(){function a(s){this._tokens=s}return a.create=function(s){var r=new P6;return r.write(s),new a(r.read())},a.parseValue=function(s){return a.create(s).parseComponentValue()},a.parseValues=function(s){return a.create(s).parseComponentValues()},a.prototype.parseComponentValue=function(){for(var s=this.consumeToken();s.type===31;)s=this.consumeToken();if(s.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(s);var r=this.consumeComponentValue();do s=this.consumeToken();while(s.type===31);if(s.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},a.prototype.parseComponentValues=function(){for(var s=[];;){var r=this.consumeComponentValue();if(r.type===32)return s;s.push(r),s.push()}},a.prototype.consumeComponentValue=function(){var s=this.consumeToken();switch(s.type){case 11:case 28:case 2:return this.consumeSimpleBlock(s.type);case 19:return this.consumeFunction(s)}return s},a.prototype.consumeSimpleBlock=function(s){for(var r={type:s,values:[]},i=this.consumeToken();;){if(i.type===32||Az(i,s))return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue()),i=this.consumeToken()}},a.prototype.consumeFunction=function(s){for(var r={name:s.value,values:[],type:18};;){var i=this.consumeToken();if(i.type===32||i.type===3)return r;this.reconsumeToken(i),r.values.push(this.consumeComponentValue())}},a.prototype.consumeToken=function(){var s=this._tokens.shift();return typeof s>"u"?Pw:s},a.prototype.reconsumeToken=function(s){this._tokens.unshift(s)},a})(),pv=function(a){return a.type===15},rg=function(a){return a.type===17},Fi=function(a){return a.type===20},hz=function(a){return a.type===0},Rw=function(a,s){return Fi(a)&&a.value===s},U6=function(a){return a.type!==31},Ym=function(a){return a.type!==31&&a.type!==4},If=function(a){var s=[],r=[];return a.forEach(function(i){if(i.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");s.push(r),r=[];return}i.type!==31&&r.push(i)}),r.length&&s.push(r),s},Az=function(a,s){return s===11&&a.type===12||s===28&&a.type===29?!0:s===2&&a.type===3},aA=function(a){return a.type===17||a.type===15},no=function(a){return a.type===16||aA(a)},N6=function(a){return a.length>1?[a[0],a[1]]:[a[0]]},Qo={type:17,number:0,flags:Av},K_={type:16,number:50,flags:Av},Kh={type:16,number:100,flags:Av},g1=function(a,s,r){var i=a[0],n=a[1];return[Wi(i,s),Wi(typeof n<"u"?n:i,r)]},Wi=function(a,s){if(a.type===16)return a.number/100*s;if(pv(a))switch(a.unit){case"rem":case"em":return 16*a.number;case"px":default:return a.number}return a.number},j6="deg",H6="grad",Q6="rad",z6="turn",Iy={name:"angle",parse:function(a,s){if(s.type===15)switch(s.unit){case j6:return Math.PI*s.number/180;case H6:return Math.PI/200*s.number;case Q6:return s.number;case z6:return Math.PI*2*s.number}throw new Error("Unsupported angle type")}},V6=function(a){return a.type===15&&(a.unit===j6||a.unit===H6||a.unit===Q6||a.unit===z6)},W6=function(a){var s=a.filter(Fi).map(function(r){return r.value}).join(" ");switch(s){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Qo,Qo];case"to top":case"bottom":return Ju(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Qo,Kh];case"to right":case"left":return Ju(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Kh,Kh];case"to bottom":case"top":return Ju(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Kh,Qo];case"to left":case"right":return Ju(270)}return 0},Ju=function(a){return Math.PI*a/180},Zh={name:"color",parse:function(a,s){if(s.type===18){var r=pz[s.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+s.name+'"');return r(a,s.values)}if(s.type===5){if(s.value.length===3){var i=s.value.substring(0,1),n=s.value.substring(1,2),t=s.value.substring(2,3);return Yh(parseInt(i+i,16),parseInt(n+n,16),parseInt(t+t,16),1)}if(s.value.length===4){var i=s.value.substring(0,1),n=s.value.substring(1,2),t=s.value.substring(2,3),c=s.value.substring(3,4);return Yh(parseInt(i+i,16),parseInt(n+n,16),parseInt(t+t,16),parseInt(c+c,16)/255)}if(s.value.length===6){var i=s.value.substring(0,2),n=s.value.substring(2,4),t=s.value.substring(4,6);return Yh(parseInt(i,16),parseInt(n,16),parseInt(t,16),1)}if(s.value.length===8){var i=s.value.substring(0,2),n=s.value.substring(2,4),t=s.value.substring(4,6),c=s.value.substring(6,8);return Yh(parseInt(i,16),parseInt(n,16),parseInt(t,16),parseInt(c,16)/255)}}if(s.type===20){var u=Fd[s.value.toUpperCase()];if(typeof u<"u")return u}return Fd.TRANSPARENT}},Jh=function(a){return(255&a)===0},xo=function(a){var s=255&a,r=255&a>>8,i=255&a>>16,n=255&a>>24;return s<255?"rgba("+n+","+i+","+r+","+s/255+")":"rgb("+n+","+i+","+r+")"},Yh=function(a,s,r,i){return(a<<24|s<<16|r<<8|Math.round(i*255)<<0)>>>0},i3=function(a,s){if(a.type===17)return a.number;if(a.type===16){var r=s===3?1:255;return s===3?a.number/100*r:Math.round(a.number/100*r)}return 0},s3=function(a,s){var r=s.filter(Ym);if(r.length===3){var i=r.map(i3),n=i[0],t=i[1],c=i[2];return Yh(n,t,c,1)}if(r.length===4){var u=r.map(i3),n=u[0],t=u[1],c=u[2],f=u[3];return Yh(n,t,c,f)}return 0};function Qb(a,s,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(s-a)*r*6+a:r<1/2?s:r<2/3?(s-a)*6*(2/3-r)+a:a}var o3=function(a,s){var r=s.filter(Ym),i=r[0],n=r[1],t=r[2],c=r[3],u=(i.type===17?Ju(i.number):Iy.parse(a,i))/(Math.PI*2),f=no(n)?n.number/100:0,o=no(t)?t.number/100:0,l=typeof c<"u"&&no(c)?Wi(c,1):1;if(f===0)return Yh(o*255,o*255,o*255,1);var g=o<=.5?o*(f+1):o+f-o*f,m=o*2-g,p=Qb(m,g,u+1/3),_=Qb(m,g,u),y=Qb(m,g,u-1/3);return Yh(p*255,_*255,y*255,l)},pz={hsl:o3,hsla:o3,rgb:s3,rgba:s3},M1=function(a,s){return Zh.parse(a,R6.create(s).parseComponentValue())},Fd={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},mz={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(a,s){return s.map(function(r){if(Fi(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gz={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},By=function(a,s){var r=Zh.parse(a,s[0]),i=s[1];return i&&no(i)?{color:r,stop:i}:{color:r,stop:null}},l3=function(a,s){var r=a[0],i=a[a.length-1];r.stop===null&&(r.stop=Qo),i.stop===null&&(i.stop=Kh);for(var n=[],t=0,c=0;c<a.length;c++){var u=a[c].stop;if(u!==null){var f=Wi(u,s);f>t?n.push(f):n.push(t),t=f}else n.push(null)}for(var o=null,c=0;c<n.length;c++){var l=n[c];if(l===null)o===null&&(o=c);else if(o!==null){for(var g=c-o,m=n[o-1],p=(l-m)/(g+1),_=1;_<=g;_++)n[o+_-1]=p*_;o=null}}return a.map(function(y,h){var d=y.color;return{color:d,stop:Math.max(Math.min(1,n[h]/s),0)}})},vz=function(a,s,r){var i=s/2,n=r/2,t=Wi(a[0],s)-i,c=n-Wi(a[1],r);return(Math.atan2(c,t)+Math.PI*2)%(Math.PI*2)},yz=function(a,s,r){var i=typeof a=="number"?a:vz(a,s,r),n=Math.abs(s*Math.sin(i))+Math.abs(r*Math.cos(i)),t=s/2,c=r/2,u=n/2,f=Math.sin(i-Math.PI/2)*u,o=Math.cos(i-Math.PI/2)*u;return[n,t-o,t+o,c-f,c+f]},Fc=function(a,s){return Math.sqrt(a*a+s*s)},u3=function(a,s,r,i,n){var t=[[0,0],[0,s],[a,0],[a,s]];return t.reduce(function(c,u){var f=u[0],o=u[1],l=Fc(r-f,i-o);return(n?l<c.optimumDistance:l>c.optimumDistance)?{optimumCorner:u,optimumDistance:l}:c},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},bz=function(a,s,r,i,n){var t=0,c=0;switch(a.size){case 0:a.shape===0?t=c=Math.min(Math.abs(s),Math.abs(s-i),Math.abs(r),Math.abs(r-n)):a.shape===1&&(t=Math.min(Math.abs(s),Math.abs(s-i)),c=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(a.shape===0)t=c=Math.min(Fc(s,r),Fc(s,r-n),Fc(s-i,r),Fc(s-i,r-n));else if(a.shape===1){var u=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(s),Math.abs(s-i)),f=u3(i,n,s,r,!0),o=f[0],l=f[1];t=Fc(o-s,(l-r)/u),c=u*t}break;case 1:a.shape===0?t=c=Math.max(Math.abs(s),Math.abs(s-i),Math.abs(r),Math.abs(r-n)):a.shape===1&&(t=Math.max(Math.abs(s),Math.abs(s-i)),c=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(a.shape===0)t=c=Math.max(Fc(s,r),Fc(s,r-n),Fc(s-i,r),Fc(s-i,r-n));else if(a.shape===1){var u=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(s),Math.abs(s-i)),g=u3(i,n,s,r,!1),o=g[0],l=g[1];t=Fc(o-s,(l-r)/u),c=u*t}break}return Array.isArray(a.size)&&(t=Wi(a.size[0],i),c=a.size.length===2?Wi(a.size[1],n):t),[t,c]},wz=function(a,s){var r=Ju(180),i=[];return If(s).forEach(function(n,t){if(t===0){var c=n[0];if(c.type===20&&c.value==="to"){r=W6(n);return}else if(V6(c)){r=Iy.parse(a,c);return}}var u=By(a,n);i.push(u)}),{angle:r,stops:i,type:1}},y2=function(a,s){var r=Ju(180),i=[];return If(s).forEach(function(n,t){if(t===0){var c=n[0];if(c.type===20&&["top","left","right","bottom"].indexOf(c.value)!==-1){r=W6(n);return}else if(V6(c)){r=(Iy.parse(a,c)+Ju(270))%Ju(360);return}}var u=By(a,n);i.push(u)}),{angle:r,stops:i,type:1}},_z=function(a,s){var r=Ju(180),i=[],n=1,t=0,c=3,u=[];return If(s).forEach(function(f,o){var l=f[0];if(o===0){if(Fi(l)&&l.value==="linear"){n=1;return}else if(Fi(l)&&l.value==="radial"){n=2;return}}if(l.type===18){if(l.name==="from"){var g=Zh.parse(a,l.values[0]);i.push({stop:Qo,color:g})}else if(l.name==="to"){var g=Zh.parse(a,l.values[0]);i.push({stop:Kh,color:g})}else if(l.name==="color-stop"){var m=l.values.filter(Ym);if(m.length===2){var g=Zh.parse(a,m[1]),p=m[0];rg(p)&&i.push({stop:{type:16,number:p.number*100,flags:p.flags},color:g})}}}}),n===1?{angle:(r+Ju(180))%Ju(360),stops:i,type:n}:{size:c,shape:t,stops:i,position:u,type:n}},G6="closest-side",$6="farthest-side",K6="closest-corner",Y6="farthest-corner",X6="circle",Z6="ellipse",J6="cover",q6="contain",xz=function(a,s){var r=0,i=3,n=[],t=[];return If(s).forEach(function(c,u){var f=!0;if(u===0){var o=!1;f=c.reduce(function(g,m){if(o)if(Fi(m))switch(m.value){case"center":return t.push(K_),g;case"top":case"left":return t.push(Qo),g;case"right":case"bottom":return t.push(Kh),g}else(no(m)||aA(m))&&t.push(m);else if(Fi(m))switch(m.value){case X6:return r=0,!1;case Z6:return r=1,!1;case"at":return o=!0,!1;case G6:return i=0,!1;case J6:case $6:return i=1,!1;case q6:case K6:return i=2,!1;case Y6:return i=3,!1}else if(aA(m)||no(m))return Array.isArray(i)||(i=[]),i.push(m),!1;return g},f)}if(f){var l=By(a,c);n.push(l)}}),{size:i,shape:r,stops:n,position:t,type:2}},b2=function(a,s){var r=0,i=3,n=[],t=[];return If(s).forEach(function(c,u){var f=!0;if(u===0?f=c.reduce(function(l,g){if(Fi(g))switch(g.value){case"center":return t.push(K_),!1;case"top":case"left":return t.push(Qo),!1;case"right":case"bottom":return t.push(Kh),!1}else if(no(g)||aA(g))return t.push(g),!1;return l},f):u===1&&(f=c.reduce(function(l,g){if(Fi(g))switch(g.value){case X6:return r=0,!1;case Z6:return r=1,!1;case q6:case G6:return i=0,!1;case $6:return i=1,!1;case K6:return i=2,!1;case J6:case Y6:return i=3,!1}else if(aA(g)||no(g))return Array.isArray(i)||(i=[]),i.push(g),!1;return l},f)),f){var o=By(a,c);n.push(o)}}),{size:i,shape:r,stops:n,position:t,type:2}},Cz=function(a){return a.type===1},Sz=function(a){return a.type===2},Y_={name:"image",parse:function(a,s){if(s.type===22){var r={url:s.value,type:0};return a.cache.addImage(s.value),r}if(s.type===18){var i=ek[s.name];if(typeof i>"u")throw new Error('Attempting to parse an unsupported image function "'+s.name+'"');return i(a,s.values)}throw new Error("Unsupported image type "+s.type)}};function kz(a){return!(a.type===20&&a.value==="none")&&(a.type!==18||!!ek[a.name])}var ek={"linear-gradient":wz,"-moz-linear-gradient":y2,"-ms-linear-gradient":y2,"-o-linear-gradient":y2,"-webkit-linear-gradient":y2,"radial-gradient":xz,"-moz-radial-gradient":b2,"-ms-radial-gradient":b2,"-o-radial-gradient":b2,"-webkit-radial-gradient":b2,"-webkit-gradient":_z},Tz={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(a,s){if(s.length===0)return[];var r=s[0];return r.type===20&&r.value==="none"?[]:s.filter(function(i){return Ym(i)&&kz(i)}).map(function(i){return Y_.parse(a,i)})}},Ez={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(a,s){return s.map(function(r){if(Fi(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Iz={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(a,s){return If(s).map(function(r){return r.filter(no)}).map(N6)}},Bz={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(a,s){return If(s).map(function(r){return r.filter(Fi).map(function(i){return i.value}).join(" ")}).map(Fz)}},Fz=function(a){switch(a){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Qm;(function(a){a.AUTO="auto",a.CONTAIN="contain",a.COVER="cover"})(Qm||(Qm={}));var Mz={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(a,s){return If(s).map(function(r){return r.filter(Dz)})}},Dz=function(a){return Fi(a)||no(a)},Fy=function(a){return{name:"border-"+a+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Oz=Fy("top"),Lz=Fy("right"),Pz=Fy("bottom"),Rz=Fy("left"),My=function(a){return{name:"border-radius-"+a,initialValue:"0 0",prefix:!1,type:1,parse:function(s,r){return N6(r.filter(no))}}},Uz=My("top-left"),Nz=My("top-right"),jz=My("bottom-right"),Hz=My("bottom-left"),Dy=function(a){return{name:"border-"+a+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(s,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qz=Dy("top"),zz=Dy("right"),Vz=Dy("bottom"),Wz=Dy("left"),Oy=function(a){return{name:"border-"+a+"-width",initialValue:"0",type:0,prefix:!1,parse:function(s,r){return pv(r)?r.number:0}}},Gz=Oy("top"),$z=Oy("right"),Kz=Oy("bottom"),Yz=Oy("left"),Xz={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zz={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(a,s){switch(s){case"rtl":return 1;case"ltr":default:return 0}}},Jz={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(a,s){return s.filter(Fi).reduce(function(r,i){return r|qz(i.value)},0)}},qz=function(a){switch(a){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},eV={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(a,s){switch(s){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},tV={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(a,s){return s.type===20&&s.value==="normal"?0:s.type===17||s.type===15?s.number:0}},ny;(function(a){a.NORMAL="normal",a.STRICT="strict"})(ny||(ny={}));var rV={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(a,s){switch(s){case"strict":return ny.STRICT;case"normal":default:return ny.NORMAL}}},nV={name:"line-height",initialValue:"normal",prefix:!1,type:4},c3=function(a,s){return Fi(a)&&a.value==="normal"?1.2*s:a.type===17?s*a.number:no(a)?Wi(a,s):s},aV={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(a,s){return s.type===20&&s.value==="none"?null:Y_.parse(a,s)}},iV={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(a,s){switch(s){case"inside":return 0;case"outside":default:return 1}}},Uw={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(a,s){switch(s){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ly=function(a){return{name:"margin-"+a,initialValue:"0",prefix:!1,type:4}},sV=Ly("top"),oV=Ly("right"),lV=Ly("bottom"),uV=Ly("left"),cV={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(a,s){return s.filter(Fi).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},fV={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(a,s){switch(s){case"break-word":return"break-word";case"normal":default:return"normal"}}},Py=function(a){return{name:"padding-"+a,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},dV=Py("top"),hV=Py("right"),AV=Py("bottom"),pV=Py("left"),mV={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(a,s){switch(s){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},gV={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(a,s){switch(s){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},vV={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(a,s){return s.length===1&&Rw(s[0],"none")?[]:If(s).map(function(r){for(var i={color:Fd.TRANSPARENT,offsetX:Qo,offsetY:Qo,blur:Qo},n=0,t=0;t<r.length;t++){var c=r[t];aA(c)?(n===0?i.offsetX=c:n===1?i.offsetY=c:i.blur=c,n++):i.color=Zh.parse(a,c)}return i})}},yV={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(a,s){switch(s){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},bV={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(a,s){if(s.type===20&&s.value==="none")return null;if(s.type===18){var r=xV[s.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+s.name+'"');return r(s.values)}return null}},wV=function(a){var s=a.filter(function(r){return r.type===17}).map(function(r){return r.number});return s.length===6?s:null},_V=function(a){var s=a.filter(function(f){return f.type===17}).map(function(f){return f.number}),r=s[0],i=s[1];s[2],s[3];var n=s[4],t=s[5];s[6],s[7],s[8],s[9],s[10],s[11];var c=s[12],u=s[13];return s[14],s[15],s.length===16?[r,i,n,t,c,u]:null},xV={matrix:wV,matrix3d:_V},f3={type:16,number:50,flags:Av},CV=[f3,f3],SV={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(a,s){var r=s.filter(no);return r.length!==2?CV:[r[0],r[1]]}},kV={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(a,s){switch(s){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},D1;(function(a){a.NORMAL="normal",a.BREAK_ALL="break-all",a.KEEP_ALL="keep-all"})(D1||(D1={}));var TV={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(a,s){switch(s){case"break-all":return D1.BREAK_ALL;case"keep-all":return D1.KEEP_ALL;case"normal":default:return D1.NORMAL}}},EV={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(a,s){if(s.type===20)return{auto:!0,order:0};if(rg(s))return{auto:!1,order:s.number};throw new Error("Invalid z-index number parsed")}},tk={name:"time",parse:function(a,s){if(s.type===15)switch(s.unit.toLowerCase()){case"s":return 1e3*s.number;case"ms":return s.number}throw new Error("Unsupported time type")}},IV={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(a,s){return rg(s)?s.number:1}},BV={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},FV={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(a,s){return s.filter(Fi).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},MV={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(a,s){var r=[],i=[];return s.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:i.push(r.join(" ")),r.length=0;break}}),r.length&&i.push(r.join(" ")),i.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},DV={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},OV={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(a,s){if(rg(s))return s.number;if(Fi(s))switch(s.value){case"bold":return 700;case"normal":default:return 400}return 400}},LV={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(a,s){return s.filter(Fi).map(function(r){return r.value})}},PV={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(a,s){switch(s){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},fo=function(a,s){return(a&s)!==0},RV={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(a,s){if(s.length===0)return[];var r=s[0];return r.type===20&&r.value==="none"?[]:s}},UV={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(a,s){if(s.length===0)return null;var r=s[0];if(r.type===20&&r.value==="none")return null;for(var i=[],n=s.filter(U6),t=0;t<n.length;t++){var c=n[t],u=n[t+1];if(c.type===20){var f=u&&rg(u)?u.number:1;i.push({counter:c.value,increment:f})}}return i}},NV={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(a,s){if(s.length===0)return[];for(var r=[],i=s.filter(U6),n=0;n<i.length;n++){var t=i[n],c=i[n+1];if(Fi(t)&&t.value!=="none"){var u=c&&rg(c)?c.number:0;r.push({counter:t.value,reset:u})}}return r}},jV={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(a,s){return s.filter(pv).map(function(r){return tk.parse(a,r)})}},HV={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(a,s){if(s.length===0)return null;var r=s[0];if(r.type===20&&r.value==="none")return null;var i=[],n=s.filter(hz);if(n.length%2!==0)return null;for(var t=0;t<n.length;t+=2){var c=n[t].value,u=n[t+1].value;i.push({open:c,close:u})}return i}},d3=function(a,s,r){if(!a)return"";var i=a[Math.min(s,a.length-1)];return i?r?i.open:i.close:""},QV={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(a,s){return s.length===1&&Rw(s[0],"none")?[]:If(s).map(function(r){for(var i={color:255,offsetX:Qo,offsetY:Qo,blur:Qo,spread:Qo,inset:!1},n=0,t=0;t<r.length;t++){var c=r[t];Rw(c,"inset")?i.inset=!0:aA(c)?(n===0?i.offsetX=c:n===1?i.offsetY=c:n===2?i.blur=c:i.spread=c,n++):i.color=Zh.parse(a,c)}return i})}},zV={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(a,s){var r=[0,1,2],i=[];return s.filter(Fi).forEach(function(n){switch(n.value){case"stroke":i.push(1);break;case"fill":i.push(0);break;case"markers":i.push(2);break}}),r.forEach(function(n){i.indexOf(n)===-1&&i.push(n)}),i}},VV={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},WV={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(a,s){return pv(s)?s.number:0}},GV=(function(){function a(s,r){var i,n;this.animationDuration=Ln(s,jV,r.animationDuration),this.backgroundClip=Ln(s,mz,r.backgroundClip),this.backgroundColor=Ln(s,gz,r.backgroundColor),this.backgroundImage=Ln(s,Tz,r.backgroundImage),this.backgroundOrigin=Ln(s,Ez,r.backgroundOrigin),this.backgroundPosition=Ln(s,Iz,r.backgroundPosition),this.backgroundRepeat=Ln(s,Bz,r.backgroundRepeat),this.backgroundSize=Ln(s,Mz,r.backgroundSize),this.borderTopColor=Ln(s,Oz,r.borderTopColor),this.borderRightColor=Ln(s,Lz,r.borderRightColor),this.borderBottomColor=Ln(s,Pz,r.borderBottomColor),this.borderLeftColor=Ln(s,Rz,r.borderLeftColor),this.borderTopLeftRadius=Ln(s,Uz,r.borderTopLeftRadius),this.borderTopRightRadius=Ln(s,Nz,r.borderTopRightRadius),this.borderBottomRightRadius=Ln(s,jz,r.borderBottomRightRadius),this.borderBottomLeftRadius=Ln(s,Hz,r.borderBottomLeftRadius),this.borderTopStyle=Ln(s,Qz,r.borderTopStyle),this.borderRightStyle=Ln(s,zz,r.borderRightStyle),this.borderBottomStyle=Ln(s,Vz,r.borderBottomStyle),this.borderLeftStyle=Ln(s,Wz,r.borderLeftStyle),this.borderTopWidth=Ln(s,Gz,r.borderTopWidth),this.borderRightWidth=Ln(s,$z,r.borderRightWidth),this.borderBottomWidth=Ln(s,Kz,r.borderBottomWidth),this.borderLeftWidth=Ln(s,Yz,r.borderLeftWidth),this.boxShadow=Ln(s,QV,r.boxShadow),this.color=Ln(s,Xz,r.color),this.direction=Ln(s,Zz,r.direction),this.display=Ln(s,Jz,r.display),this.float=Ln(s,eV,r.cssFloat),this.fontFamily=Ln(s,MV,r.fontFamily),this.fontSize=Ln(s,DV,r.fontSize),this.fontStyle=Ln(s,PV,r.fontStyle),this.fontVariant=Ln(s,LV,r.fontVariant),this.fontWeight=Ln(s,OV,r.fontWeight),this.letterSpacing=Ln(s,tV,r.letterSpacing),this.lineBreak=Ln(s,rV,r.lineBreak),this.lineHeight=Ln(s,nV,r.lineHeight),this.listStyleImage=Ln(s,aV,r.listStyleImage),this.listStylePosition=Ln(s,iV,r.listStylePosition),this.listStyleType=Ln(s,Uw,r.listStyleType),this.marginTop=Ln(s,sV,r.marginTop),this.marginRight=Ln(s,oV,r.marginRight),this.marginBottom=Ln(s,lV,r.marginBottom),this.marginLeft=Ln(s,uV,r.marginLeft),this.opacity=Ln(s,IV,r.opacity);var t=Ln(s,cV,r.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=Ln(s,fV,r.overflowWrap),this.paddingTop=Ln(s,dV,r.paddingTop),this.paddingRight=Ln(s,hV,r.paddingRight),this.paddingBottom=Ln(s,AV,r.paddingBottom),this.paddingLeft=Ln(s,pV,r.paddingLeft),this.paintOrder=Ln(s,zV,r.paintOrder),this.position=Ln(s,gV,r.position),this.textAlign=Ln(s,mV,r.textAlign),this.textDecorationColor=Ln(s,BV,(i=r.textDecorationColor)!==null&&i!==void 0?i:r.color),this.textDecorationLine=Ln(s,FV,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=Ln(s,vV,r.textShadow),this.textTransform=Ln(s,yV,r.textTransform),this.transform=Ln(s,bV,r.transform),this.transformOrigin=Ln(s,SV,r.transformOrigin),this.visibility=Ln(s,kV,r.visibility),this.webkitTextStrokeColor=Ln(s,VV,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ln(s,WV,r.webkitTextStrokeWidth),this.wordBreak=Ln(s,TV,r.wordBreak),this.zIndex=Ln(s,EV,r.zIndex)}return a.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},a.prototype.isTransparent=function(){return Jh(this.backgroundColor)},a.prototype.isTransformed=function(){return this.transform!==null},a.prototype.isPositioned=function(){return this.position!==0},a.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},a.prototype.isFloating=function(){return this.float!==0},a.prototype.isInlineLevel=function(){return fo(this.display,4)||fo(this.display,33554432)||fo(this.display,268435456)||fo(this.display,536870912)||fo(this.display,67108864)||fo(this.display,134217728)},a})(),$V=(function(){function a(s,r){this.content=Ln(s,RV,r.content),this.quotes=Ln(s,HV,r.quotes)}return a})(),h3=(function(){function a(s,r){this.counterIncrement=Ln(s,UV,r.counterIncrement),this.counterReset=Ln(s,NV,r.counterReset)}return a})(),Ln=function(a,s,r){var i=new P6,n=r!==null&&typeof r<"u"?r.toString():s.initialValue;i.write(n);var t=new R6(i.read());switch(s.type){case 2:var c=t.parseComponentValue();return s.parse(a,Fi(c)?c.value:s.initialValue);case 0:return s.parse(a,t.parseComponentValue());case 1:return s.parse(a,t.parseComponentValues());case 4:return t.parseComponentValue();case 3:switch(s.format){case"angle":return Iy.parse(a,t.parseComponentValue());case"color":return Zh.parse(a,t.parseComponentValue());case"image":return Y_.parse(a,t.parseComponentValue());case"length":var u=t.parseComponentValue();return aA(u)?u:Qo;case"length-percentage":var f=t.parseComponentValue();return no(f)?f:Qo;case"time":return tk.parse(a,t.parseComponentValue())}break}},KV="data-html2canvas-debug",YV=function(a){var s=a.getAttribute(KV);switch(s){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Nw=function(a,s){var r=YV(a);return r===1||s===r},Bf=(function(){function a(s,r){if(this.context=s,this.textNodes=[],this.elements=[],this.flags=0,Nw(r,3))debugger;this.styles=new GV(s,window.getComputedStyle(r,null)),Qw(r)&&(this.styles.animationDuration.some(function(i){return i>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Ty(this.context,r),Nw(r,4)&&(this.flags|=16)}return a})(),XV=" ",A3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var w2=0;w2<A3.length;w2++)v1[A3.charCodeAt(w2)]=w2;var ZV=function(a){var s=a.length*.75,r=a.length,i,n=0,t,c,u,f;a[a.length-1]==="="&&(s--,a[a.length-2]==="="&&s--);var o=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(s):new Array(s),l=Array.isArray(o)?o:new Uint8Array(o);for(i=0;i<r;i+=4)t=v1[a.charCodeAt(i)],c=v1[a.charCodeAt(i+1)],u=v1[a.charCodeAt(i+2)],f=v1[a.charCodeAt(i+3)],l[n++]=t<<2|c>>4,l[n++]=(c&15)<<4|u>>2,l[n++]=(u&3)<<6|f&63;return o},JV=function(a){for(var s=a.length,r=[],i=0;i<s;i+=2)r.push(a[i+1]<<8|a[i]);return r},qV=function(a){for(var s=a.length,r=[],i=0;i<s;i+=4)r.push(a[i+3]<<24|a[i+2]<<16|a[i+1]<<8|a[i]);return r},E0=5,X_=11,zb=2,eW=X_-E0,rk=65536>>E0,tW=1<<E0,Vb=tW-1,rW=1024>>E0,nW=rk+rW,aW=nW,iW=32,sW=aW+iW,oW=65536>>X_,lW=1<<eW,uW=lW-1,p3=function(a,s,r){return a.slice?a.slice(s,r):new Uint16Array(Array.prototype.slice.call(a,s,r))},cW=function(a,s,r){return a.slice?a.slice(s,r):new Uint32Array(Array.prototype.slice.call(a,s,r))},fW=function(a,s){var r=ZV(a),i=Array.isArray(r)?qV(r):new Uint32Array(r),n=Array.isArray(r)?JV(r):new Uint16Array(r),t=24,c=p3(n,t/2,i[4]/2),u=i[5]===2?p3(n,(t+i[4])/2):cW(i,Math.ceil((t+i[4])/4));return new dW(i[0],i[1],i[2],i[3],c,u)},dW=(function(){function a(s,r,i,n,t,c){this.initialValue=s,this.errorValue=r,this.highStart=i,this.highValueIndex=n,this.index=t,this.data=c}return a.prototype.get=function(s){var r;if(s>=0){if(s<55296||s>56319&&s<=65535)return r=this.index[s>>E0],r=(r<<zb)+(s&Vb),this.data[r];if(s<=65535)return r=this.index[rk+(s-55296>>E0)],r=(r<<zb)+(s&Vb),this.data[r];if(s<this.highStart)return r=sW-oW+(s>>X_),r=this.index[r],r+=s>>E0&uW,r=this.index[r],r=(r<<zb)+(s&Vb),this.data[r];if(s<=1114111)return this.data[this.highValueIndex]}return this.errorValue},a})(),m3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hW=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var _2=0;_2<m3.length;_2++)hW[m3.charCodeAt(_2)]=_2;var AW=1,Wb=2,Gb=3,g3=4,v3=5,pW=7,y3=8,$b=9,Kb=10,b3=11,w3=12,_3=13,x3=14,Yb=15,mW=function(a){for(var s=[],r=0,i=a.length;r<i;){var n=a.charCodeAt(r++);if(n>=55296&&n<=56319&&r<i){var t=a.charCodeAt(r++);(t&64512)===56320?s.push(((n&1023)<<10)+(t&1023)+65536):(s.push(n),r--)}else s.push(n)}return s},gW=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];if(String.fromCodePoint)return String.fromCodePoint.apply(String,a);var r=a.length;if(!r)return"";for(var i=[],n=-1,t="";++n<r;){var c=a[n];c<=65535?i.push(c):(c-=65536,i.push((c>>10)+55296,c%1024+56320)),(n+1===r||i.length>16384)&&(t+=String.fromCharCode.apply(String,i),i.length=0)}return t},vW=fW(XV),Gu="×",Xb="÷",yW=function(a){return vW.get(a)},bW=function(a,s,r){var i=r-2,n=s[i],t=s[r-1],c=s[r];if(t===Wb&&c===Gb)return Gu;if(t===Wb||t===Gb||t===g3||c===Wb||c===Gb||c===g3)return Xb;if(t===y3&&[y3,$b,b3,w3].indexOf(c)!==-1||(t===b3||t===$b)&&(c===$b||c===Kb)||(t===w3||t===Kb)&&c===Kb||c===_3||c===v3||c===pW||t===AW)return Gu;if(t===_3&&c===x3){for(;n===v3;)n=s[--i];if(n===x3)return Gu}if(t===Yb&&c===Yb){for(var u=0;n===Yb;)u++,n=s[--i];if(u%2===0)return Gu}return Xb},wW=function(a){var s=mW(a),r=s.length,i=0,n=0,t=s.map(yW);return{next:function(){if(i>=r)return{done:!0,value:null};for(var c=Gu;i<r&&(c=bW(s,t,++i))===Gu;);if(c!==Gu||i===r){var u=gW.apply(null,s.slice(n,i));return n=i,{value:u,done:!1}}return{done:!0,value:null}}}},_W=function(a){for(var s=wW(a),r=[],i;!(i=s.next()).done;)i.value&&r.push(i.value.slice());return r},xW=function(a){var s=123;if(a.createRange){var r=a.createRange();if(r.getBoundingClientRect){var i=a.createElement("boundtest");i.style.height=s+"px",i.style.display="block",a.body.appendChild(i),r.selectNode(i);var n=r.getBoundingClientRect(),t=Math.round(n.height);if(a.body.removeChild(i),t===s)return!0}}return!1},CW=function(a){var s=a.createElement("boundtest");s.style.width="50px",s.style.display="block",s.style.fontSize="12px",s.style.letterSpacing="0px",s.style.wordSpacing="0px",a.body.appendChild(s);var r=a.createRange();s.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var i=s.firstChild,n=Ey(i.data).map(function(f){return Qs(f)}),t=0,c={},u=n.every(function(f,o){r.setStart(i,t),r.setEnd(i,t+f.length);var l=r.getBoundingClientRect();t+=f.length;var g=l.x>c.x||l.y>c.y;return c=l,o===0?!0:g});return a.body.removeChild(s),u},SW=function(){return typeof new Image().crossOrigin<"u"},kW=function(){return typeof new XMLHttpRequest().responseType=="string"},TW=function(a){var s=new Image,r=a.createElement("canvas"),i=r.getContext("2d");if(!i)return!1;s.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(s,0,0),r.toDataURL()}catch{return!1}return!0},C3=function(a){return a[0]===0&&a[1]===255&&a[2]===0&&a[3]===255},EW=function(a){var s=a.createElement("canvas"),r=100;s.width=r,s.height=r;var i=s.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,r,r);var n=new Image,t=s.toDataURL();n.src=t;var c=jw(r,r,0,0,n);return i.fillStyle="red",i.fillRect(0,0,r,r),S3(c).then(function(u){i.drawImage(u,0,0);var f=i.getImageData(0,0,r,r).data;i.fillStyle="red",i.fillRect(0,0,r,r);var o=a.createElement("div");return o.style.backgroundImage="url("+t+")",o.style.height=r+"px",C3(f)?S3(jw(r,r,0,0,o)):Promise.reject(!1)}).then(function(u){return i.drawImage(u,0,0),C3(i.getImageData(0,0,r,r).data)}).catch(function(){return!1})},jw=function(a,s,r,i,n){var t="http://www.w3.org/2000/svg",c=document.createElementNS(t,"svg"),u=document.createElementNS(t,"foreignObject");return c.setAttributeNS(null,"width",a.toString()),c.setAttributeNS(null,"height",s.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",r.toString()),u.setAttributeNS(null,"y",i.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),c.appendChild(u),u.appendChild(n),c},S3=function(a){return new Promise(function(s,r){var i=new Image;i.onload=function(){return s(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(a))})},Uo={get SUPPORT_RANGE_BOUNDS(){var a=xW(document);return Object.defineProperty(Uo,"SUPPORT_RANGE_BOUNDS",{value:a}),a},get SUPPORT_WORD_BREAKING(){var a=Uo.SUPPORT_RANGE_BOUNDS&&CW(document);return Object.defineProperty(Uo,"SUPPORT_WORD_BREAKING",{value:a}),a},get SUPPORT_SVG_DRAWING(){var a=TW(document);return Object.defineProperty(Uo,"SUPPORT_SVG_DRAWING",{value:a}),a},get SUPPORT_FOREIGNOBJECT_DRAWING(){var a=typeof Array.from=="function"&&typeof window.fetch=="function"?EW(document):Promise.resolve(!1);return Object.defineProperty(Uo,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:a}),a},get SUPPORT_CORS_IMAGES(){var a=SW();return Object.defineProperty(Uo,"SUPPORT_CORS_IMAGES",{value:a}),a},get SUPPORT_RESPONSE_TYPE(){var a=kW();return Object.defineProperty(Uo,"SUPPORT_RESPONSE_TYPE",{value:a}),a},get SUPPORT_CORS_XHR(){var a="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Uo,"SUPPORT_CORS_XHR",{value:a}),a},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var a=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Uo,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:a}),a}},O1=(function(){function a(s,r){this.text=s,this.bounds=r}return a})(),IW=function(a,s,r,i){var n=MW(s,r),t=[],c=0;return n.forEach(function(u){if(r.textDecorationLine.length||u.trim().length>0)if(Uo.SUPPORT_RANGE_BOUNDS){var f=k3(i,c,u.length).getClientRects();if(f.length>1){var o=Z_(u),l=0;o.forEach(function(m){t.push(new O1(m,Dd.fromDOMRectList(a,k3(i,l+c,m.length).getClientRects()))),l+=m.length})}else t.push(new O1(u,Dd.fromDOMRectList(a,f)))}else{var g=i.splitText(u.length);t.push(new O1(u,BW(a,i))),i=g}else Uo.SUPPORT_RANGE_BOUNDS||(i=i.splitText(u.length));c+=u.length}),t},BW=function(a,s){var r=s.ownerDocument;if(r){var i=r.createElement("html2canvaswrapper");i.appendChild(s.cloneNode(!0));var n=s.parentNode;if(n){n.replaceChild(i,s);var t=Ty(a,i);return i.firstChild&&n.replaceChild(i.firstChild,i),t}}return Dd.EMPTY},k3=function(a,s,r){var i=a.ownerDocument;if(!i)throw new Error("Node has no owner document");var n=i.createRange();return n.setStart(a,s),n.setEnd(a,s+r),n},Z_=function(a){if(Uo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var s=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(s.segment(a)).map(function(r){return r.segment})}return _W(a)},FW=function(a,s){if(Uo.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(a)).map(function(i){return i.segment})}return OW(a,s)},MW=function(a,s){return s.letterSpacing!==0?Z_(a):FW(a,s)},DW=[32,160,4961,65792,65793,4153,4241],OW=function(a,s){for(var r=oQ(a,{lineBreak:s.lineBreak,wordBreak:s.overflowWrap==="break-word"?"break-word":s.wordBreak}),i=[],n,t=function(){if(n.value){var c=n.value.slice(),u=Ey(c),f="";u.forEach(function(o){DW.indexOf(o)===-1?f+=Qs(o):(f.length&&i.push(f),i.push(Qs(o)),f="")}),f.length&&i.push(f)}};!(n=r.next()).done;)t();return i},LW=(function(){function a(s,r,i){this.text=PW(r.data,i.textTransform),this.textBounds=IW(s,this.text,i,r)}return a})(),PW=function(a,s){switch(s){case 1:return a.toLowerCase();case 3:return a.replace(RW,UW);case 2:return a.toUpperCase();default:return a}},RW=/(^|\s|:|-|\(|\))([a-z])/g,UW=function(a,s,r){return a.length>0?s+r.toUpperCase():a},nk=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n.src=i.currentSrc||i.src,n.intrinsicWidth=i.naturalWidth,n.intrinsicHeight=i.naturalHeight,n.context.cache.addImage(n.src),n}return s})(Bf),ak=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n.canvas=i,n.intrinsicWidth=i.width,n.intrinsicHeight=i.height,n}return s})(Bf),ik=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this,t=new XMLSerializer,c=Ty(r,i);return i.setAttribute("width",c.width+"px"),i.setAttribute("height",c.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(t.serializeToString(i)),n.intrinsicWidth=i.width.baseVal.value,n.intrinsicHeight=i.height.baseVal.value,n.context.cache.addImage(n.svg),n}return s})(Bf),sk=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n.value=i.value,n}return s})(Bf),Hw=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n.start=i.start,n.reversed=typeof i.reversed=="boolean"&&i.reversed===!0,n}return s})(Bf),NW=[{type:15,flags:0,unit:"px",number:3}],jW=[{type:16,flags:0,number:50}],HW=function(a){return a.width>a.height?new Dd(a.left+(a.width-a.height)/2,a.top,a.height,a.height):a.width<a.height?new Dd(a.left,a.top+(a.height-a.width)/2,a.width,a.width):a},QW=function(a){var s=a.type===zW?new Array(a.value.length+1).join("•"):a.value;return s.length===0?a.placeholder||"":s},ay="checkbox",iy="radio",zW="password",T3=707406591,J_=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;switch(n.type=i.type.toLowerCase(),n.checked=i.checked,n.value=QW(i),(n.type===ay||n.type===iy)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=HW(n.bounds)),n.type){case ay:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=NW;break;case iy:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=jW;break}return n}return s})(Bf),ok=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this,t=i.options[i.selectedIndex||0];return n.value=t&&t.text||"",n}return s})(Bf),lk=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n.value=i.value,n}return s})(Bf),uk=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;n.src=i.src,n.width=parseInt(i.width,10)||0,n.height=parseInt(i.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(i.contentWindow&&i.contentWindow.document&&i.contentWindow.document.documentElement){n.tree=fk(r,i.contentWindow.document.documentElement);var t=i.contentWindow.document.documentElement?M1(r,getComputedStyle(i.contentWindow.document.documentElement).backgroundColor):Fd.TRANSPARENT,c=i.contentWindow.document.body?M1(r,getComputedStyle(i.contentWindow.document.body).backgroundColor):Fd.TRANSPARENT;n.backgroundColor=Jh(t)?Jh(c)?n.styles.backgroundColor:c:t}}catch{}return n}return s})(Bf),VW=["OL","UL","MENU"],P2=function(a,s,r,i){for(var n=s.firstChild,t=void 0;n;n=t)if(t=n.nextSibling,dk(n)&&n.data.trim().length>0)r.textNodes.push(new LW(a,n,r.styles));else if(Om(n))if(mk(n)&&n.assignedNodes)n.assignedNodes().forEach(function(u){return P2(a,u,r,i)});else{var c=ck(a,n);c.styles.isVisible()&&(WW(n,c,i)?c.flags|=4:GW(c.styles)&&(c.flags|=2),VW.indexOf(n.tagName)!==-1&&(c.flags|=8),r.elements.push(c),n.slot,n.shadowRoot?P2(a,n.shadowRoot,c,i):!sy(n)&&!hk(n)&&!oy(n)&&P2(a,n,c,i))}},ck=function(a,s){return zw(s)?new nk(a,s):Ak(s)?new ak(a,s):hk(s)?new ik(a,s):$W(s)?new sk(a,s):KW(s)?new Hw(a,s):YW(s)?new J_(a,s):oy(s)?new ok(a,s):sy(s)?new lk(a,s):pk(s)?new uk(a,s):new Bf(a,s)},fk=function(a,s){var r=ck(a,s);return r.flags|=4,P2(a,s,r,r),r},WW=function(a,s,r){return s.styles.isPositionedWithZIndex()||s.styles.opacity<1||s.styles.isTransformed()||q_(a)&&r.styles.isTransparent()},GW=function(a){return a.isPositioned()||a.isFloating()},dk=function(a){return a.nodeType===Node.TEXT_NODE},Om=function(a){return a.nodeType===Node.ELEMENT_NODE},Qw=function(a){return Om(a)&&typeof a.style<"u"&&!R2(a)},R2=function(a){return typeof a.className=="object"},$W=function(a){return a.tagName==="LI"},KW=function(a){return a.tagName==="OL"},YW=function(a){return a.tagName==="INPUT"},XW=function(a){return a.tagName==="HTML"},hk=function(a){return a.tagName==="svg"},q_=function(a){return a.tagName==="BODY"},Ak=function(a){return a.tagName==="CANVAS"},E3=function(a){return a.tagName==="VIDEO"},zw=function(a){return a.tagName==="IMG"},pk=function(a){return a.tagName==="IFRAME"},I3=function(a){return a.tagName==="STYLE"},ZW=function(a){return a.tagName==="SCRIPT"},sy=function(a){return a.tagName==="TEXTAREA"},oy=function(a){return a.tagName==="SELECT"},mk=function(a){return a.tagName==="SLOT"},B3=function(a){return a.tagName.indexOf("-")>0},JW=(function(){function a(){this.counters={}}return a.prototype.getCounterValue=function(s){var r=this.counters[s];return r&&r.length?r[r.length-1]:1},a.prototype.getCounterValues=function(s){var r=this.counters[s];return r||[]},a.prototype.pop=function(s){var r=this;s.forEach(function(i){return r.counters[i].pop()})},a.prototype.parse=function(s){var r=this,i=s.counterIncrement,n=s.counterReset,t=!0;i!==null&&i.forEach(function(u){var f=r.counters[u.counter];f&&u.increment!==0&&(t=!1,f.length||f.push(1),f[Math.max(0,f.length-1)]+=u.increment)});var c=[];return t&&n.forEach(function(u){var f=r.counters[u.counter];c.push(u.counter),f||(f=r.counters[u.counter]=[]),f.push(u.reset)}),c},a})(),F3={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},M3={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},qW={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},eG={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},bm=function(a,s,r,i,n,t){return a<s||a>r?ev(a,n,t.length>0):i.integers.reduce(function(c,u,f){for(;a>=u;)a-=u,c+=i.values[f];return c},"")+t},gk=function(a,s,r,i){var n="";do r||a--,n=i(a)+n,a/=s;while(a*s>=s);return n},Ns=function(a,s,r,i,n){var t=r-s+1;return(a<0?"-":"")+(gk(Math.abs(a),t,i,function(c){return Qs(Math.floor(c%t)+s)})+n)},m0=function(a,s,r){r===void 0&&(r=". ");var i=s.length;return gk(Math.abs(a),i,!1,function(n){return s[Math.floor(n%i)]})+r},Im=1,jh=2,Hh=4,y1=8,Sd=function(a,s,r,i,n,t){if(a<-9999||a>9999)return ev(a,4,n.length>0);var c=Math.abs(a),u=n;if(c===0)return s[0]+u;for(var f=0;c>0&&f<=4;f++){var o=c%10;o===0&&fo(t,Im)&&u!==""?u=s[o]+u:o>1||o===1&&f===0||o===1&&f===1&&fo(t,jh)||o===1&&f===1&&fo(t,Hh)&&a>100||o===1&&f>1&&fo(t,y1)?u=s[o]+(f>0?r[f-1]:"")+u:o===1&&f>0&&(u=r[f-1]+u),c=Math.floor(c/10)}return(a<0?i:"")+u},D3="十百千萬",O3="拾佰仟萬",L3="マイナス",Zb="마이너스",ev=function(a,s,r){var i=r?". ":"",n=r?"、":"",t=r?", ":"",c=r?" ":"";switch(s){case 0:return"•"+c;case 1:return"◦"+c;case 2:return"◾"+c;case 5:var u=Ns(a,48,57,!0,i);return u.length<4?"0"+u:u;case 4:return m0(a,"〇一二三四五六七八九",n);case 6:return bm(a,1,3999,F3,3,i).toLowerCase();case 7:return bm(a,1,3999,F3,3,i);case 8:return Ns(a,945,969,!1,i);case 9:return Ns(a,97,122,!1,i);case 10:return Ns(a,65,90,!1,i);case 11:return Ns(a,1632,1641,!0,i);case 12:case 49:return bm(a,1,9999,M3,3,i);case 35:return bm(a,1,9999,M3,3,i).toLowerCase();case 13:return Ns(a,2534,2543,!0,i);case 14:case 30:return Ns(a,6112,6121,!0,i);case 15:return m0(a,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return m0(a,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return Sd(a,"零一二三四五六七八九",D3,"負",n,jh|Hh|y1);case 47:return Sd(a,"零壹貳參肆伍陸柒捌玖",O3,"負",n,Im|jh|Hh|y1);case 42:return Sd(a,"零一二三四五六七八九",D3,"负",n,jh|Hh|y1);case 41:return Sd(a,"零壹贰叁肆伍陆柒捌玖",O3,"负",n,Im|jh|Hh|y1);case 26:return Sd(a,"〇一二三四五六七八九","十百千万",L3,n,0);case 25:return Sd(a,"零壱弐参四伍六七八九","拾百千万",L3,n,Im|jh|Hh);case 31:return Sd(a,"영일이삼사오육칠팔구","십백천만",Zb,t,Im|jh|Hh);case 33:return Sd(a,"零一二三四五六七八九","十百千萬",Zb,t,0);case 32:return Sd(a,"零壹貳參四五六七八九","拾百千",Zb,t,Im|jh|Hh);case 18:return Ns(a,2406,2415,!0,i);case 20:return bm(a,1,19999,eG,3,i);case 21:return Ns(a,2790,2799,!0,i);case 22:return Ns(a,2662,2671,!0,i);case 22:return bm(a,1,10999,qW,3,i);case 23:return m0(a,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return m0(a,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ns(a,3302,3311,!0,i);case 28:return m0(a,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return m0(a,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return Ns(a,3792,3801,!0,i);case 37:return Ns(a,6160,6169,!0,i);case 38:return Ns(a,4160,4169,!0,i);case 39:return Ns(a,2918,2927,!0,i);case 40:return Ns(a,1776,1785,!0,i);case 43:return Ns(a,3046,3055,!0,i);case 44:return Ns(a,3174,3183,!0,i);case 45:return Ns(a,3664,3673,!0,i);case 46:return Ns(a,3872,3881,!0,i);case 3:default:return Ns(a,48,57,!0,i)}},vk="data-html2canvas-ignore",P3=(function(){function a(s,r,i){if(this.context=s,this.options=i,this.scrolledElements=[],this.referenceElement=r,this.counters=new JW,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return a.prototype.toIFrame=function(s,r){var i=this,n=tG(s,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var t=s.defaultView.pageXOffset,c=s.defaultView.pageYOffset,u=n.contentWindow,f=u.document,o=aG(n).then(function(){return wl(i,void 0,void 0,function(){var l,g;return Jo(this,function(m){switch(m.label){case 0:return this.scrolledElements.forEach(lG),u&&(u.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.scrollY!==r.top||u.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(u.scrollX-r.left,u.scrollY-r.top,0,0))),l=this.options.onclone,g=this.clonedReferenceElement,typeof g>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:m.sent(),m.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,nG(f)]:[3,4];case 3:m.sent(),m.label=4;case 4:return typeof l=="function"?[2,Promise.resolve().then(function(){return l(f,g)}).then(function(){return n})]:[2,n]}})})});return f.open(),f.write(sG(document.doctype)+"<html></html>"),oG(this.referenceElement.ownerDocument,t,c),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),o},a.prototype.createElementClone=function(s){if(Nw(s,2))debugger;if(Ak(s))return this.createCanvasClone(s);if(E3(s))return this.createVideoClone(s);if(I3(s))return this.createStyleClone(s);var r=s.cloneNode(!1);return zw(r)&&(zw(s)&&s.currentSrc&&s.currentSrc!==s.src&&(r.src=s.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),B3(r)?this.createCustomElementClone(r):r},a.prototype.createCustomElementClone=function(s){var r=document.createElement("html2canvascustomelement");return Jb(s.style,r),r},a.prototype.createStyleClone=function(s){try{var r=s.sheet;if(r&&r.cssRules){var i=[].slice.call(r.cssRules,0).reduce(function(t,c){return c&&typeof c.cssText=="string"?t+c.cssText:t},""),n=s.cloneNode(!1);return n.textContent=i,n}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),t.name!=="SecurityError")throw t}return s.cloneNode(!1)},a.prototype.createCanvasClone=function(s){var r;if(this.options.inlineImages&&s.ownerDocument){var i=s.ownerDocument.createElement("img");try{return i.src=s.toDataURL(),i}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",s)}}var n=s.cloneNode(!1);try{n.width=s.width,n.height=s.height;var t=s.getContext("2d"),c=n.getContext("2d");if(c)if(!this.options.allowTaint&&t)c.putImageData(t.getImageData(0,0,s.width,s.height),0,0);else{var u=(r=s.getContext("webgl2"))!==null&&r!==void 0?r:s.getContext("webgl");if(u){var f=u.getContextAttributes();(f==null?void 0:f.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",s)}c.drawImage(s,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",s)}return n},a.prototype.createVideoClone=function(s){var r=s.ownerDocument.createElement("canvas");r.width=s.offsetWidth,r.height=s.offsetHeight;var i=r.getContext("2d");try{return i&&(i.drawImage(s,0,0,r.width,r.height),this.options.allowTaint||i.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",s)}var n=s.ownerDocument.createElement("canvas");return n.width=s.offsetWidth,n.height=s.offsetHeight,n},a.prototype.appendChildNode=function(s,r,i){(!Om(r)||!ZW(r)&&!r.hasAttribute(vk)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!Om(r)||!I3(r))&&s.appendChild(this.cloneNode(r,i))},a.prototype.cloneChildNodes=function(s,r,i){for(var n=this,t=s.shadowRoot?s.shadowRoot.firstChild:s.firstChild;t;t=t.nextSibling)if(Om(t)&&mk(t)&&typeof t.assignedNodes=="function"){var c=t.assignedNodes();c.length&&c.forEach(function(u){return n.appendChildNode(r,u,i)})}else this.appendChildNode(r,t,i)},a.prototype.cloneNode=function(s,r){if(dk(s))return document.createTextNode(s.data);if(!s.ownerDocument)return s.cloneNode(!1);var i=s.ownerDocument.defaultView;if(i&&Om(s)&&(Qw(s)||R2(s))){var n=this.createElementClone(s);n.style.transitionProperty="none";var t=i.getComputedStyle(s),c=i.getComputedStyle(s,":before"),u=i.getComputedStyle(s,":after");this.referenceElement===s&&Qw(n)&&(this.clonedReferenceElement=n),q_(n)&&fG(n);var f=this.counters.parse(new h3(this.context,t)),o=this.resolvePseudoContent(s,n,c,L1.BEFORE);B3(s)&&(r=!0),E3(s)||this.cloneChildNodes(s,n,r),o&&n.insertBefore(o,n.firstChild);var l=this.resolvePseudoContent(s,n,u,L1.AFTER);return l&&n.appendChild(l),this.counters.pop(f),(t&&(this.options.copyStyles||R2(s))&&!pk(s)||r)&&Jb(t,n),(s.scrollTop!==0||s.scrollLeft!==0)&&this.scrolledElements.push([n,s.scrollLeft,s.scrollTop]),(sy(s)||oy(s))&&(sy(n)||oy(n))&&(n.value=s.value),n}return s.cloneNode(!1)},a.prototype.resolvePseudoContent=function(s,r,i,n){var t=this;if(i){var c=i.content,u=r.ownerDocument;if(!(!u||!c||c==="none"||c==="-moz-alt-content"||i.display==="none")){this.counters.parse(new h3(this.context,i));var f=new $V(this.context,i),o=u.createElement("html2canvaspseudoelement");Jb(i,o),f.content.forEach(function(g){if(g.type===0)o.appendChild(u.createTextNode(g.value));else if(g.type===22){var m=u.createElement("img");m.src=g.value,m.style.opacity="1",o.appendChild(m)}else if(g.type===18){if(g.name==="attr"){var p=g.values.filter(Fi);p.length&&o.appendChild(u.createTextNode(s.getAttribute(p[0].value)||""))}else if(g.name==="counter"){var _=g.values.filter(Ym),y=_[0],h=_[1];if(y&&Fi(y)){var d=t.counters.getCounterValue(y.value),A=h&&Fi(h)?Uw.parse(t.context,h.value):3;o.appendChild(u.createTextNode(ev(d,A,!1)))}}else if(g.name==="counters"){var v=g.values.filter(Ym),y=v[0],w=v[1],h=v[2];if(y&&Fi(y)){var x=t.counters.getCounterValues(y.value),C=h&&Fi(h)?Uw.parse(t.context,h.value):3,k=w&&w.type===0?w.value:"",T=x.map(function(P){return ev(P,C,!1)}).join(k);o.appendChild(u.createTextNode(T))}}}else if(g.type===20)switch(g.value){case"open-quote":o.appendChild(u.createTextNode(d3(f.quotes,t.quoteDepth++,!0)));break;case"close-quote":o.appendChild(u.createTextNode(d3(f.quotes,--t.quoteDepth,!1)));break;default:o.appendChild(u.createTextNode(g.value))}}),o.className=Vw+" "+Ww;var l=n===L1.BEFORE?" "+Vw:" "+Ww;return R2(r)?r.className.baseValue+=l:r.className+=l,o}}},a.destroy=function(s){return s.parentNode?(s.parentNode.removeChild(s),!0):!1},a})(),L1;(function(a){a[a.BEFORE=0]="BEFORE",a[a.AFTER=1]="AFTER"})(L1||(L1={}));var tG=function(a,s){var r=a.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=s.width.toString(),r.height=s.height.toString(),r.scrolling="no",r.setAttribute(vk,"true"),a.body.appendChild(r),r},rG=function(a){return new Promise(function(s){if(a.complete){s();return}if(!a.src){s();return}a.onload=s,a.onerror=s})},nG=function(a){return Promise.all([].slice.call(a.images,0).map(rG))},aG=function(a){return new Promise(function(s,r){var i=a.contentWindow;if(!i)return r("No window assigned for iframe");var n=i.document;i.onload=a.onload=function(){i.onload=a.onload=null;var t=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(t),s(a))},50)}})},iG=["all","d","content"],Jb=function(a,s){for(var r=a.length-1;r>=0;r--){var i=a.item(r);iG.indexOf(i)===-1&&s.style.setProperty(i,a.getPropertyValue(i))}return s},sG=function(a){var s="";return a&&(s+="<!DOCTYPE ",a.name&&(s+=a.name),a.internalSubset&&(s+=a.internalSubset),a.publicId&&(s+='"'+a.publicId+'"'),a.systemId&&(s+='"'+a.systemId+'"'),s+=">"),s},oG=function(a,s,r){a&&a.defaultView&&(s!==a.defaultView.pageXOffset||r!==a.defaultView.pageYOffset)&&a.defaultView.scrollTo(s,r)},lG=function(a){var s=a[0],r=a[1],i=a[2];s.scrollLeft=r,s.scrollTop=i},uG=":before",cG=":after",Vw="___html2canvas___pseudoelement_before",Ww="___html2canvas___pseudoelement_after",R3=`{
    content: "" !important;
    display: none !important;
}`,fG=function(a){dG(a,"."+Vw+uG+R3+`
         .`+Ww+cG+R3)},dG=function(a,s){var r=a.ownerDocument;if(r){var i=r.createElement("style");i.textContent=s,a.appendChild(i)}},yk=(function(){function a(){}return a.getOrigin=function(s){var r=a._link;return r?(r.href=s,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},a.isSameOrigin=function(s){return a.getOrigin(s)===a._origin},a.setContext=function(s){a._link=s.document.createElement("a"),a._origin=a.getOrigin(s.location.href)},a._origin="about:blank",a})(),hG=(function(){function a(s,r){this.context=s,this._options=r,this._cache={}}return a.prototype.addImage=function(s){var r=Promise.resolve();return this.has(s)||(ew(s)||gG(s))&&(this._cache[s]=this.loadImage(s)).catch(function(){}),r},a.prototype.match=function(s){return this._cache[s]},a.prototype.loadImage=function(s){return wl(this,void 0,void 0,function(){var r,i,n,t,c=this;return Jo(this,function(u){switch(u.label){case 0:return r=yk.isSameOrigin(s),i=!qb(s)&&this._options.useCORS===!0&&Uo.SUPPORT_CORS_IMAGES&&!r,n=!qb(s)&&!r&&!ew(s)&&typeof this._options.proxy=="string"&&Uo.SUPPORT_CORS_XHR&&!i,!r&&this._options.allowTaint===!1&&!qb(s)&&!ew(s)&&!n&&!i?[2]:(t=s,n?[4,this.proxy(t)]:[3,2]);case 1:t=u.sent(),u.label=2;case 2:return this.context.logger.debug("Added image "+s.substring(0,256)),[4,new Promise(function(f,o){var l=new Image;l.onload=function(){return f(l)},l.onerror=o,(vG(t)||i)&&(l.crossOrigin="anonymous"),l.src=t,l.complete===!0&&setTimeout(function(){return f(l)},500),c._options.imageTimeout>0&&setTimeout(function(){return o("Timed out ("+c._options.imageTimeout+"ms) loading image")},c._options.imageTimeout)})];case 3:return[2,u.sent()]}})})},a.prototype.has=function(s){return typeof this._cache[s]<"u"},a.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},a.prototype.proxy=function(s){var r=this,i=this._options.proxy;if(!i)throw new Error("No proxy defined");var n=s.substring(0,256);return new Promise(function(t,c){var u=Uo.SUPPORT_RESPONSE_TYPE?"blob":"text",f=new XMLHttpRequest;f.onload=function(){if(f.status===200)if(u==="text")t(f.response);else{var g=new FileReader;g.addEventListener("load",function(){return t(g.result)},!1),g.addEventListener("error",function(m){return c(m)},!1),g.readAsDataURL(f.response)}else c("Failed to proxy resource "+n+" with status code "+f.status)},f.onerror=c;var o=i.indexOf("?")>-1?"&":"?";if(f.open("GET",""+i+o+"url="+encodeURIComponent(s)+"&responseType="+u),u!=="text"&&f instanceof XMLHttpRequest&&(f.responseType=u),r._options.imageTimeout){var l=r._options.imageTimeout;f.timeout=l,f.ontimeout=function(){return c("Timed out ("+l+"ms) proxying "+n)}}f.send()})},a})(),AG=/^data:image\/svg\+xml/i,pG=/^data:image\/.*;base64,/i,mG=/^data:image\/.*/i,gG=function(a){return Uo.SUPPORT_SVG_DRAWING||!yG(a)},qb=function(a){return mG.test(a)},vG=function(a){return pG.test(a)},ew=function(a){return a.substr(0,4)==="blob"},yG=function(a){return a.substr(-3).toLowerCase()==="svg"||AG.test(a)},In=(function(){function a(s,r){this.type=0,this.x=s,this.y=r}return a.prototype.add=function(s,r){return new a(this.x+s,this.y+r)},a})(),wm=function(a,s,r){return new In(a.x+(s.x-a.x)*r,a.y+(s.y-a.y)*r)},x2=(function(){function a(s,r,i,n){this.type=1,this.start=s,this.startControl=r,this.endControl=i,this.end=n}return a.prototype.subdivide=function(s,r){var i=wm(this.start,this.startControl,s),n=wm(this.startControl,this.endControl,s),t=wm(this.endControl,this.end,s),c=wm(i,n,s),u=wm(n,t,s),f=wm(c,u,s);return r?new a(this.start,i,c,f):new a(f,u,t,this.end)},a.prototype.add=function(s,r){return new a(this.start.add(s,r),this.startControl.add(s,r),this.endControl.add(s,r),this.end.add(s,r))},a.prototype.reverse=function(){return new a(this.end,this.endControl,this.startControl,this.start)},a})(),Ku=function(a){return a.type===1},bG=(function(){function a(s){var r=s.styles,i=s.bounds,n=g1(r.borderTopLeftRadius,i.width,i.height),t=n[0],c=n[1],u=g1(r.borderTopRightRadius,i.width,i.height),f=u[0],o=u[1],l=g1(r.borderBottomRightRadius,i.width,i.height),g=l[0],m=l[1],p=g1(r.borderBottomLeftRadius,i.width,i.height),_=p[0],y=p[1],h=[];h.push((t+f)/i.width),h.push((_+g)/i.width),h.push((c+y)/i.height),h.push((o+m)/i.height);var d=Math.max.apply(Math,h);d>1&&(t/=d,c/=d,f/=d,o/=d,g/=d,m/=d,_/=d,y/=d);var A=i.width-f,v=i.height-m,w=i.width-g,x=i.height-y,C=r.borderTopWidth,k=r.borderRightWidth,T=r.borderBottomWidth,S=r.borderLeftWidth,M=Wi(r.paddingTop,s.bounds.width),P=Wi(r.paddingRight,s.bounds.width),N=Wi(r.paddingBottom,s.bounds.width),B=Wi(r.paddingLeft,s.bounds.width);this.topLeftBorderDoubleOuterBox=t>0||c>0?os(i.left+S/3,i.top+C/3,t-S/3,c-C/3,Ci.TOP_LEFT):new In(i.left+S/3,i.top+C/3),this.topRightBorderDoubleOuterBox=t>0||c>0?os(i.left+A,i.top+C/3,f-k/3,o-C/3,Ci.TOP_RIGHT):new In(i.left+i.width-k/3,i.top+C/3),this.bottomRightBorderDoubleOuterBox=g>0||m>0?os(i.left+w,i.top+v,g-k/3,m-T/3,Ci.BOTTOM_RIGHT):new In(i.left+i.width-k/3,i.top+i.height-T/3),this.bottomLeftBorderDoubleOuterBox=_>0||y>0?os(i.left+S/3,i.top+x,_-S/3,y-T/3,Ci.BOTTOM_LEFT):new In(i.left+S/3,i.top+i.height-T/3),this.topLeftBorderDoubleInnerBox=t>0||c>0?os(i.left+S*2/3,i.top+C*2/3,t-S*2/3,c-C*2/3,Ci.TOP_LEFT):new In(i.left+S*2/3,i.top+C*2/3),this.topRightBorderDoubleInnerBox=t>0||c>0?os(i.left+A,i.top+C*2/3,f-k*2/3,o-C*2/3,Ci.TOP_RIGHT):new In(i.left+i.width-k*2/3,i.top+C*2/3),this.bottomRightBorderDoubleInnerBox=g>0||m>0?os(i.left+w,i.top+v,g-k*2/3,m-T*2/3,Ci.BOTTOM_RIGHT):new In(i.left+i.width-k*2/3,i.top+i.height-T*2/3),this.bottomLeftBorderDoubleInnerBox=_>0||y>0?os(i.left+S*2/3,i.top+x,_-S*2/3,y-T*2/3,Ci.BOTTOM_LEFT):new In(i.left+S*2/3,i.top+i.height-T*2/3),this.topLeftBorderStroke=t>0||c>0?os(i.left+S/2,i.top+C/2,t-S/2,c-C/2,Ci.TOP_LEFT):new In(i.left+S/2,i.top+C/2),this.topRightBorderStroke=t>0||c>0?os(i.left+A,i.top+C/2,f-k/2,o-C/2,Ci.TOP_RIGHT):new In(i.left+i.width-k/2,i.top+C/2),this.bottomRightBorderStroke=g>0||m>0?os(i.left+w,i.top+v,g-k/2,m-T/2,Ci.BOTTOM_RIGHT):new In(i.left+i.width-k/2,i.top+i.height-T/2),this.bottomLeftBorderStroke=_>0||y>0?os(i.left+S/2,i.top+x,_-S/2,y-T/2,Ci.BOTTOM_LEFT):new In(i.left+S/2,i.top+i.height-T/2),this.topLeftBorderBox=t>0||c>0?os(i.left,i.top,t,c,Ci.TOP_LEFT):new In(i.left,i.top),this.topRightBorderBox=f>0||o>0?os(i.left+A,i.top,f,o,Ci.TOP_RIGHT):new In(i.left+i.width,i.top),this.bottomRightBorderBox=g>0||m>0?os(i.left+w,i.top+v,g,m,Ci.BOTTOM_RIGHT):new In(i.left+i.width,i.top+i.height),this.bottomLeftBorderBox=_>0||y>0?os(i.left,i.top+x,_,y,Ci.BOTTOM_LEFT):new In(i.left,i.top+i.height),this.topLeftPaddingBox=t>0||c>0?os(i.left+S,i.top+C,Math.max(0,t-S),Math.max(0,c-C),Ci.TOP_LEFT):new In(i.left+S,i.top+C),this.topRightPaddingBox=f>0||o>0?os(i.left+Math.min(A,i.width-k),i.top+C,A>i.width+k?0:Math.max(0,f-k),Math.max(0,o-C),Ci.TOP_RIGHT):new In(i.left+i.width-k,i.top+C),this.bottomRightPaddingBox=g>0||m>0?os(i.left+Math.min(w,i.width-S),i.top+Math.min(v,i.height-T),Math.max(0,g-k),Math.max(0,m-T),Ci.BOTTOM_RIGHT):new In(i.left+i.width-k,i.top+i.height-T),this.bottomLeftPaddingBox=_>0||y>0?os(i.left+S,i.top+Math.min(x,i.height-T),Math.max(0,_-S),Math.max(0,y-T),Ci.BOTTOM_LEFT):new In(i.left+S,i.top+i.height-T),this.topLeftContentBox=t>0||c>0?os(i.left+S+B,i.top+C+M,Math.max(0,t-(S+B)),Math.max(0,c-(C+M)),Ci.TOP_LEFT):new In(i.left+S+B,i.top+C+M),this.topRightContentBox=f>0||o>0?os(i.left+Math.min(A,i.width+S+B),i.top+C+M,A>i.width+S+B?0:f-S+B,o-(C+M),Ci.TOP_RIGHT):new In(i.left+i.width-(k+P),i.top+C+M),this.bottomRightContentBox=g>0||m>0?os(i.left+Math.min(w,i.width-(S+B)),i.top+Math.min(v,i.height+C+M),Math.max(0,g-(k+P)),m-(T+N),Ci.BOTTOM_RIGHT):new In(i.left+i.width-(k+P),i.top+i.height-(T+N)),this.bottomLeftContentBox=_>0||y>0?os(i.left+S+B,i.top+x,Math.max(0,_-(S+B)),y-(T+N),Ci.BOTTOM_LEFT):new In(i.left+S+B,i.top+i.height-(T+N))}return a})(),Ci;(function(a){a[a.TOP_LEFT=0]="TOP_LEFT",a[a.TOP_RIGHT=1]="TOP_RIGHT",a[a.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",a[a.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ci||(Ci={}));var os=function(a,s,r,i,n){var t=4*((Math.sqrt(2)-1)/3),c=r*t,u=i*t,f=a+r,o=s+i;switch(n){case Ci.TOP_LEFT:return new x2(new In(a,o),new In(a,o-u),new In(f-c,s),new In(f,s));case Ci.TOP_RIGHT:return new x2(new In(a,s),new In(a+c,s),new In(f,o-u),new In(f,o));case Ci.BOTTOM_RIGHT:return new x2(new In(f,s),new In(f,s+u),new In(a+c,o),new In(a,o));case Ci.BOTTOM_LEFT:default:return new x2(new In(f,o),new In(f-c,o),new In(a,s+u),new In(a,s))}},ly=function(a){return[a.topLeftBorderBox,a.topRightBorderBox,a.bottomRightBorderBox,a.bottomLeftBorderBox]},wG=function(a){return[a.topLeftContentBox,a.topRightContentBox,a.bottomRightContentBox,a.bottomLeftContentBox]},uy=function(a){return[a.topLeftPaddingBox,a.topRightPaddingBox,a.bottomRightPaddingBox,a.bottomLeftPaddingBox]},_G=(function(){function a(s,r,i){this.offsetX=s,this.offsetY=r,this.matrix=i,this.type=0,this.target=6}return a})(),C2=(function(){function a(s,r){this.path=s,this.target=r,this.type=1}return a})(),xG=(function(){function a(s){this.opacity=s,this.type=2,this.target=6}return a})(),CG=function(a){return a.type===0},bk=function(a){return a.type===1},SG=function(a){return a.type===2},U3=function(a,s){return a.length===s.length?a.some(function(r,i){return r===s[i]}):!1},kG=function(a,s,r,i,n){return a.map(function(t,c){switch(c){case 0:return t.add(s,r);case 1:return t.add(s+i,r);case 2:return t.add(s+i,r+n);case 3:return t.add(s,r+n)}return t})},wk=(function(){function a(s){this.element=s,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return a})(),_k=(function(){function a(s,r){if(this.container=s,this.parent=r,this.effects=[],this.curves=new bG(this.container),this.container.styles.opacity<1&&this.effects.push(new xG(this.container.styles.opacity)),this.container.styles.transform!==null){var i=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,t=this.container.styles.transform;this.effects.push(new _G(i,n,t))}if(this.container.styles.overflowX!==0){var c=ly(this.curves),u=uy(this.curves);U3(c,u)?this.effects.push(new C2(c,6)):(this.effects.push(new C2(c,2)),this.effects.push(new C2(u,4)))}}return a.prototype.getEffects=function(s){for(var r=[2,3].indexOf(this.container.styles.position)===-1,i=this.parent,n=this.effects.slice(0);i;){var t=i.effects.filter(function(f){return!bk(f)});if(r||i.container.styles.position!==0||!i.parent){if(n.unshift.apply(n,t),r=[2,3].indexOf(i.container.styles.position)===-1,i.container.styles.overflowX!==0){var c=ly(i.curves),u=uy(i.curves);U3(c,u)||n.unshift(new C2(u,6))}}else n.unshift.apply(n,t);i=i.parent}return n.filter(function(f){return fo(f.target,s)})},a})(),Gw=function(a,s,r,i){a.container.elements.forEach(function(n){var t=fo(n.flags,4),c=fo(n.flags,2),u=new _k(n,a);fo(n.styles.display,2048)&&i.push(u);var f=fo(n.flags,8)?[]:i;if(t||c){var o=t||n.styles.isPositioned()?r:s,l=new wk(u);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var g=n.styles.zIndex.order;if(g<0){var m=0;o.negativeZIndex.some(function(_,y){return g>_.element.container.styles.zIndex.order?(m=y,!1):m>0}),o.negativeZIndex.splice(m,0,l)}else if(g>0){var p=0;o.positiveZIndex.some(function(_,y){return g>=_.element.container.styles.zIndex.order?(p=y+1,!1):p>0}),o.positiveZIndex.splice(p,0,l)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else n.styles.isFloating()?o.nonPositionedFloats.push(l):o.nonPositionedInlineLevel.push(l);Gw(u,l,t?l:r,f)}else n.styles.isInlineLevel()?s.inlineLevel.push(u):s.nonInlineLevel.push(u),Gw(u,s,r,f);fo(n.flags,8)&&xk(n,f)})},xk=function(a,s){for(var r=a instanceof Hw?a.start:1,i=a instanceof Hw?a.reversed:!1,n=0;n<s.length;n++){var t=s[n];t.container instanceof sk&&typeof t.container.value=="number"&&t.container.value!==0&&(r=t.container.value),t.listValue=ev(r,t.container.styles.listStyleType,!0),r+=i?-1:1}},TG=function(a){var s=new _k(a,null),r=new wk(s),i=[];return Gw(s,r,r,i),xk(s.container,i),r},N3=function(a,s){switch(s){case 0:return qu(a.topLeftBorderBox,a.topLeftPaddingBox,a.topRightBorderBox,a.topRightPaddingBox);case 1:return qu(a.topRightBorderBox,a.topRightPaddingBox,a.bottomRightBorderBox,a.bottomRightPaddingBox);case 2:return qu(a.bottomRightBorderBox,a.bottomRightPaddingBox,a.bottomLeftBorderBox,a.bottomLeftPaddingBox);case 3:default:return qu(a.bottomLeftBorderBox,a.bottomLeftPaddingBox,a.topLeftBorderBox,a.topLeftPaddingBox)}},EG=function(a,s){switch(s){case 0:return qu(a.topLeftBorderBox,a.topLeftBorderDoubleOuterBox,a.topRightBorderBox,a.topRightBorderDoubleOuterBox);case 1:return qu(a.topRightBorderBox,a.topRightBorderDoubleOuterBox,a.bottomRightBorderBox,a.bottomRightBorderDoubleOuterBox);case 2:return qu(a.bottomRightBorderBox,a.bottomRightBorderDoubleOuterBox,a.bottomLeftBorderBox,a.bottomLeftBorderDoubleOuterBox);case 3:default:return qu(a.bottomLeftBorderBox,a.bottomLeftBorderDoubleOuterBox,a.topLeftBorderBox,a.topLeftBorderDoubleOuterBox)}},IG=function(a,s){switch(s){case 0:return qu(a.topLeftBorderDoubleInnerBox,a.topLeftPaddingBox,a.topRightBorderDoubleInnerBox,a.topRightPaddingBox);case 1:return qu(a.topRightBorderDoubleInnerBox,a.topRightPaddingBox,a.bottomRightBorderDoubleInnerBox,a.bottomRightPaddingBox);case 2:return qu(a.bottomRightBorderDoubleInnerBox,a.bottomRightPaddingBox,a.bottomLeftBorderDoubleInnerBox,a.bottomLeftPaddingBox);case 3:default:return qu(a.bottomLeftBorderDoubleInnerBox,a.bottomLeftPaddingBox,a.topLeftBorderDoubleInnerBox,a.topLeftPaddingBox)}},BG=function(a,s){switch(s){case 0:return S2(a.topLeftBorderStroke,a.topRightBorderStroke);case 1:return S2(a.topRightBorderStroke,a.bottomRightBorderStroke);case 2:return S2(a.bottomRightBorderStroke,a.bottomLeftBorderStroke);case 3:default:return S2(a.bottomLeftBorderStroke,a.topLeftBorderStroke)}},S2=function(a,s){var r=[];return Ku(a)?r.push(a.subdivide(.5,!1)):r.push(a),Ku(s)?r.push(s.subdivide(.5,!0)):r.push(s),r},qu=function(a,s,r,i){var n=[];return Ku(a)?n.push(a.subdivide(.5,!1)):n.push(a),Ku(r)?n.push(r.subdivide(.5,!0)):n.push(r),Ku(i)?n.push(i.subdivide(.5,!0).reverse()):n.push(i),Ku(s)?n.push(s.subdivide(.5,!1).reverse()):n.push(s),n},Ck=function(a){var s=a.bounds,r=a.styles;return s.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},cy=function(a){var s=a.styles,r=a.bounds,i=Wi(s.paddingLeft,r.width),n=Wi(s.paddingRight,r.width),t=Wi(s.paddingTop,r.width),c=Wi(s.paddingBottom,r.width);return r.add(i+s.borderLeftWidth,t+s.borderTopWidth,-(s.borderRightWidth+s.borderLeftWidth+i+n),-(s.borderTopWidth+s.borderBottomWidth+t+c))},FG=function(a,s){return a===0?s.bounds:a===2?cy(s):Ck(s)},MG=function(a,s){return a===0?s.bounds:a===2?cy(s):Ck(s)},tw=function(a,s,r){var i=FG(Bm(a.styles.backgroundOrigin,s),a),n=MG(Bm(a.styles.backgroundClip,s),a),t=DG(Bm(a.styles.backgroundSize,s),r,i),c=t[0],u=t[1],f=g1(Bm(a.styles.backgroundPosition,s),i.width-c,i.height-u),o=OG(Bm(a.styles.backgroundRepeat,s),f,t,i,n),l=Math.round(i.left+f[0]),g=Math.round(i.top+f[1]);return[o,l,g,c,u]},_m=function(a){return Fi(a)&&a.value===Qm.AUTO},k2=function(a){return typeof a=="number"},DG=function(a,s,r){var i=s[0],n=s[1],t=s[2],c=a[0],u=a[1];if(!c)return[0,0];if(no(c)&&u&&no(u))return[Wi(c,r.width),Wi(u,r.height)];var f=k2(t);if(Fi(c)&&(c.value===Qm.CONTAIN||c.value===Qm.COVER)){if(k2(t)){var o=r.width/r.height;return o<t!=(c.value===Qm.COVER)?[r.width,r.width/t]:[r.height*t,r.height]}return[r.width,r.height]}var l=k2(i),g=k2(n),m=l||g;if(_m(c)&&(!u||_m(u))){if(l&&g)return[i,n];if(!f&&!m)return[r.width,r.height];if(m&&f){var p=l?i:n*t,_=g?n:i/t;return[p,_]}var y=l?i:r.width,h=g?n:r.height;return[y,h]}if(f){var d=0,A=0;return no(c)?d=Wi(c,r.width):no(u)&&(A=Wi(u,r.height)),_m(c)?d=A*t:(!u||_m(u))&&(A=d/t),[d,A]}var v=null,w=null;if(no(c)?v=Wi(c,r.width):u&&no(u)&&(w=Wi(u,r.height)),v!==null&&(!u||_m(u))&&(w=l&&g?v/i*n:r.height),w!==null&&_m(c)&&(v=l&&g?w/n*i:r.width),v!==null&&w!==null)return[v,w];throw new Error("Unable to calculate background-size for element")},Bm=function(a,s){var r=a[s];return typeof r>"u"?a[0]:r},OG=function(a,s,r,i,n){var t=s[0],c=s[1],u=r[0],f=r[1];switch(a){case 2:return[new In(Math.round(i.left),Math.round(i.top+c)),new In(Math.round(i.left+i.width),Math.round(i.top+c)),new In(Math.round(i.left+i.width),Math.round(f+i.top+c)),new In(Math.round(i.left),Math.round(f+i.top+c))];case 3:return[new In(Math.round(i.left+t),Math.round(i.top)),new In(Math.round(i.left+t+u),Math.round(i.top)),new In(Math.round(i.left+t+u),Math.round(i.height+i.top)),new In(Math.round(i.left+t),Math.round(i.height+i.top))];case 1:return[new In(Math.round(i.left+t),Math.round(i.top+c)),new In(Math.round(i.left+t+u),Math.round(i.top+c)),new In(Math.round(i.left+t+u),Math.round(i.top+c+f)),new In(Math.round(i.left+t),Math.round(i.top+c+f))];default:return[new In(Math.round(n.left),Math.round(n.top)),new In(Math.round(n.left+n.width),Math.round(n.top)),new In(Math.round(n.left+n.width),Math.round(n.height+n.top)),new In(Math.round(n.left),Math.round(n.height+n.top))]}},LG="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",j3="Hidden Text",PG=(function(){function a(s){this._data={},this._document=s}return a.prototype.parseMetrics=function(s,r){var i=this._document.createElement("div"),n=this._document.createElement("img"),t=this._document.createElement("span"),c=this._document.body;i.style.visibility="hidden",i.style.fontFamily=s,i.style.fontSize=r,i.style.margin="0",i.style.padding="0",i.style.whiteSpace="nowrap",c.appendChild(i),n.src=LG,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",t.style.fontFamily=s,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.appendChild(this._document.createTextNode(j3)),i.appendChild(t),i.appendChild(n);var u=n.offsetTop-t.offsetTop+2;i.removeChild(t),i.appendChild(this._document.createTextNode(j3)),i.style.lineHeight="normal",n.style.verticalAlign="super";var f=n.offsetTop-i.offsetTop+2;return c.removeChild(i),{baseline:u,middle:f}},a.prototype.getMetrics=function(s,r){var i=s+" "+r;return typeof this._data[i]>"u"&&(this._data[i]=this.parseMetrics(s,r)),this._data[i]},a})(),Sk=(function(){function a(s,r){this.context=s,this.options=r}return a})(),RG=1e4,UG=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n._activeEffects=[],n.canvas=i.canvas?i.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),i.canvas||(n.canvas.width=Math.floor(i.width*i.scale),n.canvas.height=Math.floor(i.height*i.scale),n.canvas.style.width=i.width+"px",n.canvas.style.height=i.height+"px"),n.fontMetrics=new PG(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-i.x,-i.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+i.width+"x"+i.height+") with scale "+i.scale),n}return s.prototype.applyEffects=function(r){for(var i=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return i.applyEffect(n)})},s.prototype.applyEffect=function(r){this.ctx.save(),SG(r)&&(this.ctx.globalAlpha=r.opacity),CG(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),bk(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},s.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},s.prototype.renderStack=function(r){return wl(this,void 0,void 0,function(){var i;return Jo(this,function(n){switch(n.label){case 0:return i=r.element.container.styles,i.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},s.prototype.renderNode=function(r){return wl(this,void 0,void 0,function(){return Jo(this,function(i){switch(i.label){case 0:if(fo(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return i.sent(),[4,this.renderNodeContent(r)];case 2:i.sent(),i.label=3;case 3:return[2]}})})},s.prototype.renderTextWithLetterSpacing=function(r,i,n){var t=this;if(i===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var c=Z_(r.text);c.reduce(function(u,f){return t.ctx.fillText(f,u,r.bounds.top+n),u+t.ctx.measureText(f).width},r.bounds.left)}},s.prototype.createFontStyle=function(r){var i=r.fontVariant.filter(function(c){return c==="normal"||c==="small-caps"}).join(""),n=zG(r.fontFamily).join(", "),t=pv(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,i,r.fontWeight,t,n].join(" "),n,t]},s.prototype.renderTextNode=function(r,i){return wl(this,void 0,void 0,function(){var n,t,c,u,f,o,l,g,m=this;return Jo(this,function(p){return n=this.createFontStyle(i),t=n[0],c=n[1],u=n[2],this.ctx.font=t,this.ctx.direction=i.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",f=this.fontMetrics.getMetrics(c,u),o=f.baseline,l=f.middle,g=i.paintOrder,r.textBounds.forEach(function(_){g.forEach(function(y){switch(y){case 0:m.ctx.fillStyle=xo(i.color),m.renderTextWithLetterSpacing(_,i.letterSpacing,o);var h=i.textShadow;h.length&&_.text.trim().length&&(h.slice(0).reverse().forEach(function(d){m.ctx.shadowColor=xo(d.color),m.ctx.shadowOffsetX=d.offsetX.number*m.options.scale,m.ctx.shadowOffsetY=d.offsetY.number*m.options.scale,m.ctx.shadowBlur=d.blur.number,m.renderTextWithLetterSpacing(_,i.letterSpacing,o)}),m.ctx.shadowColor="",m.ctx.shadowOffsetX=0,m.ctx.shadowOffsetY=0,m.ctx.shadowBlur=0),i.textDecorationLine.length&&(m.ctx.fillStyle=xo(i.textDecorationColor||i.color),i.textDecorationLine.forEach(function(d){switch(d){case 1:m.ctx.fillRect(_.bounds.left,Math.round(_.bounds.top+o),_.bounds.width,1);break;case 2:m.ctx.fillRect(_.bounds.left,Math.round(_.bounds.top),_.bounds.width,1);break;case 3:m.ctx.fillRect(_.bounds.left,Math.ceil(_.bounds.top+l),_.bounds.width,1);break}}));break;case 1:i.webkitTextStrokeWidth&&_.text.trim().length&&(m.ctx.strokeStyle=xo(i.webkitTextStrokeColor),m.ctx.lineWidth=i.webkitTextStrokeWidth,m.ctx.lineJoin=window.chrome?"miter":"round",m.ctx.strokeText(_.text,_.bounds.left,_.bounds.top+o)),m.ctx.strokeStyle="",m.ctx.lineWidth=0,m.ctx.lineJoin="miter";break}})}),[2]})})},s.prototype.renderReplacedElement=function(r,i,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var t=cy(r),c=uy(i);this.path(c),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,t.left,t.top,t.width,t.height),this.ctx.restore()}},s.prototype.renderNodeContent=function(r){return wl(this,void 0,void 0,function(){var i,n,t,c,u,f,A,A,o,l,g,m,w,p,_,x,y,h,d,A,v,w,x;return Jo(this,function(C){switch(C.label){case 0:this.applyEffects(r.getEffects(4)),i=r.container,n=r.curves,t=i.styles,c=0,u=i.textNodes,C.label=1;case 1:return c<u.length?(f=u[c],[4,this.renderTextNode(f,t)]):[3,4];case 2:C.sent(),C.label=3;case 3:return c++,[3,1];case 4:if(!(i instanceof nk))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(i.src)];case 6:return A=C.sent(),this.renderReplacedElement(i,n,A),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+i.src),[3,8];case 8:if(i instanceof ak&&this.renderReplacedElement(i,n,i.canvas),!(i instanceof ik))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(i.svg)];case 10:return A=C.sent(),this.renderReplacedElement(i,n,A),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+i.svg.substring(0,255)),[3,12];case 12:return i instanceof uk&&i.tree?(o=new s(this.context,{scale:this.options.scale,backgroundColor:i.backgroundColor,x:0,y:0,width:i.width,height:i.height}),[4,o.render(i.tree)]):[3,14];case 13:l=C.sent(),i.width&&i.height&&this.ctx.drawImage(l,0,0,i.width,i.height,i.bounds.left,i.bounds.top,i.bounds.width,i.bounds.height),C.label=14;case 14:if(i instanceof J_&&(g=Math.min(i.bounds.width,i.bounds.height),i.type===ay?i.checked&&(this.ctx.save(),this.path([new In(i.bounds.left+g*.39363,i.bounds.top+g*.79),new In(i.bounds.left+g*.16,i.bounds.top+g*.5549),new In(i.bounds.left+g*.27347,i.bounds.top+g*.44071),new In(i.bounds.left+g*.39694,i.bounds.top+g*.5649),new In(i.bounds.left+g*.72983,i.bounds.top+g*.23),new In(i.bounds.left+g*.84,i.bounds.top+g*.34085),new In(i.bounds.left+g*.39363,i.bounds.top+g*.79)]),this.ctx.fillStyle=xo(T3),this.ctx.fill(),this.ctx.restore()):i.type===iy&&i.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(i.bounds.left+g/2,i.bounds.top+g/2,g/4,0,Math.PI*2,!0),this.ctx.fillStyle=xo(T3),this.ctx.fill(),this.ctx.restore())),NG(i)&&i.value.length){switch(m=this.createFontStyle(t),w=m[0],p=m[1],_=this.fontMetrics.getMetrics(w,p).baseline,this.ctx.font=w,this.ctx.fillStyle=xo(t.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=HG(i.styles.textAlign),x=cy(i),y=0,i.styles.textAlign){case 1:y+=x.width/2;break;case 2:y+=x.width;break}h=x.add(y,0,0,-x.height/2+1),this.ctx.save(),this.path([new In(x.left,x.top),new In(x.left+x.width,x.top),new In(x.left+x.width,x.top+x.height),new In(x.left,x.top+x.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new O1(i.value,h),t.letterSpacing,_),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!fo(i.styles.display,2048))return[3,20];if(i.styles.listStyleImage===null)return[3,19];if(d=i.styles.listStyleImage,d.type!==0)return[3,18];A=void 0,v=d.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return A=C.sent(),this.ctx.drawImage(A,i.bounds.left-(A.width+10),i.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:r.listValue&&i.styles.listStyleType!==-1&&(w=this.createFontStyle(t)[0],this.ctx.font=w,this.ctx.fillStyle=xo(t.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",x=new Dd(i.bounds.left,i.bounds.top+Wi(i.styles.paddingTop,i.bounds.width),i.bounds.width,c3(t.lineHeight,t.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new O1(r.listValue,x),t.letterSpacing,c3(t.lineHeight,t.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},s.prototype.renderStackContent=function(r){return wl(this,void 0,void 0,function(){var i,n,d,t,c,d,u,f,d,o,l,d,g,m,d,p,_,d,y,h,d;return Jo(this,function(A){switch(A.label){case 0:if(fo(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:A.sent(),i=0,n=r.negativeZIndex,A.label=2;case 2:return i<n.length?(d=n[i],[4,this.renderStack(d)]):[3,5];case 3:A.sent(),A.label=4;case 4:return i++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:A.sent(),t=0,c=r.nonInlineLevel,A.label=7;case 7:return t<c.length?(d=c[t],[4,this.renderNode(d)]):[3,10];case 8:A.sent(),A.label=9;case 9:return t++,[3,7];case 10:u=0,f=r.nonPositionedFloats,A.label=11;case 11:return u<f.length?(d=f[u],[4,this.renderStack(d)]):[3,14];case 12:A.sent(),A.label=13;case 13:return u++,[3,11];case 14:o=0,l=r.nonPositionedInlineLevel,A.label=15;case 15:return o<l.length?(d=l[o],[4,this.renderStack(d)]):[3,18];case 16:A.sent(),A.label=17;case 17:return o++,[3,15];case 18:g=0,m=r.inlineLevel,A.label=19;case 19:return g<m.length?(d=m[g],[4,this.renderNode(d)]):[3,22];case 20:A.sent(),A.label=21;case 21:return g++,[3,19];case 22:p=0,_=r.zeroOrAutoZIndexOrTransformedOrOpacity,A.label=23;case 23:return p<_.length?(d=_[p],[4,this.renderStack(d)]):[3,26];case 24:A.sent(),A.label=25;case 25:return p++,[3,23];case 26:y=0,h=r.positiveZIndex,A.label=27;case 27:return y<h.length?(d=h[y],[4,this.renderStack(d)]):[3,30];case 28:A.sent(),A.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},s.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},s.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},s.prototype.formatPath=function(r){var i=this;r.forEach(function(n,t){var c=Ku(n)?n.start:n;t===0?i.ctx.moveTo(c.x,c.y):i.ctx.lineTo(c.x,c.y),Ku(n)&&i.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},s.prototype.renderRepeat=function(r,i,n,t){this.path(r),this.ctx.fillStyle=i,this.ctx.translate(n,t),this.ctx.fill(),this.ctx.translate(-n,-t)},s.prototype.resizeImage=function(r,i,n){var t;if(r.width===i&&r.height===n)return r;var c=(t=this.canvas.ownerDocument)!==null&&t!==void 0?t:document,u=c.createElement("canvas");u.width=Math.max(1,i),u.height=Math.max(1,n);var f=u.getContext("2d");return f.drawImage(r,0,0,r.width,r.height,0,0,i,n),u},s.prototype.renderBackgroundImage=function(r){return wl(this,void 0,void 0,function(){var i,n,t,c,u,f;return Jo(this,function(o){switch(o.label){case 0:i=r.styles.backgroundImage.length-1,n=function(l){var g,m,p,M,F,L,B,O,T,_,M,F,L,B,O,y,h,d,A,v,w,x,C,k,T,S,M,P,N,B,O,I,F,L,R,U,V,W,Q,le,G,fe;return Jo(this,function(ie){switch(ie.label){case 0:if(l.type!==0)return[3,5];g=void 0,m=l.url,ie.label=1;case 1:return ie.trys.push([1,3,,4]),[4,t.context.cache.match(m)];case 2:return g=ie.sent(),[3,4];case 3:return ie.sent(),t.context.logger.error("Error loading background-image "+m),[3,4];case 4:return g&&(p=tw(r,i,[g.width,g.height,g.width/g.height]),M=p[0],F=p[1],L=p[2],B=p[3],O=p[4],T=t.ctx.createPattern(t.resizeImage(g,B,O),"repeat"),t.renderRepeat(M,T,F,L)),[3,6];case 5:Cz(l)?(_=tw(r,i,[null,null,null]),M=_[0],F=_[1],L=_[2],B=_[3],O=_[4],y=yz(l.angle,B,O),h=y[0],d=y[1],A=y[2],v=y[3],w=y[4],x=document.createElement("canvas"),x.width=B,x.height=O,C=x.getContext("2d"),k=C.createLinearGradient(d,v,A,w),l3(l.stops,h).forEach(function(he){return k.addColorStop(he.stop,xo(he.color))}),C.fillStyle=k,C.fillRect(0,0,B,O),B>0&&O>0&&(T=t.ctx.createPattern(x,"repeat"),t.renderRepeat(M,T,F,L))):Sz(l)&&(S=tw(r,i,[null,null,null]),M=S[0],P=S[1],N=S[2],B=S[3],O=S[4],I=l.position.length===0?[K_]:l.position,F=Wi(I[0],B),L=Wi(I[I.length-1],O),R=bz(l,F,L,B,O),U=R[0],V=R[1],U>0&&V>0&&(W=t.ctx.createRadialGradient(P+F,N+L,0,P+F,N+L,U),l3(l.stops,U*2).forEach(function(he){return W.addColorStop(he.stop,xo(he.color))}),t.path(M),t.ctx.fillStyle=W,U!==V?(Q=r.bounds.left+.5*r.bounds.width,le=r.bounds.top+.5*r.bounds.height,G=V/U,fe=1/G,t.ctx.save(),t.ctx.translate(Q,le),t.ctx.transform(1,0,0,G,0,0),t.ctx.translate(-Q,-le),t.ctx.fillRect(P,fe*(N-le)+le,B,O*fe),t.ctx.restore()):t.ctx.fill())),ie.label=6;case 6:return i--,[2]}})},t=this,c=0,u=r.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return c<u.length?(f=u[c],[5,n(f)]):[3,4];case 2:o.sent(),o.label=3;case 3:return c++,[3,1];case 4:return[2]}})})},s.prototype.renderSolidBorder=function(r,i,n){return wl(this,void 0,void 0,function(){return Jo(this,function(t){return this.path(N3(n,i)),this.ctx.fillStyle=xo(r),this.ctx.fill(),[2]})})},s.prototype.renderDoubleBorder=function(r,i,n,t){return wl(this,void 0,void 0,function(){var c,u;return Jo(this,function(f){switch(f.label){case 0:return i<3?[4,this.renderSolidBorder(r,n,t)]:[3,2];case 1:return f.sent(),[2];case 2:return c=EG(t,n),this.path(c),this.ctx.fillStyle=xo(r),this.ctx.fill(),u=IG(t,n),this.path(u),this.ctx.fill(),[2]}})})},s.prototype.renderNodeBackgroundAndBorders=function(r){return wl(this,void 0,void 0,function(){var i,n,t,c,u,f,o,l,g=this;return Jo(this,function(m){switch(m.label){case 0:return this.applyEffects(r.getEffects(2)),i=r.container.styles,n=!Jh(i.backgroundColor)||i.backgroundImage.length,t=[{style:i.borderTopStyle,color:i.borderTopColor,width:i.borderTopWidth},{style:i.borderRightStyle,color:i.borderRightColor,width:i.borderRightWidth},{style:i.borderBottomStyle,color:i.borderBottomColor,width:i.borderBottomWidth},{style:i.borderLeftStyle,color:i.borderLeftColor,width:i.borderLeftWidth}],c=jG(Bm(i.backgroundClip,0),r.curves),n||i.boxShadow.length?(this.ctx.save(),this.path(c),this.ctx.clip(),Jh(i.backgroundColor)||(this.ctx.fillStyle=xo(i.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:m.sent(),this.ctx.restore(),i.boxShadow.slice(0).reverse().forEach(function(p){g.ctx.save();var _=ly(r.curves),y=p.inset?0:RG,h=kG(_,-y+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(g.path(_),g.ctx.clip(),g.mask(h)):(g.mask(_),g.ctx.clip(),g.path(h)),g.ctx.shadowOffsetX=p.offsetX.number+y,g.ctx.shadowOffsetY=p.offsetY.number,g.ctx.shadowColor=xo(p.color),g.ctx.shadowBlur=p.blur.number,g.ctx.fillStyle=p.inset?xo(p.color):"rgba(0,0,0,1)",g.ctx.fill(),g.ctx.restore()}),m.label=2;case 2:u=0,f=0,o=t,m.label=3;case 3:return f<o.length?(l=o[f],l.style!==0&&!Jh(l.color)&&l.width>0?l.style!==2?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,u,r.curves,2)]:[3,11]):[3,13];case 4:return m.sent(),[3,11];case 5:return l.style!==3?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,u,r.curves,3)];case 6:return m.sent(),[3,11];case 7:return l.style!==4?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,u,r.curves)];case 8:return m.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,u,r.curves)];case 10:m.sent(),m.label=11;case 11:u++,m.label=12;case 12:return f++,[3,3];case 13:return[2]}})})},s.prototype.renderDashedDottedBorder=function(r,i,n,t,c){return wl(this,void 0,void 0,function(){var u,f,o,l,g,m,p,_,y,h,d,A,v,w,x,C,x,C;return Jo(this,function(k){return this.ctx.save(),u=BG(t,n),f=N3(t,n),c===2&&(this.path(f),this.ctx.clip()),Ku(f[0])?(o=f[0].start.x,l=f[0].start.y):(o=f[0].x,l=f[0].y),Ku(f[1])?(g=f[1].end.x,m=f[1].end.y):(g=f[1].x,m=f[1].y),n===0||n===2?p=Math.abs(o-g):p=Math.abs(l-m),this.ctx.beginPath(),c===3?this.formatPath(u):this.formatPath(f.slice(0,2)),_=i<3?i*3:i*2,y=i<3?i*2:i,c===3&&(_=i,y=i),h=!0,p<=_*2?h=!1:p<=_*2+y?(d=p/(2*_+y),_*=d,y*=d):(A=Math.floor((p+y)/(_+y)),v=(p-A*_)/(A-1),w=(p-(A+1)*_)/A,y=w<=0||Math.abs(y-v)<Math.abs(y-w)?v:w),h&&(c===3?this.ctx.setLineDash([0,_+y]):this.ctx.setLineDash([_,y])),c===3?(this.ctx.lineCap="round",this.ctx.lineWidth=i):this.ctx.lineWidth=i*2+1.1,this.ctx.strokeStyle=xo(r),this.ctx.stroke(),this.ctx.setLineDash([]),c===2&&(Ku(f[0])&&(x=f[3],C=f[0],this.ctx.beginPath(),this.formatPath([new In(x.end.x,x.end.y),new In(C.start.x,C.start.y)]),this.ctx.stroke()),Ku(f[1])&&(x=f[1],C=f[2],this.ctx.beginPath(),this.formatPath([new In(x.end.x,x.end.y),new In(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},s.prototype.render=function(r){return wl(this,void 0,void 0,function(){var i;return Jo(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=xo(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),i=TG(r),[4,this.renderStack(i)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},s})(Sk),NG=function(a){return a instanceof lk||a instanceof ok?!0:a instanceof J_&&a.type!==iy&&a.type!==ay},jG=function(a,s){switch(a){case 0:return ly(s);case 2:return wG(s);case 1:default:return uy(s)}},HG=function(a){switch(a){case 1:return"center";case 2:return"right";case 0:default:return"left"}},QG=["-apple-system","system-ui"],zG=function(a){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?a.filter(function(s){return QG.indexOf(s)===-1}):a},VG=(function(a){Hc(s,a);function s(r,i){var n=a.call(this,r,i)||this;return n.canvas=i.canvas?i.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=i,n.canvas.width=Math.floor(i.width*i.scale),n.canvas.height=Math.floor(i.height*i.scale),n.canvas.style.width=i.width+"px",n.canvas.style.height=i.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-i.x,-i.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+i.width+"x"+i.height+" at "+i.x+","+i.y+") with scale "+i.scale),n}return s.prototype.render=function(r){return wl(this,void 0,void 0,function(){var i,n;return Jo(this,function(t){switch(t.label){case 0:return i=jw(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,WG(i)];case 1:return n=t.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=xo(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},s})(Sk),WG=function(a){return new Promise(function(s,r){var i=new Image;i.onload=function(){s(i)},i.onerror=r,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(a))})},GG=(function(){function a(s){var r=s.id,i=s.enabled;this.id=r,this.enabled=i,this.start=Date.now()}return a.prototype.debug=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,a2([this.id,this.getTime()+"ms"],s)):this.info.apply(this,s))},a.prototype.getTime=function(){return Date.now()-this.start},a.prototype.info=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,a2([this.id,this.getTime()+"ms"],s))},a.prototype.warn=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,a2([this.id,this.getTime()+"ms"],s)):this.info.apply(this,s))},a.prototype.error=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,a2([this.id,this.getTime()+"ms"],s)):this.info.apply(this,s))},a.instances={},a})(),$G=(function(){function a(s,r){var i;this.windowBounds=r,this.instanceName="#"+a.instanceCount++,this.logger=new GG({id:this.instanceName,enabled:s.logging}),this.cache=(i=s.cache)!==null&&i!==void 0?i:new hG(this,s)}return a.instanceCount=1,a})(),KG=function(a,s){return s===void 0&&(s={}),YG(a,s)};typeof window<"u"&&yk.setContext(window);var YG=function(a,s){return wl(void 0,void 0,void 0,function(){var r,i,n,t,c,u,f,o,l,g,m,p,_,y,h,d,A,v,w,x,k,C,k,T,S,M,P,N,B,O,I,F,L,R,U,V,W,Q,le,G;return Jo(this,function(fe){switch(fe.label){case 0:if(!a||typeof a!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=a.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return n={allowTaint:(T=s.allowTaint)!==null&&T!==void 0?T:!1,imageTimeout:(S=s.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:s.proxy,useCORS:(M=s.useCORS)!==null&&M!==void 0?M:!1},t=Sw({logging:(P=s.logging)!==null&&P!==void 0?P:!0,cache:s.cache},n),c={windowWidth:(N=s.windowWidth)!==null&&N!==void 0?N:i.innerWidth,windowHeight:(B=s.windowHeight)!==null&&B!==void 0?B:i.innerHeight,scrollX:(O=s.scrollX)!==null&&O!==void 0?O:i.pageXOffset,scrollY:(I=s.scrollY)!==null&&I!==void 0?I:i.pageYOffset},u=new Dd(c.scrollX,c.scrollY,c.windowWidth,c.windowHeight),f=new $G(t,u),o=(F=s.foreignObjectRendering)!==null&&F!==void 0?F:!1,l={allowTaint:(L=s.allowTaint)!==null&&L!==void 0?L:!1,onclone:s.onclone,ignoreElements:s.ignoreElements,inlineImages:o,copyStyles:o},f.logger.debug("Starting document clone with size "+u.width+"x"+u.height+" scrolled to "+-u.left+","+-u.top),g=new P3(f,a,l),m=g.clonedReferenceElement,m?[4,g.toIFrame(r,u)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=fe.sent(),_=q_(m)||XW(m)?kH(m.ownerDocument):Ty(f,m),y=_.width,h=_.height,d=_.left,A=_.top,v=XG(f,m,s.backgroundColor),w={canvas:s.canvas,backgroundColor:v,scale:(U=(R=s.scale)!==null&&R!==void 0?R:i.devicePixelRatio)!==null&&U!==void 0?U:1,x:((V=s.x)!==null&&V!==void 0?V:0)+d,y:((W=s.y)!==null&&W!==void 0?W:0)+A,width:(Q=s.width)!==null&&Q!==void 0?Q:Math.ceil(y),height:(le=s.height)!==null&&le!==void 0?le:Math.ceil(h)},o?(f.logger.debug("Document cloned, using foreign object rendering"),k=new VG(f,w),[4,k.render(m)]):[3,3];case 2:return x=fe.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+d+","+A+" with size "+y+"x"+h+" using computed rendering"),f.logger.debug("Starting DOM parsing"),C=fk(f,m),v===C.styles.backgroundColor&&(C.styles.backgroundColor=Fd.TRANSPARENT),f.logger.debug("Starting renderer for element at "+w.x+","+w.y+" with size "+w.width+"x"+w.height),k=new UG(f,w),[4,k.render(C)];case 4:x=fe.sent(),fe.label=5;case 5:return(!((G=s.removeContainer)!==null&&G!==void 0)||G)&&(P3.destroy(p)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,x]}})})},XG=function(a,s,r){var i=s.ownerDocument,n=i.documentElement?M1(a,getComputedStyle(i.documentElement).backgroundColor):Fd.TRANSPARENT,t=i.body?M1(a,getComputedStyle(i.body).backgroundColor):Fd.TRANSPARENT,c=typeof r=="string"?M1(a,r):r===null?Fd.TRANSPARENT:4294967295;return s===i.documentElement?Jh(n)?Jh(t)?c:t:n:c};const ZG={class:"dialog-header"},JG={key:0,class:"dialog-header-title"},qG={key:1,class:"dialog-header-title"},e$={class:"desc-tooltip"},t$=["textContent"],r$={key:1,class:"dialog-header-desc"},n$={class:"action-buttons"},a$={class:"flex justify-end items-center gap-2"},i$={__name:"DecorationImageUploader",setup(a,{expose:s}){const r=we(!1),i=we([]),n=Kn(),t=we([]),c=we([]),u=we(null),f=[{label:"全部替换",value:0},{label:"插入到已有详情图末尾",value:1},{label:"插入到已有详情图开头",value:2}],o=we(!1),l=async(O,I)=>{if(!Array.isArray(O)||O.length===0){ut.error("请先选择商品");return}i.value=O,o.value=I,w(),I&&(m(O[0].spu),u.value=0),r.value=!0},g=we(!1),m=O=>{g.value=!0,Un({url:"/visage-agent-seller/product/query",method:"POST",data:{productId:O},headers:{Mallid:n.id}}).then(async({success:I,errorMsg:F,error_msg:L,result:R})=>{if(!I){ut.error(F||L);return}t.value=R.goodsLayerDecorationVOList||[];const U=[];for(const V of t.value){const W=V.contentList[0];if(V.type==="text"){const Q=await _(W.text,V.width,V.height,W.textModuleDetails);U.push({url:Q})}else U.push({url:W.imgUrl})}c.value=U}).finally(()=>{g.value=!1})},p={fontSize:12,fontColor:"#333333",fontFamily:null,align:"left",backgroundColor:"#ffffff"};async function _(O,I,F,L=p){const R=document.createElement("div");R.style.width=`${I||468}px`,F&&(R.style.height=`${F}px`),R.style.whiteSpace="pre-wrap",R.style.fontSize=`${L.fontSize||12}px`,R.style.color=L.fontColor||"#333333",R.style.padding="8px",R.style.lineHeight="22px",R.style.fontFamily=L.fontFamily||"Arial",R.style.textAlign=L.align||"left",R.style.backgroundColor=L.backgroundColor||"#ffffff",R.style.display="inline-block",R.innerText=O,document.body.appendChild(R);const U=await KG(R);return document.body.removeChild(R),U.toDataURL("image/png")}const y=({imgUrl:O,width:I,height:F},L)=>{const R=t.value.indexOf(L);if(R===-1)throw new Error("图片未初始化");t.value[R]={lang:"zh",floorId:0,key:"DecImage",type:"image",priority:0,contentList:[{imgUrl:O,height:F,width:I,text:null,textModuleDetails:{fontSize:null,fontColor:null,fontFamily:null,align:null,backgroundColor:null}}]}},h=we(0),d=we(!1),A=O=>{h.value=c.value.findIndex(I=>I.uid===O.uid),d.value=!0},v=(O,I)=>{const F=O.raw;if(F!=null&&F.alreadyExist)c.value=I,c.value.push({url:F.url,status:"success"});else{const L=c.value.findIndex(R=>R.uid===O.uid);if(L===-1)return;c.value=I,t.value.splice(L,1)}},w=()=>{c.value=[],t.value=[],u.value=null,N.value&&N.value.reset()},x=O=>new Promise(I=>{if(!(O.size/1024/1024<3)){ut.error("文件大小不能超过 3MB"),I(!1);return}const L=new Image;L.onload=()=>{const R=L.width,U=L.height,V=R/U;if(V<.5||V>2){ut.error("图片的宽高比必须在 1/2 和 2 之间"),I(!1);return}if(R<480){ut.error("图片宽度必须大于等于 480px"),I(!1);return}I(!0)},L.onerror=()=>{ut.error("图片加载失败, 请确定图片格式正确"),I(!1)},L.src=URL.createObjectURL(O)}),C=async O=>{const I=await $8(O),{success:F,errorMsg:L,error_msg:R,result:U}=await Un({url:"/phoenix-mms/material/queryByMd5",method:"POST",data:{materialType:1,md5IdList:[I]},headers:{Mallid:n.id}});if(!F)throw new Error(L||R);const V=U.responseDetailList||[];if(V.length>0&&V[0].id){const W=V[0].id,{success:Q,errorMsg:le,error_msg:G,result:fe}=await Un({url:"/phoenix-mms/material/pageQuery",method:"POST",data:{pageInfo:{pageNo:1,pageSize:1},uploadStatusList:[3],materialIdList:[W],folderId:0,notContainProcessingTagList:[1],minMaterialHeight:480,minMaterialWidth:480,maxMaterialSize:3145728,lteProportionTwoToOne:!0,gteProportionOneToTwo:!0,badTagList:["ZH_HANS"]},headers:{Mallid:n.id}});if(!Q)throw new Error(le||G);const ie=fe.materialList||[];if(ie.length>0){const he=ie[0];return{md5:I,imgUrl:he.imgUrl,width:he.width,height:he.height,size:he.materialSize}}}return{md5:I}},k=async()=>{const{signature:O}=await Un({url:"/general_auth/get_signature?sdk_version=js-0.0.40&tag_name=product-material-tag&scene_id=agent-seller",method:"POST",data:{bucket_tag:"product-material-tag"}});if(!O)throw new Error("获取上传签名失败");return O},T=we({upload_sign:"",url_width_height:!0}),S=(O,I,F)=>{y({imgUrl:O.url,width:O.width,height:O.height},I.uid)},M=async O=>{t.value.push(O.uid);try{if(!await x(O))return!1;const{md5:F,imgUrl:L,width:R,height:U,size:V}=await C(O);if(L)return y({imgUrl:L,width:R,height:U},O.uid),O.alreadyExist=!0,O.url=L,!1;const W=await k();return T.value={...T.value,upload_sign:W},console.log("uploadData",T.value),!0}catch(I){return ut.error(I.message),console.error(I),!1}},P=we(!1),N=we(null),B=()=>{if(t.value.length===0){ut.error("请上传图片");return}if(u.value===null){ut.error("请选择更新模式");return}t.value=t.value.map((F,L)=>({...F,priority:L})),P.value=!0;const O=Sf();N.value.start(O).then().catch(F=>{ut.error(F.message),console.error(F)});const I={mallId:n.id,spuIdList:i.value.map(F=>parseInt(F.spu)),goodsLayerDecorationReqs:t.value,uuid:O,operate:u.value};pi({url:"/api/api/updateTemuProductDetailsImage",method:"POST",data:I}).then(({status:F,errorMsg:L,error:R,successCnt:U,failCnt:V,failSpuIdList:W,errorMessageList:Q})=>{if(F!==0){L?ut.error(L):(ut.error("更新失败"),console.error(R)),N.value.stop();return}let le="";if(U>0&&(le+=`<p class="notify-success-text">成功更新${U}个商品</p>`),V>0){le+=`<p class="notify-error-text">更新失败${V}个商品</p>`,le+="<p>失败原因: </p>",le+="<ul>";for(let G=0;G<Q.length;G++){const fe=Q[G];le+=`<li>SPU: ${fe.id}`,le+=`<ul><li>${fe.message}</li></ul>`,le+="</li>"}le+="</ul>"}if(le){const G=Zn(_i,{maxHeight:"720px"},{default:()=>Zn("div",{innerHTML:le})});ha({title:"更新详情图",message:G,dangerouslyUseHTMLString:!1,type:V>0?"warning":"success",duration:V>0?0:5e3})}}).catch(F=>{ut.error(F.message),console.error(F),N.value.stop()}).finally(()=>{P.value=!1})};return s({openDialog:l}),(O,I)=>{const F=Ce("el-alert"),L=Ce("el-tooltip"),R=Ce("el-icon"),U=Ce("el-upload"),V=Ce("el-option"),W=Ce("el-select"),Q=Ce("el-button"),le=Ce("el-dialog"),G=Ce("el-image-viewer"),fe=Ai("loading");return Oe(),st(Zt,null,[z(le,{"align-center":"",modelValue:r.value,"onUpdate:modelValue":I[3]||(I[3]=ie=>r.value=ie),width:"60%","append-to-body":"",onClose:w,"close-on-press-escape":!1,"close-on-click-modal":!1},{header:q(()=>[de("div",ZG,[o.value?(Oe(),st("h4",qG,"【凌风跨境工具箱】更新详情图文")):(Oe(),st("h4",JG,"【凌风跨境工具箱】批量更新详情图文"))])]),footer:q(()=>[de("div",n$,[o.value?tr("",!0):(Oe(),Et(W,{key:0,modelValue:u.value,"onUpdate:modelValue":I[1]||(I[1]=ie=>u.value=ie),style:{width:"200px"},placeholder:"请选择更新模式"},{default:q(()=>[(Oe(),st(Zt,null,Hr(f,ie=>z(V,{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])),de("div",a$,[z(Q,{onClick:I[2]||(I[2]=ie=>r.value=!1),disabled:P.value},{default:q(()=>[...I[8]||(I[8]=[Ue("关 闭",-1)])]),_:1},8,["disabled"]),z(Q,{type:"primary",onClick:B,loading:P.value},{default:q(()=>[...I[9]||(I[9]=[Ue("开始更新",-1)])]),_:1},8,["loading"])])]),z(jc,{ref_key:"progressTicker",ref:N,"stroke-width":16},null,512)]),default:q(()=>[o.value?(Oe(),st("div",r$,"SPU: "+ht(i.value[0].spu),1)):(Oe(),Et(L,{key:0,"raw-content":"",placement:"top-start"},{content:q(()=>[de("div",e$,[I[5]||(I[5]=de("p",null,"SPU:",-1)),de("p",{textContent:ht(i.value.map(ie=>ie.spu).join(", "))},null,8,t$)])]),default:q(()=>[z(F,{type:"success",closable:!1},{title:q(()=>[I[6]||(I[6]=Ue(" 当前选中",-1)),de("strong",null,ht(i.value.length)+"个",1),I[7]||(I[7]=Ue("商品 ",-1))]),_:1})]),_:1})),na((Oe(),Et(U,{style:{"margin-top":"10px"},"file-list":c.value,"onUpdate:fileList":I[0]||(I[0]=ie=>c.value=ie),action:"https://agentseller.temu.com/api/galerie/v3/store_image?sdk_version=js-0.0.40&tag_name=product-material-tag",multiple:"",data:T.value,name:"image",accept:"image/*","list-type":"picture-card","with-credentials":"","before-upload":M,"on-preview":A,"on-remove":v,"on-success":S},{default:q(()=>[z(R,null,{default:q(()=>[z(St(hy))]),_:1})]),_:1},8,["file-list","data"])),[[fe,g.value]])]),_:1},8,["modelValue"]),d.value?(Oe(),Et(G,{key:0,"url-list":c.value.map(ie=>ie.url),teleported:"",infinite:!1,"initial-index":h.value,onClose:I[4]||(I[4]=ie=>d.value=!1)},null,8,["url-list","initial-index"])):tr("",!0)],64)}}},kk=cn(i$,[["__scopeId","data-v-e3752eac"]]),s$={__name:"BatchUploadDecorationImage",setup(a){const s=we([]),r=we(null),i=Kn(),n=we(!1),t=async()=>{n.value=!0;const u=await i.init();n.value=!1,u&&await c()&&r.value.openDialog(s.value,!1)},c=async()=>{s.value=[];let u=[];try{u=await cA()}catch(f){return ut.error("读取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("读取商品信息失败",f),!1}return u?u.length===0?(ut.error("请选择商品"),!1):(s.value=u,!0):!1};return(u,f)=>{const o=Ce("el-button");return Oe(),st(Zt,null,[z(o,{class:"custom-button",type:"primary",onClick:t,loading:n.value},{default:q(()=>[...f[0]||(f[0]=[Ue(" 【凌风跨境工具箱】批量更新详情图文 ",-1)])]),_:1},8,["loading"]),z(kk,{ref_key:"dialogRef",ref:r},null,512)],64)}}};function o$(a){return pu("/api/api/plugModifyJitGoodsInfoStock",a,36e5)}const l$={style:{width:"100%","text-align":"center","margin-bottom":"40px"}},u$={class:"form-item"},c$={class:"form-item"},f$={class:"form-item"},d$={key:0,style:{color:"red"}},h$={class:"form-item"},A$={key:0,style:{color:"red"}},p$={class:"form-item"},m$={key:0,style:{color:"red"}},g$={class:"form-item"},v$={class:"dialog-footer"},y$={__name:"jitGoodsModifyStock",props:{exportType:Number,required:!0},setup(a){const s=ls(),r=Pr(()=>s.sysUser),i=a;we(!1);const n=we({start:"",end:""}),t=we(["一键修改JIT商品库存"]),c=we(""),u=we(!1),f=Kn(),o=we(!1),l=we(!1);we(!1);const g=we(!1),m=we({}),p=we("1"),_=we(1),y=we(0),h=we("false"),d=async T=>{u.value=!0;let S=await f.init();S&&(S=await T()),u.value=!1,S&&(m.value.mallId=f.id,o.value=!0)},A=async()=>{g.value=!0;try{await Zu(s)}catch(T){g.value=!1,console.log("permission error:",T)}m.value.mallId=await fw(),ut.success("刷新成功！"),g.value=!1},v=we(0),w=Pr(()=>v.value>=0&&v.value<100?"format":v.value<0?"exception":v.value===100?"success":"format");let x=null;const C=async()=>{if(l.value=!0,!await n_(m.value.mallId,s,r)){l.value=!1;return}c.value=k(1,1e8)+"";try{let S,M=[];if(h.value==="false"){try{const N=await ON();if(!N||N.length===0){ut.error("请选择 JIT 商品");return}else M=N}catch(N){ut.error("读取商品失败, 可能是 temu 更新导致的, 请联系客服"),console.error("复制商品失败",N);return}S={uuid:c.value,mallId:m.value.mallId,stockQuantity:y.value,skcIdList:M}}else S={uuid:c.value,jitStockQuantitySection:{leftValue:parseInt(n.value.start),rightValue:parseInt(n.value.end)},mallId:m.value.mallId,skcJitStatus:parseInt(p.value),topCount:_.value,stockQuantity:y.value};v.value=0,x=setInterval(async()=>{try{if(i.exportType===9){const{loadPercent:N}=await v6();v.value=N.toFixed(2)*100}else{const{progress:N}=await SN({uuid:c.value});v.value=N.toFixed(2)*100}}catch(N){v.value=-1,console.log(N)}},1e3);let P=null;if(P=await o$(S),P.status>0)throw new Error(P.errorMsg||P.error);if(!l.value)return;ut.success("库存修改成功！"),v.value=100,o.value=!1}catch(S){console.error(S),clearInterval(x),setTimeout(()=>{v.value=-1},1e3),ut.error(`修改库存失败: ${S.message}`)}finally{clearInterval(x),l.value=!1}};function k(T,S){const M=Math.random(),P=S-T;return Math.round(P*M)+T}return(T,S)=>{const M=Ce("el-button"),P=Ce("var-icon"),N=Ce("el-link"),B=Ce("el-divider"),O=Ce("el-radio"),I=Ce("el-radio-group"),F=Ce("el-input"),L=Ce("el-option"),R=Ce("el-select"),U=Ce("el-form"),V=Ce("el-progress"),W=Ce("el-tooltip"),Q=Ce("el-dialog"),le=Ai("loading");return Oe(),st(Zt,null,[z($0,null,{default:q(({checkAuth:G})=>[z(M,{class:"custom-button",type:"primary",onClick:fe=>d(G),loading:u.value},{default:q(()=>[Ue("【凌风跨境工具箱】"+ht(t.value[0]),1)]),_:1},8,["onClick","loading"])]),_:1}),z(Q,{class:"warp-float",modelValue:o.value,"onUpdate:modelValue":S[7]||(S[7]=G=>o.value=G),width:"500px",disabled:l.value,"show-close":!l.value,"before-close":l.value&&(o.value=!0)},{header:q(()=>[de("p",null,"【凌风跨境工具箱】"+ht(t.value[0]),1),z(M,{type:"primary",link:"",class:"refresh",disabled:g.value,onClick:S[0]||(S[0]=G=>A())},{default:q(()=>[z(P,{class:ao({loading:g.value}),name:"refresh"},null,8,["class"]),S[8]||(S[8]=Ue("刷新",-1))]),_:1},8,["disabled"])]),default:q(()=>[de("div",l$,[z(N,{type:"primary",href:"https://www.kuajingabc.com/#/productManagement/temuInformation",target:"_blank"},{default:q(()=>[...S[9]||(S[9]=[Ue("更多功能一键前往网页端商品信息维护功能，可以修改商品库存、货号等更多信息",-1)])]),_:1})]),z(B,null,{default:q(()=>[...S[10]||(S[10]=[Ue("筛选条件",-1)])]),_:1}),na((Oe(),Et(U,{"label-position":"top",class:"dialog-body"},{default:q(()=>[de("div",u$,[S[13]||(S[13]=de("label",null,"修改商品的范围:",-1)),z(I,{modelValue:h.value,"onUpdate:modelValue":S[1]||(S[1]=G=>h.value=G)},{default:q(()=>[z(O,{label:"false"},{default:q(()=>[...S[11]||(S[11]=[Ue("选择的商品",-1)])]),_:1}),z(O,{label:"true"},{default:q(()=>[...S[12]||(S[12]=[Ue("指定过滤条件",-1)])]),_:1})]),_:1},8,["modelValue"])]),h.value==="true"?(Oe(),st(Zt,{key:0},[de("div",c$,[S[14]||(S[14]=de("label",null,"原有库存值范围:",-1)),z(F,{modelValue:n.value.start,"onUpdate:modelValue":S[2]||(S[2]=G=>n.value.start=G),placeholder:"最小值",style:{width:"67px"}},null,8,["modelValue"]),S[15]||(S[15]=de("span",{style:{margin:"0 10px"}},"至",-1)),z(F,{modelValue:n.value.end,"onUpdate:modelValue":S[3]||(S[3]=G=>n.value.end=G),placeholder:"最大值",style:{width:"67px"}},null,8,["modelValue"])]),de("div",f$,[S[16]||(S[16]=de("label",null,"JIT预售协议状态:",-1)),z(R,{modelValue:p.value,"onUpdate:modelValue":S[4]||(S[4]=G=>p.value=G),placeholder:"JIT预售协议过滤",required:""},{default:q(()=>[z(L,{label:"全部",value:"1"}),z(L,{label:"已签署《JIT预售协议》",value:"2"}),z(L,{label:"待签署《JIT预售协议》",value:"3"})]),_:1},8,["modelValue"]),p.value?tr("",!0):(Oe(),st("div",d$,"请选择一个选项"))]),de("div",h$,[S[17]||(S[17]=de("label",null,"修改的商品数量(前多少个):",-1)),z(F,{modelValue:_.value,"onUpdate:modelValue":S[5]||(S[5]=G=>_.value=G),modelModifiers:{number:!0},placeholder:"请输入需要修改的前多少个JIT商品",type:"number",class:"lf-input"},null,8,["modelValue"]),_.value<1?(Oe(),st("div",A$,"输入的值必须大于0")):tr("",!0)])],64)):tr("",!0),z(B,null,{default:q(()=>[...S[18]||(S[18]=[Ue("目标库存",-1)])]),_:1}),de("div",p$,[S[19]||(S[19]=de("label",null,"目标库存:",-1)),z(F,{modelValue:y.value,"onUpdate:modelValue":S[6]||(S[6]=G=>y.value=G),modelModifiers:{number:!0},placeholder:"请输入需要把库存修改到多少",type:"number",class:"lf-input"},null,8,["modelValue"]),y.value<0?(Oe(),st("div",m$,"输入的值必须大于等于0")):tr("",!0)])]),_:1})),[[le,l.value]]),de("div",g$,[S[20]||(S[20]=de("label",null,"修改进度:",-1)),z(V,{percentage:v.value,status:w.value,"stroke-width":12,"text-inside":!0},null,8,["percentage","status"])]),de("div",v$,[z(W,{class:"item",effect:"dark",content:"点击开始修改库存！",placement:"top"},{default:q(()=>[z(M,{onClick:C,type:"primary",disabled:l.value},{default:q(()=>[...S[21]||(S[21]=[Ue("开始修改库存",-1)])]),_:1},8,["disabled"])]),_:1})])]),_:1},8,["modelValue","disabled","show-close","before-close"])],64)}}},b$=cn(y$,[["__scopeId","data-v-009564cd"]]),w$={key:0},_$={key:1},Qc={__name:"ProgressTicker",props:{successText:{type:String,default:"100%"},type:{type:String,default:"line",validator:a=>["line","circle","dashboard"].includes(a)},strokeWidth:{type:Number,default:24},width:{type:Number,default:126}},setup(a,{expose:s}){const r=we(0),i=we("");let n=null,t=!1;function c(l,g=1800,m=2e3){let p=g;return r.value=0,i.value="",t=!1,n&&clearInterval(n),new Promise((_,y)=>{n=setInterval(()=>{if(t){clearInterval(n),_(r.value),r.value=0,i.value="";return}l().then(({status:h,error:d,errorMsg:A,progress:v,loadPercent:w})=>{if(h!==0){clearInterval(n),i.value="exception",y(d||A);return}const x=v!==void 0?v:w;if(x===void 0){clearInterval(n),i.value="exception",y("未获取到进度数据");return}if(r.value===x){p--,p<=0&&(clearInterval(n),i.value="exception",y("读取进度超时"));return}else p=g;r.value=x,r.value===1&&(i.value="success",clearInterval(n),_(r.value))}).catch(h=>{p--,p<=0&&(clearInterval(n),n=null,i.value="exception",y(`读取进度超时: ${h.message||h}`))})},m)})}function u(l){return new Promise((g,m)=>{l().then(({status:p,error:_,errorMsg:y,progress:h,loadPercent:d})=>{if(p!==0){m(_||y);return}const A=h!==void 0?h:d;if(A===void 0){m("未获取到进度数据");return}r.value=A,r.value===1?i.value="success":i.value="",g(r.value)}).catch(p=>{m(p)})})}function f(){t=!0}function o(){r.value=0,i.value=""}return s({start:c,stop:f,load:u,reset:o}),(l,g)=>(Oe(),Et(St(Jw),{percentage:Math.floor(r.value*100),type:a.type,width:a.width,"stroke-width":a.strokeWidth,"text-inside":!0,status:i.value},{default:q(m=>[m.percentage===100?(Oe(),st("span",w$,ht(a.successText),1)):(Oe(),st("span",_$,ht(m.percentage)+"% ",1))]),_:1},8,["percentage","type","width","stroke-width","status"]))}},x$=["textContent"],C$={style:{display:"flex"}},S$={style:{"margin-left":"5px",flex:"1"}},k$={style:{color:"#000"}},T$={style:{"font-size":"12px"}},E$={style:{"font-size":"12px"}},I$={style:{"font-size":"12px"}},B$={style:{"font-size":"12px"}},F$={style:{display:"flex","align-items":"center"}},M$={class:"flex justify-end items-center gap-2"},D$={__name:"singleSKCDialog",props:{visible:Boolean,spuIdList:Array},emits:["update:visible"],setup(a,{emit:s}){const r=a,i=s,n=()=>{i("update:visible",!1)},t=Kn(),c=we(!1),u=we([]),f=we(!1),o=we(null),l=(d,A,v)=>Un.post("/visage-agent-seller/product/skc/pageQuery",{pageSize:d,page:A,productIds:v},{headers:{Mallid:t.id}}),g=()=>{const d=u.value.filter(A=>!A.carouselFolder||A.carouselFolder.trim()==="").map(A=>A.productId);return d.length>0?(ut.error(`以下SPU ID 缺少轮播图文件夹: ${d.join(", ")}`),!1):!0},m=async()=>{var A,v;if(!g())return;const d=Date.now().toString();f.value=!0,c.value=!0;try{o.value.start(()=>kf({uuid:d})).then(T=>{T===1&&n()}).catch(T=>{ut({message:`读取进度失败: ${T}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{o.value.stop()});const w=await sT({uuid:d,mallId:t.id,spuIdList:p.value,imageFolderList:_.value});if(w.status!==0){o.value.stop(),ut({message:`更新skc轮播图失败: ${w.errorMsg||"未知错误"}`,type:"error",duration:1e4,zIndex:999999999});return}const x=w.failCnt>0||((A=w.errorMessageList)==null?void 0:A.length);let C="";if(w.successCnt!==0&&(C+=`<p class="notify-success-text">更新skc轮播图成功<strong>${w==null?void 0:w.successCnt}个</strong></p>`),(v=w.errorMessageList)!=null&&v.length){C+=`<p class="notify-error-text">失败<strong>${w.errorMessageList.length}个</strong></p><ul style="padding: 0">`;for(const T of w.errorMessageList)C+=`<li>SPU: ${T.id}<ul><li class="notify-error-text">${T.message}</li></ul></li>`;C+="</ul>"}const k=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:C})});ha({title:"提示",message:k,dangerouslyUseHTMLString:!1,type:x?"warning":"success",customClass:"CustomNotifications",duration:4e3})}catch(w){ut({message:`操作失败: ${w.message||w}`,type:"error",duration:1e4,zIndex:999999999})}finally{f.value=!1,c.value=!1}},p=Pr(()=>u.value.map(d=>d.productId)),_=Pr(()=>u.value.map(d=>d.carouselFolder||"")),y=async()=>{var d;(d=o.value)==null||d.reset();try{c.value=!0;const A=20,v=r.spuIdList,w=Math.ceil(v.length/A);let x=[];for(let C=1;C<=w;C++){const k=(C-1)*A,T=v.slice(k,k+A),S=await l(A,1,T);S&&S.result&&S.result.pageItems&&(x=x.concat(S.result.pageItems))}u.value=x}catch(A){console.error("分页查询失败:",A)}finally{c.value=!1}},h=()=>{u.value=[]};return(d,A)=>{const v=Ce("el-tooltip"),w=Ce("el-alert"),x=Ce("el-image"),C=Ce("el-table-column"),k=Ce("el-icon"),T=Ce("el-input"),S=Ce("el-table"),M=Ce("el-button"),P=Ce("el-dialog"),N=Ai("loading");return Oe(),Et(P,{modelValue:r.visible,"onUpdate:modelValue":A[0]||(A[0]=B=>r.visible=B),title:"【凌风跨境工具箱】批量更新skc轮播图",width:"1000","align-center":"",onOpen:y,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"15px"},onClose:h},{footer:q(()=>[z(Qc,{style:{"margin-bottom":"10px"},ref_key:"progressTickerRef",ref:o,"success-text":"更新成功","stroke-width":12},null,512),de("div",M$,[z(M,{disabled:f.value,onClick:n},{default:q(()=>[...A[6]||(A[6]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(M,{loading:f.value,type:"primary",onClick:m},{default:q(()=>[...A[7]||(A[7]=[Ue("开始更新",-1)])]),_:1},8,["loading"])])]),default:q(()=>[de("div",null,[z(w,{style:{width:"100%"},closable:!1,type:"success"},{title:q(()=>[de("div",null,[z(v,{"raw-content":"",placement:"right-start",effect:"light","popper-class":"PopperClass"},{content:q(()=>[A[1]||(A[1]=de("span",null,"SPU:",-1)),de("span",{textContent:ht(a.spuIdList.join(", "))},null,8,x$)]),default:q(()=>[de("span",null,[A[2]||(A[2]=Ue("当前选中",-1)),de("strong",null,ht(a.spuIdList.length)+"个",1),A[3]||(A[3]=Ue("商品",-1))])]),_:1})])]),_:1}),na((Oe(),Et(S,{border:"",style:{"margin-top":"10px"},data:u.value,height:400,"span-method":d.spanMethod},{default:q(()=>[z(C,{label:"商品信息",width:"700","header-align":"center"},{default:q(({row:B})=>{var O;return[de("div",null,[de("div",C$,[z(x,{style:{width:"100px",height:"100px"},src:B.mainImageUrl},null,8,["src"]),de("div",S$,[de("div",k$,ht((B==null?void 0:B.productName)||"-"),1),de("div",T$," 类目："+ht(((O=B==null?void 0:B.leafCat)==null?void 0:O.catName)||"-"),1),de("div",E$," SPU ID："+ht((B==null?void 0:B.productId)||"-"),1),de("div",I$," SKC ID："+ht((B==null?void 0:B.productSkcId)||"-"),1),de("div",B$," 货号："+ht((B==null?void 0:B.extCode)||"-"),1)])])])]}),_:1}),z(C,null,{header:q(()=>[de("div",F$,[A[5]||(A[5]=de("span",{style:{"margin-right":"5px"}},"轮播图文件夹",-1)),z(v,{style:{"margin-left":"5px"},class:"box-item",placement:"top",effect:"light"},{content:q(()=>[...A[4]||(A[4]=[de("div",{style:{"font-size":"14px",color:"#333"}},[de("p",null,[de("strong",null,"SKC轮播图文件夹说明：")]),de("p",null,"1. 每个商品的轮播图应放置在对应的文件夹中。"),de("p",null," 2. 每个文件夹内应包含5 ~ 10张轮播图图片，图片格式支持 .jpg 或 .png。 "),de("p",null," 3. 上传的轮播图会按照图片的顺序轮播显示，建议按照图片展示的先后顺序命名图片文件。 "),de("p",null,[de("strong",null,"效果说明：")]),de("p",null,"更新成功后，文件夹中的图片将替换每个商品的轮播图。")],-1)])]),default:q(()=>[z(k,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1})])]),default:q(({row:B})=>[de("div",null,[z(T,{modelValue:B.carouselFolder,"onUpdate:modelValue":O=>B.carouselFolder=O,placeholder:"请输入轮播图文件夹"},null,8,["modelValue","onUpdate:modelValue"])])]),_:1})]),_:1},8,["data","span-method"])),[[N,c.value]])])]),_:1},8,["modelValue"])}}},O$=cn(D$,[["__scopeId","data-v-ffe3736d"]]),L$=["textContent"],P$={class:"flex justify-end items-center gap-2"},R$={__name:"multipleSKCDialog",props:{visible:Boolean,spuIdList:Array},emits:["update:visible"],setup(a,{emit:s}){const r=a,i=s,n=()=>{i("update:visible",!1)},t=Kn(),c=we(!1),u=we(null),f=we(null),o=we({imageFolder:null}),l=we({imageFolder:[{required:!0,message:"请输入轮播图文件夹地址",trigger:"blur"}]}),g=async()=>{await f.value.validate(async(p,_)=>{var y,h;if(p){const d=Date.now().toString();c.value=!0;try{u.value.start(()=>kf({uuid:d})).then(C=>{C===1&&n()}).catch(C=>{ut({message:`读取进度失败: ${C}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{u.value.stop()});const A=await oT({uuid:d,mallId:t.id,spuIdList:r.spuIdList,imageFolder:o.value.imageFolder});if(A.status!==0){u.value.stop(),ut({message:`更新skc轮播图失败: ${A.errorMsg||"未知错误"}`,type:"error",duration:1e4,zIndex:999999999});return}const v=A.failCnt>0||((y=A.errorMessageList)==null?void 0:y.length);let w="";if(A.successCnt!==0&&(w+=`<p class="notify-success-text">更新skc轮播图成功<strong>${A==null?void 0:A.successCnt}个</strong></p>`),(h=A.errorMessageList)!=null&&h.length){w+=`<p class="notify-error-text">失败<strong>${A.errorMessageList.length}个</strong></p><ul style="padding: 0">`;for(const C of A.errorMessageList)w+=`<li>SPU: ${C.id}<ul><li class="notify-error-text">${C.message}</li></ul></li>`;w+="</ul>"}const x=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:w})});ha({title:"提示",message:x,dangerouslyUseHTMLString:!1,type:v?"warning":"success",customClass:"CustomNotifications",duration:v?36e5:4e3})}catch(A){ut({message:`操作失败: ${A.message||A}`,type:"error",duration:1e4,zIndex:999999999})}finally{c.value=!1}}else console.log("error submit!",_)})},m=()=>{var p;(p=u.value)==null||p.reset()};return(p,_)=>{const y=Ce("el-tooltip"),h=Ce("el-alert"),d=Ce("el-input"),A=Ce("el-form-item"),v=Ce("el-form"),w=Ce("el-button"),x=Ce("el-dialog");return Oe(),Et(x,{modelValue:r.visible,"onUpdate:modelValue":_[1]||(_[1]=C=>r.visible=C),title:"【凌风跨境工具箱】批量更新skc轮播图",width:"800","align-center":"",onOpen:m,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"15px"}},{footer:q(()=>[z(Qc,{style:{"margin-bottom":"10px"},ref_key:"progressTickerRef",ref:u,"success-text":"更新成功","stroke-width":12},null,512),de("div",P$,[z(w,{disabled:c.value,onClick:n},{default:q(()=>[..._[6]||(_[6]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(w,{loading:c.value,type:"primary",onClick:g},{default:q(()=>[..._[7]||(_[7]=[Ue("开始更新",-1)])]),_:1},8,["loading"])])]),default:q(()=>[de("div",null,[z(h,{style:{width:"100%"},closable:!1,type:"success"},{title:q(()=>[de("div",null,[z(y,{"raw-content":"",placement:"right-start",effect:"light","popper-class":"PopperClass"},{content:q(()=>[_[2]||(_[2]=de("span",null,"SPU:",-1)),de("span",{textContent:ht(a.spuIdList.join(", "))},null,8,L$)]),default:q(()=>[de("span",null,[_[3]||(_[3]=Ue("当前选中",-1)),de("strong",null,ht(a.spuIdList.length)+"个",1),_[4]||(_[4]=Ue("商品",-1))])]),_:1})])]),_:1}),_[5]||(_[5]=de("div",{class:"tip",style:{"font-size":"14px",color:"#333"}},[de("p",null,[de("strong",null,"SKC轮播图文件夹说明：")]),de("p",null,"1. 每个商品的轮播图都放在同一个文件夹内。"),de("p",null,"2. 每个SKC ID对应的轮播图需要5 ~ 10张，图片格式需为JPG/JPEG/PNG。"),de("p",null," 3. 轮播图文件夹内的图片应以SKC ID + 序号的方式来命名，例如：SKC ID-1.png。 "),de("p",null," 4. 上传的轮播图会按照图片命名中的序号依次显示，建议按照图片展示的先后顺序命名图片文件。 "),de("p",null,[de("strong",null,"效果说明：")]),de("p",null,"更新成功后，文件夹中的图片将替换每个商品的轮播图。"),de("p",{style:{color:"red"}}," 注：更新过程中请勿关闭功能界面，可能会导致轮播图更新失败！ ")],-1)),z(v,{model:o.value,rules:l.value,ref_key:"ruleFormRef",ref:f},{default:q(()=>[z(A,{label:"本地图片地址：",prop:"imageFolder"},{default:q(()=>[z(d,{modelValue:o.value.imageFolder,"onUpdate:modelValue":_[0]||(_[0]=C=>o.value.imageFolder=C),size:"default",placeholder:"请输入轮播图文件夹地址"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue"])}}},U$=cn(R$,[["__scopeId","data-v-e5cad7b2"]]),N$={class:"flex justify-end items-center gap-2"},j$={__name:"UpdateSkcSwiper",setup(a){const s=we("1"),r=Kn(),i=we(!1),n=we(!1),t=we(!1),c=we(!1),u=we([]),f=we([]),o=async()=>{i.value=!0;const m=await r.init();i.value=!1,m&&await l()&&(n.value=!0)},l=async()=>{try{f.value=await cA()}catch(m){return ut.error("读取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("读取商品信息失败",m),!1}return f.value?f.value.length===0?(ut.error("请选择商品"),!1):(u.value=f.value.map(m=>m.spu),!0):!1},g=()=>{if(s.value==="1"){for(const m of f.value)if(Array.isArray(m.skc))return ut.error("请选择单skc非服饰类目的商品更新轮播图，当前选择的方式不支持服饰类目商品"),!1;t.value=!0,n.value=!1}else c.value=!0,n.value=!1};return(m,p)=>{const _=Ce("el-button"),y=Ce("el-radio"),h=Ce("el-radio-group"),d=Ce("el-dialog");return Oe(),st(Zt,null,[z(_,{class:"custom-button",type:"primary",onClick:o,loading:i.value},{default:q(()=>[...p[5]||(p[5]=[Ue(" 【凌风跨境工具箱】批量更新skc轮播图 ",-1)])]),_:1},8,["loading"]),z(d,{modelValue:n.value,"onUpdate:modelValue":p[2]||(p[2]=A=>n.value=A),title:"【凌风跨境工具箱】批量更新skc轮播图",width:"500","align-center":"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{footer:q(()=>[de("div",N$,[z(_,{onClick:p[1]||(p[1]=A=>n.value=!1)},{default:q(()=>[...p[8]||(p[8]=[Ue("取消",-1)])]),_:1}),z(_,{type:"primary",onClick:g},{default:q(()=>[...p[9]||(p[9]=[Ue(" 确定 ",-1)])]),_:1})])]),default:q(()=>[p[10]||(p[10]=de("div",null,"您选择合适您需求的模式：",-1)),z(h,{modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=A=>s.value=A)},{default:q(()=>[z(y,{value:"1",size:"large"},{default:q(()=>[...p[6]||(p[6]=[Ue("支持对单SKC多SKU类型的商品进行批量更新轮播图",-1)])]),_:1}),z(y,{value:"2",size:"large"},{default:q(()=>[...p[7]||(p[7]=[Ue("支持对多SKC类型即服饰类目的商品进行批量更新轮播图",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),z(O$,{spuIdList:u.value,visible:t.value,"onUpdate:visible":p[3]||(p[3]=A=>t.value=A)},null,8,["spuIdList","visible"]),z(U$,{spuIdList:u.value,visible:c.value,"onUpdate:visible":p[4]||(p[4]=A=>c.value=A)},null,8,["spuIdList","visible"])],64)}}},H$=cn(j$,[["__scopeId","data-v-cc3acf9d"]]),Q$={class:"content"},z$={class:"box"},V$={class:"flex justify-end items-center gap-2"},W$={__name:"BatchUpdateTitleDialog",props:{visible:Boolean},emits:["update:visible"],setup(a,{emit:s}){const r=we(!1),i=we(null),n=Kn(),t=we(null),c=we("平台买手要求修改标题，标题格式有误需要修改。"),u=we([]),f=a,o=s,l=()=>{o("update:visible",!1)},g=d=>{i.value.clearFiles();const A=d[0];A.uid=LC(),i.value.handleStart(A)},m=async()=>{if(!u.value.length){ut.error("请先上传文件");return}i.value.submit()},p=async({file:d,onSuccess:A,onError:v})=>{const w=Date.now().toString(),x=new FormData;if(x.append("file",d),x.append("uuid",w),x.append("reason",c.value),x.append("mallId",n.id),!d){ut.error("未选择文件");return}const C="http://127.0.0.1:10020/api/batchModifyProductName";try{r.value=!0,t.value.start(()=>kf({uuid:w})).then(T=>{T===1&&l()}).catch(T=>{ut({message:`读取进度失败: ${T}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{t.value.stop(),r.value=!1});const k=await K8();py.post(C,x,{headers:{"Content-Type":"multipart/form-data",clientid:k}}).then(T=>{A(T.data);const{errorMessageList:S,failCnt:M,status:P,successCnt:N}=T.data;if(!P==0){t.value.stop(),ut({message:`批量更新标题失败: ${T.data.errorMsg||"未知错误"}`,type:"error",duration:1e4,zIndex:999999999}),u.value=[];return}const B=M>0||(S==null?void 0:S.length);let O="";if(N!==0&&(O+=`<p class="notify-success-text">批量更新标题成功<strong>${N}个</strong></p>`),S!=null&&S.length){O+=`<p class="notify-error-text">失败<strong>${S.length}个</strong></p><ul style="padding: 0">`;for(const F of S)O+=`<li>SPU: ${F.id}<ul><li class="notify-error-text">${F.message}</li></ul></li>`;O+="</ul>"}const I=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:O})});ha({title:"提示",message:I,dangerouslyUseHTMLString:!1,type:B?"warning":"success",customClass:"CustomNotifications",duration:B?432e5:4e3})}).catch(T=>{v(T)})}catch{}},_=()=>{var d;u.value=[],(d=t.value)==null||d.reset()},y=()=>{window.open("https://www.kuajingabc.com/#/manual/63","_blank")},h=()=>{const d=document.createElement("a");d.href=chrome.runtime.getURL("example/填写模板.xlsx"),d.download="批量更新标题示例.xlsx",document.body.appendChild(d),d.click(),document.body.removeChild(d)};return(d,A)=>{const v=Ce("el-icon"),w=Ce("el-upload"),x=Ce("el-input"),C=Ce("el-button"),k=Ce("el-dialog");return Oe(),Et(k,{"align-center":"",modelValue:f.visible,"onUpdate:modelValue":A[2]||(A[2]=T=>f.visible=T),width:"600","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"15px"},onOpen:_},{header:q(()=>[de("div",{style:{display:"flex","align-items":"center"}},[A[3]||(A[3]=de("h4",null,"【凌风跨境工具箱】批量更新标题",-1)),de("div",{class:"DescriptionTips",onClick:y},"查看功能说明")])]),footer:q(()=>[z(Qc,{style:{"margin-bottom":"10px"},ref_key:"progressTickerRef",ref:t,"success-text":"更新成功","stroke-width":12},null,512),de("div",V$,[z(C,{disabled:r.value,onClick:l},{default:q(()=>[...A[11]||(A[11]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(C,{type:"primary",onClick:m,loading:r.value},{default:q(()=>[...A[12]||(A[12]=[Ue(" 开始更新 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[de("div",Q$,[z(w,{ref_key:"uploadRef",ref:i,"file-list":u.value,"onUpdate:fileList":A[0]||(A[0]=T=>u.value=T),class:"upload-demo","http-request":p,limit:1,"on-exceed":g,"before-upload":d.beforeAvatarUpload,accept:".xls,.xlsx","auto-upload":!1,disabled:r.value},{default:q(()=>[de("div",z$,[z(v,{class:"avatar-uploader-icon"},{default:q(()=>[z(St(F8))]),_:1}),A[4]||(A[4]=de("div",{style:{color:"#000","font-size":"13px","margin-top":"5px"}},"选择Excel文件",-1))])]),_:1},8,["file-list","before-upload","disabled"])]),de("div",{style:{margin:"15px 0"}},[A[6]||(A[6]=de("div",{class:"text"},"Excel文件内容格式说明：",-1)),A[7]||(A[7]=de("div",{class:"text"},"第1列是需要修改标题的SPU ID；",-1)),A[8]||(A[8]=de("div",{class:"text"},"第2列是指定标题中需要被替换的文本。如果此列为空，则直接将对应的SPU ID的标题替换为第3列的内容；",-1)),A[9]||(A[9]=de("div",{class:"text"},"第3列是需要替换到标题中去的文本。",-1)),de("div",{class:"text"},[A[5]||(A[5]=Ue("查看 ",-1)),de("span",{style:{color:"#fb7701",cursor:"pointer"},onClick:h},"示例文件")])]),de("div",null,[A[10]||(A[10]=de("div",{style:{"margin-bottom":"8px"}},"修改原因：",-1)),z(x,{type:"textarea",resize:"none",rows:3,modelValue:c.value,"onUpdate:modelValue":A[1]||(A[1]=T=>c.value=T),placeholder:"请输入修改原因"},null,8,["modelValue"])])]),_:1},8,["modelValue"])}}},G$=cn(W$,[["__scopeId","data-v-05df979e"]]),$$={__name:"BatchUpdateTitle",setup(a){const s=we(!1),r=Kn(),i=we(!1),n=async()=>{s.value=!0;const t=await r.init();s.value=!1,t&&(i.value=!0)};return(t,c)=>{const u=Ce("el-button");return Oe(),st(Zt,null,[z(u,{class:"custom-button",onClick:n,type:"primary",loading:s.value},{default:q(()=>[...c[1]||(c[1]=[Ue(" 【凌风跨境工具箱】批量更新标题 ",-1)])]),_:1},8,["loading"]),z(G$,{visible:i.value,"onUpdate:visible":c[0]||(c[0]=f=>i.value=f)},null,8,["visible"])],64)}}};function K$(a){return pi({url:"/api/api/batchUpdateExceptReceiveAreaConfigType",method:"post",data:a})}function Y$(a){return pi({url:"/api/api/batchSignPod",method:"post",data:a})}function Tk(a,s,r){let i=`/serv/api/temuPodTemplate?page_id=${a}&page_size=${s}`;return To({url:i,method:"get"})}function X$(a){return To({url:"/serv/api/temuPodTemplate",method:"post",data:a})}function Z$(a){return pi({url:"/api/api/batchSettingPodInfo",method:"post",data:a})}function J$(a){return To({url:"/serv/api/temuPodTemplate",method:"delete",data:a})}const q$={};function eK(a,s){const r=Ce("el-button");return Oe(),Et(r,{class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/productManagement/temuInformation",target:"_blank",rel:""},{default:q(()=>[...s[0]||(s[0]=[Ue(" 【凌风跨境工具箱】批量修改商品属性 ",-1)])]),_:1})}const tK=cn(q$,[["render",eK]]);function Ek(a=0,s=0,r,i=0){let n="",t=r&&r.length>0||s>0;if(a&&(n+=`<p class="notify-success-text">操作成功数量: ${a}</p>`),s&&(n+=`<p class="notify-error-text">操作失败数量: ${s}</p>`),r&&r.length>0){n+='<ul style="padding: 0;">',n+="<li><p>失败详情:</p></li>";for(const u of r)n+=`<li>${u.name}: ${u.reason}</li>`;n+="</ul>"}const c=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:n})});return ha({title:"提示",message:c,dangerouslyUseHTMLString:!0,customClass:"lf-notify-box",type:t?"warning":"success",duration:t?i:3e3}),!t}function rK(a){return pi({url:"/visage-agent-seller/customization/template/queryTechnology",method:"POST",headers:{mallid:a},data:{}})}const Ik=xi({__name:"PodTechnologySelect",setup(a,{expose:s}){const r=Kn(),i=we([]),n=we([]),t=we(),c=we({technologyType:3,singleTechnologyFirstType:null,singleTechnologySecondType:null,combinedTechnologyFirstType:null,combinedTechnologySecondType:null});return oa(()=>{rK(`${r.id}`).then(u=>{const{success:f,errorMsg:o,result:l}=u;if(!f){ut.error({message:`获取工艺列表失败: ${o}`,showClose:!0,duration:0});return}i.value=l.technologyMap[1],n.value=l.technologyMap[2]})}),s({async getCustomizedTechnology(){const{technologyType:u,singleTechnologyFirstType:f,singleTechnologySecondType:o,combinedTechnologyFirstType:l,combinedTechnologySecondType:g}=c.value;if(u===3)return{validate:!0,data:null};try{if(!await t.value.validate())return{validate:!1}}catch{return{validate:!1}}switch(u){case 1:return{validate:!0,data:{technologyType:u,firstType:f.id,twiceType:o?[o.id]:null}};case 2:return{validate:!0,data:{technologyType:u,firstType:l.id,twiceType:g==null?void 0:g.map(m=>m.id)}};default:return{validate:!0,data:null}}}}),(u,f)=>{const o=Ce("el-radio"),l=Ce("el-radio-group"),g=Ce("el-form-item"),m=Ce("el-option"),p=Ce("el-select"),_=Ce("el-checkbox"),y=Ce("el-form");return Oe(),Et(y,null,{default:q(()=>[z(g,{label:"工艺类型:"},{default:q(()=>[z(l,{modelValue:c.value.technologyType,"onUpdate:modelValue":f[0]||(f[0]=h=>c.value.technologyType=h)},{default:q(()=>[z(o,{value:3},{default:q(()=>[...f[7]||(f[7]=[Ue("不选择",-1)])]),_:1}),z(o,{value:1},{default:q(()=>[...f[8]||(f[8]=[Ue("单一工艺",-1)])]),_:1}),z(o,{value:2},{default:q(()=>[...f[9]||(f[9]=[Ue("组合工艺",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),c.value.technologyType?(Oe(),Et(g,{key:0},{default:q(()=>[z(y,{inline:"",model:c.value,ref_key:"formRef",ref:t},{default:q(()=>{var h;return[c.value.technologyType===1?(Oe(),st(Zt,{key:0},[z(g,{prop:"singleTechnologyFirstType",label:"一级工艺:",rules:[{required:!0,message:"一级工艺不能为空",trigger:"blur"}]},{default:q(()=>[z(p,{modelValue:c.value.singleTechnologyFirstType,"onUpdate:modelValue":f[1]||(f[1]=d=>c.value.singleTechnologyFirstType=d),"value-key":"id",style:{width:"150px"},placeholder:"请选择一级工艺",onChange:f[2]||(f[2]=d=>{if(d.id===10001){c.value.singleTechnologySecondType=null;return}})},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(i.value,d=>(Oe(),Et(m,{key:d.id,label:d.name,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),((h=c.value.singleTechnologyFirstType)==null?void 0:h.id)!==10001?(Oe(),Et(g,{key:0,ref:c.value.singleTechnologySecondTypeError,label:"二级工艺:",prop:"singleTechnologySecondType",rules:[{required:!0,message:"二级工艺不能为空",trigger:"blur"}]},{default:q(()=>[z(p,{modelValue:c.value.singleTechnologySecondType,"onUpdate:modelValue":f[3]||(f[3]=d=>c.value.singleTechnologySecondType=d),style:{width:"150px"},placeholder:"请选择二级工艺","value-key":"id"},{default:q(()=>{var d;return[(Oe(!0),st(Zt,null,Hr(((d=c.value.singleTechnologyFirstType)==null?void 0:d.childDetail)||[],A=>(Oe(),Et(m,{key:A.id,label:A.name,value:A},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1},512)):tr("",!0)],64)):tr("",!0),c.value.technologyType===2?(Oe(),st(Zt,{key:1},[z(g,{prop:"combinedTechnologyFirstType",label:"一级工艺:",rules:[{required:!0,message:"一级工艺不能为空",trigger:"blur"}]},{default:q(()=>[z(p,{modelValue:c.value.combinedTechnologyFirstType,"onUpdate:modelValue":f[4]||(f[4]=d=>c.value.combinedTechnologyFirstType=d),style:{width:"150px"},placeholder:"请选择一级工艺","value-key":"id"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(n.value,d=>(Oe(),Et(m,{key:d.id,label:d.name,value:d},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(g,{prop:"combinedTechnologySecondType",label:"二级工艺:",rules:[{required:!0,message:"二级工艺不能为空",trigger:"blur"},{validator:(d,A,v)=>{(A==null?void 0:A.length)>3?v(new Error("最多选择3个")):v()},trigger:"change"}]},{default:q(()=>[z(p,{modelValue:c.value.combinedTechnologySecondType,"onUpdate:modelValue":f[6]||(f[6]=d=>c.value.combinedTechnologySecondType=d),multiple:"",placeholder:"请选择二级工艺",style:{width:"150px"},"value-key":"id"},{default:q(()=>{var d,A,v,w,x,C,k,T,S;return[z(_,{style:{"margin-left":"20px"},"model-value":((d=c.value.combinedTechnologySecondType)==null?void 0:d.length)&&((A=c.value.combinedTechnologySecondType)==null?void 0:A.length)===((w=(v=c.value.combinedTechnologyFirstType)==null?void 0:v.childDetail)==null?void 0:w.length),onChange:f[5]||(f[5]=M=>{var P;M?c.value.combinedTechnologySecondType=((P=c.value.combinedTechnologyFirstType)==null?void 0:P.childDetail)||[]:c.value.combinedTechnologySecondType=[]}),indeterminate:((x=c.value.combinedTechnologySecondType)==null?void 0:x.length)&&((C=c.value.combinedTechnologySecondType)==null?void 0:C.length)!==((T=(k=c.value.combinedTechnologyFirstType)==null?void 0:k.childDetail)==null?void 0:T.length)},{default:q(()=>[...f[10]||(f[10]=[Ue("全选 ",-1)])]),_:1},8,["model-value","indeterminate"]),(Oe(!0),st(Zt,null,Hr(((S=c.value.combinedTechnologyFirstType)==null?void 0:S.childDetail)||[],M=>(Oe(),Et(m,{key:M.id,label:M.name,value:M},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1},8,["rules"])],64)):tr("",!0)]}),_:1},8,["model"])]),_:1})):tr("",!0),z(g,{style:{"margin-top":"18px"}},{default:q(()=>[...f[11]||(f[11]=[de("div",{class:"text-gray-400 text-xs"},"如存在已填过工艺类型的商品, 则会跳过该商品的工艺类型填写, 直接签署协议",-1)])]),_:1})]),_:1})}}}),nK={class:"flex justify-end mt-2"},aK=xi({__name:"BatchSignPODAgreement",setup(a){const s=we(!1),r=we(!1),i=we(!1),n=we(),t=we(),c=Kn(),u=async()=>{r.value=!0;const o=await c.init();r.value=!1,o&&(s.value=!0)},f=async()=>{var m;const{validate:o,data:l}=await((m=t.value)==null?void 0:m.getCustomizedTechnology());if(!o){ut.error("请完成表单填写");return}i.value=!0;const g=Sf();try{n.value.start(g);const p={uuid:g,mallId:`${c.id}`,customizedTechnologyReq:l},{status:_,error:y,errorMsg:h,successCnt:d,failCnt:A,failInfoList:v}=await Y$(p);if(_!==0)ut.error({message:`操作失败: ${y||h}`,showClose:!0,duration:0}),n.value.stop();else{let w=v||[];w=w.map(C=>({name:`SPU-${C.spuId}`,reason:C.failInfo})),Ek(d,A,w)&&(s.value=!1);try{await w6()}catch(C){ut.error({message:"自动刷新页面失败, 可能是 TEMU 更新了页面, 请手动刷新页面以获取最新数据",showClose:!0,duration:0}),console.error(C)}}}catch(p){ut.error({message:`操作失败: ${p.message}`,showClose:!0,duration:0}),n.value.stop()}finally{i.value=!1}};return(o,l)=>{const g=Ce("el-button"),m=Ce("el-dialog");return Oe(),st(Zt,null,[z(g,{type:"primary",onClick:u,loading:r.value},{default:q(()=>[...l[2]||(l[2]=[Ue(" 【凌风跨境工具箱】批量签署POD协议 ",-1)])]),_:1},8,["loading"]),z(m,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=p=>s.value=p),"close-on-click-modal":!1,"close-on-press-escape":!1},{header:q(()=>[...l[3]||(l[3]=[de("h4",null,"【凌风跨境工具箱】批量签署POD协议",-1)])]),footer:q(()=>[z(jc,{ref_key:"progressRef",ref:n,"stroke-width":16},null,512),de("div",nK,[z(g,{onClick:l[0]||(l[0]=p=>s.value=!1),disabled:i.value},{default:q(()=>[...l[4]||(l[4]=[Ue("关 闭",-1)])]),_:1},8,["disabled"]),z(g,{type:"primary",onClick:f,loading:i.value},{default:q(()=>[...l[5]||(l[5]=[Ue("开始批量签署",-1)])]),_:1},8,["loading"])])]),default:q(()=>[l[6]||(l[6]=de("div",{class:"tip"},[de("p",{class:"font-bold"},"注意:"),de("p",null,[Ue(" 1. 本功能会对当前店铺的"),de("strong",{class:"text-red-900"},"所有定制商品"),Ue("进行批量签署POD协议 ")]),de("p",null," 2. 签订过程中请勿关闭功能界面, 可能会导致批量签署失败 ")],-1)),z(Ik,{ref_key:"podTechnologySelectRef",ref:t},null,512)]),_:1},8,["modelValue"])],64)}}}),Bk=k8(),iK=""+new URL("kefu-auto-Digw9bie.png",import.meta.url).href,sK={style:{margin:"0"}},oK={style:{color:"#0bacf7"}},lK={class:"dialog-footer"},uK={class:"tip",style:{margin:"0"}},cK={class:"dialog-footer"},fK={class:"flex flex-col items-center"},dK={class:"img"},hK=xi({__name:"SaveButton",setup(a){const s=we(!1),r=we(),i=we(null),n=we(!1),t=we(0),c=we(0),u=we(!1),f=Kn(),o=we(!1);let l=0;const g=()=>{var y;if(!((y=i.value)!=null&&y.trim()))return ut.error("请输入有效的模板名称");if(c.value-t.value===0){u.value=!0;return}n.value=!0;const _=l+1;return l=_,new Promise((h,d)=>{const A=r.value.$el.closest('div[class*="index-module__footer"]'),v=A==null?void 0:A.querySelector('button[class*="BTN_primary"]');if(!v){d(new Error("无法找到确认按钮, 可能是 TEMU 更新了页面, 请联系客服"));return}const w=x=>{if(x.data.type==="/visage-agent-seller/customization/template/add"){if(window.removeEventListener("message",w),l!==_)return;const{response:C,params:k}=x.data;C.success&&X$({name:i.value,info:k.surfaces}).then(({status:T,error:S,errorMsg:M})=>{if(T!==0){d(new Error(`保存模板失败: ${S||M}`));return}ut.success("模板保存成功"),Bk.emit("podTemplateSaved"),h()}).catch(T=>{d(T)}).finally(()=>{n.value=!1})}};window.addEventListener("message",w),v.click()})},m=async()=>{o.value=!0;const _=await f.init();o.value=!1,_&&(s.value=!0)},p=async()=>{const _=await Tk();if(_.status!==0)return ut.error(_.errorMsg);c.value=_.count_limit,t.value=_.total};return(_,y)=>{const h=Ce("el-button"),d=Ce("el-input"),A=Ce("el-dialog"),v=Ce("el-image"),w=Ce("el-popover");return Oe(),st(Zt,null,[z(h,{ref_key:"buttonRef",ref:r,type:"primary",onClick:m,loading:o.value},{default:q(()=>[...y[5]||(y[5]=[Ue("【凌风跨境工具箱】保存为定制内容模板",-1)])]),_:1},8,["loading"]),z(A,{"align-center":"",width:"450","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:s.value,"onUpdate:modelValue":y[2]||(y[2]=x=>s.value=x),onOpen:p},{title:q(()=>[de("h4",sK,[y[6]||(y[6]=Ue(" 【凌风跨境工具箱】定制信息模板 ",-1)),de("span",oK,"（模板额度"+ht(t.value)+"/"+ht(c.value)+"）",1)])]),footer:q(()=>[de("div",lK,[z(h,{onClick:y[1]||(y[1]=x=>s.value=!1)},{default:q(()=>[...y[7]||(y[7]=[Ue(" 取消 ",-1)])]),_:1}),z(h,{loading:n.value,onClick:g,type:"primary"},{default:q(()=>[...y[8]||(y[8]=[Ue(" 确定 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[y[9]||(y[9]=de("span",null,"模板名称：",-1)),z(d,{style:{width:"345px"},size:"default",placeholder:"请输入模板名称",modelValue:i.value,"onUpdate:modelValue":y[0]||(y[0]=x=>i.value=x)},null,8,["modelValue"])]),_:1},8,["modelValue"]),z(A,{"align-center":"",width:"450","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:u.value,"onUpdate:modelValue":y[4]||(y[4]=x=>u.value=x)},{title:q(()=>[...y[10]||(y[10]=[de("h4",{style:{margin:"0"}},"温馨提示",-1)])]),footer:q(()=>[de("div",cK,[z(w,{class:"box-item",placement:"top"},{reference:q(()=>[z(h,null,{default:q(()=>[...y[13]||(y[13]=[Ue(" 联系客服 ",-1)])]),_:1})]),default:q(()=>[de("div",fK,[y[11]||(y[11]=de("div",{style:{"font-size":"12px",color:"#000"}},"微信扫码添加客服",-1)),de("div",dK,[z(v,{style:{width:"100px",height:"100px"},src:St(iK)},null,8,["src"])]),y[12]||(y[12]=de("div",{style:{"font-size":"12px",color:"#000"}},"联系客服进行扩容",-1))])]),_:1}),z(h,{loading:n.value,onClick:y[3]||(y[3]=x=>u.value=!1),type:"primary"},{default:q(()=>[...y[14]||(y[14]=[Ue(" 确定 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[de("div",uK," 您当前已使用全部可用模板额度（"+ht(t.value)+"/"+ht(c.value)+"） ",1),y[15]||(y[15]=de("div",{style:{color:"#000",margin:"10px 0 5px 0"}},"您可以进行以下操作：",-1)),y[16]||(y[16]=de("div",{style:{color:"#000"}},[de("span",null,"1、删除闲置模板释放空间"),de("span",{style:{"margin-left":"10px"}},"2、联系客服进行扩容")],-1))]),_:1},8,["modelValue"])],64)}}}),AK={style:{position:"relative"}},pK=xi({__name:"TemplateTable",props:{modelValue:Number},emits:["update:modelValue","update:pod"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get(){return r.modelValue},set(l){if(i("update:modelValue",l),l){const g=t.value.find(m=>m.id===l);g&&i("update:pod",g)}else i("update:pod",null)}}),t=we([]),c=we(!1),u=we({total:0,pageSize:10,currentPage:1}),f=async(l,g)=>{l&&(u.value.currentPage=l),g&&(u.value.pageSize=g),l=u.value.currentPage,g=u.value.pageSize,c.value=!0;try{const{status:m,error:p,errorMsg:_,template_list:y,total:h}=await Tk(l,g);if(m!==0){ut.error(`查询模板数据失败: ${p||_}`);return}t.value=y,u.value.total=h}catch(m){ut.error(`查询模板数据失败: ${m.message}`),console.error(m)}finally{c.value=!1}},o=async l=>{if(t.value.findIndex(m=>m.id===l)!==-1)try{const{status:m,error:p,errorMsg:_}=await J$({t_ids:[l]});if(m!==0){ut.error({message:`删除模板: ${p||_}`});return}t.value.length===1&&(u.value.currentPage=u.value.currentPage>1?u.value.currentPage-1:1),await f()}catch(m){ut.error({message:`删除模板失败: ${m.message}`}),console.error(m)}};return Bk.on("podTemplateSaved",()=>{console.log("podTemplateSaved"),f()}),oa(()=>{f()}),(l,g)=>{const m=Ce("el-checkbox"),p=Ce("el-table-column"),_=Ce("el-button"),y=Ce("el-popconfirm"),h=Ce("el-table"),d=Ce("el-pagination"),A=Ai("loading");return Oe(),st(Zt,null,[na((Oe(),Et(h,{style:{width:"100%"},data:t.value,height:380,border:"","row-class-name":"cursor-pointer","highlight-current-row":"","current-row-key":"id",onRowClick:g[0]||(g[0]=v=>{n.value===v.id?n.value=null:n.value=v.id})},{default:q(()=>[z(p,{width:"55"},{default:q(({row:v})=>[de("div",AK,[z(m,{"model-value":v.id===n.value},null,8,["model-value"]),g[3]||(g[3]=de("div",{style:{position:"absolute",top:"0",right:"0",bottom:"0",left:"0"}},null,-1))])]),_:1}),z(p,{prop:"name",label:"模板名称"}),z(p,{prop:"pub_date",label:"创建时间",width:"180"}),z(p,{label:"操作",width:"180",align:"center"},{default:q(({row:v})=>[z(y,{title:"确认删除该模板?",onConfirm:()=>{o(v.id)}},{reference:q(()=>[z(_,{type:"text",icon:St(qh),onClick:_0(()=>{},["stop"])},null,8,["icon"])]),_:1},8,["onConfirm"])]),_:1})]),_:1},8,["data"])),[[A,c.value]]),z(d,{"current-page":u.value.currentPage,"onUpdate:currentPage":g[1]||(g[1]=v=>u.value.currentPage=v),"page-size":u.value.pageSize,"onUpdate:pageSize":g[2]||(g[2]=v=>u.value.pageSize=v),total:u.value.total,layout:"total, sizes, prev, pager, next, jumper",onChange:f,"page-sizes":[10,20,50,100]},null,8,["current-page","page-size","total"])],64)}}}),Fk=cn(pK,[["__scopeId","data-v-58d3d69f"]]),mK=["onClick"],gK=xi({__name:"SpecTemplateTable",props:{modelValue:{}},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get(){const t=r.modelValue;return t.forEach(c=>{c.podName===void 0&&(c.podName=""),c.dialogVisible===void 0&&(c.dialogVisible=!1)}),t},set(t){i("update:modelValue",t)}});return(t,c)=>{const u=Ce("el-table-column"),f=Ce("el-icon"),o=Ce("el-button"),l=Ce("el-dialog"),g=Ce("el-table");return Oe(),Et(g,{style:{width:"100%"},data:n.value,height:380},{default:q(()=>[z(u,{prop:"specValue",label:"商品规格",align:"center"}),z(u,{label:"选择模板",align:"center"},{default:q(({row:m})=>[de("span",{class:"lf-dropdown-link cursor-pointer",onClick:p=>m.dialogVisible=!0},[Ue(ht(m.podName||"请选择模板")+" ",1),z(f,{class:"lf-icon--right"},{default:q(()=>[z(St(H2))]),_:1})],8,mK),z(l,{modelValue:m.dialogVisible,"onUpdate:modelValue":p=>m.dialogVisible=p,"append-to-body":"","align-center":""},{footer:q(()=>[z(o,{onClick:()=>{m.podId=null,m.podName="",m.dialogVisible=!1}},{default:q(()=>[...c[0]||(c[0]=[Ue("取消选中",-1)])]),_:1},8,["onClick"]),z(o,{type:"primary",onClick:p=>m.dialogVisible=!1},{default:q(()=>[...c[1]||(c[1]=[Ue("确定",-1)])]),_:1},8,["onClick"])]),default:q(()=>[z(Fk,{modelValue:m.podId,"onUpdate:modelValue":p=>m.podId=p,"onUpdate:pod":p=>{m.podName=(p==null?void 0:p.name)||""}},null,8,["modelValue","onUpdate:modelValue","onUpdate:pod"])]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])}}}),vK=["textContent"],yK={class:"flex justify-end mt-2"},bK=xi({__name:"BatchFillCustomInfo",setup(a){const s=we(),r=we(!1),i=we(!1),n=we([]),t=we(!1);we(0);const c=we(),u=we({isAutoSignPod:!0,podId:0,isSetStock:!1,stock:0,mode:0,specToTemplateInfoList:[]}),f=Kn(),o=async()=>{i.value=!0;const p=await f.init();if(i.value=!1,!!p){try{const _=await y6();if(_&&_.length>0)n.value=_;else{ut.error("请选择商品");return}const y=await LN(_,f.id);let h=new Set;y.forEach(d=>{d.productSkuSummaries.forEach(A=>{const v=A.productSkuSpecList.map(w=>w.specName).join("-");v&&!h.has(v)&&h.add(v)})}),h=Array.from(h),u.value.specToTemplateInfoList=h.map(d=>({specValue:d,podId:null}))}catch(_){ut.error("无法获取商品信息, 可能是 TEMU 更新了页面, 请联系客服"),console.error(_)}r.value=!0}},l=async()=>{var h;const p=u.value;let _=null;if(p.isAutoSignPod){const{validate:d,data:A}=await((h=s.value)==null?void 0:h.getCustomizedTechnology());if(!d){ut.error("请完成表单填写");return}_=A}t.value=!0;const y=Sf();try{if(p.mode===0&&!p.podId){ut.error("请选择模板");return}let d=[];if(p.mode===1&&(d=p.specToTemplateInfoList.filter(S=>S.podId),d.length===0)){ut.error("请选择模板");return}const A={uuid:y,mallId:`${f.id}`,spuIdList:n.value,isAutoSignPod:p.isAutoSignPod,stock:p.isSetStock?p.stock:null,podId:p.podId,mode:p.mode,specToTemplateInfoList:d,customizedTechnologyReq:_};c.value.start(y);const{status:v,error:w,errorMsg:x,successCnt:C,failCnt:k,failInfoList:T}=await Z$(A);if(v!==0)ut.error({message:`操作失败: ${w||x}`,showClose:!0,duration:0}),c.value.stop();else{let S=T||[];if(S=S.map(P=>({name:`SPU-${P.spuId}`,reason:P.failInfo})),Ek(C,k,S)){r.value=!1;try{await w6()}catch(P){ut.error({message:"自动刷新页面失败, 可能是 TEMU 更新了页面, 请手动刷新页面以获取最新数据",showClose:!0,duration:0}),console.error(P)}}}}catch(d){ut.error({message:`操作失败: ${d.message}`,showClose:!0,duration:0}),c.value.stop()}finally{t.value=!1}},g=window.location.pathname,m=setInterval(()=>{if(g!==window.location.pathname){clearInterval(m);return}const p=document.querySelector('div[class*="Drawer_outerWrapper"]:last-child');if(!p||p.querySelector("div.lingfeng-container"))return;const y=p.querySelector('div[class*="index-module__title-text"]');if(!y||y.textContent.trim()!=="配置定制内容")return;const h=p.querySelector('div[class*="index-module__footer"]')||p.querySelector('div[class*="footer_footer"]');if(!h){clearInterval(m),ut.error("无法注入保存模板按钮, 可能是 TEMU 更新了页面, 请联系客服");return}const d=document.createElement("div");d.className="lingfeng-container",d.style.marginLeft="13px",h.appendChild(d),ks(d,hK)},1e3);return(p,_)=>{const y=Ce("el-button"),h=Ce("el-tooltip"),d=Ce("el-alert"),A=Ce("el-switch"),v=Ce("el-form-item"),w=Ce("el-input-number"),x=Ce("el-radio"),C=Ce("el-radio-group"),k=Ce("el-form"),T=Ce("el-dialog");return Oe(),st(Zt,null,[z(y,{type:"primary",onClick:o,loading:i.value},{default:q(()=>[..._[8]||(_[8]=[Ue(" 【凌风跨境工具箱】批量填写定制信息 ",-1)])]),_:1},8,["loading"]),z(T,{modelValue:r.value,"onUpdate:modelValue":_[7]||(_[7]=S=>r.value=S),"close-on-click-modal":!1,"close-on-press-escape":!1,width:"80%"},{header:q(()=>[_[12]||(_[12]=de("h4",null,"【凌风跨境工具箱】批量填写定制信息",-1)),z(d,{type:"info",closable:!1},{title:q(()=>[z(h,{"raw-content":""},{content:q(()=>[_[9]||(_[9]=de("p",null,"SPU:",-1)),de("p",{textContent:ht(n.value.join(", "))},null,8,vK)]),default:q(()=>[de("span",null,[_[10]||(_[10]=Ue("当前选中",-1)),de("strong",null,ht(n.value.length)+"个",1),_[11]||(_[11]=Ue("商品",-1))])]),_:1})]),_:1})]),footer:q(()=>[z(jc,{ref_key:"progressRef",ref:c,"stroke-width":16},null,512),de("div",yK,[z(y,{onClick:_[6]||(_[6]=S=>r.value=!1),disabled:t.value},{default:q(()=>[..._[15]||(_[15]=[Ue("关 闭",-1)])]),_:1},8,["disabled"]),z(y,{type:"primary",onClick:l,loading:t.value},{default:q(()=>[..._[16]||(_[16]=[Ue("开始填写定制信息",-1)])]),_:1},8,["loading"])])]),default:q(()=>[de("div",null,[z(k,{ref:"formRef",model:u.value,"label-position":"right","label-width":"220px"},{default:q(()=>[z(v,{label:"是否自动签署POD协议:"},{default:q(()=>[z(A,{modelValue:u.value.isAutoSignPod,"onUpdate:modelValue":_[0]||(_[0]=S=>u.value.isAutoSignPod=S),"active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),z(v,null,{default:q(()=>[u.value.isAutoSignPod?(Oe(),Et(Ik,{key:0,ref_key:"podTechnologySelectRef",ref:s},null,512)):tr("",!0)]),_:1}),z(v,{label:"是否配置商品库存:"},{default:q(()=>[z(A,{modelValue:u.value.isSetStock,"onUpdate:modelValue":_[1]||(_[1]=S=>u.value.isSetStock=S),"active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),_:1}),u.value.isSetStock?(Oe(),Et(v,{key:0,label:"配置商品库存:"},{default:q(()=>[z(w,{modelValue:u.value.stock,"onUpdate:modelValue":_[2]||(_[2]=S=>u.value.stock=S),min:0,step:1,precision:0,"controls-position":"right",placeholder:"请输入商品库存"},null,8,["modelValue"])]),_:1})):tr("",!0),z(v,{label:"批量更新模式:"},{default:q(()=>[z(C,{modelValue:u.value.mode,"onUpdate:modelValue":_[3]||(_[3]=S=>u.value.mode=S)},{default:q(()=>[z(x,{value:0},{default:q(()=>[..._[13]||(_[13]=[Ue("快速模式: 选择单个模板进行批量填写",-1)])]),_:1}),z(x,{value:1},{default:q(()=>[..._[14]||(_[14]=[Ue("慢速模式: 根据商品规格进行详细填写",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),u.value.mode===0?(Oe(),Et(Fk,{key:0,modelValue:u.value.podId,"onUpdate:modelValue":_[4]||(_[4]=S=>u.value.podId=S)},null,8,["modelValue"])):(Oe(),Et(gK,{key:1,modelValue:u.value.specToTemplateInfoList,"onUpdate:modelValue":_[5]||(_[5]=S=>u.value.specToTemplateInfoList=S)},null,8,["modelValue"]))])]),_:1},8,["modelValue"])],64)}}});function wK({page_id:a,page_size:s}){return To({method:"GET",url:"/serv/api/temu_compliance_template?page_id="+a+"&page_size="+s})}function H3(a){return pi({method:"POST",url:"/api/api/temuBatchUpdateComplianceInfo",data:a,timeout:432e5})}function _K(a){return pi({method:"POST",url:"/api/api/temuBatchUpdateComplianceInfo2",data:a,timeout:432e5})}function xK(a){return To({method:"DELETE",url:"/serv/api/temu_compliance_template",data:a})}function CK(a){return To({method:"POST",url:"/serv/api/temu_compliance_template",data:a})}function SK(a){return To({method:"POST",url:"/serv/api/qualifications_management/create",data:a})}function Q3(a){return To({method:"POST",url:"/serv/api/qualifications_management/delete",data:a})}function z3(a){return To({method:"POST",url:"/serv/api/qualifications_management/findByCertType",data:a})}function kK(a){return pi({method:"POST",url:"/api/api/batchRefuseAdjustPrice",data:a})}function TK(a){return pi({method:"POST",url:"/api/api/batchAgreeAdjustPrice",data:a})}function EK(a,s){return pi({method:"POST",url:"/api/api/temuBatchUpdateCertInfo",data:a,timeout:432e5})}const V3=({query_type:a,Mallid:s})=>Un.post("/ms/bg-flux-ms/compliance_property/query_config",{query_type:a},{headers:{Mallid:s}}),W3=({parentCatId:a,Mallid:s})=>Un.post("/mms/arbok/category/children/list",{parentCatId:a},{headers:{Mallid:s}}),IK=({Mallid:a})=>Un.post("/marvel-mms/cn/api/kiana/gmp/bg/magneto/api/price/adjust/reason/list",{},{headers:{Mallid:a}}),BK=({Mallid:a})=>Un.post("/api/kiana/mms/gmp/bg/magneto/api/price/adjust/reason/list",{},{headers:{Mallid:a}});function FK(a){return pi({method:"POST",url:"/api/api/productBatchAdjustPrice",data:a})}function Mk(){return pi({method:"POST",url:"/api/api/getMallToAdjustPriceInfo"})}function G3(a){return pi({method:"POST",url:"/api/api/batchRefuseAdjustPriceV2",data:a})}function MK(a){return pi({method:"POST",url:"/api/api/batchAgreeAdjustPriceV2",data:a})}function DK(){return pi({method:"POST",url:"/api/api/getAdjustResult"})}function xm(){return pi({method:"POST",url:"/api/api/getAdjustPriceStatusInfo"})}function OK(){return pi({method:"POST",url:"/api/api/stopRefuseAdjustPrice"})}function LK(a){return pi({method:"POST",url:"/api/api/batchSetRecommendedRetailPrice",data:a})}const PK=({Mallid:a})=>Un.post("/mms/arbok/product_cert/query/all_cert",{},{headers:{Mallid:a}}),RK=({Mallid:a,data:s})=>Un.post("/mms/arbok/product_cert/query/list",s,{headers:{Mallid:a}}),UK={class:"content"},NK={class:"flex justify-end items-center gap-2"},jK={__name:"BatchUpdateRetailPriceDialog",props:{visible:Boolean,skuNum:Number},emits:["update:visible"],setup(a,{emit:s}){const r=we(!1),i=Kn(),n=we(null),t=a,c=s,u=()=>{c("update:visible",!1)},f=[{label:"设置成固定价格",value:1},{label:"设置成日常价范围的高价",value:2},{label:"设置成日常价范围的低价",value:3}],o=we({value:null,setType:1}),l={value:[{required:!0,message:"请输入固定价格",trigger:"blur"}],setType:[{required:!0,message:"请选择建议价格的选项",trigger:"change"}]},g=y=>{if(!y)return"";let h=y.toString().replace(/[^\d.]/g,"");const d=h.split(".");return d.length>2&&(h=d[0]+"."+d.slice(1).join("")),d.length===2&&(h=d[0]+"."+d[1].slice(0,2)),h},m=we(),p=()=>{m.value&&m.value.validate(async(y,h)=>{if(y)try{const d=Date.now().toString();r.value=!0,n.value.start(()=>kf({uuid:d})).then(M=>{M===1&&u()}).catch(M=>{ut({message:`读取进度失败: ${M}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{n.value.stop(),r.value=!1});const A={value:o.value.setType===1?Math.round(o.value.value*100):null,setType:o.value.setType,mallid:i.id,uuid:d},v=await LK(A),{badInfos:w,status:x,successCount:C}=v;if(!x==0){n.value.stop(),ut({message:`批量设置失败: ${(v==null?void 0:v.error)||(v==null?void 0:v.errorMsg)||"未知错误"}`,type:"error",duration:1e4,zIndex:999999999});return}const k=w==null?void 0:w.length;let T="";if(C!==0&&(T+=`<p class="notify-success-text">批量设置成功SKU<strong>${C}个</strong></p>`),w!=null&&w.length){T+=`<p class="notify-error-text">失败<strong>${w.length}个</strong></p><ul style="padding: 0">`;for(const M of w)T+=`<li>SPU: ${M.skuId}<ul><li class="notify-error-text">${M.err}</li></ul></li>`;T+="</ul>"}const S=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:T})});ha({title:"提示",message:S,dangerouslyUseHTMLString:!1,type:k?"warning":"success",customClass:"CustomNotifications",duration:k?432e5:4e3})}catch{n.value.stop(),r.value=!1}else console.log("error submit!",h)})},_=()=>{var y;(y=n.value)==null||y.reset(),o.value.setType=1,o.value.value=null};return(y,h)=>{const d=Ce("el-alert"),A=Ce("el-option"),v=Ce("el-select"),w=Ce("el-form-item"),x=Ce("el-input"),C=Ce("el-form"),k=Ce("el-button"),T=Ce("el-dialog");return Oe(),Et(T,{"align-center":"",modelValue:t.visible,"onUpdate:modelValue":h[2]||(h[2]=S=>t.visible=S),width:"600","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"15px"},onOpen:_},{header:q(()=>[...h[3]||(h[3]=[de("h4",null,"【凌风跨境工具箱】批量填写建议零售价",-1)])]),footer:q(()=>[z(Qc,{style:{"margin-bottom":"10px",width:"100%"},ref_key:"progressTickerRef",ref:n,"success-text":"更新成功","stroke-width":12},null,512),de("div",NK,[z(k,{disabled:r.value,onClick:u},{default:q(()=>[...h[7]||(h[7]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(k,{type:"primary",onClick:p,loading:r.value},{default:q(()=>[...h[8]||(h[8]=[Ue(" 开始提交 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(d,{style:{width:"100%"},closable:!1,type:"success"},{default:q(()=>[de("span",null,[h[4]||(h[4]=Ue("当前批量填写并提交 ",-1)),de("strong",null,ht(a.skuNum),1),h[5]||(h[5]=Ue(" 个SKU",-1))])]),_:1}),h[9]||(h[9]=de("div",{class:"tip"},[de("p",null,[de("span",{class:"font-bold"},"注意:"),Ue(" 提交过程中请勿关闭功能界面，可能会导致批是填写失败")])],-1)),de("div",UK,[z(C,{ref_key:"ruleFormRef",ref:m,model:o.value,rules:l,"label-position":"right","label-width":"166px"},{default:q(()=>[z(w,{label:"请设置建议价格的选项",prop:"setType"},{default:q(()=>[z(v,{size:"default",modelValue:o.value.setType,"onUpdate:modelValue":h[0]||(h[0]=S=>o.value.setType=S)},{default:q(()=>[(Oe(),st(Zt,null,Hr(f,S=>z(A,{key:S.label,label:S.label,value:S.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),o.value.setType===1?(Oe(),Et(w,{key:0,label:"请输入固定价格",prop:"value"},{default:q(()=>[z(x,{modelValue:o.value.value,"onUpdate:modelValue":h[1]||(h[1]=S=>o.value.value=S),formatter:g},{append:q(()=>[...h[6]||(h[6]=[Ue("元",-1)])]),_:1},8,["modelValue"])]),_:1})):tr("",!0)]),_:1},8,["model"])])]),_:1},8,["modelValue"])}}},HK=cn(jK,[["__scopeId","data-v-2d643d29"]]),QK={__name:"BatchUpdateRetailPrice",setup(a){const s=we(!1),r=Kn(),i=we(!1),n=we(0),t=async()=>{var o,l;s.value=!0;const c=await r.init();if(s.value=!1,!c)return;const f=[(o=document.querySelector('div[class*="TAB_cardLabel"][class*="TAB_active"]'))==null?void 0:o.innerText,(l=Array.from(document.querySelectorAll('div[class*="TAB_lineLabel"][class*="TAB_active"]')).filter(g=>g.innerText.includes("待填写"))[0])==null?void 0:l.innerText].filter(g=>g)[0];if(f&&f.includes("待填写")){if(n.value=Number(f.replace("待填写","").trim()),n.value===0)return ut.error("暂无”待填写“的商品");i.value=!0}};return(c,u)=>{const f=Ce("el-button");return Oe(),st(Zt,null,[z(f,{class:"custom-button",onClick:t,type:"primary",loading:s.value},{default:q(()=>[...u[1]||(u[1]=[Ue(" 【凌风跨境工具箱】批量填写建议零售价 ",-1)])]),_:1},8,["loading"]),z(HK,{visible:i.value,"onUpdate:visible":u[0]||(u[0]=o=>i.value=o),"sku-num":n.value},null,8,["visible","sku-num"])],64)}}},zK={},VK={viewBox:"0 0 2048 1024",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function WK(a,s){return Oe(),st("svg",VK,[...s[0]||(s[0]=[de("path",{d:"M128 0h1792c76.8 0 128 51.2 128 128v768c0 76.8-51.2 128-128 128H128C51.2 1024 0 972.8 0 896V128C0 64 51.2 0 128 0z",fill:"currentColor"},null,-1),de("text",{x:"50%",y:"50%",dy:"0.1em","dominant-baseline":"middle","text-anchor":"middle","font-size":"480",fill:"#802c00"}," 全店免费 ",-1)])])}const GK=cn(zK,[["render",WK]]),$K={class:"corner-icon"},KK=xi({__name:"FreeAllButton",setup(a){const s=async r=>{if(r.__isRedispatched)return;if(r.preventDefault(),r.stopImmediatePropagation(),await VC()){const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});n.__isRedispatched=!0,setTimeout(()=>{var t;(t=r.target)==null||t.dispatchEvent(n)},10)}};return(r,i)=>{const n=Ce("el-icon");return Oe(),st("div",{class:"slot-wrapper",onClickCapture:s},[R1(r.$slots,"default",{},void 0,!0),de("div",$K,[z(n,{color:"#ffed26",size:"42"},{default:q(()=>[z(GK)]),_:1})])],32)}}}),No=cn(KK,[["__scopeId","data-v-ed088921"]]);function Dk(a,s){return new Promise((r,i)=>{if(s!=null&&s.aborted){i(s.reason);return}const n=setTimeout(()=>{s==null||s.removeEventListener("abort",t),r()},a),t=()=>{clearTimeout(n),i(s.reason)};s==null||s.addEventListener("abort",t,{once:!0})})}const Ok=py.create({baseURL:window.location.origin});function YK(a){a.interceptors.request.use(async s=>(s.retryConfig&&(s.retryConfig={maxRetry:5,retryDelay:5e3,shouldRetry:XK,onError:ZK,_currentRetry:0,...s.retryConfig}),s)),a.interceptors.response.use(s=>{const r=s.config,i=r.retryConfig;if(i){const n=i.shouldRetry(s.data);if(n)return $3(a,r,n)}return s.data},s=>{const{config:r}=s;return $3(a,r,s)})}function XK(a){if(!(a!=null&&a.success))return new Error((a==null?void 0:a.errorMsg)||`响应不符合 TEMU 规范: ${JSON.stringify(a)}`)}function ZK(a,s){console.error(`请求失败, 开始第 ${s} 次重试, 错误信息:`,a)}async function $3(a,s,r){var n;const i=s.retryConfig;if(i){if(i._currentRetry++,(n=i.onError)==null||n.call(i,r,i._currentRetry),i._currentRetry>=i.maxRetry)return Promise.reject(r);try{await Dk(i.retryDelay,s.signal)}catch(t){return Promise.reject(t)}return a(s)}return Promise.reject(r)}YK(Ok);async function rw(a,s){return pi({url:"/visage-agent-seller/product/skc/pageQuery",method:"POST",data:{...a,page:a.page||1,pageSize:a.pageSize||20},signal:s,headers:{mallid:Di()}})}function JK(a){let s=[];for(const r of a){const i=r.productSkuSummaries,n={...r,productSkuSummaries:void 0};i.forEach((t,c)=>{t.skc=n,t.skcRowSpan=c===0?i.length:0}),s.push(...i)}return s}function nw(a){for(let s=10;s>=1;s--){const r=`cat${s}`,i=a[r];if(i&&i.catId!==0)return i}return null}function qK(a,s){return Ok({url:"/visage-agent-seller/product/skc/part/edit",method:"POST",data:a,headers:{mallid:Di()},signal:s,retryConfig:{maxRetries:5,retryDelay:1e4,shouldRetry:r=>{var i;if(!r.success&&(i=r.errorMsg)!=null&&i.includes("系统错误"))return new Error(r.errorMsg)}}})}function eY(a,s){const r=[];for(let i=0;i<a.length;i+=s)r.push(a.slice(i,i+s));return r}async function tY(a,s){return pi({url:"/visage-agent-seller/product/sku/site/suggestedPrice/pageQuery",method:"post",data:a,headers:{mallid:Di()},signal:s})}function rY(a){let s=[];for(const r of a){const i=r.skuList,n={...r,skuList:void 0};i.forEach((t,c)=>{t.skc=n,t.skcRowSpan=c===0?i.length:0}),s.push(...i)}return s}async function nY(a,s){return pi({url:"/visage-agent-seller/product/sku/site/suggestedPrice/custom/sku/submit",method:"post",data:a,headers:{mallid:Di()},signal:s})}async function aY(a,s,r,i){const n=eY(s,10),t=new Array(r).fill(null),c=n.length;let u=0;const f=new AbortController;let o=0;const l=async()=>{for(;o<c&&!f.signal.aborted;){const g=o++,m=n[g];try{const p=await nY({skuPriceList:m,status:a},f.signal);if(!p.success)throw new Error(p.errorMsg);u++,i(Math.round(u*100/c))}catch(p){throw p}}};try{await Promise.all(t.map(()=>l()))}catch(g){throw f.abort(),g}}function Lk(a){return Un.post("/visage-agent-seller/product/skc/pageQuery",a,{headers:{mallid:Di()}})}function Pk(a){return Un.post("/visage-agent-seller/product/query",a,{headers:{mallid:Di()}})}function Rk(a){return Un.post("/lich-mms/audit/edit/task/product/batchAdd",a,{headers:{mallid:Di()}})}function Uk(a){return Un.post("visage-agent-seller/product/edit/task/reply",a,{headers:{mallid:Di()}})}function iY(a){return Un.post("/api/kiana/mms/robin/cancelSelect",a,{headers:{mallid:Di()}})}function ex(a){return N0.axios({url:"https://agentseller.temu.com/api/kiana/marvel-supplier/api/ultraman/chat/reception/querySelfServiceTools",method:"POST",headers:{mallid:Di()},data:{}})}function tx(a){return N0.axios({url:"https://agentseller.temu.com/api/kiana/marvel-supplier/api/ultraman/chat/reception/queryProductSkcBasicInfo",method:"POST",headers:{mallid:Di()},data:a})}function sY(a){return N0.axios({url:"https://agentseller.temu.com/api/kiana/marvel-supplier/api/ultraman/chat/reception/queryProductSkuAndBuyerBasicInfo",method:"POST",headers:{mallid:Di()},data:a})}function oY(a){return N0.axios({url:"https://agentseller.temu.com/phoenix-mms/picture/task/pageQuery",method:"POST",headers:{mallid:Di()},data:a})}async function xf(a){return await N0.axios({url:"https://agentseller.temu.com/bg/cute/api/merchantService/chat/sendMessage",method:"POST",headers:{mallid:Di()},data:a})}function Lc(a){return N0.axios({url:"https://agentseller.temu.com/bg/cute/api/merchantService/chat/queryMessage",method:"POST",headers:{mallid:Di()},data:a})}const lY={"product-skcs":{pageSize:20,pageSizes:[2,5,10,20,50,100,200,500],productGetter:async(a,s,r)=>{const i=await rw({page:a,pageSize:s},r);if(!i.success)throw new Error(i.errorMsg);return{list:i.result.pageItems.map(n=>{var t;return{...n,title:n.productName,image:n.mainImageUrl,properties:{SPU:n.productId,SKC:n.productSkcId,SKC货号:n.extCode,分类:(t=nw(n.categories))==null?void 0:t.catName}}}),total:i.result.total}}},"product-skus":{pageSize:20,pageSizes:[2,5,10,20,50,100,200,500],productGetter:async(a,s,r)=>{const i=await rw({page:a,pageSize:s},r);if(!i.success)throw new Error(i.errorMsg);return{list:JK(i.result.pageItems).map(n=>{var t;return{...n,title:n.skc.productName,image:n.skc.mainImageUrl,properties:{SPU:n.skc.productId,SKC:n.skc.productSkcId,SKU:n.productSkuId,分类:(t=nw(n.skc.categories))==null?void 0:t.catName,SKC货号:n.skc.extCode,SKU货号:n.extCode},editSuggestPrice:null}}),total:i.result.total}}},"suggest-price-status1":{pageSize:20,pageSizes:[2,5,10,20,30,40,50],productGetter:async(a,s,r)=>{const i=await tY({page:a,pageSize:s,status:1},r);if(!i.success)throw new Error(i.errorMsg);return{list:rY(i.result.pageItems).map(n=>({...n,title:n.skc.productName,image:n.skc.materialImageUrl,properties:{SPU:n.productId,SKC:n.skc.productSkcId,SKU:n.productSkuId,"SKU 属性":n.skuSpec}})),total:i.result.total}}},"unsigned-agreement-jit-products":{pageSize:20,pageSizes:[2,5,10,20,50,100,200,500],productGetter:async(a,s,r)=>{const i=await rw({page:a,pageSize:s,skcJitStatus:3},r);if(!i.success)throw new Error(i.errorMsg);return{list:i.result.pageItems.map(n=>{var t;return{...n,title:n.productName,image:n.mainImageUrl,properties:{SPU:n.productId,SKC:n.productSkcId,SKC货号:n.extCode,分类:(t=nw(n.categories))==null?void 0:t.catName}}}),total:i.result.total}}}},uY={class:"h-full flex flex-col"},cY={class:"grow bg-gray-900 mt-4 rounded relative"},fY={class:"absolute top-0 right-0 bottom-0 left-0"},dY={class:"flex flex-col text-xs p-4"},hY={key:0},AY=["textContent"],pY={class:"text-gray-100"},mY=500,gY=xi({__name:"TaskLogger",setup(a,{expose:s}){const r=we([]),i=we(!1),n=we("all"),t=Pr(()=>r.value.filter(m=>m.type==="error"));function c(m,p="info"){r.value.push({message:m,type:p,time:new Date().getTime()});const _=r.value.length;_>mY&&(r.value=r.value.slice(100,_))}function u(m){c(m,"success")}function f(m){c(m,"warning")}function o(m){c(m,"error")}function l(){r.value=[]}function g(m,p,_=" "){const y=String(m);if(y.length>=p)return y;const h=p-y.length,d=Math.floor(h/2),A=h-d;return _.repeat(d)+y+_.repeat(A)}return s({info:c,log:c,success:u,warning:f,error:o,clear:l}),(m,p)=>{const _=Ce("el-radio"),y=Ce("el-radio-group"),h=Ce("el-form-item"),d=Ce("el-button"),A=Ce("el-form"),v=Ce("el-scrollbar"),w=Ce("el-drawer"),x=Ce("el-badge");return Oe(),st("div",null,[z(w,{title:"任务日志",modelValue:i.value,"onUpdate:modelValue":p[1]||(p[1]=C=>i.value=C),size:"40%"},{default:q(()=>[de("div",uY,[z(A,{inline:"","label-position":"right","label-width":"100px"},{default:q(()=>[z(h,{label:"日志类型"},{default:q(()=>[z(y,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=C=>n.value=C)},{default:q(()=>[z(_,{value:"all"},{default:q(()=>[...p[3]||(p[3]=[Ue("所有",-1)])]),_:1}),z(_,{value:"success"},{default:q(()=>[...p[4]||(p[4]=[Ue("成功",-1)])]),_:1}),z(_,{value:"warning"},{default:q(()=>[...p[5]||(p[5]=[Ue("警告",-1)])]),_:1}),z(_,{value:"error"},{default:q(()=>[...p[6]||(p[6]=[Ue("错误",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(h,{label:" "},{default:q(()=>[z(d,{type:"danger",size:"small",onClick:l},{default:q(()=>[...p[7]||(p[7]=[Ue("清空日志",-1)])]),_:1})]),_:1})]),_:1}),de("div",cY,[de("div",fY,[z(v,{height:"100%"},{default:q(()=>[de("div",dY,[(Oe(!0),st(Zt,null,Hr(r.value,C=>(Oe(),st(Zt,{key:C.time},[n.value==="all"||n.value===C.type?(Oe(),st("div",hY,[de("span",{class:ao(C.type),textContent:ht(`[${g(C.type,9)}]`)},null,10,AY),de("span",pY,ht(` ${new Date(C.time).toLocaleString()} ${C.message}`),1)])):tr("",!0)],64))),128))])]),_:1})])])])]),_:1},8,["modelValue"]),z(x,{value:t.value.length,"show-zero":!1},{default:q(()=>[z(d,{size:"small",onClick:p[2]||(p[2]=C=>i.value=!0)},{default:q(()=>[...p[8]||(p[8]=[Ue("任务日志",-1)])]),_:1})]),_:1},8,["value"])])}}}),vY=cn(gY,[["__scopeId","data-v-77b8787b"]]);class yY{constructor(s){this.pages=[],this.abortController=null,this.cfg=s}async start(){var s;this.abortController=new AbortController;for(let r=this.cfg.startPage;r<=this.cfg.endPage;r++)this.pages.push({page:r,status:"pending",retries:0});return await this.runWorkers(),(s=this.onComplete)==null||s.call(this,this.pages),this.abortController.signal}pause(){this.abortController.abort(new DOMException("暂停下载","Pause"))}async resume(){var s;return this.abortController=new AbortController,this.pages.forEach(r=>{r.status!=="completed"&&(r.status="pending"),r.retries=0}),await this.runWorkers(),(s=this.onComplete)==null||s.call(this,this.pages),this.abortController.signal}stop(s){this.abortController.abort(s)}async runWorkers(){const s=[];for(let r=0;r<this.cfg.concurrency;r++){const i=this.getNextPendingPage();i&&s.push(this.runPage(i))}await Promise.all(s)}getNextPendingPage(){return this.pages.find(s=>s.status==="pending")}async runPage(s){var r,i,n;try{s.status="downloading",(r=this.onPageUpdate)==null||r.call(this,s,this.pages);const t=await this.cfg.downloadFunction(s.page,this.cfg.pageSize,this.abortController.signal);if(!(t!=null&&t.total)||!t.list||t.list.length===0)throw new Error("未获取到数据");if(t.total!==this.cfg.total){this.stop(new DOMException(`检测到数据总量已更新(${this.cfg.total} -> ${t.total}), 需要重新下载数据, 请在数据稳定时重新下载`,"TotalChangedError"));return}s.data=t.list,s.status="completed",(i=this.onPageUpdate)==null||i.call(this,s,this.pages);const c=this.getNextPendingPage();if(c){await this.runPage(c);return}}catch(t){const c=this.abortController.signal;if(c.aborted){s.status==="downloading"&&(s.status="pending");return}else{if(s.retries<this.cfg.maxRetries)return s.retries++,s.error=t.message,await Dk(1e4,c),this.runPage(s);s.status="failed",s.error=t.message,(n=this.onPageUpdate)==null||n.call(this,s,this.pages)}}}}const bY={key:0,class:"text-xs"},wY={class:"flex gap-4 items-center"},_Y={class:"mb-4"},xY={key:0},CY={key:0},SY={key:1},kY={class:"flex items-center gap-2"},TY={class:"flex items-center gap-1"},EY={class:"mt-4 flex gap-2"},IY={class:"flex justify-center mt-4"},BY={key:1},FY={key:0,class:"flex flex-wrap gap-2 rounded p-4"},rx=xi({__name:"ProductDownloader",props:{title:{},id:{},dialogWidth:{default:"80%"},fullScreen:{type:Boolean,default:!1}},emits:["download"],setup(a,{emit:s}){const r=a,i=s,n=we(!1),t=we(!1),c=we(),u=we([]),{pageSize:f,pageSizes:o,productGetter:l}=lY[r.id],g={isResetting:!1,isDownloading:!1,activeStep:1,currentPage:null,products:[],concurrency:5,startPage:null,endPage:null,useLastPage:!0,lastPage:null,pageSize:f,total:0,progress:0};function m(){return JSON.parse(JSON.stringify(g))}const p=Vl(m()),_=Pr(()=>!p.isDownloading&&p.products.length>0),y=async()=>{n.value=!0,await d()};function h(){p.lastPage=Math.ceil(p.total/p.pageSize),p.endPage=p.lastPage,p.startPage=1}const d=async()=>{var S,M,P;try{(S=c.value)==null||S.clear(),p.isResetting=!0;const N=await l(1,1),{total:B,list:O}=N;if(B===void 0||O===void 0){console.error("响应不符合规范",N),ut.error("响应不符合规范");return}const{isResetting:I,pageSize:F,concurrency:L,...R}=m();Object.assign(p,{...R,total:B}),h(),u.value=[],(M=c.value)==null||M.success(`初始化数据总数: ${B}`)}catch(N){console.error(N),(P=c.value)==null||P.error(`初始化数据错误: ${N.message||N}`)}finally{p.isResetting=!1}};let A;function v(S){var M,P,N;if(S.aborted){const B=S.reason;if(B instanceof DOMException)switch(B.name){case"Pause":(M=c.value)==null||M.warning("下载已暂停");break;case"TotalChangedError":Pn.confirm(B.message,"【凌风跨境工具箱】提示",{confirmButtonText:"重置数据",cancelButtonText:"取消",type:"warning"}).then(()=>{d()}).catch(O=>{O!=="cancel"&&console.error(O)}),(P=c.value)==null||P.warning(B.message);break;default:ha({type:"error",title:"下载失败",message:B.message,duration:0}),(N=c.value)==null||N.error(`下载失败: ${B.message}`),console.error(B);break}else throw B}}const w=async()=>{try{p.isDownloading=!0,A=new yY({total:p.total,pageSize:p.pageSize,startPage:p.startPage,endPage:p.endPage,concurrency:p.concurrency,maxRetries:2,downloadFunction:l}),A.onPageUpdate=(M,P)=>{var N,B,O,I;if(M.status==="completed"){(N=c.value)==null||N.success(`第 ${M.page} 页下载成功`);const F=P.filter(L=>L.status==="completed");p.progress=Math.round(F.length*100/P.length)}else M.status==="downloading"?M.retries===0?(B=c.value)==null||B.info(`第 ${M.page} 页下载中`):(O=c.value)==null||O.warning(`第 ${M.page} 页下载失败: ${M.error}, 第 ${M.retries} 次重试中`):M.status==="failed"&&((I=c.value)==null||I.error(`第 ${M.page} 页下载失败: ${M.error}`));if(u.value.length===0)u.value=P.map(F=>({...F}));else{const F=u.value.findIndex(L=>L.page===M.page);Object.assign(u.value[F],M)}},A.onComplete=M=>{var N;const P=M.filter(B=>B.status==="completed");p.products=P.flatMap(B=>B.data),(N=c.value)==null||N.success(`已下载: ${p.products.length} 条数据`)};const S=await A.start();v(S)}catch(S){console.error(S)}finally{p.isDownloading=!1}},x=async()=>{try{p.isDownloading=!0;const S=await A.resume();v(S)}catch(S){console.error(S)}finally{p.isDownloading=!1}},C=()=>{A.pause()};function k(S){if(S!==p.activeStep){if(S===2){if(!_.value)return;const M=p.products.map(P=>({...P,selected:!1}));i("download",M)}p.activeStep=S}}window.addEventListener("beforeunload",S=>{if(p.isDownloading)return S.preventDefault(),S.returnValue="",""});function T(){Object.assign(p,m()),A&&A.stop()}return(S,M)=>{const P=Ce("el-step"),N=Ce("el-steps"),B=Ce("el-button"),O=Ce("el-empty"),I=Ce("el-option"),F=Ce("el-select"),L=Ce("el-form-item"),R=Ce("el-input-number"),U=Ce("el-icon"),V=Ce("el-tooltip"),W=Ce("el-form"),Q=Ce("el-progress"),le=Ce("el-dialog"),G=Ce("el-tag"),fe=Ce("el-drawer"),ie=Ai("loading");return Oe(),st("div",null,[de("div",{onClickCapture:y},[R1(S.$slots,"default",{loading:p.isDownloading})],32),z(le,{title:S.title,"append-to-body":"","align-center":"",width:S.dialogWidth,fullscreen:S.fullScreen,modelValue:n.value,"onUpdate:modelValue":M[16]||(M[16]=he=>n.value=he),onClose:T},{default:q(()=>[z(N,{class:"mb-4",active:p.activeStep,simple:""},{default:q(()=>[z(P,{icon:St(NC)},{title:q(()=>[de("div",{class:"flex flex-col gap-1 justify-center cursor-pointer p-2",onClick:M[0]||(M[0]=he=>k(1))},[M[18]||(M[18]=de("div",null,"1. 下载数据",-1)),p.products.length>0?(Oe(),st("div",bY,ht(`当前数据: 共 ${p.products.length} 条`),1)):tr("",!0)])]),_:1},8,["icon"]),z(P,{icon:St(M8)},{title:q(()=>[de("div",wY,[de("div",{onClick:M[1]||(M[1]=he=>k(2)),class:"flex flex-col gap-1 justify-center p-2",style:av({cursor:_.value?"pointer":"not-allowed",color:p.activeStep===2?"var(--lf-color-primary)":"var(--lf-color-info)"})},[...M[19]||(M[19]=[de("div",{class:"flex items-center gap-2"},[de("div",null,"2. 操作已下载数据")],-1)])],4)])]),_:1},8,["icon"])]),_:1},8,["active"]),de("div",_Y,[p.activeStep===1?(Oe(),st("div",xY,[p.total===0?(Oe(),st("div",CY,[z(O,{description:"暂无数据"},{default:q(()=>[z(B,{type:"primary",onClick:M[2]||(M[2]=he=>d()),loading:p.isResetting},{default:q(()=>[...M[20]||(M[20]=[Ue("重新获取",-1)])]),_:1},8,["loading"])]),_:1})])):(Oe(),st("div",SY,[M[28]||(M[28]=de("div",{class:"tip"},[de("p",null,[de("strong",null,"提示:")]),de("p",null,[Ue("1. "),de("strong",null,"每页数量"),Ue("越大, 下载速度越快")]),de("p",null,[Ue("2. 下载商品列表数据时, 如果单个商品"),de("strong",{style:{color:"var(--lf-color-warning)"}},"SKU数量较多"),Ue(", 建议将"),de("strong",{style:{color:"var(--lf-color-warning)"}},"每页数量"),Ue("调至"),de("strong",{style:{color:"var(--lf-color-warning)"}},"最小"),Ue(", 否则容易导致下载失败")])],-1)),na((Oe(),Et(W,{disabled:p.isDownloading||p.products.length>0,"label-position":"right","label-width":"120px"},{default:q(()=>[z(L,{label:"每页数量"},{default:q(()=>[z(F,{modelValue:p.pageSize,"onUpdate:modelValue":M[3]||(M[3]=he=>p.pageSize=he),onChange:h,style:{width:"150px"}},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(St(o),he=>(Oe(),Et(I,{key:he,label:he,value:he},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(L,{label:"开始页码"},{default:q(()=>[z(R,{modelValue:p.startPage,"onUpdate:modelValue":M[4]||(M[4]=he=>p.startPage=he),onChange:M[5]||(M[5]=he=>{he>p.endPage&&(p.endPage=he)}),"controls-position":"right",min:1,max:p.lastPage},null,8,["modelValue","max"])]),_:1}),z(L,{label:"结束页码"},{default:q(()=>[de("div",kY,[z(R,{modelValue:p.endPage,"onUpdate:modelValue":M[6]||(M[6]=he=>p.endPage=he),onChange:M[7]||(M[7]=he=>{he<p.startPage&&(p.startPage=he)}),"controls-position":"right",min:1,max:p.lastPage},null,8,["modelValue","max"]),z(B,{onClick:M[8]||(M[8]=()=>p.endPage=p.lastPage),disabled:p.endPage===p.lastPage},{default:q(()=>[Ue("设为最大值("+ht(p.lastPage)+")",1)]),_:1},8,["disabled"])])]),_:1}),z(L,null,{label:q(()=>[de("div",TY,[M[21]||(M[21]=de("div",null,"并发数量",-1)),z(V,{content:"多个分页数据同时下载的数量, 并发数量越高下载越快",placement:"top"},{default:q(()=>[z(U,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1})])]),default:q(()=>[z(R,{modelValue:p.concurrency,"onUpdate:modelValue":M[9]||(M[9]=he=>p.concurrency=he),"controls-position":"right",min:1,max:10},null,8,["modelValue"])]),_:1})]),_:1},8,["disabled"])),[[ie,p.isResetting]]),de("div",EY,[z(vY,{ref_key:"taskLoggerRef",ref:c},null,512),z(B,{size:"small",onClick:M[10]||(M[10]=he=>t.value=!0)},{default:q(()=>[...M[22]||(M[22]=[Ue("下载状态",-1)])]),_:1})]),z(Q,{class:"mt-4",percentage:p.progress},{default:q(()=>[p.isDownloading?(Oe(),Et(B,{key:0,type:"danger",onClick:M[11]||(M[11]=he=>C())},{default:q(()=>[z(U,{class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1}),M[23]||(M[23]=de("span",null,"暂停下载",-1))]),_:1})):(Oe(),st(Zt,{key:1},[p.products.length===0?(Oe(),Et(B,{key:0,type:"primary",onClick:M[12]||(M[12]=he=>w())},{default:q(()=>[...M[24]||(M[24]=[Ue(" 开始下载 ",-1)])]),_:1})):(Oe(),st(Zt,{key:1},[p.progress<100?(Oe(),Et(B,{key:0,type:"primary",onClick:M[13]||(M[13]=he=>x()),disabled:p.isResetting},{default:q(()=>[...M[25]||(M[25]=[Ue(" 继续下载 ",-1)])]),_:1},8,["disabled"])):tr("",!0),z(B,{type:"danger",onClick:M[14]||(M[14]=he=>d()),loading:p.isResetting},{default:q(()=>[...M[26]||(M[26]=[Ue(" 清除数据 ",-1)])]),_:1},8,["loading"])],64))],64))]),_:1},8,["percentage"]),de("div",IY,[z(B,{type:"primary",onClick:M[15]||(M[15]=he=>k(2)),disabled:p.isDownloading||p.products.length===0},{default:q(()=>[...M[27]||(M[27]=[Ue(" 下一步 ",-1)])]),_:1},8,["disabled"])])]))])):tr("",!0),p.activeStep===2?(Oe(),st("div",BY,[R1(S.$slots,"nextStep",{cancel:()=>{n.value=!1}})])):tr("",!0)])]),_:3},8,["title","width","fullscreen","modelValue"]),z(fe,{modelValue:t.value,"onUpdate:modelValue":M[17]||(M[17]=he=>t.value=he),title:"每页下载状态",size:"40%"},{default:q(()=>[u.value.length>0?(Oe(),st("div",FY,[(Oe(!0),st(Zt,null,Hr(u.value,he=>(Oe(),Et(G,{key:he.page,size:"small",style:{"min-width":"50px"},effect:"plain",type:he.status==="pending"?"info":he.status==="downloading"?"primary":he.status==="completed"?"success":he.status==="failed"?"danger":""},{default:q(()=>[Ue(ht(he.page),1)]),_:2},1032,["type"]))),128))])):(Oe(),Et(O,{key:1},{default:q(()=>[...M[29]||(M[29]=[Ue(" 暂无数据 ",-1)])]),_:1}))]),_:1},8,["modelValue"])])}}});function nx(){const a=we([]),s=we([]),r=we([]),i=we(),n=we(1),t=we(10),c=Pr({get:()=>{var y;return((y=s.value)==null?void 0:y.length)&&s.value.every(h=>h.selectable&&h.selected)},set:y=>{s.value.forEach(h=>{h.selectable&&(h.selected=y)})}}),u=Pr({get:()=>{var y;return((y=r.value)==null?void 0:y.length)&&r.value.every(h=>h.selectable&&h.selected)},set:y=>{r.value.forEach(h=>{h.selectable&&(h.selected=y)})}}),f=Pr(()=>{var y;return((y=s.value)==null?void 0:y.filter(h=>h.selected))||[]}),o=Pr(()=>{var h;const y=f.value;return y.length>0&&y.length<((h=s.value)==null?void 0:h.length)}),l=Pr(()=>{var h,d;const y=((h=r.value)==null?void 0:h.filter(A=>A.selected))||[];return y.length>0&&y.length<((d=r.value)==null?void 0:d.length)});function g(y,h){n.value=y||n.value,t.value=t.value,r.value=s.value.slice((n.value-1)*t.value,n.value*t.value)}function m(){i.value?s.value=a.value.filter(y=>i.value(y)):s.value=[...a.value],g(1)}Ra(a,()=>{m()}),Ra(n,()=>{g()}),Ra(t,()=>{g(1)});function p(y){i.value=y,m()}function _(y){a.value=y.map(h=>({...h,selectable:!0,selected:!1}))}return Vl({list:a,filterList:s,pageList:r,page:n,pageSize:t,selectedAll:c,selectedAllPage:u,selectedList:f,indeterminateAll:o,indeterminatePage:l,setFilter:p,setList:_})}const MY={class:"flex flex-col"},DY={class:"flex items-center gap-2"},OY={class:"flex items-center gap-2"},LY={class:"flex gap-4 text-xs"},PY={style:{color:"#303133"},class:"line-clamp-2"},RY={style:{color:"#606266"}},UY={style:{color:"#303133"}},NY={key:0},jY={key:1},HY={key:1},QY={class:"mt-4 flex justify-end"},zY=xi({__name:"BatchEditSuggestPrice",setup(a){const s=[{label:"全部",filter:_=>!0},{label:"无日常价格范围",filter:_=>!_.priceLowerLimit||!_.priceUpperLimit},{label:"有日常价格范围",filter:_=>_.priceLowerLimit&&_.priceUpperLimit},{label:"修改失败",filter:_=>{var y;return((y=_.errors)==null?void 0:y.length)>0}}],r=[{label:"日常售价最高值百分比",set(_,y){var h;return(h=_.priceUpperLimit)!=null&&h.amount?(_.editSuggestPrice=_.priceUpperLimit.amount*(y/100),!0):!1}},{label:"日常售价最低值百分比",set(_,y){var h;return(h=_.priceLowerLimit)!=null&&h.amount?(_.editSuggestPrice=_.priceLowerLimit.amount*(y/100),!0):!1}},{label:"日常售价范围的平均值",set(_){var y,h;return(y=_.priceLowerLimit)!=null&&y.amount&&((h=_.priceUpperLimit)!=null&&h.amount)?(_.editSuggestPrice=(_.priceLowerLimit.amount+_.priceUpperLimit.amount)/2,!0):!1}},{label:"固定值",set(_,y){return typeof y=="number"?_.editSuggestPrice=y*100:_.editSuggestPrice=null,!0}}],i=nx(),n=we(null),t=we(100),c=we(r[0]),u=we(s[0]),f=we(0),o=we(!1);function l(_){_=_.map(y=>({...y,editSuggestPrice:null})),i.setList(_),u.value=s[0],c.value=r[0],n.value=null,t.value=100,g()}function g(){i.setFilter(u.value.filter)}function m(){const _=i.selectedList;if(_.length===0){ut.warning("请选择商品");return}let y=null;c.value.label==="固定值"?y=n.value:(c.value.label==="日常售价最低值百分比"||c.value.label==="日常售价最高值百分比")&&(y=t.value);let h=0;_.forEach(v=>{c.value.set(v,y)||h++});const d=_.length-h;let A="";d>0&&(A=`<p style="color: var(--lf-color-success)">成功填写 <strong>${d}</strong> 个商品，</p>`),h>0&&(A+=`<p style="color: var(--lf-color-danger)"><strong>${h}</strong> 个商品填写失败(无日常售价范围)</p>`),ha({title:"批量填写零售价",dangerouslyUseHTMLString:!0,message:A,type:d===_.length?"success":"warning",duration:3e3})}function p(_){const y=i.list.filter(d=>d.editSuggestPrice!==null);if(y.length===0){ut.warning("未找到已填写零售价的商品");return}const h=`<p>确认修改所有已填写的商品吗? (共 <strong>${y.length}</strong> 个已填写商品)</p>`;Pn.confirm(h,"确认修改?",{type:"warning",dangerouslyUseHTMLString:!0}).then(async()=>{f.value=0,o.value=!0;const d=y.map(v=>({currency:v.priceUpperLimit.currency,productId:v.productId,productSkuId:v.productSkuId,amount:v.editSuggestPrice})),A=new Date().getTime();try{await aY(1,d,10,C=>{f.value=C});const w=`<p><strong style="color: var(--lf-color-success)">${d.length}</strong> 个商品更新成功</p>`,x=new Date().getTime()-A;ha({title:"零售价修改提示",message:w,dangerouslyUseHTMLString:!0,type:"success",duration:Math.max(5e3,x)}),d.forEach(C=>{C.editSuggestPrice=null})}catch(v){const w=new Date().getTime()-A;ha({title:"零售价更新失败",message:v.message,type:"error",duration:Math.max(5e3,w)}),console.error(v)}finally{o.value=!1}}).catch(d=>{d!=="cancel"&&(ut.error(d.message),console.error(d))})}return(_,y)=>{const h=Ce("el-icon"),d=Ce("el-button"),A=Ce("el-option"),v=Ce("el-select"),w=Ce("el-form-item"),x=Ce("el-input-number"),C=Ce("el-form"),k=Ce("el-empty"),T=Ce("el-checkbox"),S=Ce("el-table-column"),M=Ce("el-image"),P=Ce("el-table"),N=Ce("el-pagination"),B=Ce("el-progress");return Oe(),Et(rx,{title:"一键填写待填写零售价",id:"suggest-price-status1","use-cache":!1,onDownload:l},{default:q(({loading:O})=>[z(d,{type:"primary"},{default:q(()=>[O?(Oe(),Et(h,{key:0,class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1})):tr("",!0),y[8]||(y[8]=de("span",null,"【凌风跨境工具箱】一键填写零售价(待填写)",-1))]),_:2},1024)]),nextStep:q(({cancel:O})=>[z(C,{inline:""},{default:q(()=>[z(w,{label:"筛选",class:"custom-form-item"},{default:q(()=>[z(v,{"value-key":"label",modelValue:u.value,"onUpdate:modelValue":y[0]||(y[0]=I=>u.value=I),onChange:g,style:{width:"220px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(s,I=>z(A,{key:I.label,label:I.label,value:I},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),z(w,{label:"填写方式",class:"custom-form-item"},{default:q(()=>[z(v,{modelValue:c.value,"onUpdate:modelValue":y[1]||(y[1]=I=>c.value=I),placeholder:"填写方式","value-key":"label",style:{width:"220px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(r,I=>z(A,{key:I.label,label:I.label,value:I},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),c.value.label==="固定值"?(Oe(),Et(w,{key:0},{default:q(()=>[z(x,{placeholder:"空值代表取消填写","value-on-clear":null,modelValue:n.value,"onUpdate:modelValue":y[2]||(y[2]=I=>n.value=I),controls:!1,precision:2,style:{width:"220px"}},{suffix:q(()=>[...y[9]||(y[9]=[Ue("元",-1)])]),_:1},8,["modelValue"])]),_:1})):tr("",!0),c.value.label==="日常售价最低值百分比"||c.value.label==="日常售价最高值百分比"?(Oe(),Et(w,{key:1},{default:q(()=>[z(x,{modelValue:t.value,"onUpdate:modelValue":y[3]||(y[3]=I=>t.value=I),controls:!1,precision:1,style:{width:"120px"}},{suffix:q(()=>[...y[10]||(y[10]=[Ue("%",-1)])]),_:1},8,["modelValue"])]),_:1})):tr("",!0),z(w,null,{default:q(()=>[z(d,{type:"primary",onClick:m},{default:q(()=>[Ue("批量填写当前选中的 "+ht(St(i).selectedList.length)+" 个商品",1)]),_:1})]),_:1})]),_:1}),z(P,{data:St(i).pageList,class:"w-full","max-height":"calc(100vh - 380px)"},{empty:q(()=>[z(k,{description:"暂无数据"})]),default:q(()=>[z(S,{width:"100"},{header:q(()=>[de("div",MY,[de("div",DY,[z(T,{indeterminate:St(i).indeterminateAll,modelValue:St(i).selectedAll,"onUpdate:modelValue":y[4]||(y[4]=I=>St(i).selectedAll=I)},null,8,["indeterminate","modelValue"]),y[11]||(y[11]=de("div",null,"全部",-1))]),de("div",OY,[z(T,{indeterminate:St(i).indeterminatePage,modelValue:St(i).selectedAllPage,"onUpdate:modelValue":y[5]||(y[5]=I=>St(i).selectedAllPage=I)},null,8,["indeterminate","modelValue"]),y[12]||(y[12]=de("div",null,"当前页",-1))])])]),default:q(({row:I})=>[z(T,{modelValue:I.selected,"onUpdate:modelValue":F=>I.selected=F},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),z(S,{label:"商品信息",width:"320px"},{default:q(({row:I})=>[de("div",LY,[de("div",null,[z(M,{style:{width:"60px",height:"60px"},src:I.image},null,8,["src"])]),de("div",null,[de("div",null,[de("span",PY,ht(I.title),1)]),(Oe(!0),st(Zt,null,Hr(I.properties,(F,L)=>(Oe(),st("div",{key:L},[de("span",RY,ht(L)+":",1),de("span",UY,ht(F),1)]))),128))])])]),_:1}),z(S,{label:"日常售价范围",align:"center"},{default:q(({row:I})=>{var F,L,R,U;return[((F=I.priceLowerLimit)==null?void 0:F.amount)>0&&((L=I.priceUpperLimit)==null?void 0:L.amount)>0?(Oe(),st("div",NY,[de("span",null,ht(((((R=I.priceLowerLimit)==null?void 0:R.amount)||0)/100).toFixed(2)),1),y[13]||(y[13]=de("span",null," ~ ",-1)),de("span",null,ht(((((U=I.priceUpperLimit)==null?void 0:U.amount)||0)/100).toFixed(2)),1)])):(Oe(),st("div",jY,[...y[14]||(y[14]=[de("span",null,"-",-1)])]))]}),_:1}),z(S,{label:"填写建议零售价",align:"center"},{default:q(({row:I})=>[z(x,{clearable:"",placeholder:"不填写则不提交修改",controls:!1,precision:2,"value-on-clear":null,style:{width:"160px"},"model-value":typeof I.editSuggestPrice=="number"?I.editSuggestPrice/100:null,"onUpdate:modelValue":F=>I.editSuggestPrice=F===null?null:Math.round(parseFloat(F)*100)},null,8,["model-value","onUpdate:modelValue"])]),_:1}),z(S,{label:"提交结果",width:"220"},{default:q(({row:I})=>{var F;return[(F=I.errors)!=null&&F.length?(Oe(!0),st(Zt,{key:0},Hr(I.errors,(L,R)=>(Oe(),st("div",{style:{"font-size":"12px",color:"var(--lf-color-danger)"},key:R},ht(L),1))),128)):(Oe(),st("span",HY,"-"))]}),_:1})]),_:1},8,["data"]),z(N,{class:"mt-4","current-page":St(i).page,"onUpdate:currentPage":y[6]||(y[6]=I=>St(i).page=I),"page-sizes":[5,10,20,50,100,200,500],"page-size":St(i).pageSize,"onUpdate:pageSize":y[7]||(y[7]=I=>St(i).pageSize=I),layout:"total, sizes, prev, pager, next, jumper",total:St(i).filterList.length},null,8,["current-page","page-size","total"]),0<f.value&&f.value<100?(Oe(),Et(B,{key:0,percentage:f.value,class:"mt-4","show-text":!1},null,8,["percentage"])):tr("",!0),de("div",QY,[z(d,{onClick:I=>O(),disabled:o.value},{default:q(()=>[...y[15]||(y[15]=[Ue("取 消",-1)])]),_:1},8,["onClick","disabled"]),z(d,{type:"primary",onClick:I=>p(O),loading:o.value},{default:q(()=>[...y[16]||(y[16]=[Ue("提交所有已填写零售价的商品",-1)])]),_:1},8,["onClick","loading"])])]),_:1})}}});async function VY(a){return Un.post("/darwin-mms/api/kiana/foredawn/sales/stock/uploadProductSkuStock",a,{headers:{mallid:Di()}})}async function WY(a,s=800,r){const i=new Map;for(let n=0;n<a.length;n+=s){const t=a.slice(n,n+s);try{const c=await VY({uploadProductSkuStockList:t});if(!c.success)throw new Error(c.errorMsg);c.result.resultList.forEach(f=>{f.checkValid||i.set(f.productSkuId,f.errorList.map(o=>o.errorMessage))}),r==null||r(Math.min(100,Math.round((n+s)*100/a.length)))}catch(c){throw c}}return i}async function GY(a,s){return Un.post("/darwin-mms/api/kiana/foredawn/sales/stock/updateMmsProductSalesStock",a,{headers:{mallid:Di()},signal:s})}async function $Y(a,s,r){const i=new Array(s).fill(null),n=a.length;let t=0;const c=new AbortController;let u=0;const f=async()=>{for(;u<n&&!c.signal.aborted;){const o=u++,l=a[o];try{const g=await GY(l,c.signal);if(!g.success)throw new Error(g.errorMsg);t++,r(Math.round(t*100/n))}catch(g){throw g}}};try{await Promise.all(i.map(()=>f()))}catch(o){throw c.abort(),o}}const KY={class:"flex flex-col"},YY={class:"flex items-center gap-2"},XY={class:"flex items-center gap-2"},ZY={class:"flex gap-4 text-xs"},JY={style:{color:"#303133"},class:"line-clamp-2"},qY={style:{color:"#606266"}},eX={style:{color:"#303133"}},tX={key:0,style:{color:"var(--lf-color-danger)"}},rX={key:1},nX={class:"mt-4 flex justify-end"},aX={class:"w-full"},iX={style:{height:"calc(100vh - 220px)",width:"100%"}},sX={class:"mt-4"},oX={style:{color:"var(--lf-color-danger)"}},lX={style:{color:"var(--lf-color-success)"}},uX=xi({__name:"BatchUpdateVirtualStock",setup(a){const s=[{label:"全部",filter:d=>!0},{label:"检测失败",filter:d=>{var A;return((A=d.checkErrors)==null?void 0:A.length)>0}}],r=[{label:"按原库存增加",set(d,A){A===null?d.editVirtualStock=null:d.editVirtualStock=d.virtualStock+A}},{label:"按原库存减少",set(d,A){A===null?d.editVirtualStock=null:d.editVirtualStock=d.virtualStock-A}},{label:"固定值",set(d,A){d.editVirtualStock=A}}],i=nx(),n=we(null),t=we(r[0]),c=we(s[0]),u=we(!1),f=we(0),o=Vl({isSubmitting:!1,progress:0,dialogVisible:!1,products:[],successCount:0,failCount:0}),l=[{title:"SKU",key:"productSkuId",dataKey:"productSkuId",width:180},{title:"当前库存",key:"virtualStock",dataKey:"virtualStock",width:120},{title:"目标库存",key:"editVirtualStock",dataKey:"editVirtualStock",width:120},{title:"检测结果",key:"checkErrors",width:0,cellRenderer:({rowData:d})=>d.checkErrors&&d.checkErrors.length?z("div",null,[d.checkErrors.map((A,v)=>z("div",{style:{fontSize:"12px",color:"var(--lf-color-danger)",marginBottom:"4px"},key:v},[A]))]):z("div",{style:"color: var(--lf-color-success)"},[Ue("可修改")])}];function g(d){d=d.map(A=>({...A,editVirtualStock:null})),i.setList(d),c.value=s[0],t.value=r[0],n.value=null,m()}function m(){i.setFilter(c.value.filter)}function p(){i.selectedList.forEach(d=>{t.value.set(d,n.value)}),ha({title:"批量填写库存",message:`成功填写 ${i.selectedList.length} 个商品`,type:"success"})}async function _(){const d=i.list.filter(w=>w.editVirtualStock!==null),A=[],v=[];for(const w of d){const x=w.virtualStock||0;w.editVirtualStock===x?v.push(w):A.push(w)}try{let w=`<p>共 <strong>${d.length}</strong> 个已填写库存商品</p>`;if(v.length>0&&(w+=`<p>其中有 <strong style="color: var(--lf-color-danger)">${v.length}</strong> 个商品库存与原有库存一致, 无需修改</p>`),await Pn.confirm(w,"确认已填写库存商品数量",{type:"warning",dangerouslyUseHTMLString:!0}),v.length===d.length)return}catch(w){w!=="cancel"&&(console.error(w),ut.error(w.message));return}try{o.dialogVisible=!0,o.isSubmitting=!0,A.forEach(C=>{C.checkErrors=void 0,C.submitErrors=void 0}),o.progress=0,o.products=A,o.successCount=0,o.failCount=0;const w=A.map((C,k)=>{var T;return{productSkuId:C.productSkuId,currentStockAvailable:((T=C.virtualStock)==null?void 0:T.toString())||"0",targetStockAvailable:C.editVirtualStock,rowNum:k+3}}),x=await WY(w,800,C=>{o.progress=C});o.products.forEach(C=>{x.has(C.productSkuId)?(C.checkErrors=x.get(C.productSkuId),o.failCount++):o.successCount++})}catch(w){ut.error(w.message),console.error(w)}finally{o.isSubmitting=!1}}function y(d){const A=new Map;for(const v of d){const w=v.skc.productId,x=v.skc.productSkcId;let C=A.get(w);C||(C=new Map,A.set(w,C)),C.has(x)||C.set(x,[]),C.get(x).push(v)}return A}async function h(){const d=o.products.filter(x=>x.checkErrors===void 0),A=y(d),v=[];for(const[x,C]of A){const k={productId:x,skcVirtualStockChangeDTOList:[]};for(const[T,S]of C){const M={productSkcId:T,stockUpdateSource:1,skuVirtualStockChangeList:S.map(P=>{const N=P.virtualStock||0;return{productSkuId:P.productSkuId,currentStockAvailable:N,virtualStockDiff:P.editVirtualStock-N}})};k.skcVirtualStockChangeDTOList.push(M)}v.push(k)}if(v.length===0){ut.warning("没有可修改的商品"),o.dialogVisible=!1;return}u.value=!0,o.dialogVisible=!1,f.value=0;const w=new Date().getTime();try{await $Y(v,20,M=>{f.value=M});const C=d.length,k=o.products.length-C;let T="";C>0&&(T+=`<p><strong style="color: var(--lf-color-success)">${C}</strong> 个商品(SKU)更新成功</p>`),k>0&&(T+=`<p><strong style="color: var(--lf-color-error)">${k}</strong> 个商品(SKU)更新失败</p>`);const S=new Date().getTime()-w;ha({title:"库存修改提示",message:T,dangerouslyUseHTMLString:!0,type:k>0?"error":"success",duration:Math.max(3e3,S)}),d.forEach(M=>{M.virtualStock=M.editVirtualStock,M.editVirtualStock=null})}catch(x){const C=new Date().getTime()-w;ha({title:"库存更新失败",message:x.message,type:"error",duration:Math.max(5e3,C)}),console.error(x)}finally{u.value=!1}}return(d,A)=>{const v=Ce("el-icon"),w=Ce("el-button"),x=Ce("el-option"),C=Ce("el-select"),k=Ce("el-form-item"),T=Ce("el-input-number"),S=Ce("el-form"),M=Ce("el-empty"),P=Ce("el-checkbox"),N=Ce("el-table-column"),B=Ce("el-image"),O=Ce("el-table"),I=Ce("el-pagination"),F=Ce("el-progress"),L=Ce("el-table-v2"),R=Ce("el-auto-resizer"),U=Ce("el-dialog"),V=Ai("loading");return Oe(),st("div",null,[z(rx,{title:"一键设置JIT商品库存",id:"product-skus",onDownload:g},{default:q(({loading:W})=>[z(w,{type:"primary"},{default:q(()=>[W?(Oe(),Et(v,{key:0,class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1})):tr("",!0),A[11]||(A[11]=de("span",null,"【凌风跨境工具箱】一键设置JIT商品库存",-1))]),_:2},1024)]),nextStep:q(({cancel:W})=>[z(S,{inline:""},{default:q(()=>[z(k,{label:"筛选",class:"custom-form-item"},{default:q(()=>[z(C,{"value-key":"label",modelValue:c.value,"onUpdate:modelValue":A[0]||(A[0]=Q=>c.value=Q),onChange:m,style:{width:"220px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(s,Q=>z(x,{key:Q.label,label:Q.label,value:Q},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),z(k,{label:"填写方式",class:"custom-form-item"},{default:q(()=>[z(C,{modelValue:t.value,"onUpdate:modelValue":A[1]||(A[1]=Q=>t.value=Q),placeholder:"填写方式","value-key":"label",style:{width:"220px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(r,Q=>z(x,{key:Q.label,label:Q.label,value:Q},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),z(k,null,{default:q(()=>[z(T,{placeholder:"空值代表取消填写","value-on-clear":null,modelValue:n.value,"onUpdate:modelValue":A[2]||(A[2]=Q=>n.value=Q),controls:!1,precision:0,style:{width:"220px"}},null,8,["modelValue"])]),_:1}),z(k,null,{default:q(()=>[z(w,{type:"primary",onClick:p},{default:q(()=>[Ue("批量填写当前选中的 "+ht(St(i).selectedList.length)+" 个商品",1)]),_:1})]),_:1})]),_:1}),z(O,{data:St(i).pageList,class:"w-full","max-height":"calc(100vh - 320px)"},{empty:q(()=>[z(M,{description:"暂无数据"})]),default:q(()=>[z(N,{width:"100"},{header:q(()=>[de("div",KY,[de("div",YY,[z(P,{indeterminate:St(i).indeterminateAll,modelValue:St(i).selectedAll,"onUpdate:modelValue":A[3]||(A[3]=Q=>St(i).selectedAll=Q)},null,8,["indeterminate","modelValue"]),A[12]||(A[12]=de("div",null,"全部",-1))]),de("div",XY,[z(P,{indeterminate:St(i).indeterminatePage,modelValue:St(i).selectedAllPage,"onUpdate:modelValue":A[4]||(A[4]=Q=>St(i).selectedAllPage=Q)},null,8,["indeterminate","modelValue"]),A[13]||(A[13]=de("div",null,"当前页",-1))])])]),default:q(({row:Q})=>[z(P,{modelValue:Q.selected,"onUpdate:modelValue":le=>Q.selected=le},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),z(N,{label:"商品信息",width:"320px"},{default:q(({row:Q})=>[de("div",ZY,[de("div",null,[z(B,{style:{width:"60px",height:"60px"},src:Q.image},null,8,["src"])]),de("div",null,[de("div",null,[de("span",JY,ht(Q.title),1)]),(Oe(!0),st(Zt,null,Hr(Q.properties,(le,G)=>(Oe(),st("div",{key:G},[de("span",qY,ht(G)+":",1),de("span",eX,ht(le),1)]))),128))])])]),_:1}),z(N,{label:"SKU属性"},{default:q(({row:Q})=>[(Oe(!0),st(Zt,null,Hr(Q.productSkuSpecList,(le,G)=>(Oe(),st("div",{key:G},[de("span",null,ht(le.parentSpecName)+": ",1),de("span",null,ht(le.specName),1)]))),128))]),_:1}),z(N,{label:"申报价",align:"center"},{default:q(({row:Q})=>[de("div",null,ht(((Q.supplierPrice||0)/100).toFixed(2)),1)]),_:1}),z(N,{label:"当前库存",prop:"virtualStock",align:"center"}),z(N,{label:"填写库存",align:"center","min-width":"180px"},{default:q(({row:Q})=>[z(T,{clearable:"",placeholder:"不填写则不提交修改",controls:!1,precision:0,"value-on-clear":null,style:{width:"160px"},modelValue:Q.editVirtualStock,"onUpdate:modelValue":le=>Q.editVirtualStock=le},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),z(N,{label:"检测结果"},{default:q(({row:Q})=>{var le;return[((le=Q.checkErrors)==null?void 0:le.length)>0?(Oe(),st("div",tX,[(Oe(!0),st(Zt,null,Hr(Q.checkErrors,(G,fe)=>(Oe(),st("div",{key:fe},ht(G),1))),128))])):(Oe(),st("div",rX," - "))]}),_:1})]),_:1},8,["data"]),z(I,{class:"mt-4","current-page":St(i).page,"onUpdate:currentPage":A[5]||(A[5]=Q=>St(i).page=Q),"page-sizes":[5,10,20,50,100,200,500],"page-size":St(i).pageSize,"onUpdate:pageSize":A[6]||(A[6]=Q=>St(i).pageSize=Q),layout:"total, sizes, prev, pager, next, jumper",total:St(i).filterList.length},null,8,["current-page","page-size","total"]),0<f.value&&f.value<100?(Oe(),Et(F,{key:0,class:"mt-4",percentage:f.value},null,8,["percentage"])):tr("",!0),de("div",nX,[z(w,{onClick:Q=>W(),disabled:u.value},{default:q(()=>[...A[14]||(A[14]=[Ue("取 消",-1)])]),_:1},8,["onClick","disabled"]),z(w,{type:"primary",onClick:A[7]||(A[7]=Q=>_()),loading:u.value},{default:q(()=>[...A[15]||(A[15]=[Ue("提交所有已填写库存的商品",-1)])]),_:1},8,["loading"])])]),_:1}),z(U,{width:"720px","align-center":"","append-to-body":"",modelValue:o.dialogVisible,"onUpdate:modelValue":A[10]||(A[10]=W=>o.dialogVisible=W),title:"检测目标库存"},{footer:q(()=>[z(w,{onClick:A[8]||(A[8]=W=>o.dialogVisible=!1),disabled:o.isSubmitting},{default:q(()=>[...A[22]||(A[22]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(w,{type:"primary",onClick:A[9]||(A[9]=W=>h()),disabled:o.successCount===0},{default:q(()=>[...A[23]||(A[23]=[Ue("确认提交修改",-1)])]),_:1},8,["disabled"])]),default:q(()=>[na((Oe(),st("div",aX,[de("div",iX,[z(R,null,{default:q(({height:W,width:Q})=>[z(L,{columns:l,data:o.products,width:Q,height:W,fixed:""},null,8,["data","width","height"])]),_:1})]),de("div",sX,[de("span",null,[A[16]||(A[16]=Ue("共: ",-1)),de("strong",null,ht(o.products.length),1),A[17]||(A[17]=Ue(" 个商品",-1))]),A[20]||(A[20]=Ue("; ",-1)),de("span",null,[A[18]||(A[18]=Ue("不可修改: ",-1)),de("strong",oX,ht(o.failCount),1)]),A[21]||(A[21]=Ue("; ",-1)),de("span",null,[A[19]||(A[19]=Ue("可修改: ",-1)),de("strong",lX,ht(o.successCount),1)])])])),[[V,o.isSubmitting]])]),_:1},8,["modelValue"])])}}}),cX={style:{display:"flex","margin-top":"10px"}},fX={class:"desc"},dX={class:"flex justify-center items-center gap-2"},hX={__name:"batchPublishingSites",setup(a){const s=we(!1),r=we(!1),i=we([]),n=we([]),t=we(!1),c=we(),u=we({productSelectType:"1"});let f=we(0),o=we(0),l=Vl(null);$l(()=>{console.log("组件关闭！"),p()});const g=async()=>{const x=await cA();if(x){if(x.length===0){ut.error("请先选择商品");return}s.value=!0,n.value=x.flatMap(C=>(Array.isArray(C.skc)?C.skc:[C.skc]).map(T=>({spu:C.spu,skc:T})))}},m=async x=>{try{t.value&&await Pn.confirm("当前商品【批量发布站点】还未全部执行完毕，确认关闭吗？"),clearInterval(l),x(),p()}catch{}},p=()=>{n.value=[],i.value=[],t.value=!1,l&&clearInterval(l)},_=async()=>{if(n.value.length>50&&!u.value.quickTakedown){await Pn.alert("大量商品发布请选择无视结果快速发布","",{confirmButtonText:"确定",showClose:!1,callback:T=>{}});return}i.value=[],t.value=!0,await w();try{await ex({}).then(T=>{var S,M;(M=(S=T==null?void 0:T.data)==null?void 0:S.result)==null||M.list.forEach(P=>{P.toolName==="商品发布到站点"&&(o.value=P.toolId)})})}catch(T){t.value=!1,console.error(`发送消息失败: ${T}`)}try{await Lc({direction:2,limit:20}).then(T=>{var M,P;((P=(M=T==null?void 0:T.data)==null?void 0:M.result)==null?void 0:P.messageList).forEach(N=>{N.contentType===6&&N.content.match("请发送商品信息给客服，可以更快为您处理哦")&&(f.value=N.msgId)})})}catch(T){t.value=!1,console.error(`发送消息失败: ${T}`)}const x=n.value.map(T=>+T.skc),C=await Promise.all(x.map(T=>tx({productSkcId:T}))),k=await Promise.all(C.map(T=>{var M,P,N;const S=T.data;return xf({content:JSON.stringify({name:(M=S==null?void 0:S.result)==null?void 0:M.productName,img:(P=S==null?void 0:S.result)==null?void 0:P.productPicture,dataType:1,dataId:(N=S==null?void 0:S.result)==null?void 0:N.productSkcId,toolId:o.value}),contentType:7,parentMsgId:f.value}).catch(B=>{console.log(B)})}));u.value.quickTakedown?(C.forEach(T=>{const{productPicture:S,productName:M,productSkcId:P}=T.data.result||{};i.value.push({img:S,title:M,skc:P,resultMessage:"请在客服消息窗口查看"})}),t.value=!1):l=setInterval(()=>{try{Lc({direction:2,limit:20}).then(T=>{var S;(S=T.data.result.messageList)==null||S.forEach(M=>{M.content.match("【SKC ID")&&k.forEach((P,N)=>{const{img:B,name:O,dataId:I}=JSON.parse(P.data.result.content),F=M.content.match("(?<=SKC ID：).*?(?=】)")[0];I===F&&(k.splice(N,1),i.value.push({img:B,title:O,skc:I,resultMessage:M.content.match("(?<=】：).*?(?=</p>)")[0]}))})})})}catch(T){t.value=!1,l&&clearInterval(l),console.error(`查询消息失败: ${T}`)}k.length===0&&(t.value=!1,l&&clearInterval(l))},2e3)};Ra(s,async x=>{x?y():(A()&&await d(),h())});const y=()=>{document.querySelector('div[class*="kefu_kefuOuter"]').classList.add("lingfeng-kefu-wrapper")},h=()=>{const x=document.querySelector(".lingfeng-kefu-wrapper");x==null||x.classList.remove("lingfeng-kefu-wrapper")},d=async()=>{const x=document.querySelector(".lingfeng-kefu-wrapper"),C=x==null?void 0:x.querySelector('div[class*="kefu_kefu"]');return C?(C.click(),await new Promise(k=>setTimeout(k,500)),!0):!1},A=()=>{const x=document.querySelector(".lingfeng-kefu-wrapper");return!!(x==null?void 0:x.querySelector('div[class*="PT_popover_"]'))},v=async()=>{const C=document.querySelector(".lingfeng-kefu-wrapper").querySelector('button[class*="BTN_primary_"]');if(!C)return!1;const k=C.innerText;return k==="发送"?!0:k==="联系官方客服"?(C.click(),await new Promise(T=>setTimeout(T,500)),!0):!1},w=async()=>!A()&&!await d()?!1:await v();return(x,C)=>{const k=Ce("el-button"),T=Ce("el-radio-button"),S=Ce("el-radio-group"),M=Ce("el-form-item"),P=Ce("el-checkbox"),N=Ce("el-form"),B=Ce("el-image"),O=Ce("el-table-column"),I=Ce("el-table"),F=Ce("UUIDProgressTicker"),L=Ce("el-dialog"),R=Ai("loading");return Oe(),st(Zt,null,[z(k,{type:"primary",onClick:C[0]||(C[0]=U=>g())},{default:q(()=>[...C[5]||(C[5]=[de("span",null,"【凌风跨境工具箱】批量发布站点",-1)])]),_:1}),z(L,{modelValue:s.value,"onUpdate:modelValue":C[4]||(C[4]=U=>s.value=U),"close-on-click-modal":!1,"close-on-press-escape":!1,"before-close":m,top:"2vh"},{header:q(()=>[...C[6]||(C[6]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】批量发布站点")],-1)])]),footer:q(()=>[de("div",dX,[z(k,{onClick:C[3]||(C[3]=U=>m(()=>{s.value=!1}))},{default:q(()=>[...C[8]||(C[8]=[Ue("关 闭",-1)])]),_:1})]),z(F,{ref_key:"progressTickerRef",ref:c,style:{"margin-top":"10px"},"stroke-width":16},null,512)]),default:q(()=>[de("div",cX,[z(N,{inline:!0,model:u.value},{default:q(()=>[z(M,{prop:"productSelectType"},{default:q(()=>[z(S,{modelValue:u.value.productSelectType,"onUpdate:modelValue":C[1]||(C[1]=U=>u.value.productSelectType=U),"aria-label":"label position"},{default:q(()=>[z(T,{value:"1"},{default:q(()=>[Ue("当前列表勾选的商品"+ht(n.value.length?`(${n.value.length})`:""),1)]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(M,{prop:"quickTakedown"},{default:q(()=>[z(P,{modelValue:u.value.quickTakedown,"onUpdate:modelValue":C[2]||(C[2]=U=>u.value.quickTakedown=U),label:"无视结果快速发布",size:"large"},null,8,["modelValue"])]),_:1}),z(M,null,{default:q(()=>[z(k,{icon:St(U0),type:"primary",class:"custom-button",onClick:_,loading:t.value},{default:q(()=>[...C[7]||(C[7]=[Ue("开始发布 ",-1)])]),_:1},8,["icon","loading"])]),_:1})]),_:1},8,["model"])]),C[9]||(C[9]=de("div",{class:"table-border-left"}," 发布结果列表 ",-1)),na((Oe(),Et(I,{border:!0,data:i.value,height:"60vh"},{default:q(()=>[z(O,{label:"商品图片"},{default:q(({row:U})=>[z(B,{src:U.img,alt:"",loading:"lazy"},null,8,["src"])]),_:1}),z(O,{label:"商品名称",width:255},{default:q(({row:U})=>[de("p",null,ht(U.title),1),de("p",fX,"SKC: "+ht(U.skc),1)]),_:1}),z(O,{label:"商品状态"},{default:q(({row:U})=>[Ue(ht(U.resultMessage),1)]),_:1})]),_:1},8,["data"])),[[R,r.value]])]),_:1},8,["modelValue"])],64)}}},AX=cn(hX,[["__scopeId","data-v-eee5e471"]]),pX={style:{display:"flex","margin-top":"10px"}},mX={class:"desc"},gX={class:"flex justify-end items-center gap-2"},vX={__name:"BatchProductTakedown",setup(a){const s=we(!1),r=we(!1),i=we({productSelectType:"1",quickTakedown:!0}),n=we(!1),t=we([]),c=we([]),u=we([]),f=we([]),o=we([]),l=we(!1);let g=we(0),m=we(0),p=null;const _=Kn(),y=async()=>{r.value=!0;const N=await _.initMall();if(r.value=!1,!!N){c.value=[],t.value=[];try{const B=await cA();if(!B)return;if(B.length===0){ut.error("请先选择商品");return}s.value=!0,c.value=B.flatMap(O=>(Array.isArray(O.skc)?O.skc:[O.skc]).map(F=>({spu:O.spu,skc:F})))}catch(B){console.error(B)}finally{}}};function h(N){return new Promise(B=>setTimeout(B,N))}const d=async N=>{l.value=!0,t.value=[],await P();try{await ex({}).then(O=>{var I,F;(F=(I=O==null?void 0:O.data)==null?void 0:I.result)==null||F.list.forEach(L=>{L.toolName==="商品下架"&&(m.value=L.toolId)})})}catch(O){l.value=!1,console.error(`发送消息失败: ${O}`)}try{await xf({contentType:1,content:"商品下架"})}catch(O){l.value=!1,console.error(`发送消息失败: ${O}`)}let B=!1;try{for(;!B;)await Lc({direction:2,limit:30}).then(O=>{var F,L;((L=(F=O==null?void 0:O.data)==null?void 0:F.result)==null?void 0:L.messageList).forEach(R=>{R.contentType===6&&R.content.match("请发送商品信息给客服，可以更快为您处理哦")&&(g.value=R.msgId)})}),g.value&&(B=!0),h(500)}catch(O){x(),console.error(`发送消息失败: ${O}`)}await A(c.value),i.value.quickTakedown&&(ut.success("商品下架成功！"),l.value=!1)},A=async N=>{let O=0,I=0;for(l.value=!0;O+I*5<N.length&&l.value===!0;){const F=O+I*5,L=F+5,R=N.slice(F,L);let U=[],V=[];console.log(`共${N.length}条 正在处理${F}到${L}条`);try{const W=R.map(Q=>+Q.skc);await Promise.all(W.map(Q=>tx({productSkcId:Q}))).then(Q=>{U=U.concat(Q)}),await Promise.all(U.map(Q=>{var G,fe,ie;const le=Q.data;return xf({content:JSON.stringify({name:(G=le==null?void 0:le.result)==null?void 0:G.productName,img:(fe=le==null?void 0:le.result)==null?void 0:fe.productPicture,dataType:1,dataId:(ie=le==null?void 0:le.result)==null?void 0:ie.productSkcId,toolId:m.value}),contentType:7,parentMsgId:g.value}).catch(he=>{console.log(he)})})).then(Q=>{Q.forEach(le=>{V=V.concat(le.data.result)})}),u.value=u.value.concat(V),i.value.quickTakedown?t.value=u.value.map(Q=>{const{img:le,name:G,dataId:fe}=JSON.parse(Q.content);return{img:le,title:G,skc:fe,resultMessage:"请在客服消息窗口查看"}}):V.map(Q=>{f.value.push({msgId:Q.msgId,interval:setInterval(()=>{Lc({direction:2,limit:20,msgId:Q.msgId}).then(le=>{v(Q.msgId,le.data.result.messageList)})},2e3),completed:!1})})}catch(W){console.log(W)}I++}};function v(N,B){B.map(O=>{const I=O.content.match("(?<=【SKC ID：).*?(?=】)");if(I)try{const F=f.value.find(W=>String(W.msgId)===String(N));F.completed=!0,clearInterval(F.interval);const L=u.value.find(W=>String(JSON.parse(W.content).dataId)===String(I[0])),{img:R,name:U}=JSON.parse(L==null?void 0:L.content);o.value.indexOf(I[0])===-1&&(o.value.push(I[0]),t.value.push({img:R,title:U,skc:I[0],resultMessage:O.content.match("(?<=】：).*?(?=</p>)")[0]}));let V=0;f.value.forEach(W=>{W.completed===!0&&V++}),V===f.value.length&&(n.value||(ut.success("商品下架成功！"),n.value=!0),c.value=[],l.value=!1)}catch(F){console.log(F)}})}const w=async N=>{try{l.value&&await Pn.confirm("当前商品【批量下架】还未全部执行完毕，确认关闭吗？"),clearInterval(p),l.value=!1,N(),x()}catch{}},x=()=>{c.value=[],t.value=[],l.value=!1};Ra(s,async N=>{clearInterval(p),N?C():(S()&&await T(),k())});const C=()=>{document.querySelector('div[class*="kefu_kefuOuter"]').classList.add("lingfeng-kefu-wrapper")},k=()=>{const N=document.querySelector(".lingfeng-kefu-wrapper");N==null||N.classList.remove("lingfeng-kefu-wrapper")},T=async()=>{const N=document.querySelector(".lingfeng-kefu-wrapper"),B=N==null?void 0:N.querySelector('div[class*="kefu_kefu"]');return B?(B.click(),await new Promise(O=>setTimeout(O,500)),!0):!1},S=()=>{const N=document.querySelector(".lingfeng-kefu-wrapper");return!!(N==null?void 0:N.querySelector('div[class*="PT_popover_"]'))},M=async()=>{const B=document.querySelector(".lingfeng-kefu-wrapper").querySelector('button[class*="BTN_primary_"]');if(!B)return!1;const O=B.innerText;return O==="发送"?!0:O==="联系官方客服"?(B.click(),await new Promise(I=>setTimeout(I,500)),!0):!1},P=async()=>!S()&&!await T()?!1:await M();return(N,B)=>{const O=Ce("el-button"),I=Ce("el-radio-button"),F=Ce("el-radio-group"),L=Ce("el-form-item"),R=Ce("el-checkbox"),U=Ce("el-form"),V=Ce("el-image"),W=Ce("el-table-column"),Q=Ce("el-table"),le=Ce("el-dialog"),G=Ai("loading");return Oe(),st(Zt,null,[z(O,{type:"primary",onClick:y,loading:r.value},{default:q(()=>[...B[4]||(B[4]=[Ue(" 【凌风跨境工具箱】批量商品下架 ",-1)])]),_:1},8,["loading"]),z(le,{modelValue:s.value,"onUpdate:modelValue":B[3]||(B[3]=fe=>s.value=fe),"close-on-click-modal":!1,"close-on-press-escape":!1,top:"2vh",width:"40vw","before-close":w},{header:q(()=>[...B[5]||(B[5]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】批量下架商品")],-1)])]),footer:q(()=>[de("div",gX,[z(O,{onClick:B[2]||(B[2]=fe=>w(()=>{s.value=!1}))},{default:q(()=>[...B[7]||(B[7]=[Ue("关 闭",-1)])]),_:1})])]),default:q(()=>[de("div",pX,[z(U,{inline:!0,model:i.value},{default:q(()=>[z(L,{prop:"productSelectType"},{default:q(()=>[z(F,{modelValue:i.value.productSelectType,"onUpdate:modelValue":B[0]||(B[0]=fe=>i.value.productSelectType=fe),"aria-label":"label position"},{default:q(()=>[z(I,{value:"1"},{default:q(()=>[Ue("当前列表勾选的商品"+ht(c.value.length?`(${c.value.length})`:""),1)]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(L,{prop:"quickTakedown"},{default:q(()=>[z(R,{modelValue:i.value.quickTakedown,"onUpdate:modelValue":B[1]||(B[1]=fe=>i.value.quickTakedown=fe),label:"无视结果快速发布"},null,8,["modelValue"])]),_:1}),z(L,null,{default:q(()=>[z(O,{icon:St(U0),type:"primary",class:"custom-button",onClick:d,loading:l.value},{default:q(()=>[...B[6]||(B[6]=[Ue("开始下架 ",-1)])]),_:1},8,["icon","loading"])]),_:1})]),_:1},8,["model"])]),B[8]||(B[8]=de("div",{class:"table-border-left"}," 下架结果列表 ",-1)),na((Oe(),Et(Q,{data:t.value,height:"60vh",border:""},{default:q(()=>[z(W,{label:"商品图片"},{default:q(({row:fe})=>[z(V,{src:fe.img,alt:"",loading:"lazy"},null,8,["src"])]),_:1}),z(W,{label:"商品名称",width:255},{default:q(({row:fe})=>[de("p",null,ht(fe.title),1),de("p",mX,"SKC: "+ht(fe.skc),1)]),_:1}),z(W,{label:"商品状态"},{default:q(({row:fe})=>[Ue(ht(fe.resultMessage),1)]),_:1})]),_:1},8,["data"])),[[G,l.value]])]),_:1},8,["modelValue"])],64)}}},yX=cn(vX,[["__scopeId","data-v-4e5da2e6"]]),bX={style:{display:"flex","margin-top":"10px"},class:"volumn-form-dialog"},wX={style:{display:"flex","justify-content":"space-between"},class:"w-full"},_X={style:{"font-weight":"bold",margin:"5px 0","font-size":"14px"}},xX={class:"flex justify-end items-center gap-2"},CX={class:"flex justify-end items-center gap-2"},SX={__name:"BatchProductSetVolume",setup(a){const s=we(!1),r=we(!1),i=we({productSelectType:"0",isAll:"1"}),n=we(0),t=we(),c=we(),u=we([]),f={len:[{required:!0,message:"请完善信息"}],width:[{required:!0,message:"请完善信息"}],height:[{required:!0,message:"请完善信息"}],weight:[{required:!0,message:"请完善信息"}],remark:[{required:!0,message:"请完善信息"}]},o=we({page:1,pageSize:50,total:0}),l=we(!1),g=we([]),m=we(!1),p=Kn(),_=async()=>{r.value=!0;const k=await p.initMall();if(r.value=!1,!!k){g.value=[];try{const T=await cA();if(!T)return;s.value=!0,g.value=T.flatMap(S=>S.spu)}catch(T){console.error(T)}}};function y(){const{page:k,pageSize:T}=o.value;Lk({page:k,pageSize:T}).then(async({success:M,result:P,error_code:N,errorMsg:B})=>{if(M){o.value.total=P.total,P.pageItems.forEach(I=>{g.value.push(I.productId)});const O=o.value.pageSize*o.value.page;if(O<P.total&&m.value)return t.value.setText(`正在获取数据(${O}/${P.total})`),o.value.page+=1,y();await d()}else ut.error(`获取商品列表失败: ${B}`)}).catch(M=>{ut.error(`获取商品列表失败: ${M.message}`)})}const h=k=>{c.value.validate(async T=>{T&&(g.value.length===0&&i.value.isAll==="1"||(m.value=!0,u.value=[],t.value=B0.service({target:".volumn-form-dialog"}),i.value.isAll==="0"?y():await d()))})};async function d(){await A(),u.value.length&&(l.value=!0),m.value=!1,ut({message:"商品更新完成，需前往待办任务中查看",type:"success"})}async function A(){if(!m.value){t.value.close();return}try{const k=g.value[n.value],T=await Pk({productId:k}).then(M=>M.result).catch(M=>{console.log(M)}),S={bizIdType:1,bizIds:[k],productEditItems:[{editItem:4,editAdvice:i.value.remark}]};if(await Rk(S).catch(M=>{console.log(M)}),i.value.productSelectType==="0"){const M=v(T);await Uk(M).then(P=>{P.success||u.value.push({productId:T.productId,message:P.errorMsg})}).catch(P=>{console.log(P)})}if(n.value<g.value.length-1)return n.value++,t.value.setText(`正在组装 ${n.value}/${g.value.length}商品体积数据,请稍候...`),A();t.value.close()}catch{t.value.close()}}function v(k){var O,I;const{len:T,width:S,height:M,weight:P}=i.value,N=k.inProcessEditTaskList&&k.inProcessEditTaskList.length?k.inProcessEditTaskList[0].taskUid:null,B={productId:k.productId,taskVersion:0,refuseEdit:!1,isNeed:!1,taskUid:N,productSkcReqs:[{mainProductSkuSpecReqs:(O=k==null?void 0:k.productSkcList[0])==null?void 0:O.productSkcSpecList,productSkuReqs:[]}]};return(I=k==null?void 0:k.productSkcList[0])==null||I.productSkuList.forEach(F=>{B.productSkcReqs[0].productSkuReqs.push({productSkuAccessoriesReq:{productSkuAccessories:[]},productSkuSpecReqs:F.productSkuSpecList,productSkuWhExtAttrReq:{productSkuVolumeReq:{len:T*10,width:S*10,height:M*10},productSkuWeightReq:{value:P*1e3}}})}),B}function w(){let k="";u.value.forEach(T=>{k+=T.productId+" "}),navigator.clipboard.writeText(k)}const x=async k=>{m.value?Pn.confirm("是否确认中止修改","",{confirmButtonText:"确 定",cancelButtonText:"取 消",type:"warning"}).then(()=>{C(),k()}):(C(),k())};function C(){m.value=!1,g.value=[],t.value&&t.value.close(),i.value={productSelectType:"0",isAll:"1"},o.value={page:1,pageSize:50,total:0}}return Ra(s,async k=>{}),(k,T)=>{const S=Ce("el-button"),M=Ce("el-alert"),P=Ce("el-radio-button"),N=Ce("el-radio-group"),B=Ce("el-form-item"),O=Ce("el-input-number"),I=Ce("el-row"),F=Ce("el-input"),L=Ce("el-col"),R=Ce("el-form"),U=Ce("el-scrollbar"),V=Ce("el-dialog");return Oe(),st(Zt,null,[z(S,{type:"primary",onClick:_,loading:r.value},{default:q(()=>[...T[16]||(T[16]=[Ue(" 【凌风跨境工具箱】批量设置商品体积 ",-1)])]),_:1},8,["loading"]),z(V,{modelValue:s.value,"onUpdate:modelValue":T[15]||(T[15]=W=>s.value=W),"close-on-click-modal":!1,"close-on-press-escape":!1,top:"2vh",width:"45vw","before-close":x},{header:q(()=>[...T[17]||(T[17]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】一键修改商品体积")],-1)])]),footer:q(()=>[de("div",CX,[z(S,{onClick:T[14]||(T[14]=W=>x(()=>{s.value=!1}))},{default:q(()=>[...T[24]||(T[24]=[Ue("关 闭",-1)])]),_:1})])]),default:q(()=>[z(M,{title:"如果选中的商品中出现服装类目商品，会自动去除重复的SPU","show-icon":"",closable:!1,style:{"margin-bottom":"5px"}}),z(M,{title:"商品修改后，商品列表并不会及时的更新，真正的结果需要在待办任务中查看",type:"warning","show-icon":"",closable:!1}),de("div",bX,[z(R,{model:i.value,class:"w-full",rules:f,ref_key:"formRef",ref:c},{default:q(()=>[z(B,{prop:"productSelectType"},{default:q(()=>[de("div",wX,[z(N,{modelValue:i.value.productSelectType,"onUpdate:modelValue":T[0]||(T[0]=W=>i.value.productSelectType=W),"aria-label":"label position"},{default:q(()=>[z(P,{value:"0"},{default:q(()=>[...T[18]||(T[18]=[Ue("手动输入 ",-1)])]),_:1}),z(P,{value:"1"},{default:q(()=>[...T[19]||(T[19]=[Ue("按照平台测量参考体积设置商品",-1)])]),_:1})]),_:1},8,["modelValue"]),z(S,{icon:St(U0),type:"primary",class:"custom-button",onClick:h},{default:q(()=>[...T[20]||(T[20]=[Ue("开始更新 ",-1)])]),_:1},8,["icon"])])]),_:1}),z(B,{prop:"isAll",class:"w-full"},{default:q(()=>[z(N,{modelValue:i.value.isAll,"onUpdate:modelValue":T[1]||(T[1]=W=>i.value.isAll=W),"aria-label":"label position"},{default:q(()=>[z(P,{value:"1"},{default:q(()=>[Ue(" 当前列表勾选的商品"+ht(g.value.length&&i.value.isAll==="1"?`(${g.value.length})`:""),1)]),_:1}),z(P,{value:"0"},{default:q(()=>[...T[21]||(T[21]=[Ue("全部商品",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),i.value.productSelectType==="0"?(Oe(),Et(B,{key:0},{default:q(()=>[z(I,{class:"mb-5"},{default:q(()=>[z(B,{prop:"len",label:"最长边:","label-width":"80"},{default:q(()=>[z(O,{modelValue:i.value.len,"onUpdate:modelValue":T[2]||(T[2]=W=>i.value.len=W),controls:!1,precision:1,min:0},null,8,["modelValue"])]),_:1}),z(B,{prop:"width",label:"次长边:","label-width":"80"},{default:q(()=>[z(O,{modelValue:i.value.width,"onUpdate:modelValue":T[3]||(T[3]=W=>i.value.width=W),controls:!1,precision:1,min:0},null,8,["modelValue"])]),_:1})]),_:1}),z(I,null,{default:q(()=>[z(B,{prop:"height",label:"最短边:","label-width":"80"},{default:q(()=>[z(O,{modelValue:i.value.height,"onUpdate:modelValue":T[4]||(T[4]=W=>i.value.height=W),controls:!1,precision:1,min:0},null,8,["modelValue"])]),_:1}),z(B,{prop:"weight",label:"重量:","label-width":"80"},{default:q(()=>[z(O,{modelValue:i.value.weight,"onUpdate:modelValue":T[5]||(T[5]=W=>i.value.weight=W),controls:!1,precision:1,min:0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):tr("",!0),z(B,{prop:"remark",class:"w-3/4",label:"修改原因:","label-width":"90"},{default:q(()=>[z(F,{type:"textarea",rows:5,modelValue:i.value.remark,"onUpdate:modelValue":T[6]||(T[6]=W=>i.value.remark=W)},null,8,["modelValue"])]),_:1}),i.value.productSelectType==="2"?(Oe(),Et(B,{key:1},{default:q(()=>[z(I,{justify:"space-between"},{default:q(()=>[z(L,{span:4},{default:q(()=>[z(B,{prop:"",label:"索引:","label-width":"58"},{default:q(()=>[z(O,{modelValue:i.value.c,"onUpdate:modelValue":T[7]||(T[7]=W=>i.value.c=W),controls:!1,precision:0,min:0},null,8,["modelValue"])]),_:1})]),_:1}),z(L,{span:4},{default:q(()=>[z(B,{prop:"",label:"最边长:","label-width":"58"},{default:q(()=>[z(O,{modelValue:i.value.d,"onUpdate:modelValue":T[8]||(T[8]=W=>i.value.d=W),controls:!1,precision:0,min:0},null,8,["modelValue"])]),_:1})]),_:1}),z(L,{span:4},{default:q(()=>[z(B,{prop:"",label:"次边长:","label-width":"58"},{default:q(()=>[z(O,{modelValue:i.value.d,"onUpdate:modelValue":T[9]||(T[9]=W=>i.value.d=W),controls:!1,precision:0,min:0},null,8,["modelValue"])]),_:1})]),_:1}),z(L,{span:4},{default:q(()=>[z(B,{prop:"",label:"最短边:","label-width":"58"},{default:q(()=>[z(O,{modelValue:i.value.d,"onUpdate:modelValue":T[10]||(T[10]=W=>i.value.d=W),controls:!1,precision:0,min:0},null,8,["modelValue"])]),_:1})]),_:1}),z(L,{span:4},{default:q(()=>[z(B,{prop:"",label:"重量:","label-width":"58"},{default:q(()=>[z(O,{modelValue:i.value.d,"onUpdate:modelValue":T[11]||(T[11]=W=>i.value.d=W),controls:!1,precision:0,min:0},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})):tr("",!0)]),_:1},8,["model"])]),z(V,{modelValue:l.value,"onUpdate:modelValue":T[13]||(T[13]=W=>l.value=W),"close-on-click-modal":!1,"close-on-press-escape":!1,title:"上传失败列表",width:"600px"},{footer:q(()=>[de("div",xX,[z(S,{onClick:w},{default:q(()=>[...T[22]||(T[22]=[Ue("复制全部失败 SPU ID",-1)])]),_:1}),z(S,{onClick:T[12]||(T[12]=W=>l.value=!1),class:"custom-button",type:"primary"},{default:q(()=>[...T[23]||(T[23]=[Ue("确 定 ",-1)])]),_:1})])]),default:q(()=>[z(U,{"max-height":"400px",style:{padding:"0 20px"}},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(u.value,(W,Q)=>(Oe(),st("div",null,[de("div",_X,"("+ht(Q+1)+")SPU ID :"+ht(W.productId),1),z(M,{type:"error",closable:!1},{default:q(()=>[Ue("错误原因:"+ht(W.message),1)]),_:2},1024)]))),256))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},kX=cn(SX,[["__scopeId","data-v-ad3aa266"]]),Si=Di(),TX=({data:a,Mallid:s})=>Un.post("/ms/bg-flux-ms/compliance_property/page_query",a,{headers:{Mallid:s}}),EX=({data:a,Mallid:s})=>Un.post("/ms/bg-flux-ms/compliance_property/edit_compliance",a,{headers:{Mallid:s}}),ng=a=>Un.post("/api/kiana/mms/robin/searchForChainSupplier",a,{headers:{Mallid:Si}}),IX=a=>Un.post("/api/kiana/mms/robin/searchForSemiSupplier",a,{headers:{Mallid:Si}}),BX=a=>Un.post("/visage-agent-seller/product/skc/batchOpenJit",a,{headers:{Mallid:Si}}),FX=a=>Un.post("https://agentseller.temu.com/api/kiana/mms/magneto/price-adjust/product-adjust-query",a,{headers:{Mallid:Si}}),MX=a=>Un.post("https://agentseller.temu.com/api/kiana/mms/magneto/api/price-review-order/no-bom/reject-remark",a,{headers:{Mallid:Si}}),DX=a=>Un.post("/api/kiana/mms/magneto/price/bargain-no-bom",a,{headers:{Mallid:Si}}),OX=a=>Un.post("/api/kiana/mms/magneto/api/price-review-order/no-bom/review",a,{headers:{Mallid:Si}}),LX=a=>Un.post("https://agentseller.temu.com/api/kiana/mms/gmp/bg/magneto/api/price/adjust/reason/list",a,{headers:{Mallid:Si}}),PX=a=>Un.post("https://agentseller.temu.com/api/kiana/mms/gmp/bg/magneto/api/price/priceAdjust/gmpProductBatchAdjustPrice",a,{headers:{Mallid:Si}}),RX=a=>Un.post("/bg-brando-mms/goods/batchSupplierConfirm",a,{headers:{Mallid:Si}}),ax=a=>Un.post("/mms/venom/api/supplier/purchase/manager/querySubOrderList",a,{headers:{Mallid:Si}}),UX=a=>Un.post("/mms/venom/api/supplier/purchase/manager/batchJoinDeliveryOrderPlatformV2",a,{headers:{Mallid:Si}}),NX=a=>Un.post("/mms/venom/api/supplier/purchase/manager/batchApplyDeleteSubPurchaseOrder",a,{headers:{Mallid:Si}}),jX=a=>Un.post("/mms/venom/api/supplier/purchase/manager/batchCancelSubPurchaseOrder",a,{headers:{Mallid:Si}}),HX=a=>Un.post("/api/kiana/antman/adjust/for/flow/page",a,{headers:{Mallid:Si}}),QX=a=>Un.post("/antman/api/flow/list",a,{headers:{Mallid:Si}}),zX=a=>Un.post("/antman/api/flow/commit",a,{headers:{Mallid:Si}}),VX=a=>Un.post("/visage-agent-seller/product/skc/pageQuery",a,{headers:{Mallid:Si}}),WX=a=>Un.post("/lich-mms/audit/edit/task/product/batchAdd",a,{headers:{Mallid:Si}}),GX=a=>Un.post("/visage-agent-seller/product/edit/task/reply",a,{headers:{Mallid:Si}}),$X=a=>Un.post("/dunland/api/gmp/returnSupplier/package/pageQueryReturnSupplierPackage",a,{headers:{Mallid:Si}}),KX=a=>Un.post("/dunland/api/gmp/returnSupplier/package/queryReturnPackageSkcReason",a,{headers:{Mallid:Si}}),YX=a=>Un.post("/api/kiana/zoro/PriceComparingOrderSupplierRpcService/searchForSupplier",a,{headers:{Mallid:Si}}),K3=a=>Un.post("/api/kiana/gamblers/marketing/coupon/goods/query",a,{headers:{Mallid:Si}}),XX=a=>Un.post("/api/kiana/gamblers/marketing/mall/coupon/page/goods",a,{headers:{Mallid:Si}}),ZX=a=>Un.post("/api/kiana/gamblers/marketing/coupon/agree/info",a,{headers:{Mallid:Si}}),JX=a=>Un.post("/api/kiana/gamblers/marketing/mall/coupon/agree/info",a,{headers:{Mallid:Si}}),qX=a=>Un.post("/api/kiana/gamblers/marketing/mall/coupon/config",a,{headers:{Mallid:Si}}),eZ=a=>Un.post("/api/kiana/gamblers/marketing/coupon/batch/create",a,{headers:{Mallid:Si}}),tZ=a=>Un.post("/api/kiana/gamblers/marketing/mall/coupon/create",a,{headers:{Mallid:Si}}),fA={__name:"DataProgressButton",props:{title:String,url:Function,filter:Object,total:Number,cancelSet:{type:Boolean,default:!1},returnKey:{type:String,default:"data"},pageNumKey:{type:String,default:"pageNum"},pageSizeKey:{type:String,default:"pageSize"},MaxTotal:{type:Number,default:5e3},startIndex:{type:Number,default:1},endIndex:{type:Number,default:null},concurrency:{type:Number,default:5,validator:a=>a>0&&a<=10}},emits:["update:data","update:total","complete","isListener","progress"],setup(a,{expose:s,emit:r}){const i=a,n=we(i.startIndex),t=we(i.endIndex),c=r,u=we(!1),f=we(0);we(0);const o=we({page:1,pageSize:50,total:0}),l=we([]),g=Pr(()=>u.value?`获取中: ${l.value.length}/${o.value.total} (${f.value}%)`:i.title),m=()=>{c("isListener"),l.value=[],o.value.page=Math.ceil(n.value/o.value.pageSize)||1,o.value.total=0,f.value=0,u.value=!0,y()},p=()=>{u.value=!1,c("update:data",l.value),c("update:total",o.value.total),c("complete")},_=()=>{const d=Math.min(t.value||i.MaxTotal,o.value.total)-n.value+1,A=l.value.length;f.value=Math.min(100,Math.round(A/d*100)),c("progress",f.value)},y=async()=>{try{const d=await i.url({[i.pageNumKey]:1,[i.pageSizeKey]:1,...i.filter});if(!d.success)throw new Error(d.errorMsg||"获取总数失败");const A=d.result.total;o.value.total=A;const v=t.value?Math.min(t.value,A):A,w=Math.max(1,n.value),x=Math.min(Math.ceil((v-w+1)/o.value.pageSize),Math.ceil(i.MaxTotal/o.value.pageSize)),C=Math.ceil(w/o.value.pageSize),k=Array.from({length:x},(M,P)=>C+P),T=i.concurrency;for(let M=0;M<k.length;M+=T){const P=k.slice(M,M+T);if(await Promise.all(P.map(N=>h(N,w,v))),l.value.length>=v-w+1)break}const S=(w-1)%o.value.pageSize;l.value=l.value.slice(S,S+(v-w+1)),p()}catch(d){ut.error(`数据获取失败: ${d.message}`),p()}},h=async(d,A,v)=>{try{const w={[i.pageNumKey]:d,[i.pageSizeKey]:o.value.pageSize},C={...JSON.parse(JSON.stringify(i.filter||{})),...w},{success:k,result:T,errorMsg:S}=await i.url(C);if(!k)throw new Error(S||"分页请求失败");const M=T[i.returnKey]||[],P=d===Math.ceil(A/o.value.pageSize),N=d===Math.ceil(v/o.value.pageSize);let B=M;if(P){const O=(A-1)%o.value.pageSize;B=M.slice(O)}if(N){const O=v%o.value.pageSize||o.value.pageSize;B=B.slice(0,O)}l.value.push(...B),_()}catch(w){throw console.error(`第${d}页请求失败:`,w),w}};return s({refresh:m,loading:u,progress:f}),(d,A)=>{const v=Ce("el-button"),w=Ce("el-popover");return Oe(),Et(No,null,{default:q(()=>[z(w,{placement:"bottom",width:240},{reference:q(()=>[z(v,iA(d.$attrs,sA(d.$attrs),{onClick:m,loading:u.value}),{default:q(()=>[Ue(ht(g.value),1)]),_:1},16,["loading"])]),default:q(()=>[de("div",null,ht(`temu存在最大查询限制,当前功能最多支持获取${i.MaxTotal}条`),1)]),_:1})]),_:1})}}},rZ={class:"batch-processor"},nZ={class:"mb-4 leading-[1.5] text-center"},aZ={class:"mt-4 text-center"},iZ={__name:"BatchProcessorDialog",props:{data:{type:Array,default:()=>[]},requestHandler:{type:Function,required:!0},batchSize:{type:Number,default:50},concurrency:{type:Number,default:1},resultFormatter:{type:Function,default:a=>a},errorFormatter:{type:Function,default:a=>({error:!0,message:a.message||"处理失败"})},dialogVisible:{type:Boolean,default:!1},autoStart:{type:Boolean,default:!1}},emits:["update:dialogVisible","start","progress","complete","error","abort","close"],setup(a,{emit:s}){const r=a,i=Pr({get(){return r.dialogVisible},set(O){n("update:dialogVisible",O)}}),n=s,t=we([]),c=we(!1),u=we(0),f=we("请求中..."),o=we(null),l=we(!1),g=Pr(()=>Math.ceil(r.data.length/r.batchSize)),m=we(0),p=Pr(()=>r.data&&r.data.length>0&&!l.value),_=Pr(()=>!c.value||u.value>=100?"success":"active");Ra(()=>i.value,async O=>{O?r.autoStart&&(await il(),k()):(c.value&&M(),P())});let y=[],h=!1,d=null;const A=we(!1),v=we(""),w=async(O,I)=>{if(A.value)return{processed:!1,success:!1,result:[],error:v.value};try{const F=await r.requestHandler(O,I);return{processed:!0,success:!0,result:r.resultFormatter(F)}}catch(F){const{message:L}=r.errorFormatter(F);if(L.includes("429")||L.includes("超时")){console.warn("遇到429错误，暂停所有后续请求并加入重试队列"),A.value=!0,v.value="请求被限流，等待重试中...",f.value=v.value;const R=await x(O,I);return A.value=!1,v.value="",f.value="继续处理后续请求...",R}return{processed:!0,success:!1,result:[],error:L}}},x=(O,I)=>new Promise(F=>{const L={batchData:O,signal:I,resolve:F,completed:!1};y.push(L),h||C()}),C=()=>{h||y.length===0||(h=!0,console.log("开始重试机制，等待30秒后重试..."),f.value="遇到限流，等待30秒后重试...",d&&clearTimeout(d),d=setTimeout(async()=>{try{console.log("开始重试队列中的请求..."),f.value="正在重试被限流的请求...";const O=[...y];for(const I of O){if(I.signal.aborted){console.log("请求已被取消，跳过重试"),I.resolve({processed:!1,success:!1,result:[],error:"请求已被取消"});continue}try{const F=await r.requestHandler(I.batchData,I.signal);I.resolve({processed:!0,success:!0,result:r.resultFormatter(F)}),I.completed=!0}catch(F){const{message:L}=r.errorFormatter(F);L.includes("429")||L.includes("超时")?console.warn("重试再次失败，重新加入队列"):(I.resolve({processed:!0,success:!1,result:[],error:L}),I.completed=!0)}await new Promise(F=>setTimeout(F,100))}y=y.filter(I=>!I.completed)}finally{h=!1,y.length>0?C():(A.value=!1,v.value="",f.value="继续处理后续请求...")}},3e4))},k=async()=>{if(!(c.value||l.value||!p.value)){c.value=!0,u.value=0,m.value=0,t.value=[],o.value=new AbortController,n("start",r.data);try{r.concurrency<=1?await T(o.value.signal):await S(o.value.signal),f.value="处理完成",n("complete",t.value),B("success")}catch(O){O.name==="AbortError"||O.message==="处理已取消"?(f.value="处理已取消",n("abort",t.value),B("warning")):(f.value="处理出错",n("error",O,t.value),B("error"))}finally{c.value=!1}}},T=async O=>{for(let I=0;I<g.value;I++){if(O.aborted)throw new Error("处理已取消");for(;A.value;)if(await new Promise(V=>setTimeout(V,1e3)),O.aborted)throw new Error("处理已取消");m.value=I+1;const F=I*r.batchSize,L=Math.min(F+r.batchSize,r.data.length),R=r.data.slice(F,L),U=await w(R,O);t.value=[...t.value,U],u.value=Math.floor((I+1)/g.value*100),f.value=`正在处理第 ${m.value}/${g.value} 批数据`,n("progress",u.value,t.value)}},S=async O=>{let I=0;for(;I<g.value;){if(O.aborted)throw new Error("处理已取消");for(;A.value;)if(await new Promise(R=>setTimeout(R,1e3)),O.aborted)throw new Error("处理已取消");const F=Math.min(r.concurrency,g.value-I),L=[];for(let R=0;R<F;R++){const U=I+R,V=U*r.batchSize,W=Math.min(V+r.batchSize,r.data.length),Q=r.data.slice(V,W);L.push(w(Q,O).then(le=>{m.value=Math.max(m.value,U+1);const G=Math.min(m.value,g.value);return u.value=Math.floor(G/g.value*100),f.value=`正在处理第 ${m.value}/${g.value} 批数据`,n("progress",u.value,t.value),le}))}await Promise.all(L),I+=F}},M=()=>{o.value&&o.value.abort()},P=()=>{c.value=!1,A.value=!1,v.value="",u.value=0,m.value=0,t.value=[],f.value="请求中..."},N=()=>{n("update:dialogVisible",!1),n("close")},B=O=>{const I=t.value.length,F=t.value.filter(U=>U.success).length,L=I-F;PC(()=>{ha({title:O==="success"?"处理完成":O==="warning"?"处理已取消":"处理出错",message:`
        <div>总共处理: ${I} 条请求</div>
        <div>成功: ${F} 条</div>
        <div>失败: ${L} 条</div>
      `,type:O,duration:5e3,dangerouslyUseHTMLString:!0})},300)()};return $l(()=>{o.value&&o.value.abort(),d&&clearTimeout(d),y=[],h=!1}),(O,I)=>{const F=Ce("el-alert");return Oe(),Et(St(T8),{modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=L=>i.value=L),title:"批量执行任务进度情况","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"","show-close":!1},{footer:q(()=>[z(St(Qh),{onClick:N,disabled:c.value},{default:q(()=>[...I[1]||(I[1]=[Ue(" 关闭 ",-1)])]),_:1},8,["disabled"]),c.value?(Oe(),Et(St(Qh),{key:0,type:"danger",onClick:M},{default:q(()=>[...I[2]||(I[2]=[Ue(" 取消处理 ",-1)])]),_:1})):tr("",!0)]),default:q(()=>[de("div",rZ,[de("div",nZ,[z(F,{title:`请耐心等待~每一批次执行 ${a.batchSize} 个商品，执行过程中，请不要关闭弹窗或刷新网页，如想中断任务，请点击取消处理即可!`,type:"success",closable:!1},null,8,["title"])]),z(St(Jw),{percentage:u.value,status:_.value,"text-inside":!0,"stroke-width":24},null,8,["percentage","status"]),de("div",aZ,[de("span",null,ht(f.value),1)])])]),_:1},8,["modelValue"])}}},K0=cn(iZ,[["__scopeId","data-v-1ce89785"]]);function Y3(a){return new Promise(s=>setTimeout(s,a))}async function ix(a){const s=document.querySelector('input[type="text"][value="批量复制所选ID"]');if(s){if(s.disabled)return[];s.dispatchEvent(new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0})),await Y3(200)}else return ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("未找到: 批量复制所选ID"),!1;const r=document.querySelectorAll('ul[role="listbox"]');if(!r||r.length===0)return ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("未找到: 批量复制所选ID->ul"),!1;let i=null;for(let t of r){const c=t.querySelector("li");if(c.textContent.trim()==="SPU"){i=c;break}}if(!i)return ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),console.error("未找到: 批量复制所选ID->ul->li"),!1;i.click(),await Y3(200);let n="";try{n=await navigator.clipboard.readText()}catch(t){return console.error("读取剪贴板内容失败",t),ha({title:"读取商品数据失败, 请开启 seller.kuajingmaihuo.com 的剪贴板权限",dangerouslyUseHTMLString:!0,message:`<div style="display: flex;flex-direction: column; gap: 5px">
                        <div><strong>Chrome 浏览器: </strong> 设置 > 隐私和安全 > 网站设置 </div>
                        <div><strong>Edge 浏览器: </strong> 设置 > Cookie 和网站权限 > 剪贴板 </div>
                      </div>`,type:"error",duration:0}),!1}if(n){let t=n.split(`
`).map(m=>+m);if(t=t.filter(m=>Number.isNaN(m)===!1),t.length===0)return[];const c={pageNum:1,pageSize:t.length,productSpuIdList:t,supplierTodoTypeList:[]},u=a.isSemiManagedMall?"https://agentseller.temu.com/api/kiana/mms/robin/searchForSemiSupplier":"https://agentseller.temu.com/api/kiana/mms/robin/searchForChainSupplier",{success:f,errorMsg:o,error_msg:l,result:g}=await Un.post(u,c,{headers:{"Content-Type":"application/json;charset=UTF-8",Mallid:a.mallId},timeout:1e4});return f?g.dataList:(ut.error({message:o||l}),[])}return[]}async function ag(a){try{return await navigator.clipboard.writeText(a),ut.success("复制成功"),!0}catch(s){return ut.error("复制失败",s),!1}}const sZ={class:"flex items-center"},oZ={__name:"BatchEditProduceAccessory",props:{mallId:{type:String,required:!0},readonly:{type:Boolean,default:!1},isBatch:{type:Boolean,default:!1},modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue","change"],setup(a,{expose:s,emit:r}){const i=a,n=r,t=we(!1),c=we([]),u=we([]),f=we(null);we([]);const o=()=>Vl({vid:null,value:"",num:"",unitCode:null});Ra(()=>i.modelValue,A=>{(!A||A.length===0)&&n("update:modelValue",[o()])},{immediate:!0});async function l(A){try{if(!i.mallId)return[];const{success:v,errorMsg:w,result:x}=await pi({method:"POST",url:"/visage-agent-seller/product/accessory/pageQuery",timeout:1e4,headers:{MallId:i.mallId},data:A});if(!v)throw new Error(w);return x.pageItems}catch(v){return console.error("查询配件失败:",v),[]}}const g=PC(async A=>{t.value=!0;try{A?u.value=await l({fuzzyValue:A,page:1,pageSize:100}):u.value.length===0&&(u.value=await l({page:1,pageSize:100})),c.value=u.value.map(v=>(v.disabled=!1,i.modelValue.some(w=>w.vid===v.vid)&&(v.disabled=!0),v))}finally{t.value=!1}},500),m=A=>{const v=[...i.modelValue],w=v[A];let x=u.value.filter(C=>C.value===w.value)[0];x?(w.vid=x.vid,w.unitCode=x.unitCode):(w.vid=null,w.unitCode=null),n("update:modelValue",v),_(v,A)},p=(A,v)=>{const w=[...i.modelValue];w[A].num=Number(v)||0,n("update:modelValue",w),_(w,A)},_=(A,v)=>{var w;(w=f.value)==null||w.validate().then(()=>{n("change",{item:A[v],index:v})}).catch(x=>{Object.keys(x).includes(`${v}.num`)||n("change",{item:A[v],index:v})})},y=()=>{var A;(A=f.value)==null||A.validate().then(v=>{const w=[...i.modelValue,o()];n("update:modelValue",w)})},h=A=>{let{num:v,vid:w}=i.modelValue[A];if(!v||!w){const x=i.modelValue.filter((C,k)=>k!==A);n("update:modelValue",x)}else n("delete",A)},d=A=>[{required:!0,message:"请填写物品数量",trigger:"blur"},{type:"number",min:1,message:"请输入大于0的数字",trigger:["blur","change"]},{validator:(v,w,x)=>{A.value?isNaN(Number(w))||Number(w)<=0?x(new Error("请输入有效的数量")):x():x(new Error("请选择配件"))},trigger:"blur"}];return s({validate:()=>{var A;return(A=f.value)==null?void 0:A.validate()},resetFields:()=>{var A;return(A=f.value)==null?void 0:A.resetFields()},queryProductAccessoryAPI:l}),(A,v)=>{const w=Ce("el-option"),x=Ce("el-select"),C=Ce("el-input"),k=Ce("el-button"),T=Ce("el-form-item"),S=Ce("el-form");return Oe(),Et(S,{ref_key:"formRef",ref:f,class:"grid gap-3",model:a.modelValue,"label-width":"auto"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(a.modelValue,(M,P)=>(Oe(),Et(T,{key:M.vid,prop:`${P}.num`,rules:d(M)},{default:q(()=>[de("div",sZ,[z(C,{disabled:a.readonly,size:"default",placeholder:"数量",modelValue:M.num,"onUpdate:modelValue":N=>M.num=N,modelModifiers:{number:!0},onInput:N=>p(P,N)},D8({prepend:q(()=>[z(x,{disabled:a.readonly,modelValue:M.value,"onUpdate:modelValue":N=>M.value=N,placeholder:"可选择或者搜索物品",size:"default",filterable:"",remote:"","reserve-keyword":"","remote-method":St(g),loading:t.value,style:{width:"160px"},onChange:N=>m(P)},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(c.value,N=>(Oe(),Et(w,{key:N.vid,label:N.value,value:N.value,disabled:N.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["disabled","modelValue","onUpdate:modelValue","remote-method","loading","onChange"])]),_:2},[M.num?{name:"append",fn:q(()=>[v[0]||(v[0]=de("span",{class:"px-2"},"件",-1))]),key:"0"}:void 0]),1032,["disabled","modelValue","onUpdate:modelValue","onInput"]),a.isBatch?(Oe(),Et(k,{key:0,title:"删除",class:"!ml-2",icon:St(qh),type:"danger",onClick:_0(N=>h(P),["prevent"]),size:"small",circle:"",disabled:a.readonly},null,8,["icon","onClick","disabled"])):tr("",!0)])]),_:2},1032,["prop","rules"]))),128)),a.isBatch?(Oe(),Et(T,{key:0},{default:q(()=>[z(k,{class:"!mt-5",disabled:a.readonly,type:"success",onClick:y,size:"small",icon:St(hy)},{default:q(()=>[...v[1]||(v[1]=[Ue("添加",-1)])]),_:1},8,["disabled","icon"])]),_:1})):tr("",!0)]),_:1},8,["model"])}}},lZ={class:"flex gap-4 text-xs"},uZ=["title"],cZ={class:"mt-1"},fZ={style:{color:"#303133"}},dZ={class:"mt-1"},hZ={style:{color:"#303133"}},AZ={class:"mt-1"},pZ={style:{color:"#303133"}},mZ={class:"sku-table-container"},gZ={class:"sku-table-header"};const vZ={class:"sku-table-body"},yZ={class:"sku-table-row"},bZ={class:"body-cell"},wZ={class:"body-cell",style:{"flex-direction":"column","align-items":"start"}};const _Z={class:"body-cell"},xZ={class:"body-cell"},CZ={class:"body-cell",style:{"flex-direction":"column","align-items":"start"}},SZ={class:"flex justify-between mt-5"},kZ={key:0,class:"selectionNum"},TZ={__name:"GoodsListTable",props:{data:Array,mallId:String},setup(a,{expose:s}){const r=a,i=we({page:1,pageSize:10}),n=we(),t={"-1":"",0:"不是独立包装",1:"是独立包装"},c={1:"件",2:"双",3:"包"},u={1:"单品",3:"混合套装",2:"同款多件装"},f=we(null);Vl([]);const o=v=>{p()},l=v=>{p()},g=Pr(()=>{const v=i.value.page*i.value.pageSize;return r.data.slice(v-i.value.pageSize,v)}),m=we({}),p=()=>{il(()=>{n.value&&r.data.filter(w=>m.value[w.productId]).forEach(w=>{n.value.toggleRowSelection(w,!0)})})},_=v=>{const w={};v.length>0?v.forEach(x=>{w[x.productId]=!0}):g.value.forEach(x=>{delete w[x.productId]}),m.value=w},y=v=>{_(v)},h=v=>{_(v)},d=Pr(()=>r.data.filter(v=>m.value[v.productId])),A=()=>{m.value={},n.value.clearSelection()};return s({multipleSelection:d}),(v,w)=>{const x=Ce("el-table-column"),C=Ce("el-image"),k=Ce("el-table"),T=Ce("el-text"),S=Ce("el-pagination");return Oe(),st(Zt,null,[z(k,iA(v.$attrs,sA(v.$attrs),{class:"w-full",style:{height:"74vh"},data:g.value,"row-key":"productId","row-class-name":"cursor-pointer",onSelect:y,onSelectAll:h,ref_key:"multipleTableRef",ref:n}),{default:q(()=>[z(x,{type:"selection",width:"55"}),z(x,{label:"商品信息"},{default:q(({row:M})=>[de("div",lZ,[de("div",null,[z(C,{style:{width:"50px",height:"50px"},src:M.mainImageUrl},null,8,["src"])]),de("div",null,[de("div",null,[de("span",{title:M.productName,class:"font-bold text-[14px]",style:{color:"#303133"}},ht(M.productName),9,uZ)]),de("div",cZ,[w[4]||(w[4]=de("span",{style:{color:"#606266"}},"类目:",-1)),de("span",fZ,ht(M.leafCat.catName),1)]),de("div",dZ,[w[5]||(w[5]=de("span",{style:{color:"#606266"}},"货号:",-1)),de("span",hZ,ht(M.extCode||"--"),1)]),de("div",AZ,[w[6]||(w[6]=de("span",{style:{color:"#606266"}},"SPU ID:",-1)),de("span",pZ,ht(M.productId||"--"),1)])])])]),_:1}),z(x,{label:"SKC/SKU信息",width:"800"},{default:q(({row:M})=>[de("div",mZ,[de("div",gZ,[w[7]||(w[7]=de("div",{class:"header-cell"},"SKC ID",-1)),w[8]||(w[8]=de("div",{class:"header-cell"},"SKU分类",-1)),tr("",!0),w[9]||(w[9]=de("div",{class:"header-cell"},"申报价格",-1)),w[10]||(w[10]=de("div",{class:"header-cell"},"货号",-1)),w[11]||(w[11]=de("div",{class:"header-cell"},"规格属性",-1))]),de("div",vZ,[(Oe(!0),st(Zt,null,Hr(M.productSkuSummaries,P=>(Oe(),st("div",{key:P.productSkuId,class:"skc-row"},[de("div",yZ,[de("div",bZ,ht(P.productSkuId),1),de("div",wZ,[de("span",null,ht(u[P.productSkuMultiPack.skuClassification]),1),de("span",null," 单品数量 "+ht(P.productSkuMultiPack.numberOfPieces)+" "+ht(c[P.productSkuMultiPack.pieceUnitCode]),1),de("span",null,ht(t[P.productSkuMultiPack.individuallyPacked]),1)]),tr("",!0),de("div",_Z,ht(P.currencyType)+": "+ht((P.supplierPrice/100).toFixed(2)),1),de("div",xZ,ht(P.extCode||"--"),1),de("div",CZ,[(Oe(!0),st(Zt,null,Hr(P.productSkuSpecList,I=>(Oe(),st("div",{key:I.skuId},ht(I==null?void 0:I.parentSpecName)+"："+ht(I==null?void 0:I.specName),1))),128))])])]))),128))])])]),_:1}),z(x,{label:"创建时间"},{default:q(({row:M})=>[de("div",null,ht(new Date(M.createdAt).toLocaleString()),1)]),_:1})]),_:1},16,["data"]),de("div",SZ,[de("div",null,[d.value.length?(Oe(),st("div",kZ,[w[13]||(w[13]=Ue("已选择 ",-1)),z(T,{class:"mx-1 font-bold",onClick:w[0]||(w[0]=M=>A()),type:"primary"},{default:q(()=>[Ue(ht(d.value.length),1)]),_:1}),w[14]||(w[14]=Ue()),z(T,{class:"mx-1",onClick:w[1]||(w[1]=M=>A()),type:"primary"},{default:q(()=>[...w[12]||(w[12]=[Ue("取消选择",-1)])]),_:1})])):tr("",!0)]),z(S,{"current-page":i.value.page,"onUpdate:currentPage":w[2]||(w[2]=M=>i.value.page=M),"page-size":i.value.pageSize,"onUpdate:pageSize":w[3]||(w[3]=M=>i.value.pageSize=M),"page-sizes":[10,20,50,100],background:!0,layout:"total, prev, pager, next, sizes",total:r.data.length,onSizeChange:o,onCurrentChange:l},null,8,["current-page","page-size","total"])])],64)}}},EZ=cn(TZ,[["__scopeId","data-v-c7238895"]]),IZ={class:"dialog-footer"},BZ={__name:"editDialog",props:{submitData:Number,dialogVisible:Boolean},emits:["update:dialogVisible"],setup(a,{emit:s}){const r=a,i=Pr({get(){return r.dialogVisible},set(_){n("update:dialogVisible",_)}}),n=s,c=Vl({...{skuClassification:1,numberOfPieces:1,individuallyPacked:1,pieceUnitCode:1,productSkuAccessories:[],textarea:""}}),u=Di(),f=we(null),o=_=>{c.numberOfPieces=Number(_)||1},l=(_,{item:y,index:h})=>{},g=(_,y)=>{c.productSkuAccessories.splice(y,1)},m=_=>{_==3&&(c.pieceUnitCode=1)},p=async()=>{if(c.skuClassification==3)f.value.validate().then(()=>{n("submit",c)}).catch(_=>(console.log(_),ut.error("混合套装,必须添加包装清单！！")));else{if(c.skuClassification==2&&c.numberOfPieces==1)return ut.error("如果SKU单品数量等于一，请切换单品！！");n("submit",c)}};return(_,y)=>{const h=Ce("el-alert"),d=Ce("el-form-item"),A=Ce("el-option"),v=Ce("el-select"),w=Ce("el-input"),x=Ce("el-form"),C=Ce("el-button"),k=Ce("el-dialog");return Oe(),Et(k,{title:"批量修改SKU分类和清单",modelValue:i.value,"onUpdate:modelValue":y[10]||(y[10]=T=>i.value=T),width:"500",center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{footer:q(()=>[de("div",IZ,[z(C,{onClick:y[9]||(y[9]=T=>i.value=!1)},{default:q(()=>[...y[12]||(y[12]=[Ue("取消",-1)])]),_:1}),z(C,{type:"primary",onClick:p},{default:q(()=>[...y[13]||(y[13]=[Ue(" 开始更新 ",-1)])]),_:1})])]),default:q(()=>[de("div",null,[z(h,{closable:!1,title:"最终结果在代办任务中查看，待修改并不是需要手动修改",type:"warning"}),z(x,{model:c,class:"mt-5","label-width":"auto"},{default:q(()=>[z(d,{label:"执行商品数量："},{default:q(()=>[Ue(ht(a.submitData),1)]),_:1}),z(d,{label:"SKU分类："},{default:q(()=>[z(v,{class:"mb-3",modelValue:c.skuClassification,"onUpdate:modelValue":y[0]||(y[0]=T=>c.skuClassification=T),placeholder:"请选择",onChange:m},{default:q(()=>[z(A,{label:"单品",value:1}),z(A,{label:"同款多件装",value:2}),z(A,{label:"混合套装",value:3})]),_:1},8,["modelValue"]),z(w,{class:"mb-3",modelValue:c.numberOfPieces,"onUpdate:modelValue":y[2]||(y[2]=T=>c.numberOfPieces=T),modelModifiers:{number:!0},onInput:y[3]||(y[3]=T=>o(T)),style:{"max-width":"600px"},placeholder:"请输入"},{prepend:q(()=>[...y[11]||(y[11]=[de("span",null,"单品数量",-1)])]),append:q(()=>[z(v,{modelValue:c.pieceUnitCode,"onUpdate:modelValue":y[1]||(y[1]=T=>c.pieceUnitCode=T),disabled:c.skuClassification==3,placeholder:"Select",style:{width:"115px"}},{default:q(()=>[z(A,{label:"件",value:1}),z(A,{label:"双",value:2}),z(A,{label:"包",value:3})]),_:1},8,["modelValue","disabled"])]),_:1},8,["modelValue"]),na(z(v,{class:"mb-3",modelValue:c.individuallyPacked,"onUpdate:modelValue":y[4]||(y[4]=T=>c.individuallyPacked=T),placeholder:"请选择独立包装"},{default:q(()=>[z(A,{label:"是独立包装",value:1}),z(A,{label:"不是独立包装",value:0})]),_:1},8,["modelValue"]),[[Cl,c.skuClassification!==1]])]),_:1}),z(d,{label:"包装清单："},{default:q(()=>[z(oZ,{mallId:St(u),modelValue:c.productSkuAccessories,"onUpdate:modelValue":y[5]||(y[5]=T=>c.productSkuAccessories=T),isBatch:!0,onChange:y[6]||(y[6]=T=>l(_.row,T)),onDelete:y[7]||(y[7]=T=>g(_.row,T)),ref_key:"produceAccessoryRef",ref:f},null,8,["mallId","modelValue"])]),_:1}),z(d,{label:"修改原因："},{default:q(()=>[z(w,{modelValue:c.textarea,"onUpdate:modelValue":y[8]||(y[8]=T=>c.textarea=T),rows:2,type:"textarea",placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue"])}}};var b1={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var FZ=b1.exports,X3;function MZ(){return X3||(X3=1,(function(a,s){(function(){var r,i="4.17.21",n=200,t="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",o=500,l="__lodash_placeholder__",g=1,m=2,p=4,_=1,y=2,h=1,d=2,A=4,v=8,w=16,x=32,C=64,k=128,T=256,S=512,M=30,P="...",N=800,B=16,O=1,I=2,F=3,L=1/0,R=9007199254740991,U=17976931348623157e292,V=NaN,W=4294967295,Q=W-1,le=W>>>1,G=[["ary",k],["bind",h],["bindKey",d],["curry",v],["curryRight",w],["flip",S],["partial",x],["partialRight",C],["rearg",T]],fe="[object Arguments]",ie="[object Array]",he="[object AsyncFunction]",Y="[object Boolean]",K="[object Date]",oe="[object DOMException]",pe="[object Error]",ve="[object Function]",ge="[object GeneratorFunction]",ue="[object Map]",Te="[object Number]",Ee="[object Null]",ye="[object Object]",Se="[object Promise]",Fe="[object Proxy]",Ve="[object RegExp]",ke="[object Set]",Pe="[object String]",Re="[object Symbol]",Ye="[object Undefined]",Ke="[object WeakMap]",ot="[object WeakSet]",nt="[object ArrayBuffer]",mt="[object DataView]",Ut="[object Float32Array]",Ot="[object Float64Array]",wt="[object Int8Array]",Kt="[object Int16Array]",_t="[object Int32Array]",Jt="[object Uint8Array]",yr="[object Uint8ClampedArray]",vr="[object Uint16Array]",Br="[object Uint32Array]",zr=/\b__p \+= '';/g,mn=/\b(__p \+=) '' \+/g,jr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tn=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Gt=RegExp(Tn.source),$t=RegExp(Lt.source),Sr=/<%-([\s\S]+?)%>/g,br=/<%([\s\S]+?)%>/g,sr=/<%=([\s\S]+?)%>/g,Fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fn=/^\w*$/,Or=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ar=/[\\^$.*+?()[\]{}|]/g,Wr=RegExp(ar.source),Tt=/^\s+/,Qt=/\s/,hr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Ze=/,? & /,qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ge=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,tt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bt=/\w*$/,xt=/^[-+]0x[0-9a-f]+$/i,kt=/^0b[01]+$/i,Bt=/^\[object .+?Constructor\]$/,Dt=/^0o[0-7]+$/i,or=/^(?:0|[1-9]\d*)$/,gr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kr=/($^)/,it=/['\n\r\u2028\u2029\\]/g,We="\\ud800-\\udfff",gt="\\u0300-\\u036f",yt="\\ufe20-\\ufe2f",Rt="\\u20d0-\\u20ff",Mt=gt+yt+Rt,It="\\u2700-\\u27bf",xr="a-z\\xdf-\\xf6\\xf8-\\xff",rn="\\xac\\xb1\\xd7\\xf7",Zr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rr="\\u2000-\\u206f",$r=" \\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",lr="A-Z\\xc0-\\xd6\\xd8-\\xde",Mn="\\ufe0e\\ufe0f",ia=rn+Zr+Rr+$r,vn="['’]",ri="["+We+"]",ms="["+ia+"]",gi="["+Mt+"]",Eo="\\d+",kl="["+It+"]",ba="["+xr+"]",Da="[^"+We+ia+Eo+It+xr+lr+"]",va="\\ud83c[\\udffb-\\udfff]",Ba="(?:"+gi+"|"+va+")",po="[^"+We+"]",Tl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ki="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="["+lr+"]",mo="\\u200d",mu="(?:"+ba+"|"+Da+")",si="(?:"+gs+"|"+Da+")",ll="(?:"+vn+"(?:d|ll|m|re|s|t|ve))?",zo="(?:"+vn+"(?:D|LL|M|RE|S|T|VE))?",nc=Ba+"?",Kl="["+Mn+"]?",gu="(?:"+mo+"(?:"+[po,Tl,Ki].join("|")+")"+Kl+nc+")*",El="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xa="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Is=Kl+nc+gu,ul="(?:"+[kl,Tl,Ki].join("|")+")"+Is,vu="(?:"+[po+gi+"?",gi,Tl,Ki,ri].join("|")+")",sg=RegExp(vn,"g"),og=RegExp(gi,"g"),Ud=RegExp(va+"(?="+va+")|"+vu+Is,"g"),Y0=RegExp([gs+"?"+ba+"+"+ll+"(?="+[ms,gs,"$"].join("|")+")",si+"+"+zo+"(?="+[ms,gs+mu,"$"].join("|")+")",gs+"?"+mu+"+"+ll,gs+"+"+zo,Xa,El,Eo,ul].join("|"),"g"),X0=RegExp("["+mo+We+Mt+Mn+"]"),wa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zc=["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"],on=-1,bi={};bi[Ut]=bi[Ot]=bi[wt]=bi[Kt]=bi[_t]=bi[Jt]=bi[yr]=bi[vr]=bi[Br]=!0,bi[fe]=bi[ie]=bi[nt]=bi[Y]=bi[mt]=bi[K]=bi[pe]=bi[ve]=bi[ue]=bi[Te]=bi[ye]=bi[Ve]=bi[ke]=bi[Pe]=bi[Ke]=!1;var za={};za[fe]=za[ie]=za[nt]=za[mt]=za[Y]=za[K]=za[Ut]=za[Ot]=za[wt]=za[Kt]=za[_t]=za[ue]=za[Te]=za[ye]=za[Ve]=za[ke]=za[Pe]=za[Re]=za[Jt]=za[yr]=za[vr]=za[Br]=!0,za[pe]=za[ve]=za[Ke]=!1;var Ff={À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},us={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ac={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ni={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Z0=parseFloat,J0=parseInt,dA=typeof pa=="object"&&pa&&pa.Object===Object&&pa,q0=typeof self=="object"&&self&&self.Object===Object&&self,vs=dA||q0||Function("return this")(),Nd=s&&!s.nodeType&&s,_r=Nd&&!0&&a&&!a.nodeType&&a,hA=_r&&_r.exports===Nd,Mf=hA&&dA.process,io=(function(){try{var er=_r&&_r.require&&_r.require("util").types;return er||Mf&&Mf.binding&&Mf.binding("util")}catch{}})(),Za=io&&io.isArrayBuffer,Df=io&&io.isDate,Vc=io&&io.isMap,Ca=io&&io.isRegExp,$a=io&&io.isSet,Of=io&&io.isTypedArray;function gn(er,Tr,Ar){switch(Ar.length){case 0:return er.call(Tr);case 1:return er.call(Tr,Ar[0]);case 2:return er.call(Tr,Ar[0],Ar[1]);case 3:return er.call(Tr,Ar[0],Ar[1],Ar[2])}return er.apply(Tr,Ar)}function AA(er,Tr,Ar,_n){for(var Vn=-1,Na=er==null?0:er.length;++Vn<Na;){var Hi=er[Vn];Tr(_n,Hi,Ar(Hi),er)}return _n}function ys(er,Tr){for(var Ar=-1,_n=er==null?0:er.length;++Ar<_n&&Tr(er[Ar],Ar,er)!==!1;);return er}function jd(er,Tr){for(var Ar=er==null?0:er.length;Ar--&&Tr(er[Ar],Ar,er)!==!1;);return er}function Hd(er,Tr){for(var Ar=-1,_n=er==null?0:er.length;++Ar<_n;)if(!Tr(er[Ar],Ar,er))return!1;return!0}function Io(er,Tr){for(var Ar=-1,_n=er==null?0:er.length,Vn=0,Na=[];++Ar<_n;){var Hi=er[Ar];Tr(Hi,Ar,er)&&(Na[Vn++]=Hi)}return Na}function Bo(er,Tr){var Ar=er==null?0:er.length;return!!Ar&&Yi(er,Tr,0)>-1}function Il(er,Tr,Ar){for(var _n=-1,Vn=er==null?0:er.length;++_n<Vn;)if(Ar(Tr,er[_n]))return!0;return!1}function _a(er,Tr){for(var Ar=-1,_n=er==null?0:er.length,Vn=Array(_n);++Ar<_n;)Vn[Ar]=Tr(er[Ar],Ar,er);return Vn}function so(er,Tr){for(var Ar=-1,_n=Tr.length,Vn=er.length;++Ar<_n;)er[Vn+Ar]=Tr[Ar];return er}function go(er,Tr,Ar,_n){var Vn=-1,Na=er==null?0:er.length;for(_n&&Na&&(Ar=er[++Vn]);++Vn<Na;)Ar=Tr(Ar,er[Vn],Vn,er);return Ar}function Wc(er,Tr,Ar,_n){var Vn=er==null?0:er.length;for(_n&&Vn&&(Ar=er[--Vn]);Vn--;)Ar=Tr(Ar,er[Vn],Vn,er);return Ar}function Vo(er,Tr){for(var Ar=-1,_n=er==null?0:er.length;++Ar<_n;)if(Tr(er[Ar],Ar,er))return!0;return!1}var lg=Nr("length");function ug(er){return er.split("")}function cg(er){return er.match(qe)||[]}function pA(er,Tr,Ar){var _n;return Ar(er,function(Vn,Na,Hi){if(Tr(Vn,Na,Hi))return _n=Na,!1}),_n}function es(er,Tr,Ar,_n){for(var Vn=er.length,Na=Ar+(_n?1:-1);_n?Na--:++Na<Vn;)if(Tr(er[Na],Na,er))return Na;return-1}function Yi(er,Tr,Ar){return Tr===Tr?sc(er,Tr,Ar):es(er,Bl,Ar)}function Cr(er,Tr,Ar,_n){for(var Vn=Ar-1,Na=er.length;++Vn<Na;)if(_n(er[Vn],Tr))return Vn;return-1}function Bl(er){return er!==er}function oo(er,Tr){var Ar=er==null?0:er.length;return Ar?Pf(er,Tr)/Ar:V}function Nr(er){return function(Tr){return Tr==null?r:Tr[er]}}function ic(er){return function(Tr){return er==null?r:er[Tr]}}function mA(er,Tr,Ar,_n,Vn){return Vn(er,function(Na,Hi,vi){Ar=_n?(_n=!1,Na):Tr(Ar,Na,Hi,vi)}),Ar}function Lf(er,Tr){var Ar=er.length;for(er.sort(Tr);Ar--;)er[Ar]=er[Ar].value;return er}function Pf(er,Tr){for(var Ar,_n=-1,Vn=er.length;++_n<Vn;){var Na=Tr(er[_n]);Na!==r&&(Ar=Ar===r?Na:Ar+Na)}return Ar}function Rf(er,Tr){for(var Ar=-1,_n=Array(er);++Ar<er;)_n[Ar]=Tr(Ar);return _n}function ji(er,Tr){return _a(Tr,function(Ar){return[Ar,er[Ar]]})}function Qd(er){return er&&er.slice(0,gA(er)+1).replace(Tt,"")}function Oa(er){return function(Tr){return er(Tr)}}function ki(er,Tr){return _a(Tr,function(Ar){return er[Ar]})}function ea(er,Tr){return er.has(Tr)}function Ws(er,Tr){for(var Ar=-1,_n=er.length;++Ar<_n&&Yi(Tr,er[Ar],0)>-1;);return Ar}function ga(er,Tr){for(var Ar=er.length;Ar--&&Yi(Tr,er[Ar],0)>-1;);return Ar}function Ua(er,Tr){for(var Ar=er.length,_n=0;Ar--;)er[Ar]===Tr&&++_n;return _n}var fg=ic(Ff),Fl=ic(us);function yu(er){return"\\"+Ni[er]}function ep(er,Tr){return er==null?r:er[Tr]}function cl(er){return X0.test(er)}function fl(er){return wa.test(er)}function Gs(er){for(var Tr,Ar=[];!(Tr=er.next()).done;)Ar.push(Tr.value);return Ar}function ts(er){var Tr=-1,Ar=Array(er.size);return er.forEach(function(_n,Vn){Ar[++Tr]=[Vn,_n]}),Ar}function zd(er,Tr){return function(Ar){return er(Tr(Ar))}}function bu(er,Tr){for(var Ar=-1,_n=er.length,Vn=0,Na=[];++Ar<_n;){var Hi=er[Ar];(Hi===Tr||Hi===l)&&(er[Ar]=l,Na[Vn++]=Ar)}return Na}function Vd(er){var Tr=-1,Ar=Array(er.size);return er.forEach(function(_n){Ar[++Tr]=_n}),Ar}function Wo(er){var Tr=-1,Ar=Array(er.size);return er.forEach(function(_n){Ar[++Tr]=[_n,_n]}),Ar}function sc(er,Tr,Ar){for(var _n=Ar-1,Vn=er.length;++_n<Vn;)if(er[_n]===Tr)return _n;return-1}function oc(er,Tr,Ar){for(var _n=Ar+1;_n--;)if(er[_n]===Tr)return _n;return _n}function Go(er){return cl(er)?Wd(er):lg(er)}function dl(er){return cl(er)?dg(er):ug(er)}function gA(er){for(var Tr=er.length;Tr--&&Qt.test(er.charAt(Tr)););return Tr}var vA=ic(ac);function Wd(er){for(var Tr=Ud.lastIndex=0;Ud.test(er);)++Tr;return Tr}function dg(er){return er.match(Ud)||[]}function yA(er){return er.match(Y0)||[]}var bA=(function er(Tr){Tr=Tr==null?vs:wu.defaults(vs.Object(),Tr,wu.pick(vs,zc));var Ar=Tr.Array,_n=Tr.Date,Vn=Tr.Error,Na=Tr.Function,Hi=Tr.Math,vi=Tr.Object,Gc=Tr.RegExp,vo=Tr.String,yo=Tr.TypeError,Uf=Ar.prototype,tp=Na.prototype,Yl=vi.prototype,$c=Tr["__core-js_shared__"],Nf=tp.toString,ci=Yl.hasOwnProperty,jf=0,Ml=(function(){var H=/[^.]+$/.exec($c&&$c.keys&&$c.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""})(),Hf=Yl.toString,wA=Nf.call(vi),Gd=vs._,_A=Gc("^"+Nf.call(ci).replace(ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qf=hA?Tr.Buffer:r,aa=Tr.Symbol,Xl=Tr.Uint8Array,Kc=Qf?Qf.allocUnsafe:r,Zl=zd(vi.getPrototypeOf,vi),oi=vi.create,rp=Yl.propertyIsEnumerable,zf=Uf.splice,xA=aa?aa.isConcatSpreadable:r,Bs=aa?aa.iterator:r,lc=aa?aa.toStringTag:r,Jl=(function(){try{var H=Lu(vi,"defineProperty");return H({},"",{}),H}catch{}})(),uc=Tr.clearTimeout!==vs.clearTimeout&&Tr.clearTimeout,CA=_n&&_n.now!==vs.Date.now&&_n.now,cc=Tr.setTimeout!==vs.setTimeout&&Tr.setTimeout,Vf=Hi.ceil,Dl=Hi.floor,Wf=vi.getOwnPropertySymbols,hg=Qf?Qf.isBuffer:r,SA=Tr.isFinite,kA=Uf.join,TA=zd(vi.keys,vi),Bi=Hi.max,Fs=Hi.min,Fo=_n.now,np=Tr.parseInt,EA=Hi.random,Ag=Uf.reverse,$d=Lu(Tr,"DataView"),Yc=Lu(Tr,"Map"),Xc=Lu(Tr,"Promise"),fc=Lu(Tr,"Set"),Zc=Lu(Tr,"WeakMap"),Jc=Lu(vi,"create"),Gf=Zc&&new Zc,dc={},ap=Qe($d),_u=Qe(Yc),Qi=Qe(Xc),Ms=Qe(fc),rs=Qe(Zc),bs=aa?aa.prototype:r,qc=bs?bs.valueOf:r,IA=bs?bs.toString:r;function dt(H){if(as(H)&&!sa(H)&&!(H instanceof La)){if(H instanceof ws)return H;if(ci.call(H,"__wrapped__"))return rt(H)}return new ws(H)}var $o=(function(){function H(){}return function(ae){if(!Li(ae))return{};if(oi)return oi(ae);H.prototype=ae;var be=new H;return H.prototype=r,be}})();function xu(){}function ws(H,ae){this.__wrapped__=H,this.__actions__=[],this.__chain__=!!ae,this.__index__=0,this.__values__=r}dt.templateSettings={escape:Sr,evaluate:br,interpolate:sr,variable:"",imports:{_:dt}},dt.prototype=xu.prototype,dt.prototype.constructor=dt,ws.prototype=$o(xu.prototype),ws.prototype.constructor=ws;function La(H){this.__wrapped__=H,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=W,this.__views__=[]}function pg(){var H=new La(this.__wrapped__);return H.__actions__=lo(this.__actions__),H.__dir__=this.__dir__,H.__filtered__=this.__filtered__,H.__iteratees__=lo(this.__iteratees__),H.__takeCount__=this.__takeCount__,H.__views__=lo(this.__views__),H}function Kd(){if(this.__filtered__){var H=new La(this);H.__dir__=-1,H.__filtered__=!0}else H=this.clone(),H.__dir__*=-1;return H}function ip(){var H=this.__wrapped__.value(),ae=this.__dir__,be=sa(H),Ne=ae<0,at=be?H.length:0,vt=ns(0,at,this.__views__),Ft=vt.start,Wt=vt.end,ir=Wt-Ft,Lr=Ne?Wt:Ft-1,Ur=this.__iteratees__,Kr=Ur.length,Sn=0,$n=Fs(ir,this.__takeCount__);if(!be||!Ne&&at==ir&&$n==ir)return nf(H,this.__actions__);var ua=[];e:for(;ir--&&Sn<$n;){Lr+=ae;for(var Qa=-1,ca=H[Lr];++Qa<Kr;){var ei=Ur[Qa],ii=ei.iteratee,iu=ei.type,bl=ii(ca);if(iu==I)ca=bl;else if(!bl){if(iu==O)continue e;break e}}ua[Sn++]=ca}return ua}La.prototype=$o(xu.prototype),La.prototype.constructor=La;function Cu(H){var ae=-1,be=H==null?0:H.length;for(this.clear();++ae<be;){var Ne=H[ae];this.set(Ne[0],Ne[1])}}function sp(){this.__data__=Jc?Jc(null):{},this.size=0}function Ol(H){var ae=this.has(H)&&delete this.__data__[H];return this.size-=ae?1:0,ae}function hc(H){var ae=this.__data__;if(Jc){var be=ae[H];return be===f?r:be}return ci.call(ae,H)?ae[H]:r}function op(H){var ae=this.__data__;return Jc?ae[H]!==r:ci.call(ae,H)}function Yd(H,ae){var be=this.__data__;return this.size+=this.has(H)?0:1,be[H]=Jc&&ae===r?f:ae,this}Cu.prototype.clear=sp,Cu.prototype.delete=Ol,Cu.prototype.get=hc,Cu.prototype.has=op,Cu.prototype.set=Yd;function Ll(H){var ae=-1,be=H==null?0:H.length;for(this.clear();++ae<be;){var Ne=H[ae];this.set(Ne[0],Ne[1])}}function lp(){this.__data__=[],this.size=0}function mg(H){var ae=this.__data__,be=Jd(ae,H);if(be<0)return!1;var Ne=ae.length-1;return be==Ne?ae.pop():zf.call(ae,be,1),--this.size,!0}function up(H){var ae=this.__data__,be=Jd(ae,H);return be<0?r:ae[be][1]}function Ds(H){return Jd(this.__data__,H)>-1}function gg(H,ae){var be=this.__data__,Ne=Jd(be,H);return Ne<0?(++this.size,be.push([H,ae])):be[Ne][1]=ae,this}Ll.prototype.clear=lp,Ll.prototype.delete=mg,Ll.prototype.get=up,Ll.prototype.has=Ds,Ll.prototype.set=gg;function Ko(H){var ae=-1,be=H==null?0:H.length;for(this.clear();++ae<be;){var Ne=H[ae];this.set(Ne[0],Ne[1])}}function Xd(){this.size=0,this.__data__={hash:new Cu,map:new(Yc||Ll),string:new Cu}}function vg(H){var ae=id(this,H).delete(H);return this.size-=ae?1:0,ae}function cp(H){return id(this,H).get(H)}function fp(H){return id(this,H).has(H)}function dp(H,ae){var be=id(this,H),Ne=be.size;return be.set(H,ae),this.size+=be.size==Ne?0:1,this}Ko.prototype.clear=Xd,Ko.prototype.delete=vg,Ko.prototype.get=cp,Ko.prototype.has=fp,Ko.prototype.set=dp;function Su(H){var ae=-1,be=H==null?0:H.length;for(this.__data__=new Ko;++ae<be;)this.add(H[ae])}function hp(H){return this.__data__.set(H,f),this}function Ap(H){return this.__data__.has(H)}Su.prototype.add=Su.prototype.push=hp,Su.prototype.has=Ap;function hl(H){var ae=this.__data__=new Ll(H);this.size=ae.size}function pp(){this.__data__=new Ll,this.size=0}function mp(H){var ae=this.__data__,be=ae.delete(H);return this.size=ae.size,be}function gp(H){return this.__data__.get(H)}function yg(H){return this.__data__.has(H)}function bg(H,ae){var be=this.__data__;if(be instanceof Ll){var Ne=be.__data__;if(!Yc||Ne.length<n-1)return Ne.push([H,ae]),this.size=++be.size,this;be=this.__data__=new Ko(Ne)}return be.set(H,ae),this.size=be.size,this}hl.prototype.clear=pp,hl.prototype.delete=mp,hl.prototype.get=gp,hl.prototype.has=yg,hl.prototype.set=bg;function BA(H,ae){var be=sa(H),Ne=!be&&Js(H),at=!be&&!Ne&&Uu(H),vt=!be&&!Ne&&!at&&Ec(H),Ft=be||Ne||at||vt,Wt=Ft?Rf(H.length,vo):[],ir=Wt.length;for(var Lr in H)(ae||ci.call(H,Lr))&&!(Ft&&(Lr=="length"||at&&(Lr=="offset"||Lr=="parent")||vt&&(Lr=="buffer"||Lr=="byteLength"||Lr=="byteOffset")||Ul(Lr,ir)))&&Wt.push(Lr);return Wt}function vp(H){var ae=H.length;return ae?H[fh(0,ae-1)]:r}function wg(H,ae){return ne(lo(H),Tu(ae,0,H.length))}function yp(H){return ne(lo(H))}function Zd(H,ae,be){(be!==r&&!Aa(H[ae],be)||be===r&&!(ae in H))&&Pl(H,ae,be)}function ku(H,ae,be){var Ne=H[ae];(!(ci.call(H,ae)&&Aa(Ne,be))||be===r&&!(ae in H))&&Pl(H,ae,be)}function Jd(H,ae){for(var be=H.length;be--;)if(Aa(H[be][0],ae))return be;return-1}function FA(H,ae,be,Ne){return ql(H,function(at,vt,Ft){ae(Ne,at,be(at),Ft)}),Ne}function MA(H,ae){return H&&ml(ae,Je(ae),H)}function qd(H,ae){return H&&ml(ae,He(ae),H)}function Pl(H,ae,be){ae=="__proto__"&&Jl?Jl(H,ae,{configurable:!0,enumerable:!0,value:be,writable:!0}):H[ae]=be}function eh(H,ae){for(var be=-1,Ne=ae.length,at=Ar(Ne),vt=H==null;++be<Ne;)at[be]=vt?r:Ae(H,ae[be]);return at}function Tu(H,ae,be){return H===H&&(be!==r&&(H=H<=be?H:be),ae!==r&&(H=H>=ae?H:ae)),H}function Mo(H,ae,be,Ne,at,vt){var Ft,Wt=ae&g,ir=ae&m,Lr=ae&p;if(be&&(Ft=at?be(H,Ne,at,vt):be(H)),Ft!==r)return Ft;if(!Li(H))return H;var Ur=sa(H);if(Ur){if(Ft=n0(H),!Wt)return lo(H,Ft)}else{var Kr=Os(H),Sn=Kr==ve||Kr==ge;if(Uu(H))return ph(H,Wt);if(Kr==ye||Kr==fe||Sn&&!at){if(Ft=ir||Sn?{}:Eh(H),!Wt)return ir?Fp(H,qd(Ft,H)):Bp(H,MA(Ft,H))}else{if(!za[Kr])return at?H:{};Ft=Bg(H,Kr,Wt)}}vt||(vt=new hl);var $n=vt.get(H);if($n)return $n;vt.set(H,Ft),Jg(H)?H.forEach(function(ca){Ft.add(Mo(ca,ae,be,ca,H,vt))}):Nv(H)&&H.forEach(function(ca,ei){Ft.set(ei,Mo(ca,ae,be,ei,H,vt))});var ua=Lr?ir?Sh:Ch:ir?He:Je,Qa=Ur?r:ua(H);return ys(Qa||H,function(ca,ei){Qa&&(ei=ca,ca=H[ei]),ku(Ft,ei,Mo(ca,ae,be,ei,H,vt))}),Ft}function th(H){var ae=Je(H);return function(be){return ef(be,H,ae)}}function ef(H,ae,be){var Ne=be.length;if(H==null)return!Ne;for(H=vi(H);Ne--;){var at=be[Ne],vt=ae[at],Ft=H[at];if(Ft===r&&!(at in H)||!vt(Ft))return!1}return!0}function DA(H,ae,be){if(typeof H!="function")throw new yo(c);return ce(function(){H.apply(r,be)},ae)}function Eu(H,ae,be,Ne){var at=-1,vt=Bo,Ft=!0,Wt=H.length,ir=[],Lr=ae.length;if(!Wt)return ir;be&&(ae=_a(ae,Oa(be))),Ne?(vt=Il,Ft=!1):ae.length>=n&&(vt=ea,Ft=!1,ae=new Su(ae));e:for(;++at<Wt;){var Ur=H[at],Kr=be==null?Ur:be(Ur);if(Ur=Ne||Ur!==0?Ur:0,Ft&&Kr===Kr){for(var Sn=Lr;Sn--;)if(ae[Sn]===Kr)continue e;ir.push(Ur)}else vt(ae,Kr,Ne)||ir.push(Ur)}return ir}var ql=ZA(pl),Do=ZA($f,!0);function Al(H,ae){var be=!0;return ql(H,function(Ne,at,vt){return be=!!ae(Ne,at,vt),be}),be}function Ac(H,ae,be){for(var Ne=-1,at=H.length;++Ne<at;){var vt=H[Ne],Ft=ae(vt);if(Ft!=null&&(Wt===r?Ft===Ft&&!is(Ft):be(Ft,Wt)))var Wt=Ft,ir=vt}return ir}function OA(H,ae,be,Ne){var at=H.length;for(be=ka(be),be<0&&(be=-be>at?0:at+be),Ne=Ne===r||Ne>at?at:ka(Ne),Ne<0&&(Ne+=at),Ne=be>Ne?0:fm(Ne);be<Ne;)H[be++]=ae;return H}function pc(H,ae){var be=[];return ql(H,function(Ne,at,vt){ae(Ne,at,vt)&&be.push(Ne)}),be}function Xi(H,ae,be,Ne,at){var vt=-1,Ft=H.length;for(be||(be=Qp),at||(at=[]);++vt<Ft;){var Wt=H[vt];ae>0&&be(Wt)?ae>1?Xi(Wt,ae-1,be,Ne,at):so(at,Wt):Ne||(at[at.length]=Wt)}return at}var rh=Mp(),tf=Mp(!0);function pl(H,ae){return H&&rh(H,ae,Je)}function $f(H,ae){return H&&tf(H,ae,Je)}function mc(H,ae){return Io(ae,function(be){return Tc(H[be])})}function Oo(H,ae){ae=Oi(ae,H);for(var be=0,Ne=ae.length;H!=null&&be<Ne;)H=H[Ie(ae[be++])];return be&&be==Ne?H:r}function LA(H,ae,be){var Ne=ae(H);return sa(H)?Ne:so(Ne,be(H))}function $s(H){return H==null?H===r?Ye:Ee:lc&&lc in vi(H)?t0(H):Gp(H)}function nh(H,ae){return H>ae}function _g(H,ae){return H!=null&&ci.call(H,ae)}function bp(H,ae){return H!=null&&ae in vi(H)}function ah(H,ae,be){return H>=Fs(ae,be)&&H<Bi(ae,be)}function Kf(H,ae,be){for(var Ne=be?Il:Bo,at=H[0].length,vt=H.length,Ft=vt,Wt=Ar(vt),ir=1/0,Lr=[];Ft--;){var Ur=H[Ft];Ft&&ae&&(Ur=_a(Ur,Oa(ae))),ir=Fs(Ur.length,ir),Wt[Ft]=!be&&(ae||at>=120&&Ur.length>=120)?new Su(Ft&&Ur):r}Ur=H[0];var Kr=-1,Sn=Wt[0];e:for(;++Kr<at&&Lr.length<ir;){var $n=Ur[Kr],ua=ae?ae($n):$n;if($n=be||$n!==0?$n:0,!(Sn?ea(Sn,ua):Ne(Lr,ua,be))){for(Ft=vt;--Ft;){var Qa=Wt[Ft];if(!(Qa?ea(Qa,ua):Ne(H[Ft],ua,be)))continue e}Sn&&Sn.push(ua),Lr.push($n)}}return Lr}function PA(H,ae,be,Ne){return pl(H,function(at,vt,Ft){ae(Ne,be(at),vt,Ft)}),Ne}function rf(H,ae,be){ae=Oi(ae,H),H=ld(H,ae);var Ne=H==null?H:H[Ie(Zs(ae))];return Ne==null?r:gn(Ne,H,be)}function eu(H){return as(H)&&$s(H)==fe}function wp(H){return as(H)&&$s(H)==nt}function ih(H){return as(H)&&$s(H)==K}function Iu(H,ae,be,Ne,at){return H===ae?!0:H==null||ae==null||!as(H)&&!as(ae)?H!==H&&ae!==ae:_p(H,ae,be,Ne,Iu,at)}function _p(H,ae,be,Ne,at,vt){var Ft=sa(H),Wt=sa(ae),ir=Ft?ie:Os(H),Lr=Wt?ie:Os(ae);ir=ir==fe?ye:ir,Lr=Lr==fe?ye:Lr;var Ur=ir==ye,Kr=Lr==ye,Sn=ir==Lr;if(Sn&&Uu(H)){if(!Uu(ae))return!1;Ft=!0,Ur=!1}if(Sn&&!Ur)return vt||(vt=new hl),Ft||Ec(H)?Np(H,ae,be,Ne,at,vt):jp(H,ae,ir,be,Ne,at,vt);if(!(be&_)){var $n=Ur&&ci.call(H,"__wrapped__"),ua=Kr&&ci.call(ae,"__wrapped__");if($n||ua){var Qa=$n?H.value():H,ca=ua?ae.value():ae;return vt||(vt=new hl),at(Qa,ca,be,Ne,vt)}}return Sn?(vt||(vt=new hl),ff(H,ae,be,Ne,at,vt)):!1}function gc(H){return as(H)&&Os(H)==ue}function vc(H,ae,be,Ne){var at=be.length,vt=at,Ft=!Ne;if(H==null)return!vt;for(H=vi(H);at--;){var Wt=be[at];if(Ft&&Wt[2]?Wt[1]!==H[Wt[0]]:!(Wt[0]in H))return!1}for(;++at<vt;){Wt=be[at];var ir=Wt[0],Lr=H[ir],Ur=Wt[1];if(Ft&&Wt[2]){if(Lr===r&&!(ir in H))return!1}else{var Kr=new hl;if(Ne)var Sn=Ne(Lr,Ur,ir,H,ae,Kr);if(!(Sn===r?Iu(Ur,Lr,_|y,Ne,Kr):Sn))return!1}}return!0}function RA(H){if(!Li(H)||Vp(H))return!1;var ae=Tc(H)?_A:Bt;return ae.test(Qe(H))}function xp(H){return as(H)&&$s(H)==Ve}function UA(H){return as(H)&&Os(H)==ke}function Cp(H){return as(H)&&Ph(H.length)&&!!bi[$s(H)]}function NA(H){return typeof H=="function"?H:H==null?Fa:typeof H=="object"?sa(H)?Xf(H[0],H[1]):Yf(H):ds(H)}function sh(H){if(!sd(H))return TA(H);var ae=[];for(var be in vi(H))ci.call(H,be)&&be!="constructor"&&ae.push(be);return ae}function oh(H){if(!Li(H))return Wp(H);var ae=sd(H),be=[];for(var Ne in H)Ne=="constructor"&&(ae||!ci.call(H,Ne))||be.push(Ne);return be}function lh(H,ae){return H<ae}function uh(H,ae){var be=-1,Ne=xs(H)?Ar(H.length):[];return ql(H,function(at,vt,Ft){Ne[++be]=ae(at,vt,Ft)}),Ne}function Yf(H){var ae=Ou(H);return ae.length==1&&ae[0][2]?xc(ae[0][0],ae[0][1]):function(be){return be===H||vc(be,H,ae)}}function Xf(H,ae){return hf(H)&&a0(ae)?xc(Ie(H),ae):function(be){var Ne=Ae(be,H);return Ne===r&&Ne===ae?_e(be,H):Iu(ae,Ne,_|y)}}function Zf(H,ae,be,Ne,at){H!==ae&&rh(ae,function(vt,Ft){if(at||(at=new hl),Li(vt))xg(H,ae,Ft,be,Zf,Ne,at);else{var Wt=Ne?Ne(Af(H,Ft),vt,Ft+"",H,ae,at):r;Wt===r&&(Wt=vt),Zd(H,Ft,Wt)}},He)}function xg(H,ae,be,Ne,at,vt,Ft){var Wt=Af(H,be),ir=Af(ae,be),Lr=Ft.get(ir);if(Lr){Zd(H,be,Lr);return}var Ur=vt?vt(Wt,ir,be+"",H,ae,Ft):r,Kr=Ur===r;if(Kr){var Sn=sa(ir),$n=!Sn&&Uu(ir),ua=!Sn&&!$n&&Ec(ir);Ur=ir,Sn||$n||ua?sa(Wt)?Ur=Wt:fs(Wt)?Ur=lo(Wt):$n?(Kr=!1,Ur=ph(ir,!0)):ua?(Kr=!1,Ur=wc(ir,!0)):Ur=[]:yd(ir)||Js(ir)?(Ur=Wt,Js(Wt)?Ur=t1(Wt):(!Li(Wt)||Tc(Wt))&&(Ur=Eh(ir))):Kr=!1}Kr&&(Ft.set(ir,Ur),at(Ur,ir,Ne,vt,Ft),Ft.delete(ir)),Zd(H,be,Ur)}function Sp(H,ae){var be=H.length;if(be)return ae+=ae<0?be:0,Ul(ae,be)?H[ae]:r}function kp(H,ae,be){ae.length?ae=_a(ae,function(vt){return sa(vt)?function(Ft){return Oo(Ft,vt.length===1?vt[0]:vt)}:vt}):ae=[Fa];var Ne=-1;ae=_a(ae,Oa(Jn()));var at=uh(H,function(vt,Ft,Wt){var ir=_a(ae,function(Lr){return Lr(vt)});return{criteria:ir,index:++Ne,value:vt}});return Lf(at,function(vt,Ft){return of(vt,Ft,be)})}function ch(H,ae){return jA(H,ae,function(be,Ne){return _e(H,Ne)})}function jA(H,ae,be){for(var Ne=-1,at=ae.length,vt={};++Ne<at;){var Ft=ae[Ne],Wt=Oo(H,Ft);be(Wt,Ft)&&Jf(vt,Oi(Ft,H),Wt)}return vt}function Cg(H){return function(ae){return Oo(ae,H)}}function HA(H,ae,be,Ne){var at=Ne?Cr:Yi,vt=-1,Ft=ae.length,Wt=H;for(H===ae&&(ae=lo(ae)),be&&(Wt=_a(H,Oa(be)));++vt<Ft;)for(var ir=0,Lr=ae[vt],Ur=be?be(Lr):Lr;(ir=at(Wt,Ur,ir,Ne))>-1;)Wt!==H&&zf.call(Wt,ir,1),zf.call(H,ir,1);return H}function Tp(H,ae){for(var be=H?ae.length:0,Ne=be-1;be--;){var at=ae[be];if(be==Ne||at!==vt){var vt=at;Ul(at)?zf.call(H,at,1):Ah(H,at)}}return H}function fh(H,ae){return H+Dl(EA()*(ae-H+1))}function Ep(H,ae,be,Ne){for(var at=-1,vt=Bi(Vf((ae-H)/(be||1)),0),Ft=Ar(vt);vt--;)Ft[Ne?vt:++at]=H,H+=be;return Ft}function dh(H,ae){var be="";if(!H||ae<1||ae>R)return be;do ae%2&&(be+=H),ae=Dl(ae/2),ae&&(H+=H);while(ae);return be}function Sa(H,ae){return Z(Ys(H,ae,Fa),H+"")}function Ks(H){return vp(en(H))}function Sg(H,ae){var be=en(H);return ne(be,Tu(ae,0,be.length))}function Jf(H,ae,be,Ne){if(!Li(H))return H;ae=Oi(ae,H);for(var at=-1,vt=ae.length,Ft=vt-1,Wt=H;Wt!=null&&++at<vt;){var ir=Ie(ae[at]),Lr=be;if(ir==="__proto__"||ir==="constructor"||ir==="prototype")return H;if(at!=Ft){var Ur=Wt[ir];Lr=Ne?Ne(Ur,ir,Wt):r,Lr===r&&(Lr=Li(Ur)?Ur:Ul(ae[at+1])?[]:{})}ku(Wt,ir,Lr),Wt=Wt[ir]}return H}var QA=Gf?function(H,ae){return Gf.set(H,ae),H}:Fa,Ip=Jl?function(H,ae){return Jl(H,"toString",{configurable:!0,enumerable:!1,value:wn(ae),writable:!0})}:Fa;function kg(H){return ne(en(H))}function bo(H,ae,be){var Ne=-1,at=H.length;ae<0&&(ae=-ae>at?0:at+ae),be=be>at?at:be,be<0&&(be+=at),at=ae>be?0:be-ae>>>0,ae>>>=0;for(var vt=Ar(at);++Ne<at;)vt[Ne]=H[Ne+ae];return vt}function zA(H,ae){var be;return ql(H,function(Ne,at,vt){return be=ae(Ne,at,vt),!be}),!!be}function qf(H,ae,be){var Ne=0,at=H==null?Ne:H.length;if(typeof ae=="number"&&ae===ae&&at<=le){for(;Ne<at;){var vt=Ne+at>>>1,Ft=H[vt];Ft!==null&&!is(Ft)&&(be?Ft<=ae:Ft<ae)?Ne=vt+1:at=vt}return at}return hh(H,ae,Fa,be)}function hh(H,ae,be,Ne){var at=0,vt=H==null?0:H.length;if(vt===0)return 0;ae=be(ae);for(var Ft=ae!==ae,Wt=ae===null,ir=is(ae),Lr=ae===r;at<vt;){var Ur=Dl((at+vt)/2),Kr=be(H[Ur]),Sn=Kr!==r,$n=Kr===null,ua=Kr===Kr,Qa=is(Kr);if(Ft)var ca=Ne||ua;else Lr?ca=ua&&(Ne||Sn):Wt?ca=ua&&Sn&&(Ne||!$n):ir?ca=ua&&Sn&&!$n&&(Ne||!Qa):$n||Qa?ca=!1:ca=Ne?Kr<=ae:Kr<ae;ca?at=Ur+1:vt=Ur}return Fs(vt,Q)}function VA(H,ae){for(var be=-1,Ne=H.length,at=0,vt=[];++be<Ne;){var Ft=H[be],Wt=ae?ae(Ft):Ft;if(!be||!Aa(Wt,ir)){var ir=Wt;vt[at++]=Ft===0?0:Ft}}return vt}function yc(H){return typeof H=="number"?H:is(H)?V:+H}function Lo(H){if(typeof H=="string")return H;if(sa(H))return _a(H,Lo)+"";if(is(H))return IA?IA.call(H):"";var ae=H+"";return ae=="0"&&1/H==-L?"-0":ae}function Bu(H,ae,be){var Ne=-1,at=Bo,vt=H.length,Ft=!0,Wt=[],ir=Wt;if(be)Ft=!1,at=Il;else if(vt>=n){var Lr=ae?null:Eg(H);if(Lr)return Vd(Lr);Ft=!1,at=ea,ir=new Su}else ir=ae?[]:Wt;e:for(;++Ne<vt;){var Ur=H[Ne],Kr=ae?ae(Ur):Ur;if(Ur=be||Ur!==0?Ur:0,Ft&&Kr===Kr){for(var Sn=ir.length;Sn--;)if(ir[Sn]===Kr)continue e;ae&&ir.push(Kr),Wt.push(Ur)}else at(ir,Kr,be)||(ir!==Wt&&ir.push(Kr),Wt.push(Ur))}return Wt}function Ah(H,ae){return ae=Oi(ae,H),H=ld(H,ae),H==null||delete H[Ie(Zs(ae))]}function WA(H,ae,be,Ne){return Jf(H,ae,be(Oo(H,ae)),Ne)}function bc(H,ae,be,Ne){for(var at=H.length,vt=Ne?at:-1;(Ne?vt--:++vt<at)&&ae(H[vt],vt,H););return be?bo(H,Ne?0:vt,Ne?vt+1:at):bo(H,Ne?vt+1:0,Ne?at:vt)}function nf(H,ae){var be=H;return be instanceof La&&(be=be.value()),go(ae,function(Ne,at){return at.func.apply(at.thisArg,so([Ne],at.args))},be)}function af(H,ae,be){var Ne=H.length;if(Ne<2)return Ne?Bu(H[0]):[];for(var at=-1,vt=Ar(Ne);++at<Ne;)for(var Ft=H[at],Wt=-1;++Wt<Ne;)Wt!=at&&(vt[at]=Eu(vt[at]||Ft,H[Wt],ae,be));return Bu(Xi(vt,1),ae,be)}function GA(H,ae,be){for(var Ne=-1,at=H.length,vt=ae.length,Ft={};++Ne<at;){var Wt=Ne<vt?ae[Ne]:r;be(Ft,H[Ne],Wt)}return Ft}function $A(H){return fs(H)?H:[]}function KA(H){return typeof H=="function"?H:Fa}function Oi(H,ae){return sa(H)?H:hf(H,ae)?[H]:xe(li(H))}var ed=Sa;function Yo(H,ae,be){var Ne=H.length;return be=be===r?Ne:be,!ae&&be>=Ne?H:bo(H,ae,be)}var td=uc||function(H){return vs.clearTimeout(H)};function ph(H,ae){if(ae)return H.slice();var be=H.length,Ne=Kc?Kc(be):new H.constructor(be);return H.copy(Ne),Ne}function rd(H){var ae=new H.constructor(H.byteLength);return new Xl(ae).set(new Xl(H)),ae}function Fu(H,ae){var be=ae?rd(H.buffer):H.buffer;return new H.constructor(be,H.byteOffset,H.byteLength)}function YA(H){var ae=new H.constructor(H.source,bt.exec(H));return ae.lastIndex=H.lastIndex,ae}function sf(H){return qc?vi(qc.call(H)):{}}function wc(H,ae){var be=ae?rd(H.buffer):H.buffer;return new H.constructor(be,H.byteOffset,H.length)}function mh(H,ae){if(H!==ae){var be=H!==r,Ne=H===null,at=H===H,vt=is(H),Ft=ae!==r,Wt=ae===null,ir=ae===ae,Lr=is(ae);if(!Wt&&!Lr&&!vt&&H>ae||vt&&Ft&&ir&&!Wt&&!Lr||Ne&&Ft&&ir||!be&&ir||!at)return 1;if(!Ne&&!vt&&!Lr&&H<ae||Lr&&be&&at&&!Ne&&!vt||Wt&&be&&at||!Ft&&at||!ir)return-1}return 0}function of(H,ae,be){for(var Ne=-1,at=H.criteria,vt=ae.criteria,Ft=at.length,Wt=be.length;++Ne<Ft;){var ir=mh(at[Ne],vt[Ne]);if(ir){if(Ne>=Wt)return ir;var Lr=be[Ne];return ir*(Lr=="desc"?-1:1)}}return H.index-ae.index}function nd(H,ae,be,Ne){for(var at=-1,vt=H.length,Ft=be.length,Wt=-1,ir=ae.length,Lr=Bi(vt-Ft,0),Ur=Ar(ir+Lr),Kr=!Ne;++Wt<ir;)Ur[Wt]=ae[Wt];for(;++at<Ft;)(Kr||at<vt)&&(Ur[be[at]]=H[at]);for(;Lr--;)Ur[Wt++]=H[at++];return Ur}function XA(H,ae,be,Ne){for(var at=-1,vt=H.length,Ft=-1,Wt=be.length,ir=-1,Lr=ae.length,Ur=Bi(vt-Wt,0),Kr=Ar(Ur+Lr),Sn=!Ne;++at<Ur;)Kr[at]=H[at];for(var $n=at;++ir<Lr;)Kr[$n+ir]=ae[ir];for(;++Ft<Wt;)(Sn||at<vt)&&(Kr[$n+be[Ft]]=H[at++]);return Kr}function lo(H,ae){var be=-1,Ne=H.length;for(ae||(ae=Ar(Ne));++be<Ne;)ae[be]=H[be];return ae}function ml(H,ae,be,Ne){var at=!be;be||(be={});for(var vt=-1,Ft=ae.length;++vt<Ft;){var Wt=ae[vt],ir=Ne?Ne(be[Wt],H[Wt],Wt,be,H):r;ir===r&&(ir=H[Wt]),at?Pl(be,Wt,ir):ku(be,Wt,ir)}return be}function Bp(H,ae){return ml(H,df(H),ae)}function Fp(H,ae){return ml(H,Th(H),ae)}function Mu(H,ae){return function(be,Ne){var at=sa(be)?AA:FA,vt=ae?ae():{};return at(be,H,Jn(Ne,2),vt)}}function lf(H){return Sa(function(ae,be){var Ne=-1,at=be.length,vt=at>1?be[at-1]:r,Ft=at>2?be[2]:r;for(vt=H.length>3&&typeof vt=="function"?(at--,vt):r,Ft&&cs(be[0],be[1],Ft)&&(vt=at<3?r:vt,at=1),ae=vi(ae);++Ne<at;){var Wt=be[Ne];Wt&&H(ae,Wt,Ne,vt)}return ae})}function ZA(H,ae){return function(be,Ne){if(be==null)return be;if(!xs(be))return H(be,Ne);for(var at=be.length,vt=ae?at:-1,Ft=vi(be);(ae?vt--:++vt<at)&&Ne(Ft[vt],vt,Ft)!==!1;);return be}}function Mp(H){return function(ae,be,Ne){for(var at=-1,vt=vi(ae),Ft=Ne(ae),Wt=Ft.length;Wt--;){var ir=Ft[H?Wt:++at];if(be(vt[ir],ir,vt)===!1)break}return ae}}function ad(H,ae,be){var Ne=ae&h,at=_c(H);function vt(){var Ft=this&&this!==vs&&this instanceof vt?at:H;return Ft.apply(Ne?be:this,arguments)}return vt}function Dp(H){return function(ae){ae=li(ae);var be=cl(ae)?dl(ae):r,Ne=be?be[0]:ae.charAt(0),at=be?Yo(be,1).join(""):ae.slice(1);return Ne[H]()+at}}function uf(H){return function(ae){return go(Hn(xn(ae).replace(sg,"")),H,"")}}function _c(H){return function(){var ae=arguments;switch(ae.length){case 0:return new H;case 1:return new H(ae[0]);case 2:return new H(ae[0],ae[1]);case 3:return new H(ae[0],ae[1],ae[2]);case 4:return new H(ae[0],ae[1],ae[2],ae[3]);case 5:return new H(ae[0],ae[1],ae[2],ae[3],ae[4]);case 6:return new H(ae[0],ae[1],ae[2],ae[3],ae[4],ae[5]);case 7:return new H(ae[0],ae[1],ae[2],ae[3],ae[4],ae[5],ae[6])}var be=$o(H.prototype),Ne=H.apply(be,ae);return Li(Ne)?Ne:be}}function Op(H,ae,be){var Ne=_c(H);function at(){for(var vt=arguments.length,Ft=Ar(vt),Wt=vt,ir=Du(at);Wt--;)Ft[Wt]=arguments[Wt];var Lr=vt<3&&Ft[0]!==ir&&Ft[vt-1]!==ir?[]:bu(Ft,ir);if(vt-=Lr.length,vt<be)return Up(H,ae,gh,at.placeholder,r,Ft,Lr,r,r,be-vt);var Ur=this&&this!==vs&&this instanceof at?Ne:H;return gn(Ur,this,Ft)}return at}function cf(H){return function(ae,be,Ne){var at=vi(ae);if(!xs(ae)){var vt=Jn(be,3);ae=Je(ae),be=function(Wt){return vt(at[Wt],Wt,at)}}var Ft=H(ae,be,Ne);return Ft>-1?at[vt?ae[Ft]:Ft]:r}}function Lp(H){return Rl(function(ae){var be=ae.length,Ne=be,at=ws.prototype.thru;for(H&&ae.reverse();Ne--;){var vt=ae[Ne];if(typeof vt!="function")throw new yo(c);if(at&&!Ft&&kh(vt)=="wrapper")var Ft=new ws([],!0)}for(Ne=Ft?Ne:be;++Ne<be;){vt=ae[Ne];var Wt=kh(vt),ir=Wt=="wrapper"?e0(vt):r;ir&&Ih(ir[0])&&ir[1]==(k|v|x|T)&&!ir[4].length&&ir[9]==1?Ft=Ft[kh(ir[0])].apply(Ft,ir[3]):Ft=vt.length==1&&Ih(vt)?Ft[Wt]():Ft.thru(vt)}return function(){var Lr=arguments,Ur=Lr[0];if(Ft&&Lr.length==1&&sa(Ur))return Ft.plant(Ur).value();for(var Kr=0,Sn=be?ae[Kr].apply(this,Lr):Ur;++Kr<be;)Sn=ae[Kr].call(this,Sn);return Sn}})}function gh(H,ae,be,Ne,at,vt,Ft,Wt,ir,Lr){var Ur=ae&k,Kr=ae&h,Sn=ae&d,$n=ae&(v|w),ua=ae&S,Qa=Sn?r:_c(H);function ca(){for(var ei=arguments.length,ii=Ar(ei),iu=ei;iu--;)ii[iu]=arguments[iu];if($n)var bl=Du(ca),su=Ua(ii,bl);if(Ne&&(ii=nd(ii,Ne,at,$n)),vt&&(ii=XA(ii,vt,Ft,$n)),ei-=su,$n&&ei<Lr){var Us=bu(ii,bl);return Up(H,ae,gh,ca.placeholder,be,ii,Us,Wt,ir,Lr-ei)}var Ic=Kr?be:this,xd=Sn?Ic[H]:H;return ei=ii.length,Wt?ii=Dg(ii,Wt):ua&&ei>1&&ii.reverse(),Ur&&ir<ei&&(ii.length=ir),this&&this!==vs&&this instanceof ca&&(xd=Qa||_c(xd)),xd.apply(Ic,ii)}return ca}function Pp(H,ae){return function(be,Ne){return PA(be,H,ae(Ne),{})}}function vh(H,ae){return function(be,Ne){var at;if(be===r&&Ne===r)return ae;if(be!==r&&(at=be),Ne!==r){if(at===r)return Ne;typeof be=="string"||typeof Ne=="string"?(be=Lo(be),Ne=Lo(Ne)):(be=yc(be),Ne=yc(Ne)),at=H(be,Ne)}return at}}function yh(H){return Rl(function(ae){return ae=_a(ae,Oa(Jn())),Sa(function(be){var Ne=this;return H(ae,function(at){return gn(at,Ne,be)})})})}function bh(H,ae){ae=ae===r?" ":Lo(ae);var be=ae.length;if(be<2)return be?dh(ae,H):ae;var Ne=dh(ae,Vf(H/Go(ae)));return cl(ae)?Yo(dl(Ne),0,H).join(""):Ne.slice(0,H)}function Tg(H,ae,be,Ne){var at=ae&h,vt=_c(H);function Ft(){for(var Wt=-1,ir=arguments.length,Lr=-1,Ur=Ne.length,Kr=Ar(Ur+ir),Sn=this&&this!==vs&&this instanceof Ft?vt:H;++Lr<Ur;)Kr[Lr]=Ne[Lr];for(;ir--;)Kr[Lr++]=arguments[++Wt];return gn(Sn,at?be:this,Kr)}return Ft}function Rp(H){return function(ae,be,Ne){return Ne&&typeof Ne!="number"&&cs(ae,be,Ne)&&(be=Ne=r),ae=Nu(ae),be===r?(be=ae,ae=0):be=Nu(be),Ne=Ne===r?ae<be?1:-1:Nu(Ne),Ep(ae,be,Ne,H)}}function wh(H){return function(ae,be){return typeof ae=="string"&&typeof be=="string"||(ae=yl(ae),be=yl(be)),H(ae,be)}}function Up(H,ae,be,Ne,at,vt,Ft,Wt,ir,Lr){var Ur=ae&v,Kr=Ur?Ft:r,Sn=Ur?r:Ft,$n=Ur?vt:r,ua=Ur?r:vt;ae|=Ur?x:C,ae&=~(Ur?C:x),ae&A||(ae&=-4);var Qa=[H,ae,at,$n,Kr,ua,Sn,Wt,ir,Lr],ca=be.apply(r,Qa);return Ih(H)&&Me(ca,Qa),ca.placeholder=Ne,te(ca,H,ae)}function JA(H){var ae=Hi[H];return function(be,Ne){if(be=yl(be),Ne=Ne==null?0:Fs(ka(Ne),292),Ne&&SA(be)){var at=(li(be)+"e").split("e"),vt=ae(at[0]+"e"+(+at[1]+Ne));return at=(li(vt)+"e").split("e"),+(at[0]+"e"+(+at[1]-Ne))}return ae(be)}}var Eg=fc&&1/Vd(new fc([,-0]))[1]==L?function(H){return new fc(H)}:Cn;function qA(H){return function(ae){var be=Os(ae);return be==ue?ts(ae):be==ke?Wo(ae):ji(ae,H(ae))}}function gl(H,ae,be,Ne,at,vt,Ft,Wt){var ir=ae&d;if(!ir&&typeof H!="function")throw new yo(c);var Lr=Ne?Ne.length:0;if(Lr||(ae&=-97,Ne=at=r),Ft=Ft===r?Ft:Bi(ka(Ft),0),Wt=Wt===r?Wt:ka(Wt),Lr-=at?at.length:0,ae&C){var Ur=Ne,Kr=at;Ne=at=r}var Sn=ir?r:e0(H),$n=[H,ae,be,Ne,at,Ur,Kr,vt,Ft,Wt];if(Sn&&Mg($n,Sn),H=$n[0],ae=$n[1],be=$n[2],Ne=$n[3],at=$n[4],Wt=$n[9]=$n[9]===r?ir?0:H.length:Bi($n[9]-Lr,0),!Wt&&ae&(v|w)&&(ae&=-25),!ae||ae==h)var ua=ad(H,ae,be);else ae==v||ae==w?ua=Op(H,ae,Wt):(ae==x||ae==(h|x))&&!at.length?ua=Tg(H,ae,be,Ne):ua=gh.apply(r,$n);var Qa=Sn?QA:Me;return te(Qa(ua,$n),H,ae)}function _h(H,ae,be,Ne){return H===r||Aa(H,Yl[be])&&!ci.call(Ne,be)?ae:H}function xh(H,ae,be,Ne,at,vt){return Li(H)&&Li(ae)&&(vt.set(ae,H),Zf(H,ae,r,xh,vt),vt.delete(ae)),H}function Ig(H){return yd(H)?r:H}function Np(H,ae,be,Ne,at,vt){var Ft=be&_,Wt=H.length,ir=ae.length;if(Wt!=ir&&!(Ft&&ir>Wt))return!1;var Lr=vt.get(H),Ur=vt.get(ae);if(Lr&&Ur)return Lr==ae&&Ur==H;var Kr=-1,Sn=!0,$n=be&y?new Su:r;for(vt.set(H,ae),vt.set(ae,H);++Kr<Wt;){var ua=H[Kr],Qa=ae[Kr];if(Ne)var ca=Ft?Ne(Qa,ua,Kr,ae,H,vt):Ne(ua,Qa,Kr,H,ae,vt);if(ca!==r){if(ca)continue;Sn=!1;break}if($n){if(!Vo(ae,function(ei,ii){if(!ea($n,ii)&&(ua===ei||at(ua,ei,be,Ne,vt)))return $n.push(ii)})){Sn=!1;break}}else if(!(ua===Qa||at(ua,Qa,be,Ne,vt))){Sn=!1;break}}return vt.delete(H),vt.delete(ae),Sn}function jp(H,ae,be,Ne,at,vt,Ft){switch(be){case mt:if(H.byteLength!=ae.byteLength||H.byteOffset!=ae.byteOffset)return!1;H=H.buffer,ae=ae.buffer;case nt:return!(H.byteLength!=ae.byteLength||!vt(new Xl(H),new Xl(ae)));case Y:case K:case Te:return Aa(+H,+ae);case pe:return H.name==ae.name&&H.message==ae.message;case Ve:case Pe:return H==ae+"";case ue:var Wt=ts;case ke:var ir=Ne&_;if(Wt||(Wt=Vd),H.size!=ae.size&&!ir)return!1;var Lr=Ft.get(H);if(Lr)return Lr==ae;Ne|=y,Ft.set(H,ae);var Ur=Np(Wt(H),Wt(ae),Ne,at,vt,Ft);return Ft.delete(H),Ur;case Re:if(qc)return qc.call(H)==qc.call(ae)}return!1}function ff(H,ae,be,Ne,at,vt){var Ft=be&_,Wt=Ch(H),ir=Wt.length,Lr=Ch(ae),Ur=Lr.length;if(ir!=Ur&&!Ft)return!1;for(var Kr=ir;Kr--;){var Sn=Wt[Kr];if(!(Ft?Sn in ae:ci.call(ae,Sn)))return!1}var $n=vt.get(H),ua=vt.get(ae);if($n&&ua)return $n==ae&&ua==H;var Qa=!0;vt.set(H,ae),vt.set(ae,H);for(var ca=Ft;++Kr<ir;){Sn=Wt[Kr];var ei=H[Sn],ii=ae[Sn];if(Ne)var iu=Ft?Ne(ii,ei,Sn,ae,H,vt):Ne(ei,ii,Sn,H,ae,vt);if(!(iu===r?ei===ii||at(ei,ii,be,Ne,vt):iu)){Qa=!1;break}ca||(ca=Sn=="constructor")}if(Qa&&!ca){var bl=H.constructor,su=ae.constructor;bl!=su&&"constructor"in H&&"constructor"in ae&&!(typeof bl=="function"&&bl instanceof bl&&typeof su=="function"&&su instanceof su)&&(Qa=!1)}return vt.delete(H),vt.delete(ae),Qa}function Rl(H){return Z(Ys(H,r,Xs),H+"")}function Ch(H){return LA(H,Je,df)}function Sh(H){return LA(H,He,Th)}var e0=Gf?function(H){return Gf.get(H)}:Cn;function kh(H){for(var ae=H.name+"",be=dc[ae],Ne=ci.call(dc,ae)?be.length:0;Ne--;){var at=be[Ne],vt=at.func;if(vt==null||vt==H)return at.name}return ae}function Du(H){var ae=ci.call(dt,"placeholder")?dt:H;return ae.placeholder}function Jn(){var H=dt.iteratee||ta;return H=H===ta?NA:H,arguments.length?H(arguments[0],arguments[1]):H}function id(H,ae){var be=H.__data__;return zp(ae)?be[typeof ae=="string"?"string":"hash"]:be.map}function Ou(H){for(var ae=Je(H),be=ae.length;be--;){var Ne=ae[be],at=H[Ne];ae[be]=[Ne,at,a0(at)]}return ae}function Lu(H,ae){var be=ep(H,ae);return RA(be)?be:r}function t0(H){var ae=ci.call(H,lc),be=H[lc];try{H[lc]=r;var Ne=!0}catch{}var at=Hf.call(H);return Ne&&(ae?H[lc]=be:delete H[lc]),at}var df=Wf?function(H){return H==null?[]:(H=vi(H),Io(Wf(H),function(ae){return rp.call(H,ae)}))}:co,Th=Wf?function(H){for(var ae=[];H;)so(ae,df(H)),H=Zl(H);return ae}:co,Os=$s;($d&&Os(new $d(new ArrayBuffer(1)))!=mt||Yc&&Os(new Yc)!=ue||Xc&&Os(Xc.resolve())!=Se||fc&&Os(new fc)!=ke||Zc&&Os(new Zc)!=Ke)&&(Os=function(H){var ae=$s(H),be=ae==ye?H.constructor:r,Ne=be?Qe(be):"";if(Ne)switch(Ne){case ap:return mt;case _u:return ue;case Qi:return Se;case Ms:return ke;case rs:return Ke}return ae});function ns(H,ae,be){for(var Ne=-1,at=be.length;++Ne<at;){var vt=be[Ne],Ft=vt.size;switch(vt.type){case"drop":H+=Ft;break;case"dropRight":ae-=Ft;break;case"take":ae=Fs(ae,H+Ft);break;case"takeRight":H=Bi(H,ae-Ft);break}}return{start:H,end:ae}}function tu(H){var ae=H.match(ze);return ae?ae[1].split(Ze):[]}function r0(H,ae,be){ae=Oi(ae,H);for(var Ne=-1,at=ae.length,vt=!1;++Ne<at;){var Ft=Ie(ae[Ne]);if(!(vt=H!=null&&be(H,Ft)))break;H=H[Ft]}return vt||++Ne!=at?vt:(at=H==null?0:H.length,!!at&&Ph(at)&&Ul(Ft,at)&&(sa(H)||Js(H)))}function n0(H){var ae=H.length,be=new H.constructor(ae);return ae&&typeof H[0]=="string"&&ci.call(H,"index")&&(be.index=H.index,be.input=H.input),be}function Eh(H){return typeof H.constructor=="function"&&!sd(H)?$o(Zl(H)):{}}function Bg(H,ae,be){var Ne=H.constructor;switch(ae){case nt:return rd(H);case Y:case K:return new Ne(+H);case mt:return Fu(H,be);case Ut:case Ot:case wt:case Kt:case _t:case Jt:case yr:case vr:case Br:return wc(H,be);case ue:return new Ne;case Te:case Pe:return new Ne(H);case Ve:return YA(H);case ke:return new Ne;case Re:return sf(H)}}function Hp(H,ae){var be=ae.length;if(!be)return H;var Ne=be-1;return ae[Ne]=(be>1?"& ":"")+ae[Ne],ae=ae.join(be>2?", ":" "),H.replace(hr,`{
/* [wrapped with `+ae+`] */
`)}function Qp(H){return sa(H)||Js(H)||!!(xA&&H&&H[xA])}function Ul(H,ae){var be=typeof H;return ae=ae??R,!!ae&&(be=="number"||be!="symbol"&&or.test(H))&&H>-1&&H%1==0&&H<ae}function cs(H,ae,be){if(!Li(be))return!1;var Ne=typeof ae;return(Ne=="number"?xs(be)&&Ul(ae,be.length):Ne=="string"&&ae in be)?Aa(be[ae],H):!1}function hf(H,ae){if(sa(H))return!1;var be=typeof H;return be=="number"||be=="symbol"||be=="boolean"||H==null||is(H)?!0:fn.test(H)||!Fn.test(H)||ae!=null&&H in vi(ae)}function zp(H){var ae=typeof H;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?H!=="__proto__":H===null}function Ih(H){var ae=kh(H),be=dt[ae];if(typeof be!="function"||!(ae in La.prototype))return!1;if(H===be)return!0;var Ne=e0(be);return!!Ne&&H===Ne[0]}function Vp(H){return!!Ml&&Ml in H}var Fg=$c?Tc:au;function sd(H){var ae=H&&H.constructor,be=typeof ae=="function"&&ae.prototype||Yl;return H===be}function a0(H){return H===H&&!Li(H)}function xc(H,ae){return function(be){return be==null?!1:be[H]===ae&&(ae!==r||H in vi(be))}}function od(H){var ae=f0(H,function(Ne){return be.size===o&&be.clear(),Ne}),be=ae.cache;return ae}function Mg(H,ae){var be=H[1],Ne=ae[1],at=be|Ne,vt=at<(h|d|k),Ft=Ne==k&&be==v||Ne==k&&be==T&&H[7].length<=ae[8]||Ne==(k|T)&&ae[7].length<=ae[8]&&be==v;if(!(vt||Ft))return H;Ne&h&&(H[2]=ae[2],at|=be&h?0:A);var Wt=ae[3];if(Wt){var ir=H[3];H[3]=ir?nd(ir,Wt,ae[4]):Wt,H[4]=ir?bu(H[3],l):ae[4]}return Wt=ae[5],Wt&&(ir=H[5],H[5]=ir?XA(ir,Wt,ae[6]):Wt,H[6]=ir?bu(H[5],l):ae[6]),Wt=ae[7],Wt&&(H[7]=Wt),Ne&k&&(H[8]=H[8]==null?ae[8]:Fs(H[8],ae[8])),H[9]==null&&(H[9]=ae[9]),H[0]=ae[0],H[1]=at,H}function Wp(H){var ae=[];if(H!=null)for(var be in vi(H))ae.push(be);return ae}function Gp(H){return Hf.call(H)}function Ys(H,ae,be){return ae=Bi(ae===r?H.length-1:ae,0),function(){for(var Ne=arguments,at=-1,vt=Bi(Ne.length-ae,0),Ft=Ar(vt);++at<vt;)Ft[at]=Ne[ae+at];at=-1;for(var Wt=Ar(ae+1);++at<ae;)Wt[at]=Ne[at];return Wt[ae]=be(Ft),gn(H,this,Wt)}}function ld(H,ae){return ae.length<2?H:Oo(H,bo(ae,0,-1))}function Dg(H,ae){for(var be=H.length,Ne=Fs(ae.length,be),at=lo(H);Ne--;){var vt=ae[Ne];H[Ne]=Ul(vt,be)?at[vt]:r}return H}function Af(H,ae){if(!(ae==="constructor"&&typeof H[ae]=="function")&&ae!="__proto__")return H[ae]}var Me=X(QA),ce=cc||function(H,ae){return vs.setTimeout(H,ae)},Z=X(Ip);function te(H,ae,be){var Ne=ae+"";return Z(H,Hp(Ne,je(tu(Ne),be)))}function X(H){var ae=0,be=0;return function(){var Ne=Fo(),at=B-(Ne-be);if(be=Ne,at>0){if(++ae>=N)return arguments[0]}else ae=0;return H.apply(r,arguments)}}function ne(H,ae){var be=-1,Ne=H.length,at=Ne-1;for(ae=ae===r?Ne:ae;++be<ae;){var vt=fh(be,at),Ft=H[vt];H[vt]=H[be],H[be]=Ft}return H.length=ae,H}var xe=od(function(H){var ae=[];return H.charCodeAt(0)===46&&ae.push(""),H.replace(Or,function(be,Ne,at,vt){ae.push(at?vt.replace($e,"$1"):Ne||be)}),ae});function Ie(H){if(typeof H=="string"||is(H))return H;var ae=H+"";return ae=="0"&&1/H==-L?"-0":ae}function Qe(H){if(H!=null){try{return Nf.call(H)}catch{}try{return H+""}catch{}}return""}function je(H,ae){return ys(G,function(be){var Ne="_."+be[0];ae&be[1]&&!Bo(H,Ne)&&H.push(Ne)}),H.sort()}function rt(H){if(H instanceof La)return H.clone();var ae=new ws(H.__wrapped__,H.__chain__);return ae.__actions__=lo(H.__actions__),ae.__index__=H.__index__,ae.__values__=H.__values__,ae}function ft(H,ae,be){(be?cs(H,ae,be):ae===r)?ae=1:ae=Bi(ka(ae),0);var Ne=H==null?0:H.length;if(!Ne||ae<1)return[];for(var at=0,vt=0,Ft=Ar(Vf(Ne/ae));at<Ne;)Ft[vt++]=bo(H,at,at+=ae);return Ft}function Ht(H){for(var ae=-1,be=H==null?0:H.length,Ne=0,at=[];++ae<be;){var vt=H[ae];vt&&(at[Ne++]=vt)}return at}function zt(){var H=arguments.length;if(!H)return[];for(var ae=Ar(H-1),be=arguments[0],Ne=H;Ne--;)ae[Ne-1]=arguments[Ne];return so(sa(be)?lo(be):[be],Xi(ae,1))}var qt=Sa(function(H,ae){return fs(H)?Eu(H,Xi(ae,1,fs,!0)):[]}),Xt=Sa(function(H,ae){var be=Zs(ae);return fs(be)&&(be=r),fs(H)?Eu(H,Xi(ae,1,fs,!0),Jn(be,2)):[]}),nr=Sa(function(H,ae){var be=Zs(ae);return fs(be)&&(be=r),fs(H)?Eu(H,Xi(ae,1,fs,!0),r,be):[]});function Mr(H,ae,be){var Ne=H==null?0:H.length;return Ne?(ae=be||ae===r?1:ka(ae),bo(H,ae<0?0:ae,Ne)):[]}function Dn(H,ae,be){var Ne=H==null?0:H.length;return Ne?(ae=be||ae===r?1:ka(ae),ae=Ne-ae,bo(H,0,ae<0?0:ae)):[]}function Nn(H,ae){return H&&H.length?bc(H,Jn(ae,3),!0,!0):[]}function qn(H,ae){return H&&H.length?bc(H,Jn(ae,3),!0):[]}function nn(H,ae,be,Ne){var at=H==null?0:H.length;return at?(be&&typeof be!="number"&&cs(H,ae,be)&&(be=0,Ne=at),OA(H,ae,be,Ne)):[]}function Ja(H,ae,be){var Ne=H==null?0:H.length;if(!Ne)return-1;var at=be==null?0:ka(be);return at<0&&(at=Bi(Ne+at,0)),es(H,Jn(ae,3),at)}function _s(H,ae,be){var Ne=H==null?0:H.length;if(!Ne)return-1;var at=Ne-1;return be!==r&&(at=ka(be),at=be<0?Bi(Ne+at,0):Fs(at,Ne-1)),es(H,Jn(ae,3),at,!0)}function Xs(H){var ae=H==null?0:H.length;return ae?Xi(H,1):[]}function zi(H){var ae=H==null?0:H.length;return ae?Xi(H,L):[]}function vl(H,ae){var be=H==null?0:H.length;return be?(ae=ae===r?1:ka(ae),Xi(H,ae)):[]}function Pu(H){for(var ae=-1,be=H==null?0:H.length,Ne={};++ae<be;){var at=H[ae];Ne[at[0]]=at[1]}return Ne}function Ls(H){return H&&H.length?H[0]:r}function ud(H,ae,be){var Ne=H==null?0:H.length;if(!Ne)return-1;var at=be==null?0:ka(be);return at<0&&(at=Bi(Ne+at,0)),Yi(H,ae,at)}function Bh(H){var ae=H==null?0:H.length;return ae?bo(H,0,-1):[]}var Fh=Sa(function(H){var ae=_a(H,$A);return ae.length&&ae[0]===H[0]?Kf(ae):[]}),cd=Sa(function(H){var ae=Zs(H),be=_a(H,$A);return ae===Zs(be)?ae=r:be.pop(),be.length&&be[0]===H[0]?Kf(be,Jn(ae,2)):[]}),fd=Sa(function(H){var ae=Zs(H),be=_a(H,$A);return ae=typeof ae=="function"?ae:r,ae&&be.pop(),be.length&&be[0]===H[0]?Kf(be,r,ae):[]});function dd(H,ae){return H==null?"":kA.call(H,ae)}function Zs(H){var ae=H==null?0:H.length;return ae?H[ae-1]:r}function hd(H,ae,be){var Ne=H==null?0:H.length;if(!Ne)return-1;var at=Ne;return be!==r&&(at=ka(be),at=at<0?Bi(Ne+at,0):Fs(at,Ne-1)),ae===ae?oc(H,ae,at):es(H,Bl,at,!0)}function Ad(H,ae){return H&&H.length?Sp(H,ka(ae)):r}var pd=Sa(md);function md(H,ae){return H&&H.length&&ae&&ae.length?HA(H,ae):H}function Mh(H,ae,be){return H&&H.length&&ae&&ae.length?HA(H,ae,Jn(be,2)):H}function gd(H,ae,be){return H&&H.length&&ae&&ae.length?HA(H,ae,r,be):H}var Dh=Rl(function(H,ae){var be=H==null?0:H.length,Ne=eh(H,ae);return Tp(H,_a(ae,function(at){return Ul(at,be)?+at:at}).sort(mh)),Ne});function Cc(H,ae){var be=[];if(!(H&&H.length))return be;var Ne=-1,at=[],vt=H.length;for(ae=Jn(ae,3);++Ne<vt;){var Ft=H[Ne];ae(Ft,Ne,H)&&(be.push(Ft),at.push(Ne))}return Tp(H,at),be}function pf(H){return H==null?H:Ag.call(H)}function vd(H,ae,be){var Ne=H==null?0:H.length;return Ne?(be&&typeof be!="number"&&cs(H,ae,be)?(ae=0,be=Ne):(ae=ae==null?0:ka(ae),be=be===r?Ne:ka(be)),bo(H,ae,be)):[]}function ru(H,ae){return qf(H,ae)}function Oh(H,ae,be){return hh(H,ae,Jn(be,2))}function Xo(H,ae){var be=H==null?0:H.length;if(be){var Ne=qf(H,ae);if(Ne<be&&Aa(H[Ne],ae))return Ne}return-1}function Sc(H,ae){return qf(H,ae,!0)}function $p(H,ae,be){return hh(H,ae,Jn(be,2),!0)}function Kp(H,ae){var be=H==null?0:H.length;if(be){var Ne=qf(H,ae,!0)-1;if(Aa(H[Ne],ae))return Ne}return-1}function Yp(H){return H&&H.length?VA(H):[]}function Xp(H,ae){return H&&H.length?VA(H,Jn(ae,2)):[]}function Zp(H){var ae=H==null?0:H.length;return ae?bo(H,1,ae):[]}function Jp(H,ae,be){return H&&H.length?(ae=be||ae===r?1:ka(ae),bo(H,0,ae<0?0:ae)):[]}function qp(H,ae,be){var Ne=H==null?0:H.length;return Ne?(ae=be||ae===r?1:ka(ae),ae=Ne-ae,bo(H,ae<0?0:ae,Ne)):[]}function em(H,ae){return H&&H.length?bc(H,Jn(ae,3),!1,!0):[]}function Lh(H,ae){return H&&H.length?bc(H,Jn(ae,3)):[]}var tm=Sa(function(H){return Bu(Xi(H,1,fs,!0))}),rm=Sa(function(H){var ae=Zs(H);return fs(ae)&&(ae=r),Bu(Xi(H,1,fs,!0),Jn(ae,2))}),nm=Sa(function(H){var ae=Zs(H);return ae=typeof ae=="function"?ae:r,Bu(Xi(H,1,fs,!0),r,ae)});function i0(H){return H&&H.length?Bu(H):[]}function s0(H,ae){return H&&H.length?Bu(H,Jn(ae,2)):[]}function mv(H,ae){return ae=typeof ae=="function"?ae:r,H&&H.length?Bu(H,r,ae):[]}function Og(H){if(!(H&&H.length))return[];var ae=0;return H=Io(H,function(be){if(fs(be))return ae=Bi(be.length,ae),!0}),Rf(ae,function(be){return _a(H,Nr(be))})}function Lg(H,ae){if(!(H&&H.length))return[];var be=Og(H);return ae==null?be:_a(be,function(Ne){return gn(ae,r,Ne)})}var gv=Sa(function(H,ae){return fs(H)?Eu(H,ae):[]}),jy=Sa(function(H){return af(Io(H,fs))}),vv=Sa(function(H){var ae=Zs(H);return fs(ae)&&(ae=r),af(Io(H,fs),Jn(ae,2))}),Hy=Sa(function(H){var ae=Zs(H);return ae=typeof ae=="function"?ae:r,af(Io(H,fs),r,ae)}),Qy=Sa(Og);function zy(H,ae){return GA(H||[],ae||[],ku)}function Vy(H,ae){return GA(H||[],ae||[],Jf)}var Wy=Sa(function(H){var ae=H.length,be=ae>1?H[ae-1]:r;return be=typeof be=="function"?(H.pop(),be):r,Lg(H,be)});function yv(H){var ae=dt(H);return ae.__chain__=!0,ae}function Gy(H,ae){return ae(H),H}function am(H,ae){return ae(H)}var $y=Rl(function(H){var ae=H.length,be=ae?H[0]:0,Ne=this.__wrapped__,at=function(vt){return eh(vt,H)};return ae>1||this.__actions__.length||!(Ne instanceof La)||!Ul(be)?this.thru(at):(Ne=Ne.slice(be,+be+(ae?1:0)),Ne.__actions__.push({func:am,args:[at],thisArg:r}),new ws(Ne,this.__chain__).thru(function(vt){return ae&&!vt.length&&vt.push(r),vt}))});function Ky(){return yv(this)}function Yy(){return new ws(this.value(),this.__chain__)}function Xy(){this.__values__===r&&(this.__values__=p0(this.value()));var H=this.__index__>=this.__values__.length,ae=H?r:this.__values__[this.__index__++];return{done:H,value:ae}}function Zy(){return this}function o0(H){for(var ae,be=this;be instanceof xu;){var Ne=rt(be);Ne.__index__=0,Ne.__values__=r,ae?at.__wrapped__=Ne:ae=Ne;var at=Ne;be=be.__wrapped__}return at.__wrapped__=H,ae}function bv(){var H=this.__wrapped__;if(H instanceof La){var ae=H;return this.__actions__.length&&(ae=new La(this)),ae=ae.reverse(),ae.__actions__.push({func:am,args:[pf],thisArg:r}),new ws(ae,this.__chain__)}return this.thru(pf)}function wv(){return nf(this.__wrapped__,this.__actions__)}var nu=Mu(function(H,ae,be){ci.call(H,be)?++H[be]:Pl(H,be,1)});function Jy(H,ae,be){var Ne=sa(H)?Hd:Al;return be&&cs(H,ae,be)&&(ae=r),Ne(H,Jn(ae,3))}function Pg(H,ae){var be=sa(H)?Io:pc;return be(H,Jn(ae,3))}var Rg=cf(Ja),qy=cf(_s);function _v(H,ae){return Xi(sm(H,ae),1)}function eb(H,ae){return Xi(sm(H,ae),L)}function tb(H,ae,be){return be=be===r?1:ka(be),Xi(sm(H,ae),be)}function xv(H,ae){var be=sa(H)?ys:ql;return be(H,Jn(ae,3))}function Cv(H,ae){var be=sa(H)?jd:Do;return be(H,Jn(ae,3))}var rb=Mu(function(H,ae,be){ci.call(H,be)?H[be].push(ae):Pl(H,be,[ae])});function nb(H,ae,be,Ne){H=xs(H)?H:en(H),be=be&&!Ne?ka(be):0;var at=H.length;return be<0&&(be=Bi(at+be,0)),A0(H)?be<=at&&H.indexOf(ae,be)>-1:!!at&&Yi(H,ae,be)>-1}var Ru=Sa(function(H,ae,be){var Ne=-1,at=typeof ae=="function",vt=xs(H)?Ar(H.length):[];return ql(H,function(Ft){vt[++Ne]=at?gn(ae,Ft,be):rf(Ft,ae,be)}),vt}),im=Mu(function(H,ae,be){Pl(H,be,ae)});function sm(H,ae){var be=sa(H)?_a:uh;return be(H,Jn(ae,3))}function l0(H,ae,be,Ne){return H==null?[]:(sa(ae)||(ae=ae==null?[]:[ae]),be=Ne?r:be,sa(be)||(be=be==null?[]:[be]),kp(H,ae,be))}var om=Mu(function(H,ae,be){H[be?0:1].push(ae)},function(){return[[],[]]});function ab(H,ae,be){var Ne=sa(H)?go:mA,at=arguments.length<3;return Ne(H,Jn(ae,4),be,at,ql)}function u0(H,ae,be){var Ne=sa(H)?Wc:mA,at=arguments.length<3;return Ne(H,Jn(ae,4),be,at,Do)}function Ug(H,ae){var be=sa(H)?Io:pc;return be(H,d0(Jn(ae,3)))}function un(H){var ae=sa(H)?vp:Ks;return ae(H)}function c0(H,ae,be){(be?cs(H,ae,be):ae===r)?ae=1:ae=ka(ae);var Ne=sa(H)?wg:Sg;return Ne(H,ae)}function ib(H){var ae=sa(H)?yp:kg;return ae(H)}function sb(H){if(H==null)return 0;if(xs(H))return A0(H)?Go(H):H.length;var ae=Os(H);return ae==ue||ae==ke?H.size:sh(H).length}function ob(H,ae,be){var Ne=sa(H)?Vo:zA;return be&&cs(H,ae,be)&&(ae=r),Ne(H,Jn(ae,3))}var lb=Sa(function(H,ae){if(H==null)return[];var be=ae.length;return be>1&&cs(H,ae[0],ae[1])?ae=[]:be>2&&cs(ae[0],ae[1],ae[2])&&(ae=[ae[0]]),kp(H,Xi(ae,1),[])}),lm=CA||function(){return vs.Date.now()};function ub(H,ae){if(typeof ae!="function")throw new yo(c);return H=ka(H),function(){if(--H<1)return ae.apply(this,arguments)}}function Sv(H,ae,be){return ae=be?r:ae,ae=H&&ae==null?H.length:ae,gl(H,k,r,r,r,r,ae)}function kv(H,ae){var be;if(typeof ae!="function")throw new yo(c);return H=ka(H),function(){return--H>0&&(be=ae.apply(this,arguments)),H<=1&&(ae=r),be}}var Ng=Sa(function(H,ae,be){var Ne=h;if(be.length){var at=bu(be,Du(Ng));Ne|=x}return gl(H,Ne,ae,be,at)}),jg=Sa(function(H,ae,be){var Ne=h|d;if(be.length){var at=bu(be,Du(jg));Ne|=x}return gl(ae,Ne,H,be,at)});function Hg(H,ae,be){ae=be?r:ae;var Ne=gl(H,v,r,r,r,r,r,ae);return Ne.placeholder=Hg.placeholder,Ne}function Qg(H,ae,be){ae=be?r:ae;var Ne=gl(H,w,r,r,r,r,r,ae);return Ne.placeholder=Qg.placeholder,Ne}function zg(H,ae,be){var Ne,at,vt,Ft,Wt,ir,Lr=0,Ur=!1,Kr=!1,Sn=!0;if(typeof H!="function")throw new yo(c);ae=yl(ae)||0,Li(be)&&(Ur=!!be.leading,Kr="maxWait"in be,vt=Kr?Bi(yl(be.maxWait)||0,ae):vt,Sn="trailing"in be?!!be.trailing:Sn);function $n(Us){var Ic=Ne,xd=at;return Ne=at=r,Lr=Us,Ft=H.apply(xd,Ic),Ft}function ua(Us){return Lr=Us,Wt=ce(ei,ae),Ur?$n(Us):Ft}function Qa(Us){var Ic=Us-ir,xd=Us-Lr,px=ae-Ic;return Kr?Fs(px,vt-xd):px}function ca(Us){var Ic=Us-ir,xd=Us-Lr;return ir===r||Ic>=ae||Ic<0||Kr&&xd>=vt}function ei(){var Us=lm();if(ca(Us))return ii(Us);Wt=ce(ei,Qa(Us))}function ii(Us){return Wt=r,Sn&&Ne?$n(Us):(Ne=at=r,Ft)}function iu(){Wt!==r&&td(Wt),Lr=0,Ne=ir=at=Wt=r}function bl(){return Wt===r?Ft:ii(lm())}function su(){var Us=lm(),Ic=ca(Us);if(Ne=arguments,at=this,ir=Us,Ic){if(Wt===r)return ua(ir);if(Kr)return td(Wt),Wt=ce(ei,ae),$n(ir)}return Wt===r&&(Wt=ce(ei,ae)),Ft}return su.cancel=iu,su.flush=bl,su}var Tv=Sa(function(H,ae){return DA(H,1,ae)}),Ev=Sa(function(H,ae,be){return DA(H,yl(ae)||0,be)});function Iv(H){return gl(H,S)}function f0(H,ae){if(typeof H!="function"||ae!=null&&typeof ae!="function")throw new yo(c);var be=function(){var Ne=arguments,at=ae?ae.apply(this,Ne):Ne[0],vt=be.cache;if(vt.has(at))return vt.get(at);var Ft=H.apply(this,Ne);return be.cache=vt.set(at,Ft)||vt,Ft};return be.cache=new(f0.Cache||Ko),be}f0.Cache=Ko;function d0(H){if(typeof H!="function")throw new yo(c);return function(){var ae=arguments;switch(ae.length){case 0:return!H.call(this);case 1:return!H.call(this,ae[0]);case 2:return!H.call(this,ae[0],ae[1]);case 3:return!H.call(this,ae[0],ae[1],ae[2])}return!H.apply(this,ae)}}function Bv(H){return kv(2,H)}var Fv=ed(function(H,ae){ae=ae.length==1&&sa(ae[0])?_a(ae[0],Oa(Jn())):_a(Xi(ae,1),Oa(Jn()));var be=ae.length;return Sa(function(Ne){for(var at=-1,vt=Fs(Ne.length,be);++at<vt;)Ne[at]=ae[at].call(this,Ne[at]);return gn(H,this,Ne)})}),um=Sa(function(H,ae){var be=bu(ae,Du(um));return gl(H,x,r,ae,be)}),Vg=Sa(function(H,ae){var be=bu(ae,Du(Vg));return gl(H,C,r,ae,be)}),Mv=Rl(function(H,ae){return gl(H,T,r,r,r,ae)});function cb(H,ae){if(typeof H!="function")throw new yo(c);return ae=ae===r?ae:ka(ae),Sa(H,ae)}function Dv(H,ae){if(typeof H!="function")throw new yo(c);return ae=ae==null?0:Bi(ka(ae),0),Sa(function(be){var Ne=be[ae],at=Yo(be,0,ae);return Ne&&so(at,Ne),gn(H,this,at)})}function Ov(H,ae,be){var Ne=!0,at=!0;if(typeof H!="function")throw new yo(c);return Li(be)&&(Ne="leading"in be?!!be.leading:Ne,at="trailing"in be?!!be.trailing:at),zg(H,ae,{leading:Ne,maxWait:ae,trailing:at})}function kc(H){return Sv(H,1)}function Wg(H,ae){return um(KA(ae),H)}function Lv(){if(!arguments.length)return[];var H=arguments[0];return sa(H)?H:[H]}function mf(H){return Mo(H,p)}function Pv(H,ae){return ae=typeof ae=="function"?ae:r,Mo(H,p,ae)}function h0(H){return Mo(H,g|p)}function ni(H,ae){return ae=typeof ae=="function"?ae:r,Mo(H,g|p,ae)}function Vi(H,ae){return ae==null||ef(H,ae,Je(ae))}function Aa(H,ae){return H===ae||H!==H&&ae!==ae}var Zi=wh(nh),Gg=wh(function(H,ae){return H>=ae}),Js=eu((function(){return arguments})())?eu:function(H){return as(H)&&ci.call(H,"callee")&&!rp.call(H,"callee")},sa=Ar.isArray,Nl=Za?Oa(Za):wp;function xs(H){return H!=null&&Ph(H.length)&&!Tc(H)}function fs(H){return as(H)&&xs(H)}function $g(H){return H===!0||H===!1||as(H)&&$s(H)==Y}var Uu=hg||au,fb=Df?Oa(Df):ih;function uo(H){return as(H)&&H.nodeType===1&&!yd(H)}function Rv(H){if(H==null)return!0;if(xs(H)&&(sa(H)||typeof H=="string"||typeof H.splice=="function"||Uu(H)||Ec(H)||Js(H)))return!H.length;var ae=Os(H);if(ae==ue||ae==ke)return!H.size;if(sd(H))return!sh(H).length;for(var be in H)if(ci.call(H,be))return!1;return!0}function db(H,ae){return Iu(H,ae)}function hb(H,ae,be){be=typeof be=="function"?be:r;var Ne=be?be(H,ae):r;return Ne===r?Iu(H,ae,r,be):!!Ne}function Kg(H){if(!as(H))return!1;var ae=$s(H);return ae==pe||ae==oe||typeof H.message=="string"&&typeof H.name=="string"&&!yd(H)}function Uv(H){return typeof H=="number"&&SA(H)}function Tc(H){if(!Li(H))return!1;var ae=$s(H);return ae==ve||ae==ge||ae==he||ae==Fe}function Yg(H){return typeof H=="number"&&H==ka(H)}function Ph(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=R}function Li(H){var ae=typeof H;return H!=null&&(ae=="object"||ae=="function")}function as(H){return H!=null&&typeof H=="object"}var Nv=Vc?Oa(Vc):gc;function jl(H,ae){return H===ae||vc(H,ae,Ou(ae))}function jv(H,ae,be){return be=typeof be=="function"?be:r,vc(H,ae,Ou(ae),be)}function Ab(H){return Zg(H)&&H!=+H}function pb(H){if(Fg(H))throw new Vn(t);return RA(H)}function Hv(H){return H===null}function Xg(H){return H==null}function Zg(H){return typeof H=="number"||as(H)&&$s(H)==Te}function yd(H){if(!as(H)||$s(H)!=ye)return!1;var ae=Zl(H);if(ae===null)return!0;var be=ci.call(ae,"constructor")&&ae.constructor;return typeof be=="function"&&be instanceof be&&Nf.call(be)==wA}var Rh=Ca?Oa(Ca):xp;function Qv(H){return Yg(H)&&H>=-R&&H<=R}var Jg=$a?Oa($a):UA;function A0(H){return typeof H=="string"||!sa(H)&&as(H)&&$s(H)==Pe}function is(H){return typeof H=="symbol"||as(H)&&$s(H)==Re}var Ec=Of?Oa(Of):Cp;function qg(H){return H===r}function cm(H){return as(H)&&Os(H)==Ke}function e1(H){return as(H)&&$s(H)==ot}var zv=wh(lh),Vv=wh(function(H,ae){return H<=ae});function p0(H){if(!H)return[];if(xs(H))return A0(H)?dl(H):lo(H);if(Bs&&H[Bs])return Gs(H[Bs]());var ae=Os(H),be=ae==ue?ts:ae==ke?Vd:en;return be(H)}function Nu(H){if(!H)return H===0?H:0;if(H=yl(H),H===L||H===-L){var ae=H<0?-1:1;return ae*U}return H===H?H:0}function ka(H){var ae=Nu(H),be=ae%1;return ae===ae?be?ae-be:ae:0}function fm(H){return H?Tu(ka(H),0,W):0}function yl(H){if(typeof H=="number")return H;if(is(H))return V;if(Li(H)){var ae=typeof H.valueOf=="function"?H.valueOf():H;H=Li(ae)?ae+"":ae}if(typeof H!="string")return H===0?H:+H;H=Qd(H);var be=kt.test(H);return be||Dt.test(H)?J0(H.slice(2),be?2:8):xt.test(H)?V:+H}function t1(H){return ml(H,He(H))}function dm(H){return H?Tu(ka(H),-R,R):H===0?H:0}function li(H){return H==null?"":Lo(H)}var r1=lf(function(H,ae){if(sd(ae)||xs(ae)){ml(ae,Je(ae),H);return}for(var be in ae)ci.call(ae,be)&&ku(H,be,ae[be])}),n1=lf(function(H,ae){ml(ae,He(ae),H)}),bd=lf(function(H,ae,be,Ne){ml(ae,He(ae),H,Ne)}),a1=lf(function(H,ae,be,Ne){ml(ae,Je(ae),H,Ne)}),Wv=Rl(eh);function Uh(H,ae){var be=$o(H);return ae==null?be:MA(be,ae)}var qa=Sa(function(H,ae){H=vi(H);var be=-1,Ne=ae.length,at=Ne>2?ae[2]:r;for(at&&cs(ae[0],ae[1],at)&&(Ne=1);++be<Ne;)for(var vt=ae[be],Ft=He(vt),Wt=-1,ir=Ft.length;++Wt<ir;){var Lr=Ft[Wt],Ur=H[Lr];(Ur===r||Aa(Ur,Yl[Lr])&&!ci.call(H,Lr))&&(H[Lr]=vt[Lr])}return H}),mb=Sa(function(H){return H.push(r,xh),gn(lt,r,H)});function b(H,ae){return pA(H,Jn(ae,3),pl)}function E(H,ae){return pA(H,Jn(ae,3),$f)}function D(H,ae){return H==null?H:rh(H,Jn(ae,3),He)}function j(H,ae){return H==null?H:tf(H,Jn(ae,3),He)}function J(H,ae){return H&&pl(H,Jn(ae,3))}function re(H,ae){return H&&$f(H,Jn(ae,3))}function ee(H){return H==null?[]:mc(H,Je(H))}function se(H){return H==null?[]:mc(H,He(H))}function Ae(H,ae,be){var Ne=H==null?r:Oo(H,ae);return Ne===r?be:Ne}function me(H,ae){return H!=null&&r0(H,ae,_g)}function _e(H,ae){return H!=null&&r0(H,ae,bp)}var Be=Pp(function(H,ae,be){ae!=null&&typeof ae.toString!="function"&&(ae=Hf.call(ae)),H[ae]=be},wn(Fa)),De=Pp(function(H,ae,be){ae!=null&&typeof ae.toString!="function"&&(ae=Hf.call(ae)),ci.call(H,ae)?H[ae].push(be):H[ae]=[be]},Jn),Le=Sa(rf);function Je(H){return xs(H)?BA(H):sh(H)}function He(H){return xs(H)?BA(H,!0):oh(H)}function ct(H,ae){var be={};return ae=Jn(ae,3),pl(H,function(Ne,at,vt){Pl(be,ae(Ne,at,vt),Ne)}),be}function et(H,ae){var be={};return ae=Jn(ae,3),pl(H,function(Ne,at,vt){Pl(be,at,ae(Ne,at,vt))}),be}var Xe=lf(function(H,ae,be){Zf(H,ae,be)}),lt=lf(function(H,ae,be,Ne){Zf(H,ae,be,Ne)}),At=Rl(function(H,ae){var be={};if(H==null)return be;var Ne=!1;ae=_a(ae,function(vt){return vt=Oi(vt,H),Ne||(Ne=vt.length>1),vt}),ml(H,Sh(H),be),Ne&&(be=Mo(be,g|m|p,Ig));for(var at=ae.length;at--;)Ah(be,ae[at]);return be});function pt(H,ae){return rr(H,d0(Jn(ae)))}var jt=Rl(function(H,ae){return H==null?{}:ch(H,ae)});function rr(H,ae){if(H==null)return{};var be=_a(Sh(H),function(Ne){return[Ne]});return ae=Jn(ae),jA(H,be,function(Ne,at){return ae(Ne,at[0])})}function Yt(H,ae,be){ae=Oi(ae,H);var Ne=-1,at=ae.length;for(at||(at=1,H=r);++Ne<at;){var vt=H==null?r:H[Ie(ae[Ne])];vt===r&&(Ne=at,vt=be),H=Tc(vt)?vt.call(H):vt}return H}function cr(H,ae,be){return H==null?H:Jf(H,ae,be)}function Fr(H,ae,be,Ne){return Ne=typeof Ne=="function"?Ne:r,H==null?H:Jf(H,ae,be,Ne)}var Dr=qA(Je),pr=qA(He);function Xr(H,ae,be){var Ne=sa(H),at=Ne||Uu(H)||Ec(H);if(ae=Jn(ae,4),be==null){var vt=H&&H.constructor;at?be=Ne?new vt:[]:Li(H)?be=Tc(vt)?$o(Zl(H)):{}:be={}}return(at?ys:pl)(H,function(Ft,Wt,ir){return ae(be,Ft,Wt,ir)}),be}function bn(H,ae){return H==null?!0:Ah(H,ae)}function dn(H,ae,be){return H==null?H:WA(H,ae,KA(be))}function an(H,ae,be,Ne){return Ne=typeof Ne=="function"?Ne:r,H==null?H:WA(H,ae,KA(be),Ne)}function en(H){return H==null?[]:ki(H,Je(H))}function tn(H){return H==null?[]:ki(H,He(H))}function Qr(H,ae,be){return be===r&&(be=ae,ae=r),be!==r&&(be=yl(be),be=be===be?be:0),ae!==r&&(ae=yl(ae),ae=ae===ae?ae:0),Tu(yl(H),ae,be)}function En(H,ae,be){return ae=Nu(ae),be===r?(be=ae,ae=0):be=Nu(be),H=yl(H),ah(H,ae,be)}function Rn(H,ae,be){if(be&&typeof be!="boolean"&&cs(H,ae,be)&&(ae=be=r),be===r&&(typeof ae=="boolean"?(be=ae,ae=r):typeof H=="boolean"&&(be=H,H=r)),H===r&&ae===r?(H=0,ae=1):(H=Nu(H),ae===r?(ae=H,H=0):ae=Nu(ae)),H>ae){var Ne=H;H=ae,ae=Ne}if(be||H%1||ae%1){var at=EA();return Fs(H+at*(ae-H+Z0("1e-"+((at+"").length-1))),ae)}return fh(H,ae)}var Gn=uf(function(H,ae,be){return ae=ae.toLowerCase(),H+(be?Ta(ae):ae)});function Ta(H){return Bn(li(H).toLowerCase())}function xn(H){return H=li(H),H&&H.replace(gr,fg).replace(og,"")}function Yr(H,ae,be){H=li(H),ae=Lo(ae);var Ne=H.length;be=be===r?Ne:Tu(ka(be),0,Ne);var at=be;return be-=ae.length,be>=0&&H.slice(be,at)==ae}function la(H){return H=li(H),H&&$t.test(H)?H.replace(Lt,Fl):H}function Ka(H){return H=li(H),H&&Wr.test(H)?H.replace(ar,"\\$&"):H}var ja=uf(function(H,ae,be){return H+(be?"-":"")+ae.toLowerCase()}),fi=uf(function(H,ae,be){return H+(be?" ":"")+ae.toLowerCase()}),ss=Dp("toLowerCase");function Vt(H,ae,be){H=li(H),ae=ka(ae);var Ne=ae?Go(H):0;if(!ae||Ne>=ae)return H;var at=(ae-Ne)/2;return bh(Dl(at),be)+H+bh(Vf(at),be)}function di(H,ae,be){H=li(H),ae=ka(ae);var Ne=ae?Go(H):0;return ae&&Ne<ae?H+bh(ae-Ne,be):H}function ui(H,ae,be){H=li(H),ae=ka(ae);var Ne=ae?Go(H):0;return ae&&Ne<ae?bh(ae-Ne,be)+H:H}function Ps(H,ae,be){return be||ae==null?ae=0:ae&&(ae=+ae),np(li(H).replace(Tt,""),ae||0)}function Hl(H,ae,be){return(be?cs(H,ae,be):ae===r)?ae=1:ae=ka(ae),dh(li(H),ae)}function Ct(){var H=arguments,ae=li(H[0]);return H.length<3?ae:ae.replace(H[1],H[2])}var mr=uf(function(H,ae,be){return H+(be?"_":"")+ae.toLowerCase()});function Nt(H,ae,be){return be&&typeof be!="number"&&cs(H,ae,be)&&(ae=be=r),be=be===r?W:be>>>0,be?(H=li(H),H&&(typeof ae=="string"||ae!=null&&!Rh(ae))&&(ae=Lo(ae),!ae&&cl(H))?Yo(dl(H),0,be):H.split(ae,be)):[]}var fr=uf(function(H,ae,be){return H+(be?" ":"")+Bn(ae)});function Pt(H,ae,be){return H=li(H),be=be==null?0:Tu(ka(be),0,H.length),ae=Lo(ae),H.slice(be,be+ae.length)==ae}function Gr(H,ae,be){var Ne=dt.templateSettings;be&&cs(H,ae,be)&&(ae=r),H=li(H),ae=bd({},ae,Ne,_h);var at=bd({},ae.imports,Ne.imports,_h),vt=Je(at),Ft=ki(at,vt),Wt,ir,Lr=0,Ur=ae.interpolate||kr,Kr="__p += '",Sn=Gc((ae.escape||kr).source+"|"+Ur.source+"|"+(Ur===sr?tt:kr).source+"|"+(ae.evaluate||kr).source+"|$","g"),$n="//# sourceURL="+(ci.call(ae,"sourceURL")?(ae.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++on+"]")+`
`;H.replace(Sn,function(ca,ei,ii,iu,bl,su){return ii||(ii=iu),Kr+=H.slice(Lr,su).replace(it,yu),ei&&(Wt=!0,Kr+=`' +
__e(`+ei+`) +
'`),bl&&(ir=!0,Kr+=`';
`+bl+`;
__p += '`),ii&&(Kr+=`' +
((__t = (`+ii+`)) == null ? '' : __t) +
'`),Lr=su+ca.length,ca}),Kr+=`';
`;var ua=ci.call(ae,"variable")&&ae.variable;if(!ua)Kr=`with (obj) {
`+Kr+`
}
`;else if(Ge.test(ua))throw new Vn(u);Kr=(ir?Kr.replace(zr,""):Kr).replace(mn,"$1").replace(jr,"$1;"),Kr="function("+(ua||"obj")+`) {
`+(ua?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Wt?", __e = _.escape":"")+(ir?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Kr+`return __p
}`;var Qa=Qn(function(){return Na(vt,$n+"return "+Kr).apply(r,Ft)});if(Qa.source=Kr,Kg(Qa))throw Qa;return Qa}function dr(H){return li(H).toLowerCase()}function wr(H){return li(H).toUpperCase()}function ur(H,ae,be){if(H=li(H),H&&(be||ae===r))return Qd(H);if(!H||!(ae=Lo(ae)))return H;var Ne=dl(H),at=dl(ae),vt=Ws(Ne,at),Ft=ga(Ne,at)+1;return Yo(Ne,vt,Ft).join("")}function Ir(H,ae,be){if(H=li(H),H&&(be||ae===r))return H.slice(0,gA(H)+1);if(!H||!(ae=Lo(ae)))return H;var Ne=dl(H),at=ga(Ne,dl(ae))+1;return Yo(Ne,0,at).join("")}function Jr(H,ae,be){if(H=li(H),H&&(be||ae===r))return H.replace(Tt,"");if(!H||!(ae=Lo(ae)))return H;var Ne=dl(H),at=Ws(Ne,dl(ae));return Yo(Ne,at).join("")}function jn(H,ae){var be=M,Ne=P;if(Li(ae)){var at="separator"in ae?ae.separator:at;be="length"in ae?ka(ae.length):be,Ne="omission"in ae?Lo(ae.omission):Ne}H=li(H);var vt=H.length;if(cl(H)){var Ft=dl(H);vt=Ft.length}if(be>=vt)return H;var Wt=be-Go(Ne);if(Wt<1)return Ne;var ir=Ft?Yo(Ft,0,Wt).join(""):H.slice(0,Wt);if(at===r)return ir+Ne;if(Ft&&(Wt+=ir.length-Wt),Rh(at)){if(H.slice(Wt).search(at)){var Lr,Ur=ir;for(at.global||(at=Gc(at.source,li(bt.exec(at))+"g")),at.lastIndex=0;Lr=at.exec(Ur);)var Kr=Lr.index;ir=ir.slice(0,Kr===r?Wt:Kr)}}else if(H.indexOf(Lo(at),Wt)!=Wt){var Sn=ir.lastIndexOf(at);Sn>-1&&(ir=ir.slice(0,Sn))}return ir+Ne}function kn(H){return H=li(H),H&&Gt.test(H)?H.replace(Tn,vA):H}var hn=uf(function(H,ae,be){return H+(be?" ":"")+ae.toUpperCase()}),Bn=Dp("toUpperCase");function Hn(H,ae,be){return H=li(H),ae=be?r:ae,ae===r?fl(H)?yA(H):cg(H):H.match(ae)||[]}var Qn=Sa(function(H,ae){try{return gn(H,r,ae)}catch(be){return Kg(be)?be:new Vn(be)}}),ln=Rl(function(H,ae){return ys(ae,function(be){be=Ie(be),Pl(H,be,Ng(H[be],H))}),H});function qr(H){var ae=H==null?0:H.length,be=Jn();return H=ae?_a(H,function(Ne){if(typeof Ne[1]!="function")throw new yo(c);return[be(Ne[0]),Ne[1]]}):[],Sa(function(Ne){for(var at=-1;++at<ae;){var vt=H[at];if(gn(vt[0],this,Ne))return gn(vt[1],this,Ne)}})}function Wn(H){return th(Mo(H,g))}function wn(H){return function(){return H}}function sn(H,ae){return H==null||H!==H?ae:H}var Yn=Lp(),Xn=Lp(!0);function Fa(H){return H}function ta(H){return NA(typeof H=="function"?H:Mo(H,g))}function xa(H){return Yf(Mo(H,g))}function zn(H,ae){return Xf(H,Mo(ae,g))}var Ha=Sa(function(H,ae){return function(be){return rf(be,H,ae)}}),Va=Sa(function(H,ae){return function(be){return rf(H,be,ae)}});function yn(H,ae,be){var Ne=Je(ae),at=mc(ae,Ne);be==null&&!(Li(ae)&&(at.length||!Ne.length))&&(be=ae,ae=H,H=this,at=mc(ae,Je(ae)));var vt=!(Li(be)&&"chain"in be)||!!be.chain,Ft=Tc(H);return ys(at,function(Wt){var ir=ae[Wt];H[Wt]=ir,Ft&&(H.prototype[Wt]=function(){var Lr=this.__chain__;if(vt||Lr){var Ur=H(this.__wrapped__),Kr=Ur.__actions__=lo(this.__actions__);return Kr.push({func:ir,args:arguments,thisArg:H}),Ur.__chain__=Lr,Ur}return ir.apply(H,so([this.value()],arguments))})}),H}function On(){return vs._===this&&(vs._=Gd),this}function Cn(){}function Ia(H){return H=ka(H),Sa(function(ae){return Sp(ae,H)})}var ai=yh(_a),Rs=yh(Hd),qs=yh(Vo);function ds(H){return hf(H)?Nr(Ie(H)):Cg(H)}function wo(H){return function(ae){return H==null?r:Oo(H,ae)}}var _o=Rp(),wd=Rp(!0);function co(){return[]}function au(){return!1}function _d(){return{}}function gb(){return""}function n8(){return!0}function a8(H,ae){if(H=ka(H),H<1||H>R)return[];var be=W,Ne=Fs(H,W);ae=Jn(ae),H-=W;for(var at=Rf(Ne,ae);++be<H;)ae(be);return at}function i8(H){return sa(H)?_a(H,Ie):is(H)?[H]:lo(xe(li(H)))}function s8(H){var ae=++jf;return li(H)+ae}var o8=vh(function(H,ae){return H+ae},0),l8=JA("ceil"),u8=vh(function(H,ae){return H/ae},1),c8=JA("floor");function f8(H){return H&&H.length?Ac(H,Fa,nh):r}function d8(H,ae){return H&&H.length?Ac(H,Jn(ae,2),nh):r}function h8(H){return oo(H,Fa)}function A8(H,ae){return oo(H,Jn(ae,2))}function p8(H){return H&&H.length?Ac(H,Fa,lh):r}function m8(H,ae){return H&&H.length?Ac(H,Jn(ae,2),lh):r}var g8=vh(function(H,ae){return H*ae},1),v8=JA("round"),y8=vh(function(H,ae){return H-ae},0);function b8(H){return H&&H.length?Pf(H,Fa):0}function w8(H,ae){return H&&H.length?Pf(H,Jn(ae,2)):0}return dt.after=ub,dt.ary=Sv,dt.assign=r1,dt.assignIn=n1,dt.assignInWith=bd,dt.assignWith=a1,dt.at=Wv,dt.before=kv,dt.bind=Ng,dt.bindAll=ln,dt.bindKey=jg,dt.castArray=Lv,dt.chain=yv,dt.chunk=ft,dt.compact=Ht,dt.concat=zt,dt.cond=qr,dt.conforms=Wn,dt.constant=wn,dt.countBy=nu,dt.create=Uh,dt.curry=Hg,dt.curryRight=Qg,dt.debounce=zg,dt.defaults=qa,dt.defaultsDeep=mb,dt.defer=Tv,dt.delay=Ev,dt.difference=qt,dt.differenceBy=Xt,dt.differenceWith=nr,dt.drop=Mr,dt.dropRight=Dn,dt.dropRightWhile=Nn,dt.dropWhile=qn,dt.fill=nn,dt.filter=Pg,dt.flatMap=_v,dt.flatMapDeep=eb,dt.flatMapDepth=tb,dt.flatten=Xs,dt.flattenDeep=zi,dt.flattenDepth=vl,dt.flip=Iv,dt.flow=Yn,dt.flowRight=Xn,dt.fromPairs=Pu,dt.functions=ee,dt.functionsIn=se,dt.groupBy=rb,dt.initial=Bh,dt.intersection=Fh,dt.intersectionBy=cd,dt.intersectionWith=fd,dt.invert=Be,dt.invertBy=De,dt.invokeMap=Ru,dt.iteratee=ta,dt.keyBy=im,dt.keys=Je,dt.keysIn=He,dt.map=sm,dt.mapKeys=ct,dt.mapValues=et,dt.matches=xa,dt.matchesProperty=zn,dt.memoize=f0,dt.merge=Xe,dt.mergeWith=lt,dt.method=Ha,dt.methodOf=Va,dt.mixin=yn,dt.negate=d0,dt.nthArg=Ia,dt.omit=At,dt.omitBy=pt,dt.once=Bv,dt.orderBy=l0,dt.over=ai,dt.overArgs=Fv,dt.overEvery=Rs,dt.overSome=qs,dt.partial=um,dt.partialRight=Vg,dt.partition=om,dt.pick=jt,dt.pickBy=rr,dt.property=ds,dt.propertyOf=wo,dt.pull=pd,dt.pullAll=md,dt.pullAllBy=Mh,dt.pullAllWith=gd,dt.pullAt=Dh,dt.range=_o,dt.rangeRight=wd,dt.rearg=Mv,dt.reject=Ug,dt.remove=Cc,dt.rest=cb,dt.reverse=pf,dt.sampleSize=c0,dt.set=cr,dt.setWith=Fr,dt.shuffle=ib,dt.slice=vd,dt.sortBy=lb,dt.sortedUniq=Yp,dt.sortedUniqBy=Xp,dt.split=Nt,dt.spread=Dv,dt.tail=Zp,dt.take=Jp,dt.takeRight=qp,dt.takeRightWhile=em,dt.takeWhile=Lh,dt.tap=Gy,dt.throttle=Ov,dt.thru=am,dt.toArray=p0,dt.toPairs=Dr,dt.toPairsIn=pr,dt.toPath=i8,dt.toPlainObject=t1,dt.transform=Xr,dt.unary=kc,dt.union=tm,dt.unionBy=rm,dt.unionWith=nm,dt.uniq=i0,dt.uniqBy=s0,dt.uniqWith=mv,dt.unset=bn,dt.unzip=Og,dt.unzipWith=Lg,dt.update=dn,dt.updateWith=an,dt.values=en,dt.valuesIn=tn,dt.without=gv,dt.words=Hn,dt.wrap=Wg,dt.xor=jy,dt.xorBy=vv,dt.xorWith=Hy,dt.zip=Qy,dt.zipObject=zy,dt.zipObjectDeep=Vy,dt.zipWith=Wy,dt.entries=Dr,dt.entriesIn=pr,dt.extend=n1,dt.extendWith=bd,yn(dt,dt),dt.add=o8,dt.attempt=Qn,dt.camelCase=Gn,dt.capitalize=Ta,dt.ceil=l8,dt.clamp=Qr,dt.clone=mf,dt.cloneDeep=h0,dt.cloneDeepWith=ni,dt.cloneWith=Pv,dt.conformsTo=Vi,dt.deburr=xn,dt.defaultTo=sn,dt.divide=u8,dt.endsWith=Yr,dt.eq=Aa,dt.escape=la,dt.escapeRegExp=Ka,dt.every=Jy,dt.find=Rg,dt.findIndex=Ja,dt.findKey=b,dt.findLast=qy,dt.findLastIndex=_s,dt.findLastKey=E,dt.floor=c8,dt.forEach=xv,dt.forEachRight=Cv,dt.forIn=D,dt.forInRight=j,dt.forOwn=J,dt.forOwnRight=re,dt.get=Ae,dt.gt=Zi,dt.gte=Gg,dt.has=me,dt.hasIn=_e,dt.head=Ls,dt.identity=Fa,dt.includes=nb,dt.indexOf=ud,dt.inRange=En,dt.invoke=Le,dt.isArguments=Js,dt.isArray=sa,dt.isArrayBuffer=Nl,dt.isArrayLike=xs,dt.isArrayLikeObject=fs,dt.isBoolean=$g,dt.isBuffer=Uu,dt.isDate=fb,dt.isElement=uo,dt.isEmpty=Rv,dt.isEqual=db,dt.isEqualWith=hb,dt.isError=Kg,dt.isFinite=Uv,dt.isFunction=Tc,dt.isInteger=Yg,dt.isLength=Ph,dt.isMap=Nv,dt.isMatch=jl,dt.isMatchWith=jv,dt.isNaN=Ab,dt.isNative=pb,dt.isNil=Xg,dt.isNull=Hv,dt.isNumber=Zg,dt.isObject=Li,dt.isObjectLike=as,dt.isPlainObject=yd,dt.isRegExp=Rh,dt.isSafeInteger=Qv,dt.isSet=Jg,dt.isString=A0,dt.isSymbol=is,dt.isTypedArray=Ec,dt.isUndefined=qg,dt.isWeakMap=cm,dt.isWeakSet=e1,dt.join=dd,dt.kebabCase=ja,dt.last=Zs,dt.lastIndexOf=hd,dt.lowerCase=fi,dt.lowerFirst=ss,dt.lt=zv,dt.lte=Vv,dt.max=f8,dt.maxBy=d8,dt.mean=h8,dt.meanBy=A8,dt.min=p8,dt.minBy=m8,dt.stubArray=co,dt.stubFalse=au,dt.stubObject=_d,dt.stubString=gb,dt.stubTrue=n8,dt.multiply=g8,dt.nth=Ad,dt.noConflict=On,dt.noop=Cn,dt.now=lm,dt.pad=Vt,dt.padEnd=di,dt.padStart=ui,dt.parseInt=Ps,dt.random=Rn,dt.reduce=ab,dt.reduceRight=u0,dt.repeat=Hl,dt.replace=Ct,dt.result=Yt,dt.round=v8,dt.runInContext=er,dt.sample=un,dt.size=sb,dt.snakeCase=mr,dt.some=ob,dt.sortedIndex=ru,dt.sortedIndexBy=Oh,dt.sortedIndexOf=Xo,dt.sortedLastIndex=Sc,dt.sortedLastIndexBy=$p,dt.sortedLastIndexOf=Kp,dt.startCase=fr,dt.startsWith=Pt,dt.subtract=y8,dt.sum=b8,dt.sumBy=w8,dt.template=Gr,dt.times=a8,dt.toFinite=Nu,dt.toInteger=ka,dt.toLength=fm,dt.toLower=dr,dt.toNumber=yl,dt.toSafeInteger=dm,dt.toString=li,dt.toUpper=wr,dt.trim=ur,dt.trimEnd=Ir,dt.trimStart=Jr,dt.truncate=jn,dt.unescape=kn,dt.uniqueId=s8,dt.upperCase=hn,dt.upperFirst=Bn,dt.each=xv,dt.eachRight=Cv,dt.first=Ls,yn(dt,(function(){var H={};return pl(dt,function(ae,be){ci.call(dt.prototype,be)||(H[be]=ae)}),H})(),{chain:!1}),dt.VERSION=i,ys(["bind","bindKey","curry","curryRight","partial","partialRight"],function(H){dt[H].placeholder=dt}),ys(["drop","take"],function(H,ae){La.prototype[H]=function(be){be=be===r?1:Bi(ka(be),0);var Ne=this.__filtered__&&!ae?new La(this):this.clone();return Ne.__filtered__?Ne.__takeCount__=Fs(be,Ne.__takeCount__):Ne.__views__.push({size:Fs(be,W),type:H+(Ne.__dir__<0?"Right":"")}),Ne},La.prototype[H+"Right"]=function(be){return this.reverse()[H](be).reverse()}}),ys(["filter","map","takeWhile"],function(H,ae){var be=ae+1,Ne=be==O||be==F;La.prototype[H]=function(at){var vt=this.clone();return vt.__iteratees__.push({iteratee:Jn(at,3),type:be}),vt.__filtered__=vt.__filtered__||Ne,vt}}),ys(["head","last"],function(H,ae){var be="take"+(ae?"Right":"");La.prototype[H]=function(){return this[be](1).value()[0]}}),ys(["initial","tail"],function(H,ae){var be="drop"+(ae?"":"Right");La.prototype[H]=function(){return this.__filtered__?new La(this):this[be](1)}}),La.prototype.compact=function(){return this.filter(Fa)},La.prototype.find=function(H){return this.filter(H).head()},La.prototype.findLast=function(H){return this.reverse().find(H)},La.prototype.invokeMap=Sa(function(H,ae){return typeof H=="function"?new La(this):this.map(function(be){return rf(be,H,ae)})}),La.prototype.reject=function(H){return this.filter(d0(Jn(H)))},La.prototype.slice=function(H,ae){H=ka(H);var be=this;return be.__filtered__&&(H>0||ae<0)?new La(be):(H<0?be=be.takeRight(-H):H&&(be=be.drop(H)),ae!==r&&(ae=ka(ae),be=ae<0?be.dropRight(-ae):be.take(ae-H)),be)},La.prototype.takeRightWhile=function(H){return this.reverse().takeWhile(H).reverse()},La.prototype.toArray=function(){return this.take(W)},pl(La.prototype,function(H,ae){var be=/^(?:filter|find|map|reject)|While$/.test(ae),Ne=/^(?:head|last)$/.test(ae),at=dt[Ne?"take"+(ae=="last"?"Right":""):ae],vt=Ne||/^find/.test(ae);at&&(dt.prototype[ae]=function(){var Ft=this.__wrapped__,Wt=Ne?[1]:arguments,ir=Ft instanceof La,Lr=Wt[0],Ur=ir||sa(Ft),Kr=function(ei){var ii=at.apply(dt,so([ei],Wt));return Ne&&Sn?ii[0]:ii};Ur&&be&&typeof Lr=="function"&&Lr.length!=1&&(ir=Ur=!1);var Sn=this.__chain__,$n=!!this.__actions__.length,ua=vt&&!Sn,Qa=ir&&!$n;if(!vt&&Ur){Ft=Qa?Ft:new La(this);var ca=H.apply(Ft,Wt);return ca.__actions__.push({func:am,args:[Kr],thisArg:r}),new ws(ca,Sn)}return ua&&Qa?H.apply(this,Wt):(ca=this.thru(Kr),ua?Ne?ca.value()[0]:ca.value():ca)})}),ys(["pop","push","shift","sort","splice","unshift"],function(H){var ae=Uf[H],be=/^(?:push|sort|unshift)$/.test(H)?"tap":"thru",Ne=/^(?:pop|shift)$/.test(H);dt.prototype[H]=function(){var at=arguments;if(Ne&&!this.__chain__){var vt=this.value();return ae.apply(sa(vt)?vt:[],at)}return this[be](function(Ft){return ae.apply(sa(Ft)?Ft:[],at)})}}),pl(La.prototype,function(H,ae){var be=dt[ae];if(be){var Ne=be.name+"";ci.call(dc,Ne)||(dc[Ne]=[]),dc[Ne].push({name:ae,func:be})}}),dc[gh(r,d).name]=[{name:"wrapper",func:r}],La.prototype.clone=pg,La.prototype.reverse=Kd,La.prototype.value=ip,dt.prototype.at=$y,dt.prototype.chain=Ky,dt.prototype.commit=Yy,dt.prototype.next=Xy,dt.prototype.plant=o0,dt.prototype.reverse=bv,dt.prototype.toJSON=dt.prototype.valueOf=dt.prototype.value=wv,dt.prototype.first=dt.prototype.head,Bs&&(dt.prototype[Bs]=Zy),dt}),wu=bA();_r?((_r.exports=wu)._=wu,Nd._=wu):vs._=wu}).call(FZ)})(b1,b1.exports)),b1.exports}var DZ=MZ();const OZ={class:"flex gap-2 mt-3"},LZ={__name:"BatchModifySKUAndList",setup(a){const s=Di(),r=we([]),i=we(0),n=we([]),t=we(!1),c=we(),u=we(!1),f=we(!1),o=we([]),l=Pr(()=>{var M;return(M=c.value)==null?void 0:M.multipleSelection}),g=we(),m=()=>{t.value=!0},p=()=>{o.value=r.value,f.value=!0},_=()=>{if(!l.value.length)return ut.warning("请选择商品");o.value=l.value,f.value=!0},y=M=>{const P=Object.keys(M);let N=[],B=g.value.productSkuAccessories.filter(I=>I.vid),O={individuallyPacked:g.value.skuClassification==1?-1:g.value.individuallyPacked,numberOfPieces:g.value.numberOfPieces,pieceUnitCode:g.value.pieceUnitCode,productSkuNetContentReq:{},skuClassification:g.value.skuClassification};return P.forEach(I=>{let F=[];M[I].forEach(L=>{let R={mainProductSkuSpecReqs:[],productSkuReqs:[]};L.productSkuSummaries.forEach(U=>{R.productSkuReqs.push({productSkuAccessoriesReq:{productSkuAccessories:B},productSkuMultiPackReq:O,productSkuSpecReqs:U.productSkuSpecList})}),M[I].length>1?R.mainProductSkuSpecReqs=[R.productSkuReqs[0].productSkuSpecReqs[0]]:R.mainProductSkuSpecReqs=[{parentSpecId:0,parentSpecName:"",specId:0,specName:"",unitSpecName:null}],F.push(R)}),N.push({productId:I,productSkcReqs:F})}),N},h=M=>{f.value=!1,g.value=M,v.value=y(DZ.groupBy(o.value,"productId")),T()},d=()=>{window.productSkcPageQueryListener&&window.removeEventListener("message",window.productSkcPageQueryListener)};window.productSkcPageQueryListener=M=>{if(M.data.type==="/visage-agent-seller/product/skc/pageQuery"){const{response:P,params:N}=M.data;delete N.pageNum,delete N.pageSize,n.value=JSON.parse(JSON.stringify(N))}};const A=()=>{d(),window.addEventListener("message",window.productSkcPageQueryListener)},v=we([]),w=M=>{console.log("处理完成",M),k(M)},x=(M,P)=>{console.error("处理出错",M,P),k(P)},C=M=>{console.log("处理已取消",M),k(M)},k=M=>{u.value=!1,ut.success("操作完成：最终结果在代办任务中查看，待修改并不是需要手动修改!");let P=M.filter(N=>{var B;return(B=N==null?void 0:N.error)==null?void 0:B.error}).map(N=>Zn("div",{class:"error_message"},`${N.error.message}`));P.length!=0&&Pn({title:P.length?`提示:失败商品总数为【 ${P.length} 】条`:"提示",message:Zn(_i,{height:"400px"},[P]),showCancelButton:!0,showConfirmButton:!1,confirmButtonText:"复制所有失败SKCID",cancelButtonText:"关闭",beforeClose:async(N,B,O)=>{O()}}).then(N=>{})},T=()=>{u.value=!0},S=async(M,P)=>{var F,L;let{productId:N,productSkcReqs:B}=M[0];if(P.aborted)throw new Error("请求被取消");let O=await WX({bizIdType:1,bizIds:[Number(N)],productEditItems:[{editAdvice:g.value.textarea||"更新",editItem:8}]}),I=(F=O==null?void 0:O.result)==null?void 0:F.successBizId2TaskUidMap[Number(N)];if(!I){const R=await KC({productId:N},s);if(I=((L=(R==null?void 0:R.result.inProcessEditTaskList.filter(V=>V.curVerEditTaskItems.some(W=>W.editItem==8)))[0])==null?void 0:L.taskUid)||null,!I)throw new Error(`SPU_ID ${N} 处理失败: 该商品有正在进行的任务，请稍后再试`)}if(O.success&&I){let R={productId:Number(N),refuseEdit:!1,taskUid:I,taskVersion:0,productSkcReqs:B},{result:U,success:V,errorMsg:W}=await GX(R);if(V)return U;throw new Error(`SPU_ID ${N} 处理失败: ${W}`)}else throw new Error(`SPU_ID ${N} 处理失败: 服务器错误${O.errorMsg}`)};return oa(()=>{A()}),$l(()=>{d()}),(M,P)=>{const N=Ce("el-alert"),B=Ce("el-button"),O=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】批量修改SKU分类和清单",type:"primary",url:St(VX),filter:n.value,"return-key":"pageItems","page-num-key":"page","page-size-key":"pageSize",data:r.value,"onUpdate:data":P[0]||(P[0]=I=>r.value=I),total:i.value,"onUpdate:total":P[1]||(P[1]=I=>i.value=I),onComplete:m,onIsListener:d},null,8,["url","filter","data","total"]),z(O,{class:"warp-float",modelValue:t.value,"onUpdate:modelValue":P[4]||(P[4]=I=>t.value=I),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",onClose:A},{header:q(()=>[...P[5]||(P[5]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量修改SKU分类和清单")],-1)])]),default:q(()=>[z(N,{closable:!1,title:"提示:此列表数据为官方页面筛选后的最终数据，如需要筛选，请关闭弹窗，自行再官方页面进行条件筛选查询后，再点击获取数据操作!",type:"primary"}),de("div",OZ,[z(B,{type:"primary",onClick:p,disabled:r.value.length==0},{default:q(()=>[...P[6]||(P[6]=[Ue("修改所有商品",-1)])]),_:1},8,["disabled"]),z(B,{type:"primary",plain:"",onClick:_,disabled:r.value.length==0},{default:q(()=>[...P[7]||(P[7]=[Ue("修改已选商品",-1)])]),_:1},8,["disabled"])]),z(EZ,{class:"mt-3",data:r.value,ref_key:"TableRef",ref:c},null,8,["data"]),z(BZ,{dialogVisible:f.value,submitData:o.value.length,onSubmit:h,"onUpdate:dialogVisible":P[2]||(P[2]=I=>f.value=I)},null,8,["dialogVisible","submitData"]),z(K0,{data:v.value,batchSize:1,requestHandler:S,dialogVisible:u.value,"onUpdate:dialogVisible":P[3]||(P[3]=I=>u.value=I),autoStart:"true",onComplete:w,onError:x,onAbort:C},null,8,["data","dialogVisible"])]),_:1},8,["modelValue"])],64)}}},PZ={style:{display:"flex","margin-top":"10px"},class:"submit-dialog"},RZ={class:"desc"},UZ={class:"flex justify-end items-center gap-2"},NZ={__name:"BatchRefreshSku",props:{type:{type:String,required:!0}},setup(a){const s=a,r=we(!1),i=we(!1),n=we({productSelectType:"1",quickTakedown:!0}),t=we([]),c=we([]),u=we(!1),f=we(""),o=we([]);let l=we(0),g=we(0),m=we();const p=we(0),_=we([]),y=we([]),h=Kn(),d=async()=>{i.value=!0;const I=await h.initMall();if(i.value=!1,!!I){c.value=[],t.value=[];try{const F=s.type==="newon"?await ix(h.mall):await cA();if(!F)return;if(F.length===0){ut.error("请先选择商品");return}r.value=!0;let L=[];s.type==="newon"?F.forEach(R=>{R.skcList.forEach(U=>{U.skuList.forEach(V=>{L.push(V.skuId)})})}):L=F.flatMap(R=>R.skus),c.value=L}catch(F){console.error(F)}finally{}}};function A(I){return new Promise(F=>setTimeout(F,I))}const v=async I=>{u.value=!0,t.value=[],await O();let F=!1;try{for(await xf({contentType:1,content:"开始商品价格刷新 --------------"}).then(L=>{m.value=L.data.result.msgId}),await ex({}).then(L=>{var R,U;(U=(R=L==null?void 0:L.data)==null?void 0:R.result)==null||U.list.forEach(V=>{V.toolName==="价格刷新"&&(g.value=V.toolId)})});!F;)await Lc({direction:2,limit:20,msgId:m.value}).then(L=>{L.data.success&&(F=!0)}),A(500);for(F=!1,m.value=await xf({contentType:1,content:"价格刷新"}).then(L=>{var R,U;return(U=(R=L==null?void 0:L.data)==null?void 0:R.result)==null?void 0:U.msgId});!F;)await Lc({direction:2,limit:20,msgId:m.value}).then(L=>{L.data.success&&(F=!0)}),A(500);for(F=!1;!F;)await Lc({direction:2,limit:20,msgId:m.value}).then(L=>{var U,V;((V=(U=L==null?void 0:L.data)==null?void 0:U.result)==null?void 0:V.messageList).forEach(W=>{l.value=W.msgId}),l.value&&(F=!0)}),A(500)}catch(L){u.value=!1,console.error(`发送消息失败: ${L}`)}await w()};async function w(){await x(c.value),n.value.quickTakedown&&(ut.success("商品刷新成功！"),u.value=!1)}const x=async I=>{let L=0,R=0;for(u.value=!0;L+R*5<I.length&&u.value===!0;){const U=L+R*5,V=U+5,W=I.slice(U,V);let Q=[],le=[];f.value="正在刷新",console.log(`共${I.length}条 正在处理${U}到${V}条`);try{await Promise.all(W.map(G=>sY({productSkuId:G}))).then(G=>{Q=Q.concat(G)}),await Promise.all(Q.map(G=>{var ie,he,Y;const fe=G.data;return xf({content:JSON.stringify({name:(ie=fe==null?void 0:fe.result)==null?void 0:ie.productName,img:(he=fe==null?void 0:fe.result)==null?void 0:he.productPicture,dataType:2,dataId:(Y=fe==null?void 0:fe.result)==null?void 0:Y.productSkuId,toolId:g.value}),contentType:7,parentMsgId:l.value})})).then(G=>{G.forEach(fe=>{le=le.concat(fe.data.result)})}),y.value=y.value.concat(le),n.value.quickTakedown?t.value=y.value.map(G=>{const{dataId:fe,img:ie,name:he}=JSON.parse(G==null?void 0:G.content);return{img:ie,title:he,sku:fe,resultMessage:"请在客服消息窗口查看"}}):le.map(G=>{_.value.push({msgId:G.msgId,interval:setInterval(()=>{Lc({direction:2,limit:20,msgId:G.msgId}).then(fe=>{C(G.msgId,fe.data.result.messageList)})},2e3)}),p.value++})}catch(G){console.log(G)}R++}};function C(I,F){F.forEach(L=>{const R=L.content.match("(?<=【SKU ID：).*?(?=】)");if(R){const U=_.value.find(G=>String(G.msgId)===String(I));U.completed=!0,clearInterval(U.interval);const V=y.value.find(G=>String(JSON.parse(G.content).dataId)===String(R[0])),{img:W,name:Q}=JSON.parse(V==null?void 0:V.content);o.value.indexOf(R[0])===-1&&(o.value.push(R[0]),t.value.push({img:W,title:Q,sku:R[0],resultMessage:L.content.match("(?<=】).*?(?=</p>)")[0]}));let le=0;_.value.forEach(G=>{G.completed===!0&&le++}),le===_.value.length&&(console.log("全部查询结束"),c.value=[],u.value=!1)}})}const k=async I=>{try{u.value&&await Pn.confirm("当前商品【批量刷新SKU】还未全部执行完毕，确认关闭吗？"),u.value=!1,I(),T()}catch{}},T=()=>{c.value=[],t.value=[],u.value=!1};Ra(r,async I=>{I?S():(N()&&await P(),M())});const S=()=>{document.querySelector('div[class*="kefu_kefuOuter"]').classList.add("lingfeng-kefu-wrapper")},M=()=>{const I=document.querySelector(".lingfeng-kefu-wrapper");I==null||I.classList.remove("lingfeng-kefu-wrapper")},P=async()=>{const I=document.querySelector(".lingfeng-kefu-wrapper"),F=I==null?void 0:I.querySelector('div[class*="kefu_kefu"]');return F?(F.click(),await new Promise(L=>setTimeout(L,500)),!0):!1},N=()=>{const I=document.querySelector(".lingfeng-kefu-wrapper");return!!(I==null?void 0:I.querySelector('div[class*="PT_popover_"]'))},B=async()=>{const F=document.querySelector(".lingfeng-kefu-wrapper").querySelector('button[class*="BTN_primary_"]');if(!F)return!1;const L=F.innerText;return L==="发送"?!0:L==="联系官方客服"?(F.click(),await new Promise(R=>setTimeout(R,500)),!0):!1},O=async()=>!N()&&!await P()?!1:await B();return(I,F)=>{const L=Ce("el-button"),R=Ce("el-radio-button"),U=Ce("el-radio-group"),V=Ce("el-form-item"),W=Ce("el-checkbox"),Q=Ce("el-form"),le=Ce("el-image"),G=Ce("el-table-column"),fe=Ce("el-table"),ie=Ce("el-dialog"),he=Ai("loading");return Oe(),st(Zt,null,[z(L,{type:"primary",onClick:d,loading:i.value},{default:q(()=>[...F[4]||(F[4]=[Ue(" 【凌风跨境工具箱】批量刷新SKU价格 ",-1)])]),_:1},8,["loading"]),z(ie,{modelValue:r.value,"onUpdate:modelValue":F[3]||(F[3]=Y=>r.value=Y),"close-on-click-modal":!1,"close-on-press-escape":!1,top:"2vh",width:"40vw","before-close":k},{header:q(()=>[...F[5]||(F[5]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】批量刷新SKU价格")],-1)])]),footer:q(()=>[de("div",UZ,[z(L,{onClick:F[2]||(F[2]=Y=>k(()=>{r.value=!1}))},{default:q(()=>[...F[7]||(F[7]=[Ue("关 闭",-1)])]),_:1})])]),default:q(()=>[de("div",PZ,[z(Q,{inline:!0,model:n.value},{default:q(()=>[z(V,{prop:"productSelectType"},{default:q(()=>[z(U,{modelValue:n.value.productSelectType,"onUpdate:modelValue":F[0]||(F[0]=Y=>n.value.productSelectType=Y),"aria-label":"label position"},{default:q(()=>[z(R,{value:"1"},{default:q(()=>[Ue("当前列表勾选的SKU"+ht(c.value.length?`(${c.value.length})`:""),1)]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(V,{prop:"quickTakedown"},{default:q(()=>[z(W,{modelValue:n.value.quickTakedown,"onUpdate:modelValue":F[1]||(F[1]=Y=>n.value.quickTakedown=Y),label:"无视结果快速刷新"},null,8,["modelValue"])]),_:1}),z(V,null,{default:q(()=>[z(L,{icon:St(U0),type:"primary",class:"custom-button",onClick:v,loading:u.value},{default:q(()=>[...F[6]||(F[6]=[Ue("开始刷新 ",-1)])]),_:1},8,["icon","loading"])]),_:1})]),_:1},8,["model"])]),F[8]||(F[8]=de("div",{class:"table-border-left"}," 下架结果列表 ",-1)),na((Oe(),Et(fe,{data:t.value,height:"60vh",border:"","element-loading-text":f.value},{default:q(()=>[z(G,{label:"商品图片"},{default:q(({row:Y})=>[z(le,{src:Y.img,alt:"",loading:"lazy"},null,8,["src"])]),_:1}),z(G,{label:"商品名称",width:255},{default:q(({row:Y})=>[de("p",null,ht(Y.title),1),de("p",RZ,"SKU: "+ht(Y.sku),1)]),_:1}),z(G,{label:"商品状态"},{default:q(({row:Y})=>[Ue(ht(Y.resultMessage),1)]),_:1})]),_:1},8,["data","element-loading-text"])),[[he,u.value]])]),_:1},8,["modelValue"])],64)}}},Nk=cn(NZ,[["__scopeId","data-v-8a171c98"]]),jZ={style:{display:"flex","margin-top":"10px"},class:"volumn-form-dialog"},HZ={style:{display:"flex","justify-content":"space-between"},class:"w-full"},QZ={style:{"font-weight":"bold",margin:"5px 0","font-size":"14px"}},zZ={class:"flex justify-end items-center gap-2"},VZ={class:"flex justify-end items-center gap-2"},WZ={__name:"BatchProductSetTitle",setup(a){const s=we(!1),r=we(!1),i=we({isAll:"1"}),n=we([]),t=we("点击上传修改标题表格"),c=we(0),u=we(),f=we(),o=we([]),l={fileList:[{required:!0,message:"请上传表格"}],remark:[{required:!0,message:"请完善信息"}]},g=we({page:1,pageSize:50,total:0}),m=we(),p=we(!1),_=we([]),y=we(!1),h=we([]),d=Kn(),A=async()=>{r.value=!0;const O=await d.initMall();if(r.value=!1,!!O)try{const I=await cA();if(!I)return;s.value=!0,_.value=I.flatMap(F=>F.spu)}catch(I){console.error(I)}};function v(){let O=[{SPU:"",待替换文本:"",替换文本:""}];_.value.length>0&&(O=[],_.value.forEach(L=>{O.push({SPU:String(L),待替换文本:"",替换文本:""})}));const I=_f.json_to_sheet(O);I["!cols"]=[{wch:12},{wch:15},{wch:15}];const F=_f.book_new();_f.book_append_sheet(F,I,"商品基础信息"),oU(F,"商品标题替换.xlsx")}function w(O){t.value=`重新上传表格【${O.name}】`;const I=new FileReader;I.readAsBinaryString(O.raw),I.onload=F=>{const L=xw(F.target.result,{type:"binary"});n.value=_f.sheet_to_json(L.Sheets[L.SheetNames[0]])}}function x(O){m.value.clearFiles();const I=O[0];I.uid=LC(),m.value.handleStart(I)}function C(){const{page:O,pageSize:I}=g.value;Lk({page:O,pageSize:I}).then(async({success:L,result:R,error_code:U,errorMsg:V})=>{if(L){g.value.total=R.total,R.pageItems.forEach(Q=>{_.value.push(Q.productId)});const W=g.value.pageSize*g.value.page;if(W<R.total&&y.value)return u.value.setText(`正在获取数据(${W}/${R.total})`),g.value.page+=1,C();await T()}else ut.error(`获取商品列表失败: ${V}`)}).catch(L=>{ut.error(`获取商品列表失败: ${L.message}`)})}const k=O=>{f.value.validate(async I=>{I&&(_.value.length===0&&i.value.isAll==="1"||(y.value=!0,o.value=[],c.value=0,u.value=B0.service({target:".volumn-form-dialog"}),i.value.isAll==="0"?(_.value=[],C()):await T()))})};async function T(){if(h.value=_.value.filter(O=>{let I=!1;return n.value.forEach(F=>{O===Number(F.SPU)&&F.待替换文本.length&&(I=!0)}),I}),!h.value.length){u.value.close();return}await S(),u.value.close(),o.value.length&&(p.value=!0),y.value=!1,ut({message:"商品更新完成，需前往待办任务中查看",type:"success"})}async function S(){if(!y.value){u.value.close();return}try{const O=h.value[c.value],I=await Pk({productId:O}).then(R=>R.result).catch(R=>{console.log(R)}),F={bizIdType:1,bizIds:[O],productEditItems:[{editItem:1,editAdvice:i.value.remark}]};await Rk(F).catch(R=>{console.log(R)});const L=await M(I);if(await Uk(L).then(R=>{R.success||o.value.push({productId:I.productId,message:R.errorMsg})}).catch(R=>{console.log(R)}),c.value<h.value.length-1)return u.value.setText(`正在修改 ${c.value}/${h.value.length}商品标题,请稍候...`),c.value++,S()}catch{}}async function M(O){const I=n.value.filter(U=>Number(U.SPU)===O.productId),F=I[0].待替换文本,L=O.productName.replace(new RegExp(F,"g"),I[0].替换文本),R=O.inProcessEditTaskList&&O.inProcessEditTaskList.length?O.inProcessEditTaskList[0].taskUid:null;return{productId:O.productId,taskUid:R,taskVersion:0,refuseEdit:!1,productName:L}}function P(){let O="";o.value.forEach(I=>{O+=I.productId+" "}),navigator.clipboard.writeText(O)}const N=async O=>{y.value?Pn.confirm("是否确认中止修改","",{confirmButtonText:"确 定",cancelButtonText:"取 消",type:"warning"}).then(()=>{B(),O()}):(B(),O())};function B(){y.value=!1,_.value=[],u.value&&u.value.close(),i.value={fileList:[],isAll:"1"},g.value={page:1,pageSize:50,total:0}}return Ra(s,async O=>{}),(O,I)=>{const F=Ce("el-button"),L=Ce("el-alert"),R=Ce("el-radio-button"),U=Ce("el-radio-group"),V=Ce("el-form-item"),W=Ce("el-link"),Q=Ce("el-icon"),le=Ce("el-tooltip"),G=Ce("el-upload"),fe=Ce("el-input"),ie=Ce("el-form"),he=Ce("el-scrollbar"),Y=Ce("el-dialog");return Oe(),st(Zt,null,[z(F,{type:"primary",onClick:A,loading:r.value},{default:q(()=>[...I[7]||(I[7]=[Ue(" 【凌风跨境工具箱】批量设置商品标题 ",-1)])]),_:1},8,["loading"]),z(Y,{modelValue:s.value,"onUpdate:modelValue":I[6]||(I[6]=K=>s.value=K),"close-on-click-modal":!1,"close-on-press-escape":!1,top:"2vh",width:"33vw","before-close":N},{header:q(()=>[...I[8]||(I[8]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】一键修改商品标题")],-1)])]),footer:q(()=>[de("div",VZ,[z(F,{onClick:I[5]||(I[5]=K=>N(()=>{s.value=!1}))},{default:q(()=>[...I[15]||(I[15]=[Ue("关 闭",-1)])]),_:1})])]),default:q(()=>[z(L,{title:"执行结束后，最终的结果请在待办任务中查看",type:"warning","show-icon":"",closable:!1}),de("div",jZ,[z(ie,{model:i.value,class:"w-full",rules:l,ref_key:"formRef",ref:f},{default:q(()=>[z(V,{prop:"isAll",class:"w-full"},{default:q(()=>[de("div",HZ,[z(U,{modelValue:i.value.isAll,"onUpdate:modelValue":I[0]||(I[0]=K=>i.value.isAll=K),"aria-label":"label position"},{default:q(()=>[z(R,{value:"1"},{default:q(()=>[Ue(" 当前列表勾选的商品"+ht(_.value.length&&i.value.isAll==="1"?`(${_.value.length})`:""),1)]),_:1}),z(R,{value:"0"},{default:q(()=>[...I[9]||(I[9]=[Ue("全部商品",-1)])]),_:1})]),_:1},8,["modelValue"]),z(F,{icon:St(U0),type:"primary",class:"custom-button",onClick:k},{default:q(()=>[...I[10]||(I[10]=[Ue("开始修改 ",-1)])]),_:1},8,["icon"])])]),_:1}),z(V,{label:"示例文件下载:","label-width":"100"},{default:q(()=>[z(W,{type:"warning",onClick:v},{default:q(()=>[...I[11]||(I[11]=[Ue("下载示例",-1)])]),_:1})]),_:1}),z(V,{prop:"fileList",label:"","label-width":"100"},{label:q(()=>[I[12]||(I[12]=Ue(" 上传表格 ",-1)),z(le,{class:"box-item",effect:"dark",content:"1.仅支持excel格式的文档。2.文件大小不可超过15M",placement:"top"},{default:q(()=>[z(Q,{style:{transform:"translateY(10px)"}},{default:q(()=>[z(St(jC))]),_:1})]),_:1})]),default:q(()=>[z(G,{ref_key:"uploadRef",ref:m,"file-list":i.value.fileList,"onUpdate:fileList":I[1]||(I[1]=K=>i.value.fileList=K),action:"#","show-file-list":!1,"auto-upload":!1,"on-change":w,"on-exceed":x,accept:".xlsx,.xls",limit:1},{default:q(()=>[z(F,{type:"primary"},{default:q(()=>[Ue(ht(t.value),1)]),_:1})]),_:1},8,["file-list"])]),_:1}),z(V,{prop:"remark",class:"w-3/4",label:"修改原因:","label-width":"100"},{default:q(()=>[z(fe,{type:"textarea",rows:4,modelValue:i.value.remark,"onUpdate:modelValue":I[2]||(I[2]=K=>i.value.remark=K)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),z(Y,{modelValue:p.value,"onUpdate:modelValue":I[4]||(I[4]=K=>p.value=K),"close-on-click-modal":!1,"close-on-press-escape":!1,title:"修改失败列表",width:"600px"},{footer:q(()=>[de("div",zZ,[z(F,{onClick:P},{default:q(()=>[...I[13]||(I[13]=[Ue("复制全部失败 SPU ID",-1)])]),_:1}),z(F,{onClick:I[3]||(I[3]=K=>p.value=!1),class:"custom-button",type:"primary"},{default:q(()=>[...I[14]||(I[14]=[Ue("确 定 ",-1)])]),_:1})])]),default:q(()=>[z(he,{"max-height":"400px",style:{padding:"0 20px"}},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(o.value,(K,oe)=>(Oe(),st("div",null,[de("div",QZ,"("+ht(oe+1)+")SPU ID :"+ht(K.productId),1),z(L,{type:"error",closable:!1},{default:q(()=>[Ue("错误原因:"+ht(K.message),1)]),_:2},1024)]))),256))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},GZ=cn(WZ,[["__scopeId","data-v-7515d89a"]]);function $Z(a){return/^\d+$/.test(a)}function KZ(a,s){const r=a.split(":");let i="",n=-1,t=!1;if(r.length===1)i=r[0];else if(r.length===2)$Z(r[0])?(i=r[1],n=parseInt(r[0],10),t=!0):(i=r[0],n=parseInt(r[1],10));else throw new Error(`模板 '{${a}}' 格式错误`);let c={};for(const[f,o]of Object.entries(s))c[f.toUpperCase()]=o;let u=c[i.toUpperCase()];if(!u)throw new Error(`属性 '${i}' 不存在`);return u=`${u}`,n===-1?u:t?u.substring(0,n):u.substring(u.length-n)}function Z3(a,s){const r=/{([^}]+)}/g;return a.replace(r,(i,n)=>KZ(n,s))}const YZ={class:"flex items-center gap-1"},XZ={class:"mt-4"},ZZ={class:"mt-4"},JZ={class:"list-disc"},qZ={class:"flex items-center gap-4"},eJ={class:"flex items-center gap-4"},tJ={class:"flex items-center gap-1"},rJ={class:"mt-4"},nJ={class:"mt-4"},aJ={class:"list-disc"},iJ={class:"flex items-center gap-4"},sJ={class:"flex items-center gap-4"},oJ={class:"flex flex-col"},lJ={class:"flex items-center gap-2"},uJ={class:"flex items-center gap-2"},cJ={class:"flex gap-4 text-xs"},fJ={style:{color:"#303133"},class:"line-clamp-2"},dJ={style:{color:"#606266"}},hJ={style:{color:"#303133"}},AJ={class:"flex items-center p-2 gap-4 hover:bg-orange-50"},pJ={class:"w-40"},mJ={class:"w-full truncate"},gJ={class:"w-full truncate"},vJ={class:"flex flex-col gap-2"},yJ={class:"flex items-center p-2 gap-4 hover:bg-orange-50"},bJ={class:"w-40"},wJ={class:"w-full truncate"},_J={class:"w-full truncate"},xJ={key:0},CJ={key:1,style:{color:"var(--lf-color-success)"}},SJ={key:2,style:{color:"var(--lf-color-danger)"}},kJ={key:3,style:{color:"var(--lf-color-warning)"}},TJ={key:1},EJ={class:"mt-4 flex justify-end"},IJ={key:0,class:"flex items-center gap-2"},BJ={key:1},J3="{SPU:4}-{4:SKC}-{当前货号}",q3="{SPU:4}-{4:SKC}-{SKU:4}-{当前货号}-{颜色}-{尺码}",FJ=xi({__name:"BatchUpdateExtCode",setup(a){const s=[{label:"全部",filter:M=>!0},{label:"已填写",filter:M=>M.editExtCode!==null||M.skuItems.some(P=>P.editExtCode!==null)},{label:"填写失败",filter:M=>M.templateError||M.skuItems.some(P=>P.templateError)},{label:"提交失败",filter:M=>{var P;return((P=M.submitResult)==null?void 0:P.status)==="failed"}}],r=nx(),i=we("{SPU:4}-{SKC:4}"),n=we("{SPU:4}-{SKC:4}-{SKU:4}"),t=we({input:J3,output:"",error:"",properties:[{name:"SPU",value:6702729090},{name:"SKC",value:29460809012},{name:"当前货号",value:"103A"}]}),c=we({input:q3,output:"",error:"",properties:[{name:"SPU",value:6702729090},{name:"SKC",value:29460809012},{name:"SKU",value:88915389778},{name:"当前货号",value:"105B"},{name:"颜色",value:"Black"},{name:"尺码",value:"XXL"}]}),u=we(s[0]),f=we(0),o=we(!1);let l;const g=we({search:"",replace:""});Pr(()=>r.selectedList.filter(M=>M.editExtCode||M.skuItems.some(P=>P.editExtCode)));const m=Pr(()=>r.list.filter(M=>M.editExtCode||M.skuItems.some(P=>P.editExtCode))),p=Pr(()=>{const M=[];return r.selectedList.forEach(P=>{M.push(...P.skuItems)}),M}),_=we();Ra(()=>t.value.input,M=>{t.value.error="",t.value.output="";try{const P=t.value.properties.reduce((N,B)=>(N[B.name]=B.value,N),{});t.value.output=v(M,P)}catch(P){t.value.error=P.message}},{immediate:!0}),Ra(()=>c.value.input,M=>{c.value.error="",c.value.output="";try{const P=c.value.properties.reduce((N,B)=>(N[B.name]=B.value,N),{});c.value.output=w(M,P)}catch(P){c.value.error=P.message}},{immediate:!0});function y(){navigator.clipboard.writeText(t.value.input).then(()=>{ut.success("复制成功")}).catch(()=>{ut.error(`复制失败: ${e.message}`)})}function h(){navigator.clipboard.writeText(c.value.input).then(()=>{ut.success("复制成功")}).catch(()=>{ut.error(`复制失败: ${e.message}`)})}function d(M){M=M.map(P=>({...P,skuItems:P.productSkuSummaries.map(N=>({productId:P.productId,productSkcId:P.productSkcId,productSkuId:N.productSkuId,productSkuSpecList:N.productSkuSpecList,extCode:N.extCode,editExtCode:null,templateError:null})),editExtCode:null,templateError:null})),r.setList(M),u.value=s[0],A()}function A(){r.setFilter(u.value.filter)}function v(M,P){return M=M.replace(/\s/g,""),Z3(M,P)}function w(M,P){return M=M.replace(/\s/g,""),Z3(M,P)}async function x(){if(r.selectedList.length===0){ut.warning("请选择商品");return}for(const B of r.selectedList)B.templateError=null,B.editExtCode=null;if(!i.value){ha({title:"批量填写货号",message:`已取消 ${r.selectedList.length} 个 SKC 的货号填写`,type:"warning"});return}let M=0,P=0;for(const B of r.selectedList)try{const O={当前货号:B.extCode,SPU:B.productId,SKC:B.productSkcId};B.editExtCode=v(i.value,O),M++}catch(O){B.templateError=`批量填写错误: ${O.message}`,P++}let N="";M>0&&(N+=`<p style="color: var(--lf-color-success);">${M} 个 SKC 填写成功</p>`),P>0&&(N+=`<p style="color: var(--lf-color-danger);">${P} 个 SKC 填写失败</p>`),ha({title:"批量填写 SKC 货号",message:N,dangerouslyUseHTMLString:!0,type:P>0?"warning":"success"})}async function C(){if(r.selectedList.length===0){ut.warning("请选择商品");return}const M=[];for(const O of r.selectedList)O.skuItems.forEach(I=>{I.editExtCode=null,I.templateError=null,M.push(I)});if(!n.value){ha({title:"批量填写货号",message:`已取消 ${M.length} 个 SKU 的货号填写`,type:"warning"});return}let P=0,N=0;for(const O of M)try{const I={当前货号:O.extCode,SPU:O.productId,SKC:O.productSkcId,SKU:O.productSkuId};O.productSkuSpecList.forEach(F=>{I[F.parentSpecName]=F.specName}),O.editExtCode=w(n.value,I),P++}catch(I){O.templateError=`批量填写错误: ${I.message}`,N++}let B="";P>0&&(B+=`<p style="color: var(--lf-color-success);">${P} 个 SKU 填写成功</p>`),N>0&&(B+=`<p style="color: var(--lf-color-danger);">${N} 个 SKU 填写失败</p>`),ha({title:"批量填写 SKU 货号",message:B,dangerouslyUseHTMLString:!0,type:N>0?"warning":"success"})}function k(M){M.editExtCode&&(M.extCode=M.editExtCode,M.editExtCode=null),M.skuItems.forEach(P=>{P.editExtCode&&(P.extCode=P.editExtCode,P.editExtCode=null)})}function T(M){u.value=s.find(P=>P.label===M),A()}function S(){if(o.value){l==null||l.abort();return}const M=m.value;if(M.length===0){ut.warning("未找到已填写货号的商品");return}const P=`<p>确认修改所有已填写的 ${M.length} 个商品的货号吗?</p>`;Pn.confirm(P,"确认修改?",{type:"warning",dangerouslyUseHTMLString:!0}).then(async()=>{M.forEach(N=>{N.submitResult={status:"waiting"}});try{let N=Date.now();f.value=0,T("全部"),o.value=!0,l=new AbortController;let B=0,O=0,I=0;for(let R=0;R<M.length;R++){const U=M[R];if(!(U.editExtCode&&U.extCode!==U.editExtCode||U.skuItems.some(Q=>Q.editExtCode&&Q.extCode!==Q.editExtCode))){B++,U.submitResult.status="success",f.value=(R+1)*100/M.length;continue}const W={extCode:U.editExtCode||U.extCode,productId:U.productId,productSkcId:U.productSkcId,mmsEditPartProductSkuReqs:U.skuItems.map(Q=>({productSkuId:Q.productSkuId,extCode:Q.editExtCode||Q.extCode}))};try{const Q=await qK(W,l.signal);f.value=(R+1)*100/M.length,Q.success?(B++,U.submitResult.status="success",k(U)):(O++,U.submitResult.status="failed",U.submitResult.errorMsg=Q.errorMsg)}catch(Q){Q.message!=="canceled"&&(O++,U.submitResult.status="failed",U.submitResult.errorMsg=Q.message),M.forEach(le=>{le.submitResult.status==="waiting"&&(I++,le.submitResult.status="aborted")});break}}let F="";B>0&&(F+=`<p style="color: var(--lf-color-success);">${B} 个商品修改成功</p>`),O>0&&(F+=`<p style="color: var(--lf-color-danger);">${O} 个商品修改失败</p>`),I>0&&(F+=`<p style="color: var(--lf-color-warning);">${I} 个商品修改取消</p>`);const L=Date.now()-N;ha({title:"批量修改货号",message:F,dangerouslyUseHTMLString:!0,type:O>0?"danger":"success",duration:Math.max(L,6e3)}),O>0?T("提交失败"):T("全部")}catch(N){console.error(N)}finally{o.value=!1}}).catch(N=>{N!=="cancel"&&console.error(N)})}return(M,P)=>{const N=Ce("el-icon"),B=Ce("el-button"),O=Ce("el-option"),I=Ce("el-select"),F=Ce("el-form-item"),L=Ce("el-form"),R=Ce("el-input"),U=Ce("el-popover"),V=Ce("el-empty"),W=Ce("el-checkbox"),Q=Ce("el-table-column"),le=Ce("el-image"),G=Ce("el-table"),fe=Ce("el-pagination"),ie=Ce("el-progress");return Oe(),Et(rx,{title:"批量修改SKC货号",id:"product-skcs","full-screen":!0,onDownload:d},{default:q(({loading:he})=>[z(B,{type:"primary"},{default:q(()=>[he?(Oe(),Et(N,{key:0,class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1})):tr("",!0),P[16]||(P[16]=de("span",null,"【凌风跨境工具箱】批量修改货号",-1))]),_:2},1024)]),nextStep:q(({cancel:he})=>[z(L,{inline:""},{default:q(()=>[z(F,{label:"筛选",class:"custom-form-item"},{default:q(()=>[z(I,{"value-key":"label",modelValue:u.value,"onUpdate:modelValue":P[0]||(P[0]=Y=>u.value=Y),onChange:A,style:{width:"220px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(s,Y=>z(O,{key:Y.label,label:Y.label,value:Y},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(L,{ref_key:"replaceFormRef",ref:_,model:g.value},{default:q(()=>[z(F,null,{label:q(()=>[de("div",YZ,[P[20]||(P[20]=de("div",null,"批量填写 SKC 模板",-1)),z(U,{width:"720px",trigger:"click"},{reference:q(()=>[z(N,{class:"cursor-pointer"},{default:q(()=>[z(St(Ro))]),_:1})]),default:q(()=>[P[19]||(P[19]=de("div",{class:"tip"},[de("p",null,[de("strong",null,"模板填写规则:")]),de("ul",{class:"list-decimal"},[de("li",null,[de("strong",null,"{4:SPU}"),Ue(" 表示填写 SPU 的前 4 位")]),de("li",null,[de("strong",null,"{SPU:4}"),Ue(" 表示填写 SPU 的后 4 位")]),de("li",null,[de("strong",null,"{SPU}"),Ue(" 表示填写整个 SPU")]),de("li",null,[Ue("适用以上规则的共有: "),de("strong",null,"SPU"),Ue(", "),de("strong",null,"SKC"),Ue(", "),de("strong",null,"当前货号")])])],-1)),de("div",XZ,[P[18]||(P[18]=de("p",null,[de("strong",null,"示例:")],-1)),de("div",ZZ,[de("ul",JZ,[(Oe(!0),st(Zt,null,Hr(t.value.properties,Y=>(Oe(),st("li",{key:Y.name},[de("strong",null,ht(Y.name),1),Ue(": "+ht(Y.value),1)]))),128))])]),z(L,{class:"mt-4"},{default:q(()=>[z(F,{label:"输入模板:",error:t.value.error},{default:q(()=>[de("div",qZ,[z(R,{modelValue:t.value.input,"onUpdate:modelValue":P[1]||(P[1]=Y=>t.value.input=Y),placeholder:"请输入模板",style:{width:"320px"},"validate-event":!1},null,8,["modelValue"]),z(B,{onClick:P[2]||(P[2]=()=>{t.value.input=J3})},{default:q(()=>[...P[17]||(P[17]=[Ue("重置",-1)])]),_:1}),z(B,{icon:St(vx),onClick:P[3]||(P[3]=Y=>y()),style:{"margin-left":"0"}},null,8,["icon"])])]),_:1},8,["error"]),z(F,{label:"预览结果:"},{default:q(()=>[de("strong",null,ht(t.value.output),1)]),_:1})]),_:1})])]),_:1})])]),default:q(()=>[de("div",eJ,[z(R,{placeholder:"空值代表取消填写","value-on-clear":null,modelValue:i.value,"onUpdate:modelValue":P[4]||(P[4]=Y=>i.value=Y),controls:!1,precision:0,clearable:"",style:{width:"420px"}},null,8,["modelValue"]),z(B,{type:"primary",onClick:P[5]||(P[5]=Y=>x())},{default:q(()=>[Ue("批量填写 SKC 货号(当前选中 "+ht(St(r).selectedList.length)+" 个 SKC)",1)]),_:1})])]),_:1}),z(F,null,{label:q(()=>[de("div",tJ,[P[24]||(P[24]=de("div",null,"批量填写 SKU 模板",-1)),z(U,{width:"720px",trigger:"click"},{reference:q(()=>[z(N,{class:"cursor-pointer"},{default:q(()=>[z(St(Ro))]),_:1})]),default:q(()=>[P[23]||(P[23]=de("div",{class:"tip"},[de("p",null,[de("strong",null,"模板填写规则:")]),de("ul",{class:"list-decimal"},[de("li",null,[de("strong",null,"{4:SPU}"),Ue(" 表示填写 SPU 的前 4 位")]),de("li",null,[de("strong",null,"{SPU:4}"),Ue(" 表示填写 SPU 的后 4 位")]),de("li",null,[de("strong",null,"{SPU}"),Ue(" 表示填写整个 SPU")]),de("li",null,[Ue("适用以上规则的共有: "),de("strong",null,"SPU"),Ue(", "),de("strong",null,"SKC"),Ue(", "),de("strong",null,"SKU"),Ue(", "),de("strong",null,"当前货号"),Ue(", "),de("strong",null,"颜色"),Ue(", "),de("strong",null,"尺码")])])],-1)),de("div",rJ,[P[22]||(P[22]=de("p",null,[de("strong",null,"示例:")],-1)),de("div",nJ,[de("ul",aJ,[(Oe(!0),st(Zt,null,Hr(c.value.properties,Y=>(Oe(),st("li",{key:Y.name},[de("strong",null,ht(Y.name),1),Ue(": "+ht(Y.value),1)]))),128))])]),z(L,{class:"mt-4"},{default:q(()=>[z(F,{label:"输入模板:",error:c.value.error},{default:q(()=>[de("div",iJ,[z(R,{modelValue:c.value.input,"onUpdate:modelValue":P[6]||(P[6]=Y=>c.value.input=Y),placeholder:"请输入模板",style:{width:"320px"},"validate-event":!1},null,8,["modelValue"]),z(B,{onClick:P[7]||(P[7]=()=>{c.value.input=q3})},{default:q(()=>[...P[21]||(P[21]=[Ue("重置",-1)])]),_:1}),z(B,{icon:St(vx),onClick:P[8]||(P[8]=Y=>h()),style:{"margin-left":"0"}},null,8,["icon"])])]),_:1},8,["error"]),z(F,{label:"预览结果:"},{default:q(()=>[de("strong",null,ht(c.value.output),1)]),_:1})]),_:1})])]),_:1})])]),default:q(()=>[de("div",sJ,[z(R,{placeholder:"空值代表取消填写","value-on-clear":null,modelValue:n.value,"onUpdate:modelValue":P[9]||(P[9]=Y=>n.value=Y),controls:!1,precision:0,clearable:"",style:{width:"420px"}},null,8,["modelValue"]),z(B,{type:"primary",onClick:P[10]||(P[10]=Y=>C())},{default:q(()=>[Ue("批量填写 SKU 货号(前选中 "+ht(p.value.length)+" 个 SKU)",1)]),_:1})])]),_:1})]),_:1},8,["model"]),z(G,{data:St(r).pageList,class:"w-full","max-height":"calc(100vh - 220px)"},{empty:q(()=>[z(V,{description:"暂无数据"})]),default:q(()=>[z(Q,{width:"100"},{header:q(()=>[de("div",oJ,[de("div",lJ,[z(W,{indeterminate:St(r).indeterminateAll,modelValue:St(r).selectedAll,"onUpdate:modelValue":P[11]||(P[11]=Y=>St(r).selectedAll=Y)},null,8,["indeterminate","modelValue"]),P[25]||(P[25]=de("div",null,"全部",-1))]),de("div",uJ,[z(W,{indeterminate:St(r).indeterminatePage,modelValue:St(r).selectedAllPage,"onUpdate:modelValue":P[12]||(P[12]=Y=>St(r).selectedAllPage=Y)},null,8,["indeterminate","modelValue"]),P[26]||(P[26]=de("div",null,"当前页",-1))])])]),default:q(({row:Y})=>[z(W,{modelValue:Y.selected,"onUpdate:modelValue":K=>Y.selected=K},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),z(Q,{label:"商品信息",width:"320px"},{default:q(({row:Y})=>[de("div",cJ,[de("div",null,[z(le,{style:{width:"60px",height:"60px"},src:Y.image},null,8,["src"])]),de("div",null,[de("div",null,[de("span",fJ,ht(Y.title),1)]),(Oe(!0),st(Zt,null,Hr(Y.properties,(K,oe)=>(Oe(),st("div",{key:oe},[de("span",dJ,ht(oe)+":",1),de("span",hJ,ht(K),1)]))),128))])])]),_:1}),z(Q,{label:"SKC",width:"560px"},{default:q(({row:Y})=>[z(F,null,{default:q(()=>[de("div",AJ,[de("div",pJ,[de("div",mJ,"SKC: "+ht(Y.productSkcId),1),de("div",gJ,"货号: "+ht(Y.extCode),1)]),z(F,{label:"填写SKC货号",error:Y.templateError,"inline-message":""},{default:q(()=>[z(R,{clearable:"","validate-event":!1,placeholder:"不填写则不提交修改",style:{width:"100%"},onClear:K=>Y.editExtCode=null,modelValue:Y.editExtCode,"onUpdate:modelValue":K=>Y.editExtCode=K,onChange:K=>Y.templateError=null},null,8,["onClear","modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["error"])])]),_:2},1024)]),_:1}),z(Q,{label:"SKU",width:"560px"},{default:q(({row:Y})=>[de("div",vJ,[(Oe(!0),st(Zt,null,Hr(Y.skuItems,K=>(Oe(),Et(F,{key:K.productSkuId},{default:q(()=>[de("div",yJ,[de("div",bJ,[de("div",wJ,"SKU: "+ht(K.productSkuId),1),de("div",_J,"当前货号: "+ht(K.extCode||""),1),(Oe(!0),st(Zt,null,Hr(K.productSkuSpecList,oe=>(Oe(),st("div",{class:"w-full truncate",key:oe.specId},ht(oe.parentSpecName)+": "+ht(oe.specName),1))),128))]),z(F,{label:"填写SKU货号",error:K.templateError},{default:q(()=>[z(R,{clearable:"","validate-event":!1,placeholder:"不填写则不提交修改",style:{width:"100%"},onClear:oe=>K.editExtCode=null,modelValue:K.editExtCode,"onUpdate:modelValue":oe=>K.editExtCode=oe,onChange:oe=>K.templateError=null},null,8,["onClear","modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["error"])])]),_:2},1024))),128))])]),_:1}),z(Q,{label:"提交结果"},{default:q(({row:Y})=>{var K;return[Y.submitResult?(Oe(),st(Zt,{key:0},[Y.submitResult.status==="waiting"?(Oe(),st("div",xJ,[z(N,{class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1})])):Y.submitResult.status==="success"?(Oe(),st("div",CJ,"成功")):Y.submitResult.status==="failed"?(Oe(),st("div",SJ,ht((K=Y.submitResult)==null?void 0:K.errorMsg),1)):Y.submitResult.status==="aborted"?(Oe(),st("div",kJ,"取消修改")):tr("",!0)],64)):(Oe(),st("span",TJ,"-"))]}),_:1})]),_:1},8,["data"]),z(fe,{class:"mt-4","current-page":St(r).page,"onUpdate:currentPage":P[13]||(P[13]=Y=>St(r).page=Y),"page-sizes":[5,10,20,50,100,200,500],"page-size":St(r).pageSize,"onUpdate:pageSize":P[14]||(P[14]=Y=>St(r).pageSize=Y),layout:"total, sizes, prev, pager, next, jumper",total:St(r).filterList.length},null,8,["current-page","page-size","total"]),0<f.value&&f.value<100?(Oe(),Et(ie,{key:0,class:"mt-4",percentage:f.value,format:Y=>Y.toFixed(1)+"%"},null,8,["percentage","format"])):tr("",!0),de("div",EJ,[z(B,{onClick:Y=>he(),disabled:o.value},{default:q(()=>[...P[27]||(P[27]=[Ue("取 消",-1)])]),_:1},8,["onClick","disabled"]),z(B,{type:o.value?"danger":"primary",onClick:P[15]||(P[15]=Y=>S())},{default:q(()=>[o.value?(Oe(),st("div",IJ,[z(N,{class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1}),P[28]||(P[28]=de("div",null,"暂停",-1))])):(Oe(),st("div",BJ,"提交所有已填写的 "+ht(m.value.length)+" 个商品",1))]),_:1},8,["type"])])]),_:1})}}}),MJ={key:0,class:"flex flex-wrap gap-2"},DJ={__name:"ProductListPlugins",setup(a){const s=ls(),r=we(),i=we(),n=we();let t=null,c=null;function u(p,_){const y=document.createElement("span"),h=document.createElement("div");h.className="button-content";const d=document.createElement("div");d.className="line-text",d.innerText=p;const A=document.createElement("div");return A.className="line-text",A.innerText=_,h.appendChild(d),h.appendChild(A),y.appendChild(h),y}const f=async p=>{const _=await b6({pageSize:1,page:1,productSkcIds:null,productIds:[+p],mallId:Di()});let y=_.result.pageItems[0].productSkcId,h=_.result.pageItems[0].productSkuSummaries.map(d=>d.productSkuId);return{spu:+p,skc:+y,skus:h.map(d=>+d)}};function o(){t&&clearInterval(t);let p=window.location.pathname;t=setInterval(async()=>{if(window.location.pathname!==p){clearInterval(t);return}const y=document.querySelectorAll('#root tbody tr td:last-child[class*="TB_rightSticky"]');for(let h=0;h<y.length;h++){const d=y[h];if(!d.querySelector(".lingfeng-custom-buttons")&&!d.dataset.lingfengAdded){d.dataset.lingfengAdded="true";let A=null;try{const{spu:k}=await DN(d);A={spu:k}}catch(k){console.error("获取商品信息失败:",k)}const v=document.createElement("div");v.className="lingfeng-custom-buttons",d.appendChild(v);const w=document.createElement("button");w.className="lf-button lf-button--primary custom-button",w.appendChild(u("【凌风工具箱】","更新sku预览图"));const x=document.createElement("button");x.className="lf-button lf-button--primary custom-button",x.appendChild(u("【凌风工具箱】","复制产品"));const C=document.createElement("button");C.className="lf-button lf-button--primary custom-button",C.appendChild(u("【凌风工具箱】","更新详情图文")),x.onclick=async()=>{if(await g.init())if(A){const T=await f(A.spu);r.value.openDialog(T)}else ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服")},w.onclick=async()=>{if(await g.init())if(A){const T=await f(A.spu);i.value.openDialog([T],!0)}else ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服")},C.onclick=async()=>{if(await g.init())if(A){const T=await f(A.spu);n.value.openDialog([T],!0)}else ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服")},v.appendChild(w),v.appendChild(document.createElement("div")),v.appendChild(x),v.appendChild(document.createElement("div")),v.appendChild(C)}}},1e3)}const l=()=>{c&&clearInterval(c);const p=window.location.pathname;c=setInterval(()=>{var d,A;p!==window.location.pathname&&clearInterval(c);const _=[(d=document.querySelector('div[class*="TAB_cardLabel"][class*="TAB_active"]'))==null?void 0:d.innerText,(A=Array.from(document.querySelectorAll('div[class*="TAB_lineLabel"][class*="TAB_active"]')).filter(v=>v.innerText.includes("待填写"))[0])==null?void 0:A.innerText],y=document.querySelector('form div[class*="index-module__table-with-filter"] div[class*="index-module__divider-wrapper"]'),h=_.filter(v=>v)[0];if(h&&h.includes("待填写")&&!(y!=null&&y.querySelector(".lingfeng-custom-RetailPrice-buttons"))){const v=document.createElement("div");v.className="lingfeng-custom-RetailPrice-buttons",y.appendChild(v),ks(v,QK)}else(!h||h&&!h.includes("待填写"))&&y!=null&&y.querySelector(".lingfeng-custom-RetailPrice-buttons")&&(y==null||y.querySelector(".lingfeng-custom-RetailPrice-buttons").remove())},1e3)},g=Kn(),{mall:m}=Au(g);return oa(async()=>{await g.initMall(),o(),l(),s.getInfo()}),(p,_)=>(Oe(),st(Zt,null,[St(m)?(Oe(),st("div",MJ,[St(m).isSemiManagedMall?tr("",!0):(Oe(),Et(b$,{key:0,"export-type":12})),z(R0,{"export-type":St(m).isSemiManagedMall?14:15},null,8,["export-type"]),z(kj),z(bH),z(SH),z(H$),z(s$),z($$),z(tK),St(s).hasPermission("batchSignPODAgreement")?(Oe(),st(Zt,{key:1},[St(m).isSemiManagedMall?tr("",!0):(Oe(),Et(aK,{key:0})),z(bK)],64)):tr("",!0),z(No,null,{default:q(()=>[z(zY)]),_:1}),z(No,null,{default:q(()=>[z(uX)]),_:1}),z(No,null,{default:q(()=>[z(FJ)]),_:1}),z(No,null,{default:q(()=>[z(kX)]),_:1}),z(No,null,{default:q(()=>[z(GZ)]),_:1}),z(No,null,{default:q(()=>[z(AX,{"suggest-price-status":1})]),_:1}),z(No,null,{default:q(()=>[z(yX)]),_:1}),z(No,null,{default:q(()=>[z(Nk,{type:"goods"})]),_:1}),z(LZ)])):tr("",!0),z(_H,{ref_key:"singleCopyProductToTplRef",ref:r},null,512),z(_6,{ref_key:"singleUpdateSkuPreviewImageRef",ref:i},null,512),z(kk,{ref_key:"decorationImageUploaderRef",ref:n},null,512)],64))}},OJ={key:0,class:"result-message"},LJ={__name:"BatchDraftGrounding",setup(a){const s=we(!1),r=we([]),i=we(""),n=we(null),t=we(!1),c=we(!1),u=we(!1),f=we(""),o=Kn(),l=()=>{f.value="";const p={mallId:o.id,uuid:i.value,draftIdList:r.value.map(_=>parseInt(_))};if(r.value.length===0){f.value="请刷新页面重新选择需要上架的商品";return}c.value=!0,n.value.start(()=>kf({uuid:i.value})).then(_=>{_===1&&(r.value=[])}).catch(_=>{ut({message:`读取进度失败: ${_}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{c.value=!1}),t.value=!0,lT(p).then(_=>{var y,h;if(n.value.stop(),_.status!==0)ut({message:`上架草稿失败: ${_.error}`,type:"error",duration:1e4,zIndex:999999999});else{r.value=[];let d="";if(d+=`<p>上架草稿成功<strong>${+(_==null?void 0:_.successCnt)}个</strong>, 失败:<strong>${+(_==null?void 0:_.failCnt)}个</strong></p>`,(y=_==null?void 0:_.failDraftIdList)!=null&&y.length&&(d+=`<p>失败的 SPU ID: ${_.failDraftIdList.join(", ")}</p>`,(h=_.createErrorList)!=null&&h.length))for(const A of _.createErrorList)d+=`<p>草稿 ID: ${A.draftId} 失败原因: ${A.errorInfo}</p>`;ha({title:"提示",dangerouslyUseHTMLString:!0,message:d,type:_.failCnt!==0?"warning":"success",duration:_.failCnt!==0?0:5e3}),s.value=!1}}).catch(_=>{ut({message:`上架草稿失败: ${_}`,type:"error",duration:1e4,zIndex:999999999}),n.value.stop()}).finally(()=>{t.value=!1})},g=async()=>{u.value=!0;const p=await o.init();u.value=!1,p&&(r.value=[],f.value="",m()&&(s.value=!0,await il(),n.value.reset(),i.value=o.id+new Date().getTime().toString()))},m=()=>{const p=document.querySelectorAll("tbody > tr > td"),_=[];for(const y of p){if(!Array.from(y.classList).some(d=>d.indexOf("TB_leftSticky_")>=0))continue;y.querySelector('label[data-checked="true"]')&&_.push(y)}if(!_||_.length===0)return ut.error("请选择商品"),!1;r.value=[];for(let y=0;y<_.length;y++){const h=_[y];try{const A=h.parentElement.children[1].querySelector("span").textContent;r.value.push(A)}catch(d){return ut.error(`获取商品信息失败: ${d}`),!1}}return!0};return(p,_)=>{const y=Ce("el-button"),h=Ce("el-dialog");return Oe(),st(Zt,null,[z(y,{class:"custom-button",type:"primary",onClick:g,loading:u.value},{default:q(()=>[..._[1]||(_[1]=[Ue(" 【凌风跨境工具箱】草稿箱一键上架 ",-1)])]),_:1},8,["loading"]),z(h,{"align-center":"",class:"warp-float",modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=d=>s.value=d),width:"800px","z-index":9947483647},{header:q(()=>[..._[2]||(_[2]=[de("p",null,"【凌风跨境工具箱】草稿箱一键上架",-1)])]),footer:q(()=>[z(y,{class:"custom-button",type:"primary",onClick:l,loading:t.value,disabled:c.value||t.value},{default:q(()=>[..._[3]||(_[3]=[Ue("开始上架",-1)])]),_:1},8,["loading","disabled"]),z(Qc,{ref_key:"progressTickerRef",ref:n,"success-text":"上架成功",style:{"margin-top":"10px"}},null,512)]),default:q(()=>[f.value?(Oe(),st("div",OJ,ht(f.value),1)):tr("",!0)]),_:1},8,["modelValue"])],64)}}},PJ=cn(LJ,[["__scopeId","data-v-6acfbc3b"]]);function RJ(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,a=>(a^crypto.getRandomValues(new Uint8Array(1))[0]&15>>a/4).toString(16))}const Ry={__name:"Checkboxes",props:{modelValue:{type:Array,default:()=>[]},mainCheckboxContainerGetter:{type:Function,default:()=>null},subCheckboxContainersGetter:{type:Function,default:()=>null},spuGetter:{type:Function,default:()=>null},insertMainDiv:{type:Function,default:()=>(a,s)=>{s.insertBefore(a,s.childNodes[0])}},insertSubDiv:{type:Function,default:()=>(a,s)=>{s.insertBefore(a,s.childNodes[0])}}},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=s,n=we("");oa(()=>{n.value=window.location.href});const t=we([]),c=Pr({get:()=>r.modelValue,set:d=>i("update:modelValue",d)}),u=Pr(()=>c.value.length>0&&c.value.length===t.value.length),f=Pr(()=>c.value.length>0&&c.value.length<t.value.length),o=d=>{c.value=d?t.value:[]},l=d=>c.value.find(A=>A.spuId===d.spuId)!==void 0,g=(d,A)=>{A?c.value=[...c.value,d]:c.value=c.value.filter(v=>v.spuId!==d.spuId)},m=()=>{if(!document.querySelector(".lingfeng-table-main-checkbox")){const A=r.mainCheckboxContainerGetter();if(!A)return;const v=document.createElement("div");v.classList.add("lingfeng-table-main-checkbox"),r.insertMainDiv(v,A),ks(v,{setup(){return{isMainCheckboxChecked:u,isMainCheckboxIndeterminate:f,setMainCheckboxCheck:o}},render(){return Zn(mx,{modelValue:u.value,indeterminate:f.value,onChange:w=>{o(w)}})}})}},p=d=>{const A=r.spuGetter(d);if(!A)return!1;t.value.push(A);const v=document.createElement("div");return v.classList.add("lingfeng-table-sub-checkbox"),v.setAttribute("spu",A.spuId),r.insertSubDiv(v,d),ks(v,{setup(){return{isSubCheckboxChecked:l,setSubCheckboxCheck:g}},render(){return Zn(mx,{modelValue:l(A),onChange:w=>{g(A,w)}})}}),!0},_=()=>{const d=r.subCheckboxContainersGetter();if(!d||d.length===0){t.value=[];return}let A=!1;const v=[];for(const w of d){const x=w.querySelector(".lingfeng-table-sub-checkbox");x?(A||r.spuGetter(w).spuId!==x.getAttribute("spu")&&(A=!0),v.push(x)):A=!0}if(v.length!==t.value.length&&(A=!0),A){for(const w of v)w.remove();t.value=[],c.value=[];for(const w of d)if(!p(w)){ut.error("初始化 SPU 失败, 可能是TEMU页面更新导致的, 请联系开发人员"),y&&clearInterval(y);break}}};let y=null;const h=()=>{y&&clearInterval(y),y=setInterval(()=>{if(n.value&&n.value!==window.location.href){clearInterval(y);return}m(),_()},1e3)};return oa(()=>{h()}),(d,A)=>null}},UJ=xi({__name:"Checkboxes",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get:()=>r.modelValue,set:g=>i("update:modelValue",g)});function t(g,m){return g.startsWith(m)?g.substring(m.length):g}const c=()=>document.querySelector("div#root div.rocket-table-wrapper"),u=()=>{const g=[],m=document.querySelectorAll("#root tbody tr td:first-child img");if((m==null?void 0:m.length)>0)for(const p of m){const _=p.closest("td");g.push(_)}return g},f=g=>{var w;const m=g.querySelectorAll("span"),p=Array.from(m).find(x=>x.textContent.includes("SPU："));if(!p)return console.error("SPU span 不存在",g),null;const _=p.parentElement;if(!_)return console.error("SPU div 不存在",g),null;const y=_.textContent,h=t(y,"SPU："),d=_.parentElement.firstChild,A=d==null?void 0:d.textContent,v=(w=g.querySelector("img"))==null?void 0:w.src;return h&&A&&v?{spuId:h,spuName:A,spuImg:v}:(console.error("SPU 查询失败",{spuId:h,spuName:A,spuImg:v}),null)},o=(g,m)=>{g.style.display="inline-block",g.style.marginLeft="16px",g.style.marginRight="16px",m.insertBefore(g,m.childNodes[0])},l=(g,m)=>{g.style.margin="auto 10px",m.firstChild.insertBefore(g,m.firstChild.childNodes[0])};return(g,m)=>(Oe(),Et(Ry,{modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),mainCheckboxContainerGetter:c,subCheckboxContainersGetter:u,spuGetter:f,insertMainDiv:o,insertSubDiv:l},null,8,["modelValue"]))}}),Fm=we(null),NJ={style:{width:"100%",display:"flex","align-items":"center","justify-content":"flex-end",gap:"20px"}},jJ={__name:"SaveTplButton",setup(a){const s=we(!1),r=we(!1),i=we(!1),n=we(),t=we({templateName:""}),c=Kn(),u=async()=>{r.value=!0;const l=await c.init();r.value=!1,l&&(s.value=!0)},f=l=>{var g,m;if(l.data.type==="/ms/bg-flux-ms/compliance_property/edit_compliance"){const{response:p,params:_}=l.data;if(p.success){const y=_.template_edit_request_list;for(const h of y)if(h.task_type===166){if(!((m=(g=Fm.value)==null?void 0:g.result)!=null&&m.sku_info_list)){console.error(Fm.value),ut.error({message:"【凌风跨境工具箱】未获取到规格信息!",offset:180});return}console.log(Fm.value),console.log(Fm.value.result),h.sku_info_list=Fm.value.result.sku_info_list}CK({name:t.value.templateName,content:y}).then(({status:h,error:d,errorMsg:A})=>{h===0?ut.success({message:"保存模板成功",offset:80}):ut.error({message:`保存模板失败: ${d||A}`,offset:80})}).catch(h=>{ut.error({message:`保存模板失败: ${h.message}`,offset:80}),console.error(h)}).finally(()=>{i.value=!1,s.value=!1})}else i.value=!1,s.value=!1}};Ra(s,l=>{l?window.addEventListener("message",f):window.removeEventListener("message",f)});const o=()=>{var p;const l=(p=n.value)==null?void 0:p.parentElement,g=l?l.parentElement:null,m=g?g.childNodes[0]:null;if(!m){ut.error("未找到页面提交按钮, 可能是 Temu 版本更新导致的, 请联系客服");return}i.value=!0,m.click()};return(l,g)=>{const m=Ce("el-button"),p=Ce("el-input"),_=Ce("el-form-item"),y=Ce("el-form"),h=Ce("el-dialog");return Oe(),st("div",{ref_key:"containerRef",ref:n},[z(m,{type:"primary",onClick:u,loading:r.value||i.value},{default:q(()=>[...g[3]||(g[3]=[de("span",null,"【凌风跨境工具箱】保存为合规信息模板",-1)])]),_:1},8,["loading"]),z(h,{class:"warp-float",modelValue:s.value,"onUpdate:modelValue":g[2]||(g[2]=d=>s.value=d),width:"80%","append-to-body":"","destroy-on-close":""},{header:q(()=>[...g[4]||(g[4]=[de("div",{style:{width:"100%"}},[de("h1",null,"【凌风跨境工具箱】合规信息模板")],-1)])]),footer:q(()=>[de("div",NJ,[z(m,{onClick:g[1]||(g[1]=d=>s.value=!1),disabled:i.value},{default:q(()=>[...g[5]||(g[5]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(m,{type:"primary",onClick:o,loading:i.value},{default:q(()=>[...g[6]||(g[6]=[Ue("提交修改并保存为模板",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(y,null,{default:q(()=>[z(_,{label:"模板名称"},{default:q(()=>[z(p,{modelValue:t.value.templateName,"onUpdate:modelValue":g[0]||(g[0]=d=>t.value.templateName=d),placeholder:"请输入模板名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],512)}}},HJ={style:{color:"#000"}},QJ={style:{"margin-top":"10px"}},zJ={key:0,style:{"margin-top":"20px"}},VJ={key:0,class:"filterCriteria"},WJ={key:1,class:"filterCriteria"},GJ={key:1,style:{"margin-top":"20px"}},$J={class:"footer_box"},KJ={__name:"BatchUploadButton",setup(a){const s=we(!1),r=we(!1),i=we(),n=we([]),t=we([]),c=we(!1),u=we(!1),f=we(null),o=we(),l=we("1"),g=we(null),m=we({page:1,pageSize:10,total:0}),p=oe=>{m.value.pageSize=oe,y()},_=oe=>{m.value.page=oe,y()},y=()=>{const{page:oe,pageSize:pe}=m.value;c.value=!0,wK({page_id:oe,page_size:pe}).then(({status:ve,error:ge,errorMsg:ue,data:Te,total:Ee})=>{if(ve===0){if(Te&&Te.length)for(let ye=0;ye<Te.length;ye++)Te[ye].checked=!1;t.value=Te,m.value.total=Ee}else ut.error(`获取模板列表失败: ${ge||ue}`)}).catch(ve=>{ut.error(`获取模板列表失败: ${ve.message}`),console.error(ve)}).finally(()=>{c.value=!1})},h=oe=>{f.value&&f.value.id!==oe.id&&(f.value.checked=!1),f.value=oe.checked?oe:null},d=Kn(),A=we(!1),v=we(!1),w=document.querySelector("button.rocket-btn.rocket-dropdown-trigger.rocket-btn-sm"),x=({status:oe,error:pe,errorMsg:ve,successCnt:ge,failCnt:ue,failSpuErrorList:Te},Ee=!1)=>{if(oe!==0){ut.error(`更新合规信息失败: ${pe||ve}`);return}let ye=`<p class="notify-success-text">更新合规信息成功了<strong>${ge??0}个</strong></p>`;ue>0&&(ye+=`<p class="notify-error-text">失败了<strong>${ue??0}个</strong></p>`),Te!=null&&Te.length&&(ye+="失败的商品如下：",Te.forEach(Fe=>{ye+=`<p><strong>SPU: </strong>${Fe.spuId} <strong>失败原因: </strong><span class="notify-error-text">${Fe.Error}</span></p>`}));const Se=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:ye})});ha({title:"提示",dangerouslyUseHTMLString:!1,message:Se,type:ue!==0?"error":"success",duration:ue!==0?432e5:4e3,customClass:"CustomNotifications"}),s.value=!1,Ee&&Pn.confirm("商品识别码采用的是temu的表格上传方式，软件已经为您将商品识别码上传到temu商家后台，还需要等待商家后台最终上传完毕才会生效，现在是否需要前往查看商品识别码上传进度？","提示",{confirmButtonText:"立即前往",cancelButtonText:"取消",type:"warning"}).then(()=>{setTimeout(()=>{if(w){w.dispatchEvent(new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0}));const Fe=new MutationObserver(()=>{let Ve=document.querySelectorAll("ul");for(let ke of Ve){const Pe=ke.querySelectorAll("li");for(let Re of Pe)if(Re.textContent==="查看上传记录"){Re.click(),Fe.disconnect();return}}});Fe.observe(document.body,{childList:!0,subtree:!0})}},0)}).catch(()=>{})},C=()=>{var ve;if(!f.value){ut.error("请先选择模板");return}const oe=RJ();o.value.start(oe);let pe={mallId:d.id,complianceTemplateId:f.value.id,uuid:oe,skcFillIdentifyCode:A.value,useSpecMatchToFillPackageMaterial:v.value};if(u.value=!0,l.value==="1")pe.spuIdList=n.value.map(ge=>+ge.spuId),H3(pe).then(ge=>x(ge,!1)).catch(ge=>{ut.error(`更新合规信息失败: ${ge.message}`),console.error(ge)}).finally(()=>{var ge;u.value=!1,(ge=o.value)==null||ge.stop()});else if(l.value==="2")pe.filter={taskStatusList:I.value.productStatus.length?I.value.productStatus.map(Number):null,taskTypeList:(ve=I.value)!=null&&ve.InformationTyp?[I.value.InformationTyp]:null,quantityLimit:g.value||null,catIds:I.value.productCategory.length?I.value.productCategory.map(ge=>ge[ge.length-1]):null,onSale:I.value.isOnSale==="1"?!0:I.value.isOnSale==="2"?!1:null},_K(pe).then(ge=>x(ge,!0)).catch(ge=>{ut.error(`更新合规信息失败: ${ge.message}`),console.error(ge)}).finally(()=>{var ge;u.value=!1,(ge=o.value)==null||ge.stop()});else if(l.value==="3"){pe.isFilter=!0;const{rapid_screen_type_list:ge,spu_id_list:ue,task_status_list:Te,task_type_list:Ee,cat_ids:ye,on_sale:Se}=P.value;pe.filter={taskStatusList:Te,spuIdList:ue,taskTypeList:Ee,rapidScreenTypeList:ge,quantityLimit:g.value||null,catIds:ye,onSale:Se===!0?!0:Se===!1?!1:void 0},H3(pe).then(Fe=>x(Fe,!1)).catch(Fe=>{ut.error(`更新合规信息失败: ${Fe.message}`),console.error(Fe)}).finally(()=>{var Fe;u.value=!1,(Fe=o.value)==null||Fe.stop()})}},k=(oe,pe)=>{pe.stopPropagation(),Pn.confirm(`确定要删除模板'${oe.name}'吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{xK({t_ids:[oe.id]}).then(({status:ve,error:ge,errorMsg:ue})=>{ve===0?(ut.success("删除模板成功"),y()):ut.error(`删除模板失败: ${ge||ue}`)}).catch(ve=>{ut.error(`删除模板失败: ${ve.message}`),console.error(ve)})}).catch(()=>{})},T=()=>{document.querySelectorAll("button.rocket-btn.rocket-btn-primary").forEach(oe=>{oe.textContent==="查 询"&&oe.click()})},S=async oe=>{r.value=!0;let pe=await d.init();if(pe&&(pe=await oe()),r.value=!1,!!pe){if(!n.value.length){ut.error("请先选择商品");return}y(),f.value=null,A.value=!1,s.value=!0}},M=async()=>{l.value="1",g.value=null,await U(),await W(),await G()},P=we({rapid_screen_type_list:[],spu_id:"",task_status_list:[],task_type_list:[],on_sale:void 0,cat_ids:[]}),N=we([]),B=we([]),O=we(!1);window.compliancePropertyPageQuery&&window.removeEventListener("message",window.compliancePropertyPageQuery),window.compliancePropertyPageQuery=oe=>{oe.data.type==="/ms/bg-flux-ms/compliance_property/page_query"&&(O.value=!0,P.value=oe.data.params,n.value=[],setTimeout(()=>{const pe=document.querySelector(".rocket-form-field-item-control-input .rocket-select.rocket-cascader");if(pe){const ve=pe.querySelectorAll(".rocket-select-selection-item-content"),ge=Array.from(ve).map(ue=>ue.textContent);N.value=ge,B.value=ge.map(ue=>({value:ue,label:ue}))}},500))},oa(()=>{if(window.location.pathname!=="/govern/information-supplementation"){O.value=!1;return}window.removeEventListener("message",window.compliancePropertyPageQuery),window.addEventListener("message",window.compliancePropertyPageQuery),il(()=>{T()})});const I=we({InformationTyp:"",productCategory:[],productStatus:[],isOnSale:null}),F=[{value:"1",label:"是"},{value:"2",label:"否"}],L=[{value:2,label:"待上传"},{value:3,label:"上传成功"},{value:5,label:"待确认"},{value:10,label:"上传中"},{value:11,label:"上传失败"}],R=we([]),U=async()=>{var pe;const oe=await V3({query_type:2,Mallid:d.id});R.value=(pe=oe.result)==null?void 0:pe.wait_task_list},V=we({rapid_screen_list:[],wait_task_list:[]}),W=async()=>{var pe,ve;const oe=await V3({query_type:void 0,Mallid:d.id});V.value.wait_task_list=(pe=oe.result)==null?void 0:pe.wait_task_list,V.value.rapid_screen_list=(ve=oe.result)==null?void 0:ve.rapid_screen_list},Q=we(!1),le=we([]),G=async()=>{var pe;const oe=await W3({parentCatId:0,Mallid:d.id});le.value=(pe=oe.result)==null?void 0:pe.categoryNodeVOS},fe=we({value:"catId",leaf:"isLeaf",label:"catName",lazy:!0,multiple:!0,lazyLoad:(oe,pe)=>{let ve=0;(oe==null?void 0:oe.level)>0&&(ve=oe.data.catId),W3({parentCatId:ve,Mallid:d.id}).then(({success:ge,result:ue,errorMsg:Te})=>{if(!ge){ut.error(`加载类目失败: ${Te}`);return}const Ee=(ue==null?void 0:ue.categoryNodeVOS)||[];pe(Ee)}).catch(ge=>{console.log("加载类目失败",ge)})}}),ie=()=>{window.open("https://www.kuajingabc.com/#/manual/58","_blank")},he=()=>{window.msBgFluxMsCompliancePropertyQueryDetail&&window.removeEventListener("message",window.msBgFluxMsCompliancePropertyQueryDetail),window.msBgFluxMsCompliancePropertyQueryDetail=oe=>{oe.data.type==="/ms/bg-flux-ms/compliance_property/query_detail"&&(Fm.value=oe.data.response)},window.addEventListener("message",window.msBgFluxMsCompliancePropertyQueryDetail)};oa(()=>{he(),K()});let Y=null;const K=()=>{Y&&clearInterval(Y);const oe=window.location.pathname;Y=setInterval(()=>{if(oe!==window.location.pathname&&clearInterval(Y),document.querySelector(".compliance-info-save-button"))return;const pe=document.querySelector(".rocket-drawer-title");if((pe==null?void 0:pe.textContent)!=="编辑合规信息")return;const ve=document.querySelector(".rocket-drawer-footer");if(!ve){ut.error("【凌风跨境工具箱】插件异常, 可能是 TEMU 更新了页面"),console.error("无法注入合规信息保存按钮, 找不到按钮容器");return}ve.style.display="flex",ve.style.alignItems="center";const ge=document.createElement("div");ge.className="compliance-info-save-button",ge.style.marginLeft="10px",ve.appendChild(ge),ks(ge,jJ)},1e3)};return(oe,pe)=>{const ve=Ce("el-button"),ge=Ce("el-tooltip"),ue=Ce("el-alert"),Te=Ce("el-checkbox"),Ee=Ce("el-table-column"),ye=Ce("el-icon"),Se=Ce("el-table"),Fe=Ce("el-pagination"),Ve=Ce("el-radio"),ke=Ce("el-radio-group"),Pe=Ce("el-option"),Re=Ce("el-select"),Ye=Ce("el-form-item"),Ke=Ce("el-col"),ot=Ce("el-cascader"),nt=Ce("el-row"),mt=Ce("el-form"),Ut=Ce("el-input"),Ot=Ce("el-input-number"),wt=Ce("el-dialog"),Kt=Ai("loading");return Oe(),st("div",null,[z(UJ,{modelValue:n.value,"onUpdate:modelValue":pe[0]||(pe[0]=_t=>n.value=_t)},null,8,["modelValue"]),z($0,null,{default:q(({checkAuth:_t})=>[z(ve,{class:"custom-button",type:"primary",onClick:Jt=>S(_t),loading:r.value||!O.value},{default:q(()=>[...pe[16]||(pe[16]=[Ue(" 【凌风跨境工具箱】批量上传合规信息 ",-1)])]),_:1},8,["onClick","loading"])]),_:1}),z(wt,{onOpen:M,class:"warp-float",modelValue:s.value,"onUpdate:modelValue":pe[15]||(pe[15]=_t=>s.value=_t),width:"80%","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[de("div",{style:{display:"flex","align-items":"center"}},[pe[17]||(pe[17]=de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量上传合规信息",-1)),de("div",{class:"DescriptionTips",onClick:ie},"查看功能说明")])]),footer:q(()=>[de("div",$J,[z(mt,{inline:"",disabled:u.value},{default:q(()=>[z(Ye,null,{default:q(()=>[z(Te,{modelValue:A.value,"onUpdate:modelValue":pe[12]||(pe[12]=_t=>A.value=_t),label:"以SKU ID作为商品识别码"},null,8,["modelValue"])]),_:1}),z(Ye,null,{default:q(()=>[z(Te,{modelValue:v.value,"onUpdate:modelValue":pe[13]||(pe[13]=_t=>v.value=_t),label:"是否使用规格匹配填充包装材质"},null,8,["modelValue"])]),_:1})]),_:1},8,["disabled"]),de("div",null,[z(ve,{disabled:u.value,onClick:pe[14]||(pe[14]=_t=>s.value=!1)},{default:q(()=>[...pe[27]||(pe[27]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(ve,{class:"custom-button",type:"primary",onClick:C,loading:u.value},{default:q(()=>[...pe[28]||(pe[28]=[Ue(" 开始更新合规信息 ",-1)])]),_:1},8,["loading"])])]),z(jc,{ref_key:"progressTickerRef",ref:o,"success-text":"更新完成","stroke-width":18},null,512)]),default:q(()=>[z(ue,{style:{width:"100%","margin-top":"10px"},type:"info",closable:!1},{title:q(()=>[de("div",null,[z(ge,{placement:"right-start","raw-content":"",effect:"light"},{content:q(()=>[pe[18]||(pe[18]=de("p",null,"SPU:",-1)),de("span",null,ht(n.value.map(_t=>_t.spuId).join("、")),1)]),default:q(()=>[de("span",null,[pe[19]||(pe[19]=Ue("当前选中",-1)),de("strong",null,ht(n.value.length)+"个",1),pe[20]||(pe[20]=Ue("商品",-1))])]),_:1})])]),_:1}),na((Oe(),Et(Se,{data:t.value,style:{width:"100%"},"highlight-current-row":"",ref_key:"tableRef",ref:i,"row-class-name":"radio-row"},{default:q(()=>[z(Ee,{label:"选择模板",width:"120"},{default:q(({row:_t})=>[z(Te,{modelValue:_t.checked,"onUpdate:modelValue":Jt=>_t.checked=Jt,onChange:Jt=>h(_t),disabled:u.value},null,8,["modelValue","onUpdate:modelValue","onChange","disabled"])]),_:1}),z(Ee,{prop:"name",label:"模板名称",width:"180"}),z(Ee,{prop:"add_date",label:"添加时间"}),z(Ee,{prop:"pub_date",label:"更新时间"}),z(Ee,{label:"操作"},{default:q(({row:_t})=>[z(ve,{disabled:u.value,type:"text",onClick:Jt=>k(_t,Jt)},{default:q(()=>[z(ye,null,{default:q(()=>[z(St(qh))]),_:1})]),_:1},8,["disabled","onClick"])]),_:1})]),_:1},8,["data"])),[[Kt,c.value]]),z(Fe,{style:{"margin-top":"20px",display:"flex","justify-content":"flex-end"},onSizeChange:p,onCurrentChange:_,"current-page":m.value.page,"page-sizes":[10,20,30,40],"page-size":m.value.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:m.value.total,size:"small",disabled:u.value},null,8,["current-page","page-size","total","disabled"]),de("div",HJ,[pe[26]||(pe[26]=de("div",{style:{"font-weight":"bold","font-size":"larger"}},"上传哪些商品？",-1)),de("div",QJ,[z(ke,{modelValue:l.value,"onUpdate:modelValue":pe[1]||(pe[1]=_t=>l.value=_t),disabled:u.value,class:"vertical-radio-group"},{default:q(()=>[z(Ve,{value:"1",size:"default",style:{color:"#000"}},{default:q(()=>[...pe[21]||(pe[21]=[Ue("当前选中的商品",-1)])]),_:1}),z(Ve,{value:"3",size:"default",style:{color:"#000"}},{default:q(()=>[pe[23]||(pe[23]=Ue(" 满足当前 TEMU 页面查询条件的商品 ",-1)),z(ge,{effect:"light",content:"不受temu每页最大展示商品数限制",placement:"top"},{content:q(()=>[...pe[22]||(pe[22]=[de("p",null,"不受temu每页最大展示商品数限制",-1),de("p",null,"自动读取最后一次查询数据所用筛选条件",-1)])]),default:q(()=>[z(ye,{style:{"margin-left":"5px"}},{default:q(()=>[z(St(Ro))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])]),l.value==="2"||l.value==="3"?(Oe(),st("div",zJ,[pe[24]||(pe[24]=de("div",{style:{"font-weight":"bold","font-size":"larger"}},"当前TEMU页筛选条件展示 （不可选，仅显示TEMU页筛选条件）:",-1)),l.value==="2"?(Oe(),st("div",VJ,[z(mt,{class:"uploadForm",model:I.value,inline:"","label-width":"auto","label-position":"right",disabled:u.value,ref:"ruleFormRef"},{default:q(()=>[z(nt,{gutter:20},{default:q(()=>[z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"合规信息类型",class:"up_form"},{default:q(()=>[z(Re,{modelValue:I.value.InformationTyp,"onUpdate:modelValue":pe[2]||(pe[2]=_t=>I.value.InformationTyp=_t),class:"up_form",size:"small",clearable:""},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(R.value,_t=>(Oe(),Et(Pe,{key:_t.task_type,value:_t.task_type,label:_t.task_name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"商品是否在售",class:"up_form"},{default:q(()=>[z(Re,{modelValue:I.value.isOnSale,"onUpdate:modelValue":pe[3]||(pe[3]=_t=>I.value.isOnSale=_t),class:"up_form",size:"small",clearable:""},{default:q(()=>[(Oe(),st(Zt,null,Hr(F,_t=>z(Pe,{key:_t.value,value:_t.value,label:_t.label},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"商品分类",class:"up_form"},{default:q(()=>[na(z(ot,{modelValue:I.value.productCategory,"onUpdate:modelValue":pe[4]||(pe[4]=_t=>I.value.productCategory=_t),props:fe.value,options:le.value,"show-all-levels":!1,filterable:"",clearable:"",style:{width:"100%"},size:"small","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":1},null,8,["modelValue","props","options"]),[[Kt,Q.value]])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"状态",class:"up_form"},{default:q(()=>[z(Re,{"collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":2,multiple:"",modelValue:I.value.productStatus,"onUpdate:modelValue":pe[5]||(pe[5]=_t=>I.value.productStatus=_t),class:"up_form",size:"small",clearable:""},{default:q(()=>[(Oe(),st(Zt,null,Hr(L,_t=>z(Pe,{key:_t.value,value:_t.value,label:_t.label},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","disabled"])])):tr("",!0),l.value==="3"?(Oe(),st("div",WJ,[z(mt,{class:"uploadForm",inline:"","label-width":"auto",disabled:!0,"label-position":"right"},{default:q(()=>[z(nt,{gutter:20},{default:q(()=>[z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"快速筛选",class:"up_form"},{default:q(()=>[z(Re,{modelValue:P.value.rapid_screen_type_list,"onUpdate:modelValue":pe[6]||(pe[6]=_t=>P.value.rapid_screen_type_list=_t),class:"up_form",multiple:"",size:"small"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(V.value.rapid_screen_list,_t=>(Oe(),Et(Pe,{key:_t.type,value:_t.type,label:`${_t.desc}`},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"商品SPU ID:",class:"up_form"},{default:q(()=>{var _t;return[z(Ut,{"model-value":(_t=P.value.spu_id_list)==null?void 0:_t.join(","),class:"up_form",size:"small"},null,8,["model-value"])]}),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"商品合规信息",class:"up_form"},{default:q(()=>[z(Re,{modelValue:P.value.task_type_list,"onUpdate:modelValue":pe[7]||(pe[7]=_t=>P.value.task_type_list=_t),class:"up_form",size:"small",multiple:""},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(V.value.wait_task_list,_t=>(Oe(),Et(Pe,{key:_t.task_type,value:_t.task_type,label:_t.task_name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"状态",class:"up_form"},{default:q(()=>[z(Re,{multiple:"",modelValue:P.value.task_status_list,"onUpdate:modelValue":pe[8]||(pe[8]=_t=>P.value.task_status_list=_t),class:"up_form",size:"small"},{default:q(()=>[(Oe(),st(Zt,null,Hr(L,_t=>z(Pe,{key:_t.value,value:_t.value,label:_t.label},null,8,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"商品是否在售",class:"up_form"},{default:q(()=>[z(Re,{modelValue:P.value.on_sale,"onUpdate:modelValue":pe[9]||(pe[9]=_t=>P.value.on_sale=_t),class:"up_form",size:"small",clearable:""},{default:q(()=>[z(Pe,{value:!0,label:"是"}),z(Pe,{value:!1,label:"否"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),z(Ke,{span:6},{default:q(()=>[z(Ye,{label:"商品分类",class:"up_form"},{default:q(()=>[z(Re,{modelValue:N.value,"onUpdate:modelValue":pe[10]||(pe[10]=_t=>N.value=_t),class:"up_form",size:"small",multiple:"","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":5},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(B.value,(_t,Jt)=>(Oe(),Et(Pe,{key:Jt,value:_t,label:_t},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})])):tr("",!0)])):tr("",!0),l.value==="2"||l.value==="3"?(Oe(),st("div",GJ,[pe[25]||(pe[25]=de("span",{style:{"font-weight":"bold","font-size":"larger"}},"最多上传商品个数(不填代表不限制): ",-1)),z(Ot,{disabled:u.value,size:"small",modelValue:g.value,"onUpdate:modelValue":pe[11]||(pe[11]=_t=>g.value=_t),"controls-position":"right",min:0},null,8,["disabled","modelValue"])])):tr("",!0)])]),_:1},8,["modelValue"])])}}},YJ=cn(KJ,[["__scopeId","data-v-40ccb26e"]]),XJ={__name:"ImageUploader",props:{modelValue:{type:Array,default:()=>[]},listType:{type:String,default:"picture-card"}},emits:["update:modelValue"],setup(a,{expose:s,emit:r}){const i=a,n=r,t=we(!1),c=we(0),u=Pr({get:()=>i.modelValue,set:m=>n("update:modelValue",m)}),f=we(null),o=(m,p)=>{u.value=p},l=m=>{c.value=u.value.findIndex(p=>p.uid===m.uid),t.value=!0},g=m=>m.replace(/^data:image\/\w+;base64,/,"");return s({getBase64Files:(m=!1)=>{const p=[];return new Promise(_=>{if(!u.value.length){_([]);return}u.value.forEach(y=>{const h=new FileReader;h.onload=d=>{p.push(m?g(d.target.result):d.target.result),p.length===u.value.length&&_(p)},h.readAsDataURL(y.raw)})})}}),(m,p)=>{const _=Ce("el-button"),y=Ce("el-icon"),h=Ce("el-upload"),d=Ce("el-image-viewer");return Oe(),st(Zt,null,[z(h,{action:"#",ref_key:"elUploadRef",ref:f,"list-type":a.listType,"auto-upload":!1,multiple:"",style:{width:"100%"},"on-preview":l,"on-remove":o,"file-list":u.value,"onUpdate:fileList":p[0]||(p[0]=A=>u.value=A)},{default:q(()=>[a.listType==="text"?(Oe(),Et(_,{key:0,size:"small",type:"primary"},{default:q(()=>[...p[2]||(p[2]=[Ue("点击上传",-1)])]),_:1})):(Oe(),Et(y,{key:1},{default:q(()=>[z(St(hy))]),_:1}))]),_:1},8,["list-type","file-list"]),t.value?(Oe(),Et(d,{key:0,"url-list":u.value.map(A=>A.url),teleported:"",infinite:!1,"initial-index":c.value,onClose:p[1]||(p[1]=A=>t.value=!1),style:{width:"100px",height:"100px"}},null,8,["url-list","initial-index"])):tr("",!0)],64)}}},Cm=cn(XJ,[["__scopeId","data-v-9553fe74"]]),ZJ={__name:"MultipleTemuCategorySelector",props:{modelValue:{type:Array,default:()=>[]},mallId:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},size:{type:String,default:"default"},checkStrictly:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择或搜索类目"}},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=we([]);let n=new Map;const t=we(!1),c=we(!1),u=s,f=Pr({get(){return r.modelValue},set(v){u("update:modelValue",v)}}),o=async v=>{try{const w=Vh?"/bg-anniston-agent-seller/category/children/list":"/bg-anniston-mms/category/children/list",{success:x,result:C,errorMsg:k}=await Un({url:w,method:"POST",data:{parentCatId:v},headers:{mallid:r.mallId}});return x?C.categoryNodeVOS||[]:(console.error(k),ut.error(`获取类目失败: ${k}`),[])}catch(w){return console.error(w),ut.error(`获取类目失败: ${w.message}`),[]}},l=v=>{c.value=!!v;const w=f.value;f.value=[],il(()=>{f.value=w})},g=v=>v.map(w=>m(w)),m=v=>{let w=1,x=`cat${w}NodeVO`,C=v[x];if(!C)throw new Error("无法找到根节点");const k=C;for(;;){w++,x=`cat${w}NodeVO`;const T=v[x];if(!T)break;C.children=[T],C=T}return k},p=v=>v&&n&&n.has(v.value),_=v=>v?t.value?!1:(t.value=!0,new Promise((w,x)=>{Un({url:"/bg-anniston-mms/category/search",method:"POST",data:{searchText:v},headers:{mallid:r.mallId}}).then(({success:C,result:k,errorMsg:T})=>{if(!C)return console.error(T),x(new Error(T));const S=g(k.categoryPaths||[]);i.value=A(i.value,S);const M=d(S);return n=new Map(M.map(P=>[P,!0])),t.value=!1,w()}).catch(C=>{console.error(C),x(C)})})):(n=new Map,!1),y=we({multiple:r.multiple,checkStrictly:r.checkStrictly,leaf:"isLeaf",label:"catName",value:"catId",lazy:!0,lazyLoad(v,w){const{catId:x}=v.data;o(x).then(C=>{if(!x)i.value=C;else{const k=h(x,i.value);if(!k)throw new Error("无法找到父节点");k.children=C}w(C)})}}),h=(v,w)=>{for(let x=0;x<w.length;x++){const C=w[x];if((C.isSemiManagedHidden||C.isHidden)&&console.log("hidden node",C),C.catId===v)return C;if(C.children&&C.children.length>0){const k=h(v,C.children);if(k)return k}}return null},d=v=>{const w=[];return v.forEach(x=>{w.push(x.catId),x.children&&x.children.length>0&&w.push(...d(x.children))}),w},A=(v,w)=>(v.forEach(x=>{x.children||(x.children=[])}),w.forEach(x=>{x.children=x.children||[]}),w.forEach(x=>{for(const C of v)if(C.catId===x.catId){C.children=A(C.children,x.children);return}v.push(x)}),v);return(v,w)=>{const x=Ce("el-cascader"),C=Ai("loading");return na((Oe(),Et(x,{modelValue:f.value,"onUpdate:modelValue":w[0]||(w[0]=k=>f.value=k),props:y.value,options:i.value,size:a.size,clearable:"",placeholder:a.placeholder,filterable:"",disabled:a.disabled,"before-filter":_,"filter-method":p,"show-all-levels":c.value,onVisibleChange:l},null,8,["modelValue","props","options","size","placeholder","disabled","show-all-levels"])),[[C,t.value]])}}},JJ={key:0,class:"filter-container"},qJ={class:"filterItem"},eq={key:1,class:"filterItem"},tq={key:1,class:"no-filter"},rq={__name:"isQualificationData",props:{ComplianceParams:Object,queryFilterList:Object,catIdList:Array},setup(a){const s=Kn(),{mall:r}=Au(s),i=a,n={1:"待上传",2:"上传中",3:"上传失败",4:"上传成功",5:"待更新",6:"上传完成"},t={1:"缺失",2:"不缺失"},c=Pr(()=>{const m=i.ComplianceParams;return m?m.product_ids&&m.product_ids.length>0||m.product_name&&m.product_name.trim()!==""||m.cert_types&&m.cert_types.length>0||m.upload_status_list&&m.upload_status_list.length>0||m.lack_property_status_list&&m.lack_property_status_list.length>0||m.is_on_sale!==void 0||m.cat_ids&&m.cat_ids.length>0||m.is_best_selling!==void 0:!1}),u=Pr(()=>{var p,_;const m={};return(_=(p=i.queryFilterList)==null?void 0:p.cert_info_list)==null||_.forEach(y=>{m[y.cert_type]=y.cert_name}),m}),f=Pr(()=>{var m;return!((m=i.ComplianceParams)!=null&&m.cert_types)||!Array.isArray(i.ComplianceParams.cert_types)?"":i.ComplianceParams.cert_types.map(p=>u.value[p]).filter(Boolean).join("、")}),o=Pr(()=>{var p;const m=(p=i.ComplianceParams)==null?void 0:p.upload_status_list;return m!=null&&m.length?m.map(_=>n[_]||_).join("、"):""}),l=Pr(()=>{var p;const m=(p=i.ComplianceParams)==null?void 0:p.lack_property_status_list;return m!=null&&m.length?m.map(_=>t[_]||_).join("、"):""}),g=Pr(()=>{var _,y,h,d,A,v;const m=[],p=i.ComplianceParams;return(_=p==null?void 0:p.product_ids)!=null&&_.length&&m.push({key:"product_ids",label:"SPU ID",value:p.product_ids.join("、"),showPopover:!0,span:8,marginBottom:!0}),p!=null&&p.product_name&&m.push({key:"product_name",label:"商品名称",value:p.product_name,showPopover:!0,span:8}),(y=p==null?void 0:p.cert_types)!=null&&y.length&&m.push({key:"cert_types",label:"资质名称",value:f.value,showPopover:!0,span:8}),(h=p==null?void 0:p.upload_status_list)!=null&&h.length&&m.push({key:"upload_status_list",label:"资质上传状态",value:o.value,showPopover:!0,span:8,marginBottom:!0}),(d=p==null?void 0:p.lack_property_status_list)!=null&&d.length&&m.push({key:"lack_property_status_list",label:"是否缺失合规信息",value:l.value,showPopover:!1,span:8}),(p==null?void 0:p.is_on_sale)!==void 0&&m.push({key:"is_on_sale",label:"是否在售",value:p.is_on_sale?"是":"否",showPopover:!1,span:8}),(A=p==null?void 0:p.cat_ids)!=null&&A.length&&((v=i.catIdList)!=null&&v.length)&&m.push({key:"cat_ids",label:"商品分类",value:i.catIdList.join("、"),showPopover:!0,span:8}),(p==null?void 0:p.is_best_selling)!==void 0&&m.push({key:"is_best_selling",label:"是否热销款",value:p.is_best_selling?"是":"否",showPopover:!1,span:8}),m});return(m,p)=>{const _=Ce("el-divider"),y=Ce("el-popover"),h=Ce("el-col"),d=Ce("el-row");return Oe(),st(Zt,null,[z(_,{"content-position":"left"},{default:q(()=>[...p[0]||(p[0]=[Ue("当前筛选条件",-1)])]),_:1}),c.value?(Oe(),st("div",JJ,[z(d,{gutter:20},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(g.value,A=>(Oe(),Et(h,{key:A.key,span:A.span,style:av({marginBottom:A.marginBottom?"10px":"0"})},{default:q(()=>[A.showPopover?(Oe(),Et(y,{key:0,placement:"top",width:300,trigger:"hover",content:A.value},{reference:q(()=>[de("div",qJ,ht(A.label)+"："+ht(A.value),1)]),_:2},1032,["content"])):(Oe(),st("div",eq,ht(A.label)+"："+ht(A.value),1))]),_:2},1032,["span","style"]))),128))]),_:1})])):(Oe(),st("div",tq,"无筛选条件"))],64)}}},eC=cn(rq,[["__scopeId","data-v-a8be2c7d"]]),nq={key:0},aq={class:"upload-section"},iq={class:"upload-container"},sq={class:"upload-container second-upload-container"},oq={class:"upload-container second-upload-container"},lq={key:1,style:{color:"#000","margin-top":"30px"}},uq={style:{"margin-top":"10px"}},cq={key:0,style:{"margin-top":"10px"}},fq={style:{color:"#fa8926"}},dq={key:1,style:{"margin-top":"10px"}},hq={key:0,class:"labelStyle"},Aq={key:1,class:"labelStyle"},pq={key:0},mq={key:2,class:"labelStyle"},gq={key:0},vq={key:3,class:"labelStyle"},yq={key:4,class:"labelStyle"},bq={key:5,class:"labelStyle"},wq={key:6,class:"labelStyle"},_q={key:0},xq={style:{"margin-top":"10px"}},Cq={key:0},Sq={style:{display:"flex","flex-direction":"column",gap:"5px",width:"100%"}},kq={style:{display:"flex",gap:"5px","align-items":"center"}},Tq={class:"spu-desc"},Eq={key:0,class:"spu-image"},Iq={style:{width:"180px"}},Bq={key:0},Fq={class:"desc"},Mq={key:1},Dq={class:"error-text"},Oq={class:"upload-section"},Lq={class:"upload-container"},Pq={class:"upload-container second-upload-container"},Rq={class:"upload-container second-upload-container"},Uq={class:"flex justify-end"},Nq={__name:"BatchUploadButton",props:{spus:{type:Array,default:()=>[]},FilterList:Object},setup(a){const s=a,r=we("same"),i=we("picture-card"),n=we("spu"),t=Pr(()=>r.value==="different"),c=Pr(()=>n.value==="directory"),u=we(!1),f=we(null),o=we(!1),l=we(!1),g=we(!1),m=we(!0),p=we({dpRealImagesDir:"",dpPackageImagesDir:"",dpManualImagesDir:"",cmRealImagesDir:"",cmPackageImagesDir:"",cmManualImagesDir:""}),_=we({realImages:[],packageImages:[],manualImages:[]}),y=we({currentPage:1,pageSize:10}),h=we([]),d=we([]),A=Ve=>{h.value=Ve.map(ke=>({spuId:ke.spuId,spuName:ke.spuName,spuImg:ke.spuImg,realImages:[],packageImages:[],manualImages:[],errorMsg:""})),d.value=JSON.parse(JSON.stringify(h.value)),m.value=!0},v=we(!1),w=we(!1),x=we("1"),C=we(null);Ra(()=>s.spus,A,{immediate:!0});const k=()=>{_.value.realImages=[],_.value.packageImages=[],_.value.manualImages=[]},T=(Ve=["realImages","packageImages","manualImages"])=>{for(const ke of d.value)for(const Pe of Ve)ke[Pe]=[]};function S(Ve){return Ve.substring(0,Ve.lastIndexOf("."))}const M=(Ve,ke=!1,Pe=!1)=>{const Re=document.createElement("input");Re.type="file",Re.webkitdirectory=!0,Re.multiple=!0;const Ye=new Map;Re.onchange=async Ke=>{let ot=Array.from(Ke.target.files);if(ot=ot.filter(Ut=>Ut.type.startsWith("image/")),ke||(ot=ot.filter(Ut=>{const Ot=Ut.name.split("-"),wt=parseInt(Ot[0],10),Kt=Ot.length===2&&!isNaN(wt);return Kt||ut({message:`文件名格式错误: ${Ut.name}, 已跳过该文件`,type:"error",duration:5e3}),Ut.spuId=wt,Ye.set(`${Ut.spuId}`,!0),Kt})),Pe)if(m.value)d.value=Array.from(Ye.keys()).map(Ut=>({spuId:Ut,spuName:"",spuImg:"",realImages:[],packageImages:[],manualImages:[],errorMsg:""})),d.value.sort((Ut,Ot)=>+Ut.spuId-+Ot.spuId),m.value=!1;else{const Ut=new Map;for(const wt of d.value)Ut.set(wt.spuId,!0);let Ot=!1;for(const wt of Array.from(Ye.keys()))Ut.has(wt)||(Ot=!0,d.value.push({spuId:wt,spuName:"",spuImg:"",realImages:[],packageImages:[],manualImages:[],errorMsg:""}));Ot&&d.value.sort((wt,Kt)=>+wt.spuId-+Kt.spuId)}if(ke&&ot.length>15){ut({message:"文件夹内图片数量过多, 请确保选择了正确的文件夹",type:"error",duration:5e3});return}const nt=new Map;let mt=0;ot.forEach(Ut=>{const Ot=`${Ut.spuId}`;nt.has(Ot)||nt.set(Ot,[]),nt.get(Ot).push(Ut)});for(const Ut of d.value){const Ot=new Map;for(const wt of Ut[Ve])Ot.set(wt.name,!0);if(ke||nt.has(Ut.spuId)){const wt=ke?ot:nt.get(Ut.spuId),Kt=[];for(const _t of wt)if(Ot.has(_t.name))mt++;else{const Jt={name:_t.name,url:URL.createObjectURL(_t),raw:_t,size:_t.size,status:"ready"};Kt.push(Jt),Ot.set(Jt.name,!0)}Kt.sort((_t,Jt)=>{const yr=S(_t.name),vr=S(Jt.name);return yr.localeCompare(vr,void 0,{numeric:!0,sensitivity:"base"})}),Kt.length&&(Ut[Ve]=[...Ut[Ve],...Kt])}}mt&&ut({message:`已自动忽略了${mt}个重复文件`,type:"warning",duration:5e3})},Re.click()},P=Ve=>{switch(Ve){case"realImages":M("realImages",!1,!1);break;case"packageImages":M("packageImages",!1,!1);break;case"manualImages":M("manualImages",!1,!1);break;case"allRealImages":M("realImages",!1,!0);break;case"allPackageImages":M("packageImages",!1,!0);break;case"allManualImages":M("manualImages",!1,!0);break}},N=Ve=>{M(Ve,!0)},B=Kn(),O=Ve=>Ve.replace(/^data:image\/\w+;base64,/,"");function I(Ve,ke=!0){return new Promise(Pe=>{const Re=[];if(!Ve.length){Pe(Re);return}Ve.forEach(Ye=>{const Ke=new FileReader;Ke.onload=ot=>{Re.push(ke?O(ot.target.result):ot.target.result),Re.length===Ve.length&&Pe(Re)},Ke.readAsDataURL(Ye.raw)})})}function F(Ve){const ke={};for(const Pe in Ve)if(Ve.hasOwnProperty(Pe)){let Re=Ve[Pe];typeof Re=="string"&&(Re=Re.trim().replace(/^"|"$/g,"")),ke[Pe]=Re}return ke}const L=async()=>{var Re;for(const Ye of d.value)Ye.errorMsg="";const Ve=d.value.map(Ye=>parseInt(Ye.spuId,10)),ke=Sf();let Pe={mallId:B.id,uuid:ke,spuIdList:s.spus.length?Ve:null,picturesDifferent:t.value,isFilter:x.value!=="1",filter:x.value==="1"?null:{checkTypeList:Q.value.check_type_list||null,checkTypeStatusList:Q.value.check_type_status_list||null,onSale:Q.value.on_sale||null,spuIdList:((Re=Q.value.spu_id_list)==null?void 0:Re.length)>0?Q.value.spu_id_list.map(Ye=>Number(Ye)).filter(Ye=>!isNaN(Ye)):null,goodsName:Q.value.goods_name||null,cateIdList:Q.value.cate_id_list||null,rapidScreenStatusList:Q.value.rapid_screen_status_list||null,quantityLimit:C.value||null},withFilters:!s.spus.length,filters:s.spus.length?null:Fe(G.value)};if(t.value)if(c.value)Pe={isUploadDir:!0,mallId:B.id,uuid:ke,picturesDifferent:t.value,...F(p.value)};else{for(const Ye of d.value)if(Ye.realImages.length===0&&Ye.packageImages.length===0&&Ye.manualImages.length===0){ut.error("每个商品请至少选择一张图片");return}Pe.realImages2=[],Pe.packageImages2=[],Pe.manualImages2=[];for(const Ye of d.value)Pe.realImages2.push(await I(Ye.realImages)),Pe.packageImages2.push(await I(Ye.packageImages)),Pe.manualImages2.push(await I(Ye.manualImages))}else{if(_.value.realImages.length===0&&_.value.packageImages.length===0&&_.value.manualImages.length===0){ut.error("请选择图片");return}Pe.realImages=await I(_.value.realImages),Pe.packageImages=await I(_.value.packageImages),Pe.manualImages=await I(_.value.manualImages)}l.value=!0,f.value.start(()=>kf({uuid:ke})).then(Ye=>{}).catch(Ye=>{ut({message:`读取进度失败: ${Ye}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{l.value=!1}),o.value=!0,uT(Pe).then(({status:Ye,error:Ke,errorMsg:ot,successCnt:nt,failCnt:mt,failSpuErrorList:Ut})=>{if(Ye!==0)ot?ut({message:ot,type:"error",duration:1e4,zIndex:999999999}):(console.log(Ke),ut({message:"更新商品实拍图和包装图失败, 请稍后重试或联系系统管理员",type:"error",duration:1e4,zIndex:999999999})),f.value.stop();else{const Ot=mt>0||(Ut==null?void 0:Ut.length);let wt="";if(nt&&(wt+=`<p class="notify-success-text">成功<strong>${nt}个</strong></p>`),mt&&(wt+=`<p class="notify-error-text">失败<strong>${mt}个</strong></p>`),Ut!=null&&Ut.length){const _t=[];for(const Jt of Ut){const yr=d.value.find(vr=>`${vr.spuId}`==`${Jt.spuId}`);yr&&(yr.errorMsg=Jt.Error,_t.push(yr)),wt+=`<li>SPU: ${Jt.spuId}<ul><li class="notify-error-text">${Jt.Error}</li></ul></li>`}wt+="</ul>",d.value=_t}const Kt=Zn(_i,{maxHeight:"720px"},{default:()=>Zn("div",{innerHTML:wt})});ha({title:"更新商品实拍图和包装图",message:Kt,dangerouslyUseHTMLString:!1,type:Ot?"warning":"success",customClass:"custom-notification",duration:Ot?0:5e3})}}).catch(Ye=>{console.error(Ye),ut({message:"更新商品实拍图和包装图出现网络异常, 请稍后重试或联系系统管理员",type:"error",duration:1e4,zIndex:999999999}),f.value.stop()}).finally(()=>{o.value=!1})},R=async Ve=>{var Re,Ye;g.value=!0;let ke=await B.init();if(ke&&(ke=await Ve()),g.value=!1,!ke)return;const Pe=window.location.pathname;if(v.value=Pe==="/govern/compliant-live-photos",w.value=Pe==="/govern/upload-qualifications",w.value&&pe(),Pe==="/govern/upload-qualifications"){try{if(g.value=!0,(Re=s.spus)!=null&&Re.length)A(s.spus);else{const Ke=await Te();A(Ke)}}finally{g.value=!1}if(!d.value.length){ut.error("商品数据为空！");return}}else if(Pe==="/govern/compliant-live-photos"&&!((Ye=h.value)!=null&&Ye.length)){ut.error("请选择商品");return}u.value=!0},U=()=>{k(),T(),A(s.spus),f.value.reset(),d.value=[],h.value=[]},V=()=>{x.value="1",C.value=null},W=()=>{U()},Q=we({});window.apiFlashRealPictureListListener&&window.removeEventListener("message",window.apiFlashRealPictureListListener),window.apiFlashRealPictureListListener=Ve=>{Ve.data.type==="/api/flash/real_picture/list"&&(fe.value=!0,Q.value=Ve.data.params)};const le=we([]),G=we({});window.apiComplianceListListener&&window.removeEventListener("message",window.apiComplianceListListener),window.apiComplianceListListener=Ve=>{if(Ve.data.type==="/mms/arbok/product_cert/query/list"){ie.value=!0,G.value=Ve.data.params;const ke=document.querySelector('label[for="catIds"]');if(ke){const Pe=ke.closest(".rocket-form-field-item");if(Pe==null?void 0:Pe.querySelector(".rocket-select-selection-overflow")){const Ye=Pe.querySelectorAll(".rocket-select-selection-item-content"),Ke=Array.from(Ye).map(ot=>ot.textContent.trim());le.value=Ke}}}};const fe=we(!1),ie=we(!1);oa(()=>{window.location.pathname==="/govern/compliant-live-photos"?(il(()=>{he()}),window.removeEventListener("message",window.apiFlashRealPictureListListener),window.addEventListener("message",window.apiFlashRealPictureListListener)):window.location.pathname==="/govern/upload-qualifications"?(window.apiComplianceListListener&&window.removeEventListener("message",window.apiComplianceListListener),il(()=>{Y()}),window.removeEventListener("message",window.apiComplianceListListener),window.addEventListener("message",window.apiComplianceListListener)):(fe.value=!0,ie.value=!0)});const he=()=>{if(fe.value)return;const Ve=Array.from(document.querySelectorAll(".rocket-space-item .rocket-btn")).find(ke=>ke.innerText.trim()==="查 询");Ve&&Ve.click()},Y=()=>{if(ie.value)return;const Ve=Array.from(document.querySelectorAll(".rocket-space-item .rocket-btn")).find(ke=>ke.innerText.trim()==="查 询");Ve&&Ve.click()},K=()=>{window.open("https://www.kuajingabc.com/#/manual/58","_blank")},oe=we({}),pe=async()=>{let Ve=await PK({Mallid:Di()});Ve.success===!0&&(oe.value.cert_info_list=Ve.result.cert_info_list)},ve=we(0),ge=we(!1),ue=we({current:0,total:0}),Te=async()=>{ge.value=!0,ue.value={current:0,total:0};const Ve=[];let ke=1;const Pe=50;try{let Re=!0;do{const Ye=await RK({Mallid:Di(),data:{...G.value,page:ke,page_size:Pe}});if(!Ye.success){Re=!1;break}const Ke=Ye.result||{},nt=Ke.product_with_cert_list.map(Ut=>Ut.product_base_info).map(Ut=>({spuId:Ut.product_id,spuName:Ut.product_name,spuImg:Ut.main_image_url,realImages:[],packageImages:[],manualImages:[],errorMsg:""}));Ve.push(...nt);const mt=Ke.total||0;ve.value=mt,ue.value={current:Ve.length,total:mt},Ve.length>=mt?Re=!1:ke++}while(Re)}finally{ge.value=!1}return Ve},Ee=Pr(()=>{const Ve=(y.value.currentPage-1)*y.value.pageSize,ke=Ve+y.value.pageSize;return d.value.slice(Ve,ke)}),ye=Ve=>{y.value.pageSize=Ve,y.value.currentPage=1},Se=Ve=>{y.value.currentPage=Ve},Fe=Ve=>Ve?{productIds:Ve.product_ids?Ve.product_ids:null,uploadStatusList:Ve.upload_status_list?Ve.upload_status_list:null,certTypes:Ve.cert_types?Ve.cert_types:null,productName:Ve.product_name?Ve.product_name:null,isOnSale:Ve.is_on_sale??null,lackPropertyStatusList:Ve.lack_property_status_list?Ve.lack_property_status_list:null,catIds:Ve.cat_ids?Ve.cat_ids:null,isBestSelling:Ve.is_best_selling??null}:{};return(Ve,ke)=>{const Pe=Ce("el-button"),Re=Ce("el-alert"),Ye=Ce("el-divider"),Ke=Ce("el-radio"),ot=Ce("el-radio-group"),nt=Ce("el-icon"),mt=Ce("el-tooltip"),Ut=Ce("el-input-number"),Ot=Ce("el-tab-pane"),wt=Ce("el-dropdown-item"),Kt=Ce("el-dropdown-menu"),_t=Ce("el-dropdown"),Jt=Ce("el-switch"),yr=Ce("el-image"),vr=Ce("el-pagination"),Br=Ce("el-input"),zr=Ce("el-form-item"),mn=Ce("el-form"),jr=Ce("el-tabs"),Tn=Ce("el-dialog");return Oe(),st(Zt,null,[z($0,null,{default:q(({checkAuth:Lt})=>[z(Pe,{class:"custom-button",type:"primary",onClick:Gt=>R(Lt),loading:g.value||ge.value},{default:q(()=>[ge.value?(Oe(),st(Zt,{key:0},[Ue(" 【凌风跨境工具箱】批量更新商品实拍图和包装图（"+ht(ue.value.current)+"/"+ht(ue.value.total)+"） ",1)],64)):(Oe(),st(Zt,{key:1},[Ue(" 【凌风跨境工具箱】批量更新商品实拍图和包装图 ")],64))]),_:1},8,["onClick","loading"])]),_:1}),z(Tn,{"align-center":"",onClose:W,onOpen:V,class:"warp-float",modelValue:u.value,"onUpdate:modelValue":ke[17]||(ke[17]=Lt=>u.value=Lt),width:"1000px","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1},{header:q(()=>[de("div",{style:{display:"flex","align-items":"center"}},[ke[18]||(ke[18]=de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量更新商品实拍图和包装图",-1)),de("div",{class:"DescriptionTips",onClick:K},"查看功能说明")])]),footer:q(()=>[z(Pe,{class:"custom-button",type:"primary",onClick:L,loading:l.value||o.value},{default:q(()=>[...ke[79]||(ke[79]=[Ue("开始更新",-1)])]),_:1},8,["loading"]),z(Qc,{ref_key:"progressTickerRef",ref:f,"success-text":"更新成功",style:{"margin-top":"10px"}},null,512)]),default:q(()=>[z(jr,{modelValue:r.value,"onUpdate:modelValue":ke[16]||(ke[16]=Lt=>r.value=Lt),type:"border-card"},{default:q(()=>[z(Ot,{label:"所有商品上传相同图片",name:"same"},{default:q(()=>{var Lt;return[w.value?(Oe(),st("div",nq,[z(eC,{catIdList:le.value,ComplianceParams:G.value,queryFilterList:oe.value},null,8,["catIdList","ComplianceParams","queryFilterList"])])):tr("",!0),z(Re,{style:{width:"100%","margin-top":"10px"},type:"warning",closable:!1},{title:q(()=>[de("span",null,[ke[19]||(ke[19]=Ue("当前选择",-1)),de("strong",null,ht(d.value.length)+"个",1),ke[20]||(ke[20]=Ue("商品",-1))])]),_:1}),de("div",aq,[de("div",iq,[z(Ye,null,{default:q(()=>[...ke[21]||(ke[21]=[Ue("上传商品实拍图",-1)])]),_:1}),z(Cm,{modelValue:_.value.realImages,"onUpdate:modelValue":ke[0]||(ke[0]=Gt=>_.value.realImages=Gt)},null,8,["modelValue"])]),de("div",sq,[z(Ye,null,{default:q(()=>[...ke[22]||(ke[22]=[Ue("上传包装图",-1)])]),_:1}),z(Cm,{modelValue:_.value.packageImages,"onUpdate:modelValue":ke[1]||(ke[1]=Gt=>_.value.packageImages=Gt)},null,8,["modelValue"])]),de("div",oq,[z(Ye,null,{default:q(()=>[...ke[23]||(ke[23]=[Ue("上传纸质说明书实拍图",-1)])]),_:1}),z(Cm,{modelValue:_.value.manualImages,"onUpdate:modelValue":ke[2]||(ke[2]=Gt=>_.value.manualImages=Gt)},null,8,["modelValue"])])]),v.value?(Oe(),st("div",lq,[ke[33]||(ke[33]=de("div",null," 上传哪些商品？ ",-1)),de("div",uq,[z(ot,{modelValue:x.value,"onUpdate:modelValue":ke[3]||(ke[3]=Gt=>x.value=Gt),disabled:o.value},{default:q(()=>[z(Ke,{value:"1",size:"default",style:{color:"#000"}},{default:q(()=>[...ke[24]||(ke[24]=[Ue("当前选中的商品",-1)])]),_:1}),z(Ke,{value:"2",size:"default",style:{color:"#000"}},{default:q(()=>[...ke[25]||(ke[25]=[Ue("满足当前temu页面筛选条件的商品",-1)])]),_:1})]),_:1},8,["modelValue","disabled"]),z(mt,{effect:"light",content:"不受temu每页最大展示商品数限制",placement:"top"},{default:q(()=>[z(nt,{style:{"margin-left":"5px"}},{default:q(()=>[z(St(Ro))]),_:1})]),_:1})]),x.value==="1"?(Oe(),st("div",cq,[ke[26]||(ke[26]=Ue("已选中：",-1)),de("span",fq,ht((Lt=d.value)==null?void 0:Lt.length),1),ke[27]||(ke[27]=Ue(" 个商品",-1))])):tr("",!0),x.value==="2"?(Oe(),st("div",dq,[ke[32]||(ke[32]=de("div",{style:{"margin-top":"5px"}},"当前筛选条件",-1)),a.FilterList.rapidScreening!==0?(Oe(),st("div",hq,"快速筛选："+ht(a.FilterList.rapidScreening===1?"待传图":"图中标签有异常"),1)):tr("",!0),a.FilterList.regTypeOfImage.length?(Oe(),st("div",Aq,[ke[28]||(ke[28]=Ue("实拍图识别类型： ",-1)),(Oe(!0),st(Zt,null,Hr(a.FilterList.regTypeOfImage,(Gt,$t)=>(Oe(),st("span",{key:$t},[Ue(ht(Gt),1),$t<a.FilterList.regTypeOfImage.length-1?(Oe(),st("span",pq,"， ")):tr("",!0)]))),128))])):tr("",!0),a.FilterList.identifyStatus.length?(Oe(),st("div",mq,[ke[29]||(ke[29]=Ue("识别状态： ",-1)),(Oe(!0),st(Zt,null,Hr(a.FilterList.identifyStatus,(Gt,$t)=>(Oe(),st("span",{key:$t},[Ue(ht(Gt),1),$t<a.FilterList.identifyStatus.length-1?(Oe(),st("span",gq,"，")):tr("",!0)]))),128))])):tr("",!0),a.FilterList.ItIsAvailable?(Oe(),st("div",vq,"商品是否在售："+ht(a.FilterList.ItIsAvailable),1)):tr("",!0),a.FilterList.productID.content?(Oe(),st("div",yq,"商品 "+ht(a.FilterList.productID.type)+" 查询："+ht(a.FilterList.productID.content),1)):tr("",!0),a.FilterList.productName?(Oe(),st("div",bq,"商品名称："+ht(a.FilterList.productName),1)):tr("",!0),a.FilterList.productCategory.length?(Oe(),st("div",wq,[ke[30]||(ke[30]=Ue("商品分类： ",-1)),(Oe(!0),st(Zt,null,Hr(a.FilterList.productCategory,(Gt,$t)=>(Oe(),st("span",{key:$t},[Ue(ht(Gt),1),$t<a.FilterList.productCategory.length-1?(Oe(),st("span",_q,"， ")):tr("",!0)]))),128))])):tr("",!0),de("div",xq,[ke[31]||(ke[31]=Ue("最多上传商品个数（不填代表不限制） ",-1)),z(Ut,{size:"small",disabled:o.value,modelValue:C.value,"onUpdate:modelValue":ke[4]||(ke[4]=Gt=>C.value=Gt),"controls-position":"right",min:0},null,8,["disabled","modelValue"])])])):tr("",!0)])):tr("",!0)]}),_:1}),z(Ot,{label:"不同商品上传不同图片",name:"different"},{default:q(()=>[z(jr,{modelValue:n.value,"onUpdate:modelValue":ke[15]||(ke[15]=Lt=>n.value=Lt),type:"border-card"},{default:q(()=>[z(Ot,{label:"按商品上传",name:"spu"},{default:q(()=>[w.value?(Oe(),st("div",Cq,[z(eC,{catIdList:le.value,ComplianceParams:G.value,queryFilterList:oe.value},null,8,["catIdList","ComplianceParams","queryFilterList"])])):tr("",!0),de("div",Sq,[z(Ye,{"content-position":"left"},{default:q(()=>[...ke[34]||(ke[34]=[Ue("批量上传(可选)",-1)])]),_:1}),de("div",null,[de("div",kq,[z(_t,{onCommand:P},{dropdown:q(()=>[z(Kt,null,{default:q(()=>[z(Ye,{"content-position":"left"},{default:q(()=>[...ke[37]||(ke[37]=[de("span",{class:"divider-title"},"仅上传列表中的SPU",-1)])]),_:1}),z(wt,{command:"realImages"},{default:q(()=>[...ke[38]||(ke[38]=[Ue("选择实拍图文件夹",-1)])]),_:1}),z(wt,{command:"packageImages"},{default:q(()=>[...ke[39]||(ke[39]=[Ue("选择包装图文件夹",-1)])]),_:1}),z(wt,{command:"manualImages"},{default:q(()=>[...ke[40]||(ke[40]=[Ue("选择纸质说明书实拍图文件夹",-1)])]),_:1}),z(Ye,{"content-position":"left"},{default:q(()=>[...ke[41]||(ke[41]=[de("span",{class:"divider-title"},"上传文件夹内所有SPU",-1)])]),_:1}),z(wt,{command:"allRealImages"},{default:q(()=>[...ke[42]||(ke[42]=[Ue("选择实拍图文件夹",-1)])]),_:1}),z(wt,{command:"allPackageImages"},{default:q(()=>[...ke[43]||(ke[43]=[Ue("选择包装图文件夹",-1)])]),_:1}),z(wt,{command:"allManualImages"},{default:q(()=>[...ke[44]||(ke[44]=[Ue("选择纸质说明书实拍图文件夹",-1)])]),_:1})]),_:1})]),default:q(()=>[z(Pe,{type:"primary",size:"default"},{default:q(()=>[ke[36]||(ke[36]=Ue(" 选择独立SPU文件夹 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[35]||(ke[35]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"SPU-索引.jpg"')])],-1),de("div",null,[de("span",null,"如: 123456789-1.jpg, 123456789-2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),z(nt,null,{default:q(()=>[z(St(H2))]),_:1})]),_:1})]),_:1}),z(_t,{onCommand:N},{dropdown:q(()=>[z(Kt,null,{default:q(()=>[z(wt,{command:"realImages"},{default:q(()=>[...ke[47]||(ke[47]=[Ue("选择实拍图文件夹",-1)])]),_:1}),z(wt,{command:"packageImages"},{default:q(()=>[...ke[48]||(ke[48]=[Ue("选择包装图文件夹",-1)])]),_:1}),z(wt,{command:"manualImages"},{default:q(()=>[...ke[49]||(ke[49]=[Ue("选择纸质说明书实拍图文件夹",-1)])]),_:1})]),_:1})]),default:q(()=>[z(Pe,{type:"primary",size:"default"},{default:q(()=>[ke[46]||(ke[46]=Ue(" 选择统一SPU文件夹 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[45]||(ke[45]=[de("div",null,[de("span",null,[Ue("每个商品都将上传 "),de("strong",null,"相同图片")])],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),z(nt,null,{default:q(()=>[z(St(H2))]),_:1})]),_:1})]),_:1}),z(_t,{"split-button":"",onCommand:T,type:"danger",onClick:ke[5]||(ke[5]=Lt=>T())},{dropdown:q(()=>[z(Kt,null,{default:q(()=>[z(wt,{command:["realImages"]},{default:q(()=>[...ke[50]||(ke[50]=[Ue("清空实拍图",-1)])]),_:1}),z(wt,{command:["packageImages"]},{default:q(()=>[...ke[51]||(ke[51]=[Ue("清空包装图",-1)])]),_:1}),z(wt,{command:["manualImages"]},{default:q(()=>[...ke[52]||(ke[52]=[Ue("清空纸质说明书实拍图",-1)])]),_:1})]),_:1})]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(qh))]),_:1}),ke[53]||(ke[53]=Ue(" 清空图片 ",-1))]),_:1}),z(Jt,{modelValue:i.value,"onUpdate:modelValue":ke[6]||(ke[6]=Lt=>i.value=Lt),"inline-prompt":"","active-text":"显示图片","inactive-text":"隐藏图片","active-value":"picture-card","inactive-value":"text"},null,8,["modelValue"])])]),z(Ye,{"content-position":"left"},{default:q(()=>[...ke[54]||(ke[54]=[Ue("SPU列表",-1)])]),_:1}),z(St(_i),{"max-height":"600px"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(Ee.value,(Lt,Gt)=>(Oe(),st("div",{key:Gt,class:"spu-item"},[de("div",null,[de("span",null,ht(Gt+1),1)]),de("div",Tq,[Lt.spuImg?(Oe(),st("div",Eq,[z(yr,{style:{width:"100%"},src:Lt.spuImg,fit:"contain"},null,8,["src"])])):tr("",!0),de("div",Iq,[Lt.spuName?(Oe(),st("div",Bq,[de("span",Fq,ht(Lt.spuName),1)])):tr("",!0),de("div",null,"SPU: "+ht(Lt.spuId),1),Lt.errorMsg?(Oe(),st("div",Mq,[de("span",Dq,ht(Lt.errorMsg),1)])):tr("",!0)])]),de("div",Oq,[de("div",Lq,[z(Ye,null,{default:q(()=>[...ke[55]||(ke[55]=[Ue("上传商品实拍图",-1)])]),_:1}),z(Cm,{modelValue:Lt.realImages,"onUpdate:modelValue":$t=>Lt.realImages=$t,"list-type":i.value},null,8,["modelValue","onUpdate:modelValue","list-type"])]),de("div",Pq,[z(Ye,null,{default:q(()=>[...ke[56]||(ke[56]=[Ue("上传包装图",-1)])]),_:1}),z(Cm,{modelValue:Lt.packageImages,"onUpdate:modelValue":$t=>Lt.packageImages=$t,"list-type":i.value},null,8,["modelValue","onUpdate:modelValue","list-type"])]),de("div",Rq,[z(Ye,null,{default:q(()=>[...ke[57]||(ke[57]=[Ue("上传纸质说明书实拍图",-1)])]),_:1}),z(Cm,{modelValue:Lt.manualImages,"onUpdate:modelValue":$t=>Lt.manualImages=$t,"list-type":i.value},null,8,["modelValue","onUpdate:modelValue","list-type"])])])]))),128))]),_:1}),de("div",Uq,[z(vr,{"current-page":y.value.currentPage,"onUpdate:currentPage":ke[7]||(ke[7]=Lt=>y.value.currentPage=Lt),"page-size":y.value.pageSize,"onUpdate:pageSize":ke[8]||(ke[8]=Lt=>y.value.pageSize=Lt),"page-sizes":[5,10,20,50,100],total:d.value.length,size:"small",layout:"total, sizes, prev, pager, next, jumper",onSizeChange:ye,onCurrentChange:Se},null,8,["current-page","page-size","total"])])])]),_:1}),z(Ot,{label:"按文件夹上传",name:"directory"},{default:q(()=>[z(mn,null,{default:q(()=>[z(Ye,{"content-position":"left"},{default:q(()=>[...ke[58]||(ke[58]=[Ue("实拍图",-1)])]),_:1}),z(zr,null,{label:q(()=>[de("span",null,[ke[60]||(ke[60]=Ue(" 独立文件夹路径 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[59]||(ke[59]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"SPU-索引.jpg"')])],-1),de("div",null,[de("span",null,"如: 123456789-1.jpg, 123456789-2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),ke[61]||(ke[61]=Ue(" ： ",-1))])]),default:q(()=>[z(Br,{modelValue:p.value.dpRealImagesDir,"onUpdate:modelValue":ke[9]||(ke[9]=Lt=>p.value.dpRealImagesDir=Lt)},null,8,["modelValue"])]),_:1}),z(zr,{label:"统一文件夹路径"},{label:q(()=>[de("span",null,[ke[63]||(ke[63]=Ue(" 统一文件夹路径 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[62]||(ke[62]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"1.jpg"')])],-1),de("div",null,[de("span",null,"如: 1.jpg, 2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),ke[64]||(ke[64]=Ue(" ： ",-1))])]),default:q(()=>[z(Br,{modelValue:p.value.cmRealImagesDir,"onUpdate:modelValue":ke[10]||(ke[10]=Lt=>p.value.cmRealImagesDir=Lt)},null,8,["modelValue"])]),_:1}),z(Ye,{"content-position":"left"},{default:q(()=>[...ke[65]||(ke[65]=[Ue("包装图",-1)])]),_:1}),z(zr,null,{label:q(()=>[de("span",null,[ke[67]||(ke[67]=Ue(" 独立文件夹路径 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[66]||(ke[66]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"SPU-索引.jpg"')])],-1),de("div",null,[de("span",null,"如: 123456789-1.jpg, 123456789-2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),ke[68]||(ke[68]=Ue(" ： ",-1))])]),default:q(()=>[z(Br,{modelValue:p.value.dpPackageImagesDir,"onUpdate:modelValue":ke[11]||(ke[11]=Lt=>p.value.dpPackageImagesDir=Lt)},null,8,["modelValue"])]),_:1}),z(zr,null,{label:q(()=>[de("span",null,[ke[70]||(ke[70]=Ue(" 统一文件夹路径 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[69]||(ke[69]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"1.jpg"')])],-1),de("div",null,[de("span",null,"如: 1.jpg, 2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),ke[71]||(ke[71]=Ue(" ： ",-1))])]),default:q(()=>[z(Br,{modelValue:p.value.cmPackageImagesDir,"onUpdate:modelValue":ke[12]||(ke[12]=Lt=>p.value.cmPackageImagesDir=Lt)},null,8,["modelValue"])]),_:1}),z(Ye,{"content-position":"left"},{default:q(()=>[...ke[72]||(ke[72]=[Ue("纸质说明书实拍图",-1)])]),_:1}),z(zr,null,{label:q(()=>[de("span",null,[ke[74]||(ke[74]=Ue(" 独立文件夹路径 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[73]||(ke[73]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"SPU-索引.jpg"')])],-1),de("div",null,[de("span",null,"如: 123456789-1.jpg, 123456789-2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),ke[75]||(ke[75]=Ue(" ： ",-1))])]),default:q(()=>[z(Br,{modelValue:p.value.dpManualImagesDir,"onUpdate:modelValue":ke[13]||(ke[13]=Lt=>p.value.dpManualImagesDir=Lt)},null,8,["modelValue"])]),_:1}),z(zr,null,{label:q(()=>[de("span",null,[ke[77]||(ke[77]=Ue(" 统一文件夹路径 ",-1)),z(mt,{placement:"top"},{content:q(()=>[...ke[76]||(ke[76]=[de("div",null,[de("span",null,[Ue("图片命名规则: "),de("strong",null,'"1.jpg"')])],-1),de("div",null,[de("span",null,"如: 1.jpg, 2.png")],-1)])]),default:q(()=>[z(nt,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),ke[78]||(ke[78]=Ue(" ： ",-1))])]),default:q(()=>[z(Br,{modelValue:p.value.cmManualImagesDir,"onUpdate:modelValue":ke[14]||(ke[14]=Lt=>p.value.cmManualImagesDir=Lt)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},jk=cn(Nq,[["__scopeId","data-v-8efd18f3"]]),jq={__name:"Checkboxes",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get:()=>r.modelValue,set:g=>i("update:modelValue",g)});function t(g,m){return g.startsWith(m)?g.substring(m.length):g}const c=()=>{var g;return(g=document.querySelector("div#root div.rocket-spin-container"))==null?void 0:g.firstChild},u=()=>{const g=[],m=document.querySelectorAll("#root tbody tr td:first-child img");if((m==null?void 0:m.length)>0)for(const p of m){const _=p.closest("td");g.push(_)}return g},f=g=>{var w;const m=g.querySelectorAll("span"),p=Array.from(m).find(x=>x.textContent.includes("SPU："));if(!p)return console.error("SPU span 不存在",g),null;const _=p.parentElement;if(!_)return console.error("SPU div 不存在",g),null;const y=_.textContent,h=t(y,"SPU："),d=_.parentElement.firstChild,A=d==null?void 0:d.textContent,v=(w=g.querySelector("img"))==null?void 0:w.src;return h&&A&&v?{spuId:h,spuName:A,spuImg:v}:(console.error("SPU 查询失败",{spuId:h,spuName:A,spuImg:v}),null)},o=(g,m)=>{g.style.display="inline-block",g.style.marginLeft="16px",g.style.marginRight="16px",m.insertBefore(g,m.childNodes[0])},l=(g,m)=>{g.style.margin="auto 10px",m.firstChild.insertBefore(g,m.firstChild.childNodes[0])};return(g,m)=>(Oe(),Et(Ry,{modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),mainCheckboxContainerGetter:c,subCheckboxContainersGetter:u,spuGetter:f,insertMainDiv:o,insertSubDiv:l},null,8,["modelValue"]))}},Hq={__name:"BatchUpdateProductSnapshot",setup(a){const s=we([]),r=we({rapidScreening:0,regTypeOfImage:[],identifyStatus:[],ItIsAvailable:"",productID:{type:"",content:""},productName:"",productCategory:[]});document.querySelector(".rocket-row-flex").addEventListener("click",g=>{const m=g.target.closest(".rocket-col > div");if(!m)return;const p=m.textContent.trim();p.includes("待传图")?setTimeout(()=>{m.querySelector("i.rocketicon-check")?r.value.rapidScreening=1:r.value.rapidScreening=0},50):p.includes("图中标签有异常")&&setTimeout(()=>{m.querySelector("i.rocketicon-check")?r.value.rapidScreening=2:r.value.rapidScreening=0},50)});const i=(g,m)=>{const p=document.querySelector(g);if(p){const _=p.closest(".rocket-form-field-item").querySelector(".rocket-select-selection-overflow"),y={childList:!0,subtree:!0},h=new MutationObserver(d=>{d.forEach(A=>{if(A.type==="childList"){const v=p.closest(".rocket-form-field-item").querySelectorAll(".rocket-select-selection-item-content"),w=Array.from(v).map(x=>x.textContent.trim());m(w)}})});_&&h.observe(_,y)}},n=()=>{const g=document.querySelector("#goodsName"),m=g?g.closest(".rocket-input-affix-wrapper").querySelector(".rocket-input-suffix"):null;g?(g.addEventListener("input",p=>{const _=p.target.value.trim();r.value.productName=_}),m&&m.addEventListener("click",()=>{r.value.productName=""})):console.error("商品名称输入框未找到")},t=()=>{var m,p;const g=(m=document.querySelector('label[title="商品ID查询"]'))==null?void 0:m.closest(".rocket-form-field-item");if(g){const _=g.querySelector(".rocket-select-selector");if(_){const y=_.querySelector(".rocket-select-selection-item");if(y){r.value.productID.type=y.textContent.trim();const d=r.value.productID.type==="SKC"?"skcIdStr":"spuIdStr",A=document.getElementById(d);if(A){A.addEventListener("input",w=>{r.value.productID.content=w.target.value.trim()});const v=(p=A.closest(".rocket-input-affix-wrapper"))==null?void 0:p.querySelector(".rocket-input-suffix");v&&v.addEventListener("click",()=>{r.value.productID.content=""})}else console.error(`未找到对应输入框: ${d}`)}new MutationObserver(()=>{const d=_.querySelector(".rocket-select-selection-item");if(d){r.value.productID.type=d.textContent.trim();const A=r.value.productID.type==="SKC"?"skcIdStr":"spuIdStr",v=document.getElementById(A);v?v.addEventListener("input",w=>{var C;r.value.productID.content=w.target.value.trim();const x=(C=v.closest(".rocket-input-affix-wrapper"))==null?void 0:C.querySelector(".rocket-input-suffix");x&&x.addEventListener("click",()=>{r.value.productID.content=""})}):console.error(`未找到对应输入框: ${A}`)}}).observe(_,{childList:!0,subtree:!0,attributes:!0})}}},c=()=>{const g=document.querySelector('label[title="商品是否在售"]'),m=g?g.closest(".rocket-form-field-item").querySelector(".rocket-select"):null;m&&new MutationObserver(()=>{const _=m.querySelector(".rocket-select-selection-item");_?r.value.ItIsAvailable=_.textContent.trim():m.querySelector(".rocket-select-selection-placeholder")&&(r.value.ItIsAvailable="")}).observe(m,{childList:!0,subtree:!0})},u=()=>{i('label[for="checkTypeList"]',g=>{r.value.regTypeOfImage=g})},f=()=>{i('label[for="checkTypeStatusList"]',g=>{r.value.identifyStatus=g})},o=()=>{i('label[for="cateIdList"]',g=>{r.value.productCategory=g})},l=Array.from(document.querySelectorAll(".rocket-space-item .rocket-btn")).find(g=>g.innerText.trim()==="重 置");return l&&l.addEventListener("click",()=>{r.value={rapidScreening:r.value.rapidScreening,regTypeOfImage:[],identifyStatus:[],ItIsAvailable:"",productID:{type:"",content:""},productName:"",productCategory:[]},setTimeout(()=>{t(),n(),c(),u(),f(),o()},0)}),t(),n(),c(),u(),f(),o(),(g,m)=>(Oe(),st(Zt,null,[z(jk,{FilterList:r.value,spus:s.value},null,8,["FilterList","spus"]),z(jq,{modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=p=>s.value=p)},null,8,["modelValue"])],64))}},Qq={class:"label-content"},zq={class:"option-container"},Vq={class:"product-title"},Wq={key:0},Gq={class:"desc-text"},$q={key:0,class:"success-msg"},Kq={key:1,class:"error-msg"},Yq={class:"filterCriteria"},Xq={class:"certTypes",style:{color:"#000",margin:"20px 0"}},Zq={style:{width:"350px",display:"flex","justify-content":"flex-end"}},Jq={class:"option-container"},qq={style:{width:"100%",display:"flex","align-items":"center","justify-content":"flex-end",gap:"20px"}},eee={__name:"BatchUploadButton",props:{spus:{type:Array,default:()=>[]}},setup(a){const s=a,r=we(null),i=we("first"),n=we(!1),t=we(!1),c=we(),u=we(!1),f=Pr(()=>{var Y;return((Y=s.spus)==null?void 0:Y.length)>0?s.spus.map(K=>K.spuId):[]}),o=we([]),l=Pr(()=>o.value.filter(Y=>Y.selectedTemplate)),g=()=>{var Y;return(Y=f.value)!=null&&Y.length?(o.value=[],k.value=!1,!0):(ut.error("请先选择商品"),!1)},m=we([{label:"待上传",value:1},{label:"上传中",value:2},{label:"上传失败",value:3},{label:"上传成功",value:4},{label:"待更新",value:5},{label:"上传完成",value:6},{label:"部分上传失败",value:7},{label:"部分待更新",value:8},{label:"部分待上传",value:9},{label:"部分上传中",value:10},{label:"部分上传完成",value:11}]),p=we({productIds:"",productName:"",certTypes:[],uploadStatusList:[],lackPropertyStatusList:[],isOnSale:null}),_=[{value:1,label:"缺失"},{value:2,label:"不缺失"}],y=[{value:"1",label:"是"},{value:"2",label:"否"}],h=we([1,3,7,9]),d={certTypes:[{required:!0,message:"资质名称不能为空",trigger:"blur"}]},A=Kn(),v=Y=>{Y.templates||z3({cert_type:Y.cert_type}).then(({status:K,errorMsg:oe,error:pe,certs:ve})=>{if(K!==0){ut.error(`获取资质模板失败: ${oe||pe}`);return}Y.templates=ve}).catch(K=>{ut.error(`获取资质模板失败: ${K.message||K}`)}).finally(()=>{})},w=({cert_type:Y,product_id:K})=>Un.post("/mms/arbok/product_cert/query/detail",{cert_type:Y,product_id:K},{headers:{Mallid:A.id}}),x=()=>Un.post("/mms/arbok/product_cert/query/all_cert",{},{headers:{Mallid:A.id}}),C=(Y,K,oe)=>{const pe=Y.templates[K];oe.stopPropagation(),Pn.confirm(`确定要删除当前资质证书下的模板'${pe.template_name}'吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Q3({id:pe.id}).then(({status:ve,errorMsg:ge,error:ue})=>{if(ve!==0){ut.error(`删除模板出错: ${ge||ue}`);return}Y.templates.splice(K,1),Y.selectedTemplate=null})}).catch(()=>{})},k=we(!1),T=(Y,K,oe,pe)=>{Y.finishedNum++,K.isSuccess=oe,K.msg=pe},S=we(!1),M=async()=>{var Y,K;if(i.value==="first"){k.value=!0,S.value=!0;for(let oe of l.value){oe.uploading=!0,oe.finishedNum=0;for(let pe of oe.products)pe.isSuccess=!1,pe.msg="";for(let pe of oe.products)try{const{success:ve,error_msg:ge,errorMsg:ue,result:Te}=await w({cert_type:oe.cert_type,product_id:pe.product_id});if(!ve){T(oe,pe,!1,`获取资质详情失败: ${ue||ge}`);continue}const Ee={productId:pe.product_id,realPictures:(K=(Y=Te.product_cert_info)==null?void 0:Y.real_pictures)==null?void 0:K.map(Se=>({imageUrl:Se.image_url})),extendedInfo:{hitUploadGray:Te.extended_info.hit_upload_gray,hitNewDocGray:Te.extended_info.hit_new_doc_gray,hitFrDocGray:Te.extended_info.hit_fr_doc_gray,hitUploadMultiAuthCodesGray:Te.extended_info.hit_upload_multi_auth_codes_gray,hitUploadMultiLanguageGary:Te.extended_info.hit_upload_multi_language_gary}},ye=JSON.parse(oe.selectedTemplate.content);try{const{success:Se,errorMsg:Fe,error_msg:Ve}=await Un({url:"/bg-lich-mms/cert/product/upload",headers:{Mallid:A.id},method:"POST",data:{...ye,...Ee}});let ke=Fe||Ve;if(ke&&ke.includes("请稍后重试")){ke="操作过于频繁, 请稍后重试",T(oe,pe,Se,Se?"上传成功":`上传失败: ${ke}`),oe.uploading=!1,k.value=!1,S.value=!1;return}T(oe,pe,Se,Se?"上传成功":`上传失败: ${Fe||Ve}`)}catch(Se){T(oe,pe,!1,`发送上传请求失败: ${Se.message||Se}`),console.error(Se)}}catch(ve){T(oe,pe,!1,`发送资质详情请求失败: ${ve.message||ve}`),console.error(ve)}oe.uploading=!1}k.value=!1,S.value=!1}else await c.value.validate(async(oe,pe)=>{var ve,ge;if(oe){let ue=!0;const Te=Date.now().toString();if(!L.value){ut.error("请先填写需要上传的商品数量");return}if(p.value.certTypes.forEach(Ee=>{if(!R.value[Ee]||R.value[Ee]===""){ue=!1;const ye=ie(Ee);ut.error(`请先为资质【${ye}】选择模板`)}}),ue){const Ee=Object.keys(R.value).map(ye=>({certType:+ye,templateId:R.value[ye]}));k.value=!0,S.value=!0;try{r.value.start(()=>kf({uuid:Te})).then(nt=>{nt===1&&(n.value=!1)}).catch(nt=>{ut({message:`读取进度失败: ${nt}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{r.value.stop()});const{productIds:ye,productName:Se,certTypes:Fe,isOnSale:Ve,lackPropertyStatusList:ke,uploadStatusList:Pe}=p.value,Re=await EK({mallId:A.id,uuid:Te,certTemplates:Ee,filter:{uploadStatusList:Pe.length>0?Pe:null,certTypes:Fe||null,productIds:ye&&ye.trim()?ye.split(",").map(nt=>nt.trim()):null,productName:Se||null,quantityLimit:L.value||null,isOnSale:Ve==="1"?!0:Ve==="2"?!1:null,lackPropertyStatusList:ke.length>0?ke:null}});if(Re.status!==0){r.value.stop(),ut({message:`批量上传商品资质失败: ${Re.errorMsg||"未知错误"}`,type:"error",duration:1e4,zIndex:999999999});return}if(Re.successCnt===0&&Re.failCnt===0){r.value.stop(),ut({message:"没有筛选到任何商品，请检查筛选条件。",type:"error",duration:1e4,zIndex:999999999});return}const Ye=Re.failCnt>0||((ve=Re.failSpuErrorList)==null?void 0:ve.length);let Ke="";if(Re.successCnt!==0&&(Ke+=`<p class="notify-success-text">批量上传商品资质成功<strong>${Re==null?void 0:Re.successCnt}个</strong></p>`),(ge=Re.failSpuErrorList)!=null&&ge.length){Ke+=`<p class="notify-error-text">失败<strong>${Re.failSpuErrorList.length}个</strong></p><ul style="padding: 0">`;for(const nt of Re.failSpuErrorList)Ke+=`<li>SPU: ${nt.spuId}<ul><li class="notify-error-text">${nt.Error}</li></ul></li>`;Ke+="</ul>"}const ot=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:Ke})});ha({title:"提示",message:ot,dangerouslyUseHTMLString:!1,type:Ye?"warning":"success",customClass:"CustomNotifications",duration:Ye?432e5:4e3})}catch(ye){ut({message:`操作失败: ${ye.message||ye}`,type:"error",duration:1e4,zIndex:999999999})}finally{k.value=!1,S.value=!1}}else console.log("存在未选择的资质模板，无法提交")}else console.log("error submit!",pe)})},P=we([]),N=()=>{const Y=P.value.filter(ve=>f.value.includes(ve.product_base_info.product_id+"")),K=new Map,oe=new Map;for(let ve of Y)for(let ge of ve.product_cert_info_list)h.value.includes(ge.upload_status)&&(K.has(ge.cert_name)||(K.set(ge.cert_name,[]),oe.set(ge.cert_name,ge)),K.get(ge.cert_name).push(ve.product_base_info));const pe=oe.keys();o.value=[];for(let ve of pe)o.value.push({...oe.get(ve),products:Array.from(K.get(ve)).map(ge=>({product_id:ge.product_id,product_name:ge.product_name,leaf_category_name:ge.leaf_category_name,isSuccess:!1,msg:""})),selectedTemplate:null,uploading:!1,finishedNum:0})},B=Y=>Y.products.filter(K=>K.msg&&K.isSuccess).length,O=Y=>Y.products.filter(K=>K.msg&&!K.isSuccess).length,I=()=>{const Y=document.querySelector("form.rocket-form-field"),K=Y==null?void 0:Y.querySelector("button.rocket-btn.rocket-btn-primary");return(K==null?void 0:K.textContent)==="查 询"?(K.click(),!0):(ut.error("插件遇到点问题, 可能是 TEMU 更新导致的, 请联系客服"),console.error("未找到查询按钮"),!1)};window.mmsArbokProductCertQueryListListener&&window.removeEventListener("message",window.mmsArbokProductCertQueryListListener),window.mmsArbokProductCertQueryListListener=Y=>{if(Y.data.type==="/mms/arbok/product_cert/query/list"){const{response:K,params:oe}=Y.data;console.log("cert-params",oe);const{success:pe,error_code:ve,error_msg:ge,result:ue}=K;pe&&(P.value=ue.product_with_cert_list,N()),u.value=!1}},oa(()=>{u.value=!0,window.addEventListener("message",window.mmsArbokProductCertQueryListListener),il(()=>{I()})});const F=async Y=>{t.value=!0;let K=await A.init();K&&(K=await Y()),t.value=!1,K&&g()&&(N(),n.value=!0)},L=we(null),R=we({}),U=we({}),V=async Y=>{const K=await z3({cert_type:Y});K.status===0?U.value[Y]=K.certs:ut.error(`获取资质模板失败: ${K.errorMsg||K.error}`)},W=Y=>{Pn.confirm(`确定要删除当前资质证书下的模板【${Y.template_name}】吗?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(async()=>{const K=await Q3({id:Y.id});if(K.status!==0){ut.error(`删除模板出错: ${K.errorMsg||K.error}`);return}for(const[oe,pe]of Object.entries(R.value))if(pe===Y.id){R.value[oe]=null;break}}).catch(()=>{})},Q=()=>{L.value="",i.value="first",c.value.resetFields()},le=we({}),G=we([]),fe=async()=>{var K;(K=r.value)==null||K.reset();const Y=await x();Y.success===!0&&(le.value=Object.entries(Y.result.cert_status).map(([oe,pe])=>({value:oe,label:pe})),G.value=Y.result.cert_info_list)},ie=Y=>{const K=G.value.find(oe=>oe.cert_type===Y);return K?K.cert_name:""},he=()=>{window.open("https://www.kuajingabc.com/#/manual/58","_blank")};return(Y,K)=>{const oe=Ce("el-button"),pe=Ce("el-tooltip"),ve=Ce("el-alert"),ge=Ce("el-option"),ue=Ce("el-select"),Te=Ce("el-form-item"),Ee=Ce("el-divider"),ye=Ce("el-icon"),Se=Ce("el-form"),Fe=Ce("el-tab-pane"),Ve=Ce("el-col"),ke=Ce("el-row"),Pe=Ce("el-input-number"),Re=Ce("el-tabs"),Ye=Ce("el-dialog");return Oe(),st(Zt,null,[z($0,null,{default:q(({checkAuth:Ke})=>[z(oe,{class:"custom-button",type:"primary",onClick:ot=>F(Ke),loading:t.value||u.value},{default:q(()=>[...K[11]||(K[11]=[de("span",null,"【凌风跨境工具箱】批量上传商品资质",-1)])]),_:1},8,["onClick","loading"])]),_:1}),z(Ye,{class:"warp-float",modelValue:n.value,"onUpdate:modelValue":K[10]||(K[10]=Ke=>n.value=Ke),width:"1400px","append-to-body":"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,onClose:Q,onOpen:fe,style:{"border-radius":"15px"},"align-center":""},{header:q(()=>[de("div",{style:{display:"flex","align-items":"center"}},[K[12]||(K[12]=de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量上传商品资质",-1)),de("div",{class:"DescriptionTips",onClick:he},"查看功能说明")])]),footer:q(()=>{var Ke;return[de("div",qq,[z(oe,{onClick:K[9]||(K[9]=ot=>n.value=!1),disabled:k.value},{default:q(()=>[...K[21]||(K[21]=[Ue("关 闭",-1)])]),_:1},8,["disabled"]),z(oe,{class:"custom-button",type:"primary",disabled:i.value==="first"?!((Ke=l.value)!=null&&Ke.length):!1,loading:k.value,onClick:M},{default:q(()=>[...K[22]||(K[22]=[Ue(" 开始上传资质 ",-1)])]),_:1},8,["disabled","loading"])])]}),default:q(()=>[z(Re,{modelValue:i.value,"onUpdate:modelValue":K[8]||(K[8]=Ke=>i.value=Ke),class:"demo-tabs"},{default:q(()=>[z(Fe,{disabled:S.value,label:"从选择的商品中上传商品资质",name:"first"},{default:q(()=>[z(St(_i),{height:"512px",always:""},{default:q(()=>[z(ve,{style:{width:"100%","margin-top":"10px"},type:"info",closable:!1},{default:q(()=>[de("div",null,[z(pe,{"raw-content":""},{content:q(()=>[K[13]||(K[13]=de("p",null,"SPU:",-1)),(Oe(!0),st(Zt,null,Hr(f.value,Ke=>(Oe(),st("p",{key:Ke},ht(Ke),1))),128))]),default:q(()=>[de("span",null,[K[14]||(K[14]=Ue("当前选中",-1)),de("strong",null,ht(f.value.length)+"个",1),K[15]||(K[15]=Ue("商品",-1))])]),_:1})])]),_:1}),z(Se,{size:"small",disabled:k.value},{default:q(()=>[z(Te,{label:"商品资质状态","label-width":"320px",style:{"margin-top":"10px"}},{default:q(()=>[z(ue,{class:"input-item",modelValue:h.value,"onUpdate:modelValue":K[0]||(K[0]=Ke=>h.value=Ke),multiple:"",placeholder:"请选择资质状态",onChange:N},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(m.value,Ke=>(Oe(),Et(ge,{key:Ke.value,label:Ke.label,value:Ke.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(Te,null,{default:q(()=>[z(Ee)]),_:1}),(Oe(!0),st(Zt,null,Hr(o.value,Ke=>(Oe(),Et(Te,{key:Ke.cert_type,"label-width":"320px"},{label:q(()=>[z(pe,{content:`${Ke.cert_name}: ${Ke.show_name}`},{default:q(()=>[de("span",Qq,ht(Ke.cert_name)+": "+ht(Ke.show_name),1)]),_:2},1032,["content"])]),default:q(()=>[z(ue,{class:"input-item",modelValue:Ke.selectedTemplate,"onUpdate:modelValue":ot=>Ke.selectedTemplate=ot,"value-key":"id",placeholder:"选择资质模板",onVisibleChange:ot=>ot&&v(Ke),clearable:!0},{empty:q(()=>[...K[16]||(K[16]=[de("span",{style:{color:"var(--lf-text-color-secondary)","font-size":"13px"}}," 未查询到模板, 请先保存该资质证书模板 ",-1)])]),default:q(()=>[Ke.templates?(Oe(!0),st(Zt,{key:0},Hr(Ke.templates,(ot,nt)=>(Oe(),Et(ge,{key:ot.id,label:ot.template_name,value:ot},{default:q(()=>[de("div",zq,[de("span",null,ht(ot.template_name),1),z(oe,{type:"text",onClick:mt=>C(Ke,nt,mt)},{default:q(()=>[z(ye,null,{default:q(()=>[z(St(qh))]),_:1})]),_:1},8,["onClick"])])]),_:2},1032,["label","value"]))),128)):tr("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","onVisibleChange"]),de("div",null,[z(pe,{"raw-content":""},{content:q(()=>[de("ul",null,[(Oe(!0),st(Zt,null,Hr(Ke.products,ot=>(Oe(),st("li",{key:ot.product_id},[de("span",Vq,ht(ot.leaf_category_name)+"; SPU: "+ht(ot.product_id)+"; "+ht(ot.product_name),1),ot.msg?(Oe(),st("ul",Wq,[de("li",null,[de("span",{class:ao(ot.isSuccess?"success-msg":"error-msg")},ht(ot.msg),3)])])):tr("",!0)]))),128))])]),default:q(()=>[de("div",Gq,[de("div",null,[de("span",null,"当前匹配"+ht(Ke.products.length)+"个商品",1),Ke.finishedNum>0?(Oe(),st(Zt,{key:0},[z(Ee,{direction:"vertical"}),B(Ke)>0?(Oe(),st("span",$q," 成功"+ht(B(Ke))+"个 ",1)):tr("",!0),O(Ke)>0?(Oe(),st("span",Kq," 失败"+ht(O(Ke))+"个 ",1)):tr("",!0)],64)):tr("",!0)]),Ke.uploading?(Oe(),Et(ye,{key:0,class:"spin"},{default:q(()=>[z(St(Xh))]),_:1})):tr("",!0)])]),_:2},1024)])]),_:2},1024))),128))]),_:1},8,["disabled"])]),_:1})]),_:1},8,["disabled"]),z(Fe,{disabled:S.value,label:"从满足自定义条件的商品中上传商品资质",name:"second"},{default:q(()=>[de("div",Yq,[z(Se,{class:"uploadForm",model:p.value,rules:d,inline:"","label-width":"auto","label-position":"right",ref_key:"ruleFormRef",ref:c},{default:q(()=>[z(ke,{style:{"margin-bottom":"20px"}},{default:q(()=>[z(Ve,{span:8},{default:q(()=>[z(Te,{label:"SPU ID",prop:"productIds"},{default:q(()=>[z(St(gx),{disabled:S.value,clearable:"",modelValue:p.value.productIds,"onUpdate:modelValue":K[1]||(K[1]=Ke=>p.value.productIds=Ke),style:{width:"310px"},size:"small",placeholder:"多个值之间以英文逗号,间隔"},null,8,["disabled","modelValue"])]),_:1})]),_:1}),z(Ve,{span:8},{default:q(()=>[z(Te,{label:"商品名称",prop:"productName"},{default:q(()=>[z(St(gx),{disabled:S.value,clearable:"",modelValue:p.value.productName,"onUpdate:modelValue":K[2]||(K[2]=Ke=>p.value.productName=Ke),style:{width:"310px"},size:"small",placeholder:"请输入"},null,8,["disabled","modelValue"])]),_:1})]),_:1}),z(Ve,{span:8},{default:q(()=>[z(Te,{label:"资质名称",prop:"certTypes"},{default:q(()=>[z(ue,{filterable:"",multiple:"",clearable:"",modelValue:p.value.certTypes,"onUpdate:modelValue":K[3]||(K[3]=Ke=>p.value.certTypes=Ke),style:{width:"310px"},size:"small",disabled:S.value},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(G.value,Ke=>(Oe(),Et(ge,{key:Ke.cert_type,value:Ke.cert_type,label:Ke.cert_name},null,8,["value","label"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1}),z(ke,null,{default:q(()=>[z(Ve,{span:8},{default:q(()=>[z(Te,{label:"资质上传状态",prop:"uploadStatusList"},{default:q(()=>[z(ue,{modelValue:p.value.uploadStatusList,"onUpdate:modelValue":K[4]||(K[4]=Ke=>p.value.uploadStatusList=Ke),style:{width:"310px"},size:"small",clearable:"",multiple:"",disabled:S.value},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(le.value,Ke=>(Oe(),Et(ge,{key:Ke.value,value:Ke.value,label:Ke.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1}),z(Ve,{span:8},{default:q(()=>[z(Te,{label:"是否缺失合规信息",prop:"lackPropertyStatusList"},{default:q(()=>[z(ue,{modelValue:p.value.lackPropertyStatusList,"onUpdate:modelValue":K[5]||(K[5]=Ke=>p.value.lackPropertyStatusList=Ke),style:{width:"310px"},size:"small",clearable:"",multiple:"",disabled:S.value},{default:q(()=>[(Oe(),st(Zt,null,Hr(_,Ke=>z(ge,{key:Ke.value,value:Ke.value,label:Ke.label},null,8,["value","label"])),64))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1}),z(Ve,{span:8},{default:q(()=>[z(Te,{label:"是否在售",prop:"isOnSale"},{default:q(()=>[z(ue,{modelValue:p.value.isOnSale,"onUpdate:modelValue":K[6]||(K[6]=Ke=>p.value.isOnSale=Ke),style:{width:"310px"},size:"small",clearable:"",disabled:S.value},{default:q(()=>[(Oe(),st(Zt,null,Hr(y,Ke=>z(ge,{key:Ke.value,value:Ke.value,label:Ke.label},null,8,["value","label"])),64))]),_:1},8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),de("div",Xq,[K[17]||(K[17]=Ue("上传满足上述条件的前 ",-1)),z(Pe,{disabled:S.value,size:"small",modelValue:L.value,"onUpdate:modelValue":K[7]||(K[7]=Ke=>L.value=Ke),"controls-position":"right",min:0},null,8,["disabled","modelValue"]),K[18]||(K[18]=Ue(" 个商品 ",-1))]),K[20]||(K[20]=de("div",{class:"certTypes",style:{color:"#000","margin-bottom":"20px"}},"资质模板",-1)),p.value.certTypes.length?(Oe(),Et(St(_i),{key:0,height:"300px",always:""},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(p.value.certTypes,Ke=>(Oe(),st("div",{style:{"margin-bottom":"10px",color:"#000",display:"flex","align-items":"center"},key:Ke.cert_type},[de("div",Zq,ht(ie(Ke))+"：",1),z(ue,{class:"input-item",modelValue:R.value[Ke],"onUpdate:modelValue":ot=>R.value[Ke]=ot,placeholder:"选择资质模板",onVisibleChange:ot=>V(Ke),clearable:!0,disabled:S.value},{empty:q(()=>[...K[19]||(K[19]=[de("span",{style:{color:"var(--lf-text-color-secondary)","font-size":"13px"}}," 未查询到模板, 请先保存该资质证书模板 ",-1)])]),default:q(()=>[(Oe(!0),st(Zt,null,Hr(U.value[Ke]||[],ot=>(Oe(),Et(ge,{key:ot.id,label:ot.template_name,value:ot.id},{default:q(()=>[de("div",Jq,[de("span",null,ht(ot.template_name),1),z(oe,{type:"text",onClick:_0(nt=>W(ot),["stop"])},{default:q(()=>[z(ye,null,{default:q(()=>[z(St(qh))]),_:1})]),_:1},8,["onClick"])])]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onVisibleChange","disabled"])]))),128))]),_:1})):tr("",!0),z(Qc,{"stroke-width":12,ref_key:"progressTickerRef",ref:r,"success-text":"更新成功",style:{"margin-top":"10px"}},null,512)]),_:1},8,["disabled"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])],64)}}},tee=cn(eee,[["__scopeId","data-v-8da08c5f"]]),ree={__name:"Checkboxes",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get:()=>r.modelValue,set:l=>i("update:modelValue",l)}),t=()=>{const l=document.querySelector("div.rocket-table-wrapper");return l==null?void 0:l.previousSibling},c=()=>{const l=[],g=document.querySelectorAll("#root tbody tr td:first-child img");if((g==null?void 0:g.length)>0)for(const m of g){const p=m.closest("td");l.push(p)}return l},u=l=>{var h,d,A,v;const g=(h=l.firstChild)==null?void 0:h.lastChild,m=(d=g==null?void 0:g.childNodes[2])==null?void 0:d.textContent,p=m==null?void 0:m.match(/商品SPU ID：(\d+)/)[1],_=(A=g==null?void 0:g.childNodes[0])==null?void 0:A.textContent,y=(v=l.querySelector("img"))==null?void 0:v.src;return p&&_&&y?{spuId:p,spuName:_,spuImg:y}:(console.error("SPU 查询失败",{spuId:p,spuName:_,spuImg:y}),null)},f=(l,g)=>{l.style.display="inline-block",l.style.marginLeft="30px",l.style.marginRight="16px",g.insertBefore(l,g.childNodes[0])},o=(l,g)=>{l.style.margin="auto 10px",g.firstChild.insertBefore(l,g.firstChild.childNodes[0])};return(l,g)=>(Oe(),Et(Ry,{modelValue:n.value,"onUpdate:modelValue":g[0]||(g[0]=m=>n.value=m),mainCheckboxContainerGetter:t,subCheckboxContainersGetter:c,spuGetter:u,insertMainDiv:f,insertSubDiv:o},null,8,["modelValue"]))}},nee={__name:"BatchUploadProductQualification",setup(a){const s=we([]);return(r,i)=>{const n=Ce("el-space");return Oe(),Et(n,{alignment:"center"},{default:q(()=>[z(tee,{spus:s.value},null,8,["spus"]),z(jk,{spus:s.value},null,8,["spus"]),z(ree,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=t=>s.value=t)},null,8,["modelValue"])]),_:1})}}},aee={style:{width:"100%",display:"flex","align-items":"center","justify-content":"flex-end",gap:"20px"}},iee={__name:"SaveTplButton",setup(a){const s=we(!1),r=we(!1),i=we(!1),n=we(),t=we({template_name:"",cert_type:"",content:""}),c=Kn(),u=async()=>{r.value=!0;const o=await c.init();r.value=!1,o&&(s.value=!0)};window.certProductUploadListener=o=>{const l=o.data.type==="/mms/arbok/product_cert/upload/new_cert";if(o.data.type==="/bg-lich-mms/cert/product/upload"||l){if(window.removeEventListener("message",window.certProductUploadListener),l){ha({title:"【凌风跨境工具箱】提示",message:"<p>创建新资质证书时不支持保存模板, 请在上传成功后点击商品列表右侧的 <strong>编辑</strong> / <strong>修改</strong> 按钮保存模板</p>",dangerouslyUseHTMLString:!0,type:"warning",duration:0});return}let{response:m,params:p}=o.data;if(m.success){i.value=!0;const _=p.productCatCertReqList[0].certType;if(!_){ut.error("未找到证书类型, 可能是 TEMU 更新造成的, 请联系客服"),i.value=!1;return}const y={template_name:t.value.template_name,cert_type:_,content:JSON.stringify(p)};SK(y).then(({status:h,error:d,errorMsg:A})=>{h===0?ut.success({message:"保存模板成功",offset:80}):ut.error({message:`保存模板失败: ${d||A}`,offset:80})}).catch(h=>{ut.error({message:`保存模板失败: ${h.message}`,offset:80}),console.error(h)}).finally(()=>{i.value=!1,s.value=!1})}else{const _=m.error_msg||m.errorMsg;_&&_.includes("请稍后重试")&&ut.error("操作过于频繁, 请稍后重试"),i.value=!1,s.value=!1}}};const f=()=>{var m;const o=(m=n.value)==null?void 0:m.parentElement,l=o?o.parentElement:null,g=l?l.childNodes[0]:null;if(!g||g.textContent!=="确 认"){ut.error("未找到提交按钮, 可能是 Temu 版本更新导致的, 请联系客服");return}window.removeEventListener("message",window.certProductUploadListener),window.addEventListener("message",window.certProductUploadListener),g.click(),s.value=!1};return(o,l)=>{const g=Ce("el-button"),m=Ce("el-input"),p=Ce("el-form-item"),_=Ce("el-form"),y=Ce("el-dialog");return Oe(),st("div",{ref_key:"containerRef",ref:n},[z(g,{class:"custom-button",type:"primary",onClick:u,loading:r.value||i.value},{default:q(()=>[...l[3]||(l[3]=[de("span",null,"【凌风跨境工具箱】保存资质证书模板",-1)])]),_:1},8,["loading"]),z(y,{class:"warp-float",modelValue:s.value,"onUpdate:modelValue":l[2]||(l[2]=h=>s.value=h),width:"80%","append-to-body":"","destroy-on-close":"","z-index":1e3},{header:q(()=>[...l[4]||(l[4]=[de("div",{style:{width:"100%"}},[de("h1",null,"【凌风跨境工具箱】资质证书模板")],-1)])]),footer:q(()=>[de("div",aee,[z(g,{onClick:l[1]||(l[1]=h=>s.value=!1),disabled:i.value},{default:q(()=>[...l[5]||(l[5]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(g,{type:"primary",onClick:f,loading:i.value},{default:q(()=>[...l[6]||(l[6]=[Ue(" 提交修改并保存为模板 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(_,null,{default:q(()=>[z(p,{label:"模板名称"},{default:q(()=>[z(m,{modelValue:t.value.template_name,"onUpdate:modelValue":l[0]||(l[0]=h=>t.value.template_name=h),placeholder:"请输入模板名称"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],512)}}},see={class:"flex items-center"},oee={class:"footer_box"},lee={__name:"BatchUploadButton",setup(a){const s=Kn(),r=we("first"),i=Pr(()=>s.id),n=we([]),t=we(),c=we({page:1,pageSize:10,total:0}),u={task_status_list:[2],task_type_list:[1001],type:2},f=we(!1),o=we(!1),l=we(!1),g=we(!1),m=we(!1),p=we(0),_=we(!1),y=()=>{const M=/^(?!;)(?!.*;$)([a-zA-Z0-9]+(?:;[a-zA-Z0-9]+)*)$/;let P='<p><span class="notify-error-text">其他合规信息只能填写英文+数字或纯数字，请重新输入！</span></p>';if(!t.value||!M.test(t.value))return S(1,P);c.value.page=1,c.value.pageSize=10,o.value=!0,h(!0)},h=async M=>{const{page:P,pageSize:N}=c.value;let B={page_num:P,page_size:N};r.value==="second"&&(B={...B,...u}),TX({data:B,Mallid:i.value}).then(async({success:O,result:I,error_code:F,error_msg:L})=>{const{data:R,total:U}=I;if(O){if(M)return c.value.total=U,c.value.page=1,c.value.pageSize=50,h(!1);if(n.value&&n.value.length?R.forEach(W=>{n.value.push(W)}):n.value=R||[],c.value.pageSize*c.value.page<U&&!f.value)return c.value.page+=1,h(!1);if(c.value.total==0||f.value)return;o.value=!1,r.value==="first"?await v():r.value==="second"&&(p.value==1,await d())}else ut.error(`获取商品列表失败: ${L}`)}).catch(O=>{ut.error(`获取商品列表失败: ${O.message}`),console.error(O)}).finally(()=>{})},d=async()=>{l.value=!0,S(1,'<p><span class="notify-error-text">任务执行中，商品数量多则执行时间会长请耐心等待，不要关闭当前页面或操作~</span></p>');for(const P of n.value){if(f.value)break;let N={},B={},O=[],I={};for(const W of P==null?void 0:P.wait_task_dtolist)W.task_name==="加利福尼亚州65号法案"?N=W:W.task_name==="商品识别码"&&(B=W),m.value&&W.task_name==="补充安全信息"&&(I=W);t.value.split(";").forEach(W=>{O.push({name:W})});let F={cat_id:P.cat_id,spu_id:P.spu_id,goods_id:P.goods_id,template_edit_request_list:[{task_id:N.task_id,task_status:N.task_status,task_type:N.task_type,template_id:1,properties:{1000000001:[1000100066]},images:{},input_text:{}},{task_id:B.task_id,task_status:B.task_status,task_type:B.task_type,template_id:51,properties:{},images:{},input_text:{1100100115:{multi_line_inputs:O}}}]};m.value&&(I!=null&&I.task_id)&&F.template_edit_request_list.push({task_id:I.task_id,task_status:I.task_status,task_type:I.task_type,template_id:36,properties:{1000100110:[1000131288]},images:{},input_text:{}});const{success:L,result:R,error_code:U,error_msg:V}=await EX({data:F,Mallid:i.value});if(!L||!(R!=null&&R.result)){ut.error(`修改合规信息（商品识别码）失败: ${V}`);continue}await A(100),p.value+=1,p.value>=c.value.total&&(l.value=!1,_.value=!1,ut.success("修改合规信息（商品识别码）完成"),ha.closeAll())}};function A(M){return new Promise(P=>setTimeout(P,M))}const v=async()=>{l.value=!0,_.value=!1;let M=[];for(const P of n.value)M.push({SPUID:P.spu_id,商品识别码:t.value,update:g.value===!0?"更新":""});try{if(f.value)return;const P=_f.json_to_sheet(M),N=_f.book_new();_f.book_append_sheet(N,P,"商品识别码批量填写表格");const B=A6(N,{bookType:"xlsx",type:"array"}),O=new Blob([B],{type:"application/octet-stream"}),I=await w(),F=new File([O],"商品识别码批量填写表格.xlsx",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",lastModified:new Date().getTime()}),L=new DataTransfer;L.items.add(F),I.files=L.files;const R=new Event("change",{bubbles:!0});I.dispatchEvent(R),S(0,'<p><span class="notify-error-text">其他合规信息-所有的商品识别码己批量设置，正在自动化上传商品识别码表格文件请查看页面弹窗上传进度，务必要根据官方弹窗里提示操作，导入成功后可能需自行再去确认，找到页面的批量上传商品识别码下拉框，点击里面的上传记录选项，然后在打开的弹窗里面再确认导入方可真正导入，请知悉~</span></p>')}catch(P){ut.error(`上传错误:${P}`),console.error("上传错误:",P)}finally{l.value=!1}},w=async()=>{const M=document.querySelector(".rocket-btn.rocket-dropdown-trigger.rocket-btn-sm");if(M)M.dispatchEvent(new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0}));else throw new Error("未找到批量上传商品识别码按钮");await A(200);const P=document.querySelector(".rocket-dropdown-menu-item");if(P)P.click();else throw new Error("未找到上传文件按钮");const N=document.querySelector(".rocket-upload.rocket-upload-select.rocket-upload-select-text>span>input");if(!N)throw new Error("未找到文件输入元素");return N},x=async()=>{_.value=!0},C=()=>{f.value=!0,_.value=!1},k=async()=>{if(!i.value)return!1;c.value.total=0,c.value.page=1,c.value.pageSize=10,p.value=0,o.value=!1,l.value=!1,t.value="",g.value=!1,m.value=!1},T=()=>{t.value="",g.value=!1,m.value=!1},S=(M,P)=>{const N=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:P})});ha({title:"提示",dangerouslyUseHTMLString:!1,message:N,type:M!==0?"error":"success",duration:M!==0?432e5:4e3,customClass:"CustomNotifications"})};return oa(async()=>{await s.initMall()}),(M,P)=>{const N=Ce("el-button"),B=Ce("el-tag"),O=Ce("el-text"),I=Ce("el-input"),F=Ce("el-checkbox"),L=Ce("el-tab-pane"),R=Ce("el-tabs"),U=Ce("el-dialog");return Oe(),st("div",null,[z(No,null,{default:q(({checkAuth:V})=>[z(N,{class:"custom-button",type:"primary",onClick:P[0]||(P[0]=W=>x())},{default:q(()=>[...P[7]||(P[7]=[Ue(" 【凌风跨境工具箱】一键填写其他合规信息(商品识别码) ",-1)])]),_:1})]),_:1}),z(U,{onOpen:k,class:"warp-float",modelValue:_.value,"onUpdate:modelValue":P[6]||(P[6]=V=>_.value=V),width:"600px","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[...P[8]||(P[8]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】其他合规信息批量设置(商品识别码)")],-1)])]),footer:q(()=>[de("div",oee,[z(N,{class:"custom-button",type:"primary",onClick:y,loading:o.value||l.value},{default:q(()=>[Ue(ht(o.value?`获取列表数据中 已完成:${n.value.length}/总:${c.value.total}`:p.value>0?`执行中 已完成:${p.value}/总:${c.value.total}`:"设置"),1)]),_:1},8,["loading"]),z(N,{onClick:C},{default:q(()=>[...P[20]||(P[20]=[Ue("取 消",-1)])]),_:1})])]),default:q(()=>[z(R,{modelValue:r.value,"onUpdate:modelValue":P[5]||(P[5]=V=>r.value=V),onTabClick:T},{default:q(()=>[z(L,{name:"first",disabled:o.value||l.value},{label:q(()=>[de("span",see,[P[10]||(P[10]=de("span",{class:"mr-2"},"官方文件上传方式",-1)),z(B,{class:"mr-2 !p-1",type:"success",effect:"dark"},{default:q(()=>[...P[9]||(P[9]=[Ue("推荐",-1)])]),_:1})])]),default:q(()=>[de("div",null,[de("div",null,[z(O,{type:"success",tag:"ins"},{default:q(()=>[...P[11]||(P[11]=[Ue("商品多推荐使用该方式，速度快!",-1)])]),_:1}),z(O,{type:"danger"},{default:q(()=>[...P[12]||(P[12]=[Ue("将统一批量设置商品的其他合规信息-商品识别码为以下输入框填写的内容,使用官方自带批量上传方式生成excel文件自动上传~",-1)])]),_:1})]),z(I,{class:"mt-2 mb-2",modelValue:t.value,"onUpdate:modelValue":P[1]||(P[1]=V=>t.value=V),style:{width:"100%"},placeholder:""},null,8,["modelValue"]),de("div",null,[z(O,{type:"danger"},{default:q(()=>[...P[13]||(P[13]=[Ue("每个商品识别码只能填写英文+数字或纯数字(注：如需多个，请用英文分号拼接)",-1)])]),_:1})]),de("div",null,[z(O,{class:"flex items-center"},{default:q(()=>[P[14]||(P[14]=Ue("更新替换旧识别码(选中则替换，不选则补充)：",-1)),z(F,{disabled:o.value||l.value,modelValue:g.value,"onUpdate:modelValue":P[2]||(P[2]=V=>g.value=V),label:"更新替换",size:"large"},null,8,["disabled","modelValue"])]),_:1})]),de("div",null,[z(O,{type:"success",tag:"ins"},{default:q(()=>[...P[15]||(P[15]=[Ue("注意：由于官方接口限制，商品数量查询不能超过2w条，本功能最大批量设置2w条数据！",-1)])]),_:1})])])]),_:1},8,["disabled"]),z(L,{label:"普通方式",name:"second",disabled:o.value||l.value},{default:q(()=>[de("div",null,[de("div",null,[z(O,{type:"danger"},{default:q(()=>[...P[16]||(P[16]=[Ue("此功能将统一批量设置商品的其他合规信息-商品识别码为以下输入框填写的内容，且默认选择65号法案信息-警示类型为无需警示(注：只编辑 “其他合规信息且为待上传” 的商品)。",-1)])]),_:1})]),z(I,{class:"mt-2 mb-2",modelValue:t.value,"onUpdate:modelValue":P[3]||(P[3]=V=>t.value=V),style:{width:"100%"},placeholder:""},null,8,["modelValue"]),de("div",null,[z(O,{type:"danger"},{default:q(()=>[...P[17]||(P[17]=[Ue("每个商品识别码只能填写英文+数字或纯数字(注：如需多个，请用英文分号拼接)",-1)])]),_:1})]),de("div",null,[z(O,{class:"flex items-center"},{default:q(()=>[P[18]||(P[18]=Ue("警告或安全信息(补充)：",-1)),z(F,{disabled:o.value||l.value,modelValue:m.value,"onUpdate:modelValue":P[4]||(P[4]=V=>m.value=V),label:"默认选择该项目不适用该产品",size:"large"},null,8,["disabled","modelValue"])]),_:1})]),de("div",null,[z(O,{type:"success",tag:"ins"},{default:q(()=>[...P[19]||(P[19]=[Ue("注意：由于官方接口限制，商品数量查询不能超过2w条，本功能最大批量设置2w条数据！",-1)])]),_:1})])])]),_:1},8,["disabled"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}}},uee=cn(lee,[["__scopeId","data-v-fd0fa04f"]]);function cee(a){return pi({url:"/api/api/batchModifyProductVideo",method:"post",data:a})}const fee={style:{display:"flex","justify-content":"flex-end","margin-top":"20px"}},dee={__name:"VideosUpdateButton",setup(a){const s=ls(),r=Kn(),{mall:i}=Au(r),n=we(!1),t=we(!1),c=we(!1),u=we(),f=we(),o=we({spuIdList:"",mainVideoFolder:"",detailVideoFolder:""});oa(async()=>{await s.getInfo()});const l=async()=>{t.value=!0;const m=await r.init();t.value=!1,m&&(n.value=!0)},g=async()=>{if(await f.value.validate())try{c.value=!0;const p=Sf();u.value.start(p);let _=o.value.spuIdList;_=_.replace(/，/g,","),_=_.replace(/,/g," "),_=_.trim();const y={uuid:p,mallId:`${i.value.mallId}`,spuIdList:_.split(" ").map(C=>+C).filter(C=>C!==0),mainVideoFolder:o.value.mainVideoFolder.trim()||null,detailVideoFolder:o.value.detailVideoFolder.trim()||null};let{status:h,error:d,errorMsg:A,successCnt:v,failCnt:w,failErrorInfoList:x}=await cee(y);if(h!==0)ut.error(`修改失败: ${d||A}`),u.value.stop();else{let C="",k=x&&x.length>0;if(v&&(C+=`<p class="notify-success-text">${v} 个商品修改成功</p>`),w&&(C+=`<p class="notify-error-text">${w} 个商品修改失败</p>`),x&&x.length>0){C+='<ul style="padding: 0;">',C+="<li><p>失败商品信息:</p></li>";for(const S of x)C+=`<li>SPU-${S.spuId}: ${S.errorInfo}</li>`;C+="</ul>"}const T=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:C})});ha({title:"提示",message:T,dangerouslyUseHTMLString:!1,type:k?"warning":"success",customClass:"CustomNotifications",duration:k?0:4e3})}}catch(p){ut.error({message:`修改失败: ${p.message}`,showClose:!0,duration:0}),u.value.stop()}finally{c.value=!1}};return(m,p)=>{const _=Ce("el-button"),y=Ce("el-input"),h=Ce("el-form-item"),d=Ce("el-form"),A=Ce("el-dialog");return Oe(),st(Zt,null,[St(s).hasPermission("batchUpdateVideo")?(Oe(),Et(_,{key:0,class:"inline-custom-button",type:"primary",loading:t.value,onClick:p[0]||(p[0]=v=>l())},{default:q(()=>[...p[7]||(p[7]=[Ue(" 【凌风跨境工具箱】视频批量更新 ",-1)])]),_:1},8,["loading"])):tr("",!0),z(A,{title:"【凌风跨境工具箱】视频批量更新",modelValue:n.value,"onUpdate:modelValue":p[6]||(p[6]=v=>n.value=v),"close-on-press-escape":!1,"close-on-click-modal":!1,width:"50%"},{footer:q(()=>[z(jc,{ref_key:"progressRef",ref:u},null,512),de("div",fee,[z(_,{onClick:p[4]||(p[4]=v=>n.value=!1),disabled:c.value},{default:q(()=>[...p[8]||(p[8]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(_,{type:"primary",onClick:p[5]||(p[5]=v=>g()),loading:c.value},{default:q(()=>[...p[9]||(p[9]=[Ue("确 定",-1)])]),_:1},8,["loading"])])]),default:q(()=>[p[10]||(p[10]=de("div",{class:"tip"},[de("p",{style:{"font-weight":"bold"}},"SPU视频文件夹说明: "),de("p",null,"1、所有需要上传的商品的视频都放在同一个文件夹内"),de("p",null,"2、我们会使用俩个视频对所有SPU进行视频更新, 视频大小限制在500M以内"),de("p",null,"3、主图视频与详情视频都为非必填, 需要批量更新哪个视频则填写对应视频的地址")],-1)),p[11]||(p[11]=de("div",{class:"tip",style:{"margin-top":"20px"}},[de("p",{style:{"font-weight":"bold"}},"效果说明: "),de("p",null,"更新成功后, 文件夹中的视频将替换对应商品的主图视频与详情视频颜")],-1)),p[12]||(p[12]=de("div",{class:"tip",style:{"margin-top":"20px"}},[de("p",{style:{"font-weight":"bold"}},"提示:"),de("p",null,"更新过程中请勿关闭功能界面, 可能会导致视频更新失败")],-1)),z(d,{"label-position":"right","label-width":"220px",ref_key:"formRef",ref:f,disabled:c.value,model:o.value},{default:q(()=>[z(h,{label:"SPU ID:",prop:"spuIdList",rules:[{required:!0,message:"请输入SPU ID",trigger:"blur"}]},{default:q(()=>[z(y,{modelValue:o.value.spuIdList,"onUpdate:modelValue":p[1]||(p[1]=v=>o.value.spuIdList=v),placeholder:"请输入SPU ID, 多个用空格或逗号分隔"},null,8,["modelValue"])]),_:1}),z(h,{label:"主图视频地址:"},{default:q(()=>[z(y,{modelValue:o.value.mainVideoFolder,"onUpdate:modelValue":p[2]||(p[2]=v=>o.value.mainVideoFolder=v),placeholder:"请输入视频文件地址"},null,8,["modelValue"])]),_:1}),z(h,{label:"详情视频地址:"},{default:q(()=>[z(y,{modelValue:o.value.detailVideoFolder,"onUpdate:modelValue":p[3]||(p[3]=v=>o.value.detailVideoFolder=v),placeholder:"请输入视频文件地址"},null,8,["modelValue"])]),_:1})]),_:1},8,["disabled","model"])]),_:1},8,["modelValue"])],64)}}},hee={style:{display:"flex","margin-top":"10px"},class:"submit-dialog"},Aee=["element-loading-text"],pee={class:"desc"},mee={class:"flex justify-end items-center gap-2"},gee={__name:"GoodsExpeditedProcessing",setup(a){const s=we(!1),r=we(!1),i=we({productSelectType:"1",quickTakedown:!0}),n=we("开始加急"),t=we({}),c=we([]),u=we([]),f=we(!1),o=we("正在流程加急");let l=we(0);const g=we({page:1,pageSize:50,total:0});let m=we(0),p=we(),_=we();const y=we([]),h=we([]),d=we(0),A=we([]),v=Kn(),w=async()=>{r.value=!0;const Q=await v.initMall();r.value=!1,Q&&(u.value=[],c.value=[],s.value=!0)};function x(Q){return new Promise(le=>setTimeout(le,Q))}const C=async Q=>{try{f.value=!0,c.value=[],await U(),await T()}catch(le){f.value=!1,console.error(`发送消息失败: ${le}`)}};async function k(){try{let Q=!1;for(await xf({contentType:1,content:"开始商品流程加急 ----------"}),p.value=await xf({contentType:1,content:"图片流程加急"}).then(le=>{var G,fe;return(fe=(G=le==null?void 0:le.data)==null?void 0:G.result)==null?void 0:fe.msgId});!Q&&d.value<30;)await Lc({direction:2,limit:20,msgId:p.value}).then(le=>{var G,fe;le.data.success&&((G=le==null?void 0:le.data)!=null&&G.result.messageList.length)&&((fe=le==null?void 0:le.data)==null||fe.result.messageList.forEach(ie=>{JSON.parse(ie.content).entryList.forEach(Y=>{Y.desc==="商品流程加急"&&(_.value=Y)})}),Q=!0)}),d.value++,await x(1e3);if(d.value===30)return ut.warning("temu无返回 请稍后再试");for(Q=!1,p.value=await xf({contentType:10,content:JSON.stringify({desc:"商品流程加急",id:_.value.id,scene:1,parentMsgId:p.value})}).then(le=>{var G,fe;return(fe=(G=le==null?void 0:le.data)==null?void 0:G.result)==null?void 0:fe.msgId});!Q;)await Lc({direction:2,limit:20,msgId:p.value}).then(le=>{var fe,ie;((ie=(fe=le==null?void 0:le.data)==null?void 0:fe.result)==null?void 0:ie.messageList).forEach(he=>{he.content.indexOf("请发送相关商品给客服，为您加急当前商品流程")!==-1&&(l.value=he.msgId,m.value=JSON.parse(he.content).toolId)}),l.value&&(Q=!0)}),x(500);await S()}catch(Q){console.log(Q)}}async function T(){const{page:Q,pageSize:le}=g.value;let G={hasTagCode:!1,taskMergedStatus:1,...t.value,pageInfo:{pageNo:Q,pageSize:le}};oY(G).then(async fe=>{const{success:ie,result:he,error_code:Y,errorMsg:K}=fe.data,{detailList:oe,total:pe}=he;if(ie){if(g.value.total=pe,oe.forEach(ge=>{ge==null||ge.taskList.forEach(ue=>{ue.productSkcId&&u.value.push(ue.productSkcId)})}),g.value.pageSize*g.value.page<pe)return g.value.page+=1,T();await k()}else ut.error(`获取商品失败: ${K}`)}).catch(fe=>{ut.error(`获取商品失败: ${fe.message}`),console.error(fe)})}async function S(){await M(u.value),i.value.quickTakedown&&(ut.success("商品加急成功！"),f.value=!1)}const M=async Q=>{let G=0,fe=0;for(f.value=!0;G+fe*5<Q.length&&f.value===!0;){const ie=G+fe*5,he=ie+5,Y=Q.slice(ie,he);let K=[],oe=[];console.log(`共${Q.length}条 正在处理${ie}到${he}条`);try{await Promise.all(Y.map(pe=>tx({productSkcId:pe}))).then(pe=>{K=K.concat(pe)}),await Promise.all(K.map(pe=>{var ge,ue,Te;const ve=pe.data;return xf({content:JSON.stringify({name:(ge=ve==null?void 0:ve.result)==null?void 0:ge.productName,img:(ue=ve==null?void 0:ve.result)==null?void 0:ue.productPicture,dataType:4,dataId:(Te=ve==null?void 0:ve.result)==null?void 0:Te.productSkcId,toolId:m.value}),contentType:7,parentMsgId:l.value})})).then(pe=>{pe.forEach(ve=>{oe=oe.concat(ve.data.result)})}),A.value=A.value.concat(oe),i.value.quickTakedown?c.value=A.value.map(pe=>{const{dataId:ve,img:ge,name:ue}=JSON.parse(pe==null?void 0:pe.content);return{img:ge,title:ue,sku:ve,resultMessage:"请在客服消息窗口查看"}}):oe.map(pe=>{h.value.push({msgId:pe.msgId,interval:setInterval(()=>{Lc({direction:2,limit:20,msgId:pe.msgId}).then(ve=>{P(pe.msgId,ve.data.result.messageList)})},2e3),completed:!1})})}catch(pe){console.log(pe)}fe++}};function P(Q,le){le.map(G=>{const fe=G.content.match("(?<=【SKC ID：).*?(?=】)");if(fe){const ie=h.value.find(pe=>String(pe.msgId)===String(Q));ie.completed=!0,clearInterval(ie.interval);const he=A.value.find(pe=>String(JSON.parse(pe.content).dataId)===String(fe[0])),{img:Y,name:K}=JSON.parse(he==null?void 0:he.content);y.value.indexOf(fe[0])===-1&&(y.value.push(fe[0]),c.value.push({img:Y,title:K,sku:fe[0],resultMessage:G.content.match("(?<=】).*?(?=</p>)")[0]}));let oe=0;h.value.forEach(pe=>{pe.completed===!0&&oe++}),oe===h.value.length&&(console.log("商品加急成功"),ut.success("商品加急成功！"),u.value=[],f.value=!1)}})}const N=async Q=>{try{f.value&&await Pn.confirm("当前操作【流程加急】还未全部执行完毕，确认关闭吗？"),f.value=!1,Q(),B()}catch{}},B=()=>{u.value=[],c.value=[],f.value=!1};Ra(s,async Q=>{Q?O():(L()&&await F(),I())});const O=()=>{document.querySelector('div[class*="kefu_kefuOuter"]').classList.add("lingfeng-kefu-wrapper")},I=()=>{const Q=document.querySelector(".lingfeng-kefu-wrapper");Q==null||Q.classList.remove("lingfeng-kefu-wrapper")},F=async()=>{const Q=document.querySelector(".lingfeng-kefu-wrapper"),le=Q==null?void 0:Q.querySelector('div[class*="kefu_kefu"]');return le?(le.click(),await new Promise(G=>setTimeout(G,500)),!0):!1},L=()=>{const Q=document.querySelector(".lingfeng-kefu-wrapper");return!!(Q==null?void 0:Q.querySelector('div[class*="PT_popover_"]'))},R=async()=>{const le=document.querySelector(".lingfeng-kefu-wrapper").querySelector('button[class*="BTN_primary_"]');if(!le)return!1;const G=le.innerText;return G==="发送"?!0:G==="联系官方客服"?(le.click(),await new Promise(fe=>setTimeout(fe,500)),!0):!1},U=async()=>!L()&&!await F()?!1:await R(),V=()=>{window.mmsPicturePageQueryListener&&window.removeEventListener("message",window.mmsPicturePageQueryListener)};window.mmsPicturePageQueryListener=Q=>{if(Q.data.type==="/phoenix-mms/picture/task/pageQuery"){const{response:le,params:G}=Q.data;delete G.pageNum,delete G.pageSize,t.value=JSON.parse(JSON.stringify(G))}};const W=()=>{V(),window.addEventListener("message",window.mmsPicturePageQueryListener)};return oa(()=>{W()}),$l(async()=>{V(),await v.initMall()}),(Q,le)=>{const G=Ce("el-button"),fe=Ce("el-radio-button"),ie=Ce("el-radio-group"),he=Ce("el-form-item"),Y=Ce("el-checkbox"),K=Ce("el-form"),oe=Ce("el-image"),pe=Ce("el-table-column"),ve=Ce("el-table"),ge=Ce("el-dialog"),ue=Ai("loading");return Oe(),st(Zt,null,[z(G,{type:"primary",onClick:w,loading:r.value},{default:q(()=>[...le[4]||(le[4]=[Ue(" 【凌风跨境工具箱】一键商品流程加急【一天官方只能加急一次】 ",-1)])]),_:1},8,["loading"]),z(ge,{modelValue:s.value,"onUpdate:modelValue":le[3]||(le[3]=Te=>s.value=Te),"close-on-click-modal":!1,"close-on-press-escape":!1,top:"2vh",width:"40vw","before-close":N,onClose:W},{header:q(()=>[...le[5]||(le[5]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】一键流程加急")],-1)])]),footer:q(()=>[de("div",mee,[z(G,{onClick:le[2]||(le[2]=Te=>N(()=>{s.value=!1}))},{default:q(()=>[...le[7]||(le[7]=[Ue("关 闭",-1)])]),_:1})])]),default:q(()=>[de("div",hee,[z(K,{inline:!0,model:i.value},{default:q(()=>[z(he,{prop:"productSelectType"},{default:q(()=>[z(ie,{modelValue:i.value.productSelectType,"onUpdate:modelValue":le[0]||(le[0]=Te=>i.value.productSelectType=Te),"aria-label":"label position"},{default:q(()=>[z(fe,{value:"1"},{default:q(()=>[...le[6]||(le[6]=[Ue("当前分类下的商品 ",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(he,{prop:"quickTakedown"},{default:q(()=>[z(Y,{modelValue:i.value.quickTakedown,"onUpdate:modelValue":le[1]||(le[1]=Te=>i.value.quickTakedown=Te),label:"无视结果快速加急"},null,8,["modelValue"])]),_:1}),z(he,null,{default:q(()=>[z(G,{icon:St(U0),type:"primary",class:"custom-button",onClick:C,loading:f.value},{default:q(()=>[Ue(ht(n.value),1)]),_:1},8,["icon","loading"])]),_:1})]),_:1},8,["model"])]),le[8]||(le[8]=de("div",{class:"table-border-left"}," 加急结果列表 ",-1)),na((Oe(),st("div",{"element-loading-text":o.value},[z(ve,{data:c.value,height:"60vh",border:""},{default:q(()=>[z(pe,{label:"商品图片"},{default:q(({row:Te})=>[z(oe,{src:Te.img,alt:"",loading:"lazy"},null,8,["src"])]),_:1}),z(pe,{label:"商品名称",width:255},{default:q(({row:Te})=>[de("p",null,ht(Te.title),1),de("p",pee,"SKC: "+ht(Te.sku),1)]),_:1}),z(pe,{label:"商品状态"},{default:q(({row:Te})=>[Ue(ht(Te.resultMessage),1)]),_:1})]),_:1},8,["data"])],8,Aee)),[[ue,f.value]])]),_:1},8,["modelValue"])],64)}}},vee=cn(gee,[["__scopeId","data-v-99cf0dce"]]),yee={key:0,class:"flex flex-wrap gap-2"},bee=xi({__name:"ImageVideoPlugins",setup(a){const s=Kn(),{mall:r}=Au(s);return oa(async()=>{await s.init()}),(i,n)=>St(r)?(Oe(),st("div",yee,[z(dee),z(No,null,{default:q(()=>[z(vee)]),_:1})])):tr("",!0)}}),wee={class:"flex gap-1 text-xs",style:{"flex-direction":"column"}},_ee=["title"],xee={key:0},Cee={style:{color:"rgba(0,0,0,.24)","font-size":"12px"}},See=xi({__name:"BatchCreateCoupon",setup(a){const s=we([]);we();const r=we(),i=we([]),n=we(0),t=we(!1),c=we("开始创建"),u=we(!1),f=we(1),o=we(),l=we(5e3),g=we(!1),m=we({couponType:1}),p=we({couponType:1,amountType:1}),_=we(),d={timeRange:[{required:!0,message:"请选择时间"}],title:[{required:!0,message:"请输入名称"}],couponDiscount:[{required:!0,message:"请选择金额"}],amount:[{required:!0,message:"请输入金额"},{validator:(le,G)=>new Promise((fe,ie)=>{p.value.amountType===2&&(Number(G)>100||Number(G)<0)?ie("请输入正确百分比"):fe()})}],punishCount:[{required:!0,message:"请输入数量"},{validator:(le,G)=>new Promise((fe,ie)=>{f.value===1&&fe(),G===0&&fe(),G>999999||G<200?ie("请输入200～999999的整数"):fe()})}],selectType:[{required:!0,message:"请选择可用商品"}]},A=Pr(()=>{const le=v.value.page*v.value.pageSize;return s.value.slice(le-v.value.pageSize,le)}),v=we({page:1,pageSize:5}),w=we(),x=we({}),C=we({title:!0,couponAmount:!0,salesStock:!0,skuId:!0});function k(le){s.value.forEach(G=>{if(G.filterOutClassify)return;let fe=0;if(p.value.amountType===1)fe=le;else if(p.value.amountType===2){const ie=[];G.skcList.forEach(Y=>{Y.skuList.forEach(K=>{ie.push(K.dailyPrice)})}),fe=Math.min(...ie)*le/1e4}G.suggestCouponAmountInput=fe})}function T(le){s.value.forEach(G=>{G.suggestPunishCountInput=le})}function S(){if(p.value={couponType:1,amountType:1},f.value===1&&P(K3,{couponType:1}),f.value===2){x.value.salesStockMin=null,x.value.salesStockMax=null;const{couponAmount:le,currency:G,thresholdAmount:fe}=r.value[0];P(XX,{couponDiscount:{couponAmount:le,currency:G,thresholdAmount:fe}})}}function M(le){w.value=le}async function P(le,G){g.value=!0,s.value=[];const fe=await le({pageNo:1,pageSize:1,...G});if(!fe.success)throw new Error(fe.errorMsg||"获取总数失败");const ie=fe.result.total;v.value.total=ie;const he=l.value?Math.min(l.value,ie):ie,Y=Math.max(1,0),K=Math.min(Math.ceil((he-Y+1)/50),Math.ceil(5e3/50)),oe=Math.ceil(Y/50),pe=Array.from({length:K},(ge,ue)=>oe+ue),ve=50;for(let ge=0;ge<pe.length;ge+=ve){const ue=pe.slice(ge,ge+ve);await Promise.all(ue.map(Te=>N(Te,Y,he,le,G)))}i.value=s.value,g.value=!1}const N=async(le,G,fe,ie,he)=>{try{const Y={pageNo:le,pageSize:50,...he},{success:K,result:oe,errorMsg:pe}=await ie(Y);if(!K)throw new Error(pe||"分页请求失败");const ve=oe.list,ge=le===Math.ceil(G/50),ue=le===Math.ceil(fe/50);let Te=ve;if(ge){const Ee=(G-1)%50;Te=ve.slice(Ee)}if(ue){const Ee=fe%50||50;Te=Te.slice(0,Ee)}s.value.push(...Te)}catch(Y){throw console.error(`第${le}页请求失败:`,Y),Y}};function B(){i.value=s.value,V(),u.value=!0}function O(le){p.value.title=le===1?"立减券":"惊喜券"}async function I(){_.value.validate(async le=>{if(le){let G;const{timeRange:fe,title:ie}=p.value,he={beginTime:fe[0],endTime:fe[1],title:ie};if(f.value===1){he.goodsCoupons=[],he.couponType=p.value.couponType;const Y=s.value.filter(pe=>!pe.filterOutClassify);he.agreementId=await ZX({}).then(pe=>pe.result.agreementId),G=await L(Y,he,eZ);let K=0,oe=0;G.forEach(pe=>{pe.success?K++:oe++}),console.log(G),Pn.confirm(`提交完成,创建成功${K}条,创建失败${oe}条`,"提示",{type:"success",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{u.value=!1})}if(f.value===2){const{thresholdAmount:Y,couponAmount:K,currency:oe}=w.value;if(he.selectType=p.value.selectType,he.couponDiscount={thresholdAmount:Y,couponAmount:K,currency:oe,punishCount:p.value.punishCount},he.agreementId=await JX({}).then(pe=>pe.result.agreementId),p.value.selectType===1){if(s.value.length===0){ut.warning("请选择需要创建优惠券的商品");return}he.productIds=[],s.value.forEach(pe=>{he.productIds.push(pe.productId)})}G=await tZ(he),G.success?ut.success("成功创建优惠券"):ut.warning(G.errorMsg)}}})}function F(le){return new Promise(G=>setTimeout(G,le))}const L=async(le,G,fe)=>{let he=0,Y=0,K=[];for(t.value=!0;he+Y*1<le.length&&t.value===!0;){const oe=he+Y*1,pe=oe+1,ve=le.slice(oe,pe);c.value=`正在创建${oe}/${pe}条`,console.log(`共${le.length}条 正在处理${oe}到${pe}条`);try{let ge=null;await Promise.all(ve.map(ue=>{const{suggestPunishCountInput:Te,suggestCouponAmountInput:Ee,productId:ye,goodsId:Se,couponCurrency:Fe}=ue;return ge=ye,G.goodsCoupons.push({punishCount:Te,couponAmount:Ee*100,productId:ye,goodsId:Se,couponCurrency:Fe}),fe(G)})).then(ue=>{ue.spuId=ge,K=K.concat(ue)})}catch(ge){console.log(ge)}await F(3e3),Y++}return c.value="开始创建",t.value=!1,K};function R(le){le==="amount"&&i.value.forEach(G=>{G.suggestCouponAmountInput=G.suggestCouponAmount/100}),le==="num"&&i.value.forEach(G=>{G.suggestPunishCountInput=G.suggestPunishCount})}function U(){s.value=i.value}function V(){qX({}).then(le=>{r.value=le.result.mallCouponDiscounts,p.couponDiscount=r.value[0].couponAmount})}function W(){s.value=i.value.filter(le=>{const{title:G,couponAmountMin:fe,couponAmountMax:ie,salesStockMin:he,salesStockMinMax:Y,skuId:K}=x.value,{title:oe,couponAmount:pe,salesStock:ve,skuId:ge}=C.value;let ue=!0,Te=!0,Ee=!0,ye=!0;if(oe&&(ue=le.productName.indexOf(G||"")!==-1),pe){let Se=!1;le.skcList.forEach(Fe=>{Fe.skuList.forEach(Ve=>{const ke=Q(fe)?fe:0,Pe=Q(ie)?ie:1/0;ke<=Ve.dailyPrice/100&&Ve.dailyPrice/100<=Pe&&(Se=!0)})}),Te=Se}if(ve){let Se=!1;le.skcList.forEach(Fe=>{Fe.skuList.forEach(Ve=>{const ke=Q(he)?he:0,Pe=Q(Y)?Y:1/0;ke<=Ve.salesStock&&Ve.salesStock<=Pe&&(Se=!0)})}),Ee=Se}if(ge&&K){const Se=K.split(/[\s+,，]/g).filter(Fe=>Fe!=="");console.log(le),ye=Se.includes(String(le.productId))}return console.log(ue,Te,Ee,ye),ue&&Te&&Ee&&ye})}function Q(le){return typeof le=="number"}return(le,G)=>{const fe=Ce("el-alert"),ie=Ce("el-tooltip"),he=Ce("el-radio"),Y=Ce("el-radio-group"),K=Ce("el-input"),oe=Ce("el-col"),pe=Ce("el-button"),ve=Ce("el-row"),ge=Ce("el-form-item"),ue=Ce("el-input-number"),Te=Ce("el-form"),Ee=Ce("el-date-picker"),ye=Ce("el-radio-button"),Se=Ce("el-option"),Fe=Ce("el-select"),Ve=Ce("el-divider"),ke=Ce("el-image"),Pe=Ce("el-table-column"),Re=Ce("el-table"),Ye=Ce("el-pagination"),Ke=Ce("el-dialog"),ot=Ai("loading");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】批量创建优惠券",type:"primary",url:St(K3),filter:m.value,returnKey:"list",pageNumKey:"pageNo",data:s.value,"onUpdate:data":G[0]||(G[0]=nt=>s.value=nt),total:n.value,"onUpdate:total":G[1]||(G[1]=nt=>n.value=nt),onComplete:B},null,8,["url","filter","data","total"]),z(Ke,{class:"warp-float",modelValue:u.value,"onUpdate:modelValue":G[27]||(G[27]=nt=>u.value=nt),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,width:"80vw",height:"800px",top:"50px","destroy-on-close":""},{default:q(()=>[z(ve,null,{default:q(()=>[z(oe,{span:8},{default:q(()=>[z(fe,{title:"筛选条件可自定义开始或者关闭",style:{"margin-bottom":"10px"},type:"error","show-icon":"",closable:!1}),z(fe,{title:"建议可以去官方页面熟悉下具体设置的含义，再来使用",style:{"margin-bottom":"10px"},type:"success","show-icon":"",closable:!1}),z(Y,{modelValue:f.value,"onUpdate:modelValue":G[2]||(G[2]=nt=>f.value=nt),style:{"margin-bottom":"10px"},onChange:S},{default:q(()=>[z(he,{value:1,size:"large",border:"",style:{width:"230px",height:"70px"}},{default:q(()=>[G[29]||(G[29]=de("div",{style:{"margin-bottom":"5px"}},"单品优惠券",-1)),z(ie,{effect:"dark",content:"针对单一商品使用的无门槛优惠券",placement:"top"},{default:q(()=>[...G[28]||(G[28]=[de("div",{style:{color:"rgb(78,89,105)","text-overflow":"ellipsis",overflow:"hidden",width:"160px"}}," 针对单一商品使用的无门槛优惠券 ",-1)])]),_:1})]),_:1}),z(he,{value:2,size:"large",border:"",style:{width:"230px",height:"70px"}},{default:q(()=>[G[31]||(G[31]=de("div",{style:{"margin-bottom":"5px"}},"店铺满减券",-1)),z(ie,{effect:"dark",content:"指定商品买满一定金额后，合并下单享满减优惠",placement:"top"},{default:q(()=>[...G[30]||(G[30]=[de("div",{style:{color:"rgb(78,89,105)","text-overflow":"ellipsis",overflow:"hidden",width:"160px"}}," 指定商品买满一定金额后，合并下单享满减优惠 ",-1)])]),_:1})]),_:1})]),_:1},8,["modelValue"]),G[41]||(G[41]=de("div",{class:"title-border-left"}," 筛选设置 ",-1)),z(Te,{model:x.value,"label-width":"110px"},{default:q(()=>[z(ge,{label:"标题模糊搜索"},{default:q(()=>[z(ve,{style:{width:"100%"}},{default:q(()=>[z(oe,{span:21},{default:q(()=>[z(K,{modelValue:x.value.title,"onUpdate:modelValue":G[3]||(G[3]=nt=>x.value.title=nt),placeholder:"将过滤出包含该名称的商品",disabled:!C.value.title},null,8,["modelValue","disabled"])]),_:1}),z(oe,{span:1,push:1},{default:q(()=>[z(pe,{link:"",type:"primary",onClick:G[4]||(G[4]=nt=>C.value.title=!C.value.title)},{default:q(()=>[Ue(ht(C.value.title?"排除":"启用"),1)]),_:1})]),_:1})]),_:1})]),_:1}),z(ge,{label:"申报价范围"},{error:q(()=>[...G[32]||(G[32]=[Ue(" 只要某个商品的skc在范围内就会匹配 ",-1)])]),default:q(()=>[z(ve,{style:{width:"100%"}},{default:q(()=>[z(oe,{span:10},{default:q(()=>[z(ue,{modelValue:x.value.couponAmountMin,"onUpdate:modelValue":G[5]||(G[5]=nt=>x.value.couponAmountMin=nt),disabled:!C.value.couponAmount,style:{width:"100%"},min:0,precision:2,placeholder:"请输入","controls-position":"right"},null,8,["modelValue","disabled"])]),_:1}),z(oe,{span:1,style:{"text-align":"center"}},{default:q(()=>[...G[33]||(G[33]=[Ue(" - ",-1)])]),_:1}),z(oe,{span:10},{default:q(()=>[z(ue,{modelValue:x.value.couponAmountMax,"onUpdate:modelValue":G[6]||(G[6]=nt=>x.value.couponAmountMax=nt),disabled:!C.value.couponAmount,style:{width:"100%"},min:0,precision:2,placeholder:"请输入","controls-position":"right"},null,8,["modelValue","disabled"])]),_:1}),z(oe,{span:1,push:1},{default:q(()=>[z(pe,{link:"",type:"primary",onClick:G[7]||(G[7]=nt=>C.value.couponAmount=!C.value.couponAmount)},{default:q(()=>[Ue(ht(C.value.couponAmount?"排除":"启用"),1)]),_:1})]),_:1})]),_:1})]),_:1}),f.value===1?(Oe(),Et(ge,{key:0,label:"库存数量"},{default:q(()=>[z(ve,null,{default:q(()=>[z(oe,{span:10},{default:q(()=>[z(ue,{modelValue:x.value.salesStockMin,"onUpdate:modelValue":G[8]||(G[8]=nt=>x.value.salesStockMin=nt),disabled:!C.value.salesStock,style:{width:"100%"},min:0,precision:0,placeholder:"请输入","controls-position":"right"},null,8,["modelValue","disabled"])]),_:1}),z(oe,{span:1,style:{"text-align":"center"}},{default:q(()=>[...G[34]||(G[34]=[Ue(" - ",-1)])]),_:1}),z(oe,{span:10},{default:q(()=>[z(ue,{modelValue:x.value.salesStockMinMax,"onUpdate:modelValue":G[9]||(G[9]=nt=>x.value.salesStockMinMax=nt),disabled:!C.value.salesStock,style:{width:"100%"},min:0,precision:0,placeholder:"请输入","controls-position":"right"},null,8,["modelValue","disabled"])]),_:1}),z(oe,{span:1,push:1},{default:q(()=>[z(pe,{link:"",type:"primary",onClick:G[10]||(G[10]=nt=>C.value.salesStock=!C.value.salesStock)},{default:q(()=>[Ue(ht(C.value.salesStock?"排除":"启用"),1)]),_:1})]),_:1})]),_:1})]),_:1})):tr("",!0),z(ge,{label:"SPU ID"},{default:q(()=>[z(ve,{style:{width:"100%"}},{default:q(()=>[z(oe,{span:21},{default:q(()=>[z(K,{modelValue:x.value.skuId,"onUpdate:modelValue":G[11]||(G[11]=nt=>x.value.skuId=nt),disabled:!C.value.skuId,style:{width:"100%"},placeholder:"请输入"},null,8,["modelValue","disabled"])]),_:1}),z(oe,{span:1,push:1},{default:q(()=>[z(pe,{link:"",type:"primary",onClick:G[12]||(G[12]=nt=>C.value.skuId=!C.value.skuId)},{default:q(()=>[Ue(ht(C.value.skuId?"排除":"启用"),1)]),_:1})]),_:1})]),_:1})]),_:1}),z(ge,null,{default:q(()=>[z(pe,{icon:St(Ay),onClick:U},{default:q(()=>[...G[35]||(G[35]=[Ue("还原数据",-1)])]),_:1},8,["icon"]),z(pe,{icon:St(t_),onClick:W},{default:q(()=>[Ue("筛选商品【当前商品数量 "+ht(s.value.length)+"】 ",1)]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),G[42]||(G[42]=de("div",{class:"title-border-left"}," 创建优惠券设置 ",-1)),z(Te,{model:p.value,"label-width":"110px",prop:"timeRange",ref_key:"formRef",ref:_,rules:d},{default:q(()=>[z(ge,{label:"发券时间",prop:"timeRange"},{default:q(()=>[z(Ee,{modelValue:p.value.timeRange,"onUpdate:modelValue":G[13]||(G[13]=nt=>p.value.timeRange=nt),type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"x"},null,8,["modelValue"])]),_:1}),f.value===1?(Oe(),Et(ge,{key:0,label:"优惠券类型",prop:"couponType"},{default:q(()=>[z(Y,{modelValue:p.value.couponType,"onUpdate:modelValue":G[14]||(G[14]=nt=>p.value.couponType=nt),onChange:O},{default:q(()=>[z(ye,{label:"立减券",value:1}),z(ye,{label:"惊喜券",value:2})]),_:1},8,["modelValue"])]),_:1})):tr("",!0),z(ge,{label:"券名称",prop:"title"},{default:q(()=>[z(K,{modelValue:p.value.title,"onUpdate:modelValue":G[15]||(G[15]=nt=>p.value.title=nt),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),f.value===2?(Oe(),Et(ge,{key:1,label:"券金额",prop:"couponDiscount"},{default:q(()=>[z(Fe,{modelValue:p.value.couponDiscount,"onUpdate:modelValue":G[16]||(G[16]=nt=>p.value.couponDiscount=nt)},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(r.value,nt=>(Oe(),Et(Se,{onClick:mt=>M(nt),label:`满${nt.thresholdAmount/100}¥减${nt.couponAmount/100}`,value:nt.couponAmount},null,8,["onClick","label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})):tr("",!0),f.value===1?(Oe(),Et(ge,{key:2,label:"券金额",prop:"amount"},{default:q(()=>[z(oe,{span:8},{default:q(()=>[z(Fe,{modelValue:p.value.amountType,"onUpdate:modelValue":G[17]||(G[17]=nt=>p.value.amountType=nt),onChange:k},{default:q(()=>[z(Se,{label:"按固定值设置",value:1}),z(Se,{label:"日常供价百分比",value:2})]),_:1},8,["modelValue"])]),_:1}),z(oe,{span:1,style:{"text-align":"center"}},{default:q(()=>[...G[36]||(G[36]=[Ue("-",-1)])]),_:1}),z(oe,{span:14},{default:q(()=>[p.value.amountType===1?(Oe(),Et(ue,{key:0,onChange:k,modelValue:p.value.amount,"onUpdate:modelValue":G[18]||(G[18]=nt=>p.value.amount=nt),placeholder:"请输入",min:0,precision:2},null,8,["modelValue"])):(Oe(),Et(K,{key:1,onChange:k,style:{transform:"translateY(5px)"},modelValue:p.value.amount,"onUpdate:modelValue":G[19]||(G[19]=nt=>p.value.amount=nt),placeholder:"请输入"},{prepend:q(()=>[...G[37]||(G[37]=[de("span",null,"当前申报价",-1)])]),append:q(()=>[...G[38]||(G[38]=[de("span",null,"%",-1)])]),_:1},8,["modelValue"]))]),_:1}),z(pe,{link:"",type:"primary",onClick:G[20]||(G[20]=nt=>R("amount"))},{default:q(()=>[...G[39]||(G[39]=[Ue("一键填入申报价格",-1)])]),_:1})]),_:1})):tr("",!0),f.value===1?(Oe(),Et(ge,{key:3,label:"发行数量",prop:"punishCount"},{default:q(()=>[z(oe,{span:16},{default:q(()=>[z(ue,{modelValue:p.value.punishCount,"onUpdate:modelValue":G[21]||(G[21]=nt=>p.value.punishCount=nt),placeholder:"请输入",min:0,precision:0,onChange:T,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),z(pe,{link:"",type:"primary",onClick:G[22]||(G[22]=nt=>R("num"))},{default:q(()=>[...G[40]||(G[40]=[Ue("一键填入建议数量",-1)])]),_:1})]),_:1})):tr("",!0),f.value===2?(Oe(),Et(ge,{key:4,label:"发行张数",prop:"punishCount"},{default:q(()=>[z(ue,{modelValue:p.value.punishCount,"onUpdate:modelValue":G[23]||(G[23]=nt=>p.value.punishCount=nt),placeholder:"请输入",min:0,precision:0,style:{width:"100%"}},null,8,["modelValue"])]),_:1})):tr("",!0),f.value===2?(Oe(),Et(ge,{key:5,label:"可用商品",prop:"selectType"},{default:q(()=>[z(Y,{modelValue:p.value.selectType,"onUpdate:modelValue":G[24]||(G[24]=nt=>p.value.selectType=nt)},{default:q(()=>[z(he,{label:"全店商品",value:2}),z(he,{label:"指定商品",value:1})]),_:1},8,["modelValue"])]),_:1})):tr("",!0),z(ge,null,{default:q(()=>[z(pe,{type:"primary",style:{width:"100%"},onClick:I,loading:t.value},{default:q(()=>[Ue(ht(c.value),1)]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])]),_:1}),z(Ve,{direction:"vertical",style:{height:"100%"}}),z(oe,{span:15},{default:q(()=>[na((Oe(),Et(Re,{ref_key:"tableDataRef",ref:o,border:"",data:A.value,"max-height":"850px","row-class-name":"cursor-pointer"},{default:q(()=>[z(Pe,{label:"商品信息",prop:"productName"},{default:q(({row:nt})=>[de("div",wee,[de("div",null,[z(ke,{style:{width:"70px",height:"70px"},src:nt.carouselImageUrls[0]},null,8,["src"])]),de("div",null,"SPU ID："+ht(nt.productId),1),de("div",null,[de("span",{title:nt.productName,class:"font-bold text-[14px] line-clamp-2",style:{color:"#303133"}},ht(nt.productName),9,_ee)]),nt.filterOutClassify&&f.value===1?(Oe(),st("div",xee,[de("span",Cee,ht(nt.filterOutReason),1)])):tr("",!0)])]),_:1}),z(Pe,{label:"SKC/SKU信息"},{default:q(({row:nt})=>[(Oe(!0),st(Zt,null,Hr(nt.skcList,mt=>(Oe(),st("div",null,[(Oe(!0),st(Zt,null,Hr(mt.skuList,Ut=>(Oe(),st("div",null,[z(ve,null,{default:q(()=>[z(oe,{span:9},{default:q(()=>[z(ke,{style:{width:"50px",height:"50px",transform:"translateY(3px)"},src:Ut.thumbUrl},null,8,["src"])]),_:2},1024),z(oe,{span:15},{default:q(()=>[de("div",null,"SKU ID:"+ht(Ut.skuId),1),de("div",null,"日常申报价:"+ht(Ut.dailyPrice/100),1),de("div",null,"销售库存:"+ht(Ut.salesStock||""),1)]),_:2},1024)]),_:2},1024)]))),256))]))),256))]),_:1}),f.value===1?(Oe(),Et(Pe,{key:0,label:"当前申报价"},{default:q(({row:nt})=>[de("div",null,"建议金额:"+ht(nt.suggestCouponAmount?nt.suggestCouponAmount/100:"-"),1),de("div",null,"可配范围¥:"+ht(nt.couponAmountMin/100)+"~"+ht(nt.couponAmountMax/100),1),de("div",null,[z(ue,{modelValue:nt.suggestCouponAmountInput,"onUpdate:modelValue":mt=>nt.suggestCouponAmountInput=mt,placeholder:"请输入",min:0,precision:2},null,8,["modelValue","onUpdate:modelValue"])])]),_:1})):tr("",!0),f.value===1?(Oe(),Et(Pe,{key:1,label:"发行数量"},{default:q(({row:nt})=>[de("div",null,"建议数量:"+ht(nt.suggestPunishCount||"-"),1),de("div",null,[z(ue,{modelValue:nt.suggestPunishCountInput,"onUpdate:modelValue":mt=>nt.suggestPunishCountInput=mt,placeholder:"请输入",min:0,precision:0},null,8,["modelValue","onUpdate:modelValue"])])]),_:1})):tr("",!0)]),_:1},8,["data"])),[[ot,g.value]]),z(Ye,{"current-page":v.value.page,"onUpdate:currentPage":G[25]||(G[25]=nt=>v.value.page=nt),"page-size":v.value.pageSize,"onUpdate:pageSize":G[26]||(G[26]=nt=>v.value.pageSize=nt),"page-sizes":[10,20,50,100],background:!0,layout:"total, prev, pager, next, sizes",total:s.value.length,class:"mt-10"},null,8,["current-page","page-size","total"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}}),kee=cn(See,[["__scopeId","data-v-8fd0529b"]]),Tee={key:0,class:"flex flex-wrap gap-2"},Eee=xi({__name:"MarketingToolsPlugins",setup(a){const s=Kn(),{mall:r}=Au(s);return oa(async()=>{await s.initMall()}),(i,n)=>St(r)?(Oe(),st("div",Tee,[z(kee)])):tr("",!0)}}),Iee={};function Bee(a,s){const r=Ce("el-button");return Oe(),Et(r,{class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/autoPriceRejection/autoPriceRejection",target:"_blank",rel:""},{default:q(()=>[...s[0]||(s[0]=[Ue(" 一键前往【凌风跨境工具箱】智能核价页面 ",-1)])]),_:1})}const Hk=cn(Iee,[["render",Bee]]),Fee={key:0},Mee={__name:"FeedbackSupplierProduct",setup(a){const s=we(!1),r=we(!1),i=we(!1),n=we(0),t=we(0),c=Kn(),u=async()=>{r.value=!0;const f=await c.init();r.value=!1,f&&(s.value=!0,YT(c.mall).then(o=>{if(o.length===0){ut.error("未找到价格申报中的商品");return}Pn.prompt(`共找到 ${o.length} 个价格申报商品, 是否开始提交反馈?`,"提示",{confirmButtonText:"提交反馈",cancelButtonText:"取消",inputValue:"上新很久了，价格一直申报中，麻烦处理一下呢",inputPlaceholder:"请输入反馈内容",type:"warning"}).then(async({value:l})=>{if(!l){ut.error("请输入反馈内容");return}i.value=!0,n.value=o.length,t.value=0;try{for(let g=0;g<o.length;g++){const m=o[g],{success:p,errorMsg:_}=await XT(c.id,{feedbackType:2,productSkcId:m.skcId,feedbackProblemType:34,remark:l});if(t.value++,!p){ut.error(`SKC: ${m.skcId} 提交失败: ${_}`);break}}}catch(g){ut.error(g.message)}finally{i.value=!1}}).catch(()=>{ut.info("已取消")})}).catch(o=>{ut.error(o.message)}).finally(()=>{s.value=!1}))};return(f,o)=>{const l=Ce("el-divider"),g=Ce("el-button");return Oe(),Et(g,{class:"custom-button",type:"primary",onClick:u,loading:r.value||s.value||i.value},{default:q(()=>[o[0]||(o[0]=de("span",null,"【凌风跨境工具箱】催审价格申报商品",-1)),i.value?(Oe(),st("span",Fee,[z(l,{direction:"vertical"}),de("span",null,"已提交 "+ht(t.value)+"/"+ht(n.value)+" 个",1)])):tr("",!0)]),_:1},8,["loading"])}}},Dee={key:0},Oee={class:"dialog-footer"},Lee={style:{"margin-top":"10px"}},Pee={style:{display:"flex","justify-content":"space-between","align-items":"center"}},Ree={__name:"RejectPriceAdjustmentsInBulk",setup(a){const s=Kn(),r=we([]),i=we(null),n=we(!1),t=we(!1),c=we("");we(0);const u=we(null),f=we(!1),o=we(!1),l=we("1"),g=we(!1),m=we({firstSkcId:"",rowCount:0}),p=P=>{var N;(N=P.querySelector("[class*='TAB_lineLabel_5-120-1']"))!=null&&N.textContent.includes("待卖家确认")?(g.value=!0,_()):(g.value=!1,y(),A())},_=()=>{y(),document.querySelector(".TB_innerMiddle_5-120-1.TB_stickyTable_5-120-1")&&(h.value=new MutationObserver(N=>{g.value&&d()}),h.value.observe(document.body,{childList:!0,subtree:!0}))},y=()=>{h.value&&(h.value.disconnect(),h.value=null)},h=we(null),d=()=>{var U;const P=document.querySelectorAll(".TAB_active_5-120-1");let N=!1;if(P.forEach(V=>{var Q;(((Q=V==null?void 0:V.querySelector(".TAB_lineLabel_5-120-1"))==null?void 0:Q.textContent)||"").includes("待卖家确认")&&(N=!0)}),!N||!g.value){A();return}const B=document.querySelectorAll("tbody .TB_tr_5-120-1"),O=document.querySelector(".full_productInfoRight__82XrS"),I=O!=null&&O.textContent.includes("SKC ID:")?(U=O.textContent.match(/SKC ID:\s*(\d+)/))==null?void 0:U[1]:"";(B.length!==m.value.rowCount||I!==m.value.firstSkcId)&&(m.value={firstSkcId:I,rowCount:B.length},r.value=[],A());const F=document.querySelector("thead .TB_tr_5-120-1"),L=F==null?void 0:F.querySelector("th");if(L&&!L.querySelector(".header-checkbox")){const V=document.createElement("input");V.type="checkbox",V.className="header-checkbox",V.style.cssText="margin-right: 8px; vertical-align: middle;",V.addEventListener("change",W=>{document.querySelectorAll(".row-checkbox").forEach(le=>{le.checked=W.target.checked}),v()}),L.insertBefore(V,L.firstChild)}document.querySelectorAll("tbody .TB_tr_5-120-1").forEach(V=>{const W=V.querySelector("td");if(!W)return;if(W.classList.contains("TB_checkCell_5-120-1")){const le=W.querySelector("span");if(le&&!W.querySelector(".custom-checkbox")){const G=document.createElement("input");G.type="checkbox",G.className="row-checkbox custom-checkbox",G.style.cssText="margin-right: 8px; vertical-align: middle; display: inline-block;",G.addEventListener("change",()=>{v()}),le.insertBefore(G,le.firstChild)}return}const Q=W.querySelector("div > div > div");if(Q&&!W.querySelector(".row-checkbox")){const le=document.createElement("input");le.type="checkbox",le.className="row-checkbox",le.style.cssText="margin-right: 8px; vertical-align: middle; display: inline-block;",le.addEventListener("change",()=>{v()}),Q.style.display="inline-block",Q.insertBefore(le,Q.firstChild)}})},A=()=>{document.querySelectorAll(".header-checkbox, .row-checkbox").forEach(N=>N.remove()),r.value=[]},v=()=>{const P=document.querySelectorAll(".row-checkbox:checked"),N=document.querySelectorAll(".row-checkbox"),B=document.querySelector(".header-checkbox"),O=Array.from(P).filter(I=>I.checked);B&&(P.length===0?(B.checked=!1,B.indeterminate=!1):P.length===N.length?(B.checked=!0,B.indeterminate=!1):(B.checked=!1,B.indeterminate=!0)),r.value=[...new Set(O.map(I=>{var V;const F=I.closest("td");let L=F.nextElementSibling,R=L?L.textContent:"",U=R.match(/SKC ID:\s*(\d+)/);return U||(L=(V=F.nextElementSibling)==null?void 0:V.nextElementSibling,R=L?L.textContent:"",U=R.match(/SKC ID:\s*(\d+)/)),U?U[1]:null}).filter(Boolean))]};oa(async()=>{var O;const P=localStorage.getItem("rejectCause");P&&(c.value=P);const N=document.querySelector(".TAB_active_5-120-1");(O=N==null?void 0:N.querySelector(".TAB_lineLabel_5-120-1"))!=null&&O.textContent.includes("待卖家确认")&&(g.value=!0,_()),document.querySelectorAll(".TAB_tabItem_5-120-1").forEach(I=>{I.addEventListener("click",()=>p(I))})}),Cf(()=>{document.querySelectorAll(".TAB_tabItem_5-120-1").forEach(N=>{N.removeEventListener("click",()=>p(N))}),y()});const w=async P=>{P===!0&&Pn.confirm("该选项会拒绝掉“待卖家确认”下的所有调价结果（包括本次未勾选的和其它分页上的），会根据数据的多少消耗一定时间!","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{f.value=!0}).catch(()=>{f.value=!1})},x=()=>{var P;f.value=!1,o.value=!1,(P=i.value)==null||P.reset()},C=we(!1),k=async()=>{C.value=!0;const P=await s.init();if(C.value=!1,!!P){if(r.value.length===0){ut({type:"error",message:"请先选择拒绝调价的商品"});return}n.value=!0}},T=P=>{var I;let N="";if(P.failCnt===0&&(N+='<p class="notify-success-text">批量调价全部成功!</p>'),(I=P.adjustErrorList)!=null&&I.length){N+=`<p class="notify-success-text">成功<strong>${P.successCnt}个</strong></p>
                <p class="notify-error-text">失败<strong>${P.failCnt}个</strong></p>
                <ul style="margin: 0;padding: 0">`;for(const F of P.adjustErrorList)N+=`<li>SKC ID: ${F.adjustId}<ul><li class="notify-error-text">${F.errorInfo}</li></ul></li>`;N+="</ul>"}const B=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:N})});ha({title:"提示",dangerouslyUseHTMLString:!1,message:B,type:P.failCnt!==0?"warning":"success",duration:4e3});const O=document.getElementById("notification_1");O&&(O.style.maxWidth="500px",O.style.minWidth="365px")},S=()=>{const P=document.querySelector(".BTN_outerWrapper_5-120-1.BTN_primary_5-120-1");P?setTimeout(()=>{P.click(),r.value=[],A()},1e3):console.error("未找到刷新按钮")},M=async()=>{let P=Date.now().toString();if(l.value==="1"&&!c.value){ut({type:"error",message:"请填写拒绝原因"}),u.value.focus(),t.value=!1;return}localStorage.setItem("rejectCause",c.value);try{if(t.value=!0,i.value.start(()=>kf({uuid:P})).then(N=>{N===1&&console.log("完成")}).catch(N=>{ut({message:`读取进度失败: ${N}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{i.value.stop()}),l.value==="1"){const N=await kK({skcIdList:r.value,uuid:P,mallId:s.id,reason:c.value,isAllRefuse:f.value});N.status===0&&(n.value=!1,T(N),S())}else if(l.value==="2"){const N=await TK({skcIdList:r.value,uuid:P,mallId:s.id,isAllAgree:o.value});N.status===0&&(n.value=!1,T(N),S())}}catch(N){ut({message:`操作失败: ${N.message||N}`,type:"error",duration:1e4,zIndex:999999999})}finally{t.value=!1}};return(P,N)=>{const B=Ce("el-button"),O=Ce("el-radio"),I=Ce("el-radio-group"),F=Ce("el-alert"),L=Ce("el-input"),R=Ce("el-checkbox"),U=Ce("el-dialog");return Oe(),st(Zt,null,[g.value?(Oe(),Et(B,{key:0,loading:C.value,class:"custom-button",type:"primary",onClick:k},{default:q(()=>[...N[6]||(N[6]=[Ue(" 【凌风跨境工具箱】一键批量调价 ",-1)])]),_:1},8,["loading"])):tr("",!0),z(U,{modelValue:n.value,"onUpdate:modelValue":N[5]||(N[5]=V=>n.value=V),title:"批量调价",width:"450","append-to-body":"","align-center":"","show-close":!1,class:"loading-class",onClose:x},{footer:q(()=>[de("div",Oee,[de("div",null,[de("div",null,[z(Qc,{style:{"margin-bottom":"10px"},ref_key:"progressTickerRef",ref:i,"success-text":"调价成功","stroke-width":12},null,512)]),de("div",Lee,[de("div",Pee,[de("div",null,[l.value==="1"?(Oe(),Et(R,{key:0,disabled:t.value,onChange:w,modelValue:f.value,"onUpdate:modelValue":N[2]||(N[2]=V=>f.value=V),label:"拒绝所有调价结果",size:"large"},null,8,["disabled","modelValue"])):tr("",!0),l.value==="2"?(Oe(),Et(R,{key:1,disabled:t.value,modelValue:o.value,"onUpdate:modelValue":N[3]||(N[3]=V=>o.value=V),label:"接受所有调价结果",size:"large"},null,8,["disabled","modelValue"])):tr("",!0)]),de("div",null,[z(B,{onClick:N[4]||(N[4]=V=>n.value=!1),disabled:t.value},{default:q(()=>[...N[10]||(N[10]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(B,{loading:t.value,type:"primary",onClick:M},{default:q(()=>[...N[11]||(N[11]=[Ue(" 开始调价 ",-1)])]),_:1},8,["loading"])])])])])])]),default:q(()=>[N[12]||(N[12]=de("span",null,"批量选择调价结果：",-1)),z(I,{modelValue:l.value,"onUpdate:modelValue":N[0]||(N[0]=V=>l.value=V)},{default:q(()=>[z(O,{value:"1",size:"large"},{default:q(()=>[...N[7]||(N[7]=[Ue("拒绝",-1)])]),_:1}),z(O,{value:"2",size:"large"},{default:q(()=>[...N[8]||(N[8]=[Ue("接受",-1)])]),_:1})]),_:1},8,["modelValue"]),z(F,{title:"调价过程中请勿关闭或刷新该页面，可能会导致调价失败",type:"warning","show-icon":!0,closable:!1,style:{"margin-bottom":"20px"}}),l.value==="1"?(Oe(),st("div",Dee,[N[9]||(N[9]=de("span",null,"拒绝原因：",-1)),z(L,{disabled:t.value,ref_key:"rejectCauseRef",ref:u,modelValue:c.value,"onUpdate:modelValue":N[1]||(N[1]=V=>c.value=V),resize:"none",style:{"margin-top":"10px"},type:"textarea",placeholder:"请输入拒绝原因"},null,8,["disabled","modelValue"])])):tr("",!0)]),_:1},8,["modelValue"])],64)}}},Uee=cn(Ree,[["__scopeId","data-v-7a3197ad"]]),Nee=""+new URL("vip-BWK42hqF.png",import.meta.url).href,jee={class:"tip",style:{color:"#000","line-height":"1.8",margin:"0"}},Hee={class:"flex justify-end items-center gap-2"},Qee={__name:"unboundMallsDialog",props:{visible:Boolean,unboundMallsList:Array,tableRef:null,selectionList:Array},emits:["update:visible"],setup(a,{emit:s}){const r=ls(),i=Pr(()=>r.sysUser),n=Pr(()=>i.value.boundled_mallShops||[]),t=we(5);let c=null;const u=a,f=s,o=()=>{f("update:visible",!1)},l=()=>{window.open("https://www.kuajingabc.com/#/user/user-center","_blank")},g=(_=!1)=>{clearInterval(c),u.tableRef.clearSelection(),u.selectionList.forEach(y=>{n.value.some(h=>h.mall_id===y.mallId)&&u.tableRef.toggleRowSelection(y,!0)}),_&&l(),o()},m=()=>{t.value=5,c=setInterval(()=>{t.value>0?t.value--:g(!0)},1e3)},p=()=>{m()};return(_,y)=>{const h=Ce("el-button"),d=Ce("el-dialog");return Oe(),Et(d,{"align-center":"",width:"500","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:u.visible,"onUpdate:modelValue":y[2]||(y[2]=A=>u.visible=A),onOpen:p},{title:q(()=>[...y[3]||(y[3]=[de("h3",{style:{margin:"0"}},"凌风云链插件提醒",-1)])]),footer:q(()=>[de("div",Hee,[z(h,{onClick:y[0]||(y[0]=A=>g(!1))},{default:q(()=>[...y[4]||(y[4]=[Ue("暂不绑定",-1)])]),_:1}),z(h,{type:"primary",style:{"margin-left":"30px !important"},onClick:y[1]||(y[1]=A=>g(!0))},{default:q(()=>[Ue(" 立即绑定（"+ht(t.value)+"s） ",1)]),_:1})])]),default:q(()=>[de("div",jee," 您当前勾选的店铺【"+ht(u.unboundMallsList.map(A=>A.mallName).join("、"))+"】暂未进行绑定，无法进行执行任务操作。请前往凌风跨境工具箱控制台-个人中心-账号设置处进行绑定。绑定完成后，请刷新页面再重新进行任务操作。 ",1)]),_:1},8,["modelValue"])}}},zee={class:"dialog-footer"},Vee={__name:"TimeBatchTipsDialog",props:{visible:Boolean},emits:["update:visible","confirm"],setup(a,{emit:s}){const r=we(!1),i=a,n=s,t=()=>{r.value&&localStorage.setItem("timeBatchTips_timestamp",Date.now().toString()),n("update:visible",!1),n("confirm")},c=()=>{r.value=!1};return(u,f)=>{const o=Ce("el-checkbox"),l=Ce("el-button"),g=Ce("el-dialog");return Oe(),Et(g,{"align-center":"",width:"600","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:i.visible,"onUpdate:modelValue":f[1]||(f[1]=m=>i.visible=m),onOpen:c},{title:q(()=>[...f[2]||(f[2]=[de("h3",{style:{margin:"0"}},"温馨提示",-1)])]),footer:q(()=>[de("div",zee,[de("div",null,[z(o,{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=m=>r.value=m),label:"我已知晓，不再提示",size:"large"},null,8,["modelValue"])]),de("div",null,[z(l,{onClick:t,type:"primary",style:{"margin-left":"30px !important"}},{default:q(()=>[...f[3]||(f[3]=[Ue(" 确定 ",-1)])]),_:1})])])]),default:q(()=>[f[4]||(f[4]=de("div",{class:"tip",style:{color:"#000"}},[de("div",null," 1、开启定时任务期间，请勿关闭或刷新浏览器，可能导致定时任务失败。 "),de("div",null,"2、保持电脑开机状态。别待机或关机。"),de("div",null,"3、任务开启时，若要手动去官方调价，请先终止定时任务再刷新页面。"),de("div",null," 4、所有选中调价店铺执行完成后，会短信通知结果，以各个店铺商品调价页列表为准，请留意。 "),de("div",null,"5、开启定时任务后若久未收到短信通知，及时检查任务执行情况。"),de("div",null," 6、关闭定时任务弹窗后，可手动刷新网页。请注意，此操作将终止定时任务。 "),de("div",null," 7、本功能仅为辅助，不负责商品调价结果，请关注定时任务执行并及时处理。 ")],-1))]),_:1},8,["modelValue"])}}},Wee=cn(Vee,[["__scopeId","data-v-6250132e"]]),Gee={class:"flex justify-end items-center gap-2"},$ee={__name:"TimeBatchPermissionDialog",props:{visible:Boolean},emits:["update:visible"],setup(a,{emit:s}){const r=we(5);let i=null;const n=a,t=s,c=()=>{t("update:visible",!1)},u=()=>{window.open("https://www.kuajingabc.com/#/user/service","_blank")},f=(g=!1)=>{clearInterval(i),g&&u(),c()},o=()=>{r.value=5,i=setInterval(()=>{r.value>0?r.value--:f(!0)},1e3)},l=()=>{o()};return(g,m)=>{const p=Ce("el-button"),_=Ce("el-dialog");return Oe(),Et(_,{"align-center":"",width:"500","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:n.visible,"onUpdate:modelValue":m[2]||(m[2]=y=>n.visible=y),onOpen:l},{title:q(()=>[...m[3]||(m[3]=[de("h3",{style:{margin:"0"}},"凌风云链插件提醒",-1)])]),footer:q(()=>[de("div",Gee,[z(p,{onClick:m[0]||(m[0]=y=>f(!1))},{default:q(()=>[...m[4]||(m[4]=[Ue("暂不使用",-1)])]),_:1}),z(p,{type:"primary",style:{"margin-left":"30px !important"},onClick:m[1]||(m[1]=y=>f(!0))},{default:q(()=>[Ue(" 立即升级（"+ht(r.value)+"s） ",1)]),_:1})])]),default:q(()=>[m[5]||(m[5]=de("div",{class:"tip",style:{color:"#000","line-height":"1.8",margin:"0"}}," 此功能仅向白银及以上等级的会员开放。您目前尚未达到相应会员等级，诚邀您升级会员，以畅享更多专属权益与服务，解锁更多精彩功能。感谢您的理解与支持！ ",-1))]),_:1},8,["modelValue"])}}},Kee={style:{margin:"10px 0",color:"#000"}},Yee={style:{color:"#f97602"}},Xee={style:{display:"flex","align-items":"center"}},Zee={key:1,style:{display:"flex","align-items":"center",margin:"0 0 10px 0"}},Jee={key:2,style:{color:"#8e8e8e","font-size":"12px",margin:"0 0 10px 70px"}},qee={key:3},ete={style:{display:"flex","align-items":"center",margin:"10px 0"}},tte={style:{color:"#000",display:"flex","justify-content":"flex-end"}},rte={class:"flex justify-end items-center gap-2"},nte={__name:"TimeBatchPriceDialog",props:{visible:Boolean},emits:["update:visible"],setup(a,{emit:s}){const r=ls(),i=we(null),n=we("1"),t=we([]),c=we(null),u=we(""),f=we(0),o=we(!1),l=we(null),g=we(!1),m=we(!1),p=we(!1),_=we([]),y=we([]),h=we([]),d=we(!1),A=we(!1),v=we(!1),w=we(null),x=we(0),C=we(0),k=we(null),T=we(null),S=we(null),M=we({times:null,intervalTime:null}),P=Pr(()=>r.sysUser),N=Pr(()=>P.value.boundled_mallShops||[]),B=a,O=s,I=()=>{O("update:visible",!1)},F=async ge=>{y.value=ge,h.value=y.value.map(Te=>Te.mallId);const ue=ge.filter(Te=>!N.value.some(Ee=>Ee.mall_id===Te.mallId));_.value=ue,ue.length>0&&(g.value=!0)},L=async ge=>{f.value=ge.reduce((ue,Te)=>ue+Te.goodsNum,0),await F(ge)},R=async()=>{o.value=!0;const ge=await Mk().finally(()=>{o.value=!1});if(ge.status!==0)return ut.error(ge.errorMsg);t.value=ge.infoList},U=async()=>{await R(),await ve()},V=async ge=>i.value.start(()=>xm()).then(async ue=>{ue===1&&(A.value=!1,v.value=!0,ut.success(ge),await G())}).catch(ue=>{ut({message:`读取进度失败: ${ue}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{i.value.stop(),d.value=!1}),W=async()=>{if(h.value.length===0){ut.error("请先选中需要调价的店铺！");return}if(n.value==="3"&&!await w.value.validate().catch(()=>!1)){ut.error("请填写完整的执行次数和间隔时间！");return}d.value=!0,A.value=!0;try{switch(n.value){case"3":{const ge=localStorage.getItem("timeBatchTips_timestamp");if(ge&&Date.now()-+ge<1440*60*1e3){await pe();return}m.value=!0;break}case"1":{const ge=await MK({mallIdList:h.value});if(ge.status!==0)throw new Error(ge.errorMsg);await V("接受调价成功！");break}case"2":{const ge=await G3({mallIdList:h.value,reason:c.value,isScheduled:!1});if(ge.status!==0)throw new Error(ge.errorMsg);await V("拒绝调价成功！");break}}}catch(ge){ut.error(ge.message||"操作失败")}},Q=async()=>{await pe()},le=ge=>{ge==="3"&&(P.value.user_level!==4&&P.value.user_level>0||(p.value=!0,n.value="1"))},G=async()=>{var ye;const ge=await DK();if(ge.status!==0)return;let ue="";for(const Se of ge.result)if(!(Se.successCnt===0&&Se.failCnt===0)&&(ue+=`<div style="color: #000"><strong>${Se.mallName}</strong>：</div>`,Se.successCnt!==0&&(ue+=`<div class="notify-success-text">批量调价成功<strong>${Se.successCnt}</strong>个！</div>`),Se.failCnt!==0&&(ue+=`<div class="notify-error-text">调价失败<strong>${Se.failCnt}</strong>个！</div>`,(ye=Se.adjustErrorList)!=null&&ye.length))){ue+='<ul style="margin-top: 0">';for(const Fe of Se.adjustErrorList)ue+=`<li>调价ID: ${Fe.adjustId}<ul style="padding-left: 0;"><li class="notify-error-text">${Fe.errorInfo}</li></ul></li>`;ue+="</ul>"}const Te=Zn(_i,{maxHeight:"400px"},{default:()=>Zn("div",{innerHTML:ue})}),Ee=ge.result.some(Se=>Se.failCnt>0);ha({title:"调价结果",dangerouslyUseHTMLString:!0,message:Te,customClass:"batchTimePriceNotification",type:Ee?"warning":"success",duration:Ee?432e5:4e3})},fe=async()=>{var ue;T.value&&(clearInterval(T.value),T.value=null);const ge=await OK();if(ge.status!==0)return ut.error(ge.errorMsg);(ue=i.value)==null||ue.stop(),A.value=!1,d.value=!1},ie=()=>{var ge;(ge=i.value)==null||ge.reset(),R(),v.value=!1,d.value=!1},he=Pr(()=>k.value===1?x.value+1:x.value),Y=Pr(()=>{const ge=Math.floor(C.value/3600),ue=Math.floor(C.value%3600/60),Te=C.value%60;return{hours:ge,minutes:ue,seconds:Te}}),K=ge=>{x.value=ge.alreadyTimes,C.value=ge.remainingIntervalTime,k.value=ge.adjustPriceStatus,S.value=ge.times},oe=async()=>{var ye,Se;const ge=await xm(),ue=x.value,Te=C.value;K(ge),ue!==x.value&&await G();const Ee=()=>S.value===x.value&&k.value===0?!1:k.value===1?Te===void 0||C.value===0?!0:Te>0&&C.value<Te:!1;return Ee()&&((ye=i.value)==null||ye.reset(),(Se=i.value)==null||Se.start(()=>xm())),k.value!==0&&S.value!==x.value&&!T.value&&(T.value=setInterval(async()=>{var ke,Pe;const Fe=await xm(),Ve=x.value;if(K(Fe),Ve!==x.value&&await G(),S.value===x.value&&k.value===0){i.value.stop(),clearInterval(T.value),T.value=null,A.value=!1,v.value=!0,d.value=!1,ut.success("拒绝调价成功！");return}k.value===1&&Ee()&&((ke=i.value)==null||ke.reset(),(Pe=i.value)==null||Pe.start(()=>xm()))},1e3)),ge},pe=async()=>{i.value.start(oe).catch(ue=>{ut({message:`读取进度失败: ${ue}`,type:"error",duration:1e4,zIndex:999999999})});const ge=await G3({mallIdList:h.value,reason:c.value,isScheduled:!0,times:M.value.times,intervalTime:M.value.intervalTime*60,phone:u.value});return ge.status!==0?(ut.error(ge.errorMsg),v.value=!1,A.value=!1,d.value=!1,null):ge},ve=async()=>{var ue;const ge=await xm();ge.isAutoAdjustPrice&&(M.value.times=ge.times,M.value.intervalTime=+(ge.adjustPriceLoopTime/60).toFixed(1),u.value=ge.phone,c.value=ge.reason,n.value="3",(ue=ge.mallIdList)!=null&&ue.length&&(await il(),t.value.filter(Ee=>ge.mallIdList.includes(Ee.mallId)).forEach(Ee=>{var ye;(ye=l.value)==null||ye.toggleRowSelection(Ee,!0)})),d.value=!0,A.value=!0,await pe())};return $l(()=>{T.value&&(clearInterval(T.value),T.value=null)}),(ge,ue)=>{const Te=Ce("el-alert"),Ee=Ce("el-table-column"),ye=Ce("el-table"),Se=Ce("el-radio"),Fe=Ce("el-radio-group"),Ve=Ce("el-image"),ke=Ce("el-input-number"),Pe=Ce("el-form-item"),Re=Ce("el-form"),Ye=Ce("el-input"),Ke=Ce("el-button"),ot=Ce("el-dialog"),nt=Ai("loading");return Oe(),st(Zt,null,[z(ot,{"align-center":"",width:"700","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:B.visible,"onUpdate:modelValue":ue[5]||(ue[5]=mt=>B.visible=mt),onOpen:U},{title:q(()=>[...ue[9]||(ue[9]=[de("h3",{style:{margin:"0"}},"【凌风跨境工具箱】定时批量调价",-1)])]),footer:q(()=>[de("div",rte,[!A.value&&!v.value?(Oe(),Et(Ke,{key:0,onClick:I,disabled:d.value},{default:q(()=>[...ue[21]||(ue[21]=[Ue("取消",-1)])]),_:1},8,["disabled"])):tr("",!0),!A.value&&!v.value?(Oe(),Et(Ke,{key:1,type:"primary",style:{"margin-left":"30px !important"},onClick:W,loading:d.value},{default:q(()=>[...ue[22]||(ue[22]=[Ue(" 启动任务 ",-1)])]),_:1},8,["loading"])):tr("",!0),A.value?(Oe(),Et(Ke,{key:2,type:"danger",onClick:fe},{default:q(()=>[...ue[23]||(ue[23]=[Ue(" 终止任务 ",-1)])]),_:1})):tr("",!0),v.value?(Oe(),Et(Ke,{key:3,type:"primary",onClick:ie},{default:q(()=>[...ue[24]||(ue[24]=[Ue(" 重置任务 ",-1)])]),_:1})):tr("",!0)])]),default:q(()=>[z(Te,{title:"调价过程中请勿关闭或刷新该页面，可能会导致调价失败",type:"warning","show-icon":!0,closable:!1,style:{"margin-bottom":"20px"}}),ue[25]||(ue[25]=de("div",{style:{"margin-bottom":"20px",color:"#000"}}," 您可以在此设置批量接受/拒绝所有调价： ",-1)),na((Oe(),Et(ye,{data:t.value,border:"",style:{width:"100%","border-radius":"10px 10px 0 0"},"header-cell-style":{background:"#fdddbd",padding:"5px",color:"#000"},maxHeight:"250",onSelectionChange:L,ref_key:"tableRef",ref:l},{default:q(()=>[z(Ee,{"header-align":"center",align:"center",type:"selection",width:"55",selectable:()=>!d.value},null,8,["selectable"]),z(Ee,{"header-align":"center",type:"index",label:"序号",width:"80",align:"center"}),z(Ee,{"header-align":"center",prop:"mallName",label:"店铺名称",width:"300",align:"center"}),z(Ee,{"header-align":"center",prop:"goodsNum",label:"待确认数量",align:"center"})]),_:1},8,["data"])),[[nt,o.value]]),de("div",Kee,[ue[10]||(ue[10]=Ue(" 您已选择 ",-1)),de("span",Yee,ht(f.value),1),ue[11]||(ue[11]=Ue(" 条待确认调价 ",-1))]),de("div",Xee,[ue[15]||(ue[15]=de("span",{style:{color:"#000"}},"执行方式：",-1)),z(Fe,{modelValue:n.value,"onUpdate:modelValue":ue[0]||(ue[0]=mt=>n.value=mt),onChange:le,disabled:d.value},{default:q(()=>[z(Se,{value:"1",size:"large"},{default:q(()=>[...ue[12]||(ue[12]=[Ue("立刻批量接受所有",-1)])]),_:1}),z(Se,{value:"2",size:"large"},{default:q(()=>[...ue[13]||(ue[13]=[Ue("立刻批量拒绝所有",-1)])]),_:1}),z(Se,{value:"3",size:"large"},{default:q(()=>[...ue[14]||(ue[14]=[Ue("定时批量拒绝所有",-1)])]),_:1})]),_:1},8,["modelValue","disabled"]),z(Ve,{style:{width:"30px"},src:St(Nee)},null,8,["src"])]),n.value==="3"?(Oe(),Et(Re,{key:0,inline:"",model:M.value,style:{"margin-left":"70px"},ref_key:"formRef",ref:w},{default:q(()=>[z(Pe,{label:"执行次数",prop:"times",rules:{required:!0,message:"请输入执行次数",trigger:"blur"}},{default:q(()=>[z(ke,{disabled:d.value,size:"default","controls-position":"right",modelValue:M.value.times,"onUpdate:modelValue":ue[1]||(ue[1]=mt=>M.value.times=mt),min:2,precision:0},{suffix:q(()=>[...ue[16]||(ue[16]=[de("span",{style:{color:"#000"}},"次",-1)])]),_:1},8,["disabled","modelValue"])]),_:1}),z(Pe,{label:"执行间隔",prop:"intervalTime",rules:{required:!0,message:"请输入执行间隔",trigger:"blur"}},{default:q(()=>[z(ke,{disabled:d.value,size:"default","controls-position":"right",modelValue:M.value.intervalTime,"onUpdate:modelValue":ue[2]||(ue[2]=mt=>M.value.intervalTime=mt),min:1,precision:0},{suffix:q(()=>[...ue[17]||(ue[17]=[de("span",{style:{color:"#000"}},"小时",-1)])]),_:1},8,["disabled","modelValue"])]),_:1})]),_:1},8,["model"])):tr("",!0),n.value==="3"?(Oe(),st("div",Zee,[ue[18]||(ue[18]=de("div",{style:{color:"#000"}},"结果提醒：",-1)),z(Ye,{disabled:d.value,style:{width:"200px"},size:"default",placeholder:"请输入手机号码",modelValue:u.value,"onUpdate:modelValue":ue[3]||(ue[3]=mt=>u.value=mt)},null,8,["disabled","modelValue"])])):tr("",!0),n.value==="3"?(Oe(),st("div",Jee," 用于短信接收执行结果提醒，如长时间未收到短信，请及时返回页面查看~ ")):tr("",!0),n.value!=="1"?(Oe(),st("div",qee,[ue[19]||(ue[19]=de("div",{style:{color:"#000"}},"拒绝原因：",-1)),z(Ye,{disabled:d.value,modelValue:c.value,"onUpdate:modelValue":ue[4]||(ue[4]=mt=>c.value=mt),resize:"none",style:{"margin-top":"10px"},type:"textarea",placeholder:"请输入拒绝原因"},null,8,["disabled","modelValue"])])):tr("",!0),na(de("div",{style:{color:"#000","margin-top":"10px"}}," 正在执行第 "+ht(he.value)+"次任务 ",513),[[Cl,(d.value||A.value||v.value)&&n.value==="3"]]),na(de("div",ete,[ue[20]||(ue[20]=de("div",{style:{color:"#000"}},"执行进度：",-1)),z(Qc,{ref_key:"progressTickerRef",ref:i,"success-text":"调价完成","stroke-width":12,style:{width:"593px"}},null,512)],512),[[Cl,d.value||A.value||v.value]]),na(de("div",tte,[k.value===1?(Oe(),st(Zt,{key:0},[Ue(" 距离下一次任务还有 "+ht(Y.value.hours)+"小时"+ht(Y.value.minutes)+"分钟"+ht(Y.value.seconds)+"秒 ",1)],64)):(Oe(),st(Zt,{key:1},[Ue(" 已执行完所有任务 ")],64))],512),[[Cl,(d.value||A.value||v.value)&&n.value==="3"]])]),_:1},8,["modelValue"]),z(Qee,{tableRef:l.value,unboundMallsList:_.value,visible:g.value,"onUpdate:visible":ue[6]||(ue[6]=mt=>g.value=mt),selectionList:y.value},null,8,["tableRef","unboundMallsList","visible","selectionList"]),z(Wee,{visible:m.value,"onUpdate:visible":ue[7]||(ue[7]=mt=>m.value=mt),onConfirm:Q},null,8,["visible"]),z($ee,{visible:p.value,"onUpdate:visible":ue[8]||(ue[8]=mt=>p.value=mt)},null,8,["visible"])],64)}}},ate=cn(nte,[["__scopeId","data-v-f0b57bf9"]]),ite={__name:"TimedBatchPriceAdjustment",setup(a){const s=Kn(),r=we(!1),i=we(!1),n=we(!1),t=()=>{const f=document.querySelectorAll("div[class^='TAB_lineLabel']");let o=!1;f.forEach(l=>{var m;((l==null?void 0:l.textContent)||"").includes("待卖家确认")&&((m=l.parentElement)!=null&&m.className.includes("TAB_active"))&&(o=!0)}),i.value=o};let c=[];oa(()=>{document.querySelectorAll("[class^='TAB_tabContentInnerContainer']").forEach(o=>{const l=new MutationObserver(t);l.observe(o,{subtree:!0,childList:!0,attributes:!0}),c.push(l)}),t()}),Cf(()=>{c.forEach(f=>{f.disconnect()})});const u=async()=>{r.value=!0;const f=await s.init();r.value=!1,f&&(n.value=!0)};return(f,o)=>{const l=Ce("el-button");return Oe(),st(Zt,null,[i.value?(Oe(),Et(l,{key:0,loading:r.value,onClick:u,class:"custom-button",type:"primary"},{default:q(()=>[...o[1]||(o[1]=[Ue(" 【凌风跨境工具箱】定时批量调价 ",-1)])]),_:1},8,["loading"])):tr("",!0),z(ate,{visible:n.value,"onUpdate:visible":o[0]||(o[0]=g=>n.value=g)},null,8,["visible"])],64)}}},ste={class:"buttons-container"},ote={__name:"PriceManagePlugins",setup(a){return(s,r)=>(Oe(),st("div",ste,[z(Hk),z(Mee),z(Uee),z(ite)]))}},lte=cn(ote,[["__scopeId","data-v-8075e059"]]),ute={__name:"bulkCopyID",setup(a){const s=we(!1),r=we([]),i=we([]);let n=[],t=[];const c=we(!0),u=()=>{let y=Vh?document.querySelector('thead.TB_thead_5-118-0 tr.TB_tr_5-118-0 th.TB_checkCell_5-118-0 input[type="checkbox"]'):document.querySelector('thead.TB_thead_5-117-0 tr.TB_tr_5-117-0 th.TB_checkCell_5-117-0 input[type="checkbox"]');const h=Vh?document.querySelectorAll('td.TB_checkCell_5-118-0 label.CBX_outerWrapper_5-118-0 input[type="checkbox"]'):document.querySelectorAll('td.TB_checkCell_5-117-0 label.CBX_outerWrapper_5-117-0 input[type="checkbox"]');y&&(y.removeEventListener("change",f),y.addEventListener("change",f)),h&&h.forEach(d=>{d.removeEventListener("change",o),d.addEventListener("change",o)})},f=y=>{const h=y.target.checked,d=Vh?document.querySelectorAll('td.TB_checkCell_5-118-0 label.CBX_outerWrapper_5-118-0 input[type="checkbox"]'):document.querySelectorAll('td.TB_checkCell_5-117-0 label.CBX_outerWrapper_5-117-0 input[type="checkbox"]');r.value=[],i.value=[],d.forEach(A=>{if(!A.disabled&&(A.checked=h,A.checked)){const w=A.closest("tr").querySelectorAll("p");let x="未找到SKC",C="未找到SKU";w.forEach(k=>{k.textContent.includes("SKC：")&&(x=k.textContent.replace("SKC：","").trim()),k.textContent.includes("SPU：")&&(C=k.textContent.replace("SPU：","").trim())}),r.value.push(x),i.value.push(C)}}),n=i.value.map(A=>parseInt(A)).join(`
`),t=r.value.map(A=>parseInt(A)).join(`
`),l()},o=()=>{const y=Vh?document.querySelectorAll('td.TB_checkCell_5-118-0 label.CBX_outerWrapper_5-118-0 input[type="checkbox"]'):document.querySelectorAll('td.TB_checkCell_5-117-0 label.CBX_outerWrapper_5-117-0 input[type="checkbox"]');r.value=[],i.value=[],y.forEach(h=>{if(h.checked&&!h.disabled){const A=h.closest("tr").querySelectorAll("p");let v="未找到SKC",w="未找到SKU";A.forEach(x=>{x.textContent.includes("SKC：")&&(v=x.textContent.replace("SKC：","").trim()),x.textContent.includes("SPU：")&&(w=x.textContent.replace("SPU：","").trim())}),r.value.push(v),i.value.push(w)}}),n=i.value.map(h=>parseInt(h)).join(`
`),t=r.value.map(h=>parseInt(h)).join(`
`),l()},l=()=>{const y=document.querySelector('button[data-tracking-id="jPC5aoigt5BVCYOu"]');y?c.value=y.disabled||y.classList.contains("BTN_disabled_5-111-0")||y.classList.contains("BTN_disabled_5-118-0"):c.value=!0};new MutationObserver(u).observe(document.body,{childList:!0,subtree:!0}),u();const m=()=>{navigator.clipboard.writeText(n).then(()=>{ut.success("SPU ID 已复制")}).catch(()=>{ut.error("复制失败，请重试")}),s.value=!1},p=()=>{navigator.clipboard.writeText(t).then(()=>{ut.success("SKC ID 已复制")}).catch(()=>{ut.error("复制失败，请重试")}),s.value=!1};O8(()=>{l()});let _=null;return oa(()=>{_=setInterval(l,2e3)}),Cf(()=>{_&&clearInterval(_)}),(y,h)=>{const d=Ce("el-icon"),A=Ce("el-button"),v=Ce("el-popover");return Oe(),Et(v,{visible:s.value,"onUpdate:visible":h[2]||(h[2]=w=>s.value=w),placement:"bottom-start","show-arrow":!1,trigger:"hover",offset:0,width:248,"popper-class":"custom-popover",disabled:c.value},{reference:q(()=>[z(A,{class:ao(["copyCustom-button",{"disabled-button":c.value}]),style:{"margin-left":"15px"},disabled:c.value,onMouseenter:h[0]||(h[0]=w=>s.value=!0),onMouseleave:h[1]||(h[1]=w=>s.value=!1)},{default:q(()=>[h[3]||(h[3]=Ue(" 【凌风跨境工具箱】批量复制ID ",-1)),z(d,{class:"lf-icon--right"},{default:q(()=>[(Oe(),Et(L8(s.value?St(P8):St(H2))))]),_:1})]),_:1},8,["class","disabled"])]),default:q(()=>[de("div",null,[de("div",{class:"SpuClass",onClick:m},"SPU ID"),de("div",{class:"SkcClass",onClick:p},"SKC ID")])]),_:1},8,["visible","disabled"])}}},cte={};function fte(a,s){const r=Ce("el-button");return Oe(),Et(r,{class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/dataCenter/saleCount",target:"_blank",rel:""},{default:q(()=>[...s[0]||(s[0]=[Ue(" 一键前往【凌风跨境工具箱】财务管理页面 ",-1)])]),_:1})}const dte=cn(cte,[["render",fte],["__scopeId","data-v-e09eb8cf"]]),hte={class:"shopList"},Ate={class:"num"},pte={class:"flex justify-end items-center gap-2"},mte={__name:"batchPriceDialog",props:{visible:Boolean,skcIdList:Array},emits:["update:visible"],setup(a,{emit:s}){const r=Kn(),i=we(!1),n=we(null),t=we(null),c=we([]),u=we({price:null,reason:""}),f=a,o=s,l={price:[{required:!0,message:"请输入调整后的申报价格！",trigger:"blur"}],reason:[{required:!0,message:"请选择调价原因！",trigger:"change"}]},g=()=>{o("update:visible",!1)},m=async()=>{var d;const h=await(Vh?BK:IK)({Mallid:r.id});h.success===!0&&(c.value=(d=h.result)==null?void 0:d.priceAdjustReasonList)},p=()=>{var y;n.value.resetFields(),(y=t.value)==null||y.reset(),m()},_=async()=>{await n.value.validate(async(y,h)=>{var d,A;if(y){i.value=!0;let v=Date.now().toString();try{t.value.start(v);const w=await FK({uuid:v,adjustReason:u.value.reason,skcIdList:f.skcIdList.map(Number),targetSupplyPrice:Math.round(u.value.price*100),mallId:r.id});if(w.status!==0)return;let x="";if(w.successCnt!==0&&(x+=`<div class="notify-success-text">批量调价成功<strong>${w.successCnt}</strong>个！</div>`),w.skipSkuId.length!==0&&(x+=`<div class="notify-warning-text">跳过调价<strong>${w.skipSkuId.length}</strong>个！</div>`,x+=`<div class="notify-warning-text">跳过的SKU ID：${w.skipSkuId.join("，")}</div>`),(d=w.failErrorInfoList)!=null&&d.length){x+=`<div class="notify-error-text">调价失败<strong>${w.failCnt}</strong>个！</div><ul style="margin-top: 0">`;for(const k of w.failErrorInfoList)x+=`<li>SKC: ${k.skcId}<ul style="padding-left: 0;"><li class="notify-error-text">${k.error}</li></ul></li>`;x+="</ul>"}const C=Zn(_i,{maxHeight:"400px"},{default:()=>Zn("div",{innerHTML:x})});ha({title:"提示",dangerouslyUseHTMLString:!0,message:C,customClass:"batchPriceNotification",type:w.failCnt!==0?"warning":"success",duration:w.failCnt!==0?432e5:4e3})}catch(w){console.error("调价失败：",w),ut.error(w.message||"批量调价失败，请检查网络是否正常")}finally{i.value=!1,(A=t.value)==null||A.stop(),g()}}else console.log("error submit!",h)})};return(y,h)=>{const d=Ce("el-alert"),A=Ce("el-input-number"),v=Ce("el-form-item"),w=Ce("el-option"),x=Ce("el-select"),C=Ce("el-form"),k=Ce("el-button"),T=Ce("el-dialog");return Oe(),Et(T,{modelValue:f.visible,"onUpdate:modelValue":h[2]||(h[2]=S=>f.visible=S),title:"一键批量调价",width:"500","align-center":"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,style:{"border-radius":"8px"},onOpen:p},{footer:q(()=>[de("div",pte,[z(k,{disabled:i.value,onClick:g,style:{"margin-right":"20px !important"}},{default:q(()=>[...h[6]||(h[6]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(k,{type:"primary",loading:i.value,onClick:_},{default:q(()=>[...h[7]||(h[7]=[Ue(" 开始调价 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(d,{title:"调价过程中请勿关闭或刷新该页面，可能会导致调价失败",type:"warning","show-icon":!0,closable:!1,style:{"margin-bottom":"20px"}}),de("div",hte,[h[3]||(h[3]=Ue(" 您已选择 ",-1)),de("span",Ate,ht(f.skcIdList.length),1),h[4]||(h[4]=Ue(" 个商品 ",-1))]),z(C,{rules:l,model:u.value,"label-width":"auto","label-position":"right",ref_key:"formRef",ref:n},{default:q(()=>[z(v,{label:"调整后的申报价格：",prop:"price"},{default:q(()=>[z(A,{modelValue:u.value.price,"onUpdate:modelValue":h[0]||(h[0]=S=>u.value.price=S),min:1,"controls-position":"right",size:"default",style:{width:"330px"},disabled:i.value},{suffix:q(()=>[...h[5]||(h[5]=[de("span",null,"￥",-1)])]),_:1},8,["modelValue","disabled"])]),_:1}),z(v,{label:"调价原因：",prop:"reason"},{default:q(()=>[z(x,{modelValue:u.value.reason,"onUpdate:modelValue":h[1]||(h[1]=S=>u.value.reason=S),placeholder:"请选择调价原因",size:"default",disabled:i.value},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(c.value,S=>(Oe(),Et(w,{key:S.id,label:S.desc,value:S.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),na(z(v,{label:"调价进度："},{default:q(()=>[z(jc,{ref_key:"progressTickerRef",ref:t,"success-text":"调价完成","stroke-width":12},null,512)]),_:1},512),[[Cl,i.value]])]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},Qk=cn(mte,[["__scopeId","data-v-139980e4"]]),gte={__name:"BatchPriceAdjustment",setup(a){const s=Kn(),r=we([]),i=we(!0),n=we(!1),t=we(!1),c=()=>{const g=document.querySelectorAll("button"),m=Array.from(g).find(p=>p.innerText.trim()==="批量申请备货");m?i.value=m.disabled||m.classList.contains("BTN_disabled_5-111-0"):i.value=!0};let u=null;oa(()=>{u=new MutationObserver(g=>{c()}),u.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),c()}),Cf(()=>{u&&u.disconnect()});const f=g=>new Promise(m=>setTimeout(m,g)),o=async()=>{n.value=!0;const g=await s.init();n.value=!1,g&&(r.value=await l(s.mall),t.value=!0)},l=async g=>{const m=document.querySelectorAll("button"),p=Array.from(m).find(_=>_.innerText.trim()==="【凌风跨境工具箱】批量复制ID");if(p){if(p.disabled)return[];p.dispatchEvent(new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0})),await f(200);const _=document.querySelectorAll("div.SkcClass");if(!_||_.length===0)return ut.error("获取SKC信息失败，请检查页面元素"),!1;_[0].click(),await f(200);try{const y=await navigator.clipboard.readText();return y?y.split(`
`).map(d=>d.trim()).filter(d=>d.length>0):[]}catch{return ut.error("读取剪贴板失败，请检查权限设置"),!1}}else return ut.error("获取商品信息失败, 可能是 temu 更新导致的, 请联系客服"),!1};return(g,m)=>{const p=Ce("el-button");return Oe(),st(Zt,null,[z(p,{loading:n.value,class:ao(["copyCustom-button",{"disabled-button":i.value}]),disabled:i.value,onClick:o},{default:q(()=>[...m[1]||(m[1]=[Ue(" 【凌风跨境工具箱】批量调价 ",-1)])]),_:1},8,["loading","class","disabled"]),z(Qk,{skcIdList:r.value,visible:t.value,"onUpdate:visible":m[0]||(m[0]=_=>t.value=_)},null,8,["skcIdList","visible"])],64)}}},vte=xi({__name:"SaveButton",setup(a){const s=Kn(),r=we(!1),i=we([]),n=async()=>{r.value=!0;const c=await s.init();if(r.value=!1,!!c){r.value=!0;try{const u=document.querySelector('div[class*="Drawer_outerWrapper"]:last-child'),o=(u.querySelector('div[class*="index-module__footer"]')||u.querySelector('div[class*="footer_footer"]')).querySelectorAll("button"),l=Array.from(o).find(_=>_.innerText.trim()==="确认"),g=u.querySelectorAll('input[type="text"][data-testid="beast-core-inputNumber-htmlInput"]'),m=Array.from(g).filter(_=>_.value&&_.value.trim()!=="");if(g.length>0&&m.length===0){ut.warning("批量备货中请至少填写一个sku"),r.value=!1;return}const p=_=>{if(_.data.type==="/oms/bg/venom/api/supplier/sales/management/batchCreateStockOrder"){window.removeEventListener("message",p);const{response:y,params:h}=_.data;y.success?(i.value=y.result.successInfoList,t()):r.value=!1}};window.addEventListener("message",p),l.click()}catch{r.value=!1}}},t=async()=>{try{if(!i.value||i.value.length===0){ut.warning("没有可复制的数据"),r.value=!1;return}const c={};i.value.forEach(f=>{const o=f.productSkcId;c[o]||(c[o]=[]),f.purchaseDetailList.forEach(l=>{c[o].push({skuId:l.productSkuId,className:l.className,quantity:l.productSkuPurchaseQuantity})})});let u="";u+=`申请批量备货
`,Object.keys(c).forEach((f,o)=>{u+=`SKC: ${f}
`,c[f].forEach(l=>{u+=`SKU ID: ${l.skuId}-${l.className}-${l.quantity}件
`}),o<Object.keys(c).length-1&&(u+=`
`)}),await navigator.clipboard.writeText(u),ut.success("批量申请信息已复制到剪贴板")}catch(c){ut.error("复制失败: "+c.message)}finally{r.value=!1}};return(c,u)=>{const f=Ce("el-button");return Oe(),Et(f,{loading:r.value,onClick:n,class:"copyCustom-button"},{default:q(()=>[...u[0]||(u[0]=[Ue(" 【凌风跨境工具箱】一键复制批量申请信息 ",-1)])]),_:1},8,["loading"])}}}),yte=cn(vte,[["__scopeId","data-v-98c3782a"]]),bte=xi({__name:"copyApplicationInformation",setup(a){let s=null;const r=()=>{const i=document.querySelector('div[class*="Drawer_outerWrapper"]:last-child');if(!i||i.querySelector("div.lingfeng-container"))return;const t=i.querySelector('div[class*="index-module__title-text"]');if(!t||t.textContent.trim()!=="批量申请备货")return;const c=i.querySelector('div[class*="index-module__footer"]')||i.querySelector('div[class*="footer_footer"]');if(!c){ut.error("无法注入批量复制申请信息按钮, 可能是 TEMU 更新了页面, 请联系客服");return}const u=document.createElement("div");u.className="lingfeng-container",u.style.marginLeft="13px",c.appendChild(u),ks(u,yte)};return oa(()=>{s=new MutationObserver(()=>{r()}),s.observe(document.body,{childList:!0,subtree:!0,attributes:!0}),r()}),Cf(()=>{s&&s.disconnect()}),()=>{}}}),wte={class:""},_te={class:"flex flex-wrap gap-2"},xte={__name:"SaleManagePlugins",setup(a){return(s,r)=>(Oe(),st("div",wte,[de("div",_te,[z(ute),z(dte),z(gte),z(bte)])]))}},Cte={};function Ste(a,s){const r=Ce("el-button");return Oe(),Et(r,{class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/tools/LabelTemplate",target:"_blank",rel:""},{default:q(()=>[...s[0]||(s[0]=[Ue(" 一键前往【凌风跨境工具箱】标签模板页面 ",-1)])]),_:1})}const Uy=cn(Cte,[["render",Ste]]),kte={},Tte={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200"};function Ete(a,s){return Oe(),st("svg",Tte,[...s[0]||(s[0]=[de("path",{d:"M142.859 459.266h738.281v369.141a105.469 105.469 0 0 1-105.469 105.469H248.328a105.469 105.469 0 0 1-105.469-105.469V459.266Z",fill:"#ec5942"},null,-1),de("path",{d:"M 511.05 320.363 L 520.333 353.797 H 485.633 C 295.526 353.797 195.594 319.625 195.594 237.253 C 195.594 138.06 239.732 90.125 324.266 90.125 c 66.9727 0 113.379 47.9355 147.498 119.127 c 13.3945 28.0547 26.4727 65.0214 39.2872 111.112 Z M 424.198 231.98 C 398.094 177.453 364.555 142.859 324.266 142.859 C 269.844 142.859 248.328 166.221 248.328 237.253 c 0 35.0156 64.7051 59.8008 201.92 63.3867 a 532.09 532.09 0 0 0 -26.0508 -68.6602 Z",fill:"#ffb400"},null,-1),de("path",{d:"M510.98666667 307.5872L520.88853333 343.25013333H483.8752C281.0944 343.25013333 174.50026667 306.8 174.50026667 218.93653333 174.50026667 113.13066667 221.5808 62 311.7504 62c71.43754667 0 120.9376 51.1312 157.3312 127.0688 14.28746667 29.92501333 28.23754667 69.35616 41.90634667 118.51946667Zm-92.64384-69.74997333C390.50026667 198.96853333 354.72533333 174.50026667 311.7504 174.50026667 253.70026667 174.50026667 230.74986667 191.0944 230.74986667 241.54986667c0 24.86250667 69.01877333 42.41248 215.38133333 45a314.4384 314.4384 0 0 0-27.78752-48.76874667Z",fill:"#fed546"},null,-1),de("path",{d:"M521.89973333 307.5872L512 343.25013333h37.01248c202.7808 0 309.37493333-36.45002667 309.37493333-124.31253333 0-105.86304-47.08117333-156.9376-137.25013333-156.9376-71.43754667 0-120.9376 51.1312-157.3312 127.0688-14.28746667 29.92501333-28.23754667 69.35616-41.90634667 118.51946667Zm92.64384-69.74997333C642.3872 198.96853333 678.1632 174.50026667 721.13706667 174.50026667c58.05002667 0 81 16.59381333 81 67.05002666 0 24.86250667-69.01877333 42.41248-215.38133334 45 9.337504-19.68746667 18.56245333-36 27.78752-48.76874666Z",fill:"#fed546","p-id":"65246"},null,-1),de("path",{d:"M 90.125 301.062 m 105.469 0 l 632.813 0 q 105.469 0 105.469 105.469 l 0 0 q 0 105.469 -105.469 105.469 l -632.813 0 q -105.469 0 -105.469 -105.469 l 0 0 q 0 -105.469 105.469 -105.469 Z",fill:"#ff634a","p-id":"65247"},null,-1),de("path",{d:"M406.531 512h210.938v421.875H406.531Z",fill:"#ffb81e","p-id":"65248"},null,-1),de("path",{d:"M 406.531 301.062 c 15.7148 -40.5527 50.8887 -60.8027 105.469 -60.8027 c 54.5801 0 89.7539 20.25 105.469 60.8027 v 210.938 H 406.531 V 301.062 Z",fill:"#fed546","p-id":"65249"},null,-1)])])}const Ite=cn(kte,[["render",Ete]]),Bte=(a,s="提示",r={cancelButtonText:"取消",confirmButtonText:"确认",countdownToConfirm:0,countdownToCancel:0})=>(Pn.close(),new Promise((i,n)=>{const t=r.confirmButtonText||"确认",c=r.cancelButtonText||"取消",u=we(t),f=we(c);let o=null,l=null;if(r.countdownToConfirm&&r.countdownToConfirm>0){let g=r.countdownToConfirm;u.value=`${t}(${r.countdownToConfirm})`,o=setInterval(()=>{g--,u.value=`${t}(${g})`,g<=0&&(Pn.close(),i(void 0),o&&clearInterval(o))},1e3)}if(r.countdownToCancel&&r.countdownToCancel>0){let g=r.countdownToCancel;f.value=`${c}(${r.countdownToCancel})`,l=setInterval(()=>{g--,f.value=`${c}(${g})`,g<=0&&(Pn.close(),n("cancel"),l&&clearInterval(l))},1e3)}Pn.confirm(a,s,{cancelButtonText:f,confirmButtonText:u,closeOnClickModal:!1,closeOnPressEscape:!1,closeOnHashChange:!1,beforeClose:(g,m,p)=>{o&&clearInterval(o),l&&clearInterval(l),p()}}).then(i).catch(n)})),Fte={class:"used-container rounded flex gap-2 items-center"},Mte={key:1,class:"flex items-center gap-2"},Dte={__name:"LabelTemplatePayButton",setup(a,{expose:s}){const r=ls(),{sysUser:i}=Au(r),n=we(!1),t=()=>{Bte("前往【凌风跨境工具箱】开通/续费套餐?","提示",{countdownToConfirm:5}).then(()=>{window.open("https://www.kuajingabc.com/#/user/service?tab=1&menu=模板标签套餐","_blank")}).catch(()=>{})};return s({reload:async()=>{try{n.value=!0,await r.getInfo()}finally{n.value=!1}}}),(u,f)=>{const o=Ce("el-icon"),l=Ce("el-button"),g=Ai("loading");return na((Oe(),st("div",Fte,[de("div",null,[de("span",null,ht(St(i).labelTemplateUseCount)+" / "+ht(St(i).labelTemplateLimit),1)]),St(i).labelTemplateIsVip?(Oe(),st("div",Mte,[de("span",null,"套餐于 "+ht(St(i).labelTemplateOutTime)+" 到期",1),z(l,{size:"small",round:"",type:"info",onClick:t,style:{"--lf-border-radius-round":"0.25rem"}},{default:q(()=>[...f[1]||(f[1]=[Ue(" 续费 ",-1)])]),_:1})])):(Oe(),Et(l,{key:0,size:"small",round:"",type:"info",onClick:t,style:{"--lf-border-radius-round":"0.25rem","--lf-button-bg-color":"#474747","--lf-button-hover-bg-color":"#686868"}},{default:q(()=>[z(o,{size:18},{default:q(()=>[z(Ite)]),_:1}),f[0]||(f[0]=de("span",null," 购买套餐 ",-1))]),_:1}))])),[[g,n.value]])}}},Ote=cn(Dte,[["__scopeId","data-v-8a23ea0d"]]),Lte={class:"w-full bg-white flex flex-col gap-4"},Pte={class:"flex justify-between items-center w-full"},Rte={class:"flex gap-2 items-center"},Ute={class:"used-templates-container rounded"},Nte={style:{display:"inline-block"}},jte={key:0,class:"flex flex-col gap-4 justify-between items-center"},Hte={key:1,class:"grid grid-cols-5 gap-4"},Qte=["onClick"],zte={class:"group flex items-center grow w-full h-full relative overflow-hidden"},Vte={class:"w-full h-full transition-transform duration-300 group-hover:scale-105"},Wte={class:"text-xs p-1 rounded bg-gray-200 absolute top-1 right-1 z-10"},Gte={class:"absolute rounded inset-0 flex items-center justify-around bg-black bg-opacity-0 opacity-0 transition-all duration-300 group-hover:bg-black/50 group-hover:opacity-100"},$te={class:"flex flex-col gap-4 w-full"},Kte={class:"w-full"},Yte={class:"flex justify-end items-center gap-2 mt-4"},Xte={__name:"PrintLabelDialog",props:{sortButtons:{type:Array,default:()=>["tableOrder","selectedOrder","skcOrder","purchaseTime"]}},setup(a,{expose:s}){const r=we(!1),i=we(!1),n=we(!1),t=we([]),c=we(0),u=we(0),f=we(!1),o=we(),l=we(null),g=we([]),m=we("tableOrder"),p=we({page:1,pageSize:10,total:0});Ra(m,w=>{switch(w){case"tableOrder":g.value=g.value.sort((x,C)=>x.tableOrder-C.tableOrder);break;case"selectedOrder":g.value=g.value.sort((x,C)=>x.selectedOrder-C.selectedOrder);break;case"skcOrder":g.value=g.value.sort((x,C)=>x.skcOrder-C.skcOrder);break;case"purchaseTime":g.value=g.value.sort((x,C)=>C.purchaseTime-x.purchaseTime);break}},{immediate:!0});const _=async({mallId:w,orders:x,orderType:C})=>{r.value=!0;try{f.value=!0,g.value=await cT(w,x,C)}catch(k){ut.error(`获取商品标签数据失败: ${k.message}`),console.error(k),g.value=[]}finally{f.value=!1}f.value=!1,await h()},y=()=>{window.open("https://www.kuajingabc.com/#/tools/LabelTemplate","_blank")};s({openDialog:_});const h=async(w=p.value.page,x=p.value.pageSize)=>{p.value.page=w,p.value.pageSize=x,c.value=null,i.value=!0;try{const{status:C,error:k,errorMsg:T,recommanded_template_list:S,total:M}=await fT({page_id:p.value.page,page_size:p.value.pageSize});if(C!==0){ut.error(`获取标签模板失败: ${T||k}`),console.error(T||k);return}p.value.total=M,t.value=S}catch(C){ut.error(`获取标签模板失败: ${C.message}`),console.error(C)}finally{i.value=!1}},d=async w=>{if(w.id===c.value){c.value=null;return}c.value=w.id},A=async()=>{n.value=!0,u.value=0;try{await dT(c.value,g.value,w=>{u.value=Math.round(w)})}catch(w){w.message.includes("No tab with given id")?ha({type:"error",title:"PDF 生成失败",message:"PDF 生成过程中请勿关闭预览页面, 生成完成后程序会自动关闭",duration:0}):ut.error(`生成标签失败: ${w.message}`),console.error(w)}finally{n.value=!1}},v=()=>{h(1,p.value.pageSize),o.value.reload()};return(w,x)=>{const C=Ce("el-radio"),k=Ce("el-radio-group"),T=Ce("el-table-column"),S=Ce("el-input-number"),M=Ce("el-table"),P=Ce("el-tooltip"),N=Ce("el-alert"),B=Ce("el-button"),O=Ce("el-empty"),I=Ce("el-icon"),F=Ce("el-image-viewer"),L=Ce("el-image"),R=Ce("el-pagination"),U=Ce("el-progress"),V=Ce("el-dialog"),W=Ai("loading");return Oe(),Et(V,{modelValue:r.value,"onUpdate:modelValue":x[6]||(x[6]=Q=>r.value=Q),title:"打印合规标签","append-to-body":"",top:"40px",width:"80%"},{footer:q(()=>[0<u.value&&u.value<100?(Oe(),Et(U,{key:0,percentage:u.value},null,8,["percentage"])):tr("",!0),de("div",Yte,[z(k,{modelValue:m.value,"onUpdate:modelValue":x[4]||(x[4]=Q=>m.value=Q),class:"mr-4"},{default:q(()=>[a.sortButtons.includes("tableOrder")?(Oe(),Et(C,{key:0,label:"按备货单顺序",value:"tableOrder"})):tr("",!0),a.sortButtons.includes("selectedOrder")?(Oe(),Et(C,{key:1,label:"按勾选顺序",value:"selectedOrder"})):tr("",!0),a.sortButtons.includes("skcOrder")?(Oe(),Et(C,{key:2,label:"按 SKC ID 升序",value:"skcOrder"})):tr("",!0),a.sortButtons.includes("purchaseTime")?(Oe(),Et(C,{key:3,label:"按备货单创建时间顺序",value:"purchaseTime"})):tr("",!0)]),_:1},8,["modelValue"]),z(B,{onClick:x[5]||(x[5]=Q=>r.value=!1),disabled:n.value},{default:q(()=>[...x[13]||(x[13]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(B,{type:"primary",disabled:!c.value,onClick:A,loading:n.value},{default:q(()=>[...x[14]||(x[14]=[Ue("确定",-1)])]),_:1},8,["disabled","loading"])])]),default:q(()=>[de("div",Lte,[z(N,{type:"info",closable:!1},{title:q(()=>[z(P,{"raw-content":"",effect:"light"},{content:q(()=>[z(k,{modelValue:m.value,"onUpdate:modelValue":x[0]||(x[0]=Q=>m.value=Q)},{default:q(()=>[a.sortButtons.includes("tableOrder")?(Oe(),Et(C,{key:0,label:"按备货单顺序",value:"tableOrder"})):tr("",!0),a.sortButtons.includes("selectedOrder")?(Oe(),Et(C,{key:1,label:"按勾选顺序",value:"selectedOrder"})):tr("",!0),a.sortButtons.includes("skcOrder")?(Oe(),Et(C,{key:2,label:"按 SKC ID 升序",value:"skcOrder"})):tr("",!0),a.sortButtons.includes("purchaseTime")?(Oe(),Et(C,{key:3,label:"按备货单创建时间顺序",value:"purchaseTime"})):tr("",!0)]),_:1},8,["modelValue"]),z(M,{data:g.value,style:{width:"750px"},size:"small","max-height":"520"},{default:q(()=>[z(T,{prop:"productSkcId",label:"SKC",width:"220"}),z(T,{prop:"productSkuId",label:"SKU",width:"220"}),z(T,{label:"打印数量"},{default:q(Q=>[z(S,{size:"small",modelValue:Q.row.quantity,"onUpdate:modelValue":le=>Q.row.quantity=le,min:1,max:9999,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),default:q(()=>[na((Oe(),st("span",null,[x[7]||(x[7]=Ue("当前选中SKU数量",-1)),de("strong",null,ht(g.value.length)+"个",1)])),[[W,f.value]])]),_:1})]),_:1}),de("div",Pte,[de("div",Rte,[x[9]||(x[9]=de("div",{class:"font-bold"},"我的模板",-1)),de("div",Ute,[x[8]||(x[8]=de("span",null,"模板额度: ",-1)),de("div",Nte,[z(Ote,{ref_key:"labelTemplatePayButtonRef",ref:o},null,512)])]),de("div",null,[z(B,{text:"",icon:St(Ay),onClick:v},null,8,["icon"])])]),de("div",null,[z(B,{plain:"",onClick:y},{default:q(()=>[...x[10]||(x[10]=[Ue("查看更多模板",-1)])]),_:1})])]),na((Oe(),st("div",null,[!t.value||t.value.length===0?(Oe(),st("div",jte,[z(O,{description:"暂无模板"}),z(B,{onClick:y,icon:St(R8),type:"primary"},{default:q(()=>[...x[11]||(x[11]=[Ue("前往【凌风跨境工具箱】标签模板页面创建模板",-1)])]),_:1},8,["icon"])])):(Oe(),st("div",Hte,[l.value?(Oe(),Et(F,{key:0,"url-list":[l.value.preview_image],"hide-on-click-modal":!0,onClose:x[1]||(x[1]=Q=>l.value=null)},{toolbar:q(({actions:Q,reset:le})=>[z(I,{onClick:G=>Q("zoomOut")},{default:q(()=>[z(St(U8))]),_:1},8,["onClick"]),z(I,{onClick:G=>Q("zoomIn")},{default:q(()=>[z(St(N8))]),_:1},8,["onClick"]),z(I,{onClick:G=>Q("clockwise")},{default:q(()=>[z(St(HC))]),_:1},8,["onClick"]),z(I,{onClick:G=>Q("anticlockwise")},{default:q(()=>[z(St(j8))]),_:1},8,["onClick"]),z(I,{onClick:le},{default:q(()=>[z(St(H8))]),_:1},8,["onClick"]),z(B,{size:"large",type:"primary",plain:"",onClick:y,style:{left:"50%",position:"absolute",bottom:"60px",transform:"translateX(-50%)"}},{default:q(()=>[...x[12]||(x[12]=[de("span",null,"前往【凌风跨境工具箱】标签模板页面编辑",-1)])]),_:1})]),_:1},8,["url-list"])):tr("",!0),(Oe(!0),st(Zt,null,Hr(t.value,(Q,le)=>(Oe(),st("div",{key:le,class:ao(["template-item cursor-pointer p-2 rounded flex flex-col gap-4 justify-between shadow",{selected:Q.id===c.value}]),onClick:G=>d(Q)},[de("div",zte,[de("div",Vte,[de("div",Wte,[de("span",null,ht(`${Q.width}*${Q.height}mm`),1)]),z(L,{src:Q.preview_image,style:{width:"100%",height:"100%"},fit:"contain"},null,8,["src"])]),na((Oe(),st("div",Gte,[z(B,{onClick:_0(G=>l.value=Q,["stop"]),plain:"",size:"default"},{default:q(()=>[z(I,{size:28},{default:q(()=>[z(St(UC))]),_:1})]),_:1},8,["onClick"])])),[[W,Q.isLoading]])]),de("div",$te,[de("div",Kte,ht(Q.name),1)])],10,Qte))),128))]))])),[[W,i.value]]),de("div",null,[z(R,{size:"default",layout:"total, sizes, prev, pager, next, jumper",total:p.value.total,"page-size":p.value.pageSize,"page-sizes":[10,20,50],"current-page":p.value.page,onCurrentChange:x[2]||(x[2]=Q=>h(Q,p.value.pageSize)),onSizeChange:x[3]||(x[3]=Q=>h(1,Q))},null,8,["total","page-size","current-page"])])])]),_:1},8,["modelValue"])}}},Zte=cn(Xte,[["__scopeId","data-v-bcfc307e"]]),Jte={key:1,class:"text-xs flex flex-col justify-center"},ig={__name:"PrintLabelButton",props:{queryOrders:{type:Function,default:()=>({orders:[],ok:!0})},orderType:{type:String,validate:a=>["purchase","delivery","sku"].includes(a)},isBatch:{type:Boolean,default:!0},sortButtons:{type:Array,default:()=>["tableOrder","selectedOrder","skcOrder","purchaseTime"]}},setup(a){const s=a,r=Kn(),{mall:i}=Au(r),n=we(!1),t=we(null);Pr(()=>s.isBatch?"8px":"2px");const c=async()=>{n.value=!0;try{if(!await r.init())return;let f=s.queryOrders();f instanceof Promise&&(f=await f);const{orders:o,ok:l}=f;if(!l)return;if(o.length===0){ut.error("请选择需要打印的订单/商品");return}await t.value.openDialog({mallId:i.value.mallId,orders:o,orderType:s.orderType})}catch(u){ut.error(u.message),console.error(u)}finally{n.value=!1}};return(u,f)=>{const o=Ce("el-button");return Oe(),st(Zt,null,[z(o,{class:"lf-print-label-button",type:"primary",size:a.isBatch?"default":"large",onClick:c,loading:n.value},{default:q(()=>[a.isBatch?(Oe(),st(Zt,{key:0},[Ue("【凌风跨境工具箱】批量打印合规标签")],64)):(Oe(),st("div",Jte,[...f[0]||(f[0]=[de("div",null," 【凌风工具箱】 ",-1),de("div",null," 打印合规标签 ",-1)])]))]),_:1},8,["size","loading"]),z(Zte,{ref_key:"printLabelDialogRef",ref:t,"sort-buttons":a.sortButtons},null,8,["sort-buttons"])],64)}}};function qte(a){var i,n;const s=a.querySelector('div[class*="order-status-tag_main"]'),r=(n=(i=s==null?void 0:s.parentElement)==null?void 0:i.children)==null?void 0:n[0].innerText;if(!r)throw new Error("未查询到发货单");return r}const ere={__name:"TableRowButtonGroup",setup(a){const s=we(),r=()=>{const i=s.value.closest("tr");try{return{orders:[qte(i)],ok:!0}}catch(n){return ut.error("获取发货单号失败, 可能是 TEMU 更新了页面, 请联系开发人员"),console.error(n),{orders:[],ok:!1}}};return(i,n)=>(Oe(),st("div",{class:"flex flex-col gap-1",ref_key:"tableRowButtonGroupRef",ref:s},[z(ig,{"query-orders":r,"is-batch":!1,"order-type":"delivery"})],512))}},tre={class:"flex flex-wrap gap-2"},rre={__name:"ShippingListPlugins",setup(a){const s=we(-1),r=()=>{const u=document.querySelector('#root div[class*="TAB_tabTopOuter"] div[class*="TAB_tabContentInnerContainer"]');if(!u){ut.error("程序异常, 可能是 TEMU 更新了页面, 请联系开发人员"),console.error("找不到 tabContainer");return}const f=window.location.pathname,o=setInterval(()=>{f!==window.location.pathname&&clearInterval(o);const l=u.querySelector('div[class*="TAB_active"]');if(l)switch(l.innerText){case"待装箱发货":s.value=0;break;case"待仓库收货":s.value=1;break;case"已收货":s.value=2;break;default:s.value=-1}},500)};let i=null;function n(){i&&clearInterval(i);let u=window.location.pathname;i=setInterval(()=>{if(window.location.pathname!==u){clearInterval(i);return}if([0,1].includes(s.value)){const o=document.querySelectorAll('#root tbody tr td[class*="TB_rightSticky"]');Array.from(o).filter(g=>{const m=g.querySelectorAll("a");return Array.from(m).some(p=>p.innerText.includes("打印商品条码"))}).forEach(g=>{if(!g.querySelector(".lingfeng-custom-buttons")){const m=document.createElement("div");m.className="lingfeng-custom-buttons",g.appendChild(m),ks(m,ere)}})}},1e3)}const t=u=>{const o=document.querySelector('#root div[class*="shipping-list_flexAndColor"]').querySelectorAll("button"),l=Array.from(o).find(g=>g.innerText.includes("打印商品条码"));if(l){if(Array.from(l.classList).find(g=>g.includes("BTN_disabled"))){ut.error("请先选择商品"),u({ok:!1});return}l.click()}else console.error("找不到打印按钮"),ut.error("无法找到订单号, 可能是 TEMU 更新了页面, 请联系开发人员"),u({ok:!1})},c=async()=>new Promise((u,f)=>{try{const o=(l=>{if(l.data.type==="/bgSongbird-api/supplier/deliverGoods/management/printProductSkuLabel"){const{deliveryOrderSnList:g}=l.data.params;u({orders:g,ok:!0}),window.removeEventListener("message",o)}});window.addEventListener("message",o),t(u)}catch(o){ut.error(`获取发货单失败: ${o.message}`),console.error(o),u({ok:!1})}});return oa(async()=>{r(),n()}),(u,f)=>(Oe(),st("div",tre,[s.value>=0?(Oe(),Et(R0,{key:0,"export-type":s.value},null,8,["export-type"])):tr("",!0),z(Uy),[0,1].includes(s.value)?(Oe(),Et(ig,{key:1,"is-batch":!0,"query-orders":c,"order-type":"delivery"})):tr("",!0)]))}},nre=cn(rre,[["__scopeId","data-v-9d2b2863"]]);function are(){const a=document.querySelectorAll('#root td[class*="TB_checkCell"][class*="TB_leftSticky"]');if(!a)return[];const s=[];for(let r=0;r<a.length;r++){const i=a[r];i.querySelector('label[class*="CBX_checkbox"][class*="CBX_active"]')&&s.push(i.closest("tr"))}return s}function zk(a){const s=document.querySelectorAll("#root th"),r=Array.from(s).findIndex(n=>n.innerText.includes("SKU")),i=[];for(let n=0;n<a.length;n++){const f=a[n].querySelector(`td:nth-child(${r+1})`).innerText.match(/\d+/);if(!f)throw new Error("未查询到 SKU ID");i.push(f[0])}return i}const ire={__name:"TableRowButtonGroup",setup(a){const s=we(),r=()=>{const i=s.value.closest("tr");try{return{orders:zk([i]),ok:!0}}catch(n){return ut.error("获取商品信息失败"),console.error(n),{ok:!1}}};return(i,n)=>(Oe(),st("div",{class:"flex flex-col gap-1",ref_key:"tableRowButtonGroupRef",ref:s},[z(ig,{"query-orders":r,"is-batch":!1,"order-type":"sku","sort-buttons":["tableOrder","skcOrder"]})],512))}},sre={class:"flex flex-wrap gap-2"},ore={__name:"ProductLabelPlugins",setup(a){let s=null;function r(){s&&clearInterval(s);let n=window.location.pathname;s=setInterval(()=>{if(window.location.pathname!==n){clearInterval(s);return}const c=document.querySelectorAll("#root th"),u=Array.from(c).findIndex(o=>o.innerText.includes("贴标签要求"));document.querySelectorAll(`#root tbody tr td:nth-child(${u+1})`).forEach(o=>{if(!o.querySelector(".lingfeng-custom-buttons")){const l=document.createElement("div");l.className="lingfeng-custom-buttons",o.appendChild(l),ks(l,ire)}})},2e3)}const i=()=>{const n=are();if(!n||n.length===0)return ut.error("请先选择商品"),{ok:!1};try{return{orders:zk(n),ok:!0}}catch(t){return ut.error(`获取商品信息失败: ${t.message}`),console.error(t),{ok:!1}}};return oa(()=>{r()}),(n,t)=>(Oe(),st("div",sre,[z(Uy),z(ig,{"is-batch":!0,"query-orders":i,"order-type":"sku","sort-buttons":["tableOrder","skcOrder"]})]))}},lre=cn(ore,[["__scopeId","data-v-dd503c7f"]]),ure={style:{"font-weight":"bold"}},cre={style:{display:"flex","justify-content":"flex-end","margin-top":"20px"}},fre={__name:"BatchModifyExpectedArrivalRegions",setup(a){const s=Kn(),{mall:r}=Au(s),i=we(!1),n=we(!1),t=we(null),c=we(!1),u=we(),f=we([]),o=we([]),l=we(!1),g=Pr(()=>{var v;return((v=p.value.result)==null?void 0:v.total)||0}),m=we({}),p=we({});window.pageQuerySkcPickOutConfig=v=>{if(v.data.type==="/mms/turbo/supplier/pick/out/config/pageQuerySkcPickOutConfig"){const{params:w,response:x}=v.data;m.value=w,p.value=x,l.value=!1}},oa(()=>{window.removeEventListener("message",window.pageQuerySkcPickOutConfig),window.addEventListener("message",window.pageQuerySkcPickOutConfig)});const _=async()=>{try{const{success:v,errorMsg:w,result:x}=await Un({url:"/mms/turbo/supplier/pick/out/config/listHistoryDeliveryTwoLevelAddressEnum",method:"POST",headers:{mallid:r.value.mallId}});return v?x||[]:(ut.error(`获取行政区划失败: ${w}`),[])}catch(v){return ut.error(`获取行政区划失败: ${v.message}`),[]}},y=async()=>{try{const{success:v,errorMsg:w,result:x}=await Un({url:"/mms/turbo/supplier/pick/out/config/listSupplierPickOutExpectReceiveAreaConfigEnum",method:"POST",headers:{mallid:r.value.mallId}});return v?x||[]:(ut.error(`获取期望到货区域失败: ${w}`),[])}catch(v){return ut.error(`获取期望到货区域失败: ${v.message}`),[]}},h=()=>{l.value=!0;const v=document.querySelectorAll('div[class*="Drawer_outerWrapper_"] div[class*="index-module__twfContainer"] button');for(const w of v)if(w.innerText==="查询")return w.click(),!0;return console.error("未找到查询按钮"),ut.error("页面异常, 可能是 temu 更新导致的, 请联系客服"),l.value=!1,!1},d=async()=>{n.value=!0;const v=await s.init();if(n.value=!1,!!v&&h()){for(;l.value;)await new Promise(w=>setTimeout(w,100));f.value=await _(),o.value=await y(),i.value=!0}},A=async()=>{if(g.value===0){ut.error("当前查询条件下没有商品, 请重新查询");return}if(!t.value){ut.error("请先选择期望到货区域");return}try{c.value=!0;const v=Sf();u.value.start(v);const w={uuid:v,mallId:`${r.value.mallId}`,filter:m.value,exceptReceiveAreaConfigType:t.value};let{status:x,error:C,errorMsg:k,successCnt:T,failCnt:S,failErrorInfoList:M}=await K$(w);if(x!==0)ut.error(`设置期望到货区域失败: ${C||k}`),u.value.stop();else{let P="",N=M&&M.length>0;if(T&&(P+=`<p class="notify-success-text">成功设置 ${T} 个商品</p>`),S&&(P+=`<p class="notify-error-text">失败 ${S} 个商品</p>`),M&&M.length>0){P+='<ul style="padding: 0;">',P+="<li><p>失败商品信息:</p></li>";for(const O of M)P+=`<li>SKC-${O.skcId}: ${O.error}</li>`;P+="</ul>"}const B=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:P})});ha({title:"提示",message:B,dangerouslyUseHTMLString:!1,type:N?"warning":"success",customClass:"CustomNotifications",duration:N?0:4e3})}}catch(v){ut.error({message:`设置期望到货区域失败: ${v.message}`,showClose:!0,duration:0}),u.value.stop()}finally{c.value=!1,i.value=!1}};return(v,w)=>{const x=Ce("el-button"),C=Ce("el-alert"),k=Ce("el-divider"),T=Ce("el-form-item"),S=Ce("el-select"),M=Ce("el-input"),P=Ce("el-option"),N=Ce("el-form"),B=Ce("el-radio"),O=Ce("el-radio-group"),I=Ce("el-dialog");return Oe(),st(Zt,null,[z(x,{class:"inline-custom-button",type:"primary",loading:n.value||l.value,onClick:w[0]||(w[0]=F=>d())},{default:q(()=>[...w[11]||(w[11]=[Ue(" 【凌风跨境工具箱】一键设置期望到货区域 ",-1)])]),_:1},8,["loading"]),z(I,{title:"【凌风跨境工具箱】一键设置期望到货区域",modelValue:i.value,"onUpdate:modelValue":w[10]||(w[10]=F=>i.value=F),"close-on-press-escape":!1,"close-on-click-modal":!1,width:"50%"},{footer:q(()=>[z(jc,{ref_key:"progressRef",ref:u},null,512),de("div",cre,[z(x,{onClick:w[8]||(w[8]=F=>i.value=!1),disabled:c.value},{default:q(()=>[...w[16]||(w[16]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(x,{type:"primary",onClick:w[9]||(w[9]=F=>A()),loading:c.value},{default:q(()=>[...w[17]||(w[17]=[Ue("确 定",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(C,{type:"info",closable:!1},{default:q(()=>[w[12]||(w[12]=Ue(" 符合当前筛选条件的商品有 ",-1)),de("span",ure,ht(g.value),1),w[13]||(w[13]=Ue(" 个, 批量修改中请勿关闭弹窗或刷新页面, 可能会导致设置失败 ",-1))]),_:1}),z(N,{disabled:"","label-position":"right","label-width":"220px"},{default:q(()=>[z(k,{"content-position":"left"},{default:q(()=>[...w[14]||(w[14]=[de("div",{style:{display:"flex","align-items":"center",gap:"6px"}},[de("div",{class:"divider-title"}," 当前筛选条件 ")],-1)])]),_:1}),z(T,{label:"类目:"},{default:q(()=>[z(ZJ,{modelValue:m.value.category,"onUpdate:modelValue":w[1]||(w[1]=F=>m.value.category=F),multiple:!0,"check-strictly":!0,placeholder:" ","mall-id":`${St(r).mallId}`},null,8,["modelValue","mall-id"])]),_:1}),z(T,{label:"SKC:"},{default:q(()=>[z(S,{modelValue:m.value.productSkcIdList,"onUpdate:modelValue":w[2]||(w[2]=F=>m.value.productSkcIdList=F),multiple:"","allow-create":"",placeholder:" "},null,8,["modelValue"])]),_:1}),z(T,{label:"SPU:"},{default:q(()=>[z(S,{modelValue:m.value.productIdList,"onUpdate:modelValue":w[3]||(w[3]=F=>m.value.productIdList=F),multiple:"","allow-create":"",placeholder:" "},null,8,["modelValue"])]),_:1}),z(T,{label:"商品名称:"},{default:q(()=>[z(M,{modelValue:m.value.productName,"onUpdate:modelValue":w[4]||(w[4]=F=>m.value.productName=F),style:{width:"320px"}},null,8,["modelValue"])]),_:1}),z(T,{label:"历史发货地:"},{default:q(()=>[z(S,{modelValue:m.value.historyDeliveryTwoLevelAddressCodeList,"onUpdate:modelValue":w[5]||(w[5]=F=>m.value.historyDeliveryTwoLevelAddressCodeList=F),multiple:"",placeholder:" "},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(f.value,F=>(Oe(),Et(P,{key:F.historyDeliveryTwoLevelAddressCode,label:F.historyDeliveryTwoLevelAddressDesc,value:F.historyDeliveryTwoLevelAddressCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(T,{label:"当前期望到货区域:"},{default:q(()=>[z(S,{modelValue:m.value.expectReceiveAreaConfigTypeList,"onUpdate:modelValue":w[6]||(w[6]=F=>m.value.expectReceiveAreaConfigTypeList=F),multiple:"",placeholder:" "},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(o.value,F=>(Oe(),Et(P,{key:F.exceptReceiveAreaConfigType,label:F.exceptReceiveAreaConfigDesc,value:F.exceptReceiveAreaConfigType},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(k,{"content-position":"left"},{default:q(()=>[...w[15]||(w[15]=[de("div",{class:"divider-title"}," 期望到货区域 ",-1)])]),_:1})]),_:1}),z(N,{"label-position":"right","label-width":"220px"},{default:q(()=>[z(T,null,{default:q(()=>[z(O,{modelValue:t.value,"onUpdate:modelValue":w[7]||(w[7]=F=>t.value=F)},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(o.value,F=>(Oe(),Et(B,{key:F.exceptReceiveAreaConfigType,value:F.exceptReceiveAreaConfigType,label:F.exceptReceiveAreaConfigDesc},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}},dre=cn(fre,[["__scopeId","data-v-6397c3c0"]]),hre={__name:"FeedbackJoinSite",setup(a){const s=we(!1),r=we(!1),i=Kn(),n=async()=>{s.value=!0;const c=await i.init();s.value=!1,c&&Pn.confirm("点击确认会将当前未加入站点且仓库有可用库存的商品SKC 进行批量填工单问卷进行审加站流程，该功能建议一天用一次即可，不要频繁点击是否要开始催加站点?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{t()})},t=async()=>{r.value=!0;try{let c=await $T({mallId:`${i.id}`});if(c.status>0)throw c;ut.success("催加站点成功！")}catch(c){console.error(c),ut.error("催加站点失败！")}finally{r.value=!1}};return(c,u)=>{const f=Ce("el-button");return Oe(),Et(f,{class:"custom-button",type:"primary",onClick:n,loading:s.value||r.value},{default:q(()=>[...u[0]||(u[0]=[Ue("【凌风跨境工具箱】入库商品催加站点",-1)])]),_:1},8,["loading"])}}},Are={__name:"FeedbackImageReview",setup(a){const s=Kn(),r=we(!1),i=we(!1),n=async()=>{r.value=!0;const c=await s.init();r.value=!1,c&&Pn.confirm("点击确认会将所有图审未完成的商品进行批量工单问卷，该功能建议一天用一次即可，不要频繁点击，是否要开始催图审?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{t()})},t=async()=>{i.value=!0;try{let c=await KT({mallId:`${s.id}`});if(c.status>0)throw c;ut.success("催图审成功！")}catch(c){console.error(c),ha({title:"提示",message:c.errorMsg,type:"error"})}finally{i.value=!1}};return(c,u)=>{const f=Ce("el-button");return Oe(),Et(f,{class:"custom-button",type:"primary",onClick:n,loading:r.value||i.value},{default:q(()=>[...u[0]||(u[0]=[Ue("【凌风跨境工具箱】商品催图审",-1)])]),_:1},8,["loading"])}}},pre={__name:"BatchPriceAdjustment",setup(a){const s=Kn(),r=we([]),i=we(!0),n=we(!1),t=we(!1),c=()=>{const o=document.querySelector('input[type="text"][value="批量复制所选ID"]');o?i.value=o.disabled||o.classList.contains("IPT_disabled_5-111-0"):i.value=!0};let u=null;oa(()=>{u=new MutationObserver(o=>{c()}),u.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),c()}),Cf(()=>{u&&u.disconnect()});const f=async()=>{n.value=!0;const o=await s.init();if(n.value=!1,!o)return;const l=await ix(s.mall);if(!l)return;const g=[];for(const m of l)for(const p of m.skcList)g.push(p.skcId);r.value=g,t.value=!0};return(o,l)=>{const g=Ce("el-button");return Oe(),st(Zt,null,[z(g,{loading:n.value,class:ao(["copyCustom-button",{"disabled-button":i.value}]),disabled:i.value,onClick:f},{default:q(()=>[...l[1]||(l[1]=[Ue(" 【凌风跨境工具箱】批量调价 ",-1)])]),_:1},8,["loading","class","disabled"]),z(Qk,{skcIdList:r.value,visible:t.value,"onUpdate:visible":l[0]||(l[0]=m=>t.value=m)},null,8,["skcIdList","visible"])],64)}}},mre=cn(pre,[["__scopeId","data-v-13079d71"]]),gre={class:"flex gap-4 text-xs"},vre=["title"],yre={class:"mt-1"},bre={style:{color:"#303133"}},wre={class:"mt-1"},_re={style:{color:"#303133"}},xre={class:"mt-1"},Cre={style:{color:"#439eff"}},Sre={class:"skc-sku-container"},kre={class:"skc-row"},Tre={class:"skc-id"},Ere={class:"sku-property"},Ire={class:"sku-details"},Bre={class:"price"},Fre={class:"flex justify-between mt-5"},Mre={key:0,class:"selectionNum"},Dre={__name:"NewonProductTable",props:{data:Array},setup(a,{expose:s}){const r=a,i=we({page:1,pageSize:10}),n=we(),t=y=>{o()},c=y=>{o()},u=Pr(()=>{const y=i.value.page*i.value.pageSize;return r.data.slice(y-i.value.pageSize,y)}),f=we({}),o=()=>{il(()=>{n.value&&r.data.filter(h=>f.value[h.productId]).forEach(h=>{n.value.toggleRowSelection(h,!0)})})},l=y=>{const h={};y.length>0?y.forEach(d=>{h[d.productId]=!0}):u.value.forEach(d=>{delete h[d.productId]}),f.value=h},g=y=>{l(y)},m=y=>{l(y)},p=Pr(()=>r.data.filter(y=>f.value[y.productId])),_=()=>{f.value={},n.value.clearSelection()};return s({multipleSelection:p}),(y,h)=>{const d=Ce("el-table-column"),A=Ce("el-image"),v=Ce("el-tag"),w=Ce("el-divider"),x=Ce("el-table"),C=Ce("el-text"),k=Ce("el-pagination");return Oe(),st(Zt,null,[z(x,iA(y.$attrs,sA(y.$attrs),{class:"w-full",style:{height:"74vh"},data:u.value,"row-key":"productId","row-class-name":"cursor-pointer",onSelect:g,onSelectAll:m,ref_key:"multipleTableRef",ref:n}),{default:q(()=>[z(d,{type:"selection",width:"55"}),z(d,{label:"商品信息"},{default:q(({row:T})=>[de("div",gre,[de("div",null,[z(A,{style:{width:"50px",height:"50px"},src:T.carouselImageUrlList[0]},null,8,["src"])]),de("div",null,[de("div",null,[de("span",{title:T.productName,class:"font-bold text-[14px] line-clamp-2",style:{color:"#303133"}},ht(T.productName),9,vre)]),de("div",yre,[h[4]||(h[4]=de("span",{style:{color:"#606266"}},"类目:",-1)),de("span",bre,ht(T.fullCategoryName.join(">")),1)]),de("div",wre,[h[5]||(h[5]=de("span",{style:{color:"#606266"}},"货号:",-1)),de("span",_re,ht(T.skcList[0].extCode||"--"),1)]),de("div",xre,[h[6]||(h[6]=de("span",{style:{color:"#439eff"}},"价格: ",-1)),de("span",Cre,ht(T.supplierPrice||"--"),1)])])])]),_:1}),z(d,{label:"SPU ID",prop:"productId"}),z(d,{label:"SKC/SKU信息",width:"600"},{default:q(({row:T})=>[de("div",Sre,[(Oe(!0),st(Zt,null,Hr(T.skcList,S=>(Oe(),st("div",{key:S.skcId,class:"skc-group"},[de("div",kre,[z(v,{type:"info",size:"small"},{default:q(()=>[...h[7]||(h[7]=[Ue("SKC ID",-1)])]),_:1}),de("span",Tre,ht(S.skcId),1)]),(Oe(!0),st(Zt,null,Hr(S.skuList,M=>{var P,N;return Oe(),st("div",{key:M.skuId,class:"sku-item"},[de("div",Ere,ht((P=M==null?void 0:M.productPropertyList[0])==null?void 0:P.name)+"："+ht((N=M==null?void 0:M.productPropertyList[0])==null?void 0:N.value),1),de("div",Ire,[de("span",null,"SKU 货号："+ht(M.extCode||"--"),1),z(w,{direction:"vertical"}),de("span",null,"SKU ID："+ht(M.skuId),1),z(w,{direction:"vertical"}),de("span",Bre,"申报价（"+ht(M.supplierPriceCurrencyType)+"）："+ht(M.supplierPrice),1)])])}),128))]))),128))])]),_:1}),z(d,{label:"创建时间"},{default:q(({row:T})=>[de("div",null,ht(new Date(T.productCreatedAt).toLocaleString()),1)]),_:1})]),_:1},16,["data"]),de("div",Fre,[de("div",null,[p.value.length?(Oe(),st("div",Mre,[h[9]||(h[9]=Ue("已选择 ",-1)),z(C,{class:"mx-1 font-bold",onClick:h[0]||(h[0]=T=>_()),type:"primary"},{default:q(()=>[Ue(ht(p.value.length),1)]),_:1}),h[10]||(h[10]=Ue()),z(C,{class:"mx-1",onClick:h[1]||(h[1]=T=>_()),type:"primary"},{default:q(()=>[...h[8]||(h[8]=[Ue("取消选择",-1)])]),_:1})])):tr("",!0)]),z(k,{"current-page":i.value.page,"onUpdate:currentPage":h[2]||(h[2]=T=>i.value.page=T),"page-size":i.value.pageSize,"onUpdate:pageSize":h[3]||(h[3]=T=>i.value.pageSize=T),"page-sizes":[10,20,50,100],background:!0,layout:"total, prev, pager, next, sizes",total:r.data.length,onSizeChange:t,onCurrentChange:c},null,8,["current-page","page-size","total"])])],64)}}},Vk=cn(Dre,[["__scopeId","data-v-fda1be5d"]]),Ore={class:"flex gap-2 mt-3"},Lre={__name:"BatchActivationOfJIT",setup(a){const s=we([]),r=we(0),i=we([]),n=we(!1),t=we(),c=we(!1),u=Pr(()=>{var w;return(w=t.value)==null?void 0:w.multipleSelection}),f=()=>{n.value=!0},o=()=>{try{Pn.confirm("确定对全部商品开通JIT吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{let w=[];s.value.forEach(x=>{x.skcList.forEach(C=>{w.push({productId:x.productId,productSkcId:C.skcId})})}),p.value=w,A()})}catch{}},l=()=>{if(!u.value.length)return ut.warning("请选择商品");try{Pn.confirm("确定对所选商品开通JIT吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{let w=[];u.value.forEach(x=>{x.skcList.forEach(C=>{w.push({productId:x.productId,productSkcId:C.skcId})})}),p.value=w,A()})}catch{}},g=()=>{window.mmsRobinSearchForChainSupplierListenerJIT&&window.removeEventListener("message",window.mmsRobinSearchForChainSupplierListenerJIT)};window.mmsRobinSearchForChainSupplierListenerJIT=w=>{if(w.data.type==="/api/kiana/mms/robin/searchForChainSupplier"){const{response:x,params:C}=w.data;delete C.pageNum,delete C.pageSize,i.value=JSON.parse(JSON.stringify(C)),console.log("filter-params JIT",i.value)}};const m=()=>{g(),window.addEventListener("message",window.mmsRobinSearchForChainSupplierListenerJIT)},p=we([]),_=w=>{console.log("处理完成",w),d(w)},y=(w,x)=>{console.error("处理出错",w,x),d(x)},h=w=>{console.log("处理已取消",w),d(w)},d=w=>{c.value=!1;let x=[],C=[];if(w.forEach(k=>{k.result.forEach(T=>{T.errorMsg&&(C.push(T.productSkcId),x.push(Zn("div",{class:"error_message"},`商品SKCID:【${T.productSkcId}】开通JIT失败，原因[官方提示]:${T.errorMsg}`)))})}),x.length==0)return ut.success("操作完成");Pn({title:x.length?`提示:失败商品总数为【 ${x.length} 】条`:"提示",message:Zn(_i,{height:"400px"},[x]),showCancelButton:!0,confirmButtonText:"复制所有失败SKCID",cancelButtonText:"关闭",beforeClose:async(k,T,S)=>{k==="confirm"&&await ag(C.join(",")),S()}}).then(k=>{})},A=()=>{c.value=!0},v=async(w,x)=>{if(x.aborted)throw new Error("请求被取消");let{result:C,success:k}=await BX({productSkcSubSellModeReqList:w});if(k)return C.handleProductFailedMsgList;throw new Error("处理失败: 服务器错误")};return oa(()=>{m()}),$l(()=>{g()}),(w,x)=>{const C=Ce("el-alert"),k=Ce("el-button"),T=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】批量开通JIT（可签署JIT商品）",type:"primary",url:St(ng),filter:i.value,returnKey:"dataList",data:s.value,"onUpdate:data":x[0]||(x[0]=S=>s.value=S),total:r.value,"onUpdate:total":x[1]||(x[1]=S=>r.value=S),onComplete:f,onIsListener:g},null,8,["url","filter","data","total"]),z(T,{class:"warp-float",modelValue:n.value,"onUpdate:modelValue":x[3]||(x[3]=S=>n.value=S),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",onClose:m},{header:q(()=>[...x[4]||(x[4]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量开通JIT（可签署JIT商品）")],-1)])]),default:q(()=>[z(C,{closable:!1,title:"提示:此列表数据为官方页面筛选后的最终数据，如需要筛选，请关闭弹窗，自行再官方页面进行条件筛选查询后，再点击获取数据操作!",type:"warning"}),de("div",Ore,[z(k,{type:"primary",onClick:o,disabled:s.value.length==0},{default:q(()=>[...x[5]||(x[5]=[Ue("一键开通所有JIT",-1)])]),_:1},8,["disabled"]),z(k,{type:"primary",plain:"",onClick:l,disabled:s.value.length==0},{default:q(()=>[...x[6]||(x[6]=[Ue("一键开通已选JIT",-1)])]),_:1},8,["disabled"])]),z(K0,{data:p.value,batchSize:50,requestHandler:v,dialogVisible:c.value,"onUpdate:dialogVisible":x[2]||(x[2]=S=>c.value=S),autoStart:"true",onComplete:_,onError:y,onAbort:h},null,8,["data","dialogVisible"]),z(Vk,{class:"mt-3",data:s.value,ref_key:"TableRef",ref:t},null,8,["data"])]),_:1},8,["modelValue"])],64)}}},Pre={class:"flex gap-2 mt-3"},Rre={__name:"BatchConfirmProduct",setup(a){const s=Kn(),{mall:r}=Au(s),i=we([]),n=we(0),t=we({supplierTodoTypeList:[6]}),c=we(!1),u=we(!1),f=we(),o=Pr(()=>{var C;return(C=f.value)==null?void 0:C.multipleSelection}),l=()=>{c.value=!0},g=()=>{try{Pn.confirm("确定对全部商品确认商品信息吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{p.value=i.value,A()})}catch{}c.value=!0},m=()=>{if(!o.value.length)return ut.warning("请选择商品");try{Pn.confirm("确定对所选商品确认商品信息吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{p.value=o.value,A()})}catch{}},p=we(),_=C=>{console.log("处理完成",C),d(C)},y=(C,k)=>{console.error("处理出错",C,k),d(k)},h=C=>{console.log("处理已取消",C),d(C)},d=C=>{u.value=!1;let k=[],T=[];if(C.forEach(S=>{S.result.forEach(M=>{M.failedReason&&(T.push(M.productId),k.push(Zn("div",{class:"error_message"},`商品SPUID:【${M.productId}】确认商品所有信息失败，原因[官方提示]:${M.failedReason}`)))})}),k.length==0)return ut.success("操作完成");Pn({title:k.length?`提示:失败商品总数为【 ${k.length} 】条`:"提示",message:Zn(_i,{height:"400px"},[k]),showCancelButton:!0,confirmButtonText:"复制所有失败SPUID",cancelButtonText:"关闭",beforeClose:async(S,M,P)=>{S==="confirm"&&await ag(T.join(",")),P()}}).then(S=>{})},A=()=>{u.value=!0},v=async(C,k)=>{let T=[];if(C.forEach(P=>{T.push({goodsId:P.goodsId})}),k.aborted)throw new Error("请求被取消");let{result:S,success:M}=await RX({supplierConfirmReqList:T});if(M)return S.failedDetails;throw new Error("处理失败: 服务器错误")},w=()=>{window.mmsRobinSearchForChainSupplierListener&&window.removeEventListener("message",window.mmsRobinSearchForChainSupplierListener)};window.mmsRobinSearchForChainSupplierListener=C=>{if(C.data.type==="/api/kiana/mms/robin/searchForChainSupplier"||C.data.type==="/api/kiana/mms/robin/searchForSemiSupplier"){const{response:k,params:T}=C.data;delete T.pageNum,delete T.pageSize,t.value=JSON.parse(JSON.stringify(T)),t.value.supplierTodoTypeList=[6],console.log("filter-params 商品信息",t.value)}};const x=()=>{w(),window.addEventListener("message",window.mmsRobinSearchForChainSupplierListener)};return oa(()=>{x()}),$l(async()=>{w(),await s.initMall()}),(C,k)=>{var P;const T=Ce("el-alert"),S=Ce("el-button"),M=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】一键确认所有商品信息",type:"primary",url:(P=St(r))!=null&&P.isSemiManagedMall?St(IX):St(ng),filter:t.value,returnKey:"dataList",data:i.value,"onUpdate:data":k[0]||(k[0]=N=>i.value=N),total:n.value,"onUpdate:total":k[1]||(k[1]=N=>n.value=N),onComplete:l,onIsListener:w},null,8,["url","filter","data","total"]),z(M,{class:"warp-float",modelValue:c.value,"onUpdate:modelValue":k[3]||(k[3]=N=>c.value=N),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",onClose:x},{header:q(()=>[...k[4]||(k[4]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】一键确认所有商品信息")],-1)])]),default:q(()=>[z(T,{closable:!1,title:"提示:此列表数据为官方页面筛选后的最终数据，如需要筛选，请关闭弹窗，自行再官方页面进行条件筛选查询后，再点击获取数据操作!",type:"warning"}),de("div",Pre,[z(S,{type:"primary",onClick:g,disabled:i.value.length==0},{default:q(()=>[...k[5]||(k[5]=[Ue("一键确认所有商品信息",-1)])]),_:1},8,["disabled"]),z(S,{type:"primary",plain:"",onClick:m,disabled:i.value.length==0},{default:q(()=>[...k[6]||(k[6]=[Ue("一键确认已选商品信息",-1)])]),_:1},8,["disabled"])]),z(K0,{data:p.value,requestHandler:v,dialogVisible:u.value,"onUpdate:dialogVisible":k[2]||(k[2]=N=>u.value=N),autoStart:"true",onComplete:_,onError:y,onAbort:h},null,8,["data","dialogVisible"]),z(Vk,{class:"mt-3",data:i.value,ref_key:"TableRef",ref:f},null,8,["data"])]),_:1},8,["modelValue"])],64)}}},Wk={__name:"AdjustDataProgressButton",props:{title:String,url:Function,filter_data:Function,sec_url:Function,get_sec_params:Function,set_sec_data:Function,filter:Object,total:Number,cancelSet:{type:Boolean,default:!1},returnKey:{type:String,default:"data"},pageNumKey:{type:String,default:"pageNum"},pageSizeKey:{type:String,default:"pageSize"},MaxTotal:{type:Number,default:5e3}},emits:["update:data","update:total","complete","isListener"],setup(a,{expose:s,emit:r}){const i=a,n=r,t=we(!1),c=we({page:1,pageSize:50,total:0});let u=we([]);const f=we("获取列表数据中"),o=we([]),l=()=>{n("isListener"),o.value=[],c.value.page=1,c.value.pageSize=50,c.value.total=0,t.value=!0,_()},g=()=>{t.value=!1,n("update:data",o.value),n("update:total",c.value.total),n("complete")},m=async()=>{if(f.value="处理数据中",u=i.filter_data?i.filter_data(o.value):o.value,c.value.total=u.length,o.value=[],u.length===0)return g();const y=10;let h=0,d=0;for(;h+d*y<u.length;){const A=h+d*y,v=A+y,w=u.slice(A,v),x=await p(w);console.log(`共${u.length}条 正在处理${A}到${v}条`),o.value=o.value.concat(x),d++}return f.value="获取列表数据中",g()};async function p(y){const h=[];return await Promise.all(y.map(async(d,A)=>{await i.sec_url(i.get_sec_params(d)).then(v=>{i.set_sec_data?h.push(i.set_sec_data(d,v.result)):h.push(v.result)})})),h}const _=async()=>{const{page:y,pageSize:h}=c.value;let d={[i.pageNumKey]:y,[i.pageSizeKey]:h};i.filter&&(d={...d,...i.filter}),i.url(d).then(async({success:A,result:v,error_code:w,errorMsg:x})=>{const{[i.returnKey]:C,total:k}=v;if(A){c.value.total=k,C.forEach(S=>{o.value.push(S)});const T=c.value.pageSize*c.value.page;if(T>=i.MaxTotal)return ut.warning(`temu存在最大查询限制,当前功能最多支持获取${i.MaxTotal}条`),g();if(T<k&&!i.cancelSet)return c.value.page+=1,_();if(i.sec_url)m();else return g()}else return ut.error(`获取商品列表失败: ${x}`),g()}).catch(A=>(ut.error(`获取商品列表失败: ${A.message}`),console.error(A),g())).finally(()=>{})};return s({refresh:l,loading:t}),(y,h)=>{const d=Ce("el-button"),A=Ce("el-popover");return Oe(),Et(No,null,{default:q(()=>[z(A,{class:"box-item",width:200,content:`temu存在最大查询限制,当前功能最多支持获取${i.MaxTotal}条`,placement:"bottom"},{reference:q(()=>[z(d,iA(y.$attrs,sA(y.$attrs),{onClick:l,loading:t.value}),{default:q(()=>[Ue(ht(t.value?`${f.value} 已完成:${o.value.length}/总:${c.value.total}`:a.title),1)]),_:1},16,["loading"])]),_:1},8,["content"])]),_:1})}}},Ure={class:"flex gap-4 text-xs"},Nre=["title"],jre={class:"mt-1"},Hre={style:{color:"#303133"}},Qre={class:"mt-1"},zre={style:{color:"#303133"}},Vre={class:"mt-1"},Wre={style:{color:"#303133"}},Gre={class:"mt-1"},$re={style:{color:"#303133"}},Kre={class:"mt-1"},Yre={style:{color:"#439eff"}},Xre={class:"flex gap-4 text-xs"},Zre={class:"mt-1 mb-1"},Jre={style:{color:"#606266"}},qre={style:{color:"#303133"}},ene={class:"mb-1"},tne={class:"skc-sku-container"},rne={class:"sku-details"},nne={style:{display:"flex","align-items":"center","justify-content":"left"}},ane={class:"mr-10"},ine={style:{border:"1px solid rgb(67, 158, 255)","border-radius":"5px",padding:"6px"}},sne={style:{"font-size":"12px"}},one={style:{"font-size":"12px"}},lne={style:{"font-size":"12px"}},une={style:{color:"rgb(220, 220, 110)"},class:"mr-10"},cne={style:{color:"rgb(189, 165, 76)"}},fne={style:{color:"rgb(189, 165, 76)"}},dne={style:{color:"rgb(189, 165, 76)"}},hne={style:{color:"rgb(245, 108, 108)"}},Ane={class:"flex justify-between mt-5"},pne={key:0,class:"selectionNum"},Gk={__name:"NewonProductAdjustTable",props:{data:Array,type:String},setup(a,{expose:s}){const r=a,i=we({page:1,pageSize:10}),n=we(),t=y=>{o()},c=y=>{o()},u=Pr(()=>{const y=i.value.page*i.value.pageSize;return r.data.slice(y-i.value.pageSize,y)}),f=we({}),o=()=>{il(()=>{n.value&&r.data.filter(h=>f.value[h.productId]).forEach(h=>{n.value.toggleRowSelection(h,!0)})})},l=y=>{const h={};y.length>0?y.forEach(d=>{h[d.productId]=!0}):u.value.forEach(d=>{delete h[d.productId]}),f.value=h},g=y=>{l(y)},m=y=>{l(y)},p=Pr(()=>r.data.filter(y=>f.value[y==null?void 0:y.productId])),_=()=>{f.value={},n.value.clearSelection()};return s({multipleSelection:p}),(y,h)=>{const d=Ce("el-table-column"),A=Ce("el-image"),v=Ce("el-tag"),w=Ce("el-icon"),x=Ce("el-table"),C=Ce("el-text"),k=Ce("el-pagination");return Oe(),st(Zt,null,[z(x,iA(y.$attrs,sA(y.$attrs),{class:"w-full",style:{height:"74vh"},data:u.value,"row-key":"productId","row-class-name":"cursor-pointer",onSelect:g,onSelectAll:m,ref_key:"multipleTableRef",ref:n}),{default:q(()=>[z(d,{type:"selection",width:"55"}),z(d,{label:"商品信息"},{default:q(({row:T})=>[de("div",Ure,[de("div",null,[z(A,{style:{width:"50px",height:"50px"},src:T.carouselImageUrlList[0]},null,8,["src"])]),de("div",null,[de("div",null,[de("span",{title:T.productName,class:"font-bold text-[14px] line-clamp-2",style:{color:"#303133"}},ht(T.productName),9,Nre)]),de("div",jre,[h[4]||(h[4]=de("span",{style:{color:"#606266"}},"类目:",-1)),de("span",Hre,ht(T.fullCategoryName.join(">")),1)]),de("div",Qre,[h[5]||(h[5]=de("span",{style:{color:"#606266"}},"货号:",-1)),de("span",zre,ht(T.skcList[0].extCode||"--"),1)]),de("div",Vre,[h[6]||(h[6]=de("span",{style:{color:"#606266"}},"SPUID:",-1)),de("span",Wre,ht(T.productId||"--"),1)]),de("div",Gre,[h[7]||(h[7]=de("span",{style:{color:"#606266"}},"SKCID:",-1)),de("span",$re,ht(T.skcList[0].skcId||"--"),1)]),de("div",Kre,[h[8]||(h[8]=de("span",{style:{color:"#439eff"}},"价格: ",-1)),de("span",Yre,ht(T.supplierPrice||"--"),1)])])])]),_:1}),z(d,{label:"商品属性",prop:""},{default:q(({row:T})=>[de("div",Xre,[de("div",null,[(Oe(!0),st(Zt,null,Hr(T.productPropertyList,S=>(Oe(),st("div",Zre,[de("span",Jre,ht(S.name)+":",1),de("span",qre,ht(S.value),1)]))),256))])])]),_:1}),a.type==="adjustment"?(Oe(),Et(d,{key:0,label:"SKC 属性",prop:"skcId",width:"200px"},{default:q(({row:T})=>[de("div",null,ht(T.skcList[0].skcId),1)]),_:1})):tr("",!0),a.type==="adjustment"?(Oe(),Et(d,{key:1,label:"SKU属性信息"},{default:q(({row:T})=>[(Oe(!0),st(Zt,null,Hr(T.skcList[0].skuList,S=>(Oe(),st("div",ene,[(Oe(!0),st(Zt,null,Hr(S.productPropertyList,(M,P)=>(Oe(),st("div",{key:P},[z(v,{type:"danger",class:"mr-3"},{default:q(()=>[Ue(ht(M==null?void 0:M.value),1)]),_:2},1024),z(v,{type:"success"},{default:q(()=>[Ue("原申报价格（"+ht(S.supplierPriceCurrencyType)+"）："+ht(S.supplierPrice),1)]),_:2},1024)]))),128))]))),256))]),_:1})):tr("",!0),a.type==="setPricing"?(Oe(),Et(d,{key:2,label:"SKU属性信息","min-width":"200px"},{default:q(({row:T})=>[de("div",tne,[(Oe(!0),st(Zt,null,Hr(T.supplierPriceReviewInfoList,S=>(Oe(),st("div",rne,[(Oe(!0),st(Zt,null,Hr(S.productSkuList,M=>(Oe(),st("div",null,[de("div",nne,[de("div",ane,[de("div",ine,[h[9]||(h[9]=Ue(" 属性集 ",-1)),(Oe(!0),st(Zt,null,Hr(M.productPropertyList,P=>(Oe(),st("div",sne,[de("span",null,ht(P.name)+":"+ht(P.value),1)]))),256))]),de("div",one," SKU货号："+ht(M.goodsSkuId||"--"),1),de("div",lne," SKUID："+ht(M.skuId||"--"),1)]),de("div",une," 申报价格状态："+ht(M.selectStatus==="7"?"价格待确认":"--"),1),de("div",null,[de("div",cne," 原申报价（CNY）："+ht(T.priceList.supplyPrice/100),1),de("div",fne," 参考申报价（CNY）："+ht(T.priceList.suggestSupplyPrice/100),1),de("div",dne,"价差："+ht((T.priceList.supplyPrice-T.priceList.suggestSupplyPrice)/100),1)])])]))),256))]))),256))])]),_:1})):tr("",!0),a.type==="setPricing"?(Oe(),Et(d,{key:3,label:"备注"},{default:q(({row:T})=>[de("div",hne,[z(w,{style:{transform:"translateY(3px)"}},{default:q(()=>[z(St(_1))]),_:1}),h[10]||(h[10]=Ue(" 这些sku是一个核价单，需一起核价 ",-1))])]),_:1})):tr("",!0)]),_:1},16,["data"]),de("div",Ane,[de("div",null,[p.value.length?(Oe(),st("div",pne,[h[12]||(h[12]=Ue("已选择 ",-1)),z(C,{class:"mx-1 font-bold",onClick:h[0]||(h[0]=T=>_()),type:"primary"},{default:q(()=>[Ue(ht(p.value.length),1)]),_:1}),z(C,{class:"mx-1",onClick:h[1]||(h[1]=T=>_()),type:"primary"},{default:q(()=>[...h[11]||(h[11]=[Ue("取消选择",-1)])]),_:1})])):tr("",!0)]),z(k,{"current-page":i.value.page,"onUpdate:currentPage":h[2]||(h[2]=T=>i.value.page=T),"page-size":i.value.pageSize,"onUpdate:pageSize":h[3]||(h[3]=T=>i.value.pageSize=T),"page-sizes":[10,20,50,100],background:!0,layout:"total, prev, pager, next, sizes",total:r.data.length,onSizeChange:t,onCurrentChange:c},null,8,["current-page","page-size","total"])])],64)}}},mne={class:"flex gap-2 mt-3"},gne={style:{display:"flex","justify-content":"center",width:"100%"}},vne={style:{display:"flex","justify-content":"center",gap:"16px"}},yne={style:{display:"flex"}},bne={style:{"margin-left":"3px"}},wne={style:{display:"flex"}},_ne={style:{"margin-left":"3px"}},xne={style:{display:"flex"}},Cne={style:{display:"flex"}},Sne={style:{display:"flex","justify-content":"flex-end",gap:"16px"}},kne={style:{display:"flex","justify-content":"flex-end",gap:"16px","margin-top":"10px"}},Tne={__name:"BatchPriceAdjust",setup(a){const s=we([]),r=we(0),i=we(0),n=we([]),t=we(!1),c=we([]),u=we(!1),f=we(!1),o=we(),l=we(),g=we(),m=we({}),p=we(),_=we([]),y=we([]),h=we({selectType:"0",type:"0",count1:null,count2:null,reason:null,remark:""}),d=we([]),A={count1:[{required:!0,message:"请输入",trigger:"blur"}],count2:[{required:!0,message:"请输入",trigger:"blur"}],remark:[{required:!0,message:"请输入备注",trigger:"blur"}]},v=we(function(N){return{items:[{productId:N.productId,supplierId:N.supplierId}]}});function w(N){s.value=y.value;const B=s.value.filter(O=>{var F;let I=!1;return(F=O==null?void 0:O.spuAdjustResult)==null||F.skcItems.forEach(L=>{L==null||L.items.forEach(R=>{I||(I=R.originSupplyPrice>=m.value.originMin*100&&R.originSupplyPrice<=m.value.originMax*100)})}),I});s.value=B,N()}function x(){s.value=y.value}const C=we(function(N,B){try{const O=Object.values(B==null?void 0:B.spuAdjustResult)[0],I=Object.values(B==null?void 0:B.adjustResult)[0];return{...N,spuAdjustResult:O,adjustResult:I}}catch(O){console.log(O)}});function k(){M.value.length===0&&h.value.selectType==="1"||s.value.length===0||l.value.validate(N=>{if(N){p.value=B0.service({lock:!0});const B=h.value.selectType==="0"?s.value:M.value;_.value=[],c.value=[],i.value=0,f.value=!1,B.forEach(O=>{var I;(I=O==null?void 0:O.spuAdjustResult)==null||I.skcItems.forEach(F=>{const L={supplierId:O.supplierId,productId:O.productId,productName:O.productName,productSkcId:F.productSkcId,skuAdjustList:[]};F==null||F.items.forEach(R=>{let U=R.originSupplyPrice||0;if(h.value.type==="0"){const V=new kd(100).minus(h.value.count1).dividedBy(100);U=new kd(U).mul(V).round().toNumber()}else{const V=new kd(h.value.count2).mul(100);U=new kd(U).minus(V).toNumber()}L.skuAdjustList.push({oldPriceCurrency:R.targetPriceCurrency,oldSupplyPrice:R.originSupplyPrice,skuId:R.productSkuId,syncPurchasePrice:1,targetPriceCurrency:R.targetPriceCurrency,targetSupplyPrice:U})}),_.value.push(L)})}),_.value.map(O=>{const I={adjustItems:[{...O}],adjustReason:h.value.reason,reason:h.value.remark};PX(I).then(F=>{var L;i.value++,p.value.setText(`上传进度:${i.value}/${_.value.length}`),(F==null?void 0:F.errorCode)===4e6&&c.value.push({productName:(L=I==null?void 0:I.adjustItems[0])==null?void 0:L.productName,errorMsg:F==null?void 0:F.errorMsg}),i.value===_.value.length&&(p.value.close(),c.value.length&&(t.value=!0))}).catch(F=>{p.value.close(),console.log(F)})})}})}function T(){f.value=!0,S()}function S(){LX({}).then(N=>{var B;d.value=(B=N.result)==null?void 0:B.priceAdjustReasonList}).catch(N=>{console.log(N)})}const M=Pr(()=>{var N;return(N=o.value)==null?void 0:N.multipleSelection}),P=()=>{y.value=s.value,u.value=!0};return oa(()=>{}),$l(()=>{}),(N,B)=>{const O=Ce("el-button"),I=Ce("el-alert"),F=Ce("el-input-number"),L=Ce("el-form-item"),R=Ce("el-form"),U=Ce("el-popconfirm"),V=Ce("el-icon"),W=Ce("el-radio-button"),Q=Ce("el-radio-group"),le=Ce("el-option"),G=Ce("el-select"),fe=Ce("el-input"),ie=Ce("el-dialog"),he=Ce("el-table-column"),Y=Ce("el-table");return Oe(),st(Zt,null,[z(Wk,{title:"【凌风跨境工具箱】批量发起调价",type:"primary",url:St(ng),sec_url:St(FX),get_sec_params:v.value,set_sec_data:C.value,filter:n.value,returnKey:"dataList",data:s.value,"onUpdate:data":B[0]||(B[0]=K=>s.value=K),total:r.value,"onUpdate:total":B[1]||(B[1]=K=>r.value=K),onComplete:P},null,8,["url","sec_url","get_sec_params","set_sec_data","filter","data","total"]),z(ie,{class:"warp-float",modelValue:u.value,"onUpdate:modelValue":B[15]||(B[15]=K=>u.value=K),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[...B[16]||(B[16]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量发起调价")],-1)])]),default:q(()=>[de("div",mne,[z(U,{"hide-icon":!0,width:"600"},{reference:q(()=>[z(O,{type:"primary",onClick:B[2]||(B[2]=()=>{}),icon:St(Q8)},{default:q(()=>[...B[17]||(B[17]=[Ue("筛选商品",-1)])]),_:1},8,["icon"])]),actions:q(({confirm:K,cancel:oe})=>[z(I,{title:"因为调价是多个sku一起填写，所以筛选，只要某个商品其中的sku符合条件就会匹配",type:"warning",closable:!1,"show-icon":""}),z(R,{class:"mt-5 fix-teleported-dropdown",model:m.value,"label-width":"110px",rules:A,ref_key:"FilterFormRef",ref:g},{default:q(()=>[z(L,{prop:"",label:"原申报价范围:",class:"w-full"},{default:q(()=>[de("div",gne,[z(F,{modelValue:m.value.originMin,"onUpdate:modelValue":B[3]||(B[3]=pe=>m.value.originMin=pe),style:{width:"100%"},min:0,precision:2,"controls-position":"right",placeholder:"最低价格"},null,8,["modelValue"]),B[18]||(B[18]=Ue(" - ",-1)),z(F,{modelValue:m.value.originMax,"onUpdate:modelValue":B[4]||(B[4]=pe=>m.value.originMax=pe),style:{width:"100%"},min:0,precision:2,"controls-position":"right",placeholder:"最高价格"},null,8,["modelValue"])])]),_:1}),de("div",vne,[z(O,{type:"primary",onClick:pe=>w(oe)},{default:q(()=>[...B[19]||(B[19]=[Ue("筛 选 ",-1)])]),_:1},8,["onClick"])])]),_:2},1032,["model"])]),_:1}),z(O,{type:"primary",plain:"",onClick:T,icon:St(t_)},{default:q(()=>[...B[20]||(B[20]=[Ue(" 批量填写申报价格 ",-1)])]),_:1},8,["icon"]),z(O,{type:"primary",plain:"",onClick:x,icon:St(Ay)},{default:q(()=>[...B[21]||(B[21]=[Ue(" 还原数据 ",-1)])]),_:1},8,["icon"])]),z(ie,{class:"w-1/5",width:"30%",modelValue:f.value,"onUpdate:modelValue":B[12]||(B[12]=K=>f.value=K),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",center:"",title:"批量设置价格"},{default:q(()=>[z(R,{model:h.value,"label-width":"110px",rules:A,ref_key:"FormRef",ref:l},{default:q(()=>[z(L,{label:"批量上传范围:",prop:""},{default:q(()=>[z(Q,{modelValue:h.value.selectType,"onUpdate:modelValue":B[5]||(B[5]=K=>h.value.selectType=K),"aria-label":"label position"},{default:q(()=>[z(W,{value:"0"},{default:q(()=>[de("div",yne,[z(V,null,{default:q(()=>[z(St(z8))]),_:1}),de("span",bne,"全部(但不包括筛选出去的)["+ht(s.value.length)+"条]",1)])]),_:1}),z(W,{value:"1"},{default:q(()=>[de("div",wne,[z(V,null,{default:q(()=>[z(St(e_))]),_:1}),de("span",_ne,"勾选数据["+ht(M.value.length)+"]条",1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(L,{label:"价格调整:",prop:""},{default:q(()=>[z(Q,{modelValue:h.value.type,"onUpdate:modelValue":B[6]||(B[6]=K=>h.value.type=K),"aria-label":"label position"},{default:q(()=>[z(W,{value:"0"},{default:q(()=>[de("div",xne,[z(V,null,{default:q(()=>[z(St(V8))]),_:1}),B[22]||(B[22]=de("span",{style:{"margin-left":"3px"}},"按折扣降价",-1))])]),_:1}),z(W,{value:"1"},{default:q(()=>[de("div",Cne,[z(V,null,{default:q(()=>[z(St(W8))]),_:1}),B[23]||(B[23]=de("span",{style:{"margin-left":"3px"}},"按差额降价",-1))])]),_:1})]),_:1},8,["modelValue"])]),_:1}),h.value.type==="0"?(Oe(),Et(L,{key:0,class:"w-full",prop:"count1"},{default:q(()=>[z(F,{modelValue:h.value.count1,"onUpdate:modelValue":B[7]||(B[7]=K=>h.value.count1=K),min:1,max:99,precision:0,style:{width:"80%"},"controls-position":"right",placeholder:"请输入0-100的整数"},null,8,["modelValue"]),B[24]||(B[24]=Ue(" % ",-1))]),_:1})):(Oe(),Et(L,{key:1,class:"w-full",prop:"count2"},{default:q(()=>[z(F,{modelValue:h.value.count2,"onUpdate:modelValue":B[8]||(B[8]=K=>h.value.count2=K),min:0,precision:2,style:{width:"80%"},controls:!1,placeholder:"以原申报价减去当前输入的值"},{prefix:q(()=>[...B[25]||(B[25]=[de("span",null,"￥",-1)])]),_:1},8,["modelValue"])]),_:1})),z(L,{label:"调价原因:"},{default:q(()=>[z(G,{modelValue:h.value.reason,"onUpdate:modelValue":B[9]||(B[9]=K=>h.value.reason=K),placeholder:"请选择原因"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(d.value,(K,oe)=>(Oe(),Et(le,{key:K.id,label:K.desc,value:K.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),z(L,{label:"备注:",prop:"remark"},{default:q(()=>[z(fe,{type:"textarea",cols:4,modelValue:h.value.remark,"onUpdate:modelValue":B[10]||(B[10]=K=>h.value.remark=K)},null,8,["modelValue"])]),_:1}),de("div",Sne,[z(O,{onClick:B[11]||(B[11]=K=>f.value=!1)},{default:q(()=>[...B[26]||(B[26]=[Ue("取 消",-1)])]),_:1}),z(O,{type:"primary",onClick:k},{default:q(()=>[...B[27]||(B[27]=[Ue("确 定 ",-1)])]),_:1})])]),_:1},8,["model"])]),_:1},8,["modelValue"]),z(ie,{class:"warp-float w-1/5",width:"60%",modelValue:t.value,"onUpdate:modelValue":B[14]||(B[14]=K=>t.value=K),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",title:"上传失败列表"},{default:q(()=>[z(Y,{data:c.value,"max-height":"400"},{default:q(()=>[z(he,{label:"商品名称",prop:"productName"}),z(he,{label:"错误原因",prop:"errorMsg"},{default:q(({row:K})=>[z(I,{title:K.errorMsg,type:"warning",closable:!1},null,8,["title"])]),_:1})]),_:1},8,["data"]),de("div",kne,[z(O,{type:"primary",onClick:B[13]||(B[13]=K=>t.value=!1)},{default:q(()=>[...B[28]||(B[28]=[Ue("关 闭 ",-1)])]),_:1})])]),_:1},8,["modelValue"]),z(Gk,{class:"mt-3",data:s.value,ref_key:"TableRef",ref:o,type:"adjustment"},null,8,["data"])]),_:1},8,["modelValue"])],64)}}},Ene={class:"mr-2"},Ine={class:"flex gap-2 mt-3"},Bne={style:{display:"flex","justify-content":"center",width:"100%"}},Fne={style:{display:"flex","justify-content":"center",width:"100%"}},Mne={style:{display:"flex","justify-content":"center",width:"100%"}},Dne={style:{display:"flex","justify-content":"center",width:"100%"}},One={style:{display:"flex","justify-content":"center",width:"100%"}},Lne={style:{display:"flex","justify-content":"center",gap:"16px"}},Pne={style:{padding:"20px 5px",color:"rgb(245, 108, 108)"}},Rne={key:0},Une={key:1},Nne={key:0},jne={style:{color:"rgb(67, 158, 255)"}},Hne={key:1},Qne={key:2},zne={style:{color:"rgb(67, 158, 255)"}},Vne={style:{display:"flex","justify-content":"flex-end",gap:"16px"}},Wne={style:{display:"flex","justify-content":"flex-end",gap:"16px","margin-top":"10px"}},Gne={__name:"BatchSetPricing",setup(a){const s=we([]),r=we([]),i=we(0),n=we(!1),t=we([]),c=we(!1),u=we(!1),f=we(!1),o=we(),l=we(),g=we(),m=we();let p=we({type:0,condition:1});const _=Pr(()=>{const{condition:V,spreadRangeMin:W,spreadRangeMax:Q,discountRangeMin:le,discountRangeMax:G,originRangeMin:fe,referenceRangeMin:ie,appraisalsCountMin:he,originRangeMax:Y,referenceRangeMax:K,appraisalsCountMax:oe,skuEqual:pe,skus:ve,skcEqual:ge,skcs:ue,suggestEqual:Te,originPer:Ee,originPrice:ye}=p.value;return[{label:"触发条件:",value:`${V===0?"【以下所有条件都满足时才选择】":"【以下任一条件满足时就选择】"}`,show:[2]},{label:"原申报价范围:",value:`在 ${fe?fe+"(包含)":"无穷小"} ~ ${Y?Y+"(包含)":"无穷大"} 以内`,change:fe||Y,show:[2]},{label:"参考申报价范围:",value:`在 ${ie?ie+"(包含)":"无穷小"} ~ ${K?K+"(包含)":"无穷大"} 以内`,change:ie||K,show:[2]},{label:"价差范围:价差(原申报价格 - 参考申报价):",value:`在 ${W?W+"(包含)":"无穷小"} ~ ${Q?Q+"(包含)":"无穷大"} 以内`,change:W||Q,show:[0,2]},{label:"折扣范围:折扣(参考申报价 * 10/原申报价格):",value:`在 ${le?le+"(包含)":"无穷小"} ~ ${G?G+"(包含)":"无穷大"} 以内`,change:le||G,show:[1,2]},{label:"核价次数范围:",value:`在 ${he?he+"(包含)":"无穷小"} ~ ${oe?oe+"(包含)":"无穷大"} 以内`,change:he||oe,show:[2]},{label:"按SKU属性:",value:ve&&!isNaN(pe)?`${pe===0?"不等于":"等于"}${ve}`:"未选择",change:ve&&!isNaN(pe),show:[2]},{label:"按SKC货号:",value:ue&&!isNaN(ge)?`${ge===0?"不等于":"等于"}${ue}`:"未选择",change:ue&&!isNaN(ge),show:[2]},{label:"按参考价:",value:!isNaN(Te)&&!isNaN(Ee)?`${Te===0?"小于等于":"大于等于"}原申报价的${Ee}% +${ye||0}元`:"未选择",change:!isNaN(Te)&&!isNaN(Ee),show:[2]}]});function y(V){console.log(V),p.value={type:V,condition:1}}function h(V){let{spreadRangeMin:W=0,spreadRangeMax:Q=1/0,discountRangeMin:le=0,discountRangeMax:G=100,originRangeMin:fe=0,originRangeMax:ie=1/0,referenceRangeMin:he=0,referenceRangeMax:Y=1/0,appraisalsCountMin:K=0,appraisalsCountMax:oe=1/0,skuEqual:pe,skus:ve="",skcEqual:ge,skcs:ue="",suggestEqual:Te,originPer:Ee,originPrice:ye,condition:Se}=p.value,Fe=V.priceList.spreadPrice>=W*100&&V.priceList.spreadPrice<=Q*100,Ve=V.priceList.discount>=le&&V.priceList.discount<=G,ke=V.priceList.supplyPrice>=fe*100&&V.priceList.supplyPrice<=ie*100,Pe=V.priceList.suggestSupplyPrice>=he*100&&V.priceList.suggestSupplyPrice<=Y*100,Re=V.supplierPriceReviewInfoList[0].times>=K&&V.supplierPriceReviewInfoList[0].times<=oe;const Ye=[],Ke=[];V.supplierPriceReviewInfoList[0].productSkuList.forEach(Kt=>{Ke.push(String(Kt.skuId))}),V.skcList.forEach(Kt=>{Ye.push(String(Kt.skcId))});const ot=ue.split(/[\s+,，]/g).filter(Kt=>Kt!==""),nt=ve.split(/[\s+,，]/g).filter(Kt=>Kt!=="");let mt=!0,Ut=!0;!isNaN(pe)&&nt&&(mt=pe?nt.filter(Kt=>Ke.includes(Kt)).length!==0:nt.filter(Kt=>Ke.includes(Kt)).length===0),!isNaN(ge)&&ot&&(Ut=ge?ot.filter(Kt=>Ye.includes(Kt)).length!==0:ot.filter(Kt=>Ye.includes(Kt)).length===0);let Ot,wt=!0;return!isNaN(Te)&&!isNaN(Ee)&&(Ot=new kd(V.priceList.supplyPrice).mul(Ee).dividedBy(100).add(ye*100).dividedBy(100),wt=Te?V.priceList.suggestSupplyPrice>=Ot:V.priceList.suggestSupplyPrice<=Ot),console.log(Fe,Ve,ke,Pe,Re,mt,Ut,wt),Se===0&&(Fe=W!==0&&Q!==1/0?Fe:!1,Ve=le!==0&&G!==1/0?Ve:!1,ke=fe!==0&&ie!==1/0?ke:!1,Pe=he!==0&&Y!==1/0?Pe:!1,Re=K!==0&&oe!==1/0?Re:!1,mt=!isNaN(pe)&&nt.length!==0?mt:!1,Ut=!isNaN(ge)&&ot.length!==0?Ut:!1,wt=!isNaN(Te)&&!isNaN(Ot)?wt:!1),Se?Fe&&Ve&&ke&&Pe&&Re&&mt&&Ut&&wt:Fe||Ve||ke||Pe||Re||mt||Ut||wt}const d=we(!1),A=we({selectType:0,type:0}),v={selectType:[{required:!0,message:"请选择",trigger:"blur"}],percent:[{required:!0,message:"请输入百分值",trigger:"blur"}],count:[{required:!0,message:"请输入固定值",trigger:"blur"}]},w=we({priceReviewStatusList:[1,0],secondarySelectStatusList:[7]}),x=we(function(V){return{orderId:V.orderId}});function C(){p.value={type:0,condition:1}}function k(V){s.value=r.value.filter(h),f.value=!1}function T(){s.value=r.value}const S=we(function(V,W){try{return{...V,priceList:{...W,spreadPrice:Math.abs(W.supplyPrice-W.suggestSupplyPrice),discount:Math.round(W.suggestSupplyPrice/W.supplyPrice*10)}}}catch(Q){console.log(Q)}});function M(){g.value.validate(async V=>{if(V){o.value=B0.service({target:"submit-dialog"}),u.value=!1;const W=[];s.value.forEach(Q=>{const le={priceOrderId:Q.supplierPriceReviewInfoList[0].priceOrderId,items:[]};let G;Q.supplierPriceReviewInfoList[0].productSkuList.forEach(fe=>{A.value.selectType===0?G=Q.priceList.supplyPrice:A.value.selectType===1?G=Q.priceList.suggestSupplyPrice:A.value.selectType===2&&(A.value.type===0?G=new kd(Q.priceList.supplyPrice).mul(A.value.percent).dividedBy(100).dividedBy(100).add(A.value.price).mul(100).round().toNumber():A.value.type===1?G=new kd(Q.priceList.suggestSupplyPrice).mul(A.value.percent).dividedBy(100).dividedBy(100).add(A.value.price).mul(100).round().toNumber():A.value.type===2?G=new kd(Q.priceList.supplyPrice).add(Q.priceList.suggestSupplyPrice).dividedBy(2).round().toNumber():A.value.type===3&&(G=new kd(A.value.count).mul(100).toNumber())),le.items.push({productSkuId:fe.skuId,price:G})}),W.push(le)});try{const Q=await P(W,DX);o.value.close(),s.value=[],N(Q)}catch(Q){console.log(Q)}}})}const P=async(V,W)=>{let le=0,G=0,fe=[];for(d.value=!0;le+G*10<V.length&&d.value===!0;){const ie=le+G*10,he=ie+10,Y=V.slice(ie,he);o.value.setText(`正在提交${ie}/${V.length}条...`),console.log(`共${V.length}条 正在处理${ie}到${he}条`),await Promise.all(Y.map(K=>W(K))).then(K=>{fe=fe.concat(K)}),G++}return d.value=!1,fe};function N(V){let W=0,Q=0;V.forEach(le=>{le.errorCode===2e6?Q++:W++}),Pn.alert(`任务执行完毕，总共有${W+Q}个商品，成功${W}个，失败${Q}个，请前往官方列表刷新查看（价格待确认数量）（注：官方待确认列表数据近期存在更新延迟导致数量没变化，可稍后刷新查看，任务全部执行成功即可！）`,"",{confirmButtonText:"确定",callback:le=>{}})}function B(V){let W=[];V.forEach(le=>{le.skcList.forEach(G=>{let fe=!1;G.supplierPriceReviewInfoList.forEach(ie=>{ie.productSkuList.forEach(he=>{he.priceReviewStatus===1&&(fe=!0)})}),fe&&(W.push(le),fe=!1)})});let Q=[];return W.forEach(le=>{le.skcList.forEach(G=>{G.supplierPriceReviewInfoList.forEach(fe=>{Q.push({...le,supplierPriceReviewInfoList:[fe],orderId:fe.priceOrderId})})})}),Q}function O(){u.value=!0}function I(){Pn.confirm("此操作将拒绝核价，放弃商品上新，商品报价流程将终止，需要重新发布商品！您确定要拒绝所有的商品核价吗？","警告",{customClass:"submit-dialog",confirmButtonText:"确定",cancelButtonText:"取消"}).then(async()=>{o.value=B0.service({target:"submit-dialog"});const V=[];s.value.forEach(Q=>{V.push({priceOrderId:Q.supplierPriceReviewInfoList[0].priceOrderId})});const W=await P(V,OX);o.value.close(),s.value=[],N(W)}).catch(()=>{})}const F=()=>{window.searchForChainSupplier&&window.removeEventListener("message",window.searchForChainSupplier)};window.searchForChainSupplier=V=>{if(V.data.type==="/api/kiana/mms/robin/searchForChainSupplier"){const{response:W,params:Q}=V.data;delete Q.pageNum,delete Q.pageSize,w.value={...JSON.parse(JSON.stringify(Q)),priceReviewStatusList:[1,0],secondarySelectStatusList:[7]}}};async function L(V){d.value&&(await Pn.confirm("当前操作还未全部执行完毕，确认关闭吗？"),d.value=!1),o.value&&o.value.close(),V()}const R=()=>{F(),window.addEventListener("message",window.searchForChainSupplier)};Pr(()=>{var V;return(V=l.value)==null?void 0:V.multipleSelection});const U=()=>{r.value=s.value,c.value=!0};return oa(()=>{R()}),$l(()=>{F()}),(V,W)=>{const Q=Ce("el-alert"),le=Ce("el-icon"),G=Ce("el-popover"),fe=Ce("el-button"),ie=Ce("el-radio-button"),he=Ce("el-radio-group"),Y=Ce("el-form-item"),K=Ce("el-option"),oe=Ce("el-select"),pe=Ce("el-input-number"),ve=Ce("el-col"),ge=Ce("el-input"),ue=Ce("el-divider"),Te=Ce("el-tag"),Ee=Ce("el-form"),ye=Ce("el-dialog"),Se=Ce("el-radio"),Fe=Ce("el-table-column"),Ve=Ce("el-table");return Oe(),st(Zt,null,[z(Wk,{title:"【凌风跨境工具箱】批量商品核价",type:"primary",url:St(ng),filter:w.value,filter_data:B,sec_url:St(MX),get_sec_params:x.value,set_sec_data:S.value,returnKey:"dataList",data:s.value,"onUpdate:data":W[0]||(W[0]=ke=>s.value=ke),total:i.value,"onUpdate:total":W[1]||(W[1]=ke=>i.value=ke),onComplete:U},null,8,["url","filter","sec_url","get_sec_params","set_sec_data","data","total"]),z(ye,{class:"warp-float",modelValue:c.value,"onUpdate:modelValue":W[32]||(W[32]=ke=>c.value=ke),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"","before-close":L,onClose:R},{header:q(()=>[...W[33]||(W[33]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】批量商品核价")],-1)])]),default:q(()=>[z(Q,{closable:!1,type:"warning"},{default:q(()=>[de("span",Ene,"当前筛选模式:"+ht(St(p).type===0?"【价差模式】价差范围:":St(p).type===1?"【折扣模式】折扣范围:":"【高级模式】 条件选择:"),1),(Oe(!0),st(Zt,null,Hr(_.value,ke=>na((Oe(),st("span",{class:"mr-2"},ht(ke.label)+ht(ke.value)+"; ",513)),[[Cl,ke.show.includes(St(p).type)]])),256))]),_:1}),de("div",Ine,[z(fe,{type:"primary",onClick:W[2]||(W[2]=ke=>f.value=!0)},{default:q(()=>[W[34]||(W[34]=Ue(" 去设置筛选条件 ",-1)),z(G,{content:"根据模式去筛选出要核价的商品进行核价",placement:"right",effect:"dark",width:"150"},{reference:q(()=>[z(le,{class:"ml-1"},{default:q(()=>[z(St(jC))]),_:1})]),_:1})]),_:1}),z(ye,{modelValue:f.value,"onUpdate:modelValue":W[22]||(W[22]=ke=>f.value=ke),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",width:"700",title:"按条件筛选符合的商品进行核价"},{default:q(()=>[z(Ee,{class:"mt-5 fix-teleported-dropdown",model:St(p),"label-width":"120px","label-position":"left",rules:v,ref_key:"FilterFormRef",ref:m},{default:q(()=>[z(St(_i),{"max-height":"300px"},{default:q(()=>[z(Y,null,{default:q(()=>[z(he,{modelValue:St(p).type,"onUpdate:modelValue":W[3]||(W[3]=ke=>St(p).type=ke),"aria-label":"label position",onChange:y},{default:q(()=>[z(ie,{value:0},{default:q(()=>[...W[35]||(W[35]=[Ue(" 价差筛选模式 ",-1)])]),_:1}),z(ie,{value:1},{default:q(()=>[...W[36]||(W[36]=[Ue(" 折扣筛选模式 ",-1)])]),_:1}),z(ie,{value:2},{default:q(()=>[...W[37]||(W[37]=[Ue(" 多条件筛选模式 ",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),St(p).type===2?(Oe(),Et(Y,{key:0,label:"触发条件:",prop:""},{default:q(()=>[z(oe,{modelValue:St(p).condition,"onUpdate:modelValue":W[4]||(W[4]=ke=>St(p).condition=ke)},{default:q(()=>[z(K,{value:1,label:"以下所有条件都满足时才选择"}),z(K,{value:0,label:"以下任一条件满足时就选择"})]),_:1},8,["modelValue"])]),_:1})):tr("",!0),St(p).type===2?(Oe(),Et(Y,{key:1,prop:"",label:"原申报价范围:",class:"w-full"},{default:q(()=>[de("div",Bne,[z(pe,{modelValue:St(p).originRangeMin,"onUpdate:modelValue":W[5]||(W[5]=ke=>St(p).originRangeMin=ke),style:{width:"100%"},min:0,precision:2,"controls-position":"right"},{prefix:q(()=>[...W[38]||(W[38]=[de("span",null,"价格",-1)])]),_:1},8,["modelValue"]),W[40]||(W[40]=Ue(" ~ ",-1)),z(pe,{modelValue:St(p).originRangeMax,"onUpdate:modelValue":W[6]||(W[6]=ke=>St(p).originRangeMax=ke),style:{width:"100%"},min:0,precision:2,"controls-position":"right"},{prefix:q(()=>[...W[39]||(W[39]=[de("span",null,"价格",-1)])]),_:1},8,["modelValue"])])]),_:1})):tr("",!0),St(p).type===2?(Oe(),Et(Y,{key:2,prop:"",label:"参考申报价范围:",class:"w-full"},{default:q(()=>[de("div",Fne,[z(pe,{modelValue:St(p).referenceRangeMin,"onUpdate:modelValue":W[7]||(W[7]=ke=>St(p).referenceRangeMin=ke),style:{width:"100%"},min:0,precision:2,"controls-position":"right"},{prefix:q(()=>[...W[41]||(W[41]=[de("span",null,"价格",-1)])]),_:1},8,["modelValue"]),W[43]||(W[43]=Ue(" ~ ",-1)),z(pe,{modelValue:St(p).referenceRangeMax,"onUpdate:modelValue":W[8]||(W[8]=ke=>St(p).referenceRangeMax=ke),style:{width:"100%"},min:0,precision:2,"controls-position":"right"},{prefix:q(()=>[...W[42]||(W[42]=[de("span",null,"价格",-1)])]),_:1},8,["modelValue"])])]),_:1})):tr("",!0),St(p).type!==1?(Oe(),Et(Y,{key:3,prop:"",label:"价差范围:",class:"w-full"},{default:q(()=>[de("div",Mne,[z(pe,{modelValue:St(p).spreadRangeMin,"onUpdate:modelValue":W[9]||(W[9]=ke=>St(p).spreadRangeMin=ke),style:{width:"100%"},min:0,controls:!1,precision:2,"controls-position":"right"},{prefix:q(()=>[...W[44]||(W[44]=[de("span",null,"价格",-1)])]),_:1},8,["modelValue"]),W[46]||(W[46]=Ue(" ~ ",-1)),z(pe,{modelValue:St(p).spreadRangeMax,"onUpdate:modelValue":W[10]||(W[10]=ke=>St(p).spreadRangeMax=ke),style:{width:"100%"},min:0,precision:2,controls:!1,"controls-position":"right"},{prefix:q(()=>[...W[45]||(W[45]=[de("span",null,"价格",-1)])]),_:1},8,["modelValue"])])]),_:1})):tr("",!0),St(p).type!==0?(Oe(),Et(Y,{key:4,prop:"",label:"折扣范围:",class:"w-full"},{default:q(()=>[de("div",Dne,[z(pe,{modelValue:St(p).discountRangeMin,"onUpdate:modelValue":W[11]||(W[11]=ke=>St(p).discountRangeMin=ke),style:{width:"100%"},min:0,precision:0,"controls-position":"right"},{prefix:q(()=>[...W[47]||(W[47]=[de("span",null,"折扣",-1)])]),_:1},8,["modelValue"]),W[49]||(W[49]=Ue(" ~ ",-1)),z(pe,{modelValue:St(p).discountRangeMax,"onUpdate:modelValue":W[12]||(W[12]=ke=>St(p).discountRangeMax=ke),style:{width:"100%"},min:0,precision:0,"controls-position":"right"},{prefix:q(()=>[...W[48]||(W[48]=[de("span",null,"折扣",-1)])]),_:1},8,["modelValue"])])]),_:1})):tr("",!0),St(p).type===2?(Oe(),Et(Y,{key:5,prop:"",label:"核价次数范围：",class:"w-full"},{default:q(()=>[de("div",One,[z(pe,{modelValue:St(p).appraisalsCountMin,"onUpdate:modelValue":W[13]||(W[13]=ke=>St(p).appraisalsCountMin=ke),style:{width:"100%"},min:0,precision:0,"controls-position":"right"},{prefix:q(()=>[...W[50]||(W[50]=[de("span",null,"次数",-1)])]),_:1},8,["modelValue"]),W[52]||(W[52]=Ue(" ~ ",-1)),z(pe,{modelValue:St(p).appraisalsCountMax,"onUpdate:modelValue":W[14]||(W[14]=ke=>St(p).appraisalsCountMax=ke),style:{width:"100%"},min:0,precision:0,"controls-position":"right"},{prefix:q(()=>[...W[51]||(W[51]=[de("span",null,"次数",-1)])]),_:1},8,["modelValue"])])]),_:1})):tr("",!0),St(p).type===2?(Oe(),Et(Y,{key:6,label:"按SKUID：",class:"w-full"},{default:q(()=>[z(ve,{span:5},{default:q(()=>[z(oe,{modelValue:St(p).skuEqual,"onUpdate:modelValue":W[15]||(W[15]=ke=>St(p).skuEqual=ke)},{default:q(()=>[z(K,{value:1,label:"等于"}),z(K,{value:0,label:"不等于"})]),_:1},8,["modelValue"])]),_:1}),z(ve,{span:17,push:1},{default:q(()=>[z(ge,{placeholder:"请输入，多个用中英文逗号或空格隔开",modelValue:St(p).skus,"onUpdate:modelValue":W[16]||(W[16]=ke=>St(p).skus=ke)},null,8,["modelValue"])]),_:1})]),_:1})):tr("",!0),St(p).type===2?(Oe(),Et(Y,{key:7,label:"按SKC货号：",class:"w-full"},{default:q(()=>[z(ve,{span:5},{default:q(()=>[z(oe,{modelValue:St(p).skcEqual,"onUpdate:modelValue":W[17]||(W[17]=ke=>St(p).skcEqual=ke)},{default:q(()=>[z(K,{value:1,label:"等于"}),z(K,{value:0,label:"不等于"})]),_:1},8,["modelValue"])]),_:1}),z(ve,{span:17,push:1},{default:q(()=>[z(ge,{placeholder:"请输入，多个用中英文逗号或空格隔开",modelValue:St(p).skcs,"onUpdate:modelValue":W[18]||(W[18]=ke=>St(p).skcs=ke)},null,8,["modelValue"])]),_:1})]),_:1})):tr("",!0),St(p).type===2?(Oe(),Et(Y,{key:8,label:"按参考价：",class:"w-full"},{default:q(()=>[z(ve,{span:5},{default:q(()=>[z(oe,{modelValue:St(p).suggestEqual,"onUpdate:modelValue":W[19]||(W[19]=ke=>St(p).suggestEqual=ke)},{default:q(()=>[z(K,{value:0,label:"小于等于"}),z(K,{value:1,label:"大于等于"})]),_:1},8,["modelValue"])]),_:1}),W[54]||(W[54]=Ue(" 原申报价的 ",-1)),z(ve,{span:7},{default:q(()=>[z(pe,{modelValue:St(p).originPer,"onUpdate:modelValue":W[20]||(W[20]=ke=>St(p).originPer=ke),style:{width:"100%"},min:0,max:100,precision:0,"controls-position":"right",placeholder:"输入百分比"},null,8,["modelValue"])]),_:1}),W[55]||(W[55]=Ue(" + ",-1)),z(ve,{span:6},{default:q(()=>[z(pe,{modelValue:St(p).originPrice,"onUpdate:modelValue":W[21]||(W[21]=ke=>St(p).originPrice=ke),style:{width:"100%"},min:0,precision:2,"controls-position":"right",placeholder:"输入金额"},{suffix:q(()=>[...W[53]||(W[53]=[de("span",null,"元",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})):tr("",!0)]),_:1}),z(ue,{"content-position":"center"},{default:q(()=>[...W[56]||(W[56]=[Ue("当前筛选条件",-1)])]),_:1}),z(St(_i),{"max-height":"300px"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(_.value,ke=>na((Oe(),Et(Y,{label:ke.label,"label-width":"310px","label-position":"left"},{default:q(()=>[z(Te,{type:ke.change?"success":"warning"},{default:q(()=>[Ue(ht(ke.value),1)]),_:2},1032,["type"])]),_:2},1032,["label"])),[[Cl,ke.show.includes(St(p).type)]])),256))]),_:1}),de("div",Lne,[z(fe,{type:"danger",onClick:C},{default:q(()=>[...W[57]||(W[57]=[Ue("重 置 ",-1)])]),_:1}),z(fe,{type:"primary",onClick:k},{default:q(()=>[...W[58]||(W[58]=[Ue("筛 选 ",-1)])]),_:1})])]),_:1},8,["model"])]),_:1},8,["modelValue"]),z(fe,{type:"primary",plain:"",onClick:O,icon:St(t_)},{default:q(()=>[...W[59]||(W[59]=[Ue(" 设置新申报价&同意符合筛选条件的核价 ",-1)])]),_:1},8,["icon"]),z(fe,{type:"danger",plain:"",onClick:I},{default:q(()=>[...W[60]||(W[60]=[Ue(" 拒绝符合筛选条件的核价 ",-1)])]),_:1}),z(fe,{type:"primary",plain:"",onClick:T,icon:St(Ay)},{default:q(()=>[...W[61]||(W[61]=[Ue(" 还原数据 ",-1)])]),_:1},8,["icon"])]),z(ye,{class:"w-1/5 submit-dialog",width:"40%",modelValue:u.value,"onUpdate:modelValue":W[29]||(W[29]=ke=>u.value=ke),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",center:"",title:"价格待确认商品(统一设置新申报价)"},{default:q(()=>[z(Ee,{model:A.value,"label-width":"140px","label-position":"left",rules:v,ref_key:"FormRef",ref:g},{default:q(()=>[z(Y,{label:"新申报价:",prop:"selectType"},{default:q(()=>[z(he,{modelValue:A.value.selectType,"onUpdate:modelValue":W[23]||(W[23]=ke=>A.value.selectType=ke),"aria-label":"label position"},{default:q(()=>[z(Se,{value:0,label:"按原申报价"}),z(Se,{value:1,label:"按参考申报价"}),z(Se,{value:2,label:"自定义"}),z(G,{content:"注意：自定义价格，不能大于原申报价格！",placement:"right",effect:"dark",width:"200"},{reference:q(()=>[z(le,{class:"ml-1"},{default:q(()=>[z(St(_1))]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),A.value.selectType===2?(Oe(),Et(Y,{key:0,label:"自定义申报价方式:",prop:""},{default:q(()=>[z(ve,{span:10},{default:q(()=>[z(oe,{modelValue:A.value.type,"onUpdate:modelValue":W[24]||(W[24]=ke=>A.value.type=ke)},{default:q(()=>[z(K,{value:0,label:"按原申报价格的百分比(%)"}),z(K,{value:1,label:"按参考申报价格的百分比(%)"}),z(K,{value:2,label:"按原申报价与参考申报价的平均值"}),z(K,{value:3,label:"固定值"})]),_:1},8,["modelValue"])]),_:1}),A.value.type===0||A.value.type===1?(Oe(),st(Zt,{key:0},[z(ve,{span:6,push:1},{default:q(()=>[z(Y,{prop:"percent"},{default:q(()=>[z(pe,{modelValue:A.value.percent,"onUpdate:modelValue":W[25]||(W[25]=ke=>A.value.percent=ke),min:1,max:99,precision:0,"controls-position":"right",placeholder:"输入百分比"},{suffix:q(()=>[...W[62]||(W[62]=[de("span",null,"%",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1}),W[64]||(W[64]=Ue(" + ",-1)),z(ve,{span:6,push:1},{default:q(()=>[z(Y,{prop:"price"},{default:q(()=>[z(pe,{modelValue:A.value.price,"onUpdate:modelValue":W[26]||(W[26]=ke=>A.value.price=ke),min:0,precision:2,"controls-position":"right"},{suffix:q(()=>[...W[63]||(W[63]=[de("span",null,"元",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})],64)):tr("",!0),A.value.type===3?(Oe(),Et(ve,{key:1,span:6,push:1},{default:q(()=>[z(Y,{prop:"count"},{default:q(()=>[z(pe,{modelValue:A.value.count,"onUpdate:modelValue":W[27]||(W[27]=ke=>A.value.count=ke),min:0,precision:2,"controls-position":"right",placeholder:"输入价格"},{suffix:q(()=>[...W[65]||(W[65]=[de("span",null,"元",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})):tr("",!0)]),_:1})):tr("",!0),z(ue,{"content-position":"center"},{default:q(()=>[...W[66]||(W[66]=[Ue("新申报价统一设置条件",-1)])]),_:1}),de("div",Pne,[W[70]||(W[70]=Ue(" 所有待确认价格的商品将按照 “ ",-1)),A.value.selectType===0?(Oe(),st("span",Rne,"原申报价格")):A.value.selectType===1?(Oe(),st("span",Une,"参考申报价格")):A.value.selectType===2?(Oe(),st(Zt,{key:2},[A.value.type===0||A.value.type===1?(Oe(),st("span",Nne,[W[67]||(W[67]=Ue("按原申报价格的百分比 ",-1)),de("span",jne," （参考申报价格 * "+ht(A.value.percent)+"% + "+ht(A.value.price||0)+"） ",1)])):tr("",!0),A.value.type===2?(Oe(),st("span",Hne,[...W[68]||(W[68]=[Ue("按原申报价和参考价的平均值 ",-1),de("span",{style:{color:"rgb(67, 158, 255)"}}," （（原申报价 + 参考申报价）/ 2 ） ",-1)])])):tr("",!0),A.value.type===3?(Oe(),st("span",Qne,[W[69]||(W[69]=Ue("固定值 ",-1)),de("span",zne," （= "+ht(A.value.count)+"元） ",1)])):tr("",!0)],64)):tr("",!0),W[71]||(W[71]=Ue(" ” 去同意核价！ ",-1))]),de("div",Vne,[z(fe,{onClick:W[28]||(W[28]=ke=>u.value=!1)},{default:q(()=>[...W[72]||(W[72]=[Ue("取 消",-1)])]),_:1}),z(fe,{type:"primary",onClick:M},{default:q(()=>[...W[73]||(W[73]=[Ue("以新申报价同意核价 ",-1)])]),_:1})])]),_:1},8,["model"])]),_:1},8,["modelValue"]),z(ye,{class:"warp-float w-1/5",width:"60%",modelValue:n.value,"onUpdate:modelValue":W[31]||(W[31]=ke=>n.value=ke),"append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",title:"上传失败列表"},{default:q(()=>[z(Ve,{data:t.value,"max-height":"400"},{default:q(()=>[z(Fe,{label:"商品名称",prop:"productName"}),z(Fe,{label:"错误原因",prop:"errorMsg"},{default:q(({row:ke})=>[z(Q,{title:ke.errorMsg,type:"warning",closable:!1},null,8,["title"])]),_:1})]),_:1},8,["data"]),de("div",Wne,[z(fe,{type:"primary",onClick:W[30]||(W[30]=ke=>n.value=!1)},{default:q(()=>[...W[74]||(W[74]=[Ue("关 闭 ",-1)])]),_:1})])]),_:1},8,["modelValue"]),z(Gk,{class:"mt-3 newon-product-table",data:s.value,type:"setPricing",ref_key:"TableRef",ref:l},null,8,["data"])]),_:1},8,["modelValue"])],64)}}};var aw={exports:{}};/*! ExcelJS 19-10-2023 */var tC;function $ne(){return tC||(tC=1,(function(a,s){(function(r){a.exports=r()})((function(){return(function r(i,n,t){function c(o,l){if(!n[o]){if(!i[o]){var g=typeof Xu=="function"&&Xu;if(!l&&g)return g(o,!0);if(u)return u(o,!0);var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}var p=n[o]={exports:{}};i[o][0].call(p.exports,(function(_){return c(i[o][1][_]||_)}),p,p.exports,r,i,n,t)}return n[o].exports}for(var u=typeof Xu=="function"&&Xu,f=0;f<t.length;f++)c(t[f]);return c})({1:[function(r,i,n){const t=r("fs"),c=r("fast-csv"),u=r("dayjs/plugin/customParseFormat"),f=r("dayjs/plugin/utc"),o=r("dayjs").extend(u).extend(f),l=r("../utils/stream-buf"),{fs:{exists:g}}=r("../utils/utils"),m={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!"}};i.exports=class{constructor(p){this.workbook=p,this.worksheet=null}async readFile(p,_){if(_=_||{},!await g(p))throw new Error("File not found: "+p);const y=t.createReadStream(p),h=await this.read(y,_);return y.close(),h}read(p,_){return _=_||{},new Promise((y,h)=>{const d=this.workbook.addWorksheet(_.sheetName),A=_.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],v=_.map||function(x){if(x==="")return null;const C=Number(x);if(!Number.isNaN(C)&&C!==1/0)return C;const k=A.reduce((S,M)=>{if(S)return S;const P=o(x,M,!0);return P.isValid()?P:null},null);if(k)return new Date(k.valueOf());const T=m[x];return T!==void 0?T:x},w=c.parse(_.parserOptions).on("data",x=>{d.addRow(x.map(v))}).on("end",()=>{w.emit("worksheet",d)});w.on("worksheet",y).on("error",h),p.pipe(w)})}createInputStream(){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")}write(p,_){return new Promise((y,h)=>{_=_||{};const d=this.workbook.getWorksheet(_.sheetName||_.sheetId),A=c.format(_.formatterOptions);p.on("finish",()=>{y()}),A.on("error",h),A.pipe(p);const{dateFormat:v,dateUTC:w}=_,x=_.map||(T=>{if(T){if(T.text||T.hyperlink)return T.hyperlink||T.text||"";if(T.formula||T.result)return T.result||"";if(T instanceof Date)return v?w?o.utc(T).format(v):o(T).format(v):w?o.utc(T).format():o(T).format();if(T.error)return T.error;if(typeof T=="object")return JSON.stringify(T)}return T}),C=_.includeEmptyRows===void 0||_.includeEmptyRows;let k=1;d&&d.eachRow((T,S)=>{if(C)for(;k++<S-1;)A.write([]);const{values:M}=T;M.shift(),A.write(M.map(x)),k=S}),A.end()})}writeFile(p,_){const y={encoding:(_=_||{}).encoding||"utf8"},h=t.createWriteStream(p,y);return this.write(h,_)}async writeBuffer(p){const _=new l;return await this.write(_,p),_.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(r,i,n){const t=r("../utils/col-cache");class c{constructor(f,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=f,o)if(typeof o=="string"){const g=t.decodeAddress(o);this.nativeCol=g.col+l,this.nativeColOff=0,this.nativeRow=g.row+l,this.nativeRowOff=0}else o.nativeCol!==void 0?(this.nativeCol=o.nativeCol||0,this.nativeColOff=o.nativeColOff||0,this.nativeRow=o.nativeRow||0,this.nativeRowOff=o.nativeRowOff||0):o.col!==void 0?(this.col=o.col+l,this.row=o.row+l):(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}static asInstance(f){return f instanceof c||f==null?f:new c(f)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(f){this.nativeCol=Math.floor(f),this.nativeColOff=Math.floor((f-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(f){this.nativeRow=Math.floor(f),this.nativeRowOff=Math.floor((f-this.nativeRow)*this.rowHeight)}get colWidth(){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}get rowHeight(){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}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(f){this.nativeCol=f.nativeCol,this.nativeColOff=f.nativeColOff,this.nativeRow=f.nativeRow,this.nativeRowOff=f.nativeRowOff}}i.exports=c},{"../utils/col-cache":19}],3:[function(r,i,n){const t=r("../utils/col-cache"),c=r("../utils/under-dash"),u=r("./enums"),{slideFormula:f}=r("../utils/shared-formula"),o=r("./note");class l{constructor(p,_,y){if(!p||!_)throw new Error("A Cell needs a Row");this._row=p,this._column=_,t.validateAddress(y),this._address=y,this._value=g.create(l.Types.Null,this),this.style=this._mergeStyle(p.style,_.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(p){this.style.numFmt=p}get font(){return this.style.font}set font(p){this.style.font=p}get alignment(){return this.style.alignment}set alignment(p){this.style.alignment=p}get border(){return this.style.border}set border(p){this.style.border=p}get fill(){return this.style.fill}set fill(p){this.style.fill=p}get protection(){return this.style.protection}set protection(p){this.style.protection=p}_mergeStyle(p,_,y){const h=p&&p.numFmt||_&&_.numFmt;h&&(y.numFmt=h);const d=p&&p.font||_&&_.font;d&&(y.font=d);const A=p&&p.alignment||_&&_.alignment;A&&(y.alignment=A);const v=p&&p.border||_&&_.border;v&&(y.border=v);const w=p&&p.fill||_&&_.fill;w&&(y.fill=w);const x=p&&p.protection||_&&_.protection;return x&&(y.protection=x),y}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge}merge(p,_){this._value.release(),this._value=g.create(l.Types.Merge,this,p),_||(this.style=p.style)}unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=g.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(p){return this._value.type===l.Types.Merge&&this._value.isMergedTo(p)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(p){this.type!==l.Types.Merge?(this._value.release(),this._value=g.create(g.getType(p),this,p)):this._value.master.value=p}get note(){return this._comment&&this._comment.note}set note(p){this._comment=new o(p)}get text(){return this._value.toString()}get html(){return c.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(p){this.type===l.Types.String&&(this._value=g.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:p}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:p}=this._row;return{sheetName:p.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(p){this.names=[p]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(p){const{definedNames:_}=this.workbook;_.removeAllNames(this.fullAddress),p.forEach(y=>{_.addEx(this.fullAddress,y)})}addName(p){this.workbook.definedNames.addEx(this.fullAddress,p)}removeName(p){this.workbook.definedNames.removeEx(this.fullAddress,p)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(p){this._dataValidations.add(this.address,p)}get model(){const{model:p}=this._value;return p.style=this.style,this._comment&&(p.comment=this._comment.model),p}set model(p){if(this._value.release(),this._value=g.create(p.type,this),this._value.model=p,p.comment)switch(p.comment.type){case"note":this._comment=o.fromModel(p.comment)}p.style?this.style=p.style:this.style={}}}l.Types=u.ValueType;const g={getType:m=>m==null?l.Types.Null:m instanceof String||typeof m=="string"?l.Types.String:typeof m=="number"?l.Types.Number:typeof m=="boolean"?l.Types.Boolean:m instanceof Date?l.Types.Date:m.text&&m.hyperlink?l.Types.Hyperlink:m.formula||m.sharedFormula?l.Types.Formula:m.richText?l.Types.RichText:m.sharedString?l.Types.SharedString:m.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(m){this.model={address:m.address,type:l.Types.Null}}get value(){return null}set value(m){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.Number,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.String,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.Date,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.Hyperlink,text:p?p.text:void 0,hyperlink:p?p.hyperlink:void 0},p&&p.tooltip&&(this.model.tooltip=p.tooltip)}get value(){const m={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(m.tooltip=this.model.tooltip),m}set value(m){this.model={text:m.text,hyperlink:m.hyperlink},m.tooltip&&(this.model.tooltip=m.tooltip)}get text(){return this.model.text}set text(m){this.model.text=m}get hyperlink(){return this.model.hyperlink}set hyperlink(m){this.model.hyperlink=m}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(m,p){this.cell=m,this.model={address:m.address,type:l.Types.Formula,shareType:p?p.shareType:void 0,ref:p?p.ref:void 0,formula:p?p.formula:void 0,sharedFormula:p?p.sharedFormula:void 0,result:p?p.result:void 0}}_copyModel(m){const p={},_=y=>{const h=m[y];h&&(p[y]=h)};return _("formula"),_("result"),_("ref"),_("shareType"),_("sharedFormula"),p}get value(){return this._copyModel(this.model)}set value(m){this.model=this._copyModel(m)}validate(m){switch(g.getType(m)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){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)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(m){this.model.formula=m}get formulaType(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}get result(){return this.model.result}set result(m){this.model.result=m}get type(){return l.Types.Formula}get effectiveType(){const m=this.model.result;return m==null?u.ValueType.Null:m instanceof String||typeof m=="string"?u.ValueType.String:typeof m=="number"?u.ValueType.Number:m instanceof Date?u.ValueType.Date:m.text&&m.hyperlink?u.ValueType.Hyperlink:m.formula?u.ValueType.Formula:u.ValueType.Null}get address(){return this.model.address}set address(m){this.model.address=m}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:m}=this.cell,p=m.findCell(this.model.sharedFormula);this._translatedFormula=p&&f(p.formula,p.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.Merge,master:p?p.address:void 0},this._master=p,p&&p.addMergeRef()}get value(){return this._master.value}set value(m){m instanceof l?(this._master&&this._master.releaseMergeRef(),m.addMergeRef(),this._master=m):this._master.value=m}isMergedTo(m){return m===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.String,value:JSON.stringify(p),rawValue:p}}get value(){return this.model.rawValue}set value(m){this.model.rawValue=m,this.model.value=JSON.stringify(m)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.SharedString,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.String,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}toString(){return this.model.value.richText.map(m=>m.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.Boolean,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(m,p){this.model={address:m.address,type:l.Types.Error,value:p}}get value(){return this.model.value}set value(m){this.model.value=m}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(m){this.model.address=m}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((m,p)=>(m[p.t]=p.f,m),[]),create(m,p,_){const y=this.types[m];if(!y)throw new Error("Could not create Value of type "+m);return new y(p,_)}};i.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(r,i,n){const t=r("../utils/under-dash"),c=r("./enums"),u=r("../utils/col-cache");class f{constructor(l,g,m){this._worksheet=l,this._number=g,m!==!1&&(this.defn=m)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return u.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:9,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)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(l){l!==void 0?(this._header=l,this.headers.forEach((g,m)=>{this._worksheet.getCell(m+1,this.number).value=g})):this._header=void 0}get key(){return this._key}set key(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&t.isEqual(this.style,l.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const l=this.style;return!l||!(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection)}get headerCount(){return this.headers.length}eachCell(l,g){const m=this.number;g||(g=l,l=null),this._worksheet.eachRow(l,(p,_)=>{g(p.getCell(m),_)})}get values(){const l=[];return this.eachCell((g,m)=>{g&&g.type!==c.ValueType.Null&&(l[m]=g.value)}),l}set values(l){if(!l)return;const g=this.number;let m=0;l.hasOwnProperty("0")&&(m=1),l.forEach((p,_)=>{this._worksheet.getCell(_+m,g).value=p})}_applyStyle(l,g){return this.style[l]=g,this.eachCell(m=>{m[l]=g}),g}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}static toModel(l){const g=[];let m=null;return l&&l.forEach((p,_)=>{p.isDefault?m&&(m=null):m&&p.equivalentTo(m)?m.max=_+1:(m={min:_+1,max:_+1,width:p.width!==void 0?p.width:9,style:p.style,isCustomWidth:p.isCustomWidth,hidden:p.hidden,outlineLevel:p.outlineLevel,collapsed:p.collapsed},g.push(m))}),g.length?g:void 0}static fromModel(l,g){const m=[];let p=1,_=0;for(g=(g=g||[]).sort((function(y,h){return y.min-h.min}));_<g.length;){const y=g[_++];for(;p<y.min;)m.push(new f(l,p++));for(;p<=y.max;)m.push(new f(l,p++,y))}return m.length?m:null}}i.exports=f},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(r,i,n){i.exports=class{constructor(t){this.model=t||{}}add(t,c){return this.model[t]=c}find(t){return this.model[t]}remove(t){this.model[t]=void 0}}},{}],6:[function(r,i,n){const t=r("../utils/under-dash"),c=r("../utils/col-cache"),u=r("../utils/cell-matrix"),f=r("./range"),o=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;i.exports=class{constructor(){this.matrixMap={}}getMatrix(l){return this.matrixMap[l]||(this.matrixMap[l]=new u)}add(l,g){const m=c.decodeEx(l);this.addEx(m,g)}addEx(l,g){const m=this.getMatrix(g);if(l.top)for(let p=l.left;p<=l.right;p++)for(let _=l.top;_<=l.bottom;_++){const y={sheetName:l.sheetName,address:c.n2l(p)+_,row:_,col:p};m.addCellEx(y)}else m.addCellEx(l)}remove(l,g){const m=c.decodeEx(l);this.removeEx(m,g)}removeEx(l,g){this.getMatrix(g).removeCellEx(l)}removeAllNames(l){t.each(this.matrixMap,g=>{g.removeCellEx(l)})}forEach(l){t.each(this.matrixMap,(g,m)=>{g.forEach(p=>{l(m,p)})})}getNames(l){return this.getNamesEx(c.decodeEx(l))}getNamesEx(l){return t.map(this.matrixMap,(g,m)=>g.findCellEx(l)&&m).filter(Boolean)}_explore(l,g){g.mark=!1;const{sheetName:m}=g,p=new f(g.row,g.col,g.row,g.col,m);let _,y;function h(A,v){const w=l.findCellAt(m,A,g.col);return!(!w||!w.mark)&&(p[v]=A,w.mark=!1,!0)}for(y=g.row-1;h(y,"top");y--);for(y=g.row+1;h(y,"bottom");y++);function d(A,v){const w=[];for(y=p.top;y<=p.bottom;y++){const x=l.findCellAt(m,y,A);if(!x||!x.mark)return!1;w.push(x)}p[v]=A;for(let x=0;x<w.length;x++)w[x].mark=!1;return!0}for(_=g.col-1;d(_,"left");_--);for(_=g.col+1;d(_,"right");_++);return p}getRanges(l,g){return(g=g||this.matrixMap[l])?(g.forEach(m=>{m.mark=!0}),{name:l,ranges:g.map(m=>m.mark&&this._explore(g,m)).filter(Boolean).map(m=>m.$shortRange)}):{name:l,ranges:[]}}normaliseMatrix(l,g){l.forEachInSheet(g,(m,p,_)=>{m&&(m.row===p&&m.col===_||(m.row=p,m.col=_,m.address=c.n2l(_)+p))})}spliceRows(l,g,m,p){t.each(this.matrixMap,_=>{_.spliceRows(l,g,m,p),this.normaliseMatrix(_,l)})}spliceColumns(l,g,m,p){t.each(this.matrixMap,_=>{_.spliceColumns(l,g,m,p),this.normaliseMatrix(_,l)})}get model(){return t.map(this.matrixMap,(l,g)=>this.getRanges(g,l)).filter(l=>l.ranges.length)}set model(l){const g=this.matrixMap={};l.forEach(m=>{const p=g[m.name]=new u;m.ranges.forEach(_=>{o.test(_.split("!").pop()||"")&&p.addCell(_)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(r,i,n){i.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(r,i,n){const t=r("../utils/col-cache"),c=r("./anchor");i.exports=class{constructor(u,f){this.worksheet=u,this.model=f}get model(){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 model(u){let{type:f,imageId:o,range:l,hyperlinks:g}=u;if(this.type=f,this.imageId=o,f==="image")if(typeof l=="string"){const m=t.decode(l);this.range={tl:new c(this.worksheet,{col:m.left,row:m.top},-1),br:new c(this.worksheet,{col:m.right,row:m.bottom},0),editAs:"oneCell"}}else this.range={tl:new c(this.worksheet,l.tl,0),br:l.br&&new c(this.worksheet,l.br,0),ext:l.ext,editAs:l.editAs,hyperlinks:g||l.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(r,i,n){const t=r("../utils/under-dash");class c{constructor(f){this.note=f}get model(){let f=null;switch(typeof this.note){case"string":f={type:"note",note:{texts:[{text:this.note}]}};break;default:f={type:"note",note:this.note}}return t.deepMerge({},c.DEFAULT_CONFIGS,f)}set model(f){const{note:o}=f,{texts:l}=o;l.length===1&&Object.keys(l[0]).length===1?this.note=l[0].text:this.note=o}static fromModel(f){const o=new c;return o.model=f,o}}c.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},i.exports=c},{"../utils/under-dash":26}],10:[function(r,i,n){const t=r("../utils/col-cache");class c{constructor(){this.decode(arguments)}setTLBR(f,o,l,g,m){if(arguments.length<4){const p=t.decodeAddress(f),_=t.decodeAddress(o);this.model={top:Math.min(p.row,_.row),left:Math.min(p.col,_.col),bottom:Math.max(p.row,_.row),right:Math.max(p.col,_.col),sheetName:l},this.setTLBR(p.row,p.col,_.row,_.col,m)}else this.model={top:Math.min(f,l),left:Math.min(o,g),bottom:Math.max(f,l),right:Math.max(o,g),sheetName:m}}decode(f){switch(f.length){case 5:this.setTLBR(f[0],f[1],f[2],f[3],f[4]);break;case 4:this.setTLBR(f[0],f[1],f[2],f[3]);break;case 3:this.setTLBR(f[0],f[1],f[2]);break;case 2:this.setTLBR(f[0],f[1]);break;case 1:{const o=f[0];if(o instanceof c)this.model={top:o.model.top,left:o.model.left,bottom:o.model.bottom,right:o.model.right,sheetName:o.sheetName};else if(o instanceof Array)this.decode(o);else if(o.top&&o.left&&o.bottom&&o.right)this.model={top:o.top,left:o.left,bottom:o.bottom,right:o.right,sheetName:o.sheetName};else{const l=t.decodeEx(o);l.top?this.model={top:l.top,left:l.left,bottom:l.bottom,right:l.right,sheetName:l.sheetName}:this.model={top:l.row,left:l.col,bottom:l.row,right:l.col,sheetName:l.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() - "+f.length)}}get top(){return this.model.top||1}set top(f){this.model.top=f}get left(){return this.model.left||1}set left(f){this.model.left=f}get bottom(){return this.model.bottom||1}set bottom(f){this.model.bottom=f}get right(){return this.model.right||1}set right(f){this.model.right=f}get sheetName(){return this.model.sheetName}set sheetName(f){this.model.sheetName=f}get _serialisedSheetName(){const{sheetName:f}=this.model;return f?/^[a-zA-Z0-9]*$/.test(f)?f+"!":`'${f}'!`:""}expand(f,o,l,g){(!this.model.top||f<this.top)&&(this.top=f),(!this.model.left||o<this.left)&&(this.left=o),(!this.model.bottom||l>this.bottom)&&(this.bottom=l),(!this.model.right||g>this.right)&&(this.right=g)}expandRow(f){if(f){const{dimensions:o,number:l}=f;o&&this.expand(l,o.min,l,o.max)}}expandToAddress(f){const o=t.decodeEx(f);this.expand(o.row,o.col,o.row,o.col)}get tl(){return t.n2l(this.left)+this.top}get $t$l(){return`$${t.n2l(this.left)}$${this.top}`}get br(){return t.n2l(this.right)+this.bottom}get $b$r(){return`$${t.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(f){return(!f.sheetName||!this.sheetName||f.sheetName===this.sheetName)&&!(f.bottom<this.top)&&!(f.top>this.bottom)&&!(f.right<this.left)&&!(f.left>this.right)}contains(f){const o=t.decodeEx(f);return this.containsEx(o)}containsEx(f){return(!f.sheetName||!this.sheetName||f.sheetName===this.sheetName)&&f.row>=this.top&&f.row<=this.bottom&&f.col>=this.left&&f.col<=this.right}forEachAddress(f){for(let o=this.left;o<=this.right;o++)for(let l=this.top;l<=this.bottom;l++)f(t.encodeAddress(l,o),l,o)}}i.exports=c},{"../utils/col-cache":19}],11:[function(r,i,n){const t=r("../utils/under-dash"),c=r("./enums"),u=r("../utils/col-cache"),f=r("./cell");i.exports=class{constructor(o,l){this._worksheet=o,this._number=l,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(o){return this._cells[o-1]}getCellEx(o){let l=this._cells[o.col-1];if(!l){const g=this._worksheet.getColumn(o.col);l=new f(this,g,o.address),this._cells[o.col-1]=l}return l}getCell(o){if(typeof o=="string"){const l=this._worksheet.getColumnKey(o);o=l?l.number:u.l2n(o)}return this._cells[o-1]||this.getCellEx({address:u.encodeAddress(this._number,o),row:this._number,col:o})}splice(o,l){const g=o+l;for(var m=arguments.length,p=new Array(m>2?m-2:0),_=2;_<m;_++)p[_-2]=arguments[_];const y=p.length-l,h=this._cells.length;let d,A,v;if(y<0)for(d=o+p.length;d<=h;d++)v=this._cells[d-1],A=this._cells[d-y-1],A?(v=this.getCell(d),v.value=A.value,v.style=A.style,v._comment=A._comment):v&&(v.value=null,v.style={},v._comment=void 0);else if(y>0)for(d=h;d>=g;d--)A=this._cells[d-1],A?(v=this.getCell(d+y),v.value=A.value,v.style=A.style,v._comment=A._comment):this._cells[d+y-1]=void 0;for(d=0;d<p.length;d++)v=this.getCell(o+d),v.value=p[d],v.style={},v._comment=void 0}eachCell(o,l){if(l||(l=o,o=null),o&&o.includeEmpty){const g=this._cells.length;for(let m=1;m<=g;m++)l(this.getCell(m),m)}else this._cells.forEach((g,m)=>{g&&g.type!==c.ValueType.Null&&l(g,m+1)})}addPageBreak(o,l){const g=this._worksheet,m=Math.max(0,o-1)||0,p=Math.max(0,l-1)||16838,_={id:this._number,max:p,man:1};m&&(_.min=m),g.rowBreaks.push(_)}get values(){const o=[];return this._cells.forEach(l=>{l&&l.type!==c.ValueType.Null&&(o[l.col]=l.value)}),o}set values(o){if(this._cells=[],o)if(o instanceof Array){let l=0;o.hasOwnProperty("0")&&(l=1),o.forEach((g,m)=>{g!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,m+l),row:this._number,col:m+l}).value=g)})}else this._worksheet.eachColumnKey((l,g)=>{o[g]!==void 0&&(this.getCellEx({address:u.encodeAddress(this._number,l.number),row:this._number,col:l.number}).value=o[g])})}get hasValues(){return t.some(this._cells,o=>o&&o.type!==c.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let o=0;return this.eachCell(()=>{o++}),o}get dimensions(){let o=0,l=0;return this._cells.forEach(g=>{g&&g.type!==c.ValueType.Null&&((!o||o>g.col)&&(o=g.col),l<g.col&&(l=g.col))}),o>0?{min:o,max:l}:null}_applyStyle(o,l){return this.style[o]=l,this._cells.forEach(g=>{g&&(g[o]=l)}),l}get numFmt(){return this.style.numFmt}set numFmt(o){this._applyStyle("numFmt",o)}get font(){return this.style.font}set font(o){this._applyStyle("font",o)}get alignment(){return this.style.alignment}set alignment(o){this._applyStyle("alignment",o)}get protection(){return this.style.protection}set protection(o){this._applyStyle("protection",o)}get border(){return this.style.border}set border(o){this._applyStyle("border",o)}get fill(){return this.style.fill}set fill(o){this._applyStyle("fill",o)}get hidden(){return!!this._hidden}set hidden(o){this._hidden=o}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(o){this._outlineLevel=o}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const o=[];let l=0,g=0;return this._cells.forEach(m=>{if(m){const p=m.model;p&&((!l||l>m.col)&&(l=m.col),g<m.col&&(g=m.col),o.push(p))}}),this.height||o.length?{cells:o,number:this.number,min:l,max:g,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(o){if(o.number!==this._number)throw new Error("Invalid row number in model");let l;this._cells=[],o.cells.forEach(g=>{switch(g.type){case f.Types.Merge:break;default:{let m;if(g.address)m=u.decodeAddress(g.address);else if(l){const{row:p}=l,_=l.col+1;m={row:p,col:_,address:u.encodeAddress(p,_),$col$row:`$${u.n2l(_)}$${p}`}}l=m,this.getCellEx(m).model=g;break}}}),o.height?this.height=o.height:delete this.height,this.hidden=o.hidden,this.outlineLevel=o.outlineLevel||0,this.style=o.style&&JSON.parse(JSON.stringify(o.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(r,i,n){const t=r("../utils/col-cache");class c{constructor(f,o,l){this.table=f,this.column=o,this.index=l}_set(f,o){this.table.cacheState(),this.column[f]=o}get name(){return this.column.name}set name(f){this._set("name",f)}get filterButton(){return this.column.filterButton}set filterButton(f){this.column.filterButton=f}get style(){return this.column.style}set style(f){this.column.style=f}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(f){this._set("totalsRowLabel",f)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(f){this._set("totalsRowFunction",f)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(f){this._set("totalsRowResult",f)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(f){this._set("totalsRowFormula",f)}}i.exports=class{constructor(u,f){this.worksheet=u,f&&(this.table=f,this.validate(),this.store())}getFormula(u){switch(u.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${u.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${u.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${u.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${u.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${u.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${u.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${u.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${u.name}])`;case"custom":return u.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+u.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:u}=this,f=(y,h,d)=>{y[h]===void 0&&(y[h]=d)};f(u,"headerRow",!0),f(u,"totalsRow",!1),f(u,"style",{}),f(u.style,"theme","TableStyleMedium2"),f(u.style,"showFirstColumn",!1),f(u.style,"showLastColumn",!1),f(u.style,"showRowStripes",!1),f(u.style,"showColumnStripes",!1);const o=(y,h)=>{if(!y)throw new Error(h)};o(u.ref,"Table must have ref"),o(u.columns,"Table must have column definitions"),o(u.rows,"Table must have row definitions"),u.tl=t.decodeAddress(u.ref);const{row:l,col:g}=u.tl;o(l>0,"Table must be on valid row"),o(g>0,"Table must be on valid col");const{width:m,filterHeight:p,tableHeight:_}=this;u.autoFilterRef=t.encode(l,g,l+p-1,g+m-1),u.tableRef=t.encode(l,g,l+_-1,g+m-1),u.columns.forEach((y,h)=>{o(y.name,`Column ${h} must have a name`),h===0?f(y,"totalsRowLabel","Total"):(f(y,"totalsRowFunction","none"),y.totalsRowFormula=this.getFormula(y))})}store(){const u=(p,_)=>{_&&Object.keys(_).forEach(y=>{p[y]=_[y]})},{worksheet:f,table:o}=this,{row:l,col:g}=o.tl;let m=0;if(o.headerRow){const p=f.getRow(l+m++);o.columns.forEach((_,y)=>{const{style:h,name:d}=_,A=p.getCell(g+y);A.value=d,u(A,h)})}if(o.rows.forEach(p=>{const _=f.getRow(l+m++);p.forEach((y,h)=>{const d=_.getCell(g+h);d.value=y,u(d,o.columns[h].style)})}),o.totalsRow){const p=f.getRow(l+m++);o.columns.forEach((_,y)=>{const h=p.getCell(g+y);if(y===0)h.value=_.totalsRowLabel;else{const d=this.getFormula(_);h.value=d?{formula:_.totalsRowFormula,result:_.totalsRowResult}:null}u(h,_.style)})}}load(u){const{table:f}=this,{row:o,col:l}=f.tl;let g=0;if(f.headerRow){const m=u.getRow(o+g++);f.columns.forEach((p,_)=>{m.getCell(l+_).value=p.name})}if(f.rows.forEach(m=>{const p=u.getRow(o+g++);m.forEach((_,y)=>{p.getCell(l+y).value=_})}),f.totalsRow){const m=u.getRow(o+g++);f.columns.forEach((p,_)=>{const y=m.getCell(l+_);_===0?y.value=p.totalsRowLabel:this.getFormula(p)&&(y.value={formula:p.totalsRowFormula,result:p.totalsRowResult})})}}get model(){return this.table}set model(u){this.table=u}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const u=t.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let f=0;f<this._cache.tableHeight;f++){const o=this.worksheet.getRow(u.row+f);for(let l=0;l<this._cache.width;l++)o.getCell(u.col+l).value=null}else{for(let f=this.tableHeight;f<this._cache.tableHeight;f++){const o=this.worksheet.getRow(u.row+f);for(let l=0;l<this._cache.width;l++)o.getCell(u.col+l).value=null}for(let f=0;f<this.tableHeight;f++){const o=this.worksheet.getRow(u.row+f);for(let l=this.width;l<this._cache.width;l++)o.getCell(u.col+l).value=null}}this.store()}addRow(u,f){this.cacheState(),f===void 0?this.table.rows.push(u):this.table.rows.splice(f,0,u)}removeRows(u){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(u,f)}getColumn(u){const f=this.table.columns[u];return new c(this,f,u)}addColumn(u,f,o){this.cacheState(),o===void 0?(this.table.columns.push(u),this.table.rows.forEach((l,g)=>{l.push(f[g])})):(this.table.columns.splice(o,0,u),this.table.rows.forEach((l,g)=>{l.splice(o,0,f[g])}))}removeColumns(u){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(u,f),this.table.rows.forEach(o=>{o.splice(u,f)})}_assign(u,f,o){this.cacheState(),u[f]=o}get ref(){return this.table.ref}set ref(u){this._assign(this.table,"ref",u)}get name(){return this.table.name}set name(u){this.table.name=u}get displayName(){return this.table.displyName||this.table.name}set displayNamename(u){this.table.displayName=u}get headerRow(){return this.table.headerRow}set headerRow(u){this._assign(this.table,"headerRow",u)}get totalsRow(){return this.table.totalsRow}set totalsRow(u){this._assign(this.table,"totalsRow",u)}get theme(){return this.table.style.name}set theme(u){this.table.style.name=u}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(u){this.table.style.showFirstColumn=u}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(u){this.table.style.showLastColumn=u}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(u){this.table.style.showRowStripes=u}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(u){this.table.style.showColumnStripes=u}}},{"../utils/col-cache":19}],13:[function(r,i,n){const t=r("./worksheet"),c=r("./defined-names"),u=r("../xlsx/xlsx"),f=r("../csv/csv");i.exports=class{constructor(){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 c}get xlsx(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}get csv(){return this._csv||(this._csv=new f(this)),this._csv}get nextId(){for(let o=1;o<this._worksheets.length;o++)if(!this._worksheets[o])return o;return this._worksheets.length||1}addWorksheet(o,l){const g=this.nextId;l&&(typeof l=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),l={properties:{tabColor:{argb:l}}}):(l.argb||l.theme||l.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),l={properties:{tabColor:l}}));const m=this._worksheets.reduce((y,h)=>(h&&h.orderNo)>y?h.orderNo:y,0),p=Object.assign({},l,{id:g,name:o,orderNo:m+1,workbook:this}),_=new t(p);return this._worksheets[g]=_,_}removeWorksheetEx(o){delete this._worksheets[o.id]}removeWorksheet(o){const l=this.getWorksheet(o);l&&l.destroy()}getWorksheet(o){return o===void 0?this._worksheets.find(Boolean):typeof o=="number"?this._worksheets[o]:typeof o=="string"?this._worksheets.find(l=>l&&l.name===o):void 0}get worksheets(){return this._worksheets.slice(1).sort((o,l)=>o.orderNo-l.orderNo).filter(Boolean)}eachSheet(o){this.worksheets.forEach(l=>{o(l,l.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(o){const l=this.media.length;return this.media.push(Object.assign({},o,{type:"image"})),l}getImage(o){return this.media[o]}get model(){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(o=>o.model),sheets:this.worksheets.map(o=>o.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 model(o){this.creator=o.creator,this.lastModifiedBy=o.lastModifiedBy,this.lastPrinted=o.lastPrinted,this.created=o.created,this.modified=o.modified,this.company=o.company,this.manager=o.manager,this.title=o.title,this.subject=o.subject,this.keywords=o.keywords,this.category=o.category,this.description=o.description,this.language=o.language,this.revision=o.revision,this.contentStatus=o.contentStatus,this.properties=o.properties,this.calcProperties=o.calcProperties,this._worksheets=[],o.worksheets.forEach(l=>{const{id:g,name:m,state:p}=l,_=o.sheets&&o.sheets.findIndex(y=>y.id===g);(this._worksheets[g]=new t({id:g,name:m,orderNo:_,state:p,workbook:this})).model=l}),this._definedNames.model=o.definedNames,this.views=o.views,this._themes=o.themes,this.media=o.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(r,i,n){const t=r("../utils/under-dash"),c=r("../utils/col-cache"),u=r("./range"),f=r("./row"),o=r("./column"),l=r("./enums"),g=r("./image"),m=r("./table"),p=r("./data-validations"),_=r("../utils/encryptor"),{copyStyle:y}=r("../utils/copy-style");i.exports=class{constructor(h){h=h||{},this._workbook=h.workbook,this.id=h.id,this.orderNo=h.orderNo,this.name=h.name,this.state=h.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},h.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:!(!h.pageSetup||!h.pageSetup.fitToWidth&&!h.pageSetup.fitToHeight||h.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},h.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},h.headerFooter),this.dataValidations=new p,this.views=h.views||[],this.autoFilter=h.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(h){if(h===void 0&&(h="sheet"+this.id),this._name!==h){if(typeof h!="string")throw new Error("The name has to be a string.");if(h==="")throw new Error("The name can't be empty.");if(h==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(h))throw new Error(`Worksheet name ${h} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(h))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+h);if(h&&h.length>31&&(console.warn(`Worksheet name ${h} exceeds 31 chars. This will be truncated`),h=h.substring(0,31)),this._workbook._worksheets.find(d=>d&&d.name.toLowerCase()===h.toLowerCase()))throw new Error("Worksheet name already exists: "+h);this._name=h}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const h=new u;return this._rows.forEach(d=>{if(d){const A=d.dimensions;A&&h.expand(d.number,A.min,d.number,A.max)}}),h}get columns(){return this._columns}set columns(h){this._headerRowCount=h.reduce((v,w)=>{const x=(w.header?1:w.headers&&w.headers.length)||0;return Math.max(v,x)},0);let d=1;const A=this._columns=[];h.forEach(v=>{const w=new o(this,d++,!1);A.push(w),w.defn=v})}getColumnKey(h){return this._keys[h]}setColumnKey(h,d){this._keys[h]=d}deleteColumnKey(h){delete this._keys[h]}eachColumnKey(h){t.each(this._keys,h)}getColumn(h){if(typeof h=="string"){const d=this._keys[h];if(d)return d;h=c.l2n(h)}if(this._columns||(this._columns=[]),h>this._columns.length){let d=this._columns.length+1;for(;d<=h;)this._columns.push(new o(this,d++))}return this._columns[h-1]}spliceColumns(h,d){const A=this._rows.length;for(var v=arguments.length,w=new Array(v>2?v-2:0),x=2;x<v;x++)w[x-2]=arguments[x];if(w.length>0)for(let S=0;S<A;S++){const M=[h,d];w.forEach(N=>{M.push(N[S]||null)});const P=this.getRow(S+1);P.splice.apply(P,M)}else this._rows.forEach(S=>{S&&S.splice(h,d)});const C=w.length-d,k=h+d,T=this._columns.length;if(C<0)for(let S=h+w.length;S<=T;S++)this.getColumn(S).defn=this.getColumn(S-C).defn;else if(C>0)for(let S=T;S>=k;S--)this.getColumn(S+C).defn=this.getColumn(S).defn;for(let S=h;S<h+w.length;S++)this.getColumn(S).defn=null;this.workbook.definedNames.spliceColumns(this.name,h,d,w.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let h=0;return this.eachRow(d=>{h=Math.max(h,d.cellCount)}),h}get actualColumnCount(){const h=[];let d=0;return this.eachRow(A=>{A.eachCell(v=>{let{col:w}=v;h[w]||(h[w]=!0,d++)})}),d}_commitRow(){}get _lastRowNumber(){const h=this._rows;let d=h.length;for(;d>0&&h[d-1]===void 0;)d--;return d}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(h){return this._rows[h-1]}findRows(h,d){return this._rows.slice(h-1,h-1+d)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let h=0;return this.eachRow(()=>{h++}),h}getRow(h){let d=this._rows[h-1];return d||(d=this._rows[h-1]=new f(this,h)),d}getRows(h,d){if(d<1)return;const A=[];for(let v=h;v<h+d;v++)A.push(this.getRow(v));return A}addRow(h){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const A=this._nextRow,v=this.getRow(A);return v.values=h,this._setStyleOption(A,d[0]==="i"?d:"n"),v}addRows(h){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const A=[];return h.forEach(v=>{A.push(this.addRow(v,d))}),A}insertRow(h,d){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(h,0,d),this._setStyleOption(h,A),this.getRow(h)}insertRows(h,d){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(h,0,...d),A!=="n")for(let v=0;v<d.length;v++)A[0]==="o"&&this.findRow(d.length+h+v)!==void 0?this._copyStyle(d.length+h+v,h+v,A[1]==="+"):A[0]==="i"&&this.findRow(h-1)!==void 0&&this._copyStyle(h-1,h+v,A[1]==="+");return this.getRows(h,d.length)}_setStyleOption(h){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";d[0]==="o"&&this.findRow(h+1)!==void 0?this._copyStyle(h+1,h,d[1]==="+"):d[0]==="i"&&this.findRow(h-1)!==void 0&&this._copyStyle(h-1,h,d[1]==="+")}_copyStyle(h,d){let A=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const v=this.getRow(h),w=this.getRow(d);w.style=y(v.style),v.eachCell({includeEmpty:A},(x,C)=>{w.getCell(C).style=y(x.style)}),w.height=v.height}duplicateRow(h,d){let A=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const v=this._rows[h-1],w=new Array(d).fill(v.values);this.spliceRows(h+1,A?0:d,...w);for(let x=0;x<d;x++){const C=this._rows[h+x];C.style=v.style,C.height=v.height,v.eachCell({includeEmpty:!0},(k,T)=>{C.getCell(T).style=k.style})}}spliceRows(h,d){const A=h+d;for(var v=arguments.length,w=new Array(v>2?v-2:0),x=2;x<v;x++)w[x-2]=arguments[x];const C=w.length,k=C-d,T=this._rows.length;let S,M;if(k<0)for(h===T&&(this._rows[T-1]=void 0),S=A;S<=T;S++)if(M=this._rows[S-1],M){const P=this.getRow(S+k);P.values=M.values,P.style=M.style,P.height=M.height,M.eachCell({includeEmpty:!0},(N,B)=>{P.getCell(B).style=N.style}),this._rows[S-1]=void 0}else this._rows[S+k-1]=void 0;else if(k>0)for(S=T;S>=A;S--)if(M=this._rows[S-1],M){const P=this.getRow(S+k);P.values=M.values,P.style=M.style,P.height=M.height,M.eachCell({includeEmpty:!0},(N,B)=>{if(P.getCell(B).style=N.style,N._value.constructor.name==="MergeValue"){const O=this.getRow(N._row._number+C).getCell(B),I=N._value._master,F=this.getRow(I._row._number+C).getCell(I._column._number);O.merge(F)}})}else this._rows[S+k-1]=void 0;for(S=0;S<C;S++){const P=this.getRow(h+S);P.style={},P.values=w[S]}this.workbook.definedNames.spliceRows(this.name,h,d,C)}eachRow(h,d){if(d||(d=h,h=void 0),h&&h.includeEmpty){const A=this._rows.length;for(let v=1;v<=A;v++)d(this.getRow(v),v)}else this._rows.forEach(A=>{A&&A.hasValues&&d(A,A.number)})}getSheetValues(){const h=[];return this._rows.forEach(d=>{d&&(h[d.number]=d.values)}),h}findCell(h,d){const A=c.getAddress(h,d),v=this._rows[A.row-1];return v?v.findCell(A.col):void 0}getCell(h,d){const A=c.getAddress(h,d);return this.getRow(A.row).getCellEx(A)}mergeCells(){for(var h=arguments.length,d=new Array(h),A=0;A<h;A++)d[A]=arguments[A];const v=new u(d);this._mergeCellsInternal(v)}mergeCellsWithoutStyle(){for(var h=arguments.length,d=new Array(h),A=0;A<h;A++)d[A]=arguments[A];const v=new u(d);this._mergeCellsInternal(v,!0)}_mergeCellsInternal(h,d){t.each(this._merges,v=>{if(v.intersects(h))throw new Error("Cannot merge already merged cells")});const A=this.getCell(h.top,h.left);for(let v=h.top;v<=h.bottom;v++)for(let w=h.left;w<=h.right;w++)(v>h.top||w>h.left)&&this.getCell(v,w).merge(A,d);this._merges[A.address]=h}_unMergeMaster(h){const d=this._merges[h.address];if(d){for(let A=d.top;A<=d.bottom;A++)for(let v=d.left;v<=d.right;v++)this.getCell(A,v).unmerge();delete this._merges[h.address]}}get hasMerges(){return t.some(this._merges,Boolean)}unMergeCells(){for(var h=arguments.length,d=new Array(h),A=0;A<h;A++)d[A]=arguments[A];const v=new u(d);for(let w=v.top;w<=v.bottom;w++)for(let x=v.left;x<=v.right;x++){const C=this.findCell(w,x);C&&(C.type===l.ValueType.Merge?this._unMergeMaster(C.master):this._merges[C.address]&&this._unMergeMaster(C))}}fillFormula(h,d,A){let v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const w=c.decode(h),{top:x,left:C,bottom:k,right:T}=w,S=T-C+1,M=c.encodeAddress(x,C),P=v==="shared";let N;N=typeof A=="function"?A:Array.isArray(A)?Array.isArray(A[0])?(O,I)=>A[O-x][I-C]:(O,I)=>A[(O-x)*S+(I-C)]:()=>{};let B=!0;for(let O=x;O<=k;O++)for(let I=C;I<=T;I++)B?(this.getCell(O,I).value={shareType:v,formula:d,ref:h,result:N(O,I)},B=!1):this.getCell(O,I).value=P?{sharedFormula:M,result:N(O,I)}:N(O,I)}addImage(h,d){const A={type:"image",imageId:h,range:d};this._media.push(new g(this,A))}getImages(){return this._media.filter(h=>h.type==="image")}addBackgroundImage(h){const d={type:"background",imageId:h};this._media.push(new g(this,d))}getBackgroundImageId(){const h=this._media.find(d=>d.type==="background");return h&&h.imageId}protect(h,d){return new Promise(A=>{this.sheetProtection={sheet:!0},d&&"spinCount"in d&&(d.spinCount=Number.isFinite(d.spinCount)?Math.round(Math.max(0,d.spinCount)):1e5),h&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=_.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=d&&"spinCount"in d?d.spinCount:1e5,this.sheetProtection.hashValue=_.convertPasswordToHash(h,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),d&&(this.sheetProtection=Object.assign(this.sheetProtection,d),!h&&"spinCount"in d&&delete this.sheetProtection.spinCount),A()})}unprotect(){this.sheetProtection=null}addTable(h){const d=new m(this,h);return this.tables[h.name]=d,d}getTable(h){return this.tables[h]}removeTable(h){delete this.tables[h]}getTables(){return Object.values(this.tables)}addConditionalFormatting(h){this.conditionalFormattings.push(h)}removeConditionalFormatting(h){typeof h=="number"?this.conditionalFormattings.splice(h,1):this.conditionalFormattings=h instanceof Function?this.conditionalFormattings.filter(h):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(h){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=h}get model(){const h={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(v=>v.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(v=>v.model),conditionalFormattings:this.conditionalFormattings};h.cols=o.toModel(this.columns);const d=h.rows=[],A=h.dimensions=new u;return this._rows.forEach(v=>{const w=v&&v.model;w&&(A.expand(w.number,w.min,w.number,w.max),d.push(w))}),h.merges=[],t.each(this._merges,v=>{h.merges.push(v.range)}),h}_parseRows(h){this._rows=[],h.rows.forEach(d=>{const A=new f(this,d.number);this._rows[A.number-1]=A,A.model=d})}_parseMergeCells(h){t.each(h.mergeCells,d=>{this.mergeCellsWithoutStyle(d)})}set model(h){this.name=h.name,this._columns=o.fromModel(this,h.cols),this._parseRows(h),this._parseMergeCells(h),this.dataValidations=new p(h.dataValidations),this.properties=h.properties,this.pageSetup=h.pageSetup,this.headerFooter=h.headerFooter,this.views=h.views,this.autoFilter=h.autoFilter,this._media=h.media.map(d=>new g(this,d)),this.sheetProtection=h.sheetProtection,this.tables=h.tables.reduce((d,A)=>{const v=new m;return v.model=A,d[A.name]=v,d},{}),this.conditionalFormattings=h.conditionalFormattings}}},{"../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(r,i,n){r("core-js/modules/es.promise"),r("core-js/modules/es.promise.finally"),r("core-js/modules/es.object.assign"),r("core-js/modules/es.object.keys"),r("core-js/modules/es.object.values"),r("core-js/modules/es.symbol"),r("core-js/modules/es.symbol.async-iterator"),r("core-js/modules/es.array.iterator"),r("core-js/modules/es.array.includes"),r("core-js/modules/es.array.find-index"),r("core-js/modules/es.array.find"),r("core-js/modules/es.string.from-code-point"),r("core-js/modules/es.string.includes"),r("core-js/modules/es.number.is-nan"),r("regenerator-runtime/runtime");const t={Workbook:r("./doc/workbook")},c=r("./doc/enums");Object.keys(c).forEach(u=>{t[u]=c[u]}),i.exports=t},{"./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(r,i,n){const t=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");n.bufferToString=function(c){return typeof c=="string"?c:t?t.decode(c):c.toString()}},{}],17:[function(r,i,n){const t=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:c}=r("buffer");n.stringToBuffer=function(u){return typeof u!="string"?u:t?c.from(t.encode(u).buffer):c.from(u)}},{buffer:220}],18:[function(r,i,n){const t=r("./under-dash"),c=r("./col-cache");i.exports=class{constructor(u){this.template=u,this.sheets={}}addCell(u){this.addCellEx(c.decodeEx(u))}getCell(u){return this.findCellEx(c.decodeEx(u),!0)}findCell(u){return this.findCellEx(c.decodeEx(u),!1)}findCellAt(u,f,o){const l=this.sheets[u],g=l&&l[f];return g&&g[o]}addCellEx(u){if(u.top)for(let f=u.top;f<=u.bottom;f++)for(let o=u.left;o<=u.right;o++)this.getCellAt(u.sheetName,f,o);else this.findCellEx(u,!0)}getCellEx(u){return this.findCellEx(u,!0)}findCellEx(u,f){const o=this.findSheet(u,f),l=this.findSheetRow(o,u,f);return this.findRowCell(l,u,f)}getCellAt(u,f,o){const l=this.sheets[u]||(this.sheets[u]=[]),g=l[f]||(l[f]=[]);return g[o]||(g[o]={sheetName:u,address:c.n2l(o)+f,row:f,col:o})}removeCellEx(u){const f=this.findSheet(u);if(!f)return;const o=this.findSheetRow(f,u);o&&delete o[u.col]}forEachInSheet(u,f){const o=this.sheets[u];o&&o.forEach((l,g)=>{l&&l.forEach((m,p)=>{m&&f(m,g,p)})})}forEach(u){t.each(this.sheets,(f,o)=>{this.forEachInSheet(o,u)})}map(u){const f=[];return this.forEach(o=>{f.push(u(o))}),f}findSheet(u,f){const o=u.sheetName;return this.sheets[o]?this.sheets[o]:f?this.sheets[o]=[]:void 0}findSheetRow(u,f,o){const{row:l}=f;return u&&u[l]?u[l]:o?u[l]=[]:void 0}findRowCell(u,f,o){const{col:l}=f;return u&&u[l]?u[l]:o?u[l]=this.template?Object.assign(f,JSON.parse(JSON.stringify(this.template))):f:void 0}spliceRows(u,f,o,l){const g=this.sheets[u];if(g){const m=[];for(let p=0;p<l;p++)m.push([]);g.splice(f,o,...m)}}spliceColumns(u,f,o,l){const g=this.sheets[u];if(g){const m=[];for(let p=0;p<l;p++)m.push(null);t.each(g,p=>{p.splice(f,o,...m)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(r,i,n){const t=/^[A-Z]+\d+$/,c={_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:u=>u<=26?1:u<=676?2:3,_fill(u){let f,o,l,g,m,p=1;if(u>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&u>=1){for(;p<=26;)f=this._dictionary[p-1],this._n2l[p]=f,this._l2n[f]=p,p++;this._l2nFill=1}if(this._l2nFill<2&&u>=2){for(p=27;p<=702;)o=p-27,l=o%26,g=Math.floor(o/26),f=this._dictionary[g]+this._dictionary[l],this._n2l[p]=f,this._l2n[f]=p,p++;this._l2nFill=2}if(this._l2nFill<3&&u>=3){for(p=703;p<=16384;)o=p-703,l=o%26,g=Math.floor(o/26)%26,m=Math.floor(o/676),f=this._dictionary[m]+this._dictionary[g]+this._dictionary[l],this._n2l[p]=f,this._l2n[f]=p,p++;this._l2nFill=3}},l2n(u){if(this._l2n[u]||this._fill(u.length),!this._l2n[u])throw new Error("Out of bounds. Invalid column letter: "+u);return this._l2n[u]},n2l(u){if(u<1||u>16384)throw new Error(u+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[u]||this._fill(this._level(u)),this._n2l[u]},_hash:{},validateAddress(u){if(!t.test(u))throw new Error("Invalid Address: "+u);return!0},decodeAddress(u){const f=u.length<5&&this._hash[u];if(f)return f;let o=!1,l="",g=0,m=!1,p="",_=0;for(let h,d=0;d<u.length;d++)if(h=u.charCodeAt(d),!m&&h>=65&&h<=90)o=!0,l+=u[d],g=26*g+h-64;else if(h>=48&&h<=57)m=!0,p+=u[d],_=10*_+h-48;else if(m&&o&&h!==36)break;if(o){if(g>16384)throw new Error("Out of bounds. Invalid column letter: "+l)}else g=void 0;m||(_=void 0);const y={address:u=l+p,col:g,row:_,$col$row:`$${l}$${p}`};return g<=100&&_<=100&&(this._hash[u]=y,this._hash[y.$col$row]=y),y},getAddress(u,f){if(f){const o=this.n2l(f)+u;return this.decodeAddress(o)}return this.decodeAddress(u)},decode(u){const f=u.split(":");if(f.length===2){const o=this.decodeAddress(f[0]),l=this.decodeAddress(f[1]),g={top:Math.min(o.row,l.row),left:Math.min(o.col,l.col),bottom:Math.max(o.row,l.row),right:Math.max(o.col,l.col)};return g.tl=this.n2l(g.left)+g.top,g.br=this.n2l(g.right)+g.bottom,g.dimensions=`${g.tl}:${g.br}`,g}return this.decodeAddress(u)},decodeEx(u){const f=u.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),o=f[1]||f[2],l=f[3],g=l.split(":");if(g.length>1){let p=this.decodeAddress(g[0]),_=this.decodeAddress(g[1]);const y=Math.min(p.row,_.row),h=Math.min(p.col,_.col),d=Math.max(p.row,_.row),A=Math.max(p.col,_.col);return p=this.n2l(h)+y,_=this.n2l(A)+d,{top:y,left:h,bottom:d,right:A,sheetName:o,tl:{address:p,col:h,row:y,$col$row:`$${this.n2l(h)}$${y}`,sheetName:o},br:{address:_,col:A,row:d,$col$row:`$${this.n2l(A)}$${d}`,sheetName:o},dimensions:`${p}:${_}`}}if(l.startsWith("#"))return o?{sheetName:o,error:l}:{error:l};const m=this.decodeAddress(l);return o?{sheetName:o,...m}:m},encodeAddress:(u,f)=>c.n2l(f)+u,encode(){switch(arguments.length){case 2:return c.encodeAddress(arguments[0],arguments[1]);case 4:return`${c.encodeAddress(arguments[0],arguments[1])}:${c.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(u,f){const[o,l,,g,m]=u,[p,_]=f;return p>=o&&p<=g&&_>=l&&_<=m}};i.exports=c},{}],20:[function(r,i,n){const t=(u,f)=>({...u,...f.reduce((o,l)=>(u[l]&&(o[l]={...u[l]}),o),{})}),c=function(u,f,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];u[o]&&(f[o]=t(u[o],l))};n.copyStyle=u=>{if(!u)return u;if(f=u,Object.keys(f).length===0)return{};var f;const o={...u};return c(u,o,"font",["color"]),c(u,o,"alignment"),c(u,o,"protection"),u.border&&(c(u,o,"border"),c(u.border,o.border,"top",["color"]),c(u.border,o.border,"left",["color"]),c(u.border,o.border,"bottom",["color"]),c(u.border,o.border,"right",["color"]),c(u.border,o.border,"diagonal",["color"])),u.fill&&(c(u,o,"fill",["fgColor","bgColor","center"]),u.fill.stops&&(o.fill.stops=u.fill.stops.map(l=>t(l,["color"])))),o}},{}],21:[function(r,i,n){(function(t){(function(){const c=r("crypto"),u={hash(f){const o=c.createHash(f);for(var l=arguments.length,g=new Array(l>1?l-1:0),m=1;m<l;m++)g[m-1]=arguments[m];return o.update(t.concat(g)),o.digest()},convertPasswordToHash(f,o,l,g){if(o=o.toLowerCase(),c.getHashes().indexOf(o)<0)throw new Error(`Hash algorithm '${o}' not supported!`);const m=t.from(f,"utf16le");let p=this.hash(o,t.from(l,"base64"),m);for(let _=0;_<g;_++){const y=t.alloc(4);y.writeUInt32LE(_,0),p=this.hash(o,p,y)}return p.toString("base64")},randomBytes:f=>c.randomBytes(f)};i.exports=u}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(r,i,n){const{SaxesParser:t}=r("saxes"),{PassThrough:c}=r("readable-stream"),{bufferToString:u}=r("./browser-buffer-decode");i.exports=async function*(f){f.pipe&&!f[Symbol.asyncIterator]&&(f=f.pipe(new c));const o=new t;let l;o.on("error",m=>{l=m});let g=[];o.on("opentag",m=>g.push({eventType:"opentag",value:m})),o.on("text",m=>g.push({eventType:"text",value:m})),o.on("closetag",m=>g.push({eventType:"closetag",value:m}));for await(const m of f){if(o.write(u(m)),l)throw l;yield g,g=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(r,i,n){const t=r("./col-cache"),c=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,u=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;i.exports={slideFormula:function(f,o,l){const g=t.decode(o),m=t.decode(l);return f.replace(c,(p,_,y,h,d)=>{if(d)return p;const A=u.exec(h);if(A){const v=A[1],w=A[2].toUpperCase(),x=A[3],C=A[4];if(w.length>3||w.length===3&&w>"XFD")return p;let k=t.l2n(w),T=parseInt(C,10);return v||(k+=m.col-g.col),x||(T+=m.row-g.row),(_||"")+(v||"")+t.n2l(k)+(x||"")+T}return p})}}},{"./col-cache":19}],24:[function(r,i,n){(function(t,c){(function(){const u=r("readable-stream"),f=r("./utils"),o=r("./string-buf");class l{constructor(h,d){this._data=h,this._encoding=d}get length(){return this.toBuffer().length}copy(h,d,A,v){return this.toBuffer().copy(h,d,A,v)}toBuffer(){return this._buffer||(this._buffer=c.from(this._data,this._encoding)),this._buffer}}class g{constructor(h){this._data=h}get length(){return this._data.length}copy(h,d,A,v){return this._data._buf.copy(h,d,A,v)}toBuffer(){return this._data.toBuffer()}}class m{constructor(h){this._data=h}get length(){return this._data.length}copy(h,d,A,v){this._data.copy(h,d,A,v)}toBuffer(){return this._data}}class p{constructor(h){this.size=h,this.buffer=c.alloc(h),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const h=c.alloc(this.iWrite-this.iRead);return this.buffer.copy(h,0,this.iRead,this.iWrite),h}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(h){let d;return h===0?null:h===void 0||h>=this.length?(d=this.toBuffer(),this.iRead=this.iWrite,d):(d=c.alloc(h),this.buffer.copy(d,0,this.iRead,h),this.iRead+=h,d)}write(h,d,A){const v=Math.min(A,this.size-this.iWrite);return h.copy(this.buffer,this.iWrite,d,d+v),this.iWrite+=v,v}}const _=function(y){y=y||{},this.bufSize=y.bufSize||1048576,this.buffers=[],this.batch=y.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};f.inherits(_,u.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return c.concat(this.buffers.map(y=>y.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const h=this.buffers[this.buffers.length-1];if(!h.full)return h}const y=new p(this.bufSize);return this.buffers.push(y),y},async _pipe(y){await Promise.all(this.pipes.map((function(h){return new Promise(d=>{h.write(y.toBuffer(),()=>{d()})})})))},_writeToBuffers(y){let h=0;const d=y.length;for(;h<d;)h+=this._getWritableBuffer().write(y,h,d-h)},async write(y,h,d){let A;if(h instanceof Function&&(d=h,h="utf8"),d=d||f.nop,y instanceof o)A=new g(y);else if(y instanceof c)A=new m(y);else{if(!(typeof y=="string"||y instanceof String||y instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");A=new l(y,h)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(A);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(A),t.nextTick(d)):(await this._pipe(A),d());else this.paused||this.emit("data",A.toBuffer()),this._writeToBuffers(A),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(y,h,d){const A=v=>{v?d(v):(this._flush(),this.pipes.forEach(w=>{w.end()}),this.emit("finish"))};y?this.write(y,h,A):A()},read(y){let h;if(y){for(h=[];y&&this.buffers.length&&!this.buffers[0].eod;){const d=this.buffers[0],A=d.read(y);y-=A.length,h.push(A),d.eod&&d.full&&this.buffers.shift()}return c.concat(h)}return h=this.buffers.map(d=>d.toBuffer()).filter(Boolean),this.buffers=[],c.concat(h)},setEncoding(y){this.encoding=y},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(y){this.pipes.push(y),!this.paused&&this.buffers.length&&this.end()},unpipe(y){this.pipes=this.pipes.filter(h=>h!==y)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),i.exports=_}).call(this)}).call(this,r("_process"),r("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(r,i,n){(function(t){(function(){i.exports=class{constructor(c){this._buf=t.alloc(c&&c.size||16384),this._encoding=c&&c.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=t.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(c){c=c||0,this._buffer=void 0,this._inPos=c}_grow(c){let u=2*this._buf.length;for(;u<c;)u*=2;const f=t.alloc(u);this._buf.copy(f,0),this._buf=f}addText(c){this._buffer=void 0;let u=this._inPos+this._buf.write(c,this._inPos,this._encoding);for(;u>=this._buf.length-4;)this._grow(this._inPos+c.length),u=this._inPos+this._buf.write(c,this._inPos,this._encoding);this._inPos=u}addStringBuf(c){c.length&&(this._buffer=void 0,this.length+c.length>this.capacity&&this._grow(this.length+c.length),c._buf.copy(this._buf,this._inPos,0,c.length),this._inPos+=c.length)}}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220}],26:[function(r,i,n){const{toString:t}=Object.prototype,c=/["&<>]/,u={each:function(f,o){f&&(Array.isArray(f)?f.forEach(o):Object.keys(f).forEach(l=>{o(f[l],l)}))},some:function(f,o){return!!f&&(Array.isArray(f)?f.some(o):Object.keys(f).some(l=>o(f[l],l)))},every:function(f,o){return!f||(Array.isArray(f)?f.every(o):Object.keys(f).every(l=>o(f[l],l)))},map:function(f,o){return f?Array.isArray(f)?f.map(o):Object.keys(f).map(l=>o(f[l],l)):[]},keyBy:(f,o)=>f.reduce((l,g)=>(l[g[o]]=g,l),{}),isEqual:function(f,o){const l=typeof f,g=typeof o,m=Array.isArray(f),p=Array.isArray(o);let _;if(l!==g)return!1;switch(typeof f){case"object":if(m||p)return!(!m||!p)&&f.length===o.length&&f.every((y,h)=>{const d=o[h];return u.isEqual(y,d)});if(f===null||o===null)return f===o;if(_=Object.keys(f),Object.keys(o).length!==_.length)return!1;for(const y of _)if(!o.hasOwnProperty(y))return!1;return u.every(f,(y,h)=>{const d=o[h];return u.isEqual(y,d)});default:return f===o}},escapeHtml(f){const o=c.exec(f);if(!o)return f;let l="",g="",m=0,p=o.index;for(;p<f.length;p++){switch(f.charAt(p)){case'"':g="&quot;";break;case"&":g="&amp;";break;case"'":g="&apos;";break;case"<":g="&lt;";break;case">":g="&gt;";break;default:continue}m!==p&&(l+=f.substring(m,p)),m=p+1,l+=g}return m!==p?l+f.substring(m,p):l},strcmp:(f,o)=>f<o?-1:f>o?1:0,isUndefined:f=>t.call(f)==="[object Undefined]",isObject:f=>t.call(f)==="[object Object]",deepMerge(){const f=arguments[0]||{},{length:o}=arguments;let l,g,m;function p(_,y){l=f[y],m=Array.isArray(_),u.isObject(_)||m?(m?(m=!1,g=l&&Array.isArray(l)?l:[]):g=l&&u.isObject(l)?l:{},f[y]=u.deepMerge(g,_)):u.isUndefined(_)||(f[y]=_)}for(let _=0;_<o;_++)u.each(arguments[_],p);return f}};i.exports=u},{}],27:[function(r,i,n){(function(t,c){(function(){const u=r("fs"),f=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop(){},promiseImmediate:l=>new Promise(g=>{t.setImmediate?c(()=>{g(l)}):setTimeout(()=>{g(l)},1)}),inherits:function(l,g,m,p){l.super_=g,p||(p=m,m=null),m&&Object.keys(m).forEach(y=>{Object.defineProperty(l,y,Object.getOwnPropertyDescriptor(m,y))});const _={constructor:{value:l,enumerable:!1,writable:!1,configurable:!0}};p&&Object.keys(p).forEach(y=>{_[y]=Object.getOwnPropertyDescriptor(p,y)}),l.prototype=Object.create(g.prototype,_)},dateToExcel:(l,g)=>25569+l.getTime()/864e5-(g?1462:0),excelToDate(l,g){const m=Math.round(24*(l-25569+(g?1462:0))*3600*1e3);return new Date(m)},parsePath(l){const g=l.lastIndexOf("/");return{path:l.substring(0,g),name:l.substring(g+1)}},getRelsPath(l){const g=o.parsePath(l);return`${g.path}/_rels/${g.name}.rels`},xmlEncode(l){const g=f.exec(l);if(!g)return l;let m="",p="",_=0,y=g.index;for(;y<l.length;y++){const h=l.charCodeAt(y);switch(h){case 34:p="&quot;";break;case 38:p="&amp;";break;case 39:p="&apos;";break;case 60:p="&lt;";break;case 62:p="&gt;";break;case 127:p="";break;default:if(h<=31&&(h<=8||h>=11&&h!==13)){p="";break}continue}_!==y&&(m+=l.substring(_,y)),_=y+1,p&&(m+=p)}return _!==y?m+l.substring(_,y):m},xmlDecode:l=>l.replace(/&([a-z]*);/g,g=>{switch(g){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return g}}),validInt(l){const g=parseInt(l,10);return Number.isNaN(g)?0:g},isDateFmt(l){return l?(l=(l=l.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:l=>new Promise(g=>{u.access(l,u.constants.F_OK,m=>{g(!m)})})},toIsoDateString:l=>l.toIsoString().subsstr(0,10),parseBoolean:l=>l===!0||l==="true"||l===1||l==="1"};i.exports=o}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{},r("timers").setImmediate)},{fs:216,timers:523}],28:[function(r,i,n){const t=r("./under-dash"),c=r("./utils");function u(l,g,m){l.push(` ${g}="${c.xmlEncode(m.toString())}"`)}function f(l,g){if(g){const m=[];t.each(g,(p,_)=>{p!==void 0&&u(m,_,p)}),l.push(m.join(""))}}class o{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(g){const m=this._xml;m.push("<?xml"),f(m,g),m.push(`?>
`)}openNode(g,m){const p=this.tos,_=this._xml;p&&this.open&&_.push(">"),this._stack.push(g),_.push("<"),_.push(g),f(_,m),this.leaf=!0,this.open=!0}addAttribute(g,m){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");m!==void 0&&u(this._xml,g,m)}addAttributes(g){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");f(this._xml,g)}writeText(g){const m=this._xml;this.open&&(m.push(">"),this.open=!1),this.leaf=!1,m.push(c.xmlEncode(g.toString()))}writeXml(g){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(g)}closeNode(){const g=this._stack.pop(),m=this._xml;this.leaf?m.push("/>"):(m.push("</"),m.push(g),m.push(">")),this.open=!1,this.leaf=!1}leafNode(g,m,p){this.openNode(g,m),p!==void 0&&this.writeText(p),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const g=this._rollbacks.pop();this._xml.length>g.xml&&this._xml.splice(g.xml,this._xml.length-g.xml),this._stack.length>g.stack&&this._stack.splice(g.stack,this._stack.length-g.stack),this.leaf=g.leaf,this.open=g.open}get xml(){return this.closeAll(),this._xml.join("")}}o.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},i.exports=o},{"./under-dash":26,"./utils":27}],29:[function(r,i,n){(function(t){(function(){const c=r("events"),u=r("jszip"),f=r("./stream-buf"),{stringToBuffer:o}=r("./browser-buffer-encode");class l extends c.EventEmitter{constructor(m){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},m),this.zip=new u,this.stream=new f}append(m,p){p.hasOwnProperty("base64")&&p.base64?this.zip.file(p.name,m,{base64:!0}):(t.browser&&typeof m=="string"&&(m=o(m)),this.zip.file(p.name,m))}async finalize(){const m=await this.zip.generateAsync(this.options);this.stream.end(m),this.emit("finish")}read(m){return this.stream.read(m)}setEncoding(m){return this.stream.setEncoding(m)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(m,p){return this.stream.pipe(m,p)}unpipe(m){return this.stream.unpipe(m)}unshift(m){return this.stream.unshift(m)}wrap(m){return this.stream.wrap(m)}}i.exports={ZipWriter:l}}).call(this)}).call(this,r("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(r,i,n){i.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(r,i,n){i.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(r,i,n){const t=r("../../utils/parse-sax"),c=r("../../utils/xml-stream");class u{prepare(){}render(){}parseOpen(o){}parseText(o){}parseClose(o){}reconcile(o,l){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(o=>{o instanceof u?o.reset():o.xform&&o.xform.reset()})}mergeModel(o){this.model=Object.assign(this.model||{},o)}async parse(o){for await(const l of o)for(const{eventType:g,value:m}of l)if(g==="opentag")this.parseOpen(m);else if(g==="text")this.parseText(m);else if(g==="closetag"&&!this.parseClose(m.name))return this.model;return this.model}async parseStream(o){return this.parse(t(o))}get xml(){return this.toXml(this.model)}toXml(o){const l=new c;return this.render(l,o),l.xml}static toAttribute(o,l){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(o===void 0){if(g)return l}else if(g||o!==l)return o.toString()}static toStringAttribute(o,l){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(o,l,g)}static toStringValue(o,l){return o===void 0?l:o}static toBoolAttribute(o,l){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(o===void 0){if(g)return l}else if(g||o!==l)return o?"1":"0"}static toBoolValue(o,l){return o===void 0?l:o==="1"}static toIntAttribute(o,l){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(o,l,g)}static toIntValue(o,l){return o===void 0?l:parseInt(o,10)}static toFloatAttribute(o,l){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return u.toAttribute(o,l,g)}static toFloatValue(o,l){return o===void 0?l:parseFloat(o)}}i.exports=u},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(r,i,n){const t=r("../base-xform"),c=r("../../../utils/col-cache");function u(o){try{return c.decodeEx(o),!0}catch{return!1}}function f(o){const l=[];let g=!1,m="";return o.split(",").forEach(p=>{if(!p)return;const _=(p.match(/'/g)||[]).length;if(!_)return void(g?m+=p+",":u(p)&&l.push(p));const y=_%2==0;!g&&y&&u(p)?l.push(p):g&&!y?(g=!1,u(m+p)&&l.push(m+p),m=""):(g=!0,m+=p+",")}),l}i.exports=class extends t{render(o,l){o.openNode("definedName",{name:l.name,localSheetId:l.localSheetId}),o.writeText(l.ranges.join(",")),o.closeNode()}parseOpen(o){switch(o.name){case"definedName":return this._parsedName=o.attributes.name,this._parsedLocalSheetId=o.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(o){this._parsedText.push(o)}parseClose(){return this.model={name:this._parsedName,ranges:f(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(r,i,n){const t=r("../../../utils/utils"),c=r("../base-xform");i.exports=class extends c{render(u,f){u.leafNode("sheet",{sheetId:f.id,name:f.name,state:f.state,"r:id":f.rId})}parseOpen(u){return u.name==="sheet"&&(this.model={name:t.xmlDecode(u.attributes.name),id:parseInt(u.attributes.sheetId,10),state:u.attributes.state,rId:u.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{render(c,u){c.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:u.fullCalcOnLoad?1:void 0})}parseOpen(c){return c.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{render(c,u){c.leafNode("workbookPr",{date1904:u.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(c){return c.name==="workbookPr"&&(this.model={date1904:c.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{render(c,u){const f={xWindow:u.x||0,yWindow:u.y||0,windowWidth:u.width||12e3,windowHeight:u.height||24e3,firstSheet:u.firstSheet,activeTab:u.activeTab};u.visibility&&u.visibility!=="visible"&&(f.visibility=u.visibility),c.leafNode("workbookView",f)}parseOpen(c){if(c.name==="workbookView"){const u=this.model={},f=function(l,g,m){const p=g!==void 0?u[l]=g:m;p!==void 0&&(u[l]=p)},o=function(l,g,m){const p=g!==void 0?u[l]=parseInt(g,10):m;p!==void 0&&(u[l]=p)};return o("x",c.attributes.xWindow,0),o("y",c.attributes.yWindow,0),o("width",c.attributes.windowWidth,25e3),o("height",c.attributes.windowHeight,1e4),f("visibility",c.attributes.visibility,"visible"),o("activeTab",c.attributes.activeTab,void 0),o("firstSheet",c.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../../../utils/col-cache"),u=r("../../../utils/xml-stream"),f=r("../base-xform"),o=r("../static-xform"),l=r("../list-xform"),g=r("./defined-name-xform"),m=r("./sheet-xform"),p=r("./workbook-view-xform"),_=r("./workbook-properties-xform"),y=r("./workbook-calc-properties-xform");class h extends f{constructor(){super(),this.map={fileVersion:h.STATIC_XFORMS.fileVersion,workbookPr:new _,bookViews:new l({tag:"bookViews",count:!1,childXform:new p}),sheets:new l({tag:"sheets",count:!1,childXform:new m}),definedNames:new l({tag:"definedNames",count:!1,childXform:new g}),calcPr:new y}}prepare(A){A.sheets=A.worksheets;const v=[];let w=0;A.sheets.forEach(x=>{if(x.pageSetup&&x.pageSetup.printArea&&x.pageSetup.printArea.split("&&").forEach(C=>{const k=C.split(":"),T={name:"_xlnm.Print_Area",ranges:[`'${x.name}'!$${k[0]}:$${k[1]}`],localSheetId:w};v.push(T)}),x.pageSetup&&(x.pageSetup.printTitlesRow||x.pageSetup.printTitlesColumn)){const C=[];if(x.pageSetup.printTitlesColumn){const T=x.pageSetup.printTitlesColumn.split(":");C.push(`'${x.name}'!$${T[0]}:$${T[1]}`)}if(x.pageSetup.printTitlesRow){const T=x.pageSetup.printTitlesRow.split(":");C.push(`'${x.name}'!$${T[0]}:$${T[1]}`)}const k={name:"_xlnm.Print_Titles",ranges:C,localSheetId:w};v.push(k)}w++}),v.length&&(A.definedNames=A.definedNames.concat(v)),(A.media||[]).forEach((x,C)=>{x.name=x.type+(C+1)})}render(A,v){A.openXml(u.StdDocAttributes),A.openNode("workbook",h.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(A),this.map.workbookPr.render(A,v.properties),this.map.bookViews.render(A,v.views),this.map.sheets.render(A,v.sheets),this.map.definedNames.render(A,v.definedNames),this.map.calcPr.render(A,v.calcProperties),A.closeNode()}parseOpen(A){if(this.parser)return this.parser.parseOpen(A),!0;switch(A.name){case"workbook":return!0;default:return this.parser=this.map[A.name],this.parser&&this.parser.parseOpen(A),!0}}parseText(A){this.parser&&this.parser.parseText(A)}parseClose(A){if(this.parser)return this.parser.parseClose(A)||(this.parser=void 0),!0;switch(A){case"workbook":return 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;default:return!0}}reconcile(A){const v=(A.workbookRels||[]).reduce((T,S)=>(T[S.Id]=S,T),{}),w=[];let x,C=0;(A.sheets||[]).forEach(T=>{const S=v[T.rId];S&&(x=A.worksheetHash["xl/"+S.Target.replace(/^(\s|\/xl\/)+/,"")],x&&(x.name=T.name,x.id=T.id,x.state=T.state,w[C++]=x))});const k=[];t.each(A.definedNames,T=>{if(T.name==="_xlnm.Print_Area"){if(x=w[T.localSheetId],x){x.pageSetup||(x.pageSetup={});const S=c.decodeEx(T.ranges[0]);x.pageSetup.printArea=x.pageSetup.printArea?`${x.pageSetup.printArea}&&${S.dimensions}`:S.dimensions}}else if(T.name==="_xlnm.Print_Titles"){if(x=w[T.localSheetId],x){x.pageSetup||(x.pageSetup={});const S=T.ranges.join(","),M=/\$/g,P=/\$\d+:\$\d+/,N=S.match(P);if(N&&N.length){const I=N[0];x.pageSetup.printTitlesRow=I.replace(M,"")}const B=/\$[A-Z]+:\$[A-Z]+/,O=S.match(B);if(O&&O.length){const I=O[0];x.pageSetup.printTitlesColumn=I.replace(M,"")}}}else k.push(T)}),A.definedNames=k,A.media.forEach((T,S)=>{T.index=S})}}h.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"},h.STATIC_XFORMS={fileVersion:new o({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},i.exports=h},{"../../../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(r,i,n){const t=r("../strings/rich-text-xform"),c=r("../../../utils/utils"),u=r("../base-xform"),f=i.exports=function(o){this.model=o};c.inherits(f,u,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new t),this._richTextXform},render(o,l){l=l||this.model,o.openNode("comment",{ref:l.ref,authorId:0}),o.openNode("text"),l&&l.note&&l.note.texts&&l.note.texts.forEach(g=>{this.richTextXform.render(o,g)}),o.closeNode(),o.closeNode()},parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"comment":return this.model={type:"note",note:{texts:[]},...o.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(o),!0;default:return!1}},parseText(o){this.parser&&this.parser.parseText(o)},parseClose(o){switch(o){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(o),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../../../utils/utils"),u=r("../base-xform"),f=r("./comment-xform"),o=i.exports=function(){this.map={comment:new f}};c.inherits(o,u,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(l,g){g=g||this.model,l.openXml(t.StdDocAttributes),l.openNode("comments",o.COMMENTS_ATTRIBUTES),l.openNode("authors"),l.leafNode("author",null,"Author"),l.closeNode(),l.openNode("commentList"),g.comments.forEach(m=>{this.map.comment.render(l,m)}),l.closeNode(),l.closeNode()},parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(l),!0;default:return!1}},parseText(l){this.parser&&this.parser.parseText(l)},parseClose(l){switch(l){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(l),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(r,i,n){const t=r("../../base-xform");i.exports=class extends t{constructor(c){super(),this._model=c}get tag(){return this._model&&this._model.tag}render(c,u,f){(u===f[2]||this.tag==="x:SizeWithCells"&&u===f[1])&&c.leafNode(this.tag)}parseOpen(c){switch(c.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(r,i,n){const t=r("../../base-xform");i.exports=class extends t{constructor(c){super(),this._model=c}get tag(){return this._model&&this._model.tag}render(c,u){c.leafNode(this.tag,null,u)}parseOpen(c){switch(c.name){case this.tag:return this.text="",!0;default:return!1}}parseText(c){this.text=c}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"x:Anchor"}getAnchorRect(c){const u=Math.floor(c.left),f=Math.floor(68*(c.left-u)),o=Math.floor(c.top),l=Math.floor(18*(c.top-o)),g=Math.floor(c.right),m=Math.floor(68*(c.right-g)),p=Math.floor(c.bottom);return[u,f,o,l,g,m,p,Math.floor(18*(c.bottom-p))]}getDefaultRect(c){const u=c.col,f=Math.max(c.row-2,0);return[u,6,f,14,u+2,2,f+4,16]}render(c,u){const f=u.anchor?this.getAnchorRect(u.anchor):this.getDefaultRect(u.refAddress);c.leafNode("x:Anchor",null,f.join(", "))}parseOpen(c){switch(c.name){case this.tag:return this.text="",!0;default:return!1}}parseText(c){this.text=c}parseClose(){return!1}}},{"../base-xform":32}],44:[function(r,i,n){const t=r("../base-xform"),c=r("./vml-anchor-xform"),u=r("./style/vml-protection-xform"),f=r("./style/vml-position-xform"),o=["twoCells","oneCells","absolute"];i.exports=class extends t{constructor(){super(),this.map={"x:Anchor":new c,"x:Locked":new u({tag:"x:Locked"}),"x:LockText":new u({tag:"x:LockText"}),"x:SizeWithCells":new f({tag:"x:SizeWithCells"}),"x:MoveWithCells":new f({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(l,g){const{protection:m,editAs:p}=g.note;l.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(l,p,o),this.map["x:SizeWithCells"].render(l,p,o),this.map["x:Anchor"].render(l,g),this.map["x:Locked"].render(l,m.locked),l.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(l,m.lockText),l.leafNode("x:Row",null,g.refAddress.row-1),l.leafNode("x:Column",null,g.refAddress.col-1),l.closeNode()}parseOpen(l){switch(l.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const l=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),g=Object.keys(l).length;this.model.editAs=o[g],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}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform"),u=r("./vml-shape-xform");class f extends c{constructor(){super(),this.map={"v:shape":new u}}get tag(){return"xml"}render(l,g){l.openXml(t.StdDocAttributes),l.openNode(this.tag,f.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(),g.comments.forEach((m,p)=>{this.map["v:shape"].render(l,m,p)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}reconcile(l,g){l.anchors.forEach(m=>{m.br?this.map["xdr:twoCellAnchor"].reconcile(m,g):this.map["xdr:oneCellAnchor"].reconcile(m,g)})}}f.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"},i.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(r,i,n){const t=r("../base-xform"),c=r("./vml-textbox-xform"),u=r("./vml-client-data-xform");class f extends t{constructor(){super(),this.map={"v:textbox":new c,"x:ClientData":new u}}get tag(){return"v:shape"}render(l,g,m){l.openNode("v:shape",f.V_SHAPE_ATTRIBUTES(g,m)),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,g),this.map["x:ClientData"].render(l,g),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset(),this.model={margins:{insetmode:l.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return 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;default:return!0}}}f.V_SHAPE_ATTRIBUTES=(o,l)=>({id:"_x0000_s"+(1025+l),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":o.note.margins&&o.note.margins.insetmode}),i.exports=f},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"v:textbox"}conversionUnit(c,u,f){return`${parseFloat(c)*u.toFixed(2)}${f}`}reverseConversionUnit(c){return(c||"").split(",").map(u=>Number(parseFloat(this.conversionUnit(parseFloat(u),.1,"")).toFixed(2)))}render(c,u){const f={style:"mso-direction-alt:auto"};if(u&&u.note){let{inset:o}=u.note&&u.note.margins;Array.isArray(o)&&(o=o.map(l=>this.conversionUnit(l,10,"mm")).join(",")),o&&(f.inset=o)}c.openNode("v:textbox",f),c.leafNode("div",{style:"text-align:left"}),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:return this.model={inset:this.reverseConversionUnit(c.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(r,i,n){const t=r("./base-xform");i.exports=class extends t{createNewModel(c){return{}}parseOpen(c){return this.parser=this.parser||this.map[c.name],this.parser?(this.parser.parseOpen(c),!0):c.name===this.tag&&(this.model=this.createNewModel(c),!0)}parseText(c){this.parser&&this.parser.parseText(c)}onParserClose(c,u){this.model[c]=u.model}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.onParserClose(c,this.parser),this.parser=void 0),!0):c!==this.tag}}},{"./base-xform":32}],49:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{render(c,u){c.openNode("HeadingPairs"),c.openNode("vt:vector",{size:2,baseType:"variant"}),c.openNode("vt:variant"),c.leafNode("vt:lpstr",void 0,"Worksheets"),c.closeNode(),c.openNode("vt:variant"),c.leafNode("vt:i4",void 0,u.length),c.closeNode(),c.closeNode(),c.closeNode()}parseOpen(c){return c.name==="HeadingPairs"}parseText(){}parseClose(c){return c!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{render(c,u){c.openNode("TitlesOfParts"),c.openNode("vt:vector",{size:u.length,baseType:"lpstr"}),u.forEach(f=>{c.leafNode("vt:lpstr",void 0,f.name)}),c.closeNode(),c.closeNode()}parseOpen(c){return c.name==="TitlesOfParts"}parseText(){}parseClose(c){return c!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform"),u=r("../simple/string-xform"),f=r("./app-heading-pairs-xform"),o=r("./app-titles-of-parts-xform");class l extends c{constructor(){super(),this.map={Company:new u({tag:"Company"}),Manager:new u({tag:"Manager"}),HeadingPairs:new f,TitleOfParts:new o}}render(m,p){m.openXml(t.StdDocAttributes),m.openNode("Properties",l.PROPERTY_ATTRIBUTES),m.leafNode("Application",void 0,"Microsoft Excel"),m.leafNode("DocSecurity",void 0,"0"),m.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(m,p.worksheets),this.map.TitleOfParts.render(m,p.worksheets),this.map.Company.render(m,p.company||""),this.map.Manager.render(m,p.manager),m.leafNode("LinksUpToDate",void 0,"false"),m.leafNode("SharedDoc",void 0,"false"),m.leafNode("HyperlinksChanged",void 0,"false"),m.leafNode("AppVersion",void 0,"16.0300"),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"Properties":return!0;default:return this.parser=this.map[m.name],!!this.parser&&(this.parser.parseOpen(m),!0)}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}l.DateFormat=function(g){return g.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},i.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform");class u extends c{render(o,l){o.openXml(t.StdDocAttributes),o.openNode("Types",u.PROPERTY_ATTRIBUTES);const g={};(l.media||[]).forEach(m=>{if(m.type==="image"){const p=m.extension;g[p]||(g[p]=!0,o.leafNode("Default",{Extension:p,ContentType:"image/"+p}))}}),o.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),o.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),o.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),l.worksheets.forEach(m=>{const p=`/xl/worksheets/sheet${m.id}.xml`;o.leafNode("Override",{PartName:p,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),o.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),o.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),l.sharedStrings&&l.sharedStrings.count&&o.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),l.tables&&l.tables.forEach(m=>{o.leafNode("Override",{PartName:"/xl/tables/"+m.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),l.drawings&&l.drawings.forEach(m=>{o.leafNode("Override",{PartName:`/xl/drawings/${m.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),l.commentRefs&&(o.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),l.commentRefs.forEach(m=>{let{commentName:p}=m;o.leafNode("Override",{PartName:`/xl/${p}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),o.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),o.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),o.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}u.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},i.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform"),u=r("../simple/date-xform"),f=r("../simple/string-xform"),o=r("../simple/integer-xform");class l extends c{constructor(){super(),this.map={"dc:creator":new f({tag:"dc:creator"}),"dc:title":new f({tag:"dc:title"}),"dc:subject":new f({tag:"dc:subject"}),"dc:description":new f({tag:"dc:description"}),"dc:identifier":new f({tag:"dc:identifier"}),"dc:language":new f({tag:"dc:language"}),"cp:keywords":new f({tag:"cp:keywords"}),"cp:category":new f({tag:"cp:category"}),"cp:lastModifiedBy":new f({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new u({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new o({tag:"cp:revision"}),"cp:version":new f({tag:"cp:version"}),"cp:contentStatus":new f({tag:"cp:contentStatus"}),"cp:contentType":new f({tag:"cp:contentType"}),"dcterms:created":new u({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new u({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(m,p){m.openXml(t.StdDocAttributes),m.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(m,p.creator),this.map["dc:title"].render(m,p.title),this.map["dc:subject"].render(m,p.subject),this.map["dc:description"].render(m,p.description),this.map["dc:identifier"].render(m,p.identifier),this.map["dc:language"].render(m,p.language),this.map["cp:keywords"].render(m,p.keywords),this.map["cp:category"].render(m,p.category),this.map["cp:lastModifiedBy"].render(m,p.lastModifiedBy),this.map["cp:lastPrinted"].render(m,p.lastPrinted),this.map["cp:revision"].render(m,p.revision),this.map["cp:version"].render(m,p.version),this.map["cp:contentStatus"].render(m,p.contentStatus),this.map["cp:contentType"].render(m,p.contentType),this.map["dcterms:created"].render(m,p.created),this.map["dcterms:modified"].render(m,p.modified),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[m.name],this.parser)return this.parser.parseOpen(m),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(m))}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.parser=void 0),!0;switch(m){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: "+m)}}}l.DateFormat=function(g){return g.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.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"},i.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{render(c,u){c.leafNode("Relationship",u)}parseOpen(c){switch(c.name){case"Relationship":return this.model=c.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform"),u=r("./relationship-xform");class f extends c{constructor(){super(),this.map={Relationship:new u}}render(l,g){g=g||this._values,l.openXml(t.StdDocAttributes),l.openNode("Relationships",f.RELATIONSHIPS_ATTRIBUTES),g.forEach(m=>{this.map.Relationship.render(l,m)}),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[l.name],this.parser)return this.parser.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(l){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+l)}}}f.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},i.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset(),this.model={range:{editAs:c.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)}return!0}parseText(c){this.parser&&this.parser.parseText(c)}reconcilePicture(c,u){if(c&&c.rId){const f=u.rels[c.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(f){const o=f[1],l=u.mediaIndex[o];return u.media[l]}}}}},{"../base-xform":32}],57:[function(r,i,n){const t=r("../base-xform"),c=r("./blip-xform");i.exports=class extends t{constructor(){super(),this.map={"a:blip":new c}}get tag(){return"xdr:blipFill"}render(u,f){u.openNode(this.tag),this.map["a:blip"].render(u,f),u.openNode("a:stretch"),u.leafNode("a:fillRect"),u.closeNode(),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"a:blip"}render(c,u){c.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":u.rId,cstate:"print"})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"xdr:cNvPicPr"}render(c){c.openNode(this.tag),c.leafNode("a:picLocks",{noChangeAspect:"1"}),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(r,i,n){const t=r("../base-xform"),c=r("./hlink-click-xform"),u=r("./ext-lst-xform");i.exports=class extends t{constructor(){super(),this.map={"a:hlinkClick":new c,"a:extLst":new u}}get tag(){return"xdr:cNvPr"}render(f,o){f.openNode(this.tag,{id:o.index,name:"Picture "+o.index}),this.map["a:hlinkClick"].render(f,o),this.map["a:extLst"].render(f,o),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset();break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(){}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(r,i,n){const t=r("../base-xform"),c=r("../simple/integer-xform");i.exports=class extends t{constructor(u){super(),this.tag=u.tag,this.map={"xdr:col":new c({tag:"xdr:col",zero:!0}),"xdr:colOff":new c({tag:"xdr:colOff",zero:!0}),"xdr:row":new c({tag:"xdr:row",zero:!0}),"xdr:rowOff":new c({tag:"xdr:rowOff",zero:!0})}}render(u,f){u.openNode(this.tag),this.map["xdr:col"].render(u,f.nativeCol),this.map["xdr:colOff"].render(u,f.nativeColOff),this.map["xdr:row"].render(u,f.nativeRow),this.map["xdr:rowOff"].render(u,f.nativeRowOff),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)}return!0}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return 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;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(r,i,n){const t=r("../../../utils/col-cache"),c=r("../../../utils/xml-stream"),u=r("../base-xform"),f=r("./two-cell-anchor-xform"),o=r("./one-cell-anchor-xform");class l extends u{constructor(){super(),this.map={"xdr:twoCellAnchor":new f,"xdr:oneCellAnchor":new o}}prepare(m){m.anchors.forEach((p,_)=>{p.anchorType=(function(y){return(typeof y.range=="string"?t.decode(y.range):y.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(p),this.map[p.anchorType].prepare(p,{index:_})})}get tag(){return"xdr:wsDr"}render(m,p){m.openXml(c.StdDocAttributes),m.openNode(this.tag,l.DRAWING_ATTRIBUTES),p.anchors.forEach(_=>{this.map[_.anchorType].render(m,_)}),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m)}return!0}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser)return this.parser.parseClose(m)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(m){case this.tag:return!1;default:return!0}}reconcile(m,p){m.anchors.forEach(_=>{_.br?this.map["xdr:twoCellAnchor"].reconcile(_,p):this.map["xdr:oneCellAnchor"].reconcile(_,p)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},i.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(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"a:extLst"}render(c){c.openNode(this.tag),c.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),c.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),c.closeNode(),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{constructor(c){super(),this.tag=c.tag,this.map={}}render(c,u){c.openNode(this.tag);const f=Math.floor(9525*u.width),o=Math.floor(9525*u.height);c.addAttribute("cx",f),c.addAttribute("cy",o),c.closeNode()}parseOpen(c){return c.name===this.tag&&(this.model={width:parseInt(c.attributes.cx||"0",10)/9525,height:parseInt(c.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"a:hlinkClick"}render(c,u){u.hyperlinks&&u.hyperlinks.rId&&c.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":u.hyperlinks.rId,tooltip:u.hyperlinks.tooltip})}parseOpen(c){switch(c.name){case this.tag:return this.model={hyperlinks:{rId:c.attributes["r:id"],tooltip:c.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(r,i,n){const t=r("../base-xform"),c=r("./c-nv-pr-xform"),u=r("./c-nv-pic-pr-xform");i.exports=class extends t{constructor(){super(),this.map={"xdr:cNvPr":new c,"xdr:cNvPicPr":new u}}get tag(){return"xdr:nvPicPr"}render(f,o){f.openNode(this.tag),this.map["xdr:cNvPr"].render(f,o),this.map["xdr:cNvPicPr"].render(f,o),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset();break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(){}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(r,i,n){const t=r("./base-cell-anchor-xform"),c=r("../static-xform"),u=r("./cell-position-xform"),f=r("./ext-xform"),o=r("./pic-xform");i.exports=class extends t{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:ext":new f({tag:"xdr:ext"}),"xdr:pic":new o,"xdr:clientData":new c({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(l,g){this.map["xdr:pic"].prepare(l.picture,g)}render(l,g){l.openNode(this.tag,{editAs:g.range.editAs||"oneCell"}),this.map["xdr:from"].render(l,g.range.tl),this.map["xdr:ext"].render(l,g.range.ext),this.map["xdr:pic"].render(l,g.picture),this.map["xdr:clientData"].render(l,{}),l.closeNode()}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return 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;default:return!0}}reconcile(l,g){l.medium=this.reconcilePicture(l.picture,g)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(r,i,n){const t=r("../base-xform"),c=r("../static-xform"),u=r("./blip-fill-xform"),f=r("./nv-pic-pr-xform"),o=r("./sp-pr");i.exports=class extends t{constructor(){super(),this.map={"xdr:nvPicPr":new f,"xdr:blipFill":new u,"xdr:spPr":new c(o)}}get tag(){return"xdr:pic"}prepare(l,g){l.index=g.index+1}render(l,g){l.openNode(this.tag),this.map["xdr:nvPicPr"].render(l,g),this.map["xdr:blipFill"].render(l,g),this.map["xdr:spPr"].render(l,g),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:this.reset();break;default:this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)}return!0}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(l){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(r,i,n){i.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(r,i,n){const t=r("./base-cell-anchor-xform"),c=r("../static-xform"),u=r("./cell-position-xform"),f=r("./pic-xform");i.exports=class extends t{constructor(){super(),this.map={"xdr:from":new u({tag:"xdr:from"}),"xdr:to":new u({tag:"xdr:to"}),"xdr:pic":new f,"xdr:clientData":new c({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(o,l){this.map["xdr:pic"].prepare(o.picture,l)}render(o,l){o.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(o,l.range.tl),this.map["xdr:to"].render(o,l.range.br),this.map["xdr:pic"].render(o,l.picture),this.map["xdr:clientData"].render(o,{}),o.closeNode()}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return 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;default:return!0}}reconcile(o,l){o.medium=this.reconcilePicture(o.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(r,i,n){const t=r("./base-xform");i.exports=class extends t{constructor(c){super(),this.tag=c.tag,this.always=!!c.always,this.count=c.count,this.empty=c.empty,this.$count=c.$count||"count",this.$=c.$,this.childXform=c.childXform,this.maxItems=c.maxItems}prepare(c,u){const{childXform:f}=this;c&&c.forEach((o,l)=>{u.index=l,f.prepare(o,u)})}render(c,u){if(this.always||u&&u.length){c.openNode(this.tag,this.$),this.count&&c.addAttribute(this.$count,u&&u.length||0);const{childXform:f}=this;(u||[]).forEach((o,l)=>{f.render(c,o,l)}),c.closeNode()}else this.empty&&c.leafNode(this.tag)}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(c)&&(this.parser=this.childXform,!0)}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser){if(!this.parser.parseClose(c)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(c,u){if(c){const{childXform:f}=this;c.forEach(o=>{f.reconcile(o,u)})}}}},{"./base-xform":32}],72:[function(r,i,n){const t=r("../../../utils/col-cache"),c=r("../base-xform");i.exports=class extends c{get tag(){return"autoFilter"}render(u,f){if(f)if(typeof f=="string")u.leafNode("autoFilter",{ref:f});else{const o=function(m){return typeof m=="string"?m:t.getAddress(m.row,m.column).address},l=o(f.from),g=o(f.to);l&&g&&u.leafNode("autoFilter",{ref:`${l}:${g}`})}}parseOpen(u){u.name==="autoFilter"&&(this.model=u.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(r,i,n){const t=r("../../../utils/utils"),c=r("../base-xform"),u=r("../../../doc/range"),f=r("../../../doc/enums"),o=r("../strings/rich-text-xform");function l(g){if(g==null)return f.ValueType.Null;if(g instanceof String||typeof g=="string")return f.ValueType.String;if(typeof g=="number")return f.ValueType.Number;if(typeof g=="boolean")return f.ValueType.Boolean;if(g instanceof Date)return f.ValueType.Date;if(g.text&&g.hyperlink)return f.ValueType.Hyperlink;if(g.formula)return f.ValueType.Formula;if(g.error)return f.ValueType.Error;throw new Error("I could not understand type of value")}i.exports=class extends c{constructor(){super(),this.richTextXForm=new o}get tag(){return"c"}prepare(g,m){const p=m.styles.addStyleModel(g.style||{},(function(_){switch(_.type){case f.ValueType.Formula:return l(_.result);default:return _.type}})(g));switch(p&&(g.styleId=p),g.comment&&m.comments.push({...g.comment,ref:g.address}),g.type){case f.ValueType.String:case f.ValueType.RichText:m.sharedStrings&&(g.ssId=m.sharedStrings.add(g.value));break;case f.ValueType.Date:m.date1904&&(g.date1904=!0);break;case f.ValueType.Hyperlink:m.sharedStrings&&g.text!==void 0&&g.text!==null&&(g.ssId=m.sharedStrings.add(g.text)),m.hyperlinks.push({address:g.address,target:g.hyperlink,tooltip:g.tooltip});break;case f.ValueType.Merge:m.merges.add(g);break;case f.ValueType.Formula:if(m.date1904&&(g.date1904=!0),g.shareType==="shared"&&(g.si=m.siFormulae++),g.formula)m.formulae[g.address]=g;else if(g.sharedFormula){const _=m.formulae[g.sharedFormula];if(!_)throw new Error("Shared Formula master must exist above and or left of clone for cell "+g.address);_.si===void 0?(_.shareType="shared",_.si=m.siFormulae++,_.range=new u(_.address,g.address)):_.range&&_.range.expandToAddress(g.address),g.si=_.si}}}renderFormula(g,m){let p=null;switch(m.shareType){case"shared":p={t:"shared",ref:m.ref||m.range.range,si:m.si};break;case"array":p={t:"array",ref:m.ref};break;default:m.si!==void 0&&(p={t:"shared",si:m.si})}switch(l(m.result)){case f.ValueType.Null:g.leafNode("f",p,m.formula);break;case f.ValueType.String:g.addAttribute("t","str"),g.leafNode("f",p,m.formula),g.leafNode("v",null,m.result);break;case f.ValueType.Number:g.leafNode("f",p,m.formula),g.leafNode("v",null,m.result);break;case f.ValueType.Boolean:g.addAttribute("t","b"),g.leafNode("f",p,m.formula),g.leafNode("v",null,m.result?1:0);break;case f.ValueType.Error:g.addAttribute("t","e"),g.leafNode("f",p,m.formula),g.leafNode("v",null,m.result.error);break;case f.ValueType.Date:g.leafNode("f",p,m.formula),g.leafNode("v",null,t.dateToExcel(m.result,m.date1904));break;default:throw new Error("I could not understand type of value")}}render(g,m){if(m.type!==f.ValueType.Null||m.styleId){switch(g.openNode("c"),g.addAttribute("r",m.address),m.styleId&&g.addAttribute("s",m.styleId),m.type){case f.ValueType.Null:break;case f.ValueType.Number:g.leafNode("v",null,m.value);break;case f.ValueType.Boolean:g.addAttribute("t","b"),g.leafNode("v",null,m.value?"1":"0");break;case f.ValueType.Error:g.addAttribute("t","e"),g.leafNode("v",null,m.value.error);break;case f.ValueType.String:case f.ValueType.RichText:m.ssId!==void 0?(g.addAttribute("t","s"),g.leafNode("v",null,m.ssId)):m.value&&m.value.richText?(g.addAttribute("t","inlineStr"),g.openNode("is"),m.value.richText.forEach(p=>{this.richTextXForm.render(g,p)}),g.closeNode("is")):(g.addAttribute("t","str"),g.leafNode("v",null,m.value));break;case f.ValueType.Date:g.leafNode("v",null,t.dateToExcel(m.value,m.date1904));break;case f.ValueType.Hyperlink:m.ssId!==void 0?(g.addAttribute("t","s"),g.leafNode("v",null,m.ssId)):(g.addAttribute("t","str"),g.leafNode("v",null,m.text));break;case f.ValueType.Formula:this.renderFormula(g,m);break;case f.ValueType.Merge:}g.closeNode()}}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"c":return this.model={address:g.attributes.r},this.t=g.attributes.t,g.attributes.s&&(this.model.styleId=parseInt(g.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=g.attributes.si,this.model.shareType=g.attributes.t,this.model.ref=g.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(g),!0;default:return!1}}parseText(g){if(this.parser)this.parser.parseText(g);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+g:g;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+g:g:this.model.value=this.model.value?this.model.value+g:g}}parseClose(g){switch(g){case"c":{const{model:m}=this;if(m.formula||m.shareType)m.type=f.ValueType.Formula,m.value&&(this.t==="str"?m.result=t.xmlDecode(m.value):this.t==="b"?m.result=parseInt(m.value,10)!==0:this.t==="e"?m.result={error:m.value}:m.result=parseFloat(m.value),m.value=void 0);else if(m.value!==void 0)switch(this.t){case"s":m.type=f.ValueType.String,m.value=parseInt(m.value,10);break;case"str":m.type=f.ValueType.String,m.value=t.xmlDecode(m.value);break;case"inlineStr":m.type=f.ValueType.String;break;case"b":m.type=f.ValueType.Boolean,m.value=parseInt(m.value,10)!==0;break;case"e":m.type=f.ValueType.Error,m.value={error:m.value};break;default:m.type=f.ValueType.Number,m.value=parseFloat(m.value)}else m.styleId?m.type=f.ValueType.Null:m.type=f.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(g),!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(g),!0)}}reconcile(g,m){const p=g.styleId&&m.styles&&m.styles.getStyleModel(g.styleId);switch(p&&(g.style=p),g.styleId!==void 0&&(g.styleId=void 0),g.type){case f.ValueType.String:typeof g.value=="number"&&m.sharedStrings&&(g.value=m.sharedStrings.getString(g.value)),g.value.richText&&(g.type=f.ValueType.RichText);break;case f.ValueType.Number:p&&t.isDateFmt(p.numFmt)&&(g.type=f.ValueType.Date,g.value=t.excelToDate(g.value,m.date1904));break;case f.ValueType.Formula:g.result!==void 0&&p&&t.isDateFmt(p.numFmt)&&(g.result=t.excelToDate(g.result,m.date1904)),g.shareType==="shared"&&(g.ref?m.formulae[g.si]=g.address:(g.sharedFormula=m.formulae[g.si],delete g.shareType),delete g.si)}const _=m.hyperlinkMap[g.address];_&&(g.type===f.ValueType.Formula?(g.text=g.result,g.result=void 0):(g.text=g.value,g.value=void 0),g.type=f.ValueType.Hyperlink,g.hyperlink=_);const y=m.commentsMap&&m.commentsMap[g.address];y&&(g.comment=y)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(r,i,n){const t=r("../../base-xform");i.exports=class extends t{get tag(){return"x14:cfIcon"}render(c,u){c.leafNode(this.tag,{iconSet:u.iconSet,iconId:u.iconId})}parseOpen(c){let{attributes:u}=c;this.model={iconSet:u.iconSet,iconId:t.toIntValue(u.iconId)}}parseClose(c){return c!==this.tag}}},{"../../base-xform":32}],75:[function(r,i,n){const{v4:t}=r("uuid"),c=r("../../base-xform"),u=r("../../composite-xform"),f=r("./databar-ext-xform"),o=r("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class g extends u{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new f,"x14:iconSet":this.iconSetXform=new o}}get tag(){return"x14:cfRule"}static isExt(p){return p.type==="dataBar"?f.isExt(p):!(p.type!=="iconSet"||!p.custom&&!l[p.iconSet])}prepare(p){g.isExt(p)&&(p.x14Id=`{${t()}}`.toUpperCase())}render(p,_){if(g.isExt(_))switch(_.type){case"dataBar":this.renderDataBar(p,_);break;case"iconSet":this.renderIconSet(p,_)}}renderDataBar(p,_){p.openNode(this.tag,{type:"dataBar",id:_.x14Id}),this.databarXform.render(p,_),p.closeNode()}renderIconSet(p,_){p.openNode(this.tag,{type:"iconSet",priority:_.priority,id:_.x14Id||`{${t()}}`}),this.iconSetXform.render(p,_),p.closeNode()}createNewModel(p){let{attributes:_}=p;return{type:_.type,x14Id:_.id,priority:c.toIntValue(_.priority)}}onParserClose(p,_){Object.assign(this.model,_.model)}}i.exports=g},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(r,i,n){const t=r("../../composite-xform"),c=r("./f-ext-xform");i.exports=class extends t{constructor(){super(),this.map={"xm:f":this.fExtXform=new c}}get tag(){return"x14:cfvo"}render(u,f){u.openNode(this.tag,{type:f.type}),f.value!==void 0&&this.fExtXform.render(u,f.value),u.closeNode()}createNewModel(u){return{type:u.attributes.type}}onParserClose(u,f){switch(u){case"xm:f":this.model.value=f.model?parseFloat(f.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(r,i,n){const t=r("../../composite-xform"),c=r("./sqref-ext-xform"),u=r("./cf-rule-ext-xform");i.exports=class extends t{constructor(){super(),this.map={"xm:sqref":this.sqRef=new c,"x14:cfRule":this.cfRule=new u}}get tag(){return"x14:conditionalFormatting"}prepare(f,o){f.rules.forEach(l=>{this.cfRule.prepare(l,o)})}render(f,o){o.rules.some(u.isExt)&&(f.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),o.rules.filter(u.isExt).forEach(l=>this.cfRule.render(f,l)),this.sqRef.render(f,o.ref),f.closeNode())}createNewModel(){return{rules:[]}}onParserClose(f,o){switch(f){case"xm:sqref":this.model.ref=o.model;break;case"x14:cfRule":this.model.rules.push(o.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(r,i,n){const t=r("../../composite-xform"),c=r("./cf-rule-ext-xform"),u=r("./conditional-formatting-ext-xform");i.exports=class extends t{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new u}}get tag(){return"x14:conditionalFormattings"}hasContent(f){return f.hasExtContent===void 0&&(f.hasExtContent=f.some(o=>o.rules.some(c.isExt))),f.hasExtContent}prepare(f,o){f.forEach(l=>{this.cfXform.prepare(l,o)})}render(f,o){this.hasContent(o)&&(f.openNode(this.tag),o.forEach(l=>this.cfXform.render(f,l)),f.closeNode())}createNewModel(){return[]}onParserClose(f,o){this.model.push(o.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(r,i,n){const t=r("../../base-xform"),c=r("../../composite-xform"),u=r("../../style/color-xform"),f=r("./cfvo-ext-xform");i.exports=class extends c{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new f,"x14:borderColor":this.borderColorXform=new u("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new u("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new u("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new u("x14:axisColor")}}static isExt(o){return!o.gradient}get tag(){return"x14:dataBar"}render(o,l){o.openNode(this.tag,{minLength:t.toIntAttribute(l.minLength,0,!0),maxLength:t.toIntAttribute(l.maxLength,100,!0),border:t.toBoolAttribute(l.border,!1),gradient:t.toBoolAttribute(l.gradient,!0),negativeBarColorSameAsPositive:t.toBoolAttribute(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:t.toBoolAttribute(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:t.toAttribute(l.axisPosition,"auto"),direction:t.toAttribute(l.direction,"leftToRight")}),l.cfvo.forEach(g=>{this.cfvoXform.render(o,g)}),this.borderColorXform.render(o,l.borderColor),this.negativeBorderColorXform.render(o,l.negativeBorderColor),this.negativeFillColorXform.render(o,l.negativeFillColor),this.axisColorXform.render(o,l.axisColor),o.closeNode()}createNewModel(o){let{attributes:l}=o;return{cfvo:[],minLength:t.toIntValue(l.minLength,0),maxLength:t.toIntValue(l.maxLength,100),border:t.toBoolValue(l.border,!1),gradient:t.toBoolValue(l.gradient,!0),negativeBarColorSameAsPositive:t.toBoolValue(l.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:t.toBoolValue(l.negativeBarBorderColorSameAsPositive,!0),axisPosition:t.toStringValue(l.axisPosition,"auto"),direction:t.toStringValue(l.direction,"leftToRight")}}onParserClose(o,l){const[,g]=o.split(":");switch(g){case"cfvo":this.model.cfvo.push(l.model);break;default:this.model[g]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(r,i,n){const t=r("../../base-xform");i.exports=class extends t{get tag(){return"xm:f"}render(c,u){c.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}},{"../../base-xform":32}],81:[function(r,i,n){const t=r("../../base-xform"),c=r("../../composite-xform"),u=r("./cfvo-ext-xform"),f=r("./cf-icon-ext-xform");i.exports=class extends c{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new u,"x14:cfIcon":this.cfIconXform=new f}}get tag(){return"x14:iconSet"}render(o,l){o.openNode(this.tag,{iconSet:t.toStringAttribute(l.iconSet),reverse:t.toBoolAttribute(l.reverse,!1),showValue:t.toBoolAttribute(l.showValue,!0),custom:t.toBoolAttribute(l.icons,!1)}),l.cfvo.forEach(g=>{this.cfvoXform.render(o,g)}),l.icons&&l.icons.forEach((g,m)=>{g.iconId=m,this.cfIconXform.render(o,g)}),o.closeNode()}createNewModel(o){let{attributes:l}=o;return{cfvo:[],iconSet:t.toStringValue(l.iconSet,"3TrafficLights"),reverse:t.toBoolValue(l.reverse,!1),showValue:t.toBoolValue(l.showValue,!0)}}onParserClose(o,l){const[,g]=o.split(":");switch(g){case"cfvo":this.model.cfvo.push(l.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(l.model);break;default:this.model[g]=l.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(r,i,n){const t=r("../../base-xform");i.exports=class extends t{get tag(){return"xm:sqref"}render(c,u){c.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}},{"../../base-xform":32}],83:[function(r,i,n){const t=r("../../base-xform"),c=r("../../composite-xform"),u=r("../../../../doc/range"),f=r("./databar-xform"),o=r("./ext-lst-ref-xform"),l=r("./formula-xform"),g=r("./color-scale-xform"),m=r("./icon-set-xform"),p={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},_=h=>{const{type:d,operator:A}=h;switch(d){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:d};default:return{type:d,operator:A}}};class y extends c{constructor(){super(),this.map={dataBar:this.databarXform=new f,extLst:this.extLstRefXform=new o,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new g,iconSet:this.iconSetXform=new m}}get tag(){return"cfRule"}static isPrimitive(d){return d.type!=="iconSet"||!d.custom&&!p[d.iconSet]}render(d,A){switch(A.type){case"expression":this.renderExpression(d,A);break;case"cellIs":this.renderCellIs(d,A);break;case"top10":this.renderTop10(d,A);break;case"aboveAverage":this.renderAboveAverage(d,A);break;case"dataBar":this.renderDataBar(d,A);break;case"colorScale":this.renderColorScale(d,A);break;case"iconSet":this.renderIconSet(d,A);break;case"containsText":this.renderText(d,A);break;case"timePeriod":this.renderTimePeriod(d,A)}}renderExpression(d,A){d.openNode(this.tag,{type:"expression",dxfId:A.dxfId,priority:A.priority}),this.formulaXform.render(d,A.formulae[0]),d.closeNode()}renderCellIs(d,A){d.openNode(this.tag,{type:"cellIs",dxfId:A.dxfId,priority:A.priority,operator:A.operator}),A.formulae.forEach(v=>{this.formulaXform.render(d,v)}),d.closeNode()}renderTop10(d,A){d.leafNode(this.tag,{type:"top10",dxfId:A.dxfId,priority:A.priority,percent:t.toBoolAttribute(A.percent,!1),bottom:t.toBoolAttribute(A.bottom,!1),rank:t.toIntValue(A.rank,10,!0)})}renderAboveAverage(d,A){d.leafNode(this.tag,{type:"aboveAverage",dxfId:A.dxfId,priority:A.priority,aboveAverage:t.toBoolAttribute(A.aboveAverage,!0)})}renderDataBar(d,A){d.openNode(this.tag,{type:"dataBar",priority:A.priority}),this.databarXform.render(d,A),this.extLstRefXform.render(d,A),d.closeNode()}renderColorScale(d,A){d.openNode(this.tag,{type:"colorScale",priority:A.priority}),this.colorScaleXform.render(d,A),d.closeNode()}renderIconSet(d,A){y.isPrimitive(A)&&(d.openNode(this.tag,{type:"iconSet",priority:A.priority}),this.iconSetXform.render(d,A),d.closeNode())}renderText(d,A){d.openNode(this.tag,{type:A.operator,dxfId:A.dxfId,priority:A.priority,operator:t.toStringAttribute(A.operator,"containsText")});const v=(w=>{if(w.formulae&&w.formulae[0])return w.formulae[0];const x=new u(w.ref),{tl:C}=x;switch(w.operator){case"containsText":return`NOT(ISERROR(SEARCH("${w.text}",${C})))`;case"containsBlanks":return`LEN(TRIM(${C}))=0`;case"notContainsBlanks":return`LEN(TRIM(${C}))>0`;case"containsErrors":return`ISERROR(${C})`;case"notContainsErrors":return`NOT(ISERROR(${C}))`;default:return}})(A);v&&this.formulaXform.render(d,v),d.closeNode()}renderTimePeriod(d,A){d.openNode(this.tag,{type:"timePeriod",dxfId:A.dxfId,priority:A.priority,timePeriod:A.timePeriod});const v=(w=>{if(w.formulae&&w.formulae[0])return w.formulae[0];const x=new u(w.ref),{tl:C}=x;switch(w.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${C},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${C},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${C},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${C},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${C},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${C},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${C},1)=TODAY()-1`;case"today":return`FLOOR(${C},1)=TODAY()`;case"tomorrow":return`FLOOR(${C},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${C},1)<=6,FLOOR(${C},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${C})=MONTH(EDATE(TODAY(),0-1)),YEAR(${C})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${C})=MONTH(TODAY()),YEAR(${C})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${C})=MONTH(EDATE(TODAY(),0+1)),YEAR(${C})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(A);v&&this.formulaXform.render(d,v),d.closeNode()}createNewModel(d){let{attributes:A}=d;return{..._(A),dxfId:t.toIntValue(A.dxfId),priority:t.toIntValue(A.priority),timePeriod:A.timePeriod,percent:t.toBoolValue(A.percent),bottom:t.toBoolValue(A.bottom),rank:t.toIntValue(A.rank),aboveAverage:t.toBoolValue(A.aboveAverage)}}onParserClose(d,A){switch(d){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,A.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(A.model)}}}i.exports=y},{"../../../../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(r,i,n){const t=r("../../base-xform");i.exports=class extends t{get tag(){return"cfvo"}render(c,u){c.leafNode(this.tag,{type:u.type,val:u.value})}parseOpen(c){this.model={type:c.attributes.type,value:t.toFloatValue(c.attributes.val)}}parseClose(c){return c!==this.tag}}},{"../../base-xform":32}],85:[function(r,i,n){const t=r("../../composite-xform"),c=r("../../style/color-xform"),u=r("./cfvo-xform");i.exports=class extends t{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new c}}get tag(){return"colorScale"}render(f,o){f.openNode(this.tag),o.cfvo.forEach(l=>{this.cfvoXform.render(f,l)}),o.color.forEach(l=>{this.colorXform.render(f,l)}),f.closeNode()}createNewModel(f){return{cfvo:[],color:[]}}onParserClose(f,o){this.model[f].push(o.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(r,i,n){const t=r("../../composite-xform"),c=r("./cf-rule-xform");i.exports=class extends t{constructor(){super(),this.map={cfRule:new c}}get tag(){return"conditionalFormatting"}render(u,f){f.rules.some(c.isPrimitive)&&(u.openNode(this.tag,{sqref:f.ref}),f.rules.forEach(o=>{c.isPrimitive(o)&&(o.ref=f.ref,this.map.cfRule.render(u,o))}),u.closeNode())}createNewModel(u){let{attributes:f}=u;return{ref:f.sqref,rules:[]}}onParserClose(u,f){this.model.rules.push(f.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(r,i,n){const t=r("../../base-xform"),c=r("./conditional-formatting-xform");i.exports=class extends t{constructor(){super(),this.cfXform=new c}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(u,f){let o=u.reduce((l,g)=>Math.max(l,...g.rules.map(m=>m.priority||0)),1);u.forEach(l=>{l.rules.forEach(g=>{g.priority||(g.priority=o++),g.style&&(g.dxfId=f.styles.addDxfStyle(g.style))})})}render(u,f){f.forEach(o=>{this.cfXform.render(u,o)})}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return!!this.parser&&(!!this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(u,f){u.forEach(o=>{o.rules.forEach(l=>{l.dxfId!==void 0&&(l.style=f.styles.getDxfStyle(l.dxfId),delete l.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(r,i,n){const t=r("../../composite-xform"),c=r("../../style/color-xform"),u=r("./cfvo-xform");i.exports=class extends t{constructor(){super(),this.map={cfvo:this.cfvoXform=new u,color:this.colorXform=new c}}get tag(){return"dataBar"}render(f,o){f.openNode(this.tag),o.cfvo.forEach(l=>{this.cfvoXform.render(f,l)}),this.colorXform.render(f,o.color),f.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(f,o){switch(f){case"cfvo":this.model.cfvo.push(o.model);break;case"color":this.model.color=o.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(r,i,n){const t=r("../../base-xform"),c=r("../../composite-xform");class u extends t{get tag(){return"x14:id"}render(l,g){l.leafNode(this.tag,null,g)}parseOpen(){this.model=""}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}class f extends c{constructor(){super(),this.map={"x14:id":this.idXform=new u}}get tag(){return"ext"}render(l,g){l.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(l,g.x14Id),l.closeNode()}createNewModel(){return{}}onParserClose(l,g){this.model.x14Id=g.model}}i.exports=class extends c{constructor(){super(),this.map={ext:new f}}get tag(){return"extLst"}render(o,l){o.openNode(this.tag),this.map.ext.render(o,l),o.closeNode()}createNewModel(){return{}}onParserClose(o,l){Object.assign(this.model,l.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(r,i,n){const t=r("../../base-xform");i.exports=class extends t{get tag(){return"formula"}render(c,u){c.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}},{"../../base-xform":32}],91:[function(r,i,n){const t=r("../../base-xform"),c=r("../../composite-xform"),u=r("./cfvo-xform");i.exports=class extends c{constructor(){super(),this.map={cfvo:this.cfvoXform=new u}}get tag(){return"iconSet"}render(f,o){f.openNode(this.tag,{iconSet:t.toStringAttribute(o.iconSet,"3TrafficLights"),reverse:t.toBoolAttribute(o.reverse,!1),showValue:t.toBoolAttribute(o.showValue,!0)}),o.cfvo.forEach(l=>{this.cfvoXform.render(f,l)}),f.closeNode()}createNewModel(f){let{attributes:o}=f;return{iconSet:t.toStringValue(o.iconSet,"3TrafficLights"),reverse:t.toBoolValue(o.reverse),showValue:t.toBoolValue(o.showValue),cfvo:[]}}onParserClose(f,o){this.model[f].push(o.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(r,i,n){const t=r("../../../utils/utils"),c=r("../base-xform");i.exports=class extends c{get tag(){return"col"}prepare(u,f){const o=f.styles.addStyleModel(u.style||{});o&&(u.styleId=o)}render(u,f){u.openNode("col"),u.addAttribute("min",f.min),u.addAttribute("max",f.max),f.width&&u.addAttribute("width",f.width),f.styleId&&u.addAttribute("style",f.styleId),f.hidden&&u.addAttribute("hidden","1"),f.bestFit&&u.addAttribute("bestFit","1"),f.outlineLevel&&u.addAttribute("outlineLevel",f.outlineLevel),f.collapsed&&u.addAttribute("collapsed","1"),u.addAttribute("customWidth","1"),u.closeNode()}parseOpen(u){if(u.name==="col"){const f=this.model={min:parseInt(u.attributes.min||"0",10),max:parseInt(u.attributes.max||"0",10),width:u.attributes.width===void 0?void 0:parseFloat(u.attributes.width||"0")};return u.attributes.style&&(f.styleId=parseInt(u.attributes.style,10)),t.parseBoolean(u.attributes.hidden)&&(f.hidden=!0),t.parseBoolean(u.attributes.bestFit)&&(f.bestFit=!0),u.attributes.outlineLevel&&(f.outlineLevel=parseInt(u.attributes.outlineLevel,10)),t.parseBoolean(u.attributes.collapsed)&&(f.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(u,f){u.styleId&&(u.style=f.styles.getStyleModel(u.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../../../utils/utils"),u=r("../../../utils/col-cache"),f=r("../base-xform"),o=r("../../../doc/range");function l(m,p,_,y){const h=p[_];h!==void 0?m[_]=h:y!==void 0&&(m[_]=y)}function g(m,p,_,y){const h=p[_];h!==void 0&&(m[_]=c.parseBoolean(h))}i.exports=class extends f{get tag(){return"dataValidations"}render(m,p){const _=(function(y){const h=t.map(y,(v,w)=>({address:w,dataValidation:v,marked:!1})).sort((v,w)=>t.strcmp(v.address,w.address)),d=t.keyBy(h,"address"),A=(v,w,x)=>{for(let C=0;C<w;C++){const k=u.encodeAddress(v.row+C,x);if(!y[k]||!t.isEqual(y[v.address],y[k]))return!1}return!0};return h.map(v=>{if(!v.marked){const w=u.decodeEx(v.address);if(w.dimensions)return d[w.dimensions].marked=!0,{...v.dataValidation,sqref:v.address};let x=1,C=u.encodeAddress(w.row+x,w.col);for(;y[C]&&t.isEqual(v.dataValidation,y[C]);)x++,C=u.encodeAddress(w.row+x,w.col);let k=1;for(;A(w,x,w.col+k);)k++;for(let T=0;T<x;T++)for(let S=0;S<k;S++)C=u.encodeAddress(w.row+T,w.col+S),d[C].marked=!0;if(x>1||k>1){const T=w.row+(x-1),S=w.col+(k-1);return{...v.dataValidation,sqref:`${v.address}:${u.encodeAddress(T,S)}`}}return{...v.dataValidation,sqref:v.address}}return null}).filter(Boolean)})(p);_.length&&(m.openNode("dataValidations",{count:_.length}),_.forEach(y=>{m.openNode("dataValidation"),y.type!=="any"&&(m.addAttribute("type",y.type),y.operator&&y.type!=="list"&&y.operator!=="between"&&m.addAttribute("operator",y.operator),y.allowBlank&&m.addAttribute("allowBlank","1")),y.showInputMessage&&m.addAttribute("showInputMessage","1"),y.promptTitle&&m.addAttribute("promptTitle",y.promptTitle),y.prompt&&m.addAttribute("prompt",y.prompt),y.showErrorMessage&&m.addAttribute("showErrorMessage","1"),y.errorStyle&&m.addAttribute("errorStyle",y.errorStyle),y.errorTitle&&m.addAttribute("errorTitle",y.errorTitle),y.error&&m.addAttribute("error",y.error),m.addAttribute("sqref",y.sqref),(y.formulae||[]).forEach((h,d)=>{m.openNode("formula"+(d+1)),y.type==="date"?m.writeText(c.dateToExcel(new Date(h))):m.writeText(h),m.closeNode()}),m.closeNode()}),m.closeNode())}parseOpen(m){switch(m.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=m.attributes.sqref;const p={type:m.attributes.type||"any",formulae:[]};switch(m.attributes.type&&g(p,m.attributes,"allowBlank"),g(p,m.attributes,"showInputMessage"),g(p,m.attributes,"showErrorMessage"),p.type){case"any":case"list":case"custom":break;default:l(p,m.attributes,"operator","between")}return l(p,m.attributes,"promptTitle"),l(p,m.attributes,"prompt"),l(p,m.attributes,"errorStyle"),l(p,m.attributes,"errorTitle"),l(p,m.attributes,"error"),this._dataValidation=p,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(m){this._formula&&this._formula.push(m)}parseClose(m){switch(m){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(p=>{p.includes(":")?new o(p).forEachAddress(_=>{this.model[_]=this._dataValidation}):this.model[p]=this._dataValidation}),!0;case"formula1":case"formula2":{let p=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":p=parseInt(p,10);break;case"decimal":p=parseFloat(p);break;case"date":p=c.excelToDate(parseFloat(p))}return this._dataValidation.formulae.push(p),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"dimension"}render(c,u){u&&c.leafNode("dimension",{ref:u})}parseOpen(c){return c.name==="dimension"&&(this.model=c.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"drawing"}render(c,u){u&&c.leafNode(this.tag,{"r:id":u.rId})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(r,i,n){const t=r("../composite-xform"),c=r("./cf-ext/conditional-formattings-ext-xform");class u extends t{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new c}}get tag(){return"ext"}hasContent(o){return this.conditionalFormattings.hasContent(o.conditionalFormattings)}prepare(o,l){this.conditionalFormattings.prepare(o.conditionalFormattings,l)}render(o,l){o.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(o,l.conditionalFormattings),o.closeNode()}createNewModel(){return{}}onParserClose(o,l){this.model[o]=l.model}}i.exports=class extends t{constructor(){super(),this.map={ext:this.ext=new u}}get tag(){return"extLst"}prepare(f,o){this.ext.prepare(f,o)}hasContent(f){return this.ext.hasContent(f)}render(f,o){this.hasContent(o)&&(f.openNode("extLst"),this.ext.render(f,o),f.closeNode())}createNewModel(){return{}}onParserClose(f,o){Object.assign(this.model,o.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"headerFooter"}render(c,u){if(u){c.addRollback();let f=!1;c.openNode("headerFooter"),u.differentFirst&&(c.addAttribute("differentFirst","1"),f=!0),u.differentOddEven&&(c.addAttribute("differentOddEven","1"),f=!0),u.oddHeader&&typeof u.oddHeader=="string"&&(c.leafNode("oddHeader",null,u.oddHeader),f=!0),u.oddFooter&&typeof u.oddFooter=="string"&&(c.leafNode("oddFooter",null,u.oddFooter),f=!0),u.evenHeader&&typeof u.evenHeader=="string"&&(c.leafNode("evenHeader",null,u.evenHeader),f=!0),u.evenFooter&&typeof u.evenFooter=="string"&&(c.leafNode("evenFooter",null,u.evenFooter),f=!0),u.firstHeader&&typeof u.firstHeader=="string"&&(c.leafNode("firstHeader",null,u.firstHeader),f=!0),u.firstFooter&&typeof u.firstFooter=="string"&&(c.leafNode("firstFooter",null,u.firstFooter),f=!0),f?(c.closeNode(),c.commit()):c.rollback()}}parseOpen(c){switch(c.name){case"headerFooter":return this.model={},c.attributes.differentFirst&&(this.model.differentFirst=parseInt(c.attributes.differentFirst,0)===1),c.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(c.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}}parseText(c){switch(this.currentNode){case"oddHeader":this.model.oddHeader=c;break;case"oddFooter":this.model.oddFooter=c;break;case"evenHeader":this.model.evenHeader=c;break;case"evenFooter":this.model.evenFooter=c;break;case"firstHeader":this.model.firstHeader=c;break;case"firstFooter":this.model.firstFooter=c}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"hyperlink"}render(c,u){this.isInternalLink(u)?c.leafNode("hyperlink",{ref:u.address,"r:id":u.rId,tooltip:u.tooltip,location:u.target}):c.leafNode("hyperlink",{ref:u.address,"r:id":u.rId,tooltip:u.tooltip})}parseOpen(c){return c.name==="hyperlink"&&(this.model={address:c.attributes.ref,rId:c.attributes["r:id"],tooltip:c.attributes.tooltip},c.attributes.location&&(this.model.target=c.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(c){return c.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(c.target)}}},{"../base-xform":32}],99:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"mergeCell"}render(c,u){c.leafNode("mergeCell",{ref:u})}parseOpen(c){return c.name==="mergeCell"&&(this.model=c.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../../../doc/range"),u=r("../../../utils/col-cache"),f=r("../../../doc/enums");i.exports=class{constructor(){this.merges={}}add(o){if(this.merges[o.master])this.merges[o.master].expandToAddress(o.address);else{const l=`${o.master}:${o.address}`;this.merges[o.master]=new c(l)}}get mergeCells(){return t.map(this.merges,o=>o.range)}reconcile(o,l){t.each(o,g=>{const m=u.decode(g);for(let p=m.top;p<=m.bottom;p++){const _=l[p-1];for(let y=m.left;y<=m.right;y++){const h=_.cells[y-1];h?h.type===f.ValueType.Merge&&(h.master=m.tl):_.cells[y]={type:f.ValueType.Null,address:u.encodeAddress(p,y)}}}})}getMasterAddress(o){const l=this.hash[o];return l&&l.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(r,i,n){const t=r("../base-xform"),c=u=>u!==void 0;i.exports=class extends t{get tag(){return"outlinePr"}render(u,f){return!(!f||!c(f.summaryBelow)&&!c(f.summaryRight))&&(u.leafNode(this.tag,{summaryBelow:c(f.summaryBelow)?Number(f.summaryBelow):void 0,summaryRight:c(f.summaryRight)?Number(f.summaryRight):void 0}),!0)}parseOpen(u){return u.name===this.tag&&(this.model={summaryBelow:c(u.attributes.summaryBelow)?!!Number(u.attributes.summaryBelow):void 0,summaryRight:c(u.attributes.summaryRight)?!!Number(u.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"brk"}render(c,u){c.leafNode("brk",u)}parseOpen(c){return c.name==="brk"&&(this.model=c.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../base-xform");i.exports=class extends c{get tag(){return"pageMargins"}render(u,f){if(f){const o={left:f.left,right:f.right,top:f.top,bottom:f.bottom,header:f.header,footer:f.footer};t.some(o,l=>l!==void 0)&&u.leafNode(this.tag,o)}}parseOpen(u){switch(u.name){case this.tag:return this.model={left:parseFloat(u.attributes.left||.7),right:parseFloat(u.attributes.right||.7),top:parseFloat(u.attributes.top||.75),bottom:parseFloat(u.attributes.bottom||.75),header:parseFloat(u.attributes.header||.3),footer:parseFloat(u.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"pageSetUpPr"}render(c,u){return!(!u||!u.fitToPage)&&(c.leafNode(this.tag,{fitToPage:u.fitToPage?"1":void 0}),!0)}parseOpen(c){return c.name===this.tag&&(this.model={fitToPage:c.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../base-xform");function u(g){return g?"1":void 0}function f(g){switch(g){case"overThenDown":return g;default:return}}function o(g){switch(g){case"atEnd":case"asDisplyed":return g;default:return}}function l(g){switch(g){case"dash":case"blank":case"NA":return g;default:return}}i.exports=class extends c{get tag(){return"pageSetup"}render(g,m){if(m){const p={paperSize:m.paperSize,orientation:m.orientation,horizontalDpi:m.horizontalDpi,verticalDpi:m.verticalDpi,pageOrder:f(m.pageOrder),blackAndWhite:u(m.blackAndWhite),draft:u(m.draft),cellComments:o(m.cellComments),errors:l(m.errors),scale:m.scale,fitToWidth:m.fitToWidth,fitToHeight:m.fitToHeight,firstPageNumber:m.firstPageNumber,useFirstPageNumber:u(m.firstPageNumber),usePrinterDefaults:u(m.usePrinterDefaults),copies:m.copies};t.some(p,_=>_!==void 0)&&g.leafNode(this.tag,p)}}parseOpen(g){switch(g.name){case this.tag:return this.model={paperSize:(m=g.attributes.paperSize,m!==void 0?parseInt(m,10):void 0),orientation:g.attributes.orientation||"portrait",horizontalDpi:parseInt(g.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(g.attributes.verticalDpi||"4294967295",10),pageOrder:g.attributes.pageOrder||"downThenOver",blackAndWhite:g.attributes.blackAndWhite==="1",draft:g.attributes.draft==="1",cellComments:g.attributes.cellComments||"None",errors:g.attributes.errors||"displayed",scale:parseInt(g.attributes.scale||"100",10),fitToWidth:parseInt(g.attributes.fitToWidth||"1",10),fitToHeight:parseInt(g.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(g.attributes.firstPageNumber||"1",10),useFirstPageNumber:g.attributes.useFirstPageNumber==="1",usePrinterDefaults:g.attributes.usePrinterDefaults==="1",copies:parseInt(g.attributes.copies||"1",10)},!0;default:return!1}var m}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"picture"}render(c,u){u&&c.leafNode(this.tag,{"r:id":u.rId})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../base-xform");function u(f){return f?"1":void 0}i.exports=class extends c{get tag(){return"printOptions"}render(f,o){if(o){const l={headings:u(o.showRowColHeaders),gridLines:u(o.showGridLines),horizontalCentered:u(o.horizontalCentered),verticalCentered:u(o.verticalCentered)};t.some(l,g=>g!==void 0)&&f.leafNode(this.tag,l)}}parseOpen(f){switch(f.name){case this.tag:return this.model={showRowColHeaders:f.attributes.headings==="1",showGridLines:f.attributes.gridLines==="1",horizontalCentered:f.attributes.horizontalCentered==="1",verticalCentered:f.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(r,i,n){const t=r("./page-breaks-xform"),c=r("../list-xform");i.exports=class extends c{constructor(){super({tag:"rowBreaks",count:!0,childXform:new t})}render(u,f){if(f&&f.length){u.openNode(this.tag,this.$),this.count&&(u.addAttribute(this.$count,f.length),u.addAttribute("manualBreakCount",f.length));const{childXform:o}=this;f.forEach(l=>{o.render(u,l)}),u.closeNode()}else this.empty&&u.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(r,i,n){const t=r("../base-xform"),c=r("../../../utils/utils"),u=r("./cell-xform");i.exports=class extends t{constructor(f){super(),this.maxItems=f&&f.maxItems,this.map={c:new u}}get tag(){return"row"}prepare(f,o){const l=o.styles.addStyleModel(f.style);l&&(f.styleId=l);const g=this.map.c;f.cells.forEach(m=>{g.prepare(m,o)})}render(f,o,l){f.openNode("row"),f.addAttribute("r",o.number),o.height&&(f.addAttribute("ht",o.height),f.addAttribute("customHeight","1")),o.hidden&&f.addAttribute("hidden","1"),o.min>0&&o.max>0&&o.min<=o.max&&f.addAttribute("spans",`${o.min}:${o.max}`),o.styleId&&(f.addAttribute("s",o.styleId),f.addAttribute("customFormat","1")),f.addAttribute("x14ac:dyDescent","0.25"),o.outlineLevel&&f.addAttribute("outlineLevel",o.outlineLevel),o.collapsed&&f.addAttribute("collapsed","1");const g=this.map.c;o.cells.forEach(m=>{g.render(f,m,l)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;if(f.name==="row"){this.numRowsSeen+=1;const o=f.attributes.spans?f.attributes.spans.split(":").map(g=>parseInt(g,10)):[void 0,void 0],l=this.model={number:parseInt(f.attributes.r,10),min:o[0],max:o[1],cells:[]};return f.attributes.s&&(l.styleId=parseInt(f.attributes.s,10)),c.parseBoolean(f.attributes.hidden)&&(l.hidden=!0),c.parseBoolean(f.attributes.bestFit)&&(l.bestFit=!0),f.attributes.ht&&(l.height=parseFloat(f.attributes.ht)),f.attributes.outlineLevel&&(l.outlineLevel=parseInt(f.attributes.outlineLevel,10)),c.parseBoolean(f.attributes.collapsed)&&(l.collapsed=!0),!0}return this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0)}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser){if(!this.parser.parseClose(f)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(f,o){f.style=f.styleId?o.styles.getStyleModel(f.styleId):{},f.styleId!==void 0&&(f.styleId=void 0);const l=this.map.c;f.cells.forEach(g=>{l.reconcile(g,o)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../base-xform");i.exports=class extends c{get tag(){return"sheetFormatPr"}render(u,f){if(f){const o={defaultRowHeight:f.defaultRowHeight,outlineLevelRow:f.outlineLevelRow,outlineLevelCol:f.outlineLevelCol,"x14ac:dyDescent":f.dyDescent};f.defaultColWidth&&(o.defaultColWidth=f.defaultColWidth),f.defaultRowHeight&&f.defaultRowHeight===15||(o.customHeight="1"),t.some(o,l=>l!==void 0)&&u.leafNode("sheetFormatPr",o)}}parseOpen(u){return u.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(u.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(u.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(u.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(u.attributes.outlineLevelCol||"0",10)},u.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(u.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(r,i,n){const t=r("../base-xform"),c=r("../style/color-xform"),u=r("./page-setup-properties-xform"),f=r("./outline-properties-xform");i.exports=class extends t{constructor(){super(),this.map={tabColor:new c("tabColor"),pageSetUpPr:new u,outlinePr:new f}}get tag(){return"sheetPr"}render(o,l){if(l){o.addRollback(),o.openNode("sheetPr");let g=!1;g=this.map.tabColor.render(o,l.tabColor)||g,g=this.map.pageSetUpPr.render(o,l.pageSetup)||g,g=this.map.outlinePr.render(o,l.outlineProperties)||g,g?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){return this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag?(this.reset(),!0):!!this.map[o.name]&&(this.parser=this.map[o.name],this.parser.parseOpen(o),!0)}parseText(o){return!!this.parser&&(this.parser.parseText(o),!0)}parseClose(o){return this.parser?(this.parser.parseClose(o)||(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)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../base-xform");function u(o,l){return o?l:void 0}function f(o,l){return o===l||void 0}i.exports=class extends c{get tag(){return"sheetProtection"}render(o,l){if(l){const g={sheet:u(l.sheet,"1"),selectLockedCells:l.selectLockedCells===!1?"1":void 0,selectUnlockedCells:l.selectUnlockedCells===!1?"1":void 0,formatCells:u(l.formatCells,"0"),formatColumns:u(l.formatColumns,"0"),formatRows:u(l.formatRows,"0"),insertColumns:u(l.insertColumns,"0"),insertRows:u(l.insertRows,"0"),insertHyperlinks:u(l.insertHyperlinks,"0"),deleteColumns:u(l.deleteColumns,"0"),deleteRows:u(l.deleteRows,"0"),sort:u(l.sort,"0"),autoFilter:u(l.autoFilter,"0"),pivotTables:u(l.pivotTables,"0")};l.sheet&&(g.algorithmName=l.algorithmName,g.hashValue=l.hashValue,g.saltValue=l.saltValue,g.spinCount=l.spinCount,g.objects=u(l.objects===!1,"1"),g.scenarios=u(l.scenarios===!1,"1")),t.some(g,m=>m!==void 0)&&o.leafNode(this.tag,g)}}parseOpen(o){switch(o.name){case this.tag:return this.model={sheet:f(o.attributes.sheet,"1"),objects:o.attributes.objects!=="1"&&void 0,scenarios:o.attributes.scenarios!=="1"&&void 0,selectLockedCells:o.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:o.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:f(o.attributes.formatCells,"0"),formatColumns:f(o.attributes.formatColumns,"0"),formatRows:f(o.attributes.formatRows,"0"),insertColumns:f(o.attributes.insertColumns,"0"),insertRows:f(o.attributes.insertRows,"0"),insertHyperlinks:f(o.attributes.insertHyperlinks,"0"),deleteColumns:f(o.attributes.deleteColumns,"0"),deleteRows:f(o.attributes.deleteRows,"0"),sort:f(o.attributes.sort,"0"),autoFilter:f(o.attributes.autoFilter,"0"),pivotTables:f(o.attributes.pivotTables,"0")},o.attributes.algorithmName&&(this.model.algorithmName=o.attributes.algorithmName,this.model.hashValue=o.attributes.hashValue,this.model.saltValue=o.attributes.saltValue,this.model.spinCount=parseInt(o.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(r,i,n){const t=r("../../../utils/col-cache"),c=r("../base-xform"),u={frozen:"frozen",frozenSplit:"frozen",split:"split"};i.exports=class extends c{get tag(){return"sheetView"}prepare(f){switch(f.state){case"frozen":case"split":break;default:f.state="normal"}}render(f,o){f.openNode("sheetView",{workbookViewId:o.workbookViewId||0});const l=function(y,h,d){d&&f.addAttribute(y,h)};let g,m,p,_;switch(l("rightToLeft","1",o.rightToLeft===!0),l("tabSelected","1",o.tabSelected),l("showRuler","0",o.showRuler===!1),l("showRowColHeaders","0",o.showRowColHeaders===!1),l("showGridLines","0",o.showGridLines===!1),l("zoomScale",o.zoomScale,o.zoomScale),l("zoomScaleNormal",o.zoomScaleNormal,o.zoomScaleNormal),l("view",o.style,o.style),o.state){case"frozen":m=o.xSplit||0,p=o.ySplit||0,g=o.topLeftCell||t.getAddress(p+1,m+1).address,_=(o.xSplit&&o.ySplit?"bottomRight":o.xSplit&&"topRight")||"bottomLeft",f.leafNode("pane",{xSplit:o.xSplit||void 0,ySplit:o.ySplit||void 0,topLeftCell:g,activePane:_,state:"frozen"}),f.leafNode("selection",{pane:_,activeCell:o.activeCell,sqref:o.activeCell});break;case"split":o.activePane==="topLeft"&&(o.activePane=void 0),f.leafNode("pane",{xSplit:o.xSplit||void 0,ySplit:o.ySplit||void 0,topLeftCell:o.topLeftCell,activePane:o.activePane}),f.leafNode("selection",{pane:o.activePane,activeCell:o.activeCell,sqref:o.activeCell});break;case"normal":o.activeCell&&f.leafNode("selection",{activeCell:o.activeCell,sqref:o.activeCell})}f.closeNode()}parseOpen(f){switch(f.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(f.attributes.workbookViewId,10),rightToLeft:f.attributes.rightToLeft==="1",tabSelected:f.attributes.tabSelected==="1",showRuler:f.attributes.showRuler!=="0",showRowColHeaders:f.attributes.showRowColHeaders!=="0",showGridLines:f.attributes.showGridLines!=="0",zoomScale:parseInt(f.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(f.attributes.zoomScaleNormal||"100",10),style:f.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(f.attributes.xSplit||"0",10),ySplit:parseInt(f.attributes.ySplit||"0",10),topLeftCell:f.attributes.topLeftCell,activePane:f.attributes.activePane||"topLeft",state:f.attributes.state},!0;case"selection":{const o=f.attributes.pane||"topLeft";return this.selections[o]={pane:o,activeCell:f.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(f){let o,l;switch(f){case"sheetView":return this.sheetView&&this.pane?(o=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:u[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"&&(o.activePane=this.pane.activePane),l=this.selections[this.pane.activePane],l&&l.activeCell&&(o.activeCell=l.activeCell),this.sheetView.style&&(o.style=this.sheetView.style)):(o=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},l=this.selections.topLeft,l&&l.activeCell&&(o.activeCell=l.activeCell),this.sheetView.style&&(o.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"tablePart"}render(c,u){u&&c.leafNode(this.tag,{"r:id":u.rId})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(r,i,n){const t=r("../../../utils/under-dash"),c=r("../../../utils/col-cache"),u=r("../../../utils/xml-stream"),f=r("../../rel-type"),o=r("./merges"),l=r("../base-xform"),g=r("../list-xform"),m=r("./row-xform"),p=r("./col-xform"),_=r("./dimension-xform"),y=r("./hyperlink-xform"),h=r("./merge-cell-xform"),d=r("./data-validations-xform"),A=r("./sheet-properties-xform"),v=r("./sheet-format-properties-xform"),w=r("./sheet-view-xform"),x=r("./sheet-protection-xform"),C=r("./page-margins-xform"),k=r("./page-setup-xform"),T=r("./print-options-xform"),S=r("./auto-filter-xform"),M=r("./picture-xform"),P=r("./drawing-xform"),N=r("./table-part-xform"),B=r("./row-breaks-xform"),O=r("./header-footer-xform"),I=r("./cf/conditional-formattings-xform"),F=r("./ext-lst-xform"),L=(U,V)=>{if(!V||!V.length)return U;if(!U||!U.length)return V;const W={},Q={};return U.forEach(le=>{W[le.ref]=le,le.rules.forEach(G=>{const{x14Id:fe}=G;fe&&(Q[fe]=G)})}),V.forEach(le=>{le.rules.forEach(G=>{const fe=Q[G.x14Id];fe?((ie,he)=>{Object.keys(he).forEach(Y=>{const K=ie[Y],oe=he[Y];K===void 0&&oe!==void 0&&(ie[Y]=oe)})})(fe,G):W[le.ref]?W[le.ref].rules.push(G):U.push({ref:le.ref,rules:[G]})})}),U};class R extends l{constructor(V){super();const{maxRows:W,maxCols:Q,ignoreNodes:le}=V||{};this.ignoreNodes=le||[],this.map={sheetPr:new A,dimension:new _,sheetViews:new g({tag:"sheetViews",count:!1,childXform:new w}),sheetFormatPr:new v,cols:new g({tag:"cols",count:!1,childXform:new p}),sheetData:new g({tag:"sheetData",count:!1,empty:!0,childXform:new m({maxItems:Q}),maxItems:W}),autoFilter:new S,mergeCells:new g({tag:"mergeCells",count:!0,childXform:new h}),rowBreaks:new B,hyperlinks:new g({tag:"hyperlinks",count:!1,childXform:new y}),pageMargins:new C,dataValidations:new d,pageSetup:new k,headerFooter:new O,printOptions:new T,picture:new M,drawing:new P,sheetProtection:new x,tableParts:new g({tag:"tableParts",count:!0,childXform:new N}),conditionalFormatting:new I,extLst:new F}}prepare(V,W){W.merges=new o,V.hyperlinks=W.hyperlinks=[],V.comments=W.comments=[],W.formulae={},W.siFormulae=0,this.map.cols.prepare(V.cols,W),this.map.sheetData.prepare(V.rows,W),this.map.conditionalFormatting.prepare(V.conditionalFormattings,W),V.mergeCells=W.merges.mergeCells;const Q=V.rels=[];function le(ie){return"rId"+(ie.length+1)}if(V.hyperlinks.forEach(ie=>{const he=le(Q);ie.rId=he,Q.push({Id:he,Type:f.Hyperlink,Target:ie.target,TargetMode:"External"})}),V.comments.length>0){const ie={Id:le(Q),Type:f.Comments,Target:`../comments${V.id}.xml`};Q.push(ie);const he={Id:le(Q),Type:f.VmlDrawing,Target:`../drawings/vmlDrawing${V.id}.vml`};Q.push(he),V.comments.forEach(Y=>{Y.refAddress=c.decodeAddress(Y.ref)}),W.commentRefs.push({commentName:"comments"+V.id,vmlDrawing:"vmlDrawing"+V.id})}const G=[];let fe;V.media.forEach(ie=>{if(ie.type==="background"){const he=le(Q);fe=W.media[ie.imageId],Q.push({Id:he,Type:f.Image,Target:`../media/${fe.name}.${fe.extension}`}),V.background={rId:he},V.image=W.media[ie.imageId]}else if(ie.type==="image"){let{drawing:he}=V;fe=W.media[ie.imageId],he||(he=V.drawing={rId:le(Q),name:"drawing"+ ++W.drawingsCount,anchors:[],rels:[]},W.drawings.push(he),Q.push({Id:he.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${he.name}.xml`}));let Y=this.preImageId===ie.imageId?G[ie.imageId]:G[he.rels.length];Y||(Y=le(he.rels),G[he.rels.length]=Y,he.rels.push({Id:Y,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${fe.name}.${fe.extension}`}));const K={picture:{rId:Y},range:ie.range};if(ie.hyperlinks&&ie.hyperlinks.hyperlink){const oe=le(he.rels);G[he.rels.length]=oe,K.picture.hyperlinks={tooltip:ie.hyperlinks.tooltip,rId:oe},he.rels.push({Id:oe,Type:f.Hyperlink,Target:ie.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=ie.imageId,he.anchors.push(K)}}),V.tables.forEach(ie=>{const he=le(Q);ie.rId=he,Q.push({Id:he,Type:f.Table,Target:"../tables/"+ie.target}),ie.columns.forEach(Y=>{const{style:K}=Y;K&&(Y.dxfId=W.styles.addDxfStyle(K))})}),this.map.extLst.prepare(V,W)}render(V,W){V.openXml(u.StdDocAttributes),V.openNode("worksheet",R.WORKSHEET_ATTRIBUTES);const Q=W.properties?{defaultRowHeight:W.properties.defaultRowHeight,dyDescent:W.properties.dyDescent,outlineLevelCol:W.properties.outlineLevelCol,outlineLevelRow:W.properties.outlineLevelRow}:void 0;W.properties&&W.properties.defaultColWidth&&(Q.defaultColWidth=W.properties.defaultColWidth);const le={outlineProperties:W.properties&&W.properties.outlineProperties,tabColor:W.properties&&W.properties.tabColor,pageSetup:W.pageSetup&&W.pageSetup.fitToPage?{fitToPage:W.pageSetup.fitToPage}:void 0},G=W.pageSetup&&W.pageSetup.margins,fe={showRowColHeaders:W.pageSetup&&W.pageSetup.showRowColHeaders,showGridLines:W.pageSetup&&W.pageSetup.showGridLines,horizontalCentered:W.pageSetup&&W.pageSetup.horizontalCentered,verticalCentered:W.pageSetup&&W.pageSetup.verticalCentered},ie=W.sheetProtection;this.map.sheetPr.render(V,le),this.map.dimension.render(V,W.dimensions),this.map.sheetViews.render(V,W.views),this.map.sheetFormatPr.render(V,Q),this.map.cols.render(V,W.cols),this.map.sheetData.render(V,W.rows),this.map.sheetProtection.render(V,ie),this.map.autoFilter.render(V,W.autoFilter),this.map.mergeCells.render(V,W.mergeCells),this.map.conditionalFormatting.render(V,W.conditionalFormattings),this.map.dataValidations.render(V,W.dataValidations),this.map.hyperlinks.render(V,W.hyperlinks),this.map.printOptions.render(V,fe),this.map.pageMargins.render(V,G),this.map.pageSetup.render(V,W.pageSetup),this.map.headerFooter.render(V,W.headerFooter),this.map.rowBreaks.render(V,W.rowBreaks),this.map.drawing.render(V,W.drawing),this.map.picture.render(V,W.background),this.map.tableParts.render(V,W.tables),this.map.extLst.render(V,W),W.rels&&W.rels.forEach(he=>{he.Type===f.VmlDrawing&&V.leafNode("legacyDrawing",{"r:id":he.Id})}),V.closeNode()}parseOpen(V){return this.parser?(this.parser.parseOpen(V),!0):V.name==="worksheet"?(t.each(this.map,W=>{W.reset()}),!0):(this.map[V.name]&&!this.ignoreNodes.includes(V.name)&&(this.parser=this.map[V.name],this.parser.parseOpen(V)),!0)}parseText(V){this.parser&&this.parser.parseText(V)}parseClose(V){if(this.parser)return this.parser.parseClose(V)||(this.parser=void 0),!0;switch(V){case"worksheet":{const W=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(W.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(W.outlineProperties=this.map.sheetPr.model.outlineProperties);const Q={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},le=Object.assign(Q,this.map.pageSetup.model,this.map.printOptions.model),G=L(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:W,views:this.map.sheetViews.model,pageSetup:le,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:G},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(V,W){const Q=(V.relationships||[]).reduce((G,fe)=>{if(G[fe.Id]=fe,fe.Type===f.Comments&&(V.comments=W.comments[fe.Target].comments),fe.Type===f.VmlDrawing&&V.comments&&V.comments.length){const ie=W.vmlDrawings[fe.Target].comments;V.comments.forEach((he,Y)=>{he.note=Object.assign({},he.note,ie[Y])})}return G},{});if(W.commentsMap=(V.comments||[]).reduce((G,fe)=>(fe.ref&&(G[fe.ref]=fe),G),{}),W.hyperlinkMap=(V.hyperlinks||[]).reduce((G,fe)=>(fe.rId&&(G[fe.address]=Q[fe.rId].Target),G),{}),W.formulae={},V.rows=V.rows&&V.rows.filter(Boolean)||[],V.rows.forEach(G=>{G.cells=G.cells&&G.cells.filter(Boolean)||[]}),this.map.cols.reconcile(V.cols,W),this.map.sheetData.reconcile(V.rows,W),this.map.conditionalFormatting.reconcile(V.conditionalFormattings,W),V.media=[],V.drawing){const G=Q[V.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(G){const fe=G[1];W.drawings[fe].anchors.forEach(ie=>{if(ie.medium){const he={type:"image",imageId:ie.medium.index,range:ie.range,hyperlinks:ie.picture.hyperlinks};V.media.push(he)}})}}const le=V.background&&Q[V.background.rId];if(le){const G=le.Target.split("/media/")[1],fe=W.mediaIndex&&W.mediaIndex[G];fe!==void 0&&V.media.push({type:"background",imageId:fe})}V.tables=(V.tables||[]).map(G=>{const fe=Q[G.rId];return W.tables[fe.Target]}),delete V.relationships,delete V.hyperlinks,delete V.comments}}R.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"},i.exports=R},{"../../../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(r,i,n){const t=r("../base-xform");i.exports=class extends t{constructor(c){super(),this.tag=c.tag,this.attr=c.attr}render(c,u){u&&(c.openNode(this.tag),c.closeNode())}parseOpen(c){c.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{constructor(c){super(),this.tag=c.tag,this.attr=c.attr,this.attrs=c.attrs,this._format=c.format||function(u){try{return Number.isNaN(u.getTime())?"":u.toISOString()}catch{return""}},this._parse=c.parse||function(u){return new Date(u)}}render(c,u){u&&(c.openNode(this.tag),this.attrs&&c.addAttributes(this.attrs),this.attr?c.addAttribute(this.attr,this._format(u)):c.writeText(this._format(u)),c.closeNode())}parseOpen(c){c.name===this.tag&&(this.attr?this.model=this._parse(c.attributes[this.attr]):this.text=[])}parseText(c){this.attr||this.text.push(c)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{constructor(c){super(),this.tag=c.tag,this.attr=c.attr,this.attrs=c.attrs,this.zero=c.zero}render(c,u){(u||this.zero)&&(c.openNode(this.tag),this.attrs&&c.addAttributes(this.attrs),this.attr?c.addAttribute(this.attr,u):c.writeText(u),c.closeNode())}parseOpen(c){return c.name===this.tag&&(this.attr?this.model=parseInt(c.attributes[this.attr],10):this.text=[],!0)}parseText(c){this.attr||this.text.push(c)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{constructor(c){super(),this.tag=c.tag,this.attr=c.attr,this.attrs=c.attrs}render(c,u){u!==void 0&&(c.openNode(this.tag),this.attrs&&c.addAttributes(this.attrs),this.attr?c.addAttribute(this.attr,u):c.writeText(u),c.closeNode())}parseOpen(c){c.name===this.tag&&(this.attr?this.model=c.attributes[this.attr]:this.text=[])}parseText(c){this.attr||this.text.push(c)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(r,i,n){const t=r("./base-xform"),c=r("../../utils/xml-stream");i.exports=class extends t{constructor(u){super(),this._model=u}render(u){if(!this._xml){const f=new c;(function o(l,g){l.openNode(g.tag,g.$),g.c&&g.c.forEach(m=>{o(l,m)}),g.t&&l.writeText(g.t),l.closeNode()})(f,this._model),this._xml=f.xml}u.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(u){switch(u){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(r,i,n){const t=r("./text-xform"),c=r("./rich-text-xform"),u=r("../base-xform");i.exports=class extends u{constructor(){super(),this.map={r:new c,t:new t}}get tag(){return"rPh"}render(f,o){if(f.openNode(this.tag,{sb:o.sb||0,eb:o.eb||0}),o&&o.hasOwnProperty("richText")&&o.richText){const{r:l}=this.map;o.richText.forEach(g=>{l.render(f,g)})}else o&&this.map.t.render(f,o.text);f.closeNode()}parseOpen(f){const{name:o}=f;return this.parser?(this.parser.parseOpen(f),!0):o===this.tag?(this.model={sb:parseInt(f.attributes.sb,10),eb:parseInt(f.attributes.eb,10)},!0):(this.parser=this.map[o],!!this.parser&&(this.parser.parseOpen(f),!0))}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser){if(!this.parser.parseClose(f)){switch(f){case"r":{let o=this.model.richText;o||(o=this.model.richText=[]),o.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(f){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(r,i,n){const t=r("./text-xform"),c=r("../style/font-xform"),u=r("../base-xform");class f extends u{constructor(l){super(),this.model=l}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new t)}get fontXform(){return this._fontXform||(this._fontXform=new c(f.FONT_OPTIONS))}render(l,g){g=g||this.model,l.openNode("r"),g.font&&this.fontXform.render(l,g.font),this.textXform.render(l,g.text),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(l),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){switch(l){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(l),!0}}}f.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},i.exports=f},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(r,i,n){const t=r("./text-xform"),c=r("./rich-text-xform"),u=r("./phonetic-text-xform"),f=r("../base-xform");i.exports=class extends f{constructor(o){super(),this.model=o,this.map={r:new c,t:new t,rPh:new u}}get tag(){return"si"}render(o,l){o.openNode(this.tag),l&&l.hasOwnProperty("richText")&&l.richText?l.richText.length?l.richText.forEach(g=>{this.map.r.render(o,g)}):this.map.t.render(o,""):l!=null&&this.map.t.render(o,l),o.closeNode()}parseOpen(o){const{name:l}=o;return this.parser?(this.parser.parseOpen(o),!0):l===this.tag?(this.model={},!0):(this.parser=this.map[l],!!this.parser&&(this.parser.parseOpen(o),!0))}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)){switch(o){case"r":{let l=this.model.richText;l||(l=this.model.richText=[]),l.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(o){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform"),u=r("./shared-string-xform");i.exports=class extends c{constructor(f){super(),this.model=f||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new u)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(f){return this.model.values[f]}add(f){return f.richText?this.addRichText(f):this.addText(f)}addText(f){let o=this.hash[f];return o===void 0&&(o=this.hash[f]=this.model.values.length,this.model.values.push(f)),this.model.count++,o}addRichText(f){const o=this.sharedStringXform.toXml(f);let l=this.rich[o];return l===void 0&&(l=this.rich[o]=this.model.values.length,this.model.values.push(f)),this.model.count++,l}render(f,o){o=o||this._values,f.openXml(t.StdDocAttributes),f.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:o.count,uniqueCount:o.values.length});const l=this.sharedStringXform;o.values.forEach(g=>{l.render(f,g)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(f),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(f))}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(f){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+f)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"t"}render(c,u){c.openNode("t"),/^\s|\n|\s$/.test(u)&&c.addAttribute("xml:space","preserve"),c.writeText(u),c.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(c,u)=>String.fromCharCode(parseInt(u,16)))}parseOpen(c){switch(c.name){case"t":return this._text=[],!0;default:return!1}}parseText(c){this._text.push(c)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(r,i,n){const t=r("../../../doc/enums"),c=r("../../../utils/utils"),u=r("../base-xform"),f={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((l,g)=>(l[g]=!0,l),{}),horizontal(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((l,g)=>(l[g]=!0,l),{}),vertical(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText:l=>!!l||void 0,shrinkToFit:l=>!!l||void 0,textRotation(l){switch(l){case"vertical":return l;default:return(l=c.validInt(l))>=-90&&l<=90?l:void 0}},indent:l=>(l=c.validInt(l),Math.max(0,l)),readingOrder(l){switch(l){case"ltr":return t.ReadingOrder.LeftToRight;case"rtl":return t.ReadingOrder.RightToLeft;default:return}}},o={toXml(l){if(l=f.textRotation(l)){if(l==="vertical")return 255;const g=Math.round(l);if(g>=0&&g<=90)return g;if(g<0&&g>=-90)return 90-g}},toModel(l){const g=c.validInt(l);if(g!==void 0){if(g===255)return"vertical";if(g>=0&&g<=90)return g;if(g>90&&g<=180)return 90-g}}};i.exports=class extends u{get tag(){return"alignment"}render(l,g){l.addRollback(),l.openNode("alignment");let m=!1;function p(_,y){y&&(l.addAttribute(_,y),m=!0)}p("horizontal",f.horizontal(g.horizontal)),p("vertical",f.vertical(g.vertical)),p("wrapText",!!f.wrapText(g.wrapText)&&"1"),p("shrinkToFit",!!f.shrinkToFit(g.shrinkToFit)&&"1"),p("indent",f.indent(g.indent)),p("textRotation",o.toXml(g.textRotation)),p("readingOrder",f.readingOrder(g.readingOrder)),l.closeNode(),m?l.commit():l.rollback()}parseOpen(l){const g={};let m=!1;function p(_,y,h){_&&(g[y]=h,m=!0)}p(l.attributes.horizontal,"horizontal",l.attributes.horizontal),p(l.attributes.vertical,"vertical",l.attributes.vertical==="center"?"middle":l.attributes.vertical),p(l.attributes.wrapText,"wrapText",c.parseBoolean(l.attributes.wrapText)),p(l.attributes.shrinkToFit,"shrinkToFit",c.parseBoolean(l.attributes.shrinkToFit)),p(l.attributes.indent,"indent",parseInt(l.attributes.indent,10)),p(l.attributes.textRotation,"textRotation",o.toModel(l.attributes.textRotation)),p(l.attributes.readingOrder,"readingOrder",l.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=m?g:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(r,i,n){const t=r("../base-xform"),c=r("../../../utils/utils"),u=r("./color-xform");class f extends t{constructor(l){super(),this.name=l,this.map={color:new u}}get tag(){return this.name}render(l,g,m){const p=g&&g.color||m||this.defaultColor;l.openNode(this.name),g&&g.style&&(l.addAttribute("style",g.style),p&&this.map.color.render(l,p)),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.name:{const{style:g}=l.attributes;return this.model=g?{style:g}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):(l===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(l){return f.validStyleValues[l]}}f.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((o,l)=>(o[l]=!0,o),{}),i.exports=class extends t{constructor(){super(),this.map={top:new f("top"),left:new f("left"),bottom:new f("bottom"),right:new f("right"),diagonal:new f("diagonal")}}render(o,l){const{color:g}=l;function m(p,_){p&&!p.color&&l.color&&(p={...p,color:l.color}),_.render(o,p,g)}o.openNode("border"),l.diagonal&&l.diagonal.style&&(l.diagonal.up&&o.addAttribute("diagonalUp","1"),l.diagonal.down&&o.addAttribute("diagonalDown","1")),m(l.left,this.map.left),m(l.right,this.map.right),m(l.top,this.map.top),m(l.bottom,this.map.bottom),m(l.diagonal,this.map.diagonal),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"border":return this.reset(),this.diagonalUp=c.parseBoolean(o.attributes.diagonalUp),this.diagonalDown=c.parseBoolean(o.attributes.diagonalDown),!0;default:return this.parser=this.map[o.name],!!this.parser&&(this.parser.parseOpen(o),!0)}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;if(o==="border"){const l=this.model={},g=function(m,p,_){p&&(_&&Object.assign(p,_),l[m]=p)};g("left",this.map.left.model),g("right",this.map.right.model),g("top",this.map.top.model),g("bottom",this.map.bottom.model),g("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{constructor(c){super(),this.name=c||"color"}get tag(){return this.name}render(c,u){return!!u&&(c.openNode(this.name),u.argb?c.addAttribute("rgb",u.argb):u.theme!==void 0?(c.addAttribute("theme",u.theme),u.tint!==void 0&&c.addAttribute("tint",u.tint)):u.indexed!==void 0?c.addAttribute("indexed",u.indexed):c.addAttribute("auto","1"),c.closeNode(),!0)}parseOpen(c){return c.name===this.name&&(c.attributes.rgb?this.model={argb:c.attributes.rgb}:c.attributes.theme?(this.model={theme:parseInt(c.attributes.theme,10)},c.attributes.tint&&(this.model.tint=parseFloat(c.attributes.tint))):c.attributes.indexed?this.model={indexed:parseInt(c.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(r,i,n){const t=r("../base-xform"),c=r("./alignment-xform"),u=r("./border-xform"),f=r("./fill-xform"),o=r("./font-xform"),l=r("./numfmt-xform"),g=r("./protection-xform");i.exports=class extends t{constructor(){super(),this.map={alignment:new c,border:new u,fill:new f,font:new o,numFmt:new l,protection:new g}}get tag(){return"dxf"}render(m,p){if(m.openNode(this.tag),p.font&&this.map.font.render(m,p.font),p.numFmt&&p.numFmtId){const _={id:p.numFmtId,formatCode:p.numFmt};this.map.numFmt.render(m,_)}p.fill&&this.map.fill.render(m,p.fill),p.alignment&&this.map.alignment.render(m,p.alignment),p.border&&this.map.border.render(m,p.border),p.protection&&this.map.protection.render(m,p.protection),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m!==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)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(r,i,n){const t=r("../base-xform"),c=r("./color-xform");class u extends t{constructor(){super(),this.map={color:new c}}get tag(){return"stop"}render(m,p){m.openNode("stop"),m.addAttribute("position",p.position),this.map.color.render(m,p.color),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"stop":return this.model={position:parseFloat(m.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(m),!0;default:return!1}}parseText(){}parseClose(m){return!!this.parser&&(this.parser.parseClose(m)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class f extends t{constructor(){super(),this.map={fgColor:new c("fgColor"),bgColor:new c("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(m,p){m.openNode("patternFill"),m.addAttribute("patternType",p.pattern),p.fgColor&&this.map.fgColor.render(m,p.fgColor),p.bgColor&&this.map.bgColor.render(m,p.bgColor),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"patternFill":return this.model={type:"pattern",pattern:m.attributes.patternType},!0;default:return this.parser=this.map[m.name],!!this.parser&&(this.parser.parseOpen(m),!0)}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return!!this.parser&&(this.parser.parseClose(m)||(this.parser.model&&(this.model[m]=this.parser.model),this.parser=void 0),!0)}}class o extends t{constructor(){super(),this.map={stop:new u}}get name(){return"gradient"}get tag(){return"gradientFill"}render(m,p){switch(m.openNode("gradientFill"),p.gradient){case"angle":m.addAttribute("degree",p.degree);break;case"path":m.addAttribute("type","path"),p.center.left&&(m.addAttribute("left",p.center.left),p.center.right===void 0&&m.addAttribute("right",p.center.left)),p.center.right&&m.addAttribute("right",p.center.right),p.center.top&&(m.addAttribute("top",p.center.top),p.center.bottom===void 0&&m.addAttribute("bottom",p.center.top)),p.center.bottom&&m.addAttribute("bottom",p.center.bottom)}const _=this.map.stop;p.stops.forEach(y=>{_.render(m,y)}),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"gradientFill":{const p=this.model={stops:[]};return m.attributes.degree?(p.gradient="angle",p.degree=parseInt(m.attributes.degree,10)):m.attributes.type==="path"&&(p.gradient="path",p.center={left:m.attributes.left?parseFloat(m.attributes.left):0,top:m.attributes.top?parseFloat(m.attributes.top):0},m.attributes.right!==m.attributes.left&&(p.center.right=m.attributes.right?parseFloat(m.attributes.right):0),m.attributes.bottom!==m.attributes.top&&(p.center.bottom=m.attributes.bottom?parseFloat(m.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(m),!0;default:return!1}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return!!this.parser&&(this.parser.parseClose(m)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends t{constructor(){super(),this.map={patternFill:new f,gradientFill:new o}}get tag(){return"fill"}render(m,p){switch(m.addRollback(),m.openNode("fill"),p.type){case"pattern":this.map.patternFill.render(m,p);break;case"gradient":this.map.gradientFill.render(m,p);break;default:return void m.rollback()}m.closeNode(),m.commit()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"fill":return this.model={},!0;default:return this.parser=this.map[m.name],!!this.parser&&(this.parser.parseOpen(m),!0)}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return!!this.parser&&(this.parser.parseClose(m)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(m){return l.validPatternValues[m]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((g,m)=>(g[m]=!0,g),{}),l.StopXform=u,l.PatternFillXform=f,l.GradientFillXform=o,i.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(r,i,n){const t=r("./color-xform"),c=r("../simple/boolean-xform"),u=r("../simple/integer-xform"),f=r("../simple/string-xform"),o=r("./underline-xform"),l=r("../../../utils/under-dash"),g=r("../base-xform");class m extends g{constructor(_){super(),this.options=_||m.OPTIONS,this.map={b:{prop:"bold",xform:new c({tag:"b",attr:"val"})},i:{prop:"italic",xform:new c({tag:"i",attr:"val"})},u:{prop:"underline",xform:new o},charset:{prop:"charset",xform:new u({tag:"charset",attr:"val"})},color:{prop:"color",xform:new t},condense:{prop:"condense",xform:new c({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new c({tag:"extend",attr:"val"})},family:{prop:"family",xform:new u({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new c({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new f({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new f({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new c({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new c({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new u({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new f({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(_,y){const{map:h}=this;_.openNode(this.options.tagName),l.each(this.map,(d,A)=>{h[A].xform.render(_,y[d.prop])}),_.closeNode()}parseOpen(_){if(this.parser)return this.parser.parseOpen(_),!0;if(this.map[_.name])return this.parser=this.map[_.name].xform,this.parser.parseOpen(_);switch(_.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(_){this.parser&&this.parser.parseText(_)}parseClose(_){if(this.parser&&!this.parser.parseClose(_)){const y=this.map[_];return this.parser.model&&(this.model[y.prop]=this.parser.model),this.parser=void 0,!0}switch(_){case this.options.tagName:return!1;default:return!0}}}m.OPTIONS={tagName:"font",fontNameTag:"name"},i.exports=m},{"../../../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(r,i,n){const t=r("../../../utils/under-dash"),c=r("../../defaultnumformats"),u=r("../base-xform"),f=(function(){const l={};return t.each(c,(g,m)=>{g.f&&(l[g.f]=parseInt(m,10))}),l})();class o extends u{constructor(g,m){super(),this.id=g,this.formatCode=m}get tag(){return"numFmt"}render(g,m){g.leafNode("numFmt",{numFmtId:m.id,formatCode:m.formatCode})}parseOpen(g){switch(g.name){case"numFmt":return this.model={id:parseInt(g.attributes.numFmtId,10),formatCode:g.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}o.getDefaultFmtId=function(l){return f[l]},o.getDefaultFmtCode=function(l){return c[l]&&c[l].f},i.exports=o},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(r,i,n){const t=r("../base-xform"),c={boolean:(u,f)=>u===void 0?f:u};i.exports=class extends t{get tag(){return"protection"}render(u,f){u.addRollback(),u.openNode("protection");let o=!1;function l(g,m){m!==void 0&&(u.addAttribute(g,m),o=!0)}l("locked",c.boolean(f.locked,!0)?void 0:"0"),l("hidden",c.boolean(f.hidden,!1)?"1":void 0),u.closeNode(),o?u.commit():u.rollback()}parseOpen(u){const f={locked:u.attributes.locked!=="0",hidden:u.attributes.hidden==="1"},o=!f.locked||f.hidden;this.model=o?f:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(r,i,n){const t=r("../base-xform"),c=r("./alignment-xform"),u=r("./protection-xform");i.exports=class extends t{constructor(f){super(),this.xfId=!(!f||!f.xfId),this.map={alignment:new c,protection:new u}}get tag(){return"xf"}render(f,o){f.openNode("xf",{numFmtId:o.numFmtId||0,fontId:o.fontId||0,fillId:o.fillId||0,borderId:o.borderId||0}),this.xfId&&f.addAttribute("xfId",o.xfId||0),o.numFmtId&&f.addAttribute("applyNumberFormat","1"),o.fontId&&f.addAttribute("applyFont","1"),o.fillId&&f.addAttribute("applyFill","1"),o.borderId&&f.addAttribute("applyBorder","1"),o.alignment&&f.addAttribute("applyAlignment","1"),o.protection&&f.addAttribute("applyProtection","1"),o.alignment&&this.map.alignment.render(f,o.alignment),o.protection&&this.map.protection.render(f,o.protection),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"xf":return this.model={numFmtId:parseInt(f.attributes.numFmtId,10),fontId:parseInt(f.attributes.fontId,10),fillId:parseInt(f.attributes.fillId,10),borderId:parseInt(f.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(f.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(f),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):f!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(r,i,n){const t=r("../../../doc/enums"),c=r("../../../utils/xml-stream"),u=r("../base-xform"),f=r("../static-xform"),o=r("../list-xform"),l=r("./font-xform"),g=r("./fill-xform"),m=r("./border-xform"),p=r("./numfmt-xform"),_=r("./style-xform"),y=r("./dxf-xform");class h extends u{constructor(A){super(),this.map={numFmts:new o({tag:"numFmts",count:!0,childXform:new p}),fonts:new o({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new o({tag:"fills",count:!0,childXform:new g}),borders:new o({tag:"borders",count:!0,childXform:new m}),cellStyleXfs:new o({tag:"cellStyleXfs",count:!0,childXform:new _}),cellXfs:new o({tag:"cellXfs",count:!0,childXform:new _({xfId:!0})}),dxfs:new o({tag:"dxfs",always:!0,count:!0,childXform:new y}),numFmt:new p,font:new l,fill:new g,border:new m,style:new _({xfId:!0}),cellStyles:h.STATIC_XFORMS.cellStyles,tableStyles:h.STATIC_XFORMS.tableStyles,extLst:h.STATIC_XFORMS.extLst},A&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){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}render(A,v){v=v||this.model,A.openXml(c.StdDocAttributes),A.openNode("styleSheet",h.STYLESHEET_ATTRIBUTES),this.index?(v.numFmts&&v.numFmts.length&&(A.openNode("numFmts",{count:v.numFmts.length}),v.numFmts.forEach(w=>{A.writeXml(w)}),A.closeNode()),v.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),A.openNode("fonts",{count:v.fonts.length,"x14ac:knownFonts":1}),v.fonts.forEach(w=>{A.writeXml(w)}),A.closeNode(),A.openNode("fills",{count:v.fills.length}),v.fills.forEach(w=>{A.writeXml(w)}),A.closeNode(),A.openNode("borders",{count:v.borders.length}),v.borders.forEach(w=>{A.writeXml(w)}),A.closeNode(),this.map.cellStyleXfs.render(A,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),A.openNode("cellXfs",{count:v.styles.length}),v.styles.forEach(w=>{A.writeXml(w)}),A.closeNode()):(this.map.numFmts.render(A,v.numFmts),this.map.fonts.render(A,v.fonts),this.map.fills.render(A,v.fills),this.map.borders.render(A,v.borders),this.map.cellStyleXfs.render(A,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(A,v.styles)),h.STATIC_XFORMS.cellStyles.render(A),this.map.dxfs.render(A,v.dxfs),h.STATIC_XFORMS.tableStyles.render(A),h.STATIC_XFORMS.extLst.render(A),A.closeNode()}parseOpen(A){if(this.parser)return this.parser.parseOpen(A),!0;switch(A.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[A.name],this.parser&&this.parser.parseOpen(A),!0}}parseText(A){this.parser&&this.parser.parseText(A)}parseClose(A){if(this.parser)return this.parser.parseClose(A)||(this.parser=void 0),!0;switch(A){case"styleSheet":{this.model={};const v=(w,x)=>{x.model&&x.model.length&&(this.model[w]=x.model)};if(v("numFmts",this.map.numFmts),v("fonts",this.map.fonts),v("fills",this.map.fills),v("borders",this.map.borders),v("styles",this.map.cellXfs),v("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const w=this.index.numFmt;this.model.numFmts.forEach(x=>{w[x.id]=x.formatCode})}return!1}default:return!0}}addStyleModel(A,v){if(!A)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(A))return this.weakMap.get(A);const w={};if(v=v||t.ValueType.Number,A.numFmt)w.numFmtId=this._addNumFmtStr(A.numFmt);else switch(v){case t.ValueType.Number:w.numFmtId=this._addNumFmtStr("General");break;case t.ValueType.Date:w.numFmtId=this._addNumFmtStr("mm-dd-yy")}A.font&&(w.fontId=this._addFont(A.font)),A.border&&(w.borderId=this._addBorder(A.border)),A.fill&&(w.fillId=this._addFill(A.fill)),A.alignment&&(w.alignment=A.alignment),A.protection&&(w.protection=A.protection);const x=this._addStyle(w);return this.weakMap&&this.weakMap.set(A,x),x}getStyleModel(A){const v=this.model.styles[A];if(!v)return null;let w=this.index.model[A];if(w)return w;if(w=this.index.model[A]={},v.numFmtId){const C=this.index.numFmt[v.numFmtId]||p.getDefaultFmtCode(v.numFmtId);C&&(w.numFmt=C)}function x(C,k,T){if(T||T===0){const S=k[T];S&&(w[C]=S)}}return x("font",this.model.fonts,v.fontId),x("border",this.model.borders,v.borderId),x("fill",this.model.fills,v.fillId),v.alignment&&(w.alignment=v.alignment),v.protection&&(w.protection=v.protection),w}addDxfStyle(A){return A.numFmt&&(A.numFmtId=this._addNumFmtStr(A.numFmt)),this.model.dxfs.push(A),this.model.dxfs.length-1}getDxfStyle(A){return this.model.dxfs[A]}_addStyle(A){const v=this.map.style.toXml(A);let w=this.index.style[v];return w===void 0&&(w=this.index.style[v]=this.model.styles.length,this.model.styles.push(v)),w}_addNumFmtStr(A){let v=p.getDefaultFmtId(A);if(v!==void 0||(v=this.index.numFmt[A],v!==void 0))return v;v=this.index.numFmt[A]=164+this.model.numFmts.length;const w=this.map.numFmt.toXml({id:v,formatCode:A});return this.model.numFmts.push(w),v}_addFont(A){const v=this.map.font.toXml(A);let w=this.index.font[v];return w===void 0&&(w=this.index.font[v]=this.model.fonts.length,this.model.fonts.push(v)),w}_addBorder(A){const v=this.map.border.toXml(A);let w=this.index.border[v];return w===void 0&&(w=this.index.border[v]=this.model.borders.length,this.model.borders.push(v)),w}_addFill(A){const v=this.map.fill.toXml(A);let w=this.index.fill[v];return w===void 0&&(w=this.index.fill[v]=this.model.fills.length,this.model.fills.push(v)),w}}h.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"},h.STATIC_XFORMS={cellStyles:new f({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new f({tag:"dxfs",$:{count:0}}),tableStyles:new f({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new f({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"}}]}]})},h.Mock=class extends h{constructor(){super(),this.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"}]}}parseStream(d){return d.autodrain(),Promise.resolve()}addStyleModel(d,A){switch(A){case t.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const d={numFmtId:p.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(d)}return this._dateStyleId}getStyleModel(){return{}}},i.exports=h},{"../../../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(r,i,n){const t=r("../base-xform");class c extends t{constructor(f){super(),this.model=f}get tag(){return"u"}render(f,o){if((o=o||this.model)===!0)f.leafNode("u");else{const l=c.Attributes[o];l&&f.leafNode("u",l)}}parseOpen(f){f.name==="u"&&(this.model=f.attributes.val||!0)}parseText(){}parseClose(){return!1}}c.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},i.exports=c},{"../base-xform":32}],137:[function(r,i,n){const t=r("../base-xform"),c=r("./filter-column-xform");i.exports=class extends t{constructor(){super(),this.map={filterColumn:new c}}get tag(){return"autoFilter"}prepare(u){u.columns.forEach((f,o)=>{this.map.filterColumn.prepare(f,{index:o})})}render(u,f){return u.openNode(this.tag,{ref:f.autoFilterRef}),f.columns.forEach(o=>{this.map.filterColumn.render(u,o)}),u.closeNode(),!0}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:return this.model={autoFilterRef:u.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(u){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+u)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"customFilter"}render(c,u){c.leafNode(this.tag,{val:u.val,operator:u.operator})}parseOpen(c){return c.name===this.tag&&(this.model={val:c.attributes.val,operator:c.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(r,i,n){const t=r("../base-xform"),c=r("../list-xform"),u=r("./custom-filter-xform"),f=r("./filter-xform");i.exports=class extends t{constructor(){super(),this.map={customFilters:new c({tag:"customFilters",count:!1,empty:!0,childXform:new u}),filters:new c({tag:"filters",count:!1,empty:!0,childXform:new f})}}get tag(){return"filterColumn"}prepare(o,l){o.colId=l.index.toString()}render(o,l){return l.customFilters?(o.openNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),this.map.customFilters.render(o,l.customFilters),o.closeNode(),!0):(o.leafNode(this.tag,{colId:l.colId,hiddenButton:l.filterButton?"0":"1"}),!0)}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;const{attributes:l}=o;switch(o.name){case this.tag:return this.model={filterButton:l.hiddenButton==="0"},!0;default:if(this.parser=this.map[o.name],this.parser)return this.parseOpen(o),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"filter"}render(c,u){c.leafNode(this.tag,{val:u.val})}parseOpen(c){return c.name===this.tag&&(this.model={val:c.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"tableColumn"}prepare(c,u){c.id=u.index+1}render(c,u){return c.leafNode(this.tag,{id:u.id.toString(),name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId}),!0}parseOpen(c){if(c.name===this.tag){const{attributes:u}=c;return this.model={name:u.name,totalsRowLabel:u.totalsRowLabel,totalsRowFunction:u.totalsRowFunction,dxfId:u.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(r,i,n){const t=r("../base-xform");i.exports=class extends t{get tag(){return"tableStyleInfo"}render(c,u){return c.leafNode(this.tag,{name:u.theme?u.theme:void 0,showFirstColumn:u.showFirstColumn?"1":"0",showLastColumn:u.showLastColumn?"1":"0",showRowStripes:u.showRowStripes?"1":"0",showColumnStripes:u.showColumnStripes?"1":"0"}),!0}parseOpen(c){if(c.name===this.tag){const{attributes:u}=c;return this.model={theme:u.name?u.name:null,showFirstColumn:u.showFirstColumn==="1",showLastColumn:u.showLastColumn==="1",showRowStripes:u.showRowStripes==="1",showColumnStripes:u.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(r,i,n){const t=r("../../../utils/xml-stream"),c=r("../base-xform"),u=r("../list-xform"),f=r("./auto-filter-xform"),o=r("./table-column-xform"),l=r("./table-style-info-xform");class g extends c{constructor(){super(),this.map={autoFilter:new f,tableColumns:new u({tag:"tableColumns",count:!0,empty:!0,childXform:new o}),tableStyleInfo:new l}}prepare(p,_){this.map.autoFilter.prepare(p),this.map.tableColumns.prepare(p.columns,_)}get tag(){return"table"}render(p,_){p.openXml(t.StdDocAttributes),p.openNode(this.tag,{...g.TABLE_ATTRIBUTES,id:_.id,name:_.name,displayName:_.displayName||_.name,ref:_.tableRef,totalsRowCount:_.totalsRow?"1":void 0,totalsRowShown:_.totalsRow?void 0:"1",headerRowCount:_.headerRow?"1":"0"}),this.map.autoFilter.render(p,_),this.map.tableColumns.render(p,_.columns),this.map.tableStyleInfo.render(p,_.style),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;const{name:_,attributes:y}=p;switch(_){case this.tag:this.reset(),this.model={name:y.name,displayName:y.displayName||y.name,tableRef:y.ref,totalsRow:y.totalsRowCount==="1",headerRow:y.headerRowCount==="1"};break;default:this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p)}return!0}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case this.tag:return 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((_,y)=>{this.model.columns[y].filterButton=_.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(p,_){p.columns.forEach(y=>{y.dxfId!==void 0&&(y.style=_.styles.getDxfStyle(y.dxfId))})}}g.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"},i.exports=g},{"../../../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(r,i,n){(function(t,c){(function(){const u=r("fs"),f=r("jszip"),{PassThrough:o}=r("readable-stream"),l=r("../utils/zip-stream"),g=r("../utils/stream-buf"),m=r("../utils/utils"),p=r("../utils/xml-stream"),{bufferToString:_}=r("../utils/browser-buffer-decode"),y=r("./xform/style/styles-xform"),h=r("./xform/core/core-xform"),d=r("./xform/strings/shared-strings-xform"),A=r("./xform/core/relationships-xform"),v=r("./xform/core/content-types-xform"),w=r("./xform/core/app-xform"),x=r("./xform/book/workbook-xform"),C=r("./xform/sheet/worksheet-xform"),k=r("./xform/drawing/drawing-xform"),T=r("./xform/table/table-xform"),S=r("./xform/comment/comments-xform"),M=r("./xform/comment/vml-notes-xform"),P=r("./xml/theme1");class N{constructor(O){this.workbook=O}async readFile(O,I){if(!await m.fs.exists(O))throw new Error("File not found: "+O);const F=u.createReadStream(O);try{const L=await this.read(F,I);return F.close(),L}catch(L){throw F.close(),L}}parseRels(O){return new A().parseStream(O)}parseWorkbook(O){return new x().parseStream(O)}parseSharedStrings(O){return new d().parseStream(O)}reconcile(O,I){const F=new x,L=new C(I),R=new k,U=new T;F.reconcile(O);const V={media:O.media,mediaIndex:O.mediaIndex};Object.keys(O.drawings).forEach(le=>{const G=O.drawings[le],fe=O.drawingRels[le];fe&&(V.rels=fe.reduce((ie,he)=>(ie[he.Id]=he,ie),{}),(G.anchors||[]).forEach(ie=>{const he=ie.picture&&ie.picture.hyperlinks;he&&V.rels[he.rId]&&(he.hyperlink=V.rels[he.rId].Target,delete he.rId)}),R.reconcile(G,V))});const W={styles:O.styles};Object.values(O.tables).forEach(le=>{U.reconcile(le,W)});const Q={styles:O.styles,sharedStrings:O.sharedStrings,media:O.media,mediaIndex:O.mediaIndex,date1904:O.properties&&O.properties.date1904,drawings:O.drawings,comments:O.comments,tables:O.tables,vmlDrawings:O.vmlDrawings};O.worksheets.forEach(le=>{le.relationships=O.worksheetRels[le.sheetNo],L.reconcile(le,Q)}),delete O.worksheetHash,delete O.worksheetRels,delete O.globalRels,delete O.sharedStrings,delete O.workbookRels,delete O.sheetDefs,delete O.styles,delete O.mediaIndex,delete O.drawings,delete O.drawingRels,delete O.vmlDrawings}async _processWorksheetEntry(O,I,F,L,R){const U=new C(L),V=await U.parseStream(O);V.sheetNo=F,I.worksheetHash[R]=V,I.worksheets.push(V)}async _processCommentEntry(O,I,F){const L=new S,R=await L.parseStream(O);I.comments[`../${F}.xml`]=R}async _processTableEntry(O,I,F){const L=new T,R=await L.parseStream(O);I.tables[`../tables/${F}.xml`]=R}async _processWorksheetRelsEntry(O,I,F){const L=new A,R=await L.parseStream(O);I.worksheetRels[F]=R}async _processMediaEntry(O,I,F){const L=F.lastIndexOf(".");if(L>=1){const R=F.substr(L+1),U=F.substr(0,L);await new Promise((V,W)=>{const Q=new g;Q.on("finish",()=>{I.mediaIndex[F]=I.media.length,I.mediaIndex[U]=I.media.length;const le={type:"image",name:U,extension:R,buffer:Q.toBuffer()};I.media.push(le),V()}),O.on("error",le=>{W(le)}),O.pipe(Q)})}}async _processDrawingEntry(O,I,F){const L=new k,R=await L.parseStream(O);I.drawings[F]=R}async _processDrawingRelsEntry(O,I,F){const L=new A,R=await L.parseStream(O);I.drawingRels[F]=R}async _processVmlDrawingEntry(O,I,F){const L=new M,R=await L.parseStream(O);I.vmlDrawings[`../drawings/${F}.vml`]=R}async _processThemeEntry(O,I,F){await new Promise((L,R)=>{const U=new g;O.on("error",R),U.on("error",R),U.on("finish",()=>{I.themes[F]=U.read().toString(),L()}),O.pipe(U)})}createInputStream(){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")}async read(O,I){!O[Symbol.asyncIterator]&&O.pipe&&(O=O.pipe(new o));const F=[];for await(const L of O)F.push(L);return this.load(c.concat(F),I)}async load(O,I){let F;F=I&&I.base64?c.from(O.toString(),"base64"):O;const L={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},R=await f.loadAsync(F);for(const U of Object.values(R.files))if(!U.dir){let V,W=U.name;if(W[0]==="/"&&(W=W.substr(1)),W.match(/xl\/media\//)||W.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))V=new o,V.write(await U.async("nodebuffer"));else{let Q;V=new o({writableObjectMode:!0,readableObjectMode:!0}),Q=t.browser?_(await U.async("nodebuffer")):await U.async("string");const le=16384;for(let G=0;G<Q.length;G+=le)V.write(Q.substring(G,G+le))}switch(V.end(),W){case"_rels/.rels":L.globalRels=await this.parseRels(V);break;case"xl/workbook.xml":{const Q=await this.parseWorkbook(V);L.sheets=Q.sheets,L.definedNames=Q.definedNames,L.views=Q.views,L.properties=Q.properties,L.calcProperties=Q.calcProperties;break}case"xl/_rels/workbook.xml.rels":L.workbookRels=await this.parseRels(V);break;case"xl/sharedStrings.xml":L.sharedStrings=new d,await L.sharedStrings.parseStream(V);break;case"xl/styles.xml":L.styles=new y,await L.styles.parseStream(V);break;case"docProps/app.xml":{const Q=new w,le=await Q.parseStream(V);L.company=le.company,L.manager=le.manager;break}case"docProps/core.xml":{const Q=new h,le=await Q.parseStream(V);Object.assign(L,le);break}default:{let Q=W.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(Q){await this._processWorksheetEntry(V,L,Q[1],I,W);break}if(Q=W.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),Q){await this._processWorksheetRelsEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),Q){await this._processThemeEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),Q){await this._processMediaEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),Q){await this._processDrawingEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/(comments\d+)[.]xml/),Q){await this._processCommentEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/tables\/(table\d+)[.]xml/),Q){await this._processTableEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),Q){await this._processDrawingRelsEntry(V,L,Q[1]);break}if(Q=W.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),Q){await this._processVmlDrawingEntry(V,L,Q[1]);break}}}}return this.reconcile(L,I),this.workbook.model=L,this.workbook}async addMedia(O,I){await Promise.all(I.media.map(async F=>{if(F.type==="image"){const L=`xl/media/${F.name}.${F.extension}`;if(F.filename){const R=await(function(U,V){return new Promise((W,Q)=>{u.readFile(U,V,(le,G)=>{le?Q(le):W(G)})})})(F.filename);return O.append(R,{name:L})}if(F.buffer)return O.append(F.buffer,{name:L});if(F.base64){const R=F.base64,U=R.substring(R.indexOf(",")+1);return O.append(U,{name:L,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(O,I){const F=new k,L=new A;I.worksheets.forEach(R=>{const{drawing:U}=R;if(U){F.prepare(U,{});let V=F.toXml(U);O.append(V,{name:`xl/drawings/${U.name}.xml`}),V=L.toXml(U.rels),O.append(V,{name:`xl/drawings/_rels/${U.name}.xml.rels`})}})}addTables(O,I){const F=new T;I.worksheets.forEach(L=>{const{tables:R}=L;R.forEach(U=>{F.prepare(U,{});const V=F.toXml(U);O.append(V,{name:"xl/tables/"+U.target})})})}async addContentTypes(O,I){const F=new v().toXml(I);O.append(F,{name:"[Content_Types].xml"})}async addApp(O,I){const F=new w().toXml(I);O.append(F,{name:"docProps/app.xml"})}async addCore(O,I){const F=new h;O.append(F.toXml(I),{name:"docProps/core.xml"})}async addThemes(O,I){const F=I.themes||{theme1:P};Object.keys(F).forEach(L=>{const R=F[L],U=`xl/theme/${L}.xml`;O.append(R,{name:U})})}async addOfficeRels(O){const I=new A().toXml([{Id:"rId1",Type:N.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:N.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:N.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);O.append(I,{name:"_rels/.rels"})}async addWorkbookRels(O,I){let F=1;const L=[{Id:"rId"+F++,Type:N.RelType.Styles,Target:"styles.xml"},{Id:"rId"+F++,Type:N.RelType.Theme,Target:"theme/theme1.xml"}];I.sharedStrings.count&&L.push({Id:"rId"+F++,Type:N.RelType.SharedStrings,Target:"sharedStrings.xml"}),I.worksheets.forEach(U=>{U.rId="rId"+F++,L.push({Id:U.rId,Type:N.RelType.Worksheet,Target:`worksheets/sheet${U.id}.xml`})});const R=new A().toXml(L);O.append(R,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(O,I){I.sharedStrings&&I.sharedStrings.count&&O.append(I.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(O,I){const{xml:F}=I.styles;F&&O.append(F,{name:"xl/styles.xml"})}async addWorkbook(O,I){const F=new x;O.append(F.toXml(I),{name:"xl/workbook.xml"})}async addWorksheets(O,I){const F=new C,L=new A,R=new S,U=new M;I.worksheets.forEach(V=>{let W=new p;F.render(W,V),O.append(W.xml,{name:`xl/worksheets/sheet${V.id}.xml`}),V.rels&&V.rels.length&&(W=new p,L.render(W,V.rels),O.append(W.xml,{name:`xl/worksheets/_rels/sheet${V.id}.xml.rels`})),V.comments.length>0&&(W=new p,R.render(W,V),O.append(W.xml,{name:`xl/comments${V.id}.xml`}),W=new p,U.render(W,V),O.append(W.xml,{name:`xl/drawings/vmlDrawing${V.id}.vml`}))})}_finalize(O){return new Promise((I,F)=>{O.on("finish",()=>{I(this)}),O.on("error",F),O.finalize()})}prepareModel(O,I){O.creator=O.creator||"ExcelJS",O.lastModifiedBy=O.lastModifiedBy||"ExcelJS",O.created=O.created||new Date,O.modified=O.modified||new Date,O.useSharedStrings=I.useSharedStrings===void 0||I.useSharedStrings,O.useStyles=I.useStyles===void 0||I.useStyles,O.sharedStrings=new d,O.styles=O.useStyles?new y(!0):new y.Mock;const F=new x,L=new C;F.prepare(O);const R={sharedStrings:O.sharedStrings,styles:O.styles,date1904:O.properties.date1904,drawingsCount:0,media:O.media};R.drawings=O.drawings=[],R.commentRefs=O.commentRefs=[];let U=0;O.tables=[],O.worksheets.forEach(V=>{V.tables.forEach(W=>{U++,W.target=`table${U}.xml`,W.id=U,O.tables.push(W)}),L.prepare(V,R)})}async write(O,I){I=I||{};const{model:F}=this.workbook,L=new l.ZipWriter(I.zip);return L.pipe(O),this.prepareModel(F,I),await this.addContentTypes(L,F),await this.addOfficeRels(L,F),await this.addWorkbookRels(L,F),await this.addWorksheets(L,F),await this.addSharedStrings(L,F),await this.addDrawings(L,F),await this.addTables(L,F),await Promise.all([this.addThemes(L,F),this.addStyles(L,F)]),await this.addMedia(L,F),await Promise.all([this.addApp(L,F),this.addCore(L,F)]),await this.addWorkbook(L,F),this._finalize(L)}writeFile(O,I){const F=u.createWriteStream(O);return new Promise((L,R)=>{F.on("finish",()=>{L()}),F.on("error",U=>{R(U)}),this.write(F,I).then(()=>{F.end()}).catch(U=>{R(U)})})}async writeBuffer(O){const I=new g;return await this.write(I,O),I.read()}}N.RelType=r("./rel-type"),i.exports=N}).call(this)}).call(this,r("_process"),r("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(r,i,n){i.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="ＭＳ Ｐゴシック"/> <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="ＭＳ Ｐゴシック"/> <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(r,i,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvFormatterStream=void 0;const c=r("stream"),u=r("./formatter");class f extends c.Transform{constructor(l){super({writableObjectMode:l.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=l,this.rowFormatter=new u.RowFormatter(l),this.hasWrittenBOM=!l.writeBOM}transform(l){return this.rowFormatter.rowTransform=l,this}_transform(l,g,m){let p=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(l,(_,y)=>_?(p=!0,m(_)):(y&&y.forEach(h=>{this.push(t.from(h,"utf8"))}),p=!0,m()))}catch(_){if(p)throw _;m(_)}}_flush(l){this.rowFormatter.finish((g,m)=>g?l(g):(m&&m.forEach(p=>{this.push(t.from(p,"utf8"))}),l()))}}n.CsvFormatterStream=f}).call(this)}).call(this,r("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FormatterOptions=void 0,n.FormatterOptions=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var c;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,t||{}),(t==null?void 0:t.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(t==null?void 0:t.quote)===!0?this.quote='"':(t==null?void 0:t.quote)===!1&&(this.quote=""),typeof(t==null?void 0:t.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((c=t.writeHeaders)===null||c===void 0||c),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(r,i,n){var t=function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=void 0;const c=t(r("lodash.isboolean")),u=t(r("lodash.isnil")),f=t(r("lodash.escaperegexp"));n.FieldFormatter=class{constructor(o){this._headers=null,this.formatterOptions=o,o.headers!==null&&(this.headers=o.headers),this.REPLACE_REGEXP=new RegExp(o.quote,"g");const l=`[${o.delimiter}${f.default(o.rowDelimiter)}|\r|
]`;this.ESCAPE_REGEXP=new RegExp(l)}set headers(o){this._headers=o}shouldQuote(o,l){const g=l?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return c.default(g)?g:Array.isArray(g)?g[o]:this._headers!==null&&g[this._headers[o]]}format(o,l,g){const m=(""+(u.default(o)?"":o)).replace(/\0/g,""),{formatterOptions:p}=this;return p.quote!==""&&m.indexOf(p.quote)!==-1?this.quoteField(m.replace(this.REPLACE_REGEXP,p.escapedQuote)):m.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(l,g)?this.quoteField(m):m}quoteField(o){const{quote:l}=this.formatterOptions;return`${l}${o}${l}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(r,i,n){var t=function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowFormatter=void 0;const c=t(r("lodash.isfunction")),u=t(r("lodash.isequal")),f=r("./FieldFormatter"),o=r("../types");class l{constructor(m){this.rowCount=0,this.formatterOptions=m,this.fieldFormatter=new f.FieldFormatter(m),this.headers=m.headers,this.shouldWriteHeaders=m.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),m.transform&&(this.rowTransform=m.transform)}static isRowHashArray(m){return!!Array.isArray(m)&&Array.isArray(m[0])&&m[0].length===2}static isRowArray(m){return Array.isArray(m)&&!this.isRowHashArray(m)}static gatherHeaders(m){return l.isRowHashArray(m)?m.map(p=>p[0]):Array.isArray(m)?m:Object.keys(m)}static createTransform(m){return o.isSyncTransform(m)?(p,_)=>{let y=null;try{y=m(p)}catch(h){return _(h)}return _(null,y)}:(p,_)=>{m(p,_)}}set rowTransform(m){if(!c.default(m))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(m)}format(m,p){this.callTransformer(m,(_,y)=>{if(_)return p(_);if(!m)return p(null);const h=[];if(y){const{shouldFormatColumns:d,headers:A}=this.checkHeaders(y);if(this.shouldWriteHeaders&&A&&!this.hasWrittenHeaders&&(h.push(this.formatColumns(A,!0)),this.hasWrittenHeaders=!0),d){const v=this.gatherColumns(y);h.push(this.formatColumns(v,!1))}}return p(null,h)})}finish(m){const p=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return m(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));p.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&p.push(this.formatterOptions.rowDelimiter),m(null,p)}checkHeaders(m){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const p=l.gatherHeaders(m);return this.headers=p,this.fieldFormatter.headers=p,this.shouldWriteHeaders?{shouldFormatColumns:!u.default(p,m),headers:p}:{shouldFormatColumns:!0,headers:null}}gatherColumns(m){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(m)?l.isRowHashArray(m)?this.headers.map((p,_)=>{const y=m[_];return y?y[1]:""}):l.isRowArray(m)&&!this.shouldWriteHeaders?m:this.headers.map((p,_)=>m[_]):this.headers.map(p=>m[p])}callTransformer(m,p){return this._rowTransform?this._rowTransform(m,p):p(null,m)}formatColumns(m,p){const _=m.map((h,d)=>this.fieldFormatter.format(h,d,p)).join(this.formatterOptions.delimiter),{rowCount:y}=this;return this.rowCount+=1,y?[this.formatterOptions.rowDelimiter,_].join(""):_}}n.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FieldFormatter=n.RowFormatter=void 0;var t=r("./RowFormatter");Object.defineProperty(n,"RowFormatter",{enumerable:!0,get:function(){return t.RowFormatter}});var c=r("./FieldFormatter");Object.defineProperty(n,"FieldFormatter",{enumerable:!0,get:function(){return c.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(r,i,n){(function(t){(function(){var c=Object.create?function(d,A,v,w){w===void 0&&(w=v),Object.defineProperty(d,w,{enumerable:!0,get:function(){return A[v]}})}:function(d,A,v,w){w===void 0&&(w=v),d[w]=A[v]},u=Object.create?function(d,A){Object.defineProperty(d,"default",{enumerable:!0,value:A})}:function(d,A){d.default=A},f=function(d){if(d&&d.__esModule)return d;var A={};if(d!=null)for(var v in d)v!=="default"&&Object.prototype.hasOwnProperty.call(d,v)&&c(A,d,v);return u(A,d),A},o=function(d,A){for(var v in d)v==="default"||Object.prototype.hasOwnProperty.call(A,v)||c(A,d,v)};Object.defineProperty(n,"__esModule",{value:!0}),n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=n.FormatterOptions=n.CsvFormatterStream=void 0;const l=r("util"),g=r("stream"),m=f(r("fs")),p=r("./FormatterOptions"),_=r("./CsvFormatterStream");o(r("./types"),n);var y=r("./CsvFormatterStream");Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return y.CsvFormatterStream}});var h=r("./FormatterOptions");Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return h.FormatterOptions}}),n.format=d=>new _.CsvFormatterStream(new p.FormatterOptions(d)),n.write=(d,A)=>{const v=n.format(A),w=l.promisify((x,C)=>{v.write(x,void 0,C)});return d.reduce((x,C)=>x.then(()=>w(C)),Promise.resolve()).then(()=>v.end()).catch(x=>{v.emit("error",x)}),v},n.writeToStream=(d,A,v)=>n.write(A,v).pipe(d),n.writeToBuffer=function(d){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const v=[],w=new g.Writable({write(x,C,k){v.push(x),k()}});return new Promise((x,C)=>{w.on("error",C).on("finish",()=>x(t.concat(v))),n.write(d,A).pipe(w)})},n.writeToString=(d,A)=>n.writeToBuffer(d,A).then(v=>v.toString()),n.writeToPath=(d,A,v)=>{const w=m.createWriteStream(d,{encoding:"utf8"});return n.write(A,v).pipe(w)}}).call(this)}).call(this,r("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncTransform=void 0,n.isSyncTransform=t=>t.length===1},{}],153:[function(r,i,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=void 0;const c=r("string_decoder"),u=r("stream"),f=r("./transforms"),o=r("./parser");class l extends u.Transform{constructor(m){super({objectMode:m.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=m,this.parser=new o.Parser(m),this.headerTransformer=new f.HeaderTransformer(m),this.decoder=new c.StringDecoder(m.encoding),this.rowTransformerValidator=new f.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(m){return this.rowTransformerValidator.rowTransform=m,this}validate(m){return this.rowTransformerValidator.rowValidator=m,this}emit(m){if(m==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var p=arguments.length,_=new Array(p>1?p-1:0),y=1;y<p;y++)_[y-1]=arguments[y];return super.emit(m,..._)}_transform(m,p,_){if(this.hasHitRowLimit)return _();const y=l.wrapDoneCallback(_);try{const{lines:h}=this,d=h+this.decoder.write(m),A=this.parse(d,!0);return this.processRows(A,y)}catch(h){return y(h)}}_flush(m){const p=l.wrapDoneCallback(m);if(this.hasHitRowLimit)return p();try{const _=this.lines+this.decoder.end(),y=this.parse(_,!1);return this.processRows(y,p)}catch(_){return p(_)}}parse(m,p){if(!m)return[];const{line:_,rows:y}=this.parser.parse(m,p);return this.lines=_,y}processRows(m,p){const _=m.length,y=h=>{const d=w=>w?p(w):h%100!=0?y(h+1):void t(()=>y(h+1));if(this.checkAndEmitHeaders(),h>=_||this.hasHitRowLimit)return p();if(this.parsedLineCount+=1,this.shouldSkipLine)return d();const A=m[h];this.rowCount+=1,this.parsedRowCount+=1;const v=this.rowCount;return this.transformRow(A,(w,x)=>{if(w)return this.rowCount-=1,d(w);if(!x)return d(new Error("expected transform result"));if(x.isValid){if(x.row)return this.pushRow(x.row,d)}else this.emit("data-invalid",x.row,v,x.reason);return d()})};y(0)}transformRow(m,p){try{this.headerTransformer.transform(m,(_,y)=>_?p(_):y?y.isValid?y.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(y.row,p):this.skipRow(p):(this.rowCount-=1,this.parsedRowCount-=1,p(null,{row:null,isValid:!0})):this.shouldEmitRows?p(null,{isValid:!1,row:m}):this.skipRow(p):p(new Error("Expected result from header transform")))}catch(_){p(_)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(m){return this.rowCount-=1,m(null,{row:null,isValid:!0})}pushRow(m,p){try{this.parserOptions.objectMode?this.push(m):this.push(JSON.stringify(m)),p()}catch(_){p(_)}}static wrapDoneCallback(m){let p=!1;return function(_){if(_){if(p)throw _;return p=!0,void m(_)}for(var y=arguments.length,h=new Array(y>1?y-1:0),d=1;d<y;d++)h[d-1]=arguments[d];m(...h)}}}n.CsvParserStream=l}).call(this)}).call(this,r("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(r,i,n){var t=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(n,"__esModule",{value:!0}),n.ParserOptions=void 0;const c=t(r("lodash.escaperegexp")),u=t(r("lodash.isnil"));n.ParserOptions=class{constructor(f){var o;if(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,f||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=c.default(this.delimiter),this.escapeChar=(o=this.escape)!==null&&o!==void 0?o:this.quote,this.supportsComments=!u.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(r,i,n){var t=Object.create?function(y,h,d,A){A===void 0&&(A=d),Object.defineProperty(y,A,{enumerable:!0,get:function(){return h[d]}})}:function(y,h,d,A){A===void 0&&(A=d),y[A]=h[d]},c=Object.create?function(y,h){Object.defineProperty(y,"default",{enumerable:!0,value:h})}:function(y,h){y.default=h},u=function(y){if(y&&y.__esModule)return y;var h={};if(y!=null)for(var d in y)d!=="default"&&Object.prototype.hasOwnProperty.call(y,d)&&t(h,y,d);return c(h,y),h},f=function(y,h){for(var d in y)d==="default"||Object.prototype.hasOwnProperty.call(h,d)||t(h,y,d)};Object.defineProperty(n,"__esModule",{value:!0}),n.parseString=n.parseFile=n.parseStream=n.parse=n.ParserOptions=n.CsvParserStream=void 0;const o=u(r("fs")),l=r("stream"),g=r("./ParserOptions"),m=r("./CsvParserStream");f(r("./types"),n);var p=r("./CsvParserStream");Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return p.CsvParserStream}});var _=r("./ParserOptions");Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return _.ParserOptions}}),n.parse=y=>new m.CsvParserStream(new g.ParserOptions(y)),n.parseStream=(y,h)=>y.pipe(new m.CsvParserStream(new g.ParserOptions(h))),n.parseFile=function(y){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return o.createReadStream(y).pipe(new m.CsvParserStream(new g.ParserOptions(h)))},n.parseString=(y,h)=>{const d=new l.Readable;return d.push(y),d.push(null),d.pipe(new m.CsvParserStream(new g.ParserOptions(h)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0;const t=r("./Scanner"),c=r("./RowParser"),u=r("./Token");class f{constructor(l){this.parserOptions=l,this.rowParser=new c.RowParser(this.parserOptions)}static removeBOM(l){return l&&l.charCodeAt(0)===65279?l.slice(1):l}parse(l,g){const m=new t.Scanner({line:f.removeBOM(l),parserOptions:this.parserOptions,hasMoreData:g});return this.parserOptions.supportsComments?this.parseWithComments(m):this.parseWithoutComments(m)}parseWithoutComments(l){const g=[];let m=!0;for(;m;)m=this.parseRow(l,g);return{line:l.line,rows:g}}parseWithComments(l){const{parserOptions:g}=this,m=[];for(let p=l.nextCharacterToken;p!==null;p=l.nextCharacterToken)if(u.Token.isTokenComment(p,g)){if(l.advancePastLine()===null)return{line:l.lineFromCursor,rows:m};if(!l.hasMoreCharacters)return{line:l.lineFromCursor,rows:m};l.truncateToCursor()}else if(!this.parseRow(l,m))break;return{line:l.line,rows:m}}parseRow(l,g){if(!l.nextNonSpaceToken)return!1;const m=this.rowParser.parse(l);return m!==null&&(this.parserOptions.ignoreEmpty&&c.RowParser.isEmptyRow(m)||g.push(m),!0)}}n.Parser=f},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.RowParser=void 0;const t=r("./column"),c=r("./Token");n.RowParser=class{constructor(u){this.parserOptions=u,this.columnParser=new t.ColumnParser(u)}static isEmptyRow(u){return u.join("").replace(/\s+/g,"")===""}parse(u){const{parserOptions:f}=this,{hasMoreData:o}=u,l=u,g=[];let m=this.getStartToken(l,g);for(;m;){if(c.Token.isTokenRowDelimiter(m))return l.advancePastToken(m),!l.hasMoreCharacters&&c.Token.isTokenCarriageReturn(m,f)&&o?null:(l.truncateToCursor(),g);if(!this.shouldSkipColumnParse(l,m,g)){const p=this.columnParser.parse(l);if(p===null)return null;g.push(p)}m=l.nextNonSpaceToken}return o?null:(l.truncateToCursor(),g)}getStartToken(u,f){const o=u.nextNonSpaceToken;return o!==null&&c.Token.isTokenDelimiter(o,this.parserOptions)?(f.push(""),u.nextNonSpaceToken):o}shouldSkipColumnParse(u,f,o){const{parserOptions:l}=this;if(c.Token.isTokenDelimiter(f,l)){u.advancePastToken(f);const g=u.nextCharacterToken;if(!u.hasMoreCharacters||g!==null&&c.Token.isTokenRowDelimiter(g)||g!==null&&c.Token.isTokenDelimiter(g,l))return o.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Scanner=void 0;const t=r("./Token"),c=/((?:\r\n)|\n|\r)/;n.Scanner=class{constructor(u){this.cursor=0,this.line=u.line,this.lineLength=this.line.length,this.parserOptions=u.parserOptions,this.hasMoreData=u.hasMoreData,this.cursor=u.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:u}=this,f=this.parserOptions.NEXT_TOKEN_REGEXP;if(u.search(f)===-1)return null;const o=f.exec(u);if(o==null)return null;const l=o[1],g=this.cursor+(o.index||0);return new t.Token({token:l,startCursor:g,endCursor:g+l.length-1})}get nextCharacterToken(){const{cursor:u,lineLength:f}=this;return f<=u?null:new t.Token({token:this.line[u],startCursor:u,endCursor:u})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const u=c.exec(this.lineFromCursor);return u?(this.cursor+=(u.index||0)+u[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(u){return this.cursor=u,this}advanceToToken(u){return this.cursor=u.startCursor,this}advancePastToken(u){return this.cursor=u.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Token=void 0,n.Token=class{constructor(t){this.token=t.token,this.startCursor=t.startCursor,this.endCursor=t.endCursor}static isTokenRowDelimiter(t){const c=t.token;return c==="\r"||c===`
`||c===`\r
`}static isTokenCarriageReturn(t,c){return t.token===c.carriageReturn}static isTokenComment(t,c){return c.supportsComments&&!!t&&t.token===c.comment}static isTokenEscapeCharacter(t,c){return t.token===c.escapeChar}static isTokenQuote(t,c){return t.token===c.quote}static isTokenDelimiter(t,c){return t.token===c.delimiter}}},{}],160:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=void 0,n.ColumnFormatter=class{constructor(t){t.trim?this.format=c=>c.trim():t.ltrim?this.format=c=>c.trimLeft():t.rtrim?this.format=c=>c.trimRight():this.format=c=>c}}},{}],161:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnParser=void 0;const t=r("./NonQuotedColumnParser"),c=r("./QuotedColumnParser"),u=r("../Token");n.ColumnParser=class{constructor(f){this.parserOptions=f,this.quotedColumnParser=new c.QuotedColumnParser(f),this.nonQuotedColumnParser=new t.NonQuotedColumnParser(f)}parse(f){const{nextNonSpaceToken:o}=f;return o!==null&&u.Token.isTokenQuote(o,this.parserOptions)?(f.advanceToToken(o),this.quotedColumnParser.parse(f)):this.nonQuotedColumnParser.parse(f)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.NonQuotedColumnParser=void 0;const t=r("./ColumnFormatter"),c=r("../Token");n.NonQuotedColumnParser=class{constructor(u){this.parserOptions=u,this.columnFormatter=new t.ColumnFormatter(u)}parse(u){if(!u.hasMoreCharacters)return null;const{parserOptions:f}=this,o=[];let l=u.nextCharacterToken;for(;l&&!c.Token.isTokenDelimiter(l,f)&&!c.Token.isTokenRowDelimiter(l);l=u.nextCharacterToken)o.push(l.token),u.advancePastToken(l);return this.columnFormatter.format(o.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=void 0;const t=r("./ColumnFormatter"),c=r("../Token");n.QuotedColumnParser=class{constructor(u){this.parserOptions=u,this.columnFormatter=new t.ColumnFormatter(u)}parse(u){if(!u.hasMoreCharacters)return null;const f=u.cursor,{foundClosingQuote:o,col:l}=this.gatherDataBetweenQuotes(u);if(!o){if(u.advanceTo(f),!u.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${u.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(u),l}gatherDataBetweenQuotes(u){const{parserOptions:f}=this;let o=!1,l=!1;const g=[];let m=u.nextCharacterToken;for(;!l&&m!==null;m=u.nextCharacterToken){const p=c.Token.isTokenQuote(m,f);if(!o&&p)o=!0;else if(o)if(c.Token.isTokenEscapeCharacter(m,f)){u.advancePastToken(m);const _=u.nextCharacterToken;_!==null&&(c.Token.isTokenQuote(_,f)||c.Token.isTokenEscapeCharacter(_,f))?(g.push(_.token),m=_):p?l=!0:g.push(m.token)}else p?l=!0:g.push(m.token);u.advancePastToken(m)}return{col:this.columnFormatter.format(g.join("")),foundClosingQuote:l}}checkForMalformedColumn(u){const{parserOptions:f}=this,{nextNonSpaceToken:o}=u;if(o){const l=c.Token.isTokenDelimiter(o,f),g=c.Token.isTokenRowDelimiter(o);if(!l&&!g){const m=u.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${f.escapedDelimiter}' OR new line got: '${o.token}'. at '${m}`)}u.advanceToToken(o)}else u.hasMoreData||u.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ColumnFormatter=n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=void 0;var t=r("./ColumnParser");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return t.ColumnParser}});var c=r("./NonQuotedColumnParser");Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return c.NonQuotedColumnParser}});var u=r("./QuotedColumnParser");Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return u.QuotedColumnParser}});var f=r("./ColumnFormatter");Object.defineProperty(n,"ColumnFormatter",{enumerable:!0,get:function(){return f.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuotedColumnParser=n.NonQuotedColumnParser=n.ColumnParser=n.Token=n.Scanner=n.RowParser=n.Parser=void 0;var t=r("./Parser");Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return t.Parser}});var c=r("./RowParser");Object.defineProperty(n,"RowParser",{enumerable:!0,get:function(){return c.RowParser}});var u=r("./Scanner");Object.defineProperty(n,"Scanner",{enumerable:!0,get:function(){return u.Scanner}});var f=r("./Token");Object.defineProperty(n,"Token",{enumerable:!0,get:function(){return f.Token}});var o=r("./column");Object.defineProperty(n,"ColumnParser",{enumerable:!0,get:function(){return o.ColumnParser}}),Object.defineProperty(n,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}}),Object.defineProperty(n,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(r,i,n){var t=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=void 0;const c=t(r("lodash.isundefined")),u=t(r("lodash.isfunction")),f=t(r("lodash.uniq")),o=t(r("lodash.groupby"));n.HeaderTransformer=class{constructor(l){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=l,l.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(l.headers)?this.setHeaders(l.headers):u.default(l.headers)&&(this.headersTransform=l.headers)}transform(l,g){return this.shouldMapRow(l)?g(null,this.processRow(l)):g(null,{row:null,isValid:!0})}shouldMapRow(l){const{parserOptions:g}=this;if(!this.headersTransform&&g.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(l)){if(this.headersTransform)this.setHeaders(this.headersTransform(l));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(l)}return!1}return!0}processRow(l){if(!this.headers)return{row:l,isValid:!0};const{parserOptions:g}=this;if(!g.discardUnmappedColumns&&l.length>this.headersLength){if(!g.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${l.length}`);return{row:l,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${l.length}`}}return g.strictColumnHandling&&l.length<this.headersLength?{row:l,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${l.length}`}:{row:this.mapHeaders(l),isValid:!0}}mapHeaders(l){const g={},{headers:m,headersLength:p}=this;for(let _=0;_<p;_+=1){const y=m[_];if(!c.default(y)){const h=l[_];c.default(h)?g[y]="":g[y]=h}}return g}setHeaders(l){var g;const m=l.filter(p=>!!p);if(f.default(m).length!==m.length){const p=o.default(m),_=Object.keys(p).filter(y=>p[y].length>1);throw new Error("Duplicate headers found "+JSON.stringify(_))}this.headers=l,this.receivedHeaders=!0,this.headersLength=((g=this.headers)===null||g===void 0?void 0:g.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(r,i,n){var t=function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(n,"__esModule",{value:!0}),n.RowTransformerValidator=void 0;const c=t(r("lodash.isfunction")),u=r("../types");class f{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(l){return u.isSyncTransform(l)?(g,m)=>{let p=null;try{p=l(g)}catch(_){return m(_)}return m(null,p)}:l}static createValidator(l){return u.isSyncValidate(l)?(g,m)=>{m(null,{row:g,isValid:l(g)})}:(g,m)=>{l(g,(p,_,y)=>p?m(p):m(null,_?{row:g,isValid:_,reason:y}:{row:g,isValid:!1,reason:y}))}}set rowTransform(l){if(!c.default(l))throw new TypeError("The transform should be a function");this._rowTransform=f.createTransform(l)}set rowValidator(l){if(!c.default(l))throw new TypeError("The validate should be a function");this._rowValidator=f.createValidator(l)}transformAndValidate(l,g){return this.callTransformer(l,(m,p)=>m?g(m):p?this.callValidator(p,(_,y)=>_?g(_):y&&!y.isValid?g(null,{row:p,isValid:!1,reason:y.reason}):g(null,{row:p,isValid:!0})):g(null,{row:null,isValid:!0}))}callTransformer(l,g){return this._rowTransform?this._rowTransform(l,g):g(null,l)}callValidator(l,g){return this._rowValidator?this._rowValidator(l,g):g(null,{row:l,isValid:!0})}}n.RowTransformerValidator=f},{"../types":169,"lodash.isfunction":446}],168:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.HeaderTransformer=n.RowTransformerValidator=void 0;var t=r("./RowTransformerValidator");Object.defineProperty(n,"RowTransformerValidator",{enumerable:!0,get:function(){return t.RowTransformerValidator}});var c=r("./HeaderTransformer");Object.defineProperty(n,"HeaderTransformer",{enumerable:!0,get:function(){return c.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isSyncValidate=n.isSyncTransform=void 0,n.isSyncTransform=t=>t.length===1,n.isSyncValidate=t=>t.length===1},{}],170:[function(r,i,n){const t=n;t.bignum=r("bn.js"),t.define=r("./asn1/api").define,t.base=r("./asn1/base"),t.constants=r("./asn1/constants"),t.decoders=r("./asn1/decoders"),t.encoders=r("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(r,i,n){const t=r("./encoders"),c=r("./decoders"),u=r("inherits");function f(o,l){this.name=o,this.body=l,this.decoders={},this.encoders={}}n.define=function(o,l){return new f(o,l)},f.prototype._createNamed=function(o){const l=this.name;function g(m){this._initNamed(m,l)}return u(g,o),g.prototype._initNamed=function(m,p){o.call(this,m,p)},new g(this)},f.prototype._getDecoder=function(o){return o=o||"der",this.decoders.hasOwnProperty(o)||(this.decoders[o]=this._createNamed(c[o])),this.decoders[o]},f.prototype.decode=function(o,l,g){return this._getDecoder(l).decode(o,g)},f.prototype._getEncoder=function(o){return o=o||"der",this.encoders.hasOwnProperty(o)||(this.encoders[o]=this._createNamed(t[o])),this.encoders[o]},f.prototype.encode=function(o,l,g){return this._getEncoder(l).encode(o,g)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(r,i,n){const t=r("inherits"),c=r("../base/reporter").Reporter,u=r("safer-buffer").Buffer;function f(l,g){c.call(this,g),u.isBuffer(l)?(this.base=l,this.offset=0,this.length=l.length):this.error("Input not Buffer")}function o(l,g){if(Array.isArray(l))this.length=0,this.value=l.map((function(m){return o.isEncoderBuffer(m)||(m=new o(m,g)),this.length+=m.length,m}),this);else if(typeof l=="number"){if(!(0<=l&&l<=255))return g.error("non-byte EncoderBuffer value");this.value=l,this.length=1}else if(typeof l=="string")this.value=l,this.length=u.byteLength(l);else{if(!u.isBuffer(l))return g.error("Unsupported type: "+typeof l);this.value=l,this.length=l.length}}t(f,c),n.DecoderBuffer=f,f.isDecoderBuffer=function(l){return l instanceof f?!0:typeof l=="object"&&u.isBuffer(l.base)&&l.constructor.name==="DecoderBuffer"&&typeof l.offset=="number"&&typeof l.length=="number"&&typeof l.save=="function"&&typeof l.restore=="function"&&typeof l.isEmpty=="function"&&typeof l.readUInt8=="function"&&typeof l.skip=="function"&&typeof l.raw=="function"},f.prototype.save=function(){return{offset:this.offset,reporter:c.prototype.save.call(this)}},f.prototype.restore=function(l){const g=new f(this.base);return g.offset=l.offset,g.length=this.offset,this.offset=l.offset,c.prototype.restore.call(this,l.reporter),g},f.prototype.isEmpty=function(){return this.offset===this.length},f.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},f.prototype.skip=function(l,g){if(!(this.offset+l<=this.length))return this.error(g||"DecoderBuffer overrun");const m=new f(this.base);return m._reporterState=this._reporterState,m.offset=this.offset,m.length=this.offset+l,this.offset+=l,m},f.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)},n.EncoderBuffer=o,o.isEncoderBuffer=function(l){return l instanceof o?!0:typeof l=="object"&&l.constructor.name==="EncoderBuffer"&&typeof l.length=="number"&&typeof l.join=="function"},o.prototype.join=function(l,g){return l||(l=u.alloc(this.length)),g||(g=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(m){m.join(l,g),g+=m.length})):(typeof this.value=="number"?l[g]=this.value:typeof this.value=="string"?l.write(this.value,g):u.isBuffer(this.value)&&this.value.copy(l,g),g+=this.length)),l}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(r,i,n){const t=n;t.Reporter=r("./reporter").Reporter,t.DecoderBuffer=r("./buffer").DecoderBuffer,t.EncoderBuffer=r("./buffer").EncoderBuffer,t.Node=r("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(r,i,n){const t=r("../base/reporter").Reporter,c=r("../base/buffer").EncoderBuffer,u=r("../base/buffer").DecoderBuffer,f=r("minimalistic-assert"),o=["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"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function g(p,_,y){const h={};this._baseState=h,h.name=y,h.enc=p,h.parent=_||null,h.children=null,h.tag=null,h.args=null,h.reverseArgs=null,h.choice=null,h.optional=!1,h.any=!1,h.obj=!1,h.use=null,h.useDecoder=null,h.key=null,h.default=null,h.explicit=null,h.implicit=null,h.contains=null,h.parent||(h.children=[],this._wrap())}i.exports=g;const m=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];g.prototype.clone=function(){const p=this._baseState,_={};m.forEach((function(h){_[h]=p[h]}));const y=new this.constructor(_.parent);return y._baseState=_,y},g.prototype._wrap=function(){const p=this._baseState;l.forEach((function(_){this[_]=function(){const y=new this.constructor(this);return p.children.push(y),y[_].apply(y,arguments)}}),this)},g.prototype._init=function(p){const _=this._baseState;f(_.parent===null),p.call(this),_.children=_.children.filter((function(y){return y._baseState.parent===this}),this),f.equal(_.children.length,1,"Root node can have only one child")},g.prototype._useArgs=function(p){const _=this._baseState,y=p.filter((function(h){return h instanceof this.constructor}),this);p=p.filter((function(h){return!(h instanceof this.constructor)}),this),y.length!==0&&(f(_.children===null),_.children=y,y.forEach((function(h){h._baseState.parent=this}),this)),p.length!==0&&(f(_.args===null),_.args=p,_.reverseArgs=p.map((function(h){if(typeof h!="object"||h.constructor!==Object)return h;const d={};return Object.keys(h).forEach((function(A){A==(0|A)&&(A|=0);const v=h[A];d[v]=A})),d})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(p){g.prototype[p]=function(){const _=this._baseState;throw new Error(p+" not implemented for encoding: "+_.enc)}})),o.forEach((function(p){g.prototype[p]=function(){const _=this._baseState,y=Array.prototype.slice.call(arguments);return f(_.tag===null),_.tag=p,this._useArgs(y),this}})),g.prototype.use=function(p){f(p);const _=this._baseState;return f(_.use===null),_.use=p,this},g.prototype.optional=function(){return this._baseState.optional=!0,this},g.prototype.def=function(p){const _=this._baseState;return f(_.default===null),_.default=p,_.optional=!0,this},g.prototype.explicit=function(p){const _=this._baseState;return f(_.explicit===null&&_.implicit===null),_.explicit=p,this},g.prototype.implicit=function(p){const _=this._baseState;return f(_.explicit===null&&_.implicit===null),_.implicit=p,this},g.prototype.obj=function(){const p=this._baseState,_=Array.prototype.slice.call(arguments);return p.obj=!0,_.length!==0&&this._useArgs(_),this},g.prototype.key=function(p){const _=this._baseState;return f(_.key===null),_.key=p,this},g.prototype.any=function(){return this._baseState.any=!0,this},g.prototype.choice=function(p){const _=this._baseState;return f(_.choice===null),_.choice=p,this._useArgs(Object.keys(p).map((function(y){return p[y]}))),this},g.prototype.contains=function(p){const _=this._baseState;return f(_.use===null),_.contains=p,this},g.prototype._decode=function(p,_){const y=this._baseState;if(y.parent===null)return p.wrapResult(y.children[0]._decode(p,_));let h,d=y.default,A=!0,v=null;if(y.key!==null&&(v=p.enterKey(y.key)),y.optional){let w=null;if(y.explicit!==null?w=y.explicit:y.implicit!==null?w=y.implicit:y.tag!==null&&(w=y.tag),w!==null||y.any){if(A=this._peekTag(p,w,y.any),p.isError(A))return A}else{const x=p.save();try{y.choice===null?this._decodeGeneric(y.tag,p,_):this._decodeChoice(p,_),A=!0}catch{A=!1}p.restore(x)}}if(y.obj&&A&&(h=p.enterObject()),A){if(y.explicit!==null){const x=this._decodeTag(p,y.explicit);if(p.isError(x))return x;p=x}const w=p.offset;if(y.use===null&&y.choice===null){let x;y.any&&(x=p.save());const C=this._decodeTag(p,y.implicit!==null?y.implicit:y.tag,y.any);if(p.isError(C))return C;y.any?d=p.raw(x):p=C}if(_&&_.track&&y.tag!==null&&_.track(p.path(),w,p.length,"tagged"),_&&_.track&&y.tag!==null&&_.track(p.path(),p.offset,p.length,"content"),y.any||(d=y.choice===null?this._decodeGeneric(y.tag,p,_):this._decodeChoice(p,_)),p.isError(d))return d;if(y.any||y.choice!==null||y.children===null||y.children.forEach((function(x){x._decode(p,_)})),y.contains&&(y.tag==="octstr"||y.tag==="bitstr")){const x=new u(d);d=this._getUse(y.contains,p._reporterState.obj)._decode(x,_)}}return y.obj&&A&&(d=p.leaveObject(h)),y.key===null||d===null&&A!==!0?v!==null&&p.exitKey(v):p.leaveKey(v,y.key,d),d},g.prototype._decodeGeneric=function(p,_,y){const h=this._baseState;return p==="seq"||p==="set"?null:p==="seqof"||p==="setof"?this._decodeList(_,p,h.args[0],y):/str$/.test(p)?this._decodeStr(_,p,y):p==="objid"&&h.args?this._decodeObjid(_,h.args[0],h.args[1],y):p==="objid"?this._decodeObjid(_,null,null,y):p==="gentime"||p==="utctime"?this._decodeTime(_,p,y):p==="null_"?this._decodeNull(_,y):p==="bool"?this._decodeBool(_,y):p==="objDesc"?this._decodeStr(_,p,y):p==="int"||p==="enum"?this._decodeInt(_,h.args&&h.args[0],y):h.use!==null?this._getUse(h.use,_._reporterState.obj)._decode(_,y):_.error("unknown tag: "+p)},g.prototype._getUse=function(p,_){const y=this._baseState;return y.useDecoder=this._use(p,_),f(y.useDecoder._baseState.parent===null),y.useDecoder=y.useDecoder._baseState.children[0],y.implicit!==y.useDecoder._baseState.implicit&&(y.useDecoder=y.useDecoder.clone(),y.useDecoder._baseState.implicit=y.implicit),y.useDecoder},g.prototype._decodeChoice=function(p,_){const y=this._baseState;let h=null,d=!1;return Object.keys(y.choice).some((function(A){const v=p.save(),w=y.choice[A];try{const x=w._decode(p,_);if(p.isError(x))return!1;h={type:A,value:x},d=!0}catch{return p.restore(v),!1}return!0}),this),d?h:p.error("Choice not matched")},g.prototype._createEncoderBuffer=function(p){return new c(p,this.reporter)},g.prototype._encode=function(p,_,y){const h=this._baseState;if(h.default!==null&&h.default===p)return;const d=this._encodeValue(p,_,y);return d===void 0||this._skipDefault(d,_,y)?void 0:d},g.prototype._encodeValue=function(p,_,y){const h=this._baseState;if(h.parent===null)return h.children[0]._encode(p,_||new t);let d=null;if(this.reporter=_,h.optional&&p===void 0){if(h.default===null)return;p=h.default}let A=null,v=!1;if(h.any)d=this._createEncoderBuffer(p);else if(h.choice)d=this._encodeChoice(p,_);else if(h.contains)A=this._getUse(h.contains,y)._encode(p,_),v=!0;else if(h.children)A=h.children.map((function(w){if(w._baseState.tag==="null_")return w._encode(null,_,p);if(w._baseState.key===null)return _.error("Child should have a key");const x=_.enterKey(w._baseState.key);if(typeof p!="object")return _.error("Child expected, but input is not object");const C=w._encode(p[w._baseState.key],_,p);return _.leaveKey(x),C}),this).filter((function(w){return w})),A=this._createEncoderBuffer(A);else if(h.tag==="seqof"||h.tag==="setof"){if(!h.args||h.args.length!==1)return _.error("Too many args for : "+h.tag);if(!Array.isArray(p))return _.error("seqof/setof, but data is not Array");const w=this.clone();w._baseState.implicit=null,A=this._createEncoderBuffer(p.map((function(x){const C=this._baseState;return this._getUse(C.args[0],p)._encode(x,_)}),w))}else h.use!==null?d=this._getUse(h.use,y)._encode(p,_):(A=this._encodePrimitive(h.tag,p),v=!0);if(!h.any&&h.choice===null){const w=h.implicit!==null?h.implicit:h.tag,x=h.implicit===null?"universal":"context";w===null?h.use===null&&_.error("Tag could be omitted only for .use()"):h.use===null&&(d=this._encodeComposite(w,v,x,A))}return h.explicit!==null&&(d=this._encodeComposite(h.explicit,!1,"context",d)),d},g.prototype._encodeChoice=function(p,_){const y=this._baseState,h=y.choice[p.type];return h||f(!1,p.type+" not found in "+JSON.stringify(Object.keys(y.choice))),h._encode(p.value,_)},g.prototype._encodePrimitive=function(p,_){const y=this._baseState;if(/str$/.test(p))return this._encodeStr(_,p);if(p==="objid"&&y.args)return this._encodeObjid(_,y.reverseArgs[0],y.args[1]);if(p==="objid")return this._encodeObjid(_,null,null);if(p==="gentime"||p==="utctime")return this._encodeTime(_,p);if(p==="null_")return this._encodeNull();if(p==="int"||p==="enum")return this._encodeInt(_,y.args&&y.reverseArgs[0]);if(p==="bool")return this._encodeBool(_);if(p==="objDesc")return this._encodeStr(_,p);throw new Error("Unsupported tag: "+p)},g.prototype._isNumstr=function(p){return/^[0-9 ]*$/.test(p)},g.prototype._isPrintstr=function(p){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(p)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(r,i,n){const t=r("inherits");function c(f){this._reporterState={obj:null,path:[],options:f||{},errors:[]}}function u(f,o){this.path=f,this.rethrow(o)}n.Reporter=c,c.prototype.isError=function(f){return f instanceof u},c.prototype.save=function(){const f=this._reporterState;return{obj:f.obj,pathLen:f.path.length}},c.prototype.restore=function(f){const o=this._reporterState;o.obj=f.obj,o.path=o.path.slice(0,f.pathLen)},c.prototype.enterKey=function(f){return this._reporterState.path.push(f)},c.prototype.exitKey=function(f){const o=this._reporterState;o.path=o.path.slice(0,f-1)},c.prototype.leaveKey=function(f,o,l){const g=this._reporterState;this.exitKey(f),g.obj!==null&&(g.obj[o]=l)},c.prototype.path=function(){return this._reporterState.path.join("/")},c.prototype.enterObject=function(){const f=this._reporterState,o=f.obj;return f.obj={},o},c.prototype.leaveObject=function(f){const o=this._reporterState,l=o.obj;return o.obj=f,l},c.prototype.error=function(f){let o;const l=this._reporterState,g=f instanceof u;if(o=g?f:new u(l.path.map((function(m){return"["+JSON.stringify(m)+"]"})).join(""),f.message||f,f.stack),!l.options.partial)throw o;return g||l.errors.push(o),o},c.prototype.wrapResult=function(f){const o=this._reporterState;return o.options.partial?{result:this.isError(f)?null:f,errors:o.errors}:f},t(u,Error),u.prototype.rethrow=function(f){if(this.message=f+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,u),!this.stack)try{throw new Error(this.message)}catch(o){this.stack=o.stack}return this}},{inherits:440}],176:[function(r,i,n){function t(c){const u={};return Object.keys(c).forEach((function(f){(0|f)==f&&(f|=0);const o=c[f];u[o]=f})),u}n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=t(n.tagClass),n.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"},n.tagByName=t(n.tag)},{}],177:[function(r,i,n){const t=n;t._reverse=function(c){const u={};return Object.keys(c).forEach((function(f){(0|f)==f&&(f|=0);const o=c[f];u[o]=f})),u},t.der=r("./der")},{"./der":176}],178:[function(r,i,n){const t=r("inherits"),c=r("bn.js"),u=r("../base/buffer").DecoderBuffer,f=r("../base/node"),o=r("../constants/der");function l(_){this.enc="der",this.name=_.name,this.entity=_,this.tree=new g,this.tree._init(_.body)}function g(_){f.call(this,"der",_)}function m(_,y){let h=_.readUInt8(y);if(_.isError(h))return h;const d=o.tagClass[h>>6],A=(32&h)==0;if((31&h)==31){let v=h;for(h=0;(128&v)==128;){if(v=_.readUInt8(y),_.isError(v))return v;h<<=7,h|=127&v}}else h&=31;return{cls:d,primitive:A,tag:h,tagStr:o.tag[h]}}function p(_,y,h){let d=_.readUInt8(h);if(_.isError(d))return d;if(!y&&d===128)return null;if((128&d)==0)return d;const A=127&d;if(A>4)return _.error("length octect is too long");d=0;for(let v=0;v<A;v++){d<<=8;const w=_.readUInt8(h);if(_.isError(w))return w;d|=w}return d}i.exports=l,l.prototype.decode=function(_,y){return u.isDecoderBuffer(_)||(_=new u(_,y)),this.tree._decode(_,y)},t(g,f),g.prototype._peekTag=function(_,y,h){if(_.isEmpty())return!1;const d=_.save(),A=m(_,'Failed to peek tag: "'+y+'"');return _.isError(A)?A:(_.restore(d),A.tag===y||A.tagStr===y||A.tagStr+"of"===y||h)},g.prototype._decodeTag=function(_,y,h){const d=m(_,'Failed to decode tag of "'+y+'"');if(_.isError(d))return d;let A=p(_,d.primitive,'Failed to get length of "'+y+'"');if(_.isError(A))return A;if(!h&&d.tag!==y&&d.tagStr!==y&&d.tagStr+"of"!==y)return _.error('Failed to match tag: "'+y+'"');if(d.primitive||A!==null)return _.skip(A,'Failed to match body of: "'+y+'"');const v=_.save(),w=this._skipUntilEnd(_,'Failed to skip indefinite length body: "'+this.tag+'"');return _.isError(w)?w:(A=_.offset-v.offset,_.restore(v),_.skip(A,'Failed to match body of: "'+y+'"'))},g.prototype._skipUntilEnd=function(_,y){for(;;){const h=m(_,y);if(_.isError(h))return h;const d=p(_,h.primitive,y);if(_.isError(d))return d;let A;if(A=h.primitive||d!==null?_.skip(d):this._skipUntilEnd(_,y),_.isError(A))return A;if(h.tagStr==="end")break}},g.prototype._decodeList=function(_,y,h,d){const A=[];for(;!_.isEmpty();){const v=this._peekTag(_,"end");if(_.isError(v))return v;const w=h.decode(_,"der",d);if(_.isError(w)&&v)break;A.push(w)}return A},g.prototype._decodeStr=function(_,y){if(y==="bitstr"){const h=_.readUInt8();return _.isError(h)?h:{unused:h,data:_.raw()}}if(y==="bmpstr"){const h=_.raw();if(h.length%2==1)return _.error("Decoding of string type: bmpstr length mismatch");let d="";for(let A=0;A<h.length/2;A++)d+=String.fromCharCode(h.readUInt16BE(2*A));return d}if(y==="numstr"){const h=_.raw().toString("ascii");return this._isNumstr(h)?h:_.error("Decoding of string type: numstr unsupported characters")}if(y==="octstr"||y==="objDesc")return _.raw();if(y==="printstr"){const h=_.raw().toString("ascii");return this._isPrintstr(h)?h:_.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(y)?_.raw().toString():_.error("Decoding of string type: "+y+" unsupported")},g.prototype._decodeObjid=function(_,y,h){let d;const A=[];let v=0,w=0;for(;!_.isEmpty();)w=_.readUInt8(),v<<=7,v|=127&w,(128&w)==0&&(A.push(v),v=0);128&w&&A.push(v);const x=A[0]/40|0,C=A[0]%40;if(d=h?A:[x,C].concat(A.slice(1)),y){let k=y[d.join(" ")];k===void 0&&(k=y[d.join(".")]),k!==void 0&&(d=k)}return d},g.prototype._decodeTime=function(_,y){const h=_.raw().toString();let d,A,v,w,x,C;if(y==="gentime")d=0|h.slice(0,4),A=0|h.slice(4,6),v=0|h.slice(6,8),w=0|h.slice(8,10),x=0|h.slice(10,12),C=0|h.slice(12,14);else{if(y!=="utctime")return _.error("Decoding "+y+" time is not supported yet");d=0|h.slice(0,2),A=0|h.slice(2,4),v=0|h.slice(4,6),w=0|h.slice(6,8),x=0|h.slice(8,10),C=0|h.slice(10,12),d=d<70?2e3+d:1900+d}return Date.UTC(d,A-1,v,w,x,C,0)},g.prototype._decodeNull=function(){return null},g.prototype._decodeBool=function(_){const y=_.readUInt8();return _.isError(y)?y:y!==0},g.prototype._decodeInt=function(_,y){const h=_.raw();let d=new c(h);return y&&(d=y[d.toString(10)]||d),d},g.prototype._use=function(_,y){return typeof _=="function"&&(_=_(y)),_._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(r,i,n){const t=n;t.der=r("./der"),t.pem=r("./pem")},{"./der":178,"./pem":180}],180:[function(r,i,n){const t=r("inherits"),c=r("safer-buffer").Buffer,u=r("./der");function f(o){u.call(this,o),this.enc="pem"}t(f,u),i.exports=f,f.prototype.decode=function(o,l){const g=o.toString().split(/[\r\n]+/g),m=l.label.toUpperCase(),p=/^-----(BEGIN|END) ([^-]+)-----$/;let _=-1,y=-1;for(let A=0;A<g.length;A++){const v=g[A].match(p);if(v!==null&&v[2]===m){if(_!==-1){if(v[1]!=="END")break;y=A;break}if(v[1]!=="BEGIN")break;_=A}}if(_===-1||y===-1)throw new Error("PEM section not found for: "+m);const h=g.slice(_+1,y).join("");h.replace(/[^a-z0-9+/=]+/gi,"");const d=c.from(h,"base64");return u.prototype.decode.call(this,d,l)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(r,i,n){const t=r("inherits"),c=r("safer-buffer").Buffer,u=r("../base/node"),f=r("../constants/der");function o(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new l,this.tree._init(m.body)}function l(m){u.call(this,"der",m)}function g(m){return m<10?"0"+m:m}i.exports=o,o.prototype.encode=function(m,p){return this.tree._encode(m,p).join()},t(l,u),l.prototype._encodeComposite=function(m,p,_,y){const h=(function(v,w,x,C){let k;if(v==="seqof"?v="seq":v==="setof"&&(v="set"),f.tagByName.hasOwnProperty(v))k=f.tagByName[v];else{if(typeof v!="number"||(0|v)!==v)return C.error("Unknown tag: "+v);k=v}return k>=31?C.error("Multi-octet tag encoding unsupported"):(w||(k|=32),k|=f.tagClassByName[x||"universal"]<<6,k)})(m,p,_,this.reporter);if(y.length<128){const v=c.alloc(2);return v[0]=h,v[1]=y.length,this._createEncoderBuffer([v,y])}let d=1;for(let v=y.length;v>=256;v>>=8)d++;const A=c.alloc(2+d);A[0]=h,A[1]=128|d;for(let v=1+d,w=y.length;w>0;v--,w>>=8)A[v]=255&w;return this._createEncoderBuffer([A,y])},l.prototype._encodeStr=function(m,p){if(p==="bitstr")return this._createEncoderBuffer([0|m.unused,m.data]);if(p==="bmpstr"){const _=c.alloc(2*m.length);for(let y=0;y<m.length;y++)_.writeUInt16BE(m.charCodeAt(y),2*y);return this._createEncoderBuffer(_)}return p==="numstr"?this._isNumstr(m)?this._createEncoderBuffer(m):this.reporter.error("Encoding of string type: numstr supports only digits and space"):p==="printstr"?this._isPrintstr(m)?this._createEncoderBuffer(m):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(p)||p==="objDesc"?this._createEncoderBuffer(m):this.reporter.error("Encoding of string type: "+p+" unsupported")},l.prototype._encodeObjid=function(m,p,_){if(typeof m=="string"){if(!p)return this.reporter.error("string objid given, but no values map found");if(!p.hasOwnProperty(m))return this.reporter.error("objid not found in values map");m=p[m].split(/[\s.]+/g);for(let A=0;A<m.length;A++)m[A]|=0}else if(Array.isArray(m)){m=m.slice();for(let A=0;A<m.length;A++)m[A]|=0}if(!Array.isArray(m))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(m));if(!_){if(m[1]>=40)return this.reporter.error("Second objid identifier OOB");m.splice(0,2,40*m[0]+m[1])}let y=0;for(let A=0;A<m.length;A++){let v=m[A];for(y++;v>=128;v>>=7)y++}const h=c.alloc(y);let d=h.length-1;for(let A=m.length-1;A>=0;A--){let v=m[A];for(h[d--]=127&v;(v>>=7)>0;)h[d--]=128|127&v}return this._createEncoderBuffer(h)},l.prototype._encodeTime=function(m,p){let _;const y=new Date(m);return p==="gentime"?_=[g(y.getUTCFullYear()),g(y.getUTCMonth()+1),g(y.getUTCDate()),g(y.getUTCHours()),g(y.getUTCMinutes()),g(y.getUTCSeconds()),"Z"].join(""):p==="utctime"?_=[g(y.getUTCFullYear()%100),g(y.getUTCMonth()+1),g(y.getUTCDate()),g(y.getUTCHours()),g(y.getUTCMinutes()),g(y.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(_,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(m,p){if(typeof m=="string"){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(m))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(m));m=p[m]}if(typeof m!="number"&&!c.isBuffer(m)){const h=m.toArray();!m.sign&&128&h[0]&&h.unshift(0),m=c.from(h)}if(c.isBuffer(m)){let h=m.length;m.length===0&&h++;const d=c.alloc(h);return m.copy(d),m.length===0&&(d[0]=0),this._createEncoderBuffer(d)}if(m<128)return this._createEncoderBuffer(m);if(m<256)return this._createEncoderBuffer([0,m]);let _=1;for(let h=m;h>=256;h>>=8)_++;const y=new Array(_);for(let h=y.length-1;h>=0;h--)y[h]=255&m,m>>=8;return 128&y[0]&&y.unshift(0),this._createEncoderBuffer(c.from(y))},l.prototype._encodeBool=function(m){return this._createEncoderBuffer(m?255:0)},l.prototype._use=function(m,p){return typeof m=="function"&&(m=m(p)),m._getEncoder("der").tree},l.prototype._skipDefault=function(m,p,_){const y=this._baseState;let h;if(y.default===null)return!1;const d=m.join();if(y.defaultBuffer===void 0&&(y.defaultBuffer=this._encodeValue(y.default,p,_).join()),d.length!==y.defaultBuffer.length)return!1;for(h=0;h<d.length;h++)if(d[h]!==y.defaultBuffer[h])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(r,i,n){const t=n;t.der=r("./der"),t.pem=r("./pem")},{"./der":181,"./pem":183}],183:[function(r,i,n){const t=r("inherits"),c=r("./der");function u(f){c.call(this,f),this.enc="pem"}t(u,c),i.exports=u,u.prototype.encode=function(f,o){const l=c.prototype.encode.call(this,f).toString("base64"),g=["-----BEGIN "+o.label+"-----"];for(let m=0;m<l.length;m+=64)g.push(l.slice(m,m+64));return g.push("-----END "+o.label+"-----"),g.join(`
`)}},{"./der":181,inherits:440}],184:[function(r,i,n){(function(t,c){function u(B,O){if(!B)throw new Error(O||"Assertion failed")}function f(B,O){B.super_=O;var I=function(){};I.prototype=O.prototype,B.prototype=new I,B.prototype.constructor=B}function o(B,O,I){if(o.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&(O!=="le"&&O!=="be"||(I=O,O=10),this._init(B||0,O||10,I||"be"))}var l;typeof t=="object"?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{l=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:r("buffer").Buffer}catch{}function g(B,O){var I=B.charCodeAt(O);return I>=65&&I<=70?I-55:I>=97&&I<=102?I-87:I-48&15}function m(B,O,I){var F=g(B,I);return I-1>=O&&(F|=g(B,I-1)<<4),F}function p(B,O,I,F){for(var L=0,R=Math.min(B.length,I),U=O;U<R;U++){var V=B.charCodeAt(U)-48;L*=F,L+=V>=49?V-49+10:V>=17?V-17+10:V}return L}o.isBN=function(B){return B instanceof o||B!==null&&typeof B=="object"&&B.constructor.wordSize===o.wordSize&&Array.isArray(B.words)},o.max=function(B,O){return B.cmp(O)>0?B:O},o.min=function(B,O){return B.cmp(O)<0?B:O},o.prototype._init=function(B,O,I){if(typeof B=="number")return this._initNumber(B,O,I);if(typeof B=="object")return this._initArray(B,O,I);O==="hex"&&(O=16),u(O===(0|O)&&O>=2&&O<=36);var F=0;(B=B.toString().replace(/\s+/g,""))[0]==="-"&&(F++,this.negative=1),F<B.length&&(O===16?this._parseHex(B,F,I):(this._parseBase(B,O,F),I==="le"&&this._initArray(this.toArray(),O,I)))},o.prototype._initNumber=function(B,O,I){B<0&&(this.negative=1,B=-B),B<67108864?(this.words=[67108863&B],this.length=1):B<4503599627370496?(this.words=[67108863&B,B/67108864&67108863],this.length=2):(u(B<9007199254740992),this.words=[67108863&B,B/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),O,I)},o.prototype._initArray=function(B,O,I){if(u(typeof B.length=="number"),B.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(B.length/3),this.words=new Array(this.length);for(var F=0;F<this.length;F++)this.words[F]=0;var L,R,U=0;if(I==="be")for(F=B.length-1,L=0;F>=0;F-=3)R=B[F]|B[F-1]<<8|B[F-2]<<16,this.words[L]|=R<<U&67108863,this.words[L+1]=R>>>26-U&67108863,(U+=24)>=26&&(U-=26,L++);else if(I==="le")for(F=0,L=0;F<B.length;F+=3)R=B[F]|B[F+1]<<8|B[F+2]<<16,this.words[L]|=R<<U&67108863,this.words[L+1]=R>>>26-U&67108863,(U+=24)>=26&&(U-=26,L++);return this.strip()},o.prototype._parseHex=function(B,O,I){this.length=Math.ceil((B.length-O)/6),this.words=new Array(this.length);for(var F=0;F<this.length;F++)this.words[F]=0;var L,R=0,U=0;if(I==="be")for(F=B.length-1;F>=O;F-=2)L=m(B,O,F)<<R,this.words[U]|=67108863&L,R>=18?(R-=18,U+=1,this.words[U]|=L>>>26):R+=8;else for(F=(B.length-O)%2==0?O+1:O;F<B.length;F+=2)L=m(B,O,F)<<R,this.words[U]|=67108863&L,R>=18?(R-=18,U+=1,this.words[U]|=L>>>26):R+=8;this.strip()},o.prototype._parseBase=function(B,O,I){this.words=[0],this.length=1;for(var F=0,L=1;L<=67108863;L*=O)F++;F--,L=L/O|0;for(var R=B.length-I,U=R%F,V=Math.min(R,R-U)+I,W=0,Q=I;Q<V;Q+=F)W=p(B,Q,Q+F,O),this.imuln(L),this.words[0]+W<67108864?this.words[0]+=W:this._iaddn(W);if(U!==0){var le=1;for(W=p(B,Q,B.length,O),Q=0;Q<U;Q++)le*=O;this.imuln(le),this.words[0]+W<67108864?this.words[0]+=W:this._iaddn(W)}this.strip()},o.prototype.copy=function(B){B.words=new Array(this.length);for(var O=0;O<this.length;O++)B.words[O]=this.words[O];B.length=this.length,B.negative=this.negative,B.red=this.red},o.prototype.clone=function(){var B=new o(null);return this.copy(B),B},o.prototype._expand=function(B){for(;this.length<B;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","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"],y=[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],h=[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 d(B,O,I){I.negative=O.negative^B.negative;var F=B.length+O.length|0;I.length=F,F=F-1|0;var L=0|B.words[0],R=0|O.words[0],U=L*R,V=67108863&U,W=U/67108864|0;I.words[0]=V;for(var Q=1;Q<F;Q++){for(var le=W>>>26,G=67108863&W,fe=Math.min(Q,O.length-1),ie=Math.max(0,Q-B.length+1);ie<=fe;ie++){var he=Q-ie|0;le+=(U=(L=0|B.words[he])*(R=0|O.words[ie])+G)/67108864|0,G=67108863&U}I.words[Q]=0|G,W=0|le}return W!==0?I.words[Q]=0|W:I.length--,I.strip()}o.prototype.toString=function(B,O){var I;if(O=0|O||1,(B=B||10)===16||B==="hex"){I="";for(var F=0,L=0,R=0;R<this.length;R++){var U=this.words[R],V=(16777215&(U<<F|L)).toString(16);I=(L=U>>>24-F&16777215)!==0||R!==this.length-1?_[6-V.length]+V+I:V+I,(F+=2)>=26&&(F-=26,R--)}for(L!==0&&(I=L.toString(16)+I);I.length%O!=0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(B===(0|B)&&B>=2&&B<=36){var W=y[B],Q=h[B];I="";var le=this.clone();for(le.negative=0;!le.isZero();){var G=le.modn(Q).toString(B);I=(le=le.idivn(Q)).isZero()?G+I:_[W-G.length]+G+I}for(this.isZero()&&(I="0"+I);I.length%O!=0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}u(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var B=this.words[0];return this.length===2?B+=67108864*this.words[1]:this.length===3&&this.words[2]===1?B+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-B:B},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(B,O){return u(l!==void 0),this.toArrayLike(l,B,O)},o.prototype.toArray=function(B,O){return this.toArrayLike(Array,B,O)},o.prototype.toArrayLike=function(B,O,I){var F=this.byteLength(),L=I||Math.max(1,F);u(F<=L,"byte array longer than desired length"),u(L>0,"Requested array length <= 0"),this.strip();var R,U,V=O==="le",W=new B(L),Q=this.clone();if(V){for(U=0;!Q.isZero();U++)R=Q.andln(255),Q.iushrn(8),W[U]=R;for(;U<L;U++)W[U]=0}else{for(U=0;U<L-F;U++)W[U]=0;for(U=0;!Q.isZero();U++)R=Q.andln(255),Q.iushrn(8),W[L-U-1]=R}return W},Math.clz32?o.prototype._countBits=function(B){return 32-Math.clz32(B)}:o.prototype._countBits=function(B){var O=B,I=0;return O>=4096&&(I+=13,O>>>=13),O>=64&&(I+=7,O>>>=7),O>=8&&(I+=4,O>>>=4),O>=2&&(I+=2,O>>>=2),I+O},o.prototype._zeroBits=function(B){if(B===0)return 26;var O=B,I=0;return(8191&O)==0&&(I+=13,O>>>=13),(127&O)==0&&(I+=7,O>>>=7),(15&O)==0&&(I+=4,O>>>=4),(3&O)==0&&(I+=2,O>>>=2),(1&O)==0&&I++,I},o.prototype.bitLength=function(){var B=this.words[this.length-1],O=this._countBits(B);return 26*(this.length-1)+O},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var B=0,O=0;O<this.length;O++){var I=this._zeroBits(this.words[O]);if(B+=I,I!==26)break}return B},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(B){return this.negative!==0?this.abs().inotn(B).iaddn(1):this.clone()},o.prototype.fromTwos=function(B){return this.testn(B-1)?this.notn(B).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(B){for(;this.length<B.length;)this.words[this.length++]=0;for(var O=0;O<B.length;O++)this.words[O]=this.words[O]|B.words[O];return this.strip()},o.prototype.ior=function(B){return u((this.negative|B.negative)==0),this.iuor(B)},o.prototype.or=function(B){return this.length>B.length?this.clone().ior(B):B.clone().ior(this)},o.prototype.uor=function(B){return this.length>B.length?this.clone().iuor(B):B.clone().iuor(this)},o.prototype.iuand=function(B){var O;O=this.length>B.length?B:this;for(var I=0;I<O.length;I++)this.words[I]=this.words[I]&B.words[I];return this.length=O.length,this.strip()},o.prototype.iand=function(B){return u((this.negative|B.negative)==0),this.iuand(B)},o.prototype.and=function(B){return this.length>B.length?this.clone().iand(B):B.clone().iand(this)},o.prototype.uand=function(B){return this.length>B.length?this.clone().iuand(B):B.clone().iuand(this)},o.prototype.iuxor=function(B){var O,I;this.length>B.length?(O=this,I=B):(O=B,I=this);for(var F=0;F<I.length;F++)this.words[F]=O.words[F]^I.words[F];if(this!==O)for(;F<O.length;F++)this.words[F]=O.words[F];return this.length=O.length,this.strip()},o.prototype.ixor=function(B){return u((this.negative|B.negative)==0),this.iuxor(B)},o.prototype.xor=function(B){return this.length>B.length?this.clone().ixor(B):B.clone().ixor(this)},o.prototype.uxor=function(B){return this.length>B.length?this.clone().iuxor(B):B.clone().iuxor(this)},o.prototype.inotn=function(B){u(typeof B=="number"&&B>=0);var O=0|Math.ceil(B/26),I=B%26;this._expand(O),I>0&&O--;for(var F=0;F<O;F++)this.words[F]=67108863&~this.words[F];return I>0&&(this.words[F]=~this.words[F]&67108863>>26-I),this.strip()},o.prototype.notn=function(B){return this.clone().inotn(B)},o.prototype.setn=function(B,O){u(typeof B=="number"&&B>=0);var I=B/26|0,F=B%26;return this._expand(I+1),this.words[I]=O?this.words[I]|1<<F:this.words[I]&~(1<<F),this.strip()},o.prototype.iadd=function(B){var O,I,F;if(this.negative!==0&&B.negative===0)return this.negative=0,O=this.isub(B),this.negative^=1,this._normSign();if(this.negative===0&&B.negative!==0)return B.negative=0,O=this.isub(B),B.negative=1,O._normSign();this.length>B.length?(I=this,F=B):(I=B,F=this);for(var L=0,R=0;R<F.length;R++)O=(0|I.words[R])+(0|F.words[R])+L,this.words[R]=67108863&O,L=O>>>26;for(;L!==0&&R<I.length;R++)O=(0|I.words[R])+L,this.words[R]=67108863&O,L=O>>>26;if(this.length=I.length,L!==0)this.words[this.length]=L,this.length++;else if(I!==this)for(;R<I.length;R++)this.words[R]=I.words[R];return this},o.prototype.add=function(B){var O;return B.negative!==0&&this.negative===0?(B.negative=0,O=this.sub(B),B.negative^=1,O):B.negative===0&&this.negative!==0?(this.negative=0,O=B.sub(this),this.negative=1,O):this.length>B.length?this.clone().iadd(B):B.clone().iadd(this)},o.prototype.isub=function(B){if(B.negative!==0){B.negative=0;var O=this.iadd(B);return B.negative=1,O._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(B),this.negative=1,this._normSign();var I,F,L=this.cmp(B);if(L===0)return this.negative=0,this.length=1,this.words[0]=0,this;L>0?(I=this,F=B):(I=B,F=this);for(var R=0,U=0;U<F.length;U++)R=(O=(0|I.words[U])-(0|F.words[U])+R)>>26,this.words[U]=67108863&O;for(;R!==0&&U<I.length;U++)R=(O=(0|I.words[U])+R)>>26,this.words[U]=67108863&O;if(R===0&&U<I.length&&I!==this)for(;U<I.length;U++)this.words[U]=I.words[U];return this.length=Math.max(this.length,U),I!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(B){return this.clone().isub(B)};var A=function(B,O,I){var F,L,R,U=B.words,V=O.words,W=I.words,Q=0,le=0|U[0],G=8191&le,fe=le>>>13,ie=0|U[1],he=8191&ie,Y=ie>>>13,K=0|U[2],oe=8191&K,pe=K>>>13,ve=0|U[3],ge=8191&ve,ue=ve>>>13,Te=0|U[4],Ee=8191&Te,ye=Te>>>13,Se=0|U[5],Fe=8191&Se,Ve=Se>>>13,ke=0|U[6],Pe=8191&ke,Re=ke>>>13,Ye=0|U[7],Ke=8191&Ye,ot=Ye>>>13,nt=0|U[8],mt=8191&nt,Ut=nt>>>13,Ot=0|U[9],wt=8191&Ot,Kt=Ot>>>13,_t=0|V[0],Jt=8191&_t,yr=_t>>>13,vr=0|V[1],Br=8191&vr,zr=vr>>>13,mn=0|V[2],jr=8191&mn,Tn=mn>>>13,Lt=0|V[3],Gt=8191&Lt,$t=Lt>>>13,Sr=0|V[4],br=8191&Sr,sr=Sr>>>13,Fn=0|V[5],fn=8191&Fn,Or=Fn>>>13,ar=0|V[6],Wr=8191&ar,Tt=ar>>>13,Qt=0|V[7],hr=8191&Qt,ze=Qt>>>13,Ze=0|V[8],qe=8191&Ze,Ge=Ze>>>13,$e=0|V[9],tt=8191&$e,bt=$e>>>13;I.negative=B.negative^O.negative,I.length=19;var xt=(Q+(F=Math.imul(G,Jt))|0)+((8191&(L=(L=Math.imul(G,yr))+Math.imul(fe,Jt)|0))<<13)|0;Q=((R=Math.imul(fe,yr))+(L>>>13)|0)+(xt>>>26)|0,xt&=67108863,F=Math.imul(he,Jt),L=(L=Math.imul(he,yr))+Math.imul(Y,Jt)|0,R=Math.imul(Y,yr);var kt=(Q+(F=F+Math.imul(G,Br)|0)|0)+((8191&(L=(L=L+Math.imul(G,zr)|0)+Math.imul(fe,Br)|0))<<13)|0;Q=((R=R+Math.imul(fe,zr)|0)+(L>>>13)|0)+(kt>>>26)|0,kt&=67108863,F=Math.imul(oe,Jt),L=(L=Math.imul(oe,yr))+Math.imul(pe,Jt)|0,R=Math.imul(pe,yr),F=F+Math.imul(he,Br)|0,L=(L=L+Math.imul(he,zr)|0)+Math.imul(Y,Br)|0,R=R+Math.imul(Y,zr)|0;var Bt=(Q+(F=F+Math.imul(G,jr)|0)|0)+((8191&(L=(L=L+Math.imul(G,Tn)|0)+Math.imul(fe,jr)|0))<<13)|0;Q=((R=R+Math.imul(fe,Tn)|0)+(L>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,F=Math.imul(ge,Jt),L=(L=Math.imul(ge,yr))+Math.imul(ue,Jt)|0,R=Math.imul(ue,yr),F=F+Math.imul(oe,Br)|0,L=(L=L+Math.imul(oe,zr)|0)+Math.imul(pe,Br)|0,R=R+Math.imul(pe,zr)|0,F=F+Math.imul(he,jr)|0,L=(L=L+Math.imul(he,Tn)|0)+Math.imul(Y,jr)|0,R=R+Math.imul(Y,Tn)|0;var Dt=(Q+(F=F+Math.imul(G,Gt)|0)|0)+((8191&(L=(L=L+Math.imul(G,$t)|0)+Math.imul(fe,Gt)|0))<<13)|0;Q=((R=R+Math.imul(fe,$t)|0)+(L>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,F=Math.imul(Ee,Jt),L=(L=Math.imul(Ee,yr))+Math.imul(ye,Jt)|0,R=Math.imul(ye,yr),F=F+Math.imul(ge,Br)|0,L=(L=L+Math.imul(ge,zr)|0)+Math.imul(ue,Br)|0,R=R+Math.imul(ue,zr)|0,F=F+Math.imul(oe,jr)|0,L=(L=L+Math.imul(oe,Tn)|0)+Math.imul(pe,jr)|0,R=R+Math.imul(pe,Tn)|0,F=F+Math.imul(he,Gt)|0,L=(L=L+Math.imul(he,$t)|0)+Math.imul(Y,Gt)|0,R=R+Math.imul(Y,$t)|0;var or=(Q+(F=F+Math.imul(G,br)|0)|0)+((8191&(L=(L=L+Math.imul(G,sr)|0)+Math.imul(fe,br)|0))<<13)|0;Q=((R=R+Math.imul(fe,sr)|0)+(L>>>13)|0)+(or>>>26)|0,or&=67108863,F=Math.imul(Fe,Jt),L=(L=Math.imul(Fe,yr))+Math.imul(Ve,Jt)|0,R=Math.imul(Ve,yr),F=F+Math.imul(Ee,Br)|0,L=(L=L+Math.imul(Ee,zr)|0)+Math.imul(ye,Br)|0,R=R+Math.imul(ye,zr)|0,F=F+Math.imul(ge,jr)|0,L=(L=L+Math.imul(ge,Tn)|0)+Math.imul(ue,jr)|0,R=R+Math.imul(ue,Tn)|0,F=F+Math.imul(oe,Gt)|0,L=(L=L+Math.imul(oe,$t)|0)+Math.imul(pe,Gt)|0,R=R+Math.imul(pe,$t)|0,F=F+Math.imul(he,br)|0,L=(L=L+Math.imul(he,sr)|0)+Math.imul(Y,br)|0,R=R+Math.imul(Y,sr)|0;var gr=(Q+(F=F+Math.imul(G,fn)|0)|0)+((8191&(L=(L=L+Math.imul(G,Or)|0)+Math.imul(fe,fn)|0))<<13)|0;Q=((R=R+Math.imul(fe,Or)|0)+(L>>>13)|0)+(gr>>>26)|0,gr&=67108863,F=Math.imul(Pe,Jt),L=(L=Math.imul(Pe,yr))+Math.imul(Re,Jt)|0,R=Math.imul(Re,yr),F=F+Math.imul(Fe,Br)|0,L=(L=L+Math.imul(Fe,zr)|0)+Math.imul(Ve,Br)|0,R=R+Math.imul(Ve,zr)|0,F=F+Math.imul(Ee,jr)|0,L=(L=L+Math.imul(Ee,Tn)|0)+Math.imul(ye,jr)|0,R=R+Math.imul(ye,Tn)|0,F=F+Math.imul(ge,Gt)|0,L=(L=L+Math.imul(ge,$t)|0)+Math.imul(ue,Gt)|0,R=R+Math.imul(ue,$t)|0,F=F+Math.imul(oe,br)|0,L=(L=L+Math.imul(oe,sr)|0)+Math.imul(pe,br)|0,R=R+Math.imul(pe,sr)|0,F=F+Math.imul(he,fn)|0,L=(L=L+Math.imul(he,Or)|0)+Math.imul(Y,fn)|0,R=R+Math.imul(Y,Or)|0;var kr=(Q+(F=F+Math.imul(G,Wr)|0)|0)+((8191&(L=(L=L+Math.imul(G,Tt)|0)+Math.imul(fe,Wr)|0))<<13)|0;Q=((R=R+Math.imul(fe,Tt)|0)+(L>>>13)|0)+(kr>>>26)|0,kr&=67108863,F=Math.imul(Ke,Jt),L=(L=Math.imul(Ke,yr))+Math.imul(ot,Jt)|0,R=Math.imul(ot,yr),F=F+Math.imul(Pe,Br)|0,L=(L=L+Math.imul(Pe,zr)|0)+Math.imul(Re,Br)|0,R=R+Math.imul(Re,zr)|0,F=F+Math.imul(Fe,jr)|0,L=(L=L+Math.imul(Fe,Tn)|0)+Math.imul(Ve,jr)|0,R=R+Math.imul(Ve,Tn)|0,F=F+Math.imul(Ee,Gt)|0,L=(L=L+Math.imul(Ee,$t)|0)+Math.imul(ye,Gt)|0,R=R+Math.imul(ye,$t)|0,F=F+Math.imul(ge,br)|0,L=(L=L+Math.imul(ge,sr)|0)+Math.imul(ue,br)|0,R=R+Math.imul(ue,sr)|0,F=F+Math.imul(oe,fn)|0,L=(L=L+Math.imul(oe,Or)|0)+Math.imul(pe,fn)|0,R=R+Math.imul(pe,Or)|0,F=F+Math.imul(he,Wr)|0,L=(L=L+Math.imul(he,Tt)|0)+Math.imul(Y,Wr)|0,R=R+Math.imul(Y,Tt)|0;var it=(Q+(F=F+Math.imul(G,hr)|0)|0)+((8191&(L=(L=L+Math.imul(G,ze)|0)+Math.imul(fe,hr)|0))<<13)|0;Q=((R=R+Math.imul(fe,ze)|0)+(L>>>13)|0)+(it>>>26)|0,it&=67108863,F=Math.imul(mt,Jt),L=(L=Math.imul(mt,yr))+Math.imul(Ut,Jt)|0,R=Math.imul(Ut,yr),F=F+Math.imul(Ke,Br)|0,L=(L=L+Math.imul(Ke,zr)|0)+Math.imul(ot,Br)|0,R=R+Math.imul(ot,zr)|0,F=F+Math.imul(Pe,jr)|0,L=(L=L+Math.imul(Pe,Tn)|0)+Math.imul(Re,jr)|0,R=R+Math.imul(Re,Tn)|0,F=F+Math.imul(Fe,Gt)|0,L=(L=L+Math.imul(Fe,$t)|0)+Math.imul(Ve,Gt)|0,R=R+Math.imul(Ve,$t)|0,F=F+Math.imul(Ee,br)|0,L=(L=L+Math.imul(Ee,sr)|0)+Math.imul(ye,br)|0,R=R+Math.imul(ye,sr)|0,F=F+Math.imul(ge,fn)|0,L=(L=L+Math.imul(ge,Or)|0)+Math.imul(ue,fn)|0,R=R+Math.imul(ue,Or)|0,F=F+Math.imul(oe,Wr)|0,L=(L=L+Math.imul(oe,Tt)|0)+Math.imul(pe,Wr)|0,R=R+Math.imul(pe,Tt)|0,F=F+Math.imul(he,hr)|0,L=(L=L+Math.imul(he,ze)|0)+Math.imul(Y,hr)|0,R=R+Math.imul(Y,ze)|0;var We=(Q+(F=F+Math.imul(G,qe)|0)|0)+((8191&(L=(L=L+Math.imul(G,Ge)|0)+Math.imul(fe,qe)|0))<<13)|0;Q=((R=R+Math.imul(fe,Ge)|0)+(L>>>13)|0)+(We>>>26)|0,We&=67108863,F=Math.imul(wt,Jt),L=(L=Math.imul(wt,yr))+Math.imul(Kt,Jt)|0,R=Math.imul(Kt,yr),F=F+Math.imul(mt,Br)|0,L=(L=L+Math.imul(mt,zr)|0)+Math.imul(Ut,Br)|0,R=R+Math.imul(Ut,zr)|0,F=F+Math.imul(Ke,jr)|0,L=(L=L+Math.imul(Ke,Tn)|0)+Math.imul(ot,jr)|0,R=R+Math.imul(ot,Tn)|0,F=F+Math.imul(Pe,Gt)|0,L=(L=L+Math.imul(Pe,$t)|0)+Math.imul(Re,Gt)|0,R=R+Math.imul(Re,$t)|0,F=F+Math.imul(Fe,br)|0,L=(L=L+Math.imul(Fe,sr)|0)+Math.imul(Ve,br)|0,R=R+Math.imul(Ve,sr)|0,F=F+Math.imul(Ee,fn)|0,L=(L=L+Math.imul(Ee,Or)|0)+Math.imul(ye,fn)|0,R=R+Math.imul(ye,Or)|0,F=F+Math.imul(ge,Wr)|0,L=(L=L+Math.imul(ge,Tt)|0)+Math.imul(ue,Wr)|0,R=R+Math.imul(ue,Tt)|0,F=F+Math.imul(oe,hr)|0,L=(L=L+Math.imul(oe,ze)|0)+Math.imul(pe,hr)|0,R=R+Math.imul(pe,ze)|0,F=F+Math.imul(he,qe)|0,L=(L=L+Math.imul(he,Ge)|0)+Math.imul(Y,qe)|0,R=R+Math.imul(Y,Ge)|0;var gt=(Q+(F=F+Math.imul(G,tt)|0)|0)+((8191&(L=(L=L+Math.imul(G,bt)|0)+Math.imul(fe,tt)|0))<<13)|0;Q=((R=R+Math.imul(fe,bt)|0)+(L>>>13)|0)+(gt>>>26)|0,gt&=67108863,F=Math.imul(wt,Br),L=(L=Math.imul(wt,zr))+Math.imul(Kt,Br)|0,R=Math.imul(Kt,zr),F=F+Math.imul(mt,jr)|0,L=(L=L+Math.imul(mt,Tn)|0)+Math.imul(Ut,jr)|0,R=R+Math.imul(Ut,Tn)|0,F=F+Math.imul(Ke,Gt)|0,L=(L=L+Math.imul(Ke,$t)|0)+Math.imul(ot,Gt)|0,R=R+Math.imul(ot,$t)|0,F=F+Math.imul(Pe,br)|0,L=(L=L+Math.imul(Pe,sr)|0)+Math.imul(Re,br)|0,R=R+Math.imul(Re,sr)|0,F=F+Math.imul(Fe,fn)|0,L=(L=L+Math.imul(Fe,Or)|0)+Math.imul(Ve,fn)|0,R=R+Math.imul(Ve,Or)|0,F=F+Math.imul(Ee,Wr)|0,L=(L=L+Math.imul(Ee,Tt)|0)+Math.imul(ye,Wr)|0,R=R+Math.imul(ye,Tt)|0,F=F+Math.imul(ge,hr)|0,L=(L=L+Math.imul(ge,ze)|0)+Math.imul(ue,hr)|0,R=R+Math.imul(ue,ze)|0,F=F+Math.imul(oe,qe)|0,L=(L=L+Math.imul(oe,Ge)|0)+Math.imul(pe,qe)|0,R=R+Math.imul(pe,Ge)|0;var yt=(Q+(F=F+Math.imul(he,tt)|0)|0)+((8191&(L=(L=L+Math.imul(he,bt)|0)+Math.imul(Y,tt)|0))<<13)|0;Q=((R=R+Math.imul(Y,bt)|0)+(L>>>13)|0)+(yt>>>26)|0,yt&=67108863,F=Math.imul(wt,jr),L=(L=Math.imul(wt,Tn))+Math.imul(Kt,jr)|0,R=Math.imul(Kt,Tn),F=F+Math.imul(mt,Gt)|0,L=(L=L+Math.imul(mt,$t)|0)+Math.imul(Ut,Gt)|0,R=R+Math.imul(Ut,$t)|0,F=F+Math.imul(Ke,br)|0,L=(L=L+Math.imul(Ke,sr)|0)+Math.imul(ot,br)|0,R=R+Math.imul(ot,sr)|0,F=F+Math.imul(Pe,fn)|0,L=(L=L+Math.imul(Pe,Or)|0)+Math.imul(Re,fn)|0,R=R+Math.imul(Re,Or)|0,F=F+Math.imul(Fe,Wr)|0,L=(L=L+Math.imul(Fe,Tt)|0)+Math.imul(Ve,Wr)|0,R=R+Math.imul(Ve,Tt)|0,F=F+Math.imul(Ee,hr)|0,L=(L=L+Math.imul(Ee,ze)|0)+Math.imul(ye,hr)|0,R=R+Math.imul(ye,ze)|0,F=F+Math.imul(ge,qe)|0,L=(L=L+Math.imul(ge,Ge)|0)+Math.imul(ue,qe)|0,R=R+Math.imul(ue,Ge)|0;var Rt=(Q+(F=F+Math.imul(oe,tt)|0)|0)+((8191&(L=(L=L+Math.imul(oe,bt)|0)+Math.imul(pe,tt)|0))<<13)|0;Q=((R=R+Math.imul(pe,bt)|0)+(L>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,F=Math.imul(wt,Gt),L=(L=Math.imul(wt,$t))+Math.imul(Kt,Gt)|0,R=Math.imul(Kt,$t),F=F+Math.imul(mt,br)|0,L=(L=L+Math.imul(mt,sr)|0)+Math.imul(Ut,br)|0,R=R+Math.imul(Ut,sr)|0,F=F+Math.imul(Ke,fn)|0,L=(L=L+Math.imul(Ke,Or)|0)+Math.imul(ot,fn)|0,R=R+Math.imul(ot,Or)|0,F=F+Math.imul(Pe,Wr)|0,L=(L=L+Math.imul(Pe,Tt)|0)+Math.imul(Re,Wr)|0,R=R+Math.imul(Re,Tt)|0,F=F+Math.imul(Fe,hr)|0,L=(L=L+Math.imul(Fe,ze)|0)+Math.imul(Ve,hr)|0,R=R+Math.imul(Ve,ze)|0,F=F+Math.imul(Ee,qe)|0,L=(L=L+Math.imul(Ee,Ge)|0)+Math.imul(ye,qe)|0,R=R+Math.imul(ye,Ge)|0;var Mt=(Q+(F=F+Math.imul(ge,tt)|0)|0)+((8191&(L=(L=L+Math.imul(ge,bt)|0)+Math.imul(ue,tt)|0))<<13)|0;Q=((R=R+Math.imul(ue,bt)|0)+(L>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,F=Math.imul(wt,br),L=(L=Math.imul(wt,sr))+Math.imul(Kt,br)|0,R=Math.imul(Kt,sr),F=F+Math.imul(mt,fn)|0,L=(L=L+Math.imul(mt,Or)|0)+Math.imul(Ut,fn)|0,R=R+Math.imul(Ut,Or)|0,F=F+Math.imul(Ke,Wr)|0,L=(L=L+Math.imul(Ke,Tt)|0)+Math.imul(ot,Wr)|0,R=R+Math.imul(ot,Tt)|0,F=F+Math.imul(Pe,hr)|0,L=(L=L+Math.imul(Pe,ze)|0)+Math.imul(Re,hr)|0,R=R+Math.imul(Re,ze)|0,F=F+Math.imul(Fe,qe)|0,L=(L=L+Math.imul(Fe,Ge)|0)+Math.imul(Ve,qe)|0,R=R+Math.imul(Ve,Ge)|0;var It=(Q+(F=F+Math.imul(Ee,tt)|0)|0)+((8191&(L=(L=L+Math.imul(Ee,bt)|0)+Math.imul(ye,tt)|0))<<13)|0;Q=((R=R+Math.imul(ye,bt)|0)+(L>>>13)|0)+(It>>>26)|0,It&=67108863,F=Math.imul(wt,fn),L=(L=Math.imul(wt,Or))+Math.imul(Kt,fn)|0,R=Math.imul(Kt,Or),F=F+Math.imul(mt,Wr)|0,L=(L=L+Math.imul(mt,Tt)|0)+Math.imul(Ut,Wr)|0,R=R+Math.imul(Ut,Tt)|0,F=F+Math.imul(Ke,hr)|0,L=(L=L+Math.imul(Ke,ze)|0)+Math.imul(ot,hr)|0,R=R+Math.imul(ot,ze)|0,F=F+Math.imul(Pe,qe)|0,L=(L=L+Math.imul(Pe,Ge)|0)+Math.imul(Re,qe)|0,R=R+Math.imul(Re,Ge)|0;var xr=(Q+(F=F+Math.imul(Fe,tt)|0)|0)+((8191&(L=(L=L+Math.imul(Fe,bt)|0)+Math.imul(Ve,tt)|0))<<13)|0;Q=((R=R+Math.imul(Ve,bt)|0)+(L>>>13)|0)+(xr>>>26)|0,xr&=67108863,F=Math.imul(wt,Wr),L=(L=Math.imul(wt,Tt))+Math.imul(Kt,Wr)|0,R=Math.imul(Kt,Tt),F=F+Math.imul(mt,hr)|0,L=(L=L+Math.imul(mt,ze)|0)+Math.imul(Ut,hr)|0,R=R+Math.imul(Ut,ze)|0,F=F+Math.imul(Ke,qe)|0,L=(L=L+Math.imul(Ke,Ge)|0)+Math.imul(ot,qe)|0,R=R+Math.imul(ot,Ge)|0;var rn=(Q+(F=F+Math.imul(Pe,tt)|0)|0)+((8191&(L=(L=L+Math.imul(Pe,bt)|0)+Math.imul(Re,tt)|0))<<13)|0;Q=((R=R+Math.imul(Re,bt)|0)+(L>>>13)|0)+(rn>>>26)|0,rn&=67108863,F=Math.imul(wt,hr),L=(L=Math.imul(wt,ze))+Math.imul(Kt,hr)|0,R=Math.imul(Kt,ze),F=F+Math.imul(mt,qe)|0,L=(L=L+Math.imul(mt,Ge)|0)+Math.imul(Ut,qe)|0,R=R+Math.imul(Ut,Ge)|0;var Zr=(Q+(F=F+Math.imul(Ke,tt)|0)|0)+((8191&(L=(L=L+Math.imul(Ke,bt)|0)+Math.imul(ot,tt)|0))<<13)|0;Q=((R=R+Math.imul(ot,bt)|0)+(L>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,F=Math.imul(wt,qe),L=(L=Math.imul(wt,Ge))+Math.imul(Kt,qe)|0,R=Math.imul(Kt,Ge);var Rr=(Q+(F=F+Math.imul(mt,tt)|0)|0)+((8191&(L=(L=L+Math.imul(mt,bt)|0)+Math.imul(Ut,tt)|0))<<13)|0;Q=((R=R+Math.imul(Ut,bt)|0)+(L>>>13)|0)+(Rr>>>26)|0,Rr&=67108863;var $r=(Q+(F=Math.imul(wt,tt))|0)+((8191&(L=(L=Math.imul(wt,bt))+Math.imul(Kt,tt)|0))<<13)|0;return Q=((R=Math.imul(Kt,bt))+(L>>>13)|0)+($r>>>26)|0,$r&=67108863,W[0]=xt,W[1]=kt,W[2]=Bt,W[3]=Dt,W[4]=or,W[5]=gr,W[6]=kr,W[7]=it,W[8]=We,W[9]=gt,W[10]=yt,W[11]=Rt,W[12]=Mt,W[13]=It,W[14]=xr,W[15]=rn,W[16]=Zr,W[17]=Rr,W[18]=$r,Q!==0&&(W[19]=Q,I.length++),I};function v(B,O,I){return new w().mulp(B,O,I)}function w(B,O){this.x=B,this.y=O}Math.imul||(A=d),o.prototype.mulTo=function(B,O){var I=this.length+B.length;return this.length===10&&B.length===10?A(this,B,O):I<63?d(this,B,O):I<1024?(function(F,L,R){R.negative=L.negative^F.negative,R.length=F.length+L.length;for(var U=0,V=0,W=0;W<R.length-1;W++){var Q=V;V=0;for(var le=67108863&U,G=Math.min(W,L.length-1),fe=Math.max(0,W-F.length+1);fe<=G;fe++){var ie=W-fe,he=(0|F.words[ie])*(0|L.words[fe]),Y=67108863&he;le=67108863&(Y=Y+le|0),V+=(Q=(Q=Q+(he/67108864|0)|0)+(Y>>>26)|0)>>>26,Q&=67108863}R.words[W]=le,U=Q,Q=V}return U!==0?R.words[W]=U:R.length--,R.strip()})(this,B,O):v(this,B,O)},w.prototype.makeRBT=function(B){for(var O=new Array(B),I=o.prototype._countBits(B)-1,F=0;F<B;F++)O[F]=this.revBin(F,I,B);return O},w.prototype.revBin=function(B,O,I){if(B===0||B===I-1)return B;for(var F=0,L=0;L<O;L++)F|=(1&B)<<O-L-1,B>>=1;return F},w.prototype.permute=function(B,O,I,F,L,R){for(var U=0;U<R;U++)F[U]=O[B[U]],L[U]=I[B[U]]},w.prototype.transform=function(B,O,I,F,L,R){this.permute(R,B,O,I,F,L);for(var U=1;U<L;U<<=1)for(var V=U<<1,W=Math.cos(2*Math.PI/V),Q=Math.sin(2*Math.PI/V),le=0;le<L;le+=V)for(var G=W,fe=Q,ie=0;ie<U;ie++){var he=I[le+ie],Y=F[le+ie],K=I[le+ie+U],oe=F[le+ie+U],pe=G*K-fe*oe;oe=G*oe+fe*K,K=pe,I[le+ie]=he+K,F[le+ie]=Y+oe,I[le+ie+U]=he-K,F[le+ie+U]=Y-oe,ie!==V&&(pe=W*G-Q*fe,fe=W*fe+Q*G,G=pe)}},w.prototype.guessLen13b=function(B,O){var I=1|Math.max(O,B),F=1&I,L=0;for(I=I/2|0;I;I>>>=1)L++;return 1<<L+1+F},w.prototype.conjugate=function(B,O,I){if(!(I<=1))for(var F=0;F<I/2;F++){var L=B[F];B[F]=B[I-F-1],B[I-F-1]=L,L=O[F],O[F]=-O[I-F-1],O[I-F-1]=-L}},w.prototype.normalize13b=function(B,O){for(var I=0,F=0;F<O/2;F++){var L=8192*Math.round(B[2*F+1]/O)+Math.round(B[2*F]/O)+I;B[F]=67108863&L,I=L<67108864?0:L/67108864|0}return B},w.prototype.convert13b=function(B,O,I,F){for(var L=0,R=0;R<O;R++)L+=0|B[R],I[2*R]=8191&L,L>>>=13,I[2*R+1]=8191&L,L>>>=13;for(R=2*O;R<F;++R)I[R]=0;u(L===0),u((-8192&L)==0)},w.prototype.stub=function(B){for(var O=new Array(B),I=0;I<B;I++)O[I]=0;return O},w.prototype.mulp=function(B,O,I){var F=2*this.guessLen13b(B.length,O.length),L=this.makeRBT(F),R=this.stub(F),U=new Array(F),V=new Array(F),W=new Array(F),Q=new Array(F),le=new Array(F),G=new Array(F),fe=I.words;fe.length=F,this.convert13b(B.words,B.length,U,F),this.convert13b(O.words,O.length,Q,F),this.transform(U,R,V,W,F,L),this.transform(Q,R,le,G,F,L);for(var ie=0;ie<F;ie++){var he=V[ie]*le[ie]-W[ie]*G[ie];W[ie]=V[ie]*G[ie]+W[ie]*le[ie],V[ie]=he}return this.conjugate(V,W,F),this.transform(V,W,fe,R,F,L),this.conjugate(fe,R,F),this.normalize13b(fe,F),I.negative=B.negative^O.negative,I.length=B.length+O.length,I.strip()},o.prototype.mul=function(B){var O=new o(null);return O.words=new Array(this.length+B.length),this.mulTo(B,O)},o.prototype.mulf=function(B){var O=new o(null);return O.words=new Array(this.length+B.length),v(this,B,O)},o.prototype.imul=function(B){return this.clone().mulTo(B,this)},o.prototype.imuln=function(B){u(typeof B=="number"),u(B<67108864);for(var O=0,I=0;I<this.length;I++){var F=(0|this.words[I])*B,L=(67108863&F)+(67108863&O);O>>=26,O+=F/67108864|0,O+=L>>>26,this.words[I]=67108863&L}return O!==0&&(this.words[I]=O,this.length++),this},o.prototype.muln=function(B){return this.clone().imuln(B)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(B){var O=(function(R){for(var U=new Array(R.bitLength()),V=0;V<U.length;V++){var W=V/26|0,Q=V%26;U[V]=(R.words[W]&1<<Q)>>>Q}return U})(B);if(O.length===0)return new o(1);for(var I=this,F=0;F<O.length&&O[F]===0;F++,I=I.sqr());if(++F<O.length)for(var L=I.sqr();F<O.length;F++,L=L.sqr())O[F]!==0&&(I=I.mul(L));return I},o.prototype.iushln=function(B){u(typeof B=="number"&&B>=0);var O,I=B%26,F=(B-I)/26,L=67108863>>>26-I<<26-I;if(I!==0){var R=0;for(O=0;O<this.length;O++){var U=this.words[O]&L,V=(0|this.words[O])-U<<I;this.words[O]=V|R,R=U>>>26-I}R&&(this.words[O]=R,this.length++)}if(F!==0){for(O=this.length-1;O>=0;O--)this.words[O+F]=this.words[O];for(O=0;O<F;O++)this.words[O]=0;this.length+=F}return this.strip()},o.prototype.ishln=function(B){return u(this.negative===0),this.iushln(B)},o.prototype.iushrn=function(B,O,I){var F;u(typeof B=="number"&&B>=0),F=O?(O-O%26)/26:0;var L=B%26,R=Math.min((B-L)/26,this.length),U=67108863^67108863>>>L<<L,V=I;if(F-=R,F=Math.max(0,F),V){for(var W=0;W<R;W++)V.words[W]=this.words[W];V.length=R}if(R!==0)if(this.length>R)for(this.length-=R,W=0;W<this.length;W++)this.words[W]=this.words[W+R];else this.words[0]=0,this.length=1;var Q=0;for(W=this.length-1;W>=0&&(Q!==0||W>=F);W--){var le=0|this.words[W];this.words[W]=Q<<26-L|le>>>L,Q=le&U}return V&&Q!==0&&(V.words[V.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(B,O,I){return u(this.negative===0),this.iushrn(B,O,I)},o.prototype.shln=function(B){return this.clone().ishln(B)},o.prototype.ushln=function(B){return this.clone().iushln(B)},o.prototype.shrn=function(B){return this.clone().ishrn(B)},o.prototype.ushrn=function(B){return this.clone().iushrn(B)},o.prototype.testn=function(B){u(typeof B=="number"&&B>=0);var O=B%26,I=(B-O)/26,F=1<<O;return!(this.length<=I)&&!!(this.words[I]&F)},o.prototype.imaskn=function(B){u(typeof B=="number"&&B>=0);var O=B%26,I=(B-O)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(O!==0&&I++,this.length=Math.min(I,this.length),O!==0){var F=67108863^67108863>>>O<<O;this.words[this.length-1]&=F}return this.strip()},o.prototype.maskn=function(B){return this.clone().imaskn(B)},o.prototype.iaddn=function(B){return u(typeof B=="number"),u(B<67108864),B<0?this.isubn(-B):this.negative!==0?this.length===1&&(0|this.words[0])<B?(this.words[0]=B-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(B),this.negative=1,this):this._iaddn(B)},o.prototype._iaddn=function(B){this.words[0]+=B;for(var O=0;O<this.length&&this.words[O]>=67108864;O++)this.words[O]-=67108864,O===this.length-1?this.words[O+1]=1:this.words[O+1]++;return this.length=Math.max(this.length,O+1),this},o.prototype.isubn=function(B){if(u(typeof B=="number"),u(B<67108864),B<0)return this.iaddn(-B);if(this.negative!==0)return this.negative=0,this.iaddn(B),this.negative=1,this;if(this.words[0]-=B,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var O=0;O<this.length&&this.words[O]<0;O++)this.words[O]+=67108864,this.words[O+1]-=1;return this.strip()},o.prototype.addn=function(B){return this.clone().iaddn(B)},o.prototype.subn=function(B){return this.clone().isubn(B)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(B,O,I){var F,L,R=B.length+I;this._expand(R);var U=0;for(F=0;F<B.length;F++){L=(0|this.words[F+I])+U;var V=(0|B.words[F])*O;U=((L-=67108863&V)>>26)-(V/67108864|0),this.words[F+I]=67108863&L}for(;F<this.length-I;F++)U=(L=(0|this.words[F+I])+U)>>26,this.words[F+I]=67108863&L;if(U===0)return this.strip();for(u(U===-1),U=0,F=0;F<this.length;F++)U=(L=-(0|this.words[F])+U)>>26,this.words[F]=67108863&L;return this.negative=1,this.strip()},o.prototype._wordDiv=function(B,O){var I=(this.length,B.length),F=this.clone(),L=B,R=0|L.words[L.length-1];(I=26-this._countBits(R))!==0&&(L=L.ushln(I),F.iushln(I),R=0|L.words[L.length-1]);var U,V=F.length-L.length;if(O!=="mod"){(U=new o(null)).length=V+1,U.words=new Array(U.length);for(var W=0;W<U.length;W++)U.words[W]=0}var Q=F.clone()._ishlnsubmul(L,1,V);Q.negative===0&&(F=Q,U&&(U.words[V]=1));for(var le=V-1;le>=0;le--){var G=67108864*(0|F.words[L.length+le])+(0|F.words[L.length+le-1]);for(G=Math.min(G/R|0,67108863),F._ishlnsubmul(L,G,le);F.negative!==0;)G--,F.negative=0,F._ishlnsubmul(L,1,le),F.isZero()||(F.negative^=1);U&&(U.words[le]=G)}return U&&U.strip(),F.strip(),O!=="div"&&I!==0&&F.iushrn(I),{div:U||null,mod:F}},o.prototype.divmod=function(B,O,I){return u(!B.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:this.negative!==0&&B.negative===0?(R=this.neg().divmod(B,O),O!=="mod"&&(F=R.div.neg()),O!=="div"&&(L=R.mod.neg(),I&&L.negative!==0&&L.iadd(B)),{div:F,mod:L}):this.negative===0&&B.negative!==0?(R=this.divmod(B.neg(),O),O!=="mod"&&(F=R.div.neg()),{div:F,mod:R.mod}):(this.negative&B.negative)!=0?(R=this.neg().divmod(B.neg(),O),O!=="div"&&(L=R.mod.neg(),I&&L.negative!==0&&L.isub(B)),{div:R.div,mod:L}):B.length>this.length||this.cmp(B)<0?{div:new o(0),mod:this}:B.length===1?O==="div"?{div:this.divn(B.words[0]),mod:null}:O==="mod"?{div:null,mod:new o(this.modn(B.words[0]))}:{div:this.divn(B.words[0]),mod:new o(this.modn(B.words[0]))}:this._wordDiv(B,O);var F,L,R},o.prototype.div=function(B){return this.divmod(B,"div",!1).div},o.prototype.mod=function(B){return this.divmod(B,"mod",!1).mod},o.prototype.umod=function(B){return this.divmod(B,"mod",!0).mod},o.prototype.divRound=function(B){var O=this.divmod(B);if(O.mod.isZero())return O.div;var I=O.div.negative!==0?O.mod.isub(B):O.mod,F=B.ushrn(1),L=B.andln(1),R=I.cmp(F);return R<0||L===1&&R===0?O.div:O.div.negative!==0?O.div.isubn(1):O.div.iaddn(1)},o.prototype.modn=function(B){u(B<=67108863);for(var O=(1<<26)%B,I=0,F=this.length-1;F>=0;F--)I=(O*I+(0|this.words[F]))%B;return I},o.prototype.idivn=function(B){u(B<=67108863);for(var O=0,I=this.length-1;I>=0;I--){var F=(0|this.words[I])+67108864*O;this.words[I]=F/B|0,O=F%B}return this.strip()},o.prototype.divn=function(B){return this.clone().idivn(B)},o.prototype.egcd=function(B){u(B.negative===0),u(!B.isZero());var O=this,I=B.clone();O=O.negative!==0?O.umod(B):O.clone();for(var F=new o(1),L=new o(0),R=new o(0),U=new o(1),V=0;O.isEven()&&I.isEven();)O.iushrn(1),I.iushrn(1),++V;for(var W=I.clone(),Q=O.clone();!O.isZero();){for(var le=0,G=1;(O.words[0]&G)==0&&le<26;++le,G<<=1);if(le>0)for(O.iushrn(le);le-- >0;)(F.isOdd()||L.isOdd())&&(F.iadd(W),L.isub(Q)),F.iushrn(1),L.iushrn(1);for(var fe=0,ie=1;(I.words[0]&ie)==0&&fe<26;++fe,ie<<=1);if(fe>0)for(I.iushrn(fe);fe-- >0;)(R.isOdd()||U.isOdd())&&(R.iadd(W),U.isub(Q)),R.iushrn(1),U.iushrn(1);O.cmp(I)>=0?(O.isub(I),F.isub(R),L.isub(U)):(I.isub(O),R.isub(F),U.isub(L))}return{a:R,b:U,gcd:I.iushln(V)}},o.prototype._invmp=function(B){u(B.negative===0),u(!B.isZero());var O=this,I=B.clone();O=O.negative!==0?O.umod(B):O.clone();for(var F,L=new o(1),R=new o(0),U=I.clone();O.cmpn(1)>0&&I.cmpn(1)>0;){for(var V=0,W=1;(O.words[0]&W)==0&&V<26;++V,W<<=1);if(V>0)for(O.iushrn(V);V-- >0;)L.isOdd()&&L.iadd(U),L.iushrn(1);for(var Q=0,le=1;(I.words[0]&le)==0&&Q<26;++Q,le<<=1);if(Q>0)for(I.iushrn(Q);Q-- >0;)R.isOdd()&&R.iadd(U),R.iushrn(1);O.cmp(I)>=0?(O.isub(I),L.isub(R)):(I.isub(O),R.isub(L))}return(F=O.cmpn(1)===0?L:R).cmpn(0)<0&&F.iadd(B),F},o.prototype.gcd=function(B){if(this.isZero())return B.abs();if(B.isZero())return this.abs();var O=this.clone(),I=B.clone();O.negative=0,I.negative=0;for(var F=0;O.isEven()&&I.isEven();F++)O.iushrn(1),I.iushrn(1);for(;;){for(;O.isEven();)O.iushrn(1);for(;I.isEven();)I.iushrn(1);var L=O.cmp(I);if(L<0){var R=O;O=I,I=R}else if(L===0||I.cmpn(1)===0)break;O.isub(I)}return I.iushln(F)},o.prototype.invm=function(B){return this.egcd(B).a.umod(B)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(B){return this.words[0]&B},o.prototype.bincn=function(B){u(typeof B=="number");var O=B%26,I=(B-O)/26,F=1<<O;if(this.length<=I)return this._expand(I+1),this.words[I]|=F,this;for(var L=F,R=I;L!==0&&R<this.length;R++){var U=0|this.words[R];L=(U+=L)>>>26,U&=67108863,this.words[R]=U}return L!==0&&(this.words[R]=L,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(B){var O,I=B<0;if(this.negative!==0&&!I)return-1;if(this.negative===0&&I)return 1;if(this.strip(),this.length>1)O=1;else{I&&(B=-B),u(B<=67108863,"Number is too big");var F=0|this.words[0];O=F===B?0:F<B?-1:1}return this.negative!==0?0|-O:O},o.prototype.cmp=function(B){if(this.negative!==0&&B.negative===0)return-1;if(this.negative===0&&B.negative!==0)return 1;var O=this.ucmp(B);return this.negative!==0?0|-O:O},o.prototype.ucmp=function(B){if(this.length>B.length)return 1;if(this.length<B.length)return-1;for(var O=0,I=this.length-1;I>=0;I--){var F=0|this.words[I],L=0|B.words[I];if(F!==L){F<L?O=-1:F>L&&(O=1);break}}return O},o.prototype.gtn=function(B){return this.cmpn(B)===1},o.prototype.gt=function(B){return this.cmp(B)===1},o.prototype.gten=function(B){return this.cmpn(B)>=0},o.prototype.gte=function(B){return this.cmp(B)>=0},o.prototype.ltn=function(B){return this.cmpn(B)===-1},o.prototype.lt=function(B){return this.cmp(B)===-1},o.prototype.lten=function(B){return this.cmpn(B)<=0},o.prototype.lte=function(B){return this.cmp(B)<=0},o.prototype.eqn=function(B){return this.cmpn(B)===0},o.prototype.eq=function(B){return this.cmp(B)===0},o.red=function(B){return new P(B)},o.prototype.toRed=function(B){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),B.convertTo(this)._forceRed(B)},o.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(B){return this.red=B,this},o.prototype.forceRed=function(B){return u(!this.red,"Already a number in reduction context"),this._forceRed(B)},o.prototype.redAdd=function(B){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,B)},o.prototype.redIAdd=function(B){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,B)},o.prototype.redSub=function(B){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,B)},o.prototype.redISub=function(B){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,B)},o.prototype.redShl=function(B){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,B)},o.prototype.redMul=function(B){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,B),this.red.mul(this,B)},o.prototype.redIMul=function(B){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,B),this.red.imul(this,B)},o.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(B){return u(this.red&&!B.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,B)};var x={k256:null,p224:null,p192:null,p25519:null};function C(B,O){this.name=B,this.p=new o(O,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){C.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function T(){C.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){C.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){C.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(B){if(typeof B=="string"){var O=o._prime(B);this.m=O.p,this.prime=O}else u(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}function N(B){P.call(this,B),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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 B=new o(null);return B.words=new Array(Math.ceil(this.n/13)),B},C.prototype.ireduce=function(B){var O,I=B;do this.split(I,this.tmp),O=(I=(I=this.imulK(I)).iadd(this.tmp)).bitLength();while(O>this.n);var F=O<this.n?-1:I.ucmp(this.p);return F===0?(I.words[0]=0,I.length=1):F>0?I.isub(this.p):I.strip!==void 0?I.strip():I._strip(),I},C.prototype.split=function(B,O){B.iushrn(this.n,0,O)},C.prototype.imulK=function(B){return B.imul(this.k)},f(k,C),k.prototype.split=function(B,O){for(var I=Math.min(B.length,9),F=0;F<I;F++)O.words[F]=B.words[F];if(O.length=I,B.length<=9)return B.words[0]=0,void(B.length=1);var L=B.words[9];for(O.words[O.length++]=4194303&L,F=10;F<B.length;F++){var R=0|B.words[F];B.words[F-10]=(4194303&R)<<4|L>>>22,L=R}L>>>=22,B.words[F-10]=L,L===0&&B.length>10?B.length-=10:B.length-=9},k.prototype.imulK=function(B){B.words[B.length]=0,B.words[B.length+1]=0,B.length+=2;for(var O=0,I=0;I<B.length;I++){var F=0|B.words[I];O+=977*F,B.words[I]=67108863&O,O=64*F+(O/67108864|0)}return B.words[B.length-1]===0&&(B.length--,B.words[B.length-1]===0&&B.length--),B},f(T,C),f(S,C),f(M,C),M.prototype.imulK=function(B){for(var O=0,I=0;I<B.length;I++){var F=19*(0|B.words[I])+O,L=67108863&F;F>>>=26,B.words[I]=L,O=F}return O!==0&&(B.words[B.length++]=O),B},o._prime=function(B){if(x[B])return x[B];var O;if(B==="k256")O=new k;else if(B==="p224")O=new T;else if(B==="p192")O=new S;else{if(B!=="p25519")throw new Error("Unknown prime "+B);O=new M}return x[B]=O,O},P.prototype._verify1=function(B){u(B.negative===0,"red works only with positives"),u(B.red,"red works only with red numbers")},P.prototype._verify2=function(B,O){u((B.negative|O.negative)==0,"red works only with positives"),u(B.red&&B.red===O.red,"red works only with red numbers")},P.prototype.imod=function(B){return this.prime?this.prime.ireduce(B)._forceRed(this):B.umod(this.m)._forceRed(this)},P.prototype.neg=function(B){return B.isZero()?B.clone():this.m.sub(B)._forceRed(this)},P.prototype.add=function(B,O){this._verify2(B,O);var I=B.add(O);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},P.prototype.iadd=function(B,O){this._verify2(B,O);var I=B.iadd(O);return I.cmp(this.m)>=0&&I.isub(this.m),I},P.prototype.sub=function(B,O){this._verify2(B,O);var I=B.sub(O);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},P.prototype.isub=function(B,O){this._verify2(B,O);var I=B.isub(O);return I.cmpn(0)<0&&I.iadd(this.m),I},P.prototype.shl=function(B,O){return this._verify1(B),this.imod(B.ushln(O))},P.prototype.imul=function(B,O){return this._verify2(B,O),this.imod(B.imul(O))},P.prototype.mul=function(B,O){return this._verify2(B,O),this.imod(B.mul(O))},P.prototype.isqr=function(B){return this.imul(B,B.clone())},P.prototype.sqr=function(B){return this.mul(B,B)},P.prototype.sqrt=function(B){if(B.isZero())return B.clone();var O=this.m.andln(3);if(u(O%2==1),O===3){var I=this.m.add(new o(1)).iushrn(2);return this.pow(B,I)}for(var F=this.m.subn(1),L=0;!F.isZero()&&F.andln(1)===0;)L++,F.iushrn(1);u(!F.isZero());var R=new o(1).toRed(this),U=R.redNeg(),V=this.m.subn(1).iushrn(1),W=this.m.bitLength();for(W=new o(2*W*W).toRed(this);this.pow(W,V).cmp(U)!==0;)W.redIAdd(U);for(var Q=this.pow(W,F),le=this.pow(B,F.addn(1).iushrn(1)),G=this.pow(B,F),fe=L;G.cmp(R)!==0;){for(var ie=G,he=0;ie.cmp(R)!==0;he++)ie=ie.redSqr();u(he<fe);var Y=this.pow(Q,new o(1).iushln(fe-he-1));le=le.redMul(Y),Q=Y.redSqr(),G=G.redMul(Q),fe=he}return le},P.prototype.invm=function(B){var O=B._invmp(this.m);return O.negative!==0?(O.negative=0,this.imod(O).redNeg()):this.imod(O)},P.prototype.pow=function(B,O){if(O.isZero())return new o(1).toRed(this);if(O.cmpn(1)===0)return B.clone();var I=new Array(16);I[0]=new o(1).toRed(this),I[1]=B;for(var F=2;F<I.length;F++)I[F]=this.mul(I[F-1],B);var L=I[0],R=0,U=0,V=O.bitLength()%26;for(V===0&&(V=26),F=O.length-1;F>=0;F--){for(var W=O.words[F],Q=V-1;Q>=0;Q--){var le=W>>Q&1;L!==I[0]&&(L=this.sqr(L)),le!==0||R!==0?(R<<=1,R|=le,(++U===4||F===0&&Q===0)&&(L=this.mul(L,I[R]),U=0,R=0)):U=0}V=26}return L},P.prototype.convertTo=function(B){var O=B.umod(this.m);return O===B?O.clone():O},P.prototype.convertFrom=function(B){var O=B.clone();return O.red=null,O},o.mont=function(B){return new N(B)},f(N,P),N.prototype.convertTo=function(B){return this.imod(B.ushln(this.shift))},N.prototype.convertFrom=function(B){var O=this.imod(B.mul(this.rinv));return O.red=null,O},N.prototype.imul=function(B,O){if(B.isZero()||O.isZero())return B.words[0]=0,B.length=1,B;var I=B.imul(O),F=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=I.isub(F).iushrn(this.shift),R=L;return L.cmp(this.m)>=0?R=L.isub(this.m):L.cmpn(0)<0&&(R=L.iadd(this.m)),R._forceRed(this)},N.prototype.mul=function(B,O){if(B.isZero()||O.isZero())return new o(0)._forceRed(this);var I=B.mul(O),F=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),L=I.isub(F).iushrn(this.shift),R=L;return L.cmp(this.m)>=0?R=L.isub(this.m):L.cmpn(0)<0&&(R=L.iadd(this.m)),R._forceRed(this)},N.prototype.invm=function(B){return this.imod(B._invmp(this.m).mul(this.r2))._forceRed(this)}})(i===void 0||i)},{buffer:188}],185:[function(r,i,n){n.byteLength=function(p){var _=g(p),y=_[0],h=_[1];return 3*(y+h)/4-h},n.toByteArray=function(p){var _,y,h=g(p),d=h[0],A=h[1],v=new u((function(C,k,T){return 3*(k+T)/4-T})(0,d,A)),w=0,x=A>0?d-4:d;for(y=0;y<x;y+=4)_=c[p.charCodeAt(y)]<<18|c[p.charCodeAt(y+1)]<<12|c[p.charCodeAt(y+2)]<<6|c[p.charCodeAt(y+3)],v[w++]=_>>16&255,v[w++]=_>>8&255,v[w++]=255&_;return A===2&&(_=c[p.charCodeAt(y)]<<2|c[p.charCodeAt(y+1)]>>4,v[w++]=255&_),A===1&&(_=c[p.charCodeAt(y)]<<10|c[p.charCodeAt(y+1)]<<4|c[p.charCodeAt(y+2)]>>2,v[w++]=_>>8&255,v[w++]=255&_),v},n.fromByteArray=function(p){for(var _,y=p.length,h=y%3,d=[],A=0,v=y-h;A<v;A+=16383)d.push(m(p,A,A+16383>v?v:A+16383));return h===1?(_=p[y-1],d.push(t[_>>2]+t[_<<4&63]+"==")):h===2&&(_=(p[y-2]<<8)+p[y-1],d.push(t[_>>10]+t[_>>4&63]+t[_<<2&63]+"=")),d.join("")};for(var t=[],c=[],u=typeof Uint8Array<"u"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=f.length;o<l;++o)t[o]=f[o],c[f.charCodeAt(o)]=o;function g(p){var _=p.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=_),[y,y===_?0:4-y%4]}function m(p,_,y){for(var h,d,A=[],v=_;v<y;v+=3)h=(p[v]<<16&16711680)+(p[v+1]<<8&65280)+(255&p[v+2]),A.push(t[(d=h)>>18&63]+t[d>>12&63]+t[d>>6&63]+t[63&d]);return A.join("")}c[45]=62,c[95]=63},{}],186:[function(r,i,n){(function(t,c){function u(I,F){if(!I)throw new Error(F||"Assertion failed")}function f(I,F){I.super_=F;var L=function(){};L.prototype=F.prototype,I.prototype=new L,I.prototype.constructor=I}function o(I,F,L){if(o.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&(F!=="le"&&F!=="be"||(L=F,F=10),this._init(I||0,F||10,L||"be"))}var l;typeof t=="object"?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{l=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:r("buffer").Buffer}catch{}function g(I,F){var L=I.charCodeAt(F);return L>=48&&L<=57?L-48:L>=65&&L<=70?L-55:L>=97&&L<=102?L-87:void u(!1,"Invalid character in "+I)}function m(I,F,L){var R=g(I,L);return L-1>=F&&(R|=g(I,L-1)<<4),R}function p(I,F,L,R){for(var U=0,V=0,W=Math.min(I.length,L),Q=F;Q<W;Q++){var le=I.charCodeAt(Q)-48;U*=R,V=le>=49?le-49+10:le>=17?le-17+10:le,u(le>=0&&V<R,"Invalid character"),U+=V}return U}function _(I,F){I.words=F.words,I.length=F.length,I.negative=F.negative,I.red=F.red}if(o.isBN=function(I){return I instanceof o||I!==null&&typeof I=="object"&&I.constructor.wordSize===o.wordSize&&Array.isArray(I.words)},o.max=function(I,F){return I.cmp(F)>0?I:F},o.min=function(I,F){return I.cmp(F)<0?I:F},o.prototype._init=function(I,F,L){if(typeof I=="number")return this._initNumber(I,F,L);if(typeof I=="object")return this._initArray(I,F,L);F==="hex"&&(F=16),u(F===(0|F)&&F>=2&&F<=36);var R=0;(I=I.toString().replace(/\s+/g,""))[0]==="-"&&(R++,this.negative=1),R<I.length&&(F===16?this._parseHex(I,R,L):(this._parseBase(I,F,R),L==="le"&&this._initArray(this.toArray(),F,L)))},o.prototype._initNumber=function(I,F,L){I<0&&(this.negative=1,I=-I),I<67108864?(this.words=[67108863&I],this.length=1):I<4503599627370496?(this.words=[67108863&I,I/67108864&67108863],this.length=2):(u(I<9007199254740992),this.words=[67108863&I,I/67108864&67108863,1],this.length=3),L==="le"&&this._initArray(this.toArray(),F,L)},o.prototype._initArray=function(I,F,L){if(u(typeof I.length=="number"),I.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(I.length/3),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var U,V,W=0;if(L==="be")for(R=I.length-1,U=0;R>=0;R-=3)V=I[R]|I[R-1]<<8|I[R-2]<<16,this.words[U]|=V<<W&67108863,this.words[U+1]=V>>>26-W&67108863,(W+=24)>=26&&(W-=26,U++);else if(L==="le")for(R=0,U=0;R<I.length;R+=3)V=I[R]|I[R+1]<<8|I[R+2]<<16,this.words[U]|=V<<W&67108863,this.words[U+1]=V>>>26-W&67108863,(W+=24)>=26&&(W-=26,U++);return this._strip()},o.prototype._parseHex=function(I,F,L){this.length=Math.ceil((I.length-F)/6),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var U,V=0,W=0;if(L==="be")for(R=I.length-1;R>=F;R-=2)U=m(I,F,R)<<V,this.words[W]|=67108863&U,V>=18?(V-=18,W+=1,this.words[W]|=U>>>26):V+=8;else for(R=(I.length-F)%2==0?F+1:F;R<I.length;R+=2)U=m(I,F,R)<<V,this.words[W]|=67108863&U,V>=18?(V-=18,W+=1,this.words[W]|=U>>>26):V+=8;this._strip()},o.prototype._parseBase=function(I,F,L){this.words=[0],this.length=1;for(var R=0,U=1;U<=67108863;U*=F)R++;R--,U=U/F|0;for(var V=I.length-L,W=V%R,Q=Math.min(V,V-W)+L,le=0,G=L;G<Q;G+=R)le=p(I,G,G+R,F),this.imuln(U),this.words[0]+le<67108864?this.words[0]+=le:this._iaddn(le);if(W!==0){var fe=1;for(le=p(I,G,I.length,F),G=0;G<W;G++)fe*=F;this.imuln(fe),this.words[0]+le<67108864?this.words[0]+=le:this._iaddn(le)}this._strip()},o.prototype.copy=function(I){I.words=new Array(this.length);for(var F=0;F<this.length;F++)I.words[F]=this.words[F];I.length=this.length,I.negative=this.negative,I.red=this.red},o.prototype._move=function(I){_(I,this)},o.prototype.clone=function(){var I=new o(null);return this.copy(I),I},o.prototype._expand=function(I){for(;this.length<I;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=y}catch{o.prototype.inspect=y}else o.prototype.inspect=y;function y(){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],A=[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];o.prototype.toString=function(I,F){var L;if(F=0|F||1,(I=I||10)===16||I==="hex"){L="";for(var R=0,U=0,V=0;V<this.length;V++){var W=this.words[V],Q=(16777215&(W<<R|U)).toString(16);U=W>>>24-R&16777215,(R+=2)>=26&&(R-=26,V--),L=U!==0||V!==this.length-1?h[6-Q.length]+Q+L:Q+L}for(U!==0&&(L=U.toString(16)+L);L.length%F!=0;)L="0"+L;return this.negative!==0&&(L="-"+L),L}if(I===(0|I)&&I>=2&&I<=36){var le=d[I],G=A[I];L="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var ie=fe.modrn(G).toString(I);L=(fe=fe.idivn(G)).isZero()?ie+L:h[le-ie.length]+ie+L}for(this.isZero()&&(L="0"+L);L.length%F!=0;)L="0"+L;return this.negative!==0&&(L="-"+L),L}u(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var I=this.words[0];return this.length===2?I+=67108864*this.words[1]:this.length===3&&this.words[2]===1?I+=4503599627370496+67108864*this.words[1]:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-I:I},o.prototype.toJSON=function(){return this.toString(16,2)},l&&(o.prototype.toBuffer=function(I,F){return this.toArrayLike(l,I,F)}),o.prototype.toArray=function(I,F){return this.toArrayLike(Array,I,F)};function v(I,F,L){L.negative=F.negative^I.negative;var R=I.length+F.length|0;L.length=R,R=R-1|0;var U=0|I.words[0],V=0|F.words[0],W=U*V,Q=67108863&W,le=W/67108864|0;L.words[0]=Q;for(var G=1;G<R;G++){for(var fe=le>>>26,ie=67108863&le,he=Math.min(G,F.length-1),Y=Math.max(0,G-I.length+1);Y<=he;Y++){var K=G-Y|0;fe+=(W=(U=0|I.words[K])*(V=0|F.words[Y])+ie)/67108864|0,ie=67108863&W}L.words[G]=0|ie,le=0|fe}return le!==0?L.words[G]=0|le:L.length--,L._strip()}o.prototype.toArrayLike=function(I,F,L){this._strip();var R=this.byteLength(),U=L||Math.max(1,R);u(R<=U,"byte array longer than desired length"),u(U>0,"Requested array length <= 0");var V=(function(W,Q){return W.allocUnsafe?W.allocUnsafe(Q):new W(Q)})(I,U);return this["_toArrayLike"+(F==="le"?"LE":"BE")](V,R),V},o.prototype._toArrayLikeLE=function(I,F){for(var L=0,R=0,U=0,V=0;U<this.length;U++){var W=this.words[U]<<V|R;I[L++]=255&W,L<I.length&&(I[L++]=W>>8&255),L<I.length&&(I[L++]=W>>16&255),V===6?(L<I.length&&(I[L++]=W>>24&255),R=0,V=0):(R=W>>>24,V+=2)}if(L<I.length)for(I[L++]=R;L<I.length;)I[L++]=0},o.prototype._toArrayLikeBE=function(I,F){for(var L=I.length-1,R=0,U=0,V=0;U<this.length;U++){var W=this.words[U]<<V|R;I[L--]=255&W,L>=0&&(I[L--]=W>>8&255),L>=0&&(I[L--]=W>>16&255),V===6?(L>=0&&(I[L--]=W>>24&255),R=0,V=0):(R=W>>>24,V+=2)}if(L>=0)for(I[L--]=R;L>=0;)I[L--]=0},Math.clz32?o.prototype._countBits=function(I){return 32-Math.clz32(I)}:o.prototype._countBits=function(I){var F=I,L=0;return F>=4096&&(L+=13,F>>>=13),F>=64&&(L+=7,F>>>=7),F>=8&&(L+=4,F>>>=4),F>=2&&(L+=2,F>>>=2),L+F},o.prototype._zeroBits=function(I){if(I===0)return 26;var F=I,L=0;return(8191&F)==0&&(L+=13,F>>>=13),(127&F)==0&&(L+=7,F>>>=7),(15&F)==0&&(L+=4,F>>>=4),(3&F)==0&&(L+=2,F>>>=2),(1&F)==0&&L++,L},o.prototype.bitLength=function(){var I=this.words[this.length-1],F=this._countBits(I);return 26*(this.length-1)+F},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var I=0,F=0;F<this.length;F++){var L=this._zeroBits(this.words[F]);if(I+=L,L!==26)break}return I},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(I){return this.negative!==0?this.abs().inotn(I).iaddn(1):this.clone()},o.prototype.fromTwos=function(I){return this.testn(I-1)?this.notn(I).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(I){for(;this.length<I.length;)this.words[this.length++]=0;for(var F=0;F<I.length;F++)this.words[F]=this.words[F]|I.words[F];return this._strip()},o.prototype.ior=function(I){return u((this.negative|I.negative)==0),this.iuor(I)},o.prototype.or=function(I){return this.length>I.length?this.clone().ior(I):I.clone().ior(this)},o.prototype.uor=function(I){return this.length>I.length?this.clone().iuor(I):I.clone().iuor(this)},o.prototype.iuand=function(I){var F;F=this.length>I.length?I:this;for(var L=0;L<F.length;L++)this.words[L]=this.words[L]&I.words[L];return this.length=F.length,this._strip()},o.prototype.iand=function(I){return u((this.negative|I.negative)==0),this.iuand(I)},o.prototype.and=function(I){return this.length>I.length?this.clone().iand(I):I.clone().iand(this)},o.prototype.uand=function(I){return this.length>I.length?this.clone().iuand(I):I.clone().iuand(this)},o.prototype.iuxor=function(I){var F,L;this.length>I.length?(F=this,L=I):(F=I,L=this);for(var R=0;R<L.length;R++)this.words[R]=F.words[R]^L.words[R];if(this!==F)for(;R<F.length;R++)this.words[R]=F.words[R];return this.length=F.length,this._strip()},o.prototype.ixor=function(I){return u((this.negative|I.negative)==0),this.iuxor(I)},o.prototype.xor=function(I){return this.length>I.length?this.clone().ixor(I):I.clone().ixor(this)},o.prototype.uxor=function(I){return this.length>I.length?this.clone().iuxor(I):I.clone().iuxor(this)},o.prototype.inotn=function(I){u(typeof I=="number"&&I>=0);var F=0|Math.ceil(I/26),L=I%26;this._expand(F),L>0&&F--;for(var R=0;R<F;R++)this.words[R]=67108863&~this.words[R];return L>0&&(this.words[R]=~this.words[R]&67108863>>26-L),this._strip()},o.prototype.notn=function(I){return this.clone().inotn(I)},o.prototype.setn=function(I,F){u(typeof I=="number"&&I>=0);var L=I/26|0,R=I%26;return this._expand(L+1),this.words[L]=F?this.words[L]|1<<R:this.words[L]&~(1<<R),this._strip()},o.prototype.iadd=function(I){var F,L,R;if(this.negative!==0&&I.negative===0)return this.negative=0,F=this.isub(I),this.negative^=1,this._normSign();if(this.negative===0&&I.negative!==0)return I.negative=0,F=this.isub(I),I.negative=1,F._normSign();this.length>I.length?(L=this,R=I):(L=I,R=this);for(var U=0,V=0;V<R.length;V++)F=(0|L.words[V])+(0|R.words[V])+U,this.words[V]=67108863&F,U=F>>>26;for(;U!==0&&V<L.length;V++)F=(0|L.words[V])+U,this.words[V]=67108863&F,U=F>>>26;if(this.length=L.length,U!==0)this.words[this.length]=U,this.length++;else if(L!==this)for(;V<L.length;V++)this.words[V]=L.words[V];return this},o.prototype.add=function(I){var F;return I.negative!==0&&this.negative===0?(I.negative=0,F=this.sub(I),I.negative^=1,F):I.negative===0&&this.negative!==0?(this.negative=0,F=I.sub(this),this.negative=1,F):this.length>I.length?this.clone().iadd(I):I.clone().iadd(this)},o.prototype.isub=function(I){if(I.negative!==0){I.negative=0;var F=this.iadd(I);return I.negative=1,F._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(I),this.negative=1,this._normSign();var L,R,U=this.cmp(I);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;U>0?(L=this,R=I):(L=I,R=this);for(var V=0,W=0;W<R.length;W++)V=(F=(0|L.words[W])-(0|R.words[W])+V)>>26,this.words[W]=67108863&F;for(;V!==0&&W<L.length;W++)V=(F=(0|L.words[W])+V)>>26,this.words[W]=67108863&F;if(V===0&&W<L.length&&L!==this)for(;W<L.length;W++)this.words[W]=L.words[W];return this.length=Math.max(this.length,W),L!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(I){return this.clone().isub(I)};var w=function(I,F,L){var R,U,V,W=I.words,Q=F.words,le=L.words,G=0,fe=0|W[0],ie=8191&fe,he=fe>>>13,Y=0|W[1],K=8191&Y,oe=Y>>>13,pe=0|W[2],ve=8191&pe,ge=pe>>>13,ue=0|W[3],Te=8191&ue,Ee=ue>>>13,ye=0|W[4],Se=8191&ye,Fe=ye>>>13,Ve=0|W[5],ke=8191&Ve,Pe=Ve>>>13,Re=0|W[6],Ye=8191&Re,Ke=Re>>>13,ot=0|W[7],nt=8191&ot,mt=ot>>>13,Ut=0|W[8],Ot=8191&Ut,wt=Ut>>>13,Kt=0|W[9],_t=8191&Kt,Jt=Kt>>>13,yr=0|Q[0],vr=8191&yr,Br=yr>>>13,zr=0|Q[1],mn=8191&zr,jr=zr>>>13,Tn=0|Q[2],Lt=8191&Tn,Gt=Tn>>>13,$t=0|Q[3],Sr=8191&$t,br=$t>>>13,sr=0|Q[4],Fn=8191&sr,fn=sr>>>13,Or=0|Q[5],ar=8191&Or,Wr=Or>>>13,Tt=0|Q[6],Qt=8191&Tt,hr=Tt>>>13,ze=0|Q[7],Ze=8191&ze,qe=ze>>>13,Ge=0|Q[8],$e=8191&Ge,tt=Ge>>>13,bt=0|Q[9],xt=8191&bt,kt=bt>>>13;L.negative=I.negative^F.negative,L.length=19;var Bt=(G+(R=Math.imul(ie,vr))|0)+((8191&(U=(U=Math.imul(ie,Br))+Math.imul(he,vr)|0))<<13)|0;G=((V=Math.imul(he,Br))+(U>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,R=Math.imul(K,vr),U=(U=Math.imul(K,Br))+Math.imul(oe,vr)|0,V=Math.imul(oe,Br);var Dt=(G+(R=R+Math.imul(ie,mn)|0)|0)+((8191&(U=(U=U+Math.imul(ie,jr)|0)+Math.imul(he,mn)|0))<<13)|0;G=((V=V+Math.imul(he,jr)|0)+(U>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,R=Math.imul(ve,vr),U=(U=Math.imul(ve,Br))+Math.imul(ge,vr)|0,V=Math.imul(ge,Br),R=R+Math.imul(K,mn)|0,U=(U=U+Math.imul(K,jr)|0)+Math.imul(oe,mn)|0,V=V+Math.imul(oe,jr)|0;var or=(G+(R=R+Math.imul(ie,Lt)|0)|0)+((8191&(U=(U=U+Math.imul(ie,Gt)|0)+Math.imul(he,Lt)|0))<<13)|0;G=((V=V+Math.imul(he,Gt)|0)+(U>>>13)|0)+(or>>>26)|0,or&=67108863,R=Math.imul(Te,vr),U=(U=Math.imul(Te,Br))+Math.imul(Ee,vr)|0,V=Math.imul(Ee,Br),R=R+Math.imul(ve,mn)|0,U=(U=U+Math.imul(ve,jr)|0)+Math.imul(ge,mn)|0,V=V+Math.imul(ge,jr)|0,R=R+Math.imul(K,Lt)|0,U=(U=U+Math.imul(K,Gt)|0)+Math.imul(oe,Lt)|0,V=V+Math.imul(oe,Gt)|0;var gr=(G+(R=R+Math.imul(ie,Sr)|0)|0)+((8191&(U=(U=U+Math.imul(ie,br)|0)+Math.imul(he,Sr)|0))<<13)|0;G=((V=V+Math.imul(he,br)|0)+(U>>>13)|0)+(gr>>>26)|0,gr&=67108863,R=Math.imul(Se,vr),U=(U=Math.imul(Se,Br))+Math.imul(Fe,vr)|0,V=Math.imul(Fe,Br),R=R+Math.imul(Te,mn)|0,U=(U=U+Math.imul(Te,jr)|0)+Math.imul(Ee,mn)|0,V=V+Math.imul(Ee,jr)|0,R=R+Math.imul(ve,Lt)|0,U=(U=U+Math.imul(ve,Gt)|0)+Math.imul(ge,Lt)|0,V=V+Math.imul(ge,Gt)|0,R=R+Math.imul(K,Sr)|0,U=(U=U+Math.imul(K,br)|0)+Math.imul(oe,Sr)|0,V=V+Math.imul(oe,br)|0;var kr=(G+(R=R+Math.imul(ie,Fn)|0)|0)+((8191&(U=(U=U+Math.imul(ie,fn)|0)+Math.imul(he,Fn)|0))<<13)|0;G=((V=V+Math.imul(he,fn)|0)+(U>>>13)|0)+(kr>>>26)|0,kr&=67108863,R=Math.imul(ke,vr),U=(U=Math.imul(ke,Br))+Math.imul(Pe,vr)|0,V=Math.imul(Pe,Br),R=R+Math.imul(Se,mn)|0,U=(U=U+Math.imul(Se,jr)|0)+Math.imul(Fe,mn)|0,V=V+Math.imul(Fe,jr)|0,R=R+Math.imul(Te,Lt)|0,U=(U=U+Math.imul(Te,Gt)|0)+Math.imul(Ee,Lt)|0,V=V+Math.imul(Ee,Gt)|0,R=R+Math.imul(ve,Sr)|0,U=(U=U+Math.imul(ve,br)|0)+Math.imul(ge,Sr)|0,V=V+Math.imul(ge,br)|0,R=R+Math.imul(K,Fn)|0,U=(U=U+Math.imul(K,fn)|0)+Math.imul(oe,Fn)|0,V=V+Math.imul(oe,fn)|0;var it=(G+(R=R+Math.imul(ie,ar)|0)|0)+((8191&(U=(U=U+Math.imul(ie,Wr)|0)+Math.imul(he,ar)|0))<<13)|0;G=((V=V+Math.imul(he,Wr)|0)+(U>>>13)|0)+(it>>>26)|0,it&=67108863,R=Math.imul(Ye,vr),U=(U=Math.imul(Ye,Br))+Math.imul(Ke,vr)|0,V=Math.imul(Ke,Br),R=R+Math.imul(ke,mn)|0,U=(U=U+Math.imul(ke,jr)|0)+Math.imul(Pe,mn)|0,V=V+Math.imul(Pe,jr)|0,R=R+Math.imul(Se,Lt)|0,U=(U=U+Math.imul(Se,Gt)|0)+Math.imul(Fe,Lt)|0,V=V+Math.imul(Fe,Gt)|0,R=R+Math.imul(Te,Sr)|0,U=(U=U+Math.imul(Te,br)|0)+Math.imul(Ee,Sr)|0,V=V+Math.imul(Ee,br)|0,R=R+Math.imul(ve,Fn)|0,U=(U=U+Math.imul(ve,fn)|0)+Math.imul(ge,Fn)|0,V=V+Math.imul(ge,fn)|0,R=R+Math.imul(K,ar)|0,U=(U=U+Math.imul(K,Wr)|0)+Math.imul(oe,ar)|0,V=V+Math.imul(oe,Wr)|0;var We=(G+(R=R+Math.imul(ie,Qt)|0)|0)+((8191&(U=(U=U+Math.imul(ie,hr)|0)+Math.imul(he,Qt)|0))<<13)|0;G=((V=V+Math.imul(he,hr)|0)+(U>>>13)|0)+(We>>>26)|0,We&=67108863,R=Math.imul(nt,vr),U=(U=Math.imul(nt,Br))+Math.imul(mt,vr)|0,V=Math.imul(mt,Br),R=R+Math.imul(Ye,mn)|0,U=(U=U+Math.imul(Ye,jr)|0)+Math.imul(Ke,mn)|0,V=V+Math.imul(Ke,jr)|0,R=R+Math.imul(ke,Lt)|0,U=(U=U+Math.imul(ke,Gt)|0)+Math.imul(Pe,Lt)|0,V=V+Math.imul(Pe,Gt)|0,R=R+Math.imul(Se,Sr)|0,U=(U=U+Math.imul(Se,br)|0)+Math.imul(Fe,Sr)|0,V=V+Math.imul(Fe,br)|0,R=R+Math.imul(Te,Fn)|0,U=(U=U+Math.imul(Te,fn)|0)+Math.imul(Ee,Fn)|0,V=V+Math.imul(Ee,fn)|0,R=R+Math.imul(ve,ar)|0,U=(U=U+Math.imul(ve,Wr)|0)+Math.imul(ge,ar)|0,V=V+Math.imul(ge,Wr)|0,R=R+Math.imul(K,Qt)|0,U=(U=U+Math.imul(K,hr)|0)+Math.imul(oe,Qt)|0,V=V+Math.imul(oe,hr)|0;var gt=(G+(R=R+Math.imul(ie,Ze)|0)|0)+((8191&(U=(U=U+Math.imul(ie,qe)|0)+Math.imul(he,Ze)|0))<<13)|0;G=((V=V+Math.imul(he,qe)|0)+(U>>>13)|0)+(gt>>>26)|0,gt&=67108863,R=Math.imul(Ot,vr),U=(U=Math.imul(Ot,Br))+Math.imul(wt,vr)|0,V=Math.imul(wt,Br),R=R+Math.imul(nt,mn)|0,U=(U=U+Math.imul(nt,jr)|0)+Math.imul(mt,mn)|0,V=V+Math.imul(mt,jr)|0,R=R+Math.imul(Ye,Lt)|0,U=(U=U+Math.imul(Ye,Gt)|0)+Math.imul(Ke,Lt)|0,V=V+Math.imul(Ke,Gt)|0,R=R+Math.imul(ke,Sr)|0,U=(U=U+Math.imul(ke,br)|0)+Math.imul(Pe,Sr)|0,V=V+Math.imul(Pe,br)|0,R=R+Math.imul(Se,Fn)|0,U=(U=U+Math.imul(Se,fn)|0)+Math.imul(Fe,Fn)|0,V=V+Math.imul(Fe,fn)|0,R=R+Math.imul(Te,ar)|0,U=(U=U+Math.imul(Te,Wr)|0)+Math.imul(Ee,ar)|0,V=V+Math.imul(Ee,Wr)|0,R=R+Math.imul(ve,Qt)|0,U=(U=U+Math.imul(ve,hr)|0)+Math.imul(ge,Qt)|0,V=V+Math.imul(ge,hr)|0,R=R+Math.imul(K,Ze)|0,U=(U=U+Math.imul(K,qe)|0)+Math.imul(oe,Ze)|0,V=V+Math.imul(oe,qe)|0;var yt=(G+(R=R+Math.imul(ie,$e)|0)|0)+((8191&(U=(U=U+Math.imul(ie,tt)|0)+Math.imul(he,$e)|0))<<13)|0;G=((V=V+Math.imul(he,tt)|0)+(U>>>13)|0)+(yt>>>26)|0,yt&=67108863,R=Math.imul(_t,vr),U=(U=Math.imul(_t,Br))+Math.imul(Jt,vr)|0,V=Math.imul(Jt,Br),R=R+Math.imul(Ot,mn)|0,U=(U=U+Math.imul(Ot,jr)|0)+Math.imul(wt,mn)|0,V=V+Math.imul(wt,jr)|0,R=R+Math.imul(nt,Lt)|0,U=(U=U+Math.imul(nt,Gt)|0)+Math.imul(mt,Lt)|0,V=V+Math.imul(mt,Gt)|0,R=R+Math.imul(Ye,Sr)|0,U=(U=U+Math.imul(Ye,br)|0)+Math.imul(Ke,Sr)|0,V=V+Math.imul(Ke,br)|0,R=R+Math.imul(ke,Fn)|0,U=(U=U+Math.imul(ke,fn)|0)+Math.imul(Pe,Fn)|0,V=V+Math.imul(Pe,fn)|0,R=R+Math.imul(Se,ar)|0,U=(U=U+Math.imul(Se,Wr)|0)+Math.imul(Fe,ar)|0,V=V+Math.imul(Fe,Wr)|0,R=R+Math.imul(Te,Qt)|0,U=(U=U+Math.imul(Te,hr)|0)+Math.imul(Ee,Qt)|0,V=V+Math.imul(Ee,hr)|0,R=R+Math.imul(ve,Ze)|0,U=(U=U+Math.imul(ve,qe)|0)+Math.imul(ge,Ze)|0,V=V+Math.imul(ge,qe)|0,R=R+Math.imul(K,$e)|0,U=(U=U+Math.imul(K,tt)|0)+Math.imul(oe,$e)|0,V=V+Math.imul(oe,tt)|0;var Rt=(G+(R=R+Math.imul(ie,xt)|0)|0)+((8191&(U=(U=U+Math.imul(ie,kt)|0)+Math.imul(he,xt)|0))<<13)|0;G=((V=V+Math.imul(he,kt)|0)+(U>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,R=Math.imul(_t,mn),U=(U=Math.imul(_t,jr))+Math.imul(Jt,mn)|0,V=Math.imul(Jt,jr),R=R+Math.imul(Ot,Lt)|0,U=(U=U+Math.imul(Ot,Gt)|0)+Math.imul(wt,Lt)|0,V=V+Math.imul(wt,Gt)|0,R=R+Math.imul(nt,Sr)|0,U=(U=U+Math.imul(nt,br)|0)+Math.imul(mt,Sr)|0,V=V+Math.imul(mt,br)|0,R=R+Math.imul(Ye,Fn)|0,U=(U=U+Math.imul(Ye,fn)|0)+Math.imul(Ke,Fn)|0,V=V+Math.imul(Ke,fn)|0,R=R+Math.imul(ke,ar)|0,U=(U=U+Math.imul(ke,Wr)|0)+Math.imul(Pe,ar)|0,V=V+Math.imul(Pe,Wr)|0,R=R+Math.imul(Se,Qt)|0,U=(U=U+Math.imul(Se,hr)|0)+Math.imul(Fe,Qt)|0,V=V+Math.imul(Fe,hr)|0,R=R+Math.imul(Te,Ze)|0,U=(U=U+Math.imul(Te,qe)|0)+Math.imul(Ee,Ze)|0,V=V+Math.imul(Ee,qe)|0,R=R+Math.imul(ve,$e)|0,U=(U=U+Math.imul(ve,tt)|0)+Math.imul(ge,$e)|0,V=V+Math.imul(ge,tt)|0;var Mt=(G+(R=R+Math.imul(K,xt)|0)|0)+((8191&(U=(U=U+Math.imul(K,kt)|0)+Math.imul(oe,xt)|0))<<13)|0;G=((V=V+Math.imul(oe,kt)|0)+(U>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,R=Math.imul(_t,Lt),U=(U=Math.imul(_t,Gt))+Math.imul(Jt,Lt)|0,V=Math.imul(Jt,Gt),R=R+Math.imul(Ot,Sr)|0,U=(U=U+Math.imul(Ot,br)|0)+Math.imul(wt,Sr)|0,V=V+Math.imul(wt,br)|0,R=R+Math.imul(nt,Fn)|0,U=(U=U+Math.imul(nt,fn)|0)+Math.imul(mt,Fn)|0,V=V+Math.imul(mt,fn)|0,R=R+Math.imul(Ye,ar)|0,U=(U=U+Math.imul(Ye,Wr)|0)+Math.imul(Ke,ar)|0,V=V+Math.imul(Ke,Wr)|0,R=R+Math.imul(ke,Qt)|0,U=(U=U+Math.imul(ke,hr)|0)+Math.imul(Pe,Qt)|0,V=V+Math.imul(Pe,hr)|0,R=R+Math.imul(Se,Ze)|0,U=(U=U+Math.imul(Se,qe)|0)+Math.imul(Fe,Ze)|0,V=V+Math.imul(Fe,qe)|0,R=R+Math.imul(Te,$e)|0,U=(U=U+Math.imul(Te,tt)|0)+Math.imul(Ee,$e)|0,V=V+Math.imul(Ee,tt)|0;var It=(G+(R=R+Math.imul(ve,xt)|0)|0)+((8191&(U=(U=U+Math.imul(ve,kt)|0)+Math.imul(ge,xt)|0))<<13)|0;G=((V=V+Math.imul(ge,kt)|0)+(U>>>13)|0)+(It>>>26)|0,It&=67108863,R=Math.imul(_t,Sr),U=(U=Math.imul(_t,br))+Math.imul(Jt,Sr)|0,V=Math.imul(Jt,br),R=R+Math.imul(Ot,Fn)|0,U=(U=U+Math.imul(Ot,fn)|0)+Math.imul(wt,Fn)|0,V=V+Math.imul(wt,fn)|0,R=R+Math.imul(nt,ar)|0,U=(U=U+Math.imul(nt,Wr)|0)+Math.imul(mt,ar)|0,V=V+Math.imul(mt,Wr)|0,R=R+Math.imul(Ye,Qt)|0,U=(U=U+Math.imul(Ye,hr)|0)+Math.imul(Ke,Qt)|0,V=V+Math.imul(Ke,hr)|0,R=R+Math.imul(ke,Ze)|0,U=(U=U+Math.imul(ke,qe)|0)+Math.imul(Pe,Ze)|0,V=V+Math.imul(Pe,qe)|0,R=R+Math.imul(Se,$e)|0,U=(U=U+Math.imul(Se,tt)|0)+Math.imul(Fe,$e)|0,V=V+Math.imul(Fe,tt)|0;var xr=(G+(R=R+Math.imul(Te,xt)|0)|0)+((8191&(U=(U=U+Math.imul(Te,kt)|0)+Math.imul(Ee,xt)|0))<<13)|0;G=((V=V+Math.imul(Ee,kt)|0)+(U>>>13)|0)+(xr>>>26)|0,xr&=67108863,R=Math.imul(_t,Fn),U=(U=Math.imul(_t,fn))+Math.imul(Jt,Fn)|0,V=Math.imul(Jt,fn),R=R+Math.imul(Ot,ar)|0,U=(U=U+Math.imul(Ot,Wr)|0)+Math.imul(wt,ar)|0,V=V+Math.imul(wt,Wr)|0,R=R+Math.imul(nt,Qt)|0,U=(U=U+Math.imul(nt,hr)|0)+Math.imul(mt,Qt)|0,V=V+Math.imul(mt,hr)|0,R=R+Math.imul(Ye,Ze)|0,U=(U=U+Math.imul(Ye,qe)|0)+Math.imul(Ke,Ze)|0,V=V+Math.imul(Ke,qe)|0,R=R+Math.imul(ke,$e)|0,U=(U=U+Math.imul(ke,tt)|0)+Math.imul(Pe,$e)|0,V=V+Math.imul(Pe,tt)|0;var rn=(G+(R=R+Math.imul(Se,xt)|0)|0)+((8191&(U=(U=U+Math.imul(Se,kt)|0)+Math.imul(Fe,xt)|0))<<13)|0;G=((V=V+Math.imul(Fe,kt)|0)+(U>>>13)|0)+(rn>>>26)|0,rn&=67108863,R=Math.imul(_t,ar),U=(U=Math.imul(_t,Wr))+Math.imul(Jt,ar)|0,V=Math.imul(Jt,Wr),R=R+Math.imul(Ot,Qt)|0,U=(U=U+Math.imul(Ot,hr)|0)+Math.imul(wt,Qt)|0,V=V+Math.imul(wt,hr)|0,R=R+Math.imul(nt,Ze)|0,U=(U=U+Math.imul(nt,qe)|0)+Math.imul(mt,Ze)|0,V=V+Math.imul(mt,qe)|0,R=R+Math.imul(Ye,$e)|0,U=(U=U+Math.imul(Ye,tt)|0)+Math.imul(Ke,$e)|0,V=V+Math.imul(Ke,tt)|0;var Zr=(G+(R=R+Math.imul(ke,xt)|0)|0)+((8191&(U=(U=U+Math.imul(ke,kt)|0)+Math.imul(Pe,xt)|0))<<13)|0;G=((V=V+Math.imul(Pe,kt)|0)+(U>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,R=Math.imul(_t,Qt),U=(U=Math.imul(_t,hr))+Math.imul(Jt,Qt)|0,V=Math.imul(Jt,hr),R=R+Math.imul(Ot,Ze)|0,U=(U=U+Math.imul(Ot,qe)|0)+Math.imul(wt,Ze)|0,V=V+Math.imul(wt,qe)|0,R=R+Math.imul(nt,$e)|0,U=(U=U+Math.imul(nt,tt)|0)+Math.imul(mt,$e)|0,V=V+Math.imul(mt,tt)|0;var Rr=(G+(R=R+Math.imul(Ye,xt)|0)|0)+((8191&(U=(U=U+Math.imul(Ye,kt)|0)+Math.imul(Ke,xt)|0))<<13)|0;G=((V=V+Math.imul(Ke,kt)|0)+(U>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul(_t,Ze),U=(U=Math.imul(_t,qe))+Math.imul(Jt,Ze)|0,V=Math.imul(Jt,qe),R=R+Math.imul(Ot,$e)|0,U=(U=U+Math.imul(Ot,tt)|0)+Math.imul(wt,$e)|0,V=V+Math.imul(wt,tt)|0;var $r=(G+(R=R+Math.imul(nt,xt)|0)|0)+((8191&(U=(U=U+Math.imul(nt,kt)|0)+Math.imul(mt,xt)|0))<<13)|0;G=((V=V+Math.imul(mt,kt)|0)+(U>>>13)|0)+($r>>>26)|0,$r&=67108863,R=Math.imul(_t,$e),U=(U=Math.imul(_t,tt))+Math.imul(Jt,$e)|0,V=Math.imul(Jt,tt);var lr=(G+(R=R+Math.imul(Ot,xt)|0)|0)+((8191&(U=(U=U+Math.imul(Ot,kt)|0)+Math.imul(wt,xt)|0))<<13)|0;G=((V=V+Math.imul(wt,kt)|0)+(U>>>13)|0)+(lr>>>26)|0,lr&=67108863;var Mn=(G+(R=Math.imul(_t,xt))|0)+((8191&(U=(U=Math.imul(_t,kt))+Math.imul(Jt,xt)|0))<<13)|0;return G=((V=Math.imul(Jt,kt))+(U>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,le[0]=Bt,le[1]=Dt,le[2]=or,le[3]=gr,le[4]=kr,le[5]=it,le[6]=We,le[7]=gt,le[8]=yt,le[9]=Rt,le[10]=Mt,le[11]=It,le[12]=xr,le[13]=rn,le[14]=Zr,le[15]=Rr,le[16]=$r,le[17]=lr,le[18]=Mn,G!==0&&(le[19]=G,L.length++),L};function x(I,F,L){L.negative=F.negative^I.negative,L.length=I.length+F.length;for(var R=0,U=0,V=0;V<L.length-1;V++){var W=U;U=0;for(var Q=67108863&R,le=Math.min(V,F.length-1),G=Math.max(0,V-I.length+1);G<=le;G++){var fe=V-G,ie=(0|I.words[fe])*(0|F.words[G]),he=67108863&ie;Q=67108863&(he=he+Q|0),U+=(W=(W=W+(ie/67108864|0)|0)+(he>>>26)|0)>>>26,W&=67108863}L.words[V]=Q,R=W,W=U}return R!==0?L.words[V]=R:L.length--,L._strip()}function C(I,F,L){return x(I,F,L)}Math.imul||(w=v),o.prototype.mulTo=function(I,F){var L=this.length+I.length;return this.length===10&&I.length===10?w(this,I,F):L<63?v(this,I,F):L<1024?x(this,I,F):C(this,I,F)},o.prototype.mul=function(I){var F=new o(null);return F.words=new Array(this.length+I.length),this.mulTo(I,F)},o.prototype.mulf=function(I){var F=new o(null);return F.words=new Array(this.length+I.length),C(this,I,F)},o.prototype.imul=function(I){return this.clone().mulTo(I,this)},o.prototype.imuln=function(I){var F=I<0;F&&(I=-I),u(typeof I=="number"),u(I<67108864);for(var L=0,R=0;R<this.length;R++){var U=(0|this.words[R])*I,V=(67108863&U)+(67108863&L);L>>=26,L+=U/67108864|0,L+=V>>>26,this.words[R]=67108863&V}return L!==0&&(this.words[R]=L,this.length++),F?this.ineg():this},o.prototype.muln=function(I){return this.clone().imuln(I)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(I){var F=(function(V){for(var W=new Array(V.bitLength()),Q=0;Q<W.length;Q++){var le=Q/26|0,G=Q%26;W[Q]=V.words[le]>>>G&1}return W})(I);if(F.length===0)return new o(1);for(var L=this,R=0;R<F.length&&F[R]===0;R++,L=L.sqr());if(++R<F.length)for(var U=L.sqr();R<F.length;R++,U=U.sqr())F[R]!==0&&(L=L.mul(U));return L},o.prototype.iushln=function(I){u(typeof I=="number"&&I>=0);var F,L=I%26,R=(I-L)/26,U=67108863>>>26-L<<26-L;if(L!==0){var V=0;for(F=0;F<this.length;F++){var W=this.words[F]&U,Q=(0|this.words[F])-W<<L;this.words[F]=Q|V,V=W>>>26-L}V&&(this.words[F]=V,this.length++)}if(R!==0){for(F=this.length-1;F>=0;F--)this.words[F+R]=this.words[F];for(F=0;F<R;F++)this.words[F]=0;this.length+=R}return this._strip()},o.prototype.ishln=function(I){return u(this.negative===0),this.iushln(I)},o.prototype.iushrn=function(I,F,L){var R;u(typeof I=="number"&&I>=0),R=F?(F-F%26)/26:0;var U=I%26,V=Math.min((I-U)/26,this.length),W=67108863^67108863>>>U<<U,Q=L;if(R-=V,R=Math.max(0,R),Q){for(var le=0;le<V;le++)Q.words[le]=this.words[le];Q.length=V}if(V!==0)if(this.length>V)for(this.length-=V,le=0;le<this.length;le++)this.words[le]=this.words[le+V];else this.words[0]=0,this.length=1;var G=0;for(le=this.length-1;le>=0&&(G!==0||le>=R);le--){var fe=0|this.words[le];this.words[le]=G<<26-U|fe>>>U,G=fe&W}return Q&&G!==0&&(Q.words[Q.length++]=G),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(I,F,L){return u(this.negative===0),this.iushrn(I,F,L)},o.prototype.shln=function(I){return this.clone().ishln(I)},o.prototype.ushln=function(I){return this.clone().iushln(I)},o.prototype.shrn=function(I){return this.clone().ishrn(I)},o.prototype.ushrn=function(I){return this.clone().iushrn(I)},o.prototype.testn=function(I){u(typeof I=="number"&&I>=0);var F=I%26,L=(I-F)/26,R=1<<F;return!(this.length<=L)&&!!(this.words[L]&R)},o.prototype.imaskn=function(I){u(typeof I=="number"&&I>=0);var F=I%26,L=(I-F)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=L)return this;if(F!==0&&L++,this.length=Math.min(L,this.length),F!==0){var R=67108863^67108863>>>F<<F;this.words[this.length-1]&=R}return this._strip()},o.prototype.maskn=function(I){return this.clone().imaskn(I)},o.prototype.iaddn=function(I){return u(typeof I=="number"),u(I<67108864),I<0?this.isubn(-I):this.negative!==0?this.length===1&&(0|this.words[0])<=I?(this.words[0]=I-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(I),this.negative=1,this):this._iaddn(I)},o.prototype._iaddn=function(I){this.words[0]+=I;for(var F=0;F<this.length&&this.words[F]>=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},o.prototype.isubn=function(I){if(u(typeof I=="number"),u(I<67108864),I<0)return this.iaddn(-I);if(this.negative!==0)return this.negative=0,this.iaddn(I),this.negative=1,this;if(this.words[0]-=I,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F<this.length&&this.words[F]<0;F++)this.words[F]+=67108864,this.words[F+1]-=1;return this._strip()},o.prototype.addn=function(I){return this.clone().iaddn(I)},o.prototype.subn=function(I){return this.clone().isubn(I)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(I,F,L){var R,U,V=I.length+L;this._expand(V);var W=0;for(R=0;R<I.length;R++){U=(0|this.words[R+L])+W;var Q=(0|I.words[R])*F;W=((U-=67108863&Q)>>26)-(Q/67108864|0),this.words[R+L]=67108863&U}for(;R<this.length-L;R++)W=(U=(0|this.words[R+L])+W)>>26,this.words[R+L]=67108863&U;if(W===0)return this._strip();for(u(W===-1),W=0,R=0;R<this.length;R++)W=(U=-(0|this.words[R])+W)>>26,this.words[R]=67108863&U;return this.negative=1,this._strip()},o.prototype._wordDiv=function(I,F){var L=(this.length,I.length),R=this.clone(),U=I,V=0|U.words[U.length-1];(L=26-this._countBits(V))!==0&&(U=U.ushln(L),R.iushln(L),V=0|U.words[U.length-1]);var W,Q=R.length-U.length;if(F!=="mod"){(W=new o(null)).length=Q+1,W.words=new Array(W.length);for(var le=0;le<W.length;le++)W.words[le]=0}var G=R.clone()._ishlnsubmul(U,1,Q);G.negative===0&&(R=G,W&&(W.words[Q]=1));for(var fe=Q-1;fe>=0;fe--){var ie=67108864*(0|R.words[U.length+fe])+(0|R.words[U.length+fe-1]);for(ie=Math.min(ie/V|0,67108863),R._ishlnsubmul(U,ie,fe);R.negative!==0;)ie--,R.negative=0,R._ishlnsubmul(U,1,fe),R.isZero()||(R.negative^=1);W&&(W.words[fe]=ie)}return W&&W._strip(),R._strip(),F!=="div"&&L!==0&&R.iushrn(L),{div:W||null,mod:R}},o.prototype.divmod=function(I,F,L){return u(!I.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:this.negative!==0&&I.negative===0?(V=this.neg().divmod(I,F),F!=="mod"&&(R=V.div.neg()),F!=="div"&&(U=V.mod.neg(),L&&U.negative!==0&&U.iadd(I)),{div:R,mod:U}):this.negative===0&&I.negative!==0?(V=this.divmod(I.neg(),F),F!=="mod"&&(R=V.div.neg()),{div:R,mod:V.mod}):(this.negative&I.negative)!=0?(V=this.neg().divmod(I.neg(),F),F!=="div"&&(U=V.mod.neg(),L&&U.negative!==0&&U.isub(I)),{div:V.div,mod:U}):I.length>this.length||this.cmp(I)<0?{div:new o(0),mod:this}:I.length===1?F==="div"?{div:this.divn(I.words[0]),mod:null}:F==="mod"?{div:null,mod:new o(this.modrn(I.words[0]))}:{div:this.divn(I.words[0]),mod:new o(this.modrn(I.words[0]))}:this._wordDiv(I,F);var R,U,V},o.prototype.div=function(I){return this.divmod(I,"div",!1).div},o.prototype.mod=function(I){return this.divmod(I,"mod",!1).mod},o.prototype.umod=function(I){return this.divmod(I,"mod",!0).mod},o.prototype.divRound=function(I){var F=this.divmod(I);if(F.mod.isZero())return F.div;var L=F.div.negative!==0?F.mod.isub(I):F.mod,R=I.ushrn(1),U=I.andln(1),V=L.cmp(R);return V<0||U===1&&V===0?F.div:F.div.negative!==0?F.div.isubn(1):F.div.iaddn(1)},o.prototype.modrn=function(I){var F=I<0;F&&(I=-I),u(I<=67108863);for(var L=(1<<26)%I,R=0,U=this.length-1;U>=0;U--)R=(L*R+(0|this.words[U]))%I;return F?-R:R},o.prototype.modn=function(I){return this.modrn(I)},o.prototype.idivn=function(I){var F=I<0;F&&(I=-I),u(I<=67108863);for(var L=0,R=this.length-1;R>=0;R--){var U=(0|this.words[R])+67108864*L;this.words[R]=U/I|0,L=U%I}return this._strip(),F?this.ineg():this},o.prototype.divn=function(I){return this.clone().idivn(I)},o.prototype.egcd=function(I){u(I.negative===0),u(!I.isZero());var F=this,L=I.clone();F=F.negative!==0?F.umod(I):F.clone();for(var R=new o(1),U=new o(0),V=new o(0),W=new o(1),Q=0;F.isEven()&&L.isEven();)F.iushrn(1),L.iushrn(1),++Q;for(var le=L.clone(),G=F.clone();!F.isZero();){for(var fe=0,ie=1;(F.words[0]&ie)==0&&fe<26;++fe,ie<<=1);if(fe>0)for(F.iushrn(fe);fe-- >0;)(R.isOdd()||U.isOdd())&&(R.iadd(le),U.isub(G)),R.iushrn(1),U.iushrn(1);for(var he=0,Y=1;(L.words[0]&Y)==0&&he<26;++he,Y<<=1);if(he>0)for(L.iushrn(he);he-- >0;)(V.isOdd()||W.isOdd())&&(V.iadd(le),W.isub(G)),V.iushrn(1),W.iushrn(1);F.cmp(L)>=0?(F.isub(L),R.isub(V),U.isub(W)):(L.isub(F),V.isub(R),W.isub(U))}return{a:V,b:W,gcd:L.iushln(Q)}},o.prototype._invmp=function(I){u(I.negative===0),u(!I.isZero());var F=this,L=I.clone();F=F.negative!==0?F.umod(I):F.clone();for(var R,U=new o(1),V=new o(0),W=L.clone();F.cmpn(1)>0&&L.cmpn(1)>0;){for(var Q=0,le=1;(F.words[0]&le)==0&&Q<26;++Q,le<<=1);if(Q>0)for(F.iushrn(Q);Q-- >0;)U.isOdd()&&U.iadd(W),U.iushrn(1);for(var G=0,fe=1;(L.words[0]&fe)==0&&G<26;++G,fe<<=1);if(G>0)for(L.iushrn(G);G-- >0;)V.isOdd()&&V.iadd(W),V.iushrn(1);F.cmp(L)>=0?(F.isub(L),U.isub(V)):(L.isub(F),V.isub(U))}return(R=F.cmpn(1)===0?U:V).cmpn(0)<0&&R.iadd(I),R},o.prototype.gcd=function(I){if(this.isZero())return I.abs();if(I.isZero())return this.abs();var F=this.clone(),L=I.clone();F.negative=0,L.negative=0;for(var R=0;F.isEven()&&L.isEven();R++)F.iushrn(1),L.iushrn(1);for(;;){for(;F.isEven();)F.iushrn(1);for(;L.isEven();)L.iushrn(1);var U=F.cmp(L);if(U<0){var V=F;F=L,L=V}else if(U===0||L.cmpn(1)===0)break;F.isub(L)}return L.iushln(R)},o.prototype.invm=function(I){return this.egcd(I).a.umod(I)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(I){return this.words[0]&I},o.prototype.bincn=function(I){u(typeof I=="number");var F=I%26,L=(I-F)/26,R=1<<F;if(this.length<=L)return this._expand(L+1),this.words[L]|=R,this;for(var U=R,V=L;U!==0&&V<this.length;V++){var W=0|this.words[V];U=(W+=U)>>>26,W&=67108863,this.words[V]=W}return U!==0&&(this.words[V]=U,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(I){var F,L=I<0;if(this.negative!==0&&!L)return-1;if(this.negative===0&&L)return 1;if(this._strip(),this.length>1)F=1;else{L&&(I=-I),u(I<=67108863,"Number is too big");var R=0|this.words[0];F=R===I?0:R<I?-1:1}return this.negative!==0?0|-F:F},o.prototype.cmp=function(I){if(this.negative!==0&&I.negative===0)return-1;if(this.negative===0&&I.negative!==0)return 1;var F=this.ucmp(I);return this.negative!==0?0|-F:F},o.prototype.ucmp=function(I){if(this.length>I.length)return 1;if(this.length<I.length)return-1;for(var F=0,L=this.length-1;L>=0;L--){var R=0|this.words[L],U=0|I.words[L];if(R!==U){R<U?F=-1:R>U&&(F=1);break}}return F},o.prototype.gtn=function(I){return this.cmpn(I)===1},o.prototype.gt=function(I){return this.cmp(I)===1},o.prototype.gten=function(I){return this.cmpn(I)>=0},o.prototype.gte=function(I){return this.cmp(I)>=0},o.prototype.ltn=function(I){return this.cmpn(I)===-1},o.prototype.lt=function(I){return this.cmp(I)===-1},o.prototype.lten=function(I){return this.cmpn(I)<=0},o.prototype.lte=function(I){return this.cmp(I)<=0},o.prototype.eqn=function(I){return this.cmpn(I)===0},o.prototype.eq=function(I){return this.cmp(I)===0},o.red=function(I){return new B(I)},o.prototype.toRed=function(I){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),I.convertTo(this)._forceRed(I)},o.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(I){return this.red=I,this},o.prototype.forceRed=function(I){return u(!this.red,"Already a number in reduction context"),this._forceRed(I)},o.prototype.redAdd=function(I){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,I)},o.prototype.redIAdd=function(I){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,I)},o.prototype.redSub=function(I){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,I)},o.prototype.redISub=function(I){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,I)},o.prototype.redShl=function(I){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,I)},o.prototype.redMul=function(I){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.mul(this,I)},o.prototype.redIMul=function(I){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.imul(this,I)},o.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(I){return u(this.red&&!I.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,I)};var k={k256:null,p224:null,p192:null,p25519:null};function T(I,F){this.name=I,this.p=new o(F,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(I){if(typeof I=="string"){var F=o._prime(I);this.m=F.p,this.prime=F}else u(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}function O(I){B.call(this,I),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}T.prototype._tmp=function(){var I=new o(null);return I.words=new Array(Math.ceil(this.n/13)),I},T.prototype.ireduce=function(I){var F,L=I;do this.split(L,this.tmp),F=(L=(L=this.imulK(L)).iadd(this.tmp)).bitLength();while(F>this.n);var R=F<this.n?-1:L.ucmp(this.p);return R===0?(L.words[0]=0,L.length=1):R>0?L.isub(this.p):L.strip!==void 0?L.strip():L._strip(),L},T.prototype.split=function(I,F){I.iushrn(this.n,0,F)},T.prototype.imulK=function(I){return I.imul(this.k)},f(S,T),S.prototype.split=function(I,F){for(var L=Math.min(I.length,9),R=0;R<L;R++)F.words[R]=I.words[R];if(F.length=L,I.length<=9)return I.words[0]=0,void(I.length=1);var U=I.words[9];for(F.words[F.length++]=4194303&U,R=10;R<I.length;R++){var V=0|I.words[R];I.words[R-10]=(4194303&V)<<4|U>>>22,U=V}U>>>=22,I.words[R-10]=U,U===0&&I.length>10?I.length-=10:I.length-=9},S.prototype.imulK=function(I){I.words[I.length]=0,I.words[I.length+1]=0,I.length+=2;for(var F=0,L=0;L<I.length;L++){var R=0|I.words[L];F+=977*R,I.words[L]=67108863&F,F=64*R+(F/67108864|0)}return I.words[I.length-1]===0&&(I.length--,I.words[I.length-1]===0&&I.length--),I},f(M,T),f(P,T),f(N,T),N.prototype.imulK=function(I){for(var F=0,L=0;L<I.length;L++){var R=19*(0|I.words[L])+F,U=67108863&R;R>>>=26,I.words[L]=U,F=R}return F!==0&&(I.words[I.length++]=F),I},o._prime=function(I){if(k[I])return k[I];var F;if(I==="k256")F=new S;else if(I==="p224")F=new M;else if(I==="p192")F=new P;else{if(I!=="p25519")throw new Error("Unknown prime "+I);F=new N}return k[I]=F,F},B.prototype._verify1=function(I){u(I.negative===0,"red works only with positives"),u(I.red,"red works only with red numbers")},B.prototype._verify2=function(I,F){u((I.negative|F.negative)==0,"red works only with positives"),u(I.red&&I.red===F.red,"red works only with red numbers")},B.prototype.imod=function(I){return this.prime?this.prime.ireduce(I)._forceRed(this):(_(I,I.umod(this.m)._forceRed(this)),I)},B.prototype.neg=function(I){return I.isZero()?I.clone():this.m.sub(I)._forceRed(this)},B.prototype.add=function(I,F){this._verify2(I,F);var L=I.add(F);return L.cmp(this.m)>=0&&L.isub(this.m),L._forceRed(this)},B.prototype.iadd=function(I,F){this._verify2(I,F);var L=I.iadd(F);return L.cmp(this.m)>=0&&L.isub(this.m),L},B.prototype.sub=function(I,F){this._verify2(I,F);var L=I.sub(F);return L.cmpn(0)<0&&L.iadd(this.m),L._forceRed(this)},B.prototype.isub=function(I,F){this._verify2(I,F);var L=I.isub(F);return L.cmpn(0)<0&&L.iadd(this.m),L},B.prototype.shl=function(I,F){return this._verify1(I),this.imod(I.ushln(F))},B.prototype.imul=function(I,F){return this._verify2(I,F),this.imod(I.imul(F))},B.prototype.mul=function(I,F){return this._verify2(I,F),this.imod(I.mul(F))},B.prototype.isqr=function(I){return this.imul(I,I.clone())},B.prototype.sqr=function(I){return this.mul(I,I)},B.prototype.sqrt=function(I){if(I.isZero())return I.clone();var F=this.m.andln(3);if(u(F%2==1),F===3){var L=this.m.add(new o(1)).iushrn(2);return this.pow(I,L)}for(var R=this.m.subn(1),U=0;!R.isZero()&&R.andln(1)===0;)U++,R.iushrn(1);u(!R.isZero());var V=new o(1).toRed(this),W=V.redNeg(),Q=this.m.subn(1).iushrn(1),le=this.m.bitLength();for(le=new o(2*le*le).toRed(this);this.pow(le,Q).cmp(W)!==0;)le.redIAdd(W);for(var G=this.pow(le,R),fe=this.pow(I,R.addn(1).iushrn(1)),ie=this.pow(I,R),he=U;ie.cmp(V)!==0;){for(var Y=ie,K=0;Y.cmp(V)!==0;K++)Y=Y.redSqr();u(K<he);var oe=this.pow(G,new o(1).iushln(he-K-1));fe=fe.redMul(oe),G=oe.redSqr(),ie=ie.redMul(G),he=K}return fe},B.prototype.invm=function(I){var F=I._invmp(this.m);return F.negative!==0?(F.negative=0,this.imod(F).redNeg()):this.imod(F)},B.prototype.pow=function(I,F){if(F.isZero())return new o(1).toRed(this);if(F.cmpn(1)===0)return I.clone();var L=new Array(16);L[0]=new o(1).toRed(this),L[1]=I;for(var R=2;R<L.length;R++)L[R]=this.mul(L[R-1],I);var U=L[0],V=0,W=0,Q=F.bitLength()%26;for(Q===0&&(Q=26),R=F.length-1;R>=0;R--){for(var le=F.words[R],G=Q-1;G>=0;G--){var fe=le>>G&1;U!==L[0]&&(U=this.sqr(U)),fe!==0||V!==0?(V<<=1,V|=fe,(++W===4||R===0&&G===0)&&(U=this.mul(U,L[V]),W=0,V=0)):W=0}Q=26}return U},B.prototype.convertTo=function(I){var F=I.umod(this.m);return F===I?F.clone():F},B.prototype.convertFrom=function(I){var F=I.clone();return F.red=null,F},o.mont=function(I){return new O(I)},f(O,B),O.prototype.convertTo=function(I){return this.imod(I.ushln(this.shift))},O.prototype.convertFrom=function(I){var F=this.imod(I.mul(this.rinv));return F.red=null,F},O.prototype.imul=function(I,F){if(I.isZero()||F.isZero())return I.words[0]=0,I.length=1,I;var L=I.imul(F),R=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),U=L.isub(R).iushrn(this.shift),V=U;return U.cmp(this.m)>=0?V=U.isub(this.m):U.cmpn(0)<0&&(V=U.iadd(this.m)),V._forceRed(this)},O.prototype.mul=function(I,F){if(I.isZero()||F.isZero())return new o(0)._forceRed(this);var L=I.mul(F),R=L.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),U=L.isub(R).iushrn(this.shift),V=U;return U.cmp(this.m)>=0?V=U.isub(this.m):U.cmpn(0)<0&&(V=U.iadd(this.m)),V._forceRed(this)},O.prototype.invm=function(I){return this.imod(I._invmp(this.m).mul(this.r2))._forceRed(this)}})(i===void 0||i)},{buffer:188}],187:[function(r,i,n){var t;function c(f){this.rand=f}if(i.exports=function(f){return t||(t=new c(null)),t.generate(f)},i.exports.Rand=c,c.prototype.generate=function(f){return this._rand(f)},c.prototype._rand=function(f){if(this.rand.getBytes)return this.rand.getBytes(f);for(var o=new Uint8Array(f),l=0;l<o.length;l++)o[l]=this.rand.getByte();return o},typeof self=="object")self.crypto&&self.crypto.getRandomValues?c.prototype._rand=function(f){var o=new Uint8Array(f);return self.crypto.getRandomValues(o),o}:self.msCrypto&&self.msCrypto.getRandomValues?c.prototype._rand=function(f){var o=new Uint8Array(f);return self.msCrypto.getRandomValues(o),o}:typeof window=="object"&&(c.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var u=r("crypto");if(typeof u.randomBytes!="function")throw new Error("Not supported");c.prototype._rand=function(f){return u.randomBytes(f)}}catch{}},{crypto:188}],188:[function(r,i,n){},{}],189:[function(r,i,n){var t=r("safe-buffer").Buffer;function c(m){t.isBuffer(m)||(m=t.from(m));for(var p=m.length/4|0,_=new Array(p),y=0;y<p;y++)_[y]=m.readUInt32BE(4*y);return _}function u(m){for(;0<m.length;m++)m[0]=0}function f(m,p,_,y,h){for(var d,A,v,w,x=_[0],C=_[1],k=_[2],T=_[3],S=m[0]^p[0],M=m[1]^p[1],P=m[2]^p[2],N=m[3]^p[3],B=4,O=1;O<h;O++)d=x[S>>>24]^C[M>>>16&255]^k[P>>>8&255]^T[255&N]^p[B++],A=x[M>>>24]^C[P>>>16&255]^k[N>>>8&255]^T[255&S]^p[B++],v=x[P>>>24]^C[N>>>16&255]^k[S>>>8&255]^T[255&M]^p[B++],w=x[N>>>24]^C[S>>>16&255]^k[M>>>8&255]^T[255&P]^p[B++],S=d,M=A,P=v,N=w;return d=(y[S>>>24]<<24|y[M>>>16&255]<<16|y[P>>>8&255]<<8|y[255&N])^p[B++],A=(y[M>>>24]<<24|y[P>>>16&255]<<16|y[N>>>8&255]<<8|y[255&S])^p[B++],v=(y[P>>>24]<<24|y[N>>>16&255]<<16|y[S>>>8&255]<<8|y[255&M])^p[B++],w=(y[N>>>24]<<24|y[S>>>16&255]<<16|y[M>>>8&255]<<8|y[255&P])^p[B++],[d>>>=0,A>>>=0,v>>>=0,w>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],l=(function(){for(var m=new Array(256),p=0;p<256;p++)m[p]=p<128?p<<1:p<<1^283;for(var _=[],y=[],h=[[],[],[],[]],d=[[],[],[],[]],A=0,v=0,w=0;w<256;++w){var x=v^v<<1^v<<2^v<<3^v<<4;x=x>>>8^255&x^99,_[A]=x,y[x]=A;var C=m[A],k=m[C],T=m[k],S=257*m[x]^16843008*x;h[0][A]=S<<24|S>>>8,h[1][A]=S<<16|S>>>16,h[2][A]=S<<8|S>>>24,h[3][A]=S,S=16843009*T^65537*k^257*C^16843008*A,d[0][x]=S<<24|S>>>8,d[1][x]=S<<16|S>>>16,d[2][x]=S<<8|S>>>24,d[3][x]=S,A===0?A=v=1:(A=C^m[m[m[T^C]]],v^=m[m[v]])}return{SBOX:_,INV_SBOX:y,SUB_MIX:h,INV_SUB_MIX:d}})();function g(m){this._key=c(m),this._reset()}g.blockSize=16,g.keySize=32,g.prototype.blockSize=g.blockSize,g.prototype.keySize=g.keySize,g.prototype._reset=function(){for(var m=this._key,p=m.length,_=p+6,y=4*(_+1),h=[],d=0;d<p;d++)h[d]=m[d];for(d=p;d<y;d++){var A=h[d-1];d%p==0?(A=A<<8|A>>>24,A=l.SBOX[A>>>24]<<24|l.SBOX[A>>>16&255]<<16|l.SBOX[A>>>8&255]<<8|l.SBOX[255&A],A^=o[d/p|0]<<24):p>6&&d%p==4&&(A=l.SBOX[A>>>24]<<24|l.SBOX[A>>>16&255]<<16|l.SBOX[A>>>8&255]<<8|l.SBOX[255&A]),h[d]=h[d-p]^A}for(var v=[],w=0;w<y;w++){var x=y-w,C=h[x-(w%4?0:4)];v[w]=w<4||x<=4?C:l.INV_SUB_MIX[0][l.SBOX[C>>>24]]^l.INV_SUB_MIX[1][l.SBOX[C>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[C>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&C]]}this._nRounds=_,this._keySchedule=h,this._invKeySchedule=v},g.prototype.encryptBlockRaw=function(m){return f(m=c(m),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},g.prototype.encryptBlock=function(m){var p=this.encryptBlockRaw(m),_=t.allocUnsafe(16);return _.writeUInt32BE(p[0],0),_.writeUInt32BE(p[1],4),_.writeUInt32BE(p[2],8),_.writeUInt32BE(p[3],12),_},g.prototype.decryptBlock=function(m){var p=(m=c(m))[1];m[1]=m[3],m[3]=p;var _=f(m,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),y=t.allocUnsafe(16);return y.writeUInt32BE(_[0],0),y.writeUInt32BE(_[3],4),y.writeUInt32BE(_[2],8),y.writeUInt32BE(_[1],12),y},g.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},i.exports.AES=g},{"safe-buffer":494}],190:[function(r,i,n){var t=r("./aes"),c=r("safe-buffer").Buffer,u=r("cipher-base"),f=r("inherits"),o=r("./ghash"),l=r("buffer-xor"),g=r("./incr32");function m(p,_,y,h){u.call(this);var d=c.alloc(4,0);this._cipher=new t.AES(_);var A=this._cipher.encryptBlock(d);this._ghash=new o(A),y=(function(v,w,x){if(w.length===12)return v._finID=c.concat([w,c.from([0,0,0,1])]),c.concat([w,c.from([0,0,0,2])]);var C=new o(x),k=w.length,T=k%16;C.update(w),T&&(T=16-T,C.update(c.alloc(T,0))),C.update(c.alloc(8,0));var S=8*k,M=c.alloc(8);M.writeUIntBE(S,0,8),C.update(M),v._finID=C.state;var P=c.from(v._finID);return g(P),P})(this,y,A),this._prev=c.from(y),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=h,this._alen=0,this._len=0,this._mode=p,this._authTag=null,this._called=!1}f(m,u),m.prototype._update=function(p){if(!this._called&&this._alen){var _=16-this._alen%16;_<16&&(_=c.alloc(_,0),this._ghash.update(_))}this._called=!0;var y=this._mode.encrypt(this,p);return this._decrypt?this._ghash.update(p):this._ghash.update(y),this._len+=p.length,y},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var p=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(_,y){var h=0;_.length!==y.length&&h++;for(var d=Math.min(_.length,y.length),A=0;A<d;++A)h+=_[A]^y[A];return h})(p,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=p,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(p){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=p},m.prototype.setAAD=function(p){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(p),this._alen+=p.length},i.exports=m},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(r,i,n){var t=r("./encrypter"),c=r("./decrypter"),u=r("./modes/list.json");n.createCipher=n.Cipher=t.createCipher,n.createCipheriv=n.Cipheriv=t.createCipheriv,n.createDecipher=n.Decipher=c.createDecipher,n.createDecipheriv=n.Decipheriv=c.createDecipheriv,n.listCiphers=n.getCiphers=function(){return Object.keys(u)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(r,i,n){var t=r("./authCipher"),c=r("safe-buffer").Buffer,u=r("./modes"),f=r("./streamCipher"),o=r("cipher-base"),l=r("./aes"),g=r("evp_bytestokey");function m(y,h,d){o.call(this),this._cache=new p,this._last=void 0,this._cipher=new l.AES(h),this._prev=c.from(d),this._mode=y,this._autopadding=!0}function p(){this.cache=c.allocUnsafe(0)}function _(y,h,d){var A=u[y.toLowerCase()];if(!A)throw new TypeError("invalid suite type");if(typeof d=="string"&&(d=c.from(d)),A.mode!=="GCM"&&d.length!==A.iv)throw new TypeError("invalid iv length "+d.length);if(typeof h=="string"&&(h=c.from(h)),h.length!==A.key/8)throw new TypeError("invalid key length "+h.length);return A.type==="stream"?new f(A.module,h,d,!0):A.type==="auth"?new t(A.module,h,d,!0):new m(A.module,h,d)}r("inherits")(m,o),m.prototype._update=function(y){var h,d;this._cache.add(y);for(var A=[];h=this._cache.get(this._autopadding);)d=this._mode.decrypt(this,h),A.push(d);return c.concat(A)},m.prototype._final=function(){var y=this._cache.flush();if(this._autopadding)return(function(h){var d=h[15];if(d<1||d>16)throw new Error("unable to decrypt data");for(var A=-1;++A<d;)if(h[A+(16-d)]!==d)throw new Error("unable to decrypt data");if(d!==16)return h.slice(0,16-d)})(this._mode.decrypt(this,y));if(y)throw new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(y){return this._autopadding=!!y,this},p.prototype.add=function(y){this.cache=c.concat([this.cache,y])},p.prototype.get=function(y){var h;if(y){if(this.cache.length>16)return h=this.cache.slice(0,16),this.cache=this.cache.slice(16),h}else if(this.cache.length>=16)return h=this.cache.slice(0,16),this.cache=this.cache.slice(16),h;return null},p.prototype.flush=function(){if(this.cache.length)return this.cache},n.createDecipher=function(y,h){var d=u[y.toLowerCase()];if(!d)throw new TypeError("invalid suite type");var A=g(h,!1,d.key,d.iv);return _(y,A.key,A.iv)},n.createDecipheriv=_},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(r,i,n){var t=r("./modes"),c=r("./authCipher"),u=r("safe-buffer").Buffer,f=r("./streamCipher"),o=r("cipher-base"),l=r("./aes"),g=r("evp_bytestokey");function m(h,d,A){o.call(this),this._cache=new _,this._cipher=new l.AES(d),this._prev=u.from(A),this._mode=h,this._autopadding=!0}r("inherits")(m,o),m.prototype._update=function(h){var d,A;this._cache.add(h);for(var v=[];d=this._cache.get();)A=this._mode.encrypt(this,d),v.push(A);return u.concat(v)};var p=u.alloc(16,16);function _(){this.cache=u.allocUnsafe(0)}function y(h,d,A){var v=t[h.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof d=="string"&&(d=u.from(d)),d.length!==v.key/8)throw new TypeError("invalid key length "+d.length);if(typeof A=="string"&&(A=u.from(A)),v.mode!=="GCM"&&A.length!==v.iv)throw new TypeError("invalid iv length "+A.length);return v.type==="stream"?new f(v.module,d,A):v.type==="auth"?new c(v.module,d,A):new m(v.module,d,A)}m.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return h=this._mode.encrypt(this,h),this._cipher.scrub(),h;if(!h.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},m.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this},_.prototype.add=function(h){this.cache=u.concat([this.cache,h])},_.prototype.get=function(){if(this.cache.length>15){var h=this.cache.slice(0,16);return this.cache=this.cache.slice(16),h}return null},_.prototype.flush=function(){for(var h=16-this.cache.length,d=u.allocUnsafe(h),A=-1;++A<h;)d.writeUInt8(h,A);return u.concat([this.cache,d])},n.createCipheriv=y,n.createCipher=function(h,d){var A=t[h.toLowerCase()];if(!A)throw new TypeError("invalid suite type");var v=g(d,!1,A.key,A.iv);return y(h,v.key,v.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(r,i,n){var t=r("safe-buffer").Buffer,c=t.alloc(16,0);function u(o){var l=t.allocUnsafe(16);return l.writeUInt32BE(o[0]>>>0,0),l.writeUInt32BE(o[1]>>>0,4),l.writeUInt32BE(o[2]>>>0,8),l.writeUInt32BE(o[3]>>>0,12),l}function f(o){this.h=o,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}f.prototype.ghash=function(o){for(var l=-1;++l<o.length;)this.state[l]^=o[l];this._multiply()},f.prototype._multiply=function(){for(var o,l,g,m=[(o=this.h).readUInt32BE(0),o.readUInt32BE(4),o.readUInt32BE(8),o.readUInt32BE(12)],p=[0,0,0,0],_=-1;++_<128;){for((this.state[~~(_/8)]&1<<7-_%8)!=0&&(p[0]^=m[0],p[1]^=m[1],p[2]^=m[2],p[3]^=m[3]),g=(1&m[3])!=0,l=3;l>0;l--)m[l]=m[l]>>>1|(1&m[l-1])<<31;m[0]=m[0]>>>1,g&&(m[0]=m[0]^225<<24)}this.state=u(p)},f.prototype.update=function(o){var l;for(this.cache=t.concat([this.cache,o]);this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},f.prototype.final=function(o,l){return this.cache.length&&this.ghash(t.concat([this.cache,c],16)),this.ghash(u([0,o,0,l])),this.state},i.exports=f},{"safe-buffer":494}],195:[function(r,i,n){i.exports=function(t){for(var c,u=t.length;u--;){if((c=t.readUInt8(u))!==255){c++,t.writeUInt8(c,u);break}t.writeUInt8(0,u)}}},{}],196:[function(r,i,n){var t=r("buffer-xor");n.encrypt=function(c,u){var f=t(u,c._prev);return c._prev=c._cipher.encryptBlock(f),c._prev},n.decrypt=function(c,u){var f=c._prev;c._prev=u;var o=c._cipher.decryptBlock(u);return t(o,f)}},{"buffer-xor":219}],197:[function(r,i,n){var t=r("safe-buffer").Buffer,c=r("buffer-xor");function u(f,o,l){var g=o.length,m=c(o,f._cache);return f._cache=f._cache.slice(g),f._prev=t.concat([f._prev,l?o:m]),m}n.encrypt=function(f,o,l){for(var g,m=t.allocUnsafe(0);o.length;){if(f._cache.length===0&&(f._cache=f._cipher.encryptBlock(f._prev),f._prev=t.allocUnsafe(0)),!(f._cache.length<=o.length)){m=t.concat([m,u(f,o,l)]);break}g=f._cache.length,m=t.concat([m,u(f,o.slice(0,g),l)]),o=o.slice(g)}return m}},{"buffer-xor":219,"safe-buffer":494}],198:[function(r,i,n){var t=r("safe-buffer").Buffer;function c(f,o,l){for(var g,m,p=-1,_=0;++p<8;)g=o&1<<7-p?128:0,_+=(128&(m=f._cipher.encryptBlock(f._prev)[0]^g))>>p%8,f._prev=u(f._prev,l?g:m);return _}function u(f,o){var l=f.length,g=-1,m=t.allocUnsafe(f.length);for(f=t.concat([f,t.from([o])]);++g<l;)m[g]=f[g]<<1|f[g+1]>>7;return m}n.encrypt=function(f,o,l){for(var g=o.length,m=t.allocUnsafe(g),p=-1;++p<g;)m[p]=c(f,o[p],l);return m}},{"safe-buffer":494}],199:[function(r,i,n){var t=r("safe-buffer").Buffer;function c(u,f,o){var l=u._cipher.encryptBlock(u._prev)[0]^f;return u._prev=t.concat([u._prev.slice(1),t.from([o?f:l])]),l}n.encrypt=function(u,f,o){for(var l=f.length,g=t.allocUnsafe(l),m=-1;++m<l;)g[m]=c(u,f[m],o);return g}},{"safe-buffer":494}],200:[function(r,i,n){var t=r("buffer-xor"),c=r("safe-buffer").Buffer,u=r("../incr32");function f(o){var l=o._cipher.encryptBlockRaw(o._prev);return u(o._prev),l}n.encrypt=function(o,l){var g=Math.ceil(l.length/16),m=o._cache.length;o._cache=c.concat([o._cache,c.allocUnsafe(16*g)]);for(var p=0;p<g;p++){var _=f(o),y=m+16*p;o._cache.writeUInt32BE(_[0],y+0),o._cache.writeUInt32BE(_[1],y+4),o._cache.writeUInt32BE(_[2],y+8),o._cache.writeUInt32BE(_[3],y+12)}var h=o._cache.slice(0,l.length);return o._cache=o._cache.slice(l.length),t(l,h)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(r,i,n){n.encrypt=function(t,c){return t._cipher.encryptBlock(c)},n.decrypt=function(t,c){return t._cipher.decryptBlock(c)}},{}],202:[function(r,i,n){var t={ECB:r("./ecb"),CBC:r("./cbc"),CFB:r("./cfb"),CFB8:r("./cfb8"),CFB1:r("./cfb1"),OFB:r("./ofb"),CTR:r("./ctr"),GCM:r("./ctr")},c=r("./list.json");for(var u in c)c[u].module=t[c[u].mode];i.exports=c},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(r,i,n){i.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(r,i,n){(function(t){(function(){var c=r("buffer-xor");function u(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}n.encrypt=function(f,o){for(;f._cache.length<o.length;)f._cache=t.concat([f._cache,u(f)]);var l=f._cache.slice(0,o.length);return f._cache=f._cache.slice(o.length),c(o,l)}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(r,i,n){var t=r("./aes"),c=r("safe-buffer").Buffer,u=r("cipher-base");function f(o,l,g,m){u.call(this),this._cipher=new t.AES(l),this._prev=c.from(g),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=m,this._mode=o}r("inherits")(f,u),f.prototype._update=function(o){return this._mode.encrypt(this,o,this._decrypt)},f.prototype._final=function(){this._cipher.scrub()},i.exports=f},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(r,i,n){var t=r("browserify-des"),c=r("browserify-aes/browser"),u=r("browserify-aes/modes"),f=r("browserify-des/modes"),o=r("evp_bytestokey");function l(m,p,_){if(m=m.toLowerCase(),u[m])return c.createCipheriv(m,p,_);if(f[m])return new t({key:p,iv:_,mode:m});throw new TypeError("invalid suite type")}function g(m,p,_){if(m=m.toLowerCase(),u[m])return c.createDecipheriv(m,p,_);if(f[m])return new t({key:p,iv:_,mode:m,decrypt:!0});throw new TypeError("invalid suite type")}n.createCipher=n.Cipher=function(m,p){var _,y;if(m=m.toLowerCase(),u[m])_=u[m].key,y=u[m].iv;else{if(!f[m])throw new TypeError("invalid suite type");_=8*f[m].key,y=f[m].iv}var h=o(p,!1,_,y);return l(m,h.key,h.iv)},n.createCipheriv=n.Cipheriv=l,n.createDecipher=n.Decipher=function(m,p){var _,y;if(m=m.toLowerCase(),u[m])_=u[m].key,y=u[m].iv;else{if(!f[m])throw new TypeError("invalid suite type");_=8*f[m].key,y=f[m].iv}var h=o(p,!1,_,y);return g(m,h.key,h.iv)},n.createDecipheriv=n.Decipheriv=g,n.listCiphers=n.getCiphers=function(){return Object.keys(f).concat(c.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(r,i,n){var t=r("cipher-base"),c=r("des.js"),u=r("inherits"),f=r("safe-buffer").Buffer,o={"des-ede3-cbc":c.CBC.instantiate(c.EDE),"des-ede3":c.EDE,"des-ede-cbc":c.CBC.instantiate(c.EDE),"des-ede":c.EDE,"des-cbc":c.CBC.instantiate(c.DES),"des-ecb":c.DES};function l(g){t.call(this);var m,p=g.mode.toLowerCase(),_=o[p];m=g.decrypt?"decrypt":"encrypt";var y=g.key;f.isBuffer(y)||(y=f.from(y)),p!=="des-ede"&&p!=="des-ede-cbc"||(y=f.concat([y,y.slice(0,8)]));var h=g.iv;f.isBuffer(h)||(h=f.from(h)),this._des=_.create({key:y,iv:h,type:m})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],i.exports=l,u(l,t),l.prototype._update=function(g){return f.from(this._des.update(g))},l.prototype._final=function(){return f.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(r,i,n){n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}},{}],209:[function(r,i,n){(function(t){(function(){var c=r("bn.js"),u=r("randombytes");function f(l){var g,m=l.modulus.byteLength();do g=new c(u(m));while(g.cmp(l.modulus)>=0||!g.umod(l.prime1)||!g.umod(l.prime2));return g}function o(l,g){var m=(function(k){var T=f(k);return{blinder:T.toRed(c.mont(k.modulus)).redPow(new c(k.publicExponent)).fromRed(),unblinder:T.invm(k.modulus)}})(g),p=g.modulus.byteLength(),_=new c(l).mul(m.blinder).umod(g.modulus),y=_.toRed(c.mont(g.prime1)),h=_.toRed(c.mont(g.prime2)),d=g.coefficient,A=g.prime1,v=g.prime2,w=y.redPow(g.exponent1).fromRed(),x=h.redPow(g.exponent2).fromRed(),C=w.isub(x).imul(d).umod(A).imul(v);return x.iadd(C).imul(m.unblinder).umod(g.modulus).toArrayLike(t,"be",p)}o.getr=f,i.exports=o}).call(this)}).call(this,r("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(r,i,n){i.exports=r("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(r,i,n){i.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(r,i,n){i.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(r,i,n){var t=r("safe-buffer").Buffer,c=r("create-hash"),u=r("readable-stream"),f=r("inherits"),o=r("./sign"),l=r("./verify"),g=r("./algorithms.json");function m(h){u.Writable.call(this);var d=g[h];if(!d)throw new Error("Unknown message digest");this._hashType=d.hash,this._hash=c(d.hash),this._tag=d.id,this._signType=d.sign}function p(h){u.Writable.call(this);var d=g[h];if(!d)throw new Error("Unknown message digest");this._hash=c(d.hash),this._tag=d.id,this._signType=d.sign}function _(h){return new m(h)}function y(h){return new p(h)}Object.keys(g).forEach((function(h){g[h].id=t.from(g[h].id,"hex"),g[h.toLowerCase()]=g[h]})),f(m,u.Writable),m.prototype._write=function(h,d,A){this._hash.update(h),A()},m.prototype.update=function(h,d){return typeof h=="string"&&(h=t.from(h,d)),this._hash.update(h),this},m.prototype.sign=function(h,d){this.end();var A=this._hash.digest(),v=o(A,h,this._hashType,this._signType,this._tag);return d?v.toString(d):v},f(p,u.Writable),p.prototype._write=function(h,d,A){this._hash.update(h),A()},p.prototype.update=function(h,d){return typeof h=="string"&&(h=t.from(h,d)),this._hash.update(h),this},p.prototype.verify=function(h,d,A){typeof d=="string"&&(d=t.from(d,A)),this.end();var v=this._hash.digest();return l(d,v,h,this._signType,this._tag)},i.exports={Sign:_,Verify:y,createSign:_,createVerify:y}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(r,i,n){var t=r("safe-buffer").Buffer,c=r("create-hmac"),u=r("browserify-rsa"),f=r("elliptic").ec,o=r("bn.js"),l=r("parse-asn1"),g=r("./curves.json");function m(h,d,A,v){if((h=t.from(h.toArray())).length<d.byteLength()){var w=t.alloc(d.byteLength()-h.length);h=t.concat([w,h])}var x=A.length,C=(function(S,M){S=(S=p(S,M)).mod(M);var P=t.from(S.toArray());if(P.length<M.byteLength()){var N=t.alloc(M.byteLength()-P.length);P=t.concat([N,P])}return P})(A,d),k=t.alloc(x);k.fill(1);var T=t.alloc(x);return T=c(v,T).update(k).update(t.from([0])).update(h).update(C).digest(),k=c(v,T).update(k).digest(),{k:T=c(v,T).update(k).update(t.from([1])).update(h).update(C).digest(),v:k=c(v,T).update(k).digest()}}function p(h,d){var A=new o(h),v=(h.length<<3)-d.bitLength();return v>0&&A.ishrn(v),A}function _(h,d,A){var v,w;do{for(v=t.alloc(0);8*v.length<h.bitLength();)d.v=c(A,d.k).update(d.v).digest(),v=t.concat([v,d.v]);w=p(v,h),d.k=c(A,d.k).update(d.v).update(t.from([0])).digest(),d.v=c(A,d.k).update(d.v).digest()}while(w.cmp(h)!==-1);return w}function y(h,d,A,v){return h.toRed(o.mont(A)).redPow(d).fromRed().mod(v)}i.exports=function(h,d,A,v,w){var x=l(d);if(x.curve){if(v!=="ecdsa"&&v!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(S,M){var P=g[M.curve.join(".")];if(!P)throw new Error("unknown curve "+M.curve.join("."));var N=new f(P).keyFromPrivate(M.privateKey).sign(S);return t.from(N.toDER())})(h,x)}if(x.type==="dsa"){if(v!=="dsa")throw new Error("wrong private key type");return(function(S,M,P){for(var N,B=M.params.priv_key,O=M.params.p,I=M.params.q,F=M.params.g,L=new o(0),R=p(S,I).mod(I),U=!1,V=m(B,I,S,P);U===!1;)N=_(I,V,P),L=y(F,N,O,I),(U=N.invm(I).imul(R.add(B.mul(L))).mod(I)).cmpn(0)===0&&(U=!1,L=new o(0));return(function(W,Q){W=W.toArray(),Q=Q.toArray(),128&W[0]&&(W=[0].concat(W)),128&Q[0]&&(Q=[0].concat(Q));var le=[48,W.length+Q.length+4,2,W.length];return le=le.concat(W,[2,Q.length],Q),t.from(le)})(L,U)})(h,x,A)}if(v!=="rsa"&&v!=="ecdsa/rsa")throw new Error("wrong private key type");h=t.concat([w,h]);for(var C=x.modulus.byteLength(),k=[0,1];h.length+k.length+1<C;)k.push(255);k.push(0);for(var T=-1;++T<h.length;)k.push(h[T]);return u(k,x)},i.exports.getKey=m,i.exports.makeKey=_},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(r,i,n){var t=r("safe-buffer").Buffer,c=r("bn.js"),u=r("elliptic").ec,f=r("parse-asn1"),o=r("./curves.json");function l(g,m){if(g.cmpn(0)<=0)throw new Error("invalid sig");if(g.cmp(m)>=m)throw new Error("invalid sig")}i.exports=function(g,m,p,_,y){var h=f(p);if(h.type==="ec"){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(k,T,S){var M=o[S.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+S.data.algorithm.curve.join("."));var P=new u(M),N=S.data.subjectPrivateKey.data;return P.verify(T,k,N)})(g,m,h)}if(h.type==="dsa"){if(_!=="dsa")throw new Error("wrong public key type");return(function(k,T,S){var M=S.data.p,P=S.data.q,N=S.data.g,B=S.data.pub_key,O=f.signature.decode(k,"der"),I=O.s,F=O.r;l(I,P),l(F,P);var L=c.mont(M),R=I.invm(P);return N.toRed(L).redPow(new c(T).mul(R).mod(P)).fromRed().mul(B.toRed(L).redPow(F.mul(R).mod(P)).fromRed()).mod(M).mod(P).cmp(F)===0})(g,m,h)}if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong public key type");m=t.concat([y,m]);for(var d=h.modulus.byteLength(),A=[1],v=0;m.length+A.length+2<d;)A.push(255),v++;A.push(0);for(var w=-1;++w<m.length;)A.push(m[w]);A=t.from(A);var x=c.mont(h.modulus);g=(g=new c(g).toRed(x)).redPow(new c(h.publicExponent)),g=t.from(g.fromRed().toArray());var C=v<8?1:0;for(d=Math.min(g.length,A.length),g.length!==A.length&&(C=1),w=-1;++w<d;)C|=g[w]^A[w];return C===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(r,i,n){},{}],217:[function(r,i,n){var t=r("buffer"),c=t.Buffer;function u(o,l){for(var g in o)l[g]=o[g]}function f(o,l,g){return c(o,l,g)}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?i.exports=t:(u(t,n),n.Buffer=f),u(c,f),f.from=function(o,l,g){if(typeof o=="number")throw new TypeError("Argument must not be a number");return c(o,l,g)},f.alloc=function(o,l,g){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=c(o);return l!==void 0?typeof g=="string"?m.fill(l,g):m.fill(l):m.fill(0),m},f.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return c(o)},f.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(o)}},{buffer:220}],218:[function(r,i,n){var t=r("safe-buffer").Buffer,c=t.isEncoding||function(h){switch((h=""+h)&&h.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 u(h){var d;switch(this.encoding=(function(A){var v=(function(w){if(!w)return"utf8";for(var x;;)switch(w){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 w;default:if(x)return;w=(""+w).toLowerCase(),x=!0}})(A);if(typeof v!="string"&&(t.isEncoding===c||!c(A)))throw new Error("Unknown encoding: "+A);return v||A})(h),this.encoding){case"utf16le":this.text=l,this.end=g,d=4;break;case"utf8":this.fillLast=o,d=4;break;case"base64":this.text=m,this.end=p,d=3;break;default:return this.write=_,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(d)}function f(h){return h<=127?0:h>>5==6?2:h>>4==14?3:h>>3==30?4:h>>6==2?-1:-2}function o(h){var d=this.lastTotal-this.lastNeed,A=(function(v,w,x){if((192&w[0])!=128)return v.lastNeed=0,"�";if(v.lastNeed>1&&w.length>1){if((192&w[1])!=128)return v.lastNeed=1,"�";if(v.lastNeed>2&&w.length>2&&(192&w[2])!=128)return v.lastNeed=2,"�"}})(this,h);return A!==void 0?A:this.lastNeed<=h.length?(h.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(h.copy(this.lastChar,d,0,h.length),void(this.lastNeed-=h.length))}function l(h,d){if((h.length-d)%2==0){var A=h.toString("utf16le",d);if(A){var v=A.charCodeAt(A.length-1);if(v>=55296&&v<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",d,h.length-1)}function g(h){var d=h&&h.length?this.write(h):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,A)}return d}function m(h,d){var A=(h.length-d)%3;return A===0?h.toString("base64",d):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",d,h.length-A))}function p(h){var d=h&&h.length?this.write(h):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function _(h){return h.toString(this.encoding)}function y(h){return h&&h.length?this.write(h):""}n.StringDecoder=u,u.prototype.write=function(h){if(h.length===0)return"";var d,A;if(this.lastNeed){if((d=this.fillLast(h))===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<h.length?d?d+this.text(h,A):this.text(h,A):d||""},u.prototype.end=function(h){var d=h&&h.length?this.write(h):"";return this.lastNeed?d+"�":d},u.prototype.text=function(h,d){var A=(function(w,x,C){var k=x.length-1;if(k<C)return 0;var T=f(x[k]);return T>=0?(T>0&&(w.lastNeed=T-1),T):--k<C||T===-2?0:(T=f(x[k]))>=0?(T>0&&(w.lastNeed=T-2),T):--k<C||T===-2?0:(T=f(x[k]))>=0?(T>0&&(T===2?T=0:w.lastNeed=T-3),T):0})(this,h,d);if(!this.lastNeed)return h.toString("utf8",d);this.lastTotal=A;var v=h.length-(A-this.lastNeed);return h.copy(this.lastChar,0,v),h.toString("utf8",d,v)},u.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length}},{"safe-buffer":217}],219:[function(r,i,n){(function(t){(function(){i.exports=function(c,u){for(var f=Math.min(c.length,u.length),o=new t(f),l=0;l<f;++l)o[l]=c[l]^u[l];return o}}).call(this)}).call(this,r("buffer").Buffer)},{buffer:220}],220:[function(r,i,n){(function(t){(function(){var c=r("base64-js"),u=r("ieee754");n.Buffer=o,n.SlowBuffer=function(Y){return+Y!=Y&&(Y=0),o.alloc(+Y)},n.INSPECT_MAX_BYTES=50;function f(Y){if(Y>2147483647)throw new RangeError('The value "'+Y+'" is invalid for option "size"');var K=new Uint8Array(Y);return K.__proto__=o.prototype,K}function o(Y,K,oe){if(typeof Y=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(Y)}return l(Y,K,oe)}function l(Y,K,oe){if(typeof Y=="string")return(function(ge,ue){if(typeof ue=="string"&&ue!==""||(ue="utf8"),!o.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue);var Te=0|y(ge,ue),Ee=f(Te),ye=Ee.write(ge,ue);return ye!==Te&&(Ee=Ee.slice(0,ye)),Ee})(Y,K);if(ArrayBuffer.isView(Y))return p(Y);if(Y==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(ie(Y,ArrayBuffer)||Y&&ie(Y.buffer,ArrayBuffer))return(function(ge,ue,Te){if(ue<0||ge.byteLength<ue)throw new RangeError('"offset" is outside of buffer bounds');if(ge.byteLength<ue+(Te||0))throw new RangeError('"length" is outside of buffer bounds');var Ee;return Ee=ue===void 0&&Te===void 0?new Uint8Array(ge):Te===void 0?new Uint8Array(ge,ue):new Uint8Array(ge,ue,Te),Ee.__proto__=o.prototype,Ee})(Y,K,oe);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var pe=Y.valueOf&&Y.valueOf();if(pe!=null&&pe!==Y)return o.from(pe,K,oe);var ve=(function(ge){if(o.isBuffer(ge)){var ue=0|_(ge.length),Te=f(ue);return Te.length===0||ge.copy(Te,0,0,ue),Te}if(ge.length!==void 0)return typeof ge.length!="number"||he(ge.length)?f(0):p(ge);if(ge.type==="Buffer"&&Array.isArray(ge.data))return p(ge.data)})(Y);if(ve)return ve;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return o.from(Y[Symbol.toPrimitive]("string"),K,oe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}function g(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function m(Y){return g(Y),f(Y<0?0:0|_(Y))}function p(Y){for(var K=Y.length<0?0:0|_(Y.length),oe=f(K),pe=0;pe<K;pe+=1)oe[pe]=255&Y[pe];return oe}function _(Y){if(Y>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|Y}function y(Y,K){if(o.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||ie(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);var oe=Y.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&oe===0)return 0;for(var ve=!1;;)switch(K){case"ascii":case"latin1":case"binary":return oe;case"utf8":case"utf-8":return le(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*oe;case"hex":return oe>>>1;case"base64":return G(Y).length;default:if(ve)return pe?-1:le(Y).length;K=(""+K).toLowerCase(),ve=!0}}function h(Y,K,oe){var pe=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((oe===void 0||oe>this.length)&&(oe=this.length),oe<=0)||(oe>>>=0)<=(K>>>=0))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return O(this,K,oe);case"utf8":case"utf-8":return P(this,K,oe);case"ascii":return N(this,K,oe);case"latin1":case"binary":return B(this,K,oe);case"base64":return M(this,K,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,K,oe);default:if(pe)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),pe=!0}}function d(Y,K,oe){var pe=Y[K];Y[K]=Y[oe],Y[oe]=pe}function A(Y,K,oe,pe,ve){if(Y.length===0)return-1;if(typeof oe=="string"?(pe=oe,oe=0):oe>2147483647?oe=2147483647:oe<-2147483648&&(oe=-2147483648),he(oe=+oe)&&(oe=ve?0:Y.length-1),oe<0&&(oe=Y.length+oe),oe>=Y.length){if(ve)return-1;oe=Y.length-1}else if(oe<0){if(!ve)return-1;oe=0}if(typeof K=="string"&&(K=o.from(K,pe)),o.isBuffer(K))return K.length===0?-1:v(Y,K,oe,pe,ve);if(typeof K=="number")return K&=255,typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(Y,K,oe):Uint8Array.prototype.lastIndexOf.call(Y,K,oe):v(Y,[K],oe,pe,ve);throw new TypeError("val must be string, number or Buffer")}function v(Y,K,oe,pe,ve){var ge,ue=1,Te=Y.length,Ee=K.length;if(pe!==void 0&&((pe=String(pe).toLowerCase())==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(Y.length<2||K.length<2)return-1;ue=2,Te/=2,Ee/=2,oe/=2}function ye(ke,Pe){return ue===1?ke[Pe]:ke.readUInt16BE(Pe*ue)}if(ve){var Se=-1;for(ge=oe;ge<Te;ge++)if(ye(Y,ge)===ye(K,Se===-1?0:ge-Se)){if(Se===-1&&(Se=ge),ge-Se+1===Ee)return Se*ue}else Se!==-1&&(ge-=ge-Se),Se=-1}else for(oe+Ee>Te&&(oe=Te-Ee),ge=oe;ge>=0;ge--){for(var Fe=!0,Ve=0;Ve<Ee;Ve++)if(ye(Y,ge+Ve)!==ye(K,Ve)){Fe=!1;break}if(Fe)return ge}return-1}function w(Y,K,oe,pe){oe=Number(oe)||0;var ve=Y.length-oe;pe?(pe=Number(pe))>ve&&(pe=ve):pe=ve;var ge=K.length;pe>ge/2&&(pe=ge/2);for(var ue=0;ue<pe;++ue){var Te=parseInt(K.substr(2*ue,2),16);if(he(Te))return ue;Y[oe+ue]=Te}return ue}function x(Y,K,oe,pe){return fe(le(K,Y.length-oe),Y,oe,pe)}function C(Y,K,oe,pe){return fe((function(ve){for(var ge=[],ue=0;ue<ve.length;++ue)ge.push(255&ve.charCodeAt(ue));return ge})(K),Y,oe,pe)}function k(Y,K,oe,pe){return C(Y,K,oe,pe)}function T(Y,K,oe,pe){return fe(G(K),Y,oe,pe)}function S(Y,K,oe,pe){return fe((function(ve,ge){for(var ue,Te,Ee,ye=[],Se=0;Se<ve.length&&!((ge-=2)<0);++Se)ue=ve.charCodeAt(Se),Te=ue>>8,Ee=ue%256,ye.push(Ee),ye.push(Te);return ye})(K,Y.length-oe),Y,oe,pe)}function M(Y,K,oe){return K===0&&oe===Y.length?c.fromByteArray(Y):c.fromByteArray(Y.slice(K,oe))}function P(Y,K,oe){oe=Math.min(Y.length,oe);for(var pe=[],ve=K;ve<oe;){var ge,ue,Te,Ee,ye=Y[ve],Se=null,Fe=ye>239?4:ye>223?3:ye>191?2:1;if(ve+Fe<=oe)switch(Fe){case 1:ye<128&&(Se=ye);break;case 2:(192&(ge=Y[ve+1]))==128&&(Ee=(31&ye)<<6|63&ge)>127&&(Se=Ee);break;case 3:ge=Y[ve+1],ue=Y[ve+2],(192&ge)==128&&(192&ue)==128&&(Ee=(15&ye)<<12|(63&ge)<<6|63&ue)>2047&&(Ee<55296||Ee>57343)&&(Se=Ee);break;case 4:ge=Y[ve+1],ue=Y[ve+2],Te=Y[ve+3],(192&ge)==128&&(192&ue)==128&&(192&Te)==128&&(Ee=(15&ye)<<18|(63&ge)<<12|(63&ue)<<6|63&Te)>65535&&Ee<1114112&&(Se=Ee)}Se===null?(Se=65533,Fe=1):Se>65535&&(Se-=65536,pe.push(Se>>>10&1023|55296),Se=56320|1023&Se),pe.push(Se),ve+=Fe}return(function(Ve){var ke=Ve.length;if(ke<=4096)return String.fromCharCode.apply(String,Ve);for(var Pe="",Re=0;Re<ke;)Pe+=String.fromCharCode.apply(String,Ve.slice(Re,Re+=4096));return Pe})(pe)}n.kMaxLength=2147483647,o.TYPED_ARRAY_SUPPORT=(function(){try{var Y=new Uint8Array(1);return Y.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Y.foo()===42}catch{return!1}})(),o.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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(Y,K,oe){return l(Y,K,oe)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(Y,K,oe){return(function(pe,ve,ge){return g(pe),pe<=0?f(pe):ve!==void 0?typeof ge=="string"?f(pe).fill(ve,ge):f(pe).fill(ve):f(pe)})(Y,K,oe)},o.allocUnsafe=function(Y){return m(Y)},o.allocUnsafeSlow=function(Y){return m(Y)},o.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==o.prototype},o.compare=function(Y,K){if(ie(Y,Uint8Array)&&(Y=o.from(Y,Y.offset,Y.byteLength)),ie(K,Uint8Array)&&(K=o.from(K,K.offset,K.byteLength)),!o.isBuffer(Y)||!o.isBuffer(K))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===K)return 0;for(var oe=Y.length,pe=K.length,ve=0,ge=Math.min(oe,pe);ve<ge;++ve)if(Y[ve]!==K[ve]){oe=Y[ve],pe=K[ve];break}return oe<pe?-1:pe<oe?1:0},o.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(Y,K){if(!Array.isArray(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return o.alloc(0);var oe;if(K===void 0)for(K=0,oe=0;oe<Y.length;++oe)K+=Y[oe].length;var pe=o.allocUnsafe(K),ve=0;for(oe=0;oe<Y.length;++oe){var ge=Y[oe];if(ie(ge,Uint8Array)&&(ge=o.from(ge)),!o.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(pe,ve),ve+=ge.length}return pe},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var Y=this.length;if(Y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var K=0;K<Y;K+=2)d(this,K,K+1);return this},o.prototype.swap32=function(){var Y=this.length;if(Y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var K=0;K<Y;K+=4)d(this,K,K+3),d(this,K+1,K+2);return this},o.prototype.swap64=function(){var Y=this.length;if(Y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var K=0;K<Y;K+=8)d(this,K,K+7),d(this,K+1,K+6),d(this,K+2,K+5),d(this,K+3,K+4);return this},o.prototype.toString=function(){var Y=this.length;return Y===0?"":arguments.length===0?P(this,0,Y):h.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(Y){if(!o.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y||o.compare(this,Y)===0},o.prototype.inspect=function(){var Y="",K=n.INSPECT_MAX_BYTES;return Y=this.toString("hex",0,K).replace(/(.{2})/g,"$1 ").trim(),this.length>K&&(Y+=" ... "),"<Buffer "+Y+">"},o.prototype.compare=function(Y,K,oe,pe,ve){if(ie(Y,Uint8Array)&&(Y=o.from(Y,Y.offset,Y.byteLength)),!o.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(K===void 0&&(K=0),oe===void 0&&(oe=Y?Y.length:0),pe===void 0&&(pe=0),ve===void 0&&(ve=this.length),K<0||oe>Y.length||pe<0||ve>this.length)throw new RangeError("out of range index");if(pe>=ve&&K>=oe)return 0;if(pe>=ve)return-1;if(K>=oe)return 1;if(this===Y)return 0;for(var ge=(ve>>>=0)-(pe>>>=0),ue=(oe>>>=0)-(K>>>=0),Te=Math.min(ge,ue),Ee=this.slice(pe,ve),ye=Y.slice(K,oe),Se=0;Se<Te;++Se)if(Ee[Se]!==ye[Se]){ge=Ee[Se],ue=ye[Se];break}return ge<ue?-1:ue<ge?1:0},o.prototype.includes=function(Y,K,oe){return this.indexOf(Y,K,oe)!==-1},o.prototype.indexOf=function(Y,K,oe){return A(this,Y,K,oe,!0)},o.prototype.lastIndexOf=function(Y,K,oe){return A(this,Y,K,oe,!1)},o.prototype.write=function(Y,K,oe,pe){if(K===void 0)pe="utf8",oe=this.length,K=0;else if(oe===void 0&&typeof K=="string")pe=K,oe=this.length,K=0;else{if(!isFinite(K))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");K>>>=0,isFinite(oe)?(oe>>>=0,pe===void 0&&(pe="utf8")):(pe=oe,oe=void 0)}var ve=this.length-K;if((oe===void 0||oe>ve)&&(oe=ve),Y.length>0&&(oe<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");for(var ge=!1;;)switch(pe){case"hex":return w(this,Y,K,oe);case"utf8":case"utf-8":return x(this,Y,K,oe);case"ascii":return C(this,Y,K,oe);case"latin1":case"binary":return k(this,Y,K,oe);case"base64":return T(this,Y,K,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,Y,K,oe);default:if(ge)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),ge=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(Y,K,oe){var pe="";oe=Math.min(Y.length,oe);for(var ve=K;ve<oe;++ve)pe+=String.fromCharCode(127&Y[ve]);return pe}function B(Y,K,oe){var pe="";oe=Math.min(Y.length,oe);for(var ve=K;ve<oe;++ve)pe+=String.fromCharCode(Y[ve]);return pe}function O(Y,K,oe){var pe=Y.length;(!K||K<0)&&(K=0),(!oe||oe<0||oe>pe)&&(oe=pe);for(var ve="",ge=K;ge<oe;++ge)ve+=Q(Y[ge]);return ve}function I(Y,K,oe){for(var pe=Y.slice(K,oe),ve="",ge=0;ge<pe.length;ge+=2)ve+=String.fromCharCode(pe[ge]+256*pe[ge+1]);return ve}function F(Y,K,oe){if(Y%1!=0||Y<0)throw new RangeError("offset is not uint");if(Y+K>oe)throw new RangeError("Trying to access beyond buffer length")}function L(Y,K,oe,pe,ve,ge){if(!o.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>ve||K<ge)throw new RangeError('"value" argument is out of bounds');if(oe+pe>Y.length)throw new RangeError("Index out of range")}function R(Y,K,oe,pe,ve,ge){if(oe+pe>Y.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("Index out of range")}function U(Y,K,oe,pe,ve){return K=+K,oe>>>=0,ve||R(Y,0,oe,4),u.write(Y,K,oe,pe,23,4),oe+4}function V(Y,K,oe,pe,ve){return K=+K,oe>>>=0,ve||R(Y,0,oe,8),u.write(Y,K,oe,pe,52,8),oe+8}o.prototype.slice=function(Y,K){var oe=this.length;(Y=~~Y)<0?(Y+=oe)<0&&(Y=0):Y>oe&&(Y=oe),(K=K===void 0?oe:~~K)<0?(K+=oe)<0&&(K=0):K>oe&&(K=oe),K<Y&&(K=Y);var pe=this.subarray(Y,K);return pe.__proto__=o.prototype,pe},o.prototype.readUIntLE=function(Y,K,oe){Y>>>=0,K>>>=0,oe||F(Y,K,this.length);for(var pe=this[Y],ve=1,ge=0;++ge<K&&(ve*=256);)pe+=this[Y+ge]*ve;return pe},o.prototype.readUIntBE=function(Y,K,oe){Y>>>=0,K>>>=0,oe||F(Y,K,this.length);for(var pe=this[Y+--K],ve=1;K>0&&(ve*=256);)pe+=this[Y+--K]*ve;return pe},o.prototype.readUInt8=function(Y,K){return Y>>>=0,K||F(Y,1,this.length),this[Y]},o.prototype.readUInt16LE=function(Y,K){return Y>>>=0,K||F(Y,2,this.length),this[Y]|this[Y+1]<<8},o.prototype.readUInt16BE=function(Y,K){return Y>>>=0,K||F(Y,2,this.length),this[Y]<<8|this[Y+1]},o.prototype.readUInt32LE=function(Y,K){return Y>>>=0,K||F(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+16777216*this[Y+3]},o.prototype.readUInt32BE=function(Y,K){return Y>>>=0,K||F(Y,4,this.length),16777216*this[Y]+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},o.prototype.readIntLE=function(Y,K,oe){Y>>>=0,K>>>=0,oe||F(Y,K,this.length);for(var pe=this[Y],ve=1,ge=0;++ge<K&&(ve*=256);)pe+=this[Y+ge]*ve;return pe>=(ve*=128)&&(pe-=Math.pow(2,8*K)),pe},o.prototype.readIntBE=function(Y,K,oe){Y>>>=0,K>>>=0,oe||F(Y,K,this.length);for(var pe=K,ve=1,ge=this[Y+--pe];pe>0&&(ve*=256);)ge+=this[Y+--pe]*ve;return ge>=(ve*=128)&&(ge-=Math.pow(2,8*K)),ge},o.prototype.readInt8=function(Y,K){return Y>>>=0,K||F(Y,1,this.length),128&this[Y]?-1*(255-this[Y]+1):this[Y]},o.prototype.readInt16LE=function(Y,K){Y>>>=0,K||F(Y,2,this.length);var oe=this[Y]|this[Y+1]<<8;return 32768&oe?4294901760|oe:oe},o.prototype.readInt16BE=function(Y,K){Y>>>=0,K||F(Y,2,this.length);var oe=this[Y+1]|this[Y]<<8;return 32768&oe?4294901760|oe:oe},o.prototype.readInt32LE=function(Y,K){return Y>>>=0,K||F(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},o.prototype.readInt32BE=function(Y,K){return Y>>>=0,K||F(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},o.prototype.readFloatLE=function(Y,K){return Y>>>=0,K||F(Y,4,this.length),u.read(this,Y,!0,23,4)},o.prototype.readFloatBE=function(Y,K){return Y>>>=0,K||F(Y,4,this.length),u.read(this,Y,!1,23,4)},o.prototype.readDoubleLE=function(Y,K){return Y>>>=0,K||F(Y,8,this.length),u.read(this,Y,!0,52,8)},o.prototype.readDoubleBE=function(Y,K){return Y>>>=0,K||F(Y,8,this.length),u.read(this,Y,!1,52,8)},o.prototype.writeUIntLE=function(Y,K,oe,pe){Y=+Y,K>>>=0,oe>>>=0,pe||L(this,Y,K,oe,Math.pow(2,8*oe)-1,0);var ve=1,ge=0;for(this[K]=255&Y;++ge<oe&&(ve*=256);)this[K+ge]=Y/ve&255;return K+oe},o.prototype.writeUIntBE=function(Y,K,oe,pe){Y=+Y,K>>>=0,oe>>>=0,pe||L(this,Y,K,oe,Math.pow(2,8*oe)-1,0);var ve=oe-1,ge=1;for(this[K+ve]=255&Y;--ve>=0&&(ge*=256);)this[K+ve]=Y/ge&255;return K+oe},o.prototype.writeUInt8=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,1,255,0),this[K]=255&Y,K+1},o.prototype.writeUInt16LE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,2,65535,0),this[K]=255&Y,this[K+1]=Y>>>8,K+2},o.prototype.writeUInt16BE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,2,65535,0),this[K]=Y>>>8,this[K+1]=255&Y,K+2},o.prototype.writeUInt32LE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,4,4294967295,0),this[K+3]=Y>>>24,this[K+2]=Y>>>16,this[K+1]=Y>>>8,this[K]=255&Y,K+4},o.prototype.writeUInt32BE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,4,4294967295,0),this[K]=Y>>>24,this[K+1]=Y>>>16,this[K+2]=Y>>>8,this[K+3]=255&Y,K+4},o.prototype.writeIntLE=function(Y,K,oe,pe){if(Y=+Y,K>>>=0,!pe){var ve=Math.pow(2,8*oe-1);L(this,Y,K,oe,ve-1,-ve)}var ge=0,ue=1,Te=0;for(this[K]=255&Y;++ge<oe&&(ue*=256);)Y<0&&Te===0&&this[K+ge-1]!==0&&(Te=1),this[K+ge]=(Y/ue>>0)-Te&255;return K+oe},o.prototype.writeIntBE=function(Y,K,oe,pe){if(Y=+Y,K>>>=0,!pe){var ve=Math.pow(2,8*oe-1);L(this,Y,K,oe,ve-1,-ve)}var ge=oe-1,ue=1,Te=0;for(this[K+ge]=255&Y;--ge>=0&&(ue*=256);)Y<0&&Te===0&&this[K+ge+1]!==0&&(Te=1),this[K+ge]=(Y/ue>>0)-Te&255;return K+oe},o.prototype.writeInt8=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,1,127,-128),Y<0&&(Y=255+Y+1),this[K]=255&Y,K+1},o.prototype.writeInt16LE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,2,32767,-32768),this[K]=255&Y,this[K+1]=Y>>>8,K+2},o.prototype.writeInt16BE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,2,32767,-32768),this[K]=Y>>>8,this[K+1]=255&Y,K+2},o.prototype.writeInt32LE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,4,2147483647,-2147483648),this[K]=255&Y,this[K+1]=Y>>>8,this[K+2]=Y>>>16,this[K+3]=Y>>>24,K+4},o.prototype.writeInt32BE=function(Y,K,oe){return Y=+Y,K>>>=0,oe||L(this,Y,K,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[K]=Y>>>24,this[K+1]=Y>>>16,this[K+2]=Y>>>8,this[K+3]=255&Y,K+4},o.prototype.writeFloatLE=function(Y,K,oe){return U(this,Y,K,!0,oe)},o.prototype.writeFloatBE=function(Y,K,oe){return U(this,Y,K,!1,oe)},o.prototype.writeDoubleLE=function(Y,K,oe){return V(this,Y,K,!0,oe)},o.prototype.writeDoubleBE=function(Y,K,oe){return V(this,Y,K,!1,oe)},o.prototype.copy=function(Y,K,oe,pe){if(!o.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),pe||pe===0||(pe=this.length),K>=Y.length&&(K=Y.length),K||(K=0),pe>0&&pe<oe&&(pe=oe),pe===oe||Y.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),Y.length-K<pe-oe&&(pe=Y.length-K+oe);var ve=pe-oe;if(this===Y&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(K,oe,pe);else if(this===Y&&oe<K&&K<pe)for(var ge=ve-1;ge>=0;--ge)Y[ge+K]=this[ge+oe];else Uint8Array.prototype.set.call(Y,this.subarray(oe,pe),K);return ve},o.prototype.fill=function(Y,K,oe,pe){if(typeof Y=="string"){if(typeof K=="string"?(pe=K,K=0,oe=this.length):typeof oe=="string"&&(pe=oe,oe=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!o.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(Y.length===1){var ve=Y.charCodeAt(0);(pe==="utf8"&&ve<128||pe==="latin1")&&(Y=ve)}}else typeof Y=="number"&&(Y&=255);if(K<0||this.length<K||this.length<oe)throw new RangeError("Out of range index");if(oe<=K)return this;var ge;if(K>>>=0,oe=oe===void 0?this.length:oe>>>0,Y||(Y=0),typeof Y=="number")for(ge=K;ge<oe;++ge)this[ge]=Y;else{var ue=o.isBuffer(Y)?Y:o.from(Y,pe),Te=ue.length;if(Te===0)throw new TypeError('The value "'+Y+'" is invalid for argument "value"');for(ge=0;ge<oe-K;++ge)this[ge+K]=ue[ge%Te]}return this};var W=/[^+/0-9A-Za-z-_]/g;function Q(Y){return Y<16?"0"+Y.toString(16):Y.toString(16)}function le(Y,K){var oe;K=K||1/0;for(var pe=Y.length,ve=null,ge=[],ue=0;ue<pe;++ue){if((oe=Y.charCodeAt(ue))>55295&&oe<57344){if(!ve){if(oe>56319){(K-=3)>-1&&ge.push(239,191,189);continue}if(ue+1===pe){(K-=3)>-1&&ge.push(239,191,189);continue}ve=oe;continue}if(oe<56320){(K-=3)>-1&&ge.push(239,191,189),ve=oe;continue}oe=65536+(ve-55296<<10|oe-56320)}else ve&&(K-=3)>-1&&ge.push(239,191,189);if(ve=null,oe<128){if((K-=1)<0)break;ge.push(oe)}else if(oe<2048){if((K-=2)<0)break;ge.push(oe>>6|192,63&oe|128)}else if(oe<65536){if((K-=3)<0)break;ge.push(oe>>12|224,oe>>6&63|128,63&oe|128)}else{if(!(oe<1114112))throw new Error("Invalid code point");if((K-=4)<0)break;ge.push(oe>>18|240,oe>>12&63|128,oe>>6&63|128,63&oe|128)}}return ge}function G(Y){return c.toByteArray((function(K){if((K=(K=K.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;K.length%4!=0;)K+="=";return K})(Y))}function fe(Y,K,oe,pe){for(var ve=0;ve<pe&&!(ve+oe>=K.length||ve>=Y.length);++ve)K[ve+oe]=Y[ve];return ve}function ie(Y,K){return Y instanceof K||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===K.name}function he(Y){return Y!=Y}}).call(this)}).call(this,r("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(r,i,n){var t=r("safe-buffer").Buffer,c=r("stream").Transform,u=r("string_decoder").StringDecoder;function f(o){c.call(this),this.hashMode=typeof o=="string",this.hashMode?this[o]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r("inherits")(f,c),f.prototype.update=function(o,l,g){typeof o=="string"&&(o=t.from(o,l));var m=this._update(o);return this.hashMode?this:(g&&(m=this._toString(m,g)),m)},f.prototype.setAutoPadding=function(){},f.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},f.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},f.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},f.prototype._transform=function(o,l,g){var m;try{this.hashMode?this._update(o):this.push(this._update(o))}catch(p){m=p}finally{g(m)}},f.prototype._flush=function(o){var l;try{this.push(this.__final())}catch(g){l=g}o(l)},f.prototype._finalOrDigest=function(o){var l=this.__final()||t.alloc(0);return o&&(l=this._toString(l,o,!0)),l},f.prototype._toString=function(o,l,g){if(this._decoder||(this._decoder=new u(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var m=this._decoder.write(o);return g&&(m+=this._decoder.end()),m},i.exports=f},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(r,i,n){var t=r("../internals/is-callable"),c=r("../internals/try-to-string"),u=TypeError;i.exports=function(f){if(t(f))return f;throw new u(c(f)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(r,i,n){var t=r("../internals/is-constructor"),c=r("../internals/try-to-string"),u=TypeError;i.exports=function(f){if(t(f))return f;throw new u(c(f)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(r,i,n){var t=r("../internals/is-callable"),c=String,u=TypeError;i.exports=function(f){if(typeof f=="object"||t(f))return f;throw new u("Can't set "+c(f)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(r,i,n){var t=r("../internals/well-known-symbol"),c=r("../internals/object-create"),u=r("../internals/object-define-property").f,f=t("unscopables"),o=Array.prototype;o[f]===void 0&&u(o,f,{configurable:!0,value:c(null)}),i.exports=function(l){o[f][l]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(r,i,n){var t=r("../internals/object-is-prototype-of"),c=TypeError;i.exports=function(u,f){if(t(f,u))return u;throw new c("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(r,i,n){var t=r("../internals/is-object"),c=String,u=TypeError;i.exports=function(f){if(t(f))return f;throw new u(c(f)+" is not an object")}},{"../internals/is-object":289}],228:[function(r,i,n){var t=r("../internals/to-indexed-object"),c=r("../internals/to-absolute-index"),u=r("../internals/length-of-array-like"),f=function(o){return function(l,g,m){var p,_=t(l),y=u(_),h=c(m,y);if(o&&g!=g){for(;y>h;)if((p=_[h++])!=p)return!0}else for(;y>h;h++)if((o||h in _)&&_[h]===g)return o||h||0;return!o&&-1}};i.exports={includes:f(!0),indexOf:f(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(r,i,n){var t=r("../internals/function-bind-context"),c=r("../internals/function-uncurry-this"),u=r("../internals/indexed-object"),f=r("../internals/to-object"),o=r("../internals/length-of-array-like"),l=r("../internals/array-species-create"),g=c([].push),m=function(p){var _=p===1,y=p===2,h=p===3,d=p===4,A=p===6,v=p===7,w=p===5||A;return function(x,C,k,T){for(var S,M,P=f(x),N=u(P),B=t(C,k),O=o(N),I=0,F=T||l,L=_?F(x,O):y||v?F(x,0):void 0;O>I;I++)if((w||I in N)&&(M=B(S=N[I],I,P),p))if(_)L[I]=M;else if(M)switch(p){case 3:return!0;case 5:return S;case 6:return I;case 2:g(L,S)}else switch(p){case 4:return!1;case 7:g(L,S)}return A?-1:h||d?d:L}};i.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6),filterReject:m(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(r,i,n){var t=r("../internals/to-absolute-index"),c=r("../internals/length-of-array-like"),u=r("../internals/create-property"),f=Array,o=Math.max;i.exports=function(l,g,m){for(var p=c(l),_=t(g,p),y=t(m===void 0?p:m,p),h=f(o(y-_,0)),d=0;_<y;_++,d++)u(h,d,l[_]);return h.length=d,h}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(r,i,n){var t=r("../internals/function-uncurry-this");i.exports=t([].slice)},{"../internals/function-uncurry-this":268}],232:[function(r,i,n){var t=r("../internals/is-array"),c=r("../internals/is-constructor"),u=r("../internals/is-object"),f=r("../internals/well-known-symbol")("species"),o=Array;i.exports=function(l){var g;return t(l)&&(g=l.constructor,(c(g)&&(g===o||t(g.prototype))||u(g)&&(g=g[f])===null)&&(g=void 0)),g===void 0?o:g}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(r,i,n){var t=r("../internals/array-species-constructor");i.exports=function(c,u){return new(t(c))(u===0?0:u)}},{"../internals/array-species-constructor":232}],234:[function(r,i,n){var t=r("../internals/well-known-symbol")("iterator"),c=!1;try{var u=0,f={next:function(){return{done:!!u++}},return:function(){c=!0}};f[t]=function(){return this},Array.from(f,(function(){throw 2}))}catch{}i.exports=function(o,l){try{if(!l&&!c)return!1}catch{return!1}var g=!1;try{var m={};m[t]=function(){return{next:function(){return{done:g=!0}}}},o(m)}catch{}return g}},{"../internals/well-known-symbol":357}],235:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=t({}.toString),u=t("".slice);i.exports=function(f){return u(c(f),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(r,i,n){var t=r("../internals/to-string-tag-support"),c=r("../internals/is-callable"),u=r("../internals/classof-raw"),f=r("../internals/well-known-symbol")("toStringTag"),o=Object,l=u((function(){return arguments})())==="Arguments";i.exports=t?u:function(g){var m,p,_;return g===void 0?"Undefined":g===null?"Null":typeof(p=(function(y,h){try{return y[h]}catch{}})(m=o(g),f))=="string"?p:l?u(m):(_=u(m))==="Object"&&c(m.callee)?"Arguments":_}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(r,i,n){var t=r("../internals/has-own-property"),c=r("../internals/own-keys"),u=r("../internals/object-get-own-property-descriptor"),f=r("../internals/object-define-property");i.exports=function(o,l,g){for(var m=c(l),p=f.f,_=u.f,y=0;y<m.length;y++){var h=m[y];t(o,h)||g&&t(g,h)||p(o,h,_(l,h))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(r,i,n){var t=r("../internals/well-known-symbol")("match");i.exports=function(c){var u=/./;try{"/./"[c](u)}catch{try{return u[t]=!1,"/./"[c](u)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(r,i,n){var t=r("../internals/fails");i.exports=!t((function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype}))},{"../internals/fails":260}],240:[function(r,i,n){i.exports=function(t,c){return{value:t,done:c}}},{}],241:[function(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/object-define-property"),u=r("../internals/create-property-descriptor");i.exports=t?function(f,o,l){return c.f(f,o,u(1,l))}:function(f,o,l){return f[o]=l,f}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(r,i,n){i.exports=function(t,c){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:c}}},{}],243:[function(r,i,n){var t=r("../internals/to-property-key"),c=r("../internals/object-define-property"),u=r("../internals/create-property-descriptor");i.exports=function(f,o,l){var g=t(o);g in f?c.f(f,g,u(0,l)):f[g]=l}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(r,i,n){var t=r("../internals/make-built-in"),c=r("../internals/object-define-property");i.exports=function(u,f,o){return o.get&&t(o.get,f,{getter:!0}),o.set&&t(o.set,f,{setter:!0}),c.f(u,f,o)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(r,i,n){var t=r("../internals/is-callable"),c=r("../internals/object-define-property"),u=r("../internals/make-built-in"),f=r("../internals/define-global-property");i.exports=function(o,l,g,m){m||(m={});var p=m.enumerable,_=m.name!==void 0?m.name:l;if(t(g)&&u(g,_,m),m.global)p?o[l]=g:f(l,g);else{try{m.unsafe?o[l]&&(p=!0):delete o[l]}catch{}p?o[l]=g:c.f(o,l,{value:g,enumerable:!1,configurable:!m.nonConfigurable,writable:!m.nonWritable})}return o}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(r,i,n){var t=r("../internals/global"),c=Object.defineProperty;i.exports=function(u,f){try{c(t,u,{value:f,configurable:!0,writable:!0})}catch{t[u]=f}return f}},{"../internals/global":274}],247:[function(r,i,n){var t=r("../internals/fails");i.exports=!t((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(r,i,n){var t=typeof document=="object"&&document.all,c=t===void 0&&t!==void 0;i.exports={all:t,IS_HTMLDDA:c}},{}],249:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/is-object"),u=t.document,f=c(u)&&c(u.createElement);i.exports=function(o){return f?u.createElement(o):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(r,i,n){var t=r("../internals/engine-is-deno"),c=r("../internals/engine-is-node");i.exports=!t&&!c&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(r,i,n){i.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(r,i,n){var t=r("../internals/engine-user-agent");i.exports=/ipad|iphone|ipod/i.test(t)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(r,i,n){var t=r("../internals/engine-user-agent");i.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(t)},{"../internals/engine-user-agent":256}],254:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/classof-raw");i.exports=c(t.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(r,i,n){var t=r("../internals/engine-user-agent");i.exports=/web0s(?!.*chrome)/i.test(t)},{"../internals/engine-user-agent":256}],256:[function(r,i,n){i.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(r,i,n){var t,c,u=r("../internals/global"),f=r("../internals/engine-user-agent"),o=u.process,l=u.Deno,g=o&&o.versions||l&&l.version,m=g&&g.v8;m&&(c=(t=m.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!c&&f&&(!(t=f.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=f.match(/Chrome\/(\d+)/))&&(c=+t[1]),i.exports=c},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(r,i,n){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/object-get-own-property-descriptor").f,u=r("../internals/create-non-enumerable-property"),f=r("../internals/define-built-in"),o=r("../internals/define-global-property"),l=r("../internals/copy-constructor-properties"),g=r("../internals/is-forced");i.exports=function(m,p){var _,y,h,d,A,v=m.target,w=m.global,x=m.stat;if(_=w?t:x?t[v]||o(v,{}):(t[v]||{}).prototype)for(y in p){if(d=p[y],h=m.dontCallGetSet?(A=c(_,y))&&A.value:_[y],!g(w?y:v+(x?".":"#")+y,m.forced)&&h!==void 0){if(typeof d==typeof h)continue;l(d,h)}(m.sham||h&&h.sham)&&u(d,"sham",!0),f(_,y,d,m)}}},{"../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(r,i,n){i.exports=function(t){try{return!!t()}catch{return!0}}},{}],261:[function(r,i,n){var t=r("../internals/function-bind-native"),c=Function.prototype,u=c.apply,f=c.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(t?f.bind(u):function(){return f.apply(u,arguments)})},{"../internals/function-bind-native":263}],262:[function(r,i,n){var t=r("../internals/function-uncurry-this-clause"),c=r("../internals/a-callable"),u=r("../internals/function-bind-native"),f=t(t.bind);i.exports=function(o,l){return c(o),l===void 0?o:u?f(o,l):function(){return o.apply(l,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(r,i,n){var t=r("../internals/fails");i.exports=!t((function(){var c=(function(){}).bind();return typeof c!="function"||c.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(r,i,n){var t=r("../internals/function-bind-native"),c=Function.prototype.call;i.exports=t?c.bind(c):function(){return c.apply(c,arguments)}},{"../internals/function-bind-native":263}],265:[function(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/has-own-property"),u=Function.prototype,f=t&&Object.getOwnPropertyDescriptor,o=c(u,"name"),l=o&&(function(){}).name==="something",g=o&&(!t||t&&f(u,"name").configurable);i.exports={EXISTS:o,PROPER:l,CONFIGURABLE:g}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/a-callable");i.exports=function(u,f,o){try{return t(c(Object.getOwnPropertyDescriptor(u,f)[o]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(r,i,n){var t=r("../internals/classof-raw"),c=r("../internals/function-uncurry-this");i.exports=function(u){if(t(u)==="Function")return c(u)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(r,i,n){var t=r("../internals/function-bind-native"),c=Function.prototype,u=c.call,f=t&&c.bind.bind(u,u);i.exports=t?f:function(o){return function(){return u.apply(o,arguments)}}},{"../internals/function-bind-native":263}],269:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/is-callable"),u=function(f){return c(f)?f:void 0};i.exports=function(f,o){return arguments.length<2?u(t[f]):t[f]&&t[f][o]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(r,i,n){var t=r("../internals/classof"),c=r("../internals/get-method"),u=r("../internals/is-null-or-undefined"),f=r("../internals/iterators"),o=r("../internals/well-known-symbol")("iterator");i.exports=function(l){if(!u(l))return c(l,o)||c(l,"@@iterator")||f[t(l)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(r,i,n){var t=r("../internals/function-call"),c=r("../internals/a-callable"),u=r("../internals/an-object"),f=r("../internals/try-to-string"),o=r("../internals/get-iterator-method"),l=TypeError;i.exports=function(g,m){var p=arguments.length<2?o(g):m;if(c(p))return u(t(p,g));throw new l(f(g)+" 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(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/is-array"),u=r("../internals/is-callable"),f=r("../internals/classof-raw"),o=r("../internals/to-string"),l=t([].push);i.exports=function(g){if(u(g))return g;if(c(g)){for(var m=g.length,p=[],_=0;_<m;_++){var y=g[_];typeof y=="string"?l(p,y):typeof y!="number"&&f(y)!=="Number"&&f(y)!=="String"||l(p,o(y))}var h=p.length,d=!0;return function(A,v){if(d)return d=!1,v;if(c(this))return v;for(var w=0;w<h;w++)if(p[w]===A)return v}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(r,i,n){var t=r("../internals/a-callable"),c=r("../internals/is-null-or-undefined");i.exports=function(u,f){var o=u[f];return c(o)?void 0:t(o)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(r,i,n){(function(t){(function(){var c=function(u){return u&&u.Math===Math&&u};i.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof t=="object"&&t)||(function(){return this})()||this||Function("return this")()}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/to-object"),u=t({}.hasOwnProperty);i.exports=Object.hasOwn||function(f,o){return u(c(f),o)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(r,i,n){i.exports={}},{}],277:[function(r,i,n){i.exports=function(t,c){try{arguments.length===1?console.error(t):console.error(t,c)}catch{}}},{}],278:[function(r,i,n){var t=r("../internals/get-built-in");i.exports=t("document","documentElement")},{"../internals/get-built-in":269}],279:[function(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/fails"),u=r("../internals/document-create-element");i.exports=!t&&!c((function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/fails"),u=r("../internals/classof-raw"),f=Object,o=t("".split);i.exports=c((function(){return!f("z").propertyIsEnumerable(0)}))?function(l){return u(l)==="String"?o(l,""):f(l)}:f},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/is-callable"),u=r("../internals/shared-store"),f=t(Function.toString);c(u.inspectSource)||(u.inspectSource=function(o){return f(o)}),i.exports=u.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(r,i,n){var t,c,u,f=r("../internals/weak-map-basic-detection"),o=r("../internals/global"),l=r("../internals/is-object"),g=r("../internals/create-non-enumerable-property"),m=r("../internals/has-own-property"),p=r("../internals/shared-store"),_=r("../internals/shared-key"),y=r("../internals/hidden-keys"),h=o.TypeError,d=o.WeakMap;if(f||p.state){var A=p.state||(p.state=new d);A.get=A.get,A.has=A.has,A.set=A.set,t=function(w,x){if(A.has(w))throw new h("Object already initialized");return x.facade=w,A.set(w,x),x},c=function(w){return A.get(w)||{}},u=function(w){return A.has(w)}}else{var v=_("state");y[v]=!0,t=function(w,x){if(m(w,v))throw new h("Object already initialized");return x.facade=w,g(w,v,x),x},c=function(w){return m(w,v)?w[v]:{}},u=function(w){return m(w,v)}}i.exports={set:t,get:c,has:u,enforce:function(w){return u(w)?c(w):t(w,{})},getterFor:function(w){return function(x){var C;if(!l(x)||(C=c(x)).type!==w)throw new h("Incompatible receiver, "+w+" required");return C}}}},{"../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(r,i,n){var t=r("../internals/well-known-symbol"),c=r("../internals/iterators"),u=t("iterator"),f=Array.prototype;i.exports=function(o){return o!==void 0&&(c.Array===o||f[u]===o)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(r,i,n){var t=r("../internals/classof-raw");i.exports=Array.isArray||function(c){return t(c)==="Array"}},{"../internals/classof-raw":235}],285:[function(r,i,n){var t=r("../internals/document-all"),c=t.all;i.exports=t.IS_HTMLDDA?function(u){return typeof u=="function"||u===c}:function(u){return typeof u=="function"}},{"../internals/document-all":248}],286:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/fails"),u=r("../internals/is-callable"),f=r("../internals/classof"),o=r("../internals/get-built-in"),l=r("../internals/inspect-source"),g=function(){},m=[],p=o("Reflect","construct"),_=/^\s*(?:class|function)\b/,y=t(_.exec),h=!_.test(g),d=function(v){if(!u(v))return!1;try{return p(g,m,v),!0}catch{return!1}},A=function(v){if(!u(v))return!1;switch(f(v)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!y(_,l(v))}catch{return!0}};A.sham=!0,i.exports=!p||c((function(){var v;return d(d.call)||!d(Object)||!d((function(){v=!0}))||v}))?A:d},{"../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(r,i,n){var t=r("../internals/fails"),c=r("../internals/is-callable"),u=/#|\.prototype\./,f=function(p,_){var y=l[o(p)];return y===m||y!==g&&(c(_)?t(_):!!_)},o=f.normalize=function(p){return String(p).replace(u,".").toLowerCase()},l=f.data={},g=f.NATIVE="N",m=f.POLYFILL="P";i.exports=f},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(r,i,n){i.exports=function(t){return t==null}},{}],289:[function(r,i,n){var t=r("../internals/is-callable"),c=r("../internals/document-all"),u=c.all;i.exports=c.IS_HTMLDDA?function(f){return typeof f=="object"?f!==null:t(f)||f===u}:function(f){return typeof f=="object"?f!==null:t(f)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(r,i,n){i.exports=!1},{}],291:[function(r,i,n){var t=r("../internals/is-object"),c=r("../internals/classof-raw"),u=r("../internals/well-known-symbol")("match");i.exports=function(f){var o;return t(f)&&((o=f[u])!==void 0?!!o:c(f)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(r,i,n){var t=r("../internals/get-built-in"),c=r("../internals/is-callable"),u=r("../internals/object-is-prototype-of"),f=r("../internals/use-symbol-as-uid"),o=Object;i.exports=f?function(l){return typeof l=="symbol"}:function(l){var g=t("Symbol");return c(g)&&u(g.prototype,o(l))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(r,i,n){var t=r("../internals/function-bind-context"),c=r("../internals/function-call"),u=r("../internals/an-object"),f=r("../internals/try-to-string"),o=r("../internals/is-array-iterator-method"),l=r("../internals/length-of-array-like"),g=r("../internals/object-is-prototype-of"),m=r("../internals/get-iterator"),p=r("../internals/get-iterator-method"),_=r("../internals/iterator-close"),y=TypeError,h=function(A,v){this.stopped=A,this.result=v},d=h.prototype;i.exports=function(A,v,w){var x,C,k,T,S,M,P,N=w&&w.that,B=!(!w||!w.AS_ENTRIES),O=!(!w||!w.IS_RECORD),I=!(!w||!w.IS_ITERATOR),F=!(!w||!w.INTERRUPTED),L=t(v,N),R=function(V){return x&&_(x,"normal",V),new h(!0,V)},U=function(V){return B?(u(V),F?L(V[0],V[1],R):L(V[0],V[1])):F?L(V,R):L(V)};if(O)x=A.iterator;else if(I)x=A;else{if(!(C=p(A)))throw new y(f(A)+" is not iterable");if(o(C)){for(k=0,T=l(A);T>k;k++)if((S=U(A[k]))&&g(d,S))return S;return new h(!1)}x=m(A,C)}for(M=O?A.next:x.next;!(P=c(M,x)).done;){try{S=U(P.value)}catch(V){_(x,"throw",V)}if(typeof S=="object"&&S&&g(d,S))return S}return new h(!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(r,i,n){var t=r("../internals/function-call"),c=r("../internals/an-object"),u=r("../internals/get-method");i.exports=function(f,o,l){var g,m;c(f);try{if(!(g=u(f,"return"))){if(o==="throw")throw l;return l}g=t(g,f)}catch(p){m=!0,g=p}if(o==="throw")throw l;if(m)throw g;return c(g),l}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(r,i,n){var t=r("../internals/iterators-core").IteratorPrototype,c=r("../internals/object-create"),u=r("../internals/create-property-descriptor"),f=r("../internals/set-to-string-tag"),o=r("../internals/iterators"),l=function(){return this};i.exports=function(g,m,p,_){var y=m+" Iterator";return g.prototype=c(t,{next:u(+!_,p)}),f(g,y,!1,!0),o[y]=l,g}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/function-call"),u=r("../internals/is-pure"),f=r("../internals/function-name"),o=r("../internals/is-callable"),l=r("../internals/iterator-create-constructor"),g=r("../internals/object-get-prototype-of"),m=r("../internals/object-set-prototype-of"),p=r("../internals/set-to-string-tag"),_=r("../internals/create-non-enumerable-property"),y=r("../internals/define-built-in"),h=r("../internals/well-known-symbol"),d=r("../internals/iterators"),A=r("../internals/iterators-core"),v=f.PROPER,w=f.CONFIGURABLE,x=A.IteratorPrototype,C=A.BUGGY_SAFARI_ITERATORS,k=h("iterator"),T=function(){return this};i.exports=function(S,M,P,N,B,O,I){l(P,M,N);var F,L,R,U=function(ie){if(ie===B&&G)return G;if(!C&&ie&&ie in Q)return Q[ie];switch(ie){case"keys":case"values":case"entries":return function(){return new P(this,ie)}}return function(){return new P(this)}},V=M+" Iterator",W=!1,Q=S.prototype,le=Q[k]||Q["@@iterator"]||B&&Q[B],G=!C&&le||U(B),fe=M==="Array"&&Q.entries||le;if(fe&&(F=g(fe.call(new S)))!==Object.prototype&&F.next&&(u||g(F)===x||(m?m(F,x):o(F[k])||y(F,k,T)),p(F,V,!0,!0),u&&(d[V]=T)),v&&B==="values"&&le&&le.name!=="values"&&(!u&&w?_(Q,"name","values"):(W=!0,G=function(){return c(le,this)})),B)if(L={values:U("values"),keys:O?G:U("keys"),entries:U("entries")},I)for(R in L)(C||W||!(R in Q))&&y(Q,R,L[R]);else t({target:M,proto:!0,forced:C||W},L);return u&&!I||Q[k]===G||y(Q,k,G,{name:B}),d[M]=G,L}},{"../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(r,i,n){var t,c,u,f=r("../internals/fails"),o=r("../internals/is-callable"),l=r("../internals/is-object"),g=r("../internals/object-create"),m=r("../internals/object-get-prototype-of"),p=r("../internals/define-built-in"),_=r("../internals/well-known-symbol"),y=r("../internals/is-pure"),h=_("iterator"),d=!1;[].keys&&("next"in(u=[].keys())?(c=m(m(u)))!==Object.prototype&&(t=c):d=!0),!l(t)||f((function(){var A={};return t[h].call(A)!==A}))?t={}:y&&(t=g(t)),o(t[h])||p(t,h,(function(){return this})),i.exports={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:d}},{"../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(r,i,n){arguments[4][276][0].apply(n,arguments)},{dup:276}],299:[function(r,i,n){var t=r("../internals/to-length");i.exports=function(c){return t(c.length)}},{"../internals/to-length":343}],300:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/fails"),u=r("../internals/is-callable"),f=r("../internals/has-own-property"),o=r("../internals/descriptors"),l=r("../internals/function-name").CONFIGURABLE,g=r("../internals/inspect-source"),m=r("../internals/internal-state"),p=m.enforce,_=m.get,y=String,h=Object.defineProperty,d=t("".slice),A=t("".replace),v=t([].join),w=o&&!c((function(){return h((function(){}),"length",{value:8}).length!==8})),x=String(String).split("String"),C=i.exports=function(k,T,S){d(y(T),0,7)==="Symbol("&&(T="["+A(y(T),/^Symbol\(([^)]*)\)/,"$1")+"]"),S&&S.getter&&(T="get "+T),S&&S.setter&&(T="set "+T),(!f(k,"name")||l&&k.name!==T)&&(o?h(k,"name",{value:T,configurable:!0}):k.name=T),w&&S&&f(S,"arity")&&k.length!==S.arity&&h(k,"length",{value:S.arity});try{S&&f(S,"constructor")&&S.constructor?o&&h(k,"prototype",{writable:!1}):k.prototype&&(k.prototype=void 0)}catch{}var M=p(k);return f(M,"source")||(M.source=v(x,typeof T=="string"?T:"")),k};Function.prototype.toString=C((function(){return u(this)&&_(this).source||g(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(r,i,n){var t=Math.ceil,c=Math.floor;i.exports=Math.trunc||function(u){var f=+u;return(f>0?c:t)(f)}},{}],302:[function(r,i,n){var t,c,u,f,o,l=r("../internals/global"),g=r("../internals/function-bind-context"),m=r("../internals/object-get-own-property-descriptor").f,p=r("../internals/task").set,_=r("../internals/queue"),y=r("../internals/engine-is-ios"),h=r("../internals/engine-is-ios-pebble"),d=r("../internals/engine-is-webos-webkit"),A=r("../internals/engine-is-node"),v=l.MutationObserver||l.WebKitMutationObserver,w=l.document,x=l.process,C=l.Promise,k=m(l,"queueMicrotask"),T=k&&k.value;if(!T){var S=new _,M=function(){var P,N;for(A&&(P=x.domain)&&P.exit();N=S.get();)try{N()}catch(B){throw S.head&&t(),B}P&&P.enter()};y||A||d||!v||!w?!h&&C&&C.resolve?((f=C.resolve(void 0)).constructor=C,o=g(f.then,f),t=function(){o(M)}):A?t=function(){x.nextTick(M)}:(p=g(p,l),t=function(){p(M)}):(c=!0,u=w.createTextNode(""),new v(M).observe(u,{characterData:!0}),t=function(){u.data=c=!c}),T=function(P){S.head||t(),S.add(P)}}i.exports=T},{"../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(r,i,n){var t=r("../internals/a-callable"),c=TypeError,u=function(f){var o,l;this.promise=new f((function(g,m){if(o!==void 0||l!==void 0)throw new c("Bad Promise constructor");o=g,l=m})),this.resolve=t(o),this.reject=t(l)};i.exports.f=function(f){return new u(f)}},{"../internals/a-callable":222}],304:[function(r,i,n){var t=r("../internals/is-regexp"),c=TypeError;i.exports=function(u){if(t(u))throw new c("The method doesn't accept regular expressions");return u}},{"../internals/is-regexp":291}],305:[function(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/function-uncurry-this"),u=r("../internals/function-call"),f=r("../internals/fails"),o=r("../internals/object-keys"),l=r("../internals/object-get-own-property-symbols"),g=r("../internals/object-property-is-enumerable"),m=r("../internals/to-object"),p=r("../internals/indexed-object"),_=Object.assign,y=Object.defineProperty,h=c([].concat);i.exports=!_||f((function(){if(t&&_({b:1},_(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},A={},v=Symbol("assign detection");return d[v]=7,"abcdefghijklmnopqrst".split("").forEach((function(w){A[w]=w})),_({},d)[v]!==7||o(_({},A)).join("")!=="abcdefghijklmnopqrst"}))?function(d,A){for(var v=m(d),w=arguments.length,x=1,C=l.f,k=g.f;w>x;)for(var T,S=p(arguments[x++]),M=C?h(o(S),C(S)):o(S),P=M.length,N=0;P>N;)T=M[N++],t&&!u(k,S,T)||(v[T]=S[T]);return v}:_},{"../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(r,i,n){var t,c=r("../internals/an-object"),u=r("../internals/object-define-properties"),f=r("../internals/enum-bug-keys"),o=r("../internals/hidden-keys"),l=r("../internals/html"),g=r("../internals/document-create-element"),m=r("../internals/shared-key"),p=m("IE_PROTO"),_=function(){},y=function(A){return"<script>"+A+"<\/script>"},h=function(A){A.write(y("")),A.close();var v=A.parentWindow.Object;return A=null,v},d=function(){try{t=new ActiveXObject("htmlfile")}catch{}var A,v;d=typeof document<"u"?document.domain&&t?h(t):((v=g("iframe")).style.display="none",l.appendChild(v),v.src="javascript:",(A=v.contentWindow.document).open(),A.write(y("document.F=Object")),A.close(),A.F):h(t);for(var w=f.length;w--;)delete d.prototype[f[w]];return d()};o[p]=!0,i.exports=Object.create||function(A,v){var w;return A!==null?(_.prototype=c(A),w=new _,_.prototype=null,w[p]=A):w=d(),v===void 0?w:u.f(w,v)}},{"../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(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/v8-prototype-define-bug"),u=r("../internals/object-define-property"),f=r("../internals/an-object"),o=r("../internals/to-indexed-object"),l=r("../internals/object-keys");n.f=t&&!c?Object.defineProperties:function(g,m){f(g);for(var p,_=o(m),y=l(m),h=y.length,d=0;h>d;)u.f(g,p=y[d++],_[p]);return g}},{"../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(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/ie8-dom-define"),u=r("../internals/v8-prototype-define-bug"),f=r("../internals/an-object"),o=r("../internals/to-property-key"),l=TypeError,g=Object.defineProperty,m=Object.getOwnPropertyDescriptor;n.f=t?u?function(p,_,y){if(f(p),_=o(_),f(y),typeof p=="function"&&_==="prototype"&&"value"in y&&"writable"in y&&!y.writable){var h=m(p,_);h&&h.writable&&(p[_]=y.value,y={configurable:"configurable"in y?y.configurable:h.configurable,enumerable:"enumerable"in y?y.enumerable:h.enumerable,writable:!1})}return g(p,_,y)}:g:function(p,_,y){if(f(p),_=o(_),f(y),c)try{return g(p,_,y)}catch{}if("get"in y||"set"in y)throw new l("Accessors not supported");return"value"in y&&(p[_]=y.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(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/function-call"),u=r("../internals/object-property-is-enumerable"),f=r("../internals/create-property-descriptor"),o=r("../internals/to-indexed-object"),l=r("../internals/to-property-key"),g=r("../internals/has-own-property"),m=r("../internals/ie8-dom-define"),p=Object.getOwnPropertyDescriptor;n.f=t?p:function(_,y){if(_=o(_),y=l(y),m)try{return p(_,y)}catch{}if(g(_,y))return f(!c(u.f,_,y),_[y])}},{"../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(r,i,n){var t=r("../internals/classof-raw"),c=r("../internals/to-indexed-object"),u=r("../internals/object-get-own-property-names").f,f=r("../internals/array-slice-simple"),o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(l){return o&&t(l)==="Window"?(function(g){try{return u(g)}catch{return f(o)}})(l):u(c(l))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(r,i,n){var t=r("../internals/object-keys-internal"),c=r("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(u){return t(u,c)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(r,i,n){n.f=Object.getOwnPropertySymbols},{}],313:[function(r,i,n){var t=r("../internals/has-own-property"),c=r("../internals/is-callable"),u=r("../internals/to-object"),f=r("../internals/shared-key"),o=r("../internals/correct-prototype-getter"),l=f("IE_PROTO"),g=Object,m=g.prototype;i.exports=o?g.getPrototypeOf:function(p){var _=u(p);if(t(_,l))return _[l];var y=_.constructor;return c(y)&&_ instanceof y?y.prototype:_ instanceof g?m: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(r,i,n){var t=r("../internals/function-uncurry-this");i.exports=t({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=r("../internals/has-own-property"),u=r("../internals/to-indexed-object"),f=r("../internals/array-includes").indexOf,o=r("../internals/hidden-keys"),l=t([].push);i.exports=function(g,m){var p,_=u(g),y=0,h=[];for(p in _)!c(o,p)&&c(_,p)&&l(h,p);for(;m.length>y;)c(_,p=m[y++])&&(~f(h,p)||l(h,p));return h}},{"../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(r,i,n){var t=r("../internals/object-keys-internal"),c=r("../internals/enum-bug-keys");i.exports=Object.keys||function(u){return t(u,c)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(r,i,n){var t={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!t.call({1:2},1);n.f=u?function(f){var o=c(this,f);return!!o&&o.enumerable}:t},{}],318:[function(r,i,n){var t=r("../internals/function-uncurry-this-accessor"),c=r("../internals/an-object"),u=r("../internals/a-possible-prototype");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var f,o=!1,l={};try{(f=t(Object.prototype,"__proto__","set"))(l,[]),o=l instanceof Array}catch{}return function(g,m){return c(g),u(m),o?f(g,m):g.__proto__=m,g}})():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/fails"),u=r("../internals/function-uncurry-this"),f=r("../internals/object-get-prototype-of"),o=r("../internals/object-keys"),l=r("../internals/to-indexed-object"),g=u(r("../internals/object-property-is-enumerable").f),m=u([].push),p=t&&c((function(){var y=Object.create(null);return y[2]=2,!g(y,2)})),_=function(y){return function(h){for(var d,A=l(h),v=o(A),w=p&&f(A)===null,x=v.length,C=0,k=[];x>C;)d=v[C++],t&&!(w?d in A:g(A,d))||m(k,y?[d,A[d]]:A[d]);return k}};i.exports={entries:_(!0),values:_(!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(r,i,n){var t=r("../internals/function-call"),c=r("../internals/is-callable"),u=r("../internals/is-object"),f=TypeError;i.exports=function(o,l){var g,m;if(l==="string"&&c(g=o.toString)&&!u(m=t(g,o))||c(g=o.valueOf)&&!u(m=t(g,o))||l!=="string"&&c(g=o.toString)&&!u(m=t(g,o)))return m;throw new f("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(r,i,n){var t=r("../internals/get-built-in"),c=r("../internals/function-uncurry-this"),u=r("../internals/object-get-own-property-names"),f=r("../internals/object-get-own-property-symbols"),o=r("../internals/an-object"),l=c([].concat);i.exports=t("Reflect","ownKeys")||function(g){var m=u.f(o(g)),p=f.f;return p?l(m,p(g)):m}},{"../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(r,i,n){var t=r("../internals/global");i.exports=t},{"../internals/global":274}],323:[function(r,i,n){i.exports=function(t){try{return{error:!1,value:t()}}catch(c){return{error:!0,value:c}}}},{}],324:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/promise-native-constructor"),u=r("../internals/is-callable"),f=r("../internals/is-forced"),o=r("../internals/inspect-source"),l=r("../internals/well-known-symbol"),g=r("../internals/engine-is-browser"),m=r("../internals/engine-is-deno"),p=r("../internals/is-pure"),_=r("../internals/engine-v8-version"),y=c&&c.prototype,h=l("species"),d=!1,A=u(t.PromiseRejectionEvent),v=f("Promise",(function(){var w=o(c),x=w!==String(c);if(!x&&_===66||p&&(!y.catch||!y.finally))return!0;if(!_||_<51||!/native code/.test(w)){var C=new c((function(T){T(1)})),k=function(T){T((function(){}),(function(){}))};if((C.constructor={})[h]=k,!(d=C.then((function(){}))instanceof k))return!0}return!x&&(g||m)&&!A}));i.exports={CONSTRUCTOR:v,REJECTION_EVENT:A,SUBCLASSING:d}},{"../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(r,i,n){var t=r("../internals/global");i.exports=t.Promise},{"../internals/global":274}],326:[function(r,i,n){var t=r("../internals/an-object"),c=r("../internals/is-object"),u=r("../internals/new-promise-capability");i.exports=function(f,o){if(t(f),c(o)&&o.constructor===f)return o;var l=u.f(f);return(0,l.resolve)(o),l.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(r,i,n){var t=r("../internals/promise-native-constructor"),c=r("../internals/check-correctness-of-iteration"),u=r("../internals/promise-constructor-detection").CONSTRUCTOR;i.exports=u||!c((function(f){t.all(f).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(r,i,n){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(c){var u={item:c,next:null},f=this.tail;f?f.next=u:this.head=u,this.tail=u},get:function(){var c=this.head;if(c)return(this.head=c.next)===null&&(this.tail=null),c.item}},i.exports=t},{}],329:[function(r,i,n){var t=r("../internals/is-null-or-undefined"),c=TypeError;i.exports=function(u){if(t(u))throw new c("Can't call method on "+u);return u}},{"../internals/is-null-or-undefined":288}],330:[function(r,i,n){var t=r("../internals/get-built-in"),c=r("../internals/define-built-in-accessor"),u=r("../internals/well-known-symbol"),f=r("../internals/descriptors"),o=u("species");i.exports=function(l){var g=t(l);f&&g&&!g[o]&&c(g,o,{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(r,i,n){var t=r("../internals/object-define-property").f,c=r("../internals/has-own-property"),u=r("../internals/well-known-symbol")("toStringTag");i.exports=function(f,o,l){f&&!l&&(f=f.prototype),f&&!c(f,u)&&t(f,u,{configurable:!0,value:o})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(r,i,n){var t=r("../internals/shared"),c=r("../internals/uid"),u=t("keys");i.exports=function(f){return u[f]||(u[f]=c(f))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/define-global-property"),u=t["__core-js_shared__"]||c("__core-js_shared__",{});i.exports=u},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(r,i,n){var t=r("../internals/is-pure"),c=r("../internals/shared-store");(i.exports=function(u,f){return c[u]||(c[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.33.0",mode:t?"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(r,i,n){var t=r("../internals/an-object"),c=r("../internals/a-constructor"),u=r("../internals/is-null-or-undefined"),f=r("../internals/well-known-symbol")("species");i.exports=function(o,l){var g,m=t(o).constructor;return m===void 0||u(g=t(m)[f])?l:c(g)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(r,i,n){var t=r("../internals/engine-v8-version"),c=r("../internals/fails"),u=r("../internals/global").String;i.exports=!!Object.getOwnPropertySymbols&&!c((function(){var f=Symbol("symbol detection");return!u(f)||!(Object(f)instanceof Symbol)||!Symbol.sham&&t&&t<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(r,i,n){var t=r("../internals/function-call"),c=r("../internals/get-built-in"),u=r("../internals/well-known-symbol"),f=r("../internals/define-built-in");i.exports=function(){var o=c("Symbol"),l=o&&o.prototype,g=l&&l.valueOf,m=u("toPrimitive");l&&!l[m]&&f(l,m,(function(p){return t(g,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(r,i,n){var t=r("../internals/symbol-constructor-detection");i.exports=t&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(r,i,n){var t,c,u,f,o=r("../internals/global"),l=r("../internals/function-apply"),g=r("../internals/function-bind-context"),m=r("../internals/is-callable"),p=r("../internals/has-own-property"),_=r("../internals/fails"),y=r("../internals/html"),h=r("../internals/array-slice"),d=r("../internals/document-create-element"),A=r("../internals/validate-arguments-length"),v=r("../internals/engine-is-ios"),w=r("../internals/engine-is-node"),x=o.setImmediate,C=o.clearImmediate,k=o.process,T=o.Dispatch,S=o.Function,M=o.MessageChannel,P=o.String,N=0,B={};_((function(){t=o.location}));var O=function(R){if(p(B,R)){var U=B[R];delete B[R],U()}},I=function(R){return function(){O(R)}},F=function(R){O(R.data)},L=function(R){o.postMessage(P(R),t.protocol+"//"+t.host)};x&&C||(x=function(R){A(arguments.length,1);var U=m(R)?R:S(R),V=h(arguments,1);return B[++N]=function(){l(U,void 0,V)},c(N),N},C=function(R){delete B[R]},w?c=function(R){k.nextTick(I(R))}:T&&T.now?c=function(R){T.now(I(R))}:M&&!v?(f=(u=new M).port2,u.port1.onmessage=F,c=g(f.postMessage,f)):o.addEventListener&&m(o.postMessage)&&!o.importScripts&&t&&t.protocol!=="file:"&&!_(L)?(c=L,o.addEventListener("message",F,!1)):c="onreadystatechange"in d("script")?function(R){y.appendChild(d("script")).onreadystatechange=function(){y.removeChild(this),O(R)}}:function(R){setTimeout(I(R),0)}),i.exports={set:x,clear:C}},{"../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(r,i,n){var t=r("../internals/to-integer-or-infinity"),c=Math.max,u=Math.min;i.exports=function(f,o){var l=t(f);return l<0?c(l+o,0):u(l,o)}},{"../internals/to-integer-or-infinity":342}],341:[function(r,i,n){var t=r("../internals/indexed-object"),c=r("../internals/require-object-coercible");i.exports=function(u){return t(c(u))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(r,i,n){var t=r("../internals/math-trunc");i.exports=function(c){var u=+c;return u!=u||u===0?0:t(u)}},{"../internals/math-trunc":301}],343:[function(r,i,n){var t=r("../internals/to-integer-or-infinity"),c=Math.min;i.exports=function(u){return u>0?c(t(u),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(r,i,n){var t=r("../internals/require-object-coercible"),c=Object;i.exports=function(u){return c(t(u))}},{"../internals/require-object-coercible":329}],345:[function(r,i,n){var t=r("../internals/function-call"),c=r("../internals/is-object"),u=r("../internals/is-symbol"),f=r("../internals/get-method"),o=r("../internals/ordinary-to-primitive"),l=r("../internals/well-known-symbol"),g=TypeError,m=l("toPrimitive");i.exports=function(p,_){if(!c(p)||u(p))return p;var y,h=f(p,m);if(h){if(_===void 0&&(_="default"),y=t(h,p,_),!c(y)||u(y))return y;throw new g("Can't convert object to primitive value")}return _===void 0&&(_="number"),o(p,_)}},{"../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(r,i,n){var t=r("../internals/to-primitive"),c=r("../internals/is-symbol");i.exports=function(u){var f=t(u,"string");return c(f)?f:f+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(r,i,n){var t={};t[r("../internals/well-known-symbol")("toStringTag")]="z",i.exports=String(t)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(r,i,n){var t=r("../internals/classof"),c=String;i.exports=function(u){if(t(u)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return c(u)}},{"../internals/classof":236}],349:[function(r,i,n){var t=String;i.exports=function(c){try{return t(c)}catch{return"Object"}}},{}],350:[function(r,i,n){var t=r("../internals/function-uncurry-this"),c=0,u=Math.random(),f=t(1 .toString);i.exports=function(o){return"Symbol("+(o===void 0?"":o)+")_"+f(++c+u,36)}},{"../internals/function-uncurry-this":268}],351:[function(r,i,n){var t=r("../internals/symbol-constructor-detection");i.exports=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(r,i,n){var t=r("../internals/descriptors"),c=r("../internals/fails");i.exports=t&&c((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(r,i,n){var t=TypeError;i.exports=function(c,u){if(c<u)throw new t("Not enough arguments");return c}},{}],354:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/is-callable"),u=t.WeakMap;i.exports=c(u)&&/native code/.test(String(u))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(r,i,n){var t=r("../internals/path"),c=r("../internals/has-own-property"),u=r("../internals/well-known-symbol-wrapped"),f=r("../internals/object-define-property").f;i.exports=function(o){var l=t.Symbol||(t.Symbol={});c(l,o)||f(l,o,{value:u.f(o)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(r,i,n){var t=r("../internals/well-known-symbol");n.f=t},{"../internals/well-known-symbol":357}],357:[function(r,i,n){var t=r("../internals/global"),c=r("../internals/shared"),u=r("../internals/has-own-property"),f=r("../internals/uid"),o=r("../internals/symbol-constructor-detection"),l=r("../internals/use-symbol-as-uid"),g=t.Symbol,m=c("wks"),p=l?g.for||g:g&&g.withoutSetter||f;i.exports=function(_){return u(m,_)||(m[_]=o&&u(g,_)?g[_]:p("Symbol."+_)),m[_]}},{"../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(r,i,n){var t=r("../internals/export"),c=r("../internals/array-iteration").findIndex,u=r("../internals/add-to-unscopables"),f=!0;"findIndex"in[]&&Array(1).findIndex((function(){f=!1})),t({target:"Array",proto:!0,forced:f},{findIndex:function(o){return c(this,o,arguments.length>1?arguments[1]:void 0)}}),u("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/array-iteration").find,u=r("../internals/add-to-unscopables"),f=!0;"find"in[]&&Array(1).find((function(){f=!1})),t({target:"Array",proto:!0,forced:f},{find:function(o){return c(this,o,arguments.length>1?arguments[1]:void 0)}}),u("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/array-includes").includes,u=r("../internals/fails"),f=r("../internals/add-to-unscopables");t({target:"Array",proto:!0,forced:u((function(){return!Array(1).includes()}))},{includes:function(o){return c(this,o,arguments.length>1?arguments[1]:void 0)}}),f("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(r,i,n){var t=r("../internals/to-indexed-object"),c=r("../internals/add-to-unscopables"),u=r("../internals/iterators"),f=r("../internals/internal-state"),o=r("../internals/object-define-property").f,l=r("../internals/iterator-define"),g=r("../internals/create-iter-result-object"),m=r("../internals/is-pure"),p=r("../internals/descriptors"),_=f.set,y=f.getterFor("Array Iterator");i.exports=l(Array,"Array",(function(d,A){_(this,{type:"Array Iterator",target:t(d),index:0,kind:A})}),(function(){var d=y(this),A=d.target,v=d.kind,w=d.index++;if(!A||w>=A.length)return d.target=void 0,g(void 0,!0);switch(v){case"keys":return g(w,!1);case"values":return g(A[w],!1)}return g([w,A[w]],!1)}),"values");var h=u.Arguments=u.Array;if(c("keys"),c("values"),c("entries"),!m&&p&&h.name!=="values")try{o(h,"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(r,i,n){var t=r("../internals/export"),c=r("../internals/get-built-in"),u=r("../internals/function-apply"),f=r("../internals/function-call"),o=r("../internals/function-uncurry-this"),l=r("../internals/fails"),g=r("../internals/is-callable"),m=r("../internals/is-symbol"),p=r("../internals/array-slice"),_=r("../internals/get-json-replacer-function"),y=r("../internals/symbol-constructor-detection"),h=String,d=c("JSON","stringify"),A=o(/./.exec),v=o("".charAt),w=o("".charCodeAt),x=o("".replace),C=o(1 .toString),k=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,M=!y||l((function(){var O=c("Symbol")("stringify detection");return d([O])!=="[null]"||d({a:O})!=="{}"||d(Object(O))!=="{}"})),P=l((function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'})),N=function(O,I){var F=p(arguments),L=_(I);if(g(L)||O!==void 0&&!m(O))return F[1]=function(R,U){if(g(L)&&(U=f(L,this,h(R),U)),!m(U))return U},u(d,null,F)},B=function(O,I,F){var L=v(F,I-1),R=v(F,I+1);return A(T,O)&&!A(S,R)||A(S,O)&&!A(T,L)?"\\u"+C(w(O,0),16):O};d&&t({target:"JSON",stat:!0,arity:3,forced:M||P},{stringify:function(O,I,F){var L=p(arguments),R=u(M?N:d,null,L);return P&&typeof R=="string"?x(R,k,B):R}})},{"../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(r,i,n){r("../internals/export")({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},{"../internals/export":259}],364:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/object-assign");t({target:"Object",stat:!0,arity:2,forced:Object.assign!==c},{assign:c})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/symbol-constructor-detection"),u=r("../internals/fails"),f=r("../internals/object-get-own-property-symbols"),o=r("../internals/to-object");t({target:"Object",stat:!0,forced:!c||u((function(){f.f(1)}))},{getOwnPropertySymbols:function(l){var g=f.f;return g?g(o(l)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/to-object"),u=r("../internals/object-keys");t({target:"Object",stat:!0,forced:r("../internals/fails")((function(){u(1)}))},{keys:function(f){return u(c(f))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/object-to-array").values;t({target:"Object",stat:!0},{values:function(u){return c(u)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/function-call"),u=r("../internals/a-callable"),f=r("../internals/new-promise-capability"),o=r("../internals/perform"),l=r("../internals/iterate");t({target:"Promise",stat:!0,forced:r("../internals/promise-statics-incorrect-iteration")},{all:function(g){var m=this,p=f.f(m),_=p.resolve,y=p.reject,h=o((function(){var d=u(m.resolve),A=[],v=0,w=1;l(g,(function(x){var C=v++,k=!1;w++,c(d,m,x).then((function(T){k||(k=!0,A[C]=T,--w||_(A))}),y)})),--w||_(A)}));return h.error&&y(h.value),p.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(r,i,n){var t=r("../internals/export"),c=r("../internals/is-pure"),u=r("../internals/promise-constructor-detection").CONSTRUCTOR,f=r("../internals/promise-native-constructor"),o=r("../internals/get-built-in"),l=r("../internals/is-callable"),g=r("../internals/define-built-in"),m=f&&f.prototype;if(t({target:"Promise",proto:!0,forced:u,real:!0},{catch:function(_){return this.then(void 0,_)}}),!c&&l(f)){var p=o("Promise").prototype.catch;m.catch!==p&&g(m,"catch",p,{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(r,i,n){var t,c,u,f=r("../internals/export"),o=r("../internals/is-pure"),l=r("../internals/engine-is-node"),g=r("../internals/global"),m=r("../internals/function-call"),p=r("../internals/define-built-in"),_=r("../internals/object-set-prototype-of"),y=r("../internals/set-to-string-tag"),h=r("../internals/set-species"),d=r("../internals/a-callable"),A=r("../internals/is-callable"),v=r("../internals/is-object"),w=r("../internals/an-instance"),x=r("../internals/species-constructor"),C=r("../internals/task").set,k=r("../internals/microtask"),T=r("../internals/host-report-errors"),S=r("../internals/perform"),M=r("../internals/queue"),P=r("../internals/internal-state"),N=r("../internals/promise-native-constructor"),B=r("../internals/promise-constructor-detection"),O=r("../internals/new-promise-capability"),I=B.CONSTRUCTOR,F=B.REJECTION_EVENT,L=B.SUBCLASSING,R=P.getterFor("Promise"),U=P.set,V=N&&N.prototype,W=N,Q=V,le=g.TypeError,G=g.document,fe=g.process,ie=O.f,he=ie,Y=!!(G&&G.createEvent&&g.dispatchEvent),K=function(Fe){var Ve;return!(!v(Fe)||!A(Ve=Fe.then))&&Ve},oe=function(Fe,Ve){var ke,Pe,Re,Ye=Ve.value,Ke=Ve.state===1,ot=Ke?Fe.ok:Fe.fail,nt=Fe.resolve,mt=Fe.reject,Ut=Fe.domain;try{ot?(Ke||(Ve.rejection===2&&Te(Ve),Ve.rejection=1),ot===!0?ke=Ye:(Ut&&Ut.enter(),ke=ot(Ye),Ut&&(Ut.exit(),Re=!0)),ke===Fe.promise?mt(new le("Promise-chain cycle")):(Pe=K(ke))?m(Pe,ke,nt,mt):nt(ke)):mt(Ye)}catch(Ot){Ut&&!Re&&Ut.exit(),mt(Ot)}},pe=function(Fe,Ve){Fe.notified||(Fe.notified=!0,k((function(){for(var ke,Pe=Fe.reactions;ke=Pe.get();)oe(ke,Fe);Fe.notified=!1,Ve&&!Fe.rejection&&ge(Fe)})))},ve=function(Fe,Ve,ke){var Pe,Re;Y?((Pe=G.createEvent("Event")).promise=Ve,Pe.reason=ke,Pe.initEvent(Fe,!1,!0),g.dispatchEvent(Pe)):Pe={promise:Ve,reason:ke},!F&&(Re=g["on"+Fe])?Re(Pe):Fe==="unhandledrejection"&&T("Unhandled promise rejection",ke)},ge=function(Fe){m(C,g,(function(){var Ve,ke=Fe.facade,Pe=Fe.value;if(ue(Fe)&&(Ve=S((function(){l?fe.emit("unhandledRejection",Pe,ke):ve("unhandledrejection",ke,Pe)})),Fe.rejection=l||ue(Fe)?2:1,Ve.error))throw Ve.value}))},ue=function(Fe){return Fe.rejection!==1&&!Fe.parent},Te=function(Fe){m(C,g,(function(){var Ve=Fe.facade;l?fe.emit("rejectionHandled",Ve):ve("rejectionhandled",Ve,Fe.value)}))},Ee=function(Fe,Ve,ke){return function(Pe){Fe(Ve,Pe,ke)}},ye=function(Fe,Ve,ke){Fe.done||(Fe.done=!0,ke&&(Fe=ke),Fe.value=Ve,Fe.state=2,pe(Fe,!0))},Se=function(Fe,Ve,ke){if(!Fe.done){Fe.done=!0,ke&&(Fe=ke);try{if(Fe.facade===Ve)throw new le("Promise can't be resolved itself");var Pe=K(Ve);Pe?k((function(){var Re={done:!1};try{m(Pe,Ve,Ee(Se,Re,Fe),Ee(ye,Re,Fe))}catch(Ye){ye(Re,Ye,Fe)}})):(Fe.value=Ve,Fe.state=1,pe(Fe,!1))}catch(Re){ye({done:!1},Re,Fe)}}};if(I&&(Q=(W=function(Fe){w(this,Q),d(Fe),m(t,this);var Ve=R(this);try{Fe(Ee(Se,Ve),Ee(ye,Ve))}catch(ke){ye(Ve,ke)}}).prototype,(t=function(Fe){U(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new M,rejection:!1,state:0,value:void 0})}).prototype=p(Q,"then",(function(Fe,Ve){var ke=R(this),Pe=ie(x(this,W));return ke.parent=!0,Pe.ok=!A(Fe)||Fe,Pe.fail=A(Ve)&&Ve,Pe.domain=l?fe.domain:void 0,ke.state===0?ke.reactions.add(Pe):k((function(){oe(Pe,ke)})),Pe.promise})),c=function(){var Fe=new t,Ve=R(Fe);this.promise=Fe,this.resolve=Ee(Se,Ve),this.reject=Ee(ye,Ve)},O.f=ie=function(Fe){return Fe===W||Fe===void 0?new c(Fe):he(Fe)},!o&&A(N)&&V!==Object.prototype)){u=V.then,L||p(V,"then",(function(Fe,Ve){var ke=this;return new W((function(Pe,Re){m(u,ke,Pe,Re)})).then(Fe,Ve)}),{unsafe:!0});try{delete V.constructor}catch{}_&&_(V,Q)}f({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:W}),y(W,"Promise",!1,!0),h("Promise")},{"../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(r,i,n){var t=r("../internals/export"),c=r("../internals/is-pure"),u=r("../internals/promise-native-constructor"),f=r("../internals/fails"),o=r("../internals/get-built-in"),l=r("../internals/is-callable"),g=r("../internals/species-constructor"),m=r("../internals/promise-resolve"),p=r("../internals/define-built-in"),_=u&&u.prototype;if(t({target:"Promise",proto:!0,real:!0,forced:!!u&&f((function(){_.finally.call({then:function(){}},(function(){}))}))},{finally:function(h){var d=g(this,o("Promise")),A=l(h);return this.then(A?function(v){return m(d,h()).then((function(){return v}))}:h,A?function(v){return m(d,h()).then((function(){throw v}))}:h)}}),!c&&l(u)){var y=o("Promise").prototype.finally;_.finally!==y&&p(_,"finally",y,{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(r,i,n){r("../modules/es.promise.constructor"),r("../modules/es.promise.all"),r("../modules/es.promise.catch"),r("../modules/es.promise.race"),r("../modules/es.promise.reject"),r("../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(r,i,n){var t=r("../internals/export"),c=r("../internals/function-call"),u=r("../internals/a-callable"),f=r("../internals/new-promise-capability"),o=r("../internals/perform"),l=r("../internals/iterate");t({target:"Promise",stat:!0,forced:r("../internals/promise-statics-incorrect-iteration")},{race:function(g){var m=this,p=f.f(m),_=p.reject,y=o((function(){var h=u(m.resolve);l(g,(function(d){c(h,m,d).then(p.resolve,_)}))}));return y.error&&_(y.value),p.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(r,i,n){var t=r("../internals/export"),c=r("../internals/function-call"),u=r("../internals/new-promise-capability");t({target:"Promise",stat:!0,forced:r("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(f){var o=u.f(this);return c(o.reject,void 0,f),o.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/get-built-in"),u=r("../internals/is-pure"),f=r("../internals/promise-native-constructor"),o=r("../internals/promise-constructor-detection").CONSTRUCTOR,l=r("../internals/promise-resolve"),g=c("Promise"),m=u&&!o;t({target:"Promise",stat:!0,forced:u||o},{resolve:function(p){return l(m&&this===g?f:this,p)}})},{"../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(r,i,n){var t=r("../internals/export"),c=r("../internals/function-uncurry-this"),u=r("../internals/to-absolute-index"),f=RangeError,o=String.fromCharCode,l=String.fromCodePoint,g=c([].join);t({target:"String",stat:!0,arity:1,forced:!!l&&l.length!==1},{fromCodePoint:function(m){for(var p,_=[],y=arguments.length,h=0;y>h;){if(p=+arguments[h++],u(p,1114111)!==p)throw new f(p+" is not a valid code point");_[h]=p<65536?o(p):o(55296+((p-=65536)>>10),p%1024+56320)}return g(_,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/function-uncurry-this"),u=r("../internals/not-a-regexp"),f=r("../internals/require-object-coercible"),o=r("../internals/to-string"),l=r("../internals/correct-is-regexp-logic"),g=c("".indexOf);t({target:"String",proto:!0,forced:!l("includes")},{includes:function(m){return!!~g(o(f(this)),o(u(m)),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(r,i,n){r("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(r,i,n){var t=r("../internals/export"),c=r("../internals/global"),u=r("../internals/function-call"),f=r("../internals/function-uncurry-this"),o=r("../internals/is-pure"),l=r("../internals/descriptors"),g=r("../internals/symbol-constructor-detection"),m=r("../internals/fails"),p=r("../internals/has-own-property"),_=r("../internals/object-is-prototype-of"),y=r("../internals/an-object"),h=r("../internals/to-indexed-object"),d=r("../internals/to-property-key"),A=r("../internals/to-string"),v=r("../internals/create-property-descriptor"),w=r("../internals/object-create"),x=r("../internals/object-keys"),C=r("../internals/object-get-own-property-names"),k=r("../internals/object-get-own-property-names-external"),T=r("../internals/object-get-own-property-symbols"),S=r("../internals/object-get-own-property-descriptor"),M=r("../internals/object-define-property"),P=r("../internals/object-define-properties"),N=r("../internals/object-property-is-enumerable"),B=r("../internals/define-built-in"),O=r("../internals/define-built-in-accessor"),I=r("../internals/shared"),F=r("../internals/shared-key"),L=r("../internals/hidden-keys"),R=r("../internals/uid"),U=r("../internals/well-known-symbol"),V=r("../internals/well-known-symbol-wrapped"),W=r("../internals/well-known-symbol-define"),Q=r("../internals/symbol-define-to-primitive"),le=r("../internals/set-to-string-tag"),G=r("../internals/internal-state"),fe=r("../internals/array-iteration").forEach,ie=F("hidden"),he=G.set,Y=G.getterFor("Symbol"),K=Object.prototype,oe=c.Symbol,pe=oe&&oe.prototype,ve=c.RangeError,ge=c.TypeError,ue=c.QObject,Te=S.f,Ee=M.f,ye=k.f,Se=N.f,Fe=f([].push),Ve=I("symbols"),ke=I("op-symbols"),Pe=I("wks"),Re=!ue||!ue.prototype||!ue.prototype.findChild,Ye=function(_t,Jt,yr){var vr=Te(K,Jt);vr&&delete K[Jt],Ee(_t,Jt,yr),vr&&_t!==K&&Ee(K,Jt,vr)},Ke=l&&m((function(){return w(Ee({},"a",{get:function(){return Ee(this,"a",{value:7}).a}})).a!==7}))?Ye:Ee,ot=function(_t,Jt){var yr=Ve[_t]=w(pe);return he(yr,{type:"Symbol",tag:_t,description:Jt}),l||(yr.description=Jt),yr},nt=function(_t,Jt,yr){_t===K&&nt(ke,Jt,yr),y(_t);var vr=d(Jt);return y(yr),p(Ve,vr)?(yr.enumerable?(p(_t,ie)&&_t[ie][vr]&&(_t[ie][vr]=!1),yr=w(yr,{enumerable:v(0,!1)})):(p(_t,ie)||Ee(_t,ie,v(1,{})),_t[ie][vr]=!0),Ke(_t,vr,yr)):Ee(_t,vr,yr)},mt=function(_t,Jt){y(_t);var yr=h(Jt),vr=x(yr).concat(Kt(yr));return fe(vr,(function(Br){l&&!u(Ut,yr,Br)||nt(_t,Br,yr[Br])})),_t},Ut=function(_t){var Jt=d(_t),yr=u(Se,this,Jt);return!(this===K&&p(Ve,Jt)&&!p(ke,Jt))&&(!(yr||!p(this,Jt)||!p(Ve,Jt)||p(this,ie)&&this[ie][Jt])||yr)},Ot=function(_t,Jt){var yr=h(_t),vr=d(Jt);if(yr!==K||!p(Ve,vr)||p(ke,vr)){var Br=Te(yr,vr);return!Br||!p(Ve,vr)||p(yr,ie)&&yr[ie][vr]||(Br.enumerable=!0),Br}},wt=function(_t){var Jt=ye(h(_t)),yr=[];return fe(Jt,(function(vr){p(Ve,vr)||p(L,vr)||Fe(yr,vr)})),yr},Kt=function(_t){var Jt=_t===K,yr=ye(Jt?ke:h(_t)),vr=[];return fe(yr,(function(Br){!p(Ve,Br)||Jt&&!p(K,Br)||Fe(vr,Ve[Br])})),vr};g||(B(pe=(oe=function(){if(_(pe,this))throw new ge("Symbol is not a constructor");var _t=arguments.length&&arguments[0]!==void 0?A(arguments[0]):void 0,Jt=R(_t),yr=function(vr){this===K&&u(yr,ke,vr),p(this,ie)&&p(this[ie],Jt)&&(this[ie][Jt]=!1);var Br=v(1,vr);try{Ke(this,Jt,Br)}catch(zr){if(!(zr instanceof ve))throw zr;Ye(this,Jt,Br)}};return l&&Re&&Ke(K,Jt,{configurable:!0,set:yr}),ot(Jt,_t)}).prototype,"toString",(function(){return Y(this).tag})),B(oe,"withoutSetter",(function(_t){return ot(R(_t),_t)})),N.f=Ut,M.f=nt,P.f=mt,S.f=Ot,C.f=k.f=wt,T.f=Kt,V.f=function(_t){return ot(U(_t),_t)},l&&(O(pe,"description",{configurable:!0,get:function(){return Y(this).description}}),o||B(K,"propertyIsEnumerable",Ut,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!g,sham:!g},{Symbol:oe}),fe(x(Pe),(function(_t){W(_t)})),t({target:"Symbol",stat:!0,forced:!g},{useSetter:function(){Re=!0},useSimple:function(){Re=!1}}),t({target:"Object",stat:!0,forced:!g,sham:!l},{create:function(_t,Jt){return Jt===void 0?w(_t):mt(w(_t),Jt)},defineProperty:nt,defineProperties:mt,getOwnPropertyDescriptor:Ot}),t({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:wt}),Q(),le(oe,"Symbol"),L[ie]=!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(r,i,n){var t=r("../internals/export"),c=r("../internals/get-built-in"),u=r("../internals/has-own-property"),f=r("../internals/to-string"),o=r("../internals/shared"),l=r("../internals/symbol-registry-detection"),g=o("string-to-symbol-registry"),m=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!l},{for:function(p){var _=f(p);if(u(g,_))return g[_];var y=c("Symbol")(_);return g[_]=y,m[y]=_,y}})},{"../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(r,i,n){r("../modules/es.symbol.constructor"),r("../modules/es.symbol.for"),r("../modules/es.symbol.key-for"),r("../modules/es.json.stringify"),r("../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(r,i,n){var t=r("../internals/export"),c=r("../internals/has-own-property"),u=r("../internals/is-symbol"),f=r("../internals/try-to-string"),o=r("../internals/shared"),l=r("../internals/symbol-registry-detection"),g=o("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!l},{keyFor:function(m){if(!u(m))throw new TypeError(f(m)+" is not a symbol");if(c(g,m))return g[m]}})},{"../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(r,i,n){function t(c){return Object.prototype.toString.call(c)}n.isArray=function(c){return Array.isArray?Array.isArray(c):t(c)==="[object Array]"},n.isBoolean=function(c){return typeof c=="boolean"},n.isNull=function(c){return c===null},n.isNullOrUndefined=function(c){return c==null},n.isNumber=function(c){return typeof c=="number"},n.isString=function(c){return typeof c=="string"},n.isSymbol=function(c){return typeof c=="symbol"},n.isUndefined=function(c){return c===void 0},n.isRegExp=function(c){return t(c)==="[object RegExp]"},n.isObject=function(c){return typeof c=="object"&&c!==null},n.isDate=function(c){return t(c)==="[object Date]"},n.isError=function(c){return t(c)==="[object Error]"||c instanceof Error},n.isFunction=function(c){return typeof c=="function"},n.isPrimitive=function(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||typeof c=="symbol"||c===void 0},n.isBuffer=r("buffer").Buffer.isBuffer},{buffer:220}],384:[function(r,i,n){(function(t){(function(){var c=r("elliptic"),u=r("bn.js");i.exports=function(g){return new o(g)};var f={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 o(g){this.curveType=f[g],this.curveType||(this.curveType={name:g}),this.curve=new c.ec(this.curveType.name),this.keys=void 0}function l(g,m,p){Array.isArray(g)||(g=g.toArray());var _=new t(g);if(p&&_.length<p){var y=new t(p-_.length);y.fill(0),_=t.concat([y,_])}return m?_.toString(m):_}f.p224=f.secp224r1,f.p256=f.secp256r1=f.prime256v1,f.p192=f.secp192r1=f.prime192v1,f.p384=f.secp384r1,f.p521=f.secp521r1,o.prototype.generateKeys=function(g,m){return this.keys=this.curve.genKeyPair(),this.getPublicKey(g,m)},o.prototype.computeSecret=function(g,m,p){return m=m||"utf8",t.isBuffer(g)||(g=new t(g,m)),l(this.curve.keyFromPublic(g).getPublic().mul(this.keys.getPrivate()).getX(),p,this.curveType.byteLength)},o.prototype.getPublicKey=function(g,m){var p=this.keys.getPublic(m==="compressed",!0);return m==="hybrid"&&(p[p.length-1]%2?p[0]=7:p[0]=6),l(p,g)},o.prototype.getPrivateKey=function(g){return l(this.keys.getPrivate(),g)},o.prototype.setPublicKey=function(g,m){return m=m||"utf8",t.isBuffer(g)||(g=new t(g,m)),this.keys._importPublic(g),this},o.prototype.setPrivateKey=function(g,m){m=m||"utf8",t.isBuffer(g)||(g=new t(g,m));var p=new u(g);return p=p.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(p),this}}).call(this)}).call(this,r("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(r,i,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],386:[function(r,i,n){var t=r("inherits"),c=r("md5.js"),u=r("ripemd160"),f=r("sha.js"),o=r("cipher-base");function l(g){o.call(this,"digest"),this._hash=g}t(l,o),l.prototype._update=function(g){this._hash.update(g)},l.prototype._final=function(){return this._hash.digest()},i.exports=function(g){return(g=g.toLowerCase())==="md5"?new c:g==="rmd160"||g==="ripemd160"?new u:new l(f(g))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(r,i,n){var t=r("md5.js");i.exports=function(c){return new t().update(c).digest()}},{"md5.js":450}],388:[function(r,i,n){var t=r("inherits"),c=r("./legacy"),u=r("cipher-base"),f=r("safe-buffer").Buffer,o=r("create-hash/md5"),l=r("ripemd160"),g=r("sha.js"),m=f.alloc(128);function p(_,y){u.call(this,"digest"),typeof y=="string"&&(y=f.from(y));var h=_==="sha512"||_==="sha384"?128:64;this._alg=_,this._key=y,y.length>h?y=(_==="rmd160"?new l:g(_)).update(y).digest():y.length<h&&(y=f.concat([y,m],h));for(var d=this._ipad=f.allocUnsafe(h),A=this._opad=f.allocUnsafe(h),v=0;v<h;v++)d[v]=54^y[v],A[v]=92^y[v];this._hash=_==="rmd160"?new l:g(_),this._hash.update(d)}t(p,u),p.prototype._update=function(_){this._hash.update(_)},p.prototype._final=function(){var _=this._hash.digest();return(this._alg==="rmd160"?new l:g(this._alg)).update(this._opad).update(_).digest()},i.exports=function(_,y){return(_=_.toLowerCase())==="rmd160"||_==="ripemd160"?new p("rmd160",y):_==="md5"?new c(o,y):new p(_,y)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(r,i,n){var t=r("inherits"),c=r("safe-buffer").Buffer,u=r("cipher-base"),f=c.alloc(128);function o(l,g){u.call(this,"digest"),typeof g=="string"&&(g=c.from(g)),this._alg=l,this._key=g,g.length>64?g=l(g):g.length<64&&(g=c.concat([g,f],64));for(var m=this._ipad=c.allocUnsafe(64),p=this._opad=c.allocUnsafe(64),_=0;_<64;_++)m[_]=54^g[_],p[_]=92^g[_];this._hash=[m]}t(o,u),o.prototype._update=function(l){this._hash.push(l)},o.prototype._final=function(){var l=this._alg(c.concat(this._hash));return this._alg(c.concat([this._opad,l]))},i.exports=o},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(r,i,n){n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=r("randombytes"),n.createHash=n.Hash=r("create-hash"),n.createHmac=n.Hmac=r("create-hmac");var t=r("browserify-sign/algos"),c=Object.keys(t),u=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(c);n.getHashes=function(){return u};var f=r("pbkdf2");n.pbkdf2=f.pbkdf2,n.pbkdf2Sync=f.pbkdf2Sync;var o=r("browserify-cipher");n.Cipher=o.Cipher,n.createCipher=o.createCipher,n.Cipheriv=o.Cipheriv,n.createCipheriv=o.createCipheriv,n.Decipher=o.Decipher,n.createDecipher=o.createDecipher,n.Decipheriv=o.Decipheriv,n.createDecipheriv=o.createDecipheriv,n.getCiphers=o.getCiphers,n.listCiphers=o.listCiphers;var l=r("diffie-hellman");n.DiffieHellmanGroup=l.DiffieHellmanGroup,n.createDiffieHellmanGroup=l.createDiffieHellmanGroup,n.getDiffieHellman=l.getDiffieHellman,n.createDiffieHellman=l.createDiffieHellman,n.DiffieHellman=l.DiffieHellman;var g=r("browserify-sign");n.createSign=g.createSign,n.Sign=g.Sign,n.createVerify=g.createVerify,n.Verify=g.Verify,n.createECDH=r("create-ecdh");var m=r("public-encrypt");n.publicEncrypt=m.publicEncrypt,n.privateEncrypt=m.privateEncrypt,n.publicDecrypt=m.publicDecrypt,n.privateDecrypt=m.privateDecrypt;var p=r("randomfill");n.randomFill=p.randomFill,n.randomFillSync=p.randomFillSync,n.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},n.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(r,i,n){(function(t,c){typeof n=="object"&&i!==void 0?i.exports=c():(t=typeof globalThis<"u"?globalThis:t||self).dayjs=c()})(void 0,(function(){var t=6e4,c=36e5,u="millisecond",f="second",o="minute",l="hour",g="day",m="week",p="month",_="quarter",y="year",h="date",d="Invalid Date",A=/^(\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,w={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(F){var L=["th","st","nd","rd"],R=F%100;return"["+F+(L[(R-20)%10]||L[R]||L[0])+"]"}},x=function(F,L,R){var U=String(F);return!U||U.length>=L?F:""+Array(L+1-U.length).join(R)+F},C={s:x,z:function(F){var L=-F.utcOffset(),R=Math.abs(L),U=Math.floor(R/60),V=R%60;return(L<=0?"+":"-")+x(U,2,"0")+":"+x(V,2,"0")},m:function F(L,R){if(L.date()<R.date())return-F(R,L);var U=12*(R.year()-L.year())+(R.month()-L.month()),V=L.clone().add(U,p),W=R-V<0,Q=L.clone().add(U+(W?-1:1),p);return+(-(U+(R-V)/(W?V-Q:Q-V))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:p,y,w:m,d:g,D:h,h:l,m:o,s:f,ms:u,Q:_}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},k="en",T={};T[k]=w;var S="$isDayjsObject",M=function(F){return F instanceof O||!(!F||!F[S])},P=function F(L,R,U){var V;if(!L)return k;if(typeof L=="string"){var W=L.toLowerCase();T[W]&&(V=W),R&&(T[W]=R,V=W);var Q=L.split("-");if(!V&&Q.length>1)return F(Q[0])}else{var le=L.name;T[le]=L,V=le}return!U&&V&&(k=V),V||!U&&k},N=function(F,L){if(M(F))return F.clone();var R=typeof L=="object"?L:{};return R.date=F,R.args=arguments,new O(R)},B=C;B.l=P,B.i=M,B.w=function(F,L){return N(F,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var O=(function(){function F(R){this.$L=P(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[S]=!0}var L=F.prototype;return L.parse=function(R){this.$d=(function(U){var V=U.date,W=U.utc;if(V===null)return new Date(NaN);if(B.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var Q=V.match(A);if(Q){var le=Q[2]-1||0,G=(Q[7]||"0").substring(0,3);return W?new Date(Date.UTC(Q[1],le,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,G)):new Date(Q[1],le,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,G)}}return new Date(V)})(R),this.init()},L.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},L.$utils=function(){return B},L.isValid=function(){return this.$d.toString()!==d},L.isSame=function(R,U){var V=N(R);return this.startOf(U)<=V&&V<=this.endOf(U)},L.isAfter=function(R,U){return N(R)<this.startOf(U)},L.isBefore=function(R,U){return this.endOf(U)<N(R)},L.$g=function(R,U,V){return B.u(R)?this[U]:this.set(V,R)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(R,U){var V=this,W=!!B.u(U)||U,Q=B.p(R),le=function(pe,ve){var ge=B.w(V.$u?Date.UTC(V.$y,ve,pe):new Date(V.$y,ve,pe),V);return W?ge:ge.endOf(g)},G=function(pe,ve){return B.w(V.toDate()[pe].apply(V.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(ve)),V)},fe=this.$W,ie=this.$M,he=this.$D,Y="set"+(this.$u?"UTC":"");switch(Q){case y:return W?le(1,0):le(31,11);case p:return W?le(1,ie):le(0,ie+1);case m:var K=this.$locale().weekStart||0,oe=(fe<K?fe+7:fe)-K;return le(W?he-oe:he+(6-oe),ie);case g:case h:return G(Y+"Hours",0);case l:return G(Y+"Minutes",1);case o:return G(Y+"Seconds",2);case f:return G(Y+"Milliseconds",3);default:return this.clone()}},L.endOf=function(R){return this.startOf(R,!1)},L.$set=function(R,U){var V,W=B.p(R),Q="set"+(this.$u?"UTC":""),le=(V={},V[g]=Q+"Date",V[h]=Q+"Date",V[p]=Q+"Month",V[y]=Q+"FullYear",V[l]=Q+"Hours",V[o]=Q+"Minutes",V[f]=Q+"Seconds",V[u]=Q+"Milliseconds",V)[W],G=W===g?this.$D+(U-this.$W):U;if(W===p||W===y){var fe=this.clone().set(h,1);fe.$d[le](G),fe.init(),this.$d=fe.set(h,Math.min(this.$D,fe.daysInMonth())).$d}else le&&this.$d[le](G);return this.init(),this},L.set=function(R,U){return this.clone().$set(R,U)},L.get=function(R){return this[B.p(R)]()},L.add=function(R,U){var V,W=this;R=Number(R);var Q=B.p(U),le=function(ie){var he=N(W);return B.w(he.date(he.date()+Math.round(ie*R)),W)};if(Q===p)return this.set(p,this.$M+R);if(Q===y)return this.set(y,this.$y+R);if(Q===g)return le(1);if(Q===m)return le(7);var G=(V={},V[o]=t,V[l]=c,V[f]=1e3,V)[Q]||1,fe=this.$d.getTime()+R*G;return B.w(fe,this)},L.subtract=function(R,U){return this.add(-1*R,U)},L.format=function(R){var U=this,V=this.$locale();if(!this.isValid())return V.invalidDate||d;var W=R||"YYYY-MM-DDTHH:mm:ssZ",Q=B.z(this),le=this.$H,G=this.$m,fe=this.$M,ie=V.weekdays,he=V.months,Y=V.meridiem,K=function(ve,ge,ue,Te){return ve&&(ve[ge]||ve(U,W))||ue[ge].slice(0,Te)},oe=function(ve){return B.s(le%12||12,ve,"0")},pe=Y||function(ve,ge,ue){var Te=ve<12?"AM":"PM";return ue?Te.toLowerCase():Te};return W.replace(v,(function(ve,ge){return ge||(function(ue){switch(ue){case"YY":return String(U.$y).slice(-2);case"YYYY":return B.s(U.$y,4,"0");case"M":return fe+1;case"MM":return B.s(fe+1,2,"0");case"MMM":return K(V.monthsShort,fe,he,3);case"MMMM":return K(he,fe);case"D":return U.$D;case"DD":return B.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return K(V.weekdaysMin,U.$W,ie,2);case"ddd":return K(V.weekdaysShort,U.$W,ie,3);case"dddd":return ie[U.$W];case"H":return String(le);case"HH":return B.s(le,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return pe(le,G,!0);case"A":return pe(le,G,!1);case"m":return String(G);case"mm":return B.s(G,2,"0");case"s":return String(U.$s);case"ss":return B.s(U.$s,2,"0");case"SSS":return B.s(U.$ms,3,"0");case"Z":return Q}return null})(ve)||Q.replace(":","")}))},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(R,U,V){var W,Q=this,le=B.p(U),G=N(R),fe=(G.utcOffset()-this.utcOffset())*t,ie=this-G,he=function(){return B.m(Q,G)};switch(le){case y:W=he()/12;break;case p:W=he();break;case _:W=he()/3;break;case m:W=(ie-fe)/6048e5;break;case g:W=(ie-fe)/864e5;break;case l:W=ie/c;break;case o:W=ie/t;break;case f:W=ie/1e3;break;default:W=ie}return V?W:B.a(W)},L.daysInMonth=function(){return this.endOf(p).$D},L.$locale=function(){return T[this.$L]},L.locale=function(R,U){if(!R)return this.$L;var V=this.clone(),W=P(R,U,!0);return W&&(V.$L=W),V},L.clone=function(){return B.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},F})(),I=O.prototype;return N.prototype=I,[["$ms",u],["$s",f],["$m",o],["$H",l],["$W",g],["$M",p],["$y",y],["$D",h]].forEach((function(F){I[F[1]]=function(L){return this.$g(L,F[0],F[1])}})),N.extend=function(F,L){return F.$i||(F(L,O,N),F.$i=!0),N},N.locale=P,N.isDayjs=M,N.unix=function(F){return N(1e3*F)},N.en=T[k],N.Ls=T,N.p={},N}))},{}],392:[function(r,i,n){(function(t,c){typeof n=="object"&&i!==void 0?i.exports=c():(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_customParseFormat=c()})(void 0,(function(){var t={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"},c=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,u=/\d\d/,f=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},g=function(A){return(A=+A)+(A>68?1900:2e3)},m=function(A){return function(v){this[A]=+v}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(A){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),x=60*w[1]+(+w[2]||0);return x===0?0:w[0]==="+"?-x:x})(A)}],_=function(A){var v=l[A];return v&&(v.indexOf?v:v.s.concat(v.f))},y=function(A,v){var w,x=l.meridiem;if(x){for(var C=1;C<=24;C+=1)if(A.indexOf(x(C,0,v))>-1){w=C>12;break}}else w=A===(v?"pm":"PM");return w},h={A:[o,function(A){this.afternoon=y(A,!1)}],a:[o,function(A){this.afternoon=y(A,!0)}],S:[/\d/,function(A){this.milliseconds=100*+A}],SS:[u,function(A){this.milliseconds=10*+A}],SSS:[/\d{3}/,function(A){this.milliseconds=+A}],s:[f,m("seconds")],ss:[f,m("seconds")],m:[f,m("minutes")],mm:[f,m("minutes")],H:[f,m("hours")],h:[f,m("hours")],HH:[f,m("hours")],hh:[f,m("hours")],D:[f,m("day")],DD:[u,m("day")],Do:[o,function(A){var v=l.ordinal,w=A.match(/\d+/);if(this.day=w[0],v)for(var x=1;x<=31;x+=1)v(x).replace(/\[|\]/g,"")===A&&(this.day=x)}],M:[f,m("month")],MM:[u,m("month")],MMM:[o,function(A){var v=_("months"),w=(_("monthsShort")||v.map((function(x){return x.slice(0,3)}))).indexOf(A)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[o,function(A){var v=_("months").indexOf(A)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,m("year")],YY:[u,function(A){this.year=g(A)}],YYYY:[/\d{4}/,m("year")],Z:p,ZZ:p};function d(A){var v,w;v=A,w=l&&l.formats;for(var x=(A=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(N,B,O){var I=O&&O.toUpperCase();return B||w[O]||t[O]||w[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,L,R){return L||R.slice(1)}))}))).match(c),C=x.length,k=0;k<C;k+=1){var T=x[k],S=h[T],M=S&&S[0],P=S&&S[1];x[k]=P?{regex:M,parser:P}:T.replace(/^\[|\]$/g,"")}return function(N){for(var B={},O=0,I=0;O<C;O+=1){var F=x[O];if(typeof F=="string")I+=F.length;else{var L=F.regex,R=F.parser,U=N.slice(I),V=L.exec(U)[0];R.call(B,V),N=N.replace(V,"")}}return(function(W){var Q=W.afternoon;if(Q!==void 0){var le=W.hours;Q?le<12&&(W.hours+=12):le===12&&(W.hours=0),delete W.afternoon}})(B),B}}return function(A,v,w){w.p.customParseFormat=!0,A&&A.parseTwoDigitYear&&(g=A.parseTwoDigitYear);var x=v.prototype,C=x.parse;x.parse=function(k){var T=k.date,S=k.utc,M=k.args;this.$u=S;var P=M[1];if(typeof P=="string"){var N=M[2]===!0,B=M[3]===!0,O=N||B,I=M[2];B&&(I=M[2]),l=this.$locale(),!N&&I&&(l=w.Ls[I]),this.$d=(function(U,V,W){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*U);var Q=d(V)(U),le=Q.year,G=Q.month,fe=Q.day,ie=Q.hours,he=Q.minutes,Y=Q.seconds,K=Q.milliseconds,oe=Q.zone,pe=new Date,ve=fe||(le||G?1:pe.getDate()),ge=le||pe.getFullYear(),ue=0;le&&!G||(ue=G>0?G-1:pe.getMonth());var Te=ie||0,Ee=he||0,ye=Y||0,Se=K||0;return oe?new Date(Date.UTC(ge,ue,ve,Te,Ee,ye,Se+60*oe.offset*1e3)):W?new Date(Date.UTC(ge,ue,ve,Te,Ee,ye,Se)):new Date(ge,ue,ve,Te,Ee,ye,Se)}catch{return new Date("")}})(T,P,S),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),O&&T!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var F=P.length,L=1;L<=F;L+=1){M[1]=P[L-1];var R=w.apply(this,M);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}L===F&&(this.$d=new Date(""))}else C.call(this,k)}}}))},{}],393:[function(r,i,n){(function(t,c){typeof n=="object"&&i!==void 0?i.exports=c():(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_utc=c()})(void 0,(function(){var t="minute",c=/[+-]\d\d(?::?\d\d)?/g,u=/([+-]|\d\d)/g;return function(f,o,l){var g=o.prototype;l.utc=function(A){var v={date:A,utc:!0,args:arguments};return new o(v)},g.utc=function(A){var v=l(this.toDate(),{locale:this.$L,utc:!0});return A?v.add(this.utcOffset(),t):v},g.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var m=g.parse;g.parse=function(A){A.utc&&(this.$u=!0),this.$utils().u(A.$offset)||(this.$offset=A.$offset),m.call(this,A)};var p=g.init;g.init=function(){if(this.$u){var A=this.$d;this.$y=A.getUTCFullYear(),this.$M=A.getUTCMonth(),this.$D=A.getUTCDate(),this.$W=A.getUTCDay(),this.$H=A.getUTCHours(),this.$m=A.getUTCMinutes(),this.$s=A.getUTCSeconds(),this.$ms=A.getUTCMilliseconds()}else p.call(this)};var _=g.utcOffset;g.utcOffset=function(A,v){var w=this.$utils().u;if(w(A))return this.$u?0:w(this.$offset)?_.call(this):this.$offset;if(typeof A=="string"&&(A=(function(T){T===void 0&&(T="");var S=T.match(c);if(!S)return null;var M=(""+S[0]).match(u)||["-",0,0],P=M[0],N=60*+M[1]+ +M[2];return N===0?0:P==="+"?N:-N})(A))===null)return this;var x=Math.abs(A)<=16?60*A:A,C=this;if(v)return C.$offset=x,C.$u=A===0,C;if(A!==0){var k=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(C=this.local().add(x+k,t)).$offset=x,C.$x.$localOffset=k}else C=this.utc();return C};var y=g.format;g.format=function(A){var v=A||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,v)},g.valueOf=function(){var A=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*A},g.isUTC=function(){return!!this.$u},g.toISOString=function(){return this.toDate().toISOString()},g.toString=function(){return this.toDate().toUTCString()};var h=g.toDate;g.toDate=function(A){return A==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var d=g.diff;g.diff=function(A,v,w){if(A&&this.$u===A.$u)return d.call(this,A,v,w);var x=this.local(),C=l(A).local();return d.call(x,C,v,w)}}}))},{}],394:[function(r,i,n){n.utils=r("./des/utils"),n.Cipher=r("./des/cipher"),n.DES=r("./des/des"),n.CBC=r("./des/cbc"),n.EDE=r("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(r,i,n){var t=r("minimalistic-assert"),c=r("inherits"),u={};function f(o){t.equal(o.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=o[l]}n.instantiate=function(o){function l(_){o.call(this,_),this._cbcInit()}c(l,o);for(var g=Object.keys(u),m=0;m<g.length;m++){var p=g[m];l.prototype[p]=u[p]}return l.create=function(_){return new l(_)},l},u._cbcInit=function(){var o=new f(this.options.iv);this._cbcState=o},u._update=function(o,l,g,m){var p=this._cbcState,_=this.constructor.super_.prototype,y=p.iv;if(this.type==="encrypt"){for(var h=0;h<this.blockSize;h++)y[h]^=o[l+h];for(_._update.call(this,y,0,g,m),h=0;h<this.blockSize;h++)y[h]=g[m+h]}else{for(_._update.call(this,o,l,g,m),h=0;h<this.blockSize;h++)g[m+h]^=y[h];for(h=0;h<this.blockSize;h++)y[h]=o[l+h]}}},{inherits:440,"minimalistic-assert":453}],396:[function(r,i,n){var t=r("minimalistic-assert");function c(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=u.padding!==!1}i.exports=c,c.prototype._init=function(){},c.prototype.update=function(u){return u.length===0?[]:this.type==="decrypt"?this._updateDecrypt(u):this._updateEncrypt(u)},c.prototype._buffer=function(u,f){for(var o=Math.min(this.buffer.length-this.bufferOff,u.length-f),l=0;l<o;l++)this.buffer[this.bufferOff+l]=u[f+l];return this.bufferOff+=o,o},c.prototype._flushBuffer=function(u,f){return this._update(this.buffer,0,u,f),this.bufferOff=0,this.blockSize},c.prototype._updateEncrypt=function(u){var f=0,o=0,l=(this.bufferOff+u.length)/this.blockSize|0,g=new Array(l*this.blockSize);this.bufferOff!==0&&(f+=this._buffer(u,f),this.bufferOff===this.buffer.length&&(o+=this._flushBuffer(g,o)));for(var m=u.length-(u.length-f)%this.blockSize;f<m;f+=this.blockSize)this._update(u,f,g,o),o+=this.blockSize;for(;f<u.length;f++,this.bufferOff++)this.buffer[this.bufferOff]=u[f];return g},c.prototype._updateDecrypt=function(u){for(var f=0,o=0,l=Math.ceil((this.bufferOff+u.length)/this.blockSize)-1,g=new Array(l*this.blockSize);l>0;l--)f+=this._buffer(u,f),o+=this._flushBuffer(g,o);return f+=this._buffer(u,f),g},c.prototype.final=function(u){var f,o;return u&&(f=this.update(u)),o=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),f?f.concat(o):o},c.prototype._pad=function(u,f){if(f===0)return!1;for(;f<u.length;)u[f++]=0;return!0},c.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var u=new Array(this.blockSize);return this._update(this.buffer,0,u,0),u},c.prototype._unpad=function(u){return u},c.prototype._finalDecrypt=function(){t.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var u=new Array(this.blockSize);return this._flushBuffer(u,0),this._unpad(u)}},{"minimalistic-assert":453}],397:[function(r,i,n){var t=r("minimalistic-assert"),c=r("inherits"),u=r("./utils"),f=r("./cipher");function o(){this.tmp=new Array(2),this.keys=null}function l(m){f.call(this,m);var p=new o;this._desState=p,this.deriveKeys(p,m.key)}c(l,f),i.exports=l,l.create=function(m){return new l(m)};var g=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(m,p){m.keys=new Array(32),t.equal(p.length,this.blockSize,"Invalid key length");var _=u.readUInt32BE(p,0),y=u.readUInt32BE(p,4);u.pc1(_,y,m.tmp,0),_=m.tmp[0],y=m.tmp[1];for(var h=0;h<m.keys.length;h+=2){var d=g[h>>>1];_=u.r28shl(_,d),y=u.r28shl(y,d),u.pc2(_,y,m.keys,h)}},l.prototype._update=function(m,p,_,y){var h=this._desState,d=u.readUInt32BE(m,p),A=u.readUInt32BE(m,p+4);u.ip(d,A,h.tmp,0),d=h.tmp[0],A=h.tmp[1],this.type==="encrypt"?this._encrypt(h,d,A,h.tmp,0):this._decrypt(h,d,A,h.tmp,0),d=h.tmp[0],A=h.tmp[1],u.writeUInt32BE(_,d,y),u.writeUInt32BE(_,A,y+4)},l.prototype._pad=function(m,p){if(this.padding===!1)return!1;for(var _=m.length-p,y=p;y<m.length;y++)m[y]=_;return!0},l.prototype._unpad=function(m){if(this.padding===!1)return m;for(var p=m[m.length-1],_=m.length-p;_<m.length;_++)t.equal(m[_],p);return m.slice(0,m.length-p)},l.prototype._encrypt=function(m,p,_,y,h){for(var d=p,A=_,v=0;v<m.keys.length;v+=2){var w=m.keys[v],x=m.keys[v+1];u.expand(A,m.tmp,0),w^=m.tmp[0],x^=m.tmp[1];var C=u.substitute(w,x),k=A;A=(d^u.permute(C))>>>0,d=k}u.rip(A,d,y,h)},l.prototype._decrypt=function(m,p,_,y,h){for(var d=_,A=p,v=m.keys.length-2;v>=0;v-=2){var w=m.keys[v],x=m.keys[v+1];u.expand(d,m.tmp,0),w^=m.tmp[0],x^=m.tmp[1];var C=u.substitute(w,x),k=d;d=(A^u.permute(C))>>>0,A=k}u.rip(d,A,y,h)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(r,i,n){var t=r("minimalistic-assert"),c=r("inherits"),u=r("./cipher"),f=r("./des");function o(g,m){t.equal(m.length,24,"Invalid key length");var p=m.slice(0,8),_=m.slice(8,16),y=m.slice(16,24);this.ciphers=g==="encrypt"?[f.create({type:"encrypt",key:p}),f.create({type:"decrypt",key:_}),f.create({type:"encrypt",key:y})]:[f.create({type:"decrypt",key:y}),f.create({type:"encrypt",key:_}),f.create({type:"decrypt",key:p})]}function l(g){u.call(this,g);var m=new o(this.type,this.options.key);this._edeState=m}c(l,u),i.exports=l,l.create=function(g){return new l(g)},l.prototype._update=function(g,m,p,_){var y=this._edeState;y.ciphers[0]._update(g,m,p,_),y.ciphers[1]._update(p,_,p,_),y.ciphers[2]._update(p,_,p,_)},l.prototype._pad=f.prototype._pad,l.prototype._unpad=f.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(r,i,n){n.readUInt32BE=function(f,o){return(f[0+o]<<24|f[1+o]<<16|f[2+o]<<8|f[3+o])>>>0},n.writeUInt32BE=function(f,o,l){f[0+l]=o>>>24,f[1+l]=o>>>16&255,f[2+l]=o>>>8&255,f[3+l]=255&o},n.ip=function(f,o,l,g){for(var m=0,p=0,_=6;_>=0;_-=2){for(var y=0;y<=24;y+=8)m<<=1,m|=o>>>y+_&1;for(y=0;y<=24;y+=8)m<<=1,m|=f>>>y+_&1}for(_=6;_>=0;_-=2){for(y=1;y<=25;y+=8)p<<=1,p|=o>>>y+_&1;for(y=1;y<=25;y+=8)p<<=1,p|=f>>>y+_&1}l[g+0]=m>>>0,l[g+1]=p>>>0},n.rip=function(f,o,l,g){for(var m=0,p=0,_=0;_<4;_++)for(var y=24;y>=0;y-=8)m<<=1,m|=o>>>y+_&1,m<<=1,m|=f>>>y+_&1;for(_=4;_<8;_++)for(y=24;y>=0;y-=8)p<<=1,p|=o>>>y+_&1,p<<=1,p|=f>>>y+_&1;l[g+0]=m>>>0,l[g+1]=p>>>0},n.pc1=function(f,o,l,g){for(var m=0,p=0,_=7;_>=5;_--){for(var y=0;y<=24;y+=8)m<<=1,m|=o>>y+_&1;for(y=0;y<=24;y+=8)m<<=1,m|=f>>y+_&1}for(y=0;y<=24;y+=8)m<<=1,m|=o>>y+_&1;for(_=1;_<=3;_++){for(y=0;y<=24;y+=8)p<<=1,p|=o>>y+_&1;for(y=0;y<=24;y+=8)p<<=1,p|=f>>y+_&1}for(y=0;y<=24;y+=8)p<<=1,p|=f>>y+_&1;l[g+0]=m>>>0,l[g+1]=p>>>0},n.r28shl=function(f,o){return f<<o&268435455|f>>>28-o};var t=[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];n.pc2=function(f,o,l,g){for(var m=0,p=0,_=t.length>>>1,y=0;y<_;y++)m<<=1,m|=f>>>t[y]&1;for(y=_;y<t.length;y++)p<<=1,p|=o>>>t[y]&1;l[g+0]=m>>>0,l[g+1]=p>>>0},n.expand=function(f,o,l){var g=0,m=0;g=(1&f)<<5|f>>>27;for(var p=23;p>=15;p-=4)g<<=6,g|=f>>>p&63;for(p=11;p>=3;p-=4)m|=f>>>p&63,m<<=6;m|=(31&f)<<1|f>>>31,o[l+0]=g>>>0,o[l+1]=m>>>0};var c=[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];n.substitute=function(f,o){for(var l=0,g=0;g<4;g++)l<<=4,l|=c[64*g+(f>>>18-6*g&63)];for(g=0;g<4;g++)l<<=4,l|=c[256+64*g+(o>>>18-6*g&63)];return l>>>0};var u=[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];n.permute=function(f){for(var o=0,l=0;l<u.length;l++)o<<=1,o|=f>>>u[l]&1;return o>>>0},n.padSplit=function(f,o,l){for(var g=f.toString(2);g.length<o;)g="0"+g;for(var m=[],p=0;p<o;p+=l)m.push(g.slice(p,p+l));return m.join(" ")}},{}],400:[function(r,i,n){(function(t){(function(){var c=r("./lib/generatePrime"),u=r("./lib/primes.json"),f=r("./lib/dh"),o={binary:!0,hex:!0,base64:!0};n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=function(l){var g=new t(u[l].prime,"hex"),m=new t(u[l].gen,"hex");return new f(g,m)},n.createDiffieHellman=n.DiffieHellman=function l(g,m,p,_){return t.isBuffer(m)||o[m]===void 0?l(g,"binary",m,p):(m=m||"binary",_=_||"binary",p=p||new t([2]),t.isBuffer(p)||(p=new t(p,_)),typeof g=="number"?new f(c(g,p),p,!0):(t.isBuffer(g)||(g=new t(g,m)),new f(g,p,!0)))}}).call(this)}).call(this,r("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(r,i,n){(function(t){(function(){var c=r("bn.js"),u=new(r("miller-rabin")),f=new c(24),o=new c(11),l=new c(10),g=new c(3),m=new c(7),p=r("./generatePrime"),_=r("randombytes");function y(w,x){return x=x||"utf8",t.isBuffer(w)||(w=new t(w,x)),this._pub=new c(w),this}function h(w,x){return x=x||"utf8",t.isBuffer(w)||(w=new t(w,x)),this._priv=new c(w),this}i.exports=A;var d={};function A(w,x,C){this.setGenerator(x),this.__prime=new c(w),this._prime=c.mont(this.__prime),this._primeLen=w.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,C?(this.setPublicKey=y,this.setPrivateKey=h):this._primeCode=8}function v(w,x){var C=new t(w.toArray());return x?C.toString(x):C}Object.defineProperty(A.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=(function(w,x){var C=x.toString("hex"),k=[C,w.toString(16)].join("_");if(k in d)return d[k];var T,S=0;if(w.isEven()||!p.simpleSieve||!p.fermatTest(w)||!u.test(w))return S+=1,S+=C==="02"||C==="05"?8:4,d[k]=S,S;switch(u.test(w.shrn(1))||(S+=2),C){case"02":w.mod(f).cmp(o)&&(S+=8);break;case"05":(T=w.mod(l)).cmp(g)&&T.cmp(m)&&(S+=8);break;default:S+=4}return d[k]=S,S})(this.__prime,this.__gen)),this._primeCode}}),A.prototype.generateKeys=function(){return this._priv||(this._priv=new c(_(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},A.prototype.computeSecret=function(w){var x=(w=(w=new c(w)).toRed(this._prime)).redPow(this._priv).fromRed(),C=new t(x.toArray()),k=this.getPrime();if(C.length<k.length){var T=new t(k.length-C.length);T.fill(0),C=t.concat([T,C])}return C},A.prototype.getPublicKey=function(w){return v(this._pub,w)},A.prototype.getPrivateKey=function(w){return v(this._priv,w)},A.prototype.getPrime=function(w){return v(this.__prime,w)},A.prototype.getGenerator=function(w){return v(this._gen,w)},A.prototype.setGenerator=function(w,x){return x=x||"utf8",t.isBuffer(w)||(w=new t(w,x)),this.__gen=w,this._gen=new c(w),this}}).call(this)}).call(this,r("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(r,i,n){var t=r("randombytes");i.exports=w,w.simpleSieve=A,w.fermatTest=v;var c=r("bn.js"),u=new c(24),f=new(r("miller-rabin")),o=new c(1),l=new c(2),g=new c(5),m=(new c(16),new c(8),new c(10)),p=new c(3),_=(new c(7),new c(11)),y=new c(4),h=(new c(12),null);function d(){if(h!==null)return h;var x=[];x[0]=2;for(var C=1,k=3;k<1048576;k+=2){for(var T=Math.ceil(Math.sqrt(k)),S=0;S<C&&x[S]<=T&&k%x[S]!=0;S++);C!==S&&x[S]<=T||(x[C++]=k)}return h=x,x}function A(x){for(var C=d(),k=0;k<C.length;k++)if(x.modn(C[k])===0)return x.cmpn(C[k])===0;return!0}function v(x){var C=c.mont(x);return l.toRed(C).redPow(x.subn(1)).fromRed().cmpn(1)===0}function w(x,C){if(x<16)return new c(C===2||C===5?[140,123]:[140,39]);var k,T;for(C=new c(C);;){for(k=new c(t(Math.ceil(x/8)));k.bitLength()>x;)k.ishrn(1);if(k.isEven()&&k.iadd(o),k.testn(1)||k.iadd(l),C.cmp(l)){if(!C.cmp(g))for(;k.mod(m).cmp(p);)k.iadd(y)}else for(;k.mod(u).cmp(_);)k.iadd(y);if(A(T=k.shrn(1))&&A(k)&&v(T)&&v(k)&&f.test(T)&&f.test(k))return k}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(r,i,n){i.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(r,i,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],405:[function(r,i,n){var t=n;t.version=r("../package.json").version,t.utils=r("./elliptic/utils"),t.rand=r("brorand"),t.curve=r("./elliptic/curve"),t.curves=r("./elliptic/curves"),t.ec=r("./elliptic/ec"),t.eddsa=r("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(r,i,n){var t=r("bn.js"),c=r("../utils"),u=c.getNAF,f=c.getJSF,o=c.assert;function l(m,p){this.type=m,this.p=new t(p.p,16),this.red=p.prime?t.red(p.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=p.n&&new t(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.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 _=this.n&&this.p.div(this.n);!_||_.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function g(m,p){this.curve=m,this.type=p,this.precomputed=null}i.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(m,p){o(m.precomputed);var _=m._getDoubles(),y=u(p,1,this._bitLength),h=(1<<_.step+1)-(_.step%2==0?2:1);h/=3;var d,A,v=[];for(d=0;d<y.length;d+=_.step){A=0;for(var w=d+_.step-1;w>=d;w--)A=(A<<1)+y[w];v.push(A)}for(var x=this.jpoint(null,null,null),C=this.jpoint(null,null,null),k=h;k>0;k--){for(d=0;d<v.length;d++)(A=v[d])===k?C=C.mixedAdd(_.points[d]):A===-k&&(C=C.mixedAdd(_.points[d].neg()));x=x.add(C)}return x.toP()},l.prototype._wnafMul=function(m,p){var _=4,y=m._getNAFPoints(_);_=y.wnd;for(var h=y.points,d=u(p,_,this._bitLength),A=this.jpoint(null,null,null),v=d.length-1;v>=0;v--){for(var w=0;v>=0&&d[v]===0;v--)w++;if(v>=0&&w++,A=A.dblp(w),v<0)break;var x=d[v];o(x!==0),A=m.type==="affine"?x>0?A.mixedAdd(h[x-1>>1]):A.mixedAdd(h[-x-1>>1].neg()):x>0?A.add(h[x-1>>1]):A.add(h[-x-1>>1].neg())}return m.type==="affine"?A.toP():A},l.prototype._wnafMulAdd=function(m,p,_,y,h){var d,A,v,w=this._wnafT1,x=this._wnafT2,C=this._wnafT3,k=0;for(d=0;d<y;d++){var T=(v=p[d])._getNAFPoints(m);w[d]=T.wnd,x[d]=T.points}for(d=y-1;d>=1;d-=2){var S=d-1,M=d;if(w[S]===1&&w[M]===1){var P=[p[S],null,null,p[M]];p[S].y.cmp(p[M].y)===0?(P[1]=p[S].add(p[M]),P[2]=p[S].toJ().mixedAdd(p[M].neg())):p[S].y.cmp(p[M].y.redNeg())===0?(P[1]=p[S].toJ().mixedAdd(p[M]),P[2]=p[S].add(p[M].neg())):(P[1]=p[S].toJ().mixedAdd(p[M]),P[2]=p[S].toJ().mixedAdd(p[M].neg()));var N=[-3,-1,-5,-7,0,7,5,1,3],B=f(_[S],_[M]);for(k=Math.max(B[0].length,k),C[S]=new Array(k),C[M]=new Array(k),A=0;A<k;A++){var O=0|B[0][A],I=0|B[1][A];C[S][A]=N[3*(O+1)+(I+1)],C[M][A]=0,x[S]=P}}else C[S]=u(_[S],w[S],this._bitLength),C[M]=u(_[M],w[M],this._bitLength),k=Math.max(C[S].length,k),k=Math.max(C[M].length,k)}var F=this.jpoint(null,null,null),L=this._wnafT4;for(d=k;d>=0;d--){for(var R=0;d>=0;){var U=!0;for(A=0;A<y;A++)L[A]=0|C[A][d],L[A]!==0&&(U=!1);if(!U)break;R++,d--}if(d>=0&&R++,F=F.dblp(R),d<0)break;for(A=0;A<y;A++){var V=L[A];V!==0&&(V>0?v=x[A][V-1>>1]:V<0&&(v=x[A][-V-1>>1].neg()),F=v.type==="affine"?F.mixedAdd(v):F.add(v))}}for(d=0;d<y;d++)x[d]=null;return h?F:F.toP()},l.BasePoint=g,g.prototype.eq=function(){throw new Error("Not implemented")},g.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(m,p){m=c.toArray(m,p);var _=this.p.byteLength();if((m[0]===4||m[0]===6||m[0]===7)&&m.length-1==2*_)return m[0]===6?o(m[m.length-1]%2==0):m[0]===7&&o(m[m.length-1]%2==1),this.point(m.slice(1,1+_),m.slice(1+_,1+2*_));if((m[0]===2||m[0]===3)&&m.length-1===_)return this.pointFromX(m.slice(1,1+_),m[0]===3);throw new Error("Unknown point format")},g.prototype.encodeCompressed=function(m){return this.encode(m,!0)},g.prototype._encode=function(m){var p=this.curve.p.byteLength(),_=this.getX().toArray("be",p);return m?[this.getY().isEven()?2:3].concat(_):[4].concat(_,this.getY().toArray("be",p))},g.prototype.encode=function(m,p){return c.encode(this._encode(p),m)},g.prototype.precompute=function(m){if(this.precomputed)return this;var p={doubles:null,naf:null,beta:null};return p.naf=this._getNAFPoints(8),p.doubles=this._getDoubles(4,m),p.beta=this._getBeta(),this.precomputed=p,this},g.prototype._hasDoubles=function(m){if(!this.precomputed)return!1;var p=this.precomputed.doubles;return!!p&&p.points.length>=Math.ceil((m.bitLength()+1)/p.step)},g.prototype._getDoubles=function(m,p){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var _=[this],y=this,h=0;h<p;h+=m){for(var d=0;d<m;d++)y=y.dbl();_.push(y)}return{step:m,points:_}},g.prototype._getNAFPoints=function(m){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var p=[this],_=(1<<m)-1,y=_===1?null:this.dbl(),h=1;h<_;h++)p[h]=p[h-1].add(y);return{wnd:m,points:p}},g.prototype._getBeta=function(){return null},g.prototype.dblp=function(m){for(var p=this,_=0;_<m;_++)p=p.dbl();return p}},{"../utils":419,"bn.js":420}],407:[function(r,i,n){var t=r("../utils"),c=r("bn.js"),u=r("inherits"),f=r("./base"),o=t.assert;function l(m){this.twisted=(0|m.a)!=1,this.mOneA=this.twisted&&(0|m.a)==-1,this.extended=this.mOneA,f.call(this,"edwards",m),this.a=new c(m.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new c(m.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new c(m.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|m.c)==1}function g(m,p,_,y,h){f.BasePoint.call(this,m,"projective"),p===null&&_===null&&y===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 c(p,16),this.y=new c(_,16),this.z=y?new c(y,16):this.curve.one,this.t=h&&new c(h,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()))))}u(l,f),i.exports=l,l.prototype._mulA=function(m){return this.mOneA?m.redNeg():this.a.redMul(m)},l.prototype._mulC=function(m){return this.oneC?m:this.c.redMul(m)},l.prototype.jpoint=function(m,p,_,y){return this.point(m,p,_,y)},l.prototype.pointFromX=function(m,p){(m=new c(m,16)).red||(m=m.toRed(this.red));var _=m.redSqr(),y=this.c2.redSub(this.a.redMul(_)),h=this.one.redSub(this.c2.redMul(this.d).redMul(_)),d=y.redMul(h.redInvm()),A=d.redSqrt();if(A.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var v=A.fromRed().isOdd();return(p&&!v||!p&&v)&&(A=A.redNeg()),this.point(m,A)},l.prototype.pointFromY=function(m,p){(m=new c(m,16)).red||(m=m.toRed(this.red));var _=m.redSqr(),y=_.redSub(this.c2),h=_.redMul(this.d).redMul(this.c2).redSub(this.a),d=y.redMul(h.redInvm());if(d.cmp(this.zero)===0){if(p)throw new Error("invalid point");return this.point(this.zero,m)}var A=d.redSqrt();if(A.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");return A.fromRed().isOdd()!==p&&(A=A.redNeg()),this.point(A,m)},l.prototype.validate=function(m){if(m.isInfinity())return!0;m.normalize();var p=m.x.redSqr(),_=m.y.redSqr(),y=p.redMul(this.a).redAdd(_),h=this.c2.redMul(this.one.redAdd(this.d.redMul(p).redMul(_)));return y.cmp(h)===0},u(g,f.BasePoint),l.prototype.pointFromJSON=function(m){return g.fromJSON(this,m)},l.prototype.point=function(m,p,_,y){return new g(this,m,p,_,y)},g.fromJSON=function(m,p){return new g(m,p[0],p[1],p[2])},g.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)+">"},g.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},g.prototype._extDbl=function(){var m=this.x.redSqr(),p=this.y.redSqr(),_=this.z.redSqr();_=_.redIAdd(_);var y=this.curve._mulA(m),h=this.x.redAdd(this.y).redSqr().redISub(m).redISub(p),d=y.redAdd(p),A=d.redSub(_),v=y.redSub(p),w=h.redMul(A),x=d.redMul(v),C=h.redMul(v),k=A.redMul(d);return this.curve.point(w,x,k,C)},g.prototype._projDbl=function(){var m,p,_,y,h,d,A=this.x.redAdd(this.y).redSqr(),v=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var x=(y=this.curve._mulA(v)).redAdd(w);this.zOne?(m=A.redSub(v).redSub(w).redMul(x.redSub(this.curve.two)),p=x.redMul(y.redSub(w)),_=x.redSqr().redSub(x).redSub(x)):(h=this.z.redSqr(),d=x.redSub(h).redISub(h),m=A.redSub(v).redISub(w).redMul(d),p=x.redMul(y.redSub(w)),_=x.redMul(d))}else y=v.redAdd(w),h=this.curve._mulC(this.z).redSqr(),d=y.redSub(h).redSub(h),m=this.curve._mulC(A.redISub(y)).redMul(d),p=this.curve._mulC(y).redMul(v.redISub(w)),_=y.redMul(d);return this.curve.point(m,p,_)},g.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},g.prototype._extAdd=function(m){var p=this.y.redSub(this.x).redMul(m.y.redSub(m.x)),_=this.y.redAdd(this.x).redMul(m.y.redAdd(m.x)),y=this.t.redMul(this.curve.dd).redMul(m.t),h=this.z.redMul(m.z.redAdd(m.z)),d=_.redSub(p),A=h.redSub(y),v=h.redAdd(y),w=_.redAdd(p),x=d.redMul(A),C=v.redMul(w),k=d.redMul(w),T=A.redMul(v);return this.curve.point(x,C,T,k)},g.prototype._projAdd=function(m){var p,_,y=this.z.redMul(m.z),h=y.redSqr(),d=this.x.redMul(m.x),A=this.y.redMul(m.y),v=this.curve.d.redMul(d).redMul(A),w=h.redSub(v),x=h.redAdd(v),C=this.x.redAdd(this.y).redMul(m.x.redAdd(m.y)).redISub(d).redISub(A),k=y.redMul(w).redMul(C);return this.curve.twisted?(p=y.redMul(x).redMul(A.redSub(this.curve._mulA(d))),_=w.redMul(x)):(p=y.redMul(x).redMul(A.redSub(d)),_=this.curve._mulC(w).redMul(x)),this.curve.point(k,p,_)},g.prototype.add=function(m){return this.isInfinity()?m:m.isInfinity()?this:this.curve.extended?this._extAdd(m):this._projAdd(m)},g.prototype.mul=function(m){return this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve._wnafMul(this,m)},g.prototype.mulAdd=function(m,p,_){return this.curve._wnafMulAdd(1,[this,p],[m,_],2,!1)},g.prototype.jmulAdd=function(m,p,_){return this.curve._wnafMulAdd(1,[this,p],[m,_],2,!0)},g.prototype.normalize=function(){if(this.zOne)return this;var m=this.z.redInvm();return this.x=this.x.redMul(m),this.y=this.y.redMul(m),this.t&&(this.t=this.t.redMul(m)),this.z=this.curve.one,this.zOne=!0,this},g.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},g.prototype.getX=function(){return this.normalize(),this.x.fromRed()},g.prototype.getY=function(){return this.normalize(),this.y.fromRed()},g.prototype.eq=function(m){return this===m||this.getX().cmp(m.getX())===0&&this.getY().cmp(m.getY())===0},g.prototype.eqXToP=function(m){var p=m.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(p)===0)return!0;for(var _=m.clone(),y=this.curve.redN.redMul(this.z);;){if(_.iadd(this.curve.n),_.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(y),this.x.cmp(p)===0)return!0}},g.prototype.toP=g.prototype.normalize,g.prototype.mixedAdd=g.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(r,i,n){var t=n;t.base=r("./base"),t.short=r("./short"),t.mont=r("./mont"),t.edwards=r("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(r,i,n){var t=r("bn.js"),c=r("inherits"),u=r("./base"),f=r("../utils");function o(g){u.call(this,"mont",g),this.a=new t(g.a,16).toRed(this.red),this.b=new t(g.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(g,m,p){u.BasePoint.call(this,g,"projective"),m===null&&p===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(m,16),this.z=new t(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}c(o,u),i.exports=o,o.prototype.validate=function(g){var m=g.normalize().x,p=m.redSqr(),_=p.redMul(m).redAdd(p.redMul(this.a)).redAdd(m);return _.redSqrt().redSqr().cmp(_)===0},c(l,u.BasePoint),o.prototype.decodePoint=function(g,m){return this.point(f.toArray(g,m),1)},o.prototype.point=function(g,m){return new l(this,g,m)},o.prototype.pointFromJSON=function(g){return l.fromJSON(this,g)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(g,m){return new l(g,m[0],m[1]||g.one)},l.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)+">"},l.prototype.isInfinity=function(){return this.z.cmpn(0)===0},l.prototype.dbl=function(){var g=this.x.redAdd(this.z).redSqr(),m=this.x.redSub(this.z).redSqr(),p=g.redSub(m),_=g.redMul(m),y=p.redMul(m.redAdd(this.curve.a24.redMul(p)));return this.curve.point(_,y)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(g,m){var p=this.x.redAdd(this.z),_=this.x.redSub(this.z),y=g.x.redAdd(g.z),h=g.x.redSub(g.z).redMul(p),d=y.redMul(_),A=m.z.redMul(h.redAdd(d).redSqr()),v=m.x.redMul(h.redISub(d).redSqr());return this.curve.point(A,v)},l.prototype.mul=function(g){for(var m=g.clone(),p=this,_=this.curve.point(null,null),y=[];m.cmpn(0)!==0;m.iushrn(1))y.push(m.andln(1));for(var h=y.length-1;h>=0;h--)y[h]===0?(p=p.diffAdd(_,this),_=_.dbl()):(_=p.diffAdd(_,this),p=p.dbl());return _},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(g){return this.getX().cmp(g.getX())===0},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(r,i,n){var t=r("../utils"),c=r("bn.js"),u=r("inherits"),f=r("./base"),o=t.assert;function l(p){f.call(this,"short",p),this.a=new c(p.a,16).toRed(this.red),this.b=new c(p.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(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function g(p,_,y,h){f.BasePoint.call(this,p,"affine"),_===null&&y===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new c(_,16),this.y=new c(y,16),h&&(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 m(p,_,y,h){f.BasePoint.call(this,p,"jacobian"),_===null&&y===null&&h===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new c(0)):(this.x=new c(_,16),this.y=new c(y,16),this.z=new c(h,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}u(l,f),i.exports=l,l.prototype._getEndomorphism=function(p){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var _,y;if(p.beta)_=new c(p.beta,16).toRed(this.red);else{var h=this._getEndoRoots(this.p);_=(_=h[0].cmp(h[1])<0?h[0]:h[1]).toRed(this.red)}if(p.lambda)y=new c(p.lambda,16);else{var d=this._getEndoRoots(this.n);this.g.mul(d[0]).x.cmp(this.g.x.redMul(_))===0?y=d[0]:(y=d[1],o(this.g.mul(y).x.cmp(this.g.x.redMul(_))===0))}return{beta:_,lambda:y,basis:p.basis?p.basis.map((function(A){return{a:new c(A.a,16),b:new c(A.b,16)}})):this._getEndoBasis(y)}}},l.prototype._getEndoRoots=function(p){var _=p===this.p?this.red:c.mont(p),y=new c(2).toRed(_).redInvm(),h=y.redNeg(),d=new c(3).toRed(_).redNeg().redSqrt().redMul(y);return[h.redAdd(d).fromRed(),h.redSub(d).fromRed()]},l.prototype._getEndoBasis=function(p){for(var _,y,h,d,A,v,w,x,C,k=this.n.ushrn(Math.floor(this.n.bitLength()/2)),T=p,S=this.n.clone(),M=new c(1),P=new c(0),N=new c(0),B=new c(1),O=0;T.cmpn(0)!==0;){var I=S.div(T);x=S.sub(I.mul(T)),C=N.sub(I.mul(M));var F=B.sub(I.mul(P));if(!h&&x.cmp(k)<0)_=w.neg(),y=M,h=x.neg(),d=C;else if(h&&++O==2)break;w=x,S=T,T=x,N=M,M=C,B=P,P=F}A=x.neg(),v=C;var L=h.sqr().add(d.sqr());return A.sqr().add(v.sqr()).cmp(L)>=0&&(A=_,v=y),h.negative&&(h=h.neg(),d=d.neg()),A.negative&&(A=A.neg(),v=v.neg()),[{a:h,b:d},{a:A,b:v}]},l.prototype._endoSplit=function(p){var _=this.endo.basis,y=_[0],h=_[1],d=h.b.mul(p).divRound(this.n),A=y.b.neg().mul(p).divRound(this.n),v=d.mul(y.a),w=A.mul(h.a),x=d.mul(y.b),C=A.mul(h.b);return{k1:p.sub(v).sub(w),k2:x.add(C).neg()}},l.prototype.pointFromX=function(p,_){(p=new c(p,16)).red||(p=p.toRed(this.red));var y=p.redSqr().redMul(p).redIAdd(p.redMul(this.a)).redIAdd(this.b),h=y.redSqrt();if(h.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var d=h.fromRed().isOdd();return(_&&!d||!_&&d)&&(h=h.redNeg()),this.point(p,h)},l.prototype.validate=function(p){if(p.inf)return!0;var _=p.x,y=p.y,h=this.a.redMul(_),d=_.redSqr().redMul(_).redIAdd(h).redIAdd(this.b);return y.redSqr().redISub(d).cmpn(0)===0},l.prototype._endoWnafMulAdd=function(p,_,y){for(var h=this._endoWnafT1,d=this._endoWnafT2,A=0;A<p.length;A++){var v=this._endoSplit(_[A]),w=p[A],x=w._getBeta();v.k1.negative&&(v.k1.ineg(),w=w.neg(!0)),v.k2.negative&&(v.k2.ineg(),x=x.neg(!0)),h[2*A]=w,h[2*A+1]=x,d[2*A]=v.k1,d[2*A+1]=v.k2}for(var C=this._wnafMulAdd(1,h,d,2*A,y),k=0;k<2*A;k++)h[k]=null,d[k]=null;return C},u(g,f.BasePoint),l.prototype.point=function(p,_,y){return new g(this,p,_,y)},l.prototype.pointFromJSON=function(p,_){return g.fromJSON(this,p,_)},g.prototype._getBeta=function(){if(this.curve.endo){var p=this.precomputed;if(p&&p.beta)return p.beta;var _=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(p){var y=this.curve,h=function(d){return y.point(d.x.redMul(y.endo.beta),d.y)};p.beta=_,_.precomputed={beta:null,naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(h)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(h)}}}return _}},g.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]},g.fromJSON=function(p,_,y){typeof _=="string"&&(_=JSON.parse(_));var h=p.point(_[0],_[1],y);if(!_[2])return h;function d(v){return p.point(v[0],v[1],y)}var A=_[2];return h.precomputed={beta:null,doubles:A.doubles&&{step:A.doubles.step,points:[h].concat(A.doubles.points.map(d))},naf:A.naf&&{wnd:A.naf.wnd,points:[h].concat(A.naf.points.map(d))}},h},g.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)+">"},g.prototype.isInfinity=function(){return this.inf},g.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(this.x.cmp(p.x)===0)return this.curve.point(null,null);var _=this.y.redSub(p.y);_.cmpn(0)!==0&&(_=_.redMul(this.x.redSub(p.x).redInvm()));var y=_.redSqr().redISub(this.x).redISub(p.x),h=_.redMul(this.x.redSub(y)).redISub(this.y);return this.curve.point(y,h)},g.prototype.dbl=function(){if(this.inf)return this;var p=this.y.redAdd(this.y);if(p.cmpn(0)===0)return this.curve.point(null,null);var _=this.curve.a,y=this.x.redSqr(),h=p.redInvm(),d=y.redAdd(y).redIAdd(y).redIAdd(_).redMul(h),A=d.redSqr().redISub(this.x.redAdd(this.x)),v=d.redMul(this.x.redSub(A)).redISub(this.y);return this.curve.point(A,v)},g.prototype.getX=function(){return this.x.fromRed()},g.prototype.getY=function(){return this.y.fromRed()},g.prototype.mul=function(p){return p=new c(p,16),this.isInfinity()?this:this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve.endo?this.curve._endoWnafMulAdd([this],[p]):this.curve._wnafMul(this,p)},g.prototype.mulAdd=function(p,_,y){var h=[this,_],d=[p,y];return this.curve.endo?this.curve._endoWnafMulAdd(h,d):this.curve._wnafMulAdd(1,h,d,2)},g.prototype.jmulAdd=function(p,_,y){var h=[this,_],d=[p,y];return this.curve.endo?this.curve._endoWnafMulAdd(h,d,!0):this.curve._wnafMulAdd(1,h,d,2,!0)},g.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||this.x.cmp(p.x)===0&&this.y.cmp(p.y)===0)},g.prototype.neg=function(p){if(this.inf)return this;var _=this.curve.point(this.x,this.y.redNeg());if(p&&this.precomputed){var y=this.precomputed,h=function(d){return d.neg()};_.precomputed={naf:y.naf&&{wnd:y.naf.wnd,points:y.naf.points.map(h)},doubles:y.doubles&&{step:y.doubles.step,points:y.doubles.points.map(h)}}}return _},g.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},u(m,f.BasePoint),l.prototype.jpoint=function(p,_,y){return new m(this,p,_,y)},m.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var p=this.z.redInvm(),_=p.redSqr(),y=this.x.redMul(_),h=this.y.redMul(_).redMul(p);return this.curve.point(y,h)},m.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},m.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var _=p.z.redSqr(),y=this.z.redSqr(),h=this.x.redMul(_),d=p.x.redMul(y),A=this.y.redMul(_.redMul(p.z)),v=p.y.redMul(y.redMul(this.z)),w=h.redSub(d),x=A.redSub(v);if(w.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=w.redSqr(),k=C.redMul(w),T=h.redMul(C),S=x.redSqr().redIAdd(k).redISub(T).redISub(T),M=x.redMul(T.redISub(S)).redISub(A.redMul(k)),P=this.z.redMul(p.z).redMul(w);return this.curve.jpoint(S,M,P)},m.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var _=this.z.redSqr(),y=this.x,h=p.x.redMul(_),d=this.y,A=p.y.redMul(_).redMul(this.z),v=y.redSub(h),w=d.redSub(A);if(v.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=v.redSqr(),C=x.redMul(v),k=y.redMul(x),T=w.redSqr().redIAdd(C).redISub(k).redISub(k),S=w.redMul(k.redISub(T)).redISub(d.redMul(C)),M=this.z.redMul(v);return this.curve.jpoint(T,S,M)},m.prototype.dblp=function(p){if(p===0)return this;if(this.isInfinity())return this;if(!p)return this.dbl();var _;if(this.curve.zeroA||this.curve.threeA){var y=this;for(_=0;_<p;_++)y=y.dbl();return y}var h=this.curve.a,d=this.curve.tinv,A=this.x,v=this.y,w=this.z,x=w.redSqr().redSqr(),C=v.redAdd(v);for(_=0;_<p;_++){var k=A.redSqr(),T=C.redSqr(),S=T.redSqr(),M=k.redAdd(k).redIAdd(k).redIAdd(h.redMul(x)),P=A.redMul(T),N=M.redSqr().redISub(P.redAdd(P)),B=P.redISub(N),O=M.redMul(B);O=O.redIAdd(O).redISub(S);var I=C.redMul(w);_+1<p&&(x=x.redMul(S)),A=N,w=I,C=O}return this.curve.jpoint(A,C.redMul(d),w)},m.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},m.prototype._zeroDbl=function(){var p,_,y;if(this.zOne){var h=this.x.redSqr(),d=this.y.redSqr(),A=d.redSqr(),v=this.x.redAdd(d).redSqr().redISub(h).redISub(A);v=v.redIAdd(v);var w=h.redAdd(h).redIAdd(h),x=w.redSqr().redISub(v).redISub(v),C=A.redIAdd(A);C=(C=C.redIAdd(C)).redIAdd(C),p=x,_=w.redMul(v.redISub(x)).redISub(C),y=this.y.redAdd(this.y)}else{var k=this.x.redSqr(),T=this.y.redSqr(),S=T.redSqr(),M=this.x.redAdd(T).redSqr().redISub(k).redISub(S);M=M.redIAdd(M);var P=k.redAdd(k).redIAdd(k),N=P.redSqr(),B=S.redIAdd(S);B=(B=B.redIAdd(B)).redIAdd(B),p=N.redISub(M).redISub(M),_=P.redMul(M.redISub(p)).redISub(B),y=(y=this.y.redMul(this.z)).redIAdd(y)}return this.curve.jpoint(p,_,y)},m.prototype._threeDbl=function(){var p,_,y;if(this.zOne){var h=this.x.redSqr(),d=this.y.redSqr(),A=d.redSqr(),v=this.x.redAdd(d).redSqr().redISub(h).redISub(A);v=v.redIAdd(v);var w=h.redAdd(h).redIAdd(h).redIAdd(this.curve.a),x=w.redSqr().redISub(v).redISub(v);p=x;var C=A.redIAdd(A);C=(C=C.redIAdd(C)).redIAdd(C),_=w.redMul(v.redISub(x)).redISub(C),y=this.y.redAdd(this.y)}else{var k=this.z.redSqr(),T=this.y.redSqr(),S=this.x.redMul(T),M=this.x.redSub(k).redMul(this.x.redAdd(k));M=M.redAdd(M).redIAdd(M);var P=S.redIAdd(S),N=(P=P.redIAdd(P)).redAdd(P);p=M.redSqr().redISub(N),y=this.y.redAdd(this.z).redSqr().redISub(T).redISub(k);var B=T.redSqr();B=(B=(B=B.redIAdd(B)).redIAdd(B)).redIAdd(B),_=M.redMul(P.redISub(p)).redISub(B)}return this.curve.jpoint(p,_,y)},m.prototype._dbl=function(){var p=this.curve.a,_=this.x,y=this.y,h=this.z,d=h.redSqr().redSqr(),A=_.redSqr(),v=y.redSqr(),w=A.redAdd(A).redIAdd(A).redIAdd(p.redMul(d)),x=_.redAdd(_),C=(x=x.redIAdd(x)).redMul(v),k=w.redSqr().redISub(C.redAdd(C)),T=C.redISub(k),S=v.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var M=w.redMul(T).redISub(S),P=y.redAdd(y).redMul(h);return this.curve.jpoint(k,M,P)},m.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var p=this.x.redSqr(),_=this.y.redSqr(),y=this.z.redSqr(),h=_.redSqr(),d=p.redAdd(p).redIAdd(p),A=d.redSqr(),v=this.x.redAdd(_).redSqr().redISub(p).redISub(h),w=(v=(v=(v=v.redIAdd(v)).redAdd(v).redIAdd(v)).redISub(A)).redSqr(),x=h.redIAdd(h);x=(x=(x=x.redIAdd(x)).redIAdd(x)).redIAdd(x);var C=d.redIAdd(v).redSqr().redISub(A).redISub(w).redISub(x),k=_.redMul(C);k=(k=k.redIAdd(k)).redIAdd(k);var T=this.x.redMul(w).redISub(k);T=(T=T.redIAdd(T)).redIAdd(T);var S=this.y.redMul(C.redMul(x.redISub(C)).redISub(v.redMul(w)));S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var M=this.z.redAdd(v).redSqr().redISub(y).redISub(w);return this.curve.jpoint(T,S,M)},m.prototype.mul=function(p,_){return p=new c(p,_),this.curve._wnafMul(this,p)},m.prototype.eq=function(p){if(p.type==="affine")return this.eq(p.toJ());if(this===p)return!0;var _=this.z.redSqr(),y=p.z.redSqr();if(this.x.redMul(y).redISub(p.x.redMul(_)).cmpn(0)!==0)return!1;var h=_.redMul(this.z),d=y.redMul(p.z);return this.y.redMul(d).redISub(p.y.redMul(h)).cmpn(0)===0},m.prototype.eqXToP=function(p){var _=this.z.redSqr(),y=p.toRed(this.curve.red).redMul(_);if(this.x.cmp(y)===0)return!0;for(var h=p.clone(),d=this.curve.redN.redMul(_);;){if(h.iadd(this.curve.n),h.cmp(this.curve.p)>=0)return!1;if(y.redIAdd(d),this.x.cmp(y)===0)return!0}},m.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)+">"},m.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(r,i,n){var t,c=n,u=r("hash.js"),f=r("./curve"),o=r("./utils").assert;function l(m){m.type==="short"?this.curve=new f.short(m):m.type==="edwards"?this.curve=new f.edwards(m):this.curve=new f.mont(m),this.g=this.curve.g,this.n=this.curve.n,this.hash=m.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function g(m,p){Object.defineProperty(c,m,{configurable:!0,enumerable:!0,get:function(){var _=new l(p);return Object.defineProperty(c,m,{configurable:!0,enumerable:!0,value:_}),_}})}c.PresetCurve=l,g("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:u.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),g("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:u.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),g("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:u.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),g("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:u.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"]}),g("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:u.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"]}),g("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:u.sha256,gRed:!1,g:["9"]}),g("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:u.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{t=r("./precomputed/secp256k1")}catch{t=void 0}g("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:u.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",t]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(r,i,n){var t=r("bn.js"),c=r("hmac-drbg"),u=r("../utils"),f=r("../curves"),o=r("brorand"),l=u.assert,g=r("./key"),m=r("./signature");function p(_){if(!(this instanceof p))return new p(_);typeof _=="string"&&(l(Object.prototype.hasOwnProperty.call(f,_),"Unknown curve "+_),_=f[_]),_ instanceof f.PresetCurve&&(_={curve:_}),this.curve=_.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=_.curve.g,this.g.precompute(_.curve.n.bitLength()+1),this.hash=_.hash||_.curve.hash}i.exports=p,p.prototype.keyPair=function(_){return new g(this,_)},p.prototype.keyFromPrivate=function(_,y){return g.fromPrivate(this,_,y)},p.prototype.keyFromPublic=function(_,y){return g.fromPublic(this,_,y)},p.prototype.genKeyPair=function(_){_||(_={});for(var y=new c({hash:this.hash,pers:_.pers,persEnc:_.persEnc||"utf8",entropy:_.entropy||o(this.hash.hmacStrength),entropyEnc:_.entropy&&_.entropyEnc||"utf8",nonce:this.n.toArray()}),h=this.n.byteLength(),d=this.n.sub(new t(2));;){var A=new t(y.generate(h));if(!(A.cmp(d)>0))return A.iaddn(1),this.keyFromPrivate(A)}},p.prototype._truncateToN=function(_,y){var h=8*_.byteLength()-this.n.bitLength();return h>0&&(_=_.ushrn(h)),!y&&_.cmp(this.n)>=0?_.sub(this.n):_},p.prototype.sign=function(_,y,h,d){typeof h=="object"&&(d=h,h=null),d||(d={}),y=this.keyFromPrivate(y,h),_=this._truncateToN(new t(_,16));for(var A=this.n.byteLength(),v=y.getPrivate().toArray("be",A),w=_.toArray("be",A),x=new c({hash:this.hash,entropy:v,nonce:w,pers:d.pers,persEnc:d.persEnc||"utf8"}),C=this.n.sub(new t(1)),k=0;;k++){var T=d.k?d.k(k):new t(x.generate(this.n.byteLength()));if(!((T=this._truncateToN(T,!0)).cmpn(1)<=0||T.cmp(C)>=0)){var S=this.g.mul(T);if(!S.isInfinity()){var M=S.getX(),P=M.umod(this.n);if(P.cmpn(0)!==0){var N=T.invm(this.n).mul(P.mul(y.getPrivate()).iadd(_));if((N=N.umod(this.n)).cmpn(0)!==0){var B=(S.getY().isOdd()?1:0)|(M.cmp(P)!==0?2:0);return d.canonical&&N.cmp(this.nh)>0&&(N=this.n.sub(N),B^=1),new m({r:P,s:N,recoveryParam:B})}}}}}},p.prototype.verify=function(_,y,h,d){_=this._truncateToN(new t(_,16)),h=this.keyFromPublic(h,d);var A=(y=new m(y,"hex")).r,v=y.s;if(A.cmpn(1)<0||A.cmp(this.n)>=0||v.cmpn(1)<0||v.cmp(this.n)>=0)return!1;var w,x=v.invm(this.n),C=x.mul(_).umod(this.n),k=x.mul(A).umod(this.n);return this.curve._maxwellTrick?!(w=this.g.jmulAdd(C,h.getPublic(),k)).isInfinity()&&w.eqXToP(A):!(w=this.g.mulAdd(C,h.getPublic(),k)).isInfinity()&&w.getX().umod(this.n).cmp(A)===0},p.prototype.recoverPubKey=function(_,y,h,d){l((3&h)===h,"The recovery param is more than two bits"),y=new m(y,d);var A=this.n,v=new t(_),w=y.r,x=y.s,C=1&h,k=h>>1;if(w.cmp(this.curve.p.umod(this.curve.n))>=0&&k)throw new Error("Unable to find sencond key candinate");w=k?this.curve.pointFromX(w.add(this.curve.n),C):this.curve.pointFromX(w,C);var T=y.r.invm(A),S=A.sub(v).mul(T).umod(A),M=x.mul(T).umod(A);return this.g.mulAdd(S,w,M)},p.prototype.getKeyRecoveryParam=function(_,y,h,d){if((y=new m(y,d)).recoveryParam!==null)return y.recoveryParam;for(var A=0;A<4;A++){var v;try{v=this.recoverPubKey(_,y,A)}catch{continue}if(v.eq(h))return A}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(r,i,n){var t=r("bn.js"),c=r("../utils").assert;function u(f,o){this.ec=f,this.priv=null,this.pub=null,o.priv&&this._importPrivate(o.priv,o.privEnc),o.pub&&this._importPublic(o.pub,o.pubEnc)}i.exports=u,u.fromPublic=function(f,o,l){return o instanceof u?o:new u(f,{pub:o,pubEnc:l})},u.fromPrivate=function(f,o,l){return o instanceof u?o:new u(f,{priv:o,privEnc:l})},u.prototype.validate=function(){var f=this.getPublic();return f.isInfinity()?{result:!1,reason:"Invalid public key"}:f.validate()?f.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"}},u.prototype.getPublic=function(f,o){return typeof f=="string"&&(o=f,f=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),o?this.pub.encode(o,f):this.pub},u.prototype.getPrivate=function(f){return f==="hex"?this.priv.toString(16,2):this.priv},u.prototype._importPrivate=function(f,o){this.priv=new t(f,o||16),this.priv=this.priv.umod(this.ec.curve.n)},u.prototype._importPublic=function(f,o){if(f.x||f.y)return this.ec.curve.type==="mont"?c(f.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||c(f.x&&f.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(f.x,f.y));this.pub=this.ec.curve.decodePoint(f,o)},u.prototype.derive=function(f){return f.validate()||c(f.validate(),"public point not validated"),f.mul(this.priv).getX()},u.prototype.sign=function(f,o,l){return this.ec.sign(f,this,o,l)},u.prototype.verify=function(f,o){return this.ec.verify(f,o,this)},u.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(r,i,n){var t=r("bn.js"),c=r("../utils"),u=c.assert;function f(p,_){if(p instanceof f)return p;this._importDER(p,_)||(u(p.r&&p.s,"Signature without r or s"),this.r=new t(p.r,16),this.s=new t(p.s,16),p.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=p.recoveryParam)}function o(){this.place=0}function l(p,_){var y=p[_.place++];if(!(128&y))return y;var h=15&y;if(h===0||h>4)return!1;for(var d=0,A=0,v=_.place;A<h;A++,v++)d<<=8,d|=p[v],d>>>=0;return!(d<=127)&&(_.place=v,d)}function g(p){for(var _=0,y=p.length-1;!p[_]&&!(128&p[_+1])&&_<y;)_++;return _===0?p:p.slice(_)}function m(p,_){if(_<128)p.push(_);else{var y=1+(Math.log(_)/Math.LN2>>>3);for(p.push(128|y);--y;)p.push(_>>>(y<<3)&255);p.push(_)}}i.exports=f,f.prototype._importDER=function(p,_){p=c.toArray(p,_);var y=new o;if(p[y.place++]!==48)return!1;var h=l(p,y);if(h===!1||h+y.place!==p.length||p[y.place++]!==2)return!1;var d=l(p,y);if(d===!1)return!1;var A=p.slice(y.place,d+y.place);if(y.place+=d,p[y.place++]!==2)return!1;var v=l(p,y);if(v===!1||p.length!==v+y.place)return!1;var w=p.slice(y.place,v+y.place);if(A[0]===0){if(!(128&A[1]))return!1;A=A.slice(1)}if(w[0]===0){if(!(128&w[1]))return!1;w=w.slice(1)}return this.r=new t(A),this.s=new t(w),this.recoveryParam=null,!0},f.prototype.toDER=function(p){var _=this.r.toArray(),y=this.s.toArray();for(128&_[0]&&(_=[0].concat(_)),128&y[0]&&(y=[0].concat(y)),_=g(_),y=g(y);!(y[0]||128&y[1]);)y=y.slice(1);var h=[2];m(h,_.length),(h=h.concat(_)).push(2),m(h,y.length);var d=h.concat(y),A=[48];return m(A,d.length),A=A.concat(d),c.encode(A,p)}},{"../utils":419,"bn.js":420}],415:[function(r,i,n){var t=r("hash.js"),c=r("../curves"),u=r("../utils"),f=u.assert,o=u.parseBytes,l=r("./key"),g=r("./signature");function m(p){if(f(p==="ed25519","only tested with ed25519 so far"),!(this instanceof m))return new m(p);p=c[p].curve,this.curve=p,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=t.sha512}i.exports=m,m.prototype.sign=function(p,_){p=o(p);var y=this.keyFromSecret(_),h=this.hashInt(y.messagePrefix(),p),d=this.g.mul(h),A=this.encodePoint(d),v=this.hashInt(A,y.pubBytes(),p).mul(y.priv()),w=h.add(v).umod(this.curve.n);return this.makeSignature({R:d,S:w,Rencoded:A})},m.prototype.verify=function(p,_,y){p=o(p),_=this.makeSignature(_);var h=this.keyFromPublic(y),d=this.hashInt(_.Rencoded(),h.pubBytes(),p),A=this.g.mul(_.S());return _.R().add(h.pub().mul(d)).eq(A)},m.prototype.hashInt=function(){for(var p=this.hash(),_=0;_<arguments.length;_++)p.update(arguments[_]);return u.intFromLE(p.digest()).umod(this.curve.n)},m.prototype.keyFromPublic=function(p){return l.fromPublic(this,p)},m.prototype.keyFromSecret=function(p){return l.fromSecret(this,p)},m.prototype.makeSignature=function(p){return p instanceof g?p:new g(this,p)},m.prototype.encodePoint=function(p){var _=p.getY().toArray("le",this.encodingLength);return _[this.encodingLength-1]|=p.getX().isOdd()?128:0,_},m.prototype.decodePoint=function(p){var _=(p=u.parseBytes(p)).length-1,y=p.slice(0,_).concat(-129&p[_]),h=(128&p[_])!=0,d=u.intFromLE(y);return this.curve.pointFromY(d,h)},m.prototype.encodeInt=function(p){return p.toArray("le",this.encodingLength)},m.prototype.decodeInt=function(p){return u.intFromLE(p)},m.prototype.isPoint=function(p){return p instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(r,i,n){var t=r("../utils"),c=t.assert,u=t.parseBytes,f=t.cachedProperty;function o(l,g){this.eddsa=l,this._secret=u(g.secret),l.isPoint(g.pub)?this._pub=g.pub:this._pubBytes=u(g.pub)}o.fromPublic=function(l,g){return g instanceof o?g:new o(l,{pub:g})},o.fromSecret=function(l,g){return g instanceof o?g:new o(l,{secret:g})},o.prototype.secret=function(){return this._secret},f(o,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),f(o,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),f(o,"privBytes",(function(){var l=this.eddsa,g=this.hash(),m=l.encodingLength-1,p=g.slice(0,l.encodingLength);return p[0]&=248,p[m]&=127,p[m]|=64,p})),f(o,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),f(o,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),f(o,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),o.prototype.sign=function(l){return c(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},o.prototype.verify=function(l,g){return this.eddsa.verify(l,g,this)},o.prototype.getSecret=function(l){return c(this._secret,"KeyPair is public only"),t.encode(this.secret(),l)},o.prototype.getPublic=function(l){return t.encode(this.pubBytes(),l)},i.exports=o},{"../utils":419}],417:[function(r,i,n){var t=r("bn.js"),c=r("../utils"),u=c.assert,f=c.cachedProperty,o=c.parseBytes;function l(g,m){this.eddsa=g,typeof m!="object"&&(m=o(m)),Array.isArray(m)&&(m={R:m.slice(0,g.encodingLength),S:m.slice(g.encodingLength)}),u(m.R&&m.S,"Signature without R or S"),g.isPoint(m.R)&&(this._R=m.R),m.S instanceof t&&(this._S=m.S),this._Rencoded=Array.isArray(m.R)?m.R:m.Rencoded,this._Sencoded=Array.isArray(m.S)?m.S:m.Sencoded}f(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),f(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),f(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),f(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return c.encode(this.toBytes(),"hex").toUpperCase()},i.exports=l},{"../utils":419,"bn.js":420}],418:[function(r,i,n){i.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(r,i,n){var t=n,c=r("bn.js"),u=r("minimalistic-assert"),f=r("minimalistic-crypto-utils");t.assert=u,t.toArray=f.toArray,t.zero2=f.zero2,t.toHex=f.toHex,t.encode=f.encode,t.getNAF=function(o,l,g){var m=new Array(Math.max(o.bitLength(),g)+1);m.fill(0);for(var p=1<<l+1,_=o.clone(),y=0;y<m.length;y++){var h,d=_.andln(p-1);_.isOdd()?(h=d>(p>>1)-1?(p>>1)-d:d,_.isubn(h)):h=0,m[y]=h,_.iushrn(1)}return m},t.getJSF=function(o,l){var g=[[],[]];o=o.clone(),l=l.clone();for(var m,p=0,_=0;o.cmpn(-p)>0||l.cmpn(-_)>0;){var y,h,d=o.andln(3)+p&3,A=l.andln(3)+_&3;d===3&&(d=-1),A===3&&(A=-1),y=(1&d)==0?0:(m=o.andln(7)+p&7)!==3&&m!==5||A!==2?d:-d,g[0].push(y),h=(1&A)==0?0:(m=l.andln(7)+_&7)!==3&&m!==5||d!==2?A:-A,g[1].push(h),2*p===y+1&&(p=1-p),2*_===h+1&&(_=1-_),o.iushrn(1),l.iushrn(1)}return g},t.cachedProperty=function(o,l,g){var m="_"+l;o.prototype[l]=function(){return this[m]!==void 0?this[m]:this[m]=g.call(this)}},t.parseBytes=function(o){return typeof o=="string"?t.toArray(o,"hex"):o},t.intFromLE=function(o){return new c(o,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(r,i,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],421:[function(r,i,n){i.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(r,i,n){var t=Object.create||function(T){var S=function(){};return S.prototype=T,new S},c=Object.keys||function(T){var S=[];for(var M in T)Object.prototype.hasOwnProperty.call(T,M)&&S.push(M);return M},u=Function.prototype.bind||function(T){var S=this;return function(){return S.apply(T,arguments)}};function f(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=t(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}i.exports=f,f.EventEmitter=f,f.prototype._events=void 0,f.prototype._maxListeners=void 0;var o,l=10;try{var g={};Object.defineProperty&&Object.defineProperty(g,"x",{value:0}),o=g.x===0}catch{o=!1}function m(T){return T._maxListeners===void 0?f.defaultMaxListeners:T._maxListeners}function p(T,S,M){if(S)T.call(M);else for(var P=T.length,N=k(T,P),B=0;B<P;++B)N[B].call(M)}function _(T,S,M,P){if(S)T.call(M,P);else for(var N=T.length,B=k(T,N),O=0;O<N;++O)B[O].call(M,P)}function y(T,S,M,P,N){if(S)T.call(M,P,N);else for(var B=T.length,O=k(T,B),I=0;I<B;++I)O[I].call(M,P,N)}function h(T,S,M,P,N,B){if(S)T.call(M,P,N,B);else for(var O=T.length,I=k(T,O),F=0;F<O;++F)I[F].call(M,P,N,B)}function d(T,S,M,P){if(S)T.apply(M,P);else for(var N=T.length,B=k(T,N),O=0;O<N;++O)B[O].apply(M,P)}function A(T,S,M,P){var N,B,O;if(typeof M!="function")throw new TypeError('"listener" argument must be a function');if((B=T._events)?(B.newListener&&(T.emit("newListener",S,M.listener?M.listener:M),B=T._events),O=B[S]):(B=T._events=t(null),T._eventsCount=0),O){if(typeof O=="function"?O=B[S]=P?[M,O]:[O,M]:P?O.unshift(M):O.push(M),!O.warned&&(N=m(T))&&N>0&&O.length>N){O.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+O.length+' "'+String(S)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');I.name="MaxListenersExceededWarning",I.emitter=T,I.type=S,I.count=O.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",I.name,I.message)}}else O=B[S]=M,++T._eventsCount;return T}function v(){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 T=new Array(arguments.length),S=0;S<T.length;++S)T[S]=arguments[S];this.listener.apply(this.target,T)}}function w(T,S,M){var P={fired:!1,wrapFn:void 0,target:T,type:S,listener:M},N=u.call(v,P);return N.listener=M,P.wrapFn=N,N}function x(T,S,M){var P=T._events;if(!P)return[];var N=P[S];return N?typeof N=="function"?M?[N.listener||N]:[N]:M?(function(B){for(var O=new Array(B.length),I=0;I<O.length;++I)O[I]=B[I].listener||B[I];return O})(N):k(N,N.length):[]}function C(T){var S=this._events;if(S){var M=S[T];if(typeof M=="function")return 1;if(M)return M.length}return 0}function k(T,S){for(var M=new Array(S),P=0;P<S;++P)M[P]=T[P];return M}o?Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(T){if(typeof T!="number"||T<0||T!=T)throw new TypeError('"defaultMaxListeners" must be a positive number');l=T}}):f.defaultMaxListeners=l,f.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||isNaN(T))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=T,this},f.prototype.getMaxListeners=function(){return m(this)},f.prototype.emit=function(T){var S,M,P,N,B,O,I=T==="error";if(O=this._events)I=I&&O.error==null;else if(!I)return!1;if(I){if(arguments.length>1&&(S=arguments[1]),S instanceof Error)throw S;var F=new Error('Unhandled "error" event. ('+S+")");throw F.context=S,F}if(!(M=O[T]))return!1;var L=typeof M=="function";switch(P=arguments.length){case 1:p(M,L,this);break;case 2:_(M,L,this,arguments[1]);break;case 3:y(M,L,this,arguments[1],arguments[2]);break;case 4:h(M,L,this,arguments[1],arguments[2],arguments[3]);break;default:for(N=new Array(P-1),B=1;B<P;B++)N[B-1]=arguments[B];d(M,L,this,N)}return!0},f.prototype.addListener=function(T,S){return A(this,T,S,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(T,S){return A(this,T,S,!0)},f.prototype.once=function(T,S){if(typeof S!="function")throw new TypeError('"listener" argument must be a function');return this.on(T,w(this,T,S)),this},f.prototype.prependOnceListener=function(T,S){if(typeof S!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(T,w(this,T,S)),this},f.prototype.removeListener=function(T,S){var M,P,N,B,O;if(typeof S!="function")throw new TypeError('"listener" argument must be a function');if(!(P=this._events))return this;if(!(M=P[T]))return this;if(M===S||M.listener===S)--this._eventsCount==0?this._events=t(null):(delete P[T],P.removeListener&&this.emit("removeListener",T,M.listener||S));else if(typeof M!="function"){for(N=-1,B=M.length-1;B>=0;B--)if(M[B]===S||M[B].listener===S){O=M[B].listener,N=B;break}if(N<0)return this;N===0?M.shift():(function(I,F){for(var L=F,R=L+1,U=I.length;R<U;L+=1,R+=1)I[L]=I[R];I.pop()})(M,N),M.length===1&&(P[T]=M[0]),P.removeListener&&this.emit("removeListener",T,O||S)}return this},f.prototype.removeAllListeners=function(T){var S,M,P;if(!(M=this._events))return this;if(!M.removeListener)return arguments.length===0?(this._events=t(null),this._eventsCount=0):M[T]&&(--this._eventsCount==0?this._events=t(null):delete M[T]),this;if(arguments.length===0){var N,B=c(M);for(P=0;P<B.length;++P)(N=B[P])!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=t(null),this._eventsCount=0,this}if(typeof(S=M[T])=="function")this.removeListener(T,S);else if(S)for(P=S.length-1;P>=0;P--)this.removeListener(T,S[P]);return this},f.prototype.listeners=function(T){return x(this,T,!0)},f.prototype.rawListeners=function(T){return x(this,T,!1)},f.listenerCount=function(T,S){return typeof T.listenerCount=="function"?T.listenerCount(S):C.call(T,S)},f.prototype.listenerCount=C,f.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(r,i,n){var t=r("safe-buffer").Buffer,c=r("md5.js");i.exports=function(u,f,o,l){if(t.isBuffer(u)||(u=t.from(u,"binary")),f&&(t.isBuffer(f)||(f=t.from(f,"binary")),f.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var g=o/8,m=t.alloc(g),p=t.alloc(l||0),_=t.alloc(0);g>0||l>0;){var y=new c;y.update(_),y.update(u),f&&y.update(f),_=y.digest();var h=0;if(g>0){var d=m.length-g;h=Math.min(g,_.length),_.copy(m,d,0,h),g-=h}if(h<_.length&&l>0){var A=p.length-l,v=Math.min(l,_.length-h);_.copy(p,A,h,h+v),l-=v}}return _.fill(0),{key:m,iv:p}}},{"md5.js":450,"safe-buffer":494}],424:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.CsvParserStream=n.ParserOptions=n.parseFile=n.parseStream=n.parseString=n.parse=n.FormatterOptions=n.CsvFormatterStream=n.writeToPath=n.writeToString=n.writeToBuffer=n.writeToStream=n.write=n.format=void 0;var t=r("@fast-csv/format");Object.defineProperty(n,"format",{enumerable:!0,get:function(){return t.format}}),Object.defineProperty(n,"write",{enumerable:!0,get:function(){return t.write}}),Object.defineProperty(n,"writeToStream",{enumerable:!0,get:function(){return t.writeToStream}}),Object.defineProperty(n,"writeToBuffer",{enumerable:!0,get:function(){return t.writeToBuffer}}),Object.defineProperty(n,"writeToString",{enumerable:!0,get:function(){return t.writeToString}}),Object.defineProperty(n,"writeToPath",{enumerable:!0,get:function(){return t.writeToPath}}),Object.defineProperty(n,"CsvFormatterStream",{enumerable:!0,get:function(){return t.CsvFormatterStream}}),Object.defineProperty(n,"FormatterOptions",{enumerable:!0,get:function(){return t.FormatterOptions}});var c=r("@fast-csv/parse");Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return c.parse}}),Object.defineProperty(n,"parseString",{enumerable:!0,get:function(){return c.parseString}}),Object.defineProperty(n,"parseStream",{enumerable:!0,get:function(){return c.parseStream}}),Object.defineProperty(n,"parseFile",{enumerable:!0,get:function(){return c.parseFile}}),Object.defineProperty(n,"ParserOptions",{enumerable:!0,get:function(){return c.ParserOptions}}),Object.defineProperty(n,"CsvParserStream",{enumerable:!0,get:function(){return c.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(r,i,n){var t=r("safe-buffer").Buffer,c=r("readable-stream").Transform;function u(f){c.call(this),this._block=t.allocUnsafe(f),this._blockSize=f,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r("inherits")(u,c),u.prototype._transform=function(f,o,l){var g=null;try{this.update(f,o)}catch(m){g=m}l(g)},u.prototype._flush=function(f){var o=null;try{this.push(this.digest())}catch(l){o=l}f(o)},u.prototype.update=function(f,o){if((function(y,h){if(!t.isBuffer(y)&&typeof y!="string")throw new TypeError(h+" must be a string or a buffer")})(f,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(f)||(f=t.from(f,o));for(var l=this._block,g=0;this._blockOffset+f.length-g>=this._blockSize;){for(var m=this._blockOffset;m<this._blockSize;)l[m++]=f[g++];this._update(),this._blockOffset=0}for(;g<f.length;)l[this._blockOffset++]=f[g++];for(var p=0,_=8*f.length;_>0;++p)this._length[p]+=_,(_=this._length[p]/4294967296|0)>0&&(this._length[p]-=4294967296*_);return this},u.prototype._update=function(){throw new Error("_update is not implemented")},u.prototype.digest=function(f){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var o=this._digest();f!==void 0&&(o=o.toString(f)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return o},u.prototype._digest=function(){throw new Error("_digest is not implemented")},i.exports=u},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(r,i,n){var t=n;t.utils=r("./hash/utils"),t.common=r("./hash/common"),t.sha=r("./hash/sha"),t.ripemd=r("./hash/ripemd"),t.hmac=r("./hash/hmac"),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(r,i,n){var t=r("./utils"),c=r("minimalistic-assert");function u(){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}n.BlockHash=u,u.prototype.update=function(f,o){if(f=t.toArray(f,o),this.pending?this.pending=this.pending.concat(f):this.pending=f,this.pendingTotal+=f.length,this.pending.length>=this._delta8){var l=(f=this.pending).length%this._delta8;this.pending=f.slice(f.length-l,f.length),this.pending.length===0&&(this.pending=null),f=t.join32(f,0,f.length-l,this.endian);for(var g=0;g<f.length;g+=this._delta32)this._update(f,g,g+this._delta32)}return this},u.prototype.digest=function(f){return this.update(this._pad()),c(this.pending===null),this._digest(f)},u.prototype._pad=function(){var f=this.pendingTotal,o=this._delta8,l=o-(f+this.padLength)%o,g=new Array(l+this.padLength);g[0]=128;for(var m=1;m<l;m++)g[m]=0;if(f<<=3,this.endian==="big"){for(var p=8;p<this.padLength;p++)g[m++]=0;g[m++]=0,g[m++]=0,g[m++]=0,g[m++]=0,g[m++]=f>>>24&255,g[m++]=f>>>16&255,g[m++]=f>>>8&255,g[m++]=255&f}else for(g[m++]=255&f,g[m++]=f>>>8&255,g[m++]=f>>>16&255,g[m++]=f>>>24&255,g[m++]=0,g[m++]=0,g[m++]=0,g[m++]=0,p=8;p<this.padLength;p++)g[m++]=0;return g}},{"./utils":437,"minimalistic-assert":453}],428:[function(r,i,n){var t=r("./utils"),c=r("minimalistic-assert");function u(f,o,l){if(!(this instanceof u))return new u(f,o,l);this.Hash=f,this.blockSize=f.blockSize/8,this.outSize=f.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(o,l))}i.exports=u,u.prototype._init=function(f){f.length>this.blockSize&&(f=new this.Hash().update(f).digest()),c(f.length<=this.blockSize);for(var o=f.length;o<this.blockSize;o++)f.push(0);for(o=0;o<f.length;o++)f[o]^=54;for(this.inner=new this.Hash().update(f),o=0;o<f.length;o++)f[o]^=106;this.outer=new this.Hash().update(f)},u.prototype.update=function(f,o){return this.inner.update(f,o),this},u.prototype.digest=function(f){return this.outer.update(this.inner.digest()),this.outer.digest(f)}},{"./utils":437,"minimalistic-assert":453}],429:[function(r,i,n){var t=r("./utils"),c=r("./common"),u=t.rotl32,f=t.sum32,o=t.sum32_3,l=t.sum32_4,g=c.BlockHash;function m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(w,x,C,k){return w<=15?x^C^k:w<=31?x&C|~x&k:w<=47?(x|~C)^k:w<=63?x&k|C&~k:x^(C|~k)}function _(w){return w<=15?0:w<=31?1518500249:w<=47?1859775393:w<=63?2400959708:2840853838}function y(w){return w<=15?1352829926:w<=31?1548603684:w<=47?1836072691:w<=63?2053994217:0}t.inherits(m,g),n.ripemd160=m,m.blockSize=512,m.outSize=160,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(w,x){for(var C=this.h[0],k=this.h[1],T=this.h[2],S=this.h[3],M=this.h[4],P=C,N=k,B=T,O=S,I=M,F=0;F<80;F++){var L=f(u(l(C,p(F,k,T,S),w[h[F]+x],_(F)),A[F]),M);C=M,M=S,S=u(T,10),T=k,k=L,L=f(u(l(P,p(79-F,N,B,O),w[d[F]+x],y(F)),v[F]),I),P=I,I=O,O=u(B,10),B=N,N=L}L=o(this.h[1],T,O),this.h[1]=o(this.h[2],S,I),this.h[2]=o(this.h[3],M,P),this.h[3]=o(this.h[4],C,N),this.h[4]=o(this.h[0],k,B),this.h[0]=L},m.prototype._digest=function(w){return w==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var h=[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],d=[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],A=[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],v=[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(r,i,n){n.sha1=r("./sha/1"),n.sha224=r("./sha/224"),n.sha256=r("./sha/256"),n.sha384=r("./sha/384"),n.sha512=r("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(r,i,n){var t=r("../utils"),c=r("../common"),u=r("./common"),f=t.rotl32,o=t.sum32,l=t.sum32_5,g=u.ft_1,m=c.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function _(){if(!(this instanceof _))return new _;m.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(_,m),i.exports=_,_.blockSize=512,_.outSize=160,_.hmacStrength=80,_.padLength=64,_.prototype._update=function(y,h){for(var d=this.W,A=0;A<16;A++)d[A]=y[h+A];for(;A<d.length;A++)d[A]=f(d[A-3]^d[A-8]^d[A-14]^d[A-16],1);var v=this.h[0],w=this.h[1],x=this.h[2],C=this.h[3],k=this.h[4];for(A=0;A<d.length;A++){var T=~~(A/20),S=l(f(v,5),g(T,w,x,C),k,d[A],p[T]);k=C,C=x,x=f(w,30),w=v,v=S}this.h[0]=o(this.h[0],v),this.h[1]=o(this.h[1],w),this.h[2]=o(this.h[2],x),this.h[3]=o(this.h[3],C),this.h[4]=o(this.h[4],k)},_.prototype._digest=function(y){return y==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(r,i,n){var t=r("../utils"),c=r("./256");function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(u,c),i.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(f){return f==="hex"?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(r,i,n){var t=r("../utils"),c=r("../common"),u=r("./common"),f=r("minimalistic-assert"),o=t.sum32,l=t.sum32_4,g=t.sum32_5,m=u.ch32,p=u.maj32,_=u.s0_256,y=u.s1_256,h=u.g0_256,d=u.g1_256,A=c.BlockHash,v=[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 w(){if(!(this instanceof w))return new w;A.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}t.inherits(w,A),i.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(x,C){for(var k=this.W,T=0;T<16;T++)k[T]=x[C+T];for(;T<k.length;T++)k[T]=l(d(k[T-2]),k[T-7],h(k[T-15]),k[T-16]);var S=this.h[0],M=this.h[1],P=this.h[2],N=this.h[3],B=this.h[4],O=this.h[5],I=this.h[6],F=this.h[7];for(f(this.k.length===k.length),T=0;T<k.length;T++){var L=g(F,y(B),m(B,O,I),this.k[T],k[T]),R=o(_(S),p(S,M,P));F=I,I=O,O=B,B=o(N,L),N=P,P=M,M=S,S=o(L,R)}this.h[0]=o(this.h[0],S),this.h[1]=o(this.h[1],M),this.h[2]=o(this.h[2],P),this.h[3]=o(this.h[3],N),this.h[4]=o(this.h[4],B),this.h[5]=o(this.h[5],O),this.h[6]=o(this.h[6],I),this.h[7]=o(this.h[7],F)},w.prototype._digest=function(x){return x==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(r,i,n){var t=r("../utils"),c=r("./512");function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(u,c),i.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(f){return f==="hex"?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(r,i,n){var t=r("../utils"),c=r("../common"),u=r("minimalistic-assert"),f=t.rotr64_hi,o=t.rotr64_lo,l=t.shr64_hi,g=t.shr64_lo,m=t.sum64,p=t.sum64_hi,_=t.sum64_lo,y=t.sum64_4_hi,h=t.sum64_4_lo,d=t.sum64_5_hi,A=t.sum64_5_lo,v=c.BlockHash,w=[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 x(){if(!(this instanceof x))return new x;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=w,this.W=new Array(160)}function C(R,U,V,W,Q){var le=R&V^~R&Q;return le<0&&(le+=4294967296),le}function k(R,U,V,W,Q,le){var G=U&W^~U&le;return G<0&&(G+=4294967296),G}function T(R,U,V,W,Q){var le=R&V^R&Q^V&Q;return le<0&&(le+=4294967296),le}function S(R,U,V,W,Q,le){var G=U&W^U&le^W&le;return G<0&&(G+=4294967296),G}function M(R,U){var V=f(R,U,28)^f(U,R,2)^f(U,R,7);return V<0&&(V+=4294967296),V}function P(R,U){var V=o(R,U,28)^o(U,R,2)^o(U,R,7);return V<0&&(V+=4294967296),V}function N(R,U){var V=f(R,U,14)^f(R,U,18)^f(U,R,9);return V<0&&(V+=4294967296),V}function B(R,U){var V=o(R,U,14)^o(R,U,18)^o(U,R,9);return V<0&&(V+=4294967296),V}function O(R,U){var V=f(R,U,1)^f(R,U,8)^l(R,U,7);return V<0&&(V+=4294967296),V}function I(R,U){var V=o(R,U,1)^o(R,U,8)^g(R,U,7);return V<0&&(V+=4294967296),V}function F(R,U){var V=f(R,U,19)^f(U,R,29)^l(R,U,6);return V<0&&(V+=4294967296),V}function L(R,U){var V=o(R,U,19)^o(U,R,29)^g(R,U,6);return V<0&&(V+=4294967296),V}t.inherits(x,v),i.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(R,U){for(var V=this.W,W=0;W<32;W++)V[W]=R[U+W];for(;W<V.length;W+=2){var Q=F(V[W-4],V[W-3]),le=L(V[W-4],V[W-3]),G=V[W-14],fe=V[W-13],ie=O(V[W-30],V[W-29]),he=I(V[W-30],V[W-29]),Y=V[W-32],K=V[W-31];V[W]=y(Q,le,G,fe,ie,he,Y,K),V[W+1]=h(Q,le,G,fe,ie,he,Y,K)}},x.prototype._update=function(R,U){this._prepareBlock(R,U);var V=this.W,W=this.h[0],Q=this.h[1],le=this.h[2],G=this.h[3],fe=this.h[4],ie=this.h[5],he=this.h[6],Y=this.h[7],K=this.h[8],oe=this.h[9],pe=this.h[10],ve=this.h[11],ge=this.h[12],ue=this.h[13],Te=this.h[14],Ee=this.h[15];u(this.k.length===V.length);for(var ye=0;ye<V.length;ye+=2){var Se=Te,Fe=Ee,Ve=N(K,oe),ke=B(K,oe),Pe=C(K,oe,pe,ve,ge),Re=k(K,oe,pe,ve,ge,ue),Ye=this.k[ye],Ke=this.k[ye+1],ot=V[ye],nt=V[ye+1],mt=d(Se,Fe,Ve,ke,Pe,Re,Ye,Ke,ot,nt),Ut=A(Se,Fe,Ve,ke,Pe,Re,Ye,Ke,ot,nt);Se=M(W,Q),Fe=P(W,Q),Ve=T(W,Q,le,G,fe),ke=S(W,Q,le,G,fe,ie);var Ot=p(Se,Fe,Ve,ke),wt=_(Se,Fe,Ve,ke);Te=ge,Ee=ue,ge=pe,ue=ve,pe=K,ve=oe,K=p(he,Y,mt,Ut),oe=_(Y,Y,mt,Ut),he=fe,Y=ie,fe=le,ie=G,le=W,G=Q,W=p(mt,Ut,Ot,wt),Q=_(mt,Ut,Ot,wt)}m(this.h,0,W,Q),m(this.h,2,le,G),m(this.h,4,fe,ie),m(this.h,6,he,Y),m(this.h,8,K,oe),m(this.h,10,pe,ve),m(this.h,12,ge,ue),m(this.h,14,Te,Ee)},x.prototype._digest=function(R){return R==="hex"?t.toHex32(this.h,"big"):t.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(r,i,n){var t=r("../utils").rotr32;function c(o,l,g){return o&l^~o&g}function u(o,l,g){return o&l^o&g^l&g}function f(o,l,g){return o^l^g}n.ft_1=function(o,l,g,m){return o===0?c(l,g,m):o===1||o===3?f(l,g,m):o===2?u(l,g,m):void 0},n.ch32=c,n.maj32=u,n.p32=f,n.s0_256=function(o){return t(o,2)^t(o,13)^t(o,22)},n.s1_256=function(o){return t(o,6)^t(o,11)^t(o,25)},n.g0_256=function(o){return t(o,7)^t(o,18)^o>>>3},n.g1_256=function(o){return t(o,17)^t(o,19)^o>>>10}},{"../utils":437}],437:[function(r,i,n){var t=r("minimalistic-assert"),c=r("inherits");function u(g,m){return(64512&g.charCodeAt(m))==55296&&!(m<0||m+1>=g.length)&&(64512&g.charCodeAt(m+1))==56320}function f(g){return(g>>>24|g>>>8&65280|g<<8&16711680|(255&g)<<24)>>>0}function o(g){return g.length===1?"0"+g:g}function l(g){return g.length===7?"0"+g:g.length===6?"00"+g:g.length===5?"000"+g:g.length===4?"0000"+g:g.length===3?"00000"+g:g.length===2?"000000"+g:g.length===1?"0000000"+g:g}n.inherits=c,n.toArray=function(g,m){if(Array.isArray(g))return g.slice();if(!g)return[];var p=[];if(typeof g=="string")if(m){if(m==="hex")for((g=g.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(g="0"+g),y=0;y<g.length;y+=2)p.push(parseInt(g[y]+g[y+1],16))}else for(var _=0,y=0;y<g.length;y++){var h=g.charCodeAt(y);h<128?p[_++]=h:h<2048?(p[_++]=h>>6|192,p[_++]=63&h|128):u(g,y)?(h=65536+((1023&h)<<10)+(1023&g.charCodeAt(++y)),p[_++]=h>>18|240,p[_++]=h>>12&63|128,p[_++]=h>>6&63|128,p[_++]=63&h|128):(p[_++]=h>>12|224,p[_++]=h>>6&63|128,p[_++]=63&h|128)}else for(y=0;y<g.length;y++)p[y]=0|g[y];return p},n.toHex=function(g){for(var m="",p=0;p<g.length;p++)m+=o(g[p].toString(16));return m},n.htonl=f,n.toHex32=function(g,m){for(var p="",_=0;_<g.length;_++){var y=g[_];m==="little"&&(y=f(y)),p+=l(y.toString(16))}return p},n.zero2=o,n.zero8=l,n.join32=function(g,m,p,_){var y=p-m;t(y%4==0);for(var h=new Array(y/4),d=0,A=m;d<h.length;d++,A+=4){var v;v=_==="big"?g[A]<<24|g[A+1]<<16|g[A+2]<<8|g[A+3]:g[A+3]<<24|g[A+2]<<16|g[A+1]<<8|g[A],h[d]=v>>>0}return h},n.split32=function(g,m){for(var p=new Array(4*g.length),_=0,y=0;_<g.length;_++,y+=4){var h=g[_];m==="big"?(p[y]=h>>>24,p[y+1]=h>>>16&255,p[y+2]=h>>>8&255,p[y+3]=255&h):(p[y+3]=h>>>24,p[y+2]=h>>>16&255,p[y+1]=h>>>8&255,p[y]=255&h)}return p},n.rotr32=function(g,m){return g>>>m|g<<32-m},n.rotl32=function(g,m){return g<<m|g>>>32-m},n.sum32=function(g,m){return g+m>>>0},n.sum32_3=function(g,m,p){return g+m+p>>>0},n.sum32_4=function(g,m,p,_){return g+m+p+_>>>0},n.sum32_5=function(g,m,p,_,y){return g+m+p+_+y>>>0},n.sum64=function(g,m,p,_){var y=g[m],h=_+g[m+1]>>>0,d=(h<_?1:0)+p+y;g[m]=d>>>0,g[m+1]=h},n.sum64_hi=function(g,m,p,_){return(m+_>>>0<m?1:0)+g+p>>>0},n.sum64_lo=function(g,m,p,_){return m+_>>>0},n.sum64_4_hi=function(g,m,p,_,y,h,d,A){var v=0,w=m;return v+=(w=w+_>>>0)<m?1:0,v+=(w=w+h>>>0)<h?1:0,g+p+y+d+(v+=(w=w+A>>>0)<A?1:0)>>>0},n.sum64_4_lo=function(g,m,p,_,y,h,d,A){return m+_+h+A>>>0},n.sum64_5_hi=function(g,m,p,_,y,h,d,A,v,w){var x=0,C=m;return x+=(C=C+_>>>0)<m?1:0,x+=(C=C+h>>>0)<h?1:0,x+=(C=C+A>>>0)<A?1:0,g+p+y+d+v+(x+=(C=C+w>>>0)<w?1:0)>>>0},n.sum64_5_lo=function(g,m,p,_,y,h,d,A,v,w){return m+_+h+A+w>>>0},n.rotr64_hi=function(g,m,p){return(m<<32-p|g>>>p)>>>0},n.rotr64_lo=function(g,m,p){return(g<<32-p|m>>>p)>>>0},n.shr64_hi=function(g,m,p){return g>>>p},n.shr64_lo=function(g,m,p){return(g<<32-p|m>>>p)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(r,i,n){var t=r("hash.js"),c=r("minimalistic-crypto-utils"),u=r("minimalistic-assert");function f(o){if(!(this instanceof f))return new f(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var l=c.toArray(o.entropy,o.entropyEnc||"hex"),g=c.toArray(o.nonce,o.nonceEnc||"hex"),m=c.toArray(o.pers,o.persEnc||"hex");u(l.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(l,g,m)}i.exports=f,f.prototype._init=function(o,l,g){var m=o.concat(l).concat(g);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var p=0;p<this.V.length;p++)this.K[p]=0,this.V[p]=1;this._update(m),this._reseed=1,this.reseedInterval=281474976710656},f.prototype._hmac=function(){return new t.hmac(this.hash,this.K)},f.prototype._update=function(o){var l=this._hmac().update(this.V).update([0]);o&&(l=l.update(o)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),o&&(this.K=this._hmac().update(this.V).update([1]).update(o).digest(),this.V=this._hmac().update(this.V).digest())},f.prototype.reseed=function(o,l,g,m){typeof l!="string"&&(m=g,g=l,l=null),o=c.toArray(o,l),g=c.toArray(g,m),u(o.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(o.concat(g||[])),this._reseed=1},f.prototype.generate=function(o,l,g,m){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(m=g,g=l,l=null),g&&(g=c.toArray(g,m||"hex"),this._update(g));for(var p=[];p.length<o;)this.V=this._hmac().update(this.V).digest(),p=p.concat(this.V);var _=p.slice(0,o);return this._update(g),this._reseed++,c.encode(_,l)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(r,i,n){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */n.read=function(t,c,u,f,o){var l,g,m=8*o-f-1,p=(1<<m)-1,_=p>>1,y=-7,h=u?o-1:0,d=u?-1:1,A=t[c+h];for(h+=d,l=A&(1<<-y)-1,A>>=-y,y+=m;y>0;l=256*l+t[c+h],h+=d,y-=8);for(g=l&(1<<-y)-1,l>>=-y,y+=f;y>0;g=256*g+t[c+h],h+=d,y-=8);if(l===0)l=1-_;else{if(l===p)return g?NaN:1/0*(A?-1:1);g+=Math.pow(2,f),l-=_}return(A?-1:1)*g*Math.pow(2,l-f)},n.write=function(t,c,u,f,o,l){var g,m,p,_=8*l-o-1,y=(1<<_)-1,h=y>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,A=f?0:l-1,v=f?1:-1,w=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(m=isNaN(c)?1:0,g=y):(g=Math.floor(Math.log(c)/Math.LN2),c*(p=Math.pow(2,-g))<1&&(g--,p*=2),(c+=g+h>=1?d/p:d*Math.pow(2,1-h))*p>=2&&(g++,p/=2),g+h>=y?(m=0,g=y):g+h>=1?(m=(c*p-1)*Math.pow(2,o),g+=h):(m=c*Math.pow(2,h-1)*Math.pow(2,o),g=0));o>=8;t[u+A]=255&m,A+=v,m/=256,o-=8);for(g=g<<o|m,_+=o;_>0;t[u+A]=255&g,A+=v,g/=256,_-=8);t[u+A-v]|=128*w}},{}],440:[function(r,i,n){typeof Object.create=="function"?i.exports=function(t,c){c&&(t.super_=c,t.prototype=Object.create(c.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(t,c){if(c){t.super_=c;var u=function(){};u.prototype=c.prototype,t.prototype=new u,t.prototype.constructor=t}}},{}],441:[function(r,i,n){(function(t,c,u,f,o,l,g,m){(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(p){typeof n=="object"&&i!==void 0?i.exports=p():(typeof window<"u"?window:c!==void 0?c:typeof self<"u"?self:this).JSZip=p()})((function(){return(function p(_,y,h){function d(w,x){if(!y[w]){if(!_[w]){var C=typeof r=="function"&&r;if(!x&&C)return C(w,!0);if(A)return A(w,!0);var k=new Error("Cannot find module '"+w+"'");throw k.code="MODULE_NOT_FOUND",k}var T=y[w]={exports:{}};_[w][0].call(T.exports,(function(S){return d(_[w][1][S]||S)}),T,T.exports,p,_,y,h)}return y[w].exports}for(var A=typeof r=="function"&&r,v=0;v<h.length;v++)d(h[v]);return d})({1:[function(p,_,y){var h=p("./utils"),d=p("./support"),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";y.encode=function(v){for(var w,x,C,k,T,S,M,P=[],N=0,B=v.length,O=B,I=h.getTypeOf(v)!=="string";N<v.length;)O=B-N,C=I?(w=v[N++],x=N<B?v[N++]:0,N<B?v[N++]:0):(w=v.charCodeAt(N++),x=N<B?v.charCodeAt(N++):0,N<B?v.charCodeAt(N++):0),k=w>>2,T=(3&w)<<4|x>>4,S=1<O?(15&x)<<2|C>>6:64,M=2<O?63&C:64,P.push(A.charAt(k)+A.charAt(T)+A.charAt(S)+A.charAt(M));return P.join("")},y.decode=function(v){var w,x,C,k,T,S,M=0,P=0,N="data:";if(v.substr(0,N.length)===N)throw new Error("Invalid base64 input, it looks like a data url.");var B,O=3*(v=v.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(v.charAt(v.length-1)===A.charAt(64)&&O--,v.charAt(v.length-2)===A.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(B=d.uint8array?new Uint8Array(0|O):new Array(0|O);M<v.length;)w=A.indexOf(v.charAt(M++))<<2|(k=A.indexOf(v.charAt(M++)))>>4,x=(15&k)<<4|(T=A.indexOf(v.charAt(M++)))>>2,C=(3&T)<<6|(S=A.indexOf(v.charAt(M++))),B[P++]=w,T!==64&&(B[P++]=x),S!==64&&(B[P++]=C);return B}},{"./support":30,"./utils":32}],2:[function(p,_,y){var h=p("./external"),d=p("./stream/DataWorker"),A=p("./stream/Crc32Probe"),v=p("./stream/DataLengthProbe");function w(x,C,k,T,S){this.compressedSize=x,this.uncompressedSize=C,this.crc32=k,this.compression=T,this.compressedContent=S}w.prototype={getContentWorker:function(){var x=new d(h.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new v("data_length")),C=this;return x.on("end",(function(){if(this.streamInfo.data_length!==C.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),x},getCompressedWorker:function(){return new d(h.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(x,C,k){return x.pipe(new A).pipe(new v("uncompressedSize")).pipe(C.compressWorker(k)).pipe(new v("compressedSize")).withStreamInfo("compression",C)},_.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,_,y){var h=p("./stream/GenericWorker");y.STORE={magic:"\0\0",compressWorker:function(){return new h("STORE compression")},uncompressWorker:function(){return new h("STORE decompression")}},y.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,_,y){var h=p("./utils"),d=(function(){for(var A,v=[],w=0;w<256;w++){A=w;for(var x=0;x<8;x++)A=1&A?3988292384^A>>>1:A>>>1;v[w]=A}return v})();_.exports=function(A,v){return A!==void 0&&A.length?h.getTypeOf(A)!=="string"?(function(w,x,C,k){var T=d,S=0+C;w^=-1;for(var M=0;M<S;M++)w=w>>>8^T[255&(w^x[M])];return-1^w})(0|v,A,A.length):(function(w,x,C,k){var T=d,S=0+C;w^=-1;for(var M=0;M<S;M++)w=w>>>8^T[255&(w^x.charCodeAt(M))];return-1^w})(0|v,A,A.length):0}},{"./utils":32}],5:[function(p,_,y){y.base64=!1,y.binary=!1,y.dir=!1,y.createFolders=!0,y.date=null,y.compression=null,y.compressionOptions=null,y.comment=null,y.unixPermissions=null,y.dosPermissions=null},{}],6:[function(p,_,y){var h;h=typeof Promise<"u"?Promise:p("lie"),_.exports={Promise:h}},{lie:37}],7:[function(p,_,y){var h=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",d=p("pako"),A=p("./utils"),v=p("./stream/GenericWorker"),w=h?"uint8array":"array";function x(C,k){v.call(this,"FlateWorker/"+C),this._pako=null,this._pakoAction=C,this._pakoOptions=k,this.meta={}}y.magic="\b\0",A.inherits(x,v),x.prototype.processChunk=function(C){this.meta=C.meta,this._pako===null&&this._createPako(),this._pako.push(A.transformTo(w,C.data),!1)},x.prototype.flush=function(){v.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},x.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this._pako=null},x.prototype._createPako=function(){this._pako=new d[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var C=this;this._pako.onData=function(k){C.push({data:k,meta:C.meta})}},y.compressWorker=function(C){return new x("Deflate",C)},y.uncompressWorker=function(){return new x("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,_,y){function h(T,S){var M,P="";for(M=0;M<S;M++)P+=String.fromCharCode(255&T),T>>>=8;return P}function d(T,S,M,P,N,B){var O,I,F=T.file,L=T.compression,R=B!==w.utf8encode,U=A.transformTo("string",B(F.name)),V=A.transformTo("string",w.utf8encode(F.name)),W=F.comment,Q=A.transformTo("string",B(W)),le=A.transformTo("string",w.utf8encode(W)),G=V.length!==F.name.length,fe=le.length!==W.length,ie="",he="",Y="",K=F.dir,oe=F.date,pe={crc32:0,compressedSize:0,uncompressedSize:0};S&&!M||(pe.crc32=T.crc32,pe.compressedSize=T.compressedSize,pe.uncompressedSize=T.uncompressedSize);var ve=0;S&&(ve|=8),R||!G&&!fe||(ve|=2048);var ge=0,ue=0;K&&(ge|=16),N==="UNIX"?(ue=798,ge|=(function(Ee,ye){var Se=Ee;return Ee||(Se=ye?16893:33204),(65535&Se)<<16})(F.unixPermissions,K)):(ue=20,ge|=(function(Ee){return 63&(Ee||0)})(F.dosPermissions)),O=oe.getUTCHours(),O<<=6,O|=oe.getUTCMinutes(),O<<=5,O|=oe.getUTCSeconds()/2,I=oe.getUTCFullYear()-1980,I<<=4,I|=oe.getUTCMonth()+1,I<<=5,I|=oe.getUTCDate(),G&&(he=h(1,1)+h(x(U),4)+V,ie+="up"+h(he.length,2)+he),fe&&(Y=h(1,1)+h(x(Q),4)+le,ie+="uc"+h(Y.length,2)+Y);var Te="";return Te+=`
\0`,Te+=h(ve,2),Te+=L.magic,Te+=h(O,2),Te+=h(I,2),Te+=h(pe.crc32,4),Te+=h(pe.compressedSize,4),Te+=h(pe.uncompressedSize,4),Te+=h(U.length,2),Te+=h(ie.length,2),{fileRecord:C.LOCAL_FILE_HEADER+Te+U+ie,dirRecord:C.CENTRAL_FILE_HEADER+h(ue,2)+Te+h(Q.length,2)+"\0\0\0\0"+h(ge,4)+h(P,4)+U+ie+Q}}var A=p("../utils"),v=p("../stream/GenericWorker"),w=p("../utf8"),x=p("../crc32"),C=p("../signature");function k(T,S,M,P){v.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=S,this.zipPlatform=M,this.encodeFileName=P,this.streamFiles=T,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}A.inherits(k,v),k.prototype.push=function(T){var S=T.meta.percent||0,M=this.entriesCount,P=this._sources.length;this.accumulate?this.contentBuffer.push(T):(this.bytesWritten+=T.data.length,v.prototype.push.call(this,{data:T.data,meta:{currentFile:this.currentFile,percent:M?(S+100*(M-P-1))/M:100}}))},k.prototype.openedSource=function(T){this.currentSourceOffset=this.bytesWritten,this.currentFile=T.file.name;var S=this.streamFiles&&!T.file.dir;if(S){var M=d(T,S,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:M.fileRecord,meta:{percent:0}})}else this.accumulate=!0},k.prototype.closedSource=function(T){this.accumulate=!1;var S=this.streamFiles&&!T.file.dir,M=d(T,S,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(M.dirRecord),S)this.push({data:(function(P){return C.DATA_DESCRIPTOR+h(P.crc32,4)+h(P.compressedSize,4)+h(P.uncompressedSize,4)})(T),meta:{percent:100}});else for(this.push({data:M.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},k.prototype.flush=function(){for(var T=this.bytesWritten,S=0;S<this.dirRecords.length;S++)this.push({data:this.dirRecords[S],meta:{percent:100}});var M=this.bytesWritten-T,P=(function(N,B,O,I,F){var L=A.transformTo("string",F(I));return C.CENTRAL_DIRECTORY_END+"\0\0\0\0"+h(N,2)+h(N,2)+h(B,4)+h(O,4)+h(L.length,2)+L})(this.dirRecords.length,M,T,this.zipComment,this.encodeFileName);this.push({data:P,meta:{percent:100}})},k.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},k.prototype.registerPrevious=function(T){this._sources.push(T);var S=this;return T.on("data",(function(M){S.processChunk(M)})),T.on("end",(function(){S.closedSource(S.previous.streamInfo),S._sources.length?S.prepareNextSource():S.end()})),T.on("error",(function(M){S.error(M)})),this},k.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},k.prototype.error=function(T){var S=this._sources;if(!v.prototype.error.call(this,T))return!1;for(var M=0;M<S.length;M++)try{S[M].error(T)}catch{}return!0},k.prototype.lock=function(){v.prototype.lock.call(this);for(var T=this._sources,S=0;S<T.length;S++)T[S].lock()},_.exports=k},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,_,y){var h=p("../compressions"),d=p("./ZipFileWorker");y.generateWorker=function(A,v,w){var x=new d(v.streamFiles,w,v.platform,v.encodeFileName),C=0;try{A.forEach((function(k,T){C++;var S=(function(B,O){var I=B||O,F=h[I];if(!F)throw new Error(I+" is not a valid compression method !");return F})(T.options.compression,v.compression),M=T.options.compressionOptions||v.compressionOptions||{},P=T.dir,N=T.date;T._compressWorker(S,M).withStreamInfo("file",{name:k,dir:P,date:N,comment:T.comment||"",unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions}).pipe(x)})),x.entriesCount=C}catch(k){x.error(k)}return x}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,_,y){function h(){if(!(this instanceof h))return new h;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 d=new h;for(var A in this)typeof this[A]!="function"&&(d[A]=this[A]);return d}}(h.prototype=p("./object")).loadAsync=p("./load"),h.support=p("./support"),h.defaults=p("./defaults"),h.version="3.10.1",h.loadAsync=function(d,A){return new h().loadAsync(d,A)},h.external=p("./external"),_.exports=h},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,_,y){var h=p("./utils"),d=p("./external"),A=p("./utf8"),v=p("./zipEntries"),w=p("./stream/Crc32Probe"),x=p("./nodejsUtils");function C(k){return new d.Promise((function(T,S){var M=k.decompressed.getContentWorker().pipe(new w);M.on("error",(function(P){S(P)})).on("end",(function(){M.streamInfo.crc32!==k.decompressed.crc32?S(new Error("Corrupted zip : CRC32 mismatch")):T()})).resume()}))}_.exports=function(k,T){var S=this;return T=h.extend(T||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:A.utf8decode}),x.isNode&&x.isStream(k)?d.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):h.prepareContent("the loaded zip file",k,!0,T.optimizedBinaryString,T.base64).then((function(M){var P=new v(T);return P.load(M),P})).then((function(M){var P=[d.Promise.resolve(M)],N=M.files;if(T.checkCRC32)for(var B=0;B<N.length;B++)P.push(C(N[B]));return d.Promise.all(P)})).then((function(M){for(var P=M.shift(),N=P.files,B=0;B<N.length;B++){var O=N[B],I=O.fileNameStr,F=h.resolve(O.fileNameStr);S.file(F,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:T.createFolders}),O.dir||(S.file(F).unsafeOriginalName=I)}return P.zipComment.length&&(S.comment=P.zipComment),S}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,_,y){var h=p("../utils"),d=p("../stream/GenericWorker");function A(v,w){d.call(this,"Nodejs stream input adapter for "+v),this._upstreamEnded=!1,this._bindStream(w)}h.inherits(A,d),A.prototype._bindStream=function(v){var w=this;(this._stream=v).pause(),v.on("data",(function(x){w.push({data:x,meta:{percent:0}})})).on("error",(function(x){w.isPaused?this.generatedError=x:w.error(x)})).on("end",(function(){w.isPaused?w._upstreamEnded=!0:w.end()}))},A.prototype.pause=function(){return!!d.prototype.pause.call(this)&&(this._stream.pause(),!0)},A.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},_.exports=A},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,_,y){var h=p("readable-stream").Readable;function d(A,v,w){h.call(this,v),this._helper=A;var x=this;A.on("data",(function(C,k){x.push(C)||x._helper.pause(),w&&w(k)})).on("error",(function(C){x.emit("error",C)})).on("end",(function(){x.push(null)}))}p("../utils").inherits(d,h),d.prototype._read=function(){this._helper.resume()},_.exports=d},{"../utils":32,"readable-stream":16}],14:[function(p,_,y){_.exports={isNode:u!==void 0,newBufferFrom:function(h,d){if(u.from&&u.from!==Uint8Array.from)return u.from(h,d);if(typeof h=="number")throw new Error('The "data" argument must not be a number');return new u(h,d)},allocBuffer:function(h){if(u.alloc)return u.alloc(h);var d=new u(h);return d.fill(0),d},isBuffer:function(h){return u.isBuffer(h)},isStream:function(h){return h&&typeof h.on=="function"&&typeof h.pause=="function"&&typeof h.resume=="function"}}},{}],15:[function(p,_,y){function h(F,L,R){var U,V=A.getTypeOf(L),W=A.extend(R||{},x);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(F=N(F)),W.createFolders&&(U=P(F))&&B.call(this,U,!0);var Q=V==="string"&&W.binary===!1&&W.base64===!1;R&&R.binary!==void 0||(W.binary=!Q),(L instanceof C&&L.uncompressedSize===0||W.dir||!L||L.length===0)&&(W.base64=!1,W.binary=!0,L="",W.compression="STORE",V="string");var le;le=L instanceof C||L instanceof v?L:S.isNode&&S.isStream(L)?new M(F,L):A.prepareContent(F,L,W.binary,W.optimizedBinaryString,W.base64);var G=new k(F,le,W);this.files[F]=G}var d=p("./utf8"),A=p("./utils"),v=p("./stream/GenericWorker"),w=p("./stream/StreamHelper"),x=p("./defaults"),C=p("./compressedObject"),k=p("./zipObject"),T=p("./generate"),S=p("./nodejsUtils"),M=p("./nodejs/NodejsStreamInputAdapter"),P=function(F){F.slice(-1)==="/"&&(F=F.substring(0,F.length-1));var L=F.lastIndexOf("/");return 0<L?F.substring(0,L):""},N=function(F){return F.slice(-1)!=="/"&&(F+="/"),F},B=function(F,L){return L=L!==void 0?L:x.createFolders,F=N(F),this.files[F]||h.call(this,F,null,{dir:!0,createFolders:L}),this.files[F]};function O(F){return Object.prototype.toString.call(F)==="[object RegExp]"}var I={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(F){var L,R,U;for(L in this.files)U=this.files[L],(R=L.slice(this.root.length,L.length))&&L.slice(0,this.root.length)===this.root&&F(R,U)},filter:function(F){var L=[];return this.forEach((function(R,U){F(R,U)&&L.push(U)})),L},file:function(F,L,R){if(arguments.length!==1)return F=this.root+F,h.call(this,F,L,R),this;if(O(F)){var U=F;return this.filter((function(W,Q){return!Q.dir&&U.test(W)}))}var V=this.files[this.root+F];return V&&!V.dir?V:null},folder:function(F){if(!F)return this;if(O(F))return this.filter((function(V,W){return W.dir&&F.test(V)}));var L=this.root+F,R=B.call(this,L),U=this.clone();return U.root=R.name,U},remove:function(F){F=this.root+F;var L=this.files[F];if(L||(F.slice(-1)!=="/"&&(F+="/"),L=this.files[F]),L&&!L.dir)delete this.files[F];else for(var R=this.filter((function(V,W){return W.name.slice(0,F.length)===F})),U=0;U<R.length;U++)delete this.files[R[U].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(F){var L,R={};try{if((R=A.extend(F||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:d.utf8encode})).type=R.type.toLowerCase(),R.compression=R.compression.toUpperCase(),R.type==="binarystring"&&(R.type="string"),!R.type)throw new Error("No output type specified.");A.checkSupport(R.type),R.platform!=="darwin"&&R.platform!=="freebsd"&&R.platform!=="linux"&&R.platform!=="sunos"||(R.platform="UNIX"),R.platform==="win32"&&(R.platform="DOS");var U=R.comment||this.comment||"";L=T.generateWorker(this,R,U)}catch(V){(L=new v("error")).error(V)}return new w(L,R.type||"string",R.mimeType)},generateAsync:function(F,L){return this.generateInternalStream(F).accumulate(L)},generateNodeStream:function(F,L){return(F=F||{}).type||(F.type="nodebuffer"),this.generateInternalStream(F).toNodejsStream(L)}};_.exports=I},{"./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(p,_,y){_.exports=p("stream")},{stream:void 0}],17:[function(p,_,y){var h=p("./DataReader");function d(A){h.call(this,A);for(var v=0;v<this.data.length;v++)A[v]=255&A[v]}p("../utils").inherits(d,h),d.prototype.byteAt=function(A){return this.data[this.zero+A]},d.prototype.lastIndexOfSignature=function(A){for(var v=A.charCodeAt(0),w=A.charCodeAt(1),x=A.charCodeAt(2),C=A.charCodeAt(3),k=this.length-4;0<=k;--k)if(this.data[k]===v&&this.data[k+1]===w&&this.data[k+2]===x&&this.data[k+3]===C)return k-this.zero;return-1},d.prototype.readAndCheckSignature=function(A){var v=A.charCodeAt(0),w=A.charCodeAt(1),x=A.charCodeAt(2),C=A.charCodeAt(3),k=this.readData(4);return v===k[0]&&w===k[1]&&x===k[2]&&C===k[3]},d.prototype.readData=function(A){if(this.checkOffset(A),A===0)return[];var v=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,v},_.exports=d},{"../utils":32,"./DataReader":18}],18:[function(p,_,y){var h=p("../utils");function d(A){this.data=A,this.length=A.length,this.index=0,this.zero=0}d.prototype={checkOffset:function(A){this.checkIndex(this.index+A)},checkIndex:function(A){if(this.length<this.zero+A||A<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+A+"). Corrupted zip ?")},setIndex:function(A){this.checkIndex(A),this.index=A},skip:function(A){this.setIndex(this.index+A)},byteAt:function(){},readInt:function(A){var v,w=0;for(this.checkOffset(A),v=this.index+A-1;v>=this.index;v--)w=(w<<8)+this.byteAt(v);return this.index+=A,w},readString:function(A){return h.transformTo("string",this.readData(A))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var A=this.readInt(4);return new Date(Date.UTC(1980+(A>>25&127),(A>>21&15)-1,A>>16&31,A>>11&31,A>>5&63,(31&A)<<1))}},_.exports=d},{"../utils":32}],19:[function(p,_,y){var h=p("./Uint8ArrayReader");function d(A){h.call(this,A)}p("../utils").inherits(d,h),d.prototype.readData=function(A){this.checkOffset(A);var v=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,v},_.exports=d},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,_,y){var h=p("./DataReader");function d(A){h.call(this,A)}p("../utils").inherits(d,h),d.prototype.byteAt=function(A){return this.data.charCodeAt(this.zero+A)},d.prototype.lastIndexOfSignature=function(A){return this.data.lastIndexOf(A)-this.zero},d.prototype.readAndCheckSignature=function(A){return A===this.readData(4)},d.prototype.readData=function(A){this.checkOffset(A);var v=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,v},_.exports=d},{"../utils":32,"./DataReader":18}],21:[function(p,_,y){var h=p("./ArrayReader");function d(A){h.call(this,A)}p("../utils").inherits(d,h),d.prototype.readData=function(A){if(this.checkOffset(A),A===0)return new Uint8Array(0);var v=this.data.subarray(this.zero+this.index,this.zero+this.index+A);return this.index+=A,v},_.exports=d},{"../utils":32,"./ArrayReader":17}],22:[function(p,_,y){var h=p("../utils"),d=p("../support"),A=p("./ArrayReader"),v=p("./StringReader"),w=p("./NodeBufferReader"),x=p("./Uint8ArrayReader");_.exports=function(C){var k=h.getTypeOf(C);return h.checkSupport(k),k!=="string"||d.uint8array?k==="nodebuffer"?new w(C):d.uint8array?new x(h.transformTo("uint8array",C)):new A(h.transformTo("array",C)):new v(C)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,_,y){y.LOCAL_FILE_HEADER="PK",y.CENTRAL_FILE_HEADER="PK",y.CENTRAL_DIRECTORY_END="PK",y.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",y.ZIP64_CENTRAL_DIRECTORY_END="PK",y.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,_,y){var h=p("./GenericWorker"),d=p("../utils");function A(v){h.call(this,"ConvertWorker to "+v),this.destType=v}d.inherits(A,h),A.prototype.processChunk=function(v){this.push({data:d.transformTo(this.destType,v.data),meta:v.meta})},_.exports=A},{"../utils":32,"./GenericWorker":28}],25:[function(p,_,y){var h=p("./GenericWorker"),d=p("../crc32");function A(){h.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(A,h),A.prototype.processChunk=function(v){this.streamInfo.crc32=d(v.data,this.streamInfo.crc32||0),this.push(v)},_.exports=A},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,_,y){var h=p("../utils"),d=p("./GenericWorker");function A(v){d.call(this,"DataLengthProbe for "+v),this.propName=v,this.withStreamInfo(v,0)}h.inherits(A,d),A.prototype.processChunk=function(v){if(v){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+v.data.length}d.prototype.processChunk.call(this,v)},_.exports=A},{"../utils":32,"./GenericWorker":28}],27:[function(p,_,y){var h=p("../utils"),d=p("./GenericWorker");function A(v){d.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,v.then((function(x){w.dataIsReady=!0,w.data=x,w.max=x&&x.length||0,w.type=h.getTypeOf(x),w.isPaused||w._tickAndRepeat()}),(function(x){w.error(x)}))}h.inherits(A,d),A.prototype.cleanUp=function(){d.prototype.cleanUp.call(this),this.data=null},A.prototype.resume=function(){return!!d.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,h.delay(this._tickAndRepeat,[],this)),!0)},A.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(h.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},A.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var v=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":v=this.data.substring(this.index,w);break;case"uint8array":v=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":v=this.data.slice(this.index,w)}return this.index=w,this.push({data:v,meta:{percent:this.max?this.index/this.max*100:0}})},_.exports=A},{"../utils":32,"./GenericWorker":28}],28:[function(p,_,y){function h(d){this.name=d||"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}h.prototype={push:function(d){this.emit("data",d)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(d){this.emit("error",d)}return!0},error:function(d){return!this.isFinished&&(this.isPaused?this.generatedError=d:(this.isFinished=!0,this.emit("error",d),this.previous&&this.previous.error(d),this.cleanUp()),!0)},on:function(d,A){return this._listeners[d].push(A),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(d,A){if(this._listeners[d])for(var v=0;v<this._listeners[d].length;v++)this._listeners[d][v].call(this,A)},pipe:function(d){return d.registerPrevious(this)},registerPrevious:function(d){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=d.streamInfo,this.mergeStreamInfo(),this.previous=d;var A=this;return d.on("data",(function(v){A.processChunk(v)})),d.on("end",(function(){A.end()})),d.on("error",(function(v){A.error(v)})),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 d=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),d=!0),this.previous&&this.previous.resume(),!d},flush:function(){},processChunk:function(d){this.push(d)},withStreamInfo:function(d,A){return this.extraStreamInfo[d]=A,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var d in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,d)&&(this.streamInfo[d]=this.extraStreamInfo[d])},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 d="Worker "+this.name;return this.previous?this.previous+" -> "+d:d}},_.exports=h},{}],29:[function(p,_,y){var h=p("../utils"),d=p("./ConvertWorker"),A=p("./GenericWorker"),v=p("../base64"),w=p("../support"),x=p("../external"),C=null;if(w.nodestream)try{C=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function k(T,S,M){var P=S;switch(S){case"blob":case"arraybuffer":P="uint8array";break;case"base64":P="string"}try{this._internalType=P,this._outputType=S,this._mimeType=M,h.checkSupport(P),this._worker=T.pipe(new d(P)),T.lock()}catch(N){this._worker=new A("error"),this._worker.error(N)}}k.prototype={accumulate:function(T){return(function(S,M){return new x.Promise((function(P,N){var B=[],O=S._internalType,I=S._outputType,F=S._mimeType;S.on("data",(function(L,R){B.push(L),M&&M(R)})).on("error",(function(L){B=[],N(L)})).on("end",(function(){try{var L=(function(R,U,V){switch(R){case"blob":return h.newBlob(h.transformTo("arraybuffer",U),V);case"base64":return v.encode(U);default:return h.transformTo(R,U)}})(I,(function(R,U){var V,W=0,Q=null,le=0;for(V=0;V<U.length;V++)le+=U[V].length;switch(R){case"string":return U.join("");case"array":return Array.prototype.concat.apply([],U);case"uint8array":for(Q=new Uint8Array(le),V=0;V<U.length;V++)Q.set(U[V],W),W+=U[V].length;return Q;case"nodebuffer":return u.concat(U);default:throw new Error("concat : unsupported type '"+R+"'")}})(O,B),F);P(L)}catch(R){N(R)}B=[]})).resume()}))})(this,T)},on:function(T,S){var M=this;return T==="data"?this._worker.on(T,(function(P){S.call(M,P.data,P.meta)})):this._worker.on(T,(function(){h.delay(S,arguments,M)})),this},resume:function(){return h.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(T){if(h.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new C(this,{objectMode:this._outputType!=="nodebuffer"},T)}},_.exports=k},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,_,y){if(y.base64=!0,y.array=!0,y.string=!0,y.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",y.nodebuffer=u!==void 0,y.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")y.blob=!1;else{var h=new ArrayBuffer(0);try{y.blob=new Blob([h],{type:"application/zip"}).size===0}catch{try{var d=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);d.append(h),y.blob=d.getBlob("application/zip").size===0}catch{y.blob=!1}}}try{y.nodestream=!!p("readable-stream").Readable}catch{y.nodestream=!1}},{"readable-stream":16}],31:[function(p,_,y){for(var h=p("./utils"),d=p("./support"),A=p("./nodejsUtils"),v=p("./stream/GenericWorker"),w=new Array(256),x=0;x<256;x++)w[x]=252<=x?6:248<=x?5:240<=x?4:224<=x?3:192<=x?2:1;function C(){v.call(this,"utf-8 decode"),this.leftOver=null}function k(){v.call(this,"utf-8 encode")}w[254]=w[254]=1,y.utf8encode=function(T){return d.nodebuffer?A.newBufferFrom(T,"utf-8"):(function(S){var M,P,N,B,O,I=S.length,F=0;for(B=0;B<I;B++)(64512&(P=S.charCodeAt(B)))==55296&&B+1<I&&(64512&(N=S.charCodeAt(B+1)))==56320&&(P=65536+(P-55296<<10)+(N-56320),B++),F+=P<128?1:P<2048?2:P<65536?3:4;for(M=d.uint8array?new Uint8Array(F):new Array(F),B=O=0;O<F;B++)(64512&(P=S.charCodeAt(B)))==55296&&B+1<I&&(64512&(N=S.charCodeAt(B+1)))==56320&&(P=65536+(P-55296<<10)+(N-56320),B++),P<128?M[O++]=P:(P<2048?M[O++]=192|P>>>6:(P<65536?M[O++]=224|P>>>12:(M[O++]=240|P>>>18,M[O++]=128|P>>>12&63),M[O++]=128|P>>>6&63),M[O++]=128|63&P);return M})(T)},y.utf8decode=function(T){return d.nodebuffer?h.transformTo("nodebuffer",T).toString("utf-8"):(function(S){var M,P,N,B,O=S.length,I=new Array(2*O);for(M=P=0;M<O;)if((N=S[M++])<128)I[P++]=N;else if(4<(B=w[N]))I[P++]=65533,M+=B-1;else{for(N&=B===2?31:B===3?15:7;1<B&&M<O;)N=N<<6|63&S[M++],B--;1<B?I[P++]=65533:N<65536?I[P++]=N:(N-=65536,I[P++]=55296|N>>10&1023,I[P++]=56320|1023&N)}return I.length!==P&&(I.subarray?I=I.subarray(0,P):I.length=P),h.applyFromCharCode(I)})(T=h.transformTo(d.uint8array?"uint8array":"array",T))},h.inherits(C,v),C.prototype.processChunk=function(T){var S=h.transformTo(d.uint8array?"uint8array":"array",T.data);if(this.leftOver&&this.leftOver.length){if(d.uint8array){var M=S;(S=new Uint8Array(M.length+this.leftOver.length)).set(this.leftOver,0),S.set(M,this.leftOver.length)}else S=this.leftOver.concat(S);this.leftOver=null}var P=(function(B,O){var I;for((O=O||B.length)>B.length&&(O=B.length),I=O-1;0<=I&&(192&B[I])==128;)I--;return I<0||I===0?O:I+w[B[I]]>O?I:O})(S),N=S;P!==S.length&&(d.uint8array?(N=S.subarray(0,P),this.leftOver=S.subarray(P,S.length)):(N=S.slice(0,P),this.leftOver=S.slice(P,S.length))),this.push({data:y.utf8decode(N),meta:T.meta})},C.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:y.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},y.Utf8DecodeWorker=C,h.inherits(k,v),k.prototype.processChunk=function(T){this.push({data:y.utf8encode(T.data),meta:T.meta})},y.Utf8EncodeWorker=k},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,_,y){var h=p("./support"),d=p("./base64"),A=p("./nodejsUtils"),v=p("./external");function w(M){return M}function x(M,P){for(var N=0;N<M.length;++N)P[N]=255&M.charCodeAt(N);return P}p("setimmediate"),y.newBlob=function(M,P){y.checkSupport("blob");try{return new Blob([M],{type:P})}catch{try{var N=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return N.append(M),N.getBlob(P)}catch{throw new Error("Bug : can't construct the Blob.")}}};var C={stringifyByChunk:function(M,P,N){var B=[],O=0,I=M.length;if(I<=N)return String.fromCharCode.apply(null,M);for(;O<I;)P==="array"||P==="nodebuffer"?B.push(String.fromCharCode.apply(null,M.slice(O,Math.min(O+N,I)))):B.push(String.fromCharCode.apply(null,M.subarray(O,Math.min(O+N,I)))),O+=N;return B.join("")},stringifyByChar:function(M){for(var P="",N=0;N<M.length;N++)P+=String.fromCharCode(M[N]);return P},applyCanBeUsed:{uint8array:(function(){try{return h.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return h.nodebuffer&&String.fromCharCode.apply(null,A.allocBuffer(1)).length===1}catch{return!1}})()}};function k(M){var P=65536,N=y.getTypeOf(M),B=!0;if(N==="uint8array"?B=C.applyCanBeUsed.uint8array:N==="nodebuffer"&&(B=C.applyCanBeUsed.nodebuffer),B)for(;1<P;)try{return C.stringifyByChunk(M,N,P)}catch{P=Math.floor(P/2)}return C.stringifyByChar(M)}function T(M,P){for(var N=0;N<M.length;N++)P[N]=M[N];return P}y.applyFromCharCode=k;var S={};S.string={string:w,array:function(M){return x(M,new Array(M.length))},arraybuffer:function(M){return S.string.uint8array(M).buffer},uint8array:function(M){return x(M,new Uint8Array(M.length))},nodebuffer:function(M){return x(M,A.allocBuffer(M.length))}},S.array={string:k,array:w,arraybuffer:function(M){return new Uint8Array(M).buffer},uint8array:function(M){return new Uint8Array(M)},nodebuffer:function(M){return A.newBufferFrom(M)}},S.arraybuffer={string:function(M){return k(new Uint8Array(M))},array:function(M){return T(new Uint8Array(M),new Array(M.byteLength))},arraybuffer:w,uint8array:function(M){return new Uint8Array(M)},nodebuffer:function(M){return A.newBufferFrom(new Uint8Array(M))}},S.uint8array={string:k,array:function(M){return T(M,new Array(M.length))},arraybuffer:function(M){return M.buffer},uint8array:w,nodebuffer:function(M){return A.newBufferFrom(M)}},S.nodebuffer={string:k,array:function(M){return T(M,new Array(M.length))},arraybuffer:function(M){return S.nodebuffer.uint8array(M).buffer},uint8array:function(M){return T(M,new Uint8Array(M.length))},nodebuffer:w},y.transformTo=function(M,P){if(P=P||"",!M)return P;y.checkSupport(M);var N=y.getTypeOf(P);return S[N][M](P)},y.resolve=function(M){for(var P=M.split("/"),N=[],B=0;B<P.length;B++){var O=P[B];O==="."||O===""&&B!==0&&B!==P.length-1||(O===".."?N.pop():N.push(O))}return N.join("/")},y.getTypeOf=function(M){return typeof M=="string"?"string":Object.prototype.toString.call(M)==="[object Array]"?"array":h.nodebuffer&&A.isBuffer(M)?"nodebuffer":h.uint8array&&M instanceof Uint8Array?"uint8array":h.arraybuffer&&M instanceof ArrayBuffer?"arraybuffer":void 0},y.checkSupport=function(M){if(!h[M.toLowerCase()])throw new Error(M+" is not supported by this platform")},y.MAX_VALUE_16BITS=65535,y.MAX_VALUE_32BITS=-1,y.pretty=function(M){var P,N,B="";for(N=0;N<(M||"").length;N++)B+="\\x"+((P=M.charCodeAt(N))<16?"0":"")+P.toString(16).toUpperCase();return B},y.delay=function(M,P,N){m((function(){M.apply(N||null,P||[])}))},y.inherits=function(M,P){function N(){}N.prototype=P.prototype,M.prototype=new N},y.extend=function(){var M,P,N={};for(M=0;M<arguments.length;M++)for(P in arguments[M])Object.prototype.hasOwnProperty.call(arguments[M],P)&&N[P]===void 0&&(N[P]=arguments[M][P]);return N},y.prepareContent=function(M,P,N,B,O){return v.Promise.resolve(P).then((function(I){return h.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1)&&typeof FileReader<"u"?new v.Promise((function(F,L){var R=new FileReader;R.onload=function(U){F(U.target.result)},R.onerror=function(U){L(U.target.error)},R.readAsArrayBuffer(I)})):I})).then((function(I){var F=y.getTypeOf(I);return F?(F==="arraybuffer"?I=y.transformTo("uint8array",I):F==="string"&&(O?I=d.decode(I):N&&B!==!0&&(I=(function(L){return x(L,h.uint8array?new Uint8Array(L.length):new Array(L.length))})(I))),I):v.Promise.reject(new Error("Can't read the data of '"+M+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,_,y){var h=p("./reader/readerFor"),d=p("./utils"),A=p("./signature"),v=p("./zipEntry"),w=p("./support");function x(C){this.files=[],this.loadOptions=C}x.prototype={checkSignature:function(C){if(!this.reader.readAndCheckSignature(C)){this.reader.index-=4;var k=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+d.pretty(k)+", expected "+d.pretty(C)+")")}},isSignature:function(C,k){var T=this.reader.index;this.reader.setIndex(C);var S=this.reader.readString(4)===k;return this.reader.setIndex(T),S},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 C=this.reader.readData(this.zipCommentLength),k=w.uint8array?"uint8array":"array",T=d.transformTo(k,C);this.zipComment=this.loadOptions.decodeFileName(T)},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 C,k,T,S=this.zip64EndOfCentralSize-44;0<S;)C=this.reader.readInt(2),k=this.reader.readInt(4),T=this.reader.readData(k),this.zip64ExtensibleData[C]={id:C,length:k,value:T}},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 C,k;for(C=0;C<this.files.length;C++)k=this.files[C],this.reader.setIndex(k.localHeaderOffset),this.checkSignature(A.LOCAL_FILE_HEADER),k.readLocalPart(this.reader),k.handleUTF8(),k.processAttributes()},readCentralDir:function(){var C;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(A.CENTRAL_FILE_HEADER);)(C=new v({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(C);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 C=this.reader.lastIndexOfSignature(A.CENTRAL_DIRECTORY_END);if(C<0)throw this.isSignature(0,A.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(C);var k=C;if(this.checkSignature(A.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===d.MAX_VALUE_16BITS||this.diskWithCentralDirStart===d.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===d.MAX_VALUE_16BITS||this.centralDirRecords===d.MAX_VALUE_16BITS||this.centralDirSize===d.MAX_VALUE_32BITS||this.centralDirOffset===d.MAX_VALUE_32BITS){if(this.zip64=!0,(C=this.reader.lastIndexOfSignature(A.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(C),this.checkSignature(A.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,A.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(A.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(A.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var T=this.centralDirOffset+this.centralDirSize;this.zip64&&(T+=20,T+=12+this.zip64EndOfCentralSize);var S=k-T;if(0<S)this.isSignature(k,A.CENTRAL_FILE_HEADER)||(this.reader.zero=S);else if(S<0)throw new Error("Corrupted zip: missing "+Math.abs(S)+" bytes.")},prepareReader:function(C){this.reader=h(C)},load:function(C){this.prepareReader(C),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},_.exports=x},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,_,y){var h=p("./reader/readerFor"),d=p("./utils"),A=p("./compressedObject"),v=p("./crc32"),w=p("./utf8"),x=p("./compressions"),C=p("./support");function k(T,S){this.options=T,this.loadOptions=S}k.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(T){var S,M;if(T.skip(22),this.fileNameLength=T.readInt(2),M=T.readInt(2),this.fileName=T.readData(this.fileNameLength),T.skip(M),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((S=(function(P){for(var N in x)if(Object.prototype.hasOwnProperty.call(x,N)&&x[N].magic===P)return x[N];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+d.pretty(this.compressionMethod)+" unknown (inner file : "+d.transformTo("string",this.fileName)+")");this.decompressed=new A(this.compressedSize,this.uncompressedSize,this.crc32,S,T.readData(this.compressedSize))},readCentralPart:function(T){this.versionMadeBy=T.readInt(2),T.skip(2),this.bitFlag=T.readInt(2),this.compressionMethod=T.readString(2),this.date=T.readDate(),this.crc32=T.readInt(4),this.compressedSize=T.readInt(4),this.uncompressedSize=T.readInt(4);var S=T.readInt(2);if(this.extraFieldsLength=T.readInt(2),this.fileCommentLength=T.readInt(2),this.diskNumberStart=T.readInt(2),this.internalFileAttributes=T.readInt(2),this.externalFileAttributes=T.readInt(4),this.localHeaderOffset=T.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");T.skip(S),this.readExtraFields(T),this.parseZIP64ExtraField(T),this.fileComment=T.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var T=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),T==0&&(this.dosPermissions=63&this.externalFileAttributes),T==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var T=h(this.extraFields[1].value);this.uncompressedSize===d.MAX_VALUE_32BITS&&(this.uncompressedSize=T.readInt(8)),this.compressedSize===d.MAX_VALUE_32BITS&&(this.compressedSize=T.readInt(8)),this.localHeaderOffset===d.MAX_VALUE_32BITS&&(this.localHeaderOffset=T.readInt(8)),this.diskNumberStart===d.MAX_VALUE_32BITS&&(this.diskNumberStart=T.readInt(4))}},readExtraFields:function(T){var S,M,P,N=T.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});T.index+4<N;)S=T.readInt(2),M=T.readInt(2),P=T.readData(M),this.extraFields[S]={id:S,length:M,value:P};T.setIndex(N)},handleUTF8:function(){var T=C.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=w.utf8decode(this.fileName),this.fileCommentStr=w.utf8decode(this.fileComment);else{var S=this.findExtraFieldUnicodePath();if(S!==null)this.fileNameStr=S;else{var M=d.transformTo(T,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(M)}var P=this.findExtraFieldUnicodeComment();if(P!==null)this.fileCommentStr=P;else{var N=d.transformTo(T,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(N)}}},findExtraFieldUnicodePath:function(){var T=this.extraFields[28789];if(T){var S=h(T.value);return S.readInt(1)!==1||v(this.fileName)!==S.readInt(4)?null:w.utf8decode(S.readData(T.length-5))}return null},findExtraFieldUnicodeComment:function(){var T=this.extraFields[25461];if(T){var S=h(T.value);return S.readInt(1)!==1||v(this.fileComment)!==S.readInt(4)?null:w.utf8decode(S.readData(T.length-5))}return null}},_.exports=k},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,_,y){function h(S,M,P){this.name=S,this.dir=P.dir,this.date=P.date,this.comment=P.comment,this.unixPermissions=P.unixPermissions,this.dosPermissions=P.dosPermissions,this._data=M,this._dataBinary=P.binary,this.options={compression:P.compression,compressionOptions:P.compressionOptions}}var d=p("./stream/StreamHelper"),A=p("./stream/DataWorker"),v=p("./utf8"),w=p("./compressedObject"),x=p("./stream/GenericWorker");h.prototype={internalStream:function(S){var M=null,P="string";try{if(!S)throw new Error("No output type specified.");var N=(P=S.toLowerCase())==="string"||P==="text";P!=="binarystring"&&P!=="text"||(P="string"),M=this._decompressWorker();var B=!this._dataBinary;B&&!N&&(M=M.pipe(new v.Utf8EncodeWorker)),!B&&N&&(M=M.pipe(new v.Utf8DecodeWorker))}catch(O){(M=new x("error")).error(O)}return new d(M,P,"")},async:function(S,M){return this.internalStream(S).accumulate(M)},nodeStream:function(S,M){return this.internalStream(S||"nodebuffer").toNodejsStream(M)},_compressWorker:function(S,M){if(this._data instanceof w&&this._data.compression.magic===S.magic)return this._data.getCompressedWorker();var P=this._decompressWorker();return this._dataBinary||(P=P.pipe(new v.Utf8EncodeWorker)),w.createWorkerFrom(P,S,M)},_decompressWorker:function(){return this._data instanceof w?this._data.getContentWorker():this._data instanceof x?this._data:new A(this._data)}};for(var C=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},T=0;T<C.length;T++)h.prototype[C[T]]=k;_.exports=h},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,_,y){(function(h){var d,A,v=h.MutationObserver||h.WebKitMutationObserver;if(v){var w=0,x=new v(S),C=h.document.createTextNode("");x.observe(C,{characterData:!0}),d=function(){C.data=w=++w%2}}else if(h.setImmediate||h.MessageChannel===void 0)d="document"in h&&"onreadystatechange"in h.document.createElement("script")?function(){var M=h.document.createElement("script");M.onreadystatechange=function(){S(),M.onreadystatechange=null,M.parentNode.removeChild(M),M=null},h.document.documentElement.appendChild(M)}:function(){setTimeout(S,0)};else{var k=new h.MessageChannel;k.port1.onmessage=S,d=function(){k.port2.postMessage(0)}}var T=[];function S(){var M,P;A=!0;for(var N=T.length;N;){for(P=T,T=[],M=-1;++M<N;)P[M]();N=T.length}A=!1}_.exports=function(M){T.push(M)!==1||A||d()}}).call(this,c!==void 0?c:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,_,y){var h=p("immediate");function d(){}var A={},v=["REJECTED"],w=["FULFILLED"],x=["PENDING"];function C(N){if(typeof N!="function")throw new TypeError("resolver must be a function");this.state=x,this.queue=[],this.outcome=void 0,N!==d&&M(this,N)}function k(N,B,O){this.promise=N,typeof B=="function"&&(this.onFulfilled=B,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function T(N,B,O){h((function(){var I;try{I=B(O)}catch(F){return A.reject(N,F)}I===N?A.reject(N,new TypeError("Cannot resolve promise with itself")):A.resolve(N,I)}))}function S(N){var B=N&&N.then;if(N&&(typeof N=="object"||typeof N=="function")&&typeof B=="function")return function(){B.apply(N,arguments)}}function M(N,B){var O=!1;function I(R){O||(O=!0,A.reject(N,R))}function F(R){O||(O=!0,A.resolve(N,R))}var L=P((function(){B(F,I)}));L.status==="error"&&I(L.value)}function P(N,B){var O={};try{O.value=N(B),O.status="success"}catch(I){O.status="error",O.value=I}return O}(_.exports=C).prototype.finally=function(N){if(typeof N!="function")return this;var B=this.constructor;return this.then((function(O){return B.resolve(N()).then((function(){return O}))}),(function(O){return B.resolve(N()).then((function(){throw O}))}))},C.prototype.catch=function(N){return this.then(null,N)},C.prototype.then=function(N,B){if(typeof N!="function"&&this.state===w||typeof B!="function"&&this.state===v)return this;var O=new this.constructor(d);return this.state!==x?T(O,this.state===w?N:B,this.outcome):this.queue.push(new k(O,N,B)),O},k.prototype.callFulfilled=function(N){A.resolve(this.promise,N)},k.prototype.otherCallFulfilled=function(N){T(this.promise,this.onFulfilled,N)},k.prototype.callRejected=function(N){A.reject(this.promise,N)},k.prototype.otherCallRejected=function(N){T(this.promise,this.onRejected,N)},A.resolve=function(N,B){var O=P(S,B);if(O.status==="error")return A.reject(N,O.value);var I=O.value;if(I)M(N,I);else{N.state=w,N.outcome=B;for(var F=-1,L=N.queue.length;++F<L;)N.queue[F].callFulfilled(B)}return N},A.reject=function(N,B){N.state=v,N.outcome=B;for(var O=-1,I=N.queue.length;++O<I;)N.queue[O].callRejected(B);return N},C.resolve=function(N){return N instanceof this?N:A.resolve(new this(d),N)},C.reject=function(N){var B=new this(d);return A.reject(B,N)},C.all=function(N){var B=this;if(Object.prototype.toString.call(N)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=N.length,I=!1;if(!O)return this.resolve([]);for(var F=new Array(O),L=0,R=-1,U=new this(d);++R<O;)V(N[R],R);return U;function V(W,Q){B.resolve(W).then((function(le){F[Q]=le,++L!==O||I||(I=!0,A.resolve(U,F))}),(function(le){I||(I=!0,A.reject(U,le))}))}},C.race=function(N){if(Object.prototype.toString.call(N)!=="[object Array]")return this.reject(new TypeError("must be an array"));var B=N.length,O=!1;if(!B)return this.resolve([]);for(var I,F=-1,L=new this(d);++F<B;)I=N[F],this.resolve(I).then((function(R){O||(O=!0,A.resolve(L,R))}),(function(R){O||(O=!0,A.reject(L,R))}));return L}},{immediate:36}],38:[function(p,_,y){var h={};(0,p("./lib/utils/common").assign)(h,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),_.exports=h},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,_,y){var h=p("./zlib/deflate"),d=p("./utils/common"),A=p("./utils/strings"),v=p("./zlib/messages"),w=p("./zlib/zstream"),x=Object.prototype.toString;function C(T){if(!(this instanceof C))return new C(T);this.options=d.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},T||{});var S=this.options;S.raw&&0<S.windowBits?S.windowBits=-S.windowBits:S.gzip&&0<S.windowBits&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var M=h.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(M!==0)throw new Error(v[M]);if(S.header&&h.deflateSetHeader(this.strm,S.header),S.dictionary){var P;if(P=typeof S.dictionary=="string"?A.string2buf(S.dictionary):x.call(S.dictionary)==="[object ArrayBuffer]"?new Uint8Array(S.dictionary):S.dictionary,(M=h.deflateSetDictionary(this.strm,P))!==0)throw new Error(v[M]);this._dict_set=!0}}function k(T,S){var M=new C(S);if(M.push(T,!0),M.err)throw M.msg||v[M.err];return M.result}C.prototype.push=function(T,S){var M,P,N=this.strm,B=this.options.chunkSize;if(this.ended)return!1;P=S===~~S?S:S===!0?4:0,typeof T=="string"?N.input=A.string2buf(T):x.call(T)==="[object ArrayBuffer]"?N.input=new Uint8Array(T):N.input=T,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new d.Buf8(B),N.next_out=0,N.avail_out=B),(M=h.deflate(N,P))!==1&&M!==0)return this.onEnd(M),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||P!==4&&P!==2)||(this.options.to==="string"?this.onData(A.buf2binstring(d.shrinkBuf(N.output,N.next_out))):this.onData(d.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&M!==1);return P===4?(M=h.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===0):P!==2||(this.onEnd(0),!(N.avail_out=0))},C.prototype.onData=function(T){this.chunks.push(T)},C.prototype.onEnd=function(T){T===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},y.Deflate=C,y.deflate=k,y.deflateRaw=function(T,S){return(S=S||{}).raw=!0,k(T,S)},y.gzip=function(T,S){return(S=S||{}).gzip=!0,k(T,S)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,_,y){var h=p("./zlib/inflate"),d=p("./utils/common"),A=p("./utils/strings"),v=p("./zlib/constants"),w=p("./zlib/messages"),x=p("./zlib/zstream"),C=p("./zlib/gzheader"),k=Object.prototype.toString;function T(M){if(!(this instanceof T))return new T(M);this.options=d.assign({chunkSize:16384,windowBits:0,to:""},M||{});var P=this.options;P.raw&&0<=P.windowBits&&P.windowBits<16&&(P.windowBits=-P.windowBits,P.windowBits===0&&(P.windowBits=-15)),!(0<=P.windowBits&&P.windowBits<16)||M&&M.windowBits||(P.windowBits+=32),15<P.windowBits&&P.windowBits<48&&(15&P.windowBits)==0&&(P.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new x,this.strm.avail_out=0;var N=h.inflateInit2(this.strm,P.windowBits);if(N!==v.Z_OK)throw new Error(w[N]);this.header=new C,h.inflateGetHeader(this.strm,this.header)}function S(M,P){var N=new T(P);if(N.push(M,!0),N.err)throw N.msg||w[N.err];return N.result}T.prototype.push=function(M,P){var N,B,O,I,F,L,R=this.strm,U=this.options.chunkSize,V=this.options.dictionary,W=!1;if(this.ended)return!1;B=P===~~P?P:P===!0?v.Z_FINISH:v.Z_NO_FLUSH,typeof M=="string"?R.input=A.binstring2buf(M):k.call(M)==="[object ArrayBuffer]"?R.input=new Uint8Array(M):R.input=M,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new d.Buf8(U),R.next_out=0,R.avail_out=U),(N=h.inflate(R,v.Z_NO_FLUSH))===v.Z_NEED_DICT&&V&&(L=typeof V=="string"?A.string2buf(V):k.call(V)==="[object ArrayBuffer]"?new Uint8Array(V):V,N=h.inflateSetDictionary(this.strm,L)),N===v.Z_BUF_ERROR&&W===!0&&(N=v.Z_OK,W=!1),N!==v.Z_STREAM_END&&N!==v.Z_OK)return this.onEnd(N),!(this.ended=!0);R.next_out&&(R.avail_out!==0&&N!==v.Z_STREAM_END&&(R.avail_in!==0||B!==v.Z_FINISH&&B!==v.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=A.utf8border(R.output,R.next_out),I=R.next_out-O,F=A.buf2string(R.output,O),R.next_out=I,R.avail_out=U-I,I&&d.arraySet(R.output,R.output,O,I,0),this.onData(F)):this.onData(d.shrinkBuf(R.output,R.next_out)))),R.avail_in===0&&R.avail_out===0&&(W=!0)}while((0<R.avail_in||R.avail_out===0)&&N!==v.Z_STREAM_END);return N===v.Z_STREAM_END&&(B=v.Z_FINISH),B===v.Z_FINISH?(N=h.inflateEnd(this.strm),this.onEnd(N),this.ended=!0,N===v.Z_OK):B!==v.Z_SYNC_FLUSH||(this.onEnd(v.Z_OK),!(R.avail_out=0))},T.prototype.onData=function(M){this.chunks.push(M)},T.prototype.onEnd=function(M){M===v.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=d.flattenChunks(this.chunks)),this.chunks=[],this.err=M,this.msg=this.strm.msg},y.Inflate=T,y.inflate=S,y.inflateRaw=function(M,P){return(P=P||{}).raw=!0,S(M,P)},y.ungzip=S},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,_,y){var h=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";y.assign=function(v){for(var w=Array.prototype.slice.call(arguments,1);w.length;){var x=w.shift();if(x){if(typeof x!="object")throw new TypeError(x+"must be non-object");for(var C in x)x.hasOwnProperty(C)&&(v[C]=x[C])}}return v},y.shrinkBuf=function(v,w){return v.length===w?v:v.subarray?v.subarray(0,w):(v.length=w,v)};var d={arraySet:function(v,w,x,C,k){if(w.subarray&&v.subarray)v.set(w.subarray(x,x+C),k);else for(var T=0;T<C;T++)v[k+T]=w[x+T]},flattenChunks:function(v){var w,x,C,k,T,S;for(w=C=0,x=v.length;w<x;w++)C+=v[w].length;for(S=new Uint8Array(C),w=k=0,x=v.length;w<x;w++)T=v[w],S.set(T,k),k+=T.length;return S}},A={arraySet:function(v,w,x,C,k){for(var T=0;T<C;T++)v[k+T]=w[x+T]},flattenChunks:function(v){return[].concat.apply([],v)}};y.setTyped=function(v){v?(y.Buf8=Uint8Array,y.Buf16=Uint16Array,y.Buf32=Int32Array,y.assign(y,d)):(y.Buf8=Array,y.Buf16=Array,y.Buf32=Array,y.assign(y,A))},y.setTyped(h)},{}],42:[function(p,_,y){var h=p("./common"),d=!0,A=!0;try{String.fromCharCode.apply(null,[0])}catch{d=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{A=!1}for(var v=new h.Buf8(256),w=0;w<256;w++)v[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;function x(C,k){if(k<65537&&(C.subarray&&A||!C.subarray&&d))return String.fromCharCode.apply(null,h.shrinkBuf(C,k));for(var T="",S=0;S<k;S++)T+=String.fromCharCode(C[S]);return T}v[254]=v[254]=1,y.string2buf=function(C){var k,T,S,M,P,N=C.length,B=0;for(M=0;M<N;M++)(64512&(T=C.charCodeAt(M)))==55296&&M+1<N&&(64512&(S=C.charCodeAt(M+1)))==56320&&(T=65536+(T-55296<<10)+(S-56320),M++),B+=T<128?1:T<2048?2:T<65536?3:4;for(k=new h.Buf8(B),M=P=0;P<B;M++)(64512&(T=C.charCodeAt(M)))==55296&&M+1<N&&(64512&(S=C.charCodeAt(M+1)))==56320&&(T=65536+(T-55296<<10)+(S-56320),M++),T<128?k[P++]=T:(T<2048?k[P++]=192|T>>>6:(T<65536?k[P++]=224|T>>>12:(k[P++]=240|T>>>18,k[P++]=128|T>>>12&63),k[P++]=128|T>>>6&63),k[P++]=128|63&T);return k},y.buf2binstring=function(C){return x(C,C.length)},y.binstring2buf=function(C){for(var k=new h.Buf8(C.length),T=0,S=k.length;T<S;T++)k[T]=C.charCodeAt(T);return k},y.buf2string=function(C,k){var T,S,M,P,N=k||C.length,B=new Array(2*N);for(T=S=0;T<N;)if((M=C[T++])<128)B[S++]=M;else if(4<(P=v[M]))B[S++]=65533,T+=P-1;else{for(M&=P===2?31:P===3?15:7;1<P&&T<N;)M=M<<6|63&C[T++],P--;1<P?B[S++]=65533:M<65536?B[S++]=M:(M-=65536,B[S++]=55296|M>>10&1023,B[S++]=56320|1023&M)}return x(B,S)},y.utf8border=function(C,k){var T;for((k=k||C.length)>C.length&&(k=C.length),T=k-1;0<=T&&(192&C[T])==128;)T--;return T<0||T===0?k:T+v[C[T]]>k?T:k}},{"./common":41}],43:[function(p,_,y){_.exports=function(h,d,A,v){for(var w=65535&h|0,x=h>>>16&65535|0,C=0;A!==0;){for(A-=C=2e3<A?2e3:A;x=x+(w=w+d[v++]|0)|0,--C;);w%=65521,x%=65521}return w|x<<16|0}},{}],44:[function(p,_,y){_.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(p,_,y){var h=(function(){for(var d,A=[],v=0;v<256;v++){d=v;for(var w=0;w<8;w++)d=1&d?3988292384^d>>>1:d>>>1;A[v]=d}return A})();_.exports=function(d,A,v,w){var x=h,C=w+v;d^=-1;for(var k=w;k<C;k++)d=d>>>8^x[255&(d^A[k])];return-1^d}},{}],46:[function(p,_,y){var h,d=p("../utils/common"),A=p("./trees"),v=p("./adler32"),w=p("./crc32"),x=p("./messages"),C=-2,k=258,T=262,S=113;function M(ie,he){return ie.msg=x[he],he}function P(ie){return(ie<<1)-(4<ie?9:0)}function N(ie){for(var he=ie.length;0<=--he;)ie[he]=0}function B(ie){var he=ie.state,Y=he.pending;Y>ie.avail_out&&(Y=ie.avail_out),Y!==0&&(d.arraySet(ie.output,he.pending_buf,he.pending_out,Y,ie.next_out),ie.next_out+=Y,he.pending_out+=Y,ie.total_out+=Y,ie.avail_out-=Y,he.pending-=Y,he.pending===0&&(he.pending_out=0))}function O(ie,he){A._tr_flush_block(ie,0<=ie.block_start?ie.block_start:-1,ie.strstart-ie.block_start,he),ie.block_start=ie.strstart,B(ie.strm)}function I(ie,he){ie.pending_buf[ie.pending++]=he}function F(ie,he){ie.pending_buf[ie.pending++]=he>>>8&255,ie.pending_buf[ie.pending++]=255&he}function L(ie,he){var Y,K,oe=ie.max_chain_length,pe=ie.strstart,ve=ie.prev_length,ge=ie.nice_match,ue=ie.strstart>ie.w_size-T?ie.strstart-(ie.w_size-T):0,Te=ie.window,Ee=ie.w_mask,ye=ie.prev,Se=ie.strstart+k,Fe=Te[pe+ve-1],Ve=Te[pe+ve];ie.prev_length>=ie.good_match&&(oe>>=2),ge>ie.lookahead&&(ge=ie.lookahead);do if(Te[(Y=he)+ve]===Ve&&Te[Y+ve-1]===Fe&&Te[Y]===Te[pe]&&Te[++Y]===Te[pe+1]){pe+=2,Y++;do;while(Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&Te[++pe]===Te[++Y]&&pe<Se);if(K=k-(Se-pe),pe=Se-k,ve<K){if(ie.match_start=he,ge<=(ve=K))break;Fe=Te[pe+ve-1],Ve=Te[pe+ve]}}while((he=ye[he&Ee])>ue&&--oe!=0);return ve<=ie.lookahead?ve:ie.lookahead}function R(ie){var he,Y,K,oe,pe,ve,ge,ue,Te,Ee,ye=ie.w_size;do{if(oe=ie.window_size-ie.lookahead-ie.strstart,ie.strstart>=ye+(ye-T)){for(d.arraySet(ie.window,ie.window,ye,ye,0),ie.match_start-=ye,ie.strstart-=ye,ie.block_start-=ye,he=Y=ie.hash_size;K=ie.head[--he],ie.head[he]=ye<=K?K-ye:0,--Y;);for(he=Y=ye;K=ie.prev[--he],ie.prev[he]=ye<=K?K-ye:0,--Y;);oe+=ye}if(ie.strm.avail_in===0)break;if(ve=ie.strm,ge=ie.window,ue=ie.strstart+ie.lookahead,Ee=void 0,(Te=oe)<(Ee=ve.avail_in)&&(Ee=Te),Y=Ee===0?0:(ve.avail_in-=Ee,d.arraySet(ge,ve.input,ve.next_in,Ee,ue),ve.state.wrap===1?ve.adler=v(ve.adler,ge,Ee,ue):ve.state.wrap===2&&(ve.adler=w(ve.adler,ge,Ee,ue)),ve.next_in+=Ee,ve.total_in+=Ee,Ee),ie.lookahead+=Y,ie.lookahead+ie.insert>=3)for(pe=ie.strstart-ie.insert,ie.ins_h=ie.window[pe],ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[pe+1])&ie.hash_mask;ie.insert&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[pe+3-1])&ie.hash_mask,ie.prev[pe&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=pe,pe++,ie.insert--,!(ie.lookahead+ie.insert<3)););}while(ie.lookahead<T&&ie.strm.avail_in!==0)}function U(ie,he){for(var Y,K;;){if(ie.lookahead<T){if(R(ie),ie.lookahead<T&&he===0)return 1;if(ie.lookahead===0)break}if(Y=0,ie.lookahead>=3&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,Y=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart),Y!==0&&ie.strstart-Y<=ie.w_size-T&&(ie.match_length=L(ie,Y)),ie.match_length>=3)if(K=A._tr_tally(ie,ie.strstart-ie.match_start,ie.match_length-3),ie.lookahead-=ie.match_length,ie.match_length<=ie.max_lazy_match&&ie.lookahead>=3){for(ie.match_length--;ie.strstart++,ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,Y=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart,--ie.match_length!=0;);ie.strstart++}else ie.strstart+=ie.match_length,ie.match_length=0,ie.ins_h=ie.window[ie.strstart],ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+1])&ie.hash_mask;else K=A._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++;if(K&&(O(ie,!1),ie.strm.avail_out===0))return 1}return ie.insert=ie.strstart<2?ie.strstart:2,he===4?(O(ie,!0),ie.strm.avail_out===0?3:4):ie.last_lit&&(O(ie,!1),ie.strm.avail_out===0)?1:2}function V(ie,he){for(var Y,K,oe;;){if(ie.lookahead<T){if(R(ie),ie.lookahead<T&&he===0)return 1;if(ie.lookahead===0)break}if(Y=0,ie.lookahead>=3&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,Y=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart),ie.prev_length=ie.match_length,ie.prev_match=ie.match_start,ie.match_length=2,Y!==0&&ie.prev_length<ie.max_lazy_match&&ie.strstart-Y<=ie.w_size-T&&(ie.match_length=L(ie,Y),ie.match_length<=5&&(ie.strategy===1||ie.match_length===3&&4096<ie.strstart-ie.match_start)&&(ie.match_length=2)),ie.prev_length>=3&&ie.match_length<=ie.prev_length){for(oe=ie.strstart+ie.lookahead-3,K=A._tr_tally(ie,ie.strstart-1-ie.prev_match,ie.prev_length-3),ie.lookahead-=ie.prev_length-1,ie.prev_length-=2;++ie.strstart<=oe&&(ie.ins_h=(ie.ins_h<<ie.hash_shift^ie.window[ie.strstart+3-1])&ie.hash_mask,Y=ie.prev[ie.strstart&ie.w_mask]=ie.head[ie.ins_h],ie.head[ie.ins_h]=ie.strstart),--ie.prev_length!=0;);if(ie.match_available=0,ie.match_length=2,ie.strstart++,K&&(O(ie,!1),ie.strm.avail_out===0))return 1}else if(ie.match_available){if((K=A._tr_tally(ie,0,ie.window[ie.strstart-1]))&&O(ie,!1),ie.strstart++,ie.lookahead--,ie.strm.avail_out===0)return 1}else ie.match_available=1,ie.strstart++,ie.lookahead--}return ie.match_available&&(K=A._tr_tally(ie,0,ie.window[ie.strstart-1]),ie.match_available=0),ie.insert=ie.strstart<2?ie.strstart:2,he===4?(O(ie,!0),ie.strm.avail_out===0?3:4):ie.last_lit&&(O(ie,!1),ie.strm.avail_out===0)?1:2}function W(ie,he,Y,K,oe){this.good_length=ie,this.max_lazy=he,this.nice_length=Y,this.max_chain=K,this.func=oe}function Q(){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=8,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 d.Buf16(1146),this.dyn_dtree=new d.Buf16(122),this.bl_tree=new d.Buf16(78),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(16),this.heap=new d.Buf16(573),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(573),N(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 le(ie){var he;return ie&&ie.state?(ie.total_in=ie.total_out=0,ie.data_type=2,(he=ie.state).pending=0,he.pending_out=0,he.wrap<0&&(he.wrap=-he.wrap),he.status=he.wrap?42:S,ie.adler=he.wrap===2?0:1,he.last_flush=0,A._tr_init(he),0):M(ie,C)}function G(ie){var he=le(ie);return he===0&&(function(Y){Y.window_size=2*Y.w_size,N(Y.head),Y.max_lazy_match=h[Y.level].max_lazy,Y.good_match=h[Y.level].good_length,Y.nice_match=h[Y.level].nice_length,Y.max_chain_length=h[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=2,Y.match_available=0,Y.ins_h=0})(ie.state),he}function fe(ie,he,Y,K,oe,pe){if(!ie)return C;var ve=1;if(he===-1&&(he=6),K<0?(ve=0,K=-K):15<K&&(ve=2,K-=16),oe<1||9<oe||Y!==8||K<8||15<K||he<0||9<he||pe<0||4<pe)return M(ie,C);K===8&&(K=9);var ge=new Q;return(ie.state=ge).strm=ie,ge.wrap=ve,ge.gzhead=null,ge.w_bits=K,ge.w_size=1<<ge.w_bits,ge.w_mask=ge.w_size-1,ge.hash_bits=oe+7,ge.hash_size=1<<ge.hash_bits,ge.hash_mask=ge.hash_size-1,ge.hash_shift=~~((ge.hash_bits+3-1)/3),ge.window=new d.Buf8(2*ge.w_size),ge.head=new d.Buf16(ge.hash_size),ge.prev=new d.Buf16(ge.w_size),ge.lit_bufsize=1<<oe+6,ge.pending_buf_size=4*ge.lit_bufsize,ge.pending_buf=new d.Buf8(ge.pending_buf_size),ge.d_buf=1*ge.lit_bufsize,ge.l_buf=3*ge.lit_bufsize,ge.level=he,ge.strategy=pe,ge.method=Y,G(ie)}h=[new W(0,0,0,0,(function(ie,he){var Y=65535;for(Y>ie.pending_buf_size-5&&(Y=ie.pending_buf_size-5);;){if(ie.lookahead<=1){if(R(ie),ie.lookahead===0&&he===0)return 1;if(ie.lookahead===0)break}ie.strstart+=ie.lookahead,ie.lookahead=0;var K=ie.block_start+Y;if((ie.strstart===0||ie.strstart>=K)&&(ie.lookahead=ie.strstart-K,ie.strstart=K,O(ie,!1),ie.strm.avail_out===0)||ie.strstart-ie.block_start>=ie.w_size-T&&(O(ie,!1),ie.strm.avail_out===0))return 1}return ie.insert=0,he===4?(O(ie,!0),ie.strm.avail_out===0?3:4):(ie.strstart>ie.block_start&&(O(ie,!1),ie.strm.avail_out),1)})),new W(4,4,8,4,U),new W(4,5,16,8,U),new W(4,6,32,32,U),new W(4,4,16,16,V),new W(8,16,32,32,V),new W(8,16,128,128,V),new W(8,32,128,256,V),new W(32,128,258,1024,V),new W(32,258,258,4096,V)],y.deflateInit=function(ie,he){return fe(ie,he,8,15,8,0)},y.deflateInit2=fe,y.deflateReset=G,y.deflateResetKeep=le,y.deflateSetHeader=function(ie,he){return ie&&ie.state?ie.state.wrap!==2?C:(ie.state.gzhead=he,0):C},y.deflate=function(ie,he){var Y,K,oe,pe;if(!ie||!ie.state||5<he||he<0)return ie?M(ie,C):C;if(K=ie.state,!ie.output||!ie.input&&ie.avail_in!==0||K.status===666&&he!==4)return M(ie,ie.avail_out===0?-5:C);if(K.strm=ie,Y=K.last_flush,K.last_flush=he,K.status===42)if(K.wrap===2)ie.adler=0,I(K,31),I(K,139),I(K,8),K.gzhead?(I(K,(K.gzhead.text?1:0)+(K.gzhead.hcrc?2:0)+(K.gzhead.extra?4:0)+(K.gzhead.name?8:0)+(K.gzhead.comment?16:0)),I(K,255&K.gzhead.time),I(K,K.gzhead.time>>8&255),I(K,K.gzhead.time>>16&255),I(K,K.gzhead.time>>24&255),I(K,K.level===9?2:2<=K.strategy||K.level<2?4:0),I(K,255&K.gzhead.os),K.gzhead.extra&&K.gzhead.extra.length&&(I(K,255&K.gzhead.extra.length),I(K,K.gzhead.extra.length>>8&255)),K.gzhead.hcrc&&(ie.adler=w(ie.adler,K.pending_buf,K.pending,0)),K.gzindex=0,K.status=69):(I(K,0),I(K,0),I(K,0),I(K,0),I(K,0),I(K,K.level===9?2:2<=K.strategy||K.level<2?4:0),I(K,3),K.status=S);else{var ve=8+(K.w_bits-8<<4)<<8;ve|=(2<=K.strategy||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6,K.strstart!==0&&(ve|=32),ve+=31-ve%31,K.status=S,F(K,ve),K.strstart!==0&&(F(K,ie.adler>>>16),F(K,65535&ie.adler)),ie.adler=1}if(K.status===69)if(K.gzhead.extra){for(oe=K.pending;K.gzindex<(65535&K.gzhead.extra.length)&&(K.pending!==K.pending_buf_size||(K.gzhead.hcrc&&K.pending>oe&&(ie.adler=w(ie.adler,K.pending_buf,K.pending-oe,oe)),B(ie),oe=K.pending,K.pending!==K.pending_buf_size));)I(K,255&K.gzhead.extra[K.gzindex]),K.gzindex++;K.gzhead.hcrc&&K.pending>oe&&(ie.adler=w(ie.adler,K.pending_buf,K.pending-oe,oe)),K.gzindex===K.gzhead.extra.length&&(K.gzindex=0,K.status=73)}else K.status=73;if(K.status===73)if(K.gzhead.name){oe=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>oe&&(ie.adler=w(ie.adler,K.pending_buf,K.pending-oe,oe)),B(ie),oe=K.pending,K.pending===K.pending_buf_size)){pe=1;break}pe=K.gzindex<K.gzhead.name.length?255&K.gzhead.name.charCodeAt(K.gzindex++):0,I(K,pe)}while(pe!==0);K.gzhead.hcrc&&K.pending>oe&&(ie.adler=w(ie.adler,K.pending_buf,K.pending-oe,oe)),pe===0&&(K.gzindex=0,K.status=91)}else K.status=91;if(K.status===91)if(K.gzhead.comment){oe=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>oe&&(ie.adler=w(ie.adler,K.pending_buf,K.pending-oe,oe)),B(ie),oe=K.pending,K.pending===K.pending_buf_size)){pe=1;break}pe=K.gzindex<K.gzhead.comment.length?255&K.gzhead.comment.charCodeAt(K.gzindex++):0,I(K,pe)}while(pe!==0);K.gzhead.hcrc&&K.pending>oe&&(ie.adler=w(ie.adler,K.pending_buf,K.pending-oe,oe)),pe===0&&(K.status=103)}else K.status=103;if(K.status===103&&(K.gzhead.hcrc?(K.pending+2>K.pending_buf_size&&B(ie),K.pending+2<=K.pending_buf_size&&(I(K,255&ie.adler),I(K,ie.adler>>8&255),ie.adler=0,K.status=S)):K.status=S),K.pending!==0){if(B(ie),ie.avail_out===0)return K.last_flush=-1,0}else if(ie.avail_in===0&&P(he)<=P(Y)&&he!==4)return M(ie,-5);if(K.status===666&&ie.avail_in!==0)return M(ie,-5);if(ie.avail_in!==0||K.lookahead!==0||he!==0&&K.status!==666){var ge=K.strategy===2?(function(ue,Te){for(var Ee;;){if(ue.lookahead===0&&(R(ue),ue.lookahead===0)){if(Te===0)return 1;break}if(ue.match_length=0,Ee=A._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,Ee&&(O(ue,!1),ue.strm.avail_out===0))return 1}return ue.insert=0,Te===4?(O(ue,!0),ue.strm.avail_out===0?3:4):ue.last_lit&&(O(ue,!1),ue.strm.avail_out===0)?1:2})(K,he):K.strategy===3?(function(ue,Te){for(var Ee,ye,Se,Fe,Ve=ue.window;;){if(ue.lookahead<=k){if(R(ue),ue.lookahead<=k&&Te===0)return 1;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=3&&0<ue.strstart&&(ye=Ve[Se=ue.strstart-1])===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]){Fe=ue.strstart+k;do;while(ye===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]&&ye===Ve[++Se]&&Se<Fe);ue.match_length=k-(Fe-Se),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=3?(Ee=A._tr_tally(ue,1,ue.match_length-3),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(Ee=A._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),Ee&&(O(ue,!1),ue.strm.avail_out===0))return 1}return ue.insert=0,Te===4?(O(ue,!0),ue.strm.avail_out===0?3:4):ue.last_lit&&(O(ue,!1),ue.strm.avail_out===0)?1:2})(K,he):h[K.level].func(K,he);if(ge!==3&&ge!==4||(K.status=666),ge===1||ge===3)return ie.avail_out===0&&(K.last_flush=-1),0;if(ge===2&&(he===1?A._tr_align(K):he!==5&&(A._tr_stored_block(K,0,0,!1),he===3&&(N(K.head),K.lookahead===0&&(K.strstart=0,K.block_start=0,K.insert=0))),B(ie),ie.avail_out===0))return K.last_flush=-1,0}return he!==4?0:K.wrap<=0?1:(K.wrap===2?(I(K,255&ie.adler),I(K,ie.adler>>8&255),I(K,ie.adler>>16&255),I(K,ie.adler>>24&255),I(K,255&ie.total_in),I(K,ie.total_in>>8&255),I(K,ie.total_in>>16&255),I(K,ie.total_in>>24&255)):(F(K,ie.adler>>>16),F(K,65535&ie.adler)),B(ie),0<K.wrap&&(K.wrap=-K.wrap),K.pending!==0?0:1)},y.deflateEnd=function(ie){var he;return ie&&ie.state?(he=ie.state.status)!==42&&he!==69&&he!==73&&he!==91&&he!==103&&he!==S&&he!==666?M(ie,C):(ie.state=null,he===S?M(ie,-3):0):C},y.deflateSetDictionary=function(ie,he){var Y,K,oe,pe,ve,ge,ue,Te,Ee=he.length;if(!ie||!ie.state||(pe=(Y=ie.state).wrap)===2||pe===1&&Y.status!==42||Y.lookahead)return C;for(pe===1&&(ie.adler=v(ie.adler,he,Ee,0)),Y.wrap=0,Ee>=Y.w_size&&(pe===0&&(N(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),Te=new d.Buf8(Y.w_size),d.arraySet(Te,he,Ee-Y.w_size,Y.w_size,0),he=Te,Ee=Y.w_size),ve=ie.avail_in,ge=ie.next_in,ue=ie.input,ie.avail_in=Ee,ie.next_in=0,ie.input=he,R(Y);Y.lookahead>=3;){for(K=Y.strstart,oe=Y.lookahead-2;Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[K+3-1])&Y.hash_mask,Y.prev[K&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=K,K++,--oe;);Y.strstart=K,Y.lookahead=2,R(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=2,Y.match_available=0,ie.next_in=ge,ie.input=ue,ie.avail_in=ve,Y.wrap=pe,0},y.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,_,y){_.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(p,_,y){_.exports=function(h,d){var A,v,w,x,C,k,T,S,M,P,N,B,O,I,F,L,R,U,V,W,Q,le,G,fe,ie;A=h.state,v=h.next_in,fe=h.input,w=v+(h.avail_in-5),x=h.next_out,ie=h.output,C=x-(d-h.avail_out),k=x+(h.avail_out-257),T=A.dmax,S=A.wsize,M=A.whave,P=A.wnext,N=A.window,B=A.hold,O=A.bits,I=A.lencode,F=A.distcode,L=(1<<A.lenbits)-1,R=(1<<A.distbits)-1;e:do{O<15&&(B+=fe[v++]<<O,O+=8,B+=fe[v++]<<O,O+=8),U=I[B&L];t:for(;;){if(B>>>=V=U>>>24,O-=V,(V=U>>>16&255)==0)ie[x++]=65535&U;else{if(!(16&V)){if((64&V)==0){U=I[(65535&U)+(B&(1<<V)-1)];continue t}if(32&V){A.mode=12;break e}h.msg="invalid literal/length code",A.mode=30;break e}W=65535&U,(V&=15)&&(O<V&&(B+=fe[v++]<<O,O+=8),W+=B&(1<<V)-1,B>>>=V,O-=V),O<15&&(B+=fe[v++]<<O,O+=8,B+=fe[v++]<<O,O+=8),U=F[B&R];r:for(;;){if(B>>>=V=U>>>24,O-=V,!(16&(V=U>>>16&255))){if((64&V)==0){U=F[(65535&U)+(B&(1<<V)-1)];continue r}h.msg="invalid distance code",A.mode=30;break e}if(Q=65535&U,O<(V&=15)&&(B+=fe[v++]<<O,(O+=8)<V&&(B+=fe[v++]<<O,O+=8)),T<(Q+=B&(1<<V)-1)){h.msg="invalid distance too far back",A.mode=30;break e}if(B>>>=V,O-=V,(V=x-C)<Q){if(M<(V=Q-V)&&A.sane){h.msg="invalid distance too far back",A.mode=30;break e}if(G=N,(le=0)===P){if(le+=S-V,V<W){for(W-=V;ie[x++]=N[le++],--V;);le=x-Q,G=ie}}else if(P<V){if(le+=S+P-V,(V-=P)<W){for(W-=V;ie[x++]=N[le++],--V;);if(le=0,P<W){for(W-=V=P;ie[x++]=N[le++],--V;);le=x-Q,G=ie}}}else if(le+=P-V,V<W){for(W-=V;ie[x++]=N[le++],--V;);le=x-Q,G=ie}for(;2<W;)ie[x++]=G[le++],ie[x++]=G[le++],ie[x++]=G[le++],W-=3;W&&(ie[x++]=G[le++],1<W&&(ie[x++]=G[le++]))}else{for(le=x-Q;ie[x++]=ie[le++],ie[x++]=ie[le++],ie[x++]=ie[le++],2<(W-=3););W&&(ie[x++]=ie[le++],1<W&&(ie[x++]=ie[le++]))}break}}break}}while(v<w&&x<k);v-=W=O>>3,B&=(1<<(O-=W<<3))-1,h.next_in=v,h.next_out=x,h.avail_in=v<w?w-v+5:5-(v-w),h.avail_out=x<k?k-x+257:257-(x-k),A.hold=B,A.bits=O}},{}],49:[function(p,_,y){var h=p("../utils/common"),d=p("./adler32"),A=p("./crc32"),v=p("./inffast"),w=p("./inftrees"),x=-2;function C(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function k(){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 h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function T(L){var R;return L&&L.state?(R=L.state,L.total_in=L.total_out=R.total=0,L.msg="",R.wrap&&(L.adler=1&R.wrap),R.mode=1,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new h.Buf32(852),R.distcode=R.distdyn=new h.Buf32(592),R.sane=1,R.back=-1,0):x}function S(L){var R;return L&&L.state?((R=L.state).wsize=0,R.whave=0,R.wnext=0,T(L)):x}function M(L,R){var U,V;return L&&L.state?(V=L.state,R<0?(U=0,R=-R):(U=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?x:(V.window!==null&&V.wbits!==R&&(V.window=null),V.wrap=U,V.wbits=R,S(L))):x}function P(L,R){var U,V;return L?(V=new k,(L.state=V).window=null,(U=M(L,R))!==0&&(L.state=null),U):x}var N,B,O=!0;function I(L){if(O){var R;for(N=new h.Buf32(512),B=new h.Buf32(32),R=0;R<144;)L.lens[R++]=8;for(;R<256;)L.lens[R++]=9;for(;R<280;)L.lens[R++]=7;for(;R<288;)L.lens[R++]=8;for(w(1,L.lens,0,288,N,0,L.work,{bits:9}),R=0;R<32;)L.lens[R++]=5;w(2,L.lens,0,32,B,0,L.work,{bits:5}),O=!1}L.lencode=N,L.lenbits=9,L.distcode=B,L.distbits=5}function F(L,R,U,V){var W,Q=L.state;return Q.window===null&&(Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new h.Buf8(Q.wsize)),V>=Q.wsize?(h.arraySet(Q.window,R,U-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize):(V<(W=Q.wsize-Q.wnext)&&(W=V),h.arraySet(Q.window,R,U-V,W,Q.wnext),(V-=W)?(h.arraySet(Q.window,R,U-V,V,0),Q.wnext=V,Q.whave=Q.wsize):(Q.wnext+=W,Q.wnext===Q.wsize&&(Q.wnext=0),Q.whave<Q.wsize&&(Q.whave+=W))),0}y.inflateReset=S,y.inflateReset2=M,y.inflateResetKeep=T,y.inflateInit=function(L){return P(L,15)},y.inflateInit2=P,y.inflate=function(L,R){var U,V,W,Q,le,G,fe,ie,he,Y,K,oe,pe,ve,ge,ue,Te,Ee,ye,Se,Fe,Ve,ke,Pe,Re=0,Ye=new h.Buf8(4),Ke=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return x;(U=L.state).mode===12&&(U.mode=13),le=L.next_out,W=L.output,fe=L.avail_out,Q=L.next_in,V=L.input,G=L.avail_in,ie=U.hold,he=U.bits,Y=G,K=fe,Ve=0;e:for(;;)switch(U.mode){case 1:if(U.wrap===0){U.mode=13;break}for(;he<16;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(2&U.wrap&&ie===35615){Ye[U.check=0]=255&ie,Ye[1]=ie>>>8&255,U.check=A(U.check,Ye,2,0),he=ie=0,U.mode=2;break}if(U.flags=0,U.head&&(U.head.done=!1),!(1&U.wrap)||(((255&ie)<<8)+(ie>>8))%31){L.msg="incorrect header check",U.mode=30;break}if((15&ie)!=8){L.msg="unknown compression method",U.mode=30;break}if(he-=4,Fe=8+(15&(ie>>>=4)),U.wbits===0)U.wbits=Fe;else if(Fe>U.wbits){L.msg="invalid window size",U.mode=30;break}U.dmax=1<<Fe,L.adler=U.check=1,U.mode=512&ie?10:12,he=ie=0;break;case 2:for(;he<16;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(U.flags=ie,(255&U.flags)!=8){L.msg="unknown compression method",U.mode=30;break}if(57344&U.flags){L.msg="unknown header flags set",U.mode=30;break}U.head&&(U.head.text=ie>>8&1),512&U.flags&&(Ye[0]=255&ie,Ye[1]=ie>>>8&255,U.check=A(U.check,Ye,2,0)),he=ie=0,U.mode=3;case 3:for(;he<32;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}U.head&&(U.head.time=ie),512&U.flags&&(Ye[0]=255&ie,Ye[1]=ie>>>8&255,Ye[2]=ie>>>16&255,Ye[3]=ie>>>24&255,U.check=A(U.check,Ye,4,0)),he=ie=0,U.mode=4;case 4:for(;he<16;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}U.head&&(U.head.xflags=255&ie,U.head.os=ie>>8),512&U.flags&&(Ye[0]=255&ie,Ye[1]=ie>>>8&255,U.check=A(U.check,Ye,2,0)),he=ie=0,U.mode=5;case 5:if(1024&U.flags){for(;he<16;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}U.length=ie,U.head&&(U.head.extra_len=ie),512&U.flags&&(Ye[0]=255&ie,Ye[1]=ie>>>8&255,U.check=A(U.check,Ye,2,0)),he=ie=0}else U.head&&(U.head.extra=null);U.mode=6;case 6:if(1024&U.flags&&(G<(oe=U.length)&&(oe=G),oe&&(U.head&&(Fe=U.head.extra_len-U.length,U.head.extra||(U.head.extra=new Array(U.head.extra_len)),h.arraySet(U.head.extra,V,Q,oe,Fe)),512&U.flags&&(U.check=A(U.check,V,oe,Q)),G-=oe,Q+=oe,U.length-=oe),U.length))break e;U.length=0,U.mode=7;case 7:if(2048&U.flags){if(G===0)break e;for(oe=0;Fe=V[Q+oe++],U.head&&Fe&&U.length<65536&&(U.head.name+=String.fromCharCode(Fe)),Fe&&oe<G;);if(512&U.flags&&(U.check=A(U.check,V,oe,Q)),G-=oe,Q+=oe,Fe)break e}else U.head&&(U.head.name=null);U.length=0,U.mode=8;case 8:if(4096&U.flags){if(G===0)break e;for(oe=0;Fe=V[Q+oe++],U.head&&Fe&&U.length<65536&&(U.head.comment+=String.fromCharCode(Fe)),Fe&&oe<G;);if(512&U.flags&&(U.check=A(U.check,V,oe,Q)),G-=oe,Q+=oe,Fe)break e}else U.head&&(U.head.comment=null);U.mode=9;case 9:if(512&U.flags){for(;he<16;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(ie!==(65535&U.check)){L.msg="header crc mismatch",U.mode=30;break}he=ie=0}U.head&&(U.head.hcrc=U.flags>>9&1,U.head.done=!0),L.adler=U.check=0,U.mode=12;break;case 10:for(;he<32;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}L.adler=U.check=C(ie),he=ie=0,U.mode=11;case 11:if(U.havedict===0)return L.next_out=le,L.avail_out=fe,L.next_in=Q,L.avail_in=G,U.hold=ie,U.bits=he,2;L.adler=U.check=1,U.mode=12;case 12:if(R===5||R===6)break e;case 13:if(U.last){ie>>>=7&he,he-=7&he,U.mode=27;break}for(;he<3;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}switch(U.last=1&ie,he-=1,3&(ie>>>=1)){case 0:U.mode=14;break;case 1:if(I(U),U.mode=20,R!==6)break;ie>>>=2,he-=2;break e;case 2:U.mode=17;break;case 3:L.msg="invalid block type",U.mode=30}ie>>>=2,he-=2;break;case 14:for(ie>>>=7&he,he-=7&he;he<32;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if((65535&ie)!=(ie>>>16^65535)){L.msg="invalid stored block lengths",U.mode=30;break}if(U.length=65535&ie,he=ie=0,U.mode=15,R===6)break e;case 15:U.mode=16;case 16:if(oe=U.length){if(G<oe&&(oe=G),fe<oe&&(oe=fe),oe===0)break e;h.arraySet(W,V,Q,oe,le),G-=oe,Q+=oe,fe-=oe,le+=oe,U.length-=oe;break}U.mode=12;break;case 17:for(;he<14;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(U.nlen=257+(31&ie),ie>>>=5,he-=5,U.ndist=1+(31&ie),ie>>>=5,he-=5,U.ncode=4+(15&ie),ie>>>=4,he-=4,286<U.nlen||30<U.ndist){L.msg="too many length or distance symbols",U.mode=30;break}U.have=0,U.mode=18;case 18:for(;U.have<U.ncode;){for(;he<3;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}U.lens[Ke[U.have++]]=7&ie,ie>>>=3,he-=3}for(;U.have<19;)U.lens[Ke[U.have++]]=0;if(U.lencode=U.lendyn,U.lenbits=7,ke={bits:U.lenbits},Ve=w(0,U.lens,0,19,U.lencode,0,U.work,ke),U.lenbits=ke.bits,Ve){L.msg="invalid code lengths set",U.mode=30;break}U.have=0,U.mode=19;case 19:for(;U.have<U.nlen+U.ndist;){for(;ue=(Re=U.lencode[ie&(1<<U.lenbits)-1])>>>16&255,Te=65535&Re,!((ge=Re>>>24)<=he);){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(Te<16)ie>>>=ge,he-=ge,U.lens[U.have++]=Te;else{if(Te===16){for(Pe=ge+2;he<Pe;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(ie>>>=ge,he-=ge,U.have===0){L.msg="invalid bit length repeat",U.mode=30;break}Fe=U.lens[U.have-1],oe=3+(3&ie),ie>>>=2,he-=2}else if(Te===17){for(Pe=ge+3;he<Pe;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}he-=ge,Fe=0,oe=3+(7&(ie>>>=ge)),ie>>>=3,he-=3}else{for(Pe=ge+7;he<Pe;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}he-=ge,Fe=0,oe=11+(127&(ie>>>=ge)),ie>>>=7,he-=7}if(U.have+oe>U.nlen+U.ndist){L.msg="invalid bit length repeat",U.mode=30;break}for(;oe--;)U.lens[U.have++]=Fe}}if(U.mode===30)break;if(U.lens[256]===0){L.msg="invalid code -- missing end-of-block",U.mode=30;break}if(U.lenbits=9,ke={bits:U.lenbits},Ve=w(1,U.lens,0,U.nlen,U.lencode,0,U.work,ke),U.lenbits=ke.bits,Ve){L.msg="invalid literal/lengths set",U.mode=30;break}if(U.distbits=6,U.distcode=U.distdyn,ke={bits:U.distbits},Ve=w(2,U.lens,U.nlen,U.ndist,U.distcode,0,U.work,ke),U.distbits=ke.bits,Ve){L.msg="invalid distances set",U.mode=30;break}if(U.mode=20,R===6)break e;case 20:U.mode=21;case 21:if(6<=G&&258<=fe){L.next_out=le,L.avail_out=fe,L.next_in=Q,L.avail_in=G,U.hold=ie,U.bits=he,v(L,K),le=L.next_out,W=L.output,fe=L.avail_out,Q=L.next_in,V=L.input,G=L.avail_in,ie=U.hold,he=U.bits,U.mode===12&&(U.back=-1);break}for(U.back=0;ue=(Re=U.lencode[ie&(1<<U.lenbits)-1])>>>16&255,Te=65535&Re,!((ge=Re>>>24)<=he);){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(ue&&(240&ue)==0){for(Ee=ge,ye=ue,Se=Te;ue=(Re=U.lencode[Se+((ie&(1<<Ee+ye)-1)>>Ee)])>>>16&255,Te=65535&Re,!(Ee+(ge=Re>>>24)<=he);){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}ie>>>=Ee,he-=Ee,U.back+=Ee}if(ie>>>=ge,he-=ge,U.back+=ge,U.length=Te,ue===0){U.mode=26;break}if(32&ue){U.back=-1,U.mode=12;break}if(64&ue){L.msg="invalid literal/length code",U.mode=30;break}U.extra=15&ue,U.mode=22;case 22:if(U.extra){for(Pe=U.extra;he<Pe;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}U.length+=ie&(1<<U.extra)-1,ie>>>=U.extra,he-=U.extra,U.back+=U.extra}U.was=U.length,U.mode=23;case 23:for(;ue=(Re=U.distcode[ie&(1<<U.distbits)-1])>>>16&255,Te=65535&Re,!((ge=Re>>>24)<=he);){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if((240&ue)==0){for(Ee=ge,ye=ue,Se=Te;ue=(Re=U.distcode[Se+((ie&(1<<Ee+ye)-1)>>Ee)])>>>16&255,Te=65535&Re,!(Ee+(ge=Re>>>24)<=he);){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}ie>>>=Ee,he-=Ee,U.back+=Ee}if(ie>>>=ge,he-=ge,U.back+=ge,64&ue){L.msg="invalid distance code",U.mode=30;break}U.offset=Te,U.extra=15&ue,U.mode=24;case 24:if(U.extra){for(Pe=U.extra;he<Pe;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}U.offset+=ie&(1<<U.extra)-1,ie>>>=U.extra,he-=U.extra,U.back+=U.extra}if(U.offset>U.dmax){L.msg="invalid distance too far back",U.mode=30;break}U.mode=25;case 25:if(fe===0)break e;if(oe=K-fe,U.offset>oe){if((oe=U.offset-oe)>U.whave&&U.sane){L.msg="invalid distance too far back",U.mode=30;break}pe=oe>U.wnext?(oe-=U.wnext,U.wsize-oe):U.wnext-oe,oe>U.length&&(oe=U.length),ve=U.window}else ve=W,pe=le-U.offset,oe=U.length;for(fe<oe&&(oe=fe),fe-=oe,U.length-=oe;W[le++]=ve[pe++],--oe;);U.length===0&&(U.mode=21);break;case 26:if(fe===0)break e;W[le++]=U.length,fe--,U.mode=21;break;case 27:if(U.wrap){for(;he<32;){if(G===0)break e;G--,ie|=V[Q++]<<he,he+=8}if(K-=fe,L.total_out+=K,U.total+=K,K&&(L.adler=U.check=U.flags?A(U.check,W,K,le-K):d(U.check,W,K,le-K)),K=fe,(U.flags?ie:C(ie))!==U.check){L.msg="incorrect data check",U.mode=30;break}he=ie=0}U.mode=28;case 28:if(U.wrap&&U.flags){for(;he<32;){if(G===0)break e;G--,ie+=V[Q++]<<he,he+=8}if(ie!==(4294967295&U.total)){L.msg="incorrect length check",U.mode=30;break}he=ie=0}U.mode=29;case 29:Ve=1;break e;case 30:Ve=-3;break e;case 31:return-4;case 32:default:return x}return L.next_out=le,L.avail_out=fe,L.next_in=Q,L.avail_in=G,U.hold=ie,U.bits=he,(U.wsize||K!==L.avail_out&&U.mode<30&&(U.mode<27||R!==4))&&F(L,L.output,L.next_out,K-L.avail_out)?(U.mode=31,-4):(Y-=L.avail_in,K-=L.avail_out,L.total_in+=Y,L.total_out+=K,U.total+=K,U.wrap&&K&&(L.adler=U.check=U.flags?A(U.check,W,K,L.next_out-K):d(U.check,W,K,L.next_out-K)),L.data_type=U.bits+(U.last?64:0)+(U.mode===12?128:0)+(U.mode===20||U.mode===15?256:0),(Y==0&&K===0||R===4)&&Ve===0&&(Ve=-5),Ve)},y.inflateEnd=function(L){if(!L||!L.state)return x;var R=L.state;return R.window&&(R.window=null),L.state=null,0},y.inflateGetHeader=function(L,R){var U;return L&&L.state?(2&(U=L.state).wrap)==0?x:((U.head=R).done=!1,0):x},y.inflateSetDictionary=function(L,R){var U,V=R.length;return L&&L.state?(U=L.state).wrap!==0&&U.mode!==11?x:U.mode===11&&d(1,R,V,0)!==U.check?-3:F(L,R,V,V)?(U.mode=31,-4):(U.havedict=1,0):x},y.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,_,y){var h=p("../utils/common"),d=[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],A=[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],v=[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],w=[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];_.exports=function(x,C,k,T,S,M,P,N){var B,O,I,F,L,R,U,V,W,Q=N.bits,le=0,G=0,fe=0,ie=0,he=0,Y=0,K=0,oe=0,pe=0,ve=0,ge=null,ue=0,Te=new h.Buf16(16),Ee=new h.Buf16(16),ye=null,Se=0;for(le=0;le<=15;le++)Te[le]=0;for(G=0;G<T;G++)Te[C[k+G]]++;for(he=Q,ie=15;1<=ie&&Te[ie]===0;ie--);if(ie<he&&(he=ie),ie===0)return S[M++]=20971520,S[M++]=20971520,N.bits=1,0;for(fe=1;fe<ie&&Te[fe]===0;fe++);for(he<fe&&(he=fe),le=oe=1;le<=15;le++)if(oe<<=1,(oe-=Te[le])<0)return-1;if(0<oe&&(x===0||ie!==1))return-1;for(Ee[1]=0,le=1;le<15;le++)Ee[le+1]=Ee[le]+Te[le];for(G=0;G<T;G++)C[k+G]!==0&&(P[Ee[C[k+G]]++]=G);if(R=x===0?(ge=ye=P,19):x===1?(ge=d,ue-=257,ye=A,Se-=257,256):(ge=v,ye=w,-1),le=fe,L=M,K=G=ve=0,I=-1,F=(pe=1<<(Y=he))-1,x===1&&852<pe||x===2&&592<pe)return 1;for(;;){for(U=le-K,W=P[G]<R?(V=0,P[G]):P[G]>R?(V=ye[Se+P[G]],ge[ue+P[G]]):(V=96,0),B=1<<le-K,fe=O=1<<Y;S[L+(ve>>K)+(O-=B)]=U<<24|V<<16|W|0,O!==0;);for(B=1<<le-1;ve&B;)B>>=1;if(B!==0?(ve&=B-1,ve+=B):ve=0,G++,--Te[le]==0){if(le===ie)break;le=C[k+P[G]]}if(he<le&&(ve&F)!==I){for(K===0&&(K=he),L+=fe,oe=1<<(Y=le-K);Y+K<ie&&!((oe-=Te[Y+K])<=0);)Y++,oe<<=1;if(pe+=1<<Y,x===1&&852<pe||x===2&&592<pe)return 1;S[I=ve&F]=he<<24|Y<<16|L-M|0}}return ve!==0&&(S[L+ve]=le-K<<24|64<<16|0),N.bits=he,0}},{"../utils/common":41}],51:[function(p,_,y){_.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(p,_,y){var h=p("../utils/common");function d(ye){for(var Se=ye.length;0<=--Se;)ye[Se]=0}var A=256,v=286,w=30,x=15,C=[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],k=[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],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=new Array(576);d(M);var P=new Array(60);d(P);var N=new Array(512);d(N);var B=new Array(256);d(B);var O=new Array(29);d(O);var I,F,L,R=new Array(w);function U(ye,Se,Fe,Ve,ke){this.static_tree=ye,this.extra_bits=Se,this.extra_base=Fe,this.elems=Ve,this.max_length=ke,this.has_stree=ye&&ye.length}function V(ye,Se){this.dyn_tree=ye,this.max_code=0,this.stat_desc=Se}function W(ye){return ye<256?N[ye]:N[256+(ye>>>7)]}function Q(ye,Se){ye.pending_buf[ye.pending++]=255&Se,ye.pending_buf[ye.pending++]=Se>>>8&255}function le(ye,Se,Fe){ye.bi_valid>16-Fe?(ye.bi_buf|=Se<<ye.bi_valid&65535,Q(ye,ye.bi_buf),ye.bi_buf=Se>>16-ye.bi_valid,ye.bi_valid+=Fe-16):(ye.bi_buf|=Se<<ye.bi_valid&65535,ye.bi_valid+=Fe)}function G(ye,Se,Fe){le(ye,Fe[2*Se],Fe[2*Se+1])}function fe(ye,Se){for(var Fe=0;Fe|=1&ye,ye>>>=1,Fe<<=1,0<--Se;);return Fe>>>1}function ie(ye,Se,Fe){var Ve,ke,Pe=new Array(16),Re=0;for(Ve=1;Ve<=x;Ve++)Pe[Ve]=Re=Re+Fe[Ve-1]<<1;for(ke=0;ke<=Se;ke++){var Ye=ye[2*ke+1];Ye!==0&&(ye[2*ke]=fe(Pe[Ye]++,Ye))}}function he(ye){var Se;for(Se=0;Se<v;Se++)ye.dyn_ltree[2*Se]=0;for(Se=0;Se<w;Se++)ye.dyn_dtree[2*Se]=0;for(Se=0;Se<19;Se++)ye.bl_tree[2*Se]=0;ye.dyn_ltree[512]=1,ye.opt_len=ye.static_len=0,ye.last_lit=ye.matches=0}function Y(ye){8<ye.bi_valid?Q(ye,ye.bi_buf):0<ye.bi_valid&&(ye.pending_buf[ye.pending++]=ye.bi_buf),ye.bi_buf=0,ye.bi_valid=0}function K(ye,Se,Fe,Ve){var ke=2*Se,Pe=2*Fe;return ye[ke]<ye[Pe]||ye[ke]===ye[Pe]&&Ve[Se]<=Ve[Fe]}function oe(ye,Se,Fe){for(var Ve=ye.heap[Fe],ke=Fe<<1;ke<=ye.heap_len&&(ke<ye.heap_len&&K(Se,ye.heap[ke+1],ye.heap[ke],ye.depth)&&ke++,!K(Se,Ve,ye.heap[ke],ye.depth));)ye.heap[Fe]=ye.heap[ke],Fe=ke,ke<<=1;ye.heap[Fe]=Ve}function pe(ye,Se,Fe){var Ve,ke,Pe,Re,Ye=0;if(ye.last_lit!==0)for(;Ve=ye.pending_buf[ye.d_buf+2*Ye]<<8|ye.pending_buf[ye.d_buf+2*Ye+1],ke=ye.pending_buf[ye.l_buf+Ye],Ye++,Ve===0?G(ye,ke,Se):(G(ye,(Pe=B[ke])+A+1,Se),(Re=C[Pe])!==0&&le(ye,ke-=O[Pe],Re),G(ye,Pe=W(--Ve),Fe),(Re=k[Pe])!==0&&le(ye,Ve-=R[Pe],Re)),Ye<ye.last_lit;);G(ye,256,Se)}function ve(ye,Se){var Fe,Ve,ke,Pe=Se.dyn_tree,Re=Se.stat_desc.static_tree,Ye=Se.stat_desc.has_stree,Ke=Se.stat_desc.elems,ot=-1;for(ye.heap_len=0,ye.heap_max=573,Fe=0;Fe<Ke;Fe++)Pe[2*Fe]!==0?(ye.heap[++ye.heap_len]=ot=Fe,ye.depth[Fe]=0):Pe[2*Fe+1]=0;for(;ye.heap_len<2;)Pe[2*(ke=ye.heap[++ye.heap_len]=ot<2?++ot:0)]=1,ye.depth[ke]=0,ye.opt_len--,Ye&&(ye.static_len-=Re[2*ke+1]);for(Se.max_code=ot,Fe=ye.heap_len>>1;1<=Fe;Fe--)oe(ye,Pe,Fe);for(ke=Ke;Fe=ye.heap[1],ye.heap[1]=ye.heap[ye.heap_len--],oe(ye,Pe,1),Ve=ye.heap[1],ye.heap[--ye.heap_max]=Fe,ye.heap[--ye.heap_max]=Ve,Pe[2*ke]=Pe[2*Fe]+Pe[2*Ve],ye.depth[ke]=(ye.depth[Fe]>=ye.depth[Ve]?ye.depth[Fe]:ye.depth[Ve])+1,Pe[2*Fe+1]=Pe[2*Ve+1]=ke,ye.heap[1]=ke++,oe(ye,Pe,1),2<=ye.heap_len;);ye.heap[--ye.heap_max]=ye.heap[1],(function(nt,mt){var Ut,Ot,wt,Kt,_t,Jt,yr=mt.dyn_tree,vr=mt.max_code,Br=mt.stat_desc.static_tree,zr=mt.stat_desc.has_stree,mn=mt.stat_desc.extra_bits,jr=mt.stat_desc.extra_base,Tn=mt.stat_desc.max_length,Lt=0;for(Kt=0;Kt<=x;Kt++)nt.bl_count[Kt]=0;for(yr[2*nt.heap[nt.heap_max]+1]=0,Ut=nt.heap_max+1;Ut<573;Ut++)Tn<(Kt=yr[2*yr[2*(Ot=nt.heap[Ut])+1]+1]+1)&&(Kt=Tn,Lt++),yr[2*Ot+1]=Kt,vr<Ot||(nt.bl_count[Kt]++,_t=0,jr<=Ot&&(_t=mn[Ot-jr]),Jt=yr[2*Ot],nt.opt_len+=Jt*(Kt+_t),zr&&(nt.static_len+=Jt*(Br[2*Ot+1]+_t)));if(Lt!==0){do{for(Kt=Tn-1;nt.bl_count[Kt]===0;)Kt--;nt.bl_count[Kt]--,nt.bl_count[Kt+1]+=2,nt.bl_count[Tn]--,Lt-=2}while(0<Lt);for(Kt=Tn;Kt!==0;Kt--)for(Ot=nt.bl_count[Kt];Ot!==0;)vr<(wt=nt.heap[--Ut])||(yr[2*wt+1]!==Kt&&(nt.opt_len+=(Kt-yr[2*wt+1])*yr[2*wt],yr[2*wt+1]=Kt),Ot--)}})(ye,Se),ie(Pe,ot,ye.bl_count)}function ge(ye,Se,Fe){var Ve,ke,Pe=-1,Re=Se[1],Ye=0,Ke=7,ot=4;for(Re===0&&(Ke=138,ot=3),Se[2*(Fe+1)+1]=65535,Ve=0;Ve<=Fe;Ve++)ke=Re,Re=Se[2*(Ve+1)+1],++Ye<Ke&&ke===Re||(Ye<ot?ye.bl_tree[2*ke]+=Ye:ke!==0?(ke!==Pe&&ye.bl_tree[2*ke]++,ye.bl_tree[32]++):Ye<=10?ye.bl_tree[34]++:ye.bl_tree[36]++,Pe=ke,ot=(Ye=0)===Re?(Ke=138,3):ke===Re?(Ke=6,3):(Ke=7,4))}function ue(ye,Se,Fe){var Ve,ke,Pe=-1,Re=Se[1],Ye=0,Ke=7,ot=4;for(Re===0&&(Ke=138,ot=3),Ve=0;Ve<=Fe;Ve++)if(ke=Re,Re=Se[2*(Ve+1)+1],!(++Ye<Ke&&ke===Re)){if(Ye<ot)for(;G(ye,ke,ye.bl_tree),--Ye!=0;);else ke!==0?(ke!==Pe&&(G(ye,ke,ye.bl_tree),Ye--),G(ye,16,ye.bl_tree),le(ye,Ye-3,2)):Ye<=10?(G(ye,17,ye.bl_tree),le(ye,Ye-3,3)):(G(ye,18,ye.bl_tree),le(ye,Ye-11,7));Pe=ke,ot=(Ye=0)===Re?(Ke=138,3):ke===Re?(Ke=6,3):(Ke=7,4)}}d(R);var Te=!1;function Ee(ye,Se,Fe,Ve){le(ye,0+(Ve?1:0),3),(function(ke,Pe,Re,Ye){Y(ke),Q(ke,Re),Q(ke,~Re),h.arraySet(ke.pending_buf,ke.window,Pe,Re,ke.pending),ke.pending+=Re})(ye,Se,Fe)}y._tr_init=function(ye){Te||((function(){var Se,Fe,Ve,ke,Pe,Re=new Array(16);for(ke=Ve=0;ke<28;ke++)for(O[ke]=Ve,Se=0;Se<1<<C[ke];Se++)B[Ve++]=ke;for(B[Ve-1]=ke,ke=Pe=0;ke<16;ke++)for(R[ke]=Pe,Se=0;Se<1<<k[ke];Se++)N[Pe++]=ke;for(Pe>>=7;ke<w;ke++)for(R[ke]=Pe<<7,Se=0;Se<1<<k[ke]-7;Se++)N[256+Pe++]=ke;for(Fe=0;Fe<=x;Fe++)Re[Fe]=0;for(Se=0;Se<=143;)M[2*Se+1]=8,Se++,Re[8]++;for(;Se<=255;)M[2*Se+1]=9,Se++,Re[9]++;for(;Se<=279;)M[2*Se+1]=7,Se++,Re[7]++;for(;Se<=287;)M[2*Se+1]=8,Se++,Re[8]++;for(ie(M,287,Re),Se=0;Se<w;Se++)P[2*Se+1]=5,P[2*Se]=fe(Se,5);I=new U(M,C,257,v,x),F=new U(P,k,0,w,x),L=new U(new Array(0),T,0,19,7)})(),Te=!0),ye.l_desc=new V(ye.dyn_ltree,I),ye.d_desc=new V(ye.dyn_dtree,F),ye.bl_desc=new V(ye.bl_tree,L),ye.bi_buf=0,ye.bi_valid=0,he(ye)},y._tr_stored_block=Ee,y._tr_flush_block=function(ye,Se,Fe,Ve){var ke,Pe,Re=0;0<ye.level?(ye.strm.data_type===2&&(ye.strm.data_type=(function(Ye){var Ke,ot=4093624447;for(Ke=0;Ke<=31;Ke++,ot>>>=1)if(1&ot&&Ye.dyn_ltree[2*Ke]!==0)return 0;if(Ye.dyn_ltree[18]!==0||Ye.dyn_ltree[20]!==0||Ye.dyn_ltree[26]!==0)return 1;for(Ke=32;Ke<A;Ke++)if(Ye.dyn_ltree[2*Ke]!==0)return 1;return 0})(ye)),ve(ye,ye.l_desc),ve(ye,ye.d_desc),Re=(function(Ye){var Ke;for(ge(Ye,Ye.dyn_ltree,Ye.l_desc.max_code),ge(Ye,Ye.dyn_dtree,Ye.d_desc.max_code),ve(Ye,Ye.bl_desc),Ke=18;3<=Ke&&Ye.bl_tree[2*S[Ke]+1]===0;Ke--);return Ye.opt_len+=3*(Ke+1)+5+5+4,Ke})(ye),ke=ye.opt_len+3+7>>>3,(Pe=ye.static_len+3+7>>>3)<=ke&&(ke=Pe)):ke=Pe=Fe+5,Fe+4<=ke&&Se!==-1?Ee(ye,Se,Fe,Ve):ye.strategy===4||Pe===ke?(le(ye,2+(Ve?1:0),3),pe(ye,M,P)):(le(ye,4+(Ve?1:0),3),(function(Ye,Ke,ot,nt){var mt;for(le(Ye,Ke-257,5),le(Ye,ot-1,5),le(Ye,nt-4,4),mt=0;mt<nt;mt++)le(Ye,Ye.bl_tree[2*S[mt]+1],3);ue(Ye,Ye.dyn_ltree,Ke-1),ue(Ye,Ye.dyn_dtree,ot-1)})(ye,ye.l_desc.max_code+1,ye.d_desc.max_code+1,Re+1),pe(ye,ye.dyn_ltree,ye.dyn_dtree)),he(ye),Ve&&Y(ye)},y._tr_tally=function(ye,Se,Fe){return ye.pending_buf[ye.d_buf+2*ye.last_lit]=Se>>>8&255,ye.pending_buf[ye.d_buf+2*ye.last_lit+1]=255&Se,ye.pending_buf[ye.l_buf+ye.last_lit]=255&Fe,ye.last_lit++,Se===0?ye.dyn_ltree[2*Fe]++:(ye.matches++,Se--,ye.dyn_ltree[2*(B[Fe]+A+1)]++,ye.dyn_dtree[2*W(Se)]++),ye.last_lit===ye.lit_bufsize-1},y._tr_align=function(ye){le(ye,2,3),G(ye,256,M),(function(Se){Se.bi_valid===16?(Q(Se,Se.bi_buf),Se.bi_buf=0,Se.bi_valid=0):8<=Se.bi_valid&&(Se.pending_buf[Se.pending++]=255&Se.bi_buf,Se.bi_buf>>=8,Se.bi_valid-=8)})(ye)}},{"../utils/common":41}],53:[function(p,_,y){_.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(p,_,y){(function(h){(function(d,A){if(!d.setImmediate){var v,w,x,C,k=1,T={},S=!1,M=d.document,P=Object.getPrototypeOf&&Object.getPrototypeOf(d);P=P&&P.setTimeout?P:d,v={}.toString.call(d.process)==="[object process]"?function(I){t.nextTick((function(){B(I)}))}:(function(){if(d.postMessage&&!d.importScripts){var I=!0,F=d.onmessage;return d.onmessage=function(){I=!1},d.postMessage("","*"),d.onmessage=F,I}})()?(C="setImmediate$"+Math.random()+"$",d.addEventListener?d.addEventListener("message",O,!1):d.attachEvent("onmessage",O),function(I){d.postMessage(C+I,"*")}):d.MessageChannel?((x=new MessageChannel).port1.onmessage=function(I){B(I.data)},function(I){x.port2.postMessage(I)}):M&&"onreadystatechange"in M.createElement("script")?(w=M.documentElement,function(I){var F=M.createElement("script");F.onreadystatechange=function(){B(I),F.onreadystatechange=null,w.removeChild(F),F=null},w.appendChild(F)}):function(I){setTimeout(B,0,I)},P.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var F=new Array(arguments.length-1),L=0;L<F.length;L++)F[L]=arguments[L+1];var R={callback:I,args:F};return T[k]=R,v(k),k++},P.clearImmediate=N}function N(I){delete T[I]}function B(I){if(S)setTimeout(B,0,I);else{var F=T[I];if(F){S=!0;try{(function(L){var R=L.callback,U=L.args;switch(U.length){case 0:R();break;case 1:R(U[0]);break;case 2:R(U[0],U[1]);break;case 3:R(U[0],U[1],U[2]);break;default:R.apply(void 0,U)}})(F)}finally{N(I),S=!1}}}}function O(I){I.source===d&&typeof I.data=="string"&&I.data.indexOf(C)===0&&B(+I.data.slice(C.length))}})(typeof self>"u"?h===void 0?this:h:self)}).call(this,c!==void 0?c:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{},r("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],r("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(r,i,n){(function(t){(function(){var c=/[\\^$.*+?()[\]{}|]/g,u=RegExp(c.source),f=typeof t=="object"&&t&&t.Object===Object&&t,o=typeof self=="object"&&self&&self.Object===Object&&self,l=f||o||Function("return this")(),g=Object.prototype.toString,m=l.Symbol,p=m?m.prototype:void 0,_=p?p.toString:void 0;function y(h){if(typeof h=="string")return h;if((function(A){return typeof A=="symbol"||(function(v){return!!v&&typeof v=="object"})(A)&&g.call(A)=="[object Symbol]"})(h))return _?_.call(h):"";var d=h+"";return d=="0"&&1/h==-1/0?"-0":d}i.exports=function(h){var d;return(h=(d=h)==null?"":y(d))&&u.test(h)?h.replace(c,"\\$&"):h}}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(r,i,n){(function(t){(function(){var c="[object Arguments]",u="[object Map]",f="[object Object]",o="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,m=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[c]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[u]=d["[object Number]"]=d[f]=d["[object RegExp]"]=d[o]=d["[object String]"]=d["[object WeakMap]"]=!1;var A=typeof t=="object"&&t&&t.Object===Object&&t,v=typeof self=="object"&&self&&self.Object===Object&&self,w=A||v||Function("return this")(),x=typeof n=="object"&&n&&!n.nodeType&&n,C=x&&typeof i=="object"&&i&&!i.nodeType&&i,k=C&&C.exports===x&&A.process,T=(function(){try{return k&&k.binding("util")}catch{}})(),S=T&&T.isTypedArray;function M(it,We,gt,yt){for(var Rt=-1,Mt=it?it.length:0;++Rt<Mt;){var It=it[Rt];We(yt,It,gt(It),it)}return yt}function P(it,We){for(var gt=-1,yt=it?it.length:0;++gt<yt;)if(We(it[gt],gt,it))return!0;return!1}function N(it){var We=!1;if(it!=null&&typeof it.toString!="function")try{We=!!(it+"")}catch{}return We}function B(it){var We=-1,gt=Array(it.size);return it.forEach((function(yt,Rt){gt[++We]=[Rt,yt]})),gt}function O(it){var We=-1,gt=Array(it.size);return it.forEach((function(yt){gt[++We]=yt})),gt}var I,F,L,R=Array.prototype,U=Function.prototype,V=Object.prototype,W=w["__core-js_shared__"],Q=(I=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"",le=U.toString,G=V.hasOwnProperty,fe=V.toString,ie=RegExp("^"+le.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=w.Symbol,Y=w.Uint8Array,K=V.propertyIsEnumerable,oe=R.splice,pe=(F=Object.keys,L=Object,function(it){return F(L(it))}),ve=br(w,"DataView"),ge=br(w,"Map"),ue=br(w,"Promise"),Te=br(w,"Set"),Ee=br(w,"WeakMap"),ye=br(Object,"create"),Se=Qt(ve),Fe=Qt(ge),Ve=Qt(ue),ke=Qt(Te),Pe=Qt(Ee),Re=he?he.prototype:void 0,Ye=Re?Re.valueOf:void 0,Ke=Re?Re.toString:void 0;function ot(it){var We=-1,gt=it?it.length:0;for(this.clear();++We<gt;){var yt=it[We];this.set(yt[0],yt[1])}}function nt(it){var We=-1,gt=it?it.length:0;for(this.clear();++We<gt;){var yt=it[We];this.set(yt[0],yt[1])}}function mt(it){var We=-1,gt=it?it.length:0;for(this.clear();++We<gt;){var yt=it[We];this.set(yt[0],yt[1])}}function Ut(it){var We=-1,gt=it?it.length:0;for(this.__data__=new mt;++We<gt;)this.add(it[We])}function Ot(it){this.__data__=new nt(it)}function wt(it,We){var gt=$e(it)||Ge(it)?(function(It,xr){for(var rn=-1,Zr=Array(It);++rn<It;)Zr[rn]=xr(rn);return Zr})(it.length,String):[],yt=gt.length,Rt=!!yt;for(var Mt in it)!G.call(it,Mt)||Rt&&(Mt=="length"||Fn(Mt,yt))||gt.push(Mt);return gt}function Kt(it,We){for(var gt=it.length;gt--;)if(qe(it[gt][0],We))return gt;return-1}function _t(it,We,gt,yt){return yr(it,(function(Rt,Mt,It){We(yt,Rt,gt(Rt),It)})),yt}ot.prototype.clear=function(){this.__data__=ye?ye(null):{}},ot.prototype.delete=function(it){return this.has(it)&&delete this.__data__[it]},ot.prototype.get=function(it){var We=this.__data__;if(ye){var gt=We[it];return gt==="__lodash_hash_undefined__"?void 0:gt}return G.call(We,it)?We[it]:void 0},ot.prototype.has=function(it){var We=this.__data__;return ye?We[it]!==void 0:G.call(We,it)},ot.prototype.set=function(it,We){return this.__data__[it]=ye&&We===void 0?"__lodash_hash_undefined__":We,this},nt.prototype.clear=function(){this.__data__=[]},nt.prototype.delete=function(it){var We=this.__data__,gt=Kt(We,it);return!(gt<0)&&(gt==We.length-1?We.pop():oe.call(We,gt,1),!0)},nt.prototype.get=function(it){var We=this.__data__,gt=Kt(We,it);return gt<0?void 0:We[gt][1]},nt.prototype.has=function(it){return Kt(this.__data__,it)>-1},nt.prototype.set=function(it,We){var gt=this.__data__,yt=Kt(gt,it);return yt<0?gt.push([it,We]):gt[yt][1]=We,this},mt.prototype.clear=function(){this.__data__={hash:new ot,map:new(ge||nt),string:new ot}},mt.prototype.delete=function(it){return Sr(this,it).delete(it)},mt.prototype.get=function(it){return Sr(this,it).get(it)},mt.prototype.has=function(it){return Sr(this,it).has(it)},mt.prototype.set=function(it,We){return Sr(this,it).set(it,We),this},Ut.prototype.add=Ut.prototype.push=function(it){return this.__data__.set(it,"__lodash_hash_undefined__"),this},Ut.prototype.has=function(it){return this.__data__.has(it)},Ot.prototype.clear=function(){this.__data__=new nt},Ot.prototype.delete=function(it){return this.__data__.delete(it)},Ot.prototype.get=function(it){return this.__data__.get(it)},Ot.prototype.has=function(it){return this.__data__.has(it)},Ot.prototype.set=function(it,We){var gt=this.__data__;if(gt instanceof nt){var yt=gt.__data__;if(!ge||yt.length<199)return yt.push([it,We]),this;gt=this.__data__=new mt(yt)}return gt.set(it,We),this};var Jt,yr=(Jt=function(it,We){return it&&vr(it,We,gr)},function(it,We){if(it==null)return it;if(!tt(it))return Jt(it,We);for(var gt=it.length,yt=-1,Rt=Object(it);++yt<gt&&We(Rt[yt],yt,Rt)!==!1;);return it}),vr=(function(it){return function(We,gt,yt){for(var Rt=-1,Mt=Object(We),It=yt(We),xr=It.length;xr--;){var rn=It[++Rt];if(gt(Mt[rn],rn,Mt)===!1)break}return We}})();function Br(it,We){for(var gt=0,yt=(We=fn(We,it)?[We]:Gt(We)).length;it!=null&&gt<yt;)it=it[Tt(We[gt++])];return gt&&gt==yt?it:void 0}function zr(it,We){return it!=null&&We in Object(it)}function mn(it,We,gt,yt,Rt){return it===We||(it==null||We==null||!kt(it)&&!Bt(We)?it!=it&&We!=We:(function(Mt,It,xr,rn,Zr,Rr){var $r=$e(Mt),lr=$e(It),Mn="[object Array]",ia="[object Array]";$r||(Mn=(Mn=sr(Mt))==c?f:Mn),lr||(ia=(ia=sr(It))==c?f:ia);var vn=Mn==f&&!N(Mt),ri=ia==f&&!N(It),ms=Mn==ia;if(ms&&!vn)return Rr||(Rr=new Ot),$r||or(Mt)?$t(Mt,It,xr,rn,Zr,Rr):(function(Da,va,Ba,po,Tl,Ki,gs){switch(Ba){case"[object DataView]":if(Da.byteLength!=va.byteLength||Da.byteOffset!=va.byteOffset)return!1;Da=Da.buffer,va=va.buffer;case"[object ArrayBuffer]":return!(Da.byteLength!=va.byteLength||!po(new Y(Da),new Y(va)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qe(+Da,+va);case"[object Error]":return Da.name==va.name&&Da.message==va.message;case"[object RegExp]":case"[object String]":return Da==va+"";case u:var mo=B;case o:var mu=2&Ki;if(mo||(mo=O),Da.size!=va.size&&!mu)return!1;var si=gs.get(Da);if(si)return si==va;Ki|=1,gs.set(Da,va);var ll=$t(mo(Da),mo(va),po,Tl,Ki,gs);return gs.delete(Da),ll;case"[object Symbol]":if(Ye)return Ye.call(Da)==Ye.call(va)}return!1})(Mt,It,Mn,xr,rn,Zr,Rr);if(!(2&Zr)){var gi=vn&&G.call(Mt,"__wrapped__"),Eo=ri&&G.call(It,"__wrapped__");if(gi||Eo){var kl=gi?Mt.value():Mt,ba=Eo?It.value():It;return Rr||(Rr=new Ot),xr(kl,ba,rn,Zr,Rr)}}return ms?(Rr||(Rr=new Ot),(function(Da,va,Ba,po,Tl,Ki){var gs=2&Tl,mo=gr(Da),mu=mo.length,si=gr(va).length;if(mu!=si&&!gs)return!1;for(var ll=mu;ll--;){var zo=mo[ll];if(!(gs?zo in va:G.call(va,zo)))return!1}var nc=Ki.get(Da);if(nc&&Ki.get(va))return nc==va;var Kl=!0;Ki.set(Da,va),Ki.set(va,Da);for(var gu=gs;++ll<mu;){zo=mo[ll];var El=Da[zo],Xa=va[zo];if(po)var Is=gs?po(Xa,El,zo,va,Da,Ki):po(El,Xa,zo,Da,va,Ki);if(!(Is===void 0?El===Xa||Ba(El,Xa,po,Tl,Ki):Is)){Kl=!1;break}gu||(gu=zo=="constructor")}if(Kl&&!gu){var ul=Da.constructor,vu=va.constructor;ul==vu||!("constructor"in Da)||!("constructor"in va)||typeof ul=="function"&&ul instanceof ul&&typeof vu=="function"&&vu instanceof vu||(Kl=!1)}return Ki.delete(Da),Ki.delete(va),Kl})(Mt,It,xr,rn,Zr,Rr)):!1})(it,We,mn,gt,yt,Rt))}function jr(it){return!(!kt(it)||(function(We){return!!Q&&Q in We})(it))&&(bt(it)||N(it)?ie:y).test(Qt(it))}function Tn(it){return typeof it=="function"?it:it==null?kr:typeof it=="object"?$e(it)?(function(yt,Rt){return fn(yt)&&Or(Rt)?ar(Tt(yt),Rt):function(Mt){var It=(function(xr,rn,Zr){var Rr=xr==null?void 0:Br(xr,rn);return Rr===void 0?Zr:Rr})(Mt,yt);return It===void 0&&It===Rt?(function(xr,rn){return xr!=null&&(function(Zr,Rr,$r){Rr=fn(Rr,Zr)?[Rr]:Gt(Rr);for(var lr,Mn=-1,ia=Rr.length;++Mn<ia;){var vn=Tt(Rr[Mn]);if(!(lr=Zr!=null&&$r(Zr,vn)))break;Zr=Zr[vn]}return lr||!!(ia=Zr?Zr.length:0)&&xt(ia)&&Fn(vn,ia)&&($e(Zr)||Ge(Zr))})(xr,rn,zr)})(Mt,yt):mn(Rt,It,void 0,3)}})(it[0],it[1]):(function(yt){var Rt=(function(Mt){for(var It=gr(Mt),xr=It.length;xr--;){var rn=It[xr],Zr=Mt[rn];It[xr]=[rn,Zr,Or(Zr)]}return It})(yt);return Rt.length==1&&Rt[0][2]?ar(Rt[0][0],Rt[0][1]):function(Mt){return Mt===yt||(function(It,xr,rn,Zr){var Rr=rn.length,$r=Rr;if(It==null)return!$r;for(It=Object(It);Rr--;){var lr=rn[Rr];if(lr[2]?lr[1]!==It[lr[0]]:!(lr[0]in It))return!1}for(;++Rr<$r;){var Mn=(lr=rn[Rr])[0],ia=It[Mn],vn=lr[1];if(lr[2]){if(ia===void 0&&!(Mn in It))return!1}else{var ri=new Ot,ms;if(!(ms===void 0?mn(vn,ia,Zr,3,ri):ms))return!1}}return!0})(Mt,yt,Rt)}})(it):fn(We=it)?(gt=Tt(We),function(yt){return yt==null?void 0:yt[gt]}):(function(yt){return function(Rt){return Br(Rt,yt)}})(We);var We,gt}function Lt(it){if(gt=(We=it)&&We.constructor,yt=typeof gt=="function"&&gt.prototype||V,We!==yt)return pe(it);var We,gt,yt,Rt=[];for(var Mt in Object(it))G.call(it,Mt)&&Mt!="constructor"&&Rt.push(Mt);return Rt}function Gt(it){return $e(it)?it:Wr(it)}function $t(it,We,gt,yt,Rt,Mt){var It=2&Rt,xr=it.length,rn=We.length;if(xr!=rn&&!(It&&rn>xr))return!1;var Zr=Mt.get(it);if(Zr&&Mt.get(We))return Zr==We;var Rr=-1,$r=!0,lr=1&Rt?new Ut:void 0;for(Mt.set(it,We),Mt.set(We,it);++Rr<xr;){var Mn=it[Rr],ia=We[Rr];if(yt)var vn=It?yt(ia,Mn,Rr,We,it,Mt):yt(Mn,ia,Rr,it,We,Mt);if(vn!==void 0){if(vn)continue;$r=!1;break}if(lr){if(!P(We,(function(ri,ms){if(!lr.has(ms)&&(Mn===ri||gt(Mn,ri,yt,Rt,Mt)))return lr.add(ms)}))){$r=!1;break}}else if(Mn!==ia&&!gt(Mn,ia,yt,Rt,Mt)){$r=!1;break}}return Mt.delete(it),Mt.delete(We),$r}function Sr(it,We){var gt,yt,Rt=it.__data__;return((yt=typeof(gt=We))=="string"||yt=="number"||yt=="symbol"||yt=="boolean"?gt!=="__proto__":gt===null)?Rt[typeof We=="string"?"string":"hash"]:Rt.map}function br(it,We){var gt=(function(yt,Rt){return yt==null?void 0:yt[Rt]})(it,We);return jr(gt)?gt:void 0}var sr=function(it){return fe.call(it)};function Fn(it,We){return!!(We=We??9007199254740991)&&(typeof it=="number"||h.test(it))&&it>-1&&it%1==0&&it<We}function fn(it,We){if($e(it))return!1;var gt=typeof it;return!(gt!="number"&&gt!="symbol"&&gt!="boolean"&&it!=null&&!Dt(it))||g.test(it)||!l.test(it)||We!=null&&it in Object(We)}function Or(it){return it==it&&!kt(it)}function ar(it,We){return function(gt){return gt!=null&&gt[it]===We&&(We!==void 0||it in Object(gt))}}(ve&&sr(new ve(new ArrayBuffer(1)))!="[object DataView]"||ge&&sr(new ge)!=u||ue&&sr(ue.resolve())!="[object Promise]"||Te&&sr(new Te)!=o||Ee&&sr(new Ee)!="[object WeakMap]")&&(sr=function(it){var We=fe.call(it),gt=We==f?it.constructor:void 0,yt=gt?Qt(gt):void 0;if(yt)switch(yt){case Se:return"[object DataView]";case Fe:return u;case Ve:return"[object Promise]";case ke:return o;case Pe:return"[object WeakMap]"}return We});var Wr=Ze((function(it){var We;it=(We=it)==null?"":(function(yt){if(typeof yt=="string")return yt;if(Dt(yt))return Ke?Ke.call(yt):"";var Rt=yt+"";return Rt=="0"&&1/yt==-1/0?"-0":Rt})(We);var gt=[];return m.test(it)&&gt.push(""),it.replace(p,(function(yt,Rt,Mt,It){gt.push(Mt?It.replace(_,"$1"):Rt||yt)})),gt}));function Tt(it){if(typeof it=="string"||Dt(it))return it;var We=it+"";return We=="0"&&1/it==-1/0?"-0":We}function Qt(it){if(it!=null){try{return le.call(it)}catch{}try{return it+""}catch{}}return""}var hr,ze=(hr=function(it,We,gt){G.call(it,gt)?it[gt].push(We):it[gt]=[We]},function(it,We){var gt=$e(it)?M:_t,yt={};return gt(it,hr,Tn(We),yt)});function Ze(it,We){if(typeof it!="function"||We&&typeof We!="function")throw new TypeError("Expected a function");var gt=function(){var yt=arguments,Rt=We?We.apply(this,yt):yt[0],Mt=gt.cache;if(Mt.has(Rt))return Mt.get(Rt);var It=it.apply(this,yt);return gt.cache=Mt.set(Rt,It),It};return gt.cache=new(Ze.Cache||mt),gt}function qe(it,We){return it===We||it!=it&&We!=We}function Ge(it){return(function(We){return Bt(We)&&tt(We)})(it)&&G.call(it,"callee")&&(!K.call(it,"callee")||fe.call(it)==c)}Ze.Cache=mt;var $e=Array.isArray;function tt(it){return it!=null&&xt(it.length)&&!bt(it)}function bt(it){var We=kt(it)?fe.call(it):"";return We=="[object Function]"||We=="[object GeneratorFunction]"}function xt(it){return typeof it=="number"&&it>-1&&it%1==0&&it<=9007199254740991}function kt(it){var We=typeof it;return!!it&&(We=="object"||We=="function")}function Bt(it){return!!it&&typeof it=="object"}function Dt(it){return typeof it=="symbol"||Bt(it)&&fe.call(it)=="[object Symbol]"}var or=S?(function(it){return function(We){return it(We)}})(S):function(it){return Bt(it)&&xt(it.length)&&!!d[fe.call(it)]};function gr(it){return tt(it)?wt(it):Lt(it)}function kr(it){return it}i.exports=ze}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(r,i,n){var t=Object.prototype.toString;i.exports=function(c){return c===!0||c===!1||(function(u){return!!u&&typeof u=="object"})(c)&&t.call(c)=="[object Boolean]"}},{}],445:[function(r,i,n){(function(t){(function(){var c="[object Arguments]",u="[object Map]",f="[object Object]",o="[object Set]",l=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[c]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m[u]=m["[object Number]"]=m[f]=m["[object RegExp]"]=m[o]=m["[object String]"]=m["[object WeakMap]"]=!1;var p=typeof t=="object"&&t&&t.Object===Object&&t,_=typeof self=="object"&&self&&self.Object===Object&&self,y=p||_||Function("return this")(),h=typeof n=="object"&&n&&!n.nodeType&&n,d=h&&typeof i=="object"&&i&&!i.nodeType&&i,A=d&&d.exports===h,v=A&&p.process,w=(function(){try{return v&&v.binding&&v.binding("util")}catch{}})(),x=w&&w.isTypedArray;function C(Tt,Qt){for(var hr=-1,ze=Tt==null?0:Tt.length;++hr<ze;)if(Qt(Tt[hr],hr,Tt))return!0;return!1}function k(Tt){var Qt=-1,hr=Array(Tt.size);return Tt.forEach((function(ze,Ze){hr[++Qt]=[Ze,ze]})),hr}function T(Tt){var Qt=-1,hr=Array(Tt.size);return Tt.forEach((function(ze){hr[++Qt]=ze})),hr}var S,M,P,N=Array.prototype,B=Function.prototype,O=Object.prototype,I=y["__core-js_shared__"],F=B.toString,L=O.hasOwnProperty,R=(S=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"",U=O.toString,V=RegExp("^"+F.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=A?y.Buffer:void 0,Q=y.Symbol,le=y.Uint8Array,G=O.propertyIsEnumerable,fe=N.splice,ie=Q?Q.toStringTag:void 0,he=Object.getOwnPropertySymbols,Y=W?W.isBuffer:void 0,K=(M=Object.keys,P=Object,function(Tt){return M(P(Tt))}),oe=zr(y,"DataView"),pe=zr(y,"Map"),ve=zr(y,"Promise"),ge=zr(y,"Set"),ue=zr(y,"WeakMap"),Te=zr(Object,"create"),Ee=Lt(oe),ye=Lt(pe),Se=Lt(ve),Fe=Lt(ge),Ve=Lt(ue),ke=Q?Q.prototype:void 0,Pe=ke?ke.valueOf:void 0;function Re(Tt){var Qt=-1,hr=Tt==null?0:Tt.length;for(this.clear();++Qt<hr;){var ze=Tt[Qt];this.set(ze[0],ze[1])}}function Ye(Tt){var Qt=-1,hr=Tt==null?0:Tt.length;for(this.clear();++Qt<hr;){var ze=Tt[Qt];this.set(ze[0],ze[1])}}function Ke(Tt){var Qt=-1,hr=Tt==null?0:Tt.length;for(this.clear();++Qt<hr;){var ze=Tt[Qt];this.set(ze[0],ze[1])}}function ot(Tt){var Qt=-1,hr=Tt==null?0:Tt.length;for(this.__data__=new Ke;++Qt<hr;)this.add(Tt[Qt])}function nt(Tt){var Qt=this.__data__=new Ye(Tt);this.size=Qt.size}function mt(Tt,Qt){var hr=Sr(Tt),ze=!hr&&$t(Tt),Ze=!hr&&!ze&&br(Tt),qe=!hr&&!ze&&!Ze&&ar(Tt),Ge=hr||ze||Ze||qe,$e=Ge?(function(xt,kt){for(var Bt=-1,Dt=Array(xt);++Bt<xt;)Dt[Bt]=kt(Bt);return Dt})(Tt.length,String):[],tt=$e.length;for(var bt in Tt)!L.call(Tt,bt)||Ge&&(bt=="length"||Ze&&(bt=="offset"||bt=="parent")||qe&&(bt=="buffer"||bt=="byteLength"||bt=="byteOffset")||Tn(bt,tt))||$e.push(bt);return $e}function Ut(Tt,Qt){for(var hr=Tt.length;hr--;)if(Gt(Tt[hr][0],Qt))return hr;return-1}function Ot(Tt){return Tt==null?Tt===void 0?"[object Undefined]":"[object Null]":ie&&ie in Object(Tt)?(function(Qt){var hr=L.call(Qt,ie),ze=Qt[ie];try{Qt[ie]=void 0;var Ze=!0}catch{}var qe=U.call(Qt);return Ze&&(hr?Qt[ie]=ze:delete Qt[ie]),qe})(Tt):(function(Qt){return U.call(Qt)})(Tt)}function wt(Tt){return Or(Tt)&&Ot(Tt)==c}function Kt(Tt,Qt,hr,ze,Ze){return Tt===Qt||(Tt==null||Qt==null||!Or(Tt)&&!Or(Qt)?Tt!=Tt&&Qt!=Qt:(function(qe,Ge,$e,tt,bt,xt){var kt=Sr(qe),Bt=Sr(Ge),Dt=kt?"[object Array]":jr(qe),or=Bt?"[object Array]":jr(Ge),gr=(Dt=Dt==c?f:Dt)==f,kr=(or=or==c?f:or)==f,it=Dt==or;if(it&&br(qe)){if(!br(Ge))return!1;kt=!0,gr=!1}if(it&&!gr)return xt||(xt=new nt),kt||ar(qe)?yr(qe,Ge,$e,tt,bt,xt):(function(Mt,It,xr,rn,Zr,Rr,$r){switch(xr){case"[object DataView]":if(Mt.byteLength!=It.byteLength||Mt.byteOffset!=It.byteOffset)return!1;Mt=Mt.buffer,It=It.buffer;case"[object ArrayBuffer]":return!(Mt.byteLength!=It.byteLength||!Rr(new le(Mt),new le(It)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Gt(+Mt,+It);case"[object Error]":return Mt.name==It.name&&Mt.message==It.message;case"[object RegExp]":case"[object String]":return Mt==It+"";case u:var lr=k;case o:var Mn=1&rn;if(lr||(lr=T),Mt.size!=It.size&&!Mn)return!1;var ia=$r.get(Mt);if(ia)return ia==It;rn|=2,$r.set(Mt,It);var vn=yr(lr(Mt),lr(It),rn,Zr,Rr,$r);return $r.delete(Mt),vn;case"[object Symbol]":if(Pe)return Pe.call(Mt)==Pe.call(It)}return!1})(qe,Ge,Dt,$e,tt,bt,xt);if(!(1&$e)){var We=gr&&L.call(qe,"__wrapped__"),gt=kr&&L.call(Ge,"__wrapped__");if(We||gt){var yt=We?qe.value():qe,Rt=gt?Ge.value():Ge;return xt||(xt=new nt),bt(yt,Rt,$e,tt,xt)}}return it?(xt||(xt=new nt),(function(Mt,It,xr,rn,Zr,Rr){var $r=1&xr,lr=vr(Mt),Mn=lr.length,ia=vr(It).length;if(Mn!=ia&&!$r)return!1;for(var vn=Mn;vn--;){var ri=lr[vn];if(!($r?ri in It:L.call(It,ri)))return!1}var ms=Rr.get(Mt);if(ms&&Rr.get(It))return ms==It;var gi=!0;Rr.set(Mt,It),Rr.set(It,Mt);for(var Eo=$r;++vn<Mn;){ri=lr[vn];var kl=Mt[ri],ba=It[ri];if(rn)var Da=$r?rn(ba,kl,ri,It,Mt,Rr):rn(kl,ba,ri,Mt,It,Rr);if(!(Da===void 0?kl===ba||Zr(kl,ba,xr,rn,Rr):Da)){gi=!1;break}Eo||(Eo=ri=="constructor")}if(gi&&!Eo){var va=Mt.constructor,Ba=It.constructor;va==Ba||!("constructor"in Mt)||!("constructor"in It)||typeof va=="function"&&va instanceof va&&typeof Ba=="function"&&Ba instanceof Ba||(gi=!1)}return Rr.delete(Mt),Rr.delete(It),gi})(qe,Ge,$e,tt,bt,xt)):!1})(Tt,Qt,hr,ze,Kt,Ze))}function _t(Tt){return!(!fn(Tt)||(function(Qt){return!!R&&R in Qt})(Tt))&&(sr(Tt)?V:l).test(Lt(Tt))}function Jt(Tt){if(hr=(Qt=Tt)&&Qt.constructor,ze=typeof hr=="function"&&hr.prototype||O,Qt!==ze)return K(Tt);var Qt,hr,ze,Ze=[];for(var qe in Object(Tt))L.call(Tt,qe)&&qe!="constructor"&&Ze.push(qe);return Ze}function yr(Tt,Qt,hr,ze,Ze,qe){var Ge=1&hr,$e=Tt.length,tt=Qt.length;if($e!=tt&&!(Ge&&tt>$e))return!1;var bt=qe.get(Tt);if(bt&&qe.get(Qt))return bt==Qt;var xt=-1,kt=!0,Bt=2&hr?new ot:void 0;for(qe.set(Tt,Qt),qe.set(Qt,Tt);++xt<$e;){var Dt=Tt[xt],or=Qt[xt];if(ze)var gr=Ge?ze(or,Dt,xt,Qt,Tt,qe):ze(Dt,or,xt,Tt,Qt,qe);if(gr!==void 0){if(gr)continue;kt=!1;break}if(Bt){if(!C(Qt,(function(kr,it){if(We=it,!Bt.has(We)&&(Dt===kr||Ze(Dt,kr,hr,ze,qe)))return Bt.push(it);var We}))){kt=!1;break}}else if(Dt!==or&&!Ze(Dt,or,hr,ze,qe)){kt=!1;break}}return qe.delete(Tt),qe.delete(Qt),kt}function vr(Tt){return(function(Qt,hr,ze){var Ze=hr(Qt);return Sr(Qt)?Ze:(function(qe,Ge){for(var $e=-1,tt=Ge.length,bt=qe.length;++$e<tt;)qe[bt+$e]=Ge[$e];return qe})(Ze,ze(Qt))})(Tt,Wr,mn)}function Br(Tt,Qt){var hr,ze,Ze=Tt.__data__;return((ze=typeof(hr=Qt))=="string"||ze=="number"||ze=="symbol"||ze=="boolean"?hr!=="__proto__":hr===null)?Ze[typeof Qt=="string"?"string":"hash"]:Ze.map}function zr(Tt,Qt){var hr=(function(ze,Ze){return ze==null?void 0:ze[Ze]})(Tt,Qt);return _t(hr)?hr:void 0}Re.prototype.clear=function(){this.__data__=Te?Te(null):{},this.size=0},Re.prototype.delete=function(Tt){var Qt=this.has(Tt)&&delete this.__data__[Tt];return this.size-=Qt?1:0,Qt},Re.prototype.get=function(Tt){var Qt=this.__data__;if(Te){var hr=Qt[Tt];return hr==="__lodash_hash_undefined__"?void 0:hr}return L.call(Qt,Tt)?Qt[Tt]:void 0},Re.prototype.has=function(Tt){var Qt=this.__data__;return Te?Qt[Tt]!==void 0:L.call(Qt,Tt)},Re.prototype.set=function(Tt,Qt){var hr=this.__data__;return this.size+=this.has(Tt)?0:1,hr[Tt]=Te&&Qt===void 0?"__lodash_hash_undefined__":Qt,this},Ye.prototype.clear=function(){this.__data__=[],this.size=0},Ye.prototype.delete=function(Tt){var Qt=this.__data__,hr=Ut(Qt,Tt);return!(hr<0)&&(hr==Qt.length-1?Qt.pop():fe.call(Qt,hr,1),--this.size,!0)},Ye.prototype.get=function(Tt){var Qt=this.__data__,hr=Ut(Qt,Tt);return hr<0?void 0:Qt[hr][1]},Ye.prototype.has=function(Tt){return Ut(this.__data__,Tt)>-1},Ye.prototype.set=function(Tt,Qt){var hr=this.__data__,ze=Ut(hr,Tt);return ze<0?(++this.size,hr.push([Tt,Qt])):hr[ze][1]=Qt,this},Ke.prototype.clear=function(){this.size=0,this.__data__={hash:new Re,map:new(pe||Ye),string:new Re}},Ke.prototype.delete=function(Tt){var Qt=Br(this,Tt).delete(Tt);return this.size-=Qt?1:0,Qt},Ke.prototype.get=function(Tt){return Br(this,Tt).get(Tt)},Ke.prototype.has=function(Tt){return Br(this,Tt).has(Tt)},Ke.prototype.set=function(Tt,Qt){var hr=Br(this,Tt),ze=hr.size;return hr.set(Tt,Qt),this.size+=hr.size==ze?0:1,this},ot.prototype.add=ot.prototype.push=function(Tt){return this.__data__.set(Tt,"__lodash_hash_undefined__"),this},ot.prototype.has=function(Tt){return this.__data__.has(Tt)},nt.prototype.clear=function(){this.__data__=new Ye,this.size=0},nt.prototype.delete=function(Tt){var Qt=this.__data__,hr=Qt.delete(Tt);return this.size=Qt.size,hr},nt.prototype.get=function(Tt){return this.__data__.get(Tt)},nt.prototype.has=function(Tt){return this.__data__.has(Tt)},nt.prototype.set=function(Tt,Qt){var hr=this.__data__;if(hr instanceof Ye){var ze=hr.__data__;if(!pe||ze.length<199)return ze.push([Tt,Qt]),this.size=++hr.size,this;hr=this.__data__=new Ke(ze)}return hr.set(Tt,Qt),this.size=hr.size,this};var mn=he?function(Tt){return Tt==null?[]:(Tt=Object(Tt),(function(Qt,hr){for(var ze=-1,Ze=Qt==null?0:Qt.length,qe=0,Ge=[];++ze<Ze;){var $e=Qt[ze];hr($e,ze,Qt)&&(Ge[qe++]=$e)}return Ge})(he(Tt),(function(Qt){return G.call(Tt,Qt)})))}:function(){return[]},jr=Ot;function Tn(Tt,Qt){return!!(Qt=Qt??9007199254740991)&&(typeof Tt=="number"||g.test(Tt))&&Tt>-1&&Tt%1==0&&Tt<Qt}function Lt(Tt){if(Tt!=null){try{return F.call(Tt)}catch{}try{return Tt+""}catch{}}return""}function Gt(Tt,Qt){return Tt===Qt||Tt!=Tt&&Qt!=Qt}(oe&&jr(new oe(new ArrayBuffer(1)))!="[object DataView]"||pe&&jr(new pe)!=u||ve&&jr(ve.resolve())!="[object Promise]"||ge&&jr(new ge)!=o||ue&&jr(new ue)!="[object WeakMap]")&&(jr=function(Tt){var Qt=Ot(Tt),hr=Qt==f?Tt.constructor:void 0,ze=hr?Lt(hr):"";if(ze)switch(ze){case Ee:return"[object DataView]";case ye:return u;case Se:return"[object Promise]";case Fe:return o;case Ve:return"[object WeakMap]"}return Qt});var $t=wt((function(){return arguments})())?wt:function(Tt){return Or(Tt)&&L.call(Tt,"callee")&&!G.call(Tt,"callee")},Sr=Array.isArray,br=Y||function(){return!1};function sr(Tt){if(!fn(Tt))return!1;var Qt=Ot(Tt);return Qt=="[object Function]"||Qt=="[object GeneratorFunction]"||Qt=="[object AsyncFunction]"||Qt=="[object Proxy]"}function Fn(Tt){return typeof Tt=="number"&&Tt>-1&&Tt%1==0&&Tt<=9007199254740991}function fn(Tt){var Qt=typeof Tt;return Tt!=null&&(Qt=="object"||Qt=="function")}function Or(Tt){return Tt!=null&&typeof Tt=="object"}var ar=x?(function(Tt){return function(Qt){return Tt(Qt)}})(x):function(Tt){return Or(Tt)&&Fn(Tt.length)&&!!m[Ot(Tt)]};function Wr(Tt){return(Qt=Tt)!=null&&Fn(Qt.length)&&!sr(Qt)?mt(Tt):Jt(Tt);var Qt}i.exports=function(Tt,Qt){return Kt(Tt,Qt)}}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(r,i,n){(function(t){(function(){var c=typeof t=="object"&&t&&t.Object===Object&&t,u=typeof self=="object"&&self&&self.Object===Object&&self,f=c||u||Function("return this")(),o=Object.prototype,l=o.hasOwnProperty,g=o.toString,m=f.Symbol,p=m?m.toStringTag:void 0;function _(y){return y==null?y===void 0?"[object Undefined]":"[object Null]":p&&p in Object(y)?(function(h){var d=l.call(h,p),A=h[p];try{h[p]=void 0;var v=!0}catch{}var w=g.call(h);return v&&(d?h[p]=A:delete h[p]),w})(y):(function(h){return g.call(h)})(y)}i.exports=function(y){if(!(function(d){var A=typeof d;return d!=null&&(A=="object"||A=="function")})(y))return!1;var h=_(y);return h=="[object Function]"||h=="[object GeneratorFunction]"||h=="[object AsyncFunction]"||h=="[object Proxy]"}}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(r,i,n){i.exports=function(t){return t==null}},{}],448:[function(r,i,n){i.exports=function(t){return t===void 0}},{}],449:[function(r,i,n){(function(t){(function(){var c=/^\[object .+?Constructor\]$/,u=typeof t=="object"&&t&&t.Object===Object&&t,f=typeof self=="object"&&self&&self.Object===Object&&self,o=u||f||Function("return this")();function l(Q,le){return!!(Q&&Q.length)&&(function(G,fe,ie){if(fe!=fe)return(function(K,oe,pe,ve){for(var ge=K.length,ue=pe+-1;++ue<ge;)if(oe(K[ue],ue,K))return ue;return-1})(G,g,ie);for(var he=ie-1,Y=G.length;++he<Y;)if(G[he]===fe)return he;return-1})(Q,le,0)>-1}function g(Q){return Q!=Q}function m(Q,le){return Q.has(le)}function p(Q){var le=-1,G=Array(Q.size);return Q.forEach((function(fe){G[++le]=fe})),G}var _,y=Array.prototype,h=Function.prototype,d=Object.prototype,A=o["__core-js_shared__"],v=(_=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",w=h.toString,x=d.hasOwnProperty,C=d.toString,k=RegExp("^"+w.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=y.splice,S=V(o,"Map"),M=V(o,"Set"),P=V(Object,"create");function N(Q){var le=-1,G=Q?Q.length:0;for(this.clear();++le<G;){var fe=Q[le];this.set(fe[0],fe[1])}}function B(Q){var le=-1,G=Q?Q.length:0;for(this.clear();++le<G;){var fe=Q[le];this.set(fe[0],fe[1])}}function O(Q){var le=-1,G=Q?Q.length:0;for(this.clear();++le<G;){var fe=Q[le];this.set(fe[0],fe[1])}}function I(Q){var le=-1,G=Q?Q.length:0;for(this.__data__=new O;++le<G;)this.add(Q[le])}function F(Q,le){for(var G,fe,ie=Q.length;ie--;)if((G=Q[ie][0])===(fe=le)||G!=G&&fe!=fe)return ie;return-1}function L(Q){return!(!W(Q)||(le=Q,v&&v in le))&&((function(G){var fe=W(G)?C.call(G):"";return fe=="[object Function]"||fe=="[object GeneratorFunction]"})(Q)||(function(G){var fe=!1;if(G!=null&&typeof G.toString!="function")try{fe=!!(G+"")}catch{}return fe})(Q)?k:c).test((function(G){if(G!=null){try{return w.call(G)}catch{}try{return G+""}catch{}}return""})(Q));var le}N.prototype.clear=function(){this.__data__=P?P(null):{}},N.prototype.delete=function(Q){return this.has(Q)&&delete this.__data__[Q]},N.prototype.get=function(Q){var le=this.__data__;if(P){var G=le[Q];return G==="__lodash_hash_undefined__"?void 0:G}return x.call(le,Q)?le[Q]:void 0},N.prototype.has=function(Q){var le=this.__data__;return P?le[Q]!==void 0:x.call(le,Q)},N.prototype.set=function(Q,le){return this.__data__[Q]=P&&le===void 0?"__lodash_hash_undefined__":le,this},B.prototype.clear=function(){this.__data__=[]},B.prototype.delete=function(Q){var le=this.__data__,G=F(le,Q);return!(G<0)&&(G==le.length-1?le.pop():T.call(le,G,1),!0)},B.prototype.get=function(Q){var le=this.__data__,G=F(le,Q);return G<0?void 0:le[G][1]},B.prototype.has=function(Q){return F(this.__data__,Q)>-1},B.prototype.set=function(Q,le){var G=this.__data__,fe=F(G,Q);return fe<0?G.push([Q,le]):G[fe][1]=le,this},O.prototype.clear=function(){this.__data__={hash:new N,map:new(S||B),string:new N}},O.prototype.delete=function(Q){return U(this,Q).delete(Q)},O.prototype.get=function(Q){return U(this,Q).get(Q)},O.prototype.has=function(Q){return U(this,Q).has(Q)},O.prototype.set=function(Q,le){return U(this,Q).set(Q,le),this},I.prototype.add=I.prototype.push=function(Q){return this.__data__.set(Q,"__lodash_hash_undefined__"),this},I.prototype.has=function(Q){return this.__data__.has(Q)};var R=M&&1/p(new M([,-0]))[1]==1/0?function(Q){return new M(Q)}:function(){};function U(Q,le){var G,fe,ie=Q.__data__;return((fe=typeof(G=le))=="string"||fe=="number"||fe=="symbol"||fe=="boolean"?G!=="__proto__":G===null)?ie[typeof le=="string"?"string":"hash"]:ie.map}function V(Q,le){var G=(function(fe,ie){return fe==null?void 0:fe[ie]})(Q,le);return L(G)?G:void 0}function W(Q){var le=typeof Q;return!!Q&&(le=="object"||le=="function")}i.exports=function(Q){return Q&&Q.length?(function(le,G,fe){var ie=-1,he=l,Y=le.length,K=!0,oe=[],pe=oe;if(Y>=200){var ve=R(le);if(ve)return p(ve);K=!1,he=m,pe=new I}else pe=oe;e:for(;++ie<Y;){var ge=le[ie],ue=ge;if(ge=ge!==0?ge:0,K&&ue==ue){for(var Te=pe.length;Te--;)if(pe[Te]===ue)continue e;oe.push(ge)}else he(pe,ue,fe)||(pe!==oe&&pe.push(ue),oe.push(ge))}return oe})(Q):[]}}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(r,i,n){var t=r("inherits"),c=r("hash-base"),u=r("safe-buffer").Buffer,f=new Array(16);function o(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(y,h){return y<<h|y>>>32-h}function g(y,h,d,A,v,w,x){return l(y+(h&d|~h&A)+v+w|0,x)+h|0}function m(y,h,d,A,v,w,x){return l(y+(h&A|d&~A)+v+w|0,x)+h|0}function p(y,h,d,A,v,w,x){return l(y+(h^d^A)+v+w|0,x)+h|0}function _(y,h,d,A,v,w,x){return l(y+(d^(h|~A))+v+w|0,x)+h|0}t(o,c),o.prototype._update=function(){for(var y=f,h=0;h<16;++h)y[h]=this._block.readInt32LE(4*h);var d=this._a,A=this._b,v=this._c,w=this._d;d=g(d,A,v,w,y[0],3614090360,7),w=g(w,d,A,v,y[1],3905402710,12),v=g(v,w,d,A,y[2],606105819,17),A=g(A,v,w,d,y[3],3250441966,22),d=g(d,A,v,w,y[4],4118548399,7),w=g(w,d,A,v,y[5],1200080426,12),v=g(v,w,d,A,y[6],2821735955,17),A=g(A,v,w,d,y[7],4249261313,22),d=g(d,A,v,w,y[8],1770035416,7),w=g(w,d,A,v,y[9],2336552879,12),v=g(v,w,d,A,y[10],4294925233,17),A=g(A,v,w,d,y[11],2304563134,22),d=g(d,A,v,w,y[12],1804603682,7),w=g(w,d,A,v,y[13],4254626195,12),v=g(v,w,d,A,y[14],2792965006,17),d=m(d,A=g(A,v,w,d,y[15],1236535329,22),v,w,y[1],4129170786,5),w=m(w,d,A,v,y[6],3225465664,9),v=m(v,w,d,A,y[11],643717713,14),A=m(A,v,w,d,y[0],3921069994,20),d=m(d,A,v,w,y[5],3593408605,5),w=m(w,d,A,v,y[10],38016083,9),v=m(v,w,d,A,y[15],3634488961,14),A=m(A,v,w,d,y[4],3889429448,20),d=m(d,A,v,w,y[9],568446438,5),w=m(w,d,A,v,y[14],3275163606,9),v=m(v,w,d,A,y[3],4107603335,14),A=m(A,v,w,d,y[8],1163531501,20),d=m(d,A,v,w,y[13],2850285829,5),w=m(w,d,A,v,y[2],4243563512,9),v=m(v,w,d,A,y[7],1735328473,14),d=p(d,A=m(A,v,w,d,y[12],2368359562,20),v,w,y[5],4294588738,4),w=p(w,d,A,v,y[8],2272392833,11),v=p(v,w,d,A,y[11],1839030562,16),A=p(A,v,w,d,y[14],4259657740,23),d=p(d,A,v,w,y[1],2763975236,4),w=p(w,d,A,v,y[4],1272893353,11),v=p(v,w,d,A,y[7],4139469664,16),A=p(A,v,w,d,y[10],3200236656,23),d=p(d,A,v,w,y[13],681279174,4),w=p(w,d,A,v,y[0],3936430074,11),v=p(v,w,d,A,y[3],3572445317,16),A=p(A,v,w,d,y[6],76029189,23),d=p(d,A,v,w,y[9],3654602809,4),w=p(w,d,A,v,y[12],3873151461,11),v=p(v,w,d,A,y[15],530742520,16),d=_(d,A=p(A,v,w,d,y[2],3299628645,23),v,w,y[0],4096336452,6),w=_(w,d,A,v,y[7],1126891415,10),v=_(v,w,d,A,y[14],2878612391,15),A=_(A,v,w,d,y[5],4237533241,21),d=_(d,A,v,w,y[12],1700485571,6),w=_(w,d,A,v,y[3],2399980690,10),v=_(v,w,d,A,y[10],4293915773,15),A=_(A,v,w,d,y[1],2240044497,21),d=_(d,A,v,w,y[8],1873313359,6),w=_(w,d,A,v,y[15],4264355552,10),v=_(v,w,d,A,y[6],2734768916,15),A=_(A,v,w,d,y[13],1309151649,21),d=_(d,A,v,w,y[4],4149444226,6),w=_(w,d,A,v,y[11],3174756917,10),v=_(v,w,d,A,y[2],718787259,15),A=_(A,v,w,d,y[9],3951481745,21),this._a=this._a+d|0,this._b=this._b+A|0,this._c=this._c+v|0,this._d=this._d+w|0},o.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 y=u.allocUnsafe(16);return y.writeInt32LE(this._a,0),y.writeInt32LE(this._b,4),y.writeInt32LE(this._c,8),y.writeInt32LE(this._d,12),y},i.exports=o},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(r,i,n){var t=r("bn.js"),c=r("brorand");function u(f){this.rand=f||new c.Rand}i.exports=u,u.create=function(f){return new u(f)},u.prototype._randbelow=function(f){var o=f.bitLength(),l=Math.ceil(o/8);do var g=new t(this.rand.generate(l));while(g.cmp(f)>=0);return g},u.prototype._randrange=function(f,o){var l=o.sub(f);return f.add(this._randbelow(l))},u.prototype.test=function(f,o,l){var g=f.bitLength(),m=t.mont(f),p=new t(1).toRed(m);o||(o=Math.max(1,g/48|0));for(var _=f.subn(1),y=0;!_.testn(y);y++);for(var h=f.shrn(y),d=_.toRed(m);o>0;o--){var A=this._randrange(new t(2),_);l&&l(A);var v=A.toRed(m).redPow(h);if(v.cmp(p)!==0&&v.cmp(d)!==0){for(var w=1;w<y;w++){if((v=v.redSqr()).cmp(p)===0)return!1;if(v.cmp(d)===0)break}if(w===y)return!1}}return!0},u.prototype.getDivisor=function(f,o){var l=f.bitLength(),g=t.mont(f),m=new t(1).toRed(g);o||(o=Math.max(1,l/48|0));for(var p=f.subn(1),_=0;!p.testn(_);_++);for(var y=f.shrn(_),h=p.toRed(g);o>0;o--){var d=this._randrange(new t(2),p),A=f.gcd(d);if(A.cmpn(1)!==0)return A;var v=d.toRed(g).redPow(y);if(v.cmp(m)!==0&&v.cmp(h)!==0){for(var w=1;w<_;w++){if((v=v.redSqr()).cmp(m)===0)return v.fromRed().subn(1).gcd(f);if(v.cmp(h)===0)break}if(w===_)return(v=v.redSqr()).fromRed().subn(1).gcd(f)}}return!1}},{"bn.js":452,brorand:187}],452:[function(r,i,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],453:[function(r,i,n){function t(c,u){if(!c)throw new Error(u||"Assertion failed")}i.exports=t,t.equal=function(c,u,f){if(c!=u)throw new Error(f||"Assertion failed: "+c+" != "+u)}},{}],454:[function(r,i,n){var t=n;function c(f){return f.length===1?"0"+f:f}function u(f){for(var o="",l=0;l<f.length;l++)o+=c(f[l].toString(16));return o}t.toArray=function(f,o){if(Array.isArray(f))return f.slice();if(!f)return[];var l=[];if(typeof f!="string"){for(var g=0;g<f.length;g++)l[g]=0|f[g];return l}if(o==="hex")for((f=f.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(f="0"+f),g=0;g<f.length;g+=2)l.push(parseInt(f[g]+f[g+1],16));else for(g=0;g<f.length;g++){var m=f.charCodeAt(g),p=m>>8,_=255&m;p?l.push(p,_):l.push(_)}return l},t.zero2=c,t.toHex=u,t.encode=function(f,o){return o==="hex"?u(f):f}},{}],455:[function(r,i,n){i.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(r,i,n){var t=r("asn1.js");n.certificate=r("./certificate");var c=t.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())}));n.RSAPrivateKey=c;var u=t.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));n.RSAPublicKey=u;var f=t.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}));n.PublicKey=f;var o=t.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())})),l=t.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())}));n.PrivateKey=l;var g=t.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())}));n.EncryptedPrivateKey=g;var m=t.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())}));n.DSAPrivateKey=m,n.DSAparam=t.define("DSAparam",(function(){this.int()}));var p=t.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(_),this.key("publicKey").optional().explicit(1).bitstr())}));n.ECPrivateKey=p;var _=t.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));n.signature=t.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(r,i,n){var t=r("asn1.js"),c=t.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),u=t.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),f=t.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),o=t.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(f),this.key("subjectPublicKey").bitstr())})),l=t.define("RelativeDistinguishedName",(function(){this.setof(u)})),g=t.define("RDNSequence",(function(){this.seqof(l)})),m=t.define("Name",(function(){this.choice({rdnSequence:this.use(g)})})),p=t.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(c),this.key("notAfter").use(c))})),_=t.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),y=t.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(f),this.key("issuer").use(m),this.key("validity").use(p),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(_).optional())})),h=t.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(y),this.key("signatureAlgorithm").use(f),this.key("signatureValue").bitstr())}));i.exports=h},{"asn1.js":170}],458:[function(r,i,n){var t=/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,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,f=r("evp_bytestokey"),o=r("browserify-aes"),l=r("safe-buffer").Buffer;i.exports=function(g,m){var p,_=g.toString(),y=_.match(t);if(y){var h="aes"+y[1],d=l.from(y[2],"hex"),A=l.from(y[3].replace(/[\r\n]/g,""),"base64"),v=f(m,d.slice(0,8),parseInt(y[1],10)).key,w=[],x=o.createDecipheriv(h,v,d);w.push(x.update(A)),w.push(x.final()),p=l.concat(w)}else{var C=_.match(u);p=l.from(C[2].replace(/[\r\n]/g,""),"base64")}return{tag:_.match(c)[1],data:p}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(r,i,n){var t=r("./asn1"),c=r("./aesid.json"),u=r("./fixProc"),f=r("browserify-aes"),o=r("pbkdf2"),l=r("safe-buffer").Buffer;function g(m){var p;typeof m!="object"||l.isBuffer(m)||(p=m.passphrase,m=m.key),typeof m=="string"&&(m=l.from(m));var _,y,h=u(m,p),d=h.tag,A=h.data;switch(d){case"CERTIFICATE":y=t.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(y||(y=t.PublicKey.decode(A,"der")),_=y.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(y.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return y.subjectPrivateKey=y.subjectPublicKey,{type:"ec",data:y};case"1.2.840.10040.4.1":return y.algorithm.params.pub_key=t.DSAparam.decode(y.subjectPublicKey.data,"der"),{type:"dsa",data:y.algorithm.params};default:throw new Error("unknown key id "+_)}case"ENCRYPTED PRIVATE KEY":A=(function(v,w){var x=v.algorithm.decrypt.kde.kdeparams.salt,C=parseInt(v.algorithm.decrypt.kde.kdeparams.iters.toString(),10),k=c[v.algorithm.decrypt.cipher.algo.join(".")],T=v.algorithm.decrypt.cipher.iv,S=v.subjectPrivateKey,M=parseInt(k.split("-")[1],10)/8,P=o.pbkdf2Sync(w,x,C,M,"sha1"),N=f.createDecipheriv(k,P,T),B=[];return B.push(N.update(S)),B.push(N.final()),l.concat(B)})(A=t.EncryptedPrivateKey.decode(A,"der"),p);case"PRIVATE KEY":switch(_=(y=t.PrivateKey.decode(A,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(y.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:y.algorithm.curve,privateKey:t.ECPrivateKey.decode(y.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return y.algorithm.params.priv_key=t.DSAparam.decode(y.subjectPrivateKey,"der"),{type:"dsa",params:y.algorithm.params};default:throw new Error("unknown key id "+_)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return{curve:(A=t.ECPrivateKey.decode(A,"der")).parameters.value,privateKey:A.privateKey};default:throw new Error("unknown key type "+d)}}i.exports=g,g.signature=t.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(r,i,n){n.pbkdf2=r("./lib/async"),n.pbkdf2Sync=r("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(r,i,n){(function(t){(function(){var c,u,f=r("safe-buffer").Buffer,o=r("./precondition"),l=r("./default-encoding"),g=r("./sync"),m=r("./to-buffer"),p=t.crypto&&t.crypto.subtle,_={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"},y=[];function h(){return u||(u=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout)}function d(A,v,w,x,C){return p.importKey("raw",A,{name:"PBKDF2"},!1,["deriveBits"]).then((function(k){return p.deriveBits({name:"PBKDF2",salt:v,iterations:w,hash:{name:C}},k,x<<3)})).then((function(k){return f.from(k)}))}i.exports=function(A,v,w,x,C,k){typeof C=="function"&&(k=C,C=void 0);var T=_[(C=C||"sha1").toLowerCase()];if(T&&typeof t.Promise=="function"){if(o(w,x),A=m(A,l,"Password"),v=m(v,l,"Salt"),typeof k!="function")throw new Error("No callback provided to pbkdf2");(function(S,M){S.then((function(P){h()((function(){M(null,P)}))}),(function(P){h()((function(){M(P)}))}))})((function(S){if(t.process&&!t.process.browser||!p||!p.importKey||!p.deriveBits)return Promise.resolve(!1);if(y[S]!==void 0)return y[S];var M=d(c=c||f.alloc(8),c,10,128,S).then((function(){return!0})).catch((function(){return!1}));return y[S]=M,M})(T).then((function(S){return S?d(A,v,w,x,T):g(A,v,w,x,C)})),k)}else h()((function(){var S;try{S=g(A,v,w,x,C)}catch(M){return k(M)}k(null,S)}))}}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(r,i,n){(function(t,c){(function(){var u;c.process&&c.process.browser?u="utf-8":c.process&&c.process.version?u=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":u="utf-8",i.exports=u}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(r,i,n){var t=Math.pow(2,30)-1;i.exports=function(c,u){if(typeof c!="number")throw new TypeError("Iterations not a number");if(c<0)throw new TypeError("Bad iterations");if(typeof u!="number")throw new TypeError("Key length not a number");if(u<0||u>t||u!=u)throw new TypeError("Bad key length")}},{}],464:[function(r,i,n){var t=r("create-hash/md5"),c=r("ripemd160"),u=r("sha.js"),f=r("safe-buffer").Buffer,o=r("./precondition"),l=r("./default-encoding"),g=r("./to-buffer"),m=f.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function _(y,h,d){var A=(function(T){function S(M){return u(T).update(M).digest()}return T==="rmd160"||T==="ripemd160"?function(M){return new c().update(M).digest()}:T==="md5"?t:S})(y),v=y==="sha512"||y==="sha384"?128:64;h.length>v?h=A(h):h.length<v&&(h=f.concat([h,m],v));for(var w=f.allocUnsafe(v+p[y]),x=f.allocUnsafe(v+p[y]),C=0;C<v;C++)w[C]=54^h[C],x[C]=92^h[C];var k=f.allocUnsafe(v+d+4);w.copy(k,0,0,v),this.ipad1=k,this.ipad2=w,this.opad=x,this.alg=y,this.blocksize=v,this.hash=A,this.size=p[y]}_.prototype.run=function(y,h){return y.copy(h,this.blocksize),this.hash(h).copy(this.opad,this.blocksize),this.hash(this.opad)},i.exports=function(y,h,d,A,v){o(d,A);var w=new _(v=v||"sha1",y=g(y,l,"Password"),(h=g(h,l,"Salt")).length),x=f.allocUnsafe(A),C=f.allocUnsafe(h.length+4);h.copy(C,0,0,h.length);for(var k=0,T=p[v],S=Math.ceil(A/T),M=1;M<=S;M++){C.writeUInt32BE(M,h.length);for(var P=w.run(C,w.ipad1),N=P,B=1;B<d;B++){N=w.run(N,w.ipad2);for(var O=0;O<T;O++)P[O]^=N[O]}P.copy(x,k),k+=T}return x}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(r,i,n){var t=r("safe-buffer").Buffer;i.exports=function(c,u,f){if(t.isBuffer(c))return c;if(typeof c=="string")return t.from(c,u);if(ArrayBuffer.isView(c))return t.from(c.buffer);throw new TypeError(f+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(r,i,n){(function(t){(function(){t===void 0||!t.version||t.version.indexOf("v0.")===0||t.version.indexOf("v1.")===0&&t.version.indexOf("v1.8.")!==0?i.exports={nextTick:function(c,u,f,o){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var l,g,m=arguments.length;switch(m){case 0:case 1:return t.nextTick(c);case 2:return t.nextTick((function(){c.call(null,u)}));case 3:return t.nextTick((function(){c.call(null,u,f)}));case 4:return t.nextTick((function(){c.call(null,u,f,o)}));default:for(l=new Array(m-1),g=0;g<l.length;)l[g++]=arguments[g];return t.nextTick((function(){c.apply(null,l)}))}}}:i.exports=t}).call(this)}).call(this,r("_process"))},{_process:467}],467:[function(r,i,n){var t,c,u=i.exports={};function f(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(v){if(t===setTimeout)return setTimeout(v,0);if((t===f||!t)&&setTimeout)return t=setTimeout,setTimeout(v,0);try{return t(v,0)}catch{try{return t.call(null,v,0)}catch{return t.call(this,v,0)}}}(function(){try{t=typeof setTimeout=="function"?setTimeout:f}catch{t=f}try{c=typeof clearTimeout=="function"?clearTimeout:o}catch{c=o}})();var g,m=[],p=!1,_=-1;function y(){p&&g&&(p=!1,g.length?m=g.concat(m):_=-1,m.length&&h())}function h(){if(!p){var v=l(y);p=!0;for(var w=m.length;w;){for(g=m,m=[];++_<w;)g&&g[_].run();_=-1,w=m.length}g=null,p=!1,(function(x){if(c===clearTimeout)return clearTimeout(x);if((c===o||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(x);try{c(x)}catch{try{return c.call(null,x)}catch{return c.call(this,x)}}})(v)}}function d(v,w){this.fun=v,this.array=w}function A(){}u.nextTick=function(v){var w=new Array(arguments.length-1);if(arguments.length>1)for(var x=1;x<arguments.length;x++)w[x-1]=arguments[x];m.push(new d(v,w)),m.length!==1||p||l(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=A,u.addListener=A,u.once=A,u.off=A,u.removeListener=A,u.removeAllListeners=A,u.emit=A,u.prependListener=A,u.prependOnceListener=A,u.listeners=function(v){return[]},u.binding=function(v){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(v){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],468:[function(r,i,n){n.publicEncrypt=r("./publicEncrypt"),n.privateDecrypt=r("./privateDecrypt"),n.privateEncrypt=function(t,c){return n.publicEncrypt(t,c,!0)},n.publicDecrypt=function(t,c){return n.privateDecrypt(t,c,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(r,i,n){var t=r("create-hash"),c=r("safe-buffer").Buffer;function u(f){var o=c.allocUnsafe(4);return o.writeUInt32BE(f,0),o}i.exports=function(f,o){for(var l,g=c.alloc(0),m=0;g.length<o;)l=u(m++),g=c.concat([g,t("sha1").update(f).update(l).digest()]);return g.slice(0,o)}},{"create-hash":386,"safe-buffer":494}],470:[function(r,i,n){arguments[4][184][0].apply(n,arguments)},{buffer:188,dup:184}],471:[function(r,i,n){var t=r("parse-asn1"),c=r("./mgf"),u=r("./xor"),f=r("bn.js"),o=r("browserify-rsa"),l=r("create-hash"),g=r("./withPublic"),m=r("safe-buffer").Buffer;i.exports=function(p,_,y){var h;h=p.padding?p.padding:y?1:4;var d,A=t(p),v=A.modulus.byteLength();if(_.length>v||new f(_).cmp(A.modulus)>=0)throw new Error("decryption error");d=y?g(new f(_),A):o(_,A);var w=m.alloc(v-d.length);if(d=m.concat([w,d],v),h===4)return(function(x,C){var k=x.modulus.byteLength(),T=l("sha1").update(m.alloc(0)).digest(),S=T.length;if(C[0]!==0)throw new Error("decryption error");var M=C.slice(1,S+1),P=C.slice(S+1),N=u(M,c(P,S)),B=u(P,c(N,k-S-1));if((function(I,F){I=m.from(I),F=m.from(F);var L=0,R=I.length;I.length!==F.length&&(L++,R=Math.min(I.length,F.length));for(var U=-1;++U<R;)L+=I[U]^F[U];return L})(T,B.slice(0,S)))throw new Error("decryption error");for(var O=S;B[O]===0;)O++;if(B[O++]!==1)throw new Error("decryption error");return B.slice(O)})(A,d);if(h===1)return(function(x,C,k){for(var T=C.slice(0,2),S=2,M=0;C[S++]!==0;)if(S>=C.length){M++;break}var P=C.slice(2,S-1);if((T.toString("hex")!=="0002"&&!k||T.toString("hex")!=="0001"&&k)&&M++,P.length<8&&M++,M)throw new Error("decryption error");return C.slice(S)})(0,d,y);if(h===3)return d;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(r,i,n){var t=r("parse-asn1"),c=r("randombytes"),u=r("create-hash"),f=r("./mgf"),o=r("./xor"),l=r("bn.js"),g=r("./withPublic"),m=r("browserify-rsa"),p=r("safe-buffer").Buffer;i.exports=function(_,y,h){var d;d=_.padding?_.padding:h?1:4;var A,v=t(_);if(d===4)A=(function(w,x){var C=w.modulus.byteLength(),k=x.length,T=u("sha1").update(p.alloc(0)).digest(),S=T.length,M=2*S;if(k>C-M-2)throw new Error("message too long");var P=p.alloc(C-k-M-2),N=C-S-1,B=c(S),O=o(p.concat([T,P,p.alloc(1,1),x],N),f(B,N)),I=o(B,f(O,S));return new l(p.concat([p.alloc(1),I,O],C))})(v,y);else if(d===1)A=(function(w,x,C){var k,T=x.length,S=w.modulus.byteLength();if(T>S-11)throw new Error("message too long");return k=C?p.alloc(S-T-3,255):(function(M){for(var P,N=p.allocUnsafe(M),B=0,O=c(2*M),I=0;B<M;)I===O.length&&(O=c(2*M),I=0),(P=O[I++])&&(N[B++]=P);return N})(S-T-3),new l(p.concat([p.from([0,C?1:2]),k,p.alloc(1),x],S))})(v,y,h);else{if(d!==3)throw new Error("unknown padding");if((A=new l(y)).cmp(v.modulus)>=0)throw new Error("data too long for modulus")}return h?m(A,v):g(A,v)}},{"./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(r,i,n){var t=r("bn.js"),c=r("safe-buffer").Buffer;i.exports=function(u,f){return c.from(u.toRed(t.mont(f.modulus)).redPow(new t(f.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(r,i,n){i.exports=function(t,c){for(var u=t.length,f=-1;++f<u;)t[f]^=c[f];return t}},{}],475:[function(r,i,n){(function(t,c){(function(){var u=r("safe-buffer").Buffer,f=c.crypto||c.msCrypto;f&&f.getRandomValues?i.exports=function(o,l){if(o>4294967295)throw new RangeError("requested too many random bytes");var g=u.allocUnsafe(o);if(o>0)if(o>65536)for(var m=0;m<o;m+=65536)f.getRandomValues(g.slice(m,m+65536));else f.getRandomValues(g);return typeof l=="function"?t.nextTick((function(){l(null,g)})):g}:i.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(r,i,n){(function(t,c){(function(){function u(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var f=r("safe-buffer"),o=r("randombytes"),l=f.Buffer,g=f.kMaxLength,m=c.crypto||c.msCrypto,p=Math.pow(2,32)-1;function _(d,A){if(typeof d!="number"||d!=d)throw new TypeError("offset must be a number");if(d>p||d<0)throw new TypeError("offset must be a uint32");if(d>g||d>A)throw new RangeError("offset out of range")}function y(d,A,v){if(typeof d!="number"||d!=d)throw new TypeError("size must be a number");if(d>p||d<0)throw new TypeError("size must be a uint32");if(d+A>v||d>g)throw new RangeError("buffer too small")}function h(d,A,v,w){if(t.browser){var x=d.buffer,C=new Uint8Array(x,A,v);return m.getRandomValues(C),w?void t.nextTick((function(){w(null,d)})):d}if(!w)return o(v).copy(d,A),d;o(v,(function(k,T){if(k)return w(k);T.copy(d,A),w(null,d)}))}m&&m.getRandomValues||!t.browser?(n.randomFill=function(d,A,v,w){if(!(l.isBuffer(d)||d instanceof c.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof A=="function")w=A,A=0,v=d.length;else if(typeof v=="function")w=v,v=d.length-A;else if(typeof w!="function")throw new TypeError('"cb" argument must be a function');return _(A,d.length),y(v,A,d.length),h(d,A,v,w)},n.randomFillSync=function(d,A,v){if(A===void 0&&(A=0),!(l.isBuffer(d)||d instanceof c.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return _(A,d.length),v===void 0&&(v=d.length-A),y(v,A,d.length),h(d,A,v)}):(n.randomFill=u,n.randomFillSync=u)}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(r,i,n){var t={};function c(f,o,l){l||(l=Error);var g=(function(m){var p,_;function y(h,d,A){return m.call(this,(function(v,w,x){return typeof o=="string"?o:o(v,w,x)})(h,d,A))||this}return _=m,(p=y).prototype=Object.create(_.prototype),p.prototype.constructor=p,p.__proto__=_,y})(l);g.prototype.name=l.name,g.prototype.code=f,t[f]=g}function u(f,o){if(Array.isArray(f)){var l=f.length;return f=f.map((function(g){return String(g)})),l>2?"one of ".concat(o," ").concat(f.slice(0,l-1).join(", "),", or ")+f[l-1]:l===2?"one of ".concat(o," ").concat(f[0]," or ").concat(f[1]):"of ".concat(o," ").concat(f[0])}return"of ".concat(o," ").concat(String(f))}c("ERR_INVALID_OPT_VALUE",(function(f,o){return'The value "'+o+'" is invalid for option "'+f+'"'}),TypeError),c("ERR_INVALID_ARG_TYPE",(function(f,o,l){var g,m,p;if(typeof o=="string"&&(m="not ",o.substr(0,m.length)===m)?(g="must not be",o=o.replace(/^not /,"")):g="must be",(function(y,h,d){return(d===void 0||d>y.length)&&(d=y.length),y.substring(d-h.length,d)===h})(f," argument"))p="The ".concat(f," ").concat(g," ").concat(u(o,"type"));else{var _=(function(y,h,d){return typeof d!="number"&&(d=0),!(d+h.length>y.length)&&y.indexOf(h,d)!==-1})(f,".")?"property":"argument";p='The "'.concat(f,'" ').concat(_," ").concat(g," ").concat(u(o,"type"))}return p+=". Received type ".concat(typeof l)}),TypeError),c("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),c("ERR_METHOD_NOT_IMPLEMENTED",(function(f){return"The "+f+" method is not implemented"})),c("ERR_STREAM_PREMATURE_CLOSE","Premature close"),c("ERR_STREAM_DESTROYED",(function(f){return"Cannot call "+f+" after a stream was destroyed"})),c("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),c("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),c("ERR_STREAM_WRITE_AFTER_END","write after end"),c("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),c("ERR_UNKNOWN_ENCODING",(function(f){return"Unknown encoding: "+f}),TypeError),c("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=t},{}],478:[function(r,i,n){(function(t){(function(){var c=Object.keys||function(y){var h=[];for(var d in y)h.push(d);return h};i.exports=m;var u=r("./_stream_readable"),f=r("./_stream_writable");r("inherits")(m,u);for(var o=c(f.prototype),l=0;l<o.length;l++){var g=o[l];m.prototype[g]||(m.prototype[g]=f.prototype[g])}function m(y){if(!(this instanceof m))return new m(y);u.call(this,y),f.call(this,y),this.allowHalfOpen=!0,y&&(y.readable===!1&&(this.readable=!1),y.writable===!1&&(this.writable=!1),y.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||t.nextTick(_,this)}function _(y){y.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(m.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(m.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=y,this._writableState.destroyed=y)}})}).call(this)}).call(this,r("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(r,i,n){i.exports=c;var t=r("./_stream_transform");function c(u){if(!(this instanceof c))return new c(u);t.call(this,u)}r("inherits")(c,t),c.prototype._transform=function(u,f,o){o(null,u)}},{"./_stream_transform":481,inherits:440}],480:[function(r,i,n){(function(t,c){(function(){var u;i.exports=N,N.ReadableState=P,r("events").EventEmitter;var f=function(Y,K){return Y.listeners(K).length},o=r("./internal/streams/stream"),l=r("buffer").Buffer,g=(c!==void 0?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},m,p=r("util");m=p&&p.debuglog?p.debuglog("stream"):function(){};var _,y,h,d=r("./internal/streams/buffer_list"),A=r("./internal/streams/destroy"),v=r("./internal/streams/state").getHighWaterMark,w=r("../errors").codes,x=w.ERR_INVALID_ARG_TYPE,C=w.ERR_STREAM_PUSH_AFTER_EOF,k=w.ERR_METHOD_NOT_IMPLEMENTED,T=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r("inherits")(N,o);var S=A.errorOrDestroy,M=["error","close","destroy","pause","resume"];function P(Y,K,oe){u=u||r("./_stream_duplex"),Y=Y||{},typeof oe!="boolean"&&(oe=K instanceof u),this.objectMode=!!Y.objectMode,oe&&(this.objectMode=this.objectMode||!!Y.readableObjectMode),this.highWaterMark=v(this,Y,"readableHighWaterMark",oe),this.buffer=new d,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=Y.emitClose!==!1,this.autoDestroy=!!Y.autoDestroy,this.destroyed=!1,this.defaultEncoding=Y.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Y.encoding&&(_||(_=r("string_decoder/").StringDecoder),this.decoder=new _(Y.encoding),this.encoding=Y.encoding)}function N(Y){if(u=u||r("./_stream_duplex"),!(this instanceof N))return new N(Y);var K=this instanceof u;this._readableState=new P(Y,this,K),this.readable=!0,Y&&(typeof Y.read=="function"&&(this._read=Y.read),typeof Y.destroy=="function"&&(this._destroy=Y.destroy)),o.call(this)}function B(Y,K,oe,pe,ve){m("readableAddChunk",K);var ge,ue=Y._readableState;if(K===null)ue.reading=!1,(function(Te,Ee){if(m("onEofChunk"),!Ee.ended){if(Ee.decoder){var ye=Ee.decoder.end();ye&&ye.length&&(Ee.buffer.push(ye),Ee.length+=Ee.objectMode?1:ye.length)}Ee.ended=!0,Ee.sync?F(Te):(Ee.needReadable=!1,Ee.emittedReadable||(Ee.emittedReadable=!0,L(Te)))}})(Y,ue);else if(ve||(ge=(function(Te,Ee){var ye;Se=Ee,l.isBuffer(Se)||Se instanceof g||typeof Ee=="string"||Ee===void 0||Te.objectMode||(ye=new x("chunk",["string","Buffer","Uint8Array"],Ee));var Se;return ye})(ue,K)),ge)S(Y,ge);else if(ue.objectMode||K&&K.length>0)if(typeof K=="string"||ue.objectMode||Object.getPrototypeOf(K)===l.prototype||(K=(function(Te){return l.from(Te)})(K)),pe)ue.endEmitted?S(Y,new T):O(Y,ue,K,!0);else if(ue.ended)S(Y,new C);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!oe?(K=ue.decoder.write(K),ue.objectMode||K.length!==0?O(Y,ue,K,!1):R(Y,ue)):O(Y,ue,K,!1)}else pe||(ue.reading=!1,R(Y,ue));return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function O(Y,K,oe,pe){K.flowing&&K.length===0&&!K.sync?(K.awaitDrain=0,Y.emit("data",oe)):(K.length+=K.objectMode?1:oe.length,pe?K.buffer.unshift(oe):K.buffer.push(oe),K.needReadable&&F(Y)),R(Y,K)}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Y){this._readableState&&(this._readableState.destroyed=Y)}}),N.prototype.destroy=A.destroy,N.prototype._undestroy=A.undestroy,N.prototype._destroy=function(Y,K){K(Y)},N.prototype.push=function(Y,K){var oe,pe=this._readableState;return pe.objectMode?oe=!0:typeof Y=="string"&&((K=K||pe.defaultEncoding)!==pe.encoding&&(Y=l.from(Y,K),K=""),oe=!0),B(this,Y,K,!1,oe)},N.prototype.unshift=function(Y){return B(this,Y,null,!0,!1)},N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(Y){_||(_=r("string_decoder/").StringDecoder);var K=new _(Y);this._readableState.decoder=K,this._readableState.encoding=this._readableState.decoder.encoding;for(var oe=this._readableState.buffer.head,pe="";oe!==null;)pe+=K.write(oe.data),oe=oe.next;return this._readableState.buffer.clear(),pe!==""&&this._readableState.buffer.push(pe),this._readableState.length=pe.length,this};function I(Y,K){return Y<=0||K.length===0&&K.ended?0:K.objectMode?1:Y!=Y?K.flowing&&K.length?K.buffer.head.data.length:K.length:(Y>K.highWaterMark&&(K.highWaterMark=(function(oe){return oe>=1073741824?oe=1073741824:(oe--,oe|=oe>>>1,oe|=oe>>>2,oe|=oe>>>4,oe|=oe>>>8,oe|=oe>>>16,oe++),oe})(Y)),Y<=K.length?Y:K.ended?K.length:(K.needReadable=!0,0))}function F(Y){var K=Y._readableState;m("emitReadable",K.needReadable,K.emittedReadable),K.needReadable=!1,K.emittedReadable||(m("emitReadable",K.flowing),K.emittedReadable=!0,t.nextTick(L,Y))}function L(Y){var K=Y._readableState;m("emitReadable_",K.destroyed,K.length,K.ended),K.destroyed||!K.length&&!K.ended||(Y.emit("readable"),K.emittedReadable=!1),K.needReadable=!K.flowing&&!K.ended&&K.length<=K.highWaterMark,le(Y)}function R(Y,K){K.readingMore||(K.readingMore=!0,t.nextTick(U,Y,K))}function U(Y,K){for(;!K.reading&&!K.ended&&(K.length<K.highWaterMark||K.flowing&&K.length===0);){var oe=K.length;if(m("maybeReadMore read 0"),Y.read(0),oe===K.length)break}K.readingMore=!1}function V(Y){var K=Y._readableState;K.readableListening=Y.listenerCount("readable")>0,K.resumeScheduled&&!K.paused?K.flowing=!0:Y.listenerCount("data")>0&&Y.resume()}function W(Y){m("readable nexttick read 0"),Y.read(0)}function Q(Y,K){m("resume",K.reading),K.reading||Y.read(0),K.resumeScheduled=!1,Y.emit("resume"),le(Y),K.flowing&&!K.reading&&Y.read(0)}function le(Y){var K=Y._readableState;for(m("flow",K.flowing);K.flowing&&Y.read()!==null;);}function G(Y,K){return K.length===0?null:(K.objectMode?oe=K.buffer.shift():!Y||Y>=K.length?(oe=K.decoder?K.buffer.join(""):K.buffer.length===1?K.buffer.first():K.buffer.concat(K.length),K.buffer.clear()):oe=K.buffer.consume(Y,K.decoder),oe);var oe}function fe(Y){var K=Y._readableState;m("endReadable",K.endEmitted),K.endEmitted||(K.ended=!0,t.nextTick(ie,K,Y))}function ie(Y,K){if(m("endReadableNT",Y.endEmitted,Y.length),!Y.endEmitted&&Y.length===0&&(Y.endEmitted=!0,K.readable=!1,K.emit("end"),Y.autoDestroy)){var oe=K._writableState;(!oe||oe.autoDestroy&&oe.finished)&&K.destroy()}}function he(Y,K){for(var oe=0,pe=Y.length;oe<pe;oe++)if(Y[oe]===K)return oe;return-1}N.prototype.read=function(Y){m("read",Y),Y=parseInt(Y,10);var K=this._readableState,oe=Y;if(Y!==0&&(K.emittedReadable=!1),Y===0&&K.needReadable&&((K.highWaterMark!==0?K.length>=K.highWaterMark:K.length>0)||K.ended))return m("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?fe(this):F(this),null;if((Y=I(Y,K))===0&&K.ended)return K.length===0&&fe(this),null;var pe,ve=K.needReadable;return m("need readable",ve),(K.length===0||K.length-Y<K.highWaterMark)&&m("length less than watermark",ve=!0),K.ended||K.reading?m("reading or ended",ve=!1):ve&&(m("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(Y=I(oe,K))),(pe=Y>0?G(Y,K):null)===null?(K.needReadable=K.length<=K.highWaterMark,Y=0):(K.length-=Y,K.awaitDrain=0),K.length===0&&(K.ended||(K.needReadable=!0),oe!==Y&&K.ended&&fe(this)),pe!==null&&this.emit("data",pe),pe},N.prototype._read=function(Y){S(this,new k("_read()"))},N.prototype.pipe=function(Y,K){var oe=this,pe=this._readableState;switch(pe.pipesCount){case 0:pe.pipes=Y;break;case 1:pe.pipes=[pe.pipes,Y];break;default:pe.pipes.push(Y)}pe.pipesCount+=1,m("pipe count=%d opts=%j",pe.pipesCount,K);var ve=(!K||K.end!==!1)&&Y!==t.stdout&&Y!==t.stderr?ue:ke;function ge(Pe,Re){m("onunpipe"),Pe===oe&&Re&&Re.hasUnpiped===!1&&(Re.hasUnpiped=!0,m("cleanup"),Y.removeListener("close",Fe),Y.removeListener("finish",Ve),Y.removeListener("drain",Te),Y.removeListener("error",Se),Y.removeListener("unpipe",ge),oe.removeListener("end",ue),oe.removeListener("end",ke),oe.removeListener("data",ye),Ee=!0,!pe.awaitDrain||Y._writableState&&!Y._writableState.needDrain||Te())}function ue(){m("onend"),Y.end()}pe.endEmitted?t.nextTick(ve):oe.once("end",ve),Y.on("unpipe",ge);var Te=(function(Pe){return function(){var Re=Pe._readableState;m("pipeOnDrain",Re.awaitDrain),Re.awaitDrain&&Re.awaitDrain--,Re.awaitDrain===0&&f(Pe,"data")&&(Re.flowing=!0,le(Pe))}})(oe);Y.on("drain",Te);var Ee=!1;function ye(Pe){m("ondata");var Re=Y.write(Pe);m("dest.write",Re),Re===!1&&((pe.pipesCount===1&&pe.pipes===Y||pe.pipesCount>1&&he(pe.pipes,Y)!==-1)&&!Ee&&(m("false write response, pause",pe.awaitDrain),pe.awaitDrain++),oe.pause())}function Se(Pe){m("onerror",Pe),ke(),Y.removeListener("error",Se),f(Y,"error")===0&&S(Y,Pe)}function Fe(){Y.removeListener("finish",Ve),ke()}function Ve(){m("onfinish"),Y.removeListener("close",Fe),ke()}function ke(){m("unpipe"),oe.unpipe(Y)}return oe.on("data",ye),(function(Pe,Re,Ye){if(typeof Pe.prependListener=="function")return Pe.prependListener(Re,Ye);Pe._events&&Pe._events[Re]?Array.isArray(Pe._events[Re])?Pe._events[Re].unshift(Ye):Pe._events[Re]=[Ye,Pe._events[Re]]:Pe.on(Re,Ye)})(Y,"error",Se),Y.once("close",Fe),Y.once("finish",Ve),Y.emit("pipe",oe),pe.flowing||(m("pipe resume"),oe.resume()),Y},N.prototype.unpipe=function(Y){var K=this._readableState,oe={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return Y&&Y!==K.pipes||(Y||(Y=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,Y&&Y.emit("unpipe",this,oe)),this;if(!Y){var pe=K.pipes,ve=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var ge=0;ge<ve;ge++)pe[ge].emit("unpipe",this,{hasUnpiped:!1});return this}var ue=he(K.pipes,Y);return ue===-1||(K.pipes.splice(ue,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),Y.emit("unpipe",this,oe)),this},N.prototype.on=function(Y,K){var oe=o.prototype.on.call(this,Y,K),pe=this._readableState;return Y==="data"?(pe.readableListening=this.listenerCount("readable")>0,pe.flowing!==!1&&this.resume()):Y==="readable"&&(pe.endEmitted||pe.readableListening||(pe.readableListening=pe.needReadable=!0,pe.flowing=!1,pe.emittedReadable=!1,m("on readable",pe.length,pe.reading),pe.length?F(this):pe.reading||t.nextTick(W,this))),oe},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(Y,K){var oe=o.prototype.removeListener.call(this,Y,K);return Y==="readable"&&t.nextTick(V,this),oe},N.prototype.removeAllListeners=function(Y){var K=o.prototype.removeAllListeners.apply(this,arguments);return Y!=="readable"&&Y!==void 0||t.nextTick(V,this),K},N.prototype.resume=function(){var Y=this._readableState;return Y.flowing||(m("resume"),Y.flowing=!Y.readableListening,(function(K,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,t.nextTick(Q,K,oe))})(this,Y)),Y.paused=!1,this},N.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(Y){var K=this,oe=this._readableState,pe=!1;for(var ve in Y.on("end",(function(){if(m("wrapped end"),oe.decoder&&!oe.ended){var ue=oe.decoder.end();ue&&ue.length&&K.push(ue)}K.push(null)})),Y.on("data",(function(ue){m("wrapped data"),oe.decoder&&(ue=oe.decoder.write(ue)),oe.objectMode&&ue==null||(oe.objectMode||ue&&ue.length)&&(K.push(ue)||(pe=!0,Y.pause()))})),Y)this[ve]===void 0&&typeof Y[ve]=="function"&&(this[ve]=(function(ue){return function(){return Y[ue].apply(Y,arguments)}})(ve));for(var ge=0;ge<M.length;ge++)Y.on(M[ge],this.emit.bind(this,M[ge]));return this._read=function(ue){m("wrapped _read",ue),pe&&(pe=!1,Y.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return y===void 0&&(y=r("./internal/streams/async_iterator")),y(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Y){this._readableState&&(this._readableState.flowing=Y)}}),N._fromList=G,Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(N.from=function(Y,K){return h===void 0&&(h=r("./internal/streams/from")),h(N,Y,K)})}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa: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(r,i,n){i.exports=m;var t=r("../errors").codes,c=t.ERR_METHOD_NOT_IMPLEMENTED,u=t.ERR_MULTIPLE_CALLBACK,f=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=t.ERR_TRANSFORM_WITH_LENGTH_0,l=r("./_stream_duplex");function g(y,h){var d=this._transformState;d.transforming=!1;var A=d.writecb;if(A===null)return this.emit("error",new u);d.writechunk=null,d.writecb=null,h!=null&&this.push(h),A(y);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function m(y){if(!(this instanceof m))return new m(y);l.call(this,y),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,y&&(typeof y.transform=="function"&&(this._transform=y.transform),typeof y.flush=="function"&&(this._flush=y.flush)),this.on("prefinish",p)}function p(){var y=this;typeof this._flush!="function"||this._readableState.destroyed?_(this,null,null):this._flush((function(h,d){_(y,h,d)}))}function _(y,h,d){if(h)return y.emit("error",h);if(d!=null&&y.push(d),y._writableState.length)throw new o;if(y._transformState.transforming)throw new f;return y.push(null)}r("inherits")(m,l),m.prototype.push=function(y,h){return this._transformState.needTransform=!1,l.prototype.push.call(this,y,h)},m.prototype._transform=function(y,h,d){d(new c("_transform()"))},m.prototype._write=function(y,h,d){var A=this._transformState;if(A.writecb=d,A.writechunk=y,A.writeencoding=h,!A.transforming){var v=this._readableState;(A.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},m.prototype._read=function(y){var h=this._transformState;h.writechunk===null||h.transforming?h.needTransform=!0:(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform))},m.prototype._destroy=function(y,h){l.prototype._destroy.call(this,y,(function(d){h(d)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(r,i,n){(function(t,c){(function(){function u(U){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(W,Q,le){var G=W.entry;for(W.entry=null;G;){var fe=G.callback;Q.pendingcb--,fe(le),G=G.next}Q.corkedRequestsFree.next=W})(V,U)}}var f;i.exports=N,N.WritableState=P;var o={deprecate:r("util-deprecate")},l=r("./internal/streams/stream"),g=r("buffer").Buffer,m=(c!==void 0?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},p,_=r("./internal/streams/destroy"),y=r("./internal/streams/state").getHighWaterMark,h=r("../errors").codes,d=h.ERR_INVALID_ARG_TYPE,A=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,w=h.ERR_STREAM_CANNOT_PIPE,x=h.ERR_STREAM_DESTROYED,C=h.ERR_STREAM_NULL_VALUES,k=h.ERR_STREAM_WRITE_AFTER_END,T=h.ERR_UNKNOWN_ENCODING,S=_.errorOrDestroy;function M(){}function P(U,V,W){f=f||r("./_stream_duplex"),U=U||{},typeof W!="boolean"&&(W=V instanceof f),this.objectMode=!!U.objectMode,W&&(this.objectMode=this.objectMode||!!U.writableObjectMode),this.highWaterMark=y(this,U,"writableHighWaterMark",W),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Q=U.decodeStrings===!1;this.decodeStrings=!Q,this.defaultEncoding=U.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(le){(function(G,fe){var ie=G._writableState,he=ie.sync,Y=ie.writecb;if(typeof Y!="function")throw new v;if((function(oe){oe.writing=!1,oe.writecb=null,oe.length-=oe.writelen,oe.writelen=0})(ie),fe)(function(oe,pe,ve,ge,ue){--pe.pendingcb,ve?(t.nextTick(ue,ge),t.nextTick(R,oe,pe),oe._writableState.errorEmitted=!0,S(oe,ge)):(ue(ge),oe._writableState.errorEmitted=!0,S(oe,ge),R(oe,pe))})(G,ie,he,fe,Y);else{var K=F(ie)||G.destroyed;K||ie.corked||ie.bufferProcessing||!ie.bufferedRequest||I(G,ie),he?t.nextTick(O,G,ie,K,Y):O(G,ie,K,Y)}})(V,le)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=U.emitClose!==!1,this.autoDestroy=!!U.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}function N(U){var V=this instanceof(f=f||r("./_stream_duplex"));if(!V&&!p.call(N,this))return new N(U);this._writableState=new P(U,this,V),this.writable=!0,U&&(typeof U.write=="function"&&(this._write=U.write),typeof U.writev=="function"&&(this._writev=U.writev),typeof U.destroy=="function"&&(this._destroy=U.destroy),typeof U.final=="function"&&(this._final=U.final)),l.call(this)}function B(U,V,W,Q,le,G,fe){V.writelen=Q,V.writecb=fe,V.writing=!0,V.sync=!0,V.destroyed?V.onwrite(new x("write")):W?U._writev(le,V.onwrite):U._write(le,G,V.onwrite),V.sync=!1}function O(U,V,W,Q){W||(function(le,G){G.length===0&&G.needDrain&&(G.needDrain=!1,le.emit("drain"))})(U,V),V.pendingcb--,Q(),R(U,V)}function I(U,V){V.bufferProcessing=!0;var W=V.bufferedRequest;if(U._writev&&W&&W.next){var Q=V.bufferedRequestCount,le=new Array(Q),G=V.corkedRequestsFree;G.entry=W;for(var fe=0,ie=!0;W;)le[fe]=W,W.isBuf||(ie=!1),W=W.next,fe+=1;le.allBuffers=ie,B(U,V,!0,V.length,le,"",G.finish),V.pendingcb++,V.lastBufferedRequest=null,G.next?(V.corkedRequestsFree=G.next,G.next=null):V.corkedRequestsFree=new u(V),V.bufferedRequestCount=0}else{for(;W;){var he=W.chunk,Y=W.encoding,K=W.callback;if(B(U,V,!1,V.objectMode?1:he.length,he,Y,K),W=W.next,V.bufferedRequestCount--,V.writing)break}W===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=W,V.bufferProcessing=!1}function F(U){return U.ending&&U.length===0&&U.bufferedRequest===null&&!U.finished&&!U.writing}function L(U,V){U._final((function(W){V.pendingcb--,W&&S(U,W),V.prefinished=!0,U.emit("prefinish"),R(U,V)}))}function R(U,V){var W=F(V);if(W&&((function(le,G){G.prefinished||G.finalCalled||(typeof le._final!="function"||G.destroyed?(G.prefinished=!0,le.emit("prefinish")):(G.pendingcb++,G.finalCalled=!0,t.nextTick(L,le,G)))})(U,V),V.pendingcb===0&&(V.finished=!0,U.emit("finish"),V.autoDestroy))){var Q=U._readableState;(!Q||Q.autoDestroy&&Q.endEmitted)&&U.destroy()}return W}r("inherits")(N,l),P.prototype.getBuffer=function(){for(var U=this.bufferedRequest,V=[];U;)V.push(U),U=U.next;return V},(function(){try{Object.defineProperty(P.prototype,"buffer",{get:o.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"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(U){return!!p.call(this,U)||this===N&&U&&U._writableState instanceof P}})):p=function(U){return U instanceof this},N.prototype.pipe=function(){S(this,new w)},N.prototype.write=function(U,V,W){var Q,le=this._writableState,G=!1,fe=!le.objectMode&&(Q=U,g.isBuffer(Q)||Q instanceof m);return fe&&!g.isBuffer(U)&&(U=(function(ie){return g.from(ie)})(U)),typeof V=="function"&&(W=V,V=null),fe?V="buffer":V||(V=le.defaultEncoding),typeof W!="function"&&(W=M),le.ending?(function(ie,he){var Y=new k;S(ie,Y),t.nextTick(he,Y)})(this,W):(fe||(function(ie,he,Y,K){var oe;return Y===null?oe=new C:typeof Y=="string"||he.objectMode||(oe=new d("chunk",["string","Buffer"],Y)),!oe||(S(ie,oe),t.nextTick(K,oe),!1)})(this,le,U,W))&&(le.pendingcb++,G=(function(ie,he,Y,K,oe,pe){if(!Y){var ve=(function(Ee,ye,Se){return Ee.objectMode||Ee.decodeStrings===!1||typeof ye!="string"||(ye=g.from(ye,Se)),ye})(he,K,oe);K!==ve&&(Y=!0,oe="buffer",K=ve)}var ge=he.objectMode?1:K.length;he.length+=ge;var ue=he.length<he.highWaterMark;if(ue||(he.needDrain=!0),he.writing||he.corked){var Te=he.lastBufferedRequest;he.lastBufferedRequest={chunk:K,encoding:oe,isBuf:Y,callback:pe,next:null},Te?Te.next=he.lastBufferedRequest:he.bufferedRequest=he.lastBufferedRequest,he.bufferedRequestCount+=1}else B(ie,he,!1,ge,K,oe,pe);return ue})(this,le,fe,U,V,W)),G},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var U=this._writableState;U.corked&&(U.corked--,U.writing||U.corked||U.bufferProcessing||!U.bufferedRequest||I(this,U))},N.prototype.setDefaultEncoding=function(U){if(typeof U=="string"&&(U=U.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((U+"").toLowerCase())>-1))throw new T(U);return this._writableState.defaultEncoding=U,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(U,V,W){W(new A("_write()"))},N.prototype._writev=null,N.prototype.end=function(U,V,W){var Q=this._writableState;return typeof U=="function"?(W=U,U=null,V=null):typeof V=="function"&&(W=V,V=null),U!=null&&this.write(U,V),Q.corked&&(Q.corked=1,this.uncork()),Q.ending||(function(le,G,fe){G.ending=!0,R(le,G),fe&&(G.finished?t.nextTick(fe):le.once("finish",fe)),G.ended=!0,le.writable=!1})(this,Q,W),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(U){this._writableState&&(this._writableState.destroyed=U)}}),N.prototype.destroy=_.destroy,N.prototype._undestroy=_.undestroy,N.prototype._destroy=function(U,V){V(U)}}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa: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(r,i,n){(function(t){(function(){var c;function u(x,C,k){return(C=(function(T){var S=(function(M,P){if(typeof M!="object"||M===null)return M;var N=M[Symbol.toPrimitive];if(N!==void 0){var B=N.call(M,P);if(typeof B!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(M)})(T,"string");return typeof S=="symbol"?S:String(S)})(C))in x?Object.defineProperty(x,C,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[C]=k,x}var f=r("./end-of-stream"),o=Symbol("lastResolve"),l=Symbol("lastReject"),g=Symbol("error"),m=Symbol("ended"),p=Symbol("lastPromise"),_=Symbol("handlePromise"),y=Symbol("stream");function h(x,C){return{value:x,done:C}}function d(x){var C=x[o];if(C!==null){var k=x[y].read();k!==null&&(x[p]=null,x[o]=null,x[l]=null,C(h(k,!1)))}}function A(x){t.nextTick(d,x)}var v=Object.getPrototypeOf((function(){})),w=Object.setPrototypeOf((u(c={get stream(){return this[y]},next:function(){var x=this,C=this[g];if(C!==null)return Promise.reject(C);if(this[m])return Promise.resolve(h(void 0,!0));if(this[y].destroyed)return new Promise((function(M,P){t.nextTick((function(){x[g]?P(x[g]):M(h(void 0,!0))}))}));var k,T=this[p];if(T)k=new Promise((function(M,P){return function(N,B){M.then((function(){P[m]?N(h(void 0,!0)):P[_](N,B)}),B)}})(T,this));else{var S=this[y].read();if(S!==null)return Promise.resolve(h(S,!1));k=new Promise(this[_])}return this[p]=k,k}},Symbol.asyncIterator,(function(){return this})),u(c,"return",(function(){var x=this;return new Promise((function(C,k){x[y].destroy(null,(function(T){T?k(T):C(h(void 0,!0))}))}))})),c),v);i.exports=function(x){var C,k=Object.create(w,(u(C={},y,{value:x,writable:!0}),u(C,o,{value:null,writable:!0}),u(C,l,{value:null,writable:!0}),u(C,g,{value:null,writable:!0}),u(C,m,{value:x._readableState.endEmitted,writable:!0}),u(C,_,{value:function(T,S){var M=k[y].read();M?(k[p]=null,k[o]=null,k[l]=null,T(h(M,!1))):(k[o]=T,k[l]=S)},writable:!0}),C));return k[p]=null,f(x,(function(T){if(T&&T.code!=="ERR_STREAM_PREMATURE_CLOSE"){var S=k[l];return S!==null&&(k[p]=null,k[o]=null,k[l]=null,S(T)),void(k[g]=T)}var M=k[o];M!==null&&(k[p]=null,k[o]=null,k[l]=null,M(h(void 0,!0))),k[m]=!0})),x.on("readable",A.bind(null,k)),k}}).call(this)}).call(this,r("_process"))},{"./end-of-stream":486,_process:467}],484:[function(r,i,n){function t(p,_){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(p);_&&(h=h.filter((function(d){return Object.getOwnPropertyDescriptor(p,d).enumerable}))),y.push.apply(y,h)}return y}function c(p){for(var _=1;_<arguments.length;_++){var y=arguments[_]!=null?arguments[_]:{};_%2?t(Object(y),!0).forEach((function(h){u(p,h,y[h])})):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(y)):t(Object(y)).forEach((function(h){Object.defineProperty(p,h,Object.getOwnPropertyDescriptor(y,h))}))}return p}function u(p,_,y){return(_=o(_))in p?Object.defineProperty(p,_,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[_]=y,p}function f(p,_){for(var y=0;y<_.length;y++){var h=_[y];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(p,o(h.key),h)}}function o(p){var _=(function(y,h){if(typeof y!="object"||y===null)return y;var d=y[Symbol.toPrimitive];if(d!==void 0){var A=d.call(y,h);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(y)})(p,"string");return typeof _=="symbol"?_:String(_)}var l=r("buffer").Buffer,g=r("util").inspect,m=g&&g.custom||"inspect";i.exports=(function(){function p(){(function(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")})(this,p),this.head=null,this.tail=null,this.length=0}var _,y;return _=p,(y=[{key:"push",value:function(h){var d={data:h,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(h){var d={data:h,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var d=this.head,A=""+d.data;d=d.next;)A+=h+d.data;return A}},{key:"concat",value:function(h){if(this.length===0)return l.alloc(0);for(var d,A,v,w=l.allocUnsafe(h>>>0),x=this.head,C=0;x;)d=x.data,A=w,v=C,l.prototype.copy.call(d,A,v),C+=x.data.length,x=x.next;return w}},{key:"consume",value:function(h,d){var A;return h<this.head.data.length?(A=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):A=h===this.head.data.length?this.shift():d?this._getString(h):this._getBuffer(h),A}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var d=this.head,A=1,v=d.data;for(h-=v.length;d=d.next;){var w=d.data,x=h>w.length?w.length:h;if(x===w.length?v+=w:v+=w.slice(0,h),(h-=x)==0){x===w.length?(++A,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=w.slice(x));break}++A}return this.length-=A,v}},{key:"_getBuffer",value:function(h){var d=l.allocUnsafe(h),A=this.head,v=1;for(A.data.copy(d),h-=A.data.length;A=A.next;){var w=A.data,x=h>w.length?w.length:h;if(w.copy(d,d.length-h,0,x),(h-=x)==0){x===w.length?(++v,A.next?this.head=A.next:this.head=this.tail=null):(this.head=A,A.data=w.slice(x));break}++v}return this.length-=v,d}},{key:m,value:function(h,d){return g(this,c(c({},d),{},{depth:0,customInspect:!1}))}}])&&f(_.prototype,y),Object.defineProperty(_,"prototype",{writable:!1}),p})()},{buffer:220,util:188}],485:[function(r,i,n){(function(t){(function(){function c(o,l){f(o,l),u(o)}function u(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function f(o,l){o.emit("error",l)}i.exports={destroy:function(o,l){var g=this,m=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return m||p?(l?l(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(f,this,o)):t.nextTick(f,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,(function(_){!l&&_?g._writableState?g._writableState.errorEmitted?t.nextTick(u,g):(g._writableState.errorEmitted=!0,t.nextTick(c,g,_)):t.nextTick(c,g,_):l?(t.nextTick(u,g),l(_)):t.nextTick(u,g)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(o,l){var g=o._readableState,m=o._writableState;g&&g.autoDestroy||m&&m.autoDestroy?o.destroy(l):o.emit("error",l)}}}).call(this)}).call(this,r("_process"))},{_process:467}],486:[function(r,i,n){var t=r("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function c(){}i.exports=function u(f,o,l){if(typeof o=="function")return u(f,null,o);o||(o={}),l=(function(x){var C=!1;return function(){if(!C){C=!0;for(var k=arguments.length,T=new Array(k),S=0;S<k;S++)T[S]=arguments[S];x.apply(this,T)}}})(l||c);var g=o.readable||o.readable!==!1&&f.readable,m=o.writable||o.writable!==!1&&f.writable,p=function(){f.writable||y()},_=f._writableState&&f._writableState.finished,y=function(){m=!1,_=!0,g||l.call(f)},h=f._readableState&&f._readableState.endEmitted,d=function(){g=!1,h=!0,m||l.call(f)},A=function(x){l.call(f,x)},v=function(){var x;return g&&!h?(f._readableState&&f._readableState.ended||(x=new t),l.call(f,x)):m&&!_?(f._writableState&&f._writableState.ended||(x=new t),l.call(f,x)):void 0},w=function(){f.req.on("finish",y)};return(function(x){return x.setHeader&&typeof x.abort=="function"})(f)?(f.on("complete",y),f.on("abort",v),f.req?w():f.on("request",w)):m&&!f._writableState&&(f.on("end",p),f.on("close",p)),f.on("end",d),f.on("finish",y),o.error!==!1&&f.on("error",A),f.on("close",v),function(){f.removeListener("complete",y),f.removeListener("abort",v),f.removeListener("request",w),f.req&&f.req.removeListener("finish",y),f.removeListener("end",p),f.removeListener("close",p),f.removeListener("finish",y),f.removeListener("end",d),f.removeListener("error",A),f.removeListener("close",v)}}},{"../../../errors":477}],487:[function(r,i,n){i.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(r,i,n){var t,c=r("../../../errors").codes,u=c.ERR_MISSING_ARGS,f=c.ERR_STREAM_DESTROYED;function o(_){if(_)throw _}function l(_,y,h,d){d=(function(w){var x=!1;return function(){x||(x=!0,w.apply(void 0,arguments))}})(d);var A=!1;_.on("close",(function(){A=!0})),t===void 0&&(t=r("./end-of-stream")),t(_,{readable:y,writable:h},(function(w){if(w)return d(w);A=!0,d()}));var v=!1;return function(w){if(!A&&!v)return v=!0,(function(x){return x.setHeader&&typeof x.abort=="function"})(_)?_.abort():typeof _.destroy=="function"?_.destroy():void d(w||new f("pipe"))}}function g(_){_()}function m(_,y){return _.pipe(y)}function p(_){return _.length?typeof _[_.length-1]!="function"?o:_.pop():o}i.exports=function(){for(var _=arguments.length,y=new Array(_),h=0;h<_;h++)y[h]=arguments[h];var d,A=p(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new u("streams");var v=y.map((function(w,x){var C=x<y.length-1;return l(w,C,x>0,(function(k){d||(d=k),k&&v.forEach(g),C||(v.forEach(g),A(d))}))}));return y.reduce(m)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(r,i,n){var t=r("../../../errors").codes.ERR_INVALID_OPT_VALUE;i.exports={getHighWaterMark:function(c,u,f,o){var l=(function(g,m,p){return g.highWaterMark!=null?g.highWaterMark:m?g[p]:null})(u,o,f);if(l!=null){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new t(o?f:"highWaterMark",l);return Math.floor(l)}return c.objectMode?16:16384}}},{"../../../errors":477}],490:[function(r,i,n){i.exports=r("events").EventEmitter},{events:422}],491:[function(r,i,n){(n=i.exports=r("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=r("./lib/_stream_writable.js"),n.Duplex=r("./lib/_stream_duplex.js"),n.Transform=r("./lib/_stream_transform.js"),n.PassThrough=r("./lib/_stream_passthrough.js"),n.finished=r("./lib/internal/streams/end-of-stream.js"),n.pipeline=r("./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(r,i,n){var t=(function(c){var u=Object.prototype,f=u.hasOwnProperty,o=Object.defineProperty||function(R,U,V){R[U]=V.value},l=typeof Symbol=="function"?Symbol:{},g=l.iterator||"@@iterator",m=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function _(R,U,V){return Object.defineProperty(R,U,{value:V,enumerable:!0,configurable:!0,writable:!0}),R[U]}try{_({},"")}catch{_=function(U,V,W){return U[V]=W}}function y(R,U,V,W){var Q=U&&U.prototype instanceof A?U:A,le=Object.create(Q.prototype),G=new I(W||[]);return o(le,"_invoke",{value:P(R,V,G)}),le}function h(R,U,V){try{return{type:"normal",arg:R.call(U,V)}}catch(W){return{type:"throw",arg:W}}}c.wrap=y;var d={};function A(){}function v(){}function w(){}var x={};_(x,g,(function(){return this}));var C=Object.getPrototypeOf,k=C&&C(C(F([])));k&&k!==u&&f.call(k,g)&&(x=k);var T=w.prototype=A.prototype=Object.create(x);function S(R){["next","throw","return"].forEach((function(U){_(R,U,(function(V){return this._invoke(U,V)}))}))}function M(R,U){var V;o(this,"_invoke",{value:function(W,Q){function le(){return new U((function(G,fe){(function ie(he,Y,K,oe){var pe=h(R[he],R,Y);if(pe.type!=="throw"){var ve=pe.arg,ge=ve.value;return ge&&typeof ge=="object"&&f.call(ge,"__await")?U.resolve(ge.__await).then((function(ue){ie("next",ue,K,oe)}),(function(ue){ie("throw",ue,K,oe)})):U.resolve(ge).then((function(ue){ve.value=ue,K(ve)}),(function(ue){return ie("throw",ue,K,oe)}))}oe(pe.arg)})(W,Q,G,fe)}))}return V=V?V.then(le,le):le()}})}function P(R,U,V){var W="suspendedStart";return function(Q,le){if(W==="executing")throw new Error("Generator is already running");if(W==="completed"){if(Q==="throw")throw le;return L()}for(V.method=Q,V.arg=le;;){var G=V.delegate;if(G){var fe=N(G,V);if(fe){if(fe===d)continue;return fe}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(W==="suspendedStart")throw W="completed",V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);W="executing";var ie=h(R,U,V);if(ie.type==="normal"){if(W=V.done?"completed":"suspendedYield",ie.arg===d)continue;return{value:ie.arg,done:V.done}}ie.type==="throw"&&(W="completed",V.method="throw",V.arg=ie.arg)}}}function N(R,U){var V=U.method,W=R.iterator[V];if(W===void 0)return U.delegate=null,V==="throw"&&R.iterator.return&&(U.method="return",U.arg=void 0,N(R,U),U.method==="throw")||V!=="return"&&(U.method="throw",U.arg=new TypeError("The iterator does not provide a '"+V+"' method")),d;var Q=h(W,R.iterator,U.arg);if(Q.type==="throw")return U.method="throw",U.arg=Q.arg,U.delegate=null,d;var le=Q.arg;return le?le.done?(U[R.resultName]=le.value,U.next=R.nextLoc,U.method!=="return"&&(U.method="next",U.arg=void 0),U.delegate=null,d):le:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,d)}function B(R){var U={tryLoc:R[0]};1 in R&&(U.catchLoc=R[1]),2 in R&&(U.finallyLoc=R[2],U.afterLoc=R[3]),this.tryEntries.push(U)}function O(R){var U=R.completion||{};U.type="normal",delete U.arg,R.completion=U}function I(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(B,this),this.reset(!0)}function F(R){if(R){var U=R[g];if(U)return U.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var V=-1,W=function Q(){for(;++V<R.length;)if(f.call(R,V))return Q.value=R[V],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return W.next=W}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=w,o(T,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:v,configurable:!0}),v.displayName=_(w,p,"GeneratorFunction"),c.isGeneratorFunction=function(R){var U=typeof R=="function"&&R.constructor;return!!U&&(U===v||(U.displayName||U.name)==="GeneratorFunction")},c.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,w):(R.__proto__=w,_(R,p,"GeneratorFunction")),R.prototype=Object.create(T),R},c.awrap=function(R){return{__await:R}},S(M.prototype),_(M.prototype,m,(function(){return this})),c.AsyncIterator=M,c.async=function(R,U,V,W,Q){Q===void 0&&(Q=Promise);var le=new M(y(R,U,V,W),Q);return c.isGeneratorFunction(U)?le:le.next().then((function(G){return G.done?G.value:le.next()}))},S(T),_(T,p,"Generator"),_(T,g,(function(){return this})),_(T,"toString",(function(){return"[object Generator]"})),c.keys=function(R){var U=Object(R),V=[];for(var W in U)V.push(W);return V.reverse(),function Q(){for(;V.length;){var le=V.pop();if(le in U)return Q.value=le,Q.done=!1,Q}return Q.done=!0,Q}},c.values=F,I.prototype={constructor:I,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!R)for(var U in this)U.charAt(0)==="t"&&f.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=void 0)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var U=this;function V(ie,he){return le.type="throw",le.arg=R,U.next=ie,he&&(U.method="next",U.arg=void 0),!!he}for(var W=this.tryEntries.length-1;W>=0;--W){var Q=this.tryEntries[W],le=Q.completion;if(Q.tryLoc==="root")return V("end");if(Q.tryLoc<=this.prev){var G=f.call(Q,"catchLoc"),fe=f.call(Q,"finallyLoc");if(G&&fe){if(this.prev<Q.catchLoc)return V(Q.catchLoc,!0);if(this.prev<Q.finallyLoc)return V(Q.finallyLoc)}else if(G){if(this.prev<Q.catchLoc)return V(Q.catchLoc,!0)}else{if(!fe)throw new Error("try statement without catch or finally");if(this.prev<Q.finallyLoc)return V(Q.finallyLoc)}}}},abrupt:function(R,U){for(var V=this.tryEntries.length-1;V>=0;--V){var W=this.tryEntries[V];if(W.tryLoc<=this.prev&&f.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var Q=W;break}}Q&&(R==="break"||R==="continue")&&Q.tryLoc<=U&&U<=Q.finallyLoc&&(Q=null);var le=Q?Q.completion:{};return le.type=R,le.arg=U,Q?(this.method="next",this.next=Q.finallyLoc,d):this.complete(le)},complete:function(R,U){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&U&&(this.next=U),d},finish:function(R){for(var U=this.tryEntries.length-1;U>=0;--U){var V=this.tryEntries[U];if(V.finallyLoc===R)return this.complete(V.completion,V.afterLoc),O(V),d}},catch:function(R){for(var U=this.tryEntries.length-1;U>=0;--U){var V=this.tryEntries[U];if(V.tryLoc===R){var W=V.completion;if(W.type==="throw"){var Q=W.arg;O(V)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function(R,U,V){return this.delegate={iterator:F(R),resultName:U,nextLoc:V},this.method==="next"&&(this.arg=void 0),d}},c})(typeof i=="object"?i.exports:{});try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},{}],493:[function(r,i,n){var t=r("buffer").Buffer,c=r("inherits"),u=r("hash-base"),f=new Array(16),o=[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],l=[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],g=[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],m=[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],p=[0,1518500249,1859775393,2400959708,2840853838],_=[1352829926,1548603684,1836072691,2053994217,0];function y(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(C,k){return C<<k|C>>>32-k}function d(C,k,T,S,M,P,N,B){return h(C+(k^T^S)+P+N|0,B)+M|0}function A(C,k,T,S,M,P,N,B){return h(C+(k&T|~k&S)+P+N|0,B)+M|0}function v(C,k,T,S,M,P,N,B){return h(C+((k|~T)^S)+P+N|0,B)+M|0}function w(C,k,T,S,M,P,N,B){return h(C+(k&S|T&~S)+P+N|0,B)+M|0}function x(C,k,T,S,M,P,N,B){return h(C+(k^(T|~S))+P+N|0,B)+M|0}c(y,u),y.prototype._update=function(){for(var C=f,k=0;k<16;++k)C[k]=this._block.readInt32LE(4*k);for(var T=0|this._a,S=0|this._b,M=0|this._c,P=0|this._d,N=0|this._e,B=0|this._a,O=0|this._b,I=0|this._c,F=0|this._d,L=0|this._e,R=0;R<80;R+=1){var U,V;R<16?(U=d(T,S,M,P,N,C[o[R]],p[0],g[R]),V=x(B,O,I,F,L,C[l[R]],_[0],m[R])):R<32?(U=A(T,S,M,P,N,C[o[R]],p[1],g[R]),V=w(B,O,I,F,L,C[l[R]],_[1],m[R])):R<48?(U=v(T,S,M,P,N,C[o[R]],p[2],g[R]),V=v(B,O,I,F,L,C[l[R]],_[2],m[R])):R<64?(U=w(T,S,M,P,N,C[o[R]],p[3],g[R]),V=A(B,O,I,F,L,C[l[R]],_[3],m[R])):(U=x(T,S,M,P,N,C[o[R]],p[4],g[R]),V=d(B,O,I,F,L,C[l[R]],_[4],m[R])),T=N,N=P,P=h(M,10),M=S,S=U,B=L,L=F,F=h(I,10),I=O,O=V}var W=this._b+M+F|0;this._b=this._c+P+L|0,this._c=this._d+N+B|0,this._d=this._e+T+O|0,this._e=this._a+S+I|0,this._a=W},y.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 C=t.alloc?t.alloc(20):new t(20);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C.writeInt32LE(this._e,16),C},i.exports=y},{buffer:220,"hash-base":425,inherits:440}],494:[function(r,i,n){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var t=r("buffer"),c=t.Buffer;function u(o,l){for(var g in o)l[g]=o[g]}function f(o,l,g){return c(o,l,g)}c.from&&c.alloc&&c.allocUnsafe&&c.allocUnsafeSlow?i.exports=t:(u(t,n),n.Buffer=f),f.prototype=Object.create(c.prototype),u(c,f),f.from=function(o,l,g){if(typeof o=="number")throw new TypeError("Argument must not be a number");return c(o,l,g)},f.alloc=function(o,l,g){if(typeof o!="number")throw new TypeError("Argument must be a number");var m=c(o);return l!==void 0?typeof g=="string"?m.fill(l,g):m.fill(l):m.fill(0),m},f.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return c(o)},f.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(o)}},{buffer:220}],495:[function(r,i,n){(function(t){(function(){var c,u=r("buffer"),f=u.Buffer,o={};for(c in u)u.hasOwnProperty(c)&&c!=="SlowBuffer"&&c!=="Buffer"&&(o[c]=u[c]);var l=o.Buffer={};for(c in f)f.hasOwnProperty(c)&&c!=="allocUnsafe"&&c!=="allocUnsafeSlow"&&(l[c]=f[c]);if(o.Buffer.prototype=f.prototype,l.from&&l.from!==Uint8Array.from||(l.from=function(g,m,p){if(typeof g=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof g);if(g&&g.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 g);return f(g,m,p)}),l.alloc||(l.alloc=function(g,m,p){if(typeof g!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof g);if(g<0||g>=2*(1<<30))throw new RangeError('The value "'+g+'" is invalid for option "size"');var _=f(g);return m&&m.length!==0?typeof p=="string"?_.fill(m,p):_.fill(m):_.fill(0),_}),!o.kStringMaxLength)try{o.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch{}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),i.exports=o}).call(this)}).call(this,r("_process"))},{_process:467,buffer:220}],496:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0});const t=r("xmlchars/xml/1.0/ed5"),c=r("xmlchars/xml/1.1/ed2"),u=r("xmlchars/xmlns/1.0/ed3");var f=t.isS,o=t.isChar,l=t.isNameStartChar,g=t.isNameChar,m=t.S_LIST,p=t.NAME_RE,_=c.isChar,y=u.isNCNameStartChar,h=u.isNCNameChar,d=u.NC_NAME_RE;const A="http://www.w3.org/XML/1998/namespace",v="http://www.w3.org/2000/xmlns/",w={__proto__:null,xml:A,xmlns:v},x={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},C=F=>F===34||F===39,k=[34,39],T=[...k,91,62],S=[...k,60,93],M=[61,63,...m],P=[...m,62,38,60];function N(F,L,R){switch(L){case"xml":R!==A&&F.fail(`xml prefix must be bound to ${A}.`);break;case"xmlns":R!==v&&F.fail(`xmlns prefix must be bound to ${v}.`)}switch(R){case v:F.fail(L===""?`the default namespace may not be set to ${R}.`:`may not assign a prefix (even "xmlns") to the URI ${v}.`);break;case A:switch(L){case"xml":break;case"":F.fail(`the default namespace may not be set to ${R}.`);break;default:F.fail("may not assign the xml namespace to another prefix.")}}}const B=F=>d.test(F),O=F=>p.test(F);n.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const I={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"};n.SaxesParser=class{constructor(F){this.opt=F??{},this.fragmentOpt=!!this.opt.fragment;const L=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,L){this.nameStartCheck=y,this.nameCheck=h,this.isName=B,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},w);const R=this.opt.additionalNamespaces;R!=null&&((function(U,V){for(const W of Object.keys(V))N(U,W,V[W])})(this,R),Object.assign(this.ns,R))}else this.nameStartCheck=l,this.nameCheck=g,this.isName=O,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()}get closed(){return this._closed}_init(){var F;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=0,this.attribList=[];const{fragmentOpt:L}=this;this.state=L?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=L,this.xmlDeclPossible=!L,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:R}=this.opt;if(R===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");R="1.0"}this.setXMLVersion(R),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(x),(F=this.readyHandler)===null||F===void 0||F.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(F,L){this[I[F]]=L}off(F){this[I[F]]=void 0}makeError(F){var L;let R=(L=this.fileName)!==null&&L!==void 0?L:"";return this.trackPosition&&(R.length>0&&(R+=":"),R+=`${this.line}:${this.column}`),R.length>0&&(R+=": "),new Error(R+F)}fail(F){const L=this.makeError(F),R=this.errorHandler;if(R===void 0)throw L;return R(L),this}write(F){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let L=!1;F===null?(L=!0,F=""):typeof F=="object"&&(F=F.toString()),this.carriedFromPrevious!==void 0&&(F=`${this.carriedFromPrevious}${F}`,this.carriedFromPrevious=void 0);let R=F.length;const U=F.charCodeAt(R-1);!L&&(U===13||U>=55296&&U<=56319)&&(this.carriedFromPrevious=F[R-1],R--,F=F.slice(0,R));const{stateTable:V}=this;for(this.chunk=F,this.i=0;this.i<R;)V[this.state].call(this);return this.chunkPosition+=R,L?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:F,i:L}=this;if(this.prevI=L,this.i=L+1,L>=F.length)return-1;const R=F.charCodeAt(L);if(this.column++,R<55296){if(R>=32||R===9)return R;switch(R){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return F.charCodeAt(L+1)===10&&(this.i=L+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),R}}if(R>56319)return R>=57344&&R<=65533||this.fail("disallowed character."),R;const U=65536+1024*(R-55296)+(F.charCodeAt(L+1)-56320);return this.i=L+2,U>1114111&&this.fail("disallowed character."),U}getCode11(){const{chunk:F,i:L}=this;if(this.prevI=L,this.i=L+1,L>=F.length)return-1;const R=F.charCodeAt(L);if(this.column++,R<55296){if(R>31&&R<127||R>159&&R!==8232||R===9)return R;switch(R){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const V=F.charCodeAt(L+1);V!==10&&V!==133||(this.i=L+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),R}}if(R>56319)return R>=57344&&R<=65533||this.fail("disallowed character."),R;const U=65536+1024*(R-55296)+(F.charCodeAt(L+1)-56320);return this.i=L+2,U>1114111&&this.fail("disallowed character."),U}getCodeNorm(){const F=this.getCode();return F===-2?10:F}unget(){this.i=this.prevI,this.column--}captureTo(F){let{i:L}=this;const{chunk:R}=this;for(;;){const U=this.getCode(),V=U===-2,W=V?10:U;if(W===-1||F.includes(W))return this.text+=R.slice(L,this.prevI),W;V&&(this.text+=R.slice(L,this.prevI)+`
`,L=this.i)}}captureToChar(F){let{i:L}=this;const{chunk:R}=this;for(;;){let U=this.getCode();switch(U){case-2:this.text+=R.slice(L,this.prevI)+`
`,L=this.i,U=10;break;case-1:return this.text+=R.slice(L),!1}if(U===F)return this.text+=R.slice(L,this.prevI),!0}}captureNameChars(){const{chunk:F,i:L}=this;for(;;){const R=this.getCode();if(R===-1)return this.name+=F.slice(L),-1;if(!g(R))return this.name+=F.slice(L,this.prevI),R===-2?10:R}}skipSpaces(){for(;;){const F=this.getCodeNorm();if(F===-1||!f(F))return F}}setXMLVersion(F){this.currentXMLVersion=F,F==="1.0"?(this.isChar=o,this.getCode=this.getCode10):(this.isChar=_,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const F=this.i,L=this.skipSpaces();switch(this.prevI!==F&&(this.xmlDeclPossible=!1),L){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var F;const L=this.captureTo(T);switch(L){case 62:(F=this.doctypeHandler)===null||F===void 0||F.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(L),L===91?this.state=4:C(L)&&(this.state=3,this.q=L)}}sDoctypeQuote(){const F=this.q;this.captureToChar(F)&&(this.text+=String.fromCodePoint(F),this.q=null,this.state=2)}sDTD(){const F=this.captureTo(S);F!==-1&&(this.text+=String.fromCodePoint(F),F===93?this.state=2:F===60?this.state=6:C(F)&&(this.state=5,this.q=F))}sDTDQuoted(){const F=this.q;this.captureToChar(F)&&(this.text+=String.fromCodePoint(F),this.state=4,this.q=null)}sDTDOpenWaka(){const F=this.getCodeNorm();switch(this.text+=String.fromCodePoint(F),F){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const F=String.fromCodePoint(this.getCodeNorm()),L=this.openWakaBang+=F;this.text+=F,L!=="-"&&(this.state=L==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const F=this.getCodeNorm();this.text+=String.fromCodePoint(F),this.state=F===45?10:8}sDTDCommentEnded(){const F=this.getCodeNorm();this.text+=String.fromCodePoint(F),F===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const F=this.getCodeNorm();this.text+=String.fromCodePoint(F),F===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:F}=this;const{chunk:L}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=L.slice(F,this.prevI)+`
`,F=this.i;break;case 59:{const{entityReturnState:R}=this,U=this.entity+L.slice(F,this.prevI);let V;this.state=R,U===""?(this.fail("empty entity name."),V="&;"):(V=this.parseEntity(U),this.entity=""),R===13&&this.textHandler===void 0||(this.text+=V);break e}case-1:this.entity+=L.slice(F);break e}}sOpenWaka(){const F=this.getCode();if(l(F))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(F){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){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=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var F;const L=this.getCodeNorm();L===45?(this.state=19,(F=this.commentHandler)===null||F===void 0||F.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(L),this.state=17)}sCommentEnded(){const F=this.getCodeNorm();F!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(F),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const F=this.getCodeNorm();F===93?this.state=22:(this.text+="]"+String.fromCodePoint(F),this.state=20)}sCDataEnding2(){var F;const L=this.getCodeNorm();switch(L){case 62:(F=this.cdataHandler)===null||F===void 0||F.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(L),this.state=20}}sPIFirstChar(){const F=this.getCodeNorm();this.nameStartCheck(F)?(this.piTarget+=String.fromCodePoint(F),this.state=24):F===63||f(F)?(this.fail("processing instruction without a target."),this.state=F===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(F),this.state=24)}sPIRest(){const{chunk:F,i:L}=this;for(;;){const R=this.getCodeNorm();if(R===-1)return void(this.piTarget+=F.slice(L));if(!this.nameCheck(R)){this.piTarget+=F.slice(L,this.prevI);const U=R===63;U||f(R)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=U?33:27):this.state=U?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(R));break}}}sPIBody(){if(this.text.length===0){const F=this.getCodeNorm();F===63?this.state=26:f(F)||(this.text=String.fromCodePoint(F))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var F;const L=this.getCodeNorm();if(L===62){const{piTarget:R}=this;R.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(F=this.piHandler)===null||F===void 0||F.call(this,{target:R,body:this.text}),this.piTarget=this.text="",this.state=13}else L===63?this.text+="?":(this.text+="?"+String.fromCodePoint(L),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const F=this.skipSpaces();F!==63?F!==-1&&(this.state=28,this.name=String.fromCodePoint(F)):this.state=33}sXMLDeclName(){const F=this.captureTo(M);if(F===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(f(F)||F===61){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 ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=F===61?30:29}}sXMLDeclEq(){const F=this.getCodeNorm();if(F===63)return this.state=33,void this.fail("XML declaration is incomplete.");f(F)||(F!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const F=this.getCodeNorm();if(F===63)return this.state=33,void this.fail("XML declaration is incomplete.");f(F)||(C(F)?this.q=F:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const F=this.captureTo([this.q,63]);if(F===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(F===-1)return;const L=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const R=L;this.xmlDecl.version=R,/^1\.[0-9]+$/.test(R)?this.opt.forceXMLVersion||this.setXMLVersion(R):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(L)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=L;break;case"standalone":L!=="yes"&&L!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=L}this.name="",this.state=32}sXMLDeclSeparator(){const F=this.getCodeNorm();F!==63?(f(F)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var F;this.getCodeNorm()===62?(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."),(F=this.xmldeclHandler)===null||F===void 0||F.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var F;const L=this.captureNameChars();if(L===-1)return;const R=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=R.ns=Object.create(null)),(F=this.openTagStartHandler)===null||F===void 0||F.call(this,R),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),L){case 62:this.openTag();break;case 47:this.state=35;break;default:f(L)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const F=this.skipSpaces();F!==-1&&(l(F)?(this.unget(),this.state=37):F===62?this.openTag():F===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const F=this.captureNameChars();F===61?this.state=39:f(F)?this.state=38:F===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):F!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const F=this.skipSpaces();switch(F){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",F===62?this.openTag():l(F)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const F=this.getCodeNorm();C(F)?(this.q=F,this.state=40):f(F)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:F,chunk:L}=this;let{i:R}=this;for(;;)switch(this.getCode()){case F:return this.pushAttrib(this.name,this.text+L.slice(R,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=L.slice(R,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=L.slice(R,this.prevI)+" ",R=this.i;break;case 60:return this.text+=L.slice(R,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=L.slice(R))}}sAttribValueClosed(){const F=this.getCodeNorm();f(F)?this.state=36:F===62?this.openTag():F===47?this.state=35:l(F)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const F=this.captureTo(P);switch(F){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",F===62?this.openTag():this.state=36}}sCloseTag(){const F=this.captureNameChars();F===62?this.closeTag():f(F)?this.state=44:F!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:F,forbiddenState:L}=this;const{chunk:R,textHandler:U}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,U!==void 0){const{text:V}=this,W=R.slice(F,this.prevI);V.length!==0?(U(V+W),this.text=""):W.length!==0&&U(W)}L=0;break e;case 38:this.state=14,this.entityReturnState=13,U!==void 0&&(this.text+=R.slice(F,this.prevI)),L=0;break e;case 93:switch(L){case 0:L=1;break;case 1:L=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:L===2&&this.fail('the string "]]>" is disallowed in char data.'),L=0;break;case-2:U!==void 0&&(this.text+=R.slice(F,this.prevI)+`
`),F=this.i,L=0;break;case-1:U!==void 0&&(this.text+=R.slice(F));break e;default:L=0}this.forbiddenState=L}handleTextOutsideRoot(){let{i:F}=this;const{chunk:L,textHandler:R}=this;let U=!1;e:for(;;){const V=this.getCode();switch(V){case 60:if(this.state=15,R!==void 0){const{text:W}=this,Q=L.slice(F,this.prevI);W.length!==0?(R(W+Q),this.text=""):Q.length!==0&&R(Q)}break e;case 38:this.state=14,this.entityReturnState=13,R!==void 0&&(this.text+=L.slice(F,this.prevI)),U=!0;break e;case-2:R!==void 0&&(this.text+=L.slice(F,this.prevI)+`
`),F=this.i;break;case-1:R!==void 0&&(this.text+=L.slice(F));break e;default:f(V)||(U=!0)}}U&&(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))}pushAttribNS(F,L){var R;const{prefix:U,local:V}=this.qname(F),W={name:F,prefix:U,local:V,value:L};if(this.attribList.push(W),(R=this.attributeHandler)===null||R===void 0||R.call(this,W),U==="xmlns"){const Q=L.trim();this.currentXMLVersion==="1.0"&&Q===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[V]=Q,N(this,V,Q)}else if(F==="xmlns"){const Q=L.trim();this.topNS[""]=Q,N(this,"",Q)}}pushAttribPlain(F,L){var R;const U={name:F,value:L};this.attribList.push(U),(R=this.attributeHandler)===null||R===void 0||R.call(this,U)}end(){var F,L;this.sawRoot||this.fail("document must contain a root element.");const{tags:R}=this;for(;R.length>0;){const V=R.pop();this.fail("unclosed tag: "+V.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:U}=this;return U.length!==0&&((F=this.textHandler)===null||F===void 0||F.call(this,U),this.text=""),this._closed=!0,(L=this.endHandler)===null||L===void 0||L.call(this),this._init(),this}resolve(F){var L,R;let U=this.topNS[F];if(U!==void 0)return U;const{tags:V}=this;for(let W=V.length-1;W>=0;W--)if(U=V[W].ns[F],U!==void 0)return U;return U=this.ns[F],U!==void 0?U:(R=(L=this.opt).resolvePrefix)===null||R===void 0?void 0:R.call(L,F)}qname(F){const L=F.indexOf(":");if(L===-1)return{prefix:"",local:F};const R=F.slice(L+1),U=F.slice(0,L);return(U===""||R===""||R.includes(":"))&&this.fail(`malformed name: ${F}.`),{prefix:U,local:R}}processAttribsNS(){var F;const{attribList:L}=this,R=this.tag;{const{prefix:W,local:Q}=this.qname(R.name);R.prefix=W,R.local=Q;const le=R.uri=(F=this.resolve(W))!==null&&F!==void 0?F:"";W!==""&&(W==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),le===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(W)}.`),R.uri=W))}if(L.length===0)return;const{attributes:U}=R,V=new Set;for(const W of L){const{name:Q,prefix:le,local:G}=W;let fe,ie;le===""?(fe=Q==="xmlns"?v:"",ie=Q):(fe=this.resolve(le),fe===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(le)}.`),fe=le),ie=`{${fe}}${G}`),V.has(ie)&&this.fail(`duplicate attribute: ${ie}.`),V.add(ie),W.uri=fe,U[Q]=W}this.attribList=[]}processAttribsPlain(){const{attribList:F}=this,L=this.tag.attributes;for(const{name:R,value:U}of F)L[R]!==void 0&&this.fail(`duplicate attribute: ${R}.`),L[R]=U;this.attribList=[]}openTag(){var F;this.processAttribs();const{tags:L}=this,R=this.tag;R.isSelfClosing=!1,(F=this.openTagHandler)===null||F===void 0||F.call(this,R),L.push(R),this.state=13,this.name=""}openSelfClosingTag(){var F,L,R;this.processAttribs();const{tags:U}=this,V=this.tag;V.isSelfClosing=!0,(F=this.openTagHandler)===null||F===void 0||F.call(this,V),(L=this.closeTagHandler)===null||L===void 0||L.call(this,V),(this.tag=(R=U[U.length-1])!==null&&R!==void 0?R:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:F,name:L}=this;if(this.state=13,this.name="",L==="")return this.fail("weird empty close tag."),void(this.text+="</>");const R=this.closeTagHandler;let U=F.length;for(;U-- >0;){const V=this.tag=F.pop();if(this.topNS=V.ns,R==null||R(V),V.name===L)break;this.fail("unexpected close tag.")}U===0?this.closedRoot=!0:U<0&&(this.fail(`unmatched closing tag: ${L}.`),this.text+=`</${L}>`)}parseEntity(F){if(F[0]!=="#"){const R=this.ENTITIES[F];return R!==void 0?R:(this.fail(this.isName(F)?"undefined entity.":"disallowed character in entity name."),`&${F};`)}let L=NaN;return F[1]==="x"&&/^#x[0-9a-f]+$/i.test(F)?L=parseInt(F.slice(2),16):/^#[0-9]+$/.test(F)&&(L=parseInt(F.slice(1),10)),this.isChar(L)?String.fromCodePoint(L):(this.fail("malformed character entity."),`&${F};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(r,i,n){var t=r("safe-buffer").Buffer;function c(u,f){this._block=t.alloc(u),this._finalSize=f,this._blockSize=u,this._len=0}c.prototype.update=function(u,f){typeof u=="string"&&(f=f||"utf8",u=t.from(u,f));for(var o=this._block,l=this._blockSize,g=u.length,m=this._len,p=0;p<g;){for(var _=m%l,y=Math.min(g-p,l-_),h=0;h<y;h++)o[_+h]=u[p+h];p+=y,(m+=y)%l==0&&this._update(o)}return this._len+=g,this},c.prototype.digest=function(u){var f=this._len%this._blockSize;this._block[f]=128,this._block.fill(0,f+1),f>=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var l=(4294967295&o)>>>0,g=(o-l)/4294967296;this._block.writeUInt32BE(g,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var m=this._hash();return u?m.toString(u):m},c.prototype._update=function(){throw new Error("_update must be implemented by subclass")},i.exports=c},{"safe-buffer":494}],498:[function(r,i,n){var t=i.exports=function(c){c=c.toLowerCase();var u=t[c];if(!u)throw new Error(c+" is not supported (we accept pull requests)");return new u};t.sha=r("./sha"),t.sha1=r("./sha1"),t.sha224=r("./sha224"),t.sha256=r("./sha256"),t.sha384=r("./sha384"),t.sha512=r("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(r,i,n){var t=r("inherits"),c=r("./hash"),u=r("safe-buffer").Buffer,f=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,c.call(this,64,56)}function g(p){return p<<30|p>>>2}function m(p,_,y,h){return p===0?_&y|~_&h:p===2?_&y|_&h|y&h:_^y^h}t(l,c),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(p){for(var _,y=this._w,h=0|this._a,d=0|this._b,A=0|this._c,v=0|this._d,w=0|this._e,x=0;x<16;++x)y[x]=p.readInt32BE(4*x);for(;x<80;++x)y[x]=y[x-3]^y[x-8]^y[x-14]^y[x-16];for(var C=0;C<80;++C){var k=~~(C/20),T=0|((_=h)<<5|_>>>27)+m(k,d,A,v)+w+y[C]+f[k];w=v,v=A,A=g(d),d=h,h=T}this._a=h+this._a|0,this._b=d+this._b|0,this._c=A+this._c|0,this._d=v+this._d|0,this._e=w+this._e|0},l.prototype._hash=function(){var p=u.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},i.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(r,i,n){var t=r("inherits"),c=r("./hash"),u=r("safe-buffer").Buffer,f=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,c.call(this,64,56)}function g(_){return _<<5|_>>>27}function m(_){return _<<30|_>>>2}function p(_,y,h,d){return _===0?y&h|~y&d:_===2?y&h|y&d|h&d:y^h^d}t(l,c),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(_){for(var y,h=this._w,d=0|this._a,A=0|this._b,v=0|this._c,w=0|this._d,x=0|this._e,C=0;C<16;++C)h[C]=_.readInt32BE(4*C);for(;C<80;++C)h[C]=(y=h[C-3]^h[C-8]^h[C-14]^h[C-16])<<1|y>>>31;for(var k=0;k<80;++k){var T=~~(k/20),S=g(d)+p(T,A,v,w)+x+h[k]+f[T]|0;x=w,w=v,v=m(A),A=d,d=S}this._a=d+this._a|0,this._b=A+this._b|0,this._c=v+this._c|0,this._d=w+this._d|0,this._e=x+this._e|0},l.prototype._hash=function(){var _=u.allocUnsafe(20);return _.writeInt32BE(0|this._a,0),_.writeInt32BE(0|this._b,4),_.writeInt32BE(0|this._c,8),_.writeInt32BE(0|this._d,12),_.writeInt32BE(0|this._e,16),_},i.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(r,i,n){var t=r("inherits"),c=r("./sha256"),u=r("./hash"),f=r("safe-buffer").Buffer,o=new Array(64);function l(){this.init(),this._w=o,u.call(this,64,56)}t(l,c),l.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},l.prototype._hash=function(){var g=f.allocUnsafe(28);return g.writeInt32BE(this._a,0),g.writeInt32BE(this._b,4),g.writeInt32BE(this._c,8),g.writeInt32BE(this._d,12),g.writeInt32BE(this._e,16),g.writeInt32BE(this._f,20),g.writeInt32BE(this._g,24),g},i.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(r,i,n){var t=r("inherits"),c=r("./hash"),u=r("safe-buffer").Buffer,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function l(){this.init(),this._w=o,c.call(this,64,56)}function g(h,d,A){return A^h&(d^A)}function m(h,d,A){return h&d|A&(h|d)}function p(h){return(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10)}function _(h){return(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7)}function y(h){return(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3}t(l,c),l.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},l.prototype._update=function(h){for(var d,A=this._w,v=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,k=0|this._e,T=0|this._f,S=0|this._g,M=0|this._h,P=0;P<16;++P)A[P]=h.readInt32BE(4*P);for(;P<64;++P)A[P]=0|(((d=A[P-2])>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+A[P-7]+y(A[P-15])+A[P-16];for(var N=0;N<64;++N){var B=M+_(k)+g(k,T,S)+f[N]+A[N]|0,O=p(v)+m(v,w,x)|0;M=S,S=T,T=k,k=C+B|0,C=x,x=w,w=v,v=B+O|0}this._a=v+this._a|0,this._b=w+this._b|0,this._c=x+this._c|0,this._d=C+this._d|0,this._e=k+this._e|0,this._f=T+this._f|0,this._g=S+this._g|0,this._h=M+this._h|0},l.prototype._hash=function(){var h=u.allocUnsafe(32);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h.writeInt32BE(this._h,28),h},i.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(r,i,n){var t=r("inherits"),c=r("./sha512"),u=r("./hash"),f=r("safe-buffer").Buffer,o=new Array(160);function l(){this.init(),this._w=o,u.call(this,128,112)}t(l,c),l.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},l.prototype._hash=function(){var g=f.allocUnsafe(48);function m(p,_,y){g.writeInt32BE(p,y),g.writeInt32BE(_,y+4)}return m(this._ah,this._al,0),m(this._bh,this._bl,8),m(this._ch,this._cl,16),m(this._dh,this._dl,24),m(this._eh,this._el,32),m(this._fh,this._fl,40),g},i.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(r,i,n){var t=r("inherits"),c=r("./hash"),u=r("safe-buffer").Buffer,f=[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],o=new Array(160);function l(){this.init(),this._w=o,c.call(this,128,112)}function g(w,x,C){return C^w&(x^C)}function m(w,x,C){return w&x|C&(w|x)}function p(w,x){return(w>>>28|x<<4)^(x>>>2|w<<30)^(x>>>7|w<<25)}function _(w,x){return(w>>>14|x<<18)^(w>>>18|x<<14)^(x>>>9|w<<23)}function y(w,x){return(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7}function h(w,x){return(w>>>1|x<<31)^(w>>>8|x<<24)^(w>>>7|x<<25)}function d(w,x){return(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6}function A(w,x){return(w>>>19|x<<13)^(x>>>29|w<<3)^(w>>>6|x<<26)}function v(w,x){return w>>>0<x>>>0?1:0}t(l,c),l.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},l.prototype._update=function(w){for(var x=this._w,C=0|this._ah,k=0|this._bh,T=0|this._ch,S=0|this._dh,M=0|this._eh,P=0|this._fh,N=0|this._gh,B=0|this._hh,O=0|this._al,I=0|this._bl,F=0|this._cl,L=0|this._dl,R=0|this._el,U=0|this._fl,V=0|this._gl,W=0|this._hl,Q=0;Q<32;Q+=2)x[Q]=w.readInt32BE(4*Q),x[Q+1]=w.readInt32BE(4*Q+4);for(;Q<160;Q+=2){var le=x[Q-30],G=x[Q-30+1],fe=y(le,G),ie=h(G,le),he=d(le=x[Q-4],G=x[Q-4+1]),Y=A(G,le),K=x[Q-14],oe=x[Q-14+1],pe=x[Q-32],ve=x[Q-32+1],ge=ie+oe|0,ue=fe+K+v(ge,ie)|0;ue=(ue=ue+he+v(ge=ge+Y|0,Y)|0)+pe+v(ge=ge+ve|0,ve)|0,x[Q]=ue,x[Q+1]=ge}for(var Te=0;Te<160;Te+=2){ue=x[Te],ge=x[Te+1];var Ee=m(C,k,T),ye=m(O,I,F),Se=p(C,O),Fe=p(O,C),Ve=_(M,R),ke=_(R,M),Pe=f[Te],Re=f[Te+1],Ye=g(M,P,N),Ke=g(R,U,V),ot=W+ke|0,nt=B+Ve+v(ot,W)|0;nt=(nt=(nt=nt+Ye+v(ot=ot+Ke|0,Ke)|0)+Pe+v(ot=ot+Re|0,Re)|0)+ue+v(ot=ot+ge|0,ge)|0;var mt=Fe+ye|0,Ut=Se+Ee+v(mt,Fe)|0;B=N,W=V,N=P,V=U,P=M,U=R,M=S+nt+v(R=L+ot|0,L)|0,S=T,L=F,T=k,F=I,k=C,I=O,C=nt+Ut+v(O=ot+mt|0,ot)|0}this._al=this._al+O|0,this._bl=this._bl+I|0,this._cl=this._cl+F|0,this._dl=this._dl+L|0,this._el=this._el+R|0,this._fl=this._fl+U|0,this._gl=this._gl+V|0,this._hl=this._hl+W|0,this._ah=this._ah+C+v(this._al,O)|0,this._bh=this._bh+k+v(this._bl,I)|0,this._ch=this._ch+T+v(this._cl,F)|0,this._dh=this._dh+S+v(this._dl,L)|0,this._eh=this._eh+M+v(this._el,R)|0,this._fh=this._fh+P+v(this._fl,U)|0,this._gh=this._gh+N+v(this._gl,V)|0,this._hh=this._hh+B+v(this._hl,W)|0},l.prototype._hash=function(){var w=u.allocUnsafe(64);function x(C,k,T){w.writeInt32BE(C,T),w.writeInt32BE(k,T+4)}return x(this._ah,this._al,0),x(this._bh,this._bl,8),x(this._ch,this._cl,16),x(this._dh,this._dl,24),x(this._eh,this._el,32),x(this._fh,this._fl,40),x(this._gh,this._gl,48),x(this._hh,this._hl,56),w},i.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(r,i,n){i.exports=c;var t=r("events").EventEmitter;function c(){t.call(this)}r("inherits")(c,t),c.Readable=r("readable-stream/readable.js"),c.Writable=r("readable-stream/writable.js"),c.Duplex=r("readable-stream/duplex.js"),c.Transform=r("readable-stream/transform.js"),c.PassThrough=r("readable-stream/passthrough.js"),c.Stream=c,c.prototype.pipe=function(u,f){var o=this;function l(d){u.writable&&u.write(d)===!1&&o.pause&&o.pause()}function g(){o.readable&&o.resume&&o.resume()}o.on("data",l),u.on("drain",g),u._isStdio||f&&f.end===!1||(o.on("end",p),o.on("close",_));var m=!1;function p(){m||(m=!0,u.end())}function _(){m||(m=!0,typeof u.destroy=="function"&&u.destroy())}function y(d){if(h(),t.listenerCount(this,"error")===0)throw d}function h(){o.removeListener("data",l),u.removeListener("drain",g),o.removeListener("end",p),o.removeListener("close",_),o.removeListener("error",y),u.removeListener("error",y),o.removeListener("end",h),o.removeListener("close",h),u.removeListener("close",h)}return o.on("error",y),u.on("error",y),o.on("end",h),o.on("close",h),u.on("close",h),u.emit("pipe",o),u}},{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(r,i,n){var t={}.toString;i.exports=Array.isArray||function(c){return t.call(c)=="[object Array]"}},{}],507:[function(r,i,n){i.exports=r("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(r,i,n){var t=r("process-nextick-args"),c=Object.keys||function(h){var d=[];for(var A in h)d.push(A);return d};i.exports=p;var u=Object.create(r("core-util-is"));u.inherits=r("inherits");var f=r("./_stream_readable"),o=r("./_stream_writable");u.inherits(p,f);for(var l=c(o.prototype),g=0;g<l.length;g++){var m=l[g];p.prototype[m]||(p.prototype[m]=o.prototype[m])}function p(h){if(!(this instanceof p))return new p(h);f.call(this,h),o.call(this,h),h&&h.readable===!1&&(this.readable=!1),h&&h.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,h&&h.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",_)}function _(){this.allowHalfOpen||this._writableState.ended||t.nextTick(y,this)}function y(h){h.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}),p.prototype._destroy=function(h,d){this.push(null),this.end(),t.nextTick(d,h)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(r,i,n){i.exports=u;var t=r("./_stream_transform"),c=Object.create(r("core-util-is"));function u(f){if(!(this instanceof u))return new u(f);t.call(this,f)}c.inherits=r("inherits"),c.inherits(u,t),u.prototype._transform=function(f,o,l){l(null,f)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(r,i,n){(function(t,c){(function(){var u=r("process-nextick-args");i.exports=C;var f,o=r("isarray");C.ReadableState=x,r("events").EventEmitter;var l=function(W,Q){return W.listeners(Q).length},g=r("./internal/streams/stream"),m=r("safe-buffer").Buffer,p=(c!==void 0?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},_=Object.create(r("core-util-is"));_.inherits=r("inherits");var y=r("util"),h=void 0;h=y&&y.debuglog?y.debuglog("stream"):function(){};var d,A=r("./internal/streams/BufferList"),v=r("./internal/streams/destroy");_.inherits(C,g);var w=["error","close","destroy","pause","resume"];function x(W,Q){W=W||{};var le=Q instanceof(f=f||r("./_stream_duplex"));this.objectMode=!!W.objectMode,le&&(this.objectMode=this.objectMode||!!W.readableObjectMode);var G=W.highWaterMark,fe=W.readableHighWaterMark,ie=this.objectMode?16:16384;this.highWaterMark=G||G===0?G:le&&(fe||fe===0)?fe:ie,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new A,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=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(d||(d=r("string_decoder/").StringDecoder),this.decoder=new d(W.encoding),this.encoding=W.encoding)}function C(W){if(f=f||r("./_stream_duplex"),!(this instanceof C))return new C(W);this._readableState=new x(W,this),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),g.call(this)}function k(W,Q,le,G,fe){var ie,he=W._readableState;return Q===null?(he.reading=!1,(function(Y,K){if(!K.ended){if(K.decoder){var oe=K.decoder.end();oe&&oe.length&&(K.buffer.push(oe),K.length+=K.objectMode?1:oe.length)}K.ended=!0,M(Y)}})(W,he)):(fe||(ie=(function(Y,K){var oe;pe=K,m.isBuffer(pe)||pe instanceof p||typeof K=="string"||K===void 0||Y.objectMode||(oe=new TypeError("Invalid non-string/buffer chunk"));var pe;return oe})(he,Q)),ie?W.emit("error",ie):he.objectMode||Q&&Q.length>0?(typeof Q=="string"||he.objectMode||Object.getPrototypeOf(Q)===m.prototype||(Q=(function(Y){return m.from(Y)})(Q)),G?he.endEmitted?W.emit("error",new Error("stream.unshift() after end event")):T(W,he,Q,!0):he.ended?W.emit("error",new Error("stream.push() after EOF")):(he.reading=!1,he.decoder&&!le?(Q=he.decoder.write(Q),he.objectMode||Q.length!==0?T(W,he,Q,!1):N(W,he)):T(W,he,Q,!1))):G||(he.reading=!1)),(function(Y){return!Y.ended&&(Y.needReadable||Y.length<Y.highWaterMark||Y.length===0)})(he)}function T(W,Q,le,G){Q.flowing&&Q.length===0&&!Q.sync?(W.emit("data",le),W.read(0)):(Q.length+=Q.objectMode?1:le.length,G?Q.buffer.unshift(le):Q.buffer.push(le),Q.needReadable&&M(W)),N(W,Q)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(W){this._readableState&&(this._readableState.destroyed=W)}}),C.prototype.destroy=v.destroy,C.prototype._undestroy=v.undestroy,C.prototype._destroy=function(W,Q){this.push(null),Q(W)},C.prototype.push=function(W,Q){var le,G=this._readableState;return G.objectMode?le=!0:typeof W=="string"&&((Q=Q||G.defaultEncoding)!==G.encoding&&(W=m.from(W,Q),Q=""),le=!0),k(this,W,Q,!1,le)},C.prototype.unshift=function(W){return k(this,W,null,!0,!1)},C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(W){return d||(d=r("string_decoder/").StringDecoder),this._readableState.decoder=new d(W),this._readableState.encoding=W,this};function S(W,Q){return W<=0||Q.length===0&&Q.ended?0:Q.objectMode?1:W!=W?Q.flowing&&Q.length?Q.buffer.head.data.length:Q.length:(W>Q.highWaterMark&&(Q.highWaterMark=(function(le){return le>=8388608?le=8388608:(le--,le|=le>>>1,le|=le>>>2,le|=le>>>4,le|=le>>>8,le|=le>>>16,le++),le})(W)),W<=Q.length?W:Q.ended?Q.length:(Q.needReadable=!0,0))}function M(W){var Q=W._readableState;Q.needReadable=!1,Q.emittedReadable||(h("emitReadable",Q.flowing),Q.emittedReadable=!0,Q.sync?u.nextTick(P,W):P(W))}function P(W){h("emit readable"),W.emit("readable"),F(W)}function N(W,Q){Q.readingMore||(Q.readingMore=!0,u.nextTick(B,W,Q))}function B(W,Q){for(var le=Q.length;!Q.reading&&!Q.flowing&&!Q.ended&&Q.length<Q.highWaterMark&&(h("maybeReadMore read 0"),W.read(0),le!==Q.length);)le=Q.length;Q.readingMore=!1}function O(W){h("readable nexttick read 0"),W.read(0)}function I(W,Q){Q.reading||(h("resume read 0"),W.read(0)),Q.resumeScheduled=!1,Q.awaitDrain=0,W.emit("resume"),F(W),Q.flowing&&!Q.reading&&W.read(0)}function F(W){var Q=W._readableState;for(h("flow",Q.flowing);Q.flowing&&W.read()!==null;);}function L(W,Q){return Q.length===0?null:(Q.objectMode?le=Q.buffer.shift():!W||W>=Q.length?(le=Q.decoder?Q.buffer.join(""):Q.buffer.length===1?Q.buffer.head.data:Q.buffer.concat(Q.length),Q.buffer.clear()):le=(function(G,fe,ie){var he;return G<fe.head.data.length?(he=fe.head.data.slice(0,G),fe.head.data=fe.head.data.slice(G)):he=G===fe.head.data.length?fe.shift():ie?(function(Y,K){var oe=K.head,pe=1,ve=oe.data;for(Y-=ve.length;oe=oe.next;){var ge=oe.data,ue=Y>ge.length?ge.length:Y;if(ue===ge.length?ve+=ge:ve+=ge.slice(0,Y),(Y-=ue)===0){ue===ge.length?(++pe,oe.next?K.head=oe.next:K.head=K.tail=null):(K.head=oe,oe.data=ge.slice(ue));break}++pe}return K.length-=pe,ve})(G,fe):(function(Y,K){var oe=m.allocUnsafe(Y),pe=K.head,ve=1;for(pe.data.copy(oe),Y-=pe.data.length;pe=pe.next;){var ge=pe.data,ue=Y>ge.length?ge.length:Y;if(ge.copy(oe,oe.length-Y,0,ue),(Y-=ue)===0){ue===ge.length?(++ve,pe.next?K.head=pe.next:K.head=K.tail=null):(K.head=pe,pe.data=ge.slice(ue));break}++ve}return K.length-=ve,oe})(G,fe),he})(W,Q.buffer,Q.decoder),le);var le}function R(W){var Q=W._readableState;if(Q.length>0)throw new Error('"endReadable()" called on non-empty stream');Q.endEmitted||(Q.ended=!0,u.nextTick(U,Q,W))}function U(W,Q){W.endEmitted||W.length!==0||(W.endEmitted=!0,Q.readable=!1,Q.emit("end"))}function V(W,Q){for(var le=0,G=W.length;le<G;le++)if(W[le]===Q)return le;return-1}C.prototype.read=function(W){h("read",W),W=parseInt(W,10);var Q=this._readableState,le=W;if(W!==0&&(Q.emittedReadable=!1),W===0&&Q.needReadable&&(Q.length>=Q.highWaterMark||Q.ended))return h("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended?R(this):M(this),null;if((W=S(W,Q))===0&&Q.ended)return Q.length===0&&R(this),null;var G,fe=Q.needReadable;return h("need readable",fe),(Q.length===0||Q.length-W<Q.highWaterMark)&&h("length less than watermark",fe=!0),Q.ended||Q.reading?h("reading or ended",fe=!1):fe&&(h("do read"),Q.reading=!0,Q.sync=!0,Q.length===0&&(Q.needReadable=!0),this._read(Q.highWaterMark),Q.sync=!1,Q.reading||(W=S(le,Q))),(G=W>0?L(W,Q):null)===null?(Q.needReadable=!0,W=0):Q.length-=W,Q.length===0&&(Q.ended||(Q.needReadable=!0),le!==W&&Q.ended&&R(this)),G!==null&&this.emit("data",G),G},C.prototype._read=function(W){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(W,Q){var le=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=W;break;case 1:G.pipes=[G.pipes,W];break;default:G.pipes.push(W)}G.pipesCount+=1,h("pipe count=%d opts=%j",G.pipesCount,Q);var fe=(!Q||Q.end!==!1)&&W!==t.stdout&&W!==t.stderr?he:Te;function ie(Ee,ye){h("onunpipe"),Ee===le&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,h("cleanup"),W.removeListener("close",ge),W.removeListener("finish",ue),W.removeListener("drain",Y),W.removeListener("error",ve),W.removeListener("unpipe",ie),le.removeListener("end",he),le.removeListener("end",Te),le.removeListener("data",pe),K=!0,!G.awaitDrain||W._writableState&&!W._writableState.needDrain||Y())}function he(){h("onend"),W.end()}G.endEmitted?u.nextTick(fe):le.once("end",fe),W.on("unpipe",ie);var Y=(function(Ee){return function(){var ye=Ee._readableState;h("pipeOnDrain",ye.awaitDrain),ye.awaitDrain&&ye.awaitDrain--,ye.awaitDrain===0&&l(Ee,"data")&&(ye.flowing=!0,F(Ee))}})(le);W.on("drain",Y);var K=!1,oe=!1;function pe(Ee){h("ondata"),oe=!1,W.write(Ee)!==!1||oe||((G.pipesCount===1&&G.pipes===W||G.pipesCount>1&&V(G.pipes,W)!==-1)&&!K&&(h("false write response, pause",G.awaitDrain),G.awaitDrain++,oe=!0),le.pause())}function ve(Ee){h("onerror",Ee),Te(),W.removeListener("error",ve),l(W,"error")===0&&W.emit("error",Ee)}function ge(){W.removeListener("finish",ue),Te()}function ue(){h("onfinish"),W.removeListener("close",ge),Te()}function Te(){h("unpipe"),le.unpipe(W)}return le.on("data",pe),(function(Ee,ye,Se){if(typeof Ee.prependListener=="function")return Ee.prependListener(ye,Se);Ee._events&&Ee._events[ye]?o(Ee._events[ye])?Ee._events[ye].unshift(Se):Ee._events[ye]=[Se,Ee._events[ye]]:Ee.on(ye,Se)})(W,"error",ve),W.once("close",ge),W.once("finish",ue),W.emit("pipe",le),G.flowing||(h("pipe resume"),le.resume()),W},C.prototype.unpipe=function(W){var Q=this._readableState,le={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1)return W&&W!==Q.pipes||(W||(W=Q.pipes),Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,W&&W.emit("unpipe",this,le)),this;if(!W){var G=Q.pipes,fe=Q.pipesCount;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var ie=0;ie<fe;ie++)G[ie].emit("unpipe",this,{hasUnpiped:!1});return this}var he=V(Q.pipes,W);return he===-1||(Q.pipes.splice(he,1),Q.pipesCount-=1,Q.pipesCount===1&&(Q.pipes=Q.pipes[0]),W.emit("unpipe",this,le)),this},C.prototype.on=function(W,Q){var le=g.prototype.on.call(this,W,Q);if(W==="data")this._readableState.flowing!==!1&&this.resume();else if(W==="readable"){var G=this._readableState;G.endEmitted||G.readableListening||(G.readableListening=G.needReadable=!0,G.emittedReadable=!1,G.reading?G.length&&M(this):u.nextTick(O,this))}return le},C.prototype.addListener=C.prototype.on,C.prototype.resume=function(){var W=this._readableState;return W.flowing||(h("resume"),W.flowing=!0,(function(Q,le){le.resumeScheduled||(le.resumeScheduled=!0,u.nextTick(I,Q,le))})(this,W)),this},C.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},C.prototype.wrap=function(W){var Q=this,le=this._readableState,G=!1;for(var fe in W.on("end",(function(){if(h("wrapped end"),le.decoder&&!le.ended){var he=le.decoder.end();he&&he.length&&Q.push(he)}Q.push(null)})),W.on("data",(function(he){h("wrapped data"),le.decoder&&(he=le.decoder.write(he)),le.objectMode&&he==null||(le.objectMode||he&&he.length)&&(Q.push(he)||(G=!0,W.pause()))})),W)this[fe]===void 0&&typeof W[fe]=="function"&&(this[fe]=(function(he){return function(){return W[he].apply(W,arguments)}})(fe));for(var ie=0;ie<w.length;ie++)W.on(w[ie],this.emit.bind(this,w[ie]));return this._read=function(he){h("wrapped _read",he),G&&(G=!1,W.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=L}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa: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(r,i,n){i.exports=f;var t=r("./_stream_duplex"),c=Object.create(r("core-util-is"));function u(g,m){var p=this._transformState;p.transforming=!1;var _=p.writecb;if(!_)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,m!=null&&this.push(m),_(g);var y=this._readableState;y.reading=!1,(y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}function f(g){if(!(this instanceof f))return new f(g);t.call(this,g),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",o)}function o(){var g=this;typeof this._flush=="function"?this._flush((function(m,p){l(g,m,p)})):l(this,null,null)}function l(g,m,p){if(m)return g.emit("error",m);if(p!=null&&g.push(p),g._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(g._transformState.transforming)throw new Error("Calling transform done when still transforming");return g.push(null)}c.inherits=r("inherits"),c.inherits(f,t),f.prototype.push=function(g,m){return this._transformState.needTransform=!1,t.prototype.push.call(this,g,m)},f.prototype._transform=function(g,m,p){throw new Error("_transform() is not implemented")},f.prototype._write=function(g,m,p){var _=this._transformState;if(_.writecb=p,_.writechunk=g,_.writeencoding=m,!_.transforming){var y=this._readableState;(_.needTransform||y.needReadable||y.length<y.highWaterMark)&&this._read(y.highWaterMark)}},f.prototype._read=function(g){var m=this._transformState;m.writechunk!==null&&m.writecb&&!m.transforming?(m.transforming=!0,this._transform(m.writechunk,m.writeencoding,m.afterTransform)):m.needTransform=!0},f.prototype._destroy=function(g,m){var p=this;t.prototype._destroy.call(this,g,(function(_){m(_),p.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(r,i,n){(function(t,c,u){(function(){var f=r("process-nextick-args");function o(N){var B=this;this.next=null,this.entry=null,this.finish=function(){(function(O,I,F){var L=O.entry;for(O.entry=null;L;){var R=L.callback;I.pendingcb--,R(F),L=L.next}I.corkedRequestsFree.next=O})(B,N)}}i.exports=x;var l,g=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?u:f.nextTick;x.WritableState=w;var m=Object.create(r("core-util-is"));m.inherits=r("inherits");var p={deprecate:r("util-deprecate")},_=r("./internal/streams/stream"),y=r("safe-buffer").Buffer,h=(c!==void 0?c:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d,A=r("./internal/streams/destroy");function v(){}function w(N,B){l=l||r("./_stream_duplex"),N=N||{};var O=B instanceof l;this.objectMode=!!N.objectMode,O&&(this.objectMode=this.objectMode||!!N.writableObjectMode);var I=N.highWaterMark,F=N.writableHighWaterMark,L=this.objectMode?16:16384;this.highWaterMark=I||I===0?I:O&&(F||F===0)?F:L,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 R=N.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){(function(V,W){var Q=V._writableState,le=Q.sync,G=Q.writecb;if((function(ie){ie.writing=!1,ie.writecb=null,ie.length-=ie.writelen,ie.writelen=0})(Q),W)(function(ie,he,Y,K,oe){--he.pendingcb,Y?(f.nextTick(oe,K),f.nextTick(P,ie,he),ie._writableState.errorEmitted=!0,ie.emit("error",K)):(oe(K),ie._writableState.errorEmitted=!0,ie.emit("error",K),P(ie,he))})(V,Q,le,W,G);else{var fe=S(Q);fe||Q.corked||Q.bufferProcessing||!Q.bufferedRequest||T(V,Q),le?g(k,V,Q,fe,G):k(V,Q,fe,G)}})(B,U)},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 o(this)}function x(N){if(l=l||r("./_stream_duplex"),!(d.call(x,this)||this instanceof l))return new x(N);this._writableState=new w(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)),_.call(this)}function C(N,B,O,I,F,L,R){B.writelen=I,B.writecb=R,B.writing=!0,B.sync=!0,O?N._writev(F,B.onwrite):N._write(F,L,B.onwrite),B.sync=!1}function k(N,B,O,I){O||(function(F,L){L.length===0&&L.needDrain&&(L.needDrain=!1,F.emit("drain"))})(N,B),B.pendingcb--,I(),P(N,B)}function T(N,B){B.bufferProcessing=!0;var O=B.bufferedRequest;if(N._writev&&O&&O.next){var I=B.bufferedRequestCount,F=new Array(I),L=B.corkedRequestsFree;L.entry=O;for(var R=0,U=!0;O;)F[R]=O,O.isBuf||(U=!1),O=O.next,R+=1;F.allBuffers=U,C(N,B,!0,B.length,F,"",L.finish),B.pendingcb++,B.lastBufferedRequest=null,L.next?(B.corkedRequestsFree=L.next,L.next=null):B.corkedRequestsFree=new o(B),B.bufferedRequestCount=0}else{for(;O;){var V=O.chunk,W=O.encoding,Q=O.callback;if(C(N,B,!1,B.objectMode?1:V.length,V,W,Q),O=O.next,B.bufferedRequestCount--,B.writing)break}O===null&&(B.lastBufferedRequest=null)}B.bufferedRequest=O,B.bufferProcessing=!1}function S(N){return N.ending&&N.length===0&&N.bufferedRequest===null&&!N.finished&&!N.writing}function M(N,B){N._final((function(O){B.pendingcb--,O&&N.emit("error",O),B.prefinished=!0,N.emit("prefinish"),P(N,B)}))}function P(N,B){var O=S(B);return O&&((function(I,F){F.prefinished||F.finalCalled||(typeof I._final=="function"?(F.pendingcb++,F.finalCalled=!0,f.nextTick(M,I,F)):(F.prefinished=!0,I.emit("prefinish")))})(N,B),B.pendingcb===0&&(B.finished=!0,N.emit("finish"))),O}m.inherits(x,_),w.prototype.getBuffer=function(){for(var N=this.bufferedRequest,B=[];N;)B.push(N),N=N.next;return B},(function(){try{Object.defineProperty(w.prototype,"buffer",{get:p.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(x,Symbol.hasInstance,{value:function(N){return!!d.call(this,N)||this===x&&N&&N._writableState instanceof w}})):d=function(N){return N instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(N,B,O){var I,F=this._writableState,L=!1,R=!F.objectMode&&(I=N,y.isBuffer(I)||I instanceof h);return R&&!y.isBuffer(N)&&(N=(function(U){return y.from(U)})(N)),typeof B=="function"&&(O=B,B=null),R?B="buffer":B||(B=F.defaultEncoding),typeof O!="function"&&(O=v),F.ended?(function(U,V){var W=new Error("write after end");U.emit("error",W),f.nextTick(V,W)})(this,O):(R||(function(U,V,W,Q){var le=!0,G=!1;return W===null?G=new TypeError("May not write null values to stream"):typeof W=="string"||W===void 0||V.objectMode||(G=new TypeError("Invalid non-string/buffer chunk")),G&&(U.emit("error",G),f.nextTick(Q,G),le=!1),le})(this,F,N,O))&&(F.pendingcb++,L=(function(U,V,W,Q,le,G){if(!W){var fe=(function(K,oe,pe){return K.objectMode||K.decodeStrings===!1||typeof oe!="string"||(oe=y.from(oe,pe)),oe})(V,Q,le);Q!==fe&&(W=!0,le="buffer",Q=fe)}var ie=V.objectMode?1:Q.length;V.length+=ie;var he=V.length<V.highWaterMark;if(he||(V.needDrain=!0),V.writing||V.corked){var Y=V.lastBufferedRequest;V.lastBufferedRequest={chunk:Q,encoding:le,isBuf:W,callback:G,next:null},Y?Y.next=V.lastBufferedRequest:V.bufferedRequest=V.lastBufferedRequest,V.bufferedRequestCount+=1}else C(U,V,!1,ie,Q,le,G);return he})(this,F,R,N,B,O)),L},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.bufferProcessing||!N.bufferedRequest||T(this,N))},x.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(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(N,B,O){O(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(N,B,O){var I=this._writableState;typeof N=="function"?(O=N,N=null,B=null):typeof B=="function"&&(O=B,B=null),N!=null&&this.write(N,B),I.corked&&(I.corked=1,this.uncork()),I.ending||(function(F,L,R){L.ending=!0,P(F,L),R&&(L.finished?f.nextTick(R):F.once("finish",R)),L.ended=!0,F.writable=!1})(this,I,O)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),x.prototype.destroy=A.destroy,x.prototype._undestroy=A.undestroy,x.prototype._destroy=function(N,B){this.end(),B(N)}}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{},r("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(r,i,n){var t=r("safe-buffer").Buffer,c=r("util");i.exports=(function(){function u(){(function(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")})(this,u),this.head=null,this.tail=null,this.length=0}return u.prototype.push=function(f){var o={data:f,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},u.prototype.unshift=function(f){var o={data:f,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},u.prototype.shift=function(){if(this.length!==0){var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f}},u.prototype.clear=function(){this.head=this.tail=null,this.length=0},u.prototype.join=function(f){if(this.length===0)return"";for(var o=this.head,l=""+o.data;o=o.next;)l+=f+o.data;return l},u.prototype.concat=function(f){if(this.length===0)return t.alloc(0);for(var o,l,g,m=t.allocUnsafe(f>>>0),p=this.head,_=0;p;)o=p.data,l=m,g=_,o.copy(l,g),_+=p.data.length,p=p.next;return m},u})(),c&&c.inspect&&c.inspect.custom&&(i.exports.prototype[c.inspect.custom]=function(){var u=c.inspect({length:this.length});return this.constructor.name+" "+u})},{"safe-buffer":520,util:188}],514:[function(r,i,n){var t=r("process-nextick-args");function c(u,f){u.emit("error",f)}i.exports={destroy:function(u,f){var o=this,l=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return l||g?(f?f(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(c,this,u)):t.nextTick(c,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,(function(m){!f&&m?o._writableState?o._writableState.errorEmitted||(o._writableState.errorEmitted=!0,t.nextTick(c,o,m)):t.nextTick(c,o,m):f&&f(m)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(r,i,n){arguments[4][490][0].apply(n,arguments)},{dup:490,events:422}],516:[function(r,i,n){i.exports=r("./readable").PassThrough},{"./readable":517}],517:[function(r,i,n){(n=i.exports=r("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=r("./lib/_stream_writable.js"),n.Duplex=r("./lib/_stream_duplex.js"),n.Transform=r("./lib/_stream_transform.js"),n.PassThrough=r("./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(r,i,n){i.exports=r("./readable").Transform},{"./readable":517}],519:[function(r,i,n){i.exports=r("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(r,i,n){arguments[4][217][0].apply(n,arguments)},{buffer:220,dup:217}],521:[function(r,i,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":520}],522:[function(r,i,n){arguments[4][218][0].apply(n,arguments)},{dup:218,"safe-buffer":494}],523:[function(r,i,n){(function(t,c){(function(){var u=r("process/browser.js").nextTick,f=Function.prototype.apply,o=Array.prototype.slice,l={},g=0;function m(p,_){this._id=p,this._clearFn=_}n.setTimeout=function(){return new m(f.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new m(f.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(p){p.close()},m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(p,_){clearTimeout(p._idleTimeoutId),p._idleTimeout=_},n.unenroll=function(p){clearTimeout(p._idleTimeoutId),p._idleTimeout=-1},n._unrefActive=n.active=function(p){clearTimeout(p._idleTimeoutId);var _=p._idleTimeout;_>=0&&(p._idleTimeoutId=setTimeout((function(){p._onTimeout&&p._onTimeout()}),_))},n.setImmediate=typeof t=="function"?t:function(p){var _=g++,y=!(arguments.length<2)&&o.call(arguments,1);return l[_]=!0,u((function(){l[_]&&(y?p.apply(null,y):p.call(null),n.clearImmediate(_))})),_},n.clearImmediate=typeof c=="function"?c:function(p){delete l[p]}}).call(this)}).call(this,r("timers").setImmediate,r("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(r,i,n){(function(t){(function(){function c(u){try{if(!t.localStorage)return!1}catch{return!1}var f=t.localStorage[u];return f!=null&&String(f).toLowerCase()==="true"}i.exports=function(u,f){if(c("noDeprecation"))return u;var o=!1;return function(){if(!o){if(c("throwDeprecation"))throw new Error(f);c("traceDeprecation")?console.trace(f):console.warn(f),o=!0}return u.apply(this,arguments)}}}).call(this)}).call(this,typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(r,i,n){typeof Object.create=="function"?i.exports=function(t,c){t.super_=c,t.prototype=Object.create(c.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(t,c){t.super_=c;var u=function(){};u.prototype=c.prototype,t.prototype=new u,t.prototype.constructor=t}},{}],526:[function(r,i,n){i.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}},{}],527:[function(r,i,n){(function(t,c){(function(){var u=/%[sdj%]/g;n.format=function(F){if(!w(F)){for(var L=[],R=0;R<arguments.length;R++)L.push(l(arguments[R]));return L.join(" ")}R=1;for(var U=arguments,V=U.length,W=String(F).replace(u,(function(le){if(le==="%%")return"%";if(R>=V)return le;switch(le){case"%s":return String(U[R++]);case"%d":return Number(U[R++]);case"%j":try{return JSON.stringify(U[R++])}catch{return"[Circular]"}default:return le}})),Q=U[R];R<V;Q=U[++R])A(Q)||!k(Q)?W+=" "+Q:W+=" "+l(Q);return W},n.deprecate=function(F,L){if(x(c.process))return function(){return n.deprecate(F,L).apply(this,arguments)};if(t.noDeprecation===!0)return F;var R=!1;return function(){if(!R){if(t.throwDeprecation)throw new Error(L);t.traceDeprecation?console.trace(L):console.error(L),R=!0}return F.apply(this,arguments)}};var f,o={};function l(F,L){var R={seen:[],stylize:m};return arguments.length>=3&&(R.depth=arguments[2]),arguments.length>=4&&(R.colors=arguments[3]),d(L)?R.showHidden=L:L&&n._extend(R,L),x(R.showHidden)&&(R.showHidden=!1),x(R.depth)&&(R.depth=2),x(R.colors)&&(R.colors=!1),x(R.customInspect)&&(R.customInspect=!0),R.colors&&(R.stylize=g),p(R,F,R.depth)}function g(F,L){var R=l.styles[L];return R?"\x1B["+l.colors[R][0]+"m"+F+"\x1B["+l.colors[R][1]+"m":F}function m(F,L){return F}function p(F,L,R){if(F.customInspect&&L&&M(L.inspect)&&L.inspect!==n.inspect&&(!L.constructor||L.constructor.prototype!==L)){var U=L.inspect(R,F);return w(U)||(U=p(F,U,R)),U}var V=(function(Y,K){if(x(K))return Y.stylize("undefined","undefined");if(w(K)){var oe="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize(oe,"string")}if(v(K))return Y.stylize(""+K,"number");if(d(K))return Y.stylize(""+K,"boolean");if(A(K))return Y.stylize("null","null")})(F,L);if(V)return V;var W=Object.keys(L),Q=(function(Y){var K={};return Y.forEach((function(oe,pe){K[oe]=!0})),K})(W);if(F.showHidden&&(W=Object.getOwnPropertyNames(L)),S(L)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return _(L);if(W.length===0){if(M(L)){var le=L.name?": "+L.name:"";return F.stylize("[Function"+le+"]","special")}if(C(L))return F.stylize(RegExp.prototype.toString.call(L),"regexp");if(T(L))return F.stylize(Date.prototype.toString.call(L),"date");if(S(L))return _(L)}var G,fe="",ie=!1,he=["{","}"];return h(L)&&(ie=!0,he=["[","]"]),M(L)&&(fe=" [Function"+(L.name?": "+L.name:"")+"]"),C(L)&&(fe=" "+RegExp.prototype.toString.call(L)),T(L)&&(fe=" "+Date.prototype.toUTCString.call(L)),S(L)&&(fe=" "+_(L)),W.length!==0||ie&&L.length!=0?R<0?C(L)?F.stylize(RegExp.prototype.toString.call(L),"regexp"):F.stylize("[Object]","special"):(F.seen.push(L),G=ie?(function(Y,K,oe,pe,ve){for(var ge=[],ue=0,Te=K.length;ue<Te;++ue)I(K,String(ue))?ge.push(y(Y,K,oe,pe,String(ue),!0)):ge.push("");return ve.forEach((function(Ee){Ee.match(/^\d+$/)||ge.push(y(Y,K,oe,pe,Ee,!0))})),ge})(F,L,R,Q,W):W.map((function(Y){return y(F,L,R,Q,Y,ie)})),F.seen.pop(),(function(Y,K,oe){return Y.reduce((function(pe,ve){return ve.indexOf(`
`)>=0,pe+ve.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?oe[0]+(K===""?"":K+`
 `)+" "+Y.join(`,
  `)+" "+oe[1]:oe[0]+K+" "+Y.join(", ")+" "+oe[1]})(G,fe,he)):he[0]+fe+he[1]}function _(F){return"["+Error.prototype.toString.call(F)+"]"}function y(F,L,R,U,V,W){var Q,le,G;if((G=Object.getOwnPropertyDescriptor(L,V)||{value:L[V]}).get?le=G.set?F.stylize("[Getter/Setter]","special"):F.stylize("[Getter]","special"):G.set&&(le=F.stylize("[Setter]","special")),I(U,V)||(Q="["+V+"]"),le||(F.seen.indexOf(G.value)<0?(le=A(R)?p(F,G.value,null):p(F,G.value,R-1)).indexOf(`
`)>-1&&(le=W?le.split(`
`).map((function(fe){return"  "+fe})).join(`
`).substr(2):`
`+le.split(`
`).map((function(fe){return"   "+fe})).join(`
`)):le=F.stylize("[Circular]","special")),x(Q)){if(W&&V.match(/^\d+$/))return le;(Q=JSON.stringify(""+V)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Q=Q.substr(1,Q.length-2),Q=F.stylize(Q,"name")):(Q=Q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Q=F.stylize(Q,"string"))}return Q+": "+le}function h(F){return Array.isArray(F)}function d(F){return typeof F=="boolean"}function A(F){return F===null}function v(F){return typeof F=="number"}function w(F){return typeof F=="string"}function x(F){return F===void 0}function C(F){return k(F)&&P(F)==="[object RegExp]"}function k(F){return typeof F=="object"&&F!==null}function T(F){return k(F)&&P(F)==="[object Date]"}function S(F){return k(F)&&(P(F)==="[object Error]"||F instanceof Error)}function M(F){return typeof F=="function"}function P(F){return Object.prototype.toString.call(F)}function N(F){return F<10?"0"+F.toString(10):F.toString(10)}n.debuglog=function(F){if(x(f)&&(f=t.env.NODE_DEBUG||""),F=F.toUpperCase(),!o[F])if(new RegExp("\\b"+F+"\\b","i").test(f)){var L=t.pid;o[F]=function(){var R=n.format.apply(n,arguments);console.error("%s %d: %s",F,L,R)}}else o[F]=function(){};return o[F]},n.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=h,n.isBoolean=d,n.isNull=A,n.isNullOrUndefined=function(F){return F==null},n.isNumber=v,n.isString=w,n.isSymbol=function(F){return typeof F=="symbol"},n.isUndefined=x,n.isRegExp=C,n.isObject=k,n.isDate=T,n.isError=S,n.isFunction=M,n.isPrimitive=function(F){return F===null||typeof F=="boolean"||typeof F=="number"||typeof F=="string"||typeof F=="symbol"||F===void 0},n.isBuffer=r("./support/isBuffer");var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var F=new Date,L=[N(F.getHours()),N(F.getMinutes()),N(F.getSeconds())].join(":");return[F.getDate(),B[F.getMonth()],L].join(" ")}function I(F,L){return Object.prototype.hasOwnProperty.call(F,L)}n.log=function(){console.log("%s - %s",O(),n.format.apply(n,arguments))},n.inherits=r("inherits"),n._extend=function(F,L){if(!L||!k(L))return F;for(var R=Object.keys(L),U=R.length;U--;)F[R[U]]=L[R[U]];return F}}).call(this)}).call(this,r("_process"),typeof pa<"u"?pa:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"v3",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"v4",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"validate",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"parse",{enumerable:!0,get:function(){return p.default}});var t=_(r("./v1.js")),c=_(r("./v3.js")),u=_(r("./v4.js")),f=_(r("./v5.js")),o=_(r("./nil.js")),l=_(r("./version.js")),g=_(r("./validate.js")),m=_(r("./stringify.js")),p=_(r("./parse.js"));function _(y){return y&&y.__esModule?y:{default:y}}},{"./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(r,i,n){function t(p){return 14+(p+64>>>9<<4)+1}function c(p,_){const y=(65535&p)+(65535&_);return(p>>16)+(_>>16)+(y>>16)<<16|65535&y}function u(p,_,y,h,d,A){return c((v=c(c(_,p),c(h,A)))<<(w=d)|v>>>32-w,y);var v,w}function f(p,_,y,h,d,A,v){return u(_&y|~_&h,p,_,d,A,v)}function o(p,_,y,h,d,A,v){return u(_&h|y&~h,p,_,d,A,v)}function l(p,_,y,h,d,A,v){return u(_^y^h,p,_,d,A,v)}function g(p,_,y,h,d,A,v){return u(y^(_|~h),p,_,d,A,v)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var m=function(p){if(typeof p=="string"){const _=unescape(encodeURIComponent(p));p=new Uint8Array(_.length);for(let y=0;y<_.length;++y)p[y]=_.charCodeAt(y)}return(function(_){const y=[],h=32*_.length;for(let d=0;d<h;d+=8){const A=_[d>>5]>>>d%32&255,v=parseInt("0123456789abcdef".charAt(A>>>4&15)+"0123456789abcdef".charAt(15&A),16);y.push(v)}return y})((function(_,y){_[y>>5]|=128<<y%32,_[t(y)-1]=y;let h=1732584193,d=-271733879,A=-1732584194,v=271733878;for(let w=0;w<_.length;w+=16){const x=h,C=d,k=A,T=v;h=f(h,d,A,v,_[w],7,-680876936),v=f(v,h,d,A,_[w+1],12,-389564586),A=f(A,v,h,d,_[w+2],17,606105819),d=f(d,A,v,h,_[w+3],22,-1044525330),h=f(h,d,A,v,_[w+4],7,-176418897),v=f(v,h,d,A,_[w+5],12,1200080426),A=f(A,v,h,d,_[w+6],17,-1473231341),d=f(d,A,v,h,_[w+7],22,-45705983),h=f(h,d,A,v,_[w+8],7,1770035416),v=f(v,h,d,A,_[w+9],12,-1958414417),A=f(A,v,h,d,_[w+10],17,-42063),d=f(d,A,v,h,_[w+11],22,-1990404162),h=f(h,d,A,v,_[w+12],7,1804603682),v=f(v,h,d,A,_[w+13],12,-40341101),A=f(A,v,h,d,_[w+14],17,-1502002290),d=f(d,A,v,h,_[w+15],22,1236535329),h=o(h,d,A,v,_[w+1],5,-165796510),v=o(v,h,d,A,_[w+6],9,-1069501632),A=o(A,v,h,d,_[w+11],14,643717713),d=o(d,A,v,h,_[w],20,-373897302),h=o(h,d,A,v,_[w+5],5,-701558691),v=o(v,h,d,A,_[w+10],9,38016083),A=o(A,v,h,d,_[w+15],14,-660478335),d=o(d,A,v,h,_[w+4],20,-405537848),h=o(h,d,A,v,_[w+9],5,568446438),v=o(v,h,d,A,_[w+14],9,-1019803690),A=o(A,v,h,d,_[w+3],14,-187363961),d=o(d,A,v,h,_[w+8],20,1163531501),h=o(h,d,A,v,_[w+13],5,-1444681467),v=o(v,h,d,A,_[w+2],9,-51403784),A=o(A,v,h,d,_[w+7],14,1735328473),d=o(d,A,v,h,_[w+12],20,-1926607734),h=l(h,d,A,v,_[w+5],4,-378558),v=l(v,h,d,A,_[w+8],11,-2022574463),A=l(A,v,h,d,_[w+11],16,1839030562),d=l(d,A,v,h,_[w+14],23,-35309556),h=l(h,d,A,v,_[w+1],4,-1530992060),v=l(v,h,d,A,_[w+4],11,1272893353),A=l(A,v,h,d,_[w+7],16,-155497632),d=l(d,A,v,h,_[w+10],23,-1094730640),h=l(h,d,A,v,_[w+13],4,681279174),v=l(v,h,d,A,_[w],11,-358537222),A=l(A,v,h,d,_[w+3],16,-722521979),d=l(d,A,v,h,_[w+6],23,76029189),h=l(h,d,A,v,_[w+9],4,-640364487),v=l(v,h,d,A,_[w+12],11,-421815835),A=l(A,v,h,d,_[w+15],16,530742520),d=l(d,A,v,h,_[w+2],23,-995338651),h=g(h,d,A,v,_[w],6,-198630844),v=g(v,h,d,A,_[w+7],10,1126891415),A=g(A,v,h,d,_[w+14],15,-1416354905),d=g(d,A,v,h,_[w+5],21,-57434055),h=g(h,d,A,v,_[w+12],6,1700485571),v=g(v,h,d,A,_[w+3],10,-1894986606),A=g(A,v,h,d,_[w+10],15,-1051523),d=g(d,A,v,h,_[w+1],21,-2054922799),h=g(h,d,A,v,_[w+8],6,1873313359),v=g(v,h,d,A,_[w+15],10,-30611744),A=g(A,v,h,d,_[w+6],15,-1560198380),d=g(d,A,v,h,_[w+13],21,1309151649),h=g(h,d,A,v,_[w+4],6,-145523070),v=g(v,h,d,A,_[w+11],10,-1120210379),A=g(A,v,h,d,_[w+2],15,718787259),d=g(d,A,v,h,_[w+9],21,-343485551),h=c(h,x),d=c(d,C),A=c(A,k),v=c(v,T)}return[h,d,A,v]})((function(_){if(_.length===0)return[];const y=8*_.length,h=new Uint32Array(t(y));for(let d=0;d<y;d+=8)h[d>>5]|=(255&_[d/8])<<d%32;return h})(p),8*p.length))};n.default=m},{}],530:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t,c=(t=r("./validate.js"))&&t.__esModule?t:{default:t},u=function(f){if(!(0,c.default)(f))throw TypeError("Invalid UUID");let o;const l=new Uint8Array(16);return l[0]=(o=parseInt(f.slice(0,8),16))>>>24,l[1]=o>>>16&255,l[2]=o>>>8&255,l[3]=255&o,l[4]=(o=parseInt(f.slice(9,13),16))>>>8,l[5]=255&o,l[6]=(o=parseInt(f.slice(14,18),16))>>>8,l[7]=255&o,l[8]=(o=parseInt(f.slice(19,23),16))>>>8,l[9]=255&o,l[10]=(o=parseInt(f.slice(24,36),16))/1099511627776&255,l[11]=o/4294967296&255,l[12]=o>>>24&255,l[13]=o>>>16&255,l[14]=o>>>8&255,l[15]=255&o,l};n.default=u},{"./validate.js":541}],532:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,n.default=/^(?:[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},{}],533:[function(r,i,n){let t;Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(c)};const c=new Uint8Array(16)},{}],534:[function(r,i,n){function t(f,o,l,g){switch(f){case 0:return o&l^~o&g;case 1:return o^l^g;case 2:return o&l^o&g^l&g;case 3:return o^l^g}}function c(f,o){return f<<o|f>>>32-o}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=function(f){const o=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof f=="string"){const _=unescape(encodeURIComponent(f));f=[];for(let y=0;y<_.length;++y)f.push(_.charCodeAt(y))}else Array.isArray(f)||(f=Array.prototype.slice.call(f));f.push(128);const g=f.length/4+2,m=Math.ceil(g/16),p=new Array(m);for(let _=0;_<m;++_){const y=new Uint32Array(16);for(let h=0;h<16;++h)y[h]=f[64*_+4*h]<<24|f[64*_+4*h+1]<<16|f[64*_+4*h+2]<<8|f[64*_+4*h+3];p[_]=y}p[m-1][14]=8*(f.length-1)/Math.pow(2,32),p[m-1][14]=Math.floor(p[m-1][14]),p[m-1][15]=8*(f.length-1)&4294967295;for(let _=0;_<m;++_){const y=new Uint32Array(80);for(let x=0;x<16;++x)y[x]=p[_][x];for(let x=16;x<80;++x)y[x]=c(y[x-3]^y[x-8]^y[x-14]^y[x-16],1);let h=l[0],d=l[1],A=l[2],v=l[3],w=l[4];for(let x=0;x<80;++x){const C=Math.floor(x/20),k=c(h,5)+t(C,d,A,v)+w+o[C]+y[x]>>>0;w=v,v=A,A=c(d,30)>>>0,d=h,h=k}l[0]=l[0]+h>>>0,l[1]=l[1]+d>>>0,l[2]=l[2]+A>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+w>>>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]]};n.default=u},{}],535:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t,c=(t=r("./validate.js"))&&t.__esModule?t:{default:t};const u=[];for(let o=0;o<256;++o)u.push((o+256).toString(16).substr(1));var f=function(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const g=(u[o[l+0]]+u[o[l+1]]+u[o[l+2]]+u[o[l+3]]+"-"+u[o[l+4]]+u[o[l+5]]+"-"+u[o[l+6]]+u[o[l+7]]+"-"+u[o[l+8]]+u[o[l+9]]+"-"+u[o[l+10]]+u[o[l+11]]+u[o[l+12]]+u[o[l+13]]+u[o[l+14]]+u[o[l+15]]).toLowerCase();if(!(0,c.default)(g))throw TypeError("Stringified UUID is invalid");return g};n.default=f},{"./validate.js":541}],536:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=u(r("./rng.js")),c=u(r("./stringify.js"));function u(p){return p&&p.__esModule?p:{default:p}}let f,o,l=0,g=0;var m=function(p,_,y){let h=_&&y||0;const d=_||new Array(16);let A=(p=p||{}).node||f,v=p.clockseq!==void 0?p.clockseq:o;if(A==null||v==null){const S=p.random||(p.rng||t.default)();A==null&&(A=f=[1|S[0],S[1],S[2],S[3],S[4],S[5]]),v==null&&(v=o=16383&(S[6]<<8|S[7]))}let w=p.msecs!==void 0?p.msecs:Date.now(),x=p.nsecs!==void 0?p.nsecs:g+1;const C=w-l+(x-g)/1e4;if(C<0&&p.clockseq===void 0&&(v=v+1&16383),(C<0||w>l)&&p.nsecs===void 0&&(x=0),x>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=w,g=x,o=v,w+=122192928e5;const k=(1e4*(268435455&w)+x)%4294967296;d[h++]=k>>>24&255,d[h++]=k>>>16&255,d[h++]=k>>>8&255,d[h++]=255&k;const T=w/4294967296*1e4&268435455;d[h++]=T>>>8&255,d[h++]=255&T,d[h++]=T>>>24&15|16,d[h++]=T>>>16&255,d[h++]=v>>>8|128,d[h++]=255&v;for(let S=0;S<6;++S)d[h+S]=A[S];return _||(0,c.default)(d)};n.default=m},{"./rng.js":533,"./stringify.js":535}],537:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=u(r("./v35.js")),c=u(r("./md5.js"));function u(o){return o&&o.__esModule?o:{default:o}}var f=(0,t.default)("v3",48,c.default);n.default=f},{"./md5.js":529,"./v35.js":538}],538:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(l,g,m){function p(_,y,h,d){if(typeof _=="string"&&(_=(function(v){v=unescape(encodeURIComponent(v));const w=[];for(let x=0;x<v.length;++x)w.push(v.charCodeAt(x));return w})(_)),typeof y=="string"&&(y=(0,c.default)(y)),y.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let A=new Uint8Array(16+_.length);if(A.set(y),A.set(_,y.length),A=m(A),A[6]=15&A[6]|g,A[8]=63&A[8]|128,h){d=d||0;for(let v=0;v<16;++v)h[d+v]=A[v];return h}return(0,t.default)(A)}try{p.name=l}catch{}return p.DNS=f,p.URL=o,p},n.URL=n.DNS=void 0;var t=u(r("./stringify.js")),c=u(r("./parse.js"));function u(l){return l&&l.__esModule?l:{default:l}}const f="6ba7b810-9dad-11d1-80b4-00c04fd430c8";n.DNS=f;const o="6ba7b811-9dad-11d1-80b4-00c04fd430c8";n.URL=o},{"./parse.js":531,"./stringify.js":535}],539:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=u(r("./rng.js")),c=u(r("./stringify.js"));function u(o){return o&&o.__esModule?o:{default:o}}var f=function(o,l,g){const m=(o=o||{}).random||(o.rng||t.default)();if(m[6]=15&m[6]|64,m[8]=63&m[8]|128,l){g=g||0;for(let p=0;p<16;++p)l[g+p]=m[p];return l}return(0,c.default)(m)};n.default=f},{"./rng.js":533,"./stringify.js":535}],540:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=u(r("./v35.js")),c=u(r("./sha1.js"));function u(o){return o&&o.__esModule?o:{default:o}}var f=(0,t.default)("v5",80,c.default);n.default=f},{"./sha1.js":534,"./v35.js":538}],541:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t,c=(t=r("./regex.js"))&&t.__esModule?t:{default:t},u=function(f){return typeof f=="string"&&c.default.test(f)};n.default=u},{"./regex.js":532}],542:[function(r,i,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t,c=(t=r("./validate.js"))&&t.__esModule?t:{default:t},u=function(f){if(!(0,c.default)(f))throw TypeError("Invalid UUID");return parseInt(f.substr(14,1),16)};n.default=u},{"./validate.js":541}],543:[function(r,i,n){/**
* 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(n,"__esModule",{value:!0}),n.CHAR=`	
\r -퟿-�𐀀-􏿿`,n.S=` 	\r
`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");function t(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}n.S_LIST=[32,10,13,9],n.isChar=function(c){return c>=32&&c<=55295||c===10||c===13||c===9||c>=57344&&c<=65533||c>=65536&&c<=1114111},n.isS=function(c){return c===32||c===10||c===13||c===9},n.isNameStartChar=t,n.isNameChar=function(c){return t(c)||c>=48&&c<=57||c===45||c===46||c===183||c>=768&&c<=879||c>=8255&&c<=8256}},{}],544:[function(r,i,n){/**
* 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(n,"__esModule",{value:!0}),n.CHAR="-퟿-�𐀀-􏿿",n.RESTRICTED_CHAR="-\b\v\f---",n.S=` 	\r
`,n.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NAME_CHAR="-"+n.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.CHAR_RE=new RegExp("^["+n.CHAR+"]$","u"),n.RESTRICTED_CHAR_RE=new RegExp("^["+n.RESTRICTED_CHAR+"]$","u"),n.S_RE=new RegExp("^["+n.S+"]+$","u"),n.NAME_START_CHAR_RE=new RegExp("^["+n.NAME_START_CHAR+"]$","u"),n.NAME_CHAR_RE=new RegExp("^["+n.NAME_CHAR+"]$","u"),n.NAME_RE=new RegExp("^["+n.NAME_START_CHAR+"]["+n.NAME_CHAR+"]*$","u"),n.NMTOKEN_RE=new RegExp("^["+n.NAME_CHAR+"]+$","u");function t(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}n.S_LIST=[32,10,13,9],n.isChar=function(c){return c>=1&&c<=55295||c>=57344&&c<=65533||c>=65536&&c<=1114111},n.isRestrictedChar=function(c){return c>=1&&c<=8||c===11||c===12||c>=14&&c<=31||c>=127&&c<=132||c>=134&&c<=159},n.isCharAndNotRestricted=function(c){return c===9||c===10||c===13||c>31&&c<127||c===133||c>159&&c<=55295||c>=57344&&c<=65533||c>=65536&&c<=1114111},n.isS=function(c){return c===32||c===10||c===13||c===9},n.isNameStartChar=t,n.isNameChar=function(c){return t(c)||c>=48&&c<=57||c===45||c===46||c===183||c>=768&&c<=879||c>=8255&&c<=8256}},{}],545:[function(r,i,n){/**
* Character class utilities for XML NS 1.0 edition 3.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function t(c){return c>=65&&c<=90||c===95||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533||c>=65536&&c<=983039}Object.defineProperty(n,"__esModule",{value:!0}),n.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",n.NC_NAME_CHAR="-"+n.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",n.NC_NAME_START_CHAR_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]$","u"),n.NC_NAME_CHAR_RE=new RegExp("^["+n.NC_NAME_CHAR+"]$","u"),n.NC_NAME_RE=new RegExp("^["+n.NC_NAME_START_CHAR+"]["+n.NC_NAME_CHAR+"]*$","u"),n.isNCNameStartChar=t,n.isNCNameChar=function(c){return t(c)||c===45||c===46||c>=48&&c<=57||c===183||c>=768&&c<=879||c>=8255&&c<=8256}},{}]},{},[15])(15)}))})(aw)),aw.exports}var Kne=$ne();const sx=dy(Kne),$k=async(a,s,r,i)=>{try{const n=await fetch(s);if(!n.ok)throw new Error(`HTTP ${n.status}`);const t=await n.arrayBuffer(),c=Yne(s,n),u=a.workbook.addImage({buffer:t,extension:c}),f=a.getRow(r),o=a.getColumn(i);a.addImage(u,{tl:{col:i-1,row:r-1,colOff:.1*9525,rowOff:.1*9525},br:{col:i,row:r,colOff:-.1*9525,rowOff:-.1*9525},editAs:"oneCell"}),f.height=80,o.width=20}catch(n){throw console.warn(`无法添加图片: ${s}`,n),n}},Yne=(a,s)=>{const r=s.headers.get("content-type");if(r){if(r.includes("jpeg")||r.includes("jpg"))return"jpeg";if(r.includes("png"))return"png";if(r.includes("gif"))return"gif"}const i=a.split(".").pop().toLowerCase();return["jpg","jpeg"].includes(i)?"jpeg":i==="png"?"png":i==="gif"?"gif":"jpeg"},Sm=a=>a?new Date(a).toLocaleString():"/",Xne={class:"dialog-footer gap-2 flex justify-center"},Zne={__name:"ExportNewonProduct",setup(a){var _;const s=we([]),r=we(0),i=we([]),n=we(!1),t=()=>{n.value=!0},c=()=>{p(!0)},u=()=>{p(!1)},f=()=>{window.mmsRobinSearchForChainSupplierListenerExport&&window.removeEventListener("message",window.mmsRobinSearchForChainSupplierListenerExport)};window.mmsRobinSearchForChainSupplierListenerExport=y=>{if(y.data.type==="/api/kiana/mms/robin/searchForChainSupplier"){const{response:h,params:d}=y.data;delete d.pageNum,delete d.pageSize,i.value=JSON.parse(JSON.stringify(d))}};const o=()=>{f(),window.addEventListener("message",window.mmsRobinSearchForChainSupplierListenerExport)},l=((_=document.querySelector('[class*="account-info_mallInfo"] [class*="elli_outerWrapper"]'))==null?void 0:_.innerText)||"",g=async(y,h="上新周期列表导出数据.xlsx",d=!1,A=!1)=>{var v,w,x,C,k,T,S,M,P,N,B,O,I;try{const F=new sx.Workbook,L=F.addWorksheet("上新周期列表导出数据"),R=[{header:"商品图片",key:"image",width:20},{header:"商品名称",key:"spuName",width:50},{header:"类目",key:"category",width:40},{header:"SPU ID",key:"spu",width:15},{header:"SKC ID",key:"skc",width:15},{header:"SKC 货号",key:"skcExtCode",width:15},{header:"商品类型标签",key:"goodsLabelName",width:12},{header:"SKU属性",key:"productPropertyList",width:30},{header:"SKU ID",key:"sku",width:15},{header:"SKU 货号",key:"skuExtCode",width:10},{header:"申报价",key:"price",width:15},{header:"创建时间",key:"createdTime",width:20},{header:"可寄样开始时间",key:"selectedTime",width:20},{header:"加入站点时间",key:"addedToSiteTime",width:20},{header:"审版完成时间",key:"qcCompletedTime",width:20},{header:"价格确认时间",key:"priceVerificationTime",width:20},{header:"备货单首单创建时间",key:"firstPurchaseTime",width:20}],U=d?R:R.slice(1);L.columns=U;const V=L.getRow(1);V.font={bold:!0,size:12,color:{argb:"FFFFFFFF"}},V.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF4F81BD"}},V.alignment={vertical:"middle",horizontal:"center"},V.height=30;const W=new Map,Q=new Map;let le=2;const G=1e3;let fe=0;for(let Y=0;Y<y.length;Y++){const K=y[Y];if(K.skcList&&K.skcList.length>0){for(const oe of K.skcList)if(oe.skuList&&oe.skuList.length>0)for(const pe of oe.skuList){const ve={image:((v=K.carouselImageUrlList)==null?void 0:v[0])||"/",spuName:K.productName||"/",category:((w=K.fullCategoryName)==null?void 0:w.join(" > "))||"/",spu:((x=K.productId)==null?void 0:x.toString())||"/",skc:((C=oe.skcId)==null?void 0:C.toString())||"/",skcExtCode:oe.extCode||"/",goodsLabelName:oe.goodsLabelName||"/",productPropertyList:((k=pe.productPropertyList)==null?void 0:k.map(ue=>`${ue.name}:${ue.value}`).join("; "))||"/",sku:((T=pe.skuId)==null?void 0:T.toString())||"/",skuExtCode:pe.extCode||"/",price:pe.supplierPrice||"/",createdTime:(S=oe.statusTime)!=null&&S.createdTime?Sm(oe.statusTime.createdTime):"/",selectedTime:(M=oe.statusTime)!=null&&M.selectedTime?Sm(oe.statusTime.selectedTime):"/",addedToSiteTime:(P=oe.statusTime)!=null&&P.addedToSiteTime?Sm(oe.statusTime.addedToSiteTime):"/",qcCompletedTime:(N=oe.statusTime)!=null&&N.qcCompletedTime?Sm(oe.statusTime.qcCompletedTime):"/",priceVerificationTime:(B=oe.statusTime)!=null&&B.priceVerificationTime?Sm(oe.statusTime.priceVerificationTime):"/",firstPurchaseTime:(O=oe.statusTime)!=null&&O.firstPurchaseTime?Sm(oe.statusTime.firstPurchaseTime):"/"};d||delete ve.image;const ge=L.addRow(ve);ge.height=d?80:25,ge.alignment={vertical:"middle",horizontal:"left",wrapText:!1},A&&(W.has(ve.spu)||W.set(ve.spu,[]),W.get(ve.spu).push(le),Q.has(ve.skc)||Q.set(ve.skc,[]),Q.get(ve.skc).push(le)),le++,fe++,fe%G===0&&(console.log(`已处理 ${fe} 条数据`),await new Promise(ue=>setTimeout(ue,0)))}}}if(A){const Y=d?1:0;for(const[K,oe]of W)if(oe.length>1){const pe=Math.min(...oe),ve=Math.max(...oe),ge=[0+Y,1+Y,2+Y,3+Y,11+Y,12+Y,13+Y,14+Y,15+Y,16+Y];for(const ue of ge)if(ue>=0)try{L.mergeCells(pe,ue,ve,ue)}catch(Te){console.warn(`合并SPU ${K} 列 ${ue} 失败:`,Te)}}for(const[K,oe]of Q)if(oe.length>1){const pe=Math.min(...oe),ve=Math.max(...oe),ge=[4+Y,5+Y,6+Y];for(const ue of ge)if(ue>=0)try{L.mergeCells(pe,ue,ve,ue)}catch(Te){console.warn(`合并SKC ${K} 列 ${ue} 失败:`,Te)}}}if(d&&fe<5e3){let Y=2;for(let K=0;K<y.length;K++){const oe=y[K];if((I=oe.carouselImageUrlList)!=null&&I[0])try{await $k(L,oe.carouselImageUrlList[0],Y,1)}catch{const ve=L.getCell(`A${Y}`);ve.value={text:"查看图片",hyperlink:oe.carouselImageUrlList[0]},ve.font={color:{argb:"FF0000FF"},underline:!0}}Y++,K%100===0&&await new Promise(pe=>setTimeout(pe,0))}}else d&&console.warn("数据量过大，已禁用图片插入功能");console.log("开始生成Excel文件...");const ie=await F.xlsx.writeBuffer(),he=new Blob([ie],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return gy.saveAs(he,h),console.log("导出完成"),!0}catch(F){throw console.error("导出Excel失败:",F),new Error("导出失败，请重试")}},m=we(!1),p=async y=>{m.value=!0;try{await g(s.value,`【Temu店铺：${l}】-上新周期列表导出数据.xlsx`,!1,y),ut.success("导出成功")}catch(h){ut.error("导出失败: "+h.message)}finally{m.value=!1}};return oa(()=>{o()}),$l(()=>{f()}),(y,h)=>{const d=Ce("el-button"),A=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】导出商品上新数据",type:"primary",url:St(ng),filter:i.value,returnKey:"dataList",data:s.value,"onUpdate:data":h[0]||(h[0]=v=>s.value=v),total:r.value,"onUpdate:total":h[1]||(h[1]=v=>r.value=v),onComplete:t,onIsListener:f},null,8,["url","filter","data","total"]),z(A,{title:"提示",class:"warp-float",modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=v=>n.value=v),width:600,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",center:"",onClose:o},{footer:q(()=>[de("div",Xne,[z(d,{type:"primary",plain:"",onClick:c,loading:m.value},{default:q(()=>[...h[3]||(h[3]=[Ue("按SKCID合并导出",-1)])]),_:1},8,["loading"]),z(d,{type:"primary",onClick:u,loading:m.value},{default:q(()=>[...h[4]||(h[4]=[Ue("按SKUID导出",-1)])]),_:1},8,["loading"])])]),default:q(()=>[h[5]||(h[5]=de("div",{style:{color:"#333","text-align":"left","line-height":"normal"}},"选择按skcId合并导出，则会将相同skcId进行合并单元格，注意如果您的商品sku数量很多，会导致耗时较长或出现页面无响应情况（请选择等待，程序并没有停止运行）。如选择按skuId导出则不进行合并，以sku为维度生成，导出速度较快！",-1))]),_:1},8,["modelValue"])],64)}}},Jne={style:{display:"flex","margin-top":"10px"},class:"volumn-form-dialog"},qne={style:{display:"flex","justify-content":"space-between"},class:"w-full"},eae={style:{display:"flex","flex-direction":"column","align-items":"center"}},tae={class:"flex justify-end items-center gap-2"},rae={__name:"BatchCancelSelect",setup(a){const s=we(!1),r=we(!1),i=we({isAll:"1"}),n=we({}),t=we(0),c=we(),u=we(),f=we({pageNum:1,pageSize:50,total:0}),o=we([]),l=we(!1),g=we(0),m=Kn(),p=async()=>{if(!document.querySelector('div[class*="TAB_active"]').textContent.match("待寄样")){ha({title:"凌风跨境工具箱(提示)",message:Zn("i",{style:"color: #F56C6C"},"请切换到待寄样分类"),duration:2e3});return}r.value=!0;const k=await m.initMall();if(r.value=!1,!!k)try{const T=await ix(m.mall);if(o.value=T,!T)return;s.value=!0}catch(T){console.error(T)}};function _(){const{pageNum:C,pageSize:k}=f.value;ng({pageNum:C,pageSize:k,secondarySelectStatusList:[3],supplierTodoTypeList:[]}).then(async({success:S,result:M,error_code:P,errorMsg:N})=>{if(S){f.value.total=M.total,M.dataList.forEach(O=>{o.value.push(O)});const B=f.value.pageSize*f.value.pageNum;if(B<M.total&&l.value)return c.value.setText(`正在获取数据(${B}/${M.total})`),f.value.pageNum+=1,_();c.value.close(),await h()}else ut.error(`获取商品列表失败: ${N}`)}).catch(S=>{ut.error(`获取商品列表失败: ${S.message}`)})}const y=C=>{u.value.validate(async k=>{k&&(o.value.length===0&&i.value.isAll==="1"||(l.value=!0,t.value=0,i.value.isAll==="0"?(c.value=B0.service({target:".volumn-form-dialog"}),o.value=[],_()):await h()))})};async function h(){await d(),l.value=!1,ut({message:"操作成功",type:"success"})}async function d(){var C;if(!l.value){c.value.close();return}try{const k=o.value[t.value];if(await iY({itemList:[{productId:k.productId,productSkcId:(C=k==null?void 0:k.skcList[0])==null?void 0:C.skcId}]}).catch(T=>{console.log(T)}),g.value=Math.floor((t.value+1)/o.value.length*100),t.value<o.value.length-1)return t.value++,d()}catch{}}const A=async C=>{l.value?Pn.confirm("是否确认中止修改","",{confirmButtonText:"确 定",cancelButtonText:"取 消",type:"warning"}).then(()=>{v(),C()}):(v(),C())};function v(){l.value=!1,o.value=[],c.value&&c.value.close(),i.value={isAll:"1"},f.value={pageNum:1,pageSize:50,total:0}}Ra(s,async C=>{});const w=()=>{window.mmsRobinSearchForChainSupplierListener&&window.removeEventListener("message",window.mmsRobinSearchForChainSupplierListener)};window.mmsRobinSearchForChainSupplierListener=C=>{if(C.data.type==="/api/kiana/mms/robin/searchForChainSupplier"||C.data.type==="/api/kiana/mms/robin/searchForSemiSupplier"){const{response:k,params:T}=C.data;delete T.pageNum,delete T.pageSize,n.value=JSON.parse(JSON.stringify(T))}};const x=()=>{w(),window.addEventListener("message",window.mmsRobinSearchForChainSupplierListener)};return oa(()=>{x()}),$l(async()=>{w(),await m.initMall()}),(C,k)=>{const T=Ce("el-button"),S=Ce("el-alert"),M=Ce("el-radio-button"),P=Ce("el-radio-group"),N=Ce("el-form-item"),B=Ce("el-progress"),O=Ce("el-form"),I=Ce("el-dialog");return Oe(),st(Zt,null,[z(T,{type:"primary",onClick:p,loading:r.value},{default:q(()=>[...k[3]||(k[3]=[Ue(" 【凌风跨境工具箱】批量撤回发布商品 ",-1)])]),_:1},8,["loading"]),z(I,{modelValue:s.value,"onUpdate:modelValue":k[2]||(k[2]=F=>s.value=F),"close-on-click-modal":!1,"close-on-press-escape":!1,top:"2vh",width:"33vw","before-close":A},{header:q(()=>[...k[4]||(k[4]=[de("div",{style:{display:"flex","align-items":"center"}},[de("h4",null,"【凌风跨境工具箱】批量撤回发布商品")],-1)])]),footer:q(()=>[de("div",tae,[z(T,{onClick:k[1]||(k[1]=F=>A(()=>{s.value=!1}))},{default:q(()=>[...k[8]||(k[8]=[Ue("关 闭",-1)])]),_:1})])]),default:q(()=>[z(S,{title:"执行结束后，最终的结果请关闭页面在商品列表查看",type:"warning","show-icon":"",closable:!1}),de("div",Jne,[z(O,{model:i.value,class:"w-full",ref_key:"formRef",ref:u},{default:q(()=>[z(N,{prop:"isAll",class:"w-full"},{default:q(()=>[de("div",qne,[z(P,{modelValue:i.value.isAll,"onUpdate:modelValue":k[0]||(k[0]=F=>i.value.isAll=F),"aria-label":"label position"},{default:q(()=>[z(M,{value:"1"},{default:q(()=>[Ue(" 当前列表勾选的商品("+ht(o.value.length)+") ",1)]),_:1}),z(M,{value:"0"},{default:q(()=>[...k[5]||(k[5]=[Ue("全部商品",-1)])]),_:1})]),_:1},8,["modelValue"]),z(T,{icon:St(U0),type:"primary",class:"custom-button",onClick:y},{default:q(()=>[...k[6]||(k[6]=[Ue("开始撤回 ",-1)])]),_:1},8,["icon"])])]),_:1}),k[7]||(k[7]=de("div",{style:{"margin-bottom":"5px",position:"relative","margin-left":"10px"}},[de("span",{style:{position:"absolute",left:"-8px",width:"3px",height:"100%","background-color":"#f97602","border-radius":"3px"}}),Ue(" 执行进度 ")],-1)),de("div",eae,[z(B,{type:"circle",percentage:g.value,color:"#f97602"},null,8,["percentage"])])]),_:1},8,["model"])])]),_:1},8,["modelValue"])],64)}}},nae=cn(rae,[["__scopeId","data-v-58babf51"]]),aae={class:"buttons-container"},iae={__name:"ProductSellerSelectPlugins",setup(a){const s=Kn(),{mall:r}=Au(s);return oa(async()=>{await s.initMall()}),(i,n)=>{var t,c;return Oe(),st("div",aae,[z(hre),z(Are),z(Hk),z(Gne),z(mre),St(r)&&!((t=St(r))!=null&&t.isSemiManagedMall)?(Oe(),Et(Tne,{key:0})):tr("",!0),z(No,null,{default:q(()=>[z(Nk,{type:"newon"})]),_:1}),St(r)&&!((c=St(r))!=null&&c.isSemiManagedMall)?(Oe(),Et(Lre,{key:1})):tr("",!0),z(Rre),z(No,null,{default:q(()=>[z(nae)]),_:1}),z(Zne)])}}},sae=cn(iae,[["__scopeId","data-v-705f03ac"]]),oae={};function lae(a,s){const r=Ce("el-button");return Oe(),Et(r,{class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/ShippingManage/GoodsOrder",target:"_blank",rel:""},{default:q(()=>[...s[0]||(s[0]=[Ue(" 一键前往【凌风跨境工具箱】智能抢仓页面 ",-1)])]),_:1})}const uae=cn(oae,[["render",lae]]);function cae(a){return pi({url:"/api/api/batchAddSubOrdersToDock",method:"post",data:a})}function fae(a){return pi({url:"/api/api/batchCreateDeliveryOrder",method:"post",data:a})}const dae={style:{display:"flex","justify-content":"flex-end","margin-top":"18px"}},hae={__name:"AddToShippingDesk",setup(a){const s=we(!1),r=ls(),i=Kn(),{mall:n}=Au(i),t=we(!1),c=we(void 0),u=we(!1),f=we(!1),o=we(),l=we(0);oa(async()=>{await r.getInfo()});const g=async _=>{t.value=!0;let y=await i.init();y&&(y=await _()),t.value=!1,y&&(s.value=!0,await m())};Ra(c,()=>{m()});const m=async()=>{const _={pageNo:1,pageSize:20,urgencyType:1,isCustomGoods:!1,statusList:[1],oneDimensionSort:{firstOrderByParam:"expectLatestDeliverTime",firstOrderByDesc:0},purchaseStockType:c.value};u.value=!0;try{const{success:y,errorMsg:h,result:d}=await Un({url:Vh?"/mms/venom/api/supplier/purchase/manager/querySubOrderList":"/oms/bg/venom/api/supplier/purchase/manager/querySubOrderList",method:"POST",data:_,headers:{mallid:n.value.mallId}});y?l.value=d.total:(ut.error(`获取总商品数量失败: ${h}`),l.value=0)}catch(y){ut.error(`获取总商品数量失败: ${y.message}`),l.value=0}finally{u.value=!1}},p=async()=>{f.value=!0;const _=Sf();try{o.value.start(_);const y={uuid:_,mallId:`${n.value.mallId}`,purchaseStockType:c.value},{status:h,error:d,errorMsg:A,errorDetails:v,successCnt:w,failCnt:x}=await cae(y);if(h!==0)ut.error(`操作失败: ${d||A}`),o.value.stop();else{let C="",k=v&&v.length>0;if(w&&(C+=`<p class="notify-success-text">${w} 个商品加入成功</p>`),x&&(C+=`<p class="notify-error-text">${x} 个商品加入失败</p>`),v&&v.length>0){C+='<ul style="padding: 0;">',C+="<li><p>失败商品信息:</p></li>";for(const S of v)C+=`<li>备货单号-${S.subOrderId}: ${S.errorInfo}</li>`;C+="</ul>"}const T=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:C})});ha({title:"提示",message:T,dangerouslyUseHTMLString:!1,type:k?"warning":"success",customClass:"CustomNotifications",duration:k?0:4e3}),k||(s.value=!1)}}catch(y){ut.error({message:`操作失败: ${y.message}`,showClose:!0,duration:0}),o.value.stop()}finally{f.value=!1}};return(_,y)=>{const h=Ce("el-button"),d=Ce("el-radio"),A=Ce("el-radio-group"),v=Ce("el-form-item"),w=Ce("el-form"),x=Ce("el-dialog"),C=Ai("loading");return Oe(),st(Zt,null,[z($0,null,{default:q(({checkAuth:k})=>[z(h,{class:"custom-button",type:"primary",onClick:T=>g(k),loading:t.value},{default:q(()=>[...y[3]||(y[3]=[Ue(" 【凌风跨境工具箱】一键加入发货台 ",-1)])]),_:1},8,["onClick","loading"])]),_:1}),z(x,{modelValue:s.value,"onUpdate:modelValue":y[2]||(y[2]=k=>s.value=k),title:"【凌风跨境工具箱】一键加入发货台"},{footer:q(()=>[z(jc,{ref_key:"progressRef",ref:o},null,512),de("div",dae,[z(h,{onClick:y[1]||(y[1]=k=>s.value=!1),disabled:f.value},{default:q(()=>[...y[7]||(y[7]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(h,{type:"primary",onClick:p,loading:f.value},{default:q(()=>[...y[8]||(y[8]=[Ue("确 定",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(w,null,{default:q(()=>[z(v,{label:"是否JIT:"},{default:q(()=>[z(A,{modelValue:c.value,"onUpdate:modelValue":y[0]||(y[0]=k=>c.value=k)},{default:q(()=>[z(d,{value:void 0},{default:q(()=>[...y[4]||(y[4]=[Ue("不限制",-1)])]),_:1}),z(d,{value:1},{default:q(()=>[...y[5]||(y[5]=[Ue("是",-1)])]),_:1}),z(d,{value:0},{default:q(()=>[...y[6]||(y[6]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),y[9]||(y[9]=de("div",{class:"tip"},[de("p",{style:{"font-weight":"bold"}},"提示:"),de("p",null,[Ue(" 该功能将根据"),de("span",{style:{"font-weight":"bold"}},"我的备货单"),Ue("中的 "),de("span",{style:{"font-weight":"bold"}},"紧急备货建议全部(非单页)"),Ue("以及符合上述 "),de("span",{style:{"font-weight":"bold"}},"筛选项"),Ue("的备货单的商品批量加入发货台。 ")]),de("p",null,"加入过程中请勿关闭或刷新页面,以免操作失败。")],-1)),na((Oe(),st("div",null,[Ue(" 满足筛选项的备货单数量: "+ht(l.value),1)])),[[C,u.value]])]),_:1},8,["modelValue"])],64)}}},Aae={class:"flex flex-wrap gap-2"},pae={__name:"OrderManageUrgencyPlugins",setup(a){const s=we(""),r=()=>{const i=window.location.pathname,n=setInterval(()=>{i!==window.location.pathname&&clearInterval(n);const t=document.querySelector('#root div[class*="TAB_tabTopOuter"]:last-child div[class*="TAB_tabContentInnerContainer"] div[class*="TAB_active"]');if(t){let c=t.innerText;const u=c.indexOf("(");u>-1&&(c=c.slice(0,u)),s.value!==c&&(s.value=c,console.log("activeTab.value",s.value))}},500)};return oa(()=>{r()}),(i,n)=>(Oe(),st("div",Aae,[z(R0,{"export-type":3}),z(uae),z(Uy),z(hae)]))}};function mae(a){return(a==null?void 0:a.querySelector('div[class*="copy-text_copy"]')).previousSibling.textContent}const gae={__name:"TableRowButtonGroup",setup(a){const s=we(),r=()=>{const i=s.value.closest("tr");try{return{orders:[mae(i)],ok:!0}}catch(n){return ut.error("获取备货单号失败, 可能是 TEMU 更新了页面, 请联系开发人员"),console.error(n),{ok:!1}}};return(i,n)=>(Oe(),st("div",{class:"flex flex-col gap-1",ref_key:"tableRowButtonGroupRef",ref:s},[z(ig,{"query-orders":r,"is-batch":!1,"order-type":"purchase"})],512))}},vae={class:"w-full"},yae={style:{width:"320px"}},bae={key:0},wae={style:{display:"flex","justify-content":"flex-end","margin-top":"18px",gap:"20px","align-items":"center"}},_ae={class:"flex items-center gap-1"},xae={key:0},Cae={__name:"AutoAddToShippingDesk",setup(a){const s=we(!1),r=we("block"),i=Kn(),{mall:n}=Au(i),t=we(!1),c=we(1),u=we(!1),f=we([]),o=we(0),l=async()=>{if(t.value=!0,!await i.init()){t.value=!1;return}if(u.value=!1,f.value=await m(),t.value=!1,f.value.length===0){ut.error("请先选择备货单");return}setTimeout(()=>{p()},1e3),o.value=f.value.length,s.value=!0},g=()=>{u.value&&_(),s.value=!1};Ra(r,h=>{document.documentElement.style.setProperty("--lf-modal-display",h)});const m=async()=>new Promise(h=>{let d;const v=(document.querySelector('#root div[class*="order-manage_handleCnt"]')||document.querySelector('#root div[class*="ordinary-stock-order-mgt_handleCnt"]')).querySelectorAll("button"),w=Array.from(v).find(C=>C.innerText.includes("打印商品条码"));if(w){if(Array.from(w.classList).find(C=>C.includes("BTN_disabled"))){h([]);return}d=w}else console.error("找不到打印按钮"),ut.error("无法找到备货单号, 可能是 TEMU 更新了页面, 请联系开发人员"),h([]);const x=C=>{if(C.data.type==="/marvel-mms/cn/api/kiana/venom/purchase/order/printProductSkuLabelForPurchaseOrder"||C.data.type==="/mms/venom/api/supplier/purchase/manager/printProductSkuLabelForPurchaseOrder"){const{success:k,errorMsg:T,result:S}=C.data.response;if(!k){ut.error(`操作失败: ${T}`);return}const{subPurchaseOrderSnList:M}=C.data.params;h(M),window.removeEventListener("message",x)}};d?(r.value="none",window.addEventListener("message",x),d.click()):(ut.error("无法获取到备货单, 可能是 TEMU 更新了页面, 请联系开发人员"),h([]))}),p=()=>{const h=document.querySelectorAll('div[class*="Drawer_outerWrapper"] div[class*="index-module__footer"] button');Array.from(h).forEach(d=>{d.innerText.includes("取消")&&d.click()}),r.value="block"},_=async()=>{if(u.value=!u.value,u.value){const h=new Map;let d=0;const A=async()=>{if(!u.value)return;const v=f.value[d];try{const{success:w,errorMsg:x}=await y(v);if(w){if(x?ha.warning({message:`${v} ${x}`,duration:2e3}):ha.success({message:`${v} 已加入发货台`,duration:2e3}),f.value.splice(d,1),f.value.length===0){await il(),ha.success({message:"所有订单已加入发货台",duration:5e3}),u.value=!1,s.value=!1;return}}else{const C=h.get(v)||1;h.set(v,C+1),ha.error({message:`${v} 第${C}次加入发货台失败: ${x}`,duration:2e3}),d=(d+1)%f.value.length}}catch(w){console.error("请求异常:",w),d=(d+1)%f.value.length}setTimeout(A,c.value*1e3)};await A()}},y=async h=>{const{success:d,errorMsg:A,result:v}=await Un({url:Vh?"/mms/venom/api/supplier/purchase/manager/batchJoinDeliveryOrderPlatformV2":"/oms/bg/venom/api/supplier/purchase/manager/batchJoinDeliveryOrderPlatformV2",method:"POST",data:{joinDeliveryPlatformRequestList:[{subPurchaseOrderSn:h}]},headers:{mallid:n.value.mallId},timeout:2e4});if(!d)return{success:!1,errorMsg:A};const{isSuccess:w,errorInfoList:x,successInfoList:C}=v;if(x&&x.length>0){const k=x[0];return{success:k.errorCode===60002,errorMsg:k.errorMsg}}return{success:w,errorMsg:""}};return(h,d)=>{const A=Ce("el-button"),v=Ce("el-scrollbar"),w=Ce("el-tooltip"),x=Ce("el-input-number"),C=Ce("el-form-item"),k=Ce("el-form"),T=Ce("el-icon"),S=Ce("el-dialog");return Oe(),st(Zt,null,[z(A,{class:"custom-button",type:"primary",onClick:l,loading:t.value},{default:q(()=>[...d[2]||(d[2]=[Ue(" 【凌风跨境工具箱】批量自动加入发货台 ",-1)])]),_:1},8,["loading"]),z(S,{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=M=>s.value=M),title:"【凌风跨境工具箱】批量自动加入发货台"},{footer:q(()=>[de("div",wae,[z(A,{onClick:g,disabled:u.value||t.value},{default:q(()=>[...d[4]||(d[4]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(A,{type:"primary",onClick:_,loading:t.value},{default:q(()=>[de("div",_ae,[u.value?(Oe(),st("div",xae,[z(T,{class:"is-loading"},{default:q(()=>[z(St(Xh))]),_:1})])):tr("",!0),de("div",null,ht(u.value?"停止":"开始"),1)])]),_:1},8,["loading"])])]),default:q(()=>[de("div",vae,[z(w,null,{content:q(()=>[de("div",yae,[z(v,{"max-height":"520px"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(f.value,M=>(Oe(),st("p",{key:M},ht(M),1))),128))]),_:1})])]),default:q(()=>[de("span",null,"当前选中备货单数量: "+ht(o.value),1)]),_:1})]),d[5]||(d[5]=de("div",{class:"tip"},[de("p",{style:{"font-weight":"bold"}},"提示:"),de("p",null,"加入过程中请勿关闭或刷新页面,以免操作失败。")],-1)),z(k,{disabled:u.value},{default:q(()=>[z(C,{label:"执行间隔:"},{default:q(()=>[z(x,{modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=M=>c.value=M),min:1,step:.1,precision:1},{suffix:q(()=>[...d[3]||(d[3]=[de("span",null,"秒",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["disabled"]),u.value?(Oe(),st("div",bae," 剩余代发货备货单数量: "+ht(f.value.length),1)):tr("",!0)]),_:1},8,["modelValue"])],64)}}},Sae={class:"flex items-center gap-4 text-xs"},kae=["title"],Tae={class:"mt-1"},Eae={style:{color:"#303133"}},Iae={class:"mt-1"},Bae={style:{color:"#303133"}},Fae={class:"bg-white px-2.5 flex items-center gap-4"},Mae={class:"flex justify-between mt-5"},Dae={key:0,class:"selectionNum"},ox={__name:"StockListTable",props:{data:Array},setup(a,{expose:s}){const r=a,i=we({page:1,pageSize:10}),n=we(),t=y=>{o()},c=y=>{o()},u=Pr(()=>{const y=i.value.page*i.value.pageSize;return r.data.slice(y-i.value.pageSize,y)}),f=we({}),o=()=>{il(()=>{n.value&&r.data.filter(h=>f.value[h.subPurchaseOrderSn]).forEach(h=>{n.value.toggleRowSelection(h,!0)})})},l=y=>{const h={};y.length>0?y.forEach(d=>{h[d.subPurchaseOrderSn]=!0}):u.value.forEach(d=>{delete h[d.subPurchaseOrderSn]}),f.value=h},g=y=>{l(y)},m=y=>{l(y)},p=Pr(()=>r.data.filter(y=>f.value[y.subPurchaseOrderSn])),_=()=>{f.value={},n.value.clearSelection()};return s({multipleSelection:p}),(y,h)=>{const d=Ce("el-table-column"),A=Ce("el-text"),v=Ce("el-image"),w=Ce("el-table"),x=Ce("el-pagination");return Oe(),st(Zt,null,[z(w,iA(y.$attrs,sA(y.$attrs),{class:"w-full",style:{height:"74vh"},data:u.value,"row-key":"subPurchaseOrderSn","row-class-name":"cursor-pointer",onSelect:g,onSelectAll:m,ref_key:"multipleTableRef",ref:n}),{default:q(()=>[z(d,{type:"selection",width:"55"}),z(d,{label:"备货单号",prop:""},{default:q(({row:C})=>[z(A,{type:"warning"},{default:q(()=>[Ue(" 备货母单号："+ht(C.subPurchaseOrderSn),1)]),_:2},1024)]),_:1}),z(d,{label:"商品信息"},{default:q(({row:C})=>[de("div",Sae,[de("div",null,[z(v,{style:{width:"50px",height:"50px"},src:C.productSkcPicture},null,8,["src"])]),de("div",null,[de("p",null,[z(A,{type:"warning"},{default:q(()=>[Ue(" 备货母单号："+ht(C.originalPurchaseOrderSn),1)]),_:2},1024)]),de("p",null,[de("span",{title:C.productName,class:"font-bold text-[14px] line-clamp-2",style:{color:"#303133"}},ht(C.productName),9,kae)]),de("p",Tae,[h[4]||(h[4]=de("span",{style:{color:"#606266"}},"SKC：",-1)),de("span",Eae,ht(C.productSkcId),1)]),de("p",Iae,[h[5]||(h[5]=de("span",{style:{color:"#606266"}},"SKC货号：",-1)),de("span",Bae,ht(C.productSn||"--"),1)])])])]),_:1}),z(d,{label:"类目",prop:"category"}),z(d,{label:"SKU信息"},{default:q(({row:C})=>[(Oe(!0),st(Zt,null,Hr(C.skuQuantityDetailList,k=>(Oe(),st("div",Fae,[de("div",null,[z(v,{style:{width:"50px",height:"50px"},src:k.thumbUrlList[0]},null,8,["src"])]),de("div",null,[de("p",null,"属性："+ht(k==null?void 0:k.className),1),de("p",null,"SKU ID："+ht(k==null?void 0:k.productSkuId),1),de("p",null,"货号："+ht(k.extCode||"--"),1),de("p",null,"币种："+ht(k.currencyType||"--"),1),z(A,{type:"warning"},{default:q(()=>[de("span",null,"申报报价："+ht((k.supplierPrice/100).toFixed(2)),1),h[6]||(h[6]=Ue()),de("span",null,"备货件数："+ht(k==null?void 0:k.purchaseQuantity),1)]),_:2},1024)])]))),256))]),_:1}),z(d,{label:"件数合计",prop:"skcId"},{default:q(({row:C})=>[z(A,{type:"warning"},{default:q(()=>[Ue(ht(C.skuQuantityTotalInfo.purchaseQuantity),1)]),_:2},1024)]),_:1}),z(d,{label:"备货单创建时间"},{default:q(({row:C})=>[de("div",null,ht(new Date(C.purchaseTime).toLocaleString()),1)]),_:1})]),_:1},16,["data"]),de("div",Mae,[de("div",null,[p.value.length?(Oe(),st("div",Dae,[h[8]||(h[8]=Ue("已选择 ",-1)),z(A,{class:"mx-1 font-bold",onClick:h[0]||(h[0]=C=>_()),type:"primary"},{default:q(()=>[Ue(ht(p.value.length),1)]),_:1}),h[9]||(h[9]=Ue()),z(A,{class:"mx-1",onClick:h[1]||(h[1]=C=>_()),type:"primary"},{default:q(()=>[...h[7]||(h[7]=[Ue("取消选择",-1)])]),_:1})])):tr("",!0)]),z(x,{"current-page":i.value.page,"onUpdate:currentPage":h[2]||(h[2]=C=>i.value.page=C),"page-size":i.value.pageSize,"onUpdate:pageSize":h[3]||(h[3]=C=>i.value.pageSize=C),"page-sizes":[10,20,50,100],background:!0,layout:"total, prev, pager, next, sizes",total:r.data.length,onSizeChange:t,onCurrentChange:c},null,8,["current-page","page-size","total"])])],64)}}},Oae={class:"flex items-center justify-between gap-2 mt-3"},Lae={class:"flex items-center gap-2"},Pae={class:"flex items-center gap-2"},Rae={key:0,class:"flex items-center gap-2"},Uae={__name:"BatchSendOutGoods",setup(a){const s=we([]),r=we([]),i=we(0),n=we({isCustomGoods:!1,oneDimensionSort:{firstOrderByParam:"expectLatestDeliverTime",firstOrderByDesc:0},statusList:[1],urgencyType:0}),t=we(!1),c=we(!1),u=we(),f=we(),o=we(!1),l=Pr(()=>{var x;return(x=u.value)==null?void 0:x.multipleSelection});Ra(()=>s.value,x=>{r.value=x.filter(C=>C.isCanJoinDeliverPlatform)||[]});const g=()=>{t.value=!0},m=()=>{try{Pn.confirm("确定对全部商品加入发货台吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{_.value=r.value,v()})}catch{}t.value=!0},p=()=>{if(!l.value.length)return ut.warning("请选择商品");try{Pn.confirm("确定对所选商品加入发货台吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{_.value=l.value,v()})}catch{}},_=we(),y=x=>{console.log("处理完成",x),A(x)},h=(x,C)=>{console.error("处理出错",x,C),A(C)},d=x=>{console.log("处理已取消",x),A(x)},A=x=>{c.value=!1;let C=[],k=[];if(x.forEach(T=>{T.result.forEach(S=>{S.errorMsg&&(k.push(S.extraInfoMap.productId),C.push(Zn("div",{class:"error_message"},`商品SPUID:【${S.extraInfoMap.productId}】加入发货台失败，原因[官方提示]:${S.errorMsg}`)))})}),C.length==0)return ut.success("操作完成");Pn({title:C.length?`提示:失败商品总数为【 ${C.length} 】条`:"提示",message:Zn(_i,{height:"400px"},[C]),showCancelButton:!0,confirmButtonText:"复制所有失败SPUID",cancelButtonText:"关闭",beforeClose:async(T,S,M)=>{T==="confirm"&&await ag(k.join(",")),M()}}).then(T=>{})},v=()=>{c.value=!0},w=async(x,C)=>{let k=[];if(x.forEach(M=>{k.push({subPurchaseOrderSn:M.subPurchaseOrderSn})}),C.aborted)throw new Error("请求被取消");let{result:T,success:S}=await UX({joinDeliveryPlatformRequestList:k});if(S)return T.errorInfoList;throw new Error("处理失败: 服务器错误")};return(x,C)=>{const k=Ce("el-alert"),T=Ce("el-button"),S=Ce("el-divider"),M=Ce("QuestionFilled"),P=Ce("el-icon"),N=Ce("el-popover"),B=Ce("el-switch"),O=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】批量加入发货台",type:"primary",url:St(ax),filter:n.value,returnKey:"subOrderForSupplierList",pageNumKey:"pageNo",data:s.value,"onUpdate:data":C[0]||(C[0]=I=>s.value=I),total:i.value,"onUpdate:total":C[1]||(C[1]=I=>i.value=I),onComplete:g,onIsListener:x.removeListener,ref_key:"getDataRef",ref:f},null,8,["url","filter","data","total","onIsListener"]),z(O,{class:"warp-float",modelValue:t.value,"onUpdate:modelValue":C[6]||(C[6]=I=>t.value=I),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[...C[7]||(C[7]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】待发货商品-批量加入发货台")],-1)])]),default:q(()=>[z(k,{closable:!1,title:"提示:仅展示官方列表中已打【今日可发货】标签的商品。",type:"warning"}),de("div",Oae,[de("div",Lae,[z(T,{type:"primary",onClick:m,disabled:r.value.length==0||f.value.loading},{default:q(()=>[...C[8]||(C[8]=[Ue(" 一键全部加入发货台 ",-1)])]),_:1},8,["disabled"]),z(T,{type:"primary",plain:"",onClick:p,disabled:r.value.length==0||f.value.loading},{default:q(()=>[...C[9]||(C[9]=[Ue("加入已选到发货台",-1)])]),_:1},8,["disabled"]),z(S,{direction:"vertical"}),de("div",Pae,[C[10]||(C[10]=de("span",null,"是否自动创建发货单",-1)),z(N,{class:"box-item",title:"",effect:"dark",content:"勾选后将自动为加入发货台成功的商品创建发货单，未勾选则需自己去发货台查看操作~",placement:"bottom"},{reference:q(()=>[z(P,null,{default:q(()=>[z(M)]),_:1})]),_:1}),z(B,{modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=I=>o.value=I),style:{"margin-left":"24px"},"inline-prompt":"","active-icon":St(e_),"inactive-icon":St(RC)},null,8,["modelValue","active-icon","inactive-icon"])]),z(S,{direction:"vertical"}),o.value?(Oe(),st("div",Rae,[C[12]||(C[12]=de("span",null,"是否自动创建发货单:否",-1)),z(T,{plain:"",onClick:C[3]||(C[3]=()=>{})},{default:q(()=>[...C[11]||(C[11]=[Ue("获取",-1)])]),_:1})])):tr("",!0)]),z(T,{plain:"",loading:f.value.loading,onClick:C[4]||(C[4]=I=>f.value.refresh())},{default:q(()=>[...C[13]||(C[13]=[Ue("刷新数据",-1)])]),_:1},8,["loading"])]),z(K0,{data:_.value,requestHandler:w,dialogVisible:c.value,"onUpdate:dialogVisible":C[5]||(C[5]=I=>c.value=I),autoStart:"true",onComplete:y,onError:h,onAbort:d},null,8,["data","dialogVisible"]),z(ox,{class:"mt-3",data:r.value,ref_key:"TableRef",ref:u},null,8,["data"])]),_:1},8,["modelValue"])],64)}}},Nae={class:"flex gap-2 mt-3"},jae={__name:"BatchCancelStockList",setup(a){const s=we([]),r=we(0),i=we({isCustomGoods:!1,oneDimensionSort:{firstOrderByParam:"expectLatestDeliverTime",firstOrderByDesc:0},statusList:[0],urgencyType:0}),n=we(!1),t=we(!1),c=we(),u=Pr(()=>{var A;return(A=c.value)==null?void 0:A.multipleSelection}),f=()=>{n.value=!0},o=()=>{try{Pn.confirm("确定对全部取消备货单吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{g.value=s.value,h()})}catch{}n.value=!0},l=()=>{if(!u.value.length)return ut.warning("请选择商品");try{Pn.confirm("确定对所选商品取消备货单吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{g.value=u.value,h()})}catch{}},g=we(),m=A=>{console.log("处理完成",A),y(A)},p=(A,v)=>{console.error("处理出错",A,v),y(v)},_=A=>{console.log("处理已取消",A),y(A)},y=A=>{t.value=!1;let v=[],w=[];if(A.forEach(x=>{var C;(C=x.error)!=null&&C.error&&v.push(Zn("div",{class:"error_message"},`${x.error.message}`))}),v.length==0)return ut.success("操作完成");Pn({title:v.length?`提示:失败商品总数为【 ${v.length} 】条`:"提示",message:Zn(_i,{height:"400px"},[v]),showCancelButton:!0,showConfirmButton:!1,confirmButtonText:"复制所有失败SPUID",cancelButtonText:"关闭",beforeClose:async(x,C,k)=>{x==="confirm"&&await ag(w.join(",")),k()}}).then(x=>{})},h=()=>{t.value=!0},d=async(A,v)=>{let w=[];if(A.forEach(T=>{w.push(T.subPurchaseOrderSn)}),v.aborted)throw new Error("请求被取消");let{result:x,success:C,errorMsg:k}=await jX({subPurchaseOrderSnList:w});if(C)return x==null?void 0:x.failedDetails;throw new Error(`处理失败: ${k}`)};return(A,v)=>{const w=Ce("el-button"),x=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】批量取消备货单",type:"primary",url:St(ax),filter:i.value,returnKey:"subOrderForSupplierList",pageNumKey:"pageNo",data:s.value,"onUpdate:data":v[0]||(v[0]=C=>s.value=C),total:r.value,"onUpdate:total":v[1]||(v[1]=C=>r.value=C),onComplete:f,onIsListener:A.removeListener},null,8,["url","filter","data","total","onIsListener"]),z(x,{class:"warp-float",modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=C=>n.value=C),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[...v[4]||(v[4]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】待创建商品-批量取消备货单")],-1)])]),default:q(()=>[de("div",Nae,[z(w,{type:"primary",onClick:o,disabled:s.value.length==0},{default:q(()=>[...v[5]||(v[5]=[Ue(" 一键全部取消备货单 ",-1)])]),_:1},8,["disabled"]),z(w,{type:"primary",plain:"",onClick:l,disabled:s.value.length==0},{default:q(()=>[...v[6]||(v[6]=[Ue("一键取消已选备货单",-1)])]),_:1},8,["disabled"])]),z(K0,{data:g.value,requestHandler:d,dialogVisible:t.value,"onUpdate:dialogVisible":v[2]||(v[2]=C=>t.value=C),autoStart:"true",onComplete:m,onError:p,onAbort:_},null,8,["data","dialogVisible"]),z(ox,{class:"mt-3",data:s.value,ref_key:"TableRef",ref:c},null,8,["data"])]),_:1},8,["modelValue"])],64)}}},Hae={class:"flex gap-2 mt-3"},Qae={__name:"BatchCancellationStockList",setup(a){const s=we([]),r=we(0),i=we({isCustomGoods:!1,oneDimensionSort:{firstOrderByParam:"expectLatestDeliverTime",firstOrderByDesc:0},statusList:[1],urgencyType:0}),n=we(!1),t=we(!1),c=we(),u=Pr(()=>{var A;return(A=c.value)==null?void 0:A.multipleSelection}),f=()=>{n.value=!0},o=()=>{try{Pn.confirm("确定对全部商品申请作废备货单吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{g.value=s.value,h()})}catch{}n.value=!0},l=()=>{if(!u.value.length)return ut.warning("请选择商品");try{Pn.confirm("确定对所选商品申请作废备货单吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{g.value=u.value,h()})}catch{}},g=we([1]),m=A=>{console.log("处理完成",A),y(A)},p=(A,v)=>{console.error("处理出错",A,v),y(v)},_=A=>{console.log("处理已取消",A),y(A)},y=A=>{t.value=!1;let v=[],w=[];if(A.forEach(x=>{var C;(C=x.error)!=null&&C.error&&v.push(Zn("div",{class:"error_message"},`${x.error.message}`))}),v.length==0)return ut.success("操作完成");Pn({title:v.length?`提示:失败商品总数为【 ${v.length} 】条`:"提示",message:Zn(_i,{height:"400px"},[v]),showCancelButton:!0,showConfirmButton:!1,confirmButtonText:"复制所有失败SPUID",cancelButtonText:"关闭",beforeClose:async(x,C,k)=>{x==="confirm"&&await ag(w.join(",")),k()}}).then(x=>{})},h=()=>{t.value=!0},d=async(A,v)=>{let w=[];if(A.forEach(T=>{w.push(T.subPurchaseOrderSn)}),v.aborted)throw new Error("请求被取消");let{result:x,success:C,errorMsg:k}=await NX({applyDeleteReason:"申请作废",subPurchaseOrderSnList:w});if(C)return x==null?void 0:x.failedDetails;throw new Error(`处理失败: ${k}`)};return(A,v)=>{const w=Ce("el-button"),x=Ce("el-dialog");return Oe(),st(Zt,null,[z(fA,{title:"【凌风跨境工具箱】批量作废备货单",type:"primary",url:St(ax),filter:i.value,returnKey:"subOrderForSupplierList",pageNumKey:"pageNo",data:s.value,"onUpdate:data":v[0]||(v[0]=C=>s.value=C),total:r.value,"onUpdate:total":v[1]||(v[1]=C=>r.value=C),concurrency:3,onComplete:f,onIsListener:A.removeListener},null,8,["url","filter","data","total","onIsListener"]),z(x,{class:"warp-float",modelValue:n.value,"onUpdate:modelValue":v[3]||(v[3]=C=>n.value=C),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[...v[4]||(v[4]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】待发货商品-批量作废备货单")],-1)])]),default:q(()=>[de("div",Hae,[z(w,{type:"primary",onClick:o,disabled:s.value.length==0},{default:q(()=>[...v[5]||(v[5]=[Ue(" 一键全部申请作废备货单 ",-1)])]),_:1},8,["disabled"]),z(w,{type:"primary",plain:"",onClick:l,disabled:s.value.length==0},{default:q(()=>[...v[6]||(v[6]=[Ue("一键申请已选作废备货单",-1)])]),_:1},8,["disabled"])]),z(K0,{data:g.value,requestHandler:d,dialogVisible:t.value,"onUpdate:dialogVisible":v[2]||(v[2]=C=>t.value=C),autoStart:"true",onComplete:m,onError:p,onAbort:_},null,8,["data","dialogVisible"]),z(ox,{class:"mt-3",data:s.value,ref_key:"TableRef",ref:c},null,8,["data"])]),_:1},8,["modelValue"])],64)}}},zae={class:"flex flex-wrap gap-2"},Vae={__name:"OrderManagePlugins",setup(a){const s=we(""),r=()=>{const u=window.location.pathname,f=setInterval(()=>{u!==window.location.pathname&&clearInterval(f);const o=document.querySelector('#root div[class*="TAB_tabTopOuter"]:last-child div[class*="TAB_tabContentInnerContainer"] div[class*="TAB_active"]');if(o){let l=o.innerText;const g=l.indexOf("(");g>-1&&(l=l.slice(0,g)),s.value!==l&&(s.value=l)}},500)};let i=null;function n(){i&&clearInterval(i);let u=window.location.pathname;i=setInterval(()=>{if(window.location.pathname!==u){clearInterval(i);return}if(["全部","待创建","待发货"].includes(s.value)){const o=document.querySelectorAll('#root tbody tr td[class*="TB_rightSticky"]');Array.from(o).filter(g=>{const m=g.querySelectorAll("a");return Array.from(m).some(p=>p.innerText.includes("打印商品条码"))}).forEach(g=>{if(!g.querySelector(".lingfeng-custom-buttons")){const m=document.createElement("div");m.className="lingfeng-custom-buttons",g.appendChild(m),ks(m,gae)}})}},1e3)}const t=u=>{const o=(document.querySelector('#root div[class*="order-manage_handleCnt"]')||document.querySelector('#root div[class*="ordinary-stock-order-mgt_handleCnt"]')).querySelectorAll("button"),l=Array.from(o).find(g=>g.innerText.includes("打印商品条码"));if(l){if(Array.from(l.classList).find(g=>g.includes("BTN_disabled"))){ut.error("请先选择商品"),u({ok:!1});return}l.click()}else console.error("找不到打印按钮"),ut.error("无法找到备货单号, 可能是 TEMU 更新了页面, 请联系开发人员"),u({ok:!1})},c=async()=>new Promise((u,f)=>{try{const o=l=>{if(l.data.type==="/marvel-mms/cn/api/kiana/venom/purchase/order/printProductSkuLabelForPurchaseOrder"||l.data.type==="/mms/venom/api/supplier/purchase/manager/printProductSkuLabelForPurchaseOrder"){const{subPurchaseOrderSnList:g}=l.data.params;u({orders:g,ok:!0}),window.removeEventListener("message",o)}};window.addEventListener("message",o),t(u)}catch(o){console.error(o),ut.error(`获取备货单失败: ${o.message}`),u({ok:!1})}});return oa(()=>{r(),n()}),(u,f)=>(Oe(),st("div",zae,[z(R0,{"export-type":9}),z(R0,{"export-type":11}),z(Uy),["全部","待创建","待发货"].includes(s.value)?(Oe(),Et(ig,{key:0,"is-batch":!0,"query-orders":c,"order-type":"purchase"})):tr("",!0),z(Cae),z(Uae),z(Qae),z(jae)]))}},Wae=cn(Vae,[["__scopeId","data-v-7ed37342"]]),Gae={style:{display:"flex","justify-content":"flex-end","margin-top":"18px"}},$ae={__name:"CreateShippingOrders",setup(a){const s=we(!1),r=Kn(),i=ls(),{mall:n}=Au(r),t=we(!1),c=we(!1),u=we(!1),f=we(!1),o=we(),l=we([]),g=we({deliveryAddressId:null}),m=we(),p=we(0);oa(async()=>{await i.getInfo()});const _=async A=>{t.value=!0;let v=await r.init();v&&(v=await A()),t.value=!1,v&&(s.value=!0,await y(),await h())},y=async()=>{const A={pageNo:1,pageSize:20};c.value=!0;try{const{success:v,errorMsg:w,result:x}=await Un({url:"https://seller.kuajingmaihuo.com/bgSongbird-api/supplier/deliverGoods/platform/pageQuerySubPurchaseOrder",method:"POST",data:A,headers:{mallid:n.value.mallId}});v?p.value=x.total:(ut.error(`获取备货单数量失败: ${w}`),p.value=0)}catch(v){ut.error(`获取备货单品数量失败: ${v.message}`),p.value=0}finally{c.value=!1}},h=async()=>{const A={pageNo:1,pageSize:20};u.value=!0;try{const{success:v,errorMsg:w,result:x}=await Un({url:"https://seller.kuajingmaihuo.com/bgSongbird-api/supplier/deliverGoods/platform/querySupplierAddressInfo",method:"POST",data:A,headers:{mallid:n.value.mallId}});if(!v)ut.error(`获取发货仓库失败: ${w}`),l.value=[];else{l.value=x.supplierAddressList;for(const C of l.value)if(C.isDefault){A.deliveryAddressId=C.id;break}console.log("supplierAddressList",l.value)}}catch(v){ut.error(`获取发货仓库失败: ${v.message}`),l.value=[]}finally{u.value=!1}},d=async()=>{if(!await o.value.validate())return;f.value=!0;const v=Sf();try{m.value.start(v);const w={uuid:v,mallId:`${n.value.mallId}`,deliveryAddressId:g.value.deliveryAddressId},{status:x,error:C,errorMsg:k,errorDetails:T,successCnt:S,failCnt:M}=await fae(w);if(x!==0)ut.error(`操作失败: ${C||k}`),m.value.stop();else{let P="",N=T&&T.length>0;if(S&&(P+=`<p class="notify-success-text">${S} 个商品加入成功</p>`),M&&(P+=`<p class="notify-error-text">${M} 个商品加入失败</p>`),T&&T.length>0){P+='<ul style="padding: 0;">',P+="<li><p>失败商品信息:</p></li>";for(const O of T)P+=`<li>备货单号-${O.subOrderId}: ${O.errorInfo}</li>`;P+="</ul>"}const B=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:P})});ha({title:"提示",message:B,dangerouslyUseHTMLString:!1,type:N?"warning":"success",customClass:"CustomNotifications",duration:N?0:4e3}),N||(s.value=!1)}}catch(w){ut.error({message:`操作失败: ${w.message}`,showClose:!0,duration:0}),m.value.stop()}finally{f.value=!1}};return(A,v)=>{const w=Ce("el-button"),x=Ce("el-form-item"),C=Ce("el-option"),k=Ce("el-select"),T=Ce("el-form"),S=Ce("el-dialog"),M=Ai("loading");return Oe(),st(Zt,null,[z($0,null,{default:q(({checkAuth:P})=>[z(w,{class:"custom-button",type:"primary",onClick:N=>_(P),loading:t.value},{default:q(()=>[...v[3]||(v[3]=[Ue(" 【凌风跨境工具箱】一键创建发货单 ",-1)])]),_:1},8,["onClick","loading"])]),_:1}),z(S,{modelValue:s.value,"onUpdate:modelValue":v[2]||(v[2]=P=>s.value=P),title:"【凌风跨境工具箱】一键创建发货单"},{footer:q(()=>[z(jc,{ref_key:"progressRef",ref:m},null,512),de("div",Gae,[z(w,{onClick:v[1]||(v[1]=P=>s.value=!1),disabled:f.value},{default:q(()=>[...v[4]||(v[4]=[Ue("取 消",-1)])]),_:1},8,["disabled"]),z(w,{type:"primary",onClick:d,loading:f.value},{default:q(()=>[...v[5]||(v[5]=[Ue("确 定",-1)])]),_:1},8,["loading"])])]),default:q(()=>[v[6]||(v[6]=de("div",{class:"tip"},[de("p",{style:{"font-weight":"bold"}},"提示:"),de("p",null,[Ue(" 该功能将根据"),de("span",{style:{"font-weight":"bold"}},"发货台"),Ue("中的"),de("span",{style:{"font-weight":"bold"}},"全部(非单页)"),Ue("备货单的商品批量加入发货单列表。 ")]),de("p",null,"创建过程中请勿关闭或刷新页面,以免操作失败。")],-1)),z(T,{model:g.value,disabled:f.value,ref_key:"formRef",ref:o},{default:q(()=>[z(x,null,{default:q(()=>[na((Oe(),st("div",null,[Ue(" 当前备货单数量: "+ht(p.value),1)])),[[M,c.value]])]),_:1}),z(x,{label:"发货仓库:",prop:"deliveryAddressId",rules:[{required:!0,message:"请选择发货仓库",trigger:"blur"}]},{default:q(()=>[z(k,{modelValue:g.value.deliveryAddressId,"onUpdate:modelValue":v[0]||(v[0]=P=>g.value.deliveryAddressId=P),placeholder:"请选择发货仓库"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(l.value,P=>(Oe(),Et(C,{key:P.id,label:P.addressLabel,value:P.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])]),_:1},8,["modelValue"])],64)}}},Kae={class:"flex flex-wrap gap-2"},Yae={__name:"ShippingDeskPlugins",setup(a){return(s,r)=>(Oe(),st("div",Kae,[z($ae)]))}},Xae={__name:"JumpToBatchActivityDeclaration",setup(a){const s=we(!1),r=()=>{const n=document.querySelectorAll('div[class*="TAB_lineLabel"]');s.value=Array.from(n).some(t=>{var c;return(c=t.textContent)==null?void 0:c.includes("营销活动首页")})},i=new MutationObserver(r);return oa(()=>{r(),i.observe(document.body,{childList:!0,subtree:!0})}),$l(()=>{i.disconnect()}),(n,t)=>{const c=Ce("el-button");return s.value?(Oe(),Et(c,{key:0,class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/productManagement/batchActivityDeclaration",target:"_blank",rel:""},{default:q(()=>[...t[0]||(t[0]=[Ue(" 一键前往【凌风跨境工具箱】批量活动申报页面 ",-1)])]),_:1})):tr("",!0)}}},Zae={};function Jae(a,s){const r=Ce("el-button");return Oe(),Et(r,{type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/dataCenter/salesDeductionDetails",target:"_blank"},{default:q(()=>[...s[0]||(s[0]=[Ue(" 【凌风跨境工具箱】查看售后扣款详情 ",-1)])]),_:1})}const qae=cn(Zae,[["render",Jae]]),eie=a=>pi({url:"/api/api/ReconciliationCenterExport",method:"post",data:a}),tie=()=>pi({url:"/api/api/ReconciliationCenterExportLink",method:"post",data:{}}),rie=xi({__name:"ExportSales",setup(a){const s=Kn(),r=we(!1),i=we(!1),n=we(!1),t=we(),c=new Date,u=new Date(c.getTime()-3600*1e3*24*7),f=new Date(c.getTime()-3600*1e3*24*30),o=new Date(c.getTime()-3600*1e3*24*90),l=[{label:"结算",value:100},{label:"提现",value:200},{label:"代付",value:900},{label:"充值",disabled:!0,value:300},{label:"退费",disabled:!0,value:500},{label:"赔付",disabled:!0,value:800},{label:"其他",disabled:!0,value:1e3},{label:"冻结",disabled:!0,value:1100},{label:"解冻",disabled:!0,value:1200},{label:"转账",disabled:!0,value:1300},{label:"还款",disabled:!0,value:1400},{label:"还款退回",disabled:!0,value:1500}],g=we({fundType:null,dateValue:[f,c]}),m=async()=>{i.value=!0;const y=await s.init();i.value=!1,y&&(r.value=!0)},p=[{text:"最近一周",value:()=>[u,c]},{text:"最近30天",value:()=>[f,c]},{text:"最近90天",value:()=>[o,c]}],_=async()=>{var x,C,k,T,S;if(!Array.isArray(g.value.dateValue)||g.value.dateValue.length<1)return ut.error("请选择日期");const y=Sf(),{fundType:h,dateValue:d}=g.value,A=d[0],v=d[1];A.setHours(0,0,0,0),v.setHours(23,59,59,0);const w={fundType:h,beginTime:A.getTime(),endTime:v.getTime(),uuid:y,mallid:`${s.id}`};n.value=!0;try{(x=t.value)==null||x.start(y);const{status:M,error:P,errorMsg:N}=await eie(w);if(M!==0)if(n.value=!1,(C=t.value)==null||C.stop(),P){ut.error("导出失败"),console.error("导出失败:",P);return}else{ut.error(N);return}try{const{status:B,error:O,errorMsg:I,link:F}=await tie();if(B!==0){(k=t.value)==null||k.stop(),I?ut.error(I):(ut.error("下载异常"),console.error("下载异常:",O));return}const L=document.createElement("a");L.href=F,L.download=`${A.toLocaleDateString()}-${v.toLocaleDateString()}.xlsx`,L.click(),ut.success("导出成功")}catch(B){(T=t.value)==null||T.stop(),console.error(B),ut.error("导出失败")}}catch(M){(S=t.value)==null||S.stop(),console.error(M),ut.error("导出失败")}finally{n.value=!1}};return(y,h)=>{const d=Ce("el-button"),A=Ce("el-option"),v=Ce("el-select"),w=Ce("el-form-item"),x=Ce("el-date-picker"),C=Ce("el-form"),k=Ce("el-dialog");return Oe(),st(Zt,null,[z(d,{type:"primary",loading:i.value,onClick:m},{default:q(()=>[...h[3]||(h[3]=[Ue("【凌风跨境工具箱】批量导出明细",-1)])]),_:1},8,["loading"]),z(k,{modelValue:r.value,"onUpdate:modelValue":h[2]||(h[2]=T=>r.value=T),title:"批量导出明细"},{footer:q(()=>[z(jc,{ref_key:"progressTickerRef",ref:t},null,512),z(d,{type:"primary",onClick:_,loading:n.value,style:{"margin-top":"14px"}},{default:q(()=>[...h[4]||(h[4]=[Ue("导出",-1)])]),_:1},8,["loading"])]),default:q(()=>[h[5]||(h[5]=de("div",{class:"tip"},[de("p",{class:"font-bold"},"提示:"),de("p",null,[Ue("批量导出需要同时登录 "),de("a",{href:"https://agentseller.temu.com/main/authentication",target:"_blank",style:{"margin-left":"10px"}},"全球"),de("a",{href:"https://agentseller-us.temu.com/main/authentication",target:"_blank",style:{"margin-left":"10px"}},"美区"),de("a",{href:"https://agentseller-eu.temu.com/main/authentication",target:"_blank",style:{"margin-left":"10px"}},"欧区")]),de("p",null,"部分财务类型暂不支持, 需要支持其他财务类型请联系【凌风跨境工具箱】客服"),de("p",null,"导出过程中请勿关闭或刷新该页面,可能会导致导出失败")],-1)),z(C,{"label-position":"right","label-width":"100",model:g.value},{default:q(()=>[z(w,{label:"财务类型:"},{default:q(()=>[z(v,{modelValue:g.value.fundType,"onUpdate:modelValue":h[0]||(h[0]=T=>g.value.fundType=T),multiple:""},{default:q(()=>[(Oe(),st(Zt,null,Hr(l,T=>z(A,{key:T.value,label:T.label,disabled:T.disabled,value:T.value},null,8,["label","disabled","value"])),64))]),_:1},8,["modelValue"])]),_:1}),z(w,{label:"日期选择:",required:""},{default:q(()=>[z(x,{modelValue:g.value.dateValue,"onUpdate:modelValue":h[1]||(h[1]=T=>g.value.dateValue=T),type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期",shortcuts:p},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}}),nie={class:"buttons-container"},aie={__name:"index",setup(a){return(s,r)=>(Oe(),st("div",nie,[z(qae),z(rie)]))}},iie=cn(aie,[["__scopeId","data-v-049149b2"]]);function sie(a){return pi({url:"/api/api/batchTiktokDraftPublish",method:"post",data:a})}const oie={class:"flex justify-end items-center gap-2"},lie={__name:"ShelvesDialog",props:{visible:Boolean,shopIdList:Array},emits:["update:visible","successfully"],setup(a,{emit:s}){const r=s,i=a,n=we(null),t=we(!1),c=()=>{r("update:visible",!1)},u=()=>{var o;(o=n.value)==null||o.reset()},f=async()=>{var m,p;let o=new Date().getTime().toString();t.value=!0,n.value.start(()=>kf({uuid:o})).then(_=>{_===1&&(c(),r("successfully"))}).catch(_=>{ut({message:`读取进度失败: ${_}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{var _;t.value=!1,(_=n.value)==null||_.stop()});const l=await sie({draftIdList:i.shopIdList,uuid:o});if(l.status!==0){(m=n.value)==null||m.stop(),ut({message:"上架草稿失败",type:"error",duration:1e4,zIndex:999999999});return}let g="";if(g+=`<p>上架草稿成功 <strong>${+(l==null?void 0:l.successCnt)} 个</strong>，失败 <strong>${+(l==null?void 0:l.failCnt)} 个</strong></p>`,(p=l==null?void 0:l.failList)!=null&&p.length)for(const _ of l.failList)g+=`<p>草稿 ID: ${_.draftId}，失败原因: ${_.errorInfo}</p>`;ha({title:"提示",dangerouslyUseHTMLString:!0,message:g,type:l.failCnt!==0?"warning":"success",duration:l.failCnt!==0?0:5e3})};return(o,l)=>{const g=Ce("el-button"),m=Ce("el-dialog");return Oe(),Et(m,{"align-center":"",modelValue:i.visible,"onUpdate:modelValue":l[0]||(l[0]=p=>i.visible=p),width:"600","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"15px"},title:"【凌风跨境工具箱】草稿箱一键上架",onOpen:u},{footer:q(()=>[de("div",oie,[z(g,{disabled:t.value,onClick:c},{default:q(()=>[...l[1]||(l[1]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(g,{loading:t.value,type:"primary",onClick:f},{default:q(()=>[...l[2]||(l[2]=[Ue(" 开始上架 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(Qc,{style:{"margin-bottom":"10px"},ref_key:"progressTickerRef",ref:n,"success-text":"更新成功","stroke-width":12},null,512)]),_:1},8,["modelValue"])}}},uie=cn(lie,[["__scopeId","data-v-cd0b3a1c"]]),cie={__name:"oneClickToList",setup(a){const s=Kn(),r=we([]),i=we(!1),n=we(!1),t=async()=>{i.value=!0;const u=await s.init();if(i.value=!1,!u)return;const f=document.querySelectorAll('input[type="checkbox"]:checked');if(r.value=Array.from(f).map(o=>o.value).filter(o=>o!==""),r.value.length===0){ut.error("请先选择需要上架的商品");return}n.value=!0},c=()=>{r.value=[];const u=Array.from(document.querySelectorAll("button.arco-btn-primary")).find(f=>f.textContent.includes("搜索"));u==null||u.click()};return(u,f)=>{const o=Ce("el-button");return Oe(),st("div",null,[z(o,{loading:i.value,class:"custom-button",type:"primary",onClick:t},{default:q(()=>[...f[1]||(f[1]=[Ue(" 【凌风跨境工具箱】草稿箱一键上架 ",-1)])]),_:1},8,["loading"]),z(uie,{onSuccessfully:c,visible:n.value,"onUpdate:visible":f[0]||(f[0]=l=>n.value=l),shopIdList:r.value},null,8,["visible","shopIdList"])])}}},fie={class:"buttons-container"},die={__name:"productManagementList",setup(a){return(s,r)=>(Oe(),st("div",fie,[z(cie)]))}},hie=cn(die,[["__scopeId","data-v-344d6f7e"]]),Aie={__name:"TrafficGrowthDeclaration",setup(a){const s=ls();return oa(async()=>{await s.getInfo()}),(r,i)=>{const n=Ce("el-button");return St(s).hasPermission("/productManagement/batchTrafficGrowth")?(Oe(),Et(n,{key:0,class:"custom-button",type:"primary",tag:"a",href:"https://www.kuajingabc.com/#/productManagement/batchTrafficGrowth",target:"_blank",rel:""},{default:q(()=>[...i[0]||(i[0]=[Ue(" 一键前往【凌风跨境工具箱】流量增长批量申报页面 ",-1)])]),_:1})):tr("",!0)}}},pie={style:{"text-align":"right",margin:"0"}},mie={__name:"getData",props:{title:String,url:Function,filter:Object,total:Number,cancelSet:{type:Boolean,default:!1},returnKey:{type:String,default:"data"},pageNumKey:{type:String,default:"pageNum"},pageSizeKey:{type:String,default:"pageSize"},startIndex:{type:Number,default:1},endIndex:{type:Number,default:1e3},concurrency:{type:Number,default:5,validator:a=>a>0&&a<=10}},emits:["update:data","update:total","complete","isListener","progress"],setup(a,{expose:s,emit:r}){const i=a,n=we(i.startIndex),t=we(i.endIndex),c=r,u=we(!1),f=we(0),o=we({page:1,pageSize:50,total:0}),l=we([]),g=Pr(()=>u.value?`获取中: ${l.value.length}/${o.value.total} (${f.value}%)`:i.title),m=()=>{c("isListener"),l.value=[],o.value.page=Math.ceil(n.value/o.value.pageSize)||1,o.value.total=0,f.value=0,u.value=!0,y()},p=()=>{u.value=!1,c("update:data",l.value),c("update:total",o.value.total),c("complete")},_=()=>{const d=Math.min(t.value||1/0,o.value.total)-n.value+1,A=l.value.length;f.value=Math.min(100,Math.round(A/d*100)),c("progress",f.value)},y=async()=>{try{const d=await i.url({pageInfo:{[i.pageNumKey]:1,[i.pageSizeKey]:1},...i.filter});if(!d.success)throw new Error(d.errorMsg||"获取总数失败");const A=d.result.total;o.value.total=A;const v=Math.max(1,n.value),w=t.value?Math.min(t.value,A):A;if(v>w){p();return}const x=Math.ceil(v/o.value.pageSize),k=Math.ceil(w/o.value.pageSize)-x+1,T=Array.from({length:k},(M,P)=>x+P),S=i.concurrency;for(let M=0;M<T.length;M+=S){const P=T.slice(M,M+S);if(await Promise.all(P.map(N=>h(N,v,w))),l.value.length>=w-v+1)break}console.log(`请求页码范围: ${T[0]}~${T[T.length-1]}，共${T.length}页`),console.log("总条数：",l.value.length),p()}catch(d){ut.error(`数据获取失败: ${d.message}`),p()}},h=async(d,A,v)=>{try{const w={pageInfo:{[i.pageNumKey]:d,[i.pageSizeKey]:o.value.pageSize}},C={...JSON.parse(JSON.stringify(i.filter||{})),...w},{success:k,result:T,errorMsg:S}=await i.url(C);if(!k)throw new Error(S||"分页请求失败");const M=T[i.returnKey]||[],P=(d-1)*o.value.pageSize+1,N=d*o.value.pageSize,B=d===Math.ceil(A/o.value.pageSize),O=d===Math.ceil(v/o.value.pageSize);let I=M;if(B){const F=A-P;I=I.slice(F)}if(O){const F=v-P+1;I=I.slice(0,F)}l.value.push(...I),_()}catch(w){throw console.error(`第${d}页请求失败:`,w),w}};return s({refresh:m,loading:u,progress:f}),(d,A)=>{const v=Ce("el-input"),w=Ce("el-form-item"),x=Ce("el-form"),C=Ce("el-button"),k=Ce("el-popover");return Oe(),Et(No,null,{default:q(()=>[z(k,{placement:"bottom",width:240},{reference:q(()=>[z(C,iA(d.$attrs,sA(d.$attrs),{onClick:m,loading:u.value}),{default:q(()=>[Ue(ht(g.value),1)]),_:1},16,["loading"])]),default:q(()=>[de("div",pie,[z(x,{inline:!0},{default:q(()=>[z(w,{label:"开始条数"},{default:q(()=>[z(v,{modelValue:n.value,"onUpdate:modelValue":A[0]||(A[0]=T=>n.value=T),modelModifiers:{number:!0},clearable:""},null,8,["modelValue"])]),_:1}),z(w,{label:"结束条数"},{default:q(()=>[z(v,{modelValue:t.value,"onUpdate:modelValue":A[1]||(A[1]=T=>t.value=T),modelModifiers:{number:!0},clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])]),_:1})]),_:1})}}},gie={class:"flex items-center gap-4 text-xs"},vie=["title"],yie={class:"mt-1"},bie={style:{color:"#303133"}},wie={class:"bg-white px-2.5 flex items-center gap-4 mt-2"},_ie={class:"flex items-center mt-2"},xie={class:"ml-2 font-bold",style:{color:"#F56C6C"}},Cie={class:"flex justify-between mt-5"},Sie={key:0,class:"selectionNum"},kie={__name:"FlowGrowTable",props:{data:Array},setup(a,{expose:s}){const r=a,i=we({page:1,pageSize:10}),n=we(),t=y=>{o()},c=y=>{o()},u=Pr(()=>{const y=i.value.page*i.value.pageSize;return r.data.slice(y-i.value.pageSize,y)}),f=we({}),o=()=>{il(()=>{n.value&&r.data.filter(h=>f.value[h.productId]).forEach(h=>{n.value.toggleRowSelection(h,!0)})})},l=y=>{const h={};y.length>0?y.forEach(d=>{h[d.productId]=!0}):u.value.forEach(d=>{delete h[d.productId]}),f.value=h},g=y=>{l(y)},m=y=>{l(y)},p=Pr(()=>r.data.filter(y=>f.value[y.productId])),_=()=>{f.value={},n.value.clearSelection()};return s({multipleSelection:p}),(y,h)=>{const d=Ce("el-table-column"),A=Ce("el-image"),v=Ce("el-text"),w=Ce("el-tag"),x=Ce("el-icon"),C=Ce("el-tooltip"),k=Ce("el-table"),T=Ce("el-pagination");return Oe(),st(Zt,null,[z(k,iA(y.$attrs,sA(y.$attrs),{class:"w-full",style:{height:"74vh"},data:u.value,"row-key":"productId","row-class-name":"cursor-pointer",onSelect:g,onSelectAll:m,ref_key:"multipleTableRef",ref:n}),{default:q(()=>[tr("",!0),z(d,{label:"商品信息"},{default:q(({row:S})=>[de("div",gie,[de("div",null,[z(A,{style:{width:"50px",height:"50px"},src:S.pics[0]},null,8,["src"])]),de("div",null,[de("p",null,[de("span",{title:S.productName,class:"font-bold text-[14px]",style:{color:"#303133"}},ht(S.productName),9,vie)]),de("p",yie,[h[4]||(h[4]=de("span",{style:{color:"#606266"}},"SPUID：",-1)),de("span",bie,ht(S.productId),1)]),h[5]||(h[5]=de("p",{class:"mt-1"},[de("span",{style:{color:"#606266"}},"该 SPU 下其他 SKC 今日不可再操作降价")],-1)),h[6]||(h[6]=de("p",{class:"mt-1"},[de("span",{style:{color:"#606266"}},"若降至最低档，该 SKC 今日不可再操作降价。")],-1))])])]),_:1}),z(d,{label:"昨日SPU销量",prop:"lastDaySaleNum"}),z(d,{label:"近7日SPU销量",prop:"lastWeekSaleNum"}),z(d,{label:"SKC/SKU信息",width:"550"},{default:q(({row:S})=>[(Oe(!0),st(Zt,null,Hr(S.skcOrSkus,M=>(Oe(),st("div",wie,[de("div",null,[de("p",null,ht(M.specList[0]),1),de("p",null,"SKU 货号："+ht((M==null?void 0:M.productSkcOrSkuCode)||"--"),1),de("p",null,"SKUID："+ht(M.productSkcOrSkuId||"--"),1),de("p",null,"币种："+ht(M.currencyType||"--"),1),z(v,{type:"warning"},{default:q(()=>[de("span",null,"申报报价："+ht((M.currencySupplyPrice/100).toFixed(2)),1)]),_:2},1024)]),de("div",null,[(Oe(!0),st(Zt,null,Hr([...M.suggestPricePartList].reverse(),P=>(Oe(),st("div",_ie,[z(w,{type:"success"},{default:q(()=>[Ue("第 "+ht(P.index)+" 降价档位:降价至:"+ht((P.suggestSupplyPrice/100).toFixed(2)),1),de("span",xie,"("+ht(((P.suggestSupplyPrice-M.currencySupplyPrice)/100).toFixed(2))+")",1)]),_:2},1024),z(C,{effect:"dark",content:"满足筛选条件",placement:"top"},{default:q(()=>[z(x,{class:"ml-2",color:"#67C23A"},{default:q(()=>[z(St(G8))]),_:1})]),_:1})]))),256))])]))),256))]),_:1})]),_:1},16,["data"]),de("div",Cie,[de("div",null,[p.value.length?(Oe(),st("div",Sie,[h[8]||(h[8]=Ue("已选择 ",-1)),z(v,{class:"mx-1 font-bold",onClick:h[0]||(h[0]=S=>_()),type:"primary"},{default:q(()=>[Ue(ht(p.value.length),1)]),_:1}),h[9]||(h[9]=Ue()),z(v,{class:"mx-1",onClick:h[1]||(h[1]=S=>_()),type:"primary"},{default:q(()=>[...h[7]||(h[7]=[Ue("取消选择",-1)])]),_:1})])):tr("",!0)]),z(T,{"current-page":i.value.page,"onUpdate:currentPage":h[2]||(h[2]=S=>i.value.page=S),"page-size":i.value.pageSize,"onUpdate:pageSize":h[3]||(h[3]=S=>i.value.pageSize=S),"page-sizes":[10,20,50,100],background:!0,layout:"total, prev, pager, next, sizes",total:r.data.length,onSizeChange:t,onCurrentChange:c},null,8,["current-page","page-size","total"])])],64)}}},T2={">":(a,s)=>a>s,"<":(a,s)=>a<s,"=":(a,s)=>a===s,">=":(a,s)=>a>=s,"<=":(a,s)=>a<=s,"≈":(a,s)=>Math.abs(a-s)<.001},Tie={and:a=>a.every(Boolean),or:a=>a.some(Boolean)},Eie={yes:(a,s)=>a.includes(s),no:(a,s)=>!a.includes(s)},Iie=(a,s)=>!Array.isArray(a)||a.length===0?null:a.length===1?a[0]:a.reduce((r,i)=>r[s]>i[s]?r:i),Bie=(a,s)=>!Array.isArray(a)||a.length===0?null:a.length===1?a[0]:a.reduce((r,i)=>r[s]<i[s]?r:i),Fie={class:"flex items-center"},Mie={style:{"margin-bottom":"0"}},Die={class:"flex items-center gap-2 mt-3"},Oie={class:"flex items-center"},Lie={class:"dialog-footer"},Pie={class:"dialog-footer"},Rie="【凌风跨境工具箱】批量开启流量增长",Uie={__name:"BatchFlowGrow",setup(a){const s=we([]),r=we([]),i=we([]),n=we(0),t=we({adjustLabel:1}),c=we(!1),u=we(!1),f=we(!1),o=we(!1),l=we(0),g=we(0),m=we("当前无筛选条件，展示所有商品"),p={gear:"low",term:"long",selectIf:"and",lastDaySaleInput_IF:">",priceInput_IF:">",lastWeekSaleInput_IF:">",lastDaySaleInput:null,lastWeekSaleInput:null,priceInput:null,title_IF:"yes",titleInput:""},_={"agentseller.temu.com":"全球（除美区，欧区）","agentseller-us.temu.com":"美区","agentseller-eu.temu.com":"欧区"},y=Vl({...p}),h=le=>{var G,fe;return((fe=(G=i.value[Number(le)])==null?void 0:G[0])==null?void 0:fe.suggestPricePartList)||[]},d=_[window.location.host]||"",A=[{label:"大于",value:">"},{label:"小于",value:"<"},{label:"等于",value:"="}],v=[{label:"包含",value:"yes"},{label:"不包含",value:"no"}],w=we(!1),x=async()=>{try{w.value=!0;const le=await P();i.value=FT(le,"productSkcOrSkuId"),s.value.map(G=>G.skcOrSkus.map(fe=>(fe.suggestPricePartList=h(fe.productSkcOrSkuId),fe))),C(),c.value=!0}catch(le){console.error("Failed to load products:",le)}finally{w.value=!1}},C=()=>{Object.assign(y,p),r.value=s.value,m.value="当前无筛选条件，展示所有商品"},k=()=>{m.value=T();let le=[];le=s.value.filter(G=>{let fe=M(y.lastDaySaleInput)?T2[y.lastDaySaleInput_IF](G.lastDaySaleNum,y.lastDaySaleInput*100):null,ie=M(y.lastWeekSaleInput)?T2[y.lastWeekSaleInput_IF](G.lastWeekSaleNum,y.lastWeekSaleInput*100):null,he=M(y.priceInput)?G.skcOrSkus.some(oe=>oe.suggestPricePartList.some(pe=>T2[y.priceInput_IF](pe.suggestSupplyPrice,y.priceInput*100))):null,Y=M(y.titleInput)?Eie[y.title_IF](G.productName,y.titleInput):null;const K=[fe,ie,he,Y].filter(oe=>oe!==null);return K.length===0?(m.value="当前无筛选条件，展示所有商品",!0):Tie[y.selectIf](K)}),M(y.priceInput)&&(le=le.map(G=>({...G,skcOrSkus:G.skcOrSkus.map(fe=>({...fe,suggestPricePartList:fe.suggestPricePartList.filter(ie=>{const he=Number(ie.suggestSupplyPrice),Y=Number(y.priceInput*100);return T2[y.priceInput_IF](he,Y)})})).filter(fe=>fe.suggestPricePartList.length>0)})).filter(G=>G.skcOrSkus.length>0)),r.value=le,u.value=!1},T=()=>{let le=`当前筛选条件:条件触发方式-->${S[y.selectIf]}`,G=M(y.lastDaySaleInput)?`按昨日SPU销量${S[y.lastDaySaleInput_IF]} ${y.lastDaySaleInput} `:null,fe=M(y.lastWeekSaleInput)?`按近7日SPU销量${S[y.lastWeekSaleInput_IF]} ${y.lastWeekSaleInput} `:null,ie=M(y.priceInput)?`按降价挡位价格${S[y.priceInput_IF]} ${y.priceInput} `:null,he=M(y.titleInput)?`按商品标题${S[y.title_IF]} ${y.titleInput} `:null;return[le,G,fe,ie,he].filter(Y=>Y!==null).join("，")},S={">":"大于","<":"小于","=":"等于",and:"所有条件都满足时",or:"任一条件满足时",yes:"包含",no:"不包含"},M=le=>le!==null&&le!==""&&le!==void 0,P=async()=>{console.log(s.value.length,",tableData");let le=[];s.value.forEach(G=>{G.skcOrSkus.forEach(fe=>{le.push({productId:G.productId,isApparel:G.isApparel,productSkcOrSkuId:fe.productSkcOrSkuId})})}),console.log(le.length,"需要查询数量params"),g.value=le.length;try{const G=ST(le,100);let fe=[];const ie=5;for(let he=0;he<G.length;he+=ie){const Y=G.slice(he,he+ie),K=await Promise.all(Y.map(async oe=>{try{const{result:pe}=await N(oe);return(pe==null?void 0:pe.products)||[]}catch(pe){return console.error("获取商品信息失败:",pe),[]}}));fe=[...fe,...K.flat()],l.value=fe.length}return console.log(fe.length,"实际返回流量档次productArr"),fe}catch(G){return console.error(G),[]}},N=le=>QX({productInfoList:le}),B=we([]),O=we(0),I=we(0),F=le=>{console.log("处理完成",le),U(le)},L=(le,G)=>{console.error("处理出错",le,G),U(G)},R=le=>{console.log("处理已取消",le),U(le)},U=le=>{o.value=!1;let G=[],fe=[];le.forEach(ie=>{ie.result.forEach(he=>{he.errMessage&&(fe.push(he.productSkcOrSkuId),G.push(Zn("div",{class:"error_message"},`商品SKUID:【${he.productSkcOrSkuId}】开通流量增长失败，原因[官方提示]:${he.errMessage}`)))})}),ha({title:"提示: 已全部执行完毕",message:`
        <div>全部 ${O.value+I.value} 个sku</div>
        <div>成功: ${O.value} 个</div>
        <div>失败: ${I.value} 个</div>
        <div>请关闭弹窗，前往官方页面查看更新结果。官方列表更新可能存在延迟，一次性开启数量太多延迟会更久，请过几分钟后再获取下一批开启，请知悉!</div>
      `,type:"success",duration:0,dangerouslyUseHTMLString:!0}),G.length!=0&&Pn({title:"提示",message:Zn(_i,{height:"400px"},[G]),showCancelButton:!0,confirmButtonText:"复制所有失败SKUID",cancelButtonText:"关闭",beforeClose:async(ie,he,Y)=>{ie==="confirm"&&await ag(fe.join(",")),Y()}}).then(ie=>{})},V=()=>{I.value=0,O.value=0;let le=[];r.value.forEach(G=>{G.skcOrSkus.forEach(fe=>{let ie=y.gear=="low"?Iie(fe.suggestPricePartList,"suggestSupplyPrice"):Bie(fe.suggestPricePartList,"suggestSupplyPrice"),he=y.term!="long";le.push({isApparel:G.isApparel,acceptAdjustActPrice:!0,adjustSupplyPrice:ie.suggestSupplyPrice,currencyType:fe.currencyType,index:ie.index,isTemp:he,productId:G.productId,productSkcOrSkuId:fe.productSkcOrSkuId,upNum:ie.upNum,upRate:ie.upRate})})}),B.value=le,f.value=!1,W()},W=()=>{o.value=!0},Q=async(le,G)=>{if(G.aborted)throw new Error("请求被取消");let{result:fe,success:ie}=await zX({productInfoList:le,source:"page"});if(ie)return I.value+=fe.failNum,O.value+=fe.successNum,fe.productInfoList;throw new Error("处理失败: 服务器错误")};return(le,G)=>{const fe=Ce("el-alert"),ie=Ce("el-button"),he=Ce("el-divider"),Y=Ce("el-dialog"),K=Ce("el-option"),oe=Ce("el-select"),pe=Ce("el-form-item"),ve=Ce("el-input-number"),ge=Ce("el-icon"),ue=Ce("el-tooltip"),Te=Ce("el-input"),Ee=Ce("el-form"),ye=Ce("el-radio"),Se=Ce("el-radio-group");return Oe(),st(Zt,null,[z(mie,{title:w.value?`获取流量数据档次中 ${l.value} / 总 ${g.value}`:Rie,type:"primary",url:St(HX),filter:t.value,returnKey:"products","page-num-key":"pageNo","page-num-size":"pageSize",MaxTotal:100,data:s.value,"onUpdate:data":G[0]||(G[0]=Fe=>s.value=Fe),total:n.value,"onUpdate:total":G[1]||(G[1]=Fe=>n.value=Fe),onComplete:x,disabled:w.value},null,8,["title","url","filter","data","total","disabled"]),z(Y,{class:"warp-float",modelValue:c.value,"onUpdate:modelValue":G[4]||(G[4]=Fe=>c.value=Fe),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[de("div",Fie,[de("h2",Mie,"【凌风跨境工具箱】批量开启流量增长-"+ht(St(d)),1)])]),default:q(()=>[z(fe,{closable:!1,title:m.value,type:"primary"},null,8,["title"]),de("div",Die,[z(ie,{type:"primary",plain:"",onClick:G[2]||(G[2]=Fe=>u.value=!0),disabled:s.value.length==0},{default:q(()=>[...G[21]||(G[21]=[Ue(" 筛选商品 ",-1)])]),_:1},8,["disabled"]),z(ie,{type:"info",plain:"",icon:St(HC),onClick:C,disabled:s.value.length==0},{default:q(()=>[...G[22]||(G[22]=[Ue(" 清空筛选项 ",-1)])]),_:1},8,["icon","disabled"]),z(he,{direction:"vertical"}),z(ie,{type:"primary",onClick:G[3]||(G[3]=Fe=>f.value=!0),disabled:s.value.length==0},{default:q(()=>[...G[23]||(G[23]=[Ue("设置降价档位和增长方式 & 开启流量增长",-1)])]),_:1},8,["disabled"])]),z(kie,{class:"mt-3",data:r.value,ref:"TableRef"},null,8,["data"])]),_:1},8,["modelValue"]),z(Y,{title:"筛选商品-开启流量增长",modelValue:u.value,"onUpdate:modelValue":G[15]||(G[15]=Fe=>u.value=Fe),width:"500",center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{footer:q(()=>[de("div",Lie,[z(ie,{onClick:G[14]||(G[14]=Fe=>u.value=!1)},{default:q(()=>[...G[25]||(G[25]=[Ue("取消",-1)])]),_:1}),z(ie,{type:"primary",onClick:k},{default:q(()=>[...G[26]||(G[26]=[Ue(" 筛选 ",-1)])]),_:1})])]),default:q(()=>[de("div",null,[z(Ee,{model:y,class:"mt-5","label-width":"auto"},{default:q(()=>[z(pe,{label:"触发条件："},{default:q(()=>[z(oe,{modelValue:y.selectIf,"onUpdate:modelValue":G[5]||(G[5]=Fe=>y.selectIf=Fe),placeholder:"请选择"},{default:q(()=>[z(K,{label:"以下所有条件都满足时才选择",value:"and"}),z(K,{label:"以下任一条件满足时就选择",value:"or"})]),_:1},8,["modelValue"])]),_:1}),z(pe,{label:"按昨日SPU销量："},{default:q(()=>[z(oe,{modelValue:y.lastDaySaleInput_IF,"onUpdate:modelValue":G[6]||(G[6]=Fe=>y.lastDaySaleInput_IF=Fe),style:{width:"115px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(A,Fe=>z(K,{label:Fe.label,value:Fe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),z(ve,{"controls-position":"right",min:0,precision:0,modelValue:y.lastDaySaleInput,"onUpdate:modelValue":G[7]||(G[7]=Fe=>y.lastDaySaleInput=Fe),placeholder:"请输入数值"},null,8,["modelValue"])]),_:1}),z(pe,{label:"按近7日SPU销量："},{default:q(()=>[z(oe,{modelValue:y.lastWeekSaleInput_IF,"onUpdate:modelValue":G[8]||(G[8]=Fe=>y.lastWeekSaleInput_IF=Fe),style:{width:"115px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(A,Fe=>z(K,{label:Fe.label,value:Fe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),z(ve,{"controls-position":"right",min:0,precision:0,modelValue:y.lastWeekSaleInput,"onUpdate:modelValue":G[9]||(G[9]=Fe=>y.lastWeekSaleInput=Fe),placeholder:"请输入数值"},null,8,["modelValue"])]),_:1}),z(pe,{label:""},{label:q(()=>[z(ue,{effect:"dark",content:"根据每个SKU的所有的降价挡位价格中进行筛选",placement:"top-start"},{default:q(()=>[de("span",Oie,[z(ge,{class:"mr-2"},{default:q(()=>[z(St(_1))]),_:1}),G[24]||(G[24]=Ue("按降价挡位价格：",-1))])]),_:1})]),default:q(()=>[z(oe,{modelValue:y.priceInput_IF,"onUpdate:modelValue":G[10]||(G[10]=Fe=>y.priceInput_IF=Fe),style:{width:"115px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(A,Fe=>z(K,{label:Fe.label,value:Fe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),z(ve,{"controls-position":"right",min:0,precision:2,modelValue:y.priceInput,"onUpdate:modelValue":G[11]||(G[11]=Fe=>y.priceInput=Fe),placeholder:"请输入数值"},null,8,["modelValue"])]),_:1}),z(pe,{label:"按商品标题："},{default:q(()=>[z(Te,{modelValue:y.titleInput,"onUpdate:modelValue":G[13]||(G[13]=Fe=>y.titleInput=Fe),placeholder:"请输入商品标题关键字"},{prepend:q(()=>[z(oe,{modelValue:y.title_IF,"onUpdate:modelValue":G[12]||(G[12]=Fe=>y.title_IF=Fe),style:{width:"115px"}},{default:q(()=>[(Oe(),st(Zt,null,Hr(v,Fe=>z(K,{label:Fe.label,value:Fe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue"]),z(Y,{title:"批量设置 & 开启流量增长",modelValue:f.value,"onUpdate:modelValue":G[19]||(G[19]=Fe=>f.value=Fe),width:"500",center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{footer:q(()=>[de("div",Pie,[z(ie,{onClick:G[18]||(G[18]=Fe=>f.value=!1)},{default:q(()=>[...G[31]||(G[31]=[Ue("取消",-1)])]),_:1}),z(ie,{type:"primary",onClick:V},{default:q(()=>[...G[32]||(G[32]=[Ue(" 一键开启流量增长 ",-1)])]),_:1})])]),default:q(()=>[de("div",null,[z(fe,{closable:!1,title:"提示：按每个sku的所有降价档位设置，如筛选出来只有一个档位符合要求，则选择按最低档或最高档效果相同，软件将设置该降价档位。",type:"warning"}),z(Ee,{model:y,class:"mt-5","label-width":"auto"},{default:q(()=>[z(pe,{label:"降价档位设置："},{default:q(()=>[z(Se,{modelValue:y.gear,"onUpdate:modelValue":G[16]||(G[16]=Fe=>y.gear=Fe)},{default:q(()=>[z(ye,{value:"low"},{default:q(()=>[...G[27]||(G[27]=[Ue("按最低档（降价最少）",-1)])]),_:1}),z(ye,{value:"high"},{default:q(()=>[...G[28]||(G[28]=[Ue("按最高档（降价最多）",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(pe,{label:"增长时效设置："},{default:q(()=>[z(Se,{modelValue:y.term,"onUpdate:modelValue":G[17]||(G[17]=Fe=>y.term=Fe)},{default:q(()=>[z(ye,{value:"long"},{default:q(()=>[G[29]||(G[29]=Ue("长期增长 ",-1)),z(ue,{effect:"dark",content:"持续流量加权，达成率稳定",placement:"top"},{default:q(()=>[z(ge,null,{default:q(()=>[z(St(_1))]),_:1})]),_:1})]),_:1}),z(ye,{value:"short"},{default:q(()=>[G[30]||(G[30]=Ue("短期增长 ",-1)),z(ue,{effect:"dark",content:"流量加权持续两周，到期自动续期 (可随时停止续期)，增长结束后恢复原价",placement:"top"},{default:q(()=>[z(ge,null,{default:q(()=>[z(St(_1))]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue"]),z(K0,{data:B.value,batchSize:1,requestHandler:Q,dialogVisible:o.value,"onUpdate:dialogVisible":G[20]||(G[20]=Fe=>o.value=Fe),autoStart:"true",onComplete:F,onError:L,onAbort:R},null,8,["data","dialogVisible"])],64)}}},Nie={class:"flex flex-wrap gap-2"},jie={__name:"TrafficGrowthPlugin",setup(a){return(s,r)=>(Oe(),st("div",Nie,[z(Aie),z(Uie)]))}},Hie={style:{"margin-right":"10px"}},Qie=xi({__name:"newExportCustomization",setup(a){return(s,r)=>(Oe(),st("div",Hie,[z(R0,{"export-type":13})]))}});function zie(a,s){let r=`/serv/api/customsClearanceAttributeTemplate?page_id=${a}&page_size=${s}`;return To({url:r,method:"GET"})}function Vie(a){return To({url:"/serv/api/customsClearanceAttributeTemplate",method:"POST",data:a})}function Wie(a){return To({url:"/serv/api/customsClearanceAttributeTemplate",method:"DELETE",data:a})}function Gie(a){return pi({method:"POST",url:"/api/api/batchUpdateCustomsClearanceAttribute",data:a})}const $ie={class:"flex justify-end items-center gap-2"},Kie={__name:"attributesDialog",props:{visible:Boolean,selectedSpus:Array,maintainStatusList:Array,productIdList:Array},emits:["update:visible"],setup(a,{emit:s}){const r=s,i=a,n=we(!1),t=we(null),c=we([]),u=we(null),f=we(!1),o=we(null),l=we([]),g=we({currentPage:1,pageSize:10,total:0}),m=()=>{r("update:visible",!1)},p=x=>{g.value.pageSize=x,g.value.currentPage=1,h()},_=x=>{g.value.currentPage=x,h()},y=x=>{c.value=x},h=async()=>{f.value=!0;const x=await zie(g.value.currentPage,g.value.pageSize).finally(()=>{f.value=!1});if(x.status!==0)return ut.error(x.errorMsg);l.value=x==null?void 0:x.template_list,g.value.total=x.total},d=x=>{Pn.confirm(`您确定要删除模板【${x.template_name}】吗？`,"温馨提示",{confirmButtonText:"确认删除",cancelButtonText:"取消",type:"warning"}).then(async()=>{const C=await Wie({template_ids:[x.template_id]});if(C.status!==0)return ut.error(C.errorMsg);ut.success("属性模板删除成功！"),h()}).catch(()=>{})},A=async()=>{if(!c.value.length){ut.error("请先选择维护模板！");return}let x=new Date().getTime().toString();const C=i.selectedSpus.length?i.selectedSpus.map(M=>({chaosId:+M.chaosId,spuId:+M.newSpuId})):null,k=[],T=[];c.value.forEach(M=>{const P=M.templateContent;P&&(P.customsSkuItemList?k.push(P.customsSkuItemList):P.properties&&T.push(P.properties))});const S={mallId:Di(),maintainStatusList:i.maintainStatusList??null,filtertProductIdList:i.productIdList??null,selectIdList:C,maxLimit:u.value??null,uuid:x,templateGroups:k.length?k:null,properties:T.length?T:null};try{n.value=!0,o.value.start(()=>kf({uuid:x})).then(P=>{P===1&&m()}).catch(P=>{ut({message:`读取进度失败: ${P}`,type:"error",duration:1e4,zIndex:999999999})}).finally(()=>{o.value.stop()});const M=await Gie(S);if(M.status!==0){ut.error(M.errorMsg),o.value.stop();return}v(M),h()}catch(M){ut({message:`操作失败: ${M.message||M}`,type:"error",duration:1e4,zIndex:999999999}),o.value.stop()}finally{n.value=!1}},v=x=>{var S;let C="";if(x.failCnt===0&&(C+='<p class="notify-success-text">维护属性填写全部成功!</p>'),(S=x.failInfo)!=null&&S.length){x.successCnt!==0&&(C+=`<p class="notify-success-text">成功<strong>${x.successCnt}个</strong></p>`),C+=`<p class="notify-error-text">失败<strong>${x.failCnt}个</strong></p>
              <ul style="margin: 0;padding: 0">`;for(const M of x.failInfo)C+=`<li>SPU ID: ${M.spuId}<ul><li class="notify-error-text">${M.info}</li></ul></li>`;C+="</ul>"}const k=Zn(_i,{maxHeight:"500px"},{default:()=>Zn("div",{innerHTML:C})});ha({title:"提示",dangerouslyUseHTMLString:!1,message:k,type:x.failCnt!==0?"warning":"success",duration:x.failCnt!==0?432e5:4e3});const T=document.getElementById("notification_1");T&&(T.style.maxWidth="500px",T.style.minWidth="365px")},w=()=>{h()};return(x,C)=>{const k=Ce("el-alert"),T=Ce("el-table-column"),S=Ce("el-button"),M=Ce("el-table"),P=Ce("el-pagination"),N=Ce("el-tag"),B=Ce("el-form-item"),O=Ce("el-form"),I=Ce("el-input-number"),F=Ce("el-dialog"),L=Ai("loading");return Oe(),Et(F,{"align-center":"",width:"700","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:i.visible,"onUpdate:modelValue":C[3]||(C[3]=R=>i.visible=R),onOpen:w},{title:q(()=>[...C[4]||(C[4]=[de("h3",{style:{margin:"0"}},"【凌风跨境工具箱】批量填写维护属性",-1)])]),footer:q(()=>[de("div",$ie,[z(S,{disabled:n.value,onClick:m},{default:q(()=>[...C[6]||(C[6]=[Ue("取消",-1)])]),_:1},8,["disabled"]),z(S,{loading:n.value,type:"primary",onClick:A},{default:q(()=>[...C[7]||(C[7]=[Ue(" 开始填写维护属性 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>{var R;return[z(k,{title:`当前选中 ${(R=a.selectedSpus)==null?void 0:R.length} 个商品（满足当前Temu页面筛选条件的所有商品，不受Temu每页最大展示商品数限制）`,type:"warning","show-icon":!0,closable:!1,style:{"margin-bottom":"20px"}},null,8,["title"]),na((Oe(),Et(M,{data:l.value,"header-cell-style":{background:"#feefe1",padding:"5px",color:"#000"},border:"",style:{width:"100%","margin-top":"20px","border-radius":"10px 10px 0 0"},maxHeight:"400",onSelectionChange:y,ref_key:"tableRef",ref:t},{default:q(()=>[z(T,{"header-align":"center",align:"center",label:"选择模板",type:"selection",prop:"",width:"70",selectable:U=>!n.value&&!f.value},null,8,["selectable"]),z(T,{"header-align":"center",align:"center",label:"模板名称",prop:"template_name",width:""}),z(T,{"header-align":"center",align:"center",label:"更新时间",prop:"pub_date",width:"180"}),z(T,{"header-align":"center",align:"center",label:"操作",width:"100"},{default:q(({row:U})=>[z(S,{text:"",type:"primary",onClick:V=>d(U),icon:St(qh)},null,8,["onClick","icon"])]),_:1})]),_:1},8,["data"])),[[L,f.value]]),z(P,{"current-page":g.value.currentPage,"onUpdate:currentPage":C[0]||(C[0]=U=>g.value.currentPage=U),"page-size":g.value.pageSize,"onUpdate:pageSize":C[1]||(C[1]=U=>g.value.pageSize=U),"page-sizes":[10,20,30,50],size:"small",background:"",layout:"total, sizes, prev, pager, next, jumper",total:g.value.total,onSizeChange:p,onCurrentChange:_,style:{"margin-top":"20px"},class:"flex justify-end",disabled:n.value},null,8,["current-page","page-size","total","disabled"]),C[8]||(C[8]=de("div",{style:{color:"#000","margin-top":"20px"}}," 当前TEMU页筛选条件展示 （不可选，仅显示TEMU页筛选条件）: ",-1)),z(O,{model:x.form,"label-width":"auto","label-position":"right"},{default:q(()=>[z(B,{label:"商品SPU ID：",class:"up_form"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(a.productIdList,(U,V)=>(Oe(),Et(N,{key:V},{default:q(()=>[Ue(ht(U),1)]),_:2},1024))),128))]),_:1}),z(B,{label:"状态：",class:"up_form"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(a.maintainStatusList,(U,V)=>(Oe(),Et(N,{key:V},{default:q(()=>[Ue(ht(U==1?"待维护":"已维护"),1)]),_:2},1024))),128))]),_:1})]),_:1},8,["model"]),de("div",null,[C[5]||(C[5]=de("span",{style:{color:"#000"}},"最多上传商品个数（不填代表不限制）：",-1)),z(I,{style:{width:"150px"},step:"1",precision:0,"controls-position":"right",size:"default",modelValue:u.value,"onUpdate:modelValue":C[2]||(C[2]=U=>u.value=U),min:0,disabled:n.value},null,8,["modelValue","disabled"])]),C[9]||(C[9]=de("div",{style:{color:"red","font-size":"12px","margin-top":"30px"},class:"tips"}," 注：填写过程中请勿关闭/刷新页面，否则会导致填写失败（已维护的商品会自动跳过填写流程） ",-1)),z(Qc,{ref_key:"progressTickerRef",ref:o,"success-text":"填写完成","stroke-width":12,style:{"margin-top":"10px"}},null,512)]}),_:1},8,["modelValue"])}}},Yie=cn(Kie,[["__scopeId","data-v-f0a0c679"]]),Xie=xi({__name:"clearanceAttributes",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(a,{emit:s}){const r=Kn(),i=we(!1),n=we(!1),t=we([]),c=we([]),u=a,f=s,o=Pr({get:()=>u.modelValue,set:d=>f("update:modelValue",d)}),l=()=>document.querySelector("tr th"),g=()=>{const d=[];if(document==null?void 0:document.querySelector("#root tbody tr.rocket-table-placeholder"))return null;const v=document==null?void 0:document.querySelectorAll("#root tbody[class*='rocket-table-tbody'] tr td:first-child");if((v==null?void 0:v.length)>0)for(const w of v){const x=w.closest("td");d.push(x)}return d},m=d=>{var P;if(!d||!d.nextElementSibling)return console.error("item 或 nextElementSibling 不存在"),null;const A=d==null?void 0:d.textContent,v=(P=d==null?void 0:d.nextElementSibling)==null?void 0:P.querySelectorAll("div");if(!v||v.length===0)return console.error("没有找到 div 元素"),null;const w=Array.from(v).find(N=>N.textContent.includes("SPU ID："));if(!w)return console.error("SPU span 不存在",d),null;const x=w.parentElement;if(!x)return console.error("SPU div 不存在",d),null;const C=x.textContent,k=C.match(/SPU ID：(\d+)/),T=k?k[1]:null,S=C.match(/SKU ID：(\d+)/),M=S?S[1]:null;return T?{spuId:A,newSpuId:T,skuId:M,chaosId:A}:(console.error("SPU 查询失败",{spuId:A,newSpuId:T,skuId:M,chaosId:A}),null)},p=(d,A)=>{d.style.display="inline-block",d.style.marginLeft="12px",d.style.marginRight="16px",A.insertBefore(d,A.childNodes[0])},_=(d,A)=>{d.style.margin="auto 10px",d.style.display="inline-block",A.insertBefore(d,A.childNodes[0])},y=async()=>{i.value=!0;const d=await r.init();if(i.value=!1,!!d){if(!o.value.length){ut.error({message:"请选择要填写属性维护的商品！"});return}n.value=!0}},h=d=>{if(d.data.type==="/themis/seller/suit_property/query_list"){const{response:A,params:v}=d.data;t.value=v.productIdList,c.value=v.maintainStatusList}};return oa(()=>{window.location.href.includes("/govern/suit-property")?(window.removeEventListener("message",h),window.addEventListener("message",h)):window.removeEventListener("message",h)}),(d,A)=>{const v=Ce("el-button");return Oe(),st(Zt,null,[z(Ry,{modelValue:o.value,"onUpdate:modelValue":A[0]||(A[0]=w=>o.value=w),mainCheckboxContainerGetter:l,subCheckboxContainersGetter:g,spuGetter:m,insertMainDiv:p,insertSubDiv:_},null,8,["modelValue"]),z(v,{type:"primary",loading:i.value,onClick:y},{default:q(()=>[...A[2]||(A[2]=[Ue("【凌风跨境工具箱】批量填写维护属性",-1)])]),_:1},8,["loading"]),z(Yie,{selectedSpus:o.value,visible:n.value,"onUpdate:visible":A[1]||(A[1]=w=>n.value=w),maintainStatusList:c.value,productIdList:t.value},null,8,["selectedSpus","visible","maintainStatusList","productIdList"])],64)}}}),Zie={class:"flex justify-end items-center gap-2"},Jie={__name:"PropertiesTemplateDialog",props:{visible:Boolean},emits:["update:visible"],setup(a,{emit:s}){const r=s,i=a,n=we(!1),t=we({}),c=we(null),u=we({templateName:""}),f=()=>{c.value.clearValidate(),n.value=!1,r("update:visible",!1)};let o=null;const l=()=>{o&&(window.removeEventListener("message",o),o=null),t.value=[],c.value.validate(g=>{if(g){n.value=!0;const m=document.querySelector("div.rocket-drawer-content-wrapper"),p=m==null?void 0:m.querySelector('div[class*="rocket-drawer-title"]');if(!p||p.textContent.trim()!=="维护属性"){n.value=!1;return}const _=Array.from(m.querySelectorAll("div.rocket-space-item")).find(h=>h.textContent.includes("确 认"));if(!_){n.value=!1;return}const y=_.querySelector("button");if(!y){n.value=!1;return}o=async h=>{if(h.data.type==="/themis/seller/suit_property/edit"){const{params:d,response:A}=h.data;if(window.removeEventListener("message",o),o=null,!A.success){ut.error(`操作失败: ${A.errorMsg||"未知错误"}`),n.value=!1;return}const v=d.customsSkuItemList||d.properties,x={[d.customsSkuItemList?"customsSkuItemList":"properties"]:v};t.value=x;try{const C=await Vie({template_name:u.value.templateName,template_details:JSON.stringify(t.value)});if(C.status!==0)return n.value=!1,ut.error(C.errorMsg||"保存失败");ha({title:"提示",message:"模板保存成功！",type:"success"}),f()}catch(C){console.error("保存模板时出错:",C),ut.error("保存模板时出错: "+(C.message||"未知错误"))}finally{n.value=!1}}},window.addEventListener("message",o),y.click()}else return!1})};return(g,m)=>{const p=Ce("el-input"),_=Ce("el-form-item"),y=Ce("el-form"),h=Ce("el-button"),d=Ce("el-dialog");return Oe(),Et(d,{"align-center":"",width:"500","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:i.visible,"onUpdate:modelValue":m[1]||(m[1]=A=>i.visible=A)},{title:q(()=>[...m[2]||(m[2]=[de("h3",{style:{margin:"0"}},"【凌风跨境工具箱】维护属性模板",-1)])]),footer:q(()=>[de("div",Zie,[z(h,{onClick:f},{default:q(()=>[...m[3]||(m[3]=[Ue("取消",-1)])]),_:1}),z(h,{loading:n.value,type:"primary",onClick:l},{default:q(()=>[...m[4]||(m[4]=[Ue(" 开始填写维护属性 ",-1)])]),_:1},8,["loading"])])]),default:q(()=>[z(y,{ref_key:"formRef",ref:c,model:u.value},{default:q(()=>[z(_,{rules:[{required:!0,message:"请输入模板名称",trigger:"blur"}],label:"模板名称：",prop:"templateName"},{default:q(()=>[z(p,{size:"default",modelValue:u.value.templateName,"onUpdate:modelValue":m[0]||(m[0]=A=>u.value.templateName=A),disabled:n.value,placeholder:"请输入模板名称"},null,8,["modelValue","disabled"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}},qie=xi({__name:"saveButton",setup(a){const s=Kn(),r=we(!1),i=we(!1),n=async()=>{r.value=!0;const t=await s.init();r.value=!1,t&&(i.value=!0)};return(t,c)=>{const u=Ce("el-button");return Oe(),st(Zt,null,[z(u,{loading:r.value,onClick:n,class:"copyCustom-button"},{default:q(()=>[...c[1]||(c[1]=[Ue(" 【凌风跨境工具箱】保存为维护属性模板 ",-1)])]),_:1},8,["loading"]),z(Jie,{visible:i.value,"onUpdate:visible":c[0]||(c[0]=f=>i.value=f)},null,8,["visible"])],64)}}}),ese=cn(qie,[["__scopeId","data-v-f1221732"]]),tse=xi({__name:"saveClearanceAttributes",setup(a){let s;return oa(()=>{s=new MutationObserver(()=>{document.querySelectorAll("div.rocket-drawer-content-wrapper").forEach(i=>{if(i.querySelector("div.lingfeng-container"))return;const t=i.querySelector('div[class*="rocket-drawer-title"]');if(!t||t.textContent.trim()!=="维护属性")return;const c=i.querySelector('div[class*="rocket-drawer-footer"]');if(!c){ut.error("无法注入批量复制申请信息按钮, 可能是 TEMU 更新了页面, 请联系客服");return}const u=document.createElement("div");u.className="lingfeng-container",u.style.marginLeft="13px",u.style.display="inline-block",c.appendChild(u),ks(u,ese)})}),s.observe(document.body,{childList:!0,subtree:!0})}),Cf(()=>{s&&s.disconnect()}),()=>{}}}),rse={style:{"margin-bottom":"10px"}},nse=xi({__name:"index",setup(a){const s=we([]);return(r,i)=>(Oe(),st("div",rse,[z(Xie,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=n=>s.value=n)},null,8,["modelValue"]),z(tse)]))}}),ase=async(a,s="紧急备货单明细.xlsx",r=!1)=>{var i,n,t,c,u,f,o,l,g,m;try{const p=new sx.Workbook,_=p.addWorksheet("紧急备货单明细"),y=[{header:"商品图片",key:"image",width:20},{header:"商品名称",key:"productName",width:30},{header:"退货包裹号",key:"returnSupplierPackageNo",width:12},{header:"运单号",key:"expressDeLiverySn",width:10},{header:"状态",key:"packageStatusDesc",width:10},{header:"退货方式",key:"returnHandOverTypeDesc",width:15},{header:"快递支付方式",key:"payMethodDesc",width:15},{header:"物流商",key:"logisticsTypeDesc",width:15},{header:"退货子仓",key:"returnSubWarehouseName",width:15},{header:"退货子仓地址",key:"returnSubWarehouseAddress",width:15},{header:"打包完成时间",key:"packageFinishTime",width:15},{header:"出库时间",key:"outboundTime",width:15},{header:"SKU ID",key:"skuId",width:15},{header:"SKC ID",key:"skcId",width:15},{header:"退货单号",key:"returnSupplierOrderSn",width:15},{header:"退货数量",key:"quantity",width:15},{header:"退货原因",key:"reason",width:15}];r||y.splice(0,1),_.columns=y,_.columns.forEach(v=>{v.alignment={vertical:"middle",horizontal:"left",wrapText:!1}});const h=_.getRow(1);h.font={bold:!0,size:12,color:{argb:"FFFFFFFF"}},h.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF4F81BD"}},h.alignment={vertical:"middle",horizontal:"center"},h.height=30;for(let v=0;v<a.length;v++){const w=a[v],x={image:(i=w.returnPackageDetail)!=null&&i.thumbUrl?"":"无图片",productName:((n=w.returnPackageDetail)==null?void 0:n.productSkuName)||"",returnSupplierPackageNo:w.returnSupplierPackageNo||"",expressDeLiverySn:w.expressDeLiverySn||"",packageStatusDesc:w.packageStatusDesc||"",returnHandOverTypeDesc:w.returnHandOverTypeDesc||"",payMethodDesc:w.payMethodDesc||"",logisticsTypeDesc:w.logisticsTypeDesc||"",returnSubWarehouseName:w.returnSubWarehouseName||"",returnSubWarehouseAddress:w.returnSubWarehouseAddress||"",packageFinishTime:w.packageFinishTime?new Date(w.packageFinishTime).toLocaleString():"",outboundTime:w.outboundTime?new Date(w.outboundTime).toLocaleString():"",skuId:((t=w.returnPackageDetail)==null?void 0:t.skuId)||"",skcId:((c=w.returnPackageDetail)==null?void 0:c.skcId)||"",returnSupplierOrderSn:((u=w.returnPackageDetail)==null?void 0:u.returnSupplierOrderSn)||"",quantity:((f=w.returnPackageDetail)==null?void 0:f.quantity)||0,reason:((o=w.returnPackageDetail)==null?void 0:o.reason)||""};r||delete x.image;const C=_.addRow(x);C.height=r?80:25,C.alignment={vertical:"middle",horizontal:"left",wrapText:!1},v%2===0&&(C.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFF2F2F2"}})}if(r)for(let v=0;v<a.length;v++){const w=a[v],x=v+2;if((l=w.returnPackageDetail)!=null&&l.thumbUrl)try{await $k(_,w.returnPackageDetail.thumbUrl,x,1)}catch(C){console.warn(`图片加载失败: ${(g=w.returnPackageDetail)==null?void 0:g.thumbUrl}`,C);const k=_.getCell(`A${x}`);k.value={text:"查看图片",hyperlink:(m=w.returnPackageDetail)==null?void 0:m.thumbUrl},k.font={color:{argb:"FF0000FF"},underline:!0},k.alignment={vertical:"middle",horizontal:"center"}}}const d=await p.xlsx.writeBuffer(),A=new Blob([d],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return gy.saveAs(A,s),!0}catch(p){throw console.error("导出Excel失败:",p),new Error("导出失败，请重试")}},ise={class:"flex items-center"},sse={style:{"margin-bottom":"0"}},ose={class:"flex gap-2 mt-3 flex-wrap items-center"},lse={class:"flex items-center gap-2"},use={class:"dialog-footer",style:{"text-align":"center","font-size":"16px"}},cse={__name:"ExportReturnOrder",setup(a){var d;const s=new Date,r=new Date(s.getFullYear(),s.getMonth(),s.getDate(),23,59,59),n=Vl({isExportImage:!1,packageTime:[(()=>{const v=new Date().getTime()-10080*60*1e3,w=new Date(v);return new Date(w.getFullYear(),w.getMonth(),w.getDate(),0,0,0)})(),r],outboundTime:null}),t=we(!1),c=we([]),u=we([]),f=we({page:1,pageSize:100}),o=we(!1),l=((d=document.querySelector('[class*="account-info_mallInfo"] [class*="elli_outerWrapper"]'))==null?void 0:d.innerText)||"",g=async()=>{if(!(n!=null&&n.packageTime))return ut.error("请选择打包完成时间");c.value=[],u.value=[],o.value=!0;try{let A={outboundTimeEnd:n.outboundTime?new Date(n.outboundTime[1]).getTime():null,outboundTimeStart:n.outboundTime?new Date(n.outboundTime[0]).getTime():null,packageTimeEnd:n.packageTime?new Date(n.packageTime[1]).getTime():null,packageTimeStart:n.packageTime?new Date(n.packageTime[0]).getTime():null,pageNo:f.value.page,pageSize:f.value.pageSize};const{result:v,success:w,errorMsg:x}=await $X(A);w&&(u.value=[...u.value,...v.items],v.total>u.value.length?(f.value.page+=1,g()):m())}catch(A){m(),ut.error((A==null?void 0:A.errorMsg)||(A==null?void 0:A.error))}},m=async()=>{const A=[];for(const v of u.value){let w={...v};try{(await _(v.returnSupplierPackageNo)).forEach(C=>{w.returnPackageDetail=C,A.push(w)})}catch(x){w.returnPackageDetail.reason=x,A.push(w)}}o.value=!1,c.value=A},p=()=>{t.value=!0,g()},_=async A=>{const{result:v,success:w,errorMsg:x}=await KX({packageSn:A});if(w)return v.returnPackageSkcReasonList||[];throw new Error(`查询退货原因失败: ${x}`)},y=we(!1),h=async()=>{if(!(n!=null&&n.packageTime))return ut.error("请选择打包完成时间");y.value=!0;try{await ase(c.value,`【Temu店铺：${l}】-(日期：${n.packageTime.toLocaleString()}) 紧急备货单明细.xlsx`,n.isExportImage),ut.success("导出成功")}catch(A){ut.error("导出失败: "+A.message)}finally{y.value=!1}};return(A,v)=>{const w=Ce("el-button"),x=Ce("el-date-picker"),C=Ce("el-divider"),k=Ce("el-icon"),T=Ce("el-popover"),S=Ce("el-switch"),M=Ce("el-image"),P=Ce("el-table-column"),N=Ce("el-table"),B=Ce("el-dialog");return Oe(),st(Zt,null,[z(w,{type:"primary",onClick:p},{default:q(()=>[...v[4]||(v[4]=[Ue("【凌风跨境工具箱】导出退货包裹明细",-1)])]),_:1}),z(B,{class:"warp-float",modelValue:t.value,"onUpdate:modelValue":v[3]||(v[3]=O=>t.value=O),fullscreen:"","append-to-body":"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":"",onClose:A.addListener},{header:q(()=>[de("div",ise,[de("h2",sse,"【凌风跨境工具箱】【店铺："+ht(St(l))+"】指定日期-导出退货包裹明细",1)])]),footer:q(()=>[de("div",use," 总 "+ht(c.value.length)+" 条 ",1)]),default:q(()=>[de("div",ose,[de("span",null,[v[5]||(v[5]=Ue(" 出库时间 ",-1)),z(x,{modelValue:n.outboundTime,"onUpdate:modelValue":v[0]||(v[0]=O=>n.outboundTime=O),type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),z(C,{direction:"vertical"}),de("span",null,[v[6]||(v[6]=Ue(" 打包完成时间 ",-1)),z(x,{modelValue:n.packageTime,"onUpdate:modelValue":v[1]||(v[1]=O=>n.packageTime=O),type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),z(w,{type:"primary",onClick:g,loading:o.value},{default:q(()=>[...v[7]||(v[7]=[Ue("开始查询",-1)])]),_:1},8,["loading"]),z(C,{direction:"vertical"}),de("div",lse,[v[8]||(v[8]=de("span",null,"是否导出图片？",-1)),z(T,{class:"box-item",effect:"dark",content:"默认否，导出图片较为耗时！请按需选择。",placement:"bottom"},{reference:q(()=>[z(k,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),z(S,{modelValue:n.isExportImage,"onUpdate:modelValue":v[2]||(v[2]=O=>n.isExportImage=O),style:{"margin-left":"24px"},"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue"])]),z(C,{direction:"vertical"}),z(w,{type:"primary",onClick:h,loading:y.value},{default:q(()=>[...v[9]||(v[9]=[Ue("导出Excel",-1)])]),_:1},8,["loading"])]),z(N,{class:"mt-3 w-full",style:{height:"74vh"},data:c.value},{default:q(()=>[z(P,{label:"商品图片",width:"110"},{default:q(({row:O})=>{var I;return[z(M,{style:{width:"80px",height:"80px"},src:(I=O.returnPackageDetail)==null?void 0:I.thumbUrl},null,8,["src"])]}),_:1}),z(P,{label:"商品信息",width:"280"},{default:q(({row:O})=>{var I;return[Ue(ht((I=O.returnPackageDetail)==null?void 0:I.productSkuName),1)]}),_:1}),z(P,{label:"退货包裹号",width:"180",prop:"returnSupplierPackageNo"}),z(P,{label:"运单号",width:"180",prop:"expressDeLiverySn"}),z(P,{label:"状态",width:"100",prop:"packageStatusDesc"}),z(P,{label:"退货方式",width:"100",prop:"returnHandOverTypeDesc"}),z(P,{label:"快递支付方式",width:"150",prop:"payMethodDesc"}),z(P,{label:"物流商",width:"100",prop:"logisticsTypeDesc"}),z(P,{label:"退货子仓",width:"180",prop:"returnSubWarehouseName"}),z(P,{label:"退货子仓地址",width:"280",prop:"returnSubWarehouseAddress"}),z(P,{label:"打包完成时间",width:"180"},{default:q(({row:O})=>[Ue(ht(new Date(O.packageFinishTime).toLocaleString()),1)]),_:1}),z(P,{label:"出库时间",width:"180"},{default:q(({row:O})=>[Ue(ht(new Date(O.outboundTime).toLocaleString()),1)]),_:1}),z(P,{label:"SKU ID",width:"180"},{default:q(({row:O})=>{var I;return[Ue(ht((I=O.returnPackageDetail)==null?void 0:I.skuId),1)]}),_:1}),z(P,{label:"SKC ID",width:"180"},{default:q(({row:O})=>{var I;return[Ue(ht((I=O.returnPackageDetail)==null?void 0:I.skcId),1)]}),_:1}),z(P,{label:"退货单号",width:"180"},{default:q(({row:O})=>{var I;return[Ue(ht((I=O.returnPackageDetail)==null?void 0:I.returnSupplierOrderSn),1)]}),_:1}),z(P,{label:"退货数量",width:"180"},{default:q(({row:O})=>{var I;return[Ue(ht((I=O.returnPackageDetail)==null?void 0:I.quantity),1)]}),_:1}),z(P,{label:"退货原因",width:"180"},{default:q(({row:O})=>{var I;return[Ue(ht((I=O.returnPackageDetail)==null?void 0:I.reason),1)]}),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue","onClose"])],64)}}},fse={__name:"index",setup(a){return(s,r)=>(Oe(),Et(No,null,{default:q(()=>[z(cse)]),_:1}))}},dse=async(a,s="商品表格.xlsx",r=!1)=>{var i,n,t,c,u,f,o,l;try{const g=new sx.Workbook,m=g.addWorksheet("明细"),p=[{header:"商品图片",key:"image",width:20},{header:"商品名称",key:"productName",width:30},{header:"SPU ID",key:"productId",width:12},{header:"商品类目",key:"catNameList",width:10},{header:"出价",key:"supplierPrice",width:10},{header:"货币单位",key:"currencyType",width:15},{header:"预估库存要求",key:"minPurchaseCount",width:15}];r||p.splice(0,1),m.columns=p,m.columns.forEach(d=>{d.alignment={vertical:"middle",horizontal:"left",wrapText:!1}});const _=m.getRow(1);_.font={bold:!0,size:12,color:{argb:"FFFFFFFF"}},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF4F81BD"}},_.alignment={vertical:"middle",horizontal:"center"},_.height=30;for(let d=0;d<a.length;d++){const A=a[d],v={image:(i=A.targetProductVO)!=null&&i.imageList[0]?"":"无图片",productName:((n=A.targetProductVO)==null?void 0:n.name)||"",productId:((t=A.targetProductVO)==null?void 0:t.productId)||"",catNameList:((c=A.targetProductVO)==null?void 0:c.catNameList.join("-"))||"",supplierPrice:A.supplierPrice?(A.supplierPrice/100).toFixed(2):0,currencyType:A.currencyType||"",minPurchaseCount:A.minPurchaseCount||0};r||delete v.image;const w=m.addRow(v);w.height=r?80:25,w.alignment={vertical:"middle",horizontal:"left",wrapText:!1}}if(r)for(let d=0;d<a.length;d++){const A=a[d],v=d+2;if((u=A.targetProductVO)!=null&&u.imageList[0])try{await hse(m,(f=A.targetProductVO)==null?void 0:f.imageList[0],v,1)}catch(w){console.warn(`图片加载失败: ${(o=A.targetProductVO)==null?void 0:o.imageList[0]}`,w);const x=m.getCell(`A${v}`);x.value={text:"查看图片",hyperlink:(l=A.targetProductVO)==null?void 0:l.imageList[0]},x.font={color:{argb:"FF0000FF"},underline:!0},x.alignment={vertical:"middle",horizontal:"center"}}}const y=await g.xlsx.writeBuffer(),h=new Blob([y],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return gy.saveAs(h,s),!0}catch(g){throw console.error("导出Excel失败:",g),new Error("导出失败，请重试")}},hse=async(a,s,r,i)=>{try{const n=await fetch(s);if(!n.ok)throw new Error(`HTTP ${n.status}`);const t=await n.arrayBuffer(),c=Ase(s,n),u=a.workbook.addImage({buffer:t,extension:c}),f=a.getRow(r),o=a.getColumn(i);a.addImage(u,{tl:{col:i-1,row:r-1,colOff:.1*9525,rowOff:.1*9525},br:{col:i,row:r,colOff:-.1*9525,rowOff:-.1*9525},editAs:"oneCell"}),f.height=80,o.width=20}catch(n){throw console.warn(`无法添加图片: ${s}`,n),n}},Ase=(a,s)=>{const r=s.headers.get("content-type");if(r){if(r.includes("jpeg")||r.includes("jpg"))return"jpeg";if(r.includes("png"))return"png";if(r.includes("gif"))return"gif"}const i=a.split(".").pop().toLowerCase();return["jpg","jpeg"].includes(i)?"jpeg":i==="png"?"png":i==="gif"?"gif":"jpeg"},pse={class:"flex gap-2 mt-3 flex-wrap items-center"},mse={class:"flex items-center gap-2"},gse={__name:"ExportCompete",setup(a){const s=we(1),r=[{label:"待确认邀约",value:1},{label:"竞价中",value:2},{label:"待平台确认结果",value:3},{label:"竞价成功",value:4},{label:"竞价失败",value:5}],i=Pr(()=>{var _;return((_=r.find(y=>y.value==s.value))==null?void 0:_.label)||""}),n=we(!1),t=we(!1),c=we([]),u=we({page:1,pageSize:100}),f=we("数据获取中..."),o=()=>{c.value=[],f.value="数据获取中...",u.value.page=1,u.value.pageSize=100,l()},l=async()=>{var _;m.value=!0;try{let y={page:u.value.page,pageSize:u.value.pageSize};[1,2].includes(s.value)?(y.confirmInvitingStatus=s.value==1?0:1,y.status=2):y.status=s.value;const{result:h,success:d,errorMsg:A}=await YX(y);if(d){c.value=[...c.value,...h.orderItemList];let v=((_=h.tabAggregationList.find(w=>w.priceComparingItemTab==s.value))==null?void 0:_.count)||0;f.value=`数据获取中 ${c.value.length} / ${v}`,v>c.value.length?(u.value.page+=1,l()):p()}}catch(y){p(),console.error(y),ut.error((y==null?void 0:y.errorMsg)||(y==null?void 0:y.error))}},g=()=>{t.value=!0},m=we(!1),p=async()=>{f.value=`正在导出，${n.value?"图片":""}数据处理中...`;try{await dse(c.value,`${i.value}商品表格.xlsx`,n.value),ut.success("导出成功")}catch(_){ut.error("导出失败: "+_.message)}finally{m.value=!1}};return(_,y)=>{const h=Ce("el-button"),d=Ce("el-icon"),A=Ce("el-popover"),v=Ce("el-switch"),w=Ce("el-divider"),x=Ce("el-radio"),C=Ce("el-radio-group"),k=Ce("el-dialog");return Oe(),st(Zt,null,[z(h,{type:"primary",onClick:g},{default:q(()=>[...y[4]||(y[4]=[Ue("【凌风跨境工具箱】导出竞价商品表格",-1)])]),_:1}),z(k,{class:"warp-float",modelValue:t.value,"onUpdate:modelValue":y[3]||(y[3]=T=>t.value=T),width:"600",border:"","close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":""},{header:q(()=>[...y[5]||(y[5]=[de("div",{class:"flex items-center"},[de("h2",{style:{"margin-bottom":"0"}},"【凌风跨境工具箱】导出竞价商品表格")],-1)])]),footer:q(()=>[z(h,{onClick:y[2]||(y[2]=T=>t.value=!1),loading:m.value},{default:q(()=>[...y[8]||(y[8]=[Ue("关闭",-1)])]),_:1},8,["loading"])]),default:q(()=>[de("div",pse,[de("div",mse,[y[6]||(y[6]=de("span",null,"是否导出图片？",-1)),z(A,{class:"box-item",effect:"dark",content:"默认否，导出图片较为耗时！请按需选择。",placement:"bottom"},{reference:q(()=>[z(d,null,{default:q(()=>[z(St(Ro))]),_:1})]),_:1}),z(v,{modelValue:n.value,"onUpdate:modelValue":y[0]||(y[0]=T=>n.value=T),disabled:m.value,style:{"margin-left":"24px"},"inline-prompt":"","active-text":"是","inactive-text":"否"},null,8,["modelValue","disabled"])]),z(w,{direction:"vertical"}),z(h,{type:"primary",onClick:o,loading:m.value},{default:q(()=>[z(d,null,{default:q(()=>[z(St(NC))]),_:1}),Ue(ht(m.value?f.value:"导出竞品表格"),1)]),_:1},8,["loading"])]),de("div",null,[y[7]||(y[7]=de("div",{class:"title"},"导出分类",-1)),z(C,{modelValue:s.value,"onUpdate:modelValue":y[1]||(y[1]=T=>s.value=T),class:"gap-[15px]"},{default:q(()=>[(Oe(),st(Zt,null,Hr(r,T=>z(x,{disabled:m.value,value:T.value,border:""},{default:q(()=>[Ue(ht(T.label),1)]),_:2},1032,["disabled","value"])),64))]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"])],64)}}},vse=cn(gse,[["__scopeId","data-v-e654cb48"]]),yse={__name:"index",setup(a){return(s,r)=>(Oe(),Et(No,null,{default:q(()=>[z(vse)]),_:1}))}};let Kk=[];function bse(){const a=window.location,s=`${a.protocol}//${a.host}${a.pathname}`;Kk.forEach((r,i)=>{const{component:n,querySelector:t,insertIndex:c,urls:u}=r;if(!u.includes(s))return;let f=[];if(typeof t=="function"?(f=t(),f&&!Array.isArray(f)&&(f=[f])):f=document.querySelectorAll(t),f)for(let o=0;o<f.length;o++){const l=f[o],g=`lingfeng-inject-${i}-${o}`,m=`lingfeng-inject-${i}`;if(!l.querySelector(`.${m}`)){const p=document.createElement("div");p.id=g,p.setAttribute("class",m),c===-1?l.appendChild(p):l.insertBefore(p,l.childNodes[c]),r.divWarp&&r.divWarp(p),ks(p,n)}}})}function $i(a,s,r,i,n=null){const t=Array.isArray(i)?i:[i];Kk.push({component:a,querySelector:s,insertIndex:r,urls:t,divWarp:n})}$i(DJ,'#page_container_id div[class*="index-module__divider-wrapper"]',-1,"https://agentseller.temu.com/goods/list",function(a){a.style.width="100%",a.style.marginTop="13px"});$i(PJ,()=>document.querySelector('div[class*="index-module__divider-wrapper"]>div'),-1,"https://agentseller.temu.com/goods/draft",a=>{a.style.display="inline-block",a.style.marginLeft="13px"});$i(YJ,"#root div.rocket-table-wrapper",0,"https://agentseller.temu.com/govern/information-supplementation",a=>{a.style.display="inline-block",a.style.marginLeft="13px";const s=a.querySelector('div[style*="display: flex"]');s&&(s.style.gap="8px",s.style.alignItems="center")});$i(Hq,()=>{const a=document.querySelector("div#root div.rocket-spin-container"),s=a==null?void 0:a.querySelector("button:last-child");return s&&s.textContent.trim()==="具有相同包装的商品批量上传或更新"?a.firstChild:null},-1,"https://agentseller.temu.com/govern/compliant-live-photos",a=>{a.style.display="inline-block"});$i(nee,()=>{const a=document.querySelector("div.rocket-table-wrapper");return a==null?void 0:a.previousSibling},-1,"https://agentseller.temu.com/govern/upload-qualifications",a=>{a.style.display="inline-block";const s=a.parentElement;s.style.display="flex",s.style.justifyContent="flex-start",s.style.alignItems="center",s.style.gap="16px";const r=s.querySelector("button.rocket-btn");r&&(r.style.marginBottom="0")});$i(iee,()=>{const a=document.querySelector("div.rocket-drawer-title"),s=a==null?void 0:a.innerText;return s==="重新上传资质"||s==="上传资质"||s==="修改"?a.closest("div.rocket-drawer-wrapper-body").querySelector("div.rocket-drawer-footer").firstChild:null},-1,"https://agentseller.temu.com/govern/upload-qualifications",a=>{a.style.display="inline-block",a.style.marginLeft="10px"});$i(uee,"#root div.rocket-table-wrapper",0,"https://agentseller.temu.com/govern/information-supplementation",a=>{a.style.display="inline-block",a.style.marginLeft="13px";const s=a.querySelector('div[style*="display: flex"]');s&&(s.style.gap="8px",s.style.alignItems="center")});$i(bee,()=>{const a=document.querySelectorAll("button");for(let s=0;s<a.length;s++){const r=a[s];if(r.innerText==="视频批量更新")return r.parentNode.parentNode}return null},2,"https://agentseller.temu.com/material/image-task",a=>{a.style.marginLeft="13px",a.style.display="inline-flex"});$i(Eee,()=>document.querySelector('div[class*="TAB_outerWrapper"]'),0,"https://agentseller.temu.com/activity/marketing-tools",a=>{});$i(lte,()=>document.querySelector('#page_container_id div[class*="index-module__divider-wrapper"]'),-1,"https://agentseller.temu.com/main/adjust-price-manage/order-price");$i(xte,()=>document.querySelector('#root div[class*="index-module__divider-wrapper"]>div>div>div'),-1,["https://seller.kuajingmaihuo.com/main/sale-manage/main","https://agentseller.temu.com/stock/fully-mgt/sale-manage/main"]);$i(nre,()=>document.querySelector('#root div[class*="index-module__divider-wrapper"]'),-1,"https://seller.kuajingmaihuo.com/main/order-manager/shipping-list");$i(lre,()=>document.querySelector('#root div[class*="product-label_dividerFieldContainer"]'),-1,"https://seller.kuajingmaihuo.com/main/product/label",a=>{a.style.marginLeft="13px"});$i(dre,()=>{if(!document.querySelector("#exceptReceiveAreaConfigType"))return null;const s=document.querySelector('body > div[class*="Drawer_right_"][class*="Drawer_visible_"]');if(!s)return null;const r=s.querySelector('div[class*="index-module__header"]');if(!r||r.innerText!=="修改期望到货区域")return null;const i=s.querySelectorAll("button");if(i.length)for(let n=0;n<i.length;n++){const t=i[n];if(t.innerText==="退出")return t.parentNode}return ut.error('"一键设置期望到货区域"按钮注入失败, 可能是 TEMU 更新导致的, 请联系开发人员更新插件'),console.error('未找到"退出"按钮'),null},-1,["https://seller.kuajingmaihuo.com/main/sale-manage/main","https://agentseller.temu.com/stock/fully-mgt/sale-manage/main"],a=>{a.style.marginLeft="13px"});$i(sae,()=>document.querySelector('#root div[class*="index-module__table-with-filter"]'),1,"https://agentseller.temu.com/newon/product-select",a=>{a.style.width="100%"});$i(pae,()=>{const a=document.querySelector('#root div[class*="index-module__divider-wrapper"]');return a?a.parentElement:null},-1,["https://agentseller.temu.com/stock/fully-mgt/order-manage-urgency"],a=>{a.style.margin="16px 0 12px"});$i(Wae,()=>{const a=document.querySelector('#root div[class*="index-module__divider-wrapper"]');return a?a.parentElement:null},-1,["https://seller.kuajingmaihuo.com/main/order-manage","https://agentseller.temu.com/stock/fully-mgt/order-manage"],a=>{a.style.margin="16px 0 12px"});$i(Yae,()=>{const a=document.querySelector('#root div[class*="index-module__divider-wrapper"]');return a?a.parentElement:null},-1,"https://seller.kuajingmaihuo.com/main/order-manager/shipping-desk",a=>{a.style.margin="16px 0 12px"});$i(Xae,()=>{const a=document.querySelector('div[class*="TAB_tabContentInnerContainer"]');return a.style.display="flex",a.style.alignItems="center",a},-1,"https://agentseller.temu.com/activity/marketing-activity");$i(iie,()=>{const a=document.querySelector('div[class*="finance-detail_customAreaBox"]');return a?a.firstChild:null},0,"https://seller.kuajingmaihuo.com/labor/bill",a=>{a.style.display="flex",a.style.alignItems="center",a.style.marginBottom="12px"});$i(hie,()=>{const a=document.querySelector("div.operator-O0q7Jt");return a?a.firstChild:null},0,"https://seller.tiktokshopglobalselling.com/product-supply/push/wait-select-v2/draft");$i(jie,()=>document.querySelector('div[class*="TAB_outerWrapper_"]'),-1,["https://agentseller.temu.com/main/flow-grow","https://agentseller-us.temu.com/main/flow-grow","https://agentseller-eu.temu.com/main/flow-grow"],a=>{a.style.display="inline-block",a.style.marginTop="13px"});$i(Qie,()=>document.querySelector('div[class*="custom-stock-order-mgt_leftCnt"]'),0,"https://agentseller.temu.com/stock/fully-mgt/order-manage-custom");$i(nse,()=>document.querySelector('div[class*="rocket-table-wrapper"]'),0,"https://agentseller.temu.com/govern/suit-property");$i(fse,()=>document.querySelector('div[class*="index-module__operateArea"]'),-1,"https://seller.kuajingmaihuo.com/wms/stock-mgt/return-order-mgt",a=>{a.style.display="inline-block",a.style.marginTop="13px"});$i(yse,()=>document.querySelector('div[class*="index-module__twf-fields"]'),-1,"https://agentseller.temu.com/newon/compete-manager",a=>{a.style.display="inline-block",a.style.marginTop="13px"});const wse={class:"priceTips"},_se={class:"flex justify-end items-center gap-2"},xse={__name:"priceAdjustmentDialog",props:{visible:Boolean,priceTotal:Number},emits:["update:visible","remind-later","remind-tomorrow"],setup(a,{emit:s}){const r=a,i=s,n=c=>{i("update:visible",!1),c==="later"?i("remind-later"):c==="tomorrow"&&i("remind-tomorrow")},t=()=>{window.location.href="https://agentseller.temu.com/main/adjust-price-manage/order-price"};return(c,u)=>{const f=Ce("el-button"),o=Ce("el-dialog");return Oe(),Et(o,{"align-center":"",width:"500","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,style:{"border-radius":"8px"},modelValue:r.visible,"onUpdate:modelValue":u[2]||(u[2]=l=>r.visible=l)},{title:q(()=>[...u[3]||(u[3]=[de("h3",{style:{margin:"0"}},"凌风云链插件提醒",-1)])]),footer:q(()=>[de("div",_se,[z(f,{onClick:u[0]||(u[0]=l=>n("later")),type:"primary"},{default:q(()=>[...u[4]||(u[4]=[Ue("10分钟后在提醒",-1)])]),_:1}),z(f,{onClick:u[1]||(u[1]=l=>n("tomorrow"))},{default:q(()=>[...u[5]||(u[5]=[Ue(" 已读 & 今日不再提醒 ",-1)])]),_:1})])]),default:q(()=>[de("div",wse,[Ue(" 您当前店铺还有"+ht(a.priceTotal)+"件商品待确认调价。由于官方规定部分商品在12/24小时内未确认会默认统一同意调价，为保障您不必要的损失，请务必前往商品管理-调价管理-待卖家确认位置中自行确认调价！",1),de("span",{class:"goNow",onClick:t},"立即前往")])]),_:1},8,["modelValue"])}}},Cse=cn(xse,[["__scopeId","data-v-29e49e04"]]),Sse={__name:"index",emits:["updateAPI"],setup(a,{emit:s}){const r=we([]),i=()=>{Pn.confirm("确认阅读所有消息吗?","提示",{type:"warning"}).then(async()=>{try{Wm({jump_temu_backend_popup_notice_click_cnt:1})}catch(t){console.log(t)}try{try{const t=await Di();await n(t)}catch(t){console.log(t)}}catch(t){console.log("error:",t)}message.success("阅读所有公告成功！")}).catch(()=>{})},n=async t=>{var c,u;try{const f=await bx({Mallid:t});if(!f.success||(r.value=f.result.filter(m=>m.unreadNum>0),r.value.length===0))return;const o=[];for(const m of r.value){const p=Math.ceil(m.unreadNum/20),_=[];for(let y=1;y<=p;y++){const h=await hT({data:{groupCode:m.groupCode,pageSize:20,pageNum:y},Mallid:t});h.success&&((u=(c=h.result)==null?void 0:c.dataList)!=null&&u.length)&&_.push(...h.result.dataList)}o.push({groupCode:m.groupCode,groupDesc:m.groupDesc,messages:_})}const l=o.flatMap(m=>m.messages.map(p=>p.id));for(const m of l)try{const p=await AT({data:{msgId:m},Mallid:t});await pT({data:{msgId:m},Mallid:t})}catch(p){console.error(`标记消息 ${m} 异常:`,p)}const g=await bx({Mallid:t});g.success&&(r.value=g.result.filter(m=>m.unreadNum>0)),ha({title:"提示",message:"已阅读所有未读消息，请刷新页面查看最新消息",type:"success",duration:432e5})}catch(f){console.error("readMsg 执行异常：",f)}};return(t,c)=>{const u=Ce("var-button"),f=Ce("var-tooltip");return Oe(),Et(f,{content:"【凌风跨境工具箱】一键阅读所有未读消息",placement:"top"},{default:q(()=>[z(u,{type:"success","icon-container":"",onClick:i},{default:q(()=>[z(Rc,{type:"mdi",path:St(UT)},null,8,["path"])]),_:1})]),_:1})}}},kse={__name:"toTemuShop",setup(a){const s=ls(),r=async()=>{try{if(!await Zu(s))return;await r_()}catch{}};return(i,n)=>{const t=Ce("el-button");return Oe(),Et(t,{type:"primary",onClick:r},{default:q(()=>[...n[0]||(n[0]=[Ue("【凌风跨境工具箱】进入我的店铺(无需梯子)",-1)])]),_:1})}}},Tse={__name:"index",setup(a){let s=null;const r=()=>{s&&clearInterval(s),s=setInterval(()=>{document.querySelector('div[class*="lingfeng-custom-toShop-buttons"]')||i()},1e3)};function i(){const n=["https://seller.kuajingmaihuo.com","https://agentseller.temu.com","https://agentseller-us.temu.com","https://agentseller-eu.temu.com"],c=['div[class*="account-info_accountInfoSection"]','div[class*="account-info_accountUserInfo"]'].filter(u=>document.querySelector(u));if(n.includes(window.location.origin)&&c.length>0){const u=document.querySelector(c[0]),f=document.createElement("div");f.style.marginTop="13px",f.style.marginLeft="30px",f.className="lingfeng-custom-toShop-buttons",u.insertBefore(f,u.childNodes[1]),ks(f,kse)}}return oa(()=>{r()}),$l(()=>{s&&clearInterval(s)}),()=>{}}},iw="priceAdjustmentRemindTime",Ese={__name:"app",setup(a){Kn();const s=we(null),r=()=>{x.value=!0,setTimeout(()=>{w.value=!0},500),s.value=setTimeout(()=>{S(),clearTimeout(s)},3e3)};my();const i=setInterval(()=>{const he=window.location.pathname,Y=new URLSearchParams(window.location.search);let K=!1;if((he==="/goods/edit"&&Y.toString()!==""&&!Y.has("st_time")||he==="/goods/images-edit"&&Y.toString()!=="")&&(K=!0),K){let oe=document.querySelector('div[class*="block-title-module__block-title"]');if(oe&&!document.querySelector("#joinContentApp1")){const pe=document.createElement("div");pe.id="joinContentApp1",pe.style.display="inline-block",pe.style.marginLeft="10px";const ve=oe.querySelector('[class^="block-title-module__left"]');ve&&(ve.appendChild(pe),ks(pe,_N),clearInterval(i))}}},1e3),n=["待装箱发货","待仓库收货","已收货","我的备货单","退货包裹管理","退货明细","即将售罄","已售罄","导出半托管店铺商品信息","普通备货单","销售管理","普通备货单历史数据","批量修改JIT商品库存","定制品备货单","半托管商品列表","全托管商品列表"],t=[{node:'div[class*="shipping-list_flexAndColor"]',childNodes:5,url:"https://seller.kuajingmaihuo.com/main/order-manager/shipping-list"},{node:'div[class*="shipping-list_flexAndColor"]',childNodes:4,url:"https://seller.kuajingmaihuo.com/main/order-manager/shipping-list"},{node:'div[class*="TAB_outerWrapper_"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/main/order-manager/shipping-list"},{node:'div[class*="order-manage_leftCnt"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/main/order-manage-urgency"},{node:'div[class*="index-module__operateArea"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/wms/stock-mgt/return-order-mgt"},{node:'div[class*="Grid_row_"][class*="Grid_rowHorizontal_"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/wms/stock-mgt/return-package-detail"},{node:'div[class*="index-module__col-query-btn-wrapper"]',childNodes:2,url:"https://seller.kuajingmaihuo.com/main/board/sku-sale-out"},{node:'div[class*="index-module__col-query-btn-wrapper"]',childNodes:2,url:"https://seller.kuajingmaihuo.com/main/board/sku-sale-out"},{node:"",childNodes:0,url:"none"},{node:'div[class*="order-manage_leftCnt_"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/main/order-manage"},{node:'div[class*="index-module__divider-wrapper"]>div:first-child',childNodes:0,url:"https://agentseller.temu.com/newon/product-select"},{node:'div[class*="order-manage_leftCnt_"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/main/order-manage"},{node:'div[class*="hooks_dividerLeftBlock"]',childNodes:0,url:"https://agentseller.temu.com/goods/list"},{node:'div[class*="order-manage_leftCnt"]',childNodes:0,url:"https://seller.kuajingmaihuo.com/main/order-manage-custom"},{node:'div[class*="hooks_dividerLeftBlock"]',childNodes:0,url:"https://agentseller.temu.com/goods/list"},{node:'div[class*="hooks_dividerLeftBlock"]',childNodes:0,url:"https://agentseller.temu.com/goods/list"}],c=setInterval(()=>{for(let he=0;he<t.length;he++){if([0,1,2,3,9,10,11,12,14,15].includes(he))continue;const Y=document.querySelector("div#joinContentAppExport"+he);if(location.href!=t[he].url){Y&&Y.remove();continue}if(he===12||he===15){const ve=document.querySelector(t[he].node);if(Array.from(ve.querySelectorAll("button span")).find(ue=>ue.textContent.includes("更多")))continue}if(he===14){const ve=document.querySelector(t[he].node);if(!Array.from(ve.querySelectorAll("button span")).find(ue=>ue.textContent.includes("更多")))continue}if(he===13){const ve=document.querySelector(t[he].node);if(!Array.from(ve.querySelectorAll("button span")).find(ue=>ue.textContent.includes("批量去查看定制内容")))continue}let K=null;Y&&(K=parseInt(Y.getAttribute("data-lingfeng-name")));let oe=null,pe="";if(he===-1)return;if([0,1,2,6,7].includes(he)?(oe=[0,1,2].includes(he)?document.querySelector('div[class*="TAB_active_"]').innerText:document.querySelector('div[class*="TAB_cardLabel_"][class*="TAB_active_"]').innerText,n.includes(oe)?(pe=document.querySelector(t[n.indexOf(oe)].node),Y&&K!=null&&K!==n.indexOf(oe)&&Y.remove()):he===2&&Y&&Y.remove()):[3,4,5,9,10,11,12,13,14,15].includes(he)&&(pe=document.querySelector(t[he].node),oe=n[he]),pe&&!Y){if(K=n.indexOf(oe),K!=he)continue;const ve=document.createElement("div");ve.id="joinContentAppExport"+he,ve.setAttribute("data-lingfeng-name",K.toString()),he===10&&(ve.style="display: inline-block;");let ge=t[K].childNodes;ge===0?pe.appendChild(ve):pe.insertBefore(ve,pe.childNodes[ge]),ks(ve,R0,{exportType:K})}}bse()},1e3);Cf(()=>{console.log("----清空定时器"),clearInterval(c)});const u=we(parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"50")),f=we(0),o=Pr(()=>u.value+"%"),l=Pr(()=>f.value+"%");let g=parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"100"),m=parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100");setInterval(()=>{var oe;let he=(oe=document.getElementById("lingfengPlugin"))==null?void 0:oe.getBoundingClientRect();if(!he)return;let Y=he.x/window.innerWidth*100,K=he.y/window.innerHeight*100;Math.abs(g-Y)>=2&&(g=Y,localStorage.setItem("lingfengPluginLeftPosition",Y+"")),Math.abs(m-K)>=2&&(m=K,localStorage.setItem("lingfengPluginTopPosition",K+""))},1e3);const p="https://www.kuajingabc.com",_=async(he=!1)=>{try{Wm({jump_temu_backend_popup_notice_click_cnt:1})}catch(Y){console.log(Y)}h("hide",he)},y=[[{elementStr:"span",content:"重新报价原因"},{elementStr:"span",content:"新申报价格(CNY)"},{elementStr:"span",content:"改价意愿"}],[{elementStr:"span",content:"是否接受价格调整参考"},{elementStr:"span",content:"调价适用范围"},{elementStr:"span",content:"调价类型"}]],h=(he,Y=!1)=>{let K=!1;const oe=['div[class*="MDL_mask_"','div[class*="MDL_outerWrapper_"'];for(let pe in oe)document.querySelectorAll(oe[pe]).forEach(ge=>{if(!Y){let ue=!1;for(let Te of y)if(ue=Te.every(Ee=>{let ye=ge.querySelectorAll(Ee.elementStr);return Array.from(ye).some(Se=>Se.textContent.trim()===Ee.content)}),ue)break;if(ue)return}he==="query"&&ge.style.display!=="none"?K=!0:he==="hide"?(ge.style.display="none",r()):he==="show"&&(ge.style.display="block",r())});return K},d=()=>{let he=document.querySelectorAll('div[style*="z-index: 2147483647"]'),Y=he[0].cloneNode(!0);document.head.appendChild(Y);let K=he[0];K.parentNode.removeChild(K)},A=()=>{document.querySelectorAll('div[class^="RD_textWrapper"]').forEach(function(oe){(oe.textContent.includes("我不接受")||oe.textContent.includes("不调整"))&&oe.click()}),document.querySelectorAll('div[class^="CBX_textWrapper_5"]').forEach(function(oe){oe.textContent.includes("我已知晓风险，本次不再提醒")&&oe.click()}),document.querySelectorAll('button[class^="BTN_outerWrapper_"]').forEach(function(oe){oe.textContent.includes("拒绝接受价格调整建议")&&oe.click()}),ut.success("一键拒绝弹窗调价成功！")},v=async he=>{window.open(he)},w=we(!1),x=we(!1),C=we(localStorage.getItem("NoticeSwitch")==="true");let k="",T=null;Ra(()=>C,he=>{if(localStorage.setItem("NoticeSwitch",he.value),he.value){clearInterval(T),T=setInterval(()=>{h("query")&&_()},200);let Y=setInterval(()=>{let K=!1;document.querySelectorAll("span").forEach(oe=>{oe.innerText.includes("加载中")&&(K=!0)}),K||(setTimeout(()=>{clearInterval(T)},3e3),clearInterval(Y))},500)}else clearInterval(T),h("show")},{immediate:!0,deep:!0});const S=()=>{x.value=!1,w.value=!1};Ra(()=>s.value,(he,Y)=>{Y&&clearTimeout(Y)},{deep:!0});const M=()=>{if(k!=document.URL&&C.value){k=document.URL,clearInterval(T),T=setInterval(()=>{h("query")&&_()},200);let he=setInterval(()=>{let Y=!1;document.querySelectorAll("span").forEach(K=>{K.innerText.includes("加载中")&&(Y=!0)}),Y||(setTimeout(()=>{clearInterval(T)},3e3),clearInterval(he))},700)}if(k!=document.URL&&P.value){k=document.URL,clearInterval(N),N=setInterval(()=>{console.log("清除水印1====="),d()},200);let he=setInterval(()=>{let Y=!1;document.querySelectorAll("span").forEach(K=>{K.innerText.includes("加载中")&&(Y=!0)}),Y||(setTimeout(()=>{clearInterval(N)},3e3),clearInterval(he))},700)}},P=we(localStorage.getItem("WaterMarkSwitch")==="true");let N=null;Ra(()=>P,he=>{if(localStorage.setItem("WaterMarkSwitch",he.value),he.value){clearInterval(N),N=setInterval(()=>{d()},200);let Y=setInterval(()=>{let K=!1;document.querySelectorAll("span").forEach(oe=>{oe.innerText.includes("加载中")&&(K=!0)}),K||(setTimeout(()=>{clearInterval(N)},3e3),clearInterval(Y))},500)}else clearInterval(N)},{immediate:!0,deep:!0});const B=we(localStorage.getItem("showTemuBackendFloatBall")!=="false");Ra(()=>B,he=>{localStorage.setItem("showTemuBackendFloatBall",he.value)},{immediate:!0,deep:!0}),chrome.runtime.onMessage.addListener(function(he,Y,K){he.greeting==="sendSellerSet"?(P.value=he.WaterMarkSwitch,K({farewell:"goodbye1"})):he.greeting==="sendSellerGet"?K({farewell:"goodbye",WaterMarkSwitch:P.value}):he.greeting==="sendShowTemuBackendFloatBall"?B.value=he.showTemuBackendFloatBall:he.greeting==="getShowTemuBackendFloatBall"&&K({farewell:"goodbye",showTemuBackendFloatBall:B.value})}),oa(()=>{window.addEventListener("popstate",M),window.addEventListener("click",()=>{let he=setInterval(()=>{let Y=!1;document.querySelectorAll("span").forEach(K=>{K.innerText.includes("加载中")&&(Y=!0)}),Y||(clearInterval(T),clearInterval(N),clearInterval(he))},200)})});const O=he=>{const Y=document.getElementById("lingfengPlugin"),K=he.clientX,oe=he.clientY,pe=Y.offsetLeft/window.innerWidth*100,ve=Y.offsetTop/window.innerHeight*100,ge=Y.offsetWidth/window.innerWidth*100,ue=Y.offsetHeight/window.innerHeight*100,Te=ye=>{const Se=ye.clientX-K,Fe=ye.clientY-oe;u.value=pe+Se/window.innerWidth*100,f.value=ve+Fe/window.innerHeight*100,u.value<0&&(u.value=0),u.value>100-ge&&(u.value=100-ge),f.value<0&&(f.value=0),f.value>100-ue&&(f.value=100-ue),Y.style.left=u.value+"%",Y.style.top=f.value+"%"},Ee=()=>{document.removeEventListener("mousemove",Te),document.removeEventListener("mouseup",Ee)};document.addEventListener("mousemove",Te),document.addEventListener("mouseup",Ee)};let I=!1;const F=he=>{I||(C.value=he)},L=he=>{const Y=he.target.closest(".noticeSwitch"),K=he.clientY,oe=Y.offsetTop/window.innerHeight*100;Y.style.transition="none";const pe=ge=>{I=!0;const ue=ge.clientY-K;let Te=oe+ue/window.innerHeight*100;Te<2&&(Te=2),Te>95&&(Te=95),Y.style.top=Te+"%"},ve=()=>{document.removeEventListener("mousemove",pe),document.removeEventListener("mouseup",ve),Y.style.transition="",setTimeout(()=>{I=!1},100),R(Y.style.top)};document.addEventListener("mousemove",pe),document.addEventListener("mouseup",ve)},R=he=>{aS(he)},U=()=>{const he=document.querySelector(".noticeSwitch");he.style.top=nS()||""};let V=null;const W=()=>{const he=Date.now()+6e5;localStorage.setItem(iw,he.toString()),V=setTimeout(()=>{ie()},600*1e3)},Q=()=>{const he=Date.now()+864e5;localStorage.setItem(iw,he.toString())};oa(()=>{U();const he=localStorage.getItem(iw);(!he||Date.now()>=parseInt(he))&&setTimeout(()=>{ie()},1e3)}),Cf(()=>{clearInterval(c),clearTimeout(V)}),setTimeout(()=>{const he=document.getElementById("lingfengPlugin"),Y=he.offsetWidth/window.innerWidth*100,K=he.offsetHeight/window.innerHeight*100,oe=new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0});he.dispatchEvent(oe);const pe=he.offsetLeft/window.innerWidth*100;u.value=pe,f.value=parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100"),u.value<0&&(u.value=0),u.value>100-Y&&(u.value=100-Y),f.value<0&&(f.value=0),f.value>100-K&&(f.value=100-K),he.style.left=u.value+"%",he.style.top=f.value+"%";const ve=new MouseEvent("mouseout",{view:window,bubbles:!0,cancelable:!0});he.dispatchEvent(ve)},1);const le=we(!1),G=we([]),fe=we(0),ie=async()=>{var oe;const he=window.location.hostname;let Y=null;he==="seller.kuajingmaihuo.com"?Y=Di():he==="agentseller.temu.com"&&(Y=Di());const K=await Mk();K.status===0&&(G.value=K.infoList.filter(pe=>pe.mallId==Y)[0],fe.value=(oe=G.value)==null?void 0:oe.goodsNum,fe.value>0&&(le.value=!0))};return(he,Y)=>{const K=Ce("var-icon"),oe=Ce("var-button"),pe=Ce("var-tooltip"),ve=Ce("var-fab"),ge=Ce("el-switch"),ue=Ce("el-popover");return Oe(),st(Zt,null,[B.value?(Oe(),Et(ve,{key:0,id:"lingfengPlugin",direction:"right",drag:"true",attraction:"y",elevation:"18",position:"left-top",left:o.value,top:l.value,"z-index":"9999",color:"#f97602","inactive-icon":St(j0),"inactive-icon-size":"30","active-icon-size":"35",trigger:"hover",onMousedown:O},{default:q(()=>[z(pe,{content:"【凌风跨境工具箱】一键临时屏蔽弹窗",placement:"top"},{default:q(()=>[z(oe,{type:"info","icon-container":"",onClick:Y[0]||(Y[0]=Te=>_(!0))},{default:q(()=>[z(K,{name:"trash-can-outline",size:24})]),_:1})]),_:1}),z(Sse,{onUpdateAPI:_}),z(pe,{content:"【凌风跨境工具箱】一键清除水印",placement:"top"},{default:q(()=>[z(oe,{type:"warning","icon-container":"",onClick:Y[1]||(Y[1]=Te=>d())},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(QT)},null,8,["path"])]),_:1})]),_:1}),z(pe,{content:"【凌风跨境工具箱】一键拒绝弹窗调价",placement:"top"},{default:q(()=>[z(oe,{type:"danger","icon-container":"",onClick:A},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(jT)},null,8,["path"])]),_:1})]),_:1}),z(pe,{content:"【凌风跨境工具箱】前往工具箱",placement:"top"},{default:q(()=>[z(oe,{type:"primary","icon-container":"",onClick:Y[2]||(Y[2]=Te=>v(St(p)+"/#/dashboard"))},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(NT)},null,8,["path"])]),_:1})]),_:1})]),_:1},8,["left","top","inactive-icon"])):tr("",!0),B.value?(Oe(),st("div",{key:1,class:ao(["noticeSwitch",{active:x.value}]),onMouseover:Y[3]||(Y[3]=()=>{r()}),onMousedown:L},[z(ue,{visible:!St(I)&&w.value,placement:"left",title:"","show-arrow":!1,content:C.value?"【凌风跨境工具箱】弹窗已禁用":"【凌风跨境工具箱】弹窗已恢复"},{reference:q(()=>[z(ge,{"model-value":C.value,"onUpdate:modelValue":F,style:{"--lf-switch-on-color":"#fb7701","--lf-switch-off-color":"#0bacf7"},"inline-prompt":"","active-text":"弹窗已禁用","inactive-text":"弹窗已恢复"},null,8,["model-value"])]),_:1},8,["visible","content"])],34)):tr("",!0),B.value?(Oe(),Et(eS,{key:2})):tr("",!0),z(Cse,{priceTotal:fe.value,visible:le.value,"onUpdate:visible":Y[4]||(Y[4]=Te=>le.value=Te),onRemindLater:W,onRemindTomorrow:Q},null,8,["priceTotal","visible"]),z(Tse)],64)}}},rC=cn(Ese,[["__scopeId","data-v-c3916093"]]);var sw={exports:{}},ow={exports:{}};/*!
 * TOAST UI Color Picker
 * @version 2.2.8
 * @author NHN Cloud FE Development Team <dl_javascript@nhn.com>
 * @license MIT
 */var nC;function Ise(){return nC||(nC=1,(function(a,s){(function(i,n){a.exports=n()})(window,function(){return(function(r){var i={};function n(t){if(i[t])return i[t].exports;var c=i[t]={i:t,l:!1,exports:{}};return r[t].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=r,n.c=i,n.d=function(t,c,u){n.o(t,c)||Object.defineProperty(t,c,{enumerable:!0,get:u})},n.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,c){if(c&1&&(t=n(t)),c&8||c&4&&typeof t=="object"&&t&&t.__esModule)return t;var u=Object.create(null);if(n.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:t}),c&2&&typeof t!="string")for(var f in t)n.d(u,f,(function(o){return t[o]}).bind(null,f));return u},n.n=function(t){var c=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(c,"a",c),c},n.o=function(t,c){return Object.prototype.hasOwnProperty.call(t,c)},n.p="dist",n(n.s=33)})([(function(r,i,n){function t(c,u){var f=Object.prototype.hasOwnProperty,o,l,g,m;for(g=1,m=arguments.length;g<m;g+=1){o=arguments[g];for(l in o)f.call(o,l)&&(c[l]=o[l])}return c}r.exports=t}),(function(r,i,n){function t(c){return c instanceof Array}r.exports=t}),(function(r,i,n){var t=n(1),c=n(6),u=n(7);function f(o,l,g){t(o)?c(o,l,g):u(o,l,g)}r.exports=f}),(function(r,i,n){function t(c){return c===void 0}r.exports=t}),(function(r,i,n){var t=n(22),c=n(2),u=n(6),f=n(7),o=n(37),l=0,g={getLength:function(m){var p=0;return f(m,function(){p+=1}),p},map:function(m,p,_){var y=[];return c(m,function(){y.push(p.apply(_||null,arguments))}),y},filter:function(m,p,_){var y=[];return u(m,function(h){p.apply(_||null,arguments)&&y.push(h)}),y},generateId:function(){return l+=1,l},isOldBrowser:(function(){return t.msie&&t.version<9})(),sendHostName:function(){o("color-picker","UA-129987462-1")}};r.exports=g}),(function(r,i,n){var t=n(1);function c(u,f,o){var l,g;if(o=o||0,!t(f))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(f,u,o);for(g=f.length,l=o;o>=0&&l<g;l+=1)if(f[l]===u)return l;return-1}r.exports=c}),(function(r,i,n){function t(c,u,f){var o=0,l=c.length;for(f=f||null;o<l&&u.call(f,c[o],o,c)!==!1;o+=1);}r.exports=t}),(function(r,i,n){function t(c,u,f){var o;f=f||null;for(o in c)if(c.hasOwnProperty(o)&&u.call(f,c[o],o,c)===!1)break}r.exports=t}),(function(r,i,n){var t=n(39),c=n(13),u=n(41),f=n(3),o=n(9),l=n(19),g=n(4);function m(p,_){var y=g.generateId();f(_)&&(_=o.appendHTMLElement("div")),t(_,"tui-view-"+y),this.id=y,this.container=_,this.childs=new l(function(h){return h.id}),this.parent=null}m.prototype.addChild=function(p,_){_&&_.call(p,this),p.parent=this,this.childs.add(p)},m.prototype.removeChild=function(p,_){var y=u(p)?this.childs.items[p]:p;_&&_.call(y,this),this.childs.remove(y.id)},m.prototype.render=function(){this.childs.each(function(p){p.render()})},m.prototype.recursive=function(p,_){c(p)&&(_||p(this),this.childs.each(function(y){y.recursive(p)}))},m.prototype.resize=function(){for(var p=Array.prototype.slice.call(arguments),_=this.parent;_;)c(_._onResize)&&_._onResize.apply(_,p),_=_.parent},m.prototype._beforeDestroy=function(){},m.prototype._destroy=function(){this._beforeDestroy(),this.container.innerHTML="",this.id=this.parent=this.childs=this.container=null},m.prototype.destroy=function(p){this.childs&&(this.childs.each(function(_){_.destroy(!0),_._destroy()}),this.childs.clear()),!p&&this._destroy()},m.prototype.getViewBound=function(){var p=this.container.getBoundingClientRect();return{x:p.left,y:p.top,width:p.right-p.left,height:p.bottom-p.top}},r.exports=m}),(function(r,i,n){var t={appendHTMLElement:function(c,u,f){var o=document.createElement(c);return o.className=f||"",u?u.appendChild(o):document.body.appendChild(o),o}};r.exports=t}),(function(r,i,n){var t=n(0),c=n(20),u=n(11),f=n(21),o=n(1),l=n(13),g=n(2),m=/\s+/g;function p(){this.events=null,this.contexts=null}p.mixin=function(_){t(_.prototype,p.prototype)},p.prototype._getHandlerItem=function(_,y){var h={handler:_};return y&&(h.context=y),h},p.prototype._safeEvent=function(_){var y=this.events,h;return y||(y=this.events={}),_&&(h=y[_],h||(h=[],y[_]=h),y=h),y},p.prototype._safeContext=function(){var _=this.contexts;return _||(_=this.contexts=[]),_},p.prototype._indexOfContext=function(_){for(var y=this._safeContext(),h=0;y[h];){if(_===y[h][0])return h;h+=1}return-1},p.prototype._memorizeContext=function(_){var y,h;c(_)&&(y=this._safeContext(),h=this._indexOfContext(_),h>-1?y[h][1]+=1:y.push([_,1]))},p.prototype._forgetContext=function(_){var y,h;c(_)&&(y=this._safeContext(),h=this._indexOfContext(_),h>-1&&(y[h][1]-=1,y[h][1]<=0&&y.splice(h,1)))},p.prototype._bindEvent=function(_,y,h){var d=this._safeEvent(_);this._memorizeContext(h),d.push(this._getHandlerItem(y,h))},p.prototype.on=function(_,y,h){var d=this;u(_)?(_=_.split(m),g(_,function(A){d._bindEvent(A,y,h)})):f(_)&&(h=y,g(_,function(A,v){d.on(v,A,h)}))},p.prototype.once=function(_,y,h){var d=this;if(f(_)){h=y,g(_,function(v,w){d.once(w,v,h)});return}function A(){y.apply(h,arguments),d.off(_,A,h)}this.on(_,A,h)},p.prototype._spliceMatches=function(_,y){var h=0,d;if(o(_))for(d=_.length;h<d;h+=1)y(_[h])===!0&&(_.splice(h,1),d-=1,h-=1)},p.prototype._matchHandler=function(_){var y=this;return function(h){var d=_===h.handler;return d&&y._forgetContext(h.context),d}},p.prototype._matchContext=function(_){var y=this;return function(h){var d=_===h.context;return d&&y._forgetContext(h.context),d}},p.prototype._matchHandlerAndContext=function(_,y){var h=this;return function(d){var A=_===d.handler,v=y===d.context,w=A&&v;return w&&h._forgetContext(d.context),w}},p.prototype._offByEventName=function(_,y){var h=this,d=l(y),A=h._matchHandler(y);_=_.split(m),g(_,function(v){var w=h._safeEvent(v);d?h._spliceMatches(w,A):(g(w,function(x){h._forgetContext(x.context)}),h.events[v]=[])})},p.prototype._offByHandler=function(_){var y=this,h=this._matchHandler(_);g(this._safeEvent(),function(d){y._spliceMatches(d,h)})},p.prototype._offByObject=function(_,y){var h=this,d;this._indexOfContext(_)<0?g(_,function(A,v){h.off(v,A)}):u(y)?(d=this._matchContext(_),h._spliceMatches(this._safeEvent(y),d)):l(y)?(d=this._matchHandlerAndContext(y,_),g(this._safeEvent(),function(A){h._spliceMatches(A,d)})):(d=this._matchContext(_),g(this._safeEvent(),function(A){h._spliceMatches(A,d)}))},p.prototype.off=function(_,y){u(_)?this._offByEventName(_,y):arguments.length?l(_)?this._offByHandler(_):f(_)&&this._offByObject(_,y):(this.events={},this.contexts=[])},p.prototype.fire=function(_){this.invoke.apply(this,arguments)},p.prototype.invoke=function(_){var y,h,d,A;if(!this.hasListener(_))return!0;for(y=this._safeEvent(_),h=Array.prototype.slice.call(arguments,1),d=0;y[d];){if(A=y[d],A.handler.apply(A.context,h)===!1)return!1;d+=1}return!0},p.prototype.hasListener=function(_){return this.getListenerLength(_)>0},p.prototype.getListenerLength=function(_){var y=this._safeEvent(_);return y.length},r.exports=p}),(function(r,i,n){function t(c){return typeof c=="string"||c instanceof String}r.exports=t}),(function(r,i,n){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,c={leadingZero:function(u,f){var o="",l=0;if((u+"").length>f)return u+"";for(;l<f-1;l+=1)o+="0";return(o+u).slice(f*-1)},isValidRGB:function(u){return t.test(u)},hexToRGB:function(u){var f,o,l;return c.isValidRGB(u)?(u=u.substring(1),f=parseInt(u.substr(0,2),16),o=parseInt(u.substr(2,2),16),l=parseInt(u.substr(4,2),16),[f,o,l]):!1},rgbToHEX:function(u,f,o){var l="#"+c.leadingZero(u.toString(16),2)+c.leadingZero(f.toString(16),2)+c.leadingZero(o.toString(16),2);return c.isValidRGB(l)?l:!1},rgbToHSV:function(u,f,o){var l,g,m,p,_,y;if(u/=255,f/=255,o/=255,l=Math.max(u,f,o),g=Math.min(u,f,o),_=l,y=l-g,p=l===0?0:y/l,l===g)m=0;else{switch(l){case u:m=(f-o)/y+(f<o?6:0);break;case f:m=(o-u)/y+2;break;case o:m=(u-f)/y+4;break}m/=6}return[Math.round(m*360),Math.round(p*100),Math.round(_*100)]},hsvToRGB:function(u,f,o){var l,g,m,p,_,y,h,d;if(u=Math.max(0,Math.min(360,u)),f=Math.max(0,Math.min(100,f)),o=Math.max(0,Math.min(100,o)),f/=100,o/=100,f===0)return l=g=m=o,[Math.round(l*255),Math.round(g*255),Math.round(m*255)];switch(u/=60,p=Math.floor(u),_=u-p,y=o*(1-f),h=o*(1-f*_),d=o*(1-f*(1-_)),p){case 0:l=o,g=d,m=y;break;case 1:l=h,g=o,m=y;break;case 2:l=y,g=o,m=d;break;case 3:l=y,g=h,m=o;break;case 4:l=d,g=y,m=o;break;default:l=o,g=y,m=h;break}return[Math.round(l*255),Math.round(g*255),Math.round(m*255)]}};r.exports=c}),(function(r,i,n){function t(c){return c instanceof Function}r.exports=t}),(function(r,i,n){var t=n(11),c=n(2),u=n(26);function f(g,m,p,_){if(t(m)){c(m.split(/\s+/g),function(y){o(g,y,p,_)});return}c(m,function(y,h){o(g,h,y,p)})}function o(g,m,p,_){function y(h){p.call(_||g,h||window.event)}"addEventListener"in g?g.addEventListener(m,y):"attachEvent"in g&&g.attachEvent("on"+m,y),l(g,m,p,y)}function l(g,m,p,_){var y=u(g,m),h=!1;c(y,function(d){return d.handler===p?(h=!0,!1):!0}),h||y.push({handler:p,wrappedHandler:_})}r.exports=f}),(function(r,i,n){function t(c){if(c.preventDefault){c.preventDefault();return}c.returnValue=!1}r.exports=t}),(function(r,i,n){function t(c){return c.replace(/([A-Z])/g,function(u){return"-"+u.toLowerCase()})}r.exports=t}),(function(r,i,n){var t=n(11),c=n(2),u=n(26);function f(g,m,p){if(t(m)){c(m.split(/\s+/g),function(_){o(g,_,p)});return}c(m,function(_,y){o(g,y,_)})}function o(g,m,p){var _=u(g,m),y;p?(c(_,function(h,d){return p===h.handler?(l(g,m,h.wrappedHandler),y=d,!1):!0}),_.splice(y,1)):(c(_,function(h){l(g,m,h.wrappedHandler)}),_.splice(0,_.length))}function l(g,m,p){"removeEventListener"in g?g.removeEventListener(m,p):"detachEvent"in g&&g.detachEvent("on"+m,p)}r.exports=f}),(function(r,i,n){var t=n(50);function c(u,f){var o=t(f.prototype);o.constructor=u,u.prototype=o}r.exports=c}),(function(r,i,n){var t=n(6),c=n(7),u=n(0),f=n(1),o=n(20),l=n(13),g=n(21),m=n(4),p=Array.prototype.slice;function _(y){this.items={},this.length=0,l(y)&&(this.getItemID=y)}_.and=function(y){var h;return y=p.call(arguments),h=y.length,function(d){for(var A=0;A<h;A+=1)if(!y[A].call(null,d))return!1;return!0}},_.or=function(y){var h;return y=p.call(arguments),h=y.length,function(d){for(var A=1,v=y[0].call(null,d);A<h;A+=1)v=v||y[A].call(null,d);return v}},_.merge=function(y){var h={},d=new _(y.getItemID);return t(arguments,function(A){u(h,A.items)}),d.items=h,d.length=m.getLength(d.items),d},_.prototype.getItemID=function(y){return y._id+""},_.prototype.add=function(y){var h,d;if(arguments.length>1){t(p.call(arguments),function(A){this.add(A)},this);return}h=this.getItemID(y),d=this.items,d[h]||(this.length+=1),d[h]=y},_.prototype.remove=function(y){var h=[],d,A;return this.length?arguments.length>1?(h=m.map(p.call(arguments),function(v){return this.remove(v)},this),h):(d=this.items,g(y)&&(y=this.getItemID(y)),d[y]?(this.length-=1,A=d[y],delete d[y],A):h):h},_.prototype.clear=function(){this.items={},this.length=0},_.prototype.has=function(y){var h,d;return this.length?(h=l(y),d=!1,h?this.each(function(A){return y(A)===!0?(d=!0,!1):!0}):(y=g(y)?this.getItemID(y):y,d=o(this.items[y])),d):!1},_.prototype.doWhenHas=function(y,h,d){var A=this.items[y];o(A)&&h.call(d||this,A)},_.prototype.find=function(y){var h=new _;return this.hasOwnProperty("getItemID")&&(h.getItemID=this.getItemID),this.each(function(d){y(d)===!0&&h.add(d)}),h},_.prototype.groupBy=function(y,h){var d={},A=l(y),v=this.getItemID,w,x;if(f(y)){if(t(y,function(C){d[C+""]=new _(v)}),!h)return d;y=h,A=!0}return this.each(function(C){A?x=y(C):(x=C[y],l(x)&&(x=x.apply(C))),w=d[x],w||(w=d[x]=new _(v)),w.add(C)}),d},_.prototype.single=function(){var y;return this.each(function(h){return y=h,!1},this),y},_.prototype.sort=function(y){var h=[];return this.each(function(d){h.push(d)}),l(y)&&(h=h.sort(y)),h},_.prototype.each=function(y,h){c(this.items,y,h||this)},_.prototype.toArray=function(){return this.length?m.map(this.items,function(y){return y}):[]},r.exports=_}),(function(r,i,n){var t=n(3),c=n(36);function u(f){return!t(f)&&!c(f)}r.exports=u}),(function(r,i,n){function t(c){return c===Object(c)}r.exports=t}),(function(r,i,n){var t={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};typeof window<"u"&&window.navigator&&c();function c(){var u=window.navigator,f=u.appName.replace(/\s/g,"_"),o=u.userAgent,l=/MSIE\s([0-9]+[.0-9]*)/,g=/Trident.*rv:11\./,m=/Edge\/(\d+)\./,p={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},_,y,h={Microsoft_Internet_Explorer:function(){var A=o.match(l);A?(t.msie=!0,t.version=parseFloat(A[1])):t.others=!0},Netscape:function(){var A=!1;if(g.exec(o))t.msie=!0,t.version=11,A=!0;else if(m.exec(o))t.edge=!0,t.version=o.match(m)[1],A=!0;else for(_ in p)if(p.hasOwnProperty(_)&&(y=o.match(p[_]),y&&y.length>1)){t[_]=A=!0,t.version=parseFloat(y[1]||0);break}A||(t.others=!0)}},d=h[f];d&&h[f]()}r.exports=t}),(function(r,i,n){var t=n(3);function c(u){return!u||!u.className?"":t(u.className.baseVal)?u.className:u.className.baseVal}r.exports=c}),(function(r,i,n){(function(t){var c=n(10),u=n(42),f=n(44),o=n(47),l=n(28),g=n(17),m=n(14),p=n(15),_=n(0);function y(h,d){m(d,"mousedown",this._onMouseDown,this),this.options=_({distance:10},h),this.container=d,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}y.prototype.destroy=function(){g(this.container,"mousedown",this._onMouseDown),this.options=this.container=this._isMoved=this._distance=this._dragStartFired=this._dragStartEventData=null},y.prototype._toggleDragEvent=function(h){var d=this.container;h?(u(d),m(window,"dragstart",p),m(t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)):(f(d),g(window,"dragstart",p),g(t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp}))},y.prototype._getEventData=function(h){return{target:l(h),originEvent:h}},y.prototype._onMouseDown=function(h){o(h)===0&&(this._distance=0,this._dragStartFired=!1,this._dragStartEventData=this._getEventData(h),this._toggleDragEvent(!0))},y.prototype._onMouseMove=function(h){var d=this.options.distance;if(p(h),this._isMoved=!0,this._distance<d){this._distance+=1;return}if(!this._dragStartFired&&(this._dragStartFired=!0,!this.invoke("dragStart",this._dragStartEventData))){this._toggleDragEvent(!1);return}this.fire("drag",this._getEventData(h))},y.prototype._onMouseUp=function(h){if(this._toggleDragEvent(!1),this._isMoved){this._isMoved=!1,this.fire("dragEnd",this._getEventData(h));return}this.fire("click",this._getEventData(h))},c.mixin(y),r.exports=y}).call(this,n(25))}),(function(r,i){var n;n=(function(){return this})();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}r.exports=n}),(function(r,i,n){var t="_feEventKey";function c(u,f){var o=u[t],l;return o||(o=u[t]={}),l=o[f],l||(l=o[f]=[]),l}r.exports=c}),(function(r,i,n){function t(c){var u=document.documentElement.style,f,o;for(f=0,o=c.length;f<o;f+=1)if(c[f]in u)return c[f];return!1}r.exports=t}),(function(r,i,n){function t(c){return c.target||c.srcElement}r.exports=t}),(function(r,i,n){var t=n(10),c=n(28),u=n(17),f=n(14),o=n(30),l=n(0),g=n(18),m=n(9),p=n(12),_=n(8),y=n(51);function h(d,A){this.options=l({cssPrefix:"tui-colorpicker-",preset:["#181818","#282828","#383838","#585858","#B8B8B8","#D8D8D8","#E8E8E8","#F8F8F8","#AB4642","#DC9656","#F7CA88","#A1B56C","#86C1B9","#7CAFC2","#BA8BAF","#A16946"],detailTxt:"Detail"},d),A=m.appendHTMLElement("div",A,this.options.cssPrefix+"palette-container"),_.call(this,d,A)}g(h,_),h.prototype._onClick=function(d){var A=this.options,v=c(d),w={};if(o(v,A.cssPrefix+"palette-button")){w.color=v.value,this.fire("_selectColor",w);return}o(v,A.cssPrefix+"palette-toggle-slider")&&this.fire("_toggleSlider")},h.prototype._onChange=function(d){var A=this.options,v=c(d),w={};o(v,A.cssPrefix+"palette-hex")&&(w.color=v.value,this.fire("_selectColor",w))},h.prototype._beforeDestroy=function(){this._toggleEvent(!1)},h.prototype._toggleEvent=function(d){var A=this.options,v=this.container,w=d?f:u,x;w(v,"click",this._onClick,this),x=v.querySelector("."+A.cssPrefix+"palette-hex",v),x&&w(x,"change",this._onChange,this)},h.prototype.render=function(d){var A=this.options,v="";this._toggleEvent(!1),v=y({cssPrefix:A.cssPrefix,preset:A.preset,detailTxt:A.detailTxt,color:d,isValidRGB:p.isValidRGB,getItemClass:function(w){return w?"":" "+A.cssPrefix+"color-transparent"},isSelected:function(w){return w===d?" "+A.cssPrefix+"selected":""}}),this.container.innerHTML=v,this._toggleEvent(!0)},t.mixin(h),r.exports=h}),(function(r,i,n){var t=n(5),c=n(23);function u(f,o){var l;return f.classList?f.classList.contains(o):(l=c(f).split(/\s+/),t(o,l)>-1)}r.exports=u}),(function(r,i,n){var t=n(10),c=n(53),u=n(54),f=n(30),o=n(0),l=n(18),g=n(9),m=n(32),p=n(12),_=n(8),y=n(24),h=n(57),d=-7,A=112,v=-3,w=115,x=359.99;function C(k,T){T=g.appendHTMLElement("div",T,k.cssPrefix+"slider-container"),T.style.display="none",_.call(this,k,T),this.options=o({color:"#f8f8f8",cssPrefix:"tui-colorpicker-"},k),this._dragDataCache={},this.sliderHandleElement=null,this.huebarHandleElement=null,this.baseColorElement=null,this.drag=new y({distance:0},T),this.colorSliderPosLimitRange=[d,A],this.huebarPosLimitRange=[v,w],this.drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this)}l(C,_),C.prototype._beforeDestroy=function(){this.drag.off(),this.drag=this.options=this._dragDataCache=this.sliderHandleElement=this.huebarHandleElement=this.baseColorElement=null},C.prototype.toggle=function(k){this.container.style.display=k?"block":"none"},C.prototype.isVisible=function(){return this.container.style.display==="block"},C.prototype.render=function(k){var T=this.container,S=this.options,M=h.layout,P,N;p.isValidRGB(k)&&(M=M.replace(/{{slider}}/,h.slider),M=M.replace(/{{huebar}}/,h.huebar),M=M.replace(/{{cssPrefix}}/g,S.cssPrefix),M=M.replace(/{{id}}/g,S.id),this.container.innerHTML=M,this.sliderSvgElement=T.querySelector("."+S.cssPrefix+"svg-slider"),this.huebarSvgElement=T.querySelector("."+S.cssPrefix+"svg-huebar"),this.sliderHandleElement=T.querySelector("."+S.cssPrefix+"slider-handle"),this.huebarHandleElement=T.querySelector("."+S.cssPrefix+"huebar-handle"),this.baseColorElement=T.querySelector("."+S.cssPrefix+"slider-basecolor"),P=p.hexToRGB(k),N=p.rgbToHSV.apply(null,P),this.moveHue(N[0],!0),this.moveSaturationAndValue(N[1],N[2],!0))},C.prototype._setColorSliderPosMax=function(){var k=this.sliderSvgElement.getClientRects()[0];k&&(this.colorSliderPosLimitRange[1]=k.height-10)},C.prototype._moveColorSliderHandle=function(k,T,S){var M=this.sliderHandleElement,P;T=Math.max(this.colorSliderPosLimitRange[0],T),T=Math.min(this.colorSliderPosLimitRange[1],T),k=Math.max(this.colorSliderPosLimitRange[0],k),k=Math.min(this.colorSliderPosLimitRange[1],k),m.setTranslateXY(M,k,T),P=T>50?"white":"black",m.setStrokeColor(M,P),S||this.fire("_selectColor",{color:p.rgbToHEX.apply(null,this.getRGB())})},C.prototype.moveSaturationAndValue=function(k,T,S){var M,P,N,B;k=k||0,T=T||0,M=Math.abs(this.colorSliderPosLimitRange[0]),P=this.colorSliderPosLimitRange[1],N=k*P/100-M,B=P-T*P/100-M,this._moveColorSliderHandle(N,B,S)},C.prototype._moveColorSliderByPosition=function(k,T){var S=this.colorSliderPosLimitRange[0];this._moveColorSliderHandle(k+S,T+S)},C.prototype.getSaturationAndValue=function(){var k=Math.abs(this.colorSliderPosLimitRange[0]),T=k+this.colorSliderPosLimitRange[1],S=m.getTranslateXY(this.sliderHandleElement),M,P;return M=(S[1]+k)/T*100,P=100-(S[0]+k)/T*100,[M,P]},C.prototype._setHueBarPosMax=function(){var k=this.huebarSvgElement.getClientRects()[0];k&&(this.huebarPosLimitRange[1]=k.height-7)},C.prototype._moveHueHandle=function(k,T){var S=this.huebarHandleElement,M=this.baseColorElement,P,N;k=Math.max(this.huebarPosLimitRange[0],k),k=Math.min(this.huebarPosLimitRange[1],k),m.setTranslateY(S,k),P=p.hsvToRGB(this.getHue(),100,100),N=p.rgbToHEX.apply(null,P),m.setGradientColorStop(M,N),T||this.fire("_selectColor",{color:p.rgbToHEX.apply(null,this.getRGB())})},C.prototype.moveHue=function(k,T){var S=0,M,P;M=Math.abs(this.huebarPosLimitRange[0]),P=M+this.huebarPosLimitRange[1],k=k||0,S=P*k/x-M,this._moveHueHandle(S,T)},C.prototype._moveHueByPosition=function(k){var T=this.huebarPosLimitRange[0];this._moveHueHandle(k+T)},C.prototype.getHue=function(){var k=this.huebarHandleElement,T=m.getTranslateXY(k),S,M;return S=Math.abs(this.huebarPosLimitRange[0]),M=S+this.huebarPosLimitRange[1],(T[0]+S)*x/M},C.prototype.getHSV=function(){var k=this.getSaturationAndValue(),T=this.getHue();return[T].concat(k)},C.prototype.getRGB=function(){return p.hsvToRGB.apply(null,this.getHSV())},C.prototype._prepareColorSliderForMouseEvent=function(k){var T=this.options,S=u(k.target,"."+T.cssPrefix+"slider-part"),M;return M=this._dragDataCache={isColorSlider:f(S,T.cssPrefix+"slider-left"),parentElement:S},M},C.prototype._onClick=function(k){var T=this._prepareColorSliderForMouseEvent(k),S=c(k.originEvent,T.parentElement);T.isColorSlider?this._moveColorSliderByPosition(S[0],S[1]):this._moveHueByPosition(S[1]),this._dragDataCache=null},C.prototype._onDragStart=function(k){this._setColorSliderPosMax(),this._setHueBarPosMax(),this._prepareColorSliderForMouseEvent(k)},C.prototype._onDrag=function(k){var T=this._dragDataCache,S=c(k.originEvent,T.parentElement);T.isColorSlider?this._moveColorSliderByPosition(S[0],S[1]):this._moveHueByPosition(S[1])},C.prototype._onDragEnd=function(){this._dragDataCache=null},t.mixin(C),r.exports=C}),(function(r,i,n){var t=n(4).isOldBrowser,c=/[\.\-0-9]+/g,u=-6,f={getTranslateXY:function(o){var l;return t?(l=o.style,[parseFloat(l.top),parseFloat(l.left)]):(l=o.getAttribute("transform"),l?(l=l.match(c),[parseFloat(l[1]),parseFloat(l[0])]):[0,0])},setTranslateXY:function(o,l,g){t?(o.style.left=l+"px",o.style.top=g+"px"):o.setAttribute("transform","translate("+l+","+g+")")},setTranslateY:function(o,l){t?o.style.top=l+"px":o.setAttribute("transform","translate("+u+","+l+")")},setStrokeColor:function(o,l){t?o.strokecolor=l:o.setAttribute("stroke",l)},setGradientColorStop:function(o,l){t?o.color=l:o.setAttribute("stop-color",l)}};r.exports=f}),(function(r,i,n){n(34),r.exports=n(35)}),(function(r,i,n){}),(function(r,i,n){var t=n(19),c=n(8),u=n(24),f=n(48),o=n(29),l=n(31),g=n(12),m=n(32),p={Collection:t,View:c,Drag:u,create:f,Palette:o,Slider:l,colorutil:g,svgvml:m};r.exports=p}),(function(r,i,n){function t(c){return c===null}r.exports=t}),(function(r,i,n){var t=n(3),c=n(38),u=10080*60*1e3;function f(l){var g=new Date().getTime();return g-l>u}function o(l,g){var m="https://www.google-analytics.com/collect",p=location.hostname,_="event",y="use",h="TOAST UI "+l+" for "+p+": Statistics",d=window.localStorage.getItem(h);!t(window.tui)&&window.tui.usageStatistics===!1||d&&!f(d)||(window.localStorage.setItem(h,new Date().getTime()),setTimeout(function(){(document.readyState==="interactive"||document.readyState==="complete")&&c(m,{v:1,t:_,tid:g,cid:p,dp:p,dh:l,el:l,ec:y})},1e3))}r.exports=o}),(function(r,i,n){var t=n(7);function c(u,f){var o=document.createElement("img"),l="";return t(f,function(g,m){l+="&"+m+"="+g}),l=l.substring(1),o.src=u+"?"+l,o.style.display="none",document.body.appendChild(o),document.body.removeChild(o),o}r.exports=c}),(function(r,i,n){var t=n(2),c=n(5),u=n(23),f=n(40);function o(l){var g=Array.prototype.slice.call(arguments,1),m=l.classList,p=[],_;if(m){t(g,function(y){l.classList.add(y)});return}_=u(l),_&&(g=[].concat(_.split(/\s+/),g)),t(g,function(y){c(y,p)<0&&p.push(y)}),f(l,p)}r.exports=o}),(function(r,i,n){var t=n(1),c=n(3);function u(f,o){if(o=t(o)?o.join(" "):o,o=o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),c(f.className.baseVal)){f.className=o;return}f.className.baseVal=o}r.exports=u}),(function(r,i,n){function t(c){return typeof c=="number"||c instanceof Number}r.exports=t}),(function(r,i,n){var t=n(14),c=n(15),u=n(43),f=n(27),o="onselectstart"in document,l="prevUserSelect",g=f(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);function m(p){p||(p=document),o?t(p,"selectstart",c):(p=p===document?document.documentElement:p,u(p,l,p.style[g]),p.style[g]="none")}r.exports=m}),(function(r,i,n){var t=n(16);function c(u,f,o){if(u.dataset){u.dataset[f]=o;return}u.setAttribute("data-"+t(f),o)}r.exports=c}),(function(r,i,n){var t=n(17),c=n(15),u=n(45),f=n(46),o=n(27),l="onselectstart"in document,g="prevUserSelect",m=o(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);function p(_){_||(_=document),l?t(_,"selectstart",c):(_=_===document?document.documentElement:_,_.style[m]=u(_,g)||"auto",f(_,g))}r.exports=p}),(function(r,i,n){var t=n(16);function c(u,f){return u.dataset?u.dataset[f]:u.getAttribute("data-"+t(f))}r.exports=c}),(function(r,i,n){var t=n(16);function c(u,f){if(u.dataset){delete u.dataset[f];return}u.removeAttribute("data-"+t(f))}r.exports=c}),(function(r,i,n){var t=n(22),c=n(5),u=["0","1","3","5","7"],f=["2","6"],o=["4"];function l(m){return t.msie&&t.version<=8?g(m):m.button}function g(m){var p=String(m.button);return c(p,u)>-1?0:c(p,f)>-1?2:c(p,o)>-1?1:null}r.exports=l}),(function(r,i,n){var t=n(10),c=n(0),u=n(4),f=n(12),o=n(49),l=n(29),g=n(31),m=0;function p(){return m+=1,m}function _(y){var h;if(!(this instanceof _))return new _(y);if(y=this.options=c({container:null,color:"#f8f8f8",preset:["#181818","#282828","#383838","#585858","#b8b8b8","#d8d8d8","#e8e8e8","#f8f8f8","#ab4642","#dc9656","#f7ca88","#a1b56c","#86c1b9","#7cafc2","#ba8baf","#a16946"],cssPrefix:"tui-colorpicker-",detailTxt:"Detail",id:p(),usageStatistics:!0},y),!y.container)throw new Error("ColorPicker(): need container option.");h=this.layout=new o(y,y.container),this.palette=new l(y,h.container),this.palette.on({_selectColor:this._onSelectColorInPalette,_toggleSlider:this._onToggleSlider},this),this.slider=new g(y,h.container),this.slider.on("_selectColor",this._onSelectColorInSlider,this),h.addChild(this.palette),h.addChild(this.slider),this.render(y.color),y.usageStatistics&&u.sendHostName()}_.prototype._onSelectColorInPalette=function(y){var h=y.color,d=this.options;if(!f.isValidRGB(h)&&h!==""){this.render();return}this.fire("selectColor",{color:h,origin:"palette"}),d.color!==h&&(d.color=h,this.render(h))},_.prototype._onToggleSlider=function(){this.slider.toggle(!this.slider.isVisible())},_.prototype._onSelectColorInSlider=function(y){var h=y.color,d=this.options;this.fire("selectColor",{color:h,origin:"slider"}),d.color!==h&&(d.color=h,this.palette.render(h))},_.prototype.setColor=function(y){if(!f.isValidRGB(y))throw new Error("ColorPicker#setColor(): need valid hex string color value");this.options.color=y,this.render(y)},_.prototype.getColor=function(){return this.options.color},_.prototype.toggle=function(y){this.layout.container.style.display=y?"block":"none"},_.prototype.render=function(y){this.layout.render(y||this.options.color)},_.prototype.destroy=function(){this.layout.destroy(),this.options.container.innerHTML="",this.layout=this.slider=this.palette=this.options=null},t.mixin(_),r.exports=_}),(function(r,i,n){var t=n(0),c=n(18),u=n(9),f=n(8);function o(l,g){this.options=t({cssPrefix:"tui-colorpicker-"},l),g=u.appendHTMLElement("div",g,this.options.cssPrefix+"container"),f.call(this,l,g),this.render()}c(o,f),o.prototype.render=function(l){this.recursive(function(g){g.render(l)},!0)},r.exports=o}),(function(r,i,n){function t(c){function u(){}return u.prototype=c,new u}r.exports=t}),(function(r,i,n){var t=n(52);r.exports=function(c){var u=['<li><input class="{{cssPrefix}}palette-button{{isSelected @this}}{{getItemClass @this}}" type="button"',"{{if isValidRGB @this}}",' style="background-color:{{@this}};color:{{@this}}"',"{{/if}}",' title="{{@this}}" value="{{@this}}" /></li>'].join(""),f=['<ul class="{{cssPrefix}}clearfix">',"{{each preset}}",u,"{{/each}}","</ul>",'<div class="{{cssPrefix}}clearfix" style="overflow:hidden">','<input type="button" class="{{cssPrefix}}palette-toggle-slider" value="{{detailTxt}}" />','<input type="text" class="{{cssPrefix}}palette-hex" value="{{color}}" maxlength="7" />','<span class="{{cssPrefix}}palette-preview" style="background-color:{{color}};color:{{color}}">{{color}}</span>',"</div>"].join(`
`);return t(f,c)}}),(function(r,i,n){var t=n(5),c=n(2),u=n(1),f=n(11),o=n(0),l=/{{\s?|\s?}}/g,g=/^[a-zA-Z0-9_@]+\[[a-zA-Z0-9_@"']+\]$/,m=/\[\s?|\s?\]/,p=/^[a-zA-Z_]+\.[a-zA-Z_]+$/,_=/\./,y=/^["']\w+["']$/,h=/"|'/g,d=/^-?\d+\.?\d*$/,A=2,v={if:T,each:S,with:M},w="a".split(/a/).length===3,x=(function(){return w?function(L,R){return L.split(R)}:function(L,R){var U=[],V=0,W,Q;for(R.global||(R=new RegExp(R,"g")),W=R.exec(L);W!==null;)Q=W.index,U.push(L.slice(V,Q)),V=Q+W[0].length,W=R.exec(L);return U.push(L.slice(V)),U}})();function C(L,R){var U,V=R[L];return L==="true"?V=!0:L==="false"?V=!1:y.test(L)?V=L.replace(h,""):g.test(L)?(U=L.split(m),V=C(U[0],R)[C(U[1],R)]):p.test(L)?(U=L.split(_),V=C(U[0],R)[U[1]]):d.test(L)&&(V=parseFloat(L)),V}function k(L,R){var U=[L],V=[],W=0,Q=0;return c(R,function(le,G){le.indexOf("if")===0?W+=1:le==="/if"?W-=1:!W&&(le.indexOf("elseif")===0||le==="else")&&(U.push(le==="else"?["true"]:le.split(" ").slice(1)),V.push(R.slice(Q,G)),Q=G+1)}),V.push(R.slice(Q)),{exps:U,sourcesInsideIf:V}}function T(L,R,U){var V=k(L,R),W=!1,Q="";return c(V.exps,function(le,G){return W=B(le,U),W&&(Q=I(V.sourcesInsideIf[G],U)),!W}),Q}function S(L,R,U){var V=B(L,U),W=u(V)?"@index":"@key",Q={},le="";return c(V,function(G,fe){Q[W]=fe,Q["@this"]=G,o(U,Q),le+=I(R.slice(),U)}),le}function M(L,R,U){var V=t("as",L),W=L[V+1],Q=B(L.slice(0,V),U),le={};return le[W]=Q,I(R,o(U,le))||""}function P(L,R,U){var V=L.splice(R+1,U-R);return V.pop(),V}function N(L,R,U){for(var V=v[L],W=1,Q=0,le,G=Q+A,fe=R[G];W&&f(fe);)fe.indexOf(L)===0?W+=1:fe.indexOf("/"+L)===0&&(W-=1,le=G),G+=A,fe=R[G];if(W)throw Error(L+" needs {{/"+L+"}} expression.");return R[Q]=V(R[Q].split(" ").slice(1),P(R,Q,le),U),R}function B(L,R){var U=C(L[0],R);return U instanceof Function?O(U,L.slice(1),R):U}function O(L,R,U){var V=[];return c(R,function(W){V.push(C(W,U))}),L.apply(null,V)}function I(L,R){for(var U=1,V=L[U],W,Q,le;f(V);)W=V.split(" "),Q=W[0],v[Q]?(le=N(Q,L.splice(U,L.length-U),R),L=L.concat(le)):L[U]=B(W,R),U+=A,V=L[U];return L.join("")}function F(L,R){return I(x(L,l),R)}r.exports=F}),(function(r,i,n){var t=n(1);function c(u,f){var o=t(u),l=o?u[0]:u.clientX,g=o?u[1]:u.clientY,m;return f?(m=f.getBoundingClientRect(),[l-m.left-f.clientLeft,g-m.top-f.clientTop]):[l,g]}r.exports=c}),(function(r,i,n){var t=n(55);function c(u,f){var o=u.parentNode;if(t(u,f))return u;for(;o&&o!==document;){if(t(o,f))return o;o=o.parentNode}return null}r.exports=c}),(function(r,i,n){var t=n(5),c=n(56),u=Element.prototype,f=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector||function(l){var g=this.document||this.ownerDocument;return t(this,c(g.querySelectorAll(l)))>-1};function o(l,g){return f.call(l,g)}r.exports=o}),(function(r,i,n){var t=n(6);function c(u){var f;try{f=Array.prototype.slice.call(u)}catch{f=[],t(u,function(l){f.push(l)})}return f}r.exports=c}),(function(r,i,n){(function(t){var c=n(4).isOldBrowser,u=['<div class="{{cssPrefix}}slider-left {{cssPrefix}}slider-part">{{slider}}</div>','<div class="{{cssPrefix}}slider-right {{cssPrefix}}slider-part">{{huebar}}</div>'].join(`
`),f=['<svg class="{{cssPrefix}}svg {{cssPrefix}}svg-slider">',"<defs>",'<linearGradient id="{{cssPrefix}}svg-fill-color-{{id}}" x1="0%" y1="0%" x2="100%" y2="0%">','<stop offset="0%" stop-color="rgb(255,255,255)" />','<stop class="{{cssPrefix}}slider-basecolor" offset="100%" stop-color="rgb(255,0,0)" />',"</linearGradient>",'<linearGradient id="{{cssPrefix}}svn-fill-black-{{id}}" x1="0%" y1="0%" x2="0%" y2="100%">','<stop offset="0%" style="stop-color:rgb(0,0,0);stop-opacity:0" />','<stop offset="100%" style="stop-color:rgb(0,0,0);stop-opacity:1" />',"</linearGradient>","</defs>",'<rect width="100%" height="100%" fill="url(#{{cssPrefix}}svg-fill-color-{{id}})"></rect>','<rect width="100%" height="100%" fill="url(#{{cssPrefix}}svn-fill-black-{{id}})"></rect>','<path transform="translate(0,0)" class="{{cssPrefix}}slider-handle" d="M0 7.5 L15 7.5 M7.5 15 L7.5 0 M2 7 a5.5 5.5 0 1 1 0 1 Z" stroke="black" stroke-width="0.75" fill="none" />',"</svg>"].join(`
`),o=['<div class="{{cssPrefix}}vml-slider">','<v:rect strokecolor="none" class="{{cssPrefix}}vml {{cssPrefix}}vml-slider-bg">','<v:fill class="{{cssPrefix}}vml {{cssPrefix}}slider-basecolor" type="gradient" method="none" color="#ff0000" color2="#fff" angle="90" />',"</v:rect>",'<v:rect strokecolor="#ccc" class="{{cssPrefix}}vml {{cssPrefix}}vml-slider-bg">','<v:fill type="gradient" method="none" color="black" color2="white" o:opacity2="0%" class="{{cssPrefix}}vml" />',"</v:rect>",'<v:shape class="{{cssPrefix}}vml {{cssPrefix}}slider-handle" coordsize="1 1" style="width:1px;height:1px;"path="m 0,7 l 14,7 m 7,14 l 7,0 ar 12,12 2,2 z" filled="false" stroked="true" />',"</div>"].join(`
`),l=['<svg class="{{cssPrefix}}svg {{cssPrefix}}svg-huebar">',"<defs>",'<linearGradient id="g-{{id}}" x1="0%" y1="0%" x2="0%" y2="100%">','<stop offset="0%" stop-color="rgb(255,0,0)" />','<stop offset="16.666%" stop-color="rgb(255,255,0)" />','<stop offset="33.333%" stop-color="rgb(0,255,0)" />','<stop offset="50%" stop-color="rgb(0,255,255)" />','<stop offset="66.666%" stop-color="rgb(0,0,255)" />','<stop offset="83.333%" stop-color="rgb(255,0,255)" />','<stop offset="100%" stop-color="rgb(255,0,0)" />',"</linearGradient>","</defs>",'<rect width="18px" height="100%" fill="url(#g-{{id}})"></rect>','<path transform="translate(-6,-3)" class="{{cssPrefix}}huebar-handle" d="M0 0 L4 4 L0 8 L0 0 Z" fill="black" stroke="none" />',"</svg>"].join(`
`),g=['<div class="{{cssPrefix}}vml-huebar">','<v:rect strokecolor="#ccc" class="{{cssPrefix}}vml {{cssPrefix}}vml-huebar-bg">','<v:fill type="gradient" method="none" colors="0% rgb(255,0,0), 16.666% rgb(255,255,0), 33.333% rgb(0,255,0), 50% rgb(0,255,255), 66.666% rgb(0,0,255), 83.333% rgb(255,0,255), 100% rgb(255,0,0)" angle="180" class="{{cssPrefix}}vml" />',"</v:rect>",'<v:shape class="{{cssPrefix}}vml {{cssPrefix}}huebar-handle" coordsize="1 1" style="width:1px;height:1px;position:absolute;z-index:1;right:22px;top:-3px;"path="m 0,0 l 4,4 l 0,8 l 0,0 z" filled="true" fillcolor="black" stroked="false" />',"</div>"].join(`
`);c&&t.document.namespaces.add("v","urn:schemas-microsoft-com:vml"),r.exports={layout:u,slider:c?o:f,huebar:c?g:l}}).call(this,n(25))})])})})(ow)),ow.exports}/*!
 * TOAST UI ImageEditor
 * @version 3.15.3
 * @license MIT
 */var aC;function Bse(){return aC||(aC=1,(function(a,s){(function(i,n){a.exports=n(Ise())})(self,function(r){return(function(){var i={2777:(function(u,f,o){/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */var l=l||{version:"4.6.0"};if(f.fabric=l,typeof document<"u"&&typeof window<"u")document instanceof(typeof HTMLDocument<"u"?HTMLDocument:Document)?l.document=document:l.document=document.implementation.createHTMLDocument(""),l.window=window;else{var g=o(4960),m=new g.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;l.document=m.document,l.jsdomImplForWrapper=o(6759).implForWrapper,l.nodeCanvas=o(6272).Canvas,l.window=m,DOMParser=l.window.DOMParser}l.isTouchSupported="ontouchstart"in l.window||"ontouchstart"in l.document||l.window&&l.window.navigator&&l.window.navigator.maxTouchPoints>0,l.isLikelyNode=typeof Buffer<"u"&&typeof window>"u",l.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],l.DPI=96,l.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",l.commaWsp="(?:\\s+,?\\s*|,\\s*)",l.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/ig,l.reNonWord=/[ \n\.,;!\?\-]/,l.fontPaths={},l.iMatrix=[1,0,0,1,0,0],l.svgNS="http://www.w3.org/2000/svg",l.perfLimitSizeTotal=2097152,l.maxCacheSideLimit=4096,l.minCacheSideLimit=256,l.charWidthsCache={},l.textureSize=2048,l.disableStyleCopyPaste=!1,l.enableGLFiltering=!0,l.devicePixelRatio=l.window.devicePixelRatio||l.window.webkitDevicePixelRatio||l.window.mozDevicePixelRatio||1,l.browserShadowBlurConstant=1,l.arcToSegmentsCache={},l.boundsOfCurveCache={},l.cachesBoundsOfCurve=!0,l.forceGLPutImageData=!1,l.initFilterBackend=function(){if(l.enableGLFiltering&&l.isWebglSupported&&l.isWebglSupported(l.textureSize))return console.log("max texture size: "+l.maxTextureSize),new l.WebglFilterBackend({tileSize:l.textureSize});if(l.Canvas2dFilterBackend)return new l.Canvas2dFilterBackend},typeof document<"u"&&typeof window<"u"&&(window.fabric=l),(function(){function h(C,k){if(this.__eventListeners[C]){var T=this.__eventListeners[C];k?T[T.indexOf(k)]=!1:l.util.array.fill(T,!1)}}function d(C,k){if(this.__eventListeners||(this.__eventListeners={}),arguments.length===1)for(var T in C)this.on(T,C[T]);else this.__eventListeners[C]||(this.__eventListeners[C]=[]),this.__eventListeners[C].push(k);return this}function A(C,k){var T=(function(){k.apply(this,arguments),this.off(C,T)}).bind(this);this.on(C,T)}function v(C,k){if(arguments.length===1)for(var T in C)A.call(this,T,C[T]);else A.call(this,C,k);return this}function w(C,k){if(!this.__eventListeners)return this;if(arguments.length===0)for(C in this.__eventListeners)h.call(this,C);else if(arguments.length===1&&typeof arguments[0]=="object")for(var T in C)h.call(this,T,C[T]);else h.call(this,C,k);return this}function x(C,k){if(!this.__eventListeners)return this;var T=this.__eventListeners[C];if(!T)return this;for(var S=0,M=T.length;S<M;S++)T[S]&&T[S].call(this,k||{});return this.__eventListeners[C]=T.filter(function(P){return P!==!1}),this}l.Observable={fire:x,on:d,once:v,off:w}})(),l.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var h=0,d=arguments.length;h<d;h++)this._onObjectAdded(arguments[h]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(h,d,A){var v=this._objects;return A?v[d]=h:v.splice(d,0,h),this._onObjectAdded&&this._onObjectAdded(h),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var h=this._objects,d,A=!1,v=0,w=arguments.length;v<w;v++)d=h.indexOf(arguments[v]),d!==-1&&(A=!0,h.splice(d,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[v]));return this.renderOnAddRemove&&A&&this.requestRenderAll(),this},forEachObject:function(h,d){for(var A=this.getObjects(),v=0,w=A.length;v<w;v++)h.call(d,A[v],v,A);return this},getObjects:function(h){return typeof h>"u"?this._objects.concat():this._objects.filter(function(d){return d.type===h})},item:function(h){return this._objects[h]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(h,d){return this._objects.indexOf(h)>-1?!0:d?this._objects.some(function(A){return typeof A.contains=="function"&&A.contains(h,!0)}):!1},complexity:function(){return this._objects.reduce(function(h,d){return h+=d.complexity?d.complexity():0,h},0)}},l.CommonMethods={_setOptions:function(h){for(var d in h)this.set(d,h[d])},_initGradient:function(h,d){h&&h.colorStops&&!(h instanceof l.Gradient)&&this.set(d,new l.Gradient(h))},_initPattern:function(h,d,A){h&&h.source&&!(h instanceof l.Pattern)?this.set(d,new l.Pattern(h,A)):A&&A()},_setObject:function(h){for(var d in h)this._set(d,h[d])},set:function(h,d){return typeof h=="object"?this._setObject(h):this._set(h,d),this},_set:function(h,d){this[h]=d},toggle:function(h){var d=this.get(h);return typeof d=="boolean"&&this.set(h,!d),this},get:function(h){return this[h]}},(function(h){var d=Math.sqrt,A=Math.atan2,v=Math.pow,w=Math.PI/180,x=Math.PI/2;l.util={cos:function(C){if(C===0)return 1;C<0&&(C=-C);var k=C/x;switch(k){case 1:case 3:return 0;case 2:return-1}return Math.cos(C)},sin:function(C){if(C===0)return 0;var k=C/x,T=1;switch(C<0&&(T=-1),k){case 1:return T;case 2:return 0;case 3:return-T}return Math.sin(C)},removeFromArray:function(C,k){var T=C.indexOf(k);return T!==-1&&C.splice(T,1),C},getRandomInt:function(C,k){return Math.floor(Math.random()*(k-C+1))+C},degreesToRadians:function(C){return C*w},radiansToDegrees:function(C){return C/w},rotatePoint:function(C,k,T){var S=new l.Point(C.x-k.x,C.y-k.y),M=l.util.rotateVector(S,T);return new l.Point(M.x,M.y).addEquals(k)},rotateVector:function(C,k){var T=l.util.sin(k),S=l.util.cos(k),M=C.x*S-C.y*T,P=C.x*T+C.y*S;return{x:M,y:P}},transformPoint:function(C,k,T){return T?new l.Point(k[0]*C.x+k[2]*C.y,k[1]*C.x+k[3]*C.y):new l.Point(k[0]*C.x+k[2]*C.y+k[4],k[1]*C.x+k[3]*C.y+k[5])},makeBoundingBoxFromPoints:function(C,k){if(k)for(var T=0;T<C.length;T++)C[T]=l.util.transformPoint(C[T],k);var S=[C[0].x,C[1].x,C[2].x,C[3].x],M=l.util.array.min(S),P=l.util.array.max(S),N=P-M,B=[C[0].y,C[1].y,C[2].y,C[3].y],O=l.util.array.min(B),I=l.util.array.max(B),F=I-O;return{left:M,top:O,width:N,height:F}},invertTransform:function(C){var k=1/(C[0]*C[3]-C[1]*C[2]),T=[k*C[3],-k*C[1],-k*C[2],k*C[0]],S=l.util.transformPoint({x:C[4],y:C[5]},T,!0);return T[4]=-S.x,T[5]=-S.y,T},toFixed:function(C,k){return parseFloat(Number(C).toFixed(k))},parseUnit:function(C,k){var T=/\D{0,2}$/.exec(C),S=parseFloat(C);switch(k||(k=l.Text.DEFAULT_SVG_FONT_SIZE),T[0]){case"mm":return S*l.DPI/25.4;case"cm":return S*l.DPI/2.54;case"in":return S*l.DPI;case"pt":return S*l.DPI/72;case"pc":return S*l.DPI/72*12;case"em":return S*k;default:return S}},falseFunction:function(){return!1},getKlass:function(C,k){return C=l.util.string.camelize(C.charAt(0).toUpperCase()+C.slice(1)),l.util.resolveNamespace(k)[C]},getSvgAttributes:function(C){var k=["instantiated_by_use","style","id","class"];switch(C){case"linearGradient":k=k.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":k=k.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":k=k.concat(["offset","stop-color","stop-opacity"]);break}return k},resolveNamespace:function(C){if(!C)return l;var k=C.split("."),T=k.length,S,M=h||l.window;for(S=0;S<T;++S)M=M[k[S]];return M},loadImage:function(C,k,T,S){if(!C){k&&k.call(T,C);return}var M=l.util.createImage(),P=function(){k&&k.call(T,M,!1),M=M.onload=M.onerror=null};M.onload=P,M.onerror=function(){l.log("Error loading "+M.src),k&&k.call(T,null,!0),M=M.onload=M.onerror=null},C.indexOf("data")!==0&&S!==void 0&&S!==null&&(M.crossOrigin=S),C.substring(0,14)==="data:image/svg"&&(M.onload=null,l.util.loadImageInDom(M,P)),M.src=C},loadImageInDom:function(C,k){var T=l.document.createElement("div");T.style.width=T.style.height="1px",T.style.left=T.style.top="-100%",T.style.position="absolute",T.appendChild(C),l.document.querySelector("body").appendChild(T),C.onload=function(){k(),T.parentNode.removeChild(T),T=null}},enlivenObjects:function(C,k,T,S){C=C||[];var M=[],P=0,N=C.length;function B(){++P===N&&k&&k(M.filter(function(O){return O}))}if(!N){k&&k(M);return}C.forEach(function(O,I){if(!O||!O.type){B();return}var F=l.util.getKlass(O.type,T);F.fromObject(O,function(L,R){R||(M[I]=L),S&&S(O,L,R),B()})})},enlivenPatterns:function(C,k){C=C||[];function T(){++M===P&&k&&k(S)}var S=[],M=0,P=C.length;if(!P){k&&k(S);return}C.forEach(function(N,B){N&&N.source?new l.Pattern(N,function(O){S[B]=O,T()}):(S[B]=N,T())})},groupSVGElements:function(C,k,T){var S;return C&&C.length===1?C[0]:(k&&(k.width&&k.height?k.centerPoint={x:k.width/2,y:k.height/2}:(delete k.width,delete k.height)),S=new l.Group(C,k),typeof T<"u"&&(S.sourcePath=T),S)},populateWithProperties:function(C,k,T){if(T&&Object.prototype.toString.call(T)==="[object Array]")for(var S=0,M=T.length;S<M;S++)T[S]in C&&(k[T[S]]=C[T[S]])},drawDashedLine:function(C,k,T,S,M,P){var N=S-k,B=M-T,O=d(N*N+B*B),I=A(B,N),F=P.length,L=0,R=!0;for(C.save(),C.translate(k,T),C.moveTo(0,0),C.rotate(I),k=0;O>k;)k+=P[L++%F],k>O&&(k=O),C[R?"lineTo":"moveTo"](k,0),R=!R;C.restore()},createCanvasElement:function(){return l.document.createElement("canvas")},copyCanvasElement:function(C){var k=l.util.createCanvasElement();return k.width=C.width,k.height=C.height,k.getContext("2d").drawImage(C,0,0),k},toDataURL:function(C,k,T){return C.toDataURL("image/"+k,T)},createImage:function(){return l.document.createElement("img")},multiplyTransformMatrices:function(C,k,T){return[C[0]*k[0]+C[2]*k[1],C[1]*k[0]+C[3]*k[1],C[0]*k[2]+C[2]*k[3],C[1]*k[2]+C[3]*k[3],T?0:C[0]*k[4]+C[2]*k[5]+C[4],T?0:C[1]*k[4]+C[3]*k[5]+C[5]]},qrDecompose:function(C){var k=A(C[1],C[0]),T=v(C[0],2)+v(C[1],2),S=d(T),M=(C[0]*C[3]-C[2]*C[1])/S,P=A(C[0]*C[2]+C[1]*C[3],T);return{angle:k/w,scaleX:S,scaleY:M,skewX:P/w,skewY:0,translateX:C[4],translateY:C[5]}},calcRotateMatrix:function(C){if(!C.angle)return l.iMatrix.concat();var k=l.util.degreesToRadians(C.angle),T=l.util.cos(k),S=l.util.sin(k);return[T,S,-S,T,0,0]},calcDimensionsMatrix:function(C){var k=typeof C.scaleX>"u"?1:C.scaleX,T=typeof C.scaleY>"u"?1:C.scaleY,S=[C.flipX?-k:k,0,0,C.flipY?-T:T,0,0],M=l.util.multiplyTransformMatrices,P=l.util.degreesToRadians;return C.skewX&&(S=M(S,[1,0,Math.tan(P(C.skewX)),1],!0)),C.skewY&&(S=M(S,[1,Math.tan(P(C.skewY)),0,1],!0)),S},composeMatrix:function(C){var k=[1,0,0,1,C.translateX||0,C.translateY||0],T=l.util.multiplyTransformMatrices;return C.angle&&(k=T(k,l.util.calcRotateMatrix(C))),(C.scaleX!==1||C.scaleY!==1||C.skewX||C.skewY||C.flipX||C.flipY)&&(k=T(k,l.util.calcDimensionsMatrix(C))),k},resetObjectTransform:function(C){C.scaleX=1,C.scaleY=1,C.skewX=0,C.skewY=0,C.flipX=!1,C.flipY=!1,C.rotate(0)},saveObjectTransform:function(C){return{scaleX:C.scaleX,scaleY:C.scaleY,skewX:C.skewX,skewY:C.skewY,angle:C.angle,left:C.left,flipX:C.flipX,flipY:C.flipY,top:C.top}},isTransparent:function(C,k,T,S){S>0&&(k>S?k-=S:k=0,T>S?T-=S:T=0);var M=!0,P,N,B=C.getImageData(k,T,S*2||1,S*2||1),O=B.data.length;for(P=3;P<O&&(N=B.data[P],M=N<=0,M!==!1);P+=4);return B=null,M},parsePreserveAspectRatioAttribute:function(C){var k="meet",T="Mid",S="Mid",M=C.split(" "),P;return M&&M.length&&(k=M.pop(),k!=="meet"&&k!=="slice"?(P=k,k="meet"):M.length&&(P=M.pop())),T=P!=="none"?P.slice(1,4):"none",S=P!=="none"?P.slice(5,8):"none",{meetOrSlice:k,alignX:T,alignY:S}},clearFabricFontCache:function(C){C=(C||"").toLowerCase(),C?l.charWidthsCache[C]&&delete l.charWidthsCache[C]:l.charWidthsCache={}},limitDimsByArea:function(C,k){var T=Math.sqrt(k*C),S=Math.floor(k/T);return{x:Math.floor(T),y:S}},capValue:function(C,k,T){return Math.max(C,Math.min(k,T))},findScaleToFit:function(C,k){return Math.min(k.width/C.width,k.height/C.height)},findScaleToCover:function(C,k){return Math.max(k.width/C.width,k.height/C.height)},matrixToSVG:function(C){return"matrix("+C.map(function(k){return l.util.toFixed(k,l.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(C,k){var T=l.util.invertTransform(k),S=l.util.multiplyTransformMatrices(T,C.calcOwnMatrix());l.util.applyTransformToObject(C,S)},addTransformToObject:function(C,k){l.util.applyTransformToObject(C,l.util.multiplyTransformMatrices(k,C.calcOwnMatrix()))},applyTransformToObject:function(C,k){var T=l.util.qrDecompose(k),S=new l.Point(T.translateX,T.translateY);C.flipX=!1,C.flipY=!1,C.set("scaleX",T.scaleX),C.set("scaleY",T.scaleY),C.skewX=T.skewX,C.skewY=T.skewY,C.angle=T.angle,C.setPositionByOrigin(S,"center","center")},sizeAfterTransform:function(C,k,T){var S=C/2,M=k/2,P=[{x:-S,y:-M},{x:S,y:-M},{x:-S,y:M},{x:S,y:M}],N=l.util.calcDimensionsMatrix(T),B=l.util.makeBoundingBoxFromPoints(P,N);return{x:B.width,y:B.height}}}})(f),(function(){var h=Array.prototype.join,d={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},A={m:"l",M:"L"};function v(oe,pe,ve,ge,ue,Te,Ee,ye,Se,Fe,Ve){var ke=l.util.cos(oe),Pe=l.util.sin(oe),Re=l.util.cos(pe),Ye=l.util.sin(pe),Ke=ve*ue*Re-ge*Te*Ye+Ee,ot=ge*ue*Re+ve*Te*Ye+ye,nt=Fe+Se*(-ve*ue*Pe-ge*Te*ke),mt=Ve+Se*(-ge*ue*Pe+ve*Te*ke),Ut=Ke+Se*(ve*ue*Ye+ge*Te*Re),Ot=ot+Se*(ge*ue*Ye-ve*Te*Re);return["C",nt,mt,Ut,Ot,Ke,ot]}function w(oe,pe,ve,ge,ue,Te,Ee){var ye=Math.PI,Se=Ee*ye/180,Fe=l.util.sin(Se),Ve=l.util.cos(Se),ke=0,Pe=0;ve=Math.abs(ve),ge=Math.abs(ge);var Re=-Ve*oe*.5-Fe*pe*.5,Ye=-Ve*pe*.5+Fe*oe*.5,Ke=ve*ve,ot=ge*ge,nt=Ye*Ye,mt=Re*Re,Ut=Ke*ot-Ke*nt-ot*mt,Ot=0;if(Ut<0){var wt=Math.sqrt(1-Ut/(Ke*ot));ve*=wt,ge*=wt}else Ot=(ue===Te?-1:1)*Math.sqrt(Ut/(Ke*nt+ot*mt));var Kt=Ot*ve*Ye/ge,_t=-Ot*ge*Re/ve,Jt=Ve*Kt-Fe*_t+oe*.5,yr=Fe*Kt+Ve*_t+pe*.5,vr=x(1,0,(Re-Kt)/ve,(Ye-_t)/ge),Br=x((Re-Kt)/ve,(Ye-_t)/ge,(-Re-Kt)/ve,(-Ye-_t)/ge);Te===0&&Br>0?Br-=2*ye:Te===1&&Br<0&&(Br+=2*ye);for(var zr=Math.ceil(Math.abs(Br/ye*2)),mn=[],jr=Br/zr,Tn=8/3*Math.sin(jr/4)*Math.sin(jr/4)/Math.sin(jr/2),Lt=vr+jr,Gt=0;Gt<zr;Gt++)mn[Gt]=v(vr,Lt,Ve,Fe,ve,ge,Jt,yr,Tn,ke,Pe),ke=mn[Gt][5],Pe=mn[Gt][6],vr=Lt,Lt+=jr;return mn}function x(oe,pe,ve,ge){var ue=Math.atan2(pe,oe),Te=Math.atan2(ge,ve);return Te>=ue?Te-ue:2*Math.PI-(ue-Te)}function C(oe,pe,ve,ge,ue,Te,Ee,ye){var Se;if(l.cachesBoundsOfCurve&&(Se=h.call(arguments),l.boundsOfCurveCache[Se]))return l.boundsOfCurveCache[Se];var Fe=Math.sqrt,Ve=Math.min,ke=Math.max,Pe=Math.abs,Re=[],Ye=[[],[]],Ke,ot,nt,mt,Ut,Ot,wt,Kt;ot=6*oe-12*ve+6*ue,Ke=-3*oe+9*ve-9*ue+3*Ee,nt=3*ve-3*oe;for(var _t=0;_t<2;++_t){if(_t>0&&(ot=6*pe-12*ge+6*Te,Ke=-3*pe+9*ge-9*Te+3*ye,nt=3*ge-3*pe),Pe(Ke)<1e-12){if(Pe(ot)<1e-12)continue;mt=-nt/ot,0<mt&&mt<1&&Re.push(mt);continue}wt=ot*ot-4*nt*Ke,!(wt<0)&&(Kt=Fe(wt),Ut=(-ot+Kt)/(2*Ke),0<Ut&&Ut<1&&Re.push(Ut),Ot=(-ot-Kt)/(2*Ke),0<Ot&&Ot<1&&Re.push(Ot))}for(var Jt,yr,vr=Re.length,Br=vr,zr;vr--;)mt=Re[vr],zr=1-mt,Jt=zr*zr*zr*oe+3*zr*zr*mt*ve+3*zr*mt*mt*ue+mt*mt*mt*Ee,Ye[0][vr]=Jt,yr=zr*zr*zr*pe+3*zr*zr*mt*ge+3*zr*mt*mt*Te+mt*mt*mt*ye,Ye[1][vr]=yr;Ye[0][Br]=oe,Ye[1][Br]=pe,Ye[0][Br+1]=Ee,Ye[1][Br+1]=ye;var mn=[{x:Ve.apply(null,Ye[0]),y:Ve.apply(null,Ye[1])},{x:ke.apply(null,Ye[0]),y:ke.apply(null,Ye[1])}];return l.cachesBoundsOfCurve&&(l.boundsOfCurveCache[Se]=mn),mn}function k(oe,pe,ve){for(var ge=ve[1],ue=ve[2],Te=ve[3],Ee=ve[4],ye=ve[5],Se=ve[6],Fe=ve[7],Ve=w(Se-oe,Fe-pe,ge,ue,Ee,ye,Te),ke=0,Pe=Ve.length;ke<Pe;ke++)Ve[ke][1]+=oe,Ve[ke][2]+=pe,Ve[ke][3]+=oe,Ve[ke][4]+=pe,Ve[ke][5]+=oe,Ve[ke][6]+=pe;return Ve}function T(oe){var pe=0,ve=0,ge=oe.length,ue=0,Te=0,Ee,ye,Se,Fe=[],Ve,ke,Pe;for(ye=0;ye<ge;++ye){switch(Se=!1,Ee=oe[ye].slice(0),Ee[0]){case"l":Ee[0]="L",Ee[1]+=pe,Ee[2]+=ve;case"L":pe=Ee[1],ve=Ee[2];break;case"h":Ee[1]+=pe;case"H":Ee[0]="L",Ee[2]=ve,pe=Ee[1];break;case"v":Ee[1]+=ve;case"V":Ee[0]="L",ve=Ee[1],Ee[1]=pe,Ee[2]=ve;break;case"m":Ee[0]="M",Ee[1]+=pe,Ee[2]+=ve;case"M":pe=Ee[1],ve=Ee[2],ue=Ee[1],Te=Ee[2];break;case"c":Ee[0]="C",Ee[1]+=pe,Ee[2]+=ve,Ee[3]+=pe,Ee[4]+=ve,Ee[5]+=pe,Ee[6]+=ve;case"C":ke=Ee[3],Pe=Ee[4],pe=Ee[5],ve=Ee[6];break;case"s":Ee[0]="S",Ee[1]+=pe,Ee[2]+=ve,Ee[3]+=pe,Ee[4]+=ve;case"S":Ve==="C"?(ke=2*pe-ke,Pe=2*ve-Pe):(ke=pe,Pe=ve),pe=Ee[3],ve=Ee[4],Ee[0]="C",Ee[5]=Ee[3],Ee[6]=Ee[4],Ee[3]=Ee[1],Ee[4]=Ee[2],Ee[1]=ke,Ee[2]=Pe,ke=Ee[3],Pe=Ee[4];break;case"q":Ee[0]="Q",Ee[1]+=pe,Ee[2]+=ve,Ee[3]+=pe,Ee[4]+=ve;case"Q":ke=Ee[1],Pe=Ee[2],pe=Ee[3],ve=Ee[4];break;case"t":Ee[0]="T",Ee[1]+=pe,Ee[2]+=ve;case"T":Ve==="Q"?(ke=2*pe-ke,Pe=2*ve-Pe):(ke=pe,Pe=ve),Ee[0]="Q",pe=Ee[1],ve=Ee[2],Ee[1]=ke,Ee[2]=Pe,Ee[3]=pe,Ee[4]=ve;break;case"a":Ee[0]="A",Ee[6]+=pe,Ee[7]+=ve;case"A":Se=!0,Fe=Fe.concat(k(pe,ve,Ee)),pe=Ee[6],ve=Ee[7];break;case"z":case"Z":pe=ue,ve=Te;break}Se||Fe.push(Ee),Ve=Ee[0]}return Fe}function S(oe,pe,ve,ge){return Math.sqrt((ve-oe)*(ve-oe)+(ge-pe)*(ge-pe))}function M(oe){return oe*oe*oe}function P(oe){return 3*oe*oe*(1-oe)}function N(oe){return 3*oe*(1-oe)*(1-oe)}function B(oe){return(1-oe)*(1-oe)*(1-oe)}function O(oe,pe,ve,ge,ue,Te,Ee,ye){return function(Se){var Fe=M(Se),Ve=P(Se),ke=N(Se),Pe=B(Se);return{x:Ee*Fe+ue*Ve+ve*ke+oe*Pe,y:ye*Fe+Te*Ve+ge*ke+pe*Pe}}}function I(oe,pe,ve,ge,ue,Te,Ee,ye){return function(Se){var Fe=1-Se,Ve=3*Fe*Fe*(ve-oe)+6*Fe*Se*(ue-ve)+3*Se*Se*(Ee-ue),ke=3*Fe*Fe*(ge-pe)+6*Fe*Se*(Te-ge)+3*Se*Se*(ye-Te);return Math.atan2(ke,Ve)}}function F(oe){return oe*oe}function L(oe){return 2*oe*(1-oe)}function R(oe){return(1-oe)*(1-oe)}function U(oe,pe,ve,ge,ue,Te){return function(Ee){var ye=F(Ee),Se=L(Ee),Fe=R(Ee);return{x:ue*ye+ve*Se+oe*Fe,y:Te*ye+ge*Se+pe*Fe}}}function V(oe,pe,ve,ge,ue,Te){return function(Ee){var ye=1-Ee,Se=2*ye*(ve-oe)+2*Ee*(ue-ve),Fe=2*ye*(ge-pe)+2*Ee*(Te-ge);return Math.atan2(Fe,Se)}}function W(oe,pe,ve){var ge={x:pe,y:ve},ue,Te=0,Ee;for(Ee=1;Ee<=100;Ee+=1)ue=oe(Ee/100),Te+=S(ge.x,ge.y,ue.x,ue.y),ge=ue;return Te}function Q(oe,pe){for(var ve=0,ge=0,ue=oe.iterator,Te={x:oe.x,y:oe.y},Ee,ye,Se=.01,Fe=oe.angleFinder,Ve;ge<pe&&ve<=1&&Se>1e-4;)Ee=ue(ve),Ve=ve,ye=S(Te.x,Te.y,Ee.x,Ee.y),ye+ge>pe?(Se/=2,ve-=Se):(Te=Ee,ve+=Se,ge+=ye);return Ee.angle=Fe(Ve),Ee}function le(oe){for(var pe=0,ve=oe.length,ge,ue=0,Te=0,Ee=0,ye=0,Se=[],Fe,Ve,ke,Pe=0;Pe<ve;Pe++){switch(ge=oe[Pe],Ve={x:ue,y:Te,command:ge[0]},ge[0]){case"M":Ve.length=0,Ee=ue=ge[1],ye=Te=ge[2];break;case"L":Ve.length=S(ue,Te,ge[1],ge[2]),ue=ge[1],Te=ge[2];break;case"C":Fe=O(ue,Te,ge[1],ge[2],ge[3],ge[4],ge[5],ge[6]),ke=I(ue,Te,ge[1],ge[2],ge[3],ge[4],ge[5],ge[6]),Ve.iterator=Fe,Ve.angleFinder=ke,Ve.length=W(Fe,ue,Te),ue=ge[5],Te=ge[6];break;case"Q":Fe=U(ue,Te,ge[1],ge[2],ge[3],ge[4]),ke=V(ue,Te,ge[1],ge[2],ge[3],ge[4]),Ve.iterator=Fe,Ve.angleFinder=ke,Ve.length=W(Fe,ue,Te),ue=ge[3],Te=ge[4];break;case"Z":case"z":Ve.destX=Ee,Ve.destY=ye,Ve.length=S(ue,Te,Ee,ye),ue=Ee,Te=ye;break}pe+=Ve.length,Se.push(Ve)}return Se.push({length:pe,x:ue,y:Te}),Se}function G(oe,pe,ve){ve||(ve=le(oe));for(var ge=0;pe-ve[ge].length>0&&ge<ve.length-2;)pe-=ve[ge].length,ge++;var ue=ve[ge],Te=pe/ue.length,Ee=ue.command,ye=oe[ge],Se;switch(Ee){case"M":return{x:ue.x,y:ue.y,angle:0};case"Z":case"z":return Se=new l.Point(ue.x,ue.y).lerp(new l.Point(ue.destX,ue.destY),Te),Se.angle=Math.atan2(ue.destY-ue.y,ue.destX-ue.x),Se;case"L":return Se=new l.Point(ue.x,ue.y).lerp(new l.Point(ye[1],ye[2]),Te),Se.angle=Math.atan2(ye[2]-ue.y,ye[1]-ue.x),Se;case"C":return Q(ue,pe);case"Q":return Q(ue,pe)}}function fe(oe){var pe=[],ve=[],ge,ue,Te=l.rePathCommand,Ee="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",ye="("+Ee+")"+l.commaWsp,Se="([01])"+l.commaWsp+"?",Fe=ye+"?"+ye+"?"+ye+Se+Se+ye+"?("+Ee+")",Ve=new RegExp(Fe,"g"),ke,Pe,Re;if(!oe||!oe.match)return pe;Re=oe.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var Ye=0,Ke,ot=Re.length;Ye<ot;Ye++){ge=Re[Ye],Pe=ge.slice(1).trim(),ve.length=0;var nt=ge.charAt(0);if(Ke=[nt],nt.toLowerCase()==="a")for(var mt;mt=Ve.exec(Pe);)for(var Ut=1;Ut<mt.length;Ut++)ve.push(mt[Ut]);else for(;ke=Te.exec(Pe);)ve.push(ke[0]);for(var Ut=0,Ot=ve.length;Ut<Ot;Ut++)ue=parseFloat(ve[Ut]),isNaN(ue)||Ke.push(ue);var wt=d[nt.toLowerCase()],Kt=A[nt]||nt;if(Ke.length-1>wt)for(var _t=1,Jt=Ke.length;_t<Jt;_t+=wt)pe.push([nt].concat(Ke.slice(_t,_t+wt))),nt=Kt;else pe.push(Ke)}return pe}function ie(oe,pe){var ve=[],ge,ue=new l.Point(oe[0].x,oe[0].y),Te=new l.Point(oe[1].x,oe[1].y),Ee=oe.length,ye=1,Se=0,Fe=Ee>2;for(pe=pe||0,Fe&&(ye=oe[2].x<Te.x?-1:oe[2].x===Te.x?0:1,Se=oe[2].y<Te.y?-1:oe[2].y===Te.y?0:1),ve.push(["M",ue.x-ye*pe,ue.y-Se*pe]),ge=1;ge<Ee;ge++){if(!ue.eq(Te)){var Ve=ue.midPointFrom(Te);ve.push(["Q",ue.x,ue.y,Ve.x,Ve.y])}ue=oe[ge],ge+1<oe.length&&(Te=oe[ge+1])}return Fe&&(ye=ue.x>oe[ge-2].x?1:ue.x===oe[ge-2].x?0:-1,Se=ue.y>oe[ge-2].y?1:ue.y===oe[ge-2].y?0:-1),ve.push(["L",ue.x+ye*pe,ue.y+Se*pe]),ve}function he(oe,pe,ve){return ve&&(pe=l.util.multiplyTransformMatrices(pe,[1,0,0,1,-ve.x,-ve.y])),oe.map(function(ge){for(var ue=ge.slice(0),Te={},Ee=1;Ee<ge.length-1;Ee+=2)Te.x=ge[Ee],Te.y=ge[Ee+1],Te=l.util.transformPoint(Te,pe),ue[Ee]=Te.x,ue[Ee+1]=Te.y;return ue})}function Y(oe,pe,ve,ge,ue,Te,Ee,ye,Se){for(var Fe=0,Ve=0,ke,Pe=[],Re=w(ye-oe,Se-pe,ve,ge,Te,Ee,ue),Ye=0,Ke=Re.length;Ye<Ke;Ye++)ke=C(Fe,Ve,Re[Ye][1],Re[Ye][2],Re[Ye][3],Re[Ye][4],Re[Ye][5],Re[Ye][6]),Pe.push({x:ke[0].x+oe,y:ke[0].y+pe}),Pe.push({x:ke[1].x+oe,y:ke[1].y+pe}),Fe=Re[Ye][5],Ve=Re[Ye][6];return Pe}function K(oe,pe,ve,ge){ge=ge.slice(0).unshift("X");var ue=k(pe,ve,ge);ue.forEach(function(Te){oe.bezierCurveTo.apply(oe,Te.slice(1))})}l.util.joinPath=function(oe){return oe.map(function(pe){return pe.join(" ")}).join(" ")},l.util.parsePath=fe,l.util.makePathSimpler=T,l.util.getSmoothPathFromPoints=ie,l.util.getPathSegmentsInfo=le,l.util.getBoundsOfCurve=C,l.util.getPointOnPath=G,l.util.transformPath=he,l.util.fromArcToBeizers=k,l.util.getBoundsOfArc=Y,l.util.drawArc=K})(),(function(){var h=Array.prototype.slice;function d(C,k){for(var T=h.call(arguments,2),S=[],M=0,P=C.length;M<P;M++)S[M]=T.length?C[M][k].apply(C[M],T):C[M][k].call(C[M]);return S}function A(C,k){return x(C,k,function(T,S){return T>=S})}function v(C,k){return x(C,k,function(T,S){return T<S})}function w(C,k){for(var T=C.length;T--;)C[T]=k;return C}function x(C,k,T){if(!(!C||C.length===0)){var S=C.length-1,M=k?C[S][k]:C[S];if(k)for(;S--;)T(C[S][k],M)&&(M=C[S][k]);else for(;S--;)T(C[S],M)&&(M=C[S]);return M}}l.util.array={fill:w,invoke:d,min:v,max:A}})(),(function(){function h(A,v,w){if(w)if(!l.isLikelyNode&&v instanceof Element)A=v;else if(v instanceof Array){A=[];for(var x=0,C=v.length;x<C;x++)A[x]=h({},v[x],w)}else if(v&&typeof v=="object")for(var k in v)k==="canvas"||k==="group"?A[k]=null:v.hasOwnProperty(k)&&(A[k]=h({},v[k],w));else A=v;else for(var k in v)A[k]=v[k];return A}function d(A,v){return h({},A,v)}l.util.object={extend:h,clone:d},l.util.object.extend(l.util,l.Observable)})(),(function(){function h(x){return x.replace(/-+(.)?/g,function(C,k){return k?k.toUpperCase():""})}function d(x,C){return x.charAt(0).toUpperCase()+(C?x.slice(1):x.slice(1).toLowerCase())}function A(x){return x.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function v(x){var C=0,k,T=[];for(C=0,k;C<x.length;C++)(k=w(x,C))!==!1&&T.push(k);return T}function w(x,C){var k=x.charCodeAt(C);if(isNaN(k))return"";if(k<55296||k>57343)return x.charAt(C);if(55296<=k&&k<=56319){if(x.length<=C+1)throw"High surrogate without following low surrogate";var T=x.charCodeAt(C+1);if(56320>T||T>57343)throw"High surrogate without following low surrogate";return x.charAt(C)+x.charAt(C+1)}if(C===0)throw"Low surrogate without preceding high surrogate";var S=x.charCodeAt(C-1);if(55296>S||S>56319)throw"Low surrogate without preceding high surrogate";return!1}l.util.string={camelize:h,capitalize:d,escapeXml:A,graphemeSplit:v}})(),(function(){var h=Array.prototype.slice,d=function(){},A=(function(){for(var k in{toString:1})if(k==="toString")return!1;return!0})(),v=function(k,T,S){for(var M in T)M in k.prototype&&typeof k.prototype[M]=="function"&&(T[M]+"").indexOf("callSuper")>-1?k.prototype[M]=(function(P){return function(){var N=this.constructor.superclass;this.constructor.superclass=S;var B=T[P].apply(this,arguments);if(this.constructor.superclass=N,P!=="initialize")return B}})(M):k.prototype[M]=T[M],A&&(T.toString!==Object.prototype.toString&&(k.prototype.toString=T.toString),T.valueOf!==Object.prototype.valueOf&&(k.prototype.valueOf=T.valueOf))};function w(){}function x(k){for(var T=null,S=this;S.constructor.superclass;){var M=S.constructor.superclass.prototype[k];if(S[k]!==M){T=M;break}S=S.constructor.superclass.prototype}return T?arguments.length>1?T.apply(this,h.call(arguments,1)):T.call(this):console.log("tried to callSuper "+k+", method not found in prototype chain",this)}function C(){var k=null,T=h.call(arguments,0);typeof T[0]=="function"&&(k=T.shift());function S(){this.initialize.apply(this,arguments)}S.superclass=k,S.subclasses=[],k&&(w.prototype=k.prototype,S.prototype=new w,k.subclasses.push(S));for(var M=0,P=T.length;M<P;M++)v(S,T[M],k);return S.prototype.initialize||(S.prototype.initialize=d),S.prototype.constructor=S,S.prototype.callSuper=x,S}l.util.createClass=C})(),(function(){var h=!!l.document.createElement("div").attachEvent,d=["touchstart","touchmove","touchend"];l.util.addListener=function(v,w,x,C){v&&v.addEventListener(w,x,h?!1:C)},l.util.removeListener=function(v,w,x,C){v&&v.removeEventListener(w,x,h?!1:C)};function A(v){var w=v.changedTouches;return w&&w[0]?w[0]:v}l.util.getPointer=function(v){var w=v.target,x=l.util.getScrollLeftTop(w),C=A(v);return{x:C.clientX+x.left,y:C.clientY+x.top}},l.util.isTouchEvent=function(v){return d.indexOf(v.type)>-1||v.pointerType==="touch"}})(),(function(){function h(C,k){var T=C.style;if(!T)return C;if(typeof k=="string")return C.style.cssText+=";"+k,k.indexOf("opacity")>-1?x(C,k.match(/opacity:\s*(\d?\.?\d*)/)[1]):C;for(var S in k)if(S==="opacity")x(C,k[S]);else{var M=S==="float"||S==="cssFloat"?typeof T.styleFloat>"u"?"cssFloat":"styleFloat":S;T[M]=k[S]}return C}var d=l.document.createElement("div"),A=typeof d.style.opacity=="string",v=typeof d.style.filter=="string",w=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,x=function(C){return C};A?x=function(C,k){return C.style.opacity=k,C}:v&&(x=function(C,k){var T=C.style;return C.currentStyle&&!C.currentStyle.hasLayout&&(T.zoom=1),w.test(T.filter)?(k=k>=.9999?"":"alpha(opacity="+k*100+")",T.filter=T.filter.replace(w,k)):T.filter+=" alpha(opacity="+k*100+")",C}),l.util.setStyle=h})(),(function(){var h=Array.prototype.slice;function d(B){return typeof B=="string"?l.document.getElementById(B):B}var A,v=function(B){return h.call(B,0)};try{A=v(l.document.childNodes)instanceof Array}catch{}A||(v=function(B){for(var O=new Array(B.length),I=B.length;I--;)O[I]=B[I];return O});function w(B,O){var I=l.document.createElement(B);for(var F in O)F==="class"?I.className=O[F]:F==="for"?I.htmlFor=O[F]:I.setAttribute(F,O[F]);return I}function x(B,O){B&&(" "+B.className+" ").indexOf(" "+O+" ")===-1&&(B.className+=(B.className?" ":"")+O)}function C(B,O,I){return typeof O=="string"&&(O=w(O,I)),B.parentNode&&B.parentNode.replaceChild(O,B),O.appendChild(B),O}function k(B){for(var O=0,I=0,F=l.document.documentElement,L=l.document.body||{scrollLeft:0,scrollTop:0};B&&(B.parentNode||B.host)&&(B=B.parentNode||B.host,B===l.document?(O=L.scrollLeft||F.scrollLeft||0,I=L.scrollTop||F.scrollTop||0):(O+=B.scrollLeft||0,I+=B.scrollTop||0),!(B.nodeType===1&&B.style.position==="fixed")););return{left:O,top:I}}function T(B){var O,I=B&&B.ownerDocument,F={left:0,top:0},L={left:0,top:0},R,U={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!I)return L;for(var V in U)L[U[V]]+=parseInt(S(B,V),10)||0;return O=I.documentElement,typeof B.getBoundingClientRect<"u"&&(F=B.getBoundingClientRect()),R=k(B),{left:F.left+R.left-(O.clientLeft||0)+L.left,top:F.top+R.top-(O.clientTop||0)+L.top}}var S;l.document.defaultView&&l.document.defaultView.getComputedStyle?S=function(B,O){var I=l.document.defaultView.getComputedStyle(B,null);return I?I[O]:void 0}:S=function(B,O){var I=B.style[O];return!I&&B.currentStyle&&(I=B.currentStyle[O]),I},(function(){var B=l.document.documentElement.style,O="userSelect"in B?"userSelect":"MozUserSelect"in B?"MozUserSelect":"WebkitUserSelect"in B?"WebkitUserSelect":"KhtmlUserSelect"in B?"KhtmlUserSelect":"";function I(L){return typeof L.onselectstart<"u"&&(L.onselectstart=l.util.falseFunction),O?L.style[O]="none":typeof L.unselectable=="string"&&(L.unselectable="on"),L}function F(L){return typeof L.onselectstart<"u"&&(L.onselectstart=null),O?L.style[O]="":typeof L.unselectable=="string"&&(L.unselectable=""),L}l.util.makeElementUnselectable=I,l.util.makeElementSelectable=F})();function M(B){var O=l.jsdomImplForWrapper(B);return O._canvas||O._image}function P(B){if(l.isLikelyNode){var O=l.jsdomImplForWrapper(B);O&&(O._image=null,O._canvas=null,O._currentSrc=null,O._attributes=null,O._classList=null)}}function N(B,O){B.imageSmoothingEnabled=B.imageSmoothingEnabled||B.webkitImageSmoothingEnabled||B.mozImageSmoothingEnabled||B.msImageSmoothingEnabled||B.oImageSmoothingEnabled,B.imageSmoothingEnabled=O}l.util.setImageSmoothing=N,l.util.getById=d,l.util.toArray=v,l.util.addClass=x,l.util.makeElement=w,l.util.wrapElement=C,l.util.getScrollLeftTop=k,l.util.getElementOffset=T,l.util.getNodeCanvas=M,l.util.cleanUpJsdomNode=P})(),(function(){function h(v,w){return v+(/\?/.test(v)?"&":"?")+w}function d(){}function A(v,w){w||(w={});var x=w.method?w.method.toUpperCase():"GET",C=w.onComplete||function(){},k=new l.window.XMLHttpRequest,T=w.body||w.parameters;return k.onreadystatechange=function(){k.readyState===4&&(C(k),k.onreadystatechange=d)},x==="GET"&&(T=null,typeof w.parameters=="string"&&(v=h(v,w.parameters))),k.open(x,v,!0),(x==="POST"||x==="PUT")&&k.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),k.send(T),k}l.util.request=A})(),l.log=console.log,l.warn=console.warn,(function(){function h(){return!1}function d(k,T,S,M){return-S*Math.cos(k/M*(Math.PI/2))+S+T}function A(k){var T=!1;return x(function(S){k||(k={});var M=S||+new Date,P=k.duration||500,N=M+P,B,O=k.onChange||h,I=k.abort||h,F=k.onComplete||h,L=k.easing||d,R="startValue"in k?k.startValue:0,U="endValue"in k?k.endValue:100,V=k.byValue||U-R;k.onStart&&k.onStart(),(function W(Q){B=Q||+new Date;var le=B>N?P:B-M,G=le/P,fe=L(le,R,V,P),ie=Math.abs((fe-R)/V);if(!T){if(I(fe,ie,G)){F(U,1,1);return}if(B>N){O(U,1,1),F(U,1,1);return}else O(fe,ie,G),x(W)}})(M)}),function(){T=!0}}var v=l.window.requestAnimationFrame||l.window.webkitRequestAnimationFrame||l.window.mozRequestAnimationFrame||l.window.oRequestAnimationFrame||l.window.msRequestAnimationFrame||function(k){return l.window.setTimeout(k,1e3/60)},w=l.window.cancelAnimationFrame||l.window.clearTimeout;function x(){return v.apply(l.window,arguments)}function C(){return w.apply(l.window,arguments)}l.util.animate=A,l.util.requestAnimFrame=x,l.util.cancelAnimFrame=C})(),(function(){function h(A,v,w){var x="rgba("+parseInt(A[0]+w*(v[0]-A[0]),10)+","+parseInt(A[1]+w*(v[1]-A[1]),10)+","+parseInt(A[2]+w*(v[2]-A[2]),10);return x+=","+(A&&v?parseFloat(A[3]+w*(v[3]-A[3])):1),x+=")",x}function d(A,v,w,x){var C=new l.Color(A).getSource(),k=new l.Color(v).getSource(),T=x.onComplete,S=x.onChange;return x=x||{},l.util.animate(l.util.object.extend(x,{duration:w||500,startValue:C,endValue:k,byValue:k,easing:function(M,P,N,B){var O=x.colorEasing?x.colorEasing(M,B):1-Math.cos(M/B*(Math.PI/2));return h(P,N,O)},onComplete:function(M,P,N){if(T)return T(h(k,k,0),P,N)},onChange:function(M,P,N){if(S){if(Array.isArray(M))return S(h(M,M,0),P,N);S(M,P,N)}}}))}l.util.animateColor=d})(),(function(){function h(Y,K,oe,pe){return Y<Math.abs(K)?(Y=K,pe=oe/4):K===0&&Y===0?pe=oe/(2*Math.PI)*Math.asin(1):pe=oe/(2*Math.PI)*Math.asin(K/Y),{a:Y,c:K,p:oe,s:pe}}function d(Y,K,oe){return Y.a*Math.pow(2,10*(K-=1))*Math.sin((K*oe-Y.s)*(2*Math.PI)/Y.p)}function A(Y,K,oe,pe){return oe*((Y=Y/pe-1)*Y*Y+1)+K}function v(Y,K,oe,pe){return Y/=pe/2,Y<1?oe/2*Y*Y*Y+K:oe/2*((Y-=2)*Y*Y+2)+K}function w(Y,K,oe,pe){return oe*(Y/=pe)*Y*Y*Y+K}function x(Y,K,oe,pe){return-oe*((Y=Y/pe-1)*Y*Y*Y-1)+K}function C(Y,K,oe,pe){return Y/=pe/2,Y<1?oe/2*Y*Y*Y*Y+K:-oe/2*((Y-=2)*Y*Y*Y-2)+K}function k(Y,K,oe,pe){return oe*(Y/=pe)*Y*Y*Y*Y+K}function T(Y,K,oe,pe){return oe*((Y=Y/pe-1)*Y*Y*Y*Y+1)+K}function S(Y,K,oe,pe){return Y/=pe/2,Y<1?oe/2*Y*Y*Y*Y*Y+K:oe/2*((Y-=2)*Y*Y*Y*Y+2)+K}function M(Y,K,oe,pe){return-oe*Math.cos(Y/pe*(Math.PI/2))+oe+K}function P(Y,K,oe,pe){return oe*Math.sin(Y/pe*(Math.PI/2))+K}function N(Y,K,oe,pe){return-oe/2*(Math.cos(Math.PI*Y/pe)-1)+K}function B(Y,K,oe,pe){return Y===0?K:oe*Math.pow(2,10*(Y/pe-1))+K}function O(Y,K,oe,pe){return Y===pe?K+oe:oe*(-Math.pow(2,-10*Y/pe)+1)+K}function I(Y,K,oe,pe){return Y===0?K:Y===pe?K+oe:(Y/=pe/2,Y<1?oe/2*Math.pow(2,10*(Y-1))+K:oe/2*(-Math.pow(2,-10*--Y)+2)+K)}function F(Y,K,oe,pe){return-oe*(Math.sqrt(1-(Y/=pe)*Y)-1)+K}function L(Y,K,oe,pe){return oe*Math.sqrt(1-(Y=Y/pe-1)*Y)+K}function R(Y,K,oe,pe){return Y/=pe/2,Y<1?-oe/2*(Math.sqrt(1-Y*Y)-1)+K:oe/2*(Math.sqrt(1-(Y-=2)*Y)+1)+K}function U(Y,K,oe,pe){var ve=1.70158,ge=0,ue=oe;if(Y===0)return K;if(Y/=pe,Y===1)return K+oe;ge||(ge=pe*.3);var Te=h(ue,oe,ge,ve);return-d(Te,Y,pe)+K}function V(Y,K,oe,pe){var ve=1.70158,ge=0,ue=oe;if(Y===0)return K;if(Y/=pe,Y===1)return K+oe;ge||(ge=pe*.3);var Te=h(ue,oe,ge,ve);return Te.a*Math.pow(2,-10*Y)*Math.sin((Y*pe-Te.s)*(2*Math.PI)/Te.p)+Te.c+K}function W(Y,K,oe,pe){var ve=1.70158,ge=0,ue=oe;if(Y===0)return K;if(Y/=pe/2,Y===2)return K+oe;ge||(ge=pe*.44999999999999996);var Te=h(ue,oe,ge,ve);return Y<1?-.5*d(Te,Y,pe)+K:Te.a*Math.pow(2,-10*(Y-=1))*Math.sin((Y*pe-Te.s)*(2*Math.PI)/Te.p)*.5+Te.c+K}function Q(Y,K,oe,pe,ve){return ve===void 0&&(ve=1.70158),oe*(Y/=pe)*Y*((ve+1)*Y-ve)+K}function le(Y,K,oe,pe,ve){return ve===void 0&&(ve=1.70158),oe*((Y=Y/pe-1)*Y*((ve+1)*Y+ve)+1)+K}function G(Y,K,oe,pe,ve){return ve===void 0&&(ve=1.70158),Y/=pe/2,Y<1?oe/2*(Y*Y*(((ve*=1.525)+1)*Y-ve))+K:oe/2*((Y-=2)*Y*(((ve*=1.525)+1)*Y+ve)+2)+K}function fe(Y,K,oe,pe){return oe-ie(pe-Y,0,oe,pe)+K}function ie(Y,K,oe,pe){return(Y/=pe)<.36363636363636365?oe*(7.5625*Y*Y)+K:Y<.7272727272727273?oe*(7.5625*(Y-=.5454545454545454)*Y+.75)+K:Y<.9090909090909091?oe*(7.5625*(Y-=.8181818181818182)*Y+.9375)+K:oe*(7.5625*(Y-=.9545454545454546)*Y+.984375)+K}function he(Y,K,oe,pe){return Y<pe/2?fe(Y*2,0,oe,pe)*.5+K:ie(Y*2-pe,0,oe,pe)*.5+oe*.5+K}l.util.ease={easeInQuad:function(Y,K,oe,pe){return oe*(Y/=pe)*Y+K},easeOutQuad:function(Y,K,oe,pe){return-oe*(Y/=pe)*(Y-2)+K},easeInOutQuad:function(Y,K,oe,pe){return Y/=pe/2,Y<1?oe/2*Y*Y+K:-oe/2*(--Y*(Y-2)-1)+K},easeInCubic:function(Y,K,oe,pe){return oe*(Y/=pe)*Y*Y+K},easeOutCubic:A,easeInOutCubic:v,easeInQuart:w,easeOutQuart:x,easeInOutQuart:C,easeInQuint:k,easeOutQuint:T,easeInOutQuint:S,easeInSine:M,easeOutSine:P,easeInOutSine:N,easeInExpo:B,easeOutExpo:O,easeInOutExpo:I,easeInCirc:F,easeOutCirc:L,easeInOutCirc:R,easeInElastic:U,easeOutElastic:V,easeInOutElastic:W,easeInBack:Q,easeOutBack:le,easeInOutBack:G,easeInBounce:fe,easeOutBounce:ie,easeInOutBounce:he}})(),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.util.object.clone,w=d.util.toFixed,x=d.util.parseUnit,C=d.util.multiplyTransformMatrices,k=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],T=["symbol","image","marker","pattern","view","svg"],S=["pattern","defs","symbol","metadata","clipPath","mask","desc"],M=["symbol","g","a","svg","clipPath","defs"],P={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},N={stroke:"strokeOpacity",fill:"fillOpacity"},B="font-size",O="clip-path";d.svgValidTagNamesRegEx=L(k),d.svgViewBoxElementsRegEx=L(T),d.svgInvalidAncestorsRegEx=L(S),d.svgValidParentsRegEx=L(M),d.cssRules={},d.gradientDefs={},d.clipPaths={};function I(ge){return ge in P?P[ge]:ge}function F(ge,ue,Te,Ee){var ye=Object.prototype.toString.call(ue)==="[object Array]",Se;if((ge==="fill"||ge==="stroke")&&ue==="none")ue="";else{if(ge==="strokeUniform")return ue==="non-scaling-stroke";if(ge==="strokeDashArray")ue==="none"?ue=null:ue=ue.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(ge==="transformMatrix")Te&&Te.transformMatrix?ue=C(Te.transformMatrix,d.parseTransformAttribute(ue)):ue=d.parseTransformAttribute(ue);else if(ge==="visible")ue=ue!=="none"&&ue!=="hidden",Te&&Te.visible===!1&&(ue=!1);else if(ge==="opacity")ue=parseFloat(ue),Te&&typeof Te.opacity<"u"&&(ue*=Te.opacity);else if(ge==="textAnchor")ue=ue==="start"?"left":ue==="end"?"right":"center";else if(ge==="charSpacing")Se=x(ue,Ee)/Ee*1e3;else if(ge==="paintFirst"){var Fe=ue.indexOf("fill"),Ve=ue.indexOf("stroke"),ue="fill";(Fe>-1&&Ve>-1&&Ve<Fe||Fe===-1&&Ve>-1)&&(ue="stroke")}else{if(ge==="href"||ge==="xlink:href"||ge==="font")return ue;if(ge==="imageSmoothing")return ue==="optimizeQuality";Se=ye?ue.map(x):x(ue,Ee)}}return!ye&&isNaN(Se)?ue:Se}function L(ge){return new RegExp("^("+ge.join("|")+")\\b","i")}function R(ge){for(var ue in N)if(!(typeof ge[N[ue]]>"u"||ge[ue]==="")){if(typeof ge[ue]>"u"){if(!d.Object.prototype[ue])continue;ge[ue]=d.Object.prototype[ue]}if(ge[ue].indexOf("url(")!==0){var Te=new d.Color(ge[ue]);ge[ue]=Te.setAlpha(w(Te.getAlpha()*ge[N[ue]],2)).toRgba()}}return ge}function U(ge,ue){var Te,Ee=[],ye,Se,Fe;for(Se=0,Fe=ue.length;Se<Fe;Se++)Te=ue[Se],ye=ge.getElementsByTagName(Te),Ee=Ee.concat(Array.prototype.slice.call(ye));return Ee}d.parseTransformAttribute=(function(){function ge(wt,Kt){var _t=d.util.cos(Kt[0]),Jt=d.util.sin(Kt[0]),yr=0,vr=0;Kt.length===3&&(yr=Kt[1],vr=Kt[2]),wt[0]=_t,wt[1]=Jt,wt[2]=-Jt,wt[3]=_t,wt[4]=yr-(_t*yr-Jt*vr),wt[5]=vr-(Jt*yr+_t*vr)}function ue(wt,Kt){var _t=Kt[0],Jt=Kt.length===2?Kt[1]:Kt[0];wt[0]=_t,wt[3]=Jt}function Te(wt,Kt,_t){wt[_t]=Math.tan(d.util.degreesToRadians(Kt[0]))}function Ee(wt,Kt){wt[4]=Kt[0],Kt.length===2&&(wt[5]=Kt[1])}var ye=d.iMatrix,Se=d.reNum,Fe=d.commaWsp,Ve="(?:(skewX)\\s*\\(\\s*("+Se+")\\s*\\))",ke="(?:(skewY)\\s*\\(\\s*("+Se+")\\s*\\))",Pe="(?:(rotate)\\s*\\(\\s*("+Se+")(?:"+Fe+"("+Se+")"+Fe+"("+Se+"))?\\s*\\))",Re="(?:(scale)\\s*\\(\\s*("+Se+")(?:"+Fe+"("+Se+"))?\\s*\\))",Ye="(?:(translate)\\s*\\(\\s*("+Se+")(?:"+Fe+"("+Se+"))?\\s*\\))",Ke="(?:(matrix)\\s*\\(\\s*("+Se+")"+Fe+"("+Se+")"+Fe+"("+Se+")"+Fe+"("+Se+")"+Fe+"("+Se+")"+Fe+"("+Se+")\\s*\\))",ot="(?:"+Ke+"|"+Ye+"|"+Re+"|"+Pe+"|"+Ve+"|"+ke+")",nt="(?:"+ot+"(?:"+Fe+"*"+ot+")*)",mt="^\\s*(?:"+nt+"?)\\s*$",Ut=new RegExp(mt),Ot=new RegExp(ot,"g");return function(wt){var Kt=ye.concat(),_t=[];if(!wt||wt&&!Ut.test(wt))return Kt;wt.replace(Ot,function(yr){var vr=new RegExp(ot).exec(yr).filter(function(mn){return!!mn}),Br=vr[1],zr=vr.slice(2).map(parseFloat);switch(Br){case"translate":Ee(Kt,zr);break;case"rotate":zr[0]=d.util.degreesToRadians(zr[0]),ge(Kt,zr);break;case"scale":ue(Kt,zr);break;case"skewX":Te(Kt,zr,2);break;case"skewY":Te(Kt,zr,1);break;case"matrix":Kt=zr;break}_t.push(Kt.concat()),Kt=ye.concat()});for(var Jt=_t[0];_t.length>1;)_t.shift(),Jt=d.util.multiplyTransformMatrices(Jt,_t[0]);return Jt}})();function V(ge,ue){var Te,Ee;ge.replace(/;\s*$/,"").split(";").forEach(function(ye){var Se=ye.split(":");Te=Se[0].trim().toLowerCase(),Ee=Se[1].trim(),ue[Te]=Ee})}function W(ge,ue){var Te,Ee;for(var ye in ge)typeof ge[ye]>"u"||(Te=ye.toLowerCase(),Ee=ge[ye],ue[Te]=Ee)}function Q(ge,ue){var Te={};for(var Ee in d.cssRules[ue])if(le(ge,Ee.split(" ")))for(var ye in d.cssRules[ue][Ee])Te[ye]=d.cssRules[ue][Ee][ye];return Te}function le(ge,ue){var Te,Ee=!0;return Te=fe(ge,ue.pop()),Te&&ue.length&&(Ee=G(ge,ue)),Te&&Ee&&ue.length===0}function G(ge,ue){for(var Te,Ee=!0;ge.parentNode&&ge.parentNode.nodeType===1&&ue.length;)Ee&&(Te=ue.pop()),ge=ge.parentNode,Ee=fe(ge,Te);return ue.length===0}function fe(ge,ue){var Te=ge.nodeName,Ee=ge.getAttribute("class"),ye=ge.getAttribute("id"),Se,Fe;if(Se=new RegExp("^"+Te,"i"),ue=ue.replace(Se,""),ye&&ue.length&&(Se=new RegExp("#"+ye+"(?![a-zA-Z\\-]+)","i"),ue=ue.replace(Se,"")),Ee&&ue.length)for(Ee=Ee.split(" "),Fe=Ee.length;Fe--;)Se=new RegExp("\\."+Ee[Fe]+"(?![a-zA-Z\\-]+)","i"),ue=ue.replace(Se,"");return ue.length===0}function ie(ge,ue){var Te;if(ge.getElementById&&(Te=ge.getElementById(ue)),Te)return Te;var Ee,ye,Se,Fe=ge.getElementsByTagName("*");for(ye=0,Se=Fe.length;ye<Se;ye++)if(Ee=Fe[ye],ue===Ee.getAttribute("id"))return Ee}function he(ge){for(var ue=U(ge,["use","svg:use"]),Te=0;ue.length&&Te<ue.length;){var Ee=ue[Te],ye=Ee.getAttribute("xlink:href")||Ee.getAttribute("href");if(ye===null)return;var Se=ye.substr(1),Fe=Ee.getAttribute("x")||0,Ve=Ee.getAttribute("y")||0,ke=ie(ge,Se).cloneNode(!0),Pe=(ke.getAttribute("transform")||"")+" translate("+Fe+", "+Ve+")",Re,Ye=ue.length,Ke,ot,nt,mt,Ut=d.svgNS;if(K(ke),/^svg$/i.test(ke.nodeName)){var Ot=ke.ownerDocument.createElementNS(Ut,"g");for(ot=0,nt=ke.attributes,mt=nt.length;ot<mt;ot++)Ke=nt.item(ot),Ot.setAttributeNS(Ut,Ke.nodeName,Ke.nodeValue);for(;ke.firstChild;)Ot.appendChild(ke.firstChild);ke=Ot}for(ot=0,nt=Ee.attributes,mt=nt.length;ot<mt;ot++)Ke=nt.item(ot),!(Ke.nodeName==="x"||Ke.nodeName==="y"||Ke.nodeName==="xlink:href"||Ke.nodeName==="href")&&(Ke.nodeName==="transform"?Pe=Ke.nodeValue+" "+Pe:ke.setAttribute(Ke.nodeName,Ke.nodeValue));ke.setAttribute("transform",Pe),ke.setAttribute("instantiated_by_use","1"),ke.removeAttribute("id"),Re=Ee.parentNode,Re.replaceChild(ke,Ee),ue.length===Ye&&Te++}}var Y=new RegExp("^\\s*("+d.reNum+"+)\\s*,?\\s*("+d.reNum+"+)\\s*,?\\s*("+d.reNum+"+)\\s*,?\\s*("+d.reNum+"+)\\s*$");function K(ge){if(!d.svgViewBoxElementsRegEx.test(ge.nodeName))return{};var ue=ge.getAttribute("viewBox"),Te=1,Ee=1,ye=0,Se=0,Fe,Ve,ke,Pe,Re=ge.getAttribute("width"),Ye=ge.getAttribute("height"),Ke=ge.getAttribute("x")||0,ot=ge.getAttribute("y")||0,nt=ge.getAttribute("preserveAspectRatio")||"",mt=!ue||!(ue=ue.match(Y)),Ut=!Re||!Ye||Re==="100%"||Ye==="100%",Ot=mt&&Ut,wt={},Kt="",_t=0,Jt=0;if(wt.width=0,wt.height=0,wt.toBeParsed=Ot,mt&&(Ke||ot)&&ge.parentNode&&ge.parentNode.nodeName!=="#document"&&(Kt=" translate("+x(Ke)+" "+x(ot)+") ",ke=(ge.getAttribute("transform")||"")+Kt,ge.setAttribute("transform",ke),ge.removeAttribute("x"),ge.removeAttribute("y")),Ot)return wt;if(mt)return wt.width=x(Re),wt.height=x(Ye),wt;if(ye=-parseFloat(ue[1]),Se=-parseFloat(ue[2]),Fe=parseFloat(ue[3]),Ve=parseFloat(ue[4]),wt.minX=ye,wt.minY=Se,wt.viewBoxWidth=Fe,wt.viewBoxHeight=Ve,Ut?(wt.width=Fe,wt.height=Ve):(wt.width=x(Re),wt.height=x(Ye),Te=wt.width/Fe,Ee=wt.height/Ve),nt=d.util.parsePreserveAspectRatioAttribute(nt),nt.alignX!=="none"&&(nt.meetOrSlice==="meet"&&(Ee=Te=Te>Ee?Ee:Te),nt.meetOrSlice==="slice"&&(Ee=Te=Te>Ee?Te:Ee),_t=wt.width-Fe*Te,Jt=wt.height-Ve*Te,nt.alignX==="Mid"&&(_t/=2),nt.alignY==="Mid"&&(Jt/=2),nt.alignX==="Min"&&(_t=0),nt.alignY==="Min"&&(Jt=0)),Te===1&&Ee===1&&ye===0&&Se===0&&Ke===0&&ot===0)return wt;if((Ke||ot)&&ge.parentNode.nodeName!=="#document"&&(Kt=" translate("+x(Ke)+" "+x(ot)+") "),ke=Kt+" matrix("+Te+" 0 0 "+Ee+" "+(ye*Te+_t)+" "+(Se*Ee+Jt)+") ",ge.nodeName==="svg"){for(Pe=ge.ownerDocument.createElementNS(d.svgNS,"g");ge.firstChild;)Pe.appendChild(ge.firstChild);ge.appendChild(Pe)}else Pe=ge,Pe.removeAttribute("x"),Pe.removeAttribute("y"),ke=Pe.getAttribute("transform")+ke;return Pe.setAttribute("transform",ke),wt}function oe(ge,ue){for(;ge&&(ge=ge.parentNode);)if(ge.nodeName&&ue.test(ge.nodeName.replace("svg:",""))&&!ge.getAttribute("instantiated_by_use"))return!0;return!1}d.parseSVGDocument=function(ge,ue,Te,Ee){if(ge){he(ge);var ye=d.Object.__uid++,Se,Fe,Ve=K(ge),ke=d.util.toArray(ge.getElementsByTagName("*"));if(Ve.crossOrigin=Ee&&Ee.crossOrigin,Ve.svgUid=ye,ke.length===0&&d.isLikelyNode){ke=ge.selectNodes('//*[name(.)!="svg"]');var Pe=[];for(Se=0,Fe=ke.length;Se<Fe;Se++)Pe[Se]=ke[Se];ke=Pe}var Re=ke.filter(function(Ke){return K(Ke),d.svgValidTagNamesRegEx.test(Ke.nodeName.replace("svg:",""))&&!oe(Ke,d.svgInvalidAncestorsRegEx)});if(!Re||Re&&!Re.length){ue&&ue([],{});return}var Ye={};ke.filter(function(Ke){return Ke.nodeName.replace("svg:","")==="clipPath"}).forEach(function(Ke){var ot=Ke.getAttribute("id");Ye[ot]=d.util.toArray(Ke.getElementsByTagName("*")).filter(function(nt){return d.svgValidTagNamesRegEx.test(nt.nodeName.replace("svg:",""))})}),d.gradientDefs[ye]=d.getGradientDefs(ge),d.cssRules[ye]=d.getCSSRules(ge),d.clipPaths[ye]=Ye,d.parseElements(Re,function(Ke,ot){ue&&(ue(Ke,Ve,ot,ke),delete d.gradientDefs[ye],delete d.cssRules[ye],delete d.clipPaths[ye])},v(Ve),Te,Ee)}};function pe(ge,ue){var Te=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],Ee="xlink:href",ye=ue.getAttribute(Ee).substr(1),Se=ie(ge,ye);if(Se&&Se.getAttribute(Ee)&&pe(ge,Se),Te.forEach(function(Ve){Se&&!ue.hasAttribute(Ve)&&Se.hasAttribute(Ve)&&ue.setAttribute(Ve,Se.getAttribute(Ve))}),!ue.children.length)for(var Fe=Se.cloneNode(!0);Fe.firstChild;)ue.appendChild(Fe.firstChild);ue.removeAttribute(Ee)}var ve=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+d.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+d.reNum+"))?\\s+(.*)");A(d,{parseFontDeclaration:function(ge,ue){var Te=ge.match(ve);if(Te){var Ee=Te[1],ye=Te[3],Se=Te[4],Fe=Te[5],Ve=Te[6];Ee&&(ue.fontStyle=Ee),ye&&(ue.fontWeight=isNaN(parseFloat(ye))?ye:parseFloat(ye)),Se&&(ue.fontSize=x(Se)),Ve&&(ue.fontFamily=Ve),Fe&&(ue.lineHeight=Fe==="normal"?1:Fe)}},getGradientDefs:function(ge){var ue=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],Te=U(ge,ue),Ee,ye=0,Se={};for(ye=Te.length;ye--;)Ee=Te[ye],Ee.getAttribute("xlink:href")&&pe(ge,Ee),Se[Ee.getAttribute("id")]=Ee;return Se},parseAttributes:function(ge,ue,Te){if(ge){var Ee,ye={},Se,Fe;typeof Te>"u"&&(Te=ge.getAttribute("svgUid")),ge.parentNode&&d.svgValidParentsRegEx.test(ge.parentNode.nodeName)&&(ye=d.parseAttributes(ge.parentNode,ue,Te));var Ve=ue.reduce(function(nt,mt){return Ee=ge.getAttribute(mt),Ee&&(nt[mt]=Ee),nt},{}),ke=A(Q(ge,Te),d.parseStyleAttribute(ge));Ve=A(Ve,ke),ke[O]&&ge.setAttribute(O,ke[O]),Se=Fe=ye.fontSize||d.Text.DEFAULT_SVG_FONT_SIZE,Ve[B]&&(Ve[B]=Se=x(Ve[B],Fe));var Pe,Re,Ye={};for(var Ke in Ve)Pe=I(Ke),Re=F(Pe,Ve[Ke],ye,Se),Ye[Pe]=Re;Ye&&Ye.font&&d.parseFontDeclaration(Ye.font,Ye);var ot=A(ye,Ye);return d.svgValidParentsRegEx.test(ge.nodeName)?ot:R(ot)}},parseElements:function(ge,ue,Te,Ee,ye){new d.ElementsParser(ge,ue,Te,Ee,ye).parse()},parseStyleAttribute:function(ge){var ue={},Te=ge.getAttribute("style");return Te&&(typeof Te=="string"?V(Te,ue):W(Te,ue)),ue},parsePointsAttribute:function(ge){if(!ge)return null;ge=ge.replace(/,/g," ").trim(),ge=ge.split(/\s+/);var ue=[],Te,Ee;for(Te=0,Ee=ge.length;Te<Ee;Te+=2)ue.push({x:parseFloat(ge[Te]),y:parseFloat(ge[Te+1])});return ue},getCSSRules:function(ge){var ue=ge.getElementsByTagName("style"),Te,Ee,ye={},Se;for(Te=0,Ee=ue.length;Te<Ee;Te++){var Fe=ue[Te].textContent;Fe=Fe.replace(/\/\*[\s\S]*?\*\//g,""),Fe.trim()!==""&&(Se=Fe.match(/[^{]*\{[\s\S]*?\}/g),Se=Se.map(function(Ve){return Ve.trim()}),Se.forEach(function(Ve){var ke=Ve.match(/([\s\S]*?)\s*\{([^}]*)\}/),Pe={},Re=ke[2].trim(),Ye=Re.replace(/;$/,"").split(/\s*;\s*/);for(Te=0,Ee=Ye.length;Te<Ee;Te++){var Ke=Ye[Te].split(/\s*:\s*/),ot=Ke[0],nt=Ke[1];Pe[ot]=nt}Ve=ke[1],Ve.split(",").forEach(function(mt){mt=mt.replace(/^svg/i,"").trim(),mt!==""&&(ye[mt]?d.util.object.extend(ye[mt],Pe):ye[mt]=d.util.object.clone(Pe))})}))}return ye},loadSVGFromURL:function(ge,ue,Te,Ee){ge=ge.replace(/^\n\s*/,"").trim(),new d.util.request(ge,{method:"get",onComplete:ye});function ye(Se){var Fe=Se.responseXML;if(!Fe||!Fe.documentElement)return ue&&ue(null),!1;d.parseSVGDocument(Fe.documentElement,function(Ve,ke,Pe,Re){ue&&ue(Ve,ke,Pe,Re)},Te,Ee)}},loadSVGFromString:function(ge,ue,Te,Ee){var ye=new d.window.DOMParser,Se=ye.parseFromString(ge.trim(),"text/xml");d.parseSVGDocument(Se.documentElement,function(Fe,Ve,ke,Pe){ue(Fe,Ve,ke,Pe)},Te,Ee)}})})(f),l.ElementsParser=function(h,d,A,v,w,x){this.elements=h,this.callback=d,this.options=A,this.reviver=v,this.svgUid=A&&A.svgUid||0,this.parsingOptions=w,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=x},(function(h){h.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},h.createObjects=function(){var d=this;this.elements.forEach(function(A,v){A.setAttribute("svgUid",d.svgUid),d.createObject(A,v)})},h.findTag=function(d){return l[l.util.string.capitalize(d.tagName.replace("svg:",""))]},h.createObject=function(d,A){var v=this.findTag(d);if(v&&v.fromElement)try{v.fromElement(d,this.createCallback(A,d),this.options)}catch(w){l.log(w)}else this.checkIfDone()},h.createCallback=function(d,A){var v=this;return function(w){var x;v.resolveGradient(w,A,"fill"),v.resolveGradient(w,A,"stroke"),w instanceof l.Image&&w._originalElement&&(x=w.parsePreserveAspectRatioAttribute(A)),w._removeTransformMatrix(x),v.resolveClipPath(w,A),v.reviver&&v.reviver(A,w),v.instances[d]=w,v.checkIfDone()}},h.extractPropertyDefinition=function(d,A,v){var w=d[A],x=this.regexUrl;if(x.test(w)){x.lastIndex=0;var C=x.exec(w)[1];return x.lastIndex=0,l[v][this.svgUid][C]}},h.resolveGradient=function(d,A,v){var w=this.extractPropertyDefinition(d,v,"gradientDefs");if(w){var x=A.getAttribute(v+"-opacity"),C=l.Gradient.fromElement(w,d,x,this.options);d.set(v,C)}},h.createClipPathCallback=function(d,A){return function(v){v._removeTransformMatrix(),v.fillRule=v.clipRule,A.push(v)}},h.resolveClipPath=function(d,A){var v=this.extractPropertyDefinition(d,"clipPath","clipPaths"),w,x,C,k,T,S;if(v){k=[],C=l.util.invertTransform(d.calcTransformMatrix());for(var M=v[0].parentNode,P=A;P.parentNode&&P.getAttribute("clip-path")!==d.clipPath;)P=P.parentNode;P.parentNode.appendChild(M);for(var N=0;N<v.length;N++)w=v[N],x=this.findTag(w),x.fromElement(w,this.createClipPathCallback(d,k),this.options);k.length===1?v=k[0]:v=new l.Group(k),T=l.util.multiplyTransformMatrices(C,v.calcTransformMatrix()),v.clipPath&&this.resolveClipPath(v,P);var S=l.util.qrDecompose(T);v.flipX=!1,v.flipY=!1,v.set("scaleX",S.scaleX),v.set("scaleY",S.scaleY),v.angle=S.angle,v.skewX=S.skewX,v.skewY=0,v.setPositionByOrigin({x:S.translateX,y:S.translateY},"center","center"),d.clipPath=v}else delete d.clipPath},h.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(d){return d!=null}),this.callback(this.instances,this.elements))}})(l.ElementsParser.prototype),(function(h){var d=h.fabric||(h.fabric={});if(d.Point){d.warn("fabric.Point is already defined");return}d.Point=A;function A(v,w){this.x=v,this.y=w}A.prototype={type:"point",constructor:A,add:function(v){return new A(this.x+v.x,this.y+v.y)},addEquals:function(v){return this.x+=v.x,this.y+=v.y,this},scalarAdd:function(v){return new A(this.x+v,this.y+v)},scalarAddEquals:function(v){return this.x+=v,this.y+=v,this},subtract:function(v){return new A(this.x-v.x,this.y-v.y)},subtractEquals:function(v){return this.x-=v.x,this.y-=v.y,this},scalarSubtract:function(v){return new A(this.x-v,this.y-v)},scalarSubtractEquals:function(v){return this.x-=v,this.y-=v,this},multiply:function(v){return new A(this.x*v,this.y*v)},multiplyEquals:function(v){return this.x*=v,this.y*=v,this},divide:function(v){return new A(this.x/v,this.y/v)},divideEquals:function(v){return this.x/=v,this.y/=v,this},eq:function(v){return this.x===v.x&&this.y===v.y},lt:function(v){return this.x<v.x&&this.y<v.y},lte:function(v){return this.x<=v.x&&this.y<=v.y},gt:function(v){return this.x>v.x&&this.y>v.y},gte:function(v){return this.x>=v.x&&this.y>=v.y},lerp:function(v,w){return typeof w>"u"&&(w=.5),w=Math.max(Math.min(1,w),0),new A(this.x+(v.x-this.x)*w,this.y+(v.y-this.y)*w)},distanceFrom:function(v){var w=this.x-v.x,x=this.y-v.y;return Math.sqrt(w*w+x*x)},midPointFrom:function(v){return this.lerp(v)},min:function(v){return new A(Math.min(this.x,v.x),Math.min(this.y,v.y))},max:function(v){return new A(Math.max(this.x,v.x),Math.max(this.y,v.y))},toString:function(){return this.x+","+this.y},setXY:function(v,w){return this.x=v,this.y=w,this},setX:function(v){return this.x=v,this},setY:function(v){return this.y=v,this},setFromPoint:function(v){return this.x=v.x,this.y=v.y,this},swap:function(v){var w=this.x,x=this.y;this.x=v.x,this.y=v.y,v.x=w,v.y=x},clone:function(){return new A(this.x,this.y)}}})(f),(function(h){var d=h.fabric||(h.fabric={});if(d.Intersection){d.warn("fabric.Intersection is already defined");return}function A(v){this.status=v,this.points=[]}d.Intersection=A,d.Intersection.prototype={constructor:A,appendPoint:function(v){return this.points.push(v),this},appendPoints:function(v){return this.points=this.points.concat(v),this}},d.Intersection.intersectLineLine=function(v,w,x,C){var k,T=(C.x-x.x)*(v.y-x.y)-(C.y-x.y)*(v.x-x.x),S=(w.x-v.x)*(v.y-x.y)-(w.y-v.y)*(v.x-x.x),M=(C.y-x.y)*(w.x-v.x)-(C.x-x.x)*(w.y-v.y);if(M!==0){var P=T/M,N=S/M;0<=P&&P<=1&&0<=N&&N<=1?(k=new A("Intersection"),k.appendPoint(new d.Point(v.x+P*(w.x-v.x),v.y+P*(w.y-v.y)))):k=new A}else T===0||S===0?k=new A("Coincident"):k=new A("Parallel");return k},d.Intersection.intersectLinePolygon=function(v,w,x){var C=new A,k=x.length,T,S,M,P;for(P=0;P<k;P++)T=x[P],S=x[(P+1)%k],M=A.intersectLineLine(v,w,T,S),C.appendPoints(M.points);return C.points.length>0&&(C.status="Intersection"),C},d.Intersection.intersectPolygonPolygon=function(v,w){var x=new A,C=v.length,k;for(k=0;k<C;k++){var T=v[k],S=v[(k+1)%C],M=A.intersectLinePolygon(T,S,w);x.appendPoints(M.points)}return x.points.length>0&&(x.status="Intersection"),x},d.Intersection.intersectPolygonRectangle=function(v,w,x){var C=w.min(x),k=w.max(x),T=new d.Point(k.x,C.y),S=new d.Point(C.x,k.y),M=A.intersectLinePolygon(C,T,v),P=A.intersectLinePolygon(T,k,v),N=A.intersectLinePolygon(k,S,v),B=A.intersectLinePolygon(S,C,v),O=new A;return O.appendPoints(M.points),O.appendPoints(P.points),O.appendPoints(N.points),O.appendPoints(B.points),O.points.length>0&&(O.status="Intersection"),O}})(f),(function(h){var d=h.fabric||(h.fabric={});if(d.Color){d.warn("fabric.Color is already defined.");return}function A(w){w?this._tryParsingColor(w):this.setSource([0,0,0,1])}d.Color=A,d.Color.prototype={_tryParsingColor:function(w){var x;w in A.colorNameMap&&(w=A.colorNameMap[w]),w==="transparent"&&(x=[255,255,255,0]),x||(x=A.sourceFromHex(w)),x||(x=A.sourceFromRgb(w)),x||(x=A.sourceFromHsl(w)),x||(x=[0,0,0,1]),x&&this.setSource(x)},_rgbToHsl:function(w,x,C){w/=255,x/=255,C/=255;var k,T,S,M=d.util.array.max([w,x,C]),P=d.util.array.min([w,x,C]);if(S=(M+P)/2,M===P)k=T=0;else{var N=M-P;switch(T=S>.5?N/(2-M-P):N/(M+P),M){case w:k=(x-C)/N+(x<C?6:0);break;case x:k=(C-w)/N+2;break;case C:k=(w-x)/N+4;break}k/=6}return[Math.round(k*360),Math.round(T*100),Math.round(S*100)]},getSource:function(){return this._source},setSource:function(w){this._source=w},toRgb:function(){var w=this.getSource();return"rgb("+w[0]+","+w[1]+","+w[2]+")"},toRgba:function(){var w=this.getSource();return"rgba("+w[0]+","+w[1]+","+w[2]+","+w[3]+")"},toHsl:function(){var w=this.getSource(),x=this._rgbToHsl(w[0],w[1],w[2]);return"hsl("+x[0]+","+x[1]+"%,"+x[2]+"%)"},toHsla:function(){var w=this.getSource(),x=this._rgbToHsl(w[0],w[1],w[2]);return"hsla("+x[0]+","+x[1]+"%,"+x[2]+"%,"+w[3]+")"},toHex:function(){var w=this.getSource(),x,C,k;return x=w[0].toString(16),x=x.length===1?"0"+x:x,C=w[1].toString(16),C=C.length===1?"0"+C:C,k=w[2].toString(16),k=k.length===1?"0"+k:k,x.toUpperCase()+C.toUpperCase()+k.toUpperCase()},toHexa:function(){var w=this.getSource(),x;return x=Math.round(w[3]*255),x=x.toString(16),x=x.length===1?"0"+x:x,this.toHex()+x.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(w){var x=this.getSource();return x[3]=w,this.setSource(x),this},toGrayscale:function(){var w=this.getSource(),x=parseInt((w[0]*.3+w[1]*.59+w[2]*.11).toFixed(0),10),C=w[3];return this.setSource([x,x,x,C]),this},toBlackWhite:function(w){var x=this.getSource(),C=(x[0]*.3+x[1]*.59+x[2]*.11).toFixed(0),k=x[3];return w=w||127,C=Number(C)<Number(w)?0:255,this.setSource([C,C,C,k]),this},overlayWith:function(w){w instanceof A||(w=new A(w));var x=[],C=this.getAlpha(),k=.5,T=this.getSource(),S=w.getSource(),M;for(M=0;M<3;M++)x.push(Math.round(T[M]*(1-k)+S[M]*k));return x[3]=C,this.setSource(x),this}},d.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,d.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,d.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,d.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",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:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",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:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function v(w,x,C){return C<0&&(C+=1),C>1&&(C-=1),C<.16666666666666666?w+(x-w)*6*C:C<.5?x:C<.6666666666666666?w+(x-w)*(.6666666666666666-C)*6:w}d.Color.fromRgb=function(w){return A.fromSource(A.sourceFromRgb(w))},d.Color.sourceFromRgb=function(w){var x=w.match(A.reRGBa);if(x){var C=parseInt(x[1],10)/(/%$/.test(x[1])?100:1)*(/%$/.test(x[1])?255:1),k=parseInt(x[2],10)/(/%$/.test(x[2])?100:1)*(/%$/.test(x[2])?255:1),T=parseInt(x[3],10)/(/%$/.test(x[3])?100:1)*(/%$/.test(x[3])?255:1);return[parseInt(C,10),parseInt(k,10),parseInt(T,10),x[4]?parseFloat(x[4]):1]}},d.Color.fromRgba=A.fromRgb,d.Color.fromHsl=function(w){return A.fromSource(A.sourceFromHsl(w))},d.Color.sourceFromHsl=function(w){var x=w.match(A.reHSLa);if(x){var C=(parseFloat(x[1])%360+360)%360/360,k=parseFloat(x[2])/(/%$/.test(x[2])?100:1),T=parseFloat(x[3])/(/%$/.test(x[3])?100:1),S,M,P;if(k===0)S=M=P=T;else{var N=T<=.5?T*(k+1):T+k-T*k,B=T*2-N;S=v(B,N,C+.3333333333333333),M=v(B,N,C),P=v(B,N,C-.3333333333333333)}return[Math.round(S*255),Math.round(M*255),Math.round(P*255),x[4]?parseFloat(x[4]):1]}},d.Color.fromHsla=A.fromHsl,d.Color.fromHex=function(w){return A.fromSource(A.sourceFromHex(w))},d.Color.sourceFromHex=function(w){if(w.match(A.reHex)){var x=w.slice(w.indexOf("#")+1),C=x.length===3||x.length===4,k=x.length===8||x.length===4,T=C?x.charAt(0)+x.charAt(0):x.substring(0,2),S=C?x.charAt(1)+x.charAt(1):x.substring(2,4),M=C?x.charAt(2)+x.charAt(2):x.substring(4,6),P=k?C?x.charAt(3)+x.charAt(3):x.substring(6,8):"FF";return[parseInt(T,16),parseInt(S,16),parseInt(M,16),parseFloat((parseInt(P,16)/255).toFixed(2))]}},d.Color.fromSource=function(w){var x=new A;return x.setSource(w),x}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=["e","se","s","sw","w","nw","n","ne","e"],v=["ns","nesw","ew","nwse"],w={},x="left",C="top",k="right",T="bottom",S="center",M={top:T,bottom:C,left:k,right:x,center:S},P=d.util.radiansToDegrees,N=Math.sign||function(Pe){return(Pe>0)-(Pe<0)||+Pe};function B(Pe,Re){var Ye=Pe.angle+P(Math.atan2(Re.y,Re.x))+360;return Math.round(Ye%360/45)}function O(Pe,Re){var Ye=Re.transform.target,Ke=Ye.canvas,ot=d.util.object.clone(Re);ot.target=Ye,Ke&&Ke.fire("object:"+Pe,ot),Ye.fire(Pe,Re)}function I(Pe,Re){var Ye=Re.canvas,Ke=Ye.uniScaleKey,ot=Pe[Ke];return Ye.uniformScaling&&!ot||!Ye.uniformScaling&&ot}function F(Pe){return Pe.originX===S&&Pe.originY===S}function L(Pe,Re,Ye){var Ke=Pe.lockScalingX,ot=Pe.lockScalingY;return!!(Ke&&ot||!Re&&(Ke||ot)&&Ye||Ke&&Re==="x"||ot&&Re==="y")}function R(Pe,Re,Ye){var Ke="not-allowed",ot=I(Pe,Ye),nt="";if(Re.x!==0&&Re.y===0?nt="x":Re.x===0&&Re.y!==0&&(nt="y"),L(Ye,nt,ot))return Ke;var mt=B(Ye,Re);return A[mt]+"-resize"}function U(Pe,Re,Ye){var Ke="not-allowed";if(Re.x!==0&&Ye.lockSkewingY||Re.y!==0&&Ye.lockSkewingX)return Ke;var ot=B(Ye,Re)%4;return v[ot]+"-resize"}function V(Pe,Re,Ye){return Pe[Ye.canvas.altActionKey]?w.skewCursorStyleHandler(Pe,Re,Ye):w.scaleCursorStyleHandler(Pe,Re,Ye)}function W(Pe,Re,Ye){var Ke=Pe[Ye.canvas.altActionKey];if(Re.x===0)return Ke?"skewX":"scaleY";if(Re.y===0)return Ke?"skewY":"scaleX"}function Q(Pe,Re,Ye){return Ye.lockRotation?"not-allowed":Re.cursorStyle}function le(Pe,Re,Ye,Ke){return{e:Pe,transform:Re,pointer:{x:Ye,y:Ke}}}function G(Pe){return function(Re,Ye,Ke,ot){var nt=Ye.target,mt=nt.getCenterPoint(),Ut=nt.translateToOriginPoint(mt,Ye.originX,Ye.originY),Ot=Pe(Re,Ye,Ke,ot);return nt.setPositionByOrigin(Ut,Ye.originX,Ye.originY),Ot}}function fe(Pe,Re){return function(Ye,Ke,ot,nt){var mt=Re(Ye,Ke,ot,nt);return mt&&O(Pe,le(Ye,Ke,ot,nt)),mt}}function ie(Pe,Re,Ye,Ke,ot){var nt=Pe.target,mt=nt.controls[Pe.corner],Ut=nt.canvas.getZoom(),Ot=nt.padding/Ut,wt=nt.toLocalPoint(new d.Point(Ke,ot),Re,Ye);return wt.x>=Ot&&(wt.x-=Ot),wt.x<=-Ot&&(wt.x+=Ot),wt.y>=Ot&&(wt.y-=Ot),wt.y<=Ot&&(wt.y+=Ot),wt.x-=mt.offsetX,wt.y-=mt.offsetY,wt}function he(Pe){return Pe.flipX!==Pe.flipY}function Y(Pe,Re,Ye,Ke,ot){if(Pe[Re]!==0){var nt=Pe._getTransformedDimensions()[Ke],mt=ot/nt*Pe[Ye];Pe.set(Ye,mt)}}function K(Pe,Re,Ye,Ke){var ot=Re.target,nt=ot._getTransformedDimensions(0,ot.skewY),mt=ie(Re,Re.originX,Re.originY,Ye,Ke),Ut=Math.abs(mt.x*2)-nt.x,Ot=ot.skewX,wt;Ut<2?wt=0:(wt=P(Math.atan2(Ut/ot.scaleX,nt.y/ot.scaleY)),Re.originX===x&&Re.originY===T&&(wt=-wt),Re.originX===k&&Re.originY===C&&(wt=-wt),he(ot)&&(wt=-wt));var Kt=Ot!==wt;if(Kt){var _t=ot._getTransformedDimensions().y;ot.set("skewX",wt),Y(ot,"skewY","scaleY","y",_t)}return Kt}function oe(Pe,Re,Ye,Ke){var ot=Re.target,nt=ot._getTransformedDimensions(ot.skewX,0),mt=ie(Re,Re.originX,Re.originY,Ye,Ke),Ut=Math.abs(mt.y*2)-nt.y,Ot=ot.skewY,wt;Ut<2?wt=0:(wt=P(Math.atan2(Ut/ot.scaleY,nt.x/ot.scaleX)),Re.originX===x&&Re.originY===T&&(wt=-wt),Re.originX===k&&Re.originY===C&&(wt=-wt),he(ot)&&(wt=-wt));var Kt=Ot!==wt;if(Kt){var _t=ot._getTransformedDimensions().x;ot.set("skewY",wt),Y(ot,"skewX","scaleX","x",_t)}return Kt}function pe(Pe,Re,Ye,Ke){var ot=Re.target,nt=ot.skewX,mt,Ut=Re.originY;if(ot.lockSkewingX)return!1;if(nt===0){var Ot=ie(Re,S,S,Ye,Ke);Ot.x>0?mt=x:mt=k}else nt>0&&(mt=Ut===C?x:k),nt<0&&(mt=Ut===C?k:x),he(ot)&&(mt=mt===x?k:x);Re.originX=mt;var wt=fe("skewing",G(K));return wt(Pe,Re,Ye,Ke)}function ve(Pe,Re,Ye,Ke){var ot=Re.target,nt=ot.skewY,mt,Ut=Re.originX;if(ot.lockSkewingY)return!1;if(nt===0){var Ot=ie(Re,S,S,Ye,Ke);Ot.y>0?mt=C:mt=T}else nt>0&&(mt=Ut===x?C:T),nt<0&&(mt=Ut===x?T:C),he(ot)&&(mt=mt===C?T:C);Re.originY=mt;var wt=fe("skewing",G(oe));return wt(Pe,Re,Ye,Ke)}function ge(Pe,Re,Ye,Ke){var ot=Re,nt=ot.target,mt=nt.translateToOriginPoint(nt.getCenterPoint(),ot.originX,ot.originY);if(nt.lockRotation)return!1;var Ut=Math.atan2(ot.ey-mt.y,ot.ex-mt.x),Ot=Math.atan2(Ke-mt.y,Ye-mt.x),wt=P(Ot-Ut+ot.theta),Kt=!0;if(nt.snapAngle>0){var _t=nt.snapAngle,Jt=nt.snapThreshold||_t,yr=Math.ceil(wt/_t)*_t,vr=Math.floor(wt/_t)*_t;Math.abs(wt-vr)<Jt?wt=vr:Math.abs(wt-yr)<Jt&&(wt=yr)}return wt<0&&(wt=360+wt),wt%=360,Kt=nt.angle!==wt,nt.angle=wt,Kt}function ue(Pe,Re,Ye,Ke,ot){ot=ot||{};var nt=Re.target,mt=nt.lockScalingX,Ut=nt.lockScalingY,Ot=ot.by,wt,Kt,_t,Jt,yr=I(Pe,nt),vr=L(nt,Ot,yr),Br,zr,mn=Re.gestureScale;if(vr)return!1;if(mn)Kt=Re.scaleX*mn,_t=Re.scaleY*mn;else{if(wt=ie(Re,Re.originX,Re.originY,Ye,Ke),Br=Ot!=="y"?N(wt.x):1,zr=Ot!=="x"?N(wt.y):1,Re.signX||(Re.signX=Br),Re.signY||(Re.signY=zr),nt.lockScalingFlip&&(Re.signX!==Br||Re.signY!==zr))return!1;if(Jt=nt._getTransformedDimensions(),yr&&!Ot){var jr=Math.abs(wt.x)+Math.abs(wt.y),Tn=Re.original,Lt=Math.abs(Jt.x*Tn.scaleX/nt.scaleX)+Math.abs(Jt.y*Tn.scaleY/nt.scaleY),Gt=jr/Lt;Kt=Tn.scaleX*Gt,_t=Tn.scaleY*Gt}else Kt=Math.abs(wt.x*nt.scaleX/Jt.x),_t=Math.abs(wt.y*nt.scaleY/Jt.y);F(Re)&&(Kt*=2,_t*=2),Re.signX!==Br&&Ot!=="y"&&(Re.originX=M[Re.originX],Kt*=-1,Re.signX=Br),Re.signY!==zr&&Ot!=="x"&&(Re.originY=M[Re.originY],_t*=-1,Re.signY=zr)}var $t=nt.scaleX,Sr=nt.scaleY;return Ot?(Ot==="x"&&nt.set("scaleX",Kt),Ot==="y"&&nt.set("scaleY",_t)):(!mt&&nt.set("scaleX",Kt),!Ut&&nt.set("scaleY",_t)),$t!==nt.scaleX||Sr!==nt.scaleY}function Te(Pe,Re,Ye,Ke){return ue(Pe,Re,Ye,Ke)}function Ee(Pe,Re,Ye,Ke){return ue(Pe,Re,Ye,Ke,{by:"x"})}function ye(Pe,Re,Ye,Ke){return ue(Pe,Re,Ye,Ke,{by:"y"})}function Se(Pe,Re,Ye,Ke){return Pe[Re.target.canvas.altActionKey]?w.skewHandlerX(Pe,Re,Ye,Ke):w.scalingY(Pe,Re,Ye,Ke)}function Fe(Pe,Re,Ye,Ke){return Pe[Re.target.canvas.altActionKey]?w.skewHandlerY(Pe,Re,Ye,Ke):w.scalingX(Pe,Re,Ye,Ke)}function Ve(Pe,Re,Ye,Ke){var ot=Re.target,nt=ie(Re,Re.originX,Re.originY,Ye,Ke),mt=ot.strokeWidth/(ot.strokeUniform?ot.scaleX:1),Ut=F(Re)?2:1,Ot=ot.width,wt=Math.abs(nt.x*Ut/ot.scaleX)-mt;return ot.set("width",Math.max(wt,0)),Ot!==wt}function ke(Pe,Re,Ye,Ke){var ot=Re.target,nt=Ye-Re.offsetX,mt=Ke-Re.offsetY,Ut=!ot.get("lockMovementX")&&ot.left!==nt,Ot=!ot.get("lockMovementY")&&ot.top!==mt;return Ut&&ot.set("left",nt),Ot&&ot.set("top",mt),(Ut||Ot)&&O("moving",le(Pe,Re,Ye,Ke)),Ut||Ot}w.scaleCursorStyleHandler=R,w.skewCursorStyleHandler=U,w.scaleSkewCursorStyleHandler=V,w.rotationWithSnapping=fe("rotating",G(ge)),w.scalingEqually=fe("scaling",G(Te)),w.scalingX=fe("scaling",G(Ee)),w.scalingY=fe("scaling",G(ye)),w.scalingYOrSkewingX=Se,w.scalingXOrSkewingY=Fe,w.changeWidth=fe("resizing",G(Ve)),w.skewHandlerX=pe,w.skewHandlerY=ve,w.dragHandler=ke,w.scaleOrSkewActionName=W,w.rotationStyleHandler=Q,w.fireEvent=O,w.wrapWithFixedAnchor=G,w.wrapWithFireEvent=fe,w.getLocalPoint=ie,d.controlsUtils=w})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.degreesToRadians,v=d.controlsUtils;function w(C,k,T,S,M){S=S||{};var P=this.sizeX||S.cornerSize||M.cornerSize,N=this.sizeY||S.cornerSize||M.cornerSize,B=typeof S.transparentCorners<"u"?S.transparentCorners:M.transparentCorners,O=B?"stroke":"fill",I=!B&&(S.cornerStrokeColor||M.cornerStrokeColor),F=k,L=T,R;C.save(),C.fillStyle=S.cornerColor||M.cornerColor,C.strokeStyle=S.cornerStrokeColor||M.cornerStrokeColor,P>N?(R=P,C.scale(1,N/P),L=T*P/N):N>P?(R=N,C.scale(P/N,1),F=k*N/P):R=P,C.lineWidth=1,C.beginPath(),C.arc(F,L,R/2,0,2*Math.PI,!1),C[O](),I&&C.stroke(),C.restore()}function x(C,k,T,S,M){S=S||{};var P=this.sizeX||S.cornerSize||M.cornerSize,N=this.sizeY||S.cornerSize||M.cornerSize,B=typeof S.transparentCorners<"u"?S.transparentCorners:M.transparentCorners,O=B?"stroke":"fill",I=!B&&(S.cornerStrokeColor||M.cornerStrokeColor),F=P/2,L=N/2;C.save(),C.fillStyle=S.cornerColor||M.cornerColor,C.strokeStyle=S.cornerStrokeColor||M.cornerStrokeColor,C.lineWidth=1,C.translate(k,T),C.rotate(A(M.angle)),C[O+"Rect"](-F,-L,P,N),I&&C.strokeRect(-F,-L,P,N),C.restore()}v.renderCircleControl=w,v.renderSquareControl=x})(f),(function(h){var d=h.fabric||(h.fabric={});function A(v){for(var w in v)this[w]=v[w]}d.Control=A,d.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(v,w){return w.cursorStyle},getActionName:function(v,w){return w.actionName},getVisibility:function(v,w){var x=v._controlsVisibility;return x&&typeof x[w]<"u"?x[w]:this.visible},setVisibility:function(v){this.visible=v},positionHandler:function(v,w){var x=d.util.transformPoint({x:this.x*v.x+this.offsetX,y:this.y*v.y+this.offsetY},w);return x},calcCornerCoords:function(v,w,x,C,k){var T,S,M,P,N=k?this.touchSizeX:this.sizeX,B=k?this.touchSizeY:this.sizeY;if(N&&B&&N!==B){var O=Math.atan2(B,N),I=Math.sqrt(N*N+B*B)/2,F=O-d.util.degreesToRadians(v),L=Math.PI/2-O-d.util.degreesToRadians(v);T=I*d.util.cos(F),S=I*d.util.sin(F),M=I*d.util.cos(L),P=I*d.util.sin(L)}else{var R=N&&B?N:w;I=R*.7071067812;var F=d.util.degreesToRadians(45-v);T=M=I*d.util.cos(F),S=P=I*d.util.sin(F)}return{tl:{x:x-P,y:C-M},tr:{x:x+T,y:C-S},bl:{x:x-T,y:C+S},br:{x:x+P,y:C+M}}},render:function(v,w,x,C,k){switch(C=C||{},C.cornerStyle||k.cornerStyle){case"circle":d.controlsUtils.renderCircleControl.call(this,v,w,x,C,k);break;default:d.controlsUtils.renderSquareControl.call(this,v,w,x,C,k)}}}})(f),(function(){function h(x,C){var k=x.getAttribute("style"),T=x.getAttribute("offset")||0,S,M,P,N;if(T=parseFloat(T)/(/%$/.test(T)?100:1),T=T<0?0:T>1?1:T,k){var B=k.split(/\s*;\s*/);for(B[B.length-1]===""&&B.pop(),N=B.length;N--;){var O=B[N].split(/\s*:\s*/),I=O[0].trim(),F=O[1].trim();I==="stop-color"?S=F:I==="stop-opacity"&&(P=F)}}return S||(S=x.getAttribute("stop-color")||"rgb(0,0,0)"),P||(P=x.getAttribute("stop-opacity")),S=new l.Color(S),M=S.getAlpha(),P=isNaN(parseFloat(P))?1:parseFloat(P),P*=M*C,{offset:T,color:S.toRgb(),opacity:P}}function d(x){return{x1:x.getAttribute("x1")||0,y1:x.getAttribute("y1")||0,x2:x.getAttribute("x2")||"100%",y2:x.getAttribute("y2")||0}}function A(x){return{x1:x.getAttribute("fx")||x.getAttribute("cx")||"50%",y1:x.getAttribute("fy")||x.getAttribute("cy")||"50%",r1:0,x2:x.getAttribute("cx")||"50%",y2:x.getAttribute("cy")||"50%",r2:x.getAttribute("r")||"50%"}}var v=l.util.object.clone;l.Gradient=l.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(x){x||(x={}),x.coords||(x.coords={});var C,k=this;Object.keys(x).forEach(function(T){k[T]=x[T]}),this.id?this.id+="_"+l.Object.__uid++:this.id=l.Object.__uid++,C={x1:x.coords.x1||0,y1:x.coords.y1||0,x2:x.coords.x2||0,y2:x.coords.y2||0},this.type==="radial"&&(C.r1=x.coords.r1||0,C.r2=x.coords.r2||0),this.coords=C,this.colorStops=x.colorStops.slice()},addColorStop:function(x){for(var C in x){var k=new l.Color(x[C]);this.colorStops.push({offset:parseFloat(C),color:k.toRgb(),opacity:k.getAlpha()})}return this},toObject:function(x){var C={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return l.util.populateWithProperties(this,C,x),C},toSVG:function(x,M){var k=v(this.coords,!0),T,S,M=M||{},P,N,B=v(this.colorStops,!0),O=k.r1>k.r2,I=this.gradientTransform?this.gradientTransform.concat():l.iMatrix.concat(),F=-this.offsetX,L=-this.offsetY,R=!!M.additionalTransform,U=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(B.sort(function(G,fe){return G.offset-fe.offset}),U==="objectBoundingBox"?(F/=x.width,L/=x.height):(F+=x.width/2,L+=x.height/2),x.type==="path"&&this.gradientUnits!=="percentage"&&(F-=x.pathOffset.x,L-=x.pathOffset.y),I[4]-=F,I[5]-=L,N='id="SVGID_'+this.id+'" gradientUnits="'+U+'"',N+=' gradientTransform="'+(R?M.additionalTransform+" ":"")+l.util.matrixToSVG(I)+'" ',this.type==="linear"?P=["<linearGradient ",N,' x1="',k.x1,'" y1="',k.y1,'" x2="',k.x2,'" y2="',k.y2,`">
`]:this.type==="radial"&&(P=["<radialGradient ",N,' cx="',O?k.x1:k.x2,'" cy="',O?k.y1:k.y2,'" r="',O?k.r1:k.r2,'" fx="',O?k.x2:k.x1,'" fy="',O?k.y2:k.y1,`">
`]),this.type==="radial"){if(O)for(B=B.concat(),B.reverse(),T=0,S=B.length;T<S;T++)B[T].offset=1-B[T].offset;var V=Math.min(k.r1,k.r2);if(V>0){var W=Math.max(k.r1,k.r2),Q=V/W;for(T=0,S=B.length;T<S;T++)B[T].offset+=Q*(1-B[T].offset)}}for(T=0,S=B.length;T<S;T++){var le=B[T];P.push("<stop ",'offset="',le.offset*100+"%",'" style="stop-color:',le.color,typeof le.opacity<"u"?";stop-opacity: "+le.opacity:";",`"/>
`)}return P.push(this.type==="linear"?`</linearGradient>
`:`</radialGradient>
`),P.join("")},toLive:function(x){var C,k=l.util.object.clone(this.coords),T,S;if(this.type){for(this.type==="linear"?C=x.createLinearGradient(k.x1,k.y1,k.x2,k.y2):this.type==="radial"&&(C=x.createRadialGradient(k.x1,k.y1,k.r1,k.x2,k.y2,k.r2)),T=0,S=this.colorStops.length;T<S;T++){var M=this.colorStops[T].color,P=this.colorStops[T].opacity,N=this.colorStops[T].offset;typeof P<"u"&&(M=new l.Color(M).setAlpha(P).toRgba()),C.addColorStop(N,M)}return C}}}),l.util.object.extend(l.Gradient,{fromElement:function(x,C,k,T){var S=parseFloat(k)/(/%$/.test(k)?100:1);S=S<0?0:S>1?1:S,isNaN(S)&&(S=1);var M=x.getElementsByTagName("stop"),P,N=x.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",B=x.getAttribute("gradientTransform")||"",O=[],I,F,L=0,R=0,U;for(x.nodeName==="linearGradient"||x.nodeName==="LINEARGRADIENT"?(P="linear",I=d(x)):(P="radial",I=A(x)),F=M.length;F--;)O.push(h(M[F],S));U=l.parseTransformAttribute(B),w(C,I,T,N),N==="pixels"&&(L=-C.left,R=-C.top);var V=new l.Gradient({id:x.getAttribute("id"),type:P,coords:I,colorStops:O,gradientUnits:N,gradientTransform:U,offsetX:L,offsetY:R});return V}});function w(x,C,k,T){var S,M;Object.keys(C).forEach(function(P){S=C[P],S==="Infinity"?M=1:S==="-Infinity"?M=0:(M=parseFloat(C[P],10),typeof S=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(S)&&(M*=.01,T==="pixels"&&((P==="x1"||P==="x2"||P==="r2")&&(M*=k.viewBoxWidth||k.width),(P==="y1"||P==="y2")&&(M*=k.viewBoxHeight||k.height)))),C[P]=M})}})(),(function(){var h=l.util.toFixed;l.Pattern=l.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(d,A){if(d||(d={}),this.id=l.Object.__uid++,this.setOptions(d),!d.source||d.source&&typeof d.source!="string"){A&&A(this);return}else{var v=this;this.source=l.util.createImage(),l.util.loadImage(d.source,function(w,x){v.source=w,A&&A(v,x)},null,this.crossOrigin)}},toObject:function(d){var A=l.Object.NUM_FRACTION_DIGITS,v,w;return typeof this.source.src=="string"?v=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(v=this.source.toDataURL()),w={type:"pattern",source:v,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:h(this.offsetX,A),offsetY:h(this.offsetY,A),patternTransform:this.patternTransform?this.patternTransform.concat():null},l.util.populateWithProperties(this,w,d),w},toSVG:function(d){var A=typeof this.source=="function"?this.source():this.source,v=A.width/d.width,w=A.height/d.height,x=this.offsetX/d.width,C=this.offsetY/d.height,k="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(w=1,C&&(w+=Math.abs(C))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(v=1,x&&(v+=Math.abs(x))),A.src?k=A.src:A.toDataURL&&(k=A.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+x+'" y="'+C+'" width="'+v+'" height="'+w+`">
<image x="0" y="0" width="`+A.width+'" height="'+A.height+'" xlink:href="'+k+`"></image>
</pattern>
`},setOptions:function(d){for(var A in d)this[A]=d[A]},toLive:function(d){var A=this.source;return!A||typeof A.src<"u"&&(!A.complete||A.naturalWidth===0||A.naturalHeight===0)?"":d.createPattern(A,this.repeat)}})})(),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.toFixed;if(d.Shadow){d.warn("fabric.Shadow is already defined.");return}d.Shadow=d.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(v){typeof v=="string"&&(v=this._parseShadow(v));for(var w in v)this[w]=v[w];this.id=d.Object.__uid++},_parseShadow:function(v){var w=v.trim(),x=d.Shadow.reOffsetsAndBlur.exec(w)||[],C=w.replace(d.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:C.trim(),offsetX:parseFloat(x[1],10)||0,offsetY:parseFloat(x[2],10)||0,blur:parseFloat(x[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(v){var w=40,x=40,C=d.Object.NUM_FRACTION_DIGITS,k=d.util.rotateVector({x:this.offsetX,y:this.offsetY},d.util.degreesToRadians(-v.angle)),T=20,S=new d.Color(this.color);return v.width&&v.height&&(w=A((Math.abs(k.x)+this.blur)/v.width,C)*100+T,x=A((Math.abs(k.y)+this.blur)/v.height,C)*100+T),v.flipX&&(k.x*=-1),v.flipY&&(k.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+x+'%" height="'+(100+2*x)+'%" x="-'+w+'%" width="'+(100+2*w)+`%" >
	<feGaussianBlur in="SourceAlpha" stdDeviation="`+A(this.blur?this.blur/2:0,C)+`"></feGaussianBlur>
	<feOffset dx="`+A(k.x,C)+'" dy="'+A(k.y,C)+`" result="oBlur" ></feOffset>
	<feFlood flood-color="`+S.toRgb()+'" flood-opacity="'+S.getAlpha()+`"/>
	<feComposite in2="oBlur" operator="in" />
	<feMerge>
		<feMergeNode></feMergeNode>
		<feMergeNode in="SourceGraphic"></feMergeNode>
	</feMerge>
</filter>
`},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var v={},w=d.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(x){this[x]!==w[x]&&(v[x]=this[x])},this),v}}),d.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/})(f),(function(){if(l.StaticCanvas){l.warn("fabric.StaticCanvas is already defined.");return}var h=l.util.object.extend,d=l.util.getElementOffset,A=l.util.removeFromArray,v=l.util.toFixed,w=l.util.transformPoint,x=l.util.invertTransform,C=l.util.getNodeCanvas,k=l.util.createCanvasElement,T=new Error("Could not initialize `canvas` element");l.StaticCanvas=l.util.createClass(l.CommonMethods,{initialize:function(S,M){M||(M={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(S,M)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:l.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(S,M){var P=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(S),this._initOptions(M),this.interactive||this._initRetinaScaling(),M.overlayImage&&this.setOverlayImage(M.overlayImage,P),M.backgroundImage&&this.setBackgroundImage(M.backgroundImage,P),M.backgroundColor&&this.setBackgroundColor(M.backgroundColor,P),M.overlayColor&&this.setOverlayColor(M.overlayColor,P),this.calcOffset()},_isRetinaScaling:function(){return l.devicePixelRatio!==1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?l.devicePixelRatio:1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var S=l.devicePixelRatio;this.__initRetinaScaling(S,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(S,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(S,M,P){M.setAttribute("width",this.width*S),M.setAttribute("height",this.height*S),P.scale(S,S)},calcOffset:function(){return this._offset=d(this.lowerCanvasEl),this},setOverlayImage:function(S,M,P){return this.__setBgOverlayImage("overlayImage",S,M,P)},setBackgroundImage:function(S,M,P){return this.__setBgOverlayImage("backgroundImage",S,M,P)},setOverlayColor:function(S,M){return this.__setBgOverlayColor("overlayColor",S,M)},setBackgroundColor:function(S,M){return this.__setBgOverlayColor("backgroundColor",S,M)},__setBgOverlayImage:function(S,M,P,N){return typeof M=="string"?l.util.loadImage(M,function(B,O){if(B){var I=new l.Image(B,N);this[S]=I,I.canvas=this}P&&P(B,O)},this,N&&N.crossOrigin):(N&&M.setOptions(N),this[S]=M,M&&(M.canvas=this),P&&P(M,!1)),this},__setBgOverlayColor:function(S,M,P){return this[S]=M,this._initGradient(M,S),this._initPattern(M,S,P),this},_createCanvasElement:function(){var S=k();if(!S||(S.style||(S.style={}),typeof S.getContext>"u"))throw T;return S},_initOptions:function(S){var M=this.lowerCanvasEl;this._setOptions(S),this.width=this.width||parseInt(M.width,10)||0,this.height=this.height||parseInt(M.height,10)||0,this.lowerCanvasEl.style&&(M.width=this.width,M.height=this.height,M.style.width=this.width+"px",M.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(S){S&&S.getContext?this.lowerCanvasEl=S:this.lowerCanvasEl=l.util.getById(S)||this._createCanvasElement(),l.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(S,M){return this.setDimensions({width:S},M)},setHeight:function(S,M){return this.setDimensions({height:S},M)},setDimensions:function(S,M){var P;M=M||{};for(var N in S)P=S[N],M.cssOnly||(this._setBackstoreDimension(N,S[N]),P+="px",this.hasLostContext=!0),M.backstoreOnly||this._setCssDimension(N,P);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this.calcOffset(),M.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(S,M){return this.lowerCanvasEl[S]=M,this.upperCanvasEl&&(this.upperCanvasEl[S]=M),this.cacheCanvasEl&&(this.cacheCanvasEl[S]=M),this[S]=M,this},_setCssDimension:function(S,M){return this.lowerCanvasEl.style[S]=M,this.upperCanvasEl&&(this.upperCanvasEl.style[S]=M),this.wrapperEl&&(this.wrapperEl.style[S]=M),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(S){var M=this._activeObject,P=this.backgroundImage,N=this.overlayImage,B,O,I;for(this.viewportTransform=S,O=0,I=this._objects.length;O<I;O++)B=this._objects[O],B.group||B.setCoords(!0);return M&&M.setCoords(),P&&P.setCoords(!0),N&&N.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(S,M){var P=S,N=this.viewportTransform.slice(0);S=w(S,x(this.viewportTransform)),N[0]=M,N[3]=M;var B=w(S,N);return N[4]+=P.x-B.x,N[5]+=P.y-B.y,this.setViewportTransform(N)},setZoom:function(S){return this.zoomToPoint(new l.Point(0,0),S),this},absolutePan:function(S){var M=this.viewportTransform.slice(0);return M[4]=-S.x,M[5]=-S.y,this.setViewportTransform(M)},relativePan:function(S){return this.absolutePan(new l.Point(-S.x-this.viewportTransform[4],-S.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(S){this.stateful&&S.setupState(),S._set("canvas",this),S.setCoords(),this.fire("object:added",{target:S}),S.fire("added")},_onObjectRemoved:function(S){this.fire("object:removed",{target:S}),S.fire("removed"),delete S.canvas},clearContext:function(S){return S.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var S=this.contextContainer;return this.renderCanvas(S,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=l.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var S={},M=this.width,P=this.height,N=x(this.viewportTransform);return S.tl=w({x:0,y:0},N),S.br=w({x:M,y:P},N),S.tr=new l.Point(S.br.x,S.tl.y),S.bl=new l.Point(S.tl.x,S.br.y),this.vptCoords=S,S},cancelRequestedRender:function(){this.isRendering&&(l.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(S,M){var P=this.viewportTransform,N=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(S),l.util.setImageSmoothing(S,this.imageSmoothingEnabled),this.fire("before:render",{ctx:S}),this._renderBackground(S),S.save(),S.transform(P[0],P[1],P[2],P[3],P[4],P[5]),this._renderObjects(S,M),S.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(S),N&&(N.canvas=this,N.shouldCache(),N._transformDone=!0,N.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(S)),this._renderOverlay(S),this.controlsAboveOverlay&&this.interactive&&this.drawControls(S),this.fire("after:render",{ctx:S})},drawClipPathOnCanvas:function(S){var M=this.viewportTransform,P=this.clipPath;S.save(),S.transform(M[0],M[1],M[2],M[3],M[4],M[5]),S.globalCompositeOperation="destination-in",P.transform(S),S.scale(1/P.zoomX,1/P.zoomY),S.drawImage(P._cacheCanvas,-P.cacheTranslationX,-P.cacheTranslationY),S.restore()},_renderObjects:function(S,M){var P,N;for(P=0,N=M.length;P<N;++P)M[P]&&M[P].render(S)},_renderBackgroundOrOverlay:function(S,M){var P=this[M+"Color"],N=this[M+"Image"],B=this.viewportTransform,O=this[M+"Vpt"];if(!(!P&&!N)){if(P){S.save(),S.beginPath(),S.moveTo(0,0),S.lineTo(this.width,0),S.lineTo(this.width,this.height),S.lineTo(0,this.height),S.closePath(),S.fillStyle=P.toLive?P.toLive(S,this):P,O&&S.transform(B[0],B[1],B[2],B[3],B[4],B[5]),S.transform(1,0,0,1,P.offsetX||0,P.offsetY||0);var I=P.gradientTransform||P.patternTransform;I&&S.transform(I[0],I[1],I[2],I[3],I[4],I[5]),S.fill(),S.restore()}N&&(S.save(),O&&S.transform(B[0],B[1],B[2],B[3],B[4],B[5]),N.render(S),S.restore())}},_renderBackground:function(S){this._renderBackgroundOrOverlay(S,"background")},_renderOverlay:function(S){this._renderBackgroundOrOverlay(S,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(S){return this._centerObject(S,new l.Point(this.getCenter().left,S.getCenterPoint().y))},centerObjectV:function(S){return this._centerObject(S,new l.Point(S.getCenterPoint().x,this.getCenter().top))},centerObject:function(S){var M=this.getCenter();return this._centerObject(S,new l.Point(M.left,M.top))},viewportCenterObject:function(S){var M=this.getVpCenter();return this._centerObject(S,M)},viewportCenterObjectH:function(S){var M=this.getVpCenter();return this._centerObject(S,new l.Point(M.x,S.getCenterPoint().y)),this},viewportCenterObjectV:function(S){var M=this.getVpCenter();return this._centerObject(S,new l.Point(S.getCenterPoint().x,M.y))},getVpCenter:function(){var S=this.getCenter(),M=x(this.viewportTransform);return w({x:S.left,y:S.top},M)},_centerObject:function(S,M){return S.setPositionByOrigin(M,"center","center"),S.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(S){return this.toDatalessObject(S)},toObject:function(S){return this._toObjectMethod("toObject",S)},toDatalessObject:function(S){return this._toObjectMethod("toDatalessObject",S)},_toObjectMethod:function(S,M){var P=this.clipPath,N={version:l.version,objects:this._toObjects(S,M)};return P&&!P.excludeFromExport&&(N.clipPath=this._toObject(this.clipPath,S,M)),h(N,this.__serializeBgOverlay(S,M)),l.util.populateWithProperties(this,N,M),N},_toObjects:function(S,M){return this._objects.filter(function(P){return!P.excludeFromExport}).map(function(P){return this._toObject(P,S,M)},this)},_toObject:function(S,M,P){var N;this.includeDefaultValues||(N=S.includeDefaultValues,S.includeDefaultValues=!1);var B=S[M](P);return this.includeDefaultValues||(S.includeDefaultValues=N),B},__serializeBgOverlay:function(S,M){var P={},N=this.backgroundImage,B=this.overlayImage,O=this.backgroundColor,I=this.overlayColor;return O&&O.toObject?O.excludeFromExport||(P.background=O.toObject(M)):O&&(P.background=O),I&&I.toObject?I.excludeFromExport||(P.overlay=I.toObject(M)):I&&(P.overlay=I),N&&!N.excludeFromExport&&(P.backgroundImage=this._toObject(N,S,M)),B&&!B.excludeFromExport&&(P.overlayImage=this._toObject(B,S,M)),P},svgViewportTransformation:!0,toSVG:function(S,M){S||(S={}),S.reviver=M;var P=[];return this._setSVGPreamble(P,S),this._setSVGHeader(P,S),this.clipPath&&P.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
`),this._setSVGBgOverlayColor(P,"background"),this._setSVGBgOverlayImage(P,"backgroundImage",M),this._setSVGObjects(P,M),this.clipPath&&P.push(`</g>
`),this._setSVGBgOverlayColor(P,"overlay"),this._setSVGBgOverlayImage(P,"overlayImage",M),P.push("</svg>"),P.join("")},_setSVGPreamble:function(S,M){M.suppressPreamble||S.push('<?xml version="1.0" encoding="',M.encoding||"UTF-8",`" standalone="no" ?>
`,'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',`"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
`)},_setSVGHeader:function(S,M){var P=M.width||this.width,N=M.height||this.height,B,O='viewBox="0 0 '+this.width+" "+this.height+'" ',I=l.Object.NUM_FRACTION_DIGITS;M.viewBox?O='viewBox="'+M.viewBox.x+" "+M.viewBox.y+" "+M.viewBox.width+" "+M.viewBox.height+'" ':this.svgViewportTransformation&&(B=this.viewportTransform,O='viewBox="'+v(-B[4]/B[0],I)+" "+v(-B[5]/B[3],I)+" "+v(this.width/B[0],I)+" "+v(this.height/B[3],I)+'" '),S.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',P,'" ','height="',N,'" ',O,`xml:space="preserve">
`,"<desc>Created with Fabric.js ",l.version,`</desc>
`,`<defs>
`,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(M),`</defs>
`)},createSVGClipPathMarkup:function(S){var M=this.clipPath;return M?(M.clipPathId="CLIPPATH_"+l.Object.__uid++,'<clipPath id="'+M.clipPathId+`" >
`+this.clipPath.toClipPathSVG(S.reviver)+`</clipPath>
`):""},createSVGRefElementsMarkup:function(){var S=this,M=["background","overlay"].map(function(P){var N=S[P+"Color"];if(N&&N.toLive){var B=S[P+"Vpt"],O=S.viewportTransform,I={width:S.width/(B?O[0]:1),height:S.height/(B?O[3]:1)};return N.toSVG(I,{additionalTransform:B?l.util.matrixToSVG(O):""})}});return M.join("")},createSVGFontFacesMarkup:function(){var S="",M={},P,N,B,O,I,F,L,R,U,V=l.fontPaths,W=[];for(this._objects.forEach(function le(G){W.push(G),G._objects&&G._objects.forEach(le)}),R=0,U=W.length;R<U;R++)if(P=W[R],N=P.fontFamily,!(P.type.indexOf("text")===-1||M[N]||!V[N])&&(M[N]=!0,!!P.styles)){B=P.styles;for(I in B){O=B[I];for(L in O)F=O[L],N=F.fontFamily,!M[N]&&V[N]&&(M[N]=!0)}}for(var Q in M)S+=[`		@font-face {
`,"			font-family: '",Q,`';
`,"			src: url('",V[Q],`');
`,`		}
`].join("");return S&&(S=['	<style type="text/css">',`<![CDATA[
`,S,"]]>",`</style>
`].join("")),S},_setSVGObjects:function(S,M){var P,N,B,O=this._objects;for(N=0,B=O.length;N<B;N++)P=O[N],!P.excludeFromExport&&this._setSVGObject(S,P,M)},_setSVGObject:function(S,M,P){S.push(M.toSVG(P))},_setSVGBgOverlayImage:function(S,M,P){this[M]&&!this[M].excludeFromExport&&this[M].toSVG&&S.push(this[M].toSVG(P))},_setSVGBgOverlayColor:function(S,M){var P=this[M+"Color"],N=this.viewportTransform,B=this.width,O=this.height;if(P)if(P.toLive){var I=P.repeat,F=l.util.invertTransform(N),L=this[M+"Vpt"],R=L?l.util.matrixToSVG(F):"";S.push('<rect transform="'+R+" translate(",B/2,",",O/2,')"',' x="',P.offsetX-B/2,'" y="',P.offsetY-O/2,'" ','width="',I==="repeat-y"||I==="no-repeat"?P.source.width:B,'" height="',I==="repeat-x"||I==="no-repeat"?P.source.height:O,'" fill="url(#SVGID_'+P.id+')"',`></rect>
`)}else S.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',P,'"',`></rect>
`)},sendToBack:function(S){if(!S)return this;var M=this._activeObject,P,N,B;if(S===M&&S.type==="activeSelection")for(B=M._objects,P=B.length;P--;)N=B[P],A(this._objects,N),this._objects.unshift(N);else A(this._objects,S),this._objects.unshift(S);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(S){if(!S)return this;var M=this._activeObject,P,N,B;if(S===M&&S.type==="activeSelection")for(B=M._objects,P=0;P<B.length;P++)N=B[P],A(this._objects,N),this._objects.push(N);else A(this._objects,S),this._objects.push(S);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(S,M){if(!S)return this;var P=this._activeObject,N,B,O,I,F,L=0;if(S===P&&S.type==="activeSelection")for(F=P._objects,N=0;N<F.length;N++)B=F[N],O=this._objects.indexOf(B),O>0+L&&(I=O-1,A(this._objects,B),this._objects.splice(I,0,B)),L++;else O=this._objects.indexOf(S),O!==0&&(I=this._findNewLowerIndex(S,O,M),A(this._objects,S),this._objects.splice(I,0,S));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(S,M,P){var N,B;if(P)for(N=M,B=M-1;B>=0;--B){var O=S.intersectsWithObject(this._objects[B])||S.isContainedWithinObject(this._objects[B])||this._objects[B].isContainedWithinObject(S);if(O){N=B;break}}else N=M-1;return N},bringForward:function(S,M){if(!S)return this;var P=this._activeObject,N,B,O,I,F,L=0;if(S===P&&S.type==="activeSelection")for(F=P._objects,N=F.length;N--;)B=F[N],O=this._objects.indexOf(B),O<this._objects.length-1-L&&(I=O+1,A(this._objects,B),this._objects.splice(I,0,B)),L++;else O=this._objects.indexOf(S),O!==this._objects.length-1&&(I=this._findNewUpperIndex(S,O,M),A(this._objects,S),this._objects.splice(I,0,S));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(S,M,P){var N,B,O;if(P)for(N=M,B=M+1,O=this._objects.length;B<O;++B){var I=S.intersectsWithObject(this._objects[B])||S.isContainedWithinObject(this._objects[B])||this._objects[B].isContainedWithinObject(S);if(I){N=B;break}}else N=M+1;return N},moveTo:function(S,M){return A(this._objects,S),this._objects.splice(M,0,S),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(l.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(S){S.dispose&&S.dispose()}),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),this.lowerCanvasEl.style=this._originalCanvasStyle,delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),l.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),h(l.StaticCanvas.prototype,l.Observable),h(l.StaticCanvas.prototype,l.Collection),h(l.StaticCanvas.prototype,l.DataURLExporter),h(l.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(S){var M=k();if(!M||!M.getContext)return null;var P=M.getContext("2d");if(!P)return null;switch(S){case"setLineDash":return typeof P.setLineDash<"u";default:return null}}}),l.StaticCanvas.prototype.toJSON=l.StaticCanvas.prototype.toObject,l.isLikelyNode&&(l.StaticCanvas.prototype.createPNGStream=function(){var S=C(this.lowerCanvasEl);return S&&S.createPNGStream()},l.StaticCanvas.prototype.createJPEGStream=function(S){var M=C(this.lowerCanvasEl);return M&&M.createJPEGStream(S)})})(),l.BaseBrush=l.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(){var h=this.canvas.contextTop;h.strokeStyle=this.color,h.lineWidth=this.width,h.lineCap=this.strokeLineCap,h.miterLimit=this.strokeMiterLimit,h.lineJoin=this.strokeLineJoin,h.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(h){var d=this.canvas.viewportTransform;h.save(),h.transform(d[0],d[1],d[2],d[3],d[4],d[5])},_setShadow:function(){if(this.shadow){var h=this.canvas,d=this.shadow,A=h.contextTop,v=h.getZoom();h&&h._isRetinaScaling()&&(v*=l.devicePixelRatio),A.shadowColor=d.color,A.shadowBlur=d.blur*v,A.shadowOffsetX=d.offsetX*v,A.shadowOffsetY=d.offsetY*v}},needsFullRender:function(){var h=new l.Color(this.color);return h.getAlpha()<1||!!this.shadow},_resetShadow:function(){var h=this.canvas.contextTop;h.shadowColor="",h.shadowBlur=h.shadowOffsetX=h.shadowOffsetY=0},_isOutSideCanvas:function(h){return h.x<0||h.x>this.canvas.getWidth()||h.y<0||h.y>this.canvas.getHeight()}}),(function(){l.PencilBrush=l.util.createClass(l.BaseBrush,{decimate:.4,initialize:function(h){this.canvas=h,this._points=[]},_drawSegment:function(h,d,A){var v=d.midPointFrom(A);return h.quadraticCurveTo(d.x,d.y,v.x,v.y),v},onMouseDown:function(h,d){this.canvas._isMainEvent(d.e)&&(this._prepareForDrawing(h),this._captureDrawingPath(h),this._render())},onMouseMove:function(h,d){if(this.canvas._isMainEvent(d.e)&&!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(h))&&this._captureDrawingPath(h)&&this._points.length>1)if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var A=this._points,v=A.length,w=this.canvas.contextTop;this._saveAndTransform(w),this.oldEnd&&(w.beginPath(),w.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(w,A[v-2],A[v-1],!0),w.stroke(),w.restore()}},onMouseUp:function(h){return this.canvas._isMainEvent(h.e)?(this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(h){var d=new l.Point(h.x,h.y);this._reset(),this._addPoint(d),this.canvas.contextTop.moveTo(d.x,d.y)},_addPoint:function(h){return this._points.length>1&&h.eq(this._points[this._points.length-1])?!1:(this._points.push(h),!0)},_reset:function(){this._points=[],this._setBrushStyles(),this._setShadow()},_captureDrawingPath:function(h){var d=new l.Point(h.x,h.y);return this._addPoint(d)},_render:function(){var h=this.canvas.contextTop,d,A,v=this._points[0],w=this._points[1];if(this._saveAndTransform(h),h.beginPath(),this._points.length===2&&v.x===w.x&&v.y===w.y){var x=this.width/1e3;v=new l.Point(v.x,v.y),w=new l.Point(w.x,w.y),v.x-=x,w.x+=x}for(h.moveTo(v.x,v.y),d=1,A=this._points.length;d<A;d++)this._drawSegment(h,v,w),v=this._points[d],w=this._points[d+1];h.lineTo(v.x,v.y),h.stroke(),h.restore()},convertPointsToSVGPath:function(h){var d=this.width/1e3;return l.util.getSmoothPathFromPoints(h,d)},_isEmptySVGPath:function(h){var d=l.util.joinPath(h);return d==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(h){var d=new l.Path(h,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,d.shadow=new l.Shadow(this.shadow)),d},decimatePoints:function(h,d){if(h.length<=2)return h;var A=this.canvas.getZoom(),v=Math.pow(d/A,2),w,x=h.length-1,C=h[0],k=[C],T;for(w=1;w<x-1;w++)T=Math.pow(C.x-h[w].x,2)+Math.pow(C.y-h[w].y,2),T>=v&&(C=h[w],k.push(C));return k.push(h[x]),k},_finalizeAndAddPath:function(){var h=this.canvas.contextTop;h.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var d=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(d)){this.canvas.requestRenderAll();return}var A=this.createPath(d);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:A}),this.canvas.add(A),this.canvas.requestRenderAll(),A.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:A})}})})(),l.CircleBrush=l.util.createClass(l.BaseBrush,{width:10,initialize:function(h){this.canvas=h,this.points=[]},drawDot:function(h){var d=this.addPoint(h),A=this.canvas.contextTop;this._saveAndTransform(A),this.dot(A,d),A.restore()},dot:function(h,d){h.fillStyle=d.fill,h.beginPath(),h.arc(d.x,d.y,d.radius,0,Math.PI*2,!1),h.closePath(),h.fill()},onMouseDown:function(h){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(h)},_render:function(){var h=this.canvas.contextTop,d,A,v=this.points;for(this._saveAndTransform(h),d=0,A=v.length;d<A;d++)this.dot(h,v[d]);h.restore()},onMouseMove:function(h){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(h)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(h),this._render()):this.drawDot(h))},onMouseUp:function(){var h=this.canvas.renderOnAddRemove,d,A;this.canvas.renderOnAddRemove=!1;var v=[];for(d=0,A=this.points.length;d<A;d++){var w=this.points[d],x=new l.Circle({radius:w.radius,left:w.x,top:w.y,originX:"center",originY:"center",fill:w.fill});this.shadow&&(x.shadow=new l.Shadow(this.shadow)),v.push(x)}var C=new l.Group(v);C.canvas=this.canvas,this.canvas.fire("before:path:created",{path:C}),this.canvas.add(C),this.canvas.fire("path:created",{path:C}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=h,this.canvas.requestRenderAll()},addPoint:function(h){var d=new l.Point(h.x,h.y),A=l.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,v=new l.Color(this.color).setAlpha(l.util.getRandomInt(0,100)/100).toRgba();return d.radius=A,d.fill=v,this.points.push(d),d}}),l.SprayBrush=l.util.createClass(l.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(h){this.canvas=h,this.sprayChunks=[]},onMouseDown:function(h){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(h),this.render(this.sprayChunkPoints)},onMouseMove:function(h){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(h)||(this.addSprayChunk(h),this.render(this.sprayChunkPoints))},onMouseUp:function(){var h=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var d=[],A=0,v=this.sprayChunks.length;A<v;A++)for(var w=this.sprayChunks[A],x=0,C=w.length;x<C;x++){var k=new l.Rect({width:w[x].width,height:w[x].width,left:w[x].x+1,top:w[x].y+1,originX:"center",originY:"center",fill:this.color});d.push(k)}this.optimizeOverlapping&&(d=this._getOptimizedRects(d));var T=new l.Group(d);this.shadow&&T.set("shadow",new l.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:T}),this.canvas.add(T),this.canvas.fire("path:created",{path:T}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=h,this.canvas.requestRenderAll()},_getOptimizedRects:function(h){var d={},A,v,w;for(v=0,w=h.length;v<w;v++)A=h[v].left+""+h[v].top,d[A]||(d[A]=h[v]);var x=[];for(A in d)x.push(d[A]);return x},render:function(h){var d=this.canvas.contextTop,A,v;for(d.fillStyle=this.color,this._saveAndTransform(d),A=0,v=h.length;A<v;A++){var w=h[A];typeof w.opacity<"u"&&(d.globalAlpha=w.opacity),d.fillRect(w.x,w.y,w.width,w.width)}d.restore()},_render:function(){var h=this.canvas.contextTop,d,A;for(h.fillStyle=this.color,this._saveAndTransform(h),d=0,A=this.sprayChunks.length;d<A;d++)this.render(this.sprayChunks[d]);h.restore()},addSprayChunk:function(h){this.sprayChunkPoints=[];var d,A,v,w=this.width/2,x;for(x=0;x<this.density;x++){d=l.util.getRandomInt(h.x-w,h.x+w),A=l.util.getRandomInt(h.y-w,h.y+w),this.dotWidthVariance?v=l.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):v=this.dotWidth;var C=new l.Point(d,A);C.width=v,this.randomOpacity&&(C.opacity=l.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(C)}this.sprayChunks.push(this.sprayChunkPoints)}}),l.PatternBrush=l.util.createClass(l.PencilBrush,{getPatternSrc:function(){var h=20,d=5,A=l.util.createCanvasElement(),v=A.getContext("2d");return A.width=A.height=h+d,v.fillStyle=this.color,v.beginPath(),v.arc(h/2,h/2,h/2,0,Math.PI*2,!1),v.closePath(),v.fill(),A},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(){this.callSuper("_setBrushStyles"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(h){var d=this.callSuper("createPath",h),A=d._getLeftTopCoords().scalarAdd(d.strokeWidth/2);return d.stroke=new l.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-A.x,offsetY:-A.y}),d}}),(function(){var h=l.util.getPointer,d=l.util.degreesToRadians,A=l.util.isTouchEvent;l.Canvas=l.util.createClass(l.StaticCanvas,{initialize:function(w,x){x||(x={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(w,x),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",rotationCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=l.PencilBrush&&new l.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var w=this.getActiveObjects(),x,C,k;if(w.length>0&&!this.preserveObjectStacking){C=[],k=[];for(var T=0,S=this._objects.length;T<S;T++)x=this._objects[T],w.indexOf(x)===-1?C.push(x):k.push(x);w.length>1&&(this._activeObject._objects=k),C.push.apply(C,k)}else C=this._objects;return C},renderAll:function(){this.contextTopDirty&&!this._groupSelector&&!this.isDrawingMode&&(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&this.renderTopLayer(this.contextTop);var w=this.contextContainer;return this.renderCanvas(w,this._chooseObjectsToRender()),this},renderTopLayer:function(w){w.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(w),this.contextTopDirty=!0),w.restore()},renderTop:function(){var w=this.contextTop;return this.clearContext(w),this.renderTopLayer(w),this.fire("after:render"),this},_normalizePointer:function(w,x){var C=w.calcTransformMatrix(),k=l.util.invertTransform(C),T=this.restorePointerVpt(x);return l.util.transformPoint(T,k)},isTargetTransparent:function(w,x,C){if(w.shouldCache()&&w._cacheCanvas&&w!==this._activeObject){var k=this._normalizePointer(w,{x,y:C}),T=Math.max(w.cacheTranslationX+k.x*w.zoomX,0),S=Math.max(w.cacheTranslationY+k.y*w.zoomY,0),B=l.util.isTransparent(w._cacheContext,Math.round(T),Math.round(S),this.targetFindTolerance);return B}var M=this.contextCache,P=w.selectionBackgroundColor,N=this.viewportTransform;w.selectionBackgroundColor="",this.clearContext(M),M.save(),M.transform(N[0],N[1],N[2],N[3],N[4],N[5]),w.render(M),M.restore(),w.selectionBackgroundColor=P;var B=l.util.isTransparent(M,x,C,this.targetFindTolerance);return B},_isSelectionKeyPressed:function(w){var x=!1;return Object.prototype.toString.call(this.selectionKey)==="[object Array]"?x=!!this.selectionKey.find(function(C){return w[C]===!0}):x=w[this.selectionKey],x},_shouldClearSelection:function(w,x){var C=this.getActiveObjects(),k=this._activeObject;return!x||x&&k&&C.length>1&&C.indexOf(x)===-1&&k!==x&&!this._isSelectionKeyPressed(w)||x&&!x.evented||x&&!x.selectable&&k&&k!==x},_shouldCenterTransform:function(w,x,C){if(w){var k;return x==="scale"||x==="scaleX"||x==="scaleY"||x==="resizing"?k=this.centeredScaling||w.centeredScaling:x==="rotate"&&(k=this.centeredRotation||w.centeredRotation),k?!C:C}},_getOriginFromCorner:function(w,x){var C={x:w.originX,y:w.originY};return x==="ml"||x==="tl"||x==="bl"?C.x="right":(x==="mr"||x==="tr"||x==="br")&&(C.x="left"),x==="tl"||x==="mt"||x==="tr"?C.y="bottom":(x==="bl"||x==="mb"||x==="br")&&(C.y="top"),C},_getActionFromCorner:function(w,x,C,k){if(!x||!w)return"drag";var T=k.controls[x];return T.getActionName(C,T,k)},_setupCurrentTransform:function(w,x,C){if(x){var k=this.getPointer(w),T=x.__corner,S=x.controls[T],M=C&&T?S.getActionHandler(w,x,S):l.controlsUtils.dragHandler,P=this._getActionFromCorner(C,T,w,x),N=this._getOriginFromCorner(x,T),B=w[this.centeredKey],O={target:x,action:P,actionHandler:M,corner:T,scaleX:x.scaleX,scaleY:x.scaleY,skewX:x.skewX,skewY:x.skewY,offsetX:k.x-x.left,offsetY:k.y-x.top,originX:N.x,originY:N.y,ex:k.x,ey:k.y,lastX:k.x,lastY:k.y,theta:d(x.angle),width:x.width*x.scaleX,shiftKey:w.shiftKey,altKey:B,original:l.util.saveObjectTransform(x)};this._shouldCenterTransform(x,P,B)&&(O.originX="center",O.originY="center"),O.original.originX=N.x,O.original.originY=N.y,this._currentTransform=O,this._beforeTransform(w)}},setCursor:function(w){this.upperCanvasEl.style.cursor=w},_drawSelection:function(w){var x=this._groupSelector,C=new l.Point(x.ex,x.ey),k=l.util.transformPoint(C,this.viewportTransform),T=new l.Point(x.ex+x.left,x.ey+x.top),S=l.util.transformPoint(T,this.viewportTransform),M=Math.min(k.x,S.x),P=Math.min(k.y,S.y),N=Math.max(k.x,S.x),B=Math.max(k.y,S.y),O=this.selectionLineWidth/2;this.selectionColor&&(w.fillStyle=this.selectionColor,w.fillRect(M,P,N-M,B-P)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(w.lineWidth=this.selectionLineWidth,w.strokeStyle=this.selectionBorderColor,M+=O,P+=O,N-=O,B-=O,l.Object.prototype._setLineDash.call(this,w,this.selectionDashArray),w.strokeRect(M,P,N-M,B-P))},findTarget:function(w,x){if(!this.skipTargetFind){var C=!0,k=this.getPointer(w,C),T=this._activeObject,S=this.getActiveObjects(),M,P,N=A(w),B=S.length>1&&!x||S.length===1;if(this.targets=[],B&&T._findTargetCorner(k,N)||S.length>1&&!x&&T===this._searchPossibleTargets([T],k))return T;if(S.length===1&&T===this._searchPossibleTargets([T],k))if(this.preserveObjectStacking)M=T,P=this.targets,this.targets=[];else return T;var O=this._searchPossibleTargets(this._objects,k);return w[this.altSelectionKey]&&O&&M&&O!==M&&(O=M,this.targets=P),O}},_checkTarget:function(w,x,C){if(x&&x.visible&&x.evented&&x.containsPoint(w))if((this.perPixelTargetFind||x.perPixelTargetFind)&&!x.isEditing){var k=this.isTargetTransparent(x,C.x,C.y);if(!k)return!0}else return!0},_searchPossibleTargets:function(w,x){for(var C,k=w.length,T;k--;){var S=w[k],M=S.group?this._normalizePointer(S.group,x):x;if(this._checkTarget(M,S,x)){C=w[k],C.subTargetCheck&&C instanceof l.Group&&(T=this._searchPossibleTargets(C._objects,x),T&&this.targets.push(T));break}}return C},restorePointerVpt:function(w){return l.util.transformPoint(w,l.util.invertTransform(this.viewportTransform))},getPointer:function(w,x){if(this._absolutePointer&&!x)return this._absolutePointer;if(this._pointer&&x)return this._pointer;var C=h(w),k=this.upperCanvasEl,T=k.getBoundingClientRect(),S=T.width||0,M=T.height||0,P;(!S||!M)&&("top"in T&&"bottom"in T&&(M=Math.abs(T.top-T.bottom)),"right"in T&&"left"in T&&(S=Math.abs(T.right-T.left))),this.calcOffset(),C.x=C.x-this._offset.left,C.y=C.y-this._offset.top,x||(C=this.restorePointerVpt(C));var N=this.getRetinaScaling();return N!==1&&(C.x/=N,C.y/=N),S===0||M===0?P={width:1,height:1}:P={width:k.width/S,height:k.height/M},{x:C.x*P.width,y:C.y*P.height}},_createUpperCanvas:function(){var w=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),x=this.lowerCanvasEl,C=this.upperCanvasEl;C?C.className="":(C=this._createCanvasElement(),this.upperCanvasEl=C),l.util.addClass(C,"upper-canvas "+w),this.wrapperEl.appendChild(C),this._copyCanvasStyle(x,C),this._applyCanvasStyle(C),this.contextTop=C.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=l.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),l.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),l.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(w){var x=this.width||w.width,C=this.height||w.height;l.util.setStyle(w,{position:"absolute",width:x+"px",height:C+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),w.width=x,w.height=C,l.util.makeElementUnselectable(w)},_copyCanvasStyle:function(w,x){x.style.cssText=w.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var w=this._activeObject;return w?w.type==="activeSelection"&&w._objects?w._objects.slice(0):[w]:[]},_onObjectRemoved:function(w){w===this._activeObject&&(this.fire("before:selection:cleared",{target:w}),this._discardActiveObject(),this.fire("selection:cleared",{target:w}),w.fire("deselected")),w===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",w)},_fireSelectionEvents:function(w,x){var C=!1,k=this.getActiveObjects(),T=[],S=[];w.forEach(function(M){k.indexOf(M)===-1&&(C=!0,M.fire("deselected",{e:x,target:M}),S.push(M))}),k.forEach(function(M){w.indexOf(M)===-1&&(C=!0,M.fire("selected",{e:x,target:M}),T.push(M))}),w.length>0&&k.length>0?C&&this.fire("selection:updated",{e:x,selected:T,deselected:S,updated:T[0]||S[0],target:this._activeObject}):k.length>0?this.fire("selection:created",{e:x,selected:T,target:this._activeObject}):w.length>0&&this.fire("selection:cleared",{e:x,deselected:S})},setActiveObject:function(w,x){var C=this.getActiveObjects();return this._setActiveObject(w,x),this._fireSelectionEvents(C,x),this},_setActiveObject:function(w,x){return this._activeObject===w||!this._discardActiveObject(x,w)||w.onSelect({e:x})?!1:(this._activeObject=w,!0)},_discardActiveObject:function(w,x){var C=this._activeObject;if(C){if(C.onDeselect({e:w,object:x}))return!1;this._activeObject=null}return!0},discardActiveObject:function(w){var x=this.getActiveObjects(),C=this.getActiveObject();return x.length&&this.fire("before:selection:cleared",{target:C,e:w}),this._discardActiveObject(w),this._fireSelectionEvents(x,w),this},dispose:function(){var w=this.wrapperEl;return this.removeListeners(),w.removeChild(this.upperCanvasEl),w.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach((function(x){l.util.cleanUpJsdomNode(this[x]),this[x]=void 0}).bind(this)),w.parentNode&&w.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,l.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(w){var x=this._activeObject;x&&x._renderControls(w)},_toObject:function(w,x,C){var k=this._realizeGroupTransformOnObject(w),T=this.callSuper("_toObject",w,x,C);return this._unwindGroupTransformOnObject(w,k),T},_realizeGroupTransformOnObject:function(w){if(w.group&&w.group.type==="activeSelection"&&this._activeObject===w.group){var x=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],C={};return x.forEach(function(k){C[k]=w[k]}),l.util.addTransformToObject(w,this._activeObject.calcOwnMatrix()),C}else return null},_unwindGroupTransformOnObject:function(w,x){x&&w.set(x)},_setSVGObject:function(w,x,C){var k=this._realizeGroupTransformOnObject(x);this.callSuper("_setSVGObject",w,x,C),this._unwindGroupTransformOnObject(x,k)},setViewportTransform:function(w){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),l.StaticCanvas.prototype.setViewportTransform.call(this,w)}});for(var v in l.StaticCanvas)v!=="prototype"&&(l.Canvas[v]=l.StaticCanvas[v])})(),(function(){var h=l.util.addListener,d=l.util.removeListener,A=3,v=2,w=1,x={passive:!1};function C(k,T){return k.button&&k.button===T-1}l.util.object.extend(l.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(h,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(k,T){var S=this.upperCanvasEl,M=this._getEventPrefix();k(l.window,"resize",this._onResize),k(S,M+"down",this._onMouseDown),k(S,M+"move",this._onMouseMove,x),k(S,M+"out",this._onMouseOut),k(S,M+"enter",this._onMouseEnter),k(S,"wheel",this._onMouseWheel),k(S,"contextmenu",this._onContextMenu),k(S,"dblclick",this._onDoubleClick),k(S,"dragover",this._onDragOver),k(S,"dragenter",this._onDragEnter),k(S,"dragleave",this._onDragLeave),k(S,"drop",this._onDrop),this.enablePointerEvents||k(S,"touchstart",this._onTouchStart,x),typeof eventjs<"u"&&T in eventjs&&(eventjs[T](S,"gesture",this._onGesture),eventjs[T](S,"drag",this._onDrag),eventjs[T](S,"orientation",this._onOrientationChange),eventjs[T](S,"shake",this._onShake),eventjs[T](S,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(d,"remove");var k=this._getEventPrefix();d(l.document,k+"up",this._onMouseUp),d(l.document,"touchend",this._onTouchEnd,x),d(l.document,k+"move",this._onMouseMove,x),d(l.document,"touchmove",this._onMouseMove,x)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._simpleEventHandler.bind(this,"drop"),this.eventsBound=!0)},_onGesture:function(k,T){this.__onTransformGesture&&this.__onTransformGesture(k,T)},_onDrag:function(k,T){this.__onDrag&&this.__onDrag(k,T)},_onMouseWheel:function(k){this.__onMouseWheel(k)},_onMouseOut:function(k){var T=this._hoveredTarget;this.fire("mouse:out",{target:T,e:k}),this._hoveredTarget=null,T&&T.fire("mouseout",{e:k});var S=this;this._hoveredTargets.forEach(function(M){S.fire("mouse:out",{target:T,e:k}),M&&T.fire("mouseout",{e:k})}),this._hoveredTargets=[],this._iTextInstances&&this._iTextInstances.forEach(function(M){M.isEditing&&M.hiddenTextarea.focus()})},_onMouseEnter:function(k){!this._currentTransform&&!this.findTarget(k)&&(this.fire("mouse:over",{target:null,e:k}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(k,T){this.__onOrientationChange&&this.__onOrientationChange(k,T)},_onShake:function(k,T){this.__onShake&&this.__onShake(k,T)},_onLongPress:function(k,T){this.__onLongPress&&this.__onLongPress(k,T)},_onDragOver:function(k){k.preventDefault();var T=this._simpleEventHandler("dragover",k);this._fireEnterLeaveEvents(T,k)},_onContextMenu:function(k){return this.stopContextMenu&&(k.stopPropagation(),k.preventDefault()),!1},_onDoubleClick:function(k){this._cacheTransformEventData(k),this._handleEvent(k,"dblclick"),this._resetTransformEventData(k)},getPointerId:function(k){var T=k.changedTouches;return T?T[0]&&T[0].identifier:this.enablePointerEvents?k.pointerId:-1},_isMainEvent:function(k){return k.isPrimary===!0?!0:k.isPrimary===!1?!1:k.type==="touchend"&&k.touches.length===0?!0:k.changedTouches?k.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(k){k.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(k)),this.__onMouseDown(k),this._resetTransformEventData();var T=this.upperCanvasEl,S=this._getEventPrefix();h(l.document,"touchend",this._onTouchEnd,x),h(l.document,"touchmove",this._onMouseMove,x),d(T,S+"down",this._onMouseDown)},_onMouseDown:function(k){this.__onMouseDown(k),this._resetTransformEventData();var T=this.upperCanvasEl,S=this._getEventPrefix();d(T,S+"move",this._onMouseMove,x),h(l.document,S+"up",this._onMouseUp),h(l.document,S+"move",this._onMouseMove,x)},_onTouchEnd:function(k){if(!(k.touches.length>0)){this.__onMouseUp(k),this._resetTransformEventData(),this.mainTouchId=null;var T=this._getEventPrefix();d(l.document,"touchend",this._onTouchEnd,x),d(l.document,"touchmove",this._onMouseMove,x);var S=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){h(S.upperCanvasEl,T+"down",S._onMouseDown),S._willAddMouseDown=0},400)}},_onMouseUp:function(k){this.__onMouseUp(k),this._resetTransformEventData();var T=this.upperCanvasEl,S=this._getEventPrefix();this._isMainEvent(k)&&(d(l.document,S+"up",this._onMouseUp),d(l.document,S+"move",this._onMouseMove,x),h(T,S+"move",this._onMouseMove,x))},_onMouseMove:function(k){!this.allowTouchScrolling&&k.preventDefault&&k.preventDefault(),this.__onMouseMove(k)},_onResize:function(){this.calcOffset()},_shouldRender:function(k){var T=this._activeObject;return!!T!=!!k||T&&k&&T!==k?!0:(T&&T.isEditing,!1)},__onMouseUp:function(k){var T,S=this._currentTransform,M=this._groupSelector,P=!1,N=!M||M.left===0&&M.top===0;if(this._cacheTransformEventData(k),T=this._target,this._handleEvent(k,"up:before"),C(k,A)){this.fireRightClick&&this._handleEvent(k,"up",A,N);return}if(C(k,v)){this.fireMiddleClick&&this._handleEvent(k,"up",v,N),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(k);return}if(this._isMainEvent(k)){if(S&&(this._finalizeCurrentTransform(k),P=S.actionPerformed),!N){var B=T===this._activeObject;this._maybeGroupObjects(k),P||(P=this._shouldRender(T)||!B&&T===this._activeObject)}if(T){if(T.selectable&&T!==this._activeObject&&T.activeOn==="up")this.setActiveObject(T,k),P=!0;else{var O=T._findTargetCorner(this.getPointer(k,!0),l.util.isTouchEvent(k)),I=T.controls[O],F=I&&I.getMouseUpHandler(k,T,I);if(F){var L=this.getPointer(k);F(k,S,L.x,L.y)}}T.isMoving=!1}this._setCursorFromEvent(k,T),this._handleEvent(k,"up",w,N),this._groupSelector=null,this._currentTransform=null,T&&(T.__corner=0),P?this.requestRenderAll():N||this.renderTop()}},_simpleEventHandler:function(k,T){var S=this.findTarget(T),M=this.targets,P={e:T,target:S,subTargets:M};if(this.fire(k,P),S&&S.fire(k,P),!M)return S;for(var N=0;N<M.length;N++)M[N].fire(k,P);return S},_handleEvent:function(k,T,S,M){var P=this._target,N=this.targets||[],B={e:k,target:P,subTargets:N,button:S||w,isClick:M||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};T==="up"&&(B.currentTarget=this.findTarget(k),B.currentSubTargets=this.targets),this.fire("mouse:"+T,B),P&&P.fire("mouse"+T,B);for(var O=0;O<N.length;O++)N[O].fire("mouse"+T,B)},_finalizeCurrentTransform:function(k){var T=this._currentTransform,S=T.target,M,P={e:k,target:S,transform:T,action:T.action};S._scaling&&(S._scaling=!1),S.setCoords(),(T.actionPerformed||this.stateful&&S.hasStateChanged())&&(T.actionPerformed&&(M=this._addEventOptions(P,T),this._fire(M,P)),this._fire("modified",P))},_addEventOptions:function(k,T){var S,M;switch(T.action){case"scaleX":S="scaled",M="x";break;case"scaleY":S="scaled",M="y";break;case"skewX":S="skewed",M="x";break;case"skewY":S="skewed",M="y";break;case"scale":S="scaled",M="equally";break;case"rotate":S="rotated";break;case"drag":S="moved";break}return k.by=M,S},_onMouseDownInDrawingMode:function(k){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(k).requestRenderAll();var T=this.getPointer(k);this.freeDrawingBrush.onMouseDown(T,{e:k,pointer:T}),this._handleEvent(k,"down")},_onMouseMoveInDrawingMode:function(k){if(this._isCurrentlyDrawing){var T=this.getPointer(k);this.freeDrawingBrush.onMouseMove(T,{e:k,pointer:T})}this.setCursor(this.freeDrawingCursor),this._handleEvent(k,"move")},_onMouseUpInDrawingMode:function(k){var T=this.getPointer(k);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:k,pointer:T}),this._handleEvent(k,"up")},__onMouseDown:function(k){this._cacheTransformEventData(k),this._handleEvent(k,"down:before");var T=this._target;if(C(k,A)){this.fireRightClick&&this._handleEvent(k,"down",A);return}if(C(k,v)){this.fireMiddleClick&&this._handleEvent(k,"down",v);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(k);return}if(this._isMainEvent(k)&&!this._currentTransform){var S=this._pointer;this._previousPointer=S;var M=this._shouldRender(T),P=this._shouldGroup(k,T);if(this._shouldClearSelection(k,T)?this.discardActiveObject(k):P&&(this._handleGrouping(k,T),T=this._activeObject),this.selection&&(!T||!T.selectable&&!T.isEditing&&T!==this._activeObject)&&(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),T){var N=T===this._activeObject;T.selectable&&T.activeOn==="down"&&this.setActiveObject(T,k);var B=T._findTargetCorner(this.getPointer(k,!0),l.util.isTouchEvent(k));if(T.__corner=B,T===this._activeObject&&(B||!P)){this._setupCurrentTransform(k,T,N);var O=T.controls[B],S=this.getPointer(k),I=O&&O.getMouseDownHandler(k,T,O);I&&I(k,this._currentTransform,S.x,S.y)}}this._handleEvent(k,"down"),(M||P)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(k){this._resetTransformEventData(),this._pointer=this.getPointer(k,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(k)||null},_beforeTransform:function(k){var T=this._currentTransform;this.stateful&&T.target.saveState(),this.fire("before:transform",{e:k,transform:T})},__onMouseMove:function(k){this._handleEvent(k,"move:before"),this._cacheTransformEventData(k);var T,S;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(k);return}if(this._isMainEvent(k)){var M=this._groupSelector;M?(S=this._absolutePointer,M.left=S.x-M.ex,M.top=S.y-M.ey,this.renderTop()):this._currentTransform?this._transformObject(k):(T=this.findTarget(k)||null,this._setCursorFromEvent(k,T),this._fireOverOutEvents(T,k)),this._handleEvent(k,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(k,T){var S=this._hoveredTarget,M=this._hoveredTargets,P=this.targets,N=Math.max(M.length,P.length);this.fireSyntheticInOutEvents(k,T,{oldTarget:S,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var B=0;B<N;B++)this.fireSyntheticInOutEvents(P[B],T,{oldTarget:M[B],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=k,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(k,T){var S=this._draggedoverTarget,M=this._hoveredTargets,P=this.targets,N=Math.max(M.length,P.length);this.fireSyntheticInOutEvents(k,T,{oldTarget:S,evtOut:"dragleave",evtIn:"dragenter"});for(var B=0;B<N;B++)this.fireSyntheticInOutEvents(P[B],T,{oldTarget:M[B],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=k},fireSyntheticInOutEvents:function(k,T,S){var M,P,N=S.oldTarget,B,O,I=N!==k,F=S.canvasEvtIn,L=S.canvasEvtOut;I&&(M={e:T,target:k,previousTarget:N},P={e:T,target:N,nextTarget:k}),O=k&&I,B=N&&I,B&&(L&&this.fire(L,P),N.fire(S.evtOut,P)),O&&(F&&this.fire(F,M),k.fire(S.evtIn,M))},__onMouseWheel:function(k){this._cacheTransformEventData(k),this._handleEvent(k,"wheel"),this._resetTransformEventData()},_transformObject:function(k){var T=this.getPointer(k),S=this._currentTransform;S.reset=!1,S.shiftKey=k.shiftKey,S.altKey=k[this.centeredKey],this._performTransformAction(k,S,T),S.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(k,T,S){var M=S.x,P=S.y,N=T.action,B=!1,O=T.actionHandler;O&&(B=O(k,T,M,P)),N==="drag"&&B&&(T.target.isMoving=!0,this.setCursor(T.target.moveCursor||this.moveCursor)),T.actionPerformed=T.actionPerformed||B},_fire:l.controlsUtils.fireEvent,_setCursorFromEvent:function(k,T){if(!T)return this.setCursor(this.defaultCursor),!1;var S=T.hoverCursor||this.hoverCursor,M=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,P=(!M||!M.contains(T))&&T._findTargetCorner(this.getPointer(k,!0));P?this.setCursor(this.getCornerCursor(P,T,k)):(T.subTargetCheck&&this.targets.concat().reverse().map(function(N){S=N.hoverCursor||S}),this.setCursor(S))},getCornerCursor:function(k,T,S){var M=T.controls[k];return M.cursorStyleHandler(S,M,T)}})})(),(function(){var h=Math.min,d=Math.max;l.util.object.extend(l.Canvas.prototype,{_shouldGroup:function(A,v){var w=this._activeObject;return w&&this._isSelectionKeyPressed(A)&&v&&v.selectable&&this.selection&&(w!==v||w.type==="activeSelection")&&!v.onSelect({e:A})},_handleGrouping:function(A,v){var w=this._activeObject;w.__corner||v===w&&(v=this.findTarget(A,!0),!v||!v.selectable)||(w&&w.type==="activeSelection"?this._updateActiveSelection(v,A):this._createActiveSelection(v,A))},_updateActiveSelection:function(A,v){var w=this._activeObject,x=w._objects.slice(0);w.contains(A)?(w.removeWithUpdate(A),this._hoveredTarget=A,this._hoveredTargets=this.targets.concat(),w.size()===1&&this._setActiveObject(w.item(0),v)):(w.addWithUpdate(A),this._hoveredTarget=w,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(x,v)},_createActiveSelection:function(A,v){var w=this.getActiveObjects(),x=this._createGroup(A);this._hoveredTarget=x,this._setActiveObject(x,v),this._fireSelectionEvents(w,v)},_createGroup:function(A){var v=this._objects,w=v.indexOf(this._activeObject)<v.indexOf(A),x=w?[this._activeObject,A]:[A,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new l.ActiveSelection(x,{canvas:this})},_groupSelectedObjects:function(A){var v=this._collectObjects(A),w;v.length===1?this.setActiveObject(v[0],A):v.length>1&&(w=new l.ActiveSelection(v.reverse(),{canvas:this}),this.setActiveObject(w,A))},_collectObjects:function(A){for(var v=[],w,x=this._groupSelector.ex,C=this._groupSelector.ey,k=x+this._groupSelector.left,T=C+this._groupSelector.top,S=new l.Point(h(x,k),h(C,T)),M=new l.Point(d(x,k),d(C,T)),P=!this.selectionFullyContained,N=x===k&&C===T,B=this._objects.length;B--&&(w=this._objects[B],!(!(!w||!w.selectable||!w.visible)&&(P&&w.intersectsWithRect(S,M,!0)||w.isContainedWithinRect(S,M,!0)||P&&w.containsPoint(S,null,!0)||P&&w.containsPoint(M,null,!0))&&(v.push(w),N))););return v.length>1&&(v=v.filter(function(O){return!O.onSelect({e:A})})),v},_maybeGroupObjects:function(A){this.selection&&this._groupSelector&&this._groupSelectedObjects(A),this.setCursor(this.defaultCursor),this._groupSelector=null}})})(),(function(){l.util.object.extend(l.StaticCanvas.prototype,{toDataURL:function(h){h||(h={});var d=h.format||"png",A=h.quality||1,v=(h.multiplier||1)*(h.enableRetinaScaling?this.getRetinaScaling():1),w=this.toCanvasElement(v,h);return l.util.toDataURL(w,d,A)},toCanvasElement:function(h,d){h=h||1,d=d||{};var A=(d.width||this.width)*h,v=(d.height||this.height)*h,w=this.getZoom(),x=this.width,C=this.height,k=w*h,T=this.viewportTransform,S=(T[4]-(d.left||0))*h,M=(T[5]-(d.top||0))*h,P=this.interactive,N=[k,0,0,k,S,M],B=this.enableRetinaScaling,O=l.util.createCanvasElement(),I=this.contextTop;return O.width=A,O.height=v,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=N,this.width=A,this.height=v,this.calcViewportBoundaries(),this.renderCanvas(O.getContext("2d"),this._objects),this.viewportTransform=T,this.width=x,this.height=C,this.calcViewportBoundaries(),this.interactive=P,this.enableRetinaScaling=B,this.contextTop=I,O}})})(),l.util.object.extend(l.StaticCanvas.prototype,{loadFromJSON:function(h,d,A){if(h){var v=typeof h=="string"?JSON.parse(h):l.util.object.clone(h),w=this,x=v.clipPath,C=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete v.clipPath,this._enlivenObjects(v.objects,function(k){w.clear(),w._setBgOverlay(v,function(){x?w._enlivenObjects([x],function(T){w.clipPath=T[0],w.__setupCanvas.call(w,v,k,C,d)}):w.__setupCanvas.call(w,v,k,C,d)})},A),this}},__setupCanvas:function(h,d,A,v){var w=this;d.forEach(function(x,C){w.insertAt(x,C)}),this.renderOnAddRemove=A,delete h.objects,delete h.backgroundImage,delete h.overlayImage,delete h.background,delete h.overlay,this._setOptions(h),this.renderAll(),v&&v()},_setBgOverlay:function(h,d){var A={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!h.backgroundImage&&!h.overlayImage&&!h.background&&!h.overlay){d&&d();return}var v=function(){A.backgroundImage&&A.overlayImage&&A.backgroundColor&&A.overlayColor&&d&&d()};this.__setBgOverlay("backgroundImage",h.backgroundImage,A,v),this.__setBgOverlay("overlayImage",h.overlayImage,A,v),this.__setBgOverlay("backgroundColor",h.background,A,v),this.__setBgOverlay("overlayColor",h.overlay,A,v)},__setBgOverlay:function(h,d,A,v){var w=this;if(!d){A[h]=!0,v&&v();return}h==="backgroundImage"||h==="overlayImage"?l.util.enlivenObjects([d],function(x){w[h]=x[0],A[h]=!0,v&&v()}):this["set"+l.util.string.capitalize(h,!0)](d,function(){A[h]=!0,v&&v()})},_enlivenObjects:function(h,d,A){if(!h||h.length===0){d&&d([]);return}l.util.enlivenObjects(h,function(v){d&&d(v)},null,A)},_toDataURL:function(h,d){this.clone(function(A){d(A.toDataURL(h))})},_toDataURLWithMultiplier:function(h,d,A){this.clone(function(v){A(v.toDataURLWithMultiplier(h,d))})},clone:function(h,d){var A=JSON.stringify(this.toJSON(d));this.cloneWithoutData(function(v){v.loadFromJSON(A,function(){h&&h(v)})})},cloneWithoutData:function(h){var d=l.util.createCanvasElement();d.width=this.width,d.height=this.height;var A=new l.Canvas(d);this.backgroundImage?(A.setBackgroundImage(this.backgroundImage.src,function(){A.renderAll(),h&&h(A)}),A.backgroundImageOpacity=this.backgroundImageOpacity,A.backgroundImageStretch=this.backgroundImageStretch):h&&h(A)}}),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.util.object.clone,w=d.util.toFixed,x=d.util.string.capitalize,C=d.util.degreesToRadians,k=!d.isLikelyNode,T=2;d.Object||(d.Object=d.util.createClass(d.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:k,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(S){S&&this.setOptions(S)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=d.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(S){var M=d.perfLimitSizeTotal,P=S.width,N=S.height,B=d.maxCacheSideLimit,O=d.minCacheSideLimit;if(P<=B&&N<=B&&P*N<=M)return P<O&&(S.width=O),N<O&&(S.height=O),S;var I=P/N,F=d.util.limitDimsByArea(I,M),L=d.util.capValue,R=L(O,F.x,B),U=L(O,F.y,B);return P>R&&(S.zoomX/=P/R,S.width=R,S.capped=!0),N>U&&(S.zoomY/=N/U,S.height=U,S.capped=!0),S},_getCacheCanvasDimensions:function(){var S=this.getTotalObjectScaling(),M=this._getTransformedDimensions(0,0),P=M.x*S.scaleX/this.scaleX,N=M.y*S.scaleY/this.scaleY;return{width:P+T,height:N+T,zoomX:S.scaleX,zoomY:S.scaleY,x:P,y:N}},_updateCacheCanvas:function(){var S=this.canvas;if(this.noScaleCache&&S&&S._currentTransform){var M=S._currentTransform.target,P=S._currentTransform.action;if(this===M&&P.slice&&P.slice(0,5)==="scale")return!1}var N=this._cacheCanvas,B=this._limitCacheSize(this._getCacheCanvasDimensions()),O=d.minCacheSideLimit,I=B.width,F=B.height,L,R,U=B.zoomX,V=B.zoomY,W=I!==this.cacheWidth||F!==this.cacheHeight,Q=this.zoomX!==U||this.zoomY!==V,le=W||Q,G=0,fe=0,ie=!1;if(W){var he=this._cacheCanvas.width,Y=this._cacheCanvas.height,K=I>he||F>Y,oe=(I<he*.9||F<Y*.9)&&he>O&&Y>O;ie=K||oe,K&&!B.capped&&(I>O||F>O)&&(G=I*.1,fe=F*.1)}return this instanceof d.Text&&this.path&&(le=!0,ie=!0,G+=this.getHeightOfLine(0)*this.zoomX,fe+=this.getHeightOfLine(0)*this.zoomY),le?(ie?(N.width=Math.ceil(I+G),N.height=Math.ceil(F+fe)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,N.width,N.height)),L=B.x/2,R=B.y/2,this.cacheTranslationX=Math.round(N.width/2-L)+L,this.cacheTranslationY=Math.round(N.height/2-R)+R,this.cacheWidth=I,this.cacheHeight=F,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(U,V),this.zoomX=U,this.zoomY=V,!0):!1},setOptions:function(S){this._setOptions(S),this._initGradient(S.fill,"fill"),this._initGradient(S.stroke,"stroke"),this._initPattern(S.fill,"fill"),this._initPattern(S.stroke,"stroke")},transform:function(S){var M=this.group&&!this.group._transformDone||this.group&&this.canvas&&S===this.canvas.contextTop,P=this.calcTransformMatrix(!M);S.transform(P[0],P[1],P[2],P[3],P[4],P[5])},toObject:function(S){var M=d.Object.NUM_FRACTION_DIGITS,P={type:this.type,version:d.version,originX:this.originX,originY:this.originY,left:w(this.left,M),top:w(this.top,M),width:w(this.width,M),height:w(this.height,M),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:w(this.strokeWidth,M),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:w(this.strokeMiterLimit,M),scaleX:w(this.scaleX,M),scaleY:w(this.scaleY,M),angle:w(this.angle,M),flipX:this.flipX,flipY:this.flipY,opacity:w(this.opacity,M),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:w(this.skewX,M),skewY:w(this.skewY,M)};return this.clipPath&&!this.clipPath.excludeFromExport&&(P.clipPath=this.clipPath.toObject(S),P.clipPath.inverted=this.clipPath.inverted,P.clipPath.absolutePositioned=this.clipPath.absolutePositioned),d.util.populateWithProperties(this,P,S),this.includeDefaultValues||(P=this._removeDefaultValues(P)),P},toDatalessObject:function(S){return this.toObject(S)},_removeDefaultValues:function(S){var M=d.util.getKlass(S.type).prototype,P=M.stateProperties;return P.forEach(function(N){if(!(N==="left"||N==="top")){S[N]===M[N]&&delete S[N];var B=Object.prototype.toString.call(S[N])==="[object Array]"&&Object.prototype.toString.call(M[N])==="[object Array]";B&&S[N].length===0&&M[N].length===0&&delete S[N]}}),S},toString:function(){return"#<fabric."+x(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var S=d.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(S.scaleX),scaleY:Math.abs(S.scaleY)}},getTotalObjectScaling:function(){var S=this.getObjectScaling(),M=S.scaleX,P=S.scaleY;if(this.canvas){var N=this.canvas.getZoom(),B=this.canvas.getRetinaScaling();M*=N*B,P*=N*B}return{scaleX:M,scaleY:P}},getObjectOpacity:function(){var S=this.opacity;return this.group&&(S*=this.group.getObjectOpacity()),S},_set:function(S,M){var P=S==="scaleX"||S==="scaleY",N=this[S]!==M,B=!1;return P&&(M=this._constrainScale(M)),S==="scaleX"&&M<0?(this.flipX=!this.flipX,M*=-1):S==="scaleY"&&M<0?(this.flipY=!this.flipY,M*=-1):S==="shadow"&&M&&!(M instanceof d.Shadow)?M=new d.Shadow(M):S==="dirty"&&this.group&&this.group.set("dirty",M),this[S]=M,N&&(B=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(S)>-1?(this.dirty=!0,B&&this.group.set("dirty",!0)):B&&this.stateProperties.indexOf(S)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:d.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(S){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(S.save(),this._setupCompositeOperation(S),this.drawSelectionBackground(S),this.transform(S),this._setOpacity(S),this._setShadow(S,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(S)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(S),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),S.restore())},renderCache:function(S){S=S||{},this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,S.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&this.stroke!=="transparent"&&this.strokeWidth!==0},hasFill:function(){return this.fill&&this.fill!=="transparent"},needsItsOwnCache:function(){return!!(this.paintFirst==="stroke"&&this.hasFill()&&this.hasStroke()&&typeof this.shadow=="object"||this.clipPath)},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(this.shadow.offsetX!==0||this.shadow.offsetY!==0)},drawClipPathOnCache:function(S){var M=this.clipPath;if(S.save(),M.inverted?S.globalCompositeOperation="destination-out":S.globalCompositeOperation="destination-in",M.absolutePositioned){var P=d.util.invertTransform(this.calcTransformMatrix());S.transform(P[0],P[1],P[2],P[3],P[4],P[5])}M.transform(S),S.scale(1/M.zoomX,1/M.zoomY),S.drawImage(M._cacheCanvas,-M.cacheTranslationX,-M.cacheTranslationY),S.restore()},drawObject:function(S,M){var P=this.fill,N=this.stroke;M?(this.fill="black",this.stroke="",this._setClippingProperties(S)):this._renderBackground(S),this._render(S),this._drawClipPath(S),this.fill=P,this.stroke=N},_drawClipPath:function(S){var M=this.clipPath;M&&(M.canvas=this.canvas,M.shouldCache(),M._transformDone=!0,M.renderCache({forClipping:!0}),this.drawClipPathOnCache(S))},drawCacheOnCanvas:function(S){S.scale(1/this.zoomX,1/this.zoomY),S.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(S){if(this.isNotVisible())return!1;if(this._cacheCanvas&&!S&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&!S){var M=this.cacheWidth/this.zoomX,P=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-M/2,-P/2,M,P)}return!0}return!1},_renderBackground:function(S){if(this.backgroundColor){var M=this._getNonTransformedDimensions();S.fillStyle=this.backgroundColor,S.fillRect(-M.x/2,-M.y/2,M.x,M.y),this._removeShadow(S)}},_setOpacity:function(S){this.group&&!this.group._transformDone?S.globalAlpha=this.getObjectOpacity():S.globalAlpha*=this.opacity},_setStrokeStyles:function(S,M){var P=M.stroke;P&&(S.lineWidth=M.strokeWidth,S.lineCap=M.strokeLineCap,S.lineDashOffset=M.strokeDashOffset,S.lineJoin=M.strokeLineJoin,S.miterLimit=M.strokeMiterLimit,P.toLive?P.gradientUnits==="percentage"||P.gradientTransform||P.patternTransform?this._applyPatternForTransformedGradient(S,P):(S.strokeStyle=P.toLive(S,this),this._applyPatternGradientTransform(S,P)):S.strokeStyle=M.stroke)},_setFillStyles:function(S,M){var P=M.fill;P&&(P.toLive?(S.fillStyle=P.toLive(S,this),this._applyPatternGradientTransform(S,M.fill)):S.fillStyle=P)},_setClippingProperties:function(S){S.globalAlpha=1,S.strokeStyle="transparent",S.fillStyle="#000000"},_setLineDash:function(S,M){!M||M.length===0||(1&M.length&&M.push.apply(M,M),S.setLineDash(M))},_renderControls:function(S,M){var P=this.getViewportTransform(),N=this.calcTransformMatrix(),B,O,I;M=M||{},O=typeof M.hasBorders<"u"?M.hasBorders:this.hasBorders,I=typeof M.hasControls<"u"?M.hasControls:this.hasControls,N=d.util.multiplyTransformMatrices(P,N),B=d.util.qrDecompose(N),S.save(),S.translate(B.translateX,B.translateY),S.lineWidth=1*this.borderScaleFactor,this.group||(S.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),S.rotate(C(B.angle)),M.forActiveSelection||this.group?O&&this.drawBordersInGroup(S,B,M):O&&this.drawBorders(S,M),I&&this.drawControls(S,M),S.restore()},_setShadow:function(S){if(this.shadow){var M=this.shadow,P=this.canvas,N,B=P&&P.viewportTransform[0]||1,O=P&&P.viewportTransform[3]||1;M.nonScaling?N={scaleX:1,scaleY:1}:N=this.getObjectScaling(),P&&P._isRetinaScaling()&&(B*=d.devicePixelRatio,O*=d.devicePixelRatio),S.shadowColor=M.color,S.shadowBlur=M.blur*d.browserShadowBlurConstant*(B+O)*(N.scaleX+N.scaleY)/4,S.shadowOffsetX=M.offsetX*B*N.scaleX,S.shadowOffsetY=M.offsetY*O*N.scaleY}},_removeShadow:function(S){this.shadow&&(S.shadowColor="",S.shadowBlur=S.shadowOffsetX=S.shadowOffsetY=0)},_applyPatternGradientTransform:function(S,M){if(!M||!M.toLive)return{offsetX:0,offsetY:0};var P=M.gradientTransform||M.patternTransform,N=-this.width/2+M.offsetX||0,B=-this.height/2+M.offsetY||0;return M.gradientUnits==="percentage"?S.transform(this.width,0,0,this.height,N,B):S.transform(1,0,0,1,N,B),P&&S.transform(P[0],P[1],P[2],P[3],P[4],P[5]),{offsetX:N,offsetY:B}},_renderPaintInOrder:function(S){this.paintFirst==="stroke"?(this._renderStroke(S),this._renderFill(S)):(this._renderFill(S),this._renderStroke(S))},_render:function(){},_renderFill:function(S){this.fill&&(S.save(),this._setFillStyles(S,this),this.fillRule==="evenodd"?S.fill("evenodd"):S.fill(),S.restore())},_renderStroke:function(S){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(S),S.save(),this.strokeUniform&&this.group){var M=this.getObjectScaling();S.scale(1/M.scaleX,1/M.scaleY)}else this.strokeUniform&&S.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(S,this.strokeDashArray),this._setStrokeStyles(S,this),S.stroke(),S.restore()}},_applyPatternForTransformedGradient:function(S,M){var P=this._limitCacheSize(this._getCacheCanvasDimensions()),N=d.util.createCanvasElement(),B,O=this.canvas.getRetinaScaling(),I=P.x/this.scaleX/O,F=P.y/this.scaleY/O;N.width=I,N.height=F,B=N.getContext("2d"),B.beginPath(),B.moveTo(0,0),B.lineTo(I,0),B.lineTo(I,F),B.lineTo(0,F),B.closePath(),B.translate(I/2,F/2),B.scale(P.zoomX/this.scaleX/O,P.zoomY/this.scaleY/O),this._applyPatternGradientTransform(B,M),B.fillStyle=M.toLive(S),B.fill(),S.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),S.scale(O*this.scaleX/P.zoomX,O*this.scaleY/P.zoomY),S.strokeStyle=B.createPattern(N,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var S=d.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",S.scaleX),this.set("scaleY",S.scaleY),this.angle=S.angle,this.skewX=S.skewX,this.skewY=0}},_removeTransformMatrix:function(S){var M=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),M=d.util.transformPoint(M,this.transformMatrix)),this.transformMatrix=null,S&&(this.scaleX*=S.scaleX,this.scaleY*=S.scaleY,this.cropX=S.cropX,this.cropY=S.cropY,M.x+=S.offsetLeft,M.y+=S.offsetTop,this.width=S.width,this.height=S.height),this.setPositionByOrigin(M,"center","center")},clone:function(S,M){var P=this.toObject(M);this.constructor.fromObject?this.constructor.fromObject(P,S):d.Object._fromObject("Object",P,S)},cloneAsImage:function(S,M){var P=this.toCanvasElement(M);return S&&S(new d.Image(P)),this},toCanvasElement:function(S){S||(S={});var M=d.util,P=M.saveObjectTransform(this),N=this.group,B=this.shadow,O=Math.abs,I=(S.multiplier||1)*(S.enableRetinaScaling?d.devicePixelRatio:1);delete this.group,S.withoutTransform&&M.resetObjectTransform(this),S.withoutShadow&&(this.shadow=null);var F=d.util.createCanvasElement(),L=this.getBoundingRect(!0,!0),R=this.shadow,U,V={x:0,y:0},W,Q,le;R&&(W=R.blur,R.nonScaling?U={scaleX:1,scaleY:1}:U=this.getObjectScaling(),V.x=2*Math.round(O(R.offsetX)+W)*O(U.scaleX),V.y=2*Math.round(O(R.offsetY)+W)*O(U.scaleY)),Q=L.width+V.x,le=L.height+V.y,F.width=Math.ceil(Q),F.height=Math.ceil(le);var G=new d.StaticCanvas(F,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});S.format==="jpeg"&&(G.backgroundColor="#fff"),this.setPositionByOrigin(new d.Point(G.width/2,G.height/2),"center","center");var fe=this.canvas;G.add(this);var ie=G.toCanvasElement(I||1,S);return this.shadow=B,this.set("canvas",fe),N&&(this.group=N),this.set(P).setCoords(),G._objects=[],G.dispose(),G=null,ie},toDataURL:function(S){return S||(S={}),d.util.toDataURL(this.toCanvasElement(S),S.format||"png",S.quality||1)},isType:function(S){return this.type===S},complexity:function(){return 1},toJSON:function(S){return this.toObject(S)},rotate:function(S){var M=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return M&&this._setOriginToCenter(),this.set("angle",S),M&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(S,M){M=M||this.canvas.getPointer(S);var P=new d.Point(M.x,M.y),N=this._getLeftTopCoords();return this.angle&&(P=d.util.rotatePoint(P,N,C(-this.angle))),{x:P.x-N.x,y:P.y-N.y}},_setupCompositeOperation:function(S){this.globalCompositeOperation&&(S.globalCompositeOperation=this.globalCompositeOperation)}}),d.util.createAccessors&&d.util.createAccessors(d.Object),A(d.Object.prototype,d.Observable),d.Object.NUM_FRACTION_DIGITS=2,d.Object._fromObject=function(S,M,P,N){var B=d[S];M=v(M,!0),d.util.enlivenPatterns([M.fill,M.stroke],function(O){typeof O[0]<"u"&&(M.fill=O[0]),typeof O[1]<"u"&&(M.stroke=O[1]),d.util.enlivenObjects([M.clipPath],function(I){M.clipPath=I[0];var F=N?new B(M[N],M):new B(M);P&&P(F)})})},d.Object.__uid=0)})(f),(function(){var h=l.util.degreesToRadians,d={left:-.5,center:0,right:.5},A={top:-.5,center:0,bottom:.5};l.util.object.extend(l.Object.prototype,{translateToGivenOrigin:function(v,w,x,C,k){var T=v.x,S=v.y,M,P,N;return typeof w=="string"?w=d[w]:w-=.5,typeof C=="string"?C=d[C]:C-=.5,M=C-w,typeof x=="string"?x=A[x]:x-=.5,typeof k=="string"?k=A[k]:k-=.5,P=k-x,(M||P)&&(N=this._getTransformedDimensions(),T=v.x+M*N.x,S=v.y+P*N.y),new l.Point(T,S)},translateToCenterPoint:function(v,w,x){var C=this.translateToGivenOrigin(v,w,x,"center","center");return this.angle?l.util.rotatePoint(C,v,h(this.angle)):C},translateToOriginPoint:function(v,w,x){var C=this.translateToGivenOrigin(v,"center","center",w,x);return this.angle?l.util.rotatePoint(C,v,h(this.angle)):C},getCenterPoint:function(){var v=new l.Point(this.left,this.top);return this.translateToCenterPoint(v,this.originX,this.originY)},getPointByOrigin:function(v,w){var x=this.getCenterPoint();return this.translateToOriginPoint(x,v,w)},toLocalPoint:function(v,w,x){var C=this.getCenterPoint(),k,T;return typeof w<"u"&&typeof x<"u"?k=this.translateToGivenOrigin(C,"center","center",w,x):k=new l.Point(this.left,this.top),T=new l.Point(v.x,v.y),this.angle&&(T=l.util.rotatePoint(T,C,-h(this.angle))),T.subtractEquals(k)},setPositionByOrigin:function(v,w,x){var C=this.translateToCenterPoint(v,w,x),k=this.translateToOriginPoint(C,this.originX,this.originY);this.set("left",k.x),this.set("top",k.y)},adjustPosition:function(v){var w=h(this.angle),x=this.getScaledWidth(),C=l.util.cos(w)*x,k=l.util.sin(w)*x,T,S;typeof this.originX=="string"?T=d[this.originX]:T=this.originX-.5,typeof v=="string"?S=d[v]:S=v-.5,this.left+=C*(S-T),this.top+=k*(S-T),this.setCoords(),this.originX=v},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var v=this.getCenterPoint();this.originX="center",this.originY="center",this.left=v.x,this.top=v.y},_resetOrigin:function(){var v=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=v.x,this.top=v.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})})(),(function(){function h(x){return[new l.Point(x.tl.x,x.tl.y),new l.Point(x.tr.x,x.tr.y),new l.Point(x.br.x,x.br.y),new l.Point(x.bl.x,x.bl.y)]}var d=l.util,A=d.degreesToRadians,v=d.multiplyTransformMatrices,w=d.transformPoint;d.object.extend(l.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(x,C){return C?x?this.calcACoords():this.calcLineCoords():((!this.aCoords||!this.lineCoords)&&this.setCoords(!0),x?this.aCoords:this.lineCoords)},getCoords:function(x,C){return h(this._getCoords(x,C))},intersectsWithRect:function(x,C,k,T){var S=this.getCoords(k,T),M=l.Intersection.intersectPolygonRectangle(S,x,C);return M.status==="Intersection"},intersectsWithObject:function(x,C,k){var T=l.Intersection.intersectPolygonPolygon(this.getCoords(C,k),x.getCoords(C,k));return T.status==="Intersection"||x.isContainedWithinObject(this,C,k)||this.isContainedWithinObject(x,C,k)},isContainedWithinObject:function(x,C,k){for(var T=this.getCoords(C,k),S=C?x.aCoords:x.lineCoords,M=0,P=x._getImageLines(S);M<4;M++)if(!x.containsPoint(T[M],P))return!1;return!0},isContainedWithinRect:function(x,C,k,T){var S=this.getBoundingRect(k,T);return S.left>=x.x&&S.left+S.width<=C.x&&S.top>=x.y&&S.top+S.height<=C.y},containsPoint:function(x,M,k,T){var S=this._getCoords(k,T),M=M||this._getImageLines(S),P=this._findCrossPoints(x,M);return P!==0&&P%2===1},isOnScreen:function(x){if(!this.canvas)return!1;var C=this.canvas.vptCoords.tl,k=this.canvas.vptCoords.br,T=this.getCoords(!0,x);return T.some(function(S){return S.x<=k.x&&S.x>=C.x&&S.y<=k.y&&S.y>=C.y})||this.intersectsWithRect(C,k,!0,x)?!0:this._containsCenterOfCanvas(C,k,x)},_containsCenterOfCanvas:function(x,C,k){var T={x:(x.x+C.x)/2,y:(x.y+C.y)/2};return!!this.containsPoint(T,null,!0,k)},isPartiallyOnScreen:function(x){if(!this.canvas)return!1;var C=this.canvas.vptCoords.tl,k=this.canvas.vptCoords.br;if(this.intersectsWithRect(C,k,!0,x))return!0;var T=this.getCoords(!0,x).every(function(S){return(S.x>=k.x||S.x<=C.x)&&(S.y>=k.y||S.y<=C.y)});return T&&this._containsCenterOfCanvas(C,k,x)},_getImageLines:function(x){var C={topline:{o:x.tl,d:x.tr},rightline:{o:x.tr,d:x.br},bottomline:{o:x.br,d:x.bl},leftline:{o:x.bl,d:x.tl}};return C},_findCrossPoints:function(x,C){var k,T,S,M,P,N=0,B;for(var O in C)if(B=C[O],!(B.o.y<x.y&&B.d.y<x.y)&&!(B.o.y>=x.y&&B.d.y>=x.y)&&(B.o.x===B.d.x&&B.o.x>=x.x?P=B.o.x:(k=0,T=(B.d.y-B.o.y)/(B.d.x-B.o.x),S=x.y-k*x.x,M=B.o.y-T*B.o.x,P=-(S-M)/(k-T)),P>=x.x&&(N+=1),N===2))break;return N},getBoundingRect:function(x,C){var k=this.getCoords(x,C);return d.makeBoundingBoxFromPoints(k)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(x){return Math.abs(x)<this.minScaleLimit?x<0?-this.minScaleLimit:this.minScaleLimit:x===0?1e-4:x},scale:function(x){return this._set("scaleX",x),this._set("scaleY",x),this.setCoords()},scaleToWidth:function(x,C){var k=this.getBoundingRect(C).width/this.getScaledWidth();return this.scale(x/this.width/k)},scaleToHeight:function(x,C){var k=this.getBoundingRect(C).height/this.getScaledHeight();return this.scale(x/this.height/k)},calcCoords:function(x){return x?this.calcACoords():this.calcOCoords()},calcLineCoords:function(){var x=this.getViewportTransform(),C=this.padding,k=A(this.angle),T=d.cos(k),S=d.sin(k),M=T*C,P=S*C,N=M+P,B=M-P,O=this.calcACoords(),I={tl:w(O.tl,x),tr:w(O.tr,x),bl:w(O.bl,x),br:w(O.br,x)};return C&&(I.tl.x-=B,I.tl.y-=N,I.tr.x+=N,I.tr.y-=B,I.bl.x-=N,I.bl.y+=B,I.br.x+=B,I.br.y+=N),I},calcOCoords:function(){var x=this._calcRotateMatrix(),C=this._calcTranslateMatrix(),k=this.getViewportTransform(),T=v(k,C),S=v(T,x),S=v(S,[1/k[0],0,0,1/k[3],0,0]),M=this._calculateCurrentDimensions(),P={};return this.forEachControl(function(N,B,O){P[B]=N.positionHandler(M,S,O)}),P},calcACoords:function(){var x=this._calcRotateMatrix(),C=this._calcTranslateMatrix(),k=v(C,x),T=this._getTransformedDimensions(),S=T.x/2,M=T.y/2;return{tl:w({x:-S,y:-M},k),tr:w({x:S,y:-M},k),bl:w({x:-S,y:M},k),br:w({x:S,y:M},k)}},setCoords:function(x){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),x?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return d.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var x=this.getCenterPoint();return[1,0,0,1,x.x,x.y]},transformMatrixKey:function(x){var C="_",k="";return!x&&this.group&&(k=this.group.transformMatrixKey(x)+C),k+this.top+C+this.left+C+this.scaleX+C+this.scaleY+C+this.skewX+C+this.skewY+C+this.angle+C+this.originX+C+this.originY+C+this.width+C+this.height+C+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(x){var C=this.calcOwnMatrix();if(x||!this.group)return C;var k=this.transformMatrixKey(x),T=this.matrixCache||(this.matrixCache={});return T.key===k?T.value:(this.group&&(C=v(this.group.calcTransformMatrix(!1),C)),T.key=k,T.value=C,C)},calcOwnMatrix:function(){var x=this.transformMatrixKey(!0),C=this.ownMatrixCache||(this.ownMatrixCache={});if(C.key===x)return C.value;var k=this._calcTranslateMatrix(),T={angle:this.angle,translateX:k[4],translateY:k[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return C.key=x,C.value=d.composeMatrix(T),C.value},_calcDimensionsTransformMatrix:function(x,C,k){return d.calcDimensionsMatrix({skewX:x,skewY:C,scaleX:this.scaleX*(k&&this.flipX?-1:1),scaleY:this.scaleY*(k&&this.flipY?-1:1)})},_getNonTransformedDimensions:function(){var x=this.strokeWidth,C=this.width+x,k=this.height+x;return{x:C,y:k}},_getTransformedDimensions:function(x,C){typeof x>"u"&&(x=this.skewX),typeof C>"u"&&(C=this.skewY);var k,T,S,M=x===0&&C===0;if(this.strokeUniform?(T=this.width,S=this.height):(k=this._getNonTransformedDimensions(),T=k.x,S=k.y),M)return this._finalizeDimensions(T*this.scaleX,S*this.scaleY);var P=d.sizeAfterTransform(T,S,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:x,skewY:C});return this._finalizeDimensions(P.x,P.y)},_finalizeDimensions:function(x,C){return this.strokeUniform?{x:x+this.strokeWidth,y:C+this.strokeWidth}:{x,y:C}},_calculateCurrentDimensions:function(){var x=this.getViewportTransform(),C=this._getTransformedDimensions(),k=w(C,x,!0);return k.scalarAdd(2*this.padding)}})})(),l.util.object.extend(l.Object.prototype,{sendToBack:function(){return this.group?l.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?l.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(h){return this.group?l.StaticCanvas.prototype.sendBackwards.call(this.group,this,h):this.canvas&&this.canvas.sendBackwards(this,h),this},bringForward:function(h){return this.group?l.StaticCanvas.prototype.bringForward.call(this.group,this,h):this.canvas&&this.canvas.bringForward(this,h),this},moveTo:function(h){return this.group&&this.group.type!=="activeSelection"?l.StaticCanvas.prototype.moveTo.call(this.group,this,h):this.canvas&&this.canvas.moveTo(this,h),this}}),(function(){function h(A,v){if(v){if(v.toLive)return A+": url(#SVGID_"+v.id+"); ";var w=new l.Color(v),x=A+": "+w.toRgb()+"; ",C=w.getAlpha();return C!==1&&(x+=A+"-opacity: "+C.toString()+"; "),x}else return A+": none; "}var d=l.util.toFixed;l.util.object.extend(l.Object.prototype,{getSvgStyles:function(A){var v=this.fillRule?this.fillRule:"nonzero",w=this.strokeWidth?this.strokeWidth:"0",x=this.strokeDashArray?this.strokeDashArray.join(" "):"none",C=this.strokeDashOffset?this.strokeDashOffset:"0",k=this.strokeLineCap?this.strokeLineCap:"butt",T=this.strokeLineJoin?this.strokeLineJoin:"miter",S=this.strokeMiterLimit?this.strokeMiterLimit:"4",M=typeof this.opacity<"u"?this.opacity:"1",P=this.visible?"":" visibility: hidden;",N=A?"":this.getSvgFilter(),B=h("fill",this.fill),O=h("stroke",this.stroke);return[O,"stroke-width: ",w,"; ","stroke-dasharray: ",x,"; ","stroke-linecap: ",k,"; ","stroke-dashoffset: ",C,"; ","stroke-linejoin: ",T,"; ","stroke-miterlimit: ",S,"; ",B,"fill-rule: ",v,"; ","opacity: ",M,";",N,P].join("")},getSvgSpanStyles:function(A,v){var w="; ",C=A.fontFamily?"font-family: "+(A.fontFamily.indexOf("'")===-1&&A.fontFamily.indexOf('"')===-1?"'"+A.fontFamily+"'":A.fontFamily)+w:"",x=A.strokeWidth?"stroke-width: "+A.strokeWidth+w:"",C=C,k=A.fontSize?"font-size: "+A.fontSize+"px"+w:"",T=A.fontStyle?"font-style: "+A.fontStyle+w:"",S=A.fontWeight?"font-weight: "+A.fontWeight+w:"",M=A.fill?h("fill",A.fill):"",P=A.stroke?h("stroke",A.stroke):"",N=this.getSvgTextDecoration(A),B=A.deltaY?"baseline-shift: "+-A.deltaY+"; ":"";return N&&(N="text-decoration: "+N+w),[P,x,C,k,T,S,N,M,B,v?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(A){return["overline","underline","line-through"].filter(function(v){return A[v.replace("-","")]}).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(A,v){var w=A?this.calcTransformMatrix():this.calcOwnMatrix(),x='transform="'+l.util.matrixToSVG(w);return x+(v||"")+'" '},_setSVGBg:function(A){if(this.backgroundColor){var v=l.Object.NUM_FRACTION_DIGITS;A.push("		<rect ",this._getFillAttributes(this.backgroundColor),' x="',d(-this.width/2,v),'" y="',d(-this.height/2,v),'" width="',d(this.width,v),'" height="',d(this.height,v),`"></rect>
`)}},toSVG:function(A){return this._createBaseSVGMarkup(this._toSVG(A),{reviver:A})},toClipPathSVG:function(A){return"	"+this._createBaseClipPathSVGMarkup(this._toSVG(A),{reviver:A})},_createBaseClipPathSVGMarkup:function(A,v){v=v||{};var w=v.reviver,x=v.additionalTransform||"",C=[this.getSvgTransform(!0,x),this.getSvgCommons()].join(""),k=A.indexOf("COMMON_PARTS");return A[k]=C,w?w(A.join("")):A.join("")},_createBaseSVGMarkup:function(A,v){v=v||{};var w=v.noStyle,x=v.reviver,C=w?"":'style="'+this.getSvgStyles()+'" ',k=v.withShadow?'style="'+this.getSvgFilter()+'" ':"",T=this.clipPath,S=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",M=T&&T.absolutePositioned,P=this.stroke,N=this.fill,B=this.shadow,O,I=[],F,L=A.indexOf("COMMON_PARTS"),R=v.additionalTransform;return T&&(T.clipPathId="CLIPPATH_"+l.Object.__uid++,F='<clipPath id="'+T.clipPathId+`" >
`+T.toClipPathSVG(x)+`</clipPath>
`),M&&I.push("<g ",k,this.getSvgCommons(),` >
`),I.push("<g ",this.getSvgTransform(!1),M?"":k+this.getSvgCommons(),` >
`),O=[C,S,w?"":this.addPaintOrder()," ",R?'transform="'+R+'" ':""].join(""),A[L]=O,N&&N.toLive&&I.push(N.toSVG(this)),P&&P.toLive&&I.push(P.toSVG(this)),B&&I.push(B.toSVG(this)),T&&I.push(F),I.push(A.join("")),I.push(`</g>
`),M&&I.push(`</g>
`),x?x(I.join("")):I.join("")},addPaintOrder:function(){return this.paintFirst!=="fill"?' paint-order="'+this.paintFirst+'" ':""}})})(),(function(){var h=l.util.object.extend,d="stateProperties";function A(w,x,C){var k={},T=!0;C.forEach(function(S){k[S]=w[S]}),h(w[x],k,T)}function v(w,x,C){if(w===x)return!0;if(Array.isArray(w)){if(!Array.isArray(x)||w.length!==x.length)return!1;for(var k=0,T=w.length;k<T;k++)if(!v(w[k],x[k]))return!1;return!0}else if(w&&typeof w=="object"){var S=Object.keys(w),M;if(!x||typeof x!="object"||!C&&S.length!==Object.keys(x).length)return!1;for(var k=0,T=S.length;k<T;k++)if(M=S[k],!(M==="canvas"||M==="group")&&!v(w[M],x[M]))return!1;return!0}}l.util.object.extend(l.Object.prototype,{hasStateChanged:function(w){w=w||d;var x="_"+w;return Object.keys(this[x]).length<this[w].length?!0:!v(this[x],this,!0)},saveState:function(w){var x=w&&w.propertySet||d,C="_"+x;return this[C]?(A(this,C,this[x]),w&&w.stateProperties&&A(this,C,w.stateProperties),this):this.setupState(w)},setupState:function(w){w=w||{};var x=w.propertySet||d;return w.propertySet=x,this["_"+x]={},this.saveState(w),this}})})(),(function(){var h=l.util.degreesToRadians;l.util.object.extend(l.Object.prototype,{_findTargetCorner:function(d,A){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var v=d.x,w=d.y,x,C,k=Object.keys(this.oCoords),T=k.length-1,S;for(this.__corner=0;T>=0;T--)if(S=k[T],!!this.isControlVisible(S)&&(C=this._getImageLines(A?this.oCoords[S].touchCorner:this.oCoords[S].corner),x=this._findCrossPoints({x:v,y:w},C),x!==0&&x%2===1))return this.__corner=S,S;return!1},forEachControl:function(d){for(var A in this.controls)d(this.controls[A],A,this)},_setCornerCoords:function(){var d=this.oCoords;for(var A in d){var v=this.controls[A];d[A].corner=v.calcCornerCoords(this.angle,this.cornerSize,d[A].x,d[A].y,!1),d[A].touchCorner=v.calcCornerCoords(this.angle,this.touchCornerSize,d[A].x,d[A].y,!0)}},drawSelectionBackground:function(d){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;d.save();var A=this.getCenterPoint(),v=this._calculateCurrentDimensions(),w=this.canvas.viewportTransform;return d.translate(A.x,A.y),d.scale(1/w[0],1/w[3]),d.rotate(h(this.angle)),d.fillStyle=this.selectionBackgroundColor,d.fillRect(-v.x/2,-v.y/2,v.x,v.y),d.restore(),this},drawBorders:function(d,A){A=A||{};var v=this._calculateCurrentDimensions(),w=this.borderScaleFactor,x=v.x+w,C=v.y+w,k=typeof A.hasControls<"u"?A.hasControls:this.hasControls,T=!1;return d.save(),d.strokeStyle=A.borderColor||this.borderColor,this._setLineDash(d,A.borderDashArray||this.borderDashArray),d.strokeRect(-x/2,-C/2,x,C),k&&(d.beginPath(),this.forEachControl(function(S,M,P){S.withConnection&&S.getVisibility(P,M)&&(T=!0,d.moveTo(S.x*x,S.y*C),d.lineTo(S.x*x+S.offsetX,S.y*C+S.offsetY))}),T&&d.stroke()),d.restore(),this},drawBordersInGroup:function(d,A,v){v=v||{};var w=l.util.sizeAfterTransform(this.width,this.height,A),x=this.strokeWidth,C=this.strokeUniform,k=this.borderScaleFactor,T=w.x+x*(C?this.canvas.getZoom():A.scaleX)+k,S=w.y+x*(C?this.canvas.getZoom():A.scaleY)+k;return d.save(),this._setLineDash(d,v.borderDashArray||this.borderDashArray),d.strokeStyle=v.borderColor||this.borderColor,d.strokeRect(-T/2,-S/2,T,S),d.restore(),this},drawControls:function(d,A){A=A||{},d.save();var v=this.canvas.getRetinaScaling(),w,x;return d.setTransform(v,0,0,v,0,0),d.strokeStyle=d.fillStyle=A.cornerColor||this.cornerColor,this.transparentCorners||(d.strokeStyle=A.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(d,A.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(w=this.group.calcTransformMatrix()),this.forEachControl(function(C,k,T){x=T.oCoords[k],C.getVisibility(T,k)&&(w&&(x=l.util.transformPoint(x,w)),C.render(d,x.x,x.y,A,T))}),d.restore(),this},isControlVisible:function(d){return this.controls[d]&&this.controls[d].getVisibility(this,d)},setControlVisible:function(d,A){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[d]=A,this},setControlsVisibility:function(d){d||(d={});for(var A in d)this.setControlVisible(A,d[A]);return this},onDeselect:function(){},onSelect:function(){}})})(),l.util.object.extend(l.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(h,d){d=d||{};var A=function(){},v=d.onComplete||A,w=d.onChange||A,x=this;return l.util.animate({startValue:h.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(C){h.set("left",C),x.requestRenderAll(),w()},onComplete:function(){h.setCoords(),v()}}),this},fxCenterObjectV:function(h,d){d=d||{};var A=function(){},v=d.onComplete||A,w=d.onChange||A,x=this;return l.util.animate({startValue:h.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(C){h.set("top",C),x.requestRenderAll(),w()},onComplete:function(){h.setCoords(),v()}}),this},fxRemove:function(h,d){d=d||{};var A=function(){},v=d.onComplete||A,w=d.onChange||A,x=this;return l.util.animate({startValue:h.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(C){h.set("opacity",C),x.requestRenderAll(),w()},onComplete:function(){x.remove(h),v()}}),this}}),l.util.object.extend(l.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var h=[],d,A;for(d in arguments[0])h.push(d);for(var v=0,w=h.length;v<w;v++)d=h[v],A=v!==w-1,this._animate(d,arguments[0][d],arguments[1],A)}else this._animate.apply(this,arguments);return this},_animate:function(h,d,A,v){var w=this,x;d=d.toString(),A?A=l.util.object.clone(A):A={},~h.indexOf(".")&&(x=h.split("."));var C=w.colorProperties.indexOf(h)>-1||x&&w.colorProperties.indexOf(x[1])>-1,k=x?this.get(x[0])[x[1]]:this.get(h);"from"in A||(A.from=k),C||(~d.indexOf("=")?d=k+parseFloat(d.replace("=","")):d=parseFloat(d));var T={startValue:A.from,endValue:d,byValue:A.by,easing:A.easing,duration:A.duration,abort:A.abort&&function(S,M,P){return A.abort.call(w,S,M,P)},onChange:function(S,M,P){x?w[x[0]][x[1]]=S:w.set(h,S),!v&&A.onChange&&A.onChange(S,M,P)},onComplete:function(S,M,P){v||(w.setCoords(),A.onComplete&&A.onComplete(S,M,P))}};return C?l.util.animateColor(T.startValue,T.endValue,T.duration,T):l.util.animate(T)}}),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.util.object.clone,w={x1:1,x2:1,y1:1,y2:1};if(d.Line){d.warn("fabric.Line is already defined");return}d.Line=d.util.createClass(d.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:d.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(C,k){C||(C=[0,0,0,0]),this.callSuper("initialize",k),this.set("x1",C[0]),this.set("y1",C[1]),this.set("x2",C[2]),this.set("y2",C[3]),this._setWidthHeight(k)},_setWidthHeight:function(C){C||(C={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in C?C.left:this._getLeftToOriginX(),this.top="top"in C?C.top:this._getTopToOriginY()},_set:function(C,k){return this.callSuper("_set",C,k),typeof w[C]<"u"&&this._setWidthHeight(),this},_getLeftToOriginX:x({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:x({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(C){C.beginPath();var k=this.calcLinePoints();C.moveTo(k.x1,k.y1),C.lineTo(k.x2,k.y2),C.lineWidth=this.strokeWidth;var T=C.strokeStyle;C.strokeStyle=this.stroke||C.fillStyle,this.stroke&&this._renderStroke(C),C.strokeStyle=T},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(C){return A(this.callSuper("toObject",C),this.calcLinePoints())},_getNonTransformedDimensions:function(){var C=this.callSuper("_getNonTransformedDimensions");return this.strokeLineCap==="butt"&&(this.width===0&&(C.y-=this.strokeWidth),this.height===0&&(C.x-=this.strokeWidth)),C},calcLinePoints:function(){var C=this.x1<=this.x2?-1:1,k=this.y1<=this.y2?-1:1,T=C*this.width*.5,S=k*this.height*.5,M=C*this.width*-.5,P=k*this.height*-.5;return{x1:T,x2:M,y1:S,y2:P}},_toSVG:function(){var C=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',C.x1,'" y1="',C.y1,'" x2="',C.x2,'" y2="',C.y2,`" />
`]}}),d.Line.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),d.Line.fromElement=function(C,k,T){T=T||{};var S=d.parseAttributes(C,d.Line.ATTRIBUTE_NAMES),M=[S.x1||0,S.y1||0,S.x2||0,S.y2||0];k(new d.Line(M,A(S,T)))},d.Line.fromObject=function(C,k){function T(M){delete M.points,k&&k(M)}var S=v(C,!0);S.points=[C.x1,C.y1,C.x2,C.y2],d.Object._fromObject("Line",S,T,"points")};function x(C,k){var T=C.origin,S=C.axis1,M=C.axis2,P=C.dimension,N=k.nearest,B=k.center,O=k.farthest;return function(){switch(this.get(T)){case N:return Math.min(this.get(S),this.get(M));case B:return Math.min(this.get(S),this.get(M))+.5*this.get(P);case O:return Math.max(this.get(S),this.get(M))}}}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=Math.PI;if(d.Circle){d.warn("fabric.Circle is already defined.");return}d.Circle=d.util.createClass(d.Object,{type:"circle",radius:0,startAngle:0,endAngle:A*2,cacheProperties:d.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(w,x){return this.callSuper("_set",w,x),w==="radius"&&this.setRadius(x),this},toObject:function(w){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(w))},_toSVG:function(){var w,x=0,C=0,k=(this.endAngle-this.startAngle)%(2*A);if(k===0)w=["<circle ","COMMON_PARTS",'cx="'+x+'" cy="'+C+'" ','r="',this.radius,`" />
`];else{var T=d.util.cos(this.startAngle)*this.radius,S=d.util.sin(this.startAngle)*this.radius,M=d.util.cos(this.endAngle)*this.radius,P=d.util.sin(this.endAngle)*this.radius,N=k>A?"1":"0";w=['<path d="M '+T+" "+S," A "+this.radius+" "+this.radius," 0 ",+N+" 1"," "+M+" "+P,'" ',"COMMON_PARTS",` />
`]}return w},_render:function(w){w.beginPath(),w.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(w)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(w){return this.radius=w,this.set("width",w*2).set("height",w*2)}}),d.Circle.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),d.Circle.fromElement=function(w,x){var C=d.parseAttributes(w,d.Circle.ATTRIBUTE_NAMES);if(!v(C))throw new Error("value of `r` attribute is required and can not be negative");C.left=(C.left||0)-C.radius,C.top=(C.top||0)-C.radius,x(new d.Circle(C))};function v(w){return"radius"in w&&w.radius>=0}d.Circle.fromObject=function(w,x){d.Object._fromObject("Circle",w,x)}})(f),(function(h){var d=h.fabric||(h.fabric={});if(d.Triangle){d.warn("fabric.Triangle is already defined");return}d.Triangle=d.util.createClass(d.Object,{type:"triangle",width:100,height:100,_render:function(A){var v=this.width/2,w=this.height/2;A.beginPath(),A.moveTo(-v,w),A.lineTo(0,-w),A.lineTo(v,w),A.closePath(),this._renderPaintInOrder(A)},_toSVG:function(){var A=this.width/2,v=this.height/2,w=[-A+" "+v,"0 "+-v,A+" "+v].join(",");return["<polygon ","COMMON_PARTS",'points="',w,'" />']}}),d.Triangle.fromObject=function(A,v){return d.Object._fromObject("Triangle",A,v)}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=Math.PI*2;if(d.Ellipse){d.warn("fabric.Ellipse is already defined.");return}d.Ellipse=d.util.createClass(d.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:d.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(v){this.callSuper("initialize",v),this.set("rx",v&&v.rx||0),this.set("ry",v&&v.ry||0)},_set:function(v,w){switch(this.callSuper("_set",v,w),v){case"rx":this.rx=w,this.set("width",w*2);break;case"ry":this.ry=w,this.set("height",w*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(v){return this.callSuper("toObject",["rx","ry"].concat(v))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
`]},_render:function(v){v.beginPath(),v.save(),v.transform(1,0,0,this.ry/this.rx,0,0),v.arc(0,0,this.rx,0,A,!1),v.restore(),this._renderPaintInOrder(v)}}),d.Ellipse.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),d.Ellipse.fromElement=function(v,w){var x=d.parseAttributes(v,d.Ellipse.ATTRIBUTE_NAMES);x.left=(x.left||0)-x.rx,x.top=(x.top||0)-x.ry,w(new d.Ellipse(x))},d.Ellipse.fromObject=function(v,w){d.Object._fromObject("Ellipse",v,w)}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend;if(d.Rect){d.warn("fabric.Rect is already defined");return}d.Rect=d.util.createClass(d.Object,{stateProperties:d.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:d.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(v){this.callSuper("initialize",v),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(v){var w=this.rx?Math.min(this.rx,this.width/2):0,x=this.ry?Math.min(this.ry,this.height/2):0,C=this.width,k=this.height,T=-this.width/2,S=-this.height/2,M=w!==0||x!==0,P=1-.5522847498;v.beginPath(),v.moveTo(T+w,S),v.lineTo(T+C-w,S),M&&v.bezierCurveTo(T+C-P*w,S,T+C,S+P*x,T+C,S+x),v.lineTo(T+C,S+k-x),M&&v.bezierCurveTo(T+C,S+k-P*x,T+C-P*w,S+k,T+C-w,S+k),v.lineTo(T+w,S+k),M&&v.bezierCurveTo(T+P*w,S+k,T,S+k-P*x,T,S+k-x),v.lineTo(T,S+x),M&&v.bezierCurveTo(T,S+P*x,T+P*w,S,T+w,S),v.closePath(),this._renderPaintInOrder(v)},toObject:function(v){return this.callSuper("toObject",["rx","ry"].concat(v))},_toSVG:function(){var v=-this.width/2,w=-this.height/2;return["<rect ","COMMON_PARTS",'x="',v,'" y="',w,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
`]}}),d.Rect.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),d.Rect.fromElement=function(v,w,x){if(!v)return w(null);x=x||{};var C=d.parseAttributes(v,d.Rect.ATTRIBUTE_NAMES);C.left=C.left||0,C.top=C.top||0,C.height=C.height||0,C.width=C.width||0;var k=new d.Rect(A(x?d.util.object.clone(x):{},C));k.visible=k.visible&&k.width>0&&k.height>0,w(k)},d.Rect.fromObject=function(v,w){return d.Object._fromObject("Rect",v,w)}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.util.array.min,w=d.util.array.max,x=d.util.toFixed;if(d.Polyline){d.warn("fabric.Polyline is already defined");return}d.Polyline=d.util.createClass(d.Object,{type:"polyline",points:null,cacheProperties:d.Object.prototype.cacheProperties.concat("points"),initialize:function(C,k){k=k||{},this.points=C||[],this.callSuper("initialize",k),this._setPositionDimensions(k)},_setPositionDimensions:function(C){var k=this._calcDimensions(C),T;this.width=k.width,this.height=k.height,C.fromSVG||(T=this.translateToGivenOrigin({x:k.left-this.strokeWidth/2,y:k.top-this.strokeWidth/2},"left","top",this.originX,this.originY)),typeof C.left>"u"&&(this.left=C.fromSVG?k.left:T.x),typeof C.top>"u"&&(this.top=C.fromSVG?k.top:T.y),this.pathOffset={x:k.left+this.width/2,y:k.top+this.height/2}},_calcDimensions:function(){var C=this.points,k=v(C,"x")||0,T=v(C,"y")||0,S=w(C,"x")||0,M=w(C,"y")||0,P=S-k,N=M-T;return{left:k,top:T,width:P,height:N}},toObject:function(C){return A(this.callSuper("toObject",C),{points:this.points.concat()})},_toSVG:function(){for(var C=[],k=this.pathOffset.x,T=this.pathOffset.y,S=d.Object.NUM_FRACTION_DIGITS,M=0,P=this.points.length;M<P;M++)C.push(x(this.points[M].x-k,S),",",x(this.points[M].y-T,S)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',C.join(""),`" />
`]},commonRender:function(C){var k,T=this.points.length,S=this.pathOffset.x,M=this.pathOffset.y;if(!T||isNaN(this.points[T-1].y))return!1;C.beginPath(),C.moveTo(this.points[0].x-S,this.points[0].y-M);for(var P=0;P<T;P++)k=this.points[P],C.lineTo(k.x-S,k.y-M);return!0},_render:function(C){this.commonRender(C)&&this._renderPaintInOrder(C)},complexity:function(){return this.get("points").length}}),d.Polyline.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat(),d.Polyline.fromElementGenerator=function(C){return function(k,T,S){if(!k)return T(null);S||(S={});var M=d.parsePointsAttribute(k.getAttribute("points")),P=d.parseAttributes(k,d[C].ATTRIBUTE_NAMES);P.fromSVG=!0,T(new d[C](M,A(P,S)))}},d.Polyline.fromElement=d.Polyline.fromElementGenerator("Polyline"),d.Polyline.fromObject=function(C,k){return d.Object._fromObject("Polyline",C,k,"points")}})(f),(function(h){var d=h.fabric||(h.fabric={});if(d.Polygon){d.warn("fabric.Polygon is already defined");return}d.Polygon=d.util.createClass(d.Polyline,{type:"polygon",_render:function(A){this.commonRender(A)&&(A.closePath(),this._renderPaintInOrder(A))}}),d.Polygon.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat(),d.Polygon.fromElement=d.Polyline.fromElementGenerator("Polygon"),d.Polygon.fromObject=function(A,v){d.Object._fromObject("Polygon",A,v,"points")}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.array.min,v=d.util.array.max,w=d.util.object.extend,x=Object.prototype.toString,C=d.util.toFixed;if(d.Path){d.warn("fabric.Path is already defined");return}d.Path=d.util.createClass(d.Object,{type:"path",path:null,cacheProperties:d.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:d.Object.prototype.stateProperties.concat("path"),initialize:function(k,T){T=T||{},this.callSuper("initialize",T),k||(k=[]);var S=x.call(k)==="[object Array]";this.path=d.util.makePathSimpler(S?k:d.util.parsePath(k)),this.path&&d.Polyline.prototype._setPositionDimensions.call(this,T)},_renderPathCommands:function(k){var T,S=0,M=0,P=0,N=0,B=0,O=0,I=-this.pathOffset.x,F=-this.pathOffset.y;k.beginPath();for(var L=0,R=this.path.length;L<R;++L)switch(T=this.path[L],T[0]){case"L":P=T[1],N=T[2],k.lineTo(P+I,N+F);break;case"M":P=T[1],N=T[2],S=P,M=N,k.moveTo(P+I,N+F);break;case"C":P=T[5],N=T[6],B=T[3],O=T[4],k.bezierCurveTo(T[1]+I,T[2]+F,B+I,O+F,P+I,N+F);break;case"Q":k.quadraticCurveTo(T[1]+I,T[2]+F,T[3]+I,T[4]+F),P=T[3],N=T[4],B=T[1],O=T[2];break;case"z":case"Z":P=S,N=M,k.closePath();break}},_render:function(k){this._renderPathCommands(k),this._renderPaintInOrder(k)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(k){return w(this.callSuper("toObject",k),{path:this.path.map(function(T){return T.slice()})})},toDatalessObject:function(k){var T=this.toObject(["sourcePath"].concat(k));return T.sourcePath&&delete T.path,T},_toSVG:function(){var k=d.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',k,'" stroke-linecap="round" ',`/>
`]},_getOffsetTransform:function(){var k=d.Object.NUM_FRACTION_DIGITS;return" translate("+C(-this.pathOffset.x,k)+", "+C(-this.pathOffset.y,k)+")"},toClipPathSVG:function(k){var T=this._getOffsetTransform();return"	"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:k,additionalTransform:T})},toSVG:function(k){var T=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:k,additionalTransform:T})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var k=[],T=[],S,M=0,P=0,N=0,B=0,O,I=0,F=this.path.length;I<F;++I){switch(S=this.path[I],S[0]){case"L":N=S[1],B=S[2],O=[];break;case"M":N=S[1],B=S[2],M=N,P=B,O=[];break;case"C":O=d.util.getBoundsOfCurve(N,B,S[1],S[2],S[3],S[4],S[5],S[6]),N=S[5],B=S[6];break;case"Q":O=d.util.getBoundsOfCurve(N,B,S[1],S[2],S[1],S[2],S[3],S[4]),N=S[3],B=S[4];break;case"z":case"Z":N=M,B=P;break}O.forEach(function(le){k.push(le.x),T.push(le.y)}),k.push(N),T.push(B)}var L=A(k)||0,R=A(T)||0,U=v(k)||0,V=v(T)||0,W=U-L,Q=V-R;return{left:L,top:R,width:W,height:Q}}}),d.Path.fromObject=function(k,T){if(typeof k.sourcePath=="string"){var S=k.sourcePath;d.loadSVGFromURL(S,function(M){var P=M[0];P.setOptions(k),T&&T(P)})}else d.Object._fromObject("Path",k,T,"path")},d.Path.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat(["d"]),d.Path.fromElement=function(k,T,S){var M=d.parseAttributes(k,d.Path.ATTRIBUTE_NAMES);M.fromSVG=!0,T(new d.Path(M.d,w(M,S)))}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.array.min,v=d.util.array.max;d.Group||(d.Group=d.util.createClass(d.Object,d.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(w,x,C){x=x||{},this._objects=[],C&&this.callSuper("initialize",x),this._objects=w||[];for(var k=this._objects.length;k--;)this._objects[k].group=this;if(C)this._updateObjectsACoords();else{var T=x&&x.centerPoint;x.originX!==void 0&&(this.originX=x.originX),x.originY!==void 0&&(this.originY=x.originY),T||this._calcBounds(),this._updateObjectsCoords(T),delete x.centerPoint,this.callSuper("initialize",x)}this.setCoords()},_updateObjectsACoords:function(){for(var w=!0,x=this._objects.length;x--;)this._objects[x].setCoords(w)},_updateObjectsCoords:function(x){for(var x=x||this.getCenterPoint(),C=this._objects.length;C--;)this._updateObjectCoords(this._objects[C],x)},_updateObjectCoords:function(w,x){var C=w.left,k=w.top,T=!0;w.set({left:C-x.x,top:k-x.y}),w.group=this,w.setCoords(T)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(w){var x=!!this.group;return this._restoreObjectsState(),d.util.resetObjectTransform(this),w&&(x&&d.util.removeTransformFromObject(w,this.group.calcTransformMatrix()),this._objects.push(w),w.group=this,w._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,x?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(w){return this._restoreObjectsState(),d.util.resetObjectTransform(this),this.remove(w),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(w){this.dirty=!0,w.group=this,w._set("canvas",this.canvas)},_onObjectRemoved:function(w){this.dirty=!0,delete w.group},_set:function(w,x){var C=this._objects.length;if(this.useSetOnGroup)for(;C--;)this._objects[C].setOnGroup(w,x);if(w==="canvas")for(;C--;)this._objects[C]._set(w,x);d.Object.prototype._set.call(this,w,x)},toObject:function(w){var x=this.includeDefaultValues,C=this._objects.filter(function(T){return!T.excludeFromExport}).map(function(T){var S=T.includeDefaultValues;T.includeDefaultValues=x;var M=T.toObject(w);return T.includeDefaultValues=S,M}),k=d.Object.prototype.toObject.call(this,w);return k.objects=C,k},toDatalessObject:function(w){var x,C=this.sourcePath;if(C)x=C;else{var k=this.includeDefaultValues;x=this._objects.map(function(S){var M=S.includeDefaultValues;S.includeDefaultValues=k;var P=S.toDatalessObject(w);return S.includeDefaultValues=M,P})}var T=d.Object.prototype.toDatalessObject.call(this,w);return T.objects=x,T},render:function(w){this._transformDone=!0,this.callSuper("render",w),this._transformDone=!1},shouldCache:function(){var w=d.Object.prototype.shouldCache.call(this);if(w){for(var x=0,C=this._objects.length;x<C;x++)if(this._objects[x].willDrawShadow())return this.ownCaching=!1,!1}return w},willDrawShadow:function(){if(d.Object.prototype.willDrawShadow.call(this))return!0;for(var w=0,x=this._objects.length;w<x;w++)if(this._objects[w].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(w){for(var x=0,C=this._objects.length;x<C;x++)this._objects[x].render(w);this._drawClipPath(w)},isCacheDirty:function(w){if(this.callSuper("isCacheDirty",w))return!0;if(!this.statefullCache)return!1;for(var x=0,C=this._objects.length;x<C;x++)if(this._objects[x].isCacheDirty(!0)){if(this._cacheCanvas){var k=this.cacheWidth/this.zoomX,T=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-k/2,-T/2,k,T)}return!0}return!1},_restoreObjectsState:function(){var w=this.calcOwnMatrix();return this._objects.forEach(function(x){d.util.addTransformToObject(x,w),delete x.group,x.setCoords()}),this},realizeTransform:function(w,x){return d.util.addTransformToObject(w,x),w},destroy:function(){return this._objects.forEach(function(w){w.set("dirty",!0)}),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var w=this._objects,x=this.canvas;this._objects=[];var C=this.toObject();delete C.objects;var k=new d.ActiveSelection([]);return k.set(C),k.type="activeSelection",x.remove(this),w.forEach(function(T){T.group=k,T.dirty=!0,x.add(T)}),k.canvas=x,k._objects=w,x._activeObject=k,k.setCoords(),k}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var w=!0;return this.forEachObject(function(x){x.setCoords(w)}),this},_calcBounds:function(w){for(var x=[],C=[],k,T,S,M=["tr","br","bl","tl"],P=0,N=this._objects.length,B,O=M.length;P<N;++P){for(k=this._objects[P],S=k.calcACoords(),B=0;B<O;B++)T=M[B],x.push(S[T].x),C.push(S[T].y);k.aCoords=S}this._getBounds(x,C,w)},_getBounds:function(w,x,C){var k=new d.Point(A(w),A(x)),T=new d.Point(v(w),v(x)),S=k.y||0,M=k.x||0,P=T.x-k.x||0,N=T.y-k.y||0;this.width=P,this.height=N,C||this.setPositionByOrigin({x:M,y:S},"left","top")},_toSVG:function(w){for(var x=["<g ","COMMON_PARTS",` >
`],C=0,k=this._objects.length;C<k;C++)x.push("		",this._objects[C].toSVG(w));return x.push(`</g>
`),x},getSvgStyles:function(){var w=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",x=this.visible?"":" visibility: hidden;";return[w,this.getSvgFilter(),x].join("")},toClipPathSVG:function(w){for(var x=[],C=0,k=this._objects.length;C<k;C++)x.push("	",this._objects[C].toClipPathSVG(w));return this._createBaseClipPathSVGMarkup(x,{reviver:w})}}),d.Group.fromObject=function(w,x){var C=w.objects,k=d.util.object.clone(w,!0);if(delete k.objects,typeof C=="string"){d.loadSVGFromURL(C,function(T){var S=d.util.groupSVGElements(T,w,C);S.set(k),x&&x(S)});return}d.util.enlivenObjects(C,function(T){d.util.enlivenObjects([w.clipPath],function(S){var M=d.util.object.clone(w,!0);M.clipPath=S[0],delete M.objects,x&&x(new d.Group(T,M,!0))})})})})(f),(function(h){var d=h.fabric||(h.fabric={});d.ActiveSelection||(d.ActiveSelection=d.util.createClass(d.Group,{type:"activeSelection",initialize:function(A,v){v=v||{},this._objects=A||[];for(var w=this._objects.length;w--;)this._objects[w].group=this;v.originX&&(this.originX=v.originX),v.originY&&(this.originY=v.originY),this._calcBounds(),this._updateObjectsCoords(),d.Object.prototype.initialize.call(this,v),this.setCoords()},toGroup:function(){var A=this._objects.concat();this._objects=[];var v=d.Object.prototype.toObject.call(this),w=new d.Group([]);if(delete v.type,w.set(v),A.forEach(function(C){C.canvas.remove(C),C.group=w}),w._objects=A,!this.canvas)return w;var x=this.canvas;return x.add(w),x._activeObject=w,w.setCoords(),w},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(A,v,w){A.save(),A.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",A,v),w=w||{},typeof w.hasControls>"u"&&(w.hasControls=!1),w.forActiveSelection=!0;for(var x=0,C=this._objects.length;x<C;x++)this._objects[x]._renderControls(A,w);A.restore()}}),d.ActiveSelection.fromObject=function(A,v){d.util.enlivenObjects(A.objects,function(w){delete A.objects,v&&v(new d.ActiveSelection(w,A,!0))})})})(f),(function(h){var d=l.util.object.extend;if(h.fabric||(h.fabric={}),h.fabric.Image){l.warn("fabric.Image is already defined.");return}l.Image=l.util.createClass(l.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:l.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:l.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(A,v){v||(v={}),this.filters=[],this.cacheKey="texture"+l.Object.__uid++,this.callSuper("initialize",v),this._initElement(A,v)},getElement:function(){return this._element||{}},setElement:function(A,v){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=A,this._originalElement=A,this._initConfig(v),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(A){var v=l.filterBackend;v&&v.evictCachesForKey&&v.evictCachesForKey(A)},dispose:function(){this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach((function(A){l.util.cleanUpJsdomNode(this[A]),this[A]=void 0}).bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var A=this.getElement();return{width:A.naturalWidth||A.width,height:A.naturalHeight||A.height}},_stroke:function(A){if(!(!this.stroke||this.strokeWidth===0)){var v=this.width/2,w=this.height/2;A.beginPath(),A.moveTo(-v,-w),A.lineTo(v,-w),A.lineTo(v,w),A.lineTo(-v,w),A.lineTo(-v,-w),A.closePath()}},toObject:function(A){var v=[];this.filters.forEach(function(x){x&&v.push(x.toObject())});var w=d(this.callSuper("toObject",["cropX","cropY"].concat(A)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:v});return this.resizeFilter&&(w.resizeFilter=this.resizeFilter.toObject()),w},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var A=[],v=[],w,x=this._element,C=-this.width/2,k=-this.height/2,T="",S="";if(!x)return[];if(this.hasCrop()){var M=l.Object.__uid++;A.push('<clipPath id="imageCrop_'+M+`">
`,'	<rect x="'+C+'" y="'+k+'" width="'+this.width+'" height="'+this.height+`" />
`,`</clipPath>
`),T=' clip-path="url(#imageCrop_'+M+')" '}if(this.imageSmoothing||(S='" image-rendering="optimizeSpeed'),v.push("	<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',C-this.cropX,'" y="',k-this.cropY,'" width="',x.width||x.naturalWidth,'" height="',x.height||x.height,S,'"',T,`></image>
`),this.stroke||this.strokeDashArray){var P=this.fill;this.fill=null,w=["	<rect ",'x="',C,'" y="',k,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
`],this.fill=P}return this.paintFirst!=="fill"?A=A.concat(w,v):A=A.concat(v,w),A},getSrc:function(A){var v=A?this._element:this._originalElement;return v?v.toDataURL?v.toDataURL():this.srcFromAttribute?v.getAttribute("src"):v.src:this.src||""},setSrc:function(A,v,w){return l.util.loadImage(A,function(x,C){this.setElement(x,w),this._setWidthHeight(),v&&v(this,C)},this,w&&w.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var A=this.resizeFilter,v=this.minimumScaleTrigger,w=this.getTotalObjectScaling(),x=w.scaleX,C=w.scaleY,k=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!A||x>v&&C>v){this._element=k,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=x,this._lastScaleY=C;return}l.filterBackend||(l.filterBackend=l.initFilterBackend());var T=l.util.createCanvasElement(),S=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,M=k.width,P=k.height;T.width=M,T.height=P,this._element=T,this._lastScaleX=A.scaleX=x,this._lastScaleY=A.scaleY=C,l.filterBackend.applyFilters([A],k,M,P,this._element,S),this._filterScalingX=T.width/this._originalElement.width,this._filterScalingY=T.height/this._originalElement.height},applyFilters:function(A){if(A=A||this.filters||[],A=A.filter(function(k){return k&&!k.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),A.length===0)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var v=this._originalElement,w=v.naturalWidth||v.width,x=v.naturalHeight||v.height;if(this._element===this._originalElement){var C=l.util.createCanvasElement();C.width=w,C.height=x,this._element=C,this._filteredEl=C}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,w,x),this._lastScaleX=1,this._lastScaleY=1;return l.filterBackend||(l.filterBackend=l.initFilterBackend()),l.filterBackend.applyFilters(A,this._originalElement,w,x,this._element,this.cacheKey),(this._originalElement.width!==this._element.width||this._originalElement.height!==this._element.height)&&(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(A){l.util.setImageSmoothing(A,this.imageSmoothing),this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(A),this._renderPaintInOrder(A)},drawCacheOnCanvas:function(A){l.util.setImageSmoothing(A,this.imageSmoothing),l.Object.prototype.drawCacheOnCanvas.call(this,A)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(A){var v=this._element;if(v){var w=this._filterScalingX,x=this._filterScalingY,C=this.width,k=this.height,T=Math.min,S=Math.max,M=S(this.cropX,0),P=S(this.cropY,0),N=v.naturalWidth||v.width,B=v.naturalHeight||v.height,O=M*w,I=P*x,F=T(C*w,N-O),L=T(k*x,B-I),R=-C/2,U=-k/2,V=T(C,N/w-M),W=T(k,B/x-P);v&&A.drawImage(v,O,I,F,L,R,U,V,W)}},_needsResize:function(){var A=this.getTotalObjectScaling();return A.scaleX!==this._lastScaleX||A.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(A,v){this.setElement(l.util.getById(A),v),l.util.addClass(this.getElement(),l.Image.CSS_CANVAS)},_initConfig:function(A){A||(A={}),this.setOptions(A),this._setWidthHeight(A)},_initFilters:function(A,v){A&&A.length?l.util.enlivenObjects(A,function(w){v&&v(w)},"fabric.Image.filters"):v&&v()},_setWidthHeight:function(A){A||(A={});var v=this.getElement();this.width=A.width||v.naturalWidth||v.width||0,this.height=A.height||v.naturalHeight||v.height||0},parsePreserveAspectRatioAttribute:function(){var A=l.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),v=this._element.width,w=this._element.height,x=1,C=1,k=0,T=0,S=0,M=0,P,N=this.width,B=this.height,O={width:N,height:B};return A&&(A.alignX!=="none"||A.alignY!=="none")?(A.meetOrSlice==="meet"&&(x=C=l.util.findScaleToFit(this._element,O),P=(N-v*x)/2,A.alignX==="Min"&&(k=-P),A.alignX==="Max"&&(k=P),P=(B-w*C)/2,A.alignY==="Min"&&(T=-P),A.alignY==="Max"&&(T=P)),A.meetOrSlice==="slice"&&(x=C=l.util.findScaleToCover(this._element,O),P=v-N/x,A.alignX==="Mid"&&(S=P/2),A.alignX==="Max"&&(S=P),P=w-B/C,A.alignY==="Mid"&&(M=P/2),A.alignY==="Max"&&(M=P),v=N/x,w=B/C)):(x=N/v,C=B/w),{width:v,height:w,scaleX:x,scaleY:C,offsetLeft:k,offsetTop:T,cropX:S,cropY:M}}}),l.Image.CSS_CANVAS="canvas-img",l.Image.prototype.getSvgSrc=l.Image.prototype.getSrc,l.Image.fromObject=function(A,v){var w=l.util.object.clone(A);l.util.loadImage(w.src,function(x,C){if(C){v&&v(null,!0);return}l.Image.prototype._initFilters.call(w,w.filters,function(k){w.filters=k||[],l.Image.prototype._initFilters.call(w,[w.resizeFilter],function(T){w.resizeFilter=T[0],l.util.enlivenObjects([w.clipPath],function(S){w.clipPath=S[0];var M=new l.Image(x,w);v(M,!1)})})})},null,w.crossOrigin)},l.Image.fromURL=function(A,v,w){l.util.loadImage(A,function(x,C){v&&v(new l.Image(x,w),C)},null,w&&w.crossOrigin)},l.Image.ATTRIBUTE_NAMES=l.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),l.Image.fromElement=function(A,v,w){var x=l.parseAttributes(A,l.Image.ATTRIBUTE_NAMES);l.Image.fromURL(x["xlink:href"],v,d(w?l.util.object.clone(w):{},x))}})(f),l.util.object.extend(l.Object.prototype,{_getAngleValueForStraighten:function(){var h=this.angle%360;return h>0?Math.round((h-1)/90)*90:Math.round(h/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(h){h=h||{};var d=function(){},A=h.onComplete||d,v=h.onChange||d,w=this;return l.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(x){w.rotate(x),v()},onComplete:function(){w.setCoords(),A()}}),this}}),l.util.object.extend(l.StaticCanvas.prototype,{straightenObject:function(h){return h.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(h){return h.fxStraighten({onChange:this.requestRenderAllBound}),this}}),(function(){function h(A,v){var w="precision "+v+` float;
void main(){}`,x=A.createShader(A.FRAGMENT_SHADER);return A.shaderSource(x,w),A.compileShader(x),!!A.getShaderParameter(x,A.COMPILE_STATUS)}l.isWebglSupported=function(A){if(l.isLikelyNode)return!1;A=A||l.WebglFilterBackend.prototype.tileSize;var v=document.createElement("canvas"),w=v.getContext("webgl")||v.getContext("experimental-webgl"),x=!1;if(w){l.maxTextureSize=w.getParameter(w.MAX_TEXTURE_SIZE),x=l.maxTextureSize>=A;for(var C=["highp","mediump","lowp"],k=0;k<3;k++)if(h(w,C[k])){l.webGlPrecision=C[k];break}}return this.isSupported=x,x},l.WebglFilterBackend=d;function d(A){A&&A.tileSize&&(this.tileSize=A.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}d.prototype={tileSize:2048,resources:{},setupGLContext:function(A,v){this.dispose(),this.createWebGLCanvas(A,v),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(A,v)},chooseFastestCopyGLTo2DMethod:function(A,v){var w=typeof window.performance<"u",x;try{new ImageData(1,1),x=!0}catch{x=!1}var C=typeof ArrayBuffer<"u",k=typeof Uint8ClampedArray<"u";if(w&&x&&C&&k){var T=l.util.createCanvasElement(),S=new ArrayBuffer(A*v*4);if(l.forceGLPutImageData){this.imageBuffer=S,this.copyGLTo2D=y;return}var M={imageBuffer:S,destinationWidth:A,destinationHeight:v,targetCanvas:T},P,N,B;T.width=A,T.height=v,P=window.performance.now(),_.call(M,this.gl,M),N=window.performance.now()-P,P=window.performance.now(),y.call(M,this.gl,M),B=window.performance.now()-P,N>B?(this.imageBuffer=S,this.copyGLTo2D=y):this.copyGLTo2D=_}},createWebGLCanvas:function(A,v){var w=l.util.createCanvasElement();w.width=A,w.height=v;var x={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},C=w.getContext("webgl",x);C||(C=w.getContext("experimental-webgl",x)),C&&(C.clearColor(0,0,0,0),this.canvas=w,this.gl=C)},applyFilters:function(A,v,w,x,C,k){var T=this.gl,S;k&&(S=this.getCachedTexture(k,v));var M={originalWidth:v.width||v.originalWidth,originalHeight:v.height||v.originalHeight,sourceWidth:w,sourceHeight:x,destinationWidth:w,destinationHeight:x,context:T,sourceTexture:this.createTexture(T,w,x,!S&&v),targetTexture:this.createTexture(T,w,x),originalTexture:S||this.createTexture(T,w,x,!S&&v),passes:A.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:C},P=T.createFramebuffer();return T.bindFramebuffer(T.FRAMEBUFFER,P),A.forEach(function(N){N&&N.applyTo(M)}),p(M),this.copyGLTo2D(T,M),T.bindTexture(T.TEXTURE_2D,null),T.deleteTexture(M.sourceTexture),T.deleteTexture(M.targetTexture),T.deleteFramebuffer(P),C.getContext("2d").setTransform(1,0,0,1,0,0),M},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(A,v,w,x){var C=A.createTexture();return A.bindTexture(A.TEXTURE_2D,C),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),x?A.texImage2D(A.TEXTURE_2D,0,A.RGBA,A.RGBA,A.UNSIGNED_BYTE,x):A.texImage2D(A.TEXTURE_2D,0,A.RGBA,v,w,0,A.RGBA,A.UNSIGNED_BYTE,null),C},getCachedTexture:function(A,v){if(this.textureCache[A])return this.textureCache[A];var w=this.createTexture(this.gl,v.width,v.height,v);return this.textureCache[A]=w,w},evictCachesForKey:function(A){this.textureCache[A]&&(this.gl.deleteTexture(this.textureCache[A]),delete this.textureCache[A])},copyGLTo2D:_,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var A=this.gl,v={renderer:"",vendor:""};if(!A)return v;var w=A.getExtension("WEBGL_debug_renderer_info");if(w){var x=A.getParameter(w.UNMASKED_RENDERER_WEBGL),C=A.getParameter(w.UNMASKED_VENDOR_WEBGL);x&&(v.renderer=x.toLowerCase()),C&&(v.vendor=C.toLowerCase())}return this.gpuInfo=v,v}}})();function p(h){var d=h.targetCanvas,A=d.width,v=d.height,w=h.destinationWidth,x=h.destinationHeight;(A!==w||v!==x)&&(d.width=w,d.height=x)}function _(h,d){var A=h.canvas,v=d.targetCanvas,w=v.getContext("2d");w.translate(0,v.height),w.scale(1,-1);var x=A.height-v.height;w.drawImage(A,0,x,v.width,v.height,0,0,v.width,v.height)}function y(h,d){var A=d.targetCanvas,v=A.getContext("2d"),w=d.destinationWidth,x=d.destinationHeight,C=w*x*4,k=new Uint8Array(this.imageBuffer,0,C),T=new Uint8ClampedArray(this.imageBuffer,0,C);h.readPixels(0,0,w,x,h.RGBA,h.UNSIGNED_BYTE,k);var S=new ImageData(T,w,x);v.putImageData(S,0,0)}(function(){var h=function(){};l.Canvas2dFilterBackend=d;function d(){}d.prototype={evictCachesForKey:h,dispose:h,clearWebGLCaches:h,resources:{},applyFilters:function(A,v,w,x,C){var k=C.getContext("2d");k.drawImage(v,0,0,w,x);var T=k.getImageData(0,0,w,x),S=k.getImageData(0,0,w,x),M={sourceWidth:w,sourceHeight:x,imageData:T,originalEl:v,originalImageData:S,canvasEl:C,ctx:k,filterBackend:this};return A.forEach(function(P){P.applyTo(M)}),(M.imageData.width!==w||M.imageData.height!==x)&&(C.width=M.imageData.width,C.height=M.imageData.height),k.putImageData(M.imageData,0,0),M}}})(),l.Image=l.Image||{},l.Image.filters=l.Image.filters||{},l.Image.filters.BaseFilter=l.util.createClass({type:"BaseFilter",vertexSource:`attribute vec2 aPosition;
varying vec2 vTexCoord;
void main() {
vTexCoord = aPosition;
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
}`,fragmentSource:`precision highp float;
varying vec2 vTexCoord;
uniform sampler2D uTexture;
void main() {
gl_FragColor = texture2D(uTexture, vTexCoord);
}`,initialize:function(h){h&&this.setOptions(h)},setOptions:function(h){for(var d in h)this[d]=h[d]},createProgram:function(h,d,A){d=d||this.fragmentSource,A=A||this.vertexSource,l.webGlPrecision!=="highp"&&(d=d.replace(/precision highp float/g,"precision "+l.webGlPrecision+" float"));var v=h.createShader(h.VERTEX_SHADER);if(h.shaderSource(v,A),h.compileShader(v),!h.getShaderParameter(v,h.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+h.getShaderInfoLog(v));var w=h.createShader(h.FRAGMENT_SHADER);if(h.shaderSource(w,d),h.compileShader(w),!h.getShaderParameter(w,h.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+h.getShaderInfoLog(w));var x=h.createProgram();if(h.attachShader(x,v),h.attachShader(x,w),h.linkProgram(x),!h.getProgramParameter(x,h.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+h.getProgramInfoLog(x));var C=this.getAttributeLocations(h,x),k=this.getUniformLocations(h,x)||{};return k.uStepW=h.getUniformLocation(x,"uStepW"),k.uStepH=h.getUniformLocation(x,"uStepH"),{program:x,attributeLocations:C,uniformLocations:k}},getAttributeLocations:function(h,d){return{aPosition:h.getAttribLocation(d,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(h,d,A){var v=d.aPosition,w=h.createBuffer();h.bindBuffer(h.ARRAY_BUFFER,w),h.enableVertexAttribArray(v),h.vertexAttribPointer(v,2,h.FLOAT,!1,0,0),h.bufferData(h.ARRAY_BUFFER,A,h.STATIC_DRAW)},_setupFrameBuffer:function(h){var d=h.context,A,v;h.passes>1?(A=h.destinationWidth,v=h.destinationHeight,(h.sourceWidth!==A||h.sourceHeight!==v)&&(d.deleteTexture(h.targetTexture),h.targetTexture=h.filterBackend.createTexture(d,A,v)),d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,h.targetTexture,0)):(d.bindFramebuffer(d.FRAMEBUFFER,null),d.finish())},_swapTextures:function(h){h.passes--,h.pass++;var d=h.targetTexture;h.targetTexture=h.sourceTexture,h.sourceTexture=d},isNeutralState:function(){var h=this.mainParameter,d=l.Image.filters[this.type].prototype;if(h)if(Array.isArray(d[h])){for(var A=d[h].length;A--;)if(this[h][A]!==d[h][A])return!1;return!0}else return d[h]===this[h];else return!1},applyTo:function(h){h.webgl?(this._setupFrameBuffer(h),this.applyToWebGL(h),this._swapTextures(h)):this.applyTo2d(h)},retrieveShader:function(h){return h.programCache.hasOwnProperty(this.type)||(h.programCache[this.type]=this.createProgram(h.context)),h.programCache[this.type]},applyToWebGL:function(h){var d=h.context,A=this.retrieveShader(h);h.pass===0&&h.originalTexture?d.bindTexture(d.TEXTURE_2D,h.originalTexture):d.bindTexture(d.TEXTURE_2D,h.sourceTexture),d.useProgram(A.program),this.sendAttributeData(d,A.attributeLocations,h.aPosition),d.uniform1f(A.uniformLocations.uStepW,1/h.sourceWidth),d.uniform1f(A.uniformLocations.uStepH,1/h.sourceHeight),this.sendUniformData(d,A.uniformLocations),d.viewport(0,0,h.destinationWidth,h.destinationHeight),d.drawArrays(d.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(h,d,A){h.activeTexture(A),h.bindTexture(h.TEXTURE_2D,d),h.activeTexture(h.TEXTURE0)},unbindAdditionalTexture:function(h,d){h.activeTexture(d),h.bindTexture(h.TEXTURE_2D,null),h.activeTexture(h.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(h){this[this.mainParameter]=h},sendUniformData:function(){},createHelpLayer:function(h){if(!h.helpLayer){var d=document.createElement("canvas");d.width=h.sourceWidth,d.height=h.sourceHeight,h.helpLayer=d}},toObject:function(){var h={type:this.type},d=this.mainParameter;return d&&(h[d]=this[d]),h},toJSON:function(){return this.toObject()}}),l.Image.filters.BaseFilter.fromObject=function(h,d){var A=new l.Image.filters[h.type](h);return d&&d(A),A},(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.ColorMatrix=v(A.BaseFilter,{type:"ColorMatrix",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
varying vec2 vTexCoord;
uniform mat4 uColorMatrix;
uniform vec4 uConstants;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color *= uColorMatrix;
color += uConstants;
gl_FragColor = color;
}`,matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(w){this.callSuper("initialize",w),this.matrix=this.matrix.slice(0)},applyTo2d:function(w){var x=w.imageData,C=x.data,k=C.length,T=this.matrix,S,M,P,N,B,O=this.colorsOnly;for(B=0;B<k;B+=4)S=C[B],M=C[B+1],P=C[B+2],O?(C[B]=S*T[0]+M*T[1]+P*T[2]+T[4]*255,C[B+1]=S*T[5]+M*T[6]+P*T[7]+T[9]*255,C[B+2]=S*T[10]+M*T[11]+P*T[12]+T[14]*255):(N=C[B+3],C[B]=S*T[0]+M*T[1]+P*T[2]+N*T[3]+T[4]*255,C[B+1]=S*T[5]+M*T[6]+P*T[7]+N*T[8]+T[9]*255,C[B+2]=S*T[10]+M*T[11]+P*T[12]+N*T[13]+T[14]*255,C[B+3]=S*T[15]+M*T[16]+P*T[17]+N*T[18]+T[19]*255)},getUniformLocations:function(w,x){return{uColorMatrix:w.getUniformLocation(x,"uColorMatrix"),uConstants:w.getUniformLocation(x,"uConstants")}},sendUniformData:function(w,x){var C=this.matrix,k=[C[0],C[1],C[2],C[3],C[5],C[6],C[7],C[8],C[10],C[11],C[12],C[13],C[15],C[16],C[17],C[18]],T=[C[4],C[9],C[14],C[19]];w.uniformMatrix4fv(x.uColorMatrix,!1,k),w.uniform4fv(x.uConstants,T)}}),d.Image.filters.ColorMatrix.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Brightness=v(A.BaseFilter,{type:"Brightness",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uBrightness;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color.rgb += uBrightness;
gl_FragColor = color;
}`,brightness:0,mainParameter:"brightness",applyTo2d:function(w){if(this.brightness!==0){var x=w.imageData,C=x.data,k,T=C.length,S=Math.round(this.brightness*255);for(k=0;k<T;k+=4)C[k]=C[k]+S,C[k+1]=C[k+1]+S,C[k+2]=C[k+2]+S}},getUniformLocations:function(w,x){return{uBrightness:w.getUniformLocation(x,"uBrightness")}},sendUniformData:function(w,x){w.uniform1f(x.uBrightness,this.brightness)}}),d.Image.filters.Brightness.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.Image.filters,w=d.util.createClass;v.Convolute=w(v.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[9];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 3.0; h+=1.0) {
for (float w = 0.0; w < 3.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_3_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[9];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 3.0; h+=1.0) {
for (float w = 0.0; w < 3.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_5_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[25];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 5.0; h+=1.0) {
for (float w = 0.0; w < 5.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_5_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[25];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 5.0; h+=1.0) {
for (float w = 0.0; w < 5.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_7_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[49];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 7.0; h+=1.0) {
for (float w = 0.0; w < 7.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_7_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[49];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 7.0; h+=1.0) {
for (float w = 0.0; w < 7.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_9_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[81];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 9.0; h+=1.0) {
for (float w = 0.0; w < 9.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_9_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[81];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 9.0; h+=1.0) {
for (float w = 0.0; w < 9.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`},retrieveShader:function(x){var C=Math.sqrt(this.matrix.length),k=this.type+"_"+C+"_"+(this.opaque?1:0),T=this.fragmentSource[k];return x.programCache.hasOwnProperty(k)||(x.programCache[k]=this.createProgram(x.context,T)),x.programCache[k]},applyTo2d:function(x){var C=x.imageData,k=C.data,T=this.matrix,S=Math.round(Math.sqrt(T.length)),M=Math.floor(S/2),P=C.width,N=C.height,B=x.ctx.createImageData(P,N),O=B.data,I=this.opaque?1:0,F,L,R,U,V,W,Q,le,G,fe,ie,he,Y;for(ie=0;ie<N;ie++)for(fe=0;fe<P;fe++){for(V=(ie*P+fe)*4,F=0,L=0,R=0,U=0,Y=0;Y<S;Y++)for(he=0;he<S;he++)Q=ie+Y-M,W=fe+he-M,!(Q<0||Q>=N||W<0||W>=P)&&(le=(Q*P+W)*4,G=T[Y*S+he],F+=k[le]*G,L+=k[le+1]*G,R+=k[le+2]*G,I||(U+=k[le+3]*G));O[V]=F,O[V+1]=L,O[V+2]=R,I?O[V+3]=k[V+3]:O[V+3]=U}x.imageData=B},getUniformLocations:function(x,C){return{uMatrix:x.getUniformLocation(C,"uMatrix"),uOpaque:x.getUniformLocation(C,"uOpaque"),uHalfSize:x.getUniformLocation(C,"uHalfSize"),uSize:x.getUniformLocation(C,"uSize")}},sendUniformData:function(x,C){x.uniform1fv(C.uMatrix,this.matrix)},toObject:function(){return A(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),d.Image.filters.Convolute.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Grayscale=v(A.BaseFilter,{type:"Grayscale",fragmentSource:{average:`precision highp float;
uniform sampler2D uTexture;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float average = (color.r + color.b + color.g) / 3.0;
gl_FragColor = vec4(average, average, average, color.a);
}`,lightness:`precision highp float;
uniform sampler2D uTexture;
uniform int uMode;
varying vec2 vTexCoord;
void main() {
vec4 col = texture2D(uTexture, vTexCoord);
float average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;
gl_FragColor = vec4(average, average, average, col.a);
}`,luminosity:`precision highp float;
uniform sampler2D uTexture;
uniform int uMode;
varying vec2 vTexCoord;
void main() {
vec4 col = texture2D(uTexture, vTexCoord);
float average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;
gl_FragColor = vec4(average, average, average, col.a);
}`},mode:"average",mainParameter:"mode",applyTo2d:function(w){var x=w.imageData,C=x.data,k,T=C.length,S,M=this.mode;for(k=0;k<T;k+=4)M==="average"?S=(C[k]+C[k+1]+C[k+2])/3:M==="lightness"?S=(Math.min(C[k],C[k+1],C[k+2])+Math.max(C[k],C[k+1],C[k+2]))/2:M==="luminosity"&&(S=.21*C[k]+.72*C[k+1]+.07*C[k+2]),C[k]=S,C[k+1]=S,C[k+2]=S},retrieveShader:function(w){var x=this.type+"_"+this.mode;if(!w.programCache.hasOwnProperty(x)){var C=this.fragmentSource[this.mode];w.programCache[x]=this.createProgram(w.context,C)}return w.programCache[x]},getUniformLocations:function(w,x){return{uMode:w.getUniformLocation(x,"uMode")}},sendUniformData:function(w,x){var C=1;w.uniform1i(x.uMode,C)},isNeutralState:function(){return!1}}),d.Image.filters.Grayscale.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Invert=v(A.BaseFilter,{type:"Invert",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform int uInvert;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
if (uInvert == 1) {
gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);
} else {
gl_FragColor = color;
}
}`,invert:!0,mainParameter:"invert",applyTo2d:function(w){var x=w.imageData,C=x.data,k,T=C.length;for(k=0;k<T;k+=4)C[k]=255-C[k],C[k+1]=255-C[k+1],C[k+2]=255-C[k+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(w,x){return{uInvert:w.getUniformLocation(x,"uInvert")}},sendUniformData:function(w,x){w.uniform1i(x.uInvert,this.invert)}}),d.Image.filters.Invert.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.Image.filters,w=d.util.createClass;v.Noise=w(v.BaseFilter,{type:"Noise",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uStepH;
uniform float uNoise;
uniform float uSeed;
varying vec2 vTexCoord;
float rand(vec2 co, float seed, float vScale) {
return fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);
}
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;
gl_FragColor = color;
}`,mainParameter:"noise",noise:0,applyTo2d:function(x){if(this.noise!==0){var C=x.imageData,k=C.data,T,S=k.length,M=this.noise,P;for(T=0,S=k.length;T<S;T+=4)P=(.5-Math.random())*M,k[T]+=P,k[T+1]+=P,k[T+2]+=P}},getUniformLocations:function(x,C){return{uNoise:x.getUniformLocation(C,"uNoise"),uSeed:x.getUniformLocation(C,"uSeed")}},sendUniformData:function(x,C){x.uniform1f(C.uNoise,this.noise/255),x.uniform1f(C.uSeed,Math.random())},toObject:function(){return A(this.callSuper("toObject"),{noise:this.noise})}}),d.Image.filters.Noise.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Pixelate=v(A.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uBlocksize;
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
float blockW = uBlocksize * uStepW;
float blockH = uBlocksize * uStepW;
int posX = int(vTexCoord.x / blockW);
int posY = int(vTexCoord.y / blockH);
float fposX = float(posX);
float fposY = float(posY);
vec2 squareCoords = vec2(fposX * blockW, fposY * blockH);
vec4 color = texture2D(uTexture, squareCoords);
gl_FragColor = color;
}`,applyTo2d:function(w){var x=w.imageData,C=x.data,k=x.height,T=x.width,S,M,P,N,B,O,I,F,L,R,U;for(M=0;M<k;M+=this.blocksize)for(P=0;P<T;P+=this.blocksize)for(S=M*4*T+P*4,N=C[S],B=C[S+1],O=C[S+2],I=C[S+3],R=Math.min(M+this.blocksize,k),U=Math.min(P+this.blocksize,T),F=M;F<R;F++)for(L=P;L<U;L++)S=F*4*T+L*4,C[S]=N,C[S+1]=B,C[S+2]=O,C[S+3]=I},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(w,x){return{uBlocksize:w.getUniformLocation(x,"uBlocksize"),uStepW:w.getUniformLocation(x,"uStepW"),uStepH:w.getUniformLocation(x,"uStepH")}},sendUniformData:function(w,x){w.uniform1f(x.uBlocksize,this.blocksize)}}),d.Image.filters.Pixelate.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.extend,v=d.Image.filters,w=d.util.createClass;v.RemoveColor=w(v.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec4 uLow;
uniform vec4 uHigh;
varying vec2 vTexCoord;
void main() {
gl_FragColor = texture2D(uTexture, vTexCoord);
if(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {
gl_FragColor.a = 0.0;
}
}`,distance:.02,useAlpha:!1,applyTo2d:function(x){var C=x.imageData,k=C.data,T,S=this.distance*255,M,P,N,B=new d.Color(this.color).getSource(),O=[B[0]-S,B[1]-S,B[2]-S],I=[B[0]+S,B[1]+S,B[2]+S];for(T=0;T<k.length;T+=4)M=k[T],P=k[T+1],N=k[T+2],M>O[0]&&P>O[1]&&N>O[2]&&M<I[0]&&P<I[1]&&N<I[2]&&(k[T+3]=0)},getUniformLocations:function(x,C){return{uLow:x.getUniformLocation(C,"uLow"),uHigh:x.getUniformLocation(C,"uHigh")}},sendUniformData:function(x,C){var k=new d.Color(this.color).getSource(),T=parseFloat(this.distance),S=[0+k[0]/255-T,0+k[1]/255-T,0+k[2]/255-T,1],M=[k[0]/255+T,k[1]/255+T,k[2]/255+T,1];x.uniform4fv(C.uLow,S),x.uniform4fv(C.uHigh,M)},toObject:function(){return A(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),d.Image.filters.RemoveColor.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass,w={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var x in w)A[x]=v(A.ColorMatrix,{type:x,matrix:w[x],mainParameter:!1,colorsOnly:!0}),d.Image.filters[x].fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric,A=d.Image.filters,v=d.util.createClass;A.BlendColor=v(A.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:`gl_FragColor.rgb *= uColor.rgb;
`,screen:`gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);
`,add:`gl_FragColor.rgb += uColor.rgb;
`,diff:`gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);
`,subtract:`gl_FragColor.rgb -= uColor.rgb;
`,lighten:`gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);
`,darken:`gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);
`,exclusion:`gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);
`,overlay:`if (uColor.r < 0.5) {
gl_FragColor.r *= 2.0 * uColor.r;
} else {
gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);
}
if (uColor.g < 0.5) {
gl_FragColor.g *= 2.0 * uColor.g;
} else {
gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);
}
if (uColor.b < 0.5) {
gl_FragColor.b *= 2.0 * uColor.b;
} else {
gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);
}
`,tint:`gl_FragColor.rgb *= (1.0 - uColor.a);
gl_FragColor.rgb += uColor.rgb;
`},buildSource:function(w){return`precision highp float;
uniform sampler2D uTexture;
uniform vec4 uColor;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
gl_FragColor = color;
if (color.a > 0.0) {
`+this.fragmentSource[w]+`}
}`},retrieveShader:function(w){var x=this.type+"_"+this.mode,C;return w.programCache.hasOwnProperty(x)||(C=this.buildSource(this.mode),w.programCache[x]=this.createProgram(w.context,C)),w.programCache[x]},applyTo2d:function(w){var x=w.imageData,C=x.data,k=C.length,T,S,M,P,N,B,O,I=1-this.alpha;O=new d.Color(this.color).getSource(),T=O[0]*this.alpha,S=O[1]*this.alpha,M=O[2]*this.alpha;for(var F=0;F<k;F+=4)switch(P=C[F],N=C[F+1],B=C[F+2],this.mode){case"multiply":C[F]=P*T/255,C[F+1]=N*S/255,C[F+2]=B*M/255;break;case"screen":C[F]=255-(255-P)*(255-T)/255,C[F+1]=255-(255-N)*(255-S)/255,C[F+2]=255-(255-B)*(255-M)/255;break;case"add":C[F]=P+T,C[F+1]=N+S,C[F+2]=B+M;break;case"diff":case"difference":C[F]=Math.abs(P-T),C[F+1]=Math.abs(N-S),C[F+2]=Math.abs(B-M);break;case"subtract":C[F]=P-T,C[F+1]=N-S,C[F+2]=B-M;break;case"darken":C[F]=Math.min(P,T),C[F+1]=Math.min(N,S),C[F+2]=Math.min(B,M);break;case"lighten":C[F]=Math.max(P,T),C[F+1]=Math.max(N,S),C[F+2]=Math.max(B,M);break;case"overlay":C[F]=T<128?2*P*T/255:255-2*(255-P)*(255-T)/255,C[F+1]=S<128?2*N*S/255:255-2*(255-N)*(255-S)/255,C[F+2]=M<128?2*B*M/255:255-2*(255-B)*(255-M)/255;break;case"exclusion":C[F]=T+P-2*T*P/255,C[F+1]=S+N-2*S*N/255,C[F+2]=M+B-2*M*B/255;break;case"tint":C[F]=T+P*I,C[F+1]=S+N*I,C[F+2]=M+B*I}},getUniformLocations:function(w,x){return{uColor:w.getUniformLocation(x,"uColor")}},sendUniformData:function(w,x){var C=new d.Color(this.color).getSource();C[0]=this.alpha*C[0]/255,C[1]=this.alpha*C[1]/255,C[2]=this.alpha*C[2]/255,C[3]=this.alpha,w.uniform4fv(x.uColor,C)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),d.Image.filters.BlendColor.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric,A=d.Image.filters,v=d.util.createClass;A.BlendImage=v(A.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:`attribute vec2 aPosition;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
uniform mat3 uTransformMatrix;
void main() {
vTexCoord = aPosition;
vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
}`,fragmentSource:{multiply:`precision highp float;
uniform sampler2D uTexture;
uniform sampler2D uImage;
uniform vec4 uColor;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec4 color2 = texture2D(uImage, vTexCoord2);
color.rgba *= color2.rgba;
gl_FragColor = color;
}`,mask:`precision highp float;
uniform sampler2D uTexture;
uniform sampler2D uImage;
uniform vec4 uColor;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec4 color2 = texture2D(uImage, vTexCoord2);
color.a = color2.a;
gl_FragColor = color;
}`},retrieveShader:function(w){var x=this.type+"_"+this.mode,C=this.fragmentSource[this.mode];return w.programCache.hasOwnProperty(x)||(w.programCache[x]=this.createProgram(w.context,C)),w.programCache[x]},applyToWebGL:function(w){var x=w.context,C=this.createTexture(w.filterBackend,this.image);this.bindAdditionalTexture(x,C,x.TEXTURE1),this.callSuper("applyToWebGL",w),this.unbindAdditionalTexture(x,x.TEXTURE1)},createTexture:function(w,x){return w.getCachedTexture(x.cacheKey,x._element)},calculateMatrix:function(){var w=this.image,x=w._element.width,C=w._element.height;return[1/w.scaleX,0,0,0,1/w.scaleY,0,-w.left/x,-w.top/C,1]},applyTo2d:function(w){var x=w.imageData,C=w.filterBackend.resources,k=x.data,T=k.length,S=x.width,M=x.height,P,N,B,O,I,F,L,R,U,V,W=this.image,Q;C.blendImage||(C.blendImage=d.util.createCanvasElement()),U=C.blendImage,V=U.getContext("2d"),U.width!==S||U.height!==M?(U.width=S,U.height=M):V.clearRect(0,0,S,M),V.setTransform(W.scaleX,0,0,W.scaleY,W.left,W.top),V.drawImage(W._element,0,0,S,M),Q=V.getImageData(0,0,S,M).data;for(var le=0;le<T;le+=4)switch(I=k[le],F=k[le+1],L=k[le+2],R=k[le+3],P=Q[le],N=Q[le+1],B=Q[le+2],O=Q[le+3],this.mode){case"multiply":k[le]=I*P/255,k[le+1]=F*N/255,k[le+2]=L*B/255,k[le+3]=R*O/255;break;case"mask":k[le+3]=O;break}},getUniformLocations:function(w,x){return{uTransformMatrix:w.getUniformLocation(x,"uTransformMatrix"),uImage:w.getUniformLocation(x,"uImage")}},sendUniformData:function(w,x){var C=this.calculateMatrix();w.uniform1i(x.uImage,1),w.uniformMatrix3fv(x.uTransformMatrix,!1,C)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),d.Image.filters.BlendImage.fromObject=function(w,x){d.Image.fromObject(w.image,function(C){var k=d.util.object.clone(w);k.image=C,x(new d.Image.filters.BlendImage(k))})}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=Math.pow,v=Math.floor,w=Math.sqrt,x=Math.abs,C=Math.round,k=Math.sin,T=Math.ceil,S=d.Image.filters,M=d.util.createClass;S.Resize=M(S.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(P,N){return{uDelta:P.getUniformLocation(N,"uDelta"),uTaps:P.getUniformLocation(N,"uTaps")}},sendUniformData:function(P,N){P.uniform2fv(N.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),P.uniform1fv(N.uTaps,this.taps)},retrieveShader:function(P){var N=this.getFilterWindow(),B=this.type+"_"+N;if(!P.programCache.hasOwnProperty(B)){var O=this.generateShader(N);P.programCache[B]=this.createProgram(P.context,O)}return P.programCache[B]},getFilterWindow:function(){var P=this.tempScale;return Math.ceil(this.lanczosLobes/P)},getTaps:function(){for(var P=this.lanczosCreate(this.lanczosLobes),N=this.tempScale,B=this.getFilterWindow(),O=new Array(B),I=1;I<=B;I++)O[I-1]=P(I*N);return O},generateShader:function(O){for(var N=new Array(O),B=this.fragmentSourceTOP,O,I=1;I<=O;I++)N[I-1]=I+".0 * uDelta";return B+="uniform float uTaps["+O+`];
`,B+=`void main() {
`,B+=`  vec4 color = texture2D(uTexture, vTexCoord);
`,B+=`  float sum = 1.0;
`,N.forEach(function(F,L){B+="  color += texture2D(uTexture, vTexCoord + "+F+") * uTaps["+L+`];
`,B+="  color += texture2D(uTexture, vTexCoord - "+F+") * uTaps["+L+`];
`,B+="  sum += 2.0 * uTaps["+L+`];
`}),B+=`  gl_FragColor = color / sum;
`,B+="}",B},fragmentSourceTOP:`precision highp float;
uniform sampler2D uTexture;
uniform vec2 uDelta;
varying vec2 vTexCoord;
`,applyTo:function(P){P.webgl?(P.passes++,this.width=P.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=P.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),P.destinationWidth=this.dW,this._setupFrameBuffer(P),this.applyToWebGL(P),this._swapTextures(P),P.sourceWidth=P.destinationWidth,this.height=P.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),P.destinationHeight=this.dH,this._setupFrameBuffer(P),this.applyToWebGL(P),this._swapTextures(P),P.sourceHeight=P.destinationHeight):this.applyTo2d(P)},isNeutralState:function(){return this.scaleX===1&&this.scaleY===1},lanczosCreate:function(P){return function(N){if(N>=P||N<=-P)return 0;if(N<11920929e-14&&N>-11920929e-14)return 1;N*=Math.PI;var B=N/P;return k(N)/N*k(B)/B}},applyTo2d:function(P){var N=P.imageData,B=this.scaleX,O=this.scaleY;this.rcpScaleX=1/B,this.rcpScaleY=1/O;var I=N.width,F=N.height,L=C(I*B),R=C(F*O),U;this.resizeType==="sliceHack"?U=this.sliceByTwo(P,I,F,L,R):this.resizeType==="hermite"?U=this.hermiteFastResize(P,I,F,L,R):this.resizeType==="bilinear"?U=this.bilinearFiltering(P,I,F,L,R):this.resizeType==="lanczos"&&(U=this.lanczosResize(P,I,F,L,R)),P.imageData=U},sliceByTwo:function(P,N,B,O,I){var F=P.imageData,L=.5,R=!1,U=!1,V=N*L,W=B*L,Q=d.filterBackend.resources,le,G,fe=0,ie=0,he=N,Y=0;for(Q.sliceByTwo||(Q.sliceByTwo=document.createElement("canvas")),le=Q.sliceByTwo,(le.width<N*1.5||le.height<B)&&(le.width=N*1.5,le.height=B),G=le.getContext("2d"),G.clearRect(0,0,N*1.5,B),G.putImageData(F,0,0),O=v(O),I=v(I);!R||!U;)N=V,B=W,O<v(V*L)?V=v(V*L):(V=O,R=!0),I<v(W*L)?W=v(W*L):(W=I,U=!0),G.drawImage(le,fe,ie,N,B,he,Y,V,W),fe=he,ie=Y,Y+=W;return G.getImageData(fe,ie,O,I)},lanczosResize:function(P,N,B,O,I){function F(oe){var pe,ve,ge,ue,Te,Ee,ye,Se,Fe,Ve,ke;for(Y.x=(oe+.5)*W,K.x=v(Y.x),pe=0;pe<I;pe++){for(Y.y=(pe+.5)*Q,K.y=v(Y.y),Te=0,Ee=0,ye=0,Se=0,Fe=0,ve=K.x-fe;ve<=K.x+fe;ve++)if(!(ve<0||ve>=N)){Ve=v(1e3*x(ve-Y.x)),he[Ve]||(he[Ve]={});for(var Pe=K.y-ie;Pe<=K.y+ie;Pe++)Pe<0||Pe>=B||(ke=v(1e3*x(Pe-Y.y)),he[Ve][ke]||(he[Ve][ke]=V(w(A(Ve*le,2)+A(ke*G,2))/1e3)),ge=he[Ve][ke],ge>0&&(ue=(Pe*N+ve)*4,Te+=ge,Ee+=ge*L[ue],ye+=ge*L[ue+1],Se+=ge*L[ue+2],Fe+=ge*L[ue+3]))}ue=(pe*O+oe)*4,U[ue]=Ee/Te,U[ue+1]=ye/Te,U[ue+2]=Se/Te,U[ue+3]=Fe/Te}return++oe<O?F(oe):R}var L=P.imageData.data,R=P.ctx.createImageData(O,I),U=R.data,V=this.lanczosCreate(this.lanczosLobes),W=this.rcpScaleX,Q=this.rcpScaleY,le=2/this.rcpScaleX,G=2/this.rcpScaleY,fe=T(W*this.lanczosLobes/2),ie=T(Q*this.lanczosLobes/2),he={},Y={},K={};return F(0)},bilinearFiltering:function(P,N,B,O,I){var F,L,R,U,V,W,Q,le,G,fe,ie,he,Y=0,K,oe=this.rcpScaleX,pe=this.rcpScaleY,ve=4*(N-1),ge=P.imageData,ue=ge.data,Te=P.ctx.createImageData(O,I),Ee=Te.data;for(Q=0;Q<I;Q++)for(le=0;le<O;le++)for(V=v(oe*le),W=v(pe*Q),G=oe*le-V,fe=pe*Q-W,K=4*(W*N+V),ie=0;ie<4;ie++)F=ue[K+ie],L=ue[K+4+ie],R=ue[K+ve+ie],U=ue[K+ve+4+ie],he=F*(1-G)*(1-fe)+L*G*(1-fe)+R*fe*(1-G)+U*G*fe,Ee[Y++]=he;return Te},hermiteFastResize:function(P,N,B,O,I){for(var F=this.rcpScaleX,L=this.rcpScaleY,R=T(F/2),U=T(L/2),V=P.imageData,W=V.data,Q=P.ctx.createImageData(O,I),le=Q.data,G=0;G<I;G++)for(var fe=0;fe<O;fe++){for(var ie=(fe+G*O)*4,he=0,Y=0,K=0,oe=0,pe=0,ve=0,ge=0,ue=(G+.5)*L,Te=v(G*L);Te<(G+1)*L;Te++)for(var Ee=x(ue-(Te+.5))/U,ye=(fe+.5)*F,Se=Ee*Ee,Fe=v(fe*F);Fe<(fe+1)*F;Fe++){var Ve=x(ye-(Fe+.5))/R,ke=w(Se+Ve*Ve);ke>1&&ke<-1||(he=2*ke*ke*ke-3*ke*ke+1,he>0&&(Ve=4*(Fe+Te*N),ge+=he*W[Ve+3],K+=he,W[Ve+3]<255&&(he=he*W[Ve+3]/250),oe+=he*W[Ve],pe+=he*W[Ve+1],ve+=he*W[Ve+2],Y+=he))}le[ie]=oe/Y,le[ie+1]=pe/Y,le[ie+2]=ve/Y,le[ie+3]=ge/K}return Q},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),d.Image.filters.Resize.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Contrast=v(A.BaseFilter,{type:"Contrast",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uContrast;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));
color.rgb = contrastF * (color.rgb - 0.5) + 0.5;
gl_FragColor = color;
}`,contrast:0,mainParameter:"contrast",applyTo2d:function(w){if(this.contrast!==0){var x=w.imageData,C,T,k=x.data,T=k.length,S=Math.floor(this.contrast*255),M=259*(S+255)/(255*(259-S));for(C=0;C<T;C+=4)k[C]=M*(k[C]-128)+128,k[C+1]=M*(k[C+1]-128)+128,k[C+2]=M*(k[C+2]-128)+128}},getUniformLocations:function(w,x){return{uContrast:w.getUniformLocation(x,"uContrast")}},sendUniformData:function(w,x){w.uniform1f(x.uContrast,this.contrast)}}),d.Image.filters.Contrast.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Saturation=v(A.BaseFilter,{type:"Saturation",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uSaturation;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float rgMax = max(color.r, color.g);
float rgbMax = max(rgMax, color.b);
color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;
color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;
color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;
gl_FragColor = color;
}`,saturation:0,mainParameter:"saturation",applyTo2d:function(w){if(this.saturation!==0){var x=w.imageData,C=x.data,k=C.length,T=-this.saturation,S,M;for(S=0;S<k;S+=4)M=Math.max(C[S],C[S+1],C[S+2]),C[S]+=M!==C[S]?(M-C[S])*T:0,C[S+1]+=M!==C[S+1]?(M-C[S+1])*T:0,C[S+2]+=M!==C[S+2]?(M-C[S+2])*T:0}},getUniformLocations:function(w,x){return{uSaturation:w.getUniformLocation(x,"uSaturation")}},sendUniformData:function(w,x){w.uniform1f(x.uSaturation,-this.saturation)}}),d.Image.filters.Saturation.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Vibrance=v(A.BaseFilter,{type:"Vibrance",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uVibrance;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float max = max(color.r, max(color.g, color.b));
float avg = (color.r + color.g + color.b) / 3.0;
float amt = (abs(max - avg) * 2.0) * uVibrance;
color.r += max != color.r ? (max - color.r) * amt : 0.00;
color.g += max != color.g ? (max - color.g) * amt : 0.00;
color.b += max != color.b ? (max - color.b) * amt : 0.00;
gl_FragColor = color;
}`,vibrance:0,mainParameter:"vibrance",applyTo2d:function(w){if(this.vibrance!==0){var x=w.imageData,C=x.data,k=C.length,T=-this.vibrance,S,M,P,N;for(S=0;S<k;S+=4)M=Math.max(C[S],C[S+1],C[S+2]),P=(C[S]+C[S+1]+C[S+2])/3,N=Math.abs(M-P)*2/255*T,C[S]+=M!==C[S]?(M-C[S])*N:0,C[S+1]+=M!==C[S+1]?(M-C[S+1])*N:0,C[S+2]+=M!==C[S+2]?(M-C[S+2])*N:0}},getUniformLocations:function(w,x){return{uVibrance:w.getUniformLocation(x,"uVibrance")}},sendUniformData:function(w,x){w.uniform1f(x.uVibrance,-this.vibrance)}}),d.Image.filters.Vibrance.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Blur=v(A.BaseFilter,{type:"Blur",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec2 uDelta;
varying vec2 vTexCoord;
const float nSamples = 15.0;
vec3 v3offset = vec3(12.9898, 78.233, 151.7182);
float random(vec3 scale) {
return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);
}
void main() {
vec4 color = vec4(0.0);
float total = 0.0;
float offset = random(v3offset);
for (float t = -nSamples; t <= nSamples; t++) {
float percent = (t + offset - 0.5) / nSamples;
float weight = 1.0 - abs(percent);
color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;
total += weight;
}
gl_FragColor = color / total;
}`,blur:0,mainParameter:"blur",applyTo:function(w){w.webgl?(this.aspectRatio=w.sourceWidth/w.sourceHeight,w.passes++,this._setupFrameBuffer(w),this.horizontal=!0,this.applyToWebGL(w),this._swapTextures(w),this._setupFrameBuffer(w),this.horizontal=!1,this.applyToWebGL(w),this._swapTextures(w)):this.applyTo2d(w)},applyTo2d:function(w){w.imageData=this.simpleBlur(w)},simpleBlur:function(w){var x=w.filterBackend.resources,C,k,T=w.imageData.width,S=w.imageData.height;x.blurLayer1||(x.blurLayer1=d.util.createCanvasElement(),x.blurLayer2=d.util.createCanvasElement()),C=x.blurLayer1,k=x.blurLayer2,(C.width!==T||C.height!==S)&&(k.width=C.width=T,k.height=C.height=S);var M=C.getContext("2d"),P=k.getContext("2d"),N=15,B,O,I,F,L=this.blur*.06*.5;for(M.putImageData(w.imageData,0,0),P.clearRect(0,0,T,S),F=-N;F<=N;F++)B=(Math.random()-.5)/4,O=F/N,I=L*O*T+B,P.globalAlpha=1-Math.abs(O),P.drawImage(C,I,B),M.drawImage(k,0,0),P.globalAlpha=1,P.clearRect(0,0,k.width,k.height);for(F=-N;F<=N;F++)B=(Math.random()-.5)/4,O=F/N,I=L*O*S+B,P.globalAlpha=1-Math.abs(O),P.drawImage(C,B,I),M.drawImage(k,0,0),P.globalAlpha=1,P.clearRect(0,0,k.width,k.height);w.ctx.drawImage(C,0,0);var R=w.ctx.getImageData(0,0,C.width,C.height);return M.globalAlpha=1,M.clearRect(0,0,C.width,C.height),R},getUniformLocations:function(w,x){return{delta:w.getUniformLocation(x,"uDelta")}},sendUniformData:function(w,x){var C=this.chooseRightDelta();w.uniform2fv(x.delta,C)},chooseRightDelta:function(){var w=1,x=[0,0],C;return this.horizontal?this.aspectRatio>1&&(w=1/this.aspectRatio):this.aspectRatio<1&&(w=this.aspectRatio),C=w*this.blur*.12,this.horizontal?x[0]=C:x[1]=C,x}}),A.Blur.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Gamma=v(A.BaseFilter,{type:"Gamma",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec3 uGamma;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec3 correction = (1.0 / uGamma);
color.r = pow(color.r, correction.r);
color.g = pow(color.g, correction.g);
color.b = pow(color.b, correction.b);
gl_FragColor = color;
gl_FragColor.rgb *= color.a;
}`,gamma:[1,1,1],mainParameter:"gamma",initialize:function(w){this.gamma=[1,1,1],A.BaseFilter.prototype.initialize.call(this,w)},applyTo2d:function(w){var x=w.imageData,C=x.data,k=this.gamma,T=C.length,S=1/k[0],M=1/k[1],P=1/k[2],N;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),N=0,T=256;N<T;N++)this.rVals[N]=Math.pow(N/255,S)*255,this.gVals[N]=Math.pow(N/255,M)*255,this.bVals[N]=Math.pow(N/255,P)*255;for(N=0,T=C.length;N<T;N+=4)C[N]=this.rVals[C[N]],C[N+1]=this.gVals[C[N+1]],C[N+2]=this.bVals[C[N+2]]},getUniformLocations:function(w,x){return{uGamma:w.getUniformLocation(x,"uGamma")}},sendUniformData:function(w,x){w.uniform3fv(x.uGamma,this.gamma)}}),d.Image.filters.Gamma.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.Composed=v(A.BaseFilter,{type:"Composed",subFilters:[],initialize:function(w){this.callSuper("initialize",w),this.subFilters=this.subFilters.slice(0)},applyTo:function(w){w.passes+=this.subFilters.length-1,this.subFilters.forEach(function(x){x.applyTo(w)})},toObject:function(){return d.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(w){return w.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(w){return!w.isNeutralState()})}}),d.Image.filters.Composed.fromObject=function(w,x){var C=w.subFilters||[],k=C.map(function(S){return new d.Image.filters[S.type](S)}),T=new d.Image.filters.Composed({subFilters:k});return x&&x(T),T}})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.Image.filters,v=d.util.createClass;A.HueRotation=v(A.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var w=this.rotation*Math.PI,x=d.util.cos(w),C=d.util.sin(w),k=1/3,T=Math.sqrt(k)*C,S=1-x;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=x+S/3,this.matrix[1]=k*S-T,this.matrix[2]=k*S+T,this.matrix[5]=k*S+T,this.matrix[6]=x+k*S,this.matrix[7]=k*S-T,this.matrix[10]=k*S-T,this.matrix[11]=k*S+T,this.matrix[12]=x+k*S},isNeutralState:function(w){return this.calculateMatrix(),A.BaseFilter.prototype.isNeutralState.call(this,w)},applyTo:function(w){this.calculateMatrix(),A.BaseFilter.prototype.applyTo.call(this,w)}}),d.Image.filters.HueRotation.fromObject=d.Image.filters.BaseFilter.fromObject})(f),(function(h){var d=h.fabric||(h.fabric={}),A=d.util.object.clone;if(d.Text){d.warn("fabric.Text is already defined");return}var v="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide".split(" ");d.Text=d.util.createClass(d.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:d.Object.prototype.stateProperties.concat(v),cacheProperties:d.Object.prototype.cacheProperties.concat(v),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(w,x){this.styles=x?x.styles||{}:{},this.text=w,this.__skipDimension=!0,this.callSuper("initialize",x),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var w=this.path;w&&(w.segmentsInfo=d.util.getPathSegmentsInfo(w.path))},getMeasuringContext:function(){return d._measuringContext||(d._measuringContext=this.canvas&&this.canvas.contextCache||d.util.createCanvasElement().getContext("2d")),d._measuringContext},_splitText:function(){var w=this._splitTextIntoLines(this.text);return this.textLines=w.lines,this._textLines=w.graphemeLines,this._unwrappedTextLines=w._unwrappedLines,this._text=w.graphemeText,w},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var w,x,C,k,T,S,M,P=0,N=this._textLines.length;P<N;P++)if(!(this.textAlign!=="justify"&&(P===N-1||this.isEndOfWrapping(P)))&&(k=0,T=this._textLines[P],x=this.getLineWidth(P),x<this.width&&(M=this.textLines[P].match(this._reSpacesAndTabs)))){C=M.length,w=(this.width-x)/C;for(var B=0,O=T.length;B<=O;B++)S=this.__charBounds[P][B],this._reSpaceAndTab.test(T[B])?(S.width+=w,S.kernedWidth+=w,S.left+=k,k+=w):S.left+=k}},isEndOfWrapping:function(w){return w===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var w=this.callSuper("_getCacheCanvasDimensions"),x=this.fontSize;return w.width+=x*w.zoomX,w.height+=x*w.zoomY,w},_render:function(w){var x=this.path;x&&!x.isNotVisible()&&x._render(w),this._setTextStyles(w),this._renderTextLinesBackground(w),this._renderTextDecoration(w,"underline"),this._renderText(w),this._renderTextDecoration(w,"overline"),this._renderTextDecoration(w,"linethrough")},_renderText:function(w){this.paintFirst==="stroke"?(this._renderTextStroke(w),this._renderTextFill(w)):(this._renderTextFill(w),this._renderTextStroke(w))},_setTextStyles:function(w,x,C){w.textBaseline="alphabetic",w.font=this._getFontDeclaration(x,C)},calcTextWidth:function(){for(var w=this.getLineWidth(0),x=1,C=this._textLines.length;x<C;x++){var k=this.getLineWidth(x);k>w&&(w=k)}return w},_renderTextLine:function(w,x,C,k,T,S){this._renderChars(w,x,C,k,T,S)},_renderTextLinesBackground:function(w){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var x,C,k=w.fillStyle,T,S,M=this._getLeftOffset(),P=this._getTopOffset(),N=0,B=0,O,I,F=this.path,L,R=0,U=this._textLines.length;R<U;R++){if(x=this.getHeightOfLine(R),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",R)){P+=x;continue}T=this._textLines[R],C=this._getLineLeftOffset(R),B=0,N=0,S=this.getValueOfPropertyAt(R,0,"textBackgroundColor");for(var V=0,W=T.length;V<W;V++)O=this.__charBounds[R][V],I=this.getValueOfPropertyAt(R,V,"textBackgroundColor"),F?(w.save(),w.translate(O.renderLeft,O.renderTop),w.rotate(O.angle),w.fillStyle=I,I&&w.fillRect(-O.width/2,-x/this.lineHeight*(1-this._fontSizeFraction),O.width,x/this.lineHeight),w.restore()):I!==S?(L=M+C+N,this.direction==="rtl"&&(L=this.width-L-B),w.fillStyle=S,S&&w.fillRect(L,P,B,x/this.lineHeight),N=O.left,B=O.width,S=I):B+=O.kernedWidth;I&&!F&&(L=M+C+N,this.direction==="rtl"&&(L=this.width-L-B),w.fillStyle=I,w.fillRect(L,P,B,x/this.lineHeight)),P+=x}w.fillStyle=k,this._removeShadow(w)}},getFontCache:function(w){var x=w.fontFamily.toLowerCase();d.charWidthsCache[x]||(d.charWidthsCache[x]={});var C=d.charWidthsCache[x],k=w.fontStyle.toLowerCase()+"_"+(w.fontWeight+"").toLowerCase();return C[k]||(C[k]={}),C[k]},_measureChar:function(w,x,C,k){var T=this.getFontCache(x),S=this._getFontDeclaration(x),M=this._getFontDeclaration(k),P=C+w,N=S===M,B,O,I,F=x.fontSize/this.CACHE_FONT_SIZE,L;if(C&&T[C]!==void 0&&(I=T[C]),T[w]!==void 0&&(L=B=T[w]),N&&T[P]!==void 0&&(O=T[P],L=O-I),B===void 0||I===void 0||O===void 0){var R=this.getMeasuringContext();this._setTextStyles(R,x,!0)}return B===void 0&&(L=B=R.measureText(w).width,T[w]=B),I===void 0&&N&&C&&(I=R.measureText(C).width,T[C]=I),N&&O===void 0&&(O=R.measureText(P).width,T[P]=O,L=O-I),{width:B*F,kernedWidth:L*F}},getHeightOfChar:function(w,x){return this.getValueOfPropertyAt(w,x,"fontSize")},measureLine:function(w){var x=this._measureLine(w);return this.charSpacing!==0&&(x.width-=this._getWidthOfCharSpacing()),x.width<0&&(x.width=0),x},_measureLine:function(w){var x=0,C,k,T=this._textLines[w],S,M,P=0,N=new Array(T.length),B=0,O,I,F=this.path,L=this.pathSide==="right";for(this.__charBounds[w]=N,C=0;C<T.length;C++)k=T[C],M=this._getGraphemeBox(k,w,C,S),N[C]=M,x+=M.kernedWidth,S=k;if(N[C]={left:M?M.left+M.width:0,width:0,kernedWidth:0,height:this.fontSize},F){switch(I=F.segmentsInfo[F.segmentsInfo.length-1].length,O=d.util.getPointOnPath(F.path,0,F.segmentsInfo),O.x+=F.pathOffset.x,O.y+=F.pathOffset.y,this.textAlign){case"left":B=L?I-x:0;break;case"center":B=(I-x)/2;break;case"right":B=L?0:I-x;break}for(B+=this.pathStartOffset*(L?-1:1),C=L?T.length-1:0;L?C>=0:C<T.length;L?C--:C++)M=N[C],B>I?B%=I:B<0&&(B+=I),this._setGraphemeOnPath(B,M,O),B+=M.kernedWidth}return{width:x,numOfSpaces:P}},_setGraphemeOnPath:function(w,x,C){var k=w+x.kernedWidth/2,T=this.path,S=d.util.getPointOnPath(T.path,k,T.segmentsInfo);x.renderLeft=S.x-C.x,x.renderTop=S.y-C.y,x.angle=S.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(w,x,C,k,T){var S=this.getCompleteStyleDeclaration(x,C),M=k?this.getCompleteStyleDeclaration(x,C-1):{},P=this._measureChar(w,S,k,M),N=P.kernedWidth,B=P.width,O;this.charSpacing!==0&&(O=this._getWidthOfCharSpacing(),B+=O,N+=O);var I={width:B,left:0,height:S.fontSize,kernedWidth:N,deltaY:S.deltaY};if(C>0&&!T){var F=this.__charBounds[x][C-1];I.left=F.left+F.width+P.kernedWidth-P.width}return I},getHeightOfLine:function(w){if(this.__lineHeights[w])return this.__lineHeights[w];for(var x=this._textLines[w],C=this.getHeightOfChar(w,0),k=1,T=x.length;k<T;k++)C=Math.max(this.getHeightOfChar(w,k),C);return this.__lineHeights[w]=C*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var w,x=0,C=0,k=this._textLines.length;C<k;C++)w=this.getHeightOfLine(C),x+=C===k-1?w/this.lineHeight:w;return x},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(w,x){w.save();for(var C=0,k=this._getLeftOffset(),T=this._getTopOffset(),S=0,M=this._textLines.length;S<M;S++){var P=this.getHeightOfLine(S),N=P/this.lineHeight,B=this._getLineLeftOffset(S);this._renderTextLine(x,w,this._textLines[S],k+B,T+C+N,S),C+=P}w.restore()},_renderTextFill:function(w){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(w,"fillText")},_renderTextStroke:function(w){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(w),w.save(),this._setLineDash(w,this.strokeDashArray),w.beginPath(),this._renderTextCommon(w,"strokeText"),w.closePath(),w.restore())},_renderChars:function(w,x,C,k,T,S){var M=this.getHeightOfLine(S),P=this.textAlign.indexOf("justify")!==-1,N,B,O="",I,F=0,L,R=this.path,U=!P&&this.charSpacing===0&&this.isEmptyStyles(S)&&!R,V=this.direction==="ltr",W=this.direction==="ltr"?1:-1,Q;if(x.save(),T-=M*this._fontSizeFraction/this.lineHeight,U){x.canvas.setAttribute("dir",V?"ltr":"rtl"),x.direction=V?"ltr":"rtl",x.textAlign=V?"left":"right",this._renderChar(w,x,S,0,C.join(""),k,T,M),x.restore();return}for(var le=0,G=C.length-1;le<=G;le++)L=le===G||this.charSpacing||R,O+=C[le],I=this.__charBounds[S][le],F===0?(k+=W*(I.kernedWidth-I.width),F+=I.width):F+=I.kernedWidth,P&&!L&&this._reSpaceAndTab.test(C[le])&&(L=!0),L||(N=N||this.getCompleteStyleDeclaration(S,le),B=this.getCompleteStyleDeclaration(S,le+1),L=this._hasStyleChanged(N,B)),L&&(R?(x.save(),x.translate(I.renderLeft,I.renderTop),x.rotate(I.angle),this._renderChar(w,x,S,le,O,-F/2,0,M),x.restore()):(Q=k,x.canvas.setAttribute("dir",V?"ltr":"rtl"),x.direction=V?"ltr":"rtl",x.textAlign=V?"left":"right",this._renderChar(w,x,S,le,O,Q,T,M)),O="",N=B,k+=W*F,F=0);x.restore()},_applyPatternGradientTransformText:function(w){var x=d.util.createCanvasElement(),C,k=this.width+this.strokeWidth,T=this.height+this.strokeWidth;return x.width=k,x.height=T,C=x.getContext("2d"),C.beginPath(),C.moveTo(0,0),C.lineTo(k,0),C.lineTo(k,T),C.lineTo(0,T),C.closePath(),C.translate(k/2,T/2),C.fillStyle=w.toLive(C),this._applyPatternGradientTransform(C,w),C.fill(),C.createPattern(x,"no-repeat")},handleFiller:function(w,x,C){var k,T;return C.toLive?C.gradientUnits==="percentage"||C.gradientTransform||C.patternTransform?(k=-this.width/2,T=-this.height/2,w.translate(k,T),w[x]=this._applyPatternGradientTransformText(C),{offsetX:k,offsetY:T}):(w[x]=C.toLive(w,this),this._applyPatternGradientTransform(w,C)):(w[x]=C,{offsetX:0,offsetY:0})},_setStrokeStyles:function(w,x){return w.lineWidth=x.strokeWidth,w.lineCap=this.strokeLineCap,w.lineDashOffset=this.strokeDashOffset,w.lineJoin=this.strokeLineJoin,w.miterLimit=this.strokeMiterLimit,this.handleFiller(w,"strokeStyle",x.stroke)},_setFillStyles:function(w,x){return this.handleFiller(w,"fillStyle",x.fill)},_renderChar:function(w,x,C,k,T,S,M){var P=this._getStyleDeclaration(C,k),N=this.getCompleteStyleDeclaration(C,k),B=w==="fillText"&&N.fill,O=w==="strokeText"&&N.stroke&&N.strokeWidth,I,F;!O&&!B||(x.save(),B&&(I=this._setFillStyles(x,N)),O&&(F=this._setStrokeStyles(x,N)),x.font=this._getFontDeclaration(N),P&&P.textBackgroundColor&&this._removeShadow(x),P&&P.deltaY&&(M+=P.deltaY),B&&x.fillText(T,S-I.offsetX,M-I.offsetY),O&&x.strokeText(T,S-F.offsetX,M-F.offsetY),x.restore())},setSuperscript:function(w,x){return this._setScript(w,x,this.superscript)},setSubscript:function(w,x){return this._setScript(w,x,this.subscript)},_setScript:function(w,x,C){var k=this.get2DCursorLocation(w,!0),T=this.getValueOfPropertyAt(k.lineIndex,k.charIndex,"fontSize"),S=this.getValueOfPropertyAt(k.lineIndex,k.charIndex,"deltaY"),M={fontSize:T*C.size,deltaY:S+T*C.baseline};return this.setSelectionStyles(M,w,x),this},_hasStyleChanged:function(w,x){return w.fill!==x.fill||w.stroke!==x.stroke||w.strokeWidth!==x.strokeWidth||w.fontSize!==x.fontSize||w.fontFamily!==x.fontFamily||w.fontWeight!==x.fontWeight||w.fontStyle!==x.fontStyle||w.deltaY!==x.deltaY},_hasStyleChangedForSvg:function(w,x){return this._hasStyleChanged(w,x)||w.overline!==x.overline||w.underline!==x.underline||w.linethrough!==x.linethrough},_getLineLeftOffset:function(w){var x=this.getLineWidth(w),C=this.width-x,k=this.textAlign,T=this.direction,M,S=0,M=this.isEndOfWrapping(w);return k==="justify"||k==="justify-center"&&!M||k==="justify-right"&&!M||k==="justify-left"&&!M?0:(k==="center"&&(S=C/2),k==="right"&&(S=C),k==="justify-center"&&(S=C/2),k==="justify-right"&&(S=C),T==="rtl"&&(S-=C),S)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var w=this._forceClearCache;return w||(w=this.hasStateChanged("_dimensionAffectingProps")),w&&(this.dirty=!0,this._forceClearCache=!1),w},getLineWidth:function(w){if(this.__lineWidths[w])return this.__lineWidths[w];var x,C=this._textLines[w],k;return C===""?x=0:(k=this.measureLine(w),x=k.width),this.__lineWidths[w]=x,x},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(w,x,C){var k=this._getStyleDeclaration(w,x);return k&&typeof k[C]<"u"?k[C]:this[C]},_renderTextDecoration:function(w,x){if(!(!this[x]&&!this.styleHas(x))){for(var C,k,T,S,M,P,N,B,O=this._getLeftOffset(),I=this._getTopOffset(),F,L,R,U,V,W,Q,le,G=this.path,fe=this._getWidthOfCharSpacing(),ie=this.offsets[x],he=0,Y=this._textLines.length;he<Y;he++){if(C=this.getHeightOfLine(he),!this[x]&&!this.styleHas(x,he)){I+=C;continue}N=this._textLines[he],W=C/this.lineHeight,S=this._getLineLeftOffset(he),L=0,R=0,B=this.getValueOfPropertyAt(he,0,x),le=this.getValueOfPropertyAt(he,0,"fill"),F=I+W*(1-this._fontSizeFraction),k=this.getHeightOfChar(he,0),M=this.getValueOfPropertyAt(he,0,"deltaY");for(var K=0,oe=N.length;K<oe;K++)if(U=this.__charBounds[he][K],V=this.getValueOfPropertyAt(he,K,x),Q=this.getValueOfPropertyAt(he,K,"fill"),T=this.getHeightOfChar(he,K),P=this.getValueOfPropertyAt(he,K,"deltaY"),G&&V&&Q)w.save(),w.fillStyle=le,w.translate(U.renderLeft,U.renderTop),w.rotate(U.angle),w.fillRect(-U.kernedWidth/2,ie*T+P,U.kernedWidth,this.fontSize/15),w.restore();else if((V!==B||Q!==le||T!==k||P!==M)&&R>0){var pe=O+S+L;this.direction==="rtl"&&(pe=this.width-pe-R),B&&le&&(w.fillStyle=le,w.fillRect(pe,F+ie*k+M,R,this.fontSize/15)),L=U.left,R=U.width,B=V,le=Q,k=T,M=P}else R+=U.kernedWidth;var pe=O+S+L;this.direction==="rtl"&&(pe=this.width-pe-R),w.fillStyle=Q,V&&Q&&w.fillRect(pe,F+ie*k+M,R-fe,this.fontSize/15),I+=C}this._removeShadow(w)}},_getFontDeclaration:function(w,x){var C=w||this,k=this.fontFamily,T=d.Text.genericFonts.indexOf(k.toLowerCase())>-1,S=k===void 0||k.indexOf("'")>-1||k.indexOf(",")>-1||k.indexOf('"')>-1||T?C.fontFamily:'"'+C.fontFamily+'"';return[d.isLikelyNode?C.fontWeight:C.fontStyle,d.isLikelyNode?C.fontStyle:C.fontWeight,x?this.CACHE_FONT_SIZE+"px":C.fontSize+"px",S].join(" ")},render:function(w){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",w)))},_splitTextIntoLines:function(w){for(var x=w.split(this._reNewline),C=new Array(x.length),k=[`
`],T=[],S=0;S<x.length;S++)C[S]=d.util.string.graphemeSplit(x[S]),T=T.concat(C[S],k);return T.pop(),{_unwrappedLines:C,lines:x,graphemeText:T,graphemeLines:C}},toObject:function(w){var x=v.concat(w),C=this.callSuper("toObject",x);return C.styles=A(this.styles,!0),C.path&&(C.path=this.path.toObject()),C},set:function(w,x){this.callSuper("set",w,x);var C=!1,k=!1;if(typeof w=="object")for(var T in w)T==="path"&&this.setPathInfo(),C=C||this._dimensionAffectingProps.indexOf(T)!==-1,k=k||T==="path";else C=this._dimensionAffectingProps.indexOf(w)!==-1,k=w==="path";return k&&this.setPathInfo(),C&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),d.Text.ATTRIBUTE_NAMES=d.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),d.Text.DEFAULT_SVG_FONT_SIZE=16,d.Text.fromElement=function(w,x,C){if(!w)return x(null);var k=d.parseAttributes(w,d.Text.ATTRIBUTE_NAMES),T=k.textAnchor||"left";if(C=d.util.object.extend(C?A(C):{},k),C.top=C.top||0,C.left=C.left||0,k.textDecoration){var S=k.textDecoration;S.indexOf("underline")!==-1&&(C.underline=!0),S.indexOf("overline")!==-1&&(C.overline=!0),S.indexOf("line-through")!==-1&&(C.linethrough=!0),delete C.textDecoration}"dx"in k&&(C.left+=k.dx),"dy"in k&&(C.top+=k.dy),"fontSize"in C||(C.fontSize=d.Text.DEFAULT_SVG_FONT_SIZE);var M="";"textContent"in w?M=w.textContent:"firstChild"in w&&w.firstChild!==null&&"data"in w.firstChild&&w.firstChild.data!==null&&(M=w.firstChild.data),M=M.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var P=C.strokeWidth;C.strokeWidth=0;var N=new d.Text(M,C),B=N.getScaledHeight()/N.height,O=(N.height+N.strokeWidth)*N.lineHeight-N.height,I=O*B,F=N.getScaledHeight()+I,L=0;T==="center"&&(L=N.getScaledWidth()/2),T==="right"&&(L=N.getScaledWidth()),N.set({left:N.left-L,top:N.top-(F-N.fontSize*(.07+N._fontSizeFraction))/N.lineHeight,strokeWidth:typeof P<"u"?P:1}),x(N)},d.Text.fromObject=function(w,x){var C=A(w),k=w.path;return delete C.path,d.Object._fromObject("Text",C,function(T){k?d.Object._fromObject("Path",k,function(S){T.set("path",S),x(T)},"path"):x(T)},"text")},d.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],d.util.createAccessors&&d.util.createAccessors(d.Text)})(f),(function(){l.util.object.extend(l.Text.prototype,{isEmptyStyles:function(h){if(!this.styles||typeof h<"u"&&!this.styles[h])return!0;var d=typeof h>"u"?this.styles:{line:this.styles[h]};for(var A in d)for(var v in d[A])for(var w in d[A][v])return!1;return!0},styleHas:function(h,d){if(!this.styles||!h||h===""||typeof d<"u"&&!this.styles[d])return!1;var A=typeof d>"u"?this.styles:{0:this.styles[d]};for(var v in A)for(var w in A[v])if(typeof A[v][w][h]<"u")return!0;return!1},cleanStyle:function(h){if(!this.styles||!h||h==="")return!1;var d=this.styles,A=0,v,w,x=!0,C=0,k;for(var T in d){v=0;for(var S in d[T]){var k=d[T][S],M=k.hasOwnProperty(h);A++,M?(w?k[h]!==w&&(x=!1):w=k[h],k[h]===this[h]&&delete k[h]):x=!1,Object.keys(k).length!==0?v++:delete d[T][S]}v===0&&delete d[T]}for(var P=0;P<this._textLines.length;P++)C+=this._textLines[P].length;x&&A===C&&(this[h]=w,this.removeStyle(h))},removeStyle:function(h){if(!(!this.styles||!h||h==="")){var d=this.styles,A,v,w;for(v in d){A=d[v];for(w in A)delete A[w][h],Object.keys(A[w]).length===0&&delete A[w];Object.keys(A).length===0&&delete d[v]}}},_extendStyles:function(h,d){var A=this.get2DCursorLocation(h);this._getLineStyle(A.lineIndex)||this._setLineStyle(A.lineIndex),this._getStyleDeclaration(A.lineIndex,A.charIndex)||this._setStyleDeclaration(A.lineIndex,A.charIndex,{}),l.util.object.extend(this._getStyleDeclaration(A.lineIndex,A.charIndex),d)},get2DCursorLocation:function(h,d){typeof h>"u"&&(h=this.selectionStart);for(var A=d?this._unwrappedTextLines:this._textLines,v=A.length,w=0;w<v;w++){if(h<=A[w].length)return{lineIndex:w,charIndex:h};h-=A[w].length+this.missingNewlineOffset(w)}return{lineIndex:w-1,charIndex:A[w-1].length<h?A[w-1].length:h}},getSelectionStyles:function(h,d,A){typeof h>"u"&&(h=this.selectionStart||0),typeof d>"u"&&(d=this.selectionEnd||h);for(var v=[],w=h;w<d;w++)v.push(this.getStyleAtPosition(w,A));return v},getStyleAtPosition:function(h,d){var A=this.get2DCursorLocation(h),v=d?this.getCompleteStyleDeclaration(A.lineIndex,A.charIndex):this._getStyleDeclaration(A.lineIndex,A.charIndex);return v||{}},setSelectionStyles:function(h,d,A){typeof d>"u"&&(d=this.selectionStart||0),typeof A>"u"&&(A=this.selectionEnd||d);for(var v=d;v<A;v++)this._extendStyles(v,h);return this._forceClearCache=!0,this},_getStyleDeclaration:function(h,d){var A=this.styles&&this.styles[h];return A?A[d]:null},getCompleteStyleDeclaration:function(h,d){for(var A=this._getStyleDeclaration(h,d)||{},v={},w,x=0;x<this._styleProperties.length;x++)w=this._styleProperties[x],v[w]=typeof A[w]>"u"?this[w]:A[w];return v},_setStyleDeclaration:function(h,d,A){this.styles[h][d]=A},_deleteStyleDeclaration:function(h,d){delete this.styles[h][d]},_getLineStyle:function(h){return!!this.styles[h]},_setLineStyle:function(h){this.styles[h]={}},_deleteLineStyle:function(h){delete this.styles[h]}})})(),(function(){function h(d){d.textDecoration&&(d.textDecoration.indexOf("underline")>-1&&(d.underline=!0),d.textDecoration.indexOf("line-through")>-1&&(d.linethrough=!0),d.textDecoration.indexOf("overline")>-1&&(d.overline=!0),delete d.textDecoration)}l.IText=l.util.createClass(l.Text,l.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(d,A){this.callSuper("initialize",d,A),this.initBehavior()},setSelectionStart:function(d){d=Math.max(d,0),this._updateAndFire("selectionStart",d)},setSelectionEnd:function(d){d=Math.min(d,this.text.length),this._updateAndFire("selectionEnd",d)},_updateAndFire:function(d,A){this[d]!==A&&(this._fireSelectionChanged(),this[d]=A),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(d){this.clearContextTop(),this.callSuper("render",d),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(d){this.callSuper("_render",d)},clearContextTop:function(d){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var A=this.canvas.contextTop,v=this.canvas.viewportTransform;A.save(),A.transform(v[0],v[1],v[2],v[3],v[4],v[5]),this.transform(A),this._clearTextArea(A),d||A.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var d=this._getCursorBoundaries(),A=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(d,A):this.renderSelection(d,A),A.restore()}},_clearTextArea:function(d){var A=this.width+4,v=this.height+4;d.clearRect(-A/2,-v/2,A,v)},_getCursorBoundaries:function(d){typeof d>"u"&&(d=this.selectionStart);var A=this._getLeftOffset(),v=this._getTopOffset(),w=this._getCursorBoundariesOffsets(d);return{left:A,top:v,leftOffset:w.left,topOffset:w.top}},_getCursorBoundariesOffsets:function(d){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var A,v,w,x=0,C=0,k,T=this.get2DCursorLocation(d);w=T.charIndex,v=T.lineIndex;for(var S=0;S<v;S++)x+=this.getHeightOfLine(S);A=this._getLineLeftOffset(v);var M=this.__charBounds[v][w];return M&&(C=M.left),this.charSpacing!==0&&w===this._textLines[v].length&&(C-=this._getWidthOfCharSpacing()),k={top:x,left:A+(C>0?C:0)},this.direction==="rtl"&&(k.left*=-1),this.cursorOffsetCache=k,this.cursorOffsetCache},renderCursor:function(d,A){var v=this.get2DCursorLocation(),w=v.lineIndex,x=v.charIndex>0?v.charIndex-1:0,C=this.getValueOfPropertyAt(w,x,"fontSize"),k=this.scaleX*this.canvas.getZoom(),T=this.cursorWidth/k,S=d.topOffset,M=this.getValueOfPropertyAt(w,x,"deltaY");S+=(1-this._fontSizeFraction)*this.getHeightOfLine(w)/this.lineHeight-C*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(d,A),A.fillStyle=this.cursorColor||this.getValueOfPropertyAt(w,x,"fill"),A.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,A.fillRect(d.left+d.leftOffset-T/2,S+d.top+M,T,C)},renderSelection:function(d,A){for(var v=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,w=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,x=this.textAlign.indexOf("justify")!==-1,C=this.get2DCursorLocation(v),k=this.get2DCursorLocation(w),T=C.lineIndex,S=k.lineIndex,M=C.charIndex<0?0:C.charIndex,P=k.charIndex<0?0:k.charIndex,N=T;N<=S;N++){var B=this._getLineLeftOffset(N)||0,O=this.getHeightOfLine(N),I=0,F=0,L=0;if(N===T&&(F=this.__charBounds[T][M].left),N>=T&&N<S)L=x&&!this.isEndOfWrapping(N)?this.width:this.getLineWidth(N)||5;else if(N===S)if(P===0)L=this.__charBounds[S][P].left;else{var R=this._getWidthOfCharSpacing();L=this.__charBounds[S][P-1].left+this.__charBounds[S][P-1].width-R}I=O,(this.lineHeight<1||N===S&&this.lineHeight>1)&&(O/=this.lineHeight);var U=d.left+B+F,V=L-F,W=O,Q=0;this.inCompositionMode?(A.fillStyle=this.compositionColor||"black",W=1,Q=O):A.fillStyle=this.selectionColor,this.direction==="rtl"&&(U=this.width-U-V),A.fillRect(U,d.top+d.topOffset+Q,V,W),d.topOffset+=I}},getCurrentCharFontSize:function(){var d=this._getCurrentCharIndex();return this.getValueOfPropertyAt(d.l,d.c,"fontSize")},getCurrentCharColor:function(){var d=this._getCurrentCharIndex();return this.getValueOfPropertyAt(d.l,d.c,"fill")},_getCurrentCharIndex:function(){var d=this.get2DCursorLocation(this.selectionStart,!0),A=d.charIndex>0?d.charIndex-1:0;return{l:d.lineIndex,c:A}}}),l.IText.fromObject=function(d,A){if(h(d),d.styles)for(var v in d.styles)for(var w in d.styles[v])h(d.styles[v][w]);l.Object._fromObject("IText",d,A,"text")}})(),(function(){var h=l.util.object.clone;l.util.object.extend(l.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var d=this;this.on("added",function(){var A=d.canvas;A&&(A._hasITextHandlers||(A._hasITextHandlers=!0,d._initCanvasHandlers(A)),A._iTextInstances=A._iTextInstances||[],A._iTextInstances.push(d))})},initRemovedHandler:function(){var d=this;this.on("removed",function(){var A=d.canvas;A&&(A._iTextInstances=A._iTextInstances||[],l.util.removeFromArray(A._iTextInstances,d),A._iTextInstances.length===0&&(A._hasITextHandlers=!1,d._removeCanvasHandlers(A)))})},_initCanvasHandlers:function(d){d._mouseUpITextHandler=function(){d._iTextInstances&&d._iTextInstances.forEach(function(A){A.__isMousedown=!1})},d.on("mouse:up",d._mouseUpITextHandler)},_removeCanvasHandlers:function(d){d.off("mouse:up",d._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(d,A,v,w){var x;return x={isAborted:!1,abort:function(){this.isAborted=!0}},d.animate("_currentCursorOpacity",A,{duration:v,onComplete:function(){x.isAborted||d[w]()},onChange:function(){d.canvas&&d.selectionStart===d.selectionEnd&&d.renderCursorOrSelection()},abort:function(){return x.isAborted}}),x},_onTickComplete:function(){var d=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){d._currentTickCompleteState=d._animateCursor(d,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(d){var A=this,v=d?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){A._tick()},v)},abortCursorAnimation:function(){var d=this._currentTickState||this._currentTickCompleteState,A=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,d&&A&&A.clearContext(A.contextTop||A.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(d){var A=0,v=d-1;if(this._reSpace.test(this._text[v]))for(;this._reSpace.test(this._text[v]);)A++,v--;for(;/\S/.test(this._text[v])&&v>-1;)A++,v--;return d-A},findWordBoundaryRight:function(d){var A=0,v=d;if(this._reSpace.test(this._text[v]))for(;this._reSpace.test(this._text[v]);)A++,v++;for(;/\S/.test(this._text[v])&&v<this._text.length;)A++,v++;return d+A},findLineBoundaryLeft:function(d){for(var A=0,v=d-1;!/\n/.test(this._text[v])&&v>-1;)A++,v--;return d-A},findLineBoundaryRight:function(d){for(var A=0,v=d;!/\n/.test(this._text[v])&&v<this._text.length;)A++,v++;return d+A},searchWordBoundary:function(d,A){for(var v=this._text,w=this._reSpace.test(v[d])?d-1:d,x=v[w],C=l.reNonWord;!C.test(x)&&w>0&&w<v.length;)w+=A,x=v[w];return C.test(x)&&(w+=A===1?0:1),w},selectWord:function(d){d=d||this.selectionStart;var A=this.searchWordBoundary(d,-1),v=this.searchWordBoundary(d,1);this.selectionStart=A,this.selectionEnd=v,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(d){d=d||this.selectionStart;var A=this.findLineBoundaryLeft(d),v=this.findLineBoundaryRight(d);return this.selectionStart=A,this.selectionEnd=v,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(d){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(d),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(d){d._iTextInstances&&d._iTextInstances.forEach(function(A){A.selected=!1,A.isEditing&&A.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(d){if(!(!this.__isMousedown||!this.isEditing)){var A=this.getSelectionStartFromPointer(d.e),v=this.selectionStart,w=this.selectionEnd;(A!==this.__selectionStartOnMouseDown||v===w)&&(v===A||w===A)||(A>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=A):(this.selectionStart=A,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==v||this.selectionEnd!==w)&&(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(d,A,v){var w=v.slice(0,d),x=l.util.string.graphemeSplit(w).length;if(d===A)return{selectionStart:x,selectionEnd:x};var C=v.slice(d,A),k=l.util.string.graphemeSplit(C).length;return{selectionStart:x,selectionEnd:x+k}},fromGraphemeToStringSelection:function(d,A,v){var w=v.slice(0,d),x=w.join("").length;if(d===A)return{selectionStart:x,selectionEnd:x};var C=v.slice(d,A),k=C.join("").length;return{selectionStart:x,selectionEnd:x+k}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var d=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=d.selectionStart,this.hiddenTextarea.selectionEnd=d.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var d=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=d.selectionEnd,this.inCompositionMode||(this.selectionStart=d.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var d=this._calcTextareaPosition();this.hiddenTextarea.style.left=d.left,this.hiddenTextarea.style.top=d.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var d=this.inCompositionMode?this.compositionStart:this.selectionStart,A=this._getCursorBoundaries(d),v=this.get2DCursorLocation(d),w=v.lineIndex,x=v.charIndex,C=this.getValueOfPropertyAt(w,x,"fontSize")*this.lineHeight,k=A.leftOffset,T=this.calcTransformMatrix(),S={x:A.left+k,y:A.top+A.topOffset+C},M=this.canvas.getRetinaScaling(),P=this.canvas.upperCanvasEl,N=P.width/M,B=P.height/M,O=N-C,I=B-C,F=P.clientWidth/N,L=P.clientHeight/B;return S=l.util.transformPoint(S,T),S=l.util.transformPoint(S,this.canvas.viewportTransform),S.x*=F,S.y*=L,S.x<0&&(S.x=0),S.x>O&&(S.x=O),S.y<0&&(S.y=0),S.y>I&&(S.y=I),S.x+=this.canvas._offset.left,S.y+=this.canvas._offset.top,{left:S.x+"px",top:S.y+"px",fontSize:C+"px",charHeight:C}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var d=this._textBeforeEdit!==this.text,A=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,A&&(A.blur&&A.blur(),A.parentNode&&A.parentNode.removeChild(A)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),d&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),d&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var d in this.styles)this._textLines[d]||delete this.styles[d]},removeStyleFromTo:function(d,A){var v=this.get2DCursorLocation(d,!0),w=this.get2DCursorLocation(A,!0),x=v.lineIndex,C=v.charIndex,k=w.lineIndex,T=w.charIndex,S,M;if(x!==k){if(this.styles[x])for(S=C;S<this._unwrappedTextLines[x].length;S++)delete this.styles[x][S];if(this.styles[k])for(S=T;S<this._unwrappedTextLines[k].length;S++)M=this.styles[k][S],M&&(this.styles[x]||(this.styles[x]={}),this.styles[x][C+S-T]=M);for(S=x+1;S<=k;S++)delete this.styles[S];this.shiftLineStyles(k,x-k)}else if(this.styles[x]){M=this.styles[x];var P=T-C,N,B;for(S=C;S<T;S++)delete M[S];for(B in this.styles[x])N=parseInt(B,10),N>=T&&(M[N-P]=M[B],delete M[B])}},shiftLineStyles:function(d,A){var v=h(this.styles);for(var w in this.styles){var x=parseInt(w,10);x>d&&(this.styles[x+A]=v[x],v[x-A]||delete this.styles[x])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(d,A,v,w){var x,C={},k=!1,T=this._unwrappedTextLines[d].length===A;v||(v=1),this.shiftLineStyles(d,v),this.styles[d]&&(x=this.styles[d][A===0?A:A-1]);for(var S in this.styles[d]){var M=parseInt(S,10);M>=A&&(k=!0,C[M-A]=this.styles[d][S],T&&A===0||delete this.styles[d][S])}var P=!1;for(k&&!T&&(this.styles[d+v]=C,P=!0),P&&v--;v>0;)w&&w[v-1]?this.styles[d+v]={0:h(w[v-1])}:x?this.styles[d+v]={0:h(x)}:delete this.styles[d+v],v--;this._forceClearCache=!0},insertCharStyleObject:function(d,A,v,w){this.styles||(this.styles={});var x=this.styles[d],C=x?h(x):{};v||(v=1);for(var k in C){var T=parseInt(k,10);T>=A&&(x[T+v]=C[T],C[T-v]||delete x[T])}if(this._forceClearCache=!0,w){for(;v--;)Object.keys(w[v]).length&&(this.styles[d]||(this.styles[d]={}),this.styles[d][A+v]=h(w[v]));return}if(x)for(var S=x[A?A-1:1];S&&v--;)this.styles[d][A+v]=h(S)},insertNewStyleBlock:function(d,A,v){for(var w=this.get2DCursorLocation(A,!0),x=[0],C=0,k=0;k<d.length;k++)d[k]===`
`?(C++,x[C]=0):x[C]++;x[0]>0&&(this.insertCharStyleObject(w.lineIndex,w.charIndex,x[0],v),v=v&&v.slice(x[0]+1)),C&&this.insertNewlineStyleObject(w.lineIndex,w.charIndex+x[0],C);for(var k=1;k<C;k++)x[k]>0?this.insertCharStyleObject(w.lineIndex+k,0,x[k],v):v&&(this.styles[w.lineIndex+k][0]=v[0]),v=v&&v.slice(x[k]+1);x[k]>0&&this.insertCharStyleObject(w.lineIndex+k,0,x[k],v)},setSelectionStartEndWithShift:function(d,A,v){v<=d?(A===d?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=d),this.selectionStart=v):v>d&&v<A?this._selectionDirection==="right"?this.selectionEnd=v:this.selectionStart=v:(A===d?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=A),this.selectionEnd=v)},setSelectionInBoundaries:function(){var d=this.text.length;this.selectionStart>d?this.selectionStart=d:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>d?this.selectionEnd=d:this.selectionEnd<0&&(this.selectionEnd=0)}})})(),l.util.object.extend(l.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(h){if(this.canvas){this.__newClickTime=+new Date;var d=h.pointer;this.isTripleClick(d)&&(this.fire("tripleclick",h),this._stopEvent(h.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=d,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(h){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===h.x&&this.__lastPointer.y===h.y},_stopEvent:function(h){h.preventDefault&&h.preventDefault(),h.stopPropagation&&h.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(h){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(h.e))},tripleClickHandler:function(h){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(h.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(h){!this.canvas||!this.editable||h.e.button&&h.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(h.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(h){!this.canvas||!this.editable||h.e.button&&h.e.button!==1||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(h){if(this.__isMousedown=!1,!(!this.editable||this.group||h.transform&&h.transform.actionPerformed||h.e.button&&h.e.button!==1)){if(this.canvas){var d=this.canvas._activeObject;if(d&&d!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(h.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(h){var d=this.getSelectionStartFromPointer(h),A=this.selectionStart,v=this.selectionEnd;h.shiftKey?this.setSelectionStartEndWithShift(A,v,d):(this.selectionStart=d,this.selectionEnd=d),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(h){for(var d=this.getLocalPointer(h),A=0,v=0,w=0,x=0,C=0,k,T,S=0,M=this._textLines.length;S<M&&w<=d.y;S++)w+=this.getHeightOfLine(S)*this.scaleY,C=S,S>0&&(x+=this._textLines[S-1].length+this.missingNewlineOffset(S-1));k=this._getLineLeftOffset(C),v=k*this.scaleX,T=this._textLines[C],this.direction==="rtl"&&(d.x=this.width*this.scaleX-d.x+v);for(var P=0,N=T.length;P<N&&(A=v,v+=this.__charBounds[C][P].kernedWidth*this.scaleX,v<=d.x);P++)x++;return this._getNewSelectionStartFromOffset(d,A,v,x,N)},_getNewSelectionStartFromOffset:function(h,d,A,v,w){var x=h.x-d,C=A-h.x,k=C>x||C<0?0:1,T=v+k;return this.flipX&&(T=w-T),T>this._text.length&&(T=this._text.length),T}}),l.util.object.extend(l.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=l.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var h=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+h.top+"; left: "+h.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; paddingｰtop: "+h.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):l.document.body.appendChild(this.hiddenTextarea),l.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),l.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),l.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),l.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),l.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),l.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),l.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),l.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),l.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(l.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(h){if(this.isEditing){var d=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(h.keyCode in d)this[d[h.keyCode]](h);else if(h.keyCode in this.ctrlKeysMapDown&&(h.ctrlKey||h.metaKey))this[this.ctrlKeysMapDown[h.keyCode]](h);else return;h.stopImmediatePropagation(),h.preventDefault(),h.keyCode>=33&&h.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(h){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(h.keyCode in this.ctrlKeysMapUp&&(h.ctrlKey||h.metaKey))this[this.ctrlKeysMapUp[h.keyCode]](h);else return;h.stopImmediatePropagation(),h.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(h){var d=this.fromPaste;if(this.fromPaste=!1,h&&h.stopPropagation(),!!this.isEditing){var A=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,v=this._text.length,w=A.length,x,C,k=w-v,T=this.selectionStart,S=this.selectionEnd,M=T!==S,P,N,B;if(this.hiddenTextarea.value===""){this.styles={},this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll());return}var O=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),I=T>O.selectionStart;M?(x=this._text.slice(T,S),k+=S-T):w<v&&(I?x=this._text.slice(S+k,S):x=this._text.slice(T,T-k)),C=A.slice(O.selectionEnd-k,O.selectionEnd),x&&x.length&&(C.length&&(P=this.getSelectionStyles(T,T+1,!1),P=C.map(function(){return P[0]})),M?(N=T,B=S):I?(N=S-x.length,B=S):(N=S,B=S+x.length),this.removeStyleFromTo(N,B)),C.length&&(d&&C.join("")===l.copiedText&&!l.disableStyleCopyPaste&&(P=l.copiedTextStyle),this.insertNewStyleBlock(C,T,P)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(h){this.compositionStart=h.target.selectionStart,this.compositionEnd=h.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(l.copiedText=this.getSelectedText(),l.disableStyleCopyPaste?l.copiedTextStyle=null:l.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(h){return h&&h.clipboardData||l.window.clipboardData},_getWidthBeforeCursor:function(h,d){var A=this._getLineLeftOffset(h),v;return d>0&&(v=this.__charBounds[h][d-1],A+=v.left+v.width),A},getDownCursorOffset:function(h,d){var A=this._getSelectionForOffset(h,d),v=this.get2DCursorLocation(A),w=v.lineIndex;if(w===this._textLines.length-1||h.metaKey||h.keyCode===34)return this._text.length-A;var x=v.charIndex,C=this._getWidthBeforeCursor(w,x),k=this._getIndexOnLine(w+1,C),T=this._textLines[w].slice(x);return T.length+k+1+this.missingNewlineOffset(w)},_getSelectionForOffset:function(h,d){return h.shiftKey&&this.selectionStart!==this.selectionEnd&&d?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(h,d){var A=this._getSelectionForOffset(h,d),v=this.get2DCursorLocation(A),w=v.lineIndex;if(w===0||h.metaKey||h.keyCode===33)return-A;var x=v.charIndex,C=this._getWidthBeforeCursor(w,x),k=this._getIndexOnLine(w-1,C),T=this._textLines[w].slice(0,x),S=this.missingNewlineOffset(w-1);return-this._textLines[w-1].length+k-T.length+(1-S)},_getIndexOnLine:function(h,d){for(var A=this._textLines[h],v=this._getLineLeftOffset(h),w=v,x=0,C,k,T=0,S=A.length;T<S;T++)if(C=this.__charBounds[h][T].width,w+=C,w>d){k=!0;var M=w-C,P=w,N=Math.abs(M-d),B=Math.abs(P-d);x=B<N?T:T-1;break}return k||(x=A.length-1),x},moveCursorDown:function(h){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",h)},moveCursorUp:function(h){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",h)},_moveCursorUpOrDown:function(h,d){var A="get"+h+"CursorOffset",v=this[A](d,this._selectionDirection==="right");d.shiftKey?this.moveCursorWithShift(v):this.moveCursorWithoutShift(v),v!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(h){var d=this._selectionDirection==="left"?this.selectionStart+h:this.selectionEnd+h;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,d),h!==0},moveCursorWithoutShift:function(h){return h<0?(this.selectionStart+=h,this.selectionEnd=this.selectionStart):(this.selectionEnd+=h,this.selectionStart=this.selectionEnd),h!==0},moveCursorLeft:function(h){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",h)},_move:function(h,d,A){var v;if(h.altKey)v=this["findWordBoundary"+A](this[d]);else if(h.metaKey||h.keyCode===35||h.keyCode===36)v=this["findLineBoundary"+A](this[d]);else return this[d]+=A==="Left"?-1:1,!0;if(typeof v!==void 0&&this[d]!==v)return this[d]=v,!0},_moveLeft:function(h,d){return this._move(h,d,"Left")},_moveRight:function(h,d){return this._move(h,d,"Right")},moveCursorLeftWithoutShift:function(h){var d=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(d=this._moveLeft(h,"selectionStart")),this.selectionEnd=this.selectionStart,d},moveCursorLeftWithShift:function(h){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(h,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(h,"selectionStart")},moveCursorRight:function(h){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",h)},_moveCursorLeftOrRight:function(h,d){var A="moveCursor"+h+"With";this._currentCursorOpacity=1,d.shiftKey?A+="Shift":A+="outShift",this[A](d)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(h){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(h,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(h,"selectionEnd")},moveCursorRightWithoutShift:function(h){var d=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(d=this._moveRight(h,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,d},removeChars:function(h,d){typeof d>"u"&&(d=h+1),this.removeStyleFromTo(h,d),this._text.splice(h,d-h),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(h,d,A,v){typeof v>"u"&&(v=A),v>A&&this.removeStyleFromTo(A,v);var w=l.util.string.graphemeSplit(h);this.insertNewStyleBlock(w,A,d),this._text=[].concat(this._text.slice(0,A),w,this._text.slice(v)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),(function(){var h=l.util.toFixed,d=/  +/g;l.util.object.extend(l.Text.prototype,{_toSVG:function(){var A=this._getSVGLeftTopOffsets(),v=this._getSVGTextAndBg(A.textTop,A.textLeft);return this._wrapSVGTextAndBg(v)},toSVG:function(A){return this._createBaseSVGMarkup(this._toSVG(),{reviver:A,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(A){var v=!0,w=this.getSvgTextDecoration(this);return[A.textBgRects.join(""),'		<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",w?'text-decoration="'+w+'" ':"",'style="',this.getSvgStyles(v),'"',this.addPaintOrder()," >",A.textSpans.join(""),`</text>
`]},_getSVGTextAndBg:function(A,v){var w=[],x=[],C=A,k;this._setSVGBg(x);for(var T=0,S=this._textLines.length;T<S;T++)k=this._getLineLeftOffset(T),(this.textBackgroundColor||this.styleHas("textBackgroundColor",T))&&this._setSVGTextLineBg(x,T,v+k,C),this._setSVGTextLineText(w,T,v+k,C),C+=this.getHeightOfLine(T);return{textSpans:w,textBgRects:x}},_createTextCharSpan:function(A,v,w,x){var C=A!==A.trim()||A.match(d),k=this.getSvgSpanStyles(v,C),T=k?'style="'+k+'"':"",S=v.deltaY,M="",P=l.Object.NUM_FRACTION_DIGITS;return S&&(M=' dy="'+h(S,P)+'" '),['<tspan x="',h(w,P),'" y="',h(x,P),'" ',M,T,">",l.util.string.escapeXml(A),"</tspan>"].join("")},_setSVGTextLineText:function(A,v,w,x){var C=this.getHeightOfLine(v),k=this.textAlign.indexOf("justify")!==-1,T,S,M="",P,N,B=0,O=this._textLines[v],I;x+=C*(1-this._fontSizeFraction)/this.lineHeight;for(var F=0,L=O.length-1;F<=L;F++)I=F===L||this.charSpacing,M+=O[F],P=this.__charBounds[v][F],B===0?(w+=P.kernedWidth-P.width,B+=P.width):B+=P.kernedWidth,k&&!I&&this._reSpaceAndTab.test(O[F])&&(I=!0),I||(T=T||this.getCompleteStyleDeclaration(v,F),S=this.getCompleteStyleDeclaration(v,F+1),I=this._hasStyleChangedForSvg(T,S)),I&&(N=this._getStyleDeclaration(v,F)||{},A.push(this._createTextCharSpan(M,N,w,x)),M="",T=S,w+=B,B=0)},_pushTextBgRect:function(A,v,w,x,C,k){var T=l.Object.NUM_FRACTION_DIGITS;A.push("		<rect ",this._getFillAttributes(v),' x="',h(w,T),'" y="',h(x,T),'" width="',h(C,T),'" height="',h(k,T),`"></rect>
`)},_setSVGTextLineBg:function(A,v,w,x){for(var C=this._textLines[v],k=this.getHeightOfLine(v)/this.lineHeight,T=0,S=0,M,P,N=this.getValueOfPropertyAt(v,0,"textBackgroundColor"),B=0,O=C.length;B<O;B++)M=this.__charBounds[v][B],P=this.getValueOfPropertyAt(v,B,"textBackgroundColor"),P!==N?(N&&this._pushTextBgRect(A,N,w+S,x,T,k),S=M.left,T=M.width,N=P):T+=M.kernedWidth;P&&this._pushTextBgRect(A,P,w+S,x,T,k)},_getFillAttributes:function(A){var v=A&&typeof A=="string"?new l.Color(A):"";return!v||!v.getSource()||v.getAlpha()===1?'fill="'+A+'"':'opacity="'+v.getAlpha()+'" fill="'+v.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(A){for(var v=0,w=0,x=0;x<A;x++)v+=this.getHeightOfLine(x);return w=this.getHeightOfLine(x),{lineTop:v,offset:(this._fontSizeMult-this._fontSizeFraction)*w/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(A){var v=l.Object.prototype.getSvgStyles.call(this,A);return v+" white-space: pre;"}})})(),(function(h){var d=h.fabric||(h.fabric={});d.Textbox=d.util.createClass(d.IText,d.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:d.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(A){for(var v=0,w=0,x=0,C={},k=0;k<A.graphemeLines.length;k++)A.graphemeText[x]===`
`&&k>0?(w=0,x++,v++):!this.splitByGrapheme&&this._reSpaceAndTab.test(A.graphemeText[x])&&k>0&&(w++,x++),C[k]={line:v,offset:w},x+=A.graphemeLines[k].length,w+=A.graphemeLines[k].length;return C},styleHas:function(A,v){if(this._styleMap&&!this.isWrapping){var w=this._styleMap[v];w&&(v=w.line)}return d.Text.prototype.styleHas.call(this,A,v)},isEmptyStyles:function(A){if(!this.styles)return!0;var v=0,w=A+1,x,C,k=!1,T=this._styleMap[A],S=this._styleMap[A+1];T&&(A=T.line,v=T.offset),S&&(w=S.line,k=w===A,x=S.offset),C=typeof A>"u"?this.styles:{line:this.styles[A]};for(var M in C)for(var P in C[M])if(P>=v&&(!k||P<x))for(var N in C[M][P])return!1;return!0},_getStyleDeclaration:function(A,v){if(this._styleMap&&!this.isWrapping){var w=this._styleMap[A];if(!w)return null;A=w.line,v=w.offset+v}return this.callSuper("_getStyleDeclaration",A,v)},_setStyleDeclaration:function(A,v,w){var x=this._styleMap[A];A=x.line,v=x.offset+v,this.styles[A][v]=w},_deleteStyleDeclaration:function(A,v){var w=this._styleMap[A];A=w.line,v=w.offset+v,delete this.styles[A][v]},_getLineStyle:function(A){var v=this._styleMap[A];return!!this.styles[v.line]},_setLineStyle:function(A){var v=this._styleMap[A];this.styles[v.line]={}},_wrapText:function(A,v){var w=[],x;for(this.isWrapping=!0,x=0;x<A.length;x++)w=w.concat(this._wrapLine(A[x],x,v));return this.isWrapping=!1,w},_measureWord:function(A,v,w){var x=0,C,k=!0;w=w||0;for(var T=0,S=A.length;T<S;T++){var M=this._getGraphemeBox(A[T],v,T+w,C,k);x+=M.kernedWidth,C=A[T]}return x},_wrapLine:function(A,v,w,U){var C=0,k=this.splitByGrapheme,T=[],S=[],M=k?d.util.string.graphemeSplit(A):A.split(this._wordJoiners),P="",N=0,B=k?"":" ",O=0,I=0,F=0,L=!0,R=this._getWidthOfCharSpacing(),U=U||0;M.length===0&&M.push([]),w-=U;for(var V=0;V<M.length;V++)P=k?M[V]:d.util.string.graphemeSplit(M[V]),O=this._measureWord(P,v,N),N+=P.length,C+=I+O-R,C>w&&!L?(T.push(S),S=[],C=O,L=!0):C+=R,!L&&!k&&S.push(B),S=S.concat(P),I=k?0:this._measureWord([B],v,N),N++,L=!1,O>F&&(F=O);return V&&T.push(S),F+U>this.dynamicMinWidth&&(this.dynamicMinWidth=F-R+U),T},isEndOfWrapping:function(A){return!this._styleMap[A+1]||this._styleMap[A+1].line!==this._styleMap[A].line},missingNewlineOffset:function(A){return this.splitByGrapheme?this.isEndOfWrapping(A)?1:0:1},_splitTextIntoLines:function(A){for(var v=d.Text.prototype._splitTextIntoLines.call(this,A),w=this._wrapText(v.lines,this.width),x=new Array(w.length),C=0;C<w.length;C++)x[C]=w[C].join("");return v.lines=x,v.graphemeLines=w,v},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var A={};for(var v in this._styleMap)this._textLines[v]&&(A[this._styleMap[v].line]=1);for(var v in this.styles)A[v]||delete this.styles[v]},toObject:function(A){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(A))}}),d.Textbox.fromObject=function(A,v){return d.Object._fromObject("Textbox",A,v,"text")}})(f),(function(){var h=l.controlsUtils,d=h.scaleSkewCursorStyleHandler,A=h.scaleCursorStyleHandler,v=h.scalingEqually,w=h.scalingYOrSkewingX,x=h.scalingXOrSkewingY,C=h.scaleOrSkewActionName,k=l.Object.prototype.controls;if(k.ml=new l.Control({x:-.5,y:0,cursorStyleHandler:d,actionHandler:x,getActionName:C}),k.mr=new l.Control({x:.5,y:0,cursorStyleHandler:d,actionHandler:x,getActionName:C}),k.mb=new l.Control({x:0,y:.5,cursorStyleHandler:d,actionHandler:w,getActionName:C}),k.mt=new l.Control({x:0,y:-.5,cursorStyleHandler:d,actionHandler:w,getActionName:C}),k.tl=new l.Control({x:-.5,y:-.5,cursorStyleHandler:A,actionHandler:v}),k.tr=new l.Control({x:.5,y:-.5,cursorStyleHandler:A,actionHandler:v}),k.bl=new l.Control({x:-.5,y:.5,cursorStyleHandler:A,actionHandler:v}),k.br=new l.Control({x:.5,y:.5,cursorStyleHandler:A,actionHandler:v}),k.mtr=new l.Control({x:0,y:-.5,actionHandler:h.rotationWithSnapping,cursorStyleHandler:h.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),l.Textbox){var T=l.Textbox.prototype.controls={};T.mtr=k.mtr,T.tr=k.tr,T.br=k.br,T.tl=k.tl,T.bl=k.bl,T.mt=k.mt,T.mb=k.mb,T.mr=new l.Control({x:.5,y:0,actionHandler:h.changeWidth,cursorStyleHandler:d,actionName:"resizing"}),T.ml=new l.Control({x:-.5,y:0,actionHandler:h.changeWidth,cursorStyleHandler:d,actionName:"resizing"})}})()}),3053:(function(u,f,o){var l=o(602);function g(m,p,_){var y,h;if(_=_||0,!l(p))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(p,m,_);for(h=p.length,y=_;_>=0&&y<h;y+=1)if(p[y]===m)return y;return-1}u.exports=g}),8592:(function(u,f,o){var l=o(602),g=o(6092),m=o(5573);function p(_,y,h){l(_)?g(_,y,h):m(_,y,h)}u.exports=p}),6092:(function(u){function f(o,l,g){var m=0,p=o.length;for(g=g||null;m<p&&l.call(g,o[m],m,o)!==!1;m+=1);}u.exports=f}),5573:(function(u){function f(o,l,g){var m;g=g||null;for(m in o)if(o.hasOwnProperty(m)&&l.call(g,o[m],m,o)===!1)break}u.exports=f}),9052:(function(u,f,o){var l=o(961),g=o(9886),m=o(2560),p=o(5393),_=o(602),y=o(5183),h=o(8592),d=/\s+/g;function A(){this.events=null,this.contexts=null}A.mixin=function(v){l(v.prototype,A.prototype)},A.prototype._getHandlerItem=function(v,w){var x={handler:v};return w&&(x.context=w),x},A.prototype._safeEvent=function(v){var w=this.events,x;return w||(w=this.events={}),v&&(x=w[v],x||(x=[],w[v]=x),w=x),w},A.prototype._safeContext=function(){var v=this.contexts;return v||(v=this.contexts=[]),v},A.prototype._indexOfContext=function(v){for(var w=this._safeContext(),x=0;w[x];){if(v===w[x][0])return x;x+=1}return-1},A.prototype._memorizeContext=function(v){var w,x;g(v)&&(w=this._safeContext(),x=this._indexOfContext(v),x>-1?w[x][1]+=1:w.push([v,1]))},A.prototype._forgetContext=function(v){var w,x;g(v)&&(w=this._safeContext(),x=this._indexOfContext(v),x>-1&&(w[x][1]-=1,w[x][1]<=0&&w.splice(x,1)))},A.prototype._bindEvent=function(v,w,x){var C=this._safeEvent(v);this._memorizeContext(x),C.push(this._getHandlerItem(w,x))},A.prototype.on=function(v,w,x){var C=this;m(v)?(v=v.split(d),h(v,function(k){C._bindEvent(k,w,x)})):p(v)&&(x=w,h(v,function(k,T){C.on(T,k,x)}))},A.prototype.once=function(v,w,x){var C=this;if(p(v)){x=w,h(v,function(T,S){C.once(S,T,x)});return}function k(){w.apply(x,arguments),C.off(v,k,x)}this.on(v,k,x)},A.prototype._spliceMatches=function(v,w){var x=0,C;if(_(v))for(C=v.length;x<C;x+=1)w(v[x])===!0&&(v.splice(x,1),C-=1,x-=1)},A.prototype._matchHandler=function(v){var w=this;return function(x){var C=v===x.handler;return C&&w._forgetContext(x.context),C}},A.prototype._matchContext=function(v){var w=this;return function(x){var C=v===x.context;return C&&w._forgetContext(x.context),C}},A.prototype._matchHandlerAndContext=function(v,w){var x=this;return function(C){var k=v===C.handler,T=w===C.context,S=k&&T;return S&&x._forgetContext(C.context),S}},A.prototype._offByEventName=function(v,w){var x=this,C=y(w),k=x._matchHandler(w);v=v.split(d),h(v,function(T){var S=x._safeEvent(T);C?x._spliceMatches(S,k):(h(S,function(M){x._forgetContext(M.context)}),x.events[T]=[])})},A.prototype._offByHandler=function(v){var w=this,x=this._matchHandler(v);h(this._safeEvent(),function(C){w._spliceMatches(C,x)})},A.prototype._offByObject=function(v,w){var x=this,C;this._indexOfContext(v)<0?h(v,function(k,T){x.off(T,k)}):m(w)?(C=this._matchContext(v),x._spliceMatches(this._safeEvent(w),C)):y(w)?(C=this._matchHandlerAndContext(w,v),h(this._safeEvent(),function(k){x._spliceMatches(k,C)})):(C=this._matchContext(v),h(this._safeEvent(),function(k){x._spliceMatches(k,C)}))},A.prototype.off=function(v,w){m(v)?this._offByEventName(v,w):arguments.length?y(v)?this._offByHandler(v):p(v)&&this._offByObject(v,w):(this.events={},this.contexts=[])},A.prototype.fire=function(v){this.invoke.apply(this,arguments)},A.prototype.invoke=function(v){var w,x,C,k;if(!this.hasListener(v))return!0;for(w=this._safeEvent(v),x=Array.prototype.slice.call(arguments,1),C=0;w[C];){if(k=w[C],k.handler.apply(k.context,x)===!1)return!1;C+=1}return!0},A.prototype.hasListener=function(v){return this.getListenerLength(v)>0},A.prototype.getListenerLength=function(v){var w=this._safeEvent(v);return w.length},u.exports=A}),961:(function(u){function f(o,l){var g=Object.prototype.hasOwnProperty,m,p,_,y;for(_=1,y=arguments.length;_<y;_+=1){m=arguments[_];for(p in m)g.call(m,p)&&(o[p]=m[p])}return o}u.exports=f}),1610:(function(u,f,o){var l=o(5695),g=o(3778);function m(p,_){for(var y=arguments,h=y[0],d=1,A=y.length;d<A;d+=1){if(l(h)||g(h))return;h=h[y[d]]}return h}u.exports=m}),4564:(function(u,f,o){var l=o(5573);function g(m,p){var _=document.createElement("img"),y="";return l(p,function(h,d){y+="&"+d+"="+h}),y=y.substring(1),_.src=m+"?"+y,_.style.display="none",document.body.appendChild(_),document.body.removeChild(_),_}u.exports=g}),4729:(function(u,f,o){var l=o(5695),g=o(4564),m=10080*60*1e3;function p(y){var h=new Date().getTime();return h-y>m}function _(y,h){var d="https://www.google-analytics.com/collect",A=location.hostname,v="event",w="use",x="TOAST UI "+y+" for "+A+": Statistics",C=window.localStorage.getItem(x);!l(window.tui)&&window.tui.usageStatistics===!1||C&&!p(C)||(window.localStorage.setItem(x,new Date().getTime()),setTimeout(function(){(document.readyState==="interactive"||document.readyState==="complete")&&g(d,{v:1,t:v,tid:h,cid:A,dp:A,dh:y,el:y,ec:w})},1e3))}u.exports=_}),602:(function(u){function f(o){return o instanceof Array}u.exports=f}),9886:(function(u,f,o){var l=o(5695),g=o(3778);function m(p){return!l(p)&&!g(p)}u.exports=m}),5183:(function(u){function f(o){return o instanceof Function}u.exports=f}),3778:(function(u){function f(o){return o===null}u.exports=f}),5393:(function(u){function f(o){return o===Object(o)}u.exports=f}),2560:(function(u){function f(o){return typeof o=="string"||o instanceof String}u.exports=f}),5695:(function(u){function f(o){return o===void 0}u.exports=f}),4426:(function(u,f,o){u.exports=o(4486)}),9406:(function(u,f,o){u.exports=o(4877)}),789:(function(u,f,o){u.exports=o(7178)}),381:(function(u,f,o){u.exports=o(5603)}),7636:(function(u,f,o){u.exports=o(1206)}),1899:(function(u,f,o){u.exports=o(6174)}),899:(function(u,f,o){u.exports=o(57)}),8005:(function(u,f,o){u.exports=o(4741)}),6562:(function(u,f,o){u.exports=o(8368)}),9131:(function(u,f,o){u.exports=o(3739)}),4383:(function(u,f,o){u.exports=o(172)}),6065:(function(u,f,o){u.exports=o(4963)}),1734:(function(u,f,o){u.exports=o(7820)}),2461:(function(u,f,o){u.exports=o(5636)}),5214:(function(u,f,o){u.exports=o(5059)}),6397:(function(u,f,o){u.exports=o(3969)}),8189:(function(u,f,o){u.exports=o(6618)}),9146:(function(u,f,o){u.exports=o(5279)}),4496:(function(u,f,o){u.exports=o(9562)}),3972:(function(u,f,o){u.exports=o(652)}),7172:(function(u,f,o){u.exports=o(2813)}),1845:(function(u,f,o){u.exports=o(8664)}),662:(function(u,f,o){u.exports=o(1457)}),711:(function(u,f,o){u.exports=o(2937)}),6623:(function(u,f,o){u.exports=o(9297)}),7077:(function(u,f,o){u.exports=o(8026)}),9856:(function(u,f,o){u.exports=o(2044)}),4230:(function(u,f,o){u.exports=o(2214)}),184:(function(u,f,o){u.exports=o(9256)}),3742:(function(u,f,o){u.exports=o(5659)}),1801:(function(u){var f={rect:1,circle:2,triangle:1},o={rect:{w:"width",h:"height"},circle:{w:"rx",h:"ry"},triangle:{w:"width",h:"height"}};function l(d){var A=d.originX,v=d.originY,w=A.substring(0,1)+v.substring(0,1);d.startPoint=d.origins[w]}function g(d,A,v){var w=d.x,x=d.y,C=A.x,k=A.y,T=v*Math.PI/180,S=(C-w)*Math.cos(T)-(k-x)*Math.sin(T)+w,M=(C-w)*Math.sin(T)+(k-x)*Math.cos(T)+x;return{originX:w>S?"right":"left",originY:x>M?"bottom":"top"}}function m(d){return d.originX==="center"&&d.originY==="center"}function p(d,A){var v=A.getPointByOrigin("center","center"),w=-A.angle,x=g(v,d,w),C=x.originX,k=x.originY,T=A.getPointByOrigin(C,k),S=A.left-(v.x-T.x),M=A.top-(v.y-T.y);A.set({originX:C,originY:k,left:S,top:M}),A.setCoords()}function _(d,A){var v=A.startPoint,w=-A.angle,x=g(v,d,w),C=x.originX,k=x.originY;A.setPositionByOrigin(v,C,k),A.setCoords()}function y(d){var A=d.type,v=d.scaleX,w=d.scaleY,x=o[A],C=d[x.w]*v,k=d[x.h]*w;if(d.isRegular){var T=Math.max(v,w);C=d[x.w]*T,k=d[x.h]*T}var S={hasControls:!1,hasBorders:!1,scaleX:1,scaleY:1};S[x.w]=C,S[x.h]=k,d.set(S)}function h(d,A){var v=A.type,w=A.strokeWidth,x=A.startPoint,C=f[v],k=o[v],T=A.type==="triangle",S={},M=Math.abs(x.x-d.x)/C,P=Math.abs(x.y-d.y)/C;M>w&&(M-=w/C),P>w&&(P-=w/C),A.isRegular&&(M=P=Math.max(M,P),T&&(P=Math.sqrt(3)/2*M)),S[k.w]=M,S[k.h]=P,A.set(S)}u.exports={setOrigins:function(A){var v=A.getPointByOrigin("left","top"),w=A.getPointByOrigin("right","top"),x=A.getPointByOrigin("right","bottom"),C=A.getPointByOrigin("left","bottom");A.origins={lt:v,rt:w,rb:x,lb:C}},resize:function(A,v,w){m(A)&&(p(v,A),l(A)),w?y(A):h(v,A),_(v,A)},adjustOriginToCenter:function(A){var v=A.getPointByOrigin("center","center"),w=A.originX,x=A.originY,C=A.getPointByOrigin(w,x),k=A.left+(v.x-C.x),T=A.top+(v.y-C.y);A.set({hasControls:!0,hasBorders:!0,originX:"center",originY:"center",left:k,top:T}),A.setCoords()}}}),2221:(function(u,f,o){o(5454),o(9173);var l=o(7545);u.exports=l.Array.from}),5078:(function(u,f,o){o(8118);var l=o(7545);u.exports=l.Array.isArray}),6135:(function(u,f,o){o(9106);var l=o(5607);u.exports=l("Array").concat}),9510:(function(u,f,o){o(1710);var l=o(5607);u.exports=l("Array").fill}),3971:(function(u,f,o){o(3436);var l=o(5607);u.exports=l("Array").filter}),98:(function(u,f,o){o(9823);var l=o(5607);u.exports=l("Array").forEach}),2089:(function(u,f,o){o(2276);var l=o(5607);u.exports=l("Array").indexOf}),6209:(function(u,f,o){o(3838);var l=o(5607);u.exports=l("Array").map}),2671:(function(u,f,o){o(5818);var l=o(5607);u.exports=l("Array").slice}),1375:(function(u,f,o){o(2178);var l=o(5607);u.exports=l("Array").splice}),3528:(function(u,f,o){o(665);var l=o(5607);u.exports=l("Function").bind}),5739:(function(u,f,o){o(8939),o(5454);var l=o(8703);u.exports=l}),278:(function(u,f,o){var l=o(3528),g=Function.prototype;u.exports=function(m){var p=m.bind;return m===g||m instanceof Function&&p===g.bind?l:p}}),1484:(function(u,f,o){var l=o(6135),g=Array.prototype;u.exports=function(m){var p=m.concat;return m===g||m instanceof Array&&p===g.concat?l:p}}),7731:(function(u,f,o){var l=o(9510),g=Array.prototype;u.exports=function(m){var p=m.fill;return m===g||m instanceof Array&&p===g.fill?l:p}}),3669:(function(u,f,o){var l=o(3971),g=Array.prototype;u.exports=function(m){var p=m.filter;return m===g||m instanceof Array&&p===g.filter?l:p}}),2604:(function(u,f,o){var l=o(2089),g=Array.prototype;u.exports=function(m){var p=m.indexOf;return m===g||m instanceof Array&&p===g.indexOf?l:p}}),263:(function(u,f,o){var l=o(6209),g=Array.prototype;u.exports=function(m){var p=m.map;return m===g||m instanceof Array&&p===g.map?l:p}}),7663:(function(u,f,o){var l=o(2671),g=Array.prototype;u.exports=function(m){var p=m.slice;return m===g||m instanceof Array&&p===g.slice?l:p}}),5063:(function(u,f,o){var l=o(1375),g=Array.prototype;u.exports=function(m){var p=m.splice;return m===g||m instanceof Array&&p===g.splice?l:p}}),6813:(function(u,f,o){var l=o(3842),g=String.prototype;u.exports=function(m){var p=m.trim;return typeof m=="string"||m===g||m instanceof String&&p===g.trim?l:p}}),6285:(function(u,f,o){o(2666);var l=o(7545);u.exports=l.Number.parseInt}),3213:(function(u,f,o){o(3113);var l=o(7545),g=l.Object;u.exports=function(p,_){return g.create(p,_)}}),3512:(function(u,f,o){o(297);var l=o(7545),g=l.Object,m=u.exports=function(_,y,h){return g.defineProperty(_,y,h)};g.defineProperty.sham&&(m.sham=!0)}),8168:(function(u,f,o){o(9234);var l=o(7545);u.exports=l.Object.getPrototypeOf}),8651:(function(u,f,o){o(2647);var l=o(7545);u.exports=l.Object.keys}),3083:(function(u,f,o){o(3222);var l=o(7545);u.exports=l.Object.setPrototypeOf}),2987:(function(u,f,o){o(4859);var l=o(7545);u.exports=l.parseFloat}),2239:(function(u,f,o){o(5706);var l=o(7545);u.exports=l.parseInt}),3154:(function(u,f,o){o(4242),o(8939),o(6663),o(9021),o(7884),o(8885),o(1868),o(5454);var l=o(7545);u.exports=l.Promise}),6577:(function(u,f,o){o(5397);var l=o(7545);u.exports=l.Reflect.construct}),3842:(function(u,f,o){o(957);var l=o(5607);u.exports=l("String").trim}),5008:(function(u,f,o){o(9106),o(6663),o(6187),o(9781),o(492),o(6681),o(9594),o(3665),o(9017),o(1250),o(9786),o(503),o(6565),o(9322),o(3610),o(6886),o(3514),o(8671),o(8556),o(1367);var l=o(7545);u.exports=l.Symbol}),994:(function(u,f,o){o(8939),o(6663),o(5454),o(3665);var l=o(9207);u.exports=l.f("iterator")}),2813:(function(u,f,o){var l=o(3822);u.exports=l}),8664:(function(u,f,o){var l=o(1434);u.exports=l}),1457:(function(u,f,o){var l=o(7710);u.exports=l}),2937:(function(u,f,o){var l=o(4741);u.exports=l}),9297:(function(u,f,o){var l=o(4963);u.exports=l}),8026:(function(u,f,o){var l=o(7820);u.exports=l}),2044:(function(u,f,o){var l=o(8980);u.exports=l}),2214:(function(u,f,o){var l=o(6672);u.exports=l}),9256:(function(u,f,o){var l=o(2285);o(177),o(9031),o(6658),o(1875),o(8658),o(4592),o(6680),u.exports=l}),5659:(function(u,f,o){var l=o(8535);u.exports=l}),6235:(function(u,f,o){var l=o(6447),g=o(9288);u.exports=function(m){if(l(m))return m;throw TypeError(g(m)+" is not a function")}}),1404:(function(u,f,o){var l=o(2091),g=o(9288);u.exports=function(m){if(l(m))return m;throw TypeError(g(m)+" is not a constructor")}}),7757:(function(u,f,o){var l=o(6447);u.exports=function(g){if(typeof g=="object"||l(g))return g;throw TypeError("Can't set "+String(g)+" as a prototype")}}),7423:(function(u){u.exports=function(){}}),6961:(function(u){u.exports=function(f,o,l){if(f instanceof o)return f;throw TypeError("Incorrect "+(l?l+" ":"")+"invocation")}}),1138:(function(u,f,o){var l=o(5744);u.exports=function(g){if(l(g))return g;throw TypeError(String(g)+" is not an object")}}),2724:(function(u,f,o){var l=o(1795),g=o(7739),m=o(4104);u.exports=function(_){for(var y=l(this),h=m(y),d=arguments.length,A=g(d>1?arguments[1]:void 0,h),v=d>2?arguments[2]:void 0,w=v===void 0?h:g(v,h);w>A;)y[A++]=_;return y}}),7397:(function(u,f,o){var l=o(454).forEach,g=o(424),m=g("forEach");u.exports=m?[].forEach:function(_){return l(this,_,arguments.length>1?arguments[1]:void 0)}}),841:(function(u,f,o){var l=o(8043),g=o(1795),m=o(1635),p=o(6109),_=o(2091),y=o(4104),h=o(9361),d=o(1669),A=o(8703);u.exports=function(w){var x=g(w),C=_(this),k=arguments.length,T=k>1?arguments[1]:void 0,S=T!==void 0;S&&(T=l(T,k>2?arguments[2]:void 0,2));var M=A(x),P=0,N,B,O,I,F,L;if(M&&!(this==Array&&p(M)))for(I=d(x,M),F=I.next,B=C?new this:[];!(O=F.call(I)).done;P++)L=S?m(I,T,[O.value,P],!0):O.value,h(B,P,L);else for(N=y(x),B=C?new this(N):Array(N);N>P;P++)L=S?T(x[P],P):x[P],h(B,P,L);return B.length=P,B}}),8180:(function(u,f,o){var l=o(101),g=o(7739),m=o(4104),p=function(_){return function(y,h,d){var A=l(y),v=m(A),w=g(d,v),x;if(_&&h!=h){for(;v>w;)if(x=A[w++],x!=x)return!0}else for(;v>w;w++)if((_||w in A)&&A[w]===h)return _||w||0;return!_&&-1}};u.exports={includes:p(!0),indexOf:p(!1)}}),454:(function(u,f,o){var l=o(8043),g=o(2202),m=o(1795),p=o(4104),_=o(1321),y=[].push,h=function(d){var A=d==1,v=d==2,w=d==3,x=d==4,C=d==6,k=d==7,T=d==5||C;return function(S,M,P,N){for(var B=m(S),O=g(B),I=l(M,P,3),F=p(O),L=0,R=N||_,U=A?R(S,F):v||k?R(S,0):void 0,V,W;F>L;L++)if((T||L in O)&&(V=O[L],W=I(V,L,B),d))if(A)U[L]=W;else if(W)switch(d){case 3:return!0;case 5:return V;case 6:return L;case 2:y.call(U,V)}else switch(d){case 4:return!1;case 7:y.call(U,V)}return C?-1:w||x?x:U}};u.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}}),242:(function(u,f,o){var l=o(6192),g=o(8182),m=o(4218),p=g("species");u.exports=function(_){return m>=51||!l(function(){var y=[],h=y.constructor={};return h[p]=function(){return{foo:1}},y[_](Boolean).foo!==1})}}),424:(function(u,f,o){var l=o(6192);u.exports=function(g,m){var p=[][g];return!!p&&l(function(){p.call(null,m||function(){throw 1},1)})}}),3712:(function(u,f,o){var l=o(4770),g=o(2091),m=o(5744),p=o(8182),_=p("species");u.exports=function(y){var h;return l(y)&&(h=y.constructor,g(h)&&(h===Array||l(h.prototype))?h=void 0:m(h)&&(h=h[_],h===null&&(h=void 0))),h===void 0?Array:h}}),1321:(function(u,f,o){var l=o(3712);u.exports=function(g,m){return new(l(g))(m===0?0:m)}}),1635:(function(u,f,o){var l=o(1138),g=o(6639);u.exports=function(m,p,_,y){try{return y?p(l(_)[0],_[1]):p(_)}catch(h){g(m,"throw",h)}}}),9770:(function(u,f,o){var l=o(8182),g=l("iterator"),m=!1;try{var p=0,_={next:function(){return{done:!!p++}},return:function(){m=!0}};_[g]=function(){return this},Array.from(_,function(){throw 2})}catch{}u.exports=function(y,h){if(!h&&!m)return!1;var d=!1;try{var A={};A[g]=function(){return{next:function(){return{done:d=!0}}}},y(A)}catch{}return d}}),9272:(function(u){var f={}.toString;u.exports=function(o){return f.call(o).slice(8,-1)}}),4696:(function(u,f,o){var l=o(3471),g=o(6447),m=o(9272),p=o(8182),_=p("toStringTag"),y=m((function(){return arguments})())=="Arguments",h=function(d,A){try{return d[A]}catch{}};u.exports=l?m:function(d){var A,v,w;return d===void 0?"Undefined":d===null?"Null":typeof(v=h(A=Object(d),_))=="string"?v:y?m(A):(w=m(A))=="Object"&&g(A.callee)?"Arguments":w}}),4635:(function(u,f,o){var l=o(6192);u.exports=!l(function(){function g(){}return g.prototype.constructor=null,Object.getPrototypeOf(new g)!==g.prototype})}),5148:(function(u,f,o){var l=o(4413).IteratorPrototype,g=o(2853),m=o(774),p=o(1284),_=o(7771),y=function(){return this};u.exports=function(h,d,A){var v=d+" Iterator";return h.prototype=g(l,{next:m(1,A)}),p(h,v,!1,!0),_[v]=y,h}}),8711:(function(u,f,o){var l=o(69),g=o(2760),m=o(774);u.exports=l?function(p,_,y){return g.f(p,_,m(1,y))}:function(p,_,y){return p[_]=y,p}}),774:(function(u){u.exports=function(f,o){return{enumerable:!(f&1),configurable:!(f&2),writable:!(f&4),value:o}}}),9361:(function(u,f,o){var l=o(77),g=o(2760),m=o(774);u.exports=function(p,_,y){var h=l(_);h in p?g.f(p,h,m(0,y)):p[h]=y}}),7218:(function(u,f,o){var l=o(3085),g=o(5546),m=o(2282),p=o(6447),_=o(5148),y=o(9341),h=o(4469),d=o(1284),A=o(8711),v=o(9482),w=o(8182),x=o(7771),C=o(4413),k=m.PROPER,T=m.CONFIGURABLE,S=C.IteratorPrototype,M=C.BUGGY_SAFARI_ITERATORS,P=w("iterator"),N="keys",B="values",O="entries",I=function(){return this};u.exports=function(F,L,R,U,V,W,Q){_(R,L,U);var le=function(ge){if(ge===V&&Y)return Y;if(!M&&ge in ie)return ie[ge];switch(ge){case N:return function(){return new R(this,ge)};case B:return function(){return new R(this,ge)};case O:return function(){return new R(this,ge)}}return function(){return new R(this)}},G=L+" Iterator",fe=!1,ie=F.prototype,he=ie[P]||ie["@@iterator"]||V&&ie[V],Y=!M&&he||le(V),K=L=="Array"&&ie.entries||he,oe,pe,ve;if(K&&(oe=y(K.call(new F)),oe!==Object.prototype&&oe.next&&(!g&&y(oe)!==S&&(h?h(oe,S):p(oe[P])||v(oe,P,I)),d(oe,G,!0,!0),g&&(x[G]=I))),k&&V==B&&he&&he.name!==B&&(!g&&T?A(ie,"name",B):(fe=!0,Y=function(){return he.call(this)})),V)if(pe={values:le(B),keys:W?Y:le(N),entries:le(O)},Q)for(ve in pe)(M||fe||!(ve in ie))&&v(ie,ve,pe[ve]);else l({target:L,proto:!0,forced:M||fe},pe);return(!g||Q)&&ie[P]!==Y&&v(ie,P,Y,{name:V}),x[L]=Y,pe}}),1488:(function(u,f,o){var l=o(7545),g=o(4500),m=o(9207),p=o(2760).f;u.exports=function(_){var y=l.Symbol||(l.Symbol={});g(y,_)||p(y,_,{value:m.f(_)})}}),69:(function(u,f,o){var l=o(6192);u.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),7449:(function(u,f,o){var l=o(8576),g=o(5744),m=l.document,p=g(m)&&g(m.createElement);u.exports=function(_){return p?m.createElement(_):{}}}),7365:(function(u){u.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),2957:(function(u){u.exports=typeof window=="object"}),9347:(function(u,f,o){var l=o(8989),g=o(8576);u.exports=/ipad|iphone|ipod/i.test(l)&&g.Pebble!==void 0}),9536:(function(u,f,o){var l=o(8989);u.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(l)}),224:(function(u,f,o){var l=o(9272),g=o(8576);u.exports=l(g.process)=="process"}),5914:(function(u,f,o){var l=o(8989);u.exports=/web0s(?!.*chrome)/i.test(l)}),8989:(function(u,f,o){var l=o(150);u.exports=l("navigator","userAgent")||""}),4218:(function(u,f,o){var l=o(8576),g=o(8989),m=l.process,p=l.Deno,_=m&&m.versions||p&&p.version,y=_&&_.v8,h,d;y?(h=y.split("."),d=h[0]<4?1:h[0]+h[1]):g&&(h=g.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=g.match(/Chrome\/(\d+)/),h&&(d=h[1]))),u.exports=d&&+d}),5607:(function(u,f,o){var l=o(7545);u.exports=function(g){return l[g+"Prototype"]}}),2952:(function(u){u.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),3085:(function(u,f,o){var l=o(8576),g=o(6447),m=o(5141).f,p=o(9245),_=o(7545),y=o(8043),h=o(8711),d=o(4500),A=function(v){var w=function(x,C,k){if(this instanceof v){switch(arguments.length){case 0:return new v;case 1:return new v(x);case 2:return new v(x,C)}return new v(x,C,k)}return v.apply(this,arguments)};return w.prototype=v.prototype,w};u.exports=function(v,w){var x=v.target,C=v.global,k=v.stat,T=v.proto,S=C?l:k?l[x]:(l[x]||{}).prototype,M=C?_:_[x]||h(_,x,{})[x],P=M.prototype,N,B,O,I,F,L,R,U,V;for(I in w)N=p(C?I:x+(k?".":"#")+I,v.forced),B=!N&&S&&d(S,I),L=M[I],B&&(v.noTargetGet?(V=m(S,I),R=V&&V.value):R=S[I]),F=B&&R?R:w[I],!(B&&typeof L==typeof F)&&(v.bind&&B?U=y(F,l):v.wrap&&B?U=A(F):T&&g(F)?U=y(Function.call,F):U=F,(v.sham||F&&F.sham||L&&L.sham)&&h(U,"sham",!0),h(M,I,U),T&&(O=x+"Prototype",d(_,O)||h(_,O,{}),h(_[O],I,F),v.real&&P&&!P[I]&&h(P,I,F)))}}),6192:(function(u){u.exports=function(f){try{return!!f()}catch{return!0}}}),8043:(function(u,f,o){var l=o(6235);u.exports=function(g,m,p){if(l(g),m===void 0)return g;switch(p){case 0:return function(){return g.call(m)};case 1:return function(_){return g.call(m,_)};case 2:return function(_,y){return g.call(m,_,y)};case 3:return function(_,y,h){return g.call(m,_,y,h)}}return function(){return g.apply(m,arguments)}}}),6782:(function(u,f,o){var l=o(6235),g=o(5744),m=[].slice,p={},_=function(y,h,d){if(!(h in p)){for(var A=[],v=0;v<h;v++)A[v]="a["+v+"]";p[h]=Function("C,a","return new C("+A.join(",")+")")}return p[h](y,d)};u.exports=Function.bind||function(h){var d=l(this),A=m.call(arguments,1),v=function(){var x=A.concat(m.call(arguments));return this instanceof v?_(d,x.length,x):d.apply(h,x)};return g(d.prototype)&&(v.prototype=d.prototype),v}}),2282:(function(u,f,o){var l=o(69),g=o(4500),m=Function.prototype,p=l&&Object.getOwnPropertyDescriptor,_=g(m,"name"),y=_&&(function(){}).name==="something",h=_&&(!l||l&&p(m,"name").configurable);u.exports={EXISTS:_,PROPER:y,CONFIGURABLE:h}}),150:(function(u,f,o){var l=o(7545),g=o(8576),m=o(6447),p=function(_){return m(_)?_:void 0};u.exports=function(_,y){return arguments.length<2?p(l[_])||p(g[_]):l[_]&&l[_][y]||g[_]&&g[_][y]}}),8703:(function(u,f,o){var l=o(4696),g=o(5037),m=o(7771),p=o(8182),_=p("iterator");u.exports=function(y){if(y!=null)return g(y,_)||g(y,"@@iterator")||m[l(y)]}}),1669:(function(u,f,o){var l=o(6235),g=o(1138),m=o(8703);u.exports=function(p,_){var y=arguments.length<2?m(p):_;if(l(y))return g(y.call(p));throw TypeError(String(p)+" is not iterable")}}),5037:(function(u,f,o){var l=o(6235);u.exports=function(g,m){var p=g[m];return p==null?void 0:l(p)}}),8576:(function(u,f,o){var l=function(g){return g&&g.Math==Math&&g};u.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof o.g=="object"&&o.g)||(function(){return this})()||Function("return this")()}),4500:(function(u,f,o){var l=o(1795),g={}.hasOwnProperty;u.exports=Object.hasOwn||function(p,_){return g.call(l(p),_)}}),4535:(function(u){u.exports={}}),3681:(function(u,f,o){var l=o(8576);u.exports=function(g,m){var p=l.console;p&&p.error&&(arguments.length===1?p.error(g):p.error(g,m))}}),7403:(function(u,f,o){var l=o(150);u.exports=l("document","documentElement")}),188:(function(u,f,o){var l=o(69),g=o(6192),m=o(7449);u.exports=!l&&!g(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})}),2202:(function(u,f,o){var l=o(6192),g=o(9272),m="".split;u.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return g(p)=="String"?m.call(p,""):Object(p)}:Object}),9516:(function(u,f,o){var l=o(6447),g=o(6434),m=Function.toString;l(g.inspectSource)||(g.inspectSource=function(p){return m.call(p)}),u.exports=g.inspectSource}),273:(function(u,f,o){var l=o(5744),g=o(8711);u.exports=function(m,p){l(p)&&"cause"in p&&g(m,"cause",m.cause)}}),3326:(function(u,f,o){var l=o(8921),g=o(8576),m=o(5744),p=o(8711),_=o(4500),y=o(6434),h=o(9766),d=o(4535),A="Object already initialized",v=g.WeakMap,w,x,C,k=function(O){return C(O)?x(O):w(O,{})},T=function(O){return function(I){var F;if(!m(I)||(F=x(I)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return F}};if(l||y.state){var S=y.state||(y.state=new v),M=S.get,P=S.has,N=S.set;w=function(O,I){if(P.call(S,O))throw new TypeError(A);return I.facade=O,N.call(S,O,I),I},x=function(O){return M.call(S,O)||{}},C=function(O){return P.call(S,O)}}else{var B=h("state");d[B]=!0,w=function(O,I){if(_(O,B))throw new TypeError(A);return I.facade=O,p(O,B,I),I},x=function(O){return _(O,B)?O[B]:{}},C=function(O){return _(O,B)}}u.exports={set:w,get:x,has:C,enforce:k,getterFor:T}}),6109:(function(u,f,o){var l=o(8182),g=o(7771),m=l("iterator"),p=Array.prototype;u.exports=function(_){return _!==void 0&&(g.Array===_||p[m]===_)}}),4770:(function(u,f,o){var l=o(9272);u.exports=Array.isArray||function(m){return l(m)=="Array"}}),6447:(function(u){u.exports=function(f){return typeof f=="function"}}),2091:(function(u,f,o){var l=o(6192),g=o(6447),m=o(4696),p=o(150),_=o(9516),y=[],h=p("Reflect","construct"),d=/^\s*(?:class|function)\b/,A=d.exec,v=!d.exec(function(){}),w=function(C){if(!g(C))return!1;try{return h(Object,y,C),!0}catch{return!1}},x=function(C){if(!g(C))return!1;switch(m(C)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v||!!A.call(d,_(C))};u.exports=!h||l(function(){var C;return w(w.call)||!w(Object)||!w(function(){C=!0})||C})?x:w}),9245:(function(u,f,o){var l=o(6192),g=o(6447),m=/#|\.prototype\./,p=function(A,v){var w=y[_(A)];return w==d?!0:w==h?!1:g(v)?l(v):!!v},_=p.normalize=function(A){return String(A).replace(m,".").toLowerCase()},y=p.data={},h=p.NATIVE="N",d=p.POLYFILL="P";u.exports=p}),5744:(function(u,f,o){var l=o(6447);u.exports=function(g){return typeof g=="object"?g!==null:l(g)}}),5546:(function(u){u.exports=!0}),3236:(function(u,f,o){var l=o(6447),g=o(150),m=o(615);u.exports=m?function(p){return typeof p=="symbol"}:function(p){var _=g("Symbol");return l(_)&&Object(p)instanceof _}}),3442:(function(u,f,o){var l=o(1138),g=o(6109),m=o(4104),p=o(8043),_=o(1669),y=o(8703),h=o(6639),d=function(A,v){this.stopped=A,this.result=v};u.exports=function(A,v,w){var x=w&&w.that,C=!!(w&&w.AS_ENTRIES),k=!!(w&&w.IS_ITERATOR),T=!!(w&&w.INTERRUPTED),S=p(v,x,1+C+T),M,P,N,B,O,I,F,L=function(U){return M&&h(M,"normal",U),new d(!0,U)},R=function(U){return C?(l(U),T?S(U[0],U[1],L):S(U[0],U[1])):T?S(U,L):S(U)};if(k)M=A;else{if(P=y(A),!P)throw TypeError(String(A)+" is not iterable");if(g(P)){for(N=0,B=m(A);B>N;N++)if(O=R(A[N]),O&&O instanceof d)return O;return new d(!1)}M=_(A,P)}for(I=M.next;!(F=I.call(M)).done;){try{O=R(F.value)}catch(U){h(M,"throw",U)}if(typeof O=="object"&&O&&O instanceof d)return O}return new d(!1)}}),6639:(function(u,f,o){var l=o(1138),g=o(5037);u.exports=function(m,p,_){var y,h;l(m);try{if(y=g(m,"return"),!y){if(p==="throw")throw _;return _}y=y.call(m)}catch(d){h=!0,y=d}if(p==="throw")throw _;if(h)throw y;return l(y),_}}),4413:(function(u,f,o){var l=o(6192),g=o(6447),m=o(2853),p=o(9341),_=o(9482),y=o(8182),h=o(5546),d=y("iterator"),A=!1,v,w,x;[].keys&&(x=[].keys(),"next"in x?(w=p(p(x)),w!==Object.prototype&&(v=w)):A=!0);var C=v==null||l(function(){var k={};return v[d].call(k)!==k});C?v={}:h&&(v=m(v)),g(v[d])||_(v,d,function(){return this}),u.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:A}}),7771:(function(u){u.exports={}}),4104:(function(u,f,o){var l=o(8445);u.exports=function(g){return l(g.length)}}),2950:(function(u,f,o){var l=o(8576),g=o(5141).f,m=o(7160).set,p=o(9536),_=o(9347),y=o(5914),h=o(224),d=l.MutationObserver||l.WebKitMutationObserver,A=l.document,v=l.process,w=l.Promise,x=g(l,"queueMicrotask"),C=x&&x.value,k,T,S,M,P,N,B,O;C||(k=function(){var I,F;for(h&&(I=v.domain)&&I.exit();T;){F=T.fn,T=T.next;try{F()}catch(L){throw T?M():S=void 0,L}}S=void 0,I&&I.enter()},!p&&!h&&!y&&d&&A?(P=!0,N=A.createTextNode(""),new d(k).observe(N,{characterData:!0}),M=function(){N.data=P=!P}):!_&&w&&w.resolve?(B=w.resolve(void 0),B.constructor=w,O=B.then,M=function(){O.call(B,k)}):h?M=function(){v.nextTick(k)}:M=function(){m.call(l,k)}),u.exports=C||function(I){var F={fn:I,next:void 0};S&&(S.next=F),T||(T=F,M()),S=F}}),4471:(function(u,f,o){var l=o(8576);u.exports=l.Promise}),3045:(function(u,f,o){var l=o(4218),g=o(6192);u.exports=!!Object.getOwnPropertySymbols&&!g(function(){var m=Symbol();return!String(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&l&&l<41})}),4551:(function(u,f,o){var l=o(6192),g=o(8182),m=o(5546),p=g("iterator");u.exports=!l(function(){var _=new URL("b?a=1&b=2&c=3","http://a"),y=_.searchParams,h="";return _.pathname="c%20d",y.forEach(function(d,A){y.delete("b"),h+=A+d}),m&&!_.toJSON||!y.sort||_.href!=="http://a/c%20d?a=1&c=3"||y.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!y[p]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||h!=="a1c3"||new URL("http://x",void 0).host!=="x"})}),8921:(function(u,f,o){var l=o(8576),g=o(6447),m=o(9516),p=l.WeakMap;u.exports=g(p)&&/native code/.test(m(p))}),9438:(function(u,f,o){var l=o(6235),g=function(m){var p,_;this.promise=new m(function(y,h){if(p!==void 0||_!==void 0)throw TypeError("Bad Promise constructor");p=y,_=h}),this.resolve=l(p),this.reject=l(_)};u.exports.f=function(m){return new g(m)}}),15:(function(u,f,o){var l=o(8576),g=o(6192),m=o(4845),p=o(4277).trim,_=o(1450),y=l.parseFloat,h=l.Symbol,d=h&&h.iterator,A=1/y(_+"-0")!==-1/0||d&&!g(function(){y(Object(d))});u.exports=A?function(w){var x=p(m(w)),C=y(x);return C===0&&x.charAt(0)=="-"?-0:C}:y}),2558:(function(u,f,o){var l=o(8576),g=o(6192),m=o(4845),p=o(4277).trim,_=o(1450),y=l.parseInt,h=l.Symbol,d=h&&h.iterator,A=/^[+-]?0[Xx]/,v=y(_+"08")!==8||y(_+"0x16")!==22||d&&!g(function(){y(Object(d))});u.exports=v?function(x,C){var k=p(m(x));return y(k,C>>>0||(A.test(k)?16:10))}:y}),2503:(function(u,f,o){var l=o(69),g=o(6192),m=o(7653),p=o(4750),_=o(6007),y=o(1795),h=o(2202),d=Object.assign,A=Object.defineProperty;u.exports=!d||g(function(){if(l&&d({b:1},d(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},w={},x=Symbol(),C="abcdefghijklmnopqrst";return v[x]=7,C.split("").forEach(function(k){w[k]=k}),d({},v)[x]!=7||m(d({},w)).join("")!=C})?function(w,x){for(var C=y(w),k=arguments.length,T=1,S=p.f,M=_.f;k>T;)for(var P=h(arguments[T++]),N=S?m(P).concat(S(P)):m(P),B=N.length,O=0,I;B>O;)I=N[O++],(!l||M.call(P,I))&&(C[I]=P[I]);return C}:d}),2853:(function(u,f,o){var l=o(1138),g=o(1187),m=o(2952),p=o(4535),_=o(7403),y=o(7449),h=o(9766),d=">",A="<",v="prototype",w="script",x=h("IE_PROTO"),C=function(){},k=function(N){return A+w+d+N+A+"/"+w+d},T=function(N){N.write(k("")),N.close();var B=N.parentWindow.Object;return N=null,B},S=function(){var N=y("iframe"),B="java"+w+":",O;return N.style.display="none",_.appendChild(N),N.src=String(B),O=N.contentWindow.document,O.open(),O.write(k("document.F=Object")),O.close(),O.F},M,P=function(){try{M=new ActiveXObject("htmlfile")}catch{}P=typeof document<"u"?document.domain&&M?T(M):S():T(M);for(var N=m.length;N--;)delete P[v][m[N]];return P()};p[x]=!0,u.exports=Object.create||function(B,O){var I;return B!==null?(C[v]=l(B),I=new C,C[v]=null,I[x]=B):I=P(),O===void 0?I:g(I,O)}}),1187:(function(u,f,o){var l=o(69),g=o(2760),m=o(1138),p=o(7653);u.exports=l?Object.defineProperties:function(y,h){m(y);for(var d=p(h),A=d.length,v=0,w;A>v;)g.f(y,w=d[v++],h[w]);return y}}),2760:(function(u,f,o){var l=o(69),g=o(188),m=o(1138),p=o(77),_=Object.defineProperty;f.f=l?_:function(h,d,A){if(m(h),d=p(d),m(A),g)try{return _(h,d,A)}catch{}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(h[d]=A.value),h}}),5141:(function(u,f,o){var l=o(69),g=o(6007),m=o(774),p=o(101),_=o(77),y=o(4500),h=o(188),d=Object.getOwnPropertyDescriptor;f.f=l?d:function(v,w){if(v=p(v),w=_(w),h)try{return d(v,w)}catch{}if(y(v,w))return m(!g.f.call(v,w),v[w])}}),4052:(function(u,f,o){var l=o(101),g=o(2092).f,m={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_=function(y){try{return g(y)}catch{return p.slice()}};u.exports.f=function(h){return p&&m.call(h)=="[object Window]"?_(h):g(l(h))}}),2092:(function(u,f,o){var l=o(7934),g=o(2952),m=g.concat("length","prototype");f.f=Object.getOwnPropertyNames||function(_){return l(_,m)}}),4750:(function(u,f){f.f=Object.getOwnPropertySymbols}),9341:(function(u,f,o){var l=o(4500),g=o(6447),m=o(1795),p=o(9766),_=o(4635),y=p("IE_PROTO"),h=Object.prototype;u.exports=_?Object.getPrototypeOf:function(d){var A=m(d);if(l(A,y))return A[y];var v=A.constructor;return g(v)&&A instanceof v?v.prototype:A instanceof Object?h:null}}),7934:(function(u,f,o){var l=o(4500),g=o(101),m=o(8180).indexOf,p=o(4535);u.exports=function(_,y){var h=g(_),d=0,A=[],v;for(v in h)!l(p,v)&&l(h,v)&&A.push(v);for(;y.length>d;)l(h,v=y[d++])&&(~m(A,v)||A.push(v));return A}}),7653:(function(u,f,o){var l=o(7934),g=o(2952);u.exports=Object.keys||function(p){return l(p,g)}}),6007:(function(u,f){var o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,g=l&&!o.call({1:2},1);f.f=g?function(p){var _=l(this,p);return!!_&&_.enumerable}:o}),4469:(function(u,f,o){var l=o(1138),g=o(7757);u.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var m=!1,p={},_;try{_=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,_.call(p,[]),m=p instanceof Array}catch{}return function(h,d){return l(h),g(d),m?_.call(h,d):h.__proto__=d,h}})():void 0)}),158:(function(u,f,o){var l=o(3471),g=o(4696);u.exports=l?{}.toString:function(){return"[object "+g(this)+"]"}}),380:(function(u,f,o){var l=o(6447),g=o(5744);u.exports=function(m,p){var _,y;if(p==="string"&&l(_=m.toString)&&!g(y=_.call(m))||l(_=m.valueOf)&&!g(y=_.call(m))||p!=="string"&&l(_=m.toString)&&!g(y=_.call(m)))return y;throw TypeError("Can't convert object to primitive value")}}),7545:(function(u){u.exports={}}),892:(function(u){u.exports=function(f){try{return{error:!1,value:f()}}catch(o){return{error:!0,value:o}}}}),9126:(function(u,f,o){var l=o(1138),g=o(5744),m=o(9438);u.exports=function(p,_){if(l(p),g(_)&&_.constructor===p)return _;var y=m.f(p),h=y.resolve;return h(_),y.promise}}),533:(function(u,f,o){var l=o(9482);u.exports=function(g,m,p){for(var _ in m)p&&p.unsafe&&g[_]?g[_]=m[_]:l(g,_,m[_],p);return g}}),9482:(function(u,f,o){var l=o(8711);u.exports=function(g,m,p,_){_&&_.enumerable?g[m]=p:l(g,m,p)}}),3209:(function(u){u.exports=function(f){if(f==null)throw TypeError("Can't call method on "+f);return f}}),7613:(function(u,f,o){var l=o(8576);u.exports=function(g,m){try{Object.defineProperty(l,g,{value:m,configurable:!0,writable:!0})}catch{l[g]=m}return m}}),3656:(function(u,f,o){var l=o(150),g=o(2760),m=o(8182),p=o(69),_=m("species");u.exports=function(y){var h=l(y),d=g.f;p&&h&&!h[_]&&d(h,_,{configurable:!0,get:function(){return this}})}}),1284:(function(u,f,o){var l=o(3471),g=o(2760).f,m=o(8711),p=o(4500),_=o(158),y=o(8182),h=y("toStringTag");u.exports=function(d,A,v,w){if(d){var x=v?d:d.prototype;p(x,h)||g(x,h,{configurable:!0,value:A}),w&&!l&&m(x,"toString",_)}}}),9766:(function(u,f,o){var l=o(8717),g=o(2759),m=l("keys");u.exports=function(p){return m[p]||(m[p]=g(p))}}),6434:(function(u,f,o){var l=o(8576),g=o(7613),m="__core-js_shared__",p=l[m]||g(m,{});u.exports=p}),8717:(function(u,f,o){var l=o(5546),g=o(6434);(u.exports=function(m,p){return g[m]||(g[m]=p!==void 0?p:{})})("versions",[]).push({version:"3.18.2",mode:l?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),4743:(function(u,f,o){var l=o(1138),g=o(1404),m=o(8182),p=m("species");u.exports=function(_,y){var h=l(_).constructor,d;return h===void 0||(d=l(h)[p])==null?y:g(d)}}),863:(function(u,f,o){var l=o(1941),g=o(4845),m=o(3209),p=function(_){return function(y,h){var d=g(m(y)),A=l(h),v=d.length,w,x;return A<0||A>=v?_?"":void 0:(w=d.charCodeAt(A),w<55296||w>56319||A+1===v||(x=d.charCodeAt(A+1))<56320||x>57343?_?d.charAt(A):w:_?d.slice(A,A+2):(w-55296<<10)+(x-56320)+65536)}};u.exports={codeAt:p(!1),charAt:p(!0)}}),7977:(function(u){var f=2147483647,o=36,l=1,g=26,m=38,p=700,_=72,y=128,h="-",d=/[^\0-\u007E]/,A=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",w=o-l,x=Math.floor,C=String.fromCharCode,k=function(P){for(var N=[],B=0,O=P.length;B<O;){var I=P.charCodeAt(B++);if(I>=55296&&I<=56319&&B<O){var F=P.charCodeAt(B++);(F&64512)==56320?N.push(((I&1023)<<10)+(F&1023)+65536):(N.push(I),B--)}else N.push(I)}return N},T=function(P){return P+22+75*(P<26)},S=function(P,N,B){var O=0;for(P=B?x(P/p):P>>1,P+=x(P/N);P>w*g>>1;O+=o)P=x(P/w);return x(O+(w+1)*P/(P+m))},M=function(P){var N=[];P=k(P);var B=P.length,O=y,I=0,F=_,L,R;for(L=0;L<P.length;L++)R=P[L],R<128&&N.push(C(R));var U=N.length,V=U;for(U&&N.push(h);V<B;){var W=f;for(L=0;L<P.length;L++)R=P[L],R>=O&&R<W&&(W=R);var Q=V+1;if(W-O>x((f-I)/Q))throw RangeError(v);for(I+=(W-O)*Q,O=W,L=0;L<P.length;L++){if(R=P[L],R<O&&++I>f)throw RangeError(v);if(R==O){for(var le=I,G=o;;G+=o){var fe=G<=F?l:G>=F+g?g:G-F;if(le<fe)break;var ie=le-fe,he=o-fe;N.push(C(T(fe+ie%he))),le=x(ie/he)}N.push(C(T(le))),F=S(I,Q,V==U),I=0,++V}}++I,++O}return N.join("")};u.exports=function(P){var N=[],B=P.toLowerCase().replace(A,".").split("."),O,I;for(O=0;O<B.length;O++)I=B[O],N.push(d.test(I)?"xn--"+M(I):I);return N.join(".")}}),6815:(function(u,f,o){var l=o(2282).PROPER,g=o(6192),m=o(1450),p="​᠎";u.exports=function(_){return g(function(){return!!m[_]()||p[_]()!==p||l&&m[_].name!==_})}}),4277:(function(u,f,o){var l=o(3209),g=o(4845),m=o(1450),p="["+m+"]",_=RegExp("^"+p+p+"*"),y=RegExp(p+p+"*$"),h=function(d){return function(A){var v=g(l(A));return d&1&&(v=v.replace(_,"")),d&2&&(v=v.replace(y,"")),v}};u.exports={start:h(1),end:h(2),trim:h(3)}}),7160:(function(u,f,o){var l=o(8576),g=o(6447),m=o(6192),p=o(8043),_=o(7403),y=o(7449),h=o(9536),d=o(224),A=l.setImmediate,v=l.clearImmediate,w=l.process,x=l.MessageChannel,C=l.Dispatch,k=0,T={},S="onreadystatechange",M,P,N,B;try{M=l.location}catch{}var O=function(R){if(T.hasOwnProperty(R)){var U=T[R];delete T[R],U()}},I=function(R){return function(){O(R)}},F=function(R){O(R.data)},L=function(R){l.postMessage(String(R),M.protocol+"//"+M.host)};(!A||!v)&&(A=function(U){for(var V=[],W=arguments.length,Q=1;W>Q;)V.push(arguments[Q++]);return T[++k]=function(){(g(U)?U:Function(U)).apply(void 0,V)},P(k),k},v=function(U){delete T[U]},d?P=function(R){w.nextTick(I(R))}:C&&C.now?P=function(R){C.now(I(R))}:x&&!h?(N=new x,B=N.port2,N.port1.onmessage=F,P=p(B.postMessage,B,1)):l.addEventListener&&g(l.postMessage)&&!l.importScripts&&M&&M.protocol!=="file:"&&!m(L)?(P=L,l.addEventListener("message",F,!1)):S in y("script")?P=function(R){_.appendChild(y("script"))[S]=function(){_.removeChild(this),O(R)}}:P=function(R){setTimeout(I(R),0)}),u.exports={set:A,clear:v}}),7739:(function(u,f,o){var l=o(1941),g=Math.max,m=Math.min;u.exports=function(p,_){var y=l(p);return y<0?g(y+_,0):m(y,_)}}),101:(function(u,f,o){var l=o(2202),g=o(3209);u.exports=function(m){return l(g(m))}}),1941:(function(u){var f=Math.ceil,o=Math.floor;u.exports=function(l){var g=+l;return g!==g||g===0?0:(g>0?o:f)(g)}}),8445:(function(u,f,o){var l=o(1941),g=Math.min;u.exports=function(m){return m>0?g(l(m),9007199254740991):0}}),1795:(function(u,f,o){var l=o(3209);u.exports=function(g){return Object(l(g))}}),7888:(function(u,f,o){var l=o(5744),g=o(3236),m=o(5037),p=o(380),_=o(8182),y=_("toPrimitive");u.exports=function(h,d){if(!l(h)||g(h))return h;var A=m(h,y),v;if(A){if(d===void 0&&(d="default"),v=A.call(h,d),!l(v)||g(v))return v;throw TypeError("Can't convert object to primitive value")}return d===void 0&&(d="number"),p(h,d)}}),77:(function(u,f,o){var l=o(7888),g=o(3236);u.exports=function(m){var p=l(m,"string");return g(p)?p:String(p)}}),3471:(function(u,f,o){var l=o(8182),g=l("toStringTag"),m={};m[g]="z",u.exports=String(m)==="[object z]"}),4845:(function(u,f,o){var l=o(4696);u.exports=function(g){if(l(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return String(g)}}),9288:(function(u){u.exports=function(f){try{return String(f)}catch{return"Object"}}}),2759:(function(u){var f=0,o=Math.random();u.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++f+o).toString(36)}}),615:(function(u,f,o){var l=o(3045);u.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),9207:(function(u,f,o){var l=o(8182);f.f=l}),8182:(function(u,f,o){var l=o(8576),g=o(8717),m=o(4500),p=o(2759),_=o(3045),y=o(615),h=g("wks"),d=l.Symbol,A=y?d:d&&d.withoutSetter||p;u.exports=function(v){return(!m(h,v)||!(_||typeof h[v]=="string"))&&(_&&m(d,v)?h[v]=d[v]:h[v]=A("Symbol."+v)),h[v]}}),1450:(function(u){u.exports=`	
\v\f\r                　\u2028\u2029\uFEFF`}),4242:(function(u,f,o){var l=o(3085),g=o(9341),m=o(4469),p=o(2853),_=o(8711),y=o(774),h=o(273),d=o(3442),A=o(4845),v=function(x,C){var k=this,T=arguments.length>2?arguments[2]:void 0;if(!(k instanceof v))return new v(x,C,T);m&&(k=m(new Error(void 0),g(k))),C!==void 0&&_(k,"message",A(C)),h(k,T);var S=[];return d(x,S.push,{that:S}),_(k,"errors",S),k};v.prototype=p(Error.prototype,{constructor:y(5,v),message:y(5,""),name:y(5,"AggregateError")}),l({global:!0},{AggregateError:v})}),9106:(function(u,f,o){var l=o(3085),g=o(6192),m=o(4770),p=o(5744),_=o(1795),y=o(4104),h=o(9361),d=o(1321),A=o(242),v=o(8182),w=o(4218),x=v("isConcatSpreadable"),C=9007199254740991,k="Maximum allowed index exceeded",T=w>=51||!g(function(){var N=[];return N[x]=!1,N.concat()[0]!==N}),S=A("concat"),M=function(N){if(!p(N))return!1;var B=N[x];return B!==void 0?!!B:m(N)},P=!T||!S;l({target:"Array",proto:!0,forced:P},{concat:function(B){var O=_(this),I=d(O,0),F=0,L,R,U,V,W;for(L=-1,U=arguments.length;L<U;L++)if(W=L===-1?O:arguments[L],M(W)){if(V=y(W),F+V>C)throw TypeError(k);for(R=0;R<V;R++,F++)R in W&&h(I,F,W[R])}else{if(F>=C)throw TypeError(k);h(I,F++,W)}return I.length=F,I}})}),1710:(function(u,f,o){var l=o(3085),g=o(2724),m=o(7423);l({target:"Array",proto:!0},{fill:g}),m("fill")}),3436:(function(u,f,o){var l=o(3085),g=o(454).filter,m=o(242),p=m("filter");l({target:"Array",proto:!0,forced:!p},{filter:function(y){return g(this,y,arguments.length>1?arguments[1]:void 0)}})}),9823:(function(u,f,o){var l=o(3085),g=o(7397);l({target:"Array",proto:!0,forced:[].forEach!=g},{forEach:g})}),9173:(function(u,f,o){var l=o(3085),g=o(841),m=o(9770),p=!m(function(_){Array.from(_)});l({target:"Array",stat:!0,forced:p},{from:g})}),2276:(function(u,f,o){var l=o(3085),g=o(8180).indexOf,m=o(424),p=[].indexOf,_=!!p&&1/[1].indexOf(1,-0)<0,y=m("indexOf");l({target:"Array",proto:!0,forced:_||!y},{indexOf:function(d){return _?p.apply(this,arguments)||0:g(this,d,arguments.length>1?arguments[1]:void 0)}})}),8118:(function(u,f,o){var l=o(3085),g=o(4770);l({target:"Array",stat:!0},{isArray:g})}),8939:(function(u,f,o){var l=o(101),g=o(7423),m=o(7771),p=o(3326),_=o(7218),y="Array Iterator",h=p.set,d=p.getterFor(y);u.exports=_(Array,"Array",function(A,v){h(this,{type:y,target:l(A),index:0,kind:v})},function(){var A=d(this),v=A.target,w=A.kind,x=A.index++;return!v||x>=v.length?(A.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:x,done:!1}:w=="values"?{value:v[x],done:!1}:{value:[x,v[x]],done:!1}},"values"),m.Arguments=m.Array,g("keys"),g("values"),g("entries")}),3838:(function(u,f,o){var l=o(3085),g=o(454).map,m=o(242),p=m("map");l({target:"Array",proto:!0,forced:!p},{map:function(y){return g(this,y,arguments.length>1?arguments[1]:void 0)}})}),5818:(function(u,f,o){var l=o(3085),g=o(4770),m=o(2091),p=o(5744),_=o(7739),y=o(4104),h=o(101),d=o(9361),A=o(8182),v=o(242),w=v("slice"),x=A("species"),C=[].slice,k=Math.max;l({target:"Array",proto:!0,forced:!w},{slice:function(S,M){var P=h(this),N=y(P),B=_(S,N),O=_(M===void 0?N:M,N),I,F,L;if(g(P)&&(I=P.constructor,m(I)&&(I===Array||g(I.prototype))?I=void 0:p(I)&&(I=I[x],I===null&&(I=void 0)),I===Array||I===void 0))return C.call(P,B,O);for(F=new(I===void 0?Array:I)(k(O-B,0)),L=0;B<O;B++,L++)B in P&&d(F,L,P[B]);return F.length=L,F}})}),2178:(function(u,f,o){var l=o(3085),g=o(7739),m=o(1941),p=o(4104),_=o(1795),y=o(1321),h=o(9361),d=o(242),A=d("splice"),v=Math.max,w=Math.min,x=9007199254740991,C="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!A},{splice:function(T,S){var M=_(this),P=p(M),N=g(T,P),B=arguments.length,O,I,F,L,R,U;if(B===0?O=I=0:B===1?(O=0,I=P-N):(O=B-2,I=w(v(m(S),0),P-N)),P+O-I>x)throw TypeError(C);for(F=y(M,I),L=0;L<I;L++)R=N+L,R in M&&h(F,L,M[R]);if(F.length=I,O<I){for(L=N;L<P-I;L++)R=L+I,U=L+O,R in M?M[U]=M[R]:delete M[U];for(L=P;L>P-I+O;L--)delete M[L-1]}else if(O>I)for(L=P-I;L>N;L--)R=L+I-1,U=L+O-1,R in M?M[U]=M[R]:delete M[U];for(L=0;L<O;L++)M[L+N]=arguments[L+2];return M.length=P-I+O,F}})}),665:(function(u,f,o){var l=o(3085),g=o(6782);l({target:"Function",proto:!0},{bind:g})}),8671:(function(u,f,o){var l=o(8576),g=o(1284);g(l.JSON,"JSON",!0)}),8556:(function(){}),2666:(function(u,f,o){var l=o(3085),g=o(2558);l({target:"Number",stat:!0,forced:Number.parseInt!=g},{parseInt:g})}),3113:(function(u,f,o){var l=o(3085),g=o(69),m=o(2853);l({target:"Object",stat:!0,sham:!g},{create:m})}),297:(function(u,f,o){var l=o(3085),g=o(69),m=o(2760);l({target:"Object",stat:!0,forced:!g,sham:!g},{defineProperty:m.f})}),9234:(function(u,f,o){var l=o(3085),g=o(6192),m=o(1795),p=o(9341),_=o(4635),y=g(function(){p(1)});l({target:"Object",stat:!0,forced:y,sham:!_},{getPrototypeOf:function(d){return p(m(d))}})}),2647:(function(u,f,o){var l=o(3085),g=o(1795),m=o(7653),p=o(6192),_=p(function(){m(1)});l({target:"Object",stat:!0,forced:_},{keys:function(h){return m(g(h))}})}),3222:(function(u,f,o){var l=o(3085),g=o(4469);l({target:"Object",stat:!0},{setPrototypeOf:g})}),6663:(function(){}),4859:(function(u,f,o){var l=o(3085),g=o(15);l({global:!0,forced:parseFloat!=g},{parseFloat:g})}),5706:(function(u,f,o){var l=o(3085),g=o(2558);l({global:!0,forced:parseInt!=g},{parseInt:g})}),7884:(function(u,f,o){var l=o(3085),g=o(6235),m=o(9438),p=o(892),_=o(3442);l({target:"Promise",stat:!0},{allSettled:function(h){var d=this,A=m.f(d),v=A.resolve,w=A.reject,x=p(function(){var C=g(d.resolve),k=[],T=0,S=1;_(h,function(M){var P=T++,N=!1;k.push(void 0),S++,C.call(d,M).then(function(B){N||(N=!0,k[P]={status:"fulfilled",value:B},--S||v(k))},function(B){N||(N=!0,k[P]={status:"rejected",reason:B},--S||v(k))})}),--S||v(k)});return x.error&&w(x.value),A.promise}})}),8885:(function(u,f,o){var l=o(3085),g=o(6235),m=o(150),p=o(9438),_=o(892),y=o(3442),h="No one promise resolved";l({target:"Promise",stat:!0},{any:function(A){var v=this,w=p.f(v),x=w.resolve,C=w.reject,k=_(function(){var T=g(v.resolve),S=[],M=0,P=1,N=!1;y(A,function(B){var O=M++,I=!1;S.push(void 0),P++,T.call(v,B).then(function(F){I||N||(N=!0,x(F))},function(F){I||N||(I=!0,S[O]=F,--P||C(new(m("AggregateError"))(S,h)))})}),--P||C(new(m("AggregateError"))(S,h))});return k.error&&C(k.value),w.promise}})}),1868:(function(u,f,o){var l=o(3085),g=o(5546),m=o(4471),p=o(6192),_=o(150),y=o(6447),h=o(4743),d=o(9126),A=o(9482),v=!!m&&p(function(){m.prototype.finally.call({then:function(){}},function(){})});if(l({target:"Promise",proto:!0,real:!0,forced:v},{finally:function(x){var C=h(this,_("Promise")),k=y(x);return this.then(k?function(T){return d(C,x()).then(function(){return T})}:x,k?function(T){return d(C,x()).then(function(){throw T})}:x)}}),!g&&y(m)){var w=_("Promise").prototype.finally;m.prototype.finally!==w&&A(m.prototype,"finally",w,{unsafe:!0})}}),9021:(function(u,f,o){var l=o(3085),g=o(5546),m=o(8576),p=o(150),_=o(4471),y=o(9482),h=o(533),d=o(4469),A=o(1284),v=o(3656),w=o(6235),x=o(6447),C=o(5744),k=o(6961),T=o(9516),S=o(3442),M=o(9770),P=o(4743),N=o(7160).set,B=o(2950),O=o(9126),I=o(3681),F=o(9438),L=o(892),R=o(3326),U=o(9245),V=o(8182),W=o(2957),Q=o(224),le=o(4218),G=V("species"),fe="Promise",ie=R.get,he=R.set,Y=R.getterFor(fe),K=_&&_.prototype,oe=_,pe=K,ve=m.TypeError,ge=m.document,ue=m.process,Te=F.f,Ee=Te,ye=!!(ge&&ge.createEvent&&m.dispatchEvent),Se=x(m.PromiseRejectionEvent),Fe="unhandledrejection",Ve="rejectionhandled",ke=0,Pe=1,Re=2,Ye=1,Ke=2,ot=!1,nt,mt,Ut,Ot,wt=U(fe,function(){var Lt=T(oe),Gt=Lt!==String(oe);if(!Gt&&le===66||g&&!pe.finally)return!0;if(le>=51&&/native code/.test(Lt))return!1;var $t=new oe(function(sr){sr(1)}),Sr=function(sr){sr(function(){},function(){})},br=$t.constructor={};return br[G]=Sr,ot=$t.then(function(){})instanceof Sr,ot?!Gt&&W&&!Se:!0}),Kt=wt||!M(function(Lt){oe.all(Lt).catch(function(){})}),_t=function(Lt){var Gt;return C(Lt)&&x(Gt=Lt.then)?Gt:!1},Jt=function(Lt,Gt){if(!Lt.notified){Lt.notified=!0;var $t=Lt.reactions;B(function(){for(var Sr=Lt.value,br=Lt.state==Pe,sr=0;$t.length>sr;){var Fn=$t[sr++],fn=br?Fn.ok:Fn.fail,Or=Fn.resolve,ar=Fn.reject,Wr=Fn.domain,Tt,Qt,hr;try{fn?(br||(Lt.rejection===Ke&&zr(Lt),Lt.rejection=Ye),fn===!0?Tt=Sr:(Wr&&Wr.enter(),Tt=fn(Sr),Wr&&(Wr.exit(),hr=!0)),Tt===Fn.promise?ar(ve("Promise-chain cycle")):(Qt=_t(Tt))?Qt.call(Tt,Or,ar):Or(Tt)):ar(Sr)}catch(ze){Wr&&!hr&&Wr.exit(),ar(ze)}}Lt.reactions=[],Lt.notified=!1,Gt&&!Lt.rejection&&vr(Lt)})}},yr=function(Lt,Gt,$t){var Sr,br;ye?(Sr=ge.createEvent("Event"),Sr.promise=Gt,Sr.reason=$t,Sr.initEvent(Lt,!1,!0),m.dispatchEvent(Sr)):Sr={promise:Gt,reason:$t},!Se&&(br=m["on"+Lt])?br(Sr):Lt===Fe&&I("Unhandled promise rejection",$t)},vr=function(Lt){N.call(m,function(){var Gt=Lt.facade,$t=Lt.value,Sr=Br(Lt),br;if(Sr&&(br=L(function(){Q?ue.emit("unhandledRejection",$t,Gt):yr(Fe,Gt,$t)}),Lt.rejection=Q||Br(Lt)?Ke:Ye,br.error))throw br.value})},Br=function(Lt){return Lt.rejection!==Ye&&!Lt.parent},zr=function(Lt){N.call(m,function(){var Gt=Lt.facade;Q?ue.emit("rejectionHandled",Gt):yr(Ve,Gt,Lt.value)})},mn=function(Lt,Gt,$t){return function(Sr){Lt(Gt,Sr,$t)}},jr=function(Lt,Gt,$t){Lt.done||(Lt.done=!0,$t&&(Lt=$t),Lt.value=Gt,Lt.state=Re,Jt(Lt,!0))},Tn=function(Lt,Gt,$t){if(!Lt.done){Lt.done=!0,$t&&(Lt=$t);try{if(Lt.facade===Gt)throw ve("Promise can't be resolved itself");var Sr=_t(Gt);Sr?B(function(){var br={done:!1};try{Sr.call(Gt,mn(Tn,br,Lt),mn(jr,br,Lt))}catch(sr){jr(br,sr,Lt)}}):(Lt.value=Gt,Lt.state=Pe,Jt(Lt,!1))}catch(br){jr({done:!1},br,Lt)}}};if(wt&&(oe=function(Gt){k(this,oe,fe),w(Gt),nt.call(this);var $t=ie(this);try{Gt(mn(Tn,$t),mn(jr,$t))}catch(Sr){jr($t,Sr)}},pe=oe.prototype,nt=function(Gt){he(this,{type:fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:ke,value:void 0})},nt.prototype=h(pe,{then:function(Gt,$t){var Sr=Y(this),br=Te(P(this,oe));return br.ok=x(Gt)?Gt:!0,br.fail=x($t)&&$t,br.domain=Q?ue.domain:void 0,Sr.parent=!0,Sr.reactions.push(br),Sr.state!=ke&&Jt(Sr,!1),br.promise},catch:function(Lt){return this.then(void 0,Lt)}}),mt=function(){var Lt=new nt,Gt=ie(Lt);this.promise=Lt,this.resolve=mn(Tn,Gt),this.reject=mn(jr,Gt)},F.f=Te=function(Lt){return Lt===oe||Lt===Ut?new mt(Lt):Ee(Lt)},!g&&x(_)&&K!==Object.prototype)){Ot=K.then,ot||(y(K,"then",function(Gt,$t){var Sr=this;return new oe(function(br,sr){Ot.call(Sr,br,sr)}).then(Gt,$t)},{unsafe:!0}),y(K,"catch",pe.catch,{unsafe:!0}));try{delete K.constructor}catch{}d&&d(K,pe)}l({global:!0,wrap:!0,forced:wt},{Promise:oe}),A(oe,fe,!1,!0),v(fe),Ut=p(fe),l({target:fe,stat:!0,forced:wt},{reject:function(Gt){var $t=Te(this);return $t.reject.call(void 0,Gt),$t.promise}}),l({target:fe,stat:!0,forced:g||wt},{resolve:function(Gt){return O(g&&this===Ut?oe:this,Gt)}}),l({target:fe,stat:!0,forced:Kt},{all:function(Gt){var $t=this,Sr=Te($t),br=Sr.resolve,sr=Sr.reject,Fn=L(function(){var fn=w($t.resolve),Or=[],ar=0,Wr=1;S(Gt,function(Tt){var Qt=ar++,hr=!1;Or.push(void 0),Wr++,fn.call($t,Tt).then(function(ze){hr||(hr=!0,Or[Qt]=ze,--Wr||br(Or))},sr)}),--Wr||br(Or)});return Fn.error&&sr(Fn.value),Sr.promise},race:function(Gt){var $t=this,Sr=Te($t),br=Sr.reject,sr=L(function(){var Fn=w($t.resolve);S(Gt,function(fn){Fn.call($t,fn).then(Sr.resolve,br)})});return sr.error&&br(sr.value),Sr.promise}})}),5397:(function(u,f,o){var l=o(3085),g=o(150),m=o(1404),p=o(1138),_=o(5744),y=o(2853),h=o(6782),d=o(6192),A=g("Reflect","construct"),v=d(function(){function C(){}return!(A(function(){},[],C)instanceof C)}),w=!d(function(){A(function(){})}),x=v||w;l({target:"Reflect",stat:!0,forced:x,sham:x},{construct:function(k,T){m(k),p(T);var S=arguments.length<3?k:m(arguments[2]);if(w&&!v)return A(k,T,S);if(k==S){switch(T.length){case 0:return new k;case 1:return new k(T[0]);case 2:return new k(T[0],T[1]);case 3:return new k(T[0],T[1],T[2]);case 4:return new k(T[0],T[1],T[2],T[3])}var M=[null];return M.push.apply(M,T),new(h.apply(k,M))}var P=S.prototype,N=y(_(P)?P:Object.prototype),B=Function.apply.call(k,N,T);return _(B)?B:N}})}),1367:(function(){}),5454:(function(u,f,o){var l=o(863).charAt,g=o(4845),m=o(3326),p=o(7218),_="String Iterator",y=m.set,h=m.getterFor(_);p(String,"String",function(d){y(this,{type:_,string:g(d),index:0})},function(){var A=h(this),v=A.string,w=A.index,x;return w>=v.length?{value:void 0,done:!0}:(x=l(v,w),A.index+=x.length,{value:x,done:!1})})}),957:(function(u,f,o){var l=o(3085),g=o(4277).trim,m=o(6815);l({target:"String",proto:!0,forced:m("trim")},{trim:function(){return g(this)}})}),9781:(function(u,f,o){var l=o(1488);l("asyncIterator")}),492:(function(){}),6681:(function(u,f,o){var l=o(1488);l("hasInstance")}),9594:(function(u,f,o){var l=o(1488);l("isConcatSpreadable")}),3665:(function(u,f,o){var l=o(1488);l("iterator")}),6187:(function(u,f,o){var l=o(3085),g=o(8576),m=o(150),p=o(5546),_=o(69),y=o(3045),h=o(6192),d=o(4500),A=o(4770),v=o(6447),w=o(5744),x=o(3236),C=o(1138),k=o(1795),T=o(101),S=o(77),M=o(4845),P=o(774),N=o(2853),B=o(7653),O=o(2092),I=o(4052),F=o(4750),L=o(5141),R=o(2760),U=o(6007),V=o(9482),W=o(8717),Q=o(9766),le=o(4535),G=o(2759),fe=o(8182),ie=o(9207),he=o(1488),Y=o(1284),K=o(3326),oe=o(454).forEach,pe=Q("hidden"),ve="Symbol",ge="prototype",ue=fe("toPrimitive"),Te=K.set,Ee=K.getterFor(ve),ye=Object[ge],Se=g.Symbol,Fe=m("JSON","stringify"),Ve=L.f,ke=R.f,Pe=I.f,Re=U.f,Ye=W("symbols"),Ke=W("op-symbols"),ot=W("string-to-symbol-registry"),nt=W("symbol-to-string-registry"),mt=W("wks"),Ut=g.QObject,Ot=!Ut||!Ut[ge]||!Ut[ge].findChild,wt=_&&h(function(){return N(ke({},"a",{get:function(){return ke(this,"a",{value:7}).a}})).a!=7})?function(Lt,Gt,$t){var Sr=Ve(ye,Gt);Sr&&delete ye[Gt],ke(Lt,Gt,$t),Sr&&Lt!==ye&&ke(ye,Gt,Sr)}:ke,Kt=function(Lt,Gt){var $t=Ye[Lt]=N(Se[ge]);return Te($t,{type:ve,tag:Lt,description:Gt}),_||($t.description=Gt),$t},_t=function(Gt,$t,Sr){Gt===ye&&_t(Ke,$t,Sr),C(Gt);var br=S($t);return C(Sr),d(Ye,br)?(Sr.enumerable?(d(Gt,pe)&&Gt[pe][br]&&(Gt[pe][br]=!1),Sr=N(Sr,{enumerable:P(0,!1)})):(d(Gt,pe)||ke(Gt,pe,P(1,{})),Gt[pe][br]=!0),wt(Gt,br,Sr)):ke(Gt,br,Sr)},Jt=function(Gt,$t){C(Gt);var Sr=T($t),br=B(Sr).concat(mn(Sr));return oe(br,function(sr){(!_||vr.call(Sr,sr))&&_t(Gt,sr,Sr[sr])}),Gt},yr=function(Gt,$t){return $t===void 0?N(Gt):Jt(N(Gt),$t)},vr=function(Gt){var $t=S(Gt),Sr=Re.call(this,$t);return this===ye&&d(Ye,$t)&&!d(Ke,$t)?!1:Sr||!d(this,$t)||!d(Ye,$t)||d(this,pe)&&this[pe][$t]?Sr:!0},Br=function(Gt,$t){var Sr=T(Gt),br=S($t);if(!(Sr===ye&&d(Ye,br)&&!d(Ke,br))){var sr=Ve(Sr,br);return sr&&d(Ye,br)&&!(d(Sr,pe)&&Sr[pe][br])&&(sr.enumerable=!0),sr}},zr=function(Gt){var $t=Pe(T(Gt)),Sr=[];return oe($t,function(br){!d(Ye,br)&&!d(le,br)&&Sr.push(br)}),Sr},mn=function(Gt){var $t=Gt===ye,Sr=Pe($t?Ke:T(Gt)),br=[];return oe(Sr,function(sr){d(Ye,sr)&&(!$t||d(ye,sr))&&br.push(Ye[sr])}),br};if(y||(Se=function(){if(this instanceof Se)throw TypeError("Symbol is not a constructor");var Gt=!arguments.length||arguments[0]===void 0?void 0:M(arguments[0]),$t=G(Gt),Sr=function(br){this===ye&&Sr.call(Ke,br),d(this,pe)&&d(this[pe],$t)&&(this[pe][$t]=!1),wt(this,$t,P(1,br))};return _&&Ot&&wt(ye,$t,{configurable:!0,set:Sr}),Kt($t,Gt)},V(Se[ge],"toString",function(){return Ee(this).tag}),V(Se,"withoutSetter",function(Lt){return Kt(G(Lt),Lt)}),U.f=vr,R.f=_t,L.f=Br,O.f=I.f=zr,F.f=mn,ie.f=function(Lt){return Kt(fe(Lt),Lt)},_&&(ke(Se[ge],"description",{configurable:!0,get:function(){return Ee(this).description}}),p||V(ye,"propertyIsEnumerable",vr,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!y,sham:!y},{Symbol:Se}),oe(B(mt),function(Lt){he(Lt)}),l({target:ve,stat:!0,forced:!y},{for:function(Lt){var Gt=M(Lt);if(d(ot,Gt))return ot[Gt];var $t=Se(Gt);return ot[Gt]=$t,nt[$t]=Gt,$t},keyFor:function(Gt){if(!x(Gt))throw TypeError(Gt+" is not a symbol");if(d(nt,Gt))return nt[Gt]},useSetter:function(){Ot=!0},useSimple:function(){Ot=!1}}),l({target:"Object",stat:!0,forced:!y,sham:!_},{create:yr,defineProperty:_t,defineProperties:Jt,getOwnPropertyDescriptor:Br}),l({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:zr,getOwnPropertySymbols:mn}),l({target:"Object",stat:!0,forced:h(function(){F.f(1)})},{getOwnPropertySymbols:function(Gt){return F.f(k(Gt))}}),Fe){var jr=!y||h(function(){var Lt=Se();return Fe([Lt])!="[null]"||Fe({a:Lt})!="{}"||Fe(Object(Lt))!="{}"});l({target:"JSON",stat:!0,forced:jr},{stringify:function(Gt,$t,Sr){for(var br=[Gt],sr=1,Fn;arguments.length>sr;)br.push(arguments[sr++]);if(Fn=$t,!(!w($t)&&Gt===void 0||x(Gt)))return A($t)||($t=function(fn,Or){if(v(Fn)&&(Or=Fn.call(this,fn,Or)),!x(Or))return Or}),br[1]=$t,Fe.apply(null,br)}})}if(!Se[ge][ue]){var Tn=Se[ge].valueOf;V(Se[ge],ue,function(){return Tn.apply(this,arguments)})}Y(Se,ve),le[pe]=!0}),1250:(function(u,f,o){var l=o(1488);l("matchAll")}),9017:(function(u,f,o){var l=o(1488);l("match")}),9786:(function(u,f,o){var l=o(1488);l("replace")}),503:(function(u,f,o){var l=o(1488);l("search")}),6565:(function(u,f,o){var l=o(1488);l("species")}),9322:(function(u,f,o){var l=o(1488);l("split")}),3610:(function(u,f,o){var l=o(1488);l("toPrimitive")}),6886:(function(u,f,o){var l=o(1488);l("toStringTag")}),3514:(function(u,f,o){var l=o(1488);l("unscopables")}),177:(function(u,f,o){var l=o(1488);l("asyncDispose")}),9031:(function(u,f,o){var l=o(1488);l("dispose")}),6658:(function(u,f,o){var l=o(1488);l("matcher")}),1875:(function(u,f,o){var l=o(1488);l("metadata")}),8658:(function(u,f,o){var l=o(1488);l("observable")}),4592:(function(u,f,o){var l=o(1488);l("patternMatch")}),6680:(function(u,f,o){var l=o(1488);l("replaceAll")}),162:(function(u,f,o){o(8939);var l=o(7365),g=o(8576),m=o(4696),p=o(8711),_=o(7771),y=o(8182),h=y("toStringTag");for(var d in l){var A=g[d],v=A&&A.prototype;v&&m(v)!==h&&p(v,h,d),_[d]=_.Array}}),2906:(function(u,f,o){var l=o(3085),g=o(8576),m=o(6447),p=o(8989),_=[].slice,y=/MSIE .\./.test(p),h=function(d){return function(A,v){var w=arguments.length>2,x=w?_.call(arguments,2):void 0;return d(w?function(){(m(A)?A:Function(A)).apply(this,x)}:A,v)}};l({global:!0,bind:!0,forced:y},{setTimeout:h(g.setTimeout),setInterval:h(g.setInterval)})}),9336:(function(u,f,o){o(8939);var l=o(3085),g=o(150),m=o(4551),p=o(9482),_=o(533),y=o(1284),h=o(5148),d=o(3326),A=o(6961),v=o(6447),w=o(4500),x=o(8043),C=o(4696),k=o(1138),T=o(5744),S=o(4845),M=o(2853),P=o(774),N=o(1669),B=o(8703),O=o(8182),I=g("fetch"),F=g("Request"),L=F&&F.prototype,R=g("Headers"),U=O("iterator"),V="URLSearchParams",W=V+"Iterator",Q=d.set,le=d.getterFor(V),G=d.getterFor(W),fe=/\+/g,ie=Array(4),he=function(Pe){return ie[Pe-1]||(ie[Pe-1]=RegExp("((?:%[\\da-f]{2}){"+Pe+"})","gi"))},Y=function(Pe){try{return decodeURIComponent(Pe)}catch{return Pe}},K=function(Pe){var Re=Pe.replace(fe," "),Ye=4;try{return decodeURIComponent(Re)}catch{for(;Ye;)Re=Re.replace(he(Ye--),Y);return Re}},oe=/[!'()~]|%20/g,pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(Pe){return pe[Pe]},ge=function(Pe){return encodeURIComponent(Pe).replace(oe,ve)},ue=function(Pe,Re){if(Re)for(var Ye=Re.split("&"),Ke=0,ot,nt;Ke<Ye.length;)ot=Ye[Ke++],ot.length&&(nt=ot.split("="),Pe.push({key:K(nt.shift()),value:K(nt.join("="))}))},Te=function(Pe){this.entries.length=0,ue(this.entries,Pe)},Ee=function(Pe,Re){if(Pe<Re)throw TypeError("Not enough arguments")},ye=h(function(Re,Ye){Q(this,{type:W,iterator:N(le(Re).entries),kind:Ye})},"Iterator",function(){var Re=G(this),Ye=Re.kind,Ke=Re.iterator.next(),ot=Ke.value;return Ke.done||(Ke.value=Ye==="keys"?ot.key:Ye==="values"?ot.value:[ot.key,ot.value]),Ke}),Se=function(){A(this,Se,V);var Re=arguments.length>0?arguments[0]:void 0,Ye=this,Ke=[],ot,nt,mt,Ut,Ot,wt,Kt,_t,Jt;if(Q(Ye,{type:V,entries:Ke,updateURL:function(){},updateSearchParams:Te}),Re!==void 0)if(T(Re))if(ot=B(Re),ot)for(nt=N(Re,ot),mt=nt.next;!(Ut=mt.call(nt)).done;){if(Ot=N(k(Ut.value)),wt=Ot.next,(Kt=wt.call(Ot)).done||(_t=wt.call(Ot)).done||!wt.call(Ot).done)throw TypeError("Expected sequence with length 2");Ke.push({key:S(Kt.value),value:S(_t.value)})}else for(Jt in Re)w(Re,Jt)&&Ke.push({key:Jt,value:S(Re[Jt])});else ue(Ke,typeof Re=="string"?Re.charAt(0)==="?"?Re.slice(1):Re:S(Re))},Fe=Se.prototype;if(_(Fe,{append:function(Re,Ye){Ee(arguments.length,2);var Ke=le(this);Ke.entries.push({key:S(Re),value:S(Ye)}),Ke.updateURL()},delete:function(Pe){Ee(arguments.length,1);for(var Re=le(this),Ye=Re.entries,Ke=S(Pe),ot=0;ot<Ye.length;)Ye[ot].key===Ke?Ye.splice(ot,1):ot++;Re.updateURL()},get:function(Re){Ee(arguments.length,1);for(var Ye=le(this).entries,Ke=S(Re),ot=0;ot<Ye.length;ot++)if(Ye[ot].key===Ke)return Ye[ot].value;return null},getAll:function(Re){Ee(arguments.length,1);for(var Ye=le(this).entries,Ke=S(Re),ot=[],nt=0;nt<Ye.length;nt++)Ye[nt].key===Ke&&ot.push(Ye[nt].value);return ot},has:function(Re){Ee(arguments.length,1);for(var Ye=le(this).entries,Ke=S(Re),ot=0;ot<Ye.length;)if(Ye[ot++].key===Ke)return!0;return!1},set:function(Re,Ye){Ee(arguments.length,1);for(var Ke=le(this),ot=Ke.entries,nt=!1,mt=S(Re),Ut=S(Ye),Ot=0,wt;Ot<ot.length;Ot++)wt=ot[Ot],wt.key===mt&&(nt?ot.splice(Ot--,1):(nt=!0,wt.value=Ut));nt||ot.push({key:mt,value:Ut}),Ke.updateURL()},sort:function(){var Re=le(this),Ye=Re.entries,Ke=Ye.slice(),ot,nt,mt;for(Ye.length=0,mt=0;mt<Ke.length;mt++){for(ot=Ke[mt],nt=0;nt<mt;nt++)if(Ye[nt].key>ot.key){Ye.splice(nt,0,ot);break}nt===mt&&Ye.push(ot)}Re.updateURL()},forEach:function(Re){for(var Ye=le(this).entries,Ke=x(Re,arguments.length>1?arguments[1]:void 0,3),ot=0,nt;ot<Ye.length;)nt=Ye[ot++],Ke(nt.value,nt.key,this)},keys:function(){return new ye(this,"keys")},values:function(){return new ye(this,"values")},entries:function(){return new ye(this,"entries")}},{enumerable:!0}),p(Fe,U,Fe.entries,{name:"entries"}),p(Fe,"toString",function(){for(var Re=le(this).entries,Ye=[],Ke=0,ot;Ke<Re.length;)ot=Re[Ke++],Ye.push(ge(ot.key)+"="+ge(ot.value));return Ye.join("&")},{enumerable:!0}),y(Se,V),l({global:!0,forced:!m},{URLSearchParams:Se}),!m&&v(R)){var Ve=function(Pe){if(T(Pe)){var Re=Pe.body,Ye;if(C(Re)===V)return Ye=Pe.headers?new R(Pe.headers):new R,Ye.has("content-type")||Ye.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),M(Pe,{body:P(0,String(Re)),headers:P(0,Ye)})}return Pe};if(v(I)&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(Re){return I(Re,arguments.length>1?Ve(arguments[1]):{})}}),v(F)){var ke=function(Re){return A(this,ke,"Request"),new F(Re,arguments.length>1?Ve(arguments[1]):{})};L.constructor=ke,ke.prototype=L,l({global:!0,forced:!0},{Request:ke})}}u.exports={URLSearchParams:Se,getState:le}}),4948:(function(u,f,o){o(5454);var l=o(3085),g=o(69),m=o(4551),p=o(8576),_=o(1187),y=o(9482),h=o(6961),d=o(4500),A=o(2503),v=o(841),w=o(863).codeAt,x=o(7977),C=o(4845),k=o(1284),T=o(9336),S=o(3326),M=p.URL,P=T.URLSearchParams,N=T.getState,B=S.set,O=S.getterFor("URL"),I=Math.floor,F=Math.pow,L="Invalid authority",R="Invalid scheme",U="Invalid host",V="Invalid port",W=/[A-Za-z]/,Q=/[\d+-.A-Za-z]/,le=/\d/,G=/^0x/i,fe=/^[0-7]+$/,ie=/^\d+$/,he=/^[\dA-Fa-f]+$/,Y=/[\0\t\n\r #%/:<>?@[\\\]^|]/,K=/[\0\t\n\r #/:<>?@[\\\]^|]/,oe=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,pe=/[\t\n\r]/g,ve,ge=function(We,gt){var yt,Rt,Mt;if(gt.charAt(0)=="["){if(gt.charAt(gt.length-1)!="]"||(yt=Te(gt.slice(1,-1)),!yt))return U;We.host=yt}else if(Ye(We)){if(gt=x(gt),Y.test(gt)||(yt=ue(gt),yt===null))return U;We.host=yt}else{if(K.test(gt))return U;for(yt="",Rt=v(gt),Mt=0;Mt<Rt.length;Mt++)yt+=Pe(Rt[Mt],Se);We.host=yt}},ue=function(We){var gt=We.split("."),yt,Rt,Mt,It,xr,rn,Zr;if(gt.length&&gt[gt.length-1]==""&&gt.pop(),yt=gt.length,yt>4)return We;for(Rt=[],Mt=0;Mt<yt;Mt++){if(It=gt[Mt],It=="")return We;if(xr=10,It.length>1&&It.charAt(0)=="0"&&(xr=G.test(It)?16:8,It=It.slice(xr==8?1:2)),It==="")rn=0;else{if(!(xr==10?ie:xr==8?fe:he).test(It))return We;rn=parseInt(It,xr)}Rt.push(rn)}for(Mt=0;Mt<yt;Mt++)if(rn=Rt[Mt],Mt==yt-1){if(rn>=F(256,5-yt))return null}else if(rn>255)return null;for(Zr=Rt.pop(),Mt=0;Mt<Rt.length;Mt++)Zr+=Rt[Mt]*F(256,3-Mt);return Zr},Te=function(We){var gt=[0,0,0,0,0,0,0,0],yt=0,Rt=null,Mt=0,It,xr,rn,Zr,Rr,$r,lr,Mn=function(){return We.charAt(Mt)};if(Mn()==":"){if(We.charAt(1)!=":")return;Mt+=2,yt++,Rt=yt}for(;Mn();){if(yt==8)return;if(Mn()==":"){if(Rt!==null)return;Mt++,yt++,Rt=yt;continue}for(It=xr=0;xr<4&&he.test(Mn());)It=It*16+parseInt(Mn(),16),Mt++,xr++;if(Mn()=="."){if(xr==0||(Mt-=xr,yt>6))return;for(rn=0;Mn();){if(Zr=null,rn>0)if(Mn()=="."&&rn<4)Mt++;else return;if(!le.test(Mn()))return;for(;le.test(Mn());){if(Rr=parseInt(Mn(),10),Zr===null)Zr=Rr;else{if(Zr==0)return;Zr=Zr*10+Rr}if(Zr>255)return;Mt++}gt[yt]=gt[yt]*256+Zr,rn++,(rn==2||rn==4)&&yt++}if(rn!=4)return;break}else if(Mn()==":"){if(Mt++,!Mn())return}else if(Mn())return;gt[yt++]=It}if(Rt!==null)for($r=yt-Rt,yt=7;yt!=0&&$r>0;)lr=gt[yt],gt[yt--]=gt[Rt+$r-1],gt[Rt+--$r]=lr;else if(yt!=8)return;return gt},Ee=function(We){for(var gt=null,yt=1,Rt=null,Mt=0,It=0;It<8;It++)We[It]!==0?(Mt>yt&&(gt=Rt,yt=Mt),Rt=null,Mt=0):(Rt===null&&(Rt=It),++Mt);return Mt>yt&&(gt=Rt,yt=Mt),gt},ye=function(We){var gt,yt,Rt,Mt;if(typeof We=="number"){for(gt=[],yt=0;yt<4;yt++)gt.unshift(We%256),We=I(We/256);return gt.join(".")}else if(typeof We=="object"){for(gt="",Rt=Ee(We),yt=0;yt<8;yt++)Mt&&We[yt]===0||(Mt&&(Mt=!1),Rt===yt?(gt+=yt?":":"::",Mt=!0):(gt+=We[yt].toString(16),yt<7&&(gt+=":")));return"["+gt+"]"}return We},Se={},Fe=A({},Se,{" ":1,'"':1,"<":1,">":1,"`":1}),Ve=A({},Fe,{"#":1,"?":1,"{":1,"}":1}),ke=A({},Ve,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Pe=function(We,gt){var yt=w(We,0);return yt>32&&yt<127&&!d(gt,We)?We:encodeURIComponent(We)},Re={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ye=function(We){return d(Re,We.scheme)},Ke=function(We){return We.username!=""||We.password!=""},ot=function(We){return!We.host||We.cannotBeABaseURL||We.scheme=="file"},nt=function(We,gt){var yt;return We.length==2&&W.test(We.charAt(0))&&((yt=We.charAt(1))==":"||!gt&&yt=="|")},mt=function(We){var gt;return We.length>1&&nt(We.slice(0,2))&&(We.length==2||(gt=We.charAt(2))==="/"||gt==="\\"||gt==="?"||gt==="#")},Ut=function(We){var gt=We.path,yt=gt.length;yt&&(We.scheme!="file"||yt!=1||!nt(gt[0],!0))&&gt.pop()},Ot=function(We){return We==="."||We.toLowerCase()==="%2e"},wt=function(We){return We=We.toLowerCase(),We===".."||We==="%2e."||We===".%2e"||We==="%2e%2e"},Kt={},_t={},Jt={},yr={},vr={},Br={},zr={},mn={},jr={},Tn={},Lt={},Gt={},$t={},Sr={},br={},sr={},Fn={},fn={},Or={},ar={},Wr={},Tt=function(We,gt,yt,Rt){var Mt=yt||Kt,It=0,xr="",rn=!1,Zr=!1,Rr=!1,$r,lr,Mn,ia;for(yt||(We.scheme="",We.username="",We.password="",We.host=null,We.port=null,We.path=[],We.query=null,We.fragment=null,We.cannotBeABaseURL=!1,gt=gt.replace(oe,"")),gt=gt.replace(pe,""),$r=v(gt);It<=$r.length;){switch(lr=$r[It],Mt){case Kt:if(lr&&W.test(lr))xr+=lr.toLowerCase(),Mt=_t;else{if(yt)return R;Mt=Jt;continue}break;case _t:if(lr&&(Q.test(lr)||lr=="+"||lr=="-"||lr=="."))xr+=lr.toLowerCase();else if(lr==":"){if(yt&&(Ye(We)!=d(Re,xr)||xr=="file"&&(Ke(We)||We.port!==null)||We.scheme=="file"&&!We.host))return;if(We.scheme=xr,yt){Ye(We)&&Re[We.scheme]==We.port&&(We.port=null);return}xr="",We.scheme=="file"?Mt=Sr:Ye(We)&&Rt&&Rt.scheme==We.scheme?Mt=yr:Ye(We)?Mt=mn:$r[It+1]=="/"?(Mt=vr,It++):(We.cannotBeABaseURL=!0,We.path.push(""),Mt=Or)}else{if(yt)return R;xr="",Mt=Jt,It=0;continue}break;case Jt:if(!Rt||Rt.cannotBeABaseURL&&lr!="#")return R;if(Rt.cannotBeABaseURL&&lr=="#"){We.scheme=Rt.scheme,We.path=Rt.path.slice(),We.query=Rt.query,We.fragment="",We.cannotBeABaseURL=!0,Mt=Wr;break}Mt=Rt.scheme=="file"?Sr:Br;continue;case yr:if(lr=="/"&&$r[It+1]=="/")Mt=jr,It++;else{Mt=Br;continue}break;case vr:if(lr=="/"){Mt=Tn;break}else{Mt=fn;continue}case Br:if(We.scheme=Rt.scheme,lr==ve)We.username=Rt.username,We.password=Rt.password,We.host=Rt.host,We.port=Rt.port,We.path=Rt.path.slice(),We.query=Rt.query;else if(lr=="/"||lr=="\\"&&Ye(We))Mt=zr;else if(lr=="?")We.username=Rt.username,We.password=Rt.password,We.host=Rt.host,We.port=Rt.port,We.path=Rt.path.slice(),We.query="",Mt=ar;else if(lr=="#")We.username=Rt.username,We.password=Rt.password,We.host=Rt.host,We.port=Rt.port,We.path=Rt.path.slice(),We.query=Rt.query,We.fragment="",Mt=Wr;else{We.username=Rt.username,We.password=Rt.password,We.host=Rt.host,We.port=Rt.port,We.path=Rt.path.slice(),We.path.pop(),Mt=fn;continue}break;case zr:if(Ye(We)&&(lr=="/"||lr=="\\"))Mt=jr;else if(lr=="/")Mt=Tn;else{We.username=Rt.username,We.password=Rt.password,We.host=Rt.host,We.port=Rt.port,Mt=fn;continue}break;case mn:if(Mt=jr,lr!="/"||xr.charAt(It+1)!="/")continue;It++;break;case jr:if(lr!="/"&&lr!="\\"){Mt=Tn;continue}break;case Tn:if(lr=="@"){rn&&(xr="%40"+xr),rn=!0,Mn=v(xr);for(var vn=0;vn<Mn.length;vn++){var ri=Mn[vn];if(ri==":"&&!Rr){Rr=!0;continue}var ms=Pe(ri,ke);Rr?We.password+=ms:We.username+=ms}xr=""}else if(lr==ve||lr=="/"||lr=="?"||lr=="#"||lr=="\\"&&Ye(We)){if(rn&&xr=="")return L;It-=v(xr).length+1,xr="",Mt=Lt}else xr+=lr;break;case Lt:case Gt:if(yt&&We.scheme=="file"){Mt=sr;continue}else if(lr==":"&&!Zr){if(xr=="")return U;if(ia=ge(We,xr),ia)return ia;if(xr="",Mt=$t,yt==Gt)return}else if(lr==ve||lr=="/"||lr=="?"||lr=="#"||lr=="\\"&&Ye(We)){if(Ye(We)&&xr=="")return U;if(yt&&xr==""&&(Ke(We)||We.port!==null))return;if(ia=ge(We,xr),ia)return ia;if(xr="",Mt=Fn,yt)return;continue}else lr=="["?Zr=!0:lr=="]"&&(Zr=!1),xr+=lr;break;case $t:if(le.test(lr))xr+=lr;else if(lr==ve||lr=="/"||lr=="?"||lr=="#"||lr=="\\"&&Ye(We)||yt){if(xr!=""){var gi=parseInt(xr,10);if(gi>65535)return V;We.port=Ye(We)&&gi===Re[We.scheme]?null:gi,xr=""}if(yt)return;Mt=Fn;continue}else return V;break;case Sr:if(We.scheme="file",lr=="/"||lr=="\\")Mt=br;else if(Rt&&Rt.scheme=="file")if(lr==ve)We.host=Rt.host,We.path=Rt.path.slice(),We.query=Rt.query;else if(lr=="?")We.host=Rt.host,We.path=Rt.path.slice(),We.query="",Mt=ar;else if(lr=="#")We.host=Rt.host,We.path=Rt.path.slice(),We.query=Rt.query,We.fragment="",Mt=Wr;else{mt($r.slice(It).join(""))||(We.host=Rt.host,We.path=Rt.path.slice(),Ut(We)),Mt=fn;continue}else{Mt=fn;continue}break;case br:if(lr=="/"||lr=="\\"){Mt=sr;break}Rt&&Rt.scheme=="file"&&!mt($r.slice(It).join(""))&&(nt(Rt.path[0],!0)?We.path.push(Rt.path[0]):We.host=Rt.host),Mt=fn;continue;case sr:if(lr==ve||lr=="/"||lr=="\\"||lr=="?"||lr=="#"){if(!yt&&nt(xr))Mt=fn;else if(xr==""){if(We.host="",yt)return;Mt=Fn}else{if(ia=ge(We,xr),ia)return ia;if(We.host=="localhost"&&(We.host=""),yt)return;xr="",Mt=Fn}continue}else xr+=lr;break;case Fn:if(Ye(We)){if(Mt=fn,lr!="/"&&lr!="\\")continue}else if(!yt&&lr=="?")We.query="",Mt=ar;else if(!yt&&lr=="#")We.fragment="",Mt=Wr;else if(lr!=ve&&(Mt=fn,lr!="/"))continue;break;case fn:if(lr==ve||lr=="/"||lr=="\\"&&Ye(We)||!yt&&(lr=="?"||lr=="#")){if(wt(xr)?(Ut(We),lr!="/"&&!(lr=="\\"&&Ye(We))&&We.path.push("")):Ot(xr)?lr!="/"&&!(lr=="\\"&&Ye(We))&&We.path.push(""):(We.scheme=="file"&&!We.path.length&&nt(xr)&&(We.host&&(We.host=""),xr=xr.charAt(0)+":"),We.path.push(xr)),xr="",We.scheme=="file"&&(lr==ve||lr=="?"||lr=="#"))for(;We.path.length>1&&We.path[0]==="";)We.path.shift();lr=="?"?(We.query="",Mt=ar):lr=="#"&&(We.fragment="",Mt=Wr)}else xr+=Pe(lr,Ve);break;case Or:lr=="?"?(We.query="",Mt=ar):lr=="#"?(We.fragment="",Mt=Wr):lr!=ve&&(We.path[0]+=Pe(lr,Se));break;case ar:!yt&&lr=="#"?(We.fragment="",Mt=Wr):lr!=ve&&(lr=="'"&&Ye(We)?We.query+="%27":lr=="#"?We.query+="%23":We.query+=Pe(lr,Se));break;case Wr:lr!=ve&&(We.fragment+=Pe(lr,Fe));break}It++}},Qt=function(gt){var yt=h(this,Qt,"URL"),Rt=arguments.length>1?arguments[1]:void 0,Mt=C(gt),It=B(yt,{type:"URL"}),xr,rn;if(Rt!==void 0){if(Rt instanceof Qt)xr=O(Rt);else if(rn=Tt(xr={},C(Rt)),rn)throw TypeError(rn)}if(rn=Tt(It,Mt,null,xr),rn)throw TypeError(rn);var Zr=It.searchParams=new P,Rr=N(Zr);Rr.updateSearchParams(It.query),Rr.updateURL=function(){It.query=String(Zr)||null},g||(yt.href=ze.call(yt),yt.origin=Ze.call(yt),yt.protocol=qe.call(yt),yt.username=Ge.call(yt),yt.password=$e.call(yt),yt.host=tt.call(yt),yt.hostname=bt.call(yt),yt.port=xt.call(yt),yt.pathname=kt.call(yt),yt.search=Bt.call(yt),yt.searchParams=Dt.call(yt),yt.hash=or.call(yt))},hr=Qt.prototype,ze=function(){var We=O(this),gt=We.scheme,yt=We.username,Rt=We.password,Mt=We.host,It=We.port,xr=We.path,rn=We.query,Zr=We.fragment,Rr=gt+":";return Mt!==null?(Rr+="//",Ke(We)&&(Rr+=yt+(Rt?":"+Rt:"")+"@"),Rr+=ye(Mt),It!==null&&(Rr+=":"+It)):gt=="file"&&(Rr+="//"),Rr+=We.cannotBeABaseURL?xr[0]:xr.length?"/"+xr.join("/"):"",rn!==null&&(Rr+="?"+rn),Zr!==null&&(Rr+="#"+Zr),Rr},Ze=function(){var We=O(this),gt=We.scheme,yt=We.port;if(gt=="blob")try{return new Qt(gt.path[0]).origin}catch{return"null"}return gt=="file"||!Ye(We)?"null":gt+"://"+ye(We.host)+(yt!==null?":"+yt:"")},qe=function(){return O(this).scheme+":"},Ge=function(){return O(this).username},$e=function(){return O(this).password},tt=function(){var We=O(this),gt=We.host,yt=We.port;return gt===null?"":yt===null?ye(gt):ye(gt)+":"+yt},bt=function(){var We=O(this).host;return We===null?"":ye(We)},xt=function(){var We=O(this).port;return We===null?"":String(We)},kt=function(){var We=O(this),gt=We.path;return We.cannotBeABaseURL?gt[0]:gt.length?"/"+gt.join("/"):""},Bt=function(){var We=O(this).query;return We?"?"+We:""},Dt=function(){return O(this).searchParams},or=function(){var We=O(this).fragment;return We?"#"+We:""},gr=function(We,gt){return{get:We,set:gt,configurable:!0,enumerable:!0}};if(g&&_(hr,{href:gr(ze,function(We){var gt=O(this),yt=C(We),Rt=Tt(gt,yt);if(Rt)throw TypeError(Rt);N(gt.searchParams).updateSearchParams(gt.query)}),origin:gr(Ze),protocol:gr(qe,function(We){var gt=O(this);Tt(gt,C(We)+":",Kt)}),username:gr(Ge,function(We){var gt=O(this),yt=v(C(We));if(!ot(gt)){gt.username="";for(var Rt=0;Rt<yt.length;Rt++)gt.username+=Pe(yt[Rt],ke)}}),password:gr($e,function(We){var gt=O(this),yt=v(C(We));if(!ot(gt)){gt.password="";for(var Rt=0;Rt<yt.length;Rt++)gt.password+=Pe(yt[Rt],ke)}}),host:gr(tt,function(We){var gt=O(this);gt.cannotBeABaseURL||Tt(gt,C(We),Lt)}),hostname:gr(bt,function(We){var gt=O(this);gt.cannotBeABaseURL||Tt(gt,C(We),Gt)}),port:gr(xt,function(We){var gt=O(this);ot(gt)||(We=C(We),We==""?gt.port=null:Tt(gt,We,$t))}),pathname:gr(kt,function(We){var gt=O(this);gt.cannotBeABaseURL||(gt.path=[],Tt(gt,C(We),Fn))}),search:gr(Bt,function(We){var gt=O(this);We=C(We),We==""?gt.query=null:(We.charAt(0)=="?"&&(We=We.slice(1)),gt.query="",Tt(gt,We,ar)),N(gt.searchParams).updateSearchParams(gt.query)}),searchParams:gr(Dt),hash:gr(or,function(We){var gt=O(this);if(We=C(We),We==""){gt.fragment=null;return}We.charAt(0)=="#"&&(We=We.slice(1)),gt.fragment="",Tt(gt,We,Wr)})}),y(hr,"toJSON",function(){return ze.call(this)},{enumerable:!0}),y(hr,"toString",function(){return ze.call(this)},{enumerable:!0}),M){var kr=M.createObjectURL,it=M.revokeObjectURL;kr&&y(Qt,"createObjectURL",function(gt){return kr.apply(M,arguments)}),it&&y(Qt,"revokeObjectURL",function(gt){return it.apply(M,arguments)})}k(Qt,"URL"),l({global:!0,forced:!m,sham:!g},{URL:Qt})}),9801:(function(){}),3822:(function(u,f,o){var l=o(2221);u.exports=l}),1434:(function(u,f,o){var l=o(5078);u.exports=l}),6899:(function(u,f,o){var l=o(98);u.exports=l}),7710:(function(u,f,o){var l=o(5739);o(162),u.exports=l}),4486:(function(u,f,o){var l=o(278);u.exports=l}),4877:(function(u,f,o){var l=o(1484);u.exports=l}),7178:(function(u,f,o){var l=o(7731);u.exports=l}),5603:(function(u,f,o){var l=o(3669);u.exports=l}),1206:(function(u,f,o){o(162);var l=o(6899),g=o(4696),m=Array.prototype,p={DOMTokenList:!0,NodeList:!0};u.exports=function(_){var y=_.forEach;return _===m||_ instanceof Array&&y===m.forEach||p.hasOwnProperty(g(_))?l:y}}),6174:(function(u,f,o){var l=o(2604);u.exports=l}),57:(function(u,f,o){var l=o(263);u.exports=l}),4741:(function(u,f,o){var l=o(7663);u.exports=l}),8368:(function(u,f,o){var l=o(5063);u.exports=l}),3739:(function(u,f,o){var l=o(6813);u.exports=l}),172:(function(u,f,o){var l=o(6285);u.exports=l}),4963:(function(u,f,o){var l=o(3213);u.exports=l}),7820:(function(u,f,o){var l=o(3512);u.exports=l}),8980:(function(u,f,o){var l=o(8168);u.exports=l}),5636:(function(u,f,o){var l=o(8651);u.exports=l}),6672:(function(u,f,o){var l=o(3083);u.exports=l}),5059:(function(u,f,o){var l=o(2987);u.exports=l}),3969:(function(u,f,o){var l=o(2239);u.exports=l}),6618:(function(u,f,o){var l=o(3154);o(162),u.exports=l}),5279:(function(u,f,o){var l=o(6577);u.exports=l}),9562:(function(u,f,o){o(2906);var l=o(7545);u.exports=l.setTimeout}),2285:(function(u,f,o){var l=o(5008);o(162),u.exports=l}),8535:(function(u,f,o){var l=o(994);o(162),u.exports=l}),652:(function(u,f,o){var l=o(5668);u.exports=l}),5668:(function(u,f,o){o(4948),o(9801),o(9336);var l=o(7545);u.exports=l.URL}),2534:(function(u){u.exports="data:image/svg+xml;base64, "}),4858:(function(u){u.exports=r}),4960:(function(){}),6759:(function(){}),6272:(function(){})},n={};function t(u){var f=n[u];if(f!==void 0)return f.exports;var o=n[u]={exports:{}};return i[u](o,o.exports,t),o.exports}(function(){t.n=function(u){var f=u&&u.__esModule?function(){return u.default}:function(){return u};return t.d(f,{a:f}),f}})(),(function(){t.d=function(u,f){for(var o in f)t.o(f,o)&&!t.o(u,o)&&Object.defineProperty(u,o,{enumerable:!0,get:f[o]})}})(),(function(){t.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){t.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)}})();var c={};return(function(){t.d(c,{default:function(){return Af}});var u=t(9131),f=t.n(u),o=t(1899),l=t.n(o),g=t(6562),m=t.n(g),p=t(1734),_=t.n(p),y=t(8005),h=t.n(y),d=t(6065),A=t.n(d),v=t(4496),w=t.n(v);Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(Me){var ce=this;do{if(Element.prototype.matches.call(ce,Me))return ce;ce=ce.parentElement||ce.parentNode}while(ce!==null&&ce.nodeType===1);return null});/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&(function(Me){if("Element"in Me){var ce="classList",Z="prototype",te=Me.Element[Z],X=Object,ne=f()(String[Z])||function(){return this.replace(/^\s+|\s+$/g,"")},xe=l()(Array[Z])||function(zt){for(var qt=0,Xt=this.length;qt<Xt;qt++)if(qt in this&&this[qt]===zt)return qt;return-1},Ie=function(qt,Xt){this.name=qt,this.code=DOMException[qt],this.message=Xt},Qe=function(qt,Xt){if(Xt==="")throw new Ie("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(Xt))throw new Ie("INVALID_CHARACTER_ERR","The token must not contain space characters.");return xe.call(qt,Xt)},je=function(qt){for(var Xt=ne.call(qt.getAttribute("class")||""),nr=Xt?Xt.split(/\s+/):[],Mr=0,Dn=nr.length;Mr<Dn;Mr++)this.push(nr[Mr]);this._updateClassName=function(){qt.setAttribute("class",this.toString())}},rt=je[Z]=[],ft=function(){return new je(this)};if(Ie[Z]=Error[Z],rt.item=function(zt){return this[zt]||null},rt.contains=function(zt){return~Qe(this,zt+"")},rt.add=function(){var zt=arguments,qt=0,Xt=zt.length,nr,Mr=!1;do nr=zt[qt]+"",~Qe(this,nr)||(this.push(nr),Mr=!0);while(++qt<Xt);Mr&&this._updateClassName()},rt.remove=function(){var zt=arguments,qt=0,Xt=zt.length,nr,Mr=!1,Dn;do for(nr=zt[qt]+"",Dn=Qe(this,nr);~Dn;){var Nn;m()(Nn=this).call(Nn,Dn,1),Mr=!0,Dn=Qe(this,nr)}while(++qt<Xt);Mr&&this._updateClassName()},rt.toggle=function(zt,qt){var Xt=this.contains(zt),nr=Xt?qt!==!0&&"remove":qt!==!1&&"add";return nr&&this[nr](zt),qt===!0||qt===!1?qt:!Xt},rt.replace=function(zt,qt){var Xt=Qe(zt+"");if(~Xt){var nr;m()(nr=this).call(nr,Xt,1,qt),this._updateClassName()}},rt.toString=function(){return this.join(" ")},_()){var Ht={get:ft,enumerable:!0,configurable:!0};try{_()(te,ce,Ht)}catch(zt){(zt.number===void 0||zt.number===-2146823252)&&(Ht.enumerable=!1,_()(te,ce,Ht))}}else X[Z].__defineGetter__&&te.__defineGetter__(ce,ft)}})(self),(function(){var Me=document.createElement("_");if(Me.classList.add("c1","c2"),!Me.classList.contains("c2")){var ce=function(X){var ne=DOMTokenList.prototype[X];DOMTokenList.prototype[X]=function(xe){var Ie,Qe=arguments.length;for(Ie=0;Ie<Qe;Ie++)xe=arguments[Ie],ne.call(this,xe)}};ce("add"),ce("remove")}if(Me.classList.toggle("c3",!1),Me.classList.contains("c3")){var Z=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(te,X){return 1 in arguments&&!this.contains(te)==!X?X:Z.call(this,te)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(te,X){var ne=this.toString().split(" "),xe=l()(ne).call(ne,te+"");~xe&&(ne=h()(ne).call(ne,xe),this.remove.apply(this,ne),this.add(X),this.add.apply(this,h()(ne).call(ne,1)))}),Me=null})());/*!
 * @copyright Copyright (c) 2017 IcoMoon.io
 * @license   Licensed under MIT license
 *            See https://github.com/Keyamoon/svgxuse
 * @version   1.2.6
 */(function(){if(typeof window<"u"&&window.addEventListener){var Me=A()(null),ce,Z,te=function(){clearTimeout(Z),Z=w()(ce,100)},X=function(){},ne=function(){var rt;window.addEventListener("resize",te,!1),window.addEventListener("orientationchange",te,!1),window.MutationObserver?(rt=new MutationObserver(te),rt.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),X=function(){try{rt.disconnect(),window.removeEventListener("resize",te,!1),window.removeEventListener("orientationchange",te,!1)}catch{}}):(document.documentElement.addEventListener("DOMSubtreeModified",te,!1),X=function(){document.documentElement.removeEventListener("DOMSubtreeModified",te,!1),window.removeEventListener("resize",te,!1),window.removeEventListener("orientationchange",te,!1)})},xe=function(rt){function ft(Xt){var nr;return Xt.protocol!==void 0?nr=Xt:(nr=document.createElement("a"),nr.href=Xt),nr.protocol.replace(/:/g,"")+nr.host}var Ht,zt,qt;return window.XMLHttpRequest&&(Ht=new XMLHttpRequest,zt=ft(location),qt=ft(rt),Ht.withCredentials===void 0&&qt!==""&&qt!==zt?Ht=XDomainRequest||void 0:Ht=XMLHttpRequest),Ht},Ie="http://www.w3.org/1999/xlink";ce=function(){var rt,ft,Ht,zt,qt,Xt=0,nr,Mr,Dn,Nn,qn;function nn(){Xt-=1,Xt===0&&(X(),ne())}function Ja(zi){return function(){Me[zi.base]!==!0&&(zi.useEl.setAttributeNS(Ie,"xlink:href","#"+zi.hash),zi.useEl.hasAttribute("href")&&zi.useEl.setAttribute("href","#"+zi.hash))}}function _s(zi){return function(){var vl=document.body,Pu=document.createElement("x"),Ls;zi.onload=null,Pu.innerHTML=zi.responseText,Ls=Pu.getElementsByTagName("svg")[0],Ls&&(Ls.setAttribute("aria-hidden","true"),Ls.style.position="absolute",Ls.style.width=0,Ls.style.height=0,Ls.style.overflow="hidden",vl.insertBefore(Ls,vl.firstChild)),nn()}}function Xs(zi){return function(){zi.onerror=null,zi.ontimeout=null,nn()}}for(X(),Nn=document.getElementsByTagName("use"),qt=0;qt<Nn.length;qt+=1){try{ft=Nn[qt].getBoundingClientRect()}catch{ft=!1}zt=Nn[qt].getAttribute("href")||Nn[qt].getAttributeNS(Ie,"href")||Nn[qt].getAttribute("xlink:href"),zt&&zt.split?Dn=zt.split("#"):Dn=["",""],rt=Dn[0],Ht=Dn[1],nr=ft&&ft.left===0&&ft.right===0&&ft.top===0&&ft.bottom===0,ft&&ft.width===0&&ft.height===0&&!nr?(Nn[qt].hasAttribute("href")&&Nn[qt].setAttributeNS(Ie,"xlink:href",zt),rt.length&&(qn=Me[rt],qn!==!0&&w()(Ja({useEl:Nn[qt],base:rt,hash:Ht}),0),qn===void 0&&(Mr=xe(rt),Mr!==void 0&&(qn=new Mr,Me[rt]=qn,qn.onload=_s(qn),qn.onerror=Xs(qn),qn.ontimeout=Xs(qn),qn.open("GET",rt),qn.send(),Xt+=1)))):nr?rt.length&&Me[rt]&&w()(Ja({useEl:Nn[qt],base:rt,hash:Ht}),0):Me[rt]===void 0?Me[rt]=!0:Me[rt].onload&&(Me[rt].abort(),delete Me[rt].onload,Me[rt]=!0)}Nn="",Xt+=1,nn()};var Qe;Qe=function(){window.removeEventListener("load",Qe,!1),Z=w()(ce,0)},document.readyState!=="complete"?window.addEventListener("load",Qe,!1):Qe()}})();var x=t(1845);function C(Me,ce){(ce==null||ce>Me.length)&&(ce=Me.length);for(var Z=0,te=new Array(ce);Z<ce;Z++)te[Z]=Me[Z];return te}function k(Me){if(x(Me))return C(Me)}var T=t(184),S=t(662),M=t(7172);function P(Me){if(typeof T<"u"&&S(Me)!=null||Me["@@iterator"]!=null)return M(Me)}var N=t(711);function B(Me,ce){var Z;if(Me){if(typeof Me=="string")return C(Me,ce);var te=N(Z=Object.prototype.toString.call(Me)).call(Z,8,-1);if(te==="Object"&&Me.constructor&&(te=Me.constructor.name),te==="Map"||te==="Set")return M(Me);if(te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(te))return C(Me,ce)}}function O(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(Me){return k(Me)||P(Me)||B(Me)||O()}var F=t(7077);function L(Me,ce,Z){return ce in Me?F(Me,ce,{value:Z,enumerable:!0,configurable:!0,writable:!0}):Me[ce]=Z,Me}function R(Me,ce){if(!(Me instanceof ce))throw new TypeError("Cannot call a class as a function")}function U(Me,ce){for(var Z=0;Z<ce.length;Z++){var te=ce[Z];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),F(Me,te.key,te)}}function V(Me,ce,Z){return ce&&U(Me.prototype,ce),Z&&U(Me,Z),Me}var W=t(4426),Q=t.n(W),le=t(9406),G=t.n(le),fe=t(8189),ie=t.n(fe),he=t(3972),Y=t.n(he),K=t(2777),oe=t(961),pe=t.n(oe),ve=t(5695),ge=t.n(ve),ue=t(8592),Te=t.n(ue),Ee=t(9052),ye=t.n(Ee),Se=t(2560),Fe=t.n(Se),Ve=t(2461),ke=t.n(Ve);function Pe(Me){if(x(Me))return Me}function Re(Me,ce){var Z=Me==null?null:typeof T<"u"&&S(Me)||Me["@@iterator"];if(Z!=null){var te=[],X=!0,ne=!1,xe,Ie;try{for(Z=Z.call(Me);!(X=(xe=Z.next()).done)&&(te.push(xe.value),!(ce&&te.length===ce));X=!0);}catch(Qe){ne=!0,Ie=Qe}finally{try{!X&&Z.return!=null&&Z.return()}finally{if(ne)throw Ie}}return te}}function Ye(){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 Ke(Me,ce){return Pe(Me)||Re(Me,ce)||B(Me,ce)||Ye()}var ot=t(6397),nt=t.n(ot),mt=t(7636),Ut=t.n(mt),Ot=t(789),wt=t.n(Ot),Kt=t(4729),_t=t.n(Kt),Jt=t(1610),yr=t.n(Jt),vr=t(3053),Br=t.n(vr),zr,mn=["zoomIn","zoomOut","hand"],jr=["history","undo","redo","reset"],Tn=["delete","deleteAll"],Lt=G()(zr=[]).call(zr,mn,jr,Tn),Gt={FILTER:"filter",COLOR:"color"},$t=["rect","circle","triangle"],Sr={CROPZONE:"cropzone"},br={VINTAGE:"vintage",SEPIA2:"sepia2",REMOVE_COLOR:"removeColor",COLOR_FILTER:"colorFilter",REMOVE_WHITE:"removeWhite",BLEND_COLOR:"blendColor",BLEND:"blend"},sr=xr("IMAGE_LOADER","CROPPER","FLIP","ROTATION","FREE_DRAWING","LINE","TEXT","ICON","FILTER","SHAPE","ZOOM","RESIZE"),Fn={lockSkewingX:!0,lockSkewingY:!0,bringForward:!0,isRegular:!1},fn={hasRotatingPoint:!1,hasBorders:!1,lockScalingFlip:!0,lockRotation:!0,lockSkewingX:!0,lockSkewingY:!0},Or={CLEAR_OBJECTS:"clearObjects",LOAD_IMAGE:"loadImage",FLIP_IMAGE:"flip",ROTATE_IMAGE:"rotate",ADD_OBJECT:"addObject",REMOVE_OBJECT:"removeObject",APPLY_FILTER:"applyFilter",REMOVE_FILTER:"removeFilter",ADD_ICON:"addIcon",CHANGE_ICON_COLOR:"changeIconColor",ADD_SHAPE:"addShape",CHANGE_SHAPE:"changeShape",ADD_TEXT:"addText",CHANGE_TEXT:"changeText",CHANGE_TEXT_STYLE:"changeTextStyle",ADD_IMAGE_OBJECT:"addImageObject",RESIZE_CANVAS_DIMENSION:"resizeCanvasDimension",SET_OBJECT_PROPERTIES:"setObjectProperties",SET_OBJECT_POSITION:"setObjectPosition",CHANGE_SELECTION:"changeSelection",RESIZE_IMAGE:"resize"},ar={OBJECT_ACTIVATED:"objectActivated",OBJECT_MOVED:"objectMoved",OBJECT_SCALED:"objectScaled",OBJECT_ROTATED:"objectRotated",OBJECT_ADDED:"objectAdded",OBJECT_MODIFIED:"objectModified",TEXT_EDITING:"textEditing",TEXT_CHANGED:"textChanged",ICON_CREATE_RESIZE:"iconCreateResize",ICON_CREATE_END:"iconCreateEnd",ADD_TEXT:"addText",ADD_OBJECT:"addObject",ADD_OBJECT_AFTER:"addObjectAfter",MOUSE_DOWN:"mousedown",REDO_STACK_CHANGED:"redoStackChanged",UNDO_STACK_CHANGED:"undoStackChanged",SELECTION_CLEARED:"selectionCleared",SELECTION_CREATED:"selectionCreated",EXECUTE_COMMAND:"executeCommand",AFTER_UNDO:"afterUndo",AFTER_REDO:"afterRedo",ZOOM_CHANGED:"zoomChanged",HAND_STARTED:"handStarted",HAND_STOPPED:"handStopped",KEY_DOWN:"keydown",KEY_UP:"keyup",INPUT_BOX_EDITING_STARTED:"inputBoxEditingStarted",INPUT_BOX_EDITING_STOPPED:"inputBoxEditingStopped",FOCUS:"focus",BLUR:"blur"},Wr={COLOR_PICKER_INPUT_BOX:".tui-colorpicker-palette-hex"},Tt={LOAD_IMAGE:"Load",LOAD_MASK_IMAGE:"Mask",ADD_IMAGE_OBJECT:"Mask",CROP:"Crop",RESIZE:"Resize",APPLY_FILTER:"Filter",REMOVE_FILTER:"Filter",CHANGE_SHAPE:"Shape",CHANGE_ICON_COLOR:"Icon",ADD_TEXT:"Text",CHANGE_TEXT_STYLE:"Text",REMOVE_OBJECT:"Delete",CLEAR_OBJECTS:"Delete"},Qt=xr("NORMAL","CROPPER","FREE_DRAWING","LINE_DRAWING","TEXT","SHAPE","ICON","ZOOM","RESIZE"),hr={TEXT:"text",CROP:"crop",RESIZE:"resize",SHAPE:"shape",ZOOM:"zoom"},ze={DEFAULT:"normal",ZOOM:"zoom",HAND:"hand"},Ze={Z:90,Y:89,C:67,V:86,SHIFT:16,BACKSPACE:8,DEL:46,ARROW_DOWN:40,ARROW_UP:38,SPACE:32,DIGIT_0:48,DIGIT_9:57},qe={SELECTION_STYLE:{borderColor:"red",cornerColor:"green",cornerSize:10,originX:"center",originY:"center",transparentCorners:!1}},Ge={addedObject:"The object is already added.",flip:"The flipX and flipY setting values are not changed.",invalidParameters:"Invalid parameters.",isLock:"The executing command state is locked.",loadImage:"The background image is empty.",loadingImageFailed:"Invalid image loaded.",noObject:"The object is not in canvas.",redo:"The promise of redo command is reject.",undo:"The promise of undo command is reject.",unsupportedOperation:"Unsupported operation.",unsupportedType:"Unsupported object type."},$e={"icon-arrow":"M40 12V0l24 24-24 24V36H0V12h40z","icon-arrow-2":"M49,32 H3 V22 h46 l-18,-18 h12 l23,23 L43,50 h-12 l18,-18  z ","icon-arrow-3":"M43.349998,27 L17.354,53 H1.949999 l25.996,-26 L1.949999,1 h15.404 L43.349998,27  z ","icon-star":"M35,54.557999 l-19.912001,10.468 l3.804,-22.172001 l-16.108,-15.7 l22.26,-3.236 L35,3.746 l9.956,20.172001 l22.26,3.236 l-16.108,15.7 l3.804,22.172001  z ","icon-star-2":"M17,31.212 l-7.194,4.08 l-4.728,-6.83 l-8.234,0.524 l-1.328,-8.226 l-7.644,-3.14 l2.338,-7.992 l-5.54,-6.18 l5.54,-6.176 l-2.338,-7.994 l7.644,-3.138 l1.328,-8.226 l8.234,0.522 l4.728,-6.83 L17,-24.312 l7.194,-4.08 l4.728,6.83 l8.234,-0.522 l1.328,8.226 l7.644,3.14 l-2.338,7.992 l5.54,6.178 l-5.54,6.178 l2.338,7.992 l-7.644,3.14 l-1.328,8.226 l-8.234,-0.524 l-4.728,6.83  z ","icon-polygon":"M3,31 L19,3 h32 l16,28 l-16,28 H19  z ","icon-location":"M24 62C8 45.503 0 32.837 0 24 0 10.745 10.745 0 24 0s24 10.745 24 24c0 8.837-8 21.503-24 38zm0-28c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10z","icon-heart":"M49.994999,91.349998 l-6.96,-6.333 C18.324001,62.606995 2.01,47.829002 2.01,29.690998 C2.01,14.912998 13.619999,3.299999 28.401001,3.299999 c8.349,0 16.362,5.859 21.594,12 c5.229,-6.141 13.242001,-12 21.591,-12 c14.778,0 26.390999,11.61 26.390999,26.390999 c0,18.138 -16.314001,32.916 -41.025002,55.374001 l-6.96,6.285  z ","icon-bubble":"M44 48L34 58V48H12C5.373 48 0 42.627 0 36V12C0 5.373 5.373 0 12 0h40c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-8z"},tt={realTimeEvent:!0,min:-360,max:360,value:0},bt={min:5,max:30,value:12},xt={realTimeEvent:!0,min:2,max:300,value:3},kt={realTimeEvent:!0,min:10,max:100,value:50},Bt={tintOpacityRange:{realTimeEvent:!0,min:0,max:1,value:.7,useDecimal:!0},removewhiteDistanceRange:{realTimeEvent:!0,min:0,max:1,value:.2,useDecimal:!0},brightnessRange:{realTimeEvent:!0,min:-1,max:1,value:0,useDecimal:!0},noiseRange:{realTimeEvent:!0,min:0,max:1e3,value:100},pixelateRange:{realTimeEvent:!0,min:2,max:20,value:4},colorfilterThresholdRange:{realTimeEvent:!0,min:0,max:1,value:.2,useDecimal:!0},blurFilterRange:{value:.1}},Dt={LEFT:0,TOP:0,WIDTH:.5,HEIGHT:.5},or={realTimeEvent:!0,min:32,max:4088,value:800},gr=2,kr="tui-image-editor-",it=Math.min,We=Math.max,gt=!1,yt=0;function Rt(Me){return Me.__fe_id||(yt+=1,Me.__fe_id=yt),Me.__fe_id}function Mt(Me){return typeof Me=="function"}function It(Me,ce,Z){if(ce>Z){var te=[Z,ce];ce=te[0],Z=te[1]}return We(ce,it(Me,Z))}function xr(){for(var Me={},ce=arguments.length,Z=new Array(ce),te=0;te<ce;te++)Z[te]=arguments[te];return Te()(Z,function(X){Me[X]=X}),Me}function rn(Me,ce){var Z={},te=ce.length,X=0,ne;for(X=0;X<te;X+=1)ne=ce[X],Z[ne]=Me[ne];return Z}function Zr(Me){return nt()(Me,10)}function Rr(Me){return Me.replace(/-([a-z])/g,function(ce,Z){return Z.toUpperCase()})}function $r(){return!!(window.File&&window.FileList&&window.FileReader)}function lr(Me,ce){var Z,te,X;if(Me.length===4){var ne;Me=G()(ne="".concat(Me)).call(ne,h()(Me).call(Me,1,4))}var xe=nt()(h()(Me).call(Me,1,3),16),Ie=nt()(h()(Me).call(Me,3,5),16),Qe=nt()(h()(Me).call(Me,5,7),16),je=ce;return G()(Z=G()(te=G()(X="rgba(".concat(xe,", ")).call(X,Ie,", ")).call(te,Qe,", ")).call(Z,je,")")}function Mn(){gt||(gt=!0,_t()("image-editor","UA-129999381-1"))}function ia(Me,ce){var Z=document.getElementsByTagName("head"),te=Ke(Z,1),X=te[0],ne=document.createElement("link"),xe=encodeURIComponent(Me);ne.setAttribute("rel","stylesheet"),ne.setAttribute("type","text/css"),ne.setAttribute("href","data:text/css;charset=UTF-8,".concat(xe)),X.appendChild(ne)}function vn(Me){return function(ce){return Me.querySelector(ce)}}function ri(Me){var ce=/data:(image\/.+);base64,/,Z="",te,X,ne;te=Me.replace(ce,function(Ie,Qe){return Z=Qe,""}),te=atob(te);var xe=te.length;for(X=new Uint8Array(xe),ne=0;ne<xe;ne+=1)X[ne]=te.charCodeAt(ne);return new Blob([X],{type:Z})}function ms(Me){return Number(Me.toFixed(gr))}function gi(Me){Te()(Me,function(ce,Z){Me[Z]=null})}function Eo(){var Me,ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(ce.charAt(0)==="."){var te;return G()(te=".".concat(kr).concat(Z)).call(te,h()(ce).call(ce,1))}return G()(Me="".concat(kr).concat(Z)).call(Me,ce)}function kl(Me,ce){var Z=ce.originX,te=ce.originY,X=Me.getPointByOrigin(Z,te),ne=X.x,xe=X.y;Me.set({left:ne,top:xe,originX:Z,originY:te}),Me.setCoords()}function ba(Me){var ce,Z={};return Ut()(ce=ke()(Me)).call(ce,function(te){Z[Me[te]]=te}),Z}function Da(Me,ce){Me.customProps=Me.customProps||{},pe()(Me.customProps,ce)}function va(Me,ce){var Z={};return Fe()(ce)&&(ce=[ce]),Te()(ce,function(te){Z[te]=Me.customProps[te]}),Z}function Ba(Me){return Me.charAt(0).toUpperCase()+h()(Me).call(Me,1)}function po(Me,ce){return l()(Me).call(Me,ce)>=0}function Tl(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return yr()(Me,"type")||Gt.COLOR}function Ki(Me){var ce=wt()(Me),Z=ce===void 0?{}:ce;return Z.source?Gt.FILTER:Gt.COLOR}function gs(Me){return Br()(Me.get("type"),$t)>=0}function mo(Me){if(po($t,Me))return"Shape";switch(Me){case"i-text":return"Text";case"path":case"line":return"Draw";case"activeSelection":return"Group";default:return nc(Me)}}function mu(Me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=ce.useAlpha,te=Z===void 0?!0:Z,X=ce.mode,ne=br.VINTAGE,xe=br.REMOVE_COLOR,Ie=br.BLEND_COLOR,Qe=br.SEPIA2,je=br.COLOR_FILTER,rt=br.REMOVE_WHITE,ft=br.BLEND,Ht;switch(Me){case ne:Ht=Qe;break;case xe:Ht=te?je:rt;break;case Ie:Ht=X==="add"?ft:X;break;default:Ht=Me}return nc(Ht)}function si(Me){var ce=Or.LOAD_IMAGE;return typeof Me=="string"?ce===Me:ce===Me.name}function ll(Me){var ce,Z,te=Or.FLIP_IMAGE,X=Or.ROTATE_IMAGE,ne=Or.ADD_TEXT,xe=Or.APPLY_FILTER,Ie=Or.REMOVE_FILTER,Qe=Or.CHANGE_SHAPE,je=Or.CHANGE_ICON_COLOR,rt=Or.CHANGE_TEXT_STYLE,ft=Or.CLEAR_OBJECTS,Ht=Or.ADD_IMAGE_OBJECT,zt=Or.REMOVE_OBJECT,qt=Or.RESIZE_IMAGE,Xt=Me.name,nr=Me.args,Mr;switch(Xt){case te:Mr={name:Xt,detail:nr[1]==="reset"?nr[1]:h()(ce=nr[1]).call(ce,4)};break;case X:Mr={name:Xt,detail:nr[2]};break;case xe:Mr={name:Tt.APPLY_FILTER,detail:mu(nr[1],nr[2])};break;case Ie:Mr={name:Tt.REMOVE_FILTER,detail:"Remove"};break;case Qe:Mr={name:Tt.CHANGE_SHAPE,detail:"Change"};break;case je:Mr={name:Tt.CHANGE_ICON_COLOR,detail:"Change"};break;case rt:Mr={name:Tt.CHANGE_TEXT_STYLE,detail:"Change"};break;case zt:Mr={name:Tt.REMOVE_OBJECT,detail:nr[2]};break;case ft:Mr={name:Tt.CLEAR_OBJECTS,detail:"All"};break;case Ht:Mr={name:Tt.ADD_IMAGE_OBJECT,detail:"Add"};break;case ne:Mr={name:Tt.ADD_TEXT};break;case qt:Mr={name:Tt.RESIZE,detail:G()(Z="".concat(~~nr[1].width,"x")).call(Z,~~nr[1].height)};break;default:Mr={name:Xt};break}return nr[1]==="mask"&&(Mr={name:Tt.LOAD_MASK_IMAGE,detail:"Apply"}),Mr}function zo(Me){return Me==="top"?"bottom":Me==="left"?"right":Me==="right"?"left":"top"}function nc(Me){return Me.replace(/[a-z]/,function(ce){return ce.toUpperCase()})}function Kl(Me){var ce=Me.left,Z=Me.top,te=Me.width,X=Me.height,ne=Dt.LEFT,xe=Dt.TOP,Ie=Dt.WIDTH,Qe=Dt.HEIGHT;return ce===ne&&Z===xe&&te===Ie&&X===Qe}var gu=xr("UN_IMPLEMENTATION","NO_COMPONENT_NAME"),El={UN_IMPLEMENTATION:"Should implement a method: ",NO_COMPONENT_NAME:"Should set a component name"},Xa={UN_IMPLEMENTATION:function(ce){return El.UN_IMPLEMENTATION+ce},NO_COMPONENT_NAME:function(){return El.NO_COMPONENT_NAME}},Is={types:pe()({},gu),create:function(ce){ce=ce.toLowerCase();for(var Z=Xa[ce],te=arguments.length,X=new Array(te>1?te-1:0),ne=1;ne<te;ne++)X[ne-1]=arguments[ne];return Z.apply(void 0,X)}},ul=Is.create,vu=Is.types,sg=(function(){function Me(ce,Z){R(this,Me),this.name=ce.name,this.args=Z,this.execute=ce.execute,this.undo=ce.undo,this.executeCallback=ce.executeCallback||null,this.undoCallback=ce.undoCallback||null,this.undoData={}}return V(Me,[{key:"execute",value:function(){throw new Error(ul(vu.UN_IMPLEMENTATION,"execute"))}},{key:"undo",value:function(){throw new Error(ul(vu.UN_IMPLEMENTATION,"undo"))}},{key:"isRedo",get:function(){return ke()(this.undoData).length>0}},{key:"setUndoData",value:function(Z,te,X){return te&&(Z=te),X?te||(te=Z):(pe()(this.undoData,Z),te=null),te}},{key:"setExecuteCallback",value:function(Z){return this.executeCallback=Z,this}},{key:"setUndoCallback",value:function(Z){return this.undoCallback=Z,this}}]),Me})(),og=sg,Ud={};function Y0(Me){var ce=Ud[Me];if(ce){for(var Z=arguments.length,te=new Array(Z>1?Z-1:0),X=1;X<Z;X++)te[X-1]=arguments[X];return new og(ce,te)}return null}function X0(Me){Ud[Me.name]=Me}var wa={create:Y0,register:X0},zc=(function(){function Me(){R(this,Me),this._undoStack=[],this._redoStack=[],this._isLocked=!1,this._isSilent=!1}return V(Me,[{key:"_invokeExecution",value:function(Z){var te=this,X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.lock();var ne=Z.args;return ne||(ne=[]),Z.execute.apply(Z,I(ne)).then(function(xe){return te._isSilent||(te.pushUndoStack(Z),te.fire(X?ar.AFTER_REDO:ar.EXECUTE_COMMAND,Z)),te.unlock(),Mt(Z.executeCallback)&&Z.executeCallback(xe),xe}).catch(function(xe){return te.unlock(),ie().reject(xe)})}},{key:"_invokeUndo",value:function(Z){var te=this;this.lock();var X=Z.args;return X||(X=[]),Z.undo.apply(Z,I(X)).then(function(ne){return te.pushRedoStack(Z),te.fire(ar.AFTER_UNDO,Z),te.unlock(),Mt(Z.undoCallback)&&Z.undoCallback(ne),ne}).catch(function(ne){return te.unlock(),ie().reject(ne)})}},{key:"_fireRedoStackChanged",value:function(){this.fire(ar.REDO_STACK_CHANGED,this._redoStack.length)}},{key:"_fireUndoStackChanged",value:function(){this.fire(ar.UNDO_STACK_CHANGED,this._undoStack.length)}},{key:"lock",value:function(){this._isLocked=!0}},{key:"unlock",value:function(){this._isLocked=!1}},{key:"executeSilent",value:function(){var Z=this;this._isSilent=!0;for(var te=arguments.length,X=new Array(te),ne=0;ne<te;ne++)X[ne]=arguments[ne];return this.execute.apply(this,G()(X).call(X,[this._isSilent])).then(function(){Z._isSilent=!1})}},{key:"execute",value:function(){var Z=this;if(this._isLocked)return ie().reject(Ge.isLock);for(var te=arguments.length,X=new Array(te),ne=0;ne<te;ne++)X[ne]=arguments[ne];var xe=X[0];return Fe()(xe)&&(xe=wa.create.apply(wa,X)),this._invokeExecution(xe).then(function(Ie){return Z.clearRedoStack(),Ie})}},{key:"undo",value:function(){var Z=this._undoStack.pop(),te,X="";if(Z&&this._isLocked&&(this.pushUndoStack(Z,!0),Z=null),Z)this.isEmptyUndoStack()&&this._fireUndoStackChanged(),te=this._invokeUndo(Z);else{if(X=Ge.undo,this._isLocked){var ne;X=G()(ne="".concat(X," Because ")).call(ne,Ge.isLock)}te=ie().reject(X)}return te}},{key:"redo",value:function(){var Z=this._redoStack.pop(),te,X="";if(Z&&this._isLocked&&(this.pushRedoStack(Z,!0),Z=null),Z)this.isEmptyRedoStack()&&this._fireRedoStackChanged(),te=this._invokeExecution(Z,!0);else{if(X=Ge.redo,this._isLocked){var ne;X=G()(ne="".concat(X," Because ")).call(ne,Ge.isLock)}te=ie().reject(X)}return te}},{key:"pushUndoStack",value:function(Z,te){this._undoStack.push(Z),te||this._fireUndoStackChanged()}},{key:"pushRedoStack",value:function(Z,te){this._redoStack.push(Z),te||this._fireRedoStackChanged()}},{key:"isEmptyRedoStack",value:function(){return this._redoStack.length===0}},{key:"isEmptyUndoStack",value:function(){return this._undoStack.length===0}},{key:"clearUndoStack",value:function(){this.isEmptyUndoStack()||(this._undoStack=[],this._fireUndoStackChanged())}},{key:"clearRedoStack",value:function(){this.isEmptyRedoStack()||(this._redoStack=[],this._fireRedoStackChanged())}}]),Me})();ye().mixin(zc);var on=zc,bi=t(5214),za=t.n(bi),Ff=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe=Me.locale,je=Me.biImage,rt=Me.commonStyle,ft=Me.headerStyle,Ht=Me.loadButtonStyle,zt=Me.downloadButtonStyle,qt=Me.submenuStyle;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=`
    <div class="tui-image-editor-main-container" style="`.concat(rt,`">
        <div class="tui-image-editor-header" style="`)).call(Ie,ft,`">
            <div class="tui-image-editor-header-logo">
                <img src="`)).call(xe,je,`" />
            </div>
            <div class="tui-image-editor-header-buttons">
                <div style="`)).call(ne,Ht,`">
                    `)).call(X,Qe.localize("Load"),`
                    <input type="file" class="tui-image-editor-load-btn" />
                </div>
                <button class="tui-image-editor-download-btn" style="`)).call(te,zt,`">
                    `)).call(Z,Qe.localize("Download"),`
                </button>
            </div>
        </div>
        <div class="tui-image-editor-main">
            <div class="tui-image-editor-submenu">
                <div class="tui-image-editor-submenu-style" style="`)).call(ce,qt,`"></div>
            </div>
            <div class="tui-image-editor-wrap">
                <div class="tui-image-editor-size-wrap">
                    <div class="tui-image-editor-align-wrap">
                        <div class="tui-image-editor"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
`)}),us=(function(Me){var ce,Z,te,X,ne,xe=Me.locale,Ie=Me.biImage,Qe=Me.loadButtonStyle,je=Me.downloadButtonStyle,rt=Me.menuBarPosition;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=`
    <ul class="tui-image-editor-help-menu `.concat(zo(rt),`"></ul>
    <div class="tui-image-editor-controls">
        <div class="tui-image-editor-controls-logo">
            <img src="`)).call(ne,Ie,`" />
        </div>
        <ul class="tui-image-editor-menu"></ul>

        <div class="tui-image-editor-controls-buttons">
            <div style="`)).call(X,Qe,`">
                `)).call(te,xe.localize("Load"),`
                <input type="file" class="tui-image-editor-load-btn" />
            </div>
            <button class="tui-image-editor-download-btn" style="`)).call(Z,je,`">
                `)).call(ce,xe.localize("Download"),`
            </button>
        </div>
    </div>
`)}),ac=t(899),Ni=t.n(ac),Z0=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr,Mr,Dn,Nn,qn,nn,Ja,_s,Xs,zi,vl,Pu,Ls,ud,Bh=Me.subMenuLabelActive,Fh=Me.subMenuLabelNormal,cd=Me.subMenuRangeTitle,fd=Me.submenuPartitionVertical,dd=Me.submenuPartitionHorizontal,Zs=Me.submenuCheckbox,hd=Me.submenuRangePointer,Ad=Me.submenuRangeValue,pd=Me.submenuColorpickerTitle,md=Me.submenuColorpickerButton,Mh=Me.submenuRangeBar,gd=Me.submenuRangeSubbar,Dh=Me.submenuDisabledRangePointer,Cc=Me.submenuDisabledRangeBar,pf=Me.submenuDisabledRangeSubbar,vd=Me.submenuIconSize,ru=Me.menuIconSize,Oh=Me.biSize,Xo=Me.menuIconStyle,Sc=Me.submenuIconStyle;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=G()(je=G()(rt=G()(ft=G()(Ht=G()(zt=G()(qt=G()(Xt=G()(nr=G()(Mr=G()(Dn=G()(Nn=G()(qn=G()(nn=G()(Ja=G()(_s=G()(Xs=G()(zi=G()(vl=G()(Pu=G()(Ls=G()(ud=`
    .tie-icon-add-button.icon-bubble .tui-image-editor-button[data-icontype="icon-bubble"] label,
    .tie-icon-add-button.icon-heart .tui-image-editor-button[data-icontype="icon-heart"] label,
    .tie-icon-add-button.icon-location .tui-image-editor-button[data-icontype="icon-location"] label,
    .tie-icon-add-button.icon-polygon .tui-image-editor-button[data-icontype="icon-polygon"] label,
    .tie-icon-add-button.icon-star .tui-image-editor-button[data-icontype="icon-star"] label,
    .tie-icon-add-button.icon-star-2 .tui-image-editor-button[data-icontype="icon-star-2"] label,
    .tie-icon-add-button.icon-arrow-3 .tui-image-editor-button[data-icontype="icon-arrow-3"] label,
    .tie-icon-add-button.icon-arrow-2 .tui-image-editor-button[data-icontype="icon-arrow-2"] label,
    .tie-icon-add-button.icon-arrow .tui-image-editor-button[data-icontype="icon-arrow"] label,
    .tie-icon-add-button.icon-bubble .tui-image-editor-button[data-icontype="icon-bubble"] label,
    .tie-draw-line-select-button.line .tui-image-editor-button.line label,
    .tie-draw-line-select-button.free .tui-image-editor-button.free label,
    .tie-flip-button.flipX .tui-image-editor-button.flipX label,
    .tie-flip-button.flipY .tui-image-editor-button.flipY label,
    .tie-flip-button.resetFlip .tui-image-editor-button.resetFlip label,
    .tie-crop-button .tui-image-editor-button.apply.active label,
    .tie-crop-preset-button .tui-image-editor-button.preset.active label,
    .tie-resize-button .tui-image-editor-button.apply.active label,
    .tie-resize-preset-button .tui-image-editor-button.preset.active label,
    .tie-shape-button.rect .tui-image-editor-button.rect label,
    .tie-shape-button.circle .tui-image-editor-button.circle label,
    .tie-shape-button.triangle .tui-image-editor-button.triangle label,
    .tie-text-effect-button .tui-image-editor-button.active label,
    .tie-text-align-button.tie-text-align-left .tui-image-editor-button.left label,
    .tie-text-align-button.tie-text-align-center .tui-image-editor-button.center label,
    .tie-text-align-button.tie-text-align-right .tui-image-editor-button.right label,
    .tie-mask-apply.apply.active .tui-image-editor-button.apply label,
    .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button:hover > label,
    .tui-image-editor-container .tui-image-editor-checkbox label > span {
        `.concat(Bh,`
    }
    .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button > label,
    .tui-image-editor-container .tui-image-editor-range-wrap.tui-image-editor-newline.short label,
    .tui-image-editor-container .tui-image-editor-range-wrap.tui-image-editor-newline.short label > span {
        `)).call(ud,Fh,`
    }
    .tui-image-editor-container .tui-image-editor-range-wrap label > span {
        `)).call(Ls,cd,`
    }
    .tui-image-editor-container .tui-image-editor-partition > div {
        `)).call(Pu,fd,`
    }
    .tui-image-editor-container.left .tui-image-editor-submenu .tui-image-editor-partition > div,
    .tui-image-editor-container.right .tui-image-editor-submenu .tui-image-editor-partition > div {
        `)).call(vl,dd,`
    }
    .tui-image-editor-container .tui-image-editor-checkbox label > span:before {
        `)).call(zi,Zs,`
    }
    .tui-image-editor-container .tui-image-editor-checkbox label > input:checked + span:before {
        border: 0;
    }
    .tui-image-editor-container .tui-image-editor-virtual-range-pointer {
        `)).call(Xs,hd,`
    }
    .tui-image-editor-container .tui-image-editor-virtual-range-bar {
        `)).call(_s,Mh,`
    }
    .tui-image-editor-container .tui-image-editor-virtual-range-subbar {
        `)).call(Ja,gd,`
    }
    .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-pointer {
        `)).call(nn,Dh,`
    }
    .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-subbar {
        `)).call(qn,pf,`
    }
    .tui-image-editor-container .tui-image-editor-disabled .tui-image-editor-virtual-range-bar {
        `)).call(Nn,Cc,`
    }
    .tui-image-editor-container .tui-image-editor-range-value {
        `)).call(Dn,Ad,`
    }
    .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button .color-picker-value + label {
        `)).call(Mr,pd,`
    }
    .tui-image-editor-container .tui-image-editor-submenu .tui-image-editor-button .color-picker-value {
        `)).call(nr,md,`
    }
    .tui-image-editor-container .svg_ic-menu {
        `)).call(Xt,ru,`
    }
    .tui-image-editor-container .svg_ic-submenu {
        `)).call(qt,vd,`
    }
    .tui-image-editor-container .tui-image-editor-controls-logo > img,
    .tui-image-editor-container .tui-image-editor-header-logo > img {
        `)).call(zt,Oh,`
    }
    .tui-image-editor-menu use.normal.use-default,
    .tui-image-editor-help-menu use.normal.use-default {
        fill-rule: evenodd;
        fill: `)).call(Ht,Xo.normal.color,`;
        stroke: `)).call(ft,Xo.normal.color,`;
    }
    .tui-image-editor-menu use.active.use-default,
    .tui-image-editor-help-menu use.active.use-default {
        fill-rule: evenodd;
        fill: `)).call(rt,Xo.active.color,`;
        stroke: `)).call(je,Xo.active.color,`;
    }
    .tui-image-editor-menu use.hover.use-default,
    .tui-image-editor-help-menu use.hover.use-default {
        fill-rule: evenodd;
        fill: `)).call(Qe,Xo.hover.color,`;
        stroke: `)).call(Ie,Xo.hover.color,`;
    }
    .tui-image-editor-menu use.disabled.use-default,
    .tui-image-editor-help-menu use.disabled.use-default {
        fill-rule: evenodd;
        fill: `)).call(xe,Xo.disabled.color,`;
        stroke: `)).call(ne,Xo.disabled.color,`;
    }
    .tui-image-editor-submenu use.normal.use-default {
        fill-rule: evenodd;
        fill: `)).call(X,Sc.normal.color,`;
        stroke: `)).call(te,Sc.normal.color,`;
    }
    .tui-image-editor-submenu use.active.use-default {
        fill-rule: evenodd;
        fill: `)).call(Z,Sc.active.color,`;
        stroke: `)).call(ce,Sc.active.color,`;
    }
`)}),J0={"common.bi.image":"https://uicdn.toast.com/toastui/img/tui-image-editor-bi.png","common.bisize.width":"251px","common.bisize.height":"21px","common.backgroundImage":"none","common.backgroundColor":"#1e1e1e","common.border":"0px","header.backgroundImage":"none","header.backgroundColor":"transparent","header.border":"0px","loadButton.backgroundColor":"#fff","loadButton.border":"1px solid #ddd","loadButton.color":"#222","loadButton.fontFamily":"'Noto Sans', sans-serif","loadButton.fontSize":"12px","downloadButton.backgroundColor":"#fdba3b","downloadButton.border":"1px solid #fdba3b","downloadButton.color":"#fff","downloadButton.fontFamily":"'Noto Sans', sans-serif","downloadButton.fontSize":"12px","menu.normalIcon.color":"#8a8a8a","menu.activeIcon.color":"#555555","menu.disabledIcon.color":"#434343","menu.hoverIcon.color":"#e9e9e9","submenu.normalIcon.color":"#8a8a8a","submenu.activeIcon.color":"#e9e9e9","menu.iconSize.width":"24px","menu.iconSize.height":"24px","submenu.iconSize.width":"32px","submenu.iconSize.height":"32px","submenu.backgroundColor":"#1e1e1e","submenu.partition.color":"#3c3c3c","submenu.normalLabel.color":"#8a8a8a","submenu.normalLabel.fontWeight":"lighter","submenu.activeLabel.color":"#fff","submenu.activeLabel.fontWeight":"lighter","checkbox.border":"0px","checkbox.backgroundColor":"#fff","range.pointer.color":"#fff","range.bar.color":"#666","range.subbar.color":"#d1d1d1","range.disabledPointer.color":"#414141","range.disabledBar.color":"#282828","range.disabledSubbar.color":"#414141","range.value.color":"#fff","range.value.fontWeight":"lighter","range.value.fontSize":"11px","range.value.border":"1px solid #353535","range.value.backgroundColor":"#151515","range.title.color":"#fff","range.title.fontWeight":"lighter","colorpicker.button.border":"1px solid #1e1e1e","colorpicker.title.color":"#fff"},dA=t(2534),q0=(function(){function Me(ce){R(this,Me),this.styles=this._changeToObject(pe()({},J0,ce)),ia(this._styleMaker()),this._loadDefaultSvgIcon()}return V(Me,[{key:"getStyle",value:function(Z){var te=null,X=Z.replace(/\..+$/,""),ne=this.styles[Z];switch(Z){case"common.bi":te=this.styles[Z].image;break;case"menu.icon":te={active:this.styles["".concat(X,".activeIcon")],normal:this.styles["".concat(X,".normalIcon")],hover:this.styles["".concat(X,".hoverIcon")],disabled:this.styles["".concat(X,".disabledIcon")]};break;case"submenu.icon":te={active:this.styles["".concat(X,".activeIcon")],normal:this.styles["".concat(X,".normalIcon")]};break;case"submenu.label":te={active:this._makeCssText(this.styles["".concat(X,".activeLabel")]),normal:this._makeCssText(this.styles["".concat(X,".normalLabel")])};break;case"submenu.partition":te={vertical:this._makeCssText(pe()({},ne,{borderLeft:"1px solid ".concat(ne.color)})),horizontal:this._makeCssText(pe()({},ne,{borderBottom:"1px solid ".concat(ne.color)}))};break;case"range.disabledPointer":case"range.disabledBar":case"range.disabledSubbar":case"range.pointer":case"range.bar":case"range.subbar":ne.backgroundColor=ne.color,te=this._makeCssText(ne);break;default:te=this._makeCssText(ne);break}return te}},{key:"_styleMaker",value:function(){var Z=this.getStyle("submenu.label"),te=this.getStyle("submenu.partition");return Z0({subMenuLabelActive:Z.active,subMenuLabelNormal:Z.normal,submenuPartitionVertical:te.vertical,submenuPartitionHorizontal:te.horizontal,biSize:this.getStyle("common.bisize"),subMenuRangeTitle:this.getStyle("range.title"),submenuRangePointer:this.getStyle("range.pointer"),submenuRangeBar:this.getStyle("range.bar"),submenuRangeSubbar:this.getStyle("range.subbar"),submenuDisabledRangePointer:this.getStyle("range.disabledPointer"),submenuDisabledRangeBar:this.getStyle("range.disabledBar"),submenuDisabledRangeSubbar:this.getStyle("range.disabledSubbar"),submenuRangeValue:this.getStyle("range.value"),submenuColorpickerTitle:this.getStyle("colorpicker.title"),submenuColorpickerButton:this.getStyle("colorpicker.button"),submenuCheckbox:this.getStyle("checkbox"),menuIconSize:this.getStyle("menu.iconSize"),submenuIconSize:this.getStyle("submenu.iconSize"),menuIconStyle:this.getStyle("menu.icon"),submenuIconStyle:this.getStyle("submenu.icon")})}},{key:"_changeToObject",value:function(Z){var te={};return Te()(Z,function(X,ne){var xe=ne.match(/^(.+)\.([a-z]+)$/i),Ie=Ke(xe,3),Qe=Ie[1],je=Ie[2];te[Qe]||(te[Qe]={}),te[Qe][je]=X}),te}},{key:"_makeCssText",value:function(Z){var te=this,X=[];return Te()(Z,function(ne,xe){var Ie,Qe;l()(Ie=["backgroundImage"]).call(Ie,xe)>-1&&ne!=="none"&&(ne="url(".concat(ne,")")),X.push(G()(Qe="".concat(te._toUnderScore(xe),": ")).call(Qe,ne))}),X.join(";")}},{key:"_toUnderScore",value:function(Z){return Z.replace(/([A-Z])/g,function(te,X){return"-".concat(X.toLowerCase())})}},{key:"_loadDefaultSvgIcon",value:function(){if(!document.getElementById("tui-image-editor-svg-default-icons")){var Z=new DOMParser,te=dA.replace(/data:image\/svg\+xml;base64,/,""),X=Z.parseFromString(atob(te),"text/xml");document.body.appendChild(X.documentElement)}}},{key:"_makeIconClassName",value:function(Z,te){var X=te?this.getStyle("submenu.icon"):this.getStyle("menu.icon"),ne=X[Z],xe=ne.path,Ie=ne.name;return xe&&Ie?Z:"".concat(Z," use-default")}},{key:"_makeSvgIconPrefix",value:function(Z,te){var X,ne=te?this.getStyle("submenu.icon"):this.getStyle("menu.icon"),xe=ne[Z],Ie=xe.path,Qe=xe.name;return Ie&&Qe?G()(X="".concat(Ie,"#")).call(X,Qe,"-"):"#"}},{key:"_makeSvgItem",value:function(Z,te,X){var ne=this;return Ni()(Z).call(Z,function(xe){var Ie,Qe,je=ne._makeSvgIconPrefix(xe,X),rt=ne._toUnderScore(te),ft=ne._makeIconClassName(xe,X);return G()(Ie=G()(Qe='<use xlink:href="'.concat(je,"ic-")).call(Qe,rt,'" class="')).call(Ie,ft,'"/>')}).join("")}},{key:"makeMenSvgIconSet",value:function(Z,te){var X,ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return G()(X='<svg class="svg_ic-'.concat(ne?"submenu":"menu",'">')).call(X,this._makeSvgItem(Z,te,ne),"</svg>")}}]),Me})(),vs=q0,Nd=t(9146),_r=t.n(Nd),hA=t(6623),Mf=t(4230);function io(Me,ce){return io=Mf||function(te,X){return te.__proto__=X,te},io(Me,ce)}function Za(Me,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");Me.prototype=hA(ce&&ce.prototype,{constructor:{value:Me,writable:!0,configurable:!0}}),ce&&io(Me,ce)}var Df=t(3742);function Vc(Me){"@babel/helpers - typeof";return typeof T=="function"&&typeof Df=="symbol"?Vc=function(Z){return typeof Z}:Vc=function(Z){return Z&&typeof T=="function"&&Z.constructor===T&&Z!==T.prototype?"symbol":typeof Z},Vc(Me)}function Ca(Me){if(Me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Me}function $a(Me,ce){if(ce&&(Vc(ce)==="object"||typeof ce=="function"))return ce;if(ce!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ca(Me)}var Of=t(9856);function gn(Me){return gn=Mf?Of:function(Z){return Z.__proto__||Of(Z)},gn(Me)}var AA=t(6092),ys=t.n(AA),jd=t(4858),Hd=t.n(jd),Io=["#000000","#2a2a2a","#545454","#7e7e7e","#a8a8a8","#d2d2d2","#ffffff","","#ff4040","#ff6518","#ffbb3b","#03bd9e","#00a9ff","#515ce6","#9e5fff","#ff5583"],Bo=(function(){function Me(ce,Z){var te=Z.defaultColor,X=te===void 0?"#7e7e7e":te,ne=Z.toggleDirection,xe=ne===void 0?"up":ne,Ie=Z.usageStatistics;R(this,Me),this.colorpickerElement=ce,this.usageStatistics=Ie,this._show=!1,this._colorpickerElement=ce,this._toggleDirection=xe,this._makePickerButtonElement(X),this._makePickerLayerElement(ce,ce.getAttribute("title")),this._color=X,this.picker=Hd().create({container:this.pickerElement,preset:Io,color:X,usageStatistics:this.usageStatistics}),this._addEvent()}return V(Me,[{key:"destroy",value:function(){var Z=this;this._removeEvent(),this.picker.destroy(),this.colorpickerElement.innerHTML="",Te()(this,function(te,X){Z[X]=null})}},{key:"color",get:function(){return this._color},set:function(Z){this._color=Z,this._changeColorElement(Z)}},{key:"_changeColorElement",value:function(Z){Z?(this.colorElement.classList.remove("transparent"),this.colorElement.style.backgroundColor=Z):(this.colorElement.style.backgroundColor="#fff",this.colorElement.classList.add("transparent"))}},{key:"_makePickerButtonElement",value:function(Z){this.colorpickerElement.classList.add("tui-image-editor-button"),this.colorElement=document.createElement("div"),this.colorElement.className="color-picker-value",Z?this.colorElement.style.backgroundColor=Z:this.colorElement.classList.add("transparent")}},{key:"_makePickerLayerElement",value:function(Z,te){var X=document.createElement("label"),ne=document.createElement("div");this.pickerControl=document.createElement("div"),this.pickerControl.className="color-picker-control",this.pickerElement=document.createElement("div"),this.pickerElement.className="color-picker",X.innerHTML=te,ne.className="triangle",this.pickerControl.appendChild(this.pickerElement),this.pickerControl.appendChild(ne),Z.appendChild(this.pickerControl),Z.appendChild(this.colorElement),Z.appendChild(X)}},{key:"_addEvent",value:function(){var Z=this,te;this.picker.on("selectColor",function(X){Z._changeColorElement(X.color),Z._color=X.color,Z.fire("change",X.color)}),this.eventHandler={pickerToggle:Q()(te=this._pickerToggleEventHandler).call(te,this),pickerHide:function(){return Z.hide()}},this.colorpickerElement.addEventListener("click",this.eventHandler.pickerToggle),document.body.addEventListener("click",this.eventHandler.pickerHide)}},{key:"_removeEvent",value:function(){this.colorpickerElement.removeEventListener("click",this.eventHandler.pickerToggle),document.body.removeEventListener("click",this.eventHandler.pickerHide),this.picker.off()}},{key:"_pickerToggleEventHandler",value:function(Z){var te=Z.target,X=te&&this._isElementInColorPickerControl(te);(!X||X&&this._isPaletteButton(te))&&(this._show=!this._show,this.pickerControl.style.display=this._show?"block":"none",this._setPickerControlPosition(),this.fire("changeShow",this)),Z.stopPropagation()}},{key:"_isPaletteButton",value:function(Z){return Z.className==="tui-colorpicker-palette-button"}},{key:"_isElementInColorPickerControl",value:function(Z){for(var te=Z;te!==document.body&&te;){if(te===this.pickerControl)return!0;te=te.parentNode}return!1}},{key:"hide",value:function(){this._show=!1,this.pickerControl.style.display="none"}},{key:"_setPickerControlPosition",value:function(){var Z=this.pickerControl.style,te=this._colorpickerElement.clientWidth/2+2,X=this.pickerControl.offsetWidth/2-te,ne=(this.pickerControl.offsetHeight+10)*-1;this._toggleDirection==="down"&&(ne=30),Z.top="".concat(ne,"px"),Z.left="-".concat(X,"px")}}]),Me})();ye().mixin(Bo);var Il=Bo,_a=/(-?)([0-9]*)[^0-9]*([0-9]*)/g,so=(function(){function Me(ce){var Z,te,X,ne,xe,Ie,Qe,je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R(this,Me),this._value=je.value||0,this.rangeElement=ce.slider,this.rangeInputElement=ce.input,this._drawRangeElement(),this.rangeWidth=this._getRangeWidth(),this._min=je.min||0,this._max=je.max||100,this._useDecimal=je.useDecimal,this._absMax=this._min*-1+this._max,this.realTimeEvent=je.realTimeEvent||!1,this._userInputTimer=null,this.eventHandler={startChangingSlide:Q()(Z=this._startChangingSlide).call(Z,this),stopChangingSlide:Q()(te=this._stopChangingSlide).call(te,this),changeSlide:Q()(X=this._changeSlide).call(X,this),changeSlideFinally:Q()(ne=this._changeSlideFinally).call(ne,this),changeInput:Q()(xe=this._changeInput).call(xe,this),changeInputFinally:Q()(Ie=this._changeValueWithInput).call(Ie,this,!0),changeInputWithArrow:Q()(Qe=this._changeValueWithInputKeyEvent).call(Qe,this)},this._addClickEvent(),this._addDragEvent(),this._addInputEvent(),this.value=je.value,this.trigger("change")}return V(Me,[{key:"destroy",value:function(){var Z=this;this._removeClickEvent(),this._removeDragEvent(),this._removeInputEvent(),this.rangeElement.innerHTML="",Te()(this,function(te,X){Z[X]=null})}},{key:"max",get:function(){return this._max},set:function(Z){this._max=Z,this._absMax=this._min*-1+this._max,this.value=this._value}},{key:"min",get:function(){return this._min},set:function(Z){this._min=Z,this.max=this._max}},{key:"value",get:function(){return this._value},set:function(Z){Z=this._useDecimal?Z:Zr(Z);var te=Z-this._min,X=te*this.rangeWidth/this._absMax;this.rangeWidth<X&&(X=this.rangeWidth),this.pointer.style.left="".concat(X,"px"),this.subbar.style.right="".concat(this.rangeWidth-X,"px"),this._value=Z,this.rangeInputElement&&(this.rangeInputElement.value=Z)}},{key:"trigger",value:function(Z){this.fire(Z,this._value)}},{key:"_getRangeWidth",value:function(){var Z=function(X){return Zr(window.getComputedStyle(X,null).width)};return Z(this.rangeElement)-Z(this.pointer)}},{key:"_drawRangeElement",value:function(){this.rangeElement.classList.add("tui-image-editor-range"),this.bar=document.createElement("div"),this.bar.className="tui-image-editor-virtual-range-bar",this.subbar=document.createElement("div"),this.subbar.className="tui-image-editor-virtual-range-subbar",this.pointer=document.createElement("div"),this.pointer.className="tui-image-editor-virtual-range-pointer",this.bar.appendChild(this.subbar),this.bar.appendChild(this.pointer),this.rangeElement.appendChild(this.bar)}},{key:"_addInputEvent",value:function(){this.rangeInputElement&&(this.rangeInputElement.addEventListener("keydown",this.eventHandler.changeInputWithArrow),this.rangeInputElement.addEventListener("keydown",this.eventHandler.changeInput),this.rangeInputElement.addEventListener("blur",this.eventHandler.changeInputFinally))}},{key:"_removeInputEvent",value:function(){this.rangeInputElement&&(this.rangeInputElement.removeEventListener("keydown",this.eventHandler.changeInputWithArrow),this.rangeInputElement.removeEventListener("keydown",this.eventHandler.changeInput),this.rangeInputElement.removeEventListener("blur",this.eventHandler.changeInputFinally))}},{key:"_changeValueWithInputKeyEvent",value:function(Z){var te,X=Z.keyCode,ne=Z.target;if(!(l()(te=[Ze.ARROW_UP,Ze.ARROW_DOWN]).call(te,X)<0)){var xe=Number(ne.value);xe=this._valueUpDownForKeyEvent(xe,X);var Ie=xe<this._min||xe>this._max;if(!Ie){var Qe=It(xe,this._min,this.max);this.value=Qe,this.fire("change",Qe,!1)}}}},{key:"_valueUpDownForKeyEvent",value:function(Z,te){var X=this._useDecimal?.1:1;return te===Ze.ARROW_UP?Z+=X:te===Ze.ARROW_DOWN&&(Z-=X),Z}},{key:"_changeInput",value:function(Z){var te=this;clearTimeout(this._userInputTimer);var X=Z.keyCode;if(X<Ze.DIGIT_0||X>Ze.DIGIT_9){Z.preventDefault();return}this._userInputTimer=w()(function(){te._inputSetValue(Z.target.value)},350)}},{key:"_inputSetValue",value:function(Z){var te=this._useDecimal?Number(Z):Zr(Z);te=It(te,this._min,this.max),this.value=te,this.fire("change",te,!0)}},{key:"_changeValueWithInput",value:function(Z,te){var X,ne=te.keyCode,xe=te.target;if(!(l()(X=[Ze.ARROW_UP,Ze.ARROW_DOWN]).call(X,ne)>=0)){var Ie=this._filterForInputText(xe.value),Qe=!Ie||isNaN(Ie);xe.value=Ie,Qe||this._inputSetValue(Ie)}}},{key:"_addClickEvent",value:function(){this.rangeElement.addEventListener("click",this.eventHandler.changeSlideFinally)}},{key:"_removeClickEvent",value:function(){this.rangeElement.removeEventListener("click",this.eventHandler.changeSlideFinally)}},{key:"_addDragEvent",value:function(){this.pointer.addEventListener("mousedown",this.eventHandler.startChangingSlide)}},{key:"_removeDragEvent",value:function(){this.pointer.removeEventListener("mousedown",this.eventHandler.startChangingSlide)}},{key:"_changeSlide",value:function(Z){var te=Z.screenX,X=te-this.firstPosition,ne=this.firstLeft+X;ne=ne>this.rangeWidth?this.rangeWidth:ne,ne=ne<0?0:ne,this.pointer.style.left="".concat(ne,"px"),this.subbar.style.right="".concat(this.rangeWidth-ne,"px");var xe=ne/this.rangeWidth,Ie=this._absMax*xe+this._min,Qe=this._useDecimal?Ie:Zr(Ie),je=this.value!==Qe;je&&(this.value=Qe,this.realTimeEvent&&this.fire("change",this._value,!1))}},{key:"_changeSlideFinally",value:function(Z){if(Z.stopPropagation(),Z.target.className==="tui-image-editor-range"){var te=Z.offsetX,X=te/this.rangeWidth,ne=this._absMax*X+this._min;this.pointer.style.left="".concat(X*this.rangeWidth,"px"),this.subbar.style.right="".concat((1-X)*this.rangeWidth,"px"),this.value=ne,this.fire("change",ne,!0)}}},{key:"_startChangingSlide",value:function(Z){this.firstPosition=Z.screenX,this.firstLeft=Zr(this.pointer.style.left)||0,document.addEventListener("mousemove",this.eventHandler.changeSlide),document.addEventListener("mouseup",this.eventHandler.stopChangingSlide)}},{key:"_stopChangingSlide",value:function(){this.fire("change",this._value,!0),document.removeEventListener("mousemove",this.eventHandler.changeSlide),document.removeEventListener("mouseup",this.eventHandler.stopChangingSlide)}},{key:"_filterForInputText",value:function(Z){return Z.replace(_a,"$1$2$3")}}]),Me})();ye().mixin(so);var go=so,Wc=(function(){function Me(ce,Z){var te=Z.locale,X=Z.name,ne=Z.makeSvgIcon,xe=Z.menuBarPosition,Ie=Z.templateHtml,Qe=Z.usageStatistics;R(this,Me),this.subMenuElement=ce,this.menuBarPosition=xe,this.toggleDirection=xe==="top"?"down":"up",this.colorPickerControls=[],this.usageStatistics=Qe,this.eventHandler={},this._makeSubMenuElement({locale:te,name:X,makeSvgIcon:ne,templateHtml:Ie})}return V(Me,[{key:"selector",value:function(Z){return this.subMenuElement.querySelector(Z)}},{key:"colorPickerChangeShow",value:function(Z){var te;Ut()(te=this.colorPickerControls).call(te,function(X){Z!==X&&X.hide()})}},{key:"getButtonType",value:function(Z,te){return Z.className.match(RegExp("(".concat(te.join("|"),")")))[0]}},{key:"changeClass",value:function(Z,te,X){Z.classList.remove(te),Z.classList.add(X)}},{key:"changeStandbyMode",value:function(){}},{key:"changeStartMode",value:function(){}},{key:"_makeSubMenuElement",value:function(Z){var te=Z.locale,X=Z.name,ne=Z.iconStyle,xe=Z.makeSvgIcon,Ie=Z.templateHtml,Qe=document.createElement("div");Qe.className="tui-image-editor-menu-".concat(X),Qe.innerHTML=Ie({locale:te,iconStyle:ne,makeSvgIcon:xe}),this.subMenuElement.appendChild(Qe)}},{key:"_onStartEditingInputBox",value:function(){this.fire(ar.INPUT_BOX_EDITING_STARTED)}},{key:"_onStopEditingInputBox",value:function(){this.fire(ar.INPUT_BOX_EDITING_STOPPED)}}]),Me})();ye().mixin(Wc);var Vo=Wc,lg=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe,je=Me.locale,rt=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tie-shape-button">
            <div class="tui-image-editor-button rect">
                <div>
                    `.concat(rt(["normal","active"],"shape-rectangle",!0),`
                </div>
                <label> `)).call(Qe,je.localize("Rectangle"),` </label>
            </div>
            <div class="tui-image-editor-button circle">
                <div>
                    `)).call(Ie,rt(["normal","active"],"shape-circle",!0),`
                </div>
                <label> `)).call(xe,je.localize("Circle"),` </label>
            </div>
            <div class="tui-image-editor-button triangle">
                <div>
                    `)).call(ne,rt(["normal","active"],"shape-triangle",!0),`
                </div>
                <label> `)).call(X,je.localize("Triangle"),` </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li class="tie-shape-color-button">
            <div class="tie-color-fill" title="`)).call(te,je.localize("Fill"),`"></div>
            <div class="tie-color-stroke" title="`)).call(Z,je.localize("Stroke"),`"></div>
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-newline tui-image-editor-range-wrap">
            <label class="range">`)).call(ce,je.localize("Stroke"),`</label>
            <div class="tie-stroke-range"></div>
            <input class="tie-stroke-range-value tui-image-editor-range-value" value="0" />
        </li>
    </ul>
`)});function ug(Me){var ce=cg();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function cg(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var pA={stroke:"#ffbb3b",fill:"",strokeWidth:3},es=(function(Me){Za(Z,Me);var ce=ug(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"shape",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:lg,usageStatistics:je}),ne.type=null,ne.options=pA,ne._els={shapeSelectButton:ne.selector(".tie-shape-button"),shapeColorButton:ne.selector(".tie-shape-color-button"),strokeRange:new go({slider:ne.selector(".tie-stroke-range"),input:ne.selector(".tie-stroke-range-value")},xt),fillColorpicker:new Il(ne.selector(".tie-color-fill"),{defaultColor:"",toggleDirection:ne.toggleDirection,usageStatistics:ne.usageStatistics}),strokeColorpicker:new Il(ne.selector(".tie-color-stroke"),{defaultColor:"#ffbb3b",toggleDirection:ne.toggleDirection,usageStatistics:ne.usageStatistics})},ne.colorPickerControls.push(ne._els.fillColorpicker),ne.colorPickerControls.push(ne._els.strokeColorpicker),ne.colorPickerInputBoxes=[],ne.colorPickerInputBoxes.push(ne._els.fillColorpicker.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX)),ne.colorPickerInputBoxes.push(ne._els.strokeColorpicker.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX)),ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),this._els.strokeRange.destroy(),this._els.fillColorpicker.destroy(),this._els.strokeColorpicker.destroy(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie,Qe,je,rt,ft=this;this.eventHandler.shapeTypeSelected=Q()(ne=this._changeShapeHandler).call(ne,this),this.actions=X,this._els.shapeSelectButton.addEventListener("click",this.eventHandler.shapeTypeSelected),this._els.strokeRange.on("change",Q()(xe=this._changeStrokeRangeHandler).call(xe,this)),this._els.fillColorpicker.on("change",Q()(Ie=this._changeFillColorHandler).call(Ie,this)),this._els.strokeColorpicker.on("change",Q()(Qe=this._changeStrokeColorHandler).call(Qe,this)),this._els.fillColorpicker.on("changeShow",Q()(je=this.colorPickerChangeShow).call(je,this)),this._els.strokeColorpicker.on("changeShow",Q()(rt=this.colorPickerChangeShow).call(rt,this)),ys()(this.colorPickerInputBoxes,function(Ht){var zt,qt;Ht.addEventListener(ar.FOCUS,Q()(zt=ft._onStartEditingInputBox).call(zt,ft)),Ht.addEventListener(ar.BLUR,Q()(qt=ft._onStopEditingInputBox).call(qt,ft))},this)}},{key:"_removeEvent",value:function(){var X=this;this._els.shapeSelectButton.removeEventListener("click",this.eventHandler.shapeTypeSelected),this._els.strokeRange.off(),this._els.fillColorpicker.off(),this._els.strokeColorpicker.off(),ys()(this.colorPickerInputBoxes,function(ne){var xe,Ie;ne.removeEventListener(ar.FOCUS,Q()(xe=X._onStartEditingInputBox).call(xe,X)),ne.removeEventListener(ar.BLUR,Q()(Ie=X._onStopEditingInputBox).call(Ie,X))},this)}},{key:"setShapeStatus",value:function(X){var ne=X.strokeWidth,xe=X.strokeColor,Ie=X.fillColor;this._els.strokeRange.value=ne,this._els.strokeColorpicker.color=xe,this._els.fillColorpicker.color=Ie,this.options.stroke=xe,this.options.fill=Ie,this.options.strokeWidth=ne,this.actions.setDrawingShape(this.type,{strokeWidth:ne})}},{key:"changeStartMode",value:function(){this.actions.stopDrawingMode()}},{key:"changeStandbyMode",value:function(){this.type=null,this.actions.changeSelectableAll(!0),this._els.shapeSelectButton.classList.remove("circle"),this._els.shapeSelectButton.classList.remove("triangle"),this._els.shapeSelectButton.classList.remove("rect")}},{key:"setMaxStrokeValue",value:function(X){var ne=X;ne<=0&&(ne=xt.max),this._els.strokeRange.max=ne}},{key:"setStrokeValue",value:function(X){this._els.strokeRange.value=X,this._els.strokeRange.trigger("change")}},{key:"getStrokeValue",value:function(){return this._els.strokeRange.value}},{key:"_changeShapeHandler",value:function(X){var ne=X.target.closest(".tui-image-editor-button");if(ne){this.actions.stopDrawingMode(),this.actions.discardSelection();var xe=this.getButtonType(ne,["circle","triangle","rect"]);if(this.type===xe){this.changeStandbyMode();return}this.changeStandbyMode(),this.type=xe,X.currentTarget.classList.add(xe),this.actions.changeSelectableAll(!1),this.actions.modeChange("shape")}}},{key:"_changeStrokeRangeHandler",value:function(X,ne){this.options.strokeWidth=Zr(X),this.actions.changeShape({strokeWidth:X},!ne),this.actions.setDrawingShape(this.type,this.options)}},{key:"_changeFillColorHandler",value:function(X){X=X||"transparent",this.options.fill=X,this.actions.changeShape({fill:X})}},{key:"_changeStrokeColorHandler",value:function(X){X=X||"transparent",this.options.stroke=X,this.actions.changeShape({stroke:X})}}]),Z})(Vo),Yi=es,Cr=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr,Mr,Dn=Me.locale,Nn=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=G()(je=G()(rt=G()(ft=G()(Ht=G()(zt=G()(qt=G()(Xt=G()(nr=G()(Mr=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tie-crop-preset-button">
            <div class="tui-image-editor-button preset preset-none active">
                <div>
                    `.concat(Nn(["normal","active"],"shape-rectangle",!0),`
                </div>
                <label> `)).call(Mr,Dn.localize("Custom"),` </label>
            </div>
            <div class="tui-image-editor-button preset preset-square">
                <div>
                    `)).call(nr,Nn(["normal","active"],"crop",!0),`
                </div>
                <label> `)).call(Xt,Dn.localize("Square"),` </label>
            </div>
            <div class="tui-image-editor-button preset preset-3-2">
                <div>
                    `)).call(qt,Nn(["normal","active"],"crop",!0),`
                </div>
                <label> `)).call(zt,Dn.localize("3:2"),` </label>
            </div>
            <div class="tui-image-editor-button preset preset-4-3">
                <div>
                    `)).call(Ht,Nn(["normal","active"],"crop",!0),`
                </div>
                <label> `)).call(ft,Dn.localize("4:3"),` </label>
            </div>
            <div class="tui-image-editor-button preset preset-5-4">
                <div>
                    `)).call(rt,Nn(["normal","active"],"crop",!0),`
                </div>
                <label> `)).call(je,Dn.localize("5:4"),` </label>
            </div>
            <div class="tui-image-editor-button preset preset-7-5">
                <div>
                    `)).call(Qe,Nn(["normal","active"],"crop",!0),`
                </div>
                <label> `)).call(Ie,Dn.localize("7:5"),` </label>
            </div>
            <div class="tui-image-editor-button preset preset-16-9">
                <div>
                    `)).call(xe,Nn(["normal","active"],"crop",!0),`
                </div>
                <label> `)).call(ne,Dn.localize("16:9"),` </label>
            </div>
        </li>
        <li class="tui-image-editor-partition tui-image-editor-newline">
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tie-crop-button action">
            <div class="tui-image-editor-button apply">
                `)).call(X,Nn(["normal","active"],"apply"),`
                <label>
                    `)).call(te,Dn.localize("Apply"),`
                </label>
            </div>
            <div class="tui-image-editor-button cancel">
                `)).call(Z,Nn(["normal","active"],"cancel"),`
                <label>
                    `)).call(ce,Dn.localize("Cancel"),`
                </label>
            </div>
        </li>
    </ul>
`)});function Bl(Me){var ce=oo();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function oo(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Nr=(function(Me){Za(Z,Me);var ce=Bl(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"crop",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:Cr,usageStatistics:je}),ne.status="active",ne._els={apply:ne.selector(".tie-crop-button .apply"),cancel:ne.selector(".tie-crop-button .cancel"),preset:ne.selector(".tie-crop-preset-button")},ne.defaultPresetButton=ne._els.preset.querySelector(".preset-none"),ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie,Qe=Q()(ne=this._applyEventHandler).call(ne,this),je=Q()(xe=this._cancelEventHandler).call(xe,this),rt=Q()(Ie=this._cropzonePresetEventHandler).call(Ie,this);this.eventHandler={apply:Qe,cancel:je,cropzonePreset:rt},this.actions=X,this._els.apply.addEventListener("click",Qe),this._els.cancel.addEventListener("click",je),this._els.preset.addEventListener("click",rt)}},{key:"_removeEvent",value:function(){this._els.apply.removeEventListener("click",this.eventHandler.apply),this._els.cancel.removeEventListener("click",this.eventHandler.cancel),this._els.preset.removeEventListener("click",this.eventHandler.cropzonePreset)}},{key:"_applyEventHandler",value:function(){this.actions.crop(),this._els.apply.classList.remove("active")}},{key:"_cancelEventHandler",value:function(){this.actions.cancel(),this._els.apply.classList.remove("active")}},{key:"_cropzonePresetEventHandler",value:function(X){var ne=X.target.closest(".tui-image-editor-button.preset");if(ne){var xe=ne.className.match(/preset-[^\s]+/),Ie=Ke(xe,1),Qe=Ie[0];this._setPresetButtonActive(ne),this.actions.preset(Qe)}}},{key:"changeStartMode",value:function(){this.actions.modeChange("crop")}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode(),this._setPresetButtonActive()}},{key:"changeApplyButtonStatus",value:function(X){X?this._els.apply.classList.add("active"):this._els.apply.classList.remove("active")}},{key:"_setPresetButtonActive",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.defaultPresetButton;Te()(this._els.preset.querySelectorAll(".preset"),function(ne){ne.classList.remove("active")}),X&&X.classList.add("active")}}]),Z})(Vo),ic=Nr,mA=(function(Me){var ce,Z,te,X,ne,xe,Ie=Me.locale,Qe=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tui-image-editor-submenu-align">
            <div class="tui-image-editor-range-wrap tui-image-editor-newline">
                <label class="range">`.concat(Ie.localize("Width"),`&nbsp;</label>
                <div class="tie-width-range"></div>
                <input class="tie-width-range-value tui-image-editor-range-value" value="0" /> <label>px</label>
                <div class="tui-image-editor-partition tui-image-editor-newline"></div>
                <label class="range">`)).call(xe,Ie.localize("Height"),`</label>
                <div class="tie-height-range"></div>
                <input class="tie-height-range-value tui-image-editor-range-value" value="0" /> <label>px</label>
            </div>
        </li>
        <li class="tui-image-editor-partition tui-image-editor-newline"></li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-submenu-align">
            <div class="tui-image-editor-checkbox-wrap">
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-lock-aspect-ratio">
                        <span>`)).call(ne,Ie.localize("Lock Aspect Ratio"),`</span>
                    </label>
                </div>
            </div>
        </li>
        <li class="tui-image-editor-partition tui-image-editor-newline"></li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-partition tui-image-editor-newline"></li>
        <li class="tie-resize-button action">
            <div class="tui-image-editor-button apply">
                `)).call(X,Qe(["normal","active"],"apply"),`
                <label>
                    `)).call(te,Ie.localize("Apply"),`
                </label>
            </div>
            <div class="tui-image-editor-button cancel">
                `)).call(Z,Qe(["normal","active"],"cancel"),`
                <label>
                    `)).call(ce,Ie.localize("Cancel"),`
                </label>
            </div>
        </li>
    </ul>
`)});function Lf(Me){var ce=Pf();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function Pf(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Rf=(function(Me){Za(Z,Me);var ce=Lf(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"resize",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:mA,usageStatistics:je}),ne.status="active",ne._lockState=!1,ne._originalDimensions=null,ne._els={widthRange:new go({slider:ne.selector(".tie-width-range"),input:ne.selector(".tie-width-range-value")},or),heightRange:new go({slider:ne.selector(".tie-height-range"),input:ne.selector(".tie-height-range-value")},or),lockAspectRatio:ne.selector(".tie-lock-aspect-ratio"),apply:ne.selector(".tie-resize-button .apply"),cancel:ne.selector(".tie-resize-button .cancel")},ne}return V(Z,[{key:"changeStartMode",value:function(){this.actions.modeChange("resize");var X=this.actions.getCurrentDimensions();this._originalDimensions=X,this.setWidthValue(X.width),this.setHeightValue(X.height)}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode(),this.actions.reset(!0)}},{key:"setLimit",value:function(X){this._els.widthRange.min=this.calcMinValue(X.minWidth),this._els.heightRange.min=this.calcMinValue(X.minHeight),this._els.widthRange.max=this.calcMaxValue(X.maxWidth),this._els.heightRange.max=this.calcMaxValue(X.maxHeight)}},{key:"calcMaxValue",value:function(X){return X<=0&&(X=or.max),X}},{key:"calcMinValue",value:function(X){return X<=0&&(X=or.min),X}},{key:"setWidthValue",value:function(X){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._els.widthRange.value=X,ne&&this._els.widthRange.trigger("change")}},{key:"setHeightValue",value:function(X){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._els.heightRange.value=X,ne&&this._els.heightRange.trigger("change")}},{key:"destroy",value:function(){this._removeEvent(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie,Qe,je;this._els.widthRange.on("change",Q()(ne=this._changeWidthRangeHandler).call(ne,this)),this._els.heightRange.on("change",Q()(xe=this._changeHeightRangeHandler).call(xe,this)),this._els.lockAspectRatio.addEventListener("change",Q()(Ie=this._changeLockAspectRatio).call(Ie,this));var rt=Q()(Qe=this._applyEventHandler).call(Qe,this),ft=Q()(je=this._cancelEventHandler).call(je,this);this.eventHandler={apply:rt,cancel:ft},this.actions=X,this._els.apply.addEventListener("click",rt),this._els.cancel.addEventListener("click",ft)}},{key:"_changeWidthRangeHandler",value:function(X){this.actions.preview("width",Zr(X),this._lockState)}},{key:"_changeHeightRangeHandler",value:function(X){this.actions.preview("height",Zr(X),this._lockState)}},{key:"_changeLockAspectRatio",value:function(X){this._lockState=X.target.checked,this.actions.lockAspectRatio(this._lockState,or.min,or.max)}},{key:"_removeEvent",value:function(){this._els.apply.removeEventListener("click",this.eventHandler.apply),this._els.cancel.removeEventListener("click",this.eventHandler.cancel)}},{key:"_applyEventHandler",value:function(){this.actions.resize(),this._els.apply.classList.remove("active")}},{key:"_cancelEventHandler",value:function(){this.actions.reset(),this._els.cancel.classList.remove("active")}},{key:"changeApplyButtonStatus",value:function(X){X?this._els.apply.classList.add("active"):this._els.apply.classList.remove("active")}}]),Z})(Vo),ji=Rf,Qd=(function(Me){var ce,Z,te,X,ne,xe=Me.locale,Ie=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=`
    <ul class="tie-flip-button tui-image-editor-submenu-item">
        <li>
            <div class="tui-image-editor-button flipX">
                <div>
                    `.concat(Ie(["normal","active"],"flip-x",!0),`
                </div>
                <label>
                    `)).call(ne,xe.localize("Flip X"),`
                </label>
            </div>
            <div class="tui-image-editor-button flipY">
                <div>
                    `)).call(X,Ie(["normal","active"],"flip-y",!0),`
                </div>
                <label>
                    `)).call(te,xe.localize("Flip Y"),`
                </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li>
            <div class="tui-image-editor-button resetFlip">
                <div>
                    `)).call(Z,Ie(["normal","active"],"flip-reset",!0),`
                </div>
                <label>
                    `)).call(ce,xe.localize("Reset"),`
                </label>
            </div>
        </li>
    </ul>
`)});function Oa(Me){var ce=ki();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function ki(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var ea=(function(Me){Za(Z,Me);var ce=Oa(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"flip",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:Qd,usageStatistics:je}),ne.flipStatus=!1,ne._els={flipButton:ne.selector(".tie-flip-button")},ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),gi(this)}},{key:"addEvent",value:function(X){var ne;this.eventHandler.changeFlip=Q()(ne=this._changeFlip).call(ne,this),this._actions=X,this._els.flipButton.addEventListener("click",this.eventHandler.changeFlip)}},{key:"_removeEvent",value:function(){this._els.flipButton.removeEventListener("click",this.eventHandler.changeFlip)}},{key:"_changeFlip",value:function(X){var ne=this,xe=X.target.closest(".tui-image-editor-button");if(xe){var Ie=this.getButtonType(xe,["flipX","flipY","resetFlip"]);if(!this.flipStatus&&Ie==="resetFlip")return;this._actions.flip(Ie).then(function(Qe){var je=ne._els.flipButton.classList;ne.flipStatus=!1,je.remove("resetFlip"),Te()(["flipX","flipY"],function(rt){je.remove(rt),Qe[rt]&&(je.add(rt),je.add("resetFlip"),ne.flipStatus=!0)})})}}}]),Z})(Vo),Ws=ea,ga=(function(Me){var ce,Z,te=Me.locale,X=Me.makeSvgIcon;return G()(ce=G()(Z=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tie-rotate-button">
            <div class="tui-image-editor-button clockwise">
                <div>
                    `.concat(X(["normal","active"],"rotate-clockwise",!0),`
                </div>
                <label> 30 </label>
            </div>
            <div class="tui-image-editor-button counterclockwise">
                <div>
                    `)).call(Z,X(["normal","active"],"rotate-counterclockwise",!0),`
                </div>
                <label> -30 </label>
            </div>
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-newline tui-image-editor-range-wrap">
            <label class="range">`)).call(ce,te.localize("Range"),`</label>
            <div class="tie-rotate-range"></div>
            <input class="tie-rotate-range-value tui-image-editor-range-value" value="0" />
        </li>
    </ul>
`)});function Ua(Me){var ce=fg();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function fg(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Fl=30,yu=-30,ep=(function(Me){Za(Z,Me);var ce=Ua(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"rotate",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:ga,usageStatistics:je}),ne._value=0,ne._els={rotateButton:ne.selector(".tie-rotate-button"),rotateRange:new go({slider:ne.selector(".tie-rotate-range"),input:ne.selector(".tie-rotate-range-value")},tt)},ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),this._els.rotateRange.destroy(),gi(this)}},{key:"setRangeBarAngle",value:function(X,ne){var xe=ne;X==="rotate"&&(xe=nt()(this._els.rotateRange.value,10)+ne),this._setRangeBarRatio(xe)}},{key:"_setRangeBarRatio",value:function(X){this._els.rotateRange.value=X}},{key:"addEvent",value:function(X){var ne,xe;this.eventHandler.rotationAngleChanged=Q()(ne=this._changeRotateForButton).call(ne,this),this.actions=X,this._els.rotateButton.addEventListener("click",this.eventHandler.rotationAngleChanged),this._els.rotateRange.on("change",Q()(xe=this._changeRotateForRange).call(xe,this))}},{key:"_removeEvent",value:function(){this._els.rotateButton.removeEventListener("click",this.eventHandler.rotationAngleChanged),this._els.rotateRange.off()}},{key:"_changeRotateForRange",value:function(X,ne){var xe=Zr(X);this.actions.setAngle(xe,!ne),this._value=xe}},{key:"_changeRotateForButton",value:function(X){var ne=X.target.closest(".tui-image-editor-button"),xe=this._els.rotateRange.value;if(ne){var Ie=this.getButtonType(ne,["counterclockwise","clockwise"]),Qe={clockwise:Fl,counterclockwise:yu}[Ie],je=nt()(xe,10)+Qe,rt=je>=-360&&je<=360;rt&&this.actions.rotate(Qe)}}}]),Z})(Vo),cl=ep,fl=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt=Me.locale,Xt=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=G()(je=G()(rt=G()(ft=G()(Ht=G()(zt=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tie-text-effect-button">
            <div class="tui-image-editor-button bold">
                <div>
                    `.concat(Xt(["normal","active"],"text-bold",!0),`
                </div>
                <label> `)).call(zt,qt.localize("Bold"),` </label>
            </div>
            <div class="tui-image-editor-button italic">
                <div>
                    `)).call(Ht,Xt(["normal","active"],"text-italic",!0),`
                </div>
                <label> `)).call(ft,qt.localize("Italic"),` </label>
            </div>
            <div class="tui-image-editor-button underline">
                <div>
                    `)).call(rt,Xt(["normal","active"],"text-underline",!0),`
                </div>
                <label> `)).call(je,qt.localize("Underline"),` </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li class="tie-text-align-button">
            <div class="tui-image-editor-button left">
                <div>
                    `)).call(Qe,Xt(["normal","active"],"text-align-left",!0),`
                </div>
                <label> `)).call(Ie,qt.localize("Left"),` </label>
            </div>
            <div class="tui-image-editor-button center">
                <div>
                    `)).call(xe,Xt(["normal","active"],"text-align-center",!0),`
                </div>
                <label> `)).call(ne,qt.localize("Center"),` </label>
            </div>
            <div class="tui-image-editor-button right">
                <div>
                    `)).call(X,Xt(["normal","active"],"text-align-right",!0),`
                </div>
                <label> `)).call(te,qt.localize("Right"),` </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li>
            <div class="tie-text-color" title="`)).call(Z,qt.localize("Color"),`"></div>
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-newline tui-image-editor-range-wrap">
            <label class="range">`)).call(ce,qt.localize("Text size"),`</label>
            <div class="tie-text-range"></div>
            <input class="tie-text-range-value tui-image-editor-range-value" value="0" />
        </li>
    </ul>
`)});function Gs(Me){var ce=ts();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function ts(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var zd=(function(Me){Za(Z,Me);var ce=Gs(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"text",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:fl,usageStatistics:je}),ne.effect={bold:!1,italic:!1,underline:!1},ne.align="tie-text-align-left",ne._els={textEffectButton:ne.selector(".tie-text-effect-button"),textAlignButton:ne.selector(".tie-text-align-button"),textColorpicker:new Il(ne.selector(".tie-text-color"),{defaultColor:"#ffbb3b",toggleDirection:ne.toggleDirection,usageStatistics:ne.usageStatistics}),textRange:new go({slider:ne.selector(".tie-text-range"),input:ne.selector(".tie-text-range-value")},kt)},ne.colorPickerInputBox=ne._els.textColorpicker.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX),ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),this._els.textColorpicker.destroy(),this._els.textRange.destroy(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie,Qe,je,rt,ft=Q()(ne=this._setTextEffectHandler).call(ne,this),Ht=Q()(xe=this._setTextAlignHandler).call(xe,this);this.eventHandler={setTextEffect:ft,setTextAlign:Ht},this.actions=X,this._els.textEffectButton.addEventListener("click",ft),this._els.textAlignButton.addEventListener("click",Ht),this._els.textRange.on("change",Q()(Ie=this._changeTextRnageHandler).call(Ie,this)),this._els.textColorpicker.on("change",Q()(Qe=this._changeColorHandler).call(Qe,this)),this.colorPickerInputBox.addEventListener(ar.FOCUS,Q()(je=this._onStartEditingInputBox).call(je,this)),this.colorPickerInputBox.addEventListener(ar.BLUR,Q()(rt=this._onStopEditingInputBox).call(rt,this))}},{key:"_removeEvent",value:function(){var X,ne,xe=this.eventHandler,Ie=xe.setTextEffect,Qe=xe.setTextAlign;this._els.textEffectButton.removeEventListener("click",Ie),this._els.textAlignButton.removeEventListener("click",Qe),this._els.textRange.off(),this._els.textColorpicker.off(),this.colorPickerInputBox.removeEventListener(ar.FOCUS,Q()(X=this._onStartEditingInputBox).call(X,this)),this.colorPickerInputBox.removeEventListener(ar.BLUR,Q()(ne=this._onStopEditingInputBox).call(ne,this))}},{key:"changeStandbyMode",value:function(){this.actions.stopDrawingMode()}},{key:"changeStartMode",value:function(){this.actions.modeChange("text")}},{key:"textColor",get:function(){return this._els.textColorpicker.color},set:function(X){this._els.textColorpicker.color=X}},{key:"fontSize",get:function(){return this._els.textRange.value},set:function(X){this._els.textRange.value=X}},{key:"fontStyle",get:function(){return this.effect.italic?"italic":"normal"}},{key:"fontWeight",get:function(){return this.effect.bold?"bold":"normal"}},{key:"underline",get:function(){return this.effect.underline}},{key:"setTextStyleStateOnAction",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=wt()(X),xe=X.fontSize,Ie=X.fontStyle,Qe=X.fontWeight,je=X.textDecoration,rt=X.textAlign;this.textColor=ne,this.fontSize=xe,this.setEffectState("italic",Ie),this.setEffectState("bold",Qe),this.setEffectState("underline",je),this.setAlignState("tie-text-align-".concat(rt))}},{key:"setEffectState",value:function(X,ne){var xe=ne==="italic"||ne==="bold"||ne==="underline",Ie=this._els.textEffectButton.querySelector(".tui-image-editor-button.".concat(X));this.effect[X]=xe,Ie.classList[xe?"add":"remove"]("active")}},{key:"setAlignState",value:function(X){var ne=this._els.textAlignButton;ne.classList.remove(this.align),ne.classList.add(X),this.align=X}},{key:"_setTextEffectHandler",value:function(X){var ne=X.target.closest(".tui-image-editor-button");if(ne){var xe=ne.className.match(/(bold|italic|underline)/),Ie=Ke(xe,1),Qe=Ie[0],je={bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},underline:{textDecoration:"underline"}}[Qe];this.effect[Qe]=!this.effect[Qe],ne.classList.toggle("active"),this.actions.changeTextStyle(je)}}},{key:"_setTextAlignHandler",value:function(X){var ne=X.target.closest(".tui-image-editor-button");if(ne){var xe=this.getButtonType(ne,["left","center","right"]),Ie="tie-text-align-".concat(xe);X.currentTarget.classList.remove(this.align),this.align!==Ie&&X.currentTarget.classList.add(Ie),this.actions.changeTextStyle({textAlign:xe}),this.align=Ie}}},{key:"_changeTextRnageHandler",value:function(X,ne){this.actions.changeTextStyle({fontSize:X},!ne)}},{key:"_changeColorHandler",value:function(X){X=X||"transparent",this.actions.changeTextStyle({fill:X})}}]),Z})(Vo),bu=zd,Vd=(function(Me){var ce,Z,te,X=Me.locale,ne=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=`
    <ul class="tui-image-editor-submenu-item">
        <li>
            <div class="tui-image-editor-button">
                <div>
                    <input type="file" accept="image/*" class="tie-mask-image-file">
                    `.concat(ne(["normal","active"],"mask-load",!0),`
                </div>
                <label> `)).call(te,X.localize("Load Mask Image"),` </label>
            </div>
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tie-mask-apply tui-image-editor-newline apply" style="margin-top: 22px;margin-bottom: 5px">
            <div class="tui-image-editor-button apply">
                `)).call(Z,ne(["normal","active"],"apply"),`
                <label>
                    `)).call(ce,X.localize("Apply"),`
                </label>
            </div>
        </li>
    </ul>
`)});function Wo(Me){var ce=sc();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function sc(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var oc=(function(Me){Za(Z,Me);var ce=Wo(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"mask",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:Vd,usageStatistics:je}),ne._els={applyButton:ne.selector(".tie-mask-apply"),maskImageButton:ne.selector(".tie-mask-image-file")},ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie=Q()(ne=this._loadMaskFile).call(ne,this),Qe=Q()(xe=this._applyMask).call(xe,this);this.eventHandler={loadMaskFile:Ie,applyMask:Qe},this.actions=X,this._els.maskImageButton.addEventListener("change",Ie),this._els.applyButton.addEventListener("click",Qe)}},{key:"_removeEvent",value:function(){this._els.maskImageButton.removeEventListener("change",this.eventHandler.loadMaskFile),this._els.applyButton.removeEventListener("click",this.eventHandler.applyMask)}},{key:"_applyMask",value:function(){this.actions.applyFilter(),this._els.applyButton.classList.remove("active")}},{key:"_loadMaskFile",value:function(X){var ne;$r()||alert("This browser does not support file-api");var xe=Ke(X.target.files,1),Ie=xe[0];Ie&&(ne=Y().createObjectURL(Ie),this.actions.loadImageFromURL(ne,Ie),this._els.applyButton.classList.add("active"))}}]),Z})(Vo),Go=oc,dl=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr,Mr,Dn,Nn,qn,nn=Me.locale,Ja=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=G()(je=G()(rt=G()(ft=G()(Ht=G()(zt=G()(qt=G()(Xt=G()(nr=G()(Mr=G()(Dn=G()(Nn=G()(qn=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tie-icon-add-button">
            <div class="tui-image-editor-button" data-icontype="icon-arrow">
                <div>
                    `.concat(Ja(["normal","active"],"icon-arrow",!0),`
                </div>
                <label>
                    `)).call(qn,nn.localize("Arrow"),`
                </label>
            </div>
            <div class="tui-image-editor-button" data-icontype="icon-arrow-2">
                <div>
                    `)).call(Nn,Ja(["normal","active"],"icon-arrow-2",!0),`
                </div>
                <label>
                    `)).call(Dn,nn.localize("Arrow-2"),`
                </label>
            </div>
            <div class="tui-image-editor-button" data-icontype="icon-arrow-3">
                <div>
                    `)).call(Mr,Ja(["normal","active"],"icon-arrow-3",!0),`
                </div>
                <label>
                    `)).call(nr,nn.localize("Arrow-3"),`
                </label>
            </div>
            <div class="tui-image-editor-button" data-icontype="icon-star">
                <div>
                    `)).call(Xt,Ja(["normal","active"],"icon-star",!0),`
                </div>
                <label>
                    `)).call(qt,nn.localize("Star-1"),`
                </label>
            </div>
            <div class="tui-image-editor-button" data-icontype="icon-star-2">
                <div>
                    `)).call(zt,Ja(["normal","active"],"icon-star-2",!0),`
                </div>
                <label>
                    `)).call(Ht,nn.localize("Star-2"),`
                </label>
            </div>

            <div class="tui-image-editor-button" data-icontype="icon-polygon">
                <div>
                    `)).call(ft,Ja(["normal","active"],"icon-polygon",!0),`
                </div>
                <label>
                    `)).call(rt,nn.localize("Polygon"),`
                </label>
            </div>

            <div class="tui-image-editor-button" data-icontype="icon-location">
                <div>
                    `)).call(je,Ja(["normal","active"],"icon-location",!0),`
                </div>
                <label>
                    `)).call(Qe,nn.localize("Location"),`
                </label>
            </div>

            <div class="tui-image-editor-button" data-icontype="icon-heart">
                <div>
                    `)).call(Ie,Ja(["normal","active"],"icon-heart",!0),`
                </div>
                <label>
                    `)).call(xe,nn.localize("Heart"),`
                </label>
            </div>

            <div class="tui-image-editor-button" data-icontype="icon-bubble">
                <div>
                    `)).call(ne,Ja(["normal","active"],"icon-bubble",!0),`
                </div>
                <label>
                    `)).call(X,nn.localize("Bubble"),`
                </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li class="tie-icon-add-button">
            <div class="tui-image-editor-button" style="margin:0">
                <div>
                    <input type="file" accept="image/*" class="tie-icon-image-file">
                    `)).call(te,Ja(["normal","active"],"icon-load",!0),`
                </div>
                <label>
                    `)).call(Z,nn.localize("Custom icon"),`
                </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li>
            <div class="tie-icon-color" title="`)).call(ce,nn.localize("Color"),`"></div>
        </li>
    </ul>
`)});function gA(Me){var ce=vA();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function vA(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Wd=(function(Me){Za(Z,Me);var ce=gA(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"icon",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:dl,usageStatistics:je}),ne.iconType=null,ne._iconMap={},ne._els={registerIconButton:ne.selector(".tie-icon-image-file"),addIconButton:ne.selector(".tie-icon-add-button"),iconColorpicker:new Il(ne.selector(".tie-icon-color"),{defaultColor:"#ffbb3b",toggleDirection:ne.toggleDirection,usageStatistics:ne.usageStatistics})},ne.colorPickerInputBox=ne._els.iconColorpicker.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX),ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),this._els.iconColorpicker.destroy(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie,Qe,je,rt=Q()(ne=this._registerIconHandler).call(ne,this),ft=Q()(xe=this._addIconHandler).call(xe,this);this.eventHandler={registerIcon:rt,addIcon:ft},this.actions=X,this._els.iconColorpicker.on("change",Q()(Ie=this._changeColorHandler).call(Ie,this)),this._els.registerIconButton.addEventListener("change",rt),this._els.addIconButton.addEventListener("click",ft),this.colorPickerInputBox.addEventListener(ar.FOCUS,Q()(Qe=this._onStartEditingInputBox).call(Qe,this)),this.colorPickerInputBox.addEventListener(ar.BLUR,Q()(je=this._onStopEditingInputBox).call(je,this))}},{key:"_removeEvent",value:function(){var X,ne;this._els.iconColorpicker.off(),this._els.registerIconButton.removeEventListener("change",this.eventHandler.registerIcon),this._els.addIconButton.removeEventListener("click",this.eventHandler.addIcon),this.colorPickerInputBox.removeEventListener(ar.FOCUS,Q()(X=this._onStartEditingInputBox).call(X,this)),this.colorPickerInputBox.removeEventListener(ar.BLUR,Q()(ne=this._onStopEditingInputBox).call(ne,this))}},{key:"clearIconType",value:function(){this._els.addIconButton.classList.remove(this.iconType),this.iconType=null}},{key:"registerDefaultIcon",value:function(){var X=this;Te()($e,function(ne,xe){X.actions.registerDefaultIcons(xe,ne)})}},{key:"setIconPickerColor",value:function(X){this._els.iconColorpicker.color=X}},{key:"changeStandbyMode",value:function(){this.clearIconType(),this.actions.cancelAddIcon()}},{key:"_changeColorHandler",value:function(X){X=X||"transparent",this.actions.changeColor(X)}},{key:"_addIconHandler",value:function(X){var ne=X.target.closest(".tui-image-editor-button");if(ne){var xe=ne.getAttribute("data-icontype"),Ie=this._els.iconColorpicker.color;this.actions.discardSelection(),this.actions.changeSelectableAll(!1),this._els.addIconButton.classList.remove(this.iconType),this._els.addIconButton.classList.add(xe),this.iconType===xe?this.changeStandbyMode():(this.actions.addIcon(xe,Ie),this.iconType=xe)}}},{key:"_registerIconHandler",value:function(X){var ne;$r||alert("This browser does not support file-api");var xe=Ke(X.target.files,1),Ie=xe[0];Ie&&(ne=Y().createObjectURL(Ie),this.actions.registerCustomIcon(ne,Ie))}}]),Z})(Vo),dg=Wd,yA=(function(Me){var ce,Z,te,X,ne,xe=Me.locale,Ie=Me.makeSvgIcon;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tie-draw-line-select-button">
            <div class="tui-image-editor-button free">
                <div>
                    `.concat(Ie(["normal","active"],"draw-free",!0),`
                </div>
                <label>
                    `)).call(ne,xe.localize("Free"),`
                </label>
            </div>
            <div class="tui-image-editor-button line">
                <div>
                    `)).call(X,Ie(["normal","active"],"draw-line",!0),`
                </div>
                <label>
                    `)).call(te,xe.localize("Straight"),`
                </label>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li>
            <div class="tie-draw-color" title="`)).call(Z,xe.localize("Color"),`"></div>
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-newline tui-image-editor-range-wrap">
            <label class="range">`)).call(ce,xe.localize("Range"),`</label>
            <div class="tie-draw-range"></div>
            <input class="tie-draw-range-value tui-image-editor-range-value" value="0" />
        </li>
    </ul>
`)});function bA(Me){var ce=wu();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function wu(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var er=.7,Tr=(function(Me){Za(Z,Me);var ce=bA(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon,Qe=X.menuBarPosition,je=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"draw",makeSvgIcon:Ie,menuBarPosition:Qe,templateHtml:yA,usageStatistics:je}),ne._els={lineSelectButton:ne.selector(".tie-draw-line-select-button"),drawColorPicker:new Il(ne.selector(".tie-draw-color"),{defaultColor:"#00a9ff",toggleDirection:ne.toggleDirection,usageStatistics:ne.usageStatistics}),drawRange:new go({slider:ne.selector(".tie-draw-range"),input:ne.selector(".tie-draw-range-value")},bt)},ne.type=null,ne.color=ne._els.drawColorPicker.color,ne.width=ne._els.drawRange.value,ne.colorPickerInputBox=ne._els.drawColorPicker.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX),ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),this._els.drawColorPicker.destroy(),this._els.drawRange.destroy(),gi(this)}},{key:"addEvent",value:function(X){var ne,xe,Ie,Qe,je;this.eventHandler.changeDrawType=Q()(ne=this._changeDrawType).call(ne,this),this.actions=X,this._els.lineSelectButton.addEventListener("click",this.eventHandler.changeDrawType),this._els.drawColorPicker.on("change",Q()(xe=this._changeDrawColor).call(xe,this)),this._els.drawRange.on("change",Q()(Ie=this._changeDrawRange).call(Ie,this)),this.colorPickerInputBox.addEventListener(ar.FOCUS,Q()(Qe=this._onStartEditingInputBox).call(Qe,this)),this.colorPickerInputBox.addEventListener(ar.BLUR,Q()(je=this._onStopEditingInputBox).call(je,this))}},{key:"_removeEvent",value:function(){var X,ne;this._els.lineSelectButton.removeEventListener("click",this.eventHandler.changeDrawType),this._els.drawColorPicker.off(),this._els.drawRange.off(),this.colorPickerInputBox.removeEventListener(ar.FOCUS,Q()(X=this._onStartEditingInputBox).call(X,this)),this.colorPickerInputBox.removeEventListener(ar.BLUR,Q()(ne=this._onStopEditingInputBox).call(ne,this))}},{key:"setDrawMode",value:function(){this.actions.setDrawMode(this.type,{width:this.width,color:lr(this.color,er)})}},{key:"changeStandbyMode",value:function(){this.type=null,this.actions.stopDrawingMode(),this.actions.changeSelectableAll(!0),this._els.lineSelectButton.classList.remove("free"),this._els.lineSelectButton.classList.remove("line")}},{key:"changeStartMode",value:function(){this.type="free",this._els.lineSelectButton.classList.add("free"),this.setDrawMode()}},{key:"_changeDrawType",value:function(X){var ne=X.target.closest(".tui-image-editor-button");if(ne){var xe=this.getButtonType(ne,["free","line"]);if(this.actions.discardSelection(),this.type===xe){this.changeStandbyMode();return}this.changeStandbyMode(),this.type=xe,this._els.lineSelectButton.classList.add(xe),this.setDrawMode()}}},{key:"_changeDrawColor",value:function(X){this.color=X||"transparent",this.type?this.setDrawMode():this.changeStartMode()}},{key:"_changeDrawRange",value:function(X){this.width=X,this.type?this.setDrawMode():this.changeStartMode()}}]),Z})(Vo),Ar=Tr,_n=t(9886),Vn=t.n(_n),Na=(function(Me){var ce,Z,te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr,Mr=Me.locale;return G()(ce=G()(Z=G()(te=G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=G()(je=G()(rt=G()(ft=G()(Ht=G()(zt=G()(qt=G()(Xt=G()(nr=`
    <ul class="tui-image-editor-submenu-item">
        <li class="tui-image-editor-submenu-align">
            <div class="tui-image-editor-checkbox-wrap fixed-width">
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-grayscale">
                        <span>`.concat(Mr.localize("Grayscale"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-invert">
                        <span>`)).call(nr,Mr.localize("Invert"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-sepia">
                        <span>`)).call(Xt,Mr.localize("Sepia"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-vintage">
                        <span>`)).call(qt,Mr.localize("Sepia2"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-blur">
                        <span>`)).call(zt,Mr.localize("Blur"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-sharpen">
                        <span>`)).call(Ht,Mr.localize("Sharpen"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-emboss">
                        <span>`)).call(ft,Mr.localize("Emboss"),`</span>
                    </label>
                </div>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li class="tui-image-editor-submenu-align">
            <div class="tui-image-editor-checkbox-group tui-image-editor-disabled" style="margin-bottom: 7px;">
                <div class="tui-image-editor-checkbox-wrap">
                    <div class="tui-image-editor-checkbox">
                        <label>
                            <input type="checkbox" class="tie-remove-white">
                            <span>`)).call(rt,Mr.localize("Remove White"),`</span>
                        </label>
                    </div>
                </div>
                <div class="tui-image-editor-newline tui-image-editor-range-wrap short">
                    <label>`)).call(je,Mr.localize("Distance"),`</label>
                    <div class="tie-removewhite-distance-range"></div>
                </div>
            </div>
            <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-brightness">
                        <span>`)).call(Qe,Mr.localize("Brightness"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-range-wrap short">
                    <div class="tie-brightness-range"></div>
                </div>
            </div>
            <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-noise">
                        <span>`)).call(Ie,Mr.localize("Noise"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-range-wrap short">
                    <div class="tie-noise-range"></div>
                </div>
            </div>
        </li>
        <li class="tui-image-editor-partition only-left-right">
            <div></div>
        </li>
        <li class="tui-image-editor-submenu-align">
            <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-pixelate">
                        <span>`)).call(xe,Mr.localize("Pixelate"),`</span>
                    </label>
                </div>
                <div class="tui-image-editor-range-wrap short">
                    <div class="tie-pixelate-range"></div>
                </div>
            </div>
            <div class="tui-image-editor-checkbox-group tui-image-editor-disabled">
                <div class="tui-image-editor-newline tui-image-editor-checkbox-wrap">
                    <div class="tui-image-editor-checkbox">
                        <label>
                            <input type="checkbox" class="tie-color-filter">
                            <span>`)).call(ne,Mr.localize("Color Filter"),`</span>
                        </label>
                    </div>
                </div>
                <div class="tui-image-editor-newline tui-image-editor-range-wrap short">
                    <label>`)).call(X,Mr.localize("Threshold"),`</label>
                    <div class="tie-colorfilter-threshold-range"></div>
                </div>
            </div>
        </li>
        <li class="tui-image-editor-partition">
            <div></div>
        </li>
        <li>
            <div class="filter-color-item">
                <div class="tie-filter-tint-color" title="`)).call(te,Mr.localize("Tint"),`"></div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-tint">
                        <span></span>
                    </label>
                </div>
            </div>
            <div class="filter-color-item">
                <div class="tie-filter-multiply-color" title="`)).call(Z,Mr.localize("Multiply"),`"></div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-multiply">
                        <span></span>
                    </label>
                </div>
            </div>
            <div class="filter-color-item">
                <div class="tie-filter-blend-color" title="`)).call(ce,Mr.localize("Blend"),`"></div>
                <div class="tui-image-editor-checkbox">
                    <label>
                        <input type="checkbox" class="tie-blend">
                        <span></span>
                    </label>
                </div>
            </div>
        </li>
    </ul>
`)});function Hi(Me){var ce=vi();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function vi(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Gc="130px",vo=["add","diff","subtract","multiply","screen","lighten","darken"],yo=["grayscale","invert","sepia","vintage","blur","sharpen","emboss","remove-white","brightness","noise","pixelate","color-filter","tint","multiply","blend"],Uf={grayscale:"grayscale",invert:"invert",sepia:"sepia",blur:"blur",sharpen:"sharpen",emboss:"emboss",removeWhite:"removeColor",brightness:"brightness",contrast:"contrast",saturation:"saturation",vintage:"vintage",polaroid:"polaroid",noise:"noise",pixelate:"pixelate",colorFilter:"removeColor",tint:"blendColor",multiply:"blendColor",blend:"blendColor",hue:"hue",gamma:"gamma"},tp=["removewhiteDistanceRange","colorfilterThresholdRange","pixelateRange","noiseRange","brightnessRange","tintOpacity"],Yl=["filterBlendColor","filterMultiplyColor","filterTintColor"],$c=(function(Me){Za(Z,Me);var ce=Hi(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.menuBarPosition,Qe=X.usageStatistics;return R(this,Z),ne=ce.call(this,te,{locale:xe,name:"filter",menuBarPosition:Ie,templateHtml:Na,usageStatistics:Qe}),ne.selectBoxShow=!1,ne.checkedMap={},ne._makeControlElement(),ne}return V(Z,[{key:"destroy",value:function(){this._removeEvent(),this._destroyToolInstance(),gi(this)}},{key:"_removeEvent",value:function(){var X=this,ne;Te()(yo,function(xe){var Ie=X.selector(".tie-".concat(xe)),Qe=Rr(xe);Ie.removeEventListener("change",X.eventHandler[Qe])}),Te()(G()(ne=[]).call(ne,tp,Yl),function(xe){X._els[xe].off()}),this._els.blendType.removeEventListener("change",this.eventHandler.changeBlendFilter),this._els.blendType.removeEventListener("click",this.eventHandler.changeBlendFilter),ys()(this.colorPickerInputBoxes,function(xe){var Ie,Qe;xe.removeEventListener(ar.FOCUS,Q()(Ie=X._onStartEditingInputBox).call(Ie,X)),xe.removeEventListener(ar.BLUR,Q()(Qe=X._onStopEditingInputBox).call(Qe,X))},this)}},{key:"_destroyToolInstance",value:function(){var X,ne=this;Te()(G()(X=[]).call(X,tp,Yl),function(xe){ne._els[xe].destroy()})}},{key:"addEvent",value:function(X){var ne=this,xe,Ie,Qe,je=X.applyFilter,rt=function(zt){var qt;return Q()(qt=ne._changeFilterState).call(qt,ne,je,zt)},ft=function(zt){return function(qt,Xt){return ne._changeFilterState(je,zt,Xt)}};this.eventHandler={changeBlendFilter:rt("blend"),blandTypeClick:function(zt){return zt.stopPropagation()}},Te()(yo,function(Ht){var zt=ne.selector(".tie-".concat(Ht)),qt=Rr(Ht);ne.checkedMap[qt]=zt,ne.eventHandler[qt]=rt(qt),zt.addEventListener("change",ne.eventHandler[qt])}),this._els.removewhiteDistanceRange.on("change",ft("removeWhite")),this._els.colorfilterThresholdRange.on("change",ft("colorFilter")),this._els.pixelateRange.on("change",ft("pixelate")),this._els.noiseRange.on("change",ft("noise")),this._els.brightnessRange.on("change",ft("brightness")),this._els.filterBlendColor.on("change",this.eventHandler.changeBlendFilter),this._els.filterMultiplyColor.on("change",rt("multiply")),this._els.filterTintColor.on("change",rt("tint")),this._els.tintOpacity.on("change",ft("tint")),this._els.filterMultiplyColor.on("changeShow",Q()(xe=this.colorPickerChangeShow).call(xe,this)),this._els.filterTintColor.on("changeShow",Q()(Ie=this.colorPickerChangeShow).call(Ie,this)),this._els.filterBlendColor.on("changeShow",Q()(Qe=this.colorPickerChangeShow).call(Qe,this)),this._els.blendType.addEventListener("change",this.eventHandler.changeBlendFilter),this._els.blendType.addEventListener("click",this.eventHandler.blandTypeClick),ys()(this.colorPickerInputBoxes,function(Ht){var zt,qt;Ht.addEventListener(ar.FOCUS,Q()(zt=ne._onStartEditingInputBox).call(zt,ne)),Ht.addEventListener(ar.BLUR,Q()(qt=ne._onStopEditingInputBox).call(qt,ne))},this)}},{key:"setFilterState",value:function(X){var ne=X.type,xe=X.options,Ie=X.action,Qe=this._getFilterNameFromOptions(ne,xe),je=Ie==="remove";je||this._setFilterState(Qe,xe),this.checkedMap[Qe].checked=!je}},{key:"initFilterCheckBoxState",value:function(){Te()(this.checkedMap,function(X){X.checked=!1},this)}},{key:"_setFilterState",value:function(X,ne){X==="colorFilter"?this._els.colorfilterThresholdRange.value=ne.distance:X==="removeWhite"?this._els.removewhiteDistanceRange.value=ne.distance:X==="pixelate"?this._els.pixelateRange.value=ne.blocksize:X==="brightness"?this._els.brightnessRange.value=ne.brightness:X==="noise"?this._els.noiseRange.value=ne.noise:X==="tint"?(this._els.tintOpacity.value=ne.alpha,this._els.filterTintColor.color=ne.color):X==="blend"?this._els.filterBlendColor.color=ne.color:X==="multiply"&&(this._els.filterMultiplyColor.color=ne.color)}},{key:"_getFilterNameFromOptions",value:function(X,ne){var xe=X;return X==="removeColor"?xe=Vn()(ne.useAlpha)?"removeWhite":"colorFilter":X==="blendColor"&&(xe={add:"blend",multiply:"multiply",tint:"tint"}[ne.mode]),xe}},{key:"_changeFilterState",value:function(X,ne){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,Ie=this.checkedMap[ne].checked,Qe=Uf[ne],je=this.checkedMap[ne].closest(".tui-image-editor-checkbox-group");je&&(Ie?je.classList.remove("tui-image-editor-disabled"):je.classList.add("tui-image-editor-disabled")),X(Ie,Qe,this._getFilterOption(ne),!xe)}},{key:"_getFilterOption",value:function(X){var ne={};switch(X){case"removeWhite":ne.color="#FFFFFF",ne.useAlpha=!1,ne.distance=za()(this._els.removewhiteDistanceRange.value);break;case"colorFilter":ne.color="#FFFFFF",ne.distance=za()(this._els.colorfilterThresholdRange.value);break;case"pixelate":ne.blocksize=Zr(this._els.pixelateRange.value);break;case"noise":ne.noise=Zr(this._els.noiseRange.value);break;case"brightness":ne.brightness=za()(this._els.brightnessRange.value);break;case"blend":ne.mode="add",ne.color=this._els.filterBlendColor.color,ne.mode=this._els.blendType.value;break;case"multiply":ne.mode="multiply",ne.color=this._els.filterMultiplyColor.color;break;case"tint":ne.mode="tint",ne.color=this._els.filterTintColor.color,ne.alpha=this._els.tintOpacity.value;break;case"blur":ne.blur=this._els.blurRange.value;break}return ne}},{key:"_makeControlElement",value:function(){this._els={removewhiteDistanceRange:new go({slider:this.selector(".tie-removewhite-distance-range")},Bt.removewhiteDistanceRange),brightnessRange:new go({slider:this.selector(".tie-brightness-range")},Bt.brightnessRange),noiseRange:new go({slider:this.selector(".tie-noise-range")},Bt.noiseRange),pixelateRange:new go({slider:this.selector(".tie-pixelate-range")},Bt.pixelateRange),colorfilterThresholdRange:new go({slider:this.selector(".tie-colorfilter-threshold-range")},Bt.colorfilterThresholdRange),filterTintColor:new Il(this.selector(".tie-filter-tint-color"),{defaultColor:"#03bd9e",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),filterMultiplyColor:new Il(this.selector(".tie-filter-multiply-color"),{defaultColor:"#515ce6",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),filterBlendColor:new Il(this.selector(".tie-filter-blend-color"),{defaultColor:"#ffbb3b",toggleDirection:this.toggleDirection,usageStatistics:this.usageStatistics}),blurRange:Bt.blurFilterRange},this._els.tintOpacity=this._pickerWithRange(this._els.filterTintColor.pickerControl),this._els.blendType=this._pickerWithSelectbox(this._els.filterBlendColor.pickerControl),this.colorPickerControls.push(this._els.filterTintColor),this.colorPickerControls.push(this._els.filterMultiplyColor),this.colorPickerControls.push(this._els.filterBlendColor),this.colorPickerInputBoxes=[],this.colorPickerInputBoxes.push(this._els.filterTintColor.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX)),this.colorPickerInputBoxes.push(this._els.filterMultiplyColor.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX)),this.colorPickerInputBoxes.push(this._els.filterBlendColor.colorpickerElement.querySelector(Wr.COLOR_PICKER_INPUT_BOX))}},{key:"_pickerWithRange",value:function(X){var ne=document.createElement("div"),xe=document.createElement("label"),Ie=document.createElement("div");return Ie.id="tie-filter-tint-opacity",xe.innerHTML="Opacity",ne.appendChild(xe),ne.appendChild(Ie),X.appendChild(ne),X.style.height=Gc,new go({slider:Ie},Bt.tintOpacityRange)}},{key:"_pickerWithSelectbox",value:function(X){var ne=document.createElement("div"),xe=document.createElement("select"),Ie=document.createElement("ul");return ne.className="tui-image-editor-selectlist-wrap",Ie.className="tui-image-editor-selectlist",ne.appendChild(xe),ne.appendChild(Ie),this._makeSelectOptionList(xe),X.appendChild(ne),X.style.height=Gc,this._drawSelectOptionList(xe,Ie),this._pickerWithSelectboxForAddEvent(xe,Ie),xe}},{key:"_drawSelectOptionList",value:function(X,ne){var xe=X.querySelectorAll("option");Te()(xe,function(Ie){var Qe=document.createElement("li");Qe.innerHTML=Ie.innerHTML,Qe.setAttribute("data-item",Ie.value),ne.appendChild(Qe)})}},{key:"_pickerWithSelectboxForAddEvent",value:function(X,ne){var xe=this;ne.addEventListener("click",function(Ie){var Qe=Ie.target.getAttribute("data-item"),je=document.createEvent("HTMLEvents");X.querySelector('[value="'.concat(Qe,'"]')).selected=!0,je.initEvent("change",!0,!0),X.dispatchEvent(je),xe.selectBoxShow=!1,ne.style.display="none"}),X.addEventListener("mousedown",function(Ie){Ie.preventDefault(),xe.selectBoxShow=!xe.selectBoxShow,ne.style.display=xe.selectBoxShow?"block":"none",ne.setAttribute("data-selectitem",X.value),ne.querySelector("[data-item='".concat(X.value,"']")).classList.add("active")})}},{key:"_makeSelectOptionList",value:function(X){Te()(vo,function(ne){var xe=document.createElement("option");xe.setAttribute("value",ne),xe.innerHTML=ne.replace(/^[a-z]/,function(Ie){return Ie.toUpperCase()}),X.appendChild(xe)})}}]),Z})(Vo),Nf=$c,ci=t(4383),jf=t.n(ci),Ml=(function(){function Me(ce,Z){var te=Z.name;R(this,Me),this.name=te,this.items=[],this.panelElement=this._makePanelElement(),this.listElement=this._makeListElement(),this.panelElement.appendChild(this.listElement),ce.appendChild(this.panelElement)}return V(Me,[{key:"_makePanelElement",value:function(){var Z=document.createElement("div");return Z.className="tie-panel-".concat(this.name),Z}},{key:"_makeListElement",value:function(){var Z=document.createElement("ol");return Z.className="".concat(this.name,"-list"),Z}},{key:"makeListItemElement",value:function(Z){var te=document.createElement("li");return te.innerHTML=Z,te.className="".concat(this.name,"-item"),te.setAttribute("data-index",this.items.length),te}},{key:"pushListItemElement",value:function(Z){this.listElement.appendChild(Z),this.listElement.scrollTop+=Z.offsetHeight,this.items.push(Z)}},{key:"deleteListItemElement",value:function(Z,te){for(var X=this.items,ne=Z;ne<te;ne+=1)this.listElement.removeChild(X[ne]);m()(X).call(X,Z,te-Z+1)}},{key:"getListLength",value:function(){return this.items.length}},{key:"addClass",value:function(Z,te){this.items[Z]&&this.items[Z].classList.add(te)}},{key:"removeClass",value:function(Z,te){this.items[Z]&&this.items[Z].classList.remove(te)}},{key:"toggleClass",value:function(Z,te){this.items[Z]&&this.items[Z].classList.toggle(te)}}]),Me})(),Hf=Ml,wA=(function(Me){var ce,Z,te,X=Me.locale,ne=Me.makeSvgIcon,xe=Me.name,Ie=Me.detail;return G()(ce=G()(Z=G()(te=`
    <div class="tui-image-editor-history-item history">
        <div class="history-item-icon">
            `.concat(ne(["normal","active"],"history-".concat(xe.toLowerCase()),!0),`
        </div>
        <span>
            `)).call(te,X.localize(xe),`
            `)).call(Z,Ie?"(".concat(X.localize(Ie),")"):"",`
        </span>
        <div class="history-item-checkbox">
            `)).call(ce,ne(["normal"],"history-check",!0),`
        </div>
    </div>
`)});function Gd(Me){var ce=_A();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function _A(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Qf="history-item",aa="selected-item",Xl="disabled-item",Kc=(function(Me){Za(Z,Me);var ce=Gd(Z);function Z(te,X){var ne,xe=X.locale,Ie=X.makeSvgIcon;return R(this,Z),ne=ce.call(this,te,{name:"history"}),te.classList.add("enabled"),ne.locale=xe,ne.makeSvgIcon=Ie,ne._eventHandler={},ne._historyIndex=ne.getListLength(),ne}return V(Z,[{key:"add",value:function(X){var ne=X.name,xe=X.detail;this._hasDisabledItem()&&this.deleteListItemElement(this._historyIndex+1,this.getListLength());var Ie=wA({locale:this.locale,makeSvgIcon:this.makeSvgIcon,name:ne,detail:xe}),Qe=this.makeListItemElement(Ie);this.pushListItemElement(Qe),this._historyIndex=this.getListLength()-1,this._selectItem(this._historyIndex)}},{key:"init",value:function(){this.deleteListItemElement(1,this.getListLength()),this._historyIndex=0,this._selectItem(this._historyIndex)}},{key:"clear",value:function(){this.deleteListItemElement(0,this.getListLength()),this._historyIndex=-1}},{key:"prev",value:function(){this._historyIndex-=1,this._selectItem(this._historyIndex)}},{key:"next",value:function(){this._historyIndex+=1,this._selectItem(this._historyIndex)}},{key:"_hasDisabledItem",value:function(){return this.getListLength()-1>this._historyIndex}},{key:"_addHistoryEventListener",value:function(){var X=this;this._eventHandler.history=function(ne){return X._clickHistoryItem(ne)},this.listElement.addEventListener("click",this._eventHandler.history)}},{key:"_removeHistoryEventListener",value:function(){this.listElement.removeEventListener("click",this._eventHandler.history)}},{key:"_clickHistoryItem",value:function(X){var ne=X.target,xe=ne.closest(".".concat(Qf));if(xe){var Ie=jf()(xe.getAttribute("data-index"),10);if(Ie!==this._historyIndex){var Qe=Math.abs(Ie-this._historyIndex);Ie<this._historyIndex?this._actions.undo(Qe):this._actions.redo(Qe)}}}},{key:"_selectItem",value:function(X){for(var ne=0;ne<this.getListLength();ne+=1)this.removeClass(ne,aa),this.removeClass(ne,Xl),ne>X&&this.addClass(ne,Xl);this.addClass(X,aa)}},{key:"destroy",value:function(){this.removeEvent(),gi(this)}},{key:"addEvent",value:function(X){this._actions=X,this._addHistoryEventListener()}},{key:"removeEvent",value:function(){this._removeHistoryEventListener()}}]),Z})(Hf),Zl=Kc,oi=(function(){function Me(ce){R(this,Me),this._locale=ce}return V(Me,[{key:"localize",value:function(Z){return this._locale[Z]||Z}}]),Me})(),rp=oi,zf={Shape:Yi,Crop:ic,Resize:ji,Flip:Ws,Rotate:cl,Text:bu,Mask:Go,Icon:dg,Draw:Ar,Filter:Nf},xA="1300",Bs="history",lc="tie-panel-history",Jl="on",uc={ZOOM_IN:"zoomIn",HAND:"hand"},CA=(function(){function Me(ce,Z,te){R(this,Me),this.options=this._initializeOption(Z),this._actions=te,this.submenu=!1,this.imageSize={},this.uiSize={},this._locale=new rp(this.options.locale),this.theme=new vs(this.options.theme),this.eventHandler={},this._submenuChangeTransection=!1,this._selectedElement=null,this._mainElement=null,this._editorElementWrap=null,this._editorElement=null,this._menuBarElement=null,this._subMenuElement=null,this._makeUiElement(ce),this._setUiSize(),this._initMenuEvent=!1,this._makeSubMenu(),this._attachHistoryEvent(),this._attachZoomEvent()}return V(Me,[{key:"destroy",value:function(){this._removeUiEvent(),this._destroyAllMenu(),this._selectedElement.innerHTML="",gi(this)}},{key:"setUiDefaultSelectionStyle",value:function(Z){return pe()({applyCropSelectionStyle:!0,applyGroupSelectionStyle:!0,selectionStyle:{cornerStyle:"circle",cornerSize:16,cornerColor:"#fff",cornerStrokeColor:"#fff",transparentCorners:!1,lineWidth:2,borderColor:"#fff"}},Z)}},{key:"resizeEditor",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=Z.uiSize,X=Z.imageSize,ne=X===void 0?this.imageSize:X;ne!==this.imageSize&&(this.imageSize=ne),te&&this._setUiSize(te);var xe=this._getCanvasMaxDimension(),Ie=xe.width,Qe=xe.height,je=this._editorElement.style,rt=this.options.menuBarPosition;je.height="".concat(Qe,"px"),je.width="".concat(Ie,"px"),this._setEditorPosition(rt),this._editorElementWrap.style.bottom="0px",this._editorElementWrap.style.top="0px",this._editorElementWrap.style.left="0px",this._editorElementWrap.style.width="100%";var ft=this._selectedElement.classList;rt==="top"&&this._selectedElement.offsetWidth<xA?ft.add("tui-image-editor-top-optimization"):ft.remove("tui-image-editor-top-optimization")}},{key:"toggleZoomButtonStatus",value:function(Z){var te=this._buttonElements[Z].classList;te.toggle(Jl),Z===uc.ZOOM_IN?this._buttonElements[uc.HAND].classList.remove(Jl):this._buttonElements[uc.ZOOM_IN].classList.remove(Jl)}},{key:"offZoomInButtonStatus",value:function(){var Z=this._buttonElements[uc.ZOOM_IN].classList;Z.remove(Jl)}},{key:"changeHandButtonStatus",value:function(Z){var te=this._buttonElements[uc.HAND].classList;te[Z?"add":"remove"](Jl)}},{key:"changeHelpButtonEnabled",value:function(Z,te){var X=this._buttonElements[Z].classList;X[te?"add":"remove"]("enabled")}},{key:"_initializeOption",value:function(Z){return pe()({loadImage:{path:"",name:""},locale:{},menuIconPath:"",menu:["resize","crop","flip","rotate","draw","shape","icon","text","mask","filter"],initMenu:"",uiSize:{width:"100%",height:"100%"},menuBarPosition:"bottom"},Z)}},{key:"_setUiSize",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.uiSize,te=this._selectedElement.style;te.width=Z.width,te.height=Z.height}},{key:"_makeSubMenu",value:function(){var Z=this;Te()(this.options.menu,function(te){var X,ne=zf[te.replace(/^[a-z]/,function(xe){return xe.toUpperCase()})];Z._makeMenuElement(te),Z._buttonElements[te]=Z._menuBarElement.querySelector(".tie-btn-".concat(te)),Z[te]=new ne(Z._subMenuElement,{locale:Z._locale,makeSvgIcon:Q()(X=Z.theme.makeMenSvgIconSet).call(X,Z.theme),menuBarPosition:Z.options.menuBarPosition,usageStatistics:Z.options.usageStatistics})})}},{key:"_attachHistoryEvent",value:function(){var Z,te,X;this.on(ar.EXECUTE_COMMAND,Q()(Z=this._addHistory).call(Z,this)),this.on(ar.AFTER_UNDO,Q()(te=this._selectPrevHistory).call(te,this)),this.on(ar.AFTER_REDO,Q()(X=this._selectNextHistory).call(X,this))}},{key:"_attachZoomEvent",value:function(){var Z=this;this.on(ar.HAND_STARTED,function(){Z.offZoomInButtonStatus(),Z.changeHandButtonStatus(!0)}),this.on(ar.HAND_STOPPED,function(){return Z.changeHandButtonStatus(!1)})}},{key:"_makeUiElement",value:function(Z){var te,X;Z.nodeType?X=Z:X=document.querySelector(Z);var ne=vn(X);X.classList.add("tui-image-editor-container"),X.innerHTML=us({locale:this._locale,biImage:this.theme.getStyle("common.bi"),loadButtonStyle:this.theme.getStyle("loadButton"),downloadButtonStyle:this.theme.getStyle("downloadButton"),menuBarPosition:this.options.menuBarPosition})+Ff({locale:this._locale,biImage:this.theme.getStyle("common.bi"),commonStyle:this.theme.getStyle("common"),headerStyle:this.theme.getStyle("header"),loadButtonStyle:this.theme.getStyle("loadButton"),downloadButtonStyle:this.theme.getStyle("downloadButton"),submenuStyle:this.theme.getStyle("submenu")}),this._selectedElement=X,this._selectedElement.classList.add(this.options.menuBarPosition),this._mainElement=ne(".tui-image-editor-main"),this._editorElementWrap=ne(".tui-image-editor-wrap"),this._editorElement=ne(".tui-image-editor"),this._helpMenuBarElement=ne(".tui-image-editor-help-menu"),this._menuBarElement=ne(".tui-image-editor-menu"),this._subMenuElement=ne(".tui-image-editor-submenu"),this._buttonElements={download:this._selectedElement.querySelectorAll(".tui-image-editor-download-btn"),load:this._selectedElement.querySelectorAll(".tui-image-editor-load-btn")},this._addHelpMenus(),this._historyMenu=new Zl(this._buttonElements[Bs],{locale:this._locale,makeSvgIcon:Q()(te=this.theme.makeMenSvgIconSet).call(te,this.theme)}),this._activateZoomMenus()}},{key:"_activateZoomMenus",value:function(){var Z=this;Te()(mn,function(te){Z.changeHelpButtonEnabled(te,!0)})}},{key:"_makeHelpMenuWithPartition",value:function(){var Z;return G()(Z=[]).call(Z,I(mn),[""],I(jr),[""],I(Tn))}},{key:"_addHelpMenus",value:function(){var Z=this,te=this._makeHelpMenuWithPartition();Te()(te,function(X){X?(Z._makeMenuElement(X,["normal","disabled","hover"],"help"),Z._buttonElements[X]=Z._helpMenuBarElement.querySelector(".tie-btn-".concat(X))):Z._makeMenuPartitionElement()})}},{key:"_makeMenuPartitionElement",value:function(){var Z=document.createElement("li"),te=document.createElement("div");Z.className=Eo("item"),te.className=Eo("icpartition"),Z.appendChild(te),this._helpMenuBarElement.appendChild(Z)}},{key:"_makeMenuElement",value:function(Z){var te,X,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["normal","active","hover"],xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal",Ie=document.createElement("li"),Qe=this.theme.makeMenSvgIconSet(ne,Z);this._addTooltipAttribute(Ie,Z),Ie.className=G()(te=G()(X="tie-btn-".concat(Z," ")).call(X,Eo("item")," ")).call(te,xe),Ie.innerHTML=Qe,xe==="normal"?this._menuBarElement.appendChild(Ie):this._helpMenuBarElement.appendChild(Ie)}},{key:"_addHelpActionEvent",value:function(){var Z=this;Te()(Lt,function(te){Z.eventHandler[te]=function(X){return Z._actions.main[te](X)},Z._buttonElements[te].addEventListener("click",Z.eventHandler[te])})}},{key:"_removeHelpActionEvent",value:function(){var Z=this;Te()(Lt,function(te){Z._buttonElements[te].removeEventListener("click",Z.eventHandler[te])})}},{key:"_addHistory",value:function(Z){if(!si(Z)){var te=typeof Z=="string"?{name:Z}:ll(Z);this._historyMenu.add(te)}}},{key:"initHistory",value:function(){this._historyMenu.init()}},{key:"clearHistory",value:function(){this._historyMenu.clear()}},{key:"_selectPrevHistory",value:function(){this._historyMenu.prev()}},{key:"_selectNextHistory",value:function(){this._historyMenu.next()}},{key:"toggleHistoryMenu",value:function(Z){var te=Z.target,X=te.closest(".".concat(lc));if(!X){var ne=this._buttonElements[Bs].classList;ne.toggle("opened")}}},{key:"_addTooltipAttribute",value:function(Z,te){Z.setAttribute("tooltip-content",this._locale.localize(te.replace(/^[a-z]/g,function(X){return X.toUpperCase()})))}},{key:"_addDownloadEvent",value:function(){var Z=this;this.eventHandler.download=function(){return Z._actions.main.download()},Te()(this._buttonElements.download,function(te){te.addEventListener("click",Z.eventHandler.download)})}},{key:"_removeDownloadEvent",value:function(){var Z=this;Te()(this._buttonElements.download,function(te){te.removeEventListener("click",Z.eventHandler.download)})}},{key:"_addLoadEvent",value:function(){var Z=this;this.eventHandler.loadImage=function(te){return Z._actions.main.load(te.target.files[0])},Te()(this._buttonElements.load,function(te){te.addEventListener("change",Z.eventHandler.loadImage)})}},{key:"_removeLoadEvent",value:function(){var Z=this;Te()(this._buttonElements.load,function(te){te.removeEventListener("change",Z.eventHandler.loadImage)})}},{key:"_addMainMenuEvent",value:function(Z){var te=this;this.eventHandler[Z]=function(){return te.changeMenu(Z)},this._buttonElements[Z].addEventListener("click",this.eventHandler[Z])}},{key:"_addSubMenuEvent",value:function(Z){var te=this;this[Z].addEvent(this._actions[Z]),this[Z].on(ar.INPUT_BOX_EDITING_STARTED,function(){return te.fire(ar.INPUT_BOX_EDITING_STARTED)}),this[Z].on(ar.INPUT_BOX_EDITING_STOPPED,function(){return te.fire(ar.INPUT_BOX_EDITING_STOPPED)})}},{key:"_addMenuEvent",value:function(){var Z=this;Te()(this.options.menu,function(te){Z._addMainMenuEvent(te),Z._addSubMenuEvent(te)})}},{key:"_removeMainMenuEvent",value:function(){var Z=this;Te()(this.options.menu,function(te){Z._buttonElements[te].removeEventListener("click",Z.eventHandler[te]),Z[te].off(ar.INPUT_BOX_EDITING_STARTED),Z[te].off(ar.INPUT_BOX_EDITING_STOPPED)})}},{key:"getEditorArea",value:function(){return this._editorElement}},{key:"activeMenuEvent",value:function(){this._initMenuEvent||(this._addHelpActionEvent(),this._addDownloadEvent(),this._addMenuEvent(),this._initMenu(),this._historyMenu.addEvent(this._actions.history),this._initMenuEvent=!0)}},{key:"_removeUiEvent",value:function(){this._removeHelpActionEvent(),this._removeDownloadEvent(),this._removeLoadEvent(),this._removeMainMenuEvent(),this._historyMenu.removeEvent()}},{key:"_destroyAllMenu",value:function(){var Z=this;Te()(this.options.menu,function(te){Z[te].destroy()}),this._historyMenu.destroy()}},{key:"initCanvas",value:function(){var Z=this,te=this._getLoadImage();te.path&&this._actions.main.initLoadImage(te.path,te.name).then(function(){Z.activeMenuEvent()}),this._addLoadEvent();var X=document.createElement("div");X.className=Eo("grid-visual");var ne=`<table>
           <tr><td class="dot left-top"></td><td></td><td class="dot right-top"></td></tr>
           <tr><td></td><td></td><td></td></tr>
           <tr><td class="dot left-bottom"></td><td></td><td class="dot right-bottom"></td></tr>
         </table>`;X.innerHTML=ne,this._editorContainerElement=this._editorElement.querySelector(".tui-image-editor-canvas-container"),this._editorContainerElement.appendChild(X)}},{key:"_getLoadImage",value:function(){return this.options.loadImage}},{key:"changeMenu",value:function(Z){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;this._submenuChangeTransection||(this._submenuChangeTransection=!0,this._changeMenu(Z,te,X),this._submenuChangeTransection=!1)}},{key:"_changeMenu",value:function(Z,te,X){this.submenu&&(this._buttonElements[this.submenu].classList.remove("active"),this._mainElement.classList.remove("tui-image-editor-menu-".concat(this.submenu)),X&&this._actions.main.discardSelection(),this._actions.main.changeSelectableAll(!0),this[this.submenu].changeStandbyMode()),this.submenu===Z&&te?this.submenu=null:(this._buttonElements[Z].classList.add("active"),this._mainElement.classList.add("tui-image-editor-menu-".concat(Z)),this.submenu=Z,this[this.submenu].changeStartMode()),this.resizeEditor()}},{key:"_initMenu",value:function(){if(this.options.initMenu){var Z=document.createEvent("MouseEvents");Z.initEvent("click",!0,!1),this._buttonElements[this.options.initMenu].dispatchEvent(Z)}this.icon&&this.icon.registerDefaultIcon()}},{key:"_getCanvasMaxDimension",value:function(){var Z=this._editorContainerElement.style,te=Z.maxWidth,X=Z.maxHeight,ne=za()(te),xe=za()(X);return{width:ne,height:xe}}},{key:"_setEditorPosition",value:function(Z){var te=this._getCanvasMaxDimension(),X=te.width,ne=te.height,xe=this._editorElement.style,Ie=0,Qe=0;this.submenu&&(Z==="bottom"?ne>this._editorElementWrap.scrollHeight-150?Ie=(ne-this._editorElementWrap.scrollHeight)/2:Ie=150/2*-1:Z==="top"?ne>this._editorElementWrap.offsetHeight-150?Ie=150/2-(ne-(this._editorElementWrap.offsetHeight-150))/2:Ie=150/2:Z==="left"?X>this._editorElementWrap.offsetWidth-248?Qe=248/2-(X-(this._editorElementWrap.offsetWidth-248))/2:Qe=248/2:Z==="right"&&(X>this._editorElementWrap.scrollWidth-248?Qe=(X-this._editorElementWrap.scrollWidth)/2:Qe=248/2*-1)),xe.top="".concat(Ie,"px"),xe.left="".concat(Qe,"px")}}]),Me})();ye().mixin(CA);var cc=CA,Vf=t(381),Dl=t.n(Vf),Wf=(function(){function Me(){R(this,Me),this.versionnumber="1.2.4",this.optionpresets={default:{corsenabled:!1,ltres:1,qtres:1,pathomit:8,rightangleenhance:!0,colorsampling:2,numberofcolors:16,mincolorratio:0,colorquantcycles:3,layering:0,strokewidth:1,linefilter:!1,scale:1,roundcoords:1,viewbox:!1,desc:!1,lcpr:0,qcpr:0,blurradius:0,blurdelta:20},posterized1:{colorsampling:0,numberofcolors:2},posterized2:{numberofcolors:4,blurradius:5},curvy:{ltres:.01,linefilter:!0,rightangleenhance:!1},sharp:{qtres:.01,linefilter:!1},detailed:{pathomit:0,roundcoords:2,ltres:.5,qtres:.5,numberofcolors:64},smoothed:{blurradius:5,blurdelta:64},grayscale:{colorsampling:0,colorquantcycles:1,numberofcolors:7},fixedpalette:{colorsampling:0,colorquantcycles:1,numberofcolors:27},randomsampling1:{colorsampling:1,numberofcolors:8},randomsampling2:{colorsampling:1,numberofcolors:64},artistic1:{colorsampling:0,colorquantcycles:1,pathomit:0,blurradius:5,blurdelta:64,ltres:.01,linefilter:!0,numberofcolors:16,strokewidth:2},artistic2:{qtres:.01,colorsampling:0,colorquantcycles:1,numberofcolors:4,strokewidth:0},artistic3:{qtres:10,ltres:10,numberofcolors:8},artistic4:{qtres:10,ltres:10,numberofcolors:64,blurradius:5,blurdelta:256,strokewidth:2},posterized3:{ltres:1,qtres:1,pathomit:20,rightangleenhance:!0,colorsampling:0,numberofcolors:3,mincolorratio:0,colorquantcycles:3,blurradius:3,blurdelta:20,strokewidth:0,linefilter:!1,roundcoords:1,pal:[{r:0,g:0,b:100,a:255},{r:255,g:255,b:255,a:255}]}},this.pathscan_combined_lookup=[[[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[0,1,0,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[0,2,-1,0]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[0,1,0,-1],[0,0,1,0]],[[0,0,1,0],[-1,-1,-1,-1],[0,2,-1,0],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[0,0,1,0],[0,3,0,1],[-1,-1,-1,-1]],[[13,3,0,1],[13,2,-1,0],[7,1,0,-1],[7,0,1,0]],[[-1,-1,-1,-1],[0,1,0,-1],[-1,-1,-1,-1],[0,3,0,1]],[[0,3,0,1],[0,2,-1,0],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[0,3,0,1],[0,2,-1,0],[-1,-1,-1,-1],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[0,1,0,-1],[-1,-1,-1,-1],[0,3,0,1]],[[11,1,0,-1],[14,0,1,0],[14,3,0,1],[11,2,-1,0]],[[-1,-1,-1,-1],[0,0,1,0],[0,3,0,1],[-1,-1,-1,-1]],[[0,0,1,0],[-1,-1,-1,-1],[0,2,-1,0],[-1,-1,-1,-1]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[0,1,0,-1],[0,0,1,0]],[[0,1,0,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[0,2,-1,0]],[[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1]]],this.gks=[[.27901,.44198,.27901],[.135336,.228569,.272192,.228569,.135336],[.086776,.136394,.178908,.195843,.178908,.136394,.086776],[.063327,.093095,.122589,.144599,.152781,.144599,.122589,.093095,.063327],[.049692,.069304,.089767,.107988,.120651,.125194,.120651,.107988,.089767,.069304,.049692]],this.specpalette=[{r:0,g:0,b:0,a:255},{r:128,g:128,b:128,a:255},{r:0,g:0,b:128,a:255},{r:64,g:64,b:128,a:255},{r:192,g:192,b:192,a:255},{r:255,g:255,b:255,a:255},{r:128,g:128,b:192,a:255},{r:0,g:0,b:192,a:255},{r:128,g:0,b:0,a:255},{r:128,g:64,b:64,a:255},{r:128,g:0,b:128,a:255},{r:168,g:168,b:168,a:255},{r:192,g:128,b:128,a:255},{r:192,g:0,b:0,a:255},{r:255,g:255,b:255,a:255},{r:0,g:128,b:0,a:255}]}return V(Me,[{key:"imageToSVG",value:function(Z,te,X){var ne=this;X=this.checkoptions(X),this.loadImage(Z,function(xe){te(ne.imagedataToSVG(ne.getImgdata(xe),X))},X)}},{key:"imagedataToSVG",value:function(Z,te){te=this.checkoptions(te);var X=this.imagedataToTracedata(Z,te);return this.getsvgstring(X,te)}},{key:"imageToTracedata",value:function(Z,te,X){var ne=this;X=this.checkoptions(X),this.loadImage(Z,function(xe){te(ne.imagedataToTracedata(ne.getImgdata(xe),X))},X)}},{key:"imagedataToTracedata",value:function(Z,te){te=this.checkoptions(te);var X=this.colorquantization(Z,te),ne;if(te.layering===0){ne={layers:[],palette:X.palette,width:X.array[0].length-2,height:X.array.length-2};for(var xe=0;xe<X.palette.length;xe+=1){var Ie=this.batchtracepaths(this.internodes(this.pathscan(this.layeringstep(X,xe),te.pathomit),te),te.ltres,te.qtres);ne.layers.push(Ie)}}else{var Qe=this.layering(X);te.layercontainerid&&this.drawLayers(Qe,this.specpalette,te.scale,te.layercontainerid);var je=this.batchpathscan(Qe,te.pathomit),rt=this.batchinternodes(je,te);ne={layers:this.batchtracelayers(rt,te.ltres,te.qtres),palette:X.palette,width:Z.width,height:Z.height}}return ne}},{key:"checkoptions",value:function(Z){Z=Z||{},typeof Z=="string"&&(Z=Z.toLowerCase(),this.optionpresets[Z]?Z=this.optionpresets[Z]:Z={});for(var te=ke()(this.optionpresets.default),X=0;X<te.length;X+=1)Z.hasOwnProperty(te[X])||(Z[te[X]]=this.optionpresets.default[te[X]]);return Z}},{key:"colorquantization",value:function(Z,te){var X=[],ne=0,xe,Ie,Qe,je=[],rt=Z.width*Z.height,ft,Ht,zt,qt,Xt;for(Ht=0;Ht<Z.height+2;Ht+=1)for(X[Ht]=[],ft=0;ft<Z.width+2;ft+=1)X[Ht][ft]=-1;for(te.pal?Xt=te.pal:te.colorsampling===0?Xt=this.generatepalette(te.numberofcolors):te.colorsampling===1?Xt=this.samplepalette(te.numberofcolors,Z):Xt=this.samplepalette2(te.numberofcolors,Z),te.blurradius>0&&(Z=this.blur(Z,te.blurradius,te.blurdelta)),qt=0;qt<te.colorquantcycles;qt+=1){if(qt>0)for(zt=0;zt<Xt.length;zt+=1)je[zt].n>0&&(Xt[zt]={r:Math.floor(je[zt].r/je[zt].n),g:Math.floor(je[zt].g/je[zt].n),b:Math.floor(je[zt].b/je[zt].n),a:Math.floor(je[zt].a/je[zt].n)}),je[zt].n/rt<te.mincolorratio&&qt<te.colorquantcycles-1&&(Xt[zt]={r:Math.floor(Math.random()*255),g:Math.floor(Math.random()*255),b:Math.floor(Math.random()*255),a:Math.floor(Math.random()*255)});for(ft=0;ft<Xt.length;ft+=1)je[ft]={r:0,g:0,b:0,a:0,n:0};for(Ht=0;Ht<Z.height;Ht+=1)for(ft=0;ft<Z.width;ft+=1){for(ne=(Ht*Z.width+ft)*4,Qe=0,Ie=1024,zt=0;zt<Xt.length;zt+=1)xe=Math.abs(Xt[zt].r-Z.data[ne])+Math.abs(Xt[zt].g-Z.data[ne+1])+Math.abs(Xt[zt].b-Z.data[ne+2])+Math.abs(Xt[zt].a-Z.data[ne+3]),xe<Ie&&(Ie=xe,Qe=zt);je[Qe].r+=Z.data[ne],je[Qe].g+=Z.data[ne+1],je[Qe].b+=Z.data[ne+2],je[Qe].a+=Z.data[ne+3],je[Qe].n+=1,X[Ht+1][ft+1]=Qe}}return{array:X,palette:Xt}}},{key:"samplepalette",value:function(Z,te){for(var X,ne=[],xe=0;xe<Z;xe+=1)X=Math.floor(Math.random()*te.data.length/4)*4,ne.push({r:te.data[X],g:te.data[X+1],b:te.data[X+2],a:te.data[X+3]});return ne}},{key:"samplepalette2",value:function(Z,te){for(var X,ne=[],xe=Math.ceil(Math.sqrt(Z)),Ie=Math.ceil(Z/xe),Qe=te.width/(xe+1),je=te.height/(Ie+1),rt=0;rt<Ie;rt+=1)for(var ft=0;ft<xe&&ne.length!==Z;ft+=1)X=Math.floor((rt+1)*je*te.width+(ft+1)*Qe)*4,ne.push({r:te.data[X],g:te.data[X+1],b:te.data[X+2],a:te.data[X+3]});return ne}},{key:"generatepalette",value:function(Z){var te=[],X,ne,xe;if(Z<8)for(var Ie=Math.floor(255/(Z-1)),Qe=0;Qe<Z;Qe+=1)te.push({r:Qe*Ie,g:Qe*Ie,b:Qe*Ie,a:255});else{var je=Math.floor(Math.pow(Z,.3333333333333333)),rt=Math.floor(255/(je-1)),ft=Z-je*je*je;for(X=0;X<je;X+=1)for(ne=0;ne<je;ne+=1)for(xe=0;xe<je;xe+=1)te.push({r:X*rt,g:ne*rt,b:xe*rt,a:255});for(X=0;X<ft;X+=1)te.push({r:Math.floor(Math.random()*255),g:Math.floor(Math.random()*255),b:Math.floor(Math.random()*255),a:Math.floor(Math.random()*255)})}return te}},{key:"layering",value:function(Z){var te=[],X=0,ne=Z.array.length,xe=Z.array[0].length,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr,Mr;for(Mr=0;Mr<Z.palette.length;Mr+=1)for(te[Mr]=[],nr=0;nr<ne;nr+=1)for(te[Mr][nr]=[],Xt=0;Xt<xe;Xt+=1)te[Mr][nr][Xt]=0;for(nr=1;nr<ne-1;nr+=1)for(Xt=1;Xt<xe-1;Xt+=1)X=Z.array[nr][Xt],Ie=Z.array[nr-1][Xt-1]===X?1:0,Qe=Z.array[nr-1][Xt]===X?1:0,je=Z.array[nr-1][Xt+1]===X?1:0,rt=Z.array[nr][Xt-1]===X?1:0,ft=Z.array[nr][Xt+1]===X?1:0,Ht=Z.array[nr+1][Xt-1]===X?1:0,zt=Z.array[nr+1][Xt]===X?1:0,qt=Z.array[nr+1][Xt+1]===X?1:0,te[X][nr+1][Xt+1]=1+ft*2+qt*4+zt*8,rt||(te[X][nr+1][Xt]=2+zt*4+Ht*8),Qe||(te[X][nr][Xt+1]=0+je*2+ft*4+8),Ie||(te[X][nr][Xt]=0+Qe*2+4+rt*8);return te}},{key:"layeringstep",value:function(Z,te){var X=[],ne=Z.array.length,xe=Z.array[0].length,Ie,Qe;for(Qe=0;Qe<ne;Qe+=1)for(X[Qe]=[],Ie=0;Ie<xe;Ie+=1)X[Qe][Ie]=0;for(Qe=1;Qe<ne;Qe+=1)for(Ie=1;Ie<xe;Ie+=1)X[Qe][Ie]=(Z.array[Qe-1][Ie-1]===te?1:0)+(Z.array[Qe-1][Ie]===te?2:0)+(Z.array[Qe][Ie-1]===te?8:0)+(Z.array[Qe][Ie]===te?4:0);return X}},{key:"pathscan",value:function(Z,te){for(var X=[],ne=0,xe=0,Ie=0,Qe=0,je=Z[0].length,rt=Z.length,ft=0,Ht=!0,zt=!1,qt,Xt=0;Xt<rt;Xt+=1)for(var nr=0;nr<je;nr+=1)if(Z[Xt][nr]===4||Z[Xt][nr]===11)for(Ie=nr,Qe=Xt,X[ne]={},X[ne].points=[],X[ne].boundingbox=[Ie,Qe,Ie,Qe],X[ne].holechildren=[],Ht=!1,xe=0,zt=Z[Xt][nr]===11,ft=1;!Ht;){if(X[ne].points[xe]={},X[ne].points[xe].x=Ie-1,X[ne].points[xe].y=Qe-1,X[ne].points[xe].t=Z[Qe][Ie],Ie-1<X[ne].boundingbox[0]&&(X[ne].boundingbox[0]=Ie-1),Ie-1>X[ne].boundingbox[2]&&(X[ne].boundingbox[2]=Ie-1),Qe-1<X[ne].boundingbox[1]&&(X[ne].boundingbox[1]=Qe-1),Qe-1>X[ne].boundingbox[3]&&(X[ne].boundingbox[3]=Qe-1),qt=this.pathscan_combined_lookup[Z[Qe][Ie]][ft],Z[Qe][Ie]=qt[0],ft=qt[1],Ie+=qt[2],Qe+=qt[3],Ie-1===X[ne].points[0].x&&Qe-1===X[ne].points[0].y)if(Ht=!0,X[ne].points.length<te)X.pop();else{if(X[ne].isholepath=!!zt,zt){for(var Mr=0,Dn=[-1,-1,je+1,rt+1],Nn=0;Nn<ne;Nn++)!X[Nn].isholepath&&this.boundingboxincludes(X[Nn].boundingbox,X[ne].boundingbox)&&this.boundingboxincludes(Dn,X[Nn].boundingbox)&&(Mr=Nn,Dn=X[Nn].boundingbox);X[Mr].holechildren.push(ne)}ne+=1}xe+=1}return X}},{key:"boundingboxincludes",value:function(Z,te){return Z[0]<te[0]&&Z[1]<te[1]&&Z[2]>te[2]&&Z[3]>te[3]}},{key:"batchpathscan",value:function(Z,te){var X=[];for(var ne in Z)Z.hasOwnProperty(ne)&&(X[ne]=this.pathscan(Z[ne],te));return X}},{key:"internodes",value:function(Z,te){var X=[],ne=0,xe=0,Ie=0,Qe=0,je=0,rt,ft;for(rt=0;rt<Z.length;rt+=1)for(X[rt]={},X[rt].points=[],X[rt].boundingbox=Z[rt].boundingbox,X[rt].holechildren=Z[rt].holechildren,X[rt].isholepath=Z[rt].isholepath,ne=Z[rt].points.length,ft=0;ft<ne;ft+=1)xe=(ft+1)%ne,Ie=(ft+2)%ne,Qe=(ft-1+ne)%ne,je=(ft-2+ne)%ne,te.rightangleenhance&&this.testrightangle(Z[rt],je,Qe,ft,xe,Ie)&&(X[rt].points.length>0&&(X[rt].points[X[rt].points.length-1].linesegment=this.getdirection(X[rt].points[X[rt].points.length-1].x,X[rt].points[X[rt].points.length-1].y,Z[rt].points[ft].x,Z[rt].points[ft].y)),X[rt].points.push({x:Z[rt].points[ft].x,y:Z[rt].points[ft].y,linesegment:this.getdirection(Z[rt].points[ft].x,Z[rt].points[ft].y,(Z[rt].points[ft].x+Z[rt].points[xe].x)/2,(Z[rt].points[ft].y+Z[rt].points[xe].y)/2)})),X[rt].points.push({x:(Z[rt].points[ft].x+Z[rt].points[xe].x)/2,y:(Z[rt].points[ft].y+Z[rt].points[xe].y)/2,linesegment:this.getdirection((Z[rt].points[ft].x+Z[rt].points[xe].x)/2,(Z[rt].points[ft].y+Z[rt].points[xe].y)/2,(Z[rt].points[xe].x+Z[rt].points[Ie].x)/2,(Z[rt].points[xe].y+Z[rt].points[Ie].y)/2)});return X}},{key:"testrightangle",value:function(Z,te,X,ne,xe,Ie){return Z.points[ne].x===Z.points[te].x&&Z.points[ne].x===Z.points[X].x&&Z.points[ne].y===Z.points[xe].y&&Z.points[ne].y===Z.points[Ie].y||Z.points[ne].y===Z.points[te].y&&Z.points[ne].y===Z.points[X].y&&Z.points[ne].x===Z.points[xe].x&&Z.points[ne].x===Z.points[Ie].x}},{key:"getdirection",value:function(Z,te,X,ne){var xe=8;return Z<X?te<ne?xe=1:te>ne?xe=7:xe=0:Z>X?te<ne?xe=3:te>ne?xe=5:xe=4:te<ne?xe=2:te>ne?xe=6:xe=8,xe}},{key:"batchinternodes",value:function(Z,te){var X=[];for(var ne in Z)Z.hasOwnProperty(ne)&&(X[ne]=this.internodes(Z[ne],te));return X}},{key:"tracepath",value:function(Z,te,X){var ne=0,xe,Ie,Qe,je={};for(je.segments=[],je.boundingbox=Z.boundingbox,je.holechildren=Z.holechildren,je.isholepath=Z.isholepath;ne<Z.points.length;){var rt;for(xe=Z.points[ne].linesegment,Ie=-1,Qe=ne+1;(Z.points[Qe].linesegment===xe||Z.points[Qe].linesegment===Ie||Ie===-1)&&Qe<Z.points.length-1;)Z.points[Qe].linesegment!==xe&&Ie===-1&&(Ie=Z.points[Qe].linesegment),Qe+=1;Qe===Z.points.length-1&&(Qe=0),je.segments=G()(rt=je.segments).call(rt,this.fitseq(Z,te,X,ne,Qe)),Qe>0?ne=Qe:ne=Z.points.length}return je}},{key:"fitseq",value:function(Z,te,X,ne,xe){var Ie;if(xe>Z.points.length||xe<0)return[];var Qe=ne,je=0,rt=!0,ft,Ht,zt,qt=xe-ne;qt<0&&(qt+=Z.points.length);for(var Xt=(Z.points[xe].x-Z.points[ne].x)/qt,nr=(Z.points[xe].y-Z.points[ne].y)/qt,Mr=(ne+1)%Z.points.length,Dn;Mr!=xe;)Dn=Mr-ne,Dn<0&&(Dn+=Z.points.length),ft=Z.points[ne].x+Xt*Dn,Ht=Z.points[ne].y+nr*Dn,zt=(Z.points[Mr].x-ft)*(Z.points[Mr].x-ft)+(Z.points[Mr].y-Ht)*(Z.points[Mr].y-Ht),zt>te&&(rt=!1),zt>je&&(Qe=Mr,je=zt),Mr=(Mr+1)%Z.points.length;if(rt)return[{type:"L",x1:Z.points[ne].x,y1:Z.points[ne].y,x2:Z.points[xe].x,y2:Z.points[xe].y}];var Nn=Qe;rt=!0,je=0;var qn=(Nn-ne)/qt,nn=(1-qn)*(1-qn),Ja=2*(1-qn)*qn,_s=qn*qn,Xs=(nn*Z.points[ne].x+_s*Z.points[xe].x-Z.points[Nn].x)/-Ja,zi=(nn*Z.points[ne].y+_s*Z.points[xe].y-Z.points[Nn].y)/-Ja;for(Mr=ne+1;Mr!=xe;)qn=(Mr-ne)/qt,nn=(1-qn)*(1-qn),Ja=2*(1-qn)*qn,_s=qn*qn,ft=nn*Z.points[ne].x+Ja*Xs+_s*Z.points[xe].x,Ht=nn*Z.points[ne].y+Ja*zi+_s*Z.points[xe].y,zt=(Z.points[Mr].x-ft)*(Z.points[Mr].x-ft)+(Z.points[Mr].y-Ht)*(Z.points[Mr].y-Ht),zt>X&&(rt=!1),zt>je&&(Qe=Mr,je=zt),Mr=(Mr+1)%Z.points.length;if(rt)return[{type:"Q",x1:Z.points[ne].x,y1:Z.points[ne].y,x2:Xs,y2:zi,x3:Z.points[xe].x,y3:Z.points[xe].y}];var vl=Nn;return G()(Ie=this.fitseq(Z,te,X,ne,vl)).call(Ie,this.fitseq(Z,te,X,vl,xe))}},{key:"batchtracepaths",value:function(Z,te,X){var ne=[];for(var xe in Z)Z.hasOwnProperty(xe)&&ne.push(this.tracepath(Z[xe],te,X));return ne}},{key:"batchtracelayers",value:function(Z,te,X){var ne=[];for(var xe in Z)Z.hasOwnProperty(xe)&&(ne[xe]=this.batchtracepaths(Z[xe],te,X));return ne}},{key:"roundtodec",value:function(Z,te){return Number(Z.toFixed(te))}},{key:"svgpathstring",value:function(Z,te,X,ne){var xe,Ie,Qe=Z.layers[te],je=Qe[X],rt="",ft;if(ne.linefilter&&je.segments.length<3)return rt;if(rt=G()(xe="<path ".concat(ne.desc?G()(Ie='desc="l '.concat(te," p ")).call(Ie,X,'" '):"")).call(xe,this.tosvgcolorstr(Z.palette[te],ne),'d="'),ne.roundcoords===-1){var Ht;for(rt+=G()(Ht="M ".concat(je.segments[0].x1*ne.scale," ")).call(Ht,je.segments[0].y1*ne.scale," "),ft=0;ft<je.segments.length;ft++){var zt,qt;if(rt+=G()(zt=G()(qt="".concat(je.segments[ft].type," ")).call(qt,je.segments[ft].x2*ne.scale," ")).call(zt,je.segments[ft].y2*ne.scale," "),je.segments[ft].hasOwnProperty("x3")){var Xt;rt+=G()(Xt="".concat(je.segments[ft].x3*ne.scale," ")).call(Xt,je.segments[ft].y3*ne.scale," ")}}rt+="Z "}else{var nr;for(rt+=G()(nr="M ".concat(this.roundtodec(je.segments[0].x1*ne.scale,ne.roundcoords)," ")).call(nr,this.roundtodec(je.segments[0].y1*ne.scale,ne.roundcoords)," "),ft=0;ft<je.segments.length;ft++){var Mr,Dn;if(rt+=G()(Mr=G()(Dn="".concat(je.segments[ft].type," ")).call(Dn,this.roundtodec(je.segments[ft].x2*ne.scale,ne.roundcoords)," ")).call(Mr,this.roundtodec(je.segments[ft].y2*ne.scale,ne.roundcoords)," "),je.segments[ft].hasOwnProperty("x3")){var Nn;rt+=G()(Nn="".concat(this.roundtodec(je.segments[ft].x3*ne.scale,ne.roundcoords)," ")).call(Nn,this.roundtodec(je.segments[ft].y3*ne.scale,ne.roundcoords)," ")}}rt+="Z "}for(var qn=0;qn<je.holechildren.length;qn++){var nn=Qe[je.holechildren[qn]];if(ne.roundcoords===-1){if(nn.segments[nn.segments.length-1].hasOwnProperty("x3")){var Ja;rt+=G()(Ja="M ".concat(nn.segments[nn.segments.length-1].x3*ne.scale," ")).call(Ja,nn.segments[nn.segments.length-1].y3*ne.scale," ")}else{var _s;rt+=G()(_s="M ".concat(nn.segments[nn.segments.length-1].x2*ne.scale," ")).call(_s,nn.segments[nn.segments.length-1].y2*ne.scale," ")}for(ft=nn.segments.length-1;ft>=0;ft--){var Xs;if(rt+="".concat(nn.segments[ft].type," "),nn.segments[ft].hasOwnProperty("x3")){var zi;rt+=G()(zi="".concat(nn.segments[ft].x2*ne.scale," ")).call(zi,nn.segments[ft].y2*ne.scale," ")}rt+=G()(Xs="".concat(nn.segments[ft].x1*ne.scale," ")).call(Xs,nn.segments[ft].y1*ne.scale," ")}}else{if(nn.segments[nn.segments.length-1].hasOwnProperty("x3")){var vl;rt+=G()(vl="M ".concat(this.roundtodec(nn.segments[nn.segments.length-1].x3*ne.scale)," ")).call(vl,this.roundtodec(nn.segments[nn.segments.length-1].y3*ne.scale)," ")}else{var Pu;rt+=G()(Pu="M ".concat(this.roundtodec(nn.segments[nn.segments.length-1].x2*ne.scale)," ")).call(Pu,this.roundtodec(nn.segments[nn.segments.length-1].y2*ne.scale)," ")}for(ft=nn.segments.length-1;ft>=0;ft--){var Ls;if(rt+="".concat(nn.segments[ft].type," "),nn.segments[ft].hasOwnProperty("x3")){var ud;rt+=G()(ud="".concat(this.roundtodec(nn.segments[ft].x2*ne.scale)," ")).call(ud,this.roundtodec(nn.segments[ft].y2*ne.scale)," ")}rt+=G()(Ls="".concat(this.roundtodec(nn.segments[ft].x1*ne.scale)," ")).call(Ls,this.roundtodec(nn.segments[ft].y1*ne.scale)," ")}}rt+="Z "}if(rt+='" />',ne.lcpr||ne.qcpr){for(ft=0;ft<je.segments.length;ft++){if(je.segments[ft].hasOwnProperty("x3")&&ne.qcpr){var Bh,Fh,cd,fd,dd,Zs,hd,Ad,pd,md,Mh,gd,Dh,Cc;rt+=G()(Bh=G()(Fh=G()(cd='<circle cx="'.concat(je.segments[ft].x2*ne.scale,'" cy="')).call(cd,je.segments[ft].y2*ne.scale,'" r="')).call(Fh,ne.qcpr,'" fill="cyan" stroke-width="')).call(Bh,ne.qcpr*.2,'" stroke="black" />'),rt+=G()(fd=G()(dd=G()(Zs='<circle cx="'.concat(je.segments[ft].x3*ne.scale,'" cy="')).call(Zs,je.segments[ft].y3*ne.scale,'" r="')).call(dd,ne.qcpr,'" fill="white" stroke-width="')).call(fd,ne.qcpr*.2,'" stroke="black" />'),rt+=G()(hd=G()(Ad=G()(pd=G()(md='<line x1="'.concat(je.segments[ft].x1*ne.scale,'" y1="')).call(md,je.segments[ft].y1*ne.scale,'" x2="')).call(pd,je.segments[ft].x2*ne.scale,'" y2="')).call(Ad,je.segments[ft].y2*ne.scale,'" stroke-width="')).call(hd,ne.qcpr*.2,'" stroke="cyan" />'),rt+=G()(Mh=G()(gd=G()(Dh=G()(Cc='<line x1="'.concat(je.segments[ft].x2*ne.scale,'" y1="')).call(Cc,je.segments[ft].y2*ne.scale,'" x2="')).call(Dh,je.segments[ft].x3*ne.scale,'" y2="')).call(gd,je.segments[ft].y3*ne.scale,'" stroke-width="')).call(Mh,ne.qcpr*.2,'" stroke="cyan" />')}if(!je.segments[ft].hasOwnProperty("x3")&&ne.lcpr){var pf,vd,ru;rt+=G()(pf=G()(vd=G()(ru='<circle cx="'.concat(je.segments[ft].x2*ne.scale,'" cy="')).call(ru,je.segments[ft].y2*ne.scale,'" r="')).call(vd,ne.lcpr,'" fill="white" stroke-width="')).call(pf,ne.lcpr*.2,'" stroke="black" />')}}for(var qn=0;qn<je.holechildren.length;qn++){var nn=Qe[je.holechildren[qn]];for(ft=0;ft<nn.segments.length;ft++){if(nn.segments[ft].hasOwnProperty("x3")&&ne.qcpr){var Oh,Xo,Sc,$p,Kp,Yp,Xp,Zp,Jp,qp,em,Lh,tm,rm;rt+=G()(Oh=G()(Xo=G()(Sc='<circle cx="'.concat(nn.segments[ft].x2*ne.scale,'" cy="')).call(Sc,nn.segments[ft].y2*ne.scale,'" r="')).call(Xo,ne.qcpr,'" fill="cyan" stroke-width="')).call(Oh,ne.qcpr*.2,'" stroke="black" />'),rt+=G()($p=G()(Kp=G()(Yp='<circle cx="'.concat(nn.segments[ft].x3*ne.scale,'" cy="')).call(Yp,nn.segments[ft].y3*ne.scale,'" r="')).call(Kp,ne.qcpr,'" fill="white" stroke-width="')).call($p,ne.qcpr*.2,'" stroke="black" />'),rt+=G()(Xp=G()(Zp=G()(Jp=G()(qp='<line x1="'.concat(nn.segments[ft].x1*ne.scale,'" y1="')).call(qp,nn.segments[ft].y1*ne.scale,'" x2="')).call(Jp,nn.segments[ft].x2*ne.scale,'" y2="')).call(Zp,nn.segments[ft].y2*ne.scale,'" stroke-width="')).call(Xp,ne.qcpr*.2,'" stroke="cyan" />'),rt+=G()(em=G()(Lh=G()(tm=G()(rm='<line x1="'.concat(nn.segments[ft].x2*ne.scale,'" y1="')).call(rm,nn.segments[ft].y2*ne.scale,'" x2="')).call(tm,nn.segments[ft].x3*ne.scale,'" y2="')).call(Lh,nn.segments[ft].y3*ne.scale,'" stroke-width="')).call(em,ne.qcpr*.2,'" stroke="cyan" />')}if(!nn.segments[ft].hasOwnProperty("x3")&&ne.lcpr){var nm,i0,s0;rt+=G()(nm=G()(i0=G()(s0='<circle cx="'.concat(nn.segments[ft].x2*ne.scale,'" cy="')).call(s0,nn.segments[ft].y2*ne.scale,'" r="')).call(i0,ne.lcpr,'" fill="white" stroke-width="')).call(nm,ne.lcpr*.2,'" stroke="black" />')}}}}return rt}},{key:"getsvgstring",value:function(Z,te){var X,ne,xe;te=this.checkoptions(te);for(var Ie=Z.width*te.scale,Qe=Z.height*te.scale,je=G()(X="<svg ".concat(te.viewbox?G()(ne='viewBox="0 0 '.concat(Ie," ")).call(ne,Qe,'" '):G()(xe='width="'.concat(Ie,'" height="')).call(xe,Qe,'" '),'version="1.1" xmlns="http://www.w3.org/2000/svg" desc="Created with imagetracer.js version ')).call(X,this.versionnumber,'" >'),rt=0;rt<Z.layers.length;rt+=1)for(var ft=0;ft<Z.layers[rt].length;ft+=1)Z.layers[rt][ft].isholepath||(je+=this.svgpathstring(Z,rt,ft,te));return je+="</svg>",je}},{key:"compareNumbers",value:function(Z,te){return Z-te}},{key:"torgbastr",value:function(Z){var te,X,ne;return G()(te=G()(X=G()(ne="rgba(".concat(Z.r,",")).call(ne,Z.g,",")).call(X,Z.b,",")).call(te,Z.a,")")}},{key:"tosvgcolorstr",value:function(Z,te){var X,ne,xe,Ie,Qe,je,rt;return G()(X=G()(ne=G()(xe=G()(Ie=G()(Qe=G()(je=G()(rt='fill="rgb('.concat(Z.r,",")).call(rt,Z.g,",")).call(je,Z.b,')" stroke="rgb(')).call(Qe,Z.r,",")).call(Ie,Z.g,",")).call(xe,Z.b,')" stroke-width="')).call(ne,te.strokewidth,'" opacity="')).call(X,Z.a/255,'" ')}},{key:"appendSVGString",value:function(Z,te){var X;te?(X=document.getElementById(te),X||(X=document.createElement("div"),X.id=te,document.body.appendChild(X))):(X=document.createElement("div"),document.body.appendChild(X)),X.innerHTML+=Z}},{key:"blur",value:function(Z,te,X){var ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt={width:Z.width,height:Z.height,data:[]};if(te=Math.floor(te),te<1)return Z;te>5&&(te=5),X=Math.abs(X),X>1024&&(X=1024);var nr=this.gks[te-1];for(xe=0;xe<Z.height;xe++)for(ne=0;ne<Z.width;ne++){for(rt=0,ft=0,Ht=0,zt=0,qt=0,Ie=-te;Ie<te+1;Ie++)ne+Ie>0&&ne+Ie<Z.width&&(je=(xe*Z.width+ne+Ie)*4,rt+=Z.data[je]*nr[Ie+te],ft+=Z.data[je+1]*nr[Ie+te],Ht+=Z.data[je+2]*nr[Ie+te],zt+=Z.data[je+3]*nr[Ie+te],qt+=nr[Ie+te]);je=(xe*Z.width+ne)*4,Xt.data[je]=Math.floor(rt/qt),Xt.data[je+1]=Math.floor(ft/qt),Xt.data[je+2]=Math.floor(Ht/qt),Xt.data[je+3]=Math.floor(zt/qt)}var Mr=new Uint8ClampedArray(Xt.data);for(xe=0;xe<Z.height;xe++)for(ne=0;ne<Z.width;ne++){for(rt=0,ft=0,Ht=0,zt=0,qt=0,Ie=-te;Ie<te+1;Ie++)xe+Ie>0&&xe+Ie<Z.height&&(je=((xe+Ie)*Z.width+ne)*4,rt+=Mr[je]*nr[Ie+te],ft+=Mr[je+1]*nr[Ie+te],Ht+=Mr[je+2]*nr[Ie+te],zt+=Mr[je+3]*nr[Ie+te],qt+=nr[Ie+te]);je=(xe*Z.width+ne)*4,Xt.data[je]=Math.floor(rt/qt),Xt.data[je+1]=Math.floor(ft/qt),Xt.data[je+2]=Math.floor(Ht/qt),Xt.data[je+3]=Math.floor(zt/qt)}for(xe=0;xe<Z.height;xe++)for(ne=0;ne<Z.width;ne++)je=(xe*Z.width+ne)*4,Qe=Math.abs(Xt.data[je]-Z.data[je])+Math.abs(Xt.data[je+1]-Z.data[je+1])+Math.abs(Xt.data[je+2]-Z.data[je+2])+Math.abs(Xt.data[je+3]-Z.data[je+3]),Qe>X&&(Xt.data[je]=Z.data[je],Xt.data[je+1]=Z.data[je+1],Xt.data[je+2]=Z.data[je+2],Xt.data[je+3]=Z.data[je+3]);return Xt}},{key:"loadImage",value:function(Z,te,X){var ne=new Image;X&&X.corsenabled&&(ne.crossOrigin="Anonymous"),ne.src=Z,ne.onload=function(){var xe=document.createElement("canvas");xe.width=ne.width,xe.height=ne.height;var Ie=xe.getContext("2d");Ie.drawImage(ne,0,0),te(xe)}}},{key:"getImgdata",value:function(Z){var te=Z.getContext("2d");return te.getImageData(0,0,Z.width,Z.height)}},{key:"drawLayers",value:function(Z,te,X,ne){X=X||1;var xe,Ie,Qe,je,rt,ft;ne?(ft=document.getElementById(ne),ft||(ft=document.createElement("div"),ft.id=ne,document.body.appendChild(ft))):(ft=document.createElement("div"),document.body.appendChild(ft));for(rt in Z)if(Z.hasOwnProperty(rt)){xe=Z[rt][0].length,Ie=Z[rt].length;var Ht=document.createElement("canvas");Ht.width=xe*X,Ht.height=Ie*X;var zt=Ht.getContext("2d");for(je=0;je<Ie;je+=1)for(Qe=0;Qe<xe;Qe+=1)zt.fillStyle=this.torgbastr(te[Z[rt][je][Qe]%te.length]),zt.fillRect(Qe*X,je*X,X,X);ft.appendChild(Ht)}}}],[{key:"tracerDefaultOption",value:function(){return{pathomit:100,ltres:.1,qtres:1,scale:1,strokewidth:5,viewbox:!1,linefilter:!0,desc:!1,rightangleenhance:!1,pal:[{r:0,g:0,b:0,a:255},{r:255,g:255,b:255,a:255}]}}}]),Me})(),hg={getActions:function(){return{main:this._mainAction(),shape:this._shapeAction(),crop:this._cropAction(),resize:this._resizeAction(),flip:this._flipAction(),rotate:this._rotateAction(),text:this._textAction(),mask:this._maskAction(),draw:this._drawAction(),icon:this._iconAction(),filter:this._filterAction(),history:this._historyAction()}},_mainAction:function(){var ce=this,Z=function(){ce.ui.submenu==="crop"&&(ce.stopDrawingMode(),ce.ui.changeMenu("crop"))},te=function(rt){ce.ui.submenu==="rotate"&&ce.ui.rotate.setRangeBarAngle("setAngle",rt)},X=function(rt){ce.ui.submenu==="filter"&&Dl()(ce.ui).setFilterState(rt)},ne=function(rt){return te(rt),X(rt),rt},xe=function(){var rt=ce._graphics.getZoomMode();ce.stopDrawingMode(),rt!==ze.ZOOM?(ce.startDrawingMode(Qt.ZOOM),ce._graphics.startZoomInMode()):ce._graphics.endZoomInMode()},Ie=function(){var rt=ce._graphics.getZoomMode();ce.stopDrawingMode(),rt!==ze.HAND?(ce.startDrawingMode(Qt.ZOOM),ce._graphics.startHandMode()):ce._graphics.endHandMode()},Qe=function(){Dl()(ce.ui)&&Dl()(ce.ui).initFilterCheckBoxState()};return pe()({initLoadImage:function(rt,ft){return ce.loadImageFromURL(rt,ft).then(function(Ht){Z(),ce.ui.initializeImgUrl=rt,ce.ui.resizeEditor({imageSize:Ht}),ce.clearUndoStack(),ce._invoker.fire(ar.EXECUTE_COMMAND,Tt.LOAD_IMAGE)})},undo:function(){ce.isEmptyUndoStack()||(Z(),ce.deactivateAll(),ce.undo().then(ne))},redo:function(){ce.isEmptyRedoStack()||(Z(),ce.deactivateAll(),ce.redo().then(ne))},reset:function(){Z(),ce.loadImageFromURL(ce.ui.initializeImgUrl,"resetImage").then(function(rt){Z(),Qe(),ce.ui.resizeEditor({imageSize:rt}),ce.clearUndoStack(),ce._initHistory()})},delete:function(){ce.ui.changeHelpButtonEnabled("delete",!1),Z(),ce.removeActiveObject(),ce.activeObjectId=null},deleteAll:function(){Z(),ce.clearObjects(),ce.ui.changeHelpButtonEnabled("delete",!1),ce.ui.changeHelpButtonEnabled("deleteAll",!1)},load:function(rt){$r()||alert("This browser does not support file-api"),ce.ui.initializeImgUrl=Y().createObjectURL(rt),ce.loadImageFromFile(rt).then(function(ft){Z(),Qe(),ce.clearUndoStack(),ce.ui.activeMenuEvent(),ce.ui.resizeEditor({imageSize:ft}),ce._clearHistory(),ce._invoker.fire(ar.EXECUTE_COMMAND,Tt.LOAD_IMAGE)}).catch(function(ft){return ie().reject(ft)})},download:function(){var rt=ce.toDataURL(),ft=ce.getImageName(),Ht,zt,qt;$r()&&window.saveAs?(Ht=ri(rt),zt=Ht.type.split("/")[1],ft.split(".").pop()!==zt&&(ft+=".".concat(zt)),saveAs(Ht,ft)):(qt=window.open(),qt.document.body.innerHTML="<img src='".concat(rt,"'>"))},history:function(rt){ce.ui.toggleHistoryMenu(rt)},zoomIn:function(){ce.ui.toggleZoomButtonStatus("zoomIn"),ce.deactivateAll(),xe()},zoomOut:function(){ce._graphics.zoomOut()},hand:function(){ce.ui.offZoomInButtonStatus(),ce.ui.toggleZoomButtonStatus("hand"),ce.deactivateAll(),Ie()}},this._commonAction())},_iconAction:function(){var ce=this;return pe()({changeColor:function(te){ce.activeObjectId&&ce.changeIconColor(ce.activeObjectId,te)},addIcon:function(te,X){ce.startDrawingMode("ICON"),ce.setDrawingIcon(te,X)},cancelAddIcon:function(){ce.ui.icon.clearIconType(),ce.changeSelectableAll(!0),ce.changeCursor("default"),ce.stopDrawingMode()},registerDefaultIcons:function(te,X){var ne={};ne[te]=X,ce.registerIcons(ne)},registerCustomIcon:function(te,X){var ne=new Wf;ne.imageToSVG(te,function(xe){var Ie=xe.match(/path[^>]*d="([^"]*)"/),Qe=Ke(Ie,2),je=Qe[1],rt={};rt[X.name]=je,ce.registerIcons(rt),ce.addIcon(X.name,{left:100,top:100})},Wf.tracerDefaultOption())}},this._commonAction())},_drawAction:function(){var ce=this;return pe()({setDrawMode:function(te,X){ce.stopDrawingMode(),te==="free"?ce.startDrawingMode("FREE_DRAWING",X):ce.startDrawingMode("LINE_DRAWING",X)},setColor:function(te){ce.setBrush({color:te})}},this._commonAction())},_maskAction:function(){var ce=this;return pe()({loadImageFromURL:function(te,X){return ce.loadImageFromURL(ce.toDataURL(),"FilterImage").then(function(){ce.addImageObject(te).then(function(){Y().revokeObjectURL(X)}),ce._invoker.fire(ar.EXECUTE_COMMAND,Tt.LOAD_MASK_IMAGE)})},applyFilter:function(){ce.applyFilter("mask",{maskObjId:ce.activeObjectId})}},this._commonAction())},_textAction:function(){var ce=this;return pe()({changeTextStyle:function(te,X){ce.activeObjectId&&ce.changeTextStyle(ce.activeObjectId,te,X)}},this._commonAction())},_rotateAction:function(){var ce=this;return pe()({rotate:function(te,X){ce.rotate(te,X),ce.ui.resizeEditor(),ce.ui.rotate.setRangeBarAngle("rotate",te)},setAngle:function(te,X){ce.setAngle(te,X),ce.ui.resizeEditor(),ce.ui.rotate.setRangeBarAngle("setAngle",te)}},this._commonAction())},_shapeAction:function(){var ce=this;return pe()({changeShape:function(te,X){ce.activeObjectId&&ce.changeShape(ce.activeObjectId,te,X)},setDrawingShape:function(te){ce.setDrawingShape(te)}},this._commonAction())},_cropAction:function(){var ce=this;return pe()({crop:function(){var te=ce.getCropzoneRect();te&&!Kl(te)&&ce.crop(te).then(function(){ce.stopDrawingMode(),ce.ui.resizeEditor(),ce.ui.changeMenu("crop"),ce._invoker.fire(ar.EXECUTE_COMMAND,Tt.CROP)}).catch(function(X){return ie().reject(X)})},cancel:function(){ce.stopDrawingMode(),ce.ui.changeMenu("crop")},preset:function(te){switch(te){case"preset-square":ce.setCropzoneRect(1/1);break;case"preset-3-2":ce.setCropzoneRect(3/2);break;case"preset-4-3":ce.setCropzoneRect(4/3);break;case"preset-5-4":ce.setCropzoneRect(5/4);break;case"preset-7-5":ce.setCropzoneRect(7/5);break;case"preset-16-9":ce.setCropzoneRect(16/9);break;default:ce.setCropzoneRect(),ce.ui.crop.changeApplyButtonStatus(!1);break}}},this._commonAction())},_resizeAction:function(){var ce=this;return pe()({getCurrentDimensions:function(){return ce._graphics.getCurrentDimensions()},preview:function(te,X,ne){var xe=ce._graphics.getCurrentDimensions(),Ie=function(){return xe.width/xe.height},Qe={};switch(te){case"width":Qe.width=X,ne?Qe.height=X/Ie():Qe.height=xe.height;break;case"height":Qe.height=X,ne?Qe.width=X*Ie():Qe.width=xe.width;break;default:Qe=xe}ce._graphics.resize(Qe).then(function(){ce.ui.resizeEditor()}),ne&&(ce.ui.resize.setWidthValue(Qe.width),ce.ui.resize.setHeightValue(Qe.height))},lockAspectRatio:function(te,X,ne){var xe=ce._graphics.getCurrentDimensions(),Ie=xe.width,Qe=xe.height,je=Ie/Qe;if(te)if(Ie>Qe){var rt=ne/je,ft=X*je;ce.ui.resize.setLimit({minWidth:ft>X?ft:X,minHeight:X,maxWidth:ne,maxHeight:rt<ne?rt:ne})}else{var Ht=ne*je,zt=X/je;ce.ui.resize.setLimit({minWidth:X,minHeight:zt>X?zt:X,maxWidth:Ht<ne?Ht:ne,maxHeight:ne})}else ce.ui.resize.setLimit({minWidth:X,minHeight:X,maxWidth:ne,maxHeight:ne})},resize:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;te||(te=ce._graphics.getCurrentDimensions()),ce.resize(te).then(function(){ce._graphics.setOriginalDimensions(te),ce.stopDrawingMode(),ce.ui.resizeEditor(),ce.ui.changeMenu("resize")}).catch(function(X){return ie().reject(X)})},reset:function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,X=ce._graphics.getOriginalDimensions();ce.ui.resize.setWidthValue(X.width,!0),ce.ui.resize.setHeightValue(X.height,!0),ce._graphics.resize(X).then(function(){te||(ce.stopDrawingMode(),ce.ui.resizeEditor(),ce.ui.changeMenu("resize"))})}},this._commonAction())},_flipAction:function(){var ce=this;return pe()({flip:function(te){return ce[te]()}},this._commonAction())},_filterAction:function(){var ce=this;return pe()({applyFilter:function(te,X,ne,xe){te?ce.applyFilter(X,ne,xe):ce.hasFilter(X)&&ce.removeFilter(X)}},this._commonAction())},setReAction:function(){var ce=this;this.on({undoStackChanged:function(te){te?(ce.ui.changeHelpButtonEnabled("undo",!0),ce.ui.changeHelpButtonEnabled("reset",!0)):(ce.ui.changeHelpButtonEnabled("undo",!1),ce.ui.changeHelpButtonEnabled("reset",!1)),ce.ui.resizeEditor()},redoStackChanged:function(te){te?ce.ui.changeHelpButtonEnabled("redo",!0):ce.ui.changeHelpButtonEnabled("redo",!1),ce.ui.resizeEditor()},objectActivated:function(te){var X,ne;ce.activeObjectId=te.id,ce.ui.changeHelpButtonEnabled("delete",!0),ce.ui.changeHelpButtonEnabled("deleteAll",!0),te.type==="cropzone"?ce.ui.crop.changeApplyButtonStatus(!0):l()(X=["rect","circle","triangle"]).call(X,te.type)>-1?(ce.stopDrawingMode(),ce.ui.submenu!=="shape"&&ce.ui.changeMenu("shape",!1,!1),ce.ui.shape.setShapeStatus({strokeColor:te.stroke,strokeWidth:te.strokeWidth,fillColor:wt()(te)}),ce.ui.shape.setMaxStrokeValue(Math.min(te.width,te.height))):te.type==="path"||te.type==="line"?ce.ui.submenu!=="draw"&&(ce.ui.changeMenu("draw",!1,!1),ce.ui.draw.changeStandbyMode()):l()(ne=["i-text","text"]).call(ne,te.type)>-1?(ce.ui.submenu!=="text"&&ce.ui.changeMenu("text",!1,!1),ce.ui.text.setTextStyleStateOnAction(te)):te.type==="icon"&&(ce.stopDrawingMode(),ce.ui.submenu!=="icon"&&ce.ui.changeMenu("icon",!1,!1),ce.ui.icon.setIconPickerColor(wt()(te)))},addText:function(te){var X=ce.ui.text,ne=X.textColor,xe=X.fontSize,Ie=X.fontStyle,Qe=X.fontWeight,je=X.underline,rt="Noto Sans";ce.addText("Double Click",{position:te.originPosition,styles:{fill:ne,fontSize:xe,fontFamily:rt,fontStyle:Ie,fontWeight:Qe,underline:je}}).then(function(){ce.changeCursor("default")})},addObjectAfter:function(te){var X;te.type==="icon"?ce.ui.icon.changeStandbyMode():l()(X=["rect","circle","triangle"]).call(X,te.type)>-1&&(ce.ui.shape.setMaxStrokeValue(Math.min(te.width,te.height)),ce.ui.shape.changeStandbyMode())},objectScaled:function(te){var X,ne;if(l()(X=["i-text","text"]).call(X,te.type)>-1)ce.ui.text.fontSize=Zr(te.fontSize);else if(l()(ne=["rect","circle","triangle"]).call(ne,te.type)>=0){var xe=te.width,Ie=te.height,Qe=ce.ui.shape.getStrokeValue();xe<Qe&&ce.ui.shape.setStrokeValue(xe),Ie<Qe&&ce.ui.shape.setStrokeValue(Ie)}},selectionCleared:function(){ce.activeObjectId=null,ce.ui.submenu==="text"?ce.changeCursor("text"):po(["draw","crop","resize"],ce.ui.submenu)||ce.stopDrawingMode()}})},_historyAction:function(){var ce=this;return{undo:function(te){return ce.undo(te)},redo:function(te){return ce.redo(te)}}},_commonAction:function(){var ce=this,Z,te,X,ne,xe=Qt.TEXT,Ie=Qt.CROPPER,Qe=Qt.SHAPE,je=Qt.ZOOM,rt=Qt.RESIZE;return{modeChange:function(Ht){switch(Ht){case hr.TEXT:ce._changeActivateMode(xe);break;case hr.CROP:ce.startDrawingMode(Ie);break;case hr.SHAPE:ce._changeActivateMode(Qe),ce.setDrawingShape(ce.ui.shape.type,ce.ui.shape.options);break;case hr.ZOOM:ce.startDrawingMode(je);break;case hr.RESIZE:ce.startDrawingMode(rt);break}},deactivateAll:Q()(Z=this.deactivateAll).call(Z,this),changeSelectableAll:Q()(te=this.changeSelectableAll).call(te,this),discardSelection:Q()(X=this.discardSelection).call(X,this),stopDrawingMode:Q()(ne=this.stopDrawingMode).call(ne,this)}},mixin:function(ce){pe()(ce.prototype,this)}},SA=t(602),kA=t.n(SA),TA=t(5573),Bi=t.n(TA),Fs=(function(){function Me(ce,Z){R(this,Me),this.name=ce,this.graphics=Z}return V(Me,[{key:"fire",value:function(){for(var Z=this.graphics,te=arguments.length,X=new Array(te),ne=0;ne<te;ne++)X[ne]=arguments[ne];return this.graphics.fire.apply(Z,X)}},{key:"setCanvasImage",value:function(Z,te){this.graphics.setCanvasImage(Z,te)}},{key:"getCanvasElement",value:function(){return this.graphics.getCanvasElement()}},{key:"getCanvas",value:function(){return this.graphics.getCanvas()}},{key:"getCanvasImage",value:function(){return this.graphics.getCanvasImage()}},{key:"getImageName",value:function(){return this.graphics.getImageName()}},{key:"getEditor",value:function(){return this.graphics.getEditor()}},{key:"getName",value:function(){return this.name}},{key:"setImageProperties",value:function(Z,te){this.graphics.setImageProperties(Z,te)}},{key:"setCanvasCssDimension",value:function(Z){this.graphics.setCanvasCssDimension(Z)}},{key:"setCanvasBackstoreDimension",value:function(Z){this.graphics.setCanvasBackstoreDimension(Z)}},{key:"adjustCanvasDimension",value:function(){this.graphics.adjustCanvasDimension()}},{key:"adjustCanvasDimensionBase",value:function(){this.graphics.adjustCanvasDimensionBase()}}]),Me})(),Fo=Fs;function np(Me){var ce=EA();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function EA(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Ag={padding:0,crossOrigin:"Anonymous"},$d=(function(Me){Za(Z,Me);var ce=np(Z);function Z(te){return R(this,Z),ce.call(this,sr.IMAGE_LOADER,te)}return V(Z,[{key:"load",value:function(X,ne){var xe=this,Ie;if(!X&&!ne){var Qe=this.getCanvas();Qe.backgroundImage=null,Qe.renderAll(),Ie=new(ie())(function(je){xe.setCanvasImage("",null),je()})}else Ie=this._setBackgroundImage(ne).then(function(je){return xe.setCanvasImage(X,je),xe.adjustCanvasDimension(),je});return Ie}},{key:"_setBackgroundImage",value:function(X){var ne=this;return X?new(ie())(function(xe,Ie){var Qe=ne.getCanvas();Qe.setBackgroundImage(X,function(){var je=Qe.backgroundImage;je&&je.getElement()?xe(je):Ie(Ge.loadingImageFailed)},Ag)}):ie().reject(Ge.loadImage)}}]),Z})(Fo),Yc=$d,Xc="tl",fc="tr",Zc="mt",Jc="ml",Gf="mr",dc="mb",ap="bl",_u="br",Qi=[Xc,fc,Zc,Jc,Gf,dc,ap,_u],Ms=function(){};function rs(Me){return l()(Qi).call(Qi,Me)>=0}function bs(Me,ce){return Me>ce?"width":"height"}var qc=K.fabric.util.createClass(K.fabric.Rect,{initialize:function(ce,Z,te){Z=pe()(Z,te),Z.type="cropzone",this.callSuper("initialize",Z),this._addEventHandler(),this.canvas=ce,this.options=Z},canvasEventDelegation:function(ce){var Z,te="unregistered",X=this.canvasEventTrigger[ce]!==Ms;return X?te="registered":l()(Z=[ar.OBJECT_MOVED,ar.OBJECT_SCALED]).call(Z,ce)<0&&(te="none"),te},canvasEventRegister:function(ce,Z){this.canvasEventTrigger[ce]=Z},_addEventHandler:function(){var ce,Z,te,X,ne;this.canvasEventTrigger=(ce={},L(ce,ar.OBJECT_MOVED,Ms),L(ce,ar.OBJECT_SCALED,Ms),ce),this.on({moving:Q()(Z=this._onMoving).call(Z,this),scaling:Q()(te=this._onScaling).call(te,this)}),K.fabric.util.addListener(document,"keydown",Q()(X=this._onKeyDown).call(X,this)),K.fabric.util.addListener(document,"keyup",Q()(ne=this._onKeyUp).call(ne,this))},_renderCropzone:function(ce){var Z=7,te=7,X=this.flipX?-1:1,ne=this.flipY?-1:1,xe=X/this.scaleX,Ie=ne/this.scaleY;ce.scale(xe,Ie),this._fillOuterRect(ce,"rgba(0, 0, 0, 0.5)"),this.options.lineWidth?(this._fillInnerRect(ce),this._strokeBorder(ce,"rgb(255, 255, 255)",{lineWidth:this.options.lineWidth})):(this._strokeBorder(ce,"rgb(0, 0, 0)",{lineDashWidth:Z}),this._strokeBorder(ce,"rgb(255, 255, 255)",{lineDashWidth:Z,lineDashOffset:te})),ce.scale(1/xe,1/Ie)},_render:function(ce){this.callSuper("_render",ce),this._renderCropzone(ce)},_fillOuterRect:function(ce,Z){var te=this._getCoordinates(),X=te.x,ne=te.y;ce.save(),ce.fillStyle=Z,ce.beginPath(),ce.moveTo(X[0]-1,ne[0]-1),ce.lineTo(X[3]+1,ne[0]-1),ce.lineTo(X[3]+1,ne[3]+1),ce.lineTo(X[0]-1,ne[3]+1),ce.lineTo(X[0]-1,ne[0]-1),ce.closePath(),ce.moveTo(X[1],ne[1]),ce.lineTo(X[1],ne[2]),ce.lineTo(X[2],ne[2]),ce.lineTo(X[2],ne[1]),ce.lineTo(X[1],ne[1]),ce.closePath(),wt()(ce).call(ce),ce.restore()},_fillInnerRect:function(ce){var Z=this._getCoordinates(),te=Z.x,X=Z.y,ne=this._caculateInnerPosition(te,(te[2]-te[1])/3),xe=this._caculateInnerPosition(X,(X[2]-X[1])/3);ce.save(),ce.strokeStyle="rgba(255, 255, 255, 0.7)",ce.lineWidth=this.options.lineWidth,ce.beginPath(),ce.moveTo(ne[0],xe[1]),ce.lineTo(ne[3],xe[1]),ce.moveTo(ne[0],xe[2]),ce.lineTo(ne[3],xe[2]),ce.moveTo(ne[1],xe[0]),ce.lineTo(ne[1],xe[3]),ce.moveTo(ne[2],xe[0]),ce.lineTo(ne[2],xe[3]),ce.stroke(),ce.closePath(),ce.restore()},_caculateInnerPosition:function(ce,Z){var te=[];return te[0]=ce[1],te[1]=ce[1]+Z,te[2]=ce[1]+Z*2,te[3]=ce[2],te},_getCoordinates:function(){var ce,Z,te=this.canvas,X=this.width,ne=this.height,xe=this.left,Ie=this.top,Qe=X/2,je=ne/2,rt=te.getHeight(),ft=te.getWidth();return{x:Ni()(ce=[-(Qe+xe),-Qe,Qe,Qe+(ft-xe-X)]).call(ce,Math.ceil),y:Ni()(Z=[-(je+Ie),-je,je,je+(rt-Ie-ne)]).call(Z,Math.ceil)}},_strokeBorder:function(ce,Z,te){var X=te.lineDashWidth,ne=te.lineDashOffset,xe=te.lineWidth,Ie=this.width/2,Qe=this.height/2;ce.save(),ce.strokeStyle=Z,ce.setLineDash&&ce.setLineDash([X,X]),ne&&(ce.lineDashOffset=ne),xe&&(ce.lineWidth=xe),ce.beginPath(),ce.moveTo(-Ie,-Qe),ce.lineTo(Ie,-Qe),ce.lineTo(Ie,Qe),ce.lineTo(-Ie,Qe),ce.lineTo(-Ie,-Qe),ce.stroke(),ce.restore()},_onMoving:function(){var ce=this.height,Z=this.width,te=this.left,X=this.top,ne=this.canvas.getWidth()-Z,xe=this.canvas.getHeight()-ce;this.left=It(te,0,ne),this.top=It(X,0,xe),this.canvasEventTrigger[ar.OBJECT_MOVED](this)},_onScaling:function(ce){var Z=ce.transform.corner,te=this.canvas.getPointer(ce.e),X=this._calcScalingSizeFromPointer(te,Z);this.scale(1).set(X),this.canvasEventTrigger[ar.OBJECT_SCALED](this)},_calcScalingSizeFromPointer:function(ce,Z){var te=rs(Z);return te&&this._resizeCropZone(ce,Z)},adjustRatioCropzoneSize:function(ce){var Z=ce.width,te=ce.height,X=ce.leftMaker,ne=ce.topMaker,xe=ce.maxWidth,Ie=ce.maxHeight,Qe=ce.scaleTo;if(Z=xe?It(Z,1,xe):Z,te=Ie?It(te,1,Ie):te,!this.presetRatio)return this._withShiftKey&&(Z>te?te=Z:te>Z&&(Z=te)),{width:Z,height:te,left:X(Z),top:ne(te)};Qe==="width"?te=Z/this.presetRatio:Z=te*this.presetRatio;var je=Math.min(xe/Z,Ie/te);if(je<=1){var rt,ft=Ni()(rt=[Z,te]).call(rt,function(zt){return zt*je}),Ht=Ke(ft,2);Z=Ht[0],te=Ht[1]}return{width:Z,height:te,left:X(Z),top:ne(te)}},_getCropzoneRectInfo:function(){var ce=this.canvas,Z=ce.width,te=ce.height,X=this.getBoundingRect(!1,!0),ne=X.top,xe=X.left,Ie=X.width,Qe=X.height;return{rectTop:ne,rectLeft:xe,rectWidth:Ie,rectHeight:Qe,rectRight:xe+Ie,rectBottom:ne+Qe,canvasWidth:Z,canvasHeight:te}},_resizeCropZone:function(ce,Z){var te=ce.x,X=ce.y,ne=this._getCropzoneRectInfo(),xe=ne.rectWidth,Ie=ne.rectHeight,Qe=ne.rectTop,je=ne.rectLeft,rt=ne.rectBottom,ft=ne.rectRight,Ht=ne.canvasWidth,zt=ne.canvasHeight,qt={tl:{width:ft-te,height:rt-X,leftMaker:function(nr){return ft-nr},topMaker:function(nr){return rt-nr},maxWidth:ft,maxHeight:rt,scaleTo:bs(je-te,Qe-X)},tr:{width:te-je,height:rt-X,leftMaker:function(){return je},topMaker:function(nr){return rt-nr},maxWidth:Ht-je,maxHeight:rt,scaleTo:bs(te-ft,Qe-X)},mt:{width:xe,height:rt-X,leftMaker:function(){return je},topMaker:function(nr){return rt-nr},maxWidth:Ht-je,maxHeight:rt,scaleTo:"height"},ml:{width:ft-te,height:Ie,leftMaker:function(nr){return ft-nr},topMaker:function(){return Qe},maxWidth:ft,maxHeight:zt-Qe,scaleTo:"width"},mr:{width:te-je,height:Ie,leftMaker:function(){return je},topMaker:function(){return Qe},maxWidth:Ht-je,maxHeight:zt-Qe,scaleTo:"width"},mb:{width:xe,height:X-Qe,leftMaker:function(){return je},topMaker:function(){return Qe},maxWidth:Ht-je,maxHeight:zt-Qe,scaleTo:"height"},bl:{width:ft-te,height:X-Qe,leftMaker:function(nr){return ft-nr},topMaker:function(){return Qe},maxWidth:ft,maxHeight:zt-Qe,scaleTo:bs(je-te,X-rt)},br:{width:te-je,height:X-Qe,leftMaker:function(){return je},topMaker:function(){return Qe},maxWidth:Ht-je,maxHeight:zt-Qe,scaleTo:bs(te-ft,X-rt)}};return this.adjustRatioCropzoneSize(qt[Z])},isValid:function(){return this.left>=0&&this.top>=0&&this.width>0&&this.height>0},_onKeyDown:function(ce){var Z=ce.keyCode;Z===Ze.SHIFT&&(this._withShiftKey=!0)},_onKeyUp:function(ce){var Z=ce.keyCode;Z===Ze.SHIFT&&(this._withShiftKey=!1)}}),IA=qc;function dt(Me){var ce=$o();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function $o(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var xu=10,ws={presetRatio:null,top:-10,left:-10,height:1,width:1},La=(function(Me){Za(Z,Me);var ce=dt(Z);function Z(te){var X,ne,xe,Ie,Qe,je;return R(this,Z),je=ce.call(this,sr.CROPPER,te),je._cropzone=null,je._startX=null,je._startY=null,je._withShiftKey=!1,je._listeners={keydown:Q()(X=je._onKeyDown).call(X,Ca(je)),keyup:Q()(ne=je._onKeyUp).call(ne,Ca(je)),mousedown:Q()(xe=je._onFabricMouseDown).call(xe,Ca(je)),mousemove:Q()(Ie=je._onFabricMouseMove).call(Ie,Ca(je)),mouseup:Q()(Qe=je._onFabricMouseUp).call(Qe,Ca(je))},je}return V(Z,[{key:"start",value:function(){if(!this._cropzone){var X=this.getCanvas();X.forEachObject(function(ne){ne.evented=!1}),this._cropzone=new IA(X,pe()({left:0,top:0,width:.5,height:.5,strokeWidth:0,cornerSize:10,cornerColor:"black",fill:"transparent"},fn,this.graphics.cropSelectionStyle)),X.discardActiveObject(),X.add(this._cropzone),X.on("mouse:down",this._listeners.mousedown),X.selection=!1,X.defaultCursor="crosshair",K.fabric.util.addListener(document,"keydown",this._listeners.keydown),K.fabric.util.addListener(document,"keyup",this._listeners.keyup)}}},{key:"end",value:function(){var X=this.getCanvas(),ne=this._cropzone;ne&&(X.remove(ne),X.selection=!0,X.defaultCursor="default",X.off("mouse:down",this._listeners.mousedown),X.forEachObject(function(xe){xe.evented=!0}),this._cropzone=null,K.fabric.util.removeListener(document,"keydown",this._listeners.keydown),K.fabric.util.removeListener(document,"keyup",this._listeners.keyup))}},{key:"changeVisibility",value:function(X){this._cropzone&&this._cropzone.set({visible:X})}},{key:"_onFabricMouseDown",value:function(X){var ne=this.getCanvas();if(!X.target){ne.selection=!1;var xe=ne.getPointer(X.e);this._startX=xe.x,this._startY=xe.y,ne.on({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup})}}},{key:"_onFabricMouseMove",value:function(X){var ne=this.getCanvas(),xe=ne.getPointer(X.e),Ie=xe.x,Qe=xe.y,je=this._cropzone;Math.abs(Ie-this._startX)+Math.abs(Qe-this._startY)>xu&&(ne.remove(je),je.set(this._calcRectDimensionFromPoint(Ie,Qe,je.presetRatio)),ne.add(je),ne.setActiveObject(je))}},{key:"_calcRectDimensionFromPoint",value:function(X,ne){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ie=this.getCanvas(),Qe=Ie.getWidth(),je=Ie.getHeight(),rt=this._startX,ft=this._startY,Ht=It(X,0,rt),zt=It(ne,0,ft),qt=It(X,rt,Qe)-Ht,Xt=It(ne,ft,je)-zt;return this._withShiftKey&&!xe?(qt>Xt?Xt=qt:Xt>qt&&(qt=Xt),rt>=X&&(Ht=rt-qt),ft>=ne&&(zt=ft-Xt)):xe&&(Xt=qt/xe,rt>=X&&(Ht=It(rt-qt,0,Qe)),ft>=ne&&(zt=It(ft-Xt,0,je)),zt+Xt>je&&(Xt=je-zt,qt=Xt*xe,rt>=X&&(Ht=It(rt-qt,0,Qe)),ft>=ne&&(zt=It(ft-Xt,0,je)))),{left:Ht,top:zt,width:qt,height:Xt}}},{key:"_onFabricMouseUp",value:function(){var X=this._cropzone,ne=this._listeners,xe=this.getCanvas();xe.setActiveObject(X),xe.off({"mouse:move":ne.mousemove,"mouse:up":ne.mouseup})}},{key:"getCroppedImageData",value:function(X){var ne=this.getCanvas(),xe=ne.contains(this._cropzone);if(!X)return null;xe&&ne.remove(this._cropzone);var Ie={imageName:this.getImageName(),url:ne.toDataURL(X)};return xe&&ne.add(this._cropzone),Ie}},{key:"getCropzoneRect",value:function(){var X=this._cropzone;return X.isValid()?{left:X.left,top:X.top,width:X.width,height:X.height}:null}},{key:"setCropzoneRect",value:function(X){var ne=this.getCanvas(),xe=this._cropzone;ne.discardActiveObject(),ne.selection=!1,ne.remove(xe),xe.set(X?this._getPresetPropertiesForCropSize(X):ws),ne.add(xe),ne.selection=!0,X&&ne.setActiveObject(xe)}},{key:"_getPresetPropertiesForCropSize",value:function(X){var ne,xe,Ie=this.getCanvas(),Qe=Ie.getWidth(),je=Ie.getHeight(),rt=Qe>=je?Qe:je,ft=function(nn,Ja){return nn>Ja?Ja/nn:1},Ht=rt*X,zt=rt,qt=ft(Ht,Qe),Xt=Ni()(ne=[Ht,zt]).call(ne,function(qn){return qn*qt}),nr=Ke(Xt,2);Ht=nr[0],zt=nr[1];var Mr=ft(zt,je),Dn=Ni()(xe=[Ht,zt]).call(xe,function(qn){return ms(qn*Mr)}),Nn=Ke(Dn,2);return Ht=Nn[0],zt=Nn[1],{presetRatio:X,top:(je-zt)/2,left:(Qe-Ht)/2,width:Ht,height:zt}}},{key:"_onKeyDown",value:function(X){X.keyCode===Ze.SHIFT&&(this._withShiftKey=!0)}},{key:"_onKeyUp",value:function(X){X.keyCode===Ze.SHIFT&&(this._withShiftKey=!1)}}]),Z})(Fo),pg=La;function Kd(Me){var ce=ip();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function ip(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Cu=(function(Me){Za(Z,Me);var ce=Kd(Z);function Z(te){return R(this,Z),ce.call(this,sr.FLIP,te)}return V(Z,[{key:"getCurrentSetting",value:function(){var X=this.getCanvasImage();return{flipX:X.flipX,flipY:X.flipY}}},{key:"set",value:function(X){var ne=this.getCurrentSetting(),xe=ne.flipX!==X.flipX,Ie=ne.flipY!==X.flipY;return!xe&&!Ie?ie().reject(Ge.flip):(pe()(ne,X),this.setImageProperties(ne,!0),this._invertAngle(xe,Ie),this._flipObjects(xe,Ie),ie().resolve({flipX:ne.flipX,flipY:ne.flipY,angle:this.getCanvasImage().angle}))}},{key:"_invertAngle",value:function(X,ne){var xe=this.getCanvasImage(),Ie=xe.angle;X&&(Ie*=-1),ne&&(Ie*=-1),xe.rotate(za()(Ie)).setCoords()}},{key:"_flipObjects",value:function(X,ne){var xe=this.getCanvas();X&&xe.forEachObject(function(Ie){Ie.set({angle:za()(Ie.angle*-1),flipX:!Ie.flipX,left:xe.width-Ie.left}).setCoords()}),ne&&xe.forEachObject(function(Ie){Ie.set({angle:za()(Ie.angle*-1),flipY:!Ie.flipY,top:xe.height-Ie.top}).setCoords()}),xe.renderAll()}},{key:"reset",value:function(){return this.set({flipX:!1,flipY:!1})}},{key:"flipX",value:function(){var X=this.getCurrentSetting();return this.set({flipX:!X.flipX,flipY:X.flipY})}},{key:"flipY",value:function(){var X=this.getCurrentSetting();return this.set({flipX:X.flipX,flipY:!X.flipY})}}]),Z})(Fo),sp=Cu;function Ol(Me){var ce=hc();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function hc(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var op=(function(Me){Za(Z,Me);var ce=Ol(Z);function Z(te){return R(this,Z),ce.call(this,sr.ROTATION,te)}return V(Z,[{key:"getCurrentAngle",value:function(){return this.getCanvasImage().angle}},{key:"setAngle",value:function(X){var ne=this.getCurrentAngle()%360;X%=360;var xe=this.getCanvasImage(),Ie=xe.getCenterPoint();xe.set({angle:X}).setCoords(),this.adjustCanvasDimension();var Qe=xe.getCenterPoint();return this._rotateForEachObject(Ie,Qe,X-ne),ie().resolve(X)}},{key:"_rotateForEachObject",value:function(X,ne,xe){var Ie=this.getCanvas(),Qe={x:X.x-ne.x,y:X.y-ne.y};Ie.forEachObject(function(je){var rt=je.getCenterPoint(),ft=K.fabric.util.degreesToRadians(xe),Ht=K.fabric.util.rotatePoint(rt,X,ft);je.set({left:Ht.x-Qe.x,top:Ht.y-Qe.y,angle:(je.angle+xe)%360}),je.setCoords()}),Ie.renderAll()}},{key:"rotate",value:function(X){var ne=this.getCurrentAngle();return this.setAngle(ne+X)}}]),Z})(Fo),Yd=op;function Ll(Me){var ce=lp();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function lp(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var mg=(function(Me){Za(Z,Me);var ce=Ll(Z);function Z(te){var X;return R(this,Z),X=ce.call(this,sr.FREE_DRAWING,te),X.width=12,X.oColor=new K.fabric.Color("rgba(0, 0, 0, 0.5)"),X}return V(Z,[{key:"start",value:function(X){var ne=this.getCanvas();ne.isDrawingMode=!0,this.setBrush(X)}},{key:"setBrush",value:function(X){var ne=this.getCanvas().freeDrawingBrush;X=X||{},this.width=X.width||this.width,X.color&&(this.oColor=new K.fabric.Color(X.color)),ne.width=this.width,ne.color=this.oColor.toRgba()}},{key:"end",value:function(){var X=this.getCanvas();X.isDrawingMode=!1}}]),Z})(Fo),up=mg,Ds=30,gg=2.7,Ko=1.7,Xd=180,vg=K.fabric.util.createClass(K.fabric.Line,{type:"line",initialize:function(ce){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.callSuper("initialize",ce,Z),this.arrowType=Z.arrowType},_render:function(ce){var Z=this.calcLinePoints(),te=Z.x1,X=Z.y1,ne=Z.x2,xe=Z.y2,Ie={fromX:te,fromY:X,toX:ne,toY:xe};this.ctx=ce,ce.lineWidth=this.strokeWidth,this._renderBasicLinePath(Ie),this._drawDecoratorPath(Ie),this._renderStroke(ce)},_renderBasicLinePath:function(ce){var Z=ce.fromX,te=ce.fromY,X=ce.toX,ne=ce.toY;this.ctx.beginPath(),this.ctx.moveTo(Z,te),this.ctx.lineTo(X,ne)},_drawDecoratorPath:function(ce){this._drawDecoratorPathType("head",ce),this._drawDecoratorPathType("tail",ce)},_drawDecoratorPathType:function(ce,Z){switch(this.arrowType[ce]){case"triangle":this._drawTrianglePath(ce,Z);break;case"chevron":this._drawChevronPath(ce,Z);break}},_drawTrianglePath:function(ce,Z){var te=this.ctx.lineWidth*Ko;this._drawChevronPath(ce,Z,te),this.ctx.closePath()},_drawChevronPath:function(ce,Z,te){var X=this,ne=Z.fromX,xe=Z.fromY,Ie=Z.toX,Qe=Z.toY,je=this.ctx;te||(te=this.ctx.lineWidth*gg);var rt=ce==="head"?[ne,xe]:[Ie,Qe],ft=Ke(rt,2),Ht=ft[0],zt=ft[1],qt=ce==="head"?[Ie,Qe]:[ne,xe],Xt=Ke(qt,2),nr=Xt[0],Mr=Xt[1],Dn=Math.atan2(Mr-zt,nr-Ht)*Xd/Math.PI,Nn=function(nn){return X.getRotatePosition(te,nn,{x:Ht,y:zt})};je.moveTo.apply(je,I(Nn(Dn+Ds))),je.lineTo(Ht,zt),je.lineTo.apply(je,I(Nn(Dn-Ds)))},getRotatePosition:function(ce,Z,te){var X=Z*Math.PI/Xd,ne=te.x,xe=te.y;return[ce*Math.cos(X)+ne,ce*Math.sin(X)+xe]}}),cp=vg;function fp(Me){var ce=dp();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function dp(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Su=(function(Me){Za(Z,Me);var ce=fp(Z);function Z(te){var X,ne,xe,Ie;return R(this,Z),Ie=ce.call(this,sr.LINE,te),Ie._width=12,Ie._oColor=new K.fabric.Color("rgba(0, 0, 0, 0.5)"),Ie._listeners={mousedown:Q()(X=Ie._onFabricMouseDown).call(X,Ca(Ie)),mousemove:Q()(ne=Ie._onFabricMouseMove).call(ne,Ca(Ie)),mouseup:Q()(xe=Ie._onFabricMouseUp).call(xe,Ca(Ie))},Ie}return V(Z,[{key:"setHeadOption",value:function(X){var ne=X.arrowType,xe=ne===void 0?{head:null,tail:null}:ne;this._arrowType=xe}},{key:"start",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=this.getCanvas();ne.defaultCursor="crosshair",ne.selection=!1,this.setHeadOption(X),this.setBrush(X),ne.forEachObject(function(xe){xe.set({evented:!1})}),ne.on({"mouse:down":this._listeners.mousedown})}},{key:"setBrush",value:function(X){var ne=this.getCanvas().freeDrawingBrush;X=X||{},this._width=X.width||this._width,X.color&&(this._oColor=new K.fabric.Color(X.color)),ne.width=this._width,ne.color=this._oColor.toRgba()}},{key:"end",value:function(){var X=this.getCanvas();X.defaultCursor="default",X.selection=!0,X.forEachObject(function(ne){ne.set({evented:!0})}),X.off("mouse:down",this._listeners.mousedown)}},{key:"_onFabricMouseDown",value:function(X){var ne=this.getCanvas(),xe=ne.getPointer(X.e),Ie=xe.x,Qe=xe.y,je=[Ie,Qe,Ie,Qe];this._line=new cp(je,{stroke:this._oColor.toRgba(),strokeWidth:this._width,arrowType:this._arrowType,evented:!1}),this._line.set(qe.SELECTION_STYLE),ne.add(this._line),ne.on({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup}),this.fire(ar.ADD_OBJECT,this._createLineEventObjectProperties())}},{key:"_onFabricMouseMove",value:function(X){var ne=this.getCanvas(),xe=ne.getPointer(X.e);this._line.set({x2:xe.x,y2:xe.y}),this._line.setCoords(),ne.renderAll()}},{key:"_onFabricMouseUp",value:function(){var X=this.getCanvas();this.fire(ar.OBJECT_ADDED,this._createLineEventObjectProperties()),this._line=null,X.off({"mouse:move":this._listeners.mousemove,"mouse:up":this._listeners.mouseup})}},{key:"_createLineEventObjectProperties",value:function(){var X=this.graphics.createObjectProperties(this._line),ne=this._line,xe=ne.x1,Ie=ne.x2,Qe=ne.y1,je=ne.y2;return pe()({},X,{startPosition:{x:xe,y:Qe},endPosition:{x:Ie,y:je}})}}]),Z})(Fo),hp=Su;function Ap(Me){var ce=hl();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function hl(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var pp={fill:"#000000",left:0,top:0},mp={fill:"#000000",fontStyle:"normal",fontWeight:"normal",textAlign:"tie-text-align-left",underline:!1},gp=500,yg=(function(Me){Za(Z,Me);var ce=Ap(Z);function Z(te){var X,ne,xe,Ie,Qe,je;return R(this,Z),je=ce.call(this,sr.TEXT,te),je._defaultStyles=pp,je._isSelected=!1,je._selectedObj={},je._editingObj={},je._listeners={mousedown:Q()(X=je._onFabricMouseDown).call(X,Ca(je)),select:Q()(ne=je._onFabricSelect).call(ne,Ca(je)),selectClear:Q()(xe=je._onFabricSelectClear).call(xe,Ca(je)),scaling:Q()(Ie=je._onFabricScaling).call(Ie,Ca(je)),textChanged:Q()(Qe=je._onFabricTextChanged).call(Qe,Ca(je))},je._textarea=null,je._ratio=1,je._lastClickTime=new Date().getTime(),je._editingObjInfos={},je.isPrevEditing=!1,je}return V(Z,[{key:"start",value:function(){var X=this,ne=this.getCanvas();ne.selection=!1,ne.defaultCursor="text",ne.on({"mouse:down":this._listeners.mousedown,"selection:created":this._listeners.select,"selection:updated":this._listeners.select,"before:selection:cleared":this._listeners.selectClear,"object:scaling":this._listeners.scaling,"text:changed":this._listeners.textChanged}),ne.forEachObject(function(xe){xe.type==="i-text"&&X.adjustOriginPosition(xe,"start")}),this.setCanvasRatio()}},{key:"end",value:function(){var X=this,ne=this.getCanvas();ne.selection=!0,ne.defaultCursor="default",ne.forEachObject(function(xe){xe.type==="i-text"&&(xe.text===""?ne.remove(xe):X.adjustOriginPosition(xe,"end"))}),ne.off({"mouse:down":this._listeners.mousedown,"selection:created":this._listeners.select,"selection:updated":this._listeners.select,"before:selection:cleared":this._listeners.selectClear,"object:selected":this._listeners.select,"object:scaling":this._listeners.scaling,"text:changed":this._listeners.textChanged})}},{key:"adjustOriginPosition",value:function(X,ne){var xe="center",Ie="center";ne==="start"&&(xe="left",Ie="top");var Qe=X.getPointByOrigin(xe,Ie),je=Qe.x,rt=Qe.y;X.set({left:je,top:rt,originX:xe,originY:Ie}),X.setCoords()}},{key:"add",value:function(X,ne){var xe=this;return new(ie())(function(Ie){var Qe,je=xe.getCanvas(),rt=null,ft=qe.SELECTION_STYLE,Ht=xe._defaultStyles;xe._setInitPos(ne.position),ne.styles&&(Ht=pe()(Ht,ne.styles)),Vn()(ne.autofocus)||(ne.autofocus=!0),rt=new K.fabric.IText(X,Ht),ft=pe()({},ft,{originX:"left",originY:"top"}),rt.set(ft),rt.on({mouseup:Q()(Qe=xe._onFabricMouseUp).call(Qe,xe)}),je.add(rt),ne.autofocus&&(rt.enterEditing(),rt.selectAll()),je.getActiveObject()||je.setActiveObject(rt),xe.isPrevEditing=!0,Ie(xe.graphics.createObjectProperties(rt))})}},{key:"change",value:function(X,ne){var xe=this;return new(ie())(function(Ie){X.set("text",ne),xe.getCanvas().renderAll(),Ie()})}},{key:"setStyle",value:function(X,ne){var xe=this;return new(ie())(function(Ie){Te()(ne,function(Qe,je){X[je]===Qe&&je!=="fontSize"&&(ne[je]=mp[je]||"")},xe),"textDecoration"in ne&&pe()(ne,xe._getTextDecorationAdaptObject(ne.textDecoration)),X.set(ne),xe.getCanvas().renderAll(),Ie()})}},{key:"getText",value:function(X){return X.text}},{key:"setSelectedInfo",value:function(X,ne){this._selectedObj=X,this._isSelected=ne}},{key:"isSelected",value:function(){return this._isSelected}},{key:"getSelectedObj",value:function(){return this._selectedObj}},{key:"setCanvasRatio",value:function(){var X=this.getCanvasElement(),ne=nt()(X.style.maxWidth,10),xe=X.width;this._ratio=xe/ne}},{key:"getCanvasRatio",value:function(){return this._ratio}},{key:"_getTextDecorationAdaptObject",value:function(X){return{underline:X==="underline",linethrough:X==="line-through",overline:X==="overline"}}},{key:"_setInitPos",value:function(X){X=X||this.getCanvasImage().getCenterPoint(),this._defaultStyles.left=X.x,this._defaultStyles.top=X.y}},{key:"_onInput",value:function(){var X=this.getCanvasRatio(),ne=this._editingObj,xe=this._textarea.style;xe.width="".concat(Math.ceil(ne.width/X),"px"),xe.height="".concat(Math.ceil(ne.height/X),"px")}},{key:"_onKeyDown",value:function(){var X=this,ne=this.getCanvasRatio(),xe=this._editingObj,Ie=this._textarea.style;w()(function(){xe.text(X._textarea.value),Ie.width="".concat(Math.ceil(xe.width/ne),"px"),Ie.height="".concat(Math.ceil(xe.height/ne),"px")},0)}},{key:"_onBlur",value:function(){var X=this.getCanvasRatio(),ne=this._editingObj,xe=this._editingObjInfos,Ie=this._textarea.value,Qe=ne.width/X-xe.width/X,je=ne.height/X-xe.height/X;if(X===1&&(Qe/=2,je/=2),this._textarea.style.display="none",ne.set({left:xe.left+Qe,top:xe.top+je}),Ie.length){this.getCanvas().add(ne);var rt={id:Rt(ne),type:ne.type,text:Ie};this.fire(ar.TEXT_CHANGED,rt)}}},{key:"_onScroll",value:function(){this._textarea.scrollLeft=0,this._textarea.scrollTop=0}},{key:"_onFabricScaling",value:function(X){var ne=X.target;ne.fontSize=ne.fontSize*ne.scaleY,ne.scaleX=1,ne.scaleY=1}},{key:"_onFabricTextChanged",value:function(X){this.fire(ar.TEXT_CHANGED,X.target)}},{key:"_onFabricSelectClear",value:function(X){var ne=this.getSelectedObj();this.isPrevEditing=!0,this.setSelectedInfo(X.target,!1),ne&&ne.text===""&&this.getCanvas().remove(ne)}},{key:"_onFabricSelect",value:function(X){this.isPrevEditing=!0,this.setSelectedInfo(X.target,!0)}},{key:"_onFabricMouseDown",value:function(X){var ne=X.target;if(!(ne&&!ne.isType("text"))){if(this.isPrevEditing){this.isPrevEditing=!1;return}this._fireAddText(X)}}},{key:"_fireAddText",value:function(X){var ne=X.target,xe=X.e||{},Ie=this.getCanvas().getPointer(xe);ne||this.fire(ar.ADD_TEXT,{originPosition:{x:Ie.x,y:Ie.y},clientPosition:{x:xe.clientX||0,y:xe.clientY||0}})}},{key:"_onFabricMouseUp",value:function(X){var ne=X.target,xe=new Date().getTime();this._isDoubleClick(xe)&&!ne.isEditing&&ne.enterEditing(),ne.isEditing&&this.fire(ar.TEXT_EDITING),this._lastClickTime=xe}},{key:"_isDoubleClick",value:function(X){return X-this._lastClickTime<gp}}]),Z})(Fo),bg=yg;function BA(Me){var ce=vp();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function vp(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var wg={arrow:"M 0 90 H 105 V 120 L 160 60 L 105 0 V 30 H 0 Z",cancel:"M 0 30 L 30 60 L 0 90 L 30 120 L 60 90 L 90 120 L 120 90 L 90 60 L 120 30 L 90 0 L 60 30 L 30 0 Z"},yp=(function(Me){Za(Z,Me);var ce=BA(Z);function Z(te){var X,ne,xe,Ie;return R(this,Z),Ie=ce.call(this,sr.ICON,te),Ie._oColor="#000000",Ie._pathMap=wg,Ie._type=null,Ie._iconColor=null,Ie._handlers={mousedown:Q()(X=Ie._onFabricMouseDown).call(X,Ca(Ie)),mousemove:Q()(ne=Ie._onFabricMouseMove).call(ne,Ca(Ie)),mouseup:Q()(xe=Ie._onFabricMouseUp).call(xe,Ca(Ie))},Ie}return V(Z,[{key:"setStates",value:function(X,ne){this._type=X,this._iconColor=ne}},{key:"start",value:function(){var X=this.getCanvas();X.selection=!1,X.on("mouse:down",this._handlers.mousedown)}},{key:"end",value:function(){var X=this.getCanvas();X.selection=!0,X.off({"mouse:down":this._handlers.mousedown})}},{key:"add",value:function(X,ne){var xe=this;return new(ie())(function(Ie,Qe){var je=xe.getCanvas(),rt=xe._pathMap[X],ft=qe.SELECTION_STYLE,Ht=rt?xe._createIcon(rt):null;xe._icon=Ht,Ht||Qe(Ge.invalidParameters),Ht.set(pe()({type:"icon",fill:xe._oColor},ft,ne,xe.graphics.controlStyle)),je.add(Ht).setActiveObject(Ht),Ie(xe.graphics.createObjectProperties(Ht))})}},{key:"registerPaths",value:function(X){var ne=this;Te()(X,function(xe,Ie){ne._pathMap[Ie]=xe},this)}},{key:"setColor",value:function(X,ne){this._oColor=X,ne&&ne.get("type")==="icon"&&(ne.set({fill:this._oColor}),this.getCanvas().renderAll())}},{key:"getColor",value:function(X){return wt()(X)}},{key:"_createIcon",value:function(X){return new K.fabric.Path(X)}},{key:"_onFabricMouseDown",value:function(X){var ne=this,xe=this.getCanvas();this._startPoint=xe.getPointer(X.e);var Ie=this._startPoint,Qe=Ie.x,je=Ie.y;this.add(this._type,{left:Qe,top:je,fill:this._iconColor}).then(function(){ne.fire(ar.ADD_OBJECT,ne.graphics.createObjectProperties(ne._icon)),xe.on("mouse:move",ne._handlers.mousemove),xe.on("mouse:up",ne._handlers.mouseup)})}},{key:"_onFabricMouseMove",value:function(X){var ne=this.getCanvas();if(this._icon){var xe=ne.getPointer(X.e),Ie=(xe.x-this._startPoint.x)/this._icon.width,Qe=(xe.y-this._startPoint.y)/this._icon.height;this._icon.set({scaleX:Math.abs(Ie*2),scaleY:Math.abs(Qe*2)}),this._icon.setCoords(),ne.renderAll()}}},{key:"_onFabricMouseUp",value:function(){var X=this.getCanvas();this.fire(ar.OBJECT_ADDED,this.graphics.createObjectProperties(this._icon)),this._icon=null,X.off("mouse:down",this._handlers.mousedown),X.off("mouse:move",this._handlers.mousemove),X.off("mouse:up",this._handlers.mouseup)}}]),Z})(Fo),Zd=yp,ku=K.fabric.util.createClass(K.fabric.Image.filters.BlendImage,{applyTo:function(ce){if(this.mask){var Z=ce.canvasEl,te=Z.width,X=Z.height,ne=this._createCanvasOfMask(te,X),xe=Z.getContext("2d"),Ie=ne.getContext("2d"),Qe=xe.getImageData(0,0,te,X);this._drawMask(Ie,Z,xe),this._mapData(Ie,Qe,te,X),ce.imageData=Qe}},_createCanvasOfMask:function(ce,Z){var te=K.fabric.util.createCanvasElement();return te.width=ce,te.height=Z,te},_drawMask:function(ce){var Z=this.mask,te=Z.getElement(),X=Z.angle,ne=Z.left,xe=Z.scaleX,Ie=Z.scaleY,Qe=Z.top;ce.save(),ce.translate(ne,Qe),ce.rotate(X*Math.PI/180),ce.scale(xe,Ie),ce.drawImage(te,-te.width/2,-te.height/2),ce.restore()},_mapData:function(ce,Z,te,X){for(var ne=Z.data,xe=Z.height,Ie=Z.width,Qe=ne,je=Ie*xe*4,rt=ce.getImageData(0,0,te,X).data,ft=0;ft<je;ft+=4)Qe[ft+3]=rt[ft]}}),Jd=ku,FA=K.fabric.util.createClass(K.fabric.Image.filters.Convolute,{type:"Sharpen",initialize:function(){this.matrix=[0,-1,0,-1,5,-1,0,-1,0]}}),MA=FA,qd=K.fabric.util.createClass(K.fabric.Image.filters.Convolute,{type:"Emboss",initialize:function(){this.matrix=[1,1,1,1,.7,-1,-1,-1,-1]}}),Pl=qd,eh=K.fabric.util.createClass(K.fabric.Image.filters.BaseFilter,{type:"ColorFilter",initialize:function(ce){ce||(ce={}),this.color=ce.color||"#FFFFFF",this.threshold=ce.threshold||45,this.x=ce.x||null,this.y=ce.y||null},applyTo:function(ce){var Z=ce.canvasEl,te=Z.getContext("2d"),X=te.getImageData(0,0,Z.width,Z.height),ne=X.data,xe=this.threshold,Ie=K.fabric.Color.sourceFromHex(this.color),Qe,je;for(this.x&&this.y&&(Ie=this._getColor(X,this.x,this.y)),Qe=0,je=ne.length;Qe<je;Qe+=4)this._isOutsideThreshold(ne[Qe],Ie[0],xe)||this._isOutsideThreshold(ne[Qe+1],Ie[1],xe)||this._isOutsideThreshold(ne[Qe+2],Ie[2],xe)||(ne[Qe]=ne[Qe+1]=ne[Qe+2]=ne[Qe+3]=0);te.putImageData(X,0,0)},_isOutsideThreshold:function(ce,Z,te){var X=ce-Z;return Math.abs(X)>te},_getColor:function(ce,Z,te){var X=[0,0,0,0],ne=ce.data,xe=ce.width,Ie=4,Qe=(xe*te+Z)*Ie;return X[0]=ne[Qe],X[1]=ne[Qe+1],X[2]=ne[Qe+2],X[3]=ne[Qe+3],X}}),Tu=eh;function Mo(Me){var ce=th();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function th(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var ef=K.fabric.Image.filters;ef.Mask=Jd,ef.Sharpen=MA,ef.Emboss=Pl,ef.ColorFilter=Tu;var DA=(function(Me){Za(Z,Me);var ce=Mo(Z);function Z(te){return R(this,Z),ce.call(this,sr.FILTER,te)}return V(Z,[{key:"add",value:function(X,ne){var xe=this;return new(ie())(function(Ie,Qe){var je=xe._getSourceImage(),rt=xe.getCanvas(),ft=xe._getFilter(je,X);ft||(ft=xe._createFilter(je,X,ne)),ft||Qe(Ge.invalidParameters),xe._changeFilterValues(ft,ne),xe._apply(je,function(){rt.renderAll(),Ie({type:X,action:"add",options:ne})})})}},{key:"remove",value:function(X){var ne=this;return new(ie())(function(xe,Ie){var Qe=ne._getSourceImage(),je=ne.getCanvas(),rt=ne.getOptions(X);Qe.filters.length||Ie(Ge.unsupportedOperation),ne._removeFilter(Qe,X),ne._apply(Qe,function(){je.renderAll(),xe({type:X,action:"remove",options:rt})})})}},{key:"hasFilter",value:function(X){return!!this._getFilter(this._getSourceImage(),X)}},{key:"getOptions",value:function(X){var ne=this._getSourceImage(),xe=this._getFilter(ne,X);return xe?pe()({},xe.options):null}},{key:"_changeFilterValues",value:function(X,ne){Te()(ne,function(xe,Ie){ge()(X[Ie])||(X[Ie]=xe)}),Te()(X.options,function(xe,Ie){ge()(ne[Ie])||(X.options[Ie]=ne[Ie])})}},{key:"_apply",value:function(X,ne){X.filters.push();var xe=X.applyFilters();xe&&ne()}},{key:"_getSourceImage",value:function(){return this.getCanvasImage()}},{key:"_createFilter",value:function(X,ne,xe){var Ie,Qe=this._getFabricFilterType(ne),je=K.fabric.Image.filters[Qe];return je&&(Ie=new je(xe),Ie.options=xe,X.filters.push(Ie)),Ie}},{key:"_getFilter",value:function(X,ne){var xe=null;if(X){var Ie=this._getFabricFilterType(ne),Qe=X.filters.length,je,rt;for(rt=0;rt<Qe;rt+=1)if(je=X.filters[rt],je.type===Ie){xe=je;break}}return xe}},{key:"_removeFilter",value:function(X,ne){var xe,Ie=this._getFabricFilterType(ne);X.filters=Dl()(xe=X.filters).call(xe,function(Qe){return Qe.type!==Ie})}},{key:"_getFabricFilterType",value:function(X){return X.charAt(0).toUpperCase()+h()(X).call(X,1)}}]),Z})(Fo),Eu=DA,ql=t(1801),Do=t.n(ql),Al={pixelate:"blocksize",blur:"blur"},Ac={x:"width",y:"height"},OA=ba(Al),pc=null;function Xi(Me){var ce=va(Me,"patternSourceCanvas"),Z=ce.patternSourceCanvas,te=Z.getObjects(),X=Ke(te,1),ne=X[0];return ne}function rh(Me){var ce=Me.angle,Z=Me.flipX,te=Me.flipY,X=Xi(Me),ne=wp(Me),xe=ne.right,Ie=ne.bottom,Qe=ne.width,je=ne.height,rt=(Qe-Me.width)/2,ft=(je-Me.height)/2,Ht=Me.left-Me.width/2-rt,zt=Me.top-Me.height/2-ft,qt=Qe/2-rt,Xt=je/2-ft,nr=Math.max(Qe,je)+Math.max(rt,ft),Mr=pl({shapeObj:Me,left:qt,top:Xt,width:Qe,height:je,cropX:Ht,cropY:zt,flipX:Z,flipY:te,right:xe,bottom:Ie}),Dn=Ke(Mr,4);qt=Dn[0],Xt=Dn[1],Qe=Dn[2],je=Dn[3],X.set({angle:Z===te?-ce:ce,left:qt,top:Xt,width:Qe,height:je,cropX:Ht,cropY:zt,flipX:Z,flipY:te}),Da(X,{fillImageMaxSize:nr})}function tf(Me){var ce;return Ni()(ce=Me.filters).call(ce,function(Z){var te=ke()(Z),X=Ke(te,1),ne=X[0];return L({},OA[ne],Z[ne])})}function pl(Me){var ce=Me.shapeObj,Z=Me.left,te=Me.top,X=Me.width,ne=Me.height,xe=Me.cropX,Ie=Me.cropY,Qe=Me.flipX,je=Me.flipY,rt=Me.right,ft=Me.bottom,Ht=function(qn,nn,Ja,_s){return _g({type:qn,outDistance:nn,shapeObj:ce,flipX:Qe,flipY:je,left:Ja,top:_s})},zt=X,qt=ne,Xt=mc(Ht,{left:Z,top:te,width:X,height:ne,cropX:xe,cropY:Ie}),nr=Ke(Xt,4);Z=nr[0],te=nr[1],X=nr[2],ne=nr[3];var Mr=$f(Ht,{left:Z,top:te,insideCanvasRealImageWidth:X,insideCanvasRealImageHeight:ne,right:rt,bottom:ft,cropX:xe,cropY:Ie,originalWidth:zt,originalHeight:qt}),Dn=Ke(Mr,4);return Z=Dn[0],te=Dn[1],X=Dn[2],ne=Dn[3],[Z,te,X,ne]}function $f(Me,ce){var Z=ce.left,te=ce.top,X=ce.insideCanvasRealImageWidth,ne=ce.insideCanvasRealImageHeight,xe=ce.right,Ie=ce.bottom,Qe=ce.cropX,je=ce.cropY,rt=ce.originalWidth,ft=ce.originalHeight,Ht=X,zt=ne,qt=pc,Xt=qt.width,nr=qt.height;xe>Xt&&Qe>0&&(Ht=rt-Math.abs(xe-Xt)),Ie>nr&&je>0&&(zt=ft-Math.abs(Ie-nr));var Mr={x:(X-Ht)/2,y:(ne-zt)/2};return Te()(["x","y"],function(Dn){var Nn=Mr[Dn];if(Nn>0){var qn=Me(Dn,Nn,Z,te),nn=Ke(qn,2);Z=nn[0],te=nn[1]}}),[Z,te,Ht,zt]}function mc(Me,ce){var Z=ce.left,te=ce.top,X=ce.width,ne=ce.height,xe=ce.cropX,Ie=ce.cropY,Qe={width:X,height:ne};return Te()(["x","y"],function(je){var rt=je==="x"?xe:Ie,ft=Qe[Ac[je]],Ht=pc[Ac[je]];if(ft>Ht){var zt=(ft-Ht)/2;Qe[Ac[je]]=Ht;var qt=Me(je,zt,Z,te),Xt=Ke(qt,2);Z=Xt[0],te=Xt[1]}if(rt<0){var nr=Me(je,rt,Z,te),Mr=Ke(nr,2);Z=Mr[0],te=Mr[1]}}),[Z,te,Qe.width,Qe.height]}function Oo(Me,ce,Z){var te=nh(Me),X=ih(te,Me.angle,ce);Z.add(X);var ne={fill:new K.fabric.Pattern({source:Z.getElement(),repeat:"no-repeat"})};return Da(ne,{patternSourceCanvas:Z}),ne}function LA(Me){var ce=Me.getObjects(),Z=Ke(ce,1),te=Z[0],X=va(te,"fillImageMaxSize"),ne=X.fillImageMaxSize;ne=Math.max(1,ne),Me.setDimensions({width:ne,height:ne}),Me.renderAll()}function $s(Me,ce){var Z=va(Me,"patternSourceCanvas"),te=Z.patternSourceCanvas,X=te.getObjects(),ne=Ke(X,1),xe=ne[0],Ie=tf(xe);te.remove(xe);var Qe=nh(ce,!0),je=ih(Qe,ce.angle,Ie);te.add(je)}function nh(Me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(!pc||ce)&&(pc=Me.toCanvasElement()),pc}function _g(Me){var ce=Me.type,Z=Me.shapeObj,te=Me.outDistance,X=Me.left,ne=Me.top,xe=Me.flipX,Ie=Me.flipY,Qe=eu(Z),je=[[1,2],[0,3],[0,3],[1,2]],rt=ah(ce,Qe,je),ft=Kf(ce,Qe,rt),Ht=rt.startPointIndex,zt=bp({outDistance:te,startPointIndex:Ht,flipX:xe,flipY:Ie,reatAngles:ft});return[X+zt.left,ne+zt.top]}function bp(Me){var ce=Me.outDistance,Z=Me.startPointIndex,te=Me.flipX,X=Me.flipY,ne=Me.reatAngles,xe=ce*Math.cos(ne[0]*Math.PI/180),Ie=ce*Math.cos(ne[1]*Math.PI/180),Qe=Z===2||Z===3,je={top:Qe?xe:Ie,left:Qe?Ie:xe};return PA(Z,te,X)&&(je.left=je.left*-1),rf(Z,te,X)&&(je.top=je.top*-1),je}function ah(Me,ce,Z){var te=0,X=0;Te()(ce,function(Qe,je){Qe[Me]<te&&(te=Qe[Me],X=je)});var ne=Ke(Z[X],2),xe=ne[0],Ie=ne[1];return{startPointIndex:X,endPointIndex1:xe,endPointIndex2:Ie}}function Kf(Me,ce,Z){var te,X=Z.startPointIndex,ne=Z.endPointIndex1,xe=Z.endPointIndex2,Ie=Me==="x"?180:270;return Ni()(te=[ne,xe]).call(te,function(Qe){var je=ce[X],rt=ce[Qe],ft=je.y-rt.y,Ht=je.x-rt.x;return Math.atan2(ft,Ht)*180/Math.PI-Ie})}function PA(Me,ce,Z){return(!ce&&Z||!ce&&!Z)&&Me===0||(ce&&Z||ce&&!Z)&&Me===1||(!ce&&!Z||!ce&&Z)&&Me===2||(ce&&!Z||ce&&Z)&&Me===3}function rf(Me,ce,Z){return(ce&&!Z||!ce&&!Z)&&Me===0||(!ce&&!Z||ce&&!Z)&&Me===1||(ce&&Z||!ce&&Z)&&Me===2||(!ce&&Z||ce&&Z)&&Me===3}function eu(Me){return[Me.getPointByOrigin("left","top"),Me.getPointByOrigin("right","top"),Me.getPointByOrigin("left","bottom"),Me.getPointByOrigin("right","bottom")]}function wp(Me){var ce=eu(Me),Z=Ke(ce,4),te=Z[0],X=te.x,ne=te.y,xe=Z[1],Ie=xe.x,Qe=xe.y,je=Z[2],rt=je.x,ft=je.y,Ht=Z[3],zt=Ht.x,qt=Ht.y,Xt=Math.min(X,Ie,rt,zt),nr=Math.min(ne,Qe,ft,qt),Mr=Math.max(X,Ie,rt,zt),Dn=Math.max(ne,Qe,ft,qt);return{left:Xt,top:nr,right:Mr,bottom:Dn,width:Mr-Xt,height:Dn-nr}}function ih(Me,ce,Z){var te,X=new K.fabric.Image(Me);return Te()(pe().apply(void 0,G()(te=[{}]).call(te,I(Z))),function(ne,xe){var Ie=Ba(xe),Qe=new K.fabric.Image.filters[Ie](L({},Al[xe],ne));X.filters.push(Qe)}),X.applyFilters(),Da(X,{originalAngle:ce,fillImageMaxSize:Math.max(X.width,X.height)}),Do().adjustOriginToCenter(X),X}function Iu(Me){var ce=_p();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function _p(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var gc=pe()({strokeWidth:1,stroke:"#000000",fill:"#ffffff",width:1,height:1,rx:0,ry:0},Fn),vc="rect",RA=20,xp=20;function UA(Me,ce,Z){var te=wt()(Me),X=Tl(wt()(Me)),ne=te;te.color&&(ne=te.color);var xe=null;if(X==="filter"){var Ie=Z();xe=Oo(ce,Dl()(te),Ie)}else xe={fill:ne};return pe()({},Me,xe)}var Cp=(function(Me){Za(Z,Me);var ce=Iu(Z);function Z(te){var X,ne,xe,Ie,Qe,je;return R(this,Z),je=ce.call(this,sr.SHAPE,te),je._shapeObj=null,je._type=vc,je._options=pe()({},gc),je._isSelected=!1,je._startPoint={},je._withShiftKey=!1,je._handlers={mousedown:Q()(X=je._onFabricMouseDown).call(X,Ca(je)),mousemove:Q()(ne=je._onFabricMouseMove).call(ne,Ca(je)),mouseup:Q()(xe=je._onFabricMouseUp).call(xe,Ca(je)),keydown:Q()(Ie=je._onKeyDown).call(Ie,Ca(je)),keyup:Q()(Qe=je._onKeyUp).call(Qe,Ca(je))},je}return V(Z,[{key:"start",value:function(){var X=this.getCanvas();this._isSelected=!1,X.defaultCursor="crosshair",X.selection=!1,X.uniformScaling=!0,X.on({"mouse:down":this._handlers.mousedown}),K.fabric.util.addListener(document,"keydown",this._handlers.keydown),K.fabric.util.addListener(document,"keyup",this._handlers.keyup)}},{key:"end",value:function(){var X=this.getCanvas();this._isSelected=!1,X.defaultCursor="default",X.selection=!0,X.uniformScaling=!1,X.off({"mouse:down":this._handlers.mousedown}),K.fabric.util.removeListener(document,"keydown",this._handlers.keydown),K.fabric.util.removeListener(document,"keyup",this._handlers.keyup)}},{key:"setStates",value:function(X,ne){this._type=X,ne&&(this._options=pe()(this._options,ne))}},{key:"add",value:function(X,ne){var xe=this;return new(ie())(function(Ie){var Qe=xe.getCanvas(),je=xe._extendOptions(ne),rt=xe._createInstance(X,je),ft=xe.graphics.createObjectProperties(rt);xe._bindEventOnShape(rt),Qe.add(rt).setActiveObject(rt),xe._resetPositionFillFilter(rt),Ie(ft)})}},{key:"change",value:function(X,ne){var xe=this;return new(ie())(function(Ie,Qe){gs(X)||Qe(Ge.unsupportedType);var je=Tl(wt()(ne))==="filter",rt=xe.graphics,ft=rt.canvasImage,Ht=rt.createStaticCanvas;X.set(je?UA(ne,ft,Ht):ne),je&&xe._resetPositionFillFilter(X),xe.getCanvas().renderAll(),Ie()})}},{key:"makeFillPropertyForUserEvent",value:function(X){var ne=Ki(X),xe={};if(ne===Gt.FILTER){var Ie=Xi(X),Qe=tf(Ie);xe.type=ne,xe.filter=Qe}else xe.type=Gt.COLOR,xe.color=wt()(X)||"transparent";return xe}},{key:"processForCopiedObject",value:function(X,ne){if(this._bindEventOnShape(X),Ki(X)==="filter"){var xe=Xi(ne),Ie=tf(xe),Qe=this.graphics.createStaticCanvas();X.set(Oo(this.graphics.canvasImage,Ie,Qe)),this._resetPositionFillFilter(X)}}},{key:"_createInstance",value:function(X,ne){var xe;switch(X){case"rect":xe=new K.fabric.Rect(ne);break;case"circle":xe=new K.fabric.Ellipse(pe()({type:"circle"},ne));break;case"triangle":xe=new K.fabric.Triangle(ne);break;default:xe={}}return xe}},{key:"_extendOptions",value:function(X){var ne=qe.SELECTION_STYLE,xe=this.graphics,Ie=xe.canvasImage,Qe=xe.createStaticCanvas;return X=pe()({},gc,this._options,ne,X),UA(X,Ie,Qe)}},{key:"_bindEventOnShape",value:function(X){var ne=this,xe=this.getCanvas();X.on({added:function(){ne._shapeObj=this,Do().setOrigins(ne._shapeObj)},selected:function(){ne._isSelected=!0,ne._shapeObj=this,xe.uniformScaling=!0,xe.defaultCursor="default",Do().setOrigins(ne._shapeObj)},deselected:function(){ne._isSelected=!1,ne._shapeObj=null,xe.defaultCursor="crosshair",xe.uniformScaling=!1},modified:function(){var Qe=ne._shapeObj;Do().adjustOriginToCenter(Qe),Do().setOrigins(Qe)},modifiedInGroup:function(Qe){ne._fillFilterRePositionInGroupSelection(X,Qe)},moving:function(){ne._resetPositionFillFilter(this)},rotating:function(){ne._resetPositionFillFilter(this)},scaling:function(Qe){var je=xe.getPointer(Qe.e),rt=ne._shapeObj;xe.setCursor("crosshair"),Do().resize(rt,je,!0),ne._resetPositionFillFilter(this)}})}},{key:"_onFabricMouseDown",value:function(X){if(X.target||(this._isSelected=!1,this._shapeObj=!1),!this._isSelected&&!this._shapeObj){var ne=this.getCanvas();this._startPoint=ne.getPointer(X.e),ne.on({"mouse:move":this._handlers.mousemove,"mouse:up":this._handlers.mouseup})}}},{key:"_onFabricMouseMove",value:function(X){var ne=this,xe=this.getCanvas(),Ie=xe.getPointer(X.e),Qe=this._startPoint.x,je=this._startPoint.y,rt=Qe-Ie.x,ft=je-Ie.y,Ht=this._shapeObj;Ht?(this._shapeObj.set({isRegular:this._withShiftKey}),Do().resize(Ht,Ie),xe.renderAll(),this._resetPositionFillFilter(Ht)):this.add(this._type,{left:Qe,top:je,width:rt,height:ft}).then(function(zt){ne.fire(ar.ADD_OBJECT,zt)})}},{key:"_onFabricMouseUp",value:function(){var X=this,ne=this.getCanvas(),xe=this._startPoint.x,Ie=this._startPoint.y,Qe=this._shapeObj;Qe?Qe&&(Do().adjustOriginToCenter(Qe),this.fire(ar.OBJECT_ADDED,this.graphics.createObjectProperties(Qe))):this.add(this._type,{left:xe,top:Ie,width:RA,height:xp}).then(function(je){X.fire(ar.ADD_OBJECT,je)}),ne.off({"mouse:move":this._handlers.mousemove,"mouse:up":this._handlers.mouseup})}},{key:"_onKeyDown",value:function(X){X.keyCode===Ze.SHIFT&&(this._withShiftKey=!0,this._shapeObj&&(this._shapeObj.isRegular=!0))}},{key:"_onKeyUp",value:function(X){X.keyCode===Ze.SHIFT&&(this._withShiftKey=!1,this._shapeObj&&(this._shapeObj.isRegular=!1))}},{key:"_resetPositionFillFilter",value:function(X){if(Ki(X)==="filter"){var ne=va(X,"patternSourceCanvas"),xe=ne.patternSourceCanvas,Ie=Xi(X),Qe=va(Ie,"originalAngle"),je=Qe.originalAngle;this.graphics.canvasImage.angle!==je&&$s(X,this.graphics.canvasImage);var rt=X.originX,ft=X.originY;Do().adjustOriginToCenter(X),X.width*=X.scaleX,X.height*=X.scaleY,X.rx*=X.scaleX,X.ry*=X.scaleY,X.scaleX=1,X.scaleY=1,rh(X),kl(X,{originX:rt,originY:ft}),LA(xe)}}},{key:"_fillFilterRePositionInGroupSelection",value:function(X,ne){(ne.scaleX!==1||ne.scaleY!==1)&&ne.addWithUpdate();var xe=X.angle,Ie=X.left,Qe=X.top;K.fabric.util.addTransformToObject(X,ne.calcTransformMatrix()),this._resetPositionFillFilter(X),X.set({angle:xe,left:Ie,top:Qe})}}]),Z})(Fo);function NA(Me){var ce=sh();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function sh(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var oh=10,lh={left:0,top:0,width:0,height:0,stroke:"#000000",strokeWidth:0,fill:"#000000",opacity:.4,evented:!1,selectable:!1,hoverCursor:"auto"},uh={SIZE:.0045,MARGIN:.003,BORDER_RADIUS:.003},Yf={SIZE:.0066,MARGIN:.0044,BORDER_RADIUS:.003},Xf=1,Zf=ar.ZOOM_CHANGED,xg=ar.ADD_TEXT,Sp=ar.TEXT_EDITING,kp=ar.OBJECT_MODIFIED,ch=ar.KEY_DOWN,jA=ar.KEY_UP,Cg=ar.HAND_STARTED,HA=ar.HAND_STOPPED,Tp=(function(Me){Za(Z,Me);var ce=NA(Z);function Z(te){var X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr;R(this,Z),nr=ce.call(this,sr.ZOOM,te),nr.zoomArea=null,nr._startPoint=null,nr._centerPoints=[],nr.zoomLevel=Xf,nr.zoomMode=ze.DEFAULT,nr._listeners={startZoom:Q()(X=nr._onMouseDownWithZoomMode).call(X,Ca(nr)),moveZoom:Q()(ne=nr._onMouseMoveWithZoomMode).call(ne,Ca(nr)),stopZoom:Q()(xe=nr._onMouseUpWithZoomMode).call(xe,Ca(nr)),startHand:Q()(Ie=nr._onMouseDownWithHandMode).call(Ie,Ca(nr)),moveHand:Q()(Qe=nr._onMouseMoveWithHandMode).call(Qe,Ca(nr)),stopHand:Q()(je=nr._onMouseUpWithHandMode).call(je,Ca(nr)),zoomChanged:Q()(rt=nr._changeScrollState).call(rt,Ca(nr)),keydown:Q()(ft=nr._startHandModeWithSpaceBar).call(ft,Ca(nr)),keyup:Q()(Ht=nr._endHandModeWithSpaceBar).call(Ht,Ca(nr))};var Mr=nr.getCanvas();return nr.aspectRatio=Mr.width/Mr.height,nr._verticalScroll=new K.fabric.Rect(lh),nr._horizontalScroll=new K.fabric.Rect(lh),Mr.on(Zf,nr._listeners.zoomChanged),nr.graphics.on(xg,Q()(zt=nr._startTextEditingHandler).call(zt,Ca(nr))),nr.graphics.on(Sp,Q()(qt=nr._startTextEditingHandler).call(qt,Ca(nr))),nr.graphics.on(kp,Q()(Xt=nr._stopTextEditingHandler).call(Xt,Ca(nr))),nr}return V(Z,[{key:"attachKeyboardZoomEvents",value:function(){K.fabric.util.addListener(document,ch,this._listeners.keydown),K.fabric.util.addListener(document,jA,this._listeners.keyup)}},{key:"detachKeyboardZoomEvents",value:function(){K.fabric.util.removeListener(document,ch,this._listeners.keydown),K.fabric.util.removeListener(document,jA,this._listeners.keyup)}},{key:"_startTextEditingHandler",value:function(){this.isTextEditing=!0}},{key:"_stopTextEditingHandler",value:function(){this.isTextEditing=!1}},{key:"_startHandModeWithSpaceBar",value:function(X){this.withSpace||this.isTextEditing||X.keyCode===Ze.SPACE&&(this.withSpace=!0,this.startHandMode())}},{key:"_endHandModeWithSpaceBar",value:function(X){X.keyCode===Ze.SPACE&&(this.withSpace=!1,this.endHandMode())}},{key:"startZoomInMode",value:function(){if(!this.zoomArea){this.endHandMode(),this.zoomMode=ze.ZOOM;var X=this.getCanvas();this._changeObjectsEventedState(!1),this.zoomArea=new K.fabric.Rect({left:0,top:0,width:.5,height:.5,stroke:"black",strokeWidth:1,fill:"transparent",hoverCursor:"zoom-in"}),X.discardActiveObject(),X.add(this.zoomArea),X.on("mouse:down",this._listeners.startZoom),X.selection=!1,X.defaultCursor="zoom-in"}}},{key:"endZoomInMode",value:function(){this.zoomMode=ze.DEFAULT;var X=this.getCanvas(),ne=this._listeners,xe=ne.startZoom,Ie=ne.moveZoom,Qe=ne.stopZoom;X.selection=!0,X.defaultCursor="auto",X.off({"mouse:down":xe,"mouse:move":Ie,"mouse:up":Qe}),this._changeObjectsEventedState(!0),X.remove(this.zoomArea),this.zoomArea=null}},{key:"start",value:function(){this.zoomArea=null,this._startPoint=null,this._startHandPoint=null}},{key:"end",value:function(){this.endZoomInMode(),this.endHandMode()}},{key:"startHandMode",value:function(){this.endZoomInMode(),this.zoomMode=ze.HAND;var X=this.getCanvas();this._changeObjectsEventedState(!1),X.discardActiveObject(),X.off("mouse:down",this._listeners.startHand),X.on("mouse:down",this._listeners.startHand),X.selection=!1,X.defaultCursor="grab",X.fire(Cg)}},{key:"endHandMode",value:function(){this.zoomMode=ze.DEFAULT;var X=this.getCanvas();this._changeObjectsEventedState(!0),X.off("mouse:down",this._listeners.startHand),X.selection=!0,X.defaultCursor="auto",this._startHandPoint=null,X.fire(HA)}},{key:"_onMouseDownWithZoomMode",value:function(X){var ne=X.target,xe=X.e;if(!ne){var Ie=this.getCanvas();Ie.selection=!1,this._startPoint=Ie.getPointer(xe),this.zoomArea.set({width:0,height:0});var Qe=this._listeners,je=Qe.moveZoom,rt=Qe.stopZoom;Ie.on({"mouse:move":je,"mouse:up":rt})}}},{key:"_onMouseMoveWithZoomMode",value:function(X){var ne=X.e,xe=this.getCanvas(),Ie=xe.getPointer(ne),Qe=Ie.x,je=Ie.y,rt=this.zoomArea,ft=this._startPoint,Ht=Math.abs(Qe-ft.x),zt=Math.abs(je-ft.y);Ht+zt>oh&&(xe.remove(rt),rt.set(this._calcRectDimensionFromPoint(Qe,je)),xe.add(rt))}},{key:"_calcRectDimensionFromPoint",value:function(X,ne){var xe=this.getCanvas(),Ie=xe.getWidth(),Qe=xe.getHeight(),je=this._startPoint,rt=je.x,ft=je.y,Ht=Math.min,zt=Ht(rt,X),qt=Ht(ft,ne),Xt=It(X,rt,Ie)-zt,nr=It(ne,ft,Qe)-qt;return{left:zt,top:qt,width:Xt,height:nr}}},{key:"_onMouseUpWithZoomMode",value:function(){var X=this.zoomLevel,ne=this.zoomArea,xe=this._listeners,Ie=xe.moveZoom,Qe=xe.stopZoom,je=this.getCanvas(),rt=this._getCenterPoint(),ft=rt.x,Ht=rt.y;this._isMaxZoomLevel()||(this._centerPoints.push({x:ft,y:Ht,prevZoomLevel:X,zoomLevel:X+1}),X+=1,je.zoomToPoint({x:ft,y:Ht},X),this._fireZoomChanged(je,X),this.zoomLevel=X),je.off({"mouse:move":Ie,"mouse:up":Qe}),je.remove(ne),this._startPoint=null}},{key:"_getCenterPoint",value:function(){var X=this.zoomArea,ne=X.left,xe=X.top,Ie=X.width,Qe=X.height,je=this._startPoint,rt=je.x,ft=je.y,Ht=this.aspectRatio;return Ie<oh&&Qe<oh?{x:rt,y:ft}:Ie>Qe?{x:ne+Ht*Qe/2,y:xe+Qe/2}:{x:ne+Ie/2,y:xe+Ie/Ht/2}}},{key:"zoom",value:function(X){for(var ne=X.x,xe=X.y,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.zoomLevel,Qe=this.getCanvas(),je=this._centerPoints,rt=je.length-1;rt>=0&&!(je[rt].zoomLevel<Ie);rt-=1){var ft=je.pop(),Ht=ft.x,zt=ft.y,qt=ft.prevZoomLevel;Qe.zoomToPoint({x:Ht,y:zt},qt),this.zoomLevel=qt}Qe.zoomToPoint({x:ne,y:xe},Ie),this._isDefaultZoomLevel(Ie)||this._centerPoints.push({x:ne,y:xe,zoomLevel:Ie,prevZoomLevel:this.zoomLevel}),this.zoomLevel=Ie,this._fireZoomChanged(Qe,Ie)}},{key:"zoomOut",value:function(){var X=this._centerPoints;if(X.length){var ne=this.getCanvas(),xe=X.pop(),Ie=xe.x,Qe=xe.y,je=xe.prevZoomLevel;this._isDefaultZoomLevel(je)?ne.setViewportTransform([1,0,0,1,0,0]):ne.zoomToPoint({x:Ie,y:Qe},je),this.zoomLevel=je,this._fireZoomChanged(ne,this.zoomLevel)}}},{key:"resetZoom",value:function(){var X=this.getCanvas();X.setViewportTransform([1,0,0,1,0,0]),this.zoomLevel=Xf,this._centerPoints=[],this._fireZoomChanged(X,this.zoomLevel)}},{key:"_isMaxZoomLevel",value:function(){return this.zoomLevel>=5}},{key:"_movePointOfZoom",value:function(X){var ne=X.x,xe=X.y,Ie=this._centerPoints;if(Ie.length){var Qe=this.getCanvas(),je=this.zoomLevel,rt=Ie.pop(),ft=rt.x,Ht=rt.y,zt=rt.prevZoomLevel,qt=ft-ne,Xt=Ht-xe;Qe.zoomToPoint({x:ft,y:Ht},zt),Qe.zoomToPoint({x:qt,y:Xt},je),Ie.push({x:qt,y:Xt,prevZoomLevel:zt,zoomLevel:je}),this._fireZoomChanged(Qe,je)}}},{key:"_onMouseDownWithHandMode",value:function(X){var ne=X.target,xe=X.e;if(!ne){var Ie=this.getCanvas();if(!(this.zoomLevel<=Xf)){Ie.selection=!1,this._startHandPoint=Ie.getPointer(xe);var Qe=this._listeners,je=Qe.moveHand,rt=Qe.stopHand;Ie.on({"mouse:move":je,"mouse:up":rt})}}}},{key:"_onMouseMoveWithHandMode",value:function(X){var ne=X.e,xe=this.getCanvas(),Ie=xe.getPointer(ne),Qe=Ie.x,je=Ie.y,rt=Qe-this._startHandPoint.x,ft=je-this._startHandPoint.y;this._movePointOfZoom({x:rt,y:ft})}},{key:"_onMouseUpWithHandMode",value:function(){var X=this.getCanvas(),ne=this._listeners,xe=ne.moveHand,Ie=ne.stopHand;X.off({"mouse:move":xe,"mouse:up":Ie}),this._startHandPoint=null}},{key:"_changeScrollState",value:function(X){var ne=X.viewport,xe=X.zoomLevel,Ie=this.getCanvas();if(Ie.remove(this._verticalScroll),Ie.remove(this._horizontalScroll),!this._isDefaultZoomLevel(xe)){var Qe=Ie.width,je=Ie.height,rt=ne.tl,ft=ne.tr,Ht=ne.bl,zt=ft.x-rt.x,qt=Ht.y-rt.y,Xt=zt*zt/Qe,nr=qt*Yf.SIZE,Mr=It(rt.x+rt.x/Qe*zt,rt.x,ft.x-Xt),Dn=qt*Yf.MARGIN,Nn=qt*Yf.BORDER_RADIUS;this._horizontalScroll.set({left:Mr,top:Ht.y-nr-Dn,width:Xt,height:nr,rx:Nn,ry:Nn});var qn=zt*uh.SIZE,nn=qt*qt/je,Ja=It(rt.y+rt.y/je*qt,ft.y,Ht.y-nn),_s=zt*uh.MARGIN,Xs=zt*uh.BORDER_RADIUS;this._verticalScroll.set({left:ft.x-qn-_s,top:Ja,width:qn,height:nn,rx:Xs,ry:Xs}),this._addScrollBar()}}},{key:"_changeObjectsEventedState",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ne=this.getCanvas();ne.forEachObject(function(xe){xe.evented=X})}},{key:"_addScrollBar",value:function(){var X=this,ne=this.getCanvas();ne.add(this._horizontalScroll),ne.add(this._verticalScroll),this.scrollBarTid&&clearTimeout(this.scrollBarTid),this.scrollBarTid=w()(function(){ne.remove(X._horizontalScroll),ne.remove(X._verticalScroll)},3e3)}},{key:"_isDefaultZoomLevel",value:function(X){return X===Xf}},{key:"_fireZoomChanged",value:function(X,ne){X.fire(Zf,{viewport:X.calcViewportBoundaries(),zoomLevel:ne})}},{key:"mode",get:function(){return this.zoomMode}}]),Z})(Fo),fh=Tp,Ep=Is.create,dh=Is.types,Sa=(function(){function Me(ce){R(this,Me),this.name=ce}return V(Me,[{key:"getName",value:function(){return this.name}},{key:"start",value:function(){throw new Error(Ep(dh.UN_IMPLEMENTATION,"start"))}},{key:"end",value:function(){throw new Error(Ep(dh.UN_IMPLEMENTATION,"stop"))}}]),Me})(),Ks=Sa;function Sg(Me){var ce=Jf();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function Jf(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var QA=(function(Me){Za(Z,Me);var ce=Sg(Z);function Z(){return R(this,Z),ce.call(this,Qt.CROPPER)}return V(Z,[{key:"start",value:function(X){var ne=X.getComponent(sr.CROPPER);ne.start()}},{key:"end",value:function(X){var ne=X.getComponent(sr.CROPPER);ne.end()}}]),Z})(Ks),Ip=QA;function kg(Me){var ce=bo();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function bo(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var zA=(function(Me){Za(Z,Me);var ce=kg(Z);function Z(){return R(this,Z),ce.call(this,Qt.FREE_DRAWING)}return V(Z,[{key:"start",value:function(X,ne){var xe=X.getComponent(sr.FREE_DRAWING);xe.start(ne)}},{key:"end",value:function(X){var ne=X.getComponent(sr.FREE_DRAWING);ne.end()}}]),Z})(Ks),qf=zA;function hh(Me){var ce=VA();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function VA(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var yc=(function(Me){Za(Z,Me);var ce=hh(Z);function Z(){return R(this,Z),ce.call(this,Qt.LINE_DRAWING)}return V(Z,[{key:"start",value:function(X,ne){var xe=X.getComponent(sr.LINE);xe.start(ne)}},{key:"end",value:function(X){var ne=X.getComponent(sr.LINE);ne.end()}}]),Z})(Ks),Lo=yc;function Bu(Me){var ce=Ah();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function Ah(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var WA=(function(Me){Za(Z,Me);var ce=Bu(Z);function Z(){return R(this,Z),ce.call(this,Qt.SHAPE)}return V(Z,[{key:"start",value:function(X){var ne=X.getComponent(sr.SHAPE);ne.start()}},{key:"end",value:function(X){var ne=X.getComponent(sr.SHAPE);ne.end()}}]),Z})(Ks),bc=WA;function nf(Me){var ce=af();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function af(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var GA=(function(Me){Za(Z,Me);var ce=nf(Z);function Z(){return R(this,Z),ce.call(this,Qt.TEXT)}return V(Z,[{key:"start",value:function(X){var ne=X.getComponent(sr.TEXT);ne.start()}},{key:"end",value:function(X){var ne=X.getComponent(sr.TEXT);ne.end()}}]),Z})(Ks),$A=GA;function KA(Me){var ce=Oi();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function Oi(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var ed=(function(Me){Za(Z,Me);var ce=KA(Z);function Z(){return R(this,Z),ce.call(this,Qt.ICON)}return V(Z,[{key:"start",value:function(X){var ne=X.getComponent(sr.ICON);ne.start()}},{key:"end",value:function(X){var ne=X.getComponent(sr.ICON);ne.end()}}]),Z})(Ks),Yo=ed;function td(Me){var ce=ph();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function ph(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var rd=(function(Me){Za(Z,Me);var ce=td(Z);function Z(){return R(this,Z),ce.call(this,Qt.ZOOM)}return V(Z,[{key:"start",value:function(X){var ne=X.getComponent(sr.ZOOM);ne.start()}},{key:"end",value:function(X){var ne=X.getComponent(sr.ZOOM);ne.end()}}]),Z})(Ks),Fu=rd,YA=null;function sf(Me){YA=Me}function wc(){return YA}function mh(Me,ce){var Z;if(Me.type==="activeSelection"){var te;Z=Ni()(te=Me.getObjects()).call(te,function(X){var ne=X.angle,xe=X.left,Ie=X.top,Qe=X.scaleX,je=X.scaleY,rt=X.width,ft=X.height;K.fabric.util.addTransformToObject(X,Me.calcTransformMatrix());var Ht=ce(X);return X.set({angle:ne,left:xe,top:Ie,width:rt,height:ft,scaleX:Qe,scaleY:je}),Ht})}else Z=[ce(Me)];return Z}function of(Me,ce,Z){return Z?{id:Me,width:ce.width,height:ce.height,top:ce.top,left:ce.left,angle:ce.angle,scaleX:ce.scaleX,scaleY:ce.scaleY}:pe()({id:Me},ce)}function nd(Me){var ce=XA();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function XA(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var lo=(function(Me){Za(Z,Me);var ce=nd(Z);function Z(te){var X;return R(this,Z),X=ce.call(this,sr.RESIZE,te),X._dimensions=null,X._originalDimensions=null,X}return V(Z,[{key:"getCurrentDimensions",value:function(){var X=this.getCanvasImage();if(!this._dimensions&&X){var ne=X.width,xe=X.height;this._dimensions={width:ne,height:xe}}return this._dimensions}},{key:"getOriginalDimensions",value:function(){return this._originalDimensions}},{key:"setOriginalDimensions",value:function(X){this._originalDimensions=X}},{key:"resize",value:function(X){var ne=this.getCanvasImage(),xe=ne.width,Ie=ne.height,Qe=ne.scaleX,je=ne.scaleY,rt=X.width,ft=X.height,Ht={scaleX:rt?rt/xe:Qe,scaleY:ft?ft/Ie:je};return(Qe!==Ht.scaleX||je!==Ht.scaleY)&&(ne.set(Ht).setCoords(),this._dimensions={width:ne.width*ne.scaleX,height:ne.height*ne.scaleY}),this.adjustCanvasDimensionBase(),ie().resolve()}},{key:"start",value:function(){var X=this.getCurrentDimensions();this.setOriginalDimensions(X)}},{key:"end",value:function(){}}]),Z})(Fo),ml=lo;function Bp(Me){var ce=Fp();return function(){var te=gn(Me),X;if(ce){var ne=gn(this).constructor;X=_r()(te,arguments,ne)}else X=te.apply(this,arguments);return $a(this,X)}}function Fp(){if(typeof Reflect>"u"||!_r()||_r().sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(_r()(Boolean,[],function(){})),!0}catch{return!1}}var Mu=(function(Me){Za(Z,Me);var ce=Bp(Z);function Z(){return R(this,Z),ce.call(this,Qt.RESIZE)}return V(Z,[{key:"start",value:function(X){var ne=X.getComponent(sr.RESIZE);ne.start()}},{key:"end",value:function(X){var ne=X.getComponent(sr.RESIZE);ne.end()}}]),Z})(Ks),lf=Mu,ZA=1e3,Mp=800,ad=10,Dp={cssOnly:!0},uf={backstoreOnly:!0},_c=(function(){function Me(ce){var Z,te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qt=zt.cssMaxWidth,Xt=zt.cssMaxHeight;R(this,Me),this.canvasImage=null,this.cssMaxWidth=qt||ZA,this.cssMaxHeight=Xt||Mp,this.cropSelectionStyle={},this.targetObjectForCopyPaste=null,this.imageName="",this._objects={},this._canvas=null,this._drawingMode=Qt.NORMAL,this._drawingModeMap={},this._componentMap={},this._handler={onMouseDown:Q()(Z=this._onMouseDown).call(Z,this),onObjectAdded:Q()(te=this._onObjectAdded).call(te,this),onObjectRemoved:Q()(X=this._onObjectRemoved).call(X,this),onObjectMoved:Q()(ne=this._onObjectMoved).call(ne,this),onObjectScaled:Q()(xe=this._onObjectScaled).call(xe,this),onObjectModified:Q()(Ie=this._onObjectModified).call(Ie,this),onObjectRotated:Q()(Qe=this._onObjectRotated).call(Qe,this),onObjectSelected:Q()(je=this._onObjectSelected).call(je,this),onPathCreated:Q()(rt=this._onPathCreated).call(rt,this),onSelectionCleared:Q()(ft=this._onSelectionCleared).call(ft,this),onSelectionCreated:Q()(Ht=this._onSelectionCreated).call(Ht,this)},this._setObjectCachingToFalse(),this._setCanvasElement(ce),this._createDrawingModeInstances(),this._createComponents(),this._attachCanvasEvents(),this._attachZoomEvents()}return V(Me,[{key:"destroy",value:function(){var Z=this._canvas.wrapperEl;this._canvas.clear(),Z.parentNode.removeChild(Z),this._detachZoomEvents()}},{key:"_attachZoomEvents",value:function(){var Z=this.getComponent(sr.ZOOM);Z.attachKeyboardZoomEvents()}},{key:"_detachZoomEvents",value:function(){var Z=this.getComponent(sr.ZOOM);Z.detachKeyboardZoomEvents()}},{key:"deactivateAll",value:function(){return this._canvas.discardActiveObject(),this}},{key:"renderAll",value:function(){return this._canvas.renderAll(),this}},{key:"add",value:function(Z){var te,X=[];kA()(Z)?X=Z:X.push(Z),(te=this._canvas).add.apply(te,I(X))}},{key:"contains",value:function(Z){return this._canvas.contains(Z)}},{key:"getObjects",value:function(){var Z;return h()(Z=this._canvas.getObjects()).call(Z)}},{key:"getObject",value:function(Z){return this._objects[Z]}},{key:"remove",value:function(Z){this._canvas.remove(Z)}},{key:"removeAll",value:function(Z){var te,X=this._canvas,ne=h()(te=X.getObjects()).call(te);return X.remove.apply(X,I(this._canvas.getObjects())),Z&&X.clear(),ne}},{key:"removeObjectById",value:function(Z){var te=[],X=this._canvas,ne=this.getObject(Z),xe=ne&&ne.isType("group")&&!ne.isEmpty();return xe?(X.discardActiveObject(),ne.forEachObject(function(Ie){te.push(Ie),X.remove(Ie)})):X.contains(ne)&&(te.push(ne),X.remove(ne)),te}},{key:"getObjectId",value:function(Z){var te=null;for(te in this._objects)if(this._objects.hasOwnProperty(te)&&Z===this._objects[te])return te;return null}},{key:"getActiveObject",value:function(){return this._canvas._activeObject}},{key:"getActiveObjectIdForRemove",value:function(){var Z=this.getActiveObject(),te=Z.type,X=Z.left,ne=Z.top,xe=te==="activeSelection";if(xe){var Ie=new K.fabric.Group(I(Z.getObjects()),{left:X,top:ne});return this._addFabricObject(Ie)}return this.getObjectId(Z)}},{key:"isReadyRemoveObject",value:function(){var Z=this.getActiveObject();return Z&&!Z.isEditing}},{key:"getActiveObjects",value:function(){var Z=this._canvas._activeObject;return Z&&Z.type==="activeSelection"?Z:null}},{key:"getActiveSelectionFromObjects",value:function(Z){var te=this.getCanvas();return new K.fabric.ActiveSelection(Z,{canvas:te})}},{key:"setActiveObject",value:function(Z){this._canvas.setActiveObject(Z)}},{key:"setCropSelectionStyle",value:function(Z){this.cropSelectionStyle=Z}},{key:"getComponent",value:function(Z){return this._componentMap[Z]}},{key:"getDrawingMode",value:function(){return this._drawingMode}},{key:"startDrawingMode",value:function(Z,te){if(this._isSameDrawingMode(Z))return!0;this.stopDrawingMode();var X=this._getDrawingModeInstance(Z);return X&&X.start&&(X.start(this,te),this._drawingMode=Z),!!X}},{key:"stopDrawingMode",value:function(){if(!this._isSameDrawingMode(Qt.NORMAL)){var Z=this._getDrawingModeInstance(this.getDrawingMode());Z&&Z.end&&Z.end(this),this._drawingMode=Qt.NORMAL}}},{key:"zoom",value:function(Z,te){var X=Z.x,ne=Z.y,xe=this.getComponent(sr.ZOOM);xe.zoom({x:X,y:ne},te)}},{key:"getZoomMode",value:function(){var Z=this.getComponent(sr.ZOOM);return Z.mode}},{key:"startZoomInMode",value:function(){var Z=this.getComponent(sr.ZOOM);Z.startZoomInMode()}},{key:"endZoomInMode",value:function(){var Z=this.getComponent(sr.ZOOM);Z.endZoomInMode()}},{key:"zoomOut",value:function(){var Z=this.getComponent(sr.ZOOM);Z.zoomOut()}},{key:"startHandMode",value:function(){var Z=this.getComponent(sr.ZOOM);Z.startHandMode()}},{key:"endHandMode",value:function(){var Z=this.getComponent(sr.ZOOM);Z.endHandMode()}},{key:"resetZoom",value:function(){var Z=this.getComponent(sr.ZOOM);Z.resetZoom()}},{key:"toDataURL",value:function(Z){var te=this.getComponent(sr.CROPPER);te.changeVisibility(!1);var X=this._canvas&&this._canvas.toDataURL(Z);return te.changeVisibility(!0),X}},{key:"setCanvasImage",value:function(Z,te){te&&Rt(te),this.imageName=Z,this.canvasImage=te}},{key:"setCssMaxDimension",value:function(Z){this.cssMaxWidth=Z.width||this.cssMaxWidth,this.cssMaxHeight=Z.height||this.cssMaxHeight}},{key:"adjustCanvasDimension",value:function(){this.adjustCanvasDimensionBase(this.canvasImage.scale(1))}},{key:"adjustCanvasDimensionBase",value:function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Z||(Z=this.canvasImage);var te=Z.getBoundingRect(),X=te.width,ne=te.height,xe=this._calcMaxDimension(X,ne);this.setCanvasCssDimension({width:"100%",height:"100%","max-width":"".concat(xe.width,"px"),"max-height":"".concat(xe.height,"px")}),this.setCanvasBackstoreDimension({width:X,height:ne}),this._canvas.centerObject(Z)}},{key:"setCanvasCssDimension",value:function(Z){this._canvas.setDimensions(Z,Dp)}},{key:"setCanvasBackstoreDimension",value:function(Z){this._canvas.setDimensions(Z,uf)}},{key:"setImageProperties",value:function(Z,te){var X=this.canvasImage;X&&(X.set(Z).setCoords(),te&&this._canvas.renderAll())}},{key:"getCanvasElement",value:function(){return this._canvas.getElement()}},{key:"getCanvas",value:function(){return this._canvas}},{key:"getCanvasImage",value:function(){return this.canvasImage}},{key:"getImageName",value:function(){return this.imageName}},{key:"addImageObject",value:function(Z){var te,X=this,ne=Q()(te=this._callbackAfterLoadingImageObject).call(te,this);return new(ie())(function(xe){K.fabric.Image.fromURL(Z,function(Ie){ne(Ie),xe(X.createObjectProperties(Ie))},{crossOrigin:"Anonymous"})})}},{key:"getCenter",value:function(){return this._canvas.getCenter()}},{key:"getCropzoneRect",value:function(){return this.getComponent(sr.CROPPER).getCropzoneRect()}},{key:"setCropzoneRect",value:function(Z){this.getComponent(sr.CROPPER).setCropzoneRect(Z)}},{key:"getCroppedImageData",value:function(Z){return this.getComponent(sr.CROPPER).getCroppedImageData(Z)}},{key:"setBrush",value:function(Z){var te=this._drawingMode,X=sr.FREE_DRAWING;te===Qt.LINE_DRAWING&&(X=sr.LINE),this.getComponent(X).setBrush(Z)}},{key:"setDrawingShape",value:function(Z,te){this.getComponent(sr.SHAPE).setStates(Z,te)}},{key:"setIconStyle",value:function(Z,te){this.getComponent(sr.ICON).setStates(Z,te)}},{key:"registerPaths",value:function(Z){this.getComponent(sr.ICON).registerPaths(Z)}},{key:"changeCursor",value:function(Z){var te=this.getCanvas();te.defaultCursor=Z,te.renderAll()}},{key:"hasFilter",value:function(Z){return this.getComponent(sr.FILTER).hasFilter(Z)}},{key:"setSelectionStyle",value:function(Z){pe()(qe.SELECTION_STYLE,Z)}},{key:"setObjectProperties",value:function(Z,te){var X=this.getObject(Z),ne=pe()({},te);return X.set(ne),X.setCoords(),this.getCanvas().renderAll(),ne}},{key:"getObjectProperties",value:function(Z,te){var X=this.getObject(Z),ne={};return Fe()(te)?ne[te]=X[te]:kA()(te)?ys()(te,function(xe){ne[xe]=X[xe]}):Bi()(te,function(xe,Ie){ne[Ie]=X[Ie]}),ne}},{key:"getObjectPosition",value:function(Z,te,X){var ne=this.getObject(Z);return ne?ne.getPointByOrigin(te,X):null}},{key:"setObjectPosition",value:function(Z,te){var X=this.getObject(Z),ne=te.x,xe=te.y,Ie=te.originX,Qe=te.originY;if(!X)return!1;var je=X.getPointByOrigin(Ie,Qe),rt=X.getPointByOrigin("center","center"),ft=rt.x-je.x,Ht=rt.y-je.y;return X.set({left:ne+ft,top:xe+Ht}),X.setCoords(),!0}},{key:"getCanvasSize",value:function(){var Z=this.getCanvasImage();return{width:Z?Z.width:0,height:Z?Z.height:0}}},{key:"createStaticCanvas",value:function(){var Z=new K.fabric.StaticCanvas;return Z.set({enableRetinaScaling:!1}),Z}},{key:"_getDrawingModeInstance",value:function(Z){return this._drawingModeMap[Z]}},{key:"_setObjectCachingToFalse",value:function(){K.fabric.Object.prototype.objectCaching=!1}},{key:"_setCanvasElement",value:function(Z){var te,X;Z.nodeType?te=Z:te=document.querySelector(Z),te.nodeName.toUpperCase()!=="CANVAS"&&(X=document.createElement("canvas"),te.appendChild(X)),this._canvas=new K.fabric.Canvas(X,{containerClass:"tui-image-editor-canvas-container",enableRetinaScaling:!1})}},{key:"_createDrawingModeInstances",value:function(){this._register(this._drawingModeMap,new Ip),this._register(this._drawingModeMap,new qf),this._register(this._drawingModeMap,new Lo),this._register(this._drawingModeMap,new bc),this._register(this._drawingModeMap,new $A),this._register(this._drawingModeMap,new Yo),this._register(this._drawingModeMap,new Fu),this._register(this._drawingModeMap,new lf)}},{key:"_createComponents",value:function(){this._register(this._componentMap,new Yc(this)),this._register(this._componentMap,new pg(this)),this._register(this._componentMap,new sp(this)),this._register(this._componentMap,new Yd(this)),this._register(this._componentMap,new up(this)),this._register(this._componentMap,new hp(this)),this._register(this._componentMap,new bg(this)),this._register(this._componentMap,new Zd(this)),this._register(this._componentMap,new Eu(this)),this._register(this._componentMap,new Cp(this)),this._register(this._componentMap,new fh(this)),this._register(this._componentMap,new ml(this))}},{key:"_register",value:function(Z,te){Z[te.getName()]=te}},{key:"_isSameDrawingMode",value:function(Z){return this.getDrawingMode()===Z}},{key:"_calcMaxDimension",value:function(Z,te){var X=this.cssMaxWidth/Z,ne=this.cssMaxHeight/te,xe=Math.min(Z,this.cssMaxWidth),Ie=Math.min(te,this.cssMaxHeight);return X<1&&X<ne?(xe=Z*X,Ie=te*X):ne<1&&ne<X&&(xe=Z*ne,Ie=te*ne),{width:Math.floor(xe),height:Math.floor(Ie)}}},{key:"_callbackAfterLoadingImageObject",value:function(Z){var te=this.getCanvasImage().getCenterPoint();Z.set(qe.SELECTION_STYLE),Z.set({left:te.x,top:te.y,crossOrigin:"Anonymous"}),this.getCanvas().add(Z).setActiveObject(Z)}},{key:"_attachCanvasEvents",value:function(){var Z=this._canvas,te=this._handler;Z.on({"mouse:down":te.onMouseDown,"object:added":te.onObjectAdded,"object:removed":te.onObjectRemoved,"object:moving":te.onObjectMoved,"object:scaling":te.onObjectScaled,"object:modified":te.onObjectModified,"object:rotating":te.onObjectRotated,"path:created":te.onPathCreated,"selection:cleared":te.onSelectionCleared,"selection:created":te.onSelectionCreated,"selection:updated":te.onObjectSelected})}},{key:"_onMouseDown",value:function(Z){var te=this,X=Z.e,ne=Z.target,xe=this._canvas.getPointer(X);if(ne){var Ie=ne.type,Qe=mh(ne,function(je){return of(te.getObjectId(je),je,Ie==="activeSelection")});sf(Qe)}this.fire(ar.MOUSE_DOWN,X,xe)}},{key:"_onObjectAdded",value:function(Z){var te=Z.target;te.isType("cropzone")||this._addFabricObject(te)}},{key:"_onObjectRemoved",value:function(Z){var te=Z.target;this._removeFabricObject(Rt(te))}},{key:"_onObjectMoved",value:function(Z){var te=this;this._lazyFire(ar.OBJECT_MOVED,function(X){return te.createObjectProperties(X)},Z.target)}},{key:"_onObjectScaled",value:function(Z){var te=this;this._lazyFire(ar.OBJECT_SCALED,function(X){return te.createObjectProperties(X)},Z.target)}},{key:"_onObjectModified",value:function(Z){var te=Z.target;if(te.type==="activeSelection"){var X=te.getObjects();Ut()(X).call(X,function(ne){return ne.fire("modifiedInGroup",te)})}this.fire(ar.OBJECT_MODIFIED,te,this.getObjectId(te))}},{key:"_onObjectRotated",value:function(Z){var te=this;this._lazyFire(ar.OBJECT_ROTATED,function(X){return te.createObjectProperties(X)},Z.target)}},{key:"_lazyFire",value:function(Z,te,X){var ne=this,xe=X&&X.canvasEventDelegation,Ie=xe?X.canvasEventDelegation(Z):"none";Ie==="unregistered"&&X.canvasEventRegister(Z,function(Qe){ne.fire(Z,te(Qe))}),Ie==="none"&&this.fire(Z,te(X))}},{key:"_onObjectSelected",value:function(Z){var te=Z.target,X=this.createObjectProperties(te);this.fire(ar.OBJECT_ACTIVATED,X)}},{key:"_onPathCreated",value:function(Z){var te=Z.path.getCenterPoint(),X=te.x,ne=te.y;Z.path.set(pe()({left:X,top:ne},qe.SELECTION_STYLE));var xe=this.createObjectProperties(Z.path);this.fire(ar.ADD_OBJECT,xe)}},{key:"_onSelectionCleared",value:function(){this.fire(ar.SELECTION_CLEARED)}},{key:"_onSelectionCreated",value:function(Z){var te=Z.target,X=this.createObjectProperties(te);this.fire(ar.OBJECT_ACTIVATED,X),this.fire(ar.SELECTION_CREATED,Z.target)}},{key:"discardSelection",value:function(){this._canvas.discardActiveObject(),this._canvas.renderAll()}},{key:"changeSelectableAll",value:function(Z){this._canvas.forEachObject(function(te){te.selectable=Z,te.hoverCursor=Z?"move":"crosshair"})}},{key:"createObjectProperties",value:function(Z){var te=["left","top","width","height","fill","stroke","strokeWidth","opacity","angle"],X={id:Rt(Z),type:Z.type};if(pe()(X,rn(Z,te)),po(["i-text","text"],Z.type))pe()(X,this._createTextProperties(Z,X));else if(po(["rect","triangle","circle"],Z.type)){var ne=this.getComponent(sr.SHAPE);pe()(X,{fill:ne.makeFillPropertyForUserEvent(Z)})}return X}},{key:"_createTextProperties",value:function(Z){var te=["text","fontFamily","fontSize","fontStyle","textAlign","textDecoration","fontWeight"],X={};return pe()(X,rn(Z,te)),X}},{key:"_addFabricObject",value:function(Z){var te=Rt(Z);return this._objects[te]=Z,te}},{key:"_removeFabricObject",value:function(Z){delete this._objects[Z]}},{key:"resetTargetObjectForCopyPaste",value:function(){var Z=this.getActiveObject();Z&&(this.targetObjectForCopyPaste=Z)}},{key:"pasteObject",value:function(){var Z=this;if(!this.targetObjectForCopyPaste)return ie().resolve([]);var te=this.targetObjectForCopyPaste,X=te.type==="activeSelection",ne=X?te.getObjects():[te],xe=null;return this.discardSelection(),this._cloneObject(ne).then(function(Ie){if(Ie.length>1)xe=Z.getActiveSelectionFromObjects(Ie);else{var Qe=Ke(Ie,1);xe=Qe[0]}Z.targetObjectForCopyPaste=xe,Z.setActiveObject(xe)})}},{key:"_cloneObject",value:function(Z){var te=this,X=Ni()(Z).call(Z,function(ne){return te._cloneObjectItem(ne)});return ie().all(X)}},{key:"_cloneObjectItem",value:function(Z){var te=this;return this._copyFabricObjectForPaste(Z).then(function(X){var ne=te.createObjectProperties(X);return te.add(X),te.fire(ar.ADD_OBJECT,ne),X})}},{key:"_copyFabricObjectForPaste",value:function(Z){var te=this,X=function(xe,Ie){return Ie?xe-ad:xe+ad};return this._copyFabricObject(Z).then(function(ne){var xe=ne.left,Ie=ne.top,Qe=ne.width,je=ne.height,rt=te.getCanvasSize(),ft=rt.width,Ht=rt.height,zt=xe+Qe/2,qt=Ie+je/2;return ne.set(pe()({left:X(xe,zt+ad>ft),top:X(Ie,qt+ad>Ht)},qe.SELECTION_STYLE)),ne})}},{key:"_copyFabricObject",value:function(Z){var te=this;return new(ie())(function(X){Z.clone(function(ne){var xe=te.getComponent(sr.SHAPE);gs(ne)&&xe.processForCopiedObject(ne,Z),X(ne)})})}},{key:"getCurrentDimensions",value:function(){var Z=this.getComponent(sr.RESIZE);return Z.getCurrentDimensions()}},{key:"getOriginalDimensions",value:function(){var Z=this.getComponent(sr.RESIZE);return Z.getOriginalDimensions()}},{key:"setOriginalDimensions",value:function(Z){var te=this.getComponent(sr.RESIZE);te.setOriginalDimensions(Z)}},{key:"resize",value:function(Z){var te=this.getComponent(sr.RESIZE);return te.resize(Z)}}]),Me})();ye().mixin(_c);var Op=_c,cf=ar.MOUSE_DOWN,Lp=ar.OBJECT_MOVED,gh=ar.OBJECT_SCALED,Pp=ar.OBJECT_ACTIVATED,vh=ar.OBJECT_ROTATED,yh=ar.OBJECT_ADDED,bh=ar.OBJECT_MODIFIED,Tg=ar.ADD_TEXT,Rp=ar.ADD_OBJECT,wh=ar.TEXT_EDITING,Up=ar.TEXT_CHANGED,JA=ar.ICON_CREATE_RESIZE,Eg=ar.ICON_CREATE_END,qA=ar.SELECTION_CLEARED,gl=ar.SELECTION_CREATED,_h=ar.ADD_OBJECT_AFTER,xh=(function(){function Me(ce,Z){var te,X,ne,xe,Ie,Qe,je,rt,ft,Ht,zt,qt,Xt,nr,Mr,Dn;if(R(this,Me),Z=pe()({includeUI:!1,usageStatistics:!0},Z),this.mode=null,this.activeObjectId=null,Z.includeUI){var Nn=Z.includeUI;Nn.usageStatistics=Z.usageStatistics,this.ui=new cc(ce,Nn,this.getActions()),Z=this.ui.setUiDefaultSelectionStyle(Z)}this._invoker=new on,this._graphics=new Op(this.ui?this.ui.getEditorArea():ce,{cssMaxWidth:Z.cssMaxWidth,cssMaxHeight:Z.cssMaxHeight}),this._handlers={keydown:Q()(te=this._onKeyDown).call(te,this),mousedown:Q()(X=this._onMouseDown).call(X,this),objectActivated:Q()(ne=this._onObjectActivated).call(ne,this),objectMoved:Q()(xe=this._onObjectMoved).call(xe,this),objectScaled:Q()(Ie=this._onObjectScaled).call(Ie,this),objectRotated:Q()(Qe=this._onObjectRotated).call(Qe,this),objectAdded:Q()(je=this._onObjectAdded).call(je,this),objectModified:Q()(rt=this._onObjectModified).call(rt,this),createdPath:this._onCreatedPath,addText:Q()(ft=this._onAddText).call(ft,this),addObject:Q()(Ht=this._onAddObject).call(Ht,this),textEditing:Q()(zt=this._onTextEditing).call(zt,this),textChanged:Q()(qt=this._onTextChanged).call(qt,this),iconCreateResize:Q()(Xt=this._onIconCreateResize).call(Xt,this),iconCreateEnd:Q()(nr=this._onIconCreateEnd).call(nr,this),selectionCleared:Q()(Mr=this._selectionCleared).call(Mr,this),selectionCreated:Q()(Dn=this._selectionCreated).call(Dn,this)},this._attachInvokerEvents(),this._attachGraphicsEvents(),this._attachDomEvents(),this._setSelectionStyle(Z.selectionStyle,{applyCropSelectionStyle:Z.applyCropSelectionStyle,applyGroupSelectionStyle:Z.applyGroupSelectionStyle}),Z.usageStatistics&&Mn(),this.ui&&(this.ui.initCanvas(),this.setReAction(),this._attachColorPickerInputBoxEvents()),K.fabric.enableGLFiltering=!1}return V(Me,[{key:"_attachColorPickerInputBoxEvents",value:function(){var Z=this;this.ui.on(ar.INPUT_BOX_EDITING_STARTED,function(){Z.isColorPickerInputBoxEditing=!0}),this.ui.on(ar.INPUT_BOX_EDITING_STOPPED,function(){Z.isColorPickerInputBoxEditing=!1})}},{key:"_detachColorPickerInputBoxEvents",value:function(){this.ui.off(ar.INPUT_BOX_EDITING_STARTED),this.ui.off(ar.INPUT_BOX_EDITING_STOPPED)}},{key:"_setSelectionStyle",value:function(Z,te){var X=te.applyCropSelectionStyle,ne=te.applyGroupSelectionStyle;Z&&this._graphics.setSelectionStyle(Z),X&&this._graphics.setCropSelectionStyle(Z),ne&&this.on("selectionCreated",function(xe){xe.type==="activeSelection"&&xe.set(Z)})}},{key:"_attachInvokerEvents",value:function(){var Z,te,X=this,ne=ar.UNDO_STACK_CHANGED,xe=ar.REDO_STACK_CHANGED,Ie=ar.EXECUTE_COMMAND,Qe=ar.AFTER_UNDO,je=ar.AFTER_REDO,rt=ar.HAND_STARTED,ft=ar.HAND_STOPPED;if(this._invoker.on(ne,Q()(Z=this.fire).call(Z,this,ne)),this._invoker.on(xe,Q()(te=this.fire).call(te,this,xe)),this.ui){var Ht=this._graphics.getCanvas();this._invoker.on(Ie,function(zt){return X.ui.fire(Ie,zt)}),this._invoker.on(Qe,function(zt){return X.ui.fire(Qe,zt)}),this._invoker.on(je,function(zt){return X.ui.fire(je,zt)}),Ht.on(rt,function(){return X.ui.fire(rt)}),Ht.on(ft,function(){return X.ui.fire(ft)})}}},{key:"_attachGraphicsEvents",value:function(){var Z;this._graphics.on((Z={},L(Z,cf,this._handlers.mousedown),L(Z,Lp,this._handlers.objectMoved),L(Z,gh,this._handlers.objectScaled),L(Z,vh,this._handlers.objectRotated),L(Z,Pp,this._handlers.objectActivated),L(Z,yh,this._handlers.objectAdded),L(Z,bh,this._handlers.objectModified),L(Z,Tg,this._handlers.addText),L(Z,Rp,this._handlers.addObject),L(Z,wh,this._handlers.textEditing),L(Z,Up,this._handlers.textChanged),L(Z,JA,this._handlers.iconCreateResize),L(Z,Eg,this._handlers.iconCreateEnd),L(Z,qA,this._handlers.selectionCleared),L(Z,gl,this._handlers.selectionCreated),Z))}},{key:"_attachDomEvents",value:function(){document.addEventListener("keydown",this._handlers.keydown)}},{key:"_detachDomEvents",value:function(){document.removeEventListener("keydown",this._handlers.keydown)}},{key:"_onKeyDown",value:function(Z){var te=Z.ctrlKey,X=Z.keyCode,ne=Z.metaKey,xe=te||ne;xe&&(X===Ze.C?this._graphics.resetTargetObjectForCopyPaste():X===Ze.V?(this._graphics.pasteObject(),this.clearRedoStack()):X===Ze.Z?this.undo().catch(function(){}):X===Ze.Y&&this.redo().catch(function(){}));var Ie=X===Ze.BACKSPACE||X===Ze.DEL,Qe=this._graphics.isReadyRemoveObject();!this.isColorPickerInputBoxEditing&&Qe&&Ie&&(Z.preventDefault(),this.removeActiveObject())}},{key:"removeActiveObject",value:function(){var Z=this._graphics.getActiveObjectIdForRemove();this.removeObject(Z)}},{key:"_onMouseDown",value:function(Z,te){this.fire(ar.MOUSE_DOWN,Z,te)}},{key:"_pushAddObjectCommand",value:function(Z){var te=wa.create(Or.ADD_OBJECT,this._graphics,Z);this._invoker.pushUndoStack(te)}},{key:"_pushModifyObjectCommand",value:function(Z){var te=this,X=Z.type,ne=mh(Z,function(Ie){return of(te._graphics.getObjectId(Ie),Ie,X==="activeSelection")}),xe=wa.create(Or.CHANGE_SELECTION,this._graphics,ne);xe.execute(this._graphics,ne),this._invoker.pushUndoStack(xe)}},{key:"_onObjectActivated",value:function(Z){this.fire(ar.OBJECT_ACTIVATED,Z)}},{key:"_onObjectMoved",value:function(Z){this.fire(ar.OBJECT_MOVED,Z)}},{key:"_onObjectScaled",value:function(Z){this.fire(ar.OBJECT_SCALED,Z)}},{key:"_onObjectRotated",value:function(Z){this.fire(ar.OBJECT_ROTATED,Z)}},{key:"getDrawingMode",value:function(){return this._graphics.getDrawingMode()}},{key:"clearObjects",value:function(){return this.execute(Or.CLEAR_OBJECTS)}},{key:"deactivateAll",value:function(){this._graphics.deactivateAll(),this._graphics.renderAll()}},{key:"discardSelection",value:function(){this._graphics.discardSelection()}},{key:"changeSelectableAll",value:function(Z){this._graphics.changeSelectableAll(Z)}},{key:"_initHistory",value:function(){this.ui&&this.ui.initHistory()}},{key:"_clearHistory",value:function(){this.ui&&this.ui.clearHistory()}},{key:"execute",value:function(Z){for(var te,X,ne,xe=arguments.length,Ie=new Array(xe>1?xe-1:0),Qe=1;Qe<xe;Qe++)Ie[Qe-1]=arguments[Qe];var je=G()(te=[this._graphics]).call(te,Ie);return(X=this._invoker).execute.apply(X,G()(ne=[Z]).call(ne,I(je)))}},{key:"executeSilent",value:function(Z){for(var te,X,ne,xe=arguments.length,Ie=new Array(xe>1?xe-1:0),Qe=1;Qe<xe;Qe++)Ie[Qe-1]=arguments[Qe];var je=G()(te=[this._graphics]).call(te,Ie);return(X=this._invoker).executeSilent.apply(X,G()(ne=[Z]).call(ne,I(je)))}},{key:"undo",value:function(){for(var Z=this,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,X=ie().resolve(),ne=0;ne<te;ne+=1)X=X.then(function(){return Z._invoker.undo()});return X}},{key:"redo",value:function(){for(var Z=this,te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,X=ie().resolve(),ne=0;ne<te;ne+=1)X=X.then(function(){return Z._invoker.redo()});return X}},{key:"zoom",value:function(Z){var te=Z.x,X=Z.y,ne=Z.zoomLevel;this._graphics.zoom({x:te,y:X},ne)}},{key:"resetZoom",value:function(){this._graphics.resetZoom()}},{key:"loadImageFromFile",value:function(Z,te){if(!Z)return ie().reject(Ge.invalidParameters);var X=Y().createObjectURL(Z);return te=te||Z.name,this.loadImageFromURL(X,te).then(function(ne){return Y().revokeObjectURL(Z),ne})}},{key:"loadImageFromURL",value:function(Z,te){return!te||!Z?ie().reject(Ge.invalidParameters):this.execute(Or.LOAD_IMAGE,te,Z)}},{key:"addImageObject",value:function(Z){return Z?this.execute(Or.ADD_IMAGE_OBJECT,Z):ie().reject(Ge.invalidParameters)}},{key:"startDrawingMode",value:function(Z,te){return this._graphics.startDrawingMode(Z,te)}},{key:"stopDrawingMode",value:function(){this._graphics.stopDrawingMode()}},{key:"crop",value:function(Z){var te=this._graphics.getCroppedImageData(Z);return te?this.loadImageFromURL(te.url,te.imageName):ie().reject(Ge.invalidParameters)}},{key:"getCropzoneRect",value:function(){return this._graphics.getCropzoneRect()}},{key:"setCropzoneRect",value:function(Z){this._graphics.setCropzoneRect(Z)}},{key:"_flip",value:function(Z){return this.execute(Or.FLIP_IMAGE,Z)}},{key:"flipX",value:function(){return this._flip("flipX")}},{key:"flipY",value:function(){return this._flip("flipY")}},{key:"resetFlip",value:function(){return this._flip("reset")}},{key:"_rotate",value:function(Z,te,X){var ne=null;return X?ne=this.executeSilent(Or.ROTATE_IMAGE,Z,te):ne=this.execute(Or.ROTATE_IMAGE,Z,te),ne}},{key:"rotate",value:function(Z,te){return this._rotate("rotate",Z,te)}},{key:"setAngle",value:function(Z,te){return this._rotate("setAngle",Z,te)}},{key:"setBrush",value:function(Z){this._graphics.setBrush(Z)}},{key:"setDrawingShape",value:function(Z,te){this._graphics.setDrawingShape(Z,te)}},{key:"setDrawingIcon",value:function(Z,te){this._graphics.setIconStyle(Z,te)}},{key:"addShape",value:function(Z,te){return te=te||{},this._setPositions(te),this.execute(Or.ADD_SHAPE,Z,te)}},{key:"changeShape",value:function(Z,te,X){var ne=X?"executeSilent":"execute";return this[ne](Or.CHANGE_SHAPE,Z,te)}},{key:"addText",value:function(Z,te){return Z=Z||"",te=te||{},this.execute(Or.ADD_TEXT,Z,te)}},{key:"changeText",value:function(Z,te){return te=te||"",this.execute(Or.CHANGE_TEXT,Z,te)}},{key:"changeTextStyle",value:function(Z,te,X){var ne=X?"executeSilent":"execute";return this[ne](Or.CHANGE_TEXT_STYLE,Z,te)}},{key:"_changeActivateMode",value:function(Z){Z!=="ICON"&&this.getDrawingMode()!==Z&&this.startDrawingMode(Z)}},{key:"_onTextChanged",value:function(Z){this.fire(ar.TEXT_CHANGED,Z)}},{key:"_onIconCreateResize",value:function(Z){this.fire(ar.ICON_CREATE_RESIZE,Z)}},{key:"_onIconCreateEnd",value:function(Z){this.fire(ar.ICON_CREATE_END,Z)}},{key:"_onTextEditing",value:function(){this.fire(ar.TEXT_EDITING)}},{key:"_onAddText",value:function(Z){this.fire(ar.ADD_TEXT,{originPosition:Z.originPosition,clientPosition:Z.clientPosition})}},{key:"_onAddObject",value:function(Z){var te=this._graphics.getObject(Z.id);this._invoker.fire(ar.EXECUTE_COMMAND,mo(te.type)),this._pushAddObjectCommand(te)}},{key:"_onObjectAdded",value:function(Z){this.fire(yh,Z),this.fire(_h,Z)}},{key:"_onObjectModified",value:function(Z){Z.type!==Sr.CROPZONE&&(this._invoker.fire(ar.EXECUTE_COMMAND,mo(Z.type)),this._pushModifyObjectCommand(Z))}},{key:"_selectionCleared",value:function(){this.fire(qA)}},{key:"_selectionCreated",value:function(Z){this.fire(gl,Z)}},{key:"registerIcons",value:function(Z){this._graphics.registerPaths(Z)}},{key:"changeCursor",value:function(Z){this._graphics.changeCursor(Z)}},{key:"addIcon",value:function(Z,te){return te=te||{},this._setPositions(te),this.execute(Or.ADD_ICON,Z,te)}},{key:"changeIconColor",value:function(Z,te){return this.execute(Or.CHANGE_ICON_COLOR,Z,te)}},{key:"removeObject",value:function(Z){var te=this._graphics.getObject(Z),X=te.type;return this.execute(Or.REMOVE_OBJECT,Z,mo(X))}},{key:"hasFilter",value:function(Z){return this._graphics.hasFilter(Z)}},{key:"removeFilter",value:function(Z){return this.execute(Or.REMOVE_FILTER,Z)}},{key:"applyFilter",value:function(Z,te,X){var ne=X?"executeSilent":"execute";return this[ne](Or.APPLY_FILTER,Z,te)}},{key:"toDataURL",value:function(Z){return this._graphics.toDataURL(Z)}},{key:"getImageName",value:function(){return this._graphics.getImageName()}},{key:"clearUndoStack",value:function(){this._invoker.clearUndoStack()}},{key:"clearRedoStack",value:function(){this._invoker.clearRedoStack()}},{key:"isEmptyUndoStack",value:function(){return this._invoker.isEmptyUndoStack()}},{key:"isEmptyRedoStack",value:function(){return this._invoker.isEmptyRedoStack()}},{key:"resizeCanvasDimension",value:function(Z){return Z?this.execute(Or.RESIZE_CANVAS_DIMENSION,Z):ie().reject(Ge.invalidParameters)}},{key:"destroy",value:function(){var Z=this;this.stopDrawingMode(),this._detachDomEvents(),this._graphics.destroy(),this._graphics=null,this.ui&&(this._detachColorPickerInputBoxEvents(),this.ui.destroy()),Te()(this,function(te,X){Z[X]=null},this)}},{key:"_setPositions",value:function(Z){var te=this._graphics.getCenter();ge()(Z.left)&&(Z.left=te.left),ge()(Z.top)&&(Z.top=te.top)}},{key:"setObjectProperties",value:function(Z,te){return this.execute(Or.SET_OBJECT_PROPERTIES,Z,te)}},{key:"setObjectPropertiesQuietly",value:function(Z,te){this._graphics.setObjectProperties(Z,te)}},{key:"getObjectProperties",value:function(Z,te){var X=this._graphics.getObject(Z);return X?this._graphics.getObjectProperties(Z,te):null}},{key:"getCanvasSize",value:function(){return this._graphics.getCanvasSize()}},{key:"getObjectPosition",value:function(Z,te,X){return this._graphics.getObjectPosition(Z,te,X)}},{key:"setObjectPosition",value:function(Z,te){return this.execute(Or.SET_OBJECT_POSITION,Z,te)}},{key:"resize",value:function(Z){return this.execute(Or.RESIZE_IMAGE,Z)}}]),Me})();hg.mixin(xh),ye().mixin(xh);var Ig=xh,Np=sr.ICON,jp={name:Or.ADD_ICON,execute:function(ce,Z,te){var X=this,ne=ce.getComponent(Np);return ne.add(Z,te).then(function(xe){return X.undoData.object=ce.getObject(xe.id),xe})},undo:function(ce){return ce.remove(this.undoData.object),ie().resolve()}};wa.register(jp);var ff={name:Or.ADD_IMAGE_OBJECT,execute:function(ce,Z){var te=this;return ce.addImageObject(Z).then(function(X){return te.undoData.object=ce.getObject(X.id),X})},undo:function(ce){return ce.remove(this.undoData.object),ie().resolve()}};wa.register(ff);var Rl={name:Or.ADD_OBJECT,execute:function(ce,Z){return new(ie())(function(te,X){ce.contains(Z)?X(Ge.addedObject):(ce.add(Z),te(Z))})},undo:function(ce,Z){return new(ie())(function(te,X){ce.contains(Z)?(ce.remove(Z),te(Z)):X(Ge.noObject)})}};wa.register(Rl);var Ch=sr.SHAPE,Sh={name:Or.ADD_SHAPE,execute:function(ce,Z,te){var X=this,ne=ce.getComponent(Ch);return ne.add(Z,te).then(function(xe){var Ie=xe.id;return X.undoData.object=ce.getObject(Ie),xe})},undo:function(ce){return ce.remove(this.undoData.object),ie().resolve()}};wa.register(Sh);var e0=sr.TEXT,kh={name:Or.ADD_TEXT,execute:function(ce,Z,te){var X=this,ne=ce.getComponent(e0);if(this.undoData.object){var xe=this.undoData.object;return new(ie())(function(Ie,Qe){ce.contains(xe)?Qe(Ge.redo):(ce.add(xe),Ie(xe))})}return ne.add(Z,te).then(function(Ie){var Qe=Ie.id,je=ce.getObject(Qe);return X.undoData.object=je,sf(mh(je,function(){return of(Qe,je,!1)})),Ie})},undo:function(ce){return ce.remove(this.undoData.object),ie().resolve()}};wa.register(kh);var Du=sr.FILTER,Jn=null;function id(Me,ce,Z){var te={};return Me==="mask"&&(te.object=Z.mask),te.options=ce,te}var Ou={name:Or.APPLY_FILTER,execute:function(ce,Z,te,X){var ne=ce.getComponent(Du);if(Z==="mask"){var xe=ce.getObject(te.maskObjId);if(!(xe&&xe.isType("image")))return ie().reject(Ge.invalidParameters);pe()(te,{mask:xe}),ce.remove(te.mask)}if(!this.isRedo){var Ie=ne.getOptions(Z),Qe=id(Z,Ie,te);Jn=this.setUndoData(Qe,Jn,X)}return ne.add(Z,te)},undo:function(ce,Z){var te=ce.getComponent(Du);if(Z==="mask"){var X=this.undoData.object;return ce.add(X),ce.setActiveObject(X),te.remove(Z)}return this.undoData.options?te.add(Z,this.undoData.options):te.remove(Z)}};wa.register(Ou);var Lu=sr.ICON,t0={name:Or.CHANGE_ICON_COLOR,execute:function(ce,Z,te){var X=this;return new(ie())(function(ne,xe){var Ie=ce.getComponent(Lu),Qe=ce.getObject(Z);Qe||xe(Ge.noObject),X.undoData.object=Qe,X.undoData.color=Ie.getColor(Qe),Ie.setColor(te,Qe),ne()})},undo:function(ce){var Z=ce.getComponent(Lu),te=this.undoData,X=te.object,ne=te.color;return Z.setColor(ne,X),ie().resolve()}};wa.register(t0);var df=sr.SHAPE,Th=null;function Os(Me,ce){var Z={object:ce,options:{}};return Bi()(Me,function(te,X){Z.options[X]=ce[X]}),Z}var ns={name:Or.CHANGE_SHAPE,execute:function(ce,Z,te,X){var ne=ce.getComponent(df),xe=ce.getObject(Z);if(!xe)return ie().reject(Ge.noObject);if(!this.isRedo){var Ie=Os(te,xe);Th=this.setUndoData(Ie,Th,X)}return ne.change(xe,te)},undo:function(ce){var Z=ce.getComponent(df),te=this.undoData,X=te.object,ne=te.options;return Z.change(X,ne)}};wa.register(ns);var tu=sr.TEXT,r0={name:Or.CHANGE_TEXT,execute:function(ce,Z,te){var X=ce.getComponent(tu),ne=ce.getObject(Z);return ne?(this.undoData.object=ne,this.undoData.text=X.getText(ne),X.change(ne,te)):ie().reject(Ge.noObject)},undo:function(ce){var Z=ce.getComponent(tu),te=this.undoData,X=te.object,ne=te.text;return Z.change(X,ne)}};wa.register(r0);var n0=sr.TEXT,Eh=null;function Bg(Me,ce){var Z={object:ce,styles:{}};return Bi()(Me,function(te,X){var ne=ce[X];Z.styles[X]=ne}),Z}var Hp={name:Or.CHANGE_TEXT_STYLE,execute:function(ce,Z,te,X){var ne=ce.getComponent(n0),xe=ce.getObject(Z);if(!xe)return ie().reject(Ge.noObject);if(!this.isRedo){var Ie=Bg(te,xe);Eh=this.setUndoData(Ie,Eh,X)}return ne.setStyle(xe,te)},undo:function(ce){var Z=ce.getComponent(n0),te=this.undoData,X=te.object,ne=te.styles;return Z.setStyle(X,ne)}};wa.register(Hp);var Qp={name:Or.CLEAR_OBJECTS,execute:function(ce){var Z=this;return new(ie())(function(te){Z.undoData.objects=ce.removeAll(),te()})},undo:function(ce){return ce.add(this.undoData.objects),ie().resolve()}};wa.register(Qp);var Ul=sr.FLIP,cs={name:Or.FLIP_IMAGE,execute:function(ce,Z){var te=ce.getComponent(Ul);return this.undoData.setting=te.getCurrentSetting(),te[Z]()},undo:function(ce){var Z=ce.getComponent(Ul);return Z.set(this.undoData.setting)}};wa.register(cs);var hf=sr.IMAGE_LOADER,zp={name:Or.LOAD_IMAGE,execute:function(ce,Z,te){var X,ne=ce.getComponent(hf),xe=ne.getCanvasImage(),Ie=xe?xe.width:0,Qe=xe?xe.height:0,je=Dl()(X=ce.removeAll(!0)).call(X,function(rt){return rt.type!=="cropzone"});return Ut()(je).call(je,function(rt){rt.evented=!0}),this.undoData={name:ne.getImageName(),image:xe,objects:je},ne.load(Z,te).then(function(rt){return{oldWidth:Ie,oldHeight:Qe,newWidth:rt.width,newHeight:rt.height}})},undo:function(ce){var Z=ce.getComponent(hf),te=this.undoData,X=te.objects,ne=te.name,xe=te.image;return ce.removeAll(!0),ce.add(X),Z.load(ne,xe)}};wa.register(zp);var Ih=sr.FILTER,Vp={name:Or.REMOVE_FILTER,execute:function(ce,Z){var te=ce.getComponent(Ih);return this.undoData.options=te.getOptions(Z),te.remove(Z)},undo:function(ce,Z){var te=ce.getComponent(Ih),X=this.undoData.options;return te.add(Z,X)}};wa.register(Vp);var Fg={name:Or.REMOVE_OBJECT,execute:function(ce,Z){var te=this;return new(ie())(function(X,ne){te.undoData.objects=ce.removeObjectById(Z),te.undoData.objects.length?X():ne(Ge.noObject)})},undo:function(ce){return ce.add(this.undoData.objects),ie().resolve()}};wa.register(Fg);var sd={name:Or.RESIZE_CANVAS_DIMENSION,execute:function(ce,Z){var te=this;return new(ie())(function(X){te.undoData.size={width:ce.cssMaxWidth,height:ce.cssMaxHeight},ce.setCssMaxDimension(Z),ce.adjustCanvasDimension(),X()})},undo:function(ce){return ce.setCssMaxDimension(this.undoData.size),ce.adjustCanvasDimension(),ie().resolve()}};wa.register(sd);var a0=sr.ROTATION,xc=null;function od(Me){return{angle:Me.getCurrentAngle()}}var Mg={name:Or.ROTATE_IMAGE,execute:function(ce,Z,te,X){var ne=ce.getComponent(a0);if(!this.isRedo){var xe=od(ne);xc=this.setUndoData(xe,xc,X)}return ne[Z](te)},undo:function(ce){var Z=ce.getComponent(a0),te=Ke(this.args,3),X=te[1],ne=te[2];return X==="setAngle"?Z[X](this.undoData.angle):Z.rotate(-ne)}};wa.register(Mg);var Wp={name:Or.SET_OBJECT_PROPERTIES,execute:function(ce,Z,te){var X=this,ne=ce.getObject(Z);return ne?(this.undoData.props={},Bi()(te,function(xe,Ie){X.undoData.props[Ie]=ne[Ie]}),ce.setObjectProperties(Z,te),ie().resolve()):ie().reject(Ge.noObject)},undo:function(ce,Z){var te=this.undoData.props;return ce.setObjectProperties(Z,te),ie().resolve()}};wa.register(Wp);var Gp={name:Or.SET_OBJECT_POSITION,execute:function(ce,Z,te){var X=ce.getObject(Z);return X?(this.undoData.objectId=Z,this.undoData.props=ce.getObjectProperties(Z,["left","top"]),ce.setObjectPosition(Z,te),ce.renderAll(),ie().resolve()):ie().reject(Ge.noObject)},undo:function(ce){var Z=this.undoData,te=Z.objectId,X=Z.props;return ce.setObjectProperties(te,X),ce.renderAll(),ie().resolve()}};wa.register(Gp);var Ys={name:Or.CHANGE_SELECTION,execute:function(ce,Z){return this.isRedo?Ut()(Z).call(Z,function(te){ce.setObjectProperties(te.id,te)}):this.undoData=wc(),ie().resolve()},undo:function(ce){var Z;return Ut()(Z=this.undoData).call(Z,function(te){ce.setObjectProperties(te.id,te)}),ie().resolve()}};wa.register(Ys);var ld=sr.RESIZE,Dg={name:Or.RESIZE_IMAGE,execute:function(ce,Z){var te=ce.getComponent(ld),X=te.getOriginalDimensions();return X||(X=te.getCurrentDimensions()),this.undoData.dimensions=X,te.resize(Z)},undo:function(ce){var Z=ce.getComponent(ld);return Z.resize(this.undoData.dimensions)}};wa.register(Dg);var Af=Ig})(),c=c.default,c})()})})(sw)),sw.exports}var Fse=Bse();const Mse=dy(Fse),Dse={data(){return{instance:null,saveLoading:!1}},props:{imageSrc:{type:String,required:!0},isVisible:{type:Boolean,required:!0}},mounted(){this.init()},methods:{init(){const a={ZoomIn:"放大",ZoomOut:"缩小",Hand:"手掌",History:"历史",Resize:"调整宽高",Crop:"裁剪",DeleteAll:"全部删除",Delete:"删除",Undo:"撤销",Redo:"反撤销",Reset:"重置",Flip:"镜像",Rotate:"旋转",Draw:"画",Shape:"形状标注",Icon:"图标标注",Text:"文字标注",Mask:"遮罩",Filter:"滤镜",Bold:"加粗",Italic:"斜体",Underline:"下划线",Left:"左对齐",Center:"居中",Right:"右对齐",Color:"颜色","Text size":"字体大小",Custom:"自定义",Square:"正方形",Apply:"应用",Cancel:"取消","Flip X":"X 轴","Flip Y":"Y 轴",Range:"区间",Stroke:"描边",Fill:"填充",Circle:"圆",Triangle:"三角",Rectangle:"矩形",Free:"曲线",Straight:"直线",Arrow:"箭头","Arrow-2":"箭头2","Arrow-3":"箭头3","Star-1":"星星1","Star-2":"星星2",Polygon:"多边形",Location:"定位",Heart:"心形",Bubble:"气泡","Custom icon":"自定义图标","Load Mask Image":"加载蒙层图片",Grayscale:"灰度",Blur:"模糊",Sharpen:"锐化",Emboss:"浮雕","Remove White":"除去白色",Distance:"距离",Brightness:"亮度",Noise:"噪音","Color Filter":"彩色滤镜",Sepia:"棕色",Sepia2:"棕色2",Invert:"负片",Pixelate:"像素化",Threshold:"阈值",Tint:"色调",Multiply:"正片叠底",Blend:"混合色",Width:"宽度",Height:"高度","Lock Aspect Ratio":"锁定宽高比例"},s={"common.bi.image":"","common.bisize.width":"0px","common.bisize.height":"0px","common.backgroundImage":"none","common.backgroundColor":"#f3f4f6","common.border":"1px solid #333","header.backgroundImage":"none","header.backgroundColor":"#f3f4f6","header.border":"0px","loadButton.backgroundColor":"#fff","loadButton.border":"1px solid #ddd","loadButton.color":"#222","loadButton.fontFamily":"NotoSans, sans-serif","loadButton.fontSize":"12px","loadButton.display":"none","downloadButton.backgroundColor":"#fdba3b","downloadButton.border":"1px solid #fdba3b","downloadButton.color":"#fff","downloadButton.fontFamily":"NotoSans, sans-serif","downloadButton.fontSize":"12px","downloadButton.display":"none","menu.normalIcon.color":"#8a8a8a","menu.activeIcon.color":"#555555","menu.disabledIcon.color":"#ccc","menu.hoverIcon.color":"#e9e9e9","submenu.normalIcon.color":"#8a8a8a","submenu.activeIcon.color":"#e9e9e9","menu.iconSize.width":"24px","menu.iconSize.height":"24px","submenu.iconSize.width":"32px","submenu.iconSize.height":"32px","submenu.backgroundColor":"#1e1e1e","submenu.partition.color":"#858585","submenu.normalLabel.color":"#858585","submenu.normalLabel.fontWeight":"lighter","submenu.activeLabel.color":"#fff","submenu.activeLabel.fontWeight":"lighter","checkbox.border":"1px solid #ccc","checkbox.backgroundColor":"#fff","range.pointer.color":"#fff","range.bar.color":"#666","range.subbar.color":"#d1d1d1","range.disabledPointer.color":"#414141","range.disabledBar.color":"#282828","range.disabledSubbar.color":"#414141","range.value.color":"#fff","range.value.fontWeight":"lighter","range.value.fontSize":"11px","range.value.border":"1px solid #353535","range.value.backgroundColor":"#151515","range.title.color":"#fff","range.title.fontWeight":"lighter","colorpicker.button.border":"1px solid #1e1e1e","colorpicker.title.color":"#fff"};console.log("imageSrc:",this.imageSrc),this.instance=new Mse(document.querySelector("#tui-image-editor"),{includeUI:{loadImage:{path:this.imageSrc,name:"image"},initMenu:"draw",menuBarPosition:"bottom",locale:a,theme:s,cropSubMenu:["square"]},cssMaxWidth:1e3,cssMaxHeight:600}),document.getElementsByClassName("tui-image-editor")[0].style.top="45px",document.getElementsByClassName("tie-btn-reset tui-image-editor-item help")[0].style.display="none"},loadImage(a){this.instance.loadImageFromURL(a,"image")},async save(){this.saveLoading=!0;const a=this.instance.toDataURL(),s=window.atob(a.split(",")[1]),r=new Uint8Array(s.length);for(let t=0;t<s.length;t++)r[t]=s.charCodeAt(t);const i=new Blob([r],{type:"image/png"}),n=new FormData;n.append("file",i);try{let t=await a_(n);this.$emit("saveImage",t.imageUrl),console.log(t),this.saveLoading=!1}catch(t){this.saveLoading=!1,console.log(t)}},cancel(){this.$emit("close")}}},Ose={class:"dialog-box"},Lse={class:"dialog-content"},Pse={class:"dialog-content_header"},Rse={class:"dialog-content_body"},Use={class:"image-editor"},Nse={class:"flex justify-end items-center",style:{"margin-top":"20px"}};function jse(a,s,r,i,n,t){const c=Ce("var-icon"),u=Ce("el-button");return na((Oe(),st("div",Ose,[de("div",Lse,[de("div",Pse,[s[0]||(s[0]=de("span",null,null,-1)),z(c,{name:"close-circle",onClick:t.cancel,size:30},null,8,["onClick"])]),de("div",Rse,[de("div",Use,[s[3]||(s[3]=de("div",{id:"tui-image-editor",style:{height:"600px"}},null,-1)),de("div",Nse,[z(u,{type:"primary",onClick:t.save,loading:n.saveLoading},{default:q(()=>[...s[1]||(s[1]=[Ue("保存",-1)])]),_:1},8,["onClick","loading"]),z(u,{type:"default",onClick:t.cancel},{default:q(()=>[...s[2]||(s[2]=[Ue("取消",-1)])]),_:1},8,["onClick"])])])])])],512)),[[Cl,r.isVisible]])}const Hse=cn(Dse,[["render",jse],["__scopeId","data-v-08eb78c1"]]);/*!
 * Viewer.js v1.11.7
 * https://fengyuanchen.github.io/viewerjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2024-11-24T04:32:19.116Z
 */function Qse(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function iC(a,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,Yk(i.key),i)}}function zse(a,s,r){return s&&iC(a.prototype,s),r&&iC(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function Vse(a,s,r){return(s=Yk(s))in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function sC(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(a);s&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),r.push.apply(r,i)}return r}function lx(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?sC(Object(r),!0).forEach(function(i){Vse(a,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):sC(Object(r)).forEach(function(i){Object.defineProperty(a,i,Object.getOwnPropertyDescriptor(r,i))})}return a}function Wse(a,s){if(typeof a!="object"||!a)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var i=r.call(a,s);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}function Yk(a){var s=Wse(a,"string");return typeof s=="symbol"?s:s+""}function $w(a){"@babel/helpers - typeof";return $w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},$w(a)}var oC={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Gse='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',Ny=typeof window<"u"&&typeof window.document<"u",Od=Ny?window:{},zm=Ny&&Od.document.documentElement?"ontouchstart"in Od.document.documentElement:!1,ux=Ny?"PointerEvent"in Od:!1,Wa="viewer",U2="move",Xk="switch",w1="zoom",E2="".concat(Wa,"-active"),$se="".concat(Wa,"-close"),N2="".concat(Wa,"-fade"),Kw="".concat(Wa,"-fixed"),Kse="".concat(Wa,"-fullscreen"),lC="".concat(Wa,"-fullscreen-exit"),y0="".concat(Wa,"-hide"),Yse="".concat(Wa,"-hide-md-down"),Xse="".concat(Wa,"-hide-sm-down"),Zse="".concat(Wa,"-hide-xs-down"),Hu="".concat(Wa,"-in"),P1="".concat(Wa,"-invisible"),Vm="".concat(Wa,"-loading"),Jse="".concat(Wa,"-move"),uC="".concat(Wa,"-open"),km="".concat(Wa,"-show"),Cs="".concat(Wa,"-transition"),Xm="click",Yw="dblclick",cC="dragstart",fC="focusin",dC="keydown",Yu="load",I0="error",qse=zm?"touchend touchcancel":"mouseup",eoe=zm?"touchmove":"mousemove",toe=zm?"touchstart":"mousedown",hC=ux?"pointerdown":toe,AC=ux?"pointermove":eoe,pC=ux?"pointerup pointercancel":qse,mC="resize",Mc="transitionend",gC="wheel",vC="ready",yC="show",bC="shown",wC="hide",_C="hidden",xC="view",tv="viewed",CC="move",SC="moved",kC="rotate",TC="rotated",EC="scale",IC="scaled",BC="zoom",FC="zoomed",MC="play",DC="stop",fy="".concat(Wa,"Action"),cx=/\s\s*/,I2=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function rv(a){return typeof a=="string"}var roe=Number.isNaN||Od.isNaN;function hs(a){return typeof a=="number"&&!roe(a)}function Lm(a){return typeof a>"u"}function Zm(a){return $w(a)==="object"&&a!==null}var noe=Object.prototype.hasOwnProperty;function Pm(a){if(!Zm(a))return!1;try{var s=a.constructor,r=s.prototype;return s&&r&&noe.call(r,"isPrototypeOf")}catch{return!1}}function Pi(a){return typeof a=="function"}function Gi(a,s){if(a&&Pi(s))if(Array.isArray(a)||hs(a.length)){var r=a.length,i;for(i=0;i<r&&s.call(a,a[i],i,a)!==!1;i+=1);}else Zm(a)&&Object.keys(a).forEach(function(n){s.call(a,a[n],n,a)});return a}var du=Object.assign||function(s){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Zm(s)&&i.length>0&&i.forEach(function(t){Zm(t)&&Object.keys(t).forEach(function(c){s[c]=t[c]})}),s},aoe=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Pc(a,s){var r=a.style;Gi(s,function(i,n){aoe.test(n)&&hs(i)&&(i+="px"),r[n]=i})}function ioe(a){return rv(a)?a.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):a}function Mm(a,s){return!a||!s?!1:a.classList?a.classList.contains(s):a.className.indexOf(s)>-1}function ya(a,s){if(!(!a||!s)){if(hs(a.length)){Gi(a,function(i){ya(i,s)});return}if(a.classList){a.classList.add(s);return}var r=a.className.trim();r?r.indexOf(s)<0&&(a.className="".concat(r," ").concat(s)):a.className=s}}function wi(a,s){if(!(!a||!s)){if(hs(a.length)){Gi(a,function(r){wi(r,s)});return}if(a.classList){a.classList.remove(s);return}a.className.indexOf(s)>=0&&(a.className=a.className.replace(s,""))}}function nv(a,s,r){if(s){if(hs(a.length)){Gi(a,function(i){nv(i,s,r)});return}r?ya(a,s):wi(a,s)}}var soe=/([a-z\d])([A-Z])/g;function fx(a){return a.replace(soe,"$1-$2").toLowerCase()}function Rm(a,s){return Zm(a[s])?a[s]:a.dataset?a.dataset[s]:a.getAttribute("data-".concat(fx(s)))}function Xw(a,s,r){Zm(r)?a[s]=r:a.dataset?a.dataset[s]=r:a.setAttribute("data-".concat(fx(s)),r)}var Zk=(function(){var a=!1;if(Ny){var s=!1,r=function(){},i=Object.defineProperty({},"once",{get:function(){return a=!0,s},set:function(t){s=t}});Od.addEventListener("test",r,i),Od.removeEventListener("test",r,i)}return a})();function Ri(a,s,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=r;s.trim().split(cx).forEach(function(t){if(!Zk){var c=a.listeners;c&&c[t]&&c[t][r]&&(n=c[t][r],delete c[t][r],Object.keys(c[t]).length===0&&delete c[t],Object.keys(c).length===0&&delete a.listeners)}a.removeEventListener(t,n,i)})}function Ea(a,s,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=r;s.trim().split(cx).forEach(function(t){if(i.once&&!Zk){var c=a.listeners,u=c===void 0?{}:c;n=function(){delete u[t][r],a.removeEventListener(t,n,i);for(var o=arguments.length,l=new Array(o),g=0;g<o;g++)l[g]=arguments[g];r.apply(a,l)},u[t]||(u[t]={}),u[t][r]&&a.removeEventListener(t,u[t][r],i),u[t][r]=n,a.listeners=u}a.addEventListener(t,n,i)})}function Hs(a,s,r,i){var n;return Pi(Event)&&Pi(CustomEvent)?n=new CustomEvent(s,lx({bubbles:!0,cancelable:!0,detail:r},i)):(n=document.createEvent("CustomEvent"),n.initCustomEvent(s,!0,!0,r)),a.dispatchEvent(n)}function ooe(a){var s=a.getBoundingClientRect();return{left:s.left+(window.pageXOffset-document.documentElement.clientLeft),top:s.top+(window.pageYOffset-document.documentElement.clientTop)}}function j2(a){var s=a.rotate,r=a.scaleX,i=a.scaleY,n=a.translateX,t=a.translateY,c=[];hs(n)&&n!==0&&c.push("translateX(".concat(n,"px)")),hs(t)&&t!==0&&c.push("translateY(".concat(t,"px)")),hs(s)&&s!==0&&c.push("rotate(".concat(s,"deg)")),hs(r)&&r!==1&&c.push("scaleX(".concat(r,")")),hs(i)&&i!==1&&c.push("scaleY(".concat(i,")"));var u=c.length?c.join(" "):"none";return{WebkitTransform:u,msTransform:u,transform:u}}function loe(a){return rv(a)?decodeURIComponent(a.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var lw=Od.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(Od.navigator.userAgent);function Jk(a,s,r){var i=document.createElement("img");if(a.naturalWidth&&!lw)return r(a.naturalWidth,a.naturalHeight),i;var n=document.body||document.documentElement;return i.onload=function(){r(i.width,i.height),lw||n.removeChild(i)},Gi(s.inheritedAttributes,function(t){var c=a.getAttribute(t);c!==null&&i.setAttribute(t,c)}),i.src=a.src,lw||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",n.appendChild(i)),i}function B2(a){switch(a){case 2:return Zse;case 3:return Xse;case 4:return Yse;default:return""}}function uoe(a){var s=lx({},a),r=[];return Gi(a,function(i,n){delete s[n],Gi(s,function(t){var c=Math.abs(i.startX-t.startX),u=Math.abs(i.startY-t.startY),f=Math.abs(i.endX-t.endX),o=Math.abs(i.endY-t.endY),l=Math.sqrt(c*c+u*u),g=Math.sqrt(f*f+o*o),m=(g-l)/l;r.push(m)})}),r.sort(function(i,n){return Math.abs(i)<Math.abs(n)}),r[0]}function F2(a,s){var r=a.pageX,i=a.pageY,n={endX:r,endY:i};return s?n:lx({timeStamp:Date.now(),startX:r,startY:i},n)}function coe(a){var s=0,r=0,i=0;return Gi(a,function(n){var t=n.startX,c=n.startY;s+=t,r+=c,i+=1}),s/=i,r/=i,{pageX:s,pageY:r}}var foe={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var s=this.element.ownerDocument,r=s.body||s.documentElement;this.body=r,this.scrollbarWidth=window.innerWidth-s.documentElement.clientWidth,this.initialBodyPaddingRight=r.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(r).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var s=this.options,r=this.parent,i;s.inline&&(i={width:Math.max(r.offsetWidth,s.minWidth),height:Math.max(r.offsetHeight,s.minHeight)},this.parentData=i),(this.fulled||!i)&&(i=this.containerData),this.viewerData=du({},i)},renderViewer:function(){this.options.inline&&!this.fulled&&Pc(this.viewer,this.viewerData)},initList:function(){var s=this,r=this.element,i=this.options,n=this.list,t=[];n.innerHTML="",Gi(this.images,function(c,u){var f=c.src,o=c.alt||loe(f),l=s.getImageURL(c);if(f||l){var g=document.createElement("li"),m=document.createElement("img");Gi(i.inheritedAttributes,function(p){var _=c.getAttribute(p);_!==null&&m.setAttribute(p,_)}),i.navbar&&(m.src=f||l),m.alt=o,m.setAttribute("data-original-url",l||f),g.setAttribute("data-index",u),g.setAttribute("data-viewer-action","view"),g.setAttribute("role","button"),i.keyboard&&g.setAttribute("tabindex",0),g.appendChild(m),n.appendChild(g),t.push(g)}}),this.items=t,Gi(t,function(c){var u=c.firstElementChild,f,o;Xw(u,"filled",!0),i.loading&&ya(c,Vm),Ea(u,Yu,f=function(g){Ri(u,I0,o),i.loading&&wi(c,Vm),s.loadImage(g)},{once:!0}),Ea(u,I0,o=function(){Ri(u,Yu,f),i.loading&&wi(c,Vm)},{once:!0})}),i.transition&&Ea(r,tv,function(){ya(n,Cs)},{once:!0})},renderList:function(){var s=this.index,r=this.items[s];if(r){var i=r.nextElementSibling,n=parseInt(window.getComputedStyle(i||r).marginLeft,10),t=r.offsetWidth,c=t+n;Pc(this.list,du({width:c*this.length-n},j2({translateX:(this.viewerData.width-t)/2-c*s})))}},resetList:function(){var s=this.list;s.innerHTML="",wi(s,Cs),Pc(s,j2({translateX:0}))},initImage:function(s){var r=this,i=this.options,n=this.image,t=this.viewerData,c=this.footer.offsetHeight,u=t.width,f=Math.max(t.height-c,c),o=this.imageData||{},l;this.imageInitializing={abort:function(){l.onload=null}},l=Jk(n,i,function(g,m){var p=g/m,_=Math.max(0,Math.min(1,i.initialCoverage)),y=u,h=f;r.imageInitializing=!1,f*p>u?h=u/p:y=f*p,_=hs(_)?_:.9,y=Math.min(y*_,g),h=Math.min(h*_,m);var d=(u-y)/2,A=(f-h)/2,v={left:d,top:A,x:d,y:A,width:y,height:h,oldRatio:1,ratio:y/g,aspectRatio:p,naturalWidth:g,naturalHeight:m},w=du({},v);i.rotatable&&(v.rotate=o.rotate||0,w.rotate=0),i.scalable&&(v.scaleX=o.scaleX||1,v.scaleY=o.scaleY||1,w.scaleX=1,w.scaleY=1),r.imageData=v,r.initialImageData=w,s&&s()})},renderImage:function(s){var r=this,i=this.image,n=this.imageData;if(Pc(i,du({width:n.width,height:n.height,marginLeft:n.x,marginTop:n.y},j2(n))),s)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Mm(i,Cs)){var t=function(){r.imageRendering=!1,s()};this.imageRendering={abort:function(){Ri(i,Mc,t)}},Ea(i,Mc,t,{once:!0})}else s()},resetImage:function(){var s=this.image;s&&(this.viewing&&this.viewing.abort(),s.parentNode.removeChild(s),this.image=null,this.title.innerHTML="")}},doe={bind:function(){var s=this.options,r=this.viewer,i=this.canvas,n=this.element.ownerDocument;Ea(r,Xm,this.onClick=this.click.bind(this)),Ea(r,cC,this.onDragStart=this.dragstart.bind(this)),Ea(i,hC,this.onPointerDown=this.pointerdown.bind(this)),Ea(n,AC,this.onPointerMove=this.pointermove.bind(this)),Ea(n,pC,this.onPointerUp=this.pointerup.bind(this)),Ea(n,dC,this.onKeyDown=this.keydown.bind(this)),Ea(window,mC,this.onResize=this.resize.bind(this)),s.zoomable&&s.zoomOnWheel&&Ea(r,gC,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),s.toggleOnDblclick&&Ea(i,Yw,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var s=this.options,r=this.viewer,i=this.canvas,n=this.element.ownerDocument;Ri(r,Xm,this.onClick),Ri(r,cC,this.onDragStart),Ri(i,hC,this.onPointerDown),Ri(n,AC,this.onPointerMove),Ri(n,pC,this.onPointerUp),Ri(n,dC,this.onKeyDown),Ri(window,mC,this.onResize),s.zoomable&&s.zoomOnWheel&&Ri(r,gC,this.onWheel,{passive:!1,capture:!0}),s.toggleOnDblclick&&Ri(i,Yw,this.onDblclick)}},hoe={click:function(s){var r=this.options,i=this.imageData,n=s.target,t=Rm(n,fy);switch(!t&&n.localName==="img"&&n.parentElement.localName==="li"&&(n=n.parentElement,t=Rm(n,fy)),zm&&s.isTrusted&&n===this.canvas&&clearTimeout(this.clickCanvasTimeout),t){case"mix":this.played?this.stop():r.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(Rm(n,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(r.loop);break;case"play":this.play(r.fullscreen);break;case"next":this.next(r.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(s){s.preventDefault(),this.viewed&&s.target===this.image&&(zm&&s.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(s.isTrusted?s:s.detail&&s.detail.originalEvent))},load:function(){var s=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var r=this.element,i=this.options,n=this.image,t=this.index,c=this.viewerData;wi(n,P1),i.loading&&wi(this.canvas,Vm),n.style.cssText="height:0;"+"margin-left:".concat(c.width/2,"px;")+"margin-top:".concat(c.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){nv(n,Jse,i.movable),nv(n,Cs,i.transition),s.renderImage(function(){s.viewed=!0,s.viewing=!1,Pi(i.viewed)&&Ea(r,tv,i.viewed,{once:!0}),Hs(r,tv,{originalImage:s.images[t],index:t,image:n},{cancelable:!1})})})},loadImage:function(s){var r=s.target,i=r.parentNode,n=i.offsetWidth||30,t=i.offsetHeight||50,c=!!Rm(r,"filled");Jk(r,this.options,function(u,f){var o=u/f,l=n,g=t;t*o>n?c?l=t*o:g=n/o:c?g=n/o:l=t*o,Pc(r,du({width:l,height:g},j2({translateX:(n-l)/2,translateY:(t-g)/2})))})},keydown:function(s){var r=this.options;if(r.keyboard){var i=s.keyCode||s.which||s.charCode;switch(i){case 13:this.viewer.contains(s.target)&&this.click(s);break}if(this.fulled)switch(i){case 27:this.played?this.stop():r.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(r.loop);break;case 38:s.preventDefault(),this.zoom(r.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(r.loop);break;case 40:s.preventDefault(),this.zoom(-r.zoomRatio,!0);break;case 48:case 49:s.ctrlKey&&(s.preventDefault(),this.toggle());break}}},dragstart:function(s){s.target.localName==="img"&&s.preventDefault()},pointerdown:function(s){var r=this.options,i=this.pointers,n=s.buttons,t=s.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(s.type==="mousedown"||s.type==="pointerdown"&&s.pointerType==="mouse")&&(hs(n)&&n!==1||hs(t)&&t!==0||s.ctrlKey))){s.preventDefault(),s.changedTouches?Gi(s.changedTouches,function(u){i[u.identifier]=F2(u)}):i[s.pointerId||0]=F2(s);var c=r.movable?U2:!1;r.zoomOnTouch&&r.zoomable&&Object.keys(i).length>1?c=w1:r.slideOnTouch&&(s.pointerType==="touch"||s.type==="touchstart")&&this.isSwitchable()&&(c=Xk),r.transition&&(c===U2||c===w1)&&wi(this.image,Cs),this.action=c}},pointermove:function(s){var r=this.pointers,i=this.action;!this.viewed||!i||(s.preventDefault(),s.changedTouches?Gi(s.changedTouches,function(n){du(r[n.identifier]||{},F2(n,!0))}):du(r[s.pointerId||0]||{},F2(s,!0)),this.change(s))},pointerup:function(s){var r=this,i=this.options,n=this.action,t=this.pointers,c;s.changedTouches?Gi(s.changedTouches,function(u){c=t[u.identifier],delete t[u.identifier]}):(c=t[s.pointerId||0],delete t[s.pointerId||0]),n&&(s.preventDefault(),i.transition&&(n===U2||n===w1)&&ya(this.image,Cs),this.action=!1,zm&&n!==w1&&c&&Date.now()-c.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&s.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Hs(r.image,Yw,{originalEvent:s})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){r.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&i.backdrop!=="static"&&s.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Hs(r.canvas,Xm,{originalEvent:s})},50)))))},resize:function(){var s=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){s.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}Gi(this.player.getElementsByTagName("img"),function(r){Ea(r,Yu,s.loadImage.bind(s),{once:!0}),Hs(r,Yu)})}},wheel:function(s){var r=this;if(this.viewed&&(s.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){r.wheeling=!1},50);var i=Number(this.options.zoomRatio)||.1,n=1;s.deltaY?n=s.deltaY>0?1:-1:s.wheelDelta?n=-s.wheelDelta/120:s.detail&&(n=s.detail>0?1:-1),this.zoom(-n*i,!0,null,s)}}},Aoe={show:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(s),this;if(Pi(i.show)&&Ea(r,yC,i.show,{once:!0}),Hs(r,yC)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var n=this.viewer;if(wi(n,y0),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("aria-hidden"),i.transition&&!s){var t=this.shown.bind(this);this.transitioning={abort:function(){Ri(n,Mc,t),wi(n,Hu)}},ya(n,Cs),n.initialOffsetWidth=n.offsetWidth,Ea(n,Mc,t,{once:!0}),ya(n,Hu)}else ya(n,Hu),this.shown();return this},hide:function(){var s=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,n=this.options;if(n.inline||this.hiding||!(this.isShown||this.showing))return this;if(Pi(n.hide)&&Ea(i,wC,n.hide,{once:!0}),Hs(i,wC)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var t=this.viewer,c=this.image,u=function(){wi(t,Hu),s.hidden()};if(n.transition&&!r){var f=function(g){g&&g.target===t&&(Ri(t,Mc,f),s.hidden())},o=function(){Mm(t,Cs)?(Ea(t,Mc,f),wi(t,Hu)):u()};this.transitioning={abort:function(){s.viewed&&Mm(c,Cs)?Ri(c,Mc,o):Mm(t,Cs)&&Ri(t,Mc,f)}},this.viewed&&Mm(c,Cs)?(Ea(c,Mc,o,{once:!0}),this.zoomTo(0,!1,null,null,!0)):o()}else u();return this},view:function(){var s=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(r=Number(r)||0,this.hiding||this.played||r<0||r>=this.length||this.viewed&&r===this.index)return this;if(!this.isShown)return this.index=r,this.show();this.viewing&&this.viewing.abort();var i=this.element,n=this.options,t=this.title,c=this.canvas,u=this.items[r],f=u.querySelector("img"),o=Rm(f,"originalUrl"),l=f.getAttribute("alt"),g=document.createElement("img");if(Gi(n.inheritedAttributes,function(h){var d=f.getAttribute(h);d!==null&&g.setAttribute(h,d)}),g.src=o,g.alt=l,Pi(n.view)&&Ea(i,xC,n.view,{once:!0}),Hs(i,xC,{originalImage:this.images[r],index:r,image:g})===!1||!this.isShown||this.hiding||this.played)return this;var m=this.items[this.index];m&&(wi(m,E2),m.removeAttribute("aria-selected")),ya(u,E2),u.setAttribute("aria-selected",!0),n.focus&&u.focus(),this.image=g,this.viewed=!1,this.index=r,this.imageData={},ya(g,P1),n.loading&&ya(c,Vm),c.innerHTML="",c.appendChild(g),this.renderList(),t.innerHTML="";var p=function(){var d=s.imageData,A=Array.isArray(n.title)?n.title[1]:n.title;t.innerHTML=ioe(Pi(A)?A.call(s,g,d):"".concat(l," (").concat(d.naturalWidth," × ").concat(d.naturalHeight,")"))},_,y;return Ea(i,tv,p,{once:!0}),this.viewing={abort:function(){Ri(i,tv,p),g.complete?s.imageRendering?s.imageRendering.abort():s.imageInitializing&&s.imageInitializing.abort():(g.src="",Ri(g,Yu,_),s.timeout&&clearTimeout(s.timeout))}},g.complete?this.load():(Ea(g,Yu,_=function(){Ri(g,I0,y),s.load()},{once:!0}),Ea(g,I0,y=function(){Ri(g,Yu,_),s.timeout&&(clearTimeout(s.timeout),s.timeout=!1),wi(g,P1),n.loading&&wi(s.canvas,Vm)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){wi(g,P1),s.timeout=!1},1e3)),this},prev:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.index-1;return r<0&&(r=s?this.length-1:0),this.view(r),this},next:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.length-1,i=this.index+1;return i>r&&(i=s?0:r),this.view(i),this},move:function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,i=this.imageData;return this.moveTo(Lm(s)?s:i.x+Number(s),Lm(r)?r:i.y+Number(r)),this},moveTo:function(s){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,t=this.element,c=this.options,u=this.imageData;if(s=Number(s),i=Number(i),this.viewed&&!this.played&&c.movable){var f=u.x,o=u.y,l=!1;if(hs(s)?l=!0:s=f,hs(i)?l=!0:i=o,l){if(Pi(c.move)&&Ea(t,CC,c.move,{once:!0}),Hs(t,CC,{x:s,y:i,oldX:f,oldY:o,originalEvent:n})===!1)return this;u.x=s,u.y=i,u.left=s,u.top=i,this.moving=!0,this.renderImage(function(){r.moving=!1,Pi(c.moved)&&Ea(t,SC,c.moved,{once:!0}),Hs(t,SC,{x:s,y:i,oldX:f,oldY:o,originalEvent:n},{cancelable:!1})})}}return this},rotate:function(s){return this.rotateTo((this.imageData.rotate||0)+Number(s)),this},rotateTo:function(s){var r=this,i=this.element,n=this.options,t=this.imageData;if(s=Number(s),hs(s)&&this.viewed&&!this.played&&n.rotatable){var c=t.rotate;if(Pi(n.rotate)&&Ea(i,kC,n.rotate,{once:!0}),Hs(i,kC,{degree:s,oldDegree:c})===!1)return this;t.rotate=s,this.rotating=!0,this.renderImage(function(){r.rotating=!1,Pi(n.rotated)&&Ea(i,TC,n.rotated,{once:!0}),Hs(i,TC,{degree:s,oldDegree:c},{cancelable:!1})})}return this},scaleX:function(s){return this.scale(s,this.imageData.scaleY),this},scaleY:function(s){return this.scale(this.imageData.scaleX,s),this},scale:function(s){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s,n=this.element,t=this.options,c=this.imageData;if(s=Number(s),i=Number(i),this.viewed&&!this.played&&t.scalable){var u=c.scaleX,f=c.scaleY,o=!1;if(hs(s)?o=!0:s=u,hs(i)?o=!0:i=f,o){if(Pi(t.scale)&&Ea(n,EC,t.scale,{once:!0}),Hs(n,EC,{scaleX:s,scaleY:i,oldScaleX:u,oldScaleY:f})===!1)return this;c.scaleX=s,c.scaleY=i,this.scaling=!0,this.renderImage(function(){r.scaling=!1,Pi(t.scaled)&&Ea(n,IC,t.scaled,{once:!0}),Hs(n,IC,{scaleX:s,scaleY:i,oldScaleX:u,oldScaleY:f},{cancelable:!1})})}}return this},zoom:function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,t=this.imageData;return s=Number(s),s<0?s=1/(1-s):s=1+s,this.zoomTo(t.width*s/t.naturalWidth,r,i,n),this},zoomTo:function(s){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,u=this.element,f=this.options,o=this.pointers,l=this.imageData,g=l.x,m=l.y,p=l.width,_=l.height,y=l.naturalWidth,h=l.naturalHeight;if(s=Math.max(0,s),hs(s)&&this.viewed&&!this.played&&(c||f.zoomable)){if(!c){var d=Math.max(.01,f.minZoomRatio),A=Math.min(100,f.maxZoomRatio);s=Math.min(Math.max(s,d),A)}if(t)switch(t.type){case"wheel":f.zoomRatio>=.055&&s>.95&&s<1.05&&(s=1);break;case"pointermove":case"touchmove":case"mousemove":s>.99&&s<1.01&&(s=1);break}var v=y*s,w=h*s,x=v-p,C=w-_,k=l.ratio;if(Pi(f.zoom)&&Ea(u,BC,f.zoom,{once:!0}),Hs(u,BC,{ratio:s,oldRatio:k,originalEvent:t})===!1)return this;if(this.zooming=!0,t){var T=ooe(this.viewer),S=o&&Object.keys(o).length>0?coe(o):{pageX:t.pageX,pageY:t.pageY};l.x-=x*((S.pageX-T.left-g)/p),l.y-=C*((S.pageY-T.top-m)/_)}else Pm(n)&&hs(n.x)&&hs(n.y)?(l.x-=x*((n.x-g)/p),l.y-=C*((n.y-m)/_)):(l.x-=x/2,l.y-=C/2);l.left=l.x,l.top=l.y,l.width=v,l.height=w,l.oldRatio=k,l.ratio=s,this.renderImage(function(){r.zooming=!1,Pi(f.zoomed)&&Ea(u,FC,f.zoomed,{once:!0}),Hs(u,FC,{ratio:s,oldRatio:k,originalEvent:t},{cancelable:!1})}),i&&this.tooltip()}return this},play:function(){var s=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var i=this.element,n=this.options;if(Pi(n.play)&&Ea(i,MC,n.play,{once:!0}),Hs(i,MC)===!1)return this;var t=this.player,c=this.loadImage.bind(this),u=[],f=0,o=0;if(this.played=!0,this.onLoadWhenPlay=c,r&&this.requestFullscreen(r),ya(t,km),Gi(this.items,function(m,p){var _=m.querySelector("img"),y=document.createElement("img");y.src=Rm(_,"originalUrl"),y.alt=_.getAttribute("alt"),y.referrerPolicy=_.referrerPolicy,f+=1,ya(y,N2),nv(y,Cs,n.transition),Mm(m,E2)&&(ya(y,Hu),o=p),u.push(y),Ea(y,Yu,c,{once:!0}),t.appendChild(y)}),hs(n.interval)&&n.interval>0){var l=function(){clearTimeout(s.playing.timeout),wi(u[o],Hu),o-=1,o=o>=0?o:f-1,ya(u[o],Hu),s.playing.timeout=setTimeout(l,n.interval)},g=function(){clearTimeout(s.playing.timeout),wi(u[o],Hu),o+=1,o=o<f?o:0,ya(u[o],Hu),s.playing.timeout=setTimeout(g,n.interval)};f>1&&(this.playing={prev:l,next:g,timeout:setTimeout(g,n.interval)})}return this},stop:function(){var s=this;if(!this.played)return this;var r=this.element,i=this.options;if(Pi(i.stop)&&Ea(r,DC,i.stop,{once:!0}),Hs(r,DC)===!1)return this;var n=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Gi(n.getElementsByTagName("img"),function(t){Ri(t,Yu,s.onLoadWhenPlay)}),wi(n,km),n.innerHTML="",this.exitFullscreen(),this},full:function(){var s=this,r=this.options,i=this.viewer,n=this.image,t=this.list;return!this.isShown||this.played||this.fulled||!r.inline?this:(this.fulled=!0,this.open(),ya(this.button,lC),r.transition&&(wi(t,Cs),this.viewed&&wi(n,Cs)),ya(i,Kw),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),Pc(i,{zIndex:r.zIndex}),r.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=du({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){s.renderImage(function(){r.transition&&setTimeout(function(){ya(n,Cs),ya(t,Cs)},0)})}),this)},exit:function(){var s=this,r=this.options,i=this.viewer,n=this.image,t=this.list;return!this.isShown||this.played||!this.fulled||!r.inline?this:(this.fulled=!1,this.close(),wi(this.button,lC),r.transition&&(wi(t,Cs),this.viewed&&wi(n,Cs)),r.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),wi(i,Kw),Pc(i,{zIndex:r.zIndexInline}),this.viewerData=du({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){s.renderImage(function(){r.transition&&setTimeout(function(){ya(n,Cs),ya(t,Cs)},0)})}),this)},tooltip:function(){var s=this,r=this.options,i=this.tooltipBox,n=this.imageData;return!this.viewed||this.played||!r.tooltip?this:(i.textContent="".concat(Math.round(n.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):r.transition?(this.fading&&Hs(i,Mc),ya(i,km),ya(i,N2),ya(i,Cs),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,ya(i,Hu)):(ya(i,km),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){r.transition?(Ea(i,Mc,function(){wi(i,km),wi(i,N2),wi(i,Cs),i.setAttribute("aria-hidden",!0),s.fading=!1},{once:!0}),wi(i,Hu),s.fading=!0):(wi(i,km),i.setAttribute("aria-hidden",!0)),s.tooltipping=!1},1e3),this)},toggle:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,s):this.zoomTo(1,!0,null,s),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=du({},this.initialImageData),this.renderImage()),this},update:function(){var s=this,r=this.element,i=this.options,n=this.isImg;if(n&&!r.parentNode)return this.destroy();var t=[];if(Gi(n?[r]:r.querySelectorAll("img"),function(o){Pi(i.filter)?i.filter.call(s,o)&&t.push(o):s.getImageURL(o)&&t.push(o)}),!t.length)return this;if(this.images=t,this.length=t.length,this.ready){var c=[];if(Gi(this.items,function(o,l){var g=o.querySelector("img"),m=t[l];m&&g?(m.src!==g.src||m.alt!==g.alt)&&c.push(l):c.push(l)}),Pc(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var u=c.indexOf(this.index);if(u>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-u,this.length-1),0));else{var f=this.items[this.index];ya(f,E2),f.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var s=this.element,r=this.options;return s[Wa]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),r.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):r.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),r.inline||Ri(s,Xm,this.onStart),s[Wa]=void 0,this):this}},poe={getImageURL:function(s){var r=this.options.url;return rv(r)?r=s.getAttribute(r):Pi(r)?r=r.call(this,s):r="",r},enforceFocus:function(){var s=this;this.clearEnforceFocus(),Ea(document,fC,this.onFocusin=function(r){var i=s.viewer,n=r.target;if(!(n===document||n===i||i.contains(n))){for(;n;){if(n.getAttribute("tabindex")!==null||n.getAttribute("aria-modal")==="true")return;n=n.parentElement}i.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Ri(document,fC,this.onFocusin),this.onFocusin=null)},open:function(){var s=this.body;ya(s,uC),this.scrollbarWidth>0&&(s.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var s=this.body;wi(s,uC),this.scrollbarWidth>0&&(s.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var s=this.element,r=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,r.focus&&(i.focus(),this.enforceFocus()),Pi(r.shown)&&Ea(s,bC,r.shown,{once:!0}),Hs(s,bC)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var s=this.element,r=this.options,i=this.viewer;r.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),ya(i,y0),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(Pi(r.hidden)&&Ea(s,_C,r.hidden,{once:!0}),Hs(s,_C,null,{cancelable:!1}))},requestFullscreen:function(s){var r=this.element.ownerDocument;if(this.fulled&&!(r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement)){var i=r.documentElement;i.requestFullscreen?Pm(s)?i.requestFullscreen(s):i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen()}},exitFullscreen:function(){var s=this.element.ownerDocument;this.fulled&&(s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement)&&(s.exitFullscreen?s.exitFullscreen():s.webkitExitFullscreen?s.webkitExitFullscreen():s.mozCancelFullScreen?s.mozCancelFullScreen():s.msExitFullscreen&&s.msExitFullscreen())},change:function(s){var r=this.options,i=this.pointers,n=i[Object.keys(i)[0]];if(n){var t=n.endX-n.startX,c=n.endY-n.startY;switch(this.action){case U2:(t!==0||c!==0)&&(this.pointerMoved=!0,this.move(t,c,s));break;case w1:this.zoom(uoe(i),!1,null,s);break;case Xk:{this.action="switched";var u=Math.abs(t);u>1&&u>Math.abs(c)&&(this.pointers={},t>1?this.prev(r.loop):t<-1&&this.next(r.loop));break}}Gi(i,function(f){f.startX=f.endX,f.startY=f.endY})}},isSwitchable:function(){var s=this.imageData,r=this.viewerData;return this.length>1&&s.x>=0&&s.y>=0&&s.width<=r.width&&s.height<=r.height}},moe=Od.Viewer,goe=(function(a){return function(){return a+=1,a}})(-1),dx=(function(){function a(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Qse(this,a),!s||s.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=s,this.options=du({},oC,Pm(r)&&r),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=goe(),this.init()}return zse(a,[{key:"init",value:function(){var r=this,i=this.element,n=this.options;if(!i[Wa]){i[Wa]=this,n.focus&&!n.keyboard&&(n.focus=!1);var t=i.localName==="img",c=[];if(Gi(t?[i]:i.querySelectorAll("img"),function(o){Pi(n.filter)?n.filter.call(r,o)&&c.push(o):r.getImageURL(o)&&c.push(o)}),this.isImg=t,this.length=c.length,this.images=c,this.initBody(),Lm(document.createElement(Wa).style.transition)&&(n.transition=!1),n.inline){var u=0,f=function(){if(u+=1,u===r.length){var l;r.initializing=!1,r.delaying={abort:function(){clearTimeout(l)}},l=setTimeout(function(){r.delaying=!1,r.build()},0)}};this.initializing={abort:function(){Gi(c,function(l){l.complete||(Ri(l,Yu,f),Ri(l,I0,f))})}},Gi(c,function(o){if(o.complete)f();else{var l,g;Ea(o,Yu,l=function(){Ri(o,I0,g),f()},{once:!0}),Ea(o,I0,g=function(){Ri(o,Yu,l),f()},{once:!0})}})}else Ea(i,Xm,this.onStart=function(o){var l=o.target;l.localName==="img"&&(!Pi(n.filter)||n.filter.call(r,l))&&r.view(r.images.indexOf(l))})}}},{key:"build",value:function(){if(!this.ready){var r=this.element,i=this.options,n=r.parentNode,t=document.createElement("div");t.innerHTML=Gse;var c=t.querySelector(".".concat(Wa,"-container")),u=c.querySelector(".".concat(Wa,"-title")),f=c.querySelector(".".concat(Wa,"-toolbar")),o=c.querySelector(".".concat(Wa,"-navbar")),l=c.querySelector(".".concat(Wa,"-button")),g=c.querySelector(".".concat(Wa,"-canvas"));if(this.parent=n,this.viewer=c,this.title=u,this.toolbar=f,this.navbar=o,this.button=l,this.canvas=g,this.footer=c.querySelector(".".concat(Wa,"-footer")),this.tooltipBox=c.querySelector(".".concat(Wa,"-tooltip")),this.player=c.querySelector(".".concat(Wa,"-player")),this.list=c.querySelector(".".concat(Wa,"-list")),c.id="".concat(Wa).concat(this.id),u.id="".concat(Wa,"Title").concat(this.id),ya(u,i.title?B2(Array.isArray(i.title)?i.title[0]:i.title):y0),ya(o,i.navbar?B2(i.navbar):y0),nv(l,y0,!i.button),i.keyboard&&l.setAttribute("tabindex",0),i.backdrop&&(ya(c,"".concat(Wa,"-backdrop")),!i.inline&&i.backdrop!=="static"&&Xw(g,fy,"hide")),rv(i.className)&&i.className&&i.className.split(cx).forEach(function(v){ya(c,v)}),i.toolbar){var m=document.createElement("ul"),p=Pm(i.toolbar),_=I2.slice(0,3),y=I2.slice(7,9),h=I2.slice(9);p||ya(f,B2(i.toolbar)),Gi(p?i.toolbar:I2,function(v,w){var x=p&&Pm(v),C=p?fx(w):v,k=x&&!Lm(v.show)?v.show:v;if(!(!k||!i.zoomable&&_.indexOf(C)!==-1||!i.rotatable&&y.indexOf(C)!==-1||!i.scalable&&h.indexOf(C)!==-1)){var T=x&&!Lm(v.size)?v.size:v,S=x&&!Lm(v.click)?v.click:v,M=document.createElement("li");i.keyboard&&M.setAttribute("tabindex",0),M.setAttribute("role","button"),ya(M,"".concat(Wa,"-").concat(C)),Pi(S)||Xw(M,fy,C),hs(k)&&ya(M,B2(k)),["small","large"].indexOf(T)!==-1?ya(M,"".concat(Wa,"-").concat(T)):C==="play"&&ya(M,"".concat(Wa,"-large")),Pi(S)&&Ea(M,Xm,S),m.appendChild(M)}}),f.appendChild(m)}else ya(f,y0);if(!i.rotatable){var d=f.querySelectorAll('li[class*="rotate"]');ya(d,P1),Gi(d,function(v){f.appendChild(v)})}if(i.inline)ya(l,Kse),Pc(c,{zIndex:i.zIndexInline}),window.getComputedStyle(n).position==="static"&&Pc(n,{position:"relative"}),n.insertBefore(c,r.nextSibling);else{ya(l,$se),ya(c,Kw),ya(c,N2),ya(c,y0),Pc(c,{zIndex:i.zIndex});var A=i.container;rv(A)&&(A=r.ownerDocument.querySelector(A)),A||(A=this.body),A.appendChild(c)}if(i.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,Pi(i.ready)&&Ea(r,vC,i.ready,{once:!0}),Hs(r,vC)===!1){this.ready=!1;return}this.ready&&i.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=moe,a}},{key:"setDefaults",value:function(r){du(oC,Pm(r)&&r)}}])})();du(dx.prototype,foe,doe,hoe,Aoe,poe);function qk(a){return To({url:"/serv/api/translateImage",method:"POST",data:a})}function voe(a){return To({url:"/serv/api/translateImageBatch",method:"POST",data:a})}const yoe={name:"PictureEditor",props:{data:{type:Object,required:!0},onChange:{type:Function,required:!1},onCompleted:{type:Function,required:!0}},data(){return{}},methods:{receiveMessage(a){if(a.data&&!a.data.type){const s=JSON.parse(a.data),{type:r,data:i}=s;switch(r){case"base64":{this.onCompleted(i);break}case"psd":{this.onChange(i);break}case"autoHeight":{const n=document.getElementById("editor-Iframe");n.style.height=i.editorHeight+"px";break}}}},postMessage(){const a=document.getElementById("editor-Iframe"),{sourceLang:s,targetLang:r,templateJson:i}=this.data;a&&(a.onload=function(){const n={sourceLang:s,targetLang:r,templateJson:i,locale:"zh-cn"};a.contentWindow.postMessage(JSON.stringify(n),"*")})}},mounted(){window.addEventListener("message",this.receiveMessage,!0),this.postMessage()}},boe={className:"picture-editor-component"};function woe(a,s,r,i,n,t){return Oe(),st("div",boe,[...s[0]||(s[0]=[de("iframe",{id:"editor-Iframe",src:"https://www.alifanyi.com/erp/imageTrans.html",frameBorder:"no",scrolling:"no"},null,-1)])])}const e8=cn(yoe,[["render",woe],["__scopeId","data-v-de70cd01"]]),_oe=xi({name:"ImageTranslate",components:{PictureEditor:e8},props:{imageSrc:{type:String,required:!0},saveBtn:{type:Boolean,default:!1}},setup(a,{emit:s}){const r=we(1),i=we(!1),n=we(""),t=we(""),c=we(),u=we(0),f=we(!1),o=we(!1),l={maxSize:10*1024*1024,allowedFileTypes:["image/png","image/jpg","image/jpeg","image/bmp"]},g=we({FinalImageUrl:"",InPaintingUrl:"",TemplateJson:""}),m=we({sourceLang:"zh",targetLang:"en",templateJson:[]});let p;const _=ls(),y=Pr(()=>_.sysUser);Ra(()=>a.imageSrc,(N,B)=>{A()},{immediate:!0,deep:!0});function h(N){return new Promise((B,O)=>{let I=new FileReader,F="";I.readAsDataURL(N),I.onload=function(){F=I.result},I.onerror=function(L){O(L)},I.onloadend=function(){B(F)}})}function d(N){if(N.file.size>l.maxSize){ut({type:"error",message:"文件大小不能超过10M!"});return}if(!l.allowedFileTypes.includes(N.file.type))return ut({type:"error",message:"文件格式错误!"}),!1;h(N.file).then(B=>{n.value=B,t.value=B.split(",")[1],r.value=1})}async function A(){if(!a.imageSrc)return!1;f.value=!0;const N=v(a.imageSrc);let B=await w(N);n.value=B,t.value=B.replace(/^data:image\/\w+;base64,/,""),r.value=1,f.value=!1}function v(N){const B=N.indexOf("?");return B!==-1?N.substring(0,B):N}async function w(N){const O=await(await fetch(N)).blob();return new Promise((I,F)=>{const L=new FileReader;L.onloadend=()=>{I(L.result)},L.onerror=F,L.readAsDataURL(O)})}function x(){const N=JSON.parse(g.value.TemplateJson);m.value.templateJson=[{...N}],u.value=1}const C=N=>{console.log("data========onCompleted",N),u.value=2,g.value.FinalImageUrl=N[0]},k=async()=>{if(o.value=!0,g.value.FinalImageUrl.startsWith("data")){const N=window.atob(g.value.FinalImageUrl.split(",")[1]),B=new Uint8Array(N.length);for(let F=0;F<N.length;F++)B[F]=N.charCodeAt(F);const O=new Blob([B],{type:"image/jpeg"}),I=new FormData;I.append("file",O);try{let F=await a_(I);g.value.FinalImageUrl=F.imageUrl}catch(F){ut({type:"error",message:"保存图片失败，请检查商家后台是否连接，客户端是否启动"}),o.value=!1,console.log(F);return}}s("saveImage",g.value.FinalImageUrl),o.value=!1},T=()=>{u.value=2};function S(N){p&&p.destroy();var B=new Image;B.src=N==1?n.value:g.value.FinalImageUrl,B.onload=function(){p=new dx(B,{toolbar:!1}),p.show()}}function M(){n.value="",t.value="",r.value=0,u.value=0,i.value=!1}async function P(){const N={imageUrl:"",imageBase64:t.value,sourceLanguage:"zh",targetLanguage:"en",needEditorData:!0,ignoreEntityRecognize:!0};if(N.imageBase64){i.value=!0;try{const B=await qk(N);if(B.status==1)throw B;g.value=B.result,r.value=2,i.value=!1,await _.getInfo()}catch(B){B!=null&&B.errorMsg&&(B!=null&&B.errorMsg.includes("翻译图片额度不足")?Pn.confirm("翻译图片额度不足，是否要前往官网提升额度?","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{window.open("https://www.kuajingabc.com/#/user/service")}):ut.error(B==null?void 0:B.errorMsg)),i.value=!1,console.log(B,">>translate error")}}}return{uploadRef:c,saveImageLoading:o,uploaded:r,imageBase64Origin:n,imageBase64:t,httpRequest:d,importImageUrl:A,edit:x,editData:m,onCompleted:C,preview:S,translatedResult:g,reset:M,translate:P,editFlag:u,isPending:i,close:T,save:k,loading:f,sysUser:y}}}),xoe={class:"lf-ImageTrans"},Coe={key:1,class:"picture-editor"},Soe={class:"Trans-content"},koe={class:"If-content"},Toe={key:0,class:"item-preview"},Eoe=["src"],Ioe={class:"buton-area"},Boe={key:1,class:"item-translated"},Foe={class:"left"},Moe=["src"],Doe={class:"right"},Ooe=["src"],Loe={class:"button-area"},Poe=["href"];function Roe(a,s,r,i,n,t){const c=Ce("el-button"),u=Ce("PictureEditor"),f=Ce("var-icon"),o=Ai("loading");return Oe(),st("div",xoe,[a.uploaded===2&&a.editFlag!==1&&a.saveBtn?na((Oe(),Et(c,{key:0,class:"close-btn",type:"primary",onClick:s[0]||(s[0]=l=>a.save()),disabled:a.saveImageLoading},{default:q(()=>[...s[5]||(s[5]=[Ue("保存",-1)])]),_:1},8,["disabled"])),[[o,a.saveImageLoading]]):tr("",!0),a.editFlag===1?(Oe(),st("div",Coe,[z(c,{class:"close-btn",type:"danger",onClick:s[1]||(s[1]=l=>a.close(a.index))},{default:q(()=>[...s[6]||(s[6]=[Ue("退出编辑",-1)])]),_:1}),z(u,{data:a.editData,onCompleted:a.onCompleted},null,8,["data","onCompleted"])])):tr("",!0),na((Oe(),st("div",Soe,[de("div",koe,[a.uploaded===1?(Oe(),st("div",Toe,[de("img",{src:a.imageBase64Origin,onClick:s[2]||(s[2]=l=>a.preview(1))},null,8,Eoe),de("div",Ioe,[Ue(" 图片翻译额度："+ht(a.sysUser.imageTranslateCount+a.sysUser.imageTranslateCountPersonal)+" / "+ht(a.sysUser.imageTranslateLimitCount+a.sysUser.imageTranslateLimitCountPersonal)+" ",1),z(c,{onClick:a.translate,disabled:a.isPending,loading:a.isPending},{default:q(()=>[...s[7]||(s[7]=[Ue("确认，开始翻译",-1)])]),_:1},8,["onClick","disabled","loading"])])])):a.uploaded===2?(Oe(),st("div",Boe,[de("div",Foe,[de("img",{src:a.imageBase64Origin},null,8,Moe)]),s[8]||(s[8]=de("div",{class:"line"},null,-1)),de("div",Doe,[de("img",{src:a.translatedResult.FinalImageUrl},null,8,Ooe),de("div",Loe,[de("span",{class:"icon-item",onClick:s[3]||(s[3]=(...l)=>a.edit&&a.edit(...l))},[z(f,{size:18,color:"#fff",name:"dots-vertical"})]),de("a",{download:"",href:a.translatedResult.FinalImageUrl,target:"_blank",class:"icon-item"},[z(f,{size:18,color:"#fff",name:"arrow-down"})],8,Poe),de("span",{class:"icon-item",onClick:s[4]||(s[4]=l=>a.preview(2))},[z(f,{size:18,color:"#fff",name:"magnify-plus-outline"})])])])])):tr("",!0)])])),[[Cl,a.editFlag!==1],[o,a.loading]])])}const Uoe=cn(_oe,[["render",Roe],["__scopeId","data-v-daf4ca9a"]]),Noe={style:{width:"80px","font-size":"13px",color:"#000"}},joe={__name:"index",props:{mallId:{type:String,required:!0},isSemiManagedMall:{type:Boolean,required:!0},savedConfig:{type:Object,default:null},siteIdArr:{type:String,default:null}},emits:["update:siteIdArr","update:warehouseDTOList"],setup(a,{expose:s,emit:r}){const i=a,n=r,t=we(),c=we([]),u=we([]),f=we([]),o=we(""),l=Pr(()=>i.isSemiManagedMall),g=async h=>{var w;if(o.value=h,i.savedConfig&&i.savedConfig.siteIdArr===h?u.value=i.savedConfig.warehouseDTOList||[]:u.value=[],!h)return;const d=c.value.filter(x=>x.siteName===h)[0].siteId,A=Array.isArray(d)?d.map(x=>Number(x)):[Number(d)],v=await GC({siteIdList:A},i.mallId);f.value=(w=v.result)==null?void 0:w.warehouseDTOList,n("update:siteIdArr",h),n("update:warehouseDTOList",u.value)},m=async()=>{if(i.isSemiManagedMall){const h=await cw(i.mallId);h.success===!0&&(c.value=p(h.result.siteBaseList,h.result.semiManagedSiteGroupList),i.siteIdArr&&(t.value=i.siteIdArr,await g(i.siteIdArr)))}},p=(h,d)=>{let A=[],v=new Set;return d.forEach(w=>{let x=h.filter(C=>w.siteIds.includes(C.siteId));x.length>0&&(A.push({matchPreSemiHosting:x.some(C=>C.matchPreSemiHosting),matchSemiManaged:!0,siteId:w.siteIds,siteName:w.groupName||x.map(C=>C.siteName).join("、")}),w.siteIds.forEach(C=>v.add(C)))}),h.forEach(w=>{v.has(w.siteId)||A.push(w)}),A},_=Pr(()=>f.value.some((h,d)=>Array.isArray(u.value[d])&&u.value[d].length>0)),y=()=>{const h=new Map;f.value.forEach((v,w)=>{const x=u.value[w]||[],C=Array.isArray(v.siteId)?v.siteId:[v.siteId];x.forEach(k=>{h.has(k)||h.set(k,new Set),C.forEach(T=>{h.get(k).add(Number(T))})})});const d=Array.from(h.entries()).map(([v,w])=>({warehouseId:v,siteIdList:Array.from(w)})),A=d.reduce((v,w)=>v.concat(w.siteIdList.map(x=>Number(x))),[]);return{targetRouteList:d,bindSiteIds:A}};return Ra(()=>i.mallId,h=>{h&&i.isSemiManagedMall&&m()},{immediate:!0}),s({internalSiteIdArr:t,warehouseDTOList:u,hasAtLeastOneWarehouse:_,processWarehouseMapping:y}),(h,d)=>{const A=Ce("el-option"),v=Ce("el-select"),w=Ce("el-form-item");return Oe(),st("div",null,[l.value?(Oe(),Et(w,{key:0,label:"经营站点"},{default:q(()=>[z(v,{modelValue:t.value,"onUpdate:modelValue":d[0]||(d[0]=x=>t.value=x),placeholder:"请选择站点",onChange:g,style:{width:"340px"},size:"default"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(c.value,(x,C)=>(Oe(),Et(A,{key:C,label:x.siteName,value:x.siteName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):tr("",!0),l.value&&t.value?(Oe(),Et(w,{key:1,label:"卖家自发货仓：",style:{"max-width":"500px"}},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(f.value,(x,C)=>(Oe(),st("div",{key:C,style:{"margin-bottom":"5px",display:"flex","align-items":"center"}},[de("div",Noe,ht(x.siteName),1),z(v,{modelValue:u.value[C],"onUpdate:modelValue":k=>u.value[C]=k,placeholder:"请选择",style:{width:"260px"},size:"small",multiple:"","collapse-tags":"","collapse-tags-tooltip":"","max-collapse-tags":1},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(x.validWarehouseList,(k,T)=>(Oe(),Et(A,{key:T,label:k.warehouseName,value:k.warehouseId},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))]),_:1})):tr("",!0)])}}},Hoe={class:"image-gallery"},Qoe={class:"flex-between"},zoe={key:0},Voe={class:"flex-gap-50"},Woe={class:"image-container"},Goe=["src","alt"],$oe=["onClick"],Koe={class:"edit"},Yoe=["onClick"],Xoe=["onClick"],Zoe={key:0,class:"goods-spec"},Joe={class:"checkImg"},qoe={__name:"ImageGallery",props:{title:String,items:{type:Array,required:!0},isSku:{type:Boolean,default:!1},checkResults:{type:Function,default:()=>[]},getImageUrl:{type:Function,default:a=>a.imageUrl||a},getSkuSpec:{type:Function,default:a=>{var s;return((s=a==null?void 0:a.specsList)==null?void 0:s.map(r=>r.specValue).join(" - "))??""}}},emits:["delete","edit","translate"],setup(a,{expose:s,emit:r}){const i=a,n=r,t=we([]),c=we(!1),u=we(!1),f=(d,A)=>({index:A,imageUrl:i.getImageUrl(d)}),o=(d,A)=>t.value.some(v=>v.imageUrl===i.getImageUrl(d)&&v.index===A),l=d=>{n("delete",{index:d})},g=d=>{n("edit",{index:d,imageUrl:i.getImageUrl(i.items[d])})},m=d=>{n("translate",[{index:d,imageUrl:i.getImageUrl(i.items[d])}])},p=()=>{let d=t.value;n("translate",d)},_=d=>{t.value=d?i.items.map((A,v)=>({index:v,imageUrl:A.imageUrl??A})):[],u.value=!1},y=d=>{const A=d.length;c.value=A===i.items.length,u.value=A>0&&A<i.items.length};return s({reset:()=>{t.value=[],c.value=!1,u.value=!1}}),(d,A)=>{const v=Ce("el-checkbox"),w=Ce("el-button"),x=Ce("var-icon"),C=Ce("el-tooltip"),k=Ce("el-checkbox-group"),T=Ce("el-divider");return Oe(),st("div",Hoe,[de("div",Qoe,[a.title?(Oe(),st("span",zoe,ht(a.title),1)):tr("",!0),de("div",Voe,[z(v,{modelValue:c.value,"onUpdate:modelValue":A[0]||(A[0]=S=>c.value=S),indeterminate:u.value,onChange:_},{default:q(()=>[...A[2]||(A[2]=[Ue(" 全选 ",-1)])]),_:1},8,["modelValue","indeterminate"]),z(w,{type:"primary",disabled:t.value.length==0,onClick:p},{default:q(()=>[...A[3]||(A[3]=[Ue("批量翻译",-1)])]),_:1},8,["disabled"])])]),z(k,{modelValue:t.value,"onUpdate:modelValue":A[1]||(A[1]=S=>t.value=S),onChange:y,class:"image-group"},{default:q(()=>[(Oe(!0),st(Zt,null,Hr(a.items,(S,M)=>(Oe(),st("div",Woe,[de("div",{class:ao({masking:!0,checked:o(S,M)})},[de("img",{src:a.getImageUrl(S),alt:a.title||"图片",class:"image-icon"},null,8,Goe),na(z(v,{class:"checkbox-button",value:f(S,M)},null,8,["value"]),[[Cl,typeof a.getImageUrl(S)=="string"]]),de("button",{class:"delete-button",onClick:_0(P=>l(M),["stop"])},[z(x,{name:"trash-can-outline",color:"white"})],8,$oe),na(de("div",Koe,[de("button",{onClick:_0(P=>g(M),["stop"]),class:"edit-button"},"编辑",8,Yoe),de("button",{onClick:_0(P=>m(M),["stop"]),class:"edit-button"},"翻译",8,Xoe)],512),[[Cl,typeof a.getImageUrl(S)=="string"]])],2),z(C,{effect:"dark",content:a.getSkuSpec(S)},{default:q(()=>[a.isSku?(Oe(),st("p",Zoe,ht(a.getSkuSpec(S)),1)):tr("",!0)]),_:2},1032,["content"]),(Oe(!0),st(Zt,null,Hr(a.checkResults(a.getImageUrl(S)),P=>(Oe(),st("div",{style:{"text-align":"center","line-height":"1.5"},key:P.imageUrl},[P.isPass?tr("",!0):(Oe(),Et(C,{key:0,effect:"dark",content:P.reason},{default:q(()=>[de("span",Joe,ht(P.reason),1)]),_:2},1032,["content"]))]))),128))]))),256))]),_:1},8,["modelValue"]),z(T,{"border-style":"dashed"})])}}},uw=cn(qoe,[["__scopeId","data-v-e3ecd020"]]),ele={class:"lf-ImageTrans"},tle={key:0,class:"picture-editor"},rle={class:"Trans-content"},nle={class:"item-translated"},ale={class:"left"},ile={class:"right"},sle=["title"],ole={key:2,class:"button-area"},lle=["onClick"],ule=["href"],cle=["onClick"],fle={__name:"BatchImgTranslate",props:{imgList:{type:Array,default:()=>[]},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue","saveImage"],setup(a,{emit:s}){const r=a,i=s,n=Pr({get:()=>r.modelValue,set:T=>i("update:modelValue",T)}),t=we(!1),c=we(!1),u=we(!1),f=we(2),o=we(null),l=we([]),g=we(null),m=we({sourceLang:"zh",targetLang:"en",templateJson:[]}),p=ls();Pr(()=>p.sysUser),Cf(()=>{g.value&&g.value.destroy()});const _=(T,S)=>{try{const M=JSON.parse(T.TemplateJson);m.value.templateJson=[{...M}],o.value=S,f.value=1}catch(M){console.error("解析模板JSON失败:",M),ut.error("编辑失败: 模板数据格式错误")}},y=T=>{o.value!==null&&(T!=null&&T[0])&&(l.value[o.value].FinalImageUrl=T[0]),f.value=2},h=async()=>{if(l.value.length){c.value=!0;try{const T=[];for(const S of l.value){if(S.hasOwnProperty("FinalImageUrl")&&(S!=null&&S.FinalImageUrl.startsWith("data"))){const M=k(S.FinalImageUrl),P=new FormData;P.append("file",M);const N=await a_(P);S.FinalImageUrl=N.imageUrl}else S.hasOwnProperty("FinalImageUrl")||(S.FinalImageUrl=S.imageUrl);T.push(S)}i("saveImage",T)}catch(T){console.error("保存图片失败:",T),ut({type:"error",message:"保存图片失败，请检查商家后台是否连接，客户端是否启动"})}finally{c.value=!1}}},d=()=>{f.value=2},A=T=>{g.value&&g.value.destroy();const S=new Image;S.src=T,S.onload=()=>{g.value=new dx(S,{toolbar:!1}),g.value.show()}},v=()=>{f.value=0,u.value=!1,l.value=[]},w=async()=>{if(r.imgList.length){t.value=!0,u.value=!0,l.value=[];try{const S=Math.ceil(r.imgList.length/5);for(let M=0;M<S;M++){const P=M*5,N=Math.min(P+5,r.imgList.length),O=r.imgList.slice(P,N).map(F=>({imageUrl:F.imageUrl,imageBase64:"",sourceLanguage:"zh",targetLanguage:"en",needEditorData:!0,ignoreEntityRecognize:!0})),I=await voe({ReqList:O});O.forEach(F=>{var U;const L=(U=I.result)==null?void 0:U.list.find(V=>{var Q;let W=JSON.parse(V==null?void 0:V.TemplateJson);if(W)return F.imageUrl==((Q=W.children[0])==null?void 0:Q.src)});let R={};L&&(R=L),R.imageUrl=F.imageUrl,R.error=I.errorMsg||"翻译失败",l.value.push(R)})}}catch(T){C(T)}finally{await p.getInfo(),t.value=!1,u.value=!1}}},x=async(T,S)=>{if(T.imageUrl){u.value=!0;try{const M={imageUrl:T.imageUrl,imageBase64:"",sourceLanguage:"zh",targetLanguage:"en",needEditorData:!0,ignoreEntityRecognize:!0},P=await qk(M);let N=(P==null?void 0:P.result)||{};N.imageUrl=T.imageUrl,N.error=P.errorMsg||"翻译失败",l.value[S]=N}catch(M){C(M)}finally{await p.getInfo(),u.value=!1}}},C=T=>{T!=null&&T.errorMsg&&(T.errorMsg.includes("额度不足")?Pn.confirm("翻译图片额度不足，是否要前往官网提升额度?","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{window.open("https://www.kuajingabc.com/#/user/service")}):ut.error(T.errorMsg)),console.error("翻译错误:",T)},k=T=>{const S=atob(T.split(",")[1]),M=T.split(",")[0].split(":")[1].split(";")[0],P=new ArrayBuffer(S.length),N=new Uint8Array(P);for(let B=0;B<S.length;B++)N[B]=S.charCodeAt(B);return new Blob([P],{type:M})};return Ra(()=>r.imgList,T=>{T.length>0&&w()},{immediate:!0,deep:!0}),(T,S)=>{const M=Ce("el-button"),P=Ce("el-alert"),N=Ce("el-image"),B=Ce("el-empty"),O=Ce("var-icon"),I=Ce("el-dialog"),F=Ai("loading");return Oe(),Et(I,{title:"【凌风跨境工具箱】图片翻译",modelValue:n.value,"onUpdate:modelValue":S[0]||(S[0]=L=>n.value=L),width:"1440px",style:{"min-height":"80%"},onClosed:v},{default:q(()=>[de("div",ele,[na((Oe(),Et(M,{class:"close-btn",type:"primary",onClick:h,disabled:c.value||!l.value.length},{default:q(()=>[...S[1]||(S[1]=[Ue(" 保存 ",-1)])]),_:1},8,["disabled"])),[[F,c.value]]),f.value===1?(Oe(),st("div",tle,[z(M,{class:"close-btn",type:"danger",onClick:d},{default:q(()=>[...S[2]||(S[2]=[Ue("退出编辑",-1)])]),_:1}),z(e8,{data:m.value,onCompleted:y},null,8,["data"])])):tr("",!0),na(z(P,{title:"翻译图片越多耗时越长请耐心等待不要关闭弹窗~",type:"error",closable:!1},null,512),[[Cl,f.value!==1]]),na((Oe(),st("div",rle,[de("div",nle,[de("div",ale,[(Oe(!0),st(Zt,null,Hr(a.imgList,(L,R)=>(Oe(),Et(N,{key:`original-${R}`,src:L.imageUrl,fit:"cover",onClick:U=>A(L.imageUrl),alt:"原始图片",class:"imgSize"},null,8,["src","onClick"]))),128))]),S[4]||(S[4]=de("div",{class:"line"},null,-1)),de("div",ile,[(Oe(!0),st(Zt,null,Hr(l.value,(L,R)=>(Oe(),st("div",{class:"relative imgSize",key:`translated-${R}`},[L!=null&&L.FinalImageUrl?(Oe(),Et(N,{key:0,src:L.FinalImageUrl,fit:"cover",alt:"翻译后的图片",class:"imgSize"},null,8,["src"])):(Oe(),Et(B,{key:1,class:"imgSize","image-size":100},{description:q(()=>[de("p",{title:L.error,class:"line-clamp-2"},ht(L.error),9,sle)]),default:q(()=>[z(M,{type:"primary",onClick:U=>x(L,R),loading:u.value},{default:q(()=>[...S[3]||(S[3]=[Ue("点击重试",-1)])]),_:1},8,["onClick","loading"])]),_:2},1024)),L!=null&&L.FinalImageUrl?(Oe(),st("div",ole,[de("span",{class:"icon-item",onClick:U=>_(L,R)},[z(O,{size:18,color:"#fff",name:"dots-vertical"})],8,lle),de("a",{download:"",href:L.FinalImageUrl,target:"_blank",class:"icon-item"},[z(O,{size:18,color:"#fff",name:"arrow-down"})],8,ule),de("span",{class:"icon-item",onClick:U=>A(L.FinalImageUrl)},[z(O,{size:18,color:"#fff",name:"magnify-plus-outline"})],8,cle)])):tr("",!0)]))),128))])])])),[[Cl,f.value!==1],[F,t.value]])])]),_:1},8,["modelValue"])}}},dle=cn(fle,[["__scopeId","data-v-efacfce9"]]),t8=OC("eventBus",{state:()=>({loadingScrapeGoods:!1,loadingDownloadImages:!1})}),hle={class:"flex items-center justify-between !pt-[20px]",style:{"max-width":"400px"}},Ale={__name:"DetailPageButtons",setup(a){const s=t8();return(r,i)=>{const n=Ce("el-button");return Oe(),st("div",hle,[z(n,{class:"custom-button",type:"primary",onClick:i[0]||(i[0]=t=>St(s).loadingScrapeGoods=!0),size:"large",loading:St(s).loadingScrapeGoods},{default:q(()=>[...i[2]||(i[2]=[de("span",{class:"button-content"},[de("span",null,"【凌风跨境工具箱】"),de("span",null,"采集商品")],-1)])]),_:1},8,["loading"]),z(n,{class:"custom-button",type:"primary",onClick:i[1]||(i[1]=t=>St(s).loadingDownloadImages=!0),size:"large",loading:St(s).loadingDownloadImages},{default:q(()=>[...i[3]||(i[3]=[de("span",{class:"button-content"},[de("span",null,"【凌风跨境工具箱】"),de("span",null,"下载图片")],-1)])]),_:1},8,["loading"])])}}},hx=cn(Ale,[["__scopeId","data-v-f29bcd85"]]);let Zw=null,r8=[];function ple(){const a=window.location.href;r8.forEach((s,r)=>{const{component:i,querySelector:n,insertIndex:t,url:c}=s;if(a.indexOf(c)!==0)return;const u=document.querySelectorAll(n);if(u)for(let f=0;f<u.length;f++){const o=u[f],l=`lingfeng-inject-${r}-${f}`;if(!o.querySelector(`#${l}`)){const g=document.createElement("div");g.id=l,t===-1?o.appendChild(g):o.insertBefore(g,o.childNodes[t]),ks(g,i)}}else console.error(`未找到匹配的元素：${n}`)})}function Ax(a,s,r,i){r8.push({component:a,querySelector:s,insertIndex:r,url:i})}function mle(){Zw=setInterval(ple,1500)}function gle(){Zw&&clearInterval(Zw)}Ax(hx,"div.detail-affix-sku-wrapper",-1,"https://detail.1688.com/offer/");Ax(hx,".detail-gallery-wrapper.ind-detail-gallery-wrapper",-1,"https://detail.1688.com/offer/");Ax(hx,"div#chromePlugin",-1,"https://detail.1688.com/offer/");const vle={style:{color:"#fb8114","line-height":"1.2","font-size":"14px"}},yle={class:"form-item"},ble={class:"!ml-[170px]"},wle={class:"form-item","inline-block":""},_le={class:"dialog-footer"},xle={class:"form-item"},Cle={class:"form-item","inline-block":""},Sle={__name:"app",setup(a){my();const s=({mall:ze})=>{let Ze=!1,qe=!1;if(!Array.isArray(ze))return!0;for(const Ge of ze)Ge.isSemiManagedMall?Ze=!0:qe=!0;return Ze&&qe?(ut.error("全托管店铺和半托管店铺不能同时选择"),!1):!0},r=we(parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"50")),i=we(0),n=Pr(()=>r.value+"%"),t=Pr(()=>i.value+"%");let c=parseInt(localStorage.getItem("lingfengPluginLeftPosition")?localStorage.getItem("lingfengPluginLeftPosition"):"100"),u=parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100");setInterval(()=>{var Ge;let ze=(Ge=document.getElementById("lingfengPlugin"))==null?void 0:Ge.getBoundingClientRect();if(!ze)return;let Ze=ze.x/window.innerWidth*100,qe=ze.y/window.innerHeight*100;Math.abs(c-Ze)>=2&&(c=Ze,localStorage.setItem("lingfengPluginLeftPosition",Ze+"")),Math.abs(u-qe)>=2&&(u=qe,localStorage.setItem("lingfengPluginTopPosition",qe+""))},1e3);const f="https://www.kuajingabc.com",o=ls(),l=Pr(()=>o.sysUser),g=/https:\/\/detail\.1688\.com\/offer\/[0-9]+\.html/,m=Pr(()=>!!g.test(document.URL)),p=Pr(()=>!!document.getElementById("chromePlugin")),_=Pr(()=>p.value?document.querySelector(".title-content h1").textContent:document.querySelector(".title-first-column .title-text").textContent),y=Pr(()=>p.value?document.querySelectorAll(".od-video-wrapper video"):document.querySelectorAll("#detail-main-video-content video")),h=Pr(()=>p.value?document.querySelectorAll(".html-description")[0].shadowRoot.querySelectorAll("img"):document.querySelectorAll(".detail-description-content img")),d=we(!0),A=we([]),v=we(null),w=we([{isPass:!0,imageUrl:"",reason:"",imageType:0}]),x=we([]);let C=0;const k=ze=>w.value.filter(Ze=>Ze.imageType===0&&Ze.imageUrl===ze),T=ze=>w.value.filter(Ze=>Ze.imageType===1&&Ze.imageUrl===ze),S=ze=>w.value.filter(Ze=>Ze.imageType===2&&Ze.imageUrl===ze),M=(ze,Ze)=>{const qe=x.value;qe.find($e=>$e.key==ze&&$e.src==Ze)||(qe.push({showEditButton:!1,showDeleteButton:!1,id:C,src:Ze,key:ze}),x.value=qe,C++)},P=({index:ze})=>{Re.value.param.skuInfoList.splice(ze,1),ut.success("图片删除成功！")},N=({index:ze})=>{Re.value.param.mainImageList.splice(ze,1),ut.success("图片删除成功！")},B=({index:ze})=>{Re.value.param.displayImageList.splice(ze,1),ut.success("图片删除成功！")},O="https://www.kuajingabc.com/#/user/service",I=we({src:"https://p3-pc.douyinpic.com/aweme/1080x1080/aweme-avatar/tos-cn-avt-0015_2f07496a52314c3e024eaafaba73dd35.jpeg",index:""}),F=we(null),L={main:"mainImageList",display:"displayImageList",sku:"skuInfoList"},R=we(null),U=we(null),V=we(null),W={main:R,sku:U,display:V},Q=we(!1),le=(ze,Ze,qe)=>{I.value={src:ze,index:Ze},F.value=qe,v.value.loadImage(ze),Q.value=!0},G=async ze=>{Q.value&&(Q.value=!1);const Ze=I.value.index,qe=L[F.value];F.value=="sku"?Re.value.param[qe][Ze].imageUrl=ze:Re.value.param[qe][Ze]=ze},fe=()=>{Q.value=!1},ie=we(!1),he=we([]),Y=Pr(()=>l.value.imageTranslateLimitCount+l.value.imageTranslateLimitCountPersonal-(l.value.imageTranslateCount+l.value.imageTranslateCountPersonal)),K=(ze,Ze)=>{ze.length>Y.value?Pn.confirm("翻译图片额度不足，是否要前往官网提升额度?","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{window.open("https://www.kuajingabc.com/#/user/service")}):(he.value=ze,F.value=Ze,ie.value=!0)},oe=ze=>{const Ze=L[F.value];ze.forEach(qe=>{let Ge=Re.value.param[Ze].findIndex($e=>F.value=="sku"?qe.imageUrl==$e.imageUrl:qe.imageUrl==$e);Ge!=-1&&(F.value=="sku"?Re.value.param[Ze][Ge].imageUrl=qe.FinalImageUrl:Re.value.param[Ze][Ge]=qe.FinalImageUrl,W[F.value].value.reset())}),ie.value=!1},pe=we(!1),ve=we(!1),ge=we(!1),ue=we(!1),Te=we(!1),Ee=we(!1),ye=we(!1),Se=we(!1),Fe=we(!1),Ve=we(""),ke=we(0),Pe=we(!1),Re=we({mallId:[]}),Ye=Pr(()=>Re.value.title),Ke=we(0),ot=Pr(()=>Re.value.title?Re.value.title.length/60*10+"px":"10px"),nt=Pr(()=>ke.value>=0&&ke.value<100?"format":ke.value<0?"exception":ke.value==100?"success":"format"),mt=Pr(()=>Ke.value>=0&&Ke.value<100?"format":Ke.value<0?"exception":Ke.value==100?"success":"format"),Ut=we([]),Ot=we(),wt=we(),Kt=Pr(()=>{var qe;const ze=(qe=Ot.value)==null?void 0:qe.getSelectedMall(),Ze=Array.isArray(ze)?ze.find(Ge=>Ge.isSemiManagedMall):ze!=null&&ze.isSemiManagedMall?ze:null;return Ze?(wt.value=(Ze==null?void 0:Ze.mallId)+"",!0):!!Ze}),_t=we("");let Jt={};const yr=we(),vr=()=>{const ze={siteSelectVisible:Kt.value,siteIdArr:_t.value,warehouseDTOList:Ut.value,spuExtCode:Ve.value,needSwitchCategory:d.value,catIdList:A.value,needSetSupplierPrice:ye.value,needAddMaterialCenter:Se.value,mallId:Re.value.mallId};localStorage.setItem("1688Category",JSON.stringify(ze))},Br=async()=>{if(Jt=localStorage.getItem("1688Category"),Jt){Jt=JSON.parse(Jt);const Ze=Ot.value.getMallList().filter(qe=>Jt.mallId.toString().includes(qe.mallId.toString()));if(!Ze.length){Re.value.mallId=[];return}Re.value.mallId=Jt.mallId.toString(),_t.value=Jt.siteIdArr,Ve.value=Jt.spuExtCode,d.value=Jt.needSwitchCategory,A.value=Jt.catIdList,ye.value=Jt.needSetSupplierPrice,Se.value=Jt.needAddMaterialCenter,s({mall:Ze})}},zr=we(!1);Ra(Ot,ze=>{ze&&!zr.value&&(Br(),zr.value=!0)});const mn={手机型号:{key:["适用型号","手机型号"],specKeyId:43404162},颜色:{key:["颜色","颜色分类","灯光颜色"],specKeyId:1001},尺码:{key:["型号","尺码","尺寸"],specKeyId:3001},风格:{key:["风格"],specKeyId:18012},材质:{key:["材质"],specKeyId:17017},口味:{key:["口味"],specKeyId:18013},适用人群:{key:["适用人群"],specKeyId:17018},容量:{key:["容量"],specKeyId:18014},成分:{key:["成分"],specKeyId:17019},重量:{key:["重量"],specKeyId:18016},品类:{key:["品类","货号"],specKeyId:17020},数量:{key:["产品规格"],specKeyId:15998553},型号:{key:["功率","规格"],specKeyId:45114199},头发长度:{key:["头发长度"],specKeyId:44214483},被套尺码:{key:["被套尺码"],specKeyId:50546518},"RAM+ROM":{key:["RAM+ROM"],specKeyId:75557797},存储容量:{key:["存储容量"],specKeyId:101493276},厚被尺码:{key:["厚被尺码"],specKeyId:50547421}};let jr={};for(let ze in mn)for(let Ze in mn[ze].key)jr[mn[ze].key[Ze]]={specKey:ze,specKeyId:mn[ze].specKeyId};function Tn(ze,Ze){const qe=Math.random(),Ge=Ze-ze;return Math.round(Ge*qe)+ze}const Lt=async ze=>{Fe.value=ze,Ke.value=0,ve.value=!0;let Ze=null;try{let qe={};if(Kt.value){if(!_t.value){ut.error("请选择经营站点");return}if(!yr.value.hasAtLeastOneWarehouse){ut.error("请至少选择一个站点的卖家自发货仓");return}const{targetRouteList:tt,bindSiteIds:bt}=yr.value.processWarehouseMapping();qe.bindSiteIds=bt,qe.targetRouteList=tt}if(Re.value&&Re.value.mallId.length==0){ut.error("请选择店铺");return}if(d.value){if(A.value.length==0){ut.error("请选择要采集的类目");return}qe.catId=A.value[A.value.length-1],Re.value.param.catId=A.value[A.value.length-1]}qe.goods1688Info=Re.value.param,Array.isArray(Re.value.mallId)?qe.mallId2=Re.value.mallId.map(tt=>parseInt(tt)):qe.mallId2=[parseInt(Re.value.mallId)],qe.needSetSupplierPrice=ye.value,qe.addMaterialCenter=Se.value,qe.isSaveTemplate=Fe.value,qe.spuExtCode=Ve.value,Fe.value&&(qe.supplyLink=window.location.href);const Ge=Tn(1,1e8)+"";Ze=setInterval(async()=>{const{progress:tt}=await $C(Ge);Ke.value=tt},1e3),qe.uuid=Ge;let $e=await gT(qe);if($e.status!=0)throw $e;vr(),Ke.value=100,ut.success("采集成功，可前往商家后台草稿箱编辑您采集的商品"),Pn.confirm(Fe.value?"采集成功！是否立即前往商品模板中心":"采集成功！是否立即前往商家后台|商品管理|商品列表|草稿箱处编辑或查看","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"success"}).then(()=>{Tt(Fe.value?"https://www.kuajingabc.com/#/goods/copy":"https://seller.kuajingmaihuo.com/goods/product/draft")}).catch(()=>{})}catch(qe){clearInterval(Ze),setTimeout(()=>{Ke.value=-1},1e3),qe.errorMsg?Pn.confirm(qe.errorMsg,"提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}):Pn.confirm("采集的时候出了点问题，可能是由于网络波动造成的，请再重试一次","提示",{type:"warning",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}),ve.value=!1}finally{clearInterval(Ze),ve.value=!1}},Gt=async()=>{ge.value=!0;try{let ze={};if(Kt.value){if(!_t.value){ut.error("请选择经营站点");return}const{bindSiteIds:qe}=yr.value.processWarehouseMapping();ze.bindSiteIds=qe}if(Re.value&&Re.value.mallId.length==0){ut.error("请选择店铺");return}if(d.value){if(A.value.length==0){ut.error("请选择要采集的类目");return}ze.catId=A.value[A.value.length-1],Re.value.param.catId=A.value[A.value.length-1]}ze.goods1688Info=Re.value.param,Array.isArray(Re.value.mallId)?ze.mallId=Re.value.mallId[0].toString():ze.mallId=Re.value.mallId.toString();const Ze=await mT(ze);if(ge.value=!1,Ze.status===0)w.value=Ze.checkInfo;else throw new Error(Ze.errorMsg||"校验失败")}catch(ze){ut.error(`校验失败: ${ze.message}`)}finally{ge.value=!1}},$t=async()=>{var Ze;if(pe.value=!1,ve.value=!0,Ke.value=0,x.value=[],!await Zu(o)){ve.value=!1;return}try{Wm({add_goods_to_mall_click_cnt:1})}catch(qe){console.log(qe)}try{(Ze=Re.value)!=null&&Ze.param?pe.value=!0:sr()}catch(qe){console.log(qe),pe.value=!1,qe.errorMsg?Pn.confirm(qe.errorMsg,"提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}):Pn.confirm("请确保已经启动凌风跨境工具箱客户端并登录成功","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}).then(()=>{const Ge="call-lingfengtemu://";window.location.href=Ge})}finally{ve.value=!1}},Sr=we(!1),br=ze=>{for(let Ze in jr)if(ze.includes(Ze))return jr[Ze];return null},sr=async(ze=!1)=>{if(Sr.value=!0,ze){if(!await Zu(o)){Sr.value=!1;return}Re.value.mallId=[]}try{const Ze=await WC();if(Ze.status===1)throw Sr.value=!1,Ze;Ze.result.bindSiteIds,Ze.result.mallId=Ze.result.mallId.toString(),ye.value=Ze.result.needSetSupplierPrice,Ze.result.addMaterialCenter?Se.value=Ze.result.addMaterialCenter:Se.value=!1,Re.value=Ze.result}catch(Ze){console.log(Ze)}document.getElementById("chromePlugin")?await Or():await fn(),Fn.value||(pe.value=!0),setTimeout(()=>{Sr.value=!1},1500),ut.success("刷新成功！")},Fn=we(!1),fn=async()=>{var bt,xt,kt,Bt,Dt,or,gr;Re.value.title=_.value;const qe=new DOMParser().parseFromString(document.documentElement.innerHTML,"text/html").querySelectorAll("script"),Ge={};Ge.displayImageList=[],Ge.mainVideoList=[];for(const kr of qe){const it=kr.textContent.trim();if(it.startsWith("window.__GLOBAL_DADA")){const We=/window\.__INIT_DATA=(.*)/;let gt=JSON.parse(it.match(We)[0].substring(19));Ge.goodsTitle=(xt=(bt=gt==null?void 0:gt.globalData)==null?void 0:bt.tempModel)==null?void 0:xt.offerTitle,Ge.mainImageList=(kt=gt==null?void 0:gt.globalData)==null?void 0:kt.images.map(yt=>(M("skuInfoList",yt.fullPathImageURI),yt.fullPathImageURI));try{Ge.skuInfoList=[];let yt=(Dt=(Bt=gt==null?void 0:gt.globalData)==null?void 0:Bt.skuModel)==null?void 0:Dt.skuInfoMap,Rt=(gr=(or=gt==null?void 0:gt.globalData)==null?void 0:or.skuModel)==null?void 0:gr.skuProps;for(let Mt in yt){let It=Mt.split("&gt;"),xr=parseInt(parseFloat(yt[Mt].price)*100),rn=[],Zr="";for(let Rr in It){let $r=Rt[Rr].value.find(Mn=>Mn.name==It[Rr]);$r!=null&&$r.imageUrl&&(Zr=$r.imageUrl);let lr=br(Rt[Rr].prop);rn.push({specValue:$r.name,specValueId:0,specKey:lr.specKey,specKeyId:lr.specKeyId})}Ge.skuInfoList.push({imageUrl:Zr,supplierPrice:xr,specsList:rn}),M("skuInfoList",Mt.imageUrl)}}catch(yt){Fn.value=!0,console.log(yt,"sku error"),await Pn.confirm("该商品不支持采集","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}),Sr.value=!1;return}}}let $e=y.value;$e!=null&&$e.length&&$e.forEach(kr=>{kr.poster&&Ge.mainVideoList.push({videoUrl:kr.src,coverUrl:kr.poster})}),h.value.forEach(kr=>{let it=kr.getAttribute("src");!it.includes(".jpg")&&!it.includes(".gif")||(it=it.split(".jpg")[0]+".jpg",Ge.displayImageList.push(it),M("displayImageList",it))}),Re.value.param=Ge},Or=async()=>{var bt,xt,kt,Bt,Dt,or,gr,kr;Re.value.title=_.value;const qe=new DOMParser().parseFromString(document.documentElement.innerHTML,"text/html").querySelectorAll("script"),Ge={};Ge.displayImageList=[],Ge.mainVideoList=[],Ge.goodsTitle="",Ge.mainImageList=[],Ge.skuInfoList=[];for(const it of qe){const We=it.textContent.trim();if(We.startsWith("window.contextPath")){const gt=/window\.contextPath,(.*)/;let yt=We.match(gt)[0].substring(19);yt=yt.substring(0,yt.length-2);const Rt=yt.replace(/(\{|,)\s*([0-9]+)\s*:/g,'$1"$2":');let Mt=(Dt=(Bt=(kt=(xt=(bt=JSON.parse(Rt))==null?void 0:bt.result)==null?void 0:xt.data)==null?void 0:kt.Root)==null?void 0:Bt.fields)==null?void 0:Dt.dataJson;Ge.goodsTitle=(or=Mt==null?void 0:Mt.tempModel)==null?void 0:or.offerTitle,Ge.mainImageList=Mt==null?void 0:Mt.images.map(It=>(M("skuInfoList",It.fullPathImageURI),It.fullPathImageURI));try{Ge.skuInfoList=[];let It=(gr=Mt==null?void 0:Mt.skuModel)==null?void 0:gr.skuInfoMap,xr=(kr=Mt==null?void 0:Mt.skuModel)==null?void 0:kr.skuProps;for(let rn in It){let Zr=rn.split("&gt;"),Rr=parseInt(parseFloat(It[rn].price)*100),$r=[],lr="";for(let Mn in Zr){let ia=xr[Mn].value.find(ri=>ri.name==Zr[Mn]);ia!=null&&ia.imageUrl&&(lr=ia.imageUrl);let vn=br(xr[Mn].prop);$r.push({specValue:ia.name,specValueId:0,specKey:vn.specKey,specKeyId:vn.specKeyId})}Ge.skuInfoList.push({imageUrl:lr,supplierPrice:Rr,specsList:$r}),M("skuInfoList",rn.imageUrl)}}catch(It){Fn.value=!0,console.log(It,"sku error"),await Pn.confirm("该商品不支持采集","提示",{type:"info",confirmButtonText:"确定",cancelButtonText:"取消",center:!0}),Sr.value=!1;return}}}let $e=y.value;$e!=null&&$e.length&&$e.forEach(it=>{it.poster&&Ge.mainVideoList.push({videoUrl:it.src,coverUrl:it.poster})}),h.value.forEach(it=>{let We=it.getAttribute("src");We.includes(".jpg")&&(We=We.split(".jpg")[0]+".jpg",Ge.displayImageList.push(We),M("displayImageList",We))}),Re.value.param=Ge};async function ar(ze){const Ze=new YC;let qe=0;const Ge=ze.map(async($e,tt)=>{try{const bt=await py.get($e,{responseType:"arraybuffer"});console.log("index:",tt,",imageUrl:",$e);const xt=_.value,Bt=`${$e.split(".").pop()=="mp4",xt}_${tt+1}.${$e.split(".").pop()}`;Ze.file(Bt,bt.data),qe++,ke.value=Math.floor(qe/ze.length*100)}catch(bt){console.error(`Failed to download image ${$e}: ${bt}`)}});await Promise.all(Ge),Ze.generateAsync({type:"blob"}).then($e=>{const tt=document.createElement("a");tt.href=URL.createObjectURL($e),tt.download="images.zip",tt.click()})}const Wr=async()=>{Ee.value=!0,ue.value=!0,ke.value=0,Re.value.title=_.value;try{Wm({download_temu_goods_image_click_cnt:1})}catch(xt){console.log(xt)}const qe=new DOMParser().parseFromString(document.documentElement.innerHTML,"text/html").querySelectorAll("script");let Ge=[];qe.forEach(async xt=>{var Bt,Dt,or,gr,kr,it;const kt=xt.textContent.trim();if(kt.startsWith("window.__GLOBAL_DADA")){const We=/https?:\/\/cloud\.video\.taobao\.com[^\s",]+\.(?:mp4)/gi,gt=/window\.__INIT_DATA=(.*)/;let yt=JSON.parse(kt.match(gt)[0].substring(19)).globalData.images;for(let Mt in yt)Ge.push("https://cbu01.alicdn.com/"+yt[Mt].imageURI);const Rt=kt.match(We);for(let Mt in Rt)Ge.push(Rt[Mt])}if(kt.startsWith("window.contextPath")){const We=/https?:\/\/cloud\.video\.taobao\.com[^\s",]+\.(?:mp4)/gi,gt=/window\.contextPath,(.*)/;let yt=kt.match(gt)[0].substring(19);yt=yt.substring(0,yt.length-2);const Rt=yt.replace(/(\{|,)\s*([0-9]+)\s*:/g,'$1"$2":');let Mt=(it=(kr=(gr=(or=(Dt=(Bt=JSON.parse(Rt))==null?void 0:Bt.result)==null?void 0:Dt.data)==null?void 0:or.Root)==null?void 0:gr.fields)==null?void 0:kr.dataJson)==null?void 0:it.images;for(let xr in Mt)Ge.push("https://cbu01.alicdn.com/"+Mt[xr].imageURI);const It=kt.match(We);for(let xr in It)Ge.push(It[xr])}}),y.value.forEach(xt=>{const kt=xt.getAttribute("src");Ge.push(kt)});const tt=h.value;let bt=[];if(tt.forEach(xt=>{const kt=xt.getAttribute("src");kt.includes(".jpg")&&bt.push(kt.split(".jpg")[0]+".jpg")}),Ge=Ge.concat([...new Set(bt)]),Ge){console.log(Ge),ve.value=!1;try{await ar(Ge),ut.success("下载图片成功")}catch{ut.error("下载图片失败，请检查网络后刷新重试")}finally{Ee.value=!1,ue.value=!1}}else console.log("No image links found.")},Tt=async ze=>{window.open(ze)},Qt=t8();Ra(()=>Qt.loadingScrapeGoods,async ze=>{ze&&(await $t(),Qt.loadingScrapeGoods=!1)}),Ra(()=>Qt.loadingDownloadImages,async ze=>{ze&&(await Wr(),Qt.loadingDownloadImages=!1)});const hr=ze=>{const Ze=document.getElementById("lingfengPlugin"),qe=ze.clientX,Ge=ze.clientY,$e=Ze.offsetLeft/window.innerWidth*100,tt=Ze.offsetTop/window.innerHeight*100,bt=Ze.offsetWidth/window.innerWidth*100,xt=Ze.offsetHeight/window.innerHeight*100,kt=Dt=>{const or=Dt.clientX-qe,gr=Dt.clientY-Ge;r.value=$e+or/window.innerWidth*100,i.value=tt+gr/window.innerHeight*100,r.value<0&&(r.value=0),r.value>100-bt&&(r.value=100-bt),i.value<0&&(i.value=0),i.value>100-xt&&(i.value=100-xt),Ze.style.left=r.value+"%",Ze.style.top=i.value+"%"},Bt=()=>{document.removeEventListener("mousemove",kt),document.removeEventListener("mouseup",Bt)};document.addEventListener("mousemove",kt),document.addEventListener("mouseup",Bt)};return setTimeout(()=>{const ze=document.getElementById("lingfengPlugin"),Ze=ze.offsetWidth/window.innerWidth*100,qe=ze.offsetHeight/window.innerHeight*100,Ge=new MouseEvent("mouseover",{view:window,bubbles:!0,cancelable:!0});ze.dispatchEvent(Ge);const $e=ze.offsetLeft/window.innerWidth*100;r.value=$e,i.value=parseInt(localStorage.getItem("lingfengPluginTopPosition")?localStorage.getItem("lingfengPluginTopPosition"):"100"),r.value<0&&(r.value=0),r.value>100-Ze&&(r.value=100-Ze),i.value<0&&(i.value=0),i.value>100-qe&&(i.value=100-qe),ze.style.left=r.value+"%",ze.style.top=i.value+"%";const tt=new MouseEvent("mouseout",{view:window,bubbles:!0,cancelable:!0});ze.dispatchEvent(tt)},1),oa(()=>{mle()}),$l(()=>{gle()}),(ze,Ze)=>{const qe=Ce("var-button"),Ge=Ce("var-tooltip"),$e=Ce("var-fab"),tt=Ce("var-icon"),bt=Ce("el-button"),xt=Ce("el-form-item"),kt=Ce("el-input"),Bt=Ce("el-tooltip"),Dt=Ce("el-radio"),or=Ce("el-radio-group"),gr=Ce("el-link"),kr=Ce("el-form"),it=Ce("el-progress"),We=Ce("el-dialog"),gt=Ai("loading");return Oe(),st(Zt,null,[z($e,{id:"lingfengPlugin",direction:"right",drag:"true",attraction:"y",elevation:"18",position:"left-top",left:n.value,top:t.value,"z-index":"9999",color:"#f97602","inactive-icon":St(j0),"inactive-icon-size":"30","active-icon-size":"35","safe-area":"true",trigger:"hover",onMousedown:hr},{default:q(()=>[m.value?na((Oe(),Et(Ge,{key:0,content:"【凌风跨境工具箱】采集商品",placement:"top"},{default:q(()=>[z(qe,{type:"info","icon-container":"",onClick:$t,disabled:pe.value},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(ZC)},null,8,["path"])]),_:1},8,["disabled"])]),_:1})),[[gt,ve.value]]):tr("",!0),m.value?(Oe(),Et(Ge,{key:1,content:"【凌风跨境工具箱】下载图片",placement:"top"},{default:q(()=>[z(qe,{type:"success","icon-container":"",onClick:Wr,disabled:ue.value},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(JC)},null,8,["path"])]),_:1},8,["disabled"])]),_:1})):tr("",!0),z(Ge,{content:"【凌风跨境工具箱】到工具箱查看",placement:"top"},{default:q(()=>[z(qe,{type:"warning","icon-container":"",onClick:Ze[0]||(Ze[0]=yt=>Tt(St(f)))},{default:q(()=>[z(St(Rc),{type:"mdi",path:St(HT)},null,8,["path"])]),_:1})]),_:1})]),_:1},8,["left","top","inactive-icon"]),z(We,{class:"warp-float",modelValue:pe.value,"onUpdate:modelValue":Ze[17]||(Ze[17]=yt=>pe.value=yt),width:"1024px",disabled:ve.value,"show-close":!ve.value,visible:Pe.value,"before-close":Pe.value=ve.value},{header:q(()=>[Ze[21]||(Ze[21]=de("p",null,"凌风跨境工具箱采集设置(采集过程中请勿关闭或刷新该页面，可能会导致采集失败)",-1)),z(bt,{type:"primary",link:"",class:"refresh",disabled:Sr.value,onClick:Ze[1]||(Ze[1]=yt=>sr(!0))},{default:q(()=>[z(tt,{class:ao({loading:Sr.value}),name:"refresh"},null,8,["class"]),Ze[20]||(Ze[20]=Ue("刷新",-1))]),_:1},8,["disabled"])]),default:q(()=>{var yt,Rt,Mt;return[na((Oe(),st("div",null,[z(kr,{model:Re.value,"label-position":"left","label-width":"120",class:"dialog-body"},{default:q(()=>[Ze[30]||(Ze[30]=de("div",{class:"tips"}," 如果没有获取到商品详情图，请把页面滑动到最底部，然后再点击采集设置右上角的刷新按钮即可获取到 ",-1)),z(xt,{label:"商品名：",class:"wrap-label","label-width":"auto"},{default:q(()=>[de("div",vle,ht(Ye.value),1)]),_:1}),z(xt,{label:"采集店铺：",class:"wrap-label"},{default:q(()=>[z(tS,{ref_key:"temuMallSelectorRef",ref:Ot,modelValue:Re.value.mallId,"onUpdate:modelValue":Ze[2]||(Ze[2]=It=>Re.value.mallId=It),"before-update":s,style:{width:"340px"}},null,8,["modelValue"])]),_:1}),z(joe,{"mall-id":wt.value,"is-semi-managed-mall":Kt.value,"saved-config":St(Jt),siteIdArr:_t.value,"onUpdate:siteIdArr":Ze[3]||(Ze[3]=It=>_t.value=It),warehouseDTOList:Ut.value,"onUpdate:warehouseDTOList":Ze[4]||(Ze[4]=It=>Ut.value=It),ref_key:"siteWarehouse",ref:yr},null,8,["mall-id","is-semi-managed-mall","saved-config","siteIdArr","warehouseDTOList"]),z(xt,{label:"类目："},{default:q(()=>[z(i_,{modelValue:A.value,"onUpdate:modelValue":Ze[5]||(Ze[5]=It=>A.value=It),style:{width:"340px"}},null,8,["modelValue"])]),_:1}),z(xt,{label:"主货号："},{default:q(()=>[z(kt,{modelValue:Ve.value,"onUpdate:modelValue":Ze[6]||(Ze[6]=It=>Ve.value=It),placeholder:"请输入主货号",style:{width:"340px"}},null,8,["modelValue"])]),_:1}),z(xt,{"label-width":"300"},{label:q(()=>[z(Bt,{class:"item",effect:"dark",content:"可以选择填写草稿箱中商品模板的核价",placement:"top"},{default:q(()=>[...Ze[22]||(Ze[22]=[de("label",null,"是否填入核价(即前端售价换算为人民币RMB):",-1)])]),_:1})]),default:q(()=>[z(or,{modelValue:ye.value,"onUpdate:modelValue":Ze[7]||(Ze[7]=It=>ye.value=It)},{default:q(()=>[z(Dt,{label:!0},{default:q(()=>[...Ze[23]||(Ze[23]=[Ue("是",-1)])]),_:1}),z(Dt,{label:!1},{default:q(()=>[...Ze[24]||(Ze[24]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),z(xt,{"label-width":"300"},{label:q(()=>[z(Bt,{class:"item",effect:"dark",content:"可以选择是否把图片上传到素材中心",placement:"top"},{default:q(()=>[...Ze[25]||(Ze[25]=[de("label",null,"是否上传图片到素材中心:",-1)])]),_:1})]),default:q(()=>[z(or,{modelValue:Se.value,"onUpdate:modelValue":Ze[8]||(Ze[8]=It=>Se.value=It)},{default:q(()=>[z(Dt,{label:!0},{default:q(()=>[...Ze[26]||(Ze[26]=[Ue("是",-1)])]),_:1}),z(Dt,{label:!1},{default:q(()=>[...Ze[27]||(Ze[27]=[Ue("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1}),de("div",yle,[na((Oe(),Et(bt,{type:"primary",onClick:Gt,disabled:ge.value},{default:q(()=>[...Ze[28]||(Ze[28]=[Ue("校验图片合法性",-1)])]),_:1},8,["disabled"])),[[gt,ge.value]]),de("span",ble,"图片翻译额度："+ht(l.value.imageTranslateCount+l.value.imageTranslateCountPersonal)+" / "+ht(l.value.imageTranslateLimitCount+l.value.imageTranslateLimitCountPersonal),1),z(gr,{type:"primary",class:"!ml-[5px]",style:{color:"#f97602"},href:O,target:"_blank"},{default:q(()=>[...Ze[29]||(Ze[29]=[Ue("充值",-1)])]),_:1})])]),_:1},8,["model"]),z(uw,{ref_key:"ImageGallery_main",ref:R,title:"商品主图：",items:(yt=Re.value.param)==null?void 0:yt.mainImageList,"check-results":k,onDelete:N,onEdit:Ze[9]||(Ze[9]=({index:It,imageUrl:xr})=>le(xr,It,"main")),onTranslate:Ze[10]||(Ze[10]=It=>K(It,"main"))},null,8,["items"]),z(uw,{ref_key:"ImageGallery_sku",ref:U,title:"SKU图：",items:(Rt=Re.value.param)==null?void 0:Rt.skuInfoList,"is-sku":!0,"check-results":T,onDelete:P,onEdit:Ze[11]||(Ze[11]=({index:It,imageUrl:xr})=>le(xr,It,"sku")),onTranslate:Ze[12]||(Ze[12]=It=>K(It,"sku"))},null,8,["items"]),z(uw,{ref_key:"ImageGallery_display",ref:V,title:"商品详情图：",items:(Mt=Re.value.param)==null?void 0:Mt.displayImageList,"check-results":S,onDelete:B,onEdit:Ze[13]||(Ze[13]=({index:It,imageUrl:xr})=>le(xr,It,"display")),onTranslate:Ze[14]||(Ze[14]=It=>K(It,"display"))},null,8,["items"])])),[[gt,ve.value]]),de("div",wle,[Ze[31]||(Ze[31]=de("label",null,"采集进度:",-1)),z(it,{percentage:Ke.value,status:mt.value,"stroke-width":12,"text-inside":!0},null,8,["percentage","status"])]),de("div",_le,[z(Bt,{class:"item",effect:"dark",content:"使用采集功能会消耗采集余额，采集余额可以在个人中心查看",placement:"top"},{default:q(()=>[z(bt,{onClick:Ze[15]||(Ze[15]=It=>Lt(!0)),type:"orange",loading:ve.value,style:{color:"white"},class:"orange-button"},{default:q(()=>[...Ze[32]||(Ze[32]=[Ue("保存为商品模板",-1)])]),_:1},8,["loading"])]),_:1}),z(Bt,{class:"item",effect:"dark",content:"使用采集功能会消耗采集余额，采集余额可以在个人中心查看",placement:"top"},{default:q(()=>[z(bt,{onClick:Ze[16]||(Ze[16]=It=>Lt(!1)),type:"primary",loading:ve.value},{default:q(()=>[...Ze[33]||(Ze[33]=[Ue("开始采集",-1)])]),_:1},8,["loading"])]),_:1})])]}),_:1},8,["modelValue","disabled","show-close","visible","before-close"]),z(Hse,{ref_key:"imageEditor",ref:v,isVisible:Q.value,onClose:fe,imageSrc:I.value.src,onSaveImage:G},null,8,["isVisible","imageSrc"]),z(We,{class:"warp-float",modelValue:Ee.value,"onUpdate:modelValue":Ze[18]||(Ze[18]=yt=>Ee.value=yt),title:"正在下载图片，请勿关闭或刷新页面...",width:"500px",disabled:ue.value,"show-close":!ue.value,visible:Te.value,"before-close":Te.value=ue.value},{default:q(()=>[na((Oe(),Et(kr,{model:Re.value,"label-position":"top",class:"dialog-body"},{default:q(()=>[de("div",xle,[Ze[34]||(Ze[34]=de("label",null,"商品名:",-1)),z(xt,{label:Ye.value,class:"wrap-label","label-width":"100%",height:ot.value},null,8,["label","height"])])]),_:1},8,["model"])),[[gt,ue.value]]),de("div",Cle,[Ze[35]||(Ze[35]=de("label",null,"下载进度:",-1)),z(it,{percentage:ke.value,status:nt.value,"stroke-width":12,"text-inside":!0},null,8,["percentage","status"])])]),_:1},8,["modelValue","disabled","show-close","visible","before-close"]),z(dle,{modelValue:ie.value,"onUpdate:modelValue":Ze[19]||(Ze[19]=yt=>ie.value=yt),imgList:he.value,onSaveImage:oe},null,8,["modelValue","imgList"]),z(Uoe)],64)}}},kle=cn(Sle,[["__scopeId","data-v-f1779d98"]]);var Tm=document.URL;const Tle=/https:\/\/www\.temu\.com\//,Ele=/https:\/\/seller\.kuajingmaihuo\.com/,Ile=/https:\/\/www\.temu\.com\/.*[a-z0-9-]+-m-\d+\.html/,Ble=/https:\/\/.*kuajingabc\.com|http:\/\/localhost|http:\/\/106.14.253.236/,Fle=/https:\/\/agentseller[-\w]*\.temu\.com/,Mle=/https:\/\/.*\.1688\.com/,Dle=/https:\/\/mmo\.fanczs\.com/;(async function(){await vT();const a=setInterval(async()=>{N0.ping().then(s=>{}).catch(s=>{ut({message:s.message,type:"error",showClose:!0,duration:0}),clearInterval(a)})},5e3);if(Tle.test(Tm)){const s=document.createElement("div");s.id="joinContentApp",document.body.appendChild(s),ks(s,iN)}else if(Ile.test(Tm)){const s=document.createElement("div");s.id="joinContentApp",document.body.appendChild(s),ks(s,oN)}else if(Ele.test(Tm)||Fle.test(Tm)){const s=document.createElement("div");s.id="joinContentApp",document.body.appendChild(s),ks(s,rC)}else if(Ble.test(Tm))yT();else if(Mle.test(Tm)){const s=document.createElement("div");s.id="joinContentApp",document.body.appendChild(s),ks(s,kle)}else if(Dle){const s=document.createElement("div");s.id="joinContentApp",document.body.appendChild(s),ks(s,rC)}})();
