(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67139ec8"],{"18c3":function(A,e,t){},"2f21":function(A,e,t){"use strict";var r=t("79e5");A.exports=function(A,e){return!!A&&r(function(){e?A.call(null,function(){},1):A.call(null)})}},"55dd":function(A,e,t){"use strict";var r=t("5ca1"),n=t("d8e8"),B=t("4bf8"),s=t("79e5"),o=[].sort,i=[1,2,3];r(r.P+r.F*(s(function(){i.sort(void 0)})||!s(function(){i.sort(null)})||!t("2f21")(o)),"Array",{sort:function(A){return void 0===A?o.call(B(this)):o.call(B(this),n(A))}})},acb3:function(A,e){A.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAABLCAYAAAAPgLXeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoxMmU5NDE3MS1jZGVmLWZjNDgtOTgwOS00ODlmMTQ2YTIwNzgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Qjg4MEU5RkZGOTA5MTFFOEIwNkM4N0JBODI3MDBBRkMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Qjg4MEU5RkVGOTA5MTFFOEIwNkM4N0JBODI3MDBBRkMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6ODQyM2UwYzQtNTFiNi01MjRiLTk5ZGItM2I2YjMxMjMyZDQzIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjEyZTk0MTcxLWNkZWYtZmM0OC05ODA5LTQ4OWYxNDZhMjA3OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pj8UPccAAARySURBVHja7JlXaFRBFIb3JhHbGiM2LKCosYEYe0ui0YhGBCsi0YgVRAIi6IMN8UFEQWwvIgoaFPXJgL6oJDYUEdEIQWKJDQvGGCwxajRe/wPnysl1Nzv37uxuhDnwsbtTzvw7M3fKuVZAo9m2nYqP/iANBDn5M6gBjyzLqtPVlhWl0E74mA1yQSboEaHKU3ANXALn8Ee+BOJpEDwJnAU/bf/2FRSBjJj3OBoZgY89YKIrqwyUgLugAlSBWs5L5ZGgKTQKTOXv0orBeoxApe4ebgUOgAbRY2/BFtDbh7/BYDf4KPx9B5tBsi7R6aBMNFAD1oCWGny3B1tBnfBfArpE63g0eC+cnuQHUveI9galop0noK9fZ2P5ASKrB6ti/MAng+1C/GvP4lFhEKhmBzSM0+K4Yi0TzxL1fFfVikFQIXo6NxBnY/FyzierVDomKhUEEmRoe5vQsSVS4RxR+EgggYb2k8BFsVSmN1WwXDwY7QIJNmjoJRaI8+EKzRO9nR9oJsabkmPDQhW4xZkPqPcVHNK0OgT6+BAzHBwGQxQXixrWdirU8ufYCsXGb3L5V6CfB9FjwCeue0Kxzk4u/412W5mxXWSkKjpbINZbJfEu0bQ/TFBsa4Do2CUy4wYnFnsc8kWq4kOInuyxrfJGo4QvbcAvTlzrY75GFB+taPaxj+u/dBIyxDCM8fnkhxWvQzT7yRc6U5256liHKJatf8TrEu1cYoTOkZRQyD9qNay5UnwV+KJDNPvuKoTnpYjbeNTCcfWi8zp9LQKdOfk7mIm80ijdS31B2mick1eDps3uCfjhavClBr9SX3KS+CdBDVOFHu6LoDWopyRAN6YrXjapMCb11ZLwauc2DudtNYimDewbyAN0LP7Nt/xoxXcT32uc5Sr8Icb7Nt7oQfSySUVoQx4CO1FCmkhYqVO0TvGos4PrV8vE+14OPX42l2jFi9NrsUzcy4kfVOMlHLrwtLmEEN9Xsa1uol6hzBgnpstcRWfX/WwuLvHHFets4PJUr7s78zFnXlV0tpKHb5KP+UrHjNtghkLZFDpYsbYLoQqsFr2e04yubsuFrunhAptvuAA9rCnNQDTFFt+xptuR5p9jm5qB8KNCz/imClocObL5cpGdQNEFnmI89NTykdTmSO3ABIjO5vuvzeHAoGrFKRw3dNbbAXEUnSn2B/oc7NXBQjFU1PNZcRA9XwT563y3yeLrxZzfGIvVBj5bg/2ioz752R/cTnNFrNzm1ypZmgTTYjAHPBP+K8FQXT3SE1x2ve6j8/Us0MKHPwqJLAb3XD5PN4pUaeydJfy2zXbNf4qpL6VYYKhDGl1Q6KzPu/MZcYl27HHIXTEG87GQhzSUNXCQ8jl44Xol6Lb7vOmlxHOttXjpOijCY5GM/tQdsMvvG+W/EQWNf6QjPgYBenNAgaU9nLUOfAAPQYVlWZ91tGdxHCQmg6K7c6QlBf5TM8KNcCPcCDfCjXAj3Ag3wo1wI9wIN8KNcCPcCDfCjXAjPKb2R4ABAP1fyHzQ0oCyAAAAAElFTkSuQmCC"},c0e9:function(A,e,t){
/*!
 * html2canvas 1.0.0-rc.3 <https://html2canvas.hertzen.com>
 * Copyright (c) 2019 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
(function(e,t){A.exports=t()})(0,function(){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */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)e.hasOwnProperty(t)&&(A[t]=e[t])},A(e,t)};function e(e,t){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 n in e=arguments[t],e)Object.prototype.hasOwnProperty.call(e,n)&&(A[n]=e[n]);return A},t.apply(this,arguments)};function r(A,e,t,r){return new(t||(t=Promise))(function(n,B){function s(A){try{i(r.next(A))}catch(Me){B(Me)}}function o(A){try{i(r["throw"](A))}catch(Me){B(Me)}}function i(A){A.done?n(A.value):new t(function(e){e(A.value)}).then(s,o)}i((r=r.apply(A,e||[])).next())})}function n(A,e){var t,r,n,B,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return B={next:o(0),throw:o(1),return:o(2)},"function"===typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function o(A){return function(e){return i([A,e])}}function i(B){if(t)throw new TypeError("Generator is already executing.");while(s)try{if(t=1,r&&(n=2&B[0]?r["return"]:B[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,B[1])).done)return n;switch(r=0,n&&(B=[2&B[0],n.value]),B[0]){case 0:case 1:n=B;break;case 4:return s.label++,{value:B[1],done:!1};case 5:s.label++,r=B[1],B=[0];continue;case 7:B=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===B[0]||2===B[0])){s=0;continue}if(3===B[0]&&(!n||B[1]>n[0]&&B[1]<n[3])){s.label=B[1];break}if(6===B[0]&&s.label<n[1]){s.label=n[1],n=B;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(B);break}n[2]&&s.ops.pop(),s.trys.pop();continue}B=e.call(A,s)}catch(Me){B=[6,Me],r=0}finally{t=n=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}}for(var B=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,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e){return new A(e.left,e.top,e.width,e.height)},A}(),s=function(A){return B.fromClientRect(A.getBoundingClientRect())},o=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)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new B(0,0,r,n)},i=function(A){var e=[],t=0,r=A.length;while(t<r){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var B=A.charCodeAt(t++);56320===(64512&B)?e.push(((1023&n)<<10)+(1023&B)+65536):(e.push(n),t--)}else e.push(n)}return e},a=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=[],n=-1,B="";while(++n<t){var s=A[n];s<=65535?r.push(s):(s-=65536,r.push(55296+(s>>10),s%1024+56320)),(n+1===t||r.length>16384)&&(B+=String.fromCharCode.apply(String,r),r.length=0)}return B},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q="undefined"===typeof Uint8Array?[]:new Uint8Array(256),u=0;u<c.length;u++)Q[c.charCodeAt(u)]=u;var w,l=function(A){var e,t,r,n,B,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=Q[A.charCodeAt(e)],r=Q[A.charCodeAt(e+1)],n=Q[A.charCodeAt(e+2)],B=Q[A.charCodeAt(e+3)],c[i++]=t<<2|r>>4,c[i++]=(15&r)<<4|n>>2,c[i++]=(3&n)<<6|63&B;return a},U=function(A){for(var e=A.length,t=[],r=0;r<e;r+=2)t.push(A[r+1]<<8|A[r]);return t},C=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},g=5,E=11,F=2,h=E-g,d=65536>>g,H=1<<g,f=H-1,p=1024>>g,N=d+p,K=N,I=32,m=K+I,T=65536>>E,R=1<<h,v=R-1,L=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},O=function(A,e,t){return A.slice?A.slice(e,t):new Uint32Array(Array.prototype.slice.call(A,e,t))},b=function(A){var e=l(A),t=Array.isArray(e)?C(e):new Uint32Array(e),r=Array.isArray(e)?U(e):new Uint16Array(e),n=24,B=L(r,n/2,t[4]/2),s=2===t[5]?L(r,(n+t[4])/2):O(t,Math.ceil((n+t[4])/4));return new D(t[0],t[1],t[2],t[3],B,s)},D=function(){function A(A,e,t,r,n,B){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=B}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>g],e=(e<<F)+(A&f),this.data[e];if(A<=65535)return e=this.index[d+(A-55296>>g)],e=(e<<F)+(A&f),this.data[e];if(A<this.highStart)return e=m-T+(A>>E),e=this.index[e],e+=A>>g&v,e=this.index[e],e=(e<<F)+(A&f),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),S=" ",y=50,M=1,_=2,P=3,x=4,V=5,z=7,X=8,G=9,J=10,k=11,W=12,Y=13,j=14,Z=15,q=16,$=17,AA=18,eA=19,tA=20,rA=21,nA=22,BA=23,sA=24,oA=25,iA=26,aA=27,cA=28,QA=29,uA=30,wA=31,lA=32,UA=33,CA=34,gA=35,EA=36,FA=37,hA=38,dA=39,HA=40,fA=41,pA=42,NA=43,KA="!",IA="×",mA="÷",TA=b(S),RA=[uA,EA],vA=[M,_,P,V],LA=[J,X],OA=[aA,iA],bA=vA.concat(LA),DA=[hA,dA,HA,CA,gA],SA=[Z,Y],yA=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach(function(A,B){var s=TA.get(A);if(s>y?(n.push(!0),s-=y):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(B),t.push(q);if(s===x||s===k){if(0===B)return r.push(B),t.push(uA);var o=t[B-1];return-1===bA.indexOf(o)?(r.push(r[B-1]),t.push(o)):(r.push(B),t.push(uA))}return r.push(B),s===wA?t.push("strict"===e?rA:FA):s===pA?t.push(uA):s===QA?t.push(uA):s===NA?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(FA):t.push(uA):void t.push(s)}),[r,t,n]},MA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?-1!==A.indexOf(n):A===n){var B=t;while(B<=r.length){B++;var s=r[B];if(s===e)return!0;if(s!==J)break}}if(n===J){B=t;while(B>0){B--;var o=r[B];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!==J)break}}if(o!==J)break}}return!1},_A=function(A,e){var t=A;while(t>=0){var r=e[t];if(r!==J)return r;t--}return 0},PA=function(A,e,t,r,n){if(0===t[r])return IA;var B=r-1;if(Array.isArray(n)&&!0===n[B])return IA;var s=B-1,o=B+1,i=e[B],a=s>=0?e[s]:0,c=e[o];if(i===_&&c===P)return IA;if(-1!==vA.indexOf(i))return KA;if(-1!==vA.indexOf(c))return IA;if(-1!==LA.indexOf(c))return IA;if(_A(B,e)===X)return mA;if(TA.get(A[B])===k&&(c===FA||c===lA||c===UA))return IA;if(i===z||c===z)return IA;if(i===G)return IA;if(-1===[J,Y,Z].indexOf(i)&&c===G)return IA;if(-1!==[$,AA,eA,sA,cA].indexOf(c))return IA;if(_A(B,e)===nA)return IA;if(MA(BA,nA,B,e))return IA;if(MA([$,AA],rA,B,e))return IA;if(MA(W,W,B,e))return IA;if(i===J)return mA;if(i===BA||c===BA)return IA;if(c===q||i===q)return mA;if(-1!==[Y,Z,rA].indexOf(c)||i===j)return IA;if(a===EA&&-1!==SA.indexOf(i))return IA;if(i===cA&&c===EA)return IA;if(c===tA&&-1!==RA.concat(tA,eA,oA,FA,lA,UA).indexOf(i))return IA;if(-1!==RA.indexOf(c)&&i===oA||-1!==RA.indexOf(i)&&c===oA)return IA;if(i===aA&&-1!==[FA,lA,UA].indexOf(c)||-1!==[FA,lA,UA].indexOf(i)&&c===iA)return IA;if(-1!==RA.indexOf(i)&&-1!==OA.indexOf(c)||-1!==OA.indexOf(i)&&-1!==RA.indexOf(c))return IA;if(-1!==[aA,iA].indexOf(i)&&(c===oA||-1!==[nA,Z].indexOf(c)&&e[o+1]===oA)||-1!==[nA,Z].indexOf(i)&&c===oA||i===oA&&-1!==[oA,cA,sA].indexOf(c))return IA;if(-1!==[oA,cA,sA,$,AA].indexOf(c)){var Q=B;while(Q>=0){var u=e[Q];if(u===oA)return IA;if(-1===[cA,sA].indexOf(u))break;Q--}}if(-1!==[aA,iA].indexOf(c)){Q=-1!==[$,AA].indexOf(i)?s:B;while(Q>=0){u=e[Q];if(u===oA)return IA;if(-1===[cA,sA].indexOf(u))break;Q--}}if(hA===i&&-1!==[hA,dA,CA,gA].indexOf(c)||-1!==[dA,CA].indexOf(i)&&-1!==[dA,HA].indexOf(c)||-1!==[HA,gA].indexOf(i)&&c===HA)return IA;if(-1!==DA.indexOf(i)&&-1!==[tA,iA].indexOf(c)||-1!==DA.indexOf(c)&&i===aA)return IA;if(-1!==RA.indexOf(i)&&-1!==RA.indexOf(c))return IA;if(i===sA&&-1!==RA.indexOf(c))return IA;if(-1!==RA.concat(oA).indexOf(i)&&c===nA||-1!==RA.concat(oA).indexOf(c)&&i===AA)return IA;if(i===fA&&c===fA){var w=t[B],l=1;while(w>0){if(w--,e[w]!==fA)break;l++}if(l%2!==0)return IA}return i===lA&&c===UA?IA:mA},xA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=yA(A,e.lineBreak),r=t[0],n=t[1],B=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map(function(A){return-1!==[oA,uA,pA].indexOf(A)?FA:A}));var s="keep-all"===e.wordBreak?B.map(function(e,t){return e&&A[t]>=19968&&A[t]<=40959}):void 0;return[r,n,s]},VA=function(){function A(A,e,t,r){this.codePoints=A,this.required=e===KA,this.start=t,this.end=r}return A.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),zA=function(A,e){var t=i(A),r=xA(t,e),n=r[0],B=r[1],s=r[2],o=t.length,a=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};var A=IA;while(c<o&&(A=PA(t,B,n,++c,s))===IA);if(A!==IA||c===o){var e=new VA(t,A,a,c);return a=c,{value:e,done:!1}}return{done:!0,value:null}}}};(function(A){A[A["STRING_TOKEN"]=0]="STRING_TOKEN",A[A["BAD_STRING_TOKEN"]=1]="BAD_STRING_TOKEN",A[A["LEFT_PARENTHESIS_TOKEN"]=2]="LEFT_PARENTHESIS_TOKEN",A[A["RIGHT_PARENTHESIS_TOKEN"]=3]="RIGHT_PARENTHESIS_TOKEN",A[A["COMMA_TOKEN"]=4]="COMMA_TOKEN",A[A["HASH_TOKEN"]=5]="HASH_TOKEN",A[A["DELIM_TOKEN"]=6]="DELIM_TOKEN",A[A["AT_KEYWORD_TOKEN"]=7]="AT_KEYWORD_TOKEN",A[A["PREFIX_MATCH_TOKEN"]=8]="PREFIX_MATCH_TOKEN",A[A["DASH_MATCH_TOKEN"]=9]="DASH_MATCH_TOKEN",A[A["INCLUDE_MATCH_TOKEN"]=10]="INCLUDE_MATCH_TOKEN",A[A["LEFT_CURLY_BRACKET_TOKEN"]=11]="LEFT_CURLY_BRACKET_TOKEN",A[A["RIGHT_CURLY_BRACKET_TOKEN"]=12]="RIGHT_CURLY_BRACKET_TOKEN",A[A["SUFFIX_MATCH_TOKEN"]=13]="SUFFIX_MATCH_TOKEN",A[A["SUBSTRING_MATCH_TOKEN"]=14]="SUBSTRING_MATCH_TOKEN",A[A["DIMENSION_TOKEN"]=15]="DIMENSION_TOKEN",A[A["PERCENTAGE_TOKEN"]=16]="PERCENTAGE_TOKEN",A[A["NUMBER_TOKEN"]=17]="NUMBER_TOKEN",A[A["FUNCTION"]=18]="FUNCTION",A[A["FUNCTION_TOKEN"]=19]="FUNCTION_TOKEN",A[A["IDENT_TOKEN"]=20]="IDENT_TOKEN",A[A["COLUMN_TOKEN"]=21]="COLUMN_TOKEN",A[A["URL_TOKEN"]=22]="URL_TOKEN",A[A["BAD_URL_TOKEN"]=23]="BAD_URL_TOKEN",A[A["CDC_TOKEN"]=24]="CDC_TOKEN",A[A["CDO_TOKEN"]=25]="CDO_TOKEN",A[A["COLON_TOKEN"]=26]="COLON_TOKEN",A[A["SEMICOLON_TOKEN"]=27]="SEMICOLON_TOKEN",A[A["LEFT_SQUARE_BRACKET_TOKEN"]=28]="LEFT_SQUARE_BRACKET_TOKEN",A[A["RIGHT_SQUARE_BRACKET_TOKEN"]=29]="RIGHT_SQUARE_BRACKET_TOKEN",A[A["UNICODE_RANGE_TOKEN"]=30]="UNICODE_RANGE_TOKEN",A[A["WHITESPACE_TOKEN"]=31]="WHITESPACE_TOKEN",A[A["EOF_TOKEN"]=32]="EOF_TOKEN"})(w||(w={}));var XA=1,GA=2,JA=4,kA=8,WA=10,YA=47,jA=92,ZA=9,qA=32,$A=34,Ae=61,ee=35,te=36,re=37,ne=39,Be=40,se=41,oe=95,ie=45,ae=33,ce=60,Qe=62,ue=64,we=91,le=93,Ue=61,Ce=123,ge=63,Ee=125,Fe=124,he=126,de=128,He=65533,fe=42,pe=43,Ne=44,Ke=58,Ie=59,me=46,Te=0,Re=8,ve=11,Le=14,Oe=31,be=127,De=-1,Se=48,ye=97,Me=101,_e=102,Pe=117,xe=122,Ve=65,ze=69,Xe=70,Ge=85,Je=90,ke=function(A){return A>=Se&&A<=57},We=function(A){return A>=55296&&A<=57343},Ye=function(A){return ke(A)||A>=Ve&&A<=Xe||A>=ye&&A<=_e},je=function(A){return A>=ye&&A<=xe},Ze=function(A){return A>=Ve&&A<=Je},qe=function(A){return je(A)||Ze(A)},$e=function(A){return A>=de},At=function(A){return A===WA||A===ZA||A===qA},et=function(A){return qe(A)||$e(A)||A===oe},tt=function(A){return et(A)||ke(A)||A===ie},rt=function(A){return A>=Te&&A<=Re||A===ve||A>=Le&&A<=Oe||A===be},nt=function(A,e){return A===jA&&e!==WA},Bt=function(A,e,t){return A===ie?et(e)||nt(e,t):!!et(A)||!(A!==jA||!nt(A,e))},st=function(A,e,t){return A===pe||A===ie?!!ke(e)||e===me&&ke(t):ke(A===me?e:A)},ot=function(A){var e=0,t=1;A[e]!==pe&&A[e]!==ie||(A[e]===ie&&(t=-1),e++);var r=[];while(ke(A[e]))r.push(A[e++]);var n=r.length?parseInt(a.apply(void 0,r),10):0;A[e]===me&&e++;var B=[];while(ke(A[e]))B.push(A[e++]);var s=B.length,o=s?parseInt(a.apply(void 0,B),10):0;A[e]!==ze&&A[e]!==Me||e++;var i=1;A[e]!==pe&&A[e]!==ie||(A[e]===ie&&(i=-1),e++);var c=[];while(ke(A[e]))c.push(A[e++]);var Q=c.length?parseInt(a.apply(void 0,c),10):0;return t*(n+o*Math.pow(10,-s))*Math.pow(10,i*Q)},it={type:w.LEFT_PARENTHESIS_TOKEN},at={type:w.RIGHT_PARENTHESIS_TOKEN},ct={type:w.COMMA_TOKEN},Qt={type:w.SUFFIX_MATCH_TOKEN},ut={type:w.PREFIX_MATCH_TOKEN},wt={type:w.COLUMN_TOKEN},lt={type:w.DASH_MATCH_TOKEN},Ut={type:w.INCLUDE_MATCH_TOKEN},Ct={type:w.LEFT_CURLY_BRACKET_TOKEN},gt={type:w.RIGHT_CURLY_BRACKET_TOKEN},Et={type:w.SUBSTRING_MATCH_TOKEN},Ft={type:w.BAD_URL_TOKEN},ht={type:w.BAD_STRING_TOKEN},dt={type:w.CDO_TOKEN},Ht={type:w.CDC_TOKEN},ft={type:w.COLON_TOKEN},pt={type:w.SEMICOLON_TOKEN},Nt={type:w.LEFT_SQUARE_BRACKET_TOKEN},Kt={type:w.RIGHT_SQUARE_BRACKET_TOKEN},It={type:w.WHITESPACE_TOKEN},mt={type:w.EOF_TOKEN},Tt=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat(i(A))},A.prototype.read=function(){var A=[],e=this.consumeToken();while(e!==mt)A.push(e),e=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case $A:return this.consumeStringToken($A);case ee:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),r=this.peekCodePoint(2);if(tt(e)||nt(t,r)){var n=Bt(e,t,r)?GA:XA,B=this.consumeName();return{type:w.HASH_TOKEN,value:B,flags:n}}break;case te:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Qt;break;case ne:return this.consumeStringToken(ne);case Be:return it;case se:return at;case fe:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Et;break;case pe:if(st(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Ne:return ct;case ie:var s=A,o=this.peekCodePoint(0),i=this.peekCodePoint(1);if(st(s,o,i))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Bt(s,o,i))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===ie&&i===Qe)return this.consumeCodePoint(),this.consumeCodePoint(),Ht;break;case me:if(st(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case YA:if(this.peekCodePoint(0)===fe){this.consumeCodePoint();while(1){var c=this.consumeCodePoint();if(c===fe&&(c=this.consumeCodePoint(),c===YA))return this.consumeToken();if(c===De)return this.consumeToken()}}break;case Ke:return ft;case Ie:return pt;case ce:if(this.peekCodePoint(0)===ae&&this.peekCodePoint(1)===ie&&this.peekCodePoint(2)===ie)return this.consumeCodePoint(),this.consumeCodePoint(),dt;break;case ue:var Q=this.peekCodePoint(0),u=this.peekCodePoint(1),l=this.peekCodePoint(2);if(Bt(Q,u,l)){B=this.consumeName();return{type:w.AT_KEYWORD_TOKEN,value:B}}break;case we:return Nt;case jA:if(nt(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case le:return Kt;case Ue:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),ut;break;case Ce:return Ct;case Ee:return gt;case Pe:case Ge:var U=this.peekCodePoint(0),C=this.peekCodePoint(1);return U!==pe||!Ye(C)&&C!==ge||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Fe:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),lt;if(this.peekCodePoint(0)===Fe)return this.consumeCodePoint(),wt;break;case he:if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),Ut;break;case De:return mt}return At(A)?(this.consumeWhiteSpace(),It):ke(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):et(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:w.DELIM_TOKEN,value:a(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(Ye(e)&&A.length<6)A.push(e),e=this.consumeCodePoint();var t=!1;while(e===ge&&A.length<6)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var r=parseInt(a.apply(void 0,A.map(function(A){return A===ge?Se:A})),16),n=parseInt(a.apply(void 0,A.map(function(A){return A===ge?Xe:A})),16);return{type:w.UNICODE_RANGE_TOKEN,start:r,end:n}}var B=parseInt(a.apply(void 0,A),16);if(this.peekCodePoint(0)===ie&&Ye(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var s=[];while(Ye(e)&&s.length<6)s.push(e),e=this.consumeCodePoint();n=parseInt(a.apply(void 0,s),16);return{type:w.UNICODE_RANGE_TOKEN,start:B,end:n}}return{type:w.UNICODE_RANGE_TOKEN,start:B,end:B}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&this.peekCodePoint(0)===Be?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Be?(this.consumeCodePoint(),{type:w.FUNCTION_TOKEN,value:A}):{type:w.IDENT_TOKEN,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===De)return{type:w.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(e===ne||e===$A){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===w.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===se)?(this.consumeCodePoint(),{type:w.URL_TOKEN,value:t.value}):(this.consumeBadUrlRemnants(),Ft)}while(1){var r=this.consumeCodePoint();if(r===De||r===se)return{type:w.URL_TOKEN,value:a.apply(void 0,A)};if(At(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===De||this.peekCodePoint(0)===se?(this.consumeCodePoint(),{type:w.URL_TOKEN,value:a.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Ft);if(r===$A||r===ne||r===Be||rt(r))return this.consumeBadUrlRemnants(),Ft;if(r===jA){if(!nt(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Ft;A.push(this.consumeEscapedCodePoint())}else A.push(r)}},A.prototype.consumeWhiteSpace=function(){while(At(this.peekCodePoint(0)))this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){while(1){var A=this.consumeCodePoint();if(A===se||A===De)return;nt(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){var e=6e4,t="";while(A>0){var r=Math.min(e,A);t+=a.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===De||void 0===r||r===A)return e+=this.consumeStringSlice(t),{type:w.STRING_TOKEN,value:e};if(r===WA)return this._value.splice(0,t),ht;if(r===jA){var n=this._value[t+1];n!==De&&void 0!==n&&(n===WA?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):nt(r,n)&&(e+=this.consumeStringSlice(t),e+=a(this.consumeEscapedCodePoint()),t=-1))}t++}while(1)},A.prototype.consumeNumber=function(){var A=[],e=JA,t=this.peekCodePoint(0);t!==pe&&t!==ie||A.push(this.consumeCodePoint());while(ke(this.peekCodePoint(0)))A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(t===me&&ke(r)){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=kA;while(ke(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}t=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((t===ze||t===Me)&&((r===pe||r===ie)&&ke(n)||ke(r))){A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=kA;while(ke(this.peekCodePoint(0)))A.push(this.consumeCodePoint())}return[ot(A),e]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),B=this.peekCodePoint(2);if(Bt(r,n,B)){var s=this.consumeName();return{type:w.DIMENSION_TOKEN,number:e,flags:t,unit:s}}return r===re?(this.consumeCodePoint(),{type:w.PERCENTAGE_TOKEN,number:e,flags:t}):{type:w.NUMBER_TOKEN,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ye(A)){var e=a(A);while(Ye(this.peekCodePoint(0))&&e.length<6)e+=a(this.consumeCodePoint());At(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||We(t)||t>1114111?He:t}return A===De?He:A},A.prototype.consumeName=function(){var A="";while(1){var e=this.consumeCodePoint();if(tt(e))A+=a(e);else{if(!nt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=a(this.consumeEscapedCodePoint())}}},A}(),Rt=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(A.type===w.WHITESPACE_TOKEN)A=this.consumeToken();if(A.type===w.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(A.type===w.WHITESPACE_TOKEN);if(A.type===w.EOF_TOKEN)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(e.type===w.EOF_TOKEN)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case w.LEFT_CURLY_BRACKET_TOKEN:case w.LEFT_SQUARE_BRACKET_TOKEN:case w.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case w.FUNCTION_TOKEN:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]},t=this.consumeToken();while(1){if(t.type===w.EOF_TOKEN||_t(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:w.FUNCTION};while(1){var t=this.consumeToken();if(t.type===w.EOF_TOKEN||t.type===w.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return"undefined"===typeof A?mt:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}(),vt=function(A){return A.type===w.DIMENSION_TOKEN},Lt=function(A){return A.type===w.NUMBER_TOKEN},Ot=function(A){return A.type===w.IDENT_TOKEN},bt=function(A){return A.type===w.STRING_TOKEN},Dt=function(A,e){return Ot(A)&&A.value===e},St=function(A){return A.type!==w.WHITESPACE_TOKEN},yt=function(A){return A.type!==w.WHITESPACE_TOKEN&&A.type!==w.COMMA_TOKEN},Mt=function(A){var e=[],t=[];return A.forEach(function(A){if(A.type===w.COMMA_TOKEN){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}A.type!==w.WHITESPACE_TOKEN&&t.push(A)}),t.length&&e.push(t),e},_t=function(A,e){return e===w.LEFT_CURLY_BRACKET_TOKEN&&A.type===w.RIGHT_CURLY_BRACKET_TOKEN||(e===w.LEFT_SQUARE_BRACKET_TOKEN&&A.type===w.RIGHT_SQUARE_BRACKET_TOKEN||e===w.LEFT_PARENTHESIS_TOKEN&&A.type===w.RIGHT_PARENTHESIS_TOKEN)},Pt=function(A){return A.type===w.NUMBER_TOKEN||A.type===w.DIMENSION_TOKEN},xt=function(A){return A.type===w.PERCENTAGE_TOKEN||Pt(A)},Vt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},zt={type:w.NUMBER_TOKEN,number:0,flags:JA},Xt={type:w.PERCENTAGE_TOKEN,number:50,flags:JA},Gt={type:w.PERCENTAGE_TOKEN,number:100,flags:JA},Jt=function(A,e,t){var r=A[0],n=A[1];return[kt(r,e),kt("undefined"!==typeof n?n:r,t)]},kt=function(A,e){if(A.type===w.PERCENTAGE_TOKEN)return A.number/100*e;if(vt(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},Wt="deg",Yt="grad",jt="rad",Zt="turn",qt={name:"angle",parse:function(A){if(A.type===w.DIMENSION_TOKEN)switch(A.unit){case Wt:return Math.PI*A.number/180;case Yt:return Math.PI/200*A.number;case jt:return A.number;case Zt:return 2*Math.PI*A.number}throw new Error("Unsupported angle type")}},$t=function(A){return A.type===w.DIMENSION_TOKEN&&(A.unit===Wt||A.unit===Yt||A.unit===jt||A.unit===Zt)},Ar=function(A){var e=A.filter(Ot).map(function(A){return A.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[zt,zt];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[zt,Gt];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Gt,Gt];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Gt,zt];case"to left":case"right":return er(270)}return 0},er=function(A){return Math.PI*A/180},tr={name:"color",parse:function(A){if(A.type===w.FUNCTION){var e=ur[A.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(A.values)}if(A.type===w.HASH_TOKEN){if(3===A.value.length){var t=A.value.substring(0,1),r=A.value.substring(1,2),n=A.value.substring(2,3);return Br(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===A.value.length){t=A.value.substring(0,1),r=A.value.substring(1,2),n=A.value.substring(2,3);var B=A.value.substring(3,4);return Br(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(B+B,16)/255)}if(6===A.value.length){t=A.value.substring(0,2),r=A.value.substring(2,4),n=A.value.substring(4,6);return Br(parseInt(t,16),parseInt(r,16),parseInt(n,16),1)}if(8===A.value.length){t=A.value.substring(0,2),r=A.value.substring(2,4),n=A.value.substring(4,6),B=A.value.substring(6,8);return Br(parseInt(t,16),parseInt(r,16),parseInt(n,16),parseInt(B,16)/255)}}if(A.type===w.IDENT_TOKEN){var s=wr[A.value.toUpperCase()];if("undefined"!==typeof s)return s}return wr.TRANSPARENT}},rr=function(A){return 0===(255&A)},nr=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},Br=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r)<<0)>>>0},sr=function(A,e){if(A.type===w.NUMBER_TOKEN)return A.number;if(A.type===w.PERCENTAGE_TOKEN){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},or=function(A){var e=A.filter(yt);if(3===e.length){var t=e.map(sr),r=t[0],n=t[1],B=t[2];return Br(r,n,B,1)}if(4===e.length){var s=e.map(sr),o=(r=s[0],n=s[1],B=s[2],s[3]);return Br(r,n,B,o)}return 0};function ir(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 ar,cr,Qr=function(A){var e=A.filter(yt),t=e[0],r=e[1],n=e[2],B=e[3],s=(t.type===w.NUMBER_TOKEN?er(t.number):qt.parse(t))/(2*Math.PI),o=xt(r)?r.number/100:0,i=xt(n)?n.number/100:0,a="undefined"!==typeof B&&xt(B)?kt(B,1):1;if(0===o)return Br(255*i,255*i,255*i,1);var c=i<=.5?i*(o+1):i+o-i*o,Q=2*i-c,u=ir(Q,c,s+1/3),l=ir(Q,c,s),U=ir(Q,c,s-1/3);return Br(255*u,255*l,255*U,a)},ur={hsl:Qr,hsla:Qr,rgb:or,rgba:or},wr={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};(function(A){A[A["VALUE"]=0]="VALUE",A[A["LIST"]=1]="LIST",A[A["IDENT_VALUE"]=2]="IDENT_VALUE",A[A["TYPE_VALUE"]=3]="TYPE_VALUE",A[A["TOKEN_VALUE"]=4]="TOKEN_VALUE"})(ar||(ar={})),function(A){A[A["BORDER_BOX"]=0]="BORDER_BOX",A[A["PADDING_BOX"]=1]="PADDING_BOX",A[A["CONTENT_BOX"]=2]="CONTENT_BOX"}(cr||(cr={}));var lr,Ur={name:"background-clip",initialValue:"border-box",prefix:!1,type:ar.LIST,parse:function(A){return A.map(function(A){if(Ot(A))switch(A.value){case"padding-box":return cr.PADDING_BOX;case"content-box":return cr.CONTENT_BOX}return cr.BORDER_BOX})}},Cr={name:"background-color",initialValue:"transparent",prefix:!1,type:ar.TYPE_VALUE,format:"color"},gr=function(A){var e=tr.parse(A[0]),t=A[1];return t&&xt(t)?{color:e,stop:t}:{color:e,stop:null}},Er=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=zt),null===r.stop&&(r.stop=Gt);for(var n=[],B=0,s=0;s<A.length;s++){var o=A[s].stop;if(null!==o){var i=kt(o,e);i>B?n.push(i):n.push(B),B=i}else n.push(null)}var a=null;for(s=0;s<n.length;s++){var c=n[s];if(null===c)null===a&&(a=s);else if(null!==a){for(var Q=s-a,u=n[a-1],w=(c-u)/(Q+1),l=1;l<=Q;l++)n[a+l-1]=w*l;a=null}}return A.map(function(A,t){var r=A.color;return{color:r,stop:Math.max(Math.min(1,n[t]/e),0)}})},Fr=function(A,e,t){var r=e/2,n=t/2,B=kt(A[0],e)-r,s=n-kt(A[1],t);return(Math.atan2(s,B)+2*Math.PI)%(2*Math.PI)},hr=function(A,e,t){var r="number"===typeof A?A:Fr(A,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),B=e/2,s=t/2,o=n/2,i=Math.sin(r-Math.PI/2)*o,a=Math.cos(r-Math.PI/2)*o;return[n,B-a,B+a,s-i,s+i]},dr=function(A,e){return Math.sqrt(A*A+e*e)},Hr=function(A,e,t,r,n){var B=[[0,0],[0,e],[A,0],[A,e]];return B.reduce(function(A,e){var B=e[0],s=e[1],o=dr(t-B,r-s);return(n?o<A.optimumDistance:o>A.optimumDistance)?{optimumCorner:e,optimumDistance:o}:A},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},fr=function(A,e,t,r,n){var B=0,s=0;switch(A.size){case nn.CLOSEST_SIDE:A.shape===rn.CIRCLE?B=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===rn.ELLIPSE&&(B=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-n)));break;case nn.CLOSEST_CORNER:if(A.shape===rn.CIRCLE)B=s=Math.min(dr(e,t),dr(e,t-n),dr(e-r,t),dr(e-r,t-n));else if(A.shape===rn.ELLIPSE){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),i=Hr(r,n,e,t,!0),a=i[0],c=i[1];B=dr(a-e,(c-t)/o),s=o*B}break;case nn.FARTHEST_SIDE:A.shape===rn.CIRCLE?B=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):A.shape===rn.ELLIPSE&&(B=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-n)));break;case nn.FARTHEST_CORNER:if(A.shape===rn.CIRCLE)B=s=Math.max(dr(e,t),dr(e,t-n),dr(e-r,t),dr(e-r,t-n));else if(A.shape===rn.ELLIPSE){o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var Q=Hr(r,n,e,t,!1);a=Q[0],c=Q[1];B=dr(a-e,(c-t)/o),s=o*B}break}return Array.isArray(A.size)&&(B=kt(A.size[0],r),s=2===A.size.length?kt(A.size[1],n):B),[B,s]},pr=function(A){var e=er(180),t=[];return Mt(A).forEach(function(A,r){if(0===r){var n=A[0];if(n.type===w.IDENT_TOKEN&&"to"===n.value)return void(e=Ar(A));if($t(n))return void(e=qt.parse(n))}var B=gr(A);t.push(B)}),{angle:e,stops:t,type:lr.LINEAR_GRADIENT}},Nr=function(A){var e=er(180),t=[];return Mt(A).forEach(function(A,r){if(0===r){var n=A[0];if(n.type===w.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(e=Ar(A));if($t(n))return void(e=(qt.parse(n)+er(270))%er(360))}var B=gr(A);t.push(B)}),{angle:e,stops:t,type:lr.LINEAR_GRADIENT}},Kr=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 n=t.getBoundingClientRect(),B=Math.round(n.height);if(A.body.removeChild(r),B===e)return!0}}return!1},Ir=function(){return"undefined"!==typeof(new Image).crossOrigin},mr=function(){return"string"===typeof(new XMLHttpRequest).responseType},Tr=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(Me){return!1}return!0},Rr=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]},vr=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 n=new Image,B=e.toDataURL();n.src=B;var s=Lr(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Or(s).then(function(e){r.drawImage(e,0,0);var n=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("+B+")",s.style.height=t+"px",Rr(n)?Or(Lr(t,t,0,0,s)):Promise.reject(!1)}).then(function(A){return r.drawImage(A,0,0),Rr(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Lr=function(A,e,t,r,n){var B="http://www.w3.org/2000/svg",s=document.createElementNS(B,"svg"),o=document.createElementNS(B,"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(n),s},Or=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))})},br={get SUPPORT_RANGE_BOUNDS(){var A=Kr(document);return Object.defineProperty(br,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=Tr(document);return Object.defineProperty(br,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"===typeof Array.from&&"function"===typeof window.fetch?vr(document):Promise.resolve(!1);return Object.defineProperty(br,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=Ir();return Object.defineProperty(br,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=mr();return Object.defineProperty(br,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(br,"SUPPORT_CORS_XHR",{value:A}),A}},Dr=function(){function A(A){this.id=A,this.start=Date.now()}return A.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];"undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(A)):this.info.apply(this,A)},A.prototype.getTime=function(){return Date.now()-this.start},A.create=function(e){A.instances[e]=new A(e)},A.destroy=function(e){delete A.instances[e]},A.getInstance=function(e){var t=A.instances[e];if("undefined"===typeof t)throw new Error("No logger instance found with id "+e);return t},A.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(A))},A.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];"undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(A)):this.info.apply(this,A)},A.instances={},A}(),Sr=function(){function A(){}return A.create=function(e,t){return A._caches[e]=new yr(e,t)},A.destroy=function(e){delete A._caches[e]},A.open=function(e){var t=A._caches[e];if("undefined"!==typeof t)return t;throw new Error('Cache with key "'+e+'" not found')},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.getInstance=function(){var e=A._current;if(null===e)throw new Error("No cache instance attached");return e},A.attachInstance=function(e){A._current=e},A.detachInstance=function(){A._current=null},A._caches={},A._origin="about:blank",A._current=null,A}(),yr=function(){function A(A,e){this.id=A,this._options=e,this._cache={}}return A.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)?e:Xr(A)||xr(A)?(this._cache[A]=this.loadImage(A),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,B,s=this;return n(this,function(n){switch(n.label){case 0:return e=Sr.isSameOrigin(A),t=!Vr(A)&&!0===this._options.useCORS&&br.SUPPORT_CORS_IMAGES&&!e,r=!Vr(A)&&!e&&"string"===typeof this._options.proxy&&br.SUPPORT_CORS_XHR&&!t,e||!1!==this._options.allowTaint||Vr(A)||r||t?(B=A,r?[4,this.proxy(B)]:[3,2]):[2];case 1:B=n.sent(),n.label=2;case 2:return Dr.getInstance(this.id).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,(zr(B)||t)&&(r.crossOrigin="anonymous"),r.src=B,!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,n.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(n,B){var s=br.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status)if("text"===s)n(o.response);else{var A=new FileReader;A.addEventListener("load",function(){return n(A.result)},!1),A.addEventListener("error",function(A){return B(A)},!1),A.readAsDataURL(o.response)}else B("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=B,o.open("GET",t+"?url="+encodeURIComponent(A)+"&responseType="+s),"text"!==s&&o instanceof XMLHttpRequest&&(o.responseType=s),e._options.imageTimeout){var i=e._options.imageTimeout;o.timeout=i,o.ontimeout=function(){return B("Timed out ("+i+"ms) proxying "+r)}}o.send()})},A}(),Mr=/^data:image\/svg\+xml/i,_r=/^data:image\/.*;base64,/i,Pr=/^data:image\/.*/i,xr=function(A){return br.SUPPORT_SVG_DRAWING||!Gr(A)},Vr=function(A){return Pr.test(A)},zr=function(A){return _r.test(A)},Xr=function(A){return"blob"===A.substr(0,4)},Gr=function(A){return"svg"===A.substr(-3).toLowerCase()||Mr.test(A)},Jr=function(A){var e=er(180),t=[],r=lr.LINEAR_GRADIENT,n=rn.CIRCLE,B=nn.FARTHEST_CORNER,s=[];return Mt(A).forEach(function(A,e){var n=A[0];if(0===e){if(Ot(n)&&"linear"===n.value)return void(r=lr.LINEAR_GRADIENT);if(Ot(n)&&"radial"===n.value)return void(r=lr.RADIAL_GRADIENT)}if(n.type===w.FUNCTION)if("from"===n.name){var B=tr.parse(n.values[0]);t.push({stop:zt,color:B})}else if("to"===n.name){B=tr.parse(n.values[0]);t.push({stop:Gt,color:B})}else if("color-stop"===n.name){var s=n.values.filter(yt);if(2===s.length){B=tr.parse(s[1]);var o=s[0];Lt(o)&&t.push({stop:{type:w.PERCENTAGE_TOKEN,number:100*o.number,flags:o.flags},color:B})}}}),r===lr.LINEAR_GRADIENT?{angle:(e+er(180))%er(360),stops:t,type:r}:{size:B,shape:n,stops:t,position:s,type:r}},kr="closest-side",Wr="farthest-side",Yr="closest-corner",jr="farthest-corner",Zr="circle",qr="ellipse",$r="cover",An="contain",en=function(A){var e=rn.CIRCLE,t=nn.FARTHEST_CORNER,r=[],n=[];return Mt(A).forEach(function(A,B){var s=!0;if(0===B){var o=!1;s=A.reduce(function(A,r){if(o)if(Ot(r))switch(r.value){case"center":return n.push(Xt),A;case"top":case"left":return n.push(zt),A;case"right":case"bottom":return n.push(Gt),A}else(xt(r)||Pt(r))&&n.push(r);else if(Ot(r))switch(r.value){case Zr:return e=rn.CIRCLE,!1;case qr:return e=rn.ELLIPSE,!1;case"at":return o=!0,!1;case kr:return t=nn.CLOSEST_SIDE,!1;case $r:case Wr:return t=nn.FARTHEST_SIDE,!1;case An:case Yr:return t=nn.CLOSEST_CORNER,!1;case jr:return t=nn.FARTHEST_CORNER,!1}else if(Pt(r)||xt(r))return Array.isArray(t)||(t=[]),t.push(r),!1;return A},s)}if(s){var i=gr(A);r.push(i)}}),{size:t,shape:e,stops:r,position:n,type:lr.RADIAL_GRADIENT}},tn=function(A){var e=rn.CIRCLE,t=nn.FARTHEST_CORNER,r=[],n=[];return Mt(A).forEach(function(A,B){var s=!0;if(0===B?s=A.reduce(function(A,e){if(Ot(e))switch(e.value){case"center":return n.push(Xt),!1;case"top":case"left":return n.push(zt),!1;case"right":case"bottom":return n.push(Gt),!1}else if(xt(e)||Pt(e))return n.push(e),!1;return A},s):1===B&&(s=A.reduce(function(A,r){if(Ot(r))switch(r.value){case Zr:return e=rn.CIRCLE,!1;case qr:return e=rn.ELLIPSE,!1;case An:case kr:return t=nn.CLOSEST_SIDE,!1;case Wr:return t=nn.FARTHEST_SIDE,!1;case Yr:return t=nn.CLOSEST_CORNER,!1;case $r:case jr:return t=nn.FARTHEST_CORNER,!1}else if(Pt(r)||xt(r))return Array.isArray(t)||(t=[]),t.push(r),!1;return A},s)),s){var o=gr(A);r.push(o)}}),{size:t,shape:e,stops:r,position:n,type:lr.RADIAL_GRADIENT}};(function(A){A[A["URL"]=0]="URL",A[A["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",A[A["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(lr||(lr={}));var rn,nn,Bn=function(A){return A.type===lr.LINEAR_GRADIENT},sn=function(A){return A.type===lr.RADIAL_GRADIENT};(function(A){A[A["CIRCLE"]=0]="CIRCLE",A[A["ELLIPSE"]=1]="ELLIPSE"})(rn||(rn={})),function(A){A[A["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",A[A["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",A[A["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",A[A["FARTHEST_CORNER"]=3]="FARTHEST_CORNER"}(nn||(nn={}));var on,an={name:"image",parse:function(A){if(A.type===w.URL_TOKEN){var e={url:A.value,type:lr.URL};return Sr.getInstance().addImage(A.value),e}if(A.type===w.FUNCTION){var t=cn[A.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(A.values)}throw new Error("Unsupported image type")}},cn={"linear-gradient":pr,"-moz-linear-gradient":Nr,"-ms-linear-gradient":Nr,"-o-linear-gradient":Nr,"-webkit-linear-gradient":Nr,"radial-gradient":en,"-moz-radial-gradient":tn,"-ms-radial-gradient":tn,"-o-radial-gradient":tn,"-webkit-radial-gradient":tn,"-webkit-gradient":Jr},Qn={name:"background-image",initialValue:"none",type:ar.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===w.IDENT_TOKEN&&"none"===e.value?[]:A.filter(yt).map(an.parse)}},un={name:"background-origin",initialValue:"border-box",prefix:!1,type:ar.LIST,parse:function(A){return A.map(function(A){if(Ot(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wn={name:"background-position",initialValue:"0% 0%",type:ar.LIST,prefix:!1,parse:function(A){return Mt(A).map(function(A){return A.filter(xt)}).map(Vt)}};(function(A){A[A["REPEAT"]=0]="REPEAT",A[A["NO_REPEAT"]=1]="NO_REPEAT",A[A["REPEAT_X"]=2]="REPEAT_X",A[A["REPEAT_Y"]=3]="REPEAT_Y"})(on||(on={}));var ln,Un={name:"background-repeat",initialValue:"repeat",prefix:!1,type:ar.LIST,parse:function(A){return Mt(A).map(function(A){return A.filter(Ot).map(function(A){return A.value}).join(" ")}).map(Cn)}},Cn=function(A){switch(A){case"no-repeat":return on.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return on.REPEAT_X;case"repeat-y":case"no-repeat repeat":return on.REPEAT_Y;case"repeat":default:return on.REPEAT}};(function(A){A["AUTO"]="auto",A["CONTAIN"]="contain",A["COVER"]="cover"})(ln||(ln={}));var gn,En={name:"background-size",initialValue:"0",prefix:!1,type:ar.LIST,parse:function(A){return Mt(A).map(function(A){return A.filter(Fn)})}},Fn=function(A){return Ot(A)||xt(A)},hn=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:ar.TYPE_VALUE,format:"color"}},dn=hn("top"),Hn=hn("right"),fn=hn("bottom"),pn=hn("left"),Nn=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:ar.LIST,parse:function(A){return Vt(A.filter(xt))}}},Kn=Nn("top-left"),In=Nn("top-right"),mn=Nn("bottom-right"),Tn=Nn("bottom-left");(function(A){A[A["NONE"]=0]="NONE",A[A["SOLID"]=1]="SOLID"})(gn||(gn={}));var Rn,vn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"none":return gn.NONE}return gn.SOLID}}},Ln=vn("top"),On=vn("right"),bn=vn("bottom"),Dn=vn("left"),Sn=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:ar.VALUE,prefix:!1,parse:function(A){return vt(A)?A.number:0}}},yn=Sn("top"),Mn=Sn("right"),_n=Sn("bottom"),Pn=Sn("left"),xn={name:"color",initialValue:"transparent",prefix:!1,type:ar.TYPE_VALUE,format:"color"},Vn={name:"display",initialValue:"inline-block",prefix:!1,type:ar.LIST,parse:function(A){return A.filter(Ot).reduce(function(A,e){return A|zn(e.value)},0)}},zn=function(A){switch(A){case"block":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":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};(function(A){A[A["NONE"]=0]="NONE",A[A["LEFT"]=1]="LEFT",A[A["RIGHT"]=2]="RIGHT",A[A["INLINE_START"]=3]="INLINE_START",A[A["INLINE_END"]=4]="INLINE_END"})(Rn||(Rn={}));var Xn,Gn={name:"float",initialValue:"none",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"left":return Rn.LEFT;case"right":return Rn.RIGHT;case"inline-start":return Rn.INLINE_START;case"inline-end":return Rn.INLINE_END}return Rn.NONE}},Jn={name:"letter-spacing",initialValue:"0",prefix:!1,type:ar.VALUE,parse:function(A){return A.type===w.IDENT_TOKEN&&"normal"===A.value?0:A.type===w.NUMBER_TOKEN?A.number:A.type===w.DIMENSION_TOKEN?A.number:0}};(function(A){A["NORMAL"]="normal",A["STRICT"]="strict"})(Xn||(Xn={}));var kn,Wn={name:"line-break",initialValue:"normal",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"strict":return Xn.STRICT;case"normal":default:return Xn.NORMAL}}},Yn={name:"line-height",initialValue:"normal",prefix:!1,type:ar.TOKEN_VALUE},jn=function(A,e){return Ot(A)&&"normal"===A.value?1.2*e:A.type===w.NUMBER_TOKEN?e*A.number:xt(A)?kt(A,e):e},Zn={name:"list-style-image",initialValue:"none",type:ar.VALUE,prefix:!1,parse:function(A){return A.type===w.IDENT_TOKEN&&"none"===A.value?null:an.parse(A)}};(function(A){A[A["INSIDE"]=0]="INSIDE",A[A["OUTSIDE"]=1]="OUTSIDE"})(kn||(kn={}));var qn,$n={name:"list-style-position",initialValue:"outside",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"inside":return kn.INSIDE;case"outside":default:return kn.OUTSIDE}}};(function(A){A[A["NONE"]=-1]="NONE",A[A["DISC"]=0]="DISC",A[A["CIRCLE"]=1]="CIRCLE",A[A["SQUARE"]=2]="SQUARE",A[A["DECIMAL"]=3]="DECIMAL",A[A["CJK_DECIMAL"]=4]="CJK_DECIMAL",A[A["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",A[A["LOWER_ROMAN"]=6]="LOWER_ROMAN",A[A["UPPER_ROMAN"]=7]="UPPER_ROMAN",A[A["LOWER_GREEK"]=8]="LOWER_GREEK",A[A["LOWER_ALPHA"]=9]="LOWER_ALPHA",A[A["UPPER_ALPHA"]=10]="UPPER_ALPHA",A[A["ARABIC_INDIC"]=11]="ARABIC_INDIC",A[A["ARMENIAN"]=12]="ARMENIAN",A[A["BENGALI"]=13]="BENGALI",A[A["CAMBODIAN"]=14]="CAMBODIAN",A[A["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",A[A["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",A[A["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",A[A["DEVANAGARI"]=18]="DEVANAGARI",A[A["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",A[A["GEORGIAN"]=20]="GEORGIAN",A[A["GUJARATI"]=21]="GUJARATI",A[A["GURMUKHI"]=22]="GURMUKHI",A[A["HEBREW"]=22]="HEBREW",A[A["HIRAGANA"]=23]="HIRAGANA",A[A["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",A[A["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",A[A["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",A[A["KANNADA"]=27]="KANNADA",A[A["KATAKANA"]=28]="KATAKANA",A[A["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",A[A["KHMER"]=30]="KHMER",A[A["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",A[A["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",A[A["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",A[A["LAO"]=34]="LAO",A[A["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",A[A["MALAYALAM"]=36]="MALAYALAM",A[A["MONGOLIAN"]=37]="MONGOLIAN",A[A["MYANMAR"]=38]="MYANMAR",A[A["ORIYA"]=39]="ORIYA",A[A["PERSIAN"]=40]="PERSIAN",A[A["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",A[A["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",A[A["TAMIL"]=43]="TAMIL",A[A["TELUGU"]=44]="TELUGU",A[A["THAI"]=45]="THAI",A[A["TIBETAN"]=46]="TIBETAN",A[A["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",A[A["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",A[A["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",A[A["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",A[A["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED"})(qn||(qn={}));var AB,eB={name:"list-style-type",initialValue:"none",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"disc":return qn.DISC;case"circle":return qn.CIRCLE;case"square":return qn.SQUARE;case"decimal":return qn.DECIMAL;case"cjk-decimal":return qn.CJK_DECIMAL;case"decimal-leading-zero":return qn.DECIMAL_LEADING_ZERO;case"lower-roman":return qn.LOWER_ROMAN;case"upper-roman":return qn.UPPER_ROMAN;case"lower-greek":return qn.LOWER_GREEK;case"lower-alpha":return qn.LOWER_ALPHA;case"upper-alpha":return qn.UPPER_ALPHA;case"arabic-indic":return qn.ARABIC_INDIC;case"armenian":return qn.ARMENIAN;case"bengali":return qn.BENGALI;case"cambodian":return qn.CAMBODIAN;case"cjk-earthly-branch":return qn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return qn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return qn.CJK_IDEOGRAPHIC;case"devanagari":return qn.DEVANAGARI;case"ethiopic-numeric":return qn.ETHIOPIC_NUMERIC;case"georgian":return qn.GEORGIAN;case"gujarati":return qn.GUJARATI;case"gurmukhi":return qn.GURMUKHI;case"hebrew":return qn.HEBREW;case"hiragana":return qn.HIRAGANA;case"hiragana-iroha":return qn.HIRAGANA_IROHA;case"japanese-formal":return qn.JAPANESE_FORMAL;case"japanese-informal":return qn.JAPANESE_INFORMAL;case"kannada":return qn.KANNADA;case"katakana":return qn.KATAKANA;case"katakana-iroha":return qn.KATAKANA_IROHA;case"khmer":return qn.KHMER;case"korean-hangul-formal":return qn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return qn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return qn.KOREAN_HANJA_INFORMAL;case"lao":return qn.LAO;case"lower-armenian":return qn.LOWER_ARMENIAN;case"malayalam":return qn.MALAYALAM;case"mongolian":return qn.MONGOLIAN;case"myanmar":return qn.MYANMAR;case"oriya":return qn.ORIYA;case"persian":return qn.PERSIAN;case"simp-chinese-formal":return qn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return qn.SIMP_CHINESE_INFORMAL;case"tamil":return qn.TAMIL;case"telugu":return qn.TELUGU;case"thai":return qn.THAI;case"tibetan":return qn.TIBETAN;case"trad-chinese-formal":return qn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return qn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return qn.UPPER_ARMENIAN;case"disclosure-open":return qn.DISCLOSURE_OPEN;case"disclosure-closed":return qn.DISCLOSURE_CLOSED;case"none":default:return qn.NONE}}},tB=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:ar.TOKEN_VALUE}},rB=tB("top"),nB=tB("right"),BB=tB("bottom"),sB=tB("left");(function(A){A[A["VISIBLE"]=0]="VISIBLE",A[A["HIDDEN"]=1]="HIDDEN",A[A["SCROLL"]=2]="SCROLL",A[A["AUTO"]=3]="AUTO"})(AB||(AB={}));var oB,iB={name:"overflow",initialValue:"visible",prefix:!1,type:ar.LIST,parse:function(A){return A.filter(Ot).map(function(A){switch(A.value){case"hidden":return AB.HIDDEN;case"scroll":return AB.SCROLL;case"auto":return AB.AUTO;case"visible":default:return AB.VISIBLE}})}};(function(A){A["NORMAL"]="normal",A["BREAK_WORD"]="break-word"})(oB||(oB={}));var aB,cB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return oB.BREAK_WORD;case"normal":default:return oB.NORMAL}}},QB=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:ar.TYPE_VALUE,format:"length-percentage"}},uB=QB("top"),wB=QB("right"),lB=QB("bottom"),UB=QB("left");(function(A){A[A["LEFT"]=0]="LEFT",A[A["CENTER"]=1]="CENTER",A[A["RIGHT"]=2]="RIGHT"})(aB||(aB={}));var CB,gB={name:"text-align",initialValue:"left",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"right":return aB.RIGHT;case"center":case"justify":return aB.CENTER;case"left":default:return aB.LEFT}}};(function(A){A[A["STATIC"]=0]="STATIC",A[A["RELATIVE"]=1]="RELATIVE",A[A["ABSOLUTE"]=2]="ABSOLUTE",A[A["FIXED"]=3]="FIXED",A[A["STICKY"]=4]="STICKY"})(CB||(CB={}));var EB,FB={name:"position",initialValue:"static",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"relative":return CB.RELATIVE;case"absolute":return CB.ABSOLUTE;case"fixed":return CB.FIXED;case"sticky":return CB.STICKY}return CB.STATIC}},hB={name:"text-shadow",initialValue:"none",type:ar.LIST,prefix:!1,parse:function(A){return 1===A.length&&Dt(A[0],"none")?[]:Mt(A).map(function(A){for(var e={color:wr.TRANSPARENT,offsetX:zt,offsetY:zt,blur:zt},t=0,r=0;r<A.length;r++){var n=A[r];Pt(n)?(0===t?e.offsetX=n:1===t?e.offsetY=n:e.blur=n,t++):e.color=tr.parse(n)}return e})}};(function(A){A[A["NONE"]=0]="NONE",A[A["LOWERCASE"]=1]="LOWERCASE",A[A["UPPERCASE"]=2]="UPPERCASE",A[A["CAPITALIZE"]=3]="CAPITALIZE"})(EB||(EB={}));var dB,HB={name:"text-transform",initialValue:"none",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"uppercase":return EB.UPPERCASE;case"lowercase":return EB.LOWERCASE;case"capitalize":return EB.CAPITALIZE}return EB.NONE}},fB={name:"transform",initialValue:"none",prefix:!0,type:ar.VALUE,parse:function(A){if(A.type===w.IDENT_TOKEN&&"none"===A.value)return null;if(A.type===w.FUNCTION){var e=KB[A.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},pB=function(A){var e=A.filter(function(A){return A.type===w.NUMBER_TOKEN}).map(function(A){return A.number});return 6===e.length?e:null},NB=function(A){var e=A.filter(function(A){return A.type===w.NUMBER_TOKEN}).map(function(A){return A.number}),t=e[0],r=e[1],n=(e[2],e[3],e[4]),B=e[5],s=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),o=e[13];e[14],e[15];return 16===e.length?[t,r,n,B,s,o]:null},KB={matrix:pB,matrix3d:NB},IB={type:w.PERCENTAGE_TOKEN,number:50,flags:JA},mB=[IB,IB],TB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:ar.LIST,parse:function(A){var e=A.filter(xt);return 2!==e.length?mB:[e[0],e[1]]}};(function(A){A[A["VISIBLE"]=0]="VISIBLE",A[A["HIDDEN"]=1]="HIDDEN",A[A["COLLAPSE"]=2]="COLLAPSE"})(dB||(dB={}));var RB,vB={name:"visible",initialValue:"none",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"hidden":return dB.HIDDEN;case"collapse":return dB.COLLAPSE;case"visible":default:return dB.VISIBLE}}};(function(A){A["NORMAL"]="normal",A["BREAK_ALL"]="break-all",A["KEEP_ALL"]="keep-all"})(RB||(RB={}));var LB,OB={name:"word-break",initialValue:"normal",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"break-all":return RB.BREAK_ALL;case"keep-all":return RB.KEEP_ALL;case"normal":default:return RB.NORMAL}}},bB={name:"z-index",initialValue:"auto",prefix:!1,type:ar.VALUE,parse:function(A){if(A.type===w.IDENT_TOKEN)return{auto:!0,order:0};if(Lt(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},DB={name:"opacity",initialValue:"1",type:ar.VALUE,prefix:!1,parse:function(A){return Lt(A)?A.number:1}},SB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:ar.TYPE_VALUE,format:"color"},yB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:ar.LIST,parse:function(A){return A.filter(Ot).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})}},MB={name:"font-family",initialValue:"",prefix:!1,type:ar.LIST,parse:function(A){return A.filter(_B).map(function(A){return A.value})}},_B=function(A){return A.type===w.STRING_TOKEN||A.type===w.IDENT_TOKEN},PB={name:"font-size",initialValue:"0",prefix:!1,type:ar.TYPE_VALUE,format:"length"},xB={name:"font-weight",initialValue:"normal",type:ar.VALUE,prefix:!1,parse:function(A){if(Lt(A))return A.number;if(Ot(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},VB={name:"font-variant",initialValue:"none",type:ar.LIST,prefix:!1,parse:function(A){return A.filter(Ot).map(function(A){return A.value})}};(function(A){A["NORMAL"]="normal",A["ITALIC"]="italic",A["OBLIQUE"]="oblique"})(LB||(LB={}));var zB,XB={name:"font-style",initialValue:"normal",prefix:!1,type:ar.IDENT_VALUE,parse:function(A){switch(A){case"oblique":return LB.OBLIQUE;case"italic":return LB.ITALIC;case"normal":default:return LB.NORMAL}}},GB=function(A,e){return 0!==(A&e)},JB={name:"content",initialValue:"none",type:ar.LIST,prefix:!1,parse:function(A){if(0===A.length)return[];var e=A[0];return e.type===w.IDENT_TOKEN&&"none"===e.value?[]:A}},kB={name:"counter-increment",initialValue:"none",prefix:!0,type:ar.LIST,parse:function(A){if(0===A.length)return null;var e=A[0];if(e.type===w.IDENT_TOKEN&&"none"===e.value)return null;for(var t=[],r=A.filter(St),n=0;n<r.length;n++){var B=r[n],s=r[n+1];if(B.type===w.IDENT_TOKEN){var o=s&&Lt(s)?s.number:1;t.push({counter:B.value,increment:o})}}return t}},WB={name:"counter-reset",initialValue:"none",prefix:!0,type:ar.LIST,parse:function(A){if(0===A.length)return[];for(var e=[],t=A.filter(St),r=0;r<t.length;r++){var n=t[r],B=t[r+1];if(Ot(n)&&"none"!==n.value){var s=B&&Lt(B)?B.number:0;e.push({counter:n.value,reset:s})}}return e}},YB={name:"quotes",initialValue:"none",prefix:!0,type:ar.LIST,parse:function(A){if(0===A.length)return null;var e=A[0];if(e.type===w.IDENT_TOKEN&&"none"===e.value)return null;var t=[],r=A.filter(bt);if(r.length%2!==0)return null;for(var n=0;n<r.length;n+=2){var B=r[n].value,s=r[n+1].value;t.push({open:B,close:s})}return t}},jB=function(A,e,t){if(!A)return"";var r=A[Math.min(e,A.length-1)];return r?t?r.open:r.close:""},ZB={name:"box-shadow",initialValue:"none",type:ar.LIST,prefix:!1,parse:function(A){return 1===A.length&&Dt(A[0],"none")?[]:Mt(A).map(function(A){for(var e={color:255,offsetX:zt,offsetY:zt,blur:zt,spread:zt,inset:!1},t=0,r=0;r<A.length;r++){var n=A[r];Dt(n,"inset")?e.inset=!0:Pt(n)?(0===t?e.offsetX=n:1===t?e.offsetY=n:2===t?e.blur=n:e.spread=n,t++):e.color=tr.parse(n)}return e})}},qB=function(){function A(A){this.backgroundClip=es(Ur,A.backgroundClip),this.backgroundColor=es(Cr,A.backgroundColor),this.backgroundImage=es(Qn,A.backgroundImage),this.backgroundOrigin=es(un,A.backgroundOrigin),this.backgroundPosition=es(wn,A.backgroundPosition),this.backgroundRepeat=es(Un,A.backgroundRepeat),this.backgroundSize=es(En,A.backgroundSize),this.borderTopColor=es(dn,A.borderTopColor),this.borderRightColor=es(Hn,A.borderRightColor),this.borderBottomColor=es(fn,A.borderBottomColor),this.borderLeftColor=es(pn,A.borderLeftColor),this.borderTopLeftRadius=es(Kn,A.borderTopLeftRadius),this.borderTopRightRadius=es(In,A.borderTopRightRadius),this.borderBottomRightRadius=es(mn,A.borderBottomRightRadius),this.borderBottomLeftRadius=es(Tn,A.borderBottomLeftRadius),this.borderTopStyle=es(Ln,A.borderTopStyle),this.borderRightStyle=es(On,A.borderRightStyle),this.borderBottomStyle=es(bn,A.borderBottomStyle),this.borderLeftStyle=es(Dn,A.borderLeftStyle),this.borderTopWidth=es(yn,A.borderTopWidth),this.borderRightWidth=es(Mn,A.borderRightWidth),this.borderBottomWidth=es(_n,A.borderBottomWidth),this.borderLeftWidth=es(Pn,A.borderLeftWidth),this.boxShadow=es(ZB,A.boxShadow),this.color=es(xn,A.color),this.display=es(Vn,A.display),this.float=es(Gn,A.cssFloat),this.fontFamily=es(MB,A.fontFamily),this.fontSize=es(PB,A.fontSize),this.fontStyle=es(XB,A.fontStyle),this.fontVariant=es(VB,A.fontVariant),this.fontWeight=es(xB,A.fontWeight),this.letterSpacing=es(Jn,A.letterSpacing),this.lineBreak=es(Wn,A.lineBreak),this.lineHeight=es(Yn,A.lineHeight),this.listStyleImage=es(Zn,A.listStyleImage),this.listStylePosition=es($n,A.listStylePosition),this.listStyleType=es(eB,A.listStyleType),this.marginTop=es(rB,A.marginTop),this.marginRight=es(nB,A.marginRight),this.marginBottom=es(BB,A.marginBottom),this.marginLeft=es(sB,A.marginLeft),this.opacity=es(DB,A.opacity);var e=es(iB,A.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=es(cB,A.overflowWrap),this.paddingTop=es(uB,A.paddingTop),this.paddingRight=es(wB,A.paddingRight),this.paddingBottom=es(lB,A.paddingBottom),this.paddingLeft=es(UB,A.paddingLeft),this.position=es(FB,A.position),this.textAlign=es(gB,A.textAlign),this.textDecorationColor=es(SB,A.textDecorationColor||A.color),this.textDecorationLine=es(yB,A.textDecorationLine),this.textShadow=es(hB,A.textShadow),this.textTransform=es(HB,A.textTransform),this.transform=es(fB,A.transform),this.transformOrigin=es(TB,A.transformOrigin),this.visibility=es(vB,A.visibility),this.wordBreak=es(OB,A.wordBreak),this.zIndex=es(bB,A.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===dB.VISIBLE},A.prototype.isTransparent=function(){return rr(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return this.position!==CB.STATIC},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==Rn.NONE},A.prototype.isInlineLevel=function(){return GB(this.display,4)||GB(this.display,33554432)||GB(this.display,268435456)||GB(this.display,536870912)||GB(this.display,67108864)||GB(this.display,134217728)},A}(),$B=function(){function A(A){this.content=es(JB,A.content),this.quotes=es(YB,A.quotes)}return A}(),As=function(){function A(A){this.counterIncrement=es(kB,A.counterIncrement),this.counterReset=es(WB,A.counterReset)}return A}(),es=function(A,e){var t=new Tt,r=null!==e&&"undefined"!==typeof e?e.toString():A.initialValue;t.write(r);var n=new Rt(t.read());switch(A.type){case ar.IDENT_VALUE:var B=n.parseComponentValue();return A.parse(Ot(B)?B.value:A.initialValue);case ar.VALUE:return A.parse(n.parseComponentValue());case ar.LIST:return A.parse(n.parseComponentValues());case ar.TOKEN_VALUE:return n.parseComponentValue();case ar.TYPE_VALUE:switch(A.format){case"angle":return qt.parse(n.parseComponentValue());case"color":return tr.parse(n.parseComponentValue());case"image":return an.parse(n.parseComponentValue());case"length":var s=n.parseComponentValue();return Pt(s)?s:zt;case"length-percentage":var o=n.parseComponentValue();return xt(o)?o:zt}}throw new Error("Attempting to parse unsupported css format type "+A.format)},ts=function(){function A(A){this.styles=new qB(window.getComputedStyle(A,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&_s(A)&&(A.style.transform="none"),this.bounds=s(A),this.flags=0}return A}(),rs=function(){function A(A,e){this.text=A,this.bounds=e}return A}(),ns=function(A,e,t){var r=os(A,e),n=[],B=0;return r.forEach(function(A){if(e.textDecorationLine.length||A.trim().length>0)if(br.SUPPORT_RANGE_BOUNDS)n.push(new rs(A,ss(t,B,A.length)));else{var r=t.splitText(A.length);n.push(new rs(A,Bs(t))),t=r}else br.SUPPORT_RANGE_BOUNDS||(t=t.splitText(A.length));B+=A.length}),n},Bs=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var r=A.parentNode;if(r){r.replaceChild(t,A);var n=s(t);return t.firstChild&&r.replaceChild(t.firstChild,t),n}}return new B(0,0,0,0)},ss=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),B.fromClientRect(n.getBoundingClientRect())},os=function(A,e){return 0!==e.letterSpacing?i(A).map(function(A){return a(A)}):is(A,e)},is=function(A,e){var t,r=zA(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===oB.BREAK_WORD?"break-word":e.wordBreak}),n=[];while(!(t=r.next()).done)t.value&&n.push(t.value.slice());return n},as=function(){function A(A,e){this.text=cs(A.data,e.textTransform),this.textBounds=ns(this.text,e,A)}return A}(),cs=function(A,e){switch(e){case EB.LOWERCASE:return A.toLowerCase();case EB.CAPITALIZE:return A.replace(Qs,us);case EB.UPPERCASE:return A.toUpperCase();default:return A}},Qs=/(^|\s|:|-|\(|\))([a-z])/g,us=function(A,e,t){return A.length>0?e+t.toUpperCase():A},ws=function(A){function t(e){var t=A.call(this,e)||this;return t.src=e.currentSrc||e.src,t.intrinsicWidth=e.naturalWidth,t.intrinsicHeight=e.naturalHeight,Sr.getInstance().addImage(t.src),t}return e(t,A),t}(ts),ls=function(A){function t(e){var t=A.call(this,e)||this;return t.canvas=e,t.intrinsicWidth=e.width,t.intrinsicHeight=e.height,t}return e(t,A),t}(ts),Us=function(A){function t(e){var t=A.call(this,e)||this,r=new XMLSerializer;return t.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),t.intrinsicWidth=e.width.baseVal.value,t.intrinsicHeight=e.height.baseVal.value,Sr.getInstance().addImage(t.svg),t}return e(t,A),t}(ts),Cs=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(ts),gs=function(A){function t(e){var t=A.call(this,e)||this;return t.start=e.start,t.reversed="boolean"===typeof e.reversed&&!0===e.reversed,t}return e(t,A),t}(ts),Es=[{type:w.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Fs=[{type:w.PERCENTAGE_TOKEN,flags:0,number:50}],hs=function(A){return A.width>A.height?new B(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width<A.height?new B(A.left,A.top+(A.height-A.width)/2,A.width,A.width):A},ds=function(A){var e=A.type===ps?new Array(A.value.length+1).join("•"):A.value;return 0===e.length?A.placeholder||"":e},Hs="checkbox",fs="radio",ps="password",Ns=707406591,Ks=function(A){function t(e){var t=A.call(this,e)||this;switch(t.type=e.type.toLowerCase(),t.checked=e.checked,t.value=ds(e),t.type!==Hs&&t.type!==fs||(t.styles.backgroundColor=3739148031,t.styles.borderTopColor=t.styles.borderRightColor=t.styles.borderBottomColor=t.styles.borderLeftColor=2779096575,t.styles.borderTopWidth=t.styles.borderRightWidth=t.styles.borderBottomWidth=t.styles.borderLeftWidth=1,t.styles.borderTopStyle=t.styles.borderRightStyle=t.styles.borderBottomStyle=t.styles.borderLeftStyle=gn.SOLID,t.styles.backgroundClip=[cr.BORDER_BOX],t.styles.backgroundOrigin=[0],t.bounds=hs(t.bounds)),t.type){case Hs:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Es;break;case fs:t.styles.borderTopRightRadius=t.styles.borderTopLeftRadius=t.styles.borderBottomRightRadius=t.styles.borderBottomLeftRadius=Fs;break}return t}return e(t,A),t}(ts),Is=function(A){function t(e){var t=A.call(this,e)||this,r=e.options[e.selectedIndex||0];return t.value=r&&r.text||"",t}return e(t,A),t}(ts),ms=function(A){function t(e){var t=A.call(this,e)||this;return t.value=e.value,t}return e(t,A),t}(ts),Ts=function(A){return tr.parse(Rt.create(A).parseComponentValue())},Rs=function(A){function t(e){var t=A.call(this,e)||this;t.src=e.src,t.width=parseInt(e.width,10),t.height=parseInt(e.height,10),t.backgroundColor=t.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){t.tree=bs(e.contentWindow.document.documentElement);var r=e.contentWindow.document.documentElement?Ts(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):wr.TRANSPARENT,n=e.contentWindow.document.body?Ts(getComputedStyle(e.contentWindow.document.body).backgroundColor):wr.TRANSPARENT;t.backgroundColor=rr(r)?rr(n)?t.styles.backgroundColor:n:r}}catch(Me){}return t}return e(t,A),t}(ts),vs=["OL","UL","MENU"],Ls=function(A,e,t){for(var r=A.firstChild,n=void 0;r;r=n)if(n=r.nextSibling,ys(r)&&r.data.trim().length>0)e.textNodes.push(new as(r,e.styles));else if(Ms(r)){var B=Os(r);B.styles.isVisible()&&(Ds(r,B,t)?B.flags|=4:Ss(B.styles)&&(B.flags|=2),-1!==vs.indexOf(r.tagName)&&(B.flags|=8),e.elements.push(B),Zs(r)||Xs(r)||qs(r)||Ls(r,B,t))}},Os=function(A){return ks(A)?new ws(A):Js(A)?new ls(A):Xs(A)?new Us(A):Ps(A)?new Cs(A):xs(A)?new gs(A):Vs(A)?new Ks(A):qs(A)?new Is(A):Zs(A)?new ms(A):Ws(A)?new Rs(A):new ts(A)},bs=function(A){var e=Os(A);return e.flags|=4,Ls(A,e,e),e},Ds=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Gs(A)&&t.styles.isTransparent()},Ss=function(A){return A.isPositioned()||A.isFloating()},ys=function(A){return A.nodeType===Node.TEXT_NODE},Ms=function(A){return A.nodeType===Node.ELEMENT_NODE},_s=function(A){return"undefined"!==typeof A.style},Ps=function(A){return"LI"===A.tagName},xs=function(A){return"OL"===A.tagName},Vs=function(A){return"INPUT"===A.tagName},zs=function(A){return"HTML"===A.tagName},Xs=function(A){return"svg"===A.tagName},Gs=function(A){return"BODY"===A.tagName},Js=function(A){return"CANVAS"===A.tagName},ks=function(A){return"IMG"===A.tagName},Ws=function(A){return"IFRAME"===A.tagName},Ys=function(A){return"STYLE"===A.tagName},js=function(A){return"SCRIPT"===A.tagName},Zs=function(A){return"TEXTAREA"===A.tagName},qs=function(A){return"SELECT"===A.tagName},$s=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;null!==t&&t.forEach(function(A){var t=e.counters[A.counter];t&&(t[Math.max(0,t.length-1)]+=A.increment)});var n=[];return 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}(),Ao={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"]},eo={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},to={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ro={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},no=function(A,e,t,r,n,B){return A<e||A>t?go(A,n,B.length>0):r.integers.reduce(function(e,t,n){while(A>=t)A-=t,e+=r.values[n];return e},"")+B},Bo=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},so=function(A,e,t,r,n){var B=t-e+1;return(A<0?"-":"")+(Bo(Math.abs(A),B,r,function(A){return a(Math.floor(A%B)+e)})+n)},oo=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return Bo(Math.abs(A),r,!1,function(A){return e[Math.floor(A%r)]})+t},io=1,ao=2,co=4,Qo=8,uo=function(A,e,t,r,n,B){if(A<-9999||A>9999)return go(A,qn.CJK_DECIMAL,n.length>0);var s=Math.abs(A),o=n;if(0===s)return e[0]+o;for(var i=0;s>0&&i<=4;i++){var a=s%10;0===a&&GB(B,io)&&""!==o?o=e[a]+o:a>1||1===a&&0===i||1===a&&1===i&&GB(B,ao)||1===a&&1===i&&GB(B,co)&&A>100||1===a&&i>1&&GB(B,Qo)?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},wo="十百千萬",lo="拾佰仟萬",Uo="マイナス",Co="마이너스",go=function(A,e,t){var r=t?". ":"",n=t?"、":"",B=t?", ":"",s=t?" ":"";switch(e){case qn.DISC:return"•"+s;case qn.CIRCLE:return"◦"+s;case qn.SQUARE:return"◾"+s;case qn.DECIMAL_LEADING_ZERO:var o=so(A,48,57,!0,r);return o.length<4?"0"+o:o;case qn.CJK_DECIMAL:return oo(A,"〇一二三四五六七八九",n);case qn.LOWER_ROMAN:return no(A,1,3999,Ao,qn.DECIMAL,r).toLowerCase();case qn.UPPER_ROMAN:return no(A,1,3999,Ao,qn.DECIMAL,r);case qn.LOWER_GREEK:return so(A,945,969,!1,r);case qn.LOWER_ALPHA:return so(A,97,122,!1,r);case qn.UPPER_ALPHA:return so(A,65,90,!1,r);case qn.ARABIC_INDIC:return so(A,1632,1641,!0,r);case qn.ARMENIAN:case qn.UPPER_ARMENIAN:return no(A,1,9999,eo,qn.DECIMAL,r);case qn.LOWER_ARMENIAN:return no(A,1,9999,eo,qn.DECIMAL,r).toLowerCase();case qn.BENGALI:return so(A,2534,2543,!0,r);case qn.CAMBODIAN:case qn.KHMER:return so(A,6112,6121,!0,r);case qn.CJK_EARTHLY_BRANCH:return oo(A,"子丑寅卯辰巳午未申酉戌亥",n);case qn.CJK_HEAVENLY_STEM:return oo(A,"甲乙丙丁戊己庚辛壬癸",n);case qn.CJK_IDEOGRAPHIC:case qn.TRAD_CHINESE_INFORMAL:return uo(A,"零一二三四五六七八九",wo,"負",n,ao|co|Qo);case qn.TRAD_CHINESE_FORMAL:return uo(A,"零壹貳參肆伍陸柒捌玖",lo,"負",n,io|ao|co|Qo);case qn.SIMP_CHINESE_INFORMAL:return uo(A,"零一二三四五六七八九",wo,"负",n,ao|co|Qo);case qn.SIMP_CHINESE_FORMAL:return uo(A,"零壹贰叁肆伍陆柒捌玖",lo,"负",n,io|ao|co|Qo);case qn.JAPANESE_INFORMAL:return uo(A,"〇一二三四五六七八九","十百千万",Uo,n,0);case qn.JAPANESE_FORMAL:return uo(A,"零壱弐参四伍六七八九","拾百千万",Uo,n,io|ao|co);case qn.KOREAN_HANGUL_FORMAL:return uo(A,"영일이삼사오육칠팔구","십백천만",Co,B,io|ao|co);case qn.KOREAN_HANJA_INFORMAL:return uo(A,"零一二三四五六七八九","十百千萬",Co,B,0);case qn.KOREAN_HANJA_FORMAL:return uo(A,"零壹貳參四五六七八九","拾百千",Co,B,io|ao|co);case qn.DEVANAGARI:return so(A,2406,2415,!0,r);case qn.GEORGIAN:return no(A,1,19999,ro,qn.DECIMAL,r);case qn.GUJARATI:return so(A,2790,2799,!0,r);case qn.GURMUKHI:return so(A,2662,2671,!0,r);case qn.HEBREW:return no(A,1,10999,to,qn.DECIMAL,r);case qn.HIRAGANA:return oo(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case qn.HIRAGANA_IROHA:return oo(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case qn.KANNADA:return so(A,3302,3311,!0,r);case qn.KATAKANA:return oo(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case qn.KATAKANA_IROHA:return oo(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case qn.LAO:return so(A,3792,3801,!0,r);case qn.MONGOLIAN:return so(A,6160,6169,!0,r);case qn.MYANMAR:return so(A,4160,4169,!0,r);case qn.ORIYA:return so(A,2918,2927,!0,r);case qn.PERSIAN:return so(A,1776,1785,!0,r);case qn.TAMIL:return so(A,3046,3055,!0,r);case qn.TELUGU:return so(A,3174,3183,!0,r);case qn.THAI:return so(A,3664,3673,!0,r);case qn.TIBETAN:return so(A,3872,3881,!0,r);case qn.DECIMAL:default:return so(A,48,57,!0,r)}},Eo="data-html2canvas-ignore",Fo=function(){function A(A,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=A,this.counters=new $s,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}return A.prototype.toIFrame=function(A,e){var t=this,r=Ho(A,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,B=A.defaultView.pageYOffset,s=r.contentWindow,o=s.document,i=fo(r).then(function(){t.scrolledElements.forEach(Io),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(o.documentElement.style.top=-e.top+"px",o.documentElement.style.left=-e.left+"px",o.documentElement.style.position="absolute"));var A=t.options.onclone;return"undefined"===typeof t.clonedReferenceElement?Promise.reject("Error finding the "+t.referenceElement.nodeName+" in the cloned document"):"function"===typeof A?Promise.resolve().then(function(){return A(o)}).then(function(){return r}):r});return o.open(),o.write(No(document.doctype)+"<html></html>"),Ko(this.referenceElement.ownerDocument,n,B),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),i},A.prototype.createElementClone=function(A){return Js(A)?this.createCanvasClone(A):Ys(A)?this.createStyleClone(A):A.cloneNode(!1)},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(Me){if(Dr.getInstance(this.options.id).error("Unable to access cssRules property",Me),"SecurityError"!==Me.name)throw Me}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{return e.src=A.toDataURL(),e}catch(Me){Dr.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(!1);try{t.width=A.width,t.height=A.height;var r=A.getContext("2d"),n=t.getContext("2d");return n&&(r?n.putImageData(r.getImageData(0,0,A.width,A.height),0,0):n.drawImage(A,0,0)),t}catch(Me){}return t},A.prototype.cloneNode=function(A){if(ys(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var e=A.ownerDocument.defaultView;if(_s(A)&&e){var t=this.createElementClone(A),r=e.getComputedStyle(A),n=e.getComputedStyle(A,":before"),B=e.getComputedStyle(A,":after");this.referenceElement===A&&(this.clonedReferenceElement=t),Gs(t)&&Oo(t);for(var s=this.counters.parse(new As(r)),o=this.resolvePseudoContent(A,t,n,zB.BEFORE),i=A.firstChild;i;i=i.nextSibling)Ms(i)&&(js(i)||i.hasAttribute(Eo)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(i))||this.options.copyStyles&&Ms(i)&&Ys(i)||t.appendChild(this.cloneNode(i));o&&t.insertBefore(o,t.firstChild);var a=this.resolvePseudoContent(A,t,B,zB.AFTER);return a&&t.appendChild(a),this.counters.pop(s),r&&this.options.copyStyles&&!Ws(A)&&po(r,t),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([t,A.scrollLeft,A.scrollTop]),(Zs(A)||qs(A))&&(Zs(t)||qs(t))&&(t.value=A.value),t}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,e,t,r){var n=this;if(t){var B=t.content,s=e.ownerDocument;if(s&&B&&"none"!==B&&"-moz-alt-content"!==B&&"none"!==t.display){this.counters.parse(new As(t));var o=new $B(t),i=s.createElement("html2canvaspseudoelement");return po(t,i),o.content.forEach(function(e){if(e.type===w.STRING_TOKEN)i.appendChild(s.createTextNode(e.value));else if(e.type===w.URL_TOKEN){var t=s.createElement("img");t.src=e.value,t.style.opacity="1",i.appendChild(t)}else if(e.type===w.FUNCTION){if("attr"===e.name){var r=e.values.filter(Ot);r.length&&i.appendChild(s.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var B=e.values.filter(yt),a=B[0],c=B[1];if(a&&Ot(a)){var Q=n.counters.getCounterValue(a.value),u=c&&Ot(c)?eB.parse(c.value):qn.DECIMAL;i.appendChild(s.createTextNode(go(Q,u,!1)))}}else if("counters"===e.name){var l=e.values.filter(yt),U=(a=l[0],l[1]);c=l[2];if(a&&Ot(a)){var C=n.counters.getCounterValues(a.value),g=c&&Ot(c)?eB.parse(c.value):qn.DECIMAL,E=U&&U.type===w.STRING_TOKEN?U.value:"",F=C.map(function(A){return go(A,g,!1)}).join(E);i.appendChild(s.createTextNode(F))}}}else if(e.type===w.IDENT_TOKEN)switch(e.value){case"open-quote":i.appendChild(s.createTextNode(jB(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":i.appendChild(s.createTextNode(jB(o.quotes,--n.quoteDepth,!1)));break;default:}}),i.className=Ro+" "+vo,e.className+=r===zB.BEFORE?" "+Ro:" "+vo,i}}},A}();(function(A){A[A["BEFORE"]=0]="BEFORE",A[A["AFTER"]=1]="AFTER"})(zB||(zB={}));var ho,Ho=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(Eo,"true"),A.body.appendChild(t),t},fo=function(A){return new Promise(function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=n.onreadystatechange=function(){r.onload=A.onload=n.onreadystatechange=null;var t=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))},50)}})},po=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);"content"!==r&&e.style.setProperty(r,A.getPropertyValue(r))}return e},No=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},Ko=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},Io=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},mo=":before",To=":after",Ro="___html2canvas___pseudoelement_before",vo="___html2canvas___pseudoelement_after",Lo='{\n    content: "" !important;\n    display: none !important;\n}',Oo=function(A){bo(A,"."+Ro+mo+Lo+"\n         ."+vo+To+Lo)},bo=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}};(function(A){A[A["VECTOR"]=0]="VECTOR",A[A["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(ho||(ho={}));var Do,So=function(A,e){return A.length===e.length&&A.some(function(A,t){return A===e[t]})},yo=function(A,e,t,r,n){return A.map(function(A,B){switch(B){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+n);case 3:return A.add(e,t+n)}return A})},Mo=function(){function A(A,e){this.type=ho.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A}(),_o=function(A,e,t){return new Mo(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},Po=function(){function A(A,e,t,r){this.type=ho.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=_o(this.start,this.startControl,e),n=_o(this.startControl,this.endControl,e),B=_o(this.endControl,this.end,e),s=_o(r,n,e),o=_o(n,B,e),i=_o(s,o,e);return t?new A(this.start,r,s,i):new A(i,o,B,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}(),xo=function(A){return A.type===ho.BEZIER_CURVE},Vo=function(){function A(A){var e=A.styles,t=A.bounds,r=Jt(e.borderTopLeftRadius,t.width,t.height),n=r[0],B=r[1],s=Jt(e.borderTopRightRadius,t.width,t.height),o=s[0],i=s[1],a=Jt(e.borderBottomRightRadius,t.width,t.height),c=a[0],Q=a[1],u=Jt(e.borderBottomLeftRadius,t.width,t.height),w=u[0],l=u[1],U=[];U.push((n+o)/t.width),U.push((w+c)/t.width),U.push((B+l)/t.height),U.push((i+Q)/t.height);var C=Math.max.apply(Math,U);C>1&&(n/=C,B/=C,o/=C,i/=C,c/=C,Q/=C,w/=C,l/=C);var g=t.width-o,E=t.height-Q,F=t.width-c,h=t.height-l,d=e.borderTopWidth,H=e.borderRightWidth,f=e.borderBottomWidth,p=e.borderLeftWidth,N=kt(e.paddingTop,A.bounds.width),K=kt(e.paddingRight,A.bounds.width),I=kt(e.paddingBottom,A.bounds.width),m=kt(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=n>0||B>0?zo(t.left,t.top,n,B,Do.TOP_LEFT):new Mo(t.left,t.top),this.topRightBorderBox=o>0||i>0?zo(t.left+g,t.top,o,i,Do.TOP_RIGHT):new Mo(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||Q>0?zo(t.left+F,t.top+E,c,Q,Do.BOTTOM_RIGHT):new Mo(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=w>0||l>0?zo(t.left,t.top+h,w,l,Do.BOTTOM_LEFT):new Mo(t.left,t.top+t.height),this.topLeftPaddingBox=n>0||B>0?zo(t.left+p,t.top+d,Math.max(0,n-p),Math.max(0,B-d),Do.TOP_LEFT):new Mo(t.left+p,t.top+d),this.topRightPaddingBox=o>0||i>0?zo(t.left+Math.min(g,t.width+p),t.top+d,g>t.width+p?0:o-p,i-d,Do.TOP_RIGHT):new Mo(t.left+t.width-H,t.top+d),this.bottomRightPaddingBox=c>0||Q>0?zo(t.left+Math.min(F,t.width-p),t.top+Math.min(E,t.height+d),Math.max(0,c-H),Q-f,Do.BOTTOM_RIGHT):new Mo(t.left+t.width-H,t.top+t.height-f),this.bottomLeftPaddingBox=w>0||l>0?zo(t.left+p,t.top+h,Math.max(0,w-p),l-f,Do.BOTTOM_LEFT):new Mo(t.left+p,t.top+t.height-f),this.topLeftContentBox=n>0||B>0?zo(t.left+p+m,t.top+d+N,Math.max(0,n-(p+m)),Math.max(0,B-(d+N)),Do.TOP_LEFT):new Mo(t.left+p+m,t.top+d+N),this.topRightContentBox=o>0||i>0?zo(t.left+Math.min(g,t.width+p+m),t.top+d+N,g>t.width+p+m?0:o-p+m,i-(d+N),Do.TOP_RIGHT):new Mo(t.left+t.width-(H+K),t.top+d+N),this.bottomRightContentBox=c>0||Q>0?zo(t.left+Math.min(F,t.width-(p+m)),t.top+Math.min(E,t.height+d+N),Math.max(0,c-(H+K)),Q-(f+I),Do.BOTTOM_RIGHT):new Mo(t.left+t.width-(H+K),t.top+t.height-(f+I)),this.bottomLeftContentBox=w>0||l>0?zo(t.left+p+m,t.top+h,Math.max(0,w-(p+m)),l-(f+I),Do.BOTTOM_LEFT):new Mo(t.left+p+m,t.top+t.height-(f+I))}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"})(Do||(Do={}));var zo=function(A,e,t,r,n){var B=(Math.sqrt(2)-1)/3*4,s=t*B,o=r*B,i=A+t,a=e+r;switch(n){case Do.TOP_LEFT:return new Po(new Mo(A,a),new Mo(A,a-o),new Mo(i-s,e),new Mo(i,e));case Do.TOP_RIGHT:return new Po(new Mo(A,e),new Mo(A+s,e),new Mo(i,a-o),new Mo(i,a));case Do.BOTTOM_RIGHT:return new Po(new Mo(i,e),new Mo(i,e+o),new Mo(A+s,a),new Mo(A,a));case Do.BOTTOM_LEFT:default:return new Po(new Mo(i,a),new Mo(i-s,a),new Mo(A,e+o),new Mo(A,e))}},Xo=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Go=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},Jo=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},ko=function(){function A(A,e,t){this.type=0,this.offsetX=A,this.offsetY=e,this.matrix=t,this.target=6}return A}(),Wo=function(){function A(A,e){this.type=1,this.target=e,this.path=A}return A}(),Yo=function(A){return 0===A.type},jo=function(A){return 1===A.type},Zo=function(){function A(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),qo=function(){function A(A,e){if(this.container=A,this.effects=e.slice(0),this.curves=new Vo(A),null!==A.styles.transform){var t=A.bounds.left+A.styles.transformOrigin[0].number,r=A.bounds.top+A.styles.transformOrigin[1].number,n=A.styles.transform;this.effects.push(new ko(t,r,n))}if(A.styles.overflowX!==AB.VISIBLE){var B=Xo(this.curves),s=Jo(this.curves);So(B,s)?this.effects.push(new Wo(B,6)):(this.effects.push(new Wo(B,2)),this.effects.push(new Wo(s,4)))}}return A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==AB.VISIBLE){var e=Xo(this.curves),t=Jo(this.curves);So(e,t)||A.push(new Wo(t,6))}return A},A}(),$o=function(A,e,t,r){A.container.elements.forEach(function(n){var B=GB(n.flags,4),s=GB(n.flags,2),o=new qo(n,A.getParentEffects());GB(n.styles.display,2048)&&r.push(o);var i=GB(n.flags,8)?[]:r;if(B||s){var a=B||n.styles.isPositioned()?t:e,c=new Zo(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var Q=n.styles.zIndex.order;if(Q<0){var u=0;a.negativeZIndex.some(function(A,e){return Q>A.element.container.styles.zIndex.order&&(u=e,!0)}),a.negativeZIndex.splice(u,0,c)}else if(Q>0){var w=0;a.positiveZIndex.some(function(A,e){return Q>A.element.container.styles.zIndex.order&&(w=e+1,!0)}),a.positiveZIndex.splice(w,0,c)}else a.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?a.nonPositionedFloats.push(c):a.nonPositionedInlineLevel.push(c);$o(o,c,B?c:t,i)}else n.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),$o(o,e,t,i);GB(n.flags,8)&&Ai(n,i)})},Ai=function(A,e){for(var t=A instanceof gs?A.start:1,r=A instanceof gs&&A.reversed,n=0;n<e.length;n++){var B=e[n];B.container instanceof Cs&&"number"===typeof B.container.value&&0!==B.container.value&&(t=B.container.value),B.listValue=go(t,B.container.styles.listStyleType,!0),t+=r?-1:1}},ei=function(A){var e=new qo(A,[]),t=new Zo(e),r=[];return $o(e,t,t,r),Ai(e.container,r),t},ti=function(A,e){switch(e){case 0:return ri(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return ri(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return ri(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return ri(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},ri=function(A,e,t,r){var n=[];return xo(A)?n.push(A.subdivide(.5,!1)):n.push(A),xo(t)?n.push(t.subdivide(.5,!0)):n.push(t),xo(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),xo(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},ni=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Bi=function(A){var e=A.styles,t=A.bounds,r=kt(e.paddingLeft,t.width),n=kt(e.paddingRight,t.width),B=kt(e.paddingTop,t.width),s=kt(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+B+s))},si=function(A,e){return 0===A?e.bounds:2===A?Bi(e):ni(e)},oi=function(A,e){return A===cr.BORDER_BOX?e.bounds:A===cr.CONTENT_BOX?Bi(e):ni(e)},ii=function(A,e,t){var r=si(ui(A.styles.backgroundOrigin,e),A),n=oi(ui(A.styles.backgroundClip,e),A),B=Qi(ui(A.styles.backgroundSize,e),t,r),s=B[0],o=B[1],i=Jt(ui(A.styles.backgroundPosition,e),r.width-s,r.height-o),a=wi(ui(A.styles.backgroundRepeat,e),i,B,r,n),c=Math.round(r.left+i[0]),Q=Math.round(r.top+i[1]);return[a,c,Q,s,o]},ai=function(A){return Ot(A)&&A.value===ln.AUTO},ci=function(A){return"number"===typeof A},Qi=function(A,e,t){var r=e[0],n=e[1],B=e[2],s=A[0],o=A[1];if(xt(s)&&o&&xt(o))return[kt(s,t.width),kt(o,t.height)];var i=ci(B);if(Ot(s)&&(s.value===ln.CONTAIN||s.value===ln.COVER)){if(ci(B)){var a=t.width/t.height;return a<B!==(s.value===ln.COVER)?[t.width,t.width/B]:[t.height*B,t.height]}return[t.width,t.height]}var c=ci(r),Q=ci(n),u=c||Q;if(ai(s)&&(!o||ai(o))){if(c&&Q)return[r,n];if(!i&&!u)return[t.width,t.height];if(u&&i){var w=c?r:n*B,l=Q?n:r/B;return[w,l]}var U=c?r:t.width,C=Q?n:t.height;return[U,C]}if(i){var g=0,E=0;return xt(s)?g=kt(s,t.width):xt(o)&&(E=kt(o,t.height)),ai(s)?g=E*B:o&&!ai(o)||(E=g/B),[g,E]}var F=null,h=null;if(xt(s)?F=kt(s,t.width):o&&xt(o)&&(h=kt(o,t.height)),null===F||o&&!ai(o)||(h=c&&Q?F/r*n:t.height),null!==h&&ai(s)&&(F=c&&Q?h/n*r:t.width),null!==F&&null!==h)return[F,h];throw new Error("Unable to calculate background-size for element")},ui=function(A,e){var t=A[e];return"undefined"===typeof t?A[0]:t},wi=function(A,e,t,r,n){var B=e[0],s=e[1],o=t[0],i=t[1];switch(A){case on.REPEAT_X:return[new Mo(Math.round(r.left),Math.round(r.top+s)),new Mo(Math.round(r.left+r.width),Math.round(r.top+s)),new Mo(Math.round(r.left+r.width),Math.round(i+r.top+s)),new Mo(Math.round(r.left),Math.round(i+r.top+s))];case on.REPEAT_Y:return[new Mo(Math.round(r.left+B),Math.round(r.top)),new Mo(Math.round(r.left+B+o),Math.round(r.top)),new Mo(Math.round(r.left+B+o),Math.round(r.height+r.top)),new Mo(Math.round(r.left+B),Math.round(r.height+r.top))];case on.NO_REPEAT:return[new Mo(Math.round(r.left+B),Math.round(r.top+s)),new Mo(Math.round(r.left+B+o),Math.round(r.top+s)),new Mo(Math.round(r.left+B+o),Math.round(r.top+s+i)),new Mo(Math.round(r.left+B),Math.round(r.top+s+i))];default:return[new Mo(Math.round(n.left),Math.round(n.top)),new Mo(Math.round(n.left+n.width),Math.round(n.top)),new Mo(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Mo(Math.round(n.left),Math.round(n.height+n.top))]}},li="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ui="Hidden Text",Ci=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"),n=this._document.createElement("span"),B=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",B.appendChild(t),r.src=li,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Ui)),t.appendChild(n),t.appendChild(r);var s=r.offsetTop-n.offsetTop+2;t.removeChild(n),t.appendChild(this._document.createTextNode(Ui)),t.style.lineHeight="normal",r.style.verticalAlign="super";var o=r.offsetTop-t.offsetTop+2;return B.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}(),gi=1e4,Ei=function(){function A(A){this._activeEffects=[],this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=A.width+"px",this.canvas.style.height=A.height+"px",this.fontMetrics=new Ci(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x+A.scrollX,-A.y+A.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Dr.getInstance(A.id).debug("Canvas renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}return A.prototype.applyEffects=function(A,e){var t=this;while(this._activeEffects.length)this.popEffect();A.filter(function(A){return GB(A.target,e)}).forEach(function(A){return t.applyEffect(A)})},A.prototype.applyEffect=function(A){this.ctx.save(),Yo(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)),jo(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(A){return r(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return e=A.element.container.styles,e.isVisible()?(this.ctx.globalAlpha=e.opacity,[4,this.renderStackContent(A)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(A){return r(this,void 0,void 0,function(){return n(this,function(e){switch(e.label){case 0:return 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]}})})},A.prototype.renderTextWithLetterSpacing=function(A,e){var t=this;if(0===e)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+A.bounds.height);else{var r=i(A.text).map(function(A){return a(A)});r.reduce(function(e,r){return t.ctx.fillText(r,e,A.bounds.top+A.bounds.height),e+t.ctx.measureText(r).width},A.bounds.left)}},A.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return"normal"===A||"small-caps"===A}).join(""),t=A.fontFamily.join(", "),r=vt(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]},A.prototype.renderTextNode=function(A,e){return r(this,void 0,void 0,function(){var t,r,B,s,o=this;return n(this,function(n){return t=this.createFontStyle(e),r=t[0],B=t[1],s=t[2],this.ctx.font=r,A.textBounds.forEach(function(A){o.ctx.fillStyle=nr(e.color),o.renderTextWithLetterSpacing(A,e.letterSpacing);var t=e.textShadow;t.length&&A.text.trim().length&&(t.slice(0).reverse().forEach(function(e){o.ctx.shadowColor=nr(e.color),o.ctx.shadowOffsetX=e.offsetX.number*o.options.scale,o.ctx.shadowOffsetY=e.offsetY.number*o.options.scale,o.ctx.shadowBlur=e.blur.number,o.ctx.fillText(A.text,A.bounds.left,A.bounds.top+A.bounds.height)}),o.ctx.shadowColor="",o.ctx.shadowOffsetX=0,o.ctx.shadowOffsetY=0,o.ctx.shadowBlur=0),e.textDecorationLine.length&&(o.ctx.fillStyle=nr(e.textDecorationColor||e.color),e.textDecorationLine.forEach(function(e){switch(e){case 1:var t=o.fontMetrics.getMetrics(B,s).baseline;o.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top+t),A.bounds.width,1);break;case 2:o.ctx.fillRect(A.bounds.left,Math.round(A.bounds.top),A.bounds.width,1);break;case 3:var r=o.fontMetrics.getMetrics(B,s).middle;o.ctx.fillRect(A.bounds.left,Math.ceil(A.bounds.top+r),A.bounds.width,1);break}}))}),[2]})})},A.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=Bi(A),n=Jo(e);this.path(n),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()}},A.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,s,o,i,a,c,Q,u,w,l,U,C,g,E;return n(this,function(n){switch(n.label){case 0:this.applyEffects(e.effects,4),t=e.container,r=e.curves,s=t.styles,o=0,i=t.textNodes,n.label=1;case 1:return o<i.length?(a=i[o],[4,this.renderTextNode(a,s)]):[3,4];case 2:n.sent(),n.label=3;case 3:return o++,[3,1];case 4:if(!(t instanceof ws))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.options.cache.match(t.src)];case 6:return C=n.sent(),this.renderReplacedElement(t,r,C),[3,8];case 7:return n.sent(),Dr.getInstance(this.options.id).error("Error loading image "+t.src),[3,8];case 8:if(t instanceof ls&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Us))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.options.cache.match(t.svg)];case 10:return C=n.sent(),this.renderReplacedElement(t,r,C),[3,12];case 11:return n.sent(),Dr.getInstance(this.options.id).error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Rs&&t.tree?(c=new A({id:this.options.id,scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:t.width,height:t.height,cache:this.options.cache,windowWidth:t.width,windowHeight:t.height}),[4,c.render(t.tree)]):[3,14];case 13:Q=n.sent(),this.ctx.drawImage(Q,0,0,t.width,t.width,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),n.label=14;case 14:if(t instanceof Ks&&(u=Math.min(t.bounds.width,t.bounds.height),t.type===Hs?t.checked&&(this.ctx.save(),this.path([new Mo(t.bounds.left+.39363*u,t.bounds.top+.79*u),new Mo(t.bounds.left+.16*u,t.bounds.top+.5549*u),new Mo(t.bounds.left+.27347*u,t.bounds.top+.44071*u),new Mo(t.bounds.left+.39694*u,t.bounds.top+.5649*u),new Mo(t.bounds.left+.72983*u,t.bounds.top+.23*u),new Mo(t.bounds.left+.84*u,t.bounds.top+.34085*u),new Mo(t.bounds.left+.39363*u,t.bounds.top+.79*u)]),this.ctx.fillStyle=nr(Ns),this.ctx.fill(),this.ctx.restore()):t.type===fs&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+u/2,t.bounds.top+u/2,u/4,0,2*Math.PI,!0),this.ctx.fillStyle=nr(Ns),this.ctx.fill(),this.ctx.restore())),Fi(t)&&t.value.length){switch(this.ctx.font=this.createFontStyle(s)[0],this.ctx.fillStyle=nr(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign=di(t.styles.textAlign),E=Bi(t),w=0,t.styles.textAlign){case aB.CENTER:w+=E.width/2;break;case aB.RIGHT:w+=E.width;break}l=E.add(w,0,0,-E.height/2+1),this.ctx.save(),this.path([new Mo(E.left,E.top),new Mo(E.left+E.width,E.top),new Mo(E.left+E.width,E.top+E.height),new Mo(E.left,E.top+E.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new rs(t.value,l),s.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!GB(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(U=t.styles.listStyleImage,U.type!==lr.URL)return[3,18];C=void 0,g=U.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return C=n.sent(),this.ctx.drawImage(C,t.bounds.left-(C.width+10),t.bounds.top),[3,18];case 17:return n.sent(),Dr.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==qn.NONE&&(this.ctx.font=this.createFontStyle(s)[0],this.ctx.fillStyle=nr(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",E=new B(t.bounds.left,t.bounds.top+kt(t.styles.paddingTop,t.bounds.width),t.bounds.width,jn(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new rs(e.listValue,E),s.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s,o,i,a,c,Q,u,w,l,U,C;return n(this,function(n){switch(n.label){case 0:return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:n.sent(),e=0,t=A.negativeZIndex,n.label=2;case 2:return e<t.length?(C=t[e],[4,this.renderStack(C)]):[3,5];case 3:n.sent(),n.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:n.sent(),r=0,B=A.nonInlineLevel,n.label=7;case 7:return r<B.length?(C=B[r],[4,this.renderNode(C)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:s=0,o=A.nonPositionedFloats,n.label=11;case 11:return s<o.length?(C=o[s],[4,this.renderStack(C)]):[3,14];case 12:n.sent(),n.label=13;case 13:return s++,[3,11];case 14:i=0,a=A.nonPositionedInlineLevel,n.label=15;case 15:return i<a.length?(C=a[i],[4,this.renderStack(C)]):[3,18];case 16:n.sent(),n.label=17;case 17:return i++,[3,15];case 18:c=0,Q=A.inlineLevel,n.label=19;case 19:return c<Q.length?(C=Q[c],[4,this.renderNode(C)]):[3,22];case 20:n.sent(),n.label=21;case 21:return c++,[3,19];case 22:u=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return u<w.length?(C=w[u],[4,this.renderStack(C)]):[3,26];case 24:n.sent(),n.label=25;case 25:return u++,[3,23];case 26:l=0,U=A.positiveZIndex,n.label=27;case 27:return l<U.length?(C=U[l],[4,this.renderStack(C)]):[3,30];case 28:n.sent(),n.label=29;case 29:return l++,[3,27];case 30:return[2]}})})},A.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()},A.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},A.prototype.formatPath=function(A){var e=this;A.forEach(function(A,t){var r=xo(A)?A.start:A;0===t?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),xo(A)&&e.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)})},A.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)},A.prototype.resizeImage=function(A,e,t){if(A.width===e&&A.height===t)return A;var r=this.canvas.ownerDocument.createElement("canvas");r.width=e,r.height=t;var n=r.getContext("2d");return n.drawImage(A,0,0,A.width,A.height,0,0,e,t),r},A.prototype.renderBackgroundImage=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s,o;return n(this,function(i){switch(i.label){case 0:e=A.styles.backgroundImage.length-1,t=function(t){var B,s,o,i,a,c,Q,u,w,l,U,C,g,E,F,h,d,H,f,p,N,K,I,m,T,R,v,L,O,b,D;return n(this,function(n){switch(n.label){case 0:if(t.type!==lr.URL)return[3,5];B=void 0,s=t.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.options.cache.match(s)];case 2:return B=n.sent(),[3,4];case 3:return n.sent(),Dr.getInstance(r.options.id).error("Error loading background-image "+s),[3,4];case 4:return B&&(o=ii(A,e,[B.width,B.height,B.width/B.height]),h=o[0],K=o[1],I=o[2],f=o[3],p=o[4],E=r.ctx.createPattern(r.resizeImage(B,f,p),"repeat"),r.renderRepeat(h,E,K,I)),[3,6];case 5:Bn(t)?(i=ii(A,e,[null,null,null]),h=i[0],K=i[1],I=i[2],f=i[3],p=i[4],a=hr(t.angle,f,p),c=a[0],Q=a[1],u=a[2],w=a[3],l=a[4],U=document.createElement("canvas"),U.width=f,U.height=p,C=U.getContext("2d"),g=C.createLinearGradient(Q,w,u,l),Er(t.stops,c).forEach(function(A){return g.addColorStop(A.stop,nr(A.color))}),C.fillStyle=g,C.fillRect(0,0,f,p),E=r.ctx.createPattern(U,"repeat"),r.renderRepeat(h,E,K,I)):sn(t)&&(F=ii(A,e,[null,null,null]),h=F[0],d=F[1],H=F[2],f=F[3],p=F[4],N=0===t.position.length?[Xt]:t.position,K=kt(N[0],f),I=kt(N[N.length-1],p),m=fr(t,K,I,f,p),T=m[0],R=m[1],T>0&&T>0&&(v=r.ctx.createRadialGradient(d+K,H+I,0,d+K,H+I,T),Er(t.stops,2*T).forEach(function(A){return v.addColorStop(A.stop,nr(A.color))}),r.path(h),r.ctx.fillStyle=v,T!==R?(L=A.bounds.left+.5*A.bounds.width,O=A.bounds.top+.5*A.bounds.height,b=R/T,D=1/b,r.ctx.save(),r.ctx.translate(L,O),r.ctx.transform(1,0,0,b,0,0),r.ctx.translate(-L,-O),r.ctx.fillRect(d,D*(H-O)+O,f,p*D),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}})},r=this,B=0,s=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return B<s.length?(o=s[B],[5,t(o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return B++,[3,1];case 4:return[2]}})})},A.prototype.renderBorder=function(A,e,t){return r(this,void 0,void 0,function(){return n(this,function(r){return this.path(ti(t,e)),this.ctx.fillStyle=nr(A),this.ctx.fill(),[2]})})},A.prototype.renderNodeBackgroundAndBorders=function(A){return r(this,void 0,void 0,function(){var e,t,r,B,s,o,i,a,c=this;return n(this,function(n){switch(n.label){case 0:return this.applyEffects(A.effects,2),e=A.container.styles,t=!rr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor},{style:e.borderRightStyle,color:e.borderRightColor},{style:e.borderBottomStyle,color:e.borderBottomColor},{style:e.borderLeftStyle,color:e.borderLeftColor}],B=hi(ui(e.backgroundClip,0),A.curves),t||e.boxShadow.length?(this.ctx.save(),this.path(B),this.ctx.clip(),rr(e.backgroundColor)||(this.ctx.fillStyle=nr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach(function(e){c.ctx.save();var t=Xo(A.curves),r=e.inset?0:gi,n=yo(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(n)):(c.mask(t),c.ctx.clip(),c.path(n)),c.ctx.shadowOffsetX=e.offsetX.number+r,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=nr(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?nr(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),n.label=2;case 2:s=0,o=0,i=r,n.label=3;case 3:return o<i.length?(a=i[o],a.style===gn.NONE||rr(a.color)?[3,5]:[4,this.renderBorder(a.color,s++,A.curves)]):[3,6];case 4:n.sent(),n.label=5;case 5:return o++,[3,3];case 6:return[2]}})})},A.prototype.render=function(A){return r(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=nr(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),e=ei(A),[4,this.renderStack(e)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}})})},A}(),Fi=function(A){return A instanceof ms||(A instanceof Is||A instanceof Ks&&A.type!==fs&&A.type!==Hs)},hi=function(A,e){switch(A){case cr.BORDER_BOX:return Xo(e);case cr.CONTENT_BOX:return Go(e);case cr.PADDING_BOX:default:return Jo(e)}},di=function(A){switch(A){case aB.CENTER:return"center";case aB.RIGHT:return"right";case aB.LEFT:default:return"left"}},Hi=function(){function A(A){this.canvas=A.canvas?A.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=A,this.canvas.width=Math.floor(A.width*A.scale),this.canvas.height=Math.floor(A.height*A.scale),this.canvas.style.width=A.width+"px",this.canvas.style.height=A.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-A.x+A.scrollX,-A.y+A.scrollY),Dr.getInstance(A.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}return A.prototype.render=function(A){return r(this,void 0,void 0,function(){var e,t;return n(this,function(r){switch(r.label){case 0:return e=Lr(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,A),[4,fi(e)];case 1:return t=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=nr(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]}})})},A}(),fi=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))})},pi=void 0,Ni=function(A){return tr.parse(Rt.create(A).parseComponentValue())},Ki=function(A,e){return void 0===e&&(e={}),Ii(A,e)};Sr.setContext(window);var Ii=function(A,e){return r(pi,void 0,void 0,function(){var r,i,a,c,Q,u,w,l,U,C,g,E,F,h,d,H,f,p,N,K,I,m,T,R,v;return n(this,function(n){switch(n.label){case 0:if(r=A.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(i=r.defaultView,!i)throw new Error("Document is not attached to a Window");return a=(Math.round(1e3*Math.random())+Date.now()).toString(16),c=Gs(A)||zs(A)?o(r):s(A),Q=c.width,u=c.height,w=c.left,l=c.top,U={allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},C=t({},U,e),g={backgroundColor:"#ffffff",cache:e.cache?e.cache:Sr.create(a,C),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:i.devicePixelRatio||1,windowWidth:i.innerWidth,windowHeight:i.innerHeight,scrollX:i.pageXOffset,scrollY:i.pageYOffset,x:w,y:l,width:Math.ceil(Q),height:Math.ceil(u),id:a},E=t({},g,C,e),F=new B(E.scrollX,E.scrollY,E.windowWidth,E.windowHeight),Dr.create(a),Dr.getInstance(a).debug("Starting document clone"),h=new Fo(A,{id:a,onclone:E.onclone,ignoreElements:E.ignoreElements,inlineImages:E.foreignObjectRendering,copyStyles:E.foreignObjectRendering}),d=h.clonedReferenceElement,d?[4,h.toIFrame(r,F)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return H=n.sent(),f=r.documentElement?Ni(getComputedStyle(r.documentElement).backgroundColor):wr.TRANSPARENT,p=r.body?Ni(getComputedStyle(r.body).backgroundColor):wr.TRANSPARENT,N=e.backgroundColor,K="string"===typeof N?Ni(N):4294967295,I=A===r.documentElement?rr(f)?rr(p)?K:p:f:K,m={id:a,cache:E.cache,backgroundColor:I,scale:E.scale,x:E.x,y:E.y,scrollX:E.scrollX,scrollY:E.scrollY,width:E.width,height:E.height,windowWidth:E.windowWidth,windowHeight:E.windowHeight},E.foreignObjectRendering?(Dr.getInstance(a).debug("Document cloned, using foreign object rendering"),v=new Hi(m),[4,v.render(d)]):[3,3];case 2:return T=n.sent(),[3,5];case 3:return Dr.getInstance(a).debug("Document cloned, using computed rendering"),Sr.attachInstance(E.cache),Dr.getInstance(a).debug("Starting DOM parsing"),R=bs(d),Sr.detachInstance(),I===R.styles.backgroundColor&&(R.styles.backgroundColor=wr.TRANSPARENT),Dr.getInstance(a).debug("Starting renderer"),v=new Ei(m),[4,v.render(R)];case 4:T=n.sent(),n.label=5;case 5:return!0===E.removeContainer&&(mi(H)||Dr.getInstance(a).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Dr.getInstance(a).debug("Finished rendering"),Dr.destroy(a),Sr.destroy(a),[2,T]}})})},mi=function(A){return!!A.parentNode&&(A.parentNode.removeChild(A),!0)};return Ki})},c5f8:function(A,e,t){"use strict";var r=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"slider-banner product-bg"},[A.imgUrls.length>0?t("swiper",{staticClass:"swiper-wrapper",attrs:{options:A.ProductConSwiper}},A._l(A.imgUrls,function(A){return t("swiperSlide",{key:A,ref:"goodSwiper",refInFor:!0,staticClass:"swiper-slide"},[t("img",{staticClass:"slide-image",attrs:{src:A}})])}),1):A._e(),t("div",{staticClass:"pages"},[A._v(A._s(A.currents||1)+"/"+A._s(A.imgUrls.length||1))])],1)},n=[],B=t("7212"),s=(t("e5d0"),{name:"ProductConSwiper",components:{swiper:B["swiper"],swiperSlide:B["swiperSlide"]},props:{imgUrls:{type:Array,default:function(){return[]}}},data:function(){var A=this;return{currents:1,ProductConSwiper:{autoplay:{disableOnInteraction:!1,delay:2e3},loop:!0,speed:1e3,observer:!0,observeParents:!0,on:{slideChangeTransitionStart:function(){A.currents=this.realIndex+1}}}}},mounted:function(){},methods:{}}),o=s,i=t("2877"),a=Object(i["a"])(o,r,n,!1,null,null,null);e["a"]=a.exports},c6da:function(A,e,t){"use strict";var r=function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",[t("div",{staticClass:"product-window",class:!0===A.attr.cartAttr?"on":""},[t("div",{staticClass:"textpic acea-row row-between-wrapper"},[t("div",{staticClass:"pictrue"},[t("img",{staticClass:"image",attrs:{src:A.attr.productSelect.image}})]),t("div",{staticClass:"text"},[t("div",{staticClass:"line1"},[A._v("\n          "+A._s(A.attr.productSelect.store_name)+"\n        ")]),t("div",{staticClass:"money font-color-red"},[A._v("\n          ￥"),t("span",{staticClass:"num"},[A._v(A._s(A.attr.productSelect.price))]),t("span",{staticClass:"stock"},[A._v("库存: "+A._s(A.attr.productSelect.stock))])])]),t("div",{staticClass:"iconfont icon-guanbi",on:{click:A.closeAttr}})]),t("div",{staticClass:"productWinList"},A._l(A.attr.productAttr,function(e,r){return t("div",{key:r,staticClass:"item"},[t("div",{staticClass:"title"},[A._v(A._s(e.attr_name))]),t("div",{staticClass:"listn acea-row row-middle"},A._l(e.attr_value,function(n,B){return t("div",{key:B,staticClass:"itemn",class:e.index===B?"on":"",on:{click:function(e){return A.tapAttr(r,B)}}},[A._v("\n            "+A._s(n.attr)+"\n          ")])}),0)])}),0),t("div",{staticClass:"cart"},[t("div",{staticClass:"title"},[A._v("数量")]),t("div",{staticClass:"carnum acea-row row-left"},[t("div",{staticClass:"item reduce",class:A.attr.productSelect.cart_num<=1?"on":"",on:{click:A.CartNumDes}},[A._v("\n          -\n        ")]),t("div",{staticClass:"item num"},[A._v(A._s(A.attr.productSelect.cart_num))]),t("div",{staticClass:"item plus",class:A.attr.productSelect.cart_num>=A.attr.productSelect.stock?"on":"",on:{click:A.CartNumAdd}},[A._v("\n          +\n        ")])])])]),t("div",{staticClass:"mask",attrs:{hidden:!1===A.attr.cartAttr},on:{touchmove:function(A){A.preventDefault()},click:A.closeAttr}})])},n=[],B=(t("55dd"),{name:"ProductWindow",props:{attr:{type:Object,default:function(){}}},data:function(){return{}},mounted:function(){},methods:{closeAttr:function(){this.$emit("changeFun",{action:"changeattr",value:!1})},CartNumDes:function(){this.$emit("changeFun",{action:"ChangeCartNum",value:!1})},CartNumAdd:function(){this.$emit("changeFun",{action:"ChangeCartNum",value:1})},tapAttr:function(A,e){var t=this;t.attr.productAttr[A].index=e;var r=t.getCheckedValue().sort().join(",");t.$emit("changeFun",{action:"ChangeAttr",value:r})},getCheckedValue:function(){for(var A=this.attr.productAttr,e=[],t=0;t<A.length;t++)for(var r=0;r<A[t].attr_values.length;r++)A[t].index===r&&e.push(A[t].attr_values[r]);return e}}}),s=B,o=t("2877"),i=Object(o["a"])(s,r,n,!1,null,null,null);e["a"]=i.exports},cbd6:function(A,e,t){"use strict";var r=function(){var A=this,e=A.$createElement,r=A._self._c||e;return A.posterImageStatus?r("div",{staticClass:"poster-first"},[r("div",{directives:[{name:"show",rawName:"v-show",value:!A.canvasStatus,expression:"!canvasStatus"}],staticClass:"poster-pop"},[r("img",{staticClass:"close",attrs:{src:t("acb3")},on:{click:A.posterImageClose}}),r("div",{ref:"poster",staticClass:"canvas"},[r("img",{staticClass:"image",attrs:{src:A.posterData.image,alt:"商品图片"}}),r("div",{staticClass:"text black"},[r("span",{domProps:{textContent:A._s(A.posterData.title)}})]),r("div",{staticClass:"text rad"},[r("span",{domProps:{textContent:A._s("￥"+A.posterData.price)}})]),r("div",{staticClass:"code acea-row row-between-wrapper"},[r("div",{staticClass:"code-img"},[r("img",{attrs:{src:A.posterData.code,alt:"二维码"}})]),A._m(0)])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:A.canvasStatus,expression:"canvasStatus"}],staticClass:"poster-pop"},[r("img",{staticClass:"close",attrs:{src:t("acb3")},on:{click:A.posterImageClose}}),r("img",{staticClass:"poster-image",attrs:{src:A.posterImage,alt:"tp"}}),r("div",{staticClass:"keep"},[A._v("长按图片可以保存到手机")])]),r("div",{staticClass:"mask"})]):A._e()},n=[function(){var A=this,e=A.$createElement,t=A._self._c||e;return t("div",{staticClass:"code-text"},[t("span",[A._v("长按识别二维码 立即购买")])])}],B=t("c0e9"),s=t.n(B),o={name:"StorePoster",props:{posterImageStatus:Boolean,posterData:Object},data:function(){return{canvasStatus:!1}},watch:{posterImageStatus:function(){var A=this;!0===A.posterImageStatus&&A.$nextTick(function(){A.savePosterPath()})}},mounted:function(){},methods:{posterImageClose:function(){this.posterImageStatus=!1,this.canvasStatus=!1,this.$emit("setPosterImageStatus")},savePosterPath:function(){this.$dialog.loading.open(),this.setHtml2Canvas()},setHtml2Canvas:function(){var A=this,e=document.createElement("canvas"),t=A.$refs.poster,r=parseInt(window.getComputedStyle(t).width),n=parseInt(window.getComputedStyle(t).height);e.width=2*r,e.height=2*n,e.style.width=r+"px",e.style.height=n+"px";var B=e.getContext("2d");B.scale(2,2);var o={backgroundColor:null,canvas:e,useCORS:!0};setTimeout(function(){s()(t,o).then(function(e){A.posterImage=e.toDataURL(),A.canvasStatus=!0,A.$dialog.loading.close()})},500)}}},i=o,a=(t("f29e"),t("2877")),c=Object(a["a"])(i,r,n,!1,null,"ab013378",null);e["a"]=c.exports},f29e:function(A,e,t){"use strict";var r=t("18c3"),n=t.n(r);n.a}}]);
//# sourceMappingURL=chunk-67139ec8.a659721f.js.map