(()=>{var M={354(M){M.exports=function(){"use strict";var M=function(N,D){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,N){M.__proto__=N}||function(M,N){for(var D in N)Object.prototype.hasOwnProperty.call(N,D)&&(M[D]=N[D])},M(N,D)};function N(N,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function __(){this.constructor=N}M(N,D),N.prototype=null===D?Object.create(D):(__.prototype=D.prototype,new __)}var D=function(){return D=Object.assign||function(M){for(var N,D=1,j=arguments.length;D0&&I[I.length-1])||6!==A[0]&&2!==A[0])){z=0;continue}if(3===A[0]&&(!I||A[1]>I[0]&&A[1]=55296&&I<=56319&&D>10),z%1024+56320)),(I+1===D||j.length>16384)&&(A+=String.fromCharCode.apply(String,j),j.length=0)}return A},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L="undefined"==typeof Uint8Array?[]:new Uint8Array(256),O=0;O<64;O++)L[y.charCodeAt(O)]=O;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),x=0;x<64;x++)c[i.charCodeAt(x)]=x;for(var E=function(M,N,D){return M.slice?M.slice(N,D):new Uint16Array(Array.prototype.slice.call(M,N,D))},Q=function(){function M(M,N,D,j,I,A){this.initialValue=M,this.errorValue=N,this.highStart=D,this.highValueIndex=j,this.index=I,this.data=A}return M.prototype.get=function(M){var N;if(M>=0){if(M<55296||M>56319&&M<=65535)return N=((N=this.index[M>>5])<<2)+(31&M),this.data[N];if(M<=65535)return N=((N=this.index[2048+(M-55296>>5)])<<2)+(31&M),this.data[N];if(M>11),N=this.index[N],N+=M>>5&63,N=((N=this.index[N])<<2)+(31&M),this.data[N];if(M<=1114111)return this.data[this.highValueIndex]}return this.errorValue},M}(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="undefined"==typeof Uint8Array?[]:new Uint8Array(256),k=0;k<64;k++)S[e.charCodeAt(k)]=k;var t=10,U=13,Y=15,C=17,a=18,w=19,n=20,o=21,l=22,s=24,d=25,r=26,f=27,h=28,p=30,b=32,m=33,Z=34,V=35,W=37,B=38,F=39,R=40,G=42,v=[9001,65288],J="ร—",P="รท",H=function(M){var N,D,j,I=function(M){var N,D,j,I,A,z=.75*M.length,g=M.length,T=0;"="===M[M.length-1]&&(z--,"="===M[M.length-2]&&z--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(z):new Array(z),y=Array.isArray(u)?u:new Uint8Array(u);for(N=0;N>4,y[T++]=(15&j)<<4|I>>2,y[T++]=(3&I)<<6|63&A;return u}(M),A=Array.isArray(I)?function(M){for(var N=M.length,D=[],j=0;j0;){var z=j[--A];if(Array.isArray(M)?-1!==M.indexOf(z):M===z)for(var g=D;g<=j.length;){var T;if((T=j[++g])===N)return!0;if(T!==t)break}if(z!==t)break}return!1},jM=function(M,N){for(var D=M;D>=0;){var j=N[D];if(j!==t)return j;D--}return 0},IM=function(M,N,D,j,I){if(0===D[j])return J;var A=j-1;if(Array.isArray(I)&&!0===I[A])return J;var z=A-1,g=A+1,T=N[A],u=z>=0?N[z]:0,y=N[g];if(2===T&&3===y)return J;if(-1!==K.indexOf(T))return"!";if(-1!==K.indexOf(y))return J;if(-1!==_.indexOf(y))return J;if(8===jM(A,N))return P;if(11===H.get(M[A]))return J;if((T===b||T===m)&&11===H.get(M[g]))return J;if(7===T||7===y)return J;if(9===T)return J;if(-1===[t,U,Y].indexOf(T)&&9===y)return J;if(-1!==[C,a,w,s,h].indexOf(y))return J;if(jM(A,N)===l)return J;if(DM(23,l,A,N))return J;if(DM([C,a],o,A,N))return J;if(DM(12,12,A,N))return J;if(T===t)return P;if(23===T||23===y)return J;if(16===y||16===T)return P;if(-1!==[U,Y,o].indexOf(y)||14===T)return J;if(36===u&&-1!==NM.indexOf(T))return J;if(T===h&&36===y)return J;if(y===n)return J;if(-1!==X.indexOf(y)&&T===d||-1!==X.indexOf(T)&&y===d)return J;if(T===f&&-1!==[W,b,m].indexOf(y)||-1!==[W,b,m].indexOf(T)&&y===r)return J;if(-1!==X.indexOf(T)&&-1!==q.indexOf(y)||-1!==q.indexOf(T)&&-1!==X.indexOf(y))return J;if(-1!==[f,r].indexOf(T)&&(y===d||-1!==[l,Y].indexOf(y)&&N[g+1]===d)||-1!==[l,Y].indexOf(T)&&y===d||T===d&&-1!==[d,h,s].indexOf(y))return J;if(-1!==[d,h,s,C,a].indexOf(y))for(var L=A;L>=0;){if((O=N[L])===d)return J;if(-1===[h,s].indexOf(O))break;L--}if(-1!==[f,r].indexOf(y))for(L=-1!==[C,a].indexOf(T)?z:A;L>=0;){var O;if((O=N[L])===d)return J;if(-1===[h,s].indexOf(O))break;L--}if(B===T&&-1!==[B,F,Z,V].indexOf(y)||-1!==[F,Z].indexOf(T)&&-1!==[F,R].indexOf(y)||-1!==[R,V].indexOf(T)&&y===R)return J;if(-1!==MM.indexOf(T)&&-1!==[n,r].indexOf(y)||-1!==MM.indexOf(y)&&T===f)return J;if(-1!==X.indexOf(T)&&-1!==X.indexOf(y))return J;if(T===s&&-1!==X.indexOf(y))return J;if(-1!==X.concat(d).indexOf(T)&&y===l&&-1===v.indexOf(M[g])||-1!==X.concat(d).indexOf(y)&&T===a)return J;if(41===T&&41===y){for(var i=D[A],c=1;i>0&&41===N[--i];)c++;if(c%2!=0)return J}return T===b&&y===m?J:P},AM=function(M,N){N||(N={lineBreak:"normal",wordBreak:"normal"});var D=function(M,N){void 0===N&&(N="strict");var D=[],j=[],I=[];return M.forEach(function(M,A){var z=H.get(M);if(z>50?(I.push(!0),z-=50):I.push(!1),-1!==["normal","auto","loose"].indexOf(N)&&-1!==[8208,8211,12316,12448].indexOf(M))return j.push(A),D.push(16);if(4===z||11===z){if(0===A)return j.push(A),D.push(p);var g=D[A-1];return-1===$.indexOf(g)?(j.push(j[A-1]),D.push(g)):(j.push(A),D.push(p))}return j.push(A),31===z?D.push("strict"===N?o:W):z===G||29===z?D.push(p):43===z?M>=131072&&M<=196605||M>=196608&&M<=262141?D.push(W):D.push(p):void D.push(z)}),[j,D,I]}(M,N.lineBreak),j=D[0],I=D[1],A=D[2];"break-all"!==N.wordBreak&&"break-word"!==N.wordBreak||(I=I.map(function(M){return-1!==[d,p,G].indexOf(M)?W:M}));var z="keep-all"===N.wordBreak?A.map(function(N,D){return N&&M[D]>=19968&&M[D]<=40959}):void 0;return[j,I,z]},zM=function(){function M(M,N,D,j){this.codePoints=M,this.required="!"===N,this.start=D,this.end=j}return M.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},M}(),gM=45,TM=43,uM=-1,yM=function(M){return M>=48&&M<=57},LM=function(M){return yM(M)||M>=65&&M<=70||M>=97&&M<=102},OM=function(M){return 10===M||9===M||32===M},iM=function(M){return function(M){return function(M){return M>=97&&M<=122}(M)||function(M){return M>=65&&M<=90}(M)}(M)||function(M){return M>=128}(M)||95===M},cM=function(M){return iM(M)||yM(M)||M===gM},xM=function(M){return M>=0&&M<=8||11===M||M>=14&&M<=31||127===M},EM=function(M,N){return 92===M&&10!==N},QM=function(M,N,D){return M===gM?iM(N)||EM(N,D):!!iM(M)||!(92!==M||!EM(M,N))},eM=function(M,N,D){return M===TM||M===gM?!!yM(N)||46===N&&yM(D):yM(46===M?N:M)},SM=function(M){var N=0,D=1;M[N]!==TM&&M[N]!==gM||(M[N]===gM&&(D=-1),N++);for(var j=[];yM(M[N]);)j.push(M[N++]);var I=j.length?parseInt(u.apply(void 0,j),10):0;46===M[N]&&N++;for(var A=[];yM(M[N]);)A.push(M[N++]);var z=A.length,g=z?parseInt(u.apply(void 0,A),10):0;69!==M[N]&&101!==M[N]||N++;var T=1;M[N]!==TM&&M[N]!==gM||(M[N]===gM&&(T=-1),N++);for(var y=[];yM(M[N]);)y.push(M[N++]);var L=y.length?parseInt(u.apply(void 0,y),10):0;return D*(I+g*Math.pow(10,-z))*Math.pow(10,T*L)},kM={type:2},tM={type:3},UM={type:4},YM={type:13},CM={type:8},aM={type:21},wM={type:9},nM={type:10},oM={type:11},lM={type:12},sM={type:14},dM={type:23},rM={type:1},fM={type:25},hM={type:24},pM={type:26},bM={type:27},mM={type:28},ZM={type:29},VM={type:31},WM={type:32},BM=function(){function M(){this._value=[]}return M.prototype.write=function(M){this._value=this._value.concat(T(M))},M.prototype.read=function(){for(var M=[],N=this.consumeToken();N!==WM;)M.push(N),N=this.consumeToken();return M},M.prototype.consumeToken=function(){var M=this.consumeCodePoint();switch(M){case 34:return this.consumeStringToken(34);case 35:var N=this.peekCodePoint(0),D=this.peekCodePoint(1),j=this.peekCodePoint(2);if(cM(N)||EM(D,j)){var I=QM(N,D,j)?2:1;return{type:5,value:this.consumeName(),flags:I}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),YM;break;case 39:return this.consumeStringToken(39);case 40:return kM;case 41:return tM;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),sM;break;case TM:if(eM(M,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(M),this.consumeNumericToken();break;case 44:return UM;case gM:var A=M,z=this.peekCodePoint(0),g=this.peekCodePoint(1);if(eM(A,z,g))return this.reconsumeCodePoint(M),this.consumeNumericToken();if(QM(A,z,g))return this.reconsumeCodePoint(M),this.consumeIdentLikeToken();if(z===gM&&62===g)return this.consumeCodePoint(),this.consumeCodePoint(),hM;break;case 46:if(eM(M,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(M),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var T=this.consumeCodePoint();if(42===T&&47===(T=this.consumeCodePoint()))return this.consumeToken();if(T===uM)return this.consumeToken()}break;case 58:return pM;case 59:return bM;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===gM&&this.peekCodePoint(2)===gM)return this.consumeCodePoint(),this.consumeCodePoint(),fM;break;case 64:var y=this.peekCodePoint(0),L=this.peekCodePoint(1),O=this.peekCodePoint(2);if(QM(y,L,O))return{type:7,value:this.consumeName()};break;case 91:return mM;case 92:if(EM(M,this.peekCodePoint(0)))return this.reconsumeCodePoint(M),this.consumeIdentLikeToken();break;case 93:return ZM;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),CM;break;case 123:return oM;case 125:return lM;case 117:case 85:var i=this.peekCodePoint(0),c=this.peekCodePoint(1);return i!==TM||!LM(c)&&63!==c||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(M),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wM;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),aM;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),nM;break;case uM:return WM}return OM(M)?(this.consumeWhiteSpace(),VM):yM(M)?(this.reconsumeCodePoint(M),this.consumeNumericToken()):iM(M)?(this.reconsumeCodePoint(M),this.consumeIdentLikeToken()):{type:6,value:u(M)}},M.prototype.consumeCodePoint=function(){var M=this._value.shift();return void 0===M?-1:M},M.prototype.reconsumeCodePoint=function(M){this._value.unshift(M)},M.prototype.peekCodePoint=function(M){return M>=this._value.length?-1:this._value[M]},M.prototype.consumeUnicodeRangeToken=function(){for(var M=[],N=this.consumeCodePoint();LM(N)&&M.length<6;)M.push(N),N=this.consumeCodePoint();for(var D=!1;63===N&&M.length<6;)M.push(N),N=this.consumeCodePoint(),D=!0;if(D)return{type:30,start:parseInt(u.apply(void 0,M.map(function(M){return 63===M?48:M})),16),end:parseInt(u.apply(void 0,M.map(function(M){return 63===M?70:M})),16)};var j=parseInt(u.apply(void 0,M),16);if(this.peekCodePoint(0)===gM&&LM(this.peekCodePoint(1))){this.consumeCodePoint(),N=this.consumeCodePoint();for(var I=[];LM(N)&&I.length<6;)I.push(N),N=this.consumeCodePoint();return{type:30,start:j,end:parseInt(u.apply(void 0,I),16)}}return{type:30,start:j,end:j}},M.prototype.consumeIdentLikeToken=function(){var M=this.consumeName();return"url"===M.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:M}):{type:20,value:M}},M.prototype.consumeUrlToken=function(){var M=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===uM)return{type:22,value:""};var N=this.peekCodePoint(0);if(39===N||34===N){var D=this.consumeStringToken(this.consumeCodePoint());return 0===D.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===uM||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:D.value}):(this.consumeBadUrlRemnants(),dM)}for(;;){var j=this.consumeCodePoint();if(j===uM||41===j)return{type:22,value:u.apply(void 0,M)};if(OM(j))return this.consumeWhiteSpace(),this.peekCodePoint(0)===uM||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,M)}):(this.consumeBadUrlRemnants(),dM);if(34===j||39===j||40===j||xM(j))return this.consumeBadUrlRemnants(),dM;if(92===j){if(!EM(j,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),dM;M.push(this.consumeEscapedCodePoint())}else M.push(j)}},M.prototype.consumeWhiteSpace=function(){for(;OM(this.peekCodePoint(0));)this.consumeCodePoint()},M.prototype.consumeBadUrlRemnants=function(){for(;;){var M=this.consumeCodePoint();if(41===M||M===uM)return;EM(M,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},M.prototype.consumeStringSlice=function(M){for(var N="";M>0;){var D=Math.min(5e4,M);N+=u.apply(void 0,this._value.splice(0,D)),M-=D}return this._value.shift(),N},M.prototype.consumeStringToken=function(M){for(var N="",D=0;;){var j=this._value[D];if(j===uM||void 0===j||j===M)return{type:0,value:N+=this.consumeStringSlice(D)};if(10===j)return this._value.splice(0,D),rM;if(92===j){var I=this._value[D+1];I!==uM&&void 0!==I&&(10===I?(N+=this.consumeStringSlice(D),D=-1,this._value.shift()):EM(j,I)&&(N+=this.consumeStringSlice(D),N+=u(this.consumeEscapedCodePoint()),D=-1))}D++}},M.prototype.consumeNumber=function(){var M=[],N=4,D=this.peekCodePoint(0);for(D!==TM&&D!==gM||M.push(this.consumeCodePoint());yM(this.peekCodePoint(0));)M.push(this.consumeCodePoint());D=this.peekCodePoint(0);var j=this.peekCodePoint(1);if(46===D&&yM(j))for(M.push(this.consumeCodePoint(),this.consumeCodePoint()),N=8;yM(this.peekCodePoint(0));)M.push(this.consumeCodePoint());D=this.peekCodePoint(0),j=this.peekCodePoint(1);var I=this.peekCodePoint(2);if((69===D||101===D)&&((j===TM||j===gM)&&yM(I)||yM(j)))for(M.push(this.consumeCodePoint(),this.consumeCodePoint()),N=8;yM(this.peekCodePoint(0));)M.push(this.consumeCodePoint());return[SM(M),N]},M.prototype.consumeNumericToken=function(){var M=this.consumeNumber(),N=M[0],D=M[1],j=this.peekCodePoint(0),I=this.peekCodePoint(1),A=this.peekCodePoint(2);return QM(j,I,A)?{type:15,number:N,flags:D,unit:this.consumeName()}:37===j?(this.consumeCodePoint(),{type:16,number:N,flags:D}):{type:17,number:N,flags:D}},M.prototype.consumeEscapedCodePoint=function(){var M=this.consumeCodePoint();if(LM(M)){for(var N=u(M);LM(this.peekCodePoint(0))&&N.length<6;)N+=u(this.consumeCodePoint());OM(this.peekCodePoint(0))&&this.consumeCodePoint();var D=parseInt(N,16);return 0===D||function(M){return M>=55296&&M<=57343}(D)||D>1114111?65533:D}return M===uM?65533:M},M.prototype.consumeName=function(){for(var M="";;){var N=this.consumeCodePoint();if(cM(N))M+=u(N);else{if(!EM(N,this.peekCodePoint(0)))return this.reconsumeCodePoint(N),M;M+=u(this.consumeEscapedCodePoint())}}},M}(),FM=function(){function M(M){this._tokens=M}return M.create=function(N){var D=new BM;return D.write(N),new M(D.read())},M.parseValue=function(N){return M.create(N).parseComponentValue()},M.parseValues=function(N){return M.create(N).parseComponentValues()},M.prototype.parseComponentValue=function(){for(var M=this.consumeToken();31===M.type;)M=this.consumeToken();if(32===M.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(M);var N=this.consumeComponentValue();do{M=this.consumeToken()}while(31===M.type);if(32===M.type)return N;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},M.prototype.parseComponentValues=function(){for(var M=[];;){var N=this.consumeComponentValue();if(32===N.type)return M;M.push(N),M.push()}},M.prototype.consumeComponentValue=function(){var M=this.consumeToken();switch(M.type){case 11:case 28:case 2:return this.consumeSimpleBlock(M.type);case 19:return this.consumeFunction(M)}return M},M.prototype.consumeSimpleBlock=function(M){for(var N={type:M,values:[]},D=this.consumeToken();;){if(32===D.type||_M(D,M))return N;this.reconsumeToken(D),N.values.push(this.consumeComponentValue()),D=this.consumeToken()}},M.prototype.consumeFunction=function(M){for(var N={name:M.value,values:[],type:18};;){var D=this.consumeToken();if(32===D.type||3===D.type)return N;this.reconsumeToken(D),N.values.push(this.consumeComponentValue())}},M.prototype.consumeToken=function(){var M=this._tokens.shift();return void 0===M?WM:M},M.prototype.reconsumeToken=function(M){this._tokens.unshift(M)},M}(),RM=function(M){return 15===M.type},GM=function(M){return 17===M.type},vM=function(M){return 20===M.type},JM=function(M){return 0===M.type},PM=function(M,N){return vM(M)&&M.value===N},HM=function(M){return 31!==M.type},XM=function(M){return 31!==M.type&&4!==M.type},KM=function(M){var N=[],D=[];return M.forEach(function(M){if(4===M.type){if(0===D.length)throw new Error("Error parsing function args, zero tokens for arg");return N.push(D),void(D=[])}31!==M.type&&D.push(M)}),D.length&&N.push(D),N},_M=function(M,N){return 11===N&&12===M.type||28===N&&29===M.type||2===N&&3===M.type},qM=function(M){return 17===M.type||15===M.type},$M=function(M){return 16===M.type||qM(M)},MN=function(M){return M.length>1?[M[0],M[1]]:[M[0]]},NN={type:17,number:0,flags:4},DN={type:16,number:50,flags:4},jN={type:16,number:100,flags:4},IN=function(M,N,D){var j=M[0],I=M[1];return[AN(j,N),AN(void 0!==I?I:j,D)]},AN=function(M,N){if(16===M.type)return M.number/100*N;if(RM(M))switch(M.unit){case"rem":case"em":return 16*M.number;default:return M.number}return M.number},zN="grad",gN="turn",TN=function(M,N){if(15===N.type)switch(N.unit){case"deg":return Math.PI*N.number/180;case zN:return Math.PI/200*N.number;case"rad":return N.number;case gN:return 2*Math.PI*N.number}throw new Error("Unsupported angle type")},uN=function(M){return 15===M.type&&("deg"===M.unit||M.unit===zN||"rad"===M.unit||M.unit===gN)},yN=function(M){switch(M.filter(vM).map(function(M){return M.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[NN,NN];case"to top":case"bottom":return LN(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[NN,jN];case"to right":case"left":return LN(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[jN,jN];case"to bottom":case"top":return LN(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[jN,NN];case"to left":case"right":return LN(270)}return 0},LN=function(M){return Math.PI*M/180},ON=function(M,N){if(18===N.type){var D=kN[N.name];if(void 0===D)throw new Error('Attempting to parse an unsupported color function "'+N.name+'"');return D(M,N.values)}if(5===N.type){if(3===N.value.length){var j=N.value.substring(0,1),I=N.value.substring(1,2),A=N.value.substring(2,3);return xN(parseInt(j+j,16),parseInt(I+I,16),parseInt(A+A,16),1)}if(4===N.value.length){j=N.value.substring(0,1),I=N.value.substring(1,2),A=N.value.substring(2,3);var z=N.value.substring(3,4);return xN(parseInt(j+j,16),parseInt(I+I,16),parseInt(A+A,16),parseInt(z+z,16)/255)}if(6===N.value.length)return j=N.value.substring(0,2),I=N.value.substring(2,4),A=N.value.substring(4,6),xN(parseInt(j,16),parseInt(I,16),parseInt(A,16),1);if(8===N.value.length)return j=N.value.substring(0,2),I=N.value.substring(2,4),A=N.value.substring(4,6),z=N.value.substring(6,8),xN(parseInt(j,16),parseInt(I,16),parseInt(A,16),parseInt(z,16)/255)}if(20===N.type){var g=UN[N.value.toUpperCase()];if(void 0!==g)return g}return UN.TRANSPARENT},iN=function(M){return!(255&M)},cN=function(M){var N=255&M,D=255&M>>8,j=255&M>>16,I=255&M>>24;return N<255?"rgba("+I+","+j+","+D+","+N/255+")":"rgb("+I+","+j+","+D+")"},xN=function(M,N,D,j){return(M<<24|N<<16|D<<8|Math.round(255*j))>>>0},EN=function(M,N){if(17===M.type)return M.number;if(16===M.type){var D=3===N?1:255;return 3===N?M.number/100*D:Math.round(M.number/100*D)}return 0},QN=function(M,N){var D=N.filter(XM);if(3===D.length){var j=D.map(EN),I=j[0],A=j[1],z=j[2];return xN(I,A,z,1)}if(4===D.length){var g=D.map(EN),T=(I=g[0],A=g[1],z=g[2],g[3]);return xN(I,A,z,T)}return 0};function eN(M,N,D){return D<0&&(D+=1),D>=1&&(D-=1),D<1/6?(N-M)*D*6+M:D<.5?N:D<2/3?6*(N-M)*(2/3-D)+M:M}var SN=function(M,N){var D=N.filter(XM),j=D[0],I=D[1],A=D[2],z=D[3],g=(17===j.type?LN(j.number):TN(M,j))/(2*Math.PI),T=$M(I)?I.number/100:0,u=$M(A)?A.number/100:0,y=void 0!==z&&$M(z)?AN(z,1):1;if(0===T)return xN(255*u,255*u,255*u,1);var L=u<=.5?u*(T+1):u+T-u*T,O=2*u-L,i=eN(O,L,g+1/3),c=eN(O,L,g),x=eN(O,L,g-1/3);return xN(255*i,255*c,255*x,y)},kN={hsl:SN,hsla:SN,rgb:QN,rgba:QN},tN=function(M,N){return ON(M,FM.create(N).parseComponentValue())},UN={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},YN={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(M,N){return N.map(function(M){if(vM(M))switch(M.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},CN={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},aN=function(M,N){var D=ON(M,N[0]),j=N[1];return j&&$M(j)?{color:D,stop:j}:{color:D,stop:null}},wN=function(M,N){var D=M[0],j=M[M.length-1];null===D.stop&&(D.stop=NN),null===j.stop&&(j.stop=jN);for(var I=[],A=0,z=0;zA?I.push(T):I.push(A),A=T}else I.push(null)}var u=null;for(z=0;zM.optimumDistance)?{optimumCorner:N,optimumDistance:g}:M},{optimumDistance:I?1/0:-1/0,optimumCorner:null}).optimumCorner},sN=function(M,N){var D=LN(180),j=[];return KM(N).forEach(function(N,I){if(0===I){var A=N[0];if(20===A.type&&-1!==["top","left","right","bottom"].indexOf(A.value))return void(D=yN(N));if(uN(A))return void(D=(TN(M,A)+LN(270))%LN(360))}var z=aN(M,N);j.push(z)}),{angle:D,stops:j,type:1}},dN="closest-side",rN="farthest-side",fN="closest-corner",hN="farthest-corner",pN="circle",bN="ellipse",mN="cover",ZN="contain",VN=function(M,N){var D=0,j=3,I=[],A=[];return KM(N).forEach(function(N,z){var g=!0;if(0===z?g=N.reduce(function(M,N){if(vM(N))switch(N.value){case"center":return A.push(DN),!1;case"top":case"left":return A.push(NN),!1;case"right":case"bottom":return A.push(jN),!1}else if($M(N)||qM(N))return A.push(N),!1;return M},g):1===z&&(g=N.reduce(function(M,N){if(vM(N))switch(N.value){case pN:return D=0,!1;case bN:return D=1,!1;case ZN:case dN:return j=0,!1;case rN:return j=1,!1;case fN:return j=2,!1;case mN:case hN:return j=3,!1}else if(qM(N)||$M(N))return Array.isArray(j)||(j=[]),j.push(N),!1;return M},g)),g){var T=aN(M,N);I.push(T)}}),{size:j,shape:D,stops:I,position:A,type:2}},WN=function(M,N){if(22===N.type){var D={url:N.value,type:0};return M.cache.addImage(N.value),D}if(18===N.type){var j=FN[N.name];if(void 0===j)throw new Error('Attempting to parse an unsupported image function "'+N.name+'"');return j(M,N.values)}throw new Error("Unsupported image type "+N.type)};var BN,FN={"linear-gradient":function(M,N){var D=LN(180),j=[];return KM(N).forEach(function(N,I){if(0===I){var A=N[0];if(20===A.type&&"to"===A.value)return void(D=yN(N));if(uN(A))return void(D=TN(M,A))}var z=aN(M,N);j.push(z)}),{angle:D,stops:j,type:1}},"-moz-linear-gradient":sN,"-ms-linear-gradient":sN,"-o-linear-gradient":sN,"-webkit-linear-gradient":sN,"radial-gradient":function(M,N){var D=0,j=3,I=[],A=[];return KM(N).forEach(function(N,z){var g=!0;if(0===z){var T=!1;g=N.reduce(function(M,N){if(T)if(vM(N))switch(N.value){case"center":return A.push(DN),M;case"top":case"left":return A.push(NN),M;case"right":case"bottom":return A.push(jN),M}else($M(N)||qM(N))&&A.push(N);else if(vM(N))switch(N.value){case pN:return D=0,!1;case bN:return D=1,!1;case"at":return T=!0,!1;case dN:return j=0,!1;case mN:case rN:return j=1,!1;case ZN:case fN:return j=2,!1;case hN:return j=3,!1}else if(qM(N)||$M(N))return Array.isArray(j)||(j=[]),j.push(N),!1;return M},g)}if(g){var u=aN(M,N);I.push(u)}}),{size:j,shape:D,stops:I,position:A,type:2}},"-moz-radial-gradient":VN,"-ms-radial-gradient":VN,"-o-radial-gradient":VN,"-webkit-radial-gradient":VN,"-webkit-gradient":function(M,N){var D=LN(180),j=[],I=1;return KM(N).forEach(function(N,D){var A=N[0];if(0===D){if(vM(A)&&"linear"===A.value)return void(I=1);if(vM(A)&&"radial"===A.value)return void(I=2)}if(18===A.type)if("from"===A.name){var z=ON(M,A.values[0]);j.push({stop:NN,color:z})}else if("to"===A.name)z=ON(M,A.values[0]),j.push({stop:jN,color:z});else if("color-stop"===A.name){var g=A.values.filter(XM);if(2===g.length){z=ON(M,g[1]);var T=g[0];GM(T)&&j.push({stop:{type:16,number:100*T.number,flags:T.flags},color:z})}}}),1===I?{angle:(D+LN(180))%LN(360),stops:j,type:I}:{size:3,shape:0,stops:j,position:[],type:I}}},RN={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(M,N){if(0===N.length)return[];var D=N[0];return 20===D.type&&"none"===D.value?[]:N.filter(function(M){return XM(M)&&function(M){return!(20===M.type&&"none"===M.value||18===M.type&&!FN[M.name])}(M)}).map(function(N){return WN(M,N)})}},GN={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(M,N){return N.map(function(M){if(vM(M))switch(M.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},vN={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(M,N){return KM(N).map(function(M){return M.filter($M)}).map(MN)}},JN={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(M,N){return KM(N).map(function(M){return M.filter(vM).map(function(M){return M.value}).join(" ")}).map(PN)}},PN=function(M){switch(M){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(M){M.AUTO="auto",M.CONTAIN="contain",M.COVER="cover"}(BN||(BN={}));var HN,XN={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(M,N){return KM(N).map(function(M){return M.filter(KN)})}},KN=function(M){return vM(M)||$M(M)},_N=function(M){return{name:"border-"+M+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qN=_N("top"),$N=_N("right"),MD=_N("bottom"),ND=_N("left"),DD=function(M){return{name:"border-radius-"+M,initialValue:"0 0",prefix:!1,type:1,parse:function(M,N){return MN(N.filter($M))}}},jD=DD("top-left"),ID=DD("top-right"),AD=DD("bottom-right"),zD=DD("bottom-left"),gD=function(M){return{name:"border-"+M+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(M,N){switch(N){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},TD=gD("top"),uD=gD("right"),yD=gD("bottom"),LD=gD("left"),OD=function(M){return{name:"border-"+M+"-width",initialValue:"0",type:0,prefix:!1,parse:function(M,N){return RM(N)?N.number:0}}},iD=OD("top"),cD=OD("right"),xD=OD("bottom"),ED=OD("left"),QD={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eD={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(M,N){return"rtl"===N?1:0}},SD={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(M,N){return N.filter(vM).reduce(function(M,N){return M|kD(N.value)},0)}},kD=function(M){switch(M){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},tD={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(M,N){switch(N){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},UD={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(M,N){return 20===N.type&&"normal"===N.value?0:17===N.type||15===N.type?N.number:0}};!function(M){M.NORMAL="normal",M.STRICT="strict"}(HN||(HN={}));var YD,CD={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(M,N){return"strict"===N?HN.STRICT:HN.NORMAL}},aD={name:"line-height",initialValue:"normal",prefix:!1,type:4},wD=function(M,N){return vM(M)&&"normal"===M.value?1.2*N:17===M.type?N*M.number:$M(M)?AN(M,N):N},nD={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(M,N){return 20===N.type&&"none"===N.value?null:WN(M,N)}},oD={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(M,N){return"inside"===N?0:1}},lD={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(M,N){switch(N){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},sD=function(M){return{name:"margin-"+M,initialValue:"0",prefix:!1,type:4}},dD=sD("top"),rD=sD("right"),fD=sD("bottom"),hD=sD("left"),pD={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(M,N){return N.filter(vM).map(function(M){switch(M.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},bD={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(M,N){return"break-word"===N?"break-word":"normal"}},mD=function(M){return{name:"padding-"+M,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ZD=mD("top"),VD=mD("right"),WD=mD("bottom"),BD=mD("left"),FD={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(M,N){switch(N){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},RD={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(M,N){switch(N){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},GD={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(M,N){return 1===N.length&&PM(N[0],"none")?[]:KM(N).map(function(N){for(var D={color:UN.TRANSPARENT,offsetX:NN,offsetY:NN,blur:NN},j=0,I=0;I1?1:0],this.overflowWrap=Yj(M,bD,N.overflowWrap),this.paddingTop=Yj(M,ZD,N.paddingTop),this.paddingRight=Yj(M,VD,N.paddingRight),this.paddingBottom=Yj(M,WD,N.paddingBottom),this.paddingLeft=Yj(M,BD,N.paddingLeft),this.paintOrder=Yj(M,Qj,N.paintOrder),this.position=Yj(M,RD,N.position),this.textAlign=Yj(M,FD,N.textAlign),this.textDecorationColor=Yj(M,Dj,null!==(D=N.textDecorationColor)&&void 0!==D?D:N.color),this.textDecorationLine=Yj(M,jj,null!==(j=N.textDecorationLine)&&void 0!==j?j:N.textDecoration),this.textShadow=Yj(M,GD,N.textShadow),this.textTransform=Yj(M,vD,N.textTransform),this.transform=Yj(M,JD,N.transform),this.transformOrigin=Yj(M,KD,N.transformOrigin),this.visibility=Yj(M,_D,N.visibility),this.webkitTextStrokeColor=Yj(M,ej,N.webkitTextStrokeColor),this.webkitTextStrokeWidth=Yj(M,Sj,N.webkitTextStrokeWidth),this.wordBreak=Yj(M,qD,N.wordBreak),this.zIndex=Yj(M,$D,N.zIndex)}return M.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},M.prototype.isTransparent=function(){return iN(this.backgroundColor)},M.prototype.isTransformed=function(){return null!==this.transform},M.prototype.isPositioned=function(){return 0!==this.position},M.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},M.prototype.isFloating=function(){return 0!==this.float},M.prototype.isInlineLevel=function(){return uj(this.display,4)||uj(this.display,33554432)||uj(this.display,268435456)||uj(this.display,536870912)||uj(this.display,67108864)||uj(this.display,134217728)},M}(),tj=function(M,N){this.content=Yj(M,yj,N.content),this.quotes=Yj(M,cj,N.quotes)},Uj=function(M,N){this.counterIncrement=Yj(M,Lj,N.counterIncrement),this.counterReset=Yj(M,Oj,N.counterReset)},Yj=function(M,N,D){var j=new BM,I=null!=D?D.toString():N.initialValue;j.write(I);var A=new FM(j.read());switch(N.type){case 2:var z=A.parseComponentValue();return N.parse(M,vM(z)?z.value:N.initialValue);case 0:return N.parse(M,A.parseComponentValue());case 1:return N.parse(M,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(N.format){case"angle":return TN(M,A.parseComponentValue());case"color":return ON(M,A.parseComponentValue());case"image":return WN(M,A.parseComponentValue());case"length":var g=A.parseComponentValue();return qM(g)?g:NN;case"length-percentage":var T=A.parseComponentValue();return $M(T)?T:NN;case"time":return Mj.parse(M,A.parseComponentValue())}}},Cj=function(M,N){var D=function(M){switch(M.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(M);return 1===D||N===D},aj=function(M,N){this.context=M,this.textNodes=[],this.elements=[],this.flags=0,Cj(N,3),this.styles=new kj(M,window.getComputedStyle(N,null)),lI(N)&&(this.styles.animationDuration.some(function(M){return M>0})&&(N.style.animationDuration="0s"),null!==this.styles.transform&&(N.style.transform="none")),this.bounds=g(this.context,N),Cj(N,4)&&(this.flags|=16)},wj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nj="undefined"==typeof Uint8Array?[]:new Uint8Array(256),oj=0;oj<64;oj++)nj[wj.charCodeAt(oj)]=oj;for(var lj=function(M,N,D){return M.slice?M.slice(N,D):new Uint16Array(Array.prototype.slice.call(M,N,D))},sj=function(){function M(M,N,D,j,I,A){this.initialValue=M,this.errorValue=N,this.highStart=D,this.highValueIndex=j,this.index=I,this.data=A}return M.prototype.get=function(M){var N;if(M>=0){if(M<55296||M>56319&&M<=65535)return N=((N=this.index[M>>5])<<2)+(31&M),this.data[N];if(M<=65535)return N=((N=this.index[2048+(M-55296>>5)])<<2)+(31&M),this.data[N];if(M>11),N=this.index[N],N+=M>>5&63,N=((N=this.index[N])<<2)+(31&M),this.data[N];if(M<=1114111)return this.data[this.highValueIndex]}return this.errorValue},M}(),dj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rj="undefined"==typeof Uint8Array?[]:new Uint8Array(256),fj=0;fj<64;fj++)rj[dj.charCodeAt(fj)]=fj;var hj,pj=8,bj=9,mj=11,Zj=12,Vj=function(){for(var M=[],N=0;N>10),z%1024+56320)),(I+1===D||j.length>16384)&&(A+=String.fromCharCode.apply(String,j),j.length=0)}return A},Wj=function(M){var N,D,j,I=function(M){var N,D,j,I,A,z=.75*M.length,g=M.length,T=0;"="===M[M.length-1]&&(z--,"="===M[M.length-2]&&z--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(z):new Array(z),y=Array.isArray(u)?u:new Uint8Array(u);for(N=0;N>4,y[T++]=(15&j)<<4|I>>2,y[T++]=(3&I)<<6|63&A;return u}(M),A=Array.isArray(I)?function(M){for(var N=M.length,D=[],j=0;j=55296&&I<=56319&&D=D)return{done:!0,value:null};for(var M=Bj;jz.x||I.y>z.y;return z=I,0===N||g});return M.body.removeChild(N),g}(document);return Object.defineProperty(Hj,"SUPPORT_WORD_BREAKING",{value:M}),M},get SUPPORT_SVG_DRAWING(){var M=function(M){var N=new Image,D=M.createElement("canvas"),j=D.getContext("2d");if(!j)return!1;N.src="data:image/svg+xml,";try{j.drawImage(N,0,0),D.toDataURL()}catch(M){return!1}return!0}(document);return Object.defineProperty(Hj,"SUPPORT_SVG_DRAWING",{value:M}),M},get SUPPORT_FOREIGNOBJECT_DRAWING(){var M="function"==typeof Array.from&&"function"==typeof window.fetch?function(M){var N=M.createElement("canvas"),D=100;N.width=D,N.height=D;var j=N.getContext("2d");if(!j)return Promise.reject(!1);j.fillStyle="rgb(0, 255, 0)",j.fillRect(0,0,D,D);var I=new Image,A=N.toDataURL();I.src=A;var z=Jj(D,D,0,0,I);return j.fillStyle="red",j.fillRect(0,0,D,D),Pj(z).then(function(N){j.drawImage(N,0,0);var I=j.getImageData(0,0,D,D).data;j.fillStyle="red",j.fillRect(0,0,D,D);var z=M.createElement("div");return z.style.backgroundImage="url("+A+")",z.style.height=D+"px",vj(I)?Pj(Jj(D,D,0,0,z)):Promise.reject(!1)}).then(function(M){return j.drawImage(M,0,0),vj(j.getImageData(0,0,D,D).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Hj,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:M}),M},get SUPPORT_CORS_IMAGES(){var M=void 0!==(new Image).crossOrigin;return Object.defineProperty(Hj,"SUPPORT_CORS_IMAGES",{value:M}),M},get SUPPORT_RESPONSE_TYPE(){var M="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Hj,"SUPPORT_RESPONSE_TYPE",{value:M}),M},get SUPPORT_CORS_XHR(){var M="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Hj,"SUPPORT_CORS_XHR",{value:M}),M},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var M=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Hj,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:M}),M}},Xj=function(M,N){this.text=M,this.bounds=N},Kj=function(M,N){var D=N.ownerDocument;if(D){var j=D.createElement("html2canvaswrapper");j.appendChild(N.cloneNode(!0));var I=N.parentNode;if(I){I.replaceChild(j,N);var A=g(M,j);return j.firstChild&&I.replaceChild(j.firstChild,j),A}}return z.EMPTY},_j=function(M,N,D){var j=M.ownerDocument;if(!j)throw new Error("Node has no owner document");var I=j.createRange();return I.setStart(M,N),I.setEnd(M,N+D),I},qj=function(M){if(Hj.SUPPORT_NATIVE_TEXT_SEGMENTATION){var N=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(N.segment(M)).map(function(M){return M.segment})}return function(M){for(var N,D=Gj(M),j=[];!(N=D.next()).done;)N.value&&j.push(N.value.slice());return j}(M)},$j=function(M,N){return 0!==N.letterSpacing?qj(M):function(M,N){if(Hj.SUPPORT_NATIVE_TEXT_SEGMENTATION){var D=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(D.segment(M)).map(function(M){return M.segment})}return NI(M,N)}(M,N)},MI=[32,160,4961,65792,65793,4153,4241],NI=function(M,N){for(var D,j=function(M,N){var D=T(M),j=AM(D,N),I=j[0],A=j[1],z=j[2],g=D.length,u=0,y=0;return{next:function(){if(y>=g)return{done:!0,value:null};for(var M=J;y0)if(Hj.SUPPORT_RANGE_BOUNDS){var I=_j(j,g,N.length).getClientRects();if(I.length>1){var T=qj(N),u=0;T.forEach(function(N){A.push(new Xj(N,z.fromDOMRectList(M,_j(j,u+g,N.length).getClientRects()))),u+=N.length})}else A.push(new Xj(N,z.fromDOMRectList(M,I)))}else{var y=j.splitText(N.length);A.push(new Xj(N,Kj(M,j))),j=y}else Hj.SUPPORT_RANGE_BOUNDS||(j=j.splitText(N.length));g+=N.length}),A}(M,this.text,D,N)},jI=function(M,N){switch(N){case 1:return M.toLowerCase();case 3:return M.replace(II,AI);case 2:return M.toUpperCase();default:return M}},II=/(^|\s|:|-|\(|\))([a-z])/g,AI=function(M,N,D){return M.length>0?N+D.toUpperCase():M},zI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.src=D.currentSrc||D.src,j.intrinsicWidth=D.naturalWidth,j.intrinsicHeight=D.naturalHeight,j.context.cache.addImage(j.src),j}return N(D,M),D}(aj),gI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.canvas=D,j.intrinsicWidth=D.width,j.intrinsicHeight=D.height,j}return N(D,M),D}(aj),TI=function(M){function D(N,D){var j=M.call(this,N,D)||this,I=new XMLSerializer,A=g(N,D);return D.setAttribute("width",A.width+"px"),D.setAttribute("height",A.height+"px"),j.svg="data:image/svg+xml,"+encodeURIComponent(I.serializeToString(D)),j.intrinsicWidth=D.width.baseVal.value,j.intrinsicHeight=D.height.baseVal.value,j.context.cache.addImage(j.svg),j}return N(D,M),D}(aj),uI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.value=D.value,j}return N(D,M),D}(aj),yI=function(M){function D(N,D){var j=M.call(this,N,D)||this;return j.start=D.start,j.reversed="boolean"==typeof D.reversed&&!0===D.reversed,j}return N(D,M),D}(aj),LI=[{type:15,flags:0,unit:"px",number:3}],OI=[{type:16,flags:0,number:50}],iI="checkbox",cI="radio",xI="password",EI=707406591,QI=function(M){function D(N,D){var j,I,A,g=M.call(this,N,D)||this;switch(g.type=D.type.toLowerCase(),g.checked=D.checked,g.value=0===(A=(I=D).type===xI?new Array(I.value.length+1).join("โ€ข"):I.value).length?I.placeholder||"":A,g.type!==iI&&g.type!==cI||(g.styles.backgroundColor=3739148031,g.styles.borderTopColor=g.styles.borderRightColor=g.styles.borderBottomColor=g.styles.borderLeftColor=2779096575,g.styles.borderTopWidth=g.styles.borderRightWidth=g.styles.borderBottomWidth=g.styles.borderLeftWidth=1,g.styles.borderTopStyle=g.styles.borderRightStyle=g.styles.borderBottomStyle=g.styles.borderLeftStyle=1,g.styles.backgroundClip=[0],g.styles.backgroundOrigin=[0],g.bounds=(j=g.bounds).width>j.height?new z(j.left+(j.width-j.height)/2,j.top,j.height,j.height):j.width0)D.textNodes.push(new DI(M,I,D.styles));else if(oI(I))if(RI(I)&&I.assignedNodes)I.assignedNodes().forEach(function(N){return UI(M,N,D,j)});else{var z=YI(M,I);z.styles.isVisible()&&(aI(I,z,j)?z.flags|=4:wI(z.styles)&&(z.flags|=2),-1!==tI.indexOf(I.tagName)&&(z.flags|=8),D.elements.push(z),I.slot,I.shadowRoot?UI(M,I.shadowRoot,z,j):BI(I)||hI(I)||FI(I)||UI(M,I,z,j))}},YI=function(M,N){return ZI(N)?new zI(M,N):bI(N)?new gI(M,N):hI(N)?new TI(M,N):dI(N)?new uI(M,N):rI(N)?new yI(M,N):fI(N)?new QI(M,N):FI(N)?new eI(M,N):BI(N)?new SI(M,N):VI(N)?new kI(M,N):new aj(M,N)},CI=function(M,N){var D=YI(M,N);return D.flags|=4,UI(M,N,D,D),D},aI=function(M,N,D){return N.styles.isPositionedWithZIndex()||N.styles.opacity<1||N.styles.isTransformed()||pI(M)&&D.styles.isTransparent()},wI=function(M){return M.isPositioned()||M.isFloating()},nI=function(M){return M.nodeType===Node.TEXT_NODE},oI=function(M){return M.nodeType===Node.ELEMENT_NODE},lI=function(M){return oI(M)&&void 0!==M.style&&!sI(M)},sI=function(M){return"object"==typeof M.className},dI=function(M){return"LI"===M.tagName},rI=function(M){return"OL"===M.tagName},fI=function(M){return"INPUT"===M.tagName},hI=function(M){return"svg"===M.tagName},pI=function(M){return"BODY"===M.tagName},bI=function(M){return"CANVAS"===M.tagName},mI=function(M){return"VIDEO"===M.tagName},ZI=function(M){return"IMG"===M.tagName},VI=function(M){return"IFRAME"===M.tagName},WI=function(M){return"STYLE"===M.tagName},BI=function(M){return"TEXTAREA"===M.tagName},FI=function(M){return"SELECT"===M.tagName},RI=function(M){return"SLOT"===M.tagName},GI=function(M){return M.tagName.indexOf("-")>0},vI=function(){function M(){this.counters={}}return M.prototype.getCounterValue=function(M){var N=this.counters[M];return N&&N.length?N[N.length-1]:1},M.prototype.getCounterValues=function(M){return this.counters[M]||[]},M.prototype.pop=function(M){var N=this;M.forEach(function(M){return N.counters[M].pop()})},M.prototype.parse=function(M){var N=this,D=M.counterIncrement,j=M.counterReset,I=!0;null!==D&&D.forEach(function(M){var D=N.counters[M.counter];D&&0!==M.increment&&(I=!1,D.length||D.push(1),D[Math.max(0,D.length-1)]+=M.increment)});var A=[];return I&&j.forEach(function(M){var D=N.counters[M.counter];A.push(M.counter),D||(D=N.counters[M.counter]=[]),D.push(M.reset)}),A},M}(),JI={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},PI={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ี”","ี“","ี’","ี‘","ี","ี","ีŽ","ี","ีŒ","ี‹","ีŠ","ี‰","ีˆ","ี‡","ี†","ี…","ี„","ีƒ","ี‚","ี","ี€","ิฟ","ิพ","ิฝ","ิผ","ิป","ิบ","ิน","ิธ","ิท","ิถ","ิต","ิด","ิณ","ิฒ","ิฑ"]},HI={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["ื™ืณ","ื˜ืณ","ื—ืณ","ื–ืณ","ื•ืณ","ื”ืณ","ื“ืณ","ื’ืณ","ื‘ืณ","ืืณ","ืช","ืฉ","ืจ","ืง","ืฆ","ืค","ืข","ืก","ื ","ืž","ืœ","ื›","ื™ื˜","ื™ื—","ื™ื–","ื˜ื–","ื˜ื•","ื™","ื˜","ื—","ื–","ื•","ื”","ื“","ื’","ื‘","ื"]},XI={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["แƒต","แƒฐ","แƒฏ","แƒด","แƒฎ","แƒญ","แƒฌ","แƒซ","แƒช","แƒฉ","แƒจ","แƒง","แƒฆ","แƒฅ","แƒค","แƒณ","แƒข","แƒก","แƒ ","แƒŸ","แƒž","แƒ","แƒฒ","แƒœ","แƒ›","แƒš","แƒ™","แƒ˜","แƒ—","แƒฑ","แƒ–","แƒ•","แƒ”","แƒ“","แƒ’","แƒ‘","แƒ"]},KI=function(M,N,D,j,I,A){return MD?AA(M,I,A.length>0):j.integers.reduce(function(N,D,I){for(;M>=D;)M-=D,N+=j.values[I];return N},"")+A},_I=function(M,N,D,j){var I="";do{D||M--,I=j(M)+I,M/=N}while(M*N>=N);return I},qI=function(M,N,D,j,I){var A=D-N+1;return(M<0?"-":"")+(_I(Math.abs(M),A,j,function(M){return u(Math.floor(M%A)+N)})+I)},$I=function(M,N,D){void 0===D&&(D=". ");var j=N.length;return _I(Math.abs(M),j,!1,function(M){return N[Math.floor(M%j)]})+D},MA=function(M,N,D,j,I,A){if(M<-9999||M>9999)return AA(M,4,I.length>0);var z=Math.abs(M),g=I;if(0===z)return N[0]+g;for(var T=0;z>0&&T<=4;T++){var u=z%10;0===u&&uj(A,1)&&""!==g?g=N[u]+g:u>1||1===u&&0===T||1===u&&1===T&&uj(A,2)||1===u&&1===T&&uj(A,4)&&M>100||1===u&&T>1&&uj(A,8)?g=N[u]+(T>0?D[T-1]:"")+g:1===u&&T>0&&(g=D[T-1]+g),z=Math.floor(z/10)}return(M<0?j:"")+g},NA="ๅ็™พๅƒ่ฌ",DA="ๆ‹พไฝฐไปŸ่ฌ",jA="ใƒžใ‚คใƒŠใ‚น",IA="๋งˆ์ด๋„ˆ์Šค",AA=function(M,N,D){var j=D?". ":"",I=D?"ใ€":"",A=D?", ":"",z=D?" ":"";switch(N){case 0:return"โ€ข"+z;case 1:return"โ—ฆ"+z;case 2:return"โ—พ"+z;case 5:var g=qI(M,48,57,!0,j);return g.length<4?"0"+g:g;case 4:return $I(M,"ใ€‡ไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน",I);case 6:return KI(M,1,3999,JI,3,j).toLowerCase();case 7:return KI(M,1,3999,JI,3,j);case 8:return qI(M,945,969,!1,j);case 9:return qI(M,97,122,!1,j);case 10:return qI(M,65,90,!1,j);case 11:return qI(M,1632,1641,!0,j);case 12:case 49:return KI(M,1,9999,PI,3,j);case 35:return KI(M,1,9999,PI,3,j).toLowerCase();case 13:return qI(M,2534,2543,!0,j);case 14:case 30:return qI(M,6112,6121,!0,j);case 15:return $I(M,"ๅญไธ‘ๅฏ…ๅฏ่พฐๅทณๅˆๆœช็”ณ้…‰ๆˆŒไบฅ",I);case 16:return $I(M,"็”ฒไน™ไธ™ไธๆˆŠๅทฑๅบš่พ›ๅฃฌ็™ธ",I);case 17:case 48:return MA(M,"้›ถไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน",NA,"่ฒ ",I,14);case 47:return MA(M,"้›ถๅฃน่ฒณๅƒ่‚†ไผ้™ธๆŸ’ๆŒ็Ž–",DA,"่ฒ ",I,15);case 42:return MA(M,"้›ถไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน",NA,"่ดŸ",I,14);case 41:return MA(M,"้›ถๅฃน่ดฐๅ่‚†ไผ้™†ๆŸ’ๆŒ็Ž–",DA,"่ดŸ",I,15);case 26:return MA(M,"ใ€‡ไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน","ๅ็™พๅƒไธ‡",jA,I,0);case 25:return MA(M,"้›ถๅฃฑๅผๅ‚ๅ››ไผๅ…ญไธƒๅ…ซไน","ๆ‹พ็™พๅƒไธ‡",jA,I,7);case 31:return MA(M,"์˜์ผ์ด์‚ผ์‚ฌ์˜ค์œก์น ํŒ”๊ตฌ","์‹ญ๋ฐฑ์ฒœ๋งŒ",IA,A,7);case 33:return MA(M,"้›ถไธ€ไบŒไธ‰ๅ››ไบ”ๅ…ญไธƒๅ…ซไน","ๅ็™พๅƒ่ฌ",IA,A,0);case 32:return MA(M,"้›ถๅฃน่ฒณๅƒๅ››ไบ”ๅ…ญไธƒๅ…ซไน","ๆ‹พ็™พๅƒ",IA,A,7);case 18:return qI(M,2406,2415,!0,j);case 20:return KI(M,1,19999,XI,3,j);case 21:return qI(M,2790,2799,!0,j);case 22:return qI(M,2662,2671,!0,j);case 22:return KI(M,1,10999,HI,3,j);case 23:return $I(M,"ใ‚ใ„ใ†ใˆใŠใ‹ใใใ‘ใ“ใ•ใ—ใ™ใ›ใใŸใกใคใฆใจใชใซใฌใญใฎใฏใฒใตใธใปใพใฟใ‚€ใ‚ใ‚‚ใ‚„ใ‚†ใ‚ˆใ‚‰ใ‚Šใ‚‹ใ‚Œใ‚ใ‚ใ‚ใ‚‘ใ‚’ใ‚“");case 24:return $I(M,"ใ„ใ‚ใฏใซใปใธใจใกใ‚Šใฌใ‚‹ใ‚’ใ‚ใ‹ใ‚ˆใŸใ‚Œใใคใญใชใ‚‰ใ‚€ใ†ใ‚ใฎใŠใใ‚„ใพใ‘ใตใ“ใˆใฆใ‚ใ•ใใ‚†ใ‚ใฟใ—ใ‚‘ใฒใ‚‚ใ›ใ™");case 27:return qI(M,3302,3311,!0,j);case 28:return $I(M,"ใ‚ขใ‚คใ‚ฆใ‚จใ‚ชใ‚ซใ‚ญใ‚ฏใ‚ฑใ‚ณใ‚ตใ‚ทใ‚นใ‚ปใ‚ฝใ‚ฟใƒใƒ„ใƒ†ใƒˆใƒŠใƒ‹ใƒŒใƒใƒŽใƒใƒ’ใƒ•ใƒ˜ใƒ›ใƒžใƒŸใƒ ใƒกใƒขใƒคใƒฆใƒจใƒฉใƒชใƒซใƒฌใƒญใƒฏใƒฐใƒฑใƒฒใƒณ",I);case 29:return $I(M,"ใ‚คใƒญใƒใƒ‹ใƒ›ใƒ˜ใƒˆใƒใƒชใƒŒใƒซใƒฒใƒฏใ‚ซใƒจใ‚ฟใƒฌใ‚ฝใƒ„ใƒใƒŠใƒฉใƒ ใ‚ฆใƒฐใƒŽใ‚ชใ‚ฏใƒคใƒžใ‚ฑใƒ•ใ‚ณใ‚จใƒ†ใ‚ขใ‚ตใ‚ญใƒฆใƒกใƒŸใ‚ทใƒฑใƒ’ใƒขใ‚ปใ‚น",I);case 34:return qI(M,3792,3801,!0,j);case 37:return qI(M,6160,6169,!0,j);case 38:return qI(M,4160,4169,!0,j);case 39:return qI(M,2918,2927,!0,j);case 40:return qI(M,1776,1785,!0,j);case 43:return qI(M,3046,3055,!0,j);case 44:return qI(M,3174,3183,!0,j);case 45:return qI(M,3664,3673,!0,j);case 46:return qI(M,3872,3881,!0,j);default:return qI(M,48,57,!0,j)}},zA="data-html2canvas-ignore",gA=function(){function M(M,N,D){if(this.context=M,this.options=D,this.scrolledElements=[],this.referenceElement=N,this.counters=new vI,this.quoteDepth=0,!N.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(N.ownerDocument.documentElement,!1)}return M.prototype.toIFrame=function(M,N){var D=this,A=uA(M,N);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var z=M.defaultView.pageXOffset,g=M.defaultView.pageYOffset,T=A.contentWindow,u=T.document,y=OA(A).then(function(){return j(D,void 0,void 0,function(){var M,D;return I(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(QA),T&&(T.scrollTo(N.left,N.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||T.scrollY===N.top&&T.scrollX===N.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(T.scrollX-N.left,T.scrollY-N.top,0,0))),M=this.options.onclone,void 0===(D=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:j.sent(),j.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,LA(u)]:[3,4];case 3:j.sent(),j.label=4;case 4:return"function"==typeof M?[2,Promise.resolve().then(function(){return M(u,D)}).then(function(){return A})]:[2,A]}})})});return u.open(),u.write(xA(document.doctype)+""),EA(this.referenceElement.ownerDocument,z,g),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),y},M.prototype.createElementClone=function(M){if(Cj(M,2),bI(M))return this.createCanvasClone(M);if(mI(M))return this.createVideoClone(M);if(WI(M))return this.createStyleClone(M);var N=M.cloneNode(!1);return ZI(N)&&(ZI(M)&&M.currentSrc&&M.currentSrc!==M.src&&(N.src=M.currentSrc,N.srcset=""),"lazy"===N.loading&&(N.loading="eager")),GI(N)?this.createCustomElementClone(N):N},M.prototype.createCustomElementClone=function(M){var N=document.createElement("html2canvascustomelement");return cA(M.style,N),N},M.prototype.createStyleClone=function(M){try{var N=M.sheet;if(N&&N.cssRules){var D=[].slice.call(N.cssRules,0).reduce(function(M,N){return N&&"string"==typeof N.cssText?M+N.cssText:M},""),j=M.cloneNode(!1);return j.textContent=D,j}}catch(M){if(this.context.logger.error("Unable to access cssRules property",M),"SecurityError"!==M.name)throw M}return M.cloneNode(!1)},M.prototype.createCanvasClone=function(M){var N;if(this.options.inlineImages&&M.ownerDocument){var D=M.ownerDocument.createElement("img");try{return D.src=M.toDataURL(),D}catch(N){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",M)}}var j=M.cloneNode(!1);try{j.width=M.width,j.height=M.height;var I=M.getContext("2d"),A=j.getContext("2d");if(A)if(!this.options.allowTaint&&I)A.putImageData(I.getImageData(0,0,M.width,M.height),0,0);else{var z=null!==(N=M.getContext("webgl2"))&&void 0!==N?N:M.getContext("webgl");if(z){var g=z.getContextAttributes();!1===(null==g?void 0:g.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",M)}A.drawImage(M,0,0)}return j}catch(N){this.context.logger.info("Unable to clone canvas as it is tainted",M)}return j},M.prototype.createVideoClone=function(M){var N=M.ownerDocument.createElement("canvas");N.width=M.offsetWidth,N.height=M.offsetHeight;var D=N.getContext("2d");try{return D&&(D.drawImage(M,0,0,N.width,N.height),this.options.allowTaint||D.getImageData(0,0,N.width,N.height)),N}catch(N){this.context.logger.info("Unable to clone video as it is tainted",M)}var j=M.ownerDocument.createElement("canvas");return j.width=M.offsetWidth,j.height=M.offsetHeight,j},M.prototype.appendChildNode=function(M,N,D){oI(N)&&("SCRIPT"===N.tagName||N.hasAttribute(zA)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(N))||this.options.copyStyles&&oI(N)&&WI(N)||M.appendChild(this.cloneNode(N,D))},M.prototype.cloneChildNodes=function(M,N,D){for(var j=this,I=M.shadowRoot?M.shadowRoot.firstChild:M.firstChild;I;I=I.nextSibling)if(oI(I)&&RI(I)&&"function"==typeof I.assignedNodes){var A=I.assignedNodes();A.length&&A.forEach(function(M){return j.appendChildNode(N,M,D)})}else this.appendChildNode(N,I,D)},M.prototype.cloneNode=function(M,N){if(nI(M))return document.createTextNode(M.data);if(!M.ownerDocument)return M.cloneNode(!1);var D=M.ownerDocument.defaultView;if(D&&oI(M)&&(lI(M)||sI(M))){var j=this.createElementClone(M);j.style.transitionProperty="none";var I=D.getComputedStyle(M),A=D.getComputedStyle(M,":before"),z=D.getComputedStyle(M,":after");this.referenceElement===M&&lI(j)&&(this.clonedReferenceElement=j),pI(j)&&tA(j);var g=this.counters.parse(new Uj(this.context,I)),T=this.resolvePseudoContent(M,j,A,hj.BEFORE);GI(M)&&(N=!0),mI(M)||this.cloneChildNodes(M,j,N),T&&j.insertBefore(T,j.firstChild);var u=this.resolvePseudoContent(M,j,z,hj.AFTER);return u&&j.appendChild(u),this.counters.pop(g),(I&&(this.options.copyStyles||sI(M))&&!VI(M)||N)&&cA(I,j),0===M.scrollTop&&0===M.scrollLeft||this.scrolledElements.push([j,M.scrollLeft,M.scrollTop]),(BI(M)||FI(M))&&(BI(j)||FI(j))&&(j.value=M.value),j}return M.cloneNode(!1)},M.prototype.resolvePseudoContent=function(M,N,D,j){var I=this;if(D){var A=D.content,z=N.ownerDocument;if(z&&A&&"none"!==A&&"-moz-alt-content"!==A&&"none"!==D.display){this.counters.parse(new Uj(this.context,D));var g=new tj(this.context,D),T=z.createElement("html2canvaspseudoelement");cA(D,T),g.content.forEach(function(N){if(0===N.type)T.appendChild(z.createTextNode(N.value));else if(22===N.type){var D=z.createElement("img");D.src=N.value,D.style.opacity="1",T.appendChild(D)}else if(18===N.type){if("attr"===N.name){var j=N.values.filter(vM);j.length&&T.appendChild(z.createTextNode(M.getAttribute(j[0].value)||""))}else if("counter"===N.name){var A=N.values.filter(XM),u=A[0],y=A[1];if(u&&vM(u)){var L=I.counters.getCounterValue(u.value),O=y&&vM(y)?lD.parse(I.context,y.value):3;T.appendChild(z.createTextNode(AA(L,O,!1)))}}else if("counters"===N.name){var i=N.values.filter(XM),c=(u=i[0],i[1]);if(y=i[2],u&&vM(u)){var x=I.counters.getCounterValues(u.value),E=y&&vM(y)?lD.parse(I.context,y.value):3,Q=c&&0===c.type?c.value:"",e=x.map(function(M){return AA(M,E,!1)}).join(Q);T.appendChild(z.createTextNode(e))}}}else if(20===N.type)switch(N.value){case"open-quote":T.appendChild(z.createTextNode(xj(g.quotes,I.quoteDepth++,!0)));break;case"close-quote":T.appendChild(z.createTextNode(xj(g.quotes,--I.quoteDepth,!1)));break;default:T.appendChild(z.createTextNode(N.value))}}),T.className=eA+" "+SA;var u=j===hj.BEFORE?" "+eA:" "+SA;return sI(N)?N.className.baseValue+=u:N.className+=u,T}}},M.destroy=function(M){return!!M.parentNode&&(M.parentNode.removeChild(M),!0)},M}();!function(M){M[M.BEFORE=0]="BEFORE",M[M.AFTER=1]="AFTER"}(hj||(hj={}));var TA,uA=function(M,N){var D=M.createElement("iframe");return D.className="html2canvas-container",D.style.visibility="hidden",D.style.position="fixed",D.style.left="-10000px",D.style.top="0px",D.style.border="0",D.width=N.width.toString(),D.height=N.height.toString(),D.scrolling="no",D.setAttribute(zA,"true"),M.body.appendChild(D),D},yA=function(M){return new Promise(function(N){M.complete?N():M.src?(M.onload=N,M.onerror=N):N()})},LA=function(M){return Promise.all([].slice.call(M.images,0).map(yA))},OA=function(M){return new Promise(function(N,D){var j=M.contentWindow;if(!j)return D("No window assigned for iframe");var I=j.document;j.onload=M.onload=function(){j.onload=M.onload=null;var D=setInterval(function(){I.body.childNodes.length>0&&"complete"===I.readyState&&(clearInterval(D),N(M))},50)}})},iA=["all","d","content"],cA=function(M,N){for(var D=M.length-1;D>=0;D--){var j=M.item(D);-1===iA.indexOf(j)&&N.style.setProperty(j,M.getPropertyValue(j))}return N},xA=function(M){var N="";return M&&(N+=""),N},EA=function(M,N,D){M&&M.defaultView&&(N!==M.defaultView.pageXOffset||D!==M.defaultView.pageYOffset)&&M.defaultView.scrollTo(N,D)},QA=function(M){var N=M[0],D=M[1],j=M[2];N.scrollLeft=D,N.scrollTop=j},eA="___html2canvas___pseudoelement_before",SA="___html2canvas___pseudoelement_after",kA='{\n content: "" !important;\n display: none !important;\n}',tA=function(M){UA(M,"."+eA+":before"+kA+"\n ."+SA+":after"+kA)},UA=function(M,N){var D=M.ownerDocument;if(D){var j=D.createElement("style");j.textContent=N,M.appendChild(j)}},YA=function(){function M(){}return M.getOrigin=function(N){var D=M._link;return D?(D.href=N,D.href=D.href,D.protocol+D.hostname+D.port):"about:blank"},M.isSameOrigin=function(N){return M.getOrigin(N)===M._origin},M.setContext=function(N){M._link=N.document.createElement("a"),M._origin=M.getOrigin(N.location.href)},M._origin="about:blank",M}(),CA=function(){function M(M,N){this.context=M,this._options=N,this._cache={}}return M.prototype.addImage=function(M){var N=Promise.resolve();return this.has(M)?N:dA(M)||oA(M)?((this._cache[M]=this.loadImage(M)).catch(function(){}),N):N},M.prototype.match=function(M){return this._cache[M]},M.prototype.loadImage=function(M){return j(this,void 0,void 0,function(){var N,D,j,A,z=this;return I(this,function(I){switch(I.label){case 0:return N=YA.isSameOrigin(M),D=!lA(M)&&!0===this._options.useCORS&&Hj.SUPPORT_CORS_IMAGES&&!N,j=!lA(M)&&!N&&!dA(M)&&"string"==typeof this._options.proxy&&Hj.SUPPORT_CORS_XHR&&!D,N||!1!==this._options.allowTaint||lA(M)||dA(M)||j||D?(A=M,j?[4,this.proxy(A)]:[3,2]):[2];case 1:A=I.sent(),I.label=2;case 2:return this.context.logger.debug("Added image "+M.substring(0,256)),[4,new Promise(function(M,N){var j=new Image;j.onload=function(){return M(j)},j.onerror=N,(sA(A)||D)&&(j.crossOrigin="anonymous"),j.src=A,!0===j.complete&&setTimeout(function(){return M(j)},500),z._options.imageTimeout>0&&setTimeout(function(){return N("Timed out ("+z._options.imageTimeout+"ms) loading image")},z._options.imageTimeout)})];case 3:return[2,I.sent()]}})})},M.prototype.has=function(M){return void 0!==this._cache[M]},M.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},M.prototype.proxy=function(M){var N=this,D=this._options.proxy;if(!D)throw new Error("No proxy defined");var j=M.substring(0,256);return new Promise(function(I,A){var z=Hj.SUPPORT_RESPONSE_TYPE?"blob":"text",g=new XMLHttpRequest;g.onload=function(){if(200===g.status)if("text"===z)I(g.response);else{var M=new FileReader;M.addEventListener("load",function(){return I(M.result)},!1),M.addEventListener("error",function(M){return A(M)},!1),M.readAsDataURL(g.response)}else A("Failed to proxy resource "+j+" with status code "+g.status)},g.onerror=A;var T=D.indexOf("?")>-1?"&":"?";if(g.open("GET",""+D+T+"url="+encodeURIComponent(M)+"&responseType="+z),"text"!==z&&g instanceof XMLHttpRequest&&(g.responseType=z),N._options.imageTimeout){var u=N._options.imageTimeout;g.timeout=u,g.ontimeout=function(){return A("Timed out ("+u+"ms) proxying "+j)}}g.send()})},M}(),aA=/^data:image\/svg\+xml/i,wA=/^data:image\/.*;base64,/i,nA=/^data:image\/.*/i,oA=function(M){return Hj.SUPPORT_SVG_DRAWING||!rA(M)},lA=function(M){return nA.test(M)},sA=function(M){return wA.test(M)},dA=function(M){return"blob"===M.substr(0,4)},rA=function(M){return"svg"===M.substr(-3).toLowerCase()||aA.test(M)},fA=function(){function M(M,N){this.type=0,this.x=M,this.y=N}return M.prototype.add=function(N,D){return new M(this.x+N,this.y+D)},M}(),hA=function(M,N,D){return new fA(M.x+(N.x-M.x)*D,M.y+(N.y-M.y)*D)},pA=function(){function M(M,N,D,j){this.type=1,this.start=M,this.startControl=N,this.endControl=D,this.end=j}return M.prototype.subdivide=function(N,D){var j=hA(this.start,this.startControl,N),I=hA(this.startControl,this.endControl,N),A=hA(this.endControl,this.end,N),z=hA(j,I,N),g=hA(I,A,N),T=hA(z,g,N);return D?new M(this.start,j,z,T):new M(T,g,A,this.end)},M.prototype.add=function(N,D){return new M(this.start.add(N,D),this.startControl.add(N,D),this.endControl.add(N,D),this.end.add(N,D))},M.prototype.reverse=function(){return new M(this.end,this.endControl,this.startControl,this.start)},M}(),bA=function(M){return 1===M.type},mA=function(M){var N=M.styles,D=M.bounds,j=IN(N.borderTopLeftRadius,D.width,D.height),I=j[0],A=j[1],z=IN(N.borderTopRightRadius,D.width,D.height),g=z[0],T=z[1],u=IN(N.borderBottomRightRadius,D.width,D.height),y=u[0],L=u[1],O=IN(N.borderBottomLeftRadius,D.width,D.height),i=O[0],c=O[1],x=[];x.push((I+g)/D.width),x.push((i+y)/D.width),x.push((A+c)/D.height),x.push((T+L)/D.height);var E=Math.max.apply(Math,x);E>1&&(I/=E,A/=E,g/=E,T/=E,y/=E,L/=E,i/=E,c/=E);var Q=D.width-g,e=D.height-L,S=D.width-y,k=D.height-c,t=N.borderTopWidth,U=N.borderRightWidth,Y=N.borderBottomWidth,C=N.borderLeftWidth,a=AN(N.paddingTop,M.bounds.width),w=AN(N.paddingRight,M.bounds.width),n=AN(N.paddingBottom,M.bounds.width),o=AN(N.paddingLeft,M.bounds.width);this.topLeftBorderDoubleOuterBox=I>0||A>0?ZA(D.left+C/3,D.top+t/3,I-C/3,A-t/3,TA.TOP_LEFT):new fA(D.left+C/3,D.top+t/3),this.topRightBorderDoubleOuterBox=I>0||A>0?ZA(D.left+Q,D.top+t/3,g-U/3,T-t/3,TA.TOP_RIGHT):new fA(D.left+D.width-U/3,D.top+t/3),this.bottomRightBorderDoubleOuterBox=y>0||L>0?ZA(D.left+S,D.top+e,y-U/3,L-Y/3,TA.BOTTOM_RIGHT):new fA(D.left+D.width-U/3,D.top+D.height-Y/3),this.bottomLeftBorderDoubleOuterBox=i>0||c>0?ZA(D.left+C/3,D.top+k,i-C/3,c-Y/3,TA.BOTTOM_LEFT):new fA(D.left+C/3,D.top+D.height-Y/3),this.topLeftBorderDoubleInnerBox=I>0||A>0?ZA(D.left+2*C/3,D.top+2*t/3,I-2*C/3,A-2*t/3,TA.TOP_LEFT):new fA(D.left+2*C/3,D.top+2*t/3),this.topRightBorderDoubleInnerBox=I>0||A>0?ZA(D.left+Q,D.top+2*t/3,g-2*U/3,T-2*t/3,TA.TOP_RIGHT):new fA(D.left+D.width-2*U/3,D.top+2*t/3),this.bottomRightBorderDoubleInnerBox=y>0||L>0?ZA(D.left+S,D.top+e,y-2*U/3,L-2*Y/3,TA.BOTTOM_RIGHT):new fA(D.left+D.width-2*U/3,D.top+D.height-2*Y/3),this.bottomLeftBorderDoubleInnerBox=i>0||c>0?ZA(D.left+2*C/3,D.top+k,i-2*C/3,c-2*Y/3,TA.BOTTOM_LEFT):new fA(D.left+2*C/3,D.top+D.height-2*Y/3),this.topLeftBorderStroke=I>0||A>0?ZA(D.left+C/2,D.top+t/2,I-C/2,A-t/2,TA.TOP_LEFT):new fA(D.left+C/2,D.top+t/2),this.topRightBorderStroke=I>0||A>0?ZA(D.left+Q,D.top+t/2,g-U/2,T-t/2,TA.TOP_RIGHT):new fA(D.left+D.width-U/2,D.top+t/2),this.bottomRightBorderStroke=y>0||L>0?ZA(D.left+S,D.top+e,y-U/2,L-Y/2,TA.BOTTOM_RIGHT):new fA(D.left+D.width-U/2,D.top+D.height-Y/2),this.bottomLeftBorderStroke=i>0||c>0?ZA(D.left+C/2,D.top+k,i-C/2,c-Y/2,TA.BOTTOM_LEFT):new fA(D.left+C/2,D.top+D.height-Y/2),this.topLeftBorderBox=I>0||A>0?ZA(D.left,D.top,I,A,TA.TOP_LEFT):new fA(D.left,D.top),this.topRightBorderBox=g>0||T>0?ZA(D.left+Q,D.top,g,T,TA.TOP_RIGHT):new fA(D.left+D.width,D.top),this.bottomRightBorderBox=y>0||L>0?ZA(D.left+S,D.top+e,y,L,TA.BOTTOM_RIGHT):new fA(D.left+D.width,D.top+D.height),this.bottomLeftBorderBox=i>0||c>0?ZA(D.left,D.top+k,i,c,TA.BOTTOM_LEFT):new fA(D.left,D.top+D.height),this.topLeftPaddingBox=I>0||A>0?ZA(D.left+C,D.top+t,Math.max(0,I-C),Math.max(0,A-t),TA.TOP_LEFT):new fA(D.left+C,D.top+t),this.topRightPaddingBox=g>0||T>0?ZA(D.left+Math.min(Q,D.width-U),D.top+t,Q>D.width+U?0:Math.max(0,g-U),Math.max(0,T-t),TA.TOP_RIGHT):new fA(D.left+D.width-U,D.top+t),this.bottomRightPaddingBox=y>0||L>0?ZA(D.left+Math.min(S,D.width-C),D.top+Math.min(e,D.height-Y),Math.max(0,y-U),Math.max(0,L-Y),TA.BOTTOM_RIGHT):new fA(D.left+D.width-U,D.top+D.height-Y),this.bottomLeftPaddingBox=i>0||c>0?ZA(D.left+C,D.top+Math.min(k,D.height-Y),Math.max(0,i-C),Math.max(0,c-Y),TA.BOTTOM_LEFT):new fA(D.left+C,D.top+D.height-Y),this.topLeftContentBox=I>0||A>0?ZA(D.left+C+o,D.top+t+a,Math.max(0,I-(C+o)),Math.max(0,A-(t+a)),TA.TOP_LEFT):new fA(D.left+C+o,D.top+t+a),this.topRightContentBox=g>0||T>0?ZA(D.left+Math.min(Q,D.width+C+o),D.top+t+a,Q>D.width+C+o?0:g-C+o,T-(t+a),TA.TOP_RIGHT):new fA(D.left+D.width-(U+w),D.top+t+a),this.bottomRightContentBox=y>0||L>0?ZA(D.left+Math.min(S,D.width-(C+o)),D.top+Math.min(e,D.height+t+a),Math.max(0,y-(U+w)),L-(Y+n),TA.BOTTOM_RIGHT):new fA(D.left+D.width-(U+w),D.top+D.height-(Y+n)),this.bottomLeftContentBox=i>0||c>0?ZA(D.left+C+o,D.top+k,Math.max(0,i-(C+o)),c-(Y+n),TA.BOTTOM_LEFT):new fA(D.left+C+o,D.top+D.height-(Y+n))};!function(M){M[M.TOP_LEFT=0]="TOP_LEFT",M[M.TOP_RIGHT=1]="TOP_RIGHT",M[M.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",M[M.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(TA||(TA={}));var ZA=function(M,N,D,j,I){var A=(Math.sqrt(2)-1)/3*4,z=D*A,g=j*A,T=M+D,u=N+j;switch(I){case TA.TOP_LEFT:return new pA(new fA(M,u),new fA(M,u-g),new fA(T-z,N),new fA(T,N));case TA.TOP_RIGHT:return new pA(new fA(M,N),new fA(M+z,N),new fA(T,u-g),new fA(T,u));case TA.BOTTOM_RIGHT:return new pA(new fA(T,N),new fA(T,N+g),new fA(M+z,u),new fA(M,u));case TA.BOTTOM_LEFT:default:return new pA(new fA(T,u),new fA(T-z,u),new fA(M,N+g),new fA(M,N))}},VA=function(M){return[M.topLeftBorderBox,M.topRightBorderBox,M.bottomRightBorderBox,M.bottomLeftBorderBox]},WA=function(M){return[M.topLeftPaddingBox,M.topRightPaddingBox,M.bottomRightPaddingBox,M.bottomLeftPaddingBox]},BA=function(M,N,D){this.offsetX=M,this.offsetY=N,this.matrix=D,this.type=0,this.target=6},FA=function(M,N){this.path=M,this.target=N,this.type=1},RA=function(M){this.opacity=M,this.type=2,this.target=6},GA=function(M){return 1===M.type},vA=function(M,N){return M.length===N.length&&M.some(function(M,D){return M===N[D]})},JA=function(M){this.element=M,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},PA=function(){function M(M,N){if(this.container=M,this.parent=N,this.effects=[],this.curves=new mA(this.container),this.container.styles.opacity<1&&this.effects.push(new RA(this.container.styles.opacity)),null!==this.container.styles.transform){var D=this.container.bounds.left+this.container.styles.transformOrigin[0].number,j=this.container.bounds.top+this.container.styles.transformOrigin[1].number,I=this.container.styles.transform;this.effects.push(new BA(D,j,I))}if(0!==this.container.styles.overflowX){var A=VA(this.curves),z=WA(this.curves);vA(A,z)?this.effects.push(new FA(A,6)):(this.effects.push(new FA(A,2)),this.effects.push(new FA(z,4)))}}return M.prototype.getEffects=function(M){for(var N=-1===[2,3].indexOf(this.container.styles.position),D=this.parent,j=this.effects.slice(0);D;){var I=D.effects.filter(function(M){return!GA(M)});if(N||0!==D.container.styles.position||!D.parent){if(j.unshift.apply(j,I),N=-1===[2,3].indexOf(D.container.styles.position),0!==D.container.styles.overflowX){var A=VA(D.curves),z=WA(D.curves);vA(A,z)||j.unshift(new FA(z,6))}}else j.unshift.apply(j,I);D=D.parent}return j.filter(function(N){return uj(N.target,M)})},M}(),HA=function(M,N,D,j){M.container.elements.forEach(function(I){var A=uj(I.flags,4),z=uj(I.flags,2),g=new PA(I,M);uj(I.styles.display,2048)&&j.push(g);var T=uj(I.flags,8)?[]:j;if(A||z){var u=A||I.styles.isPositioned()?D:N,y=new JA(g);if(I.styles.isPositioned()||I.styles.opacity<1||I.styles.isTransformed()){var L=I.styles.zIndex.order;if(L<0){var O=0;u.negativeZIndex.some(function(M,N){return L>M.element.container.styles.zIndex.order?(O=N,!1):O>0}),u.negativeZIndex.splice(O,0,y)}else if(L>0){var i=0;u.positiveZIndex.some(function(M,N){return L>=M.element.container.styles.zIndex.order?(i=N+1,!1):i>0}),u.positiveZIndex.splice(i,0,y)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(y)}else I.styles.isFloating()?u.nonPositionedFloats.push(y):u.nonPositionedInlineLevel.push(y);HA(g,y,A?y:D,T)}else I.styles.isInlineLevel()?N.inlineLevel.push(g):N.nonInlineLevel.push(g),HA(g,N,D,T);uj(I.flags,8)&&XA(I,T)})},XA=function(M,N){for(var D=M instanceof yI?M.start:1,j=M instanceof yI&&M.reversed,I=0;I0&&M.intrinsicHeight>0){var j=Mz(M),I=WA(N);this.path(I),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(D,0,0,M.intrinsicWidth,M.intrinsicHeight,j.left,j.top,j.width,j.height),this.ctx.restore()}},D.prototype.renderNodeContent=function(M){return j(this,void 0,void 0,function(){var N,j,A,g,T,u,y,L,O,i,c,x,E,Q,e,S,k,t;return I(this,function(I){switch(I.label){case 0:this.applyEffects(M.getEffects(4)),N=M.container,j=M.curves,A=N.styles,g=0,T=N.textNodes,I.label=1;case 1:return g0&&C>0&&(e=j.ctx.createPattern(x,"repeat"),j.renderRepeat(k,e,w,n))):function(M){return 2===M.type}(D)&&(S=Nz(M,N,[null,null,null]),k=S[0],t=S[1],U=S[2],Y=S[3],C=S[4],a=0===D.position.length?[DN]:D.position,w=AN(a[0],Y),n=AN(a[a.length-1],C),o=function(M,N,D,j,I){var A=0,z=0;switch(M.size){case 0:0===M.shape?A=z=Math.min(Math.abs(N),Math.abs(N-j),Math.abs(D),Math.abs(D-I)):1===M.shape&&(A=Math.min(Math.abs(N),Math.abs(N-j)),z=Math.min(Math.abs(D),Math.abs(D-I)));break;case 2:if(0===M.shape)A=z=Math.min(oN(N,D),oN(N,D-I),oN(N-j,D),oN(N-j,D-I));else if(1===M.shape){var g=Math.min(Math.abs(D),Math.abs(D-I))/Math.min(Math.abs(N),Math.abs(N-j)),T=lN(j,I,N,D,!0),u=T[0],y=T[1];z=g*(A=oN(u-N,(y-D)/g))}break;case 1:0===M.shape?A=z=Math.max(Math.abs(N),Math.abs(N-j),Math.abs(D),Math.abs(D-I)):1===M.shape&&(A=Math.max(Math.abs(N),Math.abs(N-j)),z=Math.max(Math.abs(D),Math.abs(D-I)));break;case 3:if(0===M.shape)A=z=Math.max(oN(N,D),oN(N,D-I),oN(N-j,D),oN(N-j,D-I));else if(1===M.shape){g=Math.max(Math.abs(D),Math.abs(D-I))/Math.max(Math.abs(N),Math.abs(N-j));var L=lN(j,I,N,D,!1);u=L[0],y=L[1],z=g*(A=oN(u-N,(y-D)/g))}}return Array.isArray(M.size)&&(A=AN(M.size[0],j),z=2===M.size.length?AN(M.size[1],I):A),[A,z]}(D,w,n,Y,C),l=o[0],s=o[1],l>0&&s>0&&(d=j.ctx.createRadialGradient(t+w,U+n,0,t+w,U+n,l),wN(D.stops,2*l).forEach(function(M){return d.addColorStop(M.stop,cN(M.color))}),j.path(k),j.ctx.fillStyle=d,l!==s?(r=M.bounds.left+.5*M.bounds.width,f=M.bounds.top+.5*M.bounds.height,p=1/(h=s/l),j.ctx.save(),j.ctx.translate(r,f),j.ctx.transform(1,0,0,h,0,0),j.ctx.translate(-r,-f),j.ctx.fillRect(t,p*(U-f)+f,Y,C*p),j.ctx.restore()):j.ctx.fill())),I.label=6;case 6:return N--,[2]}})},j=this,A=0,z=M.styles.backgroundImage.slice(0).reverse(),T.label=1;case 1:return A0?2!==u.style?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,z,M.curves,2)]:[3,11]:[3,13];case 4:return I.sent(),[3,11];case 5:return 3!==u.style?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,z,M.curves,3)];case 6:return I.sent(),[3,11];case 7:return 4!==u.style?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,z,M.curves)];case 8:return I.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,z,M.curves)];case 10:I.sent(),I.label=11;case 11:z++,I.label=12;case 12:return g++,[3,3];case 13:return[2]}})})},D.prototype.renderDashedDottedBorder=function(M,N,D,A,z){return j(this,void 0,void 0,function(){var j,g,T,u,y,L,O,i,c,x,E,Q,e,S,k,t;return I(this,function(I){return this.ctx.save(),j=function(M,N){switch(N){case 0:return _A(M.topLeftBorderStroke,M.topRightBorderStroke);case 1:return _A(M.topRightBorderStroke,M.bottomRightBorderStroke);case 2:return _A(M.bottomRightBorderStroke,M.bottomLeftBorderStroke);default:return _A(M.bottomLeftBorderStroke,M.topLeftBorderStroke)}}(A,D),g=KA(A,D),2===z&&(this.path(g),this.ctx.clip()),bA(g[0])?(T=g[0].start.x,u=g[0].start.y):(T=g[0].x,u=g[0].y),bA(g[1])?(y=g[1].end.x,L=g[1].end.y):(y=g[1].x,L=g[1].y),O=0===D||2===D?Math.abs(T-y):Math.abs(u-L),this.ctx.beginPath(),3===z?this.formatPath(j):this.formatPath(g.slice(0,2)),i=N<3?3*N:2*N,c=N<3?2*N:N,3===z&&(i=N,c=N),x=!0,O<=2*i?x=!1:O<=2*i+c?(i*=E=O/(2*i+c),c*=E):(Q=Math.floor((O+c)/(i+c)),e=(O-Q*i)/(Q-1),c=(S=(O-(Q+1)*i)/Q)<=0||Math.abs(c-e)=D||N<0||Q&&M-y>=z}function t(){var M=i();if(k(M))return U(M);T=setTimeout(t,function(M){var N=D-(M-u);return Q?O(N,z-(M-y)):N}(M))}function U(M){return T=void 0,e&&I?S(M):(I=A=void 0,g)}function Y(){var M=i(),N=k(M);if(I=arguments,A=this,u=M,N){if(void 0===T)return function(M){return y=M,T=setTimeout(t,D),E?S(M):g}(u);if(Q)return T=setTimeout(t,D),S(u)}return void 0===T&&(T=setTimeout(t,D)),g}return D=x(D)||0,c(j)&&(E=!!j.leading,z=(Q="maxWait"in j)?L(x(j.maxWait)||0,D):z,e="trailing"in j?!!j.trailing:e),Y.cancel=function(){void 0!==T&&clearTimeout(T),y=0,I=u=A=T=void 0},Y.flush=function(){return void 0===T?g:U(i())},Y}(M,D,{leading:I,maxWait:D,trailing:A})}},819(M,N,D){var j;!function(I){var A=/^\s+/,z=/\s+$/,g=0,T=I.round,u=I.min,y=I.max,L=I.random;function O(M,N){if(N=N||{},(M=M||"")instanceof O)return M;if(!(this instanceof O))return new O(M,N);var D=function(M){var N,D,j,g={r:0,g:0,b:0},T=1,L=null,O=null,i=null,c=!1,x=!1;return"string"==typeof M&&(M=function(M){M=M.replace(A,"").replace(z,"").toLowerCase();var N,D=!1;if(s[M])M=s[M],D=!0;else if("transparent"==M)return{r:0,g:0,b:0,a:0,format:"name"};return(N=R.rgb.exec(M))?{r:N[1],g:N[2],b:N[3]}:(N=R.rgba.exec(M))?{r:N[1],g:N[2],b:N[3],a:N[4]}:(N=R.hsl.exec(M))?{h:N[1],s:N[2],l:N[3]}:(N=R.hsla.exec(M))?{h:N[1],s:N[2],l:N[3],a:N[4]}:(N=R.hsv.exec(M))?{h:N[1],s:N[2],v:N[3]}:(N=R.hsva.exec(M))?{h:N[1],s:N[2],v:N[3],a:N[4]}:(N=R.hex8.exec(M))?{r:p(N[1]),g:p(N[2]),b:p(N[3]),a:V(N[4]),format:D?"name":"hex8"}:(N=R.hex6.exec(M))?{r:p(N[1]),g:p(N[2]),b:p(N[3]),format:D?"name":"hex"}:(N=R.hex4.exec(M))?{r:p(N[1]+""+N[1]),g:p(N[2]+""+N[2]),b:p(N[3]+""+N[3]),a:V(N[4]+""+N[4]),format:D?"name":"hex8"}:!!(N=R.hex3.exec(M))&&{r:p(N[1]+""+N[1]),g:p(N[2]+""+N[2]),b:p(N[3]+""+N[3]),format:D?"name":"hex"}}(M)),"object"==typeof M&&(G(M.r)&&G(M.g)&&G(M.b)?(N=M.r,D=M.g,j=M.b,g={r:255*f(N,255),g:255*f(D,255),b:255*f(j,255)},c=!0,x="%"===String(M.r).substr(-1)?"prgb":"rgb"):G(M.h)&&G(M.s)&&G(M.v)?(L=m(M.s),O=m(M.v),g=function(M,N,D){M=6*f(M,360),N=f(N,100),D=f(D,100);var j=I.floor(M),A=M-j,z=D*(1-N),g=D*(1-A*N),T=D*(1-(1-A)*N),u=j%6;return{r:255*[D,g,z,z,T,D][u],g:255*[T,D,D,g,z,z][u],b:255*[z,z,T,D,D,g][u]}}(M.h,L,O),c=!0,x="hsv"):G(M.h)&&G(M.s)&&G(M.l)&&(L=m(M.s),i=m(M.l),g=function(M,N,D){var j,I,A;function z(M,N,D){return D<0&&(D+=1),D>1&&(D-=1),D<1/6?M+6*(N-M)*D:D<.5?N:D<2/3?M+(N-M)*(2/3-D)*6:M}if(M=f(M,360),N=f(N,100),D=f(D,100),0===N)j=I=A=D;else{var g=D<.5?D*(1+N):D+N-D*N,T=2*D-g;j=z(T,g,M+1/3),I=z(T,g,M),A=z(T,g,M-1/3)}return{r:255*j,g:255*I,b:255*A}}(M.h,L,i),c=!0,x="hsl"),M.hasOwnProperty("a")&&(T=M.a)),T=r(T),{ok:c,format:M.format||x,r:u(255,y(g.r,0)),g:u(255,y(g.g,0)),b:u(255,y(g.b,0)),a:T}}(M);this._originalInput=M,this._r=D.r,this._g=D.g,this._b=D.b,this._a=D.a,this._roundA=T(100*this._a)/100,this._format=N.format||D.format,this._gradientType=N.gradientType,this._r<1&&(this._r=T(this._r)),this._g<1&&(this._g=T(this._g)),this._b<1&&(this._b=T(this._b)),this._ok=D.ok,this._tc_id=g++}function i(M,N,D){M=f(M,255),N=f(N,255),D=f(D,255);var j,I,A=y(M,N,D),z=u(M,N,D),g=(A+z)/2;if(A==z)j=I=0;else{var T=A-z;switch(I=g>.5?T/(2-A-z):T/(A+z),A){case M:j=(N-D)/T+(N>1)+720)%360;--N;)j.h=(j.h+I)%360,A.push(O(j));return A}function l(M,N){N=N||6;for(var D=O(M).toHsv(),j=D.h,I=D.s,A=D.v,z=[],g=1/N;N--;)z.push(O({h:j,s:I,v:A})),A=(A+g)%1;return z}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var M=this.toRgb();return(299*M.r+587*M.g+114*M.b)/1e3},getLuminance:function(){var M,N,D,j=this.toRgb();return M=j.r/255,N=j.g/255,D=j.b/255,.2126*(M<=.03928?M/12.92:I.pow((M+.055)/1.055,2.4))+.7152*(N<=.03928?N/12.92:I.pow((N+.055)/1.055,2.4))+.0722*(D<=.03928?D/12.92:I.pow((D+.055)/1.055,2.4))},setAlpha:function(M){return this._a=r(M),this._roundA=T(100*this._a)/100,this},toHsv:function(){var M=c(this._r,this._g,this._b);return{h:360*M.h,s:M.s,v:M.v,a:this._a}},toHsvString:function(){var M=c(this._r,this._g,this._b),N=T(360*M.h),D=T(100*M.s),j=T(100*M.v);return 1==this._a?"hsv("+N+", "+D+"%, "+j+"%)":"hsva("+N+", "+D+"%, "+j+"%, "+this._roundA+")"},toHsl:function(){var M=i(this._r,this._g,this._b);return{h:360*M.h,s:M.s,l:M.l,a:this._a}},toHslString:function(){var M=i(this._r,this._g,this._b),N=T(360*M.h),D=T(100*M.s),j=T(100*M.l);return 1==this._a?"hsl("+N+", "+D+"%, "+j+"%)":"hsla("+N+", "+D+"%, "+j+"%, "+this._roundA+")"},toHex:function(M){return x(this._r,this._g,this._b,M)},toHexString:function(M){return"#"+this.toHex(M)},toHex8:function(M){return function(M,N,D,j,I){var A=[b(T(M).toString(16)),b(T(N).toString(16)),b(T(D).toString(16)),b(Z(j))];return I&&A[0].charAt(0)==A[0].charAt(1)&&A[1].charAt(0)==A[1].charAt(1)&&A[2].charAt(0)==A[2].charAt(1)&&A[3].charAt(0)==A[3].charAt(1)?A[0].charAt(0)+A[1].charAt(0)+A[2].charAt(0)+A[3].charAt(0):A.join("")}(this._r,this._g,this._b,this._a,M)},toHex8String:function(M){return"#"+this.toHex8(M)},toRgb:function(){return{r:T(this._r),g:T(this._g),b:T(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+T(this._r)+", "+T(this._g)+", "+T(this._b)+")":"rgba("+T(this._r)+", "+T(this._g)+", "+T(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:T(100*f(this._r,255))+"%",g:T(100*f(this._g,255))+"%",b:T(100*f(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+T(100*f(this._r,255))+"%, "+T(100*f(this._g,255))+"%, "+T(100*f(this._b,255))+"%)":"rgba("+T(100*f(this._r,255))+"%, "+T(100*f(this._g,255))+"%, "+T(100*f(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(d[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(M){var N="#"+E(this._r,this._g,this._b,this._a),D=N,j=this._gradientType?"GradientType = 1, ":"";if(M){var I=O(M);D="#"+E(I._r,I._g,I._b,I._a)}return"progid:DXImageTransform.Microsoft.gradient("+j+"startColorstr="+N+",endColorstr="+D+")"},toString:function(M){var N=!!M;M=M||this._format;var D=!1,j=this._a<1&&this._a>=0;return N||!j||"hex"!==M&&"hex6"!==M&&"hex3"!==M&&"hex4"!==M&&"hex8"!==M&&"name"!==M?("rgb"===M&&(D=this.toRgbString()),"prgb"===M&&(D=this.toPercentageRgbString()),"hex"!==M&&"hex6"!==M||(D=this.toHexString()),"hex3"===M&&(D=this.toHexString(!0)),"hex4"===M&&(D=this.toHex8String(!0)),"hex8"===M&&(D=this.toHex8String()),"name"===M&&(D=this.toName()),"hsl"===M&&(D=this.toHslString()),"hsv"===M&&(D=this.toHsvString()),D||this.toHexString()):"name"===M&&0===this._a?this.toName():this.toRgbString()},clone:function(){return O(this.toString())},_applyModification:function(M,N){var D=M.apply(null,[this].concat([].slice.call(N)));return this._r=D._r,this._g=D._g,this._b=D._b,this.setAlpha(D._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(t,arguments)},darken:function(){return this._applyModification(U,arguments)},desaturate:function(){return this._applyModification(Q,arguments)},saturate:function(){return this._applyModification(e,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(Y,arguments)},_applyCombination:function(M,N){return M.apply(null,[this].concat([].slice.call(N)))},analogous:function(){return this._applyCombination(o,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(l,arguments)},splitcomplement:function(){return this._applyCombination(n,arguments)},triad:function(){return this._applyCombination(a,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},O.fromRatio=function(M,N){if("object"==typeof M){var D={};for(var j in M)M.hasOwnProperty(j)&&(D[j]="a"===j?M[j]:m(M[j]));M=D}return O(M,N)},O.equals=function(M,N){return!(!M||!N)&&O(M).toRgbString()==O(N).toRgbString()},O.random=function(){return O.fromRatio({r:L(),g:L(),b:L()})},O.mix=function(M,N,D){D=0===D?0:D||50;var j=O(M).toRgb(),I=O(N).toRgb(),A=D/100;return O({r:(I.r-j.r)*A+j.r,g:(I.g-j.g)*A+j.g,b:(I.b-j.b)*A+j.b,a:(I.a-j.a)*A+j.a})},O.readability=function(M,N){var D=O(M),j=O(N);return(I.max(D.getLuminance(),j.getLuminance())+.05)/(I.min(D.getLuminance(),j.getLuminance())+.05)},O.isReadable=function(M,N,D){var j,I,A,z,g,T=O.readability(M,N);switch(I=!1,(A=D,"AA"!==(z=((A=A||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==z&&(z="AA"),"small"!==(g=(A.size||"small").toLowerCase())&&"large"!==g&&(g="small"),j={level:z,size:g}).level+j.size){case"AAsmall":case"AAAlarge":I=T>=4.5;break;case"AAlarge":I=T>=3;break;case"AAAsmall":I=T>=7}return I},O.mostReadable=function(M,N,D){var j,I,A,z,g=null,T=0;I=(D=D||{}).includeFallbackColors,A=D.level,z=D.size;for(var u=0;uT&&(T=j,g=O(N[u]));return O.isReadable(M,g,{level:A,size:z})||!I?g:(D.includeFallbackColors=!1,O.mostReadable(M,["#fff","#000"],D))};var s=O.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},d=O.hexNames=function(M){var N={};for(var D in M)M.hasOwnProperty(D)&&(N[M[D]]=D);return N}(s);function r(M){return M=parseFloat(M),(isNaN(M)||M<0||M>1)&&(M=1),M}function f(M,N){(function(M){return"string"==typeof M&&-1!=M.indexOf(".")&&1===parseFloat(M)})(M)&&(M="100%");var D=function(M){return"string"==typeof M&&-1!=M.indexOf("%")}(M);return M=u(N,y(0,parseFloat(M))),D&&(M=parseInt(M*N,10)/100),I.abs(M-N)<1e-6?1:M%N/parseFloat(N)}function h(M){return u(1,y(0,M))}function p(M){return parseInt(M,16)}function b(M){return 1==M.length?"0"+M:""+M}function m(M){return M<=1&&(M=100*M+"%"),M}function Z(M){return I.round(255*parseFloat(M)).toString(16)}function V(M){return p(M)/255}var W,B,F,R=(B="[\\s|\\(]+("+(W="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",F="[\\s|\\(]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")[,|\\s]+("+W+")\\s*\\)?",{CSS_UNIT:new RegExp(W),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(M){return!!R.CSS_UNIT.exec(M)}M.exports?M.exports=O:void 0===(j=function(){return O}.call(N,D,N,M))||(M.exports=j)}(Math)},160(M,N,D){"use strict";var j=D(609),I="function"==typeof Object.is?Object.is:function(M,N){return M===N&&(0!==M||1/M==1/N)||M!=M&&N!=N},A=j.useSyncExternalStore,z=j.useRef,g=j.useEffect,T=j.useMemo,u=j.useDebugValue;N.useSyncExternalStoreWithSelector=function(M,N,D,j,y){var L=z(null);if(null===L.current){var O={hasValue:!1,value:null};L.current=O}else O=L.current;L=T(function(){function M(M){if(!g){if(g=!0,A=M,M=j(M),void 0!==y&&O.hasValue){var N=O.value;if(y(N,M))return z=N}return z=M}if(N=z,I(A,M))return N;var D=j(M);return void 0!==y&&y(N,D)?(A=M,N):(A=M,z=D)}var A,z,g=!1,T=void 0===D?null:D;return[function(){return M(N())},null===T?void 0:function(){return M(T())}]},[N,D,j,y]);var i=A(M,L[0],L[1]);return g(function(){O.hasValue=!0,O.value=i},[i]),u(i),i}},418(M,N,D){"use strict";M.exports=D(160)},609(M){"use strict";M.exports=window.React}};const N={};function D(j){const I=N[j];if(void 0!==I)return I.exports;const A=N[j]={exports:{}};return M[j].call(A.exports,A,A.exports,D),A.exports}D.n=M=>{const N=M&&M.__esModule?()=>M.default:()=>M;return D.d(N,{a:N}),N},(()=>{const M=Object.getPrototypeOf?M=>Object.getPrototypeOf(M):M=>M.__proto__;let N;D.t=function(j,I){if(1&I&&(j=this(j)),8&I)return j;if("object"==typeof j&&j){if(4&I&&j.__esModule)return j;if(16&I&&"function"==typeof j.then)return j}const A=Object.create(null);D.r(A);const z={};N=N||[null,M({}),M([]),M(M)];for(var g=2&I&&j;("object"==typeof g||"function"==typeof g)&&!~N.indexOf(g);g=M(g))Object.getOwnPropertyNames(g).forEach(M=>z[M]=()=>j[M]);return z.default=()=>j,D.d(A,z),A}})(),D.d=(M,N)=>{if(Array.isArray(N))for(var j=0;jObject.hasOwn(M,N),D.r=M=>{Symbol.toStringTag&&Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(M,"__esModule",{value:!0})},(()=>{let M;globalThis.importScripts&&(M=globalThis.location+"");const N=globalThis.document;if(!M&&N&&("SCRIPT"===N.currentScript?.tagName.toUpperCase()&&(M=N.currentScript.src),!M)){const D=N.getElementsByTagName("script");if(D.length){let N=D.length-1;for(;N>-1&&(!M||!/^http(s?):/.test(M));)M=D[N--].src}}if(!M)throw new Error("Automatic publicPath is not supported in this browser");M=M.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),D.p=M})(),(()=>{"use strict";const M=window.ReactDOM;var N=D(609),j=D.t(N,2),I=D.n(N),A=D(418);function z(M){M()}var g={notify(){},get:()=>[]};var T=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),u=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),y=(()=>T||u?N.useLayoutEffect:N.useEffect)();function L(M,N){return M===N?0!==M||0!==N||1/M==1/N:M!=M&&N!=N}function O(M,N){if(L(M,N))return!0;if("object"!=typeof M||null===M||"object"!=typeof N||null===N)return!1;const D=Object.keys(M),j=Object.keys(N);if(D.length!==j.length)return!1;for(let j=0;j{const M=function(M,N){let D,j=g,I=0,A=!1;function T(){L.onStateChange&&L.onStateChange()}function u(){I++,D||(D=N?N.addNestedSub(T):M.subscribe(T),j=function(){let M=null,N=null;return{clear(){M=null,N=null},notify(){z(()=>{let N=M;for(;N;)N.callback(),N=N.next})},get(){const N=[];let D=M;for(;D;)N.push(D),D=D.next;return N},subscribe(D){let j=!0;const I=N={callback:D,next:null,prev:N};return I.prev?I.prev.next=I:M=I,function(){j&&null!==M&&(j=!1,I.next?I.next.prev=I.prev:N=I.prev,I.prev?I.prev.next=I.next:M=I.next)}}}}())}function y(){I--,D&&0===I&&(D(),D=void 0,j.clear(),j=g)}const L={addNestedSub:function(M){u();const N=j.subscribe(M);let D=!1;return()=>{D||(D=!0,N(),y())}},notifyNestedSubs:function(){j.notify()},handleChangeWrapper:T,isSubscribed:function(){return A},trySubscribe:function(){A||(A=!0,u())},tryUnsubscribe:function(){A&&(A=!1,y())},getListeners:()=>j};return L}(A);return{store:A,subscription:M,getServerState:I?()=>I:void 0}},[A,I]),u=N.useMemo(()=>A.getState(),[A]);y(()=>{const{subscription:M}=T;return M.onStateChange=M.notifyNestedSubs,M.trySubscribe(),u!==A.getState()&&M.notifyNestedSubs(),()=>{M.tryUnsubscribe(),M.onStateChange=void 0}},[T,u]);const L=j||E;return N.createElement(L.Provider,{value:T},D)};function e(M=E){return function(){return N.useContext(M)}}var S=e();function k(M=E){const N=M===E?S:e(M),D=()=>{const{store:M}=N();return M};return Object.assign(D,{withTypes:()=>D}),D}var t=k();function U(M=E){const N=M===E?t:k(M),D=()=>N().dispatch;return Object.assign(D,{withTypes:()=>D}),D}var Y=U(),C=(M,N)=>M===N;function a(M=E){const D=M===E?S:e(M),j=(M,j={})=>{const{equalityFn:I=C}="function"==typeof j?{equalityFn:j}:j,z=D(),{store:g,subscription:T,getServerState:u}=z,y=(N.useRef(!0),N.useCallback({[M.name]:N=>M(N)}[M.name],[M])),L=(0,A.useSyncExternalStoreWithSelector)(T.addNestedSub,g.getState,u||g.getState,y,I);return N.useDebugValue(L),L};return Object.assign(j,{withTypes:()=>j}),j}var w=a(),n=z,o=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,l=/^[\\/]{2}/;var s="popstate";function d(M){return"object"==typeof M&&null!=M&&"pathname"in M&&"search"in M&&"hash"in M&&"state"in M&&"key"in M}function r(M={}){return function(M,N,D,j={}){let{window:I=document.defaultView,v5Compat:A=!1}=j,z=I.history,g="POP",T=null,u=y();function y(){return(z.state||{idx:null}).idx}function L(){g="POP";let M=y(),N=null==M?null:M-u;u=M,T&&T({action:g,location:i.location,delta:N})}function O(M){return function(M,N,D=!1){let j="http://localhost";M&&(j="null"!==M.location.origin?M.location.origin:M.location.href),f(j,"No window.location.(origin|href) available to create URL");let I="string"==typeof N?N:m(N);return I=I.replace(/ $/,"%20"),!D&&l.test(I)&&(I=j+I),new URL(I,j)}(I,M)}null==u&&(u=0,z.replaceState({...z.state,idx:u},""));let i={get action(){return g},get location(){return M(I,z)},listen(M){if(T)throw new Error("A history only accepts one active listener");return I.addEventListener(s,L),T=M,()=>{I.removeEventListener(s,L),T=null}},createHref:M=>N(I,M),createURL:O,encodeLocation(M){let N=O(M);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:function(M,N){g="PUSH";let j=d(M)?M:b(i.location,M,N);D&&D(j,M),u=y()+1;let L=p(j,u),O=i.createHref(j.mask||j);try{z.pushState(L,"",O)}catch(M){if(M instanceof DOMException&&"DataCloneError"===M.name)throw M;I.location.assign(O)}A&&T&&T({action:g,location:i.location,delta:1})},replace:function(M,N){g="REPLACE";let j=d(M)?M:b(i.location,M,N);D&&D(j,M),u=y();let I=p(j,u),L=i.createHref(j.mask||j);z.replaceState(I,"",L),A&&T&&T({action:g,location:i.location,delta:0})},go:M=>z.go(M)};return i}(function(M,N){let{pathname:D="/",search:j="",hash:I=""}=Z(M.location.hash.substring(1));return D.startsWith("/")||D.startsWith(".")||(D="/"+D),b("",{pathname:D,search:j,hash:I},N.state&&N.state.usr||null,N.state&&N.state.key||"default")},function(M,N){let D=M.document.querySelector("base"),j="";if(D&&D.getAttribute("href")){let N=M.location.href,D=N.indexOf("#");j=-1===D?N:N.slice(0,D)}return j+"#"+("string"==typeof N?N:m(N))},function(M,N){h("/"===M.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(N)})`)},M)}function f(M,N){if(!1===M||null==M)throw new Error(N)}function h(M,N){if(!M){"undefined"!=typeof console&&console.warn(N);try{throw new Error(N)}catch(M){}}}function p(M,N){return{usr:M.state,key:M.key,idx:N,masked:M.mask?{pathname:M.pathname,search:M.search,hash:M.hash}:void 0}}function b(M,N,D=null,j,I){return{pathname:"string"==typeof M?M:M.pathname,search:"",hash:"",..."string"==typeof N?Z(N):N,state:D,key:N&&N.key||j||Math.random().toString(36).substring(2,10),mask:I}}function m({pathname:M="/",search:N="",hash:D=""}){return N&&"?"!==N&&(M+="?"===N.charAt(0)?N:"?"+N),D&&"#"!==D&&(M+="#"===D.charAt(0)?D:"#"+D),M}function Z(M){let N={};if(M){let D=M.indexOf("#");D>=0&&(N.hash=M.substring(D),M=M.substring(0,D));let j=M.indexOf("?");j>=0&&(N.search=M.substring(j),M=M.substring(0,j)),M&&(N.pathname=M)}return N}function V(M,N,D="/"){return W(M,N,D,!1)}function W(M,N,D,j,I){let A=NM(("string"==typeof N?Z(N):N).pathname||"/",D);if(null==A)return null;let z=I??function(M){let N=B(M);return function(M){M.sort((M,N)=>M.score!==N.score?N.score-M.score:function(M,N){let D=M.length===N.length&&M.slice(0,-1).every((M,D)=>M===N[D]);return D?M[M.length-1]-N[N.length-1]:0}(M.routesMeta.map(M=>M.childrenIndex),N.routesMeta.map(M=>M.childrenIndex)))}(N),N}(M),g=null,T=function(M){try{return M.split("/").map(M=>decodeURIComponent(M).replace(/\//g,"%2F")).join("/")}catch(N){return h(!1,`The URL path "${M}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${N}).`),M}}(A);for(let M=0;null==g&&M{let T={relativePath:void 0===g?M.path||"":g,caseSensitive:!0===M.caseSensitive,childrenIndex:A,route:M};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(j)&&z)return;f(T.relativePath.startsWith(j),`Absolute route path "${T.relativePath}" nested under path "${j}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(j.length)}let u=gM([j,T.relativePath]),y=D.concat(T);M.children&&M.children.length>0&&(f(!0!==M.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),B(M.children,N,y,u,z)),(null!=M.path||M.index)&&N.push({path:u,score:K(u,M.index),routesMeta:y.map((M,N)=>{let[D,j]=MM(M.relativePath,M.caseSensitive,N===y.length-1);return{...M,matcher:D,compiledParams:j}})})};return M.forEach((M,N)=>{if(""!==M.path&&M.path?.includes("?"))for(let D of F(M.path))A(M,N,!0,D);else A(M,N)}),N}function F(M){let N=M.split("/");if(0===N.length)return[];let[D,...j]=N,I=D.endsWith("?"),A=D.replace(/\?$/,"");if(0===j.length)return I?[A,""]:[A];let z=F(j.join("/")),g=[];return g.push(...z.map(M=>""===M?A:[A,M].join("/"))),I&&g.push(...z),g.map(N=>M.startsWith("/")&&""===N?"/":N)}new WeakMap;var R=/^:[\w-]+$/,G=3,v=2,J=1,P=10,H=-2,X=M=>"*"===M;function K(M,N){let D=M.split("/"),j=D.length;return D.some(X)&&(j+=H),N&&(j+=v),D.filter(M=>!X(M)).reduce((M,N)=>M+(R.test(N)?G:""===N?J:P),j)}function _(M,N,D=!1){let{routesMeta:j}=M,I={},A="/",z=[];for(let M=0;M{if("*"===N){let M=g[j]||"";z=A.slice(0,A.length-M.length).replace(/(.)\/+$/,"$1")}const I=g[j];return M[N]=D&&!I?void 0:(I||"").replace(/%2F/g,"/"),M},{});return{params:T,pathname:A,pathnameBase:z,pattern:M}}function MM(M,N=!1,D=!0){h("*"===M||!M.endsWith("*")||M.endsWith("/*"),`Route path "${M}" will be treated as if it were "${M.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${M.replace(/\*$/,"/*")}".`);let j=[],I="^"+M.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(M,N,D,I,A)=>{if(j.push({paramName:N,isOptional:null!=D}),D){let N=A.charAt(I+M.length);return N&&"/"!==N?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return M.endsWith("*")?(j.push({paramName:"*"}),I+="*"===M||"/*"===M?"(.*)$":"(?:\\/(.+)|\\/*)$"):D?I+="\\/*$":""!==M&&"/"!==M&&(I+="(?:(?=\\/|$))"),[new RegExp(I,N?void 0:"i"),j]}function NM(M,N){if("/"===N)return M;if(!M.toLowerCase().startsWith(N.toLowerCase()))return null;let D=N.endsWith("/")?N.length-1:N.length,j=M.charAt(D);return j&&"/"!==j?null:M.slice(D)||"/"}function DM(M,N){let D=TM(N).split("/");return M.split("/").forEach(M=>{".."===M?D.length>1&&D.pop():"."!==M&&D.push(M)}),D.length>1?D.join("/"):"/"}function jM(M,N,D,j){return`Cannot include a '${M}' character in a manually specified \`to.${N}\` field [${JSON.stringify(j)}]. Please separate it out to the \`to.${D}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function IM(M){let N=function(M){return M.filter((M,N)=>0===N||M.route.path&&M.route.path.length>0)}(M);return N.map((M,D)=>D===N.length-1?M.pathname:M.pathnameBase)}function AM(M,N,D,j=!1){let I;"string"==typeof M?I=Z(M):(I={...M},f(!I.pathname||!I.pathname.includes("?"),jM("?","pathname","search",I)),f(!I.pathname||!I.pathname.includes("#"),jM("#","pathname","hash",I)),f(!I.search||!I.search.includes("#"),jM("#","search","hash",I)));let A,z=""===M||""===I.pathname,g=z?"/":I.pathname;if(null==g)A=D;else{let M=N.length-1;if(!j&&g.startsWith("..")){let N=g.split("/");for(;".."===N[0];)N.shift(),M-=1;I.pathname=N.join("/")}A=M>=0?N[M]:"/"}let T=function(M,N="/"){let D,{pathname:j,search:I="",hash:A=""}="string"==typeof M?Z(M):M;return j?(j=zM(j),D=j.startsWith("/")?DM(j.substring(1),"/"):DM(j,N)):D=N,{pathname:D,search:yM(I),hash:LM(A)}}(I,A),u=g&&"/"!==g&&g.endsWith("/"),y=(z||"."===g)&&D.endsWith("/");return T.pathname.endsWith("/")||!u&&!y||(T.pathname+="/"),T}var zM=M=>M.replace(/[\\/]{2,}/g,"/"),gM=M=>zM(M.join("/")),TM=M=>M.replace(/\/+$/,""),uM=M=>TM(M).replace(/^\/*/,"/"),yM=M=>M&&"?"!==M?M.startsWith("?")?M:"?"+M:"",LM=M=>M&&"#"!==M?M.startsWith("#")?M:"#"+M:"",OM=class{constructor(M,N,D,j=!1){this.status=M,this.statusText=N||"",this.internal=j,D instanceof Error?(this.data=D.toString(),this.error=D):this.data=D}};function iM(M){return null!=M&&"number"==typeof M.status&&"string"==typeof M.statusText&&"boolean"==typeof M.internal&&"data"in M}function cM(M){let N=M.map(M=>M.route.path).filter(Boolean);return gM(N)||"/"}var xM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function EM(M,N){let D=M;if("string"!=typeof D||!o.test(D))return{absoluteURL:void 0,isExternal:!1,to:D};let j=D,I=!1;if(xM)try{let M=new URL(window.location.href),j=l.test(D)?new URL((A=D,M.protocol+A.replace(/\\/g,"/"))):new URL(D),z=NM(j.pathname,N);j.origin===M.origin&&null!=z?D=z+j.search+j.hash:I=!0}catch(M){h(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}var A;return{absoluteURL:j,isExternal:I,to:D}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var QM=["POST","PUT","PATCH","DELETE"],eM=(new Set(QM),["GET",...QM]);new Set(eM),Symbol("ResetLoaderData"),new WeakMap,new WeakMap,new WeakMap,new WeakMap;var SM=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];var kM=N.createContext(null);kM.displayName="DataRouter";var tM=N.createContext(null);tM.displayName="DataRouterState";var UM=N.createContext(!1);function YM(){return N.useContext(UM)}var CM=N.createContext({isTransitioning:!1});CM.displayName="ViewTransition",N.createContext(new Map).displayName="Fetchers",N.createContext(null).displayName="Await";var aM=N.createContext(null);aM.displayName="Navigation";var wM=N.createContext(null);wM.displayName="Location";var nM=N.createContext({outlet:null,matches:[],isDataRoute:!1});nM.displayName="Route";var oM=N.createContext(null);oM.displayName="RouteError";var lM="REACT_ROUTER_ERROR";function sM(){return null!=N.useContext(wM)}function dM(){return f(sM(),"useLocation() may be used only in the context of a component."),N.useContext(wM).location}var rM="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fM(M){N.useContext(aM).static||N.useLayoutEffect(M)}function hM(){let{isDataRoute:M}=N.useContext(nM);return M?function(){let{router:M}=function(M){let D=N.useContext(kM);return f(D,RM(M)),D}("useNavigate"),D=GM("useNavigate"),j=N.useRef(!1);return fM(()=>{j.current=!0}),N.useCallback(async(N,I={})=>{h(j.current,rM),j.current&&("number"==typeof N?await M.navigate(N):await M.navigate(N,{fromRouteId:D,...I}))},[M,D])}():function(){f(sM(),"useNavigate() may be used only in the context of a component.");let M=N.useContext(kM),{basename:D,navigator:j}=N.useContext(aM),{matches:I}=N.useContext(nM),{pathname:A}=dM(),z=JSON.stringify(IM(I)),g=N.useRef(!1);return fM(()=>{g.current=!0}),N.useCallback((N,I={})=>{if(h(g.current,rM),!g.current)return;if("number"==typeof N)return void j.go(N);let T=AM(N,JSON.parse(z),A,"path"===I.relative);null==M&&"/"!==D&&(T.pathname="/"===T.pathname?D:gM([D,T.pathname])),(I.replace?j.replace:j.push)(T,I.state,I)},[D,j,z,A,M])}()}function pM(M,{relative:D}={}){let{matches:j}=N.useContext(nM),{pathname:I}=dM(),A=JSON.stringify(IM(j));return N.useMemo(()=>AM(M,JSON.parse(A),I,"path"===D),[M,A,I,D])}function bM(M,D,j){f(sM(),"useRoutes() may be used only in the context of a component.");let{navigator:I}=N.useContext(aM),{matches:A}=N.useContext(nM),z=A[A.length-1],g=z?z.params:{},T=z?z.pathname:"/",u=z?z.pathnameBase:"/",y=z&&z.route;{let M=y&&y.path||"";JM(T,!y||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${T}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent to .`)}let L,O=dM();if(D){let M="string"==typeof D?Z(D):D;f("/"===u||M.pathname?.startsWith(u),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${M.pathname}" was given in the \`location\` prop.`),L=M}else L=O;let i=L.pathname||"/",c=i;if("/"!==u){let M=u.replace(/^\//,"").split("/");c="/"+i.replace(/^\//,"").split("/").slice(M.length).join("/")}let x=j&&j.state.matches.length?j.state.matches.map(M=>Object.assign(M,{route:j.manifest[M.route.id]||M.route})):V(M,{pathname:c});h(y||null!=x,`No routes matched location "${L.pathname}${L.search}${L.hash}" `),h(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,`Matched leaf route at location "${L.pathname}${L.search}${L.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let E=function(M,D=[],j){let I=j?.state;if(null==M){if(!I)return null;if(I.errors)M=I.matches;else{if(0!==D.length||I.initialized||!(I.matches.length>0))return null;M=I.matches}}let A=M,z=I?.errors;if(null!=z){let M=A.findIndex(M=>M.route.id&&void 0!==z?.[M.route.id]);f(M>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(z).join(",")}`),A=A.slice(0,Math.min(A.length,M+1))}let g=!1,T=-1;if(j&&I){g=I.renderFallback;for(let M=0;M=0?A.slice(0,T+1):[A[0]];break}}}}let u=j?.onError,y=I&&u?(M,N)=>{u(M,{location:I.location,params:I.matches?.[0]?.params??{},pattern:cM(I.matches),errorInfo:N})}:void 0;return A.reduceRight((M,j,u)=>{let L,O=!1,i=null,c=null;I&&(L=z&&j.route.id?z[j.route.id]:void 0,i=j.route.errorElement||ZM,g&&(T<0&&0===u?(JM("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,c=null):T===u&&(O=!0,c=j.route.hydrateFallbackElement||null)));let x=D.concat(A.slice(0,u+1)),E=()=>{let D;return D=L?i:O?c:j.route.Component?N.createElement(j.route.Component,null):j.route.element?j.route.element:M,N.createElement(FM,{match:j,routeContext:{outlet:M,matches:x,isDataRoute:null!=I},children:D})};return I&&(j.route.ErrorBoundary||j.route.errorElement||0===u)?N.createElement(VM,{location:I.location,revalidation:I.revalidation,component:i,error:L,children:E(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:y}):E()},null)}(x&&x.map(M=>Object.assign({},M,{params:Object.assign({},g,M.params),pathname:gM([u,I.encodeLocation?I.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:"/"===M.pathnameBase?u:gM([u,I.encodeLocation?I.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),A,j);return D&&E?N.createElement(wM.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...L},navigationType:"POP"}},E):E}function mM(){let M=function(){let M=N.useContext(oM),D=function(M){let D=N.useContext(tM);return f(D,RM(M)),D}("useRouteError"),j=GM("useRouteError");return void 0!==M?M:D.errors?.[j]}(),D=iM(M)?`${M.status} ${M.statusText}`:M instanceof Error?M.message:JSON.stringify(M),j=M instanceof Error?M.stack:null,I="rgba(200,200,200, 0.5)",A={padding:"0.5rem",backgroundColor:I},z={padding:"2px 4px",backgroundColor:I},g=null;return console.error("Error handled by React Router default ErrorBoundary:",M),g=N.createElement(N.Fragment,null,N.createElement("p",null,"๐Ÿ’ฟ Hey developer ๐Ÿ‘‹"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:z},"ErrorBoundary")," or"," ",N.createElement("code",{style:z},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},D),j?N.createElement("pre",{style:A},j):null,g)}N.createContext(null);var ZM=N.createElement(mM,null),VM=class extends N.Component{constructor(M){super(M),this.state={location:M.location,revalidation:M.revalidation,error:M.error}}static getDerivedStateFromError(M){return{error:M}}static getDerivedStateFromProps(M,N){return N.location!==M.location||"idle"!==N.revalidation&&"idle"===M.revalidation?{error:M.error,location:M.location,revalidation:M.revalidation}:{error:void 0!==M.error?M.error:N.error,location:N.location,revalidation:M.revalidation||N.revalidation}}componentDidCatch(M,N){this.props.onError?this.props.onError(M,N):console.error("React Router caught the following error during render",M)}render(){let M=this.state.error;if(this.context&&"object"==typeof M&&M&&"digest"in M&&"string"==typeof M.digest){const N=function(M){if(M.startsWith(`${lM}:ROUTE_ERROR_RESPONSE:{`))try{let N=JSON.parse(M.slice(40));if("object"==typeof N&&N&&"number"==typeof N.status&&"string"==typeof N.statusText)return new OM(N.status,N.statusText,N.data)}catch{}}(M.digest);N&&(M=N)}let D=void 0!==M?N.createElement(nM.Provider,{value:this.props.routeContext},N.createElement(oM.Provider,{value:M,children:this.props.component})):this.props.children;return this.context?N.createElement(BM,{error:M},D):D}};VM.contextType=UM;var WM=new WeakMap;function BM({children:M,error:D}){let{basename:j}=N.useContext(aM);if("object"==typeof D&&D&&"digest"in D&&"string"==typeof D.digest){let M=function(M){if(M.startsWith(`${lM}:REDIRECT:{`))try{let N=JSON.parse(M.slice(28));if("object"==typeof N&&N&&"number"==typeof N.status&&"string"==typeof N.statusText&&"string"==typeof N.location&&"boolean"==typeof N.reloadDocument&&"boolean"==typeof N.replace)return N}catch{}}(D.digest);if(M){let I=WM.get(D);if(I)throw I;let A=EM(M.location,j),z=A.absoluteURL||A.to;if(function(M){try{return SM.includes(new URL(M).protocol)}catch{return!1}}(z))throw new Error("Invalid redirect location");if(xM&&!WM.get(D)){if(!A.isExternal&&!M.reloadDocument){const N=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(A.to,{replace:M.replace}));throw WM.set(D,N),N}window.location.href=z}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${z}`})}}return M}function FM({routeContext:M,match:D,children:j}){let I=N.useContext(kM);return I&&I.static&&I.staticContext&&(D.route.errorElement||D.route.ErrorBoundary)&&(I.staticContext._deepestRenderedBoundaryId=D.route.id),N.createElement(nM.Provider,{value:M},j)}function RM(M){return`${M} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function GM(M){let D=function(M){let D=N.useContext(nM);return f(D,RM(M)),D}(M),j=D.matches[D.matches.length-1];return f(j.route.id,`${M} can only be used on routes that contain a unique "id"`),j.route.id}var vM={};function JM(M,N,D){N||vM[M]||(vM[M]=!0,h(!1,D))}function PM(M){f(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function HM({basename:M="/",children:D=null,location:j,navigationType:I="POP",navigator:A,static:z=!1,useTransitions:g}){f(!sM(),"You cannot render a inside another . You should never have more than one in your app.");let T=M.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:T,navigator:A,static:z,useTransitions:g,future:{}}),[T,A,z,g]);"string"==typeof j&&(j=Z(j));let{pathname:y="/",search:L="",hash:O="",state:i=null,key:c="default",mask:x}=j,E=N.useMemo(()=>{let M=NM(y,T);return null==M?null:{location:{pathname:M,search:L,hash:O,state:i,key:c,mask:x},navigationType:I}},[T,y,L,O,i,c,I,x]);return h(null!=E,` is not able to match the URL "${y}${L}${O}" because it does not start with the basename, so the won't render anything.`),null==E?null:N.createElement(aM.Provider,{value:u},N.createElement(wM.Provider,{children:D,value:E}))}function XM({children:M,location:N}){return bM(KM(M),N)}function KM(M,D=[]){let j=[];return N.Children.forEach(M,(M,I)=>{if(!N.isValidElement(M))return;let A=[...D,I];if(M.type===N.Fragment)return void j.push.apply(j,KM(M.props.children,A));f(M.type===PM,`[${"string"==typeof M.type?M.type:M.type.name}] is not a component. All component children of must be a or `),f(!M.props.index||!M.props.children,"An index route cannot have child routes.");let z={id:M.props.id||A.join("-"),caseSensitive:M.props.caseSensitive,element:M.props.element,Component:M.props.Component,index:M.props.index,path:M.props.path,middleware:M.props.middleware,loader:M.props.loader,action:M.props.action,hydrateFallbackElement:M.props.hydrateFallbackElement,HydrateFallback:M.props.HydrateFallback,errorElement:M.props.errorElement,ErrorBoundary:M.props.ErrorBoundary,hasErrorBoundary:!0===M.props.hasErrorBoundary||null!=M.props.ErrorBoundary||null!=M.props.errorElement,shouldRevalidate:M.props.shouldRevalidate,handle:M.props.handle,lazy:M.props.lazy};M.props.children&&(z.children=KM(M.props.children,A)),j.push(z)}),j}j.useOptimistic,N.memo(function({routes:M,manifest:N,future:D,state:j,isStatic:I,onError:A}){return bM(M,void 0,{manifest:N,state:j,isStatic:I,onError:A,future:D})}),N.Component;var _M="get",qM="application/x-www-form-urlencoded";function $M(M){return"undefined"!=typeof HTMLElement&&M instanceof HTMLElement}function MN(M=""){return new URLSearchParams("string"==typeof M||Array.isArray(M)||M instanceof URLSearchParams?M:Object.keys(M).reduce((N,D)=>{let j=M[D];return N.concat(Array.isArray(j)?j.map(M=>[D,M]):[[D,j]])},[]))}var NN=null,DN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jN(M){return null==M||DN.has(M)?M:(h(!1,`"${M}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${qM}"`),null)}function IN(M,N){if(!1===M||null==M)throw new Error(N)}function AN(M,N,D,j){let I="string"==typeof M?new URL(M,"undefined"==typeof window?"server://singlefetch/":window.location.origin):M;return D?I.pathname.endsWith("/")?I.pathname=`${I.pathname}_.${j}`:I.pathname=`${I.pathname}.${j}`:"/"===I.pathname?I.pathname=`_root.${j}`:N&&"/"===NM(I.pathname,N)?I.pathname=`${TM(N)}/_root.${j}`:I.pathname=`${TM(I.pathname)}.${j}`,I}function zN(M){return null!=M&&(null==M.href?"preload"===M.rel&&"string"==typeof M.imageSrcSet&&"string"==typeof M.imageSizes:"string"==typeof M.rel&&"string"==typeof M.href)}function gN(M,N,D,j,I,A){let z=(M,N)=>!D[N]||M.route.id!==D[N].route.id,g=(M,N)=>D[N].pathname!==M.pathname||D[N].route.path?.endsWith("*")&&D[N].params["*"]!==M.params["*"];return"assets"===A?N.filter((M,N)=>z(M,N)||g(M,N)):"data"===A?N.filter((N,A)=>{let T=j.routes[N.route.id];if(!T||!T.hasLoader)return!1;if(z(N,A)||g(N,A))return!0;if(N.route.shouldRevalidate){let j=N.route.shouldRevalidate({currentUrl:new URL(I.pathname+I.search+I.hash,window.origin),currentParams:D[0]?.params||{},nextUrl:new URL(M,window.origin),nextParams:N.params,defaultShouldRevalidate:!0});if("boolean"==typeof j)return j}return!0}):[]}function TN(M,N,{includeHydrateFallback:D}={}){return j=M.map(M=>{let j=N.routes[M.route.id];if(!j)return[];let I=[j.module];return j.clientActionModule&&(I=I.concat(j.clientActionModule)),j.clientLoaderModule&&(I=I.concat(j.clientLoaderModule)),D&&j.hydrateFallbackModule&&(I=I.concat(j.hydrateFallbackModule)),j.imports&&(I=I.concat(j.imports)),I}).flat(1),[...new Set(j)];var j}function uN(){let M=N.useContext(kM);return IN(M,"You must render this element inside a element"),M}function yN(){let M=N.useContext(tM);return IN(M,"You must render this element inside a element"),M}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Symbol("SingleFetchRedirect");var LN=N.createContext(void 0);function ON(){let M=N.useContext(LN);return IN(M,"You must render this element inside a element"),M}function iN(M,N){return D=>{M&&M(D),D.defaultPrevented||N(D)}}function cN({page:M,...D}){let j=YM(),{nonce:I}=ON(),{router:A}=uN(),z=N.useMemo(()=>V(A.routes,M,A.basename),[A.routes,M,A.basename]);return z?(null==D.nonce&&I&&(D={...D,nonce:I}),j?N.createElement(EN,{page:M,matches:z,...D}):N.createElement(QN,{page:M,matches:z,...D})):null}function xN(M){let{manifest:D,routeModules:j}=ON(),[I,A]=N.useState([]);return N.useEffect(()=>{let N=!1;return async function(M,N,D){return function(M,N){let D=new Set,j=new Set(N);return M.reduce((M,I)=>{if(N&&(null==(A=I)||"string"!=typeof A.page)&&"script"===I.as&&I.href&&j.has(I.href))return M;var A;let z=JSON.stringify(function(M){let N={},D=Object.keys(M).sort();for(let j of D)N[j]=M[j];return N}(I));return D.has(z)||(D.add(z),M.push({key:z,link:I})),M},[])}((await Promise.all(M.map(async M=>{let j=N.routes[M.route.id];if(j){let M=await async function(M,N){if(M.id in N)return N[M.id];try{let D=await import(M.module);return N[M.id]=D,D}catch(N){return console.error(`Error loading route module \`${M.module}\`, reloading page...`),console.error(N),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(j,D);return M.links?M.links():[]}return[]}))).flat(1).filter(zN).filter(M=>"stylesheet"===M.rel||"preload"===M.rel).map(M=>"stylesheet"===M.rel?{...M,rel:"prefetch",as:"style"}:{...M,rel:"prefetch"}))}(M,D,j).then(M=>{N||A(M)}),()=>{N=!0}},[M,D,j]),I}function EN({page:M,matches:D,...j}){let I=dM(),{future:A}=ON(),{basename:z}=uN(),g=N.useMemo(()=>{if(M===I.pathname+I.search+I.hash)return[];let N=AN(M,z,A.v8_trailingSlashAwareDataRequests,"rsc"),j=!1,g=[];for(let M of D)"function"==typeof M.route.shouldRevalidate?j=!0:g.push(M.route.id);return j&&g.length>0&&N.searchParams.set("_routes",g.join(",")),[N.pathname+N.search]},[z,A.v8_trailingSlashAwareDataRequests,M,I,D]);return N.createElement(N.Fragment,null,g.map(M=>N.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...j})))}function QN({page:M,matches:D,...j}){let I=dM(),{future:A,manifest:z,routeModules:g}=ON(),{basename:T}=uN(),{loaderData:u,matches:y}=yN(),L=N.useMemo(()=>gN(M,D,y,z,I,"data"),[M,D,y,z,I]),O=N.useMemo(()=>gN(M,D,y,z,I,"assets"),[M,D,y,z,I]),i=N.useMemo(()=>{if(M===I.pathname+I.search+I.hash)return[];let N=new Set,j=!1;if(D.forEach(M=>{let D=z.routes[M.route.id];D&&D.hasLoader&&(!L.some(N=>N.route.id===M.route.id)&&M.route.id in u&&g[M.route.id]?.shouldRevalidate||D.hasClientLoader?j=!0:N.add(M.route.id))}),0===N.size)return[];let y=AN(M,T,A.v8_trailingSlashAwareDataRequests,"data");return j&&N.size>0&&y.searchParams.set("_routes",D.filter(M=>N.has(M.route.id)).map(M=>M.route.id).join(",")),[y.pathname+y.search]},[T,A.v8_trailingSlashAwareDataRequests,u,I,z,L,D,M,g]),c=N.useMemo(()=>TN(O,z),[O,z]),x=xN(O);return N.createElement(N.Fragment,null,i.map(M=>N.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...j})),c.map(M=>N.createElement("link",{key:M,rel:"modulepreload",href:M,...j})),x.map(({key:M,link:D})=>N.createElement("link",{key:M,nonce:j.nonce,...D,crossOrigin:D.crossOrigin??j.crossOrigin})))}LN.displayName="FrameworkContext";function eN(...M){return N=>{M.forEach(M=>{"function"==typeof M?M(N):null!=M&&(M.current=N)})}}N.Component;var SN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{SN&&(window.__reactRouterVersion="7.18.0")}catch(pL){}function kN({basename:M,children:D,useTransitions:j,window:I}){let A=N.useRef();null==A.current&&(A.current=r({window:I,v5Compat:!0}));let z=A.current,[g,T]=N.useState({action:z.action,location:z.location}),u=N.useCallback(M=>{!1===j?T(M):N.startTransition(()=>T(M))},[j]);return N.useLayoutEffect(()=>z.listen(u),[z,u]),N.createElement(HM,{basename:M,children:D,location:g.location,navigationType:g.action,navigator:z,useTransitions:j})}var tN=N.forwardRef(function({onClick:M,discover:D="render",prefetch:j="none",relative:I,reloadDocument:A,replace:z,mask:g,state:T,target:u,to:y,preventScrollReset:L,viewTransition:O,defaultShouldRevalidate:i,...c},x){let{basename:E,navigator:Q,useTransitions:e}=N.useContext(aM),S="string"==typeof y&&o.test(y),k=EM(y,E),t=function(M,{relative:D}={}){f(sM(),"useHref() may be used only in the context of a component.");let{basename:j,navigator:I}=N.useContext(aM),{hash:A,pathname:z,search:g}=pM(M,{relative:D}),T=z;return"/"!==j&&(T="/"===z?j:gM([j,z])),I.createHref({pathname:T,search:g,hash:A})}(y=k.to,{relative:I}),U=dM(),Y=null;if(g){let M=AM(g,[],U.mask?U.mask.pathname:"/",!0);"/"!==E&&(M.pathname="/"===M.pathname?E:gM([E,M.pathname])),Y=Q.createHref(M)}let[C,a,w]=function(M,D){let j=N.useContext(LN),[I,A]=N.useState(!1),[z,g]=N.useState(!1),{onFocus:T,onBlur:u,onMouseEnter:y,onMouseLeave:L,onTouchStart:O}=D,i=N.useRef(null);N.useEffect(()=>{if("render"===M&&g(!0),"viewport"===M){let M=new IntersectionObserver(M=>{M.forEach(M=>{g(M.isIntersecting)})},{threshold:.5});return i.current&&M.observe(i.current),()=>{M.disconnect()}}},[M]),N.useEffect(()=>{if(I){let M=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(M)}}},[I]);let c=()=>{A(!0)},x=()=>{A(!1),g(!1)};return j?"intent"!==M?[z,i,{}]:[z,i,{onFocus:iN(T,c),onBlur:iN(u,x),onMouseEnter:iN(y,c),onMouseLeave:iN(L,x),onTouchStart:iN(O,c)}]:[!1,i,{}]}(j,c),n=function(M,{target:D,replace:j,mask:I,state:A,preventScrollReset:z,relative:g,viewTransition:T,defaultShouldRevalidate:u,useTransitions:y}={}){let L=hM(),O=dM(),i=pM(M,{relative:g});return N.useCallback(c=>{if(function(M,N){return!(0!==M.button||N&&"_self"!==N||function(M){return!!(M.metaKey||M.altKey||M.ctrlKey||M.shiftKey)}(M))}(c,D)){c.preventDefault();let D=void 0!==j?j:m(O)===m(i),x=()=>L(M,{replace:D,mask:I,state:A,preventScrollReset:z,relative:g,viewTransition:T,defaultShouldRevalidate:u});y?N.startTransition(()=>x()):x()}},[O,L,i,j,I,A,D,M,z,g,T,u,y])}(y,{replace:z,mask:g,state:T,target:u,preventScrollReset:L,relative:I,viewTransition:O,defaultShouldRevalidate:i,useTransitions:e}),l=!(k.isExternal||A),s=N.createElement("a",{...c,...w,href:(l?Y:void 0)||k.absoluteURL||t,onClick:l?function(N){M&&M(N),N.defaultPrevented||n(N)}:M,ref:eN(x,a),target:u,"data-discover":S||"render"!==D?void 0:"true"});return C&&!S?N.createElement(N.Fragment,null,s,N.createElement(cN,{page:t})):s});tN.displayName="Link";var UN=N.forwardRef(function({"aria-current":M="page",caseSensitive:D=!1,className:j="",end:I=!1,style:A,to:z,viewTransition:g,children:T,...u},y){let L=pM(z,{relative:u.relative}),O=dM(),i=N.useContext(tM),{navigator:c,basename:x}=N.useContext(aM),E=null!=i&&function(M,{relative:D}={}){let j=N.useContext(CM);f(null!=j,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:I}=CN("useViewTransitionState"),A=pM(M,{relative:D});if(!j.isTransitioning)return!1;let z=NM(j.currentLocation.pathname,I)||j.currentLocation.pathname,g=NM(j.nextLocation.pathname,I)||j.nextLocation.pathname;return null!=q(A.pathname,g)||null!=q(A.pathname,z)}(L)&&!0===g,Q=c.encodeLocation?c.encodeLocation(L).pathname:L.pathname,e=O.pathname,S=i&&i.navigation&&i.navigation.location?i.navigation.location.pathname:null;D||(e=e.toLowerCase(),S=S?S.toLowerCase():null,Q=Q.toLowerCase()),S&&x&&(S=NM(S,x)||S);const k="/"!==Q&&Q.endsWith("/")?Q.length-1:Q.length;let t,U=e===Q||!I&&e.startsWith(Q)&&"/"===e.charAt(k),Y=null!=S&&(S===Q||!I&&S.startsWith(Q)&&"/"===S.charAt(Q.length)),C={isActive:U,isPending:Y,isTransitioning:E},a=U?M:void 0;t="function"==typeof j?j(C):[j,U?"active":null,Y?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let w="function"==typeof A?A(C):A;return N.createElement(tN,{...u,"aria-current":a,className:t,ref:y,style:w,to:z,viewTransition:g},"function"==typeof T?T(C):T)});UN.displayName="NavLink";var YN=N.forwardRef(({discover:M="render",fetcherKey:D,navigate:j,reloadDocument:I,replace:A,state:z,method:g=_M,action:T,onSubmit:u,relative:y,preventScrollReset:L,viewTransition:O,defaultShouldRevalidate:i,...c},x)=>{let{useTransitions:E}=N.useContext(aM),Q=function(){let{router:M}=CN("useSubmit"),{basename:D}=N.useContext(aM),j=GM("useRouteId"),I=M.fetch,A=M.navigate;return N.useCallback(async(M,N={})=>{let{action:z,method:g,encType:T,formData:u,body:y}=function(M,N){let D,j,I,A,z;if($M(g=M)&&"form"===g.tagName.toLowerCase()){let z=M.getAttribute("action");j=z?NM(z,N):null,D=M.getAttribute("method")||_M,I=jN(M.getAttribute("enctype"))||qM,A=new FormData(M)}else if(function(M){return $M(M)&&"button"===M.tagName.toLowerCase()}(M)||function(M){return $M(M)&&"input"===M.tagName.toLowerCase()}(M)&&("submit"===M.type||"image"===M.type)){let z=M.form;if(null==z)throw new Error('Cannot submit a