(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[566],{61120:function(A){
/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
(function(e,t){A.exports=t()})(0,(function(){"use strict";
/*! *****************************************************************************
    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.
    ***************************************************************************** */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;t<r;t++)for(var B in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,B)&&(A[B]=e[B]);return A},t.apply(this,arguments)};function r(A,e,t,r){function B(A){return A instanceof t?A:new t((function(e){e(A)}))}return new(t||(t=Promise))((function(t,n){function s(A){try{i(r.next(A))}catch(Je){n(Je)}}function o(A){try{i(r["throw"](A))}catch(Je){n(Je)}}function i(A){A.done?t(A.value):B(A.value).then(s,o)}i((r=r.apply(A,e||[])).next())}))}function B(A,e){var t,r,B,n,s={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(A){return function(e){return i([A,e])}}function i(n){if(t)throw new TypeError("Generator is already executing.");while(s)try{if(t=1,r&&(B=2&n[0]?r["return"]:n[0]?r["throw"]||((B=r["return"])&&B.call(r),0):r.next)&&!(B=B.call(r,n[1])).done)return B;switch(r=0,B&&(n=[2&n[0],B.value]),n[0]){case 0:case 1:B=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,r=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(B=s.trys,!(B=B.length>0&&B[B.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!B||n[1]>B[0]&&n[1]<B[3])){s.label=n[1];break}if(6===n[0]&&s.label<B[1]){s.label=B[1],B=n;break}if(B&&s.label<B[2]){s.label=B[2],s.ops.push(n);break}B[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(A,s)}catch(Je){n=[6,Je],r=0}finally{t=B=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}}function n(A,e,t){if(t||2===arguments.length)for(var r,B=0,n=e.length;B<n;B++)!r&&B in e||(r||(r=Array.prototype.slice.call(e,0,B)),r[B]=e[B]);return A.concat(r||e)}for(var s=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,B){return new A(this.left+e,this.top+t,this.width+r,this.height+B)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find((function(A){return 0!==A.width}));return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}(),o=function(A,e){return s.fromClientRect(A,e.getBoundingClientRect())},i=function(A){var e=A.body,t=A.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),B=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new s(0,0,r,B)},a=function(A){var e=[],t=0,r=A.length;while(t<r){var B=A.charCodeAt(t++);if(B>=55296&&B<=56319&&t<r){var n=A.charCodeAt(t++);56320===(64512&n)?e.push(((1023&B)<<10)+(1023&n)+65536):(e.push(B),t--)}else e.push(B)}return e},c=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";var r=[],B=-1,n="";while(++B<t){var s=A[B];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g<Q.length;g++)w[Q.charCodeAt(g)]=g;for(var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"===typeof Uint8Array?[]:new Uint8Array(256),U=0;U<u.length;U++)l[u.charCodeAt(U)]=U;for(var C=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 a="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e<o;e+=4)t=l[A.charCodeAt(e)],r=l[A.charCodeAt(e+1)],B=l[A.charCodeAt(e+2)],n=l[A.charCodeAt(e+3)],c[i++]=t<<2|r>>4,c[i++]=(15&r)<<4|B>>2,c[i++]=(3&B)<<6|63&n;return a},F=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},h=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},d=5,f=11,p=2,H=f-d,E=65536>>d,I=1<<d,y=I-1,K=1024>>d,m=E+K,L=m,b=32,v=L+b,D=65536>>f,x=1<<H,M=x-1,S=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},T=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},G=function(A,e){var t=C(A),r=Array.isArray(t)?h(t):new Uint32Array(t),B=Array.isArray(t)?F(t):new Uint16Array(t),n=24,s=S(B,n/2,r[4]/2),o=2===r[5]?S(B,(n+r[4])/2):T(r,Math.ceil((n+r[4])/4));return new O(r[0],r[1],r[2],r[3],s,o)},O=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=this.index[A>>d],e=(e<<p)+(A&y),this.data[e];if(A<=65535)return e=this.index[E+(A-55296>>d)],e=(e<<p)+(A&y),this.data[e];if(A<this.highStart)return e=v-D+(A>>f),e=this.index[e],e+=A>>d&M,e=this.index[e],e=(e<<p)+(A&y),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="undefined"===typeof Uint8Array?[]:new Uint8Array(256),R=0;R<V.length;R++)k[V.charCodeAt(R)]=R;var N=" ",P=50,X=1,J=2,Y=3,W=4,Z=5,_=7,q=8,j=9,z=10,$=11,AA=12,eA=13,tA=14,rA=15,BA=16,nA=17,sA=18,oA=19,iA=20,aA=21,cA=22,QA=23,wA=24,gA=25,uA=26,lA=27,UA=28,CA=29,FA=30,hA=31,dA=32,fA=33,pA=34,HA=35,EA=36,IA=37,yA=38,KA=39,mA=40,LA=41,bA=42,vA=43,DA=[9001,65288],xA="!",MA="×",SA="÷",TA=G(N),GA=[FA,EA],OA=[X,J,Y,Z],VA=[z,q],kA=[lA,uA],RA=OA.concat(VA),NA=[yA,KA,mA,pA,HA],PA=[rA,eA],XA=function(A,e){void 0===e&&(e="strict");var t=[],r=[],B=[];return A.forEach((function(A,n){var s=TA.get(A);if(s>P?(B.push(!0),s-=P):B.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(n),t.push(BA);if(s===W||s===$){if(0===n)return r.push(n),t.push(FA);var o=t[n-1];return-1===RA.indexOf(o)?(r.push(r[n-1]),t.push(o)):(r.push(n),t.push(FA))}return r.push(n),s===hA?t.push("strict"===e?aA:IA):s===bA||s===CA?t.push(FA):s===vA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(IA):t.push(FA):void t.push(s)})),[r,t,B]},JA=function(A,e,t,r){var B=r[t];if(Array.isArray(A)?-1!==A.indexOf(B):A===B){var n=t;while(n<=r.length){n++;var s=r[n];if(s===e)return!0;if(s!==z)break}}if(B===z){n=t;while(n>0){n--;var o=r[n];if(Array.isArray(A)?-1!==A.indexOf(o):A===o){var i=t;while(i<=r.length){i++;s=r[i];if(s===e)return!0;if(s!==z)break}}if(o!==z)break}}return!1},YA=function(A,e){var t=A;while(t>=0){var r=e[t];if(r!==z)return r;t--}return 0},WA=function(A,e,t,r,B){if(0===t[r])return MA;var n=r-1;if(Array.isArray(B)&&!0===B[n])return MA;var s=n-1,o=n+1,i=e[n],a=s>=0?e[s]:0,c=e[o];if(i===J&&c===Y)return MA;if(-1!==OA.indexOf(i))return xA;if(-1!==OA.indexOf(c))return MA;if(-1!==VA.indexOf(c))return MA;if(YA(n,e)===q)return SA;if(TA.get(A[n])===$)return MA;if((i===dA||i===fA)&&TA.get(A[o])===$)return MA;if(i===_||c===_)return MA;if(i===j)return MA;if(-1===[z,eA,rA].indexOf(i)&&c===j)return MA;if(-1!==[nA,sA,oA,wA,UA].indexOf(c))return MA;if(YA(n,e)===cA)return MA;if(JA(QA,cA,n,e))return MA;if(JA([nA,sA],aA,n,e))return MA;if(JA(AA,AA,n,e))return MA;if(i===z)return SA;if(i===QA||c===QA)return MA;if(c===BA||i===BA)return SA;if(-1!==[eA,rA,aA].indexOf(c)||i===tA)return MA;if(a===EA&&-1!==PA.indexOf(i))return MA;if(i===UA&&c===EA)return MA;if(c===iA)return MA;if(-1!==GA.indexOf(c)&&i===gA||-1!==GA.indexOf(i)&&c===gA)return MA;if(i===lA&&-1!==[IA,dA,fA].indexOf(c)||-1!==[IA,dA,fA].indexOf(i)&&c===uA)return MA;if(-1!==GA.indexOf(i)&&-1!==kA.indexOf(c)||-1!==kA.indexOf(i)&&-1!==GA.indexOf(c))return MA;if(-1!==[lA,uA].indexOf(i)&&(c===gA||-1!==[cA,rA].indexOf(c)&&e[o+1]===gA)||-1!==[cA,rA].indexOf(i)&&c===gA||i===gA&&-1!==[gA,UA,wA].indexOf(c))return MA;if(-1!==[gA,UA,wA,nA,sA].indexOf(c)){var Q=n;while(Q>=0){var w=e[Q];if(w===gA)return MA;if(-1===[UA,wA].indexOf(w))break;Q--}}if(-1!==[lA,uA].indexOf(c)){Q=-1!==[nA,sA].indexOf(i)?s:n;while(Q>=0){w=e[Q];if(w===gA)return MA;if(-1===[UA,wA].indexOf(w))break;Q--}}if(yA===i&&-1!==[yA,KA,pA,HA].indexOf(c)||-1!==[KA,pA].indexOf(i)&&-1!==[KA,mA].indexOf(c)||-1!==[mA,HA].indexOf(i)&&c===mA)return MA;if(-1!==NA.indexOf(i)&&-1!==[iA,uA].indexOf(c)||-1!==NA.indexOf(c)&&i===lA)return MA;if(-1!==GA.indexOf(i)&&-1!==GA.indexOf(c))return MA;if(i===wA&&-1!==GA.indexOf(c))return MA;if(-1!==GA.concat(gA).indexOf(i)&&c===cA&&-1===DA.indexOf(A[o])||-1!==GA.concat(gA).indexOf(c)&&i===sA)return MA;if(i===LA&&c===LA){var g=t[n],u=1;while(g>0){if(g--,e[g]!==LA)break;u++}if(u%2!==0)return MA}return i===dA&&c===fA?MA:SA},ZA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=XA(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!==[gA,FA,bA].indexOf(A)?IA: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]},_A=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===xA,this.start=t,this.end=r}return A.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),qA=function(A,e){var t=a(A),r=ZA(t,e),B=r[0],n=r[1],s=r[2],o=t.length,i=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};var A=MA;while(c<o&&(A=WA(t,n,B,++c,s))===MA);if(A!==MA||c===o){var e=new _A(t,A,i,c);return i=c,{value:e,done:!1}}return{done:!0,value:null}}}},jA=1,zA=2,$A=4,Ae=8,ee=10,te=47,re=92,Be=9,ne=32,se=34,oe=61,ie=35,ae=36,ce=37,Qe=39,we=40,ge=41,ue=95,le=45,Ue=33,Ce=60,Fe=62,he=64,de=91,fe=93,pe=61,He=123,Ee=63,Ie=125,ye=124,Ke=126,me=128,Le=65533,be=42,ve=43,De=44,xe=58,Me=59,Se=46,Te=0,Ge=8,Oe=11,Ve=14,ke=31,Re=127,Ne=-1,Pe=48,Xe=97,Je=101,Ye=102,We=117,Ze=122,_e=65,qe=69,je=70,ze=85,$e=90,At=function(A){return A>=Pe&&A<=57},et=function(A){return A>=55296&&A<=57343},tt=function(A){return At(A)||A>=_e&&A<=je||A>=Xe&&A<=Ye},rt=function(A){return A>=Xe&&A<=Ze},Bt=function(A){return A>=_e&&A<=$e},nt=function(A){return rt(A)||Bt(A)},st=function(A){return A>=me},ot=function(A){return A===ee||A===Be||A===ne},it=function(A){return nt(A)||st(A)||A===ue},at=function(A){return it(A)||At(A)||A===le},ct=function(A){return A>=Te&&A<=Ge||A===Oe||A>=Ve&&A<=ke||A===Re},Qt=function(A,e){return A===re&&e!==ee},wt=function(A,e,t){return A===le?it(e)||Qt(e,t):!!it(A)||!(A!==re||!Qt(A,e))},gt=function(A,e,t){return A===ve||A===le?!!At(e)||e===Se&&At(t):At(A===Se?e:A)},ut=function(A){var e=0,t=1;A[e]!==ve&&A[e]!==le||(A[e]===le&&(t=-1),e++);var r=[];while(At(A[e]))r.push(A[e++]);var B=r.length?parseInt(c.apply(void 0,r),10):0;A[e]===Se&&e++;var n=[];while(At(A[e]))n.push(A[e++]);var s=n.length,o=s?parseInt(c.apply(void 0,n),10):0;A[e]!==qe&&A[e]!==Je||e++;var i=1;A[e]!==ve&&A[e]!==le||(A[e]===le&&(i=-1),e++);var a=[];while(At(A[e]))a.push(A[e++]);var Q=a.length?parseInt(c.apply(void 0,a),10):0;return t*(B+o*Math.pow(10,-s))*Math.pow(10,i*Q)},lt={type:2},Ut={type:3},Ct={type:4},Ft={type:13},ht={type:8},dt={type:21},ft={type:9},pt={type:10},Ht={type:11},Et={type:12},It={type:14},yt={type:23},Kt={type:1},mt={type:25},Lt={type:24},bt={type:26},vt={type:27},Dt={type:28},xt={type:29},Mt={type:31},St={type:32},Tt=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(a(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==St)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case se:return this.consumeStringToken(se);case ie:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(at(e)||Qt(t,r)){var B=wt(e,t,r)?zA:jA,n=this.consumeName();return{type:5,value:n,flags:B}}break;case ae:if(this.peekCodePoint(0)===oe)return this.consumeCodePoint(),Ft;break;case Qe:return this.consumeStringToken(Qe);case we:return lt;case ge:return Ut;case be:if(this.peekCodePoint(0)===oe)return this.consumeCodePoint(),It;break;case ve:if(gt(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case De:return Ct;case le:var s=A,o=this.peekCodePoint(0),i=this.peekCodePoint(1);if(gt(s,o,i))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(wt(s,o,i))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===le&&i===Fe)return this.consumeCodePoint(),this.consumeCodePoint(),Lt;break;case Se:if(gt(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case te:if(this.peekCodePoint(0)===be){this.consumeCodePoint();while(1){var a=this.consumeCodePoint();if(a===be&&(a=this.consumeCodePoint(),a===te))return this.consumeToken();if(a===Ne)return this.consumeToken()}}break;case xe:return bt;case Me:return vt;case Ce:if(this.peekCodePoint(0)===Ue&&this.peekCodePoint(1)===le&&this.peekCodePoint(2)===le)return this.consumeCodePoint(),this.consumeCodePoint(),mt;break;case he:var Q=this.peekCodePoint(0),w=this.peekCodePoint(1),g=this.peekCodePoint(2);if(wt(Q,w,g)){n=this.consumeName();return{type:7,value:n}}break;case de:return Dt;case re:if(Qt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case fe:return xt;case pe:if(this.peekCodePoint(0)===oe)return this.consumeCodePoint(),ht;break;case He:return Ht;case Ie:return Et;case We:case ze:var u=this.peekCodePoint(0),l=this.peekCodePoint(1);return u!==ve||!tt(l)&&l!==Ee||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case ye:if(this.peekCodePoint(0)===oe)return this.consumeCodePoint(),ft;if(this.peekCodePoint(0)===ye)return this.consumeCodePoint(),dt;break;case Ke:if(this.peekCodePoint(0)===oe)return this.consumeCodePoint(),pt;break;case Ne:return St}return ot(A)?(this.consumeWhiteSpace(),Mt):At(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):it(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:c(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return"undefined"===typeof 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(){var A=[],e=this.consumeCodePoint();while(tt(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(e===Ee&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(c.apply(void 0,A.map((function(A){return A===Ee?Pe:A}))),16),B=parseInt(c.apply(void 0,A.map((function(A){return A===Ee?je:A}))),16);return{type:30,start:r,end:B}}var n=parseInt(c.apply(void 0,A),16);if(this.peekCodePoint(0)===le&&tt(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var s=[];while(tt(e)&&s.length<6)s.push(e),e=this.consumeCodePoint();B=parseInt(c.apply(void 0,s),16);return{type:30,start:n,end:B}}return{type:30,start:n,end:n}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===we?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===we?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Qe||e===se){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne||this.peekCodePoint(0)===ge)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),yt)}while(1){var r=this.consumeCodePoint();if(r===Ne||r===ge)return{type:22,value:c.apply(void 0,A)};if(ot(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ne||this.peekCodePoint(0)===ge?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,A)}):(this.consumeBadUrlRemnants(),yt);if(r===se||r===Qe||r===we||ct(r))return this.consumeBadUrlRemnants(),yt;if(r===re){if(!Qt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yt;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){while(ot(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===ge||A===Ne)return;Qt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e=5e4,t="";while(A>0){var r=Math.min(e,A);t+=c.apply(void 0,this._value.splice(0,r)),A-=r}return this._value.shift(),t},A.prototype.consumeStringToken=function(A){var e="",t=0;do{var r=this._value[t];if(r===Ne||void 0===r||r===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(r===ee)return this._value.splice(0,t),Kt;if(r===re){var B=this._value[t+1];B!==Ne&&void 0!==B&&(B===ee?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):Qt(r,B)&&(e+=this.consumeStringSlice(t),e+=c(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=$A,t=this.peekCodePoint(0);t!==ve&&t!==le||A.push(this.consumeCodePoint());while(At(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===Se&&At(r)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Ae;while(At(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),r=this.peekCodePoint(1);var B=this.peekCodePoint(2);if((t===qe||t===Je)&&((r===ve||r===le)&&At(B)||At(r))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Ae;while(At(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[ut(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);if(wt(r,B,n)){var s=this.consumeName();return{type:15,number:e,flags:t,unit:s}}return r===ce?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(tt(A)){var e=c(A);while(tt(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());ot(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||et(t)||t>1114111?Le:t}return A===Ne?Le:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(at(e))A+=c(e);else{if(!Qt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=c(this.consumeEscapedCodePoint())}}},A}(),Gt=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new Tt;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(){var A=this.consumeToken();while(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(){var A=[];while(1){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){var e={type:A,values:[]},t=this.consumeToken();while(1){if(32===t.type||Yt(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:18};while(1){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"undefined"===typeof A?St:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),Ot=function(A){return 15===A.type},Vt=function(A){return 17===A.type},kt=function(A){return 20===A.type},Rt=function(A){return 0===A.type},Nt=function(A,e){return kt(A)&&A.value===e},Pt=function(A){return 31!==A.type},Xt=function(A){return 31!==A.type&&4!==A.type},Jt=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},Yt=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)},Wt=function(A){return 17===A.type||15===A.type},Zt=function(A){return 16===A.type||Wt(A)},_t=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},qt={type:17,number:0,flags:$A},jt={type:16,number:50,flags:$A},zt={type:16,number:100,flags:$A},$t=function(A,e,t){var r=A[0],B=A[1];return[Ar(r,e),Ar("undefined"!==typeof B?B:r,t)]},Ar=function(A,e){if(16===A.type)return A.number/100*e;if(Ot(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},er="deg",tr="grad",rr="rad",Br="turn",nr={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case er:return Math.PI*e.number/180;case tr:return Math.PI/200*e.number;case rr:return e.number;case Br:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},sr=function(A){return 15===A.type&&(A.unit===er||A.unit===tr||A.unit===rr||A.unit===Br)},or=function(A){var e=A.filter(kt).map((function(A){return A.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qt,qt];case"to top":case"bottom":return ir(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qt,zt];case"to right":case"left":return ir(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[zt,zt];case"to bottom":case"top":return ir(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[zt,qt];case"to left":case"right":return ir(270)}return 0},ir=function(A){return Math.PI*A/180},ar={name:"color",parse:function(A,e){if(18===e.type){var t=Cr[e.name];if("undefined"===typeof 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 wr(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 wr(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6);return wr(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(8===e.value.length){r=e.value.substring(0,2),B=e.value.substring(2,4),n=e.value.substring(4,6),s=e.value.substring(6,8);return wr(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(20===e.type){var o=hr[e.value.toUpperCase()];if("undefined"!==typeof o)return o}return hr.TRANSPARENT}},cr=function(A){return 0===(255&A)},Qr=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+")"},wr=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},gr=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},ur=function(A,e){var t=e.filter(Xt);if(3===t.length){var r=t.map(gr),B=r[0],n=r[1],s=r[2];return wr(B,n,s,1)}if(4===t.length){var o=t.map(gr),i=(B=o[0],n=o[1],s=o[2],o[3]);return wr(B,n,s,i)}return 0};function lr(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 Ur=function(A,e){var t=e.filter(Xt),r=t[0],B=t[1],n=t[2],s=t[3],o=(17===r.type?ir(r.number):nr.parse(A,r))/(2*Math.PI),i=Zt(B)?B.number/100:0,a=Zt(n)?n.number/100:0,c="undefined"!==typeof s&&Zt(s)?Ar(s,1):1;if(0===i)return wr(255*a,255*a,255*a,1);var Q=a<=.5?a*(i+1):a+i-a*i,w=2*a-Q,g=lr(w,Q,o+1/3),u=lr(w,Q,o),l=lr(w,Q,o-1/3);return wr(255*g,255*u,255*l,c)},Cr={hsl:Ur,hsla:Ur,rgb:ur,rgba:ur},Fr=function(A,e){return ar.parse(A,Gt.create(e).parseComponentValue())},hr={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},dr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(kt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},fr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pr=function(A,e){var t=ar.parse(A,e[0]),r=e[1];return r&&Zt(r)?{color:t,stop:r}:{color:t,stop:null}},Hr=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=qt),null===r.stop&&(r.stop=zt);for(var B=[],n=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var i=Ar(o,e);i>n?B.push(i):B.push(n),n=i}else B.push(null)}var a=null;for(s=0;s<B.length;s++){var c=B[s];if(null===c)null===a&&(a=s);else if(null!==a){for(var Q=s-a,w=B[a-1],g=(c-w)/(Q+1),u=1;u<=Q;u++)B[a+u-1]=g*u;a=null}}return A.map((function(A,t){var r=A.color;return{color:r,stop:Math.max(Math.min(1,B[t]/e),0)}}))},Er=function(A,e,t){var r=e/2,B=t/2,n=Ar(A[0],e)-r,s=B-Ar(A[1],t);return(Math.atan2(s,n)+2*Math.PI)%(2*Math.PI)},Ir=function(A,e,t){var r="number"===typeof A?A:Er(A,e,t),B=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),n=e/2,s=t/2,o=B/2,i=Math.sin(r-Math.PI/2)*o,a=Math.cos(r-Math.PI/2)*o;return[B,n-a,n+a,s-i,s+i]},yr=function(A,e){return Math.sqrt(A*A+e*e)},Kr=function(A,e,t,r,B){var n=[[0,0],[0,e],[A,0],[A,e]];return n.reduce((function(A,e){var n=e[0],s=e[1],o=yr(t-n,r-s);return(B?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A}),{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},mr=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(yr(e,t),yr(e,t-B),yr(e-r,t),yr(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=Kr(r,B,e,t,!0),a=i[0],c=i[1];n=yr(a-e,(c-t)/o),s=o*n}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(yr(e,t),yr(e,t-B),yr(e-r,t),yr(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 Q=Kr(r,B,e,t,!1);a=Q[0],c=Q[1];n=yr(a-e,(c-t)/o),s=o*n}break}return Array.isArray(A.size)&&(n=Ar(A.size[0],r),s=2===A.size.length?Ar(A.size[1],B):n),[n,s]},Lr=function(A,e){var t=ir(180),r=[];return Jt(e).forEach((function(e,B){if(0===B){var n=e[0];if(20===n.type&&"to"===n.value)return void(t=or(e));if(sr(n))return void(t=nr.parse(A,n))}var s=pr(A,e);r.push(s)})),{angle:t,stops:r,type:1}},br=function(A,e){var t=ir(180),r=[];return Jt(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=or(e));if(sr(n))return void(t=(nr.parse(A,n)+ir(270))%ir(360))}var s=pr(A,e);r.push(s)})),{angle:t,stops:r,type:1}},vr=function(A,e){var t=ir(180),r=[],B=1,n=0,s=3,o=[];return Jt(e).forEach((function(e,t){var n=e[0];if(0===t){if(kt(n)&&"linear"===n.value)return void(B=1);if(kt(n)&&"radial"===n.value)return void(B=2)}if(18===n.type)if("from"===n.name){var s=ar.parse(A,n.values[0]);r.push({stop:qt,color:s})}else if("to"===n.name){s=ar.parse(A,n.values[0]);r.push({stop:zt,color:s})}else if("color-stop"===n.name){var o=n.values.filter(Xt);if(2===o.length){s=ar.parse(A,o[1]);var i=o[0];Vt(i)&&r.push({stop:{type:16,number:100*i.number,flags:i.flags},color:s})}}})),1===B?{angle:(t+ir(180))%ir(360),stops:r,type:B}:{size:s,shape:n,stops:r,position:o,type:B}},Dr="closest-side",xr="farthest-side",Mr="closest-corner",Sr="farthest-corner",Tr="circle",Gr="ellipse",Or="cover",Vr="contain",kr=function(A,e){var t=0,r=3,B=[],n=[];return Jt(e).forEach((function(e,s){var o=!0;if(0===s){var i=!1;o=e.reduce((function(A,e){if(i)if(kt(e))switch(e.value){case"center":return n.push(jt),A;case"top":case"left":return n.push(qt),A;case"right":case"bottom":return n.push(zt),A}else(Zt(e)||Wt(e))&&n.push(e);else if(kt(e))switch(e.value){case Tr:return t=0,!1;case Gr:return t=1,!1;case"at":return i=!0,!1;case Dr:return r=0,!1;case Or:case xr:return r=1,!1;case Vr:case Mr:return r=2,!1;case Sr:return r=3,!1}else if(Wt(e)||Zt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)}if(o){var a=pr(A,e);B.push(a)}})),{size:r,shape:t,stops:B,position:n,type:2}},Rr=function(A,e){var t=0,r=3,B=[],n=[];return Jt(e).forEach((function(e,s){var o=!0;if(0===s?o=e.reduce((function(A,e){if(kt(e))switch(e.value){case"center":return n.push(jt),!1;case"top":case"left":return n.push(qt),!1;case"right":case"bottom":return n.push(zt),!1}else if(Zt(e)||Wt(e))return n.push(e),!1;return A}),o):1===s&&(o=e.reduce((function(A,e){if(kt(e))switch(e.value){case Tr:return t=0,!1;case Gr:return t=1,!1;case Vr:case Dr:return r=0,!1;case xr:return r=1,!1;case Mr:return r=2,!1;case Or:case Sr:return r=3,!1}else if(Wt(e)||Zt(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return A}),o)),o){var i=pr(A,e);B.push(i)}})),{size:r,shape:t,stops:B,position:n,type:2}},Nr=function(A){return 1===A.type},Pr=function(A){return 2===A.type},Xr={name:"image",parse: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=Wr[e.name];if("undefined"===typeof 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)}};function Jr(A){return!(20===A.type&&"none"===A.value)&&(18!==A.type||!!Wr[A.name])}var Yr,Wr={"linear-gradient":Lr,"-moz-linear-gradient":br,"-ms-linear-gradient":br,"-o-linear-gradient":br,"-webkit-linear-gradient":br,"radial-gradient":kr,"-moz-radial-gradient":Rr,"-ms-radial-gradient":Rr,"-o-radial-gradient":Rr,"-webkit-radial-gradient":Rr,"-webkit-gradient":vr},Zr={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 Xt(A)&&Jr(A)})).map((function(e){return Xr.parse(A,e)}))}},_r={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if(kt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},qr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return Jt(e).map((function(A){return A.filter(Zt)})).map(_t)}},jr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return Jt(e).map((function(A){return A.filter(kt).map((function(A){return A.value})).join(" ")})).map(zr)}},zr=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;case"repeat":default:return 0}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(Yr||(Yr={}));var $r,AB={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return Jt(e).map((function(A){return A.filter(eB)}))}},eB=function(A){return kt(A)||Zt(A)},tB=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rB=tB("top"),BB=tB("right"),nB=tB("bottom"),sB=tB("left"),oB=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return _t(e.filter(Zt))}}},iB=oB("top-left"),aB=oB("top-right"),cB=oB("bottom-right"),QB=oB("bottom-left"),wB=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}}},gB=wB("top"),uB=wB("right"),lB=wB("bottom"),UB=wB("left"),CB=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Ot(e)?e.number:0}}},FB=CB("top"),hB=CB("right"),dB=CB("bottom"),fB=CB("left"),pB={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},HB={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},EB={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(kt).reduce((function(A,e){return A|IB(e.value)}),0)}},IB=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},yB={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}},KB={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"})($r||($r={}));var mB,LB={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"strict":return $r.STRICT;case"normal":default:return $r.NORMAL}}},bB={name:"line-height",initialValue:"normal",prefix:!1,type:4},vB=function(A,e){return kt(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:Zt(A)?Ar(A,e):e},DB={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:Xr.parse(A,e)}},xB={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},MB={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":return 22;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;case"none":default:return-1}}},SB=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},TB=SB("top"),GB=SB("right"),OB=SB("bottom"),VB=SB("left"),kB={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(kt).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},RB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},NB=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},PB=NB("top"),XB=NB("right"),JB=NB("bottom"),YB=NB("left"),WB={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;case"left":default:return 0}}},ZB={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}},_B={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Nt(e[0],"none")?[]:Jt(e).map((function(e){for(var t={color:hr.TRANSPARENT,offsetX:qt,offsetY:qt,blur:qt},r=0,B=0;B<e.length;B++){var n=e[B];Wt(n)?(0===r?t.offsetX=n:1===r?t.offsetY=n:t.blur=n,r++):t.color=ar.parse(A,n)}return t}))}},qB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},jB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var t=An[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},zB=function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===e.length?e:null},$B=function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),t=e[0],r=e[1];e[2],e[3];var B=e[4],n=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],16===e.length?[t,r,B,n,s,o]:null},An={matrix:zB,matrix3d:$B},en={type:16,number:50,flags:$A},tn=[en,en],rn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(Zt);return 2!==t.length?tn:[t[0],t[1]]}},Bn={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(A){A["NORMAL"]="normal",A["BREAK_ALL"]="break-all",A["KEEP_ALL"]="keep-all"})(mB||(mB={}));for(var nn={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return mB.BREAK_ALL;case"keep-all":return mB.KEEP_ALL;case"normal":default:return mB.NORMAL}}},sn={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if(Vt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},on={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},an={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return Vt(e)?e.number:1}},cn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(kt).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}},wn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach((function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}})),t.length&&r.push(t.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'"+A+"'"}))}},gn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},un={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){if(Vt(e))return e.number;if(kt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},ln={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(kt).map((function(A){return A.value}))}},Un={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Cn=function(A,e){return 0!==(A&e)},Fn={name:"content",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}},hn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var r=[],B=e.filter(Pt),n=0;n<B.length;n++){var s=B[n],o=B[n+1];if(20===s.type){var i=o&&Vt(o)?o.number:1;r.push({counter:s.value,increment:i})}}return r}},dn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],r=e.filter(Pt),B=0;B<r.length;B++){var n=r[B],s=r[B+1];if(kt(n)&&"none"!==n.value){var o=s&&Vt(s)?s.number:0;t.push({counter:n.value,reset:o})}}return t}},fn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(Ot).map((function(e){return on.parse(A,e)}))}},pn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var r=[],B=e.filter(Rt);if(B.length%2!==0)return null;for(var n=0;n<B.length;n+=2){var s=B[n].value,o=B[n+1].value;r.push({open:s,close:o})}return r}},Hn=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},En={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&Nt(e[0],"none")?[]:Jt(e).map((function(e){for(var t={color:255,offsetX:qt,offsetY:qt,blur:qt,spread:qt,inset:!1},r=0,B=0;B<e.length;B++){var n=e[B];Nt(n,"inset")?t.inset=!0:Wt(n)?(0===r?t.offsetX=n:1===r?t.offsetY=n:2===r?t.blur=n:t.spread=n,r++):t.color=ar.parse(A,n)}return t}))}},In={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[0,1,2],r=[];return e.filter(kt).forEach((function(A){switch(A.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}})),t.forEach((function(A){-1===r.indexOf(A)&&r.push(A)})),r}},yn={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Kn={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return Ot(e)?e.number:0}},mn=function(){function A(A,e){var t,r;this.animationDuration=vn(A,fn,e.animationDuration),this.backgroundClip=vn(A,dr,e.backgroundClip),this.backgroundColor=vn(A,fr,e.backgroundColor),this.backgroundImage=vn(A,Zr,e.backgroundImage),this.backgroundOrigin=vn(A,_r,e.backgroundOrigin),this.backgroundPosition=vn(A,qr,e.backgroundPosition),this.backgroundRepeat=vn(A,jr,e.backgroundRepeat),this.backgroundSize=vn(A,AB,e.backgroundSize),this.borderTopColor=vn(A,rB,e.borderTopColor),this.borderRightColor=vn(A,BB,e.borderRightColor),this.borderBottomColor=vn(A,nB,e.borderBottomColor),this.borderLeftColor=vn(A,sB,e.borderLeftColor),this.borderTopLeftRadius=vn(A,iB,e.borderTopLeftRadius),this.borderTopRightRadius=vn(A,aB,e.borderTopRightRadius),this.borderBottomRightRadius=vn(A,cB,e.borderBottomRightRadius),this.borderBottomLeftRadius=vn(A,QB,e.borderBottomLeftRadius),this.borderTopStyle=vn(A,gB,e.borderTopStyle),this.borderRightStyle=vn(A,uB,e.borderRightStyle),this.borderBottomStyle=vn(A,lB,e.borderBottomStyle),this.borderLeftStyle=vn(A,UB,e.borderLeftStyle),this.borderTopWidth=vn(A,FB,e.borderTopWidth),this.borderRightWidth=vn(A,hB,e.borderRightWidth),this.borderBottomWidth=vn(A,dB,e.borderBottomWidth),this.borderLeftWidth=vn(A,fB,e.borderLeftWidth),this.boxShadow=vn(A,En,e.boxShadow),this.color=vn(A,pB,e.color),this.direction=vn(A,HB,e.direction),this.display=vn(A,EB,e.display),this.float=vn(A,yB,e.cssFloat),this.fontFamily=vn(A,wn,e.fontFamily),this.fontSize=vn(A,gn,e.fontSize),this.fontStyle=vn(A,Un,e.fontStyle),this.fontVariant=vn(A,ln,e.fontVariant),this.fontWeight=vn(A,un,e.fontWeight),this.letterSpacing=vn(A,KB,e.letterSpacing),this.lineBreak=vn(A,LB,e.lineBreak),this.lineHeight=vn(A,bB,e.lineHeight),this.listStyleImage=vn(A,DB,e.listStyleImage),this.listStylePosition=vn(A,xB,e.listStylePosition),this.listStyleType=vn(A,MB,e.listStyleType),this.marginTop=vn(A,TB,e.marginTop),this.marginRight=vn(A,GB,e.marginRight),this.marginBottom=vn(A,OB,e.marginBottom),this.marginLeft=vn(A,VB,e.marginLeft),this.opacity=vn(A,an,e.opacity);var B=vn(A,kB,e.overflow);this.overflowX=B[0],this.overflowY=B[B.length>1?1:0],this.overflowWrap=vn(A,RB,e.overflowWrap),this.paddingTop=vn(A,PB,e.paddingTop),this.paddingRight=vn(A,XB,e.paddingRight),this.paddingBottom=vn(A,JB,e.paddingBottom),this.paddingLeft=vn(A,YB,e.paddingLeft),this.paintOrder=vn(A,In,e.paintOrder),this.position=vn(A,ZB,e.position),this.textAlign=vn(A,WB,e.textAlign),this.textDecorationColor=vn(A,cn,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=vn(A,Qn,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=vn(A,_B,e.textShadow),this.textTransform=vn(A,qB,e.textTransform),this.transform=vn(A,jB,e.transform),this.transformOrigin=vn(A,rn,e.transformOrigin),this.visibility=vn(A,Bn,e.visibility),this.webkitTextStrokeColor=vn(A,yn,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=vn(A,Kn,e.webkitTextStrokeWidth),this.wordBreak=vn(A,nn,e.wordBreak),this.zIndex=vn(A,sn,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return cr(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 Cn(this.display,4)||Cn(this.display,33554432)||Cn(this.display,268435456)||Cn(this.display,536870912)||Cn(this.display,67108864)||Cn(this.display,134217728)},A}(),Ln=function(){function A(A,e){this.content=vn(A,Fn,e.content),this.quotes=vn(A,pn,e.quotes)}return A}(),bn=function(){function A(A,e){this.counterIncrement=vn(A,hn,e.counterIncrement),this.counterReset=vn(A,dn,e.counterReset)}return A}(),vn=function(A,e,t){var r=new Tt,B=null!==t&&"undefined"!==typeof t?t.toString():e.initialValue;r.write(B);var n=new Gt(r.read());switch(e.type){case 2:var s=n.parseComponentValue();return e.parse(A,kt(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 nr.parse(A,n.parseComponentValue());case"color":return ar.parse(A,n.parseComponentValue());case"image":return Xr.parse(A,n.parseComponentValue());case"length":var o=n.parseComponentValue();return Wt(o)?o:qt;case"length-percentage":var i=n.parseComponentValue();return Zt(i)?i:qt;case"time":return on.parse(A,n.parseComponentValue())}break}},Dn="data-html2canvas-debug",xn=function(A){var e=A.getAttribute(Dn);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Mn=function(A,e){var t=xn(A);return 1===t||e===t},Sn=function(){function A(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Mn(e,3),this.styles=new mn(A,window.getComputedStyle(e,null)),bo(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),Mn(e,4)&&(this.flags|=16)}return A}(),Tn=" ",Gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",On="undefined"===typeof Uint8Array?[]:new Uint8Array(256),Vn=0;Vn<Gn.length;Vn++)On[Gn.charCodeAt(Vn)]=Vn;for(var kn=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 a="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(a)?a:new Uint8Array(a);for(e=0;e<o;e+=4)t=On[A.charCodeAt(e)],r=On[A.charCodeAt(e+1)],B=On[A.charCodeAt(e+2)],n=On[A.charCodeAt(e+3)],c[i++]=t<<2|r>>4,c[i++]=(15&r)<<4|B>>2,c[i++]=(3&B)<<6|63&n;return a},Rn=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},Nn=function(A){for(var e=A.length,t=[],r=0;r<e;r+=4)t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r]);return t},Pn=5,Xn=11,Jn=2,Yn=Xn-Pn,Wn=65536>>Pn,Zn=1<<Pn,_n=Zn-1,qn=1024>>Pn,jn=Wn+qn,zn=jn,$n=32,As=zn+$n,es=65536>>Xn,ts=1<<Yn,rs=ts-1,Bs=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},ns=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},ss=function(A,e){var t=kn(A),r=Array.isArray(t)?Nn(t):new Uint32Array(t),B=Array.isArray(t)?Rn(t):new Uint16Array(t),n=24,s=Bs(B,n/2,r[4]/2),o=2===r[5]?Bs(B,(n+r[4])/2):ns(r,Math.ceil((n+r[4])/4));return new os(r[0],r[1],r[2],r[3],s,o)},os=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=this.index[A>>Pn],e=(e<<Jn)+(A&_n),this.data[e];if(A<=65535)return e=this.index[Wn+(A-55296>>Pn)],e=(e<<Jn)+(A&_n),this.data[e];if(A<this.highStart)return e=As-es+(A>>Xn),e=this.index[e],e+=A>>Pn&rs,e=this.index[e],e=(e<<Jn)+(A&_n),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",as="undefined"===typeof Uint8Array?[]:new Uint8Array(256),cs=0;cs<is.length;cs++)as[is.charCodeAt(cs)]=cs;var Qs,ws=1,gs=2,us=3,ls=4,Us=5,Cs=7,Fs=8,hs=9,ds=10,fs=11,ps=12,Hs=13,Es=14,Is=15,ys=function(A){var e=[],t=0,r=A.length;while(t<r){var B=A.charCodeAt(t++);if(B>=55296&&B<=56319&&t<r){var n=A.charCodeAt(t++);56320===(64512&n)?e.push(((1023&B)<<10)+(1023&n)+65536):(e.push(B),t--)}else e.push(B)}return e},Ks=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,A);var t=A.length;if(!t)return"";var r=[],B=-1,n="";while(++B<t){var s=A[B];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},ms=ss(Tn),Ls="×",bs="÷",vs=function(A){return ms.get(A)},Ds=function(A,e,t){var r=t-2,B=e[r],n=e[t-1],s=e[t];if(n===gs&&s===us)return Ls;if(n===gs||n===us||n===ls)return bs;if(s===gs||s===us||s===ls)return bs;if(n===Fs&&-1!==[Fs,hs,fs,ps].indexOf(s))return Ls;if((n===fs||n===hs)&&(s===hs||s===ds))return Ls;if((n===ps||n===ds)&&s===ds)return Ls;if(s===Hs||s===Us)return Ls;if(s===Cs)return Ls;if(n===ws)return Ls;if(n===Hs&&s===Es){while(B===Us)B=e[--r];if(B===Es)return Ls}if(n===Is&&s===Is){var o=0;while(B===Is)o++,B=e[--r];if(o%2===0)return Ls}return bs},xs=function(A){var e=ys(A),t=e.length,r=0,B=0,n=e.map(vs);return{next:function(){if(r>=t)return{done:!0,value:null};var A=Ls;while(r<t&&(A=Ds(e,n,++r))===Ls);if(A!==Ls||r===t){var s=Ks.apply(null,e.slice(B,r));return B=r,{value:s,done:!1}}return{done:!0,value:null}}}},Ms=function(A){var e,t=xs(A),r=[];while(!(e=t.next()).done)e.value&&r.push(e.value.slice());return r},Ss=function(A){var e=123;if(A.createRange){var t=A.createRange();if(t.getBoundingClientRect){var r=A.createElement("boundtest");r.style.height=e+"px",r.style.display="block",A.body.appendChild(r),t.selectNode(r);var B=t.getBoundingClientRect(),n=Math.round(B.height);if(A.body.removeChild(r),n===e)return!0}}return!1},Ts=function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,B=a(r.data).map((function(A){return c(A)})),n=0,s={},o=B.every((function(A,e){t.setStart(r,n),t.setEnd(r,n+A.length);var B=t.getBoundingClientRect();n+=A.length;var o=B.x>s.x||B.y>s.y;return s=B,0===e||o}));return A.body.removeChild(e),o},Gs=function(){return"undefined"!==typeof(new Image).crossOrigin},Os=function(){return"string"===typeof(new XMLHttpRequest).responseType},Vs=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(Je){return!1}return!0},ks=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},Rs=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=Ns(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),Ps(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",ks(B)?Ps(Ns(t,t,0,0,s)):Promise.reject(!1)})).then((function(A){return r.drawImage(A,0,0),ks(r.getImageData(0,0,t,t).data)})).catch((function(){return!1}))},Ns=function(A,e,t,r,B){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",A.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(B),s},Ps=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Xs={get SUPPORT_RANGE_BOUNDS(){var A=Ss(document);return Object.defineProperty(Xs,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Xs.SUPPORT_RANGE_BOUNDS&&Ts(document);return Object.defineProperty(Xs,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Vs(document);return Object.defineProperty(Xs,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?Rs(document):Promise.resolve(!1);return Object.defineProperty(Xs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=Gs();return Object.defineProperty(Xs,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=Os();return Object.defineProperty(Xs,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Xs,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Xs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},Js=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),Ys=function(A,e,t,r){var B=js(e,t),n=[],o=0;return B.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(Xs.SUPPORT_RANGE_BOUNDS){var B=Zs(r,o,e.length).getClientRects();if(B.length>1){var i=_s(e),a=0;i.forEach((function(e){n.push(new Js(e,s.fromDOMRectList(A,Zs(r,a+o,e.length).getClientRects()))),a+=e.length}))}else n.push(new Js(e,s.fromDOMRectList(A,B)))}else{var c=r.splitText(e.length);n.push(new Js(e,Ws(A,r))),r=c}else Xs.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));o+=e.length})),n},Ws=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},Zs=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},_s=function(A){if(Xs.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 Ms(A)},qs=function(A,e){if(Xs.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 $s(A,e)},js=function(A,e){return 0!==e.letterSpacing?_s(A):qs(A,e)},zs=[32,160,4961,65792,65793,4153,4241],$s=function(A,e){var t,r=qA(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),B=[],n=function(){if(t.value){var A=t.value.slice(),e=a(A),r="";e.forEach((function(A){-1===zs.indexOf(A)?r+=c(A):(r.length&&B.push(r),B.push(c(A)),r="")})),r.length&&B.push(r)}};while(!(t=r.next()).done)n();return B},Ao=function(){function A(A,e,t){this.text=eo(e.data,t.textTransform),this.textBounds=Ys(A,this.text,t,e)}return A}(),eo=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(to,ro);case 2:return A.toUpperCase();default:return A}},to=/(^|\s|:|-|\(|\))([a-z])/g,ro=function(A,e,t){return A.length>0?e+t.toUpperCase():A},Bo=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}(Sn),no=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}(Sn),so=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}(Sn),oo=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}(Sn),io=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}(Sn),ao=[{type:15,flags:0,unit:"px",number:3}],co=[{type:16,flags:0,number:50}],Qo=function(A){return A.width>A.height?new s(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new s(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},wo=function(A){var e=A.type===lo?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},go="checkbox",uo="radio",lo="password",Uo=707406591,Co=function(A){function t(e,t){var r=A.call(this,e,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=wo(t),r.type!==go&&r.type!==uo||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Qo(r.bounds)),r.type){case go:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=ao;break;case uo:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=co;break}return r}return e(t,A),t}(Sn),Fo=function(A){function t(e,t){var r=A.call(this,e,t)||this,B=t.options[t.selectedIndex||0];return r.value=B&&B.text||"",r}return e(t,A),t}(Sn),ho=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}(Sn),fo=function(A){function t(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=Io(e,t.contentWindow.document.documentElement);var B=t.contentWindow.document.documentElement?Fr(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):hr.TRANSPARENT,n=t.contentWindow.document.body?Fr(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):hr.TRANSPARENT;r.backgroundColor=cr(B)?cr(n)?r.styles.backgroundColor:n:B}}catch(Je){}return r}return e(t,A),t}(Sn),po=["OL","UL","MENU"],Ho=function(A,e,t,r){for(var B=e.firstChild,n=void 0;B;B=n)if(n=B.nextSibling,mo(B)&&B.data.trim().length>0)t.textNodes.push(new Ao(A,B,t.styles));else if(Lo(B))if(Yo(B)&&B.assignedNodes)B.assignedNodes().forEach((function(e){return Ho(A,e,t,r)}));else{var s=Eo(A,B);s.styles.isVisible()&&(yo(B,s,r)?s.flags|=4:Ko(s.styles)&&(s.flags|=2),-1!==po.indexOf(B.tagName)&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?Ho(A,B.shadowRoot,s,r):Xo(B)||To(B)||Jo(B)||Ho(A,B,s,r))}},Eo=function(A,e){return ko(e)?new Bo(A,e):Oo(e)?new no(A,e):To(e)?new so(A,e):Do(e)?new oo(A,e):xo(e)?new io(A,e):Mo(e)?new Co(A,e):Jo(e)?new Fo(A,e):Xo(e)?new ho(A,e):Ro(e)?new fo(A,e):new Sn(A,e)},Io=function(A,e){var t=Eo(A,e);return t.flags|=4,Ho(A,e,t,t),t},yo=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Go(A)&&t.styles.isTransparent()},Ko=function(A){return A.isPositioned()||A.isFloating()},mo=function(A){return A.nodeType===Node.TEXT_NODE},Lo=function(A){return A.nodeType===Node.ELEMENT_NODE},bo=function(A){return Lo(A)&&"undefined"!==typeof A.style&&!vo(A)},vo=function(A){return"object"===typeof A.className},Do=function(A){return"LI"===A.tagName},xo=function(A){return"OL"===A.tagName},Mo=function(A){return"INPUT"===A.tagName},So=function(A){return"HTML"===A.tagName},To=function(A){return"svg"===A.tagName},Go=function(A){return"BODY"===A.tagName},Oo=function(A){return"CANVAS"===A.tagName},Vo=function(A){return"VIDEO"===A.tagName},ko=function(A){return"IMG"===A.tagName},Ro=function(A){return"IFRAME"===A.tagName},No=function(A){return"STYLE"===A.tagName},Po=function(A){return"SCRIPT"===A.tagName},Xo=function(A){return"TEXTAREA"===A.tagName},Jo=function(A){return"SELECT"===A.tagName},Yo=function(A){return"SLOT"===A.tagName},Wo=function(A){return A.tagName.indexOf("-")>0},Zo=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){var e=this.counters[A];return e||[]},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}(),_o={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"]},qo={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},jo={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},zo={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$o=function(A,e,t,r,B,n){return A<e||A>t?wi(A,B,n.length>0):r.integers.reduce((function(e,t,B){while(A>=t)A-=t,e+=r.values[B];return e}),"")+n},Ai=function(A,e,t,r){var B="";do{t||A--,B=r(A)+B,A/=e}while(A*e>=e);return B},ei=function(A,e,t,r,B){var n=t-e+1;return(A<0?"-":"")+(Ai(Math.abs(A),n,r,(function(A){return c(Math.floor(A%n)+e)}))+B)},ti=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return Ai(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},ri=1,Bi=2,ni=4,si=8,oi=function(A,e,t,r,B,n){if(A<-9999||A>9999)return wi(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 a=s%10;0===a&&Cn(n,ri)&&""!==o?o=e[a]+o:a>1||1===a&&0===i||1===a&&1===i&&Cn(n,Bi)||1===a&&1===i&&Cn(n,ni)&&A>100||1===a&&i>1&&Cn(n,si)?o=e[a]+(i>0?t[i-1]:"")+o:1===a&&i>0&&(o=t[i-1]+o),s=Math.floor(s/10)}return(A<0?r:"")+o},ii="十百千萬",ai="拾佰仟萬",ci="マイナス",Qi="마이너스",wi=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=ei(A,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return ti(A,"〇一二三四五六七八九",B);case 6:return $o(A,1,3999,_o,3,r).toLowerCase();case 7:return $o(A,1,3999,_o,3,r);case 8:return ei(A,945,969,!1,r);case 9:return ei(A,97,122,!1,r);case 10:return ei(A,65,90,!1,r);case 11:return ei(A,1632,1641,!0,r);case 12:case 49:return $o(A,1,9999,qo,3,r);case 35:return $o(A,1,9999,qo,3,r).toLowerCase();case 13:return ei(A,2534,2543,!0,r);case 14:case 30:return ei(A,6112,6121,!0,r);case 15:return ti(A,"子丑寅卯辰巳午未申酉戌亥",B);case 16:return ti(A,"甲乙丙丁戊己庚辛壬癸",B);case 17:case 48:return oi(A,"零一二三四五六七八九",ii,"負",B,Bi|ni|si);case 47:return oi(A,"零壹貳參肆伍陸柒捌玖",ai,"負",B,ri|Bi|ni|si);case 42:return oi(A,"零一二三四五六七八九",ii,"负",B,Bi|ni|si);case 41:return oi(A,"零壹贰叁肆伍陆柒捌玖",ai,"负",B,ri|Bi|ni|si);case 26:return oi(A,"〇一二三四五六七八九","十百千万",ci,B,0);case 25:return oi(A,"零壱弐参四伍六七八九","拾百千万",ci,B,ri|Bi|ni);case 31:return oi(A,"영일이삼사오육칠팔구","십백천만",Qi,n,ri|Bi|ni);case 33:return oi(A,"零一二三四五六七八九","十百千萬",Qi,n,0);case 32:return oi(A,"零壹貳參四五六七八九","拾百千",Qi,n,ri|Bi|ni);case 18:return ei(A,2406,2415,!0,r);case 20:return $o(A,1,19999,zo,3,r);case 21:return ei(A,2790,2799,!0,r);case 22:return ei(A,2662,2671,!0,r);case 22:return $o(A,1,10999,jo,3,r);case 23:return ti(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ti(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ei(A,3302,3311,!0,r);case 28:return ti(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",B);case 29:return ti(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",B);case 34:return ei(A,3792,3801,!0,r);case 37:return ei(A,6160,6169,!0,r);case 38:return ei(A,4160,4169,!0,r);case 39:return ei(A,2918,2927,!0,r);case 40:return ei(A,1776,1785,!0,r);case 43:return ei(A,3046,3055,!0,r);case 44:return ei(A,3174,3183,!0,r);case 45:return ei(A,3664,3673,!0,r);case 46:return ei(A,3872,3881,!0,r);case 3:default:return ei(A,48,57,!0,r)}},gi="data-html2canvas-ignore",ui=function(){function A(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Zo,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=Ui(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,a=i.document,c=hi(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(Ei),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,t=this.clonedReferenceElement,"undefined"===typeof t?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Fi(a)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"===typeof A?[2,Promise.resolve().then((function(){return A(a,t)})).then((function(){return n}))]:[2,n]}}))}))}));return a.open(),a.write(pi(document.doctype)+"<html></html>"),Hi(this.referenceElement.ownerDocument,s,o),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),c},A.prototype.createElementClone=function(A){if(Mn(A,2),Oo(A))return this.createCanvasClone(A);if(Vo(A))return this.createVideoClone(A);if(No(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return ko(e)&&(ko(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Wo(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return fi(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(Je){if(this.context.logger.error("Unable to access cssRules property",Je),"SecurityError"!==Je.name)throw Je}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(Je){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?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(Je){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(Je){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){Lo(e)&&(Po(e)||e.hasAttribute(gi)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Lo(e)&&No(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(Lo(B)&&Yo(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(mo(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Lo(A)&&(bo(A)||vo(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&&bo(r)&&(this.clonedReferenceElement=r),Go(r)&&bi(r);var o=this.counters.parse(new bn(this.context,B)),i=this.resolvePseudoContent(A,r,n,Qs.BEFORE);Wo(A)&&(e=!0),Vo(A)||this.cloneChildNodes(A,r,e),i&&r.insertBefore(i,r.firstChild);var a=this.resolvePseudoContent(A,r,s,Qs.AFTER);return a&&r.appendChild(a),this.counters.pop(o),(B&&(this.options.copyStyles||vo(A))&&!Ro(A)||e)&&fi(B,r),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([r,A.scrollLeft,A.scrollTop]),(Xo(A)||Jo(A))&&(Xo(r)||Jo(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 bn(this.context,t));var o=new Ln(this.context,t),i=s.createElement("html2canvaspseudoelement");fi(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(kt);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var n=e.values.filter(Xt),a=n[0],c=n[1];if(a&&kt(a)){var Q=B.counters.getCounterValue(a.value),w=c&&kt(c)?MB.parse(B.context,c.value):3;i.appendChild(s.createTextNode(wi(Q,w,!1)))}}else if("counters"===e.name){var g=e.values.filter(Xt),u=(a=g[0],g[1]);c=g[2];if(a&&kt(a)){var l=B.counters.getCounterValues(a.value),U=c&&kt(c)?MB.parse(B.context,c.value):3,C=u&&0===u.type?u.value:"",F=l.map((function(A){return wi(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(Hn(o.quotes,B.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(Hn(o.quotes,--B.quoteDepth,!1)));break;default:i.appendChild(s.createTextNode(e.value))}})),i.className=Ki+" "+mi;var a=r===Qs.BEFORE?" "+Ki:" "+mi;return vo(e)?e.className.baseValue+=a:e.className+=a,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"})(Qs||(Qs={}));var li,Ui=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(gi,"true"),A.body.appendChild(t),t},Ci=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},Fi=function(A){return Promise.all([].slice.call(A.images,0).map(Ci))},hi=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)}}))},di=["all","d","content"],fi=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===di.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e},pi=function(A){var e="";return A&&(e+="<!DOCTYPE ",A.name&&(e+=A.name),A.internalSubset&&(e+=A.internalSubset),A.publicId&&(e+='"'+A.publicId+'"'),A.systemId&&(e+='"'+A.systemId+'"'),e+=">"),e},Hi=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Ei=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},Ii=":before",yi=":after",Ki="___html2canvas___pseudoelement_before",mi="___html2canvas___pseudoelement_after",Li='{\n    content: "" !important;\n    display: none !important;\n}',bi=function(A){vi(A,"."+Ki+Ii+Li+"\n         ."+mi+yi+Li)},vi=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},Di=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}(),xi=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:ki(A)||Gi(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=Di.isSameOrigin(A),t=!Oi(A)&&!0===this._options.useCORS&&Xs.SUPPORT_CORS_IMAGES&&!e,r=!Oi(A)&&!e&&!ki(A)&&"string"===typeof this._options.proxy&&Xs.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Oi(A)||ki(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,(Vi(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"undefined"!==typeof 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=Xs.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 a=e._options.imageTimeout;o.timeout=a,o.ontimeout=function(){return n("Timed out ("+a+"ms) proxying "+r)}}o.send()}))},A}(),Mi=/^data:image\/svg\+xml/i,Si=/^data:image\/.*;base64,/i,Ti=/^data:image\/.*/i,Gi=function(A){return Xs.SUPPORT_SVG_DRAWING||!Ri(A)},Oi=function(A){return Ti.test(A)},Vi=function(A){return Si.test(A)},ki=function(A){return"blob"===A.substr(0,4)},Ri=function(A){return"svg"===A.substr(-3).toLowerCase()||Mi.test(A)},Ni=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}(),Pi=function(A,e,t){return new Ni(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Xi=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=Pi(this.start,this.startControl,e),B=Pi(this.startControl,this.endControl,e),n=Pi(this.endControl,this.end,e),s=Pi(r,B,e),o=Pi(B,n,e),i=Pi(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}(),Ji=function(A){return 1===A.type},Yi=function(){function A(A){var e=A.styles,t=A.bounds,r=$t(e.borderTopLeftRadius,t.width,t.height),B=r[0],n=r[1],s=$t(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],a=$t(e.borderBottomRightRadius,t.width,t.height),c=a[0],Q=a[1],w=$t(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+Q)/t.height);var U=Math.max.apply(Math,l);U>1&&(B/=U,n/=U,o/=U,i/=U,c/=U,Q/=U,g/=U,u/=U);var C=t.width-o,F=t.height-Q,h=t.width-c,d=t.height-u,f=e.borderTopWidth,p=e.borderRightWidth,H=e.borderBottomWidth,E=e.borderLeftWidth,I=Ar(e.paddingTop,A.bounds.width),y=Ar(e.paddingRight,A.bounds.width),K=Ar(e.paddingBottom,A.bounds.width),m=Ar(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||n>0?Wi(t.left+E/3,t.top+f/3,B-E/3,n-f/3,li.TOP_LEFT):new Ni(t.left+E/3,t.top+f/3),this.topRightBorderDoubleOuterBox=B>0||n>0?Wi(t.left+C,t.top+f/3,o-p/3,i-f/3,li.TOP_RIGHT):new Ni(t.left+t.width-p/3,t.top+f/3),this.bottomRightBorderDoubleOuterBox=c>0||Q>0?Wi(t.left+h,t.top+F,c-p/3,Q-H/3,li.BOTTOM_RIGHT):new Ni(t.left+t.width-p/3,t.top+t.height-H/3),this.bottomLeftBorderDoubleOuterBox=g>0||u>0?Wi(t.left+E/3,t.top+d,g-E/3,u-H/3,li.BOTTOM_LEFT):new Ni(t.left+E/3,t.top+t.height-H/3),this.topLeftBorderDoubleInnerBox=B>0||n>0?Wi(t.left+2*E/3,t.top+2*f/3,B-2*E/3,n-2*f/3,li.TOP_LEFT):new Ni(t.left+2*E/3,t.top+2*f/3),this.topRightBorderDoubleInnerBox=B>0||n>0?Wi(t.left+C,t.top+2*f/3,o-2*p/3,i-2*f/3,li.TOP_RIGHT):new Ni(t.left+t.width-2*p/3,t.top+2*f/3),this.bottomRightBorderDoubleInnerBox=c>0||Q>0?Wi(t.left+h,t.top+F,c-2*p/3,Q-2*H/3,li.BOTTOM_RIGHT):new Ni(t.left+t.width-2*p/3,t.top+t.height-2*H/3),this.bottomLeftBorderDoubleInnerBox=g>0||u>0?Wi(t.left+2*E/3,t.top+d,g-2*E/3,u-2*H/3,li.BOTTOM_LEFT):new Ni(t.left+2*E/3,t.top+t.height-2*H/3),this.topLeftBorderStroke=B>0||n>0?Wi(t.left+E/2,t.top+f/2,B-E/2,n-f/2,li.TOP_LEFT):new Ni(t.left+E/2,t.top+f/2),this.topRightBorderStroke=B>0||n>0?Wi(t.left+C,t.top+f/2,o-p/2,i-f/2,li.TOP_RIGHT):new Ni(t.left+t.width-p/2,t.top+f/2),this.bottomRightBorderStroke=c>0||Q>0?Wi(t.left+h,t.top+F,c-p/2,Q-H/2,li.BOTTOM_RIGHT):new Ni(t.left+t.width-p/2,t.top+t.height-H/2),this.bottomLeftBorderStroke=g>0||u>0?Wi(t.left+E/2,t.top+d,g-E/2,u-H/2,li.BOTTOM_LEFT):new Ni(t.left+E/2,t.top+t.height-H/2),this.topLeftBorderBox=B>0||n>0?Wi(t.left,t.top,B,n,li.TOP_LEFT):new Ni(t.left,t.top),this.topRightBorderBox=o>0||i>0?Wi(t.left+C,t.top,o,i,li.TOP_RIGHT):new Ni(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||Q>0?Wi(t.left+h,t.top+F,c,Q,li.BOTTOM_RIGHT):new Ni(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||u>0?Wi(t.left,t.top+d,g,u,li.BOTTOM_LEFT):new Ni(t.left,t.top+t.height),this.topLeftPaddingBox=B>0||n>0?Wi(t.left+E,t.top+f,Math.max(0,B-E),Math.max(0,n-f),li.TOP_LEFT):new Ni(t.left+E,t.top+f),this.topRightPaddingBox=o>0||i>0?Wi(t.left+Math.min(C,t.width-p),t.top+f,C>t.width+p?0:Math.max(0,o-p),Math.max(0,i-f),li.TOP_RIGHT):new Ni(t.left+t.width-p,t.top+f),this.bottomRightPaddingBox=c>0||Q>0?Wi(t.left+Math.min(h,t.width-E),t.top+Math.min(F,t.height-H),Math.max(0,c-p),Math.max(0,Q-H),li.BOTTOM_RIGHT):new Ni(t.left+t.width-p,t.top+t.height-H),this.bottomLeftPaddingBox=g>0||u>0?Wi(t.left+E,t.top+Math.min(d,t.height-H),Math.max(0,g-E),Math.max(0,u-H),li.BOTTOM_LEFT):new Ni(t.left+E,t.top+t.height-H),this.topLeftContentBox=B>0||n>0?Wi(t.left+E+m,t.top+f+I,Math.max(0,B-(E+m)),Math.max(0,n-(f+I)),li.TOP_LEFT):new Ni(t.left+E+m,t.top+f+I),this.topRightContentBox=o>0||i>0?Wi(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),li.TOP_RIGHT):new Ni(t.left+t.width-(p+y),t.top+f+I),this.bottomRightContentBox=c>0||Q>0?Wi(t.left+Math.min(h,t.width-(E+m)),t.top+Math.min(F,t.height+f+I),Math.max(0,c-(p+y)),Q-(H+K),li.BOTTOM_RIGHT):new Ni(t.left+t.width-(p+y),t.top+t.height-(H+K)),this.bottomLeftContentBox=g>0||u>0?Wi(t.left+E+m,t.top+d,Math.max(0,g-(E+m)),u-(H+K),li.BOTTOM_LEFT):new Ni(t.left+E+m,t.top+t.height-(H+K))}return A}();(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"})(li||(li={}));var Wi=function(A,e,t,r,B){var n=(Math.sqrt(2)-1)/3*4,s=t*n,o=r*n,i=A+t,a=e+r;switch(B){case li.TOP_LEFT:return new Xi(new Ni(A,a),new Ni(A,a-o),new Ni(i-s,e),new Ni(i,e));case li.TOP_RIGHT:return new Xi(new Ni(A,e),new Ni(A+s,e),new Ni(i,a-o),new Ni(i,a));case li.BOTTOM_RIGHT:return new Xi(new Ni(i,e),new Ni(i,e+o),new Ni(A+s,a),new Ni(A,a));case li.BOTTOM_LEFT:default:return new Xi(new Ni(i,a),new Ni(i-s,a),new Ni(A,e+o),new Ni(A,e))}},Zi=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},_i=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},qi=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},ji=function(){function A(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return A}(),zi=function(){function A(A,e){this.path=A,this.target=e,this.type=1}return A}(),$i=function(){function A(A){this.opacity=A,this.type=2,this.target=6}return A}(),Aa=function(A){return 0===A.type},ea=function(A){return 1===A.type},ta=function(A){return 2===A.type},ra=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))},Ba=function(A,e,t,r,B){return A.map((function(A,n){switch(n){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+B);case 3:return A.add(e,t+B)}return A}))},na=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),sa=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new Yi(this.container),this.container.styles.opacity<1&&this.effects.push(new $i(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 ji(t,r,B))}if(0!==this.container.styles.overflowX){var n=Zi(this.curves),s=qi(this.curves);ra(n,s)?this.effects.push(new zi(n,6)):(this.effects.push(new zi(n,2)),this.effects.push(new zi(s,4)))}}return A.prototype.getEffects=function(A){var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,r=this.effects.slice(0);while(t){var B=t.effects.filter((function(A){return!ea(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=Zi(t.curves),s=qi(t.curves);ra(n,s)||r.unshift(new zi(s,6))}}else r.unshift.apply(r,B);t=t.parent}return r.filter((function(e){return Cn(e.target,A)}))},A}(),oa=function(A,e,t,r){A.container.elements.forEach((function(B){var n=Cn(B.flags,4),s=Cn(B.flags,2),o=new sa(B,A);Cn(B.styles.display,2048)&&r.push(o);var i=Cn(B.flags,8)?[]:r;if(n||s){var a=n||B.styles.isPositioned()?t:e,c=new na(o);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var Q=B.styles.zIndex.order;if(Q<0){var w=0;a.negativeZIndex.some((function(A,e){return Q>A.element.container.styles.zIndex.order?(w=e,!1):w>0})),a.negativeZIndex.splice(w,0,c)}else if(Q>0){var g=0;a.positiveZIndex.some((function(A,e){return Q>=A.element.container.styles.zIndex.order?(g=e+1,!1):g>0})),a.positiveZIndex.splice(g,0,c)}else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else B.styles.isFloating()?a.nonPositionedFloats.push(c):a.nonPositionedInlineLevel.push(c);oa(o,c,n?c:t,i)}else B.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),oa(o,e,t,i);Cn(B.flags,8)&&ia(B,i)}))},ia=function(A,e){for(var t=A instanceof io?A.start:1,r=A instanceof io&&A.reversed,B=0;B<e.length;B++){var n=e[B];n.container instanceof oo&&"number"===typeof n.container.value&&0!==n.container.value&&(t=n.container.value),n.listValue=wi(t,n.container.styles.listStyleType,!0),t+=r?-1:1}},aa=function(A){var e=new sa(A,null),t=new na(e),r=[];return oa(e,t,t,r),ia(e.container,r),t},ca=function(A,e){switch(e){case 0:return la(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return la(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return la(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return la(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},Qa=function(A,e){switch(e){case 0:return la(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return la(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return la(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);case 3:default:return la(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}},wa=function(A,e){switch(e){case 0:return la(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return la(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return la(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);case 3:default:return la(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}},ga=function(A,e){switch(e){case 0:return ua(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return ua(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return ua(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);case 3:default:return ua(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}},ua=function(A,e){var t=[];return Ji(A)?t.push(A.subdivide(.5,!1)):t.push(A),Ji(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},la=function(A,e,t,r){var B=[];return Ji(A)?B.push(A.subdivide(.5,!1)):B.push(A),Ji(t)?B.push(t.subdivide(.5,!0)):B.push(t),Ji(r)?B.push(r.subdivide(.5,!0).reverse()):B.push(r),Ji(e)?B.push(e.subdivide(.5,!1).reverse()):B.push(e),B},Ua=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Ca=function(A){var e=A.styles,t=A.bounds,r=Ar(e.paddingLeft,t.width),B=Ar(e.paddingRight,t.width),n=Ar(e.paddingTop,t.width),s=Ar(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,n+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+B),-(e.borderTopWidth+e.borderBottomWidth+n+s))},Fa=function(A,e){return 0===A?e.bounds:2===A?Ca(e):Ua(e)},ha=function(A,e){return 0===A?e.bounds:2===A?Ca(e):Ua(e)},da=function(A,e,t){var r=Fa(Ea(A.styles.backgroundOrigin,e),A),B=ha(Ea(A.styles.backgroundClip,e),A),n=Ha(Ea(A.styles.backgroundSize,e),t,r),s=n[0],o=n[1],i=$t(Ea(A.styles.backgroundPosition,e),r.width-s,r.height-o),a=Ia(Ea(A.styles.backgroundRepeat,e),i,n,r,B),c=Math.round(r.left+i[0]),Q=Math.round(r.top+i[1]);return[a,c,Q,s,o]},fa=function(A){return kt(A)&&A.value===Yr.AUTO},pa=function(A){return"number"===typeof A},Ha=function(A,e,t){var r=e[0],B=e[1],n=e[2],s=A[0],o=A[1];if(!s)return[0,0];if(Zt(s)&&o&&Zt(o))return[Ar(s,t.width),Ar(o,t.height)];var i=pa(n);if(kt(s)&&(s.value===Yr.CONTAIN||s.value===Yr.COVER)){if(pa(n)){var a=t.width/t.height;return a<n!==(s.value===Yr.COVER)?[t.width,t.width/n]:[t.height*n,t.height]}return[t.width,t.height]}var c=pa(r),Q=pa(B),w=c||Q;if(fa(s)&&(!o||fa(o))){if(c&&Q)return[r,B];if(!i&&!w)return[t.width,t.height];if(w&&i){var g=c?r:B*n,u=Q?B:r/n;return[g,u]}var l=c?r:t.width,U=Q?B:t.height;return[l,U]}if(i){var C=0,F=0;return Zt(s)?C=Ar(s,t.width):Zt(o)&&(F=Ar(o,t.height)),fa(s)?C=F*n:o&&!fa(o)||(F=C/n),[C,F]}var h=null,d=null;if(Zt(s)?h=Ar(s,t.width):o&&Zt(o)&&(d=Ar(o,t.height)),null===h||o&&!fa(o)||(d=c&&Q?h/r*B:t.height),null!==d&&fa(s)&&(h=c&&Q?d/B*r:t.width),null!==h&&null!==d)return[h,d];throw new Error("Unable to calculate background-size for element")},Ea=function(A,e){var t=A[e];return"undefined"===typeof t?A[0]:t},Ia=function(A,e,t,r,B){var n=e[0],s=e[1],o=t[0],i=t[1];switch(A){case 2:return[new Ni(Math.round(r.left),Math.round(r.top+s)),new Ni(Math.round(r.left+r.width),Math.round(r.top+s)),new Ni(Math.round(r.left+r.width),Math.round(i+r.top+s)),new Ni(Math.round(r.left),Math.round(i+r.top+s))];case 3:return[new Ni(Math.round(r.left+n),Math.round(r.top)),new Ni(Math.round(r.left+n+o),Math.round(r.top)),new Ni(Math.round(r.left+n+o),Math.round(r.height+r.top)),new Ni(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new Ni(Math.round(r.left+n),Math.round(r.top+s)),new Ni(Math.round(r.left+n+o),Math.round(r.top+s)),new Ni(Math.round(r.left+n+o),Math.round(r.top+s+i)),new Ni(Math.round(r.left+n),Math.round(r.top+s+i))];default:return[new Ni(Math.round(B.left),Math.round(B.top)),new Ni(Math.round(B.left+B.width),Math.round(B.top)),new Ni(Math.round(B.left+B.width),Math.round(B.height+B.top)),new Ni(Math.round(B.left),Math.round(B.height+B.top))]}},ya="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ka="Hidden Text",ma=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),r=this._document.createElement("img"),B=this._document.createElement("span"),n=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",n.appendChild(t),r.src=ya,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",B.style.fontFamily=A,B.style.fontSize=e,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(Ka)),t.appendChild(B),t.appendChild(r);var s=r.offsetTop-B.offsetTop+2;t.removeChild(B),t.appendChild(this._document.createTextNode(Ka)),t.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-t.offsetTop+2;return n.removeChild(t),{baseline:s,middle:o}},A.prototype.getMetrics=function(A,e){var t=A+" "+e;return"undefined"===typeof this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}(),La=function(){function A(A,e){this.context=A,this.options=e}return A}(),ba=1e4,va=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r._activeEffects=[],r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),t.canvas||(r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px"),r.fontMetrics=new ma(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),r}return e(t,A),t.prototype.applyEffects=function(A){var e=this;while(this._activeEffects.length)this.popEffect();A.forEach((function(A){return e.applyEffect(A)}))},t.prototype.applyEffect=function(A){this.ctx.save(),ta(A)&&(this.ctx.globalAlpha=A.opacity),Aa(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),ea(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return r(this,void 0,void 0,(function(){var e;return B(this,(function(t){switch(t.label){case 0:return e=A.element.container.styles,e.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(A){return r(this,void 0,void 0,(function(){return B(this,(function(e){switch(e.label){case 0:return Cn(A.container.flags,16),A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(A)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(A,e,t){var r=this;if(0===e)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+t);else{var B=_s(A.text);B.reduce((function(e,B){return r.ctx.fillText(B,e,A.bounds.top+t),e+r.ctx.measureText(B).width}),A.bounds.left)}},t.prototype.createFontStyle=function(A){var e=A.fontVariant.filter((function(A){return"normal"===A||"small-caps"===A})).join(""),t=Ta(A.fontFamily).join(", "),r=Ot(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},t.prototype.renderTextNode=function(A,e){return r(this,void 0,void 0,(function(){var t,r,n,s,o,i,a,c,Q=this;return B(this,(function(B){return t=this.createFontStyle(e),r=t[0],n=t[1],s=t[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(n,s),i=o.baseline,a=o.middle,c=e.paintOrder,A.textBounds.forEach((function(A){c.forEach((function(t){switch(t){case 0:Q.ctx.fillStyle=Qr(e.color),Q.renderTextWithLetterSpacing(A,e.letterSpacing,i);var r=e.textShadow;r.length&&A.text.trim().length&&(r.slice(0).reverse().forEach((function(t){Q.ctx.shadowColor=Qr(t.color),Q.ctx.shadowOffsetX=t.offsetX.number*Q.options.scale,Q.ctx.shadowOffsetY=t.offsetY.number*Q.options.scale,Q.ctx.shadowBlur=t.blur.number,Q.renderTextWithLetterSpacing(A,e.letterSpacing,i)})),Q.ctx.shadowColor="",Q.ctx.shadowOffsetX=0,Q.ctx.shadowOffsetY=0,Q.ctx.shadowBlur=0),e.textDecorationLine.length&&(Q.ctx.fillStyle=Qr(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:Q.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+i),A.bounds.width,1);break;case 2:Q.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:Q.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+a),A.bounds.width,1);break}})));break;case 1:e.webkitTextStrokeWidth&&A.text.trim().length&&(Q.ctx.strokeStyle=Qr(e.webkitTextStrokeColor),Q.ctx.lineWidth=e.webkitTextStrokeWidth,Q.ctx.lineJoin=window.chrome?"miter":"round",Q.ctx.strokeText(A.text,A.bounds.left,A.bounds.top+i)),Q.ctx.strokeStyle="",Q.ctx.lineWidth=0,Q.ctx.lineJoin="miter";break}}))})),[2]}))}))},t.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=Ca(A),B=qi(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,a,c,Q,w,g,u,l,U,C,F,h,d,f,p;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 o<i.length?(a=i[o],[4,this.renderTextNode(a,n)]):[3,4];case 2:B.sent(),B.label=3;case 3:return o++,[3,1];case 4:if(!(e instanceof Bo))return[3,8];B.label=5;case 5:return B.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return h=B.sent(),this.renderReplacedElement(e,r,h),[3,8];case 7:return B.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof no&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof so))return[3,12];B.label=9;case 9:return B.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return h=B.sent(),this.renderReplacedElement(e,r,h),[3,12];case 11:return B.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof fo&&e.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),[4,c.render(e.tree)]):[3,14];case 13:Q=B.sent(),e.width&&e.height&&this.ctx.drawImage(Q,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),B.label=14;case 14:if(e instanceof Co&&(w=Math.min(e.bounds.width,e.bounds.height),e.type===go?e.checked&&(this.ctx.save(),this.path([new Ni(e.bounds.left+.39363*w,e.bounds.top+.79*w),new Ni(e.bounds.left+.16*w,e.bounds.top+.5549*w),new Ni(e.bounds.left+.27347*w,e.bounds.top+.44071*w),new Ni(e.bounds.left+.39694*w,e.bounds.top+.5649*w),new Ni(e.bounds.left+.72983*w,e.bounds.top+.23*w),new Ni(e.bounds.left+.84*w,e.bounds.top+.34085*w),new Ni(e.bounds.left+.39363*w,e.bounds.top+.79*w)]),this.ctx.fillStyle=Qr(Uo),this.ctx.fill(),this.ctx.restore()):e.type===uo&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+w/2,e.bounds.top+w/2,w/4,0,2*Math.PI,!0),this.ctx.fillStyle=Qr(Uo),this.ctx.fill(),this.ctx.restore())),Da(e)&&e.value.length){switch(g=this.createFontStyle(n),f=g[0],u=g[1],l=this.fontMetrics.getMetrics(f,u).baseline,this.ctx.font=f,this.ctx.fillStyle=Qr(n.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ma(e.styles.textAlign),p=Ca(e),U=0,e.styles.textAlign){case 1:U+=p.width/2;break;case 2:U+=p.width;break}C=p.add(U,0,0,-p.height/2+1),this.ctx.save(),this.path([new Ni(p.left,p.top),new Ni(p.left+p.width,p.top),new Ni(p.left+p.width,p.top+p.height),new Ni(p.left,p.top+p.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Js(e.value,C),n.letterSpacing,l),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Cn(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(F=e.styles.listStyleImage,0!==F.type)return[3,18];h=void 0,d=F.url,B.label=15;case 15:return B.trys.push([15,17,,18]),[4,this.context.cache.match(d)];case 16:return h=B.sent(),this.ctx.drawImage(h,e.bounds.left-(h.width+10),e.bounds.top),[3,18];case 17:return B.sent(),this.context.logger.error("Error loading list-style-image "+d),[3,18];case 18:return[3,20];case 19:A.listValue&&-1!==e.styles.listStyleType&&(f=this.createFontStyle(n)[0],this.ctx.font=f,this.ctx.fillStyle=Qr(n.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",p=new s(e.bounds.left,e.bounds.top+Ar(e.styles.paddingTop,e.bounds.width),e.bounds.width,vB(n.lineHeight,n.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Js(A.listValue,p),n.letterSpacing,vB(n.lineHeight,n.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),B.label=20;case 20:return[2]}}))}))},t.prototype.renderStackContent=function(A){return r(this,void 0,void 0,(function(){var e,t,r,n,s,o,i,a,c,Q,w,g,u,l,U;return B(this,(function(B){switch(B.label){case 0:return Cn(A.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:B.sent(),e=0,t=A.negativeZIndex,B.label=2;case 2:return e<t.length?(U=t[e],[4,this.renderStack(U)]):[3,5];case 3:B.sent(),B.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:B.sent(),r=0,n=A.nonInlineLevel,B.label=7;case 7:return r<n.length?(U=n[r],[4,this.renderNode(U)]):[3,10];case 8:B.sent(),B.label=9;case 9:return r++,[3,7];case 10:s=0,o=A.nonPositionedFloats,B.label=11;case 11:return s<o.length?(U=o[s],[4,this.renderStack(U)]):[3,14];case 12:B.sent(),B.label=13;case 13:return s++,[3,11];case 14:i=0,a=A.nonPositionedInlineLevel,B.label=15;case 15:return i<a.length?(U=a[i],[4,this.renderStack(U)]):[3,18];case 16:B.sent(),B.label=17;case 17:return i++,[3,15];case 18:c=0,Q=A.inlineLevel,B.label=19;case 19:return c<Q.length?(U=Q[c],[4,this.renderNode(U)]):[3,22];case 20:B.sent(),B.label=21;case 21:return c++,[3,19];case 22:w=0,g=A.zeroOrAutoZIndexOrTransformedOrOpacity,B.label=23;case 23:return w<g.length?(U=g[w],[4,this.renderStack(U)]):[3,26];case 24:B.sent(),B.label=25;case 25:return w++,[3,23];case 26:u=0,l=A.positiveZIndex,B.label=27;case 27:return u<l.length?(U=l[u],[4,this.renderStack(U)]):[3,30];case 28:B.sent(),B.label=29;case 29:return u++,[3,27];case 30:return[2]}}))}))},t.prototype.mask=function(A){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var e=this;A.forEach((function(A,t){var r=Ji(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),Ji(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}))},t.prototype.renderRepeat=function(A,e,t,r){this.path(A),this.ctx.fillStyle=e,this.ctx.translate(t,r),this.ctx.fill(),this.ctx.translate(-t,-r)},t.prototype.resizeImage=function(A,e,t){var r;if(A.width===e&&A.height===t)return A;var B=null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document,n=B.createElement("canvas");n.width=Math.max(1,e),n.height=Math.max(1,t);var s=n.getContext("2d");return s.drawImage(A,0,0,A.width,A.height,0,0,e,t),n},t.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,(function(){var e,t,r,n,s,o;return B(this,(function(i){switch(i.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var n,s,o,i,a,c,Q,w,g,u,l,U,C,F,h,d,f,p,H,E,I,y,K,m,L,b,v,D,x,M,S;return B(this,(function(B){switch(B.label){case 0:if(0!==t.type)return[3,5];n=void 0,s=t.url,B.label=1;case 1:return B.trys.push([1,3,,4]),[4,r.context.cache.match(s)];case 2:return n=B.sent(),[3,4];case 3:return B.sent(),r.context.logger.error("Error loading background-image "+s),[3,4];case 4:return n&&(o=da(A,e,[n.width,n.height,n.width/n.height]),d=o[0],y=o[1],K=o[2],H=o[3],E=o[4],F=r.ctx.createPattern(r.resizeImage(n,H,E),"repeat"),r.renderRepeat(d,F,y,K)),[3,6];case 5:Nr(t)?(i=da(A,e,[null,null,null]),d=i[0],y=i[1],K=i[2],H=i[3],E=i[4],a=Ir(t.angle,H,E),c=a[0],Q=a[1],w=a[2],g=a[3],u=a[4],l=document.createElement("canvas"),l.width=H,l.height=E,U=l.getContext("2d"),C=U.createLinearGradient(Q,g,w,u),Hr(t.stops,c).forEach((function(A){return C.addColorStop(A.stop,Qr(A.color))})),U.fillStyle=C,U.fillRect(0,0,H,E),H>0&&E>0&&(F=r.ctx.createPattern(l,"repeat"),r.renderRepeat(d,F,y,K))):Pr(t)&&(h=da(A,e,[null,null,null]),d=h[0],f=h[1],p=h[2],H=h[3],E=h[4],I=0===t.position.length?[jt]:t.position,y=Ar(I[0],H),K=Ar(I[I.length-1],E),m=mr(t,y,K,H,E),L=m[0],b=m[1],L>0&&b>0&&(v=r.ctx.createRadialGradient(f+y,p+K,0,f+y,p+K,L),Hr(t.stops,2*L).forEach((function(A){return v.addColorStop(A.stop,Qr(A.color))})),r.path(d),r.ctx.fillStyle=v,L!==b?(D=A.bounds.left+.5*A.bounds.width,x=A.bounds.top+.5*A.bounds.height,M=b/L,S=1/M,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*(p-x)+x,H,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 n<s.length?(o=s[n],[5,t(o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},t.prototype.renderSolidBorder=function(A,e,t){return r(this,void 0,void 0,(function(){return B(this,(function(r){return this.path(ca(t,e)),this.ctx.fillStyle=Qr(A),this.ctx.fill(),[2]}))}))},t.prototype.renderDoubleBorder=function(A,e,t,n){return r(this,void 0,void 0,(function(){var r,s;return B(this,(function(B){switch(B.label){case 0:return e<3?[4,this.renderSolidBorder(A,t,n)]:[3,2];case 1:return B.sent(),[2];case 2:return r=Qa(n,t),this.path(r),this.ctx.fillStyle=Qr(A),this.ctx.fill(),s=wa(n,t),this.path(s),this.ctx.fill(),[2]}}))}))},t.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,(function(){var e,t,r,n,s,o,i,a,c=this;return B(this,(function(B){switch(B.label){case 0:return this.applyEffects(A.getEffects(2)),e=A.container.styles,t=!cr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],n=xa(Ea(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(n),this.ctx.clip(),cr(e.backgroundColor)||(this.ctx.fillStyle=Qr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:B.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var t=Zi(A.curves),r=e.inset?0:ba,B=Ba(t,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(c.path(t),c.ctx.clip(),c.mask(B)):(c.mask(t),c.ctx.clip(),c.path(B)),c.ctx.shadowOffsetX=e.offsetX.number+r,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=Qr(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?Qr(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),B.label=2;case 2:s=0,o=0,i=r,B.label=3;case 3:return o<i.length?(a=i[o],0!==a.style&&!cr(a.color)&&a.width>0?2!==a.style?[3,5]:[4,this.renderDashedDottedBorder(a.color,a.width,s,A.curves,2)]:[3,11]):[3,13];case 4:return B.sent(),[3,11];case 5:return 3!==a.style?[3,7]:[4,this.renderDashedDottedBorder(a.color,a.width,s,A.curves,3)];case 6:return B.sent(),[3,11];case 7:return 4!==a.style?[3,9]:[4,this.renderDoubleBorder(a.color,a.width,s,A.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(a.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,a,c,Q,w,g,u,l,U,C,F,h,d,f;return B(this,(function(B){return this.ctx.save(),r=ga(n,t),o=ca(n,t),2===s&&(this.path(o),this.ctx.clip()),Ji(o[0])?(i=o[0].start.x,a=o[0].start.y):(i=o[0].x,a=o[0].y),Ji(o[1])?(c=o[1].end.x,Q=o[1].end.y):(c=o[1].x,Q=o[1].y),w=0===t||2===t?Math.abs(i-c):Math.abs(a-Q),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?(U=w/(2*g+u),g*=U,u*=U):(C=Math.floor((w+u)/(g+u)),F=(w-C*g)/(C-1),h=(w-(C+1)*g)/C,u=h<=0||Math.abs(u-F)<Math.abs(u-h)?F:h),l&&(3===s?this.ctx.setLineDash([0,g+u]):this.ctx.setLineDash([g,u])),3===s?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=Qr(A),this.ctx.stroke(),this.ctx.setLineDash([]),2===s&&(Ji(o[0])&&(d=o[3],f=o[0],this.ctx.beginPath(),this.formatPath([new Ni(d.end.x,d.end.y),new Ni(f.start.x,f.start.y)]),this.ctx.stroke()),Ji(o[1])&&(d=o[1],f=o[2],this.ctx.beginPath(),this.formatPath([new Ni(d.end.x,d.end.y),new Ni(f.start.x,f.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},t.prototype.render=function(A){return r(this,void 0,void 0,(function(){var e;return B(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Qr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=aa(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},t}(La),Da=function(A){return A instanceof ho||(A instanceof Fo||A instanceof Co&&A.type!==uo&&A.type!==go)},xa=function(A,e){switch(A){case 0:return Zi(e);case 2:return _i(e);case 1:default:return qi(e)}},Ma=function(A){switch(A){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Sa=["-apple-system","system-ui"],Ta=function(A){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?A.filter((function(A){return-1===Sa.indexOf(A)})):A},Ga=function(A){function t(e,t){var r=A.call(this,e,t)||this;return r.canvas=t.canvas?t.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=t,r.canvas.width=Math.floor(t.width*t.scale),r.canvas.height=Math.floor(t.height*t.scale),r.canvas.style.width=t.width+"px",r.canvas.style.height=t.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-t.x,-t.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),r}return e(t,A),t.prototype.render=function(A){return r(this,void 0,void 0,(function(){var e,t;return B(this,(function(r){switch(r.label){case 0:return e=Ns(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,Oa(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Qr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(t,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},t}(La),Oa=function(A){return new Promise((function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(A))}))},Va=function(){function A(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,n([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.getTime=function(){return Date.now()-this.start},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,n([this.id,this.getTime()+"ms"],A))},A.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,n([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,n([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},A.instances={},A}(),ka=function(){function A(e,t){var r;this.windowBounds=t,this.instanceName="#"+A.instanceCount++,this.logger=new Va({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new xi(this,e)}return A.instanceCount=1,A}(),Ra=function(A,e){return void 0===e&&(e={}),Na(A,e)};"undefined"!==typeof window&&Di.setContext(window);var Na=function(A,e){return r(void 0,void 0,void 0,(function(){var r,n,a,c,Q,w,g,u,l,U,C,F,h,d,f,p,H,E,I,y,K,m,L,b,v,D,x,M,S,T,G,O,V,k,R,N,P,X,J;return B(this,(function(B){switch(B.label){case 0:if(!A||"object"!==typeof A)return[2,Promise.reject("Invalid element provided as first argument")];if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return a={allowTaint:null!==(L=e.allowTaint)&&void 0!==L&&L,imageTimeout:null!==(b=e.imageTimeout)&&void 0!==b?b:15e3,proxy:e.proxy,useCORS:null!==(v=e.useCORS)&&void 0!==v&&v},c=t({logging:null===(D=e.logging)||void 0===D||D,cache:e.cache},a),Q={windowWidth:null!==(x=e.windowWidth)&&void 0!==x?x:n.innerWidth,windowHeight:null!==(M=e.windowHeight)&&void 0!==M?M:n.innerHeight,scrollX:null!==(S=e.scrollX)&&void 0!==S?S:n.pageXOffset,scrollY:null!==(T=e.scrollY)&&void 0!==T?T:n.pageYOffset},w=new s(Q.scrollX,Q.scrollY,Q.windowWidth,Q.windowHeight),g=new ka(c,w),u=null!==(G=e.foreignObjectRendering)&&void 0!==G&&G,l={allowTaint:null!==(O=e.allowTaint)&&void 0!==O&&O,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:u,copyStyles:u},g.logger.debug("Starting document clone with size "+w.width+"x"+w.height+" scrolled to "+-w.left+","+-w.top),U=new ui(g,A,l),C=U.clonedReferenceElement,C?[4,U.toIFrame(r,w)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return F=B.sent(),h=Go(C)||So(C)?i(C.ownerDocument):o(g,C),d=h.width,f=h.height,p=h.left,H=h.top,E=Pa(g,C,e.backgroundColor),I={canvas:e.canvas,backgroundColor:E,scale:null!==(k=null!==(V=e.scale)&&void 0!==V?V:n.devicePixelRatio)&&void 0!==k?k:1,x:(null!==(R=e.x)&&void 0!==R?R:0)+p,y:(null!==(N=e.y)&&void 0!==N?N:0)+H,width:null!==(P=e.width)&&void 0!==P?P:Math.ceil(d),height:null!==(X=e.height)&&void 0!==X?X:Math.ceil(f)},u?(g.logger.debug("Document cloned, using foreign object rendering"),m=new Ga(g,I),[4,m.render(C)]):[3,3];case 2:return y=B.sent(),[3,5];case 3:return g.logger.debug("Document cloned, element located at "+p+","+H+" with size "+d+"x"+f+" using computed rendering"),g.logger.debug("Starting DOM parsing"),K=Io(g,C),E===K.styles.backgroundColor&&(K.styles.backgroundColor=hr.TRANSPARENT),g.logger.debug("Starting renderer for element at "+I.x+","+I.y+" with size "+I.width+"x"+I.height),m=new va(g,I),[4,m.render(K)];case 4:y=B.sent(),B.label=5;case 5:return(null===(J=e.removeContainer)||void 0===J||J)&&(ui.destroy(F)||g.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),g.logger.debug("Finished rendering"),[2,y]}}))}))},Pa=function(A,e,t){var r=e.ownerDocument,B=r.documentElement?Fr(A,getComputedStyle(r.documentElement).backgroundColor):hr.TRANSPARENT,n=r.body?Fr(A,getComputedStyle(r.body).backgroundColor):hr.TRANSPARENT,s="string"===typeof t?Fr(A,t):null===t?hr.TRANSPARENT:4294967295;return e===r.documentElement?cr(B)?cr(n)?s:n:B:s};return Ra}))},70566:function(A,e,t){"use strict";t(82801),t(48675),t(37380),t(1118);var r=t(61120),B=t.n(r);const n=A=>new Promise((e=>{setTimeout((()=>{B()(A,{useCORS:!0}).then((A=>{let t=A.toDataURL("image/jpeg",.9),r=new Image;r.src=t,r.setAttribute("crossOrigin","Anonymous");const B=(new Date).toISOString()+".jpg";e(s(t,B)),r.remove()}))}),100)}));function s(A,e){const t=A.replace(/^data:image\/[a-z]+;base64,/,""),r=atob(t),B=new Array(r.length);for(let o=0;o<r.length;o++)B[o]=r.charCodeAt(o);const n=new Uint8Array(B),s=new File([n],e,{type:"image/jpeg"});return s}e["Z"]=n}}]);