diff --git a/DESCRIPTION b/DESCRIPTION
index fe1c80db..f35987f5 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: shiny.gosling
-Title: A Grammar-based Toolkit for Scalable and Interactive Genomics Data Visualization for R and Shiny
-Version: 1.0.0
+Title: A Grammar-Based Toolkit for Scalable and Interactive Genomics Data Visualization for R and Shiny
+Version: 2.0.0
Language: en-US
Authors@R:
c(
@@ -18,7 +18,7 @@ Authors@R:
email = "vedha@appsilon.com",
role = c("aut"))
)
-Description: A Grammar-based Toolkit for Scalable and Interactive Genomics Data Visualization. http://gosling-lang.org/. This R package is based on gosling.js. It uses R functions to create gosling plots that could be embedded onto R Shiny apps.
+Description: A Grammar-based Toolkit for Scalable and Interactive Genomics Data Visualization. . This R package is based on gosling.js. It uses R functions to create gosling plots that could be embedded onto R Shiny apps.
License: LGPL-3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
@@ -29,7 +29,7 @@ Imports:
jsonlite,
rlang,
shiny,
- shiny.react,
+ shiny.react (>= 0.4.0),
fs,
digest,
rjson
diff --git a/inst/www/120.gosling.js b/inst/www/120.gosling.js
new file mode 100644
index 00000000..d701af7e
--- /dev/null
+++ b/inst/www/120.gosling.js
@@ -0,0 +1,2 @@
+/*! For license information please see 120.gosling.js.LICENSE.txt */
+(self.webpackChunkjs=self.webpackChunkjs||[]).push([[120],{1120:function(A){A.exports=function(){"use strict";var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&B[B.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!B||n[1]>B[0]&&n[1]=55296&&B<=56319&&t>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),g=0;g=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d>4,c[i++]=(15&r)<<4|B>>2,c[i++]=(3&B)<<6|63&n;return Q}(A),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r0;){var s=r[--n];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=t;o<=r.length;){var i;if((i=r[++o])===e)return!0;if(i!==f)break}if(s!==f)break}return!1},rA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==f)return r;t--}return 0},BA=function(A,e,t,r,B){if(0===t[r])return Y;var n=r-1;if(Array.isArray(B)&&!0===B[n])return Y;var s=n-1,o=n+1,i=e[n],Q=s>=0?e[s]:0,c=e[o];if(2===i&&3===c)return Y;if(-1!==q.indexOf(i))return"!";if(-1!==q.indexOf(c))return Y;if(-1!==j.indexOf(c))return Y;if(8===rA(n,e))return W;if(11===Z.get(A[n]))return Y;if((i===T||i===G)&&11===Z.get(A[o]))return Y;if(7===i||7===c)return Y;if(9===i)return Y;if(-1===[f,H,p].indexOf(i)&&9===c)return Y;if(-1!==[E,I,y,v,M].indexOf(c))return Y;if(rA(n,e)===L)return Y;if(tA(23,L,n,e))return Y;if(tA([E,I],m,n,e))return Y;if(tA(12,12,n,e))return Y;if(i===f)return W;if(23===i||23===c)return Y;if(16===c||16===i)return W;if(-1!==[H,p,m].indexOf(c)||14===i)return Y;if(36===Q&&-1!==eA.indexOf(i))return Y;if(i===M&&36===c)return Y;if(c===K)return Y;if(-1!==_.indexOf(c)&&i===b||-1!==_.indexOf(i)&&c===b)return Y;if(i===x&&-1!==[k,T,G].indexOf(c)||-1!==[k,T,G].indexOf(i)&&c===D)return Y;if(-1!==_.indexOf(i)&&-1!==z.indexOf(c)||-1!==z.indexOf(i)&&-1!==_.indexOf(c))return Y;if(-1!==[x,D].indexOf(i)&&(c===b||-1!==[L,p].indexOf(c)&&e[o+1]===b)||-1!==[L,p].indexOf(i)&&c===b||i===b&&-1!==[b,M,v].indexOf(c))return Y;if(-1!==[b,M,v,E,I].indexOf(c))for(var a=n;a>=0;){if((g=e[a])===b)return Y;if(-1===[M,v].indexOf(g))break;a--}if(-1!==[x,D].indexOf(c))for(a=-1!==[E,I].indexOf(i)?s:n;a>=0;){var g;if((g=e[a])===b)return Y;if(-1===[M,v].indexOf(g))break;a--}if(R===i&&-1!==[R,N,O,V].indexOf(c)||-1!==[N,O].indexOf(i)&&-1!==[N,P].indexOf(c)||-1!==[P,V].indexOf(i)&&c===P)return Y;if(-1!==AA.indexOf(i)&&-1!==[K,D].indexOf(c)||-1!==AA.indexOf(c)&&i===x)return Y;if(-1!==_.indexOf(i)&&-1!==_.indexOf(c))return Y;if(i===v&&-1!==_.indexOf(c))return Y;if(-1!==_.concat(b).indexOf(i)&&c===L&&-1===J.indexOf(A[o])||-1!==_.concat(b).indexOf(c)&&i===I)return Y;if(41===i&&41===c){for(var w=t[n],u=1;w>0&&41===e[--w];)u++;if(u%2!=0)return Y}return i===T&&c===G?Y:W},nA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],B=[];return A.forEach((function(A,n){var s=Z.get(A);if(s>50?(B.push(!0),s-=50):B.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(n),t.push(16);if(4===s||11===s){if(0===n)return r.push(n),t.push(S);var o=t[n-1];return-1===$.indexOf(o)?(r.push(r[n-1]),t.push(o)):(r.push(n),t.push(S))}return r.push(n),31===s?t.push("strict"===e?m:k):s===X||29===s?t.push(S):43===s?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(k):t.push(S):void t.push(s)})),[r,t,B]}(A,e.lineBreak),r=t[0],B=t[1],n=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(B=B.map((function(A){return-1!==[b,S,X].indexOf(A)?k:A})));var s="keep-all"===e.wordBreak?n.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,B,s]},sA=function(){function A(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}return A.prototype.slice=function(){return Q.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),oA=45,iA=43,QA=-1,cA=function(A){return A>=48&&A<=57},aA=function(A){return cA(A)||A>=65&&A<=70||A>=97&&A<=102},gA=function(A){return 10===A||9===A||32===A},wA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},uA=function(A){return wA(A)||cA(A)||A===oA},lA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},UA=function(A,e){return 92===A&&10!==e},CA=function(A,e,t){return A===oA?wA(e)||UA(e,t):!!wA(A)||!(92!==A||!UA(A,e))},FA=function(A,e,t){return A===iA||A===oA?!!cA(e)||46===e&&cA(t):cA(46===A?e:A)},hA=function(A){var e=0,t=1;A[e]!==iA&&A[e]!==oA||(A[e]===oA&&(t=-1),e++);for(var r=[];cA(A[e]);)r.push(A[e++]);var B=r.length?parseInt(Q.apply(void 0,r),10):0;46===A[e]&&e++;for(var n=[];cA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(Q.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;A[e]!==iA&&A[e]!==oA||(A[e]===oA&&(i=-1),e++);for(var c=[];cA(A[e]);)c.push(A[e++]);var a=c.length?parseInt(Q.apply(void 0,c),10):0;return t*(B+o*Math.pow(10,-s))*Math.pow(10,i*a)},dA={type:2},fA={type:3},HA={type:4},pA={type:13},EA={type:8},IA={type:21},yA={type:9},KA={type:10},mA={type:11},LA={type:12},vA={type:14},bA={type:23},DA={type:1},xA={type:25},MA={type:24},SA={type:26},TA={type:27},GA={type:28},OA={type:29},VA={type:31},kA={type:32},RA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(i(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==kA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(uA(e)||UA(t,r)){var B=CA(e,t,r)?2:1;return{type:5,value:this.consumeName(),flags:B}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pA;break;case 39:return this.consumeStringToken(39);case 40:return dA;case 41:return fA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vA;break;case iA:if(FA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return HA;case oA:var n=A,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(FA(n,s,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(CA(n,s,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===oA&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),MA;break;case 46:if(FA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var i=this.consumeCodePoint();if(42===i&&47===(i=this.consumeCodePoint()))return this.consumeToken();if(i===QA)return this.consumeToken()}break;case 58:return SA;case 59:return TA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===oA&&this.peekCodePoint(2)===oA)return this.consumeCodePoint(),this.consumeCodePoint(),xA;break;case 64:var c=this.peekCodePoint(0),a=this.peekCodePoint(1),g=this.peekCodePoint(2);if(CA(c,a,g))return{type:7,value:this.consumeName()};break;case 91:return GA;case 92:if(UA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return OA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case 123:return mA;case 125:return LA;case 117:case 85:var w=this.peekCodePoint(0),u=this.peekCodePoint(1);return w!==iA||!aA(u)&&63!==u||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),IA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),KA;break;case QA:return kA}return gA(A)?(this.consumeWhiteSpace(),VA):cA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):wA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:Q(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();aA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(Q.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(Q.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var r=parseInt(Q.apply(void 0,A),16);if(this.peekCodePoint(0)===oA&&aA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var B=[];aA(e)&&B.length<6;)B.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(Q.apply(void 0,B),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===QA)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===QA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),bA)}for(;;){var r=this.consumeCodePoint();if(r===QA||41===r)return{type:22,value:Q.apply(void 0,A)};if(gA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===QA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:Q.apply(void 0,A)}):(this.consumeBadUrlRemnants(),bA);if(34===r||39===r||40===r||lA(r))return this.consumeBadUrlRemnants(),bA;if(92===r){if(!UA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),bA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;gA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===QA)return;UA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=Q.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===QA||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),DA;if(92===r){var B=this._value[t+1];B!==QA&&void 0!==B&&(10===B?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):UA(r,B)&&(e+=this.consumeStringSlice(t),e+=Q(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(t!==iA&&t!==oA||A.push(this.consumeCodePoint());cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&cA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var B=this.peekCodePoint(2);if((69===t||101===t)&&((r===iA||r===oA)&&cA(B)||cA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[hA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),B=this.peekCodePoint(1),n=this.peekCodePoint(2);return CA(r,B,n)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(aA(A)){for(var e=Q(A);aA(this.peekCodePoint(0))&&e.length<6;)e+=Q(this.consumeCodePoint());gA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return A===QA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(uA(e))A+=Q(e);else{if(!UA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=Q(this.consumeEscapedCodePoint())}}},A}(),NA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new RA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||jA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?kA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),PA=function(A){return 15===A.type},XA=function(A){return 17===A.type},JA=function(A){return 20===A.type},YA=function(A){return 0===A.type},WA=function(A,e){return JA(A)&&A.value===e},ZA=function(A){return 31!==A.type},_A=function(A){return 31!==A.type&&4!==A.type},qA=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},jA=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},zA=function(A){return 17===A.type||15===A.type},$A=function(A){return 16===A.type||zA(A)},Ae=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},ee={type:17,number:0,flags:4},te={type:16,number:50,flags:4},re={type:16,number:100,flags:4},Be=function(A,e,t){var r=A[0],B=A[1];return[ne(r,e),ne(void 0!==B?B:r,t)]},ne=function(A,e){if(16===A.type)return A.number/100*e;if(PA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},se="grad",oe="turn",ie=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case se:return Math.PI/200*e.number;case"rad":return e.number;case oe:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},Qe=function(A){return 15===A.type&&("deg"===A.unit||A.unit===se||"rad"===A.unit||A.unit===oe)},ce=function(A){switch(A.filter(JA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ee,ee];case"to top":case"bottom":return ae(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ee,re];case"to right":case"left":return ae(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[re,re];case"to bottom":case"top":return ae(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[re,ee];case"to left":case"right":return ae(270)}return 0},ae=function(A){return Math.PI*A/180},ge=function(A,e){if(18===e.type){var t=de[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);return le(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(4===e.value.length){r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);var s=e.value.substring(3,4);return le(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),le(parseInt(r,16),parseInt(B,16),parseInt(n,16),1);if(8===e.value.length)return r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8),le(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}if(20===e.type){var o=He[e.value.toUpperCase()];if(void 0!==o)return o}return He.TRANSPARENT},we=function(A){return 0==(255&A)},ue=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,B=255&A>>24;return e<255?"rgba("+B+","+r+","+t+","+e/255+")":"rgb("+B+","+r+","+t+")"},le=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},Ue=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},Ce=function(A,e){var t=e.filter(_A);if(3===t.length){var r=t.map(Ue),B=r[0],n=r[1],s=r[2];return le(B,n,s,1)}if(4===t.length){var o=t.map(Ue),i=(B=o[0],n=o[1],s=o[2],o[3]);return le(B,n,s,i)}return 0};function Fe(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var he=function(A,e){var t=e.filter(_A),r=t[0],B=t[1],n=t[2],s=t[3],o=(17===r.type?ae(r.number):ie(A,r))/(2*Math.PI),i=$A(B)?B.number/100:0,Q=$A(n)?n.number/100:0,c=void 0!==s&&$A(s)?ne(s,1):1;if(0===i)return le(255*Q,255*Q,255*Q,1);var a=Q<=.5?Q*(i+1):Q+i-Q*i,g=2*Q-a,w=Fe(g,a,o+1/3),u=Fe(g,a,o),l=Fe(g,a,o-1/3);return le(255*w,255*u,255*l,c)},de={hsl:he,hsla:he,rgb:Ce,rgba:Ce},fe=function(A,e){return ge(A,NA.create(e).parseComponentValue())},He={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},pe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(JA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ee={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ie=function(A,e){var t=ge(A,e[0]),r=e[1];return r&&$A(r)?{color:t,stop:r}:{color:t,stop:null}},ye=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=ee),null===r.stop&&(r.stop=re);for(var B=[],n=0,s=0;sn?B.push(i):B.push(n),n=i}else B.push(null)}var Q=null;for(s=0;sA.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},ve=function(A,e){var t=ae(180),r=[];return qA(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(t=ce(e));if(Qe(n))return void(t=(ie(A,n)+ae(270))%ae(360))}var s=Ie(A,e);r.push(s)})),{angle:t,stops:r,type:1}},be="closest-side",De="farthest-side",xe="closest-corner",Me="farthest-corner",Se="circle",Te="ellipse",Ge="cover",Oe="contain",Ve=function(A,e){var t=0,r=3,B=[],n=[];return qA(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(A,e){if(JA(e))switch(e.value){case"center":return n.push(te),!1;case"top":case"left":return n.push(ee),!1;case"right":case"bottom":return n.push(re),!1}else if($A(e)||zA(e))return n.push(e),!1;return A}),o):1===s&&(o=e.reduce((function(A,e){if(JA(e))switch(e.value){case Se:return t=0,!1;case Te:return t=1,!1;case Oe:case be:return r=0,!1;case De:return r=1,!1;case xe:return r=2,!1;case Ge:case Me:return r=3,!1}else if(zA(e)||$A(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)),o){var i=Ie(A,e);B.push(i)}})),{size:r,shape:t,stops:B,position:n,type:2}},ke=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Ne[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)};var Re,Ne={"linear-gradient":function(A,e){var t=ae(180),r=[];return qA(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&"to"===n.value)return void(t=ce(e));if(Qe(n))return void(t=ie(A,n))}var s=Ie(A,e);r.push(s)})),{angle:t,stops:r,type:1}},"-moz-linear-gradient":ve,"-ms-linear-gradient":ve,"-o-linear-gradient":ve,"-webkit-linear-gradient":ve,"radial-gradient":function(A,e){var t=0,r=3,B=[],n=[];return qA(e).forEach((function(e,s){var o=!0;if(0===s){var i=!1;o=e.reduce((function(A,e){if(i)if(JA(e))switch(e.value){case"center":return n.push(te),A;case"top":case"left":return n.push(ee),A;case"right":case"bottom":return n.push(re),A}else($A(e)||zA(e))&&n.push(e);else if(JA(e))switch(e.value){case Se:return t=0,!1;case Te:return t=1,!1;case"at":return i=!0,!1;case be:return r=0,!1;case Ge:case De:return r=1,!1;case Oe:case xe:return r=2,!1;case Me:return r=3,!1}else if(zA(e)||$A(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)}if(o){var Q=Ie(A,e);B.push(Q)}})),{size:r,shape:t,stops:B,position:n,type:2}},"-moz-radial-gradient":Ve,"-ms-radial-gradient":Ve,"-o-radial-gradient":Ve,"-webkit-radial-gradient":Ve,"-webkit-gradient":function(A,e){var t=ae(180),r=[],B=1;return qA(e).forEach((function(e,t){var n=e[0];if(0===t){if(JA(n)&&"linear"===n.value)return void(B=1);if(JA(n)&&"radial"===n.value)return void(B=2)}if(18===n.type)if("from"===n.name){var s=ge(A,n.values[0]);r.push({stop:ee,color:s})}else if("to"===n.name)s=ge(A,n.values[0]),r.push({stop:re,color:s});else if("color-stop"===n.name){var o=n.values.filter(_A);if(2===o.length){s=ge(A,o[1]);var i=o[0];XA(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:s})}}})),1===B?{angle:(t+ae(180))%ae(360),stops:r,type:B}:{size:3,shape:0,stops:r,position:[],type:B}}},Pe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return _A(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Ne[A.name])}(A)})).map((function(e){return ke(A,e)}))}},Xe={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(JA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Je={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return qA(e).map((function(A){return A.filter($A)})).map(Ae)}},Ye={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return qA(e).map((function(A){return A.filter(JA).map((function(A){return A.value})).join(" ")})).map(We)}},We=function(A){switch(A){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(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Re||(Re={}));var Ze,_e={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return qA(e).map((function(A){return A.filter(qe)}))}},qe=function(A){return JA(A)||$A(A)},je=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ze=je("top"),$e=je("right"),At=je("bottom"),et=je("left"),tt=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Ae(e.filter($A))}}},rt=tt("top-left"),Bt=tt("top-right"),nt=tt("bottom-right"),st=tt("bottom-left"),ot=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},it=ot("top"),Qt=ot("right"),ct=ot("bottom"),at=ot("left"),gt=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:0}}},wt=gt("top"),ut=gt("right"),lt=gt("bottom"),Ut=gt("left"),Ct={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ft={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},ht={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(JA).reduce((function(A,e){return A|dt(e.value)}),0)}},dt=function(A){switch(A){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},ft={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ht={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Ze||(Ze={}));var pt,Et={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Ze.STRICT:Ze.NORMAL}},It={name:"line-height",initialValue:"normal",prefix:!1,type:4},yt=function(A,e){return JA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:$A(A)?ne(A,e):e},Kt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:ke(A,e)}},mt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},Lt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){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}}},vt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},bt=vt("top"),Dt=vt("right"),xt=vt("bottom"),Mt=vt("left"),St={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(JA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Tt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},Gt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ot=Gt("top"),Vt=Gt("right"),kt=Gt("bottom"),Rt=Gt("left"),Nt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Pt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&WA(e[0],"none")?[]:qA(e).map((function(e){for(var t={color:He.TRANSPARENT,offsetX:ee,offsetY:ee,blur:ee},r=0,B=0;B1?1:0],this.overflowWrap=pr(A,Tt,e.overflowWrap),this.paddingTop=pr(A,Ot,e.paddingTop),this.paddingRight=pr(A,Vt,e.paddingRight),this.paddingBottom=pr(A,kt,e.paddingBottom),this.paddingLeft=pr(A,Rt,e.paddingLeft),this.paintOrder=pr(A,Cr,e.paintOrder),this.position=pr(A,Pt,e.position),this.textAlign=pr(A,Nt,e.textAlign),this.textDecorationColor=pr(A,tr,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=pr(A,rr,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=pr(A,Xt,e.textShadow),this.textTransform=pr(A,Jt,e.textTransform),this.transform=pr(A,Yt,e.transform),this.transformOrigin=pr(A,qt,e.transformOrigin),this.visibility=pr(A,jt,e.visibility),this.webkitTextStrokeColor=pr(A,Fr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pr(A,hr,e.webkitTextStrokeWidth),this.wordBreak=pr(A,zt,e.wordBreak),this.zIndex=pr(A,$t,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return we(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Qr(this.display,4)||Qr(this.display,33554432)||Qr(this.display,268435456)||Qr(this.display,536870912)||Qr(this.display,67108864)||Qr(this.display,134217728)},A}(),fr=function(A,e){this.content=pr(A,cr,e.content),this.quotes=pr(A,ur,e.quotes)},Hr=function(A,e){this.counterIncrement=pr(A,ar,e.counterIncrement),this.counterReset=pr(A,gr,e.counterReset)},pr=function(A,e,t){var r=new RA,B=null!=t?t.toString():e.initialValue;r.write(B);var n=new NA(r.read());switch(e.type){case 2:var s=n.parseComponentValue();return e.parse(A,JA(s)?s.value:e.initialValue);case 0:return e.parse(A,n.parseComponentValue());case 1:return e.parse(A,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(e.format){case"angle":return ie(A,n.parseComponentValue());case"color":return ge(A,n.parseComponentValue());case"image":return ke(A,n.parseComponentValue());case"length":var o=n.parseComponentValue();return zA(o)?o:ee;case"length-percentage":var i=n.parseComponentValue();return $A(i)?i:ee;case"time":return Ar.parse(A,n.parseComponentValue())}}},Er=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},Ir=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Er(e,3),this.styles=new dr(A,window.getComputedStyle(e,null)),LB(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=o(this.context,e),Er(e,4)&&(this.flags|=16)},yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),mr=0;mr=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xr=0;xr>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},kr=function(A,e){var t,r,B,n=function(A){var e,t,r,B,n,s=.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var Q="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(Q)?Q:new Uint8Array(Q);for(e=0;e>4,c[i++]=(15&r)<<4|B>>2,c[i++]=(3&B)<<6|63&n;return Q}(A),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r=55296&&B<=56319&&t=t)return{done:!0,value:null};for(var A=Rr;rs.x||B.y>s.y;return s=B,0===e||o}));return A.body.removeChild(e),o}(document);return Object.defineProperty(Zr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Zr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var B=new Image,n=e.toDataURL();B.src=n;var s=Yr(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),Wr(s).then((function(e){r.drawImage(e,0,0);var B=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var s=A.createElement("div");return s.style.backgroundImage="url("+n+")",s.style.height="100px",Jr(B)?Wr(Yr(t,t,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Jr(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Zr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Zr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Zr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Zr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Zr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},_r=function(A,e){this.text=A,this.bounds=e},qr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var B=e.parentNode;if(B){B.replaceChild(r,e);var n=o(A,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return s.EMPTY},jr=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(A,e),B.setEnd(A,e+t),B},zr=function(A){if(Zr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){for(var e,t=Xr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},$r=function(A,e){return 0!==e.letterSpacing?zr(A):function(A,e){if(Zr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return eB(A,e)}(A,e)},AB=[32,160,4961,65792,65793,4153,4241],eB=function(A,e){for(var t,r=function(A,e){var t=i(A),r=nA(t,e),B=r[0],n=r[1],s=r[2],o=t.length,Q=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var A=Y;c0)if(Zr.SUPPORT_RANGE_BOUNDS){var B=jr(r,o,e.length).getClientRects();if(B.length>1){var i=zr(e),Q=0;i.forEach((function(e){n.push(new _r(e,s.fromDOMRectList(A,jr(r,Q+o,e.length).getClientRects()))),Q+=e.length}))}else n.push(new _r(e,s.fromDOMRectList(A,B)))}else{var c=r.splitText(e.length);n.push(new _r(e,qr(A,r))),r=c}else Zr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));o+=e.length})),n}(A,this.text,t,e)},rB=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(BB,nB);case 2:return A.toUpperCase();default:return A}},BB=/(^|\s|:|-|\(|\))([a-z])/g,nB=function(A,e,t){return A.length>0?e+t.toUpperCase():A},sB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(Ir),oB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(Ir),iB=function(A){function t(e,t){var r=A.call(this,e,t)||this,B=new XMLSerializer,n=o(e,t);return t.setAttribute("width",n.width+"px"),t.setAttribute("height",n.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(Ir),QB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Ir),cB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(Ir),aB=[{type:15,flags:0,unit:"px",number:3}],gB=[{type:16,flags:0,number:50}],wB="checkbox",uB="radio",lB="password",UB=707406591,CB=function(A){function t(e,t){var r,B,n,o=A.call(this,e,t)||this;switch(o.type=t.type.toLowerCase(),o.checked=t.checked,o.value=0===(n=(B=t).type===lB?new Array(B.value.length+1).join("•"):B.value).length?B.placeholder||"":n,o.type!==wB&&o.type!==uB||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=(r=o.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)t.textNodes.push(new tB(A,B,t.styles));else if(mB(B))if(PB(B)&&B.assignedNodes)B.assignedNodes().forEach((function(e){return HB(A,e,t,r)}));else{var s=pB(A,B);s.styles.isVisible()&&(IB(B,s,r)?s.flags|=4:yB(s.styles)&&(s.flags|=2),-1!==fB.indexOf(B.tagName)&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?HB(A,B.shadowRoot,s,r):RB(B)||MB(B)||NB(B)||HB(A,B,s,r))}},pB=function(A,e){return OB(e)?new sB(A,e):TB(e)?new oB(A,e):MB(e)?new iB(A,e):bB(e)?new QB(A,e):DB(e)?new cB(A,e):xB(e)?new CB(A,e):NB(e)?new FB(A,e):RB(e)?new hB(A,e):VB(e)?new dB(A,e):new Ir(A,e)},EB=function(A,e){var t=pB(A,e);return t.flags|=4,HB(A,e,t,t),t},IB=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||SB(A)&&t.styles.isTransparent()},yB=function(A){return A.isPositioned()||A.isFloating()},KB=function(A){return A.nodeType===Node.TEXT_NODE},mB=function(A){return A.nodeType===Node.ELEMENT_NODE},LB=function(A){return mB(A)&&void 0!==A.style&&!vB(A)},vB=function(A){return"object"==typeof A.className},bB=function(A){return"LI"===A.tagName},DB=function(A){return"OL"===A.tagName},xB=function(A){return"INPUT"===A.tagName},MB=function(A){return"svg"===A.tagName},SB=function(A){return"BODY"===A.tagName},TB=function(A){return"CANVAS"===A.tagName},GB=function(A){return"VIDEO"===A.tagName},OB=function(A){return"IMG"===A.tagName},VB=function(A){return"IFRAME"===A.tagName},kB=function(A){return"STYLE"===A.tagName},RB=function(A){return"TEXTAREA"===A.tagName},NB=function(A){return"SELECT"===A.tagName},PB=function(A){return"SLOT"===A.tagName},XB=function(A){return A.tagName.indexOf("-")>0},JB=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){return this.counters[A]||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,B=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(B=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var n=[];return B&&r.forEach((function(A){var t=e.counters[A.counter];n.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),n},A}(),YB={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"]},WB={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ZB={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_B={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qB=function(A,e,t,r,B,n){return At?nn(A,B,n.length>0):r.integers.reduce((function(e,t,B){for(;A>=t;)A-=t,e+=r.values[B];return e}),"")+n},jB=function(A,e,t,r){var B="";do{t||A--,B=r(A)+B,A/=e}while(A*e>=e);return B},zB=function(A,e,t,r,B){var n=t-e+1;return(A<0?"-":"")+(jB(Math.abs(A),n,r,(function(A){return Q(Math.floor(A%n)+e)}))+B)},$B=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return jB(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},An=function(A,e,t,r,B,n){if(A<-9999||A>9999)return nn(A,4,B.length>0);var s=Math.abs(A),o=B;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var Q=s%10;0===Q&&Qr(n,1)&&""!==o?o=e[Q]+o:Q>1||1===Q&&0===i||1===Q&&1===i&&Qr(n,2)||1===Q&&1===i&&Qr(n,4)&&A>100||1===Q&&i>1&&Qr(n,8)?o=e[Q]+(i>0?t[i-1]:"")+o:1===Q&&i>0&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},en="十百千萬",tn="拾佰仟萬",rn="マイナス",Bn="마이너스",nn=function(A,e,t){var r=t?". ":"",B=t?"、":"",n=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=zB(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return $B(A,"〇一二三四五六七八九",B);case 6:return qB(A,1,3999,YB,3,r).toLowerCase();case 7:return qB(A,1,3999,YB,3,r);case 8:return zB(A,945,969,!1,r);case 9:return zB(A,97,122,!1,r);case 10:return zB(A,65,90,!1,r);case 11:return zB(A,1632,1641,!0,r);case 12:case 49:return qB(A,1,9999,WB,3,r);case 35:return qB(A,1,9999,WB,3,r).toLowerCase();case 13:return zB(A,2534,2543,!0,r);case 14:case 30:return zB(A,6112,6121,!0,r);case 15:return $B(A,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return $B(A,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return An(A,"零一二三四五六七八九",en,"負",B,14);case 47:return An(A,"零壹貳參肆伍陸柒捌玖",tn,"負",B,15);case 42:return An(A,"零一二三四五六七八九",en,"负",B,14);case 41:return An(A,"零壹贰叁肆伍陆柒捌玖",tn,"负",B,15);case 26:return An(A,"〇一二三四五六七八九","十百千万",rn,B,0);case 25:return An(A,"零壱弐参四伍六七八九","拾百千万",rn,B,7);case 31:return An(A,"영일이삼사오육칠팔구","십백천만",Bn,n,7);case 33:return An(A,"零一二三四五六七八九","十百千萬",Bn,n,0);case 32:return An(A,"零壹貳參四五六七八九","拾百千",Bn,n,7);case 18:return zB(A,2406,2415,!0,r);case 20:return qB(A,1,19999,_B,3,r);case 21:return zB(A,2790,2799,!0,r);case 22:return zB(A,2662,2671,!0,r);case 22:return qB(A,1,10999,ZB,3,r);case 23:return $B(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return $B(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return zB(A,3302,3311,!0,r);case 28:return $B(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return $B(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return zB(A,3792,3801,!0,r);case 37:return zB(A,6160,6169,!0,r);case 38:return zB(A,4160,4169,!0,r);case 39:return zB(A,2918,2927,!0,r);case 40:return zB(A,1776,1785,!0,r);case 43:return zB(A,3046,3055,!0,r);case 44:return zB(A,3174,3183,!0,r);case 45:return zB(A,3664,3673,!0,r);case 46:return zB(A,3872,3881,!0,r);default:return zB(A,48,57,!0,r)}},sn="data-html2canvas-ignore",on=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new JB,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,n=cn(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,i=n.contentWindow,Q=i.document,c=wn(n).then((function(){return r(t,void 0,void 0,(function(){var A,t;return B(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Fn),i&&(i.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===e.top&&i.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-e.left,i.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Q.fonts&&Q.fonts.ready?[4,Q.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,gn(Q)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(Q,t)})).then((function(){return n}))]:[2,n]}}))}))}));return Q.open(),Q.write(Un(document.doctype)+""),Cn(this.referenceElement.ownerDocument,s,o),Q.replaceChild(Q.adoptNode(this.documentElement),Q.documentElement),Q.close(),c},A.prototype.createElementClone=function(A){if(Er(A,2),TB(A))return this.createCanvasClone(A);if(GB(A))return this.createVideoClone(A);if(kB(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return OB(e)&&(OB(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),XB(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return ln(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var B=A.getContext("2d"),n=r.getContext("2d");if(n)if(!this.options.allowTaint&&B)n.putImageData(B.getImageData(0,0,A.width,A.height),0,0);else{var s=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}n.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){mB(e)&&("SCRIPT"===e.tagName||e.hasAttribute(sn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&mB(e)&&kB(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,B=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;B;B=B.nextSibling)if(mB(B)&&PB(B)&&"function"==typeof B.assignedNodes){var n=B.assignedNodes();n.length&&n.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,B,t)},A.prototype.cloneNode=function(A,e){if(KB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&mB(A)&&(LB(A)||vB(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var B=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&LB(r)&&(this.clonedReferenceElement=r),SB(r)&&Hn(r);var o=this.counters.parse(new Hr(this.context,B)),i=this.resolvePseudoContent(A,r,n,Mr.BEFORE);XB(A)&&(e=!0),GB(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var Q=this.resolvePseudoContent(A,r,s,Mr.AFTER);return Q&&r.appendChild(Q),this.counters.pop(o),(B&&(this.options.copyStyles||vB(A))&&!VB(A)||e)&&ln(B,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(RB(A)||NB(A))&&(RB(r)||NB(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var B=this;if(t){var n=t.content,s=e.ownerDocument;if(s&&n&&"none"!==n&&"-moz-alt-content"!==n&&"none"!==t.display){this.counters.parse(new Hr(this.context,t));var o=new fr(this.context,t),i=s.createElement("html2canvaspseudoelement");ln(t,i),o.content.forEach((function(e){if(0===e.type)i.appendChild(s.createTextNode(e.value));else if(22===e.type){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(JA);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var n=e.values.filter(_A),Q=n[0],c=n[1];if(Q&&JA(Q)){var a=B.counters.getCounterValue(Q.value),g=c&&JA(c)?Lt.parse(B.context,c.value):3;i.appendChild(s.createTextNode(nn(a,g,!1)))}}else if("counters"===e.name){var w=e.values.filter(_A),u=(Q=w[0],w[1]);if(c=w[2],Q&&JA(Q)){var l=B.counters.getCounterValues(Q.value),U=c&&JA(c)?Lt.parse(B.context,c.value):3,C=u&&0===u.type?u.value:"",F=l.map((function(A){return nn(A,U,!1)})).join(C);i.appendChild(s.createTextNode(F))}}}else if(20===e.type)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(lr(o.quotes,B.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(lr(o.quotes,--B.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}})),i.className=hn+" "+dn;var Q=r===Mr.BEFORE?" "+hn:" "+dn;return vB(e)?e.className.baseValue+=Q:e.className+=Q,i}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(Mr||(Mr={}));var Qn,cn=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(sn,"true"),A.body.appendChild(t),t},an=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},gn=function(A){return Promise.all([].slice.call(A.images,0).map(an))},wn=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){B.body.childNodes.length>0&&"complete"===B.readyState&&(clearInterval(t),e(A))}),50)}}))},un=["all","d","content"],ln=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===un.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},Un=function(A){var e="";return A&&(e+=""),e},Cn=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Fn=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},hn="___html2canvas___pseudoelement_before",dn="___html2canvas___pseudoelement_after",fn='{\n content: "" !important;\n display: none !important;\n}',Hn=function(A){pn(A,"."+hn+":before"+fn+"\n ."+dn+":after"+fn)},pn=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},En=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),In=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Dn(A)||Ln(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var e,t,r,n,s=this;return B(this,(function(B){switch(B.label){case 0:return e=En.isSameOrigin(A),t=!vn(A)&&!0===this._options.useCORS&&Zr.SUPPORT_CORS_IMAGES&&!e,r=!vn(A)&&!e&&!Dn(A)&&"string"==typeof this._options.proxy&&Zr.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||vn(A)||Dn(A)||r||t?(n=A,r?[4,this.proxy(n)]:[3,2]):[2];case 1:n=B.sent(),B.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(bn(n)||t)&&(r.crossOrigin="anonymous"),r.src=n,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,B.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(B,n){var s=Zr.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)B(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return B(A.result)}),!1),A.addEventListener("error",(function(A){return n(A)}),!1),A.readAsDataURL(o.response)}else n("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=n;var i=t.indexOf("?")>-1?"&":"?";if(o.open("GET",""+t+i+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var Q=e._options.imageTimeout;o.timeout=Q,o.ontimeout=function(){return n("Timed out ("+Q+"ms) proxying "+r)}}o.send()}))},A}(),yn=/^data:image\/svg\+xml/i,Kn=/^data:image\/.*;base64,/i,mn=/^data:image\/.*/i,Ln=function(A){return Zr.SUPPORT_SVG_DRAWING||!xn(A)},vn=function(A){return mn.test(A)},bn=function(A){return Kn.test(A)},Dn=function(A){return"blob"===A.substr(0,4)},xn=function(A){return"svg"===A.substr(-3).toLowerCase()||yn.test(A)},Mn=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Sn=function(A,e,t){return new Mn(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Tn=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=Sn(this.start,this.startControl,e),B=Sn(this.startControl,this.endControl,e),n=Sn(this.endControl,this.end,e),s=Sn(r,B,e),o=Sn(B,n,e),i=Sn(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,n,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Gn=function(A){return 1===A.type},On=function(A){var e=A.styles,t=A.bounds,r=Be(e.borderTopLeftRadius,t.width,t.height),B=r[0],n=r[1],s=Be(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],Q=Be(e.borderBottomRightRadius,t.width,t.height),c=Q[0],a=Q[1],g=Be(e.borderBottomLeftRadius,t.width,t.height),w=g[0],u=g[1],l=[];l.push((B+o)/t.width),l.push((w+c)/t.width),l.push((n+u)/t.height),l.push((i+a)/t.height);var U=Math.max.apply(Math,l);U>1&&(B/=U,n/=U,o/=U,i/=U,c/=U,a/=U,w/=U,u/=U);var C=t.width-o,F=t.height-a,h=t.width-c,d=t.height-u,f=e.borderTopWidth,H=e.borderRightWidth,p=e.borderBottomWidth,E=e.borderLeftWidth,I=ne(e.paddingTop,A.bounds.width),y=ne(e.paddingRight,A.bounds.width),K=ne(e.paddingBottom,A.bounds.width),m=ne(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||n>0?Vn(t.left+E/3,t.top+f/3,B-E/3,n-f/3,Qn.TOP_LEFT):new Mn(t.left+E/3,t.top+f/3),this.topRightBorderDoubleOuterBox=B>0||n>0?Vn(t.left+C,t.top+f/3,o-H/3,i-f/3,Qn.TOP_RIGHT):new Mn(t.left+t.width-H/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=c>0||a>0?Vn(t.left+h,t.top+F,c-H/3,a-p/3,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-H/3,t.top+t.height-p/3),this.bottomLeftBorderDoubleOuterBox=w>0||u>0?Vn(t.left+E/3,t.top+d,w-E/3,u-p/3,Qn.BOTTOM_LEFT):new Mn(t.left+E/3,t.top+t.height-p/3),this.topLeftBorderDoubleInnerBox=B>0||n>0?Vn(t.left+2*E/3,t.top+2*f/3,B-2*E/3,n-2*f/3,Qn.TOP_LEFT):new Mn(t.left+2*E/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=B>0||n>0?Vn(t.left+C,t.top+2*f/3,o-2*H/3,i-2*f/3,Qn.TOP_RIGHT):new Mn(t.left+t.width-2*H/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=c>0||a>0?Vn(t.left+h,t.top+F,c-2*H/3,a-2*p/3,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-2*H/3,t.top+t.height-2*p/3),this.bottomLeftBorderDoubleInnerBox=w>0||u>0?Vn(t.left+2*E/3,t.top+d,w-2*E/3,u-2*p/3,Qn.BOTTOM_LEFT):new Mn(t.left+2*E/3,t.top+t.height-2*p/3),this.topLeftBorderStroke=B>0||n>0?Vn(t.left+E/2,t.top+f/2,B-E/2,n-f/2,Qn.TOP_LEFT):new Mn(t.left+E/2,t.top+f/2),this.topRightBorderStroke=B>0||n>0?Vn(t.left+C,t.top+f/2,o-H/2,i-f/2,Qn.TOP_RIGHT):new Mn(t.left+t.width-H/2,t.top+f/2),this.bottomRightBorderStroke=c>0||a>0?Vn(t.left+h,t.top+F,c-H/2,a-p/2,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-H/2,t.top+t.height-p/2),this.bottomLeftBorderStroke=w>0||u>0?Vn(t.left+E/2,t.top+d,w-E/2,u-p/2,Qn.BOTTOM_LEFT):new Mn(t.left+E/2,t.top+t.height-p/2),this.topLeftBorderBox=B>0||n>0?Vn(t.left,t.top,B,n,Qn.TOP_LEFT):new Mn(t.left,t.top),this.topRightBorderBox=o>0||i>0?Vn(t.left+C,t.top,o,i,Qn.TOP_RIGHT):new Mn(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||a>0?Vn(t.left+h,t.top+F,c,a,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=w>0||u>0?Vn(t.left,t.top+d,w,u,Qn.BOTTOM_LEFT):new Mn(t.left,t.top+t.height),this.topLeftPaddingBox=B>0||n>0?Vn(t.left+E,t.top+f,Math.max(0,B-E),Math.max(0,n-f),Qn.TOP_LEFT):new Mn(t.left+E,t.top+f),this.topRightPaddingBox=o>0||i>0?Vn(t.left+Math.min(C,t.width-H),t.top+f,C>t.width+H?0:Math.max(0,o-H),Math.max(0,i-f),Qn.TOP_RIGHT):new Mn(t.left+t.width-H,t.top+f),this.bottomRightPaddingBox=c>0||a>0?Vn(t.left+Math.min(h,t.width-E),t.top+Math.min(F,t.height-p),Math.max(0,c-H),Math.max(0,a-p),Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-H,t.top+t.height-p),this.bottomLeftPaddingBox=w>0||u>0?Vn(t.left+E,t.top+Math.min(d,t.height-p),Math.max(0,w-E),Math.max(0,u-p),Qn.BOTTOM_LEFT):new Mn(t.left+E,t.top+t.height-p),this.topLeftContentBox=B>0||n>0?Vn(t.left+E+m,t.top+f+I,Math.max(0,B-(E+m)),Math.max(0,n-(f+I)),Qn.TOP_LEFT):new Mn(t.left+E+m,t.top+f+I),this.topRightContentBox=o>0||i>0?Vn(t.left+Math.min(C,t.width+E+m),t.top+f+I,C>t.width+E+m?0:o-E+m,i-(f+I),Qn.TOP_RIGHT):new Mn(t.left+t.width-(H+y),t.top+f+I),this.bottomRightContentBox=c>0||a>0?Vn(t.left+Math.min(h,t.width-(E+m)),t.top+Math.min(F,t.height+f+I),Math.max(0,c-(H+y)),a-(p+K),Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-(H+y),t.top+t.height-(p+K)),this.bottomLeftContentBox=w>0||u>0?Vn(t.left+E+m,t.top+d,Math.max(0,w-(E+m)),u-(p+K),Qn.BOTTOM_LEFT):new Mn(t.left+E+m,t.top+t.height-(p+K))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Qn||(Qn={}));var Vn=function(A,e,t,r,B){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=r*n,i=A+t,Q=e+r;switch(B){case Qn.TOP_LEFT:return new Tn(new Mn(A,Q),new Mn(A,Q-o),new Mn(i-s,e),new Mn(i,e));case Qn.TOP_RIGHT:return new Tn(new Mn(A,e),new Mn(A+s,e),new Mn(i,Q-o),new Mn(i,Q));case Qn.BOTTOM_RIGHT:return new Tn(new Mn(i,e),new Mn(i,e+o),new Mn(A+s,Q),new Mn(A,Q));case Qn.BOTTOM_LEFT:default:return new Tn(new Mn(i,Q),new Mn(i-s,Q),new Mn(A,e+o),new Mn(A,e))}},kn=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Rn=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Nn=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},Pn=function(A,e){this.path=A,this.target=e,this.type=1},Xn=function(A){this.opacity=A,this.type=2,this.target=6},Jn=function(A){return 1===A.type},Yn=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Wn=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Zn=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new On(this.container),this.container.styles.opacity<1&&this.effects.push(new Xn(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new Nn(t,r,B))}if(0!==this.container.styles.overflowX){var n=kn(this.curves),s=Rn(this.curves);Yn(n,s)?this.effects.push(new Pn(n,6)):(this.effects.push(new Pn(n,2)),this.effects.push(new Pn(s,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var B=t.effects.filter((function(A){return!Jn(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,B),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var n=kn(t.curves),s=Rn(t.curves);Yn(n,s)||r.unshift(new Pn(s,6))}}else r.unshift.apply(r,B);t=t.parent}return r.filter((function(e){return Qr(e.target,A)}))},A}(),_n=function(A,e,t,r){A.container.elements.forEach((function(B){var n=Qr(B.flags,4),s=Qr(B.flags,2),o=new Zn(B,A);Qr(B.styles.display,2048)&&r.push(o);var i=Qr(B.flags,8)?[]:r;if(n||s){var Q=n||B.styles.isPositioned()?t:e,c=new Wn(o);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var a=B.styles.zIndex.order;if(a<0){var g=0;Q.negativeZIndex.some((function(A,e){return a>A.element.container.styles.zIndex.order?(g=e,!1):g>0})),Q.negativeZIndex.splice(g,0,c)}else if(a>0){var w=0;Q.positiveZIndex.some((function(A,e){return a>=A.element.container.styles.zIndex.order?(w=e+1,!1):w>0})),Q.positiveZIndex.splice(w,0,c)}else Q.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else B.styles.isFloating()?Q.nonPositionedFloats.push(c):Q.nonPositionedInlineLevel.push(c);_n(o,c,n?c:t,i)}else B.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),_n(o,e,t,i);Qr(B.flags,8)&&qn(B,i)}))},qn=function(A,e){for(var t=A instanceof cB?A.start:1,r=A instanceof cB&&A.reversed,B=0;B0&&A.intrinsicHeight>0){var r=es(A),B=Rn(e);this.path(B),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var e,r,n,o,i,Q,c,a,g,w,u,l,U,C,F,h,d,f;return B(this,(function(B){switch(B.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,n=e.styles,o=0,i=e.textNodes,B.label=1;case 1:return o0&&E>0&&(F=r.ctx.createPattern(l,"repeat"),r.renderRepeat(d,F,y,K))):function(A){return 2===A.type}(t)&&(h=ts(A,e,[null,null,null]),d=h[0],f=h[1],H=h[2],p=h[3],E=h[4],I=0===t.position.length?[te]:t.position,y=ne(I[0],p),K=ne(I[I.length-1],E),m=function(A,e,t,r,B){var n=0,s=0;switch(A.size){case 0:0===A.shape?n=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(n=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(0===A.shape)n=s=Math.min(me(e,t),me(e,t-B),me(e-r,t),me(e-r,t-B));else if(1===A.shape){var o=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(e),Math.abs(e-r)),i=Le(r,B,e,t,!0),Q=i[0],c=i[1];s=o*(n=me(Q-e,(c-t)/o))}break;case 1:0===A.shape?n=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(n=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(0===A.shape)n=s=Math.max(me(e,t),me(e,t-B),me(e-r,t),me(e-r,t-B));else if(1===A.shape){o=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(e),Math.abs(e-r));var a=Le(r,B,e,t,!1);Q=a[0],c=a[1],s=o*(n=me(Q-e,(c-t)/o))}}return Array.isArray(A.size)&&(n=ne(A.size[0],r),s=2===A.size.length?ne(A.size[1],B):n),[n,s]}(t,y,K,p,E),L=m[0],v=m[1],L>0&&v>0&&(b=r.ctx.createRadialGradient(f+y,H+K,0,f+y,H+K,L),ye(t.stops,2*L).forEach((function(A){return b.addColorStop(A.stop,ue(A.color))})),r.path(d),r.ctx.fillStyle=b,L!==v?(D=A.bounds.left+.5*A.bounds.width,x=A.bounds.top+.5*A.bounds.height,S=1/(M=v/L),r.ctx.save(),r.ctx.translate(D,x),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-D,-x),r.ctx.fillRect(f,S*(H-x)+x,p,E*S),r.ctx.restore()):r.ctx.fill())),B.label=6;case 6:return e--,[2]}}))},r=this,n=0,s=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return n0?2!==Q.style?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return B.sent(),[3,11];case 5:return 3!==Q.style?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,s,A.curves,3)];case 6:return B.sent(),[3,11];case 7:return 4!==Q.style?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,s,A.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,s,A.curves)];case 10:B.sent(),B.label=11;case 11:s++,B.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,n,s){return r(this,void 0,void 0,(function(){var r,o,i,Q,c,a,g,w,u,l,U,C,F,h,d,f;return B(this,(function(B){return this.ctx.save(),r=function(A,e){switch(e){case 0:return zn(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return zn(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return zn(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return zn(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(n,t),o=jn(n,t),2===s&&(this.path(o),this.ctx.clip()),Gn(o[0])?(i=o[0].start.x,Q=o[0].start.y):(i=o[0].x,Q=o[0].y),Gn(o[1])?(c=o[1].end.x,a=o[1].end.y):(c=o[1].x,a=o[1].y),g=0===t||2===t?Math.abs(i-c):Math.abs(Q-a),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(o.slice(0,2)),w=e<3?3*e:2*e,u=e<3?2*e:e,3===s&&(w=e,u=e),l=!0,g<=2*w?l=!1:g<=2*w+u?(w*=U=g/(2*w+u),u*=U):(C=Math.floor((g+u)/(w+u)),F=(g-C*w)/(C-1),u=(h=(g-(C+1)*w)/C)<=0||Math.abs(u-F)
+ * Copyright (c) 2022 Niklas von Hertzen
+ * Released under MIT License
+ */
+
+/*! *****************************************************************************
+ Copyright (c) Microsoft Corporation.
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+ ***************************************************************************** */
diff --git a/inst/www/354.gosling.js b/inst/www/354.gosling.js
new file mode 100644
index 00000000..f228d096
--- /dev/null
+++ b/inst/www/354.gosling.js
@@ -0,0 +1,2 @@
+/*! For license information please see 354.gosling.js.LICENSE.txt */
+(self.webpackChunkjs=self.webpackChunkjs||[]).push([[354],{354:function(A){A.exports=function(){"use strict";var A=function(e,t){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},A(e,t)};function e(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var t=function(){return t=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&B[B.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!B||n[1]>B[0]&&n[1]=55296&&B<=56319&&t>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),w=0;w<64;w++)a[c.charCodeAt(w)]=w;for(var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),l=0;l<64;l++)u[g.charCodeAt(l)]=l;for(var U=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},C=function(){function A(A,e,t,r,B,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=B,this.data=n}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<64;d++)h[F.charCodeAt(d)]=d;var f=10,H=13,p=15,E=17,I=18,y=19,K=20,m=21,L=22,v=24,b=25,D=26,x=27,M=28,S=30,T=32,G=33,O=34,V=35,k=37,R=38,N=39,P=40,X=42,J=[9001,65288],Y="×",W="÷",Z=function(A,e){var t,r,B,n=function(A){var e,t,r,B,n,s=.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var Q="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(Q)?Q:new Uint8Array(Q);for(e=0;e>4,c[i++]=(15&r)<<4|B>>2,c[i++]=(3&B)<<6|63&n;return Q}(A),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r0;){var s=r[--n];if(Array.isArray(A)?-1!==A.indexOf(s):A===s)for(var o=t;o<=r.length;){var i;if((i=r[++o])===e)return!0;if(i!==f)break}if(s!==f)break}return!1},rA=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==f)return r;t--}return 0},BA=function(A,e,t,r,B){if(0===t[r])return Y;var n=r-1;if(Array.isArray(B)&&!0===B[n])return Y;var s=n-1,o=n+1,i=e[n],Q=s>=0?e[s]:0,c=e[o];if(2===i&&3===c)return Y;if(-1!==q.indexOf(i))return"!";if(-1!==q.indexOf(c))return Y;if(-1!==j.indexOf(c))return Y;if(8===rA(n,e))return W;if(11===Z.get(A[n]))return Y;if((i===T||i===G)&&11===Z.get(A[o]))return Y;if(7===i||7===c)return Y;if(9===i)return Y;if(-1===[f,H,p].indexOf(i)&&9===c)return Y;if(-1!==[E,I,y,v,M].indexOf(c))return Y;if(rA(n,e)===L)return Y;if(tA(23,L,n,e))return Y;if(tA([E,I],m,n,e))return Y;if(tA(12,12,n,e))return Y;if(i===f)return W;if(23===i||23===c)return Y;if(16===c||16===i)return W;if(-1!==[H,p,m].indexOf(c)||14===i)return Y;if(36===Q&&-1!==eA.indexOf(i))return Y;if(i===M&&36===c)return Y;if(c===K)return Y;if(-1!==_.indexOf(c)&&i===b||-1!==_.indexOf(i)&&c===b)return Y;if(i===x&&-1!==[k,T,G].indexOf(c)||-1!==[k,T,G].indexOf(i)&&c===D)return Y;if(-1!==_.indexOf(i)&&-1!==z.indexOf(c)||-1!==z.indexOf(i)&&-1!==_.indexOf(c))return Y;if(-1!==[x,D].indexOf(i)&&(c===b||-1!==[L,p].indexOf(c)&&e[o+1]===b)||-1!==[L,p].indexOf(i)&&c===b||i===b&&-1!==[b,M,v].indexOf(c))return Y;if(-1!==[b,M,v,E,I].indexOf(c))for(var a=n;a>=0;){if((w=e[a])===b)return Y;if(-1===[M,v].indexOf(w))break;a--}if(-1!==[x,D].indexOf(c))for(a=-1!==[E,I].indexOf(i)?s:n;a>=0;){var w;if((w=e[a])===b)return Y;if(-1===[M,v].indexOf(w))break;a--}if(R===i&&-1!==[R,N,O,V].indexOf(c)||-1!==[N,O].indexOf(i)&&-1!==[N,P].indexOf(c)||-1!==[P,V].indexOf(i)&&c===P)return Y;if(-1!==AA.indexOf(i)&&-1!==[K,D].indexOf(c)||-1!==AA.indexOf(c)&&i===x)return Y;if(-1!==_.indexOf(i)&&-1!==_.indexOf(c))return Y;if(i===v&&-1!==_.indexOf(c))return Y;if(-1!==_.concat(b).indexOf(i)&&c===L&&-1===J.indexOf(A[o])||-1!==_.concat(b).indexOf(c)&&i===I)return Y;if(41===i&&41===c){for(var g=t[n],u=1;g>0&&41===e[--g];)u++;if(u%2!=0)return Y}return i===T&&c===G?Y:W},nA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],B=[];return A.forEach((function(A,n){var s=Z.get(A);if(s>50?(B.push(!0),s-=50):B.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(n),t.push(16);if(4===s||11===s){if(0===n)return r.push(n),t.push(S);var o=t[n-1];return-1===$.indexOf(o)?(r.push(r[n-1]),t.push(o)):(r.push(n),t.push(S))}return r.push(n),31===s?t.push("strict"===e?m:k):s===X||29===s?t.push(S):43===s?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(k):t.push(S):void t.push(s)})),[r,t,B]}(A,e.lineBreak),r=t[0],B=t[1],n=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(B=B.map((function(A){return-1!==[b,S,X].indexOf(A)?k:A})));var s="keep-all"===e.wordBreak?n.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,B,s]},sA=function(){function A(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}return A.prototype.slice=function(){return Q.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),oA=45,iA=43,QA=-1,cA=function(A){return A>=48&&A<=57},aA=function(A){return cA(A)||A>=65&&A<=70||A>=97&&A<=102},wA=function(A){return 10===A||9===A||32===A},gA=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},uA=function(A){return gA(A)||cA(A)||A===oA},lA=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},UA=function(A,e){return 92===A&&10!==e},CA=function(A,e,t){return A===oA?gA(e)||UA(e,t):!!gA(A)||!(92!==A||!UA(A,e))},FA=function(A,e,t){return A===iA||A===oA?!!cA(e)||46===e&&cA(t):cA(46===A?e:A)},hA=function(A){var e=0,t=1;A[e]!==iA&&A[e]!==oA||(A[e]===oA&&(t=-1),e++);for(var r=[];cA(A[e]);)r.push(A[e++]);var B=r.length?parseInt(Q.apply(void 0,r),10):0;46===A[e]&&e++;for(var n=[];cA(A[e]);)n.push(A[e++]);var s=n.length,o=s?parseInt(Q.apply(void 0,n),10):0;69!==A[e]&&101!==A[e]||e++;var i=1;A[e]!==iA&&A[e]!==oA||(A[e]===oA&&(i=-1),e++);for(var c=[];cA(A[e]);)c.push(A[e++]);var a=c.length?parseInt(Q.apply(void 0,c),10):0;return t*(B+o*Math.pow(10,-s))*Math.pow(10,i*a)},dA={type:2},fA={type:3},HA={type:4},pA={type:13},EA={type:8},IA={type:21},yA={type:9},KA={type:10},mA={type:11},LA={type:12},vA={type:14},bA={type:23},DA={type:1},xA={type:25},MA={type:24},SA={type:26},TA={type:27},GA={type:28},OA={type:29},VA={type:31},kA={type:32},RA=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(i(A))},A.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==kA;)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(uA(e)||UA(t,r)){var B=CA(e,t,r)?2:1;return{type:5,value:this.consumeName(),flags:B}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pA;break;case 39:return this.consumeStringToken(39);case 40:return dA;case 41:return fA;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),vA;break;case iA:if(FA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return HA;case oA:var n=A,s=this.peekCodePoint(0),o=this.peekCodePoint(1);if(FA(n,s,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(CA(n,s,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(s===oA&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),MA;break;case 46:if(FA(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var i=this.consumeCodePoint();if(42===i&&47===(i=this.consumeCodePoint()))return this.consumeToken();if(i===QA)return this.consumeToken()}break;case 58:return SA;case 59:return TA;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===oA&&this.peekCodePoint(2)===oA)return this.consumeCodePoint(),this.consumeCodePoint(),xA;break;case 64:var c=this.peekCodePoint(0),a=this.peekCodePoint(1),w=this.peekCodePoint(2);if(CA(c,a,w))return{type:7,value:this.consumeName()};break;case 91:return GA;case 92:if(UA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return OA;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),EA;break;case 123:return mA;case 125:return LA;case 117:case 85:var g=this.peekCodePoint(0),u=this.peekCodePoint(1);return g!==iA||!aA(u)&&63!==u||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yA;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),IA;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),KA;break;case QA:return kA}return wA(A)?(this.consumeWhiteSpace(),VA):cA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):gA(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:Q(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();aA(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(Q.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(Q.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var r=parseInt(Q.apply(void 0,A),16);if(this.peekCodePoint(0)===oA&&aA(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var B=[];aA(e)&&B.length<6;)B.push(e),e=this.consumeCodePoint();return{type:30,start:r,end:parseInt(Q.apply(void 0,B),16)}}return{type:30,start:r,end:r}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===QA)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===QA||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),bA)}for(;;){var r=this.consumeCodePoint();if(r===QA||41===r)return{type:22,value:Q.apply(void 0,A)};if(wA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===QA||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:Q.apply(void 0,A)}):(this.consumeBadUrlRemnants(),bA);if(34===r||39===r||40===r||lA(r))return this.consumeBadUrlRemnants(),bA;if(92===r){if(!UA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),bA;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){for(;wA(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===QA)return;UA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=Q.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var r=this._value[t];if(r===QA||void 0===r||r===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===r)return this._value.splice(0,t),DA;if(92===r){var B=this._value[t+1];B!==QA&&void 0!==B&&(10===B?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):UA(r,B)&&(e+=this.consumeStringSlice(t),e+=Q(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],e=4,t=this.peekCodePoint(0);for(t!==iA&&t!==oA||A.push(this.consumeCodePoint());cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===t&&cA(r))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),r=this.peekCodePoint(1);var B=this.peekCodePoint(2);if((69===t||101===t)&&((r===iA||r===oA)&&cA(B)||cA(r)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;cA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[hA(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),B=this.peekCodePoint(1),n=this.peekCodePoint(2);return CA(r,B,n)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(aA(A)){for(var e=Q(A);aA(this.peekCodePoint(0))&&e.length<6;)e+=Q(this.consumeCodePoint());wA(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return A===QA?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(uA(e))A+=Q(e);else{if(!UA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=Q(this.consumeEscapedCodePoint())}}},A}(),NA=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new RA;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||jA(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?kA:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),PA=function(A){return 15===A.type},XA=function(A){return 17===A.type},JA=function(A){return 20===A.type},YA=function(A){return 0===A.type},WA=function(A,e){return JA(A)&&A.value===e},ZA=function(A){return 31!==A.type},_A=function(A){return 31!==A.type&&4!==A.type},qA=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e},jA=function(A,e){return 11===e&&12===A.type||28===e&&29===A.type||2===e&&3===A.type},zA=function(A){return 17===A.type||15===A.type},$A=function(A){return 16===A.type||zA(A)},Ae=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},ee={type:17,number:0,flags:4},te={type:16,number:50,flags:4},re={type:16,number:100,flags:4},Be=function(A,e,t){var r=A[0],B=A[1];return[ne(r,e),ne(void 0!==B?B:r,t)]},ne=function(A,e){if(16===A.type)return A.number/100*e;if(PA(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number},se="grad",oe="turn",ie=function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case se:return Math.PI/200*e.number;case"rad":return e.number;case oe:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},Qe=function(A){return 15===A.type&&("deg"===A.unit||A.unit===se||"rad"===A.unit||A.unit===oe)},ce=function(A){switch(A.filter(JA).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ee,ee];case"to top":case"bottom":return ae(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ee,re];case"to right":case"left":return ae(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[re,re];case"to bottom":case"top":return ae(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[re,ee];case"to left":case"right":return ae(270)}return 0},ae=function(A){return Math.PI*A/180},we=function(A,e){if(18===e.type){var t=de[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(A,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);return le(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(4===e.value.length){r=e.value.substring(0,1),B=e.value.substring(1,2),n=e.value.substring(2,3);var s=e.value.substring(3,4);return le(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),le(parseInt(r,16),parseInt(B,16),parseInt(n,16),1);if(8===e.value.length)return r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8),le(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}if(20===e.type){var o=He[e.value.toUpperCase()];if(void 0!==o)return o}return He.TRANSPARENT},ge=function(A){return!(255&A)},ue=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,B=255&A>>24;return e<255?"rgba("+B+","+r+","+t+","+e/255+")":"rgb("+B+","+r+","+t+")"},le=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r))>>>0},Ue=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},Ce=function(A,e){var t=e.filter(_A);if(3===t.length){var r=t.map(Ue),B=r[0],n=r[1],s=r[2];return le(B,n,s,1)}if(4===t.length){var o=t.map(Ue),i=(B=o[0],n=o[1],s=o[2],o[3]);return le(B,n,s,i)}return 0};function Fe(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var he=function(A,e){var t=e.filter(_A),r=t[0],B=t[1],n=t[2],s=t[3],o=(17===r.type?ae(r.number):ie(A,r))/(2*Math.PI),i=$A(B)?B.number/100:0,Q=$A(n)?n.number/100:0,c=void 0!==s&&$A(s)?ne(s,1):1;if(0===i)return le(255*Q,255*Q,255*Q,1);var a=Q<=.5?Q*(i+1):Q+i-Q*i,w=2*Q-a,g=Fe(w,a,o+1/3),u=Fe(w,a,o),l=Fe(w,a,o-1/3);return le(255*g,255*u,255*l,c)},de={hsl:he,hsla:he,rgb:Ce,rgba:Ce},fe=function(A,e){return we(A,NA.create(e).parseComponentValue())},He={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},pe={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(JA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ee={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ie=function(A,e){var t=we(A,e[0]),r=e[1];return r&&$A(r)?{color:t,stop:r}:{color:t,stop:null}},ye=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=ee),null===r.stop&&(r.stop=re);for(var B=[],n=0,s=0;sn?B.push(i):B.push(n),n=i}else B.push(null)}var Q=null;for(s=0;sA.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},ve=function(A,e){var t=ae(180),r=[];return qA(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(t=ce(e));if(Qe(n))return void(t=(ie(A,n)+ae(270))%ae(360))}var s=Ie(A,e);r.push(s)})),{angle:t,stops:r,type:1}},be="closest-side",De="farthest-side",xe="closest-corner",Me="farthest-corner",Se="circle",Te="ellipse",Ge="cover",Oe="contain",Ve=function(A,e){var t=0,r=3,B=[],n=[];return qA(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(A,e){if(JA(e))switch(e.value){case"center":return n.push(te),!1;case"top":case"left":return n.push(ee),!1;case"right":case"bottom":return n.push(re),!1}else if($A(e)||zA(e))return n.push(e),!1;return A}),o):1===s&&(o=e.reduce((function(A,e){if(JA(e))switch(e.value){case Se:return t=0,!1;case Te:return t=1,!1;case Oe:case be:return r=0,!1;case De:return r=1,!1;case xe:return r=2,!1;case Ge:case Me:return r=3,!1}else if(zA(e)||$A(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)),o){var i=Ie(A,e);B.push(i)}})),{size:r,shape:t,stops:B,position:n,type:2}},ke=function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=Ne[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(A,e.values)}throw new Error("Unsupported image type "+e.type)};var Re,Ne={"linear-gradient":function(A,e){var t=ae(180),r=[];return qA(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&"to"===n.value)return void(t=ce(e));if(Qe(n))return void(t=ie(A,n))}var s=Ie(A,e);r.push(s)})),{angle:t,stops:r,type:1}},"-moz-linear-gradient":ve,"-ms-linear-gradient":ve,"-o-linear-gradient":ve,"-webkit-linear-gradient":ve,"radial-gradient":function(A,e){var t=0,r=3,B=[],n=[];return qA(e).forEach((function(e,s){var o=!0;if(0===s){var i=!1;o=e.reduce((function(A,e){if(i)if(JA(e))switch(e.value){case"center":return n.push(te),A;case"top":case"left":return n.push(ee),A;case"right":case"bottom":return n.push(re),A}else($A(e)||zA(e))&&n.push(e);else if(JA(e))switch(e.value){case Se:return t=0,!1;case Te:return t=1,!1;case"at":return i=!0,!1;case be:return r=0,!1;case Ge:case De:return r=1,!1;case Oe:case xe:return r=2,!1;case Me:return r=3,!1}else if(zA(e)||$A(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)}if(o){var Q=Ie(A,e);B.push(Q)}})),{size:r,shape:t,stops:B,position:n,type:2}},"-moz-radial-gradient":Ve,"-ms-radial-gradient":Ve,"-o-radial-gradient":Ve,"-webkit-radial-gradient":Ve,"-webkit-gradient":function(A,e){var t=ae(180),r=[],B=1;return qA(e).forEach((function(e,t){var n=e[0];if(0===t){if(JA(n)&&"linear"===n.value)return void(B=1);if(JA(n)&&"radial"===n.value)return void(B=2)}if(18===n.type)if("from"===n.name){var s=we(A,n.values[0]);r.push({stop:ee,color:s})}else if("to"===n.name)s=we(A,n.values[0]),r.push({stop:re,color:s});else if("color-stop"===n.name){var o=n.values.filter(_A);if(2===o.length){s=we(A,o[1]);var i=o[0];XA(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:s})}}})),1===B?{angle:(t+ae(180))%ae(360),stops:r,type:B}:{size:3,shape:0,stops:r,position:[],type:B}}},Pe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return _A(A)&&function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!Ne[A.name])}(A)})).map((function(e){return ke(A,e)}))}},Xe={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(JA(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Je={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return qA(e).map((function(A){return A.filter($A)})).map(Ae)}},Ye={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return qA(e).map((function(A){return A.filter(JA).map((function(A){return A.value})).join(" ")})).map(We)}},We=function(A){switch(A){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(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(Re||(Re={}));var Ze,_e={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return qA(e).map((function(A){return A.filter(qe)}))}},qe=function(A){return JA(A)||$A(A)},je=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ze=je("top"),$e=je("right"),At=je("bottom"),et=je("left"),tt=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Ae(e.filter($A))}}},rt=tt("top-left"),Bt=tt("top-right"),nt=tt("bottom-right"),st=tt("bottom-left"),ot=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},it=ot("top"),Qt=ot("right"),ct=ot("bottom"),at=ot("left"),wt=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return PA(e)?e.number:0}}},gt=wt("top"),ut=wt("right"),lt=wt("bottom"),Ut=wt("left"),Ct={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ft={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}},ht={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(JA).reduce((function(A,e){return A|dt(e.value)}),0)}},dt=function(A){switch(A){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},ft={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ht={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(A){A.NORMAL="normal",A.STRICT="strict"}(Ze||(Ze={}));var pt,Et={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?Ze.STRICT:Ze.NORMAL}},It={name:"line-height",initialValue:"normal",prefix:!1,type:4},yt=function(A,e){return JA(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:$A(A)?ne(A,e):e},Kt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:ke(A,e)}},mt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}},Lt={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){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}}},vt=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},bt=vt("top"),Dt=vt("right"),xt=vt("bottom"),Mt=vt("left"),St={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(JA).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}},Tt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}},Gt=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ot=Gt("top"),Vt=Gt("right"),kt=Gt("bottom"),Rt=Gt("left"),Nt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Pt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&WA(e[0],"none")?[]:qA(e).map((function(e){for(var t={color:He.TRANSPARENT,offsetX:ee,offsetY:ee,blur:ee},r=0,B=0;B1?1:0],this.overflowWrap=pr(A,Tt,e.overflowWrap),this.paddingTop=pr(A,Ot,e.paddingTop),this.paddingRight=pr(A,Vt,e.paddingRight),this.paddingBottom=pr(A,kt,e.paddingBottom),this.paddingLeft=pr(A,Rt,e.paddingLeft),this.paintOrder=pr(A,Cr,e.paintOrder),this.position=pr(A,Pt,e.position),this.textAlign=pr(A,Nt,e.textAlign),this.textDecorationColor=pr(A,tr,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=pr(A,rr,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=pr(A,Xt,e.textShadow),this.textTransform=pr(A,Jt,e.textTransform),this.transform=pr(A,Yt,e.transform),this.transformOrigin=pr(A,qt,e.transformOrigin),this.visibility=pr(A,jt,e.visibility),this.webkitTextStrokeColor=pr(A,Fr,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=pr(A,hr,e.webkitTextStrokeWidth),this.wordBreak=pr(A,zt,e.wordBreak),this.zIndex=pr(A,$t,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return ge(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return Qr(this.display,4)||Qr(this.display,33554432)||Qr(this.display,268435456)||Qr(this.display,536870912)||Qr(this.display,67108864)||Qr(this.display,134217728)},A}(),fr=function(A,e){this.content=pr(A,cr,e.content),this.quotes=pr(A,ur,e.quotes)},Hr=function(A,e){this.counterIncrement=pr(A,ar,e.counterIncrement),this.counterReset=pr(A,wr,e.counterReset)},pr=function(A,e,t){var r=new RA,B=null!=t?t.toString():e.initialValue;r.write(B);var n=new NA(r.read());switch(e.type){case 2:var s=n.parseComponentValue();return e.parse(A,JA(s)?s.value:e.initialValue);case 0:return e.parse(A,n.parseComponentValue());case 1:return e.parse(A,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(e.format){case"angle":return ie(A,n.parseComponentValue());case"color":return we(A,n.parseComponentValue());case"image":return ke(A,n.parseComponentValue());case"length":var o=n.parseComponentValue();return zA(o)?o:ee;case"length-percentage":var i=n.parseComponentValue();return $A(i)?i:ee;case"time":return Ar.parse(A,n.parseComponentValue())}}},Er=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t},Ir=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Er(e,3),this.styles=new dr(A,window.getComputedStyle(e,null)),LB(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=o(this.context,e),Er(e,4)&&(this.flags|=16)},yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),mr=0;mr<64;mr++)Kr[yr.charCodeAt(mr)]=mr;for(var Lr=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},vr=function(){function A(A,e,t,r,B,n){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=B,this.data=n}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),xr=0;xr<64;xr++)Dr[br.charCodeAt(xr)]=xr;var Mr,Sr=8,Tr=9,Gr=11,Or=12,Vr=function(){for(var A=[],e=0;e>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},kr=function(A,e){var t,r,B,n=function(A){var e,t,r,B,n,s=.75*A.length,o=A.length,i=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var Q="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(Q)?Q:new Uint8Array(Q);for(e=0;e>4,c[i++]=(15&r)<<4|B>>2,c[i++]=(3&B)<<6|63&n;return Q}(A),s=Array.isArray(n)?function(A){for(var e=A.length,t=[],r=0;r=55296&&B<=56319&&t=t)return{done:!0,value:null};for(var A=Rr;rs.x||B.y>s.y;return s=B,0===e||o}));return A.body.removeChild(e),o}(document);return Object.defineProperty(Zr,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(Zr,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var e=A.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var B=new Image,n=e.toDataURL();B.src=n;var s=Yr(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),Wr(s).then((function(e){r.drawImage(e,0,0);var B=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var s=A.createElement("div");return s.style.backgroundImage="url("+n+")",s.style.height=t+"px",Jr(B)?Wr(Yr(t,t,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),Jr(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Zr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(Zr,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Zr,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Zr,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Zr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},_r=function(A,e){this.text=A,this.bounds=e},qr=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var B=e.parentNode;if(B){B.replaceChild(r,e);var n=o(A,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return s.EMPTY},jr=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(A,e),B.setEnd(A,e+t),B},zr=function(A){if(Zr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return function(A){for(var e,t=Xr(A),r=[];!(e=t.next()).done;)e.value&&r.push(e.value.slice());return r}(A)},$r=function(A,e){return 0!==e.letterSpacing?zr(A):function(A,e){if(Zr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return eB(A,e)}(A,e)},AB=[32,160,4961,65792,65793,4153,4241],eB=function(A,e){for(var t,r=function(A,e){var t=i(A),r=nA(t,e),B=r[0],n=r[1],s=r[2],o=t.length,Q=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var A=Y;c0)if(Zr.SUPPORT_RANGE_BOUNDS){var B=jr(r,o,e.length).getClientRects();if(B.length>1){var i=zr(e),Q=0;i.forEach((function(e){n.push(new _r(e,s.fromDOMRectList(A,jr(r,Q+o,e.length).getClientRects()))),Q+=e.length}))}else n.push(new _r(e,s.fromDOMRectList(A,B)))}else{var c=r.splitText(e.length);n.push(new _r(e,qr(A,r))),r=c}else Zr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));o+=e.length})),n}(A,this.text,t,e)},rB=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(BB,nB);case 2:return A.toUpperCase();default:return A}},BB=/(^|\s|:|-|\(|\))([a-z])/g,nB=function(A,e,t){return A.length>0?e+t.toUpperCase():A},sB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,r.context.cache.addImage(r.src),r}return e(t,A),t}(Ir),oB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return e(t,A),t}(Ir),iB=function(A){function t(e,t){var r=A.call(this,e,t)||this,B=new XMLSerializer,n=o(e,t);return t.setAttribute("width",n.width+"px"),t.setAttribute("height",n.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(t,A),t}(Ir),QB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return e(t,A),t}(Ir),cB=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return e(t,A),t}(Ir),aB=[{type:15,flags:0,unit:"px",number:3}],wB=[{type:16,flags:0,number:50}],gB="checkbox",uB="radio",lB="password",UB=707406591,CB=function(A){function t(e,t){var r,B,n,o=A.call(this,e,t)||this;switch(o.type=t.type.toLowerCase(),o.checked=t.checked,o.value=0===(n=(B=t).type===lB?new Array(B.value.length+1).join("•"):B.value).length?B.placeholder||"":n,o.type!==gB&&o.type!==uB||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=(r=o.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)t.textNodes.push(new tB(A,B,t.styles));else if(mB(B))if(PB(B)&&B.assignedNodes)B.assignedNodes().forEach((function(e){return HB(A,e,t,r)}));else{var s=pB(A,B);s.styles.isVisible()&&(IB(B,s,r)?s.flags|=4:yB(s.styles)&&(s.flags|=2),-1!==fB.indexOf(B.tagName)&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?HB(A,B.shadowRoot,s,r):RB(B)||MB(B)||NB(B)||HB(A,B,s,r))}},pB=function(A,e){return OB(e)?new sB(A,e):TB(e)?new oB(A,e):MB(e)?new iB(A,e):bB(e)?new QB(A,e):DB(e)?new cB(A,e):xB(e)?new CB(A,e):NB(e)?new FB(A,e):RB(e)?new hB(A,e):VB(e)?new dB(A,e):new Ir(A,e)},EB=function(A,e){var t=pB(A,e);return t.flags|=4,HB(A,e,t,t),t},IB=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||SB(A)&&t.styles.isTransparent()},yB=function(A){return A.isPositioned()||A.isFloating()},KB=function(A){return A.nodeType===Node.TEXT_NODE},mB=function(A){return A.nodeType===Node.ELEMENT_NODE},LB=function(A){return mB(A)&&void 0!==A.style&&!vB(A)},vB=function(A){return"object"==typeof A.className},bB=function(A){return"LI"===A.tagName},DB=function(A){return"OL"===A.tagName},xB=function(A){return"INPUT"===A.tagName},MB=function(A){return"svg"===A.tagName},SB=function(A){return"BODY"===A.tagName},TB=function(A){return"CANVAS"===A.tagName},GB=function(A){return"VIDEO"===A.tagName},OB=function(A){return"IMG"===A.tagName},VB=function(A){return"IFRAME"===A.tagName},kB=function(A){return"STYLE"===A.tagName},RB=function(A){return"TEXTAREA"===A.tagName},NB=function(A){return"SELECT"===A.tagName},PB=function(A){return"SLOT"===A.tagName},XB=function(A){return A.tagName.indexOf("-")>0},JB=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){return this.counters[A]||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,B=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(B=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var n=[];return B&&r.forEach((function(A){var t=e.counters[A.counter];n.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),n},A}(),YB={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"]},WB={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ZB={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_B={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},qB=function(A,e,t,r,B,n){return At?nn(A,B,n.length>0):r.integers.reduce((function(e,t,B){for(;A>=t;)A-=t,e+=r.values[B];return e}),"")+n},jB=function(A,e,t,r){var B="";do{t||A--,B=r(A)+B,A/=e}while(A*e>=e);return B},zB=function(A,e,t,r,B){var n=t-e+1;return(A<0?"-":"")+(jB(Math.abs(A),n,r,(function(A){return Q(Math.floor(A%n)+e)}))+B)},$B=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return jB(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},An=function(A,e,t,r,B,n){if(A<-9999||A>9999)return nn(A,4,B.length>0);var s=Math.abs(A),o=B;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var Q=s%10;0===Q&&Qr(n,1)&&""!==o?o=e[Q]+o:Q>1||1===Q&&0===i||1===Q&&1===i&&Qr(n,2)||1===Q&&1===i&&Qr(n,4)&&A>100||1===Q&&i>1&&Qr(n,8)?o=e[Q]+(i>0?t[i-1]:"")+o:1===Q&&i>0&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},en="十百千萬",tn="拾佰仟萬",rn="マイナス",Bn="마이너스",nn=function(A,e,t){var r=t?". ":"",B=t?"、":"",n=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=zB(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return $B(A,"〇一二三四五六七八九",B);case 6:return qB(A,1,3999,YB,3,r).toLowerCase();case 7:return qB(A,1,3999,YB,3,r);case 8:return zB(A,945,969,!1,r);case 9:return zB(A,97,122,!1,r);case 10:return zB(A,65,90,!1,r);case 11:return zB(A,1632,1641,!0,r);case 12:case 49:return qB(A,1,9999,WB,3,r);case 35:return qB(A,1,9999,WB,3,r).toLowerCase();case 13:return zB(A,2534,2543,!0,r);case 14:case 30:return zB(A,6112,6121,!0,r);case 15:return $B(A,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return $B(A,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return An(A,"零一二三四五六七八九",en,"負",B,14);case 47:return An(A,"零壹貳參肆伍陸柒捌玖",tn,"負",B,15);case 42:return An(A,"零一二三四五六七八九",en,"负",B,14);case 41:return An(A,"零壹贰叁肆伍陆柒捌玖",tn,"负",B,15);case 26:return An(A,"〇一二三四五六七八九","十百千万",rn,B,0);case 25:return An(A,"零壱弐参四伍六七八九","拾百千万",rn,B,7);case 31:return An(A,"영일이삼사오육칠팔구","십백천만",Bn,n,7);case 33:return An(A,"零一二三四五六七八九","十百千萬",Bn,n,0);case 32:return An(A,"零壹貳參四五六七八九","拾百千",Bn,n,7);case 18:return zB(A,2406,2415,!0,r);case 20:return qB(A,1,19999,_B,3,r);case 21:return zB(A,2790,2799,!0,r);case 22:return zB(A,2662,2671,!0,r);case 22:return qB(A,1,10999,ZB,3,r);case 23:return $B(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return $B(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return zB(A,3302,3311,!0,r);case 28:return $B(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return $B(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return zB(A,3792,3801,!0,r);case 37:return zB(A,6160,6169,!0,r);case 38:return zB(A,4160,4169,!0,r);case 39:return zB(A,2918,2927,!0,r);case 40:return zB(A,1776,1785,!0,r);case 43:return zB(A,3046,3055,!0,r);case 44:return zB(A,3174,3183,!0,r);case 45:return zB(A,3664,3673,!0,r);case 46:return zB(A,3872,3881,!0,r);default:return zB(A,48,57,!0,r)}},sn="data-html2canvas-ignore",on=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new JB,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(A,e){var t=this,n=cn(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,o=A.defaultView.pageYOffset,i=n.contentWindow,Q=i.document,c=gn(n).then((function(){return r(t,void 0,void 0,(function(){var A,t;return B(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(Fn),i&&(i.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===e.top&&i.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-e.left,i.scrollY-e.top,0,0))),A=this.options.onclone,void 0===(t=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Q.fonts&&Q.fonts.ready?[4,Q.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wn(Q)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof A?[2,Promise.resolve().then((function(){return A(Q,t)})).then((function(){return n}))]:[2,n]}}))}))}));return Q.open(),Q.write(Un(document.doctype)+""),Cn(this.referenceElement.ownerDocument,s,o),Q.replaceChild(Q.adoptNode(this.documentElement),Q.documentElement),Q.close(),c},A.prototype.createElementClone=function(A){if(Er(A,2),TB(A))return this.createCanvasClone(A);if(GB(A))return this.createVideoClone(A);if(kB(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return OB(e)&&(OB(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),XB(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return ln(A.style,e),e},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var B=A.getContext("2d"),n=r.getContext("2d");if(n)if(!this.options.allowTaint&&B)n.putImageData(B.getImageData(0,0,A.width,A.height),0,0);else{var s=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(s){var o=s.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}n.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){mB(e)&&("SCRIPT"===e.tagName||e.hasAttribute(sn)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&mB(e)&&kB(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,B=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;B;B=B.nextSibling)if(mB(B)&&PB(B)&&"function"==typeof B.assignedNodes){var n=B.assignedNodes();n.length&&n.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,B,t)},A.prototype.cloneNode=function(A,e){if(KB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&mB(A)&&(LB(A)||vB(A))){var r=this.createElementClone(A);r.style.transitionProperty="none";var B=t.getComputedStyle(A),n=t.getComputedStyle(A,":before"),s=t.getComputedStyle(A,":after");this.referenceElement===A&&LB(r)&&(this.clonedReferenceElement=r),SB(r)&&Hn(r);var o=this.counters.parse(new Hr(this.context,B)),i=this.resolvePseudoContent(A,r,n,Mr.BEFORE);XB(A)&&(e=!0),GB(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var Q=this.resolvePseudoContent(A,r,s,Mr.AFTER);return Q&&r.appendChild(Q),this.counters.pop(o),(B&&(this.options.copyStyles||vB(A))&&!VB(A)||e)&&ln(B,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(RB(A)||NB(A))&&(RB(r)||NB(r))&&(r.value=A.value),r}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var B=this;if(t){var n=t.content,s=e.ownerDocument;if(s&&n&&"none"!==n&&"-moz-alt-content"!==n&&"none"!==t.display){this.counters.parse(new Hr(this.context,t));var o=new fr(this.context,t),i=s.createElement("html2canvaspseudoelement");ln(t,i),o.content.forEach((function(e){if(0===e.type)i.appendChild(s.createTextNode(e.value));else if(22===e.type){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(JA);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var n=e.values.filter(_A),Q=n[0],c=n[1];if(Q&&JA(Q)){var a=B.counters.getCounterValue(Q.value),w=c&&JA(c)?Lt.parse(B.context,c.value):3;i.appendChild(s.createTextNode(nn(a,w,!1)))}}else if("counters"===e.name){var g=e.values.filter(_A),u=(Q=g[0],g[1]);if(c=g[2],Q&&JA(Q)){var l=B.counters.getCounterValues(Q.value),U=c&&JA(c)?Lt.parse(B.context,c.value):3,C=u&&0===u.type?u.value:"",F=l.map((function(A){return nn(A,U,!1)})).join(C);i.appendChild(s.createTextNode(F))}}}else if(20===e.type)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(lr(o.quotes,B.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(lr(o.quotes,--B.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}})),i.className=hn+" "+dn;var Q=r===Mr.BEFORE?" "+hn:" "+dn;return vB(e)?e.className.baseValue+=Q:e.className+=Q,i}}},A.destroy=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)},A}();!function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(Mr||(Mr={}));var Qn,cn=function(A,e){var t=A.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(sn,"true"),A.body.appendChild(t),t},an=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},wn=function(A){return Promise.all([].slice.call(A.images,0).map(an))},gn=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){B.body.childNodes.length>0&&"complete"===B.readyState&&(clearInterval(t),e(A))}),50)}}))},un=["all","d","content"],ln=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===un.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},Un=function(A){var e="";return A&&(e+=""),e},Cn=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Fn=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},hn="___html2canvas___pseudoelement_before",dn="___html2canvas___pseudoelement_after",fn='{\n content: "" !important;\n display: none !important;\n}',Hn=function(A){pn(A,"."+hn+":before"+fn+"\n ."+dn+":after"+fn)},pn=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},En=function(){function A(){}return A.getOrigin=function(e){var t=A._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},A.isSameOrigin=function(e){return A.getOrigin(e)===A._origin},A.setContext=function(e){A._link=e.document.createElement("a"),A._origin=A.getOrigin(e.location.href)},A._origin="about:blank",A}(),In=function(){function A(A,e){this.context=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Dn(A)||Ln(A)?((this._cache[A]=this.loadImage(A)).catch((function(){})),e):e},A.prototype.match=function(A){return this._cache[A]},A.prototype.loadImage=function(A){return r(this,void 0,void 0,(function(){var e,t,r,n,s=this;return B(this,(function(B){switch(B.label){case 0:return e=En.isSameOrigin(A),t=!vn(A)&&!0===this._options.useCORS&&Zr.SUPPORT_CORS_IMAGES&&!e,r=!vn(A)&&!e&&!Dn(A)&&"string"==typeof this._options.proxy&&Zr.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||vn(A)||Dn(A)||r||t?(n=A,r?[4,this.proxy(n)]:[3,2]):[2];case 1:n=B.sent(),B.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise((function(A,e){var r=new Image;r.onload=function(){return A(r)},r.onerror=e,(bn(n)||t)&&(r.crossOrigin="anonymous"),r.src=n,!0===r.complete&&setTimeout((function(){return A(r)}),500),s._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,B.sent()]}}))}))},A.prototype.has=function(A){return void 0!==this._cache[A]},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(B,n){var s=Zr.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===s)B(o.response);else{var A=new FileReader;A.addEventListener("load",(function(){return B(A.result)}),!1),A.addEventListener("error",(function(A){return n(A)}),!1),A.readAsDataURL(o.response)}else n("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=n;var i=t.indexOf("?")>-1?"&":"?";if(o.open("GET",""+t+i+"url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var Q=e._options.imageTimeout;o.timeout=Q,o.ontimeout=function(){return n("Timed out ("+Q+"ms) proxying "+r)}}o.send()}))},A}(),yn=/^data:image\/svg\+xml/i,Kn=/^data:image\/.*;base64,/i,mn=/^data:image\/.*/i,Ln=function(A){return Zr.SUPPORT_SVG_DRAWING||!xn(A)},vn=function(A){return mn.test(A)},bn=function(A){return Kn.test(A)},Dn=function(A){return"blob"===A.substr(0,4)},xn=function(A){return"svg"===A.substr(-3).toLowerCase()||yn.test(A)},Mn=function(){function A(A,e){this.type=0,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),Sn=function(A,e,t){return new Mn(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Tn=function(){function A(A,e,t,r){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=Sn(this.start,this.startControl,e),B=Sn(this.startControl,this.endControl,e),n=Sn(this.endControl,this.end,e),s=Sn(r,B,e),o=Sn(B,n,e),i=Sn(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,n,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),Gn=function(A){return 1===A.type},On=function(A){var e=A.styles,t=A.bounds,r=Be(e.borderTopLeftRadius,t.width,t.height),B=r[0],n=r[1],s=Be(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],Q=Be(e.borderBottomRightRadius,t.width,t.height),c=Q[0],a=Q[1],w=Be(e.borderBottomLeftRadius,t.width,t.height),g=w[0],u=w[1],l=[];l.push((B+o)/t.width),l.push((g+c)/t.width),l.push((n+u)/t.height),l.push((i+a)/t.height);var U=Math.max.apply(Math,l);U>1&&(B/=U,n/=U,o/=U,i/=U,c/=U,a/=U,g/=U,u/=U);var C=t.width-o,F=t.height-a,h=t.width-c,d=t.height-u,f=e.borderTopWidth,H=e.borderRightWidth,p=e.borderBottomWidth,E=e.borderLeftWidth,I=ne(e.paddingTop,A.bounds.width),y=ne(e.paddingRight,A.bounds.width),K=ne(e.paddingBottom,A.bounds.width),m=ne(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||n>0?Vn(t.left+E/3,t.top+f/3,B-E/3,n-f/3,Qn.TOP_LEFT):new Mn(t.left+E/3,t.top+f/3),this.topRightBorderDoubleOuterBox=B>0||n>0?Vn(t.left+C,t.top+f/3,o-H/3,i-f/3,Qn.TOP_RIGHT):new Mn(t.left+t.width-H/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=c>0||a>0?Vn(t.left+h,t.top+F,c-H/3,a-p/3,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-H/3,t.top+t.height-p/3),this.bottomLeftBorderDoubleOuterBox=g>0||u>0?Vn(t.left+E/3,t.top+d,g-E/3,u-p/3,Qn.BOTTOM_LEFT):new Mn(t.left+E/3,t.top+t.height-p/3),this.topLeftBorderDoubleInnerBox=B>0||n>0?Vn(t.left+2*E/3,t.top+2*f/3,B-2*E/3,n-2*f/3,Qn.TOP_LEFT):new Mn(t.left+2*E/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=B>0||n>0?Vn(t.left+C,t.top+2*f/3,o-2*H/3,i-2*f/3,Qn.TOP_RIGHT):new Mn(t.left+t.width-2*H/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=c>0||a>0?Vn(t.left+h,t.top+F,c-2*H/3,a-2*p/3,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-2*H/3,t.top+t.height-2*p/3),this.bottomLeftBorderDoubleInnerBox=g>0||u>0?Vn(t.left+2*E/3,t.top+d,g-2*E/3,u-2*p/3,Qn.BOTTOM_LEFT):new Mn(t.left+2*E/3,t.top+t.height-2*p/3),this.topLeftBorderStroke=B>0||n>0?Vn(t.left+E/2,t.top+f/2,B-E/2,n-f/2,Qn.TOP_LEFT):new Mn(t.left+E/2,t.top+f/2),this.topRightBorderStroke=B>0||n>0?Vn(t.left+C,t.top+f/2,o-H/2,i-f/2,Qn.TOP_RIGHT):new Mn(t.left+t.width-H/2,t.top+f/2),this.bottomRightBorderStroke=c>0||a>0?Vn(t.left+h,t.top+F,c-H/2,a-p/2,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-H/2,t.top+t.height-p/2),this.bottomLeftBorderStroke=g>0||u>0?Vn(t.left+E/2,t.top+d,g-E/2,u-p/2,Qn.BOTTOM_LEFT):new Mn(t.left+E/2,t.top+t.height-p/2),this.topLeftBorderBox=B>0||n>0?Vn(t.left,t.top,B,n,Qn.TOP_LEFT):new Mn(t.left,t.top),this.topRightBorderBox=o>0||i>0?Vn(t.left+C,t.top,o,i,Qn.TOP_RIGHT):new Mn(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||a>0?Vn(t.left+h,t.top+F,c,a,Qn.BOTTOM_RIGHT):new Mn(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||u>0?Vn(t.left,t.top+d,g,u,Qn.BOTTOM_LEFT):new Mn(t.left,t.top+t.height),this.topLeftPaddingBox=B>0||n>0?Vn(t.left+E,t.top+f,Math.max(0,B-E),Math.max(0,n-f),Qn.TOP_LEFT):new Mn(t.left+E,t.top+f),this.topRightPaddingBox=o>0||i>0?Vn(t.left+Math.min(C,t.width-H),t.top+f,C>t.width+H?0:Math.max(0,o-H),Math.max(0,i-f),Qn.TOP_RIGHT):new Mn(t.left+t.width-H,t.top+f),this.bottomRightPaddingBox=c>0||a>0?Vn(t.left+Math.min(h,t.width-E),t.top+Math.min(F,t.height-p),Math.max(0,c-H),Math.max(0,a-p),Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-H,t.top+t.height-p),this.bottomLeftPaddingBox=g>0||u>0?Vn(t.left+E,t.top+Math.min(d,t.height-p),Math.max(0,g-E),Math.max(0,u-p),Qn.BOTTOM_LEFT):new Mn(t.left+E,t.top+t.height-p),this.topLeftContentBox=B>0||n>0?Vn(t.left+E+m,t.top+f+I,Math.max(0,B-(E+m)),Math.max(0,n-(f+I)),Qn.TOP_LEFT):new Mn(t.left+E+m,t.top+f+I),this.topRightContentBox=o>0||i>0?Vn(t.left+Math.min(C,t.width+E+m),t.top+f+I,C>t.width+E+m?0:o-E+m,i-(f+I),Qn.TOP_RIGHT):new Mn(t.left+t.width-(H+y),t.top+f+I),this.bottomRightContentBox=c>0||a>0?Vn(t.left+Math.min(h,t.width-(E+m)),t.top+Math.min(F,t.height+f+I),Math.max(0,c-(H+y)),a-(p+K),Qn.BOTTOM_RIGHT):new Mn(t.left+t.width-(H+y),t.top+t.height-(p+K)),this.bottomLeftContentBox=g>0||u>0?Vn(t.left+E+m,t.top+d,Math.max(0,g-(E+m)),u-(p+K),Qn.BOTTOM_LEFT):new Mn(t.left+E+m,t.top+t.height-(p+K))};!function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Qn||(Qn={}));var Vn=function(A,e,t,r,B){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=r*n,i=A+t,Q=e+r;switch(B){case Qn.TOP_LEFT:return new Tn(new Mn(A,Q),new Mn(A,Q-o),new Mn(i-s,e),new Mn(i,e));case Qn.TOP_RIGHT:return new Tn(new Mn(A,e),new Mn(A+s,e),new Mn(i,Q-o),new Mn(i,Q));case Qn.BOTTOM_RIGHT:return new Tn(new Mn(i,e),new Mn(i,e+o),new Mn(A+s,Q),new Mn(A,Q));case Qn.BOTTOM_LEFT:default:return new Tn(new Mn(i,Q),new Mn(i-s,Q),new Mn(A,e+o),new Mn(A,e))}},kn=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Rn=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Nn=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6},Pn=function(A,e){this.path=A,this.target=e,this.type=1},Xn=function(A){this.opacity=A,this.type=2,this.target=6},Jn=function(A){return 1===A.type},Yn=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Wn=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Zn=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new On(this.container),this.container.styles.opacity<1&&this.effects.push(new Xn(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new Nn(t,r,B))}if(0!==this.container.styles.overflowX){var n=kn(this.curves),s=Rn(this.curves);Yn(n,s)?this.effects.push(new Pn(n,6)):(this.effects.push(new Pn(n,2)),this.effects.push(new Pn(s,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);t;){var B=t.effects.filter((function(A){return!Jn(A)}));if(e||0!==t.container.styles.position||!t.parent){if(r.unshift.apply(r,B),e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX){var n=kn(t.curves),s=Rn(t.curves);Yn(n,s)||r.unshift(new Pn(s,6))}}else r.unshift.apply(r,B);t=t.parent}return r.filter((function(e){return Qr(e.target,A)}))},A}(),_n=function(A,e,t,r){A.container.elements.forEach((function(B){var n=Qr(B.flags,4),s=Qr(B.flags,2),o=new Zn(B,A);Qr(B.styles.display,2048)&&r.push(o);var i=Qr(B.flags,8)?[]:r;if(n||s){var Q=n||B.styles.isPositioned()?t:e,c=new Wn(o);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var a=B.styles.zIndex.order;if(a<0){var w=0;Q.negativeZIndex.some((function(A,e){return a>A.element.container.styles.zIndex.order?(w=e,!1):w>0})),Q.negativeZIndex.splice(w,0,c)}else if(a>0){var g=0;Q.positiveZIndex.some((function(A,e){return a>=A.element.container.styles.zIndex.order?(g=e+1,!1):g>0})),Q.positiveZIndex.splice(g,0,c)}else Q.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else B.styles.isFloating()?Q.nonPositionedFloats.push(c):Q.nonPositionedInlineLevel.push(c);_n(o,c,n?c:t,i)}else B.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),_n(o,e,t,i);Qr(B.flags,8)&&qn(B,i)}))},qn=function(A,e){for(var t=A instanceof cB?A.start:1,r=A instanceof cB&&A.reversed,B=0;B0&&A.intrinsicHeight>0){var r=es(A),B=Rn(e);this.path(B),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(t,0,0,A.intrinsicWidth,A.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return r(this,void 0,void 0,(function(){var e,r,n,o,i,Q,c,a,w,g,u,l,U,C,F,h,d,f;return B(this,(function(B){switch(B.label){case 0:this.applyEffects(A.getEffects(4)),e=A.container,r=A.curves,n=e.styles,o=0,i=e.textNodes,B.label=1;case 1:return o0&&E>0&&(F=r.ctx.createPattern(l,"repeat"),r.renderRepeat(d,F,y,K))):function(A){return 2===A.type}(t)&&(h=ts(A,e,[null,null,null]),d=h[0],f=h[1],H=h[2],p=h[3],E=h[4],I=0===t.position.length?[te]:t.position,y=ne(I[0],p),K=ne(I[I.length-1],E),m=function(A,e,t,r,B){var n=0,s=0;switch(A.size){case 0:0===A.shape?n=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(n=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(0===A.shape)n=s=Math.min(me(e,t),me(e,t-B),me(e-r,t),me(e-r,t-B));else if(1===A.shape){var o=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(e),Math.abs(e-r)),i=Le(r,B,e,t,!0),Q=i[0],c=i[1];s=o*(n=me(Q-e,(c-t)/o))}break;case 1:0===A.shape?n=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-B)):1===A.shape&&(n=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(0===A.shape)n=s=Math.max(me(e,t),me(e,t-B),me(e-r,t),me(e-r,t-B));else if(1===A.shape){o=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(e),Math.abs(e-r));var a=Le(r,B,e,t,!1);Q=a[0],c=a[1],s=o*(n=me(Q-e,(c-t)/o))}}return Array.isArray(A.size)&&(n=ne(A.size[0],r),s=2===A.size.length?ne(A.size[1],B):n),[n,s]}(t,y,K,p,E),L=m[0],v=m[1],L>0&&v>0&&(b=r.ctx.createRadialGradient(f+y,H+K,0,f+y,H+K,L),ye(t.stops,2*L).forEach((function(A){return b.addColorStop(A.stop,ue(A.color))})),r.path(d),r.ctx.fillStyle=b,L!==v?(D=A.bounds.left+.5*A.bounds.width,x=A.bounds.top+.5*A.bounds.height,S=1/(M=v/L),r.ctx.save(),r.ctx.translate(D,x),r.ctx.transform(1,0,0,M,0,0),r.ctx.translate(-D,-x),r.ctx.fillRect(f,S*(H-x)+x,p,E*S),r.ctx.restore()):r.ctx.fill())),B.label=6;case 6:return e--,[2]}}))},r=this,n=0,s=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return n0?2!==Q.style?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,s,A.curves,2)]:[3,11]:[3,13];case 4:return B.sent(),[3,11];case 5:return 3!==Q.style?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,s,A.curves,3)];case 6:return B.sent(),[3,11];case 7:return 4!==Q.style?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,s,A.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,s,A.curves)];case 10:B.sent(),B.label=11;case 11:s++,B.label=12;case 12:return o++,[3,3];case 13:return[2]}}))}))},t.prototype.renderDashedDottedBorder=function(A,e,t,n,s){return r(this,void 0,void 0,(function(){var r,o,i,Q,c,a,w,g,u,l,U,C,F,h,d,f;return B(this,(function(B){return this.ctx.save(),r=function(A,e){switch(e){case 0:return zn(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return zn(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return zn(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return zn(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}}(n,t),o=jn(n,t),2===s&&(this.path(o),this.ctx.clip()),Gn(o[0])?(i=o[0].start.x,Q=o[0].start.y):(i=o[0].x,Q=o[0].y),Gn(o[1])?(c=o[1].end.x,a=o[1].end.y):(c=o[1].x,a=o[1].y),w=0===t||2===t?Math.abs(i-c):Math.abs(Q-a),this.ctx.beginPath(),3===s?this.formatPath(r):this.formatPath(o.slice(0,2)),g=e<3?3*e:2*e,u=e<3?2*e:e,3===s&&(g=e,u=e),l=!0,w<=2*g?l=!1:w<=2*g+u?(g*=U=w/(2*g+u),u*=U):(C=Math.floor((w+u)/(g+u)),F=(w-C*g)/(C-1),u=(h=(w-(C+1)*g)/C)<=0||Math.abs(u-F)
+ * Copyright (c) 2022 Niklas von Hertzen
+ * Released under MIT License
+ */
+
+/*! *****************************************************************************
+ Copyright (c) Microsoft Corporation.
+
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ PERFORMANCE OF THIS SOFTWARE.
+ ***************************************************************************** */
diff --git a/inst/www/407.gosling.js b/inst/www/407.gosling.js
new file mode 100644
index 00000000..ef625651
--- /dev/null
+++ b/inst/www/407.gosling.js
@@ -0,0 +1,2 @@
+/*! For license information please see 407.gosling.js.LICENSE.txt */
+"use strict";(self.webpackChunkjs=self.webpackChunkjs||[]).push([[407],{5407:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}r.r(e),r.d(e,{AcroForm:()=>de,AcroFormAppearance:()=>ce,AcroFormButton:()=>re,AcroFormCheckBox:()=>oe,AcroFormChoiceField:()=>$t,AcroFormComboBox:()=>te,AcroFormEditBox:()=>ee,AcroFormListBox:()=>Qt,AcroFormPasswordField:()=>ue,AcroFormPushButton:()=>ne,AcroFormRadioButton:()=>ie,AcroFormTextField:()=>se,GState:()=>wt,ShadingPattern:()=>Lt,TilingPattern:()=>At,default:()=>hr,jsPDF:()=>xt});var i=Uint8Array,a=Uint16Array,o=Uint32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),u=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(t,e){for(var r=new a(31),n=0;n<31;++n)r[n]=e+=1<>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var w=function(t,e,r){for(var n=t.length,i=0,o=new a(e);i>>c]=h}else for(s=new a(n),i=0;i>>15-t[i];return s},N=new i(288);for(b=0;b<144;++b)N[b]=8;for(b=144;b<256;++b)N[b]=9;for(b=256;b<280;++b)N[b]=7;for(b=280;b<288;++b)N[b]=8;var L=new i(32);for(b=0;b<32;++b)L[b]=5;var A=w(N,9,0),x=w(N,9,1),S=w(L,5,0),_=w(L,5,1),P=function(t){for(var e=t[0],r=1;re&&(e=t[r]);return e},k=function(t,e,r){var n=e/8>>0;return(t[n]|t[n+1]<<8)>>>(7&e)&r},F=function(t,e){var r=e/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&e)},I=function(t){return(t/8>>0)+(7&t&&1)},C=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var n=new(t instanceof a?a:t instanceof o?o:i)(r-e);return n.set(t.subarray(e,r)),n},j=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8},O=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},B=function(t,e){for(var r=[],n=0;np&&(p=s[n].s);var g=new a(p+1),m=M(r[f-1],g,0);if(m>e){n=0;var v=0,b=m-e,y=1<e))break;v+=y-(1<>>=b;v>0;){var N=s[n].s;g[N]=0&&v;--n){var L=s[n].s;g[L]==e&&(--g[L],++v)}m=e}return[new i(g),m]},M=function(t,e,r){return-1==t.s?Math.max(M(t.l,e,r+1),M(t.r,e,r+1)):e[t.s]=r},E=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new a(++e),n=0,i=t[0],o=1,s=function(t){r[n++]=t},u=1;u<=e;++u)if(t[u]==i&&u!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[u]}return[r.subarray(0,n),e]},q=function(t,e){for(var r=0,n=0;n>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!U[c[H-1]];--H);var W,V,G,Y,J=d+5<<3,X=q(i,N)+q(o,L)+h,K=q(i,m)+q(o,y)+h+14+3*H+q(M,U)+(2*M[16]+3*M[17]+7*M[18]);if(J<=X&&J<=K)return D(e,p,t.subarray(f,f+d));if(j(e,p,1+(K15&&(j(e,p,tt[R]>>>5&127),p+=tt[R]>>>12)}}}else W=A,V=N,G=S,Y=L;for(R=0;R255){et=n[R]>>>18&31,O(e,p,W[et+257]),p+=V[et+257],et>7&&(j(e,p,n[R]>>>23&31),p+=s[et]);var rt=31&n[R];O(e,p,G[rt]),p+=Y[rt],rt>3&&(O(e,p,n[R]>>>5&8191),p+=u[rt])}else O(e,p,W[n[R]]),p+=V[n[R]];return O(e,p,W[256]),p+V[256]},T=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new i(0),z=function(t,e,r,n,c){return function(t,e,r,n,c,h){var l=t.length,f=new i(n+l+5*(1+Math.floor(l/7e3))+c),p=f.subarray(n,f.length-c),g=0;if(!e||l<8)for(var v=0;v<=l;v+=65535){var b=v+65535;b>>13,N=8191&y,L=(1<7e3||M>24576)&&V>423){g=R(t,p,0,k,F,j,B,M,q,v-q,g),M=O=B=0,q=v;for(var G=0;G<286;++G)F[G]=0;for(G=0;G<30;++G)j[G]=0}var Y=2,J=0,X=N,K=H-W&32767;if(V>2&&z==P(v-K))for(var Z=Math.min(w,V)-1,$=Math.min(32767,v),Q=Math.min(258,V);K<=$&&--X&&H!=W;){if(t[v+Y]==t[v+Y-K]){for(var tt=0;ttY){if(Y=tt,J=K,tt>Z)break;var et=Math.min(K,tt-2),rt=0;for(G=0;Grt&&(rt=it,W=nt)}}}K+=(H=W)-(W=A[H])+32768&32767}if(J){k[M++]=268435456|d[Y]<<18|m[J];var at=31&d[Y],ot=31&m[J];B+=s[at]+u[ot],++F[257+at],++j[ot],E=v+Y,++O}else k[M++]=t[v],++F[t[v]]}}g=R(t,p,h,k,F,j,B,M,q,v-q,g),h||(g=D(p,g,U))}return C(f,0,n+I(g)+c)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,n,!c)};function H(t,e){void 0===e&&(e={});var r=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,a=r.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();r.p(t);var n=z(t,e,2,4);return function(t,e){var r=e.level,n=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=n<<6|(n?32-2*n:1)}(n,e),function(t,e,r){for(;r;++e)t[e]=r,r>>>=8}(n,n.length-4,r.d()),n}function W(t,e){return function(t,e,r){var n=t.length,a=!e||r,o=!r||r.i;r||(r={}),e||(e=new i(3*n));var h=function(t){var r=e.length;if(t>r){var n=new i(Math.max(2*r,t));n.set(e),e=n}},l=r.f||0,d=r.p||0,p=r.b||0,m=r.l,v=r.d,b=r.m,y=r.n,N=8*n;do{if(!m){r.f=l=k(t,d,1);var L=k(t,d+1,3);if(d+=3,!L){var A=t[(U=I(d)+4)-4]|t[U-3]<<8,S=U+A;if(S>n){if(o)throw"unexpected EOF";break}a&&h(p+A),e.set(t.subarray(U,S),p),r.b=p+=A,r.p=d=8*S;continue}if(1==L)m=x,v=_,b=9,y=5;else{if(2!=L)throw"invalid block type";var j=k(t,d,31)+257,O=k(t,d+10,15)+4,B=j+k(t,d+5,31)+1;d+=14;for(var M=new i(B),E=new i(19),q=0;qN)break;var T=w(E,D,1);for(q=0;q>>4)<16)M[q++]=U;else{var H=0,W=0;for(16==U?(W=3+k(t,d,3),d+=2,H=M[q-1]):17==U?(W=3+k(t,d,7),d+=3):18==U&&(W=11+k(t,d,127),d+=7);W--;)M[q++]=H}}var V=M.subarray(0,j),G=M.subarray(j);b=P(V),y=P(G),m=w(V,b,1),v=w(G,y,1)}if(d>N)throw"unexpected EOF"}a&&h(p+131072);for(var Y=(1<>>4;if((d+=15&H)>N)throw"unexpected EOF";if(!H)throw"invalid length/literal";if(K<256)e[p++]=K;else{if(256==K){m=null;break}var Z=K-254;if(K>264){var $=s[q=K-257];Z=k(t,d,(1<<$)-1)+f[q],d+=$}var Q=v[F(t,d)&J],tt=Q>>>4;if(!Q)throw"invalid distance";if(d+=15&Q,G=g[tt],tt>3&&($=u[tt],G+=F(t,d)&(1<<$)-1,d+=$),d>N)throw"unexpected EOF";a&&h(p+131072);for(var et=p+Z;p>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),e)}var V=function(){return"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:this}();function G(){V.console&&"function"==typeof V.console.log&&V.console.log.apply(V.console,arguments)}var Y={log:G,warn:function(t){V.console&&("function"==typeof V.console.warn?V.console.warn.apply(V.console,arguments):G.call(null,arguments))},error:function(t){V.console&&("function"==typeof V.console.error?V.console.error.apply(V.console,arguments):G(t))}};function J(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){Q(n.response,e,r)},n.onerror=function(){Y.error("could not download file")},n.send()}function X(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function K(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var Z,$,Q=V.saveAs||("object"!==("undefined"==typeof window?"undefined":n(window))||window!==V?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=V.URL||V.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?X(i.href)?J(t,e,r):K(i,i.target="_blank"):K(i)):(i.href=n.createObjectURL(t),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){K(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(X(t))J(t,e,r);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){K(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==n(e)&&(Y.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,r),e)}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return J(t,e,r);var a="application/octet-stream"===t.type,o=/constructor/i.test(V.HTMLElement)||V.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o)&&"object"===("undefined"==typeof FileReader?"undefined":n(FileReader))){var u=new FileReader;u.onloadend=function(){var t=u.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var c=V.URL||V.webkitURL,h=c.createObjectURL(t);i?i.location=h:location.href=h,i=null,setTimeout((function(){c.revokeObjectURL(h)}),4e4)}});function tt(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}function et(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=nt(r,n,i,a,e[0],7,-680876936),a=nt(a,r,n,i,e[1],12,-389564586),i=nt(i,a,r,n,e[2],17,606105819),n=nt(n,i,a,r,e[3],22,-1044525330),r=nt(r,n,i,a,e[4],7,-176418897),a=nt(a,r,n,i,e[5],12,1200080426),i=nt(i,a,r,n,e[6],17,-1473231341),n=nt(n,i,a,r,e[7],22,-45705983),r=nt(r,n,i,a,e[8],7,1770035416),a=nt(a,r,n,i,e[9],12,-1958414417),i=nt(i,a,r,n,e[10],17,-42063),n=nt(n,i,a,r,e[11],22,-1990404162),r=nt(r,n,i,a,e[12],7,1804603682),a=nt(a,r,n,i,e[13],12,-40341101),i=nt(i,a,r,n,e[14],17,-1502002290),r=it(r,n=nt(n,i,a,r,e[15],22,1236535329),i,a,e[1],5,-165796510),a=it(a,r,n,i,e[6],9,-1069501632),i=it(i,a,r,n,e[11],14,643717713),n=it(n,i,a,r,e[0],20,-373897302),r=it(r,n,i,a,e[5],5,-701558691),a=it(a,r,n,i,e[10],9,38016083),i=it(i,a,r,n,e[15],14,-660478335),n=it(n,i,a,r,e[4],20,-405537848),r=it(r,n,i,a,e[9],5,568446438),a=it(a,r,n,i,e[14],9,-1019803690),i=it(i,a,r,n,e[3],14,-187363961),n=it(n,i,a,r,e[8],20,1163531501),r=it(r,n,i,a,e[13],5,-1444681467),a=it(a,r,n,i,e[2],9,-51403784),i=it(i,a,r,n,e[7],14,1735328473),r=at(r,n=it(n,i,a,r,e[12],20,-1926607734),i,a,e[5],4,-378558),a=at(a,r,n,i,e[8],11,-2022574463),i=at(i,a,r,n,e[11],16,1839030562),n=at(n,i,a,r,e[14],23,-35309556),r=at(r,n,i,a,e[1],4,-1530992060),a=at(a,r,n,i,e[4],11,1272893353),i=at(i,a,r,n,e[7],16,-155497632),n=at(n,i,a,r,e[10],23,-1094730640),r=at(r,n,i,a,e[13],4,681279174),a=at(a,r,n,i,e[0],11,-358537222),i=at(i,a,r,n,e[3],16,-722521979),n=at(n,i,a,r,e[6],23,76029189),r=at(r,n,i,a,e[9],4,-640364487),a=at(a,r,n,i,e[12],11,-421815835),i=at(i,a,r,n,e[15],16,530742520),r=ot(r,n=at(n,i,a,r,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ot(a,r,n,i,e[7],10,1126891415),i=ot(i,a,r,n,e[14],15,-1416354905),n=ot(n,i,a,r,e[5],21,-57434055),r=ot(r,n,i,a,e[12],6,1700485571),a=ot(a,r,n,i,e[3],10,-1894986606),i=ot(i,a,r,n,e[10],15,-1051523),n=ot(n,i,a,r,e[1],21,-2054922799),r=ot(r,n,i,a,e[8],6,1873313359),a=ot(a,r,n,i,e[15],10,-30611744),i=ot(i,a,r,n,e[6],15,-1560198380),n=ot(n,i,a,r,e[13],21,1309151649),r=ot(r,n,i,a,e[4],6,-145523070),a=ot(a,r,n,i,e[11],10,-1120210379),i=ot(i,a,r,n,e[2],15,718787259),n=ot(n,i,a,r,e[9],21,-343485551),t[0]=pt(r,t[0]),t[1]=pt(n,t[1]),t[2]=pt(i,t[2]),t[3]=pt(a,t[3])}function rt(t,e,r,n,i,a){return e=pt(pt(e,t),pt(n,a)),pt(e<>>32-i,r)}function nt(t,e,r,n,i,a,o){return rt(e&r|~e&n,t,e,i,a,o)}function it(t,e,r,n,i,a,o){return rt(e&n|r&~n,t,e,i,a,o)}function at(t,e,r,n,i,a,o){return rt(e^r^n,t,e,i,a,o)}function ot(t,e,r,n,i,a,o){return rt(r^(e|~n),t,e,i,a,o)}function st(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)et(n,ut(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(et(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,et(n,i),n}function ut(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}Z=V.atob.bind(V),$=V.btoa.bind(V);var ct="0123456789abcdef".split("");function ht(t){for(var e="",r=0;r<4;r++)e+=ct[t>>8*r+4&15]+ct[t>>8*r&15];return e}function lt(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function ft(t){return st(t).map(lt).join("")}var dt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}function gt(t,e){var r,n,i,a;if(t!==r){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],u=0;u<256;u++)s[u]=u;var c=0;for(u=0;u<256;u++){var h=s[u];c=(c+h+o.charCodeAt(u))%256,s[u]=s[c],s[c]=h}r=t,n=s}else s=n;var l=e.length,f=0,d=0,p="";for(u=0;u/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=ft(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=gt(this.encryptionKey,this.padding)}function bt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function yt(t){if("object"!==n(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[r]){var o=e[r][a];try{o[0].apply(t,n)}catch(r){V.console&&Y.error("jsPDF PubSub Error",r.message,r)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function wt(t){if(!(this instanceof wt))return new wt(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function Nt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Lt(t,e,r,n,i){if(!(this instanceof Lt))return new Lt(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,Nt.call(this,n,i)}function At(t,e,r,n,i){if(!(this instanceof At))return new At(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,Nt.call(this,n,i)}function xt(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],s=[],u=1,c=16,h="S",l=null;"object"===n(t=t||{})&&(r=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(l=t.encryption||null)&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),u="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(c=t.floatPrecision),h=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),i=i||"mm",r=(""+(r||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=yt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var b=p.__private__.getPageFormat=function(t){return v[t]};a=a||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},w=y.COMPAT;function N(){this.saveGraphicsState(),it(new Vt(_t,0,0,-_t,0,Rr()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),h="n",w=y.ADVANCED}function L(){this.restoreGraphicsState(),h="S",w=y.COMPAT}var A=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===y.COMPAT;return e&&N.call(this),"function"!=typeof t||(t(this),e&&L.call(this)),this},p.compatAPI=function(t){var e=w===y.ADVANCED;return e&&L.call(this),"function"!=typeof t||(t(this),e&&N.call(this)),this},p.isAdvancedAPI=function(){return w===y.ADVANCED};var x,S=function(t){if(w!==y.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},_=p.roundToPrecision=p.__private__.roundToPrecision=function(t,r){var n=e||r;if(isNaN(t)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};x=p.hpf=p.__private__.hpf="number"==typeof c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return _(t,c)}:"smart"===c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return _(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return _(t,16)};var P=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return _(t,2)},k=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return _(t,3)},F=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y.COMPAT?t*_t:w===y.ADVANCED?t:void 0},I=function(t){return w===y.COMPAT?Rr()-t:w===y.ADVANCED?t:void 0},C=function(t){return F(I(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var j,O="00000000000000000000000000000000",B=p.__private__.getFileId=function(){return O},M=p.__private__.setFileId=function(t){return O=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():O.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==l&&(Ye=new vt(l.userPermissions,l.userPassword,l.ownerPassword,O)),O};p.setFileId=function(t){return M(t),this},p.getFileId=function(){return B()};var E=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[r,U(n),"'",U(i),"'"].join("");return["D:",t.getFullYear(),U(t.getMonth()+1),U(t.getDate()),U(t.getHours()),U(t.getMinutes()),U(t.getSeconds()),a].join("")},q=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,a,o,0)},D=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=E(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return j=e},R=p.__private__.getCreationDate=function(t){var e=j;return"jsDate"===t&&(e=q(j)),e};p.setCreationDate=function(t){return D(t),this},p.getCreationDate=function(t){return R(t)};var T,U=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},z=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},H=0,W=[],G=[],J=0,X=[],K=[],Z=!1,et=G,rt=function(){H=0,J=0,G=[],W=[],X=[],Qt=Kt(),te=Kt()};p.__private__.setCustomOutputDestination=function(t){Z=!0,et=t};var nt=function(t){Z||(et=t)};p.__private__.resetCustomOutputDestination=function(){Z=!1,et=G};var it=p.__private__.out=function(t){return t=t.toString(),J+=t.length+1,et.push(t),et},at=p.__private__.write=function(t){return it(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},ot=p.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},st=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return st};var ut=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return ut=w===y.ADVANCED?t/_t:t,this};var ct,ht=p.__private__.getFontSize=p.getFontSize=function(){return w===y.COMPAT?ut:ut*_t},lt=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return lt=t,this},p.__private__.getR2L=p.getR2L=function(){return lt};var ft,dt=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))ct=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');ct=t}else ct=parseInt(t,10)};p.__private__.getZoomMode=function(){return ct};var pt,gt=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ft=t};p.__private__.getPageMode=function(){return ft};var mt=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');pt=t};p.__private__.getLayoutMode=function(){return pt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,r){return dt(t),mt(e),gt(r),this};var Nt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Nt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Nt[t]},p.__private__.getDocumentProperties=function(){return Nt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in Nt)Nt.hasOwnProperty(e)&&t[e]&&(Nt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Nt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Nt[t]=e};var St,_t,Pt,kt,Ft,It={},Ct={},jt=[],Ot={},Bt={},Mt={},Et={},qt=null,Dt=0,Rt=[],Tt=new yt(p),Ut=t.hotfixes||[],zt={},Ht={},Wt=[],Vt=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(x).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,r,n,i,a,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n;r-=t*s,n-=e*s;var u=Math.sqrt(r*r+n*n);return s/=u,t*(n/=u)>16&255,i=c>>8&255,a=255&c}if(void 0===i||void 0===o&&r===i&&i===a)e="string"==typeof r?r+" "+s[0]:2===t.precision?P(r/255)+" "+s[0]:k(r/255)+" "+s[0];else if(void 0===o||"object"===n(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof r?[r,i,a,s[1]].join(" "):2===t.precision?[P(r/255),P(i/255),P(a/255),s[1]].join(" "):[k(r/255),k(i/255),k(a/255),s[1]].join(" ")}else e="string"==typeof r?[r,i,a,o,s[2]].join(" "):2===t.precision?[P(r),P(i),P(a),P(o),s[2]].join(" "):[k(r),k(i),k(a),k(o),s[2]].join(" ");return e},ne=p.__private__.getFilters=function(){return s},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==l&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==l&&(s=Ye.encryptor(o,0));var u={};!0===r&&(r=["FlateEncode"]);var c=t.additionalKeyValues||[],h=(u=void 0!==xt.API.processDataByFilters?xt.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==u.data.length&&(c.push({key:"Length",value:u.data.length}),!0===i&&c.push({key:"Length1",value:a})),0!=h.length)if(h.split("/").length-1==1)c.push({key:"Filter",value:h});else{c.push({key:"Filter",value:"["+h+"]"});for(var f=0;f>"),0!==u.data.length&&(it("stream"),it(s(u.data)),it("endstream"))},ae=p.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;Zt(n,!0),it("<>"),it("endobj");var a=r.join("\n");return w===y.ADVANCED&&(a+="\nQ"),Zt(i,!0),ie({data:a,filters:ne(),objectId:i}),it("endobj"),n},oe=p.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Dt;t++)Rt[t].objId=Kt(),Rt[t].contentsObjId=Kt();for(t=1;t<=Dt;t++)r.push(ae({number:t,data:K[t],objId:Rt[t].objId,contentsObjId:Rt[t].contentsObjId,mediaBox:Rt[t].mediaBox,cropBox:Rt[t].cropBox,bleedBox:Rt[t].bleedBox,trimBox:Rt[t].trimBox,artBox:Rt[t].artBox,userUnit:Rt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Zt(Qt,!0),it("<>"),it("endobj"),Tt.publish("postPutPages")},se=function(t){Tt.publish("putFont",{font:t,out:it,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),it("<<"),it("/Type /Font"),it("/BaseFont /"+bt(t.postScriptName)),it("/Subtype /Type1"),"string"==typeof t.encoding&&it("/Encoding /"+t.encoding),it("/FirstChar 32"),it("/LastChar 255"),it(">>"),it("endobj"))},ue=function(){for(var t in It)It.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(It[t])},ce=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[x(t.x),x(t.y),x(t.x+t.width),x(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),it("endobj")},he=function(){for(var t in zt)zt.hasOwnProperty(t)&&ce(zt[t])},le=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",u=0,c=0;ct[u+1].offset;)u++;var h=t[u].offset,l=(r-h)/(t[u+1].offset-h),f=t[u].color,d=t[u+1].color;s+=z(Math.round((1-l)*f[0]+l*d[0]).toString(16))+z(Math.round((1-l)*f[1]+l*d[1]).toString(16))+z(Math.round((1-l)*f[2]+l*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var r=Xt(),n=le(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),it("endobj"),t.objectNumber=Xt(),it("<< /ShadingType "+t.type),it("/ColorSpace /DeviceRGB");var a="/Coords ["+x(parseFloat(t.coords[0]))+" "+x(parseFloat(t.coords[1]))+" ";2===t.type?a+=x(parseFloat(t.coords[2]))+" "+x(parseFloat(t.coords[3])):a+=x(parseFloat(t.coords[2]))+" "+x(parseFloat(t.coords[3]))+" "+x(parseFloat(t.coords[4]))+" "+x(parseFloat(t.coords[5])),it(a+="]"),t.matrix&&it("/Matrix ["+t.matrix.toString()+"]"),it("/Function "+r+" 0 R"),it("/Extend [true true]"),it(">>"),it("endobj")},de=function(t,e){var r=Kt(),n=Xt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(x).join(" ")+"]"}),i.push({key:"XStep",value:x(t.xStep)}),i.push({key:"YStep",value:x(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),it("endobj")},pe=function(t){var e;for(e in Ot)Ot.hasOwnProperty(e)&&(Ot[e]instanceof Lt?fe(Ot[e]):Ot[e]instanceof At&&de(Ot[e],t))},ge=function(t){for(var e in t.objectNumber=Xt(),it("<<"),t)switch(e){case"opacity":it("/ca "+P(t[e]));break;case"stroke-opacity":it("/CA "+P(t[e]))}it(">>"),it("endobj")},me=function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ge(Mt[t])},ve=function(){for(var t in it("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&&it("/"+t+" "+zt[t].objectNumber+" 0 R");Tt.publish("putXobjectDict"),it(">>")},be=function(){Ye.oid=Xt(),it("<<"),it("/Filter /Standard"),it("/V "+Ye.v),it("/R "+Ye.r),it("/U <"+Ye.toHexString(Ye.U)+">"),it("/O <"+Ye.toHexString(Ye.O)+">"),it("/P "+Ye.P),it(">>"),it("endobj")},ye=function(){for(var t in it("/Font <<"),It)It.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&it("/"+t+" "+It[t].objectNumber+" 0 R");it(">>")},we=function(){if(Object.keys(Ot).length>0){for(var t in it("/Shading <<"),Ot)Ot.hasOwnProperty(t)&&Ot[t]instanceof Lt&&Ot[t].objectNumber>=0&&it("/"+t+" "+Ot[t].objectNumber+" 0 R");Tt.publish("putShadingPatternDict"),it(">>")}},Ne=function(t){if(Object.keys(Ot).length>0){for(var e in it("/Pattern <<"),Ot)Ot.hasOwnProperty(e)&&Ot[e]instanceof p.TilingPattern&&Ot[e].objectNumber>=0&&Ot[e].objectNumber>")}},Le=function(){if(Object.keys(Mt).length>0){var t;for(t in it("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&it("/"+t+" "+Mt[t].objectNumber+" 0 R");Tt.publish("putGStateDict"),it(">>")}},Ae=function(t){Zt(t.resourcesOid,!0),it("<<"),it("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),Ne(t.objectOid),Le(),ve(),it(">>"),it("endobj")},xe=function(){var t=[];ue(),me(),he(),pe(t),Tt.publish("putResources"),t.forEach(Ae),Ae({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Tt.publish("postPutResources")},Se=function(){Tt.publish("putAdditionalObjects");for(var t=0;t>8&&(u=!0);t=s.join("")}for(r=t.length;void 0===u&&0!==r;)t.charCodeAt(r-1)>>8&&(u=!0),r--;if(!u)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(h),s.push(c-(h<<8))}return String.fromCharCode.apply(void 0,s)},Ce=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return Ie(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},je=p.__private__.beginPage=function(t){K[++Dt]=[],Rt[Dt]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Me(Dt),nt(K[T])},Oe=function(t,e){var n,i,o;switch(r=e||r,"string"==typeof t&&(n=b(t.toLowerCase()),Array.isArray(n)&&(i=n[0],o=n[1])),Array.isArray(t)&&(i=t[0]*_t,o=t[1]*_t),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(Y.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],r.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}je(a),pr(fr),it(Lr),0!==kr&&it(kr+" J"),0!==Fr&&it(Fr+" j"),Tt.publish("addPage",{pageNumber:Dt})},Be=function(t){t>0&&t<=Dt&&(K.splice(t,1),Rt.splice(t,1),Dt--,T>Dt&&(T=Dt),this.setPage(T))},Me=function(t){t>0&&t<=Dt&&(T=t)},Ee=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return K.length-1},qe=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:It[St].fontName,e=void 0!==e?e:It[St].fontStyle,n=t.toLowerCase(),void 0!==Ct[n]&&void 0!==Ct[n][e]?i=Ct[n][e]:void 0!==Ct[t]&&void 0!==Ct[t][e]?i=Ct[t][e]:!1===r.disableWarning&&Y.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=Ct.times[e])&&(i=Ct.times.normal),i},De=p.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var r in null!==l&&(e=Ye.encryptor(t,0)),it("<<"),it("/Producer ("+Ce(e("jsPDF "+xt.version))+")"),Nt)Nt.hasOwnProperty(r)&&Nt[r]&&it("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ce(e(Nt[r]))+")");it("/CreationDate ("+Ce(e(j))+")"),it(">>"),it("endobj")},Re=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),it("<<"),it("/Type /Catalog"),it("/Pages "+e+" 0 R"),ct||(ct="fullwidth"),ct){case"fullwidth":it("/OpenAction [3 0 R /FitH null]");break;case"fullheight":it("/OpenAction [3 0 R /FitV null]");break;case"fullpage":it("/OpenAction [3 0 R /Fit]");break;case"original":it("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+ct;"%"===r.substr(r.length-1)&&(ct=parseInt(ct)/100),"number"==typeof ct&&it("/OpenAction [3 0 R /XYZ null null "+P(ct)+"]")}switch(pt||(pt="continuous"),pt){case"continuous":it("/PageLayout /OneColumn");break;case"single":it("/PageLayout /SinglePage");break;case"two":case"twoleft":it("/PageLayout /TwoColumnLeft");break;case"tworight":it("/PageLayout /TwoColumnRight")}ft&&it("/PageMode /"+ft),Tt.publish("putCatalog"),it(">>"),it("endobj")},Te=p.__private__.putTrailer=function(){it("trailer"),it("<<"),it("/Size "+(H+1)),it("/Root "+H+" 0 R"),it("/Info "+(H-1)+" 0 R"),null!==l&&it("/Encrypt "+Ye.oid+" 0 R"),it("/ID [ <"+O+"> <"+O+"> ]"),it(">>")},Ue=p.__private__.putHeader=function(){it("%PDF-"+g),it("%ºß¬à")},ze=p.__private__.putXRef=function(){var t="0000000000";it("xref"),it("0 "+(H+1)),it("0000000000 65535 f ");for(var e=1;e<=H;e++)"function"==typeof W[e]?it((t+W[e]()).slice(-10)+" 00000 n "):void 0!==W[e]?it((t+W[e]).slice(-10)+" 00000 n "):it("0000000000 00000 n ")},He=p.__private__.buildDocument=function(){rt(),nt(G),Tt.publish("buildDocument"),Ue(),oe(),Se(),xe(),null!==l&&be(),De(),Re();var t=J;return ze(),Te(),it("startxref"),it(""+t),it("%%EOF"),nt(K[T]),G.join("\n")},We=p.__private__.getBlob=function(t){return new Blob([ot(t)],{type:"application/pdf"})},Ve=p.output=p.__private__.output=Fe((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":p.save(e.filename);break;case"arraybuffer":return ot(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==V.URL&&"function"==typeof V.URL.createObjectURL)return V.URL&&V.URL.createObjectURL(We(He()))||void 0;Y.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=He();try{r=$(n)}catch(t){r=$(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+e.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(V)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var o='