// ==UserScript== // @name Pixel canvas overlay // @namespace http://tampermonkey.net/ // @version 2025-02-17 // @description Scripts renders pixelated overlays over the tile map! // @author 0xa663, Terncode // @match https://pixelcanvas.io/* // @icon https://www.google.com/s2/favicons?sz=64&domain=pixelcanvas.io // @grant none // ==/UserScript== (()=>{var Xr1=Object.create;var $m=Object.defineProperty;var Zr1=Object.getOwnPropertyDescriptor;var Qr1=Object.getOwnPropertyNames;var Jr1=Object.getPrototypeOf,en1=Object.prototype.hasOwnProperty;var Kn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var X=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tn1=(e,t)=>{for(var r in t)$m(e,r,{get:t[r],enumerable:!0})},rn1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Qr1(t))!en1.call(e,a)&&a!==r&&$m(e,a,{get:()=>t[a],enumerable:!(n=Zr1(t,a))||n.enumerable});return e};var p1=(e,t,r)=>(r=e!=null?Xr1(Jr1(e)):{},rn1(t||!e||!e.__esModule?$m(r,"default",{value:e,enumerable:!0}):r,e));var Qo=X((G6,Zo)=>{(function(){var e,t="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",i="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",o=500,l="__lodash_placeholder__",f=1,h=2,p=4,d=1,m=2,y=1,g=2,z=4,x=8,b=16,w=32,A=64,M=128,H=256,V=512,T=30,I="...",L=800,N=16,C=1,q=2,J=3,$=1/0,E=9007199254740991,O=17976931348623157e292,B=NaN,k=4294967295,R=k-1,j=k>>>1,Y=[["ary",M],["bind",y],["bindKey",g],["curry",x],["curryRight",b],["flip",V],["partial",w],["partialRight",A],["rearg",H]],Z="[object Arguments]",h1="[object Array]",S1="[object AsyncFunction]",v1="[object Boolean]",z1="[object Date]",q1="[object DOMException]",f1="[object Error]",D1="[object Function]",A1="[object GeneratorFunction]",S="[object Map]",u1="[object Number]",c1="[object Null]",G="[object Object]",W="[object Promise]",r1="[object Proxy]",g1="[object RegExp]",m1="[object Set]",s1="[object String]",H1="[object Symbol]",O1="[object Undefined]",_1="[object WeakMap]",R1="[object WeakSet]",l2="[object ArrayBuffer]",n2="[object DataView]",ie="[object Float32Array]",Kt="[object Float64Array]",Re="[object Int8Array]",Ar="[object Int16Array]",j2="[object Int32Array]",dn="[object Uint8Array]",Fn="[object Uint8ClampedArray]",ht="[object Uint16Array]",jn="[object Uint32Array]",Vo=/\b__p \+= '';/g,Ao=/\b(__p \+=) '' \+/g,Ua=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g4=/&(?:amp|lt|gt|quot|#39);/g,Un=/[&<>"']/g,Vt=RegExp(g4.source),yd=RegExp(Un.source),xd=/<%-([\s\S]+?)%>/g,g5=/<%([\s\S]+?)%>/g,y5=/<%=([\s\S]+?)%>/g,bd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wd=/^\w*$/,zd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Eo=/[\\^$.*+?()[\]{}|]/g,Md=RegExp(Eo.source),ko=/^\s+/,Cd=/\s/,Hd=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_d=/\{\n\/\* \[wrapped with (.+)\] \*/,x5=/,? & /,Sd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ld=/[()=,{}\[\]\/\s]/,Vd=/\\(\\)?/g,Ad=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,b5=/\w*$/,Ed=/^[-+]0x[0-9a-f]+$/i,kd=/^0b[01]+$/i,Nd=/^\[object .+?Constructor\]$/,Od=/^0o[0-7]+$/i,Td=/^(?:0|[1-9]\d*)$/,Pd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,V6=/($^)/,Id=/['\n\r\u2028\u2029\\]/g,A6="\\ud800-\\udfff",Rd="\\u0300-\\u036f",w5="\\ufe20-\\ufe2f",qa="\\u20d0-\\u20ff",No=Rd+w5+qa,S3="\\u2700-\\u27bf",z5="a-z\\xdf-\\xf6\\xf8-\\xff",E6="\\xac\\xb1\\xd7\\xf7",Oo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Dd="\\u2000-\\u206f",Bd=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",k6="A-Z\\xc0-\\xd6\\xd8-\\xde",M5="\\ufe0e\\ufe0f",C5=E6+Oo+Dd+Bd,F="['\u2019]",e1="["+A6+"]",K="["+C5+"]",a1="["+No+"]",l1="\\d+",n1="["+S3+"]",w1="["+z5+"]",V1="[^"+A6+C5+l1+S3+z5+k6+"]",E1="\\ud83c[\\udffb-\\udfff]",N1="(?:"+a1+"|"+E1+")",T1="[^"+A6+"]",W1="(?:\\ud83c[\\udde6-\\uddff]){2}",s2="[\\ud800-\\udbff][\\udc00-\\udfff]",m2="["+k6+"]",_2="\\u200d",ue="(?:"+w1+"|"+V1+")",he="(?:"+m2+"|"+V1+")",At="(?:"+F+"(?:d|ll|m|re|s|t|ve))?",y4="(?:"+F+"(?:D|LL|M|RE|S|T|VE))?",N6=N1+"?",H5="["+M5+"]?",To="(?:"+_2+"(?:"+[T1,W1,s2].join("|")+")"+H5+N6+")*",oH="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_5=H5+N6+To,S5="(?:"+[n1,W1,s2].join("|")+")"+_5,aQ="(?:"+[T1+a1+"?",a1,W1,s2,e1].join("|")+")",iQ=RegExp(F,"g"),cQ=RegExp(a1,"g"),jd=RegExp(E1+"(?="+E1+")|"+aQ+_5,"g"),oQ=RegExp([m2+"?"+w1+"+"+At+"(?="+[K,m2,"$"].join("|")+")",he+"+"+y4+"(?="+[K,m2+ue,"$"].join("|")+")",m2+"?"+ue+"+"+At,m2+"+"+y4,Fd,oH,l1,S5].join("|"),"g"),sQ=RegExp("["+_2+A6+No+M5+"]"),lQ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fQ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],uQ=-1,J2={};J2[ie]=J2[Kt]=J2[Re]=J2[Ar]=J2[j2]=J2[dn]=J2[Fn]=J2[ht]=J2[jn]=!0,J2[Z]=J2[h1]=J2[l2]=J2[v1]=J2[n2]=J2[z1]=J2[f1]=J2[D1]=J2[S]=J2[u1]=J2[G]=J2[g1]=J2[m1]=J2[s1]=J2[_1]=!1;var $2={};$2[Z]=$2[h1]=$2[l2]=$2[n2]=$2[v1]=$2[z1]=$2[ie]=$2[Kt]=$2[Re]=$2[Ar]=$2[j2]=$2[S]=$2[u1]=$2[G]=$2[g1]=$2[m1]=$2[s1]=$2[H1]=$2[dn]=$2[Fn]=$2[ht]=$2[jn]=!0,$2[f1]=$2[D1]=$2[_1]=!1;var hQ={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},pQ={"&":"&","<":"<",">":">",'"':""","'":"'"},dQ={"&":"&","<":"<",">":">",""":'"',"'":"'"},mQ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vQ=parseFloat,gQ=parseInt,sH=typeof global=="object"&&global&&global.Object===Object&&global,yQ=typeof self=="object"&&self&&self.Object===Object&&self,$e=sH||yQ||Function("return this")(),Ud=typeof G6=="object"&&G6&&!G6.nodeType&&G6,Wa=Ud&&typeof Zo=="object"&&Zo&&!Zo.nodeType&&Zo,lH=Wa&&Wa.exports===Ud,qd=lH&&sH.process,Er=function(){try{var i1=Wa&&Wa.require&&Wa.require("util").types;return i1||qd&&qd.binding&&qd.binding("util")}catch{}}(),fH=Er&&Er.isArrayBuffer,uH=Er&&Er.isDate,hH=Er&&Er.isMap,pH=Er&&Er.isRegExp,dH=Er&&Er.isSet,mH=Er&&Er.isTypedArray;function lr(i1,b1,d1){switch(d1.length){case 0:return i1.call(b1);case 1:return i1.call(b1,d1[0]);case 2:return i1.call(b1,d1[0],d1[1]);case 3:return i1.call(b1,d1[0],d1[1],d1[2])}return i1.apply(b1,d1)}function xQ(i1,b1,d1,F1){for(var a2=-1,E2=i1==null?0:i1.length;++a2-1}function Wd(i1,b1,d1){for(var F1=-1,a2=i1==null?0:i1.length;++F1-1;);return d1}function MH(i1,b1){for(var d1=i1.length;d1--&&O6(b1,i1[d1],0)>-1;);return d1}function LQ(i1,b1){for(var d1=i1.length,F1=0;d1--;)i1[d1]===b1&&++F1;return F1}var VQ=Yd(hQ),AQ=Yd(pQ);function EQ(i1){return"\\"+mQ[i1]}function kQ(i1,b1){return i1==null?e:i1[b1]}function T6(i1){return sQ.test(i1)}function NQ(i1){return lQ.test(i1)}function OQ(i1){for(var b1,d1=[];!(b1=i1.next()).done;)d1.push(b1.value);return d1}function Jd(i1){var b1=-1,d1=Array(i1.size);return i1.forEach(function(F1,a2){d1[++b1]=[a2,F1]}),d1}function CH(i1,b1){return function(d1){return i1(b1(d1))}}function w4(i1,b1){for(var d1=-1,F1=i1.length,a2=0,E2=[];++d1-1}function wJ(s,u){var v=this.__data__,_=W5(v,s);return _<0?(++this.size,v.push([s,u])):v[_][1]=u,this}L3.prototype.clear=gJ,L3.prototype.delete=yJ,L3.prototype.get=xJ,L3.prototype.has=bJ,L3.prototype.set=wJ;function V3(s){var u=-1,v=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function Tr(s,u,v,_,P,U){var Q,t1=u&f,o1=u&h,M1=u&p;if(v&&(Q=P?v(s,_,P,U):v(s)),Q!==e)return Q;if(!pe(s))return s;var C1=i2(s);if(C1){if(Q=H11(s),!t1)return $t(s,Q)}else{var L1=dt(s),B1=L1==D1||L1==A1;if(L4(s))return c_(s,t1);if(L1==G||L1==Z||B1&&!P){if(Q=o1||B1?{}:H_(s),!t1)return o1?d11(s,IJ(Q,s)):p11(s,PH(Q,s))}else{if(!$2[L1])return P?s:{};Q=_11(s,L1,t1)}}U||(U=new vn);var K1=U.get(s);if(K1)return K1;U.set(s,Q),eS(s)?s.forEach(function(e2){Q.add(Tr(e2,u,v,e2,s,U))}):Q_(s)&&s.forEach(function(e2,v2){Q.set(v2,Tr(e2,u,v,v2,s,U))});var J1=M1?o1?Hm:Cm:o1?Xt:Ye,u2=C1?e:J1(s);return kr(u2||s,function(e2,v2){u2&&(v2=e2,e2=s[v2]),jo(Q,v2,Tr(e2,u,v,v2,s,U))}),Q}function RJ(s){var u=Ye(s);return function(v){return IH(v,s,u)}}function IH(s,u,v){var _=v.length;if(s==null)return!_;for(s=q2(s);_--;){var P=v[_],U=u[P],Q=s[P];if(Q===e&&!(P in s)||!U(Q))return!1}return!0}function RH(s,u,v){if(typeof s!="function")throw new Nr(a);return Yo(function(){s.apply(e,v)},u)}function Uo(s,u,v,_){var P=-1,U=L5,Q=!0,t1=s.length,o1=[],M1=u.length;if(!t1)return o1;v&&(u=ce(u,fr(v))),_?(U=Wd,Q=!1):u.length>=r&&(U=Po,Q=!1,u=new $a(u));e:for(;++PP?0:P+v),_=_===e||_>P?P:f2(_),_<0&&(_+=P),_=v>_?0:rS(_);v<_;)s[v++]=u;return s}function BH(s,u){var v=[];return C4(s,function(_,P,U){u(_,P,U)&&v.push(_)}),v}function nt(s,u,v,_,P){var U=-1,Q=s.length;for(v||(v=L11),P||(P=[]);++U0&&v(t1)?u>1?nt(t1,u-1,v,_,P):b4(P,t1):_||(P[P.length]=t1)}return P}var cm=h_(),FH=h_(!0);function qn(s,u){return s&&cm(s,u,Ye)}function om(s,u){return s&&FH(s,u,Ye)}function K5(s,u){return x4(u,function(v){return O3(s[v])})}function Xa(s,u){u=_4(u,s);for(var v=0,_=u.length;s!=null&&v<_;)s=s[Gn(u[v++])];return v&&v==_?s:e}function jH(s,u,v){var _=u(s);return i2(s)?_:b4(_,v(s))}function Et(s){return s==null?s===e?O1:c1:Ga&&Ga in q2(s)?z11(s):T11(s)}function sm(s,u){return s>u}function FJ(s,u){return s!=null&&R2.call(s,u)}function jJ(s,u){return s!=null&&u in q2(s)}function UJ(s,u,v){return s>=pt(u,v)&&s=120&&C1.length>=120)?new $a(Q&&C1):e}C1=s[0];var L1=-1,B1=t1[0];e:for(;++L1-1;)t1!==s&&R5.call(t1,o1,1),R5.call(s,o1,1);return s}function QH(s,u){for(var v=s?u.length:0,_=v-1;v--;){var P=u[v];if(v==_||P!==U){var U=P;N3(P)?R5.call(s,P,1):gm(s,P)}}return s}function dm(s,u){return s+F5(kH()*(u-s+1))}function r11(s,u,v,_){for(var P=-1,U=Be(B5((u-s)/(v||1)),0),Q=d1(U);U--;)Q[_?U:++P]=s,s+=v;return Q}function mm(s,u){var v="";if(!s||u<1||u>E)return v;do u%2&&(v+=s),u=F5(u/2),u&&(s+=s);while(u);return v}function h2(s,u){return km(L_(s,u,Zt),s+"")}function n11(s){return TH(W6(s))}function a11(s,u){var v=W6(s);return af(v,Ya(u,0,v.length))}function Go(s,u,v,_){if(!pe(s))return s;u=_4(u,s);for(var P=-1,U=u.length,Q=U-1,t1=s;t1!=null&&++PP?0:P+u),v=v>P?P:v,v<0&&(v+=P),P=u>v?0:v-u>>>0,u>>>=0;for(var U=d1(P);++_>>1,Q=s[U];Q!==null&&!hr(Q)&&(v?Q<=u:Q=r){var M1=u?null:y11(s);if(M1)return A5(M1);Q=!1,P=Po,o1=new $a}else o1=u?[]:t1;e:for(;++_=_?s:Pr(s,u,v)}var i_=YQ||function(s){return $e.clearTimeout(s)};function c_(s,u){if(u)return s.slice();var v=s.length,_=SH?SH(v):new s.constructor(v);return s.copy(_),_}function wm(s){var u=new s.constructor(s.byteLength);return new P5(u).set(new P5(s)),u}function l11(s,u){var v=u?wm(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.byteLength)}function f11(s){var u=new s.constructor(s.source,b5.exec(s));return u.lastIndex=s.lastIndex,u}function u11(s){return Fo?q2(Fo.call(s)):{}}function o_(s,u){var v=u?wm(s.buffer):s.buffer;return new s.constructor(v,s.byteOffset,s.length)}function s_(s,u){if(s!==u){var v=s!==e,_=s===null,P=s===s,U=hr(s),Q=u!==e,t1=u===null,o1=u===u,M1=hr(u);if(!t1&&!M1&&!U&&s>u||U&&Q&&o1&&!t1&&!M1||_&&Q&&o1||!v&&o1||!P)return 1;if(!_&&!U&&!M1&&s=t1)return o1;var M1=v[_];return o1*(M1=="desc"?-1:1)}}return s.index-u.index}function l_(s,u,v,_){for(var P=-1,U=s.length,Q=v.length,t1=-1,o1=u.length,M1=Be(U-Q,0),C1=d1(o1+M1),L1=!_;++t11?v[P-1]:e,Q=P>2?v[2]:e;for(U=s.length>3&&typeof U=="function"?(P--,U):e,Q&&kt(v[0],v[1],Q)&&(U=P<3?e:U,P=1),u=q2(u);++_-1?P[U?u[Q]:Q]:e}}function m_(s){return k3(function(u){var v=u.length,_=v,P=Or.prototype.thru;for(s&&u.reverse();_--;){var U=u[_];if(typeof U!="function")throw new Nr(a);if(P&&!Q&&rf(U)=="wrapper")var Q=new Or([],!0)}for(_=Q?_:v;++_1&&x2.reverse(),C1&&o1t1))return!1;var M1=U.get(s),C1=U.get(u);if(M1&&C1)return M1==u&&C1==s;var L1=-1,B1=!0,K1=v&m?new $a:e;for(U.set(s,u),U.set(u,s);++L11?"& ":"")+u[_],u=u.join(v>2?", ":" "),s.replace(Hd,`{ /* [wrapped with `+u+`] */ `)}function L11(s){return i2(s)||Ja(s)||!!(AH&&s&&s[AH])}function N3(s,u){var v=typeof s;return u=u??E,!!u&&(v=="number"||v!="symbol"&&Td.test(s))&&s>-1&&s%1==0&&s0){if(++u>=L)return arguments[0]}else u=0;return s.apply(e,arguments)}}function af(s,u){var v=-1,_=s.length,P=_-1;for(u=u===e?_:u;++v1?s[u-1]:e;return v=typeof v=="function"?(s.pop(),v):e,B_(s,v)});function F_(s){var u=D(s);return u.__chain__=!0,u}function D21(s,u){return u(s),s}function cf(s,u){return u(s)}var B21=k3(function(s){var u=s.length,v=u?s[0]:0,_=this.__wrapped__,P=function(U){return im(U,s)};return u>1||this.__actions__.length||!(_ instanceof g2)||!N3(v)?this.thru(P):(_=_.slice(v,+v+(u?1:0)),_.__actions__.push({func:cf,args:[P],thisArg:e}),new Or(_,this.__chain__).thru(function(U){return u&&!U.length&&U.push(e),U}))});function F21(){return F_(this)}function j21(){return new Or(this.value(),this.__chain__)}function U21(){this.__values__===e&&(this.__values__=tS(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function q21(){return this}function W21(s){for(var u,v=this;v instanceof q5;){var _=O_(v);_.__index__=0,_.__values__=e,u?P.__wrapped__=_:u=_;var P=_;v=v.__wrapped__}return P.__wrapped__=s,u}function G21(){var s=this.__wrapped__;if(s instanceof g2){var u=s;return this.__actions__.length&&(u=new g2(this)),u=u.reverse(),u.__actions__.push({func:cf,args:[Nm],thisArg:e}),new Or(u,this.__chain__)}return this.thru(Nm)}function K21(){return n_(this.__wrapped__,this.__actions__)}var $21=Z5(function(s,u,v){R2.call(s,v)?++s[v]:A3(s,v,1)});function Y21(s,u,v){var _=i2(s)?vH:DJ;return v&&kt(s,u,v)&&(u=e),_(s,Q1(u,3))}function X21(s,u){var v=i2(s)?x4:BH;return v(s,Q1(u,3))}var Z21=d_(T_),Q21=d_(P_);function J21(s,u){return nt(of(s,u),1)}function ee1(s,u){return nt(of(s,u),$)}function te1(s,u,v){return v=v===e?1:f2(v),nt(of(s,u),v)}function j_(s,u){var v=i2(s)?kr:C4;return v(s,Q1(u,3))}function U_(s,u){var v=i2(s)?bQ:DH;return v(s,Q1(u,3))}var re1=Z5(function(s,u,v){R2.call(s,v)?s[v].push(u):A3(s,v,[u])});function ne1(s,u,v,_){s=Yt(s)?s:W6(s),v=v&&!_?f2(v):0;var P=s.length;return v<0&&(v=Be(P+v,0)),hf(s)?v<=P&&s.indexOf(u,v)>-1:!!P&&O6(s,u,v)>-1}var ae1=h2(function(s,u,v){var _=-1,P=typeof u=="function",U=Yt(s)?d1(s.length):[];return C4(s,function(Q){U[++_]=P?lr(u,Q,v):qo(Q,u,v)}),U}),ie1=Z5(function(s,u,v){A3(s,v,u)});function of(s,u){var v=i2(s)?ce:GH;return v(s,Q1(u,3))}function ce1(s,u,v,_){return s==null?[]:(i2(u)||(u=u==null?[]:[u]),v=_?e:v,i2(v)||(v=v==null?[]:[v]),XH(s,u,v))}var oe1=Z5(function(s,u,v){s[v?0:1].push(u)},function(){return[[],[]]});function se1(s,u,v){var _=i2(s)?Gd:bH,P=arguments.length<3;return _(s,Q1(u,4),v,P,C4)}function le1(s,u,v){var _=i2(s)?wQ:bH,P=arguments.length<3;return _(s,Q1(u,4),v,P,DH)}function fe1(s,u){var v=i2(s)?x4:BH;return v(s,ff(Q1(u,3)))}function ue1(s){var u=i2(s)?TH:n11;return u(s)}function he1(s,u,v){(v?kt(s,u,v):u===e)?u=1:u=f2(u);var _=i2(s)?OJ:a11;return _(s,u)}function pe1(s){var u=i2(s)?TJ:c11;return u(s)}function de1(s){if(s==null)return 0;if(Yt(s))return hf(s)?P6(s):s.length;var u=dt(s);return u==S||u==m1?s.size:um(s).length}function me1(s,u,v){var _=i2(s)?Kd:o11;return v&&kt(s,u,v)&&(u=e),_(s,Q1(u,3))}var ve1=h2(function(s,u){if(s==null)return[];var v=u.length;return v>1&&kt(s,u[0],u[1])?u=[]:v>2&&kt(u[0],u[1],u[2])&&(u=[u[0]]),XH(s,nt(u,1),[])}),sf=XQ||function(){return $e.Date.now()};function ge1(s,u){if(typeof u!="function")throw new Nr(a);return s=f2(s),function(){if(--s<1)return u.apply(this,arguments)}}function q_(s,u,v){return u=v?e:u,u=s&&u==null?s.length:u,E3(s,M,e,e,e,e,u)}function W_(s,u){var v;if(typeof u!="function")throw new Nr(a);return s=f2(s),function(){return--s>0&&(v=u.apply(this,arguments)),s<=1&&(u=e),v}}var Tm=h2(function(s,u,v){var _=y;if(v.length){var P=w4(v,U6(Tm));_|=w}return E3(s,_,u,v,P)}),G_=h2(function(s,u,v){var _=y|g;if(v.length){var P=w4(v,U6(G_));_|=w}return E3(u,_,s,v,P)});function K_(s,u,v){u=v?e:u;var _=E3(s,x,e,e,e,e,e,u);return _.placeholder=K_.placeholder,_}function $_(s,u,v){u=v?e:u;var _=E3(s,b,e,e,e,e,e,u);return _.placeholder=$_.placeholder,_}function Y_(s,u,v){var _,P,U,Q,t1,o1,M1=0,C1=!1,L1=!1,B1=!0;if(typeof s!="function")throw new Nr(a);u=Rr(u)||0,pe(v)&&(C1=!!v.leading,L1="maxWait"in v,U=L1?Be(Rr(v.maxWait)||0,u):U,B1="trailing"in v?!!v.trailing:B1);function K1(Le){var yn=_,P3=P;return _=P=e,M1=Le,Q=s.apply(P3,yn),Q}function J1(Le){return M1=Le,t1=Yo(v2,u),C1?K1(Le):Q}function u2(Le){var yn=Le-o1,P3=Le-M1,dS=u-yn;return L1?pt(dS,U-P3):dS}function e2(Le){var yn=Le-o1,P3=Le-M1;return o1===e||yn>=u||yn<0||L1&&P3>=U}function v2(){var Le=sf();if(e2(Le))return x2(Le);t1=Yo(v2,u2(Le))}function x2(Le){return t1=e,B1&&_?K1(Le):(_=P=e,Q)}function pr(){t1!==e&&i_(t1),M1=0,_=o1=P=t1=e}function Nt(){return t1===e?Q:x2(sf())}function dr(){var Le=sf(),yn=e2(Le);if(_=arguments,P=this,o1=Le,yn){if(t1===e)return J1(o1);if(L1)return i_(t1),t1=Yo(v2,u),K1(o1)}return t1===e&&(t1=Yo(v2,u)),Q}return dr.cancel=pr,dr.flush=Nt,dr}var ye1=h2(function(s,u){return RH(s,1,u)}),xe1=h2(function(s,u,v){return RH(s,Rr(u)||0,v)});function be1(s){return E3(s,V)}function lf(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Nr(a);var v=function(){var _=arguments,P=u?u.apply(this,_):_[0],U=v.cache;if(U.has(P))return U.get(P);var Q=s.apply(this,_);return v.cache=U.set(P,Q)||U,Q};return v.cache=new(lf.Cache||V3),v}lf.Cache=V3;function ff(s){if(typeof s!="function")throw new Nr(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function we1(s){return W_(2,s)}var ze1=s11(function(s,u){u=u.length==1&&i2(u[0])?ce(u[0],fr(Q1())):ce(nt(u,1),fr(Q1()));var v=u.length;return h2(function(_){for(var P=-1,U=pt(_.length,v);++P=u}),Ja=UH(function(){return arguments}())?UH:function(s){return ye(s)&&R2.call(s,"callee")&&!VH.call(s,"callee")},i2=d1.isArray,Ie1=fH?fr(fH):WJ;function Yt(s){return s!=null&&uf(s.length)&&!O3(s)}function Se(s){return ye(s)&&Yt(s)}function Re1(s){return s===!0||s===!1||ye(s)&&Et(s)==v1}var L4=QQ||Km,De1=uH?fr(uH):GJ;function Be1(s){return ye(s)&&s.nodeType===1&&!Xo(s)}function Fe1(s){if(s==null)return!0;if(Yt(s)&&(i2(s)||typeof s=="string"||typeof s.splice=="function"||L4(s)||q6(s)||Ja(s)))return!s.length;var u=dt(s);if(u==S||u==m1)return!s.size;if($o(s))return!um(s).length;for(var v in s)if(R2.call(s,v))return!1;return!0}function je1(s,u){return Wo(s,u)}function Ue1(s,u,v){v=typeof v=="function"?v:e;var _=v?v(s,u):e;return _===e?Wo(s,u,e,v):!!_}function Im(s){if(!ye(s))return!1;var u=Et(s);return u==f1||u==q1||typeof s.message=="string"&&typeof s.name=="string"&&!Xo(s)}function qe1(s){return typeof s=="number"&&EH(s)}function O3(s){if(!pe(s))return!1;var u=Et(s);return u==D1||u==A1||u==S1||u==r1}function Z_(s){return typeof s=="number"&&s==f2(s)}function uf(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=E}function pe(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function ye(s){return s!=null&&typeof s=="object"}var Q_=hH?fr(hH):$J;function We1(s,u){return s===u||fm(s,u,Sm(u))}function Ge1(s,u,v){return v=typeof v=="function"?v:e,fm(s,u,Sm(u),v)}function Ke1(s){return J_(s)&&s!=+s}function $e1(s){if(E11(s))throw new a2(n);return qH(s)}function Ye1(s){return s===null}function Xe1(s){return s==null}function J_(s){return typeof s=="number"||ye(s)&&Et(s)==u1}function Xo(s){if(!ye(s)||Et(s)!=G)return!1;var u=I5(s);if(u===null)return!0;var v=R2.call(u,"constructor")&&u.constructor;return typeof v=="function"&&v instanceof v&&N5.call(v)==GQ}var Rm=pH?fr(pH):YJ;function Ze1(s){return Z_(s)&&s>=-E&&s<=E}var eS=dH?fr(dH):XJ;function hf(s){return typeof s=="string"||!i2(s)&&ye(s)&&Et(s)==s1}function hr(s){return typeof s=="symbol"||ye(s)&&Et(s)==H1}var q6=mH?fr(mH):ZJ;function Qe1(s){return s===e}function Je1(s){return ye(s)&&dt(s)==_1}function et1(s){return ye(s)&&Et(s)==R1}var tt1=tf(hm),rt1=tf(function(s,u){return s<=u});function tS(s){if(!s)return[];if(Yt(s))return hf(s)?mn(s):$t(s);if(Io&&s[Io])return OQ(s[Io]());var u=dt(s),v=u==S?Jd:u==m1?A5:W6;return v(s)}function T3(s){if(!s)return s===0?s:0;if(s=Rr(s),s===$||s===-$){var u=s<0?-1:1;return u*O}return s===s?s:0}function f2(s){var u=T3(s),v=u%1;return u===u?v?u-v:u:0}function rS(s){return s?Ya(f2(s),0,k):0}function Rr(s){if(typeof s=="number")return s;if(hr(s))return B;if(pe(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=pe(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=wH(s);var v=kd.test(s);return v||Od.test(s)?gQ(s.slice(2),v?2:8):Ed.test(s)?B:+s}function nS(s){return Wn(s,Xt(s))}function nt1(s){return s?Ya(f2(s),-E,E):s===0?s:0}function O2(s){return s==null?"":ur(s)}var at1=F6(function(s,u){if($o(u)||Yt(u)){Wn(u,Ye(u),s);return}for(var v in u)R2.call(u,v)&&jo(s,v,u[v])}),aS=F6(function(s,u){Wn(u,Xt(u),s)}),pf=F6(function(s,u,v,_){Wn(u,Xt(u),s,_)}),it1=F6(function(s,u,v,_){Wn(u,Ye(u),s,_)}),ct1=k3(im);function ot1(s,u){var v=B6(s);return u==null?v:PH(v,u)}var st1=h2(function(s,u){s=q2(s);var v=-1,_=u.length,P=_>2?u[2]:e;for(P&&kt(u[0],u[1],P)&&(_=1);++v<_;)for(var U=u[v],Q=Xt(U),t1=-1,o1=Q.length;++t11),U}),Wn(s,Hm(s),v),_&&(v=Tr(v,f|h|p,x11));for(var P=u.length;P--;)gm(v,u[P]);return v});function _t1(s,u){return cS(s,ff(Q1(u)))}var St1=k3(function(s,u){return s==null?{}:e11(s,u)});function cS(s,u){if(s==null)return{};var v=ce(Hm(s),function(_){return[_]});return u=Q1(u),ZH(s,v,function(_,P){return u(_,P[0])})}function Lt1(s,u,v){u=_4(u,s);var _=-1,P=u.length;for(P||(P=1,s=e);++_u){var _=s;s=u,u=_}if(v||s%1||u%1){var P=kH();return pt(s+P*(u-s+vQ("1e-"+((P+"").length-1))),u)}return dm(s,u)}var Dt1=j6(function(s,u,v){return u=u.toLowerCase(),s+(v?lS(u):u)});function lS(s){return Fm(O2(s).toLowerCase())}function fS(s){return s=O2(s),s&&s.replace(Pd,VQ).replace(cQ,"")}function Bt1(s,u,v){s=O2(s),u=ur(u);var _=s.length;v=v===e?_:Ya(f2(v),0,_);var P=v;return v-=u.length,v>=0&&s.slice(v,P)==u}function Ft1(s){return s=O2(s),s&&yd.test(s)?s.replace(Un,AQ):s}function jt1(s){return s=O2(s),s&&Md.test(s)?s.replace(Eo,"\\$&"):s}var Ut1=j6(function(s,u,v){return s+(v?"-":"")+u.toLowerCase()}),qt1=j6(function(s,u,v){return s+(v?" ":"")+u.toLowerCase()}),Wt1=p_("toLowerCase");function Gt1(s,u,v){s=O2(s),u=f2(u);var _=u?P6(s):0;if(!u||_>=u)return s;var P=(u-_)/2;return ef(F5(P),v)+s+ef(B5(P),v)}function Kt1(s,u,v){s=O2(s),u=f2(u);var _=u?P6(s):0;return u&&_>>0,v?(s=O2(s),s&&(typeof u=="string"||u!=null&&!Rm(u))&&(u=ur(u),!u&&T6(s))?S4(mn(s),0,v):s.split(u,v)):[]}var er1=j6(function(s,u,v){return s+(v?" ":"")+Fm(u)});function tr1(s,u,v){return s=O2(s),v=v==null?0:Ya(f2(v),0,s.length),u=ur(u),s.slice(v,v+u.length)==u}function rr1(s,u,v){var _=D.templateSettings;v&&kt(s,u,v)&&(u=e),s=O2(s),u=pf({},u,_,b_);var P=pf({},u.imports,_.imports,b_),U=Ye(P),Q=Qd(P,U),t1,o1,M1=0,C1=u.interpolate||V6,L1="__p += '",B1=em((u.escape||V6).source+"|"+C1.source+"|"+(C1===y5?Ad:V6).source+"|"+(u.evaluate||V6).source+"|$","g"),K1="//# sourceURL="+(R2.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++uQ+"]")+` `;s.replace(B1,function(e2,v2,x2,pr,Nt,dr){return x2||(x2=pr),L1+=s.slice(M1,dr).replace(Id,EQ),v2&&(t1=!0,L1+=`' + __e(`+v2+`) + '`),Nt&&(o1=!0,L1+=`'; `+Nt+`; __p += '`),x2&&(L1+=`' + ((__t = (`+x2+`)) == null ? '' : __t) + '`),M1=dr+e2.length,e2}),L1+=`'; `;var J1=R2.call(u,"variable")&&u.variable;if(!J1)L1=`with (obj) { `+L1+` } `;else if(Ld.test(J1))throw new a2(i);L1=(o1?L1.replace(Vo,""):L1).replace(Ao,"$1").replace(Ua,"$1;"),L1="function("+(J1||"obj")+`) { `+(J1?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(t1?", __e = _.escape":"")+(o1?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+L1+`return __p }`;var u2=hS(function(){return E2(U,K1+"return "+L1).apply(e,Q)});if(u2.source=L1,Im(u2))throw u2;return u2}function nr1(s){return O2(s).toLowerCase()}function ar1(s){return O2(s).toUpperCase()}function ir1(s,u,v){if(s=O2(s),s&&(v||u===e))return wH(s);if(!s||!(u=ur(u)))return s;var _=mn(s),P=mn(u),U=zH(_,P),Q=MH(_,P)+1;return S4(_,U,Q).join("")}function cr1(s,u,v){if(s=O2(s),s&&(v||u===e))return s.slice(0,HH(s)+1);if(!s||!(u=ur(u)))return s;var _=mn(s),P=MH(_,mn(u))+1;return S4(_,0,P).join("")}function or1(s,u,v){if(s=O2(s),s&&(v||u===e))return s.replace(ko,"");if(!s||!(u=ur(u)))return s;var _=mn(s),P=zH(_,mn(u));return S4(_,P).join("")}function sr1(s,u){var v=T,_=I;if(pe(u)){var P="separator"in u?u.separator:P;v="length"in u?f2(u.length):v,_="omission"in u?ur(u.omission):_}s=O2(s);var U=s.length;if(T6(s)){var Q=mn(s);U=Q.length}if(v>=U)return s;var t1=v-P6(_);if(t1<1)return _;var o1=Q?S4(Q,0,t1).join(""):s.slice(0,t1);if(P===e)return o1+_;if(Q&&(t1+=o1.length-t1),Rm(P)){if(s.slice(t1).search(P)){var M1,C1=o1;for(P.global||(P=em(P.source,O2(b5.exec(P))+"g")),P.lastIndex=0;M1=P.exec(C1);)var L1=M1.index;o1=o1.slice(0,L1===e?t1:L1)}}else if(s.indexOf(ur(P),t1)!=t1){var B1=o1.lastIndexOf(P);B1>-1&&(o1=o1.slice(0,B1))}return o1+_}function lr1(s){return s=O2(s),s&&Vt.test(s)?s.replace(g4,RQ):s}var fr1=j6(function(s,u,v){return s+(v?" ":"")+u.toUpperCase()}),Fm=p_("toUpperCase");function uS(s,u,v){return s=O2(s),u=v?e:u,u===e?NQ(s)?FQ(s):CQ(s):s.match(u)||[]}var hS=h2(function(s,u){try{return lr(s,e,u)}catch(v){return Im(v)?v:new a2(v)}}),ur1=k3(function(s,u){return kr(u,function(v){v=Gn(v),A3(s,v,Tm(s[v],s))}),s});function hr1(s){var u=s==null?0:s.length,v=Q1();return s=u?ce(s,function(_){if(typeof _[1]!="function")throw new Nr(a);return[v(_[0]),_[1]]}):[],h2(function(_){for(var P=-1;++PE)return[];var v=k,_=pt(s,k);u=Q1(u),s-=k;for(var P=Zd(_,u);++v0||u<0)?new g2(v):(s<0?v=v.takeRight(-s):s&&(v=v.drop(s)),u!==e&&(u=f2(u),v=u<0?v.dropRight(-u):v.take(u-s)),v)},g2.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},g2.prototype.toArray=function(){return this.take(k)},qn(g2.prototype,function(s,u){var v=/^(?:filter|find|map|reject)|While$/.test(u),_=/^(?:head|last)$/.test(u),P=D[_?"take"+(u=="last"?"Right":""):u],U=_||/^find/.test(u);P&&(D.prototype[u]=function(){var Q=this.__wrapped__,t1=_?[1]:arguments,o1=Q instanceof g2,M1=t1[0],C1=o1||i2(Q),L1=function(v2){var x2=P.apply(D,b4([v2],t1));return _&&B1?x2[0]:x2};C1&&v&&typeof M1=="function"&&M1.length!=1&&(o1=C1=!1);var B1=this.__chain__,K1=!!this.__actions__.length,J1=U&&!B1,u2=o1&&!K1;if(!U&&C1){Q=u2?Q:new g2(this);var e2=s.apply(Q,t1);return e2.__actions__.push({func:cf,args:[L1],thisArg:e}),new Or(e2,B1)}return J1&&u2?s.apply(this,t1):(e2=this.thru(L1),J1?_?e2.value()[0]:e2.value():e2)})}),kr(["pop","push","shift","sort","splice","unshift"],function(s){var u=E5[s],v=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",_=/^(?:pop|shift)$/.test(s);D.prototype[s]=function(){var P=arguments;if(_&&!this.__chain__){var U=this.value();return u.apply(i2(U)?U:[],P)}return this[v](function(Q){return u.apply(i2(Q)?Q:[],P)})}}),qn(g2.prototype,function(s,u){var v=D[u];if(v){var _=v.name+"";R2.call(D6,_)||(D6[_]=[]),D6[_].push({name:u,func:v})}}),D6[Q5(e,g).name]=[{name:"wrapper",func:e}],g2.prototype.clone=lJ,g2.prototype.reverse=fJ,g2.prototype.value=uJ,D.prototype.at=B21,D.prototype.chain=F21,D.prototype.commit=j21,D.prototype.next=U21,D.prototype.plant=W21,D.prototype.reverse=G21,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=K21,D.prototype.first=D.prototype.head,Io&&(D.prototype[Io]=q21),D},z4=jQ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?($e._=z4,define(function(){return z4})):Wa?((Wa.exports=z4)._=z4,Ud._=z4):$e._=z4}).call(G6)});var Zm=X((Ym,Xm)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Ym<"u"?t():(t(),e.FileSaver={})})(Ym,function(){"use strict";function e(o,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}function t(o,l,f){var h=new XMLHttpRequest;h.open("GET",o),h.responseType="blob",h.onload=function(){c(h.response,l,f)},h.onerror=function(){console.error("could not download file")},h.send()}function r(o){var l=new XMLHttpRequest;l.open("HEAD",o,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function n(o){try{o.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),o.dispatchEvent(l)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,i=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!i?function(o,l,f){var h=a.URL||a.webkitURL,p=document.createElement("a");l=l||o.name||"download",p.download=l,p.rel="noopener",typeof o=="string"?(p.href=o,p.origin===location.origin?n(p):r(p.href)?t(o,l,f):n(p,p.target="_blank")):(p.href=h.createObjectURL(o),setTimeout(function(){h.revokeObjectURL(p.href)},4e4),setTimeout(function(){n(p)},0))}:"msSaveOrOpenBlob"in navigator?function(o,l,f){if(l=l||o.name||"download",typeof o!="string")navigator.msSaveOrOpenBlob(e(o,f),l);else if(r(o))t(o,l,f);else{var h=document.createElement("a");h.href=o,h.target="_blank",setTimeout(function(){n(h)})}}:function(o,l,f,h){if(h=h||open("","_blank"),h&&(h.document.title=h.document.body.innerText="downloading..."),typeof o=="string")return t(o,l,f);var p=o.type==="application/octet-stream",d=/constructor/i.test(a.HTMLElement)||a.safari,m=/CriOS\/[\d]+/.test(navigator.userAgent);if((m||p&&d||i)&&typeof FileReader<"u"){var y=new FileReader;y.onloadend=function(){var x=y.result;x=m?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=x:location=x,h=null},y.readAsDataURL(o)}else{var g=a.URL||a.webkitURL,z=g.createObjectURL(o);h?h.location=z:location.href=z,h=null,setTimeout(function(){g.revokeObjectURL(z)},4e4)}});a.saveAs=c.saveAs=c,typeof Xm<"u"&&(Xm.exports=c)})});var VS=X(y2=>{"use strict";var Jo=Symbol.for("react.element"),nn1=Symbol.for("react.portal"),an1=Symbol.for("react.fragment"),in1=Symbol.for("react.strict_mode"),cn1=Symbol.for("react.profiler"),on1=Symbol.for("react.provider"),sn1=Symbol.for("react.context"),ln1=Symbol.for("react.forward_ref"),fn1=Symbol.for("react.suspense"),un1=Symbol.for("react.memo"),hn1=Symbol.for("react.lazy"),xS=Symbol.iterator;function pn1(e){return e===null||typeof e!="object"?null:(e=xS&&e[xS]||e["@@iterator"],typeof e=="function"?e:null)}var zS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MS=Object.assign,CS={};function K6(e,t,r){this.props=e,this.context=t,this.refs=CS,this.updater=r||zS}K6.prototype.isReactComponent={};K6.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};K6.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function HS(){}HS.prototype=K6.prototype;function Jm(e,t,r){this.props=e,this.context=t,this.refs=CS,this.updater=r||zS}var ev=Jm.prototype=new HS;ev.constructor=Jm;MS(ev,K6.prototype);ev.isPureReactComponent=!0;var bS=Array.isArray,_S=Object.prototype.hasOwnProperty,tv={current:null},SS={key:!0,ref:!0,__self:!0,__source:!0};function LS(e,t,r){var n,a={},i=null,c=null;if(t!=null)for(n in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(i=""+t.key),t)_S.call(t,n)&&!SS.hasOwnProperty(n)&&(a[n]=t[n]);var o=arguments.length-2;if(o===1)a.children=r;else if(1{"use strict";AS.exports=VS()});var kS=X((TL1,ES)=>{ES.exports=function(t,r,n,a){var i=n?n.call(a,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var c=Object.keys(t),o=Object.keys(r);if(c.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),f=0;f{"use strict";function Hv(e,t){var r=e.length;e.push(t);e:for(;0>>1,a=e[n];if(0>>1;nTf(o,r))lTf(f,o)?(e[n]=f,e[l]=r,n=l):(e[n]=o,e[c]=r,n=c);else if(lTf(f,r))e[n]=f,e[l]=r,n=l;else break e}}return t}function Tf(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(_L=performance,Y2.unstable_now=function(){return _L.now()}):(zv=Date,SL=zv.now(),Y2.unstable_now=function(){return zv.now()-SL});var _L,zv,SL,Yn=[],k4=[],r31=1,Fr=null,vt=3,Rf=!1,ai=!1,ss=!1,AL=typeof setTimeout=="function"?setTimeout:null,EL=typeof clearTimeout=="function"?clearTimeout:null,LL=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _v(e){for(var t=bn(k4);t!==null;){if(t.callback===null)If(k4);else if(t.startTime<=e)If(k4),t.sortIndex=t.expirationTime,Hv(Yn,t);else break;t=bn(k4)}}function Sv(e){if(ss=!1,_v(e),!ai)if(bn(Yn)!==null)ai=!0,Vv(Lv);else{var t=bn(k4);t!==null&&Av(Sv,t.startTime-e)}}function Lv(e,t){ai=!1,ss&&(ss=!1,EL(ls),ls=-1),Rf=!0;var r=vt;try{for(_v(t),Fr=bn(Yn);Fr!==null&&(!(Fr.expirationTime>t)||e&&!OL());){var n=Fr.callback;if(typeof n=="function"){Fr.callback=null,vt=Fr.priorityLevel;var a=n(Fr.expirationTime<=t);t=Y2.unstable_now(),typeof a=="function"?Fr.callback=a:Fr===bn(Yn)&&If(Yn),_v(t)}else If(Yn);Fr=bn(Yn)}if(Fr!==null)var i=!0;else{var c=bn(k4);c!==null&&Av(Sv,c.startTime-t),i=!1}return i}finally{Fr=null,vt=r,Rf=!1}}var Df=!1,Pf=null,ls=-1,kL=5,NL=-1;function OL(){return!(Y2.unstable_now()-NLe||125n?(e.sortIndex=r,Hv(k4,e),bn(Yn)===null&&e===bn(k4)&&(ss?(EL(ls),ls=-1):ss=!0,Av(Sv,r-n))):(e.sortIndex=a,Hv(Yn,e),ai||Rf||(ai=!0,Vv(Lv))),e};Y2.unstable_shouldYield=OL;Y2.unstable_wrapCallback=function(e){var t=vt;return function(){var r=vt;vt=t;try{return e.apply(this,arguments)}finally{vt=r}}}});var IL=X((yV1,PL)=>{"use strict";PL.exports=TL()});var UE=X(br=>{"use strict";var qV=Z1(),yr=IL();function k1(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jv=Object.prototype.hasOwnProperty,n31=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,RL={},DL={};function a31(e){return Jv.call(DL,e)?!0:Jv.call(RL,e)?!1:n31.test(e)?DL[e]=!0:(RL[e]=!0,!1)}function i31(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function c31(e,t,r,n){if(t===null||typeof t>"u"||i31(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rt(e,t,r,n,a,i,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=c}var ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ct[e]=new Rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ct[t]=new Rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ct[e]=new Rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ct[e]=new Rt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ct[e]=new Rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ct[e]=new Rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ct[e]=new Rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ct[e]=new Rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ct[e]=new Rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wg=/[\-:]([a-z])/g;function Gg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wg,Gg);ct[t]=new Rt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wg,Gg);ct[t]=new Rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wg,Gg);ct[t]=new Rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ct[e]=new Rt(e,1,!1,e.toLowerCase(),null,!1,!1)});ct.xlinkHref=new Rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ct[e]=new Rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kg(e,t,r,n){var a=ct.hasOwnProperty(t)?ct[t]:null;(a!==null?a.type!==0:n||!(2o||a[c]!==i[o]){var l=` `+a[c].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=c&&0<=o);break}}}finally{kv=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ys(e):""}function o31(e){switch(e.tag){case 5:return ys(e.type);case 16:return ys("Lazy");case 13:return ys("Suspense");case 19:return ys("SuspenseList");case 0:case 2:case 15:return e=Nv(e.type,!1),e;case 11:return e=Nv(e.type.render,!1),e;case 1:return e=Nv(e.type,!0),e;default:return""}}function ng(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c0:return"Fragment";case i0:return"Portal";case eg:return"Profiler";case $g:return"StrictMode";case tg:return"Suspense";case rg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case KV:return(e.displayName||"Context")+".Consumer";case GV:return(e._context.displayName||"Context")+".Provider";case Yg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xg:return t=e.displayName||null,t!==null?t:ng(e.type)||"Memo";case O4:t=e._payload,e=e._init;try{return ng(e(t))}catch{}}return null}function s31(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ng(t);case 8:return t===$g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $4(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YV(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function l31(e){var t=YV(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){n=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(c){n=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ff(e){e._valueTracker||(e._valueTracker=l31(e))}function XV(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=YV(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function m7(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ag(e,t){var r=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function FL(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=$4(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ZV(e,t){t=t.checked,t!=null&&Kg(e,"checked",t,!1)}function ig(e,t){ZV(e,t);var r=$4(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cg(e,t.type,r):t.hasOwnProperty("defaultValue")&&cg(e,t.type,$4(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jL(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function cg(e,t,r){(t!=="number"||m7(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var xs=Array.isArray;function g0(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=jf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ks(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var zs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},f31=["Webkit","ms","Moz","O"];Object.keys(zs).forEach(function(e){f31.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zs[t]=zs[e]})});function tA(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||zs.hasOwnProperty(e)&&zs[e]?(""+t).trim():t+"px"}function rA(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=tA(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var u31=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lg(e,t){if(t){if(u31[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k1(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k1(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k1(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k1(62))}}function fg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ug=null;function Zg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hg=null,y0=null,x0=null;function WL(e){if(e=Xs(e)){if(typeof hg!="function")throw Error(k1(280));var t=e.stateNode;t&&(t=U7(t),hg(e.stateNode,e.type,t))}}function nA(e){y0?x0?x0.push(e):x0=[e]:y0=e}function aA(){if(y0){var e=y0,t=x0;if(x0=y0=null,WL(e),t)for(e=0;e>>=0,e===0?32:31-(z31(e)/M31|0)|0}var Uf=64,qf=4194304;function bs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function x7(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,c=r&268435455;if(c!==0){var o=c&~a;o!==0?n=bs(o):(i&=c,i!==0&&(n=bs(i)))}else c=r&~a,c!==0?n=bs(c):i!==0&&(n=bs(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function $s(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Hn(t),e[t]=r}function S31(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Cs),eV=" ",tV=!1;function CA(e,t){switch(e){case"keyup":return t41.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HA(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var o0=!1;function n41(e,t){switch(e){case"compositionend":return HA(t);case"keypress":return t.which!==32?null:(tV=!0,eV);case"textInput":return e=t.data,e===eV&&tV?null:e;default:return null}}function a41(e,t){if(o0)return e==="compositionend"||!iy&&CA(e,t)?(e=zA(),c7=ry=R4=null,o0=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=aV(r)}}function VA(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?VA(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function AA(){for(var e=window,t=m7();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=m7(e.document)}return t}function cy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function p41(e){var t=AA(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&VA(r.ownerDocument.documentElement,r)){if(n!==null&&cy(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=iV(r,i);var c=iV(r,n);a&&c&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,s0=null,yg=null,_s=null,xg=!1;function cV(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;xg||s0==null||s0!==m7(n)||(n=s0,"selectionStart"in n&&cy(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_s&&Rs(_s,n)||(_s=n,n=z7(yg,"onSelect"),0u0||(e.current=Hg[u0],Hg[u0]=null,u0--)}function X2(e,t){u0++,Hg[u0]=e.current,e.current=t}var Y4={},bt=Z4(Y4),er=Z4(!1),hi=Y4;function C0(e,t){var r=e.type.contextTypes;if(!r)return Y4;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function tr(e){return e=e.childContextTypes,e!=null}function C7(){te(er),te(bt)}function mV(e,t,r){if(bt.current!==Y4)throw Error(k1(168));X2(bt,t),X2(er,r)}function DA(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(k1(108,s31(e)||"Unknown",a));return ve({},r,n)}function H7(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Y4,hi=bt.current,X2(bt,e),X2(er,er.current),!0}function vV(e,t,r){var n=e.stateNode;if(!n)throw Error(k1(169));r?(e=DA(e,t,hi),n.__reactInternalMemoizedMergedChildContext=e,te(er),te(bt),X2(bt,e)):te(er),X2(er,r)}var F3=null,q7=!1,qv=!1;function BA(e){F3===null?F3=[e]:F3.push(e)}function M41(e){q7=!0,BA(e)}function Q4(){if(!qv&&F3!==null){qv=!0;var e=0,t=B2;try{var r=F3;for(B2=1;e>=c,a-=c,j3=1<<32-Hn(t)+a|r<T?(I=V,V=null):I=V.sibling;var L=d(x,V,w[T],A);if(L===null){V===null&&(V=I);break}e&&V&&L.alternate===null&&t(x,V),b=i(L,b,T),H===null?M=L:H.sibling=L,H=L,V=I}if(T===w.length)return r(x,V),oe&&ii(x,T),M;if(V===null){for(;TT?(I=V,V=null):I=V.sibling;var N=d(x,V,L.value,A);if(N===null){V===null&&(V=I);break}e&&V&&N.alternate===null&&t(x,V),b=i(N,b,T),H===null?M=N:H.sibling=N,H=N,V=I}if(L.done)return r(x,V),oe&&ii(x,T),M;if(V===null){for(;!L.done;T++,L=w.next())L=p(x,L.value,A),L!==null&&(b=i(L,b,T),H===null?M=L:H.sibling=L,H=L);return oe&&ii(x,T),M}for(V=n(x,V);!L.done;T++,L=w.next())L=m(V,x,T,L.value,A),L!==null&&(e&&L.alternate!==null&&V.delete(L.key===null?T:L.key),b=i(L,b,T),H===null?M=L:H.sibling=L,H=L);return e&&V.forEach(function(C){return t(x,C)}),oe&&ii(x,T),M}function z(x,b,w,A){if(typeof w=="object"&&w!==null&&w.type===c0&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bf:e:{for(var M=w.key,H=b;H!==null;){if(H.key===M){if(M=w.type,M===c0){if(H.tag===7){r(x,H.sibling),b=a(H,w.props.children),b.return=x,x=b;break e}}else if(H.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===O4&&MV(M)===H.type){r(x,H.sibling),b=a(H,w.props),b.ref=ds(x,H,w),b.return=x,x=b;break e}r(x,H);break}else t(x,H);H=H.sibling}w.type===c0?(b=ui(w.props.children,x.mode,A,w.key),b.return=x,x=b):(A=d7(w.type,w.key,w.props,null,x.mode,A),A.ref=ds(x,b,w),A.return=x,x=A)}return c(x);case i0:e:{for(H=w.key;b!==null;){if(b.key===H)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){r(x,b.sibling),b=a(b,w.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else t(x,b);b=b.sibling}b=Qv(w,x.mode,A),b.return=x,x=b}return c(x);case O4:return H=w._init,z(x,b,H(w._payload),A)}if(xs(w))return y(x,b,w,A);if(fs(w))return g(x,b,w,A);t7(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,b!==null&&b.tag===6?(r(x,b.sibling),b=a(b,w),b.return=x,x=b):(r(x,b),b=Zv(w,x.mode,A),b.return=x,x=b),c(x)):r(x,b)}return z}var _0=$A(!0),YA=$A(!1),Zs={},e3=Z4(Zs),js=Z4(Zs),Us=Z4(Zs);function li(e){if(e===Zs)throw Error(k1(174));return e}function my(e,t){switch(X2(Us,t),X2(js,e),X2(e3,Zs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sg(t,e)}te(e3),X2(e3,t)}function S0(){te(e3),te(js),te(Us)}function XA(e){li(Us.current);var t=li(e3.current),r=sg(t,e.type);t!==r&&(X2(js,e),X2(e3,r))}function vy(e){js.current===e&&(te(e3),te(js))}var de=Z4(0);function E7(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wv=[];function gy(){for(var e=0;er?r:4,e(!0);var n=Gv.transition;Gv.transition={};try{e(!1),t()}finally{B2=r,Gv.transition=n}}function hE(){return Kr().memoizedState}function S41(e,t,r){var n=G4(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pE(e))dE(t,r);else if(r=qA(e,t,r,n),r!==null){var a=It();_n(r,e,n,a),mE(r,t,n)}}function L41(e,t,r){var n=G4(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pE(e))dE(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,o=i(c,r);if(a.hasEagerState=!0,a.eagerState=o,Sn(o,c)){var l=t.interleaved;l===null?(a.next=a,py(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}r=qA(e,t,a,n),r!==null&&(a=It(),_n(r,e,n,a),mE(r,t,n))}}function pE(e){var t=e.alternate;return e===me||t!==null&&t===me}function dE(e,t){Ss=k7=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mE(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Jg(e,r)}}var N7={readContext:Gr,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},V41={readContext:Gr,useCallback:function(e,t){return Zn().memoizedState=[e,t===void 0?null:t],e},useContext:Gr,useEffect:HV,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,f7(4194308,4,oE.bind(null,t,e),r)},useLayoutEffect:function(e,t){return f7(4194308,4,e,t)},useInsertionEffect:function(e,t){return f7(4,2,e,t)},useMemo:function(e,t){var r=Zn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Zn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=S41.bind(null,me,e),[n.memoizedState,e]},useRef:function(e){var t=Zn();return e={current:e},t.memoizedState=e},useState:CV,useDebugValue:zy,useDeferredValue:function(e){return Zn().memoizedState=e},useTransition:function(){var e=CV(!1),t=e[0];return e=_41.bind(null,e[1]),Zn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=me,a=Zn();if(oe){if(r===void 0)throw Error(k1(407));r=r()}else{if(r=t(),Ze===null)throw Error(k1(349));di&30||JA(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,HV(tE.bind(null,n,i,e),[e]),n.flags|=2048,Gs(9,eE.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Zn(),t=Ze.identifierPrefix;if(oe){var r=U3,n=j3;r=(n&~(1<<32-Hn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=qs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),r==="select"&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[Qn]=t,e[Fs]=n,CE(e,t,!1,!1),t.stateNode=e;e:{switch(c=fg(r,n),r){case"dialog":ee("cancel",e),ee("close",e),a=n;break;case"iframe":case"object":case"embed":ee("load",e),a=n;break;case"video":case"audio":for(a=0;aV0&&(t.flags|=128,n=!0,ms(i,!1),t.lanes=4194304)}else{if(!n)if(e=E7(c),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ms(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!oe)return yt(t),null}else 2*Ve()-i.renderingStartTime>V0&&r!==1073741824&&(t.flags|=128,n=!0,ms(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(r=i.last,r!==null?r.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ve(),t.sibling=null,r=de.current,X2(de,n?r&1|2:r&1),t):(yt(t),null);case 22:case 23:return Ly(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?mr&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error(k1(156,t.tag))}function I41(e,t){switch(sy(t),t.tag){case 1:return tr(t.type)&&C7(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return S0(),te(er),te(bt),gy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vy(t),null;case 13:if(te(de),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k1(340));H0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(de),null;case 4:return S0(),null;case 10:return hy(t.type._context),null;case 22:case 23:return Ly(),null;case 24:return null;default:return null}}var n7=!1,xt=!1,R41=typeof WeakSet=="function"?WeakSet:Set,U1=null;function m0(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){we(e,t,n)}else r.current=null}function Ig(e,t,r){try{r()}catch(n){we(e,t,n)}}var OV=!1;function D41(e,t){if(bg=b7,e=AA(),cy(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var c=0,o=-1,l=-1,f=0,h=0,p=e,d=null;t:for(;;){for(var m;p!==r||a!==0&&p.nodeType!==3||(o=c+a),p!==i||n!==0&&p.nodeType!==3||(l=c+n),p.nodeType===3&&(c+=p.nodeValue.length),(m=p.firstChild)!==null;)d=p,p=m;for(;;){if(p===e)break t;if(d===r&&++f===a&&(o=c),d===i&&++h===n&&(l=c),(m=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=m}r=o===-1||l===-1?null:{start:o,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(wg={focusedElem:e,selectionRange:r},b7=!1,U1=t;U1!==null;)if(t=U1,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U1=e;else for(;U1!==null;){t=U1;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var g=y.memoizedProps,z=y.memoizedState,x=t.stateNode,b=x.getSnapshotBeforeUpdate(t.elementType===t.type?g:zn(t.type,g),z);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k1(163))}}catch(A){we(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,U1=e;break}U1=t.return}return y=OV,OV=!1,y}function Ls(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&Ig(t,r,i)}a=a.next}while(a!==n)}}function K7(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Rg(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function SE(e){var t=e.alternate;t!==null&&(e.alternate=null,SE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qn],delete t[Fs],delete t[Cg],delete t[w41],delete t[z41])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function LE(e){return e.tag===5||e.tag===3||e.tag===4}function TV(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||LE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Dg(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=M7));else if(n!==4&&(e=e.child,e!==null))for(Dg(e,t,r),e=e.sibling;e!==null;)Dg(e,t,r),e=e.sibling}function Bg(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Bg(e,t,r),e=e.sibling;e!==null;)Bg(e,t,r),e=e.sibling}var at=null,Mn=!1;function N4(e,t,r){for(r=r.child;r!==null;)VE(e,t,r),r=r.sibling}function VE(e,t,r){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(D7,r)}catch{}switch(r.tag){case 5:xt||m0(r,t);case 6:var n=at,a=Mn;at=null,N4(e,t,r),at=n,Mn=a,at!==null&&(Mn?(e=at,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):at.removeChild(r.stateNode));break;case 18:at!==null&&(Mn?(e=at,r=r.stateNode,e.nodeType===8?Uv(e.parentNode,r):e.nodeType===1&&Uv(e,r),Ps(e)):Uv(at,r.stateNode));break;case 4:n=at,a=Mn,at=r.stateNode.containerInfo,Mn=!0,N4(e,t,r),at=n,Mn=a;break;case 0:case 11:case 14:case 15:if(!xt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,c=i.destroy;i=i.tag,c!==void 0&&(i&2||i&4)&&Ig(r,t,c),a=a.next}while(a!==n)}N4(e,t,r);break;case 1:if(!xt&&(m0(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){we(r,t,o)}N4(e,t,r);break;case 21:N4(e,t,r);break;case 22:r.mode&1?(xt=(n=xt)||r.memoizedState!==null,N4(e,t,r),xt=n):N4(e,t,r);break;default:N4(e,t,r)}}function PV(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new R41),t.forEach(function(n){var a=$41.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function wn(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=c),n&=~i}if(n=a,n=Ve()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*F41(n/1960))-n,10e?16:e,D4===null)var n=!1;else{if(e=D4,D4=null,P7=0,z2&6)throw Error(k1(331));var a=z2;for(z2|=4,U1=e.current;U1!==null;){var i=U1,c=i.child;if(U1.flags&16){var o=i.deletions;if(o!==null){for(var l=0;lVe()-_y?fi(e,0):Hy|=r),rr(e,t)}function IE(e,t){t===0&&(e.mode&1?(t=qf,qf<<=1,!(qf&130023424)&&(qf=4194304)):t=1);var r=It();e=K3(e,t),e!==null&&($s(e,t,r),rr(e,r))}function K41(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),IE(e,r)}function $41(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(k1(314))}n!==null&&n.delete(t),IE(e,r)}var RE;RE=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||er.current)Jt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Jt=!1,T41(e,t,r);Jt=!!(e.flags&131072)}else Jt=!1,oe&&t.flags&1048576&&FA(t,S7,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;u7(e,t),e=t.pendingProps;var a=C0(t,bt.current);w0(t,r),a=xy(null,t,n,e,a,r);var i=by();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tr(n)?(i=!0,H7(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,dy(t),a.updater=W7,t.stateNode=a,a._reactInternals=t,Ag(t,n,e,r),t=Ng(null,t,n,!0,i,r)):(t.tag=0,oe&&i&&oy(t),Pt(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(u7(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=X41(n),e=zn(n,e),a){case 0:t=kg(null,t,n,e,r);break e;case 1:t=EV(null,t,n,e,r);break e;case 11:t=VV(null,t,n,e,r);break e;case 14:t=AV(null,t,n,zn(n.type,e),r);break e}throw Error(k1(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:zn(n,a),kg(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:zn(n,a),EV(e,t,n,a,r);case 3:e:{if(wE(t),e===null)throw Error(k1(387));n=t.pendingProps,i=t.memoizedState,a=i.element,WA(e,t),A7(t,n,null,r);var c=t.memoizedState;if(n=c.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=L0(Error(k1(423)),t),t=kV(e,t,n,r,a);break e}else if(n!==a){a=L0(Error(k1(424)),t),t=kV(e,t,n,r,a);break e}else for(vr=U4(t.stateNode.containerInfo.firstChild),gr=t,oe=!0,Cn=null,r=YA(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(H0(),n===a){t=$3(e,t,r);break e}Pt(e,t,n,r)}t=t.child}return t;case 5:return XA(t),e===null&&Sg(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,c=a.children,zg(n,a)?c=null:i!==null&&zg(n,i)&&(t.flags|=32),bE(e,t),Pt(e,t,c,r),t.child;case 6:return e===null&&Sg(t),null;case 13:return zE(e,t,r);case 4:return my(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_0(t,null,n,r):Pt(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:zn(n,a),VV(e,t,n,a,r);case 7:return Pt(e,t,t.pendingProps,r),t.child;case 8:return Pt(e,t,t.pendingProps.children,r),t.child;case 12:return Pt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,c=a.value,X2(L7,n._currentValue),n._currentValue=c,i!==null)if(Sn(i.value,c)){if(i.children===a.children&&!er.current){t=$3(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){c=i.child;for(var l=o.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=q3(-1,r&-r),l.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?l.next=l:(l.next=h.next,h.next=l),f.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Lg(i.return,r,t),o.lanes|=r;break}l=l.next}}else if(i.tag===10)c=i.type===t.type?null:i.child;else if(i.tag===18){if(c=i.return,c===null)throw Error(k1(341));c.lanes|=r,o=c.alternate,o!==null&&(o.lanes|=r),Lg(c,r,t),c=i.sibling}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===t){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}Pt(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,w0(t,r),a=Gr(a),n=n(a),t.flags|=1,Pt(e,t,n,r),t.child;case 14:return n=t.type,a=zn(n,t.pendingProps),a=zn(n.type,a),AV(e,t,n,a,r);case 15:return yE(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:zn(n,a),u7(e,t),t.tag=1,tr(n)?(e=!0,H7(t)):e=!1,w0(t,r),KA(t,n,a),Ag(t,n,a,r),Ng(null,t,n,!0,e,r);case 19:return ME(e,t,r);case 22:return xE(e,t,r)}throw Error(k1(156,t.tag))};function DE(e,t){return uA(e,t)}function Y41(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qr(e,t,r,n){return new Y41(e,t,r,n)}function Ay(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X41(e){if(typeof e=="function")return Ay(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Yg)return 11;if(e===Xg)return 14}return 2}function K4(e,t){var r=e.alternate;return r===null?(r=qr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function d7(e,t,r,n,a,i){var c=2;if(n=e,typeof e=="function")Ay(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case c0:return ui(r.children,a,i,t);case $g:c=8,a|=8;break;case eg:return e=qr(12,r,t,a|2),e.elementType=eg,e.lanes=i,e;case tg:return e=qr(13,r,t,a),e.elementType=tg,e.lanes=i,e;case rg:return e=qr(19,r,t,a),e.elementType=rg,e.lanes=i,e;case $V:return Y7(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case GV:c=10;break e;case KV:c=9;break e;case Yg:c=11;break e;case Xg:c=14;break e;case O4:c=16,n=null;break e}throw Error(k1(130,e==null?e:typeof e,""))}return t=qr(c,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function ui(e,t,r,n){return e=qr(7,e,n,t),e.lanes=r,e}function Y7(e,t,r,n){return e=qr(22,e,n,t),e.elementType=$V,e.lanes=r,e.stateNode={isHidden:!1},e}function Zv(e,t,r){return e=qr(6,e,null,t),e.lanes=r,e}function Qv(e,t,r){return t=qr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z41(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tv(0),this.expirationTimes=Tv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tv(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Ey(e,t,r,n,a,i,c,o,l){return e=new Z41(e,t,r,o,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=qr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},dy(i),e}function Q41(e,t,r){var n=3{"use strict";function qE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qE)}catch(e){console.error(e)}}qE(),WE.exports=UE()});var Py=X(Ty=>{"use strict";var KE=GE();Ty.createRoot=KE.createRoot,Ty.hydrateRoot=KE.hydrateRoot;var wV1});var tk=X(tu=>{"use strict";tu.byteLength=oa1;tu.toByteArray=la1;tu.fromByteArray=ha1;var t3=[],$r=[],ca1=typeof Uint8Array<"u"?Uint8Array:Array,By="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xi=0,JE=By.length;xi0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function oa1(e){var t=ek(e),r=t[0],n=t[1];return(r+n)*3/4-n}function sa1(e,t,r){return(t+r)*3/4-r}function la1(e){var t,r=ek(e),n=r[0],a=r[1],i=new ca1(sa1(e,n,a)),c=0,o=a>0?n-4:n,l;for(l=0;l>16&255,i[c++]=t>>8&255,i[c++]=t&255;return a===2&&(t=$r[e.charCodeAt(l)]<<2|$r[e.charCodeAt(l+1)]>>4,i[c++]=t&255),a===1&&(t=$r[e.charCodeAt(l)]<<10|$r[e.charCodeAt(l+1)]<<4|$r[e.charCodeAt(l+2)]>>2,i[c++]=t>>8&255,i[c++]=t&255),i}function fa1(e){return t3[e>>18&63]+t3[e>>12&63]+t3[e>>6&63]+t3[e&63]}function ua1(e,t,r){for(var n,a=[],i=t;io?o:c+i));return n===1?(t=e[r-1],a.push(t3[t>>2]+t3[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],a.push(t3[t>>10]+t3[t>>4&63]+t3[t<<2&63]+"=")),a.join("")}});var rk=X(Fy=>{Fy.read=function(e,t,r,n,a){var i,c,o=a*8-n-1,l=(1<>1,h=-7,p=r?a-1:0,d=r?-1:1,m=e[t+p];for(p+=d,i=m&(1<<-h)-1,m>>=-h,h+=o;h>0;i=i*256+e[t+p],p+=d,h-=8);for(c=i&(1<<-h)-1,i>>=-h,h+=n;h>0;c=c*256+e[t+p],p+=d,h-=8);if(i===0)i=1-f;else{if(i===l)return c?NaN:(m?-1:1)*(1/0);c=c+Math.pow(2,n),i=i-f}return(m?-1:1)*c*Math.pow(2,i-n)};Fy.write=function(e,t,r,n,a,i){var c,o,l,f=i*8-a-1,h=(1<>1,d=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,c=h):(c=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-c))<1&&(c--,l*=2),c+p>=1?t+=d/l:t+=d*Math.pow(2,1-p),t*l>=2&&(c++,l/=2),c+p>=h?(o=0,c=h):c+p>=1?(o=(t*l-1)*Math.pow(2,a),c=c+p):(o=t*Math.pow(2,p-1)*Math.pow(2,a),c=0));a>=8;e[r+m]=o&255,m+=y,o/=256,a-=8);for(c=c<0;e[r+m]=c&255,m+=y,c/=256,f-=8);e[r+m-y]|=g*128}});var ea=X(P0=>{"use strict";var jy=tk(),O0=rk(),nk=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;P0.Buffer=y1;P0.SlowBuffer=ya1;P0.INSPECT_MAX_BYTES=50;var ru=2147483647;P0.kMaxLength=ru;y1.TYPED_ARRAY_SUPPORT=pa1();!y1.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function pa1(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(y1.prototype,"parent",{enumerable:!0,get:function(){if(y1.isBuffer(this))return this.buffer}});Object.defineProperty(y1.prototype,"offset",{enumerable:!0,get:function(){if(y1.isBuffer(this))return this.byteOffset}});function X3(e){if(e>ru)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,y1.prototype),t}function y1(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Gy(e)}return ok(e,t,r)}y1.poolSize=8192;function ok(e,t,r){if(typeof e=="string")return ma1(e,t);if(ArrayBuffer.isView(e))return va1(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(r3(e,ArrayBuffer)||e&&r3(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(r3(e,SharedArrayBuffer)||e&&r3(e.buffer,SharedArrayBuffer)))return qy(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return y1.from(n,t,r);let a=ga1(e);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return y1.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}y1.from=function(e,t,r){return ok(e,t,r)};Object.setPrototypeOf(y1.prototype,Uint8Array.prototype);Object.setPrototypeOf(y1,Uint8Array);function sk(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function da1(e,t,r){return sk(e),e<=0?X3(e):t!==void 0?typeof r=="string"?X3(e).fill(t,r):X3(e).fill(t):X3(e)}y1.alloc=function(e,t,r){return da1(e,t,r)};function Gy(e){return sk(e),X3(e<0?0:Ky(e)|0)}y1.allocUnsafe=function(e){return Gy(e)};y1.allocUnsafeSlow=function(e){return Gy(e)};function ma1(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!y1.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=lk(e,t)|0,n=X3(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}function Uy(e){let t=e.length<0?0:Ky(e.length)|0,r=X3(t);for(let n=0;n=ru)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ru.toString(16)+" bytes");return e|0}function ya1(e){return+e!=e&&(e=0),y1.alloc(+e)}y1.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==y1.prototype};y1.compare=function(t,r){if(r3(t,Uint8Array)&&(t=y1.from(t,t.offset,t.byteLength)),r3(r,Uint8Array)&&(r=y1.from(r,r.offset,r.byteLength)),!y1.isBuffer(t)||!y1.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,a=r.length;for(let i=0,c=Math.min(n,a);ia.length?(y1.isBuffer(c)||(c=y1.from(c)),c.copy(a,i)):Uint8Array.prototype.set.call(a,c,i);else if(y1.isBuffer(c))c.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=c.length}return a};function lk(e,t){if(y1.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||r3(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Wy(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return yk(e).length;default:if(a)return n?-1:Wy(e).length;t=(""+t).toLowerCase(),a=!0}}y1.byteLength=lk;function xa1(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return Va1(this,t,r);case"utf8":case"utf-8":return uk(this,t,r);case"ascii":return Sa1(this,t,r);case"latin1":case"binary":return La1(this,t,r);case"base64":return Ha1(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aa1(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}y1.prototype._isBuffer=!0;function bi(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}y1.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};nk&&(y1.prototype[nk]=y1.prototype.inspect);y1.prototype.compare=function(t,r,n,a,i){if(r3(t,Uint8Array)&&(t=y1.from(t,t.offset,t.byteLength)),!y1.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),r<0||n>t.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&r>=n)return 0;if(a>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,a>>>=0,i>>>=0,this===t)return 0;let c=i-a,o=n-r,l=Math.min(c,o),f=this.slice(a,i),h=t.slice(r,n);for(let p=0;p2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Yy(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0)if(a)r=0;else return-1;if(typeof t=="string"&&(t=y1.from(t,n)),y1.isBuffer(t))return t.length===0?-1:ak(e,t,r,n,a);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):ak(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function ak(e,t,r,n,a){let i=1,c=e.length,o=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;i=2,c/=2,o/=2,r/=2}function l(h,p){return i===1?h[p]:h.readUInt16BE(p*i)}let f;if(a){let h=-1;for(f=r;fc&&(r=c-o),f=r;f>=0;f--){let h=!0;for(let p=0;pa&&(n=a)):n=a;let i=t.length;n>i/2&&(n=i/2);let c;for(c=0;c>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");let c=!1;for(;;)switch(a){case"hex":return ba1(this,t,r,n);case"utf8":case"utf-8":return wa1(this,t,r,n);case"ascii":case"latin1":case"binary":return za1(this,t,r,n);case"base64":return Ma1(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ca1(this,t,r,n);default:if(c)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),c=!0}};y1.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ha1(e,t,r){return t===0&&r===e.length?jy.fromByteArray(e):jy.fromByteArray(e.slice(t,r))}function uk(e,t,r){r=Math.min(e.length,r);let n=[],a=t;for(;a239?4:i>223?3:i>191?2:1;if(a+o<=r){let l,f,h,p;switch(o){case 1:i<128&&(c=i);break;case 2:l=e[a+1],(l&192)===128&&(p=(i&31)<<6|l&63,p>127&&(c=p));break;case 3:l=e[a+1],f=e[a+2],(l&192)===128&&(f&192)===128&&(p=(i&15)<<12|(l&63)<<6|f&63,p>2047&&(p<55296||p>57343)&&(c=p));break;case 4:l=e[a+1],f=e[a+2],h=e[a+3],(l&192)===128&&(f&192)===128&&(h&192)===128&&(p=(i&15)<<18|(l&63)<<12|(f&63)<<6|h&63,p>65535&&p<1114112&&(c=p))}}c===null?(c=65533,o=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c),a+=o}return _a1(n)}var ik=4096;function _a1(e){let t=e.length;if(t<=ik)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let a="";for(let i=t;in&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}y1.prototype.readUintLE=y1.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||Je(t,r,this.length);let a=this[t],i=1,c=0;for(;++c>>0,r=r>>>0,n||Je(t,r,this.length);let a=this[t+--r],i=1;for(;r>0&&(i*=256);)a+=this[t+--r]*i;return a};y1.prototype.readUint8=y1.prototype.readUInt8=function(t,r){return t=t>>>0,r||Je(t,1,this.length),this[t]};y1.prototype.readUint16LE=y1.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Je(t,2,this.length),this[t]|this[t+1]<<8};y1.prototype.readUint16BE=y1.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Je(t,2,this.length),this[t]<<8|this[t+1]};y1.prototype.readUint32LE=y1.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Je(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};y1.prototype.readUint32BE=y1.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Je(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};y1.prototype.readBigUInt64LE=J4(function(t){t=t>>>0,T0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Qs(t,this.length-8);let a=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,i=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(a)+(BigInt(i)<>>0,T0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Qs(t,this.length-8);let a=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],i=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(a)<>>0,r=r>>>0,n||Je(t,r,this.length);let a=this[t],i=1,c=0;for(;++c=i&&(a-=Math.pow(2,8*r)),a};y1.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||Je(t,r,this.length);let a=r,i=1,c=this[t+--a];for(;a>0&&(i*=256);)c+=this[t+--a]*i;return i*=128,c>=i&&(c-=Math.pow(2,8*r)),c};y1.prototype.readInt8=function(t,r){return t=t>>>0,r||Je(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};y1.prototype.readInt16LE=function(t,r){t=t>>>0,r||Je(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};y1.prototype.readInt16BE=function(t,r){t=t>>>0,r||Je(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};y1.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Je(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};y1.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Je(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};y1.prototype.readBigInt64LE=J4(function(t){t=t>>>0,T0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Qs(t,this.length-8);let a=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(a)<>>0,T0(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&Qs(t,this.length-8);let a=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(a)<>>0,r||Je(t,4,this.length),O0.read(this,t,!0,23,4)};y1.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Je(t,4,this.length),O0.read(this,t,!1,23,4)};y1.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Je(t,8,this.length),O0.read(this,t,!0,52,8)};y1.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Je(t,8,this.length),O0.read(this,t,!1,52,8)};function nr(e,t,r,n,a,i){if(!y1.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}y1.prototype.writeUintLE=y1.prototype.writeUIntLE=function(t,r,n,a){if(t=+t,r=r>>>0,n=n>>>0,!a){let o=Math.pow(2,8*n)-1;nr(this,t,r,n,o,0)}let i=1,c=0;for(this[r]=t&255;++c>>0,n=n>>>0,!a){let o=Math.pow(2,8*n)-1;nr(this,t,r,n,o,0)}let i=n-1,c=1;for(this[r+i]=t&255;--i>=0&&(c*=256);)this[r+i]=t/c&255;return r+n};y1.prototype.writeUint8=y1.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,1,255,0),this[r]=t&255,r+1};y1.prototype.writeUint16LE=y1.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};y1.prototype.writeUint16BE=y1.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};y1.prototype.writeUint32LE=y1.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};y1.prototype.writeUint32BE=y1.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function hk(e,t,r,n,a){gk(t,n,a,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i;let c=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=c,c=c>>8,e[r++]=c,c=c>>8,e[r++]=c,c=c>>8,e[r++]=c,r}function pk(e,t,r,n,a){gk(t,n,a,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i=i>>8,e[r+6]=i,i=i>>8,e[r+5]=i,i=i>>8,e[r+4]=i;let c=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=c,c=c>>8,e[r+2]=c,c=c>>8,e[r+1]=c,c=c>>8,e[r]=c,r+8}y1.prototype.writeBigUInt64LE=J4(function(t,r=0){return hk(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});y1.prototype.writeBigUInt64BE=J4(function(t,r=0){return pk(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});y1.prototype.writeIntLE=function(t,r,n,a){if(t=+t,r=r>>>0,!a){let l=Math.pow(2,8*n-1);nr(this,t,r,n,l-1,-l)}let i=0,c=1,o=0;for(this[r]=t&255;++i>0)-o&255;return r+n};y1.prototype.writeIntBE=function(t,r,n,a){if(t=+t,r=r>>>0,!a){let l=Math.pow(2,8*n-1);nr(this,t,r,n,l-1,-l)}let i=n-1,c=1,o=0;for(this[r+i]=t&255;--i>=0&&(c*=256);)t<0&&o===0&&this[r+i+1]!==0&&(o=1),this[r+i]=(t/c>>0)-o&255;return r+n};y1.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};y1.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};y1.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};y1.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};y1.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||nr(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};y1.prototype.writeBigInt64LE=J4(function(t,r=0){return hk(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y1.prototype.writeBigInt64BE=J4(function(t,r=0){return pk(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function dk(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function mk(e,t,r,n,a){return t=+t,r=r>>>0,a||dk(e,t,r,4,34028234663852886e22,-34028234663852886e22),O0.write(e,t,r,n,23,4),r+4}y1.prototype.writeFloatLE=function(t,r,n){return mk(this,t,r,!0,n)};y1.prototype.writeFloatBE=function(t,r,n){return mk(this,t,r,!1,n)};function vk(e,t,r,n,a){return t=+t,r=r>>>0,a||dk(e,t,r,8,17976931348623157e292,-17976931348623157e292),O0.write(e,t,r,n,52,8),r+8}y1.prototype.writeDoubleLE=function(t,r,n){return vk(this,t,r,!0,n)};y1.prototype.writeDoubleBE=function(t,r,n){return vk(this,t,r,!1,n)};y1.prototype.copy=function(t,r,n,a){if(!y1.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),r>=t.length&&(r=t.length),r||(r=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let i;if(typeof t=="number")for(i=r;i2**32?a=ck(String(r)):typeof r=="bigint"&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=ck(a)),a+="n"),n+=` It must be ${t}. Received ${a}`,n},RangeError);function ck(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function Ea1(e,t,r){T0(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&Qs(t,e.length-(r+1))}function gk(e,t,r,n,a,i){if(e>r||e3?t===0||t===BigInt(0)?o=`>= 0${c} and < 2${c} ** ${(i+1)*8}${c}`:o=`>= -(2${c} ** ${(i+1)*8-1}${c}) and < 2 ** ${(i+1)*8-1}${c}`:o=`>= ${t}${c} and <= ${r}${c}`,new N0.ERR_OUT_OF_RANGE("value",o,e)}Ea1(n,a,i)}function T0(e,t){if(typeof e!="number")throw new N0.ERR_INVALID_ARG_TYPE(t,"number",e)}function Qs(e,t,r){throw Math.floor(e)!==e?(T0(e,r),new N0.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new N0.ERR_BUFFER_OUT_OF_BOUNDS:new N0.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var ka1=/[^+/0-9A-Za-z-_]/g;function Na1(e){if(e=e.split("=")[0],e=e.trim().replace(ka1,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Wy(e,t){t=t||1/0;let r,n=e.length,a=null,i=[];for(let c=0;c55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(c+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Oa1(e){let t=[];for(let r=0;r>8,a=r%256,i.push(a),i.push(n);return i}function yk(e){return jy.toByteArray(Na1(e))}function nu(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function r3(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Yy(e){return e!==e}var Pa1=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function J4(e){return typeof BigInt>"u"?Ia1:e}function Ia1(){throw new Error("BigInt not supported")}});var cu=X((NV1,Xy)=>{"use strict";var I0=typeof Reflect=="object"?Reflect:null,xk=I0&&typeof I0.apply=="function"?I0.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},au;I0&&typeof I0.ownKeys=="function"?au=I0.ownKeys:Object.getOwnPropertySymbols?au=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:au=function(t){return Object.getOwnPropertyNames(t)};function Ra1(e){console&&console.warn&&console.warn(e)}var wk=Number.isNaN||function(t){return t!==t};function U2(){U2.init.call(this)}Xy.exports=U2;Xy.exports.once=ja1;U2.EventEmitter=U2;U2.prototype._events=void 0;U2.prototype._eventsCount=0;U2.prototype._maxListeners=void 0;var bk=10;function iu(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(U2,"defaultMaxListeners",{enumerable:!0,get:function(){return bk},set:function(e){if(typeof e!="number"||e<0||wk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bk=e}});U2.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};U2.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||wk(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function zk(e){return e._maxListeners===void 0?U2.defaultMaxListeners:e._maxListeners}U2.prototype.getMaxListeners=function(){return zk(this)};U2.prototype.emit=function(t){for(var r=[],n=1;n0&&(c=r[0]),c instanceof Error)throw c;var o=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw o.context=c,o}var l=i[t];if(l===void 0)return!1;if(typeof l=="function")xk(l,this,r);else for(var f=l.length,h=Sk(l,f),n=0;n0&&c.length>a&&!c.warned){c.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=c.length,Ra1(o)}return e}U2.prototype.addListener=function(t,r){return Mk(this,t,r,!1)};U2.prototype.on=U2.prototype.addListener;U2.prototype.prependListener=function(t,r){return Mk(this,t,r,!0)};function Da1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ck(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=Da1.bind(n);return a.listener=r,n.wrapFn=a,a}U2.prototype.once=function(t,r){return iu(r),this.on(t,Ck(this,t,r)),this};U2.prototype.prependOnceListener=function(t,r){return iu(r),this.prependListener(t,Ck(this,t,r)),this};U2.prototype.removeListener=function(t,r){var n,a,i,c,o;if(iu(r),a=this._events,a===void 0)return this;if(n=a[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(i=-1,c=n.length-1;c>=0;c--)if(n[c]===r||n[c].listener===r){o=n[c].listener,i=c;break}if(i<0)return this;i===0?n.shift():Ba1(n,i),n.length===1&&(a[t]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",t,o||r)}return this};U2.prototype.off=U2.prototype.removeListener;U2.prototype.removeAllListeners=function(t){var r,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var i=Object.keys(n),c;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function Hk(e,t,r){var n=e._events;if(n===void 0)return[];var a=n[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?Fa1(a):Sk(a,a.length)}U2.prototype.listeners=function(t){return Hk(this,t,!0)};U2.prototype.rawListeners=function(t){return Hk(this,t,!1)};U2.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):_k.call(e,t)};U2.prototype.listenerCount=_k;function _k(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}U2.prototype.eventNames=function(){return this._eventsCount>0?au(this._events):[]};function Sk(e,t){for(var r=new Array(t),n=0;n{typeof Object.create=="function"?Zy.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Zy.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Qy=X((TV1,Vk)=>{Vk.exports=cu().EventEmitter});var Jy=X(()=>{});var Tk=X((RV1,Ok)=>{"use strict";function Ak(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=r+n.data;return a}},{key:"concat",value:function(r){if(this.length===0)return ou.alloc(0);for(var n=ou.allocUnsafe(r>>>0),a=this.head,i=0;a;)Za1(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(r,n){var a;return rc.length?c.length:r;if(o===c.length?i+=c:i+=c.slice(0,r),r-=o,r===0){o===c.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=c.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(r){var n=ou.allocUnsafe(r),a=this.head,i=1;for(a.data.copy(n),r-=a.data.length;a=a.next;){var c=a.data,o=r>c.length?c.length:r;if(c.copy(n,n.length-r,0,o),r-=o,r===0){o===c.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=c.slice(o));break}++i}return this.length-=i,n}},{key:Xa1,value:function(r,n){return ex(this,Ek(Ek({},n),{},{depth:0,customInspect:!1}))}}]),e}()});var rx=X((DV1,Ik)=>{"use strict";function Qa1(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(tx,this,e)):process.nextTick(tx,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?r._writableState?r._writableState.errorEmitted?process.nextTick(su,r):(r._writableState.errorEmitted=!0,process.nextTick(Pk,r,i)):process.nextTick(Pk,r,i):t?(process.nextTick(su,r),t(i)):process.nextTick(su,r)}),this)}function Pk(e,t){tx(e,t),su(e)}function su(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Ja1(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function tx(e,t){e.emit("error",t)}function ei1(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Ik.exports={destroy:Qa1,undestroy:Ja1,errorOrDestroy:ei1}});var zi=X((BV1,Bk)=>{"use strict";function ti1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Dk={};function Yr(e,t,r){r||(r=Error);function n(i,c,o){return typeof t=="string"?t:t(i,c,o)}var a=function(i){ti1(c,i);function c(o,l,f){return i.call(this,n(o,l,f))||this}return c}(r);a.prototype.name=r.name,a.prototype.code=e,Dk[e]=a}function Rk(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function ri1(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ni1(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ai1(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Yr("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Yr("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&ri1(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var a;if(ni1(e," argument"))a="The ".concat(e," ").concat(n," ").concat(Rk(t,"type"));else{var i=ai1(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(i," ").concat(n," ").concat(Rk(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);Yr("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Yr("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Yr("ERR_STREAM_PREMATURE_CLOSE","Premature close");Yr("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Yr("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Yr("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Yr("ERR_STREAM_WRITE_AFTER_END","write after end");Yr("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Yr("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Yr("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Bk.exports.codes=Dk});var nx=X((FV1,Fk)=>{"use strict";var ii1=zi().codes.ERR_INVALID_OPT_VALUE;function ci1(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function oi1(e,t,r,n){var a=ci1(t,n,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?r:"highWaterMark";throw new ii1(i,a)}return Math.floor(a)}return e.objectMode?16:16*1024}Fk.exports={getHighWaterMark:oi1}});var Uk=X((jV1,jk)=>{jk.exports=si1;function si1(e,t){if(ax("noDeprecation"))return e;var r=!1;function n(){if(!r){if(ax("throwDeprecation"))throw new Error(t);ax("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function ax(e){try{if(!global.localStorage)return!1}catch{return!1}var t=global.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var ox=X((UV1,Yk)=>{"use strict";Yk.exports=ze;function Wk(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Ti1(t,e)}}var R0;ze.WritableState=e8;var li1={deprecate:Uk()},Gk=Qy(),fu=ea().Buffer,fi1=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function ui1(e){return fu.from(e)}function hi1(e){return fu.isBuffer(e)||e instanceof fi1}var cx=rx(),pi1=nx(),di1=pi1.getHighWaterMark,ta=zi().codes,mi1=ta.ERR_INVALID_ARG_TYPE,vi1=ta.ERR_METHOD_NOT_IMPLEMENTED,gi1=ta.ERR_MULTIPLE_CALLBACK,yi1=ta.ERR_STREAM_CANNOT_PIPE,xi1=ta.ERR_STREAM_DESTROYED,bi1=ta.ERR_STREAM_NULL_VALUES,wi1=ta.ERR_STREAM_WRITE_AFTER_END,zi1=ta.ERR_UNKNOWN_ENCODING,D0=cx.errorOrDestroy;wi()(ze,Gk);function Mi1(){}function e8(e,t,r){R0=R0||Mi(),e=e||{},typeof r!="boolean"&&(r=t instanceof R0),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=di1(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Ai1(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Wk(this)}e8.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(e8.prototype,"buffer",{get:li1.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var lu;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(lu=Function.prototype[Symbol.hasInstance],Object.defineProperty(ze,Symbol.hasInstance,{value:function(t){return lu.call(this,t)?!0:this!==ze?!1:t&&t._writableState instanceof e8}})):lu=function(t){return t instanceof this};function ze(e){R0=R0||Mi();var t=this instanceof R0;if(!t&&!lu.call(ze,this))return new ze(e);this._writableState=new e8(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Gk.call(this)}ze.prototype.pipe=function(){D0(this,new yi1)};function Ci1(e,t){var r=new wi1;D0(e,r),process.nextTick(t,r)}function Hi1(e,t,r,n){var a;return r===null?a=new bi1:typeof r!="string"&&!t.objectMode&&(a=new mi1("chunk",["string","Buffer"],r)),a?(D0(e,a),process.nextTick(n,a),!1):!0}ze.prototype.write=function(e,t,r){var n=this._writableState,a=!1,i=!n.objectMode&&hi1(e);return i&&!fu.isBuffer(e)&&(e=ui1(e)),typeof t=="function"&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Mi1),n.ending?Ci1(this,r):(i||Hi1(this,n,e,r))&&(n.pendingcb++,a=Si1(this,n,i,e,t,r)),a};ze.prototype.cork=function(){this._writableState.corked++};ze.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Kk(this,e))};ze.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new zi1(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _i1(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=fu.from(t,r)),t}Object.defineProperty(ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Si1(e,t,r,n,a,i){if(!r){var c=_i1(t,n,a);n!==c&&(r=!0,a="buffer",n=c)}var o=t.objectMode?1:n.length;t.length+=o;var l=t.length{"use strict";var Pi1=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Zk.exports=n3;var Xk=fx(),lx=ox();wi()(n3,Xk);for(sx=Pi1(lx.prototype),uu=0;uu{var pu=ea(),a3=pu.Buffer;function Qk(e,t){for(var r in e)t[r]=e[r]}a3.from&&a3.alloc&&a3.allocUnsafe&&a3.allocUnsafeSlow?Jk.exports=pu:(Qk(pu,ux),ux.Buffer=Ci);function Ci(e,t,r){return a3(e,t,r)}Ci.prototype=Object.create(a3.prototype);Qk(a3,Ci);Ci.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return a3(e,t,r)};Ci.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=a3(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};Ci.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a3(e)};Ci.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return pu.SlowBuffer(e)}});var dx=X(rN=>{"use strict";var px=eN().Buffer,tN=px.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Di1(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function Bi1(e){var t=Di1(e);if(typeof t!="string"&&(px.isEncoding===tN||!tN(e)))throw new Error("Unknown encoding: "+e);return t||e}rN.StringDecoder=t8;function t8(e){this.encoding=Bi1(e);var t;switch(this.encoding){case"utf16le":this.text=Gi1,this.end=Ki1,t=4;break;case"utf8":this.fillLast=Ui1,t=4;break;case"base64":this.text=$i1,this.end=Yi1,t=3;break;default:this.write=Xi1,this.end=Zi1;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=px.allocUnsafe(t)}t8.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Fi1(e,t,r){var n=t.length-1;if(n=0?(a>0&&(e.lastNeed=a-1),a):--n=0?(a>0&&(e.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}function ji1(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Ui1(e){var t=this.lastTotal-this.lastNeed,r=ji1(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function qi1(e,t){var r=Fi1(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Wi1(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Gi1(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Ki1(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function $i1(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Yi1(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Xi1(e){return e.toString(this.encoding)}function Zi1(e){return e&&e.length?this.write(e):""}});var du=X((GV1,iN)=>{"use strict";var nN=zi().codes.ERR_STREAM_PREMATURE_CLOSE;function Qi1(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),a=0;a{"use strict";var mu;function ra(e,t,r){return t=t61(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t61(e){var t=r61(e,"string");return typeof t=="symbol"?t:String(t)}function r61(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n61=du(),na=Symbol("lastResolve"),Hi=Symbol("lastReject"),r8=Symbol("error"),vu=Symbol("ended"),_i=Symbol("lastPromise"),mx=Symbol("handlePromise"),Si=Symbol("stream");function aa(e,t){return{value:e,done:t}}function a61(e){var t=e[na];if(t!==null){var r=e[Si].read();r!==null&&(e[_i]=null,e[na]=null,e[Hi]=null,t(aa(r,!1)))}}function i61(e){process.nextTick(a61,e)}function c61(e,t){return function(r,n){e.then(function(){if(t[vu]){r(aa(void 0,!0));return}t[mx](r,n)},n)}}var o61=Object.getPrototypeOf(function(){}),s61=Object.setPrototypeOf((mu={get stream(){return this[Si]},next:function(){var t=this,r=this[r8];if(r!==null)return Promise.reject(r);if(this[vu])return Promise.resolve(aa(void 0,!0));if(this[Si].destroyed)return new Promise(function(c,o){process.nextTick(function(){t[r8]?o(t[r8]):c(aa(void 0,!0))})});var n=this[_i],a;if(n)a=new Promise(c61(n,this));else{var i=this[Si].read();if(i!==null)return Promise.resolve(aa(i,!1));a=new Promise(this[mx])}return this[_i]=a,a}},ra(mu,Symbol.asyncIterator,function(){return this}),ra(mu,"return",function(){var t=this;return new Promise(function(r,n){t[Si].destroy(null,function(a){if(a){n(a);return}r(aa(void 0,!0))})})}),mu),o61),l61=function(t){var r,n=Object.create(s61,(r={},ra(r,Si,{value:t,writable:!0}),ra(r,na,{value:null,writable:!0}),ra(r,Hi,{value:null,writable:!0}),ra(r,r8,{value:null,writable:!0}),ra(r,vu,{value:t._readableState.endEmitted,writable:!0}),ra(r,mx,{value:function(i,c){var o=n[Si].read();o?(n[_i]=null,n[na]=null,n[Hi]=null,i(aa(o,!1))):(n[na]=i,n[Hi]=c)},writable:!0}),r));return n[_i]=null,n61(t,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[Hi];i!==null&&(n[_i]=null,n[na]=null,n[Hi]=null,i(a)),n[r8]=a;return}var c=n[na];c!==null&&(n[_i]=null,n[na]=null,n[Hi]=null,c(aa(void 0,!0))),n[vu]=!0}),t.on("readable",i61.bind(null,n)),n};cN.exports=l61});var lN=X(($V1,sN)=>{sN.exports=function(){throw new Error("Readable.from is not available in the browser")}});var fx=X((XV1,xN)=>{"use strict";xN.exports=M2;var B0;M2.ReadableState=pN;var YV1=cu().EventEmitter,hN=function(t,r){return t.listeners(r).length},a8=Qy(),gu=ea().Buffer,f61=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u61(e){return gu.from(e)}function h61(e){return gu.isBuffer(e)||e instanceof f61}var vx=Jy(),p2;vx&&vx.debuglog?p2=vx.debuglog("stream"):p2=function(){};var p61=Tk(),Mx=rx(),d61=nx(),m61=d61.getHighWaterMark,yu=zi().codes,v61=yu.ERR_INVALID_ARG_TYPE,g61=yu.ERR_STREAM_PUSH_AFTER_EOF,y61=yu.ERR_METHOD_NOT_IMPLEMENTED,x61=yu.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,F0,gx,yx;wi()(M2,a8);var n8=Mx.errorOrDestroy,xx=["error","close","destroy","pause","resume"];function b61(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function pN(e,t,r){B0=B0||Mi(),e=e||{},typeof r!="boolean"&&(r=t instanceof B0),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m61(this,e,"readableHighWaterMark",r),this.buffer=new p61,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(F0||(F0=dx().StringDecoder),this.decoder=new F0(e.encoding),this.encoding=e.encoding)}function M2(e){if(B0=B0||Mi(),!(this instanceof M2))return new M2(e);var t=this instanceof B0;this._readableState=new pN(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),a8.call(this)}Object.defineProperty(M2.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});M2.prototype.destroy=Mx.destroy;M2.prototype._undestroy=Mx.undestroy;M2.prototype._destroy=function(e,t){t(e)};M2.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=gu.from(e,t),t=""),n=!0),dN(this,e,t,!1,n)};M2.prototype.unshift=function(e){return dN(this,e,null,!0,!1)};function dN(e,t,r,n,a){p2("readableAddChunk",t);var i=e._readableState;if(t===null)i.reading=!1,M61(e,i);else{var c;if(a||(c=w61(i,t)),c)n8(e,c);else if(i.objectMode||t&&t.length>0)if(typeof t!="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==gu.prototype&&(t=u61(t)),n)i.endEmitted?n8(e,new x61):bx(e,i,t,!0);else if(i.ended)n8(e,new g61);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?bx(e,i,t,!1):zx(e,i)):bx(e,i,t,!1)}else n||(i.reading=!1,zx(e,i))}return!i.ended&&(i.length=fN?e=fN:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function uN(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=z61(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}M2.prototype.read=function(e){p2("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return p2("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?wx(this):xu(this),null;if(e=uN(e,t),e===0&&t.ended)return t.length===0&&wx(this),null;var n=t.needReadable;p2("need readable",n),(t.length===0||t.length-e0?a=gN(e,t):a=null,a===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&wx(this)),a!==null&&this.emit("data",a),a};function M61(e,t){if(p2("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?xu(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,mN(e)))}}function xu(e){var t=e._readableState;p2("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(p2("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(mN,e))}function mN(e){var t=e._readableState;p2("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Cx(e)}function zx(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(C61,e,t))}function C61(e,t){for(;!t.reading&&!t.ended&&(t.length1&&yN(n.pipes,e)!==-1)&&!f&&(p2("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(z){p2("onerror",z),g(),e.removeListener("error",d),hN(e,"error")===0&&n8(e,z)}b61(e,"error",d);function m(){e.removeListener("finish",y),g()}e.once("close",m);function y(){p2("onfinish"),e.removeListener("close",m),g()}e.once("finish",y);function g(){p2("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(p2("pipe resume"),r.resume()),e};function H61(e){return function(){var r=e._readableState;p2("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&hN(e,"data")&&(r.flowing=!0,Cx(e))}}M2.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,p2("on readable",n.length,n.reading),n.length?xu(this):n.reading||process.nextTick(_61,this)),r};M2.prototype.addListener=M2.prototype.on;M2.prototype.removeListener=function(e,t){var r=a8.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(vN,this),r};M2.prototype.removeAllListeners=function(e){var t=a8.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(vN,this),t};function vN(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function _61(e){p2("readable nexttick read 0"),e.read(0)}M2.prototype.resume=function(){var e=this._readableState;return e.flowing||(p2("resume"),e.flowing=!e.readableListening,S61(this,e)),e.paused=!1,this};function S61(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(L61,e,t))}function L61(e,t){p2("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Cx(e),t.flowing&&!t.reading&&e.read(0)}M2.prototype.pause=function(){return p2("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p2("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Cx(e){var t=e._readableState;for(p2("flow",t.flowing);t.flowing&&e.read()!==null;);}M2.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(p2("wrapped end"),r.decoder&&!r.ended){var c=r.decoder.end();c&&c.length&&t.push(c)}t.push(null)}),e.on("data",function(c){if(p2("wrapped data"),r.decoder&&(c=r.decoder.write(c)),!(r.objectMode&&c==null)&&!(!r.objectMode&&(!c||!c.length))){var o=t.push(c);o||(n=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=function(o){return function(){return e[o].apply(e,arguments)}}(a));for(var i=0;i=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function wx(e){var t=e._readableState;p2("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(V61,t,e))}function V61(e,t){if(p2("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(M2.from=function(e,t){return yx===void 0&&(yx=lN()),yx(M2,e,t)});function yN(e,t){for(var r=0,n=e.length;r{"use strict";wN.exports=Z3;var bu=zi().codes,A61=bu.ERR_METHOD_NOT_IMPLEMENTED,E61=bu.ERR_MULTIPLE_CALLBACK,k61=bu.ERR_TRANSFORM_ALREADY_TRANSFORMING,N61=bu.ERR_TRANSFORM_WITH_LENGTH_0,wu=Mi();wi()(Z3,wu);function O61(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new E61);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";MN.exports=i8;var zN=Hx();wi()(i8,zN);function i8(e){if(!(this instanceof i8))return new i8(e);zN.call(this,e)}i8.prototype._transform=function(e,t,r){r(null,e)}});var VN=X((JV1,LN)=>{"use strict";var _x;function P61(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var SN=zi().codes,I61=SN.ERR_MISSING_ARGS,R61=SN.ERR_STREAM_DESTROYED;function HN(e){if(e)throw e}function D61(e){return e.setHeader&&typeof e.abort=="function"}function B61(e,t,r,n){n=P61(n);var a=!1;e.on("close",function(){a=!0}),_x===void 0&&(_x=du()),_x(e,{readable:t,writable:r},function(c){if(c)return n(c);a=!0,n()});var i=!1;return function(c){if(!a&&!i){if(i=!0,D61(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(c||new R61("pipe"))}}}function _N(e){e()}function F61(e,t){return e.pipe(t)}function j61(e){return!e.length||typeof e[e.length-1]!="function"?HN:e.pop()}function U61(){for(var e=arguments.length,t=new Array(e),r=0;r0;return B61(c,l,f,function(h){a||(a=h),h&&i.forEach(_N),!l&&(i.forEach(_N),n(a))})});return t.reduce(F61)}LN.exports=U61});var EN=X((eA1,AN)=>{AN.exports=Xr;var Sx=cu().EventEmitter,q61=wi();q61(Xr,Sx);Xr.Readable=fx();Xr.Writable=ox();Xr.Duplex=Mi();Xr.Transform=Hx();Xr.PassThrough=CN();Xr.finished=du();Xr.pipeline=VN();Xr.Stream=Xr;function Xr(){Sx.call(this)}Xr.prototype.pipe=function(e,t){var r=this;function n(h){e.writable&&e.write(h)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",c),r.on("close",o));var i=!1;function c(){i||(i=!0,e.end())}function o(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function l(h){if(f(),Sx.listenerCount(this,"error")===0)throw h}r.on("error",l),e.on("error",l);function f(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",c),r.removeListener("close",o),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}});var ON=X((tA1,NN)=>{"use strict";var kN=Object.getOwnPropertySymbols,W61=Object.prototype.hasOwnProperty,G61=Object.prototype.propertyIsEnumerable;function K61(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function $61(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(i){a[i]=i}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}NN.exports=$61()?Object.assign:function(e,t){for(var r,n=K61(e),a,i=1;i{TN.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var IN=X((nA1,Lx)=>{typeof Object.create=="function"?Lx.exports=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:Lx.exports=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}});var FN=X(T2=>{var Y61=/%[sdj%]/g;T2.format=function(e){if(!Lu(e)){for(var t=[],r=0;r=a)return o;switch(o){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return o}}),c=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Ox(t)?r.showHidden=t:t&&T2._extend(r,t),Q3(r.showHidden)&&(r.showHidden=!1),Q3(r.depth)&&(r.depth=2),Q3(r.colors)&&(r.colors=!1),Q3(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=X61),_u(r,e,r.depth)}T2.inspect=ia;ia.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};ia.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function X61(e,t){var r=ia.styles[t];return r?"\x1B["+ia.colors[r][0]+"m"+e+"\x1B["+ia.colors[r][1]+"m":e}function Z61(e,t){return e}function Q61(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function _u(e,t,r){if(e.customInspect&&t&&Hu(t.inspect)&&t.inspect!==T2.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return Lu(n)||(n=_u(e,n,r)),n}var a=J61(e,t);if(a)return a;var i=Object.keys(t),c=Q61(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Cu(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Ax(t);if(i.length===0){if(Hu(t)){var o=t.name?": "+t.name:"";return e.stylize("[Function"+o+"]","special")}if(Mu(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Nx(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Cu(t))return Ax(t)}var l="",f=!1,h=["{","}"];if(RN(t)&&(f=!0,h=["[","]"]),Hu(t)){var p=t.name?": "+t.name:"";l=" [Function"+p+"]"}if(Mu(t)&&(l=" "+RegExp.prototype.toString.call(t)),Nx(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Cu(t)&&(l=" "+Ax(t)),i.length===0&&(!f||t.length==0))return h[0]+l+h[1];if(r<0)return Mu(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var d;return f?d=e01(e,t,r,c,i):d=i.map(function(m){return kx(e,t,r,c,m,f)}),e.seen.pop(),t01(d,l,h)}function J61(e,t){if(Q3(t))return e.stylize("undefined","undefined");if(Lu(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(DN(t))return e.stylize(""+t,"number");if(Ox(t))return e.stylize(""+t,"boolean");if(Su(t))return e.stylize("null","null")}function Ax(e){return"["+Error.prototype.toString.call(e)+"]"}function e01(e,t,r,n,a){for(var i=[],c=0,o=t.length;c-1&&(i?o=o.split(` `).map(function(f){return" "+f}).join(` `).substr(2):o=` `+o.split(` `).map(function(f){return" "+f}).join(` `))):o=e.stylize("[Circular]","special")),Q3(c)){if(i&&a.match(/^\d+$/))return o;c=JSON.stringify(""+a),c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=e.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=e.stylize(c,"string"))}return c+": "+o}function t01(e,t,r){var n=0,a=e.reduce(function(i,c){return n++,c.indexOf(` `)>=0&&n++,i+c.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function RN(e){return Array.isArray(e)}T2.isArray=RN;function Ox(e){return typeof e=="boolean"}T2.isBoolean=Ox;function Su(e){return e===null}T2.isNull=Su;function r01(e){return e==null}T2.isNullOrUndefined=r01;function DN(e){return typeof e=="number"}T2.isNumber=DN;function Lu(e){return typeof e=="string"}T2.isString=Lu;function n01(e){return typeof e=="symbol"}T2.isSymbol=n01;function Q3(e){return e===void 0}T2.isUndefined=Q3;function Mu(e){return j0(e)&&Tx(e)==="[object RegExp]"}T2.isRegExp=Mu;function j0(e){return typeof e=="object"&&e!==null}T2.isObject=j0;function Nx(e){return j0(e)&&Tx(e)==="[object Date]"}T2.isDate=Nx;function Cu(e){return j0(e)&&(Tx(e)==="[object Error]"||e instanceof Error)}T2.isError=Cu;function Hu(e){return typeof e=="function"}T2.isFunction=Hu;function a01(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}T2.isPrimitive=a01;T2.isBuffer=PN();function Tx(e){return Object.prototype.toString.call(e)}function Ex(e){return e<10?"0"+e.toString(10):e.toString(10)}var i01=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function c01(){var e=new Date,t=[Ex(e.getHours()),Ex(e.getMinutes()),Ex(e.getSeconds())].join(":");return[e.getDate(),i01[e.getMonth()],t].join(" ")}T2.log=function(){console.log("%s - %s",c01(),T2.format.apply(T2,arguments))};T2.inherits=IN();T2._extend=function(e,t){if(!t||!j0(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function BN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var Px=X((iA1,nO)=>{"use strict";var o01=ON();function jN(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,i=Math.min(r,n);a=0){var o=a.indexOf(` `,c+1);a=a.substring(o+1)}this.stack=a}}};Ln.inherits(L2.AssertionError,Error);function GN(e,t){return typeof e=="string"?e.length=0;f--)if(c[f]!==o[f])return!1;for(f=c.length-1;f>=0;f--)if(l=c[f],!U0(e[l],t[l],r,n))return!1;return!0}L2.notDeepEqual=function(t,r,n){U0(t,r,!1)&&ar(t,r,n,"notDeepEqual",L2.notDeepEqual)};L2.notDeepStrictEqual=eO;function eO(e,t,r){U0(e,t,!0)&&ar(e,t,r,"notDeepStrictEqual",eO)}L2.strictEqual=function(t,r,n){t!==r&&ar(t,r,n,"===",L2.strictEqual)};L2.notStrictEqual=function(t,r,n){t===r&&ar(t,r,n,"!==",L2.notStrictEqual)};function YN(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return Error.isPrototypeOf(t)?!1:t.call({},e)===!0}function h01(e){var t;try{e()}catch(r){t=r}return t}function tO(e,t,r,n){var a;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),a=h01(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!a&&ar(a,r,"Missing expected exception"+n);var i=typeof n=="string",c=!e&&Ln.isError(a),o=!e&&a&&!r;if((c&&i&&YN(a,r)||o)&&ar(a,r,"Got unwanted exception"+n),e&&a&&r&&!YN(a,r)||!e&&a)throw a}L2.throws=function(e,t,r){tO(!0,e,t,r)};L2.doesNotThrow=function(e,t,r){tO(!1,e,t,r)};L2.ifError=function(e){if(e)throw e};function rO(e,t){e||ar(e,!0,t,"==",rO)}L2.strict=o01(rO,L2,{equal:L2.strictEqual,deepEqual:L2.deepStrictEqual,notEqual:L2.notStrictEqual,notDeepEqual:L2.notDeepStrictEqual});L2.strict.strict=L2.strict;var XN=Object.keys||function(e){var t=[];for(var r in e)s01.call(e,r)&&t.push(r);return t}});var iO=X((cA1,aO)=>{"use strict";function p01(){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}aO.exports=p01});var o8=X(Dt=>{"use strict";var d01=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function m01(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Dt.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var n in r)m01(r,n)&&(e[n]=r[n])}}return e};Dt.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var v01={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+n),a);return}for(var i=0;i{"use strict";var y01=o8(),x01=4,cO=0,oO=1,b01=2;function W0(e){for(var t=e.length;--t>=0;)e[t]=0}var w01=0,pO=1,z01=2,M01=3,C01=258,Ux=29,p8=256,l8=p8+1+Ux,q0=30,qx=19,dO=2*l8+1,Li=15,Ix=16,H01=7,Wx=256,mO=16,vO=17,gO=18,Fx=[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],Vu=[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],_01=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yO=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S01=512,J3=new Array((l8+2)*2);W0(J3);var s8=new Array(q0*2);W0(s8);var f8=new Array(S01);W0(f8);var u8=new Array(C01-M01+1);W0(u8);var Gx=new Array(Ux);W0(Gx);var Au=new Array(q0);W0(Au);function Rx(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}var xO,bO,wO;function Dx(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function zO(e){return e<256?f8[e]:f8[256+(e>>>7)]}function h8(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function ir(e,t,r){e.bi_valid>Ix-r?(e.bi_buf|=t<>Ix-e.bi_valid,e.bi_valid+=r-Ix):(e.bi_buf|=t<>>=1,r<<=1;while(--t>0);return r>>>1}function L01(e){e.bi_valid===16?(h8(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function V01(e,t){var r=t.dyn_tree,n=t.max_code,a=t.stat_desc.static_tree,i=t.stat_desc.has_stree,c=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length,f,h,p,d,m,y,g=0;for(d=0;d<=Li;d++)e.bl_count[d]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;fl&&(d=l,g++),r[h*2+1]=d,!(h>n)&&(e.bl_count[d]++,m=0,h>=o&&(m=c[h-o]),y=r[h*2],e.opt_len+=y*(d+m),i&&(e.static_len+=y*(a[h*2+1]+m)));if(g!==0){do{for(d=l-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[l]--,g-=2}while(g>0);for(d=l;d!==0;d--)for(h=e.bl_count[d];h!==0;)p=e.heap[--f],!(p>n)&&(r[p*2+1]!==d&&(e.opt_len+=(d-r[p*2+1])*r[p*2],r[p*2+1]=d),h--)}}function CO(e,t,r){var n=new Array(Li+1),a=0,i,c;for(i=1;i<=Li;i++)n[i]=a=a+r[i-1]<<1;for(c=0;c<=t;c++){var o=e[c*2+1];o!==0&&(e[c*2]=MO(n[o]++,o))}}function A01(){var e,t,r,n,a,i=new Array(Li+1);for(r=0,n=0;n>=7;n8?h8(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function E01(e,t,r,n){_O(e),n&&(h8(e,r),h8(e,~r)),y01.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function sO(e,t,r,n){var a=t*2,i=r*2;return e[a]>1;c>=1;c--)Bx(e,r,c);f=i;do c=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Bx(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=c,e.heap[--e.heap_max]=o,r[f*2]=r[c*2]+r[o*2],e.depth[f]=(e.depth[c]>=e.depth[o]?e.depth[c]:e.depth[o])+1,r[c*2+1]=r[o*2+1]=f,e.heap[1]=f++,Bx(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],V01(e,t),CO(r,l,e.bl_count)}function fO(e,t,r){var n,a=-1,i,c=t[0*2+1],o=0,l=7,f=4;for(c===0&&(l=138,f=3),t[(r+1)*2+1]=65535,n=0;n<=r;n++)i=c,c=t[(n+1)*2+1],!(++o=3&&e.bl_tree[yO[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function N01(e,t,r,n){var a;for(ir(e,t-257,5),ir(e,r-1,5),ir(e,n-4,4),a=0;a>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return cO;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return oO;for(r=32;r0?(e.strm.data_type===b01&&(e.strm.data_type=O01(e)),jx(e,e.l_desc),jx(e,e.d_desc),c=k01(e),a=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=a&&(a=i)):a=i=r+5,r+4<=a&&t!==-1?SO(e,t,r,n):e.strategy===x01||i===a?(ir(e,(pO<<1)+(n?1:0),3),lO(e,J3,s8)):(ir(e,(z01<<1)+(n?1:0),3),N01(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),lO(e,e.dyn_ltree,e.dyn_dtree)),HO(e),n&&_O(e)}function R01(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(u8[r]+p8+1)*2]++,e.dyn_dtree[zO(t)*2]++),e.last_lit===e.lit_bufsize-1}G0._tr_init=T01;G0._tr_stored_block=SO;G0._tr_flush_block=I01;G0._tr_tally=R01;G0._tr_align=P01});var Kx=X((lA1,VO)=>{"use strict";function D01(e,t,r,n){for(var a=e&65535|0,i=e>>>16&65535|0,c=0;r!==0;){c=r>2e3?2e3:r,r-=c;do a=a+t[n++]|0,i=i+a|0;while(--c);a%=65521,i%=65521}return a|i<<16|0}VO.exports=D01});var $x=X((fA1,AO)=>{"use strict";function B01(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var F01=B01();function j01(e,t,r,n){var a=F01,i=n+r;e^=-1;for(var c=n;c>>8^a[(e^t[c])&255];return e^-1}AO.exports=j01});var kO=X((uA1,EO)=>{"use strict";EO.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var FO=X(s3=>{"use strict";var Bt=o8(),Zr=LO(),PO=Kx(),ca=$x(),U01=kO(),ki=0,q01=1,W01=3,ua=4,NO=5,o3=0,OO=1,Qr=-2,G01=-3,Yx=-5,K01=-1,$01=1,Eu=2,Y01=3,X01=4,Z01=0,Q01=2,Tu=8,J01=9,ec1=15,tc1=8,rc1=29,nc1=256,Zx=nc1+1+rc1,ac1=30,ic1=19,cc1=2*Zx+1,oc1=15,b2=3,la=258,Vn=la+b2+1,sc1=32,Pu=42,Qx=69,ku=73,Nu=91,Ou=103,Vi=113,m8=666,Ue=1,v8=2,Ai=3,Y0=4,lc1=3;function fa(e,t){return e.msg=U01[t],t}function TO(e){return(e<<1)-(e>4?9:0)}function sa(e){for(var t=e.length;--t>=0;)e[t]=0}function oa(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(Bt.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function ot(e,t){Zr._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,oa(e.strm)}function V2(e,t){e.pending_buf[e.pending++]=t}function d8(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function fc1(e,t,r,n){var a=e.avail_in;return a>n&&(a=n),a===0?0:(e.avail_in-=a,Bt.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=PO(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ca(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function IO(e,t){var r=e.max_chain_length,n=e.strstart,a,i,c=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-Vn?e.strstart-(e.w_size-Vn):0,f=e.window,h=e.w_mask,p=e.prev,d=e.strstart+la,m=f[n+c-1],y=f[n+c];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(f[a+c]!==y||f[a+c-1]!==m||f[a]!==f[n]||f[++a]!==f[n+1])){n+=2,a++;do;while(f[++n]===f[++a]&&f[++n]===f[++a]&&f[++n]===f[++a]&&f[++n]===f[++a]&&f[++n]===f[++a]&&f[++n]===f[++a]&&f[++n]===f[++a]&&f[++n]===f[++a]&&nc){if(e.match_start=t,c=i,i>=o)break;m=f[n+c-1],y=f[n+c]}}while((t=p[t&h])>l&&--r!==0);return c<=e.lookahead?c:e.lookahead}function Ei(e){var t=e.w_size,r,n,a,i,c;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Vn)){Bt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--n);n=t,r=n;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--n);i+=t}if(e.strm.avail_in===0)break;if(n=fc1(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=b2)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ei(e),e.lookahead===0&&t===ki)return Ue;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((e.strstart===0||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,ot(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Vn&&(ot(e,!1),e.strm.avail_out===0))return Ue}return e.insert=0,t===ua?(ot(e,!0),e.strm.avail_out===0?Ai:Y0):(e.strstart>e.block_start&&(ot(e,!1),e.strm.avail_out===0),Ue)}function Xx(e,t){for(var r,n;;){if(e.lookahead=b2&&(e.ins_h=(e.ins_h<=b2)if(n=Zr._tr_tally(e,e.strstart-e.match_start,e.match_length-b2),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=b2){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<=b2&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=b2-1)),e.prev_length>=b2&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-b2,n=Zr._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-b2),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<=b2&&e.strstart>0&&(a=e.strstart-1,n=c[a],n===c[++a]&&n===c[++a]&&n===c[++a])){i=e.strstart+la;do;while(n===c[++a]&&n===c[++a]&&n===c[++a]&&n===c[++a]&&n===c[++a]&&n===c[++a]&&n===c[++a]&&n===c[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=b2?(r=Zr._tr_tally(e,1,e.match_length-b2),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Zr._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ot(e,!1),e.strm.avail_out===0))return Ue}return e.insert=0,t===ua?(ot(e,!0),e.strm.avail_out===0?Ai:Y0):e.last_lit&&(ot(e,!1),e.strm.avail_out===0)?Ue:v8}function pc1(e,t){for(var r;;){if(e.lookahead===0&&(Ei(e),e.lookahead===0)){if(t===ki)return Ue;break}if(e.match_length=0,r=Zr._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ot(e,!1),e.strm.avail_out===0))return Ue}return e.insert=0,t===ua?(ot(e,!0),e.strm.avail_out===0?Ai:Y0):e.last_lit&&(ot(e,!1),e.strm.avail_out===0)?Ue:v8}function c3(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}var $0;$0=[new c3(0,0,0,0,uc1),new c3(4,4,8,4,Xx),new c3(4,5,16,8,Xx),new c3(4,6,32,32,Xx),new c3(4,4,16,16,K0),new c3(8,16,32,32,K0),new c3(8,16,128,128,K0),new c3(8,32,128,256,K0),new c3(32,128,258,1024,K0),new c3(32,258,258,4096,K0)];function dc1(e){e.window_size=2*e.w_size,sa(e.head),e.max_lazy_match=$0[e.level].max_lazy,e.good_match=$0[e.level].good_length,e.nice_match=$0[e.level].nice_length,e.max_chain_length=$0[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=b2-1,e.match_available=0,e.ins_h=0}function mc1(){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=Tu,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 Bt.Buf16(cc1*2),this.dyn_dtree=new Bt.Buf16((2*ac1+1)*2),this.bl_tree=new Bt.Buf16((2*ic1+1)*2),sa(this.dyn_ltree),sa(this.dyn_dtree),sa(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Bt.Buf16(oc1+1),this.heap=new Bt.Buf16(2*Zx+1),sa(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Bt.Buf16(2*Zx+1),sa(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 RO(e){var t;return!e||!e.state?fa(e,Qr):(e.total_in=e.total_out=0,e.data_type=Q01,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Pu:Vi,e.adler=t.wrap===2?0:1,t.last_flush=ki,Zr._tr_init(t),o3)}function DO(e){var t=RO(e);return t===o3&&dc1(e.state),t}function vc1(e,t){return!e||!e.state||e.state.wrap!==2?Qr:(e.state.gzhead=t,o3)}function BO(e,t,r,n,a,i){if(!e)return Qr;var c=1;if(t===K01&&(t=6),n<0?(c=0,n=-n):n>15&&(c=2,n-=16),a<1||a>J01||r!==Tu||n<8||n>15||t<0||t>9||i<0||i>X01)return fa(e,Qr);n===8&&(n=9);var o=new mc1;return e.state=o,o.strm=e,o.wrap=c,o.gzhead=null,o.w_bits=n,o.w_size=1<NO||t<0)return e?fa(e,Qr):Qr;if(n=e.state,!e.output||!e.input&&e.avail_in!==0||n.status===m8&&t!==ua)return fa(e,e.avail_out===0?Yx:Qr);if(n.strm=e,r=n.last_flush,n.last_flush=t,n.status===Pu)if(n.wrap===2)e.adler=0,V2(n,31),V2(n,139),V2(n,8),n.gzhead?(V2(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),V2(n,n.gzhead.time&255),V2(n,n.gzhead.time>>8&255),V2(n,n.gzhead.time>>16&255),V2(n,n.gzhead.time>>24&255),V2(n,n.level===9?2:n.strategy>=Eu||n.level<2?4:0),V2(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(V2(n,n.gzhead.extra.length&255),V2(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ca(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Qx):(V2(n,0),V2(n,0),V2(n,0),V2(n,0),V2(n,0),V2(n,n.level===9?2:n.strategy>=Eu||n.level<2?4:0),V2(n,lc1),n.status=Vi);else{var c=Tu+(n.w_bits-8<<4)<<8,o=-1;n.strategy>=Eu||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,c|=o<<6,n.strstart!==0&&(c|=sc1),c+=31-c%31,n.status=Vi,d8(n,c),n.strstart!==0&&(d8(n,e.adler>>>16),d8(n,e.adler&65535)),e.adler=1}if(n.status===Qx)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(n.gzhead.extra.length&65535)&&!(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=ca(e.adler,n.pending_buf,n.pending-a,a)),oa(e),a=n.pending,n.pending===n.pending_buf_size));)V2(n,n.gzhead.extra[n.gzindex]&255),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(e.adler=ca(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=ku)}else n.status=ku;if(n.status===ku)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=ca(e.adler,n.pending_buf,n.pending-a,a)),oa(e),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}n.gzindexa&&(e.adler=ca(e.adler,n.pending_buf,n.pending-a,a)),i===0&&(n.gzindex=0,n.status=Nu)}else n.status=Nu;if(n.status===Nu)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=ca(e.adler,n.pending_buf,n.pending-a,a)),oa(e),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}n.gzindexa&&(e.adler=ca(e.adler,n.pending_buf,n.pending-a,a)),i===0&&(n.status=Ou)}else n.status=Ou;if(n.status===Ou&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&oa(e),n.pending+2<=n.pending_buf_size&&(V2(n,e.adler&255),V2(n,e.adler>>8&255),e.adler=0,n.status=Vi)):n.status=Vi),n.pending!==0){if(oa(e),e.avail_out===0)return n.last_flush=-1,o3}else if(e.avail_in===0&&TO(t)<=TO(r)&&t!==ua)return fa(e,Yx);if(n.status===m8&&e.avail_in!==0)return fa(e,Yx);if(e.avail_in!==0||n.lookahead!==0||t!==ki&&n.status!==m8){var l=n.strategy===Eu?pc1(n,t):n.strategy===Y01?hc1(n,t):$0[n.level].func(n,t);if((l===Ai||l===Y0)&&(n.status=m8),l===Ue||l===Ai)return e.avail_out===0&&(n.last_flush=-1),o3;if(l===v8&&(t===q01?Zr._tr_align(n):t!==NO&&(Zr._tr_stored_block(n,0,0,!1),t===W01&&(sa(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),oa(e),e.avail_out===0))return n.last_flush=-1,o3}return t!==ua?o3:n.wrap<=0?OO:(n.wrap===2?(V2(n,e.adler&255),V2(n,e.adler>>8&255),V2(n,e.adler>>16&255),V2(n,e.adler>>24&255),V2(n,e.total_in&255),V2(n,e.total_in>>8&255),V2(n,e.total_in>>16&255),V2(n,e.total_in>>24&255)):(d8(n,e.adler>>>16),d8(n,e.adler&65535)),oa(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?o3:OO)}function xc1(e){var t;return!e||!e.state?Qr:(t=e.state.status,t!==Pu&&t!==Qx&&t!==ku&&t!==Nu&&t!==Ou&&t!==Vi&&t!==m8?fa(e,Qr):(e.state=null,t===Vi?fa(e,G01):o3))}function bc1(e,t){var r=t.length,n,a,i,c,o,l,f,h;if(!e||!e.state||(n=e.state,c=n.wrap,c===2||c===1&&n.status!==Pu||n.lookahead))return Qr;for(c===1&&(e.adler=PO(e.adler,t,r,0)),n.wrap=0,r>=n.w_size&&(c===0&&(sa(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new Bt.Buf8(n.w_size),Bt.arraySet(h,t,r-n.w_size,n.w_size,0),t=h,r=n.w_size),o=e.avail_in,l=e.next_in,f=e.input,e.avail_in=r,e.next_in=0,e.input=t,Ei(n);n.lookahead>=b2;){a=n.strstart,i=n.lookahead-(b2-1);do n.ins_h=(n.ins_h<{"use strict";var Iu=30,wc1=12;jO.exports=function(t,r){var n,a,i,c,o,l,f,h,p,d,m,y,g,z,x,b,w,A,M,H,V,T,I,L,N;n=t.state,a=t.next_in,L=t.input,i=a+(t.avail_in-5),c=t.next_out,N=t.output,o=c-(r-t.avail_out),l=c+(t.avail_out-257),f=n.dmax,h=n.wsize,p=n.whave,d=n.wnext,m=n.window,y=n.hold,g=n.bits,z=n.lencode,x=n.distcode,b=(1<>>24,y>>>=M,g-=M,M=A>>>16&255,M===0)N[c++]=A&65535;else if(M&16){H=A&65535,M&=15,M&&(g>>=M,g-=M),g<15&&(y+=L[a++]<>>24,y>>>=M,g-=M,M=A>>>16&255,M&16){if(V=A&65535,M&=15,gf){t.msg="invalid distance too far back",n.mode=Iu;break e}if(y>>>=M,g-=M,M=c-o,V>M){if(M=V-M,M>p&&n.sane){t.msg="invalid distance too far back",n.mode=Iu;break e}if(T=0,I=m,d===0){if(T+=h-M,M2;)N[c++]=I[T++],N[c++]=I[T++],N[c++]=I[T++],H-=3;H&&(N[c++]=I[T++],H>1&&(N[c++]=I[T++]))}else{T=c-V;do N[c++]=N[T++],N[c++]=N[T++],N[c++]=N[T++],H-=3;while(H>2);H&&(N[c++]=N[T++],H>1&&(N[c++]=N[T++]))}}else if(M&64){t.msg="invalid distance code",n.mode=Iu;break e}else{A=x[(A&65535)+(y&(1<>3,a-=H,g-=H<<3,y&=(1<{"use strict";var qO=o8(),X0=15,WO=852,GO=592,KO=0,Jx=1,$O=2,zc1=[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],Mc1=[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],Cc1=[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],Hc1=[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];YO.exports=function(t,r,n,a,i,c,o,l){var f=l.bits,h=0,p=0,d=0,m=0,y=0,g=0,z=0,x=0,b=0,w=0,A,M,H,V,T,I=null,L=0,N,C=new qO.Buf16(X0+1),q=new qO.Buf16(X0+1),J=null,$=0,E,O,B;for(h=0;h<=X0;h++)C[h]=0;for(p=0;p=1&&C[m]===0;m--);if(y>m&&(y=m),m===0)return i[c++]=1<<24|64<<16|0,i[c++]=1<<24|64<<16|0,l.bits=1,0;for(d=1;d0&&(t===KO||m!==1))return-1;for(q[1]=0,h=1;hWO||t===$O&&b>GO)return 1;for(;;){E=h-z,o[p]N?(O=J[$+o[p]],B=I[L+o[p]]):(O=96,B=0),A=1<>z)+M]=E<<24|O<<16|B|0;while(M!==0);for(A=1<>=1;if(A!==0?(w&=A-1,w+=A):w=0,p++,--C[h]===0){if(h===m)break;h=r[n+o[p]]}if(h>y&&(w&V)!==H){for(z===0&&(z=y),T+=d,g=h-z,x=1<WO||t===$O&&b>GO)return 1;H=w&V,i[H]=y<<24|g<<16|T-c|0}}return w!==0&&(i[T+w]=h-z<<24|64<<16|0),l.bits=y,0}});var ET=X(An=>{"use strict";var wr=o8(),ib=Kx(),l3=$x(),_c1=UO(),g8=XO(),Sc1=0,zT=1,MT=2,ZO=4,Lc1=5,Ru=6,Ni=0,Vc1=1,Ac1=2,Jr=-2,CT=-3,cb=-4,Ec1=-5,QO=8,HT=1,JO=2,eT=3,tT=4,rT=5,nT=6,aT=7,iT=8,cT=9,oT=10,Fu=11,e4=12,eb=13,sT=14,tb=15,lT=16,fT=17,uT=18,hT=19,Du=20,Bu=21,pT=22,dT=23,mT=24,vT=25,gT=26,rb=27,yT=28,xT=29,le=30,ob=31,kc1=32,Nc1=852,Oc1=592,Tc1=15,Pc1=Tc1;function bT(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Ic1(){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 wr.Buf16(320),this.work=new wr.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _T(e){var t;return!e||!e.state?Jr:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=HT,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new wr.Buf32(Nc1),t.distcode=t.distdyn=new wr.Buf32(Oc1),t.sane=1,t.back=-1,Ni)}function ST(e){var t;return!e||!e.state?Jr:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,_T(e))}function LT(e,t){var r,n;return!e||!e.state||(n=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Jr:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,ST(e))}function VT(e,t){var r,n;return e?(n=new Ic1,e.state=n,n.window=null,r=LT(e,t),r!==Ni&&(e.state=null),r):Jr}function Rc1(e){return VT(e,Pc1)}var wT=!0,nb,ab;function Dc1(e){if(wT){var t;for(nb=new wr.Buf32(512),ab=new wr.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(g8(zT,e.lens,0,288,nb,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;g8(MT,e.lens,0,32,ab,0,e.work,{bits:5}),wT=!1}e.lencode=nb,e.lenbits=9,e.distcode=ab,e.distbits=5}function AT(e,t,r,n){var a,i=e.state;return i.window===null&&(i.wsize=1<=i.wsize?(wr.arraySet(i.window,t,r-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>n&&(a=n),wr.arraySet(i.window,t,r-n,a,i.wnext),n-=a,n?(wr.arraySet(i.window,t,r-n,n,0),i.wnext=n,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,r.check=l3(r.check,I,2,0),f=0,h=0,r.mode=JO;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=le;break}if((f&15)!==QO){e.msg="unknown compression method",r.mode=le;break}if(f>>>=4,h-=4,V=(f&15)+8,r.wbits===0)r.wbits=V;else if(V>r.wbits){e.msg="invalid window size",r.mode=le;break}r.dmax=1<>8&1),r.flags&512&&(I[0]=f&255,I[1]=f>>>8&255,r.check=l3(r.check,I,2,0)),f=0,h=0,r.mode=eT;case eT:for(;h<32;){if(o===0)break e;o--,f+=n[i++]<>>8&255,I[2]=f>>>16&255,I[3]=f>>>24&255,r.check=l3(r.check,I,4,0)),f=0,h=0,r.mode=tT;case tT:for(;h<16;){if(o===0)break e;o--,f+=n[i++]<>8),r.flags&512&&(I[0]=f&255,I[1]=f>>>8&255,r.check=l3(r.check,I,2,0)),f=0,h=0,r.mode=rT;case rT:if(r.flags&1024){for(;h<16;){if(o===0)break e;o--,f+=n[i++]<>>8&255,r.check=l3(r.check,I,2,0)),f=0,h=0}else r.head&&(r.head.extra=null);r.mode=nT;case nT:if(r.flags&1024&&(m=r.length,m>o&&(m=o),m&&(r.head&&(V=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),wr.arraySet(r.head.extra,n,i,m,V)),r.flags&512&&(r.check=l3(r.check,n,m,i)),o-=m,i+=m,r.length-=m),r.length))break e;r.length=0,r.mode=aT;case aT:if(r.flags&2048){if(o===0)break e;m=0;do V=n[i+m++],r.head&&V&&r.length<65536&&(r.head.name+=String.fromCharCode(V));while(V&&m>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=e4;break;case oT:for(;h<32;){if(o===0)break e;o--,f+=n[i++]<>>=h&7,h-=h&7,r.mode=rb;break}for(;h<3;){if(o===0)break e;o--,f+=n[i++]<>>=1,h-=1,f&3){case 0:r.mode=sT;break;case 1:if(Dc1(r),r.mode=Du,t===Ru){f>>>=2,h-=2;break e}break;case 2:r.mode=fT;break;case 3:e.msg="invalid block type",r.mode=le}f>>>=2,h-=2;break;case sT:for(f>>>=h&7,h-=h&7;h<32;){if(o===0)break e;o--,f+=n[i++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=le;break}if(r.length=f&65535,f=0,h=0,r.mode=tb,t===Ru)break e;case tb:r.mode=lT;case lT:if(m=r.length,m){if(m>o&&(m=o),m>l&&(m=l),m===0)break e;wr.arraySet(a,n,i,m,c),o-=m,i+=m,l-=m,c+=m,r.length-=m;break}r.mode=e4;break;case fT:for(;h<14;){if(o===0)break e;o--,f+=n[i++]<>>=5,h-=5,r.ndist=(f&31)+1,f>>>=5,h-=5,r.ncode=(f&15)+4,f>>>=4,h-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=le;break}r.have=0,r.mode=uT;case uT:for(;r.have>>=3,h-=3}for(;r.have<19;)r.lens[C[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,L={bits:r.lenbits},T=g8(Sc1,r.lens,0,19,r.lencode,0,r.work,L),r.lenbits=L.bits,T){e.msg="invalid code lengths set",r.mode=le;break}r.have=0,r.mode=hT;case hT:for(;r.have>>24,b=z>>>16&255,w=z&65535,!(x<=h);){if(o===0)break e;o--,f+=n[i++]<>>=x,h-=x,r.lens[r.have++]=w;else{if(w===16){for(N=x+2;h>>=x,h-=x,r.have===0){e.msg="invalid bit length repeat",r.mode=le;break}V=r.lens[r.have-1],m=3+(f&3),f>>>=2,h-=2}else if(w===17){for(N=x+3;h>>=x,h-=x,V=0,m=3+(f&7),f>>>=3,h-=3}else{for(N=x+7;h>>=x,h-=x,V=0,m=11+(f&127),f>>>=7,h-=7}if(r.have+m>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=le;break}for(;m--;)r.lens[r.have++]=V}}if(r.mode===le)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=le;break}if(r.lenbits=9,L={bits:r.lenbits},T=g8(zT,r.lens,0,r.nlen,r.lencode,0,r.work,L),r.lenbits=L.bits,T){e.msg="invalid literal/lengths set",r.mode=le;break}if(r.distbits=6,r.distcode=r.distdyn,L={bits:r.distbits},T=g8(MT,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,L),r.distbits=L.bits,T){e.msg="invalid distances set",r.mode=le;break}if(r.mode=Du,t===Ru)break e;case Du:r.mode=Bu;case Bu:if(o>=6&&l>=258){e.next_out=c,e.avail_out=l,e.next_in=i,e.avail_in=o,r.hold=f,r.bits=h,_c1(e,d),c=e.next_out,a=e.output,l=e.avail_out,i=e.next_in,n=e.input,o=e.avail_in,f=r.hold,h=r.bits,r.mode===e4&&(r.back=-1);break}for(r.back=0;z=r.lencode[f&(1<>>24,b=z>>>16&255,w=z&65535,!(x<=h);){if(o===0)break e;o--,f+=n[i++]<>A)],x=z>>>24,b=z>>>16&255,w=z&65535,!(A+x<=h);){if(o===0)break e;o--,f+=n[i++]<>>=A,h-=A,r.back+=A}if(f>>>=x,h-=x,r.back+=x,r.length=w,b===0){r.mode=gT;break}if(b&32){r.back=-1,r.mode=e4;break}if(b&64){e.msg="invalid literal/length code",r.mode=le;break}r.extra=b&15,r.mode=pT;case pT:if(r.extra){for(N=r.extra;h>>=r.extra,h-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=dT;case dT:for(;z=r.distcode[f&(1<>>24,b=z>>>16&255,w=z&65535,!(x<=h);){if(o===0)break e;o--,f+=n[i++]<>A)],x=z>>>24,b=z>>>16&255,w=z&65535,!(A+x<=h);){if(o===0)break e;o--,f+=n[i++]<>>=A,h-=A,r.back+=A}if(f>>>=x,h-=x,r.back+=x,b&64){e.msg="invalid distance code",r.mode=le;break}r.offset=w,r.extra=b&15,r.mode=mT;case mT:if(r.extra){for(N=r.extra;h>>=r.extra,h-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=le;break}r.mode=vT;case vT:if(l===0)break e;if(m=d-l,r.offset>m){if(m=r.offset-m,m>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=le;break}m>r.wnext?(m-=r.wnext,y=r.wsize-m):y=r.wnext-m,m>r.length&&(m=r.length),g=r.window}else g=a,y=c-r.offset,m=r.length;m>l&&(m=l),l-=m,r.length-=m;do a[c++]=g[y++];while(--m);r.length===0&&(r.mode=Bu);break;case gT:if(l===0)break e;a[c++]=r.length,l--,r.mode=Bu;break;case rb:if(r.wrap){for(;h<32;){if(o===0)break e;o--,f|=n[i++]<{"use strict";kT.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var TT=X(P1=>{"use strict";var zr=Px(),qc1=iO(),y8=FO(),Oi=ET(),OT=NT();for(sb in OT)P1[sb]=OT[sb];var sb;P1.NONE=0;P1.DEFLATE=1;P1.INFLATE=2;P1.GZIP=3;P1.GUNZIP=4;P1.DEFLATERAW=5;P1.INFLATERAW=6;P1.UNZIP=7;var Wc1=31,Gc1=139;function wt(e){if(typeof e!="number"||eP1.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}wt.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,zr(this.init_done,"close before init"),zr(this.mode<=P1.UNZIP),this.mode===P1.DEFLATE||this.mode===P1.GZIP||this.mode===P1.DEFLATERAW?y8.deflateEnd(this.strm):(this.mode===P1.INFLATE||this.mode===P1.GUNZIP||this.mode===P1.INFLATERAW||this.mode===P1.UNZIP)&&Oi.inflateEnd(this.strm),this.mode=P1.NONE,this.dictionary=null};wt.prototype.write=function(e,t,r,n,a,i,c){return this._write(!0,e,t,r,n,a,i,c)};wt.prototype.writeSync=function(e,t,r,n,a,i,c){return this._write(!1,e,t,r,n,a,i,c)};wt.prototype._write=function(e,t,r,n,a,i,c,o){if(zr.equal(arguments.length,8),zr(this.init_done,"write before init"),zr(this.mode!==P1.NONE,"already finalized"),zr.equal(!1,this.write_in_progress,"write already in progress"),zr.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,zr.equal(!1,t===void 0,"must provide flush value"),this.write_in_progress=!0,t!==P1.Z_NO_FLUSH&&t!==P1.Z_PARTIAL_FLUSH&&t!==P1.Z_SYNC_FLUSH&&t!==P1.Z_FULL_FLUSH&&t!==P1.Z_FINISH&&t!==P1.Z_BLOCK)throw new Error("Invalid flush value");if(r==null&&(r=Buffer.alloc(0),a=0,n=0),this.strm.avail_in=a,this.strm.input=r,this.strm.next_in=n,this.strm.avail_out=o,this.strm.output=i,this.strm.next_out=c,this.flush=t,!e)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return process.nextTick(function(){l._process(),l._after()}),this};wt.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]};wt.prototype._process=function(){var e=null;switch(this.mode){case P1.DEFLATE:case P1.GZIP:case P1.DEFLATERAW:this.err=y8.deflate(this.strm,this.flush);break;case P1.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(e===null)break;if(this.strm.input[e]===Wc1){if(this.gzip_id_bytes_read=1,e++,this.strm.avail_in===1)break}else{this.mode=P1.INFLATE;break}case 1:if(e===null)break;this.strm.input[e]===Gc1?(this.gzip_id_bytes_read=2,this.mode=P1.GUNZIP):this.mode=P1.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case P1.INFLATE:case P1.GUNZIP:case P1.INFLATERAW:for(this.err=Oi.inflate(this.strm,this.flush),this.err===P1.Z_NEED_DICT&&this.dictionary&&(this.err=Oi.inflateSetDictionary(this.strm,this.dictionary),this.err===P1.Z_OK?this.err=Oi.inflate(this.strm,this.flush):this.err===P1.Z_DATA_ERROR&&(this.err=P1.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===P1.GUNZIP&&this.err===P1.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=Oi.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}};wt.prototype._checkError=function(){switch(this.err){case P1.Z_OK:case P1.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===P1.Z_FINISH)return this._error("unexpected end of file"),!1;break;case P1.Z_STREAM_END:break;case P1.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};wt.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}};wt.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()};wt.prototype.init=function(e,t,r,n,a){zr(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),zr(e>=8&&e<=15,"invalid windowBits"),zr(t>=-1&&t<=9,"invalid compression level"),zr(r>=1&&r<=9,"invalid memlevel"),zr(n===P1.Z_FILTERED||n===P1.Z_HUFFMAN_ONLY||n===P1.Z_RLE||n===P1.Z_FIXED||n===P1.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(t,e,r,n,a),this._setDictionary()};wt.prototype.params=function(){throw new Error("deflateParams Not supported")};wt.prototype.reset=function(){this._reset(),this._setDictionary()};wt.prototype._init=function(e,t,r,n,a){switch(this.level=e,this.windowBits=t,this.memLevel=r,this.strategy=n,this.flush=P1.Z_NO_FLUSH,this.err=P1.Z_OK,(this.mode===P1.GZIP||this.mode===P1.GUNZIP)&&(this.windowBits+=16),this.mode===P1.UNZIP&&(this.windowBits+=32),(this.mode===P1.DEFLATERAW||this.mode===P1.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new qc1,this.mode){case P1.DEFLATE:case P1.GZIP:case P1.DEFLATERAW:this.err=y8.deflateInit2(this.strm,this.level,P1.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case P1.INFLATE:case P1.GUNZIP:case P1.INFLATERAW:case P1.UNZIP:this.err=Oi.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==P1.Z_OK&&this._error("Init error"),this.dictionary=a,this.write_in_progress=!1,this.init_done=!0};wt.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=P1.Z_OK,this.mode){case P1.DEFLATE:case P1.DEFLATERAW:this.err=y8.deflateSetDictionary(this.strm,this.dictionary);break;default:break}this.err!==P1.Z_OK&&this._error("Failed to set dictionary")}};wt.prototype._reset=function(){switch(this.err=P1.Z_OK,this.mode){case P1.DEFLATE:case P1.DEFLATERAW:case P1.GZIP:this.err=y8.deflateReset(this.strm);break;case P1.INFLATE:case P1.INFLATERAW:case P1.GUNZIP:this.err=Oi.inflateReset(this.strm);break;default:break}this.err!==P1.Z_OK&&this._error("Failed to reset stream")};P1.Zlib=wt});var IT=X((yA1,PT)=>{PT.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var RT=X((xA1,lb)=>{typeof Object.create=="function"?lb.exports=function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:lb.exports=function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}});var UT=X(C2=>{var DT=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return o}}),c=n[r];r"u")return function(){return C2.deprecate(e,t).apply(this,arguments)};var r=!1;function n(){if(!r){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n};var ju={},fb;C2.debuglog=function(e){if(ha(fb)&&(fb=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!ju[e])if(new RegExp("\\b"+e+"\\b","i").test(fb)){var t=process.pid;ju[e]=function(){var r=C2.format.apply(C2,arguments);console.error("%s %d: %s",e,t,r)}}else ju[e]=function(){};return ju[e]};function pa(e,t){var r={seen:[],stylize:Yc1};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),mb(t)?r.showHidden=t:t&&C2._extend(r,t),ha(r.showHidden)&&(r.showHidden=!1),ha(r.depth)&&(r.depth=2),ha(r.colors)&&(r.colors=!1),ha(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=$c1),Gu(r,e,r.depth)}C2.inspect=pa;pa.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};pa.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function $c1(e,t){var r=pa.styles[t];return r?"\x1B["+pa.colors[r][0]+"m"+e+"\x1B["+pa.colors[r][1]+"m":e}function Yc1(e,t){return e}function Xc1(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function Gu(e,t,r){if(e.customInspect&&t&&Wu(t.inspect)&&t.inspect!==C2.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return $u(n)||(n=Gu(e,n,r)),n}var a=Zc1(e,t);if(a)return a;var i=Object.keys(t),c=Xc1(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),qu(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return ub(t);if(i.length===0){if(Wu(t)){var o=t.name?": "+t.name:"";return e.stylize("[Function"+o+"]","special")}if(Uu(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(db(t))return e.stylize(Date.prototype.toString.call(t),"date");if(qu(t))return ub(t)}var l="",f=!1,h=["{","}"];if(BT(t)&&(f=!0,h=["[","]"]),Wu(t)){var p=t.name?": "+t.name:"";l=" [Function"+p+"]"}if(Uu(t)&&(l=" "+RegExp.prototype.toString.call(t)),db(t)&&(l=" "+Date.prototype.toUTCString.call(t)),qu(t)&&(l=" "+ub(t)),i.length===0&&(!f||t.length==0))return h[0]+l+h[1];if(r<0)return Uu(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var d;return f?d=Qc1(e,t,r,c,i):d=i.map(function(m){return pb(e,t,r,c,m,f)}),e.seen.pop(),Jc1(d,l,h)}function Zc1(e,t){if(ha(t))return e.stylize("undefined","undefined");if($u(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(FT(t))return e.stylize(""+t,"number");if(mb(t))return e.stylize(""+t,"boolean");if(Ku(t))return e.stylize("null","null")}function ub(e){return"["+Error.prototype.toString.call(e)+"]"}function Qc1(e,t,r,n,a){for(var i=[],c=0,o=t.length;c-1&&(i?o=o.split(` `).map(function(f){return" "+f}).join(` `).substr(2):o=` `+o.split(` `).map(function(f){return" "+f}).join(` `))):o=e.stylize("[Circular]","special")),ha(c)){if(i&&a.match(/^\d+$/))return o;c=JSON.stringify(""+a),c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,c.length-2),c=e.stylize(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=e.stylize(c,"string"))}return c+": "+o}function Jc1(e,t,r){var n=0,a=e.reduce(function(i,c){return n++,c.indexOf(` `)>=0&&n++,i+c.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function BT(e){return Array.isArray(e)}C2.isArray=BT;function mb(e){return typeof e=="boolean"}C2.isBoolean=mb;function Ku(e){return e===null}C2.isNull=Ku;function eo1(e){return e==null}C2.isNullOrUndefined=eo1;function FT(e){return typeof e=="number"}C2.isNumber=FT;function $u(e){return typeof e=="string"}C2.isString=$u;function to1(e){return typeof e=="symbol"}C2.isSymbol=to1;function ha(e){return e===void 0}C2.isUndefined=ha;function Uu(e){return Z0(e)&&vb(e)==="[object RegExp]"}C2.isRegExp=Uu;function Z0(e){return typeof e=="object"&&e!==null}C2.isObject=Z0;function db(e){return Z0(e)&&vb(e)==="[object Date]"}C2.isDate=db;function qu(e){return Z0(e)&&(vb(e)==="[object Error]"||e instanceof Error)}C2.isError=qu;function Wu(e){return typeof e=="function"}C2.isFunction=Wu;function ro1(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}C2.isPrimitive=ro1;C2.isBuffer=IT();function vb(e){return Object.prototype.toString.call(e)}function hb(e){return e<10?"0"+e.toString(10):e.toString(10)}var no1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ao1(){var e=new Date,t=[hb(e.getHours()),hb(e.getMinutes()),hb(e.getSeconds())].join(":");return[e.getDate(),no1[e.getMonth()],t].join(" ")}C2.log=function(){console.log("%s - %s",ao1(),C2.format.apply(C2,arguments))};C2.inherits=RT();C2._extend=function(e,t){if(!t||!Z0(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function jT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Ti=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;C2.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Ti&&t[Ti]){var r=t[Ti];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,Ti,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,a,i=new Promise(function(l,f){n=l,a=f}),c=[],o=0;o{"use strict";var f3=ea().Buffer,KT=EN().Transform,o2=TT(),da=UT(),x8=Px().ok,yb=ea().kMaxLength,$T="Cannot create final Buffer. It would be larger than 0x"+yb.toString(16)+" bytes";o2.Z_MIN_WINDOWBITS=8;o2.Z_MAX_WINDOWBITS=15;o2.Z_DEFAULT_WINDOWBITS=15;o2.Z_MIN_CHUNK=64;o2.Z_MAX_CHUNK=1/0;o2.Z_DEFAULT_CHUNK=16*1024;o2.Z_MIN_MEMLEVEL=1;o2.Z_MAX_MEMLEVEL=9;o2.Z_DEFAULT_MEMLEVEL=8;o2.Z_MIN_LEVEL=-1;o2.Z_MAX_LEVEL=9;o2.Z_DEFAULT_LEVEL=o2.Z_DEFAULT_COMPRESSION;var qT=Object.keys(o2);for(Yu=0;Yu=yb?f=new RangeError($T):l=f3.concat(n,a),n=[],e.close(),r(f,l)}}function qi(e,t){if(typeof t=="string"&&(t=f3.from(t)),!f3.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function Pi(e){if(!(this instanceof Pi))return new Pi(e);Me.call(this,e,o2.DEFLATE)}function Ii(e){if(!(this instanceof Ii))return new Ii(e);Me.call(this,e,o2.INFLATE)}function Ri(e){if(!(this instanceof Ri))return new Ri(e);Me.call(this,e,o2.GZIP)}function Di(e){if(!(this instanceof Di))return new Di(e);Me.call(this,e,o2.GUNZIP)}function Bi(e){if(!(this instanceof Bi))return new Bi(e);Me.call(this,e,o2.DEFLATERAW)}function Fi(e){if(!(this instanceof Fi))return new Fi(e);Me.call(this,e,o2.INFLATERAW)}function ji(e){if(!(this instanceof ji))return new ji(e);Me.call(this,e,o2.UNZIP)}function GT(e){return e===o2.Z_NO_FLUSH||e===o2.Z_PARTIAL_FLUSH||e===o2.Z_SYNC_FLUSH||e===o2.Z_FULL_FLUSH||e===o2.Z_FINISH||e===o2.Z_BLOCK}function Me(e,t){var r=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||Y1.Z_DEFAULT_CHUNK,KT.call(this,e),e.flush&&!GT(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!GT(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o2.Z_NO_FLUSH,this._finishFlushFlag=typeof e.finishFlush<"u"?e.finishFlush:o2.Z_FINISH,e.chunkSize&&(e.chunkSizeY1.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBitsY1.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.levelY1.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevelY1.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=Y1.Z_FILTERED&&e.strategy!=Y1.Z_HUFFMAN_ONLY&&e.strategy!=Y1.Z_RLE&&e.strategy!=Y1.Z_FIXED&&e.strategy!=Y1.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!f3.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o2.Zlib(t);var n=this;this._hadError=!1,this._handle.onerror=function(c,o){Ju(n),n._hadError=!0;var l=new Error(c);l.errno=o,l.code=Y1.codes[o],n.emit("error",l)};var a=Y1.Z_DEFAULT_COMPRESSION;typeof e.level=="number"&&(a=e.level);var i=Y1.Z_DEFAULT_STRATEGY;typeof e.strategy=="number"&&(i=e.strategy),this._handle.init(e.windowBits||Y1.Z_DEFAULT_WINDOWBITS,a,e.memLevel||Y1.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=f3.allocUnsafe(this._chunkSize),this._offset=0,this._level=a,this._strategy=i,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}da.inherits(Me,KT);Me.prototype.params=function(e,t,r){if(eY1.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=Y1.Z_FILTERED&&t!=Y1.Z_HUFFMAN_ONLY&&t!=Y1.Z_RLE&&t!=Y1.Z_FIXED&&t!=Y1.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var n=this;this.flush(o2.Z_SYNC_FLUSH,function(){x8(n._handle,"zlib binding closed"),n._handle.params(e,t),n._hadError||(n._level=e,n._strategy=t,r&&r())})}else process.nextTick(r)};Me.prototype.reset=function(){return x8(this._handle,"zlib binding closed"),this._handle.reset()};Me.prototype._flush=function(e){this._transform(f3.alloc(0),"",e)};Me.prototype.flush=function(e,t){var r=this,n=this._writableState;(typeof e=="function"||e===void 0&&!t)&&(t=e,e=o2.Z_FULL_FLUSH),n.ended?t&&process.nextTick(t):n.ending?t&&this.once("end",t):n.needDrain?t&&this.once("drain",function(){return r.flush(e,t)}):(this._flushFlag=e,this.write(f3.alloc(0),"",t))};Me.prototype.close=function(e){Ju(this,e),process.nextTick(oo1,this)};function Ju(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function oo1(e){e.emit("close")}Me.prototype._transform=function(e,t,r){var n,a=this._writableState,i=a.ending||a.ended,c=i&&(!e||a.length===e.length);if(e!==null&&!f3.isBuffer(e))return r(new Error("invalid input"));if(!this._handle)return r(new Error("zlib binding closed"));c?n=this._finishFlushFlag:(n=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o2.Z_NO_FLUSH)),this._processChunk(e,n,r)};Me.prototype._processChunk=function(e,t,r){var n=e&&e.length,a=this._chunkSize-this._offset,i=0,c=this,o=typeof r=="function";if(!o){var l=[],f=0,h;this.on("error",function(g){h=g}),x8(this._handle,"zlib binding closed");do var p=this._handle.writeSync(t,e,i,n,this._buffer,this._offset,a);while(!this._hadError&&y(p[0],p[1]));if(this._hadError)throw h;if(f>=yb)throw Ju(this),new RangeError($T);var d=f3.concat(l,f);return Ju(this),d}x8(this._handle,"zlib binding closed");var m=this._handle.write(t,e,i,n,this._buffer,this._offset,a);m.buffer=e,m.callback=y;function y(g,z){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var x=a-z;if(x8(x>=0,"have should not go down"),x>0){var b=c._buffer.slice(c._offset,c._offset+x);c._offset+=x,o?c.push(b):(l.push(b),f+=b.length)}if((z===0||c._offset>=c._chunkSize)&&(a=c._chunkSize,c._offset=0,c._buffer=f3.allocUnsafe(c._chunkSize)),z===0){if(i+=n-g,n=g,!o)return!0;var w=c._handle.write(t,e,i,n,c._buffer,c._offset,c._chunkSize);w.callback=y,w.buffer=e;return}if(!o)return!1;r()}}};da.inherits(Pi,Me);da.inherits(Ii,Me);da.inherits(Ri,Me);da.inherits(Di,Me);da.inherits(Bi,Me);da.inherits(Fi,Me);da.inherits(ji,Me)});var sP=X((oP,Hb)=>{(function(e){if(typeof oP=="object"&&typeof Hb<"u")Hb.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.localforage=e()}})(function(){var e,t,r;return function n(a,i,c){function o(h,p){if(!i[h]){if(!a[h]){var d=typeof Kn=="function"&&Kn;if(!p&&d)return d(h,!0);if(l)return l(h,!0);var m=new Error("Cannot find module '"+h+"'");throw m.code="MODULE_NOT_FOUND",m}var y=i[h]={exports:{}};a[h][0].call(y.exports,function(g){var z=a[h][1][g];return o(z||g)},y,y.exports,n,a,i,c)}return i[h].exports}for(var l=typeof Kn=="function"&&Kn,f=0;f"u"&&n(3);var d=Promise;function m(F,e1){e1&&F.then(function(K){e1(null,K)},function(K){e1(K)})}function y(F,e1,K){typeof e1=="function"&&F.then(e1),typeof K=="function"&&F.catch(K)}function g(F){return typeof F!="string"&&(console.warn(F+" used as a key, but it is not a string."),F=String(F)),F}function z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var x="local-forage-detect-blob-support",b=void 0,w={},A=Object.prototype.toString,M="readonly",H="readwrite";function V(F){for(var e1=F.length,K=new ArrayBuffer(e1),a1=new Uint8Array(K),l1=0;l1=43)}}).catch(function(){return!1})}function I(F){return typeof b=="boolean"?d.resolve(b):T(F).then(function(e1){return b=e1,b})}function L(F){var e1=w[F.name],K={};K.promise=new d(function(a1,l1){K.resolve=a1,K.reject=l1}),e1.deferredOperations.push(K),e1.dbReady?e1.dbReady=e1.dbReady.then(function(){return K.promise}):e1.dbReady=K.promise}function N(F){var e1=w[F.name],K=e1.deferredOperations.pop();if(K)return K.resolve(),K.promise}function C(F,e1){var K=w[F.name],a1=K.deferredOperations.pop();if(a1)return a1.reject(e1),a1.promise}function q(F,e1){return new d(function(K,a1){if(w[F.name]=w[F.name]||Z(),F.db)if(e1)L(F),F.db.close();else return K(F.db);var l1=[F.name];e1&&l1.push(F.version);var n1=f.open.apply(f,l1);e1&&(n1.onupgradeneeded=function(w1){var V1=n1.result;try{V1.createObjectStore(F.storeName),w1.oldVersion<=1&&V1.createObjectStore(x)}catch(E1){if(E1.name==="ConstraintError")console.warn('The database "'+F.name+'" has been upgraded from version '+w1.oldVersion+" to version "+w1.newVersion+', but the storage "'+F.storeName+'" already exists.');else throw E1}}),n1.onerror=function(w1){w1.preventDefault(),a1(n1.error)},n1.onsuccess=function(){var w1=n1.result;w1.onversionchange=function(V1){V1.target.close()},K(w1),N(F)}})}function J(F){return q(F,!1)}function $(F){return q(F,!0)}function E(F,e1){if(!F.db)return!0;var K=!F.db.objectStoreNames.contains(F.storeName),a1=F.versionF.db.version;if(a1&&(F.version!==e1&&console.warn('The database "'+F.name+`" can't be downgraded from version `+F.db.version+" to version "+F.version+"."),F.version=F.db.version),l1||K){if(K){var n1=F.db.version+1;n1>F.version&&(F.version=n1)}return!0}return!1}function O(F){return new d(function(e1,K){var a1=new FileReader;a1.onerror=K,a1.onloadend=function(l1){var n1=btoa(l1.target.result||"");e1({__local_forage_encoded_blob:!0,data:n1,type:F.type})},a1.readAsBinaryString(F)})}function B(F){var e1=V(atob(F.data));return p([e1],{type:F.type})}function k(F){return F&&F.__local_forage_encoded_blob}function R(F){var e1=this,K=e1._initReady().then(function(){var a1=w[e1._dbInfo.name];if(a1&&a1.dbReady)return a1.dbReady});return y(K,F,F),K}function j(F){L(F);for(var e1=w[F.name],K=e1.forages,a1=0;a10&&(!F.db||n1.name==="InvalidStateError"||n1.name==="NotFoundError"))return d.resolve().then(function(){if(!F.db||n1.name==="NotFoundError"&&!F.db.objectStoreNames.contains(F.storeName)&&F.version<=F.db.version)return F.db&&(F.version=F.db.version+1),$(F)}).then(function(){return j(F).then(function(){Y(F,e1,K,a1-1)})}).catch(K);K(n1)}}function Z(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function h1(F){var e1=this,K={db:null};if(F)for(var a1 in F)K[a1]=F[a1];var l1=w[K.name];l1||(l1=Z(),w[K.name]=l1),l1.forages.push(e1),e1._initReady||(e1._initReady=e1.ready,e1.ready=R);var n1=[];function w1(){return d.resolve()}for(var V1=0;V1>4,T1[l1++]=(w1&15)<<4|V1>>2,T1[l1++]=(V1&3)<<6|E1&63;return N1}function jn(F){var e1=new Uint8Array(F),K="",a1;for(a1=0;a1>2],K+=W[(e1[a1]&3)<<4|e1[a1+1]>>4],K+=W[(e1[a1+1]&15)<<2|e1[a1+2]>>6],K+=W[e1[a1+2]&63];return e1.length%3===2?K=K.substring(0,K.length-1)+"=":e1.length%3===1&&(K=K.substring(0,K.length-2)+"=="),K}function Vo(F,e1){var K="";if(F&&(K=Fn.call(F)),F&&(K==="[object ArrayBuffer]"||F.buffer&&Fn.call(F.buffer)==="[object ArrayBuffer]")){var a1,l1=m1;F instanceof ArrayBuffer?(a1=F,l1+=H1):(a1=F.buffer,K==="[object Int8Array]"?l1+=_1:K==="[object Uint8Array]"?l1+=R1:K==="[object Uint8ClampedArray]"?l1+=l2:K==="[object Int16Array]"?l1+=n2:K==="[object Uint16Array]"?l1+=Kt:K==="[object Int32Array]"?l1+=ie:K==="[object Uint32Array]"?l1+=Re:K==="[object Float32Array]"?l1+=Ar:K==="[object Float64Array]"?l1+=j2:e1(new Error("Failed to get type for BinaryArray"))),e1(l1+jn(a1))}else if(K==="[object Blob]"){var n1=new FileReader;n1.onload=function(){var w1=r1+F.type+"~"+jn(this.result);e1(m1+O1+w1)},n1.readAsArrayBuffer(F)}else try{e1(JSON.stringify(F))}catch(w1){console.error("Couldn't convert value into a JSON string: ",F),e1(null,w1)}}function Ao(F){if(F.substring(0,s1)!==m1)return JSON.parse(F);var e1=F.substring(dn),K=F.substring(s1,dn),a1;if(K===O1&&g1.test(e1)){var l1=e1.match(g1);a1=l1[1],e1=e1.substring(l1[0].length)}var n1=ht(e1);switch(K){case H1:return n1;case O1:return p([n1],{type:a1});case _1:return new Int8Array(n1);case R1:return new Uint8Array(n1);case l2:return new Uint8ClampedArray(n1);case n2:return new Int16Array(n1);case Kt:return new Uint16Array(n1);case ie:return new Int32Array(n1);case Re:return new Uint32Array(n1);case Ar:return new Float32Array(n1);case j2:return new Float64Array(n1);default:throw new Error("Unkown type: "+K)}}var Ua={serialize:Vo,deserialize:Ao,stringToBuffer:ht,bufferToString:jn};function g4(F,e1,K,a1){F.executeSql("CREATE TABLE IF NOT EXISTS "+e1.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],K,a1)}function Un(F){var e1=this,K={db:null};if(F)for(var a1 in F)K[a1]=typeof F[a1]!="string"?F[a1].toString():F[a1];var l1=new d(function(n1,w1){try{K.db=openDatabase(K.name,String(K.version),K.description,K.size)}catch(V1){return w1(V1)}K.db.transaction(function(V1){g4(V1,K,function(){e1._dbInfo=K,n1()},function(E1,N1){w1(N1)})},w1)});return K.serializer=Ua,l1}function Vt(F,e1,K,a1,l1,n1){F.executeSql(K,a1,l1,function(w1,V1){V1.code===V1.SYNTAX_ERR?w1.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[e1.storeName],function(E1,N1){N1.rows.length?n1(E1,V1):g4(E1,e1,function(){E1.executeSql(K,a1,l1,n1)},n1)},n1):n1(w1,V1)},n1)}function yd(F,e1){var K=this;F=g(F);var a1=new d(function(l1,n1){K.ready().then(function(){var w1=K._dbInfo;w1.db.transaction(function(V1){Vt(V1,w1,"SELECT * FROM "+w1.storeName+" WHERE key = ? LIMIT 1",[F],function(E1,N1){var T1=N1.rows.length?N1.rows.item(0).value:null;T1&&(T1=w1.serializer.deserialize(T1)),l1(T1)},function(E1,N1){n1(N1)})})}).catch(n1)});return m(a1,e1),a1}function xd(F,e1){var K=this,a1=new d(function(l1,n1){K.ready().then(function(){var w1=K._dbInfo;w1.db.transaction(function(V1){Vt(V1,w1,"SELECT * FROM "+w1.storeName,[],function(E1,N1){for(var T1=N1.rows,W1=T1.length,s2=0;s20){w1(g5.apply(l1,[F,E1,K,a1-1]));return}V1(s2)}})})}).catch(V1)});return m(n1,K),n1}function y5(F,e1,K){return g5.apply(this,[F,e1,K,1])}function bd(F,e1){var K=this;F=g(F);var a1=new d(function(l1,n1){K.ready().then(function(){var w1=K._dbInfo;w1.db.transaction(function(V1){Vt(V1,w1,"DELETE FROM "+w1.storeName+" WHERE key = ?",[F],function(){l1()},function(E1,N1){n1(N1)})})}).catch(n1)});return m(a1,e1),a1}function wd(F){var e1=this,K=new d(function(a1,l1){e1.ready().then(function(){var n1=e1._dbInfo;n1.db.transaction(function(w1){Vt(w1,n1,"DELETE FROM "+n1.storeName,[],function(){a1()},function(V1,E1){l1(E1)})})}).catch(l1)});return m(K,F),K}function zd(F){var e1=this,K=new d(function(a1,l1){e1.ready().then(function(){var n1=e1._dbInfo;n1.db.transaction(function(w1){Vt(w1,n1,"SELECT COUNT(key) as c FROM "+n1.storeName,[],function(V1,E1){var N1=E1.rows.item(0).c;a1(N1)},function(V1,E1){l1(E1)})})}).catch(l1)});return m(K,F),K}function Eo(F,e1){var K=this,a1=new d(function(l1,n1){K.ready().then(function(){var w1=K._dbInfo;w1.db.transaction(function(V1){Vt(V1,w1,"SELECT key FROM "+w1.storeName+" WHERE id = ? LIMIT 1",[F+1],function(E1,N1){var T1=N1.rows.length?N1.rows.item(0).key:null;l1(T1)},function(E1,N1){n1(N1)})})}).catch(n1)});return m(a1,e1),a1}function Md(F){var e1=this,K=new d(function(a1,l1){e1.ready().then(function(){var n1=e1._dbInfo;n1.db.transaction(function(w1){Vt(w1,n1,"SELECT key FROM "+n1.storeName,[],function(V1,E1){for(var N1=[],T1=0;T1 '__WebKitDatabaseInfoTable__'",[],function(l1,n1){for(var w1=[],V1=0;V10}function Vd(F){var e1=this,K={};if(F)for(var a1 in F)K[a1]=F[a1];return K.keyPrefix=x5(F,e1._defaultConfig),Ld()?(e1._dbInfo=K,K.serializer=Ua,d.resolve()):d.reject()}function Ad(F){var e1=this,K=e1.ready().then(function(){for(var a1=e1._dbInfo.keyPrefix,l1=localStorage.length-1;l1>=0;l1--){var n1=localStorage.key(l1);n1.indexOf(a1)===0&&localStorage.removeItem(n1)}});return m(K,F),K}function b5(F,e1){var K=this;F=g(F);var a1=K.ready().then(function(){var l1=K._dbInfo,n1=localStorage.getItem(l1.keyPrefix+F);return n1&&(n1=l1.serializer.deserialize(n1)),n1});return m(a1,e1),a1}function Ed(F,e1){var K=this,a1=K.ready().then(function(){for(var l1=K._dbInfo,n1=l1.keyPrefix,w1=n1.length,V1=localStorage.length,E1=1,N1=0;N1=0;w1--){var V1=localStorage.key(w1);V1.indexOf(n1)===0&&localStorage.removeItem(V1)}}):l1=d.reject("Invalid arguments"),m(l1,e1),l1}var Id={_driver:"localStorageWrapper",_initStorage:Vd,_support:_d(),iterate:Ed,getItem:b5,setItem:Pd,removeItem:Td,clear:Ad,length:Od,key:kd,keys:Nd,dropInstance:V6},A6=function(e1,K){return e1===K||typeof e1=="number"&&typeof K=="number"&&isNaN(e1)&&isNaN(K)},Rd=function(e1,K){for(var a1=e1.length,l1=0;l1"u"?"undefined":c(K))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var a1 in K){if(a1==="storeName"&&(K[a1]=K[a1].replace(/\W/g,"_")),a1==="version"&&typeof K[a1]!="number")return new Error("Database version must be a number.");this._config[a1]=K[a1]}return"driver"in K&&K.driver?this.setDriver(this._config.driver):!0}else return typeof K=="string"?this._config[K]:this._config},F.prototype.defineDriver=function(K,a1,l1){var n1=new d(function(w1,V1){try{var E1=K._driver,N1=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!K._driver){V1(N1);return}for(var T1=Oo.concat("_initStorage"),W1=0,s2=T1.length;W1{"use strict";var Gs1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";_I.exports=Gs1});var EI=X((sE1,AI)=>{"use strict";var Ks1=SI();function LI(){}function VI(){}VI.resetWarningCache=LI;AI.exports=function(){function e(n,a,i,c,o,l){if(l!==Ks1){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:VI,resetWarningCache:LI};return r.PropTypes=r,r}});var tw=X((uE1,kI)=>{kI.exports=EI()();var lE1,fE1});var jI=X((FI,V9)=>{(function(){function e(I){if(I=I||{},this.method=I.method||2,this.colors=I.colors||256,this.initColors=I.initColors||4096,this.initDist=I.initDist||.01,this.distIncr=I.distIncr||.005,this.hueGroups=I.hueGroups||10,this.satGroups=I.satGroups||10,this.lumGroups=I.lumGroups||10,this.minHueCols=I.minHueCols||0,this.hueStats=this.minHueCols?new t(this.hueGroups,this.minHueCols):null,this.boxSize=I.boxSize||[64,64],this.boxPxls=I.boxPxls||2,this.palLocked=!1,this.dithKern=I.dithKern||null,this.dithSerp=I.dithSerp||!1,this.dithDelta=I.dithDelta||0,this.histogram={},this.idxrgb=I.palette?I.palette.slice(0):[],this.idxi32=[],this.i32idx={},this.i32rgb={},this.useCache=I.useCache!==!1,this.cacheFreq=I.cacheFreq||10,this.reIndex=I.reIndex||this.idxrgb.length==0,this.colorDist=I.colorDist=="manhattan"?d:h,this.idxrgb.length>0){var L=this;this.idxrgb.forEach(function(N,C){var q=(-16777216|N[2]<<16|N[1]<<8|N[0])>>>0;L.idxi32[C]=q,L.i32idx[q]=C,L.i32rgb[q]=N})}}e.prototype.sample=function(L,N){if(this.palLocked)throw"Cannot sample additional images, palette already assembled.";var C=M(L,N);switch(this.method){case 1:this.colorStats1D(C.buf32);break;case 2:this.colorStats2D(C.buf32,C.width);break}},e.prototype.reduce=function(L,N,C,q){if(this.palLocked||this.buildPal(),C=C||this.dithKern,q=typeof q<"u"?q:this.dithSerp,N=N||1,C)var J=this.dither(L,C,q);else for(var $=M(L),E=$.buf32,O=E.length,J=new Uint32Array(O),B=0;B>8,q1=(S1&16711680)>>16,f1=this.nearestColor(S1),D1=f1&255,A1=(f1&65280)>>8,S=(f1&16711680)>>16;if($[h1]=255<<24|S<<16|A1<<8|D1,this.dithDelta){var u1=this.colorDist([v1,z1,q1],[D1,A1,S]);if(u1=0&&m1+Y=0&&s1+R>8,n2=($[_1]&16711680)>>16,ie=Math.max(0,Math.min(255,R1+c1*O1)),Kt=Math.max(0,Math.min(255,l2+G*O1)),Re=Math.max(0,Math.min(255,n2+W*O1));$[_1]=255<<24|Re<<16|Kt<<8|ie}}}}return $},e.prototype.buildPal=function(L){if(!(this.palLocked||this.idxrgb.length>0&&this.idxrgb.length<=this.colors)){var N=this.histogram,C=T(N,!0);if(C.length==0)throw"Nothing has been sampled, palette cannot be built.";switch(this.method){case 1:for(var q=this.initColors,J=C[q-1],$=N[J],B=C.slice(0,q),E=q,O=C.length;Ethis.colors){for(var N=L.length,C={},q=0,J,$=!1,E=0;E>8,(f1&16711680)>>16]}),N=O.length,B=N,k=this.initDist;if(B>this.colors){for(;B>this.colors;){for(var R=[],E=0;Ethis.colors*3?this.initDist:this.distIncr}if(B>24&&(this.hueStats&&this.hueStats.check(q),q in N?N[q]++:N[q]=1)},e.prototype.colorStats2D=function(L,N){var C=this.boxSize[0],q=this.boxSize[1],J=C*q,$=H(N,L.length/N,C,q),E=this.histogram,O=this;$.forEach(function(B){var k=Math.max(Math.round(B.w*B.h/J)*O.boxPxls,2),R={},j;V(B,N,function(Y){j=L[Y],(j&4278190080)>>24&&(O.hueStats&&O.hueStats.check(j),j in E?E[j]++:j in R?++R[j]>=k&&(E[j]=R[j]):R[j]=1)})}),this.hueStats&&this.hueStats.inject(E)},e.prototype.sortPal=function(){var L=this;this.idxi32.sort(function(N,C){var q=L.i32idx[N],J=L.i32idx[C],$=L.idxrgb[q],E=L.idxrgb[J],O=m($[0],$[1],$[2]),B=m(E[0],E[1],E[2]),k=$[0]==$[1]&&$[1]==$[2]?-1:y(O.h,L.hueGroups),R=E[0]==E[1]&&E[1]==E[2]?-1:y(B.h,L.hueGroups),j=R-k;if(j)return-j;var Y=+B.l.toFixed(2)-+O.l.toFixed(2);if(Y)return-Y;var Z=+B.s.toFixed(2)-+O.s.toFixed(2);if(Z)return-Z}),this.idxi32.forEach(function(N,C){L.idxrgb[C]=L.i32rgb[N],L.i32idx[N]=C})},e.prototype.nearestColor=function(L){var N=this.nearestIndex(L);return N===null?0:this.idxi32[N]},e.prototype.nearestIndex=function(L){if(!((L&4278190080)>>24))return null;if(this.useCache&&""+L in this.i32idx)return this.i32idx[L];for(var N=1e3,C,q=[L&255,(L&65280)>>8,(L&16711680)>>16],J=this.idxrgb.length,$=0;$=this.cacheFreq;C=L[N++])this.i32idx[C]=this.nearestIndex(C)};function t(I,L){this.numGroups=I,this.minCols=L,this.stats={};for(var N=-1;N>8,q=(L&16711680)>>16,J=N==C&&C==q?-1:y(m(N,C,q).h,this.numGroups),$=this.stats[J],E=this.minCols;$.num++,!($.num>E)&&($.num==E&&this.groupsFull++,$.num<=E&&this.stats[J].cols.push(L))},t.prototype.inject=function(L){for(var N=-1;N.5?O/(2-C-q):O/(C+q),C){case I:J=(L-N)/O+(L=1-C||I<=C)return 0;for(var q=1;q=J-C&&I<=J+C)return q}}function g(I){return I}function z(I){return I}function x(I){return Object.prototype.toString.call(I).slice(8,-1)}var b=A()?Array.prototype.sort:w;function w(I){var L=x(this[0]);if(L=="Number"||L=="String"){for(var N={},C=this.length,q,J=0;J{(function(e){typeof UI=="object"&&typeof ow<"u"?ow.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=e()})(function(){return function e(t,r,n){function a(o,l){if(!r[o]){if(!t[o]){var f=typeof Kn=="function"&&Kn;if(!l&&f)return f(o,!0);if(i)return i(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var p=r[o]={exports:{}};t[o][0].call(p.exports,function(d){var m=t[o][1][d];return a(m||d)},p,p.exports,e,t,r,n)}return r[o].exports}for(var i=typeof Kn=="function"&&Kn,c=0;c>2,p=(3&o)<<4|l>>4,d=1>6:64,m=2>4,l=(15&h)<<4|(p=i.indexOf(c.charAt(m++)))>>2,f=(3&p)<<6|(d=i.indexOf(c.charAt(m++))),z[y++]=o,p!==64&&(z[y++]=l),d!==64&&(z[y++]=f);return z}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),a=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),c=e("./stream/DataLengthProbe");function o(l,f,h,p,d){this.compressedSize=l,this.uncompressedSize=f,this.crc32=h,this.compression=p,this.compressedContent=d}o.prototype={getContentWorker:function(){var l=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),f=this;return l.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(l,f,h){return l.pipe(new i).pipe(new c("uncompressedSize")).pipe(f.compressWorker(h)).pipe(new c("compressedSize")).withStreamInfo("compression",f)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),a=function(){for(var i,c=[],o=0;o<256;o++){i=o;for(var l=0;l<8;l++)i=1&i?3988292384^i>>>1:i>>>1;c[o]=i}return c}();t.exports=function(i,c){return i!==void 0&&i.length?n.getTypeOf(i)!=="string"?function(o,l,f,h){var p=a,d=h+f;o^=-1;for(var m=h;m>>8^p[255&(o^l[m])];return-1^o}(0|c,i,i.length,0):function(o,l,f,h){var p=a,d=h+f;o^=-1;for(var m=h;m>>8^p[255&(o^l.charCodeAt(m))];return-1^o}(0|c,i,i.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n=typeof Promise<"u"?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=e("pako"),i=e("./utils"),c=e("./stream/GenericWorker"),o=n?"uint8array":"array";function l(f,h){c.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=h,this.meta={}}r.magic="\b\0",i.inherits(l,c),l.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(i.transformTo(o,f.data),!1)},l.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(h){f.push({data:h,meta:f.meta})}},r.compressWorker=function(f){return new l("Deflate",f)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(p,d){var m,y="";for(m=0;m>>=8;return y}function a(p,d,m,y,g,z){var x,b,w=p.file,A=p.compression,M=z!==o.utf8encode,H=i.transformTo("string",z(w.name)),V=i.transformTo("string",o.utf8encode(w.name)),T=w.comment,I=i.transformTo("string",z(T)),L=i.transformTo("string",o.utf8encode(T)),N=V.length!==w.name.length,C=L.length!==T.length,q="",J="",$="",E=w.dir,O=w.date,B={crc32:0,compressedSize:0,uncompressedSize:0};d&&!m||(B.crc32=p.crc32,B.compressedSize=p.compressedSize,B.uncompressedSize=p.uncompressedSize);var k=0;d&&(k|=8),M||!N&&!C||(k|=2048);var R=0,j=0;E&&(R|=16),g==="UNIX"?(j=798,R|=function(Z,h1){var S1=Z;return Z||(S1=h1?16893:33204),(65535&S1)<<16}(w.unixPermissions,E)):(j=20,R|=function(Z){return 63&(Z||0)}(w.dosPermissions)),x=O.getUTCHours(),x<<=6,x|=O.getUTCMinutes(),x<<=5,x|=O.getUTCSeconds()/2,b=O.getUTCFullYear()-1980,b<<=4,b|=O.getUTCMonth()+1,b<<=5,b|=O.getUTCDate(),N&&(J=n(1,1)+n(l(H),4)+V,q+="up"+n(J.length,2)+J),C&&($=n(1,1)+n(l(I),4)+L,q+="uc"+n($.length,2)+$);var Y="";return Y+=` \0`,Y+=n(k,2),Y+=A.magic,Y+=n(x,2),Y+=n(b,2),Y+=n(B.crc32,4),Y+=n(B.compressedSize,4),Y+=n(B.uncompressedSize,4),Y+=n(H.length,2),Y+=n(q.length,2),{fileRecord:f.LOCAL_FILE_HEADER+Y+H+q,dirRecord:f.CENTRAL_FILE_HEADER+n(j,2)+Y+n(I.length,2)+"\0\0\0\0"+n(R,4)+n(y,4)+H+q+I}}var i=e("../utils"),c=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),f=e("../signature");function h(p,d,m,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=m,this.encodeFileName=y,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(h,c),h.prototype.push=function(p){var d=p.meta.percent||0,m=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,c.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:m?(d+100*(m-y-1))/m:100}}))},h.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var d=this.streamFiles&&!p.file.dir;if(d){var m=a(p,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(p){this.accumulate=!1;var d=this.streamFiles&&!p.file.dir,m=a(p,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),d)this.push({data:function(y){return f.DATA_DESCRIPTOR+n(y.crc32,4)+n(y.compressedSize,4)+n(y.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var p=this.bytesWritten,d=0;d=this.index;c--)o=(o<<8)+this.byteAt(c);return this.index+=i,o},readString:function(i){return n.transformTo("string",this.readData(i))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},t.exports=a},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function a(i){n.call(this,i)}e("../utils").inherits(a,n),a.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},t.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function a(i){n.call(this,i)}e("../utils").inherits(a,n),a.prototype.byteAt=function(i){return this.data.charCodeAt(this.zero+i)},a.prototype.lastIndexOfSignature=function(i){return this.data.lastIndexOf(i)-this.zero},a.prototype.readAndCheckSignature=function(i){return i===this.readData(4)},a.prototype.readData=function(i){this.checkOffset(i);var c=this.data.slice(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},t.exports=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function a(i){n.call(this,i)}e("../utils").inherits(a,n),a.prototype.readData=function(i){if(this.checkOffset(i),i===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+i);return this.index+=i,c},t.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),a=e("../support"),i=e("./ArrayReader"),c=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(f){var h=n.getTypeOf(f);return n.checkSupport(h),h!=="string"||a.uint8array?h==="nodebuffer"?new o(f):a.uint8array?new l(n.transformTo("uint8array",f)):new i(n.transformTo("array",f)):new c(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),a=e("../utils");function i(c){n.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(i,n),i.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),a=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./GenericWorker");function i(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}n.inherits(i,a),i.prototype.processChunk=function(c){if(c){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+c.data.length}a.prototype.processChunk.call(this,c)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./GenericWorker");function i(c){a.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(l){o.dataIsReady=!0,o.data=l,o.max=l&&l.length||0,o.type=n.getTypeOf(l),o.isPaused||o._tickAndRepeat()},function(l){o.error(l)})}n.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,o);break;case"uint8array":c=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":c=this.data.slice(this.index,o)}return this.index=o,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(a){this.name=a||"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}n.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,i){return this._listeners[a].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,i){if(this._listeners[a])for(var c=0;c "+a:a}},t.exports=n},{}],29:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./ConvertWorker"),i=e("./GenericWorker"),c=e("../base64"),o=e("../support"),l=e("../external"),f=null;if(o.nodestream)try{f=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(d,m){return new l.Promise(function(y,g){var z=[],x=d._internalType,b=d._outputType,w=d._mimeType;d.on("data",function(A,M){z.push(A),m&&m(M)}).on("error",function(A){z=[],g(A)}).on("end",function(){try{var A=function(M,H,V){switch(M){case"blob":return n.newBlob(n.transformTo("arraybuffer",H),V);case"base64":return c.encode(H);default:return n.transformTo(M,H)}}(b,function(M,H){var V,T=0,I=null,L=0;for(V=0;V"u")r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=new Blob([n],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(n),r.blob=a.getBlob("application/zip").size===0}catch{r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var n=e("./utils"),a=e("./support"),i=e("./nodejsUtils"),c=e("./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 f(){c.call(this,"utf-8 decode"),this.leftOver=null}function h(){c.call(this,"utf-8 encode")}r.utf8encode=function(p){return a.nodebuffer?i.newBufferFrom(p,"utf-8"):function(d){var m,y,g,z,x,b=d.length,w=0;for(z=0;z>>6:(y<65536?m[x++]=224|y>>>12:(m[x++]=240|y>>>18,m[x++]=128|y>>>12&63),m[x++]=128|y>>>6&63),m[x++]=128|63&y);return m}(p)},r.utf8decode=function(p){return a.nodebuffer?n.transformTo("nodebuffer",p).toString("utf-8"):function(d){var m,y,g,z,x=d.length,b=new Array(2*x);for(m=y=0;m>10&1023,b[y++]=56320|1023&g)}return b.length!==y&&(b.subarray?b=b.subarray(0,y):b.length=y),n.applyFromCharCode(b)}(p=n.transformTo(a.uint8array?"uint8array":"array",p))},n.inherits(f,c),f.prototype.processChunk=function(p){var d=n.transformTo(a.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var m=d;(d=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),d.set(m,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var y=function(z,x){var b;for((x=x||z.length)>z.length&&(x=z.length),b=x-1;0<=b&&(192&z[b])==128;)b--;return b<0||b===0?x:b+o[z[b]]>x?b:x}(d),g=d;y!==d.length&&(a.uint8array?(g=d.subarray(0,y),this.leftOver=d.subarray(y,d.length)):(g=d.slice(0,y),this.leftOver=d.slice(y,d.length))),this.push({data:r.utf8decode(g),meta:p.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=f,n.inherits(h,c),h.prototype.processChunk=function(p){this.push({data:r.utf8encode(p.data),meta:p.meta})},r.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),a=e("./base64"),i=e("./nodejsUtils"),c=e("./external");function o(m){return m}function l(m,y){for(var g=0;g>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var d,m,y,g=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4>>6:(p<65536?h[y++]=224|p>>>12:(h[y++]=240|p>>>18,h[y++]=128|p>>>12&63),h[y++]=128|p>>>6&63),h[y++]=128|63&p);return h},r.buf2binstring=function(f){return l(f,f.length)},r.binstring2buf=function(f){for(var h=new n.Buf8(f.length),p=0,d=h.length;p>10&1023,z[d++]=56320|1023&m)}return l(z,d)},r.utf8border=function(f,h){var p;for((h=h||f.length)>f.length&&(h=f.length),p=h-1;0<=p&&(192&f[p])==128;)p--;return p<0||p===0?h:p+c[f[p]]>h?p:h}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(n,a,i,c){for(var o=65535&n|0,l=n>>>16&65535|0,f=0;i!==0;){for(i-=f=2e3>>1:a>>>1;i[c]=a}return i}();t.exports=function(a,i,c,o){var l=n,f=o+c;a^=-1;for(var h=o;h>>8^l[255&(a^i[h])];return-1^a}},{}],46:[function(e,t,r){"use strict";var n,a=e("../utils/common"),i=e("./trees"),c=e("./adler32"),o=e("./crc32"),l=e("./messages"),f=0,h=4,p=0,d=-2,m=-1,y=4,g=2,z=8,x=9,b=286,w=30,A=19,M=2*b+1,H=15,V=3,T=258,I=T+V+1,L=42,N=113,C=1,q=2,J=3,$=4;function E(S,u1){return S.msg=l[u1],u1}function O(S){return(S<<1)-(4S.avail_out&&(c1=S.avail_out),c1!==0&&(a.arraySet(S.output,u1.pending_buf,u1.pending_out,c1,S.next_out),S.next_out+=c1,u1.pending_out+=c1,S.total_out+=c1,S.avail_out-=c1,u1.pending-=c1,u1.pending===0&&(u1.pending_out=0))}function R(S,u1){i._tr_flush_block(S,0<=S.block_start?S.block_start:-1,S.strstart-S.block_start,u1),S.block_start=S.strstart,k(S.strm)}function j(S,u1){S.pending_buf[S.pending++]=u1}function Y(S,u1){S.pending_buf[S.pending++]=u1>>>8&255,S.pending_buf[S.pending++]=255&u1}function Z(S,u1){var c1,G,W=S.max_chain_length,r1=S.strstart,g1=S.prev_length,m1=S.nice_match,s1=S.strstart>S.w_size-I?S.strstart-(S.w_size-I):0,H1=S.window,O1=S.w_mask,_1=S.prev,R1=S.strstart+T,l2=H1[r1+g1-1],n2=H1[r1+g1];S.prev_length>=S.good_match&&(W>>=2),m1>S.lookahead&&(m1=S.lookahead);do if(H1[(c1=u1)+g1]===n2&&H1[c1+g1-1]===l2&&H1[c1]===H1[r1]&&H1[++c1]===H1[r1+1]){r1+=2,c1++;do;while(H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&H1[++r1]===H1[++c1]&&r1s1&&--W!=0);return g1<=S.lookahead?g1:S.lookahead}function h1(S){var u1,c1,G,W,r1,g1,m1,s1,H1,O1,_1=S.w_size;do{if(W=S.window_size-S.lookahead-S.strstart,S.strstart>=_1+(_1-I)){for(a.arraySet(S.window,S.window,_1,_1,0),S.match_start-=_1,S.strstart-=_1,S.block_start-=_1,u1=c1=S.hash_size;G=S.head[--u1],S.head[u1]=_1<=G?G-_1:0,--c1;);for(u1=c1=_1;G=S.prev[--u1],S.prev[u1]=_1<=G?G-_1:0,--c1;);W+=_1}if(S.strm.avail_in===0)break;if(g1=S.strm,m1=S.window,s1=S.strstart+S.lookahead,H1=W,O1=void 0,O1=g1.avail_in,H1=V)for(r1=S.strstart-S.insert,S.ins_h=S.window[r1],S.ins_h=(S.ins_h<=V&&(S.ins_h=(S.ins_h<=V)if(G=i._tr_tally(S,S.strstart-S.match_start,S.match_length-V),S.lookahead-=S.match_length,S.match_length<=S.max_lazy_match&&S.lookahead>=V){for(S.match_length--;S.strstart++,S.ins_h=(S.ins_h<=V&&(S.ins_h=(S.ins_h<=V&&S.match_length<=S.prev_length){for(W=S.strstart+S.lookahead-V,G=i._tr_tally(S,S.strstart-1-S.prev_match,S.prev_length-V),S.lookahead-=S.prev_length-1,S.prev_length-=2;++S.strstart<=W&&(S.ins_h=(S.ins_h<S.pending_buf_size-5&&(c1=S.pending_buf_size-5);;){if(S.lookahead<=1){if(h1(S),S.lookahead===0&&u1===f)return C;if(S.lookahead===0)break}S.strstart+=S.lookahead,S.lookahead=0;var G=S.block_start+c1;if((S.strstart===0||S.strstart>=G)&&(S.lookahead=S.strstart-G,S.strstart=G,R(S,!1),S.strm.avail_out===0)||S.strstart-S.block_start>=S.w_size-I&&(R(S,!1),S.strm.avail_out===0))return C}return S.insert=0,u1===h?(R(S,!0),S.strm.avail_out===0?J:$):(S.strstart>S.block_start&&(R(S,!1),S.strm.avail_out),C)}),new z1(4,4,8,4,S1),new z1(4,5,16,8,S1),new z1(4,6,32,32,S1),new z1(4,4,16,16,v1),new z1(8,16,32,32,v1),new z1(8,16,128,128,v1),new z1(8,32,128,256,v1),new z1(32,128,258,1024,v1),new z1(32,258,258,4096,v1)],r.deflateInit=function(S,u1){return A1(S,u1,z,15,8,0)},r.deflateInit2=A1,r.deflateReset=D1,r.deflateResetKeep=f1,r.deflateSetHeader=function(S,u1){return S&&S.state?S.state.wrap!==2?d:(S.state.gzhead=u1,p):d},r.deflate=function(S,u1){var c1,G,W,r1;if(!S||!S.state||5>8&255),j(G,G.gzhead.time>>16&255),j(G,G.gzhead.time>>24&255),j(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),j(G,255&G.gzhead.os),G.gzhead.extra&&G.gzhead.extra.length&&(j(G,255&G.gzhead.extra.length),j(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(S.adler=o(S.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(j(G,0),j(G,0),j(G,0),j(G,0),j(G,0),j(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),j(G,3),G.status=N);else{var g1=z+(G.w_bits-8<<4)<<8;g1|=(2<=G.strategy||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6,G.strstart!==0&&(g1|=32),g1+=31-g1%31,G.status=N,Y(G,g1),G.strstart!==0&&(Y(G,S.adler>>>16),Y(G,65535&S.adler)),S.adler=1}if(G.status===69)if(G.gzhead.extra){for(W=G.pending;G.gzindex<(65535&G.gzhead.extra.length)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>W&&(S.adler=o(S.adler,G.pending_buf,G.pending-W,W)),k(S),W=G.pending,G.pending!==G.pending_buf_size));)j(G,255&G.gzhead.extra[G.gzindex]),G.gzindex++;G.gzhead.hcrc&&G.pending>W&&(S.adler=o(S.adler,G.pending_buf,G.pending-W,W)),G.gzindex===G.gzhead.extra.length&&(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){W=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>W&&(S.adler=o(S.adler,G.pending_buf,G.pending-W,W)),k(S),W=G.pending,G.pending===G.pending_buf_size)){r1=1;break}r1=G.gzindexW&&(S.adler=o(S.adler,G.pending_buf,G.pending-W,W)),r1===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===91)if(G.gzhead.comment){W=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>W&&(S.adler=o(S.adler,G.pending_buf,G.pending-W,W)),k(S),W=G.pending,G.pending===G.pending_buf_size)){r1=1;break}r1=G.gzindexW&&(S.adler=o(S.adler,G.pending_buf,G.pending-W,W)),r1===0&&(G.status=103)}else G.status=103;if(G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&k(S),G.pending+2<=G.pending_buf_size&&(j(G,255&S.adler),j(G,S.adler>>8&255),S.adler=0,G.status=N)):G.status=N),G.pending!==0){if(k(S),S.avail_out===0)return G.last_flush=-1,p}else if(S.avail_in===0&&O(u1)<=O(c1)&&u1!==h)return E(S,-5);if(G.status===666&&S.avail_in!==0)return E(S,-5);if(S.avail_in!==0||G.lookahead!==0||u1!==f&&G.status!==666){var m1=G.strategy===2?function(s1,H1){for(var O1;;){if(s1.lookahead===0&&(h1(s1),s1.lookahead===0)){if(H1===f)return C;break}if(s1.match_length=0,O1=i._tr_tally(s1,0,s1.window[s1.strstart]),s1.lookahead--,s1.strstart++,O1&&(R(s1,!1),s1.strm.avail_out===0))return C}return s1.insert=0,H1===h?(R(s1,!0),s1.strm.avail_out===0?J:$):s1.last_lit&&(R(s1,!1),s1.strm.avail_out===0)?C:q}(G,u1):G.strategy===3?function(s1,H1){for(var O1,_1,R1,l2,n2=s1.window;;){if(s1.lookahead<=T){if(h1(s1),s1.lookahead<=T&&H1===f)return C;if(s1.lookahead===0)break}if(s1.match_length=0,s1.lookahead>=V&&0s1.lookahead&&(s1.match_length=s1.lookahead)}if(s1.match_length>=V?(O1=i._tr_tally(s1,1,s1.match_length-V),s1.lookahead-=s1.match_length,s1.strstart+=s1.match_length,s1.match_length=0):(O1=i._tr_tally(s1,0,s1.window[s1.strstart]),s1.lookahead--,s1.strstart++),O1&&(R(s1,!1),s1.strm.avail_out===0))return C}return s1.insert=0,H1===h?(R(s1,!0),s1.strm.avail_out===0?J:$):s1.last_lit&&(R(s1,!1),s1.strm.avail_out===0)?C:q}(G,u1):n[G.level].func(G,u1);if(m1!==J&&m1!==$||(G.status=666),m1===C||m1===J)return S.avail_out===0&&(G.last_flush=-1),p;if(m1===q&&(u1===1?i._tr_align(G):u1!==5&&(i._tr_stored_block(G,0,0,!1),u1===3&&(B(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),k(S),S.avail_out===0))return G.last_flush=-1,p}return u1!==h?p:G.wrap<=0?1:(G.wrap===2?(j(G,255&S.adler),j(G,S.adler>>8&255),j(G,S.adler>>16&255),j(G,S.adler>>24&255),j(G,255&S.total_in),j(G,S.total_in>>8&255),j(G,S.total_in>>16&255),j(G,S.total_in>>24&255)):(Y(G,S.adler>>>16),Y(G,65535&S.adler)),k(S),0=c1.w_size&&(r1===0&&(B(c1.head),c1.strstart=0,c1.block_start=0,c1.insert=0),H1=new a.Buf8(c1.w_size),a.arraySet(H1,u1,O1-c1.w_size,c1.w_size,0),u1=H1,O1=c1.w_size),g1=S.avail_in,m1=S.next_in,s1=S.input,S.avail_in=O1,S.next_in=0,S.input=u1,h1(c1);c1.lookahead>=V;){for(G=c1.strstart,W=c1.lookahead-(V-1);c1.ins_h=(c1.ins_h<>>=V=H>>>24,x-=V,(V=H>>>16&255)===0)q[l++]=65535&H;else{if(!(16&V)){if(!(64&V)){H=b[(65535&H)+(z&(1<>>=V,x-=V),x<15&&(z+=C[c++]<>>=V=H>>>24,x-=V,!(16&(V=H>>>16&255))){if(!(64&V)){H=w[(65535&H)+(z&(1<>>=V,x-=V,(V=l-f)>3,z&=(1<<(x-=T<<3))-1,n.next_in=c,n.next_out=l,n.avail_in=c>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function x(L){var N;return L&&L.state?(N=L.state,L.total_in=L.total_out=N.total=0,L.msg="",N.wrap&&(L.adler=1&N.wrap),N.mode=d,N.last=0,N.havedict=0,N.dmax=32768,N.head=null,N.hold=0,N.bits=0,N.lencode=N.lendyn=new n.Buf32(m),N.distcode=N.distdyn=new n.Buf32(y),N.sane=1,N.back=-1,h):p}function b(L){var N;return L&&L.state?((N=L.state).wsize=0,N.whave=0,N.wnext=0,x(L)):p}function w(L,N){var C,q;return L&&L.state?(q=L.state,N<0?(C=0,N=-N):(C=1+(N>>4),N<48&&(N&=15)),N&&(N<8||15=$.wsize?(n.arraySet($.window,N,C-$.wsize,$.wsize,0),$.wnext=0,$.whave=$.wsize):(q<(J=$.wsize-$.wnext)&&(J=q),n.arraySet($.window,N,C-q,J,$.wnext),(q-=J)?(n.arraySet($.window,N,C-q,q,0),$.wnext=q,$.whave=$.wsize):($.wnext+=J,$.wnext===$.wsize&&($.wnext=0),$.whave<$.wsize&&($.whave+=J))),0}r.inflateReset=b,r.inflateReset2=w,r.inflateResetKeep=x,r.inflateInit=function(L){return A(L,15)},r.inflateInit2=A,r.inflate=function(L,N){var C,q,J,$,E,O,B,k,R,j,Y,Z,h1,S1,v1,z1,q1,f1,D1,A1,S,u1,c1,G,W=0,r1=new n.Buf8(4),g1=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return p;(C=L.state).mode===12&&(C.mode=13),E=L.next_out,J=L.output,B=L.avail_out,$=L.next_in,q=L.input,O=L.avail_in,k=C.hold,R=C.bits,j=O,Y=B,u1=h;e:for(;;)switch(C.mode){case d:if(C.wrap===0){C.mode=13;break}for(;R<16;){if(O===0)break e;O--,k+=q[$++]<>>8&255,C.check=i(C.check,r1,2,0),R=k=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&k)<<8)+(k>>8))%31){L.msg="incorrect header check",C.mode=30;break}if((15&k)!=8){L.msg="unknown compression method",C.mode=30;break}if(R-=4,S=8+(15&(k>>>=4)),C.wbits===0)C.wbits=S;else if(S>C.wbits){L.msg="invalid window size",C.mode=30;break}C.dmax=1<>8&1),512&C.flags&&(r1[0]=255&k,r1[1]=k>>>8&255,C.check=i(C.check,r1,2,0)),R=k=0,C.mode=3;case 3:for(;R<32;){if(O===0)break e;O--,k+=q[$++]<>>8&255,r1[2]=k>>>16&255,r1[3]=k>>>24&255,C.check=i(C.check,r1,4,0)),R=k=0,C.mode=4;case 4:for(;R<16;){if(O===0)break e;O--,k+=q[$++]<>8),512&C.flags&&(r1[0]=255&k,r1[1]=k>>>8&255,C.check=i(C.check,r1,2,0)),R=k=0,C.mode=5;case 5:if(1024&C.flags){for(;R<16;){if(O===0)break e;O--,k+=q[$++]<>>8&255,C.check=i(C.check,r1,2,0)),R=k=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(O<(Z=C.length)&&(Z=O),Z&&(C.head&&(S=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),n.arraySet(C.head.extra,q,$,Z,S)),512&C.flags&&(C.check=i(C.check,q,Z,$)),O-=Z,$+=Z,C.length-=Z),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(O===0)break e;for(Z=0;S=q[$+Z++],C.head&&S&&C.length<65536&&(C.head.name+=String.fromCharCode(S)),S&&Z>9&1,C.head.done=!0),L.adler=C.check=0,C.mode=12;break;case 10:for(;R<32;){if(O===0)break e;O--,k+=q[$++]<>>=7&R,R-=7&R,C.mode=27;break}for(;R<3;){if(O===0)break e;O--,k+=q[$++]<>>=1)){case 0:C.mode=14;break;case 1:if(T(C),C.mode=20,N!==6)break;k>>>=2,R-=2;break e;case 2:C.mode=17;break;case 3:L.msg="invalid block type",C.mode=30}k>>>=2,R-=2;break;case 14:for(k>>>=7&R,R-=7&R;R<32;){if(O===0)break e;O--,k+=q[$++]<>>16^65535)){L.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&k,R=k=0,C.mode=15,N===6)break e;case 15:C.mode=16;case 16:if(Z=C.length){if(O>>=5,R-=5,C.ndist=1+(31&k),k>>>=5,R-=5,C.ncode=4+(15&k),k>>>=4,R-=4,286>>=3,R-=3}for(;C.have<19;)C.lens[g1[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,c1={bits:C.lenbits},u1=o(0,C.lens,0,19,C.lencode,0,C.work,c1),C.lenbits=c1.bits,u1){L.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have>>16&255,q1=65535&W,!((v1=W>>>24)<=R);){if(O===0)break e;O--,k+=q[$++]<>>=v1,R-=v1,C.lens[C.have++]=q1;else{if(q1===16){for(G=v1+2;R>>=v1,R-=v1,C.have===0){L.msg="invalid bit length repeat",C.mode=30;break}S=C.lens[C.have-1],Z=3+(3&k),k>>>=2,R-=2}else if(q1===17){for(G=v1+3;R>>=v1)),k>>>=3,R-=3}else{for(G=v1+7;R>>=v1)),k>>>=7,R-=7}if(C.have+Z>C.nlen+C.ndist){L.msg="invalid bit length repeat",C.mode=30;break}for(;Z--;)C.lens[C.have++]=S}}if(C.mode===30)break;if(C.lens[256]===0){L.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,c1={bits:C.lenbits},u1=o(l,C.lens,0,C.nlen,C.lencode,0,C.work,c1),C.lenbits=c1.bits,u1){L.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,c1={bits:C.distbits},u1=o(f,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,c1),C.distbits=c1.bits,u1){L.msg="invalid distances set",C.mode=30;break}if(C.mode=20,N===6)break e;case 20:C.mode=21;case 21:if(6<=O&&258<=B){L.next_out=E,L.avail_out=B,L.next_in=$,L.avail_in=O,C.hold=k,C.bits=R,c(L,Y),E=L.next_out,J=L.output,B=L.avail_out,$=L.next_in,q=L.input,O=L.avail_in,k=C.hold,R=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;z1=(W=C.lencode[k&(1<>>16&255,q1=65535&W,!((v1=W>>>24)<=R);){if(O===0)break e;O--,k+=q[$++]<>f1)])>>>16&255,q1=65535&W,!(f1+(v1=W>>>24)<=R);){if(O===0)break e;O--,k+=q[$++]<>>=f1,R-=f1,C.back+=f1}if(k>>>=v1,R-=v1,C.back+=v1,C.length=q1,z1===0){C.mode=26;break}if(32&z1){C.back=-1,C.mode=12;break}if(64&z1){L.msg="invalid literal/length code",C.mode=30;break}C.extra=15&z1,C.mode=22;case 22:if(C.extra){for(G=C.extra;R>>=C.extra,R-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;z1=(W=C.distcode[k&(1<>>16&255,q1=65535&W,!((v1=W>>>24)<=R);){if(O===0)break e;O--,k+=q[$++]<>f1)])>>>16&255,q1=65535&W,!(f1+(v1=W>>>24)<=R);){if(O===0)break e;O--,k+=q[$++]<>>=f1,R-=f1,C.back+=f1}if(k>>>=v1,R-=v1,C.back+=v1,64&z1){L.msg="invalid distance code",C.mode=30;break}C.offset=q1,C.extra=15&z1,C.mode=24;case 24:if(C.extra){for(G=C.extra;R>>=C.extra,R-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){L.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(B===0)break e;if(Z=Y-B,C.offset>Z){if((Z=C.offset-Z)>C.whave&&C.sane){L.msg="invalid distance too far back",C.mode=30;break}h1=Z>C.wnext?(Z-=C.wnext,C.wsize-Z):C.wnext-Z,Z>C.length&&(Z=C.length),S1=C.window}else S1=J,h1=E-C.offset,Z=C.length;for(BM?(V=h1[S1+y[N]],R[j+y[N]]):(V=96,0),z=1<>E)+(x-=z)]=H<<24|V<<16|T|0,x!==0;);for(z=1<>=1;if(z!==0?(k&=z-1,k+=z):k=0,N++,--Y[L]==0){if(L===q)break;L=f[h+y[N]]}if(J>>7)]}function j(W,r1){W.pending_buf[W.pending++]=255&r1,W.pending_buf[W.pending++]=r1>>>8&255}function Y(W,r1,g1){W.bi_valid>g-g1?(W.bi_buf|=r1<>g-W.bi_valid,W.bi_valid+=g1-g):(W.bi_buf|=r1<>>=1,g1<<=1,0<--r1;);return g1>>>1}function S1(W,r1,g1){var m1,s1,H1=new Array(y+1),O1=0;for(m1=1;m1<=y;m1++)H1[m1]=O1=O1+g1[m1-1]<<1;for(s1=0;s1<=r1;s1++){var _1=W[2*s1+1];_1!==0&&(W[2*s1]=h1(H1[_1]++,_1))}}function v1(W){var r1;for(r1=0;r1>1;1<=g1;g1--)f1(W,H1,g1);for(s1=R1;g1=W.heap[1],W.heap[1]=W.heap[W.heap_len--],f1(W,H1,1),m1=W.heap[1],W.heap[--W.heap_max]=g1,W.heap[--W.heap_max]=m1,H1[2*s1]=H1[2*g1]+H1[2*m1],W.depth[s1]=(W.depth[g1]>=W.depth[m1]?W.depth[g1]:W.depth[m1])+1,H1[2*g1+1]=H1[2*m1+1]=s1,W.heap[1]=s1++,f1(W,H1,1),2<=W.heap_len;);W.heap[--W.heap_max]=W.heap[1],function(n2,ie){var Kt,Re,Ar,j2,dn,Fn,ht=ie.dyn_tree,jn=ie.max_code,Vo=ie.stat_desc.static_tree,Ao=ie.stat_desc.has_stree,Ua=ie.stat_desc.extra_bits,g4=ie.stat_desc.extra_base,Un=ie.stat_desc.max_length,Vt=0;for(j2=0;j2<=y;j2++)n2.bl_count[j2]=0;for(ht[2*n2.heap[n2.heap_max]+1]=0,Kt=n2.heap_max+1;Kt>=7;s1>>=1)if(1&l2&&_1.dyn_ltree[2*R1]!==0)return a;if(_1.dyn_ltree[18]!==0||_1.dyn_ltree[20]!==0||_1.dyn_ltree[26]!==0)return i;for(R1=32;R1>>3,(H1=W.static_len+3+7>>>3)<=s1&&(s1=H1)):s1=H1=g1+5,g1+4<=s1&&r1!==-1?G(W,r1,g1,m1):W.strategy===4||H1===s1?(Y(W,2+(m1?1:0),3),D1(W,I,L)):(Y(W,4+(m1?1:0),3),function(_1,R1,l2,n2){var ie;for(Y(_1,R1-257,5),Y(_1,l2-1,5),Y(_1,n2-4,4),ie=0;ie>>8&255,W.pending_buf[W.d_buf+2*W.last_lit+1]=255&r1,W.pending_buf[W.l_buf+W.last_lit]=255&g1,W.last_lit++,r1===0?W.dyn_ltree[2*g1]++:(W.matches++,r1--,W.dyn_ltree[2*(C[g1]+f+1)]++,W.dyn_dtree[2*R(r1)]++),W.last_lit===W.lit_bufsize-1},r._tr_align=function(W){Y(W,2,3),Z(W,x,I),function(r1){r1.bi_valid===16?(j(r1,r1.bi_buf),r1.bi_buf=0,r1.bi_valid=0):8<=r1.bi_valid&&(r1.pending_buf[r1.pending++]=255&r1.bi_buf,r1.bi_buf>>=8,r1.bi_valid-=8)}(W)}},{"../utils/common":41}],53:[function(e,t,r){"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(e,t,r){(function(n){(function(a,i){"use strict";if(!a.setImmediate){var c,o,l,f,h=1,p={},d=!1,m=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,c={}.toString.call(a.process)==="[object process]"?function(b){process.nextTick(function(){z(b)})}:function(){if(a.postMessage&&!a.importScripts){var b=!0,w=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=w,b}}()?(f="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",x,!1):a.attachEvent("onmessage",x),function(b){a.postMessage(f+b,"*")}):a.MessageChannel?((l=new MessageChannel).port1.onmessage=function(b){z(b.data)},function(b){l.port2.postMessage(b)}):m&&"onreadystatechange"in m.createElement("script")?(o=m.documentElement,function(b){var w=m.createElement("script");w.onreadystatechange=function(){z(b),w.onreadystatechange=null,o.removeChild(w),w=null},o.appendChild(w)}):function(b){setTimeout(z,0,b)},y.setImmediate=function(b){typeof b!="function"&&(b=new Function(""+b));for(var w=new Array(arguments.length-1),A=0;A"u"?n===void 0?this:n:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var Ft=X((Hk1,aR)=>{var O81=Array.isArray;aR.exports=O81});var uw=X((_k1,iR)=>{var T81=typeof global=="object"&&global&&global.Object===Object&&global;iR.exports=T81});var kn=X((Sk1,cR)=>{var P81=uw(),I81=typeof self=="object"&&self&&self.Object===Object&&self,R81=P81||I81||Function("return this")();cR.exports=R81});var lc=X((Lk1,oR)=>{var D81=kn(),B81=D81.Symbol;oR.exports=B81});var uR=X((Vk1,fR)=>{var sR=lc(),lR=Object.prototype,F81=lR.hasOwnProperty,j81=lR.toString,T8=sR?sR.toStringTag:void 0;function U81(e){var t=F81.call(e,T8),r=e[T8];try{e[T8]=void 0;var n=!0}catch{}var a=j81.call(e);return n&&(t?e[T8]=r:delete e[T8]),a}fR.exports=U81});var pR=X((Ak1,hR)=>{var q81=Object.prototype,W81=q81.toString;function G81(e){return W81.call(e)}hR.exports=G81});var p3=X((Ek1,vR)=>{var dR=lc(),K81=uR(),$81=pR(),Y81="[object Null]",X81="[object Undefined]",mR=dR?dR.toStringTag:void 0;function Z81(e){return e==null?e===void 0?X81:Y81:mR&&mR in Object(e)?K81(e):$81(e)}vR.exports=Z81});var d3=X((kk1,gR)=>{function Q81(e){return e!=null&&typeof e=="object"}gR.exports=Q81});var Xi=X((Nk1,yR)=>{var J81=p3(),el1=d3(),tl1="[object Symbol]";function rl1(e){return typeof e=="symbol"||el1(e)&&J81(e)==tl1}yR.exports=rl1});var R9=X((Ok1,xR)=>{var nl1=Ft(),al1=Xi(),il1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cl1=/^\w*$/;function ol1(e,t){if(nl1(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||al1(e)?!0:cl1.test(e)||!il1.test(e)||t!=null&&e in Object(t)}xR.exports=ol1});var en=X((Tk1,bR)=>{function sl1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}bR.exports=sl1});var Ie=X((Pk1,wR)=>{var ll1=p3(),fl1=en(),ul1="[object AsyncFunction]",hl1="[object Function]",pl1="[object GeneratorFunction]",dl1="[object Proxy]";function ml1(e){if(!fl1(e))return!1;var t=ll1(e);return t==hl1||t==pl1||t==ul1||t==dl1}wR.exports=ml1});var MR=X((Ik1,zR)=>{var vl1=kn(),gl1=vl1["__core-js_shared__"];zR.exports=gl1});var _R=X((Rk1,HR)=>{var hw=MR(),CR=function(){var e=/[^.]+$/.exec(hw&&hw.keys&&hw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yl1(e){return!!CR&&CR in e}HR.exports=yl1});var pw=X((Dk1,SR)=>{var xl1=Function.prototype,bl1=xl1.toString;function wl1(e){if(e!=null){try{return bl1.call(e)}catch{}try{return e+""}catch{}}return""}SR.exports=wl1});var VR=X((Bk1,LR)=>{var zl1=Ie(),Ml1=_R(),Cl1=en(),Hl1=pw(),_l1=/[\\^$.*+?()[\]{}|]/g,Sl1=/^\[object .+?Constructor\]$/,Ll1=Function.prototype,Vl1=Object.prototype,Al1=Ll1.toString,El1=Vl1.hasOwnProperty,kl1=RegExp("^"+Al1.call(El1).replace(_l1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nl1(e){if(!Cl1(e)||Ml1(e))return!1;var t=zl1(e)?kl1:Sl1;return t.test(Hl1(e))}LR.exports=Nl1});var ER=X((Fk1,AR)=>{function Ol1(e,t){return e?.[t]}AR.exports=Ol1});var _a=X((jk1,kR)=>{var Tl1=VR(),Pl1=ER();function Il1(e,t){var r=Pl1(e,t);return Tl1(r)?r:void 0}kR.exports=Il1});var P8=X((Uk1,NR)=>{var Rl1=_a(),Dl1=Rl1(Object,"create");NR.exports=Dl1});var PR=X((qk1,TR)=>{var OR=P8();function Bl1(){this.__data__=OR?OR(null):{},this.size=0}TR.exports=Bl1});var RR=X((Wk1,IR)=>{function Fl1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}IR.exports=Fl1});var BR=X((Gk1,DR)=>{var jl1=P8(),Ul1="__lodash_hash_undefined__",ql1=Object.prototype,Wl1=ql1.hasOwnProperty;function Gl1(e){var t=this.__data__;if(jl1){var r=t[e];return r===Ul1?void 0:r}return Wl1.call(t,e)?t[e]:void 0}DR.exports=Gl1});var jR=X((Kk1,FR)=>{var Kl1=P8(),$l1=Object.prototype,Yl1=$l1.hasOwnProperty;function Xl1(e){var t=this.__data__;return Kl1?t[e]!==void 0:Yl1.call(t,e)}FR.exports=Xl1});var qR=X(($k1,UR)=>{var Zl1=P8(),Ql1="__lodash_hash_undefined__";function Jl1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zl1&&t===void 0?Ql1:t,this}UR.exports=Jl1});var GR=X((Yk1,WR)=>{var e51=PR(),t51=RR(),r51=BR(),n51=jR(),a51=qR();function fc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{function i51(){this.__data__=[],this.size=0}KR.exports=i51});var D9=X((Zk1,YR)=>{function c51(e,t){return e===t||e!==e&&t!==t}YR.exports=c51});var I8=X((Qk1,XR)=>{var o51=D9();function s51(e,t){for(var r=e.length;r--;)if(o51(e[r][0],t))return r;return-1}XR.exports=s51});var QR=X((Jk1,ZR)=>{var l51=I8(),f51=Array.prototype,u51=f51.splice;function h51(e){var t=this.__data__,r=l51(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():u51.call(t,r,1),--this.size,!0}ZR.exports=h51});var eD=X((eN1,JR)=>{var p51=I8();function d51(e){var t=this.__data__,r=p51(t,e);return r<0?void 0:t[r][1]}JR.exports=d51});var rD=X((tN1,tD)=>{var m51=I8();function v51(e){return m51(this.__data__,e)>-1}tD.exports=v51});var aD=X((rN1,nD)=>{var g51=I8();function y51(e,t){var r=this.__data__,n=g51(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}nD.exports=y51});var R8=X((nN1,iD)=>{var x51=$R(),b51=QR(),w51=eD(),z51=rD(),M51=aD();function uc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var C51=_a(),H51=kn(),_51=C51(H51,"Map");cD.exports=_51});var lD=X((iN1,sD)=>{var oD=GR(),S51=R8(),L51=B9();function V51(){this.size=0,this.__data__={hash:new oD,map:new(L51||S51),string:new oD}}sD.exports=V51});var uD=X((cN1,fD)=>{function A51(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}fD.exports=A51});var D8=X((oN1,hD)=>{var E51=uD();function k51(e,t){var r=e.__data__;return E51(t)?r[typeof t=="string"?"string":"hash"]:r.map}hD.exports=k51});var dD=X((sN1,pD)=>{var N51=D8();function O51(e){var t=N51(this,e).delete(e);return this.size-=t?1:0,t}pD.exports=O51});var vD=X((lN1,mD)=>{var T51=D8();function P51(e){return T51(this,e).get(e)}mD.exports=P51});var yD=X((fN1,gD)=>{var I51=D8();function R51(e){return I51(this,e).has(e)}gD.exports=R51});var bD=X((uN1,xD)=>{var D51=D8();function B51(e,t){var r=D51(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}xD.exports=B51});var F9=X((hN1,wD)=>{var F51=lD(),j51=dD(),U51=vD(),q51=yD(),W51=bD();function hc(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var zD=F9(),G51="Expected a function";function dw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(G51);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var c=e.apply(this,n);return r.cache=i.set(a,c)||i,c};return r.cache=new(dw.Cache||zD),r}dw.Cache=zD;MD.exports=dw});var HD=X((dN1,CD)=>{var K51=mw(),$51=500;function Y51(e){var t=K51(e,function(n){return r.size===$51&&r.clear(),n}),r=t.cache;return t}CD.exports=Y51});var SD=X((mN1,_D)=>{var X51=HD(),Z51=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q51=/\\(\\)?/g,J51=X51(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Z51,function(r,n,a,i){t.push(a?i.replace(Q51,"$1"):n||r)}),t});_D.exports=J51});var j9=X((vN1,LD)=>{function ef1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r{var VD=lc(),tf1=j9(),rf1=Ft(),nf1=Xi(),af1=1/0,AD=VD?VD.prototype:void 0,ED=AD?AD.toString:void 0;function kD(e){if(typeof e=="string")return e;if(rf1(e))return tf1(e,kD)+"";if(nf1(e))return ED?ED.call(e):"";var t=e+"";return t=="0"&&1/e==-af1?"-0":t}ND.exports=kD});var vw=X((yN1,TD)=>{var if1=OD();function cf1(e){return e==null?"":if1(e)}TD.exports=cf1});var gw=X((xN1,PD)=>{var of1=Ft(),sf1=R9(),lf1=SD(),ff1=vw();function uf1(e,t){return of1(e)?e:sf1(e,t)?[e]:lf1(ff1(e))}PD.exports=uf1});var B8=X((bN1,ID)=>{var hf1=Xi(),pf1=1/0;function df1(e){if(typeof e=="string"||hf1(e))return e;var t=e+"";return t=="0"&&1/e==-pf1?"-0":t}ID.exports=df1});var U9=X((wN1,RD)=>{var mf1=gw(),vf1=B8();function gf1(e,t){t=mf1(t,e);for(var r=0,n=t.length;e!=null&&r{var yf1=U9();function xf1(e,t,r){var n=e==null?void 0:yf1(e,t);return n===void 0?r:n}DD.exports=xf1});var m3=X((MN1,BD)=>{function bf1(e){return e==null}BD.exports=bf1});var q9=X((CN1,FD)=>{var wf1=p3(),zf1=Ft(),Mf1=d3(),Cf1="[object String]";function Hf1(e){return typeof e=="string"||!zf1(e)&&Mf1(e)&&wf1(e)==Cf1}FD.exports=Hf1});var UD=X(F2=>{"use strict";var yw=Symbol.for("react.element"),xw=Symbol.for("react.portal"),W9=Symbol.for("react.fragment"),G9=Symbol.for("react.strict_mode"),K9=Symbol.for("react.profiler"),$9=Symbol.for("react.provider"),Y9=Symbol.for("react.context"),_f1=Symbol.for("react.server_context"),X9=Symbol.for("react.forward_ref"),Z9=Symbol.for("react.suspense"),Q9=Symbol.for("react.suspense_list"),J9=Symbol.for("react.memo"),eh=Symbol.for("react.lazy"),Sf1=Symbol.for("react.offscreen"),jD;jD=Symbol.for("react.module.reference");function tn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case yw:switch(e=e.type,e){case W9:case K9:case G9:case Z9:case Q9:return e;default:switch(e=e&&e.$$typeof,e){case _f1:case Y9:case X9:case eh:case J9:case $9:return e;default:return t}}case xw:return t}}}F2.ContextConsumer=Y9;F2.ContextProvider=$9;F2.Element=yw;F2.ForwardRef=X9;F2.Fragment=W9;F2.Lazy=eh;F2.Memo=J9;F2.Portal=xw;F2.Profiler=K9;F2.StrictMode=G9;F2.Suspense=Z9;F2.SuspenseList=Q9;F2.isAsyncMode=function(){return!1};F2.isConcurrentMode=function(){return!1};F2.isContextConsumer=function(e){return tn(e)===Y9};F2.isContextProvider=function(e){return tn(e)===$9};F2.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===yw};F2.isForwardRef=function(e){return tn(e)===X9};F2.isFragment=function(e){return tn(e)===W9};F2.isLazy=function(e){return tn(e)===eh};F2.isMemo=function(e){return tn(e)===J9};F2.isPortal=function(e){return tn(e)===xw};F2.isProfiler=function(e){return tn(e)===K9};F2.isStrictMode=function(e){return tn(e)===G9};F2.isSuspense=function(e){return tn(e)===Z9};F2.isSuspenseList=function(e){return tn(e)===Q9};F2.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===W9||e===K9||e===G9||e===Z9||e===Q9||e===Sf1||typeof e=="object"&&e!==null&&(e.$$typeof===eh||e.$$typeof===J9||e.$$typeof===$9||e.$$typeof===Y9||e.$$typeof===X9||e.$$typeof===jD||e.getModuleId!==void 0)};F2.typeOf=tn});var WD=X((_N1,qD)=>{"use strict";qD.exports=UD()});var bw=X((SN1,GD)=>{var Lf1=p3(),Vf1=d3(),Af1="[object Number]";function Ef1(e){return typeof e=="number"||Vf1(e)&&Lf1(e)==Af1}GD.exports=Ef1});var ww=X((LN1,KD)=>{var kf1=bw();function Nf1(e){return kf1(e)&&e!=+e}KD.exports=Nf1});var uB=X((UN1,fB)=>{function Xf1(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n{var Zf1=uB();function Qf1(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Zf1(e,t,r)}hB.exports=Qf1});var Ow=X((WN1,dB)=>{var Jf1="\\ud800-\\udfff",e71="\\u0300-\\u036f",t71="\\ufe20-\\ufe2f",r71="\\u20d0-\\u20ff",n71=e71+t71+r71,a71="\\ufe0e\\ufe0f",i71="\\u200d",c71=RegExp("["+i71+Jf1+n71+a71+"]");function o71(e){return c71.test(e)}dB.exports=o71});var vB=X((GN1,mB)=>{function s71(e){return e.split("")}mB.exports=s71});var CB=X((KN1,MB)=>{var gB="\\ud800-\\udfff",l71="\\u0300-\\u036f",f71="\\ufe20-\\ufe2f",u71="\\u20d0-\\u20ff",h71=l71+f71+u71,p71="\\ufe0e\\ufe0f",d71="["+gB+"]",Tw="["+h71+"]",Pw="\\ud83c[\\udffb-\\udfff]",m71="(?:"+Tw+"|"+Pw+")",yB="[^"+gB+"]",xB="(?:\\ud83c[\\udde6-\\uddff]){2}",bB="[\\ud800-\\udbff][\\udc00-\\udfff]",v71="\\u200d",wB=m71+"?",zB="["+p71+"]?",g71="(?:"+v71+"(?:"+[yB,xB,bB].join("|")+")"+zB+wB+")*",y71=zB+wB+g71,x71="(?:"+[yB+Tw+"?",Tw,xB,bB,d71].join("|")+")",b71=RegExp(Pw+"(?="+Pw+")|"+x71+y71,"g");function w71(e){return e.match(b71)||[]}MB.exports=w71});var _B=X(($N1,HB)=>{var z71=vB(),M71=Ow(),C71=CB();function H71(e){return M71(e)?C71(e):z71(e)}HB.exports=H71});var LB=X((YN1,SB)=>{var _71=pB(),S71=Ow(),L71=_B(),V71=vw();function A71(e){return function(t){t=V71(t);var r=S71(t)?L71(t):void 0,n=r?r[0]:t.charAt(0),a=r?_71(r,1).join(""):t.slice(1);return n[e]()+a}}SB.exports=A71});var ch=X((XN1,VB)=>{var E71=LB(),k71=E71("toUpperCase");VB.exports=k71});var tF=X((QT1,eF)=>{var ou1=R8();function su1(){this.__data__=new ou1,this.size=0}eF.exports=su1});var nF=X((JT1,rF)=>{function lu1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}rF.exports=lu1});var iF=X((eP1,aF)=>{function fu1(e){return this.__data__.get(e)}aF.exports=fu1});var oF=X((tP1,cF)=>{function uu1(e){return this.__data__.has(e)}cF.exports=uu1});var lF=X((rP1,sF)=>{var hu1=R8(),pu1=B9(),du1=F9(),mu1=200;function vu1(e,t){var r=this.__data__;if(r instanceof hu1){var n=r.__data__;if(!pu1||n.length{var gu1=R8(),yu1=tF(),xu1=nF(),bu1=iF(),wu1=oF(),zu1=lF();function Cc(e){var t=this.__data__=new gu1(e);this.size=t.size}Cc.prototype.clear=yu1;Cc.prototype.delete=xu1;Cc.prototype.get=bu1;Cc.prototype.has=wu1;Cc.prototype.set=zu1;fF.exports=Cc});var hF=X((aP1,uF)=>{var Mu1="__lodash_hash_undefined__";function Cu1(e){return this.__data__.set(e,Mu1),this}uF.exports=Cu1});var dF=X((iP1,pF)=>{function Hu1(e){return this.__data__.has(e)}pF.exports=Hu1});var gz=X((cP1,mF)=>{var _u1=F9(),Su1=hF(),Lu1=dF();function mh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _u1;++t{function Vu1(e,t){for(var r=-1,n=e==null?0:e.length;++r{function Au1(e,t){return e.has(t)}gF.exports=Au1});var bz=X((lP1,yF)=>{var Eu1=gz(),ku1=yz(),Nu1=xz(),Ou1=1,Tu1=2;function Pu1(e,t,r,n,a,i){var c=r&Ou1,o=e.length,l=t.length;if(o!=l&&!(c&&l>o))return!1;var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var p=-1,d=!0,m=r&Tu1?new Eu1:void 0;for(i.set(e,t),i.set(t,e);++p{var Iu1=kn(),Ru1=Iu1.Uint8Array;xF.exports=Ru1});var zF=X((uP1,wF)=>{function Du1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}wF.exports=Du1});var vh=X((hP1,MF)=>{function Bu1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}MF.exports=Bu1});var LF=X((pP1,SF)=>{var CF=lc(),HF=bF(),Fu1=D9(),ju1=bz(),Uu1=zF(),qu1=vh(),Wu1=1,Gu1=2,Ku1="[object Boolean]",$u1="[object Date]",Yu1="[object Error]",Xu1="[object Map]",Zu1="[object Number]",Qu1="[object RegExp]",Ju1="[object Set]",e91="[object String]",t91="[object Symbol]",r91="[object ArrayBuffer]",n91="[object DataView]",_F=CF?CF.prototype:void 0,wz=_F?_F.valueOf:void 0;function a91(e,t,r,n,a,i,c){switch(r){case n91:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case r91:return!(e.byteLength!=t.byteLength||!i(new HF(e),new HF(t)));case Ku1:case $u1:case Zu1:return Fu1(+e,+t);case Yu1:return e.name==t.name&&e.message==t.message;case Qu1:case e91:return e==t+"";case Xu1:var o=Uu1;case Ju1:var l=n&Wu1;if(o||(o=qu1),e.size!=t.size&&!l)return!1;var f=c.get(e);if(f)return f==t;n|=Gu1,c.set(e,t);var h=ju1(o(e),o(t),n,a,i,c);return c.delete(e),h;case t91:if(wz)return wz.call(e)==wz.call(t)}return!1}SF.exports=a91});var zz=X((dP1,VF)=>{function i91(e,t){for(var r=-1,n=t.length,a=e.length;++r{var c91=zz(),o91=Ft();function s91(e,t,r){var n=t(e);return o91(e)?n:c91(n,r(e))}AF.exports=s91});var NF=X((vP1,kF)=>{function l91(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r{function f91(){return[]}OF.exports=f91});var RF=X((yP1,IF)=>{var u91=NF(),h91=TF(),p91=Object.prototype,d91=p91.propertyIsEnumerable,PF=Object.getOwnPropertySymbols,m91=PF?function(e){return e==null?[]:(e=Object(e),u91(PF(e),function(t){return d91.call(e,t)}))}:h91;IF.exports=m91});var BF=X((xP1,DF)=>{function v91(e,t){for(var r=-1,n=Array(e);++r{var g91=p3(),y91=d3(),x91="[object Arguments]";function b91(e){return y91(e)&&g91(e)==x91}FF.exports=b91});var gh=X((wP1,WF)=>{var UF=jF(),w91=d3(),qF=Object.prototype,z91=qF.hasOwnProperty,M91=qF.propertyIsEnumerable,C91=UF(function(){return arguments}())?UF:function(e){return w91(e)&&z91.call(e,"callee")&&!M91.call(e,"callee")};WF.exports=C91});var KF=X((zP1,GF)=>{function H91(){return!1}GF.exports=H91});var Mz=X((Y8,Hc)=>{var _91=kn(),S91=KF(),XF=typeof Y8=="object"&&Y8&&!Y8.nodeType&&Y8,$F=XF&&typeof Hc=="object"&&Hc&&!Hc.nodeType&&Hc,L91=$F&&$F.exports===XF,YF=L91?_91.Buffer:void 0,V91=YF?YF.isBuffer:void 0,A91=V91||S91;Hc.exports=A91});var yh=X((MP1,ZF)=>{var E91=9007199254740991,k91=/^(?:0|[1-9]\d*)$/;function N91(e,t){var r=typeof e;return t=t??E91,!!t&&(r=="number"||r!="symbol"&&k91.test(e))&&e>-1&&e%1==0&&e{var O91=9007199254740991;function T91(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O91}QF.exports=T91});var ej=X((HP1,JF)=>{var P91=p3(),I91=xh(),R91=d3(),D91="[object Arguments]",B91="[object Array]",F91="[object Boolean]",j91="[object Date]",U91="[object Error]",q91="[object Function]",W91="[object Map]",G91="[object Number]",K91="[object Object]",$91="[object RegExp]",Y91="[object Set]",X91="[object String]",Z91="[object WeakMap]",Q91="[object ArrayBuffer]",J91="[object DataView]",eh1="[object Float32Array]",th1="[object Float64Array]",rh1="[object Int8Array]",nh1="[object Int16Array]",ah1="[object Int32Array]",ih1="[object Uint8Array]",ch1="[object Uint8ClampedArray]",oh1="[object Uint16Array]",sh1="[object Uint32Array]",ae={};ae[eh1]=ae[th1]=ae[rh1]=ae[nh1]=ae[ah1]=ae[ih1]=ae[ch1]=ae[oh1]=ae[sh1]=!0;ae[D91]=ae[B91]=ae[Q91]=ae[F91]=ae[J91]=ae[j91]=ae[U91]=ae[q91]=ae[W91]=ae[G91]=ae[K91]=ae[$91]=ae[Y91]=ae[X91]=ae[Z91]=!1;function lh1(e){return R91(e)&&I91(e.length)&&!!ae[P91(e)]}JF.exports=lh1});var Cz=X((_P1,tj)=>{function fh1(e){return function(t){return e(t)}}tj.exports=fh1});var nj=X((X8,_c)=>{var uh1=uw(),rj=typeof X8=="object"&&X8&&!X8.nodeType&&X8,Z8=rj&&typeof _c=="object"&&_c&&!_c.nodeType&&_c,hh1=Z8&&Z8.exports===rj,Hz=hh1&&uh1.process,ph1=function(){try{var e=Z8&&Z8.require&&Z8.require("util").types;return e||Hz&&Hz.binding&&Hz.binding("util")}catch{}}();_c.exports=ph1});var _z=X((SP1,cj)=>{var dh1=ej(),mh1=Cz(),aj=nj(),ij=aj&&aj.isTypedArray,vh1=ij?mh1(ij):dh1;cj.exports=vh1});var sj=X((LP1,oj)=>{var gh1=BF(),yh1=gh(),xh1=Ft(),bh1=Mz(),wh1=yh(),zh1=_z(),Mh1=Object.prototype,Ch1=Mh1.hasOwnProperty;function Hh1(e,t){var r=xh1(e),n=!r&&yh1(e),a=!r&&!n&&bh1(e),i=!r&&!n&&!a&&zh1(e),c=r||n||a||i,o=c?gh1(e.length,String):[],l=o.length;for(var f in e)(t||Ch1.call(e,f))&&!(c&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||wh1(f,l)))&&o.push(f);return o}oj.exports=Hh1});var fj=X((VP1,lj)=>{var _h1=Object.prototype;function Sh1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_h1;return e===r}lj.exports=Sh1});var Sz=X((AP1,uj)=>{function Lh1(e,t){return function(r){return e(t(r))}}uj.exports=Lh1});var pj=X((EP1,hj)=>{var Vh1=Sz(),Ah1=Vh1(Object.keys,Object);hj.exports=Ah1});var mj=X((kP1,dj)=>{var Eh1=fj(),kh1=pj(),Nh1=Object.prototype,Oh1=Nh1.hasOwnProperty;function Th1(e){if(!Eh1(e))return kh1(e);var t=[];for(var r in Object(e))Oh1.call(e,r)&&r!="constructor"&&t.push(r);return t}dj.exports=Th1});var Sc=X((NP1,vj)=>{var Ph1=Ie(),Ih1=xh();function Rh1(e){return e!=null&&Ih1(e.length)&&!Ph1(e)}vj.exports=Rh1});var Q8=X((OP1,gj)=>{var Dh1=sj(),Bh1=mj(),Fh1=Sc();function jh1(e){return Fh1(e)?Dh1(e):Bh1(e)}gj.exports=jh1});var xj=X((TP1,yj)=>{var Uh1=EF(),qh1=RF(),Wh1=Q8();function Gh1(e){return Uh1(e,Wh1,qh1)}yj.exports=Gh1});var zj=X((PP1,wj)=>{var bj=xj(),Kh1=1,$h1=Object.prototype,Yh1=$h1.hasOwnProperty;function Xh1(e,t,r,n,a,i){var c=r&Kh1,o=bj(e),l=o.length,f=bj(t),h=f.length;if(l!=h&&!c)return!1;for(var p=l;p--;){var d=o[p];if(!(c?d in t:Yh1.call(t,d)))return!1}var m=i.get(e),y=i.get(t);if(m&&y)return m==t&&y==e;var g=!0;i.set(e,t),i.set(t,e);for(var z=c;++p{var Zh1=_a(),Qh1=kn(),Jh1=Zh1(Qh1,"DataView");Mj.exports=Jh1});var _j=X((RP1,Hj)=>{var ep1=_a(),tp1=kn(),rp1=ep1(tp1,"Promise");Hj.exports=rp1});var Lz=X((DP1,Sj)=>{var np1=_a(),ap1=kn(),ip1=np1(ap1,"Set");Sj.exports=ip1});var Vj=X((BP1,Lj)=>{var cp1=_a(),op1=kn(),sp1=cp1(op1,"WeakMap");Lj.exports=sp1});var Ij=X((FP1,Pj)=>{var Vz=Cj(),Az=B9(),Ez=_j(),kz=Lz(),Nz=Vj(),Tj=p3(),Lc=pw(),Aj="[object Map]",lp1="[object Object]",Ej="[object Promise]",kj="[object Set]",Nj="[object WeakMap]",Oj="[object DataView]",fp1=Lc(Vz),up1=Lc(Az),hp1=Lc(Ez),pp1=Lc(kz),dp1=Lc(Nz),n6=Tj;(Vz&&n6(new Vz(new ArrayBuffer(1)))!=Oj||Az&&n6(new Az)!=Aj||Ez&&n6(Ez.resolve())!=Ej||kz&&n6(new kz)!=kj||Nz&&n6(new Nz)!=Nj)&&(n6=function(e){var t=Tj(e),r=t==lp1?e.constructor:void 0,n=r?Lc(r):"";if(n)switch(n){case fp1:return Oj;case up1:return Aj;case hp1:return Ej;case pp1:return kj;case dp1:return Nj}return t});Pj.exports=n6});var Wj=X((jP1,qj)=>{var Oz=vz(),mp1=bz(),vp1=LF(),gp1=zj(),Rj=Ij(),Dj=Ft(),Bj=Mz(),yp1=_z(),xp1=1,Fj="[object Arguments]",jj="[object Array]",bh="[object Object]",bp1=Object.prototype,Uj=bp1.hasOwnProperty;function wp1(e,t,r,n,a,i){var c=Dj(e),o=Dj(t),l=c?jj:Rj(e),f=o?jj:Rj(t);l=l==Fj?bh:l,f=f==Fj?bh:f;var h=l==bh,p=f==bh,d=l==f;if(d&&Bj(e)){if(!Bj(t))return!1;c=!0,h=!1}if(d&&!h)return i||(i=new Oz),c||yp1(e)?mp1(e,t,r,n,a,i):vp1(e,t,l,r,n,a,i);if(!(r&xp1)){var m=h&&Uj.call(e,"__wrapped__"),y=p&&Uj.call(t,"__wrapped__");if(m||y){var g=m?e.value():e,z=y?t.value():t;return i||(i=new Oz),a(g,z,r,n,i)}}return d?(i||(i=new Oz),gp1(e,t,r,n,a,i)):!1}qj.exports=wp1});var wh=X((UP1,$j)=>{var zp1=Wj(),Gj=d3();function Kj(e,t,r,n,a){return e===t?!0:e==null||t==null||!Gj(e)&&!Gj(t)?e!==e&&t!==t:zp1(e,t,r,n,Kj,a)}$j.exports=Kj});var Xj=X((qP1,Yj)=>{var Mp1=vz(),Cp1=wh(),Hp1=1,_p1=2;function Sp1(e,t,r,n){var a=r.length,i=a,c=!n;if(e==null)return!i;for(e=Object(e);a--;){var o=r[a];if(c&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a{var Lp1=en();function Vp1(e){return e===e&&!Lp1(e)}Zj.exports=Vp1});var Jj=X((GP1,Qj)=>{var Ap1=Tz(),Ep1=Q8();function kp1(e){for(var t=Ep1(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Ap1(a)]}return t}Qj.exports=kp1});var Pz=X((KP1,eU)=>{function Np1(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}eU.exports=Np1});var rU=X(($P1,tU)=>{var Op1=Xj(),Tp1=Jj(),Pp1=Pz();function Ip1(e){var t=Tp1(e);return t.length==1&&t[0][2]?Pp1(t[0][0],t[0][1]):function(r){return r===e||Op1(r,e,t)}}tU.exports=Ip1});var aU=X((YP1,nU)=>{function Rp1(e,t){return e!=null&&t in Object(e)}nU.exports=Rp1});var cU=X((XP1,iU)=>{var Dp1=gw(),Bp1=gh(),Fp1=Ft(),jp1=yh(),Up1=xh(),qp1=B8();function Wp1(e,t,r){t=Dp1(t,e);for(var n=-1,a=t.length,i=!1;++n{var Gp1=aU(),Kp1=cU();function $p1(e,t){return e!=null&&Kp1(e,t,Gp1)}oU.exports=$p1});var fU=X((QP1,lU)=>{var Yp1=wh(),Xp1=Zi(),Zp1=sU(),Qp1=R9(),Jp1=Tz(),ed1=Pz(),td1=B8(),rd1=1,nd1=2;function ad1(e,t){return Qp1(e)&&Jp1(t)?ed1(td1(e),t):function(r){var n=Xp1(r,e);return n===void 0&&n===t?Zp1(r,e):Yp1(t,n,rd1|nd1)}}lU.exports=ad1});var a6=X((JP1,uU)=>{function id1(e){return e}uU.exports=id1});var pU=X((eI1,hU)=>{function cd1(e){return function(t){return t?.[e]}}hU.exports=cd1});var mU=X((tI1,dU)=>{var od1=U9();function sd1(e){return function(t){return od1(t,e)}}dU.exports=sd1});var gU=X((rI1,vU)=>{var ld1=pU(),fd1=mU(),ud1=R9(),hd1=B8();function pd1(e){return ud1(e)?ld1(hd1(e)):fd1(e)}vU.exports=pd1});var Nn=X((nI1,yU)=>{var dd1=rU(),md1=fU(),vd1=a6(),gd1=Ft(),yd1=gU();function xd1(e){return typeof e=="function"?e:e==null?vd1:typeof e=="object"?gd1(e)?md1(e[0],e[1]):dd1(e):yd1(e)}yU.exports=xd1});var Iz=X((aI1,xU)=>{function bd1(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i{function wd1(e){return e!==e}bU.exports=wd1});var MU=X((cI1,zU)=>{function zd1(e,t,r){for(var n=r-1,a=e.length;++n{var Md1=Iz(),Cd1=wU(),Hd1=MU();function _d1(e,t,r){return t===t?Hd1(e,t,r):Md1(e,Cd1,r)}CU.exports=_d1});var SU=X((sI1,_U)=>{var Sd1=HU();function Ld1(e,t){var r=e==null?0:e.length;return!!r&&Sd1(e,t,0)>-1}_U.exports=Ld1});var VU=X((lI1,LU)=>{function Vd1(e,t,r){for(var n=-1,a=e==null?0:e.length;++n{function Ad1(){}AU.exports=Ad1});var NU=X((uI1,kU)=>{var Rz=Lz(),Ed1=EU(),kd1=vh(),Nd1=1/0,Od1=Rz&&1/kd1(new Rz([,-0]))[1]==Nd1?function(e){return new Rz(e)}:Ed1;kU.exports=Od1});var TU=X((hI1,OU)=>{var Td1=gz(),Pd1=SU(),Id1=VU(),Rd1=xz(),Dd1=NU(),Bd1=vh(),Fd1=200;function jd1(e,t,r){var n=-1,a=Pd1,i=e.length,c=!0,o=[],l=o;if(r)c=!1,a=Id1;else if(i>=Fd1){var f=t?null:Dd1(e);if(f)return Bd1(f);c=!1,a=Rd1,l=new Td1}else l=t?[]:o;e:for(;++n{var Ud1=Nn(),qd1=TU();function Wd1(e,t){return e&&e.length?qd1(e,Ud1(t,2)):[]}PU.exports=Wd1});var KU=X((xI1,GU)=>{var qU=lc(),am1=gh(),im1=Ft(),WU=qU?qU.isConcatSpreadable:void 0;function cm1(e){return im1(e)||am1(e)||!!(WU&&e&&e[WU])}GU.exports=cm1});var Fz=X((bI1,YU)=>{var om1=zz(),sm1=KU();function $U(e,t,r,n,a){var i=-1,c=e.length;for(r||(r=sm1),a||(a=[]);++i0&&r(o)?t>1?$U(o,t-1,r,n,a):om1(a,o):n||(a[a.length]=o)}return a}YU.exports=$U});var ZU=X((wI1,XU)=>{function lm1(e){return function(t,r,n){for(var a=-1,i=Object(t),c=n(t),o=c.length;o--;){var l=c[e?o:++a];if(r(i[l],l,i)===!1)break}return t}}XU.exports=lm1});var JU=X((zI1,QU)=>{var fm1=ZU(),um1=fm1();QU.exports=um1});var jz=X((MI1,eq)=>{var hm1=JU(),pm1=Q8();function dm1(e,t){return e&&hm1(e,t,pm1)}eq.exports=dm1});var rq=X((CI1,tq)=>{var mm1=Sc();function vm1(e,t){return function(r,n){if(r==null)return r;if(!mm1(r))return e(r,n);for(var a=r.length,i=t?a:-1,c=Object(r);(t?i--:++i{var gm1=jz(),ym1=rq(),xm1=ym1(gm1);nq.exports=xm1});var Uz=X((_I1,aq)=>{var bm1=Hh(),wm1=Sc();function zm1(e,t){var r=-1,n=wm1(e)?Array(e.length):[];return bm1(e,function(a,i,c){n[++r]=t(a,i,c)}),n}aq.exports=zm1});var cq=X((SI1,iq)=>{function Mm1(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}iq.exports=Mm1});var lq=X((LI1,sq)=>{var oq=Xi();function Cm1(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=oq(e),c=t!==void 0,o=t===null,l=t===t,f=oq(t);if(!o&&!f&&!i&&e>t||i&&c&&l&&!o&&!f||n&&c&&l||!r&&l||!a)return 1;if(!n&&!i&&!f&&e{var Hm1=lq();function _m1(e,t,r){for(var n=-1,a=e.criteria,i=t.criteria,c=a.length,o=r.length;++n=o)return l;var f=r[n];return l*(f=="desc"?-1:1)}}return e.index-t.index}fq.exports=_m1});var pq=X((AI1,hq)=>{var qz=j9(),Sm1=U9(),Lm1=Nn(),Vm1=Uz(),Am1=cq(),Em1=Cz(),km1=uq(),Nm1=a6(),Om1=Ft();function Tm1(e,t,r){t.length?t=qz(t,function(i){return Om1(i)?function(c){return Sm1(c,i.length===1?i[0]:i)}:i}):t=[Nm1];var n=-1;t=qz(t,Em1(Lm1));var a=Vm1(e,function(i,c,o){var l=qz(t,function(f){return f(i)});return{criteria:l,index:++n,value:i}});return Am1(a,function(i,c){return km1(i,c,r)})}hq.exports=Tm1});var mq=X((EI1,dq)=>{function Pm1(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}dq.exports=Pm1});var yq=X((kI1,gq)=>{var Im1=mq(),vq=Math.max;function Rm1(e,t,r){return t=vq(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=vq(n.length-t,0),c=Array(i);++a{function Dm1(e){return function(){return e}}xq.exports=Dm1});var Wz=X((OI1,wq)=>{var Bm1=_a(),Fm1=function(){try{var e=Bm1(Object,"defineProperty");return e({},"",{}),e}catch{}}();wq.exports=Fm1});var Cq=X((TI1,Mq)=>{var jm1=bq(),zq=Wz(),Um1=a6(),qm1=zq?function(e,t){return zq(e,"toString",{configurable:!0,enumerable:!1,value:jm1(t),writable:!0})}:Um1;Mq.exports=qm1});var _q=X((PI1,Hq)=>{var Wm1=800,Gm1=16,Km1=Date.now;function $m1(e){var t=0,r=0;return function(){var n=Km1(),a=Gm1-(n-r);if(r=n,a>0){if(++t>=Wm1)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}Hq.exports=$m1});var Lq=X((II1,Sq)=>{var Ym1=Cq(),Xm1=_q(),Zm1=Xm1(Ym1);Sq.exports=Zm1});var Aq=X((RI1,Vq)=>{var Qm1=a6(),Jm1=yq(),ev1=Lq();function tv1(e,t){return ev1(Jm1(e,t,Qm1),e+"")}Vq.exports=tv1});var J8=X((DI1,Eq)=>{var rv1=D9(),nv1=Sc(),av1=yh(),iv1=en();function cv1(e,t,r){if(!iv1(r))return!1;var n=typeof t;return(n=="number"?nv1(r)&&av1(t,r.length):n=="string"&&t in r)?rv1(r[t],e):!1}Eq.exports=cv1});var _h=X((BI1,Nq)=>{var ov1=Fz(),sv1=pq(),lv1=Aq(),kq=J8(),fv1=lv1(function(e,t){if(e==null)return[];var r=t.length;return r>1&&kq(e,t[0],t[1])?t=[]:r>2&&kq(t[0],t[1],t[2])&&(t=[t[0]]),sv1(e,ov1(t,1),[])});Nq.exports=fv1});var eW=X((tR1,Jq)=>{var jv1=kn(),Uv1=function(){return jv1.Date.now()};Jq.exports=Uv1});var rW=X((rR1,tW)=>{var qv1=/\s/;function Wv1(e){for(var t=e.length;t--&&qv1.test(e.charAt(t)););return t}tW.exports=Wv1});var aW=X((nR1,nW)=>{var Gv1=rW(),Kv1=/^\s+/;function $v1(e){return e&&e.slice(0,Gv1(e)+1).replace(Kv1,"")}nW.exports=$v1});var Qz=X((aR1,oW)=>{var Yv1=aW(),iW=en(),Xv1=Xi(),cW=NaN,Zv1=/^[-+]0x[0-9a-f]+$/i,Qv1=/^0b[01]+$/i,Jv1=/^0o[0-7]+$/i,eg1=parseInt;function tg1(e){if(typeof e=="number")return e;if(Xv1(e))return cW;if(iW(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iW(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Yv1(e);var r=Qv1.test(e);return r||Jv1.test(e)?eg1(e.slice(2),r?2:8):Zv1.test(e)?cW:+e}oW.exports=tg1});var fW=X((iR1,lW)=>{var rg1=en(),Jz=eW(),sW=Qz(),ng1="Expected a function",ag1=Math.max,ig1=Math.min;function cg1(e,t,r){var n,a,i,c,o,l,f=0,h=!1,p=!1,d=!0;if(typeof e!="function")throw new TypeError(ng1);t=sW(t)||0,rg1(r)&&(h=!!r.leading,p="maxWait"in r,i=p?ag1(sW(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function m(H){var V=n,T=a;return n=a=void 0,f=H,c=e.apply(T,V),c}function y(H){return f=H,o=setTimeout(x,t),h?m(H):c}function g(H){var V=H-l,T=H-f,I=t-V;return p?ig1(I,i-T):I}function z(H){var V=H-l,T=H-f;return l===void 0||V>=t||V<0||p&&T>=i}function x(){var H=Jz();if(z(H))return b(H);o=setTimeout(x,g(H))}function b(H){return o=void 0,d&&n?m(H):(n=a=void 0,c)}function w(){o!==void 0&&clearTimeout(o),f=0,n=l=a=o=void 0}function A(){return o===void 0?c:b(Jz())}function M(){var H=Jz(),V=z(H);if(n=arguments,a=this,l=H,V){if(o===void 0)return y(l);if(p)return clearTimeout(o),o=setTimeout(x,t),m(l)}return o===void 0&&(o=setTimeout(x,t)),c}return M.cancel=w,M.flush=A,M}lW.exports=cg1});var eM=X((cR1,uW)=>{var og1=fW(),sg1=en(),lg1="Expected a function";function fg1(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(lg1);return sg1(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),og1(e,t,{leading:n,maxWait:t,trailing:a})}uW.exports=fg1});var Hl=X((wU1,JG)=>{var rb1=Xi();function nb1(e,t,r){for(var n=-1,a=e.length;++n{function ab1(e,t){return e>t}eK.exports=ab1});var rK=X((MU1,tK)=>{var ib1=Hl(),cb1=FM(),ob1=a6();function sb1(e){return e&&e.length?ib1(e,ob1,cb1):void 0}tK.exports=sb1});var jM=X((CU1,nK)=>{function lb1(e,t){return e{var fb1=Hl(),ub1=jM(),hb1=a6();function pb1(e){return e&&e.length?fb1(e,hb1,ub1):void 0}aK.exports=pb1});var oK=X((_U1,cK)=>{var db1=j9(),mb1=Nn(),vb1=Uz(),gb1=Ft();function yb1(e,t){var r=gb1(e)?db1:vb1;return r(e,mb1(t,3))}cK.exports=yb1});var lK=X((SU1,sK)=>{var xb1=Fz(),bb1=oK();function wb1(e,t){return xb1(bb1(e,t),1)}sK.exports=wb1});var gp=X((LU1,fK)=>{var zb1=wh();function Mb1(e,t){return zb1(e,t)}fK.exports=Mb1});var UM=X((uK,yp)=>{(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n=!0,a="[DecimalError] ",i=a+"Invalid argument: ",c=a+"Exponent out of range: ",o=Math.floor,l=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h,p=1e7,d=7,m=9007199254740991,y=o(m/d),g={};g.absoluteValue=g.abs=function(){var E=new this.constructor(this);return E.s&&(E.s=1),E},g.comparedTo=g.cmp=function(E){var O,B,k,R,j=this;if(E=new j.constructor(E),j.s!==E.s)return j.s||-E.s;if(j.e!==E.e)return j.e>E.e^j.s<0?1:-1;for(k=j.d.length,R=E.d.length,O=0,B=kE.d[O]^j.s<0?1:-1;return k===R?0:k>R^j.s<0?1:-1},g.decimalPlaces=g.dp=function(){var E=this,O=E.d.length-1,B=(O-E.e)*d;if(O=E.d[O],O)for(;O%10==0;O/=10)B--;return B<0?0:B},g.dividedBy=g.div=function(E){return w(this,new this.constructor(E))},g.dividedToIntegerBy=g.idiv=function(E){var O=this,B=O.constructor;return L(w(O,new B(E),0,1),B.precision)},g.equals=g.eq=function(E){return!this.cmp(E)},g.exponent=function(){return M(this)},g.greaterThan=g.gt=function(E){return this.cmp(E)>0},g.greaterThanOrEqualTo=g.gte=function(E){return this.cmp(E)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(E){return this.cmp(E)<0},g.lessThanOrEqualTo=g.lte=function(E){return this.cmp(E)<1},g.logarithm=g.log=function(E){var O,B=this,k=B.constructor,R=k.precision,j=R+5;if(E===void 0)E=new k(10);else if(E=new k(E),E.s<1||E.eq(h))throw Error(a+"NaN");if(B.s<1)throw Error(a+(B.s?"NaN":"-Infinity"));return B.eq(h)?new k(0):(n=!1,O=w(T(B,j),T(E,j),j),n=!0,L(O,R))},g.minus=g.sub=function(E){var O=this;return E=new O.constructor(E),O.s==E.s?N(O,E):z(O,(E.s=-E.s,E))},g.modulo=g.mod=function(E){var O,B=this,k=B.constructor,R=k.precision;if(E=new k(E),!E.s)throw Error(a+"NaN");return B.s?(n=!1,O=w(B,E,0,1).times(E),n=!0,B.minus(O)):L(new k(B),R)},g.naturalExponential=g.exp=function(){return A(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var E=new this.constructor(this);return E.s=-E.s||0,E},g.plus=g.add=function(E){var O=this;return E=new O.constructor(E),O.s==E.s?z(O,E):N(O,(E.s=-E.s,E))},g.precision=g.sd=function(E){var O,B,k,R=this;if(E!==void 0&&E!==!!E&&E!==1&&E!==0)throw Error(i+E);if(O=M(R)+1,k=R.d.length-1,B=k*d+1,k=R.d[k],k){for(;k%10==0;k/=10)B--;for(k=R.d[0];k>=10;k/=10)B++}return E&&O>B?O:B},g.squareRoot=g.sqrt=function(){var E,O,B,k,R,j,Y,Z=this,h1=Z.constructor;if(Z.s<1){if(!Z.s)return new h1(0);throw Error(a+"NaN")}for(E=M(Z),n=!1,R=Math.sqrt(+Z),R==0||R==1/0?(O=b(Z.d),(O.length+E)%2==0&&(O+="0"),R=Math.sqrt(O),E=o((E+1)/2)-(E<0||E%2),R==1/0?O="5e"+E:(O=R.toExponential(),O=O.slice(0,O.indexOf("e")+1)+E),k=new h1(O)):k=new h1(R.toString()),B=h1.precision,R=Y=B+3;;)if(j=k,k=j.plus(w(Z,j,Y+2)).times(.5),b(j.d).slice(0,Y)===(O=b(k.d)).slice(0,Y)){if(O=O.slice(Y-3,Y+1),R==Y&&O=="4999"){if(L(j,B+1,0),j.times(j).eq(Z)){k=j;break}}else if(O!="9999")break;Y+=4}return n=!0,L(k,B)},g.times=g.mul=function(E){var O,B,k,R,j,Y,Z,h1,S1,v1=this,z1=v1.constructor,q1=v1.d,f1=(E=new z1(E)).d;if(!v1.s||!E.s)return new z1(0);for(E.s*=v1.s,B=v1.e+E.e,h1=q1.length,S1=f1.length,h1=0;){for(O=0,R=h1+k;R>k;)Z=j[R]+f1[k]*q1[R-k-1]+O,j[R--]=Z%p|0,O=Z/p|0;j[R]=(j[R]+O)%p|0}for(;!j[--Y];)j.pop();return O?++B:j.shift(),E.d=j,E.e=B,n?L(E,z1.precision):E},g.toDecimalPlaces=g.todp=function(E,O){var B=this,k=B.constructor;return B=new k(B),E===void 0?B:(x(E,0,t),O===void 0?O=k.rounding:x(O,0,8),L(B,E+M(B)+1,O))},g.toExponential=function(E,O){var B,k=this,R=k.constructor;return E===void 0?B=C(k,!0):(x(E,0,t),O===void 0?O=R.rounding:x(O,0,8),k=L(new R(k),E+1,O),B=C(k,!0,E+1)),B},g.toFixed=function(E,O){var B,k,R=this,j=R.constructor;return E===void 0?C(R):(x(E,0,t),O===void 0?O=j.rounding:x(O,0,8),k=L(new j(R),E+M(R)+1,O),B=C(k.abs(),!1,E+M(k)+1),R.isneg()&&!R.isZero()?"-"+B:B)},g.toInteger=g.toint=function(){var E=this,O=E.constructor;return L(new O(E),M(E)+1,O.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(E){var O,B,k,R,j,Y,Z=this,h1=Z.constructor,S1=12,v1=+(E=new h1(E));if(!E.s)return new h1(h);if(Z=new h1(Z),!Z.s){if(E.s<1)throw Error(a+"Infinity");return Z}if(Z.eq(h))return Z;if(k=h1.precision,E.eq(h))return L(Z,k);if(O=E.e,B=E.d.length-1,Y=O>=B,j=Z.s,Y){if((B=v1<0?-v1:v1)<=m){for(R=new h1(h),O=Math.ceil(k/d+4),n=!1;B%2&&(R=R.times(Z),q(R.d,O)),B=o(B/2),B!==0;)Z=Z.times(Z),q(Z.d,O);return n=!0,E.s<0?new h1(h).div(R):L(R,k)}}else if(j<0)throw Error(a+"NaN");return j=j<0&&E.d[Math.max(O,B)]&1?-1:1,Z.s=1,n=!1,R=E.times(T(Z,k+S1)),n=!0,R=A(R),R.s=j,R},g.toPrecision=function(E,O){var B,k,R=this,j=R.constructor;return E===void 0?(B=M(R),k=C(R,B<=j.toExpNeg||B>=j.toExpPos)):(x(E,1,t),O===void 0?O=j.rounding:x(O,0,8),R=L(new j(R),E,O),B=M(R),k=C(R,E<=B||B<=j.toExpNeg,E)),k},g.toSignificantDigits=g.tosd=function(E,O){var B=this,k=B.constructor;return E===void 0?(E=k.precision,O=k.rounding):(x(E,1,t),O===void 0?O=k.rounding:x(O,0,8)),L(new k(B),E,O)},g.toString=g.valueOf=g.val=g.toJSON=function(){var E=this,O=M(E),B=E.constructor;return C(E,O<=B.toExpNeg||O>=B.toExpPos)};function z(E,O){var B,k,R,j,Y,Z,h1,S1,v1=E.constructor,z1=v1.precision;if(!E.s||!O.s)return O.s||(O=new v1(E)),n?L(O,z1):O;if(h1=E.d,S1=O.d,Y=E.e,R=O.e,h1=h1.slice(),j=Y-R,j){for(j<0?(k=h1,j=-j,Z=S1.length):(k=S1,R=Y,Z=h1.length),Y=Math.ceil(z1/d),Z=Y>Z?Y+1:Z+1,j>Z&&(j=Z,k.length=1),k.reverse();j--;)k.push(0);k.reverse()}for(Z=h1.length,j=S1.length,Z-j<0&&(j=Z,k=S1,S1=h1,h1=k),B=0;j;)B=(h1[--j]=h1[j]+S1[j]+B)/p|0,h1[j]%=p;for(B&&(h1.unshift(B),++R),Z=h1.length;h1[--Z]==0;)h1.pop();return O.d=h1,O.e=R,n?L(O,z1):O}function x(E,O,B){if(E!==~~E||EB)throw Error(i+E)}function b(E){var O,B,k,R=E.length-1,j="",Y=E[0];if(R>0){for(j+=Y,O=1;OY?1:-1;else for(Z=h1=0;ZR[Z]?1:-1;break}return h1}function B(k,R,j){for(var Y=0;j--;)k[j]-=Y,Y=k[j]1;)k.shift()}return function(k,R,j,Y){var Z,h1,S1,v1,z1,q1,f1,D1,A1,S,u1,c1,G,W,r1,g1,m1,s1,H1=k.constructor,O1=k.s==R.s?1:-1,_1=k.d,R1=R.d;if(!k.s)return new H1(k);if(!R.s)throw Error(a+"Division by zero");for(h1=k.e-R.e,m1=R1.length,r1=_1.length,f1=new H1(O1),D1=f1.d=[],S1=0;R1[S1]==(_1[S1]||0);)++S1;if(R1[S1]>(_1[S1]||0)&&--h1,j==null?c1=j=H1.precision:Y?c1=j+(M(k)-M(R))+1:c1=j,c1<0)return new H1(0);if(c1=c1/d+2|0,S1=0,m1==1)for(v1=0,R1=R1[0],c1++;(S11&&(R1=E(R1,v1),_1=E(_1,v1),m1=R1.length,r1=_1.length),W=m1,A1=_1.slice(0,m1),S=A1.length;S=p/2&&++g1;do v1=0,Z=O(R1,A1,m1,S),Z<0?(u1=A1[0],m1!=S&&(u1=u1*p+(A1[1]||0)),v1=u1/g1|0,v1>1?(v1>=p&&(v1=p-1),z1=E(R1,v1),q1=z1.length,S=A1.length,Z=O(z1,A1,q1,S),Z==1&&(v1--,B(z1,m116)throw Error(c+M(E));if(!E.s)return new v1(h);for(O==null?(n=!1,Z=z1):Z=O,Y=new v1(.03125);E.abs().gte(.1);)E=E.times(Y),S1+=5;for(k=Math.log(l(2,S1))/Math.LN10*2+5|0,Z+=k,B=R=j=new v1(h),v1.precision=Z;;){if(R=L(R.times(E),Z),B=B.times(++h1),Y=j.plus(w(R,B,Z)),b(Y.d).slice(0,Z)===b(j.d).slice(0,Z)){for(;S1--;)j=L(j.times(j),Z);return v1.precision=z1,O==null?(n=!0,L(j,z1)):j}j=Y}}function M(E){for(var O=E.e*d,B=E.d[0];B>=10;B/=10)O++;return O}function H(E,O,B){if(O>E.LN10.sd())throw n=!0,B&&(E.precision=B),Error(a+"LN10 precision limit exceeded");return L(new E(E.LN10),O)}function V(E){for(var O="";E--;)O+="0";return O}function T(E,O){var B,k,R,j,Y,Z,h1,S1,v1,z1=1,q1=10,f1=E,D1=f1.d,A1=f1.constructor,S=A1.precision;if(f1.s<1)throw Error(a+(f1.s?"NaN":"-Infinity"));if(f1.eq(h))return new A1(0);if(O==null?(n=!1,S1=S):S1=O,f1.eq(10))return O==null&&(n=!0),H(A1,S1);if(S1+=q1,A1.precision=S1,B=b(D1),k=B.charAt(0),j=M(f1),Math.abs(j)<15e14){for(;k<7&&k!=1||k==1&&B.charAt(1)>3;)f1=f1.times(E),B=b(f1.d),k=B.charAt(0),z1++;j=M(f1),k>1?(f1=new A1("0."+B),j++):f1=new A1(k+"."+B.slice(1))}else return h1=H(A1,S1+2,S).times(j+""),f1=T(new A1(k+"."+B.slice(1)),S1-q1).plus(h1),A1.precision=S,O==null?(n=!0,L(f1,S)):f1;for(Z=Y=f1=w(f1.minus(h),f1.plus(h),S1),v1=L(f1.times(f1),S1),R=3;;){if(Y=L(Y.times(v1),S1),h1=Z.plus(w(Y,new A1(R),S1)),b(h1.d).slice(0,S1)===b(Z.d).slice(0,S1))return Z=Z.times(2),j!==0&&(Z=Z.plus(H(A1,S1+2,S).times(j+""))),Z=w(Z,new A1(z1),S1),A1.precision=S,O==null?(n=!0,L(Z,S)):Z;Z=h1,R+=2}}function I(E,O){var B,k,R;for((B=O.indexOf("."))>-1&&(O=O.replace(".","")),(k=O.search(/e/i))>0?(B<0&&(B=k),B+=+O.slice(k+1),O=O.substring(0,k)):B<0&&(B=O.length),k=0;O.charCodeAt(k)===48;)++k;for(R=O.length;O.charCodeAt(R-1)===48;)--R;if(O=O.slice(k,R),O){if(R-=k,B=B-k-1,E.e=o(B/d),E.d=[],k=(B+1)%d,B<0&&(k+=d),ky||E.e<-y))throw Error(c+B)}else E.s=0,E.e=0,E.d=[0];return E}function L(E,O,B){var k,R,j,Y,Z,h1,S1,v1,z1=E.d;for(Y=1,j=z1[0];j>=10;j/=10)Y++;if(k=O-Y,k<0)k+=d,R=O,S1=z1[v1=0];else{if(v1=Math.ceil((k+1)/d),j=z1.length,v1>=j)return E;for(S1=j=z1[v1],Y=1;j>=10;j/=10)Y++;k%=d,R=k-d+Y}if(B!==void 0&&(j=l(10,Y-R-1),Z=S1/j%10|0,h1=O<0||z1[v1+1]!==void 0||S1%j,h1=B<4?(Z||h1)&&(B==0||B==(E.s<0?3:2)):Z>5||Z==5&&(B==4||h1||B==6&&(k>0?R>0?S1/l(10,Y-R):0:z1[v1-1])%10&1||B==(E.s<0?8:7))),O<1||!z1[0])return h1?(j=M(E),z1.length=1,O=O-j-1,z1[0]=l(10,(d-O%d)%d),E.e=o(-O/d)||0):(z1.length=1,z1[0]=E.e=E.s=0),E;if(k==0?(z1.length=v1,j=1,v1--):(z1.length=v1+1,j=l(10,d-k),z1[v1]=R>0?(S1/l(10,Y-R)%l(10,R)|0)*j:0),h1)for(;;)if(v1==0){(z1[0]+=j)==p&&(z1[0]=1,++E.e);break}else{if(z1[v1]+=j,z1[v1]!=p)break;z1[v1--]=0,j=1}for(k=z1.length;z1[--k]===0;)z1.pop();if(n&&(E.e>y||E.e<-y))throw Error(c+M(E));return E}function N(E,O){var B,k,R,j,Y,Z,h1,S1,v1,z1,q1=E.constructor,f1=q1.precision;if(!E.s||!O.s)return O.s?O.s=-O.s:O=new q1(E),n?L(O,f1):O;if(h1=E.d,z1=O.d,k=O.e,S1=E.e,h1=h1.slice(),Y=S1-k,Y){for(v1=Y<0,v1?(B=h1,Y=-Y,Z=z1.length):(B=z1,k=S1,Z=h1.length),R=Math.max(Math.ceil(f1/d),Z)+2,Y>R&&(Y=R,B.length=1),B.reverse(),R=Y;R--;)B.push(0);B.reverse()}else{for(R=h1.length,Z=z1.length,v1=R0;--R)h1[Z++]=0;for(R=z1.length;R>Y;){if(h1[--R]0?j=j.charAt(0)+"."+j.slice(1)+V(k):Y>1&&(j=j.charAt(0)+"."+j.slice(1)),j=j+(R<0?"e":"e+")+R):R<0?(j="0."+V(-R-1)+j,B&&(k=B-Y)>0&&(j+=V(k))):R>=Y?(j+=V(R+1-Y),B&&(k=B-R-1)>0&&(j=j+"."+V(k))):((k=R+1)0&&(R+1===Y&&(j+="."),j+=V(k))),E.s<0?"-"+j:j}function q(E,O){if(E.length>O)return E.length=O,!0}function J(E){var O,B,k;function R(j){var Y=this;if(!(Y instanceof R))return new R(j);if(Y.constructor=R,j instanceof R){Y.s=j.s,Y.e=j.e,Y.d=(j=j.d)?j.slice():j;return}if(typeof j=="number"){if(j*0!==0)throw Error(i+j);if(j>0)Y.s=1;else if(j<0)j=-j,Y.s=-1;else{Y.s=0,Y.e=0,Y.d=[0];return}if(j===~~j&&j<1e7){Y.e=0,Y.d=[j];return}return I(Y,j.toString())}else if(typeof j!="string")throw Error(i+j);if(j.charCodeAt(0)===45?(j=j.slice(1),Y.s=-1):Y.s=1,f.test(j))I(Y,j);else throw Error(i+j)}if(R.prototype=g,R.ROUND_UP=0,R.ROUND_DOWN=1,R.ROUND_CEIL=2,R.ROUND_FLOOR=3,R.ROUND_HALF_UP=4,R.ROUND_HALF_DOWN=5,R.ROUND_HALF_EVEN=6,R.ROUND_HALF_CEIL=7,R.ROUND_HALF_FLOOR=8,R.clone=J,R.config=R.set=$,E===void 0&&(E={}),E)for(k=["precision","rounding","toExpNeg","toExpPos","LN10"],O=0;O=R[O+1]&&k<=R[O+2])this[B]=k;else throw Error(i+B+": "+k);if((k=E[B="LN10"])!==void 0)if(k==Math.LN10)this[B]=new this(k);else throw Error(i+B+": "+k);return this}r=J(r),r.default=r.Decimal=r,h=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof yp<"u"&&yp.exports?yp.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(uK)});var r$=X((sq1,t$)=>{function ez1(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t$.exports=ez1});var sY=X((fW1,oY)=>{var wC1=Hl(),zC1=FM(),MC1=Nn();function CC1(e,t){return e&&e.length?wC1(e,MC1(t,2),zC1):void 0}oY.exports=CC1});var fY=X((uW1,lY)=>{var HC1=Hl(),_C1=Nn(),SC1=jM();function LC1(e,t){return e&&e.length?HC1(e,_C1(t,2),SC1):void 0}lY.exports=LC1});var _Y=X((VW1,HY)=>{var KC1=Sz(),$C1=KC1(Object.getPrototypeOf,Object);HY.exports=$C1});var VY=X((AW1,LY)=>{var YC1=p3(),XC1=_Y(),ZC1=d3(),QC1="[object Object]",JC1=Function.prototype,eH1=Object.prototype,SY=JC1.toString,tH1=eH1.hasOwnProperty,rH1=SY.call(Object);function nH1(e){if(!ZC1(e)||YC1(e)!=QC1)return!1;var t=XC1(e);if(t===null)return!0;var r=tH1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&SY.call(r)==rH1}LY.exports=nH1});var EY=X((EW1,AY)=>{var aH1=p3(),iH1=d3(),cH1="[object Boolean]";function oH1(e){return e===!0||e===!1||iH1(e)&&aH1(e)==cH1}AY.exports=oH1});var QY=X((iG1,ZY)=>{var DH1=Math.ceil,BH1=Math.max;function FH1(e,t,r,n){for(var a=-1,i=BH1(DH1((t-e)/(r||1)),0),c=Array(i);i--;)c[n?i:++a]=e,e+=r;return c}ZY.exports=FH1});var OC=X((cG1,eX)=>{var jH1=Qz(),JY=1/0,UH1=17976931348623157e292;function qH1(e){if(!e)return e===0?e:0;if(e=jH1(e),e===JY||e===-JY){var t=e<0?-1:1;return t*UH1}return e===e?e:0}eX.exports=qH1});var rX=X((oG1,tX)=>{var WH1=QY(),GH1=J8(),TC=OC();function KH1(e){return function(t,r,n){return n&&typeof n!="number"&&GH1(t,r,n)&&(r=n=void 0),t=TC(t),r===void 0?(r=t,t=0):r=TC(r),n=n===void 0?t{var $H1=rX(),YH1=$H1();nX.exports=YH1});var mX=X((xG1,dX)=>{var o_1=Hh();function s_1(e,t){var r;return o_1(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}dX.exports=s_1});var gX=X((bG1,vX)=>{var l_1=yz(),f_1=Nn(),u_1=mX(),h_1=Ft(),p_1=J8();function d_1(e,t,r){var n=h_1(e)?l_1:u_1;return r&&p_1(e,t,r)&&(t=void 0),n(e,f_1(t,3))}vX.exports=d_1});var bX=X((zG1,xX)=>{var yX=Wz();function m_1(e,t,r){t=="__proto__"&&yX?yX(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}xX.exports=m_1});var zX=X((MG1,wX)=>{var v_1=bX(),g_1=jz(),y_1=Nn();function x_1(e,t){var r={};return t=y_1(t,3),g_1(e,function(n,a,i){v_1(r,a,t(n,a,i))}),r}wX.exports=x_1});var CX=X((CG1,MX)=>{function b_1(e,t){for(var r=-1,n=e==null?0:e.length;++r{var w_1=Hh();function z_1(e,t){var r=!0;return w_1(e,function(n,a,i){return r=!!t(n,a,i),r}),r}HX.exports=z_1});var BC=X((_G1,SX)=>{var M_1=CX(),C_1=_X(),H_1=Nn(),__1=Ft(),S_1=J8();function L_1(e,t,r){var n=__1(e)?M_1:C_1;return r&&S_1(e,t,r)&&(t=void 0),n(e,H_1(t,3))}SX.exports=L_1});var PX=X((LG1,TX)=>{var k_1=Nn(),N_1=Sc(),O_1=Q8();function T_1(e){return function(t,r,n){var a=Object(t);if(!N_1(t)){var i=k_1(r,3);t=O_1(t),r=function(o){return i(a[o],o,a)}}var c=e(t,r,n);return c>-1?a[i?t[c]:c]:void 0}}TX.exports=T_1});var RX=X((VG1,IX)=>{var P_1=OC();function I_1(e){var t=P_1(e),r=t%1;return t===t?r?t-r:t:0}IX.exports=I_1});var BX=X((AG1,DX)=>{var R_1=Iz(),D_1=Nn(),B_1=RX(),F_1=Math.max;function j_1(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:B_1(r);return a<0&&(a=F_1(n+a,0)),R_1(e,D_1(t,3),a)}DX.exports=j_1});var jX=X((EG1,FX)=>{var U_1=PX(),q_1=BX(),W_1=U_1(q_1);FX.exports=W_1});var wZ=X((xK1,QC)=>{"use strict";var kS1=Object.prototype.hasOwnProperty,Wt="~";function d5(){}Object.create&&(d5.prototype=Object.create(null),new d5().__proto__||(Wt=!1));function NS1(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function bZ(e,t,r,n,a){if(typeof r!="function")throw new TypeError("The listener must be a function");var i=new NS1(r,n||e,a),c=Wt?Wt+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],i]:e._events[c].push(i):(e._events[c]=i,e._eventsCount++),e}function ad(e,t){--e._eventsCount===0?e._events=new d5:delete e._events[t]}function St(){this._events=new d5,this._eventsCount=0}St.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)kS1.call(r,n)&&t.push(Wt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};St.prototype.listeners=function(t){var r=Wt?Wt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,c=new Array(i);a{var Ne=eQ.exports={},H3,_3;function iH(){throw new Error("setTimeout has not been defined")}function cH(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?H3=setTimeout:H3=iH}catch{H3=iH}try{typeof clearTimeout=="function"?_3=clearTimeout:_3=cH}catch{_3=cH}})();function ZZ(e){if(H3===setTimeout)return setTimeout(e,0);if((H3===iH||!H3)&&setTimeout)return H3=setTimeout,setTimeout(e,0);try{return H3(e,0)}catch{try{return H3.call(null,e,0)}catch{return H3.call(this,e,0)}}}function bL1(e){if(_3===clearTimeout)return clearTimeout(e);if((_3===cH||!_3)&&clearTimeout)return _3=clearTimeout,clearTimeout(e);try{return _3(e)}catch{try{return _3.call(null,e)}catch{return _3.call(this,e)}}}var m4=[],Lo=!1,L6,gd=-1;function wL1(){!Lo||!L6||(Lo=!1,L6.length?m4=L6.concat(m4):gd=-1,m4.length&&QZ())}function QZ(){if(!Lo){var e=ZZ(wL1);Lo=!0;for(var t=m4.length;t;){for(L6=m4,m4=[];++gd1)for(var r=1;r{let s=(e[0]||\"\").toString(),t=e[1],i=[...this.before.get(s)||[],...this.before.get(\"*\")||[]];if(i)for(let c of i)await c(s,t);let a=this.fetch(...e),p=[...this.after.get(s)||[],...this.after.get(\"*\")||[]];if(p){let c=await a;for(let u of p)try{await u(s,c,t)}catch{}return a}else return a})}static onAfter(e,s){r.overrideFetch();let t=r.after.get(e)||[];t.includes(s)||t.push(s),r.after.set(e,t)}static offAfter(e,s){let t=r.after.get(e)||[],i=t.indexOf(s);i!==-1&&t.splice(i,1),t.length?r.after.set(e,t):r.after.delete(e)}static onBefore(e,s){r.overrideFetch();let t=r.before.get(e)||[];t.includes(s)||t.push(s),r.before.set(e,t)}static offBefore(e,s){let t=r.before.get(e)||[],i=t.indexOf(s);i!==-1&&t.splice(i,1),t.length?r.before.set(e,t):r.before.delete(e)}};var o=class{static pushState=window.history.pushState;static overwritten=!1;static listeners=[];static overridePushState(){if(this.overwritten)return;this.overwritten=!0;let e=this.listeners,s=this.pushState;window.history.pushState=function(...t){for(let i of e)i.apply(this,t);return s.apply(this,t)}}static onPushState(e){this.overridePushState(),this.listeners.includes(e)||this.listeners.push(e)}static offPushState(e){let s=this.listeners.indexOf(e);s!==-1&&this.listeners.splice(s,1)}};n.onAfter(\"/api/pixel\",async(r,e,s)=>{try{if(e.status===200&&s&&\"body\"in s){let t=JSON.parse(s.body);if(\"x\"in t&&\"y\"in t&&\"color\"in t){let i=new CustomEvent(f,{detail:{color:t.color,x:t.x,y:t.y}});document.dispatchEvent(i)}}}catch(t){console.error(t)}});o.onPushState((r,e,s)=>{let t=new CustomEvent(h,{detail:s});document.dispatchEvent(t)});document.dispatchEvent(new CustomEvent(d));})();\n//# sourceMappingURL=inject.js.map\n";var vS="__pc-event-pixels-placed",gS="__pc-event-url-update",yS="__pc-event-injected";var df=class{constructor(t,r){this.coordinates=t;this.predict=r;t.on(1,(n,a,i)=>{this.cords?(this.cords[0]=n,this.cords[1]=a,this.cords[2]=i):this.cords=[n,a,i]})}frame;tileRef;lastX;lastY;lastScale;cords;cordUpdate=(t,r,n)=>{this.cords=[t,r,n]};syncCords(){let t=this.coordinates;this.cordUpdate(t.ux,t.uy,t.uScale)}enable(){this.frame||(this.syncCords(),this.coordinates.on(1,this.cordUpdate),this.frame=requestAnimationFrame(this.tick))}disable(){this.frame&&(this.coordinates.off(1,this.cordUpdate),cancelAnimationFrame(this.frame),this.frame=void 0)}get enabled(){return!!this.frame}tick=()=>{if(!this.tileRef||!document.body.contains(this.tileRef)){if(this.tileRef=[...document.getElementsByTagName("canvas")].find(t=>t.classList.contains("leaflet-tile")),this.tileRef){let t=this.tileRef?.getBoundingClientRect();t&&(this.syncCords(),this.lastScale=this.getScale(t.width),this.lastX=t?.left,this.lastY=t?.top),this.nextFrame();return}}else{let t=this.tileRef?.getBoundingClientRect();if(t&&this.lastX!=null&&this.lastY!=null&&this.lastScale!=null){let r=this.getScale(t.width),n=t?.left,a=t?.top;if(n!==this.lastX||a!==this.lastY||r!=this.lastScale){let i=this.lastX-t?.left,c=this.lastY-t?.top;this.lastX=n,this.lastY=a,this.lastScale=r,this.cords[0]+=i/(t.width/512),this.cords[1]+=c/(t.width/512),this.predict(this.cords[0],this.cords[1],this.cords[2]),this.cords[2]=r}}}this.nextFrame()};nextFrame(){this.frame&&(this.frame=requestAnimationFrame(this.tick))}getScale(t){let r=t/512;return Math.log(r)/Math.log(2)}};var QT=p1(Qo());var YE=p1(Zm());var se=p1(Z1());var mt=function(){return mt=Object.assign||function(t){for(var r,n=1,a=arguments.length;n0?xe(Z6,--Dr):0,X6--,Oe===10&&(X6=1,Mf--),Oe}function Br(){return Oe=Dr2||iv(Oe)>3?"":" "}function US(e,t){for(;--t&&Br()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Cf(e,as()+(t<6&&A4()==32&&Br()==32))}function cv(e){for(;Br();)switch(Oe){case e:return Dr;case 34:case 39:e!==34&&e!==39&&cv(Oe);break;case 40:e===41&&cv(e);break;case 92:Br();break}return Dr}function qS(e,t){for(;Br()&&e+Oe!==57;)if(e+Oe===84&&A4()===47)break;return"/*"+Cf(t,Dr-1)+"*"+ts(e===47?e:Br())}function WS(e){for(;!iv(A4());)Br();return Cf(e,Dr)}function $S(e){return FS(_f("",null,null,null,[""],e=BS(e),0,[0],e))}function _f(e,t,r,n,a,i,c,o,l){for(var f=0,h=0,p=c,d=0,m=0,y=0,g=1,z=1,x=1,b=0,w="",A=a,M=i,H=n,V=w;z;)switch(y=b,b=Br()){case 40:if(y!=108&&xe(V,p-1)==58){Y6(V+=c2(Hf(b),"&","&\f"),"&\f",nv(f?o[f-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:V+=Hf(b);break;case 9:case 10:case 13:case 32:V+=jS(y);break;case 92:V+=US(as()-1,7);continue;case 47:switch(A4()){case 42:case 47:ti(yn1(qS(Br(),as()),t,r,l),l);break;default:V+="/"}break;case 123*g:o[f++]=Tt(V)*x;case 125*g:case 59:case 0:switch(b){case 0:case 125:z=0;case 59+h:x==-1&&(V=c2(V,/\f/g,"")),m>0&&Tt(V)-p&&ti(m>32?KS(V+";",n,r,p-1,l):KS(c2(V," ","")+";",n,r,p-2,l),l);break;case 59:V+=";";default:if(ti(H=GS(V,t,r,f,h,a,o,w,A=[],M=[],p,i),i),b===123)if(h===0)_f(V,t,H,H,A,i,p,o,M);else switch(d===99&&xe(V,3)===110?100:d){case 100:case 108:case 109:case 115:_f(e,H,H,n&&ti(GS(e,H,H,0,0,a,o,w,a,A=[],p,M),M),a,M,p,o,n?A:M);break;default:_f(V,H,H,H,[""],M,0,o,M)}}f=h=m=0,g=x=1,w=V="",p=c;break;case 58:p=1+Tt(V),m=y;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&DS()==125)continue}switch(V+=ts(b),b*g){case 38:x=h>0?1:(V+="\f",-1);break;case 44:o[f++]=(Tt(V)-1)*x,x=1;break;case 64:A4()===45&&(V+=Hf(Br())),d=A4(),h=p=Tt(w=V+=WS(as())),b++;break;case 45:y===45&&Tt(V)==2&&(g=0)}}return i}function GS(e,t,r,n,a,i,c,o,l,f,h,p){for(var d=a-1,m=a===0?i:[""],y=zf(m),g=0,z=0,x=0;g0?m[b]+" "+w:c2(w,/&\f/g,m[b])))&&(l[x++]=A);return ns(e,t,r,a===0?V4:o,l,f,h,p)}function yn1(e,t,r,n){return ns(e,t,r,xf,ts(RS()),$n(e,2,-2),0,n)}function KS(e,t,r,n,a){return ns(e,t,r,$6,$n(e,0,n),$n(e,n+1,-1),n,a)}function ov(e,t,r){switch(TS(e,t)){case 5103:return S2+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S2+e+e;case 4789:return ei+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S2+e+ei+e+W2+e+e;case 5936:switch(xe(e,t+11)){case 114:return S2+e+W2+c2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S2+e+W2+c2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S2+e+W2+c2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S2+e+W2+e+e;case 6165:return S2+e+W2+"flex-"+e+e;case 5187:return S2+e+c2(e,/(\w+).+(:[^]+)/,S2+"box-$1$2"+W2+"flex-$1$2")+e;case 5443:return S2+e+W2+"flex-item-"+c2(e,/flex-|-self/g,"")+(xn(e,/flex-|baseline/)?"":W2+"grid-row-"+c2(e,/flex-|-self/g,""))+e;case 4675:return S2+e+W2+"flex-line-pack"+c2(e,/align-content|flex-|-self/g,"")+e;case 5548:return S2+e+W2+c2(e,"shrink","negative")+e;case 5292:return S2+e+W2+c2(e,"basis","preferred-size")+e;case 6060:return S2+"box-"+c2(e,"-grow","")+S2+e+W2+c2(e,"grow","positive")+e;case 4554:return S2+c2(e,/([^-])(transform)/g,"$1"+S2+"$2")+e;case 6187:return c2(c2(c2(e,/(zoom-|grab)/,S2+"$1"),/(image-set)/,S2+"$1"),e,"")+e;case 5495:case 3959:return c2(e,/(image-set\([^]*)/,S2+"$1$`$1");case 4968:return c2(c2(e,/(.+:)(flex-)?(.*)/,S2+"box-pack:$3"+W2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S2+e+e;case 4200:if(!xn(e,/flex-|baseline/))return W2+"grid-column-align"+$n(e,t)+e;break;case 2592:case 3360:return W2+c2(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,a){return t=a,xn(n.props,/grid-\w+-end/)})?~Y6(e+(r=r[t].value),"span",0)?e:W2+c2(e,"-start","")+e+W2+"grid-row-span:"+(~Y6(r,"span",0)?xn(r,/\d+/):+xn(r,/\d+/)-+xn(e,/\d+/))+";":W2+c2(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return xn(n.props,/grid-\w+-start/)})?e:W2+c2(c2(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return c2(e,/(.+)-inline(.+)/,S2+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(e)-1-t>6)switch(xe(e,t+1)){case 109:if(xe(e,t+4)!==45)break;case 102:return c2(e,/(.+:)(.+)-([^]+)/,"$1"+S2+"$2-$3$1"+ei+(xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Y6(e,"stretch",0)?ov(c2(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return c2(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,a,i,c,o,l,f){return W2+a+":"+i+f+(c?W2+a+"-span:"+(o?l:+l-+i)+f:"")+e});case 4949:if(xe(e,t+6)===121)return c2(e,":",":"+S2)+e;break;case 6444:switch(xe(e,xe(e,14)===45?18:11)){case 120:return c2(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S2+(xe(e,14)===45?"inline-":"")+"box$3$1"+S2+"$2$3$1"+W2+"$2box$3")+e;case 100:return c2(e,":",":"+W2)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return c2(e,"scroll-","scroll-snap-")+e}return e}function Q6(e,t){for(var r="",n=0;n-1&&!e.return)switch(e.type){case $6:e.return=ov(e.value,e.length,r);return;case bf:return Q6([I3(e,{value:c2(e.value,"@","@"+S2)})],n);case V4:if(e.length)return PS(r=e.props,function(a){switch(xn(a,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ri(I3(e,{props:[c2(a,/:(read-\w+)/,":"+ei+"$1")]})),ri(I3(e,{props:[a]})),rs(e,{props:av(r,n)});break;case"::placeholder":ri(I3(e,{props:[c2(a,/:(plac\w+)/,":"+S2+"input-$1")]})),ri(I3(e,{props:[c2(a,/:(plac\w+)/,":"+ei+"$1")]})),ri(I3(e,{props:[c2(a,/:(plac\w+)/,W2+"input-$1")]})),ri(I3(e,{props:[a]})),rs(e,{props:av(r,n)});break}return""})}}var xn1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},JS=xn1;var D3=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fL="active",Ef="data-styled-version",e0="6.1.8",gv=`/*!sc*/ `,yv=typeof window<"u"&&"HTMLElement"in window,bn1=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY);var Of=Object.freeze([]),t0=Object.freeze({});function wn1(e,t,r){return r===void 0&&(r=t0),e.theme!==r.theme&&e.theme||t||r.theme}var uL=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),zn1=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Mn1=/(^-|-$)/g;function eL(e){return e.replace(zn1,"-").replace(Mn1,"")}var Cn1=/(a)(d)/gi,Sf=52,tL=function(e){return String.fromCharCode(e+(e>25?39:97))};function uv(e){var t,r="";for(t=Math.abs(e);t>Sf;t=t/Sf|0)r=tL(t%Sf)+r;return(tL(t%Sf)+r).replace(Cn1,"$1-$2")}var sv,hL=5381,J6=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},pL=function(e){return J6(hL,e)};function Hn1(e){return uv(pL(e)>>>0)}function _n1(e){return e.displayName||e.name||"Component"}function lv(e){return typeof e=="string"&&!0}var dL=typeof Symbol=="function"&&Symbol.for,mL=dL?Symbol.for("react.memo"):60115,Sn1=dL?Symbol.for("react.forward_ref"):60112,Ln1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vn1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vL={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},An1=((sv={})[Sn1]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},sv[mL]=vL,sv);function rL(e){return("type"in(t=e)&&t.type.$$typeof)===mL?vL:"$$typeof"in e?An1[e.$$typeof]:Ln1;var t}var En1=Object.defineProperty,kn1=Object.getOwnPropertyNames,nL=Object.getOwnPropertySymbols,Nn1=Object.getOwnPropertyDescriptor,On1=Object.getPrototypeOf,aL=Object.prototype;function gL(e,t,r){if(typeof t!="string"){if(aL){var n=On1(t);n&&n!==aL&&gL(e,n,r)}var a=kn1(t);nL&&(a=a.concat(nL(t)));for(var i=rL(e),c=rL(t),o=0;o0?" Args: ".concat(t.join(", ")):""))}var Tn1=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,a=n.length,i=a;t>=i;)if((i<<=1)<0)throw R3(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var c=a;c=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],a=this.indexOfGroup(t),i=a+n,c=a;c=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(z+="".concat(x,","))}),l+="".concat(y).concat(g,'{content:"').concat(z,'"}').concat(gv)},h=0;h0?".".concat(t):d},h=l.slice();h.push(function(d){d.type===V4&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(Wn1,r).replace(n,f))}),c.prefix&&h.push(QS),h.push(YS);var p=function(d,m,y,g){m===void 0&&(m=""),y===void 0&&(y=""),g===void 0&&(g="&"),t=g,r=m,n=new RegExp("\\".concat(r,"\\b"),"g");var z=d.replace(Gn1,""),x=$S(y||m?"".concat(y," ").concat(m," { ").concat(z," }"):z);c.namespace&&(x=xL(x,c.namespace));var b=[];return Q6(x,XS(h.concat(ZS(function(w){return b.push(w)})))),b};return p.hash=l.length?l.reduce(function(d,m){return m.name||R3(15),J6(d,m.name)},hL).toString():"",p}var Kn1=new cs,dv=bL(),wv=be.default.createContext({shouldForwardProp:void 0,styleSheet:Kn1,stylis:dv}),uV1=wv.Consumer,$n1=be.default.createContext(void 0);function mv(){return(0,be.useContext)(wv)}function Yn1(e){var t=(0,be.useState)(e.stylisPlugins),r=t[0],n=t[1],a=mv().styleSheet,i=(0,be.useMemo)(function(){var l=a;return e.sheet?l=e.sheet:e.target&&(l=l.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[e.disableCSSOMInjection,e.sheet,e.target,a]),c=(0,be.useMemo)(function(){return bL({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,be.useEffect)(function(){(0,lL.default)(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var o=(0,be.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:c}},[e.shouldForwardProp,i,c]);return be.default.createElement(wv.Provider,{value:o},be.default.createElement($n1.Provider,{value:c},e.children))}var Xn1=function(){function e(t,r){var n=this;this.inject=function(a,i){i===void 0&&(i=dv);var c=n.name+i.hash;a.hasNameForId(n.id,c)||a.insertRules(n.id,c,i(n.rules,c,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,bv(this,function(){throw R3(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=dv),this.name+t.hash},e}(),Zn1=function(e){return e>="A"&&e<="Z"};function cL(e){for(var t="",r=0;r>>0);if(!r.hasNameForId(this.componentId,c)){var o=n(i,".".concat(c),void 0,this.componentId);r.insertRules(this.componentId,c,o)}a=ni(a,c),this.staticRulesId=c}else{for(var l=J6(this.baseHash,n.hash),f="",h=0;h>>0);r.hasNameForId(this.componentId,m)||r.insertRules(this.componentId,m,n(f,".".concat(m),void 0,this.componentId)),a=ni(a,m)}}return a},e}(),CL=be.default.createContext(void 0),hV1=CL.Consumer;var fv={};function e31(e,t,r){var n=xv(e),a=e,i=!lv(e),c=t.attrs,o=c===void 0?Of:c,l=t.componentId,f=l===void 0?function(A,M){var H=typeof A!="string"?"sc":eL(A);fv[H]=(fv[H]||0)+1;var V="".concat(H,"-").concat(Hn1(e0+H+fv[H]));return M?"".concat(M,"-").concat(V):V}(t.displayName,t.parentComponentId):l,h=t.displayName,p=h===void 0?function(A){return lv(A)?"styled.".concat(A):"Styled(".concat(_n1(A),")")}(e):h,d=t.displayName&&t.componentId?"".concat(eL(t.displayName),"-").concat(t.componentId):t.componentId||f,m=n&&a.attrs?a.attrs.concat(o).filter(Boolean):o,y=t.shouldForwardProp;if(n&&a.shouldForwardProp){var g=a.shouldForwardProp;if(t.shouldForwardProp){var z=t.shouldForwardProp;y=function(A,M){return g(A,M)&&z(A,M)}}else y=g}var x=new Jn1(r,d,n?a.componentStyle:void 0);function b(A,M){return function(H,V,T){var I=H.attrs,L=H.componentStyle,N=H.defaultProps,C=H.foldedComponentIds,q=H.styledComponentId,J=H.target,$=be.default.useContext(CL),E=mv(),O=H.shouldForwardProp||E.shouldForwardProp,B=wn1(V,$,N)||t0,k=function(S1,v1,z1){for(var q1,f1=mt(mt({},v1),{className:void 0,theme:z1}),D1=0;D12&&cs.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,a)},e}();var dV1=function(){function e(){var t=this;this._emitSheetCSS=function(){var r=t.instance.toString(),n=pv(),a=kf([n&&'nonce="'.concat(n,'"'),"".concat(D3,'="true"'),"".concat(Ef,'="').concat(e0,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(t.sealed)throw R3(2);return t._emitSheetCSS()},this.getStyleElement=function(){var r;if(t.sealed)throw R3(2);var n=((r={})[D3]="",r[Ef]=e0,r.dangerouslySetInnerHTML={__html:t.instance.toString()},r),a=pv();return a&&(n.nonce=a),[be.default.createElement("style",mt({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new cs({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(t){if(this.sealed)throw R3(2);return be.default.createElement(Yn1,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){throw R3(3)},e}();var mV1="__sc-".concat(D3,"__");var $E=p1(Py()),na1=t2.div` min-width: 250px; min-height: 50px; max-width: fit-content; max-height: fit-content; margin: 15px auto 15px auto; padding: 10px; pointer-events: all; touch-action: auto; background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; `,Iy=t2.p` white-space: pre-warp; `,Ry=t2.div` display: flex; `,aa1=t2.input` margin: 2px; padding: 5px; outline: none !important; background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; `,k0=t2.button` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; width: 100%; border-radius: none; margin: 2px; padding: 2px; outline: none !important; &:hover { background-color: rgba(158, 158, 158, 0.75); } transition: background-color 250ms; `,Qe=class e{static _ref;static active;static root;static alert(t,r){return new Promise(n=>{e.clear();let a=()=>{n(),this.active=void 0,this.clear()};this.active=a,e.renderContent(se.default.createElement("div",null,se.default.createElement("h5",null,r||`${location.host} says`),se.default.createElement(Iy,null,t),se.default.createElement(k0,{onClick:()=>a()},"OK")))})}static async confirm(t,r){return new Promise(n=>{e.clear();let a=i=>{n(i),this.active=void 0,this.clear()};this.active=()=>a(!1),e.renderContent(se.default.createElement("div",null,se.default.createElement("h5",null,r||`${location.host} says`),se.default.createElement(Iy,null,t),se.default.createElement(Ry,null,se.default.createElement(k0,{onClick:()=>a(!0)},"OK"),se.default.createElement(k0,{onClick:()=>a(!1)},"Cancel"))))})}static async prompt(t,r,n){return new Promise(a=>{e.clear();let i=o=>{a(o),this.active=void 0,this.clear()};this.active=()=>i("");let c=(0,se.createRef)();e.renderContent(se.default.createElement("div",null,se.default.createElement("h5",null,n||`${location.host} says`),se.default.createElement(Iy,null,t),se.default.createElement(aa1,{ref:c,type:"text"}),se.default.createElement(Ry,null,se.default.createElement(k0,{onClick:()=>i(c.current&&c.current.value)},"OK"),se.default.createElement(k0,{onClick:()=>i(null)},"Cancel")))),c.current&&(c.current.focus(),c.current.value=r||"",c.current.addEventListener("keyup",o=>{o.key.toLowerCase()==="enter"&&c.current&&i(c.current.value)}))})}static custom(t,r){return new Promise(n=>{e.clear();let a=()=>{this.active=void 0,n(),this.clear()};this.active=()=>a(),e.renderContent(se.default.createElement("div",null,t,se.default.createElement(Ry,null,r?r.map((i,c)=>se.default.createElement(k0,{key:c,onClick:async o=>{let l=i.click(o),f;l instanceof Promise?f=await l:f=l,f||(this.active=void 0,this.clear(),n())}},i.content)):null)))})}static close(){this.clear()}static clear(){this.root&&(this.root.unmount(),this.root=void 0);let t=e.ref.style;t.pointerEvents="none",t.touchAction="none",t.backgroundColor="rgba(0, 0, 0, 0)",this.active&&this.active(),this.active=void 0}static renderContent(t){let r=e.createBase(t);this.root=(0,$E.createRoot)(e.ref),this.root.render(r);let n=e.ref.style;n.pointerEvents="all",n.touchAction="auto",n.backgroundColor="rgba(0, 0, 0, 0.5)"}static createBase(t){return se.default.createElement(na1,null,t)}static get ref(){if(e._ref)return e._ref;let t=document.createElement("div");document.body.appendChild(t),e._ref=t;let r=t.style;return r.position="fixed",r.zIndex=`${Number.MAX_SAFE_INTEGER}`,r.width="100%",r.height="100%",r.pointerEvents="none",r.touchAction="none",r.backgroundColor="rgba(0, 0, 0, 0)",r.transition="background-color 1s",r.overflowY="auto",r.overflowX="hidden",t}};var XE=p1(Z1());function ia1(){return new Promise(e=>{let t=document.createElement("div"),r=document.createElement("div"),n=t.style;n.position="fixed",n.zIndex="100000",n.left=n.top="0",n.width=`${window.innerWidth}px`,n.height=`${window.innerHeight}px`,document.body.appendChild(t),n.backgroundColor="rgba(0, 0, 0, 0.50)";let a=r.style;a.position="fixed",a.zIndex="100001",a.width="5px",a.height="5px",a.border="2px solid white";let i,c=(z,x,b,w)=>{i={x:z,y:x,xOff:b,yOff:w}},o=z=>{c(z.clientX,z.clientY,z.offsetX,z.offsetY)},l=z=>{let x=z.touches[z.touches.length-1],b=z.target,{x:w,y:A,width:M,height:H}=b.getBoundingClientRect(),V=(x.clientX-w)/M*b.offsetWidth,T=(x.clientY-A)/H*b.offsetHeight;c(x.clientX,x.clientY,V,T)},f=(z,x)=>{if(!i)return{x:z,y:x,width:0,height:0};let b=Math.min(z,i.x),w=Math.max(z,i.x),A=Math.min(x,i.y),M=Math.max(x,i.y),H=w-b,V=M-A;return{x:Math.floor(b),y:Math.floor(A),width:Math.ceil(H),height:Math.ceil(V)}},h=(z,x)=>{if(!i)return;document.body.contains(r)||document.body.appendChild(r);let b=f(z,x),w=r.style;w.width=`${b.width}px`,w.height=`${b.height}px`,w.left=`${b.x}px`,w.top=`${b.y}px`},p=z=>{if(!i||!(z instanceof MouseEvent))return;let{clientX:x,clientY:b}=z;h(x,b)},d=z=>{if(!i||!(z instanceof TouchEvent)||!z.isTrusted)return;let x=z.touches[0];if(a.borderWidth="6px",x){let{clientX:b,clientY:w}=x;h(b,w)}},m=(z,x)=>{if(i){let b=f(z,x);i=void 0,window.removeEventListener("mousedown",g),window.removeEventListener("touchend",y),window.removeEventListener("mousedown",o),window.removeEventListener("touchstart",l),window.removeEventListener("mouseup",p),window.removeEventListener("touchmove",d),document.body.removeChild(t),document.body.contains(r)&&document.body.removeChild(r),e(b)}},y=z=>{let x=z.touches[0]||z.changedTouches[0];if(x){let{clientX:b,clientY:w}=x;m(b,w)}},g=z=>{m(z.clientX,z.clientY)};window.addEventListener("mouseup",g),window.addEventListener("touchend",y),window.addEventListener("mousedown",o),window.addEventListener("touchstart",l),window.addEventListener("mousemove",p),window.addEventListener("touchmove",d)})}async function Dy(e,t,r,n,a=0){let i=eu();i.width=r/Math.pow(2,a),i.height=n/Math.pow(2,a);let c=i.getContext("2d"),o=Math.floor(e%512),l=Math.floor(t%512),f=[];for(let h=0;h{QE(e+h,t+p).then(g=>{let z=e>0?-o:-(512+o)%512,x=t>0?-l:-(512+l)%512;c.drawImage(g,h+z,p+x),m()}).catch(y)});f.push(d)}return await Promise.all(f),i}async function ZE(e){let t=await ia1(),r=e.screenToGrid(t.x,t.y),n=e.screenToGrid(t.x+t.width,t.height+t.y);if(!(!r||!n))try{let a=await Dy(r.x,r.y,t.width,t.height,e.uScale),i=a.toDataURL();Qe.custom(XE.default.createElement("img",{style:{border:"1px solid black"},src:i}),[{content:"Download",click:()=>{a.toBlob(c=>{let o=Math.floor(r.x+t.width/2),l=Math.floor(r.x+t.height/2);c&&(0,YE.default)(c,`${o}:${l}:${new Date().toLocaleDateString()}.png`)})}},{content:"Cancel",click:()=>{}}])}catch{Qe.alert("Something went wrong while trying to capture screenshot")}}var xb=p1(YT()),XT=p1(ea()),u3=class e{constructor(t,r,n,a,i,c){this._name=t;this._x=r;this._y=n;this._w=a;this._h=i;this._b=c;this.validate()}static ENCODE_VERSION=1;clone(){return new e(this.name,this.x,this.y,this.w,this.h,this._b.slice())}getBuffer(){this.validate();let r=new TextEncoder().encode(this._name),n=this._b,a=15+r.byteLength,i=new ArrayBuffer(a+n.byteLength),c=new DataView(i);return c.setUint8(0,e.ENCODE_VERSION),c.setInt32(1,this._x),c.setInt32(5,this._y),c.setUint16(9,this._h),c.setUint16(11,this._w),c.setUint8(13,r.length),new Uint8Array(i).set(r,15),new Uint8Array(i).set(new Uint8Array(this._b.buffer,this._b.byteOffset,this._b.byteLength),a),new Promise((o,l)=>{xb.default.deflate(XT.Buffer.from(i),(f,h)=>{f?l(f):o(h)})})}static async from(t){let r=await new Promise((y,g)=>{xb.default.inflate(t,(z,x)=>{z?g(z):y(x)})}),n=new DataView(r.buffer);if(n.getUint8(0)!==e.ENCODE_VERSION)throw new Error("Unknown version");let i=n.getInt32(1),c=n.getInt32(5),o=n.getUint16(9),l=n.getUint16(11),f=n.getUint8(13),h=r.subarray(15,15+f),d=new TextDecoder().decode(h),m=new Int8Array(r.buffer,r.byteOffset+15+f,r.byteLength-(15+f));return new e(d,i,c,l,o,m)}validate2(){try{return this.validate(),!0}catch{return!1}}validate(){if(this._w*this._h>2147483647)throw new Error("Size too big");if(this._w>65535)throw new Error("Width to big");if(this._h>65535)throw new Error("Height to big");if(Math.abs(this._x)>2147483647)throw new Error("X to big");if(Math.abs(this._y)>2147483647)throw new Error("X to big")}getPixel(t,r){return this._b[this.getIndex(t,r)]}setPixel(t,r,n){this._b[this.getIndex(t,r)]=n}getIndex(t,r){return r*this._w+t}fixBuffer(){let t=this._w*this._h;if(this._b.length!==t){let r=this._b;this._b=new Int8Array(t),this._b.set(r.subarray(0,t))}}get name(){return this._name}set name(t){let r=this._name;this._name=t,this.validate2()||(this._name=r)}get x(){return this._x}set x(t){let r=this._x;this._x=t,this.validate2()||(this._x=r)}get y(){return this._y}set y(t){let r=this._y;this._y=t,this.validate2()||(this._y=r)}get w(){return this._w}set w(t){let r=this._w;this._w=t,this.validate2()?this._w=r:this.fixBuffer()}get h(){return this._h}set h(t){let r=this._h;this._h=t,this.validate2()?this._h=r:this.fixBuffer()}get pixelBuffer(){return this._b}};function e9(e,t){return e.indexOf(t)===-1?(e.push(t),!0):!1}function b8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),!0):!1}function so1(e,t,r){return{r:e,g:t,b:r}}function lo1(e,t){let r=[];for(let i of t){let c=Q0(e.r,i.r),o=Q0(e.g,i.g),l=Q0(e.b,i.b);r.push(c+o+l)}let n=Math.min(...r);return r.indexOf(n)}function Q0(e,t){return e>t?e-t:t-e}function bb(e,t=2){return e.toString(16).padStart(t,"0")}function JT(e,t,r){return"#"+bb(e)+bb(t)+bb(r)}function t9(){return new Promise(e=>requestAnimationFrame(e))}function zb(e){let t=e.lastIndexOf(".");return t===-1?{text:e,ex:""}:{text:e.slice(0,t),ex:e.slice(t+1)}}function eP(e){return new Promise((t,r)=>{let n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.addEventListener("error",a=>{r(a)}),n.readAsText(e)})}function tP(e){return new Promise((t,r)=>{let n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.addEventListener("error",a=>{r(a)}),n.readAsDataURL(e)})}function rP(e){return new Promise((t,r)=>{let n=new FileReader;n.addEventListener("load",()=>{t(n.result)}),n.addEventListener("error",a=>{r(a)}),n.readAsArrayBuffer(e)})}function nP(e,t){return new Promise((r,n)=>{let a=new Image;a.alt=e,a.addEventListener("load",()=>r(a)),a.addEventListener("error",i=>{n(i)}),t.startsWith("data:image")||t.startsWith("blob")?a.src=t:a.src=`data:image/${zb(e)};base64,${t}`})}function aP(e,t,r){let n=eu();n.width=t,n.height=r;let a=n.getContext("2d");return a.imageSmoothingEnabled=!1,a.drawImage(e,0,0,t,r),fo1(n,e.alt)}function fo1(e,t){return new Promise((r,n)=>{let a=e.toDataURL("image/png"),i=new Image;i.addEventListener("load",()=>r(i)),i.addEventListener("error",c=>n(c)),t&&(i.alt=t),i.src=a})}function r9(e){return e.getContext("2d").getImageData(0,0,e.width,e.height)}async function iP(e,t){let r=e.w,n=e.h,i=(await Dy(e.x,e.y,r,n)).getContext("2d")?.getImageData(0,0,r,n),c=e.pixelBuffer,o=0,l=0,f=0;if(i){for(let h=0,p=0;h=0){let d=i.data[h+0],m=i.data[h+1],y=i.data[h+2],g=so1(d,m,y);o++,lo1(g,t)===c[p]?f++:l++}}return{total:o,good:f,bad:l}}function Mb(e,t){let{height:r,width:n}=e,a=0,i=Cb(t),c=new Int8Array(r*n);for(let o=0;o-1){i++;let f=r[l];if(!f)throw new Error(`Unknown color at ${l}`);a.fillStyle=f,a.fillRect(c*n,o*n,n,n)}}return i}function eu(){let e=document.createElement("canvas");return e.setAttribute("overlay","true"),e}function ZT(e){return Math.floor(e/512)*512}function ho1(e,t){let r=document.createElement("canvas");r.width=e.w,r.height=e.h;let n=uo1(r,e,t);return{canvas:r,pixels:n}}function w8(e,t){let{canvas:r,pixels:n}=ho1(e,t);return{mural:e,pixelCount:n,ref:r}}function Cb(e){let t=new Uint16Array(e.length),r=Number.MAX_SAFE_INTEGER;return(n,a,i)=>{r=Number.MAX_SAFE_INTEGER;for(let c=0;c{c.addEventListener("load",()=>{URL.revokeObjectURL(i),o(c)}),c.addEventListener("error",()=>{URL.revokeObjectURL(i),l(new Error("Unable to load image"))})})}function n9(e){let t=e.pixels.length,r=e.pixels[0].length,n=e.pixels.length*e.pixels[0].length,a=new Int8Array(n),i=0;for(let c=0;c{document.body.removeChild(t)},{once:!0}),t.addEventListener("error",r=>{console.error(r)}),new Promise((r,n)=>{let a=document;t.addEventListener("error",i=>{n(i.error)},{once:!0}),a.addEventListener(yS,()=>{r()},{once:!0}),t.textContent=mS,document.body.appendChild(t),a.addEventListener(vS,i=>{let c=i.detail;typeof c=="object"&&"x"in c&&"y"in c&&"color"in c&&typeof c.color=="number"&&typeof c.x=="number"&&typeof c.y=="number"&&(this.store.addPixelLog(c.x,c.y,c.color),this.eventEmitter.emit(1,c))}),a.addEventListener(gS,i=>{let c=i.detail;typeof c=="string"&&this.eventEmitter.emit(2,c)})})}on(t,r){return this.eventEmitter.on(t,r),this}off(t,r){return this.eventEmitter.off(t,r),this}};var i9=class{constructor(t,r){this.storage=r;t.on(2,n=>{this.onUrlCordsUpdate(n)}),this.onUrlCordsUpdate(),this.coordinatePredictor=new df(this,(n,a,i)=>{this._ux=Math.round(n),this._uy=Math.round(a),this._uScale=Math.round(i),this.emitter.emit(2,n,a,i)})}cords;emitter=new va;observer;_x=0;_y=0;frame;_ux=0;_uy=0;_uScale=0;down;coordinatePredictor;_highPrecision=!1;toggleHigherPrecision(t){this._highPrecision!==t&&(t?(this.coordinatePredictor.enable(),window.removeEventListener("touchstart",this.touchStart),window.removeEventListener("touchmove",this.touchMove),window.removeEventListener("touchend",this.endMovement),window.removeEventListener("mousedown",this.mouseDown),window.removeEventListener("mousemove",this.mouseMove),window.removeEventListener("mouseup",this.endMovement)):(this.coordinatePredictor.disable(),window.addEventListener("touchstart",this.touchStart),window.addEventListener("touchmove",this.touchMove),window.addEventListener("touchend",this.endMovement),window.addEventListener("mousedown",this.mouseDown),window.addEventListener("mousemove",this.mouseMove),window.addEventListener("mouseup",this.endMovement)),this.storage.toggleHighPrecision(t),this._highPrecision=t)}get highPrecision(){return this._highPrecision}touchStart=t=>{t.target instanceof HTMLCanvasElement&&t.touches.length===1&&(this.down=[t.touches[0].clientX,t.touches[0].clientY,this.ux,this.uy])};touchMove=t=>{if(this.down&&t.touches.length===1){let r=Math.round((this.down[0]-t.touches[0].clientX)/Math.pow(2,this._uScale)),n=Math.round((this.down[1]-t.touches[0].clientY)/Math.pow(2,this._uScale)),a=this._ux,i=this._uy;this._ux=this.down[2]+r,this._uy=this.down[3]+n,(a!==this._ux||i!==this._uy)&&this.emitter.emit(1,this._ux,this._uy,this._uScale)}};mouseDown=t=>{t.target instanceof HTMLCanvasElement&&(this.down=[t.x,t.y,this.ux,this.uy])};mouseMove=t=>{if(this.down){let r=Math.round((this.down[0]-t.x)/Math.pow(2,this._uScale)),n=Math.round((this.down[1]-t.y)/Math.pow(2,this._uScale)),a=this._ux,i=this._uy;this._ux=this.down[2]+r,this._uy=this.down[3]+n,(a!==this._ux||i!==this._uy)&&this.emitter.emit(1,this._ux,this._uy,this._uScale)}};endMovement=()=>{this.down=void 0};on(t,r){this.emitter.on(t,r)}off(t,r){this.emitter.off(t,r)}async init(){for(;!this.cords;){let r=[...document.getElementsByTagName("div")].filter(n=>n.textContent&&n.textContent.match(/^\(\s*-?\d+\s*,\s*-?\d+\s*\)$/));for(let n of r)if(n.children.length===0){this.cords=n,this.observer=new MutationObserver(()=>{this.updateDivCords()}),this.observer.observe(n,{characterData:!0,subtree:!0});break}await t9()}let t=await this.storage.enabledHighPrecision();this.toggleHigherPrecision(t)}stop(){this.observer&&this.observer.disconnect()}get centerCanvas(){let t=window.innerWidth/2,r=window.innerHeight/2,n=[...document.getElementsByTagName("canvas")].filter(a=>a.classList.contains("leaflet-tile")).map(a=>{let i=a.getBoundingClientRect();return{canvas:a,bounds:{width:i.width,height:i.height,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}}).find(a=>t>a.bounds.left&&ta.bounds.top&&ri&&ri&&r>c?n.bounds.left+=l:(n.bounds.left+=o,n.bounds.top+=l)),n.bounds.bottom=n.bounds.top+o,n.bounds.right=n.bounds.left+l,null}n.bounds.width/=a,n.bounds.height/=a,n.bounds.right=n.bounds.left+n.bounds.width,n.bounds.bottom=n.bounds.bottom+n.bounds.height}return n}get pixelSize(){return Math.pow(2,this.uScale)}screenToGrid(t,r){let n=this.centerCanvas;if(!n)return null;let a=Math.floor(this.ux/512)*512,i=Math.floor(this.uy/512)*512,c=(t-n.bounds.left)/this.pixelSize+a,o=(r-n.bounds.top)/this.pixelSize+i;return{x:c,y:o}}gridToScreen(t,r){let n=this.centerCanvas;if(!n)return null;let a=Math.floor(this.ux/512)*512,i=Math.floor(this.uy/512)*512,c=t-a,o=r-i,l=n.bounds.left+c*this.pixelSize,f=n.bounds.top+o*this.pixelSize;return{x:l,y:f}}updateURLcords(t){let r=location.pathname.split("/").filter(a=>a),n=t||r[0];if(n){let a=n.match(/-?\d+/g);if(a){let i=a.map(c=>parseInt(c));if(typeof i[0]=="number"&&typeof i[1]=="number"&&typeof i[2]=="number")return this._ux=i[0],this._uy=i[1],this._uScale=i[2],i}}return null}parse(){let t=this.cords.textContent.match(/-?\d+/g).map(r=>parseInt(r));this._x=t[0],this._y=t[1]}updateDivCords(){let t=this._x,r=this._y;this.parse(),(t!==this._x||r!==this._y)&&this.emitter.emit(0,this._x,this._y)}onUrlCordsUpdate(t){let r=this._ux,n=this._uy,a=this._uScale;this.updateURLcords(t),this.down=void 0,(r!==this._ux||n!==this._uy||a!==this._uScale)&&this.emitter.emit(1,this._ux,this._uy,this._uScale)}get x(){return this._x}get y(){return this._y}get ux(){return this._ux}get uy(){return this._uy}get uScale(){return this._uScale}get dragging(){return!!this.down}};var c9=class{buttons=[];palette=[];hex=[];init(){let t=[...document.getElementsByTagName("button")].filter(f=>f.style.backgroundColor);if(t.length<2)return null;let r=new Map,n=new Map,a=t.map(f=>{let{width:h,height:p}=f.getBoundingClientRect(),d=r.get(h)||0,m=n.get(p)||0;return d++,m++,r.set(h,d),n.set(p,m),{btn:f,width:h,height:p}}),i=Array.from(r).sort((f,h)=>f[1]f[1]f.width===i&&f.height===c);this.buttons=o.map(f=>f.btn),this.buttons[0].parentElement.parentElement.style.zIndex="10";let l=o.map(f=>{let h=f.btn.style.backgroundColor.match(/\d+/g);return{r:parseInt(h[0]),g:parseInt(h[1]),b:parseInt(h[2])}});return this.palette=l,this.hex=l.map(f=>JT(f.r,f.g,f.b)),l}};var aH=p1(Z1());var Lt=p1(Z1());var lP=p1(sP());var o9=class{constructor(t,r){this.storage=t;this.palette=r}STORAGE_KEY_HIGH_PRECISION="_high-precision";STORAGE_KEY_MURAL="_murals";STORAGE_KEY_SELECTED="_mural";STORAGE_KEY_LOG_STORE="records";_murals=[];_selected;emitter=new va;_overlayIndices=[];_phantomOverlay=-1;_overlayModify;dbLog;db=lP.default.createInstance({name:"pixel-canvas-overlay"});async load(){globalThis.store=this;let t="pixel-canvas-log",r=indexedDB.open(t,1);r.addEventListener("upgradeneeded",o=>{if(o){let f=(o?.target).result.createObjectStore(this.STORAGE_KEY_LOG_STORE,{keyPath:"id",autoIncrement:!0});f.createIndex("by_timestamp","timestamp"),f.createIndex("by_color","color")}}),this.dbLog=await new Promise((o,l)=>{r.addEventListener("success",f=>{let h=f.target?.result;h?o(h):l(new Error("IndexDB did not return db object"))},{once:!0}),r.addEventListener("error",f=>{confirm("Unable to load data. Would you like to continue? Some feature will not work correctly")?(indexedDB.deleteDatabase(t),o(void 0)):l(f.target.error)},{once:!0})}),this._murals=[];let n=await this.db.getItem(this.STORAGE_KEY_MURAL)||[],a=await Promise.all(n.map(o=>u3.from(o))),i=await this.storage.getItem(this.STORAGE_KEY_MURAL);if(i){for(let l of i){let f=n9(l);a.push(f)}let o=await Promise.all(a.map(l=>l.getBuffer()));this.storage.removeItem(this.STORAGE_KEY_MURAL),this.db.setItem(this.STORAGE_KEY_MURAL,o)}for(let o of a)this._murals.push(w8(o,this.palette.hex));let c=await this.storage.getItem(this.STORAGE_KEY_SELECTED)??-1;if(c!=null)this.select(this._murals[c]),this.storage.removeItem(this.STORAGE_KEY_SELECTED),await this.db.setItem(this.STORAGE_KEY_SELECTED,c);else{let o=await this.db.getItem(this.STORAGE_KEY_SELECTED);o!=null&&this.select(this._murals[o])}}addPixelLog(t,r,n){let i={timestamp:new Date().toISOString(),color:n,x:t,y:r};return new Promise((c,o)=>{if(!this.dbLog){c(null);return}let h=this.dbLog.transaction(this.STORAGE_KEY_LOG_STORE,"readwrite").objectStore(this.STORAGE_KEY_LOG_STORE).add(i);h.addEventListener("success",()=>{c(h.result),this.emit(7)},{once:!0}),h.addEventListener("error",()=>{o(h.error)},{once:!0})})}async fetchPixelsLogByColor(t){if(!this.dbLog)return Promise.resolve([]);let a=this.dbLog.transaction("records","readonly").objectStore("records").index("by_color"),i=IDBKeyRange.only(t),c=a.openCursor(i);return this.cursorIterator(c)}async fetchPixelsLogByTime(t,r){if(!this.dbLog)return Promise.resolve([]);let i=this.dbLog.transaction(this.STORAGE_KEY_LOG_STORE,"readonly").objectStore(this.STORAGE_KEY_LOG_STORE).index("by_timestamp"),c=IDBKeyRange.bound(t.toISOString(),r.toISOString()),o=i.openCursor(c);return this.cursorIterator(o)}async getPixelCount(){if(!this.dbLog)return Promise.resolve(0);let r=this.dbLog.transaction(this.STORAGE_KEY_LOG_STORE,"readonly").objectStore(this.STORAGE_KEY_LOG_STORE);return new Promise((n,a)=>{let i=r.count();i.addEventListener("success",()=>{n(i.result)},{once:!0}),i.addEventListener("error",()=>{a(i.error)},{once:!0})})}cursorIterator(t){let r=[];return new Promise(n=>{t.addEventListener("success",a=>{let i=a.target.result;i?(r.push(i.value),i.continue()):n(r)})})}updateMural(t){this.save(),this.emit(3)}unload(){this.save()}add(t){let r=w8(t,this.palette.hex);this._murals.push(r),this.emit(8),this.save()}remove(t){this._overlayIndices=[],this._overlayModify=void 0,this._phantomOverlay=-1,this._selected&&this._selected===t&&(this._selected=void 0),b8(this._murals,t),this.emit(2),this.save()}addOverlay(t){let r=this._murals.indexOf(t);r!==-1&&(e9(this._overlayIndices,r),this._phantomOverlay===r&&(this._phantomOverlay=-1)),this.emit(5),this.save()}removeOverlay(t){let r=this._murals.indexOf(t);r!==-1&&b8(this._overlayIndices,r),this.emit(5),this.save()}setOverlayModify(t){this._overlayModify=t;let r=t.cb;t.cb=(n,a,i,c)=>{r(n,a,i,c),this._overlayModify=void 0,this.emit(5)},this.emit(5)}hasOverlay(t){let r=this._murals.indexOf(t);return this._overlayIndices.includes(r)}select(t){this._selected=t,this.emit(4),this.save()}async save(){let t=await Promise.all(this._murals.map(n=>n.mural.getBuffer()));this.db.setItem(this.STORAGE_KEY_MURAL,t);let r=this._selected?this._murals.indexOf(this._selected):-1;await this.db.setItem(this.STORAGE_KEY_SELECTED,r)}addPhantomOverlay(t){let r=this._murals.indexOf(t);r!==this._phantomOverlay&&!this._overlayIndices.includes(r)&&(this._phantomOverlay=r,this.emit(6))}removePhantomOverlay(){this._phantomOverlay!==-1&&(this._phantomOverlay=-1,this.emit(6))}async enabledHighPrecision(){return await this.storage.getItem(this.STORAGE_KEY_HIGH_PRECISION)??!1}toggleHighPrecision(t){return this.storage.setItem(this.STORAGE_KEY_HIGH_PRECISION,t)}get murals(){return this._murals}get overlays(){return this._overlayIndices}get phantomOverlay(){return this._phantomOverlay}get overlayModify(){return this._overlayModify}get selected(){return this._selected}on(t,r){this.emitter.on(t,r)}off(t,r){this.emitter.off(t,r)}emit(t){this.emitter.emit(t,this),this.emitter.emit(8,this)}};var fP={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"]};var uP={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]};var hP={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]};var po1={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},pP=po1;var dP={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]};var mP={prefix:"fas",iconName:"square",icon:[448,512,[9632,9723,9724,61590],"f0c8","M0 96C0 60.7 28.7 32 64 32H384c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96z"]};var do1={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},vP=do1;var _b={prefix:"fas",iconName:"location-crosshairs",icon:[512,512,["location"],"f601","M256 0c17.7 0 32 14.3 32 32V66.7C368.4 80.1 431.9 143.6 445.3 224H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H445.3C431.9 368.4 368.4 431.9 288 445.3V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V445.3C143.6 431.9 80.1 368.4 66.7 288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H66.7C80.1 143.6 143.6 80.1 224 66.7V32c0-17.7 14.3-32 32-32zM128 256a128 128 0 1 0 256 0 128 128 0 1 0 -256 0zm128-80a80 80 0 1 1 0 160 80 80 0 1 1 0-160z"]},gP=_b;var yP={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7zM416 128H32L53.2 467c1.6 25.3 22.6 45 47.9 45H346.9c25.3 0 46.3-19.7 47.9-45L416 128z"]};var xP={prefix:"fas",iconName:"camera",icon:[512,512,[62258,"camera-alt"],"f030","M149.1 64.8L138.7 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H373.3L362.9 64.8C356.4 45.2 338.1 32 317.4 32H194.6c-20.7 0-39 13.2-45.5 32.8zM256 192a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]};var bP={prefix:"fas",iconName:"crosshairs",icon:[512,512,[],"f05b","M256 0c17.7 0 32 14.3 32 32V42.4c93.7 13.9 167.7 88 181.6 181.6H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H469.6c-13.9 93.7-88 167.7-181.6 181.6V480c0 17.7-14.3 32-32 32s-32-14.3-32-32V469.6C130.3 455.7 56.3 381.7 42.4 288H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H42.4C56.3 130.3 130.3 56.3 224 42.4V32c0-17.7 14.3-32 32-32zM107.4 288c12.5 58.3 58.4 104.1 116.6 116.6V384c0-17.7 14.3-32 32-32s32 14.3 32 32v20.6c58.3-12.5 104.1-58.4 116.6-116.6H384c-17.7 0-32-14.3-32-32s14.3-32 32-32h20.6C392.1 165.7 346.3 119.9 288 107.4V128c0 17.7-14.3 32-32 32s-32-14.3-32-32V107.4C165.7 119.9 119.9 165.7 107.4 224H128c17.7 0 32 14.3 32 32s-14.3 32-32 32H107.4zM256 224a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};var wP={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]};var zP={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]};var MP={prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M288 109.3V352c0 17.7-14.3 32-32 32s-32-14.3-32-32V109.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352H192c0 35.3 28.7 64 64 64s64-28.7 64-64H448c35.3 0 64 28.7 64 64v32c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V416c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]};var CP={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24V232h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H232V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"]};var HP={prefix:"fas",iconName:"magnifying-glass-minus",icon:[512,512,["search-minus"],"f010","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM136 184c-13.3 0-24 10.7-24 24s10.7 24 24 24H280c13.3 0 24-10.7 24-24s-10.7-24-24-24H136z"]};function _P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function j1(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1;a--){var i=r[a],c=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(n=i)}return ne.head.insertBefore(t,n),e}}var Ro1="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function V8(){for(var e=12,t="";e-- >0;)t+=Ro1[Math.random()*62|0];return t}function ac(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function Kb(e){return e.classList?ac(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function lI(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Do1(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(lI(e[r]),'" ')},"").trim()}function z9(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function $b(e){return e.size!==h3.size||e.x!==h3.x||e.y!==h3.y||e.rotate!==h3.rotate||e.flipX||e.flipY}function Bo1(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),o="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(c," ").concat(o)},f={transform:"translate(".concat(n/2*-1," -256)")};return{outer:a,inner:l,path:f}}function Fo1(e){var t=e.transform,r=e.width,n=r===void 0?kb:r,a=e.height,i=a===void 0?kb:a,c=e.startCentered,o=c===void 0?!1:c,l="";return o&&rI?l+="translate(".concat(t.x/ga-n/2,"em, ").concat(t.y/ga-i/2,"em) "):o?l+="translate(calc(-50% + ".concat(t.x/ga,"em), calc(-50% + ").concat(t.y/ga,"em)) "):l+="translate(".concat(t.x/ga,"em, ").concat(t.y/ga,"em) "),l+="scale(".concat(t.size/ga*(t.flipX?-1:1),", ").concat(t.size/ga*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var jo1=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; } svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { overflow: visible; box-sizing: content-box; } .svg-inline--fa { display: var(--fa-display, inline-block); height: 1em; overflow: visible; vertical-align: -0.125em; } .svg-inline--fa.fa-2xs { vertical-align: 0.1em; } .svg-inline--fa.fa-xs { vertical-align: 0em; } .svg-inline--fa.fa-sm { vertical-align: -0.0714285705em; } .svg-inline--fa.fa-lg { vertical-align: -0.2em; } .svg-inline--fa.fa-xl { vertical-align: -0.25em; } .svg-inline--fa.fa-2xl { vertical-align: -0.3125em; } .svg-inline--fa.fa-pull-left { margin-right: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-pull-right { margin-left: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-li { width: var(--fa-li-width, 2em); top: 0.25em; } .svg-inline--fa.fa-fw { width: var(--fa-fw-width, 1.25em); } .fa-layers svg.svg-inline--fa { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; } .fa-layers-counter, .fa-layers-text { display: inline-block; position: absolute; text-align: center; } .fa-layers { display: inline-block; height: 1em; position: relative; text-align: center; vertical-align: -0.125em; width: 1em; } .fa-layers svg.svg-inline--fa { -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-text { left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transform-origin: center center; transform-origin: center center; } .fa-layers-counter { background-color: var(--fa-counter-background-color, #ff253a); border-radius: var(--fa-counter-border-radius, 1em); box-sizing: border-box; color: var(--fa-inverse, #fff); line-height: var(--fa-counter-line-height, 1); max-width: var(--fa-counter-max-width, 5em); min-width: var(--fa-counter-min-width, 1.5em); overflow: hidden; padding: var(--fa-counter-padding, 0.25em 0.5em); right: var(--fa-right, 0); text-overflow: ellipsis; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-counter-scale, 0.25)); transform: scale(var(--fa-counter-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-bottom-right { bottom: var(--fa-bottom, 0); right: var(--fa-right, 0); top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom right; transform-origin: bottom right; } .fa-layers-bottom-left { bottom: var(--fa-bottom, 0); left: var(--fa-left, 0); right: auto; top: auto; -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: bottom left; transform-origin: bottom left; } .fa-layers-top-right { top: var(--fa-top, 0); right: var(--fa-right, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top right; transform-origin: top right; } .fa-layers-top-left { left: var(--fa-left, 0); right: auto; top: var(--fa-top, 0); -webkit-transform: scale(var(--fa-layers-scale, 0.25)); transform: scale(var(--fa-layers-scale, 0.25)); -webkit-transform-origin: top left; transform-origin: top left; } .fa-1x { font-size: 1em; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-6x { font-size: 6em; } .fa-7x { font-size: 7em; } .fa-8x { font-size: 8em; } .fa-9x { font-size: 9em; } .fa-10x { font-size: 10em; } .fa-2xs { font-size: 0.625em; line-height: 0.1em; vertical-align: 0.225em; } .fa-xs { font-size: 0.75em; line-height: 0.0833333337em; vertical-align: 0.125em; } .fa-sm { font-size: 0.875em; line-height: 0.0714285718em; vertical-align: 0.0535714295em; } .fa-lg { font-size: 1.25em; line-height: 0.05em; vertical-align: -0.075em; } .fa-xl { font-size: 1.5em; line-height: 0.0416666682em; vertical-align: -0.125em; } .fa-2xl { font-size: 2em; line-height: 0.03125em; vertical-align: -0.1875em; } .fa-fw { text-align: center; width: 1.25em; } .fa-ul { list-style-type: none; margin-left: var(--fa-li-margin, 2.5em); padding-left: 0; } .fa-ul > li { position: relative; } .fa-li { left: calc(var(--fa-li-width, 2em) * -1); position: absolute; text-align: center; width: var(--fa-li-width, 2em); line-height: inherit; } .fa-border { border-color: var(--fa-border-color, #eee); border-radius: var(--fa-border-radius, 0.1em); border-style: var(--fa-border-style, solid); border-width: var(--fa-border-width, 0.08em); padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); } .fa-pull-left { float: left; margin-right: var(--fa-pull-margin, 0.3em); } .fa-pull-right { float: right; margin-left: var(--fa-pull-margin, 0.3em); } .fa-beat { -webkit-animation-name: fa-beat; animation-name: fa-beat; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-bounce { -webkit-animation-name: fa-bounce; animation-name: fa-bounce; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } .fa-fade { -webkit-animation-name: fa-fade; animation-name: fa-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-beat-fade { -webkit-animation-name: fa-beat-fade; animation-name: fa-beat-fade; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-flip { -webkit-animation-name: fa-flip; animation-name: fa-flip; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-shake { -webkit-animation-name: fa-shake; animation-name: fa-shake; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-delay: var(--fa-animation-delay, 0s); animation-delay: var(--fa-animation-delay, 0s); -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 2s); animation-duration: var(--fa-animation-duration, 2s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, linear); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin-reverse { --fa-animation-direction: reverse; } .fa-pulse, .fa-spin-pulse { -webkit-animation-name: fa-spin; animation-name: fa-spin; -webkit-animation-direction: var(--fa-animation-direction, normal); animation-direction: var(--fa-animation-direction, normal); -webkit-animation-duration: var(--fa-animation-duration, 1s); animation-duration: var(--fa-animation-duration, 1s); -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-iteration-count: var(--fa-animation-iteration-count, infinite); -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); animation-timing-function: var(--fa-animation-timing, steps(8)); } @media (prefers-reduced-motion: reduce) { .fa-beat, .fa-bounce, .fa-fade, .fa-beat-fade, .fa-flip, .fa-pulse, .fa-shake, .fa-spin, .fa-spin-pulse { -webkit-animation-delay: -1ms; animation-delay: -1ms; -webkit-animation-duration: 1ms; animation-duration: 1ms; -webkit-animation-iteration-count: 1; animation-iteration-count: 1; -webkit-transition-delay: 0s; transition-delay: 0s; -webkit-transition-duration: 0s; transition-duration: 0s; } } @-webkit-keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @keyframes fa-beat { 0%, 90% { -webkit-transform: scale(1); transform: scale(1); } 45% { -webkit-transform: scale(var(--fa-beat-scale, 1.25)); transform: scale(var(--fa-beat-scale, 1.25)); } } @-webkit-keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @keyframes fa-bounce { 0% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 10% { -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } 100% { -webkit-transform: scale(1, 1) translateY(0); transform: scale(1, 1) translateY(0); } } @-webkit-keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @-webkit-keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); -webkit-transform: scale(1); transform: scale(1); } 50% { opacity: 1; -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @-webkit-keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @keyframes fa-flip { 50% { -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @-webkit-keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes fa-shake { 0% { -webkit-transform: rotate(-15deg); transform: rotate(-15deg); } 4% { -webkit-transform: rotate(15deg); transform: rotate(15deg); } 8%, 24% { -webkit-transform: rotate(-18deg); transform: rotate(-18deg); } 12%, 28% { -webkit-transform: rotate(18deg); transform: rotate(18deg); } 16% { -webkit-transform: rotate(-22deg); transform: rotate(-22deg); } 20% { -webkit-transform: rotate(22deg); transform: rotate(22deg); } 32% { -webkit-transform: rotate(-12deg); transform: rotate(-12deg); } 36% { -webkit-transform: rotate(12deg); transform: rotate(12deg); } 40%, 100% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @-webkit-keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes fa-spin { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .fa-rotate-90 { -webkit-transform: rotate(90deg); transform: rotate(90deg); } .fa-rotate-180 { -webkit-transform: rotate(180deg); transform: rotate(180deg); } .fa-rotate-270 { -webkit-transform: rotate(270deg); transform: rotate(270deg); } .fa-flip-horizontal { -webkit-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { -webkit-transform: scale(1, -1); transform: scale(1, -1); } .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { -webkit-transform: scale(-1, -1); transform: scale(-1, -1); } .fa-rotate-by { -webkit-transform: rotate(var(--fa-rotate-angle, none)); transform: rotate(var(--fa-rotate-angle, none)); } .fa-stack { display: inline-block; vertical-align: middle; height: 2em; position: relative; width: 2.5em; } .fa-stack-1x, .fa-stack-2x { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; z-index: var(--fa-stack-z-index, auto); } .svg-inline--fa.fa-stack-1x { height: 1em; width: 1.25em; } .svg-inline--fa.fa-stack-2x { height: 2em; width: 2.5em; } .fa-inverse { color: var(--fa-inverse, #fff); } .sr-only, .fa-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .sr-only-focusable:not(:focus), .fa-sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .svg-inline--fa .fa-primary { fill: var(--fa-primary-color, currentColor); opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa .fa-secondary { fill: var(--fa-secondary-color, currentColor); opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-primary { opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-secondary { opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa mask .fa-primary, .svg-inline--fa mask .fa-secondary { fill: black; } .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); }`;function fI(){var e=nI,t=aI,r=$1.cssPrefix,n=$1.replacementClass,a=jo1;if(r!==e||n!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),c=new RegExp("\\--".concat(e,"\\-"),"g"),o=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(r,"-")).replace(c,"--".concat(r,"-")).replace(o,".".concat(n))}return a}var OP=!1;function Sb(){$1.autoAddCss&&!OP&&(Io1(fI()),OP=!0)}var Uo1={mixout:function(){return{dom:{css:fI,insertCss:Sb}}},hooks:function(){return{beforeDOMElementCreation:function(){Sb()},beforeI2svg:function(){Sb()}}}},r4=ya||{};r4[t4]||(r4[t4]={});r4[t4].styles||(r4[t4].styles={});r4[t4].hooks||(r4[t4].hooks={});r4[t4].shims||(r4[t4].shims=[]);var En=r4[t4],uI=[],qo1=function e(){ne.removeEventListener("DOMContentLoaded",e),b9=1,uI.map(function(t){return t()})},b9=!1;a4&&(b9=(ne.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ne.readyState),b9||ne.addEventListener("DOMContentLoaded",qo1));function Wo1(e){a4&&(b9?setTimeout(e,0):uI.push(e))}function k8(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?lI(e):"<".concat(t," ").concat(Do1(n),">").concat(i.map(k8).join(""),"")}function TP(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var Go1=function(t,r){return function(n,a,i,c){return t.call(r,n,a,i,c)}},Lb=function(t,r,n,a){var i=Object.keys(t),c=i.length,o=a!==void 0?Go1(r,a):r,l,f,h;for(n===void 0?(l=1,h=t[i[0]]):(l=0,h=n);l=55296&&a<=56319&&r=55296&&n<=56319&&r>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function PP(e){return Object.keys(e).reduce(function(t,r){var n=e[r],a=!!n.icon;return a?t[n.iconName]=n.icon:t[r]=n,t},{})}function Tb(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,a=n===void 0?!1:n,i=PP(t);typeof En.hooks.addPack=="function"&&!a?En.hooks.addPack(e,PP(t)):En.styles[e]=j1(j1({},En.styles[e]||{}),i),e==="fas"&&Tb("fa",t)}var d9,m9,v9,ec=En.styles,Yo1=En.shims,Xo1=(d9={},qe(d9,re,Object.values(S8[re])),qe(d9,Ce,Object.values(S8[Ce])),d9),Yb=null,hI={},pI={},dI={},mI={},vI={},Zo1=(m9={},qe(m9,re,Object.keys(H8[re])),qe(m9,Ce,Object.keys(H8[Ce])),m9);function Qo1(e){return~No1.indexOf(e)}function Jo1(e,t){var r=t.split("-"),n=r[0],a=r.slice(1).join("-");return n===e&&a!==""&&!Qo1(a)?a:null}var gI=function(){var t=function(i){return Lb(ec,function(c,o,l){return c[l]=Lb(o,i,{}),c},{})};hI=t(function(a,i,c){if(i[3]&&(a[i[3]]=c),i[2]){var o=i[2].filter(function(l){return typeof l=="number"});o.forEach(function(l){a[l.toString(16)]=c})}return a}),pI=t(function(a,i,c){if(a[c]=c,i[2]){var o=i[2].filter(function(l){return typeof l=="string"});o.forEach(function(l){a[l]=c})}return a}),vI=t(function(a,i,c){var o=i[2];return a[c]=c,o.forEach(function(l){a[l]=c}),a});var r="far"in ec||$1.autoFetchSvg,n=Lb(Yo1,function(a,i){var c=i[0],o=i[1],l=i[2];return o==="far"&&!r&&(o="fas"),typeof c=="string"&&(a.names[c]={prefix:o,iconName:l}),typeof c=="number"&&(a.unicodes[c.toString(16)]={prefix:o,iconName:l}),a},{names:{},unicodes:{}});dI=n.names,mI=n.unicodes,Yb=M9($1.styleDefault,{family:$1.familyDefault})};Po1(function(e){Yb=M9(e.styleDefault,{family:$1.familyDefault})});gI();function Xb(e,t){return(hI[e]||{})[t]}function es1(e,t){return(pI[e]||{})[t]}function Gi(e,t){return(vI[e]||{})[t]}function yI(e){return dI[e]||{prefix:null,iconName:null}}function ts1(e){var t=mI[e],r=Xb("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function xa(){return Yb}var Zb=function(){return{prefix:null,iconName:null,rest:[]}};function M9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?re:r,a=H8[n][e],i=_8[n][e]||_8[n][a],c=e in En.styles?e:null;return i||c||null}var IP=(v9={},qe(v9,re,Object.keys(S8[re])),qe(v9,Ce,Object.keys(S8[Ce])),v9);function C9(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,a=n===void 0?!1:n,i=(t={},qe(t,re,"".concat($1.cssPrefix,"-").concat(re)),qe(t,Ce,"".concat($1.cssPrefix,"-").concat(Ce)),t),c=null,o=re;(e.includes(i[re])||e.some(function(f){return IP[re].includes(f)}))&&(o=re),(e.includes(i[Ce])||e.some(function(f){return IP[Ce].includes(f)}))&&(o=Ce);var l=e.reduce(function(f,h){var p=Jo1($1.cssPrefix,h);if(ec[h]?(h=Xo1[o].includes(h)?So1[o][h]:h,c=h,f.prefix=h):Zo1[o].indexOf(h)>-1?(c=h,f.prefix=M9(h,{family:o})):p?f.iconName=p:h!==$1.replacementClass&&h!==i[re]&&h!==i[Ce]&&f.rest.push(h),!a&&f.prefix&&f.iconName){var d=c==="fa"?yI(f.iconName):{},m=Gi(f.prefix,f.iconName);d.prefix&&(c=null),f.iconName=d.iconName||m||f.iconName,f.prefix=d.prefix||f.prefix,f.prefix==="far"&&!ec.far&&ec.fas&&!$1.autoFetchSvg&&(f.prefix="fas")}return f},Zb());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&o===Ce&&(ec.fass||$1.autoFetchSvg)&&(l.prefix="fass",l.iconName=Gi(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||c==="fa")&&(l.prefix=xa()||"fas"),l}var rs1=function(){function e(){mo1(this,e),this.definitions={}}return vo1(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,a=new Array(n),i=0;i0&&h.forEach(function(p){typeof p=="string"&&(r[o][p]=f)}),r[o][l]=f}),r}}]),e}(),RP=[],tc={},rc={},ns1=Object.keys(rc);function as1(e,t){var r=t.mixoutsTo;return RP=e,tc={},Object.keys(rc).forEach(function(n){ns1.indexOf(n)===-1&&delete rc[n]}),RP.forEach(function(n){var a=n.mixout?n.mixout():{};if(Object.keys(a).forEach(function(c){typeof a[c]=="function"&&(r[c]=a[c]),x9(a[c])==="object"&&Object.keys(a[c]).forEach(function(o){r[c]||(r[c]={}),r[c][o]=a[c][o]})}),n.hooks){var i=n.hooks();Object.keys(i).forEach(function(c){tc[c]||(tc[c]=[]),tc[c].push(i[c])})}n.provides&&n.provides(rc)}),r}function Pb(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a1?t-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return a4?($i("beforeI2svg",t),n4("pseudoElements2svg",t),n4("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;$1.autoReplaceSvg===!1&&($1.autoReplaceSvg=!0),$1.observeMutations=!0,Wo1(function(){ss1({autoReplaceSvgRoot:r}),$i("watch",t)})}},os1={icon:function(t){if(t===null)return null;if(x9(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:Gi(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=M9(t[0]);return{prefix:n,iconName:Gi(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat($1.cssPrefix,"-"))>-1||t.match(Lo1))){var a=C9(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||xa(),iconName:Gi(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=xa();return{prefix:i,iconName:Gi(i,t)||t}}}},Mr={noAuto:is1,config:$1,dom:cs1,parse:os1,library:xI,findIconDefinition:Ib,toHtml:k8},ss1=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?ne:r;(Object.keys(En.styles).length>0||$1.autoFetchSvg)&&a4&&$1.autoReplaceSvg&&Mr.dom.i2svg({node:n})};function H9(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return k8(n)})}}),Object.defineProperty(e,"node",{get:function(){if(a4){var n=ne.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function ls1(e){var t=e.children,r=e.main,n=e.mask,a=e.attributes,i=e.styles,c=e.transform;if($b(c)&&r.found&&!n.found){var o=r.width,l=r.height,f={x:o/l/2,y:.5};a.style=z9(j1(j1({},i),{},{"transform-origin":"".concat(f.x+c.x/16,"em ").concat(f.y+c.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function fs1(e){var t=e.prefix,r=e.iconName,n=e.children,a=e.attributes,i=e.symbol,c=i===!0?"".concat(t,"-").concat($1.cssPrefix,"-").concat(r):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:j1(j1({},a),{},{id:c}),children:n}]}]}function Qb(e){var t=e.icons,r=t.main,n=t.mask,a=e.prefix,i=e.iconName,c=e.transform,o=e.symbol,l=e.title,f=e.maskId,h=e.titleId,p=e.extra,d=e.watchable,m=d===void 0?!1:d,y=n.found?n:r,g=y.width,z=y.height,x=a==="fak",b=[$1.replacementClass,i?"".concat($1.cssPrefix,"-").concat(i):""].filter(function(I){return p.classes.indexOf(I)===-1}).filter(function(I){return I!==""||!!I}).concat(p.classes).join(" "),w={children:[],attributes:j1(j1({},p.attributes),{},{"data-prefix":a,"data-icon":i,class:b,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(z)})},A=x&&!~p.classes.indexOf("fa-fw")?{width:"".concat(g/z*16*.0625,"em")}:{};m&&(w.attributes[Ki]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(h||V8())},children:[l]}),delete w.attributes.title);var M=j1(j1({},w),{},{prefix:a,iconName:i,main:r,mask:n,maskId:f,transform:c,symbol:o,styles:j1(j1({},A),p.styles)}),H=n.found&&r.found?n4("generateAbstractMask",M)||{children:[],attributes:{}}:n4("generateAbstractIcon",M)||{children:[],attributes:{}},V=H.children,T=H.attributes;return M.children=V,M.attributes=T,o?fs1(M):ls1(M)}function DP(e){var t=e.content,r=e.width,n=e.height,a=e.transform,i=e.title,c=e.extra,o=e.watchable,l=o===void 0?!1:o,f=j1(j1(j1({},c.attributes),i?{title:i}:{}),{},{class:c.classes.join(" ")});l&&(f[Ki]="");var h=j1({},c.styles);$b(a)&&(h.transform=Fo1({transform:a,startCentered:!0,width:r,height:n}),h["-webkit-transform"]=h.transform);var p=z9(h);p.length>0&&(f.style=p);var d=[];return d.push({tag:"span",attributes:f,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}function us1(e){var t=e.content,r=e.title,n=e.extra,a=j1(j1(j1({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),i=z9(n.styles);i.length>0&&(a.style=i);var c=[];return c.push({tag:"span",attributes:a,children:[t]}),r&&c.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),c}var Vb=En.styles;function Rb(e){var t=e[0],r=e[1],n=e.slice(4),a=jb(n,1),i=a[0],c=null;return Array.isArray(i)?c={tag:"g",attributes:{class:"".concat($1.cssPrefix,"-").concat(Wi.GROUP)},children:[{tag:"path",attributes:{class:"".concat($1.cssPrefix,"-").concat(Wi.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat($1.cssPrefix,"-").concat(Wi.PRIMARY),fill:"currentColor",d:i[1]}}]}:c={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:r,icon:c}}var hs1={found:!1,width:512,height:512};function ps1(e,t){!iI&&!$1.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Db(e,t){var r=t;return t==="fa"&&$1.styleDefault!==null&&(t=xa()),new Promise(function(n,a){var i={found:!1,width:512,height:512,icon:n4("missingIconAbstract")||{}};if(r==="fa"){var c=yI(e)||{};e=c.iconName||e,t=c.prefix||t}if(e&&t&&Vb[t]&&Vb[t][e]){var o=Vb[t][e];return n(Rb(o))}ps1(e,t),n(j1(j1({},hs1),{},{icon:$1.showMissingIcons&&e?n4("missingIconAbstract")||{}:{}}))})}var BP=function(){},Bb=$1.measurePerformance&&s9&&s9.mark&&s9.measure?s9:{mark:BP,measure:BP},z8='FA "6.5.1"',ds1=function(t){return Bb.mark("".concat(z8," ").concat(t," begins")),function(){return bI(t)}},bI=function(t){Bb.mark("".concat(z8," ").concat(t," ends")),Bb.measure("".concat(z8," ").concat(t),"".concat(z8," ").concat(t," begins"),"".concat(z8," ").concat(t," ends"))},Jb={begin:ds1,end:bI},g9=function(){};function FP(e){var t=e.getAttribute?e.getAttribute(Ki):null;return typeof t=="string"}function ms1(e){var t=e.getAttribute?e.getAttribute(qb):null,r=e.getAttribute?e.getAttribute(Wb):null;return t&&r}function vs1(e){return e&&e.classList&&e.classList.contains&&e.classList.contains($1.replacementClass)}function gs1(){if($1.autoReplaceSvg===!0)return y9.replace;var e=y9[$1.autoReplaceSvg];return e||y9.replace}function ys1(e){return ne.createElementNS("http://www.w3.org/2000/svg",e)}function xs1(e){return ne.createElement(e)}function wI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?ys1:xs1:r;if(typeof e=="string")return ne.createTextNode(e);var a=n(e.tag);Object.keys(e.attributes||[]).forEach(function(c){a.setAttribute(c,e.attributes[c])});var i=e.children||[];return i.forEach(function(c){a.appendChild(wI(c,{ceFn:n}))}),a}function bs1(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var y9={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(a){r.parentNode.insertBefore(wI(a),r)}),r.getAttribute(Ki)===null&&$1.keepOriginalSource){var n=ne.createComment(bs1(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~Kb(r).indexOf($1.replacementClass))return y9.replace(t);var a=new RegExp("".concat($1.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(o,l){return l===$1.replacementClass||l.match(a)?o.toSvg.push(l):o.toNode.push(l),o},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",i.toNode.join(" "))}var c=n.map(function(o){return k8(o)}).join(` `);r.setAttribute(Ki,""),r.innerHTML=c}};function jP(e){e()}function zI(e,t){var r=typeof t=="function"?t:g9;if(e.length===0)r();else{var n=jP;$1.mutateApproach===Ho1&&(n=ya.requestAnimationFrame||jP),n(function(){var a=gs1(),i=Jb.begin("mutate");e.map(a),i(),r()})}}var ew=!1;function MI(){ew=!0}function Fb(){ew=!1}var w9=null;function UP(e){if(EP&&$1.observeMutations){var t=e.treeCallback,r=t===void 0?g9:t,n=e.nodeCallback,a=n===void 0?g9:n,i=e.pseudoElementsCallback,c=i===void 0?g9:i,o=e.observeMutationsRoot,l=o===void 0?ne:o;w9=new EP(function(f){if(!ew){var h=xa();ac(f).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!FP(p.addedNodes[0])&&($1.searchPseudoElements&&c(p.target),r(p.target)),p.type==="attributes"&&p.target.parentNode&&$1.searchPseudoElements&&c(p.target.parentNode),p.type==="attributes"&&FP(p.target)&&~ko1.indexOf(p.attributeName))if(p.attributeName==="class"&&ms1(p.target)){var d=C9(Kb(p.target)),m=d.prefix,y=d.iconName;p.target.setAttribute(qb,m||h),y&&p.target.setAttribute(Wb,y)}else vs1(p.target)&&a(p.target)})}}),a4&&w9.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ws1(){w9&&w9.disconnect()}function zs1(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,a){var i=a.split(":"),c=i[0],o=i.slice(1);return c&&o.length>0&&(n[c]=o.join(":").trim()),n},{})),r}function Ms1(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",a=C9(Kb(e));return a.prefix||(a.prefix=xa()),t&&r&&(a.prefix=t,a.iconName=r),a.iconName&&a.prefix||(a.prefix&&n.length>0&&(a.iconName=es1(a.prefix,e.innerText)||Xb(a.prefix,Ob(e.innerText))),!a.iconName&&$1.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function Cs1(e){var t=ac(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return $1.autoA11y&&(r?t["aria-labelledby"]="".concat($1.replacementClass,"-title-").concat(n||V8()):(t["aria-hidden"]="true",t.focusable="false")),t}function Hs1(){return{iconName:null,title:null,titleId:null,prefix:null,transform:h3,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function qP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=Ms1(e),n=r.iconName,a=r.prefix,i=r.rest,c=Cs1(e),o=Pb("parseNodeAttributes",{},e),l=t.styleParser?zs1(e):[];return j1({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:h3,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:c}},o)}var _s1=En.styles;function CI(e){var t=$1.autoReplaceSvg==="nest"?qP(e,{styleParser:!1}):qP(e);return~t.extra.classes.indexOf(cI)?n4("generateLayersText",e,t):n4("generateSvgReplacementMutation",e,t)}var ba=new Set;Gb.map(function(e){ba.add("fa-".concat(e))});Object.keys(H8[re]).map(ba.add.bind(ba));Object.keys(H8[Ce]).map(ba.add.bind(ba));ba=A8(ba);function WP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!a4)return Promise.resolve();var r=ne.documentElement.classList,n=function(p){return r.add("".concat(kP,"-").concat(p))},a=function(p){return r.remove("".concat(kP,"-").concat(p))},i=$1.autoFetchSvg?ba:Gb.map(function(h){return"fa-".concat(h)}).concat(Object.keys(_s1));i.includes("fa")||i.push("fa");var c=[".".concat(cI,":not([").concat(Ki,"])")].concat(i.map(function(h){return".".concat(h,":not([").concat(Ki,"])")})).join(", ");if(c.length===0)return Promise.resolve();var o=[];try{o=ac(e.querySelectorAll(c))}catch{}if(o.length>0)n("pending"),a("complete");else return Promise.resolve();var l=Jb.begin("onTree"),f=o.reduce(function(h,p){try{var d=CI(p);d&&h.push(d)}catch(m){iI||m.name==="MissingIcon"&&console.error(m)}return h},[]);return new Promise(function(h,p){Promise.all(f).then(function(d){zI(d,function(){n("active"),n("complete"),a("pending"),typeof t=="function"&&t(),l(),h()})}).catch(function(d){l(),p(d)})})}function Ss1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;CI(e).then(function(r){r&&zI([r],t)})}function Ls1(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:Ib(t||{}),a=r.mask;return a&&(a=(a||{}).icon?a:Ib(a||{})),e(n,j1(j1({},r),{},{mask:a}))}}var Vs1=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,a=n===void 0?h3:n,i=r.symbol,c=i===void 0?!1:i,o=r.mask,l=o===void 0?null:o,f=r.maskId,h=f===void 0?null:f,p=r.title,d=p===void 0?null:p,m=r.titleId,y=m===void 0?null:m,g=r.classes,z=g===void 0?[]:g,x=r.attributes,b=x===void 0?{}:x,w=r.styles,A=w===void 0?{}:w;if(t){var M=t.prefix,H=t.iconName,V=t.icon;return H9(j1({type:"icon"},t),function(){return $i("beforeDOMElementCreation",{iconDefinition:t,params:r}),$1.autoA11y&&(d?b["aria-labelledby"]="".concat($1.replacementClass,"-title-").concat(y||V8()):(b["aria-hidden"]="true",b.focusable="false")),Qb({icons:{main:Rb(V),mask:l?Rb(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:H,transform:j1(j1({},h3),a),symbol:c,title:d,maskId:h,titleId:y,extra:{attributes:b,styles:A,classes:z}})})}},As1={mixout:function(){return{icon:Ls1(Vs1)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=WP,r.nodeCallback=Ss1,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,a=n===void 0?ne:n,i=r.callback,c=i===void 0?function(){}:i;return WP(a,c)},t.generateSvgReplacementMutation=function(r,n){var a=n.iconName,i=n.title,c=n.titleId,o=n.prefix,l=n.transform,f=n.symbol,h=n.mask,p=n.maskId,d=n.extra;return new Promise(function(m,y){Promise.all([Db(a,o),h.iconName?Db(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var z=jb(g,2),x=z[0],b=z[1];m([r,Qb({icons:{main:x,mask:b},prefix:o,iconName:a,transform:l,symbol:f,maskId:p,title:i,titleId:c,extra:d,watchable:!0})])}).catch(y)})},t.generateAbstractIcon=function(r){var n=r.children,a=r.attributes,i=r.main,c=r.transform,o=r.styles,l=z9(o);l.length>0&&(a.style=l);var f;return $b(c)&&(f=n4("generateAbstractTransformGrouping",{main:i,transform:c,containerWidth:i.width,iconWidth:i.width})),n.push(f||i.icon),{children:n,attributes:a}}}},Es1={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.classes,i=a===void 0?[]:a;return H9({type:"layer"},function(){$i("beforeDOMElementCreation",{assembler:r,params:n});var c=[];return r(function(o){Array.isArray(o)?o.map(function(l){c=c.concat(l.abstract)}):c=c.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat($1.cssPrefix,"-layers")].concat(A8(i)).join(" ")},children:c}]})}}}},ks1={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.title,i=a===void 0?null:a,c=n.classes,o=c===void 0?[]:c,l=n.attributes,f=l===void 0?{}:l,h=n.styles,p=h===void 0?{}:h;return H9({type:"counter",content:r},function(){return $i("beforeDOMElementCreation",{content:r,params:n}),us1({content:r.toString(),title:i,extra:{attributes:f,styles:p,classes:["".concat($1.cssPrefix,"-layers-counter")].concat(A8(o))}})})}}}},Ns1={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.transform,i=a===void 0?h3:a,c=n.title,o=c===void 0?null:c,l=n.classes,f=l===void 0?[]:l,h=n.attributes,p=h===void 0?{}:h,d=n.styles,m=d===void 0?{}:d;return H9({type:"text",content:r},function(){return $i("beforeDOMElementCreation",{content:r,params:n}),DP({content:r,transform:j1(j1({},h3),i),title:o,extra:{attributes:p,styles:m,classes:["".concat($1.cssPrefix,"-layers-text")].concat(A8(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var a=n.title,i=n.transform,c=n.extra,o=null,l=null;if(rI){var f=parseInt(getComputedStyle(r).fontSize,10),h=r.getBoundingClientRect();o=h.width/f,l=h.height/f}return $1.autoA11y&&!a&&(c.attributes["aria-hidden"]="true"),Promise.resolve([r,DP({content:r.innerHTML,width:o,height:l,transform:i,title:a,extra:c,watchable:!0})])}}},Os1=new RegExp('"',"ug"),GP=[1105920,1112319];function Ts1(e){var t=e.replace(Os1,""),r=$o1(t,0),n=r>=GP[0]&&r<=GP[1],a=t.length===2?t[0]===t[1]:!1;return{value:Ob(a?t[0]:t),isSecondary:n||a}}function KP(e,t){var r="".concat(Co1).concat(t.replace(":","-"));return new Promise(function(n,a){if(e.getAttribute(r)!==null)return n();var i=ac(e.children),c=i.filter(function(V){return V.getAttribute(Nb)===t})[0],o=ya.getComputedStyle(e,t),l=o.getPropertyValue("font-family").match(Vo1),f=o.getPropertyValue("font-weight"),h=o.getPropertyValue("content");if(c&&!l)return e.removeChild(c),n();if(l&&h!=="none"&&h!==""){var p=o.getPropertyValue("content"),d=~["Sharp"].indexOf(l[2])?Ce:re,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?_8[d][l[2].toLowerCase()]:Ao1[d][f],y=Ts1(p),g=y.value,z=y.isSecondary,x=l[0].startsWith("FontAwesome"),b=Xb(m,g),w=b;if(x){var A=ts1(g);A.iconName&&A.prefix&&(b=A.iconName,m=A.prefix)}if(b&&!z&&(!c||c.getAttribute(qb)!==m||c.getAttribute(Wb)!==w)){e.setAttribute(r,w),c&&e.removeChild(c);var M=Hs1(),H=M.extra;H.attributes[Nb]=t,Db(b,m).then(function(V){var T=Qb(j1(j1({},M),{},{icons:{main:V,mask:Zb()},prefix:m,iconName:w,extra:H,watchable:!0})),I=ne.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(I,e.firstChild):e.appendChild(I),I.outerHTML=T.map(function(L){return k8(L)}).join(` `),e.removeAttribute(r),n()}).catch(a)}else n()}else n()})}function Ps1(e){return Promise.all([KP(e,"::before"),KP(e,"::after")])}function Is1(e){return e.parentNode!==document.head&&!~_o1.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Nb)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function $P(e){if(a4)return new Promise(function(t,r){var n=ac(e.querySelectorAll("*")).filter(Is1).map(Ps1),a=Jb.begin("searchPseudoElements");MI(),Promise.all(n).then(function(){a(),Fb(),t()}).catch(function(){a(),Fb(),r()})})}var Rs1={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=$P,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,a=n===void 0?ne:n;$1.searchPseudoElements&&$P(a)}}},YP=!1,Ds1={mixout:function(){return{dom:{unwatch:function(){MI(),YP=!0}}}},hooks:function(){return{bootstrap:function(){UP(Pb("mutationObserverCallbacks",{}))},noAuto:function(){ws1()},watch:function(r){var n=r.observeMutationsRoot;YP?Fb():UP(Pb("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},XP=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,a){var i=a.toLowerCase().split("-"),c=i[0],o=i.slice(1).join("-");if(c&&o==="h")return n.flipX=!0,n;if(c&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(c){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},r)},Bs1={mixout:function(){return{parse:{transform:function(r){return XP(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var a=n.getAttribute("data-fa-transform");return a&&(r.transform=XP(a)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,a=r.transform,i=r.containerWidth,c=r.iconWidth,o={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),f="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),h="rotate(".concat(a.rotate," 0 0)"),p={transform:"".concat(l," ").concat(f," ").concat(h)},d={transform:"translate(".concat(c/2*-1," -256)")},m={outer:o,inner:p,path:d};return{tag:"g",attributes:j1({},m.outer),children:[{tag:"g",attributes:j1({},m.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:j1(j1({},n.icon.attributes),m.path)}]}]}}}},Ab={x:0,y:0,width:"100%",height:"100%"};function ZP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Fs1(e){return e.tag==="g"?e.children:[e]}var js1={hooks:function(){return{parseNodeAttributes:function(r,n){var a=n.getAttribute("data-fa-mask"),i=a?C9(a.split(" ").map(function(c){return c.trim()})):Zb();return i.prefix||(i.prefix=xa()),r.mask=i,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,a=r.attributes,i=r.main,c=r.mask,o=r.maskId,l=r.transform,f=i.width,h=i.icon,p=c.width,d=c.icon,m=Bo1({transform:l,containerWidth:p,iconWidth:f}),y={tag:"rect",attributes:j1(j1({},Ab),{},{fill:"white"})},g=h.children?{children:h.children.map(ZP)}:{},z={tag:"g",attributes:j1({},m.inner),children:[ZP(j1({tag:h.tag,attributes:j1(j1({},h.attributes),m.path)},g))]},x={tag:"g",attributes:j1({},m.outer),children:[z]},b="mask-".concat(o||V8()),w="clip-".concat(o||V8()),A={tag:"mask",attributes:j1(j1({},Ab),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,x]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:Fs1(d)},A]};return n.push(M,{tag:"rect",attributes:j1({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(b,")")},Ab)}),{children:n,attributes:a}}}},Us1={provides:function(t){var r=!1;ya.matchMedia&&(r=ya.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:j1(j1({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var c=j1(j1({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:j1(j1({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||o.children.push({tag:"animate",attributes:j1(j1({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:j1(j1({},c),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:j1(j1({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:j1(j1({},c),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:j1(j1({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:j1(j1({},c),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},qs1={hooks:function(){return{parseNodeAttributes:function(r,n){var a=n.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return r.symbol=i,r}}}},Ws1=[Uo1,As1,Es1,ks1,Ns1,Rs1,Ds1,Bs1,js1,Us1,qs1];as1(Ws1,{mixoutsTo:Mr});var ZA1=Mr.noAuto,QA1=Mr.config,JA1=Mr.library,eE1=Mr.dom,_9=Mr.parse,tE1=Mr.findIconDefinition,rE1=Mr.toHtml,HI=Mr.icon,nE1=Mr.layer,aE1=Mr.text,iE1=Mr.counter;var d2=p1(tw()),iw=p1(Z1());function NI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wa(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function Ys1(e,t){if(e==null)return{};var r=$s1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nw(e){return Xs1(e)||Zs1(e)||Qs1(e)||Js1()}function Xs1(e){if(Array.isArray(e))return aw(e)}function Zs1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qs1(e,t){if(e){if(typeof e=="string")return aw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aw(e,t)}}function aw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(l){return PI(e,l)}),a=Object.keys(t.attributes||{}).reduce(function(l,f){var h=t.attributes[f];switch(f){case"class":l.attrs.className=h,delete t.attributes.class;break;case"style":l.attrs.style=a81(h);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?l.attrs[f.toLowerCase()]=h:l.attrs[TI(f)]=h}return l},{attrs:{}}),i=r.style,c=i===void 0?{}:i,o=Ys1(r,r81);return a.attrs.style=wa(wa({},a.attrs.style),c),e.apply(void 0,[t.tag,wa(wa({},a.attrs),o)].concat(nw(n)))}var II=!1;try{II=!0}catch{}function i81(){if(!II&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function OI(e){if(e&&S9(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_9.icon)return _9.icon(e);if(e===null)return null;if(e&&S9(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function rw(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ic({},e,t):{}}var Pe=iw.default.forwardRef(function(e,t){var r=e.icon,n=e.mask,a=e.symbol,i=e.className,c=e.title,o=e.titleId,l=e.maskId,f=OI(r),h=rw("classes",[].concat(nw(e81(e)),nw(i.split(" ")))),p=rw("transform",typeof e.transform=="string"?_9.transform(e.transform):e.transform),d=rw("mask",OI(n)),m=HI(f,wa(wa(wa(wa({},h),p),d),{},{symbol:a,title:c,titleId:o,maskId:l}));if(!m)return i81("Could not find icon",f),null;var y=m.abstract,g={ref:t};return Object.keys(e).forEach(function(z){Pe.defaultProps.hasOwnProperty(z)||(g[z]=e[z])}),c81(y[0],g)});Pe.displayName="FontAwesomeIcon";Pe.propTypes={beat:d2.default.bool,border:d2.default.bool,beatFade:d2.default.bool,bounce:d2.default.bool,className:d2.default.string,fade:d2.default.bool,flash:d2.default.bool,mask:d2.default.oneOfType([d2.default.object,d2.default.array,d2.default.string]),maskId:d2.default.string,fixedWidth:d2.default.bool,inverse:d2.default.bool,flip:d2.default.oneOf([!0,!1,"horizontal","vertical","both"]),icon:d2.default.oneOfType([d2.default.object,d2.default.array,d2.default.string]),listItem:d2.default.bool,pull:d2.default.oneOf(["right","left"]),pulse:d2.default.bool,rotation:d2.default.oneOf([0,90,180,270]),shake:d2.default.bool,size:d2.default.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:d2.default.bool,spinPulse:d2.default.bool,spinReverse:d2.default.bool,symbol:d2.default.oneOfType([d2.default.bool,d2.default.string]),title:d2.default.string,titleId:d2.default.string,transform:d2.default.oneOfType([d2.default.string,d2.default.object]),swapOpacity:d2.default.bool};Pe.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var c81=PI.bind(null,iw.default.createElement);var lt=p1(Z1());var L9="#a8a8a8",za=t2.div` display: flex; flex-direction: row; `,mE1=t2.div` display: flex; flex-direction: column; `,RI=` border: 1px solid white; font-size: 10pt; background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; margin: 2px; display: flex; padding: 2px; outline: none !important; text-decoration: none; svg { margin: 2pt; width: 10pt; height: 10pt; } &:hover { background-color: rgba(158, 158, 158, 0.75); } &:visited { text-decoration: none; } &:disabled { color: gray; border-color: gray; cursor: not-allowed; } transition: background-color 250ms; `,st=t2.button`${RI}`,DI=t2.a`${RI}`,vE1=t2.div` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border: 2px solid black; border-radius: 12px; `,cc=t2.div` border: 2px solid black; border-radius: 12px; margin: 5px; padding: 5px; width: auto; `,Yi=t2.input` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border: 2px solid black; border-radius: 12px; padding: 2px; `;var N9=p1(Z1());var et=p1(Z1());var cw=p1(Z1()),BI=p1(Z1()),oc=class extends cw.default.Component{ref=(0,BI.createRef)();componentDidMount(){this.update()}componentDidUpdate(t){(t.canvas!==this.props.canvas||t.width!==this.props.width||t.height!==this.props.height)&&this.update()}update(){let t=this.ref.current,r=t.width=this.props.width||this.props.canvas.width,n=t.height=this.props.height||this.props.canvas.height;t.style.width=`${r}px`,t.style.height=`${n}px`,t.getContext("2d").drawImage(this.props.canvas,0,0,r,n)}render(){return cw.default.createElement("canvas",{ref:this.ref})}};var G2=p1(Z1());var GI=p1(jI());var A9=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(t){this.input.multiple=t}setAcceptType(t){t?this.input.accept=t.map(r=>`.${r}`).join(", "):this.input.accept=""}show(){return new Promise((t,r)=>{let n=["mousemove","touchend"],a=()=>{i(),r(new Error("Not selected"))},i=()=>{n.forEach(o=>window.removeEventListener(o,a))},c=setTimeout(()=>{n.forEach(o=>window.addEventListener(o,()=>a))},100);this.input.addEventListener("change",()=>{clearTimeout(c),i(),this.input.files?t(this.input.files):r(new Error("Missing file"))}),this.input.click()})}};var KI=p1(qI()),sw=["muraljson","json"],N8=["pcm","bin"],WI=["zip"];var o81=25,$I=t2.div` width: 100%; //max-width: fit-content; display: flex; flex-direction: row; flex-wrap: wrap; `,s81=t2.div` display: flex; flex-direction: column; flex-wrap: wrap; border: 1px solid white; cursor: pointer; margin: 2px; padding: 2px; text-align: center; align-items: center; `,YI=["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"],l81=["Flat",...YI];async function XI(e,t,r){let n=await g81(),a=[];for(let i of n)if(i.type==="mural")a.push(i.data);else{let c=i.data,o=await u81(c,r),l=Math.floor(t.ux-c.width/2),f=Math.floor(t.uy-c.height/2),h=new u3(c.alt,l,f,c.width,c.height,o),p=w8(h,r.hex),d=await new Promise((m,y)=>{e.setOverlayModify({mural:p,muralModify:{name:c.alt,x:l,y:f},cb:(g,z,x,b)=>{if(b){let w=new u3(g,z,x,c.width,c.height,o);m(w)}else y(new Error("Canceled by user"))}})});a.push(d)}return a}function f81(e){return new Promise(t=>{Qe.custom(G2.default.createElement("div",null,G2.default.createElement("h4",null,"Dither results"),G2.default.createElement("div",null,"Pick a result that fits best in your situation"),G2.default.createElement($I,null,e.map((r,n)=>G2.default.createElement("div",{key:n},G2.default.createElement(s81,{style:{flexDirection:"column"},onClick:()=>{Qe.close(),t(r)}},QI(r.type),G2.default.createElement(cc,null,G2.default.createElement(oc,{canvas:r.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>t(null))})}async function u81(e,t){let r=await h81(e),n=await p81(e,r,t),a;if(Array.isArray(n)?a=await f81(n):a=n,!a)throw new Error("User did not pick anything");let i=r9(a.canvas);return eR(i,t),Mb(i,t.palette)}async function h81(e){let t=e.width,r=e.height,n="show-all",a=!1,i=!1;if(await new Promise((c,o)=>{Qe.custom(G2.default.createElement("div",null,G2.default.createElement("h4",null,"Image import"),G2.default.createElement("div",null,G2.default.createElement("small",null,e.alt)),G2.default.createElement("div",{style:{whiteSpace:"pre-wrap"}},"You are importing image with size ",e.width,"x",e.height,".",` `,"Do you want to preform any image manipulations?")),[{click:()=>{a=!1,c()},content:"Resize"},{click:()=>{a=!0,c()},content:"Import as it is"},{click:()=>{i=!0,c()},content:"Cancel"}]).then(()=>{o(new Error("User input has been interrupted"))})}),i)throw new Error("Operation canceled by user");if(a||await new Promise((c,o)=>{Qe.custom(G2.default.createElement("div",null,G2.default.createElement("h4",null,"Image import"),G2.default.createElement("div",null,G2.default.createElement("small",null,e.alt)),G2.default.createElement("div",null,G2.default.createElement("strong",null,"Original size: ",e.width,"x",e.height)),G2.default.createElement(Yi,{type:"number",min:1,onChange:l=>{J0(l,f=>{t=f})}}),"x",G2.default.createElement(Yi,{type:"number",min:1,onChange:l=>{J0(l,f=>{r=f})}})),[{content:"Confirm",click:()=>{c()}},{content:"Cancel",click:()=>{i=!0,c()}}]).then(()=>o(new Error("User input has been interrupted")))}),i)throw new Error("Operation canceled by user");if(await new Promise((c,o)=>{Qe.custom(G2.default.createElement("div",null,G2.default.createElement("h4",null,"Dither Settings"),G2.default.createElement("div",null,"Pickup dither algorithm"),G2.default.createElement($I,null,l81.map((l,f)=>G2.default.createElement(st,{key:f,onClick:()=>{n=l,Qe.close(),c()}},QI(l))))),[{content:"Show all",click:()=>{n="show-all",c()}},{content:"Cancel",click:()=>{i=!0,c()}}]).then(()=>o(new Error("User input has been interrupted")))}),i)throw new Error("Operation canceled by user");return{height:r,width:t,noShrinking:a,quantizerSetting:n}}async function p81(e,t,r){t.noShrinking||(e=await aP(e,t.width,t.height));let n=cP(e);return t.quantizerSetting==="show-all"?m81(n,r):E9(n,t.quantizerSetting,r)}function ZI(e,t){let r=new GI.default(d81(t));return r.sample(e),r}function d81(e){return{palette:e.palette.map(t=>[t.r,t.g,t.b]),minHueCols:0,dithSerp:!1}}function m81(e,t){let r=[E9(e,"Flat",t)],n=ZI(e,t);for(let a of YI){let i=JI(e,n,a),c=E9(i,"Flat",t);c.type=a,r.push(c)}return r}function E9(e,t,r){if(t==="Flat"){let n=r9(e);eR(n,r);let a=v81(n),i=Mb(n,r.palette);return{type:"Flat",canvas:a,indices:i}}else{let n=ZI(e,r),a=JI(e,n,t),i=E9(a,"Flat",r);return i.type=t,i}}function QI(e){let t=e.split(""),r="";for(let n=0;no81&&(i.data[o+0]=c[o+0]??0,i.data[o+1]=c[o+1]??0,i.data[o+2]=c[o+2]??0,i.data[o+3]=255);return a.putImageData(i,0,0),n}function eR(e,t){let r=Cb(t.palette);for(let n=0;no);if(!n.length)throw new Error("Empty file");if(n.filter(o=>t.some(l=>o.name.toLowerCase().endsWith(l))).length>1)throw new Error("Only one image files allowed to be imported at the time");let i=n.filter(o=>WI.some(l=>o.name.toLocaleLowerCase().endsWith(l)));for(let o of i){let l=n.indexOf(o);n.splice(l,1);let f=await KI.default.loadAsync(o);for(let h of Object.keys(f.files)){let p=h.split("/"),d=p[p.length-1];if([...sw,...N8].some(m=>d.toLowerCase().endsWith(m))){let m=await f.files[h].async("blob");n.push(new File([m],h))}}}let c=[];for(let o of n){let l=zb(o.name),f=l.ex.toLowerCase(),h=l.text;if(sw.includes(f)){let p=await eP(o),d=JSON.parse(p);d.name||(d.name=await Qe.prompt("Missing name for this mural. Please enter it manually",h)||""),c.push({type:"mural",data:n9(d)})}else if(N8.includes(f)){let p=await rP(o),d=await u3.from(new Uint8Array(p));c.push({type:"mural",data:d})}else{let p=await tP(o);c.push({type:"image",data:await nP(`${l.text}.${l.ex}`,p)})}}return c}var lw=p1(Zm());var y81=t2.div` margin: 2px; margin-left: 6px; `,x81=t2.h5` font-weight: bolder; margin-right: 4px; `,b81=t2.div` font-size: 10pt; display: flex; flex-direction: row; `,w81=t2.strong` margin-right: 2px; `,z81=t2.button` border: 1px solid white; font-size: 10pt; width: 22px; background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; margin: 1px; margin-left: 3px; display: flex; padding: 3px; outline: none !important; text-decoration: none; &:hover { background-color: rgba(158, 158, 158, 0.75); } &:visited { text-decoration: none; } &:disabled { color: gray; border-color: gray; cursor: not-allowed; } transition: background-color 250ms; `,k9=class extends et.default.Component{MAX_SIZE=100;constructor(t){super(t),this.state={height:this.MAX_SIZE,width:this.MAX_SIZE,overlay:!1,link:""}}componentDidMount(){this.updateSize(),this.props.cords.on(1,this.onCordUpdate)}componentWillUnmount(){this.props.cords.off(1,this.onCordUpdate)}componentDidUpdate(t){this.props.muralExtended.ref!==t.muralExtended.ref&&(this.updateSize(),typeof this.state.progress=="function"&&(this.state.progress(),this.setState({progress:void 0,link:this.link})))}onCordUpdate=()=>{this.setState({link:this.link})};updateSize=()=>{let t=this.props.muralExtended.ref.width,r=this.props.muralExtended.ref.height,n=t,a=r;t>r?t>this.MAX_SIZE&&(a=this.MAX_SIZE*(r/t),n=this.MAX_SIZE):r>this.MAX_SIZE&&(n=this.MAX_SIZE*(t/r),a=this.MAX_SIZE),this.setState({height:a,width:n})};renderInfoLine(t,r){return et.default.createElement(b81,null,et.default.createElement(x81,null,t,":"),et.default.createElement("span",null,r))}btn(t,r,n,a){return et.default.createElement(st,{style:{borderColor:a?L9:""},onClick:()=>n()},t," ",et.default.createElement(Pe,{icon:r})," ")}get s(){return this.props.store}onLoad=t=>{let r=t.target;"tagName"in r&&(["button","svg","path"].includes(r.tagName.toLowerCase())||this.s.select(this.props.selected?void 0:this.props.muralExtended))};onModify=async()=>{let t=this.props.muralExtended;this.props.store.setOverlayModify({mural:t,cb:(r,n,a,i)=>{i&&(t.mural.name=r,t.mural.x=n,t.mural.y=a,this.props.store.updateMural(t.mural))},muralObj:{name:this.props.muralExtended.mural.name,x:this.props.muralExtended.mural.x,y:this.props.muralExtended.mural.y}})};get saveFileName(){return this.props.muralExtended.mural.name.replace(/ /,"_").replace(/[^a-zA-Z0-9-_]/g,"")}onExport=async()=>{let r=await this.props.muralExtended.mural.getBuffer(),n=new Blob([r],{type:"octet/stream"});(0,lw.default)(n,`${this.saveFileName}.${N8[0]}`)};onImage=async()=>{this.props.muralExtended.ref.toBlob(t=>{t?(0,lw.default)(t,`${this.saveFileName}.png`):Qe.alert("Failed to export as PNG")},"image/png")};onDelete=async()=>{await Qe.confirm(`Are you sure you want to remove "${this.props.muralExtended.mural.name}"`)&&this.s.remove(this.props.muralExtended)};onEnter=()=>{this.props.store.addPhantomOverlay(this.props.muralExtended)};onLeave=()=>{this.props.store.removePhantomOverlay()};get link(){let t=this.props.muralExtended.mural.w,r=this.props.muralExtended.mural.h,n=this.props.muralExtended.mural.x+Math.round(t/2),a=this.props.muralExtended.mural.y+Math.round(r/2);return`${origin==="null"?`${location.href}`:`${origin}/`}@${n},${a},${this.props.cords.uScale}`}onGoto=()=>{location.href=this.link};onPreview=()=>{this.props.store.hasOverlay(this.props.muralExtended)?this.props.store.removeOverlay(this.props.muralExtended):this.props.store.addOverlay(this.props.muralExtended)};updateProgress=async()=>{let t=!1,r=()=>{t=!0};this.setState({progress:r});let n=await iP(this.props.muralExtended.mural,this.props.palette.palette);t||this.setState({progress:n})};renderProgress(){if(typeof this.state.progress=="function")return"Loading...";let t=et.default.createElement(z81,{onClick:this.updateProgress},et.default.createElement(Pe,{icon:pP}));if(this.state.progress&&this.state.progress.total!==0){let{total:r,bad:n,good:a}=this.state.progress;return et.default.createElement(za,null,et.default.createElement(w81,null,Math.floor(a/r*100),"%")," ",n>0?ma(n):"",t)}else return t}render(){return et.default.createElement(cc,{onClick:this.onLoad,style:{border:this.props.selected?"3px solid black":"3px dotted black",cursor:"pointer"},onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},et.default.createElement(za,null,et.default.createElement(oc,{canvas:this.props.muralExtended.ref,height:this.state.height,width:this.state.width}),et.default.createElement(y81,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.muralExtended.mural.name),this.renderInfoLine("Pixel count",ma(this.props.muralExtended.pixelCount)),this.renderInfoLine("X",this.props.muralExtended.mural.x.toString()),this.renderInfoLine("Y",this.props.muralExtended.mural.y.toString()),this.renderInfoLine("Size",`${this.props.muralExtended.mural.w}x${this.props.muralExtended.mural.w}`),this.renderInfoLine("Progress",this.renderProgress()))),et.default.createElement(za,null,this.btn("Preview",dP,this.onPreview,this.props.store.hasOverlay(this.props.muralExtended)),this.btn("Modify",fP,this.onModify),this.btn("Export",zP,this.onExport),this.btn("PNG",uP,this.onImage),this.btn("Delete",yP,this.onDelete),et.default.createElement(DI,{href:this.link},"Goto ",et.default.createElement(Pe,{icon:gP}))))}};var M81=t2.div` overflow: auto; max-height: 250pt; min-width: 200pt; border-radius: 12px; &::-webkit-scrollbar { width: 7px; height: 7px; } &::-webkit-scrollbar-corner { background: transparent; } &::-webkit-scrollbar-track { background: transparent; border: 1px solid black; border-radius: 12px; } &::-webkit-scrollbar-thumb { background-color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid transparent; } `,O9=class extends N9.default.Component{constructor(t){super(t),this.state={murals:[]}}componentDidMount(){this.props.store.on(8,this.update),this.update()}componentWillUnmount(){this.props.store.off(8,this.update)}update=()=>{this.setState({murals:this.props.store.murals,selected:this.props.store.selected})};render(){return N9.default.createElement(M81,null," ",this.state.murals.map((t,r)=>N9.default.createElement(k9,{key:r,muralExtended:t,cords:this.props.cords,palette:this.props.palette,store:this.props.store,selected:t&&t===this.state.selected})))}};var C81=t2.div` `,H81=t2.div` margin: 2px 4px; `,_81=t2.input` &[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; width: 100%; } &[type="range"]:focus { outline: none; } &[type="range"]::-webkit-slider-runnable-track { background-color: rgba(10, 10, 10); border-radius: 0; height: 4px; border-radius: 12px; } &[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; margin-top: -12px; background-color: black; height: 25px; width: 15px; border-radius: 12px; } &[type="range"]::-moz-range-track { background-color: rgba(10, 10, 10); border-radius: 0.5rem; height: 0.5rem; border-radius: 12px; } &[type="range"]::-moz-range-thumb { border: none; border-radius: 0; background-color: rgba(10, 10, 10); height: 2rem; width: 1rem; border-radius: 12px; } `,T9=class extends lt.default.Component{constructor(t){super(t),this.state={takingCanvasShot:!1,canvasShotAvailable:!0,locationPrecision:t.cords.highPrecision}}componentDidMount(){this.props.cords.on(1,this.checkIsScreenShotAvailable)}componentWillUnmount(){this.props.cords.off(1,this.checkIsScreenShotAvailable)}checkIsScreenShotAvailable=()=>{this.setState({canvasShotAvailable:this.props.cords.uScale>=0})};import=async()=>{try{let t=await XI(this.props.store,this.props.cords,this.props.palette);for(let r of t)this.props.store.add(r)}catch(t){console.error(t),Qe.alert(t.name)}};inputElement=t=>{let r=parseInt(t.target.value);this.props.onOpacityChange(r)};togglePrecision=()=>{let t=!this.state.locationPrecision;this.setState({locationPrecision:t}),this.props.cords.toggleHigherPrecision(t)};screenshot=async()=>{this.props.cords.uScale<0,this.setState({takingCanvasShot:!0}),await ZE(this.props.cords),this.setState({takingCanvasShot:!1})};render(){return lt.default.createElement(C81,null,lt.default.createElement(za,null,lt.default.createElement(st,{onClick:this.screenshot,disabled:this.state.takingCanvasShot||!this.state.canvasShotAvailable,title:"Screenshot"},lt.default.createElement(Pe,{icon:xP})),lt.default.createElement(st,{onClick:this.import,title:"Import"},lt.default.createElement(Pe,{icon:MP})),lt.default.createElement(st,{onClick:()=>this.props.showChart(),title:"Pixels graph"},lt.default.createElement(Pe,{icon:vP})),lt.default.createElement(st,{title:"Runtime coordinate calculator. Uses more resources",onClick:this.togglePrecision,style:{border:this.state.locationPrecision?"":"2px dotted black"}},lt.default.createElement(Pe,{icon:_b})),lt.default.createElement(_81,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),lt.default.createElement(H81,null,this.props.opacity,"%"),lt.default.createElement(st,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},lt.default.createElement(Pe,{icon:this.props.collapsed?wP:hP}))),this.props.collapsed?null:lt.default.createElement(O9,{store:this.props.store,palette:this.props.palette,cords:this.props.cords}))}};var Ma=p1(Z1());var O8=p1(Qo()),S81=t2.div` position: fixed; padding-top: 20px; padding: 5px; z-index: 2; background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; `,L81=t2.div` border: 1px black dotted; cursor: grab; user-select: none; border-radius: 12px; padding: 4px; `,Ca=class extends Ma.default.Component{ref=(0,Ma.createRef)();dragRef=(0,Ma.createRef)();moving;destroyed=!1;constructor(t){super(t),this.state={x:-window.innerWidth,y:-window.innerHeight,moving:!1}}componentDidMount(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("resize",this.fixBounds),window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("touchend",this.onMouseUp),this.props.storage.getItem(this.storageKey).then(t=>{!this.destroyed&&t?(this.setState({x:t.x,y:t.y}),setTimeout(()=>{this.fixBounds()},1e3)):this.setState({x:0,y:0})})}componentWillUnmount(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("resize",this.fixBounds),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onMouseUp),this.destroyed=!1}onTouchMove=t=>{if(this.moving&&!(!(t instanceof TouchEvent)||!t.isTrusted))for(let r=0;r{this.moving={x:t,y:r,xOff:n,yOff:a}};onMouseMove=t=>{if(!this.moving||!(t instanceof MouseEvent)||t.ctrlKey||t.altKey||t.metaKey)return;let{clientX:r,clientY:n}=t;this.handleMoveLogic(r,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let t=this.ref.current?.getBoundingClientRect();if(t){let r=this.state.x,n=this.state.y;t.left<0&&(r=0),t.right>window.innerWidth&&(r=window.innerWidth-t.width),t.top<0&&(n=0),t.bottom>window.innerHeight&&(n=window.innerHeight-t.height),(this.state.x!==r||this.state.y!==n)&&this.setState({x:r,y:n})}};savePoint=(0,O8.debounce)(t=>{this.props.storage.setItem(this.storageKey,t)},100);handleMoveLogic(t,r){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let a=t-this.moving.xOff,i=r-this.moving.yOff,c=(0,O8.clamp)(a,0,window.innerWidth-n.width),o=(0,O8.clamp)(i,0,window.innerHeight-n.height),l={x:c,y:o};this.savePoint(l),this.setState(l)}}onMouseDown=t=>{this.setMoving(t.clientX,t.clientY,t.nativeEvent.offsetX,t.nativeEvent.offsetY),this.setState({moving:!0})};onTouchStart=t=>{let r=t.nativeEvent.touches[t.nativeEvent.touches.length-1],n=t.target,{x:a,y:i,width:c,height:o}=n.getBoundingClientRect(),l=(r.clientX-a)/c*n.offsetWidth,f=(r.clientY-i)/o*n.offsetHeight;this.setMoving(r.clientX,r.clientY,l,f),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return Ma.default.createElement(S81,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},Ma.default.createElement(L81,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",Ma.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var zt=p1(Z1());var rR=p1(Qo()),V81=t2.div` display: flex; flex-direction: row; `,tR=t2.div` width: 25px; height: 25px; margin: 2px; border: 2px solid black; border-radius: 12px; text-align: center; font-weight: bolder; `,A81=t2.span` width: 25px; text-align: center; margin: auto; `,E81=t2.canvas` border-radius: 12px; border: 2px solid black; `,P9=class extends zt.default.Component{ref=zt.default.createRef();cache=document.createElement("canvas");transparentGrid=["#c5c5c540","#8d8d8d40"];highlighColor="#00000040";lastColor=-1;storageKey="_minimap_settings";destroyed=!1;constructor(t){super(t),this.state={size:16,color:-1,colorAssistant:!1}}componentDidUpdate(t,r){t.selected.ref!==this.props.selected.ref?this.draw():r.size!==this.state.size&&this.draw()}click(t){t>=0&&t{t&&!this.destroyed&&this.setState({colorAssistant:t.colorAssistant,size:t.size})}),this.draw()}componentWillUnmount(){this.destroyed=!0,this.props.cords.off(0,this.update),this.props.cords.off(0,this.onCords)}saveSettings(){this.props.storage.setItem(this.storageKey,{colorAssistant:this.state.colorAssistant,size:this.state.size})}onCords=(t,r)=>{let n=this.props.store;if(n.selected&&n.selected.mural.xt&&n.selected.mural.h+n.selected.mural.y>r){let a=t-n.selected.mural.x,i=r-n.selected.mural.y,c=n.selected.mural.getPixel(a,i);this.lastColor!==c&&(this.lastColor=c,this.click(c))}};drawGrid(t,r,n,a){for(let i=0;i{let t=this.props.selected.mural,r=this.props.cords.x-t.x,n=this.props.cords.y-t.y;this.setState({color:t.getPixel(r,n)||-1}),this.draw()};draw=()=>{let t=this.ref.current,r=t.getContext("2d"),n=this.cache.width=t.width=200,a=this.cache.height=t.height=200,i=n/2,c=a/2;r.clearRect(0,0,n,a);let o=this.state.size;this.drawGrid(r,o*4,n,a);let l=1*o/2,f=(this.props.selected.mural.x-this.props.cords.x)*o+Math.ceil(i-l),h=(this.props.selected.mural.y-this.props.cords.y)*o+Math.ceil(c-l),p=this.props.selected,d=this.cache,m=d.getContext("2d");if(m.imageSmoothingEnabled=!1,m.drawImage(p.ref,f,h,p.mural.w*o,p.mural.h*o),r.drawImage(d,0,0),o!=1){r.fillStyle=this.highlighColor;let y=a/2,g=a/2;r.fillRect(0,0,n,y-l),r.fillRect(0,y+l,n,y-l),r.fillRect(0,y-l,g-l,l*2),r.fillRect(g+l,y-l,g-l,l*2)}};up=()=>{this.setState({size:this.clamp(this.state.size*2)})};down=()=>{this.setState({size:this.clamp(this.state.size/2)})};setSize(t){this.setState({size:t})}clamp(t){return(0,rR.clamp)(t,1,64)}renderColor(){return this.state.color!==-1?zt.default.createElement(tR,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):zt.default.createElement(tR,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return zt.default.createElement("div",null,zt.default.createElement(V81,null,zt.default.createElement(st,{onClick:this.up},zt.default.createElement(Pe,{icon:CP})),zt.default.createElement(A81,null,this.state.size),zt.default.createElement(st,{onClick:this.down},zt.default.createElement(Pe,{icon:HP})),zt.default.createElement("span",{style:{flex:1}},zt.default.createElement(st,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?L9:""},onClick:()=>this.toggleColorAssistant()},"Assist",zt.default.createElement(Pe,{icon:bP})," ")),this.renderColor()),zt.default.createElement(E81,{ref:this.ref}))}};var Ha=p1(Z1());var Mt=p1(Z1());var I9=class extends Mt.default.Component{render(){return Mt.default.createElement(cc,null,Mt.default.createElement("div",null,Mt.default.createElement("span",null,"Name")," ",Mt.default.createElement(Yi,{type:"text",value:this.props.name,onChange:t=>this.props.onName(t.target.value)})),Mt.default.createElement("div",null,Mt.default.createElement("span",null,"X")," ",Mt.default.createElement(Yi,{type:"number",value:this.props.x,onChange:t=>J0(t,this.props.onX)})),Mt.default.createElement("div",null,Mt.default.createElement("span",null,"Y")," ",Mt.default.createElement(Yi,{type:"number",value:this.props.y,onChange:t=>J0(t,this.props.onY)})),Mt.default.createElement(za,null,Mt.default.createElement(st,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),Mt.default.createElement(st,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),Mt.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var k81=t2.canvas` position: fixed; z-index: 1; pointer-events: none; `,sc=class extends Ha.default.Component{ref=Ha.default.createRef();constructor(t){super(t),this.state={x:0,y:0,name:""}}componentDidMount(){this.resize(),this.ref.current.style.top=this.ref.current.style.left="0px",this.props.cords.on(1,this.draw),this.props.cords.on(2,this.draw),this.props.cords.on(0,this.updateIfMouseDown),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove),window.addEventListener("resize",this.resize),this.props.muralModifier&&this.setState({name:this.props.muralModifier.name||"",x:this.props.muralModifier.x??0,y:this.props.muralModifier.y??0})}componentWillUnmount(){this.props.cords.off(1,this.draw),this.props.cords.off(2,this.draw),this.props.cords.off(0,this.updateIfMouseDown),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("resize",this.resize)}updateIfMouseDown=()=>{this.props.cords.dragging&&this.draw()};onMouseMove=t=>{t.buttons===1&&this.draw()};onTouchMove=t=>{t.touches.length&&this.draw()};resize=()=>{let t=this.ref.current;(t.height!==window.outerHeight||t.width!==window.outerWidth)&&(t.width=window.outerWidth,t.height=window.outerHeight,t.style.width=`${window.outerWidth}px`,t.style.height=`${window.outerHeight}px`,this.draw())};componentDidUpdate(t,r){t.muralExtended!==this.props.muralExtended&&this.setState({x:0,y:0}),(r.x!==this.state.x||r.y!==this.state.y)&&this.draw()}get pixels(){return this.props.muralExtended.mural.pixelBuffer}get x(){return this.props.muralModifier?this.state.x:this.props.muralExtended.mural.x}get y(){return this.props.muralModifier?this.state.y:this.props.muralExtended.mural.y}get refImg(){return this.props.muralExtended.ref}draw=()=>{let t=this.ref.current,r=Math.pow(2,this.props.cords.uScale),n=this.props.cords.gridToScreen(this.x,this.y);if(!n){t.getContext("2d").clearRect(0,0,t.width,t.height);return}let a=n.x,i=n.y,c=this.props.muralExtended.mural.w*r,o=this.props.muralExtended.mural.h*r,l=t.getContext("2d");l.clearRect(0,0,t.width,t.height),l.imageSmoothingEnabled=!1,l.drawImage(this.refImg,a,i,c,o)};get style(){return{opacity:this.props.opacity/100}}renderModifyWindow(){if(this.props.onChange){let t={...this.state};return Ha.default.createElement(Ca,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},Ha.default.createElement(I9,{name:this.state.name,x:this.state.x,y:this.state.y,onX:r=>this.setState({x:r}),onY:r=>this.setState({y:r}),onName:r=>this.setState({name:r}),onCancel:()=>{this.setState(t),this.props.onChange(t.name,t.x,t.y,!1)},onConfirm:()=>{this.props.onChange(this.state.name,this.state.x,this.state.y,!0)}}))}return null}render(){return Ha.default.createElement(Ha.default.Fragment,null,Ha.default.createElement(k81,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var KZ=p1(Qo());var Gt=p1(Z1());var ih=p1(Z1());function nR(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t0?1:-1},i4=function(t){return(0,th.default)(t)&&t.indexOf("%")===t.length-1},I1=function(t){return(0,YD.default)(t)&&!(0,zw.default)(t)},Z2=function(t){return I1(t)||(0,th.default)(t)},Of1=0,Sa=function(t){var r=++Of1;return"".concat(t||"").concat(r)},We=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!I1(t)&&!(0,th.default)(t))return n;var i;if(i4(t)){var c=t.indexOf("%");i=r*parseFloat(t.slice(0,c))/100}else i=+t;return(0,zw.default)(i)&&(i=n),a&&i>r&&(i=r),i},Qi=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},XD=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Df1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var tB={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"};var rn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rB=null,_w=null,Lw=function e(t){if(t===rB&&Array.isArray(_w))return _w;var r=[];return dc.Children.forEach(t,function(n){(0,pc.default)(n)||((0,oB.isFragment)(n)?r=r.concat(e(n.props.children)):r.push(n))}),_w=r,rB=t,r};function Ht(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return rn(a)}):n=[rn(t)],Lw(e).forEach(function(a){var i=(0,Sw.default)(a,"type.displayName")||(0,Sw.default)(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function cr(e,t){var r=Ht(e,t);return r&&r[0]}var Vw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!I1(n)||n<=0||!I1(a)||a<=0)},Bf1=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Ff1=function(t){return t&&t.type&&(0,aB.default)(t.type)&&Bf1.indexOf(t.type)>=0};var jf1=function(t,r,n,a){var i,c=(i=rh===null||rh===void 0?void 0:rh[a])!==null&&i!==void 0?i:[];return!(0,iB.default)(t)&&(a&&c.includes(r)||JD.includes(r))||n&&nh.includes(r)};var G1=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if((0,dc.isValidElement)(t)&&(a=t.props),!(0,cB.default)(a))return null;var i={};return Object.keys(a).forEach(function(c){var o;jf1((o=a)===null||o===void 0?void 0:o[c],c,r,n)&&(i[c]=a[c])}),i},ah=function e(t,r){if(t===r)return!0;var n=dc.Children.count(t);if(n!==dc.Children.count(r))return!1;if(n===0)return!0;if(n===1)return nB(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Wf1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function U8(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,c=e.style,o=e.title,l=e.desc,f=qf1(e,Uf1),h=a||{width:r,height:n,x:0,y:0},p=X1("recharts-surface",i);return ih.default.createElement("svg",Ew({},G1(f,!0,"svg"),{className:p,width:r,height:n,style:c,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),ih.default.createElement("title",null,o),ih.default.createElement("desc",null,l),t)}var Nw=p1(Z1());var Gf1=["children","className"];function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $f1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var H2=Nw.default.forwardRef(function(e,t){var r=e.children,n=e.className,a=Kf1(e,Gf1),i=X1("recharts-layer",n);return Nw.default.createElement("g",kw({className:i},G1(a,!0),{ref:t}),r)});var Aa=p1(Z1());var Cr=p1(Z1()),mz=p1(Ie());var Yf1=!1,jt=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i=0))throw new Error(`invalid digits: ${e}`);if(t>15)return AB;let r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;at6)if(!(Math.abs(p*l-f*h)>t6)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-c,y=a-o,g=l*l+f*f,z=m*m+y*y,x=Math.sqrt(g),b=Math.sqrt(d),w=i*Math.tan((Rw-Math.acos((g+d-z)/(2*x*b)))/2),A=w/b,M=w/x;Math.abs(A-1)>t6&&this._append`L${t+A*h},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*m>h*y)},${this._x1=t+M*l},${this._y1=r+M*f}`}}arc(t,r,n,a,i,c){if(t=+t,r=+r,n=+n,c=!!c,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(a),l=n*Math.sin(a),f=t+o,h=r+l,p=1^c,d=c?a-i:i-a;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>t6||Math.abs(this._y1-h)>t6)&&this._append`L${f},${h}`,n&&(d<0&&(d=d%Dw+Dw),d>N71?this._append`A${n},${n},0,1,${p},${t-o},${r-l}A${n},${n},0,1,${p},${this._x1=f},${this._y1=h}`:d>t6&&this._append`A${n},${n},0,${+(d>=Rw)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}};function EB(){return new r6}EB.prototype=r6.prototype;function vc(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new r6(t)}var cO1=Array.prototype.slice;function gc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kB(e){this._context=e}kB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Va(e){return new kB(e)}function oh(e){return e[0]}function sh(e){return e[1]}function W8(e,t){var r=P2(!0),n=null,a=Va,i=null,c=vc(o);e=typeof e=="function"?e:e===void 0?oh:P2(e),t=typeof t=="function"?t:t===void 0?sh:P2(t);function o(l){var f,h=(l=gc(l)).length,p,d=!1,m;for(n==null&&(i=a(m=c())),f=0;f<=h;++f)!(f=m;--y)o.point(w[y],A[y]);o.lineEnd(),o.areaEnd()}x&&(w[d]=+e(z,d,p),A[d]=+t(z,d,p),o.point(n?+n(z,d,p):w[d],r?+r(z,d,p):A[d]))}if(b)return o=null,b+""||null}function h(){return W8().defined(a).curve(c).context(i)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:P2(+p),n=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:P2(+p),f):e},f.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:P2(+p),f):n},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:P2(+p),r=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:P2(+p),f):t},f.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:P2(+p),f):r},f.lineX0=f.lineY0=function(){return h().x(e).y(t)},f.lineY1=function(){return h().x(e).y(r)},f.lineX1=function(){return h().x(n).y(t)},f.defined=function(p){return arguments.length?(a=typeof p=="function"?p:P2(!!p),f):a},f.curve=function(p){return arguments.length?(c=p,i!=null&&(o=c(i)),f):c},f.context=function(p){return arguments.length?(p==null?i=o=null:o=c(i=p),f):i},f}var lh=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function Bw(e){return new lh(e,!0)}function Fw(e){return new lh(e,!1)}var xc={draw(e,t){let r=tt(t/e6);e.moveTo(r,0),e.arc(0,0,r,0,mc)}};var jw={draw(e,t){let r=tt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var NB=tt(1/3),T71=NB*2,Uw={draw(e,t){let r=tt(t/T71),n=r*NB;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var qw={draw(e,t){let r=tt(t),n=-r/2;e.rect(n,n,r,r)}};var P71=.8908130915292852,OB=q8(e6/10)/q8(7*e6/10),I71=q8(mc/10)*OB,R71=-Iw(mc/10)*OB,Ww={draw(e,t){let r=tt(t*P71),n=I71*r,a=R71*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){let c=mc*i/5,o=Iw(c),l=q8(c);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*a,l*n+o*a)}e.closePath()}};var Gw=tt(3),Kw={draw(e,t){let r=-tt(t/(Gw*3));e.moveTo(0,r*2),e.lineTo(-Gw*r,-r),e.lineTo(Gw*r,-r),e.closePath()}};var nn=-.5,an=tt(3)/2,$w=1/tt(12),D71=($w/2+1)*3,Yw={draw(e,t){let r=tt(t/D71),n=r/2,a=r*$w,i=n,c=r*$w+r,o=-i,l=c;e.moveTo(n,a),e.lineTo(i,c),e.lineTo(o,l),e.lineTo(nn*n-an*a,an*n+nn*a),e.lineTo(nn*i-an*c,an*i+nn*c),e.lineTo(nn*o-an*l,an*o+nn*l),e.lineTo(nn*n+an*a,nn*a-an*n),e.lineTo(nn*i+an*c,nn*c-an*i),e.lineTo(nn*o+an*l,nn*l-an*o),e.closePath()}};function fh(e,t){let r=null,n=vc(a);e=typeof e=="function"?e:P2(e||xc),t=typeof t=="function"?t:P2(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:P2(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:P2(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function bc(){}function wc(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function TB(e){this._context=e}TB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Xw(e){return new TB(e)}function PB(e){this._context=e}PB.prototype={areaStart:bc,areaEnd:bc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Zw(e){return new PB(e)}function IB(e){this._context=e}IB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:wc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Qw(e){return new IB(e)}function RB(e){this._context=e}RB.prototype={areaStart:bc,areaEnd:bc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Jw(e){return new RB(e)}function DB(e){return e<0?-1:1}function BB(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),c=(r-e._y1)/(a||n<0&&-0),o=(i*a+c*n)/(n+a);return(DB(i)+DB(c))*Math.min(Math.abs(i),Math.abs(c),.5*Math.abs(o))||0}function FB(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ez(e,t,r){var n=e._x0,a=e._y0,i=e._x1,c=e._y1,o=(i-n)/3;e._context.bezierCurveTo(n+o,a+o*t,i-o,c-o*r,i,c)}function uh(e){this._context=e}uh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ez(this,this._t0,FB(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ez(this,FB(this,r=BB(this,e,t)),r);break;default:ez(this,this._t0,r=BB(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function jB(e){this._context=new UB(e)}(jB.prototype=Object.create(uh.prototype)).point=function(e,t){uh.prototype.point.call(this,t,e)};function UB(e){this._context=e}UB.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function tz(e){return new uh(e)}function rz(e){return new jB(e)}function WB(e){this._context=e}WB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=qB(e),a=qB(t),i=0,c=1;c=0;--t)a[t]=(c[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function az(e){return new hh(e,.5)}function iz(e){return new hh(e,0)}function cz(e){return new hh(e,1)}function cn(e,t){if((c=e.length)>1)for(var r=1,n,a,i=e[t[0]],c,o=i.length;r=0;)r[t]=t;return r}function B71(e,t){return e[t]}function F71(e){let t=[];return t.key=e,t}function oz(){var e=P2([]),t=zc,r=cn,n=B71;function a(i){var c=Array.from(e.apply(this,arguments),F71),o,l=c.length,f=-1,h;for(let p of i)for(o=0,++f;o0){for(var r,n,a=0,i=e[0].length,c;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,c;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $71(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var YB={symbolCircle:xc,symbolCross:jw,symbolDiamond:Uw,symbolSquare:qw,symbolStar:Ww,symbolTriangle:Kw,symbolWye:Yw},Y71=Math.PI/180,X71=function(t){var r="symbol".concat((0,hz.default)(t));return YB[r]||xc},Z71=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*Y71;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Q71=function(t,r){YB["symbol".concat((0,hz.default)(t))]=r},K8=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,c=t.sizeType,o=c===void 0?"area":c,l=K71(t,U71),f=KB(KB({},l),{},{type:n,size:i,sizeType:o}),h=function(){var z=X71(n),x=fh().type(z).size(Z71(i,o,n));return x()},p=f.className,d=f.cx,m=f.cy,y=G1(f,!0);return d===+d&&m===+m&&i===+i?$B.default.createElement("path",uz({},y,{className:X1("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(m,")"),d:h()})):null};K8.registerSymbol=Q71;function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function pz(){return pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var b=m.inactive?f:m.color;return Cr.default.createElement("li",pz({className:z,style:p,key:"legend-item-".concat(y)},La(n.props,m,y)),Cr.default.createElement(U8,{width:c,height:c,viewBox:h,style:d},n.renderIcon(m)),Cr.default.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},g?g(x,m,y):x))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,c=n.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?c:"left"};return Cr.default.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(Cr.PureComponent);$8(dh,"displayName","Legend");$8(dh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Dz=p1(IU()),RU=p1(Ie());function zh(e,t,r){return t===!0?(0,Dz.default)(e,r):(0,RU.default)(t)?(0,Dz.default)(e,t):e}function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}var Gd1=["ref"];function DU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function c4(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tm1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rm1(e){return e.value}function nm1(e,t){if(Aa.default.isValidElement(e))return Aa.default.cloneElement(e,t);if(typeof e=="function")return Aa.default.createElement(e,t);var r=t.ref,n=em1(t,Gd1);return Aa.default.createElement(dh,n)}var FU=1,Ea=function(e){function t(){var r;Kd1(this,t);for(var n=arguments.length,a=new Array(n),i=0;iFU||Math.abs(a.height-this.lastBoundingBox.height)>FU)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?c4({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,c=a.align,o=a.verticalAlign,l=a.margin,f=a.chartWidth,h=a.chartHeight,p,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(c==="center"&&i==="vertical"){var m=this.getBBoxSnapshot();p={left:((f||0)-m.width)/2}}else p=c==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(o==="middle"){var y=this.getBBoxSnapshot();d={top:((h||0)-y.height)/2}}else d=o==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return c4(c4({},p),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,c=a.width,o=a.height,l=a.wrapperStyle,f=a.payloadUniqBy,h=a.payload,p=c4(c4({position:"absolute",width:c||"auto",height:o||"auto"},this.getDefaultPosition(l)),l);return Aa.default.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(m){n.wrapperNode=m}},nm1(i,c4(c4({},this.props),{},{payload:zh(h,f,rm1)})))}}],[{key:"getWithHeight",value:function(n,a){var i=c4(c4({},this.defaultProps),n.props),c=i.layout;return c==="vertical"&&I1(n.props.height)?{height:n.props.height}:c==="horizontal"?{width:n.props.width||a}:null}}])}(Aa.PureComponent);Ch(Ea,"displayName","Legend");Ch(Ea,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ka=p1(Z1());var v3=p1(Z1()),Pq=p1(_h()),Iq=p1(m3());function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function Kz(){return Kz=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(tl,"-left"),I1(r)&&t&&I1(t.x)&&r=t.y),"".concat(tl,"-top"),I1(n)&&t&&I1(t.y)&&ng?Math.max(h,l[n]):Math.max(p,l[n])}function Cv1(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Bq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,c=e.tooltipBox,o=e.useTranslate3d,l=e.viewBox,f,h,p;return c.height>0&&c.width>0&&r?(h=Dq({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:c.width,viewBox:l,viewBoxDimension:l.width}),p=Dq({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:c.height,viewBox:l,viewBoxDimension:l.height}),f=Cv1({translateX:h,translateY:p,useTranslate3d:o})):f=zv1,{cssProperties:f,cssClasses:Mv1({translateX:h,translateY:p,coordinate:r})}}function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function Fq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function jq(e){for(var t=1;tqq||Math.abs(n.height-this.state.lastBoundingBox.height)>qq)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,i=a.active,c=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,f=a.children,h=a.coordinate,p=a.hasPayload,d=a.isAnimationActive,m=a.offset,y=a.position,g=a.reverseDirection,z=a.useTranslate3d,x=a.viewBox,b=a.wrapperStyle,w=Bq({allowEscapeViewBox:c,coordinate:h,offsetTopLeft:m,position:y,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:z,viewBox:x}),A=w.cssClasses,M=w.cssProperties,H=jq(jq({transition:d&&i?"transform ".concat(o,"ms ").concat(l):void 0},M),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&p?"visible":"hidden",position:"absolute",top:0,left:0},b);return Vh.default.createElement("div",{tabIndex:-1,className:A,style:H,ref:function(T){n.wrapperNode=T}},f)}}])}(Vh.PureComponent);var kv1=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},On={isSsr:kv1(),get:function(t){return On[t]},set:function(t,r){if(typeof t=="string")On[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){On[a]=t[a]})}}};function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function $q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yq(e){for(var t=1;t0;return ka.default.createElement(Kq,{allowEscapeViewBox:c,animationDuration:o,animationEasing:l,isAnimationActive:d,active:i,coordinate:h,hasPayload:H,offset:m,position:z,reverseDirection:x,useTranslate3d:b,viewBox:w,wrapperStyle:A},Fv1(f,Yq(Yq({},this.props),{},{payload:M})))}}])}(ka.PureComponent);Zz(g3,"displayName","Tooltip");Zz(g3,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!On.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Ae=p1(Z1()),dW=p1(eM());function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function hW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Eh(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(q=(0,dW.default)(q,g,{trailing:!0,leading:!1}));var J=new ResizeObserver(q),$=M.current.getBoundingClientRect(),E=$.width,O=$.height;return N(E,O),J.observe(M.current),function(){J.disconnect()}},[N,g]);var C=(0,Ae.useMemo)(function(){var q=I.containerWidth,J=I.containerHeight;if(q<0||J<0)return null;jt(i4(c)||i4(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,c,l),jt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=i4(c)?q:c,E=i4(l)?J:l;r&&r>0&&($?E=$/r:E&&($=E*r),d&&E>d&&(E=d)),jt($>0||E>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,$,E,c,l,h,p,r);var O=!Array.isArray(m)&&rn(m.type).endsWith("Chart");return Ae.default.Children.map(m,function(B){return Ae.default.isValidElement(B)?(0,Ae.cloneElement)(B,Eh({width:$,height:E},O?{style:Eh({height:"100%",width:"100%",maxHeight:E,maxWidth:$},B.props.style)}:{})):B})},[r,m,l,d,p,h,I,c]);return Ae.default.createElement("div",{id:z?"".concat(z):void 0,className:X1("recharts-responsive-container",x),style:Eh(Eh({},A),{},{width:c,height:l,minWidth:h,minHeight:p,maxHeight:d}),ref:M},C)});var kc=function(t){return null};kc.displayName="Cell";var cl=p1(Z1()),iM=p1(m3());function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function mW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function rM(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||On.isSsr)return{width:0,height:0};var n=Cg1(r),a=JSON.stringify({text:t,copyStyle:n});if(Nc.widthCache[a])return Nc.widthCache[a];try{var i=document.getElementById(vW);i||(i=document.createElement("span"),i.setAttribute("id",vW),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var c=rM(rM({},Mg1),n);Object.assign(i.style,c),i.textContent="".concat(t);var o=i.getBoundingClientRect(),l={width:o.width,height:o.height};return Nc.widthCache[a]=l,++Nc.cacheCount>zg1&&(Nc.cacheCount=0,Nc.widthCache={}),l}catch{return{width:0,height:0}}},gW=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function Nh(e,t){return Lg1(e)||Sg1(e,t)||_g1(e,t)||Hg1()}function Hg1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _g1(e,t){if(e){if(typeof e=="string")return yW(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yW(e,t)}}function yW(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jg1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _W(e,t){return Gg1(e)||Wg1(e,t)||qg1(e,t)||Ug1()}function Ug1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qg1(e,t){if(e){if(typeof e=="string")return SW(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SW(e,t)}}function SW(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(E,O){var B=O.word,k=O.width,R=E[E.length-1];if(R&&(a==null||i||R.width+k+nO.width?E:O})};if(!h)return m;for(var g="\u2026",z=function($){var E=p.slice(0,$),O=EW({breakAll:f,style:l,children:E+g}).wordsWithComputedWidth,B=d(O),k=B.length>c||y(B).width>Number(a);return[k,B]},x=0,b=p.length-1,w=0,A;x<=b&&w<=p.length-1;){var M=Math.floor((x+b)/2),H=M-1,V=z(H),T=_W(V,2),I=T[0],L=T[1],N=z(M),C=_W(N,1),q=C[0];if(!I&&!q&&(x=M+1),I&&q&&(b=M-1),!I&&q){A=L;break}w++}return A||m},LW=function(t){var r=(0,iM.default)(t)?[]:t.toString().split(AW);return[{words:r}]},$g1=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,c=t.breakAll,o=t.maxLines;if((r||n)&&!On.isSsr){var l,f,h=EW({breakAll:c,children:a,style:i});if(h){var p=h.wordsWithComputedWidth,d=h.spaceWidth;l=p,f=d}else return LW(a);return Kg1({breakAll:c,children:a,maxLines:o,style:i},l,f,r,n)}return LW(a)},VW="#808080",Tn=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,c=t.lineHeight,o=c===void 0?"1em":c,l=t.capHeight,f=l===void 0?"0.71em":l,h=t.scaleToFit,p=h===void 0?!1:h,d=t.textAnchor,m=d===void 0?"start":d,y=t.verticalAnchor,g=y===void 0?"end":y,z=t.fill,x=z===void 0?VW:z,b=HW(t,Bg1),w=(0,cl.useMemo)(function(){return $g1({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:p,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,p,b.style,b.width]),A=b.dx,M=b.dy,H=b.angle,V=b.className,T=b.breakAll,I=HW(b,Fg1);if(!Z2(n)||!Z2(i))return null;var L=n+(I1(A)?A:0),N=i+(I1(M)?M:0),C;switch(g){case"start":C=Oh("calc(".concat(f,")"));break;case"middle":C=Oh("calc(".concat((w.length-1)/2," * -").concat(o," + (").concat(f," / 2))"));break;default:C=Oh("calc(".concat(w.length-1," * -").concat(o,")"));break}var q=[];if(p){var J=w[0].width,$=b.width;q.push("scale(".concat((I1($)?$/J:1)/J,")"))}return H&&q.push("rotate(".concat(H,", ").concat(L,", ").concat(N,")")),q.length&&(I.transform=q.join(" ")),cl.default.createElement("text",aM({},G1(I,!0),{x:L,y:N,className:X1("recharts-text",V),textAnchor:m,fill:x.includes("url")?VW:x}),w.map(function(E,O){var B=E.words.join(T?"":" ");return cl.default.createElement("tspan",{x:L,dy:O===0?C:o,key:"".concat(B,"-").concat(O)},B)}))};var _e=p1(Z1()),Fl=p1(m3()),jl=p1(Ie()),hC=p1(en());var YK=p1(m3()),XK=p1(Z1()),ZK=p1(Ie());var vp={};tn1(vp,{scaleBand:()=>Na,scaleDiverging:()=>dp,scaleDivergingLog:()=>DM,scaleDivergingPow:()=>mp,scaleDivergingSqrt:()=>QG,scaleDivergingSymlog:()=>BM,scaleIdentity:()=>Qh,scaleImplicit:()=>Fh,scaleLinear:()=>p6,scaleLog:()=>Jh,scaleOrdinal:()=>Ic,scalePoint:()=>Oa,scalePow:()=>xl,scaleQuantile:()=>rp,scaleQuantize:()=>np,scaleRadial:()=>tp,scaleSequential:()=>fp,scaleSequentialLog:()=>IM,scaleSequentialPow:()=>up,scaleSequentialQuantile:()=>hp,scaleSequentialSqrt:()=>ZG,scaleSequentialSymlog:()=>RM,scaleSqrt:()=>xG,scaleSymlog:()=>ep,scaleThreshold:()=>ap,scaleTime:()=>TM,scaleUtc:()=>PM,tickFormat:()=>dl});function Ut(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function cM(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function i6(e){let t,r,n;e.length!==2?(t=Ut,r=(o,l)=>Ut(e(o),l),n=(o,l)=>e(o)-l):(t=e===Ut||e===cM?e:Yg1,r=e,n=e);function a(o,l,f=0,h=o.length){if(f>>1;r(o[p],l)<0?f=p+1:h=p}while(f>>1;r(o[p],l)<=0?f=p+1:h=p}while(ff&&n(o[p-1],l)>-n(o[p],l)?p-1:p}return{left:a,center:c,right:i}}function Yg1(){return 0}function ol(e){return e===null?NaN:+e}function*kW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}var NW=i6(Ut),OW=NW.right,Xg1=NW.left,Zg1=i6(ol).center,Pn=OW;var Tc=class extends Map{constructor(t,r=ey1){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,a]of t)this.set(n,a)}get(t){return super.get(TW(this,t))}has(t){return super.has(TW(this,t))}set(t,r){return super.set(Qg1(this,t),r)}delete(t){return super.delete(Jg1(this,t))}};function TW({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function Qg1({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Jg1({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function ey1(e){return e!==null&&typeof e=="object"?e.valueOf():e}function PW(e=Ut){if(e===Ut)return oM;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function oM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}var ty1=Math.sqrt(50),ry1=Math.sqrt(10),ny1=Math.sqrt(2);function Th(e,t,r){let n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),c=i>=ty1?10:i>=ry1?5:i>=ny1?2:1,o,l,f;return a<0?(f=Math.pow(10,-a)/c,o=Math.round(e*f),l=Math.round(t*f),o/ft&&--l,f=-f):(f=Math.pow(10,a)*c,o=Math.round(e/f),l=Math.round(t/f),o*ft&&--l),l0))return[];if(e===t)return[e];let n=t=a))return[];let o=i-a+1,l=new Array(o);if(n)if(c<0)for(let f=0;f=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function Ih(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Rh(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?oM:PW(a);n>r;){if(n-r>600){let l=n-r+1,f=t-r+1,h=Math.log(l),p=.5*Math.exp(2*h/3),d=.5*Math.sqrt(h*p*(l-p)/l)*(f-l/2<0?-1:1),m=Math.max(r,Math.floor(t-f*p/l+d)),y=Math.min(n,Math.floor(t+(l-f)*p/l+d));Rh(e,t,m,y,a)}let i=e[t],c=r,o=n;for(ll(e,r,t),a(e[n],i)>0&&ll(e,r,n);c0;)--o}a(e[r],i)===0?ll(e,r,o):(++o,ll(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function ll(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function Dh(e,t,r){if(e=Float64Array.from(kW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Ih(e);if(t>=1)return Ph(e);var n,a=(n-1)*t,i=Math.floor(a),c=Ph(Rh(e,i).subarray(0,i+1)),o=Ih(e.subarray(i+1));return c+(o-c)*(a-i)}}function sM(e,t,r=ol){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),c=+r(e[i],i,e),o=+r(e[i+1],i+1,e);return c+(o-c)*(a-i)}}function Bh(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Uh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Uh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=iy1.exec(e))?new or(t[1],t[2],t[3],1):(t=cy1.exec(e))?new or(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=oy1.exec(e))?Uh(t[1],t[2],t[3],t[4]):(t=sy1.exec(e))?Uh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ly1.exec(e))?qW(t[1],t[2]/100,t[3]/100,1):(t=fy1.exec(e))?qW(t[1],t[2]/100,t[3]/100,t[4]):RW.hasOwnProperty(e)?FW(RW[e]):e==="transparent"?new or(NaN,NaN,NaN,0):null}function FW(e){return new or(e>>16&255,e>>8&255,e&255,1)}function Uh(e,t,r,n){return n<=0&&(e=t=r=NaN),new or(e,t,r,n)}function py1(e){return e instanceof hl||(e=Ta(e)),e?(e=e.rgb(),new or(e.r,e.g,e.b,e.opacity)):new or}function Dc(e,t,r,n){return arguments.length===1?py1(e):new or(e,t,r,n??1)}function or(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}jh(or,Dc,lM(hl,{brighter(e){return e=e==null?Wh:Math.pow(Wh,e),new or(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fl:Math.pow(fl,e),new or(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new or(s6(this.r),s6(this.g),s6(this.b),Gh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jW,formatHex:jW,formatHex8:dy1,formatRgb:UW,toString:UW}));function jW(){return`#${o6(this.r)}${o6(this.g)}${o6(this.b)}`}function dy1(){return`#${o6(this.r)}${o6(this.g)}${o6(this.b)}${o6((isNaN(this.opacity)?1:this.opacity)*255)}`}function UW(){let e=Gh(this.opacity);return`${e===1?"rgb(":"rgba("}${s6(this.r)}, ${s6(this.g)}, ${s6(this.b)}${e===1?")":`, ${e})`}`}function Gh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function s6(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function o6(e){return e=s6(e),(e<16?"0":"")+e.toString(16)}function qW(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new In(e,t,r,n)}function GW(e){if(e instanceof In)return new In(e.h,e.s,e.l,e.opacity);if(e instanceof hl||(e=Ta(e)),!e)return new In;if(e instanceof In)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),c=NaN,o=i-a,l=(i+a)/2;return o?(t===i?c=(r-n)/o+(r0&&l<1?0:c,new In(c,o,l,e.opacity)}function KW(e,t,r,n){return arguments.length===1?GW(e):new In(e,t,r,n??1)}function In(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}jh(In,KW,lM(hl,{brighter(e){return e=e==null?Wh:Math.pow(Wh,e),new In(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fl:Math.pow(fl,e),new In(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new or(fM(e>=240?e-240:e+120,a,n),fM(e,a,n),fM(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new In(WW(this.h),qh(this.s),qh(this.l),Gh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Gh(this.opacity);return`${e===1?"hsl(":"hsla("}${WW(this.h)}, ${qh(this.s)*100}%, ${qh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function WW(e){return e=(e||0)%360,e<0?e+360:e}function qh(e){return Math.max(0,Math.min(1,e||0))}function fM(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function uM(e,t,r,n,a){var i=e*e,c=i*e;return((1-3*e+3*i-c)*t+(4-6*i+3*c)*r+(1+3*e+3*i-3*c)*n+c*a)/6}function $W(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[n],i=e[n+1],c=n>0?e[n-1]:2*a-i,o=n()=>e;function my1(e,t){return function(r){return e+r*t}}function vy1(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function XW(e){return(e=+e)==1?Kh:function(t,r){return r-t?vy1(t,r,e):pl(isNaN(t)?r:t)}}function Kh(e,t){var r=t-e;return r?my1(e,r):pl(isNaN(e)?t:e)}var hM=function e(t){var r=XW(t);function n(a,i){var c=r((a=Dc(a)).r,(i=Dc(i)).r),o=r(a.g,i.g),l=r(a.b,i.b),f=Kh(a.opacity,i.opacity);return function(h){return a.r=c(h),a.g=o(h),a.b=l(h),a.opacity=f(h),a+""}}return n.gamma=e,n}(1);function ZW(e){return function(t){var r=t.length,n=new Array(r),a=new Array(r),i=new Array(r),c,o;for(c=0;cr&&(i=t.slice(r,i),o[c]?o[c]+=i:o[++c]=i),(n=n[0])===(a=a[0])?o[c]?o[c]+=a:o[++c]=a:(o[++c]=null,l.push({i:c,x:Pa(n,a)})),r=pM.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function by1(e,t,r){var n=e[0],a=e[1],i=t[0],c=t[1];return a2?wy1:by1,l=f=null,p}function p(d){return d==null||isNaN(d=+d)?i:(l||(l=o(e.map(n),t,r)))(n(c(d)))}return p.invert=function(d){return c(a((f||(f=o(t,e.map(n),Pa)))(d)))},p.domain=function(d){return arguments.length?(e=Array.from(d,Ia),h()):e.slice()},p.range=function(d){return arguments.length?(t=Array.from(d),h()):t.slice()},p.rangeRound=function(d){return t=Array.from(d),r=l6,h()},p.clamp=function(d){return arguments.length?(c=d?!0:Ge,h()):c!==Ge},p.interpolate=function(d){return arguments.length?(r=d,h()):r},p.unknown=function(d){return arguments.length?(i=d,p):i},function(d,m){return n=d,a=m,h()}}function u6(){return f6()(Ge,Ge)}function iG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function h6(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function b3(e){return e=h6(Math.abs(e)),e?e[1]:NaN}function cG(e,t){return function(r,n){for(var a=r.length,i=[],c=0,o=e[0],l=0;a>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),i.push(r.substring(a-=o,a+o)),!((l+=o+1)>n));)o=e[c=(c+1)%e.length];return i.reverse().join(t)}}function oG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var zy1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function w3(e){if(!(t=zy1.exec(e)))throw new Error("invalid format: "+e);var t;return new Yh({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}w3.prototype=Yh.prototype;function Yh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Yh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function sG(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var gM;function lG(e,t){var r=h6(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(gM=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,c=n.length;return i===c?n:i>c?n+new Array(i-c+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+h6(e,Math.max(0,t+i-1))[0]}function yM(e,t){var r=h6(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var xM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:iG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>yM(e*100,t),r:yM,s:lG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bM(e){return e}var fG=Array.prototype.map,uG=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function hG(e){var t=e.grouping===void 0||e.thousands===void 0?bM:cG(fG.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?bM:oG(fG.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(p){p=w3(p);var d=p.fill,m=p.align,y=p.sign,g=p.symbol,z=p.zero,x=p.width,b=p.comma,w=p.precision,A=p.trim,M=p.type;M==="n"?(b=!0,M="g"):xM[M]||(w===void 0&&(w=12),A=!0,M="g"),(z||d==="0"&&m==="=")&&(z=!0,d="0",m="=");var H=g==="$"?r:g==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",V=g==="$"?n:/[%p]/.test(M)?c:"",T=xM[M],I=/[defgprs%]/.test(M);w=w===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function L(N){var C=H,q=V,J,$,E;if(M==="c")q=T(N)+q,N="";else{N=+N;var O=N<0||1/N<0;if(N=isNaN(N)?l:T(Math.abs(N),w),A&&(N=sG(N)),O&&+N==0&&y!=="+"&&(O=!1),C=(O?y==="("?y:o:y==="-"||y==="("?"":y)+C,q=(M==="s"?uG[8+gM/3]:"")+q+(O&&y==="("?")":""),I){for(J=-1,$=N.length;++J<$;)if(E=N.charCodeAt(J),48>E||E>57){q=(E===46?a+N.slice(J+1):N.slice(J))+q,N=N.slice(0,J);break}}}b&&!z&&(N=t(N,1/0));var B=C.length+N.length+q.length,k=B>1)+C+N+q+k.slice(B);break;default:N=k+C+N+q;break}return i(N)}return L.toString=function(){return p+""},L}function h(p,d){var m=f((p=w3(p),p.type="f",p)),y=Math.max(-8,Math.min(8,Math.floor(b3(d)/3)))*3,g=Math.pow(10,-y),z=uG[8+y/3];return function(x){return m(g*x)+z}}return{format:f,formatPrefix:h}}var Xh,Bc,Zh;wM({thousands:",",grouping:[3],currency:["$",""]});function wM(e){return Xh=hG(e),Bc=Xh.format,Zh=Xh.formatPrefix,Xh}function zM(e){return Math.max(0,-b3(Math.abs(e)))}function MM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(b3(t)/3)))*3-b3(Math.abs(e)))}function CM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,b3(t)-b3(e))+1}function dl(e,t,r,n){var a=Pc(e,t,r),i;switch(n=w3(n??",f"),n.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=MM(a,c))&&(n.precision=i),Zh(n,c)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=CM(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=zM(a))&&(n.precision=i-(n.type==="%")*2);break}}return Bc(n)}function qt(e){var t=e.domain;return e.ticks=function(r){var n=t();return c6(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return dl(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,c=n[a],o=n[i],l,f,h=10;for(o0;){if(f=sl(c,o,r),f===l)return n[a]=c,n[i]=o,t(n);if(f>0)c=Math.floor(c/f)*f,o=Math.ceil(o/f)*f;else if(f<0)c=Math.ceil(c*f)/f,o=Math.floor(o*f)/f;else break;l=f}return e},e}function p6(){var e=u6();return e.copy=function(){return x3(e,p6())},fe.apply(e,arguments),qt(e)}function Qh(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ia),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Qh(e).unknown(t)},e=arguments.length?Array.from(e,Ia):[0,1],qt(r)}function ml(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],c;return iMath.pow(e,t)}function Sy1(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function mG(e){return(t,r)=>-e(-t,r)}function vl(e){let t=e(pG,dG),r=t.domain,n=10,a,i;function c(){return a=Sy1(n),i=_y1(n),r()[0]<0?(a=mG(a),i=mG(i),e(My1,Cy1)):e(pG,dG),t}return t.base=function(o){return arguments.length?(n=+o,c()):n},t.domain=function(o){return arguments.length?(r(o),c()):r()},t.ticks=o=>{let l=r(),f=l[0],h=l[l.length-1],p=h0){for(;d<=m;++d)for(y=1;yh)break;x.push(g)}}else for(;d<=m;++d)for(y=n-1;y>=1;--y)if(g=d>0?y/i(-d):y*i(d),!(gh)break;x.push(g)}x.length*2{if(o==null&&(o=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=w3(l)).precision==null&&(l.trim=!0),l=Bc(l)),o===1/0)return l;let f=Math.max(1,n*o/t.ticks().length);return h=>{let p=h/i(Math.round(a(h)));return p*nr(ml(r(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function Jh(){let e=vl(f6()).domain([1,10]);return e.copy=()=>x3(e,Jh()).base(e.base()),fe.apply(e,arguments),e}function vG(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gG(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gl(e){var t=1,r=e(vG(t),gG(t));return r.constant=function(n){return arguments.length?e(vG(t=+n),gG(t)):t},qt(r)}function ep(){var e=gl(f6());return e.copy=function(){return x3(e,ep()).constant(e.constant())},fe.apply(e,arguments)}function yG(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ly1(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Vy1(e){return e<0?-e*e:e*e}function yl(e){var t=e(Ge,Ge),r=1;function n(){return r===1?e(Ge,Ge):r===.5?e(Ly1,Vy1):e(yG(r),yG(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},qt(t)}function xl(){var e=yl(f6());return e.copy=function(){return x3(e,xl()).exponent(e.exponent())},fe.apply(e,arguments),e}function xG(){return xl.apply(null,arguments).exponent(.5)}function bG(e){return Math.sign(e)*e*e}function Ay1(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tp(){var e=u6(),t=[0,1],r=!1,n;function a(i){var c=Ay1(e(i));return isNaN(c)?n:r?Math.round(c):c}return a.invert=function(i){return e.invert(bG(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Ia)).map(bG)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return tp(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},fe.apply(a,arguments),qt(a)}function rp(){var e=[],t=[],r=[],n;function a(){var c=0,o=Math.max(1,t.length);for(r=new Array(o-1);++c0?r[o-1]:e[0],o=r?[n[r-1],t]:[n[f-1],n[f]]},c.unknown=function(l){return arguments.length&&(i=l),c},c.thresholds=function(){return n.slice()},c.copy=function(){return np().domain([e,t]).range(a).unknown(i)},fe.apply(qt(c),arguments)}function ap(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Pn(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var c=t.indexOf(i);return[e[c-1],e[c]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return ap().domain(e).range(t).unknown(r)},fe.apply(a,arguments)}var HM=new Date,_M=new Date;function K2(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{let c=a(i),o=a.ceil(i);return i-c(t(i=new Date(+i),c==null?1:Math.floor(c)),i),a.range=(i,c,o)=>{let l=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i0))return l;let f;do l.push(f=new Date(+i)),t(i,o),e(i);while(fK2(c=>{if(c>=c)for(;e(c),!i(c);)c.setTime(c-1)},(c,o)=>{if(c>=c)if(o<0)for(;++o<=0;)for(;t(c,-1),!i(c););else for(;--o>=0;)for(;t(c,1),!i(c););}),r&&(a.count=(i,c)=>(HM.setTime(+i),_M.setTime(+c),e(HM),e(_M),Math.floor(r(HM,_M))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?c=>n(c)%i===0:c=>a.count(0,c)%i===0):a)),a}var bl=K2(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?K2(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bl);var IF1=bl.range;var ln=K2(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),wG=ln.range;var Fc=K2(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),Ey1=Fc.range,jc=K2(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),ky1=jc.range;var Uc=K2(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),Ny1=Uc.range,qc=K2(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),Oy1=qc.range;var o4=K2(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),Ty1=o4.range,v6=K2(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),Py1=v6.range,ip=K2(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),Iy1=ip.range;function g6(e){return K2(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var s4=g6(0),Wc=g6(1),MG=g6(2),CG=g6(3),Ra=g6(4),HG=g6(5),_G=g6(6),SG=s4.range,Ry1=Wc.range,Dy1=MG.range,By1=CG.range,Fy1=Ra.range,jy1=HG.range,Uy1=_G.range;function y6(e){return K2(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var l4=y6(0),Gc=y6(1),LG=y6(2),VG=y6(3),Da=y6(4),AG=y6(5),EG=y6(6),kG=l4.range,qy1=Gc.range,Wy1=LG.range,Gy1=VG.range,Ky1=Da.range,$y1=AG.range,Yy1=EG.range;var Kc=K2(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),Xy1=Kc.range,$c=K2(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),Zy1=$c.range;var _r=K2(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());_r.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:K2(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var Qy1=_r.range,Sr=K2(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:K2(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var Jy1=Sr.range;function OG(e,t,r,n,a,i){let c=[[ln,1,1e3],[ln,5,5*1e3],[ln,15,15*1e3],[ln,30,30*1e3],[i,1,6e4],[i,5,5*6e4],[i,15,15*6e4],[i,30,30*6e4],[a,1,36e5],[a,3,3*36e5],[a,6,6*36e5],[a,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function o(f,h,p){let d=hz).right(c,d);if(m===c.length)return e.every(Pc(f/31536e6,h/31536e6,p));if(m===0)return bl.every(Math.max(Pc(f,h,p),1));let[y,g]=c[d/c[m-1][2]53)return null;"w"in S||(S.w=1),"Z"in S?(c1=kM(zl(S.y,0,1)),G=c1.getUTCDay(),c1=G>4||G===0?Gc.ceil(c1):Gc(c1),c1=v6.offset(c1,(S.V-1)*7),S.y=c1.getUTCFullYear(),S.m=c1.getUTCMonth(),S.d=c1.getUTCDate()+(S.w+6)%7):(c1=EM(zl(S.y,0,1)),G=c1.getDay(),c1=G>4||G===0?Wc.ceil(c1):Wc(c1),c1=o4.offset(c1,(S.V-1)*7),S.y=c1.getFullYear(),S.m=c1.getMonth(),S.d=c1.getDate()+(S.w+6)%7)}else("W"in S||"U"in S)&&("w"in S||(S.w="u"in S?S.u%7:"W"in S?1:0),G="Z"in S?kM(zl(S.y,0,1)).getUTCDay():EM(zl(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(G+5)%7:S.w+S.U*7-(G+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,kM(S)):EM(S)}}function T(f1,D1,A1,S){for(var u1=0,c1=D1.length,G=A1.length,W,r1;u1=G)return-1;if(W=D1.charCodeAt(u1++),W===37){if(W=D1.charAt(u1++),r1=M[W in TG?D1.charAt(u1++):W],!r1||(S=r1(f1,A1,S))<0)return-1}else if(W!=A1.charCodeAt(S++))return-1}return S}function I(f1,D1,A1){var S=f.exec(D1.slice(A1));return S?(f1.p=h.get(S[0].toLowerCase()),A1+S[0].length):-1}function L(f1,D1,A1){var S=m.exec(D1.slice(A1));return S?(f1.w=y.get(S[0].toLowerCase()),A1+S[0].length):-1}function N(f1,D1,A1){var S=p.exec(D1.slice(A1));return S?(f1.w=d.get(S[0].toLowerCase()),A1+S[0].length):-1}function C(f1,D1,A1){var S=x.exec(D1.slice(A1));return S?(f1.m=b.get(S[0].toLowerCase()),A1+S[0].length):-1}function q(f1,D1,A1){var S=g.exec(D1.slice(A1));return S?(f1.m=z.get(S[0].toLowerCase()),A1+S[0].length):-1}function J(f1,D1,A1){return T(f1,t,D1,A1)}function $(f1,D1,A1){return T(f1,r,D1,A1)}function E(f1,D1,A1){return T(f1,n,D1,A1)}function O(f1){return c[f1.getDay()]}function B(f1){return i[f1.getDay()]}function k(f1){return l[f1.getMonth()]}function R(f1){return o[f1.getMonth()]}function j(f1){return a[+(f1.getHours()>=12)]}function Y(f1){return 1+~~(f1.getMonth()/3)}function Z(f1){return c[f1.getUTCDay()]}function h1(f1){return i[f1.getUTCDay()]}function S1(f1){return l[f1.getUTCMonth()]}function v1(f1){return o[f1.getUTCMonth()]}function z1(f1){return a[+(f1.getUTCHours()>=12)]}function q1(f1){return 1+~~(f1.getUTCMonth()/3)}return{format:function(f1){var D1=H(f1+="",w);return D1.toString=function(){return f1},D1},parse:function(f1){var D1=V(f1+="",!1);return D1.toString=function(){return f1},D1},utcFormat:function(f1){var D1=H(f1+="",A);return D1.toString=function(){return f1},D1},utcParse:function(f1){var D1=V(f1+="",!0);return D1.toString=function(){return f1},D1}}}var TG={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,tx1=/^%/,rx1=/[\\^$*+?|[\]().{}]/g;function A2(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function ax1(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ix1(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function cx1(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ox1(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function sx1(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function PG(e,t,r){var n=rt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function IG(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lx1(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function fx1(e,t,r){var n=rt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function ux1(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function RG(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function hx1(e,t,r){var n=rt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function DG(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function px1(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function dx1(e,t,r){var n=rt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function mx1(e,t,r){var n=rt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function vx1(e,t,r){var n=rt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gx1(e,t,r){var n=tx1.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function yx1(e,t,r){var n=rt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function xx1(e,t,r){var n=rt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function BG(e,t){return A2(e.getDate(),t,2)}function bx1(e,t){return A2(e.getHours(),t,2)}function wx1(e,t){return A2(e.getHours()%12||12,t,2)}function zx1(e,t){return A2(1+o4.count(_r(e),e),t,3)}function WG(e,t){return A2(e.getMilliseconds(),t,3)}function Mx1(e,t){return WG(e,t)+"000"}function Cx1(e,t){return A2(e.getMonth()+1,t,2)}function Hx1(e,t){return A2(e.getMinutes(),t,2)}function _x1(e,t){return A2(e.getSeconds(),t,2)}function Sx1(e){var t=e.getDay();return t===0?7:t}function Lx1(e,t){return A2(s4.count(_r(e)-1,e),t,2)}function GG(e){var t=e.getDay();return t>=4||t===0?Ra(e):Ra.ceil(e)}function Vx1(e,t){return e=GG(e),A2(Ra.count(_r(e),e)+(_r(e).getDay()===4),t,2)}function Ax1(e){return e.getDay()}function Ex1(e,t){return A2(Wc.count(_r(e)-1,e),t,2)}function kx1(e,t){return A2(e.getFullYear()%100,t,2)}function Nx1(e,t){return e=GG(e),A2(e.getFullYear()%100,t,2)}function Ox1(e,t){return A2(e.getFullYear()%1e4,t,4)}function Tx1(e,t){var r=e.getDay();return e=r>=4||r===0?Ra(e):Ra.ceil(e),A2(e.getFullYear()%1e4,t,4)}function Px1(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+A2(t/60|0,"0",2)+A2(t%60,"0",2)}function FG(e,t){return A2(e.getUTCDate(),t,2)}function Ix1(e,t){return A2(e.getUTCHours(),t,2)}function Rx1(e,t){return A2(e.getUTCHours()%12||12,t,2)}function Dx1(e,t){return A2(1+v6.count(Sr(e),e),t,3)}function KG(e,t){return A2(e.getUTCMilliseconds(),t,3)}function Bx1(e,t){return KG(e,t)+"000"}function Fx1(e,t){return A2(e.getUTCMonth()+1,t,2)}function jx1(e,t){return A2(e.getUTCMinutes(),t,2)}function Ux1(e,t){return A2(e.getUTCSeconds(),t,2)}function qx1(e){var t=e.getUTCDay();return t===0?7:t}function Wx1(e,t){return A2(l4.count(Sr(e)-1,e),t,2)}function $G(e){var t=e.getUTCDay();return t>=4||t===0?Da(e):Da.ceil(e)}function Gx1(e,t){return e=$G(e),A2(Da.count(Sr(e),e)+(Sr(e).getUTCDay()===4),t,2)}function Kx1(e){return e.getUTCDay()}function $x1(e,t){return A2(Gc.count(Sr(e)-1,e),t,2)}function Yx1(e,t){return A2(e.getUTCFullYear()%100,t,2)}function Xx1(e,t){return e=$G(e),A2(e.getUTCFullYear()%100,t,2)}function Zx1(e,t){return A2(e.getUTCFullYear()%1e4,t,4)}function Qx1(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Da(e):Da.ceil(e),A2(e.getUTCFullYear()%1e4,t,4)}function Jx1(){return"+0000"}function jG(){return"%"}function UG(e){return+e}function qG(e){return Math.floor(+e/1e3)}var Yc,cp,YG,op,XG;OM({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function OM(e){return Yc=NM(e),cp=Yc.format,YG=Yc.parse,op=Yc.utcFormat,XG=Yc.utcParse,Yc}function eb1(e){return new Date(e)}function tb1(e){return e instanceof Date?+e:+new Date(+e)}function sp(e,t,r,n,a,i,c,o,l,f){var h=u6(),p=h.invert,d=h.domain,m=f(".%L"),y=f(":%S"),g=f("%I:%M"),z=f("%I %p"),x=f("%a %d"),b=f("%b %d"),w=f("%B"),A=f("%Y");function M(H){return(l(H)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>Dh(e,i/n))},r.copy=function(){return hp(t).domain(e)},sn.apply(r,arguments)}function pp(){var e=0,t=.5,r=1,n=1,a,i,c,o,l,f=Ge,h,p=!1,d;function m(g){return isNaN(g=+g)?d:(g=.5+((g=+h(g))-i)*(n*ge.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,a):e(t-c,hK(function(){for(var o=arguments.length,l=new Array(o),f=0;fe.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var c=e[Symbol.iterator](),o;!(n=(o=c.next()).done)&&(r.push(o.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&c.return!=null&&c.return()}finally{if(a)throw i}}return r}}function Fb1(e){if(Array.isArray(e))return e}function XM(e){var t=x6(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function ZM(e,t,r){if(e.lte(0))return new I2.default(0);var n=Vl.getDigitCount(e.toNumber()),a=new I2.default(10).pow(n),i=e.div(a),c=n!==1?.05:.1,o=new I2.default(Math.ceil(i.div(c).toNumber())).add(r).mul(c),l=o.mul(a);return t?l:new I2.default(Math.ceil(l))}function vK(e,t,r){var n=1,a=new I2.default(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new I2.default(10).pow(Vl.getDigitCount(e)-1),a=new I2.default(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new I2.default(Math.floor(e)))}else e===0?a=new I2.default(Math.floor((t-1)/2)):r||(a=new I2.default(Math.floor(e)));var c=Math.floor((t-1)/2),o=GM(WM(function(l){return a.add(new I2.default(l-c).mul(n)).toNumber()}),Sl);return o(0,t)}function gK(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new I2.default(0),tickMin:new I2.default(0),tickMax:new I2.default(0)};var i=ZM(new I2.default(t).sub(e).div(r-1),n,a),c;e<=0&&t>=0?c=new I2.default(0):(c=new I2.default(e).add(t).div(2),c=c.sub(new I2.default(c).mod(i)));var o=Math.ceil(c.sub(e).div(i).toNumber()),l=Math.ceil(new I2.default(t).sub(c).div(i).toNumber()),f=o+l+1;return f>r?gK(e,t,r,n,a+1):(f0?l+(r-f):l,o=t>0?o:o+(r-f)),{step:i,tickMin:c.sub(new I2.default(o).mul(i)),tickMax:c.add(new I2.default(l).mul(i))})}function jb1(e){var t=x6(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=Math.max(a,2),o=XM([r,n]),l=x6(o,2),f=l[0],h=l[1];if(f===-1/0||h===1/0){var p=h===1/0?[f].concat($M(Sl(0,a-1).map(function(){return 1/0}))):[].concat($M(Sl(0,a-1).map(function(){return-1/0})),[h]);return r>n?Ll(p):p}if(f===h)return vK(f,a,i);var d=gK(f,h,c,i),m=d.step,y=d.tickMin,g=d.tickMax,z=Vl.rangeStep(y,g.add(new I2.default(.1).mul(m)),m);return r>n?Ll(z):z}function Ub1(e){var t=x6(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=Math.max(a,2),o=XM([r,n]),l=x6(o,2),f=l[0],h=l[1];if(f===-1/0||h===1/0)return[r,n];if(f===h)return vK(f,a,i);var p=ZM(new I2.default(h).sub(f).div(c-1),i,0),d=GM(WM(function(y){return new I2.default(f).add(new I2.default(y).mul(p)).toNumber()}),Sl),m=d(0,c).filter(function(y){return y>=f&&y<=h});return r>n?Ll(m):m}function qb1(e,t){var r=x6(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=XM([n,a]),o=x6(c,2),l=o[0],f=o[1];if(l===-1/0||f===1/0)return[n,a];if(l===f)return[l];var h=Math.max(t,2),p=ZM(new I2.default(f).sub(l).div(h-1),i,0),d=[].concat($M(Vl.rangeStep(new I2.default(l),new I2.default(f).sub(new I2.default(.99).mul(p)),p)),[f]);return n>a?Ll(d):d}var QM=xp(jb1),Wb1=xp(Ub1),JM=xp(qb1);var Al=p1(Z1());var Gb1=!0,eC="Invariant failed";function u4(e,t){if(!e){if(Gb1)throw new Error(eC);var r=typeof t=="function"?t():t,n=r?"".concat(eC,": ").concat(r):eC;throw new Error(n)}}var Kb1=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Xc(e){"@babel/helpers - typeof";return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}function bp(){return bp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ew1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tw1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xK(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,c=-1,o=(r=n?.length)!==null&&r!==void 0?r:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,f=0;f0?a[f-1].coordinate:a[o-1].coordinate,p=a[f].coordinate,d=f>=o-1?a[0].coordinate:a[f+1].coordinate,m=void 0;if(Ct(p-h)!==Ct(d-p)){var y=[];if(Ct(d-p)===Ct(l[1]-l[0])){m=d;var g=p+l[1]-l[0];y[0]=Math.min(g,(g+h)/2),y[1]=Math.max(g,(g+h)/2)}else{m=h;var z=d+l[1]-l[0];y[0]=Math.min(p,(z+p)/2),y[1]=Math.max(p,(z+p)/2)}var x=[Math.min(p,(m+p)/2),Math.max(p,(m+p)/2)];if(t>x[0]&&t<=x[1]||t>=y[0]&&t<=y[1]){c=a[f].index;break}}else{var b=Math.min(h,d),w=Math.max(h,d);if(t>(b+p)/2&&t<=(w+p)/2){c=a[f].index;break}}}else for(var A=0;A0&&A(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===o-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){c=n[A].index;break}return c},kl=function(t){var r,n=t,a=n.type.displayName,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?He(He({},t.type.defaultProps),t.props):t.props,c=i.stroke,o=i.fill,l;switch(a){case"Line":l=c;break;case"Area":case"Radar":l=c&&c!=="none"?c:o;break;default:l=o;break}return l},TK=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var c={},o=Object.keys(i),l=0,f=o.length;l=0});if(x&&x.length){var b=x[0].type.defaultProps,w=b!==void 0?He(He({},b),x[0].props):x[0].props,A=w.barSize,M=w[z];c[M]||(c[M]=[]);var H=(0,h4.default)(A)?r:A;c[M].push({item:x[0],stackList:x.slice(1),barSize:(0,h4.default)(H)?void 0:We(H,n,0)})}}return c},PK=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,c=i===void 0?[]:i,o=t.maxBarSize,l=c.length;if(l<1)return null;var f=We(r,a,0,!0),h,p=[];if(c[0].barSize===+c[0].barSize){var d=!1,m=a/l,y=c.reduce(function(A,M){return A+M.barSize||0},0);y+=(l-1)*f,y>=a&&(y-=(l-1)*f,f=0),y>=a&&m>0&&(d=!0,m*=.9,y=l*m);var g=(a-y)/2>>0,z={offset:g-f,size:0};h=c.reduce(function(A,M){var H={item:M.item,position:{offset:z.offset+z.size+f,size:d?m:M.barSize}},V=[].concat(CK(A),[H]);return z=V[V.length-1].position,M.stackList&&M.stackList.length&&M.stackList.forEach(function(T){V.push({item:T,position:z})}),V},p)}else{var x=We(n,a,0,!0);a-2*x-(l-1)*f<=0&&(f=0);var b=(a-2*x-(l-1)*f)/l;b>1&&(b>>=0);var w=o===+o?Math.min(b,o):b;h=c.reduce(function(A,M,H){var V=[].concat(CK(A),[{item:M.item,position:{offset:x+(b+f)*H+(b-w)/2,size:w}}]);return M.stackList&&M.stackList.length&&M.stackList.forEach(function(T){V.push({item:T,position:V[V.length-1].position})}),V},p)}return h},IK=function(t,r,n,a){var i=n.children,c=n.width,o=n.margin,l=c-(o.left||0)-(o.right||0),f=Mp({children:i,legendWidth:l});if(f){var h=a||{},p=h.width,d=h.height,m=f.align,y=f.verticalAlign,g=f.layout;if((g==="vertical"||g==="horizontal"&&y==="middle")&&m!=="center"&&I1(t[m]))return He(He({},t),{},Zc({},m,t[m]+(p||0)));if((g==="horizontal"||g==="vertical"&&m==="center")&&y!=="middle"&&I1(t[y]))return He(He({},t),{},Zc({},y,t[y]+(d||0)))}return t},gw1=function(t,r,n){return(0,h4.default)(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},RK=function(t,r,n,a,i){var c=r.props.children,o=Ht(c,zp).filter(function(f){return gw1(a,i,f.props.direction)});if(o&&o.length){var l=o.map(function(f){return f.props.dataKey});return t.reduce(function(f,h){var p=_t(h,n);if((0,h4.default)(p))return f;var d=Array.isArray(p)?[(0,Tl.default)(p),(0,Ol.default)(p)]:[p,p],m=l.reduce(function(y,g){var z=_t(h,g,0),x=d[0]-Math.abs(Array.isArray(z)?z[0]:z),b=d[1]+Math.abs(Array.isArray(z)?z[1]:z);return[Math.min(x,y[0]),Math.max(b,y[1])]},[1/0,-1/0]);return[Math.min(m[0],f[0]),Math.max(m[1],f[1])]},[1/0,-1/0])}return null},DK=function(t,r,n,a,i){var c=r.map(function(o){return RK(t,o,n,i,a)}).filter(function(o){return!(0,h4.default)(o)});return c&&c.length?c.reduce(function(o,l){return[Math.min(o[0],l[0]),Math.max(o[1],l[1])]},[1/0,-1/0]):null},iC=function(t,r,n,a,i){var c=r.map(function(l){var f=l.props.dataKey;return n==="number"&&f&&RK(t,l,f,a)||Jc(t,f,n,i)});if(n==="number")return c.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);var o={};return c.reduce(function(l,f){for(var h=0,p=f.length;h=2?Ct(o[0]-o[1])*2*f:f,r&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(p){var d=i?i.indexOf(p):p;return{coordinate:a(d)+f,value:p,offset:f}});return h.filter(function(p){return!(0,Cp.default)(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,d){return{coordinate:a(p)+f,value:p,index:d,offset:f}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+f,value:p,offset:f}}):a.domain().map(function(p,d){return{coordinate:a(p)+f,value:i?i[p]:p,index:d,offset:f}})},rC=new WeakMap,Pl=function(t,r){if(typeof r!="function")return t;rC.has(t)||rC.set(t,new WeakMap);var n=rC.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},BK=function(t,r,n){var a=t.scale,i=t.type,c=t.layout,o=t.axisType;if(a==="auto")return c==="radial"&&o==="radiusAxis"?{scale:Na(),realScaleType:"band"}:c==="radial"&&o==="angleAxis"?{scale:p6(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Oa(),realScaleType:"point"}:i==="category"?{scale:Na(),realScaleType:"band"}:{scale:p6(),realScaleType:"linear"};if((0,VK.default)(a)){var l="scale".concat((0,EK.default)(a));return{scale:(vp[l]||Oa)(),realScaleType:vp[l]?l:"point"}}return(0,Qc.default)(a)?{scale:a}:{scale:Oa(),realScaleType:"point"}},_K=1e-4,FK=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-_K,c=Math.max(a[0],a[1])+_K,o=t(r[0]),l=t(r[n-1]);(oc||lc)&&t.domain([r[0],r[n-1]])}};var yw1=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n=0?(t[o][n][0]=i,t[o][n][1]=i+l,i=t[o][n][1]):(t[o][n][0]=c,t[o][n][1]=c+l,c=t[o][n][1])}},xw1=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n=0?(t[c][n][0]=i,t[c][n][1]=i+o,i=t[c][n][1]):(t[c][n][0]=0,t[c][n][1]=0)}},bw1={sign:yw1,expand:sz,none:cn,silhouette:lz,wiggle:fz,positive:xw1},ww1=function(t,r,n){var a=r.map(function(o){return o.props.dataKey}),i=bw1[n],c=oz().keys(a).value(function(o,l){return+_t(o,l,0)}).order(zc).offset(i);return c(t)},jK=function(t,r,n,a,i,c){if(!t)return null;var o=c?r.reverse():r,l={},f=o.reduce(function(p,d){var m,y=(m=d.type)!==null&&m!==void 0&&m.defaultProps?He(He({},d.type.defaultProps),d.props):d.props,g=y.stackId,z=y.hide;if(z)return p;var x=y[n],b=p[x]||{hasStack:!1,stackGroups:{}};if(Z2(g)){var w=b.stackGroups[g]||{numericAxisId:n,cateAxisId:a,items:[]};w.items.push(d),b.hasStack=!0,b.stackGroups[g]=w}else b.stackGroups[Sa("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[d]};return He(He({},p),{},Zc({},x,b))},l),h={};return Object.keys(f).reduce(function(p,d){var m=f[d];if(m.hasStack){var y={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(g,z){var x=m.stackGroups[z];return He(He({},g),{},Zc({},z,{numericAxisId:n,cateAxisId:a,items:x.items,stackedData:ww1(t,x.items,i)}))},y)}return He(He({},p),{},Zc({},d,m))},h)},UK=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,c=r.originalDomain,o=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&c&&(c[0]==="auto"||c[1]==="auto")){var f=t.domain();if(!f.length)return null;var h=QM(f,i,o);return t.domain([(0,Tl.default)(h),(0,Ol.default)(h)]),{niceTicks:h}}if(i&&a==="number"){var p=t.domain(),d=JM(p,i,o);return{niceTicks:d}}return null};var qK=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?He(He({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Z2(i)){var c=r[i];if(c){var o=c.items.indexOf(t);return o>=0?c.stackedData[o]:null}}return null},zw1=function(t){return t.reduce(function(r,n){return[(0,Tl.default)(n.concat([r[0]]).filter(I1)),(0,Ol.default)(n.concat([r[1]]).filter(I1))]},[1/0,-1/0])},oC=function(t,r,n){return Object.keys(t).reduce(function(a,i){var c=t[i],o=c.stackedData,l=o.reduce(function(f,h){var p=zw1(h.slice(r,n+1));return[Math.min(f[0],p[0]),Math.max(f[1],p[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},SK=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LK=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hp=function(t,r,n){if((0,Qc.default)(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(I1(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(SK.test(t[0])){var i=+SK.exec(t[0])[1];a[0]=r[0]-i}else(0,Qc.default)(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(I1(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(LK.test(t[1])){var c=+LK.exec(t[1])[1];a[1]=r[1]+c}else(0,Qc.default)(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},_p=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=(0,NK.default)(r,function(p){return p.coordinate}),c=1/0,o=1,l=i.length;oe.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},QK=function(t,r,n,a,i){var c=t.width,o=t.height,l=t.startAngle,f=t.endAngle,h=We(t.cx,c,c/2),p=We(t.cy,o,o/2),d=lC(c,o,n),m=We(t.innerRadius,d,0),y=We(t.outerRadius,d,d*.8),g=Object.keys(r);return g.reduce(function(z,x){var b=r[x],w=b.domain,A=b.reversed,M;if((0,YK.default)(b.range))a==="angleAxis"?M=[l,f]:a==="radiusAxis"&&(M=[m,y]),A&&(M=[M[1],M[0]]);else{M=b.range;var H=M,V=Hw1(H,2);l=V[0],f=V[1]}var T=BK(b,i),I=T.realScaleType,L=T.scale;L.domain(w).range(M),FK(L);var N=UK(L,p4(p4({},b),{},{realScaleType:I})),C=p4(p4(p4({},b),N),{},{range:M,radius:y,realScaleType:I,scale:L,cx:h,cy:p,innerRadius:m,outerRadius:y,startAngle:l,endAngle:f});return p4(p4({},z),{},$K({},x,C))},{})},Ew1=function(t,r){var n=t.x,a=t.y,i=r.x,c=r.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(a-c,2))},kw1=function(t,r){var n=t.x,a=t.y,i=r.cx,c=r.cy,o=Ew1({x:n,y:a},{x:i,y:c});if(o<=0)return{radius:o};var l=(n-i)/o,f=Math.acos(l);return a>c&&(f=2*Math.PI-f),{radius:o,angle:Aw1(f),angleInRadian:f}},Nw1=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),c=Math.min(a,i);return{startAngle:r-c*360,endAngle:n-c*360}},Ow1=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),c=Math.floor(a/360),o=Math.min(i,c);return t+o*360},fC=function(t,r){var n=t.x,a=t.y,i=kw1({x:n,y:a},r),c=i.radius,o=i.angle,l=r.innerRadius,f=r.outerRadius;if(cf)return!1;if(c===0)return!0;var h=Nw1(r),p=h.startAngle,d=h.endAngle,m=o,y;if(p<=d){for(;m>d;)m-=360;for(;m=p&&m<=d}else{for(;m>p;)m-=360;for(;m=d&&m<=p}return y?p4(p4({},r),{},{radius:c,angle:Ow1(m,r)}):null},Sp=function(t){return!(0,XK.isValidElement)(t)&&!(0,ZK.default)(t)&&typeof t!="boolean"?t.className:""};function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}var Tw1=["offset"];function Pw1(e){return Bw1(e)||Dw1(e)||Rw1(e)||Iw1()}function Iw1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rw1(e,t){if(e){if(typeof e=="string")return uC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uC(e,t)}}function Dw1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bw1(e){if(Array.isArray(e))return uC(e)}function uC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jw1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function JK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t=0?1:-1,w,A;a==="insideStart"?(w=m+b*c,A=g):a==="insideEnd"?(w=y-b*c,A=!g):a==="end"&&(w=y+b*c,A=g),A=x<=0?A:!A;var M=w2(f,h,z,w),H=w2(f,h,z,w+(A?1:-1)*359),V="M".concat(M.x,",").concat(M.y,` A`).concat(z,",").concat(z,",0,1,").concat(A?0:1,`, `).concat(H.x,",").concat(H.y),T=(0,Fl.default)(t.id)?Sa("recharts-radial-line-"):t.id;return _e.default.createElement("text",Bl({},n,{dominantBaseline:"central",className:X1("recharts-radial-bar-label",o)}),_e.default.createElement("defs",null,_e.default.createElement("path",{id:T,d:V})),_e.default.createElement("textPath",{xlinkHref:"#".concat(T)},r))},Yw1=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,c=i.cx,o=i.cy,l=i.innerRadius,f=i.outerRadius,h=i.startAngle,p=i.endAngle,d=(h+p)/2;if(a==="outside"){var m=w2(c,o,f+n,d),y=m.x,g=m.y;return{x:y,y:g,textAnchor:y>=c?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:c,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:c,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:c,y:o,textAnchor:"middle",verticalAnchor:"end"};var z=(l+f)/2,x=w2(c,o,z,d),b=x.x,w=x.y;return{x:b,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Xw1=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,c=r,o=c.x,l=c.y,f=c.width,h=c.height,p=h>=0?1:-1,d=p*a,m=p>0?"end":"start",y=p>0?"start":"end",g=f>=0?1:-1,z=g*a,x=g>0?"end":"start",b=g>0?"start":"end";if(i==="top"){var w={x:o+f/2,y:l-p*a,textAnchor:"middle",verticalAnchor:m};return Ke(Ke({},w),n?{height:Math.max(l-n.y,0),width:f}:{})}if(i==="bottom"){var A={x:o+f/2,y:l+h+d,textAnchor:"middle",verticalAnchor:y};return Ke(Ke({},A),n?{height:Math.max(n.y+n.height-(l+h),0),width:f}:{})}if(i==="left"){var M={x:o-z,y:l+h/2,textAnchor:x,verticalAnchor:"middle"};return Ke(Ke({},M),n?{width:Math.max(M.x-n.x,0),height:h}:{})}if(i==="right"){var H={x:o+f+z,y:l+h/2,textAnchor:b,verticalAnchor:"middle"};return Ke(Ke({},H),n?{width:Math.max(n.x+n.width-H.x,0),height:h}:{})}var V=n?{width:f,height:h}:{};return i==="insideLeft"?Ke({x:o+z,y:l+h/2,textAnchor:b,verticalAnchor:"middle"},V):i==="insideRight"?Ke({x:o+f-z,y:l+h/2,textAnchor:x,verticalAnchor:"middle"},V):i==="insideTop"?Ke({x:o+f/2,y:l+d,textAnchor:"middle",verticalAnchor:y},V):i==="insideBottom"?Ke({x:o+f/2,y:l+h-d,textAnchor:"middle",verticalAnchor:m},V):i==="insideTopLeft"?Ke({x:o+z,y:l+d,textAnchor:b,verticalAnchor:y},V):i==="insideTopRight"?Ke({x:o+f-z,y:l+d,textAnchor:x,verticalAnchor:y},V):i==="insideBottomLeft"?Ke({x:o+z,y:l+h-d,textAnchor:b,verticalAnchor:m},V):i==="insideBottomRight"?Ke({x:o+f-z,y:l+h-d,textAnchor:x,verticalAnchor:m},V):(0,hC.default)(i)&&(I1(i.x)||i4(i.x))&&(I1(i.y)||i4(i.y))?Ke({x:o+We(i.x,f),y:l+We(i.y,h),textAnchor:"end",verticalAnchor:"end"},V):Ke({x:o+f/2,y:l+h/2,textAnchor:"middle",verticalAnchor:"middle"},V)},Zw1=function(t){return"cx"in t&&I1(t.cx)};function ge(e){var t=e.offset,r=t===void 0?5:t,n=Fw1(e,Tw1),a=Ke({offset:r},n),i=a.viewBox,c=a.position,o=a.value,l=a.children,f=a.content,h=a.className,p=h===void 0?"":h,d=a.textBreakAll;if(!i||(0,Fl.default)(o)&&(0,Fl.default)(l)&&!(0,_e.isValidElement)(f)&&!(0,jl.default)(f))return null;if((0,_e.isValidElement)(f))return(0,_e.cloneElement)(f,a);var m;if((0,jl.default)(f)){if(m=(0,_e.createElement)(f,a),(0,_e.isValidElement)(m))return m}else m=Gw1(a);var y=Zw1(i),g=G1(a,!0);if(y&&(c==="insideStart"||c==="insideEnd"||c==="end"))return $w1(a,m,g);var z=y?Yw1(a):Xw1(a);return _e.default.createElement(Tn,Bl({className:X1("recharts-label",p)},g,z,{breakAll:d}),m)}ge.displayName="Label";var e$=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,c=t.endAngle,o=t.r,l=t.radius,f=t.innerRadius,h=t.outerRadius,p=t.x,d=t.y,m=t.top,y=t.left,g=t.width,z=t.height,x=t.clockWise,b=t.labelViewBox;if(b)return b;if(I1(g)&&I1(z)){if(I1(p)&&I1(d))return{x:p,y:d,width:g,height:z};if(I1(m)&&I1(y))return{x:m,y,width:g,height:z}}return I1(p)&&I1(d)?{x:p,y:d,width:0,height:0}:I1(r)&&I1(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:c||a||0,innerRadius:f||0,outerRadius:h||l||o||0,clockWise:x}:t.viewBox?t.viewBox:{}},Qw1=function(t,r){return t?t===!0?_e.default.createElement(ge,{key:"label-implicit",viewBox:r}):Z2(t)?_e.default.createElement(ge,{key:"label-implicit",viewBox:r,value:t}):(0,_e.isValidElement)(t)?t.type===ge?(0,_e.cloneElement)(t,{key:"label-implicit",viewBox:r}):_e.default.createElement(ge,{key:"label-implicit",content:t,viewBox:r}):(0,jl.default)(t)?_e.default.createElement(ge,{key:"label-implicit",content:t,viewBox:r}):(0,hC.default)(t)?_e.default.createElement(ge,Bl({viewBox:r},t,{key:"label-implicit"})):null:null},Jw1=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=e$(t),c=Ht(a,ge).map(function(l,f){return(0,_e.cloneElement)(l,{viewBox:r||i,key:"label-".concat(f)})});if(!n)return c;var o=Qw1(t.label,r||i);return[o].concat(Pw1(c))};ge.parseViewBox=e$;ge.renderCallByParent=Jw1;var d4=p1(Z1()),Lp=p1(m3()),c$=p1(en()),o$=p1(Ie()),s$=p1(r$());function Ul(e){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ul(e)}var tz1=["valueAccessor"],rz1=["data","dataKey","clockWise","id","textBreakAll"];function nz1(e){return oz1(e)||cz1(e)||iz1(e)||az1()}function az1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iz1(e,t){if(e){if(typeof e=="string")return pC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pC(e,t)}}function cz1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oz1(e){if(Array.isArray(e))return pC(e)}function pC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uz1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hz1=function(t){return Array.isArray(t.value)?(0,s$.default)(t.value):t.value};function Ba(e){var t=e.valueAccessor,r=t===void 0?hz1:t,n=i$(e,tz1),a=n.data,i=n.dataKey,c=n.clockWise,o=n.id,l=n.textBreakAll,f=i$(n,rz1);return!a||!a.length?null:d4.default.createElement(H2,{className:"recharts-label-list"},a.map(function(h,p){var d=(0,Lp.default)(i)?r(h,p):_t(h&&h.payload,i),m=(0,Lp.default)(o)?{}:{id:"".concat(o,"-").concat(p)};return d4.default.createElement(ge,Vp({},G1(h,!0),f,m,{parentViewBox:h.parentViewBox,value:d,textBreakAll:l,viewBox:ge.parseViewBox((0,Lp.default)(c)?h:a$(a$({},h),{},{clockWise:c})),key:"label-".concat(p),index:p}))}))}Ba.displayName="LabelList";function pz1(e,t){return e?e===!0?d4.default.createElement(Ba,{key:"labelList-implicit",data:t}):d4.default.isValidElement(e)||(0,o$.default)(e)?d4.default.createElement(Ba,{key:"labelList-implicit",data:t,content:e}):(0,c$.default)(e)?d4.default.createElement(Ba,Vp({data:t},e,{key:"labelList-implicit"})):null:null}function dz1(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=Ht(n,Ba).map(function(c,o){return(0,d4.cloneElement)(c,{data:t,key:"labelList-".concat(o)})});if(!r)return a;var i=pz1(e.label,t);return[i].concat(nz1(a))}Ba.renderCallByParent=dz1;var u$=p1(Z1());function ql(e){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ql(e)}function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(c>f),`, `).concat(p.x,",").concat(p.y,` `);if(a>0){var m=w2(r,n,a,c),y=w2(r,n,a,f);d+="L ".concat(y.x,",").concat(y.y,` A `).concat(a,",").concat(a,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(c<=f),`, `).concat(m.x,",").concat(m.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},xz1=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,c=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,f=t.startAngle,h=t.endAngle,p=Ct(h-f),d=Ap({cx:r,cy:n,radius:i,angle:f,sign:p,cornerRadius:c,cornerIsExternal:l}),m=d.circleTangency,y=d.lineTangency,g=d.theta,z=Ap({cx:r,cy:n,radius:i,angle:h,sign:-p,cornerRadius:c,cornerIsExternal:l}),x=z.circleTangency,b=z.lineTangency,w=z.theta,A=l?Math.abs(f-h):Math.abs(f-h)-g-w;if(A<0)return o?"M ".concat(y.x,",").concat(y.y,` a`).concat(c,",").concat(c,",0,0,1,").concat(c*2,`,0 a`).concat(c,",").concat(c,",0,0,1,").concat(-c*2,`,0 `):h$({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:f,endAngle:h});var M="M ".concat(y.x,",").concat(y.y,` A`).concat(c,",").concat(c,",0,0,").concat(+(p<0),",").concat(m.x,",").concat(m.y,` A`).concat(i,",").concat(i,",0,").concat(+(A>180),",").concat(+(p<0),",").concat(x.x,",").concat(x.y,` A`).concat(c,",").concat(c,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,` `);if(a>0){var H=Ap({cx:r,cy:n,radius:a,angle:f,sign:p,isExternal:!0,cornerRadius:c,cornerIsExternal:l}),V=H.circleTangency,T=H.lineTangency,I=H.theta,L=Ap({cx:r,cy:n,radius:a,angle:h,sign:-p,isExternal:!0,cornerRadius:c,cornerIsExternal:l}),N=L.circleTangency,C=L.lineTangency,q=L.theta,J=l?Math.abs(f-h):Math.abs(f-h)-I-q;if(J<0&&c===0)return"".concat(M,"L").concat(r,",").concat(n,"Z");M+="L".concat(C.x,",").concat(C.y,` A`).concat(c,",").concat(c,",0,0,").concat(+(p<0),",").concat(N.x,",").concat(N.y,` A`).concat(a,",").concat(a,",0,").concat(+(J>180),",").concat(+(p>0),",").concat(V.x,",").concat(V.y,` A`).concat(c,",").concat(c,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,"Z")}else M+="L".concat(r,",").concat(n,"Z");return M},bz1={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Ep=function(t){var r=f$(f$({},bz1),t),n=r.cx,a=r.cy,i=r.innerRadius,c=r.outerRadius,o=r.cornerRadius,l=r.forceCornerRadius,f=r.cornerIsExternal,h=r.startAngle,p=r.endAngle,d=r.className;if(c0&&Math.abs(h-p)<360?z=xz1({cx:n,cy:a,innerRadius:i,outerRadius:c,cornerRadius:Math.min(g,y/2),forceCornerRadius:l,cornerIsExternal:f,startAngle:h,endAngle:p}):z=h$({cx:n,cy:a,innerRadius:i,outerRadius:c,startAngle:h,endAngle:p}),u$.default.createElement("path",dC({},G1(r,!0),{className:m,d:z,role:"img"}))};var v$=p1(Z1());var g$=p1(ch()),y$=p1(Ie());function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}function mC(){return mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function Oz1(e,t){return w6(e.getTime(),t.getTime())}function Tz1(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Pz1(e,t){return e===t}function M$(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.entries(),c,o,l=0;(c=i.next())&&!c.done;){for(var f=t.entries(),h=!1,p=0;(o=f.next())&&!o.done;){if(a[p]){p++;continue}var d=c.value,m=o.value;if(r.equals(d[0],m[0],l,p,e,t,r)&&r.equals(d[1],m[1],d[0],m[0],e,t,r)){h=a[p]=!0;break}p++}if(!h)return!1;l++}return!0}var Iz1=w6;function Rz1(e,t,r){var n=z$(e),a=n.length;if(z$(t).length!==a)return!1;for(;a-- >0;)if(!S$(e,t,r,n[a]))return!1;return!0}function Yl(e,t,r){var n=b$(e),a=n.length;if(b$(t).length!==a)return!1;for(var i,c,o;a-- >0;)if(i=n[a],!S$(e,t,r,i)||(c=w$(e,i),o=w$(t,i),(c||o)&&(!c||!o||c.configurable!==o.configurable||c.enumerable!==o.enumerable||c.writable!==o.writable)))return!1;return!0}function Dz1(e,t){return w6(e.valueOf(),t.valueOf())}function Bz1(e,t){return e.source===t.source&&e.flags===t.flags}function C$(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),i=e.values(),c,o;(c=i.next())&&!c.done;){for(var l=t.values(),f=!1,h=0;(o=l.next())&&!o.done;){if(!a[h]&&r.equals(c.value,o.value,c.value,o.value,e,t,r)){f=a[h]=!0;break}h++}if(!f)return!1}return!0}function Fz1(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function jz1(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function S$(e,t,r,n){return(n===kz1||n===Ez1||n===Az1)&&(e.$$typeof||t.$$typeof)?!0:Vz1(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var Uz1="[object Arguments]",qz1="[object Boolean]",Wz1="[object Date]",Gz1="[object Error]",Kz1="[object Map]",$z1="[object Number]",Yz1="[object Object]",Xz1="[object RegExp]",Zz1="[object Set]",Qz1="[object String]",Jz1="[object URL]",eM1=Array.isArray,H$=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,_$=Object.assign,tM1=Object.prototype.toString.call.bind(Object.prototype.toString);function rM1(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,c=e.areNumbersEqual,o=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,f=e.areRegExpsEqual,h=e.areSetsEqual,p=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,g,z){if(y===g)return!0;if(y==null||g==null)return!1;var x=typeof y;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?c(y,g,z):x==="function"?a(y,g,z):!1;var b=y.constructor;if(b!==g.constructor)return!1;if(b===Object)return o(y,g,z);if(eM1(y))return t(y,g,z);if(H$!=null&&H$(y))return p(y,g,z);if(b===Date)return r(y,g,z);if(b===RegExp)return f(y,g,z);if(b===Map)return i(y,g,z);if(b===Set)return h(y,g,z);var w=tM1(y);return w===Wz1?r(y,g,z):w===Xz1?f(y,g,z):w===Kz1?i(y,g,z):w===Zz1?h(y,g,z):w===Yz1?typeof y.then!="function"&&typeof g.then!="function"&&o(y,g,z):w===Jz1?d(y,g,z):w===Gz1?n(y,g,z):w===Uz1?o(y,g,z):w===qz1||w===$z1||w===Qz1?l(y,g,z):!1}}function nM1(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Yl:Nz1,areDatesEqual:Oz1,areErrorsEqual:Tz1,areFunctionsEqual:Pz1,areMapsEqual:n?x$(M$,Yl):M$,areNumbersEqual:Iz1,areObjectsEqual:n?Yl:Rz1,arePrimitiveWrappersEqual:Dz1,areRegExpsEqual:Bz1,areSetsEqual:n?x$(C$,Yl):C$,areTypedArraysEqual:n?Yl:Fz1,areUrlsEqual:jz1};if(r&&(a=_$({},a,r(a))),t){var i=Np(a.areArraysEqual),c=Np(a.areMapsEqual),o=Np(a.areObjectsEqual),l=Np(a.areSetsEqual);a=_$({},a,{areArraysEqual:i,areMapsEqual:c,areObjectsEqual:o,areSetsEqual:l})}return a}function aM1(e){return function(t,r,n,a,i,c,o){return e(t,r,o)}}function iM1(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,f){var h=n(),p=h.cache,d=p===void 0?t?new WeakMap:void 0:p,m=h.meta;return r(l,f,{cache:d,equals:a,meta:m,strict:i})};if(t)return function(l,f){return r(l,f,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var c={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,f){return r(l,f,c)}}var L$=Fa(),Hq1=Fa({strict:!0}),_q1=Fa({circular:!0}),Sq1=Fa({circular:!0,strict:!0}),Lq1=Fa({createInternalComparator:function(){return w6}}),Vq1=Fa({strict:!0,createInternalComparator:function(){return w6}}),Aq1=Fa({circular:!0,createInternalComparator:function(){return w6}}),Eq1=Fa({circular:!0,createInternalComparator:function(){return w6},strict:!0});function Fa(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,c=i===void 0?!1:i,o=nM1(e),l=rM1(o),f=n?n(l):aM1(l);return iM1({circular:r,comparator:l,createState:a,equals:f,strict:c})}function cM1(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Op(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):cM1(a)};requestAnimationFrame(n)}function vC(e){"@babel/helpers - typeof";return vC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vC(e)}function oM1(e){return uM1(e)||fM1(e)||lM1(e)||sM1()}function sM1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lM1(e,t){if(e){if(typeof e=="string")return V$(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V$(e,t)}}function V$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&z<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=T$(a,c),d=T$(i,o),m=CM1(a,c),y=function(x){return x>1?1:x<0?0:x},g=function(x){for(var b=x>1?1:x,w=b,A=0;A<8;++A){var M=p(w)-b,H=m(w);if(Math.abs(M-b)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,c=t.dt,o=c===void 0?17:c,l=function(h,p,d){var m=-(h-p)*n,y=d*i,g=d+(m-y)*o/1e3,z=d*o/1e3+h;return Math.abs(z-p)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RM1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function MC(e){return jM1(e)||FM1(e)||BM1(e)||DM1()}function DM1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BM1(e,t){if(e){if(typeof e=="string")return CC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CC(e,t)}}function FM1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jM1(e){if(Array.isArray(e))return CC(e)}function CC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ip(e){return Ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ip(e)}var Rp=function(e){GM1(r,e);var t=KM1(r);function r(n,a){var i;UM1(this,r),i=t.call(this,n,a);var c=i.props,o=c.isActive,l=c.attributeName,f=c.from,h=c.to,p=c.steps,d=c.children,m=c.duration;if(i.handleStyleChange=i.handleStyleChange.bind(SC(i)),i.changeStyle=i.changeStyle.bind(SC(i)),!o||m<=0)return i.state={style:{}},typeof d=="function"&&(i.state={style:h}),_C(i);if(p&&p.length)i.state={style:p[0].style};else if(f){if(typeof d=="function")return i.state={style:f},_C(i);i.state={style:l?Jl({},l,f):f}}else i.state={style:{}};return i}return qM1(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,c=a.canBegin;this.mounted=!0,!(!i||!c)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,c=i.isActive,o=i.canBegin,l=i.attributeName,f=i.shouldReAnimate,h=i.to,p=i.from,d=this.state.style;if(o){if(!c){var m={style:l?Jl({},l,h):h};this.state&&d&&(l&&d[l]!==h||!l&&d!==h)&&this.setState(m);return}if(!(L$(a.to,h)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=y||f?p:a.to;if(this.state&&d){var z={style:l?Jl({},l,g):g};(l&&d[l]!==g||!l&&d!==g)&&this.setState(z)}this.runAnimation(Rn(Rn({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,c=a.from,o=a.to,l=a.duration,f=a.easing,h=a.begin,p=a.onAnimationEnd,d=a.onAnimationStart,m=q$(c,o,B$(f),l,this.changeStyle),y=function(){i.stopJSAnimation=m()};this.manager.start([d,h,y,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,c=a.steps,o=a.begin,l=a.onAnimationStart,f=c[0],h=f.style,p=f.duration,d=p===void 0?0:p,m=function(g,z,x){if(x===0)return g;var b=z.duration,w=z.easing,A=w===void 0?"ease":w,M=z.style,H=z.properties,V=z.onAnimationEnd,T=x>0?c[x-1]:z,I=H||Object.keys(M);if(typeof A=="function"||A==="spring")return[].concat(MC(g),[i.runJSAnimation.bind(i,{from:T.style,to:M,duration:b,easing:A}),b]);var L=yC(I,b,A),N=Rn(Rn(Rn({},T.style),M),{},{transition:L});return[].concat(MC(g),[N,b,V]).filter(O$)};return this.manager.start([l].concat(MC(c.reduce(m,[h,Math.max(d,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=gC());var i=a.begin,c=a.duration,o=a.attributeName,l=a.to,f=a.easing,h=a.onAnimationStart,p=a.onAnimationEnd,d=a.steps,m=a.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof f=="function"||typeof m=="function"||f==="spring"){this.runJSAnimation(a);return}if(d.length>1){this.runStepAnimation(a);return}var g=o?Jl({},o,l):l,z=yC(Object.keys(g),c,f);y.start([h,i,Rn(Rn({},g),{},{transition:z}),c,p])}},{key:"render",value:function(){var a=this.props,i=a.children,c=a.begin,o=a.duration,l=a.attributeName,f=a.easing,h=a.isActive,p=a.steps,d=a.from,m=a.to,y=a.canBegin,g=a.onAnimationEnd,z=a.shouldReAnimate,x=a.onAnimationReStart,b=IM1(a,PM1),w=M3.Children.count(i),A=this.state.style;if(typeof i=="function")return i(A);if(!h||w===0||o<=0)return i;var M=function(V){var T=V.props,I=T.style,L=I===void 0?{}:I,N=T.className,C=(0,M3.cloneElement)(V,Rn(Rn({},b),{},{style:Rn(Rn({},L),A),className:N}));return C};return w===1?M(M3.Children.only(i)):M3.default.createElement("div",null,M3.Children.map(i,function(H){return M(H)}))}}]),r}(M3.PureComponent);Rp.displayName="Animate";Rp.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Rp.propTypes={from:k2.default.oneOfType([k2.default.object,k2.default.string]),to:k2.default.oneOfType([k2.default.object,k2.default.string]),attributeName:k2.default.string,duration:k2.default.number,begin:k2.default.number,easing:k2.default.oneOfType([k2.default.string,k2.default.func]),steps:k2.default.arrayOf(k2.default.shape({duration:k2.default.number.isRequired,style:k2.default.object.isRequired,easing:k2.default.oneOfType([k2.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),k2.default.func]),properties:k2.default.arrayOf("string"),onAnimationEnd:k2.default.func})),children:k2.default.oneOfType([k2.default.node,k2.default.func]),isActive:k2.default.bool,canBegin:k2.default.bool,onAnimationEnd:k2.default.func,shouldReAnimate:k2.default.bool,onAnimationStart:k2.default.func,onAnimationReStart:k2.default.func};var $$=Rp;var ja=$$;function e5(e){"@babel/helpers - typeof";return e5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e5(e)}function Dp(){return Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,f=a>=0&&n>=0||a<0&&n<0?1:0,h;if(c>0&&i instanceof Array){for(var p=[0,0,0,0],d=0,m=4;dc?c:i[d];h="M".concat(t,",").concat(r+o*p[0]),p[0]>0&&(h+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(f,",").concat(t+l*p[0],",").concat(r)),h+="L ".concat(t+n-l*p[1],",").concat(r),p[1]>0&&(h+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(f,`, `).concat(t+n,",").concat(r+o*p[1])),h+="L ".concat(t+n,",").concat(r+a-o*p[2]),p[2]>0&&(h+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(f,`, `).concat(t+n-l*p[2],",").concat(r+a)),h+="L ".concat(t+l*p[3],",").concat(r+a),p[3]>0&&(h+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(f,`, `).concat(t,",").concat(r+a-o*p[3])),h+="Z"}else if(c>0&&i===+i&&i>0){var y=Math.min(c,i);h="M ".concat(t,",").concat(r+o*y,` A `).concat(y,",").concat(y,",0,0,").concat(f,",").concat(t+l*y,",").concat(r,` L `).concat(t+n-l*y,",").concat(r,` A `).concat(y,",").concat(y,",0,0,").concat(f,",").concat(t+n,",").concat(r+o*y,` L `).concat(t+n,",").concat(r+a-o*y,` A `).concat(y,",").concat(y,",0,0,").concat(f,",").concat(t+n-l*y,",").concat(r+a,` L `).concat(t+l*y,",").concat(r+a,` A `).concat(y,",").concat(y,",0,0,").concat(f,",").concat(t,",").concat(r+a-o*y," Z")}else h="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return h},J$=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,c=r.y,o=r.width,l=r.height;if(Math.abs(o)>0&&Math.abs(l)>0){var f=Math.min(i,i+o),h=Math.max(i,i+o),p=Math.min(c,c+l),d=Math.max(c,c+l);return n>=f&&n<=h&&a>=p&&a<=d}return!1},nC1={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},no=function(t){var r=Z$(Z$({},nC1),t),n=(0,Dn.useRef)(),a=(0,Dn.useState)(-1),i=YM1(a,2),c=i[0],o=i[1];(0,Dn.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&o(A)}catch{}},[]);var l=r.x,f=r.y,h=r.width,p=r.height,d=r.radius,m=r.className,y=r.animationEasing,g=r.animationDuration,z=r.animationBegin,x=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||f!==+f||h!==+h||p!==+p||h===0||p===0)return null;var w=X1("recharts-rectangle",m);return b?Dn.default.createElement(ja,{canBegin:c>0,from:{width:h,height:p,x:l,y:f},to:{width:h,height:p,x:l,y:f},duration:g,animationEasing:y,isActive:b},function(A){var M=A.width,H=A.height,V=A.x,T=A.y;return Dn.default.createElement(ja,{canBegin:c>0,from:"0px ".concat(c===-1?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:z,duration:g,isActive:x,easing:y},Dn.default.createElement("path",Dp({},G1(r,!0),{className:w,d:Q$(V,T,M,H,d),ref:n})))}):Dn.default.createElement("path",Dp({},G1(r,!0),{className:w,d:Q$(l,f,h,p,d)}))};var ao=p1(Z1());var aC1=["points","className","baseLinePoints","connectNulls"];function io(){return io=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cC1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function eY(e){return fC1(e)||lC1(e)||sC1(e)||oC1()}function oC1(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sC1(e,t){if(e){if(typeof e=="string")return LC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LC(e,t)}}function lC1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fC1(e){if(Array.isArray(e))return LC(e)}function LC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){tY(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),tY(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},t5=function(t,r){var n=uC1(t);r&&(n=[n.reduce(function(i,c){return[].concat(eY(i),eY(c))},[])]);var a=n.map(function(i){return i.reduce(function(c,o,l){return"".concat(c).concat(l===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return n.length===1?"".concat(a,"Z"):a},hC1=function(t,r,n){var a=t5(t,n);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(t5(r.reverse(),n).slice(1))},rY=function(t){var r=t.points,n=t.className,a=t.baseLinePoints,i=t.connectNulls,c=iC1(t,aC1);if(!r||!r.length)return null;var o=X1("recharts-polygon",n);if(a&&a.length){var l=c.stroke&&c.stroke!=="none",f=hC1(r,a,i);return ao.default.createElement("g",{className:o},ao.default.createElement("path",io({},G1(c,!0),{fill:f.slice(-1)==="Z"?c.fill:"none",stroke:"none",d:f})),l?ao.default.createElement("path",io({},G1(c,!0),{fill:"none",d:t5(r,i)})):null,l?ao.default.createElement("path",io({},G1(c,!0),{fill:"none",d:t5(a,i)})):null)}var h=t5(r,i);return ao.default.createElement("path",io({},G1(c,!0),{fill:h.slice(-1)==="Z"?c.fill:"none",className:o,d:h}))};var nY=p1(Z1());function VC(){return VC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xC1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var bC1=function(t,r,n,a,i,c){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(c,",").concat(r,"h").concat(n)},cY=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,c=t.top,o=c===void 0?0:c,l=t.left,f=l===void 0?0:l,h=t.width,p=h===void 0?0:h,d=t.height,m=d===void 0?0:d,y=t.className,g=yC1(t,pC1),z=dC1({x:n,y:i,top:o,left:f,width:p,height:m},g);return!I1(n)||!I1(i)||!I1(p)||!I1(m)||!I1(o)||!I1(f)?null:iY.default.createElement("path",AC({},G1(z,!0),{className:X1("recharts-cross",y),d:bC1(n,i,p,m,o,f)}))};var C3=p1(Z1()),vY=p1(sY()),gY=p1(fY()),yY=p1(Ie());var VC1=["cx","cy","angle","ticks","axisLine"],AC1=["ticks","tick","angle","tickFormatter","stroke"];function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function n5(){return n5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EC1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kC1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pY(e,t){for(var r=0;rwY?c=a==="outer"?"start":"end":i<-wY?c=a==="outer"?"end":"start":c="middle",c}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.cx,i=n.cy,c=n.radius,o=n.axisLine,l=n.axisLineType,f=M6(M6({},G1(this.props,!1)),{},{fill:"none"},G1(o,!1));if(l==="circle")return fn.default.createElement(co,C6({className:"recharts-polar-angle-axis-line"},f,{cx:a,cy:i,r:c}));var h=this.props.ticks,p=h.map(function(d){return w2(a,i,c,d.coordinate)});return fn.default.createElement(rY,C6({className:"recharts-polar-angle-axis-line"},f,{points:p}))}},{key:"renderTicks",value:function(){var n=this,a=this.props,i=a.ticks,c=a.tick,o=a.tickLine,l=a.tickFormatter,f=a.stroke,h=G1(this.props,!1),p=G1(c,!1),d=M6(M6({},h),{},{fill:"none"},G1(o,!1)),m=i.map(function(y,g){var z=n.getTickLineCoord(y),x=n.getTickTextAnchor(y),b=M6(M6(M6({textAnchor:x},h),{},{stroke:"none",fill:f},p),{},{index:g,payload:y,x:z.x2,y:z.y2});return fn.default.createElement(H2,C6({className:X1("recharts-polar-angle-axis-tick",Sp(c)),key:"tick-".concat(y.coordinate)},La(n.props,y,g)),o&&fn.default.createElement("line",C6({className:"recharts-polar-angle-axis-tick-line"},d,z)),c&&t.renderTickItem(c,b,l?l(y.value,g):y.value))});return fn.default.createElement(H2,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,a=n.ticks,i=n.radius,c=n.axisLine;return i<=0||!a||!a.length?null:fn.default.createElement(H2,{className:X1("recharts-polar-angle-axis",this.props.className)},c&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,a,i){var c;return fn.default.isValidElement(n)?c=fn.default.cloneElement(n,a):(0,CY.default)(n)?c=n(a):c=fn.default.createElement(Tn,C6({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),c}}])}(fn.PureComponent);Up(i5,"displayName","PolarAngleAxis");Up(i5,"axisType","angleAxis");Up(i5,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var ut=p1(Z1());var YY=p1(Zi()),XY=p1(gp()),H6=p1(m3()),fo=p1(Ie());var Lr=p1(Z1()),DY=p1(Ie()),BY=p1(VY()),FY=p1(EY()),jY=p1(gp());var un=p1(Z1());function c5(e){"@babel/helpers - typeof";return c5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c5(e)}function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:f},to:{upperWidth:h,lowerWidth:p,height:d,x:l,y:f},duration:g,animationEasing:y,isActive:x},function(w){var A=w.upperWidth,M=w.lowerWidth,H=w.height,V=w.x,T=w.y;return un.default.createElement(ja,{canBegin:c>0,from:"0px ".concat(c===-1?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:z,duration:g,easing:y},un.default.createElement("path",qp({},G1(r,!0),{className:b,d:TY(V,T,A,M,H),ref:n})))}):un.default.createElement("g",null,un.default.createElement("path",qp({},G1(r,!0),{className:b,d:TY(l,f,h,p,d)})))};var gH1=["option","shapeType","propTransformer","activeClassName","isActive"];function o5(e){"@babel/helpers - typeof";return o5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o5(e)}function yH1(e,t){if(e==null)return{};var r=xH1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xH1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Wp(e){for(var t=1;t0?(0,YY.default)(w,"paddingAngle",0):0;if(M){var V=Mw(M.endAngle-M.startAngle,w.endAngle-w.startAngle),T=Q2(Q2({},w),{},{startAngle:b+H,endAngle:b+V(g)+H});z.push(T),b=T.endAngle}else{var I=w.endAngle,L=w.startAngle,N=Mw(0,I-L),C=N(g),q=Q2(Q2({},w),{},{startAngle:b+H,endAngle:b+C+H});z.push(q),b=q.endAngle}}),ut.default.createElement(H2,null,n.renderSectorsStatically(z))})}},{key:"attachKeyboardHandlers",value:function(n){var a=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var c=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}default:}}}},{key:"renderSectors",value:function(){var n=this.props,a=n.sectors,i=n.isAnimationActive,c=this.state.prevSectors;return i&&a&&a.length&&(!c||!(0,XY.default)(c,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,a=this.props,i=a.hide,c=a.sectors,o=a.className,l=a.label,f=a.cx,h=a.cy,p=a.innerRadius,d=a.outerRadius,m=a.isAnimationActive,y=this.state.isAnimationFinished;if(i||!c||!c.length||!I1(f)||!I1(h)||!I1(p)||!I1(d))return null;var g=X1("recharts-pie",o);return ut.default.createElement(H2,{tabIndex:this.props.rootTabIndex,className:g,ref:function(x){n.pieRef=x}},this.renderSectors(),l&&this.renderLabels(c),ge.renderCallByParent(this.props,null,!1),(!m||y)&&Ba.renderCallByParent(this.props,c,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return a.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:n.sectors!==a.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,a){return n>a?"start":n=360?b:b-1)*l,A=z-b*m-w,M=a.reduce(function(T,I){var L=_t(I,x,0);return T+(I1(L)?L:0)},0),H;if(M>0){var V;H=a.map(function(T,I){var L=_t(T,x,0),N=_t(T,h,I),C=(I1(L)?L:0)/M,q;I?q=V.endAngle+Ct(g)*l*(L!==0?1:0):q=c;var J=q+Ct(g)*((L!==0?m:0)+C*A),$=(q+J)/2,E=(y.innerRadius+y.outerRadius)/2,O=[{name:N,value:L,payload:T,dataKey:x,type:d}],B=w2(y.cx,y.cy,E,$);return V=Q2(Q2(Q2({percent:C,cornerRadius:i,name:N,tooltipPayload:O,midAngle:$,middleRadius:E,tooltipPosition:B},T),y),{},{value:_t(T,x),startAngle:q,endAngle:J,payload:T,paddingAngle:Ct(g)*l}),V})}return Q2(Q2({},y),{},{sectors:H,data:a})});var Ee=p1(Z1());var DC=p1(Ie()),pX=p1(PC());function f5(e){"@babel/helpers - typeof";return f5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f5(e)}function aX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function iX(e){for(var t=1;t0&&n.handleDrag(a.changedTouches[0])}),Vr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,i=a.endIndex,c=a.onDragEnd,o=a.startIndex;c?.({endIndex:i,startIndex:o})}),n.detachDragEndListener()}),Vr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Vr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Vr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Vr(n,"handleSlideDragStart",function(a){var i=fX(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return a_1(t,e),e_1(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,i=n.endX,c=this.state.scaleValues,o=this.props,l=o.gap,f=o.data,h=f.length-1,p=Math.min(a,i),d=Math.max(a,i),m=t.getIndexInRange(c,p),y=t.getIndexInRange(c,d);return{startIndex:m-m%l,endIndex:y===h?h:y-y%l}}},{key:"getTextOfTick",value:function(n){var a=this.props,i=a.data,c=a.tickFormatter,o=a.dataKey,l=_t(i[n],o,n);return(0,DC.default)(c)?c(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,i=a.slideMoveStartX,c=a.startX,o=a.endX,l=this.props,f=l.x,h=l.width,p=l.travellerWidth,d=l.startIndex,m=l.endIndex,y=l.onChange,g=n.pageX-i;g>0?g=Math.min(g,f+h-p-o,f+h-p-c):g<0&&(g=Math.max(g,f-c,f-o));var z=this.getIndex({startX:c+g,endX:o+g});(z.startIndex!==d||z.endIndex!==m)&&y&&y(z),this.setState({startX:c+g,endX:o+g,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var i=fX(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,i=a.brushMoveStartX,c=a.movingTravellerId,o=a.endX,l=a.startX,f=this.state[c],h=this.props,p=h.x,d=h.width,m=h.travellerWidth,y=h.onChange,g=h.gap,z=h.data,x={startX:this.state.startX,endX:this.state.endX},b=n.pageX-i;b>0?b=Math.min(b,p+d-m-f):b<0&&(b=Math.max(b,p-f)),x[c]=f+b;var w=this.getIndex(x),A=w.startIndex,M=w.endIndex,H=function(){var T=z.length-1;return c==="startX"&&(o>l?A%g===0:M%g===0)||ol?M%g===0:A%g===0)||o>l&&M===T};this.setState(Vr(Vr({},c,f+b),"brushMoveStartX",n.pageX),function(){y&&H()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var i=this,c=this.state,o=c.scaleValues,l=c.startX,f=c.endX,h=this.state[a],p=o.indexOf(h);if(p!==-1){var d=p+n;if(!(d===-1||d>=o.length)){var m=o[d];a==="startX"&&m>=f||a==="endX"&&m<=l||this.setState(Vr({},a,m),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,i=n.y,c=n.width,o=n.height,l=n.fill,f=n.stroke;return Ee.default.createElement("rect",{stroke:f,fill:l,x:a,y:i,width:c,height:o})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,i=n.y,c=n.width,o=n.height,l=n.data,f=n.children,h=n.padding,p=Ee.Children.only(f);return p?Ee.default.cloneElement(p,{x:a,y:i,width:c,height:o,margin:h,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,a){var i,c,o=this,l=this.props,f=l.y,h=l.travellerWidth,p=l.height,d=l.traveller,m=l.ariaLabel,y=l.data,g=l.startIndex,z=l.endIndex,x=Math.max(n,this.props.x),b=IC(IC({},G1(this.props,!1)),{},{x,y:f,width:h,height:p}),w=m||"Min value: ".concat((i=y[g])===null||i===void 0?void 0:i.name,", Max value: ").concat((c=y[z])===null||c===void 0?void 0:c.name);return Ee.default.createElement(H2,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(M){["ArrowLeft","ArrowRight"].includes(M.key)&&(M.preventDefault(),M.stopPropagation(),o.handleTravellerMoveKeyboard(M.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,a){var i=this.props,c=i.y,o=i.height,l=i.stroke,f=i.travellerWidth,h=Math.min(n,a)+f,p=Math.max(Math.abs(a-n)-f,0);return Ee.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:h,y:c,width:p,height:o})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,i=n.endIndex,c=n.y,o=n.height,l=n.travellerWidth,f=n.stroke,h=this.state,p=h.startX,d=h.endX,m=5,y={pointerEvents:"none",fill:f};return Ee.default.createElement(H2,{className:"recharts-brush-texts"},Ee.default.createElement(Tn,$p({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,d)-m,y:c+o/2},y),this.getTextOfTick(a)),Ee.default.createElement(Tn,$p({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,d)+l+m,y:c+o/2},y),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,a=n.data,i=n.className,c=n.children,o=n.x,l=n.y,f=n.width,h=n.height,p=n.alwaysShowText,d=this.state,m=d.startX,y=d.endX,g=d.isTextActive,z=d.isSlideMoving,x=d.isTravellerMoving,b=d.isTravellerFocused;if(!a||!a.length||!I1(o)||!I1(l)||!I1(f)||!I1(h)||f<=0||h<=0)return null;var w=X1("recharts-brush",i),A=Ee.default.Children.count(c)===1,M=oX("userSelect","none");return Ee.default.createElement(H2,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:M},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(m,y),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(y,"endX"),(g||z||x||b||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,i=n.y,c=n.width,o=n.height,l=n.stroke,f=Math.floor(i+o/2)-1;return Ee.default.createElement(Ee.default.Fragment,null,Ee.default.createElement("rect",{x:a,y:i,width:c,height:o,fill:l,stroke:"none"}),Ee.default.createElement("line",{x1:a+1,y1:f,x2:a+c-1,y2:f,fill:"none",stroke:"#fff"}),Ee.default.createElement("line",{x1:a+1,y1:f+2,x2:a+c-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var i;return Ee.default.isValidElement(n)?i=Ee.default.cloneElement(n,a):(0,DC.default)(n)?i=n(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(n,a){var i=n.data,c=n.width,o=n.x,l=n.travellerWidth,f=n.updateId,h=n.startIndex,p=n.endIndex;if(i!==a.prevData||f!==a.prevUpdateId)return IC({prevData:i,prevTravellerWidth:l,prevUpdateId:f,prevX:o,prevWidth:c},i&&i.length?c_1({data:i,width:c,x:o,travellerWidth:l,startIndex:h,endIndex:p}):{scale:null,scaleValues:null});if(a.scale&&(c!==a.prevWidth||o!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([o,o+c-l]);var d=a.scale.domain().map(function(m){return a.scale(m)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:f,prevX:o,prevWidth:c,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,a){for(var i=n.length,c=0,o=i-1;o-c>1;){var l=Math.floor((c+o)/2);n[l]>a?o=l:c=l}return a>=n[o]?o:c}}])}(Ee.PureComponent);Vr(_6,"displayName","Brush");Vr(_6,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var S6=p1(Z1()),iZ=p1(Ie()),cZ=p1(gX());var sr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r};var EX=p1(zX()),kX=p1(BC());function u5(e){"@babel/helpers - typeof";return u5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u5(e)}function V_1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LX(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(r)+o}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])}();FC(OX,"EPS",1e-4);var mo=function(t){var r=Object.keys(t).reduce(function(n,a){return Xp(Xp({},n),{},FC({},a,OX.create(t[a])))},{});return Xp(Xp({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=i.bandAware,o=i.position;return(0,EX.default)(a,function(l,f){return r[f].apply(l,{bandAware:c,position:o})})},isInRange:function(a){return(0,kX.default)(a,function(i,c){return r[c].isInRange(i)})}})};var ke=p1(Z1());var G_1=p1(jX()),K_1=p1(BC());var UX=p1(mw()),qX=(0,UX.default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});var WX=(0,ke.createContext)(void 0),GX=(0,ke.createContext)(void 0),KX=(0,ke.createContext)(void 0),$_1=(0,ke.createContext)({}),$X=(0,ke.createContext)(void 0),Y_1=(0,ke.createContext)(0),X_1=(0,ke.createContext)(0),UC=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,i=r.offset,c=t.clipPathId,o=t.children,l=t.width,f=t.height,h=qX(i);return ke.default.createElement(WX.Provider,{value:n},ke.default.createElement(GX.Provider,{value:a},ke.default.createElement($_1.Provider,{value:i},ke.default.createElement(KX.Provider,{value:h},ke.default.createElement($X.Provider,{value:c},ke.default.createElement(Y_1.Provider,{value:f},ke.default.createElement(X_1.Provider,{value:l},o)))))))},YX=function(){return(0,ke.useContext)($X)};var XX=function(t){var r=(0,ke.useContext)(WX);r==null&&u4(!1);var n=r[t];return n==null&&u4(!1),n};var ZX=function(t){var r=(0,ke.useContext)(GX);r==null&&u4(!1);var n=r[t];return n==null&&u4(!1),n},QX=function(){var t=(0,ke.useContext)(KX);return t};function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function Z_1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JX(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WS1(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GS1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NZ(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?c:t&&t.length&&I1(a)&&I1(i)?t.slice(a,i+1):[]};function qZ(e){return e==="number"?[0,"auto"]:void 0}var rH=function(t,r,n,a){var i=t.graphicalItems,c=t.tooltipAxis,o=hd(r,t);return n<0||!i||!i.length||n>=o.length?null:i.reduce(function(l,f){var h,p=(h=f.props.data)!==null&&h!==void 0?h:r;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(c.dataKey&&!c.allowDuplicatedCategory){var m=p===void 0?o:p;d=F8(m,c.dataKey,a)}else d=p&&p[n]||o[n];return d?[].concat(_o(l),[WK(f,d)]):l},[])},TZ=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},c=aL1(i,n),o=t.orderedTooltipTicks,l=t.tooltipAxis,f=t.tooltipTicks,h=OK(c,o,f,l);if(h>=0&&f){var p=f[h]&&f[h].value,d=rH(t,r,h,p),m=iL1(n,o,h,i);return{activeTooltipIndex:h,activeLabel:p,activePayload:d,activeCoordinate:m}}return null},cL1=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,c=r.axisIdKey,o=r.stackGroups,l=r.dataStartIndex,f=r.dataEndIndex,h=t.layout,p=t.children,d=t.stackOffset,m=cC(h,i);return n.reduce(function(y,g){var z,x=g.type.defaultProps!==void 0?x1(x1({},g.type.defaultProps),g.props):g.props,b=x.type,w=x.dataKey,A=x.allowDataOverflow,M=x.allowDuplicatedCategory,H=x.scale,V=x.ticks,T=x.includeHidden,I=x[c];if(y[I])return y;var L=hd(t.data,{graphicalItems:a.filter(function(Y){var Z,h1=c in Y.props?Y.props[c]:(Z=Y.type.defaultProps)===null||Z===void 0?void 0:Z[c];return h1===I}),dataStartIndex:l,dataEndIndex:f}),N=L.length,C,q,J;_Z(x.domain,A,b)&&(C=Hp(x.domain,null,A),m&&(b==="number"||H!=="auto")&&(J=Jc(L,w,"category")));var $=qZ(b);if(!C||C.length===0){var E,O=(E=x.domain)!==null&&E!==void 0?E:$;if(w){if(C=Jc(L,w,b),b==="category"&&m){var B=XD(C);M&&B?(q=C,C=(0,ud.default)(0,N)):M||(C=sC(O,C,g).reduce(function(Y,Z){return Y.indexOf(Z)>=0?Y:[].concat(_o(Y),[Z])},[]))}else if(b==="category")M?C=C.filter(function(Y){return Y!==""&&!(0,Mo.default)(Y)}):C=sC(O,C,g).reduce(function(Y,Z){return Y.indexOf(Z)>=0||Z===""||(0,Mo.default)(Z)?Y:[].concat(_o(Y),[Z])},[]);else if(b==="number"){var k=DK(L,a.filter(function(Y){var Z,h1,S1=c in Y.props?Y.props[c]:(Z=Y.type.defaultProps)===null||Z===void 0?void 0:Z[c],v1="hide"in Y.props?Y.props.hide:(h1=Y.type.defaultProps)===null||h1===void 0?void 0:h1.hide;return S1===I&&(T||!v1)}),w,i,h);k&&(C=k)}m&&(b==="number"||H!=="auto")&&(J=Jc(L,w,"category"))}else m?C=(0,ud.default)(0,N):o&&o[I]&&o[I].hasStack&&b==="number"?C=d==="expand"?[0,1]:oC(o[I].stackGroups,l,f):C=iC(L,a.filter(function(Y){var Z=c in Y.props?Y.props[c]:Y.type.defaultProps[c],h1="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return Z===I&&(T||!h1)}),b,h,!0);if(b==="number")C=nd(p,C,I,i,V),O&&(C=Hp(O,C,A));else if(b==="category"&&O){var R=O,j=C.every(function(Y){return R.indexOf(Y)>=0});j&&(C=R)}}return x1(x1({},y),{},r2({},I,x1(x1({},x),{},{axisType:i,domain:C,categoricalDomain:J,duplicateDomain:q,originalDomain:(z=x.domain)!==null&&z!==void 0?z:$,isCategorical:m,layout:h})))},{})},oL1=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,c=r.axisIdKey,o=r.stackGroups,l=r.dataStartIndex,f=r.dataEndIndex,h=t.layout,p=t.children,d=hd(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:f}),m=d.length,y=cC(h,i),g=-1;return n.reduce(function(z,x){var b=x.type.defaultProps!==void 0?x1(x1({},x.type.defaultProps),x.props):x.props,w=b[c],A=qZ("number");if(!z[w]){g++;var M;return y?M=(0,ud.default)(0,m):o&&o[w]&&o[w].hasStack?(M=oC(o[w].stackGroups,l,f),M=nd(p,M,w,i)):(M=Hp(A,iC(d,n.filter(function(H){var V,T,I=c in H.props?H.props[c]:(V=H.type.defaultProps)===null||V===void 0?void 0:V[c],L="hide"in H.props?H.props.hide:(T=H.type.defaultProps)===null||T===void 0?void 0:T.hide;return I===w&&!L}),"number",h),a.defaultProps.allowDataOverflow),M=nd(p,M,w,i)),x1(x1({},z),{},r2({},w,x1(x1({axisType:i},a.defaultProps),{},{hide:!0,orientation:(0,Co.default)(rL1,"".concat(i,".").concat(g%2),null),domain:M,originalDomain:A,isCategorical:y,layout:h})))}return z},{})},sL1=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,c=r.graphicalItems,o=r.stackGroups,l=r.dataStartIndex,f=r.dataEndIndex,h=t.children,p="".concat(a,"Id"),d=Ht(h,i),m={};return d&&d.length?m=cL1(t,{axes:d,graphicalItems:c,axisType:a,axisIdKey:p,stackGroups:o,dataStartIndex:l,dataEndIndex:f}):c&&c.length&&(m=oL1(t,{Axis:i,graphicalItems:c,axisType:a,axisIdKey:p,stackGroups:o,dataStartIndex:l,dataEndIndex:f})),m},lL1=function(t){var r=Qi(t),n=eo(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,FZ.default)(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:_p(r,n)}},PZ=function(t){var r=t.children,n=t.defaultShowTooltip,a=cr(r,_6),i=0,c=0;return t.data&&t.data.length!==0&&(c=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(c=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:c,activeTooltipIndex:-1,isTooltipActive:!!n}},fL1=function(t){return!t||!t.length?!1:t.some(function(r){var n=rn(r&&r.type);return n&&n.indexOf("Bar")>=0})},IZ=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},uL1=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,c=i===void 0?{}:i,o=t.yAxisMap,l=o===void 0?{}:o,f=n.width,h=n.height,p=n.children,d=n.margin||{},m=cr(p,_6),y=cr(p,Ea),g=Object.keys(l).reduce(function(M,H){var V=l[H],T=V.orientation;return!V.mirror&&!V.hide?x1(x1({},M),{},r2({},T,M[T]+V.width)):M},{left:d.left||0,right:d.right||0}),z=Object.keys(c).reduce(function(M,H){var V=c[H],T=V.orientation;return!V.mirror&&!V.hide?x1(x1({},M),{},r2({},T,(0,Co.default)(M,"".concat(T))+V.height)):M},{top:d.top||0,bottom:d.bottom||0}),x=x1(x1({},z),g),b=x.bottom;m&&(x.bottom+=m.props.height||_6.defaultProps.height),y&&r&&(x=IK(x,a,n,r));var w=f-x.left-x.right,A=h-x.top-x.bottom;return x1(x1({brushBottom:b},x),{},{width:Math.max(w,0),height:Math.max(A,0)})},hL1=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},WZ=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,c=t.validateTooltipEventTypes,o=c===void 0?["axis"]:c,l=t.axisComponents,f=t.legendContent,h=t.formatAxisMap,p=t.defaultProps,d=function(x,b){var w=b.graphicalItems,A=b.stackGroups,M=b.offset,H=b.updateId,V=b.dataStartIndex,T=b.dataEndIndex,I=x.barSize,L=x.layout,N=x.barGap,C=x.barCategoryGap,q=x.maxBarSize,J=IZ(L),$=J.numericAxisName,E=J.cateAxisName,O=fL1(w),B=[];return w.forEach(function(k,R){var j=hd(x.data,{graphicalItems:[k],dataStartIndex:V,dataEndIndex:T}),Y=k.type.defaultProps!==void 0?x1(x1({},k.type.defaultProps),k.props):k.props,Z=Y.dataKey,h1=Y.maxBarSize,S1=Y["".concat($,"Id")],v1=Y["".concat(E,"Id")],z1={},q1=l.reduce(function(H1,O1){var _1,R1,l2=b["".concat(O1.axisType,"Map")],n2=Y["".concat(O1.axisType,"Id")];l2&&l2[n2]||O1.axisType==="zAxis"||u4(!1);var ie=l2[n2];return x1(x1({},H1),{},r2(r2({},O1.axisType,ie),"".concat(O1.axisType,"Ticks"),eo(ie)))},z1),f1=q1[E],D1=q1["".concat(E,"Ticks")],A1=A&&A[S1]&&A[S1].hasStack&&qK(k,A[S1].stackGroups),S=rn(k.type).indexOf("Bar")>=0,u1=_p(f1,D1),c1=[],G=O&&TK({barSize:I,stackGroups:A,totalSize:hL1(q1,E)});if(S){var W,r1,g1=(0,Mo.default)(h1)?q:h1,m1=(W=(r1=_p(f1,D1,!0))!==null&&r1!==void 0?r1:g1)!==null&&W!==void 0?W:0;c1=PK({barGap:N,barCategoryGap:C,bandSize:m1!==u1?m1:u1,sizeList:G[v1],maxBarSize:g1}),m1!==u1&&(c1=c1.map(function(H1){return x1(x1({},H1),{},{position:x1(x1({},H1.position),{},{offset:H1.position.offset-m1/2})})}))}var s1=k&&k.type&&k.type.getComposedData;s1&&B.push({props:x1(x1({},s1(x1(x1({},q1),{},{displayedData:j,props:x,dataKey:Z,item:k,bandSize:u1,barPosition:c1,offset:M,stackedData:A1,layout:L,dataStartIndex:V,dataEndIndex:T}))),{},r2(r2(r2({key:k.key||"item-".concat(R)},$,q1[$]),E,q1[E]),"animationId",H)),childIndex:lB(k,x.children),item:k})}),B},m=function(x,b){var w=x.props,A=x.dataStartIndex,M=x.dataEndIndex,H=x.updateId;if(!Vw({props:w}))return null;var V=w.children,T=w.layout,I=w.stackOffset,L=w.data,N=w.reverseStackOrder,C=IZ(T),q=C.numericAxisName,J=C.cateAxisName,$=Ht(V,n),E=jK(L,$,"".concat(q,"Id"),"".concat(J,"Id"),I,N),O=l.reduce(function(Y,Z){var h1="".concat(Z.axisType,"Map");return x1(x1({},Y),{},r2({},h1,sL1(w,x1(x1({},Z),{},{graphicalItems:$,stackGroups:Z.axisType===q&&E,dataStartIndex:A,dataEndIndex:M}))))},{}),B=uL1(x1(x1({},O),{},{props:w,graphicalItems:$}),b?.legendBBox);Object.keys(O).forEach(function(Y){O[Y]=h(w,O[Y],B,Y.replace("Map",""),r)});var k=O["".concat(J,"Map")],R=lL1(k),j=d(w,x1(x1({},O),{},{dataStartIndex:A,dataEndIndex:M,updateId:H,graphicalItems:$,stackGroups:E,offset:B}));return x1(x1({formattedGraphicalItems:j,graphicalItems:$,offset:B,stackGroups:E},R),O)},y=function(z){function x(b){var w,A,M;return GS1(this,x),M=$S1(this,x,[b]),r2(M,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),r2(M,"accessibilityManager",new HZ),r2(M,"handleLegendBBoxUpdate",function(H){if(H){var V=M.state,T=V.dataStartIndex,I=V.dataEndIndex,L=V.updateId;M.setState(x1({legendBBox:H},m({props:M.props,dataStartIndex:T,dataEndIndex:I,updateId:L},x1(x1({},M.state),{},{legendBBox:H}))))}}),r2(M,"handleReceiveSyncEvent",function(H,V,T){if(M.props.syncId===H){if(T===M.eventEmitterSymbol&&typeof M.props.syncMethod!="function")return;M.applySyncEvent(V)}}),r2(M,"handleBrushChange",function(H){var V=H.startIndex,T=H.endIndex;if(V!==M.state.dataStartIndex||T!==M.state.dataEndIndex){var I=M.state.updateId;M.setState(function(){return x1({dataStartIndex:V,dataEndIndex:T},m({props:M.props,dataStartIndex:V,dataEndIndex:T,updateId:I},M.state))}),M.triggerSyncEvent({dataStartIndex:V,dataEndIndex:T})}}),r2(M,"handleMouseEnter",function(H){var V=M.getMouseInfo(H);if(V){var T=x1(x1({},V),{},{isTooltipActive:!0});M.setState(T),M.triggerSyncEvent(T);var I=M.props.onMouseEnter;(0,Bn.default)(I)&&I(T,H)}}),r2(M,"triggeredAfterMouseMove",function(H){var V=M.getMouseInfo(H),T=V?x1(x1({},V),{},{isTooltipActive:!0}):{isTooltipActive:!1};M.setState(T),M.triggerSyncEvent(T);var I=M.props.onMouseMove;(0,Bn.default)(I)&&I(T,H)}),r2(M,"handleItemMouseEnter",function(H){M.setState(function(){return{isTooltipActive:!0,activeItem:H,activePayload:H.tooltipPayload,activeCoordinate:H.tooltipPosition||{x:H.cx,y:H.cy}}})}),r2(M,"handleItemMouseLeave",function(){M.setState(function(){return{isTooltipActive:!1}})}),r2(M,"handleMouseMove",function(H){H.persist(),M.throttleTriggeredAfterMouseMove(H)}),r2(M,"handleMouseLeave",function(H){M.throttleTriggeredAfterMouseMove.cancel();var V={isTooltipActive:!1};M.setState(V),M.triggerSyncEvent(V);var T=M.props.onMouseLeave;(0,Bn.default)(T)&&T(V,H)}),r2(M,"handleOuterEvent",function(H){var V=sB(H),T=(0,Co.default)(M.props,"".concat(V));if(V&&(0,Bn.default)(T)){var I,L;/.*touch.*/i.test(V)?L=M.getMouseInfo(H.changedTouches[0]):L=M.getMouseInfo(H),T((I=L)!==null&&I!==void 0?I:{},H)}}),r2(M,"handleClick",function(H){var V=M.getMouseInfo(H);if(V){var T=x1(x1({},V),{},{isTooltipActive:!0});M.setState(T),M.triggerSyncEvent(T);var I=M.props.onClick;(0,Bn.default)(I)&&I(T,H)}}),r2(M,"handleMouseDown",function(H){var V=M.props.onMouseDown;if((0,Bn.default)(V)){var T=M.getMouseInfo(H);V(T,H)}}),r2(M,"handleMouseUp",function(H){var V=M.props.onMouseUp;if((0,Bn.default)(V)){var T=M.getMouseInfo(H);V(T,H)}}),r2(M,"handleTouchMove",function(H){H.changedTouches!=null&&H.changedTouches.length>0&&M.throttleTriggeredAfterMouseMove(H.changedTouches[0])}),r2(M,"handleTouchStart",function(H){H.changedTouches!=null&&H.changedTouches.length>0&&M.handleMouseDown(H.changedTouches[0])}),r2(M,"handleTouchEnd",function(H){H.changedTouches!=null&&H.changedTouches.length>0&&M.handleMouseUp(H.changedTouches[0])}),r2(M,"handleDoubleClick",function(H){var V=M.props.onDoubleClick;if((0,Bn.default)(V)){var T=M.getMouseInfo(H);V(T,H)}}),r2(M,"handleContextMenu",function(H){var V=M.props.onContextMenu;if((0,Bn.default)(V)){var T=M.getMouseInfo(H);V(T,H)}}),r2(M,"triggerSyncEvent",function(H){M.props.syncId!==void 0&&id.emit(cd,M.props.syncId,H,M.eventEmitterSymbol)}),r2(M,"applySyncEvent",function(H){var V=M.props,T=V.layout,I=V.syncMethod,L=M.state.updateId,N=H.dataStartIndex,C=H.dataEndIndex;if(H.dataStartIndex!==void 0||H.dataEndIndex!==void 0)M.setState(x1({dataStartIndex:N,dataEndIndex:C},m({props:M.props,dataStartIndex:N,dataEndIndex:C,updateId:L},M.state)));else if(H.activeTooltipIndex!==void 0){var q=H.chartX,J=H.chartY,$=H.activeTooltipIndex,E=M.state,O=E.offset,B=E.tooltipTicks;if(!O)return;if(typeof I=="function")$=I(B,H);else if(I==="value"){$=-1;for(var k=0;k=0){var A1,S;if(q.dataKey&&!q.allowDuplicatedCategory){var u1=typeof q.dataKey=="function"?D1:"payload.".concat(q.dataKey.toString());A1=F8(k,u1,$),S=R&&j&&F8(j,u1,$)}else A1=k?.[J],S=R&&j&&j[J];if(v1||S1){var c1=H.props.activeIndex!==void 0?H.props.activeIndex:J;return[(0,N2.cloneElement)(H,x1(x1(x1({},I.props),q1),{},{activeIndex:c1})),null,null]}if(!(0,Mo.default)(A1))return[f1].concat(_o(M.renderActivePoints({item:I,activePoint:A1,basePoint:S,childIndex:J,isRange:R})))}else{var G,W=(G=M.getItemByXY(M.state.activeCoordinate))!==null&&G!==void 0?G:{graphicalItem:f1},r1=W.graphicalItem,g1=r1.item,m1=g1===void 0?H:g1,s1=r1.childIndex,H1=x1(x1(x1({},I.props),q1),{},{activeIndex:s1});return[(0,N2.cloneElement)(m1,H1),null,null]}return R?[f1,null,null]:[f1,null]}),r2(M,"renderCustomized",function(H,V,T){return(0,N2.cloneElement)(H,x1(x1({key:"recharts-customized-".concat(T)},M.props),M.state))}),r2(M,"renderMap",{CartesianGrid:{handler:ld,once:!0},ReferenceArea:{handler:M.renderReferenceElement},ReferenceLine:{handler:ld},ReferenceDot:{handler:M.renderReferenceElement},XAxis:{handler:ld},YAxis:{handler:ld},Brush:{handler:M.renderBrush,once:!0},Bar:{handler:M.renderGraphicChild},Line:{handler:M.renderGraphicChild},Area:{handler:M.renderGraphicChild},Radar:{handler:M.renderGraphicChild},RadialBar:{handler:M.renderGraphicChild},Scatter:{handler:M.renderGraphicChild},Pie:{handler:M.renderGraphicChild},Funnel:{handler:M.renderGraphicChild},Tooltip:{handler:M.renderCursor,once:!0},PolarGrid:{handler:M.renderPolarGrid,once:!0},PolarAngleAxis:{handler:M.renderPolarAxis},PolarRadiusAxis:{handler:M.renderPolarAxis},Customized:{handler:M.renderCustomized}}),M.clipPathId="".concat((w=b.id)!==null&&w!==void 0?w:Sa("recharts"),"-clip"),M.throttleTriggeredAfterMouseMove=(0,jZ.default)(M.triggeredAfterMouseMove,(A=b.throttleDelay)!==null&&A!==void 0?A:1e3/60),M.state={},M}return ZS1(x,z),KS1(x,[{key:"componentDidMount",value:function(){var w,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,A=w.children,M=w.data,H=w.height,V=w.layout,T=cr(A,g3);if(T){var I=T.props.defaultIndex;if(!(typeof I!="number"||I<0||I>this.state.tooltipTicks.length-1)){var L=this.state.tooltipTicks[I]&&this.state.tooltipTicks[I].value,N=rH(this.state,M,I,L),C=this.state.tooltipTicks[I].coordinate,q=(this.state.offset.top+H)/2,J=V==="horizontal",$=J?{x:C,y:q}:{y:C,x:q},E=this.state.formattedGraphicalItems.find(function(B){var k=B.item;return k.type.name==="Scatter"});E&&($=x1(x1({},$),E.props.points[I].tooltipPosition),N=E.props.points[I].tooltipPayload);var O={activeTooltipIndex:I,isTooltipActive:!0,activeLabel:L,activePayload:N,activeCoordinate:$};this.setState(O),this.renderCursor(T),this.accessibilityManager.setIndex(I)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var M,H;this.accessibilityManager.setDetails({offset:{left:(M=this.props.margin.left)!==null&&M!==void 0?M:0,top:(H=this.props.margin.top)!==null&&H!==void 0?H:0}})}return null}},{key:"componentDidUpdate",value:function(w){ah([cr(w.children,g3)],[cr(this.props.children,g3)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=cr(this.props.children,g3);if(w&&typeof w.props.shared=="boolean"){var A=w.props.shared?"axis":"item";return o.indexOf(A)>=0?A:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var A=this.container,M=A.getBoundingClientRect(),H=gW(M),V={chartX:Math.round(w.pageX-H.left),chartY:Math.round(w.pageY-H.top)},T=M.width/A.offsetWidth||1,I=this.inRange(V.chartX,V.chartY,T);if(!I)return null;var L=this.state,N=L.xAxisMap,C=L.yAxisMap,q=this.getTooltipEventType();if(q!=="axis"&&N&&C){var J=Qi(N).scale,$=Qi(C).scale,E=J&&J.invert?J.invert(V.chartX):null,O=$&&$.invert?$.invert(V.chartY):null;return x1(x1({},V),{},{xValue:E,yValue:O})}var B=TZ(this.state,this.props.data,this.props.layout,I);return B?x1(x1({},V),B):null}},{key:"inRange",value:function(w,A){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=this.props.layout,V=w/M,T=A/M;if(H==="horizontal"||H==="vertical"){var I=this.state.offset,L=V>=I.left&&V<=I.left+I.width&&T>=I.top&&T<=I.top+I.height;return L?{x:V,y:T}:null}var N=this.state,C=N.angleAxisMap,q=N.radiusAxisMap;if(C&&q){var J=Qi(C);return fC({x:V,y:T},J)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,A=this.getTooltipEventType(),M=cr(w,g3),H={};M&&A==="axis"&&(M.props.trigger==="click"?H={onClick:this.handleClick}:H={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var V=Ji(this.props,this.handleOuterEvent);return x1(x1({},V),H)}},{key:"addListener",value:function(){id.on(cd,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){id.removeListener(cd,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,A,M){for(var H=this.state.formattedGraphicalItems,V=0,T=H.length;V{let t=[],r=[],n=0;for(let a=0;aa.value>i.value?-1:1),this.setState({groupData:r,total:n})};render(){if(!this.state.groupData)return Gt.default.createElement("div",null,"Loading");if(!this.state.groupData.length)return Gt.default.createElement("div",null,"No data! Please a pixel to see pixel chart");let t={width:Math.min(250,window.innerWidth-20),height:Math.min(250,window.innerHeight-20)};return Gt.default.createElement("div",null,Gt.default.createElement("h5",null,"Total pixels: ",ma(this.state.total)),Gt.default.createElement("div",{style:t},Gt.default.createElement(tM,{width:"100%",height:"100%"},Gt.default.createElement(nH,{width:400,height:400},Gt.default.createElement(pn,{data:this.state.groupData,cx:"50%",cy:"50%",labelLine:!1,outerRadius:80,fill:"#8884d8",dataKey:"value"},this.state.groupData.map((r,n)=>Gt.default.createElement(kc,{key:`cell-${n}`,fill:r.color})))))),Gt.default.createElement("div",null,Gt.default.createElement(mL1,{style:{width:Math.min(250,window.innerWidth-20)}},this.state.groupData.map((r,n)=>Gt.default.createElement(dL1,{key:n},Gt.default.createElement(pL1,{style:{backgroundColor:r.color}}),ma(r.value))))))}};var GZ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAGi9JREFUeF7tnQmYFMXZx3/dM7PLIhAUjRLvL58ao0ST6CdRMcCgGIOaaNCARFGDERWJSVATL9TECxPjESFoTIKoEOIBCgjsLmsABVERNBgv8ASvKHLvznT397zVM7M9d83sXM7O+zw+6k51ddVb/6566z0NatSpOWB06tnXJk8NAJ0cBDUA1ADQyTnQyadf2wFqAOjkHOjk06/tADUAdHIOdPLp13aAGgA6OQc6+fRrO0ANAJ2cA518+mXdAfpDFx8cbcDRDiy2YHELbO/ka1LS6ZcNAEH4tQGjHdgDlE3CAV534D4HHlsIr5aUE530ZWUBgCw+8LvIwieyXoDQBvzBhpkLYVknXZuSTLvkABgAB5iwEqjXmKGA4R4DHmmEeRrta01y5EDJARCEG3B3AEVGr6/gO2II4YUPwbZN6YbvGLDAgUea4M+JjYKwq8gRuP8sFnmiCT7MkRedsnlJASBCnx9ec2DPKLf9I67B1/dE2LoRa9VTWHPvwfnvurRAAF524AEbbheBcRCc4sDdwJc9soQ8fw/Q3ATTO+XKak66pAAIwqXATdGzX77+umtnxQ/VcbBfasFaOA379eczAUEJjAZcAuyapmHGnUOTR1XdrNQAWAX0iX393xuF7/s/S7d2CgD2stlYSx/PBASdOYgsEbdzVPWq5jA5Hebl0F36pkE4D5gUk/wbulN/7Uzo2iNL/w7OJ+uwnrwXa2VLJjkB/6m/wF71VMadw4D3HJhqw99rV033/l0SGgTzHDgu+jJf/2H4f/SLNDfBVENyYOsmrJZpKQVGY4/9qbv8QaVOcN57TbXLsHPIC1qB2w1o7sw3jJIA4Fg4zoYnvatdN34mxs675we+rRtpvXRg3LMxYTL218jO8dR0FwiZbxhTHViS6oaR3wC/OE+VBABB9+omR4AiX98hyILluwFZCx8k/PAfYlxOKUx610BuGLIjLHsi4w0jetW04O+dRSVddAAMgCNMeMa72oGLJ2Huf1jen0nbNSfFLaT/hPPwnRDDV/p+HUeBwGp5SB0TaaXPTqSSLjoAEhU/5n7fRgCAkd+rZTsPT702ae1ElyByhcgCWUmumm88jzXnnmxXzahKumoFxvxWISuH3Qap1L6BURMwDxmg2UNys9DtP8uwaAYCMN8Jo9S/s5PnhpH+qindVK1KuqgAGATnOHBvnOJn/My8v361oNs2Yi2VbXxahvPccFXM3/upq2XMSi4Q7Gdn66ikZziuhjFJJZ31NRXYoKgACMJfgZHRefvPuBrfd04qDBv0znOMXrvjO+L7+AYMg4bu2d+dp0o6e8eV2aKoABgEKxw4NDr1ussewNjzgMJyInqei+p4VUv6vht64Dvku/i+N0rtDlkpAjB72RPZ5ITXgYe/qIqlYgPgTgcuame2nNHfUl+j+Y3+Wdcgtwa657mhrqHmEUO05QRRSSvbRCaAuYqlL5wPQ1EBEITTgYdSXfjdM3qU5hmdGxRE6WMtfCjbeY5vwHClPtYlsVKKtTKbShqY3A9Gjwdbt+9ytSsqAGRSQbgduDjtBBu64x8wTP+MzoVTAoSVLWlNzIHzbs1vJ9ID2DMOTGyG+3MZcqnbFh0AERCc7kDQgFGZgOA7pL/+GZ0jp0KTfxW3hWfVHmr2L3qJLD4MNOWr8tQcQ0ealQQA0QGKVtCAHxgg+25duoHL1U3/jNabfuu4AXH2gGTbgV4/6VqJfCAqavv1F5Ka1ACQwBJREBkw0oBTgf3SMVWUOQIEvbt8+gVM0h6KKfq6WXrXwhxwITKCqKkTqQaANEwUFzETxgIjDDg4Ha9jAuMh/fNatCTbgSiIjv8p+Pw5LG+Wpp+up/XqZKVTJS++zKikR0AmFgZBXINkRzi2kAKjXOFEfeyluvGPYews4QgFIMfG+egd2q7/UVJn26HHTmBFf3gcthbgjQXtomIAEJ3VIBhsw6mZBMZcBLhE24HvkAH4R03oGBO3bcZ+4wXs157D/s9SnM8+hO1bdPoUJ8eJG2DK8xDSeaDYbSoOANEJe+SEJIFRV4ATk2/bTcPjv/5rZ+lpAhM472z+DKtpKvZry3He/Q/YHb7iLzVgYhjmt8AHxV7otMdruV6s+96BcJnhehK7lIMAJ2Zjr1uYaB/l7p8L2S8vJjzrLpx1b+TyWK5tH3Vglu3GRhb1RYkDq9gdIDrQIMz3ygW6zh+pJPLA2D9rqn/Bem4e1vz7cNa9metiuu27dHWNyI4NjvwHEBJtcVa614C7G2FF1pYFaFDRAIgIhuJJHKP6CQu1bgLiMib38ii1O43Gc82aMxl26h27atprVhJ++Dact19Oz966Lq787NiYu++HsffXMXrtgbFjNDzBUb8527Yo2cDZvhnaWpW8wOcf42zdBHZMNkz3nhVyRDS6AS5Fo0oHgKhRR0RnL/oA15cwC23bROvVJ2VX/HjamYcf7y7SyoWpOw/UYfTcDaNbT4wD+2IecDjmvt+AcMiVB3w+COiEO6JkCFEY2WtXYq9oyjgZA5aJSrkJ/p5t2vn8XrEAkNuA43oSx0iiiHRMubpOo/L1h+f/DVFBW8/LSZOCGrpjfvVQzH37YOx/mLvohSDZAdq243z+CfaaF7GXz1W3ijQkEU6XNUIHry/JvVcsAIJwCzAuOmTlSzhWzwknSfFz6i+U5S+RWq88AbOhO/b6FOe8L6COBaWNPOgoaOhWiGVP3YccF5+8h/Puq1gvLMBe/Qy0bUtqW4zdoCIBEPEllDCymL1AV4DTVfumcy4VrpuHDcZ3+AmYX/2mK8yVkNSOsKoFe/kc7LdXgxVOfLtIlGcX6kioSAAMhBsNuDw683QCXKp1kXu/1+U71a3B2fARbVcNcSV0Dxk9v4z/tMtcoe5Lu5Rw2ZNf5Xy6Hqv5AewXm5HxJpCA4MwmmNrRQVYcACTWH5CvX8K9FekqflKqfRPkBmf9m7TdODxeCjdN5Rfg/+HPtWSMjjI9l+ftV55RQTDOx+/G7QYGrHXgqiZ4IJf+EttWHAASFT8dUvsm3BrsN1cQui3BJSFQj6/fj/APOR/qGjrCy6I962zeQPifE7CfX5C4a8lO8JOOgKASAfCS1zIoLlupBLikPTGFKVaCRaOBIqLRC036efxj4o00+Gx8A0eAaRZtAQvSsRUiPHsy1nxxtG4nA8Qp9eRGeCWf91QUAJIUPx1Q+wozVLRQ8Cc4H6wh9JeYSKH4JGe8bPki8H1hyApjNU4h/MTEdu2iO/gWP5w6Dz7NdS6VBoA4ta+206YodMTjJ4GMXfYicOEdhCb+HOfDt2K/Gt13wn/65ZiHxkcY58q8srQXEMz/K+HZSVfi6U3w41zHVDEAiHgQT/NOQFfxk84L2H/GVThrVmE9M7O926498J98Eb6jTsmVV5XTvm27EgytJY94xyQWh6ua3fR72lQxABgIk70+ANpqX+9UxVtXnDQlbGzzBnzHDMVaEK9BlXAx/7FnVazAp71yWz8nNPU6lRHFQyIUjmqCv+j2UxEASKn29QhwupOJtZNtsnmqst8LEKJk7n84gVG3aBmTcn5nGR5wPlxL6O6xiTGSshOcpeuOXhEASFT85KL2jfLdef8N7OWzsZ6dg7Pxv8nywK77KF8AY9d9irZUzgdrcbZsgE2fuUKaaBHru2LsuBuGqJLrG8Ao7G3DkoDWh25INDU/3QRH6Uy07ADoiNo3tvifvE/b+JMzztc8sK+r5dsllqJQhz/p2yhzroH98r+wVzRjf/QWhNpcy+C2jThtrbEoaGVI2m1fzK8fibnPwQoUBaNwK6H7r8Ve0ej1UnIsqGuBJD1y4nvLDoAktW+q3IFZuBWecQvWU//I3Kq+q2K+77unYex5IKL2zStJhVjwNn6idhp7yaM44gsYbkuls085HuXhfPSp+Pr/WNt8nA0s6pr7x/O8x51YDy9shInZni0rACLp4kXtG4sN0FX7tk/MoXXMEe0aMtOHsds+aht2NqW+FpsHH03g3JtzXgDnsw+wlz+pXMQ6RIaJsdNukfwFhQmXD//zViX8emhVExySbZxlBUBKfz/x+MmBnLdX0zbhzNgT4rDhH36VYrBIyNbTj8UbUwwDY6+vUzcuN/8KW66TT96LvfrpHEaXpan4GuzbB/+wKzzeRPl1r1zgxAF22+bYyejAuc1ujoa0VFYABF2jT3vmUN1kT57phP40BjGYREmcNwIXTwRfQBl8rMUPE/6HuBa4ZPTopQAiu4AWOTbKMfQfN7vu32koaqu34bk6+FScwepBSXwG9AUOdyClO5OM2XfSRcrxpCMUfuh3WEse9XbxbBMcUZEAiKh95YxyQZiD2jc2IStM61jhbYREyTP4HHzBiBeZFVIMiQHAMJRzR+D8P2rz2X71WZWUKsXiv+PA9a0wfTts1/HzD7rubaOBIxMHIPKJf+ilyhSdF4lTyTurabvtPFcmccnxwW7zIcmeHPsg8npZAR5Kyhyq6+/nebfYzNs84VjGHgcQGH6F2uLV7NevIfzAddhvuQ6expd2xveDi5Wzhw4577+mrljR5z1ME1/FMY3wuU4/iW2CcIEDoxPD4eT6KypquTHkQxK7EJYo6DVSjsFlgQAuUz6jshwBEcXP3LjMoZr+fl7GWMtmE76/fVeVXECShwjTp5pZS2cRnnZT7IuQbd8/Yrxy7MxG4oRhzbwLa/mcuKYOXN4MN2d7Xuf3gXC3lM3xtvX1PQn/aZeC8jzOkUKtWIseJvyIJ4kmvNgI30zXU1kAkJw5VNPbN2EW4tghX2mUxLoX2/5Bbf3Wv9qvh/7vn68kbx1SOYkfu8O7ncpjdzS5wawFo0QVuCTPDoy4Or/EFfLJv/Nv2u4YDdtjYYhOHfScCxtTDbrkAIgofsR2HXu3rr9f/Kdo0zrm/9r/JIwb+VulbFF738fvEBZd+Zsvqv83dvgS/rNvwPxaRpnIffajdwg/+FsV/+eh5U3geWFhMNAf/D6QQR4U7VFdU8+8TiOTevIYnHWvE552I3JriZBjQr8FsKQiAJAyc6imt2/cBLZvofVX3439SSRodZ2KnJ9Kcp9xS0xPrq5bZ1ytdb6G50x2jUieSB4Hzsl2pcoXEgPhIgPujD1f35XAsCu0fRXkCiiubqICdz58W8U2iJdxFAAO7NcMKUOcSroDpMocmrvix52Wcuy8sl2YE9u+f+i4mDOnpG0JN90f2wp9x5ym8glnPf8dh9CdF6ggUA893wT5JzfOjgwjCLLdxO6BKp3+D8e25zAQ20I0vW64zS2m8cYKF+CbPkXZIT7/ONWb1jVB2rTsJQVARPFzY8aSMdmZ5QLgrZdou/XsWGvf4HPwHzsy5sat1MOLHwXLjcL2D/sNvu+cHBMQ071GGBuecg2i9fPQT3MxsWpOIa5ZojeUuLIFhl+lwtYU/fd97FeWYq9e4hq7wiHX8CT2h/Qkt4BrmuD6dE1KBoCI2lfuJ7Fszvl+/TIZSRcbnjo+Nq+AnO+HDnAVQBKH+Ydzsde+FFMRq4xgB/fLCoDw43e7MYVt7QVMu8IOxU7uMBR8n3qNN4bkMzxRxRHary5zdzLxW4wGnGZH2XrJRZBp8aWLkgEg8etXih+tkjGpZ2o9chvh5naP6MAFdyAWv6i5tXVcf69alLrfznENQFlIfAdVfKAneHMD1OkoerL1neV3YyAsMjTNuGn6WmO4ZXkWNcJSnfGUDACJih/dMO90k2i74ngVV6fINFXYmIrkEbJtWseKgSgSlm2Y1N/5rA4/2s//6LNAP/CVIuljRFOYa17B5ySK2IZ5zfC+1iQ9jUoCgCS1r5QNvaU5r2tOdOytYw5vX+CGbtSNndxeKyCxpExDN+onZMgjHO3UCimzqjo6IiSlZJrdgpQloSCcEdESJjp0yPEZte6JRWriVnj4GUgOIsxhpCUBwCCY7sBp0XG5/n5X530CJcb1iZev6PejenTZGUITzoxZAcUFvO7KGdkDPLdupO328+OUSxKe3pHAixzWIq5p0JWV+hnwWQAWzYWPRWewCzgzPImn8u0/+lzRAZBS7duRglFSWTqhZIxy8x46DvNbboIxUQKF7roopgOQjGCBC+9M9gbyXq3kuQTgSF8+2Gs+vNtRRlfq80UHQNDVm0vFUPe4Vnl6JMw9v1eniv8Tnzv/6Ze5Ur4spHjI3Hu5+reQsft+BMbcjdFtR5U0whEJX+wFWzeq7V4SNogGzdm0QYHHG5FbIgGwbPjIbxU0h5uyZMzYSZj75a9TSVkyJlCP/8QL8A08IwaA8IO/i1nFDEkBc8xQlRvQXrsKZ81K7Pdede/QcrUyfDF9gXdqYuNvdG35VUtFBUBSpXAp7njZA/n54smXnSLtW3RlFAAGn+MCIBpM+Vyk4rxkBE2Os9dZ1JGFisPXeVk52hQNAJEwb5FcY4WdO6L4EeYkpn3zMkxpAk+8wP2TYxOecWucJTBH5sp16opqX3x1PObIGO3mKdW+HSgYlS4Rc3RAUovIf8olsaCP8OxJWHOlXlUC+esw6htwIvd8c4/9lYJIrIbesvUOjGp2C15VNRUNAEGQuvCx7Mm6Yd7puJ2Y9k0iYoFY3RkpRaOcQSN+/9biRwhPu0EZU4wv74XcFCSLlwSMmpIBZO+DMHbZw9X4hUOoegKvximLXmgCndpzX2iAFBMAnwEx15sOKX5SpH2zoLcPRN/tkmlSN24Kxp5fc0+B917DluyejoPRq7eKCFIgSEPWvPsIz7svzgYgFc+q/RgoJgDidgAVECG5/3XLt3kWSqVzk4SOEXLgqGZ4OgiiEftO9O/iDSzxf4rEChgxDGl9oqIE+v058WHktVuAFutSNkoy/kRbNXRXefm0y7elUPxEc/AHQWrIikpRke+4kfilDkA+/nQiZIrcMP9viTeG45pgQf6cqOwni7YDyLQHwUwH0oa+6JSGSVT7egswBN3aArEMjyqf0DWPZjX5plsSuT6GbvkJ4m3soVcsOKEF2jNMVPaa5jS6ogJARhKE30R84dNWaFD1ftPUEkxM++YFQMSfrj3vvlgFL/mLirbJl8QTKCROlfH0pAnnLoB1+fZbqc8VHQAy8XxLwySqfRPLr3wbAj2h3SXG9CmvH/H+6QhJDh7ryaQcC/+OOFj8qSN9V9qzJQGAd9K5lIZRfm+vS5ENlxIBMB7MRV7LmMT99dqdukundMjUTOtWwtNvUhHAKUgVemiEKZW2mPmMp+QAiA5SpzSMd0Lpii8NhMVxXjR1XfAPEbtAcm7gXBjkbPmc8PSbsV9InURa/AQECOUwFecyj2xtywaA6MB0awmmA4A4UOBNmSrxf/v0wS/ZQDLc+7MxRv0ebnN3gpUtynKYihwYY8D8JmiPUIk0PBG6tkK3LbDtWNhSCq8irXl5GpUdAB4gSC1BKSp5bmItwWyl15J2AX+dyvzpG9QeNp4rY7ztreYHsRbNcFXF6Qs9SOjw4w58YoD4qg0jQZNYibtGxQAgyvCI9/DRDtjN0KyzcEm7gBg5ev+PSgKRb6Bl4ntVtNCsu9yqH63bEhM16gzT26YsXkapBllxAMiVk9H2A+FsA+6LPW+Y+I4+xQ2uKGAOYDEaSaJGlSjC4ziay7hL7WeYaWxVAwCZZNCNf2uPvZd4weFXFiUjqEQmSWIm+6VFKneA8iRKJDE+1XfFkRAzKQBRBk/jbMCsNgBIAga5nsXmZex1IIGzri9OerhwG86Wja6bmYBANIhbNrjJmkRW6NpDpapx1q91s5XGC5I7N0FyPrtsK1bg36sKAMKbpEDLqB/imddClx0KzD697sTnMDTlapWwIko+6DMfMpQm0+u7o62qDgCRo0CqQ/7Syxz/kNH4JEVsIQtG63J/2yaV0VP8ET1U9HhDneFVJQBk4omxCPI3iUXwHXY8+GOliHR4VJA2KZxZix1xrDXuqgVAEHoBy4Cvtu+7fhU/IFbIUoNABZ1KLKMn50Apgk6zoaBqARCRB44zQHLFxyXckYTR5sHHlPQ4kBuDZPcWO0OUpLz8EtiUbZGK+XtVAyACAtEPiGkvbq6iH5BqIqUiydjRdv3QuPiDOugyF7QKChdrnFUPgIhQeBZuxsz2+Ur8/ZE/iJiOS8AGiViWlDaegpAWdG+BWGrPYi1ypn5LMPNyTCv5nYPgEgd+Hw8CU3kIS2URo3e7qFCUEW/bTGjyL+PM23JrbYLccuMWeHCdBgCRnUAshxJ/79kJTFUrUErHKYfVSI7BAvNZZfgIz5mEGJY89MsmaE/qV/CXZu+wUwEgAoIkbaFiU0M3ZUb2HfVDN9VMoWNmbBtr2RMqc2mUDPhrI7jxbGWiTgeAjCCQZd9xV8yv9cU86Eg352AhDUn/WUborgu9S/1WE+SXF7ZAgOmUAIiCwIDzHdd4lMQHSSxpHnY8Zp9+kciinSHQMQWS5PAN3/fruPT15c4/0GkBEP2ABsFoB86PpK1PyQ/JLmr2OUbtCEbPXSCQRx7faAZSyeLpyUFowqAFyt2xPNTpARBleySQRYCwdyYBQAJJJRGF+b+Hus4mDd3d5JOqDlCEnZKAQopDhVtxJCxdnFV9AVXBROoOSL6/KJkweIEntqHUMKgBIIHjg2BMZEc4MC0QJGNnoAuGVAXrsoPKQ8yOvVU6epVwIhyCrt1VnKFK6rjhIzeT55ZIdnmPW1m51cE1AKT55AbCQBNGODAy0qQYvFra5IltLPXXL+8rxqTKMY+ivfNY+IqEhkVcz0WjWCieSWWvkeWOLyjUZIq2AJXUccT5VOQEraKMGcYuwSWTyr34tR0gT3RJRFILdK2H7m3QwwRJPLC3Ab1t8BluuFpPB7YaIFmnJeXM6g2R8u4lSDurPbPaDqDNqupsWANAda6r9qxqANBmVXU2rAGgOtdVe1Y1AGizqjob1gBQneuqPasaALRZVZ0NawCoznXVnlUNANqsqs6GNQBU57pqz6oGAG1WVWfDGgCqc121Z/X/2+7ECBpIREIAAAAASUVORK5CYII=";var vL1=t2.img` width: 25px; margin-right: 5px; display: inline; pointer-events: none; touch-action: none; `,dd=class extends Lt.default.Component{STORAGE_KEY="__OPACITY_SETTINGS";destroyed=!1;constructor(t){super(t),this.state={showCharts:!1,overlays:[],phantomOverlay:-1,opacity:50,collapsed:!1}}componentDidMount(){this.props.store.on(8,this.update),this.update(),this.props.storage.getItem(this.STORAGE_KEY).then(t=>{t!==null&&!this.destroyed&&this.setState(t)})}componentWillUnmount(){this.destroyed=!0,this.actualSave({collapsed:this.state.collapsed,opacity:this.state.opacity})}actualSave(t){return this.props.storage.setItem(this.STORAGE_KEY,t)}save=(0,KZ.debounce)(t=>{this.actualSave({collapsed:this.state.collapsed,opacity:t})},1e3);opacityChange=t=>{this.setState({opacity:t}),this.save(t)};update=()=>{this.setState({selected:this.props.store.selected,overlays:this.props.store.overlays,overlayModify:this.props.store.overlayModify})};renderMap(){return this.state.selected?Lt.default.createElement(Ca,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},Lt.default.createElement(P9,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}title(){return Lt.default.createElement("span",{title:"Terncode's fork"},Lt.default.createElement(vL1,{src:GZ,alt:"TC-Logo"}),Lt.default.createElement("span",null,"Overlay"))}render(){return Lt.default.createElement(Lt.default.Fragment,null,this.state.showCharts?Lt.default.createElement(Ca,{title:"Pixel chart",storage:this.props.storage,storageKey:"charts"},Lt.default.createElement(pd,{palette:this.props.palette,store:this.props.store})):null,Lt.default.createElement(Ca,{title:this.title(),storage:this.props.storage,storageKey:"main"},Lt.default.createElement(T9,{showChart:()=>this.setState({showCharts:!this.state.showCharts}),onOpacityChange:this.opacityChange,cords:this.props.cords,store:this.props.store,storage:this.props.storage,palette:this.props.palette,opacity:this.state.opacity,collapsed:this.state.collapsed,onCollapsedChanged:t=>{this.setState({collapsed:t}),this.actualSave({opacity:this.state.opacity,collapsed:t})}})),this.renderMap(),this.state.overlays.map((t,r)=>Lt.default.createElement(sc,{key:r,storage:this.props.storage,opacity:this.state.opacity,cords:this.props.cords,palette:this.props.palette,muralExtended:this.props.store.murals[t]})),this.props.store.murals[this.state.phantomOverlay]?Lt.default.createElement(sc,{storage:this.props.storage,opacity:50,cords:this.props.cords,palette:this.props.palette,muralExtended:this.props.store.murals[this.state.phantomOverlay]}):null,this.state.overlayModify?Lt.default.createElement(sc,{muralModifier:this.state.overlayModify.muralModify,opacity:this.state.opacity,storage:this.props.storage,cords:this.props.cords,palette:this.props.palette,muralExtended:this.props.store.overlayModify.mural,onChange:(t,r,n,a)=>{this.state.overlayModify.cb(t,r,n,a)}}):null)}};var YZ=p1(Py());var So=p1(Z1());var gL1=t2.div` position: fixed; display: flex; z-index: 10; flex-direction: row; bottom: ${e=>e.width>480?107:187}px; right: 16px; background-color: rgba(255, 255, 255, 0.75); border: 2px solid black; border-radius: 12px; margin: 5px auto; padding: 5px; height: 40px; `,yL1=t2.span` margin-left: 5px; `,xL1=t2.span` margin: 2px 5px; width: 19px; `,md=class extends So.default.Component{constructor(t){super(t),this.state={count:0,width:window.innerWidth}}componentDidMount(){this.updateCount(),this.props.store.on(7,this.updateCount),window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.props.store.off(7,this.updateCount),window.removeEventListener("resize",this.onResize)}updateCount=async()=>{this.setState({count:await this.props.store.getPixelCount()})};onResize=()=>{this.setState({width:window.innerWidth})};render(){return this.state.count?So.default.createElement(gL1,{width:this.state.width},So.default.createElement(yL1,null,ma(this.state.count)),So.default.createElement(xL1,null,So.default.createElement(Pe,{icon:mP}))):null}};function XZ(e,t,r,n){let a=[$Z(aH.default.createElement(md,{store:e})),$Z(aH.default.createElement(dd,{cords:r,store:e,storage:t,palette:n}))];return()=>a.map(i=>i())}function $Z(e){let t=document.createElement("div");return(0,YZ.createRoot)(t).render(e),document.body.appendChild(t),()=>{t.parentElement?.removeChild(t)}}var vd=class{constructor(t){this.chrome=t}getItem(t){if(this.chrome)return new Promise(r=>{chrome.storage.local.get(t,n=>{n&&n[t]?r(JSON.parse(n[t])):r(null)})});{let r=localStorage.getItem(t);return Promise.resolve(r&&JSON.parse(r))}}async setItem(t,r){return this.chrome?new Promise(n=>{chrome.storage.local.set({[t]:JSON.stringify(r)},n)}):(localStorage.setItem(t,JSON.stringify(r)),Promise.resolve())}removeItem(t){return this.chrome?new Promise(r=>{chrome.storage.local.remove(t,r)}):(localStorage.removeItem(t),Promise.resolve())}};var nQ=p1(tQ());async function rQ(){globalThis.process=nQ.default;let e=new c9;for(;!e.init();)await t9();let t=new vd(!1),r=new o9(t,e);await r.load();let n=new a9(r);await n.inject();let a=new i9(n,r);await a.init(),XZ(r,t,a,e),console.log("%cOverlay by 0xa663","color: red; font-size: 15px; font-weight: bold; text-shadow: 2px 2px 4px #000000;"),console.log("%cTerncode's fork","color: #4a94cc; font-size: 10px; font-weight: bold; text-shadow: 1px 1px 0px #000000, -1px 1px 0px #000000, 1px -1px 0px #000000, -1px -1px 0px #000000;")}document.readyState==="complete"?rQ():window.addEventListener("load",rQ);})(); /*! Bundled license information: lodash/lodash.js: (** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors *) react/cjs/react.production.min.js: (** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) scheduler/cjs/scheduler.production.min.js: (** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react-dom/cjs/react-dom.production.min.js: (** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) ieee754/index.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) buffer/index.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) safe-buffer/index.js: (*! safe-buffer. MIT License. Feross Aboukhadijeh *) object-assign/index.js: (* object-assign (c) Sindre Sorhus @license MIT *) assert/assert.js: (*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT *) localforage/dist/localforage.js: (*! localForage -- Offline Storage, Improved Version 1.10.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 *) jszip/dist/jszip.min.js: (*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE *) react-is/cjs/react-is.production.min.js: (** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) decimal.js-light/decimal.js: (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) */