var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(v,O,x){if(null==v)throw new TypeError("The 'this' value for String.prototype."+x+" must not be null or undefined");if(O instanceof RegExp)throw new TypeError("First argument to String.prototype."+x+" must not be a regular expression");return v+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(v,O,x){if(v==Array.prototype||v==Object.prototype)return v;v[O]=x.value;return v};
$jscomp.getGlobal=function(v){v=["object"==typeof globalThis&&globalThis,v,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var O=0;O<v.length;++O){var x=v[O];if(x&&x.Math==Math)return x}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(v,O){var x=$jscomp.propertyToPolyfillSymbol[O];if(null==x)return v[O];x=v[x];return void 0!==x?x:v[O]};$jscomp.polyfill=function(v,O,x,w){O&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(v,O,x,w):$jscomp.polyfillUnisolated(v,O,x,w))};
$jscomp.polyfillUnisolated=function(v,O,x,w){x=$jscomp.global;v=v.split(".");for(w=0;w<v.length-1;w++){var A=v[w];if(!(A in x))return;x=x[A]}v=v[v.length-1];w=x[v];O=O(w);O!=w&&null!=O&&$jscomp.defineProperty(x,v,{configurable:!0,writable:!0,value:O})};
$jscomp.polyfillIsolated=function(v,O,x,w){var A=v.split(".");v=1===A.length;w=A[0];w=!v&&w in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var m=0;m<A.length-1;m++){var u=A[m];if(!(u in w))return;w=w[u]}A=A[A.length-1];x=$jscomp.IS_SYMBOL_NATIVE&&"es6"===x?w[A]:null;O=O(x);null!=O&&(v?$jscomp.defineProperty($jscomp.polyfills,A,{configurable:!0,writable:!0,value:O}):O!==x&&(void 0===$jscomp.propertyToPolyfillSymbol[A]&&(x=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[A]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(A):$jscomp.POLYFILL_PREFIX+x+"$"+A),$jscomp.defineProperty(w,$jscomp.propertyToPolyfillSymbol[A],{configurable:!0,writable:!0,value:O})))};$jscomp.polyfill("String.prototype.endsWith",function(v){return v?v:function(O,x){var w=$jscomp.checkStringArgs(this,O,"endsWith");O+="";void 0===x&&(x=w.length);x=Math.max(0,Math.min(x|0,w.length));for(var A=O.length;0<A&&0<x;)if(w[--x]!=O[--A])return!1;return 0>=A}},"es6","es3");
$jscomp.arrayIteratorImpl=function(v){var O=0;return function(){return O<v.length?{done:!1,value:v[O++]}:{done:!0}}};$jscomp.arrayIterator=function(v){return{next:$jscomp.arrayIteratorImpl(v)}};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(v){if(v)return v;var O=function(m,u){this.$jscomp$symbol$id_=m;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:u})};O.prototype.toString=function(){return this.$jscomp$symbol$id_};var x="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",w=0,A=function(m){if(this instanceof A)throw new TypeError("Symbol is not a constructor");return new O(x+(m||"")+"_"+w++,m)};return A},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(v){if(v)return v;v=Symbol("Symbol.iterator");for(var O="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x<O.length;x++){var w=$jscomp.global[O[x]];"function"===typeof w&&"function"!=typeof w.prototype[v]&&$jscomp.defineProperty(w.prototype,v,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return v},"es6",
"es3");$jscomp.iteratorPrototype=function(v){v={next:v};v[Symbol.iterator]=function(){return this};return v};$jscomp.iteratorFromArray=function(v,O){v instanceof String&&(v+="");var x=0,w=!1,A={next:function(){if(!w&&x<v.length){var m=x++;return{value:O(m,v[m]),done:!1}}w=!0;return{done:!0,value:void 0}}};A[Symbol.iterator]=function(){return A};return A};$jscomp.polyfill("Array.prototype.keys",function(v){return v?v:function(){return $jscomp.iteratorFromArray(this,function(O){return O})}},"es6","es3");
$jscomp.polyfill("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6","es3");$jscomp.polyfill("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991},"es6","es3");
(function(v){"object"===typeof exports&&"undefined"!==typeof module?module.exports=v():"function"===typeof define&&define.amd?define([],v):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).pako=v()})(function(){return function(){function v(O,x,w){function A(t,r){if(!x[t]){if(!O[t]){var E="function"==typeof require&&require;if(!r&&E)return E(t,!0);if(m)return m(t,!0);r=Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r;}r=
x[t]={exports:{}};O[t][0].call(r.exports,function(C){return A(O[t][1][C]||C)},r,r.exports,v,O,x,w)}return x[t].exports}for(var m="function"==typeof require&&require,u=0;u<w.length;u++)A(w[u]);return A}return v}()({1:[function(v,O,x){function w(J){if(!(this instanceof w))return new w(J);J=this.options=u.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},J||{});J.raw&&0<J.windowBits?J.windowBits=-J.windowBits:J.gzip&&0<J.windowBits&&16>J.windowBits&&(J.windowBits+=
16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new E;this.strm.avail_out=0;var Q=m.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if(0!==Q)throw Error(r[Q]);J.header&&m.deflateSetHeader(this.strm,J.header);if(J.dictionary){J="string"===typeof J.dictionary?t.string2buf(J.dictionary):"[object ArrayBuffer]"===C.call(J.dictionary)?new Uint8Array(J.dictionary):J.dictionary;Q=m.deflateSetDictionary(this.strm,J);if(0!==Q)throw Error(r[Q]);this._dict_set=!0}}
function A(J,Q){Q=new w(Q);Q.push(J,!0);if(Q.err)throw Q.msg||r[Q.err];return Q.result}var m=v("./zlib/deflate"),u=v("./utils/common"),t=v("./utils/strings"),r=v("./zlib/messages"),E=v("./zlib/zstream"),C=Object.prototype.toString;w.prototype.push=function(J,Q){var H=this.strm,L=this.options.chunkSize;if(this.ended)return!1;Q=Q===~~Q?Q:!0===Q?4:0;"string"===typeof J?H.input=t.string2buf(J):"[object ArrayBuffer]"===C.call(J)?H.input=new Uint8Array(J):H.input=J;H.next_in=0;H.avail_in=H.input.length;
do{0===H.avail_out&&(H.output=new u.Buf8(L),H.next_out=0,H.avail_out=L);J=m.deflate(H,Q);if(1!==J&&0!==J)return this.onEnd(J),this.ended=!0,!1;if(0===H.avail_out||0===H.avail_in&&(4===Q||2===Q))if("string"===this.options.to)this.onData(t.buf2binstring(u.shrinkBuf(H.output,H.next_out)));else this.onData(u.shrinkBuf(H.output,H.next_out))}while((0<H.avail_in||0===H.avail_out)&&1!==J);if(4===Q)return J=m.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,0===J;2===Q&&(this.onEnd(0),H.avail_out=0);return!0};
w.prototype.onData=function(J){this.chunks.push(J)};w.prototype.onEnd=function(J){0===J&&(this.result="string"===this.options.to?this.chunks.join(""):u.flattenChunks(this.chunks));this.chunks=[];this.err=J;this.msg=this.strm.msg};x.Deflate=w;x.deflate=A;x.deflateRaw=function(J,Q){Q=Q||{};Q.raw=!0;return A(J,Q)};x.gzip=function(J,Q){Q=Q||{};Q.gzip=!0;return A(J,Q)}},{"./utils/common":3,"./utils/strings":4,"./zlib/deflate":8,"./zlib/messages":13,"./zlib/zstream":15}],2:[function(v,O,x){function w(H){if(!(this instanceof
w))return new w(H);var L=this.options=u.assign({chunkSize:16384,windowBits:0,to:""},H||{});L.raw&&0<=L.windowBits&&16>L.windowBits&&(L.windowBits=-L.windowBits,0===L.windowBits&&(L.windowBits=-15));!(0<=L.windowBits&&16>L.windowBits)||H&&H.windowBits||(L.windowBits+=32);15<L.windowBits&&48>L.windowBits&&0===(L.windowBits&15)&&(L.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new C;this.strm.avail_out=0;H=m.inflateInit2(this.strm,L.windowBits);if(H!==r.Z_OK)throw Error(E[H]);
this.header=new J;m.inflateGetHeader(this.strm,this.header);if(L.dictionary&&("string"===typeof L.dictionary?L.dictionary=t.string2buf(L.dictionary):"[object ArrayBuffer]"===Q.call(L.dictionary)&&(L.dictionary=new Uint8Array(L.dictionary)),L.raw&&(H=m.inflateSetDictionary(this.strm,L.dictionary),H!==r.Z_OK)))throw Error(E[H]);}function A(H,L){L=new w(L);L.push(H,!0);if(L.err)throw L.msg||E[L.err];return L.result}var m=v("./zlib/inflate"),u=v("./utils/common"),t=v("./utils/strings"),r=v("./zlib/constants"),
E=v("./zlib/messages"),C=v("./zlib/zstream"),J=v("./zlib/gzheader"),Q=Object.prototype.toString;w.prototype.push=function(H,L){var I=this.strm,T=this.options.chunkSize,G=this.options.dictionary,h=!1;if(this.ended)return!1;L=L===~~L?L:!0===L?r.Z_FINISH:r.Z_NO_FLUSH;"string"===typeof H?I.input=t.binstring2buf(H):"[object ArrayBuffer]"===Q.call(H)?I.input=new Uint8Array(H):I.input=H;I.next_in=0;I.avail_in=I.input.length;do{0===I.avail_out&&(I.output=new u.Buf8(T),I.next_out=0,I.avail_out=T);H=m.inflate(I,
r.Z_NO_FLUSH);H===r.Z_NEED_DICT&&G&&(H=m.inflateSetDictionary(this.strm,G));H===r.Z_BUF_ERROR&&!0===h&&(H=r.Z_OK,h=!1);if(H!==r.Z_STREAM_END&&H!==r.Z_OK)return this.onEnd(H),this.ended=!0,!1;if(I.next_out&&(0===I.avail_out||H===r.Z_STREAM_END||0===I.avail_in&&(L===r.Z_FINISH||L===r.Z_SYNC_FLUSH)))if("string"===this.options.to){var y=t.utf8border(I.output,I.next_out);var l=I.next_out-y;var q=t.buf2string(I.output,y);I.next_out=l;I.avail_out=T-l;l&&u.arraySet(I.output,I.output,y,l,0);this.onData(q)}else this.onData(u.shrinkBuf(I.output,
I.next_out));0===I.avail_in&&0===I.avail_out&&(h=!0)}while((0<I.avail_in||0===I.avail_out)&&H!==r.Z_STREAM_END);H===r.Z_STREAM_END&&(L=r.Z_FINISH);if(L===r.Z_FINISH)return H=m.inflateEnd(this.strm),this.onEnd(H),this.ended=!0,H===r.Z_OK;L===r.Z_SYNC_FLUSH&&(this.onEnd(r.Z_OK),I.avail_out=0);return!0};w.prototype.onData=function(H){this.chunks.push(H)};w.prototype.onEnd=function(H){H===r.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):u.flattenChunks(this.chunks));this.chunks=[];
this.err=H;this.msg=this.strm.msg};x.Inflate=w;x.inflate=A;x.inflateRaw=function(H,L){L=L||{};L.raw=!0;return A(H,L)};x.ungzip=A},{"./utils/common":3,"./utils/strings":4,"./zlib/constants":6,"./zlib/gzheader":9,"./zlib/inflate":11,"./zlib/messages":13,"./zlib/zstream":15}],3:[function(v,O,x){v="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;x.assign=function(m){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var t=u.shift();if(t){if("object"!==
typeof t)throw new TypeError(t+"must be non-object");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(m[r]=t[r])}}return m};x.shrinkBuf=function(m,u){if(m.length===u)return m;if(m.subarray)return m.subarray(0,u);m.length=u;return m};var w={arraySet:function(m,u,t,r,E){if(u.subarray&&m.subarray)m.set(u.subarray(t,t+r),E);else for(var C=0;C<r;C++)m[E+C]=u[t+C]},flattenChunks:function(m){var u,t;var r=t=0;for(u=m.length;r<u;r++)t+=m[r].length;var E=new Uint8Array(t);r=t=0;for(u=m.length;r<
u;r++){var C=m[r];E.set(C,t);t+=C.length}return E}},A={arraySet:function(m,u,t,r,E){for(var C=0;C<r;C++)m[E+C]=u[t+C]},flattenChunks:function(m){return[].concat.apply([],m)}};x.setTyped=function(m){m?(x.Buf8=Uint8Array,x.Buf16=Uint16Array,x.Buf32=Int32Array,x.assign(x,w)):(x.Buf8=Array,x.Buf16=Array,x.Buf32=Array,x.assign(x,A))};x.setTyped(v)},{}],4:[function(v,O,x){function w(r,E){if(65534>E&&(r.subarray&&u||!r.subarray&&m))return String.fromCharCode.apply(null,A.shrinkBuf(r,E));for(var C="",J=0;J<
E;J++)C+=String.fromCharCode(r[J]);return C}var A=v("./common"),m=!0,u=!0;try{String.fromCharCode.apply(null,[0])}catch(r){m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(r){u=!1}var t=new A.Buf8(256);for(v=0;256>v;v++)t[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;t[254]=t[254]=1;x.string2buf=function(r){var E,C,J=r.length,Q=0;for(E=0;E<J;E++){var H=r.charCodeAt(E);if(55296===(H&64512)&&E+1<J){var L=r.charCodeAt(E+1);56320===(L&64512)&&(H=65536+(H-55296<<10)+(L-56320),E++)}Q+=
128>H?1:2048>H?2:65536>H?3:4}var I=new A.Buf8(Q);for(E=C=0;C<Q;E++)H=r.charCodeAt(E),55296===(H&64512)&&E+1<J&&(L=r.charCodeAt(E+1),56320===(L&64512)&&(H=65536+(H-55296<<10)+(L-56320),E++)),128>H?I[C++]=H:(2048>H?I[C++]=192|H>>>6:(65536>H?I[C++]=224|H>>>12:(I[C++]=240|H>>>18,I[C++]=128|H>>>12&63),I[C++]=128|H>>>6&63),I[C++]=128|H&63);return I};x.buf2binstring=function(r){return w(r,r.length)};x.binstring2buf=function(r){for(var E=new A.Buf8(r.length),C=0,J=E.length;C<J;C++)E[C]=r.charCodeAt(C);return E};
x.buf2string=function(r,E){var C,J=E||r.length,Q=Array(2*J);for(E=C=0;E<J;){var H=r[E++];if(128>H)Q[C++]=H;else{var L=t[H];if(4<L)Q[C++]=65533,E+=L-1;else{for(H&=2===L?31:3===L?15:7;1<L&&E<J;)H=H<<6|r[E++]&63,L--;1<L?Q[C++]=65533:65536>H?Q[C++]=H:(H-=65536,Q[C++]=55296|H>>10&1023,Q[C++]=56320|H&1023)}}}return w(Q,C)};x.utf8border=function(r,E){var C;E=E||r.length;E>r.length&&(E=r.length);for(C=E-1;0<=C&&128===(r[C]&192);)C--;return 0>C||0===C?E:C+t[r[C]]>E?C:E}},{"./common":3}],5:[function(v,O,x){O.exports=
function(w,A,m,u){var t=w&65535|0;w=w>>>16&65535|0;for(var r;0!==m;){r=2E3<m?2E3:m;m-=r;do t=t+A[u++]|0,w=w+t|0;while(--r);t%=65521;w%=65521}return t|w<<16|0}},{}],6:[function(v,O,x){O.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}},{}],7:[function(v,O,x){var w=function(){for(var A,m=[],u=0;256>u;u++){A=u;for(var t=0;8>t;t++)A=A&1?3988292384^A>>>1:A>>>1;m[u]=A}return m}();O.exports=function(A,m,u,t){u=t+u;for(A^=-1;t<u;t++)A=A>>>8^w[(A^m[t])&255];return A^-1}},{}],8:[function(v,O,x){function w(a,k){a.msg=D[k];return k}function A(a){for(var k=a.length;0<=--k;)a[k]=0}function m(a){var k=a.state,d=k.pending;d>a.avail_out&&(d=a.avail_out);0!==d&&(l.arraySet(a.output,
k.pending_buf,k.pending_out,d,a.next_out),a.next_out+=d,k.pending_out+=d,a.total_out+=d,a.avail_out-=d,k.pending-=d,0===k.pending&&(k.pending_out=0))}function u(a,k){q._tr_flush_block(a,0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,k);a.block_start=a.strstart;m(a.strm)}function t(a,k){a.pending_buf[a.pending++]=k}function r(a,k){a.pending_buf[a.pending++]=k>>>8&255;a.pending_buf[a.pending++]=k&255}function E(a,k){var d=a.max_chain_length,g=a.strstart,e=a.prev_length,f=a.nice_match,aa=
a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,z=a.window,Y=a.w_mask,N=a.prev,b=a.strstart+258,n=z[g+e-1],F=z[g+e];a.prev_length>=a.good_match&&(d>>=2);f>a.lookahead&&(f=a.lookahead);do{var K=k;if(z[K+e]===F&&z[K+e-1]===n&&z[K]===z[g]&&z[++K]===z[g+1]){g+=2;for(K++;z[++g]===z[++K]&&z[++g]===z[++K]&&z[++g]===z[++K]&&z[++g]===z[++K]&&z[++g]===z[++K]&&z[++g]===z[++K]&&z[++g]===z[++K]&&z[++g]===z[++K]&&g<b;);K=258-(b-g);g=b-258;if(K>e){a.match_start=k;e=K;if(K>=f)break;n=z[g+e-1];F=z[g+e]}}}while((k=
N[k&Y])>aa&&0!==--d);return e<=a.lookahead?e:a.lookahead}function C(a){var k=a.w_size,d;do{var g=a.window_size-a.lookahead-a.strstart;if(a.strstart>=k+(k-262)){l.arraySet(a.window,a.window,k,k,0);a.match_start-=k;a.strstart-=k;a.block_start-=k;var e=d=a.hash_size;do{var f=a.head[--e];a.head[e]=f>=k?f-k:0}while(--d);e=d=k;do f=a.prev[--e],a.prev[e]=f>=k?f-k:0;while(--d);g+=k}if(0===a.strm.avail_in)break;e=a.strm;d=a.window;f=a.strstart+a.lookahead;var aa=e.avail_in;aa>g&&(aa=g);0===aa?d=0:(e.avail_in-=
aa,l.arraySet(d,e.input,e.next_in,aa,f),1===e.state.wrap?e.adler=B(e.adler,d,aa,f):2===e.state.wrap&&(e.adler=c(e.adler,d,aa,f)),e.next_in+=aa,e.total_in+=aa,d=aa);a.lookahead+=d;if(3<=a.lookahead+a.insert)for(g=a.strstart-a.insert,a.ins_h=a.window[g],a.ins_h=(a.ins_h<<a.hash_shift^a.window[g+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<<a.hash_shift^a.window[g+3-1])&a.hash_mask,a.prev[g&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=g,g++,a.insert--,3>a.lookahead+a.insert););}while(262>a.lookahead&&0!==
a.strm.avail_in)}function J(a,k){for(var d;;){if(262>a.lookahead){C(a);if(262>a.lookahead&&0===k)return 1;if(0===a.lookahead)break}d=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,d=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);0!==d&&a.strstart-d<=a.w_size-262&&(a.match_length=E(a,d));if(3<=a.match_length)if(d=q._tr_tally(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&3<=
a.lookahead){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(0!==--a.match_length);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else d=q._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(d&&(u(a,!1),0===a.strm.avail_out))return 1}a.insert=2>
a.strstart?a.strstart:2;return 4===k?(u(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(u(a,!1),0===a.strm.avail_out)?1:2}function Q(a,k){for(var d,g;;){if(262>a.lookahead){C(a);if(262>a.lookahead&&0===k)return 1;if(0===a.lookahead)break}d=0;3<=a.lookahead&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,d=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);a.prev_length=a.match_length;a.prev_match=a.match_start;a.match_length=2;0!==d&&a.prev_length<a.max_lazy_match&&
a.strstart-d<=a.w_size-262&&(a.match_length=E(a,d),5>=a.match_length&&(1===a.strategy||3===a.match_length&&4096<a.strstart-a.match_start)&&(a.match_length=2));if(3<=a.prev_length&&a.match_length<=a.prev_length){g=a.strstart+a.lookahead-3;d=q._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=g&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);
while(0!==--a.prev_length);a.match_available=0;a.match_length=2;a.strstart++;if(d&&(u(a,!1),0===a.strm.avail_out))return 1}else if(a.match_available){if((d=q._tr_tally(a,0,a.window[a.strstart-1]))&&u(a,!1),a.strstart++,a.lookahead--,0===a.strm.avail_out)return 1}else a.match_available=1,a.strstart++,a.lookahead--}a.match_available&&(q._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0);a.insert=2>a.strstart?a.strstart:2;return 4===k?(u(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(u(a,!1),0===
a.strm.avail_out)?1:2}function H(a,k){for(var d,g,e,f=a.window;;){if(258>=a.lookahead){C(a);if(258>=a.lookahead&&0===k)return 1;if(0===a.lookahead)break}a.match_length=0;if(3<=a.lookahead&&0<a.strstart&&(g=a.strstart-1,d=f[g],d===f[++g]&&d===f[++g]&&d===f[++g])){for(e=a.strstart+258;d===f[++g]&&d===f[++g]&&d===f[++g]&&d===f[++g]&&d===f[++g]&&d===f[++g]&&d===f[++g]&&d===f[++g]&&g<e;);a.match_length=258-(e-g);a.match_length>a.lookahead&&(a.match_length=a.lookahead)}3<=a.match_length?(d=q._tr_tally(a,
1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(d=q._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(d&&(u(a,!1),0===a.strm.avail_out))return 1}a.insert=0;return 4===k?(u(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(u(a,!1),0===a.strm.avail_out)?1:2}function L(a,k){for(var d;;){if(0===a.lookahead&&(C(a),0===a.lookahead)){if(0===k)return 1;break}a.match_length=0;d=q._tr_tally(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(d&&
(u(a,!1),0===a.strm.avail_out))return 1}a.insert=0;return 4===k?(u(a,!0),0===a.strm.avail_out?3:4):a.last_lit&&(u(a,!1),0===a.strm.avail_out)?1:2}function I(a,k,d,g,e){this.good_length=a;this.max_lazy=k;this.nice_length=d;this.max_chain=g;this.func=e}function T(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=
0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new l.Buf16(1146);this.dyn_dtree=new l.Buf16(122);this.bl_tree=new l.Buf16(78);A(this.dyn_ltree);A(this.dyn_dtree);A(this.bl_tree);this.bl_desc=this.d_desc=
this.l_desc=null;this.bl_count=new l.Buf16(16);this.heap=new l.Buf16(573);A(this.heap);this.heap_max=this.heap_len=0;this.depth=new l.Buf16(573);A(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function G(a){if(!a||!a.state)return w(a,-2);a.total_in=a.total_out=0;a.data_type=2;var k=a.state;k.pending=0;k.pending_out=0;0>k.wrap&&(k.wrap=-k.wrap);k.status=k.wrap?42:113;a.adler=2===k.wrap?0:1;k.last_flush=
0;q._tr_init(k);return 0}function h(a){var k=G(a);0===k&&(a=a.state,a.window_size=2*a.w_size,A(a.head),a.max_lazy_match=P[a.level].max_lazy,a.good_match=P[a.level].good_length,a.nice_match=P[a.level].nice_length,a.max_chain_length=P[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0);return k}function y(a,k,d,g,e,f){if(!a)return-2;var aa=1;-1===k&&(k=6);0>g?(aa=0,g=-g):15<g&&(aa=2,g-=16);if(1>e||9<e||8!==d||8>g||15<
g||0>k||9<k||0>f||4<f)return w(a,-2);8===g&&(g=9);var z=new T;a.state=z;z.strm=a;z.wrap=aa;z.gzhead=null;z.w_bits=g;z.w_size=1<<z.w_bits;z.w_mask=z.w_size-1;z.hash_bits=e+7;z.hash_size=1<<z.hash_bits;z.hash_mask=z.hash_size-1;z.hash_shift=~~((z.hash_bits+3-1)/3);z.window=new l.Buf8(2*z.w_size);z.head=new l.Buf16(z.hash_size);z.prev=new l.Buf16(z.w_size);z.lit_bufsize=1<<e+6;z.pending_buf_size=4*z.lit_bufsize;z.pending_buf=new l.Buf8(z.pending_buf_size);z.d_buf=1*z.lit_bufsize;z.l_buf=3*z.lit_bufsize;
z.level=k;z.strategy=f;z.method=d;return h(a)}var l=v("../utils/common"),q=v("./trees"),B=v("./adler32"),c=v("./crc32"),D=v("./messages");var P=[new I(0,0,0,0,function(a,k){var d=65535;for(d>a.pending_buf_size-5&&(d=a.pending_buf_size-5);;){if(1>=a.lookahead){C(a);if(0===a.lookahead&&0===k)return 1;if(0===a.lookahead)break}a.strstart+=a.lookahead;a.lookahead=0;var g=a.block_start+d;if(0===a.strstart||a.strstart>=g)if(a.lookahead=a.strstart-g,a.strstart=g,u(a,!1),0===a.strm.avail_out)return 1;if(a.strstart-
a.block_start>=a.w_size-262&&(u(a,!1),0===a.strm.avail_out))return 1}a.insert=0;if(4===k)return u(a,!0),0===a.strm.avail_out?3:4;a.strstart>a.block_start&&u(a,!1);return 1}),new I(4,4,8,4,J),new I(4,5,16,8,J),new I(4,6,32,32,J),new I(4,4,16,16,Q),new I(8,16,32,32,Q),new I(8,16,128,128,Q),new I(8,32,128,256,Q),new I(32,128,258,1024,Q),new I(32,258,258,4096,Q)];x.deflateInit=function(a,k){return y(a,k,8,15,8,0)};x.deflateInit2=y;x.deflateReset=h;x.deflateResetKeep=G;x.deflateSetHeader=function(a,k){if(!a||
!a.state||2!==a.state.wrap)return-2;a.state.gzhead=k;return 0};x.deflate=function(a,k){if(!a||!a.state||5<k||0>k)return a?w(a,-2):-2;var d=a.state;if(!a.output||!a.input&&0!==a.avail_in||666===d.status&&4!==k)return w(a,0===a.avail_out?-5:-2);d.strm=a;var g=d.last_flush;d.last_flush=k;if(42===d.status)if(2===d.wrap)a.adler=0,t(d,31),t(d,139),t(d,8),d.gzhead?(t(d,(d.gzhead.text?1:0)+(d.gzhead.hcrc?2:0)+(d.gzhead.extra?4:0)+(d.gzhead.name?8:0)+(d.gzhead.comment?16:0)),t(d,d.gzhead.time&255),t(d,d.gzhead.time>>
8&255),t(d,d.gzhead.time>>16&255),t(d,d.gzhead.time>>24&255),t(d,9===d.level?2:2<=d.strategy||2>d.level?4:0),t(d,d.gzhead.os&255),d.gzhead.extra&&d.gzhead.extra.length&&(t(d,d.gzhead.extra.length&255),t(d,d.gzhead.extra.length>>8&255)),d.gzhead.hcrc&&(a.adler=c(a.adler,d.pending_buf,d.pending,0)),d.gzindex=0,d.status=69):(t(d,0),t(d,0),t(d,0),t(d,0),t(d,0),t(d,9===d.level?2:2<=d.strategy||2>d.level?4:0),t(d,3),d.status=113);else{var e=8+(d.w_bits-8<<4)<<8;e|=(2<=d.strategy||2>d.level?0:6>d.level?
1:6===d.level?2:3)<<6;0!==d.strstart&&(e|=32);d.status=113;r(d,e+(31-e%31));0!==d.strstart&&(r(d,a.adler>>>16),r(d,a.adler&65535));a.adler=1}if(69===d.status)if(d.gzhead.extra){for(e=d.pending;d.gzindex<(d.gzhead.extra.length&65535)&&(d.pending!==d.pending_buf_size||(d.gzhead.hcrc&&d.pending>e&&(a.adler=c(a.adler,d.pending_buf,d.pending-e,e)),m(a),e=d.pending,d.pending!==d.pending_buf_size));)t(d,d.gzhead.extra[d.gzindex]&255),d.gzindex++;d.gzhead.hcrc&&d.pending>e&&(a.adler=c(a.adler,d.pending_buf,
d.pending-e,e));d.gzindex===d.gzhead.extra.length&&(d.gzindex=0,d.status=73)}else d.status=73;if(73===d.status)if(d.gzhead.name){e=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>e&&(a.adler=c(a.adler,d.pending_buf,d.pending-e,e)),m(a),e=d.pending,d.pending===d.pending_buf_size)){var f=1;break}f=d.gzindex<d.gzhead.name.length?d.gzhead.name.charCodeAt(d.gzindex++)&255:0;t(d,f)}while(0!==f);d.gzhead.hcrc&&d.pending>e&&(a.adler=c(a.adler,d.pending_buf,d.pending-e,e));0===f&&
(d.gzindex=0,d.status=91)}else d.status=91;if(91===d.status)if(d.gzhead.comment){e=d.pending;do{if(d.pending===d.pending_buf_size&&(d.gzhead.hcrc&&d.pending>e&&(a.adler=c(a.adler,d.pending_buf,d.pending-e,e)),m(a),e=d.pending,d.pending===d.pending_buf_size)){f=1;break}f=d.gzindex<d.gzhead.comment.length?d.gzhead.comment.charCodeAt(d.gzindex++)&255:0;t(d,f)}while(0!==f);d.gzhead.hcrc&&d.pending>e&&(a.adler=c(a.adler,d.pending_buf,d.pending-e,e));0===f&&(d.status=103)}else d.status=103;103===d.status&&
(d.gzhead.hcrc?(d.pending+2>d.pending_buf_size&&m(a),d.pending+2<=d.pending_buf_size&&(t(d,a.adler&255),t(d,a.adler>>8&255),a.adler=0,d.status=113)):d.status=113);if(0!==d.pending){if(m(a),0===a.avail_out)return d.last_flush=-1,0}else if(0===a.avail_in&&(k<<1)-(4<k?9:0)<=(g<<1)-(4<g?9:0)&&4!==k)return w(a,-5);if(666===d.status&&0!==a.avail_in)return w(a,-5);if(0!==a.avail_in||0!==d.lookahead||0!==k&&666!==d.status){g=2===d.strategy?L(d,k):3===d.strategy?H(d,k):P[d.level].func(d,k);if(3===g||4===g)d.status=
666;if(1===g||3===g)return 0===a.avail_out&&(d.last_flush=-1),0;if(2===g&&(1===k?q._tr_align(d):5!==k&&(q._tr_stored_block(d,0,0,!1),3===k&&(A(d.head),0===d.lookahead&&(d.strstart=0,d.block_start=0,d.insert=0))),m(a),0===a.avail_out))return d.last_flush=-1,0}if(4!==k)return 0;if(0>=d.wrap)return 1;2===d.wrap?(t(d,a.adler&255),t(d,a.adler>>8&255),t(d,a.adler>>16&255),t(d,a.adler>>24&255),t(d,a.total_in&255),t(d,a.total_in>>8&255),t(d,a.total_in>>16&255),t(d,a.total_in>>24&255)):(r(d,a.adler>>>16),
r(d,a.adler&65535));m(a);0<d.wrap&&(d.wrap=-d.wrap);return 0!==d.pending?0:1};x.deflateEnd=function(a){if(!a||!a.state)return-2;var k=a.state.status;if(42!==k&&69!==k&&73!==k&&91!==k&&103!==k&&113!==k&&666!==k)return w(a,-2);a.state=null;return 113===k?w(a,-3):0};x.deflateSetDictionary=function(a,k){var d=k.length;if(!a||!a.state)return-2;var g=a.state;var e=g.wrap;if(2===e||1===e&&42!==g.status||g.lookahead)return-2;1===e&&(a.adler=B(a.adler,k,d,0));g.wrap=0;if(d>=g.w_size){0===e&&(A(g.head),g.strstart=
0,g.block_start=0,g.insert=0);var f=new l.Buf8(g.w_size);l.arraySet(f,k,d-g.w_size,g.w_size,0);k=f;d=g.w_size}f=a.avail_in;var aa=a.next_in;var z=a.input;a.avail_in=d;a.next_in=0;a.input=k;for(C(g);3<=g.lookahead;){k=g.strstart;d=g.lookahead-2;do g.ins_h=(g.ins_h<<g.hash_shift^g.window[k+3-1])&g.hash_mask,g.prev[k&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=k,k++;while(--d);g.strstart=k;g.lookahead=2;C(g)}g.strstart+=g.lookahead;g.block_start=g.strstart;g.insert=g.lookahead;g.lookahead=0;g.match_length=
g.prev_length=2;g.match_available=0;a.next_in=aa;a.input=z;a.avail_in=f;g.wrap=e;return 0};x.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./messages":13,"./trees":14}],9:[function(v,O,x){O.exports=function(){this.os=this.xflags=this.time=this.text=0;this.extra=null;this.extra_len=0;this.comment=this.name="";this.hcrc=0;this.done=!1}},{}],10:[function(v,O,x){O.exports=function(w,A){var m=w.state;var u=w.next_in;var t=w.input;var r=u+(w.avail_in-
5);var E=w.next_out;var C=w.output;A=E-(A-w.avail_out);var J=E+(w.avail_out-257);var Q=m.dmax;var H=m.wsize;var L=m.whave;var I=m.wnext;var T=m.window;var G=m.hold;var h=m.bits;var y=m.lencode;var l=m.distcode;var q=(1<<m.lenbits)-1;var B=(1<<m.distbits)-1;a:do{15>h&&(G+=t[u++]<<h,h+=8,G+=t[u++]<<h,h+=8);var c=y[G&q];b:for(;;){var D=c>>>24;G>>>=D;h-=D;D=c>>>16&255;if(0===D)C[E++]=c&65535;else if(D&16){var P=c&65535;if(D&=15)h<D&&(G+=t[u++]<<h,h+=8),P+=G&(1<<D)-1,G>>>=D,h-=D;15>h&&(G+=t[u++]<<h,h+=
8,G+=t[u++]<<h,h+=8);c=l[G&B];c:for(;;){D=c>>>24;G>>>=D;h-=D;D=c>>>16&255;if(D&16){c&=65535;D&=15;h<D&&(G+=t[u++]<<h,h+=8,h<D&&(G+=t[u++]<<h,h+=8));c+=G&(1<<D)-1;if(c>Q){w.msg="invalid distance too far back";m.mode=30;break a}G>>>=D;h-=D;D=E-A;if(c>D){D=c-D;if(D>L&&m.sane){w.msg="invalid distance too far back";m.mode=30;break a}var a=0;var k=T;if(0===I){if(a+=H-D,D<P){P-=D;do C[E++]=T[a++];while(--D);a=E-c;k=C}}else if(I<D){if(a+=H+I-D,D-=I,D<P){P-=D;do C[E++]=T[a++];while(--D);a=0;if(I<P){D=I;P-=
D;do C[E++]=T[a++];while(--D);a=E-c;k=C}}}else if(a+=I-D,D<P){P-=D;do C[E++]=T[a++];while(--D);a=E-c;k=C}for(;2<P;)C[E++]=k[a++],C[E++]=k[a++],C[E++]=k[a++],P-=3;P&&(C[E++]=k[a++],1<P&&(C[E++]=k[a++]))}else{a=E-c;do C[E++]=C[a++],C[E++]=C[a++],C[E++]=C[a++],P-=3;while(2<P);P&&(C[E++]=C[a++],1<P&&(C[E++]=C[a++]))}}else if(0===(D&64)){c=l[(c&65535)+(G&(1<<D)-1)];continue c}else{w.msg="invalid distance code";m.mode=30;break a}break}}else if(0===(D&64)){c=y[(c&65535)+(G&(1<<D)-1)];continue b}else{D&32?
m.mode=12:(w.msg="invalid literal/length code",m.mode=30);break a}break}}while(u<r&&E<J);P=h>>3;u-=P;h-=P<<3;w.next_in=u;w.next_out=E;w.avail_in=u<r?5+(r-u):5-(u-r);w.avail_out=E<J?257+(J-E):257-(E-J);m.hold=G&(1<<h)-1;m.bits=h}},{}],11:[function(v,O,x){function w(h){return(h>>>24&255)+(h>>>8&65280)+((h&65280)<<8)+((h&255)<<24)}function A(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=
0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new C.Buf16(320);this.work=new C.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function m(h){if(!h||!h.state)return-2;var y=h.state;h.total_in=h.total_out=y.total=0;h.msg="";y.wrap&&(h.adler=y.wrap&1);y.mode=1;y.last=0;y.havedict=0;y.dmax=32768;y.head=null;y.hold=0;y.bits=
0;y.lencode=y.lendyn=new C.Buf32(852);y.distcode=y.distdyn=new C.Buf32(592);y.sane=1;y.back=-1;return 0}function u(h){if(!h||!h.state)return-2;var y=h.state;y.wsize=0;y.whave=0;y.wnext=0;return m(h)}function t(h,y){if(!h||!h.state)return-2;var l=h.state;if(0>y){var q=0;y=-y}else q=(y>>4)+1,48>y&&(y&=15);if(y&&(8>y||15<y))return-2;null!==l.window&&l.wbits!==y&&(l.window=null);l.wrap=q;l.wbits=y;return u(h)}function r(h,y){if(!h)return-2;var l=new A;h.state=l;l.window=null;y=t(h,y);0!==y&&(h.state=
null);return y}function E(h,y,l,q){var B=h.state;null===B.window&&(B.wsize=1<<B.wbits,B.wnext=0,B.whave=0,B.window=new C.Buf8(B.wsize));q>=B.wsize?(C.arraySet(B.window,y,l-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(h=B.wsize-B.wnext,h>q&&(h=q),C.arraySet(B.window,y,l-q,h,B.wnext),(q-=h)?(C.arraySet(B.window,y,l-q,q,0),B.wnext=q,B.whave=B.wsize):(B.wnext+=h,B.wnext===B.wsize&&(B.wnext=0),B.whave<B.wsize&&(B.whave+=h)));return 0}var C=v("../utils/common"),J=v("./adler32"),Q=v("./crc32"),H=v("./inffast"),
L=v("./inftrees"),I=!0,T,G;x.inflateReset=u;x.inflateReset2=t;x.inflateResetKeep=m;x.inflateInit=function(h){return r(h,15)};x.inflateInit2=r;x.inflate=function(h,y){var l,q=new C.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!h||!h.state||!h.output||!h.input&&0!==h.avail_in)return-2;var c=h.state;12===c.mode&&(c.mode=13);var D=h.next_out;var P=h.output;var a=h.avail_out;var k=h.next_in;var d=h.input;var g=h.avail_in;var e=c.hold;var f=c.bits;var aa=g;var z=a;var Y=0;a:for(;;)switch(c.mode){case 1:if(0===
c.wrap){c.mode=13;break}for(;16>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if(c.wrap&2&&35615===e){c.check=0;q[0]=e&255;q[1]=e>>>8&255;c.check=Q(c.check,q,2,0);f=e=0;c.mode=2;break}c.flags=0;c.head&&(c.head.done=!1);if(!(c.wrap&1)||(((e&255)<<8)+(e>>8))%31){h.msg="incorrect header check";c.mode=30;break}if(8!==(e&15)){h.msg="unknown compression method";c.mode=30;break}e>>>=4;f-=4;var N=(e&15)+8;if(0===c.wbits)c.wbits=N;else if(N>c.wbits){h.msg="invalid window size";c.mode=30;break}c.dmax=1<<N;h.adler=
c.check=1;c.mode=e&512?10:12;f=e=0;break;case 2:for(;16>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.flags=e;if(8!==(c.flags&255)){h.msg="unknown compression method";c.mode=30;break}if(c.flags&57344){h.msg="unknown header flags set";c.mode=30;break}c.head&&(c.head.text=e>>8&1);c.flags&512&&(q[0]=e&255,q[1]=e>>>8&255,c.check=Q(c.check,q,2,0));f=e=0;c.mode=3;case 3:for(;32>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.head&&(c.head.time=e);c.flags&512&&(q[0]=e&255,q[1]=e>>>8&255,q[2]=e>>>16&255,q[3]=
e>>>24&255,c.check=Q(c.check,q,4,0));f=e=0;c.mode=4;case 4:for(;16>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.head&&(c.head.xflags=e&255,c.head.os=e>>8);c.flags&512&&(q[0]=e&255,q[1]=e>>>8&255,c.check=Q(c.check,q,2,0));f=e=0;c.mode=5;case 5:if(c.flags&1024){for(;16>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.length=e;c.head&&(c.head.extra_len=e);c.flags&512&&(q[0]=e&255,q[1]=e>>>8&255,c.check=Q(c.check,q,2,0));f=e=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(c.flags&1024){var b=c.length;
b>g&&(b=g);b&&(c.head&&(N=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),C.arraySet(c.head.extra,d,k,b,N)),c.flags&512&&(c.check=Q(c.check,d,b,k)),g-=b,k+=b,c.length-=b);if(c.length)break a}c.length=0;c.mode=7;case 7:if(c.flags&2048){if(0===g)break a;b=0;do N=d[k+b++],c.head&&N&&65536>c.length&&(c.head.name+=String.fromCharCode(N));while(N&&b<g);c.flags&512&&(c.check=Q(c.check,d,b,k));g-=b;k+=b;if(N)break a}else c.head&&(c.head.name=null);c.length=0;c.mode=8;case 8:if(c.flags&
4096){if(0===g)break a;b=0;do N=d[k+b++],c.head&&N&&65536>c.length&&(c.head.comment+=String.fromCharCode(N));while(N&&b<g);c.flags&512&&(c.check=Q(c.check,d,b,k));g-=b;k+=b;if(N)break a}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(c.flags&512){for(;16>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if(e!==(c.check&65535)){h.msg="header crc mismatch";c.mode=30;break}f=e=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0);h.adler=c.check=0;c.mode=12;break;case 10:for(;32>f;){if(0===g)break a;g--;
e+=d[k++]<<f;f+=8}h.adler=c.check=w(e);f=e=0;c.mode=11;case 11:if(0===c.havedict)return h.next_out=D,h.avail_out=a,h.next_in=k,h.avail_in=g,c.hold=e,c.bits=f,2;h.adler=c.check=1;c.mode=12;case 12:if(5===y||6===y)break a;case 13:if(c.last){e>>>=f&7;f-=f&7;c.mode=27;break}for(;3>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.last=e&1;e>>>=1;--f;switch(e&3){case 0:c.mode=14;break;case 1:N=c;if(I){T=new C.Buf32(512);G=new C.Buf32(32);for(b=0;144>b;)N.lens[b++]=8;for(;256>b;)N.lens[b++]=9;for(;280>b;)N.lens[b++]=
7;for(;288>b;)N.lens[b++]=8;L(1,N.lens,0,288,T,0,N.work,{bits:9});for(b=0;32>b;)N.lens[b++]=5;L(2,N.lens,0,32,G,0,N.work,{bits:5});I=!1}N.lencode=T;N.lenbits=9;N.distcode=G;N.distbits=5;c.mode=20;if(6===y){e>>>=2;f-=2;break a}break;case 2:c.mode=17;break;case 3:h.msg="invalid block type",c.mode=30}e>>>=2;f-=2;break;case 14:e>>>=f&7;for(f-=f&7;32>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if((e&65535)!==(e>>>16^65535)){h.msg="invalid stored block lengths";c.mode=30;break}c.length=e&65535;f=e=0;c.mode=
15;if(6===y)break a;case 15:c.mode=16;case 16:if(b=c.length){b>g&&(b=g);b>a&&(b=a);if(0===b)break a;C.arraySet(P,d,k,b,D);g-=b;k+=b;a-=b;D+=b;c.length-=b;break}c.mode=12;break;case 17:for(;14>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.nlen=(e&31)+257;e>>>=5;f-=5;c.ndist=(e&31)+1;e>>>=5;f-=5;c.ncode=(e&15)+4;e>>>=4;f-=4;if(286<c.nlen||30<c.ndist){h.msg="too many length or distance symbols";c.mode=30;break}c.have=0;c.mode=18;case 18:for(;c.have<c.ncode;){for(;3>f;){if(0===g)break a;g--;e+=d[k++]<<
f;f+=8}c.lens[B[c.have++]]=e&7;e>>>=3;f-=3}for(;19>c.have;)c.lens[B[c.have++]]=0;c.lencode=c.lendyn;c.lenbits=7;b={bits:c.lenbits};Y=L(0,c.lens,0,19,c.lencode,0,c.work,b);c.lenbits=b.bits;if(Y){h.msg="invalid code lengths set";c.mode=30;break}c.have=0;c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;;){var n=c.lencode[e&(1<<c.lenbits)-1];b=n>>>24;n&=65535;if(b<=f)break;if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if(16>n)e>>>=b,f-=b,c.lens[c.have++]=n;else{if(16===n){for(N=b+2;f<N;){if(0===g)break a;
g--;e+=d[k++]<<f;f+=8}e>>>=b;f-=b;if(0===c.have){h.msg="invalid bit length repeat";c.mode=30;break}N=c.lens[c.have-1];b=3+(e&3);e>>>=2;f-=2}else if(17===n){for(N=b+3;f<N;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}e>>>=b;f-=b;N=0;b=3+(e&7);e>>>=3;f-=3}else{for(N=b+7;f<N;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}e>>>=b;f-=b;N=0;b=11+(e&127);e>>>=7;f-=7}if(c.have+b>c.nlen+c.ndist){h.msg="invalid bit length repeat";c.mode=30;break}for(;b--;)c.lens[c.have++]=N}}if(30===c.mode)break;if(0===c.lens[256]){h.msg=
"invalid code -- missing end-of-block";c.mode=30;break}c.lenbits=9;b={bits:c.lenbits};Y=L(1,c.lens,0,c.nlen,c.lencode,0,c.work,b);c.lenbits=b.bits;if(Y){h.msg="invalid literal/lengths set";c.mode=30;break}c.distbits=6;c.distcode=c.distdyn;b={bits:c.distbits};Y=L(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,b);c.distbits=b.bits;if(Y){h.msg="invalid distances set";c.mode=30;break}c.mode=20;if(6===y)break a;case 20:c.mode=21;case 21:if(6<=g&&258<=a){h.next_out=D;h.avail_out=a;h.next_in=k;h.avail_in=g;
c.hold=e;c.bits=f;H(h,z);D=h.next_out;P=h.output;a=h.avail_out;k=h.next_in;d=h.input;g=h.avail_in;e=c.hold;f=c.bits;12===c.mode&&(c.back=-1);break}for(c.back=0;;){n=c.lencode[e&(1<<c.lenbits)-1];b=n>>>24;N=n>>>16&255;n&=65535;if(b<=f)break;if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if(N&&0===(N&240)){var F=b;var K=N;for(l=n;;){n=c.lencode[l+((e&(1<<F+K)-1)>>F)];b=n>>>24;N=n>>>16&255;n&=65535;if(F+b<=f)break;if(0===g)break a;g--;e+=d[k++]<<f;f+=8}e>>>=F;f-=F;c.back+=F}e>>>=b;f-=b;c.back+=b;c.length=n;
if(0===N){c.mode=26;break}if(N&32){c.back=-1;c.mode=12;break}if(N&64){h.msg="invalid literal/length code";c.mode=30;break}c.extra=N&15;c.mode=22;case 22:if(c.extra){for(N=c.extra;f<N;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.length+=e&(1<<c.extra)-1;e>>>=c.extra;f-=c.extra;c.back+=c.extra}c.was=c.length;c.mode=23;case 23:for(;;){n=c.distcode[e&(1<<c.distbits)-1];b=n>>>24;N=n>>>16&255;n&=65535;if(b<=f)break;if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if(0===(N&240)){F=b;K=N;for(l=n;;){n=c.distcode[l+((e&
(1<<F+K)-1)>>F)];b=n>>>24;N=n>>>16&255;n&=65535;if(F+b<=f)break;if(0===g)break a;g--;e+=d[k++]<<f;f+=8}e>>>=F;f-=F;c.back+=F}e>>>=b;f-=b;c.back+=b;if(N&64){h.msg="invalid distance code";c.mode=30;break}c.offset=n;c.extra=N&15;c.mode=24;case 24:if(c.extra){for(N=c.extra;f<N;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}c.offset+=e&(1<<c.extra)-1;e>>>=c.extra;f-=c.extra;c.back+=c.extra}if(c.offset>c.dmax){h.msg="invalid distance too far back";c.mode=30;break}c.mode=25;case 25:if(0===a)break a;b=z-a;if(c.offset>
b){b=c.offset-b;if(b>c.whave&&c.sane){h.msg="invalid distance too far back";c.mode=30;break}b>c.wnext?(b-=c.wnext,N=c.wsize-b):N=c.wnext-b;b>c.length&&(b=c.length);F=c.window}else F=P,N=D-c.offset,b=c.length;b>a&&(b=a);a-=b;c.length-=b;do P[D++]=F[N++];while(--b);0===c.length&&(c.mode=21);break;case 26:if(0===a)break a;P[D++]=c.length;a--;c.mode=21;break;case 27:if(c.wrap){for(;32>f;){if(0===g)break a;g--;e|=d[k++]<<f;f+=8}z-=a;h.total_out+=z;c.total+=z;z&&(h.adler=c.check=c.flags?Q(c.check,P,z,D-
z):J(c.check,P,z,D-z));z=a;if((c.flags?e:w(e))!==c.check){h.msg="incorrect data check";c.mode=30;break}f=e=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;32>f;){if(0===g)break a;g--;e+=d[k++]<<f;f+=8}if(e!==(c.total&4294967295)){h.msg="incorrect length check";c.mode=30;break}f=e=0}c.mode=29;case 29:Y=1;break a;case 30:Y=-3;break a;case 31:return-4;default:return-2}h.next_out=D;h.avail_out=a;h.next_in=k;h.avail_in=g;c.hold=e;c.bits=f;if((c.wsize||z!==h.avail_out&&30>c.mode&&(27>c.mode||4!==y))&&E(h,
h.output,h.next_out,z-h.avail_out))return c.mode=31,-4;aa-=h.avail_in;z-=h.avail_out;h.total_in+=aa;h.total_out+=z;c.total+=z;c.wrap&&z&&(h.adler=c.check=c.flags?Q(c.check,P,z,h.next_out-z):J(c.check,P,z,h.next_out-z));h.data_type=c.bits+(c.last?64:0)+(12===c.mode?128:0)+(20===c.mode||15===c.mode?256:0);(0===aa&&0===z||4===y)&&0===Y&&(Y=-5);return Y};x.inflateEnd=function(h){if(!h||!h.state)return-2;var y=h.state;y.window&&(y.window=null);h.state=null;return 0};x.inflateGetHeader=function(h,y){if(!h||
!h.state)return-2;h=h.state;if(0===(h.wrap&2))return-2;h.head=y;y.done=!1;return 0};x.inflateSetDictionary=function(h,y){var l=y.length;if(!h||!h.state)return-2;var q=h.state;if(0!==q.wrap&&11!==q.mode)return-2;if(11===q.mode){var B=J(1,y,l,0);if(B!==q.check)return-3}if(E(h,y,l,l))return q.mode=31,-4;q.havedict=1;return 0};x.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(v,O,x){var w=v("../utils/common"),
A=[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],m=[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],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],t=[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];O.exports=function(r,E,C,J,Q,H,L,I){var T=I.bits,G,h,y,l,q,B,c=0,D=new w.Buf16(16);var P=new w.Buf16(16);
var a,k=0;for(G=0;15>=G;G++)D[G]=0;for(h=0;h<J;h++)D[E[C+h]]++;var d=T;for(y=15;1<=y&&0===D[y];y--);d>y&&(d=y);if(0===y)return Q[H++]=20971520,Q[H++]=20971520,I.bits=1,0;for(T=1;T<y&&0===D[T];T++);d<T&&(d=T);for(G=l=1;15>=G;G++)if(l<<=1,l-=D[G],0>l)return-1;if(0<l&&(0===r||1!==y))return-1;P[1]=0;for(G=1;15>G;G++)P[G+1]=P[G]+D[G];for(h=0;h<J;h++)0!==E[C+h]&&(L[P[E[C+h]]++]=h);if(0===r){var g=a=L;var e=19}else 1===r?(g=A,c-=257,a=m,k-=257,e=256):(g=u,a=t,e=-1);h=q=0;G=T;var f=H;J=d;P=0;var aa=-1;var z=
1<<d;var Y=z-1;if(1===r&&852<z||2===r&&592<z)return 1;for(;;){var N=G-P;if(L[h]<e){var b=0;var n=L[h]}else L[h]>e?(b=a[k+L[h]],n=g[c+L[h]]):(b=96,n=0);l=1<<G-P;T=B=1<<J;do B-=l,Q[f+(q>>P)+B]=N<<24|b<<16|n|0;while(0!==B);for(l=1<<G-1;q&l;)l>>=1;0!==l?(q&=l-1,q+=l):q=0;h++;if(0===--D[G]){if(G===y)break;G=E[C+L[h]]}if(G>d&&(q&Y)!==aa){0===P&&(P=d);f+=T;J=G-P;for(l=1<<J;J+P<y;){l-=D[J+P];if(0>=l)break;J++;l<<=1}z+=1<<J;if(1===r&&852<z||2===r&&592<z)return 1;aa=q&Y;Q[aa]=d<<24|J<<16|f-H|0}}0!==q&&(Q[f+
q]=G-P<<24|4194304);I.bits=d;return 0}},{"../utils/common":3}],13:[function(v,O,x){O.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"}},{}],14:[function(v,O,x){function w(b){for(var n=b.length;0<=--n;)b[n]=0}function A(b,n,F,K,U){this.static_tree=b;this.extra_bits=n;this.extra_base=F;this.elems=K;this.max_length=U;this.has_stree=b&&b.length}function m(b,n){this.dyn_tree=
b;this.max_code=0;this.stat_desc=n}function u(b,n){b.pending_buf[b.pending++]=n&255;b.pending_buf[b.pending++]=n>>>8&255}function t(b,n,F){b.bi_valid>16-F?(b.bi_buf|=n<<b.bi_valid&65535,u(b,b.bi_buf),b.bi_buf=n>>16-b.bi_valid,b.bi_valid+=F-16):(b.bi_buf|=n<<b.bi_valid&65535,b.bi_valid+=F)}function r(b,n,F){t(b,F[2*n],F[2*n+1])}function E(b,n){var F=0;do F|=b&1,b>>>=1,F<<=1;while(0<--n);return F>>>1}function C(b,n,F){var K=Array(16),U=0,W;for(W=1;15>=W;W++)K[W]=U=U+F[W-1]<<1;for(F=0;F<=n;F++)U=b[2*
F+1],0!==U&&(b[2*F]=E(K[U]++,U))}function J(b){var n;for(n=0;286>n;n++)b.dyn_ltree[2*n]=0;for(n=0;30>n;n++)b.dyn_dtree[2*n]=0;for(n=0;19>n;n++)b.bl_tree[2*n]=0;b.dyn_ltree[512]=1;b.opt_len=b.static_len=0;b.last_lit=b.matches=0}function Q(b){8<b.bi_valid?u(b,b.bi_buf):0<b.bi_valid&&(b.pending_buf[b.pending++]=b.bi_buf);b.bi_buf=0;b.bi_valid=0}function H(b,n,F,K){var U=2*n,W=2*F;return b[U]<b[W]||b[U]===b[W]&&K[n]<=K[F]}function L(b,n,F){for(var K=b.heap[F],U=F<<1;U<=b.heap_len;){U<b.heap_len&&H(n,
b.heap[U+1],b.heap[U],b.depth)&&U++;if(H(n,K,b.heap[U],b.depth))break;b.heap[F]=b.heap[U];F=U;U<<=1}b.heap[F]=K}function I(b,n,F){var K=0;if(0!==b.last_lit){do{var U=b.pending_buf[b.d_buf+2*K]<<8|b.pending_buf[b.d_buf+2*K+1];var W=b.pending_buf[b.l_buf+K];K++;if(0===U)r(b,W,n);else{var V=g[W];r(b,V+256+1,n);var ba=B[V];0!==ba&&(W-=e[V],t(b,W,ba));U--;V=256>U?d[U]:d[256+(U>>>7)];r(b,V,F);ba=c[V];0!==ba&&(U-=f[V],t(b,U,ba))}}while(K<b.last_lit)}r(b,256,n)}function T(b,n){var F=n.dyn_tree,K=n.stat_desc.static_tree,
U=n.stat_desc.has_stree,W=n.stat_desc.elems,V,ba=-1;b.heap_len=0;b.heap_max=573;for(V=0;V<W;V++)0!==F[2*V]?(b.heap[++b.heap_len]=ba=V,b.depth[V]=0):F[2*V+1]=0;for(;2>b.heap_len;){var R=b.heap[++b.heap_len]=2>ba?++ba:0;F[2*R]=1;b.depth[R]=0;b.opt_len--;U&&(b.static_len-=K[2*R+1])}n.max_code=ba;for(V=b.heap_len>>1;1<=V;V--)L(b,F,V);R=W;do V=b.heap[1],b.heap[1]=b.heap[b.heap_len--],L(b,F,1),K=b.heap[1],b.heap[--b.heap_max]=V,b.heap[--b.heap_max]=K,F[2*R]=F[2*V]+F[2*K],b.depth[R]=(b.depth[V]>=b.depth[K]?
b.depth[V]:b.depth[K])+1,F[2*V+1]=F[2*K+1]=R,b.heap[1]=R++,L(b,F,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];V=n.dyn_tree;R=n.max_code;K=n.stat_desc.static_tree;U=n.stat_desc.has_stree;W=n.stat_desc.extra_bits;var p=n.stat_desc.extra_base,S=n.stat_desc.max_length,M,X=0;for(M=0;15>=M;M++)b.bl_count[M]=0;V[2*b.heap[b.heap_max]+1]=0;for(n=b.heap_max+1;573>n;n++){var Z=b.heap[n];M=V[2*V[2*Z+1]+1]+1;M>S&&(M=S,X++);V[2*Z+1]=M;if(!(Z>R)){b.bl_count[M]++;var ca=0;Z>=p&&(ca=W[Z-p]);var da=V[2*Z];
b.opt_len+=da*(M+ca);U&&(b.static_len+=da*(K[2*Z+1]+ca))}}if(0!==X){do{for(M=S-1;0===b.bl_count[M];)M--;b.bl_count[M]--;b.bl_count[M+1]+=2;b.bl_count[S]--;X-=2}while(0<X);for(M=S;0!==M;M--)for(Z=b.bl_count[M];0!==Z;)K=b.heap[--n],K>R||(V[2*K+1]!==M&&(b.opt_len+=(M-V[2*K+1])*V[2*K],V[2*K+1]=M),Z--)}C(F,ba,b.bl_count)}function G(b,n,F){var K,U=-1,W=n[1],V=0,ba=7,R=4;0===W&&(ba=138,R=3);n[2*(F+1)+1]=65535;for(K=0;K<=F;K++){var p=W;W=n[2*(K+1)+1];++V<ba&&p===W||(V<R?b.bl_tree[2*p]+=V:0!==p?(p!==U&&b.bl_tree[2*
p]++,b.bl_tree[32]++):10>=V?b.bl_tree[34]++:b.bl_tree[36]++,V=0,U=p,0===W?(ba=138,R=3):p===W?(ba=6,R=3):(ba=7,R=4))}}function h(b,n,F){var K,U=-1,W=n[1],V=0,ba=7,R=4;0===W&&(ba=138,R=3);for(K=0;K<=F;K++){var p=W;W=n[2*(K+1)+1];if(!(++V<ba&&p===W)){if(V<R){do r(b,p,b.bl_tree);while(0!==--V)}else 0!==p?(p!==U&&(r(b,p,b.bl_tree),V--),r(b,16,b.bl_tree),t(b,V-3,2)):10>=V?(r(b,17,b.bl_tree),t(b,V-3,3)):(r(b,18,b.bl_tree),t(b,V-11,7));V=0;U=p;0===W?(ba=138,R=3):p===W?(ba=6,R=3):(ba=7,R=4)}}}function y(b){var n=
4093624447,F;for(F=0;31>=F;F++,n>>>=1)if(n&1&&0!==b.dyn_ltree[2*F])return 0;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return 1;for(F=32;256>F;F++)if(0!==b.dyn_ltree[2*F])return 1;return 0}function l(b,n,F,K){t(b,K?1:0,3);Q(b);u(b,F);u(b,~F);q.arraySet(b.pending_buf,b.window,n,F,b.pending);b.pending+=F}var q=v("../utils/common"),B=[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],c=[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],D=[0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a=Array(576);w(a);var k=Array(60);w(k);var d=Array(512);w(d);var g=Array(256);w(g);var e=Array(29);w(e);var f=Array(30);w(f);var aa,z,Y,N=!1;x._tr_init=function(b){if(!N){var n,F,K,U=Array(16);for(K=F=0;28>K;K++)for(e[K]=F,n=0;n<1<<B[K];n++)g[F++]=K;g[F-1]=K;for(K=F=0;16>K;K++)for(f[K]=F,n=0;n<1<<c[K];n++)d[F++]=K;for(F>>=7;30>K;K++)for(f[K]=F<<7,n=0;n<1<<c[K]-7;n++)d[256+F++]=K;for(n=0;15>=n;n++)U[n]=0;for(n=0;143>=n;)a[2*
n+1]=8,n++,U[8]++;for(;255>=n;)a[2*n+1]=9,n++,U[9]++;for(;279>=n;)a[2*n+1]=7,n++,U[7]++;for(;287>=n;)a[2*n+1]=8,n++,U[8]++;C(a,287,U);for(n=0;30>n;n++)k[2*n+1]=5,k[2*n]=E(n,5);aa=new A(a,B,257,286,15);z=new A(k,c,0,30,15);Y=new A([],D,0,19,7);N=!0}b.l_desc=new m(b.dyn_ltree,aa);b.d_desc=new m(b.dyn_dtree,z);b.bl_desc=new m(b.bl_tree,Y);b.bi_buf=0;b.bi_valid=0;J(b)};x._tr_stored_block=l;x._tr_flush_block=function(b,n,F,K){var U=0;if(0<b.level){2===b.strm.data_type&&(b.strm.data_type=y(b));T(b,b.l_desc);
T(b,b.d_desc);G(b,b.dyn_ltree,b.l_desc.max_code);G(b,b.dyn_dtree,b.d_desc.max_code);T(b,b.bl_desc);for(U=18;3<=U&&0===b.bl_tree[2*P[U]+1];U--);b.opt_len+=3*(U+1)+14;var W=b.opt_len+3+7>>>3;var V=b.static_len+3+7>>>3;V<=W&&(W=V)}else W=V=F+5;if(F+4<=W&&-1!==n)l(b,n,F,K);else if(4===b.strategy||V===W)t(b,2+(K?1:0),3),I(b,a,k);else{t(b,4+(K?1:0),3);n=b.l_desc.max_code+1;F=b.d_desc.max_code+1;U+=1;t(b,n-257,5);t(b,F-1,5);t(b,U-4,4);for(W=0;W<U;W++)t(b,b.bl_tree[2*P[W]+1],3);h(b,b.dyn_ltree,n-1);h(b,b.dyn_dtree,
F-1);I(b,b.dyn_ltree,b.dyn_dtree)}J(b);K&&Q(b)};x._tr_tally=function(b,n,F){b.pending_buf[b.d_buf+2*b.last_lit]=n>>>8&255;b.pending_buf[b.d_buf+2*b.last_lit+1]=n&255;b.pending_buf[b.l_buf+b.last_lit]=F&255;b.last_lit++;0===n?b.dyn_ltree[2*F]++:(b.matches++,n--,b.dyn_ltree[2*(g[F]+256+1)]++,b.dyn_dtree[2*(256>n?d[n]:d[256+(n>>>7)])]++);return b.last_lit===b.lit_bufsize-1};x._tr_align=function(b){t(b,2,3);r(b,256,a);16===b.bi_valid?(u(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=
b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)}},{"../utils/common":3}],15:[function(v,O,x){O.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(v,O,x){x=v("./lib/utils/common").assign;var w=v("./lib/deflate"),A=v("./lib/inflate");v=v("./lib/zlib/constants");var m={};x(m,w,A,v);O.exports=m},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,
"./lib/zlib/constants":6}]},{},[])("/")});(function(){function v(){var y=this,l;this.setMessageType=function(q){l=q};this.getMessageType=function(){return l};this.isServerMessage=function(){throw Error("Override me.");};this.isClientMessage=function(){throw Error("Override me.");};this.toJson=function(){throw Error("Override me.");};this.fromJson=function(q){throw Error("Override me.");};this.protectedMethod={toJson:function(){return{messageType:y.getMessageType()}}}}function O(){v.call(this);this.isServerMessage=function(){return!1};this.isClientMessage=
function(){return!0}}function x(){O.call(this);var y=this.protectedMethod;this.setMessageType(T.ClientPing);var l;this.setClientIDs=function(q){l=q||[]};this.getClientIDs=function(){return l};this.toJson=function(){var q=y.toJson();q.clientIDs=l;return q};this.fromJson=function(q){l=q.clientIDs}}function w(){O.call(this);var y=this.protectedMethod;this.setMessageType(T.ClientRemoteCall);var l,q,B,c,D,P;this.getAppID=function(){return l};this.setAppID=function(a){l=a};this.getClientID=function(){return q};
this.getClientIDs=function(){return[q]};this.setClientID=function(a){q=a};this.getCallID=function(){return B};this.setCallID=function(a){B=a};this.getOrderID=function(){return c};this.setOrderID=function(a){c=a};this.getServiceType=function(){return D};this.setServiceType=function(a){D=a};this.getParams=function(){return P};this.setParams=function(a){P=a};this.toJson=function(){var a=y.toJson();l&&(a.appID=l);a.clientID=q;a.callID=B;c&&(a.orderID=c);a.serviceType=D;a.params=P;return a};this.fromJson=
function(a){a.appID&&(l=a.appID);q=a.clientID;B=a.callID;a.orderID&&(c=a.orderID);D=a.serviceType;P=a.params}}function A(){O.call(this);var y=this.protectedMethod;this.setMessageType(T.ServerRemoteCallAck);var l,q;this.getClientID=function(){return l};this.setClientID=function(B){l=B};this.getCallID=function(){return q};this.setCallID=function(B){q=B};this.toJson=function(){var B=y.toJson();B.clientID=l;B.callID=q;return B};this.fromJson=function(B){l=B.clientID;q=B.callID}}function m(){A.call(this);
this.setMessageType(T.ServerChannelAck)}function u(){O.call(this);this.setMessageType(T.ClientRemoteCallCancel);var y=this.protectedMethod,l,q;this.getClientID=function(){return l};this.getClientIDs=function(){return[l]};this.setClientID=function(B){l=B};this.getCallID=function(){return q};this.setCallID=function(B){q=B};this.toJson=function(){var B=y.toJson();B.clientID=l;B.callID=q;return B};this.fromJson=function(B){l=B.clientID;q=B.callID}}function t(){O.call(this);var y=this.protectedMethod;
this.setMessageType(T.ClientClosed);var l;this.setClientIDs=function(q){l=q};this.getClientIDs=function(){return l};this.toJson=function(){var q=y.toJson();q.clientIDs=l;return q};this.fromJson=function(q){l=q.clientIDs}}function r(){O.call(this);var y=this.protectedMethod;this.setMessageType(T.ClientPolling);var l,q;this.setClientIDs=function(B){l=B};this.setClientIDAndCallIDs=function(B){q=B};this.toJson=function(){var B=y.toJson();B.clientIDs=l;B.clientIDAndCallIDs=q;return B};this.fromJson=function(B){l=
B.clientIDs;q=B.clientIDAndCallIDs}}function E(){v.call(this);this.getClientID=function(){throw Error("Override me.");};this.isServerMessage=function(){return!0};this.isClientMessage=function(){return!1}}function C(){E.call(this);var y=this.protectedMethod;this.setMessageType(T.ClientControlAck);var l;this.getControlType=function(){return l};this.toJson=function(){var q=y.toJson();q.controlType=l;return q};this.fromJson=function(q){l=q.controlType};this.getClientID=function(){return null}}function J(){E.call(this);
var y=this.protectedMethod;this.setMessageType(T.ServerPong);var l;this.getClientID=function(){return l};this.toJson=function(){var q=y.toJson();q.clientID=l;return q};this.fromJson=function(q){l=q.clientID}}function Q(){E.call(this);var y=this.protectedMethod;this.setMessageType(T.ServerRemoteCall);var l,q,B,c;this.getClientID=function(){return l};this.setClientID=function(D){l=D};this.getCallID=function(){return q};this.setCallID=function(D){q=D};this.getOrderID=function(){return B};this.setOrderID=
function(D){B=D};this.getData=function(){return c};this.setData=function(D){c=D};this.toJson=function(){var D=y.toJson();D.clientID=l;D.callID=q;B&&(D.orderID=B);D.data=c;return D};this.fromJson=function(D){l=D.clientID;q=D.callID;D.orderID&&(B=D.orderID);c=D.data}}function H(){E.call(this);var y=this.protectedMethod;this.setMessageType(T.ClientRemoteCallAck);var l,q;this.getClientID=function(){return l};this.getCallID=function(){return q};this.toJson=function(){var B=y.toJson();B.clientID=l;B.callID=
q;return B};this.fromJson=function(B){l=B.clientID;q=B.callID}}function L(){E.call(this);var y=this.protectedMethod;this.setMessageType(T.ServerChannel);var l,q,B,c,D;this.getClientID=function(){return l};this.setClientID=function(P){l=P};this.getClientID=function(){return l};this.getCallID=function(){return q};this.getChannel=function(){return B};this.setChannel=function(P){B=P};this.getData=function(){return D};this.setData=function(P){D=P};this.toJson=function(){var P=y.toJson();P.clientID=l;P.callID=
q;P.channel=B;c&&(P.timestamp=c);P.data=D;return P};this.fromJson=function(P){l=P.clientID;q=P.callID;B=P.channel;P.timestamp&&(c=P.timestamp);D=P.data}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.framework&&(com.kingdee.bos.qing.framework={});"undefined"==typeof com.kingdee.bos.qing.framework.remote&&
(com.kingdee.bos.qing.framework.remote={});var I=com.kingdee.bos.qing.framework.remote;I.PostMessage=function(){var y,l;this.isRequestPostMessageType=function(){return"Request"==y};this.isResponsePostMessageType=function(){return"Response"==y};this.setRequestPostMessageType=function(){y="Request"};this.setResponsePostMessageType=function(){y="Response"};this.isPostMessagePong=function(){return"PostMessagePong"==l};this.isPostMessagePing=function(){return"PostMessagePing"==l};this.setPostMessagePong=
function(){l="PostMessagePong"};this.setPostMessagePing=function(){l="PostMessagePing"};this.isShowMonitor=function(){return"ShowMonitor"==l};this.isCloseMonitor=function(){return"CloseMonitor"==l};this.getContent=function(){return l};this.setContent=function(q){l=q};this.isArray=function(){return l instanceof Array};this.toJson=function(){var q={};q.QingPostMessageType=y;if(l instanceof Array){for(var B=[],c=0;c<l.length;c++){var D=l[c].toJson();B.push(D)}q.QingPostMessageContent=B}else q.QingPostMessageContent=
"string"==typeof l?l:[l.toJson()];return q};this.fromJson=function(q){y=q.QingPostMessageType;l=h.fromJson(q.QingPostMessageContent)||q.QingPostMessageContent}};I.ClientPingMessage=x;I.ClientRemoteCallMessage=w;I.ServerRemoteCallAckMessage=A;I.ServerChannelAckMessage=m;I.ClientRemoteCallCancelMessage=u;I.ClientClosedMessage=t;I.ClientPollingMessage=r;I.AbstractServerMessage=E;I.ClientControlAckMessage=C;I.ServerPongMessage=J;I.ServerRemoteCallMessage=Q;I.ServerChannelMessage=L;I.ClientRemoteCallAckMessage=
H;var T={},G={},h=new function(){var y=function(l){var q=l.messageType;return q&&(q=G[q])?(q=new q,q.fromJson(l),q):null};this.fromJson=function(l){if(l){if(l instanceof Array){for(var q=[],B=0;B<l.length;B++){var c=y(l[B]);c&&q.push(c)}return q}return y(l)}return null}};I.MessageUtil=h;T.ClientPing="ClientPing";G[T.ClientPing]=x;T.ClientRemoteCall="ClientRemoteCall";G[T.ClientRemoteCall]=w;T.ServerRemoteCallAck="ServerRemoteCallAck";G[T.ServerRemoteCallAck]=A;T.ServerChannelAck="ServerChannelAck";
G[T.ServerChannelAck]=m;T.ClientRemoteCallCancel="ClientRemoteCallCancel";G[T.ClientRemoteCallCancel]=u;T.ClientClosed="ClientClosed";G[T.ClientClosed]=t;T.ClientPolling="ClientPolling";G[T.ClientPolling]=r;T.ClientControlAck="ClientControlAck";G[T.ClientControlAck]=C;T.ServerPong="ServerPong";G[T.ServerPong]=J;T.ServerRemoteCall="ServerRemoteCall";G[T.ServerRemoteCall]=Q;T.ClientRemoteCallAck="ClientRemoteCallAck";G[T.ClientRemoteCallAck]=H;T.ServerWebsocketIsReady="ServerWebsocketIsReady";G[T.ServerWebsocketIsReady]=
function(){E.call(this);this.setMessageType(T.ServerWebsocketIsReady);this.getClientID=function(){return null}};T.ServerChannel="ServerChannel";G[T.ServerChannel]=L;I.MessageType=T})();(function(){"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.framework&&(com.kingdee.bos.qing.framework={});"undefined"==typeof com.kingdee.bos.qing.framework.remote&&(com.kingdee.bos.qing.framework.remote={});com.kingdee.bos.qing.framework.remote.CallModel=new function(){var v=this,O=!1,x=[],w={},
A=!1;this.getCallIDStacks=function(m,u){var t=[];if(0==x.length)return t;for(var r=0;r<x.length;r++){var E=w[x[r]];if(E){var C=v.getStatue(E);if("\u5168\u90e8"===m||m===C)("\u5168\u90e8"===m||"\u6210\u529f"===m)&&v.getCostTime(E,!1)<u||t.push(E)}}return t};this.getStatue=function(m){return m.response?"\u6210\u529f":m.cancel?"\u53d6\u6d88":"\u7b49\u5f85\u4e2d"};this.getCostTime=function(m,u){return m.response?(m=m.endTimeStap-m.startTimeStap,u?v.parseCostTime(m):m):u?"":0};this.parseCostTime=function(m){var u=
"",t=Math.floor(m/36E5);0<t&&(u=u+t+"h");m%=36E5;t=Math.floor(m/6E4);0<t&&(u=u+t+"m");m%=6E4;t=Math.floor(m/1E3);0<t&&(u=u+t+"s");m%=1E3;0<m&&(u=u+m+"ms");return u};this.shortServiceType=function(m){var u=(m=m.serviceType)?m.lastIndexOf("/"):-1;return 0<=u?m.substring(u+1):m};this.recordSendMessage=function(m,u){m=u.messageType;if(!u.serviceType||!u.serviceType.endsWith("/qing_rpt/launcher.do")&&!u.serviceType.endsWith("/qing/loadBehaviorContext.do"))if("ClientRemoteCall"==m){if(O){var t=u.clientID,
r=u.callID;x.push(r);m=w[r];m||(m={},w[r]=m);m.clientID=t;m.callID=r;m.serviceType=u.serviceType;m.startTimeStap=(new Date).getTime();m.request=u.params;A=!0}}else if("ClientRemoteCallCancel"===m){r=u.callID;if(m=w[r])m.cancel=!0,m.endTimeStap=(new Date).getTime();A=!0}else if("ClientClosed"===m){u=u.clientIDs;t=(new Date).getTime();r=0;for(var E=x.length;r<E;r++)m=w[x[r]],0<=u.indexOf(m.clientID)&&(m.cancel=!0,m.endTimeStap=t);A=!0}};this.recordReceiveMessage=function(m,u){m=(new Date).getTime();
for(var t=0;t<u.length;t++){var r=u[t];if("ServerRemoteCall"===r.messageType){var E=r.data;(r=w[r.callID])&&E&&!r.endTimeStap&&!r.cancel&&(A=!0,r.response=E,r.endTimeStap=m)}}};this.isStartRecord=function(){return O};this.startRecord=function(){O=!0};this.stopRecord=function(){O=!1};this.isEmpty=function(){return 0===x.length};this.isModelChanged=function(){return A};this.resetModelChangedFlag=function(){A=!1};this.setModelChangedFlag=function(){A=!0};this.clearRecord=function(){w={};x=[];A=!0};this.close=
function(){v.stopRecord();v.clearRecord()}}})();(function(){function v(){var a=this,k,d,g,e,f=!1;this.setResponseCallback=function(z){k=z};this.setGetPingListFun=function(z){d=z};this.setResetPingListFun=function(z){g=z};this.stopPingPong=function(){e&&(m.clearInterval(e),e=null,f=!1)};this.startPingPong=function(){e||(e=m.setInterval(aa,2E4),aa())};var aa=function(){if(e&&d&&!f){var z=d();if(z&&0!=z.length){f=!0;g&&g();var Y=new Q;Y.setClientIDs(z);a.request(Y,function(N){f=!1})}}};this.connect=function(){throw Error("Override me.");};this.request=
function(z,Y){throw Error("Override me.");};this.protectedMethod={recordSendMessage:function(z,Y){u.recordSendMessage(z,Y)},recordReceiveMessage:function(z,Y){var N=E.fromJson(Y);if(f&&N&&N instanceof Array)for(var b=0;b<N.length;b++)if(N[b]instanceof y){f=!1;break}N&&k&&k(N);u.recordReceiveMessage(z,Y)}}}function O(a){v.call(this);var k=this.protectedMethod,d=[],g=[],e=0;this.connect=function(){m.setInterval(function(){0!=d.length&&(100<(new Date).getTime()-e||10<d.length)&&(e=0,f())},100)};this.request=
function(z,Y){0==d.length&&(e=(new Date).getTime());d.push(z);g.push(Y);100<(new Date).getTime()-e&&(e=0,f())};var f=function(){var z=d;d=[];var Y=g;g=[];aa(z,Y)},aa=function(z,Y){for(var N=[],b=0;b<z.length;b++){var n=z[b];n=D(JSON.stringify(n.toJson()));N.push(n)}var F=function(){for(var U=0;U<Y.length;U++){var W=Y[U],V=z[U];W&&V&&W(V)}},K=function(U){for(var W=0;W<z.length;W++){var V=Y[W],ba=z[W];ba instanceof I?(V=new l,V.setClientID(ba.getClientID()),V.setCallID(ba.getCallID()),V.setData(U),
k.recordReceiveMessage("POST",[V.toJson()])):V(ba)}};b={type:"POST",dataType:"json",contentType:"application/json"};b.url=a;b.data=JSON.stringify(N);b.success=function(U){var W;r&&(W=r(U));W?K(W):k.recordReceiveMessage("POST",U)};b.error=function(U,W,V){if(0==U.status)F();else if(503==U.status)F();else if(504==U.status)F();else if("timeout"==W)F();else{var ba;"parsererror"==W&&t&&(ba=t(U));ba||(ba={errorCode:U.status,errorMessage:W});K(ba)}};$.ajax(b);for(b=0;b<z.length;b++)n=z[b],k.recordSendMessage("POST",
n.toJson())};this.isConnected=function(){return!0}}function x(a){v.call(this);var k=this,d=this.protectedMethod,g=!1,e=null,f=0,aa=0,z=!1,Y;this.setChangePingPongFun=function(p){Y=p};this.connect=function(){if("WebSocket"in window)e=new WebSocket(a);else if("MozWebSocket"in window)e=new MozWebSocket(a);else throw Error("Unsupport WebSocket");e.onopen=W;e.onerror=V;e.onmessage=ba;e.onclose=R;f++};this.request=function(p,S){if(e&&1==e.readyState){var M=p.toJson();N(M);d.recordSendMessage("WS",M);M=
p.getMessageType();var X=(new Date).getTime();n[M]=p;F[M]=X;K[M]=S;b||(b=m.setInterval(U,1E3))}else S(p)};var N=function(p){p=D(JSON.stringify(p));try{e&&e.send(p)}catch(S){window.console&&console.error(S)}},b,n={},F={},K={},U=function(){var p=Object.keys(n);if(0<p.length)for(var S=!1,M=0;M<p.length;M++){var X=p[M],Z=n[X],ca=F[X]||0;Z&&2E3<(new Date).getTime()-ca&&(!S&&e&&1!=e.readyState&&(f=0,e&&e.close(),e=null,S=!0),ca=K[X],delete n[X],delete K[X],delete F[X],ca&&ca(Z))}else m.clearInterval(b),
b=null};this.isConnected=function(){return e&&1==e.readyState?g:!1};var W=function(p){console&&console.log("onopen: ",p)},V=function(p){console&&console.log("onerror: ",p);g=!1},ba=function(p){if("string"!=typeof p.data||"{"!=p.data[0]&&"["!=p.data[0]){var S={};try{var M=c(p.data);S=JSON.parse(M)}catch(X){console&&console.warn(X.message+" Message:"+M+" MessageContent:"+p.data);return}f=0;"ServerWebsocketIsReady"==S.messageType?(g=!0,Y&&Y()):("ServerPong"==S.messageType?(p=J.ClientPing,delete n[p],
delete K[p],delete F[p]):"ClientControlAck"==S.messageType?(p=S.controlType,delete n[p],delete K[p],delete F[p]):"ServerRemoteCall"==S.messageType?(p=new G,p.setClientID(S.clientID),p.setCallID(S.callID),N(p.toJson())):"ServerChannel"==S.messageType&&(p=new h,p.setClientID(S.clientID),p.setCallID(S.callID),N(p.toJson())),d.recordReceiveMessage("WS",[S]))}},R=function(p){aa++;console&&console.log("onclose: ",p);g=!1;e=null;Y&&Y();var S=p.code;1E3!=S&&1005!=S&&1006!=S&&(p=p.reason,4001==S?(console&&
console.info("\u975e\u6cd5Session\u6216\u8005Session\u8d85\u65f6"),d.recordReceiveMessage("WS",[{errorCode:S,errorMessage:p}])):z||(3>f||6>aa?setTimeout(k.connect,Math.min(1E3*Math.round(Math.random()*Math.pow(2,f)),6E4)):(z=!0,f=0,e&&e.close(),e=null)))}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.framework&&
(com.kingdee.bos.qing.framework={});"undefined"==typeof com.kingdee.bos.qing.framework.remote&&(com.kingdee.bos.qing.framework.remote={});var w=com.kingdee.bos.qing.framework.remote,A=com.kingdee.bos.qing.framework.common.WindowMessageHelper,m=com.kingdee.bos.qing.framework.common.WorkerHelper,u=w.CallModel,t,r,E=w.MessageUtil,C=w.PostMessage,J=w.MessageType,Q=w.ClientPingMessage,H=w.ClientPollingMessage,L=w.ClientRemoteCallCancelMessage,I=w.ClientRemoteCallMessage,T=w.ClientClosedMessage,G=w.ServerRemoteCallAckMessage,
h=w.ServerChannelAckMessage,y=w.ServerPongMessage,l=w.ServerRemoteCallMessage,q=w.ServerChannelMessage,B=w.ClientControlAckMessage,c=function(a){a=window.atob?window.atob(a):com.kingdee.bos.qing.common.Base64Util.decode(a);a=a.split("").map(function(g){return g.charCodeAt(0)});a=new Uint8Array(a);var k=pako.inflate(a);a="";var d;for(d=0;d<k.length/8192;d++)a+=String.fromCharCode.apply(null,k.subarray(8192*d,8192*(d+1)));a+=String.fromCharCode.apply(null,k.subarray(8192*d));return decodeURIComponent(a)},
D=function(a){return window.btoa?(a=pako.gzip(encodeURIComponent(a),{to:"string"}),window.btoa(a)):com.kingdee.bos.qing.common.Base64Util.encode(a)},P=new function(){var a=0;this.incrementAndGet=function(){return++a}};w.QingMessageSenderProxy=function(){var a,k,d,g,e={},f={},aa;this.setXmlHttpRequestErrorParser=function(p){t=p};this.setXmlHttpRequestSuccessParser=function(p){r=p};this.start=function(p,S){a=p;k=S;if(!a&&!k)throw Error("sWebSocketUrl and sPollingUrl is null");k&&(g=new O(k),g.setResponseCallback(N),
g.setGetPingListFun(K),g.setResetPingListFun(U),g.connect(),z());if(p=a)p=window.navigator.userAgent.toLowerCase(),p=0<=p.indexOf("msie")||0<=p.indexOf("trident")||!("WebSocket"in window||"MozWebSocket"in window)?!1:!0;p&&(d=new x(a),d.setResponseCallback(N),d.setGetPingListFun(K),d.setResetPingListFun(U),d.setChangePingPongFun(z),d.connect());if(!d&&!g)throw Error("_oQingWebSocketRemoteCall and _oQingPollingRemoteCall is null");A.setRemoteCallListener(Y);N("PostMessagePong");aa||(e={},aa=m.setInterval(F,
1E3))};var z=function(){d?d.isConnected()?(g.stopPingPong(),d.startPingPong()):(d.stopPingPong(),g.startPingPong()):g.startPingPong()},Y=function(p){var S=new C;S.fromJson(p);if(S.isCloseMonitor())u.close();else if(S.isRequestPostMessageType())for(p=S.getContent(),S=0;S<p.length;S++){var M=p[S];if(M instanceof Q){var X=(new Date).getTime();M=M.getClientIDs();for(var Z=0;Z<M.length;Z++)e[M[Z]]=X}else if(M instanceof L||M instanceof I)Z=M.getClientID(),X=(new Date).getTime(),e[Z]=X,X=M.getCallID(),
X=Z+"|"+X,M instanceof I?(f[X]=M,M.setOrderID(P.incrementAndGet())):M instanceof L&&delete f[X],g.request(M,b)}!ba&&W()&&(ba=m.setInterval(R,500),V=!1)},N=function(p){var S=null;if(p instanceof Array){for(var M=[],X=0;X<p.length;X++){var Z=p[X];if(Z instanceof q)M.push(Z);else if(Z instanceof l){M.push(Z);var ca=Z.getClientID();Z=Z.getCallID();delete f[ca+"|"+Z]}else Z instanceof B&&Z.getControlType()==J.ClientPolling&&(V=!1);10<M.length&&(S=new C,S.setResponsePostMessageType(),S.setContent(M),parent.postMessage(JSON.stringify(S.toJson()),
"*"),S=null,M=[])}0<M.length&&(S=new C,S.setResponsePostMessageType(),S.setContent(M))}else S=new C,S.setResponsePostMessageType(),S.setContent(p);S&&parent.postMessage(JSON.stringify(S.toJson()),"*");ba&&!W()&&(m.clearInterval(ba),ba=null,V=!1)},b=function(p){if(p instanceof Q){var S=[];p=p.getClientIDs();for(var M=0;M<p.length;M++){var X=new y;X.setClientID(p[M]);S.push(X)}N(S)}else if(p instanceof L||p instanceof I)S=new l,S.setClientID(p.getClientID()),S.setCallID(p.getCallID()),S.setData({errorCode:0,
errorMessage:"You are offline!Please check your network."}),N([S]);else if(p instanceof T)for(p=p.getClientIDs(),M=0;M<p.length;M++)e[p[M]]=0},n=function(){for(var p=[],S=(new Date).getTime(),M=Object.keys(e),X=0;X<M.length;X++){var Z=M[X];6E4<S-e[Z]&&p.push(Z)}return p},F=function(){var p=n();if(0<p.length){for(var S={},M=0;M<p.length;M++){var X=p[M];S[X]=!0;delete e[X]}var Z=Object.keys(f);for(M=0;M<Z.length;M++){var ca=Z[M];X=f[ca];X instanceof I&&(X=X.getClientID(),S[X]&&delete f[ca])}S=new T;
S.setClientIDs(p);(d?d.isConnected()?d:g:g).request(S,function(){for(var da=0;da<p.length;da++)e[p[da]]=0})}},K=function(){return Object.keys(e)},U=function(){e={}},W=function(){var p=Object.keys(f);return p&&0<p.length},V=!1,ba,R=function(){if(ba&&!V&&W()){V=!0;var p=Object.keys(f),S=K(),M=new H;M.setClientIDAndCallIDs(p);M.setClientIDs(S);(d?d.isConnected()?d:g:g).request(M,function(){V=!1})}}}})();(function(){function v(){J.AbstractTabPane.call(this);var G,h,y,l,q,B,c,D,P,a,k,d;this.getTitle=function(){return"\u57fa\u672c\u4fe1\u606f"};this.getJqUi=function(){if(!G){G=$("<div>");A.layoutCtrlWithLRTB(G,0,0,null,0,0,null);var e=10,f=new r;f.setText("\u9875\u9762ID:");f=f.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,10,null,60,e,null,22);h=new r;f=h.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,e,null,22);e+=32;f=new r;f.setText("\u8bf7\u6c42ID:");f=f.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,
10,null,60,e,null,22);y=new r;f=y.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,e,null,22);e+=32;f=new r;f.setText("\u8bf7\u6c42\u540d\u79f0:");f=f.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,10,null,60,e,null,22);l=new r;f=l.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,e,null,22);e+=32;f=new r;f.setText("\u8bf7\u6c42\u65b9\u6cd5:");f=f.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,10,null,60,e,null,22);q=new r;f=q.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,
e,null,22);e+=32;f=new r;f.setText("\u72b6\u6001:");f=f.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,10,null,60,e,null,22);B=new r;f=B.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,e,null,22);e+=32;f=new r;f.setText("\u5f00\u59cb\u65f6\u95f4:");f=f.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,10,null,60,e,null,22);c=new r;f=c.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,e,null,22);e+=32;D=new r;D.setText("\u7ed3\u675f\u65f6\u95f4:");f=D.getJqUi();f.appendTo(G);A.layoutCtrlWithLRTB(f,
10,null,60,e,null,22);P=new r;var aa=P.getJqUi();f.hide();aa.appendTo(G);A.layoutCtrlWithLRTB(aa,80,0,null,e,null,22);e+=32;a=new r;a.setText("\u8017\u8d39\u65f6\u95f4:");f=a.getJqUi();f.hide();f.appendTo(G);A.layoutCtrlWithLRTB(f,10,null,60,e,null,22);k=new r;f=k.getJqUi();f.hide();f.appendTo(G);A.layoutCtrlWithLRTB(f,80,0,null,e,null,22)}return G};this.into=function(){g()};var g=function(){if(d){h.setText(d.clientID);y.setText(d.callID);l.setText(I.shortServiceType(d));q.setText(d.request.remoteMethod);
var e=d.startTimeStap;c.setText(T.format(e));var f=d.endTimeStap;f?(B.setText("\u6210\u529f"),D.setText("\u7ed3\u675f\u65f6\u95f4\uff1a"),P.setText(T.format(f)),k.setText(I.parseCostTime(f-e)),D.getJqUi().show(),P.getJqUi().show(),a.getJqUi().show(),k.getJqUi().show()):(d.cancel?B.setText("\u53d6\u6d88"):B.setText("\u8fdb\u884c\u4e2d"),D.getJqUi().hide(),P.getJqUi().hide(),a.getJqUi().hide(),k.getJqUi().hide())}};this.setValue=function(e){d=e;g()}}function O(G){J.AbstractTabPane.call(this);var h,
y;this.getTitle=function(){return G};this.getJqUi=function(){h||(h=$("<textarea>"),A.layoutCtrlWithLRTB(h,0,0,null,0,0,null),h.css({width:"100%",height:"100%","box-sizing":"border-box",border:"0px",resize:"none"}),h.attr("readonly",!0));return h};this.into=function(){l()};var l=function(){h&&(y?h.val(JSON.stringify(y,null,2)):h.val(""))};this.setValue=function(q){y=q;l()}}function x(){function G(R){KTDefaultCellRender.call(this,R);var p=this,S=this.paintCellUI;this.paintCellUI=function(M,X){var Z=
p.getCurrentRowIdx(),ca=p.getCurrentColIdx();Z<u.getHeadRowCount()?S(M,X):3===ca?(Z=p.getCurrentRow(),X=p.getCurrentCol().getWidth()-2,ca=Z.getUserObject(),Z=ca.startTimeStap,(ca=ca.endTimeStap)||(ca=b),ca=Math.ceil((ca-Z)/n*X),2>ca&&(ca=2),X=Math.ceil((Z-N)/n*X),Z=$("<div>"),A.layoutCtrlWithLRTB(Z,X,null,ca,10,10,null),Z.css({backgroundColor:"#333","line-height":"28px","border-radius":"3px"}),Z.appendTo(M)):S(M,X)}}function h(){KTableUIDraggableAdjustingHandler.CustomExpendor.call(this);this.isColumnDraggable=
function(R,p){return!1};this.getTailBlankForDragging=function(){return 0}}var y=this,l,q,B,c,D,P,a,k,d,g,e,f="\u5168\u90e8",aa=0,z=0,Y=null,N=-1,b=-1,n=-1;(new m).setFormatString("yyyy-MM-dd HH:mm:ss");this.getTitle=function(){return"\u7f51\u7edc\u8bf7\u6c42"};this.getJqUi=function(){if(!l){l=$("<div>");var R=new t,p=R.getJqUi();p.appendTo(l);A.layoutCtrlWithLRTB(p,0,0,null,1,null,40);var S=I.isStartRecord()?"\u6682\u505c":"\u5f00\u59cb";B=R.createButton(p,!1,function(){I.isStartRecord()?I.stopRecord():
(I.startRecord(),e=setInterval(y.updateUI,1E3));B.setText(I.isStartRecord()?"\u6682\u505c":"\u5f00\u59cb");y.updateUI()},S,S);R.createButton(p,!1,V,"\u6e05\u7a7a","\u6e05\u7a7a");R=F();R.appendTo(l);A.layoutCtrlWithLRTB(R,0,0,null,41,null,40);g=ba();A.layoutCtrlWithLRTB(g,0,0,null,90,0,null);g.appendTo(l);K();R=q.getJqUi();R.hide();A.layoutCtrlWithLRTB(R,0,0,null,90,0,null);R.appendTo(l)}return l};var F=function(){var R=$("<div>");R.css({"border-bottom":"1px solid #ddd"});var p=new r;p.setText("\u72b6\u6001\uff1a");
p=p.getJqUi();p.appendTo(R);A.layoutCtrlWithLRTB(p,10,null,40,7,8,null);p=new C;p.setItemModels(["\u5168\u90e8","\u7b49\u5f85\u4e2d","\u6210\u529f","\u53d6\u6d88"]);p.setSelected("\u5168\u90e8");p.addSelectedChangedListener(function(S,M,X){I.setModelChangedFlag();f=X;y.updateUI()});p=p.getJqUi();p.appendTo(R);A.layoutCtrlWithLRTB(p,60,null,80,7,8,null);p=new r;p.setText("\u8017\u65f6\u5927\u4e8e(ms)\uff1a");p=p.getJqUi();p.appendTo(R);A.layoutCtrlWithLRTB(p,150,null,88,7,8,null);p=new E;p.setConstraint(0,
Number.MAX_SAFE_INTEGER,100);p.setValue(aa);p.addValueChangedListener(function(S,M,X){I.setModelChangedFlag();aa=X;y.updateUI()});p=p.getJqUi();p.appendTo(R);A.layoutCtrlWithLRTB(p,248,null,80,7,8,null);return R},K=function(){q=new Q;q.setHorizontalSplit(!0);q.setFirstSize(520,300,-1);q.setSecondSize(255,240,-1);U();var R=$(c.getUI());R.css({"-moz-user-select":"none","-webkit-user-select":"none","-ms-user-select":"none","-khtml-user-select":"none","user-select":"none"});A.layoutCtrlWithLRTB(R,0,0,
null,0,0,null);q.setFirstChild(Q.createChildWrapper(R,function(){I.setModelChangedFlag();var p=q.getNonemptyFirstWide()-260;c.getColumn(3).setWidth(p);y.updateUI()}));D=new J;D.setTabLevel(J.SECOND_LEVEL);P=new v;a=new O("\u8bf7\u6c42");k=new O("\u54cd\u5e94");D.addTab(P,!0);D.addTab(a,!1);D.addTab(k,!1);R=D.getJqUi();A.layoutCtrlWithLRTB(R,0,0,null,0,0,null);q.setSecondChild(Q.createChildWrapper(R,function(){}))},U=function(){c=u.createTable();c.setDraggableAdjusting(!0,3,0,new h);var R=new G(c);
R.setOutsideVisible(!0);c.setCellRender(R);R=c.getSelectionModel();R.setMode(KTSelectionModel.MODE_SINGLE);R.setPolicy(KTSelectionModel.POLICY_ROW);R.addChangeListener(W);c.addColumns(4);c.getColumn(0).setWidth(120);c.getColumn(1).setWidth(50);c.getColumn(2).setWidth(80);c.getColumn(3).setWidth(200);R=u.createHeadRow(c);R.getCell(0).setValue("\u540d\u79f0");R.getCell(1).setValue("\u72b6\u6001");R.getCell(2).setValue("\u8017\u65f6");R.getCell(3).setValue("\u65f6\u95f4\u8f74")},W=function(R,p){KTSelectionModel.CHANGE_ADD===
R&&0<p.length&&(z=p[0].getRowIdx()-u.getHeadRowCount(),R=Y[z],P.setValue(R),a.setValue(R.request),k.setValue(R.response))},V=function(){z=0;I.clearRecord();y.updateUI()},ba=function(){var R=$("<div>");d=new r;d.setAlign(r.ALIGN_CENTER);d.setText("\u5982\u679c\u60f3\u8ba9\u5f53\u524d\u754c\u9762\u663e\u793a\u7f51\u7edc\u8bf7\u6c42\uff0c\u8bf7\u5f00\u59cb\u8bb0\u5f55\u8bf7\u6c42\u65e5\u5fd7\u3002");var p=d.getJqUi();A.layoutCtrlWithLRTB(p,0,0,null,0,0,null);p.appendTo(R);return R};this.updateUI=function(){!I.isStartRecord()&&
e&&clearInterval(e);B.setText(I.isStartRecord()?"\u6682\u505c":"\u5f00\u59cb");if(I.isEmpty())g.show(),I.isStartRecord()?d.setText("\u6682\u65e0\u8bf7\u6c42\u65e5\u5fd7"):d.setText("\u5982\u679c\u60f3\u8ba9\u5f53\u524d\u754c\u9762\u663e\u793a\u7f51\u7edc\u8bf7\u6c42\uff0c\u8bf7\u70b9\u51fb\u201c\u5f00\u59cb\u201d\u8bb0\u5f55\u8bf7\u6c42\u65e5\u5fd7"),q.getJqUi().hide();else if(I.isModelChanged())if(Y=I.getCallIDStacks(f,aa),0==Y.length)I.resetModelChangedFlag(),g.show(),d.setText("\u6682\u65e0\u8fc7\u6ee4\u7ed3\u679c"),
q.getJqUi().hide();else{var R=c.getUI().getBoundingClientRect(),p=window.innerHeight||document.documentElement.clientHeight,S=window.innerWidth||document.documentElement.clientWidth;if(0<=R.top&&0<=R.left&&R.bottom<=p&&R.right<=S){g.hide();q.getJqUi().show();I.resetModelChangedFlag();u.clearWithoutHead(c);R=c.isSyncUIWhenModelChanged();c.setSyncUIWhenModelChanged(!1);N=Number.MAX_SAFE_INTEGER;b=Number.MIN_SAFE_INTEGER;p=0;for(S=Y.length;p<S;p++){var M=Y[p],X=u.createRow(c);X.setUserObject(M);X.setHeight(30);
X.getCell(0).setValue(I.shortServiceType(M));X.getCell(1).setValue(I.getStatue(M));X.getCell(2).setValue(I.getCostTime(M,!0));X.getCell(3).setValue("");X=M.startTimeStap;M=M.endTimeStap;X<N&&(N=X);M&&M>b&&(b=M)}b===Number.MIN_SAFE_INTEGER&&(b=(new Date).getTime());n=b-N;c.setSyncUIWhenModelChanged(R);u.refresh(c);R=c.getSelectionModel();R.removeAllSelecteds();if(0>z||z>=Y.length)z=0;p=z+u.getHeadRowCount();R.appendSelected(R.createRowTarget(p))}}}}"undefined"==typeof com&&(com={});"undefined"==typeof com.kingdee&&
(com.kingdee={});"undefined"==typeof com.kingdee.bos&&(com.kingdee.bos={});"undefined"==typeof com.kingdee.bos.qing&&(com.kingdee.bos.qing={});"undefined"==typeof com.kingdee.bos.qing.framework&&(com.kingdee.bos.qing.framework={});"undefined"==typeof com.kingdee.bos.qing.framework.remote&&(com.kingdee.bos.qing.framework.remote={});var w=com.kingdee.bos.qing.framework.remote,A,m,u,t,r,E,C,J,Q,H,L,I=w.CallModel,T;(function(){var G=com.kingdee.bos.qing.common;A=G.DomUtil;m=G.DateFormater;T=new m;T.setFormatString("yyyy-MM-dd HH:mm:ss");
G=com.kingdee.bos.qing.common.ui;u=G.TableUtil;G=com.kingdee.bos.qing.ui.component;t=G.Toolbar;r=G.Label;E=G.Spinner;C=G.ComboBox;J=G.TabContainer;Q=G.SplitPane;G=com.kingdee.bos.qing.framework.common;H=G.WebPageInitializer;L=G.WindowResizeObserver})();w.QingMessageSenderMonitor=new function(){var G,h,y=function(){H.init();h=new x;G=h.getJqUi();A.layoutCtrlWithLRTB(G,8,8,null,0,8,null);var l=new L;l.setCallbackImmediately(function(){document.body.style.height=document.documentElement.clientHeight+
"px"});l.setDelay(250);l.setCallback(function(){h.updateUI()});l.observe()};this.close=function(){I.close()};this.recordSendMessage=function(l,q){I.recordSendMessage(l,q)};this.recordReceiveMessage=function(l,q){I.recordReceiveMessage(l,oJsonMessage)};this.getJqUi=function(){G||y();return G}}})();
//qingVersionTag: 20250415