handler-playable-sdk 0.3.32 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-UAQZO7QB.js → chunk-PHSE57CN.js} +1 -1
- package/dist/cli/brand-dna.mjs +1 -1
- package/dist/cli/canva-import.mjs +1 -1
- package/dist/cli/cleanup-assets.mjs +1 -1
- package/dist/cli/fix-scales.mjs +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/screen-helper.mjs +1 -1
- package/dist/cli/setup-library.mjs +1 -1
- package/dist/cli/student-helper.mjs +1 -1
- package/dist/cli/sync-screens.mjs +1 -1
- package/dist/cli/validate-assets.mjs +1 -1
- package/dist/cli/validate.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +122 -0
- package/dist/index.js +1 -1
- package/dist/pixi/index.cjs +1 -1
- package/dist/pixi/index.css +122 -0
- package/dist/pixi/index.js +1 -1
- package/dist/three/index.cjs +1 -1
- package/dist/three/index.css +122 -0
- package/dist/three/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import{c as Ka,d as He,e as Xa}from"./chunk-I5OOVR5U.js";import{i as lr}from"./chunk-LV4HGC5G.js";import{c as tn,d as or,e as Za,g as dc,h as Ja,j as Qa,k as uc,l as pc,m as es,n as ts,o as fc}from"./chunk-ZLL42OOV.js";import{a as Fe,b as P,c as bg}from"./chunk-Q7FPWOA3.js";var rn=P((vw,cs)=>{"use strict";typeof process=="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?cs.exports={nextTick:Sg}:cs.exports=process;function Sg(e,t,i,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var r=arguments.length,a,s;switch(r){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,i)});case 4:return process.nextTick(function(){e.call(null,t,i,n)});default:for(a=new Array(r-1),s=0;s<a.length;)a[s++]=arguments[s];return process.nextTick(function(){e.apply(null,a)})}}});var Yc=P((yw,Vc)=>{"use strict";var Ag={}.toString;Vc.exports=Array.isArray||function(e){return Ag.call(e)=="[object Array]"}});var ds=P((xw,Kc)=>{"use strict";Kc.exports=Fe("stream")});var an=P((us,Zc)=>{"use strict";var Cr=Fe("buffer"),tt=Cr.Buffer;function Xc(e,t){for(var i in e)t[i]=e[i]}tt.from&&tt.alloc&&tt.allocUnsafe&&tt.allocUnsafeSlow?Zc.exports=Cr:(Xc(Cr,us),us.Buffer=pi);function pi(e,t,i){return tt(e,t,i)}Xc(tt,pi);pi.from=function(e,t,i){if(typeof e=="number")throw new TypeError("Argument must not be a number");return tt(e,t,i)};pi.alloc=function(e,t,i){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=tt(e);return t!==void 0?typeof i=="string"?n.fill(t,i):n.fill(t):n.fill(0),n};pi.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return tt(e)};pi.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Cr.SlowBuffer(e)}});var fi=P(le=>{"use strict";function Cg(e){return Array.isArray?Array.isArray(e):Tr(e)==="[object Array]"}le.isArray=Cg;function Tg(e){return typeof e=="boolean"}le.isBoolean=Tg;function kg(e){return e===null}le.isNull=kg;function Lg(e){return e==null}le.isNullOrUndefined=Lg;function Rg(e){return typeof e=="number"}le.isNumber=Rg;function Mg(e){return typeof e=="string"}le.isString=Mg;function Pg(e){return typeof e=="symbol"}le.isSymbol=Pg;function Ig(e){return e===void 0}le.isUndefined=Ig;function Og(e){return Tr(e)==="[object RegExp]"}le.isRegExp=Og;function Dg(e){return typeof e=="object"&&e!==null}le.isObject=Dg;function jg(e){return Tr(e)==="[object Date]"}le.isDate=jg;function zg(e){return Tr(e)==="[object Error]"||e instanceof Error}le.isError=zg;function Bg(e){return typeof e=="function"}le.isFunction=Bg;function Ng(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}le.isPrimitive=Ng;le.isBuffer=Fe("buffer").Buffer.isBuffer;function Tr(e){return Object.prototype.toString.call(e)}});var Jc=P((_w,ps)=>{"use strict";typeof Object.create=="function"?ps.exports=function(t,i){i&&(t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ps.exports=function(t,i){if(i){t.super_=i;var n=function(){};n.prototype=i.prototype,t.prototype=new n,t.prototype.constructor=t}}});var hi=P((Ew,hs)=>{"use strict";try{if(fs=Fe("util"),typeof fs.inherits!="function")throw"";hs.exports=fs.inherits}catch{hs.exports=Jc()}var fs});var ed=P((Sw,gs)=>{"use strict";function Fg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Qc=an().Buffer,sn=Fe("util");function Hg(e,t,i){e.copy(t,i)}gs.exports=(function(){function e(){Fg(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(i){var n={data:i,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(i){var n={data:i,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var i=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,i}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(i){if(this.length===0)return"";for(var n=this.head,r=""+n.data;n=n.next;)r+=i+n.data;return r},e.prototype.concat=function(i){if(this.length===0)return Qc.alloc(0);for(var n=Qc.allocUnsafe(i>>>0),r=this.head,a=0;r;)Hg(r.data,n,a),a+=r.data.length,r=r.next;return n},e})();sn&&sn.inspect&&sn.inspect.custom&&(gs.exports.prototype[sn.inspect.custom]=function(){var e=sn.inspect({length:this.length});return this.constructor.name+" "+e})});var ms=P((Aw,td)=>{"use strict";var kr=rn();function Ug(e,t){var i=this,n=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return n||r?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,kr.nextTick(Lr,this,e)):kr.nextTick(Lr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,kr.nextTick(Lr,i,a)):kr.nextTick(Lr,i,a):t&&t(a)}),this)}function $g(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Lr(e,t){e.emit("error",t)}td.exports={destroy:Ug,undestroy:$g}});var nd=P((Cw,id)=>{"use strict";id.exports=Fe("util").deprecate});var vs=P((Tw,ud)=>{"use strict";var Nt=rn();ud.exports=Q;function ad(e){var t=this;this.next=null,this.entry=null,this.finish=function(){om(t,e)}}var qg=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Nt.nextTick,gi;Q.WritableState=ln;var sd=Object.create(fi());sd.inherits=hi();var Gg={deprecate:nd()},od=ds(),Mr=an().Buffer,Wg=(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function Vg(e){return Mr.from(e)}function Yg(e){return Mr.isBuffer(e)||e instanceof Wg}var ld=ms();sd.inherits(Q,od);function Kg(){}function ln(e,t){gi=gi||Ft(),e=e||{};var i=t instanceof gi;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=e.writableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:i&&(r||r===0)?this.highWaterMark=r:this.highWaterMark=a,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 s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){im(t,o)},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 ad(this)}ln.prototype.getBuffer=function(){for(var t=this.bufferedRequest,i=[];t;)i.push(t),t=t.next;return i};(function(){try{Object.defineProperty(ln.prototype,"buffer",{get:Gg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Rr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Rr=Function.prototype[Symbol.hasInstance],Object.defineProperty(Q,Symbol.hasInstance,{value:function(e){return Rr.call(this,e)?!0:this!==Q?!1:e&&e._writableState instanceof ln}})):Rr=function(e){return e instanceof this};function Q(e){if(gi=gi||Ft(),!Rr.call(Q,this)&&!(this instanceof gi))return new Q(e);this._writableState=new ln(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),od.call(this)}Q.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Xg(e,t){var i=new Error("write after end");e.emit("error",i),Nt.nextTick(t,i)}function Zg(e,t,i,n){var r=!0,a=!1;return i===null?a=new TypeError("May not write null values to stream"):typeof i!="string"&&i!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Nt.nextTick(n,a),r=!1),r}Q.prototype.write=function(e,t,i){var n=this._writableState,r=!1,a=!n.objectMode&&Yg(e);return a&&!Mr.isBuffer(e)&&(e=Vg(e)),typeof t=="function"&&(i=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof i!="function"&&(i=Kg),n.ended?Xg(this,i):(a||Zg(this,n,e,i))&&(n.pendingcb++,r=Qg(this,n,a,e,t,i)),r};Q.prototype.cork=function(){var e=this._writableState;e.corked++};Q.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&cd(this,e))};Q.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Jg(e,t,i){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Mr.from(t,i)),t}Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Qg(e,t,i,n,r,a){if(!i){var s=Jg(t,n,r);n!==s&&(i=!0,r="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:r,isBuf:i,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else bs(e,t,!1,o,n,r,a);return c}function bs(e,t,i,n,r,a,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,i?e._writev(r,t.onwrite):e._write(r,a,t.onwrite),t.sync=!1}function em(e,t,i,n,r){--t.pendingcb,i?(Nt.nextTick(r,n),Nt.nextTick(on,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(r(n),e._writableState.errorEmitted=!0,e.emit("error",n),on(e,t))}function tm(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function im(e,t){var i=e._writableState,n=i.sync,r=i.writecb;if(tm(i),t)em(e,i,n,t,r);else{var a=dd(i);!a&&!i.corked&&!i.bufferProcessing&&i.bufferedRequest&&cd(e,i),n?qg(rd,e,i,a,r):rd(e,i,a,r)}}function rd(e,t,i,n){i||nm(e,t),t.pendingcb--,n(),on(e,t)}function nm(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function cd(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var n=t.bufferedRequestCount,r=new Array(n),a=t.corkedRequestsFree;a.entry=i;for(var s=0,o=!0;i;)r[s]=i,i.isBuf||(o=!1),i=i.next,s+=1;r.allBuffers=o,bs(e,t,!0,t.length,r,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new ad(t),t.bufferedRequestCount=0}else{for(;i;){var c=i.chunk,l=i.encoding,d=i.callback,u=t.objectMode?1:c.length;if(bs(e,t,!1,u,c,l,d),i=i.next,t.bufferedRequestCount--,t.writing)break}i===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}Q.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))};Q.prototype._writev=null;Q.prototype.end=function(e,t,i){var n=this._writableState;typeof e=="function"?(i=e,e=null,t=null):typeof t=="function"&&(i=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||sm(this,n,i)};function dd(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function rm(e,t){e._final(function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),on(e,t)})}function am(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Nt.nextTick(rm,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function on(e,t){var i=dd(t);return i&&(am(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),i}function sm(e,t,i){t.ending=!0,on(e,t),i&&(t.finished?Nt.nextTick(i):e.once("finish",i)),t.ended=!0,e.writable=!1}function om(e,t,i){var n=e.entry;for(e.entry=null;n;){var r=n.callback;t.pendingcb--,r(i),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Q.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Q.prototype.destroy=ld.destroy;Q.prototype._undestroy=ld.undestroy;Q.prototype._destroy=function(e,t){this.end(),t(e)}});var Ft=P((kw,gd)=>{"use strict";var pd=rn(),lm=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};gd.exports=it;var fd=Object.create(fi());fd.inherits=hi();var hd=ws(),xs=vs();fd.inherits(it,hd);for(ys=lm(xs.prototype),Pr=0;Pr<ys.length;Pr++)Ir=ys[Pr],it.prototype[Ir]||(it.prototype[Ir]=xs.prototype[Ir]);var ys,Ir,Pr;function it(e){if(!(this instanceof it))return new it(e);hd.call(this,e),xs.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",cm)}Object.defineProperty(it.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function cm(){this.allowHalfOpen||this._writableState.ended||pd.nextTick(dm,this)}function dm(e){e.end()}Object.defineProperty(it.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});it.prototype._destroy=function(e,t){this.push(null),this.end(),pd.nextTick(t,e)}});var Ss=P(bd=>{"use strict";var Es=an().Buffer,md=Es.isEncoding||function(e){switch(e=""+e,e&&e.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 um(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function pm(e){var t=um(e);if(typeof t!="string"&&(Es.isEncoding===md||!md(e)))throw new Error("Unknown encoding: "+e);return t||e}bd.StringDecoder=cn;function cn(e){this.encoding=pm(e);var t;switch(this.encoding){case"utf16le":this.text=vm,this.end=ym,t=4;break;case"utf8":this.fillLast=gm,t=4;break;case"base64":this.text=xm,this.end=wm,t=3;break;default:this.write=_m,this.end=Em;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Es.allocUnsafe(t)}cn.prototype.write=function(e){if(e.length===0)return"";var t,i;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""};cn.prototype.end=bm;cn.prototype.text=mm;cn.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function _s(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function fm(e,t,i){var n=t.length-1;if(n<i)return 0;var r=_s(t[n]);return r>=0?(r>0&&(e.lastNeed=r-1),r):--n<i||r===-2?0:(r=_s(t[n]),r>=0?(r>0&&(e.lastNeed=r-2),r):--n<i||r===-2?0:(r=_s(t[n]),r>=0?(r>0&&(r===2?r=0:e.lastNeed=r-3),r):0))}function hm(e,t,i){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function gm(e){var t=this.lastTotal-this.lastNeed,i=hm(this,e,t);if(i!==void 0)return i;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function mm(e,t){var i=fm(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var n=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function bm(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function vm(e,t){if((e.length-t)%2===0){var i=e.toString("utf16le",t);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function ym(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function xm(e,t){var i=(e.length-t)%3;return i===0?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,i===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function wm(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function _m(e){return e.toString(this.encoding)}function Em(e){return e&&e.length?this.write(e):""}});var ws=P((Mw,Ld)=>{"use strict";var bi=rn();Ld.exports=G;var Sm=Yc(),dn;G.ReadableState=Sd;var Rw=Fe("events").EventEmitter,wd=function(e,t){return e.listeners(t).length},Ls=ds(),un=an().Buffer,Am=(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function Cm(e){return un.from(e)}function Tm(e){return un.isBuffer(e)||e instanceof Am}var _d=Object.create(fi());_d.inherits=hi();var As=Fe("util"),H=void 0;As&&As.debuglog?H=As.debuglog("stream"):H=function(){};var km=ed(),Ed=ms(),mi;_d.inherits(G,Ls);var Cs=["error","close","destroy","pause","resume"];function Lm(e,t,i){if(typeof e.prependListener=="function")return e.prependListener(t,i);!e._events||!e._events[t]?e.on(t,i):Sm(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]}function Sd(e,t){dn=dn||Ft(),e=e||{};var i=t instanceof dn;this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=e.readableHighWaterMark,a=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:i&&(r||r===0)?this.highWaterMark=r:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new km,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=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(mi||(mi=Ss().StringDecoder),this.decoder=new mi(e.encoding),this.encoding=e.encoding)}function G(e){if(dn=dn||Ft(),!(this instanceof G))return new G(e);this._readableState=new Sd(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Ls.call(this)}Object.defineProperty(G.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});G.prototype.destroy=Ed.destroy;G.prototype._undestroy=Ed.undestroy;G.prototype._destroy=function(e,t){this.push(null),t(e)};G.prototype.push=function(e,t){var i=this._readableState,n;return i.objectMode?n=!0:typeof e=="string"&&(t=t||i.defaultEncoding,t!==i.encoding&&(e=un.from(e,t),t=""),n=!0),Ad(this,e,t,!1,n)};G.prototype.unshift=function(e){return Ad(this,e,null,!0,!1)};function Ad(e,t,i,n,r){var a=e._readableState;if(t===null)a.reading=!1,Im(e,a);else{var s;r||(s=Rm(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==un.prototype&&(t=Cm(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):Ts(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!i?(t=a.decoder.write(t),a.objectMode||t.length!==0?Ts(e,a,t,!1):Cd(e,a)):Ts(e,a,t,!1))):n||(a.reading=!1)}return Mm(a)}function Ts(e,t,i,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&Or(e)),Cd(e,t)}function Rm(e,t){var i;return!Tm(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(i=new TypeError("Invalid non-string/buffer chunk")),i}function Mm(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}G.prototype.isPaused=function(){return this._readableState.flowing===!1};G.prototype.setEncoding=function(e){return mi||(mi=Ss().StringDecoder),this._readableState.decoder=new mi(e),this._readableState.encoding=e,this};var vd=8388608;function Pm(e){return e>=vd?e=vd:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function yd(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=Pm(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}G.prototype.read=function(e){H("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return H("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ks(this):Or(this),null;if(e=yd(e,t),e===0&&t.ended)return t.length===0&&ks(this),null;var n=t.needReadable;H("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,H("length less than watermark",n)),t.ended||t.reading?(n=!1,H("reading or ended",n)):n&&(H("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=yd(i,t)));var r;return e>0?r=Td(e,t):r=null,r===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&ks(this)),r!==null&&this.emit("data",r),r};function Im(e,t){if(!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,Or(e)}}function Or(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(H("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?bi.nextTick(xd,e):xd(e))}function xd(e){H("emit readable"),e.emit("readable"),Rs(e)}function Cd(e,t){t.readingMore||(t.readingMore=!0,bi.nextTick(Om,e,t))}function Om(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(H("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}G.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};G.prototype.pipe=function(e,t){var i=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,H("pipe count=%d opts=%j",n.pipesCount,t);var r=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,a=r?o:m;n.endEmitted?bi.nextTick(a):i.once("end",a),e.on("unpipe",s);function s(b,v){H("onunpipe"),b===i&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,d())}function o(){H("onend"),e.end()}var c=Dm(i);e.on("drain",c);var l=!1;function d(){H("cleanup"),e.removeListener("close",g),e.removeListener("finish",h),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",s),i.removeListener("end",o),i.removeListener("end",m),i.removeListener("data",p),l=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}var u=!1;i.on("data",p);function p(b){H("ondata"),u=!1;var v=e.write(b);v===!1&&!u&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&kd(n.pipes,e)!==-1)&&!l&&(H("false write response, pause",n.awaitDrain),n.awaitDrain++,u=!0),i.pause())}function f(b){H("onerror",b),m(),e.removeListener("error",f),wd(e,"error")===0&&e.emit("error",b)}Lm(e,"error",f);function g(){e.removeListener("finish",h),m()}e.once("close",g);function h(){H("onfinish"),e.removeListener("close",g),m()}e.once("finish",h);function m(){H("unpipe"),i.unpipe(e)}return e.emit("pipe",i),n.flowing||(H("pipe resume"),i.resume()),e};function Dm(e){return function(){var t=e._readableState;H("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&wd(e,"data")&&(t.flowing=!0,Rs(e))}}G.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i),this);if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<r;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var s=kd(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i),this)};G.prototype.on=function(e,t){var i=Ls.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&Or(this):bi.nextTick(jm,this))}return i};G.prototype.addListener=G.prototype.on;function jm(e){H("readable nexttick read 0"),e.read(0)}G.prototype.resume=function(){var e=this._readableState;return e.flowing||(H("resume"),e.flowing=!0,zm(this,e)),this};function zm(e,t){t.resumeScheduled||(t.resumeScheduled=!0,bi.nextTick(Bm,e,t))}function Bm(e,t){t.reading||(H("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Rs(e),t.flowing&&!t.reading&&e.read(0)}G.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};function Rs(e){var t=e._readableState;for(H("flow",t.flowing);t.flowing&&e.read()!==null;);}G.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;e.on("end",function(){if(H("wrapped end"),i.decoder&&!i.ended){var s=i.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(H("wrapped data"),i.decoder&&(s=i.decoder.write(s)),!(i.objectMode&&s==null)&&!(!i.objectMode&&(!s||!s.length))){var o=t.push(s);o||(n=!0,e.pause())}});for(var r in e)this[r]===void 0&&typeof e[r]=="function"&&(this[r]=(function(s){return function(){return e[s].apply(e,arguments)}})(r));for(var a=0;a<Cs.length;a++)e.on(Cs[a],this.emit.bind(this,Cs[a]));return this._read=function(s){H("wrapped _read",s),n&&(n=!1,e.resume())},this};Object.defineProperty(G.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});G._fromList=Td;function Td(e,t){if(t.length===0)return null;var i;return t.objectMode?i=t.buffer.shift():!e||e>=t.length?(t.decoder?i=t.buffer.join(""):t.buffer.length===1?i=t.buffer.head.data:i=t.buffer.concat(t.length),t.buffer.clear()):i=Nm(e,t.buffer,t.decoder),i}function Nm(e,t,i){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=i?Fm(e,t):Hm(e,t),n}function Fm(e,t){var i=t.head,n=1,r=i.data;for(e-=r.length;i=i.next;){var a=i.data,s=e>a.length?a.length:e;if(s===a.length?r+=a:r+=a.slice(0,e),e-=s,e===0){s===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++n}return t.length-=n,r}function Hm(e,t){var i=un.allocUnsafe(e),n=t.head,r=1;for(n.data.copy(i),e-=n.data.length;n=n.next;){var a=n.data,s=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,s),e-=s,e===0){s===a.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(s));break}++r}return t.length-=r,i}function ks(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,bi.nextTick(Um,t,e))}function Um(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function kd(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}});var Ms=P((Pw,Pd)=>{"use strict";Pd.exports=nt;var Dr=Ft(),Md=Object.create(fi());Md.inherits=hi();Md.inherits(nt,Dr);function $m(e,t){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,t!=null&&this.push(t),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function nt(e){if(!(this instanceof nt))return new nt(e);Dr.call(this,e),this._transformState={afterTransform:$m.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",qm)}function qm(){var e=this;typeof this._flush=="function"?this._flush(function(t,i){Rd(e,t,i)}):Rd(this,null,null)}nt.prototype.push=function(e,t){return this._transformState.needTransform=!1,Dr.prototype.push.call(this,e,t)};nt.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")};nt.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var r=this._readableState;(n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}};nt.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};nt.prototype._destroy=function(e,t){var i=this;Dr.prototype._destroy.call(this,e,function(n){t(n),i.emit("close")})};function Rd(e,t,i){if(t)return e.emit("error",t);if(i!=null&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var jd=P((Iw,Dd)=>{"use strict";Dd.exports=pn;var Id=Ms(),Od=Object.create(fi());Od.inherits=hi();Od.inherits(pn,Id);function pn(e){if(!(this instanceof pn))return new pn(e);Id.call(this,e)}pn.prototype._transform=function(e,t,i){i(null,e)}});var Ps=P((re,jr)=>{"use strict";var Ue=Fe("stream");process.env.READABLE_STREAM==="disable"&&Ue?(jr.exports=Ue,re=jr.exports=Ue.Readable,re.Readable=Ue.Readable,re.Writable=Ue.Writable,re.Duplex=Ue.Duplex,re.Transform=Ue.Transform,re.PassThrough=Ue.PassThrough,re.Stream=Ue):(re=jr.exports=ws(),re.Stream=Ue||re,re.Readable=re,re.Writable=vs(),re.Duplex=Ft(),re.Transform=Ms(),re.PassThrough=jd())});var rt=P(ve=>{"use strict";ve.base64=!0;ve.array=!0;ve.string=!0;ve.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined";ve.nodebuffer=typeof Buffer!="undefined";ve.uint8array=typeof Uint8Array!="undefined";if(typeof ArrayBuffer=="undefined")ve.blob=!1;else{Is=new ArrayBuffer(0);try{ve.blob=new Blob([Is],{type:"application/zip"}).size===0}catch{try{zd=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Os=new zd,Os.append(Is),ve.blob=Os.getBlob("application/zip").size===0}catch{ve.blob=!1}}}var Is,zd,Os;try{ve.nodestream=!!Ps().Readable}catch{ve.nodestream=!1}});var js=P(Ds=>{"use strict";var Gm=V(),Wm=rt(),$e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Ds.encode=function(e){for(var t=[],i,n,r,a,s,o,c,l=0,d=e.length,u=d,p=Gm.getTypeOf(e)!=="string";l<e.length;)u=d-l,p?(i=e[l++],n=l<d?e[l++]:0,r=l<d?e[l++]:0):(i=e.charCodeAt(l++),n=l<d?e.charCodeAt(l++):0,r=l<d?e.charCodeAt(l++):0),a=i>>2,s=(i&3)<<4|n>>4,o=u>1?(n&15)<<2|r>>6:64,c=u>2?r&63:64,t.push($e.charAt(a)+$e.charAt(s)+$e.charAt(o)+$e.charAt(c));return t.join("")};Ds.decode=function(e){var t,i,n,r,a,s,o,c=0,l=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var u=e.length*3/4;if(e.charAt(e.length-1)===$e.charAt(64)&&u--,e.charAt(e.length-2)===$e.charAt(64)&&u--,u%1!==0)throw new Error("Invalid base64 input, bad content length.");var p;for(Wm.uint8array?p=new Uint8Array(u|0):p=new Array(u|0);c<e.length;)r=$e.indexOf(e.charAt(c++)),a=$e.indexOf(e.charAt(c++)),s=$e.indexOf(e.charAt(c++)),o=$e.indexOf(e.charAt(c++)),t=r<<2|a>>4,i=(a&15)<<4|s>>2,n=(s&3)<<6|o,p[l++]=t,s!==64&&(p[l++]=i),o!==64&&(p[l++]=n);return p}});var fn=P((jw,Bd)=>{"use strict";Bd.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}}});var Ud=P((zw,Hd)=>{"use strict";var Nd=global.MutationObserver||global.WebKitMutationObserver,vi;process.browser?Nd?(zs=0,Fd=new Nd(hn),Bs=global.document.createTextNode(""),Fd.observe(Bs,{characterData:!0}),vi=function(){Bs.data=zs=++zs%2}):!global.setImmediate&&typeof global.MessageChannel!="undefined"?(Ns=new global.MessageChannel,Ns.port1.onmessage=hn,vi=function(){Ns.port2.postMessage(0)}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?vi=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){hn(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},global.document.documentElement.appendChild(e)}:vi=function(){setTimeout(hn,0)}:vi=function(){process.nextTick(hn)};var zs,Fd,Bs,Ns,Fs,gn=[];function hn(){Fs=!0;for(var e,t,i=gn.length;i;){for(t=gn,gn=[],e=-1;++e<i;)t[e]();i=gn.length}Fs=!1}Hd.exports=Vm;function Vm(e){gn.push(e)===1&&!Fs&&vi()}});var Kd=P((Bw,Yd)=>{"use strict";var $d=Ud();function yi(){}var ce={},qd=["REJECTED"],Hs=["FULFILLED"],Gd=["PENDING"];process.browser||(mn=["UNHANDLED"]);var mn;Yd.exports=wt;function wt(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Gd,this.queue=[],this.outcome=void 0,process.browser||(this.handled=mn),e!==yi&&Wd(this,e)}wt.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(i,n);function i(r){function a(){return r}return t.resolve(e()).then(a)}function n(r){function a(){throw r}return t.resolve(e()).then(a)}};wt.prototype.catch=function(e){return this.then(null,e)};wt.prototype.then=function(e,t){if(typeof e!="function"&&this.state===Hs||typeof t!="function"&&this.state===qd)return this;var i=new this.constructor(yi);if(process.browser||this.handled===mn&&(this.handled=null),this.state!==Gd){var n=this.state===Hs?e:t;Us(i,n,this.outcome)}else this.queue.push(new bn(i,e,t));return i};function bn(e,t,i){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof i=="function"&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}bn.prototype.callFulfilled=function(e){ce.resolve(this.promise,e)};bn.prototype.otherCallFulfilled=function(e){Us(this.promise,this.onFulfilled,e)};bn.prototype.callRejected=function(e){ce.reject(this.promise,e)};bn.prototype.otherCallRejected=function(e){Us(this.promise,this.onRejected,e)};function Us(e,t,i){$d(function(){var n;try{n=t(i)}catch(r){return ce.reject(e,r)}n===e?ce.reject(e,new TypeError("Cannot resolve promise with itself")):ce.resolve(e,n)})}ce.resolve=function(e,t){var i=Vd(Ym,t);if(i.status==="error")return ce.reject(e,i.value);var n=i.value;if(n)Wd(e,n);else{e.state=Hs,e.outcome=t;for(var r=-1,a=e.queue.length;++r<a;)e.queue[r].callFulfilled(t)}return e};ce.reject=function(e,t){e.state=qd,e.outcome=t,process.browser||e.handled===mn&&$d(function(){e.handled===mn&&process.emit("unhandledRejection",t,e)});for(var i=-1,n=e.queue.length;++i<n;)e.queue[i].callRejected(t);return e};function Ym(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments)}}function Wd(e,t){var i=!1;function n(o){i||(i=!0,ce.reject(e,o))}function r(o){i||(i=!0,ce.resolve(e,o))}function a(){t(r,n)}var s=Vd(a);s.status==="error"&&n(s.value)}function Vd(e,t){var i={};try{i.value=e(t),i.status="success"}catch(n){i.status="error",i.value=n}return i}wt.resolve=Km;function Km(e){return e instanceof this?e:ce.resolve(new this(yi),e)}wt.reject=Xm;function Xm(e){var t=new this(yi);return ce.reject(t,e)}wt.all=Zm;function Zm(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);for(var r=new Array(i),a=0,s=-1,o=new this(yi);++s<i;)c(e[s],s);return o;function c(l,d){t.resolve(l).then(u,function(p){n||(n=!0,ce.reject(o,p))});function u(p){r[d]=p,++a===i&&!n&&(n=!0,ce.resolve(o,r))}}}wt.race=Jm;function Jm(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);for(var r=-1,a=new this(yi);++r<i;)s(e[r]);return a;function s(o){t.resolve(o).then(function(c){n||(n=!0,ce.resolve(a,c))},function(c){n||(n=!0,ce.reject(a,c))})}}});var xi=P((Nw,Xd)=>{"use strict";var $s=null;typeof Promise!="undefined"?$s=Promise:$s=Kd();Xd.exports={Promise:$s}});var Jd=P(Zd=>{"use strict";(function(e,t){"use strict";if(e.setImmediate)return;var i=1,n={},r=!1,a=e.document,s;function o(v){typeof v!="function"&&(v=new Function(""+v));for(var y=new Array(arguments.length-1),x=0;x<y.length;x++)y[x]=arguments[x+1];var w={callback:v,args:y};return n[i]=w,s(i),i++}function c(v){delete n[v]}function l(v){var y=v.callback,x=v.args;switch(x.length){case 0:y();break;case 1:y(x[0]);break;case 2:y(x[0],x[1]);break;case 3:y(x[0],x[1],x[2]);break;default:y.apply(t,x);break}}function d(v){if(r)setTimeout(d,0,v);else{var y=n[v];if(y){r=!0;try{l(y)}finally{c(v),r=!1}}}}function u(){s=function(v){process.nextTick(function(){d(v)})}}function p(){if(e.postMessage&&!e.importScripts){var v=!0,y=e.onmessage;return e.onmessage=function(){v=!1},e.postMessage("","*"),e.onmessage=y,v}}function f(){var v="setImmediate$"+Math.random()+"$",y=function(x){x.source===e&&typeof x.data=="string"&&x.data.indexOf(v)===0&&d(+x.data.slice(v.length))};e.addEventListener?e.addEventListener("message",y,!1):e.attachEvent("onmessage",y),s=function(x){e.postMessage(v+x,"*")}}function g(){var v=new MessageChannel;v.port1.onmessage=function(y){var x=y.data;d(x)},s=function(y){v.port2.postMessage(y)}}function h(){var v=a.documentElement;s=function(y){var x=a.createElement("script");x.onreadystatechange=function(){d(y),x.onreadystatechange=null,v.removeChild(x),x=null},v.appendChild(x)}}function m(){s=function(v){setTimeout(d,0,v)}}var b=Object.getPrototypeOf&&Object.getPrototypeOf(e);b=b&&b.setTimeout?b:e,{}.toString.call(e.process)==="[object process]"?u():p()?f():e.MessageChannel?g():a&&"onreadystatechange"in a.createElement("script")?h():m(),b.setImmediate=o,b.clearImmediate=c})(typeof self=="undefined"?typeof global=="undefined"?Zd:global:self)});var V=P(ee=>{"use strict";var _t=rt(),Qm=js(),wi=fn(),qs=xi();Jd();function eb(e){var t=null;return _t.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),Br(e,t)}ee.newBlob=function(e,t){ee.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var i=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,n=new i;return n.append(e),n.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function vn(e){return e}function Br(e,t){for(var i=0;i<e.length;++i)t[i]=e.charCodeAt(i)&255;return t}var zr={stringifyByChunk:function(e,t,i){var n=[],r=0,a=e.length;if(a<=i)return String.fromCharCode.apply(null,e);for(;r<a;)t==="array"||t==="nodebuffer"?n.push(String.fromCharCode.apply(null,e.slice(r,Math.min(r+i,a)))):n.push(String.fromCharCode.apply(null,e.subarray(r,Math.min(r+i,a)))),r+=i;return n.join("")},stringifyByChar:function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},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,wi.allocBuffer(1)).length===1}catch{return!1}})()}};function yn(e){var t=65536,i=ee.getTypeOf(e),n=!0;if(i==="uint8array"?n=zr.applyCanBeUsed.uint8array:i==="nodebuffer"&&(n=zr.applyCanBeUsed.nodebuffer),n)for(;t>1;)try{return zr.stringifyByChunk(e,i,t)}catch{t=Math.floor(t/2)}return zr.stringifyByChar(e)}ee.applyFromCharCode=yn;function Nr(e,t){for(var i=0;i<e.length;i++)t[i]=e[i];return t}var Et={};Et.string={string:vn,array:function(e){return Br(e,new Array(e.length))},arraybuffer:function(e){return Et.string.uint8array(e).buffer},uint8array:function(e){return Br(e,new Uint8Array(e.length))},nodebuffer:function(e){return Br(e,wi.allocBuffer(e.length))}};Et.array={string:yn,array:vn,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return wi.newBufferFrom(e)}};Et.arraybuffer={string:function(e){return yn(new Uint8Array(e))},array:function(e){return Nr(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:vn,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return wi.newBufferFrom(new Uint8Array(e))}};Et.uint8array={string:yn,array:function(e){return Nr(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:vn,nodebuffer:function(e){return wi.newBufferFrom(e)}};Et.nodebuffer={string:yn,array:function(e){return Nr(e,new Array(e.length))},arraybuffer:function(e){return Et.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Nr(e,new Uint8Array(e.length))},nodebuffer:vn};ee.transformTo=function(e,t){if(t||(t=""),!e)return t;ee.checkSupport(e);var i=ee.getTypeOf(t),n=Et[i][e](t);return n};ee.resolve=function(e){for(var t=e.split("/"),i=[],n=0;n<t.length;n++){var r=t[n];r==="."||r===""&&n!==0&&n!==t.length-1||(r===".."?i.pop():i.push(r))}return i.join("/")};ee.getTypeOf=function(e){if(typeof e=="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(_t.nodebuffer&&wi.isBuffer(e))return"nodebuffer";if(_t.uint8array&&e instanceof Uint8Array)return"uint8array";if(_t.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};ee.checkSupport=function(e){var t=_t[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};ee.MAX_VALUE_16BITS=65535;ee.MAX_VALUE_32BITS=-1;ee.pretty=function(e){var t="",i,n;for(n=0;n<(e||"").length;n++)i=e.charCodeAt(n),t+="\\x"+(i<16?"0":"")+i.toString(16).toUpperCase();return t};ee.delay=function(e,t,i){setImmediate(function(){e.apply(i||null,t||[])})};ee.inherits=function(e,t){var i=function(){};i.prototype=t.prototype,e.prototype=new i};ee.extend=function(){var e={},t,i;for(t=0;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&typeof e[i]=="undefined"&&(e[i]=arguments[t][i]);return e};ee.prepareContent=function(e,t,i,n,r){var a=qs.Promise.resolve(t).then(function(s){var o=_t.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);return o&&typeof FileReader!="undefined"?new qs.Promise(function(c,l){var d=new FileReader;d.onload=function(u){c(u.target.result)},d.onerror=function(u){l(u.target.error)},d.readAsArrayBuffer(s)}):s});return a.then(function(s){var o=ee.getTypeOf(s);return o?(o==="arraybuffer"?s=ee.transformTo("uint8array",s):o==="string"&&(r?s=Qm.decode(s):i&&n!==!0&&(s=eb(s))),s):qs.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}});var ye=P((Uw,eu)=>{"use strict";function Qd(e){this.name=e||"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}Qd.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var i=0;i<this._listeners[e].length;i++)this._listeners[e][i].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(i){t.processChunk(i)}),e.on("end",function(){t.end()}),e.on("error",function(i){t.error(i)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};eu.exports=Qd});var Ei=P(St=>{"use strict";var _i=V(),Ht=rt(),tb=fn(),Fr=ye(),xn=new Array(256);for(at=0;at<256;at++)xn[at]=at>=252?6:at>=248?5:at>=240?4:at>=224?3:at>=192?2:1;var at;xn[254]=xn[254]=1;var ib=function(e){var t,i,n,r,a,s=e.length,o=0;for(r=0;r<s;r++)i=e.charCodeAt(r),(i&64512)===55296&&r+1<s&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(i=65536+(i-55296<<10)+(n-56320),r++)),o+=i<128?1:i<2048?2:i<65536?3:4;for(Ht.uint8array?t=new Uint8Array(o):t=new Array(o),a=0,r=0;a<o;r++)i=e.charCodeAt(r),(i&64512)===55296&&r+1<s&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(i=65536+(i-55296<<10)+(n-56320),r++)),i<128?t[a++]=i:i<2048?(t[a++]=192|i>>>6,t[a++]=128|i&63):i<65536?(t[a++]=224|i>>>12,t[a++]=128|i>>>6&63,t[a++]=128|i&63):(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63,t[a++]=128|i>>>6&63,t[a++]=128|i&63);return t},nb=function(e,t){var i;for(t=t||e.length,t>e.length&&(t=e.length),i=t-1;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+xn[e[i]]>t?i:t},rb=function(e){var t,i,n,r,a=e.length,s=new Array(a*2);for(i=0,t=0;t<a;){if(n=e[t++],n<128){s[i++]=n;continue}if(r=xn[n],r>4){s[i++]=65533,t+=r-1;continue}for(n&=r===2?31:r===3?15:7;r>1&&t<a;)n=n<<6|e[t++]&63,r--;if(r>1){s[i++]=65533;continue}n<65536?s[i++]=n:(n-=65536,s[i++]=55296|n>>10&1023,s[i++]=56320|n&1023)}return s.length!==i&&(s.subarray?s=s.subarray(0,i):s.length=i),_i.applyFromCharCode(s)};St.utf8encode=function(t){return Ht.nodebuffer?tb.newBufferFrom(t,"utf-8"):ib(t)};St.utf8decode=function(t){return Ht.nodebuffer?_i.transformTo("nodebuffer",t).toString("utf-8"):(t=_i.transformTo(Ht.uint8array?"uint8array":"array",t),rb(t))};function Hr(){Fr.call(this,"utf-8 decode"),this.leftOver=null}_i.inherits(Hr,Fr);Hr.prototype.processChunk=function(e){var t=_i.transformTo(Ht.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ht.uint8array){var i=t;t=new Uint8Array(i.length+this.leftOver.length),t.set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var n=nb(t),r=t;n!==t.length&&(Ht.uint8array?(r=t.subarray(0,n),this.leftOver=t.subarray(n,t.length)):(r=t.slice(0,n),this.leftOver=t.slice(n,t.length))),this.push({data:St.utf8decode(r),meta:e.meta})};Hr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:St.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)};St.Utf8DecodeWorker=Hr;function Gs(){Fr.call(this,"utf-8 encode")}_i.inherits(Gs,Fr);Gs.prototype.processChunk=function(e){this.push({data:St.utf8encode(e.data),meta:e.meta})};St.Utf8EncodeWorker=Gs});var ru=P((qw,nu)=>{"use strict";var tu=ye(),iu=V();function Ws(e){tu.call(this,"ConvertWorker to "+e),this.destType=e}iu.inherits(Ws,tu);Ws.prototype.processChunk=function(e){this.push({data:iu.transformTo(this.destType,e.data),meta:e.meta})};nu.exports=Ws});var ou=P((Gw,su)=>{"use strict";var au=Ps().Readable,ab=V();ab.inherits(Vs,au);function Vs(e,t,i){au.call(this,t),this._helper=e;var n=this;e.on("data",function(r,a){n.push(r)||n._helper.pause(),i&&i(a)}).on("error",function(r){n.emit("error",r)}).on("end",function(){n.push(null)})}Vs.prototype._read=function(){this._helper.resume()};su.exports=Vs});var Ys=P((Ww,du)=>{"use strict";var Ut=V(),sb=ru(),ob=ye(),lb=js(),cb=rt(),db=xi(),lu=null;if(cb.nodestream)try{lu=ou()}catch{}function ub(e,t,i){switch(e){case"blob":return Ut.newBlob(Ut.transformTo("arraybuffer",t),i);case"base64":return lb.encode(t);default:return Ut.transformTo(e,t)}}function pb(e,t){var i,n=0,r=null,a=0;for(i=0;i<t.length;i++)a+=t[i].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(a),i=0;i<t.length;i++)r.set(t[i],n),n+=t[i].length;return r;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function fb(e,t){return new db.Promise(function(i,n){var r=[],a=e._internalType,s=e._outputType,o=e._mimeType;e.on("data",function(c,l){r.push(c),t&&t(l)}).on("error",function(c){r=[],n(c)}).on("end",function(){try{var c=ub(s,pb(a,r),o);i(c)}catch(l){n(l)}r=[]}).resume()})}function cu(e,t,i){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string";break}try{this._internalType=n,this._outputType=t,this._mimeType=i,Ut.checkSupport(n),this._worker=e.pipe(new sb(n)),e.lock()}catch(r){this._worker=new ob("error"),this._worker.error(r)}}cu.prototype={accumulate:function(e){return fb(this,e)},on:function(e,t){var i=this;return e==="data"?this._worker.on(e,function(n){t.call(i,n.data,n.meta)}):this._worker.on(e,function(){Ut.delay(t,arguments,i)}),this},resume:function(){return Ut.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ut.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new lu(this,{objectMode:this._outputType!=="nodebuffer"},e)}};du.exports=cu});var Ks=P(Pe=>{"use strict";Pe.base64=!1;Pe.binary=!1;Pe.dir=!1;Pe.createFolders=!0;Pe.date=null;Pe.compression=null;Pe.compressionOptions=null;Pe.comment=null;Pe.unixPermissions=null;Pe.dosPermissions=null});var Xs=P((Yw,uu)=>{"use strict";var Ur=V(),$r=ye(),hb=16*1024;function Si(e){$r.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(i){t.dataIsReady=!0,t.data=i,t.max=i&&i.length||0,t.type=Ur.getTypeOf(i),t.isPaused||t._tickAndRepeat()},function(i){t.error(i)})}Ur.inherits(Si,$r);Si.prototype.cleanUp=function(){$r.prototype.cleanUp.call(this),this.data=null};Si.prototype.resume=function(){return $r.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Ur.delay(this._tickAndRepeat,[],this)),!0):!1};Si.prototype._tickAndRepeat=function(){this._tickScheduled=!1,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(Ur.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))};Si.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=hb,t=null,i=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,i);break;case"uint8array":t=this.data.subarray(this.index,i);break;case"array":case"nodebuffer":t=this.data.slice(this.index,i);break}return this.index=i,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};uu.exports=Si});var qr=P((Kw,fu)=>{"use strict";var gb=V();function mb(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t}var pu=mb();function bb(e,t,i,n){var r=pu,a=n+i;e=e^-1;for(var s=n;s<a;s++)e=e>>>8^r[(e^t[s])&255];return e^-1}function vb(e,t,i,n){var r=pu,a=n+i;e=e^-1;for(var s=n;s<a;s++)e=e>>>8^r[(e^t.charCodeAt(s))&255];return e^-1}fu.exports=function(t,i){if(typeof t=="undefined"||!t.length)return 0;var n=gb.getTypeOf(t)!=="string";return n?bb(i|0,t,t.length,0):vb(i|0,t,t.length,0)}});var Js=P((Xw,gu)=>{"use strict";var hu=ye(),yb=qr(),xb=V();function Zs(){hu.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}xb.inherits(Zs,hu);Zs.prototype.processChunk=function(e){this.streamInfo.crc32=yb(e.data,this.streamInfo.crc32||0),this.push(e)};gu.exports=Zs});var bu=P((Zw,mu)=>{"use strict";var wb=V(),Qs=ye();function eo(e){Qs.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}wb.inherits(eo,Qs);eo.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Qs.prototype.processChunk.call(this,e)};mu.exports=eo});var Gr=P((Jw,xu)=>{"use strict";var vu=xi(),yu=Xs(),_b=Js(),to=bu();function io(e,t,i,n,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=i,this.compression=n,this.compressedContent=r}io.prototype={getContentWorker:function(){var e=new yu(vu.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new to("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new yu(vu.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};io.createWorkerFrom=function(e,t,i){return e.pipe(new _b).pipe(new to("uncompressedSize")).pipe(t.compressWorker(i)).pipe(new to("compressedSize")).withStreamInfo("compression",t)};xu.exports=io});var Su=P((Qw,Eu)=>{"use strict";var Eb=Ys(),Sb=Xs(),no=Ei(),ro=Gr(),wu=ye(),ao=function(e,t,i){this.name=e,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=t,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}};ao.prototype={internalStream:function(e){var t=null,i="string";try{if(!e)throw new Error("No output type specified.");i=e.toLowerCase();var n=i==="string"||i==="text";(i==="binarystring"||i==="text")&&(i="string"),t=this._decompressWorker();var r=!this._dataBinary;r&&!n&&(t=t.pipe(new no.Utf8EncodeWorker)),!r&&n&&(t=t.pipe(new no.Utf8DecodeWorker))}catch(a){t=new wu("error"),t.error(a)}return new Eb(t,i,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof ro&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new no.Utf8EncodeWorker)),ro.createWorkerFrom(i,e,t)},_decompressWorker:function(){return this._data instanceof ro?this._data.getContentWorker():this._data instanceof wu?this._data:new Sb(this._data)}};var _u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Ab=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Wr=0;Wr<_u.length;Wr++)ao.prototype[_u[Wr]]=Ab;var Wr;Eu.exports=ao});var st=P(he=>{"use strict";var Cb=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function Tb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}he.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if(typeof i!="object")throw new TypeError(i+"must be non-object");for(var n in i)Tb(i,n)&&(e[n]=i[n])}}return e};he.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var kb={arraySet:function(e,t,i,n,r){if(t.subarray&&e.subarray){e.set(t.subarray(i,i+n),r);return}for(var a=0;a<n;a++)e[r+a]=t[i+a]},flattenChunks:function(e){var t,i,n,r,a,s;for(n=0,t=0,i=e.length;t<i;t++)n+=e[t].length;for(s=new Uint8Array(n),r=0,t=0,i=e.length;t<i;t++)a=e[t],s.set(a,r),r+=a.length;return s}},Lb={arraySet:function(e,t,i,n,r){for(var a=0;a<n;a++)e[r+a]=t[i+a]},flattenChunks:function(e){return[].concat.apply([],e)}};he.setTyped=function(e){e?(he.Buf8=Uint8Array,he.Buf16=Uint16Array,he.Buf32=Int32Array,he.assign(he,kb)):(he.Buf8=Array,he.Buf16=Array,he.Buf32=Array,he.assign(he,Lb))};he.setTyped(Cb)});var Vu=P(Ti=>{"use strict";var Rb=st(),Mb=4,Au=0,Cu=1,Pb=2;function Ci(e){for(var t=e.length;--t>=0;)e[t]=0}var Ib=0,Pu=1,Ob=2,Db=3,jb=258,fo=29,Cn=256,_n=Cn+1+fo,Ai=30,ho=19,Iu=2*_n+1,$t=15,so=16,zb=7,go=256,Ou=16,Du=17,ju=18,uo=[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],Vr=[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],Bb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],zu=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Nb=512,ot=new Array((_n+2)*2);Ci(ot);var wn=new Array(Ai*2);Ci(wn);var En=new Array(Nb);Ci(En);var Sn=new Array(jb-Db+1);Ci(Sn);var mo=new Array(fo);Ci(mo);var Yr=new Array(Ai);Ci(Yr);function oo(e,t,i,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}var Bu,Nu,Fu;function lo(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Hu(e){return e<256?En[e]:En[256+(e>>>7)]}function An(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function me(e,t,i){e.bi_valid>so-i?(e.bi_buf|=t<<e.bi_valid&65535,An(e,e.bi_buf),e.bi_buf=t>>so-e.bi_valid,e.bi_valid+=i-so):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=i)}function qe(e,t,i){me(e,i[t*2],i[t*2+1])}function Uu(e,t){var i=0;do i|=e&1,e>>>=1,i<<=1;while(--t>0);return i>>>1}function Fb(e){e.bi_valid===16?(An(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function Hb(e,t){var i=t.dyn_tree,n=t.max_code,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,c=t.stat_desc.max_length,l,d,u,p,f,g,h=0;for(p=0;p<=$t;p++)e.bl_count[p]=0;for(i[e.heap[e.heap_max]*2+1]=0,l=e.heap_max+1;l<Iu;l++)d=e.heap[l],p=i[i[d*2+1]*2+1]+1,p>c&&(p=c,h++),i[d*2+1]=p,!(d>n)&&(e.bl_count[p]++,f=0,d>=o&&(f=s[d-o]),g=i[d*2],e.opt_len+=g*(p+f),a&&(e.static_len+=g*(r[d*2+1]+f)));if(h!==0){do{for(p=c-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,h-=2}while(h>0);for(p=c;p!==0;p--)for(d=e.bl_count[p];d!==0;)u=e.heap[--l],!(u>n)&&(i[u*2+1]!==p&&(e.opt_len+=(p-i[u*2+1])*i[u*2],i[u*2+1]=p),d--)}}function $u(e,t,i){var n=new Array($t+1),r=0,a,s;for(a=1;a<=$t;a++)n[a]=r=r+i[a-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=Uu(n[o]++,o))}}function Ub(){var e,t,i,n,r,a=new Array($t+1);for(i=0,n=0;n<fo-1;n++)for(mo[n]=i,e=0;e<1<<uo[n];e++)Sn[i++]=n;for(Sn[i-1]=n,r=0,n=0;n<16;n++)for(Yr[n]=r,e=0;e<1<<Vr[n];e++)En[r++]=n;for(r>>=7;n<Ai;n++)for(Yr[n]=r<<7,e=0;e<1<<Vr[n]-7;e++)En[256+r++]=n;for(t=0;t<=$t;t++)a[t]=0;for(e=0;e<=143;)ot[e*2+1]=8,e++,a[8]++;for(;e<=255;)ot[e*2+1]=9,e++,a[9]++;for(;e<=279;)ot[e*2+1]=7,e++,a[7]++;for(;e<=287;)ot[e*2+1]=8,e++,a[8]++;for($u(ot,_n+1,a),e=0;e<Ai;e++)wn[e*2+1]=5,wn[e*2]=Uu(e,5);Bu=new oo(ot,uo,Cn+1,_n,$t),Nu=new oo(wn,Vr,0,Ai,$t),Fu=new oo(new Array(0),Bb,0,ho,zb)}function qu(e){var t;for(t=0;t<_n;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ai;t++)e.dyn_dtree[t*2]=0;for(t=0;t<ho;t++)e.bl_tree[t*2]=0;e.dyn_ltree[go*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Gu(e){e.bi_valid>8?An(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function $b(e,t,i,n){Gu(e),n&&(An(e,i),An(e,~i)),Rb.arraySet(e.pending_buf,e.window,t,i,e.pending),e.pending+=i}function Tu(e,t,i,n){var r=t*2,a=i*2;return e[r]<e[a]||e[r]===e[a]&&n[t]<=n[i]}function co(e,t,i){for(var n=e.heap[i],r=i<<1;r<=e.heap_len&&(r<e.heap_len&&Tu(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!Tu(t,n,e.heap[r],e.depth));)e.heap[i]=e.heap[r],i=r,r<<=1;e.heap[i]=n}function ku(e,t,i){var n,r,a=0,s,o;if(e.last_lit!==0)do n=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],r=e.pending_buf[e.l_buf+a],a++,n===0?qe(e,r,t):(s=Sn[r],qe(e,s+Cn+1,t),o=uo[s],o!==0&&(r-=mo[s],me(e,r,o)),n--,s=Hu(n),qe(e,s,i),o=Vr[s],o!==0&&(n-=Yr[s],me(e,n,o)));while(a<e.last_lit);qe(e,go,t)}function po(e,t){var i=t.dyn_tree,n=t.stat_desc.static_tree,r=t.stat_desc.has_stree,a=t.stat_desc.elems,s,o,c=-1,l;for(e.heap_len=0,e.heap_max=Iu,s=0;s<a;s++)i[s*2]!==0?(e.heap[++e.heap_len]=c=s,e.depth[s]=0):i[s*2+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,i[l*2]=1,e.depth[l]=0,e.opt_len--,r&&(e.static_len-=n[l*2+1]);for(t.max_code=c,s=e.heap_len>>1;s>=1;s--)co(e,i,s);l=a;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],co(e,i,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,i[l*2]=i[s*2]+i[o*2],e.depth[l]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,i[s*2+1]=i[o*2+1]=l,e.heap[1]=l++,co(e,i,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Hb(e,t),$u(i,c,e.bl_count)}function Lu(e,t,i){var n,r=-1,a,s=t[1],o=0,c=7,l=4;for(s===0&&(c=138,l=3),t[(i+1)*2+1]=65535,n=0;n<=i;n++)a=s,s=t[(n+1)*2+1],!(++o<c&&a===s)&&(o<l?e.bl_tree[a*2]+=o:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[Ou*2]++):o<=10?e.bl_tree[Du*2]++:e.bl_tree[ju*2]++,o=0,r=a,s===0?(c=138,l=3):a===s?(c=6,l=3):(c=7,l=4))}function Ru(e,t,i){var n,r=-1,a,s=t[1],o=0,c=7,l=4;for(s===0&&(c=138,l=3),n=0;n<=i;n++)if(a=s,s=t[(n+1)*2+1],!(++o<c&&a===s)){if(o<l)do qe(e,a,e.bl_tree);while(--o!==0);else a!==0?(a!==r&&(qe(e,a,e.bl_tree),o--),qe(e,Ou,e.bl_tree),me(e,o-3,2)):o<=10?(qe(e,Du,e.bl_tree),me(e,o-3,3)):(qe(e,ju,e.bl_tree),me(e,o-11,7));o=0,r=a,s===0?(c=138,l=3):a===s?(c=6,l=3):(c=7,l=4)}}function qb(e){var t;for(Lu(e,e.dyn_ltree,e.l_desc.max_code),Lu(e,e.dyn_dtree,e.d_desc.max_code),po(e,e.bl_desc),t=ho-1;t>=3&&e.bl_tree[zu[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Gb(e,t,i,n){var r;for(me(e,t-257,5),me(e,i-1,5),me(e,n-4,4),r=0;r<n;r++)me(e,e.bl_tree[zu[r]*2+1],3);Ru(e,e.dyn_ltree,t-1),Ru(e,e.dyn_dtree,i-1)}function Wb(e){var t=4093624447,i;for(i=0;i<=31;i++,t>>>=1)if(t&1&&e.dyn_ltree[i*2]!==0)return Au;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return Cu;for(i=32;i<Cn;i++)if(e.dyn_ltree[i*2]!==0)return Cu;return Au}var Mu=!1;function Vb(e){Mu||(Ub(),Mu=!0),e.l_desc=new lo(e.dyn_ltree,Bu),e.d_desc=new lo(e.dyn_dtree,Nu),e.bl_desc=new lo(e.bl_tree,Fu),e.bi_buf=0,e.bi_valid=0,qu(e)}function Wu(e,t,i,n){me(e,(Ib<<1)+(n?1:0),3),$b(e,t,i,!0)}function Yb(e){me(e,Pu<<1,3),qe(e,go,ot),Fb(e)}function Kb(e,t,i,n){var r,a,s=0;e.level>0?(e.strm.data_type===Pb&&(e.strm.data_type=Wb(e)),po(e,e.l_desc),po(e,e.d_desc),s=qb(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=i+5,i+4<=r&&t!==-1?Wu(e,t,i,n):e.strategy===Mb||a===r?(me(e,(Pu<<1)+(n?1:0),3),ku(e,ot,wn)):(me(e,(Ob<<1)+(n?1:0),3),Gb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),ku(e,e.dyn_ltree,e.dyn_dtree)),qu(e),n&&Gu(e)}function Xb(e,t,i){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=i&255,e.last_lit++,t===0?e.dyn_ltree[i*2]++:(e.matches++,t--,e.dyn_ltree[(Sn[i]+Cn+1)*2]++,e.dyn_dtree[Hu(t)*2]++),e.last_lit===e.lit_bufsize-1}Ti._tr_init=Vb;Ti._tr_stored_block=Wu;Ti._tr_flush_block=Kb;Ti._tr_tally=Xb;Ti._tr_align=Yb});var bo=P((i1,Yu)=>{"use strict";function Zb(e,t,i,n){for(var r=e&65535|0,a=e>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do r=r+t[n++]|0,a=a+r|0;while(--s);r%=65521,a%=65521}return r|a<<16|0}Yu.exports=Zb});var vo=P((n1,Ku)=>{"use strict";function Jb(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t}var Qb=Jb();function ev(e,t,i,n){var r=Qb,a=n+i;e^=-1;for(var s=n;s<a;s++)e=e>>>8^r[(e^t[s])&255];return e^-1}Ku.exports=ev});var Kr=P((r1,Xu)=>{"use strict";Xu.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"}});var ap=P(Ve=>{"use strict";var ge=st(),Se=Vu(),ep=bo(),At=vo(),tv=Kr(),Vt=0,iv=1,nv=3,Rt=4,Zu=5,We=0,Ju=1,Ae=-2,rv=-3,yo=-5,av=-1,sv=1,Xr=2,ov=3,lv=4,cv=0,dv=2,ea=8,uv=9,pv=15,fv=8,hv=29,gv=256,wo=gv+1+hv,mv=30,bv=19,vv=2*wo+1,yv=15,B=3,kt=258,Ie=kt+B+1,xv=32,ta=42,_o=69,Zr=73,Jr=91,Qr=103,qt=113,kn=666,ne=1,Ln=2,Gt=3,Ri=4,wv=3;function Lt(e,t){return e.msg=tv[t],t}function Qu(e){return(e<<1)-(e>4?9:0)}function Tt(e){for(var t=e.length;--t>=0;)e[t]=0}function Ct(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),i!==0&&(ge.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,t.pending===0&&(t.pending_out=0))}function ae(e,t){Se._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ct(e.strm)}function N(e,t){e.pending_buf[e.pending++]=t}function Tn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function _v(e,t,i,n){var r=e.avail_in;return r>n&&(r=n),r===0?0:(e.avail_in-=r,ge.arraySet(t,e.input,e.next_in,r,i),e.state.wrap===1?e.adler=ep(e.adler,t,r,i):e.state.wrap===2&&(e.adler=At(e.adler,t,r,i)),e.next_in+=r,e.total_in+=r,r)}function tp(e,t){var i=e.max_chain_length,n=e.strstart,r,a,s=e.prev_length,o=e.nice_match,c=e.strstart>e.w_size-Ie?e.strstart-(e.w_size-Ie):0,l=e.window,d=e.w_mask,u=e.prev,p=e.strstart+kt,f=l[n+s-1],g=l[n+s];e.prev_length>=e.good_match&&(i>>=2),o>e.lookahead&&(o=e.lookahead);do if(r=t,!(l[r+s]!==g||l[r+s-1]!==f||l[r]!==l[n]||l[++r]!==l[n+1])){n+=2,r++;do;while(l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&l[++n]===l[++r]&&n<p);if(a=kt-(p-n),n=p-kt,a>s){if(e.match_start=t,s=a,a>=o)break;f=l[n+s-1],g=l[n+s]}}while((t=u[t&d])>c&&--i!==0);return s<=e.lookahead?s:e.lookahead}function Wt(e){var t=e.w_size,i,n,r,a,s;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ie)){ge.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,i=n;do r=e.head[--i],e.head[i]=r>=t?r-t:0;while(--n);n=t,i=n;do r=e.prev[--i],e.prev[i]=r>=t?r-t:0;while(--n);a+=t}if(e.strm.avail_in===0)break;if(n=_v(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=n,e.lookahead+e.insert>=B)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+B-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<B)););}while(e.lookahead<Ie&&e.strm.avail_in!==0)}function Ev(e,t){var i=65535;for(i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Wt(e),e.lookahead===0&&t===Vt)return ne;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((e.strstart===0||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,ae(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Ie&&(ae(e,!1),e.strm.avail_out===0))return ne}return e.insert=0,t===Rt?(ae(e,!0),e.strm.avail_out===0?Gt:Ri):(e.strstart>e.block_start&&(ae(e,!1),e.strm.avail_out===0),ne)}function xo(e,t){for(var i,n;;){if(e.lookahead<Ie){if(Wt(e),e.lookahead<Ie&&t===Vt)return ne;if(e.lookahead===0)break}if(i=0,e.lookahead>=B&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+B-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),i!==0&&e.strstart-i<=e.w_size-Ie&&(e.match_length=tp(e,i)),e.match_length>=B)if(n=Se._tr_tally(e,e.strstart-e.match_start,e.match_length-B),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=B){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+B-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=Se._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(ae(e,!1),e.strm.avail_out===0))return ne}return e.insert=e.strstart<B-1?e.strstart:B-1,t===Rt?(ae(e,!0),e.strm.avail_out===0?Gt:Ri):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?ne:Ln}function ki(e,t){for(var i,n,r;;){if(e.lookahead<Ie){if(Wt(e),e.lookahead<Ie&&t===Vt)return ne;if(e.lookahead===0)break}if(i=0,e.lookahead>=B&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+B-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=B-1,i!==0&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-Ie&&(e.match_length=tp(e,i),e.match_length<=5&&(e.strategy===sv||e.match_length===B&&e.strstart-e.match_start>4096)&&(e.match_length=B-1)),e.prev_length>=B&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-B,n=Se._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-B),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+B-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=B-1,e.strstart++,n&&(ae(e,!1),e.strm.avail_out===0))return ne}else if(e.match_available){if(n=Se._tr_tally(e,0,e.window[e.strstart-1]),n&&ae(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ne}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=Se._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<B-1?e.strstart:B-1,t===Rt?(ae(e,!0),e.strm.avail_out===0?Gt:Ri):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?ne:Ln}function Sv(e,t){for(var i,n,r,a,s=e.window;;){if(e.lookahead<=kt){if(Wt(e),e.lookahead<=kt&&t===Vt)return ne;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=B&&e.strstart>0&&(r=e.strstart-1,n=s[r],n===s[++r]&&n===s[++r]&&n===s[++r])){a=e.strstart+kt;do;while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<a);e.match_length=kt-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=B?(i=Se._tr_tally(e,1,e.match_length-B),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=Se._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(ae(e,!1),e.strm.avail_out===0))return ne}return e.insert=0,t===Rt?(ae(e,!0),e.strm.avail_out===0?Gt:Ri):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?ne:Ln}function Av(e,t){for(var i;;){if(e.lookahead===0&&(Wt(e),e.lookahead===0)){if(t===Vt)return ne;break}if(e.match_length=0,i=Se._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(ae(e,!1),e.strm.avail_out===0))return ne}return e.insert=0,t===Rt?(ae(e,!0),e.strm.avail_out===0?Gt:Ri):e.last_lit&&(ae(e,!1),e.strm.avail_out===0)?ne:Ln}function Ge(e,t,i,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=n,this.func=r}var Li;Li=[new Ge(0,0,0,0,Ev),new Ge(4,4,8,4,xo),new Ge(4,5,16,8,xo),new Ge(4,6,32,32,xo),new Ge(4,4,16,16,ki),new Ge(8,16,32,32,ki),new Ge(8,16,128,128,ki),new Ge(8,32,128,256,ki),new Ge(32,128,258,1024,ki),new Ge(32,258,258,4096,ki)];function Cv(e){e.window_size=2*e.w_size,Tt(e.head),e.max_lazy_match=Li[e.level].max_lazy,e.good_match=Li[e.level].good_length,e.nice_match=Li[e.level].nice_length,e.max_chain_length=Li[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=B-1,e.match_available=0,e.ins_h=0}function Tv(){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=ea,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 ge.Buf16(vv*2),this.dyn_dtree=new ge.Buf16((2*mv+1)*2),this.bl_tree=new ge.Buf16((2*bv+1)*2),Tt(this.dyn_ltree),Tt(this.dyn_dtree),Tt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ge.Buf16(yv+1),this.heap=new ge.Buf16(2*wo+1),Tt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ge.Buf16(2*wo+1),Tt(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 ip(e){var t;return!e||!e.state?Lt(e,Ae):(e.total_in=e.total_out=0,e.data_type=dv,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?ta:qt,e.adler=t.wrap===2?0:1,t.last_flush=Vt,Se._tr_init(t),We)}function np(e){var t=ip(e);return t===We&&Cv(e.state),t}function kv(e,t){return!e||!e.state||e.state.wrap!==2?Ae:(e.state.gzhead=t,We)}function rp(e,t,i,n,r,a){if(!e)return Ae;var s=1;if(t===av&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>uv||i!==ea||n<8||n>15||t<0||t>9||a<0||a>lv)return Lt(e,Ae);n===8&&(n=9);var o=new Tv;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=n,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=r+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+B-1)/B),o.window=new ge.Buf8(o.w_size*2),o.head=new ge.Buf16(o.hash_size),o.prev=new ge.Buf16(o.w_size),o.lit_bufsize=1<<r+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new ge.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=a,o.method=i,np(e)}function Lv(e,t){return rp(e,t,ea,pv,fv,cv)}function Rv(e,t){var i,n,r,a;if(!e||!e.state||t>Zu||t<0)return e?Lt(e,Ae):Ae;if(n=e.state,!e.output||!e.input&&e.avail_in!==0||n.status===kn&&t!==Rt)return Lt(e,e.avail_out===0?yo:Ae);if(n.strm=e,i=n.last_flush,n.last_flush=t,n.status===ta)if(n.wrap===2)e.adler=0,N(n,31),N(n,139),N(n,8),n.gzhead?(N(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),N(n,n.gzhead.time&255),N(n,n.gzhead.time>>8&255),N(n,n.gzhead.time>>16&255),N(n,n.gzhead.time>>24&255),N(n,n.level===9?2:n.strategy>=Xr||n.level<2?4:0),N(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(N(n,n.gzhead.extra.length&255),N(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=At(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=_o):(N(n,0),N(n,0),N(n,0),N(n,0),N(n,0),N(n,n.level===9?2:n.strategy>=Xr||n.level<2?4:0),N(n,wv),n.status=qt);else{var s=ea+(n.w_bits-8<<4)<<8,o=-1;n.strategy>=Xr||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,s|=o<<6,n.strstart!==0&&(s|=xv),s+=31-s%31,n.status=qt,Tn(n,s),n.strstart!==0&&(Tn(n,e.adler>>>16),Tn(n,e.adler&65535)),e.adler=1}if(n.status===_o)if(n.gzhead.extra){for(r=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(e.adler=At(e.adler,n.pending_buf,n.pending-r,r)),Ct(e),r=n.pending,n.pending===n.pending_buf_size));)N(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>r&&(e.adler=At(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=Zr)}else n.status=Zr;if(n.status===Zr)if(n.gzhead.name){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(e.adler=At(e.adler,n.pending_buf,n.pending-r,r)),Ct(e),r=n.pending,n.pending===n.pending_buf_size)){a=1;break}n.gzindex<n.gzhead.name.length?a=n.gzhead.name.charCodeAt(n.gzindex++)&255:a=0,N(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>r&&(e.adler=At(e.adler,n.pending_buf,n.pending-r,r)),a===0&&(n.gzindex=0,n.status=Jr)}else n.status=Jr;if(n.status===Jr)if(n.gzhead.comment){r=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>r&&(e.adler=At(e.adler,n.pending_buf,n.pending-r,r)),Ct(e),r=n.pending,n.pending===n.pending_buf_size)){a=1;break}n.gzindex<n.gzhead.comment.length?a=n.gzhead.comment.charCodeAt(n.gzindex++)&255:a=0,N(n,a)}while(a!==0);n.gzhead.hcrc&&n.pending>r&&(e.adler=At(e.adler,n.pending_buf,n.pending-r,r)),a===0&&(n.status=Qr)}else n.status=Qr;if(n.status===Qr&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Ct(e),n.pending+2<=n.pending_buf_size&&(N(n,e.adler&255),N(n,e.adler>>8&255),e.adler=0,n.status=qt)):n.status=qt),n.pending!==0){if(Ct(e),e.avail_out===0)return n.last_flush=-1,We}else if(e.avail_in===0&&Qu(t)<=Qu(i)&&t!==Rt)return Lt(e,yo);if(n.status===kn&&e.avail_in!==0)return Lt(e,yo);if(e.avail_in!==0||n.lookahead!==0||t!==Vt&&n.status!==kn){var c=n.strategy===Xr?Av(n,t):n.strategy===ov?Sv(n,t):Li[n.level].func(n,t);if((c===Gt||c===Ri)&&(n.status=kn),c===ne||c===Gt)return e.avail_out===0&&(n.last_flush=-1),We;if(c===Ln&&(t===iv?Se._tr_align(n):t!==Zu&&(Se._tr_stored_block(n,0,0,!1),t===nv&&(Tt(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Ct(e),e.avail_out===0))return n.last_flush=-1,We}return t!==Rt?We:n.wrap<=0?Ju:(n.wrap===2?(N(n,e.adler&255),N(n,e.adler>>8&255),N(n,e.adler>>16&255),N(n,e.adler>>24&255),N(n,e.total_in&255),N(n,e.total_in>>8&255),N(n,e.total_in>>16&255),N(n,e.total_in>>24&255)):(Tn(n,e.adler>>>16),Tn(n,e.adler&65535)),Ct(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?We:Ju)}function Mv(e){var t;return!e||!e.state?Ae:(t=e.state.status,t!==ta&&t!==_o&&t!==Zr&&t!==Jr&&t!==Qr&&t!==qt&&t!==kn?Lt(e,Ae):(e.state=null,t===qt?Lt(e,rv):We))}function Pv(e,t){var i=t.length,n,r,a,s,o,c,l,d;if(!e||!e.state||(n=e.state,s=n.wrap,s===2||s===1&&n.status!==ta||n.lookahead))return Ae;for(s===1&&(e.adler=ep(e.adler,t,i,0)),n.wrap=0,i>=n.w_size&&(s===0&&(Tt(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new ge.Buf8(n.w_size),ge.arraySet(d,t,i-n.w_size,n.w_size,0),t=d,i=n.w_size),o=e.avail_in,c=e.next_in,l=e.input,e.avail_in=i,e.next_in=0,e.input=t,Wt(n);n.lookahead>=B;){r=n.strstart,a=n.lookahead-(B-1);do n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+B-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++;while(--a);n.strstart=r,n.lookahead=B-1,Wt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=B-1,n.match_available=0,e.next_in=c,e.input=l,e.avail_in=o,n.wrap=s,We}Ve.deflateInit=Lv;Ve.deflateInit2=rp;Ve.deflateReset=np;Ve.deflateResetKeep=ip;Ve.deflateSetHeader=kv;Ve.deflate=Rv;Ve.deflateEnd=Mv;Ve.deflateSetDictionary=Pv;Ve.deflateInfo="pako deflate (from Nodeca project)"});var Eo=P(Mi=>{"use strict";var ia=st(),sp=!0,op=!0;try{String.fromCharCode.apply(null,[0])}catch{sp=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{op=!1}var Rn=new ia.Buf8(256);for(lt=0;lt<256;lt++)Rn[lt]=lt>=252?6:lt>=248?5:lt>=240?4:lt>=224?3:lt>=192?2:1;var lt;Rn[254]=Rn[254]=1;Mi.string2buf=function(e){var t,i,n,r,a,s=e.length,o=0;for(r=0;r<s;r++)i=e.charCodeAt(r),(i&64512)===55296&&r+1<s&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(i=65536+(i-55296<<10)+(n-56320),r++)),o+=i<128?1:i<2048?2:i<65536?3:4;for(t=new ia.Buf8(o),a=0,r=0;a<o;r++)i=e.charCodeAt(r),(i&64512)===55296&&r+1<s&&(n=e.charCodeAt(r+1),(n&64512)===56320&&(i=65536+(i-55296<<10)+(n-56320),r++)),i<128?t[a++]=i:i<2048?(t[a++]=192|i>>>6,t[a++]=128|i&63):i<65536?(t[a++]=224|i>>>12,t[a++]=128|i>>>6&63,t[a++]=128|i&63):(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63,t[a++]=128|i>>>6&63,t[a++]=128|i&63);return t};function lp(e,t){if(t<65534&&(e.subarray&&op||!e.subarray&&sp))return String.fromCharCode.apply(null,ia.shrinkBuf(e,t));for(var i="",n=0;n<t;n++)i+=String.fromCharCode(e[n]);return i}Mi.buf2binstring=function(e){return lp(e,e.length)};Mi.binstring2buf=function(e){for(var t=new ia.Buf8(e.length),i=0,n=t.length;i<n;i++)t[i]=e.charCodeAt(i);return t};Mi.buf2string=function(e,t){var i,n,r,a,s=t||e.length,o=new Array(s*2);for(n=0,i=0;i<s;){if(r=e[i++],r<128){o[n++]=r;continue}if(a=Rn[r],a>4){o[n++]=65533,i+=a-1;continue}for(r&=a===2?31:a===3?15:7;a>1&&i<s;)r=r<<6|e[i++]&63,a--;if(a>1){o[n++]=65533;continue}r<65536?o[n++]=r:(r-=65536,o[n++]=55296|r>>10&1023,o[n++]=56320|r&1023)}return lp(o,n)};Mi.utf8border=function(e,t){var i;for(t=t||e.length,t>e.length&&(t=e.length),i=t-1;i>=0&&(e[i]&192)===128;)i--;return i<0||i===0?t:i+Rn[e[i]]>t?i:t}});var So=P((o1,cp)=>{"use strict";function Iv(){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}cp.exports=Iv});var fp=P(In=>{"use strict";var Mn=ap(),Pn=st(),Co=Eo(),To=Kr(),Ov=So(),pp=Object.prototype.toString,Dv=0,Ao=4,Pi=0,dp=1,up=2,jv=-1,zv=0,Bv=8;function Yt(e){if(!(this instanceof Yt))return new Yt(e);this.options=Pn.assign({level:jv,method:Bv,chunkSize:16384,windowBits:15,memLevel:8,strategy:zv,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ov,this.strm.avail_out=0;var i=Mn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==Pi)throw new Error(To[i]);if(t.header&&Mn.deflateSetHeader(this.strm,t.header),t.dictionary){var n;if(typeof t.dictionary=="string"?n=Co.string2buf(t.dictionary):pp.call(t.dictionary)==="[object ArrayBuffer]"?n=new Uint8Array(t.dictionary):n=t.dictionary,i=Mn.deflateSetDictionary(this.strm,n),i!==Pi)throw new Error(To[i]);this._dict_set=!0}}Yt.prototype.push=function(e,t){var i=this.strm,n=this.options.chunkSize,r,a;if(this.ended)return!1;a=t===~~t?t:t===!0?Ao:Dv,typeof e=="string"?i.input=Co.string2buf(e):pp.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(i.avail_out===0&&(i.output=new Pn.Buf8(n),i.next_out=0,i.avail_out=n),r=Mn.deflate(i,a),r!==dp&&r!==Pi)return this.onEnd(r),this.ended=!0,!1;(i.avail_out===0||i.avail_in===0&&(a===Ao||a===up))&&(this.options.to==="string"?this.onData(Co.buf2binstring(Pn.shrinkBuf(i.output,i.next_out))):this.onData(Pn.shrinkBuf(i.output,i.next_out)))}while((i.avail_in>0||i.avail_out===0)&&r!==dp);return a===Ao?(r=Mn.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Pi):(a===up&&(this.onEnd(Pi),i.avail_out=0),!0)};Yt.prototype.onData=function(e){this.chunks.push(e)};Yt.prototype.onEnd=function(e){e===Pi&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Pn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ko(e,t){var i=new Yt(t);if(i.push(e,!0),i.err)throw i.msg||To[i.err];return i.result}function Nv(e,t){return t=t||{},t.raw=!0,ko(e,t)}function Fv(e,t){return t=t||{},t.gzip=!0,ko(e,t)}In.Deflate=Yt;In.deflate=ko;In.deflateRaw=Nv;In.gzip=Fv});var gp=P((c1,hp)=>{"use strict";var na=30,Hv=12;hp.exports=function(t,i){var n,r,a,s,o,c,l,d,u,p,f,g,h,m,b,v,y,x,w,E,A,S,k,I,_;n=t.state,r=t.next_in,I=t.input,a=r+(t.avail_in-5),s=t.next_out,_=t.output,o=s-(i-t.avail_out),c=s+(t.avail_out-257),l=n.dmax,d=n.wsize,u=n.whave,p=n.wnext,f=n.window,g=n.hold,h=n.bits,m=n.lencode,b=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{h<15&&(g+=I[r++]<<h,h+=8,g+=I[r++]<<h,h+=8),x=m[g&v];t:for(;;){if(w=x>>>24,g>>>=w,h-=w,w=x>>>16&255,w===0)_[s++]=x&65535;else if(w&16){E=x&65535,w&=15,w&&(h<w&&(g+=I[r++]<<h,h+=8),E+=g&(1<<w)-1,g>>>=w,h-=w),h<15&&(g+=I[r++]<<h,h+=8,g+=I[r++]<<h,h+=8),x=b[g&y];i:for(;;){if(w=x>>>24,g>>>=w,h-=w,w=x>>>16&255,w&16){if(A=x&65535,w&=15,h<w&&(g+=I[r++]<<h,h+=8,h<w&&(g+=I[r++]<<h,h+=8)),A+=g&(1<<w)-1,A>l){t.msg="invalid distance too far back",n.mode=na;break e}if(g>>>=w,h-=w,w=s-o,A>w){if(w=A-w,w>u&&n.sane){t.msg="invalid distance too far back",n.mode=na;break e}if(S=0,k=f,p===0){if(S+=d-w,w<E){E-=w;do _[s++]=f[S++];while(--w);S=s-A,k=_}}else if(p<w){if(S+=d+p-w,w-=p,w<E){E-=w;do _[s++]=f[S++];while(--w);if(S=0,p<E){w=p,E-=w;do _[s++]=f[S++];while(--w);S=s-A,k=_}}}else if(S+=p-w,w<E){E-=w;do _[s++]=f[S++];while(--w);S=s-A,k=_}for(;E>2;)_[s++]=k[S++],_[s++]=k[S++],_[s++]=k[S++],E-=3;E&&(_[s++]=k[S++],E>1&&(_[s++]=k[S++]))}else{S=s-A;do _[s++]=_[S++],_[s++]=_[S++],_[s++]=_[S++],E-=3;while(E>2);E&&(_[s++]=_[S++],E>1&&(_[s++]=_[S++]))}}else if((w&64)===0){x=b[(x&65535)+(g&(1<<w)-1)];continue i}else{t.msg="invalid distance code",n.mode=na;break e}break}}else if((w&64)===0){x=m[(x&65535)+(g&(1<<w)-1)];continue t}else if(w&32){n.mode=Hv;break e}else{t.msg="invalid literal/length code",n.mode=na;break e}break}}while(r<a&&s<c);E=h>>3,r-=E,h-=E<<3,g&=(1<<h)-1,t.next_in=r,t.next_out=s,t.avail_in=r<a?5+(a-r):5-(r-a),t.avail_out=s<c?257+(c-s):257-(s-c),n.hold=g,n.bits=h}});var _p=P((d1,wp)=>{"use strict";var mp=st(),Ii=15,bp=852,vp=592,yp=0,Lo=1,xp=2,Uv=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],$v=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],qv=[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],Gv=[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];wp.exports=function(t,i,n,r,a,s,o,c){var l=c.bits,d=0,u=0,p=0,f=0,g=0,h=0,m=0,b=0,v=0,y=0,x,w,E,A,S,k=null,I=0,_,C=new mp.Buf16(Ii+1),R=new mp.Buf16(Ii+1),M=null,O=0,T,j,L;for(d=0;d<=Ii;d++)C[d]=0;for(u=0;u<r;u++)C[i[n+u]]++;for(g=l,f=Ii;f>=1&&C[f]===0;f--);if(g>f&&(g=f),f===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,c.bits=1,0;for(p=1;p<f&&C[p]===0;p++);for(g<p&&(g=p),b=1,d=1;d<=Ii;d++)if(b<<=1,b-=C[d],b<0)return-1;if(b>0&&(t===yp||f!==1))return-1;for(R[1]=0,d=1;d<Ii;d++)R[d+1]=R[d]+C[d];for(u=0;u<r;u++)i[n+u]!==0&&(o[R[i[n+u]]++]=u);if(t===yp?(k=M=o,_=19):t===Lo?(k=Uv,I-=257,M=$v,O-=257,_=256):(k=qv,M=Gv,_=-1),y=0,u=0,d=p,S=s,h=g,m=0,E=-1,v=1<<g,A=v-1,t===Lo&&v>bp||t===xp&&v>vp)return 1;for(;;){T=d-m,o[u]<_?(j=0,L=o[u]):o[u]>_?(j=M[O+o[u]],L=k[I+o[u]]):(j=96,L=0),x=1<<d-m,w=1<<h,p=w;do w-=x,a[S+(y>>m)+w]=T<<24|j<<16|L|0;while(w!==0);for(x=1<<d-1;y&x;)x>>=1;if(x!==0?(y&=x-1,y+=x):y=0,u++,--C[d]===0){if(d===f)break;d=i[n+o[u]]}if(d>g&&(y&A)!==E){for(m===0&&(m=g),S+=p,h=d-m,b=1<<h;h+m<f&&(b-=C[h+m],!(b<=0));)h++,b<<=1;if(v+=1<<h,t===Lo&&v>bp||t===xp&&v>vp)return 1;E=y&A,a[E]=g<<24|h<<16|S-s|0}}return y!==0&&(a[S+y]=d-m<<24|64<<16|0),c.bits=g,0}});var rf=P(Oe=>{"use strict";var xe=st(),Do=bo(),Ye=vo(),Wv=gp(),On=_p(),Vv=0,Yp=1,Kp=2,Ep=4,Yv=5,ra=6,Kt=0,Kv=1,Xv=2,Ce=-2,Xp=-3,jo=-4,Zv=-5,Sp=8,Zp=1,Ap=2,Cp=3,Tp=4,kp=5,Lp=6,Rp=7,Mp=8,Pp=9,Ip=10,oa=11,ct=12,Ro=13,Op=14,Mo=15,Dp=16,jp=17,zp=18,Bp=19,aa=20,sa=21,Np=22,Fp=23,Hp=24,Up=25,$p=26,Po=27,qp=28,Gp=29,W=30,zo=31,Jv=32,Qv=852,ey=592,ty=15,iy=ty;function Wp(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function ny(){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 xe.Buf16(320),this.work=new xe.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Jp(e){var t;return!e||!e.state?Ce:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Zp,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new xe.Buf32(Qv),t.distcode=t.distdyn=new xe.Buf32(ey),t.sane=1,t.back=-1,Kt)}function Qp(e){var t;return!e||!e.state?Ce:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Jp(e))}function ef(e,t){var i,n;return!e||!e.state||(n=e.state,t<0?(i=0,t=-t):(i=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Ce:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,Qp(e))}function tf(e,t){var i,n;return e?(n=new ny,e.state=n,n.window=null,i=ef(e,t),i!==Kt&&(e.state=null),i):Ce}function ry(e){return tf(e,iy)}var Vp=!0,Io,Oo;function ay(e){if(Vp){var t;for(Io=new xe.Buf32(512),Oo=new xe.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(On(Yp,e.lens,0,288,Io,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;On(Kp,e.lens,0,32,Oo,0,e.work,{bits:5}),Vp=!1}e.lencode=Io,e.lenbits=9,e.distcode=Oo,e.distbits=5}function nf(e,t,i,n){var r,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new xe.Buf8(a.wsize)),n>=a.wsize?(xe.arraySet(a.window,t,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>n&&(r=n),xe.arraySet(a.window,t,i-n,r,a.wnext),n-=r,n?(xe.arraySet(a.window,t,i-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0}function sy(e,t){var i,n,r,a,s,o,c,l,d,u,p,f,g,h,m=0,b,v,y,x,w,E,A,S,k=new xe.Buf8(4),I,_,C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Ce;i=e.state,i.mode===ct&&(i.mode=Ro),s=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,l=i.hold,d=i.bits,u=o,p=c,S=Kt;e:for(;;)switch(i.mode){case Zp:if(i.wrap===0){i.mode=Ro;break}for(;d<16;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(i.wrap&2&&l===35615){i.check=0,k[0]=l&255,k[1]=l>>>8&255,i.check=Ye(i.check,k,2,0),l=0,d=0,i.mode=Ap;break}if(i.flags=0,i.head&&(i.head.done=!1),!(i.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",i.mode=W;break}if((l&15)!==Sp){e.msg="unknown compression method",i.mode=W;break}if(l>>>=4,d-=4,A=(l&15)+8,i.wbits===0)i.wbits=A;else if(A>i.wbits){e.msg="invalid window size",i.mode=W;break}i.dmax=1<<A,e.adler=i.check=1,i.mode=l&512?Ip:ct,l=0,d=0;break;case Ap:for(;d<16;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(i.flags=l,(i.flags&255)!==Sp){e.msg="unknown compression method",i.mode=W;break}if(i.flags&57344){e.msg="unknown header flags set",i.mode=W;break}i.head&&(i.head.text=l>>8&1),i.flags&512&&(k[0]=l&255,k[1]=l>>>8&255,i.check=Ye(i.check,k,2,0)),l=0,d=0,i.mode=Cp;case Cp:for(;d<32;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}i.head&&(i.head.time=l),i.flags&512&&(k[0]=l&255,k[1]=l>>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,i.check=Ye(i.check,k,4,0)),l=0,d=0,i.mode=Tp;case Tp:for(;d<16;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}i.head&&(i.head.xflags=l&255,i.head.os=l>>8),i.flags&512&&(k[0]=l&255,k[1]=l>>>8&255,i.check=Ye(i.check,k,2,0)),l=0,d=0,i.mode=kp;case kp:if(i.flags&1024){for(;d<16;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}i.length=l,i.head&&(i.head.extra_len=l),i.flags&512&&(k[0]=l&255,k[1]=l>>>8&255,i.check=Ye(i.check,k,2,0)),l=0,d=0}else i.head&&(i.head.extra=null);i.mode=Lp;case Lp:if(i.flags&1024&&(f=i.length,f>o&&(f=o),f&&(i.head&&(A=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),xe.arraySet(i.head.extra,n,a,f,A)),i.flags&512&&(i.check=Ye(i.check,n,f,a)),o-=f,a+=f,i.length-=f),i.length))break e;i.length=0,i.mode=Rp;case Rp:if(i.flags&2048){if(o===0)break e;f=0;do A=n[a+f++],i.head&&A&&i.length<65536&&(i.head.name+=String.fromCharCode(A));while(A&&f<o);if(i.flags&512&&(i.check=Ye(i.check,n,f,a)),o-=f,a+=f,A)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=Mp;case Mp:if(i.flags&4096){if(o===0)break e;f=0;do A=n[a+f++],i.head&&A&&i.length<65536&&(i.head.comment+=String.fromCharCode(A));while(A&&f<o);if(i.flags&512&&(i.check=Ye(i.check,n,f,a)),o-=f,a+=f,A)break e}else i.head&&(i.head.comment=null);i.mode=Pp;case Pp:if(i.flags&512){for(;d<16;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(l!==(i.check&65535)){e.msg="header crc mismatch",i.mode=W;break}l=0,d=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=ct;break;case Ip:for(;d<32;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}e.adler=i.check=Wp(l),l=0,d=0,i.mode=oa;case oa:if(i.havedict===0)return e.next_out=s,e.avail_out=c,e.next_in=a,e.avail_in=o,i.hold=l,i.bits=d,Xv;e.adler=i.check=1,i.mode=ct;case ct:if(t===Yv||t===ra)break e;case Ro:if(i.last){l>>>=d&7,d-=d&7,i.mode=Po;break}for(;d<3;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}switch(i.last=l&1,l>>>=1,d-=1,l&3){case 0:i.mode=Op;break;case 1:if(ay(i),i.mode=aa,t===ra){l>>>=2,d-=2;break e}break;case 2:i.mode=jp;break;case 3:e.msg="invalid block type",i.mode=W}l>>>=2,d-=2;break;case Op:for(l>>>=d&7,d-=d&7;d<32;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if((l&65535)!==(l>>>16^65535)){e.msg="invalid stored block lengths",i.mode=W;break}if(i.length=l&65535,l=0,d=0,i.mode=Mo,t===ra)break e;case Mo:i.mode=Dp;case Dp:if(f=i.length,f){if(f>o&&(f=o),f>c&&(f=c),f===0)break e;xe.arraySet(r,n,a,f,s),o-=f,a+=f,c-=f,s+=f,i.length-=f;break}i.mode=ct;break;case jp:for(;d<14;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(i.nlen=(l&31)+257,l>>>=5,d-=5,i.ndist=(l&31)+1,l>>>=5,d-=5,i.ncode=(l&15)+4,l>>>=4,d-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=W;break}i.have=0,i.mode=zp;case zp:for(;i.have<i.ncode;){for(;d<3;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}i.lens[C[i.have++]]=l&7,l>>>=3,d-=3}for(;i.have<19;)i.lens[C[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,I={bits:i.lenbits},S=On(Vv,i.lens,0,19,i.lencode,0,i.work,I),i.lenbits=I.bits,S){e.msg="invalid code lengths set",i.mode=W;break}i.have=0,i.mode=Bp;case Bp:for(;i.have<i.nlen+i.ndist;){for(;m=i.lencode[l&(1<<i.lenbits)-1],b=m>>>24,v=m>>>16&255,y=m&65535,!(b<=d);){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(y<16)l>>>=b,d-=b,i.lens[i.have++]=y;else{if(y===16){for(_=b+2;d<_;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(l>>>=b,d-=b,i.have===0){e.msg="invalid bit length repeat",i.mode=W;break}A=i.lens[i.have-1],f=3+(l&3),l>>>=2,d-=2}else if(y===17){for(_=b+3;d<_;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}l>>>=b,d-=b,A=0,f=3+(l&7),l>>>=3,d-=3}else{for(_=b+7;d<_;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}l>>>=b,d-=b,A=0,f=11+(l&127),l>>>=7,d-=7}if(i.have+f>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=W;break}for(;f--;)i.lens[i.have++]=A}}if(i.mode===W)break;if(i.lens[256]===0){e.msg="invalid code -- missing end-of-block",i.mode=W;break}if(i.lenbits=9,I={bits:i.lenbits},S=On(Yp,i.lens,0,i.nlen,i.lencode,0,i.work,I),i.lenbits=I.bits,S){e.msg="invalid literal/lengths set",i.mode=W;break}if(i.distbits=6,i.distcode=i.distdyn,I={bits:i.distbits},S=On(Kp,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,I),i.distbits=I.bits,S){e.msg="invalid distances set",i.mode=W;break}if(i.mode=aa,t===ra)break e;case aa:i.mode=sa;case sa:if(o>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=a,e.avail_in=o,i.hold=l,i.bits=d,Wv(e,p),s=e.next_out,r=e.output,c=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,l=i.hold,d=i.bits,i.mode===ct&&(i.back=-1);break}for(i.back=0;m=i.lencode[l&(1<<i.lenbits)-1],b=m>>>24,v=m>>>16&255,y=m&65535,!(b<=d);){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(v&&(v&240)===0){for(x=b,w=v,E=y;m=i.lencode[E+((l&(1<<x+w)-1)>>x)],b=m>>>24,v=m>>>16&255,y=m&65535,!(x+b<=d);){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}l>>>=x,d-=x,i.back+=x}if(l>>>=b,d-=b,i.back+=b,i.length=y,v===0){i.mode=$p;break}if(v&32){i.back=-1,i.mode=ct;break}if(v&64){e.msg="invalid literal/length code",i.mode=W;break}i.extra=v&15,i.mode=Np;case Np:if(i.extra){for(_=i.extra;d<_;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}i.length+=l&(1<<i.extra)-1,l>>>=i.extra,d-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=Fp;case Fp:for(;m=i.distcode[l&(1<<i.distbits)-1],b=m>>>24,v=m>>>16&255,y=m&65535,!(b<=d);){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if((v&240)===0){for(x=b,w=v,E=y;m=i.distcode[E+((l&(1<<x+w)-1)>>x)],b=m>>>24,v=m>>>16&255,y=m&65535,!(x+b<=d);){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}l>>>=x,d-=x,i.back+=x}if(l>>>=b,d-=b,i.back+=b,v&64){e.msg="invalid distance code",i.mode=W;break}i.offset=y,i.extra=v&15,i.mode=Hp;case Hp:if(i.extra){for(_=i.extra;d<_;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}i.offset+=l&(1<<i.extra)-1,l>>>=i.extra,d-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=W;break}i.mode=Up;case Up:if(c===0)break e;if(f=p-c,i.offset>f){if(f=i.offset-f,f>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=W;break}f>i.wnext?(f-=i.wnext,g=i.wsize-f):g=i.wnext-f,f>i.length&&(f=i.length),h=i.window}else h=r,g=s-i.offset,f=i.length;f>c&&(f=c),c-=f,i.length-=f;do r[s++]=h[g++];while(--f);i.length===0&&(i.mode=sa);break;case $p:if(c===0)break e;r[s++]=i.length,c--,i.mode=sa;break;case Po:if(i.wrap){for(;d<32;){if(o===0)break e;o--,l|=n[a++]<<d,d+=8}if(p-=c,e.total_out+=p,i.total+=p,p&&(e.adler=i.check=i.flags?Ye(i.check,r,p,s-p):Do(i.check,r,p,s-p)),p=c,(i.flags?l:Wp(l))!==i.check){e.msg="incorrect data check",i.mode=W;break}l=0,d=0}i.mode=qp;case qp:if(i.wrap&&i.flags){for(;d<32;){if(o===0)break e;o--,l+=n[a++]<<d,d+=8}if(l!==(i.total&4294967295)){e.msg="incorrect length check",i.mode=W;break}l=0,d=0}i.mode=Gp;case Gp:S=Kv;break e;case W:S=Xp;break e;case zo:return jo;case Jv:default:return Ce}return e.next_out=s,e.avail_out=c,e.next_in=a,e.avail_in=o,i.hold=l,i.bits=d,(i.wsize||p!==e.avail_out&&i.mode<W&&(i.mode<Po||t!==Ep))&&nf(e,e.output,e.next_out,p-e.avail_out)?(i.mode=zo,jo):(u-=e.avail_in,p-=e.avail_out,e.total_in+=u,e.total_out+=p,i.total+=p,i.wrap&&p&&(e.adler=i.check=i.flags?Ye(i.check,r,p,e.next_out-p):Do(i.check,r,p,e.next_out-p)),e.data_type=i.bits+(i.last?64:0)+(i.mode===ct?128:0)+(i.mode===aa||i.mode===Mo?256:0),(u===0&&p===0||t===Ep)&&S===Kt&&(S=Zv),S)}function oy(e){if(!e||!e.state)return Ce;var t=e.state;return t.window&&(t.window=null),e.state=null,Kt}function ly(e,t){var i;return!e||!e.state||(i=e.state,(i.wrap&2)===0)?Ce:(i.head=t,t.done=!1,Kt)}function cy(e,t){var i=t.length,n,r,a;return!e||!e.state||(n=e.state,n.wrap!==0&&n.mode!==oa)?Ce:n.mode===oa&&(r=1,r=Do(r,t,i,0),r!==n.check)?Xp:(a=nf(e,t,i,i),a?(n.mode=zo,jo):(n.havedict=1,Kt))}Oe.inflateReset=Qp;Oe.inflateReset2=ef;Oe.inflateResetKeep=Jp;Oe.inflateInit=ry;Oe.inflateInit2=tf;Oe.inflate=sy;Oe.inflateEnd=oy;Oe.inflateGetHeader=ly;Oe.inflateSetDictionary=cy;Oe.inflateInfo="pako inflate (from Nodeca project)"});var Bo=P((p1,af)=>{"use strict";af.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}});var of=P((f1,sf)=>{"use strict";function dy(){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}sf.exports=dy});var cf=P(jn=>{"use strict";var Oi=rf(),Dn=st(),la=Eo(),J=Bo(),No=Kr(),uy=So(),py=of(),lf=Object.prototype.toString;function Xt(e){if(!(this instanceof Xt))return new Xt(e);this.options=Dn.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new uy,this.strm.avail_out=0;var i=Oi.inflateInit2(this.strm,t.windowBits);if(i!==J.Z_OK)throw new Error(No[i]);if(this.header=new py,Oi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=la.string2buf(t.dictionary):lf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=Oi.inflateSetDictionary(this.strm,t.dictionary),i!==J.Z_OK)))throw new Error(No[i])}Xt.prototype.push=function(e,t){var i=this.strm,n=this.options.chunkSize,r=this.options.dictionary,a,s,o,c,l,d=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?J.Z_FINISH:J.Z_NO_FLUSH,typeof e=="string"?i.input=la.binstring2buf(e):lf.call(e)==="[object ArrayBuffer]"?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;do{if(i.avail_out===0&&(i.output=new Dn.Buf8(n),i.next_out=0,i.avail_out=n),a=Oi.inflate(i,J.Z_NO_FLUSH),a===J.Z_NEED_DICT&&r&&(a=Oi.inflateSetDictionary(this.strm,r)),a===J.Z_BUF_ERROR&&d===!0&&(a=J.Z_OK,d=!1),a!==J.Z_STREAM_END&&a!==J.Z_OK)return this.onEnd(a),this.ended=!0,!1;i.next_out&&(i.avail_out===0||a===J.Z_STREAM_END||i.avail_in===0&&(s===J.Z_FINISH||s===J.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=la.utf8border(i.output,i.next_out),c=i.next_out-o,l=la.buf2string(i.output,o),i.next_out=c,i.avail_out=n-c,c&&Dn.arraySet(i.output,i.output,o,c,0),this.onData(l)):this.onData(Dn.shrinkBuf(i.output,i.next_out))),i.avail_in===0&&i.avail_out===0&&(d=!0)}while((i.avail_in>0||i.avail_out===0)&&a!==J.Z_STREAM_END);return a===J.Z_STREAM_END&&(s=J.Z_FINISH),s===J.Z_FINISH?(a=Oi.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===J.Z_OK):(s===J.Z_SYNC_FLUSH&&(this.onEnd(J.Z_OK),i.avail_out=0),!0)};Xt.prototype.onData=function(e){this.chunks.push(e)};Xt.prototype.onEnd=function(e){e===J.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Dn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Fo(e,t){var i=new Xt(t);if(i.push(e,!0),i.err)throw i.msg||No[i.err];return i.result}function fy(e,t){return t=t||{},t.raw=!0,Fo(e,t)}jn.Inflate=Xt;jn.inflate=Fo;jn.inflateRaw=fy;jn.ungzip=Fo});var pf=P((g1,uf)=>{"use strict";var hy=st().assign,gy=fp(),my=cf(),by=Bo(),df={};hy(df,gy,my,by);uf.exports=df});var hf=P(da=>{"use strict";var vy=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",yy=pf(),ff=V(),ca=ye(),xy=vy?"uint8array":"array";da.magic="\b\0";function Zt(e,t){ca.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}ff.inherits(Zt,ca);Zt.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(ff.transformTo(xy,e.data),!1)};Zt.prototype.flush=function(){ca.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)};Zt.prototype.cleanUp=function(){ca.prototype.cleanUp.call(this),this._pako=null};Zt.prototype._createPako=function(){this._pako=new yy[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};da.compressWorker=function(e){return new Zt("Deflate",e)};da.uncompressWorker=function(){return new Zt("Inflate",{})}});var Uo=P(Ho=>{"use strict";var gf=ye();Ho.STORE={magic:"\0\0",compressWorker:function(){return new gf("STORE compression")},uncompressWorker:function(){return new gf("STORE decompression")}};Ho.DEFLATE=hf()});var $o=P(Jt=>{"use strict";Jt.LOCAL_FILE_HEADER="PK";Jt.CENTRAL_FILE_HEADER="PK";Jt.CENTRAL_DIRECTORY_END="PK";Jt.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Jt.ZIP64_CENTRAL_DIRECTORY_END="PK";Jt.DATA_DESCRIPTOR="PK\x07\b"});var yf=P((y1,vf)=>{"use strict";var Di=V(),ji=ye(),qo=Ei(),mf=qr(),ua=$o(),U=function(e,t){var i="",n;for(n=0;n<t;n++)i+=String.fromCharCode(e&255),e=e>>>8;return i},wy=function(e,t){var i=e;return e||(i=t?16893:33204),(i&65535)<<16},_y=function(e){return(e||0)&63},bf=function(e,t,i,n,r,a){var s=e.file,o=e.compression,c=a!==qo.utf8encode,l=Di.transformTo("string",a(s.name)),d=Di.transformTo("string",qo.utf8encode(s.name)),u=s.comment,p=Di.transformTo("string",a(u)),f=Di.transformTo("string",qo.utf8encode(u)),g=d.length!==s.name.length,h=f.length!==u.length,m,b,v="",y="",x="",w=s.dir,E=s.date,A={crc32:0,compressedSize:0,uncompressedSize:0};(!t||i)&&(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),!c&&(g||h)&&(S|=2048);var k=0,I=0;w&&(k|=16),r==="UNIX"?(I=798,k|=wy(s.unixPermissions,w)):(I=20,k|=_y(s.dosPermissions,w)),m=E.getUTCHours(),m=m<<6,m=m|E.getUTCMinutes(),m=m<<5,m=m|E.getUTCSeconds()/2,b=E.getUTCFullYear()-1980,b=b<<4,b=b|E.getUTCMonth()+1,b=b<<5,b=b|E.getUTCDate(),g&&(y=U(1,1)+U(mf(l),4)+d,v+="up"+U(y.length,2)+y),h&&(x=U(1,1)+U(mf(p),4)+f,v+="uc"+U(x.length,2)+x);var _="";_+=`
|
|
2
|
-
\0`,_+=U(S,2),_+=o.magic,_+=U(m,2),_+=U(b,2),_+=U(A.crc32,4),_+=U(A.compressedSize,4),_+=U(A.uncompressedSize,4),_+=U(l.length,2),_+=U(v.length,2);var C=ua.LOCAL_FILE_HEADER+_+l+v,R=ua.CENTRAL_FILE_HEADER+U(I,2)+_+U(p.length,2)+"\0\0\0\0"+U(k,4)+U(n,4)+l+v+p;return{fileRecord:C,dirRecord:R}},Ey=function(e,t,i,n,r){var a="",s=Di.transformTo("string",r(n));return a=ua.CENTRAL_DIRECTORY_END+"\0\0\0\0"+U(e,2)+U(e,2)+U(t,4)+U(i,4)+U(s.length,2)+s,a},Sy=function(e){var t="";return t=ua.DATA_DESCRIPTOR+U(e.crc32,4)+U(e.compressedSize,4)+U(e.uncompressedSize,4),t};function De(e,t,i,n){ji.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Di.inherits(De,ji);De.prototype.push=function(e){var t=e.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,ji.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(t+100*(i-n-1))/i:100}}))};De.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var i=bf(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0};De.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,i=bf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:Sy(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};De.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var i=this.bytesWritten-e,n=Ey(this.dirRecords.length,i,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})};De.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};De.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(i){t.processChunk(i)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(i){t.error(i)}),this};De.prototype.resume=function(){if(!ji.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};De.prototype.error=function(e){var t=this._sources;if(!ji.prototype.error.call(this,e))return!1;for(var i=0;i<t.length;i++)try{t[i].error(e)}catch{}return!0};De.prototype.lock=function(){ji.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};vf.exports=De});var wf=P(xf=>{"use strict";var Ay=Uo(),Cy=yf(),Ty=function(e,t){var i=e||t,n=Ay[i];if(!n)throw new Error(i+" is not a valid compression method !");return n};xf.generateWorker=function(e,t,i){var n=new Cy(t.streamFiles,i,t.platform,t.encodeFileName),r=0;try{e.forEach(function(a,s){r++;var o=Ty(s.options.compression,t.compression),c=s.options.compressionOptions||t.compressionOptions||{},l=s.dir,d=s.date;s._compressWorker(o,c).withStreamInfo("file",{name:a,dir:l,date:d,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(n)}),n.entriesCount=r}catch(a){n.error(a)}return n}});var Ef=P((w1,_f)=>{"use strict";var ky=V(),pa=ye();function zn(e,t){pa.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}ky.inherits(zn,pa);zn.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(i){t.push({data:i,meta:{percent:0}})}).on("error",function(i){t.isPaused?this.generatedError=i:t.error(i)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};zn.prototype.pause=function(){return pa.prototype.pause.call(this)?(this._stream.pause(),!0):!1};zn.prototype.resume=function(){return pa.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};_f.exports=zn});var If=P((_1,Pf)=>{"use strict";var Ly=Ei(),Bn=V(),Tf=ye(),Ry=Ys(),kf=Ks(),Sf=Gr(),My=Su(),Py=wf(),Af=fn(),Iy=Ef(),Lf=function(e,t,i){var n=Bn.getTypeOf(t),r,a=Bn.extend(i||{},kf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=Rf(e)),a.createFolders&&(r=Oy(e))&&Mf.call(this,r,!0);var s=n==="string"&&a.binary===!1&&a.base64===!1;(!i||typeof i.binary=="undefined")&&(a.binary=!s);var o=t instanceof Sf&&t.uncompressedSize===0;(o||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",n="string");var c=null;t instanceof Sf||t instanceof Tf?c=t:Af.isNode&&Af.isStream(t)?c=new Iy(e,t):c=Bn.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var l=new My(e,c,a);this.files[e]=l},Oy=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},Rf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},Mf=function(e,t){return t=typeof t!="undefined"?t:kf.createFolders,e=Rf(e),this.files[e]||Lf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function Cf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Dy={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,i,n;for(t in this.files)n=this.files[t],i=t.slice(this.root.length,t.length),i&&t.slice(0,this.root.length)===this.root&&e(i,n)},filter:function(e){var t=[];return this.forEach(function(i,n){e(i,n)&&t.push(n)}),t},file:function(e,t,i){if(arguments.length===1)if(Cf(e)){var n=e;return this.filter(function(a,s){return!s.dir&&n.test(a)})}else{var r=this.files[this.root+e];return r&&!r.dir?r:null}else e=this.root+e,Lf.call(this,e,t,i);return this},folder:function(e){if(!e)return this;if(Cf(e))return this.filter(function(r,a){return a.dir&&e.test(r)});var t=this.root+e,i=Mf.call(this,t),n=this.clone();return n.root=i.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var i=this.filter(function(r,a){return a.name.slice(0,e.length)===e}),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,i={};try{if(i=Bn.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Ly.utf8encode}),i.type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),i.type==="binarystring"&&(i.type="string"),!i.type)throw new Error("No output type specified.");Bn.checkSupport(i.type),(i.platform==="darwin"||i.platform==="freebsd"||i.platform==="linux"||i.platform==="sunos")&&(i.platform="UNIX"),i.platform==="win32"&&(i.platform="DOS");var n=i.comment||this.comment||"";t=Py.generateWorker(this,i,n)}catch(r){t=new Tf("error"),t.error(r)}return new Ry(t,i.type||"string",i.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};Pf.exports=Dy});var Go=P((E1,Df)=>{"use strict";var jy=V();function Of(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}Of.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,i;for(this.checkOffset(e),i=this.index+e-1;i>=this.index;i--)t=(t<<8)+this.byteAt(i);return this.index+=e,t},readString:function(e){return jy.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};Df.exports=Of});var Wo=P((S1,zf)=>{"use strict";var jf=Go(),zy=V();function zi(e){jf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}zy.inherits(zi,jf);zi.prototype.byteAt=function(e){return this.data[this.zero+e]};zi.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),r=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===i&&this.data[a+2]===n&&this.data[a+3]===r)return a-this.zero;return-1};zi.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),r=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&i===a[1]&&n===a[2]&&r===a[3]};zi.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};zf.exports=zi});var Ff=P((A1,Nf)=>{"use strict";var Bf=Go(),By=V();function Bi(e){Bf.call(this,e)}By.inherits(Bi,Bf);Bi.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Bi.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Bi.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Bi.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Nf.exports=Bi});var Yo=P((C1,Uf)=>{"use strict";var Hf=Wo(),Ny=V();function Vo(e){Hf.call(this,e)}Ny.inherits(Vo,Hf);Vo.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Uf.exports=Vo});var Gf=P((T1,qf)=>{"use strict";var $f=Yo(),Fy=V();function Ko(e){$f.call(this,e)}Fy.inherits(Ko,$f);Ko.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};qf.exports=Ko});var Xo=P((k1,Vf)=>{"use strict";var fa=V(),Wf=rt(),Hy=Wo(),Uy=Ff(),$y=Gf(),qy=Yo();Vf.exports=function(e){var t=fa.getTypeOf(e);return fa.checkSupport(t),t==="string"&&!Wf.uint8array?new Uy(e):t==="nodebuffer"?new $y(e):Wf.uint8array?new qy(fa.transformTo("uint8array",e)):new Hy(fa.transformTo("array",e))}});var Zf=P((L1,Xf)=>{"use strict";var Zo=Xo(),Mt=V(),Gy=Gr(),Yf=qr(),ha=Ei(),ga=Uo(),Wy=rt(),Vy=0,Yy=3,Ky=function(e){for(var t in ga)if(Object.prototype.hasOwnProperty.call(ga,t)&&ga[t].magic===e)return ga[t];return null};function Kf(e,t){this.options=e,this.loadOptions=t}Kf.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,i;if(e.skip(22),this.fileNameLength=e.readInt(2),i=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(i),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(t=Ky(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+Mt.pretty(this.compressionMethod)+" unknown (inner file : "+Mt.transformTo("string",this.fileName)+")");this.decompressed=new Gy(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Vy&&(this.dosPermissions=this.externalFileAttributes&63),e===Yy&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=Zo(this.extraFields[1].value);this.uncompressedSize===Mt.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Mt.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Mt.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Mt.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,i,n,r;for(this.extraFields||(this.extraFields={});e.index+4<t;)i=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[i]={id:i,length:n,value:r};e.setIndex(t)},handleUTF8:function(){var e=Wy.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=ha.utf8decode(this.fileName),this.fileCommentStr=ha.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var i=Mt.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(n!==null)this.fileCommentStr=n;else{var r=Mt.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=Zo(e.value);return t.readInt(1)!==1||Yf(this.fileName)!==t.readInt(4)?null:ha.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=Zo(e.value);return t.readInt(1)!==1||Yf(this.fileComment)!==t.readInt(4)?null:ha.utf8decode(t.readData(e.length-5))}return null}};Xf.exports=Kf});var eh=P((R1,Qf)=>{"use strict";var Xy=Xo(),dt=V(),je=$o(),Zy=Zf(),Jy=rt();function Jf(e){this.files=[],this.loadOptions=e}Jf.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+dt.pretty(t)+", expected "+dt.pretty(e)+")")}},isSignature:function(e,t){var i=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4),r=n===t;return this.reader.setIndex(i),r},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 e=this.reader.readData(this.zipCommentLength),t=Jy.uint8array?"uint8array":"array",i=dt.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(i)},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 e=this.zip64EndOfCentralSize-44,t=0,i,n,r;t<e;)i=this.reader.readInt(2),n=this.reader.readInt(4),r=this.reader.readData(n),this.zip64ExtensibleData[i]={id:i,length:n,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(je.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(je.CENTRAL_FILE_HEADER);)e=new Zy({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(je.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,je.LOCAL_FILE_HEADER);throw t?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var i=e;if(this.checkSignature(je.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===dt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===dt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===dt.MAX_VALUE_16BITS||this.centralDirRecords===dt.MAX_VALUE_16BITS||this.centralDirSize===dt.MAX_VALUE_32BITS||this.centralDirOffset===dt.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(je.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(je.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,je.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(je.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(je.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=i-n;if(r>0)this.isSignature(i,je.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=Xy(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};Qf.exports=Jf});var nh=P((M1,ih)=>{"use strict";var Jo=V(),ma=xi(),Qy=Ei(),ex=eh(),tx=Js(),th=fn();function ix(e){return new ma.Promise(function(t,i){var n=e.decompressed.getContentWorker().pipe(new tx);n.on("error",function(r){i(r)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}ih.exports=function(e,t){var i=this;return t=Jo.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Qy.utf8decode}),th.isNode&&th.isStream(e)?ma.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Jo.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(n){var r=new ex(t);return r.load(n),r}).then(function(r){var a=[ma.Promise.resolve(r)],s=r.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(ix(s[o]));return ma.Promise.all(a)}).then(function(r){for(var a=r.shift(),s=a.files,o=0;o<s.length;o++){var c=s[o],l=c.fileNameStr,d=Jo.resolve(c.fileNameStr);i.file(d,c.decompressed,{binary:!0,optimizedBinaryString:!0,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders}),c.dir||(i.file(d).unsafeOriginalName=l)}return a.zipComment.length&&(i.comment=a.zipComment),i})}});var ah=P((P1,rh)=>{"use strict";function Te(){if(!(this instanceof Te))return new Te;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 e=new Te;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}Te.prototype=If();Te.prototype.loadAsync=nh();Te.support=rt();Te.defaults=Ks();Te.version="3.10.1";Te.loadAsync=function(e,t){return new Te().loadAsync(e,t)};Te.external=xi();rh.exports=Te});import{Application as Fx}from"pixi.js";var xt={};function cr(e,t,i=!1){xt[e]||(xt[e]=[]),xt[e].push({fn:t,once:i})}function is(e,t){if(xt[e]){if(!t){delete xt[e];return}xt[e]=xt[e].filter(i=>i.fn!==t)}}function dr(e,...t){let i=xt[e];if(i)for(let n of[...i])n.fn(...t),n.once&&is(e,n.fn)}function _e(e,t){cr(e,t,!0)}var te=null,Me=[],oi=null;function mc(e){te=e,Me=[],oi!==null&&(clearTimeout(oi),oi=null)}function bc(){var e,t,i;return{endpoint:(te==null?void 0:te.endpoint)||"",transport:(te==null?void 0:te.transport)||"beacon",batchSize:(e=te==null?void 0:te.batchSize)!=null?e:10,flushIntervalMs:(t=te==null?void 0:te.flushIntervalMs)!=null?t:300,maxQueue:(i=te==null?void 0:te.maxQueue)!=null?i:200,debug:!!(te!=null&&te.debug)}}async function hc(e,t,i,n){let r=JSON.stringify(t);if(i==="beacon"&&typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function")try{let a=navigator.sendBeacon(e,new Blob([r],{type:"application/json"}));n&&console.log("[handler.telemetry] beacon",a,t);return}catch(a){n&&console.warn("[handler.telemetry] beacon failed, fallback to fetch",a)}try{await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0}),n&&console.log("[handler.telemetry] fetch",t)}catch(a){n&&console.warn("[handler.telemetry] fetch failed",a)}}function ns(e,t){let i=bc();if(t&&i.endpoint){if(Me.push(e),Me.length>i.maxQueue&&(Me=Me.slice(Me.length-i.maxQueue)),Me.length>=i.batchSize){gc();return}oi===null&&(oi=window.setTimeout(()=>{oi=null,gc()},i.flushIntervalMs))}}async function gc(){let e=bc();if(!e.endpoint||Me.length===0)return;let t=Me.splice(0,e.batchSize);await hc(e.endpoint,{events:t},e.transport,e.debug),Me.length>0&&await hc(e.endpoint,{events:Me.splice(0,e.batchSize)},e.transport,e.debug)}function vc(e){return Math.max(0,Math.min(1,e))}function vg(e){let t=String(e!=null?e:"power2.out");if(t==="linear")return i=>i;if(t==="sine.inOut")return i=>.5-Math.cos(Math.PI*i)/2;if(t==="power2.out"||t==="easeOutQuad")return i=>1-(1-i)*(1-i);if(t.startsWith("back.out")){let i=t.match(/back\.out\(([\d.]+)\)/),n=i?Number(i[1]):1.8;return r=>1+(n+1)*Math.pow(r-1,3)+n*Math.pow(r-1,2)}return i=>1-(1-i)*(1-i)}function nn(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function yg(e,t){let i=e==null?void 0:e[t];return typeof i=="number"?i:0}function yc(e,t,i){try{e[t]=i}catch{}}function xg(e){let t=e==null?void 0:e.scale;if(!t)return null;let i=typeof t.x=="number"?t.x:1,n=typeof t.y=="number"?t.y:1;return{x:i,y:n}}function xc(e,t){let i=e==null?void 0:e.scale;if(i)try{typeof i.set=="function"?i.set(t.x,t.y):(typeof i.x=="number"&&(i.x=t.x),typeof i.y=="number"&&(i.y=t.y))}catch{}}function wc(e,t){let i=xg(e);if(!i)return{from:null,to:null};let n=null,r=null;return typeof t.scale=="number"?(n=t.scale,r=t.scale):t.scale&&typeof t.scale=="object"&&(typeof t.scale.x=="number"&&(n=t.scale.x),typeof t.scale.y=="number"&&(r=t.scale.y)),typeof t.scaleX=="number"&&(n=t.scaleX),typeof t.scaleY=="number"&&(r=t.scaleY),n===null&&r===null?{from:null,to:null}:{from:{x:i.x,y:i.y},to:{x:n!=null?n:i.x,y:r!=null?r:i.y}}}function _c(){let e=new Set,t=new WeakMap,i=null,n=()=>{if(i!=null)return;i=requestAnimationFrame(()=>{i=null,o(),e.size>0&&n()})},r=d=>{var p;e.add(d);let u=(p=t.get(d.target))!=null?p:new Set;u.add(d),t.set(d.target,u),n()},a=d=>{e.delete(d);let u=t.get(d.target);u&&(u.delete(d),u.size===0&&t.delete(d.target))},s=d=>{d.killed||(d.killed=!0,a(d))},o=()=>{var u,p;let d=nn();for(let f of Array.from(e)){if(f.killed||f.paused)continue;let g=d-f.startMs-f.delayMs;if(g<0)continue;let h=f.durationMs>0?g/f.durationMs:1,m=vc(h),b=f.repeat>=0?f.repeat+1:1,v=f.repeat>0?Math.min(Math.floor(h),b-1):0;if(f.repeat>0&&h>=1){let w=h-v;m=vc(w)}let y=f.ease(m);f.yoyo&&v%2===1&&(y=1-y);for(let w of f.props)yc(f.target,w.key,w.from+(w.to-w.from)*y);f.scaleFrom&&f.scaleTo&&xc(f.target,{x:f.scaleFrom.x+(f.scaleTo.x-f.scaleFrom.x)*y,y:f.scaleFrom.y+(f.scaleTo.y-f.scaleFrom.y)*y});try{(u=f.onUpdate)==null||u.call(f)}catch{}if(h>=b){s(f);try{(p=f.onComplete)==null||p.call(f)}catch{}}}},c=(d,u,p)=>{var w;let f=Math.max(0,(typeof u.duration=="number"?u.duration:.5)*1e3),g=Math.max(0,(typeof u.delay=="number"?u.delay:0)*1e3+((w=p==null?void 0:p.delayMsOverride)!=null?w:0)),h=vg(u.ease),m=typeof u.repeat=="number"?Math.max(0,u.repeat|0):0,b=u.yoyo===!0,v=new Set(["duration","delay","ease","repeat","yoyo","onUpdate","onComplete","scale","scaleX","scaleY"]),y=[];for(let E of Object.keys(u)){if(v.has(E))continue;let A=u[E];typeof A=="number"&&y.push({key:E,from:yg(d,E),to:A})}let x=wc(d,u);return{target:d,startMs:nn(),delayMs:g,durationMs:f,ease:h,props:y,scaleFrom:x.from,scaleTo:x.to,repeat:m,yoyo:b,onUpdate:typeof u.onUpdate=="function"?u.onUpdate:void 0,onComplete:typeof u.onComplete=="function"?u.onComplete:void 0,killed:!1,paused:!1,pauseAtMs:null}},l={to(d,u){let p=c(d,u);return r(p),{kill:()=>s(p),pause:()=>{p.paused||(p.paused=!0,p.pauseAtMs=nn())},resume:()=>{var h;if(!p.paused)return;let f=(h=p.pauseAtMs)!=null?h:nn(),g=nn()-f;p.startMs+=g,p.paused=!1,p.pauseAtMs=null},isActive:()=>!p.killed&&!p.paused}},fromTo(d,u,p){return l.set(d,u),l.to(d,p)},set(d,u){if(!d||!u)return;for(let f of Object.keys(u)){let g=u[f];f==="scale"||f==="scaleX"||f==="scaleY"||typeof g=="number"&&yc(d,f,g)}let p=wc(d,u);p.to&&xc(d,p.to)},killTweensOf(d){let u=t.get(d);if(u)for(let p of Array.from(u))s(p)},timeline(d={}){let u=[],p=0,f=!1,g=[],h=v=>{if(typeof v=="number")return Math.max(0,v*1e3);let y=typeof v=="string"?v.trim():"";return y.startsWith("+=")?p+Math.max(0,Number(y.slice(2))*1e3||0):y?Math.max(0,Number(y)*1e3||0):p},m=v=>{u.push(v);let y=Math.max(0,(typeof v.vars.duration=="number"?v.vars.duration:.5)*1e3);p=Math.max(p,v.atMs+y)},b={to(v,y,x){return m({kind:"to",target:v,vars:y,atMs:h(x)}),b},fromTo(v,y,x,w){return m({kind:"fromTo",target:v,vars:x,from:y,atMs:h(w)}),b},play(){var v,y;if(f)return b;f=!0,g=[];for(let x of u)x.kind==="fromTo"&&l.set(x.target,(v=x.from)!=null?v:{}),g.push(l.to(x.target,{...x.vars,delay:x.atMs/1e3+((y=x.vars.delay)!=null?y:0)}));return b},pause(){for(let v of g)v.pause();return b},kill(){for(let v of g)v.kill();g=[],f=!1}};return d.paused||b.play(),b}};return l}function Ec(){if(typeof window=="undefined")return;let e=window;if(!e.gsap)try{e.gsap=_c()}catch{}}var Sc={name:"handler-playable-sdk",version:"0.3.32",type:"module",description:"Handler Playable SDK v0.1 with contract-aligned surface (root sandbox, canonical event envelope).",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",require:"./dist/index.cjs"},"./pixi":{types:"./dist/pixi/index.d.ts",import:"./dist/pixi/index.js",require:"./dist/pixi/index.cjs"},"./pixi/index.css":{import:"./dist/pixi/index.css",require:"./dist/pixi/index.css"},"./three":{types:"./dist/three/index.d.ts",import:"./dist/three/index.js",require:"./dist/three/index.cjs"},"./cli":{types:"./dist/cli/index.d.ts",import:"./dist/cli/index.js",require:"./dist/cli/index.cjs"}},bin:{"handler-student-helper":"./bin/student-helper.mjs","handler-validate":"./bin/validate.mjs","handler-sync-screens":"./bin/sync-screens.mjs","handler-brand-dna":"./bin/brand-dna.mjs","handler-setup-library":"./bin/setup-library.mjs","handler-screen-helper":"./bin/screen-helper.mjs"},scripts:{prebuild:"python3 src/preview/build-css.py",build:"tsup src/index.ts src/pixi/index.ts src/three/index.ts src/cli/index.ts --format cjs,esm --dts --clean --minify --external lottie-web && npm run create-mjs-symlinks && npm run postbuild-cli && npm run obfuscate && npm run postbuild",postbuild:"python3 src/preview/copy-css-to-dist.py","postbuild-cli":"cp src/cli/*.mjs dist/cli/ && chmod +x dist/cli/*.mjs && chmod +x bin/*.mjs","create-mjs-symlinks":"cd dist && ln -sf index.js index.mjs && cd pixi && ln -sf index.js index.mjs && cd ../three && ln -sf index.js index.mjs","build:dev":"tsup src/index.ts src/pixi/index.ts src/three/index.ts src/cli/index.ts --format cjs,esm --dts --clean --external lottie-web && npm run create-mjs-symlinks && npm run postbuild-cli",obfuscate:"javascript-obfuscator dist/pixi/index.js --output dist/pixi/index.js --config obfuscator.config.json && javascript-obfuscator dist/three/index.js --output dist/three/index.js --config obfuscator.config.json && javascript-obfuscator dist/cli/index.js --output dist/cli/index.js --config obfuscator.config.json && npm run obfuscate-cli","obfuscate-cli":'for file in dist/cli/*.mjs; do javascript-obfuscator "$file" --output "$file" --config obfuscator.config.json; done',lint:"eslint 'src/**/*.{ts,tsx}'",typecheck:"tsc --noEmit",prepublishOnly:"npm run build","publish:update":"node scripts/publish-and-update.cjs patch","publish:update:minor":"node scripts/publish-and-update.cjs minor","publish:update:major":"node scripts/publish-and-update.cjs major"},author:"Handler",license:"MIT",publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/HandlerAIGames/handler-playable-sdk.git"},files:["dist","bin","LICENSE","README.md"],peerDependencies:{"lottie-web":"^5.0.0","pixi.js":"^8.0.0",three:"^0.182.0"},peerDependenciesMeta:{"pixi.js":{optional:!0},three:{optional:!0},"lottie-web":{optional:!0}},devDependencies:{"@types/three":"^0.182.0",eslint:"^9.39.2","javascript-obfuscator":"^5.1.0","pixi.js":"8.8.1",three:"^0.182.0","ts-node":"^10.9.2",tsup:"^8.4.0",typescript:"^5.7.2","typescript-eslint":"^8.53.0"},dependencies:{"@google/genai":"^1.35.0","@google/generative-ai":"^0.24.1",sharp:"^0.34.5"}};var Ee=0,_g=Ee++,Ac=Ee++,Cc=Ee++,Tc=Ee++,kc=Ee++,Lc=Ee++,Rc=Ee++,Mc=Ee++,Pc=Ee++,Ic=Ee++,Oc=Ee++,Dc=Ee++,K=_g;function jc(){return K===Ac}function zc(){return K===Cc}function Bc(){return K===Tc}function Nc(){return K===kc}function li(){return K===Lc}function ci(){return K===Rc}function Fc(){return K===Mc}function Hc(){return K===Pc}function Uc(){return K===Ic}function rs(){return K===Oc}function as(){return K===Dc}function $c(){let e=typeof AD_PROTOCOL!="undefined"?AD_PROTOCOL:"none",t=typeof AD_NETWORK!="undefined"?AD_NETWORK:"web_embed";if(e==="mraid")try{mraid.getState(),K=Ac;return}catch{}else if(e==="dapi")try{dapi.isReady(),K=Cc;return}catch{}if(t==="facebook")try{typeof FbPlayableAd!="undefined"&&(K=Tc)}catch{}else if(t==="google")try{typeof ExitApi!="undefined"&&(K=kc)}catch{}else if(t==="mintegral")window.gameReady&&(K=Lc);else if(t==="tapjoy")window.TJ_API&&(K=Rc);else if(t==="tiktok")window.openAppStore&&(K=Mc);else if(t==="smadex")try{window.smxTracking&&(K=Pc)}catch{}else if(t==="snapchat")try{window.ScPlayableAd&&(K=Ic)}catch{}else t==="vungle"?K=Oc:(e==="nucleo"||t==="nucleo")&&(K=Dc)}import ss from"lottie-web";var qc=ss;typeof window!="undefined"&&(window.lottie=ss,window.__baseLottie=ss);function ie(e,t){let i=(r,a)=>a===0?r:i(a,r%a),n=i(e,t);return`${e/n}:${t/n}`}var D0=[{id:"iphone-15-pro-max",label:"iPhone 15 Pro Max",width:430,height:932,category:"iphone",ratio:ie(430,932)},{id:"iphone-15-pro",label:"iPhone 15 Pro",width:393,height:852,category:"iphone",ratio:ie(393,852)},{id:"iphone-15",label:"iPhone 15",width:393,height:852,category:"iphone",ratio:ie(393,852)},{id:"iphone-14",label:"iPhone 14",width:390,height:844,category:"iphone",ratio:ie(390,844)},{id:"iphone-se",label:"iPhone SE",width:375,height:667,category:"iphone",ratio:ie(375,667)},{id:"iphone-12-mini",label:"iPhone 12 Mini",width:360,height:780,category:"iphone",ratio:ie(360,780)}],j0=[{id:"pixel-8-pro",label:"Pixel 8 Pro",width:448,height:998,category:"android",ratio:ie(448,998)},{id:"pixel-8",label:"Pixel 8",width:412,height:915,category:"android",ratio:ie(412,915)},{id:"samsung-s24-ultra",label:"Samsung S24 Ultra",width:412,height:915,category:"android",ratio:ie(412,915)},{id:"samsung-s24",label:"Samsung S24",width:360,height:780,category:"android",ratio:ie(360,780)},{id:"samsung-a54",label:"Samsung A54",width:412,height:915,category:"android",ratio:ie(412,915)},{id:"oneplus-12",label:"OnePlus 12",width:412,height:915,category:"android",ratio:ie(412,915)}],z0=[{id:"ipad-pro-12",label:'iPad Pro 12.9"',width:1024,height:1366,category:"tablet",ratio:ie(1024,1366)},{id:"ipad-pro-11",label:'iPad Pro 11"',width:834,height:1194,category:"tablet",ratio:ie(834,1194)},{id:"ipad-air",label:"iPad Air",width:820,height:1180,category:"tablet",ratio:ie(820,1180)},{id:"ipad-mini",label:"iPad Mini",width:768,height:1024,category:"tablet",ratio:ie(768,1024)},{id:"samsung-tab-s9",label:"Samsung Tab S9",width:800,height:1280,category:"tablet",ratio:ie(800,1280)}],os=[{id:"playable-portrait",label:"Playable Portrait",width:320,height:480,category:"playable",ratio:"2:3",mraidScale:1},{id:"mraid-320x480",label:"MRAID 320\xD7480",width:320,height:480,category:"playable",ratio:"2:3",mraidScale:1},{id:"iphone-14",label:"iPhone 14",width:390,height:844,category:"playable",ratio:ie(390,844),mraidScale:.7},{id:"ipad-mini",label:"iPad Mini",width:768,height:1024,category:"playable",ratio:ie(768,1024),mraidScale:.7}];var Gc=[...os],Wc=[{category:"playable",label:"Playable Ad",devices:os}],ls=os[0];function di(e){return Gc.find(t=>t.id===e)||ls}function B0(e){return Gc.filter(t=>t.category===e)}var ur=class{constructor(){this.root=null;this.listContainer=null;this.searchInput=null;this.selectedId=null;this.options=null;this.retryTimer=null;this.screenFilter="all"}getScreenFilterStorageKey(){return`handler_preview_screen_filter::${typeof window!="undefined"&&window.__HANDLER_PROJECT_ID||"default"}`}render(){return`
|
|
2
|
+
\0`,_+=U(S,2),_+=o.magic,_+=U(m,2),_+=U(b,2),_+=U(A.crc32,4),_+=U(A.compressedSize,4),_+=U(A.uncompressedSize,4),_+=U(l.length,2),_+=U(v.length,2);var C=ua.LOCAL_FILE_HEADER+_+l+v,R=ua.CENTRAL_FILE_HEADER+U(I,2)+_+U(p.length,2)+"\0\0\0\0"+U(k,4)+U(n,4)+l+v+p;return{fileRecord:C,dirRecord:R}},Ey=function(e,t,i,n,r){var a="",s=Di.transformTo("string",r(n));return a=ua.CENTRAL_DIRECTORY_END+"\0\0\0\0"+U(e,2)+U(e,2)+U(t,4)+U(i,4)+U(s.length,2)+s,a},Sy=function(e){var t="";return t=ua.DATA_DESCRIPTOR+U(e.crc32,4)+U(e.compressedSize,4)+U(e.uncompressedSize,4),t};function De(e,t,i,n){ji.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}Di.inherits(De,ji);De.prototype.push=function(e){var t=e.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,ji.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(t+100*(i-n-1))/i:100}}))};De.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var i=bf(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0};De.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,i=bf(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:Sy(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null};De.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var i=this.bytesWritten-e,n=Ey(this.dirRecords.length,i,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})};De.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()};De.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(i){t.processChunk(i)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(i){t.error(i)}),this};De.prototype.resume=function(){if(!ji.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};De.prototype.error=function(e){var t=this._sources;if(!ji.prototype.error.call(this,e))return!1;for(var i=0;i<t.length;i++)try{t[i].error(e)}catch{}return!0};De.prototype.lock=function(){ji.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()};vf.exports=De});var wf=P(xf=>{"use strict";var Ay=Uo(),Cy=yf(),Ty=function(e,t){var i=e||t,n=Ay[i];if(!n)throw new Error(i+" is not a valid compression method !");return n};xf.generateWorker=function(e,t,i){var n=new Cy(t.streamFiles,i,t.platform,t.encodeFileName),r=0;try{e.forEach(function(a,s){r++;var o=Ty(s.options.compression,t.compression),c=s.options.compressionOptions||t.compressionOptions||{},l=s.dir,d=s.date;s._compressWorker(o,c).withStreamInfo("file",{name:a,dir:l,date:d,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(n)}),n.entriesCount=r}catch(a){n.error(a)}return n}});var Ef=P((w1,_f)=>{"use strict";var ky=V(),pa=ye();function zn(e,t){pa.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}ky.inherits(zn,pa);zn.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(i){t.push({data:i,meta:{percent:0}})}).on("error",function(i){t.isPaused?this.generatedError=i:t.error(i)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})};zn.prototype.pause=function(){return pa.prototype.pause.call(this)?(this._stream.pause(),!0):!1};zn.prototype.resume=function(){return pa.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),!0):!1};_f.exports=zn});var If=P((_1,Pf)=>{"use strict";var Ly=Ei(),Bn=V(),Tf=ye(),Ry=Ys(),kf=Ks(),Sf=Gr(),My=Su(),Py=wf(),Af=fn(),Iy=Ef(),Lf=function(e,t,i){var n=Bn.getTypeOf(t),r,a=Bn.extend(i||{},kf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=!0),a.dosPermissions&&a.dosPermissions&16&&(a.dir=!0),a.dir&&(e=Rf(e)),a.createFolders&&(r=Oy(e))&&Mf.call(this,r,!0);var s=n==="string"&&a.binary===!1&&a.base64===!1;(!i||typeof i.binary=="undefined")&&(a.binary=!s);var o=t instanceof Sf&&t.uncompressedSize===0;(o||a.dir||!t||t.length===0)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",n="string");var c=null;t instanceof Sf||t instanceof Tf?c=t:Af.isNode&&Af.isStream(t)?c=new Iy(e,t):c=Bn.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var l=new My(e,c,a);this.files[e]=l},Oy=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},Rf=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},Mf=function(e,t){return t=typeof t!="undefined"?t:kf.createFolders,e=Rf(e),this.files[e]||Lf.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function Cf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Dy={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,i,n;for(t in this.files)n=this.files[t],i=t.slice(this.root.length,t.length),i&&t.slice(0,this.root.length)===this.root&&e(i,n)},filter:function(e){var t=[];return this.forEach(function(i,n){e(i,n)&&t.push(n)}),t},file:function(e,t,i){if(arguments.length===1)if(Cf(e)){var n=e;return this.filter(function(a,s){return!s.dir&&n.test(a)})}else{var r=this.files[this.root+e];return r&&!r.dir?r:null}else e=this.root+e,Lf.call(this,e,t,i);return this},folder:function(e){if(!e)return this;if(Cf(e))return this.filter(function(r,a){return a.dir&&e.test(r)});var t=this.root+e,i=Mf.call(this,t),n=this.clone();return n.root=i.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var i=this.filter(function(r,a){return a.name.slice(0,e.length)===e}),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,i={};try{if(i=Bn.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Ly.utf8encode}),i.type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),i.type==="binarystring"&&(i.type="string"),!i.type)throw new Error("No output type specified.");Bn.checkSupport(i.type),(i.platform==="darwin"||i.platform==="freebsd"||i.platform==="linux"||i.platform==="sunos")&&(i.platform="UNIX"),i.platform==="win32"&&(i.platform="DOS");var n=i.comment||this.comment||"";t=Py.generateWorker(this,i,n)}catch(r){t=new Tf("error"),t.error(r)}return new Ry(t,i.type||"string",i.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};Pf.exports=Dy});var Go=P((E1,Df)=>{"use strict";var jy=V();function Of(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}Of.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,i;for(this.checkOffset(e),i=this.index+e-1;i>=this.index;i--)t=(t<<8)+this.byteAt(i);return this.index+=e,t},readString:function(e){return jy.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};Df.exports=Of});var Wo=P((S1,zf)=>{"use strict";var jf=Go(),zy=V();function zi(e){jf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}zy.inherits(zi,jf);zi.prototype.byteAt=function(e){return this.data[this.zero+e]};zi.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),r=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===i&&this.data[a+2]===n&&this.data[a+3]===r)return a-this.zero;return-1};zi.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),r=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&i===a[1]&&n===a[2]&&r===a[3]};zi.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};zf.exports=zi});var Ff=P((A1,Nf)=>{"use strict";var Bf=Go(),By=V();function Bi(e){Bf.call(this,e)}By.inherits(Bi,Bf);Bi.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};Bi.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};Bi.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};Bi.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Nf.exports=Bi});var Yo=P((C1,Uf)=>{"use strict";var Hf=Wo(),Ny=V();function Vo(e){Hf.call(this,e)}Ny.inherits(Vo,Hf);Vo.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Uf.exports=Vo});var Gf=P((T1,qf)=>{"use strict";var $f=Yo(),Fy=V();function Ko(e){$f.call(this,e)}Fy.inherits(Ko,$f);Ko.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};qf.exports=Ko});var Xo=P((k1,Vf)=>{"use strict";var fa=V(),Wf=rt(),Hy=Wo(),Uy=Ff(),$y=Gf(),qy=Yo();Vf.exports=function(e){var t=fa.getTypeOf(e);return fa.checkSupport(t),t==="string"&&!Wf.uint8array?new Uy(e):t==="nodebuffer"?new $y(e):Wf.uint8array?new qy(fa.transformTo("uint8array",e)):new Hy(fa.transformTo("array",e))}});var Zf=P((L1,Xf)=>{"use strict";var Zo=Xo(),Mt=V(),Gy=Gr(),Yf=qr(),ha=Ei(),ga=Uo(),Wy=rt(),Vy=0,Yy=3,Ky=function(e){for(var t in ga)if(Object.prototype.hasOwnProperty.call(ga,t)&&ga[t].magic===e)return ga[t];return null};function Kf(e,t){this.options=e,this.loadOptions=t}Kf.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,i;if(e.skip(22),this.fileNameLength=e.readInt(2),i=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(i),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(t=Ky(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+Mt.pretty(this.compressionMethod)+" unknown (inner file : "+Mt.transformTo("string",this.fileName)+")");this.decompressed=new Gy(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Vy&&(this.dosPermissions=this.externalFileAttributes&63),e===Yy&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=Zo(this.extraFields[1].value);this.uncompressedSize===Mt.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Mt.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Mt.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Mt.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,i,n,r;for(this.extraFields||(this.extraFields={});e.index+4<t;)i=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[i]={id:i,length:n,value:r};e.setIndex(t)},handleUTF8:function(){var e=Wy.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=ha.utf8decode(this.fileName),this.fileCommentStr=ha.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var i=Mt.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(n!==null)this.fileCommentStr=n;else{var r=Mt.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=Zo(e.value);return t.readInt(1)!==1||Yf(this.fileName)!==t.readInt(4)?null:ha.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=Zo(e.value);return t.readInt(1)!==1||Yf(this.fileComment)!==t.readInt(4)?null:ha.utf8decode(t.readData(e.length-5))}return null}};Xf.exports=Kf});var eh=P((R1,Qf)=>{"use strict";var Xy=Xo(),dt=V(),je=$o(),Zy=Zf(),Jy=rt();function Jf(e){this.files=[],this.loadOptions=e}Jf.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+dt.pretty(t)+", expected "+dt.pretty(e)+")")}},isSignature:function(e,t){var i=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4),r=n===t;return this.reader.setIndex(i),r},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 e=this.reader.readData(this.zipCommentLength),t=Jy.uint8array?"uint8array":"array",i=dt.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(i)},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 e=this.zip64EndOfCentralSize-44,t=0,i,n,r;t<e;)i=this.reader.readInt(2),n=this.reader.readInt(4),r=this.reader.readData(n),this.zip64ExtensibleData[i]={id:i,length:n,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(je.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(je.CENTRAL_FILE_HEADER);)e=new Zy({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);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 e=this.reader.lastIndexOfSignature(je.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,je.LOCAL_FILE_HEADER);throw t?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"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var i=e;if(this.checkSignature(je.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===dt.MAX_VALUE_16BITS||this.diskWithCentralDirStart===dt.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===dt.MAX_VALUE_16BITS||this.centralDirRecords===dt.MAX_VALUE_16BITS||this.centralDirSize===dt.MAX_VALUE_32BITS||this.centralDirOffset===dt.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(je.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(je.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,je.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(je.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(je.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=i-n;if(r>0)this.isSignature(i,je.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=Xy(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};Qf.exports=Jf});var nh=P((M1,ih)=>{"use strict";var Jo=V(),ma=xi(),Qy=Ei(),ex=eh(),tx=Js(),th=fn();function ix(e){return new ma.Promise(function(t,i){var n=e.decompressed.getContentWorker().pipe(new tx);n.on("error",function(r){i(r)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}ih.exports=function(e,t){var i=this;return t=Jo.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Qy.utf8decode}),th.isNode&&th.isStream(e)?ma.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Jo.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(n){var r=new ex(t);return r.load(n),r}).then(function(r){var a=[ma.Promise.resolve(r)],s=r.files;if(t.checkCRC32)for(var o=0;o<s.length;o++)a.push(ix(s[o]));return ma.Promise.all(a)}).then(function(r){for(var a=r.shift(),s=a.files,o=0;o<s.length;o++){var c=s[o],l=c.fileNameStr,d=Jo.resolve(c.fileNameStr);i.file(d,c.decompressed,{binary:!0,optimizedBinaryString:!0,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders}),c.dir||(i.file(d).unsafeOriginalName=l)}return a.zipComment.length&&(i.comment=a.zipComment),i})}});var ah=P((P1,rh)=>{"use strict";function Te(){if(!(this instanceof Te))return new Te;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 e=new Te;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e}}Te.prototype=If();Te.prototype.loadAsync=nh();Te.support=rt();Te.defaults=Ks();Te.version="3.10.1";Te.loadAsync=function(e,t){return new Te().loadAsync(e,t)};Te.external=xi();rh.exports=Te});import{Application as Fx}from"pixi.js";var xt={};function cr(e,t,i=!1){xt[e]||(xt[e]=[]),xt[e].push({fn:t,once:i})}function is(e,t){if(xt[e]){if(!t){delete xt[e];return}xt[e]=xt[e].filter(i=>i.fn!==t)}}function dr(e,...t){let i=xt[e];if(i)for(let n of[...i])n.fn(...t),n.once&&is(e,n.fn)}function _e(e,t){cr(e,t,!0)}var te=null,Me=[],oi=null;function mc(e){te=e,Me=[],oi!==null&&(clearTimeout(oi),oi=null)}function bc(){var e,t,i;return{endpoint:(te==null?void 0:te.endpoint)||"",transport:(te==null?void 0:te.transport)||"beacon",batchSize:(e=te==null?void 0:te.batchSize)!=null?e:10,flushIntervalMs:(t=te==null?void 0:te.flushIntervalMs)!=null?t:300,maxQueue:(i=te==null?void 0:te.maxQueue)!=null?i:200,debug:!!(te!=null&&te.debug)}}async function hc(e,t,i,n){let r=JSON.stringify(t);if(i==="beacon"&&typeof navigator!="undefined"&&typeof navigator.sendBeacon=="function")try{let a=navigator.sendBeacon(e,new Blob([r],{type:"application/json"}));n&&console.log("[handler.telemetry] beacon",a,t);return}catch(a){n&&console.warn("[handler.telemetry] beacon failed, fallback to fetch",a)}try{await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0}),n&&console.log("[handler.telemetry] fetch",t)}catch(a){n&&console.warn("[handler.telemetry] fetch failed",a)}}function ns(e,t){let i=bc();if(t&&i.endpoint){if(Me.push(e),Me.length>i.maxQueue&&(Me=Me.slice(Me.length-i.maxQueue)),Me.length>=i.batchSize){gc();return}oi===null&&(oi=window.setTimeout(()=>{oi=null,gc()},i.flushIntervalMs))}}async function gc(){let e=bc();if(!e.endpoint||Me.length===0)return;let t=Me.splice(0,e.batchSize);await hc(e.endpoint,{events:t},e.transport,e.debug),Me.length>0&&await hc(e.endpoint,{events:Me.splice(0,e.batchSize)},e.transport,e.debug)}function vc(e){return Math.max(0,Math.min(1,e))}function vg(e){let t=String(e!=null?e:"power2.out");if(t==="linear")return i=>i;if(t==="sine.inOut")return i=>.5-Math.cos(Math.PI*i)/2;if(t==="power2.out"||t==="easeOutQuad")return i=>1-(1-i)*(1-i);if(t.startsWith("back.out")){let i=t.match(/back\.out\(([\d.]+)\)/),n=i?Number(i[1]):1.8;return r=>1+(n+1)*Math.pow(r-1,3)+n*Math.pow(r-1,2)}return i=>1-(1-i)*(1-i)}function nn(){return typeof performance!="undefined"&&performance.now?performance.now():Date.now()}function yg(e,t){let i=e==null?void 0:e[t];return typeof i=="number"?i:0}function yc(e,t,i){try{e[t]=i}catch{}}function xg(e){let t=e==null?void 0:e.scale;if(!t)return null;let i=typeof t.x=="number"?t.x:1,n=typeof t.y=="number"?t.y:1;return{x:i,y:n}}function xc(e,t){let i=e==null?void 0:e.scale;if(i)try{typeof i.set=="function"?i.set(t.x,t.y):(typeof i.x=="number"&&(i.x=t.x),typeof i.y=="number"&&(i.y=t.y))}catch{}}function wc(e,t){let i=xg(e);if(!i)return{from:null,to:null};let n=null,r=null;return typeof t.scale=="number"?(n=t.scale,r=t.scale):t.scale&&typeof t.scale=="object"&&(typeof t.scale.x=="number"&&(n=t.scale.x),typeof t.scale.y=="number"&&(r=t.scale.y)),typeof t.scaleX=="number"&&(n=t.scaleX),typeof t.scaleY=="number"&&(r=t.scaleY),n===null&&r===null?{from:null,to:null}:{from:{x:i.x,y:i.y},to:{x:n!=null?n:i.x,y:r!=null?r:i.y}}}function _c(){let e=new Set,t=new WeakMap,i=null,n=()=>{if(i!=null)return;i=requestAnimationFrame(()=>{i=null,o(),e.size>0&&n()})},r=d=>{var p;e.add(d);let u=(p=t.get(d.target))!=null?p:new Set;u.add(d),t.set(d.target,u),n()},a=d=>{e.delete(d);let u=t.get(d.target);u&&(u.delete(d),u.size===0&&t.delete(d.target))},s=d=>{d.killed||(d.killed=!0,a(d))},o=()=>{var u,p;let d=nn();for(let f of Array.from(e)){if(f.killed||f.paused)continue;let g=d-f.startMs-f.delayMs;if(g<0)continue;let h=f.durationMs>0?g/f.durationMs:1,m=vc(h),b=f.repeat>=0?f.repeat+1:1,v=f.repeat>0?Math.min(Math.floor(h),b-1):0;if(f.repeat>0&&h>=1){let w=h-v;m=vc(w)}let y=f.ease(m);f.yoyo&&v%2===1&&(y=1-y);for(let w of f.props)yc(f.target,w.key,w.from+(w.to-w.from)*y);f.scaleFrom&&f.scaleTo&&xc(f.target,{x:f.scaleFrom.x+(f.scaleTo.x-f.scaleFrom.x)*y,y:f.scaleFrom.y+(f.scaleTo.y-f.scaleFrom.y)*y});try{(u=f.onUpdate)==null||u.call(f)}catch{}if(h>=b){s(f);try{(p=f.onComplete)==null||p.call(f)}catch{}}}},c=(d,u,p)=>{var w;let f=Math.max(0,(typeof u.duration=="number"?u.duration:.5)*1e3),g=Math.max(0,(typeof u.delay=="number"?u.delay:0)*1e3+((w=p==null?void 0:p.delayMsOverride)!=null?w:0)),h=vg(u.ease),m=typeof u.repeat=="number"?Math.max(0,u.repeat|0):0,b=u.yoyo===!0,v=new Set(["duration","delay","ease","repeat","yoyo","onUpdate","onComplete","scale","scaleX","scaleY"]),y=[];for(let E of Object.keys(u)){if(v.has(E))continue;let A=u[E];typeof A=="number"&&y.push({key:E,from:yg(d,E),to:A})}let x=wc(d,u);return{target:d,startMs:nn(),delayMs:g,durationMs:f,ease:h,props:y,scaleFrom:x.from,scaleTo:x.to,repeat:m,yoyo:b,onUpdate:typeof u.onUpdate=="function"?u.onUpdate:void 0,onComplete:typeof u.onComplete=="function"?u.onComplete:void 0,killed:!1,paused:!1,pauseAtMs:null}},l={to(d,u){let p=c(d,u);return r(p),{kill:()=>s(p),pause:()=>{p.paused||(p.paused=!0,p.pauseAtMs=nn())},resume:()=>{var h;if(!p.paused)return;let f=(h=p.pauseAtMs)!=null?h:nn(),g=nn()-f;p.startMs+=g,p.paused=!1,p.pauseAtMs=null},isActive:()=>!p.killed&&!p.paused}},fromTo(d,u,p){return l.set(d,u),l.to(d,p)},set(d,u){if(!d||!u)return;for(let f of Object.keys(u)){let g=u[f];f==="scale"||f==="scaleX"||f==="scaleY"||typeof g=="number"&&yc(d,f,g)}let p=wc(d,u);p.to&&xc(d,p.to)},killTweensOf(d){let u=t.get(d);if(u)for(let p of Array.from(u))s(p)},timeline(d={}){let u=[],p=0,f=!1,g=[],h=v=>{if(typeof v=="number")return Math.max(0,v*1e3);let y=typeof v=="string"?v.trim():"";return y.startsWith("+=")?p+Math.max(0,Number(y.slice(2))*1e3||0):y?Math.max(0,Number(y)*1e3||0):p},m=v=>{u.push(v);let y=Math.max(0,(typeof v.vars.duration=="number"?v.vars.duration:.5)*1e3);p=Math.max(p,v.atMs+y)},b={to(v,y,x){return m({kind:"to",target:v,vars:y,atMs:h(x)}),b},fromTo(v,y,x,w){return m({kind:"fromTo",target:v,vars:x,from:y,atMs:h(w)}),b},play(){var v,y;if(f)return b;f=!0,g=[];for(let x of u)x.kind==="fromTo"&&l.set(x.target,(v=x.from)!=null?v:{}),g.push(l.to(x.target,{...x.vars,delay:x.atMs/1e3+((y=x.vars.delay)!=null?y:0)}));return b},pause(){for(let v of g)v.pause();return b},kill(){for(let v of g)v.kill();g=[],f=!1}};return d.paused||b.play(),b}};return l}function Ec(){if(typeof window=="undefined")return;let e=window;if(!e.gsap)try{e.gsap=_c()}catch{}}var Sc={name:"handler-playable-sdk",version:"0.3.34",type:"module",description:"Handler Playable SDK v0.1 with contract-aligned surface (root sandbox, canonical event envelope).",main:"dist/index.cjs",module:"dist/index.js",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",require:"./dist/index.cjs"},"./pixi":{types:"./dist/pixi/index.d.ts",import:"./dist/pixi/index.js",require:"./dist/pixi/index.cjs"},"./pixi/index.css":{import:"./dist/pixi/index.css",require:"./dist/pixi/index.css"},"./three":{types:"./dist/three/index.d.ts",import:"./dist/three/index.js",require:"./dist/three/index.cjs"},"./cli":{types:"./dist/cli/index.d.ts",import:"./dist/cli/index.js",require:"./dist/cli/index.cjs"}},bin:{"handler-student-helper":"./bin/student-helper.mjs","handler-validate":"./bin/validate.mjs","handler-sync-screens":"./bin/sync-screens.mjs","handler-brand-dna":"./bin/brand-dna.mjs","handler-setup-library":"./bin/setup-library.mjs","handler-screen-helper":"./bin/screen-helper.mjs"},scripts:{prebuild:"python3 src/preview/build-css.py",build:"tsup src/index.ts src/pixi/index.ts src/three/index.ts src/cli/index.ts --format cjs,esm --dts --clean --minify --external lottie-web && npm run create-mjs-symlinks && npm run postbuild-cli && npm run obfuscate && npm run postbuild",postbuild:"python3 src/preview/copy-css-to-dist.py","postbuild-cli":"cp src/cli/*.mjs dist/cli/ && chmod +x dist/cli/*.mjs && chmod +x bin/*.mjs","create-mjs-symlinks":"cd dist && ln -sf index.js index.mjs && cd pixi && ln -sf index.js index.mjs && cd ../three && ln -sf index.js index.mjs","build:dev":"tsup src/index.ts src/pixi/index.ts src/three/index.ts src/cli/index.ts --format cjs,esm --dts --clean --external lottie-web && npm run create-mjs-symlinks && npm run postbuild-cli",obfuscate:"javascript-obfuscator dist/pixi/index.js --output dist/pixi/index.js --config obfuscator.config.json && javascript-obfuscator dist/three/index.js --output dist/three/index.js --config obfuscator.config.json && javascript-obfuscator dist/cli/index.js --output dist/cli/index.js --config obfuscator.config.json && npm run obfuscate-cli","obfuscate-cli":'for file in dist/cli/*.mjs; do javascript-obfuscator "$file" --output "$file" --config obfuscator.config.json; done',lint:"eslint 'src/**/*.{ts,tsx}'",typecheck:"tsc --noEmit",prepublishOnly:"npm run build","publish:update":"node scripts/publish-and-update.cjs patch","publish:update:minor":"node scripts/publish-and-update.cjs minor","publish:update:major":"node scripts/publish-and-update.cjs major"},author:"Handler",license:"MIT",publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/HandlerAIGames/handler-playable-sdk.git"},files:["dist","bin","LICENSE","README.md"],peerDependencies:{"lottie-web":"^5.0.0","pixi.js":"^8.0.0",three:"^0.182.0"},peerDependenciesMeta:{"pixi.js":{optional:!0},three:{optional:!0},"lottie-web":{optional:!0}},devDependencies:{"@types/three":"^0.182.0",eslint:"^9.39.2","javascript-obfuscator":"^5.1.0","pixi.js":"8.8.1",three:"^0.182.0","ts-node":"^10.9.2",tsup:"^8.4.0",typescript:"^5.7.2","typescript-eslint":"^8.53.0"},dependencies:{"@google/genai":"^1.35.0","@google/generative-ai":"^0.24.1",sharp:"^0.34.5"}};var Ee=0,_g=Ee++,Ac=Ee++,Cc=Ee++,Tc=Ee++,kc=Ee++,Lc=Ee++,Rc=Ee++,Mc=Ee++,Pc=Ee++,Ic=Ee++,Oc=Ee++,Dc=Ee++,K=_g;function jc(){return K===Ac}function zc(){return K===Cc}function Bc(){return K===Tc}function Nc(){return K===kc}function li(){return K===Lc}function ci(){return K===Rc}function Fc(){return K===Mc}function Hc(){return K===Pc}function Uc(){return K===Ic}function rs(){return K===Oc}function as(){return K===Dc}function $c(){let e=typeof AD_PROTOCOL!="undefined"?AD_PROTOCOL:"none",t=typeof AD_NETWORK!="undefined"?AD_NETWORK:"web_embed";if(e==="mraid")try{mraid.getState(),K=Ac;return}catch{}else if(e==="dapi")try{dapi.isReady(),K=Cc;return}catch{}if(t==="facebook")try{typeof FbPlayableAd!="undefined"&&(K=Tc)}catch{}else if(t==="google")try{typeof ExitApi!="undefined"&&(K=kc)}catch{}else if(t==="mintegral")window.gameReady&&(K=Lc);else if(t==="tapjoy")window.TJ_API&&(K=Rc);else if(t==="tiktok")window.openAppStore&&(K=Mc);else if(t==="smadex")try{window.smxTracking&&(K=Pc)}catch{}else if(t==="snapchat")try{window.ScPlayableAd&&(K=Ic)}catch{}else t==="vungle"?K=Oc:(e==="nucleo"||t==="nucleo")&&(K=Dc)}import ss from"lottie-web";var qc=ss;typeof window!="undefined"&&(window.lottie=ss,window.__baseLottie=ss);function ie(e,t){let i=(r,a)=>a===0?r:i(a,r%a),n=i(e,t);return`${e/n}:${t/n}`}var D0=[{id:"iphone-15-pro-max",label:"iPhone 15 Pro Max",width:430,height:932,category:"iphone",ratio:ie(430,932)},{id:"iphone-15-pro",label:"iPhone 15 Pro",width:393,height:852,category:"iphone",ratio:ie(393,852)},{id:"iphone-15",label:"iPhone 15",width:393,height:852,category:"iphone",ratio:ie(393,852)},{id:"iphone-14",label:"iPhone 14",width:390,height:844,category:"iphone",ratio:ie(390,844)},{id:"iphone-se",label:"iPhone SE",width:375,height:667,category:"iphone",ratio:ie(375,667)},{id:"iphone-12-mini",label:"iPhone 12 Mini",width:360,height:780,category:"iphone",ratio:ie(360,780)}],j0=[{id:"pixel-8-pro",label:"Pixel 8 Pro",width:448,height:998,category:"android",ratio:ie(448,998)},{id:"pixel-8",label:"Pixel 8",width:412,height:915,category:"android",ratio:ie(412,915)},{id:"samsung-s24-ultra",label:"Samsung S24 Ultra",width:412,height:915,category:"android",ratio:ie(412,915)},{id:"samsung-s24",label:"Samsung S24",width:360,height:780,category:"android",ratio:ie(360,780)},{id:"samsung-a54",label:"Samsung A54",width:412,height:915,category:"android",ratio:ie(412,915)},{id:"oneplus-12",label:"OnePlus 12",width:412,height:915,category:"android",ratio:ie(412,915)}],z0=[{id:"ipad-pro-12",label:'iPad Pro 12.9"',width:1024,height:1366,category:"tablet",ratio:ie(1024,1366)},{id:"ipad-pro-11",label:'iPad Pro 11"',width:834,height:1194,category:"tablet",ratio:ie(834,1194)},{id:"ipad-air",label:"iPad Air",width:820,height:1180,category:"tablet",ratio:ie(820,1180)},{id:"ipad-mini",label:"iPad Mini",width:768,height:1024,category:"tablet",ratio:ie(768,1024)},{id:"samsung-tab-s9",label:"Samsung Tab S9",width:800,height:1280,category:"tablet",ratio:ie(800,1280)}],os=[{id:"playable-portrait",label:"Playable Portrait",width:320,height:480,category:"playable",ratio:"2:3",mraidScale:1},{id:"mraid-320x480",label:"MRAID 320\xD7480",width:320,height:480,category:"playable",ratio:"2:3",mraidScale:1},{id:"iphone-14",label:"iPhone 14",width:390,height:844,category:"playable",ratio:ie(390,844),mraidScale:.7},{id:"ipad-mini",label:"iPad Mini",width:768,height:1024,category:"playable",ratio:ie(768,1024),mraidScale:.7}];var Gc=[...os],Wc=[{category:"playable",label:"Playable Ad",devices:os}],ls=os[0];function di(e){return Gc.find(t=>t.id===e)||ls}function B0(e){return Gc.filter(t=>t.category===e)}var ur=class{constructor(){this.root=null;this.listContainer=null;this.searchInput=null;this.selectedId=null;this.options=null;this.retryTimer=null;this.screenFilter="all"}getScreenFilterStorageKey(){return`handler_preview_screen_filter::${typeof window!="undefined"&&window.__HANDLER_PROJECT_ID||"default"}`}render(){return`
|
|
3
3
|
<div class="scene-panel scene-objects panel-accent-teal" data-panel="scene-objects" style="left:16px; top:72px;">
|
|
4
4
|
<div class="scene-panel-header" data-panel-handle>
|
|
5
5
|
<div class="panel-title">
|