From 890cd016f885f4dd1e8c8807bc160b1e671ac26d Mon Sep 17 00:00:00 2001 From: Terncode Date: Sat, 15 Jun 2024 14:06:10 +0200 Subject: [PATCH] Add screenshot feature --- dist/user-script.user.js | 102 +++++++++---------- package-lock.json | 4 +- package.json | 4 +- src/UI/components/menu.tsx | 43 +++++++- src/canvashot.tsx | 195 +++++++++++++++++++++++++++++++++++++ src/interfaces.ts | 7 ++ src/utils.ts | 19 ++++ user-script.template.js | 2 +- 8 files changed, 315 insertions(+), 61 deletions(-) create mode 100644 src/canvashot.tsx diff --git a/dist/user-script.user.js b/dist/user-script.user.js index 7c9ab6a..ed76311 100644 --- a/dist/user-script.user.js +++ b/dist/user-script.user.js @@ -1,43 +1,43 @@ // ==UserScript== // @name Pixel canvas overlay // @namespace http://tampermonkey.net/ -// @version 2024-02-17 +// @version 2024-06-16 // @description Scripts renders pixelated overlays over the tile map! -// @author 0xa663 +// @author 0xa663, Terncode // @match https://pixelcanvas.io/* // @icon https://www.google.com/s2/favicons?sz=64&domain=pixelcanvas.io // @grant none // ==/UserScript== -(()=>{var nL=Object.create;var cl=Object.defineProperty;var tL=Object.getOwnPropertyDescriptor;var iL=Object.getOwnPropertyNames;var sL=Object.getPrototypeOf,oL=Object.prototype.hasOwnProperty;var Y1=(e,c)=>()=>(c||e((c={exports:{}}).exports,c),c.exports);var lL=(e,c,a,n)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of iL(c))!oL.call(e,i)&&i!==a&&cl(e,i,{get:()=>c[i],enumerable:!(n=tL(c,i))||n.enumerable});return e};var T2=(e,c,a)=>(a=e!=null?nL(sL(e)):{},lL(c||!e||!e.__esModule?cl(a,"default",{value:e,enumerable:!0}):a,e));var Q8=Y1((b0,X8)=>{(function(){var e,c="4.17.21",a=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,x=1,S=2,E=1,D=2,Z=4,M=8,H=16,C=32,_=64,F=128,U=256,B=512,J=30,b="...",N=800,A=16,T=1,q=2,Y=3,j=1/0,G=9007199254740991,t2=17976931348623157e292,s2=NaN,i2=4294967295,M2=i2-1,L2=i2>>>1,Y2=[["ary",F],["bind",E],["bindKey",D],["curry",M],["curryRight",H],["flip",B],["partial",C],["partialRight",_],["rearg",U]],c1="[object Arguments]",L1="[object Array]",a3="[object AsyncFunction]",d1="[object Boolean]",z1="[object Date]",e4="[object DOMException]",K2="[object Error]",W1="[object Function]",R3="[object GeneratorFunction]",B2="[object Map]",N6="[object Number]",Sa="[object Null]",D3="[object Object]",he="[object Promise]",k6="[object Proxy]",b6="[object RegExp]",P1="[object Set]",m4="[object String]",d0="[object Symbol]",A8="[object Undefined]",c4="[object WeakMap]",Na="[object WeakSet]",A6="[object ArrayBuffer]",B4="[object DataView]",_8="[object Float32Array]",E8="[object Float64Array]",P8="[object Int8Array]",ka="[object Int16Array]",ba="[object Int32Array]",Aa="[object Uint8Array]",_a="[object Uint8ClampedArray]",Ea="[object Uint16Array]",Pa="[object Uint32Array]",yv=/\b__p \+= '';/g,wv=/\b(__p \+=) '' \+/g,Sv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yi=/&(?:amp|lt|gt|quot|#39);/g,wi=/[&<>"']/g,Nv=RegExp(yi.source),kv=RegExp(wi.source),bv=/<%-([\s\S]+?)%>/g,Av=/<%([\s\S]+?)%>/g,Si=/<%=([\s\S]+?)%>/g,_v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ev=/^\w*$/,Pv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,Tv=RegExp(Ta.source),Ra=/^\s+/,Rv=/\s/,Dv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fv=/\{\n\/\* \[wrapped with (.+)\] \*/,Ov=/,? & /,Bv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Iv=/[()=,{}\[\]\/\s]/,Uv=/\\(\\)?/g,Wv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ni=/\w*$/,Gv=/^[-+]0x[0-9a-f]+$/i,qv=/^0b[01]+$/i,$v=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Yv=/^(?:0|[1-9]\d*)$/,Kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,Xv=/['\n\r\u2028\u2029\\]/g,de="\\ud800-\\udfff",Qv="\\u0300-\\u036f",Zv="\\ufe20-\\ufe2f",Jv="\\u20d0-\\u20ff",ki=Qv+Zv+Jv,bi="\\u2700-\\u27bf",Ai="a-z\\xdf-\\xf6\\xf8-\\xff",ed="\\xac\\xb1\\xd7\\xf7",cd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ad="\\u2000-\\u206f",rd=" \\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",Ei="\\ufe0e\\ufe0f",Pi=ed+cd+ad+rd,Da="['\u2019]",nd="["+de+"]",Ti="["+Pi+"]",ze="["+ki+"]",Ri="\\d+",td="["+bi+"]",Di="["+Ai+"]",Fi="[^"+de+Pi+Ri+bi+Ai+_i+"]",Fa="\\ud83c[\\udffb-\\udfff]",id="(?:"+ze+"|"+Fa+")",Oi="[^"+de+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ba="[\\ud800-\\udbff][\\udc00-\\udfff]",z0="["+_i+"]",Bi="\\u200d",Ii="(?:"+Di+"|"+Fi+")",sd="(?:"+z0+"|"+Fi+")",Ui="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",Wi="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",Gi=id+"?",qi="["+Ei+"]?",od="(?:"+Bi+"(?:"+[Oi,Oa,Ba].join("|")+")"+qi+Gi+")*",ld="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$i=qi+Gi+od,ud="(?:"+[td,Oa,Ba].join("|")+")"+$i,pd="(?:"+[Oi+ze+"?",ze,Oa,Ba,nd].join("|")+")",md=RegExp(Da,"g"),hd=RegExp(ze,"g"),Ia=RegExp(Fa+"(?="+Fa+")|"+pd+$i,"g"),vd=RegExp([z0+"?"+Di+"+"+Ui+"(?="+[Ti,z0,"$"].join("|")+")",sd+"+"+Wi+"(?="+[Ti,z0+Ii,"$"].join("|")+")",z0+"?"+Ii+"+"+Ui,z0+"+"+Wi,fd,ld,Ri,ud].join("|"),"g"),dd=RegExp("["+Bi+de+ki+Ei+"]"),zd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hd=["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"],gd=-1,P2={};P2[_8]=P2[E8]=P2[P8]=P2[ka]=P2[ba]=P2[Aa]=P2[_a]=P2[Ea]=P2[Pa]=!0,P2[c1]=P2[L1]=P2[A6]=P2[d1]=P2[B4]=P2[z1]=P2[K2]=P2[W1]=P2[B2]=P2[N6]=P2[D3]=P2[b6]=P2[P1]=P2[m4]=P2[c4]=!1;var A2={};A2[c1]=A2[L1]=A2[A6]=A2[B4]=A2[d1]=A2[z1]=A2[_8]=A2[E8]=A2[P8]=A2[ka]=A2[ba]=A2[B2]=A2[N6]=A2[D3]=A2[b6]=A2[P1]=A2[m4]=A2[d0]=A2[Aa]=A2[_a]=A2[Ea]=A2[Pa]=!0,A2[K2]=A2[W1]=A2[c4]=!1;var Vd={\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"},Md={"&":"&","<":"<",">":">",'"':""","'":"'"},Cd={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ld={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xd=parseFloat,yd=parseInt,ji=typeof global=="object"&&global&&global.Object===Object&&global,wd=typeof self=="object"&&self&&self.Object===Object&&self,p1=ji||wd||Function("return this")(),Ua=typeof b0=="object"&&b0&&!b0.nodeType&&b0,_6=Ua&&typeof X8=="object"&&X8&&!X8.nodeType&&X8,Yi=_6&&_6.exports===Ua,Wa=Yi&&ji.process,z3=function(){try{var y=_6&&_6.require&&_6.require("util").types;return y||Wa&&Wa.binding&&Wa.binding("util")}catch{}}(),Ki=z3&&z3.isArrayBuffer,Xi=z3&&z3.isDate,Qi=z3&&z3.isMap,Zi=z3&&z3.isRegExp,Ji=z3&&z3.isSet,es=z3&&z3.isTypedArray;function r3(y,P,k){switch(k.length){case 0:return y.call(P);case 1:return y.call(P,k[0]);case 2:return y.call(P,k[0],k[1]);case 3:return y.call(P,k[0],k[1],k[2])}return y.apply(P,k)}function Sd(y,P,k,K){for(var o2=-1,x2=y==null?0:y.length;++o2-1}function Ga(y,P,k){for(var K=-1,o2=y==null?0:y.length;++K-1;);return k}function os(y,P){for(var k=y.length;k--&&H0(P,y[k],0)>-1;);return k}function Rd(y,P){for(var k=y.length,K=0;k--;)y[k]===P&&++K;return K}var Dd=Ya(Vd),Fd=Ya(Md);function Od(y){return"\\"+Ld[y]}function Bd(y,P){return y==null?e:y[P]}function g0(y){return dd.test(y)}function Id(y){return zd.test(y)}function Ud(y){for(var P,k=[];!(P=y.next()).done;)k.push(P.value);return k}function Za(y){var P=-1,k=Array(y.size);return y.forEach(function(K,o2){k[++P]=[o2,K]}),k}function ls(y,P){return function(k){return y(P(k))}}function W4(y,P){for(var k=-1,K=y.length,o2=0,x2=[];++k-1}function kz(r,t){var o=this.__data__,f=Te(o,r);return f<0?(++this.size,o.push([r,t])):o[f][1]=t,this}h4.prototype.clear=yz,h4.prototype.delete=wz,h4.prototype.get=Sz,h4.prototype.has=Nz,h4.prototype.set=kz;function v4(r){var t=-1,o=r==null?0:r.length;for(this.clear();++t=t?r:t)),r}function M3(r,t,o,f,m,d){var g,L=t&h,w=t&z,R=t&V;if(o&&(g=m?o(r,f,m,d):o(r)),g!==e)return g;if(!G2(r))return r;var O=l2(r);if(O){if(g=EH(r),!L)return G1(r,g)}else{var I=y1(r),$=I==W1||I==R3;if(X4(r))return qs(r,L);if(I==D3||I==c1||$&&!m){if(g=w||$?{}:fo(r),!L)return w?CH(r,qz(g,r)):MH(r,Ms(g,r))}else{if(!A2[I])return m?r:{};g=PH(r,I,L)}}d||(d=new O3);var e2=d.get(r);if(e2)return e2;d.set(r,g),Bo(r)?r.forEach(function(n2){g.add(M3(n2,t,o,n2,r,d))}):Fo(r)&&r.forEach(function(n2,v2){g.set(v2,M3(n2,t,o,v2,r,d))});var r2=R?w?xr:Lr:w?$1:m1,p2=O?e:r2(r);return H3(p2||r,function(n2,v2){p2&&(v2=n2,n2=r[v2]),I8(g,v2,M3(n2,t,o,v2,r,d))}),g}function $z(r){var t=m1(r);return function(o){return Cs(o,r,t)}}function Cs(r,t,o){var f=o.length;if(r==null)return!f;for(r=N2(r);f--;){var m=o[f],d=t[m],g=r[m];if(g===e&&!(m in r)||!d(g))return!1}return!0}function Ls(r,t,o){if(typeof r!="function")throw new g3(i);return Y8(function(){r.apply(e,o)},t)}function U8(r,t,o,f){var m=-1,d=He,g=!0,L=r.length,w=[],R=t.length;if(!L)return w;o&&(t=I2(t,n3(o))),f?(d=Ga,g=!1):t.length>=a&&(d=T8,g=!1,t=new T6(t));e:for(;++mm?0:m+o),f=f===e||f>m?m:u2(f),f<0&&(f+=m),f=o>f?0:Uo(f);o0&&o(L)?t>1?H1(L,t-1,o,f,m):U4(m,L):f||(m[m.length]=L)}return m}var tr=Qs(),ws=Qs(!0);function a4(r,t){return r&&tr(r,t,m1)}function ir(r,t){return r&&ws(r,t,m1)}function De(r,t){return I4(t,function(o){return V4(r[o])})}function D6(r,t){t=Y4(t,r);for(var o=0,f=t.length;r!=null&&ot}function Kz(r,t){return r!=null&&w2.call(r,t)}function Xz(r,t){return r!=null&&t in N2(r)}function Qz(r,t,o){return r>=x1(t,o)&&r=120&&O.length>=120)?new T6(g&&O):e}O=r[0];var I=-1,$=L[0];e:for(;++I-1;)L!==r&&Ne.call(L,w,1),Ne.call(r,w,1);return r}function Ds(r,t){for(var o=r?t.length:0,f=o-1;o--;){var m=t[o];if(o==f||m!==d){var d=m;g4(m)?Ne.call(r,m,1):dr(r,m)}}return r}function mr(r,t){return r+Ae(zs()*(t-r+1))}function fH(r,t,o,f){for(var m=-1,d=o1(be((t-r)/(o||1)),0),g=k(d);d--;)g[f?d:++m]=r,r+=o;return g}function hr(r,t){var o="";if(!r||t<1||t>G)return o;do t%2&&(o+=r),t=Ae(t/2),t&&(r+=r);while(t);return o}function m2(r,t){return Ar(mo(r,t,j1),r+"")}function uH(r){return Vs(k0(r))}function pH(r,t){var o=k0(r);return Ye(o,R6(t,0,o.length))}function q8(r,t,o,f){if(!G2(r))return r;t=Y4(t,r);for(var m=-1,d=t.length,g=d-1,L=r;L!=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,g=r[d];g!==null&&!i3(g)&&(o?g<=t:g=a){var R=t?null:wH(r);if(R)return Ve(R);g=!1,m=T8,w=new T6}else w=t?[]:L;e:for(;++f=f?r:C3(r,t,o)}var Gs=rz||function(r){return p1.clearTimeout(r)};function qs(r,t){if(t)return r.slice();var o=r.length,f=ps?ps(o):new r.constructor(o);return r.copy(f),f}function Vr(r){var t=new r.constructor(r.byteLength);return new we(t).set(new we(r)),t}function zH(r,t){var o=t?Vr(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.byteLength)}function HH(r){var t=new r.constructor(r.source,Ni.exec(r));return t.lastIndex=r.lastIndex,t}function gH(r){return B8?N2(B8.call(r)):{}}function $s(r,t){var o=t?Vr(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)}function js(r,t){if(r!==t){var o=r!==e,f=r===null,m=r===r,d=i3(r),g=t!==e,L=t===null,w=t===t,R=i3(t);if(!L&&!R&&!d&&r>t||d&&g&&w&&!L&&!R||f&&g&&w||!o&&w||!m)return 1;if(!f&&!d&&!R&&r=L)return w;var R=o[f];return w*(R=="desc"?-1:1)}}return r.index-t.index}function Ys(r,t,o,f){for(var m=-1,d=r.length,g=o.length,L=-1,w=t.length,R=o1(d-g,0),O=k(w+R),I=!f;++L1?o[m-1]:e,g=m>2?o[2]:e;for(d=r.length>3&&typeof d=="function"?(m--,d):e,g&&R1(o[0],o[1],g)&&(d=m<3?e:d,m=1),t=N2(t);++f-1?m[d?t[g]:g]:e}}function eo(r){return H4(function(t){var o=t.length,f=o,m=V3.prototype.thru;for(r&&t.reverse();f--;){var d=t[f];if(typeof d!="function")throw new g3(i);if(m&&!g&&$e(d)=="wrapper")var g=new V3([],!0)}for(f=g?f:o;++f1&&g2.reverse(),O&&wL))return!1;var R=d.get(r),O=d.get(t);if(R&&O)return R==t&&O==r;var I=-1,$=!0,e2=o&S?new T6:e;for(d.set(r,t),d.set(t,r);++I1?"& ":"")+t[f],t=t.join(o>2?", ":" "),r.replace(Dv,`{ +(()=>{var uL=Object.create;var al=Object.defineProperty;var pL=Object.getOwnPropertyDescriptor;var mL=Object.getOwnPropertyNames;var hL=Object.getPrototypeOf,vL=Object.prototype.hasOwnProperty;var Q1=(e,c)=>()=>(c||e((c={exports:{}}).exports,c),c.exports);var dL=(e,c,a,n)=>{if(c&&typeof c=="object"||typeof c=="function")for(let i of mL(c))!vL.call(e,i)&&i!==a&&al(e,i,{get:()=>c[i],enumerable:!(n=pL(c,i))||n.enumerable});return e};var b2=(e,c,a)=>(a=e!=null?uL(hL(e)):{},dL(c||!e||!e.__esModule?al(a,"default",{value:e,enumerable:!0}):a,e));var Z8=Q1((A0,Q8)=>{(function(){var e,c="4.17.21",a=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,_=1,R=2,W=4,g=8,H=16,C=32,b=64,D=128,U=256,I=512,J=30,A="...",N=800,E=16,T=1,$=2,K=3,Y=1/0,q=9007199254740991,t2=17976931348623157e292,s2=NaN,i2=4294967295,M2=i2-1,L2=i2>>>1,K2=[["ary",D],["bind",_],["bindKey",R],["curry",g],["curryRight",H],["flip",I],["partial",C],["partialRight",b],["rearg",U]],a1="[object Arguments]",y1="[object Array]",n3="[object AsyncFunction]",H1="[object Boolean]",g1="[object Date]",e4="[object DOMException]",X2="[object Error]",$1="[object Function]",D3="[object GeneratorFunction]",B2="[object Map]",N6="[object Number]",Sa="[object Null]",F3="[object Object]",he="[object Promise]",b6="[object Proxy]",k6="[object RegExp]",R1="[object Set]",m4="[object String]",z0="[object Symbol]",E8="[object Undefined]",c4="[object WeakMap]",Na="[object WeakSet]",A6="[object ArrayBuffer]",I4="[object DataView]",_8="[object Float32Array]",P8="[object Float64Array]",T8="[object Int8Array]",ba="[object Int16Array]",ka="[object Int32Array]",Aa="[object Uint8Array]",Ea="[object Uint8ClampedArray]",_a="[object Uint16Array]",Pa="[object Uint32Array]",Ev=/\b__p \+= '';/g,_v=/\b(__p \+=) '' \+/g,Pv=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wi=/&(?:amp|lt|gt|quot|#39);/g,Si=/[&<>"']/g,Tv=RegExp(wi.source),Rv=RegExp(Si.source),Dv=/<%-([\s\S]+?)%>/g,Fv=/<%([\s\S]+?)%>/g,Ni=/<%=([\s\S]+?)%>/g,Ov=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iv=/^\w*$/,Bv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ta=/[\\^$.*+?()[\]{}|]/g,Uv=RegExp(Ta.source),Ra=/^\s+/,Wv=/\s/,Gv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qv=/\{\n\/\* \[wrapped with (.+)\] \*/,$v=/,? & /,jv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yv=/[()=,{}\[\]\/\s]/,Kv=/\\(\\)?/g,Xv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bi=/\w*$/,Qv=/^[-+]0x[0-9a-f]+$/i,Zv=/^0b[01]+$/i,Jv=/^\[object .+?Constructor\]$/,ed=/^0o[0-7]+$/i,cd=/^(?:0|[1-9]\d*)$/,ad=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,rd=/['\n\r\u2028\u2029\\]/g,de="\\ud800-\\udfff",nd="\\u0300-\\u036f",td="\\ufe20-\\ufe2f",id="\\u20d0-\\u20ff",ki=nd+td+id,Ai="\\u2700-\\u27bf",Ei="a-z\\xdf-\\xf6\\xf8-\\xff",sd="\\xac\\xb1\\xd7\\xf7",od="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ld="\\u2000-\\u206f",fd=" \\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",Pi="\\ufe0e\\ufe0f",Ti=sd+od+ld+fd,Da="['\u2019]",ud="["+de+"]",Ri="["+Ti+"]",ze="["+ki+"]",Di="\\d+",pd="["+Ai+"]",Fi="["+Ei+"]",Oi="[^"+de+Ti+Di+Ai+Ei+_i+"]",Fa="\\ud83c[\\udffb-\\udfff]",md="(?:"+ze+"|"+Fa+")",Ii="[^"+de+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ia="[\\ud800-\\udbff][\\udc00-\\udfff]",H0="["+_i+"]",Bi="\\u200d",Ui="(?:"+Fi+"|"+Oi+")",hd="(?:"+H0+"|"+Oi+")",Wi="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",Gi="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",qi=md+"?",$i="["+Pi+"]?",vd="(?:"+Bi+"(?:"+[Ii,Oa,Ia].join("|")+")"+$i+qi+")*",dd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ji=$i+qi+vd,Hd="(?:"+[pd,Oa,Ia].join("|")+")"+ji,gd="(?:"+[Ii+ze+"?",ze,Oa,Ia,ud].join("|")+")",Vd=RegExp(Da,"g"),Md=RegExp(ze,"g"),Ba=RegExp(Fa+"(?="+Fa+")|"+gd+ji,"g"),Cd=RegExp([H0+"?"+Fi+"+"+Wi+"(?="+[Ri,H0,"$"].join("|")+")",hd+"+"+Gi+"(?="+[Ri,H0+Ui,"$"].join("|")+")",H0+"?"+Ui+"+"+Wi,H0+"+"+Gi,zd,dd,Di,Hd].join("|"),"g"),Ld=RegExp("["+Bi+de+ki+Pi+"]"),xd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yd=["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"],wd=-1,T2={};T2[_8]=T2[P8]=T2[T8]=T2[ba]=T2[ka]=T2[Aa]=T2[Ea]=T2[_a]=T2[Pa]=!0,T2[a1]=T2[y1]=T2[A6]=T2[H1]=T2[I4]=T2[g1]=T2[X2]=T2[$1]=T2[B2]=T2[N6]=T2[F3]=T2[k6]=T2[R1]=T2[m4]=T2[c4]=!1;var E2={};E2[a1]=E2[y1]=E2[A6]=E2[I4]=E2[H1]=E2[g1]=E2[_8]=E2[P8]=E2[T8]=E2[ba]=E2[ka]=E2[B2]=E2[N6]=E2[F3]=E2[k6]=E2[R1]=E2[m4]=E2[z0]=E2[Aa]=E2[Ea]=E2[_a]=E2[Pa]=!0,E2[X2]=E2[$1]=E2[c4]=!1;var Sd={\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"},Nd={"&":"&","<":"<",">":">",'"':""","'":"'"},bd={"&":"&","<":"<",">":">",""":'"',"'":"'"},kd={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ad=parseFloat,Ed=parseInt,Yi=typeof global=="object"&&global&&global.Object===Object&&global,_d=typeof self=="object"&&self&&self.Object===Object&&self,m1=Yi||_d||Function("return this")(),Ua=typeof A0=="object"&&A0&&!A0.nodeType&&A0,E6=Ua&&typeof Q8=="object"&&Q8&&!Q8.nodeType&&Q8,Ki=E6&&E6.exports===Ua,Wa=Ki&&Yi.process,g3=function(){try{var y=E6&&E6.require&&E6.require("util").types;return y||Wa&&Wa.binding&&Wa.binding("util")}catch{}}(),Xi=g3&&g3.isArrayBuffer,Qi=g3&&g3.isDate,Zi=g3&&g3.isMap,Ji=g3&&g3.isRegExp,es=g3&&g3.isSet,cs=g3&&g3.isTypedArray;function t3(y,P,k){switch(k.length){case 0:return y.call(P);case 1:return y.call(P,k[0]);case 2:return y.call(P,k[0],k[1]);case 3:return y.call(P,k[0],k[1],k[2])}return y.apply(P,k)}function Pd(y,P,k,X){for(var o2=-1,x2=y==null?0:y.length;++o2-1}function Ga(y,P,k){for(var X=-1,o2=y==null?0:y.length;++X-1;);return k}function ls(y,P){for(var k=y.length;k--&&g0(P,y[k],0)>-1;);return k}function Wd(y,P){for(var k=y.length,X=0;k--;)y[k]===P&&++X;return X}var Gd=Ya(Sd),qd=Ya(Nd);function $d(y){return"\\"+kd[y]}function jd(y,P){return y==null?e:y[P]}function V0(y){return Ld.test(y)}function Yd(y){return xd.test(y)}function Kd(y){for(var P,k=[];!(P=y.next()).done;)k.push(P.value);return k}function Za(y){var P=-1,k=Array(y.size);return y.forEach(function(X,o2){k[++P]=[o2,X]}),k}function fs(y,P){return function(k){return y(P(k))}}function W4(y,P){for(var k=-1,X=y.length,o2=0,x2=[];++k-1}function Rz(r,t){var o=this.__data__,f=Te(o,r);return f<0?(++this.size,o.push([r,t])):o[f][1]=t,this}h4.prototype.clear=Ez,h4.prototype.delete=_z,h4.prototype.get=Pz,h4.prototype.has=Tz,h4.prototype.set=Rz;function v4(r){var t=-1,o=r==null?0:r.length;for(this.clear();++t=t?r:t)),r}function L3(r,t,o,f,m,d){var V,x=t&h,w=t&z,F=t&M;if(o&&(V=m?o(r,f,m,d):o(r)),V!==e)return V;if(!q2(r))return r;var O=l2(r);if(O){if(V=IH(r),!x)return j1(r,V)}else{var B=S1(r),j=B==$1||B==D3;if(X4(r))return $s(r,x);if(B==F3||B==a1||j&&!m){if(V=w||j?{}:uo(r),!x)return w?bH(r,Zz(V,r)):NH(r,Cs(V,r))}else{if(!E2[B])return m?r:{};V=BH(r,B,x)}}d||(d=new I3);var e2=d.get(r);if(e2)return e2;d.set(r,V),Bo(r)?r.forEach(function(n2){V.add(L3(n2,t,o,n2,r,d))}):Oo(r)&&r.forEach(function(n2,v2){V.set(v2,L3(n2,t,o,v2,r,d))});var r2=F?w?xr:Lr:w?K1:h1,p2=O?e:r2(r);return V3(p2||r,function(n2,v2){p2&&(v2=n2,n2=r[v2]),U8(V,v2,L3(n2,t,o,v2,r,d))}),V}function Jz(r){var t=h1(r);return function(o){return Ls(o,r,t)}}function Ls(r,t,o){var f=o.length;if(r==null)return!f;for(r=N2(r);f--;){var m=o[f],d=t[m],V=r[m];if(V===e&&!(m in r)||!d(V))return!1}return!0}function xs(r,t,o){if(typeof r!="function")throw new M3(i);return K8(function(){r.apply(e,o)},t)}function W8(r,t,o,f){var m=-1,d=He,V=!0,x=r.length,w=[],F=t.length;if(!x)return w;o&&(t=U2(t,i3(o))),f?(d=Ga,V=!1):t.length>=a&&(d=R8,V=!1,t=new T6(t));e:for(;++mm?0:m+o),f=f===e||f>m?m:u2(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 tr=Zs(),Ss=Zs(!0);function a4(r,t){return r&&tr(r,t,h1)}function ir(r,t){return r&&Ss(r,t,h1)}function De(r,t){return B4(t,function(o){return V4(r[o])})}function D6(r,t){t=Y4(t,r);for(var o=0,f=t.length;r!=null&&ot}function aH(r,t){return r!=null&&w2.call(r,t)}function rH(r,t){return r!=null&&t in N2(r)}function nH(r,t,o){return r>=w1(t,o)&&r=120&&O.length>=120)?new T6(V&&O):e}O=r[0];var B=-1,j=x[0];e:for(;++B-1;)x!==r&&Ne.call(x,w,1),Ne.call(r,w,1);return r}function Fs(r,t){for(var o=r?t.length:0,f=o-1;o--;){var m=t[o];if(o==f||m!==d){var d=m;g4(m)?Ne.call(r,m,1):dr(r,m)}}return r}function mr(r,t){return r+Ae(Hs()*(t-r+1))}function zH(r,t,o,f){for(var m=-1,d=l1(ke((t-r)/(o||1)),0),V=k(d);d--;)V[f?d:++m]=r,r+=o;return V}function hr(r,t){var o="";if(!r||t<1||t>q)return o;do t%2&&(o+=r),t=Ae(t/2),t&&(r+=r);while(t);return o}function m2(r,t){return Ar(ho(r,t,X1),r+"")}function HH(r){return Ms(k0(r))}function gH(r,t){var o=k0(r);return Ye(o,R6(t,0,o.length))}function $8(r,t,o,f){if(!q2(r))return r;t=Y4(t,r);for(var m=-1,d=t.length,V=d-1,x=r;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=r[d];V!==null&&!o3(V)&&(o?V<=t:V=a){var F=t?null:_H(r);if(F)return Ve(F);V=!1,m=R8,w=new T6}else w=t?[]:x;e:for(;++f=f?r:x3(r,t,o)}var qs=fz||function(r){return m1.clearTimeout(r)};function $s(r,t){if(t)return r.slice();var o=r.length,f=ms?ms(o):new r.constructor(o);return r.copy(f),f}function Vr(r){var t=new r.constructor(r.byteLength);return new we(t).set(new we(r)),t}function xH(r,t){var o=t?Vr(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.byteLength)}function yH(r){var t=new r.constructor(r.source,bi.exec(r));return t.lastIndex=r.lastIndex,t}function wH(r){return B8?N2(B8.call(r)):{}}function js(r,t){var o=t?Vr(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)}function Ys(r,t){if(r!==t){var o=r!==e,f=r===null,m=r===r,d=o3(r),V=t!==e,x=t===null,w=t===t,F=o3(t);if(!x&&!F&&!d&&r>t||d&&V&&w&&!x&&!F||f&&V&&w||!o&&w||!m)return 1;if(!f&&!d&&!F&&r=x)return w;var F=o[f];return w*(F=="desc"?-1:1)}}return r.index-t.index}function Ks(r,t,o,f){for(var m=-1,d=r.length,V=o.length,x=-1,w=t.length,F=l1(d-V,0),O=k(w+F),B=!f;++x1?o[m-1]:e,V=m>2?o[2]:e;for(d=r.length>3&&typeof d=="function"?(m--,d):e,V&&F1(o[0],o[1],V)&&(d=m<3?e:d,m=1),t=N2(t);++f-1?m[d?t[V]:V]:e}}function co(r){return H4(function(t){var o=t.length,f=o,m=C3.prototype.thru;for(r&&t.reverse();f--;){var d=t[f];if(typeof d!="function")throw new M3(i);if(m&&!V&&$e(d)=="wrapper")var V=new C3([],!0)}for(f=V?f:o;++f1&&g2.reverse(),O&&wx))return!1;var F=d.get(r),O=d.get(t);if(F&&O)return F==t&&O==r;var B=-1,j=!0,e2=o&S?new T6:e;for(d.set(r,t),d.set(t,r);++B1?"& ":"")+t[f],t=t.join(o>2?", ":" "),r.replace(Gv,`{ /* [wrapped with `+t+`] */ -`)}function RH(r){return l2(r)||B6(r)||!!(vs&&r&&r[vs])}function g4(r,t){var o=typeof r;return t=t??G,!!t&&(o=="number"||o!="symbol"&&Yv.test(r))&&r>-1&&r%1==0&&r0){if(++t>=N)return arguments[0]}else t=0;return r.apply(e,arguments)}}function Ye(r,t){var o=-1,f=r.length,m=f-1;for(t=t===e?f:t;++o1?r[t-1]:e;return o=typeof o=="function"?(r.pop(),o):e,wo(r,o)});function So(r){var t=v(r);return t.__chain__=!0,t}function jg(r,t){return t(r),r}function Ke(r,t){return t(r)}var Yg=H4(function(r){var t=r.length,o=t?r[0]:0,f=this.__wrapped__,m=function(d){return nr(d,r)};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:Ke,args:[m],thisArg:e}),new V3(f,this.__chain__).thru(function(d){return t&&!d.length&&d.push(e),d}))});function Kg(){return So(this)}function Xg(){return new V3(this.value(),this.__chain__)}function Qg(){this.__values__===e&&(this.__values__=Io(this.value()));var r=this.__index__>=this.__values__.length,t=r?e:this.__values__[this.__index__++];return{done:r,value:t}}function Zg(){return this}function Jg(r){for(var t,o=this;o instanceof Pe;){var f=Vo(o);f.__index__=0,f.__values__=e,t?m.__wrapped__=f:t=f;var m=f;o=o.__wrapped__}return m.__wrapped__=r,t}function eV(){var r=this.__wrapped__;if(r instanceof z2){var t=r;return this.__actions__.length&&(t=new z2(this)),t=t.reverse(),t.__actions__.push({func:Ke,args:[_r],thisArg:e}),new V3(t,this.__chain__)}return this.thru(_r)}function cV(){return Us(this.__wrapped__,this.__actions__)}var aV=Ie(function(r,t,o){w2.call(r,o)?++r[o]:d4(r,o,1)});function rV(r,t,o){var f=l2(r)?cs:jz;return o&&R1(r,t,o)&&(t=e),f(r,a2(t,3))}function nV(r,t){var o=l2(r)?I4:ys;return o(r,a2(t,3))}var tV=Js(Mo),iV=Js(Co);function sV(r,t){return H1(Xe(r,t),1)}function oV(r,t){return H1(Xe(r,t),j)}function lV(r,t,o){return o=o===e?1:u2(o),H1(Xe(r,t),o)}function No(r,t){var o=l2(r)?H3:$4;return o(r,a2(t,3))}function ko(r,t){var o=l2(r)?Nd:xs;return o(r,a2(t,3))}var fV=Ie(function(r,t,o){w2.call(r,o)?r[o].push(t):d4(r,o,[t])});function uV(r,t,o,f){r=q1(r)?r:k0(r),o=o&&!f?u2(o):0;var m=r.length;return o<0&&(o=o1(m+o,0)),c7(r)?o<=m&&r.indexOf(t,o)>-1:!!m&&H0(r,t,o)>-1}var pV=m2(function(r,t,o){var f=-1,m=typeof t=="function",d=q1(r)?k(r.length):[];return $4(r,function(g){d[++f]=m?r3(t,g,o):W8(g,t,o)}),d}),mV=Ie(function(r,t,o){d4(r,o,t)});function Xe(r,t){var o=l2(r)?I2:As;return o(r,a2(t,3))}function hV(r,t,o,f){return r==null?[]:(l2(t)||(t=t==null?[]:[t]),o=f?e:o,l2(o)||(o=o==null?[]:[o]),Ts(r,t,o))}var vV=Ie(function(r,t,o){r[o?0:1].push(t)},function(){return[[],[]]});function dV(r,t,o){var f=l2(r)?qa:ts,m=arguments.length<3;return f(r,a2(t,4),o,m,$4)}function zV(r,t,o){var f=l2(r)?kd:ts,m=arguments.length<3;return f(r,a2(t,4),o,m,xs)}function HV(r,t){var o=l2(r)?I4:ys;return o(r,Je(a2(t,3)))}function gV(r){var t=l2(r)?Vs:uH;return t(r)}function VV(r,t,o){(o?R1(r,t,o):t===e)?t=1:t=u2(t);var f=l2(r)?Uz:pH;return f(r,t)}function MV(r){var t=l2(r)?Wz:hH;return t(r)}function CV(r){if(r==null)return 0;if(q1(r))return c7(r)?V0(r):r.length;var t=y1(r);return t==B2||t==P1?r.size:fr(r).length}function LV(r,t,o){var f=l2(r)?$a:vH;return o&&R1(r,t,o)&&(t=e),f(r,a2(t,3))}var xV=m2(function(r,t){if(r==null)return[];var o=t.length;return o>1&&R1(r,t[0],t[1])?t=[]:o>2&&R1(t[0],t[1],t[2])&&(t=[t[0]]),Ts(r,H1(t,1),[])}),Qe=nz||function(){return p1.Date.now()};function yV(r,t){if(typeof t!="function")throw new g3(i);return r=u2(r),function(){if(--r<1)return t.apply(this,arguments)}}function bo(r,t,o){return t=o?e:t,t=r&&t==null?r.length:t,z4(r,F,e,e,e,e,t)}function Ao(r,t){var o;if(typeof t!="function")throw new g3(i);return r=u2(r),function(){return--r>0&&(o=t.apply(this,arguments)),r<=1&&(t=e),o}}var Pr=m2(function(r,t,o){var f=E;if(o.length){var m=W4(o,S0(Pr));f|=C}return z4(r,f,t,o,m)}),_o=m2(function(r,t,o){var f=E|D;if(o.length){var m=W4(o,S0(_o));f|=C}return z4(t,f,r,o,m)});function Eo(r,t,o){t=o?e:t;var f=z4(r,M,e,e,e,e,e,t);return f.placeholder=Eo.placeholder,f}function Po(r,t,o){t=o?e:t;var f=z4(r,H,e,e,e,e,e,t);return f.placeholder=Po.placeholder,f}function To(r,t,o){var f,m,d,g,L,w,R=0,O=!1,I=!1,$=!0;if(typeof r!="function")throw new g3(i);t=x3(t)||0,G2(o)&&(O=!!o.leading,I="maxWait"in o,d=I?o1(x3(o.maxWait)||0,t):d,$="trailing"in o?!!o.trailing:$);function e2(r1){var I3=f,C4=m;return f=m=e,R=r1,g=r.apply(C4,I3),g}function r2(r1){return R=r1,L=Y8(v2,t),O?e2(r1):g}function p2(r1){var I3=r1-w,C4=r1-R,el=t-I3;return I?x1(el,d-C4):el}function n2(r1){var I3=r1-w,C4=r1-R;return w===e||I3>=t||I3<0||I&&C4>=d}function v2(){var r1=Qe();if(n2(r1))return g2(r1);L=Y8(v2,p2(r1))}function g2(r1){return L=e,$&&f?e2(r1):(f=m=e,g)}function s3(){L!==e&&Gs(L),R=0,f=w=m=L=e}function D1(){return L===e?g:g2(Qe())}function o3(){var r1=Qe(),I3=n2(r1);if(f=arguments,m=this,w=r1,I3){if(L===e)return r2(w);if(I)return Gs(L),L=Y8(v2,t),e2(w)}return L===e&&(L=Y8(v2,t)),g}return o3.cancel=s3,o3.flush=D1,o3}var wV=m2(function(r,t){return Ls(r,1,t)}),SV=m2(function(r,t,o){return Ls(r,x3(t)||0,o)});function NV(r){return z4(r,B)}function Ze(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new g3(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 g=r.apply(this,f);return o.cache=d.set(m,g)||d,g};return o.cache=new(Ze.Cache||v4),o}Ze.Cache=v4;function Je(r){if(typeof r!="function")throw new g3(i);return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}function kV(r){return Ao(2,r)}var bV=dH(function(r,t){t=t.length==1&&l2(t[0])?I2(t[0],n3(a2())):I2(H1(t,1),n3(a2()));var o=t.length;return m2(function(f){for(var m=-1,d=x1(f.length,o);++m=t}),B6=Ns(function(){return arguments}())?Ns:function(r){return X2(r)&&w2.call(r,"callee")&&!hs.call(r,"callee")},l2=k.isArray,qV=Ki?n3(Ki):Jz;function q1(r){return r!=null&&e7(r.length)&&!V4(r)}function a1(r){return X2(r)&&q1(r)}function $V(r){return r===!0||r===!1||X2(r)&&T1(r)==d1}var X4=iz||$r,jV=Xi?n3(Xi):eH;function YV(r){return X2(r)&&r.nodeType===1&&!K8(r)}function KV(r){if(r==null)return!0;if(q1(r)&&(l2(r)||typeof r=="string"||typeof r.splice=="function"||X4(r)||N0(r)||B6(r)))return!r.length;var t=y1(r);if(t==B2||t==P1)return!r.size;if(j8(r))return!fr(r).length;for(var o in r)if(w2.call(r,o))return!1;return!0}function XV(r,t){return G8(r,t)}function QV(r,t,o){o=typeof o=="function"?o:e;var f=o?o(r,t):e;return f===e?G8(r,t,e,o):!!f}function Rr(r){if(!X2(r))return!1;var t=T1(r);return t==K2||t==e4||typeof r.message=="string"&&typeof r.name=="string"&&!K8(r)}function ZV(r){return typeof r=="number"&&ds(r)}function V4(r){if(!G2(r))return!1;var t=T1(r);return t==W1||t==R3||t==a3||t==k6}function Do(r){return typeof r=="number"&&r==u2(r)}function e7(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=G}function G2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function X2(r){return r!=null&&typeof r=="object"}var Fo=Qi?n3(Qi):aH;function JV(r,t){return r===t||lr(r,t,wr(t))}function eM(r,t,o){return o=typeof o=="function"?o:e,lr(r,t,wr(t),o)}function cM(r){return Oo(r)&&r!=+r}function aM(r){if(OH(r))throw new o2(n);return ks(r)}function rM(r){return r===null}function nM(r){return r==null}function Oo(r){return typeof r=="number"||X2(r)&&T1(r)==N6}function K8(r){if(!X2(r)||T1(r)!=D3)return!1;var t=Se(r);if(t===null)return!0;var o=w2.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Le.call(o)==ez}var Dr=Zi?n3(Zi):rH;function tM(r){return Do(r)&&r>=-G&&r<=G}var Bo=Ji?n3(Ji):nH;function c7(r){return typeof r=="string"||!l2(r)&&X2(r)&&T1(r)==m4}function i3(r){return typeof r=="symbol"||X2(r)&&T1(r)==d0}var N0=es?n3(es):tH;function iM(r){return r===e}function sM(r){return X2(r)&&y1(r)==c4}function oM(r){return X2(r)&&T1(r)==Na}var lM=qe(ur),fM=qe(function(r,t){return r<=t});function Io(r){if(!r)return[];if(q1(r))return c7(r)?F3(r):G1(r);if(R8&&r[R8])return Ud(r[R8]());var t=y1(r),o=t==B2?Za:t==P1?Ve:k0;return o(r)}function M4(r){if(!r)return r===0?r:0;if(r=x3(r),r===j||r===-j){var t=r<0?-1:1;return t*t2}return r===r?r:0}function u2(r){var t=M4(r),o=t%1;return t===t?o?t-o:t:0}function Uo(r){return r?R6(u2(r),0,i2):0}function x3(r){if(typeof r=="number")return r;if(i3(r))return s2;if(G2(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=G2(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=is(r);var o=qv.test(r);return o||jv.test(r)?yd(r.slice(2),o?2:8):Gv.test(r)?s2:+r}function Wo(r){return r4(r,$1(r))}function uM(r){return r?R6(u2(r),-G,G):r===0?r:0}function y2(r){return r==null?"":t3(r)}var pM=y0(function(r,t){if(j8(t)||q1(t)){r4(t,m1(t),r);return}for(var o in t)w2.call(t,o)&&I8(r,o,t[o])}),Go=y0(function(r,t){r4(t,$1(t),r)}),a7=y0(function(r,t,o,f){r4(t,$1(t),r,f)}),mM=y0(function(r,t,o,f){r4(t,m1(t),r,f)}),hM=H4(nr);function vM(r,t){var o=x0(r);return t==null?o:Ms(o,t)}var dM=m2(function(r,t){r=N2(r);var o=-1,f=t.length,m=f>2?t[2]:e;for(m&&R1(t[0],t[1],m)&&(f=1);++o1),d}),r4(r,xr(r),o),f&&(o=M3(o,h|z|V,SH));for(var m=t.length;m--;)dr(o,t[m]);return o});function PM(r,t){return $o(r,Je(a2(t)))}var TM=H4(function(r,t){return r==null?{}:oH(r,t)});function $o(r,t){if(r==null)return{};var o=I2(xr(r),function(f){return[f]});return t=a2(t),Rs(r,o,function(f,m){return t(f,m[0])})}function RM(r,t,o){t=Y4(t,r);var f=-1,m=t.length;for(m||(m=1,r=e);++ft){var f=r;r=t,t=f}if(o||r%1||t%1){var m=zs();return x1(r+m*(t-r+xd("1e-"+((m+"").length-1))),t)}return mr(r,t)}var jM=w0(function(r,t,o){return t=t.toLowerCase(),r+(o?Ko(t):t)});function Ko(r){return Br(y2(r).toLowerCase())}function Xo(r){return r=y2(r),r&&r.replace(Kv,Dd).replace(hd,"")}function YM(r,t,o){r=y2(r),t=t3(t);var f=r.length;o=o===e?f:R6(u2(o),0,f);var m=o;return o-=t.length,o>=0&&r.slice(o,m)==t}function KM(r){return r=y2(r),r&&kv.test(r)?r.replace(wi,Fd):r}function XM(r){return r=y2(r),r&&Tv.test(r)?r.replace(Ta,"\\$&"):r}var QM=w0(function(r,t,o){return r+(o?"-":"")+t.toLowerCase()}),ZM=w0(function(r,t,o){return r+(o?" ":"")+t.toLowerCase()}),JM=Zs("toLowerCase");function eC(r,t,o){r=y2(r),t=u2(t);var f=t?V0(r):0;if(!t||f>=t)return r;var m=(t-f)/2;return Ge(Ae(m),o)+r+Ge(be(m),o)}function cC(r,t,o){r=y2(r),t=u2(t);var f=t?V0(r):0;return t&&f>>0,o?(r=y2(r),r&&(typeof t=="string"||t!=null&&!Dr(t))&&(t=t3(t),!t&&g0(r))?K4(F3(r),0,o):r.split(t,o)):[]}var oC=w0(function(r,t,o){return r+(o?" ":"")+Br(t)});function lC(r,t,o){return r=y2(r),o=o==null?0:R6(u2(o),0,r.length),t=t3(t),r.slice(o,o+t.length)==t}function fC(r,t,o){var f=v.templateSettings;o&&R1(r,t,o)&&(t=e),r=y2(r),t=a7({},t,f,to);var m=a7({},t.imports,f.imports,to),d=m1(m),g=Qa(m,d),L,w,R=0,O=t.interpolate||ve,I="__p += '",$=Ja((t.escape||ve).source+"|"+O.source+"|"+(O===Si?Wv:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),e2="//# sourceURL="+(w2.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gd+"]")+` -`;r.replace($,function(n2,v2,g2,s3,D1,o3){return g2||(g2=s3),I+=r.slice(R,o3).replace(Xv,Od),v2&&(L=!0,I+=`' + +`)}function WH(r){return l2(r)||I6(r)||!!(ds&&r&&r[ds])}function g4(r,t){var o=typeof r;return t=t??q,!!t&&(o=="number"||o!="symbol"&&cd.test(r))&&r>-1&&r%1==0&&r0){if(++t>=N)return arguments[0]}else t=0;return r.apply(e,arguments)}}function Ye(r,t){var o=-1,f=r.length,m=f-1;for(t=t===e?f:t;++o1?r[t-1]:e;return o=typeof o=="function"?(r.pop(),o):e,So(r,o)});function No(r){var t=v(r);return t.__chain__=!0,t}function eV(r,t){return t(r),r}function Ke(r,t){return t(r)}var cV=H4(function(r){var t=r.length,o=t?r[0]:0,f=this.__wrapped__,m=function(d){return nr(d,r)};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:Ke,args:[m],thisArg:e}),new C3(f,this.__chain__).thru(function(d){return t&&!d.length&&d.push(e),d}))});function aV(){return No(this)}function rV(){return new C3(this.value(),this.__chain__)}function nV(){this.__values__===e&&(this.__values__=Uo(this.value()));var r=this.__index__>=this.__values__.length,t=r?e:this.__values__[this.__index__++];return{done:r,value:t}}function tV(){return this}function iV(r){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__=r,t}function sV(){var r=this.__wrapped__;if(r instanceof z2){var t=r;return this.__actions__.length&&(t=new z2(this)),t=t.reverse(),t.__actions__.push({func:Ke,args:[Er],thisArg:e}),new C3(t,this.__chain__)}return this.thru(Er)}function oV(){return Ws(this.__wrapped__,this.__actions__)}var lV=Be(function(r,t,o){w2.call(r,o)?++r[o]:d4(r,o,1)});function fV(r,t,o){var f=l2(r)?as:eH;return o&&F1(r,t,o)&&(t=e),f(r,a2(t,3))}function uV(r,t){var o=l2(r)?B4:ws;return o(r,a2(t,3))}var pV=eo(Co),mV=eo(Lo);function hV(r,t){return V1(Xe(r,t),1)}function vV(r,t){return V1(Xe(r,t),Y)}function dV(r,t,o){return o=o===e?1:u2(o),V1(Xe(r,t),o)}function bo(r,t){var o=l2(r)?V3:$4;return o(r,a2(t,3))}function ko(r,t){var o=l2(r)?Td:ys;return o(r,a2(t,3))}var zV=Be(function(r,t,o){w2.call(r,o)?r[o].push(t):d4(r,o,[t])});function HV(r,t,o,f){r=Y1(r)?r:k0(r),o=o&&!f?u2(o):0;var m=r.length;return o<0&&(o=l1(m+o,0)),c7(r)?o<=m&&r.indexOf(t,o)>-1:!!m&&g0(r,t,o)>-1}var gV=m2(function(r,t,o){var f=-1,m=typeof t=="function",d=Y1(r)?k(r.length):[];return $4(r,function(V){d[++f]=m?t3(t,V,o):G8(V,t,o)}),d}),VV=Be(function(r,t,o){d4(r,o,t)});function Xe(r,t){var o=l2(r)?U2:Es;return o(r,a2(t,3))}function MV(r,t,o,f){return r==null?[]:(l2(t)||(t=t==null?[]:[t]),o=f?e:o,l2(o)||(o=o==null?[]:[o]),Rs(r,t,o))}var CV=Be(function(r,t,o){r[o?0:1].push(t)},function(){return[[],[]]});function LV(r,t,o){var f=l2(r)?qa:is,m=arguments.length<3;return f(r,a2(t,4),o,m,$4)}function xV(r,t,o){var f=l2(r)?Rd:is,m=arguments.length<3;return f(r,a2(t,4),o,m,ys)}function yV(r,t){var o=l2(r)?B4:ws;return o(r,Je(a2(t,3)))}function wV(r){var t=l2(r)?Ms:HH;return t(r)}function SV(r,t,o){(o?F1(r,t,o):t===e)?t=1:t=u2(t);var f=l2(r)?Kz:gH;return f(r,t)}function NV(r){var t=l2(r)?Xz:MH;return t(r)}function bV(r){if(r==null)return 0;if(Y1(r))return c7(r)?M0(r):r.length;var t=S1(r);return t==B2||t==R1?r.size:fr(r).length}function kV(r,t,o){var f=l2(r)?$a:CH;return o&&F1(r,t,o)&&(t=e),f(r,a2(t,3))}var AV=m2(function(r,t){if(r==null)return[];var o=t.length;return o>1&&F1(r,t[0],t[1])?t=[]:o>2&&F1(t[0],t[1],t[2])&&(t=[t[0]]),Rs(r,V1(t,1),[])}),Qe=uz||function(){return m1.Date.now()};function EV(r,t){if(typeof t!="function")throw new M3(i);return r=u2(r),function(){if(--r<1)return t.apply(this,arguments)}}function Ao(r,t,o){return t=o?e:t,t=r&&t==null?r.length:t,z4(r,D,e,e,e,e,t)}function Eo(r,t){var o;if(typeof t!="function")throw new M3(i);return r=u2(r),function(){return--r>0&&(o=t.apply(this,arguments)),r<=1&&(t=e),o}}var Pr=m2(function(r,t,o){var f=_;if(o.length){var m=W4(o,N0(Pr));f|=C}return z4(r,f,t,o,m)}),_o=m2(function(r,t,o){var f=_|R;if(o.length){var m=W4(o,N0(_o));f|=C}return z4(t,f,r,o,m)});function Po(r,t,o){t=o?e:t;var f=z4(r,g,e,e,e,e,e,t);return f.placeholder=Po.placeholder,f}function To(r,t,o){t=o?e:t;var f=z4(r,H,e,e,e,e,e,t);return f.placeholder=To.placeholder,f}function Ro(r,t,o){var f,m,d,V,x,w,F=0,O=!1,B=!1,j=!0;if(typeof r!="function")throw new M3(i);t=w3(t)||0,q2(o)&&(O=!!o.leading,B="maxWait"in o,d=B?l1(w3(o.maxWait)||0,t):d,j="trailing"in o?!!o.trailing:j);function e2(n1){var U3=f,C4=m;return f=m=e,F=n1,V=r.apply(C4,U3),V}function r2(n1){return F=n1,x=K8(v2,t),O?e2(n1):V}function p2(n1){var U3=n1-w,C4=n1-F,cl=t-U3;return B?w1(cl,d-C4):cl}function n2(n1){var U3=n1-w,C4=n1-F;return w===e||U3>=t||U3<0||B&&C4>=d}function v2(){var n1=Qe();if(n2(n1))return g2(n1);x=K8(v2,p2(n1))}function g2(n1){return x=e,j&&f?e2(n1):(f=m=e,V)}function l3(){x!==e&&qs(x),F=0,f=w=m=x=e}function O1(){return x===e?V:g2(Qe())}function f3(){var n1=Qe(),U3=n2(n1);if(f=arguments,m=this,w=n1,U3){if(x===e)return r2(w);if(B)return qs(x),x=K8(v2,t),e2(w)}return x===e&&(x=K8(v2,t)),V}return f3.cancel=l3,f3.flush=O1,f3}var _V=m2(function(r,t){return xs(r,1,t)}),PV=m2(function(r,t,o){return xs(r,w3(t)||0,o)});function TV(r){return z4(r,I)}function Ze(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new M3(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=r.apply(this,f);return o.cache=d.set(m,V)||d,V};return o.cache=new(Ze.Cache||v4),o}Ze.Cache=v4;function Je(r){if(typeof r!="function")throw new M3(i);return function(){var t=arguments;switch(t.length){case 0:return!r.call(this);case 1:return!r.call(this,t[0]);case 2:return!r.call(this,t[0],t[1]);case 3:return!r.call(this,t[0],t[1],t[2])}return!r.apply(this,t)}}function RV(r){return Eo(2,r)}var DV=LH(function(r,t){t=t.length==1&&l2(t[0])?U2(t[0],i3(a2())):U2(V1(t,1),i3(a2()));var o=t.length;return m2(function(f){for(var m=-1,d=w1(f.length,o);++m=t}),I6=bs(function(){return arguments}())?bs:function(r){return Q2(r)&&w2.call(r,"callee")&&!vs.call(r,"callee")},l2=k.isArray,ZV=Xi?i3(Xi):iH;function Y1(r){return r!=null&&e7(r.length)&&!V4(r)}function r1(r){return Q2(r)&&Y1(r)}function JV(r){return r===!0||r===!1||Q2(r)&&D1(r)==H1}var X4=mz||$r,eM=Qi?i3(Qi):sH;function cM(r){return Q2(r)&&r.nodeType===1&&!X8(r)}function aM(r){if(r==null)return!0;if(Y1(r)&&(l2(r)||typeof r=="string"||typeof r.splice=="function"||X4(r)||b0(r)||I6(r)))return!r.length;var t=S1(r);if(t==B2||t==R1)return!r.size;if(Y8(r))return!fr(r).length;for(var o in r)if(w2.call(r,o))return!1;return!0}function rM(r,t){return q8(r,t)}function nM(r,t,o){o=typeof o=="function"?o:e;var f=o?o(r,t):e;return f===e?q8(r,t,e,o):!!f}function Rr(r){if(!Q2(r))return!1;var t=D1(r);return t==X2||t==e4||typeof r.message=="string"&&typeof r.name=="string"&&!X8(r)}function tM(r){return typeof r=="number"&&zs(r)}function V4(r){if(!q2(r))return!1;var t=D1(r);return t==$1||t==D3||t==n3||t==b6}function Fo(r){return typeof r=="number"&&r==u2(r)}function e7(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=q}function q2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function Q2(r){return r!=null&&typeof r=="object"}var Oo=Zi?i3(Zi):lH;function iM(r,t){return r===t||lr(r,t,wr(t))}function sM(r,t,o){return o=typeof o=="function"?o:e,lr(r,t,wr(t),o)}function oM(r){return Io(r)&&r!=+r}function lM(r){if($H(r))throw new o2(n);return ks(r)}function fM(r){return r===null}function uM(r){return r==null}function Io(r){return typeof r=="number"||Q2(r)&&D1(r)==N6}function X8(r){if(!Q2(r)||D1(r)!=F3)return!1;var t=Se(r);if(t===null)return!0;var o=w2.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Le.call(o)==sz}var Dr=Ji?i3(Ji):fH;function pM(r){return Fo(r)&&r>=-q&&r<=q}var Bo=es?i3(es):uH;function c7(r){return typeof r=="string"||!l2(r)&&Q2(r)&&D1(r)==m4}function o3(r){return typeof r=="symbol"||Q2(r)&&D1(r)==z0}var b0=cs?i3(cs):pH;function mM(r){return r===e}function hM(r){return Q2(r)&&S1(r)==c4}function vM(r){return Q2(r)&&D1(r)==Na}var dM=qe(ur),zM=qe(function(r,t){return r<=t});function Uo(r){if(!r)return[];if(Y1(r))return c7(r)?O3(r):j1(r);if(D8&&r[D8])return Kd(r[D8]());var t=S1(r),o=t==B2?Za:t==R1?Ve:k0;return o(r)}function M4(r){if(!r)return r===0?r:0;if(r=w3(r),r===Y||r===-Y){var t=r<0?-1:1;return t*t2}return r===r?r:0}function u2(r){var t=M4(r),o=t%1;return t===t?o?t-o:t:0}function Wo(r){return r?R6(u2(r),0,i2):0}function w3(r){if(typeof r=="number")return r;if(o3(r))return s2;if(q2(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=q2(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=ss(r);var o=Zv.test(r);return o||ed.test(r)?Ed(r.slice(2),o?2:8):Qv.test(r)?s2:+r}function Go(r){return r4(r,K1(r))}function HM(r){return r?R6(u2(r),-q,q):r===0?r:0}function y2(r){return r==null?"":s3(r)}var gM=w0(function(r,t){if(Y8(t)||Y1(t)){r4(t,h1(t),r);return}for(var o in t)w2.call(t,o)&&U8(r,o,t[o])}),qo=w0(function(r,t){r4(t,K1(t),r)}),a7=w0(function(r,t,o,f){r4(t,K1(t),r,f)}),VM=w0(function(r,t,o,f){r4(t,h1(t),r,f)}),MM=H4(nr);function CM(r,t){var o=y0(r);return t==null?o:Cs(o,t)}var LM=m2(function(r,t){r=N2(r);var o=-1,f=t.length,m=f>2?t[2]:e;for(m&&F1(t[0],t[1],m)&&(f=1);++o1),d}),r4(r,xr(r),o),f&&(o=L3(o,h|z|M,PH));for(var m=t.length;m--;)dr(o,t[m]);return o});function BM(r,t){return jo(r,Je(a2(t)))}var UM=H4(function(r,t){return r==null?{}:vH(r,t)});function jo(r,t){if(r==null)return{};var o=U2(xr(r),function(f){return[f]});return t=a2(t),Ds(r,o,function(f,m){return t(f,m[0])})}function WM(r,t,o){t=Y4(t,r);var f=-1,m=t.length;for(m||(m=1,r=e);++ft){var f=r;r=t,t=f}if(o||r%1||t%1){var m=Hs();return w1(r+m*(t-r+Ad("1e-"+((m+"").length-1))),t)}return mr(r,t)}var eC=S0(function(r,t,o){return t=t.toLowerCase(),r+(o?Xo(t):t)});function Xo(r){return Ir(y2(r).toLowerCase())}function Qo(r){return r=y2(r),r&&r.replace(ad,Gd).replace(Md,"")}function cC(r,t,o){r=y2(r),t=s3(t);var f=r.length;o=o===e?f:R6(u2(o),0,f);var m=o;return o-=t.length,o>=0&&r.slice(o,m)==t}function aC(r){return r=y2(r),r&&Rv.test(r)?r.replace(Si,qd):r}function rC(r){return r=y2(r),r&&Uv.test(r)?r.replace(Ta,"\\$&"):r}var nC=S0(function(r,t,o){return r+(o?"-":"")+t.toLowerCase()}),tC=S0(function(r,t,o){return r+(o?" ":"")+t.toLowerCase()}),iC=Js("toLowerCase");function sC(r,t,o){r=y2(r),t=u2(t);var f=t?M0(r):0;if(!t||f>=t)return r;var m=(t-f)/2;return Ge(Ae(m),o)+r+Ge(ke(m),o)}function oC(r,t,o){r=y2(r),t=u2(t);var f=t?M0(r):0;return t&&f>>0,o?(r=y2(r),r&&(typeof t=="string"||t!=null&&!Dr(t))&&(t=s3(t),!t&&V0(r))?K4(O3(r),0,o):r.split(t,o)):[]}var vC=S0(function(r,t,o){return r+(o?" ":"")+Ir(t)});function dC(r,t,o){return r=y2(r),o=o==null?0:R6(u2(o),0,r.length),t=s3(t),r.slice(o,o+t.length)==t}function zC(r,t,o){var f=v.templateSettings;o&&F1(r,t,o)&&(t=e),r=y2(r),t=a7({},t,f,io);var m=a7({},t.imports,f.imports,io),d=h1(m),V=Qa(m,d),x,w,F=0,O=t.interpolate||ve,B="__p += '",j=Ja((t.escape||ve).source+"|"+O.source+"|"+(O===Ni?Xv:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),e2="//# sourceURL="+(w2.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wd+"]")+` +`;r.replace(j,function(n2,v2,g2,l3,O1,f3){return g2||(g2=l3),B+=r.slice(F,f3).replace(rd,$d),v2&&(x=!0,B+=`' + __e(`+v2+`) + -'`),D1&&(w=!0,I+=`'; -`+D1+`; -__p += '`),g2&&(I+=`' + +'`),O1&&(w=!0,B+=`'; +`+O1+`; +__p += '`),g2&&(B+=`' + ((__t = (`+g2+`)) == null ? '' : __t) + -'`),R=o3+n2.length,n2}),I+=`'; -`;var r2=w2.call(t,"variable")&&t.variable;if(!r2)I=`with (obj) { -`+I+` +'`),F=f3+n2.length,n2}),B+=`'; +`;var r2=w2.call(t,"variable")&&t.variable;if(!r2)B=`with (obj) { +`+B+` } -`;else if(Iv.test(r2))throw new o2(s);I=(w?I.replace(yv,""):I).replace(wv,"$1").replace(Sv,"$1;"),I="function("+(r2||"obj")+`) { +`;else if(Yv.test(r2))throw new o2(s);B=(w?B.replace(Ev,""):B).replace(_v,"$1").replace(Pv,"$1;"),B="function("+(r2||"obj")+`) { `+(r2?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(x?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+I+`return __p -}`;var p2=Zo(function(){return x2(d,e2+"return "+I).apply(e,g)});if(p2.source=I,Rr(p2))throw p2;return p2}function uC(r){return y2(r).toLowerCase()}function pC(r){return y2(r).toUpperCase()}function mC(r,t,o){if(r=y2(r),r&&(o||t===e))return is(r);if(!r||!(t=t3(t)))return r;var f=F3(r),m=F3(t),d=ss(f,m),g=os(f,m)+1;return K4(f,d,g).join("")}function hC(r,t,o){if(r=y2(r),r&&(o||t===e))return r.slice(0,fs(r)+1);if(!r||!(t=t3(t)))return r;var f=F3(r),m=os(f,F3(t))+1;return K4(f,0,m).join("")}function vC(r,t,o){if(r=y2(r),r&&(o||t===e))return r.replace(Ra,"");if(!r||!(t=t3(t)))return r;var f=F3(r),m=ss(f,F3(t));return K4(f,m).join("")}function dC(r,t){var o=J,f=b;if(G2(t)){var m="separator"in t?t.separator:m;o="length"in t?u2(t.length):o,f="omission"in t?t3(t.omission):f}r=y2(r);var d=r.length;if(g0(r)){var g=F3(r);d=g.length}if(o>=d)return r;var L=o-V0(f);if(L<1)return f;var w=g?K4(g,0,L).join(""):r.slice(0,L);if(m===e)return w+f;if(g&&(L+=w.length-L),Dr(m)){if(r.slice(L).search(m)){var R,O=w;for(m.global||(m=Ja(m.source,y2(Ni.exec(m))+"g")),m.lastIndex=0;R=m.exec(O);)var I=R.index;w=w.slice(0,I===e?L:I)}}else if(r.indexOf(t3(m),L)!=L){var $=w.lastIndexOf(m);$>-1&&(w=w.slice(0,$))}return w+f}function zC(r){return r=y2(r),r&&Nv.test(r)?r.replace(yi,$d):r}var HC=w0(function(r,t,o){return r+(o?" ":"")+t.toUpperCase()}),Br=Zs("toUpperCase");function Qo(r,t,o){return r=y2(r),t=o?e:t,t===e?Id(r)?Kd(r):_d(r):r.match(t)||[]}var Zo=m2(function(r,t){try{return r3(r,e,t)}catch(o){return Rr(o)?o:new o2(o)}}),gC=H4(function(r,t){return H3(t,function(o){o=n4(o),d4(r,o,Pr(r[o],r))}),r});function VC(r){var t=r==null?0:r.length,o=a2();return r=t?I2(r,function(f){if(typeof f[1]!="function")throw new g3(i);return[o(f[0]),f[1]]}):[],m2(function(f){for(var m=-1;++mG)return[];var o=i2,f=x1(r,i2);t=a2(t),r-=i2;for(var m=Xa(f,t);++o0||t<0)?new z2(o):(r<0?o=o.takeRight(-r):r&&(o=o.drop(r)),t!==e&&(t=u2(t),o=t<0?o.dropRight(-t):o.take(t-r)),o)},z2.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},z2.prototype.toArray=function(){return this.take(i2)},a4(z2.prototype,function(r,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 g=this.__wrapped__,L=f?[1]:arguments,w=g instanceof z2,R=L[0],O=w||l2(g),I=function(v2){var g2=m.apply(v,U4([v2],L));return f&&$?g2[0]:g2};O&&o&&typeof R=="function"&&R.length!=1&&(w=O=!1);var $=this.__chain__,e2=!!this.__actions__.length,r2=d&&!$,p2=w&&!e2;if(!d&&O){g=p2?g:new z2(this);var n2=r.apply(g,L);return n2.__actions__.push({func:Ke,args:[I],thisArg:e}),new V3(n2,$)}return r2&&p2?r.apply(this,L):(n2=this.thru(I),r2?f?n2.value()[0]:n2.value():n2)})}),H3(["pop","push","shift","sort","splice","unshift"],function(r){var t=Me[r],o=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=function(){var m=arguments;if(f&&!this.__chain__){var d=this.value();return t.apply(l2(d)?d:[],m)}return this[o](function(g){return t.apply(l2(g)?g:[],m)})}}),a4(z2.prototype,function(r,t){var o=v[t];if(o){var f=o.name+"";w2.call(L0,f)||(L0[f]=[]),L0[f].push({name:t,func:o})}}),L0[Ue(e,D).name]=[{name:"wrapper",func:e}],z2.prototype.clone=zz,z2.prototype.reverse=Hz,z2.prototype.value=gz,v.prototype.at=Yg,v.prototype.chain=Kg,v.prototype.commit=Xg,v.prototype.next=Qg,v.prototype.plant=Jg,v.prototype.reverse=eV,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=cV,v.prototype.first=v.prototype.head,R8&&(v.prototype[R8]=Zg),v},G4=Xd();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(p1._=G4,define(function(){return G4})):_6?((_6.exports=G4)._=G4,Ua._=G4):p1._=G4}).call(b0)});var hl=Y1(H2=>{"use strict";var r5=Symbol.for("react.element"),pL=Symbol.for("react.portal"),mL=Symbol.for("react.fragment"),hL=Symbol.for("react.strict_mode"),vL=Symbol.for("react.profiler"),dL=Symbol.for("react.provider"),zL=Symbol.for("react.context"),HL=Symbol.for("react.forward_ref"),gL=Symbol.for("react.suspense"),VL=Symbol.for("react.memo"),ML=Symbol.for("react.lazy"),nl=Symbol.iterator;function CL(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 R0(e,c,a){this.props=e,this.context=c,this.refs=ll,this.updater=a||sl}R0.prototype.isReactComponent={};R0.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")};R0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fl(){}fl.prototype=R0.prototype;function rn(e,c,a){this.props=e,this.context=c,this.refs=ll,this.updater=a||sl}var nn=rn.prototype=new fl;nn.constructor=rn;ol(nn,R0.prototype);nn.isPureReactComponent=!0;var tl=Array.isArray,ul=Object.prototype.hasOwnProperty,tn={current:null},pl={key:!0,ref:!0,__self:!0,__source:!0};function ml(e,c,a){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=a;else if(1{"use strict";vl.exports=hl()});var kf=Y1((fk,Nf)=>{"use strict";var ty="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Nf.exports=ty});var Ef=Y1((uk,_f)=>{"use strict";var iy=kf();function bf(){}function Af(){}Af.resetWarningCache=bf;_f.exports=function(){function e(n,i,s,l,u,p){if(p!==iy){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 a={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:Af,resetWarningCache:bf};return a.PropTypes=a,a}});var Tf=Y1((hk,Pf)=>{Pf.exports=Ef()();var pk,mk});var Uf=Y1((Ck,If)=>{If.exports=function(c,a,n,i){var s=n?n.call(i,c,a):void 0;if(s!==void 0)return!!s;if(c===a)return!0;if(typeof c!="object"||!c||typeof a!="object"||!a)return!1;var l=Object.keys(c),u=Object.keys(a);if(l.length!==u.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(a),h=0;h{"use strict";function l9(e,c){var a=e.length;e.push(c);e:for(;0>>1,i=e[n];if(0>>1;nQ7(u,a))pQ7(h,u)?(e[n]=h,e[p]=a,n=p):(e[n]=u,e[l]=a,n=l);else if(pQ7(h,a))e[n]=h,e[p]=a,n=p;else break e}}return c}function Q7(e,c){var a=e.sortIndex-c.sortIndex;return a!==0?a:e.id-c.id}typeof performance=="object"&&typeof performance.now=="function"?(Du=performance,_2.unstable_now=function(){return Du.now()}):(i9=Date,Fu=i9.now(),_2.unstable_now=function(){return i9.now()-Fu});var Du,i9,Fu,s4=[],t6=[],nw=1,N3=null,S1=3,ec=!1,e0=!1,L5=!1,Iu=typeof setTimeout=="function"?setTimeout:null,Uu=typeof clearTimeout=="function"?clearTimeout:null,Ou=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f9(e){for(var c=G3(t6);c!==null;){if(c.callback===null)J7(t6);else if(c.startTime<=e)J7(t6),c.sortIndex=c.expirationTime,l9(s4,c);else break;c=G3(t6)}}function u9(e){if(L5=!1,f9(e),!e0)if(G3(s4)!==null)e0=!0,m9(p9);else{var c=G3(t6);c!==null&&h9(u9,c.startTime-e)}}function p9(e,c){e0=!1,L5&&(L5=!1,Uu(x5),x5=-1),ec=!0;var a=S1;try{for(f9(c),N3=G3(s4);N3!==null&&(!(N3.expirationTime>c)||e&&!qu());){var n=N3.callback;if(typeof n=="function"){N3.callback=null,S1=N3.priorityLevel;var i=n(N3.expirationTime<=c);c=_2.unstable_now(),typeof i=="function"?N3.callback=i:N3===G3(s4)&&J7(s4),f9(c)}else J7(s4);N3=G3(s4)}if(N3!==null)var s=!0;else{var l=G3(t6);l!==null&&h9(u9,l.startTime-c),s=!1}return s}finally{N3=null,S1=a,ec=!1}}var cc=!1,Z7=null,x5=-1,Wu=5,Gu=-1;function qu(){return!(_2.unstable_now()-Gue||125n?(e.sortIndex=a,l9(t6,e),G3(s4)===null&&e===G3(t6)&&(L5?(Uu(x5),x5=-1):L5=!0,h9(u9,a-n))):(e.sortIndex=i,l9(s4,e),e0||ec||(e0=!0,m9(p9))),e};_2.unstable_shouldYield=qu;_2.unstable_wrapCallback=function(e){var c=S1;return function(){var a=S1;S1=c;try{return e.apply(this,arguments)}finally{S1=a}}}});var Yu=Y1((ub,ju)=>{"use strict";ju.exports=$u()});var ev=Y1(d3=>{"use strict";var cm=g1(),h3=Yu();function W(e){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),D9=Object.prototype.hasOwnProperty,tw=/^[: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]*$/,Ku={},Xu={};function iw(e){return D9.call(Xu,e)?!0:D9.call(Ku,e)?!1:tw.test(e)?Xu[e]=!0:(Ku[e]=!0,!1)}function sw(e,c,a,n){if(a!==null&&a.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return n?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ow(e,c,a,n){if(c===null||typeof c>"u"||sw(e,c,a,n))return!0;if(n)return!1;if(a!==null)switch(a.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 U1(e,c,a,n,i,s,l){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=a,this.propertyName=e,this.type=c,this.sanitizeURL=s,this.removeEmptyString=l}var C1={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){C1[e]=new U1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var c=e[0];C1[c]=new U1(c,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){C1[e]=new U1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){C1[e]=new U1(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){C1[e]=new U1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){C1[e]=new U1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){C1[e]=new U1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){C1[e]=new U1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){C1[e]=new U1(e,5,!1,e.toLowerCase(),null,!1,!1)});var kt=/[\-:]([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(kt,bt);C1[c]=new U1(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(kt,bt);C1[c]=new U1(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(kt,bt);C1[c]=new U1(c,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){C1[e]=new U1(e,1,!1,e.toLowerCase(),null,!1,!1)});C1.xlinkHref=new U1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){C1[e]=new U1(e,1,!1,e.toLowerCase(),null,!0,!0)});function At(e,c,a,n){var i=C1.hasOwnProperty(c)?C1[c]:null;(i!==null?i.type!==0:n||!(2=d)return r;var x=o-M0(f);if(x<1)return f;var w=V?K4(V,0,x).join(""):r.slice(0,x);if(m===e)return w+f;if(V&&(x+=w.length-x),Dr(m)){if(r.slice(x).search(m)){var F,O=w;for(m.global||(m=Ja(m.source,y2(bi.exec(m))+"g")),m.lastIndex=0;F=m.exec(O);)var B=F.index;w=w.slice(0,B===e?x:B)}}else if(r.indexOf(s3(m),x)!=x){var j=w.lastIndexOf(m);j>-1&&(w=w.slice(0,j))}return w+f}function xC(r){return r=y2(r),r&&Tv.test(r)?r.replace(wi,Jd):r}var yC=S0(function(r,t,o){return r+(o?" ":"")+t.toUpperCase()}),Ir=Js("toUpperCase");function Zo(r,t,o){return r=y2(r),t=o?e:t,t===e?Yd(r)?az(r):Od(r):r.match(t)||[]}var Jo=m2(function(r,t){try{return t3(r,e,t)}catch(o){return Rr(o)?o:new o2(o)}}),wC=H4(function(r,t){return V3(t,function(o){o=n4(o),d4(r,o,Pr(r[o],r))}),r});function SC(r){var t=r==null?0:r.length,o=a2();return r=t?U2(r,function(f){if(typeof f[1]!="function")throw new M3(i);return[o(f[0]),f[1]]}):[],m2(function(f){for(var m=-1;++mq)return[];var o=i2,f=w1(r,i2);t=a2(t),r-=i2;for(var m=Xa(f,t);++o0||t<0)?new z2(o):(r<0?o=o.takeRight(-r):r&&(o=o.drop(r)),t!==e&&(t=u2(t),o=t<0?o.dropRight(-t):o.take(t-r)),o)},z2.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},z2.prototype.toArray=function(){return this.take(i2)},a4(z2.prototype,function(r,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,F=x[0],O=w||l2(V),B=function(v2){var g2=m.apply(v,U4([v2],x));return f&&j?g2[0]:g2};O&&o&&typeof F=="function"&&F.length!=1&&(w=O=!1);var j=this.__chain__,e2=!!this.__actions__.length,r2=d&&!j,p2=w&&!e2;if(!d&&O){V=p2?V:new z2(this);var n2=r.apply(V,x);return n2.__actions__.push({func:Ke,args:[B],thisArg:e}),new C3(n2,j)}return r2&&p2?r.apply(this,x):(n2=this.thru(B),r2?f?n2.value()[0]:n2.value():n2)})}),V3(["pop","push","shift","sort","splice","unshift"],function(r){var t=Me[r],o=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);v.prototype[r]=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)})}}),a4(z2.prototype,function(r,t){var o=v[t];if(o){var f=o.name+"";w2.call(x0,f)||(x0[f]=[]),x0[f].push({name:t,func:o})}}),x0[Ue(e,R).name]=[{name:"wrapper",func:e}],z2.prototype.clone=xz,z2.prototype.reverse=yz,z2.prototype.value=wz,v.prototype.at=cV,v.prototype.chain=aV,v.prototype.commit=rV,v.prototype.next=nV,v.prototype.plant=iV,v.prototype.reverse=sV,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=oV,v.prototype.first=v.prototype.head,D8&&(v.prototype[D8]=tV),v},G4=rz();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(m1._=G4,define(function(){return G4})):E6?((E6.exports=G4)._=G4,Ua._=G4):m1._=G4}).call(A0)});var zl=Q1(H2=>{"use strict";var r5=Symbol.for("react.element"),gL=Symbol.for("react.portal"),VL=Symbol.for("react.fragment"),ML=Symbol.for("react.strict_mode"),CL=Symbol.for("react.profiler"),LL=Symbol.for("react.provider"),xL=Symbol.for("react.context"),yL=Symbol.for("react.forward_ref"),wL=Symbol.for("react.suspense"),SL=Symbol.for("react.memo"),NL=Symbol.for("react.lazy"),sl=Symbol.iterator;function bL(e){return e===null||typeof e!="object"?null:(e=sl&&e[sl]||e["@@iterator"],typeof e=="function"?e:null)}var fl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ul=Object.assign,pl={};function D0(e,c,a){this.props=e,this.context=c,this.refs=pl,this.updater=a||fl}D0.prototype.isReactComponent={};D0.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")};D0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ml(){}ml.prototype=D0.prototype;function rn(e,c,a){this.props=e,this.context=c,this.refs=pl,this.updater=a||fl}var nn=rn.prototype=new ml;nn.constructor=rn;ul(nn,D0.prototype);nn.isPureReactComponent=!0;var ol=Array.isArray,hl=Object.prototype.hasOwnProperty,tn={current:null},vl={key:!0,ref:!0,__self:!0,__source:!0};function dl(e,c,a){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)&&!vl.hasOwnProperty(n)&&(i[n]=c[n]);var u=arguments.length-2;if(u===1)i.children=a;else if(1{"use strict";Hl.exports=zl()});var _f=Q1((zb,Ef)=>{"use strict";var py="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ef.exports=py});var Df=Q1((Hb,Rf)=>{"use strict";var my=_f();function Pf(){}function Tf(){}Tf.resetWarningCache=Pf;Rf.exports=function(){function e(n,i,s,l,u,p){if(p!==my){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 a={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:Tf,resetWarningCache:Pf};return a.PropTypes=a,a}});var Of=Q1((Mb,Ff)=>{Ff.exports=Df()();var gb,Vb});var $f=Q1((bb,qf)=>{qf.exports=function(c,a,n,i){var s=n?n.call(i,c,a):void 0;if(s!==void 0)return!!s;if(c===a)return!0;if(typeof c!="object"||!c||typeof a!="object"||!a)return!1;var l=Object.keys(c),u=Object.keys(a);if(l.length!==u.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(a),h=0;h{"use strict";function lt(e,c){var a=e.length;e.push(c);e:for(;0>>1,i=e[n];if(0>>1;nQ7(u,a))pQ7(h,u)?(e[n]=h,e[p]=a,n=p):(e[n]=u,e[l]=a,n=l);else if(pQ7(h,a))e[n]=h,e[p]=a,n=p;else break e}}return c}function Q7(e,c){var a=e.sortIndex-c.sortIndex;return a!==0?a:e.id-c.id}typeof performance=="object"&&typeof performance.now=="function"?(Bu=performance,_2.unstable_now=function(){return Bu.now()}):(it=Date,Uu=it.now(),_2.unstable_now=function(){return it.now()-Uu});var Bu,it,Uu,s4=[],t6=[],uw=1,b3=null,b1=3,ec=!1,c0=!1,L5=!1,qu=typeof setTimeout=="function"?setTimeout:null,$u=typeof clearTimeout=="function"?clearTimeout:null,Wu=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ft(e){for(var c=q3(t6);c!==null;){if(c.callback===null)J7(t6);else if(c.startTime<=e)J7(t6),c.sortIndex=c.expirationTime,lt(s4,c);else break;c=q3(t6)}}function ut(e){if(L5=!1,ft(e),!c0)if(q3(s4)!==null)c0=!0,mt(pt);else{var c=q3(t6);c!==null&&ht(ut,c.startTime-e)}}function pt(e,c){c0=!1,L5&&(L5=!1,$u(x5),x5=-1),ec=!0;var a=b1;try{for(ft(c),b3=q3(s4);b3!==null&&(!(b3.expirationTime>c)||e&&!Ku());){var n=b3.callback;if(typeof n=="function"){b3.callback=null,b1=b3.priorityLevel;var i=n(b3.expirationTime<=c);c=_2.unstable_now(),typeof i=="function"?b3.callback=i:b3===q3(s4)&&J7(s4),ft(c)}else J7(s4);b3=q3(s4)}if(b3!==null)var s=!0;else{var l=q3(t6);l!==null&&ht(ut,l.startTime-c),s=!1}return s}finally{b3=null,b1=a,ec=!1}}var cc=!1,Z7=null,x5=-1,ju=5,Yu=-1;function Ku(){return!(_2.unstable_now()-Yue||125n?(e.sortIndex=a,lt(t6,e),q3(s4)===null&&e===q3(t6)&&(L5?($u(x5),x5=-1):L5=!0,ht(ut,a-n))):(e.sortIndex=i,lt(s4,e),c0||ec||(c0=!0,mt(pt))),e};_2.unstable_shouldYield=Ku;_2.unstable_wrapCallback=function(e){var c=b1;return function(){var a=b1;b1=c;try{return e.apply(this,arguments)}finally{b1=a}}}});var Zu=Q1((Hk,Qu)=>{"use strict";Qu.exports=Xu()});var nv=Q1(z3=>{"use strict";var tm=v1(),v3=Zu();function G(e){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=1;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dt=Object.prototype.hasOwnProperty,pw=/^[: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]*$/,Ju={},ep={};function mw(e){return Dt.call(ep,e)?!0:Dt.call(Ju,e)?!1:pw.test(e)?ep[e]=!0:(Ju[e]=!0,!1)}function hw(e,c,a,n){if(a!==null&&a.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return n?!1:a!==null?!a.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vw(e,c,a,n){if(c===null||typeof c>"u"||hw(e,c,a,n))return!0;if(n)return!1;if(a!==null)switch(a.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 q1(e,c,a,n,i,s,l){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=a,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 q1(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 q1(c,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){L1[e]=new q1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){L1[e]=new q1(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 q1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){L1[e]=new q1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){L1[e]=new q1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){L1[e]=new q1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){L1[e]=new q1(e,5,!1,e.toLowerCase(),null,!1,!1)});var b9=/[\-:]([a-z])/g;function k9(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(b9,k9);L1[c]=new q1(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(b9,k9);L1[c]=new q1(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(b9,k9);L1[c]=new q1(c,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){L1[e]=new q1(e,1,!1,e.toLowerCase(),null,!1,!1)});L1.xlinkHref=new q1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){L1[e]=new q1(e,1,!1,e.toLowerCase(),null,!0,!0)});function A9(e,c,a,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{d9=!1,Error.prepareStackTrace=a}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=z9(e.type,!1),e;case 11:return e=z9(e.type.render,!1),e;case 1:return e=z9(e.type,!0),e;default:return""}}function I9(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 r8:return"Fragment";case a8:return"Portal";case F9:return"Profiler";case _t:return"StrictMode";case O9:return"Suspense";case B9:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nm:return(e.displayName||"Context")+".Consumer";case rm: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:I9(e.type)||"Memo";case s6:c=e._payload,e=e._init;try{return I9(e(c))}catch{}}return null}function fw(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 I9(c);case 8:return c===_t?"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 M6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function im(e){var c=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function uw(e){var c=im(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,c),n=""+e[c];if(!e.hasOwnProperty(c)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.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:a.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[c]}}}}function rc(e){e._valueTracker||(e._valueTracker=uw(e))}function sm(e){if(!e)return!1;var c=e._valueTracker;if(!c)return!0;var a=c.getValue(),n="";return e&&(n=im(e)?e.checked?"true":"false":e.value),e=n,e!==a?(c.setValue(e),!0):!1}function Ac(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 U9(e,c){var a=c.checked;return j2({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function Zu(e,c){var a=c.defaultValue==null?"":c.defaultValue,n=c.checked!=null?c.checked:c.defaultChecked;a=M6(c.value!=null?c.value:a),e._wrapperState={initialChecked:n,initialValue:a,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function om(e,c){c=c.checked,c!=null&&At(e,"checked",c,!1)}function W9(e,c){om(e,c);var a=M6(c.value),n=c.type;if(a!=null)n==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}c.hasOwnProperty("value")?G9(e,c.type,a):c.hasOwnProperty("defaultValue")&&G9(e,c.type,M6(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(e.defaultChecked=!!c.defaultChecked)}function Ju(e,c,a){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,a||c===e.value||(e.value=c),e.defaultValue=c}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function G9(e,c,a){(c!=="number"||Ac(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var P5=Array.isArray;function h8(e,c,a,n){if(e=e.options,c){c={};for(var i=0;i"+c.valueOf().toString()+"",c=nc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;c.firstChild;)e.appendChild(c.firstChild)}});function j5(e,c){if(c){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=c;return}}e.textContent=c}var D5={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},pw=["Webkit","ms","Moz","O"];Object.keys(D5).forEach(function(e){pw.forEach(function(c){c=c+e.charAt(0).toUpperCase()+e.substring(1),D5[c]=D5[e]})});function pm(e,c,a){return c==null||typeof c=="boolean"||c===""?"":a||typeof c!="number"||c===0||D5.hasOwnProperty(e)&&D5[e]?(""+c).trim():c+"px"}function mm(e,c){e=e.style;for(var a in c)if(c.hasOwnProperty(a)){var n=a.indexOf("--")===0,i=pm(a,c[a],n);a==="float"&&(a="cssFloat"),n?e.setProperty(a,i):e[a]=i}}var mw=j2({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(mw[e]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(W(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(W(61))}if(c.style!=null&&typeof c.style!="object")throw Error(W(62))}}function Y9(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 K9=null;function Tt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var X9=null,v8=null,d8=null;function ap(e){if(e=ue(e)){if(typeof X9!="function")throw Error(W(280));var c=e.stateNode;c&&(c=ta(c),X9(e.stateNode,e.type,c))}}function hm(e){v8?d8?d8.push(e):d8=[e]:v8=e}function vm(){if(v8){var e=v8,c=d8;if(d8=v8=null,ap(e),c)for(e=0;e>>=0,e===0?32:31-(xw(e)/yw|0)|0}var tc=64,ic=4194304;function T5(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 Tc(e,c){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,l=a&268435455;if(l!==0){var u=l&~i;u!==0?n=T5(u):(s&=l,s!==0&&(n=T5(s)))}else l=a&~i,l!==0?n=T5(l):s!==0&&(n=T5(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|=a&16),c=e.entangledLanes,c!==0)for(e=e.entanglements,c&=n;0a;a++)c.push(e);return c}function le(e,c,a){e.pendingLanes|=c,c!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,c=31-K3(c),e[c]=a}function kw(e,c){var a=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=O5),up=" ",pp=!1;function Tm(e,c){switch(e){case"keyup":return rS.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var n8=!1;function tS(e,c){switch(e){case"compositionend":return Rm(c);case"keypress":return c.which!==32?null:(pp=!0,up);case"textInput":return e=c.data,e===up&&pp?null:e;default:return null}}function iS(e,c){if(n8)return e==="compositionend"||!Wt&&Tm(e,c)?(e=Em(),Cc=Bt=u6=null,n8=!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:a,offset:c-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=vp(a)}}function Bm(e,c){return e&&c?e===c?!0:e&&e.nodeType===3?!1:c&&c.nodeType===3?Bm(e,c.parentNode):"contains"in e?e.contains(c):e.compareDocumentPosition?!!(e.compareDocumentPosition(c)&16):!1:!1}function Im(){for(var e=window,c=Ac();c instanceof e.HTMLIFrameElement;){try{var a=typeof c.contentWindow.location.href=="string"}catch{a=!1}if(a)e=c.contentWindow;else break;c=Ac(e.document)}return c}function Gt(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 vS(e){var c=Im(),a=e.focusedElem,n=e.selectionRange;if(c!==a&&a&&a.ownerDocument&&Bm(a.ownerDocument.documentElement,a)){if(n!==null&&Gt(a)){if(c=n.start,e=n.end,e===void 0&&(e=c),"selectionStart"in a)a.selectionStart=c,a.selectionEnd=Math.min(e,a.value.length);else if(e=(c=a.ownerDocument||document)&&c.defaultView||window,e.getSelection){e=e.getSelection();var i=a.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=dp(a,s);var l=dp(a,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=a;e=e.parentNode;)e.nodeType===1&&c.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,t8=null,at=null,I5=null,rt=!1;function zp(e,c,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rt||t8==null||t8!==Ac(n)||(n=t8,"selectionStart"in n&&Gt(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}),I5&&J5(I5,n)||(I5=n,n=Fc(at,"onSelect"),0o8||(e.current=lt[o8],lt[o8]=null,o8--)}function E2(e,c){o8++,lt[o8]=e.current,e.current=c}var C6={},A1=x6(C6),Z1=x6(!1),o0=C6;function M8(e,c){var a=e.type.contextTypes;if(!a)return C6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===c)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in a)i[s]=c[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=i),i}function J1(e){return e=e.childContextTypes,e!=null}function Bc(){O2(Z1),O2(A1)}function wp(e,c,a){if(A1.current!==C6)throw Error(W(168));E2(A1,c),E2(Z1,a)}function Xm(e,c,a){var n=e.stateNode;if(c=c.childContextTypes,typeof n.getChildContext!="function")return a;n=n.getChildContext();for(var i in n)if(!(i in c))throw Error(W(108,fw(e)||"Unknown",i));return j2({},a,n)}function Ic(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||C6,o0=A1.current,E2(A1,e),E2(Z1,Z1.current),!0}function Sp(e,c,a){var n=e.stateNode;if(!n)throw Error(W(169));a?(e=Xm(e,c,o0),n.__reactInternalMemoizedMergedChildContext=e,O2(Z1),O2(A1),E2(A1,e)):O2(Z1),E2(Z1,a)}var A4=null,ia=!1,N9=!1;function Qm(e){A4===null?A4=[e]:A4.push(e)}function yS(e){ia=!0,Qm(e)}function y6(){if(!N9&&A4!==null){N9=!0;var e=0,c=S2;try{var a=A4;for(S2=1;e>=l,i-=l,_4=1<<32-K3(c)+i|a<J?(b=B,B=null):b=B.sibling;var N=x(M,B,C[J],_);if(N===null){B===null&&(B=b);break}e&&B&&N.alternate===null&&c(M,B),H=s(N,H,J),U===null?F=N:U.sibling=N,U=N,B=b}if(J===C.length)return a(M,B),U2&&c0(M,J),F;if(B===null){for(;JJ?(b=B,B=null):b=B.sibling;var A=x(M,B,N.value,_);if(A===null){B===null&&(B=b);break}e&&B&&A.alternate===null&&c(M,B),H=s(A,H,J),U===null?F=A:U.sibling=A,U=A,B=b}if(N.done)return a(M,B),U2&&c0(M,J),F;if(B===null){for(;!N.done;J++,N=C.next())N=V(M,N.value,_),N!==null&&(H=s(N,H,J),U===null?F=N:U.sibling=N,U=N);return U2&&c0(M,J),F}for(B=n(M,B);!N.done;J++,N=C.next())N=S(B,M,J,N.value,_),N!==null&&(e&&N.alternate!==null&&B.delete(N.key===null?J:N.key),H=s(N,H,J),U===null?F=N:U.sibling=N,U=N);return e&&B.forEach(function(T){return c(M,T)}),U2&&c0(M,J),F}function Z(M,H,C,_){if(typeof C=="object"&&C!==null&&C.type===r8&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ac:e:{for(var F=C.key,U=H;U!==null;){if(U.key===F){if(F=C.type,F===r8){if(U.tag===7){a(M,U.sibling),H=i(U,C.props.children),H.return=M,M=H;break e}}else if(U.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===s6&&Pp(F)===U.type){a(M,U.sibling),H=i(U,C.props),H.ref=k5(M,U,C),H.return=M,M=H;break e}a(M,U);break}else c(M,U);U=U.sibling}C.type===r8?(H=s0(C.props.children,M.mode,_,C.key),H.return=M,M=H):(_=bc(C.type,C.key,C.props,null,M.mode,_),_.ref=k5(M,H,C),_.return=M,M=_)}return l(M);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){a(M,H.sibling),H=i(H,C.children||[]),H.return=M,M=H;break e}else{a(M,H);break}else c(M,H);H=H.sibling}H=R9(C,M.mode,_),H.return=M,M=H}return l(M);case s6:return U=C._init,Z(M,H,U(C._payload),_)}if(P5(C))return E(M,H,C,_);if(y5(C))return D(M,H,C,_);zc(M,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,H!==null&&H.tag===6?(a(M,H.sibling),H=i(H,C),H.return=M,M=H):(a(M,H),H=T9(C,M.mode,_),H.return=M,M=H),l(M)):a(M,H)}return Z}var L8=th(!0),ih=th(!1),pe={},p4=x6(pe),re=x6(pe),ne=x6(pe);function t0(e){if(e===pe)throw Error(W(174));return e}function Jt(e,c){switch(E2(ne,c),E2(re,e),E2(p4,pe),e=c.nodeType,e){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:$9(null,"");break;default:e=e===8?c.parentNode:c,c=e.namespaceURI||null,e=e.tagName,c=$9(c,e)}O2(p4),E2(p4,c)}function x8(){O2(p4),O2(re),O2(ne)}function sh(e){t0(ne.current);var c=t0(p4.current),a=$9(c,e.type);c!==a&&(E2(re,e),E2(p4,a))}function ei(e){re.current===e&&(O2(p4),O2(re))}var q2=x6(0);function jc(e){for(var c=e;c!==null;){if(c.tag===13){var a=c.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 k9=[];function ci(){for(var e=0;ea?a:4,e(!0);var n=b9.transition;b9.transition={};try{e(!1),c()}finally{S2=a,b9.transition=n}}function Lh(){return P3().memoizedState}function kS(e,c,a){var n=g6(e);if(a={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null},xh(e))yh(c,a);else if(a=ch(e,c,a,n),a!==null){var i=I1();X3(a,e,n,i),wh(a,c,n)}}function bS(e,c,a){var n=g6(e),i={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null};if(xh(e))yh(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,a);if(i.hasEagerState=!0,i.eagerState=u,Q3(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{}a=ch(e,c,i,n),a!==null&&(i=I1(),X3(a,e,n,i),wh(a,c,n))}}function xh(e){var c=e.alternate;return e===$2||c!==null&&c===$2}function yh(e,c){U5=Yc=!0;var a=e.pending;a===null?c.next=c:(c.next=a.next,a.next=c),e.pending=c}function wh(e,c,a){if(a&4194240){var n=c.lanes;n&=e.pendingLanes,a|=n,c.lanes=a,Dt(e,a)}}var Kc={readContext:E3,useCallback:N1,useContext:N1,useEffect:N1,useImperativeHandle:N1,useInsertionEffect:N1,useLayoutEffect:N1,useMemo:N1,useReducer:N1,useRef:N1,useState:N1,useDebugValue:N1,useDeferredValue:N1,useTransition:N1,useMutableSource:N1,useSyncExternalStore:N1,useId:N1,unstable_isNewReconciler:!1},AS={readContext:E3,useCallback:function(e,c){return l4().memoizedState=[e,c===void 0?null:c],e},useContext:E3,useEffect:Rp,useImperativeHandle:function(e,c,a){return a=a!=null?a.concat([e]):null,wc(4194308,4,Hh.bind(null,c,e),a)},useLayoutEffect:function(e,c){return wc(4194308,4,e,c)},useInsertionEffect:function(e,c){return wc(4,2,e,c)},useMemo:function(e,c){var a=l4();return c=c===void 0?null:c,e=e(),a.memoizedState=[e,c],e},useReducer:function(e,c,a){var n=l4();return c=a!==void 0?a(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=kS.bind(null,$2,e),[n.memoizedState,e]},useRef:function(e){var c=l4();return e={current:e},c.memoizedState=e},useState:Tp,useDebugValue:ii,useDeferredValue:function(e){return l4().memoizedState=e},useTransition:function(){var e=Tp(!1),c=e[0];return e=NS.bind(null,e[1]),l4().memoizedState=e,[c,e]},useMutableSource:function(){},useSyncExternalStore:function(e,c,a){var n=$2,i=l4();if(U2){if(a===void 0)throw Error(W(407));a=a()}else{if(a=c(),v1===null)throw Error(W(349));f0&30||fh(n,c,a)}i.memoizedState=a;var s={value:a,getSnapshot:c};return i.queue=s,Rp(ph.bind(null,n,s,e),[e]),n.flags|=2048,se(9,uh.bind(null,n,s,a,c),void 0,null),a},useId:function(){var e=l4(),c=v1.identifierPrefix;if(U2){var a=E4,n=_4;a=(n&~(1<<32-K3(n)-1)).toString(32)+a,c=":"+c+"R"+a,a=te++,0")&&(p=p.replace("",e.displayName)),p}while(1<=l&&0<=u);break}}}finally{dt=!1,Error.prepareStackTrace=a}return(e=e?e.displayName||e.name:"")?_5(e):""}function dw(e){switch(e.tag){case 5:return _5(e.type);case 16:return _5("Lazy");case 13:return _5("Suspense");case 19:return _5("SuspenseList");case 0:case 2:case 15:return e=zt(e.type,!1),e;case 11:return e=zt(e.type.render,!1),e;case 1:return e=zt(e.type,!0),e;default:return""}}function Bt(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 r8:return"Portal";case Ft:return"Profiler";case E9:return"StrictMode";case Ot:return"Suspense";case It:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case om:return(e.displayName||"Context")+".Consumer";case sm:return(e._context.displayName||"Context")+".Provider";case _9:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P9:return c=e.displayName||null,c!==null?c:Bt(e.type)||"Memo";case s6:c=e._payload,e=e._init;try{return Bt(e(c))}catch{}}return null}function zw(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 Bt(c);case 8:return c===E9?"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 M6(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fm(e){var c=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Hw(e){var c=fm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,c),n=""+e[c];if(!e.hasOwnProperty(c)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.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:a.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[c]}}}}function rc(e){e._valueTracker||(e._valueTracker=Hw(e))}function um(e){if(!e)return!1;var c=e._valueTracker;if(!c)return!0;var a=c.getValue(),n="";return e&&(n=fm(e)?e.checked?"true":"false":e.value),e=n,e!==a?(c.setValue(e),!0):!1}function Ac(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 Ut(e,c){var a=c.checked;return Y2({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??e._wrapperState.initialChecked})}function ap(e,c){var a=c.defaultValue==null?"":c.defaultValue,n=c.checked!=null?c.checked:c.defaultChecked;a=M6(c.value!=null?c.value:a),e._wrapperState={initialChecked:n,initialValue:a,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function pm(e,c){c=c.checked,c!=null&&A9(e,"checked",c,!1)}function Wt(e,c){pm(e,c);var a=M6(c.value),n=c.type;if(a!=null)n==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+a):e.value!==""+a&&(e.value=""+a);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}c.hasOwnProperty("value")?Gt(e,c.type,a):c.hasOwnProperty("defaultValue")&&Gt(e,c.type,M6(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(e.defaultChecked=!!c.defaultChecked)}function rp(e,c,a){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,a||c===e.value||(e.value=c),e.defaultValue=c}a=e.name,a!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,a!==""&&(e.name=a)}function Gt(e,c,a){(c!=="number"||Ac(e.ownerDocument)!==e)&&(a==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+a&&(e.defaultValue=""+a))}var P5=Array.isArray;function v8(e,c,a,n){if(e=e.options,c){c={};for(var i=0;i"+c.valueOf().toString()+"",c=nc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;c.firstChild;)e.appendChild(c.firstChild)}});function j5(e,c){if(c){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=c;return}}e.textContent=c}var D5={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},gw=["Webkit","ms","Moz","O"];Object.keys(D5).forEach(function(e){gw.forEach(function(c){c=c+e.charAt(0).toUpperCase()+e.substring(1),D5[c]=D5[e]})});function dm(e,c,a){return c==null||typeof c=="boolean"||c===""?"":a||typeof c!="number"||c===0||D5.hasOwnProperty(e)&&D5[e]?(""+c).trim():c+"px"}function zm(e,c){e=e.style;for(var a in c)if(c.hasOwnProperty(a)){var n=a.indexOf("--")===0,i=dm(a,c[a],n);a==="float"&&(a="cssFloat"),n?e.setProperty(a,i):e[a]=i}}var Vw=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 jt(e,c){if(c){if(Vw[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 Yt(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 Kt=null;function T9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xt=null,d8=null,z8=null;function ip(e){if(e=ue(e)){if(typeof Xt!="function")throw Error(G(280));var c=e.stateNode;c&&(c=ta(c),Xt(e.stateNode,e.type,c))}}function Hm(e){d8?z8?z8.push(e):z8=[e]:d8=e}function gm(){if(d8){var e=d8,c=z8;if(z8=d8=null,ip(e),c)for(e=0;e>>=0,e===0?32:31-(Aw(e)/Ew|0)|0}var tc=64,ic=4194304;function T5(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 Tc(e,c){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,l=a&268435455;if(l!==0){var u=l&~i;u!==0?n=T5(u):(s&=l,s!==0&&(n=T5(s)))}else l=a&~i,l!==0?n=T5(l):s!==0&&(n=T5(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|=a&16),c=e.entangledLanes,c!==0)for(e=e.entanglements,c&=n;0a;a++)c.push(e);return c}function le(e,c,a){e.pendingLanes|=c,c!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,c=31-X3(c),e[c]=a}function Rw(e,c){var a=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=O5),vp=" ",dp=!1;function Om(e,c){switch(e){case"keyup":return fS.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Im(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var t8=!1;function pS(e,c){switch(e){case"compositionend":return Im(c);case"keypress":return c.which!==32?null:(dp=!0,vp);case"textInput":return e=c.data,e===vp&&dp?null:e;default:return null}}function mS(e,c){if(t8)return e==="compositionend"||!W9&&Om(e,c)?(e=Dm(),Cc=I9=u6=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:a,offset:c-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=gp(a)}}function Gm(e,c){return e&&c?e===c?!0:e&&e.nodeType===3?!1:c&&c.nodeType===3?Gm(e,c.parentNode):"contains"in e?e.contains(c):e.compareDocumentPosition?!!(e.compareDocumentPosition(c)&16):!1:!1}function qm(){for(var e=window,c=Ac();c instanceof e.HTMLIFrameElement;){try{var a=typeof c.contentWindow.location.href=="string"}catch{a=!1}if(a)e=c.contentWindow;else break;c=Ac(e.document)}return c}function G9(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 CS(e){var c=qm(),a=e.focusedElem,n=e.selectionRange;if(c!==a&&a&&a.ownerDocument&&Gm(a.ownerDocument.documentElement,a)){if(n!==null&&G9(a)){if(c=n.start,e=n.end,e===void 0&&(e=c),"selectionStart"in a)a.selectionStart=c,a.selectionEnd=Math.min(e,a.value.length);else if(e=(c=a.ownerDocument||document)&&c.defaultView||window,e.getSelection){e=e.getSelection();var i=a.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=Vp(a,s);var l=Vp(a,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=a;e=e.parentNode;)e.nodeType===1&&c.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a=document.documentMode,i8=null,a9=null,B5=null,r9=!1;function Mp(e,c,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;r9||i8==null||i8!==Ac(n)||(n=i8,"selectionStart"in n&&G9(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=Fc(a9,"onSelect"),0l8||(e.current=l9[l8],l9[l8]=null,l8--)}function P2(e,c){l8++,l9[l8]=e.current,e.current=c}var C6={},_1=x6(C6),c3=x6(!1),l0=C6;function C8(e,c){var a=e.type.contextTypes;if(!a)return C6;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===c)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in a)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 Ic(){I2(c3),I2(_1)}function kp(e,c,a){if(_1.current!==C6)throw Error(G(168));P2(_1,c),P2(c3,a)}function eh(e,c,a){var n=e.stateNode;if(c=c.childContextTypes,typeof n.getChildContext!="function")return a;n=n.getChildContext();for(var i in n)if(!(i in c))throw Error(G(108,zw(e)||"Unknown",i));return Y2({},a,n)}function Bc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||C6,l0=_1.current,P2(_1,e),P2(c3,c3.current),!0}function Ap(e,c,a){var n=e.stateNode;if(!n)throw Error(G(169));a?(e=eh(e,c,l0),n.__reactInternalMemoizedMergedChildContext=e,I2(c3),I2(_1),P2(_1,e)):I2(c3),P2(c3,a)}var A4=null,ia=!1,Nt=!1;function ch(e){A4===null?A4=[e]:A4.push(e)}function ES(e){ia=!0,ch(e)}function y6(){if(!Nt&&A4!==null){Nt=!0;var e=0,c=S2;try{var a=A4;for(S2=1;e>=l,i-=l,E4=1<<32-X3(c)+i|a<J?(A=I,I=null):A=I.sibling;var N=L(g,I,C[J],b);if(N===null){I===null&&(I=A);break}e&&I&&N.alternate===null&&c(g,I),H=s(N,H,J),U===null?D=N:U.sibling=N,U=N,I=A}if(J===C.length)return a(g,I),W2&&a0(g,J),D;if(I===null){for(;JJ?(A=I,I=null):A=I.sibling;var E=L(g,I,N.value,b);if(E===null){I===null&&(I=A);break}e&&I&&E.alternate===null&&c(g,I),H=s(E,H,J),U===null?D=E:U.sibling=E,U=E,I=A}if(N.done)return a(g,I),W2&&a0(g,J),D;if(I===null){for(;!N.done;J++,N=C.next())N=M(g,N.value,b),N!==null&&(H=s(N,H,J),U===null?D=N:U.sibling=N,U=N);return W2&&a0(g,J),D}for(I=n(g,I);!N.done;J++,N=C.next())N=S(I,g,J,N.value,b),N!==null&&(e&&N.alternate!==null&&I.delete(N.key===null?J:N.key),H=s(N,H,J),U===null?D=N:U.sibling=N,U=N);return e&&I.forEach(function(T){return c(g,T)}),W2&&a0(g,J),D}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 ac:e:{for(var D=C.key,U=H;U!==null;){if(U.key===D){if(D=C.type,D===n8){if(U.tag===7){a(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===s6&&Fp(D)===U.type){a(g,U.sibling),H=i(U,C.props),H.ref=b5(g,U,C),H.return=g,g=H;break e}a(g,U);break}else c(g,U);U=U.sibling}C.type===n8?(H=o0(C.props.children,g.mode,b,C.key),H.return=g,g=H):(b=kc(C.type,C.key,C.props,null,g.mode,b),b.ref=b5(g,H,C),b.return=g,g=b)}return l(g);case r8: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){a(g,H.sibling),H=i(H,C.children||[]),H.return=g,g=H;break e}else{a(g,H);break}else c(g,H);H=H.sibling}H=Rt(C,g.mode,b),H.return=g,g=H}return l(g);case s6:return U=C._init,W(g,H,U(C._payload),b)}if(P5(C))return _(g,H,C,b);if(y5(C))return R(g,H,C,b);zc(g,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,H!==null&&H.tag===6?(a(g,H.sibling),H=i(H,C),H.return=g,g=H):(a(g,H),H=Tt(C,g.mode,b),H.return=g,g=H),l(g)):a(g,H)}return W}var x8=lh(!0),fh=lh(!1),pe={},p4=x6(pe),re=x6(pe),ne=x6(pe);function i0(e){if(e===pe)throw Error(G(174));return e}function J9(e,c){switch(P2(ne,c),P2(re,e),P2(p4,pe),e=c.nodeType,e){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:$t(null,"");break;default:e=e===8?c.parentNode:c,c=e.namespaceURI||null,e=e.tagName,c=$t(c,e)}I2(p4),P2(p4,c)}function y8(){I2(p4),I2(re),I2(ne)}function uh(e){i0(ne.current);var c=i0(p4.current),a=$t(c,e.type);c!==a&&(P2(re,e),P2(p4,a))}function ei(e){re.current===e&&(I2(p4),I2(re))}var $2=x6(0);function jc(e){for(var c=e;c!==null;){if(c.tag===13){var a=c.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.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 bt=[];function ci(){for(var e=0;ea?a:4,e(!0);var n=kt.transition;kt.transition={};try{e(!1),c()}finally{S2=a,kt.transition=n}}function Sh(){return T3().memoizedState}function RS(e,c,a){var n=g6(e);if(a={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null},Nh(e))bh(c,a);else if(a=th(e,c,a,n),a!==null){var i=G1();Q3(a,e,n,i),kh(a,c,n)}}function DS(e,c,a){var n=g6(e),i={lane:n,action:a,hasEagerState:!1,eagerState:null,next:null};if(Nh(e))bh(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,a);if(i.hasEagerState=!0,i.eagerState=u,Z3(u,l)){var p=c.interleaved;p===null?(i.next=i,Q9(c)):(i.next=p.next,p.next=i),c.interleaved=i;return}}catch{}finally{}a=th(e,c,i,n),a!==null&&(i=G1(),Q3(a,e,n,i),kh(a,c,n))}}function Nh(e){var c=e.alternate;return e===j2||c!==null&&c===j2}function bh(e,c){U5=Yc=!0;var a=e.pending;a===null?c.next=c:(c.next=a.next,a.next=c),e.pending=c}function kh(e,c,a){if(a&4194240){var n=c.lanes;n&=e.pendingLanes,a|=n,c.lanes=a,D9(e,a)}}var Kc={readContext:P3,useCallback:k1,useContext:k1,useEffect:k1,useImperativeHandle:k1,useInsertionEffect:k1,useLayoutEffect:k1,useMemo:k1,useReducer:k1,useRef:k1,useState:k1,useDebugValue:k1,useDeferredValue:k1,useTransition:k1,useMutableSource:k1,useSyncExternalStore:k1,useId:k1,unstable_isNewReconciler:!1},FS={readContext:P3,useCallback:function(e,c){return l4().memoizedState=[e,c===void 0?null:c],e},useContext:P3,useEffect:Ip,useImperativeHandle:function(e,c,a){return a=a!=null?a.concat([e]):null,wc(4194308,4,Ch.bind(null,c,e),a)},useLayoutEffect:function(e,c){return wc(4194308,4,e,c)},useInsertionEffect:function(e,c){return wc(4,2,e,c)},useMemo:function(e,c){var a=l4();return c=c===void 0?null:c,e=e(),a.memoizedState=[e,c],e},useReducer:function(e,c,a){var n=l4();return c=a!==void 0?a(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=RS.bind(null,j2,e),[n.memoizedState,e]},useRef:function(e){var c=l4();return e={current:e},c.memoizedState=e},useState:Op,useDebugValue:ii,useDeferredValue:function(e){return l4().memoizedState=e},useTransition:function(){var e=Op(!1),c=e[0];return e=TS.bind(null,e[1]),l4().memoizedState=e,[c,e]},useMutableSource:function(){},useSyncExternalStore:function(e,c,a){var n=j2,i=l4();if(W2){if(a===void 0)throw Error(G(407));a=a()}else{if(a=c(),z1===null)throw Error(G(349));u0&30||hh(n,c,a)}i.memoizedState=a;var s={value:a,getSnapshot:c};return i.queue=s,Ip(dh.bind(null,n,s,e),[e]),n.flags|=2048,se(9,vh.bind(null,n,s,a,c),void 0,null),a},useId:function(){var e=l4(),c=z1.identifierPrefix;if(W2){var a=_4,n=E4;a=(n&~(1<<32-X3(n)-1)).toString(32)+a,c=":"+c+"R"+a,a=te++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(a,{is:n.is}):(e=l.createElement(a),a==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,a),e[f4]=c,e[ae]=n,Th(e,c,!1,!1),c.stateNode=e;e:{switch(l=Y9(a,n),a){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;iw8&&(c.flags|=128,n=!0,b5(s,!1),c.lanes=4194304)}else{if(!n)if(e=jc(l),e!==null){if(c.flags|=128,n=!0,a=e.updateQueue,a!==null&&(c.updateQueue=a,c.flags|=4),b5(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!U2)return k1(c),null}else 2*n1()-s.renderingStartTime>w8&&a!==1073741824&&(c.flags|=128,n=!0,b5(s,!1),c.lanes=4194304);s.isBackwards?(l.sibling=c.child,c.child=l):(a=s.last,a!==null?a.sibling=l:c.child=l,s.last=l)}return s.tail!==null?(c=s.tail,s.rendering=c,s.tail=c.sibling,s.renderingStartTime=n1(),c.sibling=null,a=q2.current,E2(q2,n?a&1|2:a&1),c):(k1(c),null);case 22:case 23:return pi(),n=c.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(c.flags|=8192),n&&c.mode&1?u3&1073741824&&(k1(c),c.subtreeFlags&6&&(c.flags|=8192)):k1(c),null;case 24:return null;case 25:return null}throw Error(W(156,c.tag))}function OS(e,c){switch($t(c),c.tag){case 1:return J1(c.type)&&Bc(),e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 3:return x8(),O2(Z1),O2(A1),ci(),e=c.flags,e&65536&&!(e&128)?(c.flags=e&-65537|128,c):null;case 5:return ei(c),null;case 13:if(O2(q2),e=c.memoizedState,e!==null&&e.dehydrated!==null){if(c.alternate===null)throw Error(W(340));C8()}return e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 19:return O2(q2),null;case 4:return x8(),null;case 10:return Xt(c.type._context),null;case 22:case 23:return pi(),null;case 24:return null;default:return null}}var gc=!1,b1=!1,BS=typeof WeakSet=="function"?WeakSet:Set,Q=null;function p8(e,c){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(n){e1(e,c,n)}else a.current=null}function Mt(e,c,a){try{a()}catch(n){e1(e,c,n)}}var qp=!1;function IS(e,c){if(nt=Rc,e=Im(),Gt(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var l=0,u=-1,p=-1,h=0,z=0,V=e,x=null;c:for(;;){for(var S;V!==a||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;)x=V,V=S;for(;;){if(V===e)break c;if(x===a&&++h===i&&(u=l),x===s&&++z===n&&(p=l),(S=V.nextSibling)!==null)break;V=x,x=V.parentNode}V=S}a=u===-1||p===-1?null:{start:u,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;for(tt={focusedElem:e,selectionRange:a},Rc=!1,Q=c;Q!==null;)if(c=Q,e=c.child,(c.subtreeFlags&1028)!==0&&e!==null)e.return=c,Q=e;else for(;Q!==null;){c=Q;try{var E=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var D=E.memoizedProps,Z=E.memoizedState,M=c.stateNode,H=M.getSnapshotBeforeUpdate(c.elementType===c.type?D:$3(c.type,D),Z);M.__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(W(163))}}catch(_){e1(c,c.return,_)}if(e=c.sibling,e!==null){e.return=c.return,Q=e;break}Q=c.return}return E=qp,qp=!1,E}function W5(e,c,a){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&&Mt(c,a,s)}i=i.next}while(i!==n)}}function la(e,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var a=c=c.next;do{if((a.tag&e)===e){var n=a.create;a.destroy=n()}a=a.next}while(a!==c)}}function Ct(e){var c=e.ref;if(c!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof c=="function"?c(e):c.current=e}}function Fh(e){var c=e.alternate;c!==null&&(e.alternate=null,Fh(c)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(c=e.stateNode,c!==null&&(delete c[f4],delete c[ae],delete c[ot],delete c[LS],delete c[xS])),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 Oh(e){return e.tag===5||e.tag===3||e.tag===4}function $p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(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 Lt(e,c,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?a.nodeType===8?a.parentNode.insertBefore(e,c):a.insertBefore(e,c):(a.nodeType===8?(c=a.parentNode,c.insertBefore(e,a)):(c=a,c.appendChild(e)),a=a._reactRootContainer,a!=null||c.onclick!==null||(c.onclick=Oc));else if(n!==4&&(e=e.child,e!==null))for(Lt(e,c,a),e=e.sibling;e!==null;)Lt(e,c,a),e=e.sibling}function xt(e,c,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?a.insertBefore(e,c):a.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(xt(e,c,a),e=e.sibling;e!==null;)xt(e,c,a),e=e.sibling}var V1=null,j3=!1;function i6(e,c,a){for(a=a.child;a!==null;)Bh(e,c,a),a=a.sibling}function Bh(e,c,a){if(u4&&typeof u4.onCommitFiberUnmount=="function")try{u4.onCommitFiberUnmount(ca,a)}catch{}switch(a.tag){case 5:b1||p8(a,c);case 6:var n=V1,i=j3;V1=null,i6(e,c,a),V1=n,j3=i,V1!==null&&(j3?(e=V1,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):V1.removeChild(a.stateNode));break;case 18:V1!==null&&(j3?(e=V1,a=a.stateNode,e.nodeType===8?S9(e.parentNode,a):e.nodeType===1&&S9(e,a),Q5(e)):S9(V1,a.stateNode));break;case 4:n=V1,i=j3,V1=a.stateNode.containerInfo,j3=!0,i6(e,c,a),V1=n,j3=i;break;case 0:case 11:case 14:case 15:if(!b1&&(n=a.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)&&Mt(a,c,l),i=i.next}while(i!==n)}i6(e,c,a);break;case 1:if(!b1&&(p8(a,c),n=a.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=a.memoizedProps,n.state=a.memoizedState,n.componentWillUnmount()}catch(u){e1(a,c,u)}i6(e,c,a);break;case 21:i6(e,c,a);break;case 22:a.mode&1?(b1=(n=b1)||a.memoizedState!==null,i6(e,c,a),b1=n):i6(e,c,a);break;default:i6(e,c,a)}}function jp(e){var c=e.updateQueue;if(c!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new BS),c.forEach(function(n){var i=XS.bind(null,e,n);a.has(n)||(a.add(n),n.then(i,i))})}}function q3(e,c){var a=c.deletions;if(a!==null)for(var n=0;ni&&(i=l),n&=~s}if(n=i,n=n1()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*WS(n/1960))-n,10e?16:e,p6===null)var n=!1;else{if(e=p6,p6=null,Zc=0,V2&6)throw Error(W(331));var i=V2;for(V2|=4,Q=e.current;Q!==null;){var s=Q,l=s.child;if(Q.flags&16){var u=s.deletions;if(u!==null){for(var p=0;pn1()-fi?i0(e,0):li|=a),e3(e,c)}function Yh(e,c){c===0&&(e.mode&1?(c=ic,ic<<=1,!(ic&130023424)&&(ic=4194304)):c=1);var a=I1();e=D4(e,c),e!==null&&(le(e,c,a),e3(e,a))}function KS(e){var c=e.memoizedState,a=0;c!==null&&(a=c.retryLane),Yh(e,a)}function XS(e,c){var a=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(W(314))}n!==null&&n.delete(c),Yh(e,a)}var Kh;Kh=function(e,c,a){if(e!==null)if(e.memoizedProps!==c.pendingProps||Z1.current)Q1=!0;else{if(!(e.lanes&a)&&!(c.flags&128))return Q1=!1,DS(e,c,a);Q1=!!(e.flags&131072)}else Q1=!1,U2&&c.flags&1048576&&Zm(c,Wc,c.index);switch(c.lanes=0,c.tag){case 2:var n=c.type;Sc(e,c),e=c.pendingProps;var i=M8(c,A1.current);H8(c,a),i=ri(null,c,n,e,i,a);var s=ni();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,J1(n)?(s=!0,Ic(c)):s=!1,c.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zt(c),i.updater=sa,c.stateNode=i,i._reactInternals=c,ht(c,n,e,a),c=zt(null,c,n,!0,s,a)):(c.tag=0,U2&&s&&qt(c),B1(null,c,i,a),c=c.child),c;case 16:n=c.elementType;e:{switch(Sc(e,c),e=c.pendingProps,i=n._init,n=i(n._payload),c.type=n,i=c.tag=ZS(n),e=$3(n,e),i){case 0:c=dt(null,c,n,e,a);break e;case 1:c=Up(null,c,n,e,a);break e;case 11:c=Bp(null,c,n,e,a);break e;case 14:c=Ip(null,c,n,$3(n.type,e),a);break e}throw Error(W(306,n,""))}return c;case 0:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:$3(n,i),dt(e,c,n,i,a);case 1:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:$3(n,i),Up(e,c,n,i,a);case 3:e:{if(_h(c),e===null)throw Error(W(387));n=c.pendingProps,s=c.memoizedState,i=s.element,ah(e,c),$c(c,n,null,a);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=y8(Error(W(423)),c),c=Wp(e,c,n,a,i);break e}else if(n!==i){i=y8(Error(W(424)),c),c=Wp(e,c,n,a,i);break e}else for(p3=d6(c.stateNode.containerInfo.firstChild),m3=c,U2=!0,Y3=null,a=ih(c,null,n,a),c.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(C8(),n===i){c=F4(e,c,a);break e}B1(e,c,n,a)}c=c.child}return c;case 5:return sh(c),e===null&&ut(c),n=c.type,i=c.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,it(n,i)?l=null:s!==null&&it(n,s)&&(c.flags|=32),Ah(e,c),B1(e,c,l,a),c.child;case 6:return e===null&&ut(c),null;case 13:return Eh(e,c,a);case 4:return Jt(c,c.stateNode.containerInfo),n=c.pendingProps,e===null?c.child=L8(c,null,n,a):B1(e,c,n,a),c.child;case 11:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:$3(n,i),Bp(e,c,n,i,a);case 7:return B1(e,c,c.pendingProps,a),c.child;case 8:return B1(e,c,c.pendingProps.children,a),c.child;case 12:return B1(e,c,c.pendingProps.children,a),c.child;case 10:e:{if(n=c.type._context,i=c.pendingProps,s=c.memoizedProps,l=i.value,E2(Gc,n._currentValue),n._currentValue=l,s!==null)if(Q3(s.value,l)){if(s.children===i.children&&!Z1.current){c=F4(e,c,a);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=P4(-1,a&-a),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|=a,p=s.alternate,p!==null&&(p.lanes|=a),pt(s.return,a,c),u.lanes|=a;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(W(341));l.lanes|=a,u=l.alternate,u!==null&&(u.lanes|=a),pt(l,a,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}B1(e,c,i.children,a),c=c.child}return c;case 9:return i=c.type,n=c.pendingProps.children,H8(c,a),i=E3(i),n=n(i),c.flags|=1,B1(e,c,n,a),c.child;case 14:return n=c.type,i=$3(n,c.pendingProps),i=$3(n.type,i),Ip(e,c,n,i,a);case 15:return kh(e,c,c.type,c.pendingProps,a);case 17:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:$3(n,i),Sc(e,c),c.tag=1,J1(n)?(e=!0,Ic(c)):e=!1,H8(c,a),nh(c,n,i),ht(c,n,i,a),zt(null,c,n,!0,e,a);case 19:return Ph(e,c,a);case 22:return bh(e,c,a)}throw Error(W(156,c.tag))};function Xh(e,c){return Cm(e,c)}function QS(e,c,a,n){this.tag=e,this.key=a,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 A3(e,c,a,n){return new QS(e,c,a,n)}function hi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZS(e){if(typeof e=="function")return hi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Et)return 11;if(e===Pt)return 14}return 2}function V6(e,c){var a=e.alternate;return a===null?(a=A3(e.tag,c,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=c,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,c=e.dependencies,a.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function bc(e,c,a,n,i,s){var l=2;if(n=e,typeof e=="function")hi(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case r8:return s0(a.children,i,s,c);case _t:l=8,i|=8;break;case F9:return e=A3(12,a,c,i|2),e.elementType=F9,e.lanes=s,e;case O9:return e=A3(13,a,c,i),e.elementType=O9,e.lanes=s,e;case B9:return e=A3(19,a,c,i),e.elementType=B9,e.lanes=s,e;case tm:return ua(a,i,s,c);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rm:l=10;break e;case nm:l=9;break e;case Et:l=11;break e;case Pt:l=14;break e;case s6:l=16,n=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return c=A3(l,a,c,i),c.elementType=e,c.type=n,c.lanes=s,c}function s0(e,c,a,n){return e=A3(7,e,n,c),e.lanes=a,e}function ua(e,c,a,n){return e=A3(22,e,n,c),e.elementType=tm,e.lanes=a,e.stateNode={isHidden:!1},e}function T9(e,c,a){return e=A3(6,e,null,c),e.lanes=a,e}function R9(e,c,a){return c=A3(4,e.children!==null?e.children:[],e.key,c),c.lanes=a,c.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},c}function JS(e,c,a,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=g9(0),this.expirationTimes=g9(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=g9(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vi(e,c,a,n,i,s,l,u,p){return e=new JS(e,c,a,u,p),c===1?(c=1,s===!0&&(c|=8)):c=0,s=A3(3,null,null,c),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zt(s),e}function eN(e,c,a){var n=3{"use strict";function cv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cv)}catch(e){console.error(e)}}cv(),av.exports=ev()});var Vi=Y1(gi=>{"use strict";var nv=rv();gi.createRoot=nv.createRoot,gi.hydrateRoot=nv.hydrateRoot;var hb});var sv=Y1((iv,da)=>{(function(){function e(b){if(b=b||{},this.method=b.method||2,this.colors=b.colors||256,this.initColors=b.initColors||4096,this.initDist=b.initDist||.01,this.distIncr=b.distIncr||.005,this.hueGroups=b.hueGroups||10,this.satGroups=b.satGroups||10,this.lumGroups=b.lumGroups||10,this.minHueCols=b.minHueCols||0,this.hueStats=this.minHueCols?new c(this.hueGroups,this.minHueCols):null,this.boxSize=b.boxSize||[64,64],this.boxPxls=b.boxPxls||2,this.palLocked=!1,this.dithKern=b.dithKern||null,this.dithSerp=b.dithSerp||!1,this.dithDelta=b.dithDelta||0,this.histogram={},this.idxrgb=b.palette?b.palette.slice(0):[],this.idxi32=[],this.i32idx={},this.i32rgb={},this.useCache=b.useCache!==!1,this.cacheFreq=b.cacheFreq||10,this.reIndex=b.reIndex||this.idxrgb.length==0,this.colorDist=b.colorDist=="manhattan"?x:z,this.idxrgb.length>0){var N=this;this.idxrgb.forEach(function(A,T){var q=(-16777216|A[2]<<16|A[1]<<8|A[0])>>>0;N.idxi32[T]=q,N.i32idx[q]=T,N.i32rgb[q]=A})}}e.prototype.sample=function(N,A){if(this.palLocked)throw"Cannot sample additional images, palette already assembled.";var T=F(N,A);switch(this.method){case 1:this.colorStats1D(T.buf32);break;case 2:this.colorStats2D(T.buf32,T.width);break}},e.prototype.reduce=function(N,A,T,q){if(this.palLocked||this.buildPal(),T=T||this.dithKern,q=typeof q<"u"?q:this.dithSerp,A=A||1,T)var Y=this.dither(N,T,q);else for(var j=F(N),G=j.buf32,t2=G.length,Y=new Uint32Array(t2),s2=0;s2>8,e4=(a3&16711680)>>16,K2=this.nearestColor(a3),W1=K2&255,R3=(K2&65280)>>8,B2=(K2&16711680)>>16;if(j[L1]=255<<24|B2<<16|R3<<8|W1,this.dithDelta){var N6=this.colorDist([d1,z1,e4],[W1,R3,B2]);if(N6=0&&P1+Y2=0&&m4+M2>8,B4=(j[c4]&16711680)>>16,_8=Math.max(0,Math.min(255,Na+Sa*A8)),E8=Math.max(0,Math.min(255,A6+D3*A8)),P8=Math.max(0,Math.min(255,B4+he*A8));j[c4]=255<<24|P8<<16|E8<<8|_8}}}}return j},e.prototype.buildPal=function(N){if(!(this.palLocked||this.idxrgb.length>0&&this.idxrgb.length<=this.colors)){var A=this.histogram,T=J(A,!0);if(T.length==0)throw"Nothing has been sampled, palette cannot be built.";switch(this.method){case 1:for(var q=this.initColors,Y=T[q-1],j=A[Y],s2=T.slice(0,q),G=q,t2=T.length;Gthis.colors){for(var A=N.length,T={},q=0,Y,j=!1,G=0;G>8,(K2&16711680)>>16]}),A=t2.length,s2=A,i2=this.initDist;if(s2>this.colors){for(;s2>this.colors;){for(var M2=[],G=0;Gthis.colors*3?this.initDist:this.distIncr}if(s2>24&&(this.hueStats&&this.hueStats.check(q),q in A?A[q]++:A[q]=1)},e.prototype.colorStats2D=function(N,A){var T=this.boxSize[0],q=this.boxSize[1],Y=T*q,j=U(A,N.length/A,T,q),G=this.histogram,t2=this;j.forEach(function(s2){var i2=Math.max(Math.round(s2.w*s2.h/Y)*t2.boxPxls,2),M2={},L2;B(s2,A,function(Y2){L2=N[Y2],(L2&4278190080)>>24&&(t2.hueStats&&t2.hueStats.check(L2),L2 in G?G[L2]++:L2 in M2?++M2[L2]>=i2&&(G[L2]=M2[L2]):M2[L2]=1)})}),this.hueStats&&this.hueStats.inject(G)},e.prototype.sortPal=function(){var N=this;this.idxi32.sort(function(A,T){var q=N.i32idx[A],Y=N.i32idx[T],j=N.idxrgb[q],G=N.idxrgb[Y],t2=S(j[0],j[1],j[2]),s2=S(G[0],G[1],G[2]),i2=j[0]==j[1]&&j[1]==j[2]?-1:E(t2.h,N.hueGroups),M2=G[0]==G[1]&&G[1]==G[2]?-1:E(s2.h,N.hueGroups),L2=M2-i2;if(L2)return-L2;var Y2=+s2.l.toFixed(2)-+t2.l.toFixed(2);if(Y2)return-Y2;var c1=+s2.s.toFixed(2)-+t2.s.toFixed(2);if(c1)return-c1}),this.idxi32.forEach(function(A,T){N.idxrgb[T]=N.i32rgb[A],N.i32idx[A]=T})},e.prototype.nearestColor=function(N){var A=this.nearestIndex(N);return A===null?0:this.idxi32[A]},e.prototype.nearestIndex=function(N){if(!((N&4278190080)>>24))return null;if(this.useCache&&""+N in this.i32idx)return this.i32idx[N];for(var A=1e3,T,q=[N&255,(N&65280)>>8,(N&16711680)>>16],Y=this.idxrgb.length,j=0;j=this.cacheFreq;T=N[A++])this.i32idx[T]=this.nearestIndex(T)};function c(b,N){this.numGroups=b,this.minCols=N,this.stats={};for(var A=-1;A>8,q=(N&16711680)>>16,Y=A==T&&T==q?-1:E(S(A,T,q).h,this.numGroups),j=this.stats[Y],G=this.minCols;j.num++,!(j.num>G)&&(j.num==G&&this.groupsFull++,j.num<=G&&this.stats[Y].cols.push(N))},c.prototype.inject=function(N){for(var A=-1;A.5?t2/(2-T-q):t2/(T+q),T){case b:Y=(N-A)/t2+(N=1-T||b<=T)return 0;for(var q=1;q=Y-T&&b<=Y+T)return q}}function D(b){return b}function Z(b){return b}function M(b){return Object.prototype.toString.call(b).slice(8,-1)}var H=_()?Array.prototype.sort:C;function C(b){var N=M(this[0]);if(N=="Number"||N=="String"){for(var A={},T=this.length,q,Y=0;Y{(function(e,c){typeof define=="function"&&define.amd?define([],c):typeof Li<"u"?c():(c(),e.FileSaver={})})(Li,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 a(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):a(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(a(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",x=/constructor/i.test(i.HTMLElement)||i.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||V&&x||s)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var M=E.result;M=S?M:M.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=M:location=M,z=null},E.readAsDataURL(u)}else{var D=i.URL||i.webkitURL,Z=D.createObjectURL(u);z?z.location=Z:location.href=Z,z=null,setTimeout(function(){D.revokeObjectURL(Z)},4e4)}});i.saveAs=l.saveAs=l,typeof xi<"u"&&(xi.exports=l)})});var A0=T2(Q8()),y3=512;function r7(e,c){return e.indexOf(c)===-1?(e.push(c),!0):!1}function Z8(e,c){let a=e.indexOf(c);return a!==-1?(e.splice(a,1),!0):!1}function Kr(e,c,a){return{r:e,g:c,b:a}}function I6(e,c){return e>c?e-c:c-e}function jr(e,c=2){return e.toString(16).padStart(c,"0")}function al(e,c,a){return"#"+jr(e)+jr(c)+jr(a)}function n7(){return new Promise(e=>requestAnimationFrame(e))}function t7(e){let c=e.lastIndexOf(".");return c===-1?{text:e,ex:""}:{text:e.slice(0,c),ex:e.slice(c+1)}}function Xr(e){return new Promise((c,a)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{a(i)}),n.readAsText(e)})}function Qr(e){return new Promise((c,a)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{a(i)}),n.readAsDataURL(e)})}function Zr(e,c){return new Promise((a,n)=>{let i=new Image;i.alt=e,i.addEventListener("load",()=>a(i)),i.addEventListener("error",s=>{n(s)}),c.startsWith("data:image")||c.startsWith("blob")?i.src=c:i.src=`data:image/${t7(e)};base64,${c}`})}function _0(e){return e.length}function E0(e){return e[0]&&e[0].length||0}function U6(e){return _0(e.pixels)}function W6(e){return E0(e.pixels)}function Jr(e,c,a){let n=e5();n.width=c,n.height=a;let i=n.getContext("2d");return i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,c,a),fL(n,e.alt)}function fL(e,c){return new Promise((a,n)=>{let i=e.toDataURL("image/png"),s=new Image;s.addEventListener("load",()=>a(s)),s.addEventListener("error",l=>n(l)),c&&(s.alt=c),s.src=i})}function i7(e){if(typeof e=="object"){let c=(0,A0.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,A0.isInteger)(c.x))throw new Error("x is not an integer");if(!(0,A0.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 a=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 J8(e){return e.getContext("2d").getImageData(0,0,e.width,e.height)}function s7(e,c){let{height:a,width:n}=e,i=[];for(let s=0;s-1){p++;let S=a[x];if(!S)throw new Error(`Unknown color at ${x}`);i.fillStyle=S,i.fillRect(h*n,z*n,n,n)}}return p}function e5(){let e=document.createElement("canvas");return e.setAttribute("overlay","true"),e}function c5(e,c){let a=document.createElement("canvas");a.width=E0(e),a.height=_0(e);let n=cn(a,e,c);return{canvas:a,pixels:n}}var Yr;try{let e=navigator.language||navigator.userLanguage;Yr=new Intl.NumberFormat(e)}catch{}function rl(e){return Yr?Yr.format(e):e.toString()}function P0(e,c){e.preventDefault(),e.stopPropagation(),e.target.value===""?c(0):e.target.value==="-"?c(-1):c(parseInt(e.target.value,10))}var T0=class{listeners=new Map;on(c,a){let n=this.listeners.get(c)||[];r7(n,a),this.listeners.set(c,n)}off(c,a){let n=this.listeners.get(c)||[];Z8(n,a),n.length||this.listeners.delete(c)}emit(c,...a){let n=this.listeners.get(c);if(n)for(let i=0;ia.textContent&&a.textContent.match(/^\(\s*-?\d+\s*,\s*-?\d+\s*\)$/));for(let a of c)a.children.length===0&&(this.cords=a,this.frame=requestAnimationFrame(this.observe));await n7()}}stop(){this.frame&&cancelAnimationFrame(this.frame)}get centerCanvas(){let c=window.innerWidth/2,a=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&&as&&as&&a>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,a){let n=this.centerCanvas;if(!n)return null;this.getCordsFromUrl();let i=Math.floor(this.ux/y3)*y3,s=Math.floor(this.uy/y3)*y3,l=(c-n.bounds.left)/this.pixelSize+i,u=(a-n.bounds.top)/this.pixelSize+s;return{x:l,y:u}}gridToScreen(c,a){let n=this.centerCanvas;if(!n)return null;let i=Math.floor(this.ux/y3)*y3,s=Math.floor(this.uy/y3)*y3,l=c-i,u=a-s,p=n.bounds.left+l*this.pixelSize,h=n.bounds.top+u*this.pixelSize;return{x:p,y:h}}getCordsFromUrl(){let a=location.pathname.split("/").filter(n=>n)[0];if(a){let n=a.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(a=>parseInt(a));this._x=c[0],this._y=c[1]}observe=()=>{let c=this._x,a=this._y;this.parse(),(c!==this._x||a!==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 l7=class{buttons=[];palette=[];hex=[];init(){let c=[...document.getElementsByTagName("button")].filter(h=>h.style.backgroundColor);if(c.length<2)return null;let a=new Map,n=new Map,i=c.map(h=>{let{width:z,height:V}=h.getBoundingClientRect(),x=a.get(z)||0,S=n.get(V)||0;return x++,S++,a.set(z,x),n.set(V,S),{btn:h,width:z,height:V}}),s=Array.from(a).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=>al(h.r,h.g,h.b)),p}};var a5=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(c){this.input.multiple=c}setAcceptType(c){c?this.input.accept=c.map(a=>`.${a}`).join(", "):this.input.accept=""}show(){return new Promise((c,a)=>{let n=["mousemove","touchend"],i=()=>{s(),a(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):a(new Error("Missing file"))}),this.input.click()})}};var Mv=T2(g1());var J3=T2(g1());var m7=class{constructor(c,a){this.storage=c;this.palette=a}STORAGE_KEY_MURAL="_murals";STORAGE_KEY_SELECTED="_mural";_murals=[];_selected;emitter=new T0;_overlayIndices=[];_phantomOverlay=-1;_overlayModify;async load(){this._murals=await this.storage.getItem(this.STORAGE_KEY_MURAL)||[];for(let a of this._murals){let{canvas:n,pixels:i}=c5(a.pixels,this.palette.hex);a.ref=n,a.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 a=c,{canvas:n,pixels:i}=c5(c.pixels,this.palette.hex);a.ref=n,a.pixelCount=i,this._murals.push(a),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),Z8(this._murals,c),this.emit(2),this.save()}addOverlay(c){let a=this._murals.indexOf(c);a!==-1&&(r7(this._overlayIndices,a),this._phantomOverlay===a&&(this._phantomOverlay=-1)),this.emit(5),this.save()}removeOverlay(c){let a=this._murals.indexOf(c);a!==-1&&Z8(this._overlayIndices,a),this.emit(5),this.save()}setOverlayModify(c){this._overlayModify=c;let a=c.cb;c.cb=(n,i,s,l)=>{a(n,i,s,l),this._overlayModify=void 0,this.emit(5)},this.emit(5)}hasOverlay(c){let a=this._murals.indexOf(c);return this._overlayIndices.includes(a)}select(c){c?this._selected={m:c,h:U6(c),w:W6(c)}:this._selected=void 0,this.emit(4),this.save()}async save(){await this.storage.setItem(this.STORAGE_KEY_MURAL,this._murals.map(a=>({name:a.name,pixels:a.pixels,x:a.x,y:a.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 a=this._murals.indexOf(c);a!==this._phantomOverlay&&!this._overlayIndices.includes(a)&&(this._phantomOverlay=a,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,a){this.emitter.on(c,a)}off(c,a){this.emitter.off(c,a)}emit(c){this.emitter.emit(c,this),this.emitter.emit(7,this)}};var dl={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 zl={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 Hl={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 SL={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"]},gl=SL;var Vl={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 Ml={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 Cl={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 Ll={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 xl={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 yl={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 wl={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 Sl(e,c){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function X(e){for(var c=1;ce.length)&&(c=e.length);for(var a=0,n=new Array(c);a-1;i--){var s=a[i],l=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(n=s)}return D2.head.insertBefore(c,n),e}}var QL="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function u5(){for(var e=12,c="";e-- >0;)c+=QL[Math.random()*62|0];return c}function I0(e){for(var c=[],a=(e||[]).length>>>0;a--;)c[a]=e[a];return c}function Nn(e){return e.classList?I0(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(c){return c})}function uf(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ZL(e){return Object.keys(e||{}).reduce(function(c,a){return c+"".concat(a,'="').concat(uf(e[a]),'" ')},"").trim()}function N7(e){return Object.keys(e||{}).reduce(function(c,a){return c+"".concat(a,": ").concat(e[a].trim(),";")},"")}function kn(e){return e.size!==t4.size||e.x!==t4.x||e.y!==t4.y||e.rotate!==t4.rotate||e.flipX||e.flipY}function JL(e){var c=e.transform,a=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(a/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 ex(e){var c=e.transform,a=e.width,n=a===void 0?mn:a,i=e.height,s=i===void 0?mn:i,l=e.startCentered,u=l===void 0?!1:l,p="";return u&&rf?p+="translate(".concat(c.x/Q4-n/2,"em, ").concat(c.y/Q4-s/2,"em) "):u?p+="translate(calc(-50% + ".concat(c.x/Q4,"em), calc(-50% + ").concat(c.y/Q4,"em)) "):p+="translate(".concat(c.x/Q4,"em, ").concat(c.y/Q4,"em) "),p+="scale(".concat(c.size/Q4*(c.flipX?-1:1),", ").concat(c.size/Q4*(c.flipY?-1:1),") "),p+="rotate(".concat(c.rotate,"deg) "),p}var cx=`:root, :host { +`+s.stack}return{value:e,source:c,stack:i,digest:null}}function _t(e,c,a){return{value:e,source:null,stack:a??null,digest:c??null}}function v9(e,c){try{console.error(c.value)}catch(a){setTimeout(function(){throw a})}}var BS=typeof WeakMap=="function"?WeakMap:Map;function Ah(e,c,a){a=P4(-1,a),a.tag=3,a.payload={element:null};var n=c.value;return a.callback=function(){Qc||(Qc=!0,y9=n),v9(e,c)},a}function Eh(e,c,a){a=P4(-1,a),a.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=c.value;a.payload=function(){return n(i)},a.callback=function(){v9(e,c)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(a.callback=function(){v9(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:""})}),a}function Bp(e,c,a){var n=e.pingCache;if(n===null){n=e.pingCache=new BS;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(a)||(i.add(a),e=cN.bind(null,e,c,a),c.then(e,e))}function Up(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 Wp(e,c,a,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===c?e.flags|=65536:(e.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(c=P4(-1,1),c.tag=2,z6(a,c,1))),a.lanes|=1),e)}var US=O4.ReactCurrentOwner,e3=!1;function W1(e,c,a,n){c.child=e===null?fh(c,null,a,n):x8(c,e.child,a,n)}function Gp(e,c,a,n,i){a=a.render;var s=c.ref;return g8(c,i),n=ri(e,c,a,n,s,i),a=ni(),e!==null&&!e3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,F4(e,c,i)):(W2&&a&&q9(c),c.flags|=1,W1(e,c,n,i),c.child)}function qp(e,c,a,n,i){if(e===null){var s=a.type;return typeof s=="function"&&!hi(s)&&s.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(c.tag=15,c.type=s,_h(e,c,s,n,i)):(e=kc(a.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(a=a.compare,a=a!==null?a:J5,a(l,n)&&e.ref===c.ref)return F4(e,c,i)}return c.flags|=1,e=V6(s,n),e.ref=c.ref,e.return=c,c.child=e}function _h(e,c,a,n,i){if(e!==null){var s=e.memoizedProps;if(J5(s,n)&&e.ref===c.ref)if(e3=!1,c.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(e3=!0);else return c.lanes=e.lanes,F4(e,c,i)}return d9(e,c,a,n,i)}function Ph(e,c,a){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},P2(h8,p3),p3|=a;else{if(!(a&1073741824))return e=s!==null?s.baseLanes|a:a,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:e,cachePool:null,transitions:null},c.updateQueue=null,P2(h8,p3),p3|=e,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:a,P2(h8,p3),p3|=n}else s!==null?(n=s.baseLanes|a,c.memoizedState=null):n=a,P2(h8,p3),p3|=n;return W1(e,c,i,a),c.child}function Th(e,c){var a=c.ref;(e===null&&a!==null||e!==null&&e.ref!==a)&&(c.flags|=512,c.flags|=2097152)}function d9(e,c,a,n,i){var s=a3(a)?l0:_1.current;return s=C8(c,s),g8(c,i),a=ri(e,c,a,n,s,i),n=ni(),e!==null&&!e3?(c.updateQueue=e.updateQueue,c.flags&=-2053,e.lanes&=~i,F4(e,c,i)):(W2&&n&&q9(c),c.flags|=1,W1(e,c,a,i),c.child)}function $p(e,c,a,n,i){if(a3(a)){var s=!0;Bc(c)}else s=!1;if(g8(c,i),c.stateNode===null)Sc(e,c),oh(c,a,n),h9(c,a,n,i),n=!0;else if(e===null){var l=c.stateNode,u=c.memoizedProps;l.props=u;var p=l.context,h=a.contextType;typeof h=="object"&&h!==null?h=P3(h):(h=a3(a)?l0:_1.current,h=C8(c,h));var z=a.getDerivedStateFromProps,M=typeof z=="function"||typeof l.getSnapshotBeforeUpdate=="function";M||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==n||p!==h)&&Dp(c,l,n,h),o6=!1;var L=c.memoizedState;l.state=L,$c(c,n,l,i),p=c.memoizedState,u!==n||L!==p||c3.current||o6?(typeof z=="function"&&(m9(c,a,z,n),p=c.memoizedState),(u=o6||Rp(c,a,u,n,L,p,h))?(M||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,ih(e,c),u=c.memoizedProps,h=c.type===c.elementType?u:j3(c.type,u),l.props=h,M=c.pendingProps,L=l.context,p=a.contextType,typeof p=="object"&&p!==null?p=P3(p):(p=a3(a)?l0:_1.current,p=C8(c,p));var S=a.getDerivedStateFromProps;(z=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(u!==M||L!==p)&&Dp(c,l,n,p),o6=!1,L=c.memoizedState,l.state=L,$c(c,n,l,i);var _=c.memoizedState;u!==M||L!==_||c3.current||o6?(typeof S=="function"&&(m9(c,a,S,n),_=c.memoizedState),(h=o6||Rp(c,a,h,n,L,_,p)||!1)?(z||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,_,p),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,_,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=_),l.props=n,l.state=_,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 z9(e,c,a,n,s,i)}function z9(e,c,a,n,i,s){Th(e,c);var l=(c.flags&128)!==0;if(!n&&!l)return i&&Ap(c,a,!1),F4(e,c,s);n=c.stateNode,US.current=c;var u=l&&typeof a.getDerivedStateFromError!="function"?null:n.render();return c.flags|=1,e!==null&&l?(c.child=x8(c,e.child,null,s),c.child=x8(c,null,u,s)):W1(e,c,u,s),c.memoizedState=n.state,i&&Ap(c,a,!0),c.child}function Rh(e){var c=e.stateNode;c.pendingContext?kp(e,c.pendingContext,c.pendingContext!==c.context):c.context&&kp(e,c.context,!1),J9(e,c.containerInfo)}function jp(e,c,a,n,i){return L8(),j9(i),c.flags|=256,W1(e,c,a,n),c.child}var H9={dehydrated:null,treeContext:null,retryLane:0};function g9(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dh(e,c,a){var n=c.pendingProps,i=$2.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),P2($2,i&1),e===null)return u9(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=ua(l,n,0,null),e=o0(e,n,a,null),s.return=c,e.return=c,s.sibling=e,c.child=s,c.child.memoizedState=g9(a),c.memoizedState=H9,e):si(c,l));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return WS(e,c,l,n,u,i,a);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=o0(s,l,a,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?g9(a):{baseLanes:l.baseLanes|a,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~a,c.memoizedState=H9,n}return s=e.child,e=s.sibling,n=V6(s,{mode:"visible",children:n.children}),!(c.mode&1)&&(n.lanes=a),n.return=c,n.sibling=null,e!==null&&(a=c.deletions,a===null?(c.deletions=[e],c.flags|=16):a.push(e)),c.child=n,c.memoizedState=null,n}function si(e,c){return c=ua({mode:"visible",children:c},e.mode,0,null),c.return=e,e.child=c}function Hc(e,c,a,n){return n!==null&&j9(n),x8(c,e.child,null,a),e=si(c,c.pendingProps.children),e.flags|=2,c.memoizedState=null,e}function WS(e,c,a,n,i,s,l){if(a)return c.flags&256?(c.flags&=-257,n=_t(Error(G(422))),Hc(e,c,l,n)):c.memoizedState!==null?(c.child=e.child,c.flags|=128,null):(s=n.fallback,i=c.mode,n=ua({mode:"visible",children:n.children},i,0,null),s=o0(s,i,l,null),s.flags|=2,n.return=c,s.return=c,n.sibling=s,c.child=n,c.mode&1&&x8(c,e.child,null,l),c.child.memoizedState=g9(l),c.memoizedState=H9,s);if(!(c.mode&1))return Hc(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=_t(s,n,void 0),Hc(e,c,l,n)}if(u=(l&e.childLanes)!==0,e3||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,D4(e,i),Q3(n,e,i,-1))}return mi(),n=_t(Error(G(421))),Hc(e,c,l,n)}return i.data==="$?"?(c.flags|=128,c.child=e.child,c=aN.bind(null,e),i._reactRetry=c,null):(e=s.treeContext,m3=d6(i.nextSibling),h3=c,W2=!0,K3=null,e!==null&&(k3[A3++]=E4,k3[A3++]=_4,k3[A3++]=f0,E4=e.id,_4=e.overflow,f0=c),c=si(c,n.children),c.flags|=4096,c)}function Yp(e,c,a){e.lanes|=c;var n=e.alternate;n!==null&&(n.lanes|=c),p9(e.return,c,a)}function Pt(e,c,a,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i}:(s.isBackwards=c,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=a,s.tailMode=i)}function Fh(e,c,a){var n=c.pendingProps,i=n.revealOrder,s=n.tail;if(W1(e,c,n.children,a),n=$2.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&&Yp(e,a,c);else if(e.tag===19)Yp(e,a,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(P2($2,n),!(c.mode&1))c.memoizedState=null;else switch(i){case"forwards":for(a=c.child,i=null;a!==null;)e=a.alternate,e!==null&&jc(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=c.child,c.child=null):(i=a.sibling,a.sibling=null),Pt(c,!1,i,a,s);break;case"backwards":for(a=null,i=c.child,c.child=null;i!==null;){if(e=i.alternate,e!==null&&jc(e)===null){c.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}Pt(c,!0,a,null,s);break;case"together":Pt(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Sc(e,c){!(c.mode&1)&&e!==null&&(e.alternate=null,c.alternate=null,c.flags|=2)}function F4(e,c,a){if(e!==null&&(c.dependencies=e.dependencies),p0|=c.lanes,!(a&c.childLanes))return null;if(e!==null&&c.child!==e.child)throw Error(G(153));if(c.child!==null){for(e=c.child,a=V6(e,e.pendingProps),c.child=a,a.return=c;e.sibling!==null;)e=e.sibling,a=a.sibling=V6(e,e.pendingProps),a.return=c;a.sibling=null}return c.child}function GS(e,c,a){switch(c.tag){case 3:Rh(c),L8();break;case 5:uh(c);break;case 1:a3(c.type)&&Bc(c);break;case 4:J9(c,c.stateNode.containerInfo);break;case 10:var n=c.type._context,i=c.memoizedProps.value;P2(Gc,n._currentValue),n._currentValue=i;break;case 13:if(n=c.memoizedState,n!==null)return n.dehydrated!==null?(P2($2,$2.current&1),c.flags|=128,null):a&c.child.childLanes?Dh(e,c,a):(P2($2,$2.current&1),e=F4(e,c,a),e!==null?e.sibling:null);P2($2,$2.current&1);break;case 19:if(n=(a&c.childLanes)!==0,e.flags&128){if(n)return Fh(e,c,a);c.flags|=128}if(i=c.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),P2($2,$2.current),n)break;return null;case 22:case 23:return c.lanes=0,Ph(e,c,a)}return F4(e,c,a)}var Oh,V9,Ih,Bh;Oh=function(e,c){for(var a=c.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===c)break;for(;a.sibling===null;){if(a.return===null||a.return===c)return;a=a.return}a.sibling.return=a.return,a=a.sibling}};V9=function(){};Ih=function(e,c,a,n){var i=e.memoizedProps;if(i!==n){e=c.stateNode,i0(p4.current);var s=null;switch(a){case"input":i=Ut(e,i),n=Ut(e,n),s=[];break;case"select":i=Y2({},i,{value:void 0}),n=Y2({},n,{value:void 0}),s=[];break;case"textarea":i=qt(e,i),n=qt(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Oc)}jt(a,n);var l;a=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)&&(a||(a={}),a[l]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&($5.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)||(a||(a={}),a[l]="");for(l in p)p.hasOwnProperty(l)&&u[l]!==p[l]&&(a||(a={}),a[l]=p[l])}else a||(s||(s=[]),s.push(h,a)),a=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"&&($5.hasOwnProperty(h)?(p!=null&&h==="onScroll"&&O2("scroll",e),s||u===p||(s=[])):(s=s||[]).push(h,p))}a&&(s=s||[]).push("style",a);var h=s;(c.updateQueue=h)&&(c.flags|=4)}};Bh=function(e,c,a,n){a!==n&&(c.flags|=4)};function k5(e,c){if(!W2)switch(e.tailMode){case"hidden":c=e.tail;for(var a=null;c!==null;)c.alternate!==null&&(a=c),c=c.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?c||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function A1(e){var c=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(c)for(var i=e.child;i!==null;)a|=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;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,c}function qS(e,c,a){var n=c.pendingProps;switch($9(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return A1(c),null;case 1:return a3(c.type)&&Ic(),A1(c),null;case 3:return n=c.stateNode,y8(),I2(c3),I2(_1),ci(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dc(c)?c.flags|=4:e===null||e.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,K3!==null&&(N9(K3),K3=null))),V9(e,c),A1(c),null;case 5:ei(c);var i=i0(ne.current);if(a=c.type,e!==null&&c.stateNode!=null)Ih(e,c,a,n,i),e.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!n){if(c.stateNode===null)throw Error(G(166));return A1(c),null}if(e=i0(p4.current),dc(c)){n=c.stateNode,a=c.type;var s=c.memoizedProps;switch(n[f4]=c,n[ae]=s,e=(c.mode&1)!==0,a){case"dialog":O2("cancel",n),O2("close",n);break;case"iframe":case"object":case"embed":O2("load",n);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(a,{is:n.is}):(e=l.createElement(a),a==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,a),e[f4]=c,e[ae]=n,Oh(e,c,!1,!1),c.stateNode=e;e:{switch(l=Yt(a,n),a){case"dialog":O2("cancel",e),O2("close",e),i=n;break;case"iframe":case"object":case"embed":O2("load",e),i=n;break;case"video":case"audio":for(i=0;iS8&&(c.flags|=128,n=!0,k5(s,!1),c.lanes=4194304)}else{if(!n)if(e=jc(l),e!==null){if(c.flags|=128,n=!0,a=e.updateQueue,a!==null&&(c.updateQueue=a,c.flags|=4),k5(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!W2)return A1(c),null}else 2*t1()-s.renderingStartTime>S8&&a!==1073741824&&(c.flags|=128,n=!0,k5(s,!1),c.lanes=4194304);s.isBackwards?(l.sibling=c.child,c.child=l):(a=s.last,a!==null?a.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,a=$2.current,P2($2,n?a&1|2:a&1),c):(A1(c),null);case 22:case 23:return pi(),n=c.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(c.flags|=8192),n&&c.mode&1?p3&1073741824&&(A1(c),c.subtreeFlags&6&&(c.flags|=8192)):A1(c),null;case 24:return null;case 25:return null}throw Error(G(156,c.tag))}function $S(e,c){switch($9(c),c.tag){case 1:return a3(c.type)&&Ic(),e=c.flags,e&65536?(c.flags=e&-65537|128,c):null;case 3:return y8(),I2(c3),I2(_1),ci(),e=c.flags,e&65536&&!(e&128)?(c.flags=e&-65537|128,c):null;case 5:return ei(c),null;case 13:if(I2($2),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 I2($2),null;case 4:return y8(),null;case 10:return X9(c.type._context),null;case 22:case 23:return pi(),null;case 24:return null;default:return null}}var gc=!1,E1=!1,jS=typeof WeakSet=="function"?WeakSet:Set,Z=null;function m8(e,c){var a=e.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(n){c1(e,c,n)}else a.current=null}function M9(e,c,a){try{a()}catch(n){c1(e,c,n)}}var Kp=!1;function YS(e,c){if(n9=Rc,e=qm(),G9(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var l=0,u=-1,p=-1,h=0,z=0,M=e,L=null;c:for(;;){for(var S;M!==a||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===a&&++h===i&&(u=l),L===s&&++z===n&&(p=l),(S=M.nextSibling)!==null)break;M=L,L=M.parentNode}M=S}a=u===-1||p===-1?null:{start:u,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;for(t9={focusedElem:e,selectionRange:a},Rc=!1,Z=c;Z!==null;)if(c=Z,e=c.child,(c.subtreeFlags&1028)!==0&&e!==null)e.return=c,Z=e;else for(;Z!==null;){c=Z;try{var _=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var R=_.memoizedProps,W=_.memoizedState,g=c.stateNode,H=g.getSnapshotBeforeUpdate(c.elementType===c.type?R:j3(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,Z=e;break}Z=c.return}return _=Kp,Kp=!1,_}function W5(e,c,a){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&&M9(c,a,s)}i=i.next}while(i!==n)}}function la(e,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var a=c=c.next;do{if((a.tag&e)===e){var n=a.create;a.destroy=n()}a=a.next}while(a!==c)}}function C9(e){var c=e.ref;if(c!==null){var a=e.stateNode;switch(e.tag){case 5:e=a;break;default:e=a}typeof c=="function"?c(e):c.current=e}}function Uh(e){var c=e.alternate;c!==null&&(e.alternate=null,Uh(c)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(c=e.stateNode,c!==null&&(delete c[f4],delete c[ae],delete c[o9],delete c[kS],delete c[AS])),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 Wh(e){return e.tag===5||e.tag===3||e.tag===4}function Xp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(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 L9(e,c,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?a.nodeType===8?a.parentNode.insertBefore(e,c):a.insertBefore(e,c):(a.nodeType===8?(c=a.parentNode,c.insertBefore(e,a)):(c=a,c.appendChild(e)),a=a._reactRootContainer,a!=null||c.onclick!==null||(c.onclick=Oc));else if(n!==4&&(e=e.child,e!==null))for(L9(e,c,a),e=e.sibling;e!==null;)L9(e,c,a),e=e.sibling}function x9(e,c,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,c?a.insertBefore(e,c):a.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(x9(e,c,a),e=e.sibling;e!==null;)x9(e,c,a),e=e.sibling}var M1=null,Y3=!1;function i6(e,c,a){for(a=a.child;a!==null;)Gh(e,c,a),a=a.sibling}function Gh(e,c,a){if(u4&&typeof u4.onCommitFiberUnmount=="function")try{u4.onCommitFiberUnmount(ca,a)}catch{}switch(a.tag){case 5:E1||m8(a,c);case 6:var n=M1,i=Y3;M1=null,i6(e,c,a),M1=n,Y3=i,M1!==null&&(Y3?(e=M1,a=a.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)):M1.removeChild(a.stateNode));break;case 18:M1!==null&&(Y3?(e=M1,a=a.stateNode,e.nodeType===8?St(e.parentNode,a):e.nodeType===1&&St(e,a),Q5(e)):St(M1,a.stateNode));break;case 4:n=M1,i=Y3,M1=a.stateNode.containerInfo,Y3=!0,i6(e,c,a),M1=n,Y3=i;break;case 0:case 11:case 14:case 15:if(!E1&&(n=a.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)&&M9(a,c,l),i=i.next}while(i!==n)}i6(e,c,a);break;case 1:if(!E1&&(m8(a,c),n=a.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=a.memoizedProps,n.state=a.memoizedState,n.componentWillUnmount()}catch(u){c1(a,c,u)}i6(e,c,a);break;case 21:i6(e,c,a);break;case 22:a.mode&1?(E1=(n=E1)||a.memoizedState!==null,i6(e,c,a),E1=n):i6(e,c,a);break;default:i6(e,c,a)}}function Qp(e){var c=e.updateQueue;if(c!==null){e.updateQueue=null;var a=e.stateNode;a===null&&(a=e.stateNode=new jS),c.forEach(function(n){var i=rN.bind(null,e,n);a.has(n)||(a.add(n),n.then(i,i))})}}function $3(e,c){var a=c.deletions;if(a!==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*XS(n/1960))-n,10e?16:e,p6===null)var n=!1;else{if(e=p6,p6=null,Zc=0,V2&6)throw Error(G(331));var i=V2;for(V2|=4,Z=e.current;Z!==null;){var s=Z,l=s.child;if(Z.flags&16){var u=s.deletions;if(u!==null){for(var p=0;pt1()-fi?s0(e,0):li|=a),r3(e,c)}function Zh(e,c){c===0&&(e.mode&1?(c=ic,ic<<=1,!(ic&130023424)&&(ic=4194304)):c=1);var a=G1();e=D4(e,c),e!==null&&(le(e,c,a),r3(e,a))}function aN(e){var c=e.memoizedState,a=0;c!==null&&(a=c.retryLane),Zh(e,a)}function rN(e,c){var a=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(G(314))}n!==null&&n.delete(c),Zh(e,a)}var Jh;Jh=function(e,c,a){if(e!==null)if(e.memoizedProps!==c.pendingProps||c3.current)e3=!0;else{if(!(e.lanes&a)&&!(c.flags&128))return e3=!1,GS(e,c,a);e3=!!(e.flags&131072)}else e3=!1,W2&&c.flags&1048576&&ah(c,Wc,c.index);switch(c.lanes=0,c.tag){case 2:var n=c.type;Sc(e,c),e=c.pendingProps;var i=C8(c,_1.current);g8(c,a),i=ri(null,c,n,e,i,a);var s=ni();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,Bc(c)):s=!1,c.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Z9(c),i.updater=sa,c.stateNode=i,i._reactInternals=c,h9(c,n,e,a),c=z9(null,c,n,!0,s,a)):(c.tag=0,W2&&s&&q9(c),W1(null,c,i,a),c=c.child),c;case 16:n=c.elementType;e:{switch(Sc(e,c),e=c.pendingProps,i=n._init,n=i(n._payload),c.type=n,i=c.tag=tN(n),e=j3(n,e),i){case 0:c=d9(null,c,n,e,a);break e;case 1:c=$p(null,c,n,e,a);break e;case 11:c=Gp(null,c,n,e,a);break e;case 14:c=qp(null,c,n,j3(n.type,e),a);break e}throw Error(G(306,n,""))}return c;case 0:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:j3(n,i),d9(e,c,n,i,a);case 1:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:j3(n,i),$p(e,c,n,i,a);case 3:e:{if(Rh(c),e===null)throw Error(G(387));n=c.pendingProps,s=c.memoizedState,i=s.element,ih(e,c),$c(c,n,null,a);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,a,i);break e}else if(n!==i){i=w8(Error(G(424)),c),c=jp(e,c,n,a,i);break e}else for(m3=d6(c.stateNode.containerInfo.firstChild),h3=c,W2=!0,K3=null,a=fh(c,null,n,a),c.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(L8(),n===i){c=F4(e,c,a);break e}W1(e,c,n,a)}c=c.child}return c;case 5:return uh(c),e===null&&u9(c),n=c.type,i=c.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,i9(n,i)?l=null:s!==null&&i9(n,s)&&(c.flags|=32),Th(e,c),W1(e,c,l,a),c.child;case 6:return e===null&&u9(c),null;case 13:return Dh(e,c,a);case 4:return J9(c,c.stateNode.containerInfo),n=c.pendingProps,e===null?c.child=x8(c,null,n,a):W1(e,c,n,a),c.child;case 11:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:j3(n,i),Gp(e,c,n,i,a);case 7:return W1(e,c,c.pendingProps,a),c.child;case 8:return W1(e,c,c.pendingProps.children,a),c.child;case 12:return W1(e,c,c.pendingProps.children,a),c.child;case 10:e:{if(n=c.type._context,i=c.pendingProps,s=c.memoizedProps,l=i.value,P2(Gc,n._currentValue),n._currentValue=l,s!==null)if(Z3(s.value,l)){if(s.children===i.children&&!c3.current){c=F4(e,c,a);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=P4(-1,a&-a),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|=a,p=s.alternate,p!==null&&(p.lanes|=a),p9(s.return,a,c),u.lanes|=a;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|=a,u=l.alternate,u!==null&&(u.lanes|=a),p9(l,a,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}W1(e,c,i.children,a),c=c.child}return c;case 9:return i=c.type,n=c.pendingProps.children,g8(c,a),i=P3(i),n=n(i),c.flags|=1,W1(e,c,n,a),c.child;case 14:return n=c.type,i=j3(n,c.pendingProps),i=j3(n.type,i),qp(e,c,n,i,a);case 15:return _h(e,c,c.type,c.pendingProps,a);case 17:return n=c.type,i=c.pendingProps,i=c.elementType===n?i:j3(n,i),Sc(e,c),c.tag=1,a3(n)?(e=!0,Bc(c)):e=!1,g8(c,a),oh(c,n,i),h9(c,n,i,a),z9(null,c,n,!0,e,a);case 19:return Fh(e,c,a);case 22:return Ph(e,c,a)}throw Error(G(156,c.tag))};function ev(e,c){return wm(e,c)}function nN(e,c,a,n){this.tag=e,this.key=a,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 E3(e,c,a,n){return new nN(e,c,a,n)}function hi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tN(e){if(typeof e=="function")return hi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_9)return 11;if(e===P9)return 14}return 2}function V6(e,c){var a=e.alternate;return a===null?(a=E3(e.tag,c,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=c,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&14680064,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,c=e.dependencies,a.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function kc(e,c,a,n,i,s){var l=2;if(n=e,typeof e=="function")hi(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case n8:return o0(a.children,i,s,c);case E9:l=8,i|=8;break;case Ft:return e=E3(12,a,c,i|2),e.elementType=Ft,e.lanes=s,e;case Ot:return e=E3(13,a,c,i),e.elementType=Ot,e.lanes=s,e;case It:return e=E3(19,a,c,i),e.elementType=It,e.lanes=s,e;case lm:return ua(a,i,s,c);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sm:l=10;break e;case om:l=9;break e;case _9:l=11;break e;case P9:l=14;break e;case s6:l=16,n=null;break e}throw Error(G(130,e==null?e:typeof e,""))}return c=E3(l,a,c,i),c.elementType=e,c.type=n,c.lanes=s,c}function o0(e,c,a,n){return e=E3(7,e,n,c),e.lanes=a,e}function ua(e,c,a,n){return e=E3(22,e,n,c),e.elementType=lm,e.lanes=a,e.stateNode={isHidden:!1},e}function Tt(e,c,a){return e=E3(6,e,null,c),e.lanes=a,e}function Rt(e,c,a){return c=E3(4,e.children!==null?e.children:[],e.key,c),c.lanes=a,c.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},c}function iN(e,c,a,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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vi(e,c,a,n,i,s,l,u,p){return e=new iN(e,c,a,u,p),c===1?(c=1,s===!0&&(c|=8)):c=0,s=E3(3,null,null,c),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Z9(s),e}function sN(e,c,a){var n=3{"use strict";function tv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tv)}catch(e){console.error(e)}}tv(),iv.exports=nv()});var Vi=Q1(gi=>{"use strict";var ov=sv();gi.createRoot=ov.createRoot,gi.hydrateRoot=ov.hydrateRoot;var Mk});var uv=Q1((fv,da)=>{(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 $=(-16777216|E[2]<<16|E[1]<<8|E[0])>>>0;N.idxi32[T]=$,N.i32idx[$]=T,N.i32rgb[$]=E})}}e.prototype.sample=function(N,E){if(this.palLocked)throw"Cannot sample additional images, palette already assembled.";var T=D(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,$){if(this.palLocked||this.buildPal(),T=T||this.dithKern,$=typeof $<"u"?$:this.dithSerp,E=E||1,T)var K=this.dither(N,T,$);else for(var Y=D(N),q=Y.buf32,t2=q.length,K=new Uint32Array(t2),s2=0;s2>8,e4=(n3&16711680)>>16,X2=this.nearestColor(n3),$1=X2&255,D3=(X2&65280)>>8,B2=(X2&16711680)>>16;if(Y[y1]=255<<24|B2<<16|D3<<8|$1,this.dithDelta){var N6=this.colorDist([H1,g1,e4],[$1,D3,B2]);if(N6=0&&R1+K2=0&&m4+M2>8,I4=(Y[c4]&16711680)>>16,_8=Math.max(0,Math.min(255,Na+Sa*E8)),P8=Math.max(0,Math.min(255,A6+F3*E8)),T8=Math.max(0,Math.min(255,I4+he*E8));Y[c4]=255<<24|T8<<16|P8<<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=J(E,!0);if(T.length==0)throw"Nothing has been sampled, palette cannot be built.";switch(this.method){case 1:for(var $=this.initColors,K=T[$-1],Y=E[K],s2=T.slice(0,$),q=$,t2=T.length;qthis.colors){for(var E=N.length,T={},$=0,K,Y=!1,q=0;q>8,(X2&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($),$ in E?E[$]++:E[$]=1)},e.prototype.colorStats2D=function(N,E){var T=this.boxSize[0],$=this.boxSize[1],K=T*$,Y=U(E,N.length/E,T,$),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;I(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 $=N.i32idx[E],K=N.i32idx[T],Y=N.idxrgb[$],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:_(t2.h,N.hueGroups),M2=q[0]==q[1]&&q[1]==q[2]?-1:_(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 a1=+s2.s.toFixed(2)-+t2.s.toFixed(2);if(a1)return-a1}),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,$=[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,$=(N&16711680)>>16,K=E==T&&T==$?-1:_(S(E,T,$).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-$):t2/(T+$),T){case A:K=(N-E)/t2+(N=1-T||A<=T)return 0;for(var $=1;$=K-T&&A<=K+T)return $}}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,$,K=0;K{(function(e,c){typeof define=="function"&&define.amd?define([],c):typeof Li<"u"?c():(c(),e.FileSaver={})})(Li,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 a(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):a(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(a(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 _=new FileReader;_.onloadend=function(){var g=_.result;g=S?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=g:location=g,z=null},_.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 xi<"u"&&(xi.exports=l)})});var E0=b2(Z8()),R2=512;function r7(e,c){return e.indexOf(c)===-1?(e.push(c),!0):!1}function J8(e,c){let a=e.indexOf(c);return a!==-1?(e.splice(a,1),!0):!1}function Kr(e,c,a){return{r:e,g:c,b:a}}function B6(e,c){return e>c?e-c:c-e}function jr(e,c=2){return e.toString(16).padStart(c,"0")}function nl(e,c,a){return"#"+jr(e)+jr(c)+jr(a)}function n7(){return new Promise(e=>requestAnimationFrame(e))}function t7(e){let c=e.lastIndexOf(".");return c===-1?{text:e,ex:""}:{text:e.slice(0,c),ex:e.slice(c+1)}}function Xr(e){return new Promise((c,a)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{a(i)}),n.readAsText(e)})}function Qr(e){return new Promise((c,a)=>{let n=new FileReader;n.addEventListener("load",()=>{c(n.result)}),n.addEventListener("error",i=>{a(i)}),n.readAsDataURL(e)})}function Zr(e,c){return new Promise((a,n)=>{let i=new Image;i.alt=e,i.addEventListener("load",()=>a(i)),i.addEventListener("error",s=>{n(s)}),c.startsWith("data:image")||c.startsWith("blob")?i.src=c:i.src=`data:image/${t7(e)};base64,${c}`})}function _0(e){return e.length}function P0(e){return e[0]&&e[0].length||0}function U6(e){return _0(e.pixels)}function W6(e){return P0(e.pixels)}function Jr(e,c,a){let n=G6();n.width=c,n.height=a;let i=n.getContext("2d");return i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,c,a),zL(n,e.alt)}function zL(e,c){return new Promise((a,n)=>{let i=e.toDataURL("image/png"),s=new Image;s.addEventListener("load",()=>a(s)),s.addEventListener("error",l=>n(l)),c&&(s.alt=c),s.src=i})}function i7(e){if(typeof e=="object"){let c=(0,E0.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,E0.isInteger)(c.x))throw new Error("x is not an integer");if(!(0,E0.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 a=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 e5(e){return e.getContext("2d").getImageData(0,0,e.width,e.height)}function s7(e,c){let{height:a,width:n}=e,i=[];for(let s=0;s-1){p++;let S=a[L];if(!S)throw new Error(`Unknown color at ${L}`);i.fillStyle=S,i.fillRect(h*n,z*n,n,n)}}return p}function G6(){let e=document.createElement("canvas");return e.setAttribute("overlay","true"),e}function rl(e){return Math.floor(e/R2)*R2}function c5(e,c){let a=document.createElement("canvas");a.width=P0(e),a.height=_0(e);let n=cn(a,e,c);return{canvas:a,pixels:n}}var Yr;try{let e=navigator.language||navigator.userLanguage;Yr=new Intl.NumberFormat(e)}catch{}function tl(e){return Yr?Yr.format(e):e.toString()}function T0(e,c){e.preventDefault(),e.stopPropagation(),e.target.value===""?c(0):e.target.value==="-"?c(-1):c(parseInt(e.target.value,10))}async function il(e,c){let a=`https://pixelcanvas.io/tile/${rl(e)}/${rl(c)}.png`,i=await(await fetch(a)).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 R0=class{listeners=new Map;on(c,a){let n=this.listeners.get(c)||[];r7(n,a),this.listeners.set(c,n)}off(c,a){let n=this.listeners.get(c)||[];J8(n,a),n.length||this.listeners.delete(c)}emit(c,...a){let n=this.listeners.get(c);if(n)for(let i=0;ia.textContent&&a.textContent.match(/^\(\s*-?\d+\s*,\s*-?\d+\s*\)$/));for(let a of c)a.children.length===0&&(this.cords=a,this.frame=requestAnimationFrame(this.observe));await n7()}}stop(){this.frame&&cancelAnimationFrame(this.frame)}get centerCanvas(){let c=window.innerWidth/2,a=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&&as&&as&&a>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,a){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=(a-n.bounds.top)/this.pixelSize+s;return{x:l,y:u}}gridToScreen(c,a){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=a-s,p=n.bounds.left+l*this.pixelSize,h=n.bounds.top+u*this.pixelSize;return{x:p,y:h}}getCordsFromUrl(){let a=location.pathname.split("/").filter(n=>n)[0];if(a){let n=a.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(a=>parseInt(a));this._x=c[0],this._y=c[1]}observe=()=>{let c=this._x,a=this._y;this.parse(),(c!==this._x||a!==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 l7=class{buttons=[];palette=[];hex=[];init(){let c=[...document.getElementsByTagName("button")].filter(h=>h.style.backgroundColor);if(c.length<2)return null;let a=new Map,n=new Map,i=c.map(h=>{let{width:z,height:M}=h.getBoundingClientRect(),L=a.get(z)||0,S=n.get(M)||0;return L++,S++,a.set(z,L),n.set(M,S),{btn:h,width:z,height:M}}),s=Array.from(a).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 a5=class{input=document.createElement("input");constructor(){this.input.type="file"}allowMultiple(c){this.input.multiple=c}setAcceptType(c){c?this.input.accept=c.map(a=>`.${a}`).join(", "):this.input.accept=""}show(){return new Promise((c,a)=>{let n=["mousemove","touchend"],i=()=>{s(),a(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):a(new Error("Missing file"))}),this.input.click()})}};var Nv=b2(v1());var J3=b2(v1());var m7=class{constructor(c,a){this.storage=c;this.palette=a}STORAGE_KEY_MURAL="_murals";STORAGE_KEY_SELECTED="_mural";_murals=[];_selected;emitter=new R0;_overlayIndices=[];_phantomOverlay=-1;_overlayModify;async load(){this._murals=await this.storage.getItem(this.STORAGE_KEY_MURAL)||[];for(let a of this._murals){let{canvas:n,pixels:i}=c5(a.pixels,this.palette.hex);a.ref=n,a.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 a=c,{canvas:n,pixels:i}=c5(c.pixels,this.palette.hex);a.ref=n,a.pixelCount=i,this._murals.push(a),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),J8(this._murals,c),this.emit(2),this.save()}addOverlay(c){let a=this._murals.indexOf(c);a!==-1&&(r7(this._overlayIndices,a),this._phantomOverlay===a&&(this._phantomOverlay=-1)),this.emit(5),this.save()}removeOverlay(c){let a=this._murals.indexOf(c);a!==-1&&J8(this._overlayIndices,a),this.emit(5),this.save()}setOverlayModify(c){this._overlayModify=c;let a=c.cb;c.cb=(n,i,s,l)=>{a(n,i,s,l),this._overlayModify=void 0,this.emit(5)},this.emit(5)}hasOverlay(c){let a=this._murals.indexOf(c);return this._overlayIndices.includes(a)}select(c){c?this._selected={m:c,h:U6(c),w:W6(c)}:this._selected=void 0,this.emit(4),this.save()}async save(){await this.storage.setItem(this.STORAGE_KEY_MURAL,this._murals.map(a=>({name:a.name,pixels:a.pixels,x:a.x,y:a.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 a=this._murals.indexOf(c);a!==this._phantomOverlay&&!this._overlayIndices.includes(a)&&(this._phantomOverlay=a,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,a){this.emitter.on(c,a)}off(c,a){this.emitter.off(c,a)}emit(c){this.emitter.emit(c,this),this.emitter.emit(7,this)}};var gl={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 Vl={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 Ml={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 PL={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"]},Cl=PL;var Ll={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 xl={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 yl={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 wl={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 Sl={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 Nl={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 bl={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 kl={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 Al(e,c){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function Q(e){for(var c=1;ce.length)&&(c=e.length);for(var a=0,n=new Array(c);a-1;i--){var s=a[i],l=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(n=s)}return F2.head.insertBefore(c,n),e}}var nx="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function u5(){for(var e=12,c="";e-- >0;)c+=nx[Math.random()*62|0];return c}function U0(e){for(var c=[],a=(e||[]).length>>>0;a--;)c[a]=e[a];return c}function Nn(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 tx(e){return Object.keys(e||{}).reduce(function(c,a){return c+"".concat(a,'="').concat(vf(e[a]),'" ')},"").trim()}function N7(e){return Object.keys(e||{}).reduce(function(c,a){return c+"".concat(a,": ").concat(e[a].trim(),";")},"")}function bn(e){return e.size!==t4.size||e.x!==t4.x||e.y!==t4.y||e.rotate!==t4.rotate||e.flipX||e.flipY}function ix(e){var c=e.transform,a=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(a/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 sx(e){var c=e.transform,a=e.width,n=a===void 0?mn:a,i=e.height,s=i===void 0?mn:i,l=e.startCentered,u=l===void 0?!1:l,p="";return u&&of?p+="translate(".concat(c.x/Q4-n/2,"em, ").concat(c.y/Q4-s/2,"em) "):u?p+="translate(calc(-50% + ".concat(c.x/Q4,"em), calc(-50% + ").concat(c.y/Q4,"em)) "):p+="translate(".concat(c.x/Q4,"em, ").concat(c.y/Q4,"em) "),p+="scale(".concat(c.size/Q4*(c.flipX?-1:1),", ").concat(c.size/Q4*(c.flipY?-1:1),") "),p+="rotate(".concat(c.rotate,"deg) "),p}var ox=`: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 +794,17 @@ 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 pf(){var e=nf,c=tf,a=c2.cssPrefix,n=c2.replacementClass,i=cx;if(a!==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(a,"-")).replace(l,"--".concat(a,"-")).replace(u,".".concat(n))}return i}var Tl=!1;function on(){c2.autoAddCss&&!Tl&&(XL(pf()),Tl=!0)}var ax={mixout:function(){return{dom:{css:pf,insertCss:on}}},hooks:function(){return{beforeDOMElementCreation:function(){on()},beforeI2svg:function(){on()}}}},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 U3=x4[L4],mf=[],rx=function e(){D2.removeEventListener("DOMContentLoaded",e),w7=1,mf.map(function(c){return c()})},w7=!1;w4&&(w7=(D2.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(D2.readyState),w7||D2.addEventListener("DOMContentLoaded",rx));function nx(e){w4&&(w7?setTimeout(e,0):mf.push(e))}function h5(e){var c=e.tag,a=e.attributes,n=a===void 0?{}:a,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?uf(e):"<".concat(c," ").concat(ZL(n),">").concat(s.map(h5).join(""),"")}function Rl(e,c,a){if(e&&e[c]&&e[c][a])return{prefix:c,iconName:a,icon:e[c][a]}}var tx=function(c,a){return function(n,i,s,l){return c.call(a,n,i,s,l)}},ln=function(c,a,n,i){var s=Object.keys(c),l=s.length,u=i!==void 0?tx(a,i):a,p,h,z;for(n===void 0?(p=1,z=c[s[0]]):(p=0,z=n);p=55296&&i<=56319&&a=55296&&n<=56319&&a>c+1&&(i=e.charCodeAt(c+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function Dl(e){return Object.keys(e).reduce(function(c,a){var n=e[a],i=!!n.icon;return i?c[n.iconName]=n.icon:c[a]=n,c},{})}function dn(e,c){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.skipHooks,i=n===void 0?!1:n,s=Dl(c);typeof U3.hooks.addPack=="function"&&!i?U3.hooks.addPack(e,Dl(c)):U3.styles[e]=X(X({},U3.styles[e]||{}),s),e==="fas"&&dn("fa",c)}var V7,M7,C7,D0=U3.styles,ox=U3.shims,lx=(V7={},l1(V7,R2,Object.values(l5[R2])),l1(V7,Q2,Object.values(l5[Q2])),V7),bn=null,hf={},vf={},df={},zf={},Hf={},fx=(M7={},l1(M7,R2,Object.keys(s5[R2])),l1(M7,Q2,Object.keys(s5[Q2])),M7);function ux(e){return~$L.indexOf(e)}function px(e,c){var a=c.split("-"),n=a[0],i=a.slice(1).join("-");return n===e&&i!==""&&!ux(i)?i:null}var gf=function(){var c=function(s){return ln(D0,function(l,u,p){return l[p]=ln(u,s,{}),l},{})};hf=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}),vf=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}),Hf=c(function(i,s,l){var u=s[2];return i[l]=l,u.forEach(function(p){i[p]=l}),i});var a="far"in D0||c2.autoFetchSvg,n=ln(ox,function(i,s){var l=s[0],u=s[1],p=s[2];return u==="far"&&!a&&(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:{}});df=n.names,zf=n.unicodes,bn=k7(c2.styleDefault,{family:c2.familyDefault})};KL(function(e){bn=k7(e.styleDefault,{family:c2.familyDefault})});gf();function An(e,c){return(hf[e]||{})[c]}function mx(e,c){return(vf[e]||{})[c]}function q6(e,c){return(Hf[e]||{})[c]}function Vf(e){return df[e]||{prefix:null,iconName:null}}function hx(e){var c=zf[e],a=An("fas",e);return c||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null}}function J4(){return bn}var _n=function(){return{prefix:null,iconName:null,rest:[]}};function k7(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.family,n=a===void 0?R2:a,i=s5[n][e],s=o5[n][e]||o5[n][i],l=e in U3.styles?e:null;return s||l||null}var Fl=(C7={},l1(C7,R2,Object.keys(l5[R2])),l1(C7,Q2,Object.keys(l5[Q2])),C7);function b7(e){var c,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.skipLookups,i=n===void 0?!1:n,s=(c={},l1(c,R2,"".concat(c2.cssPrefix,"-").concat(R2)),l1(c,Q2,"".concat(c2.cssPrefix,"-").concat(Q2)),c),l=null,u=R2;(e.includes(s[R2])||e.some(function(h){return Fl[R2].includes(h)}))&&(u=R2),(e.includes(s[Q2])||e.some(function(h){return Fl[Q2].includes(h)}))&&(u=Q2);var p=e.reduce(function(h,z){var V=px(c2.cssPrefix,z);if(D0[z]?(z=lx[u].includes(z)?BL[u][z]:z,l=z,h.prefix=z):fx[u].indexOf(z)>-1?(l=z,h.prefix=k7(z,{family:u})):V?h.iconName=V:z!==c2.replacementClass&&z!==s[R2]&&z!==s[Q2]&&h.rest.push(z),!i&&h.prefix&&h.iconName){var x=l==="fa"?Vf(h.iconName):{},S=q6(h.prefix,h.iconName);x.prefix&&(l=null),h.iconName=x.iconName||S||h.iconName,h.prefix=x.prefix||h.prefix,h.prefix==="far"&&!D0.far&&D0.fas&&!c2.autoFetchSvg&&(h.prefix="fas")}return h},_n());return(e.includes("fa-brands")||e.includes("fab"))&&(p.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(p.prefix="fad"),!p.prefix&&u===Q2&&(D0.fass||c2.autoFetchSvg)&&(p.prefix="fass",p.iconName=q6(p.prefix,p.iconName)||p.iconName),(p.prefix==="fa"||l==="fa")&&(p.prefix=J4()||"fas"),p}var vx=function(){function e(){NL(this,e),this.definitions={}}return kL(e,[{key:"add",value:function(){for(var a=this,n=arguments.length,i=new Array(n),s=0;s0&&z.forEach(function(V){typeof V=="string"&&(a[u][V]=h)}),a[u][p]=h}),a}}]),e}(),Ol=[],F0={},O0={},dx=Object.keys(O0);function zx(e,c){var a=c.mixoutsTo;return Ol=e,F0={},Object.keys(O0).forEach(function(n){dx.indexOf(n)===-1&&delete O0[n]}),Ol.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(l){typeof i[l]=="function"&&(a[l]=i[l]),y7(i[l])==="object"&&Object.keys(i[l]).forEach(function(u){a[l]||(a[l]={}),a[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(O0)}),a}function zn(e,c){for(var a=arguments.length,n=new Array(a>2?a-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]:{},a=c.autoReplaceSvgRoot;c2.autoReplaceSvg===!1&&(c2.autoReplaceSvg=!0),c2.observeMutations=!0,nx(function(){Mx({autoReplaceSvgRoot:a}),j6("watch",c)})}},Vx={icon:function(c){if(c===null)return null;if(y7(c)==="object"&&c.prefix&&c.iconName)return{prefix:c.prefix,iconName:q6(c.prefix,c.iconName)||c.iconName};if(Array.isArray(c)&&c.length===2){var a=c[1].indexOf("fa-")===0?c[1].slice(3):c[1],n=k7(c[0]);return{prefix:n,iconName:q6(n,a)||a}}if(typeof c=="string"&&(c.indexOf("".concat(c2.cssPrefix,"-"))>-1||c.match(IL))){var i=b7(c.split(" "),{skipLookups:!0});return{prefix:i.prefix||J4(),iconName:q6(i.prefix,i.iconName)||i.iconName}}if(typeof c=="string"){var s=J4();return{prefix:s,iconName:q6(s,c)||c}}}},l3={noAuto:Hx,config:c2,dom:gx,parse:Vx,library:Mf,findIconDefinition:Hn,toHtml:h5},Mx=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=c.autoReplaceSvgRoot,n=a===void 0?D2:a;(Object.keys(U3.styles).length>0||c2.autoFetchSvg)&&w4&&c2.autoReplaceSvg&&l3.dom.i2svg({node:n})};function A7(e,c){return Object.defineProperty(e,"abstract",{get:c}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return h5(n)})}}),Object.defineProperty(e,"node",{get:function(){if(w4){var n=D2.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Cx(e){var c=e.children,a=e.main,n=e.mask,i=e.attributes,s=e.styles,l=e.transform;if(kn(l)&&a.found&&!n.found){var u=a.width,p=a.height,h={x:u/p/2,y:.5};i.style=N7(X(X({},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 Lx(e){var c=e.prefix,a=e.iconName,n=e.children,i=e.attributes,s=e.symbol,l=s===!0?"".concat(c,"-").concat(c2.cssPrefix,"-").concat(a):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:X(X({},i),{},{id:l}),children:n}]}]}function En(e){var c=e.icons,a=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,x=e.watchable,S=x===void 0?!1:x,E=n.found?n:a,D=E.width,Z=E.height,M=i==="fak",H=[c2.replacementClass,s?"".concat(c2.cssPrefix,"-").concat(s):""].filter(function(b){return V.classes.indexOf(b)===-1}).filter(function(b){return b!==""||!!b}).concat(V.classes).join(" "),C={children:[],attributes:X(X({},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(D," ").concat(Z)})},_=M&&!~V.classes.indexOf("fa-fw")?{width:"".concat(D/Z*16*.0625,"em")}:{};S&&(C.attributes[$6]=""),p&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(z||u5())},children:[p]}),delete C.attributes.title);var F=X(X({},C),{},{prefix:i,iconName:s,main:a,mask:n,maskId:h,transform:l,symbol:u,styles:X(X({},_),V.styles)}),U=n.found&&a.found?y4("generateAbstractMask",F)||{children:[],attributes:{}}:y4("generateAbstractIcon",F)||{children:[],attributes:{}},B=U.children,J=U.attributes;return F.children=B,F.attributes=J,u?Lx(F):Cx(F)}function Bl(e){var c=e.content,a=e.width,n=e.height,i=e.transform,s=e.title,l=e.extra,u=e.watchable,p=u===void 0?!1:u,h=X(X(X({},l.attributes),s?{title:s}:{}),{},{class:l.classes.join(" ")});p&&(h[$6]="");var z=X({},l.styles);kn(i)&&(z.transform=ex({transform:i,startCentered:!0,width:a,height:n}),z["-webkit-transform"]=z.transform);var V=N7(z);V.length>0&&(h.style=V);var x=[];return x.push({tag:"span",attributes:h,children:[c]}),s&&x.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),x}function xx(e){var c=e.content,a=e.title,n=e.extra,i=X(X(X({},n.attributes),a?{title:a}:{}),{},{class:n.classes.join(" ")}),s=N7(n.styles);s.length>0&&(i.style=s);var l=[];return l.push({tag:"span",attributes:i,children:[c]}),a&&l.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),l}var fn=U3.styles;function gn(e){var c=e[0],a=e[1],n=e.slice(4),i=Ln(n,1),s=i[0],l=null;return Array.isArray(s)?l={tag:"g",attributes:{class:"".concat(c2.cssPrefix,"-").concat(G6.GROUP)},children:[{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(G6.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(G6.PRIMARY),fill:"currentColor",d:s[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:c,height:a,icon:l}}var yx={found:!1,width:512,height:512};function wx(e,c){!sf&&!c2.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(c,'" is missing.'))}function Vn(e,c){var a=c;return c==="fa"&&c2.styleDefault!==null&&(c=J4()),new Promise(function(n,i){var s={found:!1,width:512,height:512,icon:y4("missingIconAbstract")||{}};if(a==="fa"){var l=Vf(e)||{};e=l.iconName||e,c=l.prefix||c}if(e&&c&&fn[c]&&fn[c][e]){var u=fn[c][e];return n(gn(u))}wx(e,c),n(X(X({},yx),{},{icon:c2.showMissingIcons&&e?y4("missingIconAbstract")||{}:{}}))})}var Il=function(){},Mn=c2.measurePerformance&&h7&&h7.mark&&h7.measure?h7:{mark:Il,measure:Il},n5='FA "6.5.1"',Sx=function(c){return Mn.mark("".concat(n5," ").concat(c," begins")),function(){return Cf(c)}},Cf=function(c){Mn.mark("".concat(n5," ").concat(c," ends")),Mn.measure("".concat(n5," ").concat(c),"".concat(n5," ").concat(c," begins"),"".concat(n5," ").concat(c," ends"))},Pn={begin:Sx,end:Cf},L7=function(){};function Ul(e){var c=e.getAttribute?e.getAttribute($6):null;return typeof c=="string"}function Nx(e){var c=e.getAttribute?e.getAttribute(yn):null,a=e.getAttribute?e.getAttribute(wn):null;return c&&a}function kx(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(c2.replacementClass)}function bx(){if(c2.autoReplaceSvg===!0)return x7.replace;var e=x7[c2.autoReplaceSvg];return e||x7.replace}function Ax(e){return D2.createElementNS("http://www.w3.org/2000/svg",e)}function _x(e){return D2.createElement(e)}function Lf(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.ceFn,n=a===void 0?e.tag==="svg"?Ax:_x:a;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(Lf(l,{ceFn:n}))}),i}function Ex(e){var c=" ".concat(e.outerHTML," ");return c="".concat(c,"Font Awesome fontawesome.com "),c}var x7={replace:function(c){var a=c[0];if(a.parentNode)if(c[1].forEach(function(i){a.parentNode.insertBefore(Lf(i),a)}),a.getAttribute($6)===null&&c2.keepOriginalSource){var n=D2.createComment(Ex(a));a.parentNode.replaceChild(n,a)}else a.remove()},nest:function(c){var a=c[0],n=c[1];if(~Nn(a).indexOf(c2.replacementClass))return x7.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?a.removeAttribute("class"):a.setAttribute("class",s.toNode.join(" "))}var l=n.map(function(u){return h5(u)}).join(` -`);a.setAttribute($6,""),a.innerHTML=l}};function Wl(e){e()}function xf(e,c){var a=typeof c=="function"?c:L7;if(e.length===0)a();else{var n=Wl;c2.mutateApproach===FL&&(n=Z4.requestAnimationFrame||Wl),n(function(){var i=bx(),s=Pn.begin("mutate");e.map(i),s(),a()})}}var Tn=!1;function yf(){Tn=!0}function Cn(){Tn=!1}var S7=null;function Gl(e){if(_l&&c2.observeMutations){var c=e.treeCallback,a=c===void 0?L7:c,n=e.nodeCallback,i=n===void 0?L7:n,s=e.pseudoElementsCallback,l=s===void 0?L7:s,u=e.observeMutationsRoot,p=u===void 0?D2:u;S7=new _l(function(h){if(!Tn){var z=J4();I0(h).forEach(function(V){if(V.type==="childList"&&V.addedNodes.length>0&&!Ul(V.addedNodes[0])&&(c2.searchPseudoElements&&l(V.target),a(V.target)),V.type==="attributes"&&V.target.parentNode&&c2.searchPseudoElements&&l(V.target.parentNode),V.type==="attributes"&&Ul(V.target)&&~qL.indexOf(V.attributeName))if(V.attributeName==="class"&&Nx(V.target)){var x=b7(Nn(V.target)),S=x.prefix,E=x.iconName;V.target.setAttribute(yn,S||z),E&&V.target.setAttribute(wn,E)}else kx(V.target)&&i(V.target)})}}),w4&&S7.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Px(){S7&&S7.disconnect()}function Tx(e){var c=e.getAttribute("style"),a=[];return c&&(a=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},{})),a}function Rx(e){var c=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=b7(Nn(e));return i.prefix||(i.prefix=J4()),c&&a&&(i.prefix=c,i.iconName=a),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=mx(i.prefix,e.innerText)||An(i.prefix,vn(e.innerText))),!i.iconName&&c2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Dx(e){var c=I0(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),a=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return c2.autoA11y&&(a?c["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(n||u5()):(c["aria-hidden"]="true",c.focusable="false")),c}function Fx(){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 ql(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},a=Rx(e),n=a.iconName,i=a.prefix,s=a.rest,l=Dx(e),u=zn("parseNodeAttributes",{},e),p=c.styleParser?Tx(e):[];return X({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 Ox=U3.styles;function wf(e){var c=c2.autoReplaceSvg==="nest"?ql(e,{styleParser:!1}):ql(e);return~c.extra.classes.indexOf(of)?y4("generateLayersText",e,c):y4("generateSvgReplacementMutation",e,c)}var e6=new Set;Sn.map(function(e){e6.add("fa-".concat(e))});Object.keys(s5[R2]).map(e6.add.bind(e6));Object.keys(s5[Q2]).map(e6.add.bind(e6));e6=p5(e6);function $l(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!w4)return Promise.resolve();var a=D2.documentElement.classList,n=function(V){return a.add("".concat(El,"-").concat(V))},i=function(V){return a.remove("".concat(El,"-").concat(V))},s=c2.autoFetchSvg?e6:Sn.map(function(z){return"fa-".concat(z)}).concat(Object.keys(Ox));s.includes("fa")||s.push("fa");var l=[".".concat(of,":not([").concat($6,"])")].concat(s.map(function(z){return".".concat(z,":not([").concat($6,"])")})).join(", ");if(l.length===0)return Promise.resolve();var u=[];try{u=I0(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,V){try{var x=wf(V);x&&z.push(x)}catch(S){sf||S.name==="MissingIcon"&&console.error(S)}return z},[]);return new Promise(function(z,V){Promise.all(h).then(function(x){xf(x,function(){n("active"),n("complete"),i("pending"),typeof c=="function"&&c(),p(),z()})}).catch(function(x){p(),V(x)})})}function Bx(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;wf(e).then(function(a){a&&xf([a],c)})}function Ix(e){return function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(c||{}).icon?c:Hn(c||{}),i=a.mask;return i&&(i=(i||{}).icon?i:Hn(i||{})),e(n,X(X({},a),{},{mask:i}))}}var Ux=function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.transform,i=n===void 0?t4:n,s=a.symbol,l=s===void 0?!1:s,u=a.mask,p=u===void 0?null:u,h=a.maskId,z=h===void 0?null:h,V=a.title,x=V===void 0?null:V,S=a.titleId,E=S===void 0?null:S,D=a.classes,Z=D===void 0?[]:D,M=a.attributes,H=M===void 0?{}:M,C=a.styles,_=C===void 0?{}:C;if(c){var F=c.prefix,U=c.iconName,B=c.icon;return A7(X({type:"icon"},c),function(){return j6("beforeDOMElementCreation",{iconDefinition:c,params:a}),c2.autoA11y&&(x?H["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(E||u5()):(H["aria-hidden"]="true",H.focusable="false")),En({icons:{main:gn(B),mask:p?gn(p.icon):{found:!1,width:null,height:null,icon:{}}},prefix:F,iconName:U,transform:X(X({},t4),i),symbol:l,title:x,maskId:z,titleId:E,extra:{attributes:H,styles:_,classes:Z}})})}},Wx={mixout:function(){return{icon:Ix(Ux)}},hooks:function(){return{mutationObserverCallbacks:function(a){return a.treeCallback=$l,a.nodeCallback=Bx,a}}},provides:function(c){c.i2svg=function(a){var n=a.node,i=n===void 0?D2:n,s=a.callback,l=s===void 0?function(){}:s;return $l(i,l)},c.generateSvgReplacementMutation=function(a,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,x=n.extra;return new Promise(function(S,E){Promise.all([Vn(i,u),z.iconName?Vn(z.iconName,z.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(D){var Z=Ln(D,2),M=Z[0],H=Z[1];S([a,En({icons:{main:M,mask:H},prefix:u,iconName:i,transform:p,symbol:h,maskId:V,title:s,titleId:l,extra:x,watchable:!0})])}).catch(E)})},c.generateAbstractIcon=function(a){var n=a.children,i=a.attributes,s=a.main,l=a.transform,u=a.styles,p=N7(u);p.length>0&&(i.style=p);var h;return kn(l)&&(h=y4("generateAbstractTransformGrouping",{main:s,transform:l,containerWidth:s.width,iconWidth:s.width})),n.push(h||s.icon),{children:n,attributes:i}}}},Gx={mixout:function(){return{layer:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,s=i===void 0?[]:i;return A7({type:"layer"},function(){j6("beforeDOMElementCreation",{assembler:a,params:n});var l=[];return a(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(p5(s)).join(" ")},children:l}]})}}}},qx={mixout:function(){return{counter:function(a){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 A7({type:"counter",content:a},function(){return j6("beforeDOMElementCreation",{content:a,params:n}),xx({content:a.toString(),title:s,extra:{attributes:h,styles:V,classes:["".concat(c2.cssPrefix,"-layers-counter")].concat(p5(u))}})})}}}},$x={mixout:function(){return{text:function(a){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,V=z===void 0?{}:z,x=n.styles,S=x===void 0?{}:x;return A7({type:"text",content:a},function(){return j6("beforeDOMElementCreation",{content:a,params:n}),Bl({content:a,transform:X(X({},t4),s),title:u,extra:{attributes:V,styles:S,classes:["".concat(c2.cssPrefix,"-layers-text")].concat(p5(h))}})})}}},provides:function(c){c.generateLayersText=function(a,n){var i=n.title,s=n.transform,l=n.extra,u=null,p=null;if(rf){var h=parseInt(getComputedStyle(a).fontSize,10),z=a.getBoundingClientRect();u=z.width/h,p=z.height/h}return c2.autoA11y&&!i&&(l.attributes["aria-hidden"]="true"),Promise.resolve([a,Bl({content:a.innerHTML,width:u,height:p,transform:s,title:i,extra:l,watchable:!0})])}}},jx=new RegExp('"',"ug"),jl=[1105920,1112319];function Yx(e){var c=e.replace(jx,""),a=sx(c,0),n=a>=jl[0]&&a<=jl[1],i=c.length===2?c[0]===c[1]:!1;return{value:vn(i?c[0]:c),isSecondary:n||i}}function Yl(e,c){var a="".concat(DL).concat(c.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(a)!==null)return n();var s=I0(e.children),l=s.filter(function(B){return B.getAttribute(hn)===c})[0],u=Z4.getComputedStyle(e,c),p=u.getPropertyValue("font-family").match(UL),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"),x=~["Sharp"].indexOf(p[2])?Q2:R2,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(p[2])?o5[x][p[2].toLowerCase()]:WL[x][h],E=Yx(V),D=E.value,Z=E.isSecondary,M=p[0].startsWith("FontAwesome"),H=An(S,D),C=H;if(M){var _=hx(D);_.iconName&&_.prefix&&(H=_.iconName,S=_.prefix)}if(H&&!Z&&(!l||l.getAttribute(yn)!==S||l.getAttribute(wn)!==C)){e.setAttribute(a,C),l&&e.removeChild(l);var F=Fx(),U=F.extra;U.attributes[hn]=c,Vn(H,S).then(function(B){var J=En(X(X({},F),{},{icons:{main:B,mask:_n()},prefix:S,iconName:C,extra:U,watchable:!0})),b=D2.createElementNS("http://www.w3.org/2000/svg","svg");c==="::before"?e.insertBefore(b,e.firstChild):e.appendChild(b),b.outerHTML=J.map(function(N){return h5(N)}).join(` -`),e.removeAttribute(a),n()}).catch(i)}else n()}else n()})}function Kx(e){return Promise.all([Yl(e,"::before"),Yl(e,"::after")])}function Xx(e){return e.parentNode!==document.head&&!~OL.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hn)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Kl(e){if(w4)return new Promise(function(c,a){var n=I0(e.querySelectorAll("*")).filter(Xx).map(Kx),i=Pn.begin("searchPseudoElements");yf(),Promise.all(n).then(function(){i(),Cn(),c()}).catch(function(){i(),Cn(),a()})})}var Qx={hooks:function(){return{mutationObserverCallbacks:function(a){return a.pseudoElementsCallback=Kl,a}}},provides:function(c){c.pseudoElements2svg=function(a){var n=a.node,i=n===void 0?D2:n;c2.searchPseudoElements&&Kl(i)}}},Xl=!1,Zx={mixout:function(){return{dom:{unwatch:function(){yf(),Xl=!0}}}},hooks:function(){return{bootstrap:function(){Gl(zn("mutationObserverCallbacks",{}))},noAuto:function(){Px()},watch:function(a){var n=a.observeMutationsRoot;Xl?Cn():Gl(zn("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},Ql=function(c){var a={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},a)},Jx={mixout:function(){return{parse:{transform:function(a){return Ql(a)}}}},hooks:function(){return{parseNodeAttributes:function(a,n){var i=n.getAttribute("data-fa-transform");return i&&(a.transform=Ql(i)),a}}},provides:function(c){c.generateAbstractTransformGrouping=function(a){var n=a.main,i=a.transform,s=a.containerWidth,l=a.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)},x={transform:"translate(".concat(l/2*-1," -256)")},S={outer:u,inner:V,path:x};return{tag:"g",attributes:X({},S.outer),children:[{tag:"g",attributes:X({},S.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:X(X({},n.icon.attributes),S.path)}]}]}}}},un={x:0,y:0,width:"100%",height:"100%"};function Zl(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 ey(e){return e.tag==="g"?e.children:[e]}var cy={hooks:function(){return{parseNodeAttributes:function(a,n){var i=n.getAttribute("data-fa-mask"),s=i?b7(i.split(" ").map(function(l){return l.trim()})):_n();return s.prefix||(s.prefix=J4()),a.mask=s,a.maskId=n.getAttribute("data-fa-mask-id"),a}}},provides:function(c){c.generateAbstractMask=function(a){var n=a.children,i=a.attributes,s=a.main,l=a.mask,u=a.maskId,p=a.transform,h=s.width,z=s.icon,V=l.width,x=l.icon,S=JL({transform:p,containerWidth:V,iconWidth:h}),E={tag:"rect",attributes:X(X({},un),{},{fill:"white"})},D=z.children?{children:z.children.map(Zl)}:{},Z={tag:"g",attributes:X({},S.inner),children:[Zl(X({tag:z.tag,attributes:X(X({},z.attributes),S.path)},D))]},M={tag:"g",attributes:X({},S.outer),children:[Z]},H="mask-".concat(u||u5()),C="clip-".concat(u||u5()),_={tag:"mask",attributes:X(X({},un),{},{id:H,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,M]},F={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:ey(x)},_]};return n.push(F,{tag:"rect",attributes:X({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(H,")")},un)}),{children:n,attributes:i}}}},ay={provides:function(c){var a=!1;Z4.matchMedia&&(a=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:X(X({},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=X(X({},s),{},{attributeName:"opacity"}),u={tag:"circle",attributes:X(X({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return a||u.children.push({tag:"animate",attributes:X(X({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:X(X({},l),{},{values:"1;0;1;1;0;1;"})}),n.push(u),n.push({tag:"path",attributes:X(X({},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:a?[]:[{tag:"animate",attributes:X(X({},l),{},{values:"1;0;0;0;0;1;"})}]}),a||n.push({tag:"path",attributes:X(X({},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:X(X({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},ry={hooks:function(){return{parseNodeAttributes:function(a,n){var i=n.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return a.symbol=s,a}}}},ny=[ax,Wx,Gx,qx,$x,Qx,Zx,Jx,cy,ay,ry];zx(ny,{mixoutsTo:l3});var ek=l3.noAuto,ck=l3.config,ak=l3.library,rk=l3.dom,_7=l3.parse,nk=l3.findIconDefinition,tk=l3.toHtml,Sf=l3.icon,ik=l3.layer,sk=l3.text,ok=l3.counter;var h2=T2(Tf()),On=T2(g1());function Rf(e,c){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function c6(e){for(var c=1;c=0)&&(a[i]=e[i]);return a}function oy(e,c){if(e==null)return{};var a=sy(e,c),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Dn(e){return ly(e)||fy(e)||uy(e)||py()}function ly(e){if(Array.isArray(e))return Fn(e)}function fy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uy(e,c){if(e){if(typeof e=="string")return Fn(e,c);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Fn(e,c)}}function Fn(e,c){(c==null||c>e.length)&&(c=e.length);for(var a=0,n=new Array(c);a2&&arguments[2]!==void 0?arguments[2]:{};if(typeof c=="string")return c;var n=(c.children||[]).map(function(p){return Of(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=zy(z);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?p.attrs[h.toLowerCase()]=z:p.attrs[Ff(h)]=z}return p},{attrs:{}}),s=a.style,l=s===void 0?{}:s,u=oy(a,vy);return i.attrs.style=c6(c6({},i.attrs.style),l),e.apply(void 0,[c.tag,c6(c6({},i.attrs),u)].concat(Dn(n)))}var Bf=!1;try{Bf=!0}catch{}function Hy(){if(!Bf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Df(e){if(e&&E7(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_7.icon)return _7.icon(e);if(e===null)return null;if(e&&E7(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 Rn(e,c){return Array.isArray(c)&&c.length>0||!Array.isArray(c)&&c?U0({},e,c):{}}var f3=On.default.forwardRef(function(e,c){var a=e.icon,n=e.mask,i=e.symbol,s=e.className,l=e.title,u=e.titleId,p=e.maskId,h=Df(a),z=Rn("classes",[].concat(Dn(my(e)),Dn(s.split(" ")))),V=Rn("transform",typeof e.transform=="string"?_7.transform(e.transform):e.transform),x=Rn("mask",Df(n)),S=Sf(h,c6(c6(c6(c6({},z),V),x),{},{symbol:i,title:l,titleId:u,maskId:p}));if(!S)return Hy("Could not find icon",h),null;var E=S.abstract,D={ref:c};return Object.keys(e).forEach(function(Z){f3.defaultProps.hasOwnProperty(Z)||(D[Z]=e[Z])}),gy(E[0],D)});f3.displayName="FontAwesomeIcon";f3.propTypes={beat:h2.default.bool,border:h2.default.bool,beatFade:h2.default.bool,bounce:h2.default.bool,className:h2.default.string,fade:h2.default.bool,flash:h2.default.bool,mask:h2.default.oneOfType([h2.default.object,h2.default.array,h2.default.string]),maskId:h2.default.string,fixedWidth:h2.default.bool,inverse:h2.default.bool,flip:h2.default.oneOf([!0,!1,"horizontal","vertical","both"]),icon:h2.default.oneOfType([h2.default.object,h2.default.array,h2.default.string]),listItem:h2.default.bool,pull:h2.default.oneOf(["right","left"]),pulse:h2.default.bool,rotation:h2.default.oneOf([0,90,180,270]),shake:h2.default.bool,size:h2.default.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:h2.default.bool,spinPulse:h2.default.bool,spinReverse:h2.default.bool,symbol:h2.default.oneOfType([h2.default.bool,h2.default.string]),title:h2.default.string,titleId:h2.default.string,transform:h2.default.oneOfType([h2.default.string,h2.default.object]),swapOpacity:h2.default.bool};f3.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 gy=Of.bind(null,On.default.createElement);var Z3=T2(g1());var w1=function(){return w1=Object.assign||function(c){for(var a,n=1,i=arguments.length;n0?Z2($0,--w3):0,q0--,t1===10&&(q0=1,F7--),t1}function S3(){return t1=w32||Un(t1)>3?"":" "}function Jf(e,c){for(;--c&&S3()&&!(t1<48||t1>102||t1>57&&t1<65||t1>70&&t1<97););return O7(e,g5()+(c<6&&r6()==32&&S3()==32))}function Wn(e){for(;S3();)switch(t1){case e:return w3;case 34:case 39:e!==34&&e!==39&&Wn(t1);break;case 40:e===41&&Wn(e);break;case 92:S3();break}return w3}function eu(e,c){for(;S3()&&e+t1!==57;)if(e+t1===84&&r6()===47)break;return"/*"+O7(c,w3-1)+"*"+d5(e===47?e:S3())}function cu(e){for(;!Un(r6());)S3();return O7(e,w3)}function nu(e){return Qf(I7("",null,null,null,[""],e=Xf(e),0,[0],e))}function I7(e,c,a,n,i,s,l,u,p){for(var h=0,z=0,V=l,x=0,S=0,E=0,D=1,Z=1,M=1,H=0,C="",_=i,F=s,U=n,B=C;Z;)switch(E=H,H=S3()){case 40:if(E!=108&&Z2(B,V-1)==58){G0(B+=f2(B7(H),"&","&\f"),"&\f",Bn(h?u[h-1]:0))!=-1&&(M=-1);break}case 34:case 39:case 91:B+=B7(H);break;case 9:case 10:case 13:case 32:B+=Zf(E);break;case 92:B+=Jf(g5()-1,7);continue;case 47:switch(r6()){case 42:case 47:K6(Vy(eu(S3(),g5()),c,a,p),p);break;default:B+="/"}break;case 123*D:u[h++]=O1(B)*M;case 125*D:case 59:case 0:switch(H){case 0:case 125:Z=0;case 59+z:M==-1&&(B=f2(B,/\f/g,"")),S>0&&O1(B)-V&&K6(S>32?ru(B+";",n,a,V-1,p):ru(f2(B," ","")+";",n,a,V-2,p),p);break;case 59:B+=";";default:if(K6(U=au(B,c,a,h,z,i,u,C,_=[],F=[],V,s),s),H===123)if(z===0)I7(B,c,U,U,_,s,V,u,F);else switch(x===99&&Z2(B,3)===110?100:x){case 100:case 108:case 109:case 115:I7(e,U,U,n&&K6(au(e,U,U,0,0,i,u,C,i,_=[],V,F),F),i,F,V,u,n?_:F);break;default:I7(B,U,U,U,[""],F,0,u,F)}}h=z=S=0,D=M=1,C=B="",V=l;break;case 58:V=1+O1(B),S=E;default:if(D<1){if(H==123)--D;else if(H==125&&D++==0&&Kf()==125)continue}switch(B+=d5(H),H*D){case 38:M=z>0?1:(B+="\f",-1);break;case 44:u[h++]=(O1(B)-1)*M,M=1;break;case 64:r6()===45&&(B+=B7(S3())),x=r6(),z=V=O1(C=B+=cu(g5())),H++;break;case 45:E===45&&O1(B)==2&&(D=0)}}return s}function au(e,c,a,n,i,s,l,u,p,h,z,V){for(var x=i-1,S=i===0?s:[""],E=D7(S),D=0,Z=0,M=0;D0?S[H]+" "+C:f2(C,/&\f/g,S[H])))&&(p[M++]=_);return H5(e,c,a,i===0?a6:u,p,h,z,V)}function Vy(e,c,a,n){return H5(e,c,a,P7,d5(Yf()),i4(e,2,-2),0,n)}function ru(e,c,a,n,i){return H5(e,c,a,W0,i4(e,0,n),i4(e,n+1,-1),n,i)}function Gn(e,c,a){switch(qf(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 Y6+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C2+e+Y6+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,"")+(W3(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(!W3(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 a&&a.some(function(n,i){return c=i,W3(n.props,/grid-\w+-end/)})?~G0(e+(a=a[c].value),"span",0)?e:k2+f2(e,"-start","")+e+k2+"grid-row-span:"+(~G0(a,"span",0)?W3(a,/\d+/):+W3(a,/\d+/)-+W3(e,/\d+/))+";":k2+f2(e,"-start","")+e;case 4896:case 4128:return a&&a.some(function(n){return W3(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(O1(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"+Y6+(Z2(e,c+3)==108?"$3":"$2-$3"))+e;case 115:return~G0(e,"stretch",0)?Gn(f2(e,"stretch","fill-available"),c,a)+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 j0(e,c){for(var a="",n=0;n-1&&!e.return)switch(e.type){case W0:e.return=Gn(e.value,e.length,a);return;case T7:return j0([S4(e,{value:f2(e.value,"@","@"+C2)})],n);case a6:if(e.length)return $f(a=e.props,function(i){switch(W3(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":X6(S4(e,{props:[f2(i,/:(read-\w+)/,":"+Y6+"$1")]})),X6(S4(e,{props:[i]})),z5(e,{props:In(a,n)});break;case"::placeholder":X6(S4(e,{props:[f2(i,/:(plac\w+)/,":"+C2+"input-$1")]})),X6(S4(e,{props:[f2(i,/:(plac\w+)/,":"+Y6+"$1")]})),X6(S4(e,{props:[f2(i,/:(plac\w+)/,k2+"input-$1")]})),X6(S4(e,{props:[i]})),z5(e,{props:In(a,n)});break}return""})}}var My={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},lu=My;var k4=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Vu="active",$7="data-styled-version",K0="6.1.8",e9=`/*!sc*/ -`,c9=typeof window<"u"&&"HTMLElement"in window,Cy=!!(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 K7=Object.freeze([]),X0=Object.freeze({});function Ly(e,c,a){return a===void 0&&(a=X0),e.theme!==a.theme&&e.theme||c||a.theme}var Mu=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"]),xy=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yy=/(^-|-$)/g;function fu(e){return e.replace(xy,"-").replace(yy,"")}var wy=/(a)(d)/gi,U7=52,uu=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yn(e){var c,a="";for(c=Math.abs(e);c>U7;c=c/U7|0)a=uu(c%U7)+a;return(uu(c%U7)+a).replace(wy,"$1-$2")}var qn,Cu=5381,Y0=function(e,c){for(var a=c.length;a;)e=33*e^c.charCodeAt(--a);return e},Lu=function(e){return Y0(Cu,e)};function Sy(e){return Yn(Lu(e)>>>0)}function Ny(e){return e.displayName||e.name||"Component"}function $n(e){return typeof e=="string"&&!0}var xu=typeof Symbol=="function"&&Symbol.for,yu=xu?Symbol.for("react.memo"):60115,ky=xu?Symbol.for("react.forward_ref"):60112,by={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ay={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wu={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_y=((qn={})[ky]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qn[yu]=wu,qn);function pu(e){return("type"in(c=e)&&c.type.$$typeof)===yu?wu:"$$typeof"in e?_y[e.$$typeof]:by;var c}var Ey=Object.defineProperty,Py=Object.getOwnPropertyNames,mu=Object.getOwnPropertySymbols,Ty=Object.getOwnPropertyDescriptor,Ry=Object.getPrototypeOf,hu=Object.prototype;function Su(e,c,a){if(typeof c!="string"){if(hu){var n=Ry(c);n&&n!==hu&&Su(e,n,a)}var i=Py(c);mu&&(i=i.concat(mu(c)));for(var s=pu(e),l=pu(c),u=0;u0?" Args: ".concat(c.join(", ")):""))}var Dy=function(){function e(c){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=c}return e.prototype.indexOfGroup=function(c){for(var a=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 a;for(var n=this.groupSizes[c],i=this.indexOfGroup(c),s=i+n,l=i;l=0){var n=document.createTextNode(a);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&&(Z+="".concat(M,","))}),p+="".concat(E).concat(D,'{content:"').concat(Z,'"}').concat(e9)},z=0;z0?".".concat(c):x},z=p.slice();z.push(function(x){x.type===a6&&x.value.includes("&")&&(x.props[0]=x.props[0].replace(jy,a).replace(n,h))}),l.prefix&&z.push(ou),z.push(tu);var V=function(x,S,E,D){S===void 0&&(S=""),E===void 0&&(E=""),D===void 0&&(D="&"),c=D,a=S,n=new RegExp("\\".concat(a,"\\b"),"g");var Z=x.replace(Yy,""),M=nu(E||S?"".concat(E," ").concat(S," { ").concat(Z," }"):Z);l.namespace&&(M=ku(M,l.namespace));var H=[];return j0(M,iu(z.concat(su(function(C){return H.push(C)})))),H};return V.hash=p.length?p.reduce(function(x,S){return S.name||N4(15),Y0(x,S.name)},Cu).toString():"",V}var Ky=new M5,Qn=bu(),n9=J2.default.createContext({shouldForwardProp:void 0,styleSheet:Ky,stylis:Qn}),Zk=n9.Consumer,Xy=J2.default.createContext(void 0);function Zn(){return(0,J2.useContext)(n9)}function Qy(e){var c=(0,J2.useState)(e.stylisPlugins),a=c[0],n=c[1],i=Zn().styleSheet,s=(0,J2.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,J2.useMemo)(function(){return bu({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:a})},[e.enableVendorPrefixes,e.namespace,a]);(0,J2.useEffect)(function(){(0,gu.default)(a,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var u=(0,J2.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:l}},[e.shouldForwardProp,s,l]);return J2.default.createElement(n9.Provider,{value:u},J2.default.createElement(Xy.Provider,{value:l},e.children))}var Zy=function(){function e(c,a){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=a,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}(),Jy=function(e){return e>="A"&&e<="Z"};function du(e){for(var c="",a=0;a>>0);if(!a.hasNameForId(this.componentId,l)){var u=n(s,".".concat(l),void 0,this.componentId);a.insertRules(this.componentId,l,u)}i=Q6(i,l),this.staticRulesId=l}else{for(var p=Y0(this.baseHash,n.hash),h="",z=0;z>>0);a.hasNameForId(this.componentId,S)||a.insertRules(this.componentId,S,n(h,".".concat(S),void 0,this.componentId)),i=Q6(i,S)}}return i},e}(),Pu=J2.default.createContext(void 0),Jk=Pu.Consumer;var jn={};function aw(e,c,a){var n=a9(e),i=e,s=!$n(e),l=c.attrs,u=l===void 0?K7:l,p=c.componentId,h=p===void 0?function(_,F){var U=typeof _!="string"?"sc":fu(_);jn[U]=(jn[U]||0)+1;var B="".concat(U,"-").concat(Sy(K0+U+jn[U]));return F?"".concat(F,"-").concat(B):B}(c.displayName,c.parentComponentId):p,z=c.displayName,V=z===void 0?function(_){return $n(_)?"styled.".concat(_):"Styled(".concat(Ny(_),")")}(e):z,x=c.displayName&&c.componentId?"".concat(fu(c.displayName),"-").concat(c.componentId):c.componentId||h,S=n&&i.attrs?i.attrs.concat(u).filter(Boolean):u,E=c.shouldForwardProp;if(n&&i.shouldForwardProp){var D=i.shouldForwardProp;if(c.shouldForwardProp){var Z=c.shouldForwardProp;E=function(_,F){return D(_,F)&&Z(_,F)}}else E=D}var M=new cw(a,x,n?i.componentStyle:void 0);function H(_,F){return function(U,B,J){var b=U.attrs,N=U.componentStyle,A=U.defaultProps,T=U.foldedComponentIds,q=U.styledComponentId,Y=U.target,j=J2.default.useContext(Pu),G=Zn(),t2=U.shouldForwardProp||G.shouldForwardProp,s2=Ly(B,j,A)||X0,i2=function(a3,d1,z1){for(var e4,K2=w1(w1({},d1),{className:void 0,theme:z1}),W1=0;W12&&M5.registerId(this.componentId+c),this.removeStyles(c,n),this.createStyles(c,a,n,i)},e}();var cb=function(){function e(){var c=this;this._emitSheetCSS=function(){var a=c.instance.toString(),n=Xn(),i=j7([n&&'nonce="'.concat(n,'"'),"".concat(k4,'="true"'),"".concat($7,'="').concat(K0,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(c.sealed)throw N4(2);return c._emitSheetCSS()},this.getStyleElement=function(){var a;if(c.sealed)throw N4(2);var n=((a={})[k4]="",a[$7]=K0,a.dangerouslySetInnerHTML={__html:c.instance.toString()},a),i=Xn();return i&&(n.nonce=i),[J2.default.createElement("style",w1({},n,{key:"sc-0-0"}))]},this.seal=function(){c.sealed=!0},this.instance=new M5({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(c){if(this.sealed)throw N4(2);return J2.default.createElement(Qy,{sheet:this.instance},c)},e.prototype.interleaveWithNodeStream=function(c){throw N4(3)},e}();var ab="__sc-".concat(k4,"__");var X7="#a8a8a8",Z6=d2.div` +}`;function df(){var e=lf,c=ff,a=c2.cssPrefix,n=c2.replacementClass,i=ox;if(a!==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(a,"-")).replace(l,"--".concat(a,"-")).replace(u,".".concat(n))}return i}var Ol=!1;function on(){c2.autoAddCss&&!Ol&&(rx(df()),Ol=!0)}var lx={mixout:function(){return{dom:{css:df,insertCss:on}}},hooks:function(){return{beforeDOMElementCreation:function(){on()},beforeI2svg:function(){on()}}}},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 W3=x4[L4],zf=[],fx=function e(){F2.removeEventListener("DOMContentLoaded",e),w7=1,zf.map(function(c){return c()})},w7=!1;w4&&(w7=(F2.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(F2.readyState),w7||F2.addEventListener("DOMContentLoaded",fx));function ux(e){w4&&(w7?setTimeout(e,0):zf.push(e))}function h5(e){var c=e.tag,a=e.attributes,n=a===void 0?{}:a,i=e.children,s=i===void 0?[]:i;return typeof e=="string"?vf(e):"<".concat(c," ").concat(tx(n),">").concat(s.map(h5).join(""),"")}function Il(e,c,a){if(e&&e[c]&&e[c][a])return{prefix:c,iconName:a,icon:e[c][a]}}var px=function(c,a){return function(n,i,s,l){return c.call(a,n,i,s,l)}},ln=function(c,a,n,i){var s=Object.keys(c),l=s.length,u=i!==void 0?px(a,i):a,p,h,z;for(n===void 0?(p=1,z=c[s[0]]):(p=0,z=n);p=55296&&i<=56319&&a=55296&&n<=56319&&a>c+1&&(i=e.charCodeAt(c+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function Bl(e){return Object.keys(e).reduce(function(c,a){var n=e[a],i=!!n.icon;return i?c[n.iconName]=n.icon:c[a]=n,c},{})}function dn(e,c){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.skipHooks,i=n===void 0?!1:n,s=Bl(c);typeof W3.hooks.addPack=="function"&&!i?W3.hooks.addPack(e,Bl(c)):W3.styles[e]=Q(Q({},W3.styles[e]||{}),s),e==="fas"&&dn("fa",c)}var V7,M7,C7,F0=W3.styles,vx=W3.shims,dx=(V7={},f1(V7,D2,Object.values(l5[D2])),f1(V7,Z2,Object.values(l5[Z2])),V7),kn=null,Hf={},gf={},Vf={},Mf={},Cf={},zx=(M7={},f1(M7,D2,Object.keys(s5[D2])),f1(M7,Z2,Object.keys(s5[Z2])),M7);function Hx(e){return~JL.indexOf(e)}function gx(e,c){var a=c.split("-"),n=a[0],i=a.slice(1).join("-");return n===e&&i!==""&&!Hx(i)?i:null}var Lf=function(){var c=function(s){return ln(F0,function(l,u,p){return l[p]=ln(u,s,{}),l},{})};Hf=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}),gf=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}),Cf=c(function(i,s,l){var u=s[2];return i[l]=l,u.forEach(function(p){i[p]=l}),i});var a="far"in F0||c2.autoFetchSvg,n=ln(vx,function(i,s){var l=s[0],u=s[1],p=s[2];return u==="far"&&!a&&(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:{}});Vf=n.names,Mf=n.unicodes,kn=b7(c2.styleDefault,{family:c2.familyDefault})};ax(function(e){kn=b7(e.styleDefault,{family:c2.familyDefault})});Lf();function An(e,c){return(Hf[e]||{})[c]}function Vx(e,c){return(gf[e]||{})[c]}function $6(e,c){return(Cf[e]||{})[c]}function xf(e){return Vf[e]||{prefix:null,iconName:null}}function Mx(e){var c=Mf[e],a=An("fas",e);return c||(a?{prefix:"fas",iconName:a}:null)||{prefix:null,iconName:null}}function J4(){return kn}var En=function(){return{prefix:null,iconName:null,rest:[]}};function b7(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.family,n=a===void 0?D2:a,i=s5[n][e],s=o5[n][e]||o5[n][i],l=e in W3.styles?e:null;return s||l||null}var Ul=(C7={},f1(C7,D2,Object.keys(l5[D2])),f1(C7,Z2,Object.keys(l5[Z2])),C7);function k7(e){var c,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.skipLookups,i=n===void 0?!1:n,s=(c={},f1(c,D2,"".concat(c2.cssPrefix,"-").concat(D2)),f1(c,Z2,"".concat(c2.cssPrefix,"-").concat(Z2)),c),l=null,u=D2;(e.includes(s[D2])||e.some(function(h){return Ul[D2].includes(h)}))&&(u=D2),(e.includes(s[Z2])||e.some(function(h){return Ul[Z2].includes(h)}))&&(u=Z2);var p=e.reduce(function(h,z){var M=gx(c2.cssPrefix,z);if(F0[z]?(z=dx[u].includes(z)?jL[u][z]:z,l=z,h.prefix=z):zx[u].indexOf(z)>-1?(l=z,h.prefix=b7(z,{family:u})):M?h.iconName=M:z!==c2.replacementClass&&z!==s[D2]&&z!==s[Z2]&&h.rest.push(z),!i&&h.prefix&&h.iconName){var L=l==="fa"?xf(h.iconName):{},S=$6(h.prefix,h.iconName);L.prefix&&(l=null),h.iconName=L.iconName||S||h.iconName,h.prefix=L.prefix||h.prefix,h.prefix==="far"&&!F0.far&&F0.fas&&!c2.autoFetchSvg&&(h.prefix="fas")}return h},En());return(e.includes("fa-brands")||e.includes("fab"))&&(p.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(p.prefix="fad"),!p.prefix&&u===Z2&&(F0.fass||c2.autoFetchSvg)&&(p.prefix="fass",p.iconName=$6(p.prefix,p.iconName)||p.iconName),(p.prefix==="fa"||l==="fa")&&(p.prefix=J4()||"fas"),p}var Cx=function(){function e(){TL(this,e),this.definitions={}}return RL(e,[{key:"add",value:function(){for(var a=this,n=arguments.length,i=new Array(n),s=0;s0&&z.forEach(function(M){typeof M=="string"&&(a[u][M]=h)}),a[u][p]=h}),a}}]),e}(),Wl=[],O0={},I0={},Lx=Object.keys(I0);function xx(e,c){var a=c.mixoutsTo;return Wl=e,O0={},Object.keys(I0).forEach(function(n){Lx.indexOf(n)===-1&&delete I0[n]}),Wl.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(l){typeof i[l]=="function"&&(a[l]=i[l]),y7(i[l])==="object"&&Object.keys(i[l]).forEach(function(u){a[l]||(a[l]={}),a[l][u]=i[l][u]})}),n.hooks){var s=n.hooks();Object.keys(s).forEach(function(l){O0[l]||(O0[l]=[]),O0[l].push(s[l])})}n.provides&&n.provides(I0)}),a}function zn(e,c){for(var a=arguments.length,n=new Array(a>2?a-2:0),i=2;i1?c-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return w4?(Y6("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]:{},a=c.autoReplaceSvgRoot;c2.autoReplaceSvg===!1&&(c2.autoReplaceSvg=!0),c2.observeMutations=!0,ux(function(){Nx({autoReplaceSvgRoot:a}),Y6("watch",c)})}},Sx={icon:function(c){if(c===null)return null;if(y7(c)==="object"&&c.prefix&&c.iconName)return{prefix:c.prefix,iconName:$6(c.prefix,c.iconName)||c.iconName};if(Array.isArray(c)&&c.length===2){var a=c[1].indexOf("fa-")===0?c[1].slice(3):c[1],n=b7(c[0]);return{prefix:n,iconName:$6(n,a)||a}}if(typeof c=="string"&&(c.indexOf("".concat(c2.cssPrefix,"-"))>-1||c.match(YL))){var i=k7(c.split(" "),{skipLookups:!0});return{prefix:i.prefix||J4(),iconName:$6(i.prefix,i.iconName)||i.iconName}}if(typeof c=="string"){var s=J4();return{prefix:s,iconName:$6(s,c)||c}}}},u3={noAuto:yx,config:c2,dom:wx,parse:Sx,library:yf,findIconDefinition:Hn,toHtml:h5},Nx=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=c.autoReplaceSvgRoot,n=a===void 0?F2:a;(Object.keys(W3.styles).length>0||c2.autoFetchSvg)&&w4&&c2.autoReplaceSvg&&u3.dom.i2svg({node:n})};function A7(e,c){return Object.defineProperty(e,"abstract",{get:c}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return h5(n)})}}),Object.defineProperty(e,"node",{get:function(){if(w4){var n=F2.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function bx(e){var c=e.children,a=e.main,n=e.mask,i=e.attributes,s=e.styles,l=e.transform;if(bn(l)&&a.found&&!n.found){var u=a.width,p=a.height,h={x:u/p/2,y:.5};i.style=N7(Q(Q({},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 kx(e){var c=e.prefix,a=e.iconName,n=e.children,i=e.attributes,s=e.symbol,l=s===!0?"".concat(c,"-").concat(c2.cssPrefix,"-").concat(a):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Q(Q({},i),{},{id:l}),children:n}]}]}function _n(e){var c=e.icons,a=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,_=n.found?n:a,R=_.width,W=_.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:Q(Q({},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[j6]=""),p&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(z||u5())},children:[p]}),delete C.attributes.title);var D=Q(Q({},C),{},{prefix:i,iconName:s,main:a,mask:n,maskId:h,transform:l,symbol:u,styles:Q(Q({},b),M.styles)}),U=n.found&&a.found?y4("generateAbstractMask",D)||{children:[],attributes:{}}:y4("generateAbstractIcon",D)||{children:[],attributes:{}},I=U.children,J=U.attributes;return D.children=I,D.attributes=J,u?kx(D):bx(D)}function Gl(e){var c=e.content,a=e.width,n=e.height,i=e.transform,s=e.title,l=e.extra,u=e.watchable,p=u===void 0?!1:u,h=Q(Q(Q({},l.attributes),s?{title:s}:{}),{},{class:l.classes.join(" ")});p&&(h[j6]="");var z=Q({},l.styles);bn(i)&&(z.transform=sx({transform:i,startCentered:!0,width:a,height:n}),z["-webkit-transform"]=z.transform);var M=N7(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 Ax(e){var c=e.content,a=e.title,n=e.extra,i=Q(Q(Q({},n.attributes),a?{title:a}:{}),{},{class:n.classes.join(" ")}),s=N7(n.styles);s.length>0&&(i.style=s);var l=[];return l.push({tag:"span",attributes:i,children:[c]}),a&&l.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),l}var fn=W3.styles;function gn(e){var c=e[0],a=e[1],n=e.slice(4),i=Ln(n,1),s=i[0],l=null;return Array.isArray(s)?l={tag:"g",attributes:{class:"".concat(c2.cssPrefix,"-").concat(q6.GROUP)},children:[{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(q6.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(c2.cssPrefix,"-").concat(q6.PRIMARY),fill:"currentColor",d:s[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:c,height:a,icon:l}}var Ex={found:!1,width:512,height:512};function _x(e,c){!uf&&!c2.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(c,'" is missing.'))}function Vn(e,c){var a=c;return c==="fa"&&c2.styleDefault!==null&&(c=J4()),new Promise(function(n,i){var s={found:!1,width:512,height:512,icon:y4("missingIconAbstract")||{}};if(a==="fa"){var l=xf(e)||{};e=l.iconName||e,c=l.prefix||c}if(e&&c&&fn[c]&&fn[c][e]){var u=fn[c][e];return n(gn(u))}_x(e,c),n(Q(Q({},Ex),{},{icon:c2.showMissingIcons&&e?y4("missingIconAbstract")||{}:{}}))})}var ql=function(){},Mn=c2.measurePerformance&&h7&&h7.mark&&h7.measure?h7:{mark:ql,measure:ql},n5='FA "6.5.1"',Px=function(c){return Mn.mark("".concat(n5," ").concat(c," begins")),function(){return wf(c)}},wf=function(c){Mn.mark("".concat(n5," ").concat(c," ends")),Mn.measure("".concat(n5," ").concat(c),"".concat(n5," ").concat(c," begins"),"".concat(n5," ").concat(c," ends"))},Pn={begin:Px,end:wf},L7=function(){};function $l(e){var c=e.getAttribute?e.getAttribute(j6):null;return typeof c=="string"}function Tx(e){var c=e.getAttribute?e.getAttribute(yn):null,a=e.getAttribute?e.getAttribute(wn):null;return c&&a}function Rx(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(c2.replacementClass)}function Dx(){if(c2.autoReplaceSvg===!0)return x7.replace;var e=x7[c2.autoReplaceSvg];return e||x7.replace}function Fx(e){return F2.createElementNS("http://www.w3.org/2000/svg",e)}function Ox(e){return F2.createElement(e)}function Sf(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=c.ceFn,n=a===void 0?e.tag==="svg"?Fx:Ox:a;if(typeof e=="string")return F2.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(Sf(l,{ceFn:n}))}),i}function Ix(e){var c=" ".concat(e.outerHTML," ");return c="".concat(c,"Font Awesome fontawesome.com "),c}var x7={replace:function(c){var a=c[0];if(a.parentNode)if(c[1].forEach(function(i){a.parentNode.insertBefore(Sf(i),a)}),a.getAttribute(j6)===null&&c2.keepOriginalSource){var n=F2.createComment(Ix(a));a.parentNode.replaceChild(n,a)}else a.remove()},nest:function(c){var a=c[0],n=c[1];if(~Nn(a).indexOf(c2.replacementClass))return x7.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?a.removeAttribute("class"):a.setAttribute("class",s.toNode.join(" "))}var l=n.map(function(u){return h5(u)}).join(` +`);a.setAttribute(j6,""),a.innerHTML=l}};function jl(e){e()}function Nf(e,c){var a=typeof c=="function"?c:L7;if(e.length===0)a();else{var n=jl;c2.mutateApproach===qL&&(n=Z4.requestAnimationFrame||jl),n(function(){var i=Dx(),s=Pn.begin("mutate");e.map(i),s(),a()})}}var Tn=!1;function bf(){Tn=!0}function Cn(){Tn=!1}var S7=null;function Yl(e){if(Rl&&c2.observeMutations){var c=e.treeCallback,a=c===void 0?L7:c,n=e.nodeCallback,i=n===void 0?L7:n,s=e.pseudoElementsCallback,l=s===void 0?L7:s,u=e.observeMutationsRoot,p=u===void 0?F2:u;S7=new Rl(function(h){if(!Tn){var z=J4();U0(h).forEach(function(M){if(M.type==="childList"&&M.addedNodes.length>0&&!$l(M.addedNodes[0])&&(c2.searchPseudoElements&&l(M.target),a(M.target)),M.type==="attributes"&&M.target.parentNode&&c2.searchPseudoElements&&l(M.target.parentNode),M.type==="attributes"&&$l(M.target)&&~ZL.indexOf(M.attributeName))if(M.attributeName==="class"&&Tx(M.target)){var L=k7(Nn(M.target)),S=L.prefix,_=L.iconName;M.target.setAttribute(yn,S||z),_&&M.target.setAttribute(wn,_)}else Rx(M.target)&&i(M.target)})}}),w4&&S7.observe(p,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Bx(){S7&&S7.disconnect()}function Ux(e){var c=e.getAttribute("style"),a=[];return c&&(a=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},{})),a}function Wx(e){var c=e.getAttribute("data-prefix"),a=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=k7(Nn(e));return i.prefix||(i.prefix=J4()),c&&a&&(i.prefix=c,i.iconName=a),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Vx(i.prefix,e.innerText)||An(i.prefix,vn(e.innerText))),!i.iconName&&c2.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Gx(e){var c=U0(e.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),a=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return c2.autoA11y&&(a?c["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(n||u5()):(c["aria-hidden"]="true",c.focusable="false")),c}function qx(){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 Kl(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},a=Wx(e),n=a.iconName,i=a.prefix,s=a.rest,l=Gx(e),u=zn("parseNodeAttributes",{},e),p=c.styleParser?Ux(e):[];return Q({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 $x=W3.styles;function kf(e){var c=c2.autoReplaceSvg==="nest"?Kl(e,{styleParser:!1}):Kl(e);return~c.extra.classes.indexOf(pf)?y4("generateLayersText",e,c):y4("generateSvgReplacementMutation",e,c)}var e6=new Set;Sn.map(function(e){e6.add("fa-".concat(e))});Object.keys(s5[D2]).map(e6.add.bind(e6));Object.keys(s5[Z2]).map(e6.add.bind(e6));e6=p5(e6);function Xl(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!w4)return Promise.resolve();var a=F2.documentElement.classList,n=function(M){return a.add("".concat(Dl,"-").concat(M))},i=function(M){return a.remove("".concat(Dl,"-").concat(M))},s=c2.autoFetchSvg?e6:Sn.map(function(z){return"fa-".concat(z)}).concat(Object.keys($x));s.includes("fa")||s.push("fa");var l=[".".concat(pf,":not([").concat(j6,"])")].concat(s.map(function(z){return".".concat(z,":not([").concat(j6,"])")})).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=kf(M);L&&z.push(L)}catch(S){uf||S.name==="MissingIcon"&&console.error(S)}return z},[]);return new Promise(function(z,M){Promise.all(h).then(function(L){Nf(L,function(){n("active"),n("complete"),i("pending"),typeof c=="function"&&c(),p(),z()})}).catch(function(L){p(),M(L)})})}function jx(e){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kf(e).then(function(a){a&&Nf([a],c)})}function Yx(e){return function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(c||{}).icon?c:Hn(c||{}),i=a.mask;return i&&(i=(i||{}).icon?i:Hn(i||{})),e(n,Q(Q({},a),{},{mask:i}))}}var Kx=function(c){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.transform,i=n===void 0?t4:n,s=a.symbol,l=s===void 0?!1:s,u=a.mask,p=u===void 0?null:u,h=a.maskId,z=h===void 0?null:h,M=a.title,L=M===void 0?null:M,S=a.titleId,_=S===void 0?null:S,R=a.classes,W=R===void 0?[]:R,g=a.attributes,H=g===void 0?{}:g,C=a.styles,b=C===void 0?{}:C;if(c){var D=c.prefix,U=c.iconName,I=c.icon;return A7(Q({type:"icon"},c),function(){return Y6("beforeDOMElementCreation",{iconDefinition:c,params:a}),c2.autoA11y&&(L?H["aria-labelledby"]="".concat(c2.replacementClass,"-title-").concat(_||u5()):(H["aria-hidden"]="true",H.focusable="false")),_n({icons:{main:gn(I),mask:p?gn(p.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:U,transform:Q(Q({},t4),i),symbol:l,title:L,maskId:z,titleId:_,extra:{attributes:H,styles:b,classes:W}})})}},Xx={mixout:function(){return{icon:Yx(Kx)}},hooks:function(){return{mutationObserverCallbacks:function(a){return a.treeCallback=Xl,a.nodeCallback=jx,a}}},provides:function(c){c.i2svg=function(a){var n=a.node,i=n===void 0?F2:n,s=a.callback,l=s===void 0?function(){}:s;return Xl(i,l)},c.generateSvgReplacementMutation=function(a,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,_){Promise.all([Vn(i,u),z.iconName?Vn(z.iconName,z.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(R){var W=Ln(R,2),g=W[0],H=W[1];S([a,_n({icons:{main:g,mask:H},prefix:u,iconName:i,transform:p,symbol:h,maskId:M,title:s,titleId:l,extra:L,watchable:!0})])}).catch(_)})},c.generateAbstractIcon=function(a){var n=a.children,i=a.attributes,s=a.main,l=a.transform,u=a.styles,p=N7(u);p.length>0&&(i.style=p);var h;return bn(l)&&(h=y4("generateAbstractTransformGrouping",{main:s,transform:l,containerWidth:s.width,iconWidth:s.width})),n.push(h||s.icon),{children:n,attributes:i}}}},Qx={mixout:function(){return{layer:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,s=i===void 0?[]:i;return A7({type:"layer"},function(){Y6("beforeDOMElementCreation",{assembler:a,params:n});var l=[];return a(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(p5(s)).join(" ")},children:l}]})}}}},Zx={mixout:function(){return{counter:function(a){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 A7({type:"counter",content:a},function(){return Y6("beforeDOMElementCreation",{content:a,params:n}),Ax({content:a.toString(),title:s,extra:{attributes:h,styles:M,classes:["".concat(c2.cssPrefix,"-layers-counter")].concat(p5(u))}})})}}}},Jx={mixout:function(){return{text:function(a){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 A7({type:"text",content:a},function(){return Y6("beforeDOMElementCreation",{content:a,params:n}),Gl({content:a,transform:Q(Q({},t4),s),title:u,extra:{attributes:M,styles:S,classes:["".concat(c2.cssPrefix,"-layers-text")].concat(p5(h))}})})}}},provides:function(c){c.generateLayersText=function(a,n){var i=n.title,s=n.transform,l=n.extra,u=null,p=null;if(of){var h=parseInt(getComputedStyle(a).fontSize,10),z=a.getBoundingClientRect();u=z.width/h,p=z.height/h}return c2.autoA11y&&!i&&(l.attributes["aria-hidden"]="true"),Promise.resolve([a,Gl({content:a.innerHTML,width:u,height:p,transform:s,title:i,extra:l,watchable:!0})])}}},ey=new RegExp('"',"ug"),Ql=[1105920,1112319];function cy(e){var c=e.replace(ey,""),a=hx(c,0),n=a>=Ql[0]&&a<=Ql[1],i=c.length===2?c[0]===c[1]:!1;return{value:vn(i?c[0]:c),isSecondary:n||i}}function Zl(e,c){var a="".concat(GL).concat(c.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(a)!==null)return n();var s=U0(e.children),l=s.filter(function(I){return I.getAttribute(hn)===c})[0],u=Z4.getComputedStyle(e,c),p=u.getPropertyValue("font-family").match(KL),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])?Z2:D2,S=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(p[2])?o5[L][p[2].toLowerCase()]:XL[L][h],_=cy(M),R=_.value,W=_.isSecondary,g=p[0].startsWith("FontAwesome"),H=An(S,R),C=H;if(g){var b=Mx(R);b.iconName&&b.prefix&&(H=b.iconName,S=b.prefix)}if(H&&!W&&(!l||l.getAttribute(yn)!==S||l.getAttribute(wn)!==C)){e.setAttribute(a,C),l&&e.removeChild(l);var D=qx(),U=D.extra;U.attributes[hn]=c,Vn(H,S).then(function(I){var J=_n(Q(Q({},D),{},{icons:{main:I,mask:En()},prefix:S,iconName:C,extra:U,watchable:!0})),A=F2.createElementNS("http://www.w3.org/2000/svg","svg");c==="::before"?e.insertBefore(A,e.firstChild):e.appendChild(A),A.outerHTML=J.map(function(N){return h5(N)}).join(` +`),e.removeAttribute(a),n()}).catch(i)}else n()}else n()})}function ay(e){return Promise.all([Zl(e,"::before"),Zl(e,"::after")])}function ry(e){return e.parentNode!==document.head&&!~$L.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hn)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Jl(e){if(w4)return new Promise(function(c,a){var n=U0(e.querySelectorAll("*")).filter(ry).map(ay),i=Pn.begin("searchPseudoElements");bf(),Promise.all(n).then(function(){i(),Cn(),c()}).catch(function(){i(),Cn(),a()})})}var ny={hooks:function(){return{mutationObserverCallbacks:function(a){return a.pseudoElementsCallback=Jl,a}}},provides:function(c){c.pseudoElements2svg=function(a){var n=a.node,i=n===void 0?F2:n;c2.searchPseudoElements&&Jl(i)}}},ef=!1,ty={mixout:function(){return{dom:{unwatch:function(){bf(),ef=!0}}}},hooks:function(){return{bootstrap:function(){Yl(zn("mutationObserverCallbacks",{}))},noAuto:function(){Bx()},watch:function(a){var n=a.observeMutationsRoot;ef?Cn():Yl(zn("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},cf=function(c){var a={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},a)},iy={mixout:function(){return{parse:{transform:function(a){return cf(a)}}}},hooks:function(){return{parseNodeAttributes:function(a,n){var i=n.getAttribute("data-fa-transform");return i&&(a.transform=cf(i)),a}}},provides:function(c){c.generateAbstractTransformGrouping=function(a){var n=a.main,i=a.transform,s=a.containerWidth,l=a.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:Q({},S.outer),children:[{tag:"g",attributes:Q({},S.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Q(Q({},n.icon.attributes),S.path)}]}]}}}},un={x:0,y:0,width:"100%",height:"100%"};function af(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 sy(e){return e.tag==="g"?e.children:[e]}var oy={hooks:function(){return{parseNodeAttributes:function(a,n){var i=n.getAttribute("data-fa-mask"),s=i?k7(i.split(" ").map(function(l){return l.trim()})):En();return s.prefix||(s.prefix=J4()),a.mask=s,a.maskId=n.getAttribute("data-fa-mask-id"),a}}},provides:function(c){c.generateAbstractMask=function(a){var n=a.children,i=a.attributes,s=a.main,l=a.mask,u=a.maskId,p=a.transform,h=s.width,z=s.icon,M=l.width,L=l.icon,S=ix({transform:p,containerWidth:M,iconWidth:h}),_={tag:"rect",attributes:Q(Q({},un),{},{fill:"white"})},R=z.children?{children:z.children.map(af)}:{},W={tag:"g",attributes:Q({},S.inner),children:[af(Q({tag:z.tag,attributes:Q(Q({},z.attributes),S.path)},R))]},g={tag:"g",attributes:Q({},S.outer),children:[W]},H="mask-".concat(u||u5()),C="clip-".concat(u||u5()),b={tag:"mask",attributes:Q(Q({},un),{},{id:H,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[_,g]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:sy(L)},b]};return n.push(D,{tag:"rect",attributes:Q({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(H,")")},un)}),{children:n,attributes:i}}}},ly={provides:function(c){var a=!1;Z4.matchMedia&&(a=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:Q(Q({},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=Q(Q({},s),{},{attributeName:"opacity"}),u={tag:"circle",attributes:Q(Q({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return a||u.children.push({tag:"animate",attributes:Q(Q({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Q(Q({},l),{},{values:"1;0;1;1;0;1;"})}),n.push(u),n.push({tag:"path",attributes:Q(Q({},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:a?[]:[{tag:"animate",attributes:Q(Q({},l),{},{values:"1;0;0;0;0;1;"})}]}),a||n.push({tag:"path",attributes:Q(Q({},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:Q(Q({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},fy={hooks:function(){return{parseNodeAttributes:function(a,n){var i=n.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return a.symbol=s,a}}}},uy=[lx,Xx,Qx,Zx,Jx,ny,ty,iy,oy,ly,fy];xx(uy,{mixoutsTo:u3});var sb=u3.noAuto,ob=u3.config,lb=u3.library,fb=u3.dom,E7=u3.parse,ub=u3.findIconDefinition,pb=u3.toHtml,Af=u3.icon,mb=u3.layer,hb=u3.text,vb=u3.counter;var h2=b2(Of()),On=b2(v1());function If(e,c){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);c&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function c6(e){for(var c=1;c=0)&&(a[i]=e[i]);return a}function vy(e,c){if(e==null)return{};var a=hy(e,c),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Dn(e){return dy(e)||zy(e)||Hy(e)||gy()}function dy(e){if(Array.isArray(e))return Fn(e)}function zy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hy(e,c){if(e){if(typeof e=="string")return Fn(e,c);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Fn(e,c)}}function Fn(e,c){(c==null||c>e.length)&&(c=e.length);for(var a=0,n=new Array(c);a2&&arguments[2]!==void 0?arguments[2]:{};if(typeof c=="string")return c;var n=(c.children||[]).map(function(p){return Wf(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=xy(z);break;default:h.indexOf("aria-")===0||h.indexOf("data-")===0?p.attrs[h.toLowerCase()]=z:p.attrs[Uf(h)]=z}return p},{attrs:{}}),s=a.style,l=s===void 0?{}:s,u=vy(a,Cy);return i.attrs.style=c6(c6({},i.attrs.style),l),e.apply(void 0,[c.tag,c6(c6({},i.attrs),u)].concat(Dn(n)))}var Gf=!1;try{Gf=!0}catch{}function yy(){if(!Gf&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Bf(e){if(e&&_7(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(E7.icon)return E7.icon(e);if(e===null)return null;if(e&&_7(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 Rn(e,c){return Array.isArray(c)&&c.length>0||!Array.isArray(c)&&c?W0({},e,c):{}}var Z1=On.default.forwardRef(function(e,c){var a=e.icon,n=e.mask,i=e.symbol,s=e.className,l=e.title,u=e.titleId,p=e.maskId,h=Bf(a),z=Rn("classes",[].concat(Dn(Vy(e)),Dn(s.split(" ")))),M=Rn("transform",typeof e.transform=="string"?E7.transform(e.transform):e.transform),L=Rn("mask",Bf(n)),S=Af(h,c6(c6(c6(c6({},z),M),L),{},{symbol:i,title:l,titleId:u,maskId:p}));if(!S)return yy("Could not find icon",h),null;var _=S.abstract,R={ref:c};return Object.keys(e).forEach(function(W){Z1.defaultProps.hasOwnProperty(W)||(R[W]=e[W])}),wy(_[0],R)});Z1.displayName="FontAwesomeIcon";Z1.propTypes={beat:h2.default.bool,border:h2.default.bool,beatFade:h2.default.bool,bounce:h2.default.bool,className:h2.default.string,fade:h2.default.bool,flash:h2.default.bool,mask:h2.default.oneOfType([h2.default.object,h2.default.array,h2.default.string]),maskId:h2.default.string,fixedWidth:h2.default.bool,inverse:h2.default.bool,flip:h2.default.oneOf([!0,!1,"horizontal","vertical","both"]),icon:h2.default.oneOfType([h2.default.object,h2.default.array,h2.default.string]),listItem:h2.default.bool,pull:h2.default.oneOf(["right","left"]),pulse:h2.default.bool,rotation:h2.default.oneOf([0,90,180,270]),shake:h2.default.bool,size:h2.default.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:h2.default.bool,spinPulse:h2.default.bool,spinReverse:h2.default.bool,symbol:h2.default.oneOfType([h2.default.bool,h2.default.string]),title:h2.default.string,titleId:h2.default.string,transform:h2.default.oneOfType([h2.default.string,h2.default.object]),swapOpacity:h2.default.bool};Z1.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 wy=Wf.bind(null,On.default.createElement);var H3=b2(v1());var N1=function(){return N1=Object.assign||function(c){for(var a,n=1,i=arguments.length;n0?J2(j0,--S3):0,$0--,i1===10&&($0=1,F7--),i1}function N3(){return i1=S32||Un(i1)>3?"":" "}function ru(e,c){for(;--c&&N3()&&!(i1<48||i1>102||i1>57&&i1<65||i1>70&&i1<97););return O7(e,g5()+(c<6&&r6()==32&&N3()==32))}function Wn(e){for(;N3();)switch(i1){case e:return S3;case 34:case 39:e!==34&&e!==39&&Wn(i1);break;case 40:e===41&&Wn(e);break;case 92:N3();break}return S3}function nu(e,c){for(;N3()&&e+i1!==57;)if(e+i1===84&&r6()===47)break;return"/*"+O7(c,S3-1)+"*"+d5(e===47?e:N3())}function tu(e){for(;!Un(r6());)N3();return O7(e,S3)}function ou(e){return cu(B7("",null,null,null,[""],e=eu(e),0,[0],e))}function B7(e,c,a,n,i,s,l,u,p){for(var h=0,z=0,M=l,L=0,S=0,_=0,R=1,W=1,g=1,H=0,C="",b=i,D=s,U=n,I=C;W;)switch(_=H,H=N3()){case 40:if(_!=108&&J2(I,M-1)==58){q0(I+=f2(I7(H),"&","&\f"),"&\f",In(h?u[h-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:I+=I7(H);break;case 9:case 10:case 13:case 32:I+=au(_);break;case 92:I+=ru(g5()-1,7);continue;case 47:switch(r6()){case 42:case 47:X6(Sy(nu(N3(),g5()),c,a,p),p);break;default:I+="/"}break;case 123*R:u[h++]=B1(I)*g;case 125*R:case 59:case 0:switch(H){case 0:case 125:W=0;case 59+z:g==-1&&(I=f2(I,/\f/g,"")),S>0&&B1(I)-M&&X6(S>32?su(I+";",n,a,M-1,p):su(f2(I," ","")+";",n,a,M-2,p),p);break;case 59:I+=";";default:if(X6(U=iu(I,c,a,h,z,i,u,C,b=[],D=[],M,s),s),H===123)if(z===0)B7(I,c,U,U,b,s,M,u,D);else switch(L===99&&J2(I,3)===110?100:L){case 100:case 108:case 109:case 115:B7(e,U,U,n&&X6(iu(e,U,U,0,0,i,u,C,i,b=[],M,D),D),i,D,M,u,n?b:D);break;default:B7(I,U,U,U,[""],D,0,u,D)}}h=z=S=0,R=g=1,C=I="",M=l;break;case 58:M=1+B1(I),S=_;default:if(R<1){if(H==123)--R;else if(H==125&&R++==0&&Jf()==125)continue}switch(I+=d5(H),H*R){case 38:g=z>0?1:(I+="\f",-1);break;case 44:u[h++]=(B1(I)-1)*g,g=1;break;case 64:r6()===45&&(I+=I7(N3())),L=r6(),z=M=B1(C=I+=tu(g5())),H++;break;case 45:_===45&&B1(I)==2&&(R=0)}}return s}function iu(e,c,a,n,i,s,l,u,p,h,z,M){for(var L=i-1,S=i===0?s:[""],_=D7(S),R=0,W=0,g=0;R0?S[H]+" "+C:f2(C,/&\f/g,S[H])))&&(p[g++]=b);return H5(e,c,a,i===0?a6:u,p,h,z,M)}function Sy(e,c,a,n){return H5(e,c,a,P7,d5(Zf()),i4(e,2,-2),0,n)}function su(e,c,a,n,i){return H5(e,c,a,G0,i4(e,0,n),i4(e,n+1,-1),n,i)}function Gn(e,c,a){switch(Kf(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 K6+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C2+e+K6+e+k2+e+e;case 5936:switch(J2(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,"")+(G3(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(!G3(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 a&&a.some(function(n,i){return c=i,G3(n.props,/grid-\w+-end/)})?~q0(e+(a=a[c].value),"span",0)?e:k2+f2(e,"-start","")+e+k2+"grid-row-span:"+(~q0(a,"span",0)?G3(a,/\d+/):+G3(a,/\d+/)-+G3(e,/\d+/))+";":k2+f2(e,"-start","")+e;case 4896:case 4128:return a&&a.some(function(n){return G3(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(B1(e)-1-c>6)switch(J2(e,c+1)){case 109:if(J2(e,c+4)!==45)break;case 102:return f2(e,/(.+:)(.+)-([^]+)/,"$1"+C2+"$2-$3$1"+K6+(J2(e,c+3)==108?"$3":"$2-$3"))+e;case 115:return~q0(e,"stretch",0)?Gn(f2(e,"stretch","fill-available"),c,a)+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(J2(e,c+6)===121)return f2(e,":",":"+C2)+e;break;case 6444:switch(J2(e,J2(e,14)===45?18:11)){case 120:return f2(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C2+(J2(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 a="",n=0;n-1&&!e.return)switch(e.type){case G0:e.return=Gn(e.value,e.length,a);return;case T7:return Y0([S4(e,{value:f2(e.value,"@","@"+C2)})],n);case a6:if(e.length)return Xf(a=e.props,function(i){switch(G3(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Q6(S4(e,{props:[f2(i,/:(read-\w+)/,":"+K6+"$1")]})),Q6(S4(e,{props:[i]})),z5(e,{props:Bn(a,n)});break;case"::placeholder":Q6(S4(e,{props:[f2(i,/:(plac\w+)/,":"+C2+"input-$1")]})),Q6(S4(e,{props:[f2(i,/:(plac\w+)/,":"+K6+"$1")]})),Q6(S4(e,{props:[f2(i,/:(plac\w+)/,k2+"input-$1")]})),Q6(S4(e,{props:[i]})),z5(e,{props:Bn(a,n)});break}return""})}}var Ny={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},mu=Ny;var b4=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",xu="active",$7="data-styled-version",X0="6.1.8",et=`/*!sc*/ +`,ct=typeof window<"u"&&"HTMLElement"in window,by=!!(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 K7=Object.freeze([]),Q0=Object.freeze({});function ky(e,c,a){return a===void 0&&(a=Q0),e.theme!==a.theme&&e.theme||c||a.theme}var yu=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"]),Ay=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ey=/(^-|-$)/g;function hu(e){return e.replace(Ay,"-").replace(Ey,"")}var _y=/(a)(d)/gi,U7=52,vu=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yn(e){var c,a="";for(c=Math.abs(e);c>U7;c=c/U7|0)a=vu(c%U7)+a;return(vu(c%U7)+a).replace(_y,"$1-$2")}var qn,wu=5381,K0=function(e,c){for(var a=c.length;a;)e=33*e^c.charCodeAt(--a);return e},Su=function(e){return K0(wu,e)};function Py(e){return Yn(Su(e)>>>0)}function Ty(e){return e.displayName||e.name||"Component"}function $n(e){return typeof e=="string"&&!0}var Nu=typeof Symbol=="function"&&Symbol.for,bu=Nu?Symbol.for("react.memo"):60115,Ry=Nu?Symbol.for("react.forward_ref"):60112,Dy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ku={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Oy=((qn={})[Ry]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qn[bu]=ku,qn);function du(e){return("type"in(c=e)&&c.type.$$typeof)===bu?ku:"$$typeof"in e?Oy[e.$$typeof]:Dy;var c}var Iy=Object.defineProperty,By=Object.getOwnPropertyNames,zu=Object.getOwnPropertySymbols,Uy=Object.getOwnPropertyDescriptor,Wy=Object.getPrototypeOf,Hu=Object.prototype;function Au(e,c,a){if(typeof c!="string"){if(Hu){var n=Wy(c);n&&n!==Hu&&Au(e,n,a)}var i=By(c);zu&&(i=i.concat(zu(c)));for(var s=du(e),l=du(c),u=0;u0?" Args: ".concat(c.join(", ")):""))}var Gy=function(){function e(c){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=c}return e.prototype.indexOfGroup=function(c){for(var a=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 a;for(var n=this.groupSizes[c],i=this.indexOfGroup(c),s=i+n,l=i;l=0){var n=document.createTextNode(a);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(_).concat(R,'{content:"').concat(W,'"}').concat(et)},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(ew,a).replace(n,h))}),l.prefix&&z.push(pu),z.push(lu);var M=function(L,S,_,R){S===void 0&&(S=""),_===void 0&&(_=""),R===void 0&&(R="&"),c=R,a=S,n=new RegExp("\\".concat(a,"\\b"),"g");var W=L.replace(cw,""),g=ou(_||S?"".concat(_," ").concat(S," { ").concat(W," }"):W);l.namespace&&(g=_u(g,l.namespace));var H=[];return Y0(g,fu(z.concat(uu(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)},wu).toString():"",M}var aw=new M5,Qn=Pu(),nt=e1.default.createContext({shouldForwardProp:void 0,styleSheet:aw,stylis:Qn}),tk=nt.Consumer,rw=e1.default.createContext(void 0);function Zn(){return(0,e1.useContext)(nt)}function nw(e){var c=(0,e1.useState)(e.stylisPlugins),a=c[0],n=c[1],i=Zn().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 Pu({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:a})},[e.enableVendorPrefixes,e.namespace,a]);(0,e1.useEffect)(function(){(0,Lu.default)(a,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(nt.Provider,{value:u},e1.default.createElement(rw.Provider,{value:l},e.children))}var tw=function(){function e(c,a){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=a,rt(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}(),iw=function(e){return e>="A"&&e<="Z"};function Vu(e){for(var c="",a=0;a>>0);if(!a.hasNameForId(this.componentId,l)){var u=n(s,".".concat(l),void 0,this.componentId);a.insertRules(this.componentId,l,u)}i=Z6(i,l),this.staticRulesId=l}else{for(var p=K0(this.baseHash,n.hash),h="",z=0;z>>0);a.hasNameForId(this.componentId,S)||a.insertRules(this.componentId,S,n(h,".".concat(S),void 0,this.componentId)),i=Z6(i,S)}}return i},e}(),Fu=e1.default.createContext(void 0),ik=Fu.Consumer;var jn={};function lw(e,c,a){var n=at(e),i=e,s=!$n(e),l=c.attrs,u=l===void 0?K7:l,p=c.componentId,h=p===void 0?function(b,D){var U=typeof b!="string"?"sc":hu(b);jn[U]=(jn[U]||0)+1;var I="".concat(U,"-").concat(Py(X0+U+jn[U]));return D?"".concat(D,"-").concat(I):I}(c.displayName,c.parentComponentId):p,z=c.displayName,M=z===void 0?function(b){return $n(b)?"styled.".concat(b):"Styled(".concat(Ty(b),")")}(e):z,L=c.displayName&&c.componentId?"".concat(hu(c.displayName),"-").concat(c.componentId):c.componentId||h,S=n&&i.attrs?i.attrs.concat(u).filter(Boolean):u,_=c.shouldForwardProp;if(n&&i.shouldForwardProp){var R=i.shouldForwardProp;if(c.shouldForwardProp){var W=c.shouldForwardProp;_=function(b,D){return R(b,D)&&W(b,D)}}else _=R}var g=new ow(a,L,n?i.componentStyle:void 0);function H(b,D){return function(U,I,J){var A=U.attrs,N=U.componentStyle,E=U.defaultProps,T=U.foldedComponentIds,$=U.styledComponentId,K=U.target,Y=e1.default.useContext(Fu),q=Zn(),t2=U.shouldForwardProp||q.shouldForwardProp,s2=ky(I,Y,E)||Q0,i2=function(n3,H1,g1){for(var e4,X2=N1(N1({},H1),{className:void 0,theme:g1}),$1=0;$12&&M5.registerId(this.componentId+c),this.removeStyles(c,n),this.createStyles(c,a,n,i)},e}();var ok=function(){function e(){var c=this;this._emitSheetCSS=function(){var a=c.instance.toString(),n=Xn(),i=j7([n&&'nonce="'.concat(n,'"'),"".concat(b4,'="true"'),"".concat($7,'="').concat(X0,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(c.sealed)throw N4(2);return c._emitSheetCSS()},this.getStyleElement=function(){var a;if(c.sealed)throw N4(2);var n=((a={})[b4]="",a[$7]=X0,a.dangerouslySetInnerHTML={__html:c.instance.toString()},a),i=Xn();return i&&(n.nonce=i),[e1.default.createElement("style",N1({},n,{key:"sc-0-0"}))]},this.seal=function(){c.sealed=!0},this.instance=new M5({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(c){if(this.sealed)throw N4(2);return e1.default.createElement(nw,{sheet:this.instance},c)},e.prototype.interleaveWithNodeStream=function(c){throw N4(3)},e}();var lk="__sc-".concat(b4,"__");var X7="#a8a8a8",J6=d2.div` display: flex; flex-direction: row; -`,tb=d2.div` +`,pk=d2.div` display: flex; flex-direction: column; -`,K1=d2.button` +`,U1=d2.button` border: 1px solid white; font-size: 10pt; @@ -837,24 +837,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho cursor: not-allowed; } transition: background-color 250ms; -`,ib=d2.div` +`,mk=d2.div` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border: 2px solid black; border-radius: 12px; -`,Z0=d2.div` +`,J0=d2.div` border: 2px solid black; border-radius: 12px; margin: 5px; padding: 5px; width: auto; -`,J6=d2.input` +`,e0=d2.input` background-color: rgba(255, 255, 255, 0.75); color: rgb(10, 10, 10); border: 2px solid black; border-radius: 12px; padding: 2px; -`;var Va=T2(g1());var T3=T2(g1());var t9=T2(g1()),Ru=T2(g1()),J0=class extends t9.default.Component{ref=(0,Ru.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,a=c.width=this.props.width||this.props.canvas.width,n=c.height=this.props.height||this.props.canvas.height;c.style.width=`${a}px`,c.style.height=`${n}px`,c.getContext("2d").drawImage(this.props.canvas,0,0,a,n)}render(){return t9.default.createElement("canvas",{ref:this.ref})}};var b2=T2(g1());var W2=T2(g1());var tv=T2(Vi()),tN=d2.div` +`;var Va=b2(v1());var R3=b2(v1());var tt=b2(v1()),Iu=b2(v1()),e8=class extends tt.default.Component{ref=(0,Iu.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,a=c.width=this.props.width||this.props.canvas.width,n=c.height=this.props.height||this.props.canvas.height;c.style.width=`${a}px`,c.style.height=`${n}px`,c.getContext("2d").drawImage(this.props.canvas,0,0,a,n)}render(){return tt.default.createElement("canvas",{ref:this.ref})}};var A2=b2(v1());var G2=b2(v1());var lv=b2(Vi()),pN=d2.div` min-width: 250px; min-height: 50px; max-width: fit-content; @@ -872,7 +872,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho white-space: pre-warp; `,Ci=d2.div` display: flex; -`,iN=d2.input` +`,mN=d2.input` margin: 2px; padding: 5px; outline: none !important; @@ -896,13 +896,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho background-color: rgba(158, 158, 158, 0.75); } transition: background-color 250ms; -`,c3=class e{static _ref;static active;static root;static alert(c,a){return new Promise(n=>{e.clear();let i=()=>{n(),this.active=void 0,this.clear()};this.active=i,e.renderContent(W2.default.createElement("div",null,W2.default.createElement("h5",null,a||`${location.host} says`),W2.default.createElement(Mi,null,c),W2.default.createElement(k8,{onClick:()=>i()},"OK")))})}static async confirm(c,a){return new Promise(n=>{e.clear();let i=s=>{n(s),this.active=void 0,this.clear()};this.active=()=>i(!1),e.renderContent(W2.default.createElement("div",null,W2.default.createElement("h5",null,a||`${location.host} says`),W2.default.createElement(Mi,null,c),W2.default.createElement(Ci,null,W2.default.createElement(k8,{onClick:()=>i(!0)},"OK"),W2.default.createElement(k8,{onClick:()=>i(!1)},"Cancel"))))})}static async prompt(c,a,n){return new Promise(i=>{e.clear();let s=u=>{i(u),this.active=void 0,this.clear()};this.active=()=>s("");let l=(0,W2.createRef)();e.renderContent(W2.default.createElement("div",null,W2.default.createElement("h5",null,n||`${location.host} says`),W2.default.createElement(Mi,null,c),W2.default.createElement(iN,{ref:l,type:"text"}),W2.default.createElement(Ci,null,W2.default.createElement(k8,{onClick:()=>s(l.current&&l.current.value)},"OK"),W2.default.createElement(k8,{onClick:()=>s(null)},"Cancel")))),l.current&&(l.current.focus(),l.current.value=a||"",l.current.addEventListener("keyup",u=>{u.key.toLowerCase()==="enter"&&l.current&&s(l.current.value)}))})}static custom(c,a){return new Promise(n=>{e.clear();let i=()=>{this.active=void 0,n(),this.clear()};this.active=()=>i(),e.renderContent(W2.default.createElement("div",null,c,W2.default.createElement(Ci,null,a?a.map((s,l)=>W2.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 a=e.createBase(c);this.root=(0,tv.createRoot)(e.ref),this.root.render(a);let n=e.ref.style;n.pointerEvents="all",n.touchAction="auto",n.backgroundColor="rgba(0, 0, 0, 0.5)"}static createBase(c){return W2.default.createElement(tN,null,c)}static get ref(){if(e._ref)return e._ref;let c=document.createElement("div");document.body.appendChild(c),e._ref=c;let a=c.style;return a.position="fixed",a.zIndex=`${Number.MAX_SAFE_INTEGER}`,a.width="100%",a.height="100%",a.pointerEvents="none",a.touchAction="none",a.backgroundColor="rgba(0, 0, 0, 0)",a.transition="background-color 1s",a.overflowY="auto",a.overflowX="hidden",c}};var ov=T2(sv());var za=["muraljson","json"];var sN=25,lv=d2.div` +`,x1=class e{static _ref;static active;static root;static alert(c,a){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,a||`${location.host} says`),G2.default.createElement(Mi,null,c),G2.default.createElement(k8,{onClick:()=>i()},"OK")))})}static async confirm(c,a){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,a||`${location.host} says`),G2.default.createElement(Mi,null,c),G2.default.createElement(Ci,null,G2.default.createElement(k8,{onClick:()=>i(!0)},"OK"),G2.default.createElement(k8,{onClick:()=>i(!1)},"Cancel"))))})}static async prompt(c,a,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(Mi,null,c),G2.default.createElement(mN,{ref:l,type:"text"}),G2.default.createElement(Ci,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=a||"",l.current.addEventListener("keyup",u=>{u.key.toLowerCase()==="enter"&&l.current&&s(l.current.value)}))})}static custom(c,a){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(Ci,null,a?a.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 a=e.createBase(c);this.root=(0,lv.createRoot)(e.ref),this.root.render(a);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(pN,null,c)}static get ref(){if(e._ref)return e._ref;let c=document.createElement("div");document.body.appendChild(c),e._ref=c;let a=c.style;return a.position="fixed",a.zIndex=`${Number.MAX_SAFE_INTEGER}`,a.width="100%",a.height="100%",a.pointerEvents="none",a.touchAction="none",a.backgroundColor="rgba(0, 0, 0, 0)",a.transition="background-color 1s",a.overflowY="auto",a.overflowX="hidden",c}};var pv=b2(uv());var za=["muraljson","json"];var hN=25,mv=d2.div` width: 100%; //max-width: fit-content; display: flex; flex-direction: row; flex-wrap: wrap; -`,oN=d2.div` +`,vN=d2.div` display: flex; flex-direction: column; flex-wrap: wrap; @@ -912,18 +912,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 2px; text-align: center; align-items: center; -`,fv=["FloydSteinberg","FalseFloydSteinberg","Stucki","Atkinson","Jarvis","Burkes","Sierra","TwoSierra","SierraLite"],lN=["Flat",...fv];async function uv(e,c,a){let n=await HN();if(n){if(n.type==="mural")return n.data;{let i=n.data,s=await uN(i,a),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-_0(s)/2)},cb:(h,z,V,x)=>{x?u({name:h,pixels:s,x:z,y:V}):p(new Error("Canceled by user"))}})});return i7(l),l}}}function fN(e){return new Promise(c=>{c3.custom(b2.default.createElement("div",null,b2.default.createElement("h4",null,"Dither results"),b2.default.createElement("div",null,"Pick a result that fits best in your situation"),b2.default.createElement(lv,null,e.map((a,n)=>b2.default.createElement("div",{key:n},b2.default.createElement(oN,{style:{flexDirection:"column"},onClick:()=>{c3.close(),c(a)}},mv(a.type),b2.default.createElement(Z0,null,b2.default.createElement(J0,{canvas:a.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>c(null))})}async function uN(e,c){let a=await pN(e),n=await mN(e,a,c),i;if(Array.isArray(n)?i=await fN(n):i=n,!i)throw new Error("User did not pick anything");let s=J8(i.canvas);return vv(s,c),s7(s,c.palette)}async function pN(e){let c=e.width,a=e.height,n="show-all",i=!1,s=!1;if(await new Promise((l,u)=>{c3.custom(b2.default.createElement("div",null,b2.default.createElement("h4",null,"Image import"),b2.default.createElement("div",null,b2.default.createElement("small",null,e.alt)),b2.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)=>{c3.custom(b2.default.createElement("div",null,b2.default.createElement("h4",null,"Image import"),b2.default.createElement("div",null,b2.default.createElement("small",null,e.alt)),b2.default.createElement("div",null,b2.default.createElement("strong",null,"Original size: ",e.width,"x",e.height)),b2.default.createElement(J6,{type:"number",min:1,onChange:p=>{P0(p,h=>{c=h})}}),"x",b2.default.createElement(J6,{type:"number",min:1,onChange:p=>{P0(p,h=>{a=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)=>{c3.custom(b2.default.createElement("div",null,b2.default.createElement("h4",null,"Dither Settings"),b2.default.createElement("div",null,"Pickup dither algorithm"),b2.default.createElement(lv,null,lN.map((p,h)=>b2.default.createElement(K1,{key:h,onClick:()=>{n=p,c3.close(),l()}},mv(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:a,width:c,noShrinking:i,quantizerSetting:n}}async function mN(e,c,a){c.noShrinking||(e=await Jr(e,c.width,c.height));let n=en(e);return c.quantizerSetting==="show-all"?vN(n,a):Ha(n,c.quantizerSetting,a)}function pv(e,c){let a=new ov.default(hN(c));return a.sample(e),a}function hN(e){return{palette:e.palette.map(c=>[c.r,c.g,c.b]),minHueCols:0,dithSerp:!1}}function vN(e,c){let a=[Ha(e,"Flat",c)],n=pv(e,c);for(let i of fv){let s=hv(e,n,i),l=Ha(s,"Flat",c);l.type=i,a.push(l)}return a}function Ha(e,c,a){if(c==="Flat"){let n=J8(e);vv(n,a);let i=zN(n),s=s7(n,a.palette);return{type:"Flat",canvas:i,indices:s}}else{let n=pv(e,a),i=hv(e,n,c),s=Ha(i,"Flat",a);return s.type=c,s}}function mv(e){let c=e.split(""),a="";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 vv(e,c){for(let a=0;a{e.setOverlayModify({pixels:s,muralObj:{name:i.alt,x:Math.floor(c.ux-P0(s)/2),y:Math.floor(c.uy-_0(s)/2)},cb:(h,z,M,L)=>{L?u({name:h,pixels:s,x:z,y:M}):p(new Error("Canceled by user"))}})});return i7(l),l}}}function zN(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(mv,null,e.map((a,n)=>A2.default.createElement("div",{key:n},A2.default.createElement(vN,{style:{flexDirection:"column"},onClick:()=>{x1.close(),c(a)}},zv(a.type),A2.default.createElement(J0,null,A2.default.createElement(e8,{canvas:a.canvas}))))))),[{content:"Cancel",click:()=>{}}]).finally(()=>c(null))})}async function HN(e,c){let a=await gN(e),n=await VN(e,a,c),i;if(Array.isArray(n)?i=await zN(n):i=n,!i)throw new Error("User did not pick anything");let s=e5(i.canvas);return gv(s,c),s7(s,c.palette)}async function gN(e){let c=e.width,a=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(e0,{type:"number",min:1,onChange:p=>{T0(p,h=>{c=h})}}),"x",A2.default.createElement(e0,{type:"number",min:1,onChange:p=>{T0(p,h=>{a=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(mv,null,dN.map((p,h)=>A2.default.createElement(U1,{key:h,onClick:()=>{n=p,x1.close(),l()}},zv(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:a,width:c,noShrinking:i,quantizerSetting:n}}async function VN(e,c,a){c.noShrinking||(e=await Jr(e,c.width,c.height));let n=en(e);return c.quantizerSetting==="show-all"?CN(n,a):Ha(n,c.quantizerSetting,a)}function dv(e,c){let a=new pv.default(MN(c));return a.sample(e),a}function MN(e){return{palette:e.palette.map(c=>[c.r,c.g,c.b]),minHueCols:0,dithSerp:!1}}function CN(e,c){let a=[Ha(e,"Flat",c)],n=dv(e,c);for(let i of hv){let s=Hv(e,n,i),l=Ha(s,"Flat",c);l.type=i,a.push(l)}return a}function Ha(e,c,a){if(c==="Flat"){let n=e5(e);gv(n,a);let i=xN(n),s=s7(n,a.palette);return{type:"Flat",canvas:i,indices:s}}else{let n=dv(e,a),i=Hv(e,n,c),s=Ha(i,"Flat",a);return s.type=c,s}}function zv(e){let c=e.split(""),a="";for(let n=0;nhN&&(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 gv(e,c){for(let a=0;a{let c=this.props.mural.ref.width,a=this.props.mural.ref.height,n=c,i=a;c>a?c>this.MAX_SIZE&&(i=this.MAX_SIZE*(a/c),n=this.MAX_SIZE):a>this.MAX_SIZE&&(n=this.MAX_SIZE*(c/a),i=this.MAX_SIZE),this.setState({height:i,width:n})};renderInfoLine(c,a){return T3.default.createElement(MN,null,T3.default.createElement(VN,null,c,":"),T3.default.createElement("span",null," ",a))}btn(c,a,n,i){return T3.default.createElement(K1,{style:{borderColor:i?X7:""},onClick:()=>n()},c," ",T3.default.createElement(f3,{icon:a})," ")}get s(){return this.props.store}onLoad=c=>{let a=c.target;"tagName"in a&&(["button","svg","path"].includes(a.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:(a,n,i,s)=>{s&&(c.name=a,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},a=new Blob([JSON.stringify(c)],{type:"application/json;charset=utf-8"});(0,zv.default)(a,`${c.name}.${za[0]}`)};onDelete=async()=>{await c3.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=W6(this.props.mural),a=U6(this.props.mural),n=this.props.mural.x+Math.round(c/2),i=this.props.mural.y+Math.round(a/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 T3.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},T3.default.createElement(Z6,null,T3.default.createElement(J0,{canvas:this.props.mural.ref,height:this.state.height,width:this.state.width}),T3.default.createElement(gN,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.mural.name),this.renderInfoLine("PixelCount",rl(this.props.mural.pixelCount)),this.renderInfoLine("x",this.props.mural.x.toString()),this.renderInfoLine("y",this.props.mural.y.toString()),this.renderInfoLine("size",`${W6(this.props.mural)}x${U6(this.props.mural)}`))),T3.default.createElement(Z6,null,this.btn("Preview",Hl,this.onPreview,this.props.store.hasOverlay(this.props.mural)),this.btn("Modify",dl,this.onModify),this.btn("Export",Ll,this.onExport),this.btn("Delete",Vl,this.onDelete),this.btn("Goto",gl,this.onGoto)))}};var LN=d2.div` +`,ga=class extends R3.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()}updateSize=()=>{let c=this.props.mural.ref.width,a=this.props.mural.ref.height,n=c,i=a;c>a?c>this.MAX_SIZE&&(i=this.MAX_SIZE*(a/c),n=this.MAX_SIZE):a>this.MAX_SIZE&&(n=this.MAX_SIZE*(c/a),i=this.MAX_SIZE),this.setState({height:i,width:n})};renderInfoLine(c,a){return R3.default.createElement(NN,null,R3.default.createElement(SN,null,c,":"),R3.default.createElement("span",null," ",a))}btn(c,a,n,i){return R3.default.createElement(U1,{style:{borderColor:i?X7:""},onClick:()=>n()},c," ",R3.default.createElement(Z1,{icon:a})," ")}get s(){return this.props.store}onLoad=c=>{let a=c.target;"tagName"in a&&(["button","svg","path"].includes(a.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:(a,n,i,s)=>{s&&(c.name=a,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},a=new Blob([JSON.stringify(c)],{type:"application/json;charset=utf-8"});(0,Vv.default)(a,`${c.name}.${za[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=W6(this.props.mural),a=U6(this.props.mural),n=this.props.mural.x+Math.round(c/2),i=this.props.mural.y+Math.round(a/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 R3.default.createElement(J0,{onClick:this.onLoad,style:{border:this.props.selected?"3px solid black":"3px dotted black",cursor:"pointer"},onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},R3.default.createElement(J6,null,R3.default.createElement(e8,{canvas:this.props.mural.ref,height:this.state.height,width:this.state.width}),R3.default.createElement(wN,{style:{flex:"1"}},this.renderInfoLine("Name",this.props.mural.name),this.renderInfoLine("PixelCount",tl(this.props.mural.pixelCount)),this.renderInfoLine("x",this.props.mural.x.toString()),this.renderInfoLine("y",this.props.mural.y.toString()),this.renderInfoLine("size",`${W6(this.props.mural)}x${U6(this.props.mural)}`))),R3.default.createElement(J6,null,this.btn("Preview",Ml,this.onPreview,this.props.store.hasOverlay(this.props.mural)),this.btn("Modify",gl,this.onModify),this.btn("Export",Sl,this.onExport),this.btn("Delete",Ll,this.onDelete),this.btn("Goto",Cl,this.onGoto)))}};var kN=d2.div` overflow: auto; max-height: 250pt; min-width: 200pt; @@ -945,11 +945,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 12px; border: 2px solid transparent; } -`,Ma=class extends Va.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 Va.default.createElement(LN,null," ",this.state.murals.map((c,a)=>Va.default.createElement(ga,{key:a,mural:c,cords:this.props.cords,store:this.props.store,selected:c===this.state.selected?.m})))}};var xN=d2.div` +`,Ma=class extends Va.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 Va.default.createElement(kN,null," ",this.state.murals.map((c,a)=>Va.default.createElement(ga,{key:a,mural:c,cords:this.props.cords,store:this.props.store,selected:c===this.state.selected?.m})))}};var Mv=b2(yi());var Cv=b2(v1());function AN(){return new Promise(e=>{let c=document.createElement("div"),a=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=a.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(),I=(g.clientX-C)/D*H.offsetWidth,J=(g.clientY-b)/U*H.offsetHeight;l(g.clientX,g.clientY,I,J)},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,I=D-b;return{x:Math.floor(H),y:Math.floor(b),width:Math.ceil(U),height:Math.ceil(I)}},z=(W,g)=>{if(!s)return;document.body.contains(a)||document.body.appendChild(a);let H=h(W,g),C=a.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",_),window.removeEventListener("mousedown",u),window.removeEventListener("touchstart",p),window.removeEventListener("mouseup",M),window.removeEventListener("touchmove",L),document.body.removeChild(c),document.body.contains(a)&&document.body.removeChild(a),e(H)}},_=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",_),window.addEventListener("mousedown",u),window.addEventListener("touchstart",p),window.addEventListener("mousemove",M),window.addEventListener("touchmove",L)})}async function Lv(e){let c=await AN(),a=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=G6();s.width=c.width/Math.pow(2,a),s.height=c.height/Math.pow(2,a);let l=s.getContext("2d"),u=Math.floor(n.x%R2),p=Math.floor(n.y%R2),h=[];for(let z=0;z{il(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(_)});h.push(L)}try{await Promise.all(h);let z=s.toDataURL();x1.custom(Cv.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,Mv.default)(M,`${L}:${S}:${new Date().toLocaleDateString()}.png`)})}},{content:"Cancel",click:()=>{}}])}catch{x1.alert("Something went wrong while trying to capture screenshot")}}var EN=d2.div` -`,yN=d2.div` +`,_N=d2.div` margin: 2px 4px; -`,wN=d2.input` +`,PN=d2.input` &[type="range"] { -webkit-appearance: none; appearance: none; @@ -996,7 +996,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 12px; } -`,Ca=class extends Z3.default.Component{import=async()=>{try{let c=await uv(this.props.store,this.props.cords,this.props.palette);c&&this.props.store.add(c)}catch(c){console.error(c),c3.alert(c.name)}};inputElement=c=>{let a=parseInt(c.target.value);this.props.onOpacityChange(a)};render(){return Z3.default.createElement(xN,null,Z3.default.createElement(Z6,null,Z3.default.createElement(K1,{onClick:this.import},Z3.default.createElement(f3,{icon:xl})," Import"),Z3.default.createElement(wN,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),Z3.default.createElement(yN,null,this.props.opacity,"%"),Z3.default.createElement(K1,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},Z3.default.createElement(f3,{icon:this.props.collapsed?Cl:zl}))),this.props.collapsed?null:Z3.default.createElement(Ma,{store:this.props.store,cords:this.props.cords}))}};var w6=T2(g1());var me=T2(Q8()),SN=d2.div` +`,Ca=class extends H3.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}),console.log(this.props.cords.uScale)};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 a=parseInt(c.target.value);this.props.onOpacityChange(a)};screenshot=async()=>{this.props.cords.uScale<0,this.setState({takingCanvasShot:!0}),await Lv(this.props.cords),this.setState({takingCanvasShot:!1})};render(){return H3.default.createElement(EN,null,H3.default.createElement(J6,null,H3.default.createElement(U1,{onClick:this.screenshot,disabled:this.state.takingCanvasShot||!this.state.canvasShotAvailable,title:"screenshot"},H3.default.createElement(Z1,{icon:xl})),H3.default.createElement(U1,{onClick:this.import,title:"Import"},H3.default.createElement(Z1,{icon:Nl})),H3.default.createElement(PN,{type:"range",min:0,max:100,value:this.props.opacity,onInput:this.inputElement}),H3.default.createElement(_N,null,this.props.opacity,"%"),H3.default.createElement(U1,{onClick:()=>this.props.onCollapsedChanged(!this.props.collapsed)},H3.default.createElement(Z1,{icon:this.props.collapsed?wl:Vl}))),this.props.collapsed?null:H3.default.createElement(Ma,{store:this.props.store,cords:this.props.cords}))}};var w6=b2(v1());var me=b2(Z8()),TN=d2.div` position: fixed; padding-top: 20px; padding: 5px; @@ -1005,16 +1005,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; -`,NN=d2.div` +`,RN=d2.div` border: 1px black dotted; cursor: grab; user-select: none; border-radius: 12px; padding: 4px; -`,v0=class extends w6.default.Component{ref=(0,w6.createRef)();dragRef=(0,w6.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 a=0;a{this.moving={x:c,y:a,xOff:n,yOff:i}};onMouseMove=c=>{if(!this.moving||!(c instanceof MouseEvent)||c.ctrlKey||c.altKey||c.metaKey)return;let{clientX:a,clientY:n}=c;this.handleMoveLogic(a,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let c=this.ref.current?.getBoundingClientRect();if(c){let a=this.state.x,n=this.state.y;c.left<0&&(a=0),c.right>window.innerWidth&&(a=window.innerWidth-c.width),c.top<0&&(n=0),c.bottom>window.innerHeight&&(n=window.innerHeight-c.height),(this.state.x!==a||this.state.y!==n)&&this.setState({x:a,y:n})}};savePoint=(0,me.debounce)(c=>{this.props.storage.setItem(this.storageKey,c)},100);handleMoveLogic(c,a){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let i=c-this.moving.xOff,s=a-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 a=c.nativeEvent.touches[c.nativeEvent.touches.length-1],n=c.target,{x:i,y:s,width:l,height:u}=n.getBoundingClientRect(),p=(a.clientX-i)/l*n.offsetWidth,h=(a.clientY-s)/u*n.offsetHeight;this.setMoving(a.clientX,a.clientY,p,h),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return w6.default.createElement(SN,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},w6.default.createElement(NN,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",w6.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var _1=T2(g1());var gv=T2(Q8()),bN=d2.div` +`,d0=class extends w6.default.Component{ref=(0,w6.createRef)();dragRef=(0,w6.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 a=0;a{this.moving={x:c,y:a,xOff:n,yOff:i}};onMouseMove=c=>{if(!this.moving||!(c instanceof MouseEvent)||c.ctrlKey||c.altKey||c.metaKey)return;let{clientX:a,clientY:n}=c;this.handleMoveLogic(a,n)};onMouseUp=()=>{this.moving=void 0,this.setState({moving:!1})};fixBounds=()=>{let c=this.ref.current?.getBoundingClientRect();if(c){let a=this.state.x,n=this.state.y;c.left<0&&(a=0),c.right>window.innerWidth&&(a=window.innerWidth-c.width),c.top<0&&(n=0),c.bottom>window.innerHeight&&(n=window.innerHeight-c.height),(this.state.x!==a||this.state.y!==n)&&this.setState({x:a,y:n})}};savePoint=(0,me.debounce)(c=>{this.props.storage.setItem(this.storageKey,c)},100);handleMoveLogic(c,a){let n=this.ref.current?.getBoundingClientRect();if(n&&this.moving){let i=c-this.moving.xOff,s=a-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 a=c.nativeEvent.touches[c.nativeEvent.touches.length-1],n=c.target,{x:i,y:s,width:l,height:u}=n.getBoundingClientRect(),p=(a.clientX-i)/l*n.offsetWidth,h=(a.clientY-s)/u*n.offsetHeight;this.setMoving(a.clientX,a.clientY,p,h),this.setState({moving:!0})};get storageKey(){return`__storage__${this.props.storageKey}`}render(){return w6.default.createElement(TN,{ref:this.ref,style:{left:`${this.state.x}px`,top:`${this.state.y}px`}},w6.default.createElement(RN,{ref:this.dragRef,style:{cursor:this.state.moving?"grabbing":""},onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart}," ",w6.default.createElement("h2",null,this.props.title)," "),this.props.children)}};var P1=b2(v1());var wv=b2(Z8()),DN=d2.div` display: flex; flex-direction: row; -`,Hv=d2.div` +`,yv=d2.div` width: 25px; height: 25px; margin: 2px; @@ -1022,18 +1022,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 12px; text-align: center; font-weight: bolder; -`,AN=d2.span` +`,FN=d2.span` width: 25px; text-align: center; margin: auto; -`,_N=d2.canvas` +`,ON=d2.canvas` border-radius: 12px; border: 2px solid black; -`,La=class extends _1.default.Component{ref=_1.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,a){c.selected.m.ref!==this.props.selected.m.ref?(this.cache.clear(),this.draw()):a.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,a)=>{let n=this.props.store;if(n.selected&&n.selected.m.xc&&n.selected.h+n.selected.m.y>a){let i=c-n.selected.m.x,s=a-n.selected.m.y,l=n.selected.m.pixels[s][i];this.lastColor!==l&&(this.lastColor=l,this.click(l))}};drawGrid(c,a,n,i){for(let s=0;s{let c=this.props.selected.m,a=this.props.cords.x-c.x,n=this.props.cords.y-c.y;if(c.pixels[n]!==void 0&&c.pixels[n][a]!==void 0){let i=c.pixels[n][a];this.setState({color:i}),this.draw();return}this.setState({color:-1}),this.draw()};getCachedImage(c){let a=this.cache.get(c);if(a)return a;let n=this.props.selected,i=e5();return cn(i,n.m.pixels,this.props.palette.hex,c),this.cache.set(c,i),i}draw=()=>{let c=this.ref.current,a=c.getContext("2d"),n=c.width=200,i=c.height=200,s=n/2,l=i/2;a.clearRect(0,0,n,i);let u=this.state.size;this.drawGrid(a,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(a.drawImage(V,h,z,V.width,V.height),u!=1){a.fillStyle=this.highlighColor;let x=i/2,S=i/2;a.fillRect(0,0,n,x-p),a.fillRect(0,x+p,n,x-p),a.fillRect(0,x-p,S-p,p*2),a.fillRect(S+p,x-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,gv.clamp)(c,1,32)}renderColor(){return this.state.color!==-1?_1.default.createElement(Hv,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):_1.default.createElement(Hv,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return _1.default.createElement("div",null,_1.default.createElement(bN,null,_1.default.createElement(K1,{onClick:this.up},_1.default.createElement(f3,{icon:yl})),_1.default.createElement(AN,null,this.state.size),_1.default.createElement(K1,{onClick:this.down},_1.default.createElement(f3,{icon:wl})),_1.default.createElement("span",{style:{flex:1}},_1.default.createElement(K1,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?X7:""},onClick:()=>this.toggleColorAssistant()},"Assist",_1.default.createElement(f3,{icon:Ml})," ")),this.renderColor()),_1.default.createElement(_N,{ref:this.ref}))}};var S6=T2(g1());var E1=T2(g1());var xa=class extends E1.default.Component{render(){return E1.default.createElement(Z0,null,E1.default.createElement("div",null,E1.default.createElement("span",null,"Name")," ",E1.default.createElement(J6,{type:"text",value:this.props.name,onChange:c=>this.props.onName(c.target.value)})),E1.default.createElement("div",null,E1.default.createElement("span",null,"X")," ",E1.default.createElement(J6,{type:"number",value:this.props.x,onChange:c=>P0(c,this.props.onX)})),E1.default.createElement("div",null,E1.default.createElement("span",null,"Y")," ",E1.default.createElement(J6,{type:"number",value:this.props.y,onChange:c=>P0(c,this.props.onY)})),E1.default.createElement(Z6,null,E1.default.createElement(K1,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),E1.default.createElement(K1,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),E1.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var EN=d2.canvas` +`,La=class extends P1.default.Component{ref=P1.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,a){c.selected.m.ref!==this.props.selected.m.ref?(this.cache.clear(),this.draw()):a.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,a)=>{let n=this.props.store;if(n.selected&&n.selected.m.xc&&n.selected.h+n.selected.m.y>a){let i=c-n.selected.m.x,s=a-n.selected.m.y,l=n.selected.m.pixels[s][i];this.lastColor!==l&&(this.lastColor=l,this.click(l))}};drawGrid(c,a,n,i){for(let s=0;s{let c=this.props.selected.m,a=this.props.cords.x-c.x,n=this.props.cords.y-c.y;if(c.pixels[n]!==void 0&&c.pixels[n][a]!==void 0){let i=c.pixels[n][a];this.setState({color:i}),this.draw();return}this.setState({color:-1}),this.draw()};getCachedImage(c){let a=this.cache.get(c);if(a)return a;let n=this.props.selected,i=G6();return cn(i,n.m.pixels,this.props.palette.hex,c),this.cache.set(c,i),i}draw=()=>{let c=this.ref.current,a=c.getContext("2d"),n=c.width=200,i=c.height=200,s=n/2,l=i/2;a.clearRect(0,0,n,i);let u=this.state.size;this.drawGrid(a,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(a.drawImage(M,h,z,M.width,M.height),u!=1){a.fillStyle=this.highlighColor;let L=i/2,S=i/2;a.fillRect(0,0,n,L-p),a.fillRect(0,L+p,n,L-p),a.fillRect(0,L-p,S-p,p*2),a.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,wv.clamp)(c,1,32)}renderColor(){return this.state.color!==-1?P1.default.createElement(yv,{style:{backgroundColor:this.props.palette.hex[this.state.color]}}):P1.default.createElement(yv,null," / ")}toggleColorAssistant=()=>{this.setState({colorAssistant:!this.state.colorAssistant})};render(){return P1.default.createElement("div",null,P1.default.createElement(DN,null,P1.default.createElement(U1,{onClick:this.up},P1.default.createElement(Z1,{icon:bl})),P1.default.createElement(FN,null,this.state.size),P1.default.createElement(U1,{onClick:this.down},P1.default.createElement(Z1,{icon:kl})),P1.default.createElement("span",{style:{flex:1}},P1.default.createElement(U1,{title:"Color assistant",style:{borderColor:this.state.colorAssistant?X7:""},onClick:()=>this.toggleColorAssistant()},"Assist",P1.default.createElement(Z1,{icon:yl})," ")),this.renderColor()),P1.default.createElement(ON,{ref:this.ref}))}};var S6=b2(v1());var T1=b2(v1());var xa=class extends T1.default.Component{render(){return T1.default.createElement(J0,null,T1.default.createElement("div",null,T1.default.createElement("span",null,"Name")," ",T1.default.createElement(e0,{type:"text",value:this.props.name,onChange:c=>this.props.onName(c.target.value)})),T1.default.createElement("div",null,T1.default.createElement("span",null,"X")," ",T1.default.createElement(e0,{type:"number",value:this.props.x,onChange:c=>T0(c,this.props.onX)})),T1.default.createElement("div",null,T1.default.createElement("span",null,"Y")," ",T1.default.createElement(e0,{type:"number",value:this.props.y,onChange:c=>T0(c,this.props.onY)})),T1.default.createElement(J6,null,T1.default.createElement(U1,{onClick:()=>this.props.onConfirm(),style:{flex:1}},"Confirm"),T1.default.createElement(U1,{onClick:()=>this.props.onCancel(),style:{flex:1}},"Cancel")),T1.default.createElement("small",null,"Overlay does not work on scale -1. To fix that zoom in."))}};var IN=d2.canvas` position: fixed; z-index: 1; pointer-events: none; -`,b8=class extends S6.default.Component{ref=S6.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,a){c.mural!==this.props.mural&&(this._refImage=void 0,this.setState({x:0,y:0})),(a.x!==this.state.x||a.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,a=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)*a,u=_0(this.pixels)*a;(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 S6.default.createElement(v0,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},S6.default.createElement(xa,{name:this.state.name,x:this.state.x,y:this.state.y,onX:a=>this.setState({x:a}),onY:a=>this.setState({y:a}),onName:a=>this.setState({name:a}),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 S6.default.createElement(S6.default.Fragment,null,S6.default.createElement(EN,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var Vv=T2(Q8()),ya=class extends J3.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,Vv.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?J3.default.createElement(v0,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},J3.default.createElement(La,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}render(){return J3.default.createElement(J3.default.Fragment,null,J3.default.createElement(v0,{title:"Overlay",storage:this.props.storage,storageKey:"main"},J3.default.createElement(Ca,{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,a)=>J3.default.createElement(b8,{key:a,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]?J3.default.createElement(b8,{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?J3.default.createElement(b8,{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,a,n,i)=>{this.state.overlayModify.cb(c,a,n,i)}}):null)}};var Cv=T2(Vi());function Lv(e,c,a,n){return PN(Mv.default.createElement(ya,{cords:a,store:e,storage:c,palette:n}))}function PN(e){let c=document.createElement("div");return(0,Cv.createRoot)(c).render(e),document.body.appendChild(c),()=>{c.parentElement?.removeChild(c)}}var wa=class{constructor(c){this.chrome=c}getItem(c){if(this.chrome)return new Promise(a=>{chrome.storage.local.get(c,n=>{n&&n[c]?a(JSON.parse(n[c])):a(null)})});{let a=localStorage.getItem(c);return Promise.resolve(a&&JSON.parse(a))}}async setItem(c,a){return this.chrome?new Promise(n=>{chrome.storage.local.set({[c]:JSON.stringify(a)},n)}):(localStorage.setItem(c,JSON.stringify(a)),Promise.resolve())}deleteItem(c){return this.chrome?new Promise(a=>{chrome.storage.local.remove(c,a)}):(localStorage.removeItem(c),Promise.resolve())}};async function xv(){let e=new l7;for(;!e.init();)await n7();let c=new wa(!1),a=new m7(c,e);await a.load();let n=new o7;await n.init(),Lv(a,c,n,e),console.log("%cOverlay by 0xa663 loaded","color: red; font-size: 20px; font-weight: bold; text-shadow: 2px 2px 4px #000000;")}document.readyState==="complete"?xv():window.addEventListener("load",xv);})(); +`,A8=class extends S6.default.Component{ref=S6.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,a){c.mural!==this.props.mural&&(this._refImage=void 0,this.setState({x:0,y:0})),(a.x!==this.state.x||a.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,a=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=P0(this.pixels)*a,u=_0(this.pixels)*a;(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 S6.default.createElement(d0,{storage:this.props.storage,storageKey:"overlay-set",title:"Position editor"},S6.default.createElement(xa,{name:this.state.name,x:this.state.x,y:this.state.y,onX:a=>this.setState({x:a}),onY:a=>this.setState({y:a}),onName:a=>this.setState({name:a}),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 S6.default.createElement(S6.default.Fragment,null,S6.default.createElement(IN,{ref:this.ref,style:this.style}),this.renderModifyWindow())}};var Sv=b2(Z8()),ya=class extends J3.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,Sv.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?J3.default.createElement(d0,{title:"Minimap",storage:this.props.storage,storageKey:"minimap"},J3.default.createElement(La,{cords:this.props.cords,palette:this.props.palette,selected:this.state.selected,storage:this.props.storage,store:this.props.store})):null}render(){return J3.default.createElement(J3.default.Fragment,null,J3.default.createElement(d0,{title:"Overlay",storage:this.props.storage,storageKey:"main"},J3.default.createElement(Ca,{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,a)=>J3.default.createElement(A8,{key:a,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]?J3.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?J3.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,a,n,i)=>{this.state.overlayModify.cb(c,a,n,i)}}):null)}};var bv=b2(Vi());function kv(e,c,a,n){return BN(Nv.default.createElement(ya,{cords:a,store:e,storage:c,palette:n}))}function BN(e){let c=document.createElement("div");return(0,bv.createRoot)(c).render(e),document.body.appendChild(c),()=>{c.parentElement?.removeChild(c)}}var wa=class{constructor(c){this.chrome=c}getItem(c){if(this.chrome)return new Promise(a=>{chrome.storage.local.get(c,n=>{n&&n[c]?a(JSON.parse(n[c])):a(null)})});{let a=localStorage.getItem(c);return Promise.resolve(a&&JSON.parse(a))}}async setItem(c,a){return this.chrome?new Promise(n=>{chrome.storage.local.set({[c]:JSON.stringify(a)},n)}):(localStorage.setItem(c,JSON.stringify(a)),Promise.resolve())}deleteItem(c){return this.chrome?new Promise(a=>{chrome.storage.local.remove(c,a)}):(localStorage.removeItem(c),Promise.resolve())}};async function Av(){let e=new l7;for(;!e.init();)await n7();let c=new wa(!1),a=new m7(c,e);await a.load();let n=new o7;await n.init(),kv(a,c,n,e),console.log("%cOverlay by 0xa663 loaded","color: red; font-size: 20px; font-weight: bold; text-shadow: 2px 2px 4px #000000;")}document.readyState==="complete"?Av():window.addEventListener("load",Av);})(); /*! Bundled license information: lodash/lodash.js: diff --git a/package-lock.json b/package-lock.json index 6bf12bf..1ef4b1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pixelcanvas-overlay", - "version": "1.0.0", + "version": "1.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pixelcanvas-overlay", - "version": "1.0.0", + "version": "1.0.3", "license": "MIT", "dependencies": { "@fortawesome/fontawesome-free": "^6.5.1", diff --git a/package.json b/package.json index 6fe8d78..5e1ddc1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pixelcanvas-overlay", - "version": "1.0.2", + "version": "1.0.3", "description": "Pixel canvas overlay", "main": "index.js", "scripts": { @@ -9,7 +9,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], - "author": "0xa663", + "authors": ["0xa663", "Terncode"], "license": "MIT", "dependencies": { "@fortawesome/fontawesome-free": "^6.5.1", diff --git a/src/UI/components/menu.tsx b/src/UI/components/menu.tsx index d3b74b7..fa7ed39 100644 --- a/src/UI/components/menu.tsx +++ b/src/UI/components/menu.tsx @@ -1,15 +1,16 @@ -import { faCaretDown, faCaretUp, faUpload } from "@fortawesome/free-solid-svg-icons"; +import { faCamera, faCaretDown, faCaretUp, faUpload } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React from "react"; import styled from "styled-components"; import { Btn, Flex } from "../styles"; import { Store } from "../../store"; import { MuralList } from "./muralList"; -import { Coordinates } from "../../coordinates"; +import { Coordinates, CordType } from "../../coordinates"; import { Palette } from "../../palette"; import { importArtWork } from "../importMural"; import { Popup } from "./Popup"; import { Storage } from "../../storage"; +import { takeCanvasShot } from "../../canvashot"; const Container = styled.div` @@ -78,8 +79,31 @@ interface Props { onOpacityChange: (n: number) => void; onCollapsedChanged: (b: boolean) => void; } +interface State { + takingCanvasShot: boolean; + canvasShotAvailable: boolean; +} -export class Menu extends React.Component { +export class Menu extends React.Component { + + constructor(props: Props) { + super(props); + this.state = { + takingCanvasShot: false, + canvasShotAvailable: true, + } + } + + componentDidMount(): void { + this.props.cords.on(CordType.Url, this.checkIsScreenShotAvailable) + } + componentWillUnmount(): void { + this.props.cords.off(CordType.Url, this.checkIsScreenShotAvailable) + } + checkIsScreenShotAvailable = () => { + this.setState({canvasShotAvailable: this.props.cords.uScale >= 0}) + console.log(this.props.cords.uScale); + } import = async () => { try { @@ -97,11 +121,20 @@ export class Menu extends React.Component { const percentage = parseInt((event.target as HTMLInputElement).value); this.props.onOpacityChange(percentage); }; - + screenshot = async () => { + if (this.props.cords.uScale < 0) { + //Popup.alert("Cannot take screenshot at sc") + //return; + } + this.setState({takingCanvasShot: true}); + await takeCanvasShot(this.props.cords); + this.setState({takingCanvasShot: false}); + }; render() { return - Import + + {this.props.opacity}% this.props.onCollapsedChanged(!this.props.collapsed)}> diff --git a/src/canvashot.tsx b/src/canvashot.tsx new file mode 100644 index 0000000..bf4e2d5 --- /dev/null +++ b/src/canvashot.tsx @@ -0,0 +1,195 @@ +import saveAs from "file-saver"; +import { createCanvas, CHUNK_SIZE, fetchTile } from "./utils"; +import { Coordinates } from "./coordinates"; +import { Rect } from "./interfaces"; +import { Popup } from "./UI/components/Popup"; +import React from "react"; + +export function getSelectionArea() { + return new Promise(resolve => { + const curtain = document.createElement("div"); + const selectionSquare = document.createElement("div"); + const cs = curtain.style; + cs.position = "fixed"; + cs.zIndex = "100000"; + cs.left = cs.top = "0"; + cs.width = `${window.innerWidth}px`; + cs.height = `${window.innerHeight}px`; + document.body.appendChild(curtain); + cs.backgroundColor = "rgba(0, 0, 0, 0.50)"; + + const sss = selectionSquare.style; + sss.position = "fixed"; + sss.zIndex = "100001"; + sss.width = `5px`; + sss.height = `5px`; + sss.border = "2px solid white"; + + let moving: { x: number, y: number, xOff: number, yOff: number } | undefined = undefined; + + const setMoving = (clientX: number, clientY: number, offsetX: number, offsetY: number) => { + moving = { + x: clientX, + y: clientY, + xOff: offsetX, + yOff: offsetY, + }; + }; + + const onMouseDown = (event: MouseEvent) => { + setMoving(event.clientX, event.clientY, event.offsetX, event.offsetY); + }; + const onTouchStart = (event: TouchEvent) => { + const lastTouch = event.touches[event.touches.length - 1]; + const div = event.target as HTMLDivElement; + const { x, y, width, height} = div.getBoundingClientRect(); + const offsetX = (lastTouch.clientX - x) / width * div.offsetWidth; + const offsetY = (lastTouch.clientY - y) / height * div.offsetHeight; + setMoving(lastTouch.clientX, lastTouch.clientY, offsetX, offsetY); + }; + + const getRect = (x: number, y: number): Rect => { + if (!moving) + return {x, y, width:0, height: 0 }; + const minX = Math.min(x, moving.x); + const maxX = Math.max(x, moving.x); + const minY = Math.min(y, moving.y); + const maxY = Math.max(y, moving.y); + const width = maxX - minX; + const height = maxY - minY; + return { + x: Math.floor(minX), + y: Math.floor(minY), + width: Math.ceil(width), + height: Math.ceil(height) + }; + }; + + const move = (x: number, y: number) => { + if (!moving) return; + if (!document.body.contains(selectionSquare)) { + document.body.appendChild(selectionSquare); + } + const rect = getRect(x, y); + const s = selectionSquare.style; + s.width = `${rect.width}px`; + s.height = `${rect.height}px`; + s.left = `${rect.x}px`; + s.top = `${rect.y}px`; + }; + + const onMouseMove = (event: MouseEvent) => { + if (!moving) return; + if (!(event instanceof MouseEvent)) { + return; + } + const { clientX, clientY } = event; + move(clientX, clientY); + }; + + const onTouchMove = (event: TouchEvent) => { + if (!moving) return; + if (!(event instanceof TouchEvent) || !event.isTrusted){ + return; + } + const touch = event.touches[0]; + sss.borderWidth = "6px"; + if (touch) { + const { clientX, clientY } = touch; + move(clientX, clientY); + } + }; + const eventEnd = (x: number, y: number) => { + if (moving) { + const rect = getRect(x, y); + moving = undefined; + + window.removeEventListener("mousedown", onMouseUp); + window.removeEventListener("touchend", onTouchEnd); + window.removeEventListener("mousedown", onMouseDown); + window.removeEventListener("touchstart", onTouchStart); + window.removeEventListener("mouseup", onMouseMove); + window.removeEventListener("touchmove", onTouchMove); + document.body.removeChild(curtain); + if (document.body.contains(selectionSquare)) { + document.body.removeChild(selectionSquare); + } + resolve(rect); + } + }; + + + const onTouchEnd = (event: TouchEvent) => { + const touch = event.touches[0] || event.changedTouches[0]; + if (touch) { + const { clientX, clientY } = touch; + eventEnd(clientX, clientY); + } + }; + + const onMouseUp = (event: MouseEvent) => { + eventEnd(event.clientX, event.clientY); + }; + + window.addEventListener("mouseup", onMouseUp); + window.addEventListener("touchend", onTouchEnd); + window.addEventListener("mousedown", onMouseDown); + window.addEventListener("touchstart", onTouchStart); + window.addEventListener("mousemove", onMouseMove); + window.addEventListener("touchmove", onTouchMove); + + }); +} + +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 url = canvas.toDataURL(); + Popup.custom(, [{ + content: "Download", + click: () => { + canvas.toBlob(blob => { + const xCenter= Math.floor(cords.x + rect.width / 2); + const yCenter = Math.floor(cords.x + rect.height / 2); + if (blob) { + saveAs(blob, `${xCenter}:${yCenter}:${new Date().toLocaleDateString()}.png`); + } + }); + } + }, { + content: "Cancel", + click: () => {} + } + ]); + } catch(error) { + Popup.alert("Something went wrong while trying to capture screenshot"); + } +} \ No newline at end of file diff --git a/src/interfaces.ts b/src/interfaces.ts index 596c294..b42ddcc 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -30,4 +30,11 @@ export interface MuralEx extends Mural { export interface Point { x: number; y: number; +} + +export interface Rect { + x: number; + y: number; + width: number; + height: number; } \ No newline at end of file diff --git a/src/utils.ts b/src/utils.ts index c95a701..a69406e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -354,3 +354,22 @@ export function processNumberEvent(ev: React.ChangeEvent, cb: cb(parseInt(ev.target.value, 10)); } } + +export async function fetchTile(x: number, y: number) { + const url = `https://pixelcanvas.io/tile/${toChunkX(x)}/${toChunkX(y)}.png`; + const result = await fetch(url); + const blob = await result.blob(); + const src = URL.createObjectURL(blob); + const image = new Image(); + image.src = src; + return new Promise((resolve, reject) => { + image.addEventListener("load", () => { + URL.revokeObjectURL(src); + resolve(image); + }); + image.addEventListener("error", () => { + URL.revokeObjectURL(src); + reject(new Error("Unable to load image")); + }); + }); +} diff --git a/user-script.template.js b/user-script.template.js index 51293bc..37885fb 100644 --- a/user-script.template.js +++ b/user-script.template.js @@ -3,7 +3,7 @@ // @namespace http://tampermonkey.net/ // @version $VERSION$ // @description Scripts renders pixelated overlays over the tile map! -// @author 0xa663 +// @author 0xa663, Terncode // @match https://pixelcanvas.io/* // @icon https://www.google.com/s2/favicons?sz=64&domain=pixelcanvas.io // @grant none