diff --git a/dist/user-script.user.js b/dist/user-script.user.js index 8d44ae0..cf27028 100644 --- a/dist/user-script.user.js +++ b/dist/user-script.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Pixel canvas overlay // @namespace http://tampermonkey.net/ -// @version 2024-07-29 +// @version 2024-07-30 // @description Scripts renders pixelated overlays over the tile map! // @author 0xa663, Terncode // @match https://pixelcanvas.io/* @@ -9,35 +9,78 @@ // @grant none // ==/UserScript== -(()=>{var HL=Object.create;var rl=Object.defineProperty;var gL=Object.getOwnPropertyDescriptor;var VL=Object.getOwnPropertyNames;var ML=Object.getPrototypeOf,CL=Object.prototype.hasOwnProperty;var J1=(e,c)=>()=>(c||e((c={exports:{}}).exports,c),c.exports);var LL=(e,c,r,n)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of VL(c))!CL.call(e,i)&&i!==r&&rl(e,i,{get:()=>c[i],enumerable:!(n=gL(c,i))||n.enumerable});return e};var N2=(e,c,r)=>(r=e!=null?HL(ML(e)):{},LL(c||!e||!e.__esModule?rl(r,"default",{value:e,enumerable:!0}):r,e));var Z8=J1((b0,J8)=>{(function(){var e,c="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",h=1,z=2,M=4,L=1,S=2,P=1,R=2,W=4,g=8,H=16,C=32,b=64,O=128,U=256,B=512,Z=30,A="...",N=800,E=16,T=1,j=2,K=3,Y=1/0,q=9007199254740991,t2=17976931348623157e292,s2=NaN,i2=4294967295,M2=i2-1,L2=i2>>>1,K2=[["ary",O],["bind",P],["bindKey",R],["curry",g],["curryRight",H],["flip",B],["partial",C],["partialRight",b],["rearg",U]],r1="[object Arguments]",y1="[object Array]",t3="[object AsyncFunction]",H1="[object Boolean]",g1="[object Date]",e4="[object DOMException]",Q2="[object Error]",X1="[object Function]",D3="[object GeneratorFunction]",I2="[object Map]",b6="[object Number]",Nr="[object Null]",F3="[object Object]",me="[object Promise]",k6="[object Proxy]",A6="[object RegExp]",O1="[object Set]",m4="[object String]",v0="[object Symbol]",P8="[object Undefined]",c4="[object WeakMap]",br="[object WeakSet]",E6="[object ArrayBuffer]",B4="[object DataView]",_8="[object Float32Array]",T8="[object Float64Array]",R8="[object Int8Array]",kr="[object Int16Array]",Ar="[object Int32Array]",Er="[object Uint8Array]",Pr="[object Uint8ClampedArray]",_r="[object Uint16Array]",Tr="[object Uint32Array]",Fv=/\b__p \+= '';/g,Bv=/\b(__p \+=) '' \+/g,Iv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wi=/&(?:amp|lt|gt|quot|#39);/g,Si=/[&<>"']/g,Uv=RegExp(wi.source),Wv=RegExp(Si.source),Gv=/<%-([\s\S]+?)%>/g,qv=/<%([\s\S]+?)%>/g,Ni=/<%=([\s\S]+?)%>/g,jv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xv=/^\w*$/,Yv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rr=/[\\^$.*+?()[\]{}|]/g,Kv=RegExp(Rr.source),Or=/^\s+/,Qv=/\s/,$v=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jv=/\{\n\/\* \[wrapped with (.+)\] \*/,Zv=/,? & /,ed=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cd=/[()=,{}\[\]\/\s]/,rd=/\\(\\)?/g,ad=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bi=/\w*$/,nd=/^[-+]0x[0-9a-f]+$/i,td=/^0b[01]+$/i,id=/^\[object .+?Constructor\]$/,sd=/^0o[0-7]+$/i,od=/^(?:0|[1-9]\d*)$/,ld=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,he=/($^)/,fd=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",ud="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",md="\\u20d0-\\u20ff",ki=ud+pd+md,Ai="\\u2700-\\u27bf",Ei="a-z\\xdf-\\xf6\\xf8-\\xff",hd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dd="\\u2000-\\u206f",zd=" \\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",Pi="A-Z\\xc0-\\xd6\\xd8-\\xde",_i="\\ufe0e\\ufe0f",Ti=hd+vd+dd+zd,Dr="['\u2019]",Hd="["+ve+"]",Ri="["+Ti+"]",de="["+ki+"]",Oi="\\d+",gd="["+Ai+"]",Di="["+Ei+"]",Fi="[^"+ve+Ti+Oi+Ai+Ei+Pi+"]",Fr="\\ud83c[\\udffb-\\udfff]",Vd="(?:"+de+"|"+Fr+")",Bi="[^"+ve+"]",Br="(?:\\ud83c[\\udde6-\\uddff]){2}",Ir="[\\ud800-\\udbff][\\udc00-\\udfff]",d0="["+Pi+"]",Ii="\\u200d",Ui="(?:"+Di+"|"+Fi+")",Md="(?:"+d0+"|"+Fi+")",Wi="(?:"+Dr+"(?:d|ll|m|re|s|t|ve))?",Gi="(?:"+Dr+"(?:D|LL|M|RE|S|T|VE))?",qi=Vd+"?",ji="["+_i+"]?",Cd="(?:"+Ii+"(?:"+[Bi,Br,Ir].join("|")+")"+ji+qi+")*",Ld="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=ji+qi+Cd,yd="(?:"+[gd,Br,Ir].join("|")+")"+Xi,wd="(?:"+[Bi+de+"?",de,Br,Ir,Hd].join("|")+")",Sd=RegExp(Dr,"g"),Nd=RegExp(de,"g"),Ur=RegExp(Fr+"(?="+Fr+")|"+wd+Xi,"g"),bd=RegExp([d0+"?"+Di+"+"+Wi+"(?="+[Ri,d0,"$"].join("|")+")",Md+"+"+Gi+"(?="+[Ri,d0+Ui,"$"].join("|")+")",d0+"?"+Ui+"+"+Wi,d0+"+"+Gi,xd,Ld,Oi,yd].join("|"),"g"),kd=RegExp("["+Ii+ve+ki+_i+"]"),Ad=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ed=["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"],Pd=-1,T2={};T2[_8]=T2[T8]=T2[R8]=T2[kr]=T2[Ar]=T2[Er]=T2[Pr]=T2[_r]=T2[Tr]=!0,T2[r1]=T2[y1]=T2[E6]=T2[H1]=T2[B4]=T2[g1]=T2[Q2]=T2[X1]=T2[I2]=T2[b6]=T2[F3]=T2[A6]=T2[O1]=T2[m4]=T2[c4]=!1;var E2={};E2[r1]=E2[y1]=E2[E6]=E2[B4]=E2[H1]=E2[g1]=E2[_8]=E2[T8]=E2[R8]=E2[kr]=E2[Ar]=E2[I2]=E2[b6]=E2[F3]=E2[A6]=E2[O1]=E2[m4]=E2[v0]=E2[Er]=E2[Pr]=E2[_r]=E2[Tr]=!0,E2[Q2]=E2[X1]=E2[c4]=!1;var _d={\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"},Td={"&":"&","<":"<",">":">",'"':""","'":"'"},Rd={"&":"&","<":"<",">":">",""":'"',"'":"'"},Od={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Dd=parseFloat,Fd=parseInt,Yi=typeof global=="object"&&global&&global.Object===Object&&global,Bd=typeof self=="object"&&self&&self.Object===Object&&self,h1=Yi||Bd||Function("return this")(),Wr=typeof b0=="object"&&b0&&!b0.nodeType&&b0,P6=Wr&&typeof J8=="object"&&J8&&!J8.nodeType&&J8,Ki=P6&&P6.exports===Wr,Gr=Ki&&Yi.process,V3=function(){try{var y=P6&&P6.require&&P6.require("util").types;return y||Gr&&Gr.binding&&Gr.binding("util")}catch{}}(),Qi=V3&&V3.isArrayBuffer,$i=V3&&V3.isDate,Ji=V3&&V3.isMap,Zi=V3&&V3.isRegExp,es=V3&&V3.isSet,cs=V3&&V3.isTypedArray;function i3(y,_,k){switch(k.length){case 0:return y.call(_);case 1:return y.call(_,k[0]);case 2:return y.call(_,k[0],k[1]);case 3:return y.call(_,k[0],k[1],k[2])}return y.apply(_,k)}function Id(y,_,k,Q){for(var o2=-1,x2=y==null?0:y.length;++o2-1}function qr(y,_,k){for(var Q=-1,o2=y==null?0:y.length;++Q-1;);return k}function ls(y,_){for(var k=y.length;k--&&z0(_,y[k],0)>-1;);return k}function Qd(y,_){for(var k=y.length,Q=0;k--;)y[k]===_&&++Q;return Q}var $d=Kr(_d),Jd=Kr(Td);function Zd(y){return"\\"+Od[y]}function ez(y,_){return y==null?e:y[_]}function H0(y){return kd.test(y)}function cz(y){return Ad.test(y)}function rz(y){for(var _,k=[];!(_=y.next()).done;)k.push(_.value);return k}function Zr(y){var _=-1,k=Array(y.size);return y.forEach(function(Q,o2){k[++_]=[o2,Q]}),k}function fs(y,_){return function(k){return y(_(k))}}function W4(y,_){for(var k=-1,Q=y.length,o2=0,x2=[];++k-1}function Wz(a,t){var o=this.__data__,f=_e(o,a);return f<0?(++this.size,o.push([a,t])):o[f][1]=t,this}h4.prototype.clear=Fz,h4.prototype.delete=Bz,h4.prototype.get=Iz,h4.prototype.has=Uz,h4.prototype.set=Wz;function v4(a){var t=-1,o=a==null?0:a.length;for(this.clear();++t=t?a:t)),a}function x3(a,t,o,f,m,d){var V,x=t&h,w=t&z,D=t&M;if(o&&(V=m?o(a,f,m,d):o(a)),V!==e)return V;if(!q2(a))return a;var F=l2(a);if(F){if(V=XH(a),!x)return Y1(a,V)}else{var I=S1(a),X=I==X1||I==D3;if(Q4(a))return js(a,x);if(I==F3||I==r1||X&&!m){if(V=w||X?{}:uo(a),!x)return w?RH(a,tH(V,a)):TH(a,Cs(V,a))}else{if(!E2[I])return m?a:{};V=YH(a,I,x)}}d||(d=new I3);var e2=d.get(a);if(e2)return e2;d.set(a,V),Io(a)?a.forEach(function(n2){V.add(x3(n2,t,o,n2,a,d))}):Fo(a)&&a.forEach(function(n2,d2){V.set(d2,x3(n2,t,o,d2,a,d))});var a2=D?w?ya:xa:w?Q1:v1,m2=F?e:a2(a);return M3(m2||a,function(n2,d2){m2&&(d2=n2,n2=a[d2]),W8(V,d2,x3(n2,t,o,d2,a,d))}),V}function iH(a){var t=v1(a);return function(o){return Ls(o,a,t)}}function Ls(a,t,o){var f=o.length;if(a==null)return!f;for(a=b2(a);f--;){var m=o[f],d=t[m],V=a[m];if(V===e&&!(m in a)||!d(V))return!1}return!0}function xs(a,t,o){if(typeof a!="function")throw new C3(i);return Q8(function(){a.apply(e,o)},t)}function G8(a,t,o,f){var m=-1,d=ze,V=!0,x=a.length,w=[],D=t.length;if(!x)return w;o&&(t=U2(t,s3(o))),f?(d=qr,V=!1):t.length>=r&&(d=O8,V=!1,t=new R6(t));e:for(;++mm?0:m+o),f=f===e||f>m?m:p2(f),f<0&&(f+=m),f=o>f?0:Wo(f);o0&&o(x)?t>1?V1(x,t-1,o,f,m):U4(m,x):f||(m[m.length]=x)}return m}var ia=Js(),Ss=Js(!0);function r4(a,t){return a&&ia(a,t,v1)}function sa(a,t){return a&&Ss(a,t,v1)}function Re(a,t){return I4(t,function(o){return V4(a[o])})}function D6(a,t){t=Y4(t,a);for(var o=0,f=t.length;a!=null&&ot}function lH(a,t){return a!=null&&w2.call(a,t)}function fH(a,t){return a!=null&&t in b2(a)}function uH(a,t,o){return a>=w1(t,o)&&a=120&&F.length>=120)?new R6(V&&F):e}F=a[0];var I=-1,X=x[0];e:for(;++I-1;)x!==a&&Se.call(x,w,1),Se.call(a,w,1);return a}function Ds(a,t){for(var o=a?t.length:0,f=o-1;o--;){var m=t[o];if(o==f||m!==d){var d=m;g4(m)?Se.call(a,m,1):za(a,m)}}return a}function ha(a,t){return a+ke(Hs()*(t-a+1))}function xH(a,t,o,f){for(var m=-1,d=l1(be((t-a)/(o||1)),0),V=k(d);d--;)V[f?d:++m]=a,a+=o;return V}function va(a,t){var o="";if(!a||t<1||t>q)return o;do t%2&&(o+=a),t=ke(t/2),t&&(a+=a);while(t);return o}function h2(a,t){return Ea(ho(a,t,$1),a+"")}function yH(a){return Ms(N0(a))}function wH(a,t){var o=N0(a);return Xe(o,O6(t,0,o.length))}function X8(a,t,o,f){if(!q2(a))return a;t=Y4(t,a);for(var m=-1,d=t.length,V=d-1,x=a;x!=null&&++mm?0:m+t),o=o>m?m:o,o<0&&(o+=m),m=t>o?0:o-t>>>0,t>>>=0;for(var d=k(m);++f>>1,V=a[d];V!==null&&!l3(V)&&(o?V<=t:V=r){var D=t?null:BH(a);if(D)return ge(D);V=!1,m=O8,w=new R6}else w=t?[]:x;e:for(;++f=f?a:y3(a,t,o)}var qs=zz||function(a){return h1.clearTimeout(a)};function js(a,t){if(t)return a.slice();var o=a.length,f=ms?ms(o):new a.constructor(o);return a.copy(f),f}function Ma(a){var t=new a.constructor(a.byteLength);return new ye(t).set(new ye(a)),t}function AH(a,t){var o=t?Ma(a.buffer):a.buffer;return new a.constructor(o,a.byteOffset,a.byteLength)}function EH(a){var t=new a.constructor(a.source,bi.exec(a));return t.lastIndex=a.lastIndex,t}function PH(a){return U8?b2(U8.call(a)):{}}function Xs(a,t){var o=t?Ma(a.buffer):a.buffer;return new a.constructor(o,a.byteOffset,a.length)}function Ys(a,t){if(a!==t){var o=a!==e,f=a===null,m=a===a,d=l3(a),V=t!==e,x=t===null,w=t===t,D=l3(t);if(!x&&!D&&!d&&a>t||d&&V&&w&&!x&&!D||f&&V&&w||!o&&w||!m)return 1;if(!f&&!d&&!D&&a=x)return w;var D=o[f];return w*(D=="desc"?-1:1)}}return a.index-t.index}function Ks(a,t,o,f){for(var m=-1,d=a.length,V=o.length,x=-1,w=t.length,D=l1(d-V,0),F=k(w+D),I=!f;++x1?o[m-1]:e,V=m>2?o[2]:e;for(d=a.length>3&&typeof d=="function"?(m--,d):e,V&&F1(o[0],o[1],V)&&(d=m<3?e:d,m=1),t=b2(t);++f-1?m[d?t[V]:V]:e}}function co(a){return H4(function(t){var o=t.length,f=o,m=L3.prototype.thru;for(a&&t.reverse();f--;){var d=t[f];if(typeof d!="function")throw new C3(i);if(m&&!V&&qe(d)=="wrapper")var V=new L3([],!0)}for(f=V?f:o;++f1&&g2.reverse(),F&&wx))return!1;var D=d.get(a),F=d.get(t);if(D&&F)return D==t&&F==a;var I=-1,X=!0,e2=o&S?new R6:e;for(d.set(a,t),d.set(t,a);++I1?"& ":"")+t[f],t=t.join(o>2?", ":" "),a.replace($v,`{ +(()=>{var ML=Object.create;var al=Object.defineProperty;var CL=Object.getOwnPropertyDescriptor;var LL=Object.getOwnPropertyNames;var xL=Object.getPrototypeOf,yL=Object.prototype.hasOwnProperty;var Z1=(e,c)=>()=>(c||e((c={exports:{}}).exports,c),c.exports);var wL=(e,c,r,n)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of LL(c))!yL.call(e,i)&&i!==r&&al(e,i,{get:()=>c[i],enumerable:!(n=CL(c,i))||n.enumerable});return e};var N2=(e,c,r)=>(r=e!=null?ML(xL(e)):{},wL(c||!e||!e.__esModule?al(r,"default",{value:e,enumerable:!0}):r,e));var Z8=Z1((A0,J8)=>{(function(){var e,c="4.17.21",r=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,p="__lodash_placeholder__",h=1,z=2,V=4,L=1,S=2,P=1,T=2,W=4,g=8,H=16,C=32,b=64,D=128,U=256,B=512,Z=30,A="...",N=800,E=16,R=1,j=2,K=3,Y=1/0,q=9007199254740991,t2=17976931348623157e292,o2=NaN,i2=4294967295,M2=i2-1,L2=i2>>>1,K2=[["ary",D],["bind",P],["bindKey",T],["curry",g],["curryRight",H],["flip",B],["partial",C],["partialRight",b],["rearg",U]],r1="[object Arguments]",w1="[object Array]",i3="[object AsyncFunction]",H1="[object Boolean]",g1="[object Date]",e4="[object DOMException]",Q2="[object Error]",Y1="[object Function]",O3="[object GeneratorFunction]",I2="[object Map]",A6="[object Number]",br="[object Null]",F3="[object Object]",he="[object Promise]",E6="[object Proxy]",P6="[object RegExp]",O1="[object Set]",h4="[object String]",z0="[object Symbol]",P8="[object Undefined]",c4="[object WeakMap]",kr="[object WeakSet]",_6="[object ArrayBuffer]",I4="[object DataView]",_8="[object Float32Array]",T8="[object Float64Array]",R8="[object Int8Array]",Ar="[object Int16Array]",Er="[object Int32Array]",Pr="[object Uint8Array]",_r="[object Uint8ClampedArray]",Tr="[object Uint16Array]",Rr="[object Uint32Array]",Ud=/\b__p \+= '';/g,Wd=/\b(__p \+=) '' \+/g,Gd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Si=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,qd=RegExp(Si.source),jd=RegExp(Ni.source),Xd=/<%-([\s\S]+?)%>/g,Yd=/<%([\s\S]+?)%>/g,bi=/<%=([\s\S]+?)%>/g,Kd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,$d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dr=/[\\^$.*+?()[\]{}|]/g,Jd=RegExp(Dr.source),Or=/^\s+/,Zd=/\s/,ev=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,cv=/\{\n\/\* \[wrapped with (.+)\] \*/,rv=/,? & /,av=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nv=/[()=,{}\[\]\/\s]/,tv=/\\(\\)?/g,iv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ki=/\w*$/,sv=/^[-+]0x[0-9a-f]+$/i,ov=/^0b[01]+$/i,lv=/^\[object .+?Constructor\]$/,fv=/^0o[0-7]+$/i,uv=/^(?:0|[1-9]\d*)$/,pv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,de=/($^)/,mv=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",hv="\\u0300-\\u036f",dv="\\ufe20-\\ufe2f",vv="\\u20d0-\\u20ff",Ai=hv+dv+vv,Ei="\\u2700-\\u27bf",Pi="a-z\\xdf-\\xf6\\xf8-\\xff",zv="\\xac\\xb1\\xd7\\xf7",Hv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gv="\\u2000-\\u206f",Vv=" \\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",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",Ti="\\ufe0e\\ufe0f",Ri=zv+Hv+gv+Vv,Fr="['\u2019]",Mv="["+ve+"]",Di="["+Ri+"]",ze="["+Ai+"]",Oi="\\d+",Cv="["+Ei+"]",Fi="["+Pi+"]",Bi="[^"+ve+Ri+Oi+Ei+Pi+_i+"]",Br="\\ud83c[\\udffb-\\udfff]",Lv="(?:"+ze+"|"+Br+")",Ii="[^"+ve+"]",Ir="(?:\\ud83c[\\udde6-\\uddff]){2}",Ur="[\\ud800-\\udbff][\\udc00-\\udfff]",H0="["+_i+"]",Ui="\\u200d",Wi="(?:"+Fi+"|"+Bi+")",xv="(?:"+H0+"|"+Bi+")",Gi="(?:"+Fr+"(?:d|ll|m|re|s|t|ve))?",qi="(?:"+Fr+"(?:D|LL|M|RE|S|T|VE))?",ji=Lv+"?",Xi="["+Ti+"]?",yv="(?:"+Ui+"(?:"+[Ii,Ir,Ur].join("|")+")"+Xi+ji+")*",wv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yi=Xi+ji+yv,Nv="(?:"+[Cv,Ir,Ur].join("|")+")"+Yi,bv="(?:"+[Ii+ze+"?",ze,Ir,Ur,Mv].join("|")+")",kv=RegExp(Fr,"g"),Av=RegExp(ze,"g"),Wr=RegExp(Br+"(?="+Br+")|"+bv+Yi,"g"),Ev=RegExp([H0+"?"+Fi+"+"+Gi+"(?="+[Di,H0,"$"].join("|")+")",xv+"+"+qi+"(?="+[Di,H0+Wi,"$"].join("|")+")",H0+"?"+Wi+"+"+Gi,H0+"+"+qi,Sv,wv,Oi,Nv].join("|"),"g"),Pv=RegExp("["+Ui+ve+Ai+Ti+"]"),_v=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tv=["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"],Rv=-1,T2={};T2[_8]=T2[T8]=T2[R8]=T2[Ar]=T2[Er]=T2[Pr]=T2[_r]=T2[Tr]=T2[Rr]=!0,T2[r1]=T2[w1]=T2[_6]=T2[H1]=T2[I4]=T2[g1]=T2[Q2]=T2[Y1]=T2[I2]=T2[A6]=T2[F3]=T2[P6]=T2[O1]=T2[h4]=T2[c4]=!1;var E2={};E2[r1]=E2[w1]=E2[_6]=E2[I4]=E2[H1]=E2[g1]=E2[_8]=E2[T8]=E2[R8]=E2[Ar]=E2[Er]=E2[I2]=E2[A6]=E2[F3]=E2[P6]=E2[O1]=E2[h4]=E2[z0]=E2[Pr]=E2[_r]=E2[Tr]=E2[Rr]=!0,E2[Q2]=E2[Y1]=E2[c4]=!1;var Dv={\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"},Ov={"&":"&","<":"<",">":">",'"':""","'":"'"},Fv={"&":"&","<":"<",">":">",""":'"',"'":"'"},Bv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Iv=parseFloat,Uv=parseInt,Ki=typeof global=="object"&&global&&global.Object===Object&&global,Wv=typeof self=="object"&&self&&self.Object===Object&&self,h1=Ki||Wv||Function("return this")(),Gr=typeof A0=="object"&&A0&&!A0.nodeType&&A0,T6=Gr&&typeof J8=="object"&&J8&&!J8.nodeType&&J8,Qi=T6&&T6.exports===Gr,qr=Qi&&Ki.process,M3=function(){try{var y=T6&&T6.require&&T6.require("util").types;return y||qr&&qr.binding&&qr.binding("util")}catch{}}(),$i=M3&&M3.isArrayBuffer,Ji=M3&&M3.isDate,Zi=M3&&M3.isMap,es=M3&&M3.isRegExp,cs=M3&&M3.isSet,rs=M3&&M3.isTypedArray;function s3(y,_,k){switch(k.length){case 0:return y.call(_);case 1:return y.call(_,k[0]);case 2:return y.call(_,k[0],k[1]);case 3:return y.call(_,k[0],k[1],k[2])}return y.apply(_,k)}function Gv(y,_,k,Q){for(var l2=-1,x2=y==null?0:y.length;++l2-1}function jr(y,_,k){for(var Q=-1,l2=y==null?0:y.length;++Q-1;);return k}function fs(y,_){for(var k=y.length;k--&&g0(_,y[k],0)>-1;);return k}function Zv(y,_){for(var k=y.length,Q=0;k--;)y[k]===_&&++Q;return Q}var ez=Qr(Dv),cz=Qr(Ov);function rz(y){return"\\"+Bv[y]}function az(y,_){return y==null?e:y[_]}function V0(y){return Pv.test(y)}function nz(y){return _v.test(y)}function tz(y){for(var _,k=[];!(_=y.next()).done;)k.push(_.value);return k}function ea(y){var _=-1,k=Array(y.size);return y.forEach(function(Q,l2){k[++_]=[l2,Q]}),k}function us(y,_){return function(k){return y(_(k))}}function G4(y,_){for(var k=-1,Q=y.length,l2=0,x2=[];++k-1}function jz(a,t){var o=this.__data__,f=Te(o,a);return f<0?(++this.size,o.push([a,t])):o[f][1]=t,this}d4.prototype.clear=Uz,d4.prototype.delete=Wz,d4.prototype.get=Gz,d4.prototype.has=qz,d4.prototype.set=jz;function v4(a){var t=-1,o=a==null?0:a.length;for(this.clear();++t=t?a:t)),a}function y3(a,t,o,f,m,v){var M,x=t&h,w=t&z,O=t&V;if(o&&(M=m?o(a,f,m,v):o(a)),M!==e)return M;if(!q2(a))return a;var F=f2(a);if(F){if(M=QH(a),!x)return K1(a,M)}else{var I=N1(a),X=I==Y1||I==O3;if($4(a))return Xs(a,x);if(I==F3||I==r1||X&&!m){if(M=w||X?{}:po(a),!x)return w?FH(a,oH(M,a)):OH(a,Ls(M,a))}else{if(!E2[I])return m?a:{};M=$H(a,I,x)}}v||(v=new I3);var e2=v.get(a);if(e2)return e2;v.set(a,M),Uo(a)?a.forEach(function(n2){M.add(y3(n2,t,o,n2,a,v))}):Bo(a)&&a.forEach(function(n2,v2){M.set(v2,y3(n2,t,o,v2,a,v))});var a2=O?w?wa:ya:w?$1:d1,m2=F?e:a2(a);return C3(m2||a,function(n2,v2){m2&&(v2=n2,n2=a[v2]),W8(M,v2,y3(n2,t,o,v2,a,v))}),M}function lH(a){var t=d1(a);return function(o){return xs(o,a,t)}}function xs(a,t,o){var f=o.length;if(a==null)return!f;for(a=b2(a);f--;){var m=o[f],v=t[m],M=a[m];if(M===e&&!(m in a)||!v(M))return!1}return!0}function ys(a,t,o){if(typeof a!="function")throw new L3(i);return Q8(function(){a.apply(e,o)},t)}function G8(a,t,o,f){var m=-1,v=He,M=!0,x=a.length,w=[],O=t.length;if(!x)return w;o&&(t=U2(t,o3(o))),f?(v=jr,M=!1):t.length>=r&&(v=D8,M=!1,t=new O6(t));e:for(;++mm?0:m+o),f=f===e||f>m?m:p2(f),f<0&&(f+=m),f=o>f?0:Go(f);o0&&o(x)?t>1?V1(x,t-1,o,f,m):W4(m,x):f||(m[m.length]=x)}return m}var sa=Zs(),Ns=Zs(!0);function r4(a,t){return a&&sa(a,t,d1)}function oa(a,t){return a&&Ns(a,t,d1)}function De(a,t){return U4(t,function(o){return M4(a[o])})}function B6(a,t){t=K4(t,a);for(var o=0,f=t.length;a!=null&&ot}function pH(a,t){return a!=null&&w2.call(a,t)}function mH(a,t){return a!=null&&t in b2(a)}function hH(a,t,o){return a>=S1(t,o)&&a=120&&F.length>=120)?new O6(M&&F):e}F=a[0];var I=-1,X=x[0];e:for(;++I-1;)x!==a&&Ne.call(x,w,1),Ne.call(a,w,1);return a}function Fs(a,t){for(var o=a?t.length:0,f=o-1;o--;){var m=t[o];if(o==f||m!==v){var v=m;V4(m)?Ne.call(a,m,1):Ha(a,m)}}return a}function da(a,t){return a+Ae(gs()*(t-a+1))}function SH(a,t,o,f){for(var m=-1,v=l1(ke((t-a)/(o||1)),0),M=k(v);v--;)M[f?v:++m]=a,a+=o;return M}function va(a,t){var o="";if(!a||t<1||t>q)return o;do t%2&&(o+=a),t=Ae(t/2),t&&(a+=a);while(t);return o}function h2(a,t){return Pa(vo(a,t,J1),a+"")}function NH(a){return Cs(k0(a))}function bH(a,t){var o=k0(a);return Ye(o,F6(t,0,o.length))}function X8(a,t,o,f){if(!q2(a))return a;t=K4(t,a);for(var m=-1,v=t.length,M=v-1,x=a;x!=null&&++mm?0:m+t),o=o>m?m:o,o<0&&(o+=m),m=t>o?0:o-t>>>0,t>>>=0;for(var v=k(m);++f>>1,M=a[v];M!==null&&!f3(M)&&(o?M<=t:M=r){var O=t?null:WH(a);if(O)return Ve(O);M=!1,m=D8,w=new O6}else w=t?[]:x;e:for(;++f=f?a:w3(a,t,o)}var js=Vz||function(a){return h1.clearTimeout(a)};function Xs(a,t){if(t)return a.slice();var o=a.length,f=hs?hs(o):new a.constructor(o);return a.copy(f),f}function Ca(a){var t=new a.constructor(a.byteLength);return new we(t).set(new we(a)),t}function _H(a,t){var o=t?Ca(a.buffer):a.buffer;return new a.constructor(o,a.byteOffset,a.byteLength)}function TH(a){var t=new a.constructor(a.source,ki.exec(a));return t.lastIndex=a.lastIndex,t}function RH(a){return U8?b2(U8.call(a)):{}}function Ys(a,t){var o=t?Ca(a.buffer):a.buffer;return new a.constructor(o,a.byteOffset,a.length)}function Ks(a,t){if(a!==t){var o=a!==e,f=a===null,m=a===a,v=f3(a),M=t!==e,x=t===null,w=t===t,O=f3(t);if(!x&&!O&&!v&&a>t||v&&M&&w&&!x&&!O||f&&M&&w||!o&&w||!m)return 1;if(!f&&!v&&!O&&a=x)return w;var O=o[f];return w*(O=="desc"?-1:1)}}return a.index-t.index}function Qs(a,t,o,f){for(var m=-1,v=a.length,M=o.length,x=-1,w=t.length,O=l1(v-M,0),F=k(w+O),I=!f;++x1?o[m-1]:e,M=m>2?o[2]:e;for(v=a.length>3&&typeof v=="function"?(m--,v):e,M&&B1(o[0],o[1],M)&&(v=m<3?e:v,m=1),t=b2(t);++f-1?m[v?t[M]:M]:e}}function ro(a){return g4(function(t){var o=t.length,f=o,m=x3.prototype.thru;for(a&&t.reverse();f--;){var v=t[f];if(typeof v!="function")throw new L3(i);if(m&&!M&&je(v)=="wrapper")var M=new x3([],!0)}for(f=M?f:o;++f1&&g2.reverse(),F&&wx))return!1;var O=v.get(a),F=v.get(t);if(O&&F)return O==t&&F==a;var I=-1,X=!0,e2=o&S?new O6:e;for(v.set(a,t),v.set(t,a);++I1?"& ":"")+t[f],t=t.join(o>2?", ":" "),a.replace(ev,`{ /* [wrapped with `+t+`] */ -`)}function QH(a){return l2(a)||I6(a)||!!(ds&&a&&a[ds])}function g4(a,t){var o=typeof a;return t=t??q,!!t&&(o=="number"||o!="symbol"&&od.test(a))&&a>-1&&a%1==0&&a0){if(++t>=N)return arguments[0]}else t=0;return a.apply(e,arguments)}}function Xe(a,t){var o=-1,f=a.length,m=f-1;for(t=t===e?f:t;++o1?a[t-1]:e;return o=typeof o=="function"?(a.pop(),o):e,So(a,o)});function No(a){var t=v(a);return t.__chain__=!0,t}function sV(a,t){return t(a),a}function Ye(a,t){return t(a)}var oV=H4(function(a){var t=a.length,o=t?a[0]:0,f=this.__wrapped__,m=function(d){return ta(d,a)};return t>1||this.__actions__.length||!(f instanceof z2)||!g4(o)?this.thru(m):(f=f.slice(o,+o+(t?1:0)),f.__actions__.push({func:Ye,args:[m],thisArg:e}),new L3(f,this.__chain__).thru(function(d){return t&&!d.length&&d.push(e),d}))});function lV(){return No(this)}function fV(){return new L3(this.value(),this.__chain__)}function uV(){this.__values__===e&&(this.__values__=Uo(this.value()));var a=this.__index__>=this.__values__.length,t=a?e:this.__values__[this.__index__++];return{done:a,value:t}}function pV(){return this}function mV(a){for(var t,o=this;o instanceof Pe;){var f=Mo(o);f.__index__=0,f.__values__=e,t?m.__wrapped__=f:t=f;var m=f;o=o.__wrapped__}return m.__wrapped__=a,t}function hV(){var a=this.__wrapped__;if(a instanceof z2){var t=a;return this.__actions__.length&&(t=new z2(this)),t=t.reverse(),t.__actions__.push({func:Ye,args:[Pa],thisArg:e}),new L3(t,this.__chain__)}return this.thru(Pa)}function vV(){return Ws(this.__wrapped__,this.__actions__)}var dV=Be(function(a,t,o){w2.call(a,o)?++a[o]:d4(a,o,1)});function zV(a,t,o){var f=l2(a)?rs:sH;return o&&F1(a,t,o)&&(t=e),f(a,r2(t,3))}function HV(a,t){var o=l2(a)?I4:ws;return o(a,r2(t,3))}var gV=eo(Co),VV=eo(Lo);function MV(a,t){return V1(Ke(a,t),1)}function CV(a,t){return V1(Ke(a,t),Y)}function LV(a,t,o){return o=o===e?1:p2(o),V1(Ke(a,t),o)}function bo(a,t){var o=l2(a)?M3:j4;return o(a,r2(t,3))}function ko(a,t){var o=l2(a)?Ud:ys;return o(a,r2(t,3))}var xV=Be(function(a,t,o){w2.call(a,o)?a[o].push(t):d4(a,o,[t])});function yV(a,t,o,f){a=K1(a)?a:N0(a),o=o&&!f?p2(o):0;var m=a.length;return o<0&&(o=l1(m+o,0)),e7(a)?o<=m&&a.indexOf(t,o)>-1:!!m&&z0(a,t,o)>-1}var wV=h2(function(a,t,o){var f=-1,m=typeof t=="function",d=K1(a)?k(a.length):[];return j4(a,function(V){d[++f]=m?i3(t,V,o):q8(V,t,o)}),d}),SV=Be(function(a,t,o){d4(a,o,t)});function Ke(a,t){var o=l2(a)?U2:Es;return o(a,r2(t,3))}function NV(a,t,o,f){return a==null?[]:(l2(t)||(t=t==null?[]:[t]),o=f?e:o,l2(o)||(o=o==null?[]:[o]),Rs(a,t,o))}var bV=Be(function(a,t,o){a[o?0:1].push(t)},function(){return[[],[]]});function kV(a,t,o){var f=l2(a)?jr:is,m=arguments.length<3;return f(a,r2(t,4),o,m,j4)}function AV(a,t,o){var f=l2(a)?Wd:is,m=arguments.length<3;return f(a,r2(t,4),o,m,ys)}function EV(a,t){var o=l2(a)?I4:ws;return o(a,Je(r2(t,3)))}function PV(a){var t=l2(a)?Ms:yH;return t(a)}function _V(a,t,o){(o?F1(a,t,o):t===e)?t=1:t=p2(t);var f=l2(a)?rH:wH;return f(a,t)}function TV(a){var t=l2(a)?aH:NH;return t(a)}function RV(a){if(a==null)return 0;if(K1(a))return e7(a)?g0(a):a.length;var t=S1(a);return t==I2||t==O1?a.size:ua(a).length}function OV(a,t,o){var f=l2(a)?Xr:bH;return o&&F1(a,t,o)&&(t=e),f(a,r2(t,3))}var DV=h2(function(a,t){if(a==null)return[];var o=t.length;return o>1&&F1(a,t[0],t[1])?t=[]:o>2&&F1(t[0],t[1],t[2])&&(t=[t[0]]),Rs(a,V1(t,1),[])}),Qe=Hz||function(){return h1.Date.now()};function FV(a,t){if(typeof t!="function")throw new C3(i);return a=p2(a),function(){if(--a<1)return t.apply(this,arguments)}}function Ao(a,t,o){return t=o?e:t,t=a&&t==null?a.length:t,z4(a,O,e,e,e,e,t)}function Eo(a,t){var o;if(typeof t!="function")throw new C3(i);return a=p2(a),function(){return--a>0&&(o=t.apply(this,arguments)),a<=1&&(t=e),o}}var Ta=h2(function(a,t,o){var f=P;if(o.length){var m=W4(o,w0(Ta));f|=C}return z4(a,f,t,o,m)}),Po=h2(function(a,t,o){var f=P|R;if(o.length){var m=W4(o,w0(Po));f|=C}return z4(t,f,a,o,m)});function _o(a,t,o){t=o?e:t;var f=z4(a,g,e,e,e,e,e,t);return f.placeholder=_o.placeholder,f}function To(a,t,o){t=o?e:t;var f=z4(a,H,e,e,e,e,e,t);return f.placeholder=To.placeholder,f}function Ro(a,t,o){var f,m,d,V,x,w,D=0,F=!1,I=!1,X=!0;if(typeof a!="function")throw new C3(i);t=S3(t)||0,q2(o)&&(F=!!o.leading,I="maxWait"in o,d=I?l1(S3(o.maxWait)||0,t):d,X="trailing"in o?!!o.trailing:X);function e2(n1){var W3=f,C4=m;return f=m=e,D=n1,V=a.apply(C4,W3),V}function a2(n1){return D=n1,x=Q8(d2,t),F?e2(n1):V}function m2(n1){var W3=n1-w,C4=n1-D,cl=t-W3;return I?w1(cl,d-C4):cl}function n2(n1){var W3=n1-w,C4=n1-D;return w===e||W3>=t||W3<0||I&&C4>=d}function d2(){var n1=Qe();if(n2(n1))return g2(n1);x=Q8(d2,m2(n1))}function g2(n1){return x=e,X&&f?e2(n1):(f=m=e,V)}function f3(){x!==e&&qs(x),D=0,f=w=m=x=e}function B1(){return x===e?V:g2(Qe())}function u3(){var n1=Qe(),W3=n2(n1);if(f=arguments,m=this,w=n1,W3){if(x===e)return a2(w);if(I)return qs(x),x=Q8(d2,t),e2(w)}return x===e&&(x=Q8(d2,t)),V}return u3.cancel=f3,u3.flush=B1,u3}var BV=h2(function(a,t){return xs(a,1,t)}),IV=h2(function(a,t,o){return xs(a,S3(t)||0,o)});function UV(a){return z4(a,B)}function $e(a,t){if(typeof a!="function"||t!=null&&typeof t!="function")throw new C3(i);var o=function(){var f=arguments,m=t?t.apply(this,f):f[0],d=o.cache;if(d.has(m))return d.get(m);var V=a.apply(this,f);return o.cache=d.set(m,V)||d,V};return o.cache=new($e.Cache||v4),o}$e.Cache=v4;function Je(a){if(typeof a!="function")throw new C3(i);return function(){var t=arguments;switch(t.length){case 0:return!a.call(this);case 1:return!a.call(this,t[0]);case 2:return!a.call(this,t[0],t[1]);case 3:return!a.call(this,t[0],t[1],t[2])}return!a.apply(this,t)}}function WV(a){return Eo(2,a)}var GV=kH(function(a,t){t=t.length==1&&l2(t[0])?U2(t[0],s3(r2())):U2(V1(t,1),s3(r2()));var o=t.length;return h2(function(f){for(var m=-1,d=w1(f.length,o);++m=t}),I6=bs(function(){return arguments}())?bs:function(a){return $2(a)&&w2.call(a,"callee")&&!vs.call(a,"callee")},l2=k.isArray,tM=Qi?s3(Qi):mH;function K1(a){return a!=null&&Ze(a.length)&&!V4(a)}function a1(a){return $2(a)&&K1(a)}function iM(a){return a===!0||a===!1||$2(a)&&D1(a)==H1}var Q4=Vz||Xa,sM=$i?s3($i):hH;function oM(a){return $2(a)&&a.nodeType===1&&!$8(a)}function lM(a){if(a==null)return!0;if(K1(a)&&(l2(a)||typeof a=="string"||typeof a.splice=="function"||Q4(a)||S0(a)||I6(a)))return!a.length;var t=S1(a);if(t==I2||t==O1)return!a.size;if(K8(a))return!ua(a).length;for(var o in a)if(w2.call(a,o))return!1;return!0}function fM(a,t){return j8(a,t)}function uM(a,t,o){o=typeof o=="function"?o:e;var f=o?o(a,t):e;return f===e?j8(a,t,e,o):!!f}function Oa(a){if(!$2(a))return!1;var t=D1(a);return t==Q2||t==e4||typeof a.message=="string"&&typeof a.name=="string"&&!$8(a)}function pM(a){return typeof a=="number"&&zs(a)}function V4(a){if(!q2(a))return!1;var t=D1(a);return t==X1||t==D3||t==t3||t==k6}function Do(a){return typeof a=="number"&&a==p2(a)}function Ze(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=q}function q2(a){var t=typeof a;return a!=null&&(t=="object"||t=="function")}function $2(a){return a!=null&&typeof a=="object"}var Fo=Ji?s3(Ji):dH;function mM(a,t){return a===t||fa(a,t,Sa(t))}function hM(a,t,o){return o=typeof o=="function"?o:e,fa(a,t,Sa(t),o)}function vM(a){return Bo(a)&&a!=+a}function dM(a){if(ZH(a))throw new o2(n);return ks(a)}function zM(a){return a===null}function HM(a){return a==null}function Bo(a){return typeof a=="number"||$2(a)&&D1(a)==b6}function $8(a){if(!$2(a)||D1(a)!=F3)return!1;var t=we(a);if(t===null)return!0;var o=w2.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Ce.call(o)==hz}var Da=Zi?s3(Zi):zH;function gM(a){return Do(a)&&a>=-q&&a<=q}var Io=es?s3(es):HH;function e7(a){return typeof a=="string"||!l2(a)&&$2(a)&&D1(a)==m4}function l3(a){return typeof a=="symbol"||$2(a)&&D1(a)==v0}var S0=cs?s3(cs):gH;function VM(a){return a===e}function MM(a){return $2(a)&&S1(a)==c4}function CM(a){return $2(a)&&D1(a)==br}var LM=Ge(pa),xM=Ge(function(a,t){return a<=t});function Uo(a){if(!a)return[];if(K1(a))return e7(a)?B3(a):Y1(a);if(D8&&a[D8])return rz(a[D8]());var t=S1(a),o=t==I2?Zr:t==O1?ge:N0;return o(a)}function M4(a){if(!a)return a===0?a:0;if(a=S3(a),a===Y||a===-Y){var t=a<0?-1:1;return t*t2}return a===a?a:0}function p2(a){var t=M4(a),o=t%1;return t===t?o?t-o:t:0}function Wo(a){return a?O6(p2(a),0,i2):0}function S3(a){if(typeof a=="number")return a;if(l3(a))return s2;if(q2(a)){var t=typeof a.valueOf=="function"?a.valueOf():a;a=q2(t)?t+"":t}if(typeof a!="string")return a===0?a:+a;a=ss(a);var o=td.test(a);return o||sd.test(a)?Fd(a.slice(2),o?2:8):nd.test(a)?s2:+a}function Go(a){return a4(a,Q1(a))}function yM(a){return a?O6(p2(a),-q,q):a===0?a:0}function y2(a){return a==null?"":o3(a)}var wM=x0(function(a,t){if(K8(t)||K1(t)){a4(t,v1(t),a);return}for(var o in t)w2.call(t,o)&&W8(a,o,t[o])}),qo=x0(function(a,t){a4(t,Q1(t),a)}),c7=x0(function(a,t,o,f){a4(t,Q1(t),a,f)}),SM=x0(function(a,t,o,f){a4(t,v1(t),a,f)}),NM=H4(ta);function bM(a,t){var o=L0(a);return t==null?o:Cs(o,t)}var kM=h2(function(a,t){a=b2(a);var o=-1,f=t.length,m=f>2?t[2]:e;for(m&&F1(t[0],t[1],m)&&(f=1);++o1),d}),a4(a,ya(a),o),f&&(o=x3(o,h|z|M,IH));for(var m=t.length;m--;)za(o,t[m]);return o});function YM(a,t){return Xo(a,Je(r2(t)))}var KM=H4(function(a,t){return a==null?{}:CH(a,t)});function Xo(a,t){if(a==null)return{};var o=U2(ya(a),function(f){return[f]});return t=r2(t),Os(a,o,function(f,m){return t(f,m[0])})}function QM(a,t,o){t=Y4(t,a);var f=-1,m=t.length;for(m||(m=1,a=e);++ft){var f=a;a=t,t=f}if(o||a%1||t%1){var m=Hs();return w1(a+m*(t-a+Dd("1e-"+((m+"").length-1))),t)}return ha(a,t)}var sC=y0(function(a,t,o){return t=t.toLowerCase(),a+(o?Qo(t):t)});function Qo(a){return Ia(y2(a).toLowerCase())}function $o(a){return a=y2(a),a&&a.replace(ld,$d).replace(Nd,"")}function oC(a,t,o){a=y2(a),t=o3(t);var f=a.length;o=o===e?f:O6(p2(o),0,f);var m=o;return o-=t.length,o>=0&&a.slice(o,m)==t}function lC(a){return a=y2(a),a&&Wv.test(a)?a.replace(Si,Jd):a}function fC(a){return a=y2(a),a&&Kv.test(a)?a.replace(Rr,"\\$&"):a}var uC=y0(function(a,t,o){return a+(o?"-":"")+t.toLowerCase()}),pC=y0(function(a,t,o){return a+(o?" ":"")+t.toLowerCase()}),mC=Zs("toLowerCase");function hC(a,t,o){a=y2(a),t=p2(t);var f=t?g0(a):0;if(!t||f>=t)return a;var m=(t-f)/2;return We(ke(m),o)+a+We(be(m),o)}function vC(a,t,o){a=y2(a),t=p2(t);var f=t?g0(a):0;return t&&f>>0,o?(a=y2(a),a&&(typeof t=="string"||t!=null&&!Da(t))&&(t=o3(t),!t&&H0(a))?K4(B3(a),0,o):a.split(t,o)):[]}var CC=y0(function(a,t,o){return a+(o?" ":"")+Ia(t)});function LC(a,t,o){return a=y2(a),o=o==null?0:O6(p2(o),0,a.length),t=o3(t),a.slice(o,o+t.length)==t}function xC(a,t,o){var f=v.templateSettings;o&&F1(a,t,o)&&(t=e),a=y2(a),t=c7({},t,f,io);var m=c7({},t.imports,f.imports,io),d=v1(m),V=Jr(m,d),x,w,D=0,F=t.interpolate||he,I="__p += '",X=ea((t.escape||he).source+"|"+F.source+"|"+(F===Ni?ad:he).source+"|"+(t.evaluate||he).source+"|$","g"),e2="//# sourceURL="+(w2.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pd+"]")+` -`;a.replace(X,function(n2,d2,g2,f3,B1,u3){return g2||(g2=f3),I+=a.slice(D,u3).replace(fd,Zd),d2&&(x=!0,I+=`' + -__e(`+d2+`) + -'`),B1&&(w=!0,I+=`'; -`+B1+`; +`)}function ZH(a){return f2(a)||W6(a)||!!(zs&&a&&a[zs])}function V4(a,t){var o=typeof a;return t=t??q,!!t&&(o=="number"||o!="symbol"&&uv.test(a))&&a>-1&&a%1==0&&a0){if(++t>=N)return arguments[0]}else t=0;return a.apply(e,arguments)}}function Ye(a,t){var o=-1,f=a.length,m=f-1;for(t=t===e?f:t;++o1?a[t-1]:e;return o=typeof o=="function"?(a.pop(),o):e,No(a,o)});function bo(a){var t=d(a);return t.__chain__=!0,t}function fV(a,t){return t(a),a}function Ke(a,t){return t(a)}var uV=g4(function(a){var t=a.length,o=t?a[0]:0,f=this.__wrapped__,m=function(v){return ia(v,a)};return t>1||this.__actions__.length||!(f instanceof z2)||!V4(o)?this.thru(m):(f=f.slice(o,+o+(t?1:0)),f.__actions__.push({func:Ke,args:[m],thisArg:e}),new x3(f,this.__chain__).thru(function(v){return t&&!v.length&&v.push(e),v}))});function pV(){return bo(this)}function mV(){return new x3(this.value(),this.__chain__)}function hV(){this.__values__===e&&(this.__values__=Wo(this.value()));var a=this.__index__>=this.__values__.length,t=a?e:this.__values__[this.__index__++];return{done:a,value:t}}function dV(){return this}function vV(a){for(var t,o=this;o instanceof _e;){var f=Co(o);f.__index__=0,f.__values__=e,t?m.__wrapped__=f:t=f;var m=f;o=o.__wrapped__}return m.__wrapped__=a,t}function zV(){var a=this.__wrapped__;if(a instanceof z2){var t=a;return this.__actions__.length&&(t=new z2(this)),t=t.reverse(),t.__actions__.push({func:Ke,args:[_a],thisArg:e}),new x3(t,this.__chain__)}return this.thru(_a)}function HV(){return Gs(this.__wrapped__,this.__actions__)}var gV=Ie(function(a,t,o){w2.call(a,o)?++a[o]:z4(a,o,1)});function VV(a,t,o){var f=f2(a)?as:fH;return o&&B1(a,t,o)&&(t=e),f(a,r2(t,3))}function MV(a,t){var o=f2(a)?U4:Ss;return o(a,r2(t,3))}var CV=co(Lo),LV=co(xo);function xV(a,t){return V1(Qe(a,t),1)}function yV(a,t){return V1(Qe(a,t),Y)}function wV(a,t,o){return o=o===e?1:p2(o),V1(Qe(a,t),o)}function ko(a,t){var o=f2(a)?C3:X4;return o(a,r2(t,3))}function Ao(a,t){var o=f2(a)?qv:ws;return o(a,r2(t,3))}var SV=Ie(function(a,t,o){w2.call(a,o)?a[o].push(t):z4(a,o,[t])});function NV(a,t,o,f){a=Q1(a)?a:k0(a),o=o&&!f?p2(o):0;var m=a.length;return o<0&&(o=l1(m+o,0)),c7(a)?o<=m&&a.indexOf(t,o)>-1:!!m&&g0(a,t,o)>-1}var bV=h2(function(a,t,o){var f=-1,m=typeof t=="function",v=Q1(a)?k(a.length):[];return X4(a,function(M){v[++f]=m?s3(t,M,o):q8(M,t,o)}),v}),kV=Ie(function(a,t,o){z4(a,o,t)});function Qe(a,t){var o=f2(a)?U2:Ps;return o(a,r2(t,3))}function AV(a,t,o,f){return a==null?[]:(f2(t)||(t=t==null?[]:[t]),o=f?e:o,f2(o)||(o=o==null?[]:[o]),Ds(a,t,o))}var EV=Ie(function(a,t,o){a[o?0:1].push(t)},function(){return[[],[]]});function PV(a,t,o){var f=f2(a)?Xr:ss,m=arguments.length<3;return f(a,r2(t,4),o,m,X4)}function _V(a,t,o){var f=f2(a)?jv:ss,m=arguments.length<3;return f(a,r2(t,4),o,m,ws)}function TV(a,t){var o=f2(a)?U4:Ss;return o(a,Ze(r2(t,3)))}function RV(a){var t=f2(a)?Cs:NH;return t(a)}function DV(a,t,o){(o?B1(a,t,o):t===e)?t=1:t=p2(t);var f=f2(a)?tH:bH;return f(a,t)}function OV(a){var t=f2(a)?iH:AH;return t(a)}function FV(a){if(a==null)return 0;if(Q1(a))return c7(a)?M0(a):a.length;var t=N1(a);return t==I2||t==O1?a.size:pa(a).length}function BV(a,t,o){var f=f2(a)?Yr:EH;return o&&B1(a,t,o)&&(t=e),f(a,r2(t,3))}var IV=h2(function(a,t){if(a==null)return[];var o=t.length;return o>1&&B1(a,t[0],t[1])?t=[]:o>2&&B1(t[0],t[1],t[2])&&(t=[t[0]]),Ds(a,V1(t,1),[])}),$e=Mz||function(){return h1.Date.now()};function UV(a,t){if(typeof t!="function")throw new L3(i);return a=p2(a),function(){if(--a<1)return t.apply(this,arguments)}}function Eo(a,t,o){return t=o?e:t,t=a&&t==null?a.length:t,H4(a,D,e,e,e,e,t)}function Po(a,t){var o;if(typeof t!="function")throw new L3(i);return a=p2(a),function(){return--a>0&&(o=t.apply(this,arguments)),a<=1&&(t=e),o}}var Ra=h2(function(a,t,o){var f=P;if(o.length){var m=G4(o,N0(Ra));f|=C}return H4(a,f,t,o,m)}),_o=h2(function(a,t,o){var f=P|T;if(o.length){var m=G4(o,N0(_o));f|=C}return H4(t,f,a,o,m)});function To(a,t,o){t=o?e:t;var f=H4(a,g,e,e,e,e,e,t);return f.placeholder=To.placeholder,f}function Ro(a,t,o){t=o?e:t;var f=H4(a,H,e,e,e,e,e,t);return f.placeholder=Ro.placeholder,f}function Do(a,t,o){var f,m,v,M,x,w,O=0,F=!1,I=!1,X=!0;if(typeof a!="function")throw new L3(i);t=N3(t)||0,q2(o)&&(F=!!o.leading,I="maxWait"in o,v=I?l1(N3(o.maxWait)||0,t):v,X="trailing"in o?!!o.trailing:X);function e2(n1){var W3=f,L4=m;return f=m=e,O=n1,M=a.apply(L4,W3),M}function a2(n1){return O=n1,x=Q8(v2,t),F?e2(n1):M}function m2(n1){var W3=n1-w,L4=n1-O,rl=t-W3;return I?S1(rl,v-L4):rl}function n2(n1){var W3=n1-w,L4=n1-O;return w===e||W3>=t||W3<0||I&&L4>=v}function v2(){var n1=$e();if(n2(n1))return g2(n1);x=Q8(v2,m2(n1))}function g2(n1){return x=e,X&&f?e2(n1):(f=m=e,M)}function u3(){x!==e&&js(x),O=0,f=w=m=x=e}function I1(){return x===e?M:g2($e())}function p3(){var n1=$e(),W3=n2(n1);if(f=arguments,m=this,w=n1,W3){if(x===e)return a2(w);if(I)return js(x),x=Q8(v2,t),e2(w)}return x===e&&(x=Q8(v2,t)),M}return p3.cancel=u3,p3.flush=I1,p3}var WV=h2(function(a,t){return ys(a,1,t)}),GV=h2(function(a,t,o){return ys(a,N3(t)||0,o)});function qV(a){return H4(a,B)}function Je(a,t){if(typeof a!="function"||t!=null&&typeof t!="function")throw new L3(i);var o=function(){var f=arguments,m=t?t.apply(this,f):f[0],v=o.cache;if(v.has(m))return v.get(m);var M=a.apply(this,f);return o.cache=v.set(m,M)||v,M};return o.cache=new(Je.Cache||v4),o}Je.Cache=v4;function Ze(a){if(typeof a!="function")throw new L3(i);return function(){var t=arguments;switch(t.length){case 0:return!a.call(this);case 1:return!a.call(this,t[0]);case 2:return!a.call(this,t[0],t[1]);case 3:return!a.call(this,t[0],t[1],t[2])}return!a.apply(this,t)}}function jV(a){return Po(2,a)}var XV=PH(function(a,t){t=t.length==1&&f2(t[0])?U2(t[0],o3(r2())):U2(V1(t,1),o3(r2()));var o=t.length;return h2(function(f){for(var m=-1,v=S1(f.length,o);++m=t}),W6=ks(function(){return arguments}())?ks:function(a){return $2(a)&&w2.call(a,"callee")&&!vs.call(a,"callee")},f2=k.isArray,oM=$i?o3($i):vH;function Q1(a){return a!=null&&e7(a.length)&&!M4(a)}function a1(a){return $2(a)&&Q1(a)}function lM(a){return a===!0||a===!1||$2(a)&&F1(a)==H1}var $4=Lz||Ya,fM=Ji?o3(Ji):zH;function uM(a){return $2(a)&&a.nodeType===1&&!$8(a)}function pM(a){if(a==null)return!0;if(Q1(a)&&(f2(a)||typeof a=="string"||typeof a.splice=="function"||$4(a)||b0(a)||W6(a)))return!a.length;var t=N1(a);if(t==I2||t==O1)return!a.size;if(K8(a))return!pa(a).length;for(var o in a)if(w2.call(a,o))return!1;return!0}function mM(a,t){return j8(a,t)}function hM(a,t,o){o=typeof o=="function"?o:e;var f=o?o(a,t):e;return f===e?j8(a,t,e,o):!!f}function Oa(a){if(!$2(a))return!1;var t=F1(a);return t==Q2||t==e4||typeof a.message=="string"&&typeof a.name=="string"&&!$8(a)}function dM(a){return typeof a=="number"&&Hs(a)}function M4(a){if(!q2(a))return!1;var t=F1(a);return t==Y1||t==O3||t==i3||t==E6}function Fo(a){return typeof a=="number"&&a==p2(a)}function e7(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=q}function q2(a){var t=typeof a;return a!=null&&(t=="object"||t=="function")}function $2(a){return a!=null&&typeof a=="object"}var Bo=Zi?o3(Zi):gH;function vM(a,t){return a===t||ua(a,t,Na(t))}function zM(a,t,o){return o=typeof o=="function"?o:e,ua(a,t,Na(t),o)}function HM(a){return Io(a)&&a!=+a}function gM(a){if(rg(a))throw new l2(n);return As(a)}function VM(a){return a===null}function MM(a){return a==null}function Io(a){return typeof a=="number"||$2(a)&&F1(a)==A6}function $8(a){if(!$2(a)||F1(a)!=F3)return!1;var t=Se(a);if(t===null)return!0;var o=w2.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Le.call(o)==zz}var Fa=es?o3(es):VH;function CM(a){return Fo(a)&&a>=-q&&a<=q}var Uo=cs?o3(cs):MH;function c7(a){return typeof a=="string"||!f2(a)&&$2(a)&&F1(a)==h4}function f3(a){return typeof a=="symbol"||$2(a)&&F1(a)==z0}var b0=rs?o3(rs):CH;function LM(a){return a===e}function xM(a){return $2(a)&&N1(a)==c4}function yM(a){return $2(a)&&F1(a)==kr}var wM=qe(ma),SM=qe(function(a,t){return a<=t});function Wo(a){if(!a)return[];if(Q1(a))return c7(a)?B3(a):K1(a);if(O8&&a[O8])return tz(a[O8]());var t=N1(a),o=t==I2?ea:t==O1?Ve:k0;return o(a)}function C4(a){if(!a)return a===0?a:0;if(a=N3(a),a===Y||a===-Y){var t=a<0?-1:1;return t*t2}return a===a?a:0}function p2(a){var t=C4(a),o=t%1;return t===t?o?t-o:t:0}function Go(a){return a?F6(p2(a),0,i2):0}function N3(a){if(typeof a=="number")return a;if(f3(a))return o2;if(q2(a)){var t=typeof a.valueOf=="function"?a.valueOf():a;a=q2(t)?t+"":t}if(typeof a!="string")return a===0?a:+a;a=os(a);var o=ov.test(a);return o||fv.test(a)?Uv(a.slice(2),o?2:8):sv.test(a)?o2:+a}function qo(a){return a4(a,$1(a))}function NM(a){return a?F6(p2(a),-q,q):a===0?a:0}function y2(a){return a==null?"":l3(a)}var bM=w0(function(a,t){if(K8(t)||Q1(t)){a4(t,d1(t),a);return}for(var o in t)w2.call(t,o)&&W8(a,o,t[o])}),jo=w0(function(a,t){a4(t,$1(t),a)}),r7=w0(function(a,t,o,f){a4(t,$1(t),a,f)}),kM=w0(function(a,t,o,f){a4(t,d1(t),a,f)}),AM=g4(ia);function EM(a,t){var o=y0(a);return t==null?o:Ls(o,t)}var PM=h2(function(a,t){a=b2(a);var o=-1,f=t.length,m=f>2?t[2]:e;for(m&&B1(t[0],t[1],m)&&(f=1);++o1),v}),a4(a,wa(a),o),f&&(o=y3(o,h|z|V,GH));for(var m=t.length;m--;)Ha(o,t[m]);return o});function $M(a,t){return Yo(a,Ze(r2(t)))}var JM=g4(function(a,t){return a==null?{}:yH(a,t)});function Yo(a,t){if(a==null)return{};var o=U2(wa(a),function(f){return[f]});return t=r2(t),Os(a,o,function(f,m){return t(f,m[0])})}function ZM(a,t,o){t=K4(t,a);var f=-1,m=t.length;for(m||(m=1,a=e);++ft){var f=a;a=t,t=f}if(o||a%1||t%1){var m=gs();return S1(a+m*(t-a+Iv("1e-"+((m+"").length-1))),t)}return da(a,t)}var fC=S0(function(a,t,o){return t=t.toLowerCase(),a+(o?$o(t):t)});function $o(a){return Ua(y2(a).toLowerCase())}function Jo(a){return a=y2(a),a&&a.replace(pv,ez).replace(Av,"")}function uC(a,t,o){a=y2(a),t=l3(t);var f=a.length;o=o===e?f:F6(p2(o),0,f);var m=o;return o-=t.length,o>=0&&a.slice(o,m)==t}function pC(a){return a=y2(a),a&&jd.test(a)?a.replace(Ni,cz):a}function mC(a){return a=y2(a),a&&Jd.test(a)?a.replace(Dr,"\\$&"):a}var hC=S0(function(a,t,o){return a+(o?"-":"")+t.toLowerCase()}),dC=S0(function(a,t,o){return a+(o?" ":"")+t.toLowerCase()}),vC=eo("toLowerCase");function zC(a,t,o){a=y2(a),t=p2(t);var f=t?M0(a):0;if(!t||f>=t)return a;var m=(t-f)/2;return Ge(Ae(m),o)+a+Ge(ke(m),o)}function HC(a,t,o){a=y2(a),t=p2(t);var f=t?M0(a):0;return t&&f>>0,o?(a=y2(a),a&&(typeof t=="string"||t!=null&&!Fa(t))&&(t=l3(t),!t&&V0(a))?Q4(B3(a),0,o):a.split(t,o)):[]}var yC=S0(function(a,t,o){return a+(o?" ":"")+Ua(t)});function wC(a,t,o){return a=y2(a),o=o==null?0:F6(p2(o),0,a.length),t=l3(t),a.slice(o,o+t.length)==t}function SC(a,t,o){var f=d.templateSettings;o&&B1(a,t,o)&&(t=e),a=y2(a),t=r7({},t,f,so);var m=r7({},t.imports,f.imports,so),v=d1(m),M=Zr(m,v),x,w,O=0,F=t.interpolate||de,I="__p += '",X=ca((t.escape||de).source+"|"+F.source+"|"+(F===bi?iv:de).source+"|"+(t.evaluate||de).source+"|$","g"),e2="//# sourceURL="+(w2.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rv+"]")+` +`;a.replace(X,function(n2,v2,g2,u3,I1,p3){return g2||(g2=u3),I+=a.slice(O,p3).replace(mv,rz),v2&&(x=!0,I+=`' + +__e(`+v2+`) + +'`),I1&&(w=!0,I+=`'; +`+I1+`; __p += '`),g2&&(I+=`' + ((__t = (`+g2+`)) == null ? '' : __t) + -'`),D=u3+n2.length,n2}),I+=`'; +'`),O=p3+n2.length,n2}),I+=`'; `;var a2=w2.call(t,"variable")&&t.variable;if(!a2)I=`with (obj) { `+I+` } -`;else if(cd.test(a2))throw new o2(s);I=(w?I.replace(Fv,""):I).replace(Bv,"$1").replace(Iv,"$1;"),I="function("+(a2||"obj")+`) { +`;else if(nv.test(a2))throw new l2(s);I=(w?I.replace(Ud,""):I).replace(Wd,"$1").replace(Gd,"$1;"),I="function("+(a2||"obj")+`) { `+(a2?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(x?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+I+`return __p -}`;var m2=Zo(function(){return x2(d,e2+"return "+I).apply(e,V)});if(m2.source=I,Oa(m2))throw m2;return m2}function yC(a){return y2(a).toLowerCase()}function wC(a){return y2(a).toUpperCase()}function SC(a,t,o){if(a=y2(a),a&&(o||t===e))return ss(a);if(!a||!(t=o3(t)))return a;var f=B3(a),m=B3(t),d=os(f,m),V=ls(f,m)+1;return K4(f,d,V).join("")}function NC(a,t,o){if(a=y2(a),a&&(o||t===e))return a.slice(0,us(a)+1);if(!a||!(t=o3(t)))return a;var f=B3(a),m=ls(f,B3(t))+1;return K4(f,0,m).join("")}function bC(a,t,o){if(a=y2(a),a&&(o||t===e))return a.replace(Or,"");if(!a||!(t=o3(t)))return a;var f=B3(a),m=os(f,B3(t));return K4(f,m).join("")}function kC(a,t){var o=Z,f=A;if(q2(t)){var m="separator"in t?t.separator:m;o="length"in t?p2(t.length):o,f="omission"in t?o3(t.omission):f}a=y2(a);var d=a.length;if(H0(a)){var V=B3(a);d=V.length}if(o>=d)return a;var x=o-g0(f);if(x<1)return f;var w=V?K4(V,0,x).join(""):a.slice(0,x);if(m===e)return w+f;if(V&&(x+=w.length-x),Da(m)){if(a.slice(x).search(m)){var D,F=w;for(m.global||(m=ea(m.source,y2(bi.exec(m))+"g")),m.lastIndex=0;D=m.exec(F);)var I=D.index;w=w.slice(0,I===e?x:I)}}else if(a.indexOf(o3(m),x)!=x){var X=w.lastIndexOf(m);X>-1&&(w=w.slice(0,X))}return w+f}function AC(a){return a=y2(a),a&&Uv.test(a)?a.replace(wi,iz):a}var EC=y0(function(a,t,o){return a+(o?" ":"")+t.toUpperCase()}),Ia=Zs("toUpperCase");function Jo(a,t,o){return a=y2(a),t=o?e:t,t===e?cz(a)?lz(a):jd(a):a.match(t)||[]}var Zo=h2(function(a,t){try{return i3(a,e,t)}catch(o){return Oa(o)?o:new o2(o)}}),PC=H4(function(a,t){return M3(t,function(o){o=n4(o),d4(a,o,Ta(a[o],a))}),a});function _C(a){var t=a==null?0:a.length,o=r2();return a=t?U2(a,function(f){if(typeof f[1]!="function")throw new C3(i);return[o(f[0]),f[1]]}):[],h2(function(f){for(var m=-1;++mq)return[];var o=i2,f=w1(a,i2);t=r2(t),a-=i2;for(var m=$r(f,t);++o0||t<0)?new z2(o):(a<0?o=o.takeRight(-a):a&&(o=o.drop(a)),t!==e&&(t=p2(t),o=t<0?o.dropRight(-t):o.take(t-a)),o)},z2.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},z2.prototype.toArray=function(){return this.take(i2)},r4(z2.prototype,function(a,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),f=/^(?:head|last)$/.test(t),m=v[f?"take"+(t=="last"?"Right":""):t],d=f||/^find/.test(t);m&&(v.prototype[t]=function(){var V=this.__wrapped__,x=f?[1]:arguments,w=V instanceof z2,D=x[0],F=w||l2(V),I=function(d2){var g2=m.apply(v,U4([d2],x));return f&&X?g2[0]:g2};F&&o&&typeof D=="function"&&D.length!=1&&(w=F=!1);var X=this.__chain__,e2=!!this.__actions__.length,a2=d&&!X,m2=w&&!e2;if(!d&&F){V=m2?V:new z2(this);var n2=a.apply(V,x);return n2.__actions__.push({func:Ye,args:[I],thisArg:e}),new L3(n2,X)}return a2&&m2?a.apply(this,x):(n2=this.thru(I),a2?f?n2.value()[0]:n2.value():n2)})}),M3(["pop","push","shift","sort","splice","unshift"],function(a){var t=Ve[a],o=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",f=/^(?:pop|shift)$/.test(a);v.prototype[a]=function(){var m=arguments;if(f&&!this.__chain__){var d=this.value();return t.apply(l2(d)?d:[],m)}return this[o](function(V){return t.apply(l2(V)?V:[],m)})}}),r4(z2.prototype,function(a,t){var o=v[t];if(o){var f=o.name+"";w2.call(C0,f)||(C0[f]=[]),C0[f].push({name:t,func:o})}}),C0[Ie(e,R).name]=[{name:"wrapper",func:e}],z2.prototype.clone=Az,z2.prototype.reverse=Ez,z2.prototype.value=Pz,v.prototype.at=oV,v.prototype.chain=lV,v.prototype.commit=fV,v.prototype.next=uV,v.prototype.plant=mV,v.prototype.reverse=hV,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=vV,v.prototype.first=v.prototype.head,D8&&(v.prototype[D8]=pV),v},G4=fz();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(h1._=G4,define(function(){return G4})):P6?((P6.exports=G4)._=G4,Wr._=G4):h1._=G4}).call(b0)});var Ml=J1(H2=>{"use strict";var r5=Symbol.for("react.element"),wL=Symbol.for("react.portal"),SL=Symbol.for("react.fragment"),NL=Symbol.for("react.strict_mode"),bL=Symbol.for("react.profiler"),kL=Symbol.for("react.provider"),AL=Symbol.for("react.context"),EL=Symbol.for("react.forward_ref"),PL=Symbol.for("react.suspense"),_L=Symbol.for("react.memo"),TL=Symbol.for("react.lazy"),ul=Symbol.iterator;function RL(e){return e===null||typeof e!="object"?null:(e=ul&&e[ul]||e["@@iterator"],typeof e=="function"?e:null)}var hl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vl=Object.assign,dl={};function O0(e,c,r){this.props=e,this.context=c,this.refs=dl,this.updater=r||hl}O0.prototype.isReactComponent={};O0.prototype.setState=function(e,c){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,c,"setState")};O0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zl(){}zl.prototype=O0.prototype;function rn(e,c,r){this.props=e,this.context=c,this.refs=dl,this.updater=r||hl}var an=rn.prototype=new zl;an.constructor=rn;vl(an,O0.prototype);an.isPureReactComponent=!0;var pl=Array.isArray,Hl=Object.prototype.hasOwnProperty,nn={current:null},gl={key:!0,ref:!0,__self:!0,__source:!0};function Vl(e,c,r){var n,i={},s=null,l=null;if(c!=null)for(n in c.ref!==void 0&&(l=c.ref),c.key!==void 0&&(s=""+c.key),c)Hl.call(c,n)&&!gl.hasOwnProperty(n)&&(i[n]=c[n]);var u=arguments.length-2;if(u===1)i.children=r;else if(1{"use strict";Cl.exports=Ml()});var Df=J1((wb,Of)=>{"use strict";var gy="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Of.exports=gy});var Uf=J1((Sb,If)=>{"use strict";var Vy=Df();function Ff(){}function Bf(){}Bf.resetWarningCache=Ff;If.exports=function(){function e(n,i,s,l,u,p){if(p!==Vy){var h=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 h.name="Invariant Violation",h}}e.isRequired=e;function c(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:c,element:e,elementType:e,instanceOf:c,node:e,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:Bf,resetWarningCache:Ff};return r.PropTypes=r,r}});var Gf=J1((kb,Wf)=>{Wf.exports=Uf()();var Nb,bb});var $f=J1((Db,Qf)=>{Qf.exports=function(c,r,n,i){var s=n?n.call(i,c,r):void 0;if(s!==void 0)return!!s;if(c===r)return!0;if(typeof c!="object"||!c||typeof r!="object"||!r)return!1;var l=Object.keys(c),u=Object.keys(r);if(l.length!==u.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(r),h=0;h{"use strict";function o9(e,c){var r=e.length;e.push(c);e:for(;0>>1,i=e[n];if(0>>1;nK7(u,r))pK7(h,u)?(e[n]=h,e[p]=r,n=p):(e[n]=u,e[l]=r,n=l);else if(pK7(h,r))e[n]=h,e[p]=r,n=p;else break e}}return c}function K7(e,c){var r=e.sortIndex-c.sortIndex;return r!==0?r:e.id-c.id}typeof performance=="object"&&typeof performance.now=="function"?(ju=performance,P2.unstable_now=function(){return ju.now()}):(t9=Date,Xu=t9.now(),P2.unstable_now=function(){return t9.now()-Xu});var ju,t9,Xu,s4=[],i6=[],Hw=1,k3=null,k1=3,J7=!1,Z6=!1,C5=!1,Qu=typeof setTimeout=="function"?setTimeout:null,$u=typeof clearTimeout=="function"?clearTimeout:null,Yu=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function l9(e){for(var c=j3(i6);c!==null;){if(c.callback===null)$7(i6);else if(c.startTime<=e)$7(i6),c.sortIndex=c.expirationTime,o9(s4,c);else break;c=j3(i6)}}function f9(e){if(C5=!1,l9(e),!Z6)if(j3(s4)!==null)Z6=!0,p9(u9);else{var c=j3(i6);c!==null&&m9(f9,c.startTime-e)}}function u9(e,c){Z6=!1,C5&&(C5=!1,$u(L5),L5=-1),J7=!0;var r=k1;try{for(l9(c),k3=j3(s4);k3!==null&&(!(k3.expirationTime>c)||e&&!ep());){var n=k3.callback;if(typeof n=="function"){k3.callback=null,k1=k3.priorityLevel;var i=n(k3.expirationTime<=c);c=P2.unstable_now(),typeof i=="function"?k3.callback=i:k3===j3(s4)&&$7(s4),l9(c)}else $7(s4);k3=j3(s4)}if(k3!==null)var s=!0;else{var l=j3(i6);l!==null&&m9(f9,l.startTime-c),s=!1}return s}finally{k3=null,k1=r,J7=!1}}var Z7=!1,Q7=null,L5=-1,Ju=5,Zu=-1;function ep(){return!(P2.unstable_now()-Zue||125n?(e.sortIndex=r,o9(i6,e),j3(s4)===null&&e===j3(i6)&&(C5?($u(L5),L5=-1):C5=!0,m9(f9,r-n))):(e.sortIndex=i,o9(s4,e),Z6||J7||(Z6=!0,p9(u9))),e};P2.unstable_shouldYield=ep;P2.unstable_wrapCallback=function(e){var c=k1;return function(){var r=k1;k1=c;try{return e.apply(this,arguments)}finally{k1=r}}}});var ap=J1((Sk,rp)=>{"use strict";rp.exports=cp()});var lv=J1(H3=>{"use strict";var fm=f1(),d3=ap();function G(e){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),R9=Object.prototype.hasOwnProperty,gw=/^[: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]*$/,np={},tp={};function Vw(e){return R9.call(tp,e)?!0:R9.call(np,e)?!1:gw.test(e)?tp[e]=!0:(np[e]=!0,!1)}function Mw(e,c,r,n){if(r!==null&&r.type===0)return!1;switch(typeof c){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 Cw(e,c,r,n){if(c===null||typeof c>"u"||Mw(e,c,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function j1(e,c,r,n,i,s,l){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=c,this.sanitizeURL=s,this.removeEmptyString=l}var L1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){L1[e]=new j1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var c=e[0];L1[c]=new j1(c,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){L1[e]=new j1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L1[e]=new j1(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){L1[e]=new j1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){L1[e]=new j1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){L1[e]=new j1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){L1[e]=new j1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){L1[e]=new j1(e,5,!1,e.toLowerCase(),null,!1,!1)});var Nt=/[\-:]([a-z])/g;function bt(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 c=e.replace(Nt,bt);L1[c]=new j1(c,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var c=e.replace(Nt,bt);L1[c]=new j1(c,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var c=e.replace(Nt,bt);L1[c]=new j1(c,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){L1[e]=new j1(e,1,!1,e.toLowerCase(),null,!1,!1)});L1.xlinkHref=new j1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){L1[e]=new j1(e,1,!1,e.toLowerCase(),null,!0,!0)});function kt(e,c,r,n){var i=L1.hasOwnProperty(c)?L1[c]:null;(i!==null?i.type!==0:n||!(2=v)return a;var x=o-M0(f);if(x<1)return f;var w=M?Q4(M,0,x).join(""):a.slice(0,x);if(m===e)return w+f;if(M&&(x+=w.length-x),Fa(m)){if(a.slice(x).search(m)){var O,F=w;for(m.global||(m=ca(m.source,y2(ki.exec(m))+"g")),m.lastIndex=0;O=m.exec(F);)var I=O.index;w=w.slice(0,I===e?x:I)}}else if(a.indexOf(l3(m),x)!=x){var X=w.lastIndexOf(m);X>-1&&(w=w.slice(0,X))}return w+f}function _C(a){return a=y2(a),a&&qd.test(a)?a.replace(Si,lz):a}var TC=S0(function(a,t,o){return a+(o?" ":"")+t.toUpperCase()}),Ua=eo("toUpperCase");function Zo(a,t,o){return a=y2(a),t=o?e:t,t===e?nz(a)?pz(a):Kv(a):a.match(t)||[]}var el=h2(function(a,t){try{return s3(a,e,t)}catch(o){return Oa(o)?o:new l2(o)}}),RC=g4(function(a,t){return C3(t,function(o){o=n4(o),z4(a,o,Ra(a[o],a))}),a});function DC(a){var t=a==null?0:a.length,o=r2();return a=t?U2(a,function(f){if(typeof f[1]!="function")throw new L3(i);return[o(f[0]),f[1]]}):[],h2(function(f){for(var m=-1;++mq)return[];var o=i2,f=S1(a,i2);t=r2(t),a-=i2;for(var m=Jr(f,t);++o0||t<0)?new z2(o):(a<0?o=o.takeRight(-a):a&&(o=o.drop(a)),t!==e&&(t=p2(t),o=t<0?o.dropRight(-t):o.take(t-a)),o)},z2.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},z2.prototype.toArray=function(){return this.take(i2)},r4(z2.prototype,function(a,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),f=/^(?:head|last)$/.test(t),m=d[f?"take"+(t=="last"?"Right":""):t],v=f||/^find/.test(t);m&&(d.prototype[t]=function(){var M=this.__wrapped__,x=f?[1]:arguments,w=M instanceof z2,O=x[0],F=w||f2(M),I=function(v2){var g2=m.apply(d,W4([v2],x));return f&&X?g2[0]:g2};F&&o&&typeof O=="function"&&O.length!=1&&(w=F=!1);var X=this.__chain__,e2=!!this.__actions__.length,a2=v&&!X,m2=w&&!e2;if(!v&&F){M=m2?M:new z2(this);var n2=a.apply(M,x);return n2.__actions__.push({func:Ke,args:[I],thisArg:e}),new x3(n2,X)}return a2&&m2?a.apply(this,x):(n2=this.thru(I),a2?f?n2.value()[0]:n2.value():n2)})}),C3(["pop","push","shift","sort","splice","unshift"],function(a){var t=Me[a],o=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",f=/^(?:pop|shift)$/.test(a);d.prototype[a]=function(){var m=arguments;if(f&&!this.__chain__){var v=this.value();return t.apply(f2(v)?v:[],m)}return this[o](function(M){return t.apply(f2(M)?M:[],m)})}}),r4(z2.prototype,function(a,t){var o=d[t];if(o){var f=o.name+"";w2.call(x0,f)||(x0[f]=[]),x0[f].push({name:t,func:o})}}),x0[Ue(e,T).name]=[{name:"wrapper",func:e}],z2.prototype.clone=_z,z2.prototype.reverse=Tz,z2.prototype.value=Rz,d.prototype.at=uV,d.prototype.chain=pV,d.prototype.commit=mV,d.prototype.next=hV,d.prototype.plant=vV,d.prototype.reverse=zV,d.prototype.toJSON=d.prototype.valueOf=d.prototype.value=HV,d.prototype.first=d.prototype.head,O8&&(d.prototype[O8]=dV),d},q4=mz();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(h1._=q4,define(function(){return q4})):T6?((T6.exports=q4)._=q4,Gr._=q4):h1._=q4}).call(A0)});var $a=Z1((Ka,Qa)=>{(function(e,c){typeof define=="function"&&define.amd?define([],c):typeof Ka<"u"?c():(c(),e.FileSaver={})})(Ka,function(){"use strict";function e(u,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function c(u,p,h){var z=new XMLHttpRequest;z.open("GET",u),z.responseType="blob",z.onload=function(){l(z.response,p,h)},z.onerror=function(){console.error("could not download file")},z.send()}function r(u){var p=new XMLHttpRequest;p.open("HEAD",u,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function n(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(p)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,s=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,p,h){var z=i.URL||i.webkitURL,V=document.createElement("a");p=p||u.name||"download",V.download=p,V.rel="noopener",typeof u=="string"?(V.href=u,V.origin===location.origin?n(V):r(V.href)?c(u,p,h):n(V,V.target="_blank")):(V.href=z.createObjectURL(u),setTimeout(function(){z.revokeObjectURL(V.href)},4e4),setTimeout(function(){n(V)},0))}:"msSaveOrOpenBlob"in navigator?function(u,p,h){if(p=p||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(e(u,h),p);else if(r(u))c(u,p,h);else{var z=document.createElement("a");z.href=u,z.target="_blank",setTimeout(function(){n(z)})}}:function(u,p,h,z){if(z=z||open("","_blank"),z&&(z.document.title=z.document.body.innerText="downloading..."),typeof u=="string")return c(u,p,h);var V=u.type==="application/octet-stream",L=/constructor/i.test(i.HTMLElement)||i.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||V&&L||s)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var g=P.result;g=S?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=g:location=g,z=null},P.readAsDataURL(u)}else{var T=i.URL||i.webkitURL,W=T.createObjectURL(u);z?z.location=W:location.href=W,z=null,setTimeout(function(){T.revokeObjectURL(W)},4e4)}});i.saveAs=l.saveAs=l,typeof Qa<"u"&&(Qa.exports=l)})});var hl=Z1(H2=>{"use strict";var e5=Symbol.for("react.element"),SL=Symbol.for("react.portal"),NL=Symbol.for("react.fragment"),bL=Symbol.for("react.strict_mode"),kL=Symbol.for("react.profiler"),AL=Symbol.for("react.provider"),EL=Symbol.for("react.context"),PL=Symbol.for("react.forward_ref"),_L=Symbol.for("react.suspense"),TL=Symbol.for("react.memo"),RL=Symbol.for("react.lazy"),nl=Symbol.iterator;function DL(e){return e===null||typeof e!="object"?null:(e=nl&&e[nl]||e["@@iterator"],typeof e=="function"?e:null)}var sl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ol=Object.assign,ll={};function E0(e,c,r){this.props=e,this.context=c,this.refs=ll,this.updater=r||sl}E0.prototype.isReactComponent={};E0.prototype.setState=function(e,c){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,c,"setState")};E0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fl(){}fl.prototype=E0.prototype;function Za(e,c,r){this.props=e,this.context=c,this.refs=ll,this.updater=r||sl}var en=Za.prototype=new fl;en.constructor=Za;ol(en,E0.prototype);en.isPureReactComponent=!0;var tl=Array.isArray,ul=Object.prototype.hasOwnProperty,cn={current:null},pl={key:!0,ref:!0,__self:!0,__source:!0};function ml(e,c,r){var n,i={},s=null,l=null;if(c!=null)for(n in c.ref!==void 0&&(l=c.ref),c.key!==void 0&&(s=""+c.key),c)ul.call(c,n)&&!pl.hasOwnProperty(n)&&(i[n]=c[n]);var u=arguments.length-2;if(u===1)i.children=r;else if(1{"use strict";dl.exports=hl()});var zl=Z1((mb,vl)=>{vl.exports=function(c,r,n,i){var s=n?n.call(i,c,r):void 0;if(s!==void 0)return!!s;if(c===r)return!0;if(typeof c!="object"||!c||typeof r!="object"||!r)return!1;var l=Object.keys(c),u=Object.keys(r);if(l.length!==u.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(r),h=0;h{"use strict";function wn(e,c){var r=e.length;e.push(c);e:for(;0>>1,i=e[n];if(0>>1;nC7(u,r))pC7(h,u)?(e[n]=h,e[p]=r,n=p):(e[n]=u,e[l]=r,n=l);else if(pC7(h,r))e[n]=h,e[p]=r,n=p;else break e}}return c}function C7(e,c){var r=e.sortIndex-c.sortIndex;return r!==0?r:e.id-c.id}typeof performance=="object"&&typeof performance.now=="function"?(pf=performance,P2.unstable_now=function(){return pf.now()}):(Ln=Date,mf=Ln.now(),P2.unstable_now=function(){return Ln.now()-mf});var pf,Ln,mf,i4=[],c6=[],wx=1,A3=null,k1=3,y7=!1,Y6=!1,l5=!1,vf=typeof setTimeout=="function"?setTimeout:null,zf=typeof clearTimeout=="function"?clearTimeout:null,hf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Sn(e){for(var c=q3(c6);c!==null;){if(c.callback===null)x7(c6);else if(c.startTime<=e)x7(c6),c.sortIndex=c.expirationTime,wn(i4,c);else break;c=q3(c6)}}function Nn(e){if(l5=!1,Sn(e),!Y6)if(q3(i4)!==null)Y6=!0,kn(bn);else{var c=q3(c6);c!==null&&An(Nn,c.startTime-e)}}function bn(e,c){Y6=!1,l5&&(l5=!1,zf(f5),f5=-1),y7=!0;var r=k1;try{for(Sn(c),A3=q3(i4);A3!==null&&(!(A3.expirationTime>c)||e&&!Vf());){var n=A3.callback;if(typeof n=="function"){A3.callback=null,k1=A3.priorityLevel;var i=n(A3.expirationTime<=c);c=P2.unstable_now(),typeof i=="function"?A3.callback=i:A3===q3(i4)&&x7(i4),Sn(c)}else x7(i4);A3=q3(i4)}if(A3!==null)var s=!0;else{var l=q3(c6);l!==null&&An(Nn,l.startTime-c),s=!1}return s}finally{A3=null,k1=r,y7=!1}}var w7=!1,L7=null,f5=-1,Hf=5,gf=-1;function Vf(){return!(P2.unstable_now()-gfe||125n?(e.sortIndex=r,wn(c6,e),q3(i4)===null&&e===q3(c6)&&(l5?(zf(f5),f5=-1):l5=!0,An(Nn,r-n))):(e.sortIndex=i,wn(i4,e),Y6||y7||(Y6=!0,kn(bn))),e};P2.unstable_shouldYield=Vf;P2.unstable_wrapCallback=function(e){var c=k1;return function(){var r=k1;k1=c;try{return e.apply(this,arguments)}finally{k1=r}}}});var Lf=Z1((Qb,Cf)=>{"use strict";Cf.exports=Mf()});var bm=Z1(H3=>{"use strict";var ku=f1(),v3=Lf();function G(e){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),et=Object.prototype.hasOwnProperty,Sx=/^[: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]*$/,xf={},yf={};function Nx(e){return et.call(yf,e)?!0:et.call(xf,e)?!1:Sx.test(e)?yf[e]=!0:(xf[e]=!0,!1)}function bx(e,c,r,n){if(r!==null&&r.type===0)return!1;switch(typeof c){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 kx(e,c,r,n){if(c===null||typeof c>"u"||bx(e,c,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function j1(e,c,r,n,i,s,l){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=c,this.sanitizeURL=s,this.removeEmptyString=l}var L1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){L1[e]=new j1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var c=e[0];L1[c]=new j1(c,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){L1[e]=new j1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L1[e]=new j1(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){L1[e]=new j1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){L1[e]=new j1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){L1[e]=new j1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){L1[e]=new j1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){L1[e]=new j1(e,5,!1,e.toLowerCase(),null,!1,!1)});var jt=/[\-:]([a-z])/g;function Xt(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 c=e.replace(jt,Xt);L1[c]=new j1(c,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var c=e.replace(jt,Xt);L1[c]=new j1(c,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var c=e.replace(jt,Xt);L1[c]=new j1(c,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){L1[e]=new j1(e,1,!1,e.toLowerCase(),null,!1,!1)});L1.xlinkHref=new j1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){L1[e]=new j1(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yt(e,c,r,n){var i=L1.hasOwnProperty(c)?L1[c]:null;(i!==null?i.type!==0:n||!(2u||i[l]!==s[u]){var p=` -`+i[l].replace(" at new "," at ");return e.displayName&&p.includes("")&&(p=p.replace("",e.displayName)),p}while(1<=l&&0<=u);break}}}finally{v9=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?E5(e):""}function Lw(e){switch(e.tag){case 5:return E5(e.type);case 16:return E5("Lazy");case 13:return E5("Suspense");case 19:return E5("SuspenseList");case 0:case 2:case 15:return e=d9(e.type,!1),e;case 11:return e=d9(e.type.render,!1),e;case 1:return e=d9(e.type,!0),e;default:return""}}function B9(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 n8:return"Fragment";case a8:return"Portal";case O9:return"Profiler";case At:return"StrictMode";case D9:return"Suspense";case F9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mm:return(e.displayName||"Context")+".Consumer";case pm:return(e._context.displayName||"Context")+".Provider";case Et:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pt:return c=e.displayName||null,c!==null?c:B9(e.type)||"Memo";case o6:c=e._payload,e=e._init;try{return B9(e(c))}catch{}}return null}function xw(e){var c=e.type;switch(e.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=c.render,e=e.displayName||e.name||"",c.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B9(c);case 8:return c===At?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function C6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vm(e){var c=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function yw(e){var c=vm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,c),n=""+e[c];if(!e.hasOwnProperty(c)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,c,{configurable:!0,get:function(){return i.call(this)},set:function(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,c,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[c]}}}}function cc(e){e._valueTracker||(e._valueTracker=yw(e))}function dm(e){if(!e)return!1;var c=e._valueTracker;if(!c)return!0;var r=c.getValue(),n="";return e&&(n=vm(e)?e.checked?"true":"false":e.value),e=n,e!==r?(c.setValue(e),!0):!1}function bc(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 I9(e,c){var r=c.checked;return Y2({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function sp(e,c){var r=c.defaultValue==null?"":c.defaultValue,n=c.checked!=null?c.checked:c.defaultChecked;r=C6(c.value!=null?c.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function zm(e,c){c=c.checked,c!=null&&kt(e,"checked",c,!1)}function U9(e,c){zm(e,c);var r=C6(c.value),n=c.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}c.hasOwnProperty("value")?W9(e,c.type,r):c.hasOwnProperty("defaultValue")&&W9(e,c.type,C6(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(e.defaultChecked=!!c.defaultChecked)}function op(e,c,r){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var n=c.type;if(!(n!=="submit"&&n!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+e._wrapperState.initialValue,r||c===e.value||(e.value=c),e.defaultValue=c}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function W9(e,c,r){(c!=="number"||bc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var P5=Array.isArray;function v8(e,c,r,n){if(e=e.options,c){c={};for(var i=0;i"+c.valueOf().toString()+"",c=rc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;c.firstChild;)e.appendChild(c.firstChild)}});function j5(e,c){if(c){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=c;return}}e.textContent=c}var R5={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},ww=["Webkit","ms","Moz","O"];Object.keys(R5).forEach(function(e){ww.forEach(function(c){c=c+e.charAt(0).toUpperCase()+e.substring(1),R5[c]=R5[e]})});function Mm(e,c,r){return c==null||typeof c=="boolean"||c===""?"":r||typeof c!="number"||c===0||R5.hasOwnProperty(e)&&R5[e]?(""+c).trim():c+"px"}function Cm(e,c){e=e.style;for(var r in c)if(c.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Mm(r,c[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Sw=Y2({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 j9(e,c){if(c){if(Sw[e]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(G(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(G(61))}if(c.style!=null&&typeof c.style!="object")throw Error(G(62))}}function X9(e,c){if(e.indexOf("-")===-1)return typeof c.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 Y9=null;function _t(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var K9=null,d8=null,z8=null;function up(e){if(e=fe(e)){if(typeof K9!="function")throw Error(G(280));var c=e.stateNode;c&&(c=ar(c),K9(e.stateNode,e.type,c))}}function Lm(e){d8?z8?z8.push(e):z8=[e]:d8=e}function xm(){if(d8){var e=d8,c=z8;if(z8=d8=null,up(e),c)for(e=0;e>>=0,e===0?32:31-(Dw(e)/Fw|0)|0}var ac=64,nc=4194304;function _5(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 Pc(e,c){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,l=r&268435455;if(l!==0){var u=l&~i;u!==0?n=_5(u):(s&=l,s!==0&&(n=_5(s)))}else l=r&~i,l!==0?n=_5(l):s!==0&&(n=_5(s));if(n===0)return 0;if(c!==0&&c!==n&&!(c&i)&&(i=n&-n,s=c&-c,i>=s||i===16&&(s&4194240)!==0))return c;if(n&4&&(n|=r&16),c=e.entangledLanes,c!==0)for(e=e.entanglements,c&=n;0r;r++)c.push(e);return c}function oe(e,c,r){e.pendingLanes|=c,c!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,c=31-$3(c),e[c]=r}function Ww(e,c){var r=e.pendingLanes&~c;e.pendingLanes=c,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=c,e.mutableReadLanes&=c,e.entangledLanes&=c,c=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=D5),Vp=" ",Mp=!1;function Gm(e,c){switch(e){case"keyup":return zS.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var t8=!1;function gS(e,c){switch(e){case"compositionend":return qm(c);case"keypress":return c.which!==32?null:(Mp=!0,Vp);case"textInput":return e=c.data,e===Vp&&Mp?null:e;default:return null}}function VS(e,c){if(t8)return e==="compositionend"||!Ut&&Gm(e,c)?(e=Um(),Vc=Ft=p6=null,t8=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:r,offset:c-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xp(r)}}function Km(e,c){return e&&c?e===c?!0:e&&e.nodeType===3?!1:c&&c.nodeType===3?Km(e,c.parentNode):"contains"in e?e.contains(c):e.compareDocumentPosition?!!(e.compareDocumentPosition(c)&16):!1:!1}function Qm(){for(var e=window,c=bc();c instanceof e.HTMLIFrameElement;){try{var r=typeof c.contentWindow.location.href=="string"}catch{r=!1}if(r)e=c.contentWindow;else break;c=bc(e.document)}return c}function Wt(e){var c=e&&e.nodeName&&e.nodeName.toLowerCase();return c&&(c==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||c==="textarea"||e.contentEditable==="true")}function bS(e){var c=Qm(),r=e.focusedElem,n=e.selectionRange;if(c!==r&&r&&r.ownerDocument&&Km(r.ownerDocument.documentElement,r)){if(n!==null&&Wt(r)){if(c=n.start,e=n.end,e===void 0&&(e=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(e,r.value.length);else if(e=(c=r.ownerDocument||document)&&c.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=yp(r,s);var l=yp(r,n);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(c=c.createRange(),c.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(c),e.extend(l.node,l.offset)):(c.setEnd(l.node,l.offset),e.addRange(c)))}}for(c=[],e=r;e=e.parentNode;)e.nodeType===1&&c.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,i8=null,ct=null,B5=null,rt=!1;function wp(e,c,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;rt||i8==null||i8!==bc(n)||(n=i8,"selectionStart"in n&&Wt(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}),B5&&J5(B5,n)||(B5=n,n=Rc(ct,"onSelect"),0l8||(e.current=ot[l8],ot[l8]=null,l8--)}function _2(e,c){l8++,ot[l8]=e.current,e.current=c}var L6={},_1=y6(L6),c3=y6(!1),s0=L6;function C8(e,c){var r=e.type.contextTypes;if(!r)return L6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===c)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=c[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=i),i}function r3(e){return e=e.childContextTypes,e!=null}function Dc(){B2(c3),B2(_1)}function Tp(e,c,r){if(_1.current!==L6)throw Error(G(168));_2(_1,c),_2(c3,r)}function th(e,c,r){var n=e.stateNode;if(c=c.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in c))throw Error(G(108,xw(e)||"Unknown",i));return Y2({},r,n)}function Fc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||L6,s0=_1.current,_2(_1,e),_2(c3,c3.current),!0}function Rp(e,c,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=th(e,c,s0),n.__reactInternalMemoizedMergedChildContext=e,B2(c3),B2(_1),_2(_1,e)):B2(c3),_2(c3,r)}var A4=null,nr=!1,S9=!1;function ih(e){A4===null?A4=[e]:A4.push(e)}function FS(e){nr=!0,ih(e)}function w6(){if(!S9&&A4!==null){S9=!0;var e=0,c=S2;try{var r=A4;for(S2=1;e>=l,i-=l,E4=1<<32-$3(c)+i|r<Z?(A=B,B=null):A=B.sibling;var N=L(g,B,C[Z],b);if(N===null){B===null&&(B=A);break}e&&B&&N.alternate===null&&c(g,B),H=s(N,H,Z),U===null?O=N:U.sibling=N,U=N,B=A}if(Z===C.length)return r(g,B),W2&&e0(g,Z),O;if(B===null){for(;ZZ?(A=B,B=null):A=B.sibling;var E=L(g,B,N.value,b);if(E===null){B===null&&(B=A);break}e&&B&&E.alternate===null&&c(g,B),H=s(E,H,Z),U===null?O=E:U.sibling=E,U=E,B=A}if(N.done)return r(g,B),W2&&e0(g,Z),O;if(B===null){for(;!N.done;Z++,N=C.next())N=M(g,N.value,b),N!==null&&(H=s(N,H,Z),U===null?O=N:U.sibling=N,U=N);return W2&&e0(g,Z),O}for(B=n(g,B);!N.done;Z++,N=C.next())N=S(B,g,Z,N.value,b),N!==null&&(e&&N.alternate!==null&&B.delete(N.key===null?Z:N.key),H=s(N,H,Z),U===null?O=N:U.sibling=N,U=N);return e&&B.forEach(function(T){return c(g,T)}),W2&&e0(g,Z),O}function W(g,H,C,b){if(typeof C=="object"&&C!==null&&C.type===n8&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ec:e:{for(var O=C.key,U=H;U!==null;){if(U.key===O){if(O=C.type,O===n8){if(U.tag===7){r(g,U.sibling),H=i(U,C.props.children),H.return=g,g=H;break e}}else if(U.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===o6&&Wp(O)===U.type){r(g,U.sibling),H=i(U,C.props),H.ref=N5(g,U,C),H.return=g,g=H;break e}r(g,U);break}else c(g,U);U=U.sibling}C.type===n8?(H=i0(C.props.children,g.mode,b,C.key),H.return=g,g=H):(b=Nc(C.type,C.key,C.props,null,g.mode,b),b.ref=N5(g,H,C),b.return=g,g=b)}return l(g);case a8:e:{for(U=C.key;H!==null;){if(H.key===U)if(H.tag===4&&H.stateNode.containerInfo===C.containerInfo&&H.stateNode.implementation===C.implementation){r(g,H.sibling),H=i(H,C.children||[]),H.return=g,g=H;break e}else{r(g,H);break}else c(g,H);H=H.sibling}H=T9(C,g.mode,b),H.return=g,g=H}return l(g);case o6:return U=C._init,W(g,H,U(C._payload),b)}if(P5(C))return P(g,H,C,b);if(x5(C))return R(g,H,C,b);vc(g,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,H!==null&&H.tag===6?(r(g,H.sibling),H=i(H,C),H.return=g,g=H):(r(g,H),H=_9(C,g.mode,b),H.return=g,g=H),l(g)):r(g,H)}return W}var x8=hh(!0),vh=hh(!1),ue={},p4=y6(ue),re=y6(ue),ae=y6(ue);function n0(e){if(e===ue)throw Error(G(174));return e}function Jt(e,c){switch(_2(ae,c),_2(re,e),_2(p4,ue),e=c.nodeType,e){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:q9(null,"");break;default:e=e===8?c.parentNode:c,c=e.namespaceURI||null,e=e.tagName,c=q9(c,e)}B2(p4),_2(p4,c)}function y8(){B2(p4),B2(re),B2(ae)}function dh(e){n0(ae.current);var c=n0(p4.current),r=q9(c,e.type);c!==r&&(_2(re,e),_2(p4,r))}function Zt(e){re.current===e&&(B2(p4),B2(re))}var j2=y6(0);function qc(e){for(var c=e;c!==null;){if(c.tag===13){var r=c.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break;for(;c.sibling===null;){if(c.return===null||c.return===e)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var N9=[];function ei(){for(var e=0;er?r:4,e(!0);var n=b9.transition;b9.transition={};try{e(!1),c()}finally{S2=r,b9.transition=n}}function Eh(){return R3().memoizedState}function WS(e,c,r){var n=V6(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ph(e))_h(c,r);else if(r=fh(e,c,r,n),r!==null){var i=q1();J3(r,e,n,i),Th(r,c,n)}}function GS(e,c,r){var n=V6(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ph(e))_h(c,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=c.lastRenderedReducer,s!==null))try{var l=c.lastRenderedState,u=s(l,r);if(i.hasEagerState=!0,i.eagerState=u,Z3(u,l)){var p=c.interleaved;p===null?(i.next=i,Qt(c)):(i.next=p.next,p.next=i),c.interleaved=i;return}}catch{}finally{}r=fh(e,c,i,n),r!==null&&(i=q1(),J3(r,e,n,i),Th(r,c,n))}}function Ph(e){var c=e.alternate;return e===X2||c!==null&&c===X2}function _h(e,c){I5=jc=!0;var r=e.pending;r===null?c.next=c:(c.next=r.next,r.next=c),e.pending=c}function Th(e,c,r){if(r&4194240){var n=c.lanes;n&=e.pendingLanes,r|=n,c.lanes=r,Rt(e,r)}}var Xc={readContext:T3,useCallback:A1,useContext:A1,useEffect:A1,useImperativeHandle:A1,useInsertionEffect:A1,useLayoutEffect:A1,useMemo:A1,useReducer:A1,useRef:A1,useState:A1,useDebugValue:A1,useDeferredValue:A1,useTransition:A1,useMutableSource:A1,useSyncExternalStore:A1,useId:A1,unstable_isNewReconciler:!1},qS={readContext:T3,useCallback:function(e,c){return l4().memoizedState=[e,c===void 0?null:c],e},useContext:T3,useEffect:qp,useImperativeHandle:function(e,c,r){return r=r!=null?r.concat([e]):null,xc(4194308,4,Sh.bind(null,c,e),r)},useLayoutEffect:function(e,c){return xc(4194308,4,e,c)},useInsertionEffect:function(e,c){return xc(4,2,e,c)},useMemo:function(e,c){var r=l4();return c=c===void 0?null:c,e=e(),r.memoizedState=[e,c],e},useReducer:function(e,c,r){var n=l4();return c=r!==void 0?r(c):c,n.memoizedState=n.baseState=c,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},n.queue=e,e=e.dispatch=WS.bind(null,X2,e),[n.memoizedState,e]},useRef:function(e){var c=l4();return e={current:e},c.memoizedState=e},useState:Gp,useDebugValue:ti,useDeferredValue:function(e){return l4().memoizedState=e},useTransition:function(){var e=Gp(!1),c=e[0];return e=US.bind(null,e[1]),l4().memoizedState=e,[c,e]},useMutableSource:function(){},useSyncExternalStore:function(e,c,r){var n=X2,i=l4();if(W2){if(r===void 0)throw Error(G(407));r=r()}else{if(r=c(),z1===null)throw Error(G(349));l0&30||gh(n,c,r)}i.memoizedState=r;var s={value:r,getSnapshot:c};return i.queue=s,qp(Mh.bind(null,n,s,e),[e]),n.flags|=2048,ie(9,Vh.bind(null,n,s,r,c),void 0,null),r},useId:function(){var e=l4(),c=z1.identifierPrefix;if(W2){var r=P4,n=E4;r=(n&~(1<<32-$3(n)-1)).toString(32)+r,c=":"+c+"R"+r,r=ne++,0")&&(p=p.replace("",e.displayName)),p}while(1<=l&&0<=u);break}}}finally{Pn=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?g5(e):""}function Ax(e){switch(e.tag){case 5:return g5(e.type);case 16:return g5("Lazy");case 13:return g5("Suspense");case 19:return g5("SuspenseList");case 0:case 2:case 15:return e=_n(e.type,!1),e;case 11:return e=_n(e.type.render,!1),e;case 1:return e=_n(e.type,!0),e;default:return""}}function nt(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 q0:return"Fragment";case G0:return"Portal";case ct:return"Profiler";case Kt:return"StrictMode";case rt:return"Suspense";case at:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pu:return(e.displayName||"Context")+".Consumer";case Eu:return(e._context.displayName||"Context")+".Provider";case Qt:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $t:return c=e.displayName||null,c!==null?c:nt(e.type)||"Memo";case a6:c=e._payload,e=e._init;try{return nt(e(c))}catch{}}return null}function Ex(e){var c=e.type;switch(e.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=c.render,e=e.displayName||e.name||"",c.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nt(c);case 8:return c===Kt?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function z6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tu(e){var c=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Px(e){var c=Tu(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,c),n=""+e[c];if(!e.hasOwnProperty(c)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,c,{configurable:!0,get:function(){return i.call(this)},set:function(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,c,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[c]}}}}function N7(e){e._valueTracker||(e._valueTracker=Px(e))}function Ru(e){if(!e)return!1;var c=e._valueTracker;if(!c)return!0;var r=c.getValue(),n="";return e&&(n=Tu(e)?e.checked?"true":"false":e.value),e=n,e!==r?(c.setValue(e),!0):!1}function rc(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 tt(e,c){var r=c.checked;return Y2({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Sf(e,c){var r=c.defaultValue==null?"":c.defaultValue,n=c.checked!=null?c.checked:c.defaultChecked;r=z6(c.value!=null?c.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Du(e,c){c=c.checked,c!=null&&Yt(e,"checked",c,!1)}function it(e,c){Du(e,c);var r=z6(c.value),n=c.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}c.hasOwnProperty("value")?st(e,c.type,r):c.hasOwnProperty("defaultValue")&&st(e,c.type,z6(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(e.defaultChecked=!!c.defaultChecked)}function Nf(e,c,r){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var n=c.type;if(!(n!=="submit"&&n!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+e._wrapperState.initialValue,r||c===e.value||(e.value=c),e.defaultValue=c}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function st(e,c,r){(c!=="number"||rc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var V5=Array.isArray;function r8(e,c,r,n){if(e=e.options,c){c={};for(var i=0;i"+c.valueOf().toString()+"",c=b7.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;c.firstChild;)e.appendChild(c.firstChild)}});function P5(e,c){if(c){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=c;return}}e.textContent=c}var L5={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},_x=["Webkit","ms","Moz","O"];Object.keys(L5).forEach(function(e){_x.forEach(function(c){c=c+e.charAt(0).toUpperCase()+e.substring(1),L5[c]=L5[e]})});function Iu(e,c,r){return c==null||typeof c=="boolean"||c===""?"":r||typeof c!="number"||c===0||L5.hasOwnProperty(e)&&L5[e]?(""+c).trim():c+"px"}function Uu(e,c){e=e.style;for(var r in c)if(c.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Iu(r,c[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Tx=Y2({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 ft(e,c){if(c){if(Tx[e]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(G(137,e));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(G(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(G(61))}if(c.style!=null&&typeof c.style!="object")throw Error(G(62))}}function ut(e,c){if(e.indexOf("-")===-1)return typeof c.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 pt=null;function Jt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mt=null,a8=null,n8=null;function Af(e){if(e=$5(e)){if(typeof mt!="function")throw Error(G(280));var c=e.stateNode;c&&(c=kc(c),mt(e.stateNode,e.type,c))}}function Wu(e){a8?n8?n8.push(e):n8=[e]:a8=e}function Gu(){if(a8){var e=a8,c=n8;if(n8=a8=null,Af(e),c)for(e=0;e>>=0,e===0?32:31-(jx(e)/Xx|0)|0}var k7=64,A7=4194304;function M5(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 ic(e,c){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,l=r&268435455;if(l!==0){var u=l&~i;u!==0?n=M5(u):(s&=l,s!==0&&(n=M5(s)))}else l=r&~i,l!==0?n=M5(l):s!==0&&(n=M5(s));if(n===0)return 0;if(c!==0&&c!==n&&!(c&i)&&(i=n&-n,s=c&-c,i>=s||i===16&&(s&4194240)!==0))return c;if(n&4&&(n|=r&16),c=e.entangledLanes,c!==0)for(e=e.entanglements,c&=n;0r;r++)c.push(e);return c}function K5(e,c,r){e.pendingLanes|=c,c!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,c=31-Q3(c),e[c]=r}function $x(e,c){var r=e.pendingLanes&~c;e.pendingLanes=c,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=c,e.mutableReadLanes&=c,e.entangledLanes&=c,c=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=y5),Bf=" ",If=!1;function fp(e,c){switch(e){case"keyup":return yy.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function up(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var j0=!1;function Sy(e,c){switch(e){case"compositionend":return up(c);case"keypress":return c.which!==32?null:(If=!0,Bf);case"textInput":return e=c.data,e===Bf&&If?null:e;default:return null}}function Ny(e,c){if(j0)return e==="compositionend"||!i9&&fp(e,c)?(e=op(),X7=a9=s6=null,j0=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1=c)return{node:r,offset:c-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gf(r)}}function dp(e,c){return e&&c?e===c?!0:e&&e.nodeType===3?!1:c&&c.nodeType===3?dp(e,c.parentNode):"contains"in e?e.contains(c):e.compareDocumentPosition?!!(e.compareDocumentPosition(c)&16):!1:!1}function vp(){for(var e=window,c=rc();c instanceof e.HTMLIFrameElement;){try{var r=typeof c.contentWindow.location.href=="string"}catch{r=!1}if(r)e=c.contentWindow;else break;c=rc(e.document)}return c}function s9(e){var c=e&&e.nodeName&&e.nodeName.toLowerCase();return c&&(c==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||c==="textarea"||e.contentEditable==="true")}function Dy(e){var c=vp(),r=e.focusedElem,n=e.selectionRange;if(c!==r&&r&&r.ownerDocument&&dp(r.ownerDocument.documentElement,r)){if(n!==null&&s9(r)){if(c=n.start,e=n.end,e===void 0&&(e=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(e,r.value.length);else if(e=(c=r.ownerDocument||document)&&c.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=qf(r,s);var l=qf(r,n);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(c=c.createRange(),c.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(c),e.extend(l.node,l.offset)):(c.setEnd(l.node,l.offset),e.addRange(c)))}}for(c=[],e=r;e=e.parentNode;)e.nodeType===1&&c.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,X0=null,gt=null,S5=null,Vt=!1;function jf(e,c,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Vt||X0==null||X0!==rc(n)||(n=X0,"selectionStart"in n&&s9(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}),S5&&F5(S5,n)||(S5=n,n=lc(gt,"onSelect"),0Q0||(e.current=wt[Q0],wt[Q0]=null,Q0--)}function _2(e,c){Q0++,wt[Q0]=e.current,e.current=c}var H6={},_1=V6(H6),r3=V6(!1),r0=H6;function l8(e,c){var r=e.type.contextTypes;if(!r)return H6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===c)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=c[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=i),i}function a3(e){return e=e.childContextTypes,e!=null}function uc(){D2(r3),D2(_1)}function cu(e,c,r){if(_1.current!==H6)throw Error(G(168));_2(_1,c),_2(r3,r)}function yp(e,c,r){var n=e.stateNode;if(c=c.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in c))throw Error(G(108,Ex(e)||"Unknown",i));return Y2({},r,n)}function pc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||H6,r0=_1.current,_2(_1,e),_2(r3,r3.current),!0}function ru(e,c,r){var n=e.stateNode;if(!n)throw Error(G(169));r?(e=yp(e,c,r0),n.__reactInternalMemoizedMergedChildContext=e,D2(r3),D2(_1),_2(_1,e)):D2(r3),_2(r3,r)}var N4=null,Ac=!1,qn=!1;function wp(e){N4===null?N4=[e]:N4.push(e)}function Xy(e){Ac=!0,wp(e)}function M6(){if(!qn&&N4!==null){qn=!0;var e=0,c=S2;try{var r=N4;for(S2=1;e>=l,i-=l,b4=1<<32-Q3(c)+i|r<Z?(A=B,B=null):A=B.sibling;var N=L(g,B,C[Z],b);if(N===null){B===null&&(B=A);break}e&&B&&N.alternate===null&&c(g,B),H=s(N,H,Z),U===null?D=N:U.sibling=N,U=N,B=A}if(Z===C.length)return r(g,B),W2&&K6(g,Z),D;if(B===null){for(;ZZ?(A=B,B=null):A=B.sibling;var E=L(g,B,N.value,b);if(E===null){B===null&&(B=A);break}e&&B&&E.alternate===null&&c(g,B),H=s(E,H,Z),U===null?D=E:U.sibling=E,U=E,B=A}if(N.done)return r(g,B),W2&&K6(g,Z),D;if(B===null){for(;!N.done;Z++,N=C.next())N=V(g,N.value,b),N!==null&&(H=s(N,H,Z),U===null?D=N:U.sibling=N,U=N);return W2&&K6(g,Z),D}for(B=n(g,B);!N.done;Z++,N=C.next())N=S(B,g,Z,N.value,b),N!==null&&(e&&N.alternate!==null&&B.delete(N.key===null?Z:N.key),H=s(N,H,Z),U===null?D=N:U.sibling=N,U=N);return e&&B.forEach(function(R){return c(g,R)}),W2&&K6(g,Z),D}function W(g,H,C,b){if(typeof C=="object"&&C!==null&&C.type===q0&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case S7:e:{for(var D=C.key,U=H;U!==null;){if(U.key===D){if(D=C.type,D===q0){if(U.tag===7){r(g,U.sibling),H=i(U,C.props.children),H.return=g,g=H;break e}}else if(U.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===a6&&lu(D)===U.type){r(g,U.sibling),H=i(U,C.props),H.ref=d5(g,U,C),H.return=g,g=H;break e}r(g,U);break}else c(g,U);U=U.sibling}C.type===q0?(H=c0(C.props.children,g.mode,b,C.key),H.return=g,g=H):(b=cc(C.type,C.key,C.props,null,g.mode,b),b.ref=d5(g,H,C),b.return=g,g=b)}return l(g);case G0:e:{for(U=C.key;H!==null;){if(H.key===U)if(H.tag===4&&H.stateNode.containerInfo===C.containerInfo&&H.stateNode.implementation===C.implementation){r(g,H.sibling),H=i(H,C.children||[]),H.return=g,g=H;break e}else{r(g,H);break}else c(g,H);H=H.sibling}H=Zn(C,g.mode,b),H.return=g,g=H}return l(g);case a6:return U=C._init,W(g,H,U(C._payload),b)}if(V5(C))return P(g,H,C,b);if(u5(C))return T(g,H,C,b);U7(g,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,H!==null&&H.tag===6?(r(g,H.sibling),H=i(H,C),H.return=g,g=H):(r(g,H),H=Jn(C,g.mode,b),H.return=g,g=H),l(g)):r(g,H)}return W}var u8=_p(!0),Tp=_p(!1),J5={},u4=V6(J5),W5=V6(J5),G5=V6(J5);function Z6(e){if(e===J5)throw Error(G(174));return e}function v9(e,c){switch(_2(G5,c),_2(W5,e),_2(u4,J5),e=c.nodeType,e){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:lt(null,"");break;default:e=e===8?c.parentNode:c,c=e.namespaceURI||null,e=e.tagName,c=lt(c,e)}D2(u4),_2(u4,c)}function p8(){D2(u4),D2(W5),D2(G5)}function Rp(e){Z6(G5.current);var c=Z6(u4.current),r=lt(c,e.type);c!==r&&(_2(W5,e),_2(u4,r))}function z9(e){W5.current===e&&(D2(u4),D2(W5))}var j2=V6(0);function Hc(e){for(var c=e;c!==null;){if(c.tag===13){var r=c.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break;for(;c.sibling===null;){if(c.return===null||c.return===e)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var jn=[];function H9(){for(var e=0;er?r:4,e(!0);var n=Xn.transition;Xn.transition={};try{e(!1),c()}finally{S2=r,Xn.transition=n}}function Jp(){return D3().memoizedState}function $y(e,c,r){var n=d6(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Zp(e))em(c,r);else if(r=kp(e,c,r,n),r!==null){var i=q1();$3(r,e,n,i),cm(r,c,n)}}function Jy(e,c,r){var n=d6(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Zp(e))em(c,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=c.lastRenderedReducer,s!==null))try{var l=c.lastRenderedState,u=s(l,r);if(i.hasEagerState=!0,i.eagerState=u,J3(u,l)){var p=c.interleaved;p===null?(i.next=i,h9(c)):(i.next=p.next,p.next=i),c.interleaved=i;return}}catch{}finally{}r=kp(e,c,i,n),r!==null&&(i=q1(),$3(r,e,n,i),cm(r,c,n))}}function Zp(e){var c=e.alternate;return e===X2||c!==null&&c===X2}function em(e,c){N5=gc=!0;var r=e.pending;r===null?c.next=c:(c.next=r.next,r.next=c),e.pending=c}function cm(e,c,r){if(r&4194240){var n=c.lanes;n&=e.pendingLanes,r|=n,c.lanes=r,e9(e,r)}}var Vc={readContext:R3,useCallback:A1,useContext:A1,useEffect:A1,useImperativeHandle:A1,useInsertionEffect:A1,useLayoutEffect:A1,useMemo:A1,useReducer:A1,useRef:A1,useState:A1,useDebugValue:A1,useDeferredValue:A1,useTransition:A1,useMutableSource:A1,useSyncExternalStore:A1,useId:A1,unstable_isNewReconciler:!1},Zy={readContext:R3,useCallback:function(e,c){return o4().memoizedState=[e,c===void 0?null:c],e},useContext:R3,useEffect:uu,useImperativeHandle:function(e,c,r){return r=r!=null?r.concat([e]):null,$7(4194308,4,Xp.bind(null,c,e),r)},useLayoutEffect:function(e,c){return $7(4194308,4,e,c)},useInsertionEffect:function(e,c){return $7(4,2,e,c)},useMemo:function(e,c){var r=o4();return c=c===void 0?null:c,e=e(),r.memoizedState=[e,c],e},useReducer:function(e,c,r){var n=o4();return c=r!==void 0?r(c):c,n.memoizedState=n.baseState=c,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},n.queue=e,e=e.dispatch=$y.bind(null,X2,e),[n.memoizedState,e]},useRef:function(e){var c=o4();return e={current:e},c.memoizedState=e},useState:fu,useDebugValue:L9,useDeferredValue:function(e){return o4().memoizedState=e},useTransition:function(){var e=fu(!1),c=e[0];return e=Qy.bind(null,e[1]),o4().memoizedState=e,[c,e]},useMutableSource:function(){},useSyncExternalStore:function(e,c,r){var n=X2,i=o4();if(W2){if(r===void 0)throw Error(G(407));r=r()}else{if(r=c(),z1===null)throw Error(G(349));n0&30||Fp(n,c,r)}i.memoizedState=r;var s={value:r,getSnapshot:c};return i.queue=s,uu(Ip.bind(null,n,s,e),[e]),n.flags|=2048,X5(9,Bp.bind(null,n,s,r,c),void 0,null),r},useId:function(){var e=o4(),c=z1.identifierPrefix;if(W2){var r=k4,n=b4;r=(n&~(1<<32-Q3(n)-1)).toString(32)+r,c=":"+c+"R"+r,r=q5++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[f4]=c,e[ce]=n,Gh(e,c,!1,!1),c.stateNode=e;e:{switch(l=X9(r,n),r){case"dialog":F2("cancel",e),F2("close",e),i=n;break;case"iframe":case"object":case"embed":F2("load",e),i=n;break;case"video":case"audio":for(i=0;iS8&&(c.flags|=128,n=!0,b5(s,!1),c.lanes=4194304)}else{if(!n)if(e=qc(l),e!==null){if(c.flags|=128,n=!0,r=e.updateQueue,r!==null&&(c.updateQueue=r,c.flags|=4),b5(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!W2)return E1(c),null}else 2*t1()-s.renderingStartTime>S8&&r!==1073741824&&(c.flags|=128,n=!0,b5(s,!1),c.lanes=4194304);s.isBackwards?(l.sibling=c.child,c.child=l):(r=s.last,r!==null?r.sibling=l:c.child=l,s.last=l)}return s.tail!==null?(c=s.tail,s.rendering=c,s.tail=c.sibling,s.renderingStartTime=t1(),c.sibling=null,r=j2.current,_2(j2,n?r&1|2:r&1),c):(E1(c),null);case 22:case 23:return ui(),n=c.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(c.flags|=8192),n&&c.mode&1?m3&1073741824&&(E1(c),c.subtreeFlags&6&&(c.flags|=8192)):E1(c),null;case 24:return null;case 25:return null}throw Error(G(156,c.tag))}function ZS(e,c){switch(qt(c),c.tag){case 1:return r3(c.type)&&Dc(),e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 3:return y8(),B2(c3),B2(_1),ei(),e=c.flags,e&65536&&!(e&128)?(c.flags=e&-65537|128,c):null;case 5:return Zt(c),null;case 13:if(B2(j2),e=c.memoizedState,e!==null&&e.dehydrated!==null){if(c.alternate===null)throw Error(G(340));L8()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 19:return B2(j2),null;case 4:return y8(),null;case 10:return Kt(c.type._context),null;case 22:case 23:return ui(),null;case 24:return null;default:return null}}var zc=!1,P1=!1,eN=typeof WeakSet=="function"?WeakSet:Set,J=null;function m8(e,c){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){c1(e,c,n)}else r.current=null}function Vt(e,c,r){try{r()}catch(n){c1(e,c,n)}}var em=!1;function cN(e,c){if(at=_c,e=Qm(),Wt(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 i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var l=0,u=-1,p=-1,h=0,z=0,M=e,L=null;c:for(;;){for(var S;M!==r||i!==0&&M.nodeType!==3||(u=l+i),M!==s||n!==0&&M.nodeType!==3||(p=l+n),M.nodeType===3&&(l+=M.nodeValue.length),(S=M.firstChild)!==null;)L=M,M=S;for(;;){if(M===e)break c;if(L===r&&++h===i&&(u=l),L===s&&++z===n&&(p=l),(S=M.nextSibling)!==null)break;M=L,L=M.parentNode}M=S}r=u===-1||p===-1?null:{start:u,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for(nt={focusedElem:e,selectionRange:r},_c=!1,J=c;J!==null;)if(c=J,e=c.child,(c.subtreeFlags&1028)!==0&&e!==null)e.return=c,J=e;else for(;J!==null;){c=J;try{var P=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var R=P.memoizedProps,W=P.memoizedState,g=c.stateNode,H=g.getSnapshotBeforeUpdate(c.elementType===c.type?R:Y3(c.type,R),W);g.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var C=c.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(b){c1(c,c.return,b)}if(e=c.sibling,e!==null){e.return=c.return,J=e;break}J=c.return}return P=em,em=!1,P}function U5(e,c,r){var n=c.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Vt(c,r,s)}i=i.next}while(i!==n)}}function sr(e,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var r=c=c.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==c)}}function Mt(e){var c=e.ref;if(c!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof c=="function"?c(e):c.current=e}}function Xh(e){var c=e.alternate;c!==null&&(e.alternate=null,Xh(c)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(c=e.stateNode,c!==null&&(delete c[f4],delete c[ce],delete c[st],delete c[OS],delete c[DS])),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 Yh(e){return e.tag===5||e.tag===3||e.tag===4}function cm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yh(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 Ct(e,c,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?r.nodeType===8?r.parentNode.insertBefore(e,c):r.insertBefore(e,c):(r.nodeType===8?(c=r.parentNode,c.insertBefore(e,r)):(c=r,c.appendChild(e)),r=r._reactRootContainer,r!=null||c.onclick!==null||(c.onclick=Oc));else if(n!==4&&(e=e.child,e!==null))for(Ct(e,c,r),e=e.sibling;e!==null;)Ct(e,c,r),e=e.sibling}function Lt(e,c,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?r.insertBefore(e,c):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Lt(e,c,r),e=e.sibling;e!==null;)Lt(e,c,r),e=e.sibling}var M1=null,K3=!1;function s6(e,c,r){for(r=r.child;r!==null;)Kh(e,c,r),r=r.sibling}function Kh(e,c,r){if(u4&&typeof u4.onCommitFiberUnmount=="function")try{u4.onCommitFiberUnmount(Zc,r)}catch{}switch(r.tag){case 5:P1||m8(r,c);case 6:var n=M1,i=K3;M1=null,s6(e,c,r),M1=n,K3=i,M1!==null&&(K3?(e=M1,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):M1.removeChild(r.stateNode));break;case 18:M1!==null&&(K3?(e=M1,r=r.stateNode,e.nodeType===8?w9(e.parentNode,r):e.nodeType===1&&w9(e,r),Q5(e)):w9(M1,r.stateNode));break;case 4:n=M1,i=K3,M1=r.stateNode.containerInfo,K3=!0,s6(e,c,r),M1=n,K3=i;break;case 0:case 11:case 14:case 15:if(!P1&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Vt(r,c,l),i=i.next}while(i!==n)}s6(e,c,r);break;case 1:if(!P1&&(m8(r,c),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){c1(r,c,u)}s6(e,c,r);break;case 21:s6(e,c,r);break;case 22:r.mode&1?(P1=(n=P1)||r.memoizedState!==null,s6(e,c,r),P1=n):s6(e,c,r);break;default:s6(e,c,r)}}function rm(e){var c=e.updateQueue;if(c!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new eN),c.forEach(function(n){var i=fN.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function X3(e,c){var r=c.deletions;if(r!==null)for(var n=0;ni&&(i=l),n&=~s}if(n=i,n=t1()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*aN(n/1960))-n,10e?16:e,m6===null)var n=!1;else{if(e=m6,m6=null,Qc=0,V2&6)throw Error(G(331));var i=V2;for(V2|=4,J=e.current;J!==null;){var s=J,l=s.child;if(J.flags&16){var u=s.deletions;if(u!==null){for(var p=0;pt1()-li?t0(e,0):oi|=r),a3(e,c)}function av(e,c){c===0&&(e.mode&1?(c=nc,nc<<=1,!(nc&130023424)&&(nc=4194304)):c=1);var r=q1();e=O4(e,c),e!==null&&(oe(e,c,r),a3(e,r))}function lN(e){var c=e.memoizedState,r=0;c!==null&&(r=c.retryLane),av(e,r)}function fN(e,c){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(G(314))}n!==null&&n.delete(c),av(e,r)}var nv;nv=function(e,c,r){if(e!==null)if(e.memoizedProps!==c.pendingProps||c3.current)e3=!0;else{if(!(e.lanes&r)&&!(c.flags&128))return e3=!1,$S(e,c,r);e3=!!(e.flags&131072)}else e3=!1,W2&&c.flags&1048576&&sh(c,Ic,c.index);switch(c.lanes=0,c.tag){case 2:var n=c.type;yc(e,c),e=c.pendingProps;var i=C8(c,_1.current);g8(c,r),i=ri(null,c,n,e,i,r);var s=ai();return c.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,r3(n)?(s=!0,Fc(c)):s=!1,c.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$t(c),i.updater=tr,c.stateNode=i,i._reactInternals=c,mt(c,n,e,r),c=dt(null,c,n,!0,s,r)):(c.tag=0,W2&&s&&Gt(c),G1(null,c,i,r),c=c.child),c;case 16:n=c.elementType;e:{switch(yc(e,c),e=c.pendingProps,i=n._init,n=i(n._payload),c.type=n,i=c.tag=pN(n),e=Y3(n,e),i){case 0:c=vt(null,c,n,e,r);break e;case 1:c=$p(null,c,n,e,r);break e;case 11:c=Kp(null,c,n,e,r);break e;case 14:c=Qp(null,c,n,Y3(n.type,e),r);break e}throw Error(G(306,n,""))}return c;case 0:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:Y3(n,i),vt(e,c,n,i,r);case 1:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:Y3(n,i),$p(e,c,n,i,r);case 3:e:{if(Ih(c),e===null)throw Error(G(387));n=c.pendingProps,s=c.memoizedState,i=s.element,uh(e,c),Gc(c,n,null,r);var l=c.memoizedState;if(n=l.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},c.updateQueue.baseState=s,c.memoizedState=s,c.flags&256){i=w8(Error(G(423)),c),c=Jp(e,c,n,r,i);break e}else if(n!==i){i=w8(Error(G(424)),c),c=Jp(e,c,n,r,i);break e}else for(h3=z6(c.stateNode.containerInfo.firstChild),v3=c,W2=!0,Q3=null,r=vh(c,null,n,r),c.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(L8(),n===i){c=D4(e,c,r);break e}G1(e,c,n,r)}c=c.child}return c;case 5:return dh(c),e===null&&ft(c),n=c.type,i=c.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,tt(n,i)?l=null:s!==null&&tt(n,s)&&(c.flags|=32),Bh(e,c),G1(e,c,l,r),c.child;case 6:return e===null&&ft(c),null;case 13:return Uh(e,c,r);case 4:return Jt(c,c.stateNode.containerInfo),n=c.pendingProps,e===null?c.child=x8(c,null,n,r):G1(e,c,n,r),c.child;case 11:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:Y3(n,i),Kp(e,c,n,i,r);case 7:return G1(e,c,c.pendingProps,r),c.child;case 8:return G1(e,c,c.pendingProps.children,r),c.child;case 12:return G1(e,c,c.pendingProps.children,r),c.child;case 10:e:{if(n=c.type._context,i=c.pendingProps,s=c.memoizedProps,l=i.value,_2(Uc,n._currentValue),n._currentValue=l,s!==null)if(Z3(s.value,l)){if(s.children===i.children&&!c3.current){c=D4(e,c,r);break e}}else for(s=c.child,s!==null&&(s.return=c);s!==null;){var u=s.dependencies;if(u!==null){l=s.child;for(var p=u.firstContext;p!==null;){if(p.context===n){if(s.tag===1){p=_4(-1,r&-r),p.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var z=h.pending;z===null?p.next=p:(p.next=z.next,z.next=p),h.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),ut(s.return,r,c),u.lanes|=r;break}p=p.next}}else if(s.tag===10)l=s.type===c.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(G(341));l.lanes|=r,u=l.alternate,u!==null&&(u.lanes|=r),ut(l,r,c),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===c){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}G1(e,c,i.children,r),c=c.child}return c;case 9:return i=c.type,n=c.pendingProps.children,g8(c,r),i=T3(i),n=n(i),c.flags|=1,G1(e,c,n,r),c.child;case 14:return n=c.type,i=Y3(n,c.pendingProps),i=Y3(n.type,i),Qp(e,c,n,i,r);case 15:return Dh(e,c,c.type,c.pendingProps,r);case 17:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:Y3(n,i),yc(e,c),c.tag=1,r3(n)?(e=!0,Fc(c)):e=!1,g8(c,r),mh(c,n,i),mt(c,n,i,r),dt(null,c,n,!0,e,r);case 19:return Wh(e,c,r);case 22:return Fh(e,c,r)}throw Error(G(156,c.tag))};function tv(e,c){return Am(e,c)}function uN(e,c,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=c,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 P3(e,c,r,n){return new uN(e,c,r,n)}function mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pN(e){if(typeof e=="function")return mi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Et)return 11;if(e===Pt)return 14}return 2}function M6(e,c){var r=e.alternate;return r===null?(r=P3(e.tag,c,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=c,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,c=e.dependencies,r.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Nc(e,c,r,n,i,s){var l=2;if(n=e,typeof e=="function")mi(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case n8:return i0(r.children,i,s,c);case At:l=8,i|=8;break;case O9:return e=P3(12,r,c,i|2),e.elementType=O9,e.lanes=s,e;case D9:return e=P3(13,r,c,i),e.elementType=D9,e.lanes=s,e;case F9:return e=P3(19,r,c,i),e.elementType=F9,e.lanes=s,e;case hm:return lr(r,i,s,c);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pm:l=10;break e;case mm:l=9;break e;case Et:l=11;break e;case Pt:l=14;break e;case o6:l=16,n=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return c=P3(l,r,c,i),c.elementType=e,c.type=n,c.lanes=s,c}function i0(e,c,r,n){return e=P3(7,e,n,c),e.lanes=r,e}function lr(e,c,r,n){return e=P3(22,e,n,c),e.elementType=hm,e.lanes=r,e.stateNode={isHidden:!1},e}function _9(e,c,r){return e=P3(6,e,null,c),e.lanes=r,e}function T9(e,c,r){return c=P3(4,e.children!==null?e.children:[],e.key,c),c.lanes=r,c.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},c}function mN(e,c,r,n,i){this.tag=c,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=H9(0),this.expirationTimes=H9(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H9(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hi(e,c,r,n,i,s,l,u,p){return e=new mN(e,c,r,u,p),c===1?(c=1,s===!0&&(c|=8)):c=0,s=P3(3,null,null,c),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$t(s),e}function hN(e,c,r){var n=3{"use strict";function fv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fv)}catch(e){console.error(e)}}fv(),uv.exports=lv()});var gi=J1(Hi=>{"use strict";var mv=pv();Hi.createRoot=mv.createRoot,Hi.hydrateRoot=mv.hydrateRoot;var kk});var dv=J1((vv,hr)=>{(function(){function e(A){if(A=A||{},this.method=A.method||2,this.colors=A.colors||256,this.initColors=A.initColors||4096,this.initDist=A.initDist||.01,this.distIncr=A.distIncr||.005,this.hueGroups=A.hueGroups||10,this.satGroups=A.satGroups||10,this.lumGroups=A.lumGroups||10,this.minHueCols=A.minHueCols||0,this.hueStats=this.minHueCols?new c(this.hueGroups,this.minHueCols):null,this.boxSize=A.boxSize||[64,64],this.boxPxls=A.boxPxls||2,this.palLocked=!1,this.dithKern=A.dithKern||null,this.dithSerp=A.dithSerp||!1,this.dithDelta=A.dithDelta||0,this.histogram={},this.idxrgb=A.palette?A.palette.slice(0):[],this.idxi32=[],this.i32idx={},this.i32rgb={},this.useCache=A.useCache!==!1,this.cacheFreq=A.cacheFreq||10,this.reIndex=A.reIndex||this.idxrgb.length==0,this.colorDist=A.colorDist=="manhattan"?L:z,this.idxrgb.length>0){var N=this;this.idxrgb.forEach(function(E,T){var j=(-16777216|E[2]<<16|E[1]<<8|E[0])>>>0;N.idxi32[T]=j,N.i32idx[j]=T,N.i32rgb[j]=E})}}e.prototype.sample=function(N,E){if(this.palLocked)throw"Cannot sample additional images, palette already assembled.";var T=O(N,E);switch(this.method){case 1:this.colorStats1D(T.buf32);break;case 2:this.colorStats2D(T.buf32,T.width);break}},e.prototype.reduce=function(N,E,T,j){if(this.palLocked||this.buildPal(),T=T||this.dithKern,j=typeof j<"u"?j:this.dithSerp,E=E||1,T)var K=this.dither(N,T,j);else for(var Y=O(N),q=Y.buf32,t2=q.length,K=new Uint32Array(t2),s2=0;s2>8,e4=(t3&16711680)>>16,Q2=this.nearestColor(t3),X1=Q2&255,D3=(Q2&65280)>>8,I2=(Q2&16711680)>>16;if(Y[y1]=255<<24|I2<<16|D3<<8|X1,this.dithDelta){var b6=this.colorDist([H1,g1,e4],[X1,D3,I2]);if(b6=0&&O1+K2=0&&m4+M2>8,B4=(Y[c4]&16711680)>>16,_8=Math.max(0,Math.min(255,br+Nr*P8)),T8=Math.max(0,Math.min(255,E6+F3*P8)),R8=Math.max(0,Math.min(255,B4+me*P8));Y[c4]=255<<24|R8<<16|T8<<8|_8}}}}return Y},e.prototype.buildPal=function(N){if(!(this.palLocked||this.idxrgb.length>0&&this.idxrgb.length<=this.colors)){var E=this.histogram,T=Z(E,!0);if(T.length==0)throw"Nothing has been sampled, palette cannot be built.";switch(this.method){case 1:for(var j=this.initColors,K=T[j-1],Y=E[K],s2=T.slice(0,j),q=j,t2=T.length;qthis.colors){for(var E=N.length,T={},j=0,K,Y=!1,q=0;q>8,(Q2&16711680)>>16]}),E=t2.length,s2=E,i2=this.initDist;if(s2>this.colors){for(;s2>this.colors;){for(var M2=[],q=0;qthis.colors*3?this.initDist:this.distIncr}if(s2>24&&(this.hueStats&&this.hueStats.check(j),j in E?E[j]++:E[j]=1)},e.prototype.colorStats2D=function(N,E){var T=this.boxSize[0],j=this.boxSize[1],K=T*j,Y=U(E,N.length/E,T,j),q=this.histogram,t2=this;Y.forEach(function(s2){var i2=Math.max(Math.round(s2.w*s2.h/K)*t2.boxPxls,2),M2={},L2;B(s2,E,function(K2){L2=N[K2],(L2&4278190080)>>24&&(t2.hueStats&&t2.hueStats.check(L2),L2 in q?q[L2]++:L2 in M2?++M2[L2]>=i2&&(q[L2]=M2[L2]):M2[L2]=1)})}),this.hueStats&&this.hueStats.inject(q)},e.prototype.sortPal=function(){var N=this;this.idxi32.sort(function(E,T){var j=N.i32idx[E],K=N.i32idx[T],Y=N.idxrgb[j],q=N.idxrgb[K],t2=S(Y[0],Y[1],Y[2]),s2=S(q[0],q[1],q[2]),i2=Y[0]==Y[1]&&Y[1]==Y[2]?-1:P(t2.h,N.hueGroups),M2=q[0]==q[1]&&q[1]==q[2]?-1:P(s2.h,N.hueGroups),L2=M2-i2;if(L2)return-L2;var K2=+s2.l.toFixed(2)-+t2.l.toFixed(2);if(K2)return-K2;var r1=+s2.s.toFixed(2)-+t2.s.toFixed(2);if(r1)return-r1}),this.idxi32.forEach(function(E,T){N.idxrgb[T]=N.i32rgb[E],N.i32idx[E]=T})},e.prototype.nearestColor=function(N){var E=this.nearestIndex(N);return E===null?0:this.idxi32[E]},e.prototype.nearestIndex=function(N){if(!((N&4278190080)>>24))return null;if(this.useCache&&""+N in this.i32idx)return this.i32idx[N];for(var E=1e3,T,j=[N&255,(N&65280)>>8,(N&16711680)>>16],K=this.idxrgb.length,Y=0;Y=this.cacheFreq;T=N[E++])this.i32idx[T]=this.nearestIndex(T)};function c(A,N){this.numGroups=A,this.minCols=N,this.stats={};for(var E=-1;E>8,j=(N&16711680)>>16,K=E==T&&T==j?-1:P(S(E,T,j).h,this.numGroups),Y=this.stats[K],q=this.minCols;Y.num++,!(Y.num>q)&&(Y.num==q&&this.groupsFull++,Y.num<=q&&this.stats[K].cols.push(N))},c.prototype.inject=function(N){for(var E=-1;E.5?t2/(2-T-j):t2/(T+j),T){case A:K=(N-E)/t2+(N=1-T||A<=T)return 0;for(var j=1;j=K-T&&A<=K+T)return j}}function R(A){return A}function W(A){return A}function g(A){return Object.prototype.toString.call(A).slice(8,-1)}var H=b()?Array.prototype.sort:C;function C(A){var N=g(this[0]);if(N=="Number"||N=="String"){for(var E={},T=this.length,j,K=0;K{(function(e,c){typeof define=="function"&&define.amd?define([],c):typeof Ci<"u"?c():(c(),e.FileSaver={})})(Ci,function(){"use strict";function e(u,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}function c(u,p,h){var z=new XMLHttpRequest;z.open("GET",u),z.responseType="blob",z.onload=function(){l(z.response,p,h)},z.onerror=function(){console.error("could not download file")},z.send()}function r(u){var p=new XMLHttpRequest;p.open("HEAD",u,!1);try{p.send()}catch{}return 200<=p.status&&299>=p.status}function n(u){try{u.dispatchEvent(new MouseEvent("click"))}catch{var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),u.dispatchEvent(p)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,s=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(u,p,h){var z=i.URL||i.webkitURL,M=document.createElement("a");p=p||u.name||"download",M.download=p,M.rel="noopener",typeof u=="string"?(M.href=u,M.origin===location.origin?n(M):r(M.href)?c(u,p,h):n(M,M.target="_blank")):(M.href=z.createObjectURL(u),setTimeout(function(){z.revokeObjectURL(M.href)},4e4),setTimeout(function(){n(M)},0))}:"msSaveOrOpenBlob"in navigator?function(u,p,h){if(p=p||u.name||"download",typeof u!="string")navigator.msSaveOrOpenBlob(e(u,h),p);else if(r(u))c(u,p,h);else{var z=document.createElement("a");z.href=u,z.target="_blank",setTimeout(function(){n(z)})}}:function(u,p,h,z){if(z=z||open("","_blank"),z&&(z.document.title=z.document.body.innerText="downloading..."),typeof u=="string")return c(u,p,h);var M=u.type==="application/octet-stream",L=/constructor/i.test(i.HTMLElement)||i.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||M&&L||s)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var g=P.result;g=S?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=g:location=g,z=null},P.readAsDataURL(u)}else{var R=i.URL||i.webkitURL,W=R.createObjectURL(u);z?z.location=W:location.href=W,z=null,setTimeout(function(){R.revokeObjectURL(W)},4e4)}});i.saveAs=l.saveAs=l,typeof Li<"u"&&(Li.exports=l)})});var k0=N2(Z8()),R2=512;function r7(e,c){return e.indexOf(c)===-1?(e.push(c),!0):!1}function e5(e,c){let r=e.indexOf(c);return r!==-1?(e.splice(r,1),!0):!1}function Qa(e,c,r){return{r:e,g:c,b:r}}function U6(e,c){return e>c?e-c:c-e}function Ya(e,c=2){return e.toString(16).padStart(c,"0")}function nl(e,c,r){return"#"+Ya(e)+Ya(c)+Ya(r)}function a7(){return new Promise(e=>requestAnimationFrame(e))}function $a(e){let c=e.lastIndexOf(".");return c===-1?{text:e,ex:""}:{text:e.slice(0,c),ex:e.slice(c+1)}}function tl(e){return new Promise((c,r)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{r(i)}),n.readAsText(e)})}function il(e){return new Promise((c,r)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{r(i)}),n.readAsDataURL(e)})}function sl(e,c){return new Promise((r,n)=>{let i=new Image;i.alt=e,i.addEventListener("load",()=>r(i)),i.addEventListener("error",s=>{n(s)}),c.startsWith("data:image")||c.startsWith("blob")?i.src=c:i.src=`data:image/${$a(e)};base64,${c}`})}function A0(e){return e.length}function E0(e){return e[0]&&e[0].length||0}function P0(e){return A0(e.pixels)}function _0(e){return E0(e.pixels)}function ol(e,c,r){let n=T0();n.width=c,n.height=r;let i=n.getContext("2d");return i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,c,r),xL(n,e.alt)}function xL(e,c){return new Promise((r,n)=>{let i=e.toDataURL("image/png"),s=new Image;s.addEventListener("load",()=>r(s)),s.addEventListener("error",l=>n(l)),c&&(s.alt=c),s.src=i})}function Ja(e){if(typeof e=="object"){let c=(0,k0.clone)(e);if(Array.isArray(c))throw new Error("Should not be an array");{if(typeof c.x!="number")throw new Error("x is not a number");if(typeof c.y!="number")throw new Error("y is not a number");if(!(0,k0.isInteger)(c.x))throw new Error("x is not an integer");if(!(0,k0.isInteger)(c.y))throw new Error("y is not an integer");if(typeof c.name!="string")throw new Error("Missing name");if(c.name.length<=1)throw new Error("Name to short");if(c.name.length>=64)throw new Error("Name to long");if(typeof c.pixels!="object")throw new Error("Pixels are not an object");if(!Array.isArray(c.pixels))throw new Error("Pixels are not an array");let r=0;for(let s=0;s2e3)throw new Error("Height to big");if(i>2e3)throw new Error("Width to big")}}else throw new Error("Not an object")}function n7(e){return e.getContext("2d").getImageData(0,0,e.width,e.height)}function Za(e,c){let{height:r,width:n}=e,i=[];for(let s=0;s-1){p++;let S=r[L];if(!S)throw new Error(`Unknown color at ${L}`);i.fillStyle=S,i.fillRect(h*n,z*n,n,n)}}return p}function T0(){let e=document.createElement("canvas");return e.setAttribute("overlay","true"),e}function al(e){return Math.floor(e/R2)*R2}function c5(e,c){let r=document.createElement("canvas");r.width=E0(e),r.height=A0(e);let n=en(r,e,c);return{canvas:r,pixels:n}}var Ka;try{let e=navigator.language||navigator.userLanguage;Ka=new Intl.NumberFormat(e)}catch{}function t7(e){return Ka?Ka.format(e):e.toString()}function R0(e,c){e.preventDefault(),e.stopPropagation(),e.target.value===""?c(0):e.target.value==="-"?c(-1):c(parseInt(e.target.value,10))}async function fl(e,c){let r=`/tile/${al(e)}/${al(c)}.png`,i=await(await fetch(r)).blob(),s=URL.createObjectURL(i),l=new Image;return l.src=s,new Promise((u,p)=>{l.addEventListener("load",()=>{URL.revokeObjectURL(s),u(l)}),l.addEventListener("error",()=>{URL.revokeObjectURL(s),p(new Error("Unable to load image"))})})}var $4=class{listeners=new Map;on(c,r){let n=this.listeners.get(c)||[];r7(n,r),this.listeners.set(c,n)}off(c,r){let n=this.listeners.get(c)||[];e5(n,r),n.length||this.listeners.delete(c)}emit(c,...r){let n=this.listeners.get(c);if(n)for(let i=0;ir.textContent&&r.textContent.match(/^\(\s*-?\d+\s*,\s*-?\d+\s*\)$/));for(let r of c)r.children.length===0&&(this.cords=r,this.frame=requestAnimationFrame(this.observe));await a7()}}stop(){this.frame&&cancelAnimationFrame(this.frame)}get centerCanvas(){let c=window.innerWidth/2,r=window.innerHeight/2,n=[...document.getElementsByTagName("canvas")].filter(i=>i.classList.contains("leaflet-tile")).map(i=>{let s=i.getBoundingClientRect();return{canvas:i,bounds:{width:s.width,height:s.height,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}}).find(i=>c>i.bounds.left&&ci.bounds.top&&rs&&rs&&r>l?n.bounds.left+=p:(n.bounds.left+=u,n.bounds.top+=p)),n.bounds.bottom=n.bounds.top+u,n.bounds.right=n.bounds.left+p,null}n.bounds.width/=i,n.bounds.height/=i,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(c,r){let n=this.centerCanvas;if(!n)return null;this.getCordsFromUrl();let i=Math.floor(this.ux/R2)*R2,s=Math.floor(this.uy/R2)*R2,l=(c-n.bounds.left)/this.pixelSize+i,u=(r-n.bounds.top)/this.pixelSize+s;return{x:l,y:u}}gridToScreen(c,r){let n=this.centerCanvas;if(!n)return null;let i=Math.floor(this.ux/R2)*R2,s=Math.floor(this.uy/R2)*R2,l=c-i,u=r-s,p=n.bounds.left+l*this.pixelSize,h=n.bounds.top+u*this.pixelSize;return{x:p,y:h}}getCordsFromUrl(){let r=location.pathname.split("/").filter(n=>n)[0];if(r){let n=r.match(/-?\d+/g).map(i=>parseInt(i));if(typeof n[0]=="number"&&typeof n[1]=="number"&&typeof n[2]=="number")return this._ux=n[0],this._uy=n[1],this._uScale=n[2],n}return null}parse(){let c=this.cords.textContent.match(/-?\d+/g).map(r=>parseInt(r));this._x=c[0],this._y=c[1]}observe=()=>{let c=this._x,r=this._y;this.parse(),(c!==this._x||r!==this._y)&&this.emitter.emit(0,this._x,this._y);let n=this._ux,i=this._uy,s=this._uScale;this.getCordsFromUrl(),(n!==this._ux||i!==this._uy||s!==this._uScale)&&this.emitter.emit(1,this._ux,this._uy,this._uScale),this.frame=requestAnimationFrame(this.observe)};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}};var s7=class{buttons=[];palette=[];hex=[];init(){let c=[...document.getElementsByTagName("button")].filter(h=>h.style.backgroundColor);if(c.length<2)return null;let r=new Map,n=new Map,i=c.map(h=>{let{width:z,height:M}=h.getBoundingClientRect(),L=r.get(z)||0,S=n.get(M)||0;return L++,S++,r.set(z,L),n.set(M,S),{btn:h,width:z,height:M}}),s=Array.from(r).sort((h,z)=>h[1]h[1]h.width===s&&h.height===l);this.buttons=u.map(h=>h.btn),this.buttons[0].parentElement.parentElement.style.zIndex="10";let p=u.map(h=>{let z=h.btn.style.backgroundColor.match(/\d+/g);return{r:parseInt(z[0]),g:parseInt(z[1]),b:parseInt(z[2])}});return this.palette=p,this.hex=p.map(h=>nl(h.r,h.g,h.b)),p}};var yi=N2(f1());var n3=N2(f1());var u7=class{constructor(c,r){this.storage=c;this.palette=r}STORAGE_KEY_MURAL="_murals";STORAGE_KEY_SELECTED="_mural";_murals=[];_selected;emitter=new $4;_overlayIndices=[];_phantomOverlay=-1;_overlayModify;async load(){this._murals=await this.storage.getItem(this.STORAGE_KEY_MURAL)||[];for(let r of this._murals){let{canvas:n,pixels:i}=c5(r.pixels,this.palette.hex);r.ref=n,r.pixelCount=i}let c=await this.storage.getItem(this.STORAGE_KEY_SELECTED)??-1;this.select(this._murals[c])}updateMural(c){this.save(),this.emit(3)}unload(){this.save()}add(c){let r=c,{canvas:n,pixels:i}=c5(c.pixels,this.palette.hex);r.ref=n,r.pixelCount=i,this._murals.push(r),this.emit(7),this.save()}remove(c){this._overlayIndices=[],this._overlayModify=void 0,this._phantomOverlay=-1,this._selected&&this._selected?.m===c&&(this._selected=void 0),e5(this._murals,c),this.emit(2),this.save()}addOverlay(c){let r=this._murals.indexOf(c);r!==-1&&(r7(this._overlayIndices,r),this._phantomOverlay===r&&(this._phantomOverlay=-1)),this.emit(5),this.save()}removeOverlay(c){let r=this._murals.indexOf(c);r!==-1&&e5(this._overlayIndices,r),this.emit(5),this.save()}setOverlayModify(c){this._overlayModify=c;let r=c.cb;c.cb=(n,i,s,l)=>{r(n,i,s,l),this._overlayModify=void 0,this.emit(5)},this.emit(5)}hasOverlay(c){let r=this._murals.indexOf(c);return this._overlayIndices.includes(r)}select(c){c?this._selected={m:c,h:P0(c),w:_0(c)}:this._selected=void 0,this.emit(4),this.save()}async save(){await this.storage.setItem(this.STORAGE_KEY_MURAL,this._murals.map(r=>({name:r.name,pixels:r.pixels,x:r.x,y:r.y})));let c=this._selected?.m?this._murals.indexOf(this._selected?.m):-1;await this.storage.setItem(this.STORAGE_KEY_SELECTED,c)}addPhantomOverlay(c){let r=this._murals.indexOf(c);r!==this._phantomOverlay&&!this._overlayIndices.includes(r)&&(this._phantomOverlay=r,this.emit(6))}removePhantomOverlay(){this._phantomOverlay!==-1&&(this._phantomOverlay=-1,this.emit(6))}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(c,r){this.emitter.on(c,r)}off(c,r){this.emitter.off(c,r)}emit(c){this.emitter.emit(c,this),this.emitter.emit(7,this)}};var Ll={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 xl={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 yl={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 wl={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 IL={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"]},Sl=IL;var Nl={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 bl={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 kl={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 Al={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 El={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 Pl={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 _l={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 Tl={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 Rl(e,c){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var c=1;ce.length)&&(c=e.length);for(var r=0,n=new Array(c);r-1;i--){var s=r[i],l=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(n=s)}return D2.head.insertBefore(c,n),e}}var ux="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function f5(){for(var e=12,c="";e-- >0;)c+=ux[Math.random()*62|0];return c}function U0(e){for(var c=[],r=(e||[]).length>>>0;r--;)c[r]=e[r];return c}function Sn(e){return e.classList?U0(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(c){return c})}function Vf(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function px(e){return Object.keys(e||{}).reduce(function(c,r){return c+"".concat(r,'="').concat(Vf(e[r]),'" ')},"").trim()}function w7(e){return Object.keys(e||{}).reduce(function(c,r){return c+"".concat(r,": ").concat(e[r].trim(),";")},"")}function Nn(e){return e.size!==t4.size||e.x!==t4.x||e.y!==t4.y||e.rotate!==t4.rotate||e.flipX||e.flipY}function mx(e){var c=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(c.x*32,", ").concat(c.y*32,") "),l="scale(".concat(c.size/16*(c.flipX?-1:1),", ").concat(c.size/16*(c.flipY?-1:1),") "),u="rotate(".concat(c.rotate," 0 0)"),p={transform:"".concat(s," ").concat(l," ").concat(u)},h={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:p,path:h}}function hx(e){var c=e.transform,r=e.width,n=r===void 0?pn:r,i=e.height,s=i===void 0?pn:i,l=e.startCentered,u=l===void 0?!1:l,p="";return u&&mf?p+="translate(".concat(c.x/J4-n/2,"em, ").concat(c.y/J4-s/2,"em) "):u?p+="translate(calc(-50% + ".concat(c.x/J4,"em), calc(-50% + ").concat(c.y/J4,"em)) "):p+="translate(".concat(c.x/J4,"em, ").concat(c.y/J4,"em) "),p+="scale(".concat(c.size/J4*(c.flipX?-1:1),", ").concat(c.size/J4*(c.flipY?-1:1),") "),p+="rotate(".concat(c.rotate,"deg) "),p}var vx=`:root, :host { +`+s.stack}return{value:e,source:c,stack:i,digest:null}}function Qn(e,c,r){return{value:e,source:null,stack:r??null,digest:c??null}}function Et(e,c){try{console.error(c.value)}catch(r){setTimeout(function(){throw r})}}var rw=typeof WeakMap=="function"?WeakMap:Map;function rm(e,c,r){r=A4(-1,r),r.tag=3,r.payload={element:null};var n=c.value;return r.callback=function(){Cc||(Cc=!0,Ut=n),Et(e,c)},r}function am(e,c,r){r=A4(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=c.value;r.payload=function(){return n(i)},r.callback=function(){Et(e,c)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Et(e,c),typeof n!="function"&&(h6===null?h6=new Set([this]):h6.add(this));var l=c.stack;this.componentDidCatch(c.value,{componentStack:l!==null?l:""})}),r}function pu(e,c,r){var n=e.pingCache;if(n===null){n=e.pingCache=new rw;var i=new Set;n.set(c,i)}else i=n.get(c),i===void 0&&(i=new Set,n.set(c,i));i.has(r)||(i.add(r),e=vw.bind(null,e,c,r),c.then(e,e))}function mu(e){do{var c;if((c=e.tag===13)&&(c=e.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return e;e=e.return}while(e!==null);return null}function hu(e,c,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===c?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(c=A4(-1,1),c.tag=2,m6(r,c,1))),r.lanes|=1),e)}var aw=R4.ReactCurrentOwner,c3=!1;function G1(e,c,r,n){c.child=e===null?Tp(c,null,r,n):u8(c,e.child,r,n)}function du(e,c,r,n,i){r=r.render;var s=c.ref;return i8(c,i),n=V9(e,c,r,n,s,i),r=M9(),e!==null&&!c3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,T4(e,c,i)):(W2&&r&&o9(c),c.flags|=1,G1(e,c,n,i),c.child)}function vu(e,c,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!A9(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(c.tag=15,c.type=s,nm(e,c,s,n,i)):(e=cc(r.type,null,n,c,c.mode,i),e.ref=c.ref,e.return=c,c.child=e)}if(s=e.child,!(e.lanes&i)){var l=s.memoizedProps;if(r=r.compare,r=r!==null?r:F5,r(l,n)&&e.ref===c.ref)return T4(e,c,i)}return c.flags|=1,e=v6(s,n),e.ref=c.ref,e.return=c,c.child=e}function nm(e,c,r,n,i){if(e!==null){var s=e.memoizedProps;if(F5(s,n)&&e.ref===c.ref)if(c3=!1,c.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(c3=!0);else return c.lanes=e.lanes,T4(e,c,i)}return Pt(e,c,r,n,i)}function tm(e,c,r){var n=c.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},_2(c8,m3),m3|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:e,cachePool:null,transitions:null},c.updateQueue=null,_2(c8,m3),m3|=e,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,_2(c8,m3),m3|=n}else s!==null?(n=s.baseLanes|r,c.memoizedState=null):n=r,_2(c8,m3),m3|=n;return G1(e,c,i,r),c.child}function im(e,c){var r=c.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(c.flags|=512,c.flags|=2097152)}function Pt(e,c,r,n,i){var s=a3(r)?r0:_1.current;return s=l8(c,s),i8(c,i),r=V9(e,c,r,n,s,i),n=M9(),e!==null&&!c3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,T4(e,c,i)):(W2&&n&&o9(c),c.flags|=1,G1(e,c,r,i),c.child)}function zu(e,c,r,n,i){if(a3(r)){var s=!0;pc(c)}else s=!1;if(i8(c,i),c.stateNode===null)J7(e,c),Pp(c,r,n),At(c,r,n,i),n=!0;else if(e===null){var l=c.stateNode,u=c.memoizedProps;l.props=u;var p=l.context,h=r.contextType;typeof h=="object"&&h!==null?h=R3(h):(h=a3(r)?r0:_1.current,h=l8(c,h));var z=r.getDerivedStateFromProps,V=typeof z=="function"||typeof l.getSnapshotBeforeUpdate=="function";V||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==n||p!==h)&&ou(c,l,n,h),n6=!1;var L=c.memoizedState;l.state=L,zc(c,n,l,i),p=c.memoizedState,u!==n||L!==p||r3.current||n6?(typeof z=="function"&&(kt(c,r,z,n),p=c.memoizedState),(u=n6||su(c,r,u,n,L,p,h))?(V||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(c.flags|=4194308)):(typeof l.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=n,c.memoizedState=p),l.props=n,l.state=p,l.context=h,n=u):(typeof l.componentDidMount=="function"&&(c.flags|=4194308),n=!1)}else{l=c.stateNode,Ap(e,c),u=c.memoizedProps,h=c.type===c.elementType?u:X3(c.type,u),l.props=h,V=c.pendingProps,L=l.context,p=r.contextType,typeof p=="object"&&p!==null?p=R3(p):(p=a3(r)?r0:_1.current,p=l8(c,p));var S=r.getDerivedStateFromProps;(z=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==V||L!==p)&&ou(c,l,n,p),n6=!1,L=c.memoizedState,l.state=L,zc(c,n,l,i);var P=c.memoizedState;u!==V||L!==P||r3.current||n6?(typeof S=="function"&&(kt(c,r,S,n),P=c.memoizedState),(h=n6||su(c,r,h,n,L,P,p)||!1)?(z||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,P,p),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,P,p)),typeof l.componentDidUpdate=="function"&&(c.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&L===e.memoizedState||(c.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&L===e.memoizedState||(c.flags|=1024),c.memoizedProps=n,c.memoizedState=P),l.props=n,l.state=P,l.context=p,n=h):(typeof l.componentDidUpdate!="function"||u===e.memoizedProps&&L===e.memoizedState||(c.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&L===e.memoizedState||(c.flags|=1024),n=!1)}return _t(e,c,r,n,s,i)}function _t(e,c,r,n,i,s){im(e,c);var l=(c.flags&128)!==0;if(!n&&!l)return i&&ru(c,r,!1),T4(e,c,s);n=c.stateNode,aw.current=c;var u=l&&typeof r.getDerivedStateFromError!="function"?null:n.render();return c.flags|=1,e!==null&&l?(c.child=u8(c,e.child,null,s),c.child=u8(c,null,u,s)):G1(e,c,u,s),c.memoizedState=n.state,i&&ru(c,r,!0),c.child}function sm(e){var c=e.stateNode;c.pendingContext?cu(e,c.pendingContext,c.pendingContext!==c.context):c.context&&cu(e,c.context,!1),v9(e,c.containerInfo)}function Hu(e,c,r,n,i){return f8(),f9(i),c.flags|=256,G1(e,c,r,n),c.child}var Tt={dehydrated:null,treeContext:null,retryLane:0};function Rt(e){return{baseLanes:e,cachePool:null,transitions:null}}function om(e,c,r){var n=c.pendingProps,i=j2.current,s=!1,l=(c.flags&128)!==0,u;if((u=l)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(s=!0,c.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_2(j2,i&1),e===null)return Nt(c),e=c.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(c.mode&1?e.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(l=n.children,e=n.fallback,s?(n=c.mode,s=c.child,l={mode:"hidden",children:l},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=Rc(l,n,0,null),e=c0(e,n,r,null),s.return=c,e.return=c,s.sibling=e,c.child=s,c.child.memoizedState=Rt(r),c.memoizedState=Tt,e):x9(c,l));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return nw(e,c,l,n,u,i,r);if(s){s=n.fallback,l=c.mode,i=e.child,u=i.sibling;var p={mode:"hidden",children:n.children};return!(l&1)&&c.child!==i?(n=c.child,n.childLanes=0,n.pendingProps=p,c.deletions=null):(n=v6(i,p),n.subtreeFlags=i.subtreeFlags&14680064),u!==null?s=v6(u,s):(s=c0(s,l,r,null),s.flags|=2),s.return=c,n.return=c,n.sibling=s,c.child=n,n=s,s=c.child,l=e.child.memoizedState,l=l===null?Rt(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,c.memoizedState=Tt,n}return s=e.child,e=s.sibling,n=v6(s,{mode:"visible",children:n.children}),!(c.mode&1)&&(n.lanes=r),n.return=c,n.sibling=null,e!==null&&(r=c.deletions,r===null?(c.deletions=[e],c.flags|=16):r.push(e)),c.child=n,c.memoizedState=null,n}function x9(e,c){return c=Rc({mode:"visible",children:c},e.mode,0,null),c.return=e,e.child=c}function W7(e,c,r,n){return n!==null&&f9(n),u8(c,e.child,null,r),e=x9(c,c.pendingProps.children),e.flags|=2,c.memoizedState=null,e}function nw(e,c,r,n,i,s,l){if(r)return c.flags&256?(c.flags&=-257,n=Qn(Error(G(422))),W7(e,c,l,n)):c.memoizedState!==null?(c.child=e.child,c.flags|=128,null):(s=n.fallback,i=c.mode,n=Rc({mode:"visible",children:n.children},i,0,null),s=c0(s,i,l,null),s.flags|=2,n.return=c,s.return=c,n.sibling=s,c.child=n,c.mode&1&&u8(c,e.child,null,l),c.child.memoizedState=Rt(l),c.memoizedState=Tt,s);if(!(c.mode&1))return W7(e,c,l,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var u=n.dgst;return n=u,s=Error(G(419)),n=Qn(s,n,void 0),W7(e,c,l,n)}if(u=(l&e.childLanes)!==0,c3||u){if(n=z1,n!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|l)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,_4(e,i),$3(n,e,i,-1))}return k9(),n=Qn(Error(G(421))),W7(e,c,l,n)}return i.data==="$?"?(c.flags|=128,c.child=e.child,c=zw.bind(null,e),i._reactRetry=c,null):(e=s.treeContext,h3=p6(i.nextSibling),d3=c,W2=!0,K3=null,e!==null&&(E3[P3++]=b4,E3[P3++]=k4,E3[P3++]=a0,b4=e.id,k4=e.overflow,a0=c),c=x9(c,n.children),c.flags|=4096,c)}function gu(e,c,r){e.lanes|=c;var n=e.alternate;n!==null&&(n.lanes|=c),bt(e.return,c,r)}function $n(e,c,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=c,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function lm(e,c,r){var n=c.pendingProps,i=n.revealOrder,s=n.tail;if(G1(e,c,n.children,r),n=j2.current,n&2)n=n&1|2,c.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=c.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gu(e,r,c);else if(e.tag===19)gu(e,r,c);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===c)break e;for(;e.sibling===null;){if(e.return===null||e.return===c)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(_2(j2,n),!(c.mode&1))c.memoizedState=null;else switch(i){case"forwards":for(r=c.child,i=null;r!==null;)e=r.alternate,e!==null&&Hc(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=c.child,c.child=null):(i=r.sibling,r.sibling=null),$n(c,!1,i,r,s);break;case"backwards":for(r=null,i=c.child,c.child=null;i!==null;){if(e=i.alternate,e!==null&&Hc(e)===null){c.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}$n(c,!0,r,null,s);break;case"together":$n(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function J7(e,c){!(c.mode&1)&&e!==null&&(e.alternate=null,c.alternate=null,c.flags|=2)}function T4(e,c,r){if(e!==null&&(c.dependencies=e.dependencies),t0|=c.lanes,!(r&c.childLanes))return null;if(e!==null&&c.child!==e.child)throw Error(G(153));if(c.child!==null){for(e=c.child,r=v6(e,e.pendingProps),c.child=r,r.return=c;e.sibling!==null;)e=e.sibling,r=r.sibling=v6(e,e.pendingProps),r.return=c;r.sibling=null}return c.child}function tw(e,c,r){switch(c.tag){case 3:sm(c),f8();break;case 5:Rp(c);break;case 1:a3(c.type)&&pc(c);break;case 4:v9(c,c.stateNode.containerInfo);break;case 10:var n=c.type._context,i=c.memoizedProps.value;_2(dc,n._currentValue),n._currentValue=i;break;case 13:if(n=c.memoizedState,n!==null)return n.dehydrated!==null?(_2(j2,j2.current&1),c.flags|=128,null):r&c.child.childLanes?om(e,c,r):(_2(j2,j2.current&1),e=T4(e,c,r),e!==null?e.sibling:null);_2(j2,j2.current&1);break;case 19:if(n=(r&c.childLanes)!==0,e.flags&128){if(n)return lm(e,c,r);c.flags|=128}if(i=c.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_2(j2,j2.current),n)break;return null;case 22:case 23:return c.lanes=0,tm(e,c,r)}return T4(e,c,r)}var fm,Dt,um,pm;fm=function(e,c){for(var r=c.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===c)break;for(;r.sibling===null;){if(r.return===null||r.return===c)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Dt=function(){};um=function(e,c,r,n){var i=e.memoizedProps;if(i!==n){e=c.stateNode,Z6(u4.current);var s=null;switch(r){case"input":i=tt(e,i),n=tt(e,n),s=[];break;case"select":i=Y2({},i,{value:void 0}),n=Y2({},n,{value:void 0}),s=[];break;case"textarea":i=ot(e,i),n=ot(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=fc)}ft(r,n);var l;r=null;for(h in i)if(!n.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var u=i[h];for(l in u)u.hasOwnProperty(l)&&(r||(r={}),r[l]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(E5.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in n){var p=n[h];if(u=i?.[h],n.hasOwnProperty(h)&&p!==u&&(p!=null||u!=null))if(h==="style")if(u){for(l in u)!u.hasOwnProperty(l)||p&&p.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in p)p.hasOwnProperty(l)&&u[l]!==p[l]&&(r||(r={}),r[l]=p[l])}else r||(s||(s=[]),s.push(h,r)),r=p;else h==="dangerouslySetInnerHTML"?(p=p?p.__html:void 0,u=u?u.__html:void 0,p!=null&&u!==p&&(s=s||[]).push(h,p)):h==="children"?typeof p!="string"&&typeof p!="number"||(s=s||[]).push(h,""+p):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(E5.hasOwnProperty(h)?(p!=null&&h==="onScroll"&&R2("scroll",e),s||u===p||(s=[])):(s=s||[]).push(h,p))}r&&(s=s||[]).push("style",r);var h=s;(c.updateQueue=h)&&(c.flags|=4)}};pm=function(e,c,r,n){r!==n&&(c.flags|=4)};function v5(e,c){if(!W2)switch(e.tailMode){case"hidden":c=e.tail;for(var r=null;c!==null;)c.alternate!==null&&(r=c),c=c.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?c||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function E1(e){var c=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(c)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,c}function iw(e,c,r){var n=c.pendingProps;switch(l9(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return E1(c),null;case 1:return a3(c.type)&&uc(),E1(c),null;case 3:return n=c.stateNode,p8(),D2(r3),D2(_1),H9(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(I7(c)?c.flags|=4:e===null||e.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,K3!==null&&(qt(K3),K3=null))),Dt(e,c),E1(c),null;case 5:z9(c);var i=Z6(G5.current);if(r=c.type,e!==null&&c.stateNode!=null)um(e,c,r,n,i),e.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!n){if(c.stateNode===null)throw Error(G(166));return E1(c),null}if(e=Z6(u4.current),I7(c)){n=c.stateNode,r=c.type;var s=c.memoizedProps;switch(n[l4]=c,n[U5]=s,e=(c.mode&1)!==0,r){case"dialog":R2("cancel",n),R2("close",n);break;case"iframe":case"object":case"embed":R2("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[l4]=c,e[U5]=n,fm(e,c,!1,!1),c.stateNode=e;e:{switch(l=ut(r,n),r){case"dialog":R2("cancel",e),R2("close",e),i=n;break;case"iframe":case"object":case"embed":R2("load",e),i=n;break;case"video":case"audio":for(i=0;ih8&&(c.flags|=128,n=!0,v5(s,!1),c.lanes=4194304)}else{if(!n)if(e=Hc(l),e!==null){if(c.flags|=128,n=!0,r=e.updateQueue,r!==null&&(c.updateQueue=r,c.flags|=4),v5(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!W2)return E1(c),null}else 2*t1()-s.renderingStartTime>h8&&r!==1073741824&&(c.flags|=128,n=!0,v5(s,!1),c.lanes=4194304);s.isBackwards?(l.sibling=c.child,c.child=l):(r=s.last,r!==null?r.sibling=l:c.child=l,s.last=l)}return s.tail!==null?(c=s.tail,s.rendering=c,s.tail=c.sibling,s.renderingStartTime=t1(),c.sibling=null,r=j2.current,_2(j2,n?r&1|2:r&1),c):(E1(c),null);case 22:case 23:return b9(),n=c.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(c.flags|=8192),n&&c.mode&1?m3&1073741824&&(E1(c),c.subtreeFlags&6&&(c.flags|=8192)):E1(c),null;case 24:return null;case 25:return null}throw Error(G(156,c.tag))}function sw(e,c){switch(l9(c),c.tag){case 1:return a3(c.type)&&uc(),e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 3:return p8(),D2(r3),D2(_1),H9(),e=c.flags,e&65536&&!(e&128)?(c.flags=e&-65537|128,c):null;case 5:return z9(c),null;case 13:if(D2(j2),e=c.memoizedState,e!==null&&e.dehydrated!==null){if(c.alternate===null)throw Error(G(340));f8()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 19:return D2(j2),null;case 4:return p8(),null;case 10:return m9(c.type._context),null;case 22:case 23:return b9(),null;case 24:return null;default:return null}}var G7=!1,P1=!1,ow=typeof WeakSet=="function"?WeakSet:Set,J=null;function e8(e,c){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){e1(e,c,n)}else r.current=null}function Ot(e,c,r){try{r()}catch(n){e1(e,c,n)}}var Vu=!1;function lw(e,c){if(Mt=sc,e=vp(),s9(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 i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var l=0,u=-1,p=-1,h=0,z=0,V=e,L=null;c:for(;;){for(var S;V!==r||i!==0&&V.nodeType!==3||(u=l+i),V!==s||n!==0&&V.nodeType!==3||(p=l+n),V.nodeType===3&&(l+=V.nodeValue.length),(S=V.firstChild)!==null;)L=V,V=S;for(;;){if(V===e)break c;if(L===r&&++h===i&&(u=l),L===s&&++z===n&&(p=l),(S=V.nextSibling)!==null)break;V=L,L=V.parentNode}V=S}r=u===-1||p===-1?null:{start:u,end:p}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ct={focusedElem:e,selectionRange:r},sc=!1,J=c;J!==null;)if(c=J,e=c.child,(c.subtreeFlags&1028)!==0&&e!==null)e.return=c,J=e;else for(;J!==null;){c=J;try{var P=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(P!==null){var T=P.memoizedProps,W=P.memoizedState,g=c.stateNode,H=g.getSnapshotBeforeUpdate(c.elementType===c.type?T:X3(c.type,T),W);g.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var C=c.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(G(163))}}catch(b){e1(c,c.return,b)}if(e=c.sibling,e!==null){e.return=c.return,J=e;break}J=c.return}return P=Vu,Vu=!1,P}function b5(e,c,r){var n=c.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ot(c,r,s)}i=i.next}while(i!==n)}}function _c(e,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var r=c=c.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==c)}}function Ft(e){var c=e.ref;if(c!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof c=="function"?c(e):c.current=e}}function mm(e){var c=e.alternate;c!==null&&(e.alternate=null,mm(c)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(c=e.stateNode,c!==null&&(delete c[l4],delete c[U5],delete c[yt],delete c[qy],delete c[jy])),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 hm(e){return e.tag===5||e.tag===3||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hm(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 Bt(e,c,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?r.nodeType===8?r.parentNode.insertBefore(e,c):r.insertBefore(e,c):(r.nodeType===8?(c=r.parentNode,c.insertBefore(e,r)):(c=r,c.appendChild(e)),r=r._reactRootContainer,r!=null||c.onclick!==null||(c.onclick=fc));else if(n!==4&&(e=e.child,e!==null))for(Bt(e,c,r),e=e.sibling;e!==null;)Bt(e,c,r),e=e.sibling}function It(e,c,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?r.insertBefore(e,c):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(It(e,c,r),e=e.sibling;e!==null;)It(e,c,r),e=e.sibling}var M1=null,Y3=!1;function r6(e,c,r){for(r=r.child;r!==null;)dm(e,c,r),r=r.sibling}function dm(e,c,r){if(f4&&typeof f4.onCommitFiberUnmount=="function")try{f4.onCommitFiberUnmount(wc,r)}catch{}switch(r.tag){case 5:P1||e8(r,c);case 6:var n=M1,i=Y3;M1=null,r6(e,c,r),M1=n,Y3=i,M1!==null&&(Y3?(e=M1,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):M1.removeChild(r.stateNode));break;case 18:M1!==null&&(Y3?(e=M1,r=r.stateNode,e.nodeType===8?Gn(e.parentNode,r):e.nodeType===1&&Gn(e,r),D5(e)):Gn(M1,r.stateNode));break;case 4:n=M1,i=Y3,M1=r.stateNode.containerInfo,Y3=!0,r6(e,c,r),M1=n,Y3=i;break;case 0:case 11:case 14:case 15:if(!P1&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Ot(r,c,l),i=i.next}while(i!==n)}r6(e,c,r);break;case 1:if(!P1&&(e8(r,c),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(u){e1(r,c,u)}r6(e,c,r);break;case 21:r6(e,c,r);break;case 22:r.mode&1?(P1=(n=P1)||r.memoizedState!==null,r6(e,c,r),P1=n):r6(e,c,r);break;default:r6(e,c,r)}}function Cu(e){var c=e.updateQueue;if(c!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new ow),c.forEach(function(n){var i=Hw.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function j3(e,c){var r=c.deletions;if(r!==null)for(var n=0;ni&&(i=l),n&=~s}if(n=i,n=t1()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*uw(n/1960))-n,10e?16:e,o6===null)var n=!1;else{if(e=o6,o6=null,Lc=0,V2&6)throw Error(G(331));var i=V2;for(V2|=4,J=e.current;J!==null;){var s=J,l=s.child;if(J.flags&16){var u=s.deletions;if(u!==null){for(var p=0;pt1()-S9?e0(e,0):w9|=r),n3(e,c)}function Lm(e,c){c===0&&(e.mode&1?(c=A7,A7<<=1,!(A7&130023424)&&(A7=4194304)):c=1);var r=q1();e=_4(e,c),e!==null&&(K5(e,c,r),n3(e,r))}function zw(e){var c=e.memoizedState,r=0;c!==null&&(r=c.retryLane),Lm(e,r)}function Hw(e,c){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(G(314))}n!==null&&n.delete(c),Lm(e,r)}var xm;xm=function(e,c,r){if(e!==null)if(e.memoizedProps!==c.pendingProps||r3.current)c3=!0;else{if(!(e.lanes&r)&&!(c.flags&128))return c3=!1,tw(e,c,r);c3=!!(e.flags&131072)}else c3=!1,W2&&c.flags&1048576&&Sp(c,hc,c.index);switch(c.lanes=0,c.tag){case 2:var n=c.type;J7(e,c),e=c.pendingProps;var i=l8(c,_1.current);i8(c,r),i=V9(null,c,n,e,i,r);var s=M9();return c.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,a3(n)?(s=!0,pc(c)):s=!1,c.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,d9(c),i.updater=Ec,c.stateNode=i,i._reactInternals=c,At(c,n,e,r),c=_t(null,c,n,!0,s,r)):(c.tag=0,W2&&s&&o9(c),G1(null,c,i,r),c=c.child),c;case 16:n=c.elementType;e:{switch(J7(e,c),e=c.pendingProps,i=n._init,n=i(n._payload),c.type=n,i=c.tag=Vw(n),e=X3(n,e),i){case 0:c=Pt(null,c,n,e,r);break e;case 1:c=zu(null,c,n,e,r);break e;case 11:c=du(null,c,n,e,r);break e;case 14:c=vu(null,c,n,X3(n.type,e),r);break e}throw Error(G(306,n,""))}return c;case 0:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:X3(n,i),Pt(e,c,n,i,r);case 1:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:X3(n,i),zu(e,c,n,i,r);case 3:e:{if(sm(c),e===null)throw Error(G(387));n=c.pendingProps,s=c.memoizedState,i=s.element,Ap(e,c),zc(c,n,null,r);var l=c.memoizedState;if(n=l.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},c.updateQueue.baseState=s,c.memoizedState=s,c.flags&256){i=m8(Error(G(423)),c),c=Hu(e,c,n,r,i);break e}else if(n!==i){i=m8(Error(G(424)),c),c=Hu(e,c,n,r,i);break e}else for(h3=p6(c.stateNode.containerInfo.firstChild),d3=c,W2=!0,K3=null,r=Tp(c,null,n,r),c.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(f8(),n===i){c=T4(e,c,r);break e}G1(e,c,n,r)}c=c.child}return c;case 5:return Rp(c),e===null&&Nt(c),n=c.type,i=c.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,Lt(n,i)?l=null:s!==null&&Lt(n,s)&&(c.flags|=32),im(e,c),G1(e,c,l,r),c.child;case 6:return e===null&&Nt(c),null;case 13:return om(e,c,r);case 4:return v9(c,c.stateNode.containerInfo),n=c.pendingProps,e===null?c.child=u8(c,null,n,r):G1(e,c,n,r),c.child;case 11:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:X3(n,i),du(e,c,n,i,r);case 7:return G1(e,c,c.pendingProps,r),c.child;case 8:return G1(e,c,c.pendingProps.children,r),c.child;case 12:return G1(e,c,c.pendingProps.children,r),c.child;case 10:e:{if(n=c.type._context,i=c.pendingProps,s=c.memoizedProps,l=i.value,_2(dc,n._currentValue),n._currentValue=l,s!==null)if(J3(s.value,l)){if(s.children===i.children&&!r3.current){c=T4(e,c,r);break e}}else for(s=c.child,s!==null&&(s.return=c);s!==null;){var u=s.dependencies;if(u!==null){l=s.child;for(var p=u.firstContext;p!==null;){if(p.context===n){if(s.tag===1){p=A4(-1,r&-r),p.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var z=h.pending;z===null?p.next=p:(p.next=z.next,z.next=p),h.pending=p}}s.lanes|=r,p=s.alternate,p!==null&&(p.lanes|=r),bt(s.return,r,c),u.lanes|=r;break}p=p.next}}else if(s.tag===10)l=s.type===c.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(G(341));l.lanes|=r,u=l.alternate,u!==null&&(u.lanes|=r),bt(l,r,c),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===c){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}G1(e,c,i.children,r),c=c.child}return c;case 9:return i=c.type,n=c.pendingProps.children,i8(c,r),i=R3(i),n=n(i),c.flags|=1,G1(e,c,n,r),c.child;case 14:return n=c.type,i=X3(n,c.pendingProps),i=X3(n.type,i),vu(e,c,n,i,r);case 15:return nm(e,c,c.type,c.pendingProps,r);case 17:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:X3(n,i),J7(e,c),c.tag=1,a3(n)?(e=!0,pc(c)):e=!1,i8(c,r),Pp(c,n,i),At(c,n,i,r),_t(null,c,n,!0,e,r);case 19:return lm(e,c,r);case 22:return tm(e,c,r)}throw Error(G(156,c.tag))};function ym(e,c){return $u(e,c)}function gw(e,c,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=c,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 _3(e,c,r,n){return new gw(e,c,r,n)}function A9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vw(e){if(typeof e=="function")return A9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qt)return 11;if(e===$t)return 14}return 2}function v6(e,c){var r=e.alternate;return r===null?(r=_3(e.tag,c,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=c,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,c=e.dependencies,r.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function cc(e,c,r,n,i,s){var l=2;if(n=e,typeof e=="function")A9(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case q0:return c0(r.children,i,s,c);case Kt:l=8,i|=8;break;case ct:return e=_3(12,r,c,i|2),e.elementType=ct,e.lanes=s,e;case rt:return e=_3(13,r,c,i),e.elementType=rt,e.lanes=s,e;case at:return e=_3(19,r,c,i),e.elementType=at,e.lanes=s,e;case _u:return Rc(r,i,s,c);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Eu:l=10;break e;case Pu:l=9;break e;case Qt:l=11;break e;case $t:l=14;break e;case a6:l=16,n=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return c=_3(l,r,c,i),c.elementType=e,c.type=n,c.lanes=s,c}function c0(e,c,r,n){return e=_3(7,e,n,c),e.lanes=r,e}function Rc(e,c,r,n){return e=_3(22,e,n,c),e.elementType=_u,e.lanes=r,e.stateNode={isHidden:!1},e}function Jn(e,c,r){return e=_3(6,e,null,c),e.lanes=r,e}function Zn(e,c,r){return c=_3(4,e.children!==null?e.children:[],e.key,c),c.lanes=r,c.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},c}function Mw(e,c,r,n,i){this.tag=c,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=Rn(0),this.expirationTimes=Rn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rn(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function E9(e,c,r,n,i,s,l,u,p){return e=new Mw(e,c,r,u,p),c===1?(c=1,s===!0&&(c|=8)):c=0,s=_3(3,null,null,c),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},d9(s),e}function Cw(e,c,r){var n=3{"use strict";function km(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(km)}catch(e){console.error(e)}}km(),Am.exports=bm()});var D9=Z1(R9=>{"use strict";var Pm=Em();R9.createRoot=Pm.createRoot,R9.hydrateRoot=Pm.hydrateRoot;var Zb});var od=Z1((Ek,sd)=>{"use strict";var pN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";sd.exports=pN});var pd=Z1((Pk,ud)=>{"use strict";var mN=od();function ld(){}function fd(){}fd.resetWarningCache=ld;ud.exports=function(){function e(n,i,s,l,u,p){if(p!==mN){var h=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 h.name="Invariant Violation",h}}e.isRequired=e;function c(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:c,element:e,elementType:e,instanceOf:c,node:e,objectOf:c,oneOf:c,oneOfType:c,shape:c,exact:c,checkPropTypes:fd,resetWarningCache:ld};return r.PropTypes=r,r}});var hd=Z1((Rk,md)=>{md.exports=pd()();var _k,Tk});var Cd=Z1((Md,dr)=>{(function(){function e(A){if(A=A||{},this.method=A.method||2,this.colors=A.colors||256,this.initColors=A.initColors||4096,this.initDist=A.initDist||.01,this.distIncr=A.distIncr||.005,this.hueGroups=A.hueGroups||10,this.satGroups=A.satGroups||10,this.lumGroups=A.lumGroups||10,this.minHueCols=A.minHueCols||0,this.hueStats=this.minHueCols?new c(this.hueGroups,this.minHueCols):null,this.boxSize=A.boxSize||[64,64],this.boxPxls=A.boxPxls||2,this.palLocked=!1,this.dithKern=A.dithKern||null,this.dithSerp=A.dithSerp||!1,this.dithDelta=A.dithDelta||0,this.histogram={},this.idxrgb=A.palette?A.palette.slice(0):[],this.idxi32=[],this.i32idx={},this.i32rgb={},this.useCache=A.useCache!==!1,this.cacheFreq=A.cacheFreq||10,this.reIndex=A.reIndex||this.idxrgb.length==0,this.colorDist=A.colorDist=="manhattan"?L:z,this.idxrgb.length>0){var N=this;this.idxrgb.forEach(function(E,R){var j=(-16777216|E[2]<<16|E[1]<<8|E[0])>>>0;N.idxi32[R]=j,N.i32idx[j]=R,N.i32rgb[j]=E})}}e.prototype.sample=function(N,E){if(this.palLocked)throw"Cannot sample additional images, palette already assembled.";var R=D(N,E);switch(this.method){case 1:this.colorStats1D(R.buf32);break;case 2:this.colorStats2D(R.buf32,R.width);break}},e.prototype.reduce=function(N,E,R,j){if(this.palLocked||this.buildPal(),R=R||this.dithKern,j=typeof j<"u"?j:this.dithSerp,E=E||1,R)var K=this.dither(N,R,j);else for(var Y=D(N),q=Y.buf32,t2=q.length,K=new Uint32Array(t2),o2=0;o2>8,e4=(i3&16711680)>>16,Q2=this.nearestColor(i3),Y1=Q2&255,O3=(Q2&65280)>>8,I2=(Q2&16711680)>>16;if(Y[w1]=255<<24|I2<<16|O3<<8|Y1,this.dithDelta){var A6=this.colorDist([H1,g1,e4],[Y1,O3,I2]);if(A6=0&&O1+K2=0&&h4+M2>8,I4=(Y[c4]&16711680)>>16,_8=Math.max(0,Math.min(255,kr+br*P8)),T8=Math.max(0,Math.min(255,_6+F3*P8)),R8=Math.max(0,Math.min(255,I4+he*P8));Y[c4]=255<<24|R8<<16|T8<<8|_8}}}}return Y},e.prototype.buildPal=function(N){if(!(this.palLocked||this.idxrgb.length>0&&this.idxrgb.length<=this.colors)){var E=this.histogram,R=Z(E,!0);if(R.length==0)throw"Nothing has been sampled, palette cannot be built.";switch(this.method){case 1:for(var j=this.initColors,K=R[j-1],Y=E[K],o2=R.slice(0,j),q=j,t2=R.length;qthis.colors){for(var E=N.length,R={},j=0,K,Y=!1,q=0;q>8,(Q2&16711680)>>16]}),E=t2.length,o2=E,i2=this.initDist;if(o2>this.colors){for(;o2>this.colors;){for(var M2=[],q=0;qthis.colors*3?this.initDist:this.distIncr}if(o2>24&&(this.hueStats&&this.hueStats.check(j),j in E?E[j]++:E[j]=1)},e.prototype.colorStats2D=function(N,E){var R=this.boxSize[0],j=this.boxSize[1],K=R*j,Y=U(E,N.length/E,R,j),q=this.histogram,t2=this;Y.forEach(function(o2){var i2=Math.max(Math.round(o2.w*o2.h/K)*t2.boxPxls,2),M2={},L2;B(o2,E,function(K2){L2=N[K2],(L2&4278190080)>>24&&(t2.hueStats&&t2.hueStats.check(L2),L2 in q?q[L2]++:L2 in M2?++M2[L2]>=i2&&(q[L2]=M2[L2]):M2[L2]=1)})}),this.hueStats&&this.hueStats.inject(q)},e.prototype.sortPal=function(){var N=this;this.idxi32.sort(function(E,R){var j=N.i32idx[E],K=N.i32idx[R],Y=N.idxrgb[j],q=N.idxrgb[K],t2=S(Y[0],Y[1],Y[2]),o2=S(q[0],q[1],q[2]),i2=Y[0]==Y[1]&&Y[1]==Y[2]?-1:P(t2.h,N.hueGroups),M2=q[0]==q[1]&&q[1]==q[2]?-1:P(o2.h,N.hueGroups),L2=M2-i2;if(L2)return-L2;var K2=+o2.l.toFixed(2)-+t2.l.toFixed(2);if(K2)return-K2;var r1=+o2.s.toFixed(2)-+t2.s.toFixed(2);if(r1)return-r1}),this.idxi32.forEach(function(E,R){N.idxrgb[R]=N.i32rgb[E],N.i32idx[E]=R})},e.prototype.nearestColor=function(N){var E=this.nearestIndex(N);return E===null?0:this.idxi32[E]},e.prototype.nearestIndex=function(N){if(!((N&4278190080)>>24))return null;if(this.useCache&&""+N in this.i32idx)return this.i32idx[N];for(var E=1e3,R,j=[N&255,(N&65280)>>8,(N&16711680)>>16],K=this.idxrgb.length,Y=0;Y=this.cacheFreq;R=N[E++])this.i32idx[R]=this.nearestIndex(R)};function c(A,N){this.numGroups=A,this.minCols=N,this.stats={};for(var E=-1;E>8,j=(N&16711680)>>16,K=E==R&&R==j?-1:P(S(E,R,j).h,this.numGroups),Y=this.stats[K],q=this.minCols;Y.num++,!(Y.num>q)&&(Y.num==q&&this.groupsFull++,Y.num<=q&&this.stats[K].cols.push(N))},c.prototype.inject=function(N){for(var E=-1;E.5?t2/(2-R-j):t2/(R+j),R){case A:K=(N-E)/t2+(N=1-R||A<=R)return 0;for(var j=1;j=K-R&&A<=K+R)return j}}function T(A){return A}function W(A){return A}function g(A){return Object.prototype.toString.call(A).slice(8,-1)}var H=b()?Array.prototype.sort:C;function C(A){var N=g(this[0]);if(N=="Number"||N=="String"){for(var E={},R=this.length,j,K=0;K0?J2(R0,--b3):0,T0--,i1===10&&(T0=1,f7--),i1}function k3(){return i1=b32||tn(i1)>3?"":" "}function Nl(e,c){for(;--c&&k3()&&!(i1<48||i1>102||i1>57&&i1<65||i1>70&&i1<97););return u7(e,t5()+(c<6&&Z4()==32&&k3()==32))}function sn(e){for(;k3();)switch(i1){case e:return b3;case 34:case 39:e!==34&&e!==39&&sn(i1);break;case 40:e===41&&sn(e);break;case 92:k3();break}return b3}function bl(e,c){for(;k3()&&e+i1!==57;)if(e+i1===84&&Z4()===47)break;return"/*"+u7(c,b3-1)+"*"+r5(e===47?e:k3())}function kl(e){for(;!tn(Z4());)k3();return u7(e,b3)}function Pl(e){return wl(m7("",null,null,null,[""],e=yl(e),0,[0],e))}function m7(e,c,r,n,i,s,l,u,p){for(var h=0,z=0,V=l,L=0,S=0,P=0,T=1,W=1,g=1,H=0,C="",b=i,D=s,U=n,B=C;W;)switch(P=H,H=k3()){case 40:if(P!=108&&J2(B,V-1)==58){_0(B+=u2(p7(H),"&","&\f"),"&\f",an(h?u[h-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:B+=p7(H);break;case 9:case 10:case 13:case 32:B+=Sl(P);break;case 92:B+=Nl(t5()-1,7);continue;case 47:switch(Z4()){case 42:case 47:q6(UL(bl(k3(),t5()),c,r,p),p);break;default:B+="/"}break;case 123*T:u[h++]=W1(B)*g;case 125*T:case 59:case 0:switch(H){case 0:case 125:W=0;case 59+z:g==-1&&(B=u2(B,/\f/g,"")),S>0&&W1(B)-V&&q6(S>32?El(B+";",n,r,V-1,p):El(u2(B," ","")+";",n,r,V-2,p),p);break;case 59:B+=";";default:if(q6(U=Al(B,c,r,h,z,i,u,C,b=[],D=[],V,s),s),H===123)if(z===0)m7(B,c,U,U,b,s,V,u,D);else switch(L===99&&J2(B,3)===110?100:L){case 100:case 108:case 109:case 115:m7(e,U,U,n&&q6(Al(e,U,U,0,0,i,u,C,i,b=[],V,D),D),i,D,V,u,n?b:D);break;default:m7(B,U,U,U,[""],D,0,u,D)}}h=z=S=0,T=g=1,C=B="",V=l;break;case 58:V=1+W1(B),S=P;default:if(T<1){if(H==123)--T;else if(H==125&&T++==0&&xl()==125)continue}switch(B+=r5(H),H*T){case 38:g=z>0?1:(B+="\f",-1);break;case 44:u[h++]=(W1(B)-1)*g,g=1;break;case 64:Z4()===45&&(B+=p7(k3())),L=Z4(),z=V=W1(C=B+=kl(t5())),H++;break;case 45:P===45&&W1(B)==2&&(T=0)}}return s}function Al(e,c,r,n,i,s,l,u,p,h,z,V){for(var L=i-1,S=i===0?s:[""],P=l7(S),T=0,W=0,g=0;T0?S[H]+" "+C:u2(C,/&\f/g,S[H])))&&(p[g++]=b);return n5(e,c,r,i===0?J4:u,p,h,z,V)}function UL(e,c,r,n){return n5(e,c,r,i7,r5(Ll()),t4(e,2,-2),0,n)}function El(e,c,r,n,i){return n5(e,c,r,P0,t4(e,0,n),t4(e,n+1,-1),n,i)}function on(e,c,r){switch(Vl(e,c)){case 5103:return C2+"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 C2+e+e;case 4789:return G6+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C2+e+G6+e+k2+e+e;case 5936:switch(J2(e,c+11)){case 114:return C2+e+k2+u2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C2+e+k2+u2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C2+e+k2+u2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C2+e+k2+e+e;case 6165:return C2+e+k2+"flex-"+e+e;case 5187:return C2+e+u2(e,/(\w+).+(:[^]+)/,C2+"box-$1$2"+k2+"flex-$1$2")+e;case 5443:return C2+e+k2+"flex-item-"+u2(e,/flex-|-self/g,"")+(G3(e,/flex-|baseline/)?"":k2+"grid-row-"+u2(e,/flex-|-self/g,""))+e;case 4675:return C2+e+k2+"flex-line-pack"+u2(e,/align-content|flex-|-self/g,"")+e;case 5548:return C2+e+k2+u2(e,"shrink","negative")+e;case 5292:return C2+e+k2+u2(e,"basis","preferred-size")+e;case 6060:return C2+"box-"+u2(e,"-grow","")+C2+e+k2+u2(e,"grow","positive")+e;case 4554:return C2+u2(e,/([^-])(transform)/g,"$1"+C2+"$2")+e;case 6187:return u2(u2(u2(e,/(zoom-|grab)/,C2+"$1"),/(image-set)/,C2+"$1"),e,"")+e;case 5495:case 3959:return u2(e,/(image-set\([^]*)/,C2+"$1$`$1");case 4968:return u2(u2(e,/(.+:)(flex-)?(.*)/,C2+"box-pack:$3"+k2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C2+e+e;case 4200:if(!G3(e,/flex-|baseline/))return k2+"grid-column-align"+t4(e,c)+e;break;case 2592:case 3360:return k2+u2(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return c=i,G3(n.props,/grid-\w+-end/)})?~_0(e+(r=r[c].value),"span",0)?e:k2+u2(e,"-start","")+e+k2+"grid-row-span:"+(~_0(r,"span",0)?G3(r,/\d+/):+G3(r,/\d+/)-+G3(e,/\d+/))+";":k2+u2(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return G3(n.props,/grid-\w+-start/)})?e:k2+u2(u2(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return u2(e,/(.+)-inline(.+)/,C2+"$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(W1(e)-1-c>6)switch(J2(e,c+1)){case 109:if(J2(e,c+4)!==45)break;case 102:return u2(e,/(.+:)(.+)-([^]+)/,"$1"+C2+"$2-$3$1"+G6+(J2(e,c+3)==108?"$3":"$2-$3"))+e;case 115:return~_0(e,"stretch",0)?on(u2(e,"stretch","fill-available"),c,r)+e:e}break;case 5152:case 5920:return u2(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,s,l,u,p,h){return k2+i+":"+s+h+(l?k2+i+"-span:"+(u?p:+p-+s)+h:"")+e});case 4949:if(J2(e,c+6)===121)return u2(e,":",":"+C2)+e;break;case 6444:switch(J2(e,J2(e,14)===45?18:11)){case 120:return u2(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C2+(J2(e,14)===45?"inline-":"")+"box$3$1"+C2+"$2$3$1"+k2+"$2box$3")+e;case 100:return u2(e,":",":"+k2)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return u2(e,"scroll-","scroll-snap-")+e}return e}function D0(e,c){for(var r="",n=0;n-1&&!e.return)switch(e.type){case P0:e.return=on(e.value,e.length,r);return;case s7:return D0([x4(e,{value:u2(e.value,"@","@"+C2)})],n);case J4:if(e.length)return Ml(r=e.props,function(i){switch(G3(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":j6(x4(e,{props:[u2(i,/:(read-\w+)/,":"+G6+"$1")]})),j6(x4(e,{props:[i]})),a5(e,{props:nn(r,n)});break;case"::placeholder":j6(x4(e,{props:[u2(i,/:(plac\w+)/,":"+C2+"input-$1")]})),j6(x4(e,{props:[u2(i,/:(plac\w+)/,":"+G6+"$1")]})),j6(x4(e,{props:[u2(i,/:(plac\w+)/,k2+"input-$1")]})),j6(x4(e,{props:[i]})),a5(e,{props:nn(r,n)});break}return""})}}var WL={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},Ol=WL;var w4=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Kl="active",H7="data-styled-version",F0="6.1.8",Hn=`/*!sc*/ +`,gn=typeof window<"u"&&"HTMLElement"in window,GL=!!(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 M7=Object.freeze([]),B0=Object.freeze({});function qL(e,c,r){return r===void 0&&(r=B0),e.theme!==r.theme&&e.theme||c||r.theme}var Ql=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"]),jL=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,XL=/(^-|-$)/g;function Fl(e){return e.replace(jL,"-").replace(XL,"")}var YL=/(a)(d)/gi,h7=52,Bl=function(e){return String.fromCharCode(e+(e>25?39:97))};function pn(e){var c,r="";for(c=Math.abs(e);c>h7;c=c/h7|0)r=Bl(c%h7)+r;return(Bl(c%h7)+r).replace(YL,"$1-$2")}var ln,$l=5381,O0=function(e,c){for(var r=c.length;r;)e=33*e^c.charCodeAt(--r);return e},Jl=function(e){return O0($l,e)};function KL(e){return pn(Jl(e)>>>0)}function QL(e){return e.displayName||e.name||"Component"}function fn(e){return typeof e=="string"&&!0}var Zl=typeof Symbol=="function"&&Symbol.for,ef=Zl?Symbol.for("react.memo"):60115,$L=Zl?Symbol.for("react.forward_ref"):60112,JL={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ZL={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cf={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ex=((ln={})[$L]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ln[ef]=cf,ln);function Il(e){return("type"in(c=e)&&c.type.$$typeof)===ef?cf:"$$typeof"in e?ex[e.$$typeof]:JL;var c}var cx=Object.defineProperty,rx=Object.getOwnPropertyNames,Ul=Object.getOwnPropertySymbols,ax=Object.getOwnPropertyDescriptor,nx=Object.getPrototypeOf,Wl=Object.prototype;function rf(e,c,r){if(typeof c!="string"){if(Wl){var n=nx(c);n&&n!==Wl&&rf(e,n,r)}var i=rx(c);Ul&&(i=i.concat(Ul(c)));for(var s=Il(e),l=Il(c),u=0;u0?" Args: ".concat(c.join(", ")):""))}var tx=function(){function e(c){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=c}return e.prototype.indexOfGroup=function(c){for(var r=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,s=i;c>=s;)if((s<<=1)<0)throw y4(16,"".concat(c));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var l=i;l=this.length||this.groupSizes[c]===0)return r;for(var n=this.groupSizes[c],i=this.indexOfGroup(c),s=i+n,l=i;l=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[c]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(c){this.element.removeChild(this.nodes[c]),this.length--},e.prototype.getRule=function(c){return c0&&(W+="".concat(g,","))}),p+="".concat(P).concat(T,'{content:"').concat(W,'"}').concat(Hn)},z=0;z0?".".concat(c):L},z=p.slice();z.push(function(L){L.type===J4&&L.value.includes("&")&&(L.props[0]=L.props[0].replace(dx,r).replace(n,h))}),l.prefix&&z.push(Dl),z.push(_l);var V=function(L,S,P,T){S===void 0&&(S=""),P===void 0&&(P=""),T===void 0&&(T="&"),c=T,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var W=L.replace(vx,""),g=Pl(P||S?"".concat(P," ").concat(S," { ").concat(W," }"):W);l.namespace&&(g=nf(g,l.namespace));var H=[];return D0(g,Tl(z.concat(Rl(function(C){return H.push(C)})))),H};return V.hash=p.length?p.reduce(function(L,S){return S.name||y4(15),O0(L,S.name)},$l).toString():"",V}var zx=new s5,dn=tf(),Cn=Z2.default.createContext({shouldForwardProp:void 0,styleSheet:zx,stylis:dn}),Wb=Cn.Consumer,Hx=Z2.default.createContext(void 0);function vn(){return(0,Z2.useContext)(Cn)}function gx(e){var c=(0,Z2.useState)(e.stylisPlugins),r=c[0],n=c[1],i=vn().styleSheet,s=(0,Z2.useMemo)(function(){var p=i;return e.sheet?p=e.sheet:e.target&&(p=p.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(p=p.reconstructWithOptions({useCSSOMInjection:!1})),p},[e.disableCSSOMInjection,e.sheet,e.target,i]),l=(0,Z2.useMemo)(function(){return tf({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,Z2.useEffect)(function(){(0,Yl.default)(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,Z2.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:l}},[e.shouldForwardProp,s,l]);return Z2.default.createElement(Cn.Provider,{value:u},Z2.default.createElement(Hx.Provider,{value:l},e.children))}var Vx=function(){function e(c,r){var n=this;this.inject=function(i,s){s===void 0&&(s=dn);var l=n.name+s.hash;i.hasNameForId(n.id,l)||i.insertRules(n.id,l,s(n.rules,l,"@keyframes"))},this.name=c,this.id="sc-keyframes-".concat(c),this.rules=r,Mn(this,function(){throw y4(12,String(n.name))})}return e.prototype.getName=function(c){return c===void 0&&(c=dn),this.name+c.hash},e}(),Mx=function(e){return e>="A"&&e<="Z"};function ql(e){for(var c="",r=0;r>>0);if(!r.hasNameForId(this.componentId,l)){var u=n(s,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,u)}i=X6(i,l),this.staticRulesId=l}else{for(var p=O0(this.baseHash,n.hash),h="",z=0;z>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(h,".".concat(S),void 0,this.componentId)),i=X6(i,S)}}return i},e}(),ff=Z2.default.createContext(void 0),Gb=ff.Consumer;var un={};function xx(e,c,r){var n=Vn(e),i=e,s=!fn(e),l=c.attrs,u=l===void 0?M7:l,p=c.componentId,h=p===void 0?function(b,D){var U=typeof b!="string"?"sc":Fl(b);un[U]=(un[U]||0)+1;var B="".concat(U,"-").concat(KL(F0+U+un[U]));return D?"".concat(D,"-").concat(B):B}(c.displayName,c.parentComponentId):p,z=c.displayName,V=z===void 0?function(b){return fn(b)?"styled.".concat(b):"Styled(".concat(QL(b),")")}(e):z,L=c.displayName&&c.componentId?"".concat(Fl(c.displayName),"-").concat(c.componentId):c.componentId||h,S=n&&i.attrs?i.attrs.concat(u).filter(Boolean):u,P=c.shouldForwardProp;if(n&&i.shouldForwardProp){var T=i.shouldForwardProp;if(c.shouldForwardProp){var W=c.shouldForwardProp;P=function(b,D){return T(b,D)&&W(b,D)}}else P=T}var g=new Lx(r,L,n?i.componentStyle:void 0);function H(b,D){return function(U,B,Z){var A=U.attrs,N=U.componentStyle,E=U.defaultProps,R=U.foldedComponentIds,j=U.styledComponentId,K=U.target,Y=Z2.default.useContext(ff),q=vn(),t2=U.shouldForwardProp||q.shouldForwardProp,o2=qL(B,Y,E)||B0,i2=function(i3,H1,g1){for(var e4,Q2=b1(b1({},H1),{className:void 0,theme:g1}),Y1=0;Y12&&s5.registerId(this.componentId+c),this.removeStyles(c,n),this.createStyles(c,r,n,i)},e}();var jb=function(){function e(){var c=this;this._emitSheetCSS=function(){var r=c.instance.toString(),n=hn(),i=g7([n&&'nonce="'.concat(n,'"'),"".concat(w4,'="true"'),"".concat(H7,'="').concat(F0,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(c.sealed)throw y4(2);return c._emitSheetCSS()},this.getStyleElement=function(){var r;if(c.sealed)throw y4(2);var n=((r={})[w4]="",r[H7]=F0,r.dangerouslySetInnerHTML={__html:c.instance.toString()},r),i=hn();return i&&(n.nonce=i),[Z2.default.createElement("style",b1({},n,{key:"sc-0-0"}))]},this.seal=function(){c.sealed=!0},this.instance=new s5({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(c){if(this.sealed)throw y4(2);return Z2.default.createElement(gx,{sheet:this.instance},c)},e.prototype.interleaveWithNodeStream=function(c){throw y4(3)},e}();var Xb="__sc-".concat(w4,"__");var _m=N2(D9()),Sw=s2.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; +`,O9=s2.p` + white-space: pre-warp; +`,F9=s2.div` + display: flex; +`,Nw=s2.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; +`,z8=s2.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; +`,x1=class e{static _ref;static active;static root;static alert(c,r){return new Promise(n=>{e.clear();let i=()=>{n(),this.active=void 0,this.clear()};this.active=i,e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(O9,null,c),G2.default.createElement(z8,{onClick:()=>i()},"OK")))})}static async confirm(c,r){return new Promise(n=>{e.clear();let i=s=>{n(s),this.active=void 0,this.clear()};this.active=()=>i(!1),e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(O9,null,c),G2.default.createElement(F9,null,G2.default.createElement(z8,{onClick:()=>i(!0)},"OK"),G2.default.createElement(z8,{onClick:()=>i(!1)},"Cancel"))))})}static async prompt(c,r,n){return new Promise(i=>{e.clear();let s=u=>{i(u),this.active=void 0,this.clear()};this.active=()=>s("");let l=(0,G2.createRef)();e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,n||`${location.host} says`),G2.default.createElement(O9,null,c),G2.default.createElement(Nw,{ref:l,type:"text"}),G2.default.createElement(F9,null,G2.default.createElement(z8,{onClick:()=>s(l.current&&l.current.value)},"OK"),G2.default.createElement(z8,{onClick:()=>s(null)},"Cancel")))),l.current&&(l.current.focus(),l.current.value=r||"",l.current.addEventListener("keyup",u=>{u.key.toLowerCase()==="enter"&&l.current&&s(l.current.value)}))})}static custom(c,r){return new Promise(n=>{e.clear();let i=()=>{this.active=void 0,n(),this.clear()};this.active=()=>i(),e.renderContent(G2.default.createElement("div",null,c,G2.default.createElement(F9,null,r?r.map((s,l)=>G2.default.createElement(z8,{key:l,onClick:async u=>{let p=s.click(u),h;p instanceof Promise?h=await p:h=p,h||(this.active=void 0,this.clear(),n())}},s.content)):null)))})}static close(){this.clear()}static clear(){this.root&&(this.root.unmount(),this.root=void 0);let c=e.ref.style;c.pointerEvents="none",c.touchAction="none",c.backgroundColor="rgba(0, 0, 0, 0)",this.active&&this.active(),this.active=void 0}static renderContent(c){let r=e.createBase(c);this.root=(0,_m.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(c){return G2.default.createElement(Sw,null,c)}static get ref(){if(e._ref)return e._ref;let c=document.createElement("div");document.body.appendChild(c),e._ref=c;let r=c.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",c}};var Rm=N2(f1());function bw(){return new Promise(e=>{let c=document.createElement("div"),r=document.createElement("div"),n=c.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(c),n.backgroundColor="rgba(0, 0, 0, 0.50)";let i=r.style;i.position="fixed",i.zIndex="100001",i.width="5px",i.height="5px",i.border="2px solid white";let s,l=(W,g,H,C)=>{s={x:W,y:g,xOff:H,yOff:C}},u=W=>{l(W.clientX,W.clientY,W.offsetX,W.offsetY)},p=W=>{let g=W.touches[W.touches.length-1],H=W.target,{x:C,y:b,width:D,height:U}=H.getBoundingClientRect(),B=(g.clientX-C)/D*H.offsetWidth,Z=(g.clientY-b)/U*H.offsetHeight;l(g.clientX,g.clientY,B,Z)},h=(W,g)=>{if(!s)return{x:W,y:g,width:0,height:0};let H=Math.min(W,s.x),C=Math.max(W,s.x),b=Math.min(g,s.y),D=Math.max(g,s.y),U=C-H,B=D-b;return{x:Math.floor(H),y:Math.floor(b),width:Math.ceil(U),height:Math.ceil(B)}},z=(W,g)=>{if(!s)return;document.body.contains(r)||document.body.appendChild(r);let H=h(W,g),C=r.style;C.width=`${H.width}px`,C.height=`${H.height}px`,C.left=`${H.x}px`,C.top=`${H.y}px`},V=W=>{if(!s||!(W instanceof MouseEvent))return;let{clientX:g,clientY:H}=W;z(g,H)},L=W=>{if(!s||!(W instanceof TouchEvent)||!W.isTrusted)return;let g=W.touches[0];if(i.borderWidth="6px",g){let{clientX:H,clientY:C}=g;z(H,C)}},S=(W,g)=>{if(s){let H=h(W,g);s=void 0,window.removeEventListener("mousedown",T),window.removeEventListener("touchend",P),window.removeEventListener("mousedown",u),window.removeEventListener("touchstart",p),window.removeEventListener("mouseup",V),window.removeEventListener("touchmove",L),document.body.removeChild(c),document.body.contains(r)&&document.body.removeChild(r),e(H)}},P=W=>{let g=W.touches[0]||W.changedTouches[0];if(g){let{clientX:H,clientY:C}=g;S(H,C)}},T=W=>{S(W.clientX,W.clientY)};window.addEventListener("mouseup",T),window.addEventListener("touchend",P),window.addEventListener("mousedown",u),window.addEventListener("touchstart",p),window.addEventListener("mousemove",V),window.addEventListener("touchmove",L)})}async function B9(e,c,r,n,i=0){let s=H8();s.width=r/Math.pow(2,i),s.height=n/Math.pow(2,i);let l=s.getContext("2d"),u=Math.floor(e%O2),p=Math.floor(c%O2),h=[];for(let z=0;z{Om(e+z,c+V).then(T=>{let W=e>0?-u:-(O2+u)%O2,g=c>0?-p:-(O2+p)%O2;l.drawImage(T,z+W,V+g),S()}).catch(P)});h.push(L)}return await Promise.all(h),s}async function Dm(e){let c=await bw(),r=e.screenToGrid(c.x,c.y),n=e.screenToGrid(c.x+c.width,c.height+c.y);if(!(!r||!n))try{let i=await B9(r.x,r.y,c.height,c.width,e.uScale),s=i.toDataURL();x1.custom(Rm.default.createElement("img",{style:{border:"1px solid black"},src:s}),[{content:"Download",click:()=>{i.toBlob(l=>{let u=Math.floor(r.x+c.width/2),p=Math.floor(r.x+c.height/2);l&&(0,Tm.default)(l,`${u}:${p}:${new Date().toLocaleDateString()}.png`)})}},{content:"Cancel",click:()=>{}}])}catch{x1.alert("Something went wrong while trying to capture screenshot")}}var O2=512;function Ic(e,c){return e.indexOf(c)===-1?(e.push(c),!0):!1}function Z5(e,c){let r=e.indexOf(c);return r!==-1?(e.splice(r,1),!0):!1}function Uc(e,c,r){return{r:e,g:c,b:r}}function kw(e,c){let r=[];for(let s of c){let l=p4(e.r,s.r),u=p4(e.g,s.g),p=p4(e.b,s.b);r.push(l+u+p)}let n=Math.min(...r);return r.indexOf(n)}function p4(e,c){return e>c?e-c:c-e}function I9(e,c=2){return e.toString(16).padStart(c,"0")}function Bm(e,c,r){return"#"+I9(e)+I9(c)+I9(r)}function Wc(){return new Promise(e=>requestAnimationFrame(e))}function W9(e){let c=e.lastIndexOf(".");return c===-1?{text:e,ex:""}:{text:e.slice(0,c),ex:e.slice(c+1)}}function Im(e){return new Promise((c,r)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{r(i)}),n.readAsText(e)})}function Um(e){return new Promise((c,r)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{r(i)}),n.readAsDataURL(e)})}function Wm(e,c){return new Promise((r,n)=>{let i=new Image;i.alt=e,i.addEventListener("load",()=>r(i)),i.addEventListener("error",s=>{n(s)}),c.startsWith("data:image")||c.startsWith("blob")?i.src=c:i.src=`data:image/${W9(e)};base64,${c}`})}function V8(e){return e.length}function M8(e){return e[0]&&e[0].length||0}function l0(e){return V8(e.pixels)}function f0(e){return M8(e.pixels)}function Gm(e,c,r){let n=H8();n.width=c,n.height=r;let i=n.getContext("2d");return i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,c,r),Aw(n,e.alt)}function Aw(e,c){return new Promise((r,n)=>{let i=e.toDataURL("image/png"),s=new Image;s.addEventListener("load",()=>r(s)),s.addEventListener("error",l=>n(l)),c&&(s.alt=c),s.src=i})}function G9(e){if(typeof e=="object"){let c=(0,g8.clone)(e);if(Array.isArray(c))throw new Error("Should not be an array");{if(typeof c.x!="number")throw new Error("x is not a number");if(typeof c.y!="number")throw new Error("y is not a number");if(!(0,g8.isInteger)(c.x))throw new Error("x is not an integer");if(!(0,g8.isInteger)(c.y))throw new Error("y is not an integer");if(typeof c.name!="string")throw new Error("Missing name");if(c.name.length<=1)throw new Error("Name to short");if(c.name.length>=64)throw new Error("Name to long");if(typeof c.pixels!="object")throw new Error("Pixels are not an object");if(!Array.isArray(c.pixels))throw new Error("Pixels are not an array");let r=0;for(let s=0;s2e3)throw new Error("Height to big");if(i>2e3)throw new Error("Width to big")}}else throw new Error("Not an object")}function Gc(e){return e.getContext("2d").getImageData(0,0,e.width,e.height)}async function qm(e,c){let r=f0(e),n=l0(e),s=(await B9(e.x,e.y,r,n)).getContext("2d")?.getImageData(0,0,r,n),l=e.pixels.flat(),u=0,p=0,h=0;if(s){for(let z=0,V=0;z=0){let L=s.data[z+0],S=s.data[z+1],P=s.data[z+2],T=Uc(L,S,P);u++,kw(T,c)===l[V]?h++:p++}}return{total:u,good:h,bad:p}}function q9(e,c){let{height:r,width:n}=e,i=[];for(let s=0;s-1){p++;let S=r[L];if(!S)throw new Error(`Unknown color at ${L}`);i.fillStyle=S,i.fillRect(h*n,z*n,n,n)}}return p}function H8(){let e=document.createElement("canvas");return e.setAttribute("overlay","true"),e}function Fm(e){return Math.floor(e/O2)*O2}function ee(e,c){let r=document.createElement("canvas");r.width=M8(e),r.height=V8(e);let n=j9(r,e,c);return{canvas:r,pixels:n}}var U9;try{let e=navigator.language||navigator.userLanguage;U9=new Intl.NumberFormat(e)}catch{}function ce(e){return U9?U9.format(e):e.toString()}function C8(e,c){e.preventDefault(),e.stopPropagation(),e.target.value===""?c(0):e.target.value==="-"?c(-1):c(parseInt(e.target.value,10))}async function Om(e,c){let r=`/tile/${Fm(e)}/${Fm(c)}.png`,i=await(await fetch(r)).blob(),s=URL.createObjectURL(i),l=new Image;return l.src=s,new Promise((u,p)=>{l.addEventListener("load",()=>{URL.revokeObjectURL(s),u(l)}),l.addEventListener("error",()=>{URL.revokeObjectURL(s),p(new Error("Unable to load image"))})})}var C6=class{listeners=new Map;on(c,r){let n=this.listeners.get(c)||[];Ic(n,r),this.listeners.set(c,n)}off(c,r){let n=this.listeners.get(c)||[];Z5(n,r),n.length||this.listeners.delete(c)}emit(c,...r){let n=this.listeners.get(c);if(n)for(let i=0;ir.textContent&&r.textContent.match(/^\(\s*-?\d+\s*,\s*-?\d+\s*\)$/));for(let r of c)r.children.length===0&&(this.cords=r,this.frame=requestAnimationFrame(this.observe));await Wc()}}stop(){this.frame&&cancelAnimationFrame(this.frame)}get centerCanvas(){let c=window.innerWidth/2,r=window.innerHeight/2,n=[...document.getElementsByTagName("canvas")].filter(i=>i.classList.contains("leaflet-tile")).map(i=>{let s=i.getBoundingClientRect();return{canvas:i,bounds:{width:s.width,height:s.height,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}}).find(i=>c>i.bounds.left&&ci.bounds.top&&rs&&rs&&r>l?n.bounds.left+=p:(n.bounds.left+=u,n.bounds.top+=p)),n.bounds.bottom=n.bounds.top+u,n.bounds.right=n.bounds.left+p,null}n.bounds.width/=i,n.bounds.height/=i,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(c,r){let n=this.centerCanvas;if(!n)return null;this.getCordsFromUrl();let i=Math.floor(this.ux/O2)*O2,s=Math.floor(this.uy/O2)*O2,l=(c-n.bounds.left)/this.pixelSize+i,u=(r-n.bounds.top)/this.pixelSize+s;return{x:l,y:u}}gridToScreen(c,r){let n=this.centerCanvas;if(!n)return null;let i=Math.floor(this.ux/O2)*O2,s=Math.floor(this.uy/O2)*O2,l=c-i,u=r-s,p=n.bounds.left+l*this.pixelSize,h=n.bounds.top+u*this.pixelSize;return{x:p,y:h}}getCordsFromUrl(){let r=location.pathname.split("/").filter(n=>n)[0];if(r){let n=r.match(/-?\d+/g).map(i=>parseInt(i));if(typeof n[0]=="number"&&typeof n[1]=="number"&&typeof n[2]=="number")return this._ux=n[0],this._uy=n[1],this._uScale=n[2],n}return null}parse(){let c=this.cords.textContent.match(/-?\d+/g).map(r=>parseInt(r));this._x=c[0],this._y=c[1]}observe=()=>{let c=this._x,r=this._y;this.parse(),(c!==this._x||r!==this._y)&&this.emitter.emit(0,this._x,this._y);let n=this._ux,i=this._uy,s=this._uScale;this.getCordsFromUrl(),(n!==this._ux||i!==this._uy||s!==this._uScale)&&this.emitter.emit(1,this._ux,this._uy,this._uScale),this.frame=requestAnimationFrame(this.observe)};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}};var jc=class{buttons=[];palette=[];hex=[];init(){let c=[...document.getElementsByTagName("button")].filter(h=>h.style.backgroundColor);if(c.length<2)return null;let r=new Map,n=new Map,i=c.map(h=>{let{width:z,height:V}=h.getBoundingClientRect(),L=r.get(z)||0,S=n.get(V)||0;return L++,S++,r.set(z,L),n.set(V,S),{btn:h,width:z,height:V}}),s=Array.from(r).sort((h,z)=>h[1]h[1]h.width===s&&h.height===l);this.buttons=u.map(h=>h.btn),this.buttons[0].parentElement.parentElement.style.zIndex="10";let p=u.map(h=>{let z=h.btn.style.backgroundColor.match(/\d+/g);return{r:parseInt(z[0]),g:parseInt(z[1]),b:parseInt(z[2])}});return this.palette=p,this.hex=p.map(h=>Bm(h.r,h.g,h.b)),p}};var wi=N2(f1());var t3=N2(f1());var Xc=class{constructor(c,r){this.storage=c;this.palette=r}STORAGE_KEY_MURAL="_murals";STORAGE_KEY_SELECTED="_mural";_murals=[];_selected;emitter=new C6;_overlayIndices=[];_phantomOverlay=-1;_overlayModify;async load(){this._murals=await this.storage.getItem(this.STORAGE_KEY_MURAL)||[];for(let r of this._murals){let{canvas:n,pixels:i}=ee(r.pixels,this.palette.hex);r.ref=n,r.pixelCount=i}let c=await this.storage.getItem(this.STORAGE_KEY_SELECTED)??-1;this.select(this._murals[c])}updateMural(c){this.save(),this.emit(3)}unload(){this.save()}add(c){let r=c,{canvas:n,pixels:i}=ee(c.pixels,this.palette.hex);r.ref=n,r.pixelCount=i,this._murals.push(r),this.emit(7),this.save()}remove(c){this._overlayIndices=[],this._overlayModify=void 0,this._phantomOverlay=-1,this._selected&&this._selected?.m===c&&(this._selected=void 0),Z5(this._murals,c),this.emit(2),this.save()}addOverlay(c){let r=this._murals.indexOf(c);r!==-1&&(Ic(this._overlayIndices,r),this._phantomOverlay===r&&(this._phantomOverlay=-1)),this.emit(5),this.save()}removeOverlay(c){let r=this._murals.indexOf(c);r!==-1&&Z5(this._overlayIndices,r),this.emit(5),this.save()}setOverlayModify(c){this._overlayModify=c;let r=c.cb;c.cb=(n,i,s,l)=>{r(n,i,s,l),this._overlayModify=void 0,this.emit(5)},this.emit(5)}hasOverlay(c){let r=this._murals.indexOf(c);return this._overlayIndices.includes(r)}select(c){c?this._selected={m:c,h:l0(c),w:f0(c)}:this._selected=void 0,this.emit(4),this.save()}async save(){await this.storage.setItem(this.STORAGE_KEY_MURAL,this._murals.map(r=>({name:r.name,pixels:r.pixels,x:r.x,y:r.y})));let c=this._selected?.m?this._murals.indexOf(this._selected?.m):-1;await this.storage.setItem(this.STORAGE_KEY_SELECTED,c)}addPhantomOverlay(c){let r=this._murals.indexOf(c);r!==this._phantomOverlay&&!this._overlayIndices.includes(r)&&(this._phantomOverlay=r,this.emit(6))}removePhantomOverlay(){this._phantomOverlay!==-1&&(this._phantomOverlay=-1,this.emit(6))}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(c,r){this.emitter.on(c,r)}off(c,r){this.emitter.off(c,r)}emit(c){this.emitter.emit(c,this),this.emitter.emit(7,this)}};var Xm={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 Ym={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 Pw={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"]},Km=Pw;var Qm={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 $m={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 _w={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"]},Jm=_w;var Zm={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 eh={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 ch={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 rh={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 ah={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 nh={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 th={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 ih={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 sh(e,c){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $(e){for(var c=1;ce.length)&&(c=e.length);for(var r=0,n=new Array(c);r-1;i--){var s=r[i],l=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(n=s)}return B2.head.insertBefore(c,n),e}}var nS="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function le(){for(var e=12,c="";e-- >0;)c+=nS[Math.random()*62|0];return c}function S8(e){for(var c=[],r=(e||[]).length>>>0;r--;)c[r]=e[r];return c}function mi(e){return e.classList?S8(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(c){return c})}function Gh(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function tS(e){return Object.keys(e||{}).reduce(function(c,r){return c+"".concat(r,'="').concat(Gh(e[r]),'" ')},"").trim()}function or(e){return Object.keys(e||{}).reduce(function(c,r){return c+"".concat(r,": ").concat(e[r].trim(),";")},"")}function hi(e){return e.size!==m4.size||e.x!==m4.x||e.y!==m4.y||e.rotate!==m4.rotate||e.flipX||e.flipY}function iS(e){var c=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},s="translate(".concat(c.x*32,", ").concat(c.y*32,") "),l="scale(".concat(c.size/16*(c.flipX?-1:1),", ").concat(c.size/16*(c.flipY?-1:1),") "),u="rotate(".concat(c.rotate," 0 0)"),p={transform:"".concat(s," ").concat(l," ").concat(u)},h={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:p,path:h}}function sS(e){var c=e.transform,r=e.width,n=r===void 0?J9:r,i=e.height,s=i===void 0?J9:i,l=e.startCentered,u=l===void 0?!1:l,p="";return u&&Dh?p+="translate(".concat(c.x/L6-n/2,"em, ").concat(c.y/L6-s/2,"em) "):u?p+="translate(calc(-50% + ".concat(c.x/L6,"em), calc(-50% + ").concat(c.y/L6,"em)) "):p+="translate(".concat(c.x/L6,"em, ").concat(c.y/L6,"em) "),p+="scale(".concat(c.size/L6*(c.flipX?-1:1),", ").concat(c.size/L6*(c.flipY?-1:1),") "),p+="rotate(".concat(c.rotate,"deg) "),p}var oS=`: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"; @@ -794,17 +837,16 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function Mf(){var e=hf,c=vf,r=c2.cssPrefix,n=c2.replacementClass,i=vx;if(r!==e||n!==c){var s=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(c),"g");i=i.replace(s,".".concat(r,"-")).replace(l,"--".concat(r,"-")).replace(u,".".concat(n))}return i}var Gl=!1;function sn(){c2.autoAddCss&&!Gl&&(fx(Mf()),Gl=!0)}var dx={mixout:function(){return{dom:{css:Mf,insertCss:sn}}},hooks:function(){return{beforeDOMElementCreation:function(){sn()},beforeI2svg:function(){sn()}}}},x4=Z4||{};x4[L4]||(x4[L4]={});x4[L4].styles||(x4[L4].styles={});x4[L4].hooks||(x4[L4].hooks={});x4[L4].shims||(x4[L4].shims=[]);var G3=x4[L4],Cf=[],zx=function e(){D2.removeEventListener("DOMContentLoaded",e),x7=1,Cf.map(function(c){return c()})},x7=!1;w4&&(x7=(D2.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(D2.readyState),x7||D2.addEventListener("DOMContentLoaded",zx));function Hx(e){w4&&(x7?setTimeout(e,0):Cf.push(e))}function m5(e){var c=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?Vf(e):"<".concat(c," ").concat(px(n),">").concat(s.map(m5).join(""),"")}function ql(e,c,r){if(e&&e[c]&&e[c][r])return{prefix:c,iconName:r,icon:e[c][r]}}var gx=function(c,r){return function(n,i,s,l){return c.call(r,n,i,s,l)}},on=function(c,r,n,i){var s=Object.keys(c),l=s.length,u=i!==void 0?gx(r,i):r,p,h,z;for(n===void 0?(p=1,z=c[s[0]]):(p=0,z=n);p=55296&&i<=56319&&r=55296&&n<=56319&&r>c+1&&(i=e.charCodeAt(c+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function jl(e){return Object.keys(e).reduce(function(c,r){var n=e[r],i=!!n.icon;return i?c[n.iconName]=n.icon:c[r]=n,c},{})}function vn(e,c){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,s=jl(c);typeof G3.hooks.addPack=="function"&&!i?G3.hooks.addPack(e,jl(c)):G3.styles[e]=$($({},G3.styles[e]||{}),s),e==="fas"&&vn("fa",c)}var H7,g7,V7,D0=G3.styles,Cx=G3.shims,Lx=(H7={},u1(H7,O2,Object.values(o5[O2])),u1(H7,J2,Object.values(o5[J2])),H7),bn=null,Lf={},xf={},yf={},wf={},Sf={},xx=(g7={},u1(g7,O2,Object.keys(i5[O2])),u1(g7,J2,Object.keys(i5[J2])),g7);function yx(e){return~ix.indexOf(e)}function wx(e,c){var r=c.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!yx(i)?i:null}var Nf=function(){var c=function(s){return on(D0,function(l,u,p){return l[p]=on(u,s,{}),l},{})};Lf=c(function(i,s,l){if(s[3]&&(i[s[3]]=l),s[2]){var u=s[2].filter(function(p){return typeof p=="number"});u.forEach(function(p){i[p.toString(16)]=l})}return i}),xf=c(function(i,s,l){if(i[l]=l,s[2]){var u=s[2].filter(function(p){return typeof p=="string"});u.forEach(function(p){i[p]=l})}return i}),Sf=c(function(i,s,l){var u=s[2];return i[l]=l,u.forEach(function(p){i[p]=l}),i});var r="far"in D0||c2.autoFetchSvg,n=on(Cx,function(i,s){var l=s[0],u=s[1],p=s[2];return u==="far"&&!r&&(u="fas"),typeof l=="string"&&(i.names[l]={prefix:u,iconName:p}),typeof l=="number"&&(i.unicodes[l.toString(16)]={prefix:u,iconName:p}),i},{names:{},unicodes:{}});yf=n.names,wf=n.unicodes,bn=S7(c2.styleDefault,{family:c2.familyDefault})};lx(function(e){bn=S7(e.styleDefault,{family:c2.familyDefault})});Nf();function kn(e,c){return(Lf[e]||{})[c]}function Sx(e,c){return(xf[e]||{})[c]}function G6(e,c){return(Sf[e]||{})[c]}function bf(e){return yf[e]||{prefix:null,iconName:null}}function Nx(e){var c=wf[e],r=kn("fas",e);return c||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function e6(){return bn}var An=function(){return{prefix:null,iconName:null,rest:[]}};function S7(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c.family,n=r===void 0?O2:r,i=i5[n][e],s=s5[n][e]||s5[n][i],l=e in G3.styles?e:null;return s||l||null}var Xl=(V7={},u1(V7,O2,Object.keys(o5[O2])),u1(V7,J2,Object.keys(o5[J2])),V7);function N7(e){var c,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,s=(c={},u1(c,O2,"".concat(c2.cssPrefix,"-").concat(O2)),u1(c,J2,"".concat(c2.cssPrefix,"-").concat(J2)),c),l=null,u=O2;(e.includes(s[O2])||e.some(function(h){return Xl[O2].includes(h)}))&&(u=O2),(e.includes(s[J2])||e.some(function(h){return Xl[J2].includes(h)}))&&(u=J2);var p=e.reduce(function(h,z){var M=wx(c2.cssPrefix,z);if(D0[z]?(z=Lx[u].includes(z)?ex[u][z]:z,l=z,h.prefix=z):xx[u].indexOf(z)>-1?(l=z,h.prefix=S7(z,{family:u})):M?h.iconName=M:z!==c2.replacementClass&&z!==s[O2]&&z!==s[J2]&&h.rest.push(z),!i&&h.prefix&&h.iconName){var L=l==="fa"?bf(h.iconName):{},S=G6(h.prefix,h.iconName);L.prefix&&(l=null),h.iconName=L.iconName||S||h.iconName,h.prefix=L.prefix||h.prefix,h.prefix==="far"&&!D0.far&&D0.fas&&!c2.autoFetchSvg&&(h.prefix="fas")}return h},An());return(e.includes("fa-brands")||e.includes("fab"))&&(p.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(p.prefix="fad"),!p.prefix&&u===J2&&(D0.fass||c2.autoFetchSvg)&&(p.prefix="fass",p.iconName=G6(p.prefix,p.iconName)||p.iconName),(p.prefix==="fa"||l==="fa")&&(p.prefix=e6()||"fas"),p}var bx=function(){function e(){UL(this,e),this.definitions={}}return WL(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),s=0;s0&&z.forEach(function(M){typeof M=="string"&&(r[u][M]=h)}),r[u][p]=h}),r}}]),e}(),Yl=[],F0={},B0={},kx=Object.keys(B0);function Ax(e,c){var r=c.mixoutsTo;return Yl=e,F0={},Object.keys(B0).forEach(function(n){kx.indexOf(n)===-1&&delete B0[n]}),Yl.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(l){typeof i[l]=="function"&&(r[l]=i[l]),L7(i[l])==="object"&&Object.keys(i[l]).forEach(function(u){r[l]||(r[l]={}),r[l][u]=i[l][u]})}),n.hooks){var s=n.hooks();Object.keys(s).forEach(function(l){F0[l]||(F0[l]=[]),F0[l].push(s[l])})}n.provides&&n.provides(B0)}),r}function dn(e,c){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i1?c-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return w4?(j6("beforeI2svg",c),y4("pseudoElements2svg",c),y4("i2svg",c)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=c.autoReplaceSvgRoot;c2.autoReplaceSvg===!1&&(c2.autoReplaceSvg=!0),c2.observeMutations=!0,Hx(function(){Tx({autoReplaceSvgRoot:r}),j6("watch",c)})}},_x={icon:function(c){if(c===null)return null;if(L7(c)==="object"&&c.prefix&&c.iconName)return{prefix:c.prefix,iconName:G6(c.prefix,c.iconName)||c.iconName};if(Array.isArray(c)&&c.length===2){var r=c[1].indexOf("fa-")===0?c[1].slice(3):c[1],n=S7(c[0]);return{prefix:n,iconName:G6(n,r)||r}}if(typeof c=="string"&&(c.indexOf("".concat(c2.cssPrefix,"-"))>-1||c.match(cx))){var i=N7(c.split(" "),{skipLookups:!0});return{prefix:i.prefix||e6(),iconName:G6(i.prefix,i.iconName)||i.iconName}}if(typeof c=="string"){var s=e6();return{prefix:s,iconName:G6(s,c)||c}}}},p3={noAuto:Ex,config:c2,dom:Px,parse:_x,library:kf,findIconDefinition:zn,toHtml:m5},Tx=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=c.autoReplaceSvgRoot,n=r===void 0?D2:r;(Object.keys(G3.styles).length>0||c2.autoFetchSvg)&&w4&&c2.autoReplaceSvg&&p3.dom.i2svg({node:n})};function b7(e,c){return Object.defineProperty(e,"abstract",{get:c}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return m5(n)})}}),Object.defineProperty(e,"node",{get:function(){if(w4){var n=D2.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Rx(e){var c=e.children,r=e.main,n=e.mask,i=e.attributes,s=e.styles,l=e.transform;if(Nn(l)&&r.found&&!n.found){var u=r.width,p=r.height,h={x:u/p/2,y:.5};i.style=w7($($({},s),{},{"transform-origin":"".concat(h.x+l.x/16,"em ").concat(h.y+l.y/16,"em")}))}return[{tag:"svg",attributes:i,children:c}]}function Ox(e){var c=e.prefix,r=e.iconName,n=e.children,i=e.attributes,s=e.symbol,l=s===!0?"".concat(c,"-").concat(c2.cssPrefix,"-").concat(r):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},i),{},{id:l}),children:n}]}]}function En(e){var c=e.icons,r=c.main,n=c.mask,i=e.prefix,s=e.iconName,l=e.transform,u=e.symbol,p=e.title,h=e.maskId,z=e.titleId,M=e.extra,L=e.watchable,S=L===void 0?!1:L,P=n.found?n:r,R=P.width,W=P.height,g=i==="fak",H=[c2.replacementClass,s?"".concat(c2.cssPrefix,"-").concat(s):""].filter(function(A){return M.classes.indexOf(A)===-1}).filter(function(A){return A!==""||!!A}).concat(M.classes).join(" "),C={children:[],attributes:$($({},M.attributes),{},{"data-prefix":i,"data-icon":s,class:H,role:M.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(R," ").concat(W)})},b=g&&!~M.classes.indexOf("fa-fw")?{width:"".concat(R/W*16*.0625,"em")}:{};S&&(C.attributes[q6]=""),p&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(z||f5())},children:[p]}),delete C.attributes.title);var O=$($({},C),{},{prefix:i,iconName:s,main:r,mask:n,maskId:h,transform:l,symbol:u,styles:$($({},b),M.styles)}),U=n.found&&r.found?y4("generateAbstractMask",O)||{children:[],attributes:{}}:y4("generateAbstractIcon",O)||{children:[],attributes:{}},B=U.children,Z=U.attributes;return O.children=B,O.attributes=Z,u?Ox(O):Rx(O)}function Kl(e){var c=e.content,r=e.width,n=e.height,i=e.transform,s=e.title,l=e.extra,u=e.watchable,p=u===void 0?!1:u,h=$($($({},l.attributes),s?{title:s}:{}),{},{class:l.classes.join(" ")});p&&(h[q6]="");var z=$({},l.styles);Nn(i)&&(z.transform=hx({transform:i,startCentered:!0,width:r,height:n}),z["-webkit-transform"]=z.transform);var M=w7(z);M.length>0&&(h.style=M);var L=[];return L.push({tag:"span",attributes:h,children:[c]}),s&&L.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),L}function Dx(e){var c=e.content,r=e.title,n=e.extra,i=$($($({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),s=w7(n.styles);s.length>0&&(i.style=s);var l=[];return l.push({tag:"span",attributes:i,children:[c]}),r&&l.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),l}var ln=G3.styles;function Hn(e){var c=e[0],r=e[1],n=e.slice(4),i=Cn(n,1),s=i[0],l=null;return Array.isArray(s)?l={tag:"g",attributes:{class:"".concat(c2.cssPrefix,"-").concat(W6.GROUP)},children:[{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(W6.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(W6.PRIMARY),fill:"currentColor",d:s[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:c,height:r,icon:l}}var Fx={found:!1,width:512,height:512};function Bx(e,c){!df&&!c2.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(c,'" is missing.'))}function gn(e,c){var r=c;return c==="fa"&&c2.styleDefault!==null&&(c=e6()),new Promise(function(n,i){var s={found:!1,width:512,height:512,icon:y4("missingIconAbstract")||{}};if(r==="fa"){var l=bf(e)||{};e=l.iconName||e,c=l.prefix||c}if(e&&c&&ln[c]&&ln[c][e]){var u=ln[c][e];return n(Hn(u))}Bx(e,c),n($($({},Fx),{},{icon:c2.showMissingIcons&&e?y4("missingIconAbstract")||{}:{}}))})}var Ql=function(){},Vn=c2.measurePerformance&&p7&&p7.mark&&p7.measure?p7:{mark:Ql,measure:Ql},a5='FA "6.5.1"',Ix=function(c){return Vn.mark("".concat(a5," ").concat(c," begins")),function(){return Af(c)}},Af=function(c){Vn.mark("".concat(a5," ").concat(c," ends")),Vn.measure("".concat(a5," ").concat(c),"".concat(a5," ").concat(c," begins"),"".concat(a5," ").concat(c," ends"))},Pn={begin:Ix,end:Af},M7=function(){};function $l(e){var c=e.getAttribute?e.getAttribute(q6):null;return typeof c=="string"}function Ux(e){var c=e.getAttribute?e.getAttribute(xn):null,r=e.getAttribute?e.getAttribute(yn):null;return c&&r}function Wx(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(c2.replacementClass)}function Gx(){if(c2.autoReplaceSvg===!0)return C7.replace;var e=C7[c2.autoReplaceSvg];return e||C7.replace}function qx(e){return D2.createElementNS("http://www.w3.org/2000/svg",e)}function jx(e){return D2.createElement(e)}function Ef(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c.ceFn,n=r===void 0?e.tag==="svg"?qx:jx:r;if(typeof e=="string")return D2.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(l){i.setAttribute(l,e.attributes[l])});var s=e.children||[];return s.forEach(function(l){i.appendChild(Ef(l,{ceFn:n}))}),i}function Xx(e){var c=" ".concat(e.outerHTML," ");return c="".concat(c,"Font Awesome fontawesome.com "),c}var C7={replace:function(c){var r=c[0];if(r.parentNode)if(c[1].forEach(function(i){r.parentNode.insertBefore(Ef(i),r)}),r.getAttribute(q6)===null&&c2.keepOriginalSource){var n=D2.createComment(Xx(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(c){var r=c[0],n=c[1];if(~Sn(r).indexOf(c2.replacementClass))return C7.replace(c);var i=new RegExp("".concat(c2.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var s=n[0].attributes.class.split(" ").reduce(function(u,p){return p===c2.replacementClass||p.match(i)?u.toSvg.push(p):u.toNode.push(p),u},{toNode:[],toSvg:[]});n[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",s.toNode.join(" "))}var l=n.map(function(u){return m5(u)}).join(` -`);r.setAttribute(q6,""),r.innerHTML=l}};function Jl(e){e()}function Pf(e,c){var r=typeof c=="function"?c:M7;if(e.length===0)r();else{var n=Jl;c2.mutateApproach===JL&&(n=Z4.requestAnimationFrame||Jl),n(function(){var i=Gx(),s=Pn.begin("mutate");e.map(i),s(),r()})}}var _n=!1;function _f(){_n=!0}function Mn(){_n=!1}var y7=null;function Zl(e){if(Il&&c2.observeMutations){var c=e.treeCallback,r=c===void 0?M7:c,n=e.nodeCallback,i=n===void 0?M7:n,s=e.pseudoElementsCallback,l=s===void 0?M7:s,u=e.observeMutationsRoot,p=u===void 0?D2:u;y7=new Il(function(h){if(!_n){var z=e6();U0(h).forEach(function(M){if(M.type==="childList"&&M.addedNodes.length>0&&!$l(M.addedNodes[0])&&(c2.searchPseudoElements&&l(M.target),r(M.target)),M.type==="attributes"&&M.target.parentNode&&c2.searchPseudoElements&&l(M.target.parentNode),M.type==="attributes"&&$l(M.target)&&~tx.indexOf(M.attributeName))if(M.attributeName==="class"&&Ux(M.target)){var L=N7(Sn(M.target)),S=L.prefix,P=L.iconName;M.target.setAttribute(xn,S||z),P&&M.target.setAttribute(yn,P)}else Wx(M.target)&&i(M.target)})}}),w4&&y7.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Yx(){y7&&y7.disconnect()}function Kx(e){var c=e.getAttribute("style"),r=[];return c&&(r=c.split(";").reduce(function(n,i){var s=i.split(":"),l=s[0],u=s.slice(1);return l&&u.length>0&&(n[l]=u.join(":").trim()),n},{})),r}function Qx(e){var c=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=N7(Sn(e));return i.prefix||(i.prefix=e6()),c&&r&&(i.prefix=c,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Sx(i.prefix,e.innerText)||kn(i.prefix,hn(e.innerText))),!i.iconName&&c2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function $x(e){var c=U0(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return c2.autoA11y&&(r?c["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(n||f5()):(c["aria-hidden"]="true",c.focusable="false")),c}function Jx(){return{iconName:null,title:null,titleId:null,prefix:null,transform:t4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function ef(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=Qx(e),n=r.iconName,i=r.prefix,s=r.rest,l=$x(e),u=dn("parseNodeAttributes",{},e),p=c.styleParser?Kx(e):[];return $({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:t4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:p,attributes:l}},u)}var Zx=G3.styles;function Tf(e){var c=c2.autoReplaceSvg==="nest"?ef(e,{styleParser:!1}):ef(e);return~c.extra.classes.indexOf(zf)?y4("generateLayersText",e,c):y4("generateSvgReplacementMutation",e,c)}var c6=new Set;wn.map(function(e){c6.add("fa-".concat(e))});Object.keys(i5[O2]).map(c6.add.bind(c6));Object.keys(i5[J2]).map(c6.add.bind(c6));c6=u5(c6);function cf(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!w4)return Promise.resolve();var r=D2.documentElement.classList,n=function(M){return r.add("".concat(Ul,"-").concat(M))},i=function(M){return r.remove("".concat(Ul,"-").concat(M))},s=c2.autoFetchSvg?c6:wn.map(function(z){return"fa-".concat(z)}).concat(Object.keys(Zx));s.includes("fa")||s.push("fa");var l=[".".concat(zf,":not([").concat(q6,"])")].concat(s.map(function(z){return".".concat(z,":not([").concat(q6,"])")})).join(", ");if(l.length===0)return Promise.resolve();var u=[];try{u=U0(e.querySelectorAll(l))}catch{}if(u.length>0)n("pending"),i("complete");else return Promise.resolve();var p=Pn.begin("onTree"),h=u.reduce(function(z,M){try{var L=Tf(M);L&&z.push(L)}catch(S){df||S.name==="MissingIcon"&&console.error(S)}return z},[]);return new Promise(function(z,M){Promise.all(h).then(function(L){Pf(L,function(){n("active"),n("complete"),i("pending"),typeof c=="function"&&c(),p(),z()})}).catch(function(L){p(),M(L)})})}function ey(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Tf(e).then(function(r){r&&Pf([r],c)})}function cy(e){return function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(c||{}).icon?c:zn(c||{}),i=r.mask;return i&&(i=(i||{}).icon?i:zn(i||{})),e(n,$($({},r),{},{mask:i}))}}var ry=function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?t4:n,s=r.symbol,l=s===void 0?!1:s,u=r.mask,p=u===void 0?null:u,h=r.maskId,z=h===void 0?null:h,M=r.title,L=M===void 0?null:M,S=r.titleId,P=S===void 0?null:S,R=r.classes,W=R===void 0?[]:R,g=r.attributes,H=g===void 0?{}:g,C=r.styles,b=C===void 0?{}:C;if(c){var O=c.prefix,U=c.iconName,B=c.icon;return b7($({type:"icon"},c),function(){return j6("beforeDOMElementCreation",{iconDefinition:c,params:r}),c2.autoA11y&&(L?H["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(P||f5()):(H["aria-hidden"]="true",H.focusable="false")),En({icons:{main:Hn(B),mask:p?Hn(p.icon):{found:!1,width:null,height:null,icon:{}}},prefix:O,iconName:U,transform:$($({},t4),i),symbol:l,title:L,maskId:z,titleId:P,extra:{attributes:H,styles:b,classes:W}})})}},ay={mixout:function(){return{icon:cy(ry)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=cf,r.nodeCallback=ey,r}}},provides:function(c){c.i2svg=function(r){var n=r.node,i=n===void 0?D2:n,s=r.callback,l=s===void 0?function(){}:s;return cf(i,l)},c.generateSvgReplacementMutation=function(r,n){var i=n.iconName,s=n.title,l=n.titleId,u=n.prefix,p=n.transform,h=n.symbol,z=n.mask,M=n.maskId,L=n.extra;return new Promise(function(S,P){Promise.all([gn(i,u),z.iconName?gn(z.iconName,z.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(R){var W=Cn(R,2),g=W[0],H=W[1];S([r,En({icons:{main:g,mask:H},prefix:u,iconName:i,transform:p,symbol:h,maskId:M,title:s,titleId:l,extra:L,watchable:!0})])}).catch(P)})},c.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,s=r.main,l=r.transform,u=r.styles,p=w7(u);p.length>0&&(i.style=p);var h;return Nn(l)&&(h=y4("generateAbstractTransformGrouping",{main:s,transform:l,containerWidth:s.width,iconWidth:s.width})),n.push(h||s.icon),{children:n,attributes:i}}}},ny={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,s=i===void 0?[]:i;return b7({type:"layer"},function(){j6("beforeDOMElementCreation",{assembler:r,params:n});var l=[];return r(function(u){Array.isArray(u)?u.map(function(p){l=l.concat(p.abstract)}):l=l.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(c2.cssPrefix,"-layers")].concat(u5(s)).join(" ")},children:l}]})}}}},ty={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,s=i===void 0?null:i,l=n.classes,u=l===void 0?[]:l,p=n.attributes,h=p===void 0?{}:p,z=n.styles,M=z===void 0?{}:z;return b7({type:"counter",content:r},function(){return j6("beforeDOMElementCreation",{content:r,params:n}),Dx({content:r.toString(),title:s,extra:{attributes:h,styles:M,classes:["".concat(c2.cssPrefix,"-layers-counter")].concat(u5(u))}})})}}}},iy={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,s=i===void 0?t4:i,l=n.title,u=l===void 0?null:l,p=n.classes,h=p===void 0?[]:p,z=n.attributes,M=z===void 0?{}:z,L=n.styles,S=L===void 0?{}:L;return b7({type:"text",content:r},function(){return j6("beforeDOMElementCreation",{content:r,params:n}),Kl({content:r,transform:$($({},t4),s),title:u,extra:{attributes:M,styles:S,classes:["".concat(c2.cssPrefix,"-layers-text")].concat(u5(h))}})})}}},provides:function(c){c.generateLayersText=function(r,n){var i=n.title,s=n.transform,l=n.extra,u=null,p=null;if(mf){var h=parseInt(getComputedStyle(r).fontSize,10),z=r.getBoundingClientRect();u=z.width/h,p=z.height/h}return c2.autoA11y&&!i&&(l.attributes["aria-hidden"]="true"),Promise.resolve([r,Kl({content:r.innerHTML,width:u,height:p,transform:s,title:i,extra:l,watchable:!0})])}}},sy=new RegExp('"',"ug"),rf=[1105920,1112319];function oy(e){var c=e.replace(sy,""),r=Mx(c,0),n=r>=rf[0]&&r<=rf[1],i=c.length===2?c[0]===c[1]:!1;return{value:hn(i?c[0]:c),isSecondary:n||i}}function af(e,c){var r="".concat($L).concat(c.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var s=U0(e.children),l=s.filter(function(B){return B.getAttribute(mn)===c})[0],u=Z4.getComputedStyle(e,c),p=u.getPropertyValue("font-family").match(rx),h=u.getPropertyValue("font-weight"),z=u.getPropertyValue("content");if(l&&!p)return e.removeChild(l),n();if(p&&z!=="none"&&z!==""){var M=u.getPropertyValue("content"),L=~["Sharp"].indexOf(p[2])?J2:O2,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(p[2])?s5[L][p[2].toLowerCase()]:ax[L][h],P=oy(M),R=P.value,W=P.isSecondary,g=p[0].startsWith("FontAwesome"),H=kn(S,R),C=H;if(g){var b=Nx(R);b.iconName&&b.prefix&&(H=b.iconName,S=b.prefix)}if(H&&!W&&(!l||l.getAttribute(xn)!==S||l.getAttribute(yn)!==C)){e.setAttribute(r,C),l&&e.removeChild(l);var O=Jx(),U=O.extra;U.attributes[mn]=c,gn(H,S).then(function(B){var Z=En($($({},O),{},{icons:{main:B,mask:An()},prefix:S,iconName:C,extra:U,watchable:!0})),A=D2.createElementNS("http://www.w3.org/2000/svg","svg");c==="::before"?e.insertBefore(A,e.firstChild):e.appendChild(A),A.outerHTML=Z.map(function(N){return m5(N)}).join(` -`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function ly(e){return Promise.all([af(e,"::before"),af(e,"::after")])}function fy(e){return e.parentNode!==document.head&&!~ZL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(mn)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function nf(e){if(w4)return new Promise(function(c,r){var n=U0(e.querySelectorAll("*")).filter(fy).map(ly),i=Pn.begin("searchPseudoElements");_f(),Promise.all(n).then(function(){i(),Mn(),c()}).catch(function(){i(),Mn(),r()})})}var uy={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=nf,r}}},provides:function(c){c.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?D2:n;c2.searchPseudoElements&&nf(i)}}},tf=!1,py={mixout:function(){return{dom:{unwatch:function(){_f(),tf=!0}}}},hooks:function(){return{bootstrap:function(){Zl(dn("mutationObserverCallbacks",{}))},noAuto:function(){Yx()},watch:function(r){var n=r.observeMutationsRoot;tf?Mn():Zl(dn("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},sf=function(c){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return c.toLowerCase().split(" ").reduce(function(n,i){var s=i.toLowerCase().split("-"),l=s[0],u=s.slice(1).join("-");if(l&&u==="h")return n.flipX=!0,n;if(l&&u==="v")return n.flipY=!0,n;if(u=parseFloat(u),isNaN(u))return n;switch(l){case"grow":n.size=n.size+u;break;case"shrink":n.size=n.size-u;break;case"left":n.x=n.x-u;break;case"right":n.x=n.x+u;break;case"up":n.y=n.y-u;break;case"down":n.y=n.y+u;break;case"rotate":n.rotate=n.rotate+u;break}return n},r)},my={mixout:function(){return{parse:{transform:function(r){return sf(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=sf(i)),r}}},provides:function(c){c.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,s=r.containerWidth,l=r.iconWidth,u={transform:"translate(".concat(s/2," 256)")},p="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),z="rotate(".concat(i.rotate," 0 0)"),M={transform:"".concat(p," ").concat(h," ").concat(z)},L={transform:"translate(".concat(l/2*-1," -256)")},S={outer:u,inner:M,path:L};return{tag:"g",attributes:$({},S.outer),children:[{tag:"g",attributes:$({},S.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:$($({},n.icon.attributes),S.path)}]}]}}}},fn={x:0,y:0,width:"100%",height:"100%"};function of(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||c)&&(e.attributes.fill="black"),e}function hy(e){return e.tag==="g"?e.children:[e]}var vy={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),s=i?N7(i.split(" ").map(function(l){return l.trim()})):An();return s.prefix||(s.prefix=e6()),r.mask=s,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(c){c.generateAbstractMask=function(r){var n=r.children,i=r.attributes,s=r.main,l=r.mask,u=r.maskId,p=r.transform,h=s.width,z=s.icon,M=l.width,L=l.icon,S=mx({transform:p,containerWidth:M,iconWidth:h}),P={tag:"rect",attributes:$($({},fn),{},{fill:"white"})},R=z.children?{children:z.children.map(of)}:{},W={tag:"g",attributes:$({},S.inner),children:[of($({tag:z.tag,attributes:$($({},z.attributes),S.path)},R))]},g={tag:"g",attributes:$({},S.outer),children:[W]},H="mask-".concat(u||f5()),C="clip-".concat(u||f5()),b={tag:"mask",attributes:$($({},fn),{},{id:H,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[P,g]},O={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:hy(L)},b]};return n.push(O,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(H,")")},fn)}),{children:n,attributes:i}}}},dy={provides:function(c){var r=!1;Z4.matchMedia&&(r=Z4.matchMedia("(prefers-reduced-motion: reduce)").matches),c.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:$($({},i),{},{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 l=$($({},s),{},{attributeName:"opacity"}),u={tag:"circle",attributes:$($({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||u.children.push({tag:"animate",attributes:$($({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},l),{},{values:"1;0;1;1;0;1;"})}),n.push(u),n.push({tag:"path",attributes:$($({},i),{},{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:$($({},l),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:$($({},i),{},{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:$($({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},zy={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return r.symbol=s,r}}}},Hy=[dx,ay,ny,ty,iy,uy,py,my,vy,dy,zy];Ax(Hy,{mixoutsTo:p3});var db=p3.noAuto,zb=p3.config,Hb=p3.library,gb=p3.dom,k7=p3.parse,Vb=p3.findIconDefinition,Mb=p3.toHtml,Rf=p3.icon,Cb=p3.layer,Lb=p3.text,xb=p3.counter;var v2=N2(Gf()),Dn=N2(f1());function qf(e,c){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function r6(e){for(var c=1;c=0)&&(r[i]=e[i]);return r}function Cy(e,c){if(e==null)return{};var r=My(e,c),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rn(e){return Ly(e)||xy(e)||yy(e)||wy()}function Ly(e){if(Array.isArray(e))return On(e)}function xy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yy(e,c){if(e){if(typeof e=="string")return On(e,c);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 On(e,c)}}function On(e,c){(c==null||c>e.length)&&(c=e.length);for(var r=0,n=new Array(c);r2&&arguments[2]!==void 0?arguments[2]:{};if(typeof c=="string")return c;var n=(c.children||[]).map(function(p){return Yf(e,p)}),i=Object.keys(c.attributes||{}).reduce(function(p,h){var z=c.attributes[h];switch(h){case"class":p.attrs.className=z,delete c.attributes.class;break;case"style":p.attrs.style=Ay(z);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?p.attrs[h.toLowerCase()]=z:p.attrs[Xf(h)]=z}return p},{attrs:{}}),s=r.style,l=s===void 0?{}:s,u=Cy(r,by);return i.attrs.style=r6(r6({},i.attrs.style),l),e.apply(void 0,[c.tag,r6(r6({},i.attrs),u)].concat(Rn(n)))}var Kf=!1;try{Kf=!0}catch{}function Ey(){if(!Kf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function jf(e){if(e&&A7(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(k7.icon)return k7.icon(e);if(e===null)return null;if(e&&A7(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 Tn(e,c){return Array.isArray(c)&&c.length>0||!Array.isArray(c)&&c?W0({},e,c):{}}var N1=Dn.default.forwardRef(function(e,c){var r=e.icon,n=e.mask,i=e.symbol,s=e.className,l=e.title,u=e.titleId,p=e.maskId,h=jf(r),z=Tn("classes",[].concat(Rn(Sy(e)),Rn(s.split(" ")))),M=Tn("transform",typeof e.transform=="string"?k7.transform(e.transform):e.transform),L=Tn("mask",jf(n)),S=Rf(h,r6(r6(r6(r6({},z),M),L),{},{symbol:i,title:l,titleId:u,maskId:p}));if(!S)return Ey("Could not find icon",h),null;var P=S.abstract,R={ref:c};return Object.keys(e).forEach(function(W){N1.defaultProps.hasOwnProperty(W)||(R[W]=e[W])}),Py(P[0],R)});N1.displayName="FontAwesomeIcon";N1.propTypes={beat:v2.default.bool,border:v2.default.bool,beatFade:v2.default.bool,bounce:v2.default.bool,className:v2.default.string,fade:v2.default.bool,flash:v2.default.bool,mask:v2.default.oneOfType([v2.default.object,v2.default.array,v2.default.string]),maskId:v2.default.string,fixedWidth:v2.default.bool,inverse:v2.default.bool,flip:v2.default.oneOf([!0,!1,"horizontal","vertical","both"]),icon:v2.default.oneOfType([v2.default.object,v2.default.array,v2.default.string]),listItem:v2.default.bool,pull:v2.default.oneOf(["right","left"]),pulse:v2.default.bool,rotation:v2.default.oneOf([0,90,180,270]),shake:v2.default.bool,size:v2.default.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:v2.default.bool,spinPulse:v2.default.bool,spinReverse:v2.default.bool,symbol:v2.default.oneOfType([v2.default.bool,v2.default.string]),title:v2.default.string,titleId:v2.default.string,transform:v2.default.oneOfType([v2.default.string,v2.default.object]),swapOpacity:v2.default.bool};N1.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 Py=Yf.bind(null,Dn.default.createElement);var g3=N2(f1());var b1=function(){return b1=Object.assign||function(c){for(var r,n=1,i=arguments.length;n0?Z2(X0,--N3):0,j0--,i1===10&&(j0=1,R7--),i1}function b3(){return i1=N32||In(i1)>3?"":" "}function ou(e,c){for(;--c&&b3()&&!(i1<48||i1>102||i1>57&&i1<65||i1>70&&i1<97););return O7(e,H5()+(c<6&&n6()==32&&b3()==32))}function Un(e){for(;b3();)switch(i1){case e:return N3;case 34:case 39:e!==34&&e!==39&&Un(i1);break;case 40:e===41&&Un(e);break;case 92:b3();break}return N3}function lu(e,c){for(;b3()&&e+i1!==57;)if(e+i1===84&&n6()===47)break;return"/*"+O7(c,N3-1)+"*"+v5(e===47?e:b3())}function fu(e){for(;!In(n6());)b3();return O7(e,N3)}function mu(e){return iu(F7("",null,null,null,[""],e=tu(e),0,[0],e))}function F7(e,c,r,n,i,s,l,u,p){for(var h=0,z=0,M=l,L=0,S=0,P=0,R=1,W=1,g=1,H=0,C="",b=i,O=s,U=n,B=C;W;)switch(P=H,H=b3()){case 40:if(P!=108&&Z2(B,M-1)==58){q0(B+=f2(D7(H),"&","&\f"),"&\f",Fn(h?u[h-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:B+=D7(H);break;case 9:case 10:case 13:case 32:B+=su(P);break;case 92:B+=ou(H5()-1,7);continue;case 47:switch(n6()){case 42:case 47:Y6(_y(lu(b3(),H5()),c,r,p),p);break;default:B+="/"}break;case 123*R:u[h++]=U1(B)*g;case 125*R:case 59:case 0:switch(H){case 0:case 125:W=0;case 59+z:g==-1&&(B=f2(B,/\f/g,"")),S>0&&U1(B)-M&&Y6(S>32?pu(B+";",n,r,M-1,p):pu(f2(B," ","")+";",n,r,M-2,p),p);break;case 59:B+=";";default:if(Y6(U=uu(B,c,r,h,z,i,u,C,b=[],O=[],M,s),s),H===123)if(z===0)F7(B,c,U,U,b,s,M,u,O);else switch(L===99&&Z2(B,3)===110?100:L){case 100:case 108:case 109:case 115:F7(e,U,U,n&&Y6(uu(e,U,U,0,0,i,u,C,i,b=[],M,O),O),i,O,M,u,n?b:O);break;default:F7(B,U,U,U,[""],O,0,u,O)}}h=z=S=0,R=g=1,C=B="",M=l;break;case 58:M=1+U1(B),S=P;default:if(R<1){if(H==123)--R;else if(H==125&&R++==0&&nu()==125)continue}switch(B+=v5(H),H*R){case 38:g=z>0?1:(B+="\f",-1);break;case 44:u[h++]=(U1(B)-1)*g,g=1;break;case 64:n6()===45&&(B+=D7(b3())),L=n6(),z=M=U1(C=B+=fu(H5())),H++;break;case 45:P===45&&U1(B)==2&&(R=0)}}return s}function uu(e,c,r,n,i,s,l,u,p,h,z,M){for(var L=i-1,S=i===0?s:[""],P=T7(S),R=0,W=0,g=0;R0?S[H]+" "+C:f2(C,/&\f/g,S[H])))&&(p[g++]=b);return z5(e,c,r,i===0?a6:u,p,h,z,M)}function _y(e,c,r,n){return z5(e,c,r,E7,v5(au()),i4(e,2,-2),0,n)}function pu(e,c,r,n,i){return z5(e,c,r,G0,i4(e,0,n),i4(e,n+1,-1),n,i)}function Wn(e,c,r){switch(eu(e,c)){case 5103:return C2+"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 C2+e+e;case 4789:return X6+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C2+e+X6+e+k2+e+e;case 5936:switch(Z2(e,c+11)){case 114:return C2+e+k2+f2(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C2+e+k2+f2(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C2+e+k2+f2(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C2+e+k2+e+e;case 6165:return C2+e+k2+"flex-"+e+e;case 5187:return C2+e+f2(e,/(\w+).+(:[^]+)/,C2+"box-$1$2"+k2+"flex-$1$2")+e;case 5443:return C2+e+k2+"flex-item-"+f2(e,/flex-|-self/g,"")+(q3(e,/flex-|baseline/)?"":k2+"grid-row-"+f2(e,/flex-|-self/g,""))+e;case 4675:return C2+e+k2+"flex-line-pack"+f2(e,/align-content|flex-|-self/g,"")+e;case 5548:return C2+e+k2+f2(e,"shrink","negative")+e;case 5292:return C2+e+k2+f2(e,"basis","preferred-size")+e;case 6060:return C2+"box-"+f2(e,"-grow","")+C2+e+k2+f2(e,"grow","positive")+e;case 4554:return C2+f2(e,/([^-])(transform)/g,"$1"+C2+"$2")+e;case 6187:return f2(f2(f2(e,/(zoom-|grab)/,C2+"$1"),/(image-set)/,C2+"$1"),e,"")+e;case 5495:case 3959:return f2(e,/(image-set\([^]*)/,C2+"$1$`$1");case 4968:return f2(f2(e,/(.+:)(flex-)?(.*)/,C2+"box-pack:$3"+k2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C2+e+e;case 4200:if(!q3(e,/flex-|baseline/))return k2+"grid-column-align"+i4(e,c)+e;break;case 2592:case 3360:return k2+f2(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return c=i,q3(n.props,/grid-\w+-end/)})?~q0(e+(r=r[c].value),"span",0)?e:k2+f2(e,"-start","")+e+k2+"grid-row-span:"+(~q0(r,"span",0)?q3(r,/\d+/):+q3(r,/\d+/)-+q3(e,/\d+/))+";":k2+f2(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return q3(n.props,/grid-\w+-start/)})?e:k2+f2(f2(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return f2(e,/(.+)-inline(.+)/,C2+"$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(U1(e)-1-c>6)switch(Z2(e,c+1)){case 109:if(Z2(e,c+4)!==45)break;case 102:return f2(e,/(.+:)(.+)-([^]+)/,"$1"+C2+"$2-$3$1"+X6+(Z2(e,c+3)==108?"$3":"$2-$3"))+e;case 115:return~q0(e,"stretch",0)?Wn(f2(e,"stretch","fill-available"),c,r)+e:e}break;case 5152:case 5920:return f2(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,s,l,u,p,h){return k2+i+":"+s+h+(l?k2+i+"-span:"+(u?p:+p-+s)+h:"")+e});case 4949:if(Z2(e,c+6)===121)return f2(e,":",":"+C2)+e;break;case 6444:switch(Z2(e,Z2(e,14)===45?18:11)){case 120:return f2(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C2+(Z2(e,14)===45?"inline-":"")+"box$3$1"+C2+"$2$3$1"+k2+"$2box$3")+e;case 100:return f2(e,":",":"+k2)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return f2(e,"scroll-","scroll-snap-")+e}return e}function Y0(e,c){for(var r="",n=0;n-1&&!e.return)switch(e.type){case G0:e.return=Wn(e.value,e.length,r);return;case P7:return Y0([S4(e,{value:f2(e.value,"@","@"+C2)})],n);case a6:if(e.length)return cu(r=e.props,function(i){switch(q3(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":K6(S4(e,{props:[f2(i,/:(read-\w+)/,":"+X6+"$1")]})),K6(S4(e,{props:[i]})),d5(e,{props:Bn(r,n)});break;case"::placeholder":K6(S4(e,{props:[f2(i,/:(plac\w+)/,":"+C2+"input-$1")]})),K6(S4(e,{props:[f2(i,/:(plac\w+)/,":"+X6+"$1")]})),K6(S4(e,{props:[f2(i,/:(plac\w+)/,k2+"input-$1")]})),K6(S4(e,{props:[i]})),d5(e,{props:Bn(r,n)});break}return""})}}var Ty={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},Hu=Ty;var b4=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bu="active",G7="data-styled-version",Q0="6.1.8",Zn=`/*!sc*/ -`,e9=typeof window<"u"&&"HTMLElement"in window,Ry=!!(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 X7=Object.freeze([]),$0=Object.freeze({});function Oy(e,c,r){return r===void 0&&(r=$0),e.theme!==r.theme&&e.theme||c||r.theme}var ku=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"]),Dy=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fy=/(^-|-$)/g;function gu(e){return e.replace(Dy,"-").replace(Fy,"")}var By=/(a)(d)/gi,B7=52,Vu=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xn(e){var c,r="";for(c=Math.abs(e);c>B7;c=c/B7|0)r=Vu(c%B7)+r;return(Vu(c%B7)+r).replace(By,"$1-$2")}var Gn,Au=5381,K0=function(e,c){for(var r=c.length;r;)e=33*e^c.charCodeAt(--r);return e},Eu=function(e){return K0(Au,e)};function Iy(e){return Xn(Eu(e)>>>0)}function Uy(e){return e.displayName||e.name||"Component"}function qn(e){return typeof e=="string"&&!0}var Pu=typeof Symbol=="function"&&Symbol.for,_u=Pu?Symbol.for("react.memo"):60115,Wy=Pu?Symbol.for("react.forward_ref"):60112,Gy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tu={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jy=((Gn={})[Wy]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gn[_u]=Tu,Gn);function Mu(e){return("type"in(c=e)&&c.type.$$typeof)===_u?Tu:"$$typeof"in e?jy[e.$$typeof]:Gy;var c}var Xy=Object.defineProperty,Yy=Object.getOwnPropertyNames,Cu=Object.getOwnPropertySymbols,Ky=Object.getOwnPropertyDescriptor,Qy=Object.getPrototypeOf,Lu=Object.prototype;function Ru(e,c,r){if(typeof c!="string"){if(Lu){var n=Qy(c);n&&n!==Lu&&Ru(e,n,r)}var i=Yy(c);Cu&&(i=i.concat(Cu(c)));for(var s=Mu(e),l=Mu(c),u=0;u0?" Args: ".concat(c.join(", ")):""))}var $y=function(){function e(c){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=c}return e.prototype.indexOfGroup=function(c){for(var r=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,s=i;c>=s;)if((s<<=1)<0)throw N4(16,"".concat(c));this.groupSizes=new Uint32Array(s),this.groupSizes.set(n),this.length=s;for(var l=i;l=this.length||this.groupSizes[c]===0)return r;for(var n=this.groupSizes[c],i=this.indexOfGroup(c),s=i+n,l=i;l=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[c]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(c){this.element.removeChild(this.nodes[c]),this.length--},e.prototype.getRule=function(c){return c0&&(W+="".concat(g,","))}),p+="".concat(P).concat(R,'{content:"').concat(W,'"}').concat(Zn)},z=0;z0?".".concat(c):L},z=p.slice();z.push(function(L){L.type===a6&&L.value.includes("&")&&(L.props[0]=L.props[0].replace(sw,r).replace(n,h))}),l.prefix&&z.push(zu),z.push(hu);var M=function(L,S,P,R){S===void 0&&(S=""),P===void 0&&(P=""),R===void 0&&(R="&"),c=R,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var W=L.replace(ow,""),g=mu(P||S?"".concat(P," ").concat(S," { ").concat(W," }"):W);l.namespace&&(g=Du(g,l.namespace));var H=[];return Y0(g,vu(z.concat(du(function(C){return H.push(C)})))),H};return M.hash=p.length?p.reduce(function(L,S){return S.name||N4(15),K0(L,S.name)},Au).toString():"",M}var lw=new V5,Qn=Fu(),a9=e1.default.createContext({shouldForwardProp:void 0,styleSheet:lw,stylis:Qn}),hk=a9.Consumer,fw=e1.default.createContext(void 0);function $n(){return(0,e1.useContext)(a9)}function uw(e){var c=(0,e1.useState)(e.stylisPlugins),r=c[0],n=c[1],i=$n().styleSheet,s=(0,e1.useMemo)(function(){var p=i;return e.sheet?p=e.sheet:e.target&&(p=p.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(p=p.reconstructWithOptions({useCSSOMInjection:!1})),p},[e.disableCSSOMInjection,e.sheet,e.target,i]),l=(0,e1.useMemo)(function(){return Fu({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,e1.useEffect)(function(){(0,Nu.default)(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,e1.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:l}},[e.shouldForwardProp,s,l]);return e1.default.createElement(a9.Provider,{value:u},e1.default.createElement(fw.Provider,{value:l},e.children))}var pw=function(){function e(c,r){var n=this;this.inject=function(i,s){s===void 0&&(s=Qn);var l=n.name+s.hash;i.hasNameForId(n.id,l)||i.insertRules(n.id,l,s(n.rules,l,"@keyframes"))},this.name=c,this.id="sc-keyframes-".concat(c),this.rules=r,r9(this,function(){throw N4(12,String(n.name))})}return e.prototype.getName=function(c){return c===void 0&&(c=Qn),this.name+c.hash},e}(),mw=function(e){return e>="A"&&e<="Z"};function yu(e){for(var c="",r=0;r>>0);if(!r.hasNameForId(this.componentId,l)){var u=n(s,".".concat(l),void 0,this.componentId);r.insertRules(this.componentId,l,u)}i=Q6(i,l),this.staticRulesId=l}else{for(var p=K0(this.baseHash,n.hash),h="",z=0;z>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(h,".".concat(S),void 0,this.componentId)),i=Q6(i,S)}}return i},e}(),Wu=e1.default.createContext(void 0),vk=Wu.Consumer;var jn={};function dw(e,c,r){var n=c9(e),i=e,s=!qn(e),l=c.attrs,u=l===void 0?X7:l,p=c.componentId,h=p===void 0?function(b,O){var U=typeof b!="string"?"sc":gu(b);jn[U]=(jn[U]||0)+1;var B="".concat(U,"-").concat(Iy(Q0+U+jn[U]));return O?"".concat(O,"-").concat(B):B}(c.displayName,c.parentComponentId):p,z=c.displayName,M=z===void 0?function(b){return qn(b)?"styled.".concat(b):"Styled(".concat(Uy(b),")")}(e):z,L=c.displayName&&c.componentId?"".concat(gu(c.displayName),"-").concat(c.componentId):c.componentId||h,S=n&&i.attrs?i.attrs.concat(u).filter(Boolean):u,P=c.shouldForwardProp;if(n&&i.shouldForwardProp){var R=i.shouldForwardProp;if(c.shouldForwardProp){var W=c.shouldForwardProp;P=function(b,O){return R(b,O)&&W(b,O)}}else P=R}var g=new vw(r,L,n?i.componentStyle:void 0);function H(b,O){return function(U,B,Z){var A=U.attrs,N=U.componentStyle,E=U.defaultProps,T=U.foldedComponentIds,j=U.styledComponentId,K=U.target,Y=e1.default.useContext(Wu),q=$n(),t2=U.shouldForwardProp||q.shouldForwardProp,s2=Oy(B,Y,E)||$0,i2=function(t3,H1,g1){for(var e4,Q2=b1(b1({},H1),{className:void 0,theme:g1}),X1=0;X12&&V5.registerId(this.componentId+c),this.removeStyles(c,n),this.createStyles(c,r,n,i)},e}();var zk=function(){function e(){var c=this;this._emitSheetCSS=function(){var r=c.instance.toString(),n=Kn(),i=q7([n&&'nonce="'.concat(n,'"'),"".concat(b4,'="true"'),"".concat(G7,'="').concat(Q0,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(c.sealed)throw N4(2);return c._emitSheetCSS()},this.getStyleElement=function(){var r;if(c.sealed)throw N4(2);var n=((r={})[b4]="",r[G7]=Q0,r.dangerouslySetInnerHTML={__html:c.instance.toString()},r),i=Kn();return i&&(n.nonce=i),[e1.default.createElement("style",b1({},n,{key:"sc-0-0"}))]},this.seal=function(){c.sealed=!0},this.instance=new V5({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(c){if(this.sealed)throw N4(2);return e1.default.createElement(uw,{sheet:this.instance},c)},e.prototype.interleaveWithNodeStream=function(c){throw N4(3)},e}();var Hk="__sc-".concat(b4,"__");var Y7="#a8a8a8",$6=u2.div` +}`;function qh(){var e=Oh,c=Fh,r=c2.cssPrefix,n=c2.replacementClass,i=oS;if(r!==e||n!==c){var s=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(c),"g");i=i.replace(s,".".concat(r,"-")).replace(l,"--".concat(r,"-")).replace(u,".".concat(n))}return i}var dh=!1;function X9(){c2.autoAddCss&&!dh&&(aS(qh()),dh=!0)}var lS={mixout:function(){return{dom:{css:qh,insertCss:X9}}},hooks:function(){return{beforeDOMElementCreation:function(){X9()},beforeI2svg:function(){X9()}}}},O4=x6||{};O4[D4]||(O4[D4]={});O4[D4].styles||(O4[D4].styles={});O4[D4].hooks||(O4[D4].hooks={});O4[D4].shims||(O4[D4].shims=[]);var Z3=O4[D4],jh=[],fS=function e(){B2.removeEventListener("DOMContentLoaded",e),ir=1,jh.map(function(c){return c()})},ir=!1;B4&&(ir=(B2.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(B2.readyState),ir||B2.addEventListener("DOMContentLoaded",fS));function uS(e){B4&&(ir?setTimeout(e,0):jh.push(e))}function pe(e){var c=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?Gh(e):"<".concat(c," ").concat(tS(n),">").concat(s.map(pe).join(""),"")}function vh(e,c,r){if(e&&e[c]&&e[c][r])return{prefix:c,iconName:r,icon:e[c][r]}}var pS=function(c,r){return function(n,i,s,l){return c.call(r,n,i,s,l)}},Y9=function(c,r,n,i){var s=Object.keys(c),l=s.length,u=i!==void 0?pS(r,i):r,p,h,z;for(n===void 0?(p=1,z=c[s[0]]):(p=0,z=n);p=55296&&i<=56319&&r=55296&&n<=56319&&r>c+1&&(i=e.charCodeAt(c+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function zh(e){return Object.keys(e).reduce(function(c,r){var n=e[r],i=!!n.icon;return i?c[n.iconName]=n.icon:c[r]=n,c},{})}function ci(e,c){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,s=zh(c);typeof Z3.hooks.addPack=="function"&&!i?Z3.hooks.addPack(e,zh(c)):Z3.styles[e]=$($({},Z3.styles[e]||{}),s),e==="fas"&&ci("fa",c)}var er,cr,rr,L8=Z3.styles,dS=Z3.shims,vS=(er={},m1(er,F2,Object.values(se[F2])),m1(er,c1,Object.values(se[c1])),er),di=null,Xh={},Yh={},Kh={},Qh={},$h={},zS=(cr={},m1(cr,F2,Object.keys(te[F2])),m1(cr,c1,Object.keys(te[c1])),cr);function HS(e){return~Zw.indexOf(e)}function gS(e,c){var r=c.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!HS(i)?i:null}var Jh=function(){var c=function(s){return Y9(L8,function(l,u,p){return l[p]=Y9(u,s,{}),l},{})};Xh=c(function(i,s,l){if(s[3]&&(i[s[3]]=l),s[2]){var u=s[2].filter(function(p){return typeof p=="number"});u.forEach(function(p){i[p.toString(16)]=l})}return i}),Yh=c(function(i,s,l){if(i[l]=l,s[2]){var u=s[2].filter(function(p){return typeof p=="string"});u.forEach(function(p){i[p]=l})}return i}),$h=c(function(i,s,l){var u=s[2];return i[l]=l,u.forEach(function(p){i[p]=l}),i});var r="far"in L8||c2.autoFetchSvg,n=Y9(dS,function(i,s){var l=s[0],u=s[1],p=s[2];return u==="far"&&!r&&(u="fas"),typeof l=="string"&&(i.names[l]={prefix:u,iconName:p}),typeof l=="number"&&(i.unicodes[l.toString(16)]={prefix:u,iconName:p}),i},{names:{},unicodes:{}});Kh=n.names,Qh=n.unicodes,di=lr(c2.styleDefault,{family:c2.familyDefault})};rS(function(e){di=lr(e.styleDefault,{family:c2.familyDefault})});Jh();function vi(e,c){return(Xh[e]||{})[c]}function VS(e,c){return(Yh[e]||{})[c]}function p0(e,c){return($h[e]||{})[c]}function Zh(e){return Kh[e]||{prefix:null,iconName:null}}function MS(e){var c=Qh[e],r=vi("fas",e);return c||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function y6(){return di}var zi=function(){return{prefix:null,iconName:null,rest:[]}};function lr(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c.family,n=r===void 0?F2:r,i=te[n][e],s=ie[n][e]||ie[n][i],l=e in Z3.styles?e:null;return s||l||null}var Hh=(rr={},m1(rr,F2,Object.keys(se[F2])),m1(rr,c1,Object.keys(se[c1])),rr);function fr(e){var c,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,s=(c={},m1(c,F2,"".concat(c2.cssPrefix,"-").concat(F2)),m1(c,c1,"".concat(c2.cssPrefix,"-").concat(c1)),c),l=null,u=F2;(e.includes(s[F2])||e.some(function(h){return Hh[F2].includes(h)}))&&(u=F2),(e.includes(s[c1])||e.some(function(h){return Hh[c1].includes(h)}))&&(u=c1);var p=e.reduce(function(h,z){var V=gS(c2.cssPrefix,z);if(L8[z]?(z=vS[u].includes(z)?Xw[u][z]:z,l=z,h.prefix=z):zS[u].indexOf(z)>-1?(l=z,h.prefix=lr(z,{family:u})):V?h.iconName=V:z!==c2.replacementClass&&z!==s[F2]&&z!==s[c1]&&h.rest.push(z),!i&&h.prefix&&h.iconName){var L=l==="fa"?Zh(h.iconName):{},S=p0(h.prefix,h.iconName);L.prefix&&(l=null),h.iconName=L.iconName||S||h.iconName,h.prefix=L.prefix||h.prefix,h.prefix==="far"&&!L8.far&&L8.fas&&!c2.autoFetchSvg&&(h.prefix="fas")}return h},zi());return(e.includes("fa-brands")||e.includes("fab"))&&(p.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(p.prefix="fad"),!p.prefix&&u===c1&&(L8.fass||c2.autoFetchSvg)&&(p.prefix="fass",p.iconName=p0(p.prefix,p.iconName)||p.iconName),(p.prefix==="fa"||l==="fa")&&(p.prefix=y6()||"fas"),p}var CS=function(){function e(){Tw(this,e),this.definitions={}}return Rw(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),s=0;s0&&z.forEach(function(V){typeof V=="string"&&(r[u][V]=h)}),r[u][p]=h}),r}}]),e}(),gh=[],x8={},y8={},LS=Object.keys(y8);function xS(e,c){var r=c.mixoutsTo;return gh=e,x8={},Object.keys(y8).forEach(function(n){LS.indexOf(n)===-1&&delete y8[n]}),gh.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(l){typeof i[l]=="function"&&(r[l]=i[l]),tr(i[l])==="object"&&Object.keys(i[l]).forEach(function(u){r[l]||(r[l]={}),r[l][u]=i[l][u]})}),n.hooks){var s=n.hooks();Object.keys(s).forEach(function(l){x8[l]||(x8[l]=[]),x8[l].push(s[l])})}n.provides&&n.provides(y8)}),r}function ri(e,c){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i1?c-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return B4?(h0("beforeI2svg",c),F4("pseudoElements2svg",c),F4("i2svg",c)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=c.autoReplaceSvgRoot;c2.autoReplaceSvg===!1&&(c2.autoReplaceSvg=!0),c2.observeMutations=!0,uS(function(){NS({autoReplaceSvgRoot:r}),h0("watch",c)})}},SS={icon:function(c){if(c===null)return null;if(tr(c)==="object"&&c.prefix&&c.iconName)return{prefix:c.prefix,iconName:p0(c.prefix,c.iconName)||c.iconName};if(Array.isArray(c)&&c.length===2){var r=c[1].indexOf("fa-")===0?c[1].slice(3):c[1],n=lr(c[0]);return{prefix:n,iconName:p0(n,r)||r}}if(typeof c=="string"&&(c.indexOf("".concat(c2.cssPrefix,"-"))>-1||c.match(Yw))){var i=fr(c.split(" "),{skipLookups:!0});return{prefix:i.prefix||y6(),iconName:p0(i.prefix,i.iconName)||i.iconName}}if(typeof c=="string"){var s=y6();return{prefix:s,iconName:p0(s,c)||c}}}},g3={noAuto:yS,config:c2,dom:wS,parse:SS,library:ed,findIconDefinition:ai,toHtml:pe},NS=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=c.autoReplaceSvgRoot,n=r===void 0?B2:r;(Object.keys(Z3.styles).length>0||c2.autoFetchSvg)&&B4&&c2.autoReplaceSvg&&g3.dom.i2svg({node:n})};function ur(e,c){return Object.defineProperty(e,"abstract",{get:c}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return pe(n)})}}),Object.defineProperty(e,"node",{get:function(){if(B4){var n=B2.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function bS(e){var c=e.children,r=e.main,n=e.mask,i=e.attributes,s=e.styles,l=e.transform;if(hi(l)&&r.found&&!n.found){var u=r.width,p=r.height,h={x:u/p/2,y:.5};i.style=or($($({},s),{},{"transform-origin":"".concat(h.x+l.x/16,"em ").concat(h.y+l.y/16,"em")}))}return[{tag:"svg",attributes:i,children:c}]}function kS(e){var c=e.prefix,r=e.iconName,n=e.children,i=e.attributes,s=e.symbol,l=s===!0?"".concat(c,"-").concat(c2.cssPrefix,"-").concat(r):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},i),{},{id:l}),children:n}]}]}function Hi(e){var c=e.icons,r=c.main,n=c.mask,i=e.prefix,s=e.iconName,l=e.transform,u=e.symbol,p=e.title,h=e.maskId,z=e.titleId,V=e.extra,L=e.watchable,S=L===void 0?!1:L,P=n.found?n:r,T=P.width,W=P.height,g=i==="fak",H=[c2.replacementClass,s?"".concat(c2.cssPrefix,"-").concat(s):""].filter(function(A){return V.classes.indexOf(A)===-1}).filter(function(A){return A!==""||!!A}).concat(V.classes).join(" "),C={children:[],attributes:$($({},V.attributes),{},{"data-prefix":i,"data-icon":s,class:H,role:V.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(T," ").concat(W)})},b=g&&!~V.classes.indexOf("fa-fw")?{width:"".concat(T/W*16*.0625,"em")}:{};S&&(C.attributes[m0]=""),p&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(z||le())},children:[p]}),delete C.attributes.title);var D=$($({},C),{},{prefix:i,iconName:s,main:r,mask:n,maskId:h,transform:l,symbol:u,styles:$($({},b),V.styles)}),U=n.found&&r.found?F4("generateAbstractMask",D)||{children:[],attributes:{}}:F4("generateAbstractIcon",D)||{children:[],attributes:{}},B=U.children,Z=U.attributes;return D.children=B,D.attributes=Z,u?kS(D):bS(D)}function Vh(e){var c=e.content,r=e.width,n=e.height,i=e.transform,s=e.title,l=e.extra,u=e.watchable,p=u===void 0?!1:u,h=$($($({},l.attributes),s?{title:s}:{}),{},{class:l.classes.join(" ")});p&&(h[m0]="");var z=$({},l.styles);hi(i)&&(z.transform=sS({transform:i,startCentered:!0,width:r,height:n}),z["-webkit-transform"]=z.transform);var V=or(z);V.length>0&&(h.style=V);var L=[];return L.push({tag:"span",attributes:h,children:[c]}),s&&L.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),L}function AS(e){var c=e.content,r=e.title,n=e.extra,i=$($($({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),s=or(n.styles);s.length>0&&(i.style=s);var l=[];return l.push({tag:"span",attributes:i,children:[c]}),r&&l.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),l}var K9=Z3.styles;function ni(e){var c=e[0],r=e[1],n=e.slice(4),i=oi(n,1),s=i[0],l=null;return Array.isArray(s)?l={tag:"g",attributes:{class:"".concat(c2.cssPrefix,"-").concat(u0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(u0.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(u0.PRIMARY),fill:"currentColor",d:s[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:c,height:r,icon:l}}var ES={found:!1,width:512,height:512};function PS(e,c){!Bh&&!c2.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(c,'" is missing.'))}function ti(e,c){var r=c;return c==="fa"&&c2.styleDefault!==null&&(c=y6()),new Promise(function(n,i){var s={found:!1,width:512,height:512,icon:F4("missingIconAbstract")||{}};if(r==="fa"){var l=Zh(e)||{};e=l.iconName||e,c=l.prefix||c}if(e&&c&&K9[c]&&K9[c][e]){var u=K9[c][e];return n(ni(u))}PS(e,c),n($($({},ES),{},{icon:c2.showMissingIcons&&e?F4("missingIconAbstract")||{}:{}}))})}var Mh=function(){},ii=c2.measurePerformance&&Yc&&Yc.mark&&Yc.measure?Yc:{mark:Mh,measure:Mh},re='FA "6.5.1"',_S=function(c){return ii.mark("".concat(re," ").concat(c," begins")),function(){return cd(c)}},cd=function(c){ii.mark("".concat(re," ").concat(c," ends")),ii.measure("".concat(re," ").concat(c),"".concat(re," ").concat(c," begins"),"".concat(re," ").concat(c," ends"))},gi={begin:_S,end:cd},ar=function(){};function Ch(e){var c=e.getAttribute?e.getAttribute(m0):null;return typeof c=="string"}function TS(e){var c=e.getAttribute?e.getAttribute(fi):null,r=e.getAttribute?e.getAttribute(ui):null;return c&&r}function RS(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(c2.replacementClass)}function DS(){if(c2.autoReplaceSvg===!0)return nr.replace;var e=nr[c2.autoReplaceSvg];return e||nr.replace}function OS(e){return B2.createElementNS("http://www.w3.org/2000/svg",e)}function FS(e){return B2.createElement(e)}function rd(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=c.ceFn,n=r===void 0?e.tag==="svg"?OS:FS:r;if(typeof e=="string")return B2.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(l){i.setAttribute(l,e.attributes[l])});var s=e.children||[];return s.forEach(function(l){i.appendChild(rd(l,{ceFn:n}))}),i}function BS(e){var c=" ".concat(e.outerHTML," ");return c="".concat(c,"Font Awesome fontawesome.com "),c}var nr={replace:function(c){var r=c[0];if(r.parentNode)if(c[1].forEach(function(i){r.parentNode.insertBefore(rd(i),r)}),r.getAttribute(m0)===null&&c2.keepOriginalSource){var n=B2.createComment(BS(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(c){var r=c[0],n=c[1];if(~mi(r).indexOf(c2.replacementClass))return nr.replace(c);var i=new RegExp("".concat(c2.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var s=n[0].attributes.class.split(" ").reduce(function(u,p){return p===c2.replacementClass||p.match(i)?u.toSvg.push(p):u.toNode.push(p),u},{toNode:[],toSvg:[]});n[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",s.toNode.join(" "))}var l=n.map(function(u){return pe(u)}).join(` +`);r.setAttribute(m0,""),r.innerHTML=l}};function Lh(e){e()}function ad(e,c){var r=typeof c=="function"?c:ar;if(e.length===0)r();else{var n=Lh;c2.mutateApproach===qw&&(n=x6.requestAnimationFrame||Lh),n(function(){var i=DS(),s=gi.begin("mutate");e.map(i),s(),r()})}}var Vi=!1;function nd(){Vi=!0}function si(){Vi=!1}var sr=null;function xh(e){if(ph&&c2.observeMutations){var c=e.treeCallback,r=c===void 0?ar:c,n=e.nodeCallback,i=n===void 0?ar:n,s=e.pseudoElementsCallback,l=s===void 0?ar:s,u=e.observeMutationsRoot,p=u===void 0?B2:u;sr=new ph(function(h){if(!Vi){var z=y6();S8(h).forEach(function(V){if(V.type==="childList"&&V.addedNodes.length>0&&!Ch(V.addedNodes[0])&&(c2.searchPseudoElements&&l(V.target),r(V.target)),V.type==="attributes"&&V.target.parentNode&&c2.searchPseudoElements&&l(V.target.parentNode),V.type==="attributes"&&Ch(V.target)&&~Jw.indexOf(V.attributeName))if(V.attributeName==="class"&&TS(V.target)){var L=fr(mi(V.target)),S=L.prefix,P=L.iconName;V.target.setAttribute(fi,S||z),P&&V.target.setAttribute(ui,P)}else RS(V.target)&&i(V.target)})}}),B4&&sr.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function IS(){sr&&sr.disconnect()}function US(e){var c=e.getAttribute("style"),r=[];return c&&(r=c.split(";").reduce(function(n,i){var s=i.split(":"),l=s[0],u=s.slice(1);return l&&u.length>0&&(n[l]=u.join(":").trim()),n},{})),r}function WS(e){var c=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=fr(mi(e));return i.prefix||(i.prefix=y6()),c&&r&&(i.prefix=c,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=VS(i.prefix,e.innerText)||vi(i.prefix,ei(e.innerText))),!i.iconName&&c2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function GS(e){var c=S8(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return c2.autoA11y&&(r?c["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(n||le()):(c["aria-hidden"]="true",c.focusable="false")),c}function qS(){return{iconName:null,title:null,titleId:null,prefix:null,transform:m4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function yh(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=WS(e),n=r.iconName,i=r.prefix,s=r.rest,l=GS(e),u=ri("parseNodeAttributes",{},e),p=c.styleParser?US(e):[];return $({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:m4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:p,attributes:l}},u)}var jS=Z3.styles;function td(e){var c=c2.autoReplaceSvg==="nest"?yh(e,{styleParser:!1}):yh(e);return~c.extra.classes.indexOf(Ih)?F4("generateLayersText",e,c):F4("generateSvgReplacementMutation",e,c)}var w6=new Set;pi.map(function(e){w6.add("fa-".concat(e))});Object.keys(te[F2]).map(w6.add.bind(w6));Object.keys(te[c1]).map(w6.add.bind(w6));w6=fe(w6);function wh(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!B4)return Promise.resolve();var r=B2.documentElement.classList,n=function(V){return r.add("".concat(mh,"-").concat(V))},i=function(V){return r.remove("".concat(mh,"-").concat(V))},s=c2.autoFetchSvg?w6:pi.map(function(z){return"fa-".concat(z)}).concat(Object.keys(jS));s.includes("fa")||s.push("fa");var l=[".".concat(Ih,":not([").concat(m0,"])")].concat(s.map(function(z){return".".concat(z,":not([").concat(m0,"])")})).join(", ");if(l.length===0)return Promise.resolve();var u=[];try{u=S8(e.querySelectorAll(l))}catch{}if(u.length>0)n("pending"),i("complete");else return Promise.resolve();var p=gi.begin("onTree"),h=u.reduce(function(z,V){try{var L=td(V);L&&z.push(L)}catch(S){Bh||S.name==="MissingIcon"&&console.error(S)}return z},[]);return new Promise(function(z,V){Promise.all(h).then(function(L){ad(L,function(){n("active"),n("complete"),i("pending"),typeof c=="function"&&c(),p(),z()})}).catch(function(L){p(),V(L)})})}function XS(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;td(e).then(function(r){r&&ad([r],c)})}function YS(e){return function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(c||{}).icon?c:ai(c||{}),i=r.mask;return i&&(i=(i||{}).icon?i:ai(i||{})),e(n,$($({},r),{},{mask:i}))}}var KS=function(c){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?m4:n,s=r.symbol,l=s===void 0?!1:s,u=r.mask,p=u===void 0?null:u,h=r.maskId,z=h===void 0?null:h,V=r.title,L=V===void 0?null:V,S=r.titleId,P=S===void 0?null:S,T=r.classes,W=T===void 0?[]:T,g=r.attributes,H=g===void 0?{}:g,C=r.styles,b=C===void 0?{}:C;if(c){var D=c.prefix,U=c.iconName,B=c.icon;return ur($({type:"icon"},c),function(){return h0("beforeDOMElementCreation",{iconDefinition:c,params:r}),c2.autoA11y&&(L?H["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(P||le()):(H["aria-hidden"]="true",H.focusable="false")),Hi({icons:{main:ni(B),mask:p?ni(p.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:U,transform:$($({},m4),i),symbol:l,title:L,maskId:z,titleId:P,extra:{attributes:H,styles:b,classes:W}})})}},QS={mixout:function(){return{icon:YS(KS)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=wh,r.nodeCallback=XS,r}}},provides:function(c){c.i2svg=function(r){var n=r.node,i=n===void 0?B2:n,s=r.callback,l=s===void 0?function(){}:s;return wh(i,l)},c.generateSvgReplacementMutation=function(r,n){var i=n.iconName,s=n.title,l=n.titleId,u=n.prefix,p=n.transform,h=n.symbol,z=n.mask,V=n.maskId,L=n.extra;return new Promise(function(S,P){Promise.all([ti(i,u),z.iconName?ti(z.iconName,z.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(T){var W=oi(T,2),g=W[0],H=W[1];S([r,Hi({icons:{main:g,mask:H},prefix:u,iconName:i,transform:p,symbol:h,maskId:V,title:s,titleId:l,extra:L,watchable:!0})])}).catch(P)})},c.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,s=r.main,l=r.transform,u=r.styles,p=or(u);p.length>0&&(i.style=p);var h;return hi(l)&&(h=F4("generateAbstractTransformGrouping",{main:s,transform:l,containerWidth:s.width,iconWidth:s.width})),n.push(h||s.icon),{children:n,attributes:i}}}},$S={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,s=i===void 0?[]:i;return ur({type:"layer"},function(){h0("beforeDOMElementCreation",{assembler:r,params:n});var l=[];return r(function(u){Array.isArray(u)?u.map(function(p){l=l.concat(p.abstract)}):l=l.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(c2.cssPrefix,"-layers")].concat(fe(s)).join(" ")},children:l}]})}}}},JS={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,s=i===void 0?null:i,l=n.classes,u=l===void 0?[]:l,p=n.attributes,h=p===void 0?{}:p,z=n.styles,V=z===void 0?{}:z;return ur({type:"counter",content:r},function(){return h0("beforeDOMElementCreation",{content:r,params:n}),AS({content:r.toString(),title:s,extra:{attributes:h,styles:V,classes:["".concat(c2.cssPrefix,"-layers-counter")].concat(fe(u))}})})}}}},ZS={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,s=i===void 0?m4:i,l=n.title,u=l===void 0?null:l,p=n.classes,h=p===void 0?[]:p,z=n.attributes,V=z===void 0?{}:z,L=n.styles,S=L===void 0?{}:L;return ur({type:"text",content:r},function(){return h0("beforeDOMElementCreation",{content:r,params:n}),Vh({content:r,transform:$($({},m4),s),title:u,extra:{attributes:V,styles:S,classes:["".concat(c2.cssPrefix,"-layers-text")].concat(fe(h))}})})}}},provides:function(c){c.generateLayersText=function(r,n){var i=n.title,s=n.transform,l=n.extra,u=null,p=null;if(Dh){var h=parseInt(getComputedStyle(r).fontSize,10),z=r.getBoundingClientRect();u=z.width/h,p=z.height/h}return c2.autoA11y&&!i&&(l.attributes["aria-hidden"]="true"),Promise.resolve([r,Vh({content:r.innerHTML,width:u,height:p,transform:s,title:i,extra:l,watchable:!0})])}}},eN=new RegExp('"',"ug"),Sh=[1105920,1112319];function cN(e){var c=e.replace(eN,""),r=hS(c,0),n=r>=Sh[0]&&r<=Sh[1],i=c.length===2?c[0]===c[1]:!1;return{value:ei(i?c[0]:c),isSecondary:n||i}}function Nh(e,c){var r="".concat(Gw).concat(c.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var s=S8(e.children),l=s.filter(function(B){return B.getAttribute(Z9)===c})[0],u=x6.getComputedStyle(e,c),p=u.getPropertyValue("font-family").match(Kw),h=u.getPropertyValue("font-weight"),z=u.getPropertyValue("content");if(l&&!p)return e.removeChild(l),n();if(p&&z!=="none"&&z!==""){var V=u.getPropertyValue("content"),L=~["Sharp"].indexOf(p[2])?c1:F2,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(p[2])?ie[L][p[2].toLowerCase()]:Qw[L][h],P=cN(V),T=P.value,W=P.isSecondary,g=p[0].startsWith("FontAwesome"),H=vi(S,T),C=H;if(g){var b=MS(T);b.iconName&&b.prefix&&(H=b.iconName,S=b.prefix)}if(H&&!W&&(!l||l.getAttribute(fi)!==S||l.getAttribute(ui)!==C)){e.setAttribute(r,C),l&&e.removeChild(l);var D=qS(),U=D.extra;U.attributes[Z9]=c,ti(H,S).then(function(B){var Z=Hi($($({},D),{},{icons:{main:B,mask:zi()},prefix:S,iconName:C,extra:U,watchable:!0})),A=B2.createElementNS("http://www.w3.org/2000/svg","svg");c==="::before"?e.insertBefore(A,e.firstChild):e.appendChild(A),A.outerHTML=Z.map(function(N){return pe(N)}).join(` +`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function rN(e){return Promise.all([Nh(e,"::before"),Nh(e,"::after")])}function aN(e){return e.parentNode!==document.head&&!~jw.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Z9)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function bh(e){if(B4)return new Promise(function(c,r){var n=S8(e.querySelectorAll("*")).filter(aN).map(rN),i=gi.begin("searchPseudoElements");nd(),Promise.all(n).then(function(){i(),si(),c()}).catch(function(){i(),si(),r()})})}var nN={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=bh,r}}},provides:function(c){c.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?B2:n;c2.searchPseudoElements&&bh(i)}}},kh=!1,tN={mixout:function(){return{dom:{unwatch:function(){nd(),kh=!0}}}},hooks:function(){return{bootstrap:function(){xh(ri("mutationObserverCallbacks",{}))},noAuto:function(){IS()},watch:function(r){var n=r.observeMutationsRoot;kh?si():xh(ri("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},Ah=function(c){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return c.toLowerCase().split(" ").reduce(function(n,i){var s=i.toLowerCase().split("-"),l=s[0],u=s.slice(1).join("-");if(l&&u==="h")return n.flipX=!0,n;if(l&&u==="v")return n.flipY=!0,n;if(u=parseFloat(u),isNaN(u))return n;switch(l){case"grow":n.size=n.size+u;break;case"shrink":n.size=n.size-u;break;case"left":n.x=n.x-u;break;case"right":n.x=n.x+u;break;case"up":n.y=n.y-u;break;case"down":n.y=n.y+u;break;case"rotate":n.rotate=n.rotate+u;break}return n},r)},iN={mixout:function(){return{parse:{transform:function(r){return Ah(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=Ah(i)),r}}},provides:function(c){c.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,s=r.containerWidth,l=r.iconWidth,u={transform:"translate(".concat(s/2," 256)")},p="translate(".concat(i.x*32,", ").concat(i.y*32,") "),h="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),z="rotate(".concat(i.rotate," 0 0)"),V={transform:"".concat(p," ").concat(h," ").concat(z)},L={transform:"translate(".concat(l/2*-1," -256)")},S={outer:u,inner:V,path:L};return{tag:"g",attributes:$({},S.outer),children:[{tag:"g",attributes:$({},S.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:$($({},n.icon.attributes),S.path)}]}]}}}},Q9={x:0,y:0,width:"100%",height:"100%"};function Eh(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||c)&&(e.attributes.fill="black"),e}function sN(e){return e.tag==="g"?e.children:[e]}var oN={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),s=i?fr(i.split(" ").map(function(l){return l.trim()})):zi();return s.prefix||(s.prefix=y6()),r.mask=s,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(c){c.generateAbstractMask=function(r){var n=r.children,i=r.attributes,s=r.main,l=r.mask,u=r.maskId,p=r.transform,h=s.width,z=s.icon,V=l.width,L=l.icon,S=iS({transform:p,containerWidth:V,iconWidth:h}),P={tag:"rect",attributes:$($({},Q9),{},{fill:"white"})},T=z.children?{children:z.children.map(Eh)}:{},W={tag:"g",attributes:$({},S.inner),children:[Eh($({tag:z.tag,attributes:$($({},z.attributes),S.path)},T))]},g={tag:"g",attributes:$({},S.outer),children:[W]},H="mask-".concat(u||le()),C="clip-".concat(u||le()),b={tag:"mask",attributes:$($({},Q9),{},{id:H,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[P,g]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:sN(L)},b]};return n.push(D,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(H,")")},Q9)}),{children:n,attributes:i}}}},lN={provides:function(c){var r=!1;x6.matchMedia&&(r=x6.matchMedia("(prefers-reduced-motion: reduce)").matches),c.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:$($({},i),{},{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 l=$($({},s),{},{attributeName:"opacity"}),u={tag:"circle",attributes:$($({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||u.children.push({tag:"animate",attributes:$($({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},l),{},{values:"1;0;1;1;0;1;"})}),n.push(u),n.push({tag:"path",attributes:$($({},i),{},{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:$($({},l),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:$($({},i),{},{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:$($({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},fN={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return r.symbol=s,r}}}},uN=[lS,QS,$S,JS,ZS,nN,tN,iN,oN,lN,fN];xS(uN,{mixoutsTo:g3});var Ck=g3.noAuto,Lk=g3.config,xk=g3.library,yk=g3.dom,pr=g3.parse,wk=g3.findIconDefinition,Sk=g3.toHtml,id=g3.icon,Nk=g3.layer,bk=g3.text,kk=g3.counter;var d2=N2(hd()),xi=N2(f1());function dd(e,c){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function S6(e){for(var c=1;c=0)&&(r[i]=e[i]);return r}function dN(e,c){if(e==null)return{};var r=hN(e,c),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ci(e){return vN(e)||zN(e)||HN(e)||gN()}function vN(e){if(Array.isArray(e))return Li(e)}function zN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HN(e,c){if(e){if(typeof e=="string")return Li(e,c);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 Li(e,c)}}function Li(e,c){(c==null||c>e.length)&&(c=e.length);for(var r=0,n=new Array(c);r2&&arguments[2]!==void 0?arguments[2]:{};if(typeof c=="string")return c;var n=(c.children||[]).map(function(p){return Hd(e,p)}),i=Object.keys(c.attributes||{}).reduce(function(p,h){var z=c.attributes[h];switch(h){case"class":p.attrs.className=z,delete c.attributes.class;break;case"style":p.attrs.style=xN(z);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?p.attrs[h.toLowerCase()]=z:p.attrs[zd(h)]=z}return p},{attrs:{}}),s=r.style,l=s===void 0?{}:s,u=dN(r,CN);return i.attrs.style=S6(S6({},i.attrs.style),l),e.apply(void 0,[c.tag,S6(S6({},i.attrs),u)].concat(Ci(n)))}var gd=!1;try{gd=!0}catch{}function yN(){if(!gd&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function vd(e){if(e&&mr(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(pr.icon)return pr.icon(e);if(e===null)return null;if(e&&mr(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 Mi(e,c){return Array.isArray(c)&&c.length>0||!Array.isArray(c)&&c?N8({},e,c):{}}var y1=xi.default.forwardRef(function(e,c){var r=e.icon,n=e.mask,i=e.symbol,s=e.className,l=e.title,u=e.titleId,p=e.maskId,h=vd(r),z=Mi("classes",[].concat(Ci(VN(e)),Ci(s.split(" ")))),V=Mi("transform",typeof e.transform=="string"?pr.transform(e.transform):e.transform),L=Mi("mask",vd(n)),S=id(h,S6(S6(S6(S6({},z),V),L),{},{symbol:i,title:l,titleId:u,maskId:p}));if(!S)return yN("Could not find icon",h),null;var P=S.abstract,T={ref:c};return Object.keys(e).forEach(function(W){y1.defaultProps.hasOwnProperty(W)||(T[W]=e[W])}),wN(P[0],T)});y1.displayName="FontAwesomeIcon";y1.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};y1.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 wN=Hd.bind(null,xi.default.createElement);var V3=N2(f1());var hr="#a8a8a8",N6=s2.div` display: flex; flex-direction: row; -`,Mk=u2.div` +`,Bk=s2.div` display: flex; flex-direction: column; -`,W1=u2.button` +`,X1=s2.button` border: 1px solid white; font-size: 10pt; @@ -837,72 +879,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho cursor: not-allowed; } transition: background-color 250ms; -`,Ck=u2.div` +`,Ik=s2.div` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border: 2px solid black; border-radius: 12px; -`,Z0=u2.div` +`,b8=s2.div` border: 2px solid black; border-radius: 12px; margin: 5px; padding: 5px; width: auto; -`,J6=u2.input` +`,d0=s2.input` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border: 2px solid black; border-radius: 12px; padding: 2px; -`;var gr=N2(f1());var O3=N2(f1());var n9=N2(f1()),qu=N2(f1()),e8=class extends n9.default.Component{ref=(0,qu.createRef)();componentDidMount(){this.update()}componentDidUpdate(c){(c.canvas!==this.props.canvas||c.width!==this.props.width||c.height!==this.props.height)&&this.update()}update(){let c=this.ref.current,r=c.width=this.props.width||this.props.canvas.width,n=c.height=this.props.height||this.props.canvas.height;c.style.width=`${r}px`,c.style.height=`${n}px`,c.getContext("2d").drawImage(this.props.canvas,0,0,r,n)}render(){return n9.default.createElement("canvas",{ref:this.ref})}};var A2=N2(f1());var G2=N2(f1());var hv=N2(gi()),gN=u2.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; -`,Vi=u2.p` - white-space: pre-warp; -`,Mi=u2.div` - display: flex; -`,VN=u2.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; -`,k8=u2.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; -`,x1=class e{static _ref;static active;static root;static alert(c,r){return new Promise(n=>{e.clear();let i=()=>{n(),this.active=void 0,this.clear()};this.active=i,e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(Vi,null,c),G2.default.createElement(k8,{onClick:()=>i()},"OK")))})}static async confirm(c,r){return new Promise(n=>{e.clear();let i=s=>{n(s),this.active=void 0,this.clear()};this.active=()=>i(!1),e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,r||`${location.host} says`),G2.default.createElement(Vi,null,c),G2.default.createElement(Mi,null,G2.default.createElement(k8,{onClick:()=>i(!0)},"OK"),G2.default.createElement(k8,{onClick:()=>i(!1)},"Cancel"))))})}static async prompt(c,r,n){return new Promise(i=>{e.clear();let s=u=>{i(u),this.active=void 0,this.clear()};this.active=()=>s("");let l=(0,G2.createRef)();e.renderContent(G2.default.createElement("div",null,G2.default.createElement("h5",null,n||`${location.host} says`),G2.default.createElement(Vi,null,c),G2.default.createElement(VN,{ref:l,type:"text"}),G2.default.createElement(Mi,null,G2.default.createElement(k8,{onClick:()=>s(l.current&&l.current.value)},"OK"),G2.default.createElement(k8,{onClick:()=>s(null)},"Cancel")))),l.current&&(l.current.focus(),l.current.value=r||"",l.current.addEventListener("keyup",u=>{u.key.toLowerCase()==="enter"&&l.current&&s(l.current.value)}))})}static custom(c,r){return new Promise(n=>{e.clear();let i=()=>{this.active=void 0,n(),this.clear()};this.active=()=>i(),e.renderContent(G2.default.createElement("div",null,c,G2.default.createElement(Mi,null,r?r.map((s,l)=>G2.default.createElement(k8,{key:l,onClick:async u=>{let p=s.click(u),h;p instanceof Promise?h=await p:h=p,h||(this.active=void 0,this.clear(),n())}},s.content)):null)))})}static close(){this.clear()}static clear(){this.root&&(this.root.unmount(),this.root=void 0);let c=e.ref.style;c.pointerEvents="none",c.touchAction="none",c.backgroundColor="rgba(0, 0, 0, 0)",this.active&&this.active(),this.active=void 0}static renderContent(c){let r=e.createBase(c);this.root=(0,hv.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(c){return G2.default.createElement(gN,null,c)}static get ref(){if(e._ref)return e._ref;let c=document.createElement("div");document.body.appendChild(c),e._ref=c;let r=c.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",c}};var zv=N2(dv());var vr=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(c){this.input.multiple=c}setAcceptType(c){c?this.input.accept=c.map(r=>`.${r}`).join(", "):this.input.accept=""}show(){return new Promise((c,r)=>{let n=["mousemove","touchend"],i=()=>{s(),r(new Error("Not selected"))},s=()=>{n.forEach(u=>window.removeEventListener(u,i))},l=setTimeout(()=>{n.forEach(u=>window.addEventListener(u,()=>i))},100);this.input.addEventListener("change",()=>{clearTimeout(l),s(),this.input.files?c(this.input.files):r(new Error("Missing file"))}),this.input.click()})}};var dr=["muraljson","json"];var MN=25,Hv=u2.div` +`;var Vr=N2(f1());var T1=N2(f1());var yi=N2(f1()),Vd=N2(f1()),k8=class extends yi.default.Component{ref=(0,Vd.createRef)();componentDidMount(){this.update()}componentDidUpdate(c){(c.canvas!==this.props.canvas||c.width!==this.props.width||c.height!==this.props.height)&&this.update()}update(){let c=this.ref.current,r=c.width=this.props.width||this.props.canvas.width,n=c.height=this.props.height||this.props.canvas.height;c.style.width=`${r}px`,c.style.height=`${n}px`,c.getContext("2d").drawImage(this.props.canvas,0,0,r,n)}render(){return yi.default.createElement("canvas",{ref:this.ref})}};var A2=N2(f1());var Ld=N2(Cd());var vr=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(c){this.input.multiple=c}setAcceptType(c){c?this.input.accept=c.map(r=>`.${r}`).join(", "):this.input.accept=""}show(){return new Promise((c,r)=>{let n=["mousemove","touchend"],i=()=>{s(),r(new Error("Not selected"))},s=()=>{n.forEach(u=>window.removeEventListener(u,i))},l=setTimeout(()=>{n.forEach(u=>window.addEventListener(u,()=>i))},100);this.input.addEventListener("change",()=>{clearTimeout(l),s(),this.input.files?c(this.input.files):r(new Error("Missing file"))}),this.input.click()})}};var zr=["muraljson","json"];var SN=25,xd=s2.div` width: 100%; //max-width: fit-content; display: flex; flex-direction: row; flex-wrap: wrap; -`,CN=u2.div` +`,NN=s2.div` display: flex; flex-direction: column; flex-wrap: wrap; @@ -912,18 +912,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 2px; text-align: center; align-items: center; -`,gv=["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"],LN=["Flat",...gv];async function Vv(e,c,r){let n=await EN();if(n){if(n.type==="mural")return n.data;{let i=n.data,s=await yN(i,r),l=await new Promise((u,p)=>{e.setOverlayModify({pixels:s,muralObj:{name:i.alt,x:Math.floor(c.ux-E0(s)/2),y:Math.floor(c.uy-A0(s)/2)},cb:(h,z,M,L)=>{L?u({name:h,pixels:s,x:z,y:M}):p(new Error("Canceled by user"))}})});return Ja(l),l}}}function xN(e){return new Promise(c=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither results"),A2.default.createElement("div",null,"Pick a result that fits best in your situation"),A2.default.createElement(Hv,null,e.map((r,n)=>A2.default.createElement("div",{key:n},A2.default.createElement(CN,{style:{flexDirection:"column"},onClick:()=>{x1.close(),c(r)}},Cv(r.type),A2.default.createElement(Z0,null,A2.default.createElement(e8,{canvas:r.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>c(null))})}async function yN(e,c){let r=await wN(e),n=await SN(e,r,c),i;if(Array.isArray(n)?i=await xN(n):i=n,!i)throw new Error("User did not pick anything");let s=n7(i.canvas);return xv(s,c),Za(s,c.palette)}async function wN(e){let c=e.width,r=e.height,n="show-all",i=!1,s=!1;if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.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:()=>{i=!1,l()},content:"Resize"},{click:()=>{i=!0,l()},content:"Import as it is"},{click:()=>{s=!0,l()},content:"Cancel"}]).then(()=>{u(new Error("User input has been interrupted"))})}),s)throw new Error("Operation canceled by user");if(i||await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.default.createElement("div",null,A2.default.createElement("strong",null,"Original size: ",e.width,"x",e.height)),A2.default.createElement(J6,{type:"number",min:1,onChange:p=>{R0(p,h=>{c=h})}}),"x",A2.default.createElement(J6,{type:"number",min:1,onChange:p=>{R0(p,h=>{r=h})}})),[{content:"Confirm",click:()=>{l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither Settings"),A2.default.createElement("div",null,"Pickup dither algorithm"),A2.default.createElement(Hv,null,LN.map((p,h)=>A2.default.createElement(W1,{key:h,onClick:()=>{n=p,x1.close(),l()}},Cv(p))))),[{content:"Show all",click:()=>{n="show-all",l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");return{height:r,width:c,noShrinking:i,quantizerSetting:n}}async function SN(e,c,r){c.noShrinking||(e=await ol(e,c.width,c.height));let n=ll(e);return c.quantizerSetting==="show-all"?bN(n,r):zr(n,c.quantizerSetting,r)}function Mv(e,c){let r=new zv.default(NN(c));return r.sample(e),r}function NN(e){return{palette:e.palette.map(c=>[c.r,c.g,c.b]),minHueCols:0,dithSerp:!1}}function bN(e,c){let r=[zr(e,"Flat",c)],n=Mv(e,c);for(let i of gv){let s=Lv(e,n,i),l=zr(s,"Flat",c);l.type=i,r.push(l)}return r}function zr(e,c,r){if(c==="Flat"){let n=n7(e);xv(n,r);let i=AN(n),s=Za(n,r.palette);return{type:"Flat",canvas:i,indices:s}}else{let n=Mv(e,r),i=Lv(e,n,c),s=zr(i,"Flat",r);return s.type=c,s}}function Cv(e){let c=e.split(""),r="";for(let n=0;nMN&&(s.data[u+0]=l[u+0]??0,s.data[u+1]=l[u+1]??0,s.data[u+2]=l[u+2]??0,s.data[u+3]=255);return i.putImageData(s,0,0),n}function xv(e,c){for(let r=0;r{e.setOverlayModify({pixels:s,muralObj:{name:i.alt,x:Math.floor(c.ux-M8(s)/2),y:Math.floor(c.uy-V8(s)/2)},cb:(h,z,V,L)=>{L?u({name:h,pixels:s,x:z,y:V}):p(new Error("Canceled by user"))}})});return G9(l),l}}}function kN(e){return new Promise(c=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither results"),A2.default.createElement("div",null,"Pick a result that fits best in your situation"),A2.default.createElement(xd,null,e.map((r,n)=>A2.default.createElement("div",{key:n},A2.default.createElement(NN,{style:{flexDirection:"column"},onClick:()=>{x1.close(),c(r)}},Nd(r.type),A2.default.createElement(b8,null,A2.default.createElement(k8,{canvas:r.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>c(null))})}async function AN(e,c){let r=await EN(e),n=await PN(e,r,c),i;if(Array.isArray(n)?i=await kN(n):i=n,!i)throw new Error("User did not pick anything");let s=Gc(i.canvas);return kd(s,c),q9(s,c.palette)}async function EN(e){let c=e.width,r=e.height,n="show-all",i=!1,s=!1;if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.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:()=>{i=!1,l()},content:"Resize"},{click:()=>{i=!0,l()},content:"Import as it is"},{click:()=>{s=!0,l()},content:"Cancel"}]).then(()=>{u(new Error("User input has been interrupted"))})}),s)throw new Error("Operation canceled by user");if(i||await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Image import"),A2.default.createElement("div",null,A2.default.createElement("small",null,e.alt)),A2.default.createElement("div",null,A2.default.createElement("strong",null,"Original size: ",e.width,"x",e.height)),A2.default.createElement(d0,{type:"number",min:1,onChange:p=>{C8(p,h=>{c=h})}}),"x",A2.default.createElement(d0,{type:"number",min:1,onChange:p=>{C8(p,h=>{r=h})}})),[{content:"Confirm",click:()=>{l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");if(await new Promise((l,u)=>{x1.custom(A2.default.createElement("div",null,A2.default.createElement("h4",null,"Dither Settings"),A2.default.createElement("div",null,"Pickup dither algorithm"),A2.default.createElement(xd,null,bN.map((p,h)=>A2.default.createElement(X1,{key:h,onClick:()=>{n=p,x1.close(),l()}},Nd(p))))),[{content:"Show all",click:()=>{n="show-all",l()}},{content:"Cancel",click:()=>{s=!0,l()}}]).then(()=>u(new Error("User input has been interrupted")))}),s)throw new Error("Operation canceled by user");return{height:r,width:c,noShrinking:i,quantizerSetting:n}}async function PN(e,c,r){c.noShrinking||(e=await Gm(e,c.width,c.height));let n=jm(e);return c.quantizerSetting==="show-all"?TN(n,r):Hr(n,c.quantizerSetting,r)}function Sd(e,c){let r=new Ld.default(_N(c));return r.sample(e),r}function _N(e){return{palette:e.palette.map(c=>[c.r,c.g,c.b]),minHueCols:0,dithSerp:!1}}function TN(e,c){let r=[Hr(e,"Flat",c)],n=Sd(e,c);for(let i of yd){let s=bd(e,n,i),l=Hr(s,"Flat",c);l.type=i,r.push(l)}return r}function Hr(e,c,r){if(c==="Flat"){let n=Gc(e);kd(n,r);let i=DN(n),s=q9(n,r.palette);return{type:"Flat",canvas:i,indices:s}}else{let n=Sd(e,r),i=bd(e,n,c),s=Hr(i,"Flat",r);return s.type=c,s}}function Nd(e){let c=e.split(""),r="";for(let n=0;nSN&&(s.data[u+0]=l[u+0]??0,s.data[u+1]=l[u+1]??0,s.data[u+2]=l[u+2]??0,s.data[u+3]=255);return i.putImageData(s,0,0),n}function kd(e,c){for(let r=0;r{let c=this.props.mural.ref.width,r=this.props.mural.ref.height,n=c,i=r;c>r?c>this.MAX_SIZE&&(i=this.MAX_SIZE*(r/c),n=this.MAX_SIZE):r>this.MAX_SIZE&&(n=this.MAX_SIZE*(c/r),i=this.MAX_SIZE),this.setState({height:i,width:n})};renderInfoLine(c,r){return O3.default.createElement(TN,null,O3.default.createElement(_N,null,c,":"),O3.default.createElement("span",null," ",r))}btn(c,r,n,i){return O3.default.createElement(W1,{style:{borderColor:i?Y7:""},onClick:()=>n()},c," ",O3.default.createElement(N1,{icon:r})," ")}get s(){return this.props.store}onLoad=c=>{let r=c.target;"tagName"in r&&(["button","svg","path"].includes(r.tagName.toLowerCase())||this.s.select(this.props.selected?void 0:this.props.mural))};onModify=async()=>{let c=this.props.mural;this.props.store.setOverlayModify({pixels:this.props.mural.pixels,cb:(r,n,i,s)=>{s&&(c.name=r,c.x=n,c.y=i,this.props.store.updateMural(c))},muralObj:{name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y}})};onExport=()=>{let c={name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y,pixels:this.props.mural.pixels},r=new Blob([JSON.stringify(c)],{type:"application/json;charset=utf-8"});(0,yv.default)(r,`${c.name}.${dr[0]}`)};onDelete=async()=>{await x1.confirm(`Are you sure you want to remove "${this.props.mural.name}"`)&&this.s.remove(this.props.mural)};onEnter=()=>{this.props.store.addPhantomOverlay(this.props.mural)};onLeave=()=>{this.props.store.removePhantomOverlay()};onGoto=()=>{let c=_0(this.props.mural),r=P0(this.props.mural),n=this.props.mural.x+Math.round(c/2),i=this.props.mural.y+Math.round(r/2),s=`${origin}/@${n},${i},${this.props.cords.uScale}`;location.href=s};onPreview=()=>{this.props.store.hasOverlay(this.props.mural)?this.props.store.removeOverlay(this.props.mural):this.props.store.addOverlay(this.props.mural)};render(){return O3.default.createElement(Z0,{onClick:this.onLoad,style:{border:this.props.selected?"3px solid black":"3px dotted black",cursor:"pointer"},onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},O3.default.createElement($6,null,O3.default.createElement(e8,{canvas:this.props.mural.ref,height:this.state.height,width:this.state.width}),O3.default.createElement(PN,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.mural.name),this.renderInfoLine("PixelCount",t7(this.props.mural.pixelCount)),this.renderInfoLine("x",this.props.mural.x.toString()),this.renderInfoLine("y",this.props.mural.y.toString()),this.renderInfoLine("size",`${_0(this.props.mural)}x${P0(this.props.mural)}`))),O3.default.createElement($6,null,this.btn("Preview",yl,this.onPreview,this.props.store.hasOverlay(this.props.mural)),this.btn("Modify",Ll,this.onModify),this.btn("Export",El,this.onExport),this.btn("Delete",Nl,this.onDelete),this.btn("Goto",Sl,this.onGoto)))}};var ON=u2.div` +`,UN=s2.strong` + margin-right: 2px; +`,WN=s2.button` + border: 1px solid white; + font-size: 50pt; + 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; +`,gr=class extends T1.default.Component{MAX_SIZE=100;constructor(c){super(c),this.state={height:this.MAX_SIZE,width:this.MAX_SIZE,overlay:!1}}componentDidMount(){this.updateSize()}componentDidUpdate(c){this.props.mural.ref!==c.mural.ref&&(this.updateSize(),typeof this.state.progress=="function"&&(this.state.progress(),this.setState({progress:void 0})))}updateSize=()=>{let c=this.props.mural.ref.width,r=this.props.mural.ref.height,n=c,i=r;c>r?c>this.MAX_SIZE&&(i=this.MAX_SIZE*(r/c),n=this.MAX_SIZE):r>this.MAX_SIZE&&(n=this.MAX_SIZE*(c/r),i=this.MAX_SIZE),this.setState({height:i,width:n})};renderInfoLine(c,r){return T1.default.createElement(IN,null,T1.default.createElement(BN,null,c,":"),T1.default.createElement("span",null,r))}btn(c,r,n,i){return T1.default.createElement(X1,{style:{borderColor:i?hr:""},onClick:()=>n()},c," ",T1.default.createElement(y1,{icon:r})," ")}get s(){return this.props.store}onLoad=c=>{let r=c.target;"tagName"in r&&(["button","svg","path"].includes(r.tagName.toLowerCase())||this.s.select(this.props.selected?void 0:this.props.mural))};onModify=async()=>{let c=this.props.mural;this.props.store.setOverlayModify({pixels:this.props.mural.pixels,cb:(r,n,i,s)=>{s&&(c.name=r,c.x=n,c.y=i,this.props.store.updateMural(c))},muralObj:{name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y}})};onExport=()=>{let c={name:this.props.mural.name,x:this.props.mural.x,y:this.props.mural.y,pixels:this.props.mural.pixels},r=new Blob([JSON.stringify(c)],{type:"application/json;charset=utf-8"});(0,Ad.default)(r,`${c.name}.${zr[0]}`)};onDelete=async()=>{await x1.confirm(`Are you sure you want to remove "${this.props.mural.name}"`)&&this.s.remove(this.props.mural)};onEnter=()=>{this.props.store.addPhantomOverlay(this.props.mural)};onLeave=()=>{this.props.store.removePhantomOverlay()};onGoto=()=>{let c=f0(this.props.mural),r=l0(this.props.mural),n=this.props.mural.x+Math.round(c/2),i=this.props.mural.y+Math.round(r/2),s=`${origin}/@${n},${i},${this.props.cords.uScale}`;location.href=s};onPreview=()=>{this.props.store.hasOverlay(this.props.mural)?this.props.store.removeOverlay(this.props.mural):this.props.store.addOverlay(this.props.mural)};updateProgress=async()=>{let c=!1,r=()=>{c=!0};this.setState({progress:r});let n=await qm(this.props.mural,this.props.palette.palette);c||this.setState({progress:n})};renderProgress(){if(typeof this.state.progress=="function")return"Loading...";let c=T1.default.createElement(WN,{onClick:this.updateProgress},T1.default.createElement(y1,{icon:Km}));if(this.state.progress&&this.state.progress.total!==0){let{total:r,bad:n,good:i}=this.state.progress;return T1.default.createElement(N6,null,T1.default.createElement(UN,null,Math.floor(i/r*100),"%")," ",n>0?ce(n):"",c)}else return c}render(){return T1.default.createElement(b8,{onClick:this.onLoad,style:{border:this.props.selected?"3px solid black":"3px dotted black",cursor:"pointer"},onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},T1.default.createElement(N6,null,T1.default.createElement(k8,{canvas:this.props.mural.ref,height:this.state.height,width:this.state.width}),T1.default.createElement(FN,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.mural.name),this.renderInfoLine("Pixel count",ce(this.props.mural.pixelCount)),this.renderInfoLine("X",this.props.mural.x.toString()),this.renderInfoLine("Y",this.props.mural.y.toString()),this.renderInfoLine("Size",`${f0(this.props.mural)}x${l0(this.props.mural)}`),this.renderInfoLine("Progress",this.renderProgress()))),T1.default.createElement(N6,null,this.btn("Preview",Qm,this.onPreview,this.props.store.hasOverlay(this.props.mural)),this.btn("Modify",Xm,this.onModify),this.btn("Export",ah,this.onExport),this.btn("Delete",Zm,this.onDelete),this.btn("Goto",Jm,this.onGoto)))}};var qN=s2.div` overflow: auto; max-height: 250pt; min-width: 200pt; @@ -945,11 +976,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 12px; border: 2px solid transparent; } -`,Vr=class extends gr.default.Component{constructor(c){super(c),this.state={murals:[]}}componentDidMount(){this.props.store.on(7,this.update),this.update()}componentWillUnmount(){this.props.store.off(7,this.update)}update=()=>{this.setState({murals:this.props.store.murals,selected:this.props.store.selected})};render(){return gr.default.createElement(ON,null," ",this.state.murals.map((c,r)=>gr.default.createElement(Hr,{key:r,mural:c,cords:this.props.cords,store:this.props.store,selected:c===this.state.selected?.m})))}};var wv=N2(xi());var Sv=N2(f1());function DN(){return new Promise(e=>{let c=document.createElement("div"),r=document.createElement("div"),n=c.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(c),n.backgroundColor="rgba(0, 0, 0, 0.50)";let i=r.style;i.position="fixed",i.zIndex="100001",i.width="5px",i.height="5px",i.border="2px solid white";let s,l=(W,g,H,C)=>{s={x:W,y:g,xOff:H,yOff:C}},u=W=>{l(W.clientX,W.clientY,W.offsetX,W.offsetY)},p=W=>{let g=W.touches[W.touches.length-1],H=W.target,{x:C,y:b,width:O,height:U}=H.getBoundingClientRect(),B=(g.clientX-C)/O*H.offsetWidth,Z=(g.clientY-b)/U*H.offsetHeight;l(g.clientX,g.clientY,B,Z)},h=(W,g)=>{if(!s)return{x:W,y:g,width:0,height:0};let H=Math.min(W,s.x),C=Math.max(W,s.x),b=Math.min(g,s.y),O=Math.max(g,s.y),U=C-H,B=O-b;return{x:Math.floor(H),y:Math.floor(b),width:Math.ceil(U),height:Math.ceil(B)}},z=(W,g)=>{if(!s)return;document.body.contains(r)||document.body.appendChild(r);let H=h(W,g),C=r.style;C.width=`${H.width}px`,C.height=`${H.height}px`,C.left=`${H.x}px`,C.top=`${H.y}px`},M=W=>{if(!s||!(W instanceof MouseEvent))return;let{clientX:g,clientY:H}=W;z(g,H)},L=W=>{if(!s||!(W instanceof TouchEvent)||!W.isTrusted)return;let g=W.touches[0];if(i.borderWidth="6px",g){let{clientX:H,clientY:C}=g;z(H,C)}},S=(W,g)=>{if(s){let H=h(W,g);s=void 0,window.removeEventListener("mousedown",R),window.removeEventListener("touchend",P),window.removeEventListener("mousedown",u),window.removeEventListener("touchstart",p),window.removeEventListener("mouseup",M),window.removeEventListener("touchmove",L),document.body.removeChild(c),document.body.contains(r)&&document.body.removeChild(r),e(H)}},P=W=>{let g=W.touches[0]||W.changedTouches[0];if(g){let{clientX:H,clientY:C}=g;S(H,C)}},R=W=>{S(W.clientX,W.clientY)};window.addEventListener("mouseup",R),window.addEventListener("touchend",P),window.addEventListener("mousedown",u),window.addEventListener("touchstart",p),window.addEventListener("mousemove",M),window.addEventListener("touchmove",L)})}async function Nv(e){let c=await DN(),r=e.uScale,n=e.screenToGrid(c.x,c.y),i=e.screenToGrid(c.x+c.width,c.height+c.y);if(!n||!i)return;let s=T0();s.width=c.width/Math.pow(2,r),s.height=c.height/Math.pow(2,r);let l=s.getContext("2d"),u=Math.floor(n.x%R2),p=Math.floor(n.y%R2),h=[];for(let z=0;z{fl(n.x+z,n.y+M).then(R=>{let W=n.x>0?-u:-(R2+u)%R2,g=n.y>0?-p:-(R2+p)%R2;l.drawImage(R,z+W,M+g),S()}).catch(P)});h.push(L)}try{await Promise.all(h);let z=s.toDataURL();x1.custom(Sv.default.createElement("img",{style:{border:"1px solid black"},src:z}),[{content:"Download",click:()=>{s.toBlob(M=>{let L=Math.floor(n.x+c.width/2),S=Math.floor(n.x+c.height/2);M&&(0,wv.default)(M,`${L}:${S}:${new Date().toLocaleDateString()}.png`)})}},{content:"Cancel",click:()=>{}}])}catch{x1.alert("Something went wrong while trying to capture screenshot")}}var FN=u2.div` +`,Mr=class extends Vr.default.Component{constructor(c){super(c),this.state={murals:[]}}componentDidMount(){this.props.store.on(7,this.update),this.update()}componentWillUnmount(){this.props.store.off(7,this.update)}update=()=>{this.setState({murals:this.props.store.murals,selected:this.props.store.selected})};render(){return Vr.default.createElement(qN,null," ",this.state.murals.map((c,r)=>Vr.default.createElement(gr,{key:r,mural:c,cords:this.props.cords,palette:this.props.palette,store:this.props.store,selected:c===this.state.selected?.m})))}};var jN=s2.div` -`,BN=u2.div` +`,XN=s2.div` margin: 2px 4px; -`,IN=u2.input` +`,YN=s2.input` &[type="range"] { -webkit-appearance: none; appearance: none; @@ -996,7 +1027,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 12px; } -`,Mr=class extends g3.default.Component{constructor(c){super(c),this.state={takingCanvasShot:!1,canvasShotAvailable:!0}}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 c=await Vv(this.props.store,this.props.cords,this.props.palette);c&&this.props.store.add(c)}catch(c){console.error(c),x1.alert(c.name)}};inputElement=c=>{let r=parseInt(c.target.value);this.props.onOpacityChange(r)};screenshot=async()=>{this.props.cords.uScale<0,this.setState({takingCanvasShot:!0}),await Nv(this.props.cords),this.setState({takingCanvasShot:!1})};render(){return g3.default.createElement(FN,null,g3.default.createElement($6,null,g3.default.createElement(W1,{onClick:this.screenshot,disabled:this.state.takingCanvasShot||!this.state.canvasShotAvailable,title:"screenshot"},g3.default.createElement(N1,{icon:bl})),g3.default.createElement(W1,{onClick:this.import,title:"Import"},g3.default.createElement(N1,{icon:Pl})),g3.default.createElement(IN,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),g3.default.createElement(BN,null,this.props.opacity,"%"),g3.default.createElement(W1,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},g3.default.createElement(N1,{icon:this.props.collapsed?Al:xl}))),this.props.collapsed?null:g3.default.createElement(Vr,{store:this.props.store,cords:this.props.cords}))}};var S6=N2(f1());var pe=N2(Z8()),UN=u2.div` +`,Cr=class extends V3.default.Component{constructor(c){super(c),this.state={takingCanvasShot:!1,canvasShotAvailable:!0}}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 c=await wd(this.props.store,this.props.cords,this.props.palette);c&&this.props.store.add(c)}catch(c){console.error(c),x1.alert(c.name)}};inputElement=c=>{let r=parseInt(c.target.value);this.props.onOpacityChange(r)};screenshot=async()=>{this.props.cords.uScale<0,this.setState({takingCanvasShot:!0}),await Dm(this.props.cords),this.setState({takingCanvasShot:!1})};render(){return V3.default.createElement(jN,null,V3.default.createElement(N6,null,V3.default.createElement(X1,{onClick:this.screenshot,disabled:this.state.takingCanvasShot||!this.state.canvasShotAvailable,title:"screenshot"},V3.default.createElement(y1,{icon:eh})),V3.default.createElement(X1,{onClick:this.import,title:"Import"},V3.default.createElement(y1,{icon:nh})),V3.default.createElement(YN,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),V3.default.createElement(XN,null,this.props.opacity,"%"),V3.default.createElement(X1,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},V3.default.createElement(y1,{icon:this.props.collapsed?rh:Ym}))),this.props.collapsed?null:V3.default.createElement(Mr,{store:this.props.store,palette:this.props.palette,cords:this.props.cords}))}};var b6=N2(f1());var me=N2(Z8()),KN=s2.div` position: fixed; padding-top: 20px; padding: 5px; @@ -1005,16 +1036,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: rgb(10, 10, 10); border-radius: 12px; border: 2px solid black; -`,WN=u2.div` +`,QN=s2.div` border: 1px black dotted; cursor: grab; user-select: none; border-radius: 12px; padding: 4px; -`,h0=class extends S6.default.Component{ref=(0,S6.createRef)();dragRef=(0,S6.createRef)();moving;destroyed=!1;constructor(c){super(c),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(c=>{!this.destroyed&&c?(this.setState({x:c.x,y:c.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=c=>{if(this.moving&&!(!(c instanceof TouchEvent)||!c.isTrusted))for(let r=0;r{this.moving={x:c,y:r,xOff:n,yOff:i}};onMouseMove=c=>{if(!this.moving||!(c instanceof MouseEvent)||c.ctrlKey||c.altKey||c.metaKey)return;let{clientX:r,clientY:n}=c;this.handleMoveLogic(r,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let c=this.ref.current?.getBoundingClientRect();if(c){let r=this.state.x,n=this.state.y;c.left<0&&(r=0),c.right>window.innerWidth&&(r=window.innerWidth-c.width),c.top<0&&(n=0),c.bottom>window.innerHeight&&(n=window.innerHeight-c.height),(this.state.x!==r||this.state.y!==n)&&this.setState({x:r,y:n})}};savePoint=(0,pe.debounce)(c=>{this.props.storage.setItem(this.storageKey,c)},100);handleMoveLogic(c,r){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let i=c-this.moving.xOff,s=r-this.moving.yOff,l=(0,pe.clamp)(i,0,window.innerWidth-n.width),u=(0,pe.clamp)(s,0,window.innerHeight-n.height),p={x:l,y:u};this.savePoint(p),this.setState(p)}}onMouseDown=c=>{this.setMoving(c.clientX,c.clientY,c.nativeEvent.offsetX,c.nativeEvent.offsetY),this.setState({moving:!0})};onTouchStart=c=>{let r=c.nativeEvent.touches[c.nativeEvent.touches.length-1],n=c.target,{x:i,y:s,width:l,height:u}=n.getBoundingClientRect(),p=(r.clientX-i)/l*n.offsetWidth,h=(r.clientY-s)/u*n.offsetHeight;this.setMoving(r.clientX,r.clientY,p,h),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return S6.default.createElement(UN,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},S6.default.createElement(WN,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",S6.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var T1=N2(f1());var Av=N2(Z8()),GN=u2.div` +`,v0=class extends b6.default.Component{ref=(0,b6.createRef)();dragRef=(0,b6.createRef)();moving;destroyed=!1;constructor(c){super(c),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(c=>{!this.destroyed&&c?(this.setState({x:c.x,y:c.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=c=>{if(this.moving&&!(!(c instanceof TouchEvent)||!c.isTrusted))for(let r=0;r{this.moving={x:c,y:r,xOff:n,yOff:i}};onMouseMove=c=>{if(!this.moving||!(c instanceof MouseEvent)||c.ctrlKey||c.altKey||c.metaKey)return;let{clientX:r,clientY:n}=c;this.handleMoveLogic(r,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let c=this.ref.current?.getBoundingClientRect();if(c){let r=this.state.x,n=this.state.y;c.left<0&&(r=0),c.right>window.innerWidth&&(r=window.innerWidth-c.width),c.top<0&&(n=0),c.bottom>window.innerHeight&&(n=window.innerHeight-c.height),(this.state.x!==r||this.state.y!==n)&&this.setState({x:r,y:n})}};savePoint=(0,me.debounce)(c=>{this.props.storage.setItem(this.storageKey,c)},100);handleMoveLogic(c,r){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let i=c-this.moving.xOff,s=r-this.moving.yOff,l=(0,me.clamp)(i,0,window.innerWidth-n.width),u=(0,me.clamp)(s,0,window.innerHeight-n.height),p={x:l,y:u};this.savePoint(p),this.setState(p)}}onMouseDown=c=>{this.setMoving(c.clientX,c.clientY,c.nativeEvent.offsetX,c.nativeEvent.offsetY),this.setState({moving:!0})};onTouchStart=c=>{let r=c.nativeEvent.touches[c.nativeEvent.touches.length-1],n=c.target,{x:i,y:s,width:l,height:u}=n.getBoundingClientRect(),p=(r.clientX-i)/l*n.offsetWidth,h=(r.clientY-s)/u*n.offsetHeight;this.setMoving(r.clientX,r.clientY,p,h),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return b6.default.createElement(KN,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},b6.default.createElement(QN,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",b6.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var R1=N2(f1());var _d=N2(Z8()),$N=s2.div` display: flex; flex-direction: row; -`,kv=u2.div` +`,Pd=s2.div` width: 25px; height: 25px; margin: 2px; @@ -1022,24 +1053,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 12px; text-align: center; font-weight: bolder; -`,qN=u2.span` +`,JN=s2.span` width: 25px; text-align: center; margin: auto; -`,jN=u2.canvas` +`,ZN=s2.canvas` border-radius: 12px; border: 2px solid black; -`,Cr=class extends T1.default.Component{ref=T1.default.createRef();cache=new Map;transparentGrid=["#c5c5c540","#8d8d8d40"];highlighColor="#00000040";lastColor=-1;storageKey="_minimap_settings";destroyed=!1;constructor(c){super(c),this.state={size:16,color:-1,colorAssistant:!1}}componentDidUpdate(c,r){c.selected.m.ref!==this.props.selected.m.ref?(this.cache.clear(),this.draw()):r.size!==this.state.size&&this.draw()}click(c){c>=0&&c{c&&!this.destroyed&&this.setState({colorAssistant:c.colorAssistant,size:c.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=(c,r)=>{let n=this.props.store;if(n.selected&&n.selected.m.xc&&n.selected.h+n.selected.m.y>r){let i=c-n.selected.m.x,s=r-n.selected.m.y,l=n.selected.m.pixels[s][i];this.lastColor!==l&&(this.lastColor=l,this.click(l))}};drawGrid(c,r,n,i){for(let s=0;s{let c=this.props.selected.m,r=this.props.cords.x-c.x,n=this.props.cords.y-c.y;if(c.pixels[n]!==void 0&&c.pixels[n][r]!==void 0){let i=c.pixels[n][r];this.setState({color:i}),this.draw();return}this.setState({color:-1}),this.draw()};getCachedImage(c){let r=this.cache.get(c);if(r)return r;let n=this.props.selected,i=T0();return en(i,n.m.pixels,this.props.palette.hex,c),this.cache.set(c,i),i}draw=()=>{let c=this.ref.current,r=c.getContext("2d"),n=c.width=200,i=c.height=200,s=n/2,l=i/2;r.clearRect(0,0,n,i);let u=this.state.size;this.drawGrid(r,u*4,n,i);let p=1*u/2,h=(this.props.selected.m.x-this.props.cords.x)*u+Math.ceil(s-p),z=(this.props.selected.m.y-this.props.cords.y)*u+Math.ceil(l-p),M=this.getCachedImage(u);if(r.drawImage(M,h,z,M.width,M.height),u!=1){r.fillStyle=this.highlighColor;let L=i/2,S=i/2;r.fillRect(0,0,n,L-p),r.fillRect(0,L+p,n,L-p),r.fillRect(0,L-p,S-p,p*2),r.fillRect(S+p,L-p,S-p,p*2)}};up=()=>{this.setState({size:this.clamp(this.state.size*2)})};down=()=>{this.setState({size:this.clamp(this.state.size/2)})};setSize(c){this.setState({size:c})}clamp(c){return(0,Av.clamp)(c,1,32)}renderColor(){return this.state.color!==-1?T1.default.createElement(kv,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):T1.default.createElement(kv,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return T1.default.createElement("div",null,T1.default.createElement(GN,null,T1.default.createElement(W1,{onClick:this.up},T1.default.createElement(N1,{icon:_l})),T1.default.createElement(qN,null,this.state.size),T1.default.createElement(W1,{onClick:this.down},T1.default.createElement(N1,{icon:Tl})),T1.default.createElement("span",{style:{flex:1}},T1.default.createElement(W1,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?Y7:""},onClick:()=>this.toggleColorAssistant()},"Assist",T1.default.createElement(N1,{icon:kl})," ")),this.renderColor()),T1.default.createElement(jN,{ref:this.ref}))}};var N6=N2(f1());var R1=N2(f1());var Lr=class extends R1.default.Component{render(){return R1.default.createElement(Z0,null,R1.default.createElement("div",null,R1.default.createElement("span",null,"Name")," ",R1.default.createElement(J6,{type:"text",value:this.props.name,onChange:c=>this.props.onName(c.target.value)})),R1.default.createElement("div",null,R1.default.createElement("span",null,"X")," ",R1.default.createElement(J6,{type:"number",value:this.props.x,onChange:c=>R0(c,this.props.onX)})),R1.default.createElement("div",null,R1.default.createElement("span",null,"Y")," ",R1.default.createElement(J6,{type:"number",value:this.props.y,onChange:c=>R0(c,this.props.onY)})),R1.default.createElement($6,null,R1.default.createElement(W1,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),R1.default.createElement(W1,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),R1.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var XN=u2.canvas` +`,Lr=class extends R1.default.Component{ref=R1.default.createRef();cache=new Map;transparentGrid=["#c5c5c540","#8d8d8d40"];highlighColor="#00000040";lastColor=-1;storageKey="_minimap_settings";destroyed=!1;constructor(c){super(c),this.state={size:16,color:-1,colorAssistant:!1}}componentDidUpdate(c,r){c.selected.m.ref!==this.props.selected.m.ref?(this.cache.clear(),this.draw()):r.size!==this.state.size&&this.draw()}click(c){c>=0&&c{c&&!this.destroyed&&this.setState({colorAssistant:c.colorAssistant,size:c.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=(c,r)=>{let n=this.props.store;if(n.selected&&n.selected.m.xc&&n.selected.h+n.selected.m.y>r){let i=c-n.selected.m.x,s=r-n.selected.m.y,l=n.selected.m.pixels[s][i];this.lastColor!==l&&(this.lastColor=l,this.click(l))}};drawGrid(c,r,n,i){for(let s=0;s{let c=this.props.selected.m,r=this.props.cords.x-c.x,n=this.props.cords.y-c.y;if(c.pixels[n]!==void 0&&c.pixels[n][r]!==void 0){let i=c.pixels[n][r];this.setState({color:i}),this.draw();return}this.setState({color:-1}),this.draw()};getCachedImage(c){let r=this.cache.get(c);if(r)return r;let n=this.props.selected,i=H8();return j9(i,n.m.pixels,this.props.palette.hex,c),this.cache.set(c,i),i}draw=()=>{let c=this.ref.current,r=c.getContext("2d"),n=c.width=200,i=c.height=200,s=n/2,l=i/2;r.clearRect(0,0,n,i);let u=this.state.size;this.drawGrid(r,u*4,n,i);let p=1*u/2,h=(this.props.selected.m.x-this.props.cords.x)*u+Math.ceil(s-p),z=(this.props.selected.m.y-this.props.cords.y)*u+Math.ceil(l-p),V=this.getCachedImage(u);if(r.drawImage(V,h,z,V.width,V.height),u!=1){r.fillStyle=this.highlighColor;let L=i/2,S=i/2;r.fillRect(0,0,n,L-p),r.fillRect(0,L+p,n,L-p),r.fillRect(0,L-p,S-p,p*2),r.fillRect(S+p,L-p,S-p,p*2)}};up=()=>{this.setState({size:this.clamp(this.state.size*2)})};down=()=>{this.setState({size:this.clamp(this.state.size/2)})};setSize(c){this.setState({size:c})}clamp(c){return(0,_d.clamp)(c,1,32)}renderColor(){return this.state.color!==-1?R1.default.createElement(Pd,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):R1.default.createElement(Pd,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return R1.default.createElement("div",null,R1.default.createElement($N,null,R1.default.createElement(X1,{onClick:this.up},R1.default.createElement(y1,{icon:th})),R1.default.createElement(JN,null,this.state.size),R1.default.createElement(X1,{onClick:this.down},R1.default.createElement(y1,{icon:ih})),R1.default.createElement("span",{style:{flex:1}},R1.default.createElement(X1,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?hr:""},onClick:()=>this.toggleColorAssistant()},"Assist",R1.default.createElement(y1,{icon:ch})," ")),this.renderColor()),R1.default.createElement(ZN,{ref:this.ref}))}};var k6=N2(f1());var D1=N2(f1());var xr=class extends D1.default.Component{render(){return D1.default.createElement(b8,null,D1.default.createElement("div",null,D1.default.createElement("span",null,"Name")," ",D1.default.createElement(d0,{type:"text",value:this.props.name,onChange:c=>this.props.onName(c.target.value)})),D1.default.createElement("div",null,D1.default.createElement("span",null,"X")," ",D1.default.createElement(d0,{type:"number",value:this.props.x,onChange:c=>C8(c,this.props.onX)})),D1.default.createElement("div",null,D1.default.createElement("span",null,"Y")," ",D1.default.createElement(d0,{type:"number",value:this.props.y,onChange:c=>C8(c,this.props.onY)})),D1.default.createElement(N6,null,D1.default.createElement(X1,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),D1.default.createElement(X1,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),D1.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var eb=s2.canvas` position: fixed; z-index: 1; pointer-events: none; -`,A8=class extends N6.default.Component{ref=N6.default.createRef();_refImage;constructor(c){super(c),this.state={x:0,y:0,name:""}}componentDidMount(){this.draw(),this.props.cords.on(1,this.draw),window.addEventListener("mousemove",this.draw),this.props.muralObj&&this.setState({name:this.props.muralObj.name||"",x:this.props.muralObj.x??0,y:this.props.muralObj.y??0})}componentWillUnmount(){this.props.cords.off(1,this.draw),window.removeEventListener("mousemove",this.draw)}componentDidUpdate(c,r){c.mural!==this.props.mural&&(this._refImage=void 0,this.setState({x:0,y:0})),(r.x!==this.state.x||r.y!==this.state.y)&&this.draw()}isPixels(c){return Array.isArray(c)}get pixels(){return this.isPixels(this.props.mural)?this.props.mural:this.props.mural.pixels}get x(){return this.isPixels(this.props.mural)?this.state.x:this.props.mural.x}get y(){return this.isPixels(this.props.mural)?this.state.y:this.props.mural.y}get refImg(){return!Array.isArray(this.props.mural)&&"ref"in this.props.mural?this.props.mural.ref:this._refImage?this._refImage:(this._refImage=c5(this.pixels,this.props.palette.hex).canvas,this._refImage)}draw=()=>{let c=this.ref.current,r=Math.pow(2,this.props.cords.uScale),n=this.props.cords.gridToScreen(this.x,this.y);if(!n){c.getContext("2d").clearRect(0,0,c.width,c.height);return}let{x:i,y:s}=n,l=E0(this.pixels)*r,u=A0(this.pixels)*r;(l!==c.width||u!==c.height)&&(c.width=l,c.height=u,c.style.width=`${l}px`,c.style.height=`${u}px`);let p=c.getContext("2d");p.imageSmoothingEnabled=!1,c.style.left=`${i}px`,c.style.top=`${s}px`,p.drawImage(this.refImg,0,0,c.width,c.height)};get style(){return{left:this.state.x,top:this.state.y,opacity:this.props.opacity/100}}renderModifyWindow(){if(this.props.onChange){let c={...this.state};return N6.default.createElement(h0,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},N6.default.createElement(Lr,{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(c),this.props.onChange(c.name,c.x,c.y,!1)},onConfirm:()=>{this.props.onChange(this.state.name,this.state.x,this.state.y,!0)}}))}return null}render(){return N6.default.createElement(N6.default.Fragment,null,N6.default.createElement(XN,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var _v=N2(Z8());var Ev="data:image/png;base64,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",Pv="(()=>{var c=console.log;console.log=(...l)=>{let e=l[0];if(e&&typeof e==\"object\"&&\"pixelsPlaced\"in e){let o=new CustomEvent(\"__pixelsPlaced\",{detail:e.pixelsPlaced});document.dispatchEvent(o)}c(...l)};})();\n//# sourceMappingURL=inject.js.map\n";var YN=u2.img` +`,A8=class extends k6.default.Component{ref=k6.default.createRef();_refImage;constructor(c){super(c),this.state={x:0,y:0,name:""}}componentDidMount(){this.draw(),this.props.cords.on(1,this.draw),window.addEventListener("mousemove",this.draw),this.props.muralObj&&this.setState({name:this.props.muralObj.name||"",x:this.props.muralObj.x??0,y:this.props.muralObj.y??0})}componentWillUnmount(){this.props.cords.off(1,this.draw),window.removeEventListener("mousemove",this.draw)}componentDidUpdate(c,r){c.mural!==this.props.mural&&(this._refImage=void 0,this.setState({x:0,y:0})),(r.x!==this.state.x||r.y!==this.state.y)&&this.draw()}isPixels(c){return Array.isArray(c)}get pixels(){return this.isPixels(this.props.mural)?this.props.mural:this.props.mural.pixels}get x(){return this.isPixels(this.props.mural)?this.state.x:this.props.mural.x}get y(){return this.isPixels(this.props.mural)?this.state.y:this.props.mural.y}get refImg(){return!Array.isArray(this.props.mural)&&"ref"in this.props.mural?this.props.mural.ref:this._refImage?this._refImage:(this._refImage=ee(this.pixels,this.props.palette.hex).canvas,this._refImage)}draw=()=>{let c=this.ref.current,r=Math.pow(2,this.props.cords.uScale),n=this.props.cords.gridToScreen(this.x,this.y);if(!n){c.getContext("2d").clearRect(0,0,c.width,c.height);return}let{x:i,y:s}=n,l=M8(this.pixels)*r,u=V8(this.pixels)*r;(l!==c.width||u!==c.height)&&(c.width=l,c.height=u,c.style.width=`${l}px`,c.style.height=`${u}px`);let p=c.getContext("2d");p.imageSmoothingEnabled=!1,c.style.left=`${i}px`,c.style.top=`${s}px`,p.drawImage(this.refImg,0,0,c.width,c.height)};get style(){return{left:this.state.x,top:this.state.y,opacity:this.props.opacity/100}}renderModifyWindow(){if(this.props.onChange){let c={...this.state};return k6.default.createElement(v0,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},k6.default.createElement(xr,{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(c),this.props.onChange(c.name,c.x,c.y,!1)},onConfirm:()=>{this.props.onChange(this.state.name,this.state.x,this.state.y,!0)}}))}return null}render(){return k6.default.createElement(k6.default.Fragment,null,k6.default.createElement(eb,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var Dd=N2(Z8());var Td="data:image/png;base64,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",Rd="(()=>{var c=console.log;console.log=(...l)=>{let e=l[0];if(e&&typeof e==\"object\"&&\"pixelsPlaced\"in e){let o=new CustomEvent(\"__pixelsPlaced\",{detail:e.pixelsPlaced});document.dispatchEvent(o)}c(...l)};})();\n//# sourceMappingURL=inject.js.map\n";var cb=s2.img` width: 25px; margin-right: 5px; display: inline; pointer-events: none; touch-action: none; -`,xr=class extends n3.default.Component{STORAGE_KEY="__OPACITY_SETTINGS";destroyed=!1;constructor(c){super(c),this.state={overlays:[],phantomOverlay:-1,opacity:50,collapsed:!1}}componentDidMount(){this.props.store.on(7,this.update),this.update(),this.props.storage.getItem(this.STORAGE_KEY).then(c=>{c!==null&&!this.destroyed&&this.setState(c)})}componentWillUnmount(){this.destroyed=!0,this.actualSave({collapsed:this.state.collapsed,opacity:this.state.opacity})}actualSave(c){return this.props.storage.setItem(this.STORAGE_KEY,c)}save=(0,_v.debounce)(c=>{this.actualSave({collapsed:this.state.collapsed,opacity:c})},1e3);opacityChange=c=>{this.setState({opacity:c}),this.save(c)};update=()=>{this.setState({selected:this.props.store.selected,overlays:this.props.store.overlays,overlayModify:this.props.store.overlayModify})};renderMap(){return this.state.selected?n3.default.createElement(h0,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},n3.default.createElement(Cr,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}title(){return n3.default.createElement("span",{title:"Terncode's fork"},n3.default.createElement(YN,{src:Ev,alt:"TC-Logo"}),n3.default.createElement("span",null,"Overlay"))}render(){return n3.default.createElement(n3.default.Fragment,null,n3.default.createElement(h0,{title:this.title(),storage:this.props.storage,storageKey:"main"},n3.default.createElement(Mr,{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:c=>{this.setState({collapsed:c}),this.actualSave({opacity:this.state.opacity,collapsed:c})}})),this.renderMap(),this.state.overlays.map((c,r)=>n3.default.createElement(A8,{key:r,storage:this.props.storage,opacity:this.state.opacity,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[c]})),this.props.store.murals[this.state.phantomOverlay]?n3.default.createElement(A8,{storage:this.props.storage,opacity:50,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[this.state.phantomOverlay]}):null,this.state.overlayModify?n3.default.createElement(A8,{muralObj:this.state.overlayModify.muralObj,opacity:this.state.opacity,storage:this.props.storage,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.overlayModify.pixels,onChange:(c,r,n,i)=>{this.state.overlayModify.cb(c,r,n,i)}}):null)}};var Rv=N2(gi());var E8=N2(f1());var KN=u2.div` +`,yr=class extends t3.default.Component{STORAGE_KEY="__OPACITY_SETTINGS";destroyed=!1;constructor(c){super(c),this.state={overlays:[],phantomOverlay:-1,opacity:50,collapsed:!1}}componentDidMount(){this.props.store.on(7,this.update),this.update(),this.props.storage.getItem(this.STORAGE_KEY).then(c=>{c!==null&&!this.destroyed&&this.setState(c)})}componentWillUnmount(){this.destroyed=!0,this.actualSave({collapsed:this.state.collapsed,opacity:this.state.opacity})}actualSave(c){return this.props.storage.setItem(this.STORAGE_KEY,c)}save=(0,Dd.debounce)(c=>{this.actualSave({collapsed:this.state.collapsed,opacity:c})},1e3);opacityChange=c=>{this.setState({opacity:c}),this.save(c)};update=()=>{this.setState({selected:this.props.store.selected,overlays:this.props.store.overlays,overlayModify:this.props.store.overlayModify})};renderMap(){return this.state.selected?t3.default.createElement(v0,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},t3.default.createElement(Lr,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}title(){return t3.default.createElement("span",{title:"Terncode's fork"},t3.default.createElement(cb,{src:Td,alt:"TC-Logo"}),t3.default.createElement("span",null,"Overlay"))}render(){return t3.default.createElement(t3.default.Fragment,null,t3.default.createElement(v0,{title:this.title(),storage:this.props.storage,storageKey:"main"},t3.default.createElement(Cr,{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:c=>{this.setState({collapsed:c}),this.actualSave({opacity:this.state.opacity,collapsed:c})}})),this.renderMap(),this.state.overlays.map((c,r)=>t3.default.createElement(A8,{key:r,storage:this.props.storage,opacity:this.state.opacity,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[c]})),this.props.store.murals[this.state.phantomOverlay]?t3.default.createElement(A8,{storage:this.props.storage,opacity:50,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.murals[this.state.phantomOverlay]}):null,this.state.overlayModify?t3.default.createElement(A8,{muralObj:this.state.overlayModify.muralObj,opacity:this.state.opacity,storage:this.props.storage,cords:this.props.cords,palette:this.props.palette,mural:this.props.store.overlayModify.pixels,onChange:(c,r,n,i)=>{this.state.overlayModify.cb(c,r,n,i)}}):null)}};var Fd=N2(D9());var E8=N2(f1());var rb=s2.div` position: fixed; display: flex; z-index: 10; @@ -1052,12 +1083,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: 5px auto; padding: 5px; height: 40px; -`,QN=u2.span` +`,ab=s2.span` margin-left: 5px; -`,$N=u2.span` +`,nb=s2.span` margin: 2px 5px; width: 19px; -`,yr=class extends E8.default.Component{constructor(c){super(c),this.state={count:0,width:window.innerWidth}}componentDidMount(){this.props.pixelCount.count.then(c=>{typeof c=="number"&&this.updateCount(c)}),this.props.pixelCount.on(this.updateCount),window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.props.pixelCount.on(this.updateCount),window.removeEventListener("resize",this.onResize)}updateCount=c=>{this.setState({count:c})};onResize=()=>{this.setState({width:window.innerWidth})};render(){return this.state.count?E8.default.createElement(KN,{width:this.state.width},E8.default.createElement(QN,null,t7(this.state.count)),E8.default.createElement($N,null,E8.default.createElement(N1,{icon:wl}))):null}};function Ov(e,c,r,n,i){let s=[Tv(yi.default.createElement(yr,{pixelCount:i})),Tv(yi.default.createElement(xr,{cords:r,store:e,storage:c,palette:n}))];return()=>s.map(l=>l())}function Tv(e){let c=document.createElement("div");return(0,Rv.createRoot)(c).render(e),document.body.appendChild(c),()=>{c.parentElement?.removeChild(c)}}var wr=class{constructor(c){this.chrome=c}getItem(c){if(this.chrome)return new Promise(r=>{chrome.storage.local.get(c,n=>{n&&n[c]?r(JSON.parse(n[c])):r(null)})});{let r=localStorage.getItem(c);return Promise.resolve(r&&JSON.parse(r))}}async setItem(c,r){return this.chrome?new Promise(n=>{chrome.storage.local.set({[c]:JSON.stringify(r)},n)}):(localStorage.setItem(c,JSON.stringify(r)),Promise.resolve())}deleteItem(c){return this.chrome?new Promise(r=>{chrome.storage.local.remove(c,r)}):(localStorage.removeItem(c),Promise.resolve())}};var Sr=class e{constructor(c){this.storage=c;let r=document.createElement("script");r.addEventListener("load",()=>{document.body.removeChild(r)},{once:!0}),r.addEventListener("error",n=>{console.error(n)}),r.textContent=Pv,document.body.appendChild(r),document.addEventListener("__pixelsPlaced",n=>{typeof n.detail=="number"&&(this.storage.setItem(this.storageKey,n.detail),this.emitter.emit(0,n.detail))})}emitter=new $4;static instance;storageKey="__pixelsPlaced";static create(c){return this.instance||(this.instance=new e(c)),this.instance}on(c){this.emitter.on(0,c)}off(c){this.emitter.off(0,c)}get count(){return this.storage.getItem(this.storageKey)}};async function Dv(){let e=new s7;for(;!e.init();)await a7();let c=new wr(!1),r=Sr.create(c),n=new u7(c,e);await n.load();let i=new i7;await i.init(),Ov(n,c,i,e,r),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"?Dv():window.addEventListener("load",Dv);})(); +`,wr=class extends E8.default.Component{constructor(c){super(c),this.state={count:0,width:window.innerWidth}}componentDidMount(){this.props.pixelCount.count.then(c=>{typeof c=="number"&&this.updateCount(c)}),this.props.pixelCount.on(this.updateCount),window.addEventListener("resize",this.onResize)}componentWillUnmount(){this.props.pixelCount.on(this.updateCount),window.removeEventListener("resize",this.onResize)}updateCount=c=>{this.setState({count:c})};onResize=()=>{this.setState({width:window.innerWidth})};render(){return this.state.count?E8.default.createElement(rb,{width:this.state.width},E8.default.createElement(ab,null,ce(this.state.count)),E8.default.createElement(nb,null,E8.default.createElement(y1,{icon:$m}))):null}};function Bd(e,c,r,n,i){let s=[Od(wi.default.createElement(wr,{pixelCount:i})),Od(wi.default.createElement(yr,{cords:r,store:e,storage:c,palette:n}))];return()=>s.map(l=>l())}function Od(e){let c=document.createElement("div");return(0,Fd.createRoot)(c).render(e),document.body.appendChild(c),()=>{c.parentElement?.removeChild(c)}}var Sr=class{constructor(c){this.chrome=c}getItem(c){if(this.chrome)return new Promise(r=>{chrome.storage.local.get(c,n=>{n&&n[c]?r(JSON.parse(n[c])):r(null)})});{let r=localStorage.getItem(c);return Promise.resolve(r&&JSON.parse(r))}}async setItem(c,r){return this.chrome?new Promise(n=>{chrome.storage.local.set({[c]:JSON.stringify(r)},n)}):(localStorage.setItem(c,JSON.stringify(r)),Promise.resolve())}deleteItem(c){return this.chrome?new Promise(r=>{chrome.storage.local.remove(c,r)}):(localStorage.removeItem(c),Promise.resolve())}};var Nr=class e{constructor(c){this.storage=c;let r=document.createElement("script");r.addEventListener("load",()=>{document.body.removeChild(r)},{once:!0}),r.addEventListener("error",n=>{console.error(n)}),r.textContent=Rd,document.body.appendChild(r),document.addEventListener("__pixelsPlaced",n=>{typeof n.detail=="number"&&(this.storage.setItem(this.storageKey,n.detail),this.emitter.emit(0,n.detail))})}emitter=new C6;static instance;storageKey="__pixelsPlaced";static create(c){return this.instance||(this.instance=new e(c)),this.instance}on(c){this.emitter.on(0,c)}off(c){this.emitter.off(0,c)}get count(){return this.storage.getItem(this.storageKey)}};async function Id(){let e=new jc;for(;!e.init();)await Wc();let c=new Sr(!1),r=Nr.create(c),n=new Xc(c,e);await n.load();let i=new qc;await i.init(),Bd(n,c,i,e,r),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"?Id():window.addEventListener("load",Id);})(); /*! Bundled license information: lodash/lodash.js: diff --git a/src/UI/components/menu.tsx b/src/UI/components/menu.tsx index 3b1dbdf..c289494 100644 --- a/src/UI/components/menu.tsx +++ b/src/UI/components/menu.tsx @@ -138,7 +138,7 @@ export class Menu extends React.Component { {this.props.opacity}% this.props.onCollapsedChanged(!this.props.collapsed)}> - {this.props.collapsed ? null : } + {this.props.collapsed ? null : } ; } diff --git a/src/UI/components/muralList.tsx b/src/UI/components/muralList.tsx index 3b3a92d..09c2d80 100644 --- a/src/UI/components/muralList.tsx +++ b/src/UI/components/muralList.tsx @@ -4,6 +4,7 @@ import { Store, StoreEvents } from "../../lib/store"; import { MuralView } from "./muralView"; import styled from "styled-components"; import { Coordinates } from "../../lib/coordinates"; +import { Palette } from "../../lib/palette"; const ScrollContainer = styled.div` overflow: auto; @@ -32,11 +33,12 @@ const ScrollContainer = styled.div` interface Props { store: Store; cords: Coordinates; + palette: Palette; } interface State { murals: MuralEx[]; - selected?: SelectedMural + selected?: SelectedMural; } export class MuralList extends React.Component { @@ -61,7 +63,7 @@ export class MuralList extends React.Component { }; render() { return {this.state.murals.map((m,i) => { - return ; + return ; })}; } } diff --git a/src/UI/components/muralView.tsx b/src/UI/components/muralView.tsx index eac9de3..c1d186f 100644 --- a/src/UI/components/muralView.tsx +++ b/src/UI/components/muralView.tsx @@ -1,16 +1,17 @@ import React from "react"; import { Store } from "../../lib/store"; -import { Mural, MuralEx } from "../../interfaces"; +import { Mural, MuralEx, MuralStatus } from "../../interfaces"; import styled from "styled-components"; import { Border, Btn, Flex, SELECTED_COLOR } from "../styles"; import { CanvasToCanvasJSX } from "./canvasToCanvasJSX"; -import { formatNumber, getMuralHeight, getMuralWidth } from "../../lib/utils"; -import { IconDefinition, faDownload, faLayerGroup, faLocation, faPenToSquare, faTrash } from "@fortawesome/free-solid-svg-icons"; +import { formatNumber, getMuralHeight, getMuralWidth, getPixelStatusMural } from "../../lib/utils"; +import { IconDefinition, faDownload, faLayerGroup, faLocation, faPenToSquare, faRefresh, faTrash } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Coordinates } from "../../lib/coordinates"; import { TEXT_FORMATS } from "../importMural"; import saveAs from "file-saver"; import { Popup } from "./Popup"; +import { Palette } from "../../lib/palette"; const Margin = styled.div` margin: 2px; @@ -27,11 +28,46 @@ const Line = styled.div` display: flex; flex-direction: row; `; +const Strong = styled.strong` + margin-right: 2px; +`; + +export const BtnSmall = styled.button` + border: 1px solid white; + font-size: 50pt; + 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; +`; interface Props { mural: MuralEx; selected: boolean; store: Store; + palette: Palette; cords: Coordinates; } @@ -39,6 +75,7 @@ interface State { width: number; height: number; overlay: boolean; + progress?: MuralStatus | (() => void /* loading */); } @@ -59,6 +96,10 @@ export class MuralView extends React.Component { componentDidUpdate ( prevProps: Readonly ) { if (this.props.mural.ref !== prevProps.mural.ref) { this.updateSize(); + if (typeof this.state.progress === "function") { + typeof this.state.progress(); + this.setState({progress: undefined}); + } } } @@ -83,8 +124,8 @@ export class MuralView extends React.Component { height, width }); }; - renderInfoLine(title: string, description: string) { - return
{title}:
{description}
; + renderInfoLine(title: string, description: string | React.JSX.Element) { + return
{title}:
{description}
; } btn(context: string, icon: IconDefinition, onClick: () => void, selected?: boolean) { @@ -196,16 +237,42 @@ export class MuralView extends React.Component { } }; + updateProgress = async () => { + let canceled = false; + const cancelFn = () => { + canceled = true; + }; + this.setState({progress: cancelFn}); + const data = await getPixelStatusMural(this.props.mural, this.props.palette.palette); + if (!canceled) { + this.setState({progress: data}); + } + }; + + renderProgress() { + if (typeof this.state.progress === "function") { + return "Loading..."; + } + const ref = ; + if (this.state.progress && this.state.progress.total !== 0) { + const { total, bad, good } = this.state.progress; + return {Math.floor(good / total * 100)}% {bad > 0 ? formatNumber(bad) : ""}{ref}; + } else { + return ref; + } + } + render() { return {this.renderInfoLine("Name", this.props.mural.name)} - {this.renderInfoLine("PixelCount", formatNumber(this.props.mural.pixelCount))} - {this.renderInfoLine("x", this.props.mural.x.toString() )} - {this.renderInfoLine("y", this.props.mural.y.toString() )} - {this.renderInfoLine("size", `${getMuralWidth(this.props.mural)}x${getMuralHeight(this.props.mural)}`)} + {this.renderInfoLine("Pixel count", formatNumber(this.props.mural.pixelCount))} + {this.renderInfoLine("X", this.props.mural.x.toString() )} + {this.renderInfoLine("Y", this.props.mural.y.toString() )} + {this.renderInfoLine("Size", `${getMuralWidth(this.props.mural)}x${getMuralHeight(this.props.mural)}`)} + {this.renderInfoLine("Progress", this.renderProgress())} @@ -217,4 +284,4 @@ export class MuralView extends React.Component { ; } -} \ No newline at end of file +} diff --git a/src/interfaces.ts b/src/interfaces.ts index b42ddcc..fc3d2f2 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -11,6 +11,12 @@ export interface Mural { y: number; } +export interface MuralStatus { + total: number; + good: number; + bad: number; +} + export interface LoadUnload { load: () => Promise | void; unload: () => Promise | void; diff --git a/src/lib/canvashot.tsx b/src/lib/canvashot.tsx index d5ab74e..d721c50 100644 --- a/src/lib/canvashot.tsx +++ b/src/lib/canvashot.tsx @@ -141,37 +141,42 @@ export function getSelectionArea() { }); } +export async function fetchCombineTiledImage(x: number, y: number, width: number, height: number, uScale = 0) { + const canvas = createCanvas(); + canvas.width = width / Math.pow(2, uScale); + canvas.height = height / Math.pow(2, uScale); + const ctx = canvas.getContext("2d")!; + const offX = Math.floor((x % (CHUNK_SIZE))); + const offY = Math.floor((y % (CHUNK_SIZE))); + const awaiters: Promise[] = []; + for (let xx = 0; xx < width + CHUNK_SIZE; xx += CHUNK_SIZE) { + for (let yy = 0; yy < height + CHUNK_SIZE; yy += CHUNK_SIZE) { + const promise = new Promise((resolve, reject) => { + fetchTile(x + xx, y + yy).then(image => { + const offXX = x > 0 ? -offX : (-(CHUNK_SIZE + (offX)) % CHUNK_SIZE); + const offYY = y > 0 ? -offY : (-(CHUNK_SIZE + (offY)) % CHUNK_SIZE); + ctx.drawImage(image, xx + offXX, yy + offYY); + resolve(); + }).catch(reject); + }); + awaiters.push(promise); + } + } + await Promise.all(awaiters); + return canvas; +} + export async function takeCanvasShot(coordinates: Coordinates) { const rect = await getSelectionArea(); - const s = coordinates.uScale; const cords = coordinates.screenToGrid(rect.x, rect.y); const cordsEnd = coordinates.screenToGrid(rect.x + rect.width, rect.height + rect.y); if (!cords || !cordsEnd) { return; // unavailable } - const canvas = createCanvas(); - canvas.width = rect.width / Math.pow(2, s); - canvas.height = rect.height / Math.pow(2, s); - const ctx = canvas.getContext("2d")!; - const offX = Math.floor((cords.x % (CHUNK_SIZE))); - const offY = Math.floor((cords.y % (CHUNK_SIZE))); - const awaiters: Promise[] = []; - for (let x = 0; x < rect.width + CHUNK_SIZE; x += CHUNK_SIZE) { - for (let y = 0; y < rect.height + CHUNK_SIZE; y += CHUNK_SIZE) { - const promise = new Promise((resolve, reject) => { - fetchTile(cords.x + x, cords.y + y).then(image => { - const offXX = cords.x > 0 ? -offX : (-(CHUNK_SIZE + (offX)) % CHUNK_SIZE); - const offYY = cords.y > 0 ? -offY : (-(CHUNK_SIZE + (offY)) % CHUNK_SIZE); - ctx.drawImage(image, x + offXX, y + offYY); - resolve(); - }).catch(reject); - }); - awaiters.push(promise); - } - } try { - await Promise.all(awaiters); + const canvas = await fetchCombineTiledImage(cords.x, cords.y, rect.height, rect.width, coordinates.uScale); + const url = canvas.toDataURL(); Popup.custom(, [{ content: "Download", diff --git a/src/lib/store.ts b/src/lib/store.ts index c3040bf..0e470ab 100644 --- a/src/lib/store.ts +++ b/src/lib/store.ts @@ -1,7 +1,6 @@ import { BasicEventEmitter, Listener } from "./eventEmitter"; -import { LoadUnload, Mural, MuralEx, SelectedMural } from "./interfaces"; +import { LoadUnload, Mural, MuralEx, SelectedMural } from "../interfaces"; import { Palette } from "./palette"; - import { Storage } from "./storage"; import { canvasFromMural, getMuralHeight, getMuralWidth, pushUnique, removeItem } from "./utils"; diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 835930f..b70239e 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,5 +1,6 @@ import { clone, isInteger } from "lodash"; -import { Mural, RGB } from "../interfaces"; +import { Mural, MuralStatus, RGB } from "../interfaces"; +import { fetchCombineTiledImage } from "./canvashot"; export const CHUNK_SIZE = 512; @@ -222,6 +223,36 @@ export function flatQuantizeImageData(imageData: ImageData, palette: RGB[]) { } } +export async function getPixelStatusMural(mural: Mural, palette: RGB[]): Promise { + const width = getMuralWidth(mural); + const height = getMuralHeight(mural); + const tile = await fetchCombineTiledImage(mural.x, mural.y, width, height); + const imageData = tile.getContext("2d")?.getImageData(0, 0, width, height); + const buffer = mural.pixels.flat(); + let total = 0; + let bad = 0; + let good = 0; + if (imageData) { + for (let i = 0, j = 0; i < imageData.data.length; i += 4, j++) { + if (buffer[j] >= 0) { + const r = imageData.data[i + 0]; + const g = imageData.data[i + 1]; + const b = imageData.data[i + 2]; + + const obj = rgb(r, g, b); + total++; + if (findClosestIndexColor(obj, palette) === buffer[j]) { + good++; + } else { + bad++; + } + + } + } + } + return { total, good, bad }; +} + export function imageDataToPaletteIndices(imageData: ImageData, palette: RGB[]) { const { height, width } = imageData; const pixels: number[][] = [];