@arcgis/charts-components 5.2.0-next.60 → 5.2.0-next.61

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.
Files changed (66) hide show
  1. package/dist/cdn/{JBFVGQSP.js → 46PXO7ZC.js} +1 -1
  2. package/dist/cdn/{5MPXETTU.js → 4ITNOJXC.js} +1 -1
  3. package/dist/cdn/{QTSF2LK7.js → 5JXEO4VE.js} +1 -1
  4. package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
  5. package/dist/cdn/FHBCVW5T.js +2 -0
  6. package/dist/cdn/{ZLXYBOM3.js → JUON3AJY.js} +1 -1
  7. package/dist/cdn/LIBE4XVH.js +2 -0
  8. package/dist/cdn/MI6AKTXQ.js +2 -0
  9. package/dist/cdn/MPGHOXLW.js +2 -0
  10. package/dist/cdn/MU6ZYADT.js +2 -0
  11. package/dist/cdn/ONKEO3Z2.js +2 -0
  12. package/dist/cdn/{BXBY6D2F.js → OT7PLFBK.js} +1 -1
  13. package/dist/cdn/PBO5VH6A.js +2 -0
  14. package/dist/cdn/{6DOANSRL.js → Q5OFF4FE.js} +1 -1
  15. package/dist/cdn/{5EYVH3PA.js → TQYJM66E.js} +1 -1
  16. package/dist/cdn/{Z3LGGHZN.js → TU3LYEK3.js} +1 -1
  17. package/dist/cdn/TVG7KD3H.js +2 -0
  18. package/dist/cdn/{A36KQ6YP.js → VM4XLVMS.js} +1 -1
  19. package/dist/cdn/VPYL3RVN.js +2 -0
  20. package/dist/cdn/WSL76GA5.js +2 -0
  21. package/dist/cdn/{Y2WHHAAA.js → X3S4M6JL.js} +1 -1
  22. package/dist/cdn/XV4LD73L.js +2 -0
  23. package/dist/cdn/index.js +1 -1
  24. package/dist/cdn/model/shared/setup-utils.js +1 -1
  25. package/dist/chunks/bar-chart-model.js +10 -10
  26. package/dist/chunks/box-plot-data.js +271 -279
  27. package/dist/chunks/box-plot-model.js +161 -146
  28. package/dist/chunks/chart-model.js +1 -1
  29. package/dist/chunks/combo-bar-line-chart-model.js +12 -12
  30. package/dist/chunks/gauge-model.js +1 -1
  31. package/dist/chunks/heat-chart-model.js +25 -25
  32. package/dist/chunks/histogram-model.js +1 -1
  33. package/dist/chunks/line-chart-model.js +11 -11
  34. package/dist/chunks/model-with-x-guides.js +5 -5
  35. package/dist/chunks/model-with-y-guides.js +33 -48
  36. package/dist/chunks/pie-chart-data.js +165 -189
  37. package/dist/chunks/pie-chart-model.js +9 -9
  38. package/dist/chunks/radar-chart-model.js +7 -7
  39. package/dist/chunks/scatterplot-model.js +1 -1
  40. package/dist/chunks/serial-chart-data.js +745 -769
  41. package/dist/chunks/serial-chart-model.js +19 -11
  42. package/dist/chunks/utils.js +9 -9
  43. package/dist/chunks/x-bounds.js +1 -1
  44. package/dist/components/arcgis-chart/customElement.d.ts +53 -11
  45. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
  46. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
  47. package/dist/docs/api.json +1 -1
  48. package/dist/docs/docs.json +1 -1
  49. package/dist/docs/vscode.html-custom-data.json +1 -1
  50. package/dist/docs/web-types.json +1 -1
  51. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  52. package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
  53. package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
  54. package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
  55. package/package.json +3 -3
  56. package/dist/cdn/3UHXOKCR.js +0 -2
  57. package/dist/cdn/6PIQ2O5S.js +0 -2
  58. package/dist/cdn/7CMQGTU6.js +0 -2
  59. package/dist/cdn/EBSQRCQQ.js +0 -2
  60. package/dist/cdn/EDVN42ME.js +0 -2
  61. package/dist/cdn/H2EMIJME.js +0 -2
  62. package/dist/cdn/JEVWE6ER.js +0 -2
  63. package/dist/cdn/O3DJD5IR.js +0 -2
  64. package/dist/cdn/V5W5LNFT.js +0 -2
  65. package/dist/cdn/XKZ44LA2.js +0 -2
  66. package/dist/cdn/YVSZN6IH.js +0 -2
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as ma}from"./3VMHKSYP.js";import{b as nb}from"./IONJLIQQ.js";import o from"./JBFVGQSP.js";import{a as $w,g as Dw}from"./OBPAQN4H.js";import n from"./PLEC3GNT.js";import{c as Uv,e as Dd,f as Gv,g as qv,h as Kv,i as Zv,j as Hu}from"./7NWEE7T2.js";import m from"./7DIQIFKR.js";import{a as hw}from"./JYC77MVD.js";import{a as ib}from"./U43KANH5.js";import l from"./XKZ44LA2.js";import k from"./GARBFC7Q.js";import j from"./3UHXOKCR.js";import{a as Tw}from"./ZLXYBOM3.js";import i from"./7CMQGTU6.js";import h from"./HOIPLQXD.js";import g from"./J3CL6KB6.js";import f from"./JYITKARU.js";import{a as Ba,b as Cw,c as ww,d as Pw,e as rb,k as sb,q as ab}from"./OAXHS4LE.js";import e from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import d from"./EAV3KAS7.js";import c from"./JS6A5QAV.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{D as yd,E as vd,a as yt,b as Mf,c as qe,d as _e,e as Hi,f as Xi,g as Po,h as Er,i as gd,j as qr,l as mv,n as lr,p as gv,r as Vi,v as yv,w as lC,x as xr}from"./H57XAQPI.js";import{e as Kr,h as cn}from"./BGOWDCTO.js";import{$ as rC,B as nl,Ba as fv,C as vh,I as md,L as Lf,M as hv,N as Ff,Q as tC,S as Of,T as uv,U as cv,V as dv,W as iC,aa as sC,da as pv,f as gh,h as Vu,ha as If,i as Df,j as ov,k as ZS,l as kf,o as ga,p as Af,q as Ui,r as fd,t as lv,u as yh,ua as aC,v as JS,y as QS,ya as nC,z as eC}from"./SCU3SBSN.js";import{a as dd,b as Lr,c as pd,d as Vr,e as $f,f as wt}from"./KX7KGXKQ.js";import{g as Yi,h as _s,k as ph,l as fa}from"./SP2IPHWF.js";import{a as qS,b as tv,c as Pf,d as dh}from"./NZ2C5DJB.js";import{A as ev,B as YS,C as wf,H as US,I as GS,g as jS,h as WS,i as Ru,l as zS,n as ns,p as HS,z as XS}from"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import{a as Oe,b as oC}from"./KJZTU3DV.js";import{a as I,b as Va,e as je,f as li,h as cd,i as iv,j as rv,k as fi,l as Tf,m as fh,n as sv,p as Pi,q as KS,r as mh,t as av,u as nv}from"./K4APZJ2O.js";import{a as ud,b as xL,c as BS,d as _L}from"./BYSUABOV.js";export default $arcgis.t(([Xs,{substitute:wu},fR,mR,{$:Dt,$a:wd,$b:Uf,A:Nn,Ab:hl,Ac:zu,B:Ss,Ba:wC,Bb:FC,Bc:Ti,C:Sv,Cb:OC,D:xh,Db:IC,Dc:zn,E:Bn,Eb:Ov,F:_h,Fa:Bf,Fb:MC,Fc:iw,G:dC,Ga:PC,Gb:RC,Gc:rw,H:Vf,Hb:VC,Hc:sw,I:Sd,Ib:EC,Ic:Hv,Jb:NC,Jc:Qf,K:pC,Kb:Iv,Kc:em,L:os,La:TC,Lb:BC,Lc:aw,Ma:$v,Mb:jC,Mc:nw,N:Cv,Na:jf,Nb:Mv,Nc:ow,O:Ef,Ob:WC,Pa:Dv,Pb:zC,Pc:tm,Q:ya,Qa:Ch,Qb:HC,Qc:lw,R:wv,Ra:wh,Rb:Rv,S:Sh,Sa:kv,Sb:XC,T:fC,Ta:va,Tb:YC,U:Pv,Ua:Av,Ub:Yf,V:mC,Vb:UC,W:Cd,Wb:GC,X:Cs,Xb:qC,Y:jn,Yb:KC,Z:$o,Za:Bu,_:gC,_a:Lv,_b:Td,aa:Wn,ac:ju,b:H,ba:Nu,c:dn,ca:yC,cc:Gf,d:To,da:vC,dc:qf,e:bd,ec:Vv,f:vv,fa:Do,fc:Kf,g:bv,ga:bC,h:pn,hc:Ev,i:bh,ia:xC,ic:ZC,ja:Tv,jb:Wf,l:fn,lb:Fv,lc:Nv,m:mn,mb:$C,mc:Wu,n:xv,nb:zf,nc:JC,o:xd,ob:DC,oc:Zf,p:_v,pb:Pd,pc:QC,q:hC,qb:kC,qc:Bv,r:qs,ra:Nf,rc:ew,s:Rf,sc:jv,t:Eu,tb:Ea,tc:Wv,ua:_C,ub:ll,uc:zv,v:uC,va:Ms,vb:Hf,vc:tw,w:Gi,wb:pt,wc:$d,x:_d,xa:ol,xb:AC,y:cC,ya:SC,yb:LC,yc:Jf,z:En,za:CC,zb:Xf,zc:Na},,{g:uw,i:cw},,,{a:Xv,b:ul},,,{l:dw,n:pw,o:fw,p:mw,q:gw,r:Yv,s:yw,t:vw,u:bw},,,,{q:Lw},{b:kw,c:Aw},{a:xw,b:_w,c:Sw,d:Jv,g:Qv,h:eb,i:tb}])=>{var jP=xL((BP,Lb)=>{(function(s){typeof BP=="object"&&typeof Lb<"u"?Lb.exports=s():typeof define=="function"&&define.amd?define([],s):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=s()})(function(){return(function s(t,e,i){function r(o,l){if(!e[o]){if(!t[o]){var h=typeof ud=="function"&&ud;if(!l&&h)return h(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=e[o]={exports:{}};t[o][0].call(c.exports,function(d){var p=t[o][1][d];return r(p||d)},c,c.exports,s,t,e,i)}return e[o].exports}for(var a=typeof ud=="function"&&ud,n=0;n<i.length;n++)r(i[n]);return r})({1:[function(s,t,e){"use strict";var i=s("./utils"),r=s("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(n){for(var o,l,h,u,c,d,p,f=[],m=0,g=n.length,y=g,v=i.getTypeOf(n)!=="string";m<n.length;)y=g-m,h=v?(o=n[m++],l=m<g?n[m++]:0,m<g?n[m++]:0):(o=n.charCodeAt(m++),l=m<g?n.charCodeAt(m++):0,m<g?n.charCodeAt(m++):0),u=o>>2,c=(3&o)<<4|l>>4,d=1<y?(15&l)<<2|h>>6:64,p=2<y?63&h:64,f.push(a.charAt(u)+a.charAt(c)+a.charAt(d)+a.charAt(p));return f.join("")},e.decode=function(n){var o,l,h,u,c,d,p=0,f=0,m="data:";if(n.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var g,y=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===a.charAt(64)&&y--,n.charAt(n.length-2)===a.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=r.uint8array?new Uint8Array(0|y):new Array(0|y);p<n.length;)o=a.indexOf(n.charAt(p++))<<2|(u=a.indexOf(n.charAt(p++)))>>4,l=(15&u)<<4|(c=a.indexOf(n.charAt(p++)))>>2,h=(3&c)<<6|(d=a.indexOf(n.charAt(p++))),g[f++]=o,c!==64&&(g[f++]=l),d!==64&&(g[f++]=h);return g}},{"./support":30,"./utils":32}],2:[function(s,t,e){"use strict";var i=s("./external"),r=s("./stream/DataWorker"),a=s("./stream/Crc32Probe"),n=s("./stream/DataLengthProbe");function o(l,h,u,c,d){this.compressedSize=l,this.uncompressedSize=h,this.crc32=u,this.compression=c,this.compressedContent=d}o.prototype={getContentWorker:function(){var l=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(l,h,u){return l.pipe(new a).pipe(new n("uncompressedSize")).pipe(h.compressWorker(u)).pipe(new n("compressedSize")).withStreamInfo("compression",h)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,t,e){"use strict";var i=s("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},e.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,t,e){"use strict";var i=s("./utils"),r=(function(){for(var a,n=[],o=0;o<256;o++){a=o;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;n[o]=a}return n})();t.exports=function(a,n){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l[p])];return-1^o})(0|n,a,a.length,0):(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l.charCodeAt(p))];return-1^o})(0|n,a,a.length,0):0}},{"./utils":32}],5:[function(s,t,e){"use strict";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(s,t,e){"use strict";var i=null;i=typeof Promise<"u"?Promise:s("lie"),t.exports={Promise:i}},{lie:37}],7:[function(s,t,e){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",r=s("pako"),a=s("./utils"),n=s("./stream/GenericWorker"),o=i?"uint8array":"array";function l(h,u){n.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=u,this.meta={}}e.magic="\b\0",a.inherits(l,n),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(o,h.data),!1)},l.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(u){h.push({data:u,meta:h.meta})}},e.compressWorker=function(h){return new l("Deflate",h)},e.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,t,e){"use strict";function i(c,d){var p,f="";for(p=0;p<d;p++)f+=String.fromCharCode(255&c),c>>>=8;return f}function r(c,d,p,f,m,g){var y,v,b=c.file,x=c.compression,_=g!==o.utf8encode,w=a.transformTo("string",g(b.name)),C=a.transformTo("string",o.utf8encode(b.name)),P=b.comment,D=a.transformTo("string",g(P)),$=a.transformTo("string",o.utf8encode(P)),L=C.length!==b.name.length,T=$.length!==P.length,M="",E="",N="",X=b.dir,W=b.date,q={crc32:0,compressedSize:0,uncompressedSize:0};d&&!p||(q.crc32=c.crc32,q.compressedSize=c.compressedSize,q.uncompressedSize=c.uncompressedSize);var V=0;d&&(V|=8),_||!L&&!T||(V|=2048);var B=0,ne=0;X&&(B|=16),m==="UNIX"?(ne=798,B|=(function(J,ge){var Ve=J;return J||(Ve=ge?16893:33204),(65535&Ve)<<16})(b.unixPermissions,X)):(ne=20,B|=(function(J){return 63&(J||0)})(b.dosPermissions)),y=W.getUTCHours(),y<<=6,y|=W.getUTCMinutes(),y<<=5,y|=W.getUTCSeconds()/2,v=W.getUTCFullYear()-1980,v<<=4,v|=W.getUTCMonth()+1,v<<=5,v|=W.getUTCDate(),L&&(E=i(1,1)+i(l(w),4)+C,M+="up"+i(E.length,2)+E),T&&(N=i(1,1)+i(l(D),4)+$,M+="uc"+i(N.length,2)+N);var K="";return K+=`
2
+ import{a as ma}from"./3VMHKSYP.js";import{b as nb}from"./IONJLIQQ.js";import o from"./46PXO7ZC.js";import{a as $w,g as Dw}from"./OBPAQN4H.js";import n from"./PLEC3GNT.js";import{c as Uv,e as Dd,f as Gv,g as qv,h as Kv,i as Zv,j as Hu}from"./7NWEE7T2.js";import m from"./7DIQIFKR.js";import{a as hw}from"./JYC77MVD.js";import{a as ib}from"./U43KANH5.js";import l from"./WSL76GA5.js";import k from"./GARBFC7Q.js";import j from"./MPGHOXLW.js";import{a as Tw}from"./JUON3AJY.js";import i from"./PBO5VH6A.js";import h from"./HOIPLQXD.js";import g from"./J3CL6KB6.js";import f from"./JYITKARU.js";import{a as Ba,b as Cw,c as ww,d as Pw,e as rb,k as sb,q as ab}from"./OAXHS4LE.js";import e from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import d from"./EAV3KAS7.js";import c from"./JS6A5QAV.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{D as yd,E as vd,a as yt,b as Mf,c as qe,d as _e,e as Hi,f as Xi,g as Po,h as Er,i as gd,j as qr,l as mv,n as lr,p as gv,r as Vi,v as yv,w as lC,x as xr}from"./H57XAQPI.js";import{e as Kr,h as cn}from"./BGOWDCTO.js";import{$ as rC,B as nl,Ba as fv,C as vh,I as md,L as Lf,M as hv,N as Ff,Q as tC,S as Of,T as uv,U as cv,V as dv,W as iC,aa as sC,da as pv,f as gh,h as Vu,ha as If,i as Df,j as ov,k as ZS,l as kf,o as ga,p as Af,q as Ui,r as fd,t as lv,u as yh,ua as aC,v as JS,y as QS,ya as nC,z as eC}from"./SCU3SBSN.js";import{a as dd,b as Lr,c as pd,d as Vr,e as $f,f as wt}from"./KX7KGXKQ.js";import{g as Yi,h as _s,k as ph,l as fa}from"./SP2IPHWF.js";import{a as qS,b as tv,c as Pf,d as dh}from"./NZ2C5DJB.js";import{A as ev,B as YS,C as wf,H as US,I as GS,g as jS,h as WS,i as Ru,l as zS,n as ns,p as HS,z as XS}from"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import{a as Oe,b as oC}from"./KJZTU3DV.js";import{a as I,b as Va,e as je,f as li,h as cd,i as iv,j as rv,k as fi,l as Tf,m as fh,n as sv,p as Pi,q as KS,r as mh,t as av,u as nv}from"./K4APZJ2O.js";import{a as ud,b as xL,c as BS,d as _L}from"./BYSUABOV.js";export default $arcgis.t(([Xs,{substitute:wu},fR,mR,{$:Dt,$a:wd,$b:Uf,A:Nn,Ab:hl,Ac:zu,B:Ss,Ba:wC,Bb:FC,Bc:Ti,C:Sv,Cb:OC,D:xh,Db:IC,Dc:zn,E:Bn,Eb:Ov,F:_h,Fa:Bf,Fb:MC,Fc:iw,G:dC,Ga:PC,Gb:RC,Gc:rw,H:Vf,Hb:VC,Hc:sw,I:Sd,Ib:EC,Ic:Hv,Jb:NC,Jc:Qf,K:pC,Kb:Iv,Kc:em,L:os,La:TC,Lb:BC,Lc:aw,Ma:$v,Mb:jC,Mc:nw,N:Cv,Na:jf,Nb:Mv,Nc:ow,O:Ef,Ob:WC,Pa:Dv,Pb:zC,Pc:tm,Q:ya,Qa:Ch,Qb:HC,Qc:lw,R:wv,Ra:wh,Rb:Rv,S:Sh,Sa:kv,Sb:XC,T:fC,Ta:va,Tb:YC,U:Pv,Ua:Av,Ub:Yf,V:mC,Vb:UC,W:Cd,Wb:GC,X:Cs,Xb:qC,Y:jn,Yb:KC,Z:$o,Za:Bu,_:gC,_a:Lv,_b:Td,aa:Wn,ac:ju,b:H,ba:Nu,c:dn,ca:yC,cc:Gf,d:To,da:vC,dc:qf,e:bd,ec:Vv,f:vv,fa:Do,fc:Kf,g:bv,ga:bC,h:pn,hc:Ev,i:bh,ia:xC,ic:ZC,ja:Tv,jb:Wf,l:fn,lb:Fv,lc:Nv,m:mn,mb:$C,mc:Wu,n:xv,nb:zf,nc:JC,o:xd,ob:DC,oc:Zf,p:_v,pb:Pd,pc:QC,q:hC,qb:kC,qc:Bv,r:qs,ra:Nf,rc:ew,s:Rf,sc:jv,t:Eu,tb:Ea,tc:Wv,ua:_C,ub:ll,uc:zv,v:uC,va:Ms,vb:Hf,vc:tw,w:Gi,wb:pt,wc:$d,x:_d,xa:ol,xb:AC,y:cC,ya:SC,yb:LC,yc:Jf,z:En,za:CC,zb:Xf,zc:Na},,{g:uw,i:cw},,,{a:Xv,b:ul},,,{l:dw,n:pw,o:fw,p:mw,q:gw,r:Yv,s:yw,t:vw,u:bw},,,,{q:Lw},{b:kw,c:Aw},{a:xw,b:_w,c:Sw,d:Jv,g:Qv,h:eb,i:tb}])=>{var jP=xL((BP,Lb)=>{(function(s){typeof BP=="object"&&typeof Lb<"u"?Lb.exports=s():typeof define=="function"&&define.amd?define([],s):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=s()})(function(){return(function s(t,e,i){function r(o,l){if(!e[o]){if(!t[o]){var h=typeof ud=="function"&&ud;if(!l&&h)return h(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=e[o]={exports:{}};t[o][0].call(c.exports,function(d){var p=t[o][1][d];return r(p||d)},c,c.exports,s,t,e,i)}return e[o].exports}for(var a=typeof ud=="function"&&ud,n=0;n<i.length;n++)r(i[n]);return r})({1:[function(s,t,e){"use strict";var i=s("./utils"),r=s("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(n){for(var o,l,h,u,c,d,p,f=[],m=0,g=n.length,y=g,v=i.getTypeOf(n)!=="string";m<n.length;)y=g-m,h=v?(o=n[m++],l=m<g?n[m++]:0,m<g?n[m++]:0):(o=n.charCodeAt(m++),l=m<g?n.charCodeAt(m++):0,m<g?n.charCodeAt(m++):0),u=o>>2,c=(3&o)<<4|l>>4,d=1<y?(15&l)<<2|h>>6:64,p=2<y?63&h:64,f.push(a.charAt(u)+a.charAt(c)+a.charAt(d)+a.charAt(p));return f.join("")},e.decode=function(n){var o,l,h,u,c,d,p=0,f=0,m="data:";if(n.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var g,y=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===a.charAt(64)&&y--,n.charAt(n.length-2)===a.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=r.uint8array?new Uint8Array(0|y):new Array(0|y);p<n.length;)o=a.indexOf(n.charAt(p++))<<2|(u=a.indexOf(n.charAt(p++)))>>4,l=(15&u)<<4|(c=a.indexOf(n.charAt(p++)))>>2,h=(3&c)<<6|(d=a.indexOf(n.charAt(p++))),g[f++]=o,c!==64&&(g[f++]=l),d!==64&&(g[f++]=h);return g}},{"./support":30,"./utils":32}],2:[function(s,t,e){"use strict";var i=s("./external"),r=s("./stream/DataWorker"),a=s("./stream/Crc32Probe"),n=s("./stream/DataLengthProbe");function o(l,h,u,c,d){this.compressedSize=l,this.uncompressedSize=h,this.crc32=u,this.compression=c,this.compressedContent=d}o.prototype={getContentWorker:function(){var l=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(l,h,u){return l.pipe(new a).pipe(new n("uncompressedSize")).pipe(h.compressWorker(u)).pipe(new n("compressedSize")).withStreamInfo("compression",h)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,t,e){"use strict";var i=s("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},e.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,t,e){"use strict";var i=s("./utils"),r=(function(){for(var a,n=[],o=0;o<256;o++){a=o;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;n[o]=a}return n})();t.exports=function(a,n){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l[p])];return-1^o})(0|n,a,a.length,0):(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l.charCodeAt(p))];return-1^o})(0|n,a,a.length,0):0}},{"./utils":32}],5:[function(s,t,e){"use strict";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(s,t,e){"use strict";var i=null;i=typeof Promise<"u"?Promise:s("lie"),t.exports={Promise:i}},{lie:37}],7:[function(s,t,e){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",r=s("pako"),a=s("./utils"),n=s("./stream/GenericWorker"),o=i?"uint8array":"array";function l(h,u){n.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=u,this.meta={}}e.magic="\b\0",a.inherits(l,n),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(o,h.data),!1)},l.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(u){h.push({data:u,meta:h.meta})}},e.compressWorker=function(h){return new l("Deflate",h)},e.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,t,e){"use strict";function i(c,d){var p,f="";for(p=0;p<d;p++)f+=String.fromCharCode(255&c),c>>>=8;return f}function r(c,d,p,f,m,g){var y,v,b=c.file,x=c.compression,_=g!==o.utf8encode,w=a.transformTo("string",g(b.name)),C=a.transformTo("string",o.utf8encode(b.name)),P=b.comment,D=a.transformTo("string",g(P)),$=a.transformTo("string",o.utf8encode(P)),L=C.length!==b.name.length,T=$.length!==P.length,M="",E="",N="",X=b.dir,W=b.date,q={crc32:0,compressedSize:0,uncompressedSize:0};d&&!p||(q.crc32=c.crc32,q.compressedSize=c.compressedSize,q.uncompressedSize=c.uncompressedSize);var V=0;d&&(V|=8),_||!L&&!T||(V|=2048);var B=0,ne=0;X&&(B|=16),m==="UNIX"?(ne=798,B|=(function(J,ge){var Ve=J;return J||(Ve=ge?16893:33204),(65535&Ve)<<16})(b.unixPermissions,X)):(ne=20,B|=(function(J){return 63&(J||0)})(b.dosPermissions)),y=W.getUTCHours(),y<<=6,y|=W.getUTCMinutes(),y<<=5,y|=W.getUTCSeconds()/2,v=W.getUTCFullYear()-1980,v<<=4,v|=W.getUTCMonth()+1,v<<=5,v|=W.getUTCDate(),L&&(E=i(1,1)+i(l(w),4)+C,M+="up"+i(E.length,2)+E),T&&(N=i(1,1)+i(l(D),4)+$,M+="uc"+i(N.length,2)+N);var K="";return K+=`
3
3
  \0`,K+=i(V,2),K+=x.magic,K+=i(y,2),K+=i(v,2),K+=i(q.crc32,4),K+=i(q.compressedSize,4),K+=i(q.uncompressedSize,4),K+=i(w.length,2),K+=i(M.length,2),{fileRecord:h.LOCAL_FILE_HEADER+K+w+M,dirRecord:h.CENTRAL_FILE_HEADER+i(ne,2)+K+i(D.length,2)+"\0\0\0\0"+i(B,4)+i(f,4)+w+M+D}}var a=s("../utils"),n=s("../stream/GenericWorker"),o=s("../utf8"),l=s("../crc32"),h=s("../signature");function u(c,d,p,f){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=p,this.encodeFileName=f,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,n),u.prototype.push=function(c){var d=c.meta.percent||0,p=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,n.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:p?(d+100*(p-f-1))/p:100}}))},u.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var d=this.streamFiles&&!c.file.dir;if(d){var p=r(c,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(c){this.accumulate=!1;var d=this.streamFiles&&!c.file.dir,p=r(c,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),d)this.push({data:(function(f){return h.DATA_DESCRIPTOR+i(f.crc32,4)+i(f.compressedSize,4)+i(f.uncompressedSize,4)})(c),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var c=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var p=this.bytesWritten-c,f=(function(m,g,y,v,b){var x=a.transformTo("string",b(v));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(m,2)+i(m,2)+i(g,4)+i(y,4)+i(x.length,2)+x})(this.dirRecords.length,p,c,this.zipComment,this.encodeFileName);this.push({data:f,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(c){this._sources.push(c);var d=this;return c.on("data",function(p){d.processChunk(p)}),c.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),c.on("error",function(p){d.error(p)}),this},u.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(c){var d=this._sources;if(!n.prototype.error.call(this,c))return!1;for(var p=0;p<d.length;p++)try{d[p].error(c)}catch{}return!0},u.prototype.lock=function(){n.prototype.lock.call(this);for(var c=this._sources,d=0;d<c.length;d++)c[d].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(s,t,e){"use strict";var i=s("../compressions"),r=s("./ZipFileWorker");e.generateWorker=function(a,n,o){var l=new r(n.streamFiles,o,n.platform,n.encodeFileName),h=0;try{a.forEach(function(u,c){h++;var d=(function(g,y){var v=g||y,b=i[v];if(!b)throw new Error(v+" is not a valid compression method !");return b})(c.options.compression,n.compression),p=c.options.compressionOptions||n.compressionOptions||{},f=c.dir,m=c.date;c._compressWorker(d,p).withStreamInfo("file",{name:u,dir:f,date:m,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(l)}),l.entriesCount=h}catch(u){l.error(u)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(s,t,e){"use strict";function i(){if(!(this instanceof i))return new i;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 r=new i;for(var a in this)typeof this[a]!="function"&&(r[a]=this[a]);return r}}(i.prototype=s("./object")).loadAsync=s("./load"),i.support=s("./support"),i.defaults=s("./defaults"),i.version="3.10.1",i.loadAsync=function(r,a){return new i().loadAsync(r,a)},i.external=s("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(s,t,e){"use strict";var i=s("./utils"),r=s("./external"),a=s("./utf8"),n=s("./zipEntries"),o=s("./stream/Crc32Probe"),l=s("./nodejsUtils");function h(u){return new r.Promise(function(c,d){var p=u.decompressed.getContentWorker().pipe(new o);p.on("error",function(f){d(f)}).on("end",function(){p.streamInfo.crc32!==u.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}t.exports=function(u,c){var d=this;return c=i.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(u)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",u,!0,c.optimizedBinaryString,c.base64).then(function(p){var f=new n(c);return f.load(p),f}).then(function(p){var f=[r.Promise.resolve(p)],m=p.files;if(c.checkCRC32)for(var g=0;g<m.length;g++)f.push(h(m[g]));return r.Promise.all(f)}).then(function(p){for(var f=p.shift(),m=f.files,g=0;g<m.length;g++){var y=m[g],v=y.fileNameStr,b=i.resolve(y.fileNameStr);d.file(b,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:c.createFolders}),y.dir||(d.file(b).unsafeOriginalName=v)}return f.zipComment.length&&(d.comment=f.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(s,t,e){"use strict";var i=s("../utils"),r=s("../stream/GenericWorker");function a(n,o){r.call(this,"Nodejs stream input adapter for "+n),this._upstreamEnded=!1,this._bindStream(o)}i.inherits(a,r),a.prototype._bindStream=function(n){var o=this;(this._stream=n).pause(),n.on("data",function(l){o.push({data:l,meta:{percent:0}})}).on("error",function(l){o.isPaused?this.generatedError=l:o.error(l)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},a.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(s,t,e){"use strict";var i=s("readable-stream").Readable;function r(a,n,o){i.call(this,n),this._helper=a;var l=this;a.on("data",function(h,u){l.push(h)||l._helper.pause(),o&&o(u)}).on("error",function(h){l.emit("error",h)}).on("end",function(){l.push(null)})}s("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(s,t,e){"use strict";t.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,r);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,r)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var r=new Buffer(i);return r.fill(0),r},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(s,t,e){"use strict";function i(b,x,_){var w,C=a.getTypeOf(x),P=a.extend(_||{},l);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(b=m(b)),P.createFolders&&(w=f(b))&&g.call(this,w,!0);var D=C==="string"&&P.binary===!1&&P.base64===!1;_&&_.binary!==void 0||(P.binary=!D),(x instanceof h&&x.uncompressedSize===0||P.dir||!x||x.length===0)&&(P.base64=!1,P.binary=!0,x="",P.compression="STORE",C="string");var $=null;$=x instanceof h||x instanceof n?x:d.isNode&&d.isStream(x)?new p(b,x):a.prepareContent(b,x,P.binary,P.optimizedBinaryString,P.base64);var L=new u(b,$,P);this.files[b]=L}var r=s("./utf8"),a=s("./utils"),n=s("./stream/GenericWorker"),o=s("./stream/StreamHelper"),l=s("./defaults"),h=s("./compressedObject"),u=s("./zipObject"),c=s("./generate"),d=s("./nodejsUtils"),p=s("./nodejs/NodejsStreamInputAdapter"),f=function(b){b.slice(-1)==="/"&&(b=b.substring(0,b.length-1));var x=b.lastIndexOf("/");return 0<x?b.substring(0,x):""},m=function(b){return b.slice(-1)!=="/"&&(b+="/"),b},g=function(b,x){return x=x!==void 0?x:l.createFolders,b=m(b),this.files[b]||i.call(this,b,null,{dir:!0,createFolders:x}),this.files[b]};function y(b){return Object.prototype.toString.call(b)==="[object RegExp]"}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(b){var x,_,w;for(x in this.files)w=this.files[x],(_=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&b(_,w)},filter:function(b){var x=[];return this.forEach(function(_,w){b(_,w)&&x.push(w)}),x},file:function(b,x,_){if(arguments.length!==1)return b=this.root+b,i.call(this,b,x,_),this;if(y(b)){var w=b;return this.filter(function(P,D){return!D.dir&&w.test(P)})}var C=this.files[this.root+b];return C&&!C.dir?C:null},folder:function(b){if(!b)return this;if(y(b))return this.filter(function(C,P){return P.dir&&b.test(C)});var x=this.root+b,_=g.call(this,x),w=this.clone();return w.root=_.name,w},remove:function(b){b=this.root+b;var x=this.files[b];if(x||(b.slice(-1)!=="/"&&(b+="/"),x=this.files[b]),x&&!x.dir)delete this.files[b];else for(var _=this.filter(function(C,P){return P.name.slice(0,b.length)===b}),w=0;w<_.length;w++)delete this.files[_[w].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(b){var x,_={};try{if((_=a.extend(b||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");a.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var w=_.comment||this.comment||"";x=c.generateWorker(this,_,w)}catch(C){(x=new n("error")).error(C)}return new o(x,_.type||"string",_.mimeType)},generateAsync:function(b,x){return this.generateInternalStream(b).accumulate(x)},generateNodeStream:function(b,x){return(b=b||{}).type||(b.type="nodebuffer"),this.generateInternalStream(b).toNodejsStream(x)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(s,t,e){"use strict";t.exports=s("stream")},{stream:void 0}],17:[function(s,t,e){"use strict";var i=s("./DataReader");function r(a){i.call(this,a);for(var n=0;n<this.data.length;n++)a[n]=255&a[n]}s("../utils").inherits(r,i),r.prototype.byteAt=function(a){return this.data[this.zero+a]},r.prototype.lastIndexOfSignature=function(a){for(var n=a.charCodeAt(0),o=a.charCodeAt(1),l=a.charCodeAt(2),h=a.charCodeAt(3),u=this.length-4;0<=u;--u)if(this.data[u]===n&&this.data[u+1]===o&&this.data[u+2]===l&&this.data[u+3]===h)return u-this.zero;return-1},r.prototype.readAndCheckSignature=function(a){var n=a.charCodeAt(0),o=a.charCodeAt(1),l=a.charCodeAt(2),h=a.charCodeAt(3),u=this.readData(4);return n===u[0]&&o===u[1]&&l===u[2]&&h===u[3]},r.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(s,t,e){"use strict";var i=s("../utils");function r(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var n,o=0;for(this.checkOffset(a),n=this.index+a-1;n>=this.index;n--)o=(o<<8)+this.byteAt(n);return this.index+=a,o},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},t.exports=r},{"../utils":32}],19:[function(s,t,e){"use strict";var i=s("./Uint8ArrayReader");function r(a){i.call(this,a)}s("../utils").inherits(r,i),r.prototype.readData=function(a){this.checkOffset(a);var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(s,t,e){"use strict";var i=s("./DataReader");function r(a){i.call(this,a)}s("../utils").inherits(r,i),r.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},r.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},r.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},r.prototype.readData=function(a){this.checkOffset(a);var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(s,t,e){"use strict";var i=s("./ArrayReader");function r(a){i.call(this,a)}s("../utils").inherits(r,i),r.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var n=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(s,t,e){"use strict";var i=s("../utils"),r=s("../support"),a=s("./ArrayReader"),n=s("./StringReader"),o=s("./NodeBufferReader"),l=s("./Uint8ArrayReader");t.exports=function(h){var u=i.getTypeOf(h);return i.checkSupport(u),u!=="string"||r.uint8array?u==="nodebuffer"?new o(h):r.uint8array?new l(i.transformTo("uint8array",h)):new a(i.transformTo("array",h)):new n(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(s,t,e){"use strict";e.LOCAL_FILE_HEADER="PK",e.CENTRAL_FILE_HEADER="PK",e.CENTRAL_DIRECTORY_END="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",e.ZIP64_CENTRAL_DIRECTORY_END="PK",e.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(s,t,e){"use strict";var i=s("./GenericWorker"),r=s("../utils");function a(n){i.call(this,"ConvertWorker to "+n),this.destType=n}r.inherits(a,i),a.prototype.processChunk=function(n){this.push({data:r.transformTo(this.destType,n.data),meta:n.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(s,t,e){"use strict";var i=s("./GenericWorker"),r=s("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s("../utils").inherits(a,i),a.prototype.processChunk=function(n){this.streamInfo.crc32=r(n.data,this.streamInfo.crc32||0),this.push(n)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(s,t,e){"use strict";var i=s("../utils"),r=s("./GenericWorker");function a(n){r.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}i.inherits(a,r),a.prototype.processChunk=function(n){if(n){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+n.data.length}r.prototype.processChunk.call(this,n)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(s,t,e){"use strict";var i=s("../utils"),r=s("./GenericWorker");function a(n){r.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then(function(l){o.dataIsReady=!0,o.data=l,o.max=l&&l.length||0,o.type=i.getTypeOf(l),o.isPaused||o._tickAndRepeat()},function(l){o.error(l)})}i.inherits(a,r),a.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var n=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,o);break;case"uint8array":n=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":n=this.data.slice(this.index,o)}return this.index=o,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(s,t,e){"use strict";function i(r){this.name=r||"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}i.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,a){return this._listeners[r].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,a){if(this._listeners[r])for(var n=0;n<this._listeners[r].length;n++)this._listeners[r][n].call(this,a)},pipe:function(r){return r.registerPrevious(this)},registerPrevious:function(r){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=r.streamInfo,this.mergeStreamInfo(),this.previous=r;var a=this;return r.on("data",function(n){a.processChunk(n)}),r.on("end",function(){a.end()}),r.on("error",function(n){a.error(n)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var r=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),r=!0),this.previous&&this.previous.resume(),!r},flush:function(){},processChunk:function(r){this.push(r)},withStreamInfo:function(r,a){return this.extraStreamInfo[r]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var r in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,r)&&(this.streamInfo[r]=this.extraStreamInfo[r])},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 r="Worker "+this.name;return this.previous?this.previous+" -> "+r:r}},t.exports=i},{}],29:[function(s,t,e){"use strict";var i=s("../utils"),r=s("./ConvertWorker"),a=s("./GenericWorker"),n=s("../base64"),o=s("../support"),l=s("../external"),h=null;if(o.nodestream)try{h=s("../nodejs/NodejsStreamOutputAdapter")}catch{}function u(d,p){return new l.Promise(function(f,m){var g=[],y=d._internalType,v=d._outputType,b=d._mimeType;d.on("data",function(x,_){g.push(x),p&&p(_)}).on("error",function(x){g=[],m(x)}).on("end",function(){try{var x=(function(_,w,C){switch(_){case"blob":return i.newBlob(i.transformTo("arraybuffer",w),C);case"base64":return n.encode(w);default:return i.transformTo(_,w)}})(v,(function(_,w){var C,P=0,D=null,$=0;for(C=0;C<w.length;C++)$+=w[C].length;switch(_){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(D=new Uint8Array($),C=0;C<w.length;C++)D.set(w[C],P),P+=w[C].length;return D;case"nodebuffer":return Buffer.concat(w);default:throw new Error("concat : unsupported type '"+_+"'")}})(y,g),b);f(x)}catch(_){m(_)}g=[]}).resume()})}function c(d,p,f){var m=p;switch(p){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=p,this._mimeType=f,i.checkSupport(m),this._worker=d.pipe(new r(m)),d.lock()}catch(g){this._worker=new a("error"),this._worker.error(g)}}c.prototype={accumulate:function(d){return u(this,d)},on:function(d,p){var f=this;return d==="data"?this._worker.on(d,function(m){p.call(f,m.data,m.meta)}):this._worker.on(d,function(){i.delay(p,arguments,f)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},d)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(s,t,e){"use strict";if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",e.nodebuffer=typeof Buffer<"u",e.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")e.blob=!1;else{var i=new ArrayBuffer(0);try{e.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),e.blob=r.getBlob("application/zip").size===0}catch{e.blob=!1}}}try{e.nodestream=!!s("readable-stream").Readable}catch{e.nodestream=!1}},{"readable-stream":16}],31:[function(s,t,e){"use strict";for(var i=s("./utils"),r=s("./support"),a=s("./nodejsUtils"),n=s("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;o[254]=o[254]=1;function h(){n.call(this,"utf-8 decode"),this.leftOver=null}function u(){n.call(this,"utf-8 encode")}e.utf8encode=function(c){return r.nodebuffer?a.newBufferFrom(c,"utf-8"):(function(d){var p,f,m,g,y,v=d.length,b=0;for(g=0;g<v;g++)(64512&(f=d.charCodeAt(g)))==55296&&g+1<v&&(64512&(m=d.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),b+=f<128?1:f<2048?2:f<65536?3:4;for(p=r.uint8array?new Uint8Array(b):new Array(b),g=y=0;y<b;g++)(64512&(f=d.charCodeAt(g)))==55296&&g+1<v&&(64512&(m=d.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),f<128?p[y++]=f:(f<2048?p[y++]=192|f>>>6:(f<65536?p[y++]=224|f>>>12:(p[y++]=240|f>>>18,p[y++]=128|f>>>12&63),p[y++]=128|f>>>6&63),p[y++]=128|63&f);return p})(c)},e.utf8decode=function(c){return r.nodebuffer?i.transformTo("nodebuffer",c).toString("utf-8"):(function(d){var p,f,m,g,y=d.length,v=new Array(2*y);for(p=f=0;p<y;)if((m=d[p++])<128)v[f++]=m;else if(4<(g=o[m]))v[f++]=65533,p+=g-1;else{for(m&=g===2?31:g===3?15:7;1<g&&p<y;)m=m<<6|63&d[p++],g--;1<g?v[f++]=65533:m<65536?v[f++]=m:(m-=65536,v[f++]=55296|m>>10&1023,v[f++]=56320|1023&m)}return v.length!==f&&(v.subarray?v=v.subarray(0,f):v.length=f),i.applyFromCharCode(v)})(c=i.transformTo(r.uint8array?"uint8array":"array",c))},i.inherits(h,n),h.prototype.processChunk=function(c){var d=i.transformTo(r.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var p=d;(d=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),d.set(p,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var f=(function(g,y){var v;for((y=y||g.length)>g.length&&(y=g.length),v=y-1;0<=v&&(192&g[v])==128;)v--;return v<0||v===0?y:v+o[g[v]]>y?v:y})(d),m=d;f!==d.length&&(r.uint8array?(m=d.subarray(0,f),this.leftOver=d.subarray(f,d.length)):(m=d.slice(0,f),this.leftOver=d.slice(f,d.length))),this.push({data:e.utf8decode(m),meta:c.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=h,i.inherits(u,n),u.prototype.processChunk=function(c){this.push({data:e.utf8encode(c.data),meta:c.meta})},e.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(s,t,e){"use strict";var i=s("./support"),r=s("./base64"),a=s("./nodejsUtils"),n=s("./external");function o(p){return p}function l(p,f){for(var m=0;m<p.length;++m)f[m]=255&p.charCodeAt(m);return f}s("setimmediate"),e.newBlob=function(p,f){e.checkSupport("blob");try{return new Blob([p],{type:f})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(p),m.getBlob(f)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(p,f,m){var g=[],y=0,v=p.length;if(v<=m)return String.fromCharCode.apply(null,p);for(;y<v;)f==="array"||f==="nodebuffer"?g.push(String.fromCharCode.apply(null,p.slice(y,Math.min(y+m,v)))):g.push(String.fromCharCode.apply(null,p.subarray(y,Math.min(y+m,v)))),y+=m;return g.join("")},stringifyByChar:function(p){for(var f="",m=0;m<p.length;m++)f+=String.fromCharCode(p[m]);return f},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function u(p){var f=65536,m=e.getTypeOf(p),g=!0;if(m==="uint8array"?g=h.applyCanBeUsed.uint8array:m==="nodebuffer"&&(g=h.applyCanBeUsed.nodebuffer),g)for(;1<f;)try{return h.stringifyByChunk(p,m,f)}catch{f=Math.floor(f/2)}return h.stringifyByChar(p)}function c(p,f){for(var m=0;m<p.length;m++)f[m]=p[m];return f}e.applyFromCharCode=u;var d={};d.string={string:o,array:function(p){return l(p,new Array(p.length))},arraybuffer:function(p){return d.string.uint8array(p).buffer},uint8array:function(p){return l(p,new Uint8Array(p.length))},nodebuffer:function(p){return l(p,a.allocBuffer(p.length))}},d.array={string:u,array:o,arraybuffer:function(p){return new Uint8Array(p).buffer},uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(p)}},d.arraybuffer={string:function(p){return u(new Uint8Array(p))},array:function(p){return c(new Uint8Array(p),new Array(p.byteLength))},arraybuffer:o,uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(new Uint8Array(p))}},d.uint8array={string:u,array:function(p){return c(p,new Array(p.length))},arraybuffer:function(p){return p.buffer},uint8array:o,nodebuffer:function(p){return a.newBufferFrom(p)}},d.nodebuffer={string:u,array:function(p){return c(p,new Array(p.length))},arraybuffer:function(p){return d.nodebuffer.uint8array(p).buffer},uint8array:function(p){return c(p,new Uint8Array(p.length))},nodebuffer:o},e.transformTo=function(p,f){if(f=f||"",!p)return f;e.checkSupport(p);var m=e.getTypeOf(f);return d[m][p](f)},e.resolve=function(p){for(var f=p.split("/"),m=[],g=0;g<f.length;g++){var y=f[g];y==="."||y===""&&g!==0&&g!==f.length-1||(y===".."?m.pop():m.push(y))}return m.join("/")},e.getTypeOf=function(p){return typeof p=="string"?"string":Object.prototype.toString.call(p)==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(p)?"nodebuffer":i.uint8array&&p instanceof Uint8Array?"uint8array":i.arraybuffer&&p instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(p){if(!i[p.toLowerCase()])throw new Error(p+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(p){var f,m,g="";for(m=0;m<(p||"").length;m++)g+="\\x"+((f=p.charCodeAt(m))<16?"0":"")+f.toString(16).toUpperCase();return g},e.delay=function(p,f,m){setImmediate(function(){p.apply(m||null,f||[])})},e.inherits=function(p,f){function m(){}m.prototype=f.prototype,p.prototype=new m},e.extend=function(){var p,f,m={};for(p=0;p<arguments.length;p++)for(f in arguments[p])Object.prototype.hasOwnProperty.call(arguments[p],f)&&m[f]===void 0&&(m[f]=arguments[p][f]);return m},e.prepareContent=function(p,f,m,g,y){return n.Promise.resolve(f).then(function(v){return i.blob&&(v instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(v))!==-1)&&typeof FileReader<"u"?new n.Promise(function(b,x){var _=new FileReader;_.onload=function(w){b(w.target.result)},_.onerror=function(w){x(w.target.error)},_.readAsArrayBuffer(v)}):v}).then(function(v){var b=e.getTypeOf(v);return b?(b==="arraybuffer"?v=e.transformTo("uint8array",v):b==="string"&&(y?v=r.decode(v):m&&g!==!0&&(v=(function(x){return l(x,i.uint8array?new Uint8Array(x.length):new Array(x.length))})(v))),v):n.Promise.reject(new Error("Can't read the data of '"+p+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(s,t,e){"use strict";var i=s("./reader/readerFor"),r=s("./utils"),a=s("./signature"),n=s("./zipEntry"),o=s("./support");function l(h){this.files=[],this.loadOptions=h}l.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var u=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(u)+", expected "+r.pretty(h)+")")}},isSignature:function(h,u){var c=this.reader.index;this.reader.setIndex(h);var d=this.reader.readString(4)===u;return this.reader.setIndex(c),d},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 h=this.reader.readData(this.zipCommentLength),u=o.uint8array?"uint8array":"array",c=r.transformTo(u,h);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,u,c,d=this.zip64EndOfCentralSize-44;0<d;)h=this.reader.readInt(2),u=this.reader.readInt(4),c=this.reader.readData(u),this.zip64ExtensibleData[h]={id:h,length:u,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,u;for(h=0;h<this.files.length;h++)u=this.files[h],this.reader.setIndex(u.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),u.readLocalPart(this.reader),u.handleUTF8(),u.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);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 h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var u=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=u-c;if(0<d)this.isSignature(u,a.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(h){this.reader=i(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(s,t,e){"use strict";var i=s("./reader/readerFor"),r=s("./utils"),a=s("./compressedObject"),n=s("./crc32"),o=s("./utf8"),l=s("./compressions"),h=s("./support");function u(c,d){this.options=c,this.loadOptions=d}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var d,p;if(c.skip(22),this.fileNameLength=c.readInt(2),p=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(p),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((d=(function(f){for(var m in l)if(Object.prototype.hasOwnProperty.call(l,m)&&l[m].magic===f)return l[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,d,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var d=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(d),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var d,p,f,m=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<m;)d=c.readInt(2),p=c.readInt(2),f=c.readData(p),this.extraFields[d]={id:d,length:p,value:f};c.setIndex(m)},handleUTF8:function(){var c=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var p=r.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(p)}var f=this.findExtraFieldUnicodeComment();if(f!==null)this.fileCommentStr=f;else{var m=r.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var d=i(c.value);return d.readInt(1)!==1||n(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var d=i(c.value);return d.readInt(1)!==1||n(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(s,t,e){"use strict";function i(d,p,f){this.name=d,this.dir=f.dir,this.date=f.date,this.comment=f.comment,this.unixPermissions=f.unixPermissions,this.dosPermissions=f.dosPermissions,this._data=p,this._dataBinary=f.binary,this.options={compression:f.compression,compressionOptions:f.compressionOptions}}var r=s("./stream/StreamHelper"),a=s("./stream/DataWorker"),n=s("./utf8"),o=s("./compressedObject"),l=s("./stream/GenericWorker");i.prototype={internalStream:function(d){var p=null,f="string";try{if(!d)throw new Error("No output type specified.");var m=(f=d.toLowerCase())==="string"||f==="text";f!=="binarystring"&&f!=="text"||(f="string"),p=this._decompressWorker();var g=!this._dataBinary;g&&!m&&(p=p.pipe(new n.Utf8EncodeWorker)),!g&&m&&(p=p.pipe(new n.Utf8DecodeWorker))}catch(y){(p=new l("error")).error(y)}return new r(p,f,"")},async:function(d,p){return this.internalStream(d).accumulate(p)},nodeStream:function(d,p){return this.internalStream(d||"nodebuffer").toNodejsStream(p)},_compressWorker:function(d,p){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var f=this._decompressWorker();return this._dataBinary||(f=f.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom(f,d,p)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)i.prototype[h[c]]=u;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(s,t,e){(function(i){"use strict";var r,a,n=i.MutationObserver||i.WebKitMutationObserver;if(n){var o=0,l=new n(d),h=i.document.createTextNode("");l.observe(h,{characterData:!0}),r=function(){h.data=o=++o%2}}else if(i.setImmediate||i.MessageChannel===void 0)r="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var p=i.document.createElement("script");p.onreadystatechange=function(){d(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},i.document.documentElement.appendChild(p)}:function(){setTimeout(d,0)};else{var u=new i.MessageChannel;u.port1.onmessage=d,r=function(){u.port2.postMessage(0)}}var c=[];function d(){var p,f;a=!0;for(var m=c.length;m;){for(f=c,c=[],p=-1;++p<m;)f[p]();m=c.length}a=!1}t.exports=function(p){c.push(p)!==1||a||r()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(s,t,e){"use strict";var i=s("immediate");function r(){}var a={},n=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function h(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,m!==r&&p(this,m)}function u(m,g,y){this.promise=m,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function c(m,g,y){i(function(){var v;try{v=g(y)}catch(b){return a.reject(m,b)}v===m?a.reject(m,new TypeError("Cannot resolve promise with itself")):a.resolve(m,v)})}function d(m){var g=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof g=="function")return function(){g.apply(m,arguments)}}function p(m,g){var y=!1;function v(_){y||(y=!0,a.reject(m,_))}function b(_){y||(y=!0,a.resolve(m,_))}var x=f(function(){g(b,v)});x.status==="error"&&v(x.value)}function f(m,g){var y={};try{y.value=m(g),y.status="success"}catch(v){y.status="error",y.value=v}return y}(t.exports=h).prototype.finally=function(m){if(typeof m!="function")return this;var g=this.constructor;return this.then(function(y){return g.resolve(m()).then(function(){return y})},function(y){return g.resolve(m()).then(function(){throw y})})},h.prototype.catch=function(m){return this.then(null,m)},h.prototype.then=function(m,g){if(typeof m!="function"&&this.state===o||typeof g!="function"&&this.state===n)return this;var y=new this.constructor(r);return this.state!==l?c(y,this.state===o?m:g,this.outcome):this.queue.push(new u(y,m,g)),y},u.prototype.callFulfilled=function(m){a.resolve(this.promise,m)},u.prototype.otherCallFulfilled=function(m){c(this.promise,this.onFulfilled,m)},u.prototype.callRejected=function(m){a.reject(this.promise,m)},u.prototype.otherCallRejected=function(m){c(this.promise,this.onRejected,m)},a.resolve=function(m,g){var y=f(d,g);if(y.status==="error")return a.reject(m,y.value);var v=y.value;if(v)p(m,v);else{m.state=o,m.outcome=g;for(var b=-1,x=m.queue.length;++b<x;)m.queue[b].callFulfilled(g)}return m},a.reject=function(m,g){m.state=n,m.outcome=g;for(var y=-1,v=m.queue.length;++y<v;)m.queue[y].callRejected(g);return m},h.resolve=function(m){return m instanceof this?m:a.resolve(new this(r),m)},h.reject=function(m){var g=new this(r);return a.reject(g,m)},h.all=function(m){var g=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=m.length,v=!1;if(!y)return this.resolve([]);for(var b=new Array(y),x=0,_=-1,w=new this(r);++_<y;)C(m[_],_);return w;function C(P,D){g.resolve(P).then(function($){b[D]=$,++x!==y||v||(v=!0,a.resolve(w,b))},function($){v||(v=!0,a.reject(w,$))})}},h.race=function(m){var g=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=m.length,v=!1;if(!y)return this.resolve([]);for(var b=-1,x=new this(r);++b<y;)_=m[b],g.resolve(_).then(function(w){v||(v=!0,a.resolve(x,w))},function(w){v||(v=!0,a.reject(x,w))});var _;return x}},{immediate:36}],38:[function(s,t,e){"use strict";var i={};(0,s("./lib/utils/common").assign)(i,s("./lib/deflate"),s("./lib/inflate"),s("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(s,t,e){"use strict";var i=s("./zlib/deflate"),r=s("./utils/common"),a=s("./utils/strings"),n=s("./zlib/messages"),o=s("./zlib/zstream"),l=Object.prototype.toString,h=0,u=-1,c=0,d=8;function p(m){if(!(this instanceof p))return new p(m);this.options=r.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},m||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var y=i.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(y!==h)throw new Error(n[y]);if(g.header&&i.deflateSetHeader(this.strm,g.header),g.dictionary){var v;if(v=typeof g.dictionary=="string"?a.string2buf(g.dictionary):l.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(y=i.deflateSetDictionary(this.strm,v))!==h)throw new Error(n[y]);this._dict_set=!0}}function f(m,g){var y=new p(g);if(y.push(m,!0),y.err)throw y.msg||n[y.err];return y.result}p.prototype.push=function(m,g){var y,v,b=this.strm,x=this.options.chunkSize;if(this.ended)return!1;v=g===~~g?g:g===!0?4:0,typeof m=="string"?b.input=a.string2buf(m):l.call(m)==="[object ArrayBuffer]"?b.input=new Uint8Array(m):b.input=m,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new r.Buf8(x),b.next_out=0,b.avail_out=x),(y=i.deflate(b,v))!==1&&y!==h)return this.onEnd(y),!(this.ended=!0);b.avail_out!==0&&(b.avail_in!==0||v!==4&&v!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(r.shrinkBuf(b.output,b.next_out))):this.onData(r.shrinkBuf(b.output,b.next_out)))}while((0<b.avail_in||b.avail_out===0)&&y!==1);return v===4?(y=i.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===h):v!==2||(this.onEnd(h),!(b.avail_out=0))},p.prototype.onData=function(m){this.chunks.push(m)},p.prototype.onEnd=function(m){m===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},e.Deflate=p,e.deflate=f,e.deflateRaw=function(m,g){return(g=g||{}).raw=!0,f(m,g)},e.gzip=function(m,g){return(g=g||{}).gzip=!0,f(m,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(s,t,e){"use strict";var i=s("./zlib/inflate"),r=s("./utils/common"),a=s("./utils/strings"),n=s("./zlib/constants"),o=s("./zlib/messages"),l=s("./zlib/zstream"),h=s("./zlib/gzheader"),u=Object.prototype.toString;function c(p){if(!(this instanceof c))return new c(p);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},p||{});var f=this.options;f.raw&&0<=f.windowBits&&f.windowBits<16&&(f.windowBits=-f.windowBits,f.windowBits===0&&(f.windowBits=-15)),!(0<=f.windowBits&&f.windowBits<16)||p&&p.windowBits||(f.windowBits+=32),15<f.windowBits&&f.windowBits<48&&(15&f.windowBits)==0&&(f.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var m=i.inflateInit2(this.strm,f.windowBits);if(m!==n.Z_OK)throw new Error(o[m]);this.header=new h,i.inflateGetHeader(this.strm,this.header)}function d(p,f){var m=new c(f);if(m.push(p,!0),m.err)throw m.msg||o[m.err];return m.result}c.prototype.push=function(p,f){var m,g,y,v,b,x,_=this.strm,w=this.options.chunkSize,C=this.options.dictionary,P=!1;if(this.ended)return!1;g=f===~~f?f:f===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof p=="string"?_.input=a.binstring2buf(p):u.call(p)==="[object ArrayBuffer]"?_.input=new Uint8Array(p):_.input=p,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new r.Buf8(w),_.next_out=0,_.avail_out=w),(m=i.inflate(_,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&C&&(x=typeof C=="string"?a.string2buf(C):u.call(C)==="[object ArrayBuffer]"?new Uint8Array(C):C,m=i.inflateSetDictionary(this.strm,x)),m===n.Z_BUF_ERROR&&P===!0&&(m=n.Z_OK,P=!1),m!==n.Z_STREAM_END&&m!==n.Z_OK)return this.onEnd(m),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&m!==n.Z_STREAM_END&&(_.avail_in!==0||g!==n.Z_FINISH&&g!==n.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=a.utf8border(_.output,_.next_out),v=_.next_out-y,b=a.buf2string(_.output,y),_.next_out=v,_.avail_out=w-v,v&&r.arraySet(_.output,_.output,y,v,0),this.onData(b)):this.onData(r.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(P=!0)}while((0<_.avail_in||_.avail_out===0)&&m!==n.Z_STREAM_END);return m===n.Z_STREAM_END&&(g=n.Z_FINISH),g===n.Z_FINISH?(m=i.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===n.Z_OK):g!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(_.avail_out=0))},c.prototype.onData=function(p){this.chunks.push(p)},c.prototype.onEnd=function(p){p===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},e.Inflate=c,e.inflate=d,e.inflateRaw=function(p,f){return(f=f||{}).raw=!0,d(p,f)},e.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(s,t,e){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var l=o.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var h in l)l.hasOwnProperty(h)&&(n[h]=l[h])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var r={arraySet:function(n,o,l,h,u){if(o.subarray&&n.subarray)n.set(o.subarray(l,l+h),u);else for(var c=0;c<h;c++)n[u+c]=o[l+c]},flattenChunks:function(n){var o,l,h,u,c,d;for(o=h=0,l=n.length;o<l;o++)h+=n[o].length;for(d=new Uint8Array(h),o=u=0,l=n.length;o<l;o++)c=n[o],d.set(c,u),u+=c.length;return d}},a={arraySet:function(n,o,l,h,u){for(var c=0;c<h;c++)n[u+c]=o[l+c]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(i)},{}],42:[function(s,t,e){"use strict";var i=s("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var n=new i.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(h,u){if(u<65537&&(h.subarray&&a||!h.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(h,u));for(var c="",d=0;d<u;d++)c+=String.fromCharCode(h[d]);return c}n[254]=n[254]=1,e.string2buf=function(h){var u,c,d,p,f,m=h.length,g=0;for(p=0;p<m;p++)(64512&(c=h.charCodeAt(p)))==55296&&p+1<m&&(64512&(d=h.charCodeAt(p+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),p++),g+=c<128?1:c<2048?2:c<65536?3:4;for(u=new i.Buf8(g),p=f=0;f<g;p++)(64512&(c=h.charCodeAt(p)))==55296&&p+1<m&&(64512&(d=h.charCodeAt(p+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),p++),c<128?u[f++]=c:(c<2048?u[f++]=192|c>>>6:(c<65536?u[f++]=224|c>>>12:(u[f++]=240|c>>>18,u[f++]=128|c>>>12&63),u[f++]=128|c>>>6&63),u[f++]=128|63&c);return u},e.buf2binstring=function(h){return l(h,h.length)},e.binstring2buf=function(h){for(var u=new i.Buf8(h.length),c=0,d=u.length;c<d;c++)u[c]=h.charCodeAt(c);return u},e.buf2string=function(h,u){var c,d,p,f,m=u||h.length,g=new Array(2*m);for(c=d=0;c<m;)if((p=h[c++])<128)g[d++]=p;else if(4<(f=n[p]))g[d++]=65533,c+=f-1;else{for(p&=f===2?31:f===3?15:7;1<f&&c<m;)p=p<<6|63&h[c++],f--;1<f?g[d++]=65533:p<65536?g[d++]=p:(p-=65536,g[d++]=55296|p>>10&1023,g[d++]=56320|1023&p)}return l(g,d)},e.utf8border=function(h,u){var c;for((u=u||h.length)>h.length&&(u=h.length),c=u-1;0<=c&&(192&h[c])==128;)c--;return c<0||c===0?u:c+n[h[c]]>u?c:u}},{"./common":41}],43:[function(s,t,e){"use strict";t.exports=function(i,r,a,n){for(var o=65535&i|0,l=i>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;l=l+(o=o+r[n++]|0)|0,--h;);o%=65521,l%=65521}return o|l<<16|0}},{}],44:[function(s,t,e){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(s,t,e){"use strict";var i=(function(){for(var r,a=[],n=0;n<256;n++){r=n;for(var o=0;o<8;o++)r=1&r?3988292384^r>>>1:r>>>1;a[n]=r}return a})();t.exports=function(r,a,n,o){var l=i,h=o+n;r^=-1;for(var u=o;u<h;u++)r=r>>>8^l[255&(r^a[u])];return-1^r}},{}],46:[function(s,t,e){"use strict";var i,r=s("../utils/common"),a=s("./trees"),n=s("./adler32"),o=s("./crc32"),l=s("./messages"),h=0,u=4,c=0,d=-2,p=-1,f=4,m=2,g=8,y=9,v=286,b=30,x=19,_=2*v+1,w=15,C=3,P=258,D=P+C+1,$=42,L=113,T=1,M=2,E=3,N=4;function X(O,ce){return O.msg=l[ce],ce}function W(O){return(O<<1)-(4<O?9:0)}function q(O){for(var ce=O.length;0<=--ce;)O[ce]=0}function V(O){var ce=O.state,oe=ce.pending;oe>O.avail_out&&(oe=O.avail_out),oe!==0&&(r.arraySet(O.output,ce.pending_buf,ce.pending_out,oe,O.next_out),O.next_out+=oe,ce.pending_out+=oe,O.total_out+=oe,O.avail_out-=oe,ce.pending-=oe,ce.pending===0&&(ce.pending_out=0))}function B(O,ce){a._tr_flush_block(O,0<=O.block_start?O.block_start:-1,O.strstart-O.block_start,ce),O.block_start=O.strstart,V(O.strm)}function ne(O,ce){O.pending_buf[O.pending++]=ce}function K(O,ce){O.pending_buf[O.pending++]=ce>>>8&255,O.pending_buf[O.pending++]=255&ce}function J(O,ce){var oe,z,j=O.max_chain_length,Z=O.strstart,ve=O.prev_length,be=O.nice_match,ie=O.strstart>O.w_size-D?O.strstart-(O.w_size-D):0,Se=O.window,Ne=O.w_mask,Pe=O.prev,rt=O.strstart+P,_i=Se[Z+ve-1],Ht=Se[Z+ve];O.prev_length>=O.good_match&&(j>>=2),be>O.lookahead&&(be=O.lookahead);do if(Se[(oe=ce)+ve]===Ht&&Se[oe+ve-1]===_i&&Se[oe]===Se[Z]&&Se[++oe]===Se[Z+1]){Z+=2,oe++;do;while(Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Se[++Z]===Se[++oe]&&Z<rt);if(z=P-(rt-Z),Z=rt-P,ve<z){if(O.match_start=ce,be<=(ve=z))break;_i=Se[Z+ve-1],Ht=Se[Z+ve]}}while((ce=Pe[ce&Ne])>ie&&--j!=0);return ve<=O.lookahead?ve:O.lookahead}function ge(O){var ce,oe,z,j,Z,ve,be,ie,Se,Ne,Pe=O.w_size;do{if(j=O.window_size-O.lookahead-O.strstart,O.strstart>=Pe+(Pe-D)){for(r.arraySet(O.window,O.window,Pe,Pe,0),O.match_start-=Pe,O.strstart-=Pe,O.block_start-=Pe,ce=oe=O.hash_size;z=O.head[--ce],O.head[ce]=Pe<=z?z-Pe:0,--oe;);for(ce=oe=Pe;z=O.prev[--ce],O.prev[ce]=Pe<=z?z-Pe:0,--oe;);j+=Pe}if(O.strm.avail_in===0)break;if(ve=O.strm,be=O.window,ie=O.strstart+O.lookahead,Se=j,Ne=void 0,Ne=ve.avail_in,Se<Ne&&(Ne=Se),oe=Ne===0?0:(ve.avail_in-=Ne,r.arraySet(be,ve.input,ve.next_in,Ne,ie),ve.state.wrap===1?ve.adler=n(ve.adler,be,Ne,ie):ve.state.wrap===2&&(ve.adler=o(ve.adler,be,Ne,ie)),ve.next_in+=Ne,ve.total_in+=Ne,Ne),O.lookahead+=oe,O.lookahead+O.insert>=C)for(Z=O.strstart-O.insert,O.ins_h=O.window[Z],O.ins_h=(O.ins_h<<O.hash_shift^O.window[Z+1])&O.hash_mask;O.insert&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[Z+C-1])&O.hash_mask,O.prev[Z&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=Z,Z++,O.insert--,!(O.lookahead+O.insert<C)););}while(O.lookahead<D&&O.strm.avail_in!==0)}function Ve(O,ce){for(var oe,z;;){if(O.lookahead<D){if(ge(O),O.lookahead<D&&ce===h)return T;if(O.lookahead===0)break}if(oe=0,O.lookahead>=C&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+C-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),oe!==0&&O.strstart-oe<=O.w_size-D&&(O.match_length=J(O,oe)),O.match_length>=C)if(z=a._tr_tally(O,O.strstart-O.match_start,O.match_length-C),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=C){for(O.match_length--;O.strstart++,O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+C-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart,--O.match_length!=0;);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else z=a._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(z&&(B(O,!1),O.strm.avail_out===0))return T}return O.insert=O.strstart<C-1?O.strstart:C-1,ce===u?(B(O,!0),O.strm.avail_out===0?E:N):O.last_lit&&(B(O,!1),O.strm.avail_out===0)?T:M}function we(O,ce){for(var oe,z,j;;){if(O.lookahead<D){if(ge(O),O.lookahead<D&&ce===h)return T;if(O.lookahead===0)break}if(oe=0,O.lookahead>=C&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+C-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=C-1,oe!==0&&O.prev_length<O.max_lazy_match&&O.strstart-oe<=O.w_size-D&&(O.match_length=J(O,oe),O.match_length<=5&&(O.strategy===1||O.match_length===C&&4096<O.strstart-O.match_start)&&(O.match_length=C-1)),O.prev_length>=C&&O.match_length<=O.prev_length){for(j=O.strstart+O.lookahead-C,z=a._tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-C),O.lookahead-=O.prev_length-1,O.prev_length-=2;++O.strstart<=j&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+C-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),--O.prev_length!=0;);if(O.match_available=0,O.match_length=C-1,O.strstart++,z&&(B(O,!1),O.strm.avail_out===0))return T}else if(O.match_available){if((z=a._tr_tally(O,0,O.window[O.strstart-1]))&&B(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return T}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(z=a._tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<C-1?O.strstart:C-1,ce===u?(B(O,!0),O.strm.avail_out===0?E:N):O.last_lit&&(B(O,!1),O.strm.avail_out===0)?T:M}function Ie(O,ce,oe,z,j){this.good_length=O,this.max_lazy=ce,this.nice_length=oe,this.max_chain=z,this.func=j}function st(){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=g,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 r.Buf16(2*_),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*x+1)),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(w+1),this.heap=new r.Buf16(2*v+1),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*v+1),q(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 Ge(O){var ce;return O&&O.state?(O.total_in=O.total_out=0,O.data_type=m,(ce=O.state).pending=0,ce.pending_out=0,ce.wrap<0&&(ce.wrap=-ce.wrap),ce.status=ce.wrap?$:L,O.adler=ce.wrap===2?0:1,ce.last_flush=h,a._tr_init(ce),c):X(O,d)}function Jt(O){var ce=Ge(O);return ce===c&&(function(oe){oe.window_size=2*oe.w_size,q(oe.head),oe.max_lazy_match=i[oe.level].max_lazy,oe.good_match=i[oe.level].good_length,oe.nice_match=i[oe.level].nice_length,oe.max_chain_length=i[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=C-1,oe.match_available=0,oe.ins_h=0})(O.state),ce}function ni(O,ce,oe,z,j,Z){if(!O)return d;var ve=1;if(ce===p&&(ce=6),z<0?(ve=0,z=-z):15<z&&(ve=2,z-=16),j<1||y<j||oe!==g||z<8||15<z||ce<0||9<ce||Z<0||f<Z)return X(O,d);z===8&&(z=9);var be=new st;return(O.state=be).strm=O,be.wrap=ve,be.gzhead=null,be.w_bits=z,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=j+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+C-1)/C),be.window=new r.Buf8(2*be.w_size),be.head=new r.Buf16(be.hash_size),be.prev=new r.Buf16(be.w_size),be.lit_bufsize=1<<j+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new r.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=ce,be.strategy=Z,be.method=oe,Jt(O)}i=[new Ie(0,0,0,0,function(O,ce){var oe=65535;for(oe>O.pending_buf_size-5&&(oe=O.pending_buf_size-5);;){if(O.lookahead<=1){if(ge(O),O.lookahead===0&&ce===h)return T;if(O.lookahead===0)break}O.strstart+=O.lookahead,O.lookahead=0;var z=O.block_start+oe;if((O.strstart===0||O.strstart>=z)&&(O.lookahead=O.strstart-z,O.strstart=z,B(O,!1),O.strm.avail_out===0)||O.strstart-O.block_start>=O.w_size-D&&(B(O,!1),O.strm.avail_out===0))return T}return O.insert=0,ce===u?(B(O,!0),O.strm.avail_out===0?E:N):(O.strstart>O.block_start&&(B(O,!1),O.strm.avail_out),T)}),new Ie(4,4,8,4,Ve),new Ie(4,5,16,8,Ve),new Ie(4,6,32,32,Ve),new Ie(4,4,16,16,we),new Ie(8,16,32,32,we),new Ie(8,16,128,128,we),new Ie(8,32,128,256,we),new Ie(32,128,258,1024,we),new Ie(32,258,258,4096,we)],e.deflateInit=function(O,ce){return ni(O,ce,g,15,8,0)},e.deflateInit2=ni,e.deflateReset=Jt,e.deflateResetKeep=Ge,e.deflateSetHeader=function(O,ce){return O&&O.state?O.state.wrap!==2?d:(O.state.gzhead=ce,c):d},e.deflate=function(O,ce){var oe,z,j,Z;if(!O||!O.state||5<ce||ce<0)return O?X(O,d):d;if(z=O.state,!O.output||!O.input&&O.avail_in!==0||z.status===666&&ce!==u)return X(O,O.avail_out===0?-5:d);if(z.strm=O,oe=z.last_flush,z.last_flush=ce,z.status===$)if(z.wrap===2)O.adler=0,ne(z,31),ne(z,139),ne(z,8),z.gzhead?(ne(z,(z.gzhead.text?1:0)+(z.gzhead.hcrc?2:0)+(z.gzhead.extra?4:0)+(z.gzhead.name?8:0)+(z.gzhead.comment?16:0)),ne(z,255&z.gzhead.time),ne(z,z.gzhead.time>>8&255),ne(z,z.gzhead.time>>16&255),ne(z,z.gzhead.time>>24&255),ne(z,z.level===9?2:2<=z.strategy||z.level<2?4:0),ne(z,255&z.gzhead.os),z.gzhead.extra&&z.gzhead.extra.length&&(ne(z,255&z.gzhead.extra.length),ne(z,z.gzhead.extra.length>>8&255)),z.gzhead.hcrc&&(O.adler=o(O.adler,z.pending_buf,z.pending,0)),z.gzindex=0,z.status=69):(ne(z,0),ne(z,0),ne(z,0),ne(z,0),ne(z,0),ne(z,z.level===9?2:2<=z.strategy||z.level<2?4:0),ne(z,3),z.status=L);else{var ve=g+(z.w_bits-8<<4)<<8;ve|=(2<=z.strategy||z.level<2?0:z.level<6?1:z.level===6?2:3)<<6,z.strstart!==0&&(ve|=32),ve+=31-ve%31,z.status=L,K(z,ve),z.strstart!==0&&(K(z,O.adler>>>16),K(z,65535&O.adler)),O.adler=1}if(z.status===69)if(z.gzhead.extra){for(j=z.pending;z.gzindex<(65535&z.gzhead.extra.length)&&(z.pending!==z.pending_buf_size||(z.gzhead.hcrc&&z.pending>j&&(O.adler=o(O.adler,z.pending_buf,z.pending-j,j)),V(O),j=z.pending,z.pending!==z.pending_buf_size));)ne(z,255&z.gzhead.extra[z.gzindex]),z.gzindex++;z.gzhead.hcrc&&z.pending>j&&(O.adler=o(O.adler,z.pending_buf,z.pending-j,j)),z.gzindex===z.gzhead.extra.length&&(z.gzindex=0,z.status=73)}else z.status=73;if(z.status===73)if(z.gzhead.name){j=z.pending;do{if(z.pending===z.pending_buf_size&&(z.gzhead.hcrc&&z.pending>j&&(O.adler=o(O.adler,z.pending_buf,z.pending-j,j)),V(O),j=z.pending,z.pending===z.pending_buf_size)){Z=1;break}Z=z.gzindex<z.gzhead.name.length?255&z.gzhead.name.charCodeAt(z.gzindex++):0,ne(z,Z)}while(Z!==0);z.gzhead.hcrc&&z.pending>j&&(O.adler=o(O.adler,z.pending_buf,z.pending-j,j)),Z===0&&(z.gzindex=0,z.status=91)}else z.status=91;if(z.status===91)if(z.gzhead.comment){j=z.pending;do{if(z.pending===z.pending_buf_size&&(z.gzhead.hcrc&&z.pending>j&&(O.adler=o(O.adler,z.pending_buf,z.pending-j,j)),V(O),j=z.pending,z.pending===z.pending_buf_size)){Z=1;break}Z=z.gzindex<z.gzhead.comment.length?255&z.gzhead.comment.charCodeAt(z.gzindex++):0,ne(z,Z)}while(Z!==0);z.gzhead.hcrc&&z.pending>j&&(O.adler=o(O.adler,z.pending_buf,z.pending-j,j)),Z===0&&(z.status=103)}else z.status=103;if(z.status===103&&(z.gzhead.hcrc?(z.pending+2>z.pending_buf_size&&V(O),z.pending+2<=z.pending_buf_size&&(ne(z,255&O.adler),ne(z,O.adler>>8&255),O.adler=0,z.status=L)):z.status=L),z.pending!==0){if(V(O),O.avail_out===0)return z.last_flush=-1,c}else if(O.avail_in===0&&W(ce)<=W(oe)&&ce!==u)return X(O,-5);if(z.status===666&&O.avail_in!==0)return X(O,-5);if(O.avail_in!==0||z.lookahead!==0||ce!==h&&z.status!==666){var be=z.strategy===2?(function(ie,Se){for(var Ne;;){if(ie.lookahead===0&&(ge(ie),ie.lookahead===0)){if(Se===h)return T;break}if(ie.match_length=0,Ne=a._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++,Ne&&(B(ie,!1),ie.strm.avail_out===0))return T}return ie.insert=0,Se===u?(B(ie,!0),ie.strm.avail_out===0?E:N):ie.last_lit&&(B(ie,!1),ie.strm.avail_out===0)?T:M})(z,ce):z.strategy===3?(function(ie,Se){for(var Ne,Pe,rt,_i,Ht=ie.window;;){if(ie.lookahead<=P){if(ge(ie),ie.lookahead<=P&&Se===h)return T;if(ie.lookahead===0)break}if(ie.match_length=0,ie.lookahead>=C&&0<ie.strstart&&(Pe=Ht[rt=ie.strstart-1])===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]){_i=ie.strstart+P;do;while(Pe===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]&&Pe===Ht[++rt]&&rt<_i);ie.match_length=P-(_i-rt),ie.match_length>ie.lookahead&&(ie.match_length=ie.lookahead)}if(ie.match_length>=C?(Ne=a._tr_tally(ie,1,ie.match_length-C),ie.lookahead-=ie.match_length,ie.strstart+=ie.match_length,ie.match_length=0):(Ne=a._tr_tally(ie,0,ie.window[ie.strstart]),ie.lookahead--,ie.strstart++),Ne&&(B(ie,!1),ie.strm.avail_out===0))return T}return ie.insert=0,Se===u?(B(ie,!0),ie.strm.avail_out===0?E:N):ie.last_lit&&(B(ie,!1),ie.strm.avail_out===0)?T:M})(z,ce):i[z.level].func(z,ce);if(be!==E&&be!==N||(z.status=666),be===T||be===E)return O.avail_out===0&&(z.last_flush=-1),c;if(be===M&&(ce===1?a._tr_align(z):ce!==5&&(a._tr_stored_block(z,0,0,!1),ce===3&&(q(z.head),z.lookahead===0&&(z.strstart=0,z.block_start=0,z.insert=0))),V(O),O.avail_out===0))return z.last_flush=-1,c}return ce!==u?c:z.wrap<=0?1:(z.wrap===2?(ne(z,255&O.adler),ne(z,O.adler>>8&255),ne(z,O.adler>>16&255),ne(z,O.adler>>24&255),ne(z,255&O.total_in),ne(z,O.total_in>>8&255),ne(z,O.total_in>>16&255),ne(z,O.total_in>>24&255)):(K(z,O.adler>>>16),K(z,65535&O.adler)),V(O),0<z.wrap&&(z.wrap=-z.wrap),z.pending!==0?c:1)},e.deflateEnd=function(O){var ce;return O&&O.state?(ce=O.state.status)!==$&&ce!==69&&ce!==73&&ce!==91&&ce!==103&&ce!==L&&ce!==666?X(O,d):(O.state=null,ce===L?X(O,-3):c):d},e.deflateSetDictionary=function(O,ce){var oe,z,j,Z,ve,be,ie,Se,Ne=ce.length;if(!O||!O.state||(Z=(oe=O.state).wrap)===2||Z===1&&oe.status!==$||oe.lookahead)return d;for(Z===1&&(O.adler=n(O.adler,ce,Ne,0)),oe.wrap=0,Ne>=oe.w_size&&(Z===0&&(q(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),Se=new r.Buf8(oe.w_size),r.arraySet(Se,ce,Ne-oe.w_size,oe.w_size,0),ce=Se,Ne=oe.w_size),ve=O.avail_in,be=O.next_in,ie=O.input,O.avail_in=Ne,O.next_in=0,O.input=ce,ge(oe);oe.lookahead>=C;){for(z=oe.strstart,j=oe.lookahead-(C-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[z+C-1])&oe.hash_mask,oe.prev[z&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=z,z++,--j;);oe.strstart=z,oe.lookahead=C-1,ge(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=C-1,oe.match_available=0,O.next_in=be,O.input=ie,O.avail_in=ve,oe.wrap=Z,c},e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(s,t,e){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(s,t,e){"use strict";t.exports=function(i,r){var a,n,o,l,h,u,c,d,p,f,m,g,y,v,b,x,_,w,C,P,D,$,L,T,M;a=i.state,n=i.next_in,T=i.input,o=n+(i.avail_in-5),l=i.next_out,M=i.output,h=l-(r-i.avail_out),u=l+(i.avail_out-257),c=a.dmax,d=a.wsize,p=a.whave,f=a.wnext,m=a.window,g=a.hold,y=a.bits,v=a.lencode,b=a.distcode,x=(1<<a.lenbits)-1,_=(1<<a.distbits)-1;e:do{y<15&&(g+=T[n++]<<y,y+=8,g+=T[n++]<<y,y+=8),w=v[g&x];t:for(;;){if(g>>>=C=w>>>24,y-=C,(C=w>>>16&255)===0)M[l++]=65535&w;else{if(!(16&C)){if((64&C)==0){w=v[(65535&w)+(g&(1<<C)-1)];continue t}if(32&C){a.mode=12;break e}i.msg="invalid literal/length code",a.mode=30;break e}P=65535&w,(C&=15)&&(y<C&&(g+=T[n++]<<y,y+=8),P+=g&(1<<C)-1,g>>>=C,y-=C),y<15&&(g+=T[n++]<<y,y+=8,g+=T[n++]<<y,y+=8),w=b[g&_];i:for(;;){if(g>>>=C=w>>>24,y-=C,!(16&(C=w>>>16&255))){if((64&C)==0){w=b[(65535&w)+(g&(1<<C)-1)];continue i}i.msg="invalid distance code",a.mode=30;break e}if(D=65535&w,y<(C&=15)&&(g+=T[n++]<<y,(y+=8)<C&&(g+=T[n++]<<y,y+=8)),c<(D+=g&(1<<C)-1)){i.msg="invalid distance too far back",a.mode=30;break e}if(g>>>=C,y-=C,(C=l-h)<D){if(p<(C=D-C)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break e}if(L=m,($=0)===f){if($+=d-C,C<P){for(P-=C;M[l++]=m[$++],--C;);$=l-D,L=M}}else if(f<C){if($+=d+f-C,(C-=f)<P){for(P-=C;M[l++]=m[$++],--C;);if($=0,f<P){for(P-=C=f;M[l++]=m[$++],--C;);$=l-D,L=M}}}else if($+=f-C,C<P){for(P-=C;M[l++]=m[$++],--C;);$=l-D,L=M}for(;2<P;)M[l++]=L[$++],M[l++]=L[$++],M[l++]=L[$++],P-=3;P&&(M[l++]=L[$++],1<P&&(M[l++]=L[$++]))}else{for($=l-D;M[l++]=M[$++],M[l++]=M[$++],M[l++]=M[$++],2<(P-=3););P&&(M[l++]=M[$++],1<P&&(M[l++]=M[$++]))}break}}break}}while(n<o&&l<u);n-=P=y>>3,g&=(1<<(y-=P<<3))-1,i.next_in=n,i.next_out=l,i.avail_in=n<o?o-n+5:5-(n-o),i.avail_out=l<u?u-l+257:257-(l-u),a.hold=g,a.bits=y}},{}],49:[function(s,t,e){"use strict";var i=s("../utils/common"),r=s("./adler32"),a=s("./crc32"),n=s("./inffast"),o=s("./inftrees"),l=1,h=2,u=0,c=-2,d=1,p=852,f=592;function m($){return($>>>24&255)+($>>>8&65280)+((65280&$)<<8)+((255&$)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y($){var L;return $&&$.state?(L=$.state,$.total_in=$.total_out=L.total=0,$.msg="",L.wrap&&($.adler=1&L.wrap),L.mode=d,L.last=0,L.havedict=0,L.dmax=32768,L.head=null,L.hold=0,L.bits=0,L.lencode=L.lendyn=new i.Buf32(p),L.distcode=L.distdyn=new i.Buf32(f),L.sane=1,L.back=-1,u):c}function v($){var L;return $&&$.state?((L=$.state).wsize=0,L.whave=0,L.wnext=0,y($)):c}function b($,L){var T,M;return $&&$.state?(M=$.state,L<0?(T=0,L=-L):(T=1+(L>>4),L<48&&(L&=15)),L&&(L<8||15<L)?c:(M.window!==null&&M.wbits!==L&&(M.window=null),M.wrap=T,M.wbits=L,v($))):c}function x($,L){var T,M;return $?(M=new g,($.state=M).window=null,(T=b($,L))!==u&&($.state=null),T):c}var _,w,C=!0;function P($){if(C){var L;for(_=new i.Buf32(512),w=new i.Buf32(32),L=0;L<144;)$.lens[L++]=8;for(;L<256;)$.lens[L++]=9;for(;L<280;)$.lens[L++]=7;for(;L<288;)$.lens[L++]=8;for(o(l,$.lens,0,288,_,0,$.work,{bits:9}),L=0;L<32;)$.lens[L++]=5;o(h,$.lens,0,32,w,0,$.work,{bits:5}),C=!1}$.lencode=_,$.lenbits=9,$.distcode=w,$.distbits=5}function D($,L,T,M){var E,N=$.state;return N.window===null&&(N.wsize=1<<N.wbits,N.wnext=0,N.whave=0,N.window=new i.Buf8(N.wsize)),M>=N.wsize?(i.arraySet(N.window,L,T-N.wsize,N.wsize,0),N.wnext=0,N.whave=N.wsize):(M<(E=N.wsize-N.wnext)&&(E=M),i.arraySet(N.window,L,T-M,E,N.wnext),(M-=E)?(i.arraySet(N.window,L,T-M,M,0),N.wnext=M,N.whave=N.wsize):(N.wnext+=E,N.wnext===N.wsize&&(N.wnext=0),N.whave<N.wsize&&(N.whave+=E))),0}e.inflateReset=v,e.inflateReset2=b,e.inflateResetKeep=y,e.inflateInit=function($){return x($,15)},e.inflateInit2=x,e.inflate=function($,L){var T,M,E,N,X,W,q,V,B,ne,K,J,ge,Ve,we,Ie,st,Ge,Jt,ni,O,ce,oe,z,j=0,Z=new i.Buf8(4),ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return c;(T=$.state).mode===12&&(T.mode=13),X=$.next_out,E=$.output,q=$.avail_out,N=$.next_in,M=$.input,W=$.avail_in,V=T.hold,B=T.bits,ne=W,K=q,ce=u;e:for(;;)switch(T.mode){case d:if(T.wrap===0){T.mode=13;break}for(;B<16;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(2&T.wrap&&V===35615){Z[T.check=0]=255&V,Z[1]=V>>>8&255,T.check=a(T.check,Z,2,0),B=V=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&V)<<8)+(V>>8))%31){$.msg="incorrect header check",T.mode=30;break}if((15&V)!=8){$.msg="unknown compression method",T.mode=30;break}if(B-=4,O=8+(15&(V>>>=4)),T.wbits===0)T.wbits=O;else if(O>T.wbits){$.msg="invalid window size",T.mode=30;break}T.dmax=1<<O,$.adler=T.check=1,T.mode=512&V?10:12,B=V=0;break;case 2:for(;B<16;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(T.flags=V,(255&T.flags)!=8){$.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){$.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=V>>8&1),512&T.flags&&(Z[0]=255&V,Z[1]=V>>>8&255,T.check=a(T.check,Z,2,0)),B=V=0,T.mode=3;case 3:for(;B<32;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}T.head&&(T.head.time=V),512&T.flags&&(Z[0]=255&V,Z[1]=V>>>8&255,Z[2]=V>>>16&255,Z[3]=V>>>24&255,T.check=a(T.check,Z,4,0)),B=V=0,T.mode=4;case 4:for(;B<16;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}T.head&&(T.head.xflags=255&V,T.head.os=V>>8),512&T.flags&&(Z[0]=255&V,Z[1]=V>>>8&255,T.check=a(T.check,Z,2,0)),B=V=0,T.mode=5;case 5:if(1024&T.flags){for(;B<16;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}T.length=V,T.head&&(T.head.extra_len=V),512&T.flags&&(Z[0]=255&V,Z[1]=V>>>8&255,T.check=a(T.check,Z,2,0)),B=V=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(W<(J=T.length)&&(J=W),J&&(T.head&&(O=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),i.arraySet(T.head.extra,M,N,J,O)),512&T.flags&&(T.check=a(T.check,M,J,N)),W-=J,N+=J,T.length-=J),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(W===0)break e;for(J=0;O=M[N+J++],T.head&&O&&T.length<65536&&(T.head.name+=String.fromCharCode(O)),O&&J<W;);if(512&T.flags&&(T.check=a(T.check,M,J,N)),W-=J,N+=J,O)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(W===0)break e;for(J=0;O=M[N+J++],T.head&&O&&T.length<65536&&(T.head.comment+=String.fromCharCode(O)),O&&J<W;);if(512&T.flags&&(T.check=a(T.check,M,J,N)),W-=J,N+=J,O)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;B<16;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(V!==(65535&T.check)){$.msg="header crc mismatch",T.mode=30;break}B=V=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),$.adler=T.check=0,T.mode=12;break;case 10:for(;B<32;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}$.adler=T.check=m(V),B=V=0,T.mode=11;case 11:if(T.havedict===0)return $.next_out=X,$.avail_out=q,$.next_in=N,$.avail_in=W,T.hold=V,T.bits=B,2;$.adler=T.check=1,T.mode=12;case 12:if(L===5||L===6)break e;case 13:if(T.last){V>>>=7&B,B-=7&B,T.mode=27;break}for(;B<3;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}switch(T.last=1&V,B-=1,3&(V>>>=1)){case 0:T.mode=14;break;case 1:if(P(T),T.mode=20,L!==6)break;V>>>=2,B-=2;break e;case 2:T.mode=17;break;case 3:$.msg="invalid block type",T.mode=30}V>>>=2,B-=2;break;case 14:for(V>>>=7&B,B-=7&B;B<32;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if((65535&V)!=(V>>>16^65535)){$.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&V,B=V=0,T.mode=15,L===6)break e;case 15:T.mode=16;case 16:if(J=T.length){if(W<J&&(J=W),q<J&&(J=q),J===0)break e;i.arraySet(E,M,N,J,X),W-=J,N+=J,q-=J,X+=J,T.length-=J;break}T.mode=12;break;case 17:for(;B<14;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(T.nlen=257+(31&V),V>>>=5,B-=5,T.ndist=1+(31&V),V>>>=5,B-=5,T.ncode=4+(15&V),V>>>=4,B-=4,286<T.nlen||30<T.ndist){$.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;B<3;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}T.lens[ve[T.have++]]=7&V,V>>>=3,B-=3}for(;T.have<19;)T.lens[ve[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,oe={bits:T.lenbits},ce=o(0,T.lens,0,19,T.lencode,0,T.work,oe),T.lenbits=oe.bits,ce){$.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;Ie=(j=T.lencode[V&(1<<T.lenbits)-1])>>>16&255,st=65535&j,!((we=j>>>24)<=B);){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(st<16)V>>>=we,B-=we,T.lens[T.have++]=st;else{if(st===16){for(z=we+2;B<z;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(V>>>=we,B-=we,T.have===0){$.msg="invalid bit length repeat",T.mode=30;break}O=T.lens[T.have-1],J=3+(3&V),V>>>=2,B-=2}else if(st===17){for(z=we+3;B<z;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}B-=we,O=0,J=3+(7&(V>>>=we)),V>>>=3,B-=3}else{for(z=we+7;B<z;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}B-=we,O=0,J=11+(127&(V>>>=we)),V>>>=7,B-=7}if(T.have+J>T.nlen+T.ndist){$.msg="invalid bit length repeat",T.mode=30;break}for(;J--;)T.lens[T.have++]=O}}if(T.mode===30)break;if(T.lens[256]===0){$.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,oe={bits:T.lenbits},ce=o(l,T.lens,0,T.nlen,T.lencode,0,T.work,oe),T.lenbits=oe.bits,ce){$.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,oe={bits:T.distbits},ce=o(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,oe),T.distbits=oe.bits,ce){$.msg="invalid distances set",T.mode=30;break}if(T.mode=20,L===6)break e;case 20:T.mode=21;case 21:if(6<=W&&258<=q){$.next_out=X,$.avail_out=q,$.next_in=N,$.avail_in=W,T.hold=V,T.bits=B,n($,K),X=$.next_out,E=$.output,q=$.avail_out,N=$.next_in,M=$.input,W=$.avail_in,V=T.hold,B=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;Ie=(j=T.lencode[V&(1<<T.lenbits)-1])>>>16&255,st=65535&j,!((we=j>>>24)<=B);){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(Ie&&(240&Ie)==0){for(Ge=we,Jt=Ie,ni=st;Ie=(j=T.lencode[ni+((V&(1<<Ge+Jt)-1)>>Ge)])>>>16&255,st=65535&j,!(Ge+(we=j>>>24)<=B);){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}V>>>=Ge,B-=Ge,T.back+=Ge}if(V>>>=we,B-=we,T.back+=we,T.length=st,Ie===0){T.mode=26;break}if(32&Ie){T.back=-1,T.mode=12;break}if(64&Ie){$.msg="invalid literal/length code",T.mode=30;break}T.extra=15&Ie,T.mode=22;case 22:if(T.extra){for(z=T.extra;B<z;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}T.length+=V&(1<<T.extra)-1,V>>>=T.extra,B-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;Ie=(j=T.distcode[V&(1<<T.distbits)-1])>>>16&255,st=65535&j,!((we=j>>>24)<=B);){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if((240&Ie)==0){for(Ge=we,Jt=Ie,ni=st;Ie=(j=T.distcode[ni+((V&(1<<Ge+Jt)-1)>>Ge)])>>>16&255,st=65535&j,!(Ge+(we=j>>>24)<=B);){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}V>>>=Ge,B-=Ge,T.back+=Ge}if(V>>>=we,B-=we,T.back+=we,64&Ie){$.msg="invalid distance code",T.mode=30;break}T.offset=st,T.extra=15&Ie,T.mode=24;case 24:if(T.extra){for(z=T.extra;B<z;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}T.offset+=V&(1<<T.extra)-1,V>>>=T.extra,B-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){$.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(q===0)break e;if(J=K-q,T.offset>J){if((J=T.offset-J)>T.whave&&T.sane){$.msg="invalid distance too far back",T.mode=30;break}ge=J>T.wnext?(J-=T.wnext,T.wsize-J):T.wnext-J,J>T.length&&(J=T.length),Ve=T.window}else Ve=E,ge=X-T.offset,J=T.length;for(q<J&&(J=q),q-=J,T.length-=J;E[X++]=Ve[ge++],--J;);T.length===0&&(T.mode=21);break;case 26:if(q===0)break e;E[X++]=T.length,q--,T.mode=21;break;case 27:if(T.wrap){for(;B<32;){if(W===0)break e;W--,V|=M[N++]<<B,B+=8}if(K-=q,$.total_out+=K,T.total+=K,K&&($.adler=T.check=T.flags?a(T.check,E,K,X-K):r(T.check,E,K,X-K)),K=q,(T.flags?V:m(V))!==T.check){$.msg="incorrect data check",T.mode=30;break}B=V=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;B<32;){if(W===0)break e;W--,V+=M[N++]<<B,B+=8}if(V!==(4294967295&T.total)){$.msg="incorrect length check",T.mode=30;break}B=V=0}T.mode=29;case 29:ce=1;break e;case 30:ce=-3;break e;case 31:return-4;default:return c}return $.next_out=X,$.avail_out=q,$.next_in=N,$.avail_in=W,T.hold=V,T.bits=B,(T.wsize||K!==$.avail_out&&T.mode<30&&(T.mode<27||L!==4))&&D($,$.output,$.next_out,K-$.avail_out)?(T.mode=31,-4):(ne-=$.avail_in,K-=$.avail_out,$.total_in+=ne,$.total_out+=K,T.total+=K,T.wrap&&K&&($.adler=T.check=T.flags?a(T.check,E,K,$.next_out-K):r(T.check,E,K,$.next_out-K)),$.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(ne==0&&K===0||L===4)&&ce===u&&(ce=-5),ce)},e.inflateEnd=function($){if(!$||!$.state)return c;var L=$.state;return L.window&&(L.window=null),$.state=null,u},e.inflateGetHeader=function($,L){var T;return $&&$.state?(2&(T=$.state).wrap)==0?c:((T.head=L).done=!1,u):c},e.inflateSetDictionary=function($,L){var T,M=L.length;return $&&$.state?(T=$.state).wrap!==0&&T.mode!==11?c:T.mode===11&&r(1,L,M,0)!==T.check?-3:D($,L,M,M)?(T.mode=31,-4):(T.havedict=1,u):c},e.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(s,t,e){"use strict";var i=s("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(l,h,u,c,d,p,f,m){var g,y,v,b,x,_,w,C,P,D=m.bits,$=0,L=0,T=0,M=0,E=0,N=0,X=0,W=0,q=0,V=0,B=null,ne=0,K=new i.Buf16(16),J=new i.Buf16(16),ge=null,Ve=0;for($=0;$<=15;$++)K[$]=0;for(L=0;L<c;L++)K[h[u+L]]++;for(E=D,M=15;1<=M&&K[M]===0;M--);if(M<E&&(E=M),M===0)return d[p++]=20971520,d[p++]=20971520,m.bits=1,0;for(T=1;T<M&&K[T]===0;T++);for(E<T&&(E=T),$=W=1;$<=15;$++)if(W<<=1,(W-=K[$])<0)return-1;if(0<W&&(l===0||M!==1))return-1;for(J[1]=0,$=1;$<15;$++)J[$+1]=J[$]+K[$];for(L=0;L<c;L++)h[u+L]!==0&&(f[J[h[u+L]]++]=L);if(_=l===0?(B=ge=f,19):l===1?(B=r,ne-=257,ge=a,Ve-=257,256):(B=n,ge=o,-1),$=T,x=p,X=L=V=0,v=-1,b=(q=1<<(N=E))-1,l===1&&852<q||l===2&&592<q)return 1;for(;;){for(w=$-X,P=f[L]<_?(C=0,f[L]):f[L]>_?(C=ge[Ve+f[L]],B[ne+f[L]]):(C=96,0),g=1<<$-X,T=y=1<<N;d[x+(V>>X)+(y-=g)]=w<<24|C<<16|P|0,y!==0;);for(g=1<<$-1;V&g;)g>>=1;if(g!==0?(V&=g-1,V+=g):V=0,L++,--K[$]==0){if($===M)break;$=h[u+f[L]]}if(E<$&&(V&b)!==v){for(X===0&&(X=E),x+=T,W=1<<(N=$-X);N+X<M&&!((W-=K[N+X])<=0);)N++,W<<=1;if(q+=1<<N,l===1&&852<q||l===2&&592<q)return 1;d[v=V&b]=E<<24|N<<16|x-p|0}}return V!==0&&(d[x+V]=$-X<<24|64<<16|0),m.bits=E,0}},{"../utils/common":41}],51:[function(s,t,e){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(s,t,e){"use strict";var i=s("../utils/common"),r=0,a=1;function n(j){for(var Z=j.length;0<=--Z;)j[Z]=0}var o=0,l=29,h=256,u=h+1+l,c=30,d=19,p=2*u+1,f=15,m=16,g=7,y=256,v=16,b=17,x=18,_=[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],w=[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],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(u+2));n(D);var $=new Array(2*c);n($);var L=new Array(512);n(L);var T=new Array(256);n(T);var M=new Array(l);n(M);var E,N,X,W=new Array(c);function q(j,Z,ve,be,ie){this.static_tree=j,this.extra_bits=Z,this.extra_base=ve,this.elems=be,this.max_length=ie,this.has_stree=j&&j.length}function V(j,Z){this.dyn_tree=j,this.max_code=0,this.stat_desc=Z}function B(j){return j<256?L[j]:L[256+(j>>>7)]}function ne(j,Z){j.pending_buf[j.pending++]=255&Z,j.pending_buf[j.pending++]=Z>>>8&255}function K(j,Z,ve){j.bi_valid>m-ve?(j.bi_buf|=Z<<j.bi_valid&65535,ne(j,j.bi_buf),j.bi_buf=Z>>m-j.bi_valid,j.bi_valid+=ve-m):(j.bi_buf|=Z<<j.bi_valid&65535,j.bi_valid+=ve)}function J(j,Z,ve){K(j,ve[2*Z],ve[2*Z+1])}function ge(j,Z){for(var ve=0;ve|=1&j,j>>>=1,ve<<=1,0<--Z;);return ve>>>1}function Ve(j,Z,ve){var be,ie,Se=new Array(f+1),Ne=0;for(be=1;be<=f;be++)Se[be]=Ne=Ne+ve[be-1]<<1;for(ie=0;ie<=Z;ie++){var Pe=j[2*ie+1];Pe!==0&&(j[2*ie]=ge(Se[Pe]++,Pe))}}function we(j){var Z;for(Z=0;Z<u;Z++)j.dyn_ltree[2*Z]=0;for(Z=0;Z<c;Z++)j.dyn_dtree[2*Z]=0;for(Z=0;Z<d;Z++)j.bl_tree[2*Z]=0;j.dyn_ltree[2*y]=1,j.opt_len=j.static_len=0,j.last_lit=j.matches=0}function Ie(j){8<j.bi_valid?ne(j,j.bi_buf):0<j.bi_valid&&(j.pending_buf[j.pending++]=j.bi_buf),j.bi_buf=0,j.bi_valid=0}function st(j,Z,ve,be){var ie=2*Z,Se=2*ve;return j[ie]<j[Se]||j[ie]===j[Se]&&be[Z]<=be[ve]}function Ge(j,Z,ve){for(var be=j.heap[ve],ie=ve<<1;ie<=j.heap_len&&(ie<j.heap_len&&st(Z,j.heap[ie+1],j.heap[ie],j.depth)&&ie++,!st(Z,be,j.heap[ie],j.depth));)j.heap[ve]=j.heap[ie],ve=ie,ie<<=1;j.heap[ve]=be}function Jt(j,Z,ve){var be,ie,Se,Ne,Pe=0;if(j.last_lit!==0)for(;be=j.pending_buf[j.d_buf+2*Pe]<<8|j.pending_buf[j.d_buf+2*Pe+1],ie=j.pending_buf[j.l_buf+Pe],Pe++,be===0?J(j,ie,Z):(J(j,(Se=T[ie])+h+1,Z),(Ne=_[Se])!==0&&K(j,ie-=M[Se],Ne),J(j,Se=B(--be),ve),(Ne=w[Se])!==0&&K(j,be-=W[Se],Ne)),Pe<j.last_lit;);J(j,y,Z)}function ni(j,Z){var ve,be,ie,Se=Z.dyn_tree,Ne=Z.stat_desc.static_tree,Pe=Z.stat_desc.has_stree,rt=Z.stat_desc.elems,_i=-1;for(j.heap_len=0,j.heap_max=p,ve=0;ve<rt;ve++)Se[2*ve]!==0?(j.heap[++j.heap_len]=_i=ve,j.depth[ve]=0):Se[2*ve+1]=0;for(;j.heap_len<2;)Se[2*(ie=j.heap[++j.heap_len]=_i<2?++_i:0)]=1,j.depth[ie]=0,j.opt_len--,Pe&&(j.static_len-=Ne[2*ie+1]);for(Z.max_code=_i,ve=j.heap_len>>1;1<=ve;ve--)Ge(j,Se,ve);for(ie=rt;ve=j.heap[1],j.heap[1]=j.heap[j.heap_len--],Ge(j,Se,1),be=j.heap[1],j.heap[--j.heap_max]=ve,j.heap[--j.heap_max]=be,Se[2*ie]=Se[2*ve]+Se[2*be],j.depth[ie]=(j.depth[ve]>=j.depth[be]?j.depth[ve]:j.depth[be])+1,Se[2*ve+1]=Se[2*be+1]=ie,j.heap[1]=ie++,Ge(j,Se,1),2<=j.heap_len;);j.heap[--j.heap_max]=j.heap[1],(function(Ht,as){var Si,bi,oi,Ci,Us,pa,Gs=as.dyn_tree,un=as.max_code,ld=as.stat_desc.static_tree,vL=as.stat_desc.has_stree,bL=as.stat_desc.extra_bits,NS=as.stat_desc.extra_base,hd=as.stat_desc.max_length,Cf=0;for(Ci=0;Ci<=f;Ci++)Ht.bl_count[Ci]=0;for(Gs[2*Ht.heap[Ht.heap_max]+1]=0,Si=Ht.heap_max+1;Si<p;Si++)hd<(Ci=Gs[2*Gs[2*(bi=Ht.heap[Si])+1]+1]+1)&&(Ci=hd,Cf++),Gs[2*bi+1]=Ci,un<bi||(Ht.bl_count[Ci]++,Us=0,NS<=bi&&(Us=bL[bi-NS]),pa=Gs[2*bi],Ht.opt_len+=pa*(Ci+Us),vL&&(Ht.static_len+=pa*(ld[2*bi+1]+Us)));if(Cf!==0){do{for(Ci=hd-1;Ht.bl_count[Ci]===0;)Ci--;Ht.bl_count[Ci]--,Ht.bl_count[Ci+1]+=2,Ht.bl_count[hd]--,Cf-=2}while(0<Cf);for(Ci=hd;Ci!==0;Ci--)for(bi=Ht.bl_count[Ci];bi!==0;)un<(oi=Ht.heap[--Si])||(Gs[2*oi+1]!==Ci&&(Ht.opt_len+=(Ci-Gs[2*oi+1])*Gs[2*oi],Gs[2*oi+1]=Ci),bi--)}})(j,Z),Ve(Se,_i,j.bl_count)}function O(j,Z,ve){var be,ie,Se=-1,Ne=Z[1],Pe=0,rt=7,_i=4;for(Ne===0&&(rt=138,_i=3),Z[2*(ve+1)+1]=65535,be=0;be<=ve;be++)ie=Ne,Ne=Z[2*(be+1)+1],++Pe<rt&&ie===Ne||(Pe<_i?j.bl_tree[2*ie]+=Pe:ie!==0?(ie!==Se&&j.bl_tree[2*ie]++,j.bl_tree[2*v]++):Pe<=10?j.bl_tree[2*b]++:j.bl_tree[2*x]++,Se=ie,_i=(Pe=0)===Ne?(rt=138,3):ie===Ne?(rt=6,3):(rt=7,4))}function ce(j,Z,ve){var be,ie,Se=-1,Ne=Z[1],Pe=0,rt=7,_i=4;for(Ne===0&&(rt=138,_i=3),be=0;be<=ve;be++)if(ie=Ne,Ne=Z[2*(be+1)+1],!(++Pe<rt&&ie===Ne)){if(Pe<_i)for(;J(j,ie,j.bl_tree),--Pe!=0;);else ie!==0?(ie!==Se&&(J(j,ie,j.bl_tree),Pe--),J(j,v,j.bl_tree),K(j,Pe-3,2)):Pe<=10?(J(j,b,j.bl_tree),K(j,Pe-3,3)):(J(j,x,j.bl_tree),K(j,Pe-11,7));Se=ie,_i=(Pe=0)===Ne?(rt=138,3):ie===Ne?(rt=6,3):(rt=7,4)}}n(W);var oe=!1;function z(j,Z,ve,be){K(j,(o<<1)+(be?1:0),3),(function(ie,Se,Ne,Pe){Ie(ie),Pe&&(ne(ie,Ne),ne(ie,~Ne)),i.arraySet(ie.pending_buf,ie.window,Se,Ne,ie.pending),ie.pending+=Ne})(j,Z,ve,!0)}e._tr_init=function(j){oe||((function(){var Z,ve,be,ie,Se,Ne=new Array(f+1);for(ie=be=0;ie<l-1;ie++)for(M[ie]=be,Z=0;Z<1<<_[ie];Z++)T[be++]=ie;for(T[be-1]=ie,ie=Se=0;ie<16;ie++)for(W[ie]=Se,Z=0;Z<1<<w[ie];Z++)L[Se++]=ie;for(Se>>=7;ie<c;ie++)for(W[ie]=Se<<7,Z=0;Z<1<<w[ie]-7;Z++)L[256+Se++]=ie;for(ve=0;ve<=f;ve++)Ne[ve]=0;for(Z=0;Z<=143;)D[2*Z+1]=8,Z++,Ne[8]++;for(;Z<=255;)D[2*Z+1]=9,Z++,Ne[9]++;for(;Z<=279;)D[2*Z+1]=7,Z++,Ne[7]++;for(;Z<=287;)D[2*Z+1]=8,Z++,Ne[8]++;for(Ve(D,u+1,Ne),Z=0;Z<c;Z++)$[2*Z+1]=5,$[2*Z]=ge(Z,5);E=new q(D,_,h+1,u,f),N=new q($,w,0,c,f),X=new q(new Array(0),C,0,d,g)})(),oe=!0),j.l_desc=new V(j.dyn_ltree,E),j.d_desc=new V(j.dyn_dtree,N),j.bl_desc=new V(j.bl_tree,X),j.bi_buf=0,j.bi_valid=0,we(j)},e._tr_stored_block=z,e._tr_flush_block=function(j,Z,ve,be){var ie,Se,Ne=0;0<j.level?(j.strm.data_type===2&&(j.strm.data_type=(function(Pe){var rt,_i=4093624447;for(rt=0;rt<=31;rt++,_i>>>=1)if(1&_i&&Pe.dyn_ltree[2*rt]!==0)return r;if(Pe.dyn_ltree[18]!==0||Pe.dyn_ltree[20]!==0||Pe.dyn_ltree[26]!==0)return a;for(rt=32;rt<h;rt++)if(Pe.dyn_ltree[2*rt]!==0)return a;return r})(j)),ni(j,j.l_desc),ni(j,j.d_desc),Ne=(function(Pe){var rt;for(O(Pe,Pe.dyn_ltree,Pe.l_desc.max_code),O(Pe,Pe.dyn_dtree,Pe.d_desc.max_code),ni(Pe,Pe.bl_desc),rt=d-1;3<=rt&&Pe.bl_tree[2*P[rt]+1]===0;rt--);return Pe.opt_len+=3*(rt+1)+5+5+4,rt})(j),ie=j.opt_len+3+7>>>3,(Se=j.static_len+3+7>>>3)<=ie&&(ie=Se)):ie=Se=ve+5,ve+4<=ie&&Z!==-1?z(j,Z,ve,be):j.strategy===4||Se===ie?(K(j,2+(be?1:0),3),Jt(j,D,$)):(K(j,4+(be?1:0),3),(function(Pe,rt,_i,Ht){var as;for(K(Pe,rt-257,5),K(Pe,_i-1,5),K(Pe,Ht-4,4),as=0;as<Ht;as++)K(Pe,Pe.bl_tree[2*P[as]+1],3);ce(Pe,Pe.dyn_ltree,rt-1),ce(Pe,Pe.dyn_dtree,_i-1)})(j,j.l_desc.max_code+1,j.d_desc.max_code+1,Ne+1),Jt(j,j.dyn_ltree,j.dyn_dtree)),we(j),be&&Ie(j)},e._tr_tally=function(j,Z,ve){return j.pending_buf[j.d_buf+2*j.last_lit]=Z>>>8&255,j.pending_buf[j.d_buf+2*j.last_lit+1]=255&Z,j.pending_buf[j.l_buf+j.last_lit]=255&ve,j.last_lit++,Z===0?j.dyn_ltree[2*ve]++:(j.matches++,Z--,j.dyn_ltree[2*(T[ve]+h+1)]++,j.dyn_dtree[2*B(Z)]++),j.last_lit===j.lit_bufsize-1},e._tr_align=function(j){K(j,2,3),J(j,y,D),(function(Z){Z.bi_valid===16?(ne(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)})(j)}},{"../utils/common":41}],53:[function(s,t,e){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(s,t,e){(function(i){(function(r,a){"use strict";if(!r.setImmediate){var n,o,l,h,u=1,c={},d=!1,p=r.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(r);f=f&&f.setTimeout?f:r,n={}.toString.call(r.process)==="[object process]"?function(v){process.nextTick(function(){g(v)})}:(function(){if(r.postMessage&&!r.importScripts){var v=!0,b=r.onmessage;return r.onmessage=function(){v=!1},r.postMessage("","*"),r.onmessage=b,v}})()?(h="setImmediate$"+Math.random()+"$",r.addEventListener?r.addEventListener("message",y,!1):r.attachEvent("onmessage",y),function(v){r.postMessage(h+v,"*")}):r.MessageChannel?((l=new MessageChannel).port1.onmessage=function(v){g(v.data)},function(v){l.port2.postMessage(v)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,function(v){var b=p.createElement("script");b.onreadystatechange=function(){g(v),b.onreadystatechange=null,o.removeChild(b),b=null},o.appendChild(b)}):function(v){setTimeout(g,0,v)},f.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var b=new Array(arguments.length-1),x=0;x<b.length;x++)b[x]=arguments[x+1];var _={callback:v,args:b};return c[u]=_,n(u),u++},f.clearImmediate=m}function m(v){delete c[v]}function g(v){if(d)setTimeout(g,0,v);else{var b=c[v];if(b){d=!0;try{(function(x){var _=x.callback,w=x.args;switch(w.length){case 0:_();break;case 1:_(w[0]);break;case 2:_(w[0],w[1]);break;case 3:_(w[0],w[1],w[2]);break;default:_.apply(a,w)}})(b)}finally{m(v),d=!1}}}}function y(v){v.source===r&&typeof v.data=="string"&&v.data.indexOf(h)===0&&g(+v.data.slice(h.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var im={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},Fw=Symbol(),gn=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,e)=>{this.o=t,this.h=e})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,e,i){this.p=0,this.i=0,(this._=t).addController(this);let r=typeof e=="object"?e:{task:e,args:i};this.v=r.task,this.j=r.args,this.m=r.argsEqual??Ow,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),e=this.O;this.O=t,t===e||t===void 0||e!==void 0&&this.m(e,t)||await this.run(t)}async run(t){let e,i;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let a=!1;try{e=await this.v(t,{signal:this.q.signal})}catch(n){a=!0,i=n}if(this.p===r){if(e===Fw)this.i=0;else{if(a===!1){try{this.k?.(e)}catch{}this.i=2,this.o?.(e)}else{try{this.A?.(i)}catch{}this.i=3,this.h?.(i)}this.u=e,this.l=i}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},Ow=(s,t)=>s===t||s.length===t.length&&s.every(((e,i)=>!WS(e,t[i])));var SL=Object.defineProperty,ba=(s,t)=>()=>(s&&(t=s(s=0)),t),Md=(s,t)=>{for(var e in t)SL(s,e,{get:t[e],enumerable:!0})};function CL(s){if(s===!0)return"soft";if(s===!1)return"disabled";if(typeof s=="string"){let t=s.toLowerCase().trim();if(t==="auto")return"auto";if(t==="full")return"full";if(t==="soft"||t==="disabled")return t}return"soft"}function wL(s="soft"){switch(Fe.session.__counterEpoch=(Fe.session.__counterEpoch||0)+1,s){case"auto":{Fe.session.styleMap=new Map,Fe.session.nodeMap=new Map;return}case"soft":{Fe.session.styleMap=new Map,Fe.session.nodeMap=new Map,Fe.session.styleCache=new WeakMap;return}case"full":return;case"disabled":{Fe.session.styleMap=new Map,Fe.session.nodeMap=new Map,Fe.session.styleCache=new WeakMap,Fe.computedStyle=new WeakMap,Fe.measureHints=new WeakMap,Fe.baseStyle=new ja(50),Fe.defaultStyle=new ja(30),Fe.image=new ja(100),Fe.background=new ja(100),Fe.resource=new ja(150),Fe.font=new Set;return}default:{Fe.session.styleMap=new Map,Fe.session.nodeMap=new Map,Fe.session.styleCache=new WeakMap;return}}}var ja,Fe,za=ba(()=>{ja=class extends Map{constructor(s=100,...t){super(...t),this._maxSize=s}set(s,t){if(this.size>=this._maxSize&&!this.has(s)){let e=this.keys().next().value;e!==void 0&&this.delete(e)}return super.set(s,t)}},Fe={image:new ja(100),background:new ja(100),resource:new ja(150),defaultStyle:new ja(30),baseStyle:new ja(50),computedStyle:new WeakMap,measureHints:new WeakMap,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}}});function Cb(s){let t=s.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let e=t[2].trim();return e.startsWith("#")?null:e}function PL(s){if(!s||s==="none")return"";let t=s.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,i)=>{let r=i.split(",").map(a=>a.trim());return r.length!==6?`matrix(${i})`:(r[4]="0",r[5]="0",`matrix(${r.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(e,i)=>{let r=i.split(",").map(a=>a.trim());return r.length!==16?`matrix3d(${i})`:(r[12]="0",r[13]="0",`matrix3d(${r.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}function um(s){if(/%[0-9A-Fa-f]{2}/.test(s))return s;try{return encodeURI(s)}catch{return s}}function TL(s,t){if(!s||/^(data|blob|about|#)/i.test(s.trim()))return s;try{let e=t||typeof document<"u"&&(document.baseURI||document.location?.href)||"http://localhost/";return new URL(s,e).href}catch{return s}}var dm=ba(()=>{});function $L(s="[snapDOM]",{ttlMs:t=5*6e4,maxEntries:e=12}={}){let i=new Map,r=0;function a(n,o,l){if(r>=e)return;let h=Date.now();(i.get(o)||0)>h||(i.set(o,h+t),r++,n==="warn"&&console&&console.warn?console.warn(`${s} ${l}`):console&&console.error&&console.error(`${s} ${l}`))}return{warnOnce(n,o){a("warn",n,o)},errorOnce(n,o){a("error",n,o)},reset(){i.clear(),r=0}}}function DL(s){return/^data:|^blob:|^about:blank$/i.test(s)}function kL(s,t){try{let e=typeof location<"u"&&location.href?location.href:"http://localhost/",i=t.includes("{url}")?t.split("{url}")[0]:t,r=new URL(i||".",e),a=new URL(s,e);if(a.origin===r.origin)return!0;let n=a.searchParams;if(n&&(n.has("url")||n.has("target")))return!0}catch{}return!1}function AL(s,t){if(!t||DL(s)||kL(s,t))return!1;try{let e=typeof location<"u"&&location.href?location.href:"http://localhost/",i=new URL(s,e);return typeof location<"u"?i.origin!==location.origin:!0}catch{return!!t}}function LL(s,t){if(!t)return s;if(t.includes("{url}"))return t.replace("{urlRaw}",um(s)).replace("{url}",encodeURIComponent(s));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(s)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(s)}`;if(t.endsWith("/"))return`${t}${um(s)}`;let e=t.includes("?")?"&":"?";return`${t}${e}url=${encodeURIComponent(s)}`}function Iw(s){return new Promise((t,e)=>{let i=new FileReader;i.onload=()=>t(String(i.result||"")),i.onerror=()=>e(new Error("read_failed")),i.readAsDataURL(s)})}function FL(s,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,s].join("|")}async function yn(s,t={}){let e=t.as??"blob",i=t.timeout??3e3,r=t.useProxy||"",a=t.errorTTL??8e3,n=t.headers||{},o=!!t.silent;if(/^data:/i.test(s))try{if(e==="text")return{ok:!0,data:String(s),status:200,url:s,fromCache:!1};if(e==="dataURL")return{ok:!0,data:String(s),status:200,url:s,fromCache:!1,mime:String(s).slice(5).split(";")[0]||""};let[,g="",y=""]=String(s).match(/^data:([^,]*),(.*)$/)||[],v=/;base64/i.test(g)?atob(y):decodeURIComponent(y),b=new Uint8Array([...v].map(_=>_.charCodeAt(0))),x=new Blob([b],{type:(g||"").split(";")[0]||""});return{ok:!0,data:x,status:200,url:s,fromCache:!1,mime:x.type||""}}catch{return{ok:!1,data:null,status:0,url:s,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(s))try{let g=await fetch(s);if(!g.ok)return{ok:!1,data:null,status:g.status,url:s,fromCache:!1,reason:"http_error"};let y=await g.blob(),v=y.type||g.headers.get("content-type")||"";return e==="dataURL"?{ok:!0,data:await Iw(y),status:g.status,url:s,fromCache:!1,mime:v}:e==="text"?{ok:!0,data:await y.text(),status:g.status,url:s,fromCache:!1,mime:v}:{ok:!0,data:y,status:g.status,url:s,fromCache:!1,mime:v}}catch{return{ok:!1,data:null,status:0,url:s,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(s))return e==="dataURL"?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:s,fromCache:!1,mime:"image/png"}:{ok:!0,data:e==="text"?"":new Blob([]),status:200,url:s,fromCache:!1};let l=FL(s,{as:e,timeout:i,useProxy:r,errorTTL:a}),h=Ad.get(l);if(h&&h.until>Date.now())return{...h.result,fromCache:!0};h&&Ad.delete(l);let u=sm.get(l);if(u)return u;let c=AL(s,r)?LL(s,r):s,d=t.credentials;if(!d)try{let g=typeof location<"u"&&location.href?location.href:"http://localhost/",y=new URL(s,g);d=typeof location<"u"&&y.origin===location.origin?"include":"omit"}catch{d="omit"}let p=new AbortController,f=setTimeout(()=>p.abort("timeout"),i),m=(async()=>{try{let g=await fetch(c,{signal:p.signal,credentials:d,headers:n});if(!g.ok){let b={ok:!1,data:null,status:g.status,url:c,fromCache:!1,reason:"http_error"};if(a>0&&Ad.set(l,{until:Date.now()+a,result:b}),!o){let x=`${g.status} ${g.statusText||""}`.trim();ub.warnOnce(`http:${g.status}:${e}:${new URL(s,location?.href??"http://localhost/").origin}`,`HTTP error ${x} while fetching ${e} ${s}`)}return t.onError&&t.onError(b),b}if(e==="text")return{ok:!0,data:await g.text(),status:g.status,url:c,fromCache:!1};let y=await g.blob(),v=y.type||g.headers.get("content-type")||"";return e==="dataURL"?{ok:!0,data:await Iw(y),status:g.status,url:c,fromCache:!1,mime:v}:{ok:!0,data:y,status:g.status,url:c,fromCache:!1,mime:v}}catch(g){let y=g&&typeof g=="object"&&"name"in g&&g.name==="AbortError"?String(g.message||"").includes("timeout")?"timeout":"abort":"network",v={ok:!1,data:null,status:0,url:c,fromCache:!1,reason:y};if(!/^blob:/i.test(s)&&a>0&&Ad.set(l,{until:Date.now()+a,result:v}),!o){let b=`${y}:${e}:${new URL(s,location?.href??"http://localhost/").origin}`,x=y==="timeout"?`Timeout after ${i}ms. Consider increasing timeout or using a proxy for ${s}`:y==="abort"?`Request aborted while fetching ${e} ${s}`:`Network/CORS issue while fetching ${e} ${s}. A proxy may be required`;ub.errorOnce(b,x)}return t.onError&&t.onError(v),v}finally{clearTimeout(f),sm.delete(l)}})();return sm.set(l,m),m}var ub,sm,Ad,qu=ba(()=>{dm(),ub=$L("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),sm=new Map,Ad=new Map});async function oP(s,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(s)||s.trim()==="none")return s;let e=Cb(s);if(!e)return s;let i=TL(e),r=um(i),a=(t.useProxy||"")+"|"+r;if(Fe.background.has(a)){let n=Fe.background.get(a);return n?`url("${n}")`:"none"}try{let n=await yn(r,{as:"dataURL",useProxy:t.useProxy});return n.ok?(Fe.background.set(a,n.data),`url("${n.data}")`):(Fe.background.set(a,null),"none")}catch{return Fe.background.set(a,null),"none"}}var OL=ba(()=>{za(),dm(),qu()});function IL(s){if(s=String(s).toLowerCase(),Pb.has(s)){let a={};return Fe.defaultStyle.set(s,a),a}if(Fe.defaultStyle.has(s))return Fe.defaultStyle.get(s);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let e=document.createElement(s);e.style.all="initial",t.appendChild(e);let i=getComputedStyle(e),r={};for(let a of i){if(wb(a))continue;let n=i.getPropertyValue(a);r[a]=n}return t.removeChild(e),Fe.defaultStyle.set(s,r),r}function wb(s){let t=String(s).toLowerCase();return!!(cP.has(t)||uP.test(t)||hP.test(t))}function cb(s,t){if(t=String(t||"").toLowerCase(),Pb.has(t))return"";let e=[],i=IL(t),r=(s.display||"").toLowerCase()==="inline",a=new Set(["span","small","em","strong","b","i","u","s","code","cite","mark","sub","sup"]),n=new Set(["table","thead","tbody","tfoot","tr","td","th"]),o=!new Set(["img","video","canvas","svg","iframe","embed","object","input","textarea","select"]).has(t)&&(r||a.has(t)||n.has(t)),l=h=>h==="width"||h==="min-width"||h==="max-width"||h==="inline-size"||h==="min-inline-size"||h==="max-inline-size";for(let[h,u]of Object.entries(s)){if(wb(h)||o&&l(h))continue;let c=i[h];u&&u!==c&&e.push(`${h}:${u}`)}if(o&&!r){let h=s.width;h&&h!=="auto"&&h!==i.width&&e.push(`min-width:${h}`)}return e.sort(),e.join(";")}function ML(s){let t=new Set;return s.nodeType!==Node.ELEMENT_NODE&&s.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(s.tagName&&t.add(s.tagName.toLowerCase()),typeof s.querySelectorAll=="function"&&s.querySelectorAll("*").forEach(e=>t.add(e.tagName.toLowerCase())),Array.from(t))}function RL(s){let t=new Map;for(let i of s){let r=Fe.defaultStyle.get(i);if(!r)continue;let a=Object.entries(r).map(([n,o])=>`${n}:${o};`).sort().join("");a&&(t.has(a)||t.set(a,[]),t.get(a).push(i))}let e="";for(let[i,r]of t.entries())e+=`${r.join(",")} { ${i} }
4
4
  `;return e}function VL(s){let t=Array.from(new Set(s.values())).filter(Boolean).sort(),e=new Map,i=1;for(let r of t)e.set(r,`c${i++}`);return e}function EL(s){try{let t=s?.ownerDocument;if(!t)return typeof window<"u"?window:null;let e=t.defaultView;if(e&&typeof e.getComputedStyle=="function")return e;if(typeof window<"u"&&window.frames)for(let i=0;i<window.frames.length;i++)try{if(window.frames[i]?.document===t)return window.frames[i]}catch{}}catch{}return typeof window<"u"?window:null}function Wa(s,t=null){let e=()=>{let a={length:0,getPropertyValue:()=>"",item:()=>""};return a[Symbol.iterator]=function*(){},a};if(!(s instanceof Element)){let a=typeof window<"u"?window:null;if(a&&typeof a.getComputedStyle=="function")try{return a.getComputedStyle(s,t)||e()}catch{return e()}return e()}let i=Fe.computedStyle.get(s);i||(i=new Map,Fe.computedStyle.set(s,i));let r=i.get(t);if(!r){let a=EL(s),n=null;try{n=a&&typeof a.getComputedStyle=="function"?a.getComputedStyle(s,t):null}catch{}if(!n&&typeof window<"u"&&typeof window.getComputedStyle=="function")try{s.ownerDocument===document&&(n=window.getComputedStyle(s,t))}catch{}r=n||e(),i.set(t,r)}return r}function Mw(s){let t={};for(let e of s)t[e]=s.getPropertyValue(e);for(let e of dP){let i=t[`border-${e}-style`],r=t[`border-${e}-width`];(i==="none"||i==="hidden"||r==="0px")&&(delete t[`border-${e}-style`],delete t[`border-${e}-width`],delete t[`border-${e}-color`])}return t}function db(s){let t=[],e=0,i=0;for(let r=0;r<s.length;r++){let a=s[r];a==="("&&e++,a===")"&&e--,a===","&&e===0&&(t.push(s.slice(i,r).trim()),i=r+1)}return t.push(s.slice(i).trim()),t}var lP,Pb,NL,hP,uP,cP,dP,Tb=ba(()=>{za(),lP=new Set(["meta","script","noscript","title","link","template"]),Pb=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]),NL=["div","span","p","a","img","ul","li","button","input","select","textarea","label","section","article","header","footer","nav","main","aside","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","td","th"],hP=/(?:^|-)(animation|transition)(?:-|$)/i,uP=/^(--.+|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,cP=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope","zoom"]),dP=["top","right","bottom","left"]});function Uu(s,{fast:t=!1}={}){if(t)return s();"requestIdleCallback"in window?requestIdleCallback(s,{timeout:50}):setTimeout(s,1)}function BL(){if(typeof navigator>"u")return!1;if(navigator.userAgentData)return navigator.userAgentData.platform==="iOS";let s=navigator.userAgent||"",t=/iPhone|iPad|iPod/.test(s),e=navigator.maxTouchPoints>2&&/Macintosh/.test(s);return t||e}function pl(){if(typeof navigator>"u")return!1;let s=navigator.userAgent||"",t=s.toLowerCase(),e=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),i=/applewebkit/i.test(s),r=/mobile/i.test(s),a=!/safari/i.test(s),n=i&&r&&a,o=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(s),l=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),h=/ipad|iphone|ipod/.test(t)&&i;return e||n||o||l||h}function jL(){if(typeof navigator>"u")return!1;let s=(navigator.userAgent||"").toLowerCase();return s.includes("firefox")||s.includes("fxios")}var Rd=ba(()=>{});function qi(s,t,e){let i=s&&typeof s=="object"&&(s.options||s);i&&i.debug&&(e!==void 0?console.warn("[snapdom]",t,e):console.warn("[snapdom]",t))}var pP=ba(()=>{}),Hn=ba(()=>{OL(),Tb(),Rd(),dm(),pP()}),fP={};Md(fP,{toCanvas:()=>pm});function WL(s){if(!mP(s))return s;try{let t=gP(s),e=t.match(/<svg\b[^>]*>/i);if(!e)return s;let i=e[0],r=parseFloat((i.match(/\bwidth="([\d.]+)/i)||[])[1]),a=parseFloat((i.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(r)||!Number.isFinite(a)||r<=0||a<=0)return s;let n=Math.min(1,Th/r,Th/a,Math.sqrt($b/(r*a)));if(n>=1)return s;let o=Math.max(1,Math.floor(r*n)),l=Math.max(1,Math.floor(a*n));console.warn(`[snapDOM] Capture ${Math.round(r)}\xD7${Math.round(a)}px exceeds the browser image-decode limit (${Th}px/side); downscaling to ${o}\xD7${l}px. Lower \`scale\` or set \`width\`/\`height\` to control output size.`);let h=t.replace(i,i.replace(/(\bwidth=")[\d.]+/i,`$1${o}`).replace(/(\bheight=")[\d.]+/i,`$1${l}`));return yP(h)}catch{return s}}function mP(s){return typeof s=="string"&&/^data:image\/svg\+xml/i.test(s)}function gP(s){let t=s.indexOf(",");return t>=0?decodeURIComponent(s.slice(t+1)):""}function yP(s){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`}function zL(s){let t=[],e="",i=0;for(let r=0;r<s.length;r++){let a=s[r];a==="("&&i++,a===")"&&(i=Math.max(0,i-1)),a===";"&&i===0?(t.push(e),e=""):e+=a}return e.trim()&&t.push(e),t.map(r=>r.trim()).filter(Boolean)}function HL(s){let t=[],e="",i=0;for(let a=0;a<s.length;a++){let n=s[a];n==="("&&i++,n===")"&&(i=Math.max(0,i-1)),n===","&&i===0?(t.push(e.trim()),e=""):e+=n}e.trim()&&t.push(e.trim());let r=[];for(let a of t){if(/\binset\b/i.test(a))continue;let n=a.match(/-?\d+(?:\.\d+)?px/gi)||[],[o="0px",l="0px",h="0px"]=n,u=a.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),c=!!u&&u!==",";r.push(`drop-shadow(${o} ${l} ${h}${c?` ${u}`:""})`)}return r.join(" ")}function vP(s){let t=zL(s),e=null,i=null,r=null,a=[];for(let o of t){let l=o.indexOf(":");if(l<0)continue;let h=o.slice(0,l).trim().toLowerCase(),u=o.slice(l+1).trim();h==="box-shadow"?r=u:h==="filter"?e=u:h==="-webkit-filter"?i=u:a.push([h,u])}if(r){let o=HL(r);o&&(e=e?`${e} ${o}`:o,i=i?`${i} ${o}`:o)}let n=[...a];return e&&n.push(["filter",e]),i&&n.push(["-webkit-filter",i]),n.map(([o,l])=>`${o}:${l}`).join(";")}function XL(s){return s.replace(/([^{}]+)\{([^}]*)\}/g,(t,e,i)=>`${e}{${vP(i)}}`)}function YL(s){return s=s.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(t,e)=>t.replace(e,XL(e))),s=s.replace(/style=(['"])([\s\S]*?)\1/gi,(t,e,i)=>`style=${e}${vP(i)}${e}`),s}function UL(s){if(!pl()||!mP(s))return s;try{let t=gP(s),e=YL(t);return yP(e)}catch{return s}}async function pm(s,t){let{width:e,height:i,scale:r=1,dpr:a=1,meta:n={},backgroundColor:o}=t;s=UL(s),s=WL(s);let l=new Image;if(l.loading="eager",l.decoding="sync",l.crossOrigin="anonymous",l.src=s,await l.decode(),pl()){l.style.cssText="position:fixed;left:-99999px;top:-99999px;pointer-events:none",document.body.appendChild(l);try{await new Promise(w=>requestAnimationFrame(()=>requestAnimationFrame(w)))}finally{try{l.remove()}catch{}}}let h=l.naturalWidth,u=l.naturalHeight,c=Number.isFinite(n.w0)?n.w0:h,d=Number.isFinite(n.h0)?n.h0:u,p,f,m=Number.isFinite(e),g=Number.isFinite(i);if(m&&g)p=Math.max(1,e),f=Math.max(1,i);else if(m){let w=e/Math.max(1,c);p=e,f=d*w}else if(g){let w=i/Math.max(1,d);f=i,p=c*w}else p=h,f=u;p=p*r,f=f*r;let y=p*a,v=f*a,b=Math.max(y/Th,v/Th,Math.sqrt(y*v/$b));b>1&&(console.warn(`[snapDOM] Output ${Math.round(y)}\xD7${Math.round(v)}px exceeds the browser canvas limit (${Th}px/side); downscaling. Lower \`scale\`/\`dpr\` or set \`width\`/\`height\`.`),p/=b,f/=b);let x=document.createElement("canvas");x.width=p*a,x.height=f*a,x.style.width=`${p}px`,x.style.height=`${f}px`;let _=x.getContext("2d");return a!==1&&_.scale(a,a),o&&(_.save(),_.fillStyle=o,_.fillRect(0,0,p,f),_.restore()),_.drawImage(l,0,0,p,f),x}var Th,$b,fm=ba(()=>{Rd(),Th=16384,$b=16384*16384}),am={};Md(am,{rasterize:()=>bP});async function bP(s,t){let e=await pm(s,t),i=new Image;return i.src=e.toDataURL(`image/${t.format}`,t.quality),await i.decode(),i.style.width=`${e.width/t.dpr}px`,i.style.height=`${e.height/t.dpr}px`,i}var nm=ba(()=>{fm()}),pb={};Md(pb,{toImg:()=>Rw,toSvg:()=>Rw});async function Rw(s,t){let{scale:e=1,width:i,height:r,meta:a={}}=t,n=Number.isFinite(i),o=Number.isFinite(r),l=Number.isFinite(e)&&e!==1||n||o;if(pl()&&l)return await bP(s,{...t,format:"png",quality:1,meta:a});let h=new Image;if(h.decoding="sync",h.loading="eager",h.src=s,await h.decode(),n&&o)h.style.width=`${i}px`,h.style.height=`${r}px`;else if(n){let u=Number.isFinite(a.w0)?a.w0:h.naturalWidth,c=Number.isFinite(a.h0)?a.h0:h.naturalHeight,d=i/Math.max(1,u);h.style.width=`${i}px`,h.style.height=`${Math.round(c*d)}px`}else if(o){let u=Number.isFinite(a.w0)?a.w0:h.naturalWidth,c=Number.isFinite(a.h0)?a.h0:h.naturalHeight,d=r/Math.max(1,c);h.style.height=`${r}px`,h.style.width=`${Math.round(u*d)}px`}else{let u=Math.round(h.naturalWidth*e),c=Math.round(h.naturalHeight*e);if(h.style.width=`${u}px`,h.style.height=`${c}px`,typeof s=="string"&&s.startsWith("data:image/svg+xml"))try{let d=decodeURIComponent(s.split(",")[1]).replace(/width="[^"]*"/,`width="${u}"`).replace(/height="[^"]*"/,`height="${c}"`);s=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,h.src=s}catch(d){qi(t,"SVG width/height patch in toImg failed",d)}}return h}var Vw=ba(()=>{Hn(),nm()}),xP={};Md(xP,{toBlob:()=>_P});async function _P(s,t){let e=t.type;if(e==="svg"){let r=decodeURIComponent(s.split(",")[1]);return new Blob([r],{type:"image/svg+xml"})}let i=await pm(s,t);return new Promise(r=>i.toBlob(a=>r(a),`image/${e}`,t.quality))}var SP=ba(()=>{fm()}),CP={};Md(CP,{download:()=>GL});async function Ew(s,t){let e=new File([s],t,{type:s.type});if(!navigator.canShare?.({files:[e]}))return!1;try{await navigator.share({files:[e],title:t})}catch(i){if(i.name!=="AbortError")return!1}return!0}async function GL(s,t){let e=new Set(["png","jpeg","jpg","webp","svg"]),i=(t?.type||"").toLowerCase(),r=e.has(i)?i:"",a=(t?.format||r||"").toLowerCase(),n=a==="jpg"?"jpeg":a||"png",o=t?.filename||`snapdom.${n}`,l={...t||{},format:n,type:n};l.dpr=1;let h=BL();if(n==="svg"){let d=await _P(s,{...l,type:"svg"});if(h&&await Ew(d,o))return;let p=URL.createObjectURL(d),f=document.createElement("a");f.href=p,f.download=o,document.body.appendChild(f),f.click(),URL.revokeObjectURL(p),f.remove();return}let u=await pm(s,l);if(h){let d=`image/${n}`,p=await new Promise(f=>u.toBlob(f,d,t?.quality));if(p&&await Ew(p,o))return}let c=document.createElement("a");c.href=u.toDataURL(`image/${n}`,t?.quality),c.download=o,document.body.appendChild(c),c.click(),c.remove()}var qL=ba(()=>{SP(),fm(),Rd()});Hn();Hn();za();var Nw=new WeakMap,Od=new Map,KL=2e3,fb=0;function Ld(){fb++,Od.size>KL&&Od.clear()}var Bw=!1;function ZL(s=document.documentElement){if(!Bw){Bw=!0;try{new MutationObserver(()=>Ld()).observe(s,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(()=>Ld()).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let t=document.fonts;t&&(t.addEventListener?.("loadingdone",Ld),t.ready?.then(()=>Ld()).catch(()=>{}))}catch{}}}function JL(s,t={}){let e={},i=s.getPropertyValue("visibility"),r=t.excludeStyleProps;for(let c=0;c<s.length;c++){let d=s[c];if(wb(d)||r&&(r instanceof RegExp&&r.test(d)||typeof r=="function"&&r(d)))continue;let p=s.getPropertyValue(d);(d==="background-image"||d==="content")&&p.includes("url(")&&!p.includes("data:")&&(p="none"),e[d]=p}let a=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let c of a)if(!e[c])try{let d=s.getPropertyValue(c);d&&(e[c]=d)}catch{}let n=["-webkit-text-stroke","-webkit-text-stroke-width","-webkit-text-stroke-color","paint-order"];for(let c of n)if(!e[c])try{let d=s.getPropertyValue(c);d&&(e[c]=d)}catch{}if(t.embedFonts){let c=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let d of c)if(!e[d])try{let p=s.getPropertyValue(d);p&&(e[d]=p)}catch{}}i==="hidden"&&(e.opacity="0");try{(e["content-visibility"]||s.getPropertyValue("content-visibility"))==="hidden"&&(e.visibility="hidden")}catch{}let o=parseFloat(s.getPropertyValue("border-top-width")||0)||0,l=parseFloat(s.getPropertyValue("border-right-width")||0)||0,h=parseFloat(s.getPropertyValue("border-bottom-width")||0)||0,u=parseFloat(s.getPropertyValue("border-left-width")||0)||0;if(o===0&&l===0&&h===0&&u===0){let c=(s.getPropertyValue("border-image-source")||"").trim(),d=c&&c!=="none",p=["border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-top-style","border-top-color","border-right-width","border-right-style","border-right-color","border-bottom-width","border-bottom-style","border-bottom-color","border-left-width","border-left-style","border-left-color","border-block","border-block-width","border-block-style","border-block-color","border-inline","border-inline-width","border-inline-style","border-inline-color"];for(let f of p)delete e[f];d||(e.border="none")}return e}var jw=new WeakMap;function QL(s){let t=jw.get(s);return t||(t=Object.entries(s).sort((e,i)=>e[0]<i[0]?-1:e[0]>i[0]?1:0).map(([e,i])=>`${e}:${i}`).join(";"),jw.set(s,t),t)}function eF(s,t=null,e={}){let i=Nw.get(s),r=!!(e&&e.embedFonts),a=e&&e.excludeStyleProps||null;if(i&&i.epoch===fb&&i.embedFonts===r&&i.excludeStyleProps===a)return i.snapshot;let n=t||getComputedStyle(s),o=JL(n,e);return nF(s,n,o),Nw.set(s,{epoch:fb,snapshot:o,embedFonts:r,excludeStyleProps:a}),o}function tF(s,t){return s&&s.session&&s.persist?s:s&&(s.styleMap||s.styleCache||s.nodeMap)?{session:s,persist:{snapshotKeyCache:Od,defaultStyle:Fe.defaultStyle,baseStyle:Fe.baseStyle,image:Fe.image,resource:Fe.resource,background:Fe.background,font:Fe.font},options:t||{}}:{session:Fe.session,persist:{snapshotKeyCache:Od,defaultStyle:Fe.defaultStyle,baseStyle:Fe.baseStyle,image:Fe.image,resource:Fe.resource,background:Fe.background,font:Fe.font},options:s||t||{}}}function iF(s,t,e){if(!(!s.style||s.style.length===0))for(let i=0;i<s.style.length;i++){let r=s.style[i],a=e.getPropertyValue(r);a&&t.style.setProperty(r,a)}}async function Ph(s,t,e,i){if(s.tagName==="STYLE")return;let r=tF(e,i),a=r.options&&r.options.cache||"auto";a!=="disabled"&&ZL(document.documentElement),a==="disabled"&&!r.session.__bumpedForDisabled&&(Ld(),Od.clear(),r.session.__bumpedForDisabled=!0);let{session:n,persist:o}=r;if(!n.styleCache.has(s)){let d=null;try{d=getComputedStyle(s)}catch{}n.styleCache.set(s,d||getComputedStyle(document.documentElement))}let l=n.styleCache.get(s);s.getAttribute?.("style")&&iF(s,t,l);let h=eF(s,l,r.options);if(wP(s)){let d=l.getPropertyValue("min-width");(!d||d==="auto"||d==="0px")&&(h["min-width"]="0px")}let u=QL(h),c=o.snapshotKeyCache.get(u);if(!c){let d=s.tagName?.toLowerCase()||"div";c=cb(h,d),o.snapshotKeyCache.set(u,c)}n.styleMap.set(t,c)}function rF(s){return s instanceof HTMLImageElement||s instanceof HTMLCanvasElement||s instanceof HTMLVideoElement||s instanceof HTMLIFrameElement||s instanceof SVGElement||s instanceof HTMLObjectElement||s instanceof HTMLEmbedElement}function sF(s){return s.backgroundImage&&s.backgroundImage!=="none"||s.backgroundColor&&s.backgroundColor!=="rgba(0, 0, 0, 0)"&&s.backgroundColor!=="transparent"||(parseFloat(s.borderTopWidth)||0)>0||(parseFloat(s.borderBottomWidth)||0)>0||(parseFloat(s.paddingTop)||0)>0||(parseFloat(s.paddingBottom)||0)>0?!0:(s.overflowBlock||s.overflowY||"visible")!=="visible"}function wP(s){let t=s.parentElement;if(!t)return!1;let e=Wa(t).display||"";return e.includes("flex")||e.includes("grid")}function aF(s,t){if(s.textContent&&/\S/.test(s.textContent))return!0;let e=s.firstElementChild,i=s.lastElementChild;if(e&&e.tagName==="BR"||i&&i.tagName==="BR")return!0;let r=s.scrollHeight;if(r===0)return!1;let a=parseFloat(t.paddingTop)||0,n=parseFloat(t.paddingBottom)||0;return r>a+n}function nF(s,t,e){if(s instanceof HTMLElement&&s.style&&s.style.height)return;let i=s.tagName&&s.tagName.toLowerCase();if(!i||!["div","section","article","main","aside","header","footer","nav"].includes(i))return;let r=parseFloat(t.height);if(Number.isFinite(r)&&s.scrollHeight>0&&Math.abs(r-s.scrollHeight)>2||t.aspectRatio&&t.aspectRatio!=="none"&&t.aspectRatio!=="auto")return;let a=t.display||"";if(a.includes("flex")||a.includes("grid")||rF(s))return;let n=t.position;if(n==="absolute"||n==="fixed"||n==="sticky"||t.transform!=="none"||sF(t)||wP(s))return;let o=t.overflowX||t.overflow||"visible",l=t.overflowY||t.overflow||"visible";if(o!=="visible"||l!=="visible")return;let h=t.clip;h&&h!=="auto"&&h!=="rect(auto, auto, auto, auto)"||t.visibility==="hidden"||t.opacity==="0"||aF(s,t)&&(delete e.height,delete e["block-size"])}Tb();var PP=["fill","stroke","color","background-color","stop-color"],oF=new Set(["symbol","defs","pattern","mask","clipPath","marker","linearGradient","radialGradient","filter"]);function mb(s){let t=s;for(;t&&t.nodeType===1;){if(t.namespaceURI==="http://www.w3.org/2000/svg"&&oF.has(t.localName))return!0;t=t.parentNode}return!1}var Ww=new Map;function lF(s,t){let e=t+"::"+s.toLowerCase(),i=Ww.get(e);if(i)return i;let r=document,a=t==="http://www.w3.org/2000/svg"?r.createElementNS(t,s):r.createElement(s),n=r.createElement("div");n.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",n.appendChild(a),r.documentElement.appendChild(n);let o=getComputedStyle(a),l={};for(let h of PP)l[h]=o.getPropertyValue(h)||"";return n.remove(),Ww.set(e,l),l}function hF(s,t){if(!(s instanceof Element)||!(t instanceof Element)||mb(s))return;let e=s.getAttribute?.("style"),i=!!(e&&e.includes("var("));if(!i&&s.attributes?.length){let a=s.attributes;for(let n=0;n<a.length;n++){let o=a[n];if(o&&typeof o.value=="string"&&o.value.includes("var(")){i=!0;break}}}let r=null;if(i)try{r=getComputedStyle(s)}catch{}if(i){let a=s.style;if(a&&a.length){let n=new Set;for(let o=0;o<a.length;o++){let l=a[o];if(n.has(l))continue;n.add(l);let h=a.getPropertyValue(l);if(!h||!h.includes("var("))continue;let u=r&&r.getPropertyValue(l);if(u)try{t.style.setProperty(l,u.trim(),a.getPropertyPriority(l))}catch{}}}}if(i&&s.attributes?.length){let a=s.attributes;for(let n=0;n<a.length;n++){let o=a[n];if(!o||typeof o.value!="string"||!o.value.includes("var("))continue;let l=o.name,h=r&&r.getPropertyValue(l);if(h)try{t.style.setProperty(l,h.trim())}catch{}}}if(!i){if(!r)try{r=getComputedStyle(s)}catch{r=null}if(!r)return;let a=s.namespaceURI||"html",n=lF(s.tagName,a);for(let o of PP){let l=r.getPropertyValue(o)||"",h=n[o]||"";if(l&&l!==h)try{t.style.setProperty(o,l.trim())}catch{}}}}Hn();Hn();za();qu();function ob(s,t,e){return Promise.all(s.map(i=>new Promise(r=>{function a(){Uu(n=>{!(n&&typeof n.timeRemaining=="function")||n.timeRemaining()>0?t(i,r):a()},{fast:e})}a()})))}function uF(s){return s=s.trim(),!s||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(s)?s:`${s}:not([data-sd-slotted])`}function cF(s,t,e=!0){return s.split(",").map(i=>i.trim()).filter(Boolean).map(i=>{if(i.startsWith(":where(")||i.startsWith("@"))return i;let r=e?uF(i):i;return`:where(${t} ${r})`}).join(", ")}function dF(s,t){return s?(s=s.replace(/:host\(([^)]+)\)/g,(e,i)=>`:where(${t}:is(${i.trim()}))`),s=s.replace(/:host\b/g,`:where(${t})`),s=s.replace(/:host-context\(([^)]+)\)/g,(e,i)=>`:where(:where(${i.trim()}) ${t})`),s=s.replace(/::slotted\(([^)]+)\)/g,(e,i)=>`:where(${t} ${i.trim()})`),s=s.replace(/(^|})(\s*)([^@}{]+){/g,(e,i,r,a)=>{let n=cF(a,t,!0);return`${i}${r}${n}{`}),s):""}function pF(s){return s.shadowScopeSeq=(s.shadowScopeSeq||0)+1,`s${s.shadowScopeSeq}`}function fF(s){let t="";try{s.querySelectorAll("style").forEach(i=>{t+=(i.textContent||"")+`
5
5
  `});let e=s.adoptedStyleSheets||[];for(let i of e)try{if(i&&i.cssRules)for(let r of i.cssRules)t+=r.cssText+`
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import d from"./ISK4QVLY.js";import c from"./6PIQ2O5S.js";import b from"./O3VKOV2W.js";import a from"./EAV3KAS7.js";export default $arcgis.t(([{c:r},f,{c:h},{a:p,b:S,c:l,d:_,e:y,f:d,g:m,h:k,i:M,j:b,k:L,l:u,m:C,n:c,o:x,p:A,q:V,r:v,s:I}])=>{var j=Object.defineProperty,z=Object.getOwnPropertyDescriptor,t=(n,e,i,O)=>{for(var o=z(e,i),a=n.length-1,g;a>=0;a--)(g=n[a])&&(o=g(e,i,o)||o);return o&&j(e,i,o),o},s=class extends f{getSeriesLineStyle(e){return p(e,this._config)}setSeriesLineStyle(e,i){S(e,i,this._config)}getSeriesLineWidth(e){return l(e,this._config)}setSeriesLineWidth(e,i){_(e,i,this._config)}getSeriesMarkerColor(e){return y(e,this._config)}setSeriesMarkerColor(e,i){d(e,i,this._config)}getSeriesMarkerStyle(e){return m(e,this._config)}setSeriesMarkerStyle(e,i){k(e,i,this._config)}getSeriesMarkerSize(e){return M(e,this._config)}setSeriesMarkerSize(e,i){b(e,i,this._config)}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,i){u({smoothed:e,seriesIndex:i,config:this._config})}getConnectLines(e){return v(e,this._config)}setConnectLines(e,i){I({connect:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return C(e,this._config)}setAreaVisible(e,i){c({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return x(e,this._config)}setMarkerVisible(e,i){A({visible:e,seriesIndex:i,config:this._config})}getAreaColor(e){return V(e,this._config)}setAreaColor(e,i){c({visible:!0,seriesIndex:i,config:this._config}),h(e,i,this._config)}};t([r],s.prototype,"setSeriesLineStyle");t([r],s.prototype,"setSeriesLineWidth");t([r],s.prototype,"setSeriesMarkerColor");t([r],s.prototype,"setSeriesMarkerStyle");t([r],s.prototype,"setSeriesMarkerSize");t([r],s.prototype,"setLineSmoothed");t([r],s.prototype,"setConnectLines");t([r],s.prototype,"setAreaVisible");t([r],s.prototype,"setMarkerVisible");t([r],s.prototype,"setAreaColor");return s},a,b,c,d)
2
+ import d from"./ISK4QVLY.js";import c from"./MU6ZYADT.js";import b from"./O3VKOV2W.js";import a from"./EAV3KAS7.js";export default $arcgis.t(([{c:r},f,{c:h},{a:p,b:S,c:l,d:_,e:y,f:d,g:m,h:k,i:M,j:b,k:L,l:u,m:C,n:c,o:x,p:A,q:V,r:v,s:I}])=>{var j=Object.defineProperty,z=Object.getOwnPropertyDescriptor,t=(n,e,i,O)=>{for(var o=z(e,i),a=n.length-1,g;a>=0;a--)(g=n[a])&&(o=g(e,i,o)||o);return o&&j(e,i,o),o},s=class extends f{getSeriesLineStyle(e){return p(e,this._config)}setSeriesLineStyle(e,i){S(e,i,this._config)}getSeriesLineWidth(e){return l(e,this._config)}setSeriesLineWidth(e,i){_(e,i,this._config)}getSeriesMarkerColor(e){return y(e,this._config)}setSeriesMarkerColor(e,i){d(e,i,this._config)}getSeriesMarkerStyle(e){return m(e,this._config)}setSeriesMarkerStyle(e,i){k(e,i,this._config)}getSeriesMarkerSize(e){return M(e,this._config)}setSeriesMarkerSize(e,i){b(e,i,this._config)}isLineSmoothed(e){return L(e,this._config)}setLineSmoothed(e,i){u({smoothed:e,seriesIndex:i,config:this._config})}getConnectLines(e){return v(e,this._config)}setConnectLines(e,i){I({connect:e,seriesIndex:i,config:this._config})}isAreaVisible(e){return C(e,this._config)}setAreaVisible(e,i){c({visible:e,seriesIndex:i,config:this._config})}isMarkerVisible(e){return x(e,this._config)}setMarkerVisible(e,i){A({visible:e,seriesIndex:i,config:this._config})}getAreaColor(e){return V(e,this._config)}setAreaColor(e,i){c({visible:!0,seriesIndex:i,config:this._config}),h(e,i,this._config)}};t([r],s.prototype,"setSeriesLineStyle");t([r],s.prototype,"setSeriesLineWidth");t([r],s.prototype,"setSeriesMarkerColor");t([r],s.prototype,"setSeriesMarkerStyle");t([r],s.prototype,"setSeriesMarkerSize");t([r],s.prototype,"setLineSmoothed");t([r],s.prototype,"setConnectLines");t([r],s.prototype,"setAreaVisible");t([r],s.prototype,"setMarkerVisible");t([r],s.prototype,"setAreaColor");return s},a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import o from"./QTSF2LK7.js";import n from"./WFW6BNDT.js";import m from"./4COV22K4.js";import k from"./ZWIF7LHW.js";import"./OAXHS4LE.js";import j from"./O3VKOV2W.js";import i from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import g from"./EAV3KAS7.js";import e from"./JS6A5QAV.js";import d from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import"./H57XAQPI.js";import"./BGOWDCTO.js";import{H as p,R as v,_ as l,ja as h,qa as _}from"./SCU3SBSN.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZ2C5DJB.js";import"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as c,b as f,s as b}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{xa:S},{b:I,q:C},,{c:i},,L,{b:w,d:V,f:D},{b:B,d:W,f:E},{d:T,e:A},F])=>{var P=t=>t.axes[0].needle?.visible??!0,M=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.visible=t},$=t=>t.axes[0].needle?.symbol,G=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.symbol=t},O=t=>t.axes[0].needle?.startWidth,j=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.startWidth=t},q=t=>t.axes[0].needle?.endWidth,N=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.endWidth=t},H=t=>t.axes[0].needle?.innerRadius,z=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.innerRadius=t},J=t=>t.axes[0].needle?.displayPin??!1,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].progressBands?.visible??!0,ee=(t,e)=>{e.axes[0].progressBands===void 0&&(e.axes[0].progressBands={type:c.FixedProgressBands}),e.axes[0].progressBands.visible=t},te=t=>t.axes[0].progressBands,se=(t,e)=>{t===void 0?delete e.axes[0].progressBands:e.axes[0].progressBands=t},ne=t=>t.axes[0].ticks?.visible??!0,ie=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},oe=t=>t.axes[0].labelsIncrement,re=(t,e)=>{e.axes[0].labelsIncrement=t},ae=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,ge=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},le=t=>t.series[0]?.valueConversion,de=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},k=t=>t.series[0]?.featureIndex,R=t=>{let{featureIndex:e,config:s,layerInfo:a,commonStrings:r}=t,g=x(s),d=u(s);e===null?delete s.series[0].featureIndex:s.series[0]!==void 0&&(s.series[0].featureIndex=e),y({config:s,layerInfo:a,field:g,aggregationType:d,commonStrings:r})},ce=t=>t.subType??b.StatisticGauge,fe=t=>{let{config:e,field:s,aggregationType:a}=t;if(a!==f.NoAggregation){let r=k(e),g=m(r)?{}:{outStatistics:[{statisticType:a,onStatisticField:s,outStatisticFieldName:`${a}_${s}`}]};e.series[0].query=g}},pe=t=>{let{config:e,layerInfo:s,commonStrings:a,field:r,aggregationType:g}=t;e.title&&(e.title.content.text=I({config:e,layerInfo:s,commonStrings:a,numericFields:[r],aggregationType:g}))},y=t=>{let{config:e,field:s,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[h({})]);let r=m(e.series[0]?.featureIndex),g=r?s:`${a}_${s}`;r&&s.startsWith(`${a}_`)&&(g=s.replace(`${a}_`,"")),e.series[0].x=g,fe({config:e,field:s,aggregationType:a}),pe(t)},u=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,he=t=>{let{config:e,layerInfo:s,commonStrings:a,aggregationType:r}=t,g=x(e);y({config:e,layerInfo:s,commonStrings:a,field:g,aggregationType:r})},m=t=>typeof t=="number"&&t>=0,x=t=>m(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ye=t=>{let{field:e,config:s,layerInfo:a,commonStrings:r}=t,g=u(s);y({config:s,layerInfo:a,commonStrings:r,field:e,aggregationType:g})},ue=t=>t.innerRadius??50,me=(t,e)=>{e.innerRadius=t},xe=t=>t.startAngle??-90,be=(t,e)=>{e.startAngle=t},ve=t=>t.endAngle??270,_e=(t,e)=>{e.endAngle=t};function Se(t){return v(t)}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,o=(t,e,s,a)=>{for(var r=Ce(e,s),g=t.length-1,d;g>=0;g--)(d=t[g])&&(r=d(e,s,r)||r);return r&&Ie(e,s,r),r},n=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return Se(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ye({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return u(this._config)}set aggregationType(e){he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return ue(this._config)}set innerRadius(e){me(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return xe(this._config)}set startAngle(e){be(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ve(this._config)}set endAngle(e){_e(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return le(this._config)}set valueConversion(e){de(e,this._config)}get featureIndex(){return k(this._config)}set featureIndex(e){R({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){R({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ce(this._config)}get needleVisibility(){return P(this._config)}set needleVisibility(e){M(e,this._config)}get needleSymbol(){return $(this._config)}set needleSymbol(e){G(e,this._config)}get needleStartWidth(){return O(this._config)}set needleStartWidth(e){j(e,this._config)}get needleEndWidth(){return q(this._config)}set needleEndWidth(e){N(e,this._config)}get needleInnerRadius(){return H(this._config)}set needleInnerRadius(e){z(e,this._config)}get needleDisplayPin(){return J(this._config)}set needleDisplayPin(e){K(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get progressBandsVisibility(){return Z(this._config)}set progressBandsVisibility(e){ee(e,this._config)}get progressBands(){return te(this._config)}set progressBands(e){se(e,this._config)}get axisTickVisibility(){return ne(this._config)}set axisTickVisibility(e){ie(e,this._config)}get labelsIncrement(){return oe(this._config)}set labelsIncrement(e){re(e,this._config)}get onlyShowFirstAndLastLabels(){return ae(this._config)}set onlyShowFirstAndLastLabels(e){ge(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[h({objectIDField:S(this.layerInfo.layer).idField})],e}};o([i],n.prototype,"field");o([i],n.prototype,"aggregationType");o([i],n.prototype,"innerRadius");o([i],n.prototype,"startAngle");o([i],n.prototype,"endAngle");o([i],n.prototype,"valueConversion");o([i],n.prototype,"featureIndex");o([i],n.prototype,"removeFeatureIndex");o([i],n.prototype,"needleVisibility");o([i],n.prototype,"needleSymbol");o([i],n.prototype,"needleStartWidth");o([i],n.prototype,"needleEndWidth");o([i],n.prototype,"needleInnerRadius");o([i],n.prototype,"needleDisplayPin");o([i],n.prototype,"innerLabelVisible");o([i],n.prototype,"innerLabelContent");o([i],n.prototype,"progressBandsVisibility");o([i],n.prototype,"progressBands");o([i],n.prototype,"axisTickVisibility");o([i],n.prototype,"labelsIncrement");o([i],n.prototype,"onlyShowFirstAndLastLabels");var Le=[w,T,V,A,B,W,E,D,F];C(n,Le);return n},a,d,e,g,i,j,k,m,n,o)
2
+ import o from"./5JXEO4VE.js";import n from"./WFW6BNDT.js";import m from"./4COV22K4.js";import k from"./ZWIF7LHW.js";import"./OAXHS4LE.js";import j from"./O3VKOV2W.js";import i from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import g from"./EAV3KAS7.js";import e from"./JS6A5QAV.js";import d from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import"./H57XAQPI.js";import"./BGOWDCTO.js";import{H as p,R as v,_ as l,ja as h,qa as _}from"./SCU3SBSN.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZ2C5DJB.js";import"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as c,b as f,s as b}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{xa:S},{b:I,q:C},,{c:i},,L,{b:w,d:V,f:D},{b:B,d:W,f:E},{d:T,e:A},F])=>{var P=t=>t.axes[0].needle?.visible??!0,M=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.visible=t},$=t=>t.axes[0].needle?.symbol,G=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.symbol=t},O=t=>t.axes[0].needle?.startWidth,j=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.startWidth=t},q=t=>t.axes[0].needle?.endWidth,N=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.endWidth=t},H=t=>t.axes[0].needle?.innerRadius,z=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.innerRadius=t},J=t=>t.axes[0].needle?.displayPin??!1,K=(t,e)=>{e.axes[0].needle===void 0&&(e.axes[0].needle=l()),e.axes[0].needle.displayPin=t},Q=t=>t.axes[0].innerLabel?.visible??!0,U=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),e.axes[0].innerLabel.visible=t},X=t=>t.axes[0].innerLabel?.content,Y=(t,e)=>{e.axes[0].innerLabel===void 0&&(e.axes[0].innerLabel=p()),t!==void 0&&(e.axes[0].innerLabel.content=t)},Z=t=>t.axes[0].progressBands?.visible??!0,ee=(t,e)=>{e.axes[0].progressBands===void 0&&(e.axes[0].progressBands={type:c.FixedProgressBands}),e.axes[0].progressBands.visible=t},te=t=>t.axes[0].progressBands,se=(t,e)=>{t===void 0?delete e.axes[0].progressBands:e.axes[0].progressBands=t},ne=t=>t.axes[0].ticks?.visible??!0,ie=(t,e)=>{e.axes[0].ticks===void 0&&(e.axes[0].ticks={type:c.GaugeAxisTick}),e.axes[0].ticks.visible=t},oe=t=>t.axes[0].labelsIncrement,re=(t,e)=>{e.axes[0].labelsIncrement=t},ae=t=>t.axes[0].onlyShowFirstAndLastLabels??!1,ge=(t,e)=>{e.axes[0].onlyShowFirstAndLastLabels=t},le=t=>t.series[0]?.valueConversion,de=(t,e)=>{e.series[0]!==void 0&&(e.series[0].valueConversion=t)},k=t=>t.series[0]?.featureIndex,R=t=>{let{featureIndex:e,config:s,layerInfo:a,commonStrings:r}=t,g=x(s),d=u(s);e===null?delete s.series[0].featureIndex:s.series[0]!==void 0&&(s.series[0].featureIndex=e),y({config:s,layerInfo:a,field:g,aggregationType:d,commonStrings:r})},ce=t=>t.subType??b.StatisticGauge,fe=t=>{let{config:e,field:s,aggregationType:a}=t;if(a!==f.NoAggregation){let r=k(e),g=m(r)?{}:{outStatistics:[{statisticType:a,onStatisticField:s,outStatisticFieldName:`${a}_${s}`}]};e.series[0].query=g}},pe=t=>{let{config:e,layerInfo:s,commonStrings:a,field:r,aggregationType:g}=t;e.title&&(e.title.content.text=I({config:e,layerInfo:s,commonStrings:a,numericFields:[r],aggregationType:g}))},y=t=>{let{config:e,field:s,aggregationType:a}=t;e.series[0]===void 0&&(e.series=[h({})]);let r=m(e.series[0]?.featureIndex),g=r?s:`${a}_${s}`;r&&s.startsWith(`${a}_`)&&(g=s.replace(`${a}_`,"")),e.series[0].x=g,fe({config:e,field:s,aggregationType:a}),pe(t)},u=t=>t.series[0]?.query?.outStatistics?.[0]?.statisticType??f.Count,he=t=>{let{config:e,layerInfo:s,commonStrings:a,aggregationType:r}=t,g=x(e);y({config:e,layerInfo:s,commonStrings:a,field:g,aggregationType:r})},m=t=>typeof t=="number"&&t>=0,x=t=>m(t.series[0]?.featureIndex)?t.series[0]?.x:t.series[0]?.query?.outStatistics?.[0]?.onStatisticField??"",ye=t=>{let{field:e,config:s,layerInfo:a,commonStrings:r}=t,g=u(s);y({config:s,layerInfo:a,commonStrings:r,field:e,aggregationType:g})},ue=t=>t.innerRadius??50,me=(t,e)=>{e.innerRadius=t},xe=t=>t.startAngle??-90,be=(t,e)=>{e.startAngle=t},ve=t=>t.endAngle??270,_e=(t,e)=>{e.endAngle=t};function Se(t){return v(t)}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,o=(t,e,s,a)=>{for(var r=Ce(e,s),g=t.length-1,d;g>=0;g--)(d=t[g])&&(r=d(e,s,r)||r);return r&&Ie(e,s,r),r},n=class extends L{constructor(){super(...arguments),this._chartType=c.GaugeSeries}generateChartTitle(){return Se(this.commonStrings)}async setup(e){await this.loadConfigFromLayer(e),typeof this.resolveSetup=="function"&&this.resolveSetup()}get field(){return x(this._config)}set field(e){ye({field:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get aggregationType(){return u(this._config)}set aggregationType(e){he({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get innerRadius(){return ue(this._config)}set innerRadius(e){me(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get startAngle(){return xe(this._config)}set startAngle(e){be(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get endAngle(){return ve(this._config)}set endAngle(e){_e(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get valueConversion(){return le(this._config)}set valueConversion(e){de(e,this._config)}get featureIndex(){return k(this._config)}set featureIndex(e){R({featureIndex:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}removeFeatureIndex(){R({featureIndex:null,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get gaugeSubType(){return ce(this._config)}get needleVisibility(){return P(this._config)}set needleVisibility(e){M(e,this._config)}get needleSymbol(){return $(this._config)}set needleSymbol(e){G(e,this._config)}get needleStartWidth(){return O(this._config)}set needleStartWidth(e){j(e,this._config)}get needleEndWidth(){return q(this._config)}set needleEndWidth(e){N(e,this._config)}get needleInnerRadius(){return H(this._config)}set needleInnerRadius(e){z(e,this._config)}get needleDisplayPin(){return J(this._config)}set needleDisplayPin(e){K(e,this._config)}get innerLabelVisible(){return Q(this._config)}set innerLabelVisible(e){U(e,this._config)}get innerLabelContent(){return X(this._config)}set innerLabelContent(e){Y(e,this._config)}get progressBandsVisibility(){return Z(this._config)}set progressBandsVisibility(e){ee(e,this._config)}get progressBands(){return te(this._config)}set progressBands(e){se(e,this._config)}get axisTickVisibility(){return ne(this._config)}set axisTickVisibility(e){ie(e,this._config)}get labelsIncrement(){return oe(this._config)}set labelsIncrement(e){re(e,this._config)}get onlyShowFirstAndLastLabels(){return ae(this._config)}set onlyShowFirstAndLastLabels(e){ge(e,this._config)}generateDefaultConfig(){let e=_(this.commonStrings);return e.series=[h({objectIDField:S(this.layerInfo.layer).idField})],e}};o([i],n.prototype,"field");o([i],n.prototype,"aggregationType");o([i],n.prototype,"innerRadius");o([i],n.prototype,"startAngle");o([i],n.prototype,"endAngle");o([i],n.prototype,"valueConversion");o([i],n.prototype,"featureIndex");o([i],n.prototype,"removeFeatureIndex");o([i],n.prototype,"needleVisibility");o([i],n.prototype,"needleSymbol");o([i],n.prototype,"needleStartWidth");o([i],n.prototype,"needleEndWidth");o([i],n.prototype,"needleInnerRadius");o([i],n.prototype,"needleDisplayPin");o([i],n.prototype,"innerLabelVisible");o([i],n.prototype,"innerLabelContent");o([i],n.prototype,"progressBandsVisibility");o([i],n.prototype,"progressBands");o([i],n.prototype,"axisTickVisibility");o([i],n.prototype,"labelsIncrement");o([i],n.prototype,"onlyShowFirstAndLastLabels");var Le=[w,T,V,A,B,W,E,D,F];C(n,Le);return n},a,d,e,g,i,j,k,m,n,o)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import t from"./MU6ZYADT.js";import s from"./PBO5VH6A.js";import q from"./HOIPLQXD.js";import o from"./J3CL6KB6.js";import n from"./VA6KJZ2Y.js";import m from"./HUNN3ERX.js";import l from"./3AYXOX4U.js";import k from"./JYITKARU.js";import j from"./5JXEO4VE.js";import i from"./WFW6BNDT.js";import h from"./4COV22K4.js";import g from"./ZWIF7LHW.js";import"./OAXHS4LE.js";import f from"./O3VKOV2W.js";import e from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import d from"./EAV3KAS7.js";import c from"./JS6A5QAV.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{r as S}from"./H57XAQPI.js";import"./BGOWDCTO.js";import{sa as _}from"./SCU3SBSN.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZ2C5DJB.js";import"./MARXRC6B.js";import"./DAFNQT4C.js";import{c as r}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as u,b as p}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{xa:l},,,{c:i},,,,,,,,,,,{e:y},,{$:z,A:O,B:v,C:b,D:L,E:R,F:I,G:w,H:D,I:P,J:k,K:B,L:U,M:Y,N:N,O:W,P:m,Q:h,R:M,S:V,T:E,U:G,V:H,W:X,X:j,Y:Q,Z:Z,_:q,aa:J,ba:K,ca:$,da:tt,ea:et,fa:it,ga:st,ha:ot,ia:rt,ja:nt,ka:at,la:gt,ma:pt,qa:f,v:C,w:T,x:A,y:x,z:F},{a:ct,b:lt,d:yt}])=>{var mt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,s=(c,t,o,a)=>{for(var n=ht(t,o),g=c.length-1,d;g>=0;g--)(d=c[g])&&(n=d(t,o,n)||n);return n&&mt(t,o,n),n},e=class extends yt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?pt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),gt({commonStrings:this.commonStrings,config:this._config,layerInfo:this.layerInfo}),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return b(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get viewType(){return z(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{J(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){L({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return w(this._config)}set yTemporalBinning(t){I({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return K(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{$(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){D(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return ct(0,this._config)}set seriesName(t){typeof t=="string"&&lt(t,0,this._config)}get heatRulesType(){return x(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return O(this._config)}set gradientRules(t){F(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=N(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];this._numericFields=[n],W({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=m(this._config);a&&g!==p.Count&&(this._aggregationType=p.Count,h({aggregationType:p.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}))}get aggregationType(){return m(this._config)}set aggregationType(t){this._aggregationType=t,h({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return Y(this._config)}set legendPosition(t){U(t,this._config)}get nullPolicy(){return M(this._config)}set nullPolicy(t){V(t,this._config)}get emptyCell(){return E(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{G(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=f(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=f(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return H(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return Z(this._config)}set emptyCellSymbol(t){q(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}getAssignToSecondValueAxis(){return!1}setSeriesToSecondaryYAxis(t,o){}getSeriesToSecondaryYAxis(){return!1}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"setSeriesToSecondaryYAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,q,s,t)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import v from"./OWWQ5SYW.js";import{a as se}from"./L7CMLBHB.js";import{a as ie}from"./GRL5SM6K.js";import{a as w}from"./3ZGG7Q5M.js";import{a as re}from"./IHO3OLL3.js";import u from"./JBFVGQSP.js";import{a as $,b as ee,e as te}from"./OBPAQN4H.js";import{a as f}from"./7NWEE7T2.js";import t from"./7DIQIFKR.js";import{d as n}from"./JYC77MVD.js";import{a as I}from"./U43KANH5.js";import s from"./XKZ44LA2.js";import r from"./GARBFC7Q.js";import p from"./3UHXOKCR.js";import{a as W}from"./ZLXYBOM3.js";import m from"./7CMQGTU6.js";import l from"./HOIPLQXD.js";import k from"./J3CL6KB6.js";import j from"./JYITKARU.js";import{b as q,c as P,i as Y,l as B,p as L,r as Q}from"./OAXHS4LE.js";import i from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import g from"./EAV3KAS7.js";import e from"./JS6A5QAV.js";import d from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{C as T,c as H,q as S}from"./H57XAQPI.js";import{d as b,e as R}from"./BGOWDCTO.js";import"./SCU3SBSN.js";import"./KX7KGXKQ.js";import{l as M}from"./SP2IPHWF.js";import"./NZ2C5DJB.js";import{A,B as V,C as h,D as _,F as x,H as z,g as F,i as c,n as C,z as N}from"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as o,k as U}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:ne},{Ic:K,gc:Z,ma:X,qa:G,u:O},,,,,{b:v},,{a:J},,,,,{r:ae},{e:y,f:j},{b:D}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function oe(m,e){let s=new Set,t=e;return m?.forEach((a,i)=>{let r=a.chartId;(s.has(r)||r===void 0||r==="")&&(a.chartId=`Chart_${Date.now()}_${i}`,e===r&&(t=a.chartId)),s.add(r)}),t}function ce(m,e,s){return m?.filter(t=>S(s,t.config)&&t.layer?.id===e)??[]}function he(m){let{modelList:e,layerList:s,activeLayerId:t,disableEditing:a}=m,i=new Map;return e?.forEach(r=>{let l=r.layer;l&&i.set(l.id,l)}),a||s.forEach(r=>i.set(r.id,r)),Array.from(i.values()).filter(r=>!t||r.id===t)}function de(m,e){m.forEach(s=>{e.forEach(t=>{s?.id===t.layer?.id&&le(s,t)})})}function le(m,e){let s=m;if(s){let t=[...s?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),i=!1;a!==void 0&&a>-1?(i=!M(t[a],e.config),t[a]=e.config):s&&!v(e.config)&&(i=!0,t.push(e.config)),i&&(s.charts=t)}}function me(m,e){let s=m;if(s){let t=[...s.charts??[]],a=t.findIndex(i=>i.id===e);a>-1&&(t.splice(a,1),s.charts=t)}}function pe(m,e){let s=m;if(s){let t=[...s.charts??[]];t=T({arrayA:t,arrayB:e.map(a=>a.config),getKey:a=>a.id??a.title?.content.text??""}),s.charts=t}}var ge=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,k=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let s=e,{chartData:t,model:a}=s.detail,i=this.getModel(this.selectedChartId);if(a?.isSameChartAs(i))switch(i?.chartType){case o.HistogramSeries:if(this.chartData=t,a&&(a.dataStore.chartData=t,R(a.layer))){let r=a,l=t?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=t,a&&(a.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:u,aggregated:g}=r,p=u;Number.isFinite(u)||(p=void 0),this.r2=p,Y(a)&&(a.dataStore.r2=p,a.dataStore.aggregated=g,g&&(a.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;(P(i)||q(i)&&i.binTemporalData)&&(l?.size!==void 0&&i.temporalBinningSize!==l?.size&&(i.temporalBinningSize=l?.size),l?.unit!==void 0&&i.temporalBinningUnit!==l?.unit&&l?.unit!==U.Quarter&&(i.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&te($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),this.applyDefaultNullCategoryIfNeeded(i,r);break}}},this.applyDefaultNullCategoryIfNeeded=(e,s)=>{if(Q(e)&&e.nullCategory===void 0){let t=e.xAxisField;s.some(a=>a[t]===null)&&(e.nullCategory=H.nullCategory)}},this.chartAxesMinMaxChange=e=>{let s=e,{bounds:t,model:a}=s.detail,i=this.getModel(this.selectedChartId),r=a?.isSameChartAs(i),l=i?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,a&&(a.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let s=e,{data:t,model:a}=s.detail,i=this.getModel(this.selectedChartId);if(a?.isSameChartAs(i))switch(i?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,a&&(a.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,a&&(a.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let s=e,{propName:t,value:a,model:i}=s.detail,r=this.modelList.find(l=>i?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof a=="boolean"&&J(r)&&(r.rotated=a);break;case"legendPosition":typeof a=="string"&&L(r)&&(r.legendPosition=a);break;case"legendVisibility":typeof a=="boolean"&&L(r)&&(r.legendVisibility=a);break}},this.chartLegendItemVisibilityChange=e=>{let s=e,{legendItemVisibility:t,model:a}=s.detail,i=this.modelList.find(r=>a?.isSameChartAs(r));i?.setSeriesVisibility(t),B(i)&&((i.getMinBound(1)===null||Number.isNaN(i.getMinBound(1)))&&i.setMinBound(null,1),(i.getMaxBound(1)===null||Number.isNaN(i.getMaxBound(1)))&&i.setMaxBound(null,1),P(i)&&((i.getMinBound(0)===null||Number.isNaN(i.getMinBound(0)))&&i.setMinBound(null,0),(i.getMaxBound(0)===null||Number.isNaN(i.getMaxBound(0)))&&i.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:s,layerId:t}=e.target;s!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:s,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let s=e.target;le(s?.layer,s)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:j}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=ge}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:s}=e.detail;if(this.modelList=T({arrayA:this.modelList,arrayB:s,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=s.find(a=>a.layer?.id!==void 0)?.layer?.id;if(t){let a=this.layerList.find(i=>i.id.toString()===t);a&&pe(a,s)}}}async layerListChange(){let e=[],s=this.layerList.map(a=>a.id.toString()),t=[...this.modelList.filter(a=>s.includes(a.layer?.id??""))];for(let a of this.layerList??[]){if(a.type==="sublayer"){let r=await a.createFeatureLayer();if(!r)continue;a=r}let i=a.charts;for(let r of i??[]){let l=await W({layer:a,config:r,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}oe(e),e.forEach(a=>{t.find(i=>i.isSameChartAs(a))===void 0&&t.push(a)}),t=t.filter(a=>!Z(a.config)),this.modelList=t}modelListChange(e,s){this.selectedChartId=oe(e,this.selectedChartId),s?.forEach(a=>{a.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(a=>{a.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?D({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&de(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=n.Data;let s=this.getModel(e);this.setEventBasedPropsFromModelData(s),this.currentChartTypeText=s?.chartType!==void 0?D({chartType:s.chartType,commonStrings:this.commonStrings,config:s.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:s})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let s=this.getModel(this.selectedChartId)?.config,t=[];if(s!==void 0&&e!==void 0){let a=K({chartConfig:s,chartData:e}),{minY:i,maxY:r,minX:l,maxX:u}=a;t=[{isXAxis:!0,minimum:l,maximum:u},{isXAxis:!1,minimum:i,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(s=>{let{isXAxis:t,maximum:a,minimum:i}=s,r=this.getModel(this.selectedChartId);if(r!==void 0&&B(r)&&this.selectedChartId!==void 0){let l=new se(r,t),u=ee({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let p=g[this.selectedChartId]?.[u],E={defaultMinBound:p?.defaultMinBound===p?.currMinBound?i:p?.defaultMinBound,currMinBound:i,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?a:p?.defaultMaxBound,currMaxBound:a};!M(p,E)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][u]=E)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(s=>S(O,s.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:s,layerId:t,layerType:a}=e.detail,i=!0;if(b(a)&&t){let r=this.layerList.find(l=>l.id===t);b(r?.type)&&(i=!!(await G(r))?.attributeTable)}this.setupSelectChartTypePopover(s,t,a,i)}setupSelectChartTypePopover(e,s,t,a=!0){let i=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=x(c`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${s} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${i} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(s=>s.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=re(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!v(e.config))}onViewChartDelete(e){let{chartId:s}=e.detail;if(s!==void 0){let t=this.modelList.find(i=>i.chartId===s),a=this.layerList.find(i=>i.id===t?.layer?.id);this.modelList=[...this.modelList.filter(i=>i.chartId!==s)],a&&this.syncChartsToLayers&&this.allowChartSyncing&&me(a,s)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let s=e.target,t="";switch(s.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=x(c`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${s} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ae(this.tooltip)}renderViewCharts(){let e=he({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ie(e,s=>s.id,s=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ce(this.modelList,s.id.toString(),b(s.type)?X:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${s} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:c`<calcite-flow>${w("charts-list",c`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ne(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?c`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===n.Format} @click=${()=>{this.selectedPanel=n.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===n.General} @click=${()=>{this.selectedPanel=n.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),s=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=c`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data}></arcgis-charts-config-heat-chart>`;break}return t}};z("arcgis-charts-config-create-flow",k);return k},"intl",a,d,e,g,i,j,k,l,m,p,r,s,t,u,v)
2
+ import v from"./OWWQ5SYW.js";import{a as se}from"./L7CMLBHB.js";import{a as ie}from"./GRL5SM6K.js";import{a as w}from"./3ZGG7Q5M.js";import{a as re}from"./IHO3OLL3.js";import u from"./46PXO7ZC.js";import{a as $,b as ee,e as te}from"./OBPAQN4H.js";import{a as f}from"./7NWEE7T2.js";import t from"./7DIQIFKR.js";import{d as n}from"./JYC77MVD.js";import{a as I}from"./U43KANH5.js";import s from"./WSL76GA5.js";import r from"./GARBFC7Q.js";import p from"./MPGHOXLW.js";import{a as W}from"./JUON3AJY.js";import m from"./PBO5VH6A.js";import l from"./HOIPLQXD.js";import k from"./J3CL6KB6.js";import j from"./JYITKARU.js";import{b as q,c as P,i as Y,l as B,p as L,r as Q}from"./OAXHS4LE.js";import i from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import g from"./EAV3KAS7.js";import e from"./JS6A5QAV.js";import d from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{C as T,c as H,q as S}from"./H57XAQPI.js";import{d as b,e as R}from"./BGOWDCTO.js";import"./SCU3SBSN.js";import"./KX7KGXKQ.js";import{l as M}from"./SP2IPHWF.js";import"./NZ2C5DJB.js";import{A,B as V,C as h,D as _,F as x,H as z,g as F,i as c,n as C,z as N}from"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as o,k as U}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{substitute:ne},{Ic:K,gc:Z,ma:X,qa:G,u:O},,,,,{b:v},,{a:J},,,,,{r:ae},{e:y,f:j},{b:D}])=>{var d={chartUIComponent:"chart-ui-component",tabBar:"tab-bar",tab:"tab"};function oe(m,e){let s=new Set,t=e;return m?.forEach((a,i)=>{let r=a.chartId;(s.has(r)||r===void 0||r==="")&&(a.chartId=`Chart_${Date.now()}_${i}`,e===r&&(t=a.chartId)),s.add(r)}),t}function ce(m,e,s){return m?.filter(t=>S(s,t.config)&&t.layer?.id===e)??[]}function he(m){let{modelList:e,layerList:s,activeLayerId:t,disableEditing:a}=m,i=new Map;return e?.forEach(r=>{let l=r.layer;l&&i.set(l.id,l)}),a||s.forEach(r=>i.set(r.id,r)),Array.from(i.values()).filter(r=>!t||r.id===t)}function de(m,e){m.forEach(s=>{e.forEach(t=>{s?.id===t.layer?.id&&le(s,t)})})}function le(m,e){let s=m;if(s){let t=[...s?.charts??[]],a=t?.findIndex(r=>r.id===e.chartId),i=!1;a!==void 0&&a>-1?(i=!M(t[a],e.config),t[a]=e.config):s&&!v(e.config)&&(i=!0,t.push(e.config)),i&&(s.charts=t)}}function me(m,e){let s=m;if(s){let t=[...s.charts??[]],a=t.findIndex(i=>i.id===e);a>-1&&(t.splice(a,1),s.charts=t)}}function pe(m,e){let s=m;if(s){let t=[...s.charts??[]];t=T({arrayA:t,arrayB:e.map(a=>a.config),getKey:a=>a.id??a.title?.content.text??""}),s.charts=t}}var ge=F`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`,k=class extends V{constructor(){super(),this.selectChartTypePopover=null,this.chartsListFlowItem=N(),this.supportedChartTypes=[o.BarSeries,o.BoxPlotSeries,o.LineSeries,o.PieSeries,o.HistogramSeries,o.ScatterSeries,o.HeatSeries],this._messages=I(),this.commonStrings=I({name:"common",blocking:!0}),this.chartDataProcessComplete=e=>{let s=e,{chartData:t,model:a}=s.detail,i=this.getModel(this.selectedChartId);if(a?.isSameChartAs(i))switch(i?.chartType){case o.HistogramSeries:if(this.chartData=t,a&&(a.dataStore.chartData=t,R(a.layer))){let r=a,l=t?.bins?.length;l!==void 0&&r.binCount!==l&&(r.binCount=l)}break;case o.PieSeries:{this.chartData=t,a&&(a.dataStore.chartData=t);break}case o.ScatterSeries:{let r=t,{dataItems:l,r2:u,aggregated:g}=r,p=u;Number.isFinite(u)||(p=void 0),this.r2=p,Y(a)&&(a.dataStore.r2=p,a.dataStore.aggregated=g,g&&(a.additionalTooltipField=void 0)),this.calculatedDataMinMaxBounds=this.getDataExtent(l),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds);break}case o.LineSeries:case o.BarSeries:{let{dataItems:r,timeIntervalInfo:l}=t;(P(i)||q(i)&&i.binTemporalData)&&(l?.size!==void 0&&i.temporalBinningSize!==l?.size&&(i.temporalBinningSize=l?.size),l?.unit!==void 0&&i.temporalBinningUnit!==l?.unit&&l?.unit!==U.Quarter&&(i.temporalBinningUnit=l?.unit),l?.size!==void 0&&l?.unit!==void 0&&te($,{size:l.size,unit:l.unit})),this.calculatedDataMinMaxBounds=this.getDataExtent(r),a&&(a.dataStore.calculatedDataMinMaxBounds=this.calculatedDataMinMaxBounds),this.applyDefaultNullCategoryIfNeeded(i,r);break}}},this.applyDefaultNullCategoryIfNeeded=(e,s)=>{if(Q(e)&&e.nullCategory===void 0){let t=e.xAxisField;s.some(a=>a[t]===null)&&(e.nullCategory=H.nullCategory)}},this.chartAxesMinMaxChange=e=>{let s=e,{bounds:t,model:a}=s.detail,i=this.getModel(this.selectedChartId),r=a?.isSameChartAs(i),l=i?.chartType;if(r)switch(l){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:case o.ScatterSeries:this.calculatedMinMaxBounds=t,a&&(a.dataStore.calculatedMinMaxBounds=t),this.updateAxesBoundsInAppState(t);break}},this.chartSeriesColorChange=e=>{let s=e,{data:t,model:a}=s.detail,i=this.getModel(this.selectedChartId);if(a?.isSameChartAs(i))switch(i?.chartType){case o.BarSeries:case o.BoxPlotSeries:case o.LineSeries:case o.HistogramSeries:this.seriesColor=t,a&&(a.dataStore.seriesColor=t);break;case o.PieSeries:{let r=new Map([[0,t]]);this.seriesColor=r,a&&(a.dataStore.seriesColor=r);break}case o.ScatterSeries:}},this.chartNoRenderPropChange=e=>{let s=e,{propName:t,value:a,model:i}=s.detail,r=this.modelList.find(l=>i?.isSameChartAs(l));if(r)switch(t){case"rotation":typeof a=="boolean"&&J(r)&&(r.rotated=a);break;case"legendPosition":typeof a=="string"&&L(r)&&(r.legendPosition=a);break;case"legendVisibility":typeof a=="boolean"&&L(r)&&(r.legendVisibility=a);break}},this.chartLegendItemVisibilityChange=e=>{let s=e,{legendItemVisibility:t,model:a}=s.detail,i=this.modelList.find(r=>a?.isSameChartAs(r));i?.setSeriesVisibility(t),B(i)&&((i.getMinBound(1)===null||Number.isNaN(i.getMinBound(1)))&&i.setMinBound(null,1),(i.getMaxBound(1)===null||Number.isNaN(i.getMaxBound(1)))&&i.setMaxBound(null,1),P(i)&&((i.getMinBound(0)===null||Number.isNaN(i.getMinBound(0)))&&i.setMinBound(null,0),(i.getMaxBound(0)===null||Number.isNaN(i.getMaxBound(0)))&&i.setMaxBound(null,0)))},this.onSelectChartTypeChange=e=>{this.currentChartTypeText="",this.calculatedDataMinMaxBounds=void 0,this.calculatedMinMaxBounds=void 0,this.removeSelectChartTypePopover();let{selectedModelType:s,layerId:t}=e.target;s!==void 0&&(this.allowChartSyncing=!0,this.arcgisChartsConfigNewChart.emit({key:"key",chartType:s,layerId:t}))},this.onAddChartClose=()=>{this.removeSelectChartTypePopover()},this.onModelConfigChange=e=>{if(this.syncChartsToLayers&&this.allowChartSyncing){let s=e.target;le(s?.layer,s)}this.requestUpdate()},this.allowChartSyncing=!1,this.currentChartTypeText="",this.modelList=[],this.layerList=[],this.disableEditing=!1,this.syncChartsToLayers=!1,this.close=!1,this.usePopupTemplateFieldsInfo=!1,this.panelNumber=0,this.filterBySelection=!1,this.arcgisChartsConfigChartViewChartClose=C(),this.arcgisChartsConfigModelListChange=C(),this.arcgisChartsConfigNewChart=C(),this.arcgisChartsConfigPanelNumberChange=C(),this.arcgisChartsConfigSelectedChartChange=C(),this.addChartEventListeners(),this.listen("arcgisChartsConfigModelListReorder",this.modelListReorderChangeListener)}static{this.properties={selectedPanel:16,currentChartTypeText:16,messageOverrides:0,modelList:[0,{hasChanged:y}],layerList:[0,{hasChanged:y}],selectedChartId:1,activeLayerId:1,disableEditing:5,syncChartsToLayers:5,timeZone:1,headerTitle:1,close:5,chartData:[0,{hasChanged:y}],r2:9,calculatedDataMinMaxBounds:[0,{hasChanged:y}],calculatedMinMaxBounds:[0,{hasChanged:y}],seriesColor:[0,{hasChanged:j}],popoverPlacement:1,usePopupTemplateFieldsInfo:5,popupTemplateFieldInfosEnabled:5,panelNumber:9,filterBySelection:5}}static{this.styles=ge}async setFocus(){await this.chartsListFlowItem.value?.setFocus()}async load(){await this.layerListChange();let e=this.getModel(this.selectedChartId);this.setEventBasedPropsFromModelData(e)}willUpdate(e){e.has("layerList")&&this.layerListChange(),e.has("panelNumber")&&this.panelNumberChange(this.panelNumber),e.has("modelList")&&this.modelListChange(this.modelList,e.get("modelList")),e.has("selectedChartId")&&this.selectedChartIdChange(this.selectedChartId)}disconnectedCallback(){super.disconnectedCallback(),this.clearPartialModels(),this.removeSelectChartTypePopover()}modelListReorderChangeListener(e){let{modelList:s}=e.detail;if(this.modelList=T({arrayA:this.modelList,arrayB:s,getKey:t=>t.chartId??t.titleText??""}),this.syncChartsToLayers){let t=s.find(a=>a.layer?.id!==void 0)?.layer?.id;if(t){let a=this.layerList.find(i=>i.id.toString()===t);a&&pe(a,s)}}}async layerListChange(){let e=[],s=this.layerList.map(a=>a.id.toString()),t=[...this.modelList.filter(a=>s.includes(a.layer?.id??""))];for(let a of this.layerList??[]){if(a.type==="sublayer"){let r=await a.createFeatureLayer();if(!r)continue;a=r}let i=a.charts;for(let r of i??[]){let l=await W({layer:a,config:r,commonStrings:this.commonStrings});l!==void 0&&e.push(l)}}oe(e),e.forEach(a=>{t.find(i=>i.isSameChartAs(a))===void 0&&t.push(a)}),t=t.filter(a=>!Z(a.config)),this.modelList=t}modelListChange(e,s){this.selectedChartId=oe(e,this.selectedChartId),s?.forEach(a=>{a.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}),e.forEach(a=>{a.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)});let t=this.getModel(this.selectedChartId);this.currentChartTypeText=t?.chartType!==void 0?D({chartType:t.chartType,commonStrings:this.commonStrings,config:t.config}):"",this.syncChartsToLayers&&this.allowChartSyncing&&de(this.layerList,e),this.arcgisChartsConfigModelListChange.emit({modelList:e})}selectedChartIdChange(e){this.selectedChartId===void 0&&(this.panelNumber=0),this.selectedPanel=n.Data;let s=this.getModel(e);this.setEventBasedPropsFromModelData(s),this.currentChartTypeText=s?.chartType!==void 0?D({chartType:s.chartType,commonStrings:this.commonStrings,config:s.config}):"",e!==void 0&&e!==$.selectedChartId&&($.selectedChartId=e),this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:s})}panelNumberChange(e){e===0?this.clearPartialModels():e===1&&this.removeSelectChartTypePopover(),this.arcgisChartsConfigPanelNumberChange.emit({panelNumber:e,modelList:this.modelList})}addChartEventListeners(){this.listenOn(document,f.DataProcessComplete,this.chartDataProcessComplete),this.listenOn(document,f.AxesMinMaxChange,this.chartAxesMinMaxChange),this.listenOn(document,f.SeriesColorChange,this.chartSeriesColorChange),this.listenOn(document,f.NoRenderPropChange,this.chartNoRenderPropChange),this.listenOn(document,f.LegendItemVisibilityChange,this.chartLegendItemVisibilityChange)}getDataExtent(e){let s=this.getModel(this.selectedChartId)?.config,t=[];if(s!==void 0&&e!==void 0){let a=K({chartConfig:s,chartData:e}),{minY:i,maxY:r,minX:l,maxX:u}=a;t=[{isXAxis:!0,minimum:l,maximum:u},{isXAxis:!1,minimum:i,maximum:r}]}return t}updateAxesBoundsInAppState(e){e?.forEach(s=>{let{isXAxis:t,maximum:a,minimum:i}=s,r=this.getModel(this.selectedChartId);if(r!==void 0&&B(r)&&this.selectedChartId!==void 0){let l=new se(r,t),u=ee({chartId:this.selectedChartId,isXAxis:t,isLogarithmic:l.getLogarithmic()}),g=$.chartAxesBoundDataMap;g[this.selectedChartId]===void 0&&(g[this.selectedChartId]={});let p=g[this.selectedChartId]?.[u],E={defaultMinBound:p?.defaultMinBound===p?.currMinBound?i:p?.defaultMinBound,currMinBound:i,defaultMaxBound:p?.defaultMaxBound===p?.currMaxBound?a:p?.defaultMaxBound,currMaxBound:a};!M(p,E)&&this.selectedChartId!==void 0&&g?.[this.selectedChartId]!==void 0&&(g[this.selectedChartId][u]=E)}})}getPlacement(){let e;return this.popoverPlacement!==void 0?e=this.popoverPlacement:e=this.modelList?.filter(s=>S(O,s.config)).length<=2?"bottom":"top",e}onBackFlow(){this.panelNumber-=1}async onAddChartClick(e){let{referenceElement:s,layerId:t,layerType:a}=e.detail,i=!0;if(b(a)&&t){let r=this.layerList.find(l=>l.id===t);b(r?.type)&&(i=!!(await G(r))?.attributeTable)}this.setupSelectChartTypePopover(s,t,a,i)}setupSelectChartTypePopover(e,s,t,a=!0){let i=this.getPlacement();this.removeSelectChartTypePopover(),this.selectChartTypePopover=x(c`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${s} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${i} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`),!document.body.contains(this.selectChartTypePopover)&&this.selectChartTypePopover!==null&&document.body.appendChild(this.selectChartTypePopover)}getModel(e){return this.modelList?.find(s=>s.chartId===e)}removeSelectChartTypePopover(){this.selectChartTypePopover!==void 0&&(this.selectChartTypePopover?.remove(),this.selectChartTypePopover=re(this.selectChartTypePopover))}clearPartialModels(){this.modelList=this.modelList.filter(e=>!v(e.config))}onViewChartDelete(e){let{chartId:s}=e.detail;if(s!==void 0){let t=this.modelList.find(i=>i.chartId===s),a=this.layerList.find(i=>i.id===t?.layer?.id);this.modelList=[...this.modelList.filter(i=>i.chartId!==s)],a&&this.syncChartsToLayers&&this.allowChartSyncing&&me(a,s)}}onViewChartsSelect(e){this.selectedChartId===e.detail.chartId&&(this.allowChartSyncing=!0,this.arcgisChartsConfigSelectedChartChange.emit({key:"key",model:this.getModel(this.selectedChartId)})),this.selectedChartId=e.detail.chartId}onViewChartsEdit(e){this.onViewChartsSelect(e),this.panelNumber=1}onViewChartClose(){this.close=!0,this.removeSelectChartTypePopover(),this.arcgisChartsConfigChartViewChartClose.emit()}setEventBasedPropsFromModelData(e){this.chartData=e?.dataStore.chartData,this.r2=e?.dataStore.r2,this.seriesColor=e?.dataStore.seriesColor,this.calculatedMinMaxBounds=e?.dataStore.calculatedMinMaxBounds,this.calculatedDataMinMaxBounds=e?.dataStore.calculatedDataMinMaxBounds}createTooltip(e){let s=e.target,t="";switch(s.icon){case"configure":t=this._messages.data??"";break;case"graph-bar-stacked":case"graph-line-series":case"box-chart-series":t=this._messages.series??"";break;case"graph-pie-slice":t=this._messages.slices??"";break;case"graph-axis":t=this._messages.axes??"";break;case"graph-guides":t=this._messages.guides??"";break;case"palette":t=this._messages.format??"";break;case"text":t=this._messages.general??"";break;default:t="";break}this.tooltip=x(c`<calcite-tooltip style=${_({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${s} open placement=top>${t}</calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){ae(this.tooltip)}renderViewCharts(){let e=he({modelList:this.modelList,layerList:this.layerList,activeLayerId:this.activeLayerId,disableEditing:this.disableEditing});return ie(e,s=>s.id,s=>c`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId!==void 0} .modelList=${ce(this.modelList,s.id.toString(),b(s.type)?X:this.supportedChartTypes)} .selectedChartId=${this.selectedChartId??""} .layer=${s} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`)}render(){return this.close?null:c`<calcite-flow>${w("charts-list",c`<calcite-flow-item .selected=${this.panelNumber===0||this.disableEditing} .heading=${this.headerTitle??this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${A(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber>=1&&!this.disableEditing?this.renderTabs():null}</calcite-flow>`}renderTabs(){let e=this.getModel(this.selectedChartId);return w("chart-edit",c`<calcite-flow-item .selected=${this.panelNumber>=1&&!this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel??n.Data]} .description=${this.currentChartTypeText!==""&&this._messages.pageFlowTitle!==void 0?ne(this._messages.pageFlowTitle,{chartName:e?.titleText??this.currentChartTypeText,layerName:e?.layer?.title??""}):""}>${e?.chartType!==void 0?c`<calcite-action-bar class=${h(d.tabBar)} layout=horizontal expand-disabled><calcite-action class=${h(d.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel===n.Data||this.selectedPanel===void 0} @click=${()=>{this.selectedPanel=n.Data}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType===o.BarSeries?c`<calcite-action class=${h(d.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.LineSeries?c`<calcite-action class=${h(d.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.BoxPlotSeries?c`<calcite-action class=${h(d.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel===n.Series} @click=${()=>{this.selectedPanel=n.Series}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series??""}></calcite-action>`:null}${e?.chartType===o.PieSeries?c`<calcite-action class=${h(d.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel===n.Slices} @click=${()=>{this.selectedPanel=n.Slices}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel===n.Axes} @click=${()=>{this.selectedPanel=n.Axes}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes??""}></calcite-action>`:null}${e?.chartType!==o.PieSeries&&e?.chartType!==o.HeatSeries?c`<calcite-action class=${h(d.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel===n.Guides} @click=${()=>{this.selectedPanel=n.Guides}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides??""}></calcite-action>`:null}<calcite-action class=${h(d.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel===n.Format} @click=${()=>{this.selectedPanel=n.Format}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format??""}></calcite-action><calcite-action class=${h(d.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel===n.General} @click=${()=>{this.selectedPanel=n.General}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general??""}></calcite-action></calcite-action-bar>`:null}${this.renderChartUIComponent()}</calcite-flow-item>`)}renderChartUIComponent(){let e=this.getModel(this.selectedChartId),s=e?.layer,t=null;if(e!==void 0&&!this.disableEditing)switch(e?.chartType){case o.BarSeries:t=c`<arcgis-charts-config-bar-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;break;case o.LineSeries:t=c`<arcgis-charts-config-line-chart class=${h(d.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;break;case o.PieSeries:t=c`<arcgis-charts-config-pie-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .chartData=${this.chartData} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;break;case o.HistogramSeries:t=c`<arcgis-charts-config-histogram class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;break;case o.ScatterSeries:t=c`<arcgis-charts-config-scatter-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;break;case o.BoxPlotSeries:t=c`<arcgis-charts-config-box-plot class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;break;case o.HeatSeries:t=c`<arcgis-charts-config-heat-chart class=${h(d.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel??n.Data}></arcgis-charts-config-heat-chart>`;break}return t}};z("arcgis-charts-config-create-flow",k);return k},"intl",a,d,e,g,i,j,k,l,m,p,r,s,t,u,v)