(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~addContent"],{"072e":function(A,e,t){
/*!
 * html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
 * Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 */
A.exports=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 r=function(A,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)if(e.hasOwnProperty(t))A[t]=e[t]};return r(A,e)};function e(A,e){r(A,e);function t(){this.constructor=A}A.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var m=function(){m=Object.assign||function A(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return m.apply(this,arguments)};function a(i,o,s,B){return new(s||(s=Promise))(function(A,e){function t(A){try{n(B.next(A))}catch(A){e(A)}}function r(A){try{n(B["throw"](A))}catch(A){e(A)}}function n(e){e.done?A(e.value):new s(function(A){A(e.value)}).then(t,r)}n((B=B.apply(i,o||[])).next())})}function S(A,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,e;return e={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(e[Symbol.iterator]=function(){return this}),e;function s(e){return function(A){return B([e,A])}}function B(e){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=e[0]&2?i["return"]:e[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,e[1])).done)return o;if(i=0,o)e=[e[0]&2,o.value];switch(e[0]){case 0:case 1:o=e;break;case 4:r.label++;return{value:e[1],done:false};case 5:r.label++;i=e[1];e=[0];continue;case 7:e=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(e[0]===6||e[0]===2)){r=0;continue}if(e[0]===3&&(!o||e[1]>o[0]&&e[1]<o[3])){r.label=e[1];break}if(e[0]===6&&r.label<o[1]){r.label=o[1];o=e;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(e);break}if(o[2])r.ops.pop();r.trys.pop();continue}e=t.call(A,r)}catch(A){e=[6,A];i=0}finally{n=o=0}if(e[0]&5)throw e[1];return{value:e[0]?e[1]:void 0,done:true}}}for(var I=function(){function n(A,e,t,r){this.left=A;this.top=e;this.width=t;this.height=r}n.prototype.add=function(A,e,t,r){return new n(this.left+A,this.top+e,this.width+t,this.height+r)};n.fromClientRect=function(A){return new n(A.left,A.top,A.width,A.height)};return n}(),T=function(A){return I.fromClientRect(A.getBoundingClientRect())},y=function(A){var e=A.body;var 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));var n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new I(0,0,r,n)},c=function(A){var e=[];var t=0;var r=A.length;while(t<r){var n=A.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=A.charCodeAt(t++);if((i&64512)===56320){e.push(((n&1023)<<10)+(i&1023)+65536)}else{e.push(n);t--}}else{e.push(n)}}return e},w=function(){var A=[];for(var 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=[];var n=-1;var i="";while(++n<t){var o=A[n];if(o<=65535){r.push(o)}else{o-=65536;r.push((o>>10)+55296,o%1024+56320)}if(n+1===t||r.length>16384){i+=String.fromCharCode.apply(String,r);r.length=0}}return i},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=typeof Uint8Array==="undefined"?[]:new Uint8Array(256),t=0;t<A.length;t++){u[A.charCodeAt(t)]=t}var s=function(A){var e=A.length*.75,t=A.length,r,n=0,i,o,s,B;if(A[A.length-1]==="="){e--;if(A[A.length-2]==="="){e--}}var a=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined"&&typeof Uint8Array.prototype.slice!=="undefined"?new ArrayBuffer(e):new Array(e);var c=Array.isArray(a)?a:new Uint8Array(a);for(r=0;r<t;r+=4){i=u[A.charCodeAt(r)];o=u[A.charCodeAt(r+1)];s=u[A.charCodeAt(r+2)];B=u[A.charCodeAt(r+3)];c[n++]=i<<2|o>>4;c[n++]=(o&15)<<4|s>>2;c[n++]=(s&3)<<6|B&63}return a},B=function(A){var e=A.length;var t=[];for(var r=0;r<e;r+=2){t.push(A[r+1]<<8|A[r])}return t},l=function(A){var e=A.length;var t=[];for(var r=0;r<e;r+=4){t.push(A[r+3]<<24|A[r+2]<<16|A[r+1]<<8|A[r])}return t},n=5,i=6+5,o=2,Q,f=65536>>n,U,h=(1<<n)-1,g,C,E,d,F=f+(1024>>n)+(2048>>6),p=65536>>i,H,N=(1<<i-n)-1,v=function(A,e,t){if(A.slice){return A.slice(e,t)}return new Uint16Array(Array.prototype.slice.call(A,e,t))},K=function(A,e,t){if(A.slice){return A.slice(e,t)}return new Uint32Array(Array.prototype.slice.call(A,e,t))},R=function(A){var e=s(A);var t=Array.isArray(e)?l(e):new Uint32Array(e);var r=Array.isArray(e)?B(e):new Uint16Array(e);var n=24;var i=v(r,n/2,t[4]/2);var o=t[5]===2?v(r,(n+t[4])/2):K(t,Math.ceil((n+t[4])/4));return new b(t[0],t[1],t[2],t[3],i,o)},b=function(){function A(A,e,t,r,n,i){this.initialValue=A;this.errorValue=e;this.highStart=t;this.highValueIndex=r;this.index=n;this.data=i}A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535){e=this.index[A>>n];e=(e<<o)+(A&h);return this.data[e]}if(A<=65535){e=this.index[f+(A-55296>>n)];e=(e<<o)+(A&h);return this.data[e]}if(A<this.highStart){e=F-p+(A>>i);e=this.index[e];e+=A>>n&N;e=this.index[e];e=(e<<o)+(A&h);return this.data[e]}if(A<=1114111){return this.data[this.highValueIndex]}}return this.errorValue};return A}(),O,L=50,_=1,D=2,M=3,x=4,P=5,V=7,z=8,X=9,G=10,J=11,k=12,W=13,Y=14,j=15,q=16,Z=17,$=18,AA=19,eA=20,tA=21,rA=22,nA=23,iA=24,oA=25,sA=26,BA=27,aA=28,cA=29,uA=30,lA=31,QA=32,fA=33,wA=34,UA=35,hA=36,gA=37,CA=38,EA=39,dA=40,FA=41,pA=42,HA=43,NA="!",vA="×",KA="÷",mA=R(" "),IA=[uA,hA],TA=[_,D,M,P],yA=[G,z],RA=[BA,sA],bA=TA.concat(yA),OA=[CA,EA,dA,wA,UA],LA=[j,W],_A=function(A,n){if(n===void 0){n="strict"}var i=[];var o=[];var s=[];A.forEach(function(A,e){var t=mA.get(A);if(t>L){s.push(true);t-=L}else{s.push(false)}if(["normal","auto","loose"].indexOf(n)!==-1){if([8208,8211,12316,12448].indexOf(A)!==-1){o.push(e);return i.push(q)}}if(t===x||t===J){if(e===0){o.push(e);return i.push(uA)}var r=i[e-1];if(bA.indexOf(r)===-1){o.push(o[e-1]);return i.push(r)}o.push(e);return i.push(uA)}o.push(e);if(t===lA){return i.push(n==="strict"?tA:gA)}if(t===pA){return i.push(uA)}if(t===cA){return i.push(uA)}if(t===HA){if(A>=131072&&A<=196605||A>=196608&&A<=262141){return i.push(gA)}else{return i.push(uA)}}i.push(t)});return[o,i,s]},SA=function(A,e,t,r){var n=r[t];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n){var i=t;while(i<=r.length){i++;var o=r[i];if(o===e){return true}if(o!==G){break}}}if(n===G){var i=t;while(i>0){i--;var s=r[i];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s){var B=t;while(B<=r.length){B++;var o=r[B];if(o===e){return true}if(o!==G){break}}}if(s!==G){break}}}return false},DA=function(A,e){var t=A;while(t>=0){var r=e[t];if(r===G){t--}else{return r}}return 0},MA=function(A,e,t,r,n){if(t[r]===0){return vA}var i=r-1;if(Array.isArray(n)&&n[i]===true){return vA}var o=i-1;var s=i+1;var B=e[i];var a=o>=0?e[o]:0;var c=e[s];if(B===D&&c===M){return vA}if(TA.indexOf(B)!==-1){return NA}if(TA.indexOf(c)!==-1){return vA}if(yA.indexOf(c)!==-1){return vA}if(DA(i,e)===z){return KA}if(mA.get(A[i])===J&&(c===gA||c===QA||c===fA)){return vA}if(B===V||c===V){return vA}if(B===X){return vA}if([G,W,j].indexOf(B)===-1&&c===X){return vA}if([Z,$,AA,iA,aA].indexOf(c)!==-1){return vA}if(DA(i,e)===rA){return vA}if(SA(nA,rA,i,e)){return vA}if(SA([Z,$],tA,i,e)){return vA}if(SA(k,k,i,e)){return vA}if(B===G){return KA}if(B===nA||c===nA){return vA}if(c===q||B===q){return KA}if([W,j,tA].indexOf(c)!==-1||B===Y){return vA}if(a===hA&&LA.indexOf(B)!==-1){return vA}if(B===aA&&c===hA){return vA}if(c===eA&&IA.concat(eA,AA,oA,gA,QA,fA).indexOf(B)!==-1){return vA}if(IA.indexOf(c)!==-1&&B===oA||IA.indexOf(B)!==-1&&c===oA){return vA}if(B===BA&&[gA,QA,fA].indexOf(c)!==-1||[gA,QA,fA].indexOf(B)!==-1&&c===sA){return vA}if(IA.indexOf(B)!==-1&&RA.indexOf(c)!==-1||RA.indexOf(B)!==-1&&IA.indexOf(c)!==-1){return vA}if([BA,sA].indexOf(B)!==-1&&(c===oA||[rA,j].indexOf(c)!==-1&&e[s+1]===oA)||[rA,j].indexOf(B)!==-1&&c===oA||B===oA&&[oA,aA,iA].indexOf(c)!==-1){return vA}if([oA,aA,iA,Z,$].indexOf(c)!==-1){var u=i;while(u>=0){var l=e[u];if(l===oA){return vA}else if([aA,iA].indexOf(l)!==-1){u--}else{break}}}if([BA,sA].indexOf(c)!==-1){var u=[Z,$].indexOf(B)!==-1?o:i;while(u>=0){var l=e[u];if(l===oA){return vA}else if([aA,iA].indexOf(l)!==-1){u--}else{break}}}if(CA===B&&[CA,EA,wA,UA].indexOf(c)!==-1||[EA,wA].indexOf(B)!==-1&&[EA,dA].indexOf(c)!==-1||[dA,UA].indexOf(B)!==-1&&c===dA){return vA}if(OA.indexOf(B)!==-1&&[eA,sA].indexOf(c)!==-1||OA.indexOf(c)!==-1&&B===BA){return vA}if(IA.indexOf(B)!==-1&&IA.indexOf(c)!==-1){return vA}if(B===iA&&IA.indexOf(c)!==-1){return vA}if(IA.concat(oA).indexOf(B)!==-1&&c===rA||IA.concat(oA).indexOf(c)!==-1&&B===$){return vA}if(B===FA&&c===FA){var Q=t[i];var f=1;while(Q>0){Q--;if(e[Q]===FA){f++}else{break}}if(f%2!==0){return vA}}if(B===QA&&c===fA){return vA}return KA},xA=function(t,A){if(!A){A={lineBreak:"normal",wordBreak:"normal"}}var e=_A(t,A.lineBreak),r=e[0],n=e[1],i=e[2];if(A.wordBreak==="break-all"||A.wordBreak==="break-word"){n=n.map(function(A){return[oA,uA,pA].indexOf(A)!==-1?gA:A})}var o=A.wordBreak==="keep-all"?i.map(function(A,e){return A&&t[e]>=19968&&t[e]<=40959}):undefined;return[r,n,o]},PA=function(){function A(A,e,t,r){this.codePoints=A;this.required=e===NA;this.start=t;this.end=r}A.prototype.slice=function(){return w.apply(void 0,this.codePoints.slice(this.start,this.end))};return A}(),VA=function(A,e){var t=c(A);var r=xA(t,e),n=r[0],i=r[1],o=r[2];var s=t.length;var B=0;var a=0;return{next:function(){if(a>=s){return{done:true,value:null}}var A=vA;while(a<s&&(A=MA(t,i,n,++a,o))===vA){}if(A!==vA||a===s){var e=new PA(t,A,B,a);B=a;return{value:e,done:false}}return{done:true,value:null}}}},zA;(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"})(zA||(zA={}));var XA=1<<0,GA=1<<1,JA=1<<2,kA=1<<3,WA=10,YA=47,jA=92,qA=9,ZA=32,$A=34,Ae=61,ee=35,te=36,re=37,ne=39,ie=40,oe=41,se=95,Be=45,ae=33,ce=60,ue=62,le=64,Qe=91,fe=93,we=61,Ue=123,he=63,ge=125,Ce=124,Ee=126,de=128,Fe=65533,pe=42,He=43,Ne=44,ve=58,Ke=59,me=46,Ie=0,Te=8,ye=11,Re=14,be=31,Oe=127,Le=-1,_e=48,Se=97,De=101,Me=102,xe=117,Pe=122,Ve=65,ze=69,Xe=70,Ge=85,Je=90,ke=function(A){return A>=_e&&A<=57},We=function(A){return A>=55296&&A<=57343},Ye=function(A){return ke(A)||A>=Ve&&A<=Xe||A>=Se&&A<=Me},je=function(A){return A>=Se&&A<=Pe},qe=function(A){return A>=Ve&&A<=Je},Ze=function(A){return je(A)||qe(A)},$e=function(A){return A>=de},At=function(A){return A===WA||A===qA||A===ZA},et=function(A){return Ze(A)||$e(A)||A===se},tt=function(A){return et(A)||ke(A)||A===Be},rt=function(A){return A>=Ie&&A<=Te||A===ye||A>=Re&&A<=be||A===Oe},nt=function(A,e){if(A!==jA){return false}return e!==WA},it=function(A,e,t){if(A===Be){return et(e)||nt(e,t)}else if(et(A)){return true}else if(A===jA&&nt(A,e)){return true}return false},ot=function(A,e,t){if(A===He||A===Be){if(ke(e)){return true}return e===me&&ke(t)}if(A===me){return ke(e)}return ke(A)},st=function(A){var e=0;var t=1;if(A[e]===He||A[e]===Be){if(A[e]===Be){t=-1}e++}var r=[];while(ke(A[e])){r.push(A[e++])}var n=r.length?parseInt(w.apply(void 0,r),10):0;if(A[e]===me){e++}var i=[];while(ke(A[e])){i.push(A[e++])}var o=i.length;var s=o?parseInt(w.apply(void 0,i),10):0;if(A[e]===ze||A[e]===De){e++}var B=1;if(A[e]===He||A[e]===Be){if(A[e]===Be){B=-1}e++}var a=[];while(ke(A[e])){a.push(A[e++])}var c=a.length?parseInt(w.apply(void 0,a),10):0;return t*(n+s*Math.pow(10,-o))*Math.pow(10,B*c)},Bt={type:zA.LEFT_PARENTHESIS_TOKEN},at={type:zA.RIGHT_PARENTHESIS_TOKEN},ct={type:zA.COMMA_TOKEN},ut={type:zA.SUFFIX_MATCH_TOKEN},lt={type:zA.PREFIX_MATCH_TOKEN},Qt={type:zA.COLUMN_TOKEN},ft={type:zA.DASH_MATCH_TOKEN},wt={type:zA.INCLUDE_MATCH_TOKEN},Ut={type:zA.LEFT_CURLY_BRACKET_TOKEN},ht={type:zA.RIGHT_CURLY_BRACKET_TOKEN},gt={type:zA.SUBSTRING_MATCH_TOKEN},Ct={type:zA.BAD_URL_TOKEN},Et={type:zA.BAD_STRING_TOKEN},dt={type:zA.CDO_TOKEN},Ft={type:zA.CDC_TOKEN},pt={type:zA.COLON_TOKEN},Ht={type:zA.SEMICOLON_TOKEN},Nt={type:zA.LEFT_SQUARE_BRACKET_TOKEN},vt={type:zA.RIGHT_SQUARE_BRACKET_TOKEN},Kt={type:zA.WHITESPACE_TOKEN},mt={type:zA.EOF_TOKEN},It=function(){function A(){this._value=[]}A.prototype.write=function(A){this._value=this._value.concat(c(A))};A.prototype.read=function(){var A=[];var 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);var t=this.peekCodePoint(1);var r=this.peekCodePoint(2);if(tt(e)||nt(t,r)){var n=it(e,t,r)?GA:XA;var i=this.consumeName();return{type:zA.HASH_TOKEN,value:i,flags:n}}break;case te:if(this.peekCodePoint(0)===Ae){this.consumeCodePoint();return ut}break;case ne:return this.consumeStringToken(ne);case ie:return Bt;case oe:return at;case pe:if(this.peekCodePoint(0)===Ae){this.consumeCodePoint();return gt}break;case He:if(ot(A,this.peekCodePoint(0),this.peekCodePoint(1))){this.reconsumeCodePoint(A);return this.consumeNumericToken()}break;case Ne:return ct;case Be:var o=A;var s=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(ot(o,s,B)){this.reconsumeCodePoint(A);return this.consumeNumericToken()}if(it(o,s,B)){this.reconsumeCodePoint(A);return this.consumeIdentLikeToken()}if(s===Be&&B===ue){this.consumeCodePoint();this.consumeCodePoint();return Ft}break;case me:if(ot(A,this.peekCodePoint(0),this.peekCodePoint(1))){this.reconsumeCodePoint(A);return this.consumeNumericToken()}break;case YA:if(this.peekCodePoint(0)===pe){this.consumeCodePoint();while(true){var a=this.consumeCodePoint();if(a===pe){a=this.consumeCodePoint();if(a===YA){return this.consumeToken()}}if(a===Le){return this.consumeToken()}}}break;case ve:return pt;case Ke:return Ht;case ce:if(this.peekCodePoint(0)===ae&&this.peekCodePoint(1)===Be&&this.peekCodePoint(2)===Be){this.consumeCodePoint();this.consumeCodePoint();return dt}break;case le:var c=this.peekCodePoint(0);var u=this.peekCodePoint(1);var l=this.peekCodePoint(2);if(it(c,u,l)){var i=this.consumeName();return{type:zA.AT_KEYWORD_TOKEN,value:i}}break;case Qe:return Nt;case jA:if(nt(A,this.peekCodePoint(0))){this.reconsumeCodePoint(A);return this.consumeIdentLikeToken()}break;case fe:return vt;case we:if(this.peekCodePoint(0)===Ae){this.consumeCodePoint();return lt}break;case Ue:return Ut;case ge:return ht;case xe:case Ge:var Q=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(Q===He&&(Ye(f)||f===he)){this.consumeCodePoint();this.consumeUnicodeRangeToken()}this.reconsumeCodePoint(A);return this.consumeIdentLikeToken();case Ce:if(this.peekCodePoint(0)===Ae){this.consumeCodePoint();return ft}if(this.peekCodePoint(0)===Ce){this.consumeCodePoint();return Qt}break;case Ee:if(this.peekCodePoint(0)===Ae){this.consumeCodePoint();return wt}break;case Le:return mt}if(At(A)){this.consumeWhiteSpace();return Kt}if(ke(A)){this.reconsumeCodePoint(A);return this.consumeNumericToken()}if(et(A)){this.reconsumeCodePoint(A);return this.consumeIdentLikeToken()}return{type:zA.DELIM_TOKEN,value:w(A)}};A.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A==="undefined"?-1:A};A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)};A.prototype.peekCodePoint=function(A){if(A>=this._value.length){return-1}return this._value[A]};A.prototype.consumeUnicodeRangeToken=function(){var A=[];var e=this.consumeCodePoint();while(Ye(e)&&A.length<6){A.push(e);e=this.consumeCodePoint()}var t=false;while(e===he&&A.length<6){A.push(e);e=this.consumeCodePoint();t=true}if(t){var r=parseInt(w.apply(void 0,A.map(function(A){return A===he?_e:A})),16);var n=parseInt(w.apply(void 0,A.map(function(A){return A===he?Xe:A})),16);return{type:zA.UNICODE_RANGE_TOKEN,start:r,end:n}}var i=parseInt(w.apply(void 0,A),16);if(this.peekCodePoint(0)===Be&&Ye(this.peekCodePoint(1))){this.consumeCodePoint();e=this.consumeCodePoint();var o=[];while(Ye(e)&&o.length<6){o.push(e);e=this.consumeCodePoint()}var n=parseInt(w.apply(void 0,o),16);return{type:zA.UNICODE_RANGE_TOKEN,start:i,end:n}}else{return{type:zA.UNICODE_RANGE_TOKEN,start:i,end:i}}};A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();if(A.toLowerCase()==="url"&&this.peekCodePoint(0)===ie){this.consumeCodePoint();return this.consumeUrlToken()}else if(this.peekCodePoint(0)===ie){this.consumeCodePoint();return{type:zA.FUNCTION_TOKEN,value:A}}return{type:zA.IDENT_TOKEN,value:A}};A.prototype.consumeUrlToken=function(){var A=[];this.consumeWhiteSpace();if(this.peekCodePoint(0)===Le){return{type:zA.URL_TOKEN,value:""}}var e=this.peekCodePoint(0);if(e===ne||e===$A){var t=this.consumeStringToken(this.consumeCodePoint());if(t.type===zA.STRING_TOKEN){this.consumeWhiteSpace();if(this.peekCodePoint(0)===Le||this.peekCodePoint(0)===oe){this.consumeCodePoint();return{type:zA.URL_TOKEN,value:t.value}}}this.consumeBadUrlRemnants();return Ct}while(true){var r=this.consumeCodePoint();if(r===Le||r===oe){return{type:zA.URL_TOKEN,value:w.apply(void 0,A)}}else if(At(r)){this.consumeWhiteSpace();if(this.peekCodePoint(0)===Le||this.peekCodePoint(0)===oe){this.consumeCodePoint();return{type:zA.URL_TOKEN,value:w.apply(void 0,A)}}this.consumeBadUrlRemnants();return Ct}else if(r===$A||r===ne||r===ie||rt(r)){this.consumeBadUrlRemnants();return Ct}else if(r===jA){if(nt(r,this.peekCodePoint(0))){A.push(this.consumeEscapedCodePoint())}else{this.consumeBadUrlRemnants();return Ct}}else{A.push(r)}}};A.prototype.consumeWhiteSpace=function(){while(At(this.peekCodePoint(0))){this.consumeCodePoint()}};A.prototype.consumeBadUrlRemnants=function(){while(true){var A=this.consumeCodePoint();if(A===oe||A===Le){return}if(nt(A,this.peekCodePoint(0))){this.consumeEscapedCodePoint()}}};A.prototype.consumeStringSlice=function(A){var e=6e4;var t="";while(A>0){var r=Math.min(e,A);t+=w.apply(void 0,this._value.splice(0,r));A-=r}this._value.shift();return t};A.prototype.consumeStringToken=function(A){var e="";var t=0;do{var r=this._value[t];if(r===Le||r===undefined||r===A){e+=this.consumeStringSlice(t);return{type:zA.STRING_TOKEN,value:e}}if(r===WA){this._value.splice(0,t);return Et}if(r===jA){var n=this._value[t+1];if(n!==Le&&n!==undefined){if(n===WA){e+=this.consumeStringSlice(t);t=-1;this._value.shift()}else if(nt(r,n)){e+=this.consumeStringSlice(t);e+=w(this.consumeEscapedCodePoint());t=-1}}}t++}while(true)};A.prototype.consumeNumber=function(){var A=[];var e=JA;var t=this.peekCodePoint(0);if(t===He||t===Be){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===De)&&((r===He||r===Be)&&ke(n)||ke(r))){A.push(this.consumeCodePoint(),this.consumeCodePoint());e=kA;while(ke(this.peekCodePoint(0))){A.push(this.consumeCodePoint())}}return[st(A),e]};A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1];var r=this.peekCodePoint(0);var n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if(it(r,n,i)){var o=this.consumeName();return{type:zA.DIMENSION_TOKEN,number:e,flags:t,unit:o}}if(r===re){this.consumeCodePoint();return{type:zA.PERCENTAGE_TOKEN,number:e,flags:t}}return{type:zA.NUMBER_TOKEN,number:e,flags:t}};A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Ye(A)){var e=w(A);while(Ye(this.peekCodePoint(0))&&e.length<6){e+=w(this.consumeCodePoint())}if(At(this.peekCodePoint(0))){this.consumeCodePoint()}var t=parseInt(e,16);if(t===0||We(t)||t>1114111){return Fe}return t}if(A===Le){return Fe}return A};A.prototype.consumeName=function(){var A="";while(true){var e=this.consumeCodePoint();if(tt(e)){A+=w(e)}else if(nt(e,this.peekCodePoint(0))){A+=w(this.consumeEscapedCodePoint())}else{this.reconsumeCodePoint(e);return A}}};return A}(),Tt=function(){function t(A){this._tokens=A}t.create=function(A){var e=new It;e.write(A);return new t(e.read())};t.parseValue=function(A){return t.create(A).parseComponentValue()};t.parseValues=function(A){return t.create(A).parseComponentValues()};t.prototype.parseComponentValue=function(){var A=this.consumeToken();while(A.type===zA.WHITESPACE_TOKEN){A=this.consumeToken()}if(A.type===zA.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===zA.WHITESPACE_TOKEN);if(A.type===zA.EOF_TOKEN){return e}throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")};t.prototype.parseComponentValues=function(){var A=[];while(true){var e=this.consumeComponentValue();if(e.type===zA.EOF_TOKEN){return A}A.push(e);A.push()}};t.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case zA.LEFT_CURLY_BRACKET_TOKEN:case zA.LEFT_SQUARE_BRACKET_TOKEN:case zA.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(A.type);case zA.FUNCTION_TOKEN:return this.consumeFunction(A)}return A};t.prototype.consumeSimpleBlock=function(A){var e={type:A,values:[]};var t=this.consumeToken();while(true){if(t.type===zA.EOF_TOKEN||Mt(t,A)){return e}this.reconsumeToken(t);e.values.push(this.consumeComponentValue());t=this.consumeToken()}};t.prototype.consumeFunction=function(A){var e={name:A.value,values:[],type:zA.FUNCTION};while(true){var t=this.consumeToken();if(t.type===zA.EOF_TOKEN||t.type===zA.RIGHT_PARENTHESIS_TOKEN){return e}this.reconsumeToken(t);e.values.push(this.consumeComponentValue())}};t.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A==="undefined"?mt:A};t.prototype.reconsumeToken=function(A){this._tokens.unshift(A)};return t}(),yt=function(A){return A.type===zA.DIMENSION_TOKEN},Rt=function(A){return A.type===zA.NUMBER_TOKEN},bt=function(A){return A.type===zA.IDENT_TOKEN},Ot=function(A){return A.type===zA.STRING_TOKEN},Lt=function(A,e){return bt(A)&&A.value===e},_t=function(A){return A.type!==zA.WHITESPACE_TOKEN},St=function(A){return A.type!==zA.WHITESPACE_TOKEN&&A.type!==zA.COMMA_TOKEN},Dt=function(A){var e=[];var t=[];A.forEach(function(A){if(A.type===zA.COMMA_TOKEN){if(t.length===0){throw new Error("Error parsing function args, zero tokens for arg")}e.push(t);t=[];return}if(A.type!==zA.WHITESPACE_TOKEN){t.push(A)}});if(t.length){e.push(t)}return e},Mt=function(A,e){if(e===zA.LEFT_CURLY_BRACKET_TOKEN&&A.type===zA.RIGHT_CURLY_BRACKET_TOKEN){return true}if(e===zA.LEFT_SQUARE_BRACKET_TOKEN&&A.type===zA.RIGHT_SQUARE_BRACKET_TOKEN){return true}return e===zA.LEFT_PARENTHESIS_TOKEN&&A.type===zA.RIGHT_PARENTHESIS_TOKEN},xt=function(A){return A.type===zA.NUMBER_TOKEN||A.type===zA.DIMENSION_TOKEN},Pt=function(A){return A.type===zA.PERCENTAGE_TOKEN||xt(A)},Vt=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},zt={type:zA.NUMBER_TOKEN,number:0,flags:JA},Xt={type:zA.PERCENTAGE_TOKEN,number:50,flags:JA},Gt={type:zA.PERCENTAGE_TOKEN,number:100,flags:JA},Jt=function(A,e,t){var r=A[0],n=A[1];return[kt(r,e),kt(typeof n!=="undefined"?n:r,t)]},kt=function(A,e){if(A.type===zA.PERCENTAGE_TOKEN){return A.number/100*e}if(yt(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",qt="turn",Zt={name:"angle",parse:function(A){if(A.type===zA.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 qt:return Math.PI*2*A.number}}throw new Error("Unsupported angle type")}},$t=function(A){if(A.type===zA.DIMENSION_TOKEN){if(A.unit===Wt||A.unit===Yt||A.unit===jt||A.unit===qt){return true}}return false},Ar=function(A){var e=A.filter(bt).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===zA.FUNCTION){var e=cr[A.name];if(typeof e==="undefined"){throw new Error('Attempting to parse an unsupported color function "'+A.name+'"')}return e(A.values)}if(A.type===zA.HASH_TOKEN){if(A.value.length===3){var t=A.value.substring(0,1);var r=A.value.substring(1,2);var n=A.value.substring(2,3);return ir(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(A.value.length===4){var t=A.value.substring(0,1);var r=A.value.substring(1,2);var n=A.value.substring(2,3);var i=A.value.substring(3,4);return ir(parseInt(t+t,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2);var r=A.value.substring(2,4);var n=A.value.substring(4,6);return ir(parseInt(t,16),parseInt(r,16),parseInt(n,16),1)}if(A.value.length===8){var t=A.value.substring(0,2);var r=A.value.substring(2,4);var n=A.value.substring(4,6);var i=A.value.substring(6,8);return ir(parseInt(t,16),parseInt(r,16),parseInt(n,16),parseInt(i,16)/255)}}if(A.type===zA.IDENT_TOKEN){var o=ur[A.value.toUpperCase()];if(typeof o!=="undefined"){return o}}return ur.TRANSPARENT}},rr=function(A){return(255&A)===0},nr=function(A){var e=255&A;var t=255&A>>8;var r=255&A>>16;var n=255&A>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},ir=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},or=function(A,e){if(A.type===zA.NUMBER_TOKEN){return A.number}if(A.type===zA.PERCENTAGE_TOKEN){var t=e===3?1:255;return e===3?A.number/100*t:Math.round(A.number/100*t)}return 0},sr=function(A){var e=A.filter(St);if(e.length===3){var t=e.map(or),r=t[0],n=t[1],i=t[2];return ir(r,n,i,1)}if(e.length===4){var o=e.map(or),r=o[0],n=o[1],i=o[2],s=o[3];return ir(r,n,i,s)}return 0};function Br(A,e,t){if(t<0){t+=1}if(t>=1){t-=1}if(t<1/6){return(e-A)*t*6+A}else if(t<1/2){return e}else if(t<2/3){return(e-A)*6*(2/3-t)+A}else{return A}}var ar=function(A){var e=A.filter(St);var t=e[0],r=e[1],n=e[2],i=e[3];var o=(t.type===zA.NUMBER_TOKEN?er(t.number):Zt.parse(t))/(Math.PI*2);var s=Pt(r)?r.number/100:0;var B=Pt(n)?n.number/100:0;var a=typeof i!=="undefined"&&Pt(i)?kt(i,1):1;if(s===0){return ir(B*255,B*255,B*255,1)}var c=B<=.5?B*(s+1):B+s-B*s;var u=B*2-c;var l=Br(u,c,o+1/3);var Q=Br(u,c,o);var f=Br(u,c,o-1/3);return ir(l*255,Q*255,f*255,a)},cr={hsl:ar,hsla:ar,rgb:sr,rgba:sr},ur={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},lr,Qr;(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"})(lr||(lr={})),function(A){A[A["BORDER_BOX"]=0]="BORDER_BOX";A[A["PADDING_BOX"]=1]="PADDING_BOX";A[A["CONTENT_BOX"]=2]="CONTENT_BOX"}(Qr||(Qr={}));var fr={name:"background-clip",initialValue:"border-box",prefix:false,type:lr.LIST,parse:function(A){return A.map(function(A){if(bt(A)){switch(A.value){case"padding-box":return Qr.PADDING_BOX;case"content-box":return Qr.CONTENT_BOX}}return Qr.BORDER_BOX})}},wr={name:"background-color",initialValue:"transparent",prefix:false,type:lr.TYPE_VALUE,format:"color"},Ur=function(A){var e=tr.parse(A[0]);var t=A[1];return t&&Pt(t)?{color:e,stop:t}:{color:e,stop:null}},hr=function(A,r){var e=A[0];var t=A[A.length-1];if(e.stop===null){e.stop=zt}if(t.stop===null){t.stop=Gt}var n=[];var i=0;for(var o=0;o<A.length;o++){var s=A[o].stop;if(s!==null){var B=kt(s,r);if(B>i){n.push(B)}else{n.push(i)}i=B}else{n.push(null)}}var a=null;for(var o=0;o<n.length;o++){var c=n[o];if(c===null){if(a===null){a=o}}else if(a!==null){var u=o-a;var l=n[a-1];var Q=(c-l)/(u+1);for(var f=1;f<=u;f++){n[a+f-1]=Q*f}a=null}}return A.map(function(A,e){var t=A.color;return{color:t,stop:Math.max(Math.min(1,n[e]/r),0)}})},gr=function(A,e,t){var r=e/2;var n=t/2;var i=kt(A[0],e)-r;var o=n-kt(A[1],t);return(Math.atan2(o,i)+Math.PI*2)%(Math.PI*2)},Cr=function(A,e,t){var r=typeof A==="number"?A:gr(A,e,t);var n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r));var i=e/2;var o=t/2;var s=n/2;var B=Math.sin(r-Math.PI/2)*s;var a=Math.cos(r-Math.PI/2)*s;return[n,i-a,i+a,o-B,o+B]},Er=function(A,e){return Math.sqrt(A*A+e*e)},dr=function(A,e,i,o,s){var t=[[0,0],[0,e],[A,0],[A,e]];return t.reduce(function(A,e){var t=e[0],r=e[1];var n=Er(i-t,o-r);if(s?n<A.optimumDistance:n>A.optimumDistance){return{optimumCorner:e,optimumDistance:n}}return A},{optimumDistance:s?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Fr=function(A,e,t,r,n){var i=0;var o=0;switch(A.size){case sn.CLOSEST_SIDE:if(A.shape===on.CIRCLE){i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n))}else if(A.shape===on.ELLIPSE){i=Math.min(Math.abs(e),Math.abs(e-r));o=Math.min(Math.abs(t),Math.abs(t-n))}break;case sn.CLOSEST_CORNER:if(A.shape===on.CIRCLE){i=o=Math.min(Er(e,t),Er(e,t-n),Er(e-r,t),Er(e-r,t-n))}else if(A.shape===on.ELLIPSE){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r));var B=dr(r,n,e,t,true),a=B[0],c=B[1];i=Er(a-e,(c-t)/s);o=s*i}break;case sn.FARTHEST_SIDE:if(A.shape===on.CIRCLE){i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n))}else if(A.shape===on.ELLIPSE){i=Math.max(Math.abs(e),Math.abs(e-r));o=Math.max(Math.abs(t),Math.abs(t-n))}break;case sn.FARTHEST_CORNER:if(A.shape===on.CIRCLE){i=o=Math.max(Er(e,t),Er(e,t-n),Er(e-r,t),Er(e-r,t-n))}else if(A.shape===on.ELLIPSE){var s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r));var u=dr(r,n,e,t,false),a=u[0],c=u[1];i=Er(a-e,(c-t)/s);o=s*i}break}if(Array.isArray(A.size)){i=kt(A.size[0],r);o=A.size.length===2?kt(A.size[1],n):i}return[i,o]},pr=function(A){var n=er(180);var i=[];Dt(A).forEach(function(A,e){if(e===0){var t=A[0];if(t.type===zA.IDENT_TOKEN&&t.value==="to"){n=Ar(A);return}else if($t(t)){n=Zt.parse(t);return}}var r=Ur(A);i.push(r)});return{angle:n,stops:i,type:tn.LINEAR_GRADIENT}},Hr=function(A){var n=er(180);var i=[];Dt(A).forEach(function(A,e){if(e===0){var t=A[0];if(t.type===zA.IDENT_TOKEN&&["top","left","right","bottom"].indexOf(t.value)!==-1){n=Ar(A);return}else if($t(t)){n=(Zt.parse(t)+er(270))%er(360);return}}var r=Ur(A);i.push(r)});return{angle:n,stops:i,type:tn.LINEAR_GRADIENT}},Nr=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();var i=Math.round(n.height);A.body.removeChild(r);if(i===e){return true}}}return false},vr=function(){return typeof(new Image).crossOrigin!=="undefined"},Kr=function(){return typeof(new XMLHttpRequest).responseType==="string"},mr=function(A){var e=new Image;var t=A.createElement("canvas");var r=t.getContext("2d");if(!r){return false}e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0);t.toDataURL()}catch(A){return false}return true},Ir=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},Tr=function(r){var A=r.createElement("canvas");var n=100;A.width=n;A.height=n;var i=A.getContext("2d");if(!i){return Promise.reject(false)}i.fillStyle="rgb(0, 255, 0)";i.fillRect(0,0,n,n);var e=new Image;var o=A.toDataURL();e.src=o;var t=yr(n,n,0,0,e);i.fillStyle="red";i.fillRect(0,0,n,n);return Rr(t).then(function(A){i.drawImage(A,0,0);var e=i.getImageData(0,0,n,n).data;i.fillStyle="red";i.fillRect(0,0,n,n);var t=r.createElement("div");t.style.backgroundImage="url("+o+")";t.style.height=n+"px";return Ir(e)?Rr(yr(n,n,0,0,t)):Promise.reject(false)}).then(function(A){i.drawImage(A,0,0);return Ir(i.getImageData(0,0,n,n).data)}).catch(function(){return false})},yr=function(A,e,t,r,n){var i="http://www.w3.org/2000/svg";var o=document.createElementNS(i,"svg");var s=document.createElementNS(i,"foreignObject");o.setAttributeNS(null,"width",A.toString());o.setAttributeNS(null,"height",e.toString());s.setAttributeNS(null,"width","100%");s.setAttributeNS(null,"height","100%");s.setAttributeNS(null,"x",t.toString());s.setAttributeNS(null,"y",r.toString());s.setAttributeNS(null,"externalResourcesRequired","true");o.appendChild(s);s.appendChild(n);return o},Rr=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)};t.onerror=e;t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(r))})},br={get SUPPORT_RANGE_BOUNDS(){var A=Nr(document);Object.defineProperty(br,"SUPPORT_RANGE_BOUNDS",{value:A});return A},get SUPPORT_SVG_DRAWING(){var A=mr(document);Object.defineProperty(br,"SUPPORT_SVG_DRAWING",{value:A});return A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from==="function"&&typeof window.fetch==="function"?Tr(document):Promise.resolve(false);Object.defineProperty(br,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A});return A},get SUPPORT_CORS_IMAGES(){var A=vr();Object.defineProperty(br,"SUPPORT_CORS_IMAGES",{value:A});return A},get SUPPORT_RESPONSE_TYPE(){var A=Kr();Object.defineProperty(br,"SUPPORT_RESPONSE_TYPE",{value:A});return A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;Object.defineProperty(br,"SUPPORT_CORS_XHR",{value:A});return A}},Or=function(){function t(A){var e=A.id,t=A.enabled;this.id=e;this.enabled=t;this.start=Date.now()}t.prototype.debug=function(){var A=[];for(var e=0;e<arguments.length;e++){A[e]=arguments[e]}if(this.enabled){if(typeof window!=="undefined"&&window.console&&typeof console.debug==="function"){console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(A))}else{this.info.apply(this,A)}}};t.prototype.getTime=function(){return Date.now()-this.start};t.create=function(A){t.instances[A.id]=new t(A)};t.destroy=function(A){delete t.instances[A]};t.getInstance=function(A){var e=t.instances[A];if(typeof e==="undefined"){throw new Error("No logger instance found with id "+A)}return e};t.prototype.info=function(){var A=[];for(var e=0;e<arguments.length;e++){A[e]=arguments[e]}if(this.enabled){if(typeof window!=="undefined"&&window.console&&typeof console.info==="function"){console.info.apply(console,[this.id,this.getTime()+"ms"].concat(A))}}};t.prototype.error=function(){var A=[];for(var e=0;e<arguments.length;e++){A[e]=arguments[e]}if(this.enabled){if(typeof window!=="undefined"&&window.console&&typeof console.error==="function"){console.error.apply(console,[this.id,this.getTime()+"ms"].concat(A))}else{this.info.apply(this,A)}}};t.instances={};return t}(),Lr=function(){function t(){}t.create=function(A,e){return t._caches[A]=new _r(A,e)};t.destroy=function(A){delete t._caches[A]};t.open=function(A){var e=t._caches[A];if(typeof e!=="undefined"){return e}throw new Error('Cache with key "'+A+'" not found')};t.getOrigin=function(A){var e=t._link;if(!e){return"about:blank"}e.href=A;e.href=e.href;return e.protocol+e.hostname+e.port};t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin};t.setContext=function(A){t._link=A.document.createElement("a");t._origin=t.getOrigin(A.location.href)};t.getInstance=function(){var A=t._current;if(A===null){throw new Error("No cache instance attached")}return A};t.attachInstance=function(A){t._current=A};t.detachInstance=function(){t._current=null};t._caches={};t._origin="about:blank";t._current=null;return t}(),_r=function(){function A(A,e){this.id=A;this._options=e;this._cache={}}A.prototype.addImage=function(A){var e=Promise.resolve();if(this.has(A)){return e}if(zr(A)||xr(A)){this._cache[A]=this.loadImage(A);return e}return e};A.prototype.match=function(A){return this._cache[A]};A.prototype.loadImage=function(o){return a(this,void 0,void 0,function(){var e,r,t,n;var i=this;return S(this,function(A){switch(A.label){case 0:e=Lr.isSameOrigin(o);r=!Pr(o)&&this._options.useCORS===true&&br.SUPPORT_CORS_IMAGES&&!e;t=!Pr(o)&&!e&&typeof this._options.proxy==="string"&&br.SUPPORT_CORS_XHR&&!r;if(!e&&this._options.allowTaint===false&&!Pr(o)&&!t&&!r){return[2]}n=o;if(!t)return[3,2];return[4,this.proxy(n)];case 1:n=A.sent();A.label=2;case 2:Or.getInstance(this.id).debug("Added image "+o.substring(0,256));return[4,new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)};t.onerror=e;if(Vr(n)||r){t.crossOrigin="anonymous"}t.src=n;if(t.complete===true){setTimeout(function(){return A(t)},500)}if(i._options.imageTimeout>0){setTimeout(function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)}})];case 3:return[2,A.sent()]}})})};A.prototype.has=function(A){return typeof this._cache[A]!=="undefined"};A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))};A.prototype.proxy=function(i){var o=this;var s=this._options.proxy;if(!s){throw new Error("No proxy defined")}var B=i.substring(0,256);return new Promise(function(e,t){var r=br.SUPPORT_RESPONSE_TYPE?"blob":"text";var n=new XMLHttpRequest;n.onload=function(){if(n.status===200){if(r==="text"){e(n.response)}else{var A=new FileReader;A.addEventListener("load",function(){return e(A.result)},false);A.addEventListener("error",function(A){return t(A)},false);A.readAsDataURL(n.response)}}else{t("Failed to proxy resource "+B+" with status code "+n.status)}};n.onerror=t;n.open("GET",s+"?url="+encodeURIComponent(i)+"&responseType="+r);if(r!=="text"&&n instanceof XMLHttpRequest){n.responseType=r}if(o._options.imageTimeout){var A=o._options.imageTimeout;n.timeout=A;n.ontimeout=function(){return t("Timed out ("+A+"ms) proxying "+B)}}n.send()})};return A}(),Sr=/^data:image\/svg\+xml/i,Dr=/^data:image\/.*;base64,/i,Mr=/^data:image\/.*/i,xr=function(A){return br.SUPPORT_SVG_DRAWING||!Xr(A)},Pr=function(A){return Mr.test(A)},Vr=function(A){return Dr.test(A)},zr=function(A){return A.substr(0,4)==="blob"},Xr=function(A){return A.substr(-3).toLowerCase()==="svg"||Sr.test(A)},Gr=function(A){var e=er(180);var o=[];var s=tn.LINEAR_GRADIENT;var t=on.CIRCLE;var r=sn.FARTHEST_CORNER;var n=[];Dt(A).forEach(function(A,e){var t=A[0];if(e===0){if(bt(t)&&t.value==="linear"){s=tn.LINEAR_GRADIENT;return}else if(bt(t)&&t.value==="radial"){s=tn.RADIAL_GRADIENT;return}}if(t.type===zA.FUNCTION){if(t.name==="from"){var r=tr.parse(t.values[0]);o.push({stop:zt,color:r})}else if(t.name==="to"){var r=tr.parse(t.values[0]);o.push({stop:Gt,color:r})}else if(t.name==="color-stop"){var n=t.values.filter(St);if(n.length===2){var r=tr.parse(n[1]);var i=n[0];if(Rt(i)){o.push({stop:{type:zA.PERCENTAGE_TOKEN,number:i.number*100,flags:i.flags},color:r})}}}}});return s===tn.LINEAR_GRADIENT?{angle:(e+er(180))%er(360),stops:o,type:s}:{size:r,shape:t,stops:o,position:n,type:s}},Jr="closest-side",kr="farthest-side",Wr="closest-corner",Yr="farthest-corner",jr="circle",qr="ellipse",Zr="cover",$r="contain",An=function(A){var i=on.CIRCLE;var o=sn.FARTHEST_CORNER;var s=[];var B=[];Dt(A).forEach(function(A,e){var t=true;if(e===0){var r=false;t=A.reduce(function(A,e){if(r){if(bt(e)){switch(e.value){case"center":B.push(Xt);return A;case"top":case"left":B.push(zt);return A;case"right":case"bottom":B.push(Gt);return A}}else if(Pt(e)||xt(e)){B.push(e)}}else if(bt(e)){switch(e.value){case jr:i=on.CIRCLE;return false;case qr:i=on.ELLIPSE;return false;case"at":r=true;return false;case Jr:o=sn.CLOSEST_SIDE;return false;case Zr:case kr:o=sn.FARTHEST_SIDE;return false;case $r:case Wr:o=sn.CLOSEST_CORNER;return false;case Yr:o=sn.FARTHEST_CORNER;return false}}else if(xt(e)||Pt(e)){if(!Array.isArray(o)){o=[]}o.push(e);return false}return A},t)}if(t){var n=Ur(A);s.push(n)}});return{size:o,shape:i,stops:s,position:B,type:tn.RADIAL_GRADIENT}},en=function(A){var n=on.CIRCLE;var i=sn.FARTHEST_CORNER;var o=[];var s=[];Dt(A).forEach(function(A,e){var t=true;if(e===0){t=A.reduce(function(A,e){if(bt(e)){switch(e.value){case"center":s.push(Xt);return false;case"top":case"left":s.push(zt);return false;case"right":case"bottom":s.push(Gt);return false}}else if(Pt(e)||xt(e)){s.push(e);return false}return A},t)}else if(e===1){t=A.reduce(function(A,e){if(bt(e)){switch(e.value){case jr:n=on.CIRCLE;return false;case qr:n=on.ELLIPSE;return false;case $r:case Jr:i=sn.CLOSEST_SIDE;return false;case kr:i=sn.FARTHEST_SIDE;return false;case Wr:i=sn.CLOSEST_CORNER;return false;case Zr:case Yr:i=sn.FARTHEST_CORNER;return false}}else if(xt(e)||Pt(e)){if(!Array.isArray(i)){i=[]}i.push(e);return false}return A},t)}if(t){var r=Ur(A);o.push(r)}});return{size:i,shape:n,stops:o,position:s,type:tn.RADIAL_GRADIENT}},tn;(function(A){A[A["URL"]=0]="URL";A[A["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT";A[A["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(tn||(tn={}));var rn=function(A){return A.type===tn.LINEAR_GRADIENT},nn=function(A){return A.type===tn.RADIAL_GRADIENT},on,sn;(function(A){A[A["CIRCLE"]=0]="CIRCLE";A[A["ELLIPSE"]=1]="ELLIPSE"})(on||(on={})),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"}(sn||(sn={}));var Bn={name:"image",parse:function(A){if(A.type===zA.URL_TOKEN){var e={url:A.value,type:tn.URL};Lr.getInstance().addImage(A.value);return e}if(A.type===zA.FUNCTION){var t=cn[A.name];if(typeof t==="undefined"){throw new Error('Attempting to parse an unsupported image function "'+A.name+'"')}return t(A.values)}throw new Error("Unsupported image type")}};function an(A){return A.type!==zA.FUNCTION||cn[A.name]}var cn={"linear-gradient":pr,"-moz-linear-gradient":Hr,"-ms-linear-gradient":Hr,"-o-linear-gradient":Hr,"-webkit-linear-gradient":Hr,"radial-gradient":An,"-moz-radial-gradient":en,"-ms-radial-gradient":en,"-o-radial-gradient":en,"-webkit-radial-gradient":en,"-webkit-gradient":Gr},un={name:"background-image",initialValue:"none",type:lr.LIST,prefix:false,parse:function(A){if(A.length===0){return[]}var e=A[0];if(e.type===zA.IDENT_TOKEN&&e.value==="none"){return[]}return A.filter(function(A){return St(A)&&an(A)}).map(Bn.parse)}},ln={name:"background-origin",initialValue:"border-box",prefix:false,type:lr.LIST,parse:function(A){return A.map(function(A){if(bt(A)){switch(A.value){case"padding-box":return 1;case"content-box":return 2}}return 0})}},Qn={name:"background-position",initialValue:"0% 0%",type:lr.LIST,prefix:false,parse:function(A){return Dt(A).map(function(A){return A.filter(Pt)}).map(Vt)}},fn;(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"})(fn||(fn={}));var wn={name:"background-repeat",initialValue:"repeat",prefix:false,type:lr.LIST,parse:function(A){return Dt(A).map(function(A){return A.filter(bt).map(function(A){return A.value}).join(" ")}).map(Un)}},Un=function(A){switch(A){case"no-repeat":return fn.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return fn.REPEAT_X;case"repeat-y":case"no-repeat repeat":return fn.REPEAT_Y;case"repeat":default:return fn.REPEAT}},hn;(function(A){A["AUTO"]="auto";A["CONTAIN"]="contain";A["COVER"]="cover"})(hn||(hn={}));var gn={name:"background-size",initialValue:"0",prefix:false,type:lr.LIST,parse:function(A){return Dt(A).map(function(A){return A.filter(Cn)})}},Cn=function(A){return bt(A)||Pt(A)},En=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:false,type:lr.TYPE_VALUE,format:"color"}},dn=En("top"),Fn=En("right"),pn=En("bottom"),Hn=En("left"),Nn=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:false,type:lr.LIST,parse:function(A){return Vt(A.filter(Pt))}}},vn=Nn("top-left"),Kn=Nn("top-right"),mn=Nn("bottom-right"),In=Nn("bottom-left"),Tn;(function(A){A[A["NONE"]=0]="NONE";A[A["SOLID"]=1]="SOLID"})(Tn||(Tn={}));var yn=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"none":return Tn.NONE}return Tn.SOLID}}},Rn=yn("top"),bn=yn("right"),On=yn("bottom"),Ln=yn("left"),_n=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:lr.VALUE,prefix:false,parse:function(A){if(yt(A)){return A.number}return 0}}},Sn=_n("top"),Dn=_n("right"),Mn=_n("bottom"),xn=_n("left"),Pn={name:"color",initialValue:"transparent",prefix:false,type:lr.TYPE_VALUE,format:"color"},Vn={name:"display",initialValue:"inline-block",prefix:false,type:lr.LIST,parse:function(A){return A.filter(bt).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":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Xn;(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"})(Xn||(Xn={}));var Gn={name:"float",initialValue:"none",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"left":return Xn.LEFT;case"right":return Xn.RIGHT;case"inline-start":return Xn.INLINE_START;case"inline-end":return Xn.INLINE_END}return Xn.NONE}},Jn={name:"letter-spacing",initialValue:"0",prefix:false,type:lr.VALUE,parse:function(A){if(A.type===zA.IDENT_TOKEN&&A.value==="normal"){return 0}if(A.type===zA.NUMBER_TOKEN){return A.number}if(A.type===zA.DIMENSION_TOKEN){return A.number}return 0}},kn;(function(A){A["NORMAL"]="normal";A["STRICT"]="strict"})(kn||(kn={}));var Wn={name:"line-break",initialValue:"normal",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"strict":return kn.STRICT;case"normal":default:return kn.NORMAL}}},Yn={name:"line-height",initialValue:"normal",prefix:false,type:lr.TOKEN_VALUE},jn=function(A,e){if(bt(A)&&A.value==="normal"){return 1.2*e}else if(A.type===zA.NUMBER_TOKEN){return e*A.number}else if(Pt(A)){return kt(A,e)}return e},qn={name:"list-style-image",initialValue:"none",type:lr.VALUE,prefix:false,parse:function(A){if(A.type===zA.IDENT_TOKEN&&A.value==="none"){return null}return Bn.parse(A)}},Zn;(function(A){A[A["INSIDE"]=0]="INSIDE";A[A["OUTSIDE"]=1]="OUTSIDE"})(Zn||(Zn={}));var $n={name:"list-style-position",initialValue:"outside",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"inside":return Zn.INSIDE;case"outside":default:return Zn.OUTSIDE}}},Ai;(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"})(Ai||(Ai={}));var ei={name:"list-style-type",initialValue:"none",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"disc":return Ai.DISC;case"circle":return Ai.CIRCLE;case"square":return Ai.SQUARE;case"decimal":return Ai.DECIMAL;case"cjk-decimal":return Ai.CJK_DECIMAL;case"decimal-leading-zero":return Ai.DECIMAL_LEADING_ZERO;case"lower-roman":return Ai.LOWER_ROMAN;case"upper-roman":return Ai.UPPER_ROMAN;case"lower-greek":return Ai.LOWER_GREEK;case"lower-alpha":return Ai.LOWER_ALPHA;case"upper-alpha":return Ai.UPPER_ALPHA;case"arabic-indic":return Ai.ARABIC_INDIC;case"armenian":return Ai.ARMENIAN;case"bengali":return Ai.BENGALI;case"cambodian":return Ai.CAMBODIAN;case"cjk-earthly-branch":return Ai.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Ai.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Ai.CJK_IDEOGRAPHIC;case"devanagari":return Ai.DEVANAGARI;case"ethiopic-numeric":return Ai.ETHIOPIC_NUMERIC;case"georgian":return Ai.GEORGIAN;case"gujarati":return Ai.GUJARATI;case"gurmukhi":return Ai.GURMUKHI;case"hebrew":return Ai.HEBREW;case"hiragana":return Ai.HIRAGANA;case"hiragana-iroha":return Ai.HIRAGANA_IROHA;case"japanese-formal":return Ai.JAPANESE_FORMAL;case"japanese-informal":return Ai.JAPANESE_INFORMAL;case"kannada":return Ai.KANNADA;case"katakana":return Ai.KATAKANA;case"katakana-iroha":return Ai.KATAKANA_IROHA;case"khmer":return Ai.KHMER;case"korean-hangul-formal":return Ai.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Ai.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Ai.KOREAN_HANJA_INFORMAL;case"lao":return Ai.LAO;case"lower-armenian":return Ai.LOWER_ARMENIAN;case"malayalam":return Ai.MALAYALAM;case"mongolian":return Ai.MONGOLIAN;case"myanmar":return Ai.MYANMAR;case"oriya":return Ai.ORIYA;case"persian":return Ai.PERSIAN;case"simp-chinese-formal":return Ai.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Ai.SIMP_CHINESE_INFORMAL;case"tamil":return Ai.TAMIL;case"telugu":return Ai.TELUGU;case"thai":return Ai.THAI;case"tibetan":return Ai.TIBETAN;case"trad-chinese-formal":return Ai.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Ai.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Ai.UPPER_ARMENIAN;case"disclosure-open":return Ai.DISCLOSURE_OPEN;case"disclosure-closed":return Ai.DISCLOSURE_CLOSED;case"none":default:return Ai.NONE}}},ti=function(A){return{name:"margin-"+A,initialValue:"0",prefix:false,type:lr.TOKEN_VALUE}},ri=ti("top"),ni=ti("right"),ii=ti("bottom"),oi=ti("left"),si;(function(A){A[A["VISIBLE"]=0]="VISIBLE";A[A["HIDDEN"]=1]="HIDDEN";A[A["SCROLL"]=2]="SCROLL";A[A["AUTO"]=3]="AUTO"})(si||(si={}));var Bi={name:"overflow",initialValue:"visible",prefix:false,type:lr.LIST,parse:function(A){return A.filter(bt).map(function(A){switch(A.value){case"hidden":return si.HIDDEN;case"scroll":return si.SCROLL;case"auto":return si.AUTO;case"visible":default:return si.VISIBLE}})}},ai;(function(A){A["NORMAL"]="normal";A["BREAK_WORD"]="break-word"})(ai||(ai={}));var ci={name:"overflow-wrap",initialValue:"normal",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"break-word":return ai.BREAK_WORD;case"normal":default:return ai.NORMAL}}},ui=function(A){return{name:"padding-"+A,initialValue:"0",prefix:false,type:lr.TYPE_VALUE,format:"length-percentage"}},li=ui("top"),Qi=ui("right"),fi=ui("bottom"),wi=ui("left"),Ui;(function(A){A[A["LEFT"]=0]="LEFT";A[A["CENTER"]=1]="CENTER";A[A["RIGHT"]=2]="RIGHT"})(Ui||(Ui={}));var hi={name:"text-align",initialValue:"left",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"right":return Ui.RIGHT;case"center":case"justify":return Ui.CENTER;case"left":default:return Ui.LEFT}}},gi;(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"})(gi||(gi={}));var Ci={name:"position",initialValue:"static",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"relative":return gi.RELATIVE;case"absolute":return gi.ABSOLUTE;case"fixed":return gi.FIXED;case"sticky":return gi.STICKY}return gi.STATIC}},Ei={name:"text-shadow",initialValue:"none",type:lr.LIST,prefix:false,parse:function(A){if(A.length===1&&Lt(A[0],"none")){return[]}return Dt(A).map(function(A){var e={color:ur.TRANSPARENT,offsetX:zt,offsetY:zt,blur:zt};var t=0;for(var r=0;r<A.length;r++){var n=A[r];if(xt(n)){if(t===0){e.offsetX=n}else if(t===1){e.offsetY=n}else{e.blur=n}t++}else{e.color=tr.parse(n)}}return e})}},di;(function(A){A[A["NONE"]=0]="NONE";A[A["LOWERCASE"]=1]="LOWERCASE";A[A["UPPERCASE"]=2]="UPPERCASE";A[A["CAPITALIZE"]=3]="CAPITALIZE"})(di||(di={}));var Fi={name:"text-transform",initialValue:"none",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"uppercase":return di.UPPERCASE;case"lowercase":return di.LOWERCASE;case"capitalize":return di.CAPITALIZE}return di.NONE}},pi={name:"transform",initialValue:"none",prefix:true,type:lr.VALUE,parse:function(A){if(A.type===zA.IDENT_TOKEN&&A.value==="none"){return null}if(A.type===zA.FUNCTION){var e=vi[A.name];if(typeof e==="undefined"){throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"')}return e(A.values)}return null}},Hi,Ni,vi={matrix:function(A){var e=A.filter(function(A){return A.type===zA.NUMBER_TOKEN}).map(function(A){return A.number});return e.length===6?e:null},matrix3d:function(A){var e=A.filter(function(A){return A.type===zA.NUMBER_TOKEN}).map(function(A){return A.number});var t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],s=e[5],B=e[6],a=e[7],c=e[8],u=e[9],l=e[10],Q=e[11],f=e[12],w=e[13],U=e[14],h=e[15];return e.length===16?[t,r,o,s,f,w]:null}},Ki={type:zA.PERCENTAGE_TOKEN,number:50,flags:JA},mi=[Ki,Ki],Ii={name:"transform-origin",initialValue:"50% 50%",prefix:true,type:lr.LIST,parse:function(A){var e=A.filter(Pt);if(e.length!==2){return mi}return[e[0],e[1]]}},Ti;(function(A){A[A["VISIBLE"]=0]="VISIBLE";A[A["HIDDEN"]=1]="HIDDEN";A[A["COLLAPSE"]=2]="COLLAPSE"})(Ti||(Ti={}));var yi={name:"visible",initialValue:"none",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"hidden":return Ti.HIDDEN;case"collapse":return Ti.COLLAPSE;case"visible":default:return Ti.VISIBLE}}},Ri;(function(A){A["NORMAL"]="normal";A["BREAK_ALL"]="break-all";A["KEEP_ALL"]="keep-all"})(Ri||(Ri={}));var bi={name:"word-break",initialValue:"normal",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"break-all":return Ri.BREAK_ALL;case"keep-all":return Ri.KEEP_ALL;case"normal":default:return Ri.NORMAL}}},Oi={name:"z-index",initialValue:"auto",prefix:false,type:lr.VALUE,parse:function(A){if(A.type===zA.IDENT_TOKEN){return{auto:true,order:0}}if(Rt(A)){return{auto:false,order:A.number}}throw new Error("Invalid z-index number parsed")}},Li={name:"opacity",initialValue:"1",type:lr.VALUE,prefix:false,parse:function(A){if(Rt(A)){return A.number}return 1}},_i={name:"text-decoration-color",initialValue:"transparent",prefix:false,type:lr.TYPE_VALUE,format:"color"},Si={name:"text-decoration-line",initialValue:"none",prefix:false,type:lr.LIST,parse:function(A){return A.filter(bt).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 A!==0})}},Di={name:"font-family",initialValue:"",prefix:false,type:lr.LIST,parse:function(A){var e=[];var t=[];A.forEach(function(A){switch(A.type){case zA.IDENT_TOKEN:case zA.STRING_TOKEN:e.push(A.value);break;case zA.NUMBER_TOKEN:e.push(A.number.toString());break;case zA.COMMA_TOKEN:t.push(e.join(" "));e.length=0;break}});if(e.length){t.push(e.join(" "))}return t.map(function(A){return A.indexOf(" ")===-1?A:"'"+A+"'"})}},Mi={name:"font-size",initialValue:"0",prefix:false,type:lr.TYPE_VALUE,format:"length"},xi={name:"font-weight",initialValue:"normal",type:lr.VALUE,prefix:false,parse:function(A){if(Rt(A)){return A.number}if(bt(A)){switch(A.value){case"bold":return 700;case"normal":default:return 400}}return 400}},Pi={name:"font-variant",initialValue:"none",type:lr.LIST,prefix:false,parse:function(A){return A.filter(bt).map(function(A){return A.value})}},Vi;(function(A){A["NORMAL"]="normal";A["ITALIC"]="italic";A["OBLIQUE"]="oblique"})(Vi||(Vi={}));var zi={name:"font-style",initialValue:"normal",prefix:false,type:lr.IDENT_VALUE,parse:function(A){switch(A){case"oblique":return Vi.OBLIQUE;case"italic":return Vi.ITALIC;case"normal":default:return Vi.NORMAL}}},Xi=function(A,e){return(A&e)!==0},Gi={name:"content",initialValue:"none",type:lr.LIST,prefix:false,parse:function(A){if(A.length===0){return[]}var e=A[0];if(e.type===zA.IDENT_TOKEN&&e.value==="none"){return[]}return A}},Ji={name:"counter-increment",initialValue:"none",prefix:true,type:lr.LIST,parse:function(A){if(A.length===0){return null}var e=A[0];if(e.type===zA.IDENT_TOKEN&&e.value==="none"){return null}var t=[];var r=A.filter(_t);for(var n=0;n<r.length;n++){var i=r[n];var o=r[n+1];if(i.type===zA.IDENT_TOKEN){var s=o&&Rt(o)?o.number:1;t.push({counter:i.value,increment:s})}}return t}},ki={name:"counter-reset",initialValue:"none",prefix:true,type:lr.LIST,parse:function(A){if(A.length===0){return[]}var e=[];var t=A.filter(_t);for(var r=0;r<t.length;r++){var n=t[r];var i=t[r+1];if(bt(n)&&n.value!=="none"){var o=i&&Rt(i)?i.number:0;e.push({counter:n.value,reset:o})}}return e}},Wi={name:"quotes",initialValue:"none",prefix:true,type:lr.LIST,parse:function(A){if(A.length===0){return null}var e=A[0];if(e.type===zA.IDENT_TOKEN&&e.value==="none"){return null}var t=[];var r=A.filter(Ot);if(r.length%2!==0){return null}for(var n=0;n<r.length;n+=2){var i=r[n].value;var o=r[n+1].value;t.push({open:i,close:o})}return t}},Yi=function(A,e,t){if(!A){return""}var r=A[Math.min(e,A.length-1)];if(!r){return""}return t?r.open:r.close},ji={name:"box-shadow",initialValue:"none",type:lr.LIST,prefix:false,parse:function(A){if(A.length===1&&Lt(A[0],"none")){return[]}return Dt(A).map(function(A){var e={color:255,offsetX:zt,offsetY:zt,blur:zt,spread:zt,inset:false};var t=0;for(var r=0;r<A.length;r++){var n=A[r];if(Lt(n,"inset")){e.inset=true}else if(xt(n)){if(t===0){e.offsetX=n}else if(t===1){e.offsetY=n}else if(t===2){e.blur=n}else{e.spread=n}t++}else{e.color=tr.parse(n)}}return e})}},qi=function(){function A(A){this.backgroundClip=Ao(fr,A.backgroundClip);this.backgroundColor=Ao(wr,A.backgroundColor);this.backgroundImage=Ao(un,A.backgroundImage);this.backgroundOrigin=Ao(ln,A.backgroundOrigin);this.backgroundPosition=Ao(Qn,A.backgroundPosition);this.backgroundRepeat=Ao(wn,A.backgroundRepeat);this.backgroundSize=Ao(gn,A.backgroundSize);this.borderTopColor=Ao(dn,A.borderTopColor);this.borderRightColor=Ao(Fn,A.borderRightColor);this.borderBottomColor=Ao(pn,A.borderBottomColor);this.borderLeftColor=Ao(Hn,A.borderLeftColor);this.borderTopLeftRadius=Ao(vn,A.borderTopLeftRadius);this.borderTopRightRadius=Ao(Kn,A.borderTopRightRadius);this.borderBottomRightRadius=Ao(mn,A.borderBottomRightRadius);this.borderBottomLeftRadius=Ao(In,A.borderBottomLeftRadius);this.borderTopStyle=Ao(Rn,A.borderTopStyle);this.borderRightStyle=Ao(bn,A.borderRightStyle);this.borderBottomStyle=Ao(On,A.borderBottomStyle);this.borderLeftStyle=Ao(Ln,A.borderLeftStyle);this.borderTopWidth=Ao(Sn,A.borderTopWidth);this.borderRightWidth=Ao(Dn,A.borderRightWidth);this.borderBottomWidth=Ao(Mn,A.borderBottomWidth);this.borderLeftWidth=Ao(xn,A.borderLeftWidth);this.boxShadow=Ao(ji,A.boxShadow);this.color=Ao(Pn,A.color);this.display=Ao(Vn,A.display);this.float=Ao(Gn,A.cssFloat);this.fontFamily=Ao(Di,A.fontFamily);this.fontSize=Ao(Mi,A.fontSize);this.fontStyle=Ao(zi,A.fontStyle);this.fontVariant=Ao(Pi,A.fontVariant);this.fontWeight=Ao(xi,A.fontWeight);this.letterSpacing=Ao(Jn,A.letterSpacing);this.lineBreak=Ao(Wn,A.lineBreak);this.lineHeight=Ao(Yn,A.lineHeight);this.listStyleImage=Ao(qn,A.listStyleImage);this.listStylePosition=Ao($n,A.listStylePosition);this.listStyleType=Ao(ei,A.listStyleType);this.marginTop=Ao(ri,A.marginTop);this.marginRight=Ao(ni,A.marginRight);this.marginBottom=Ao(ii,A.marginBottom);this.marginLeft=Ao(oi,A.marginLeft);this.opacity=Ao(Li,A.opacity);var e=Ao(Bi,A.overflow);this.overflowX=e[0];this.overflowY=e[e.length>1?1:0];this.overflowWrap=Ao(ci,A.overflowWrap);this.paddingTop=Ao(li,A.paddingTop);this.paddingRight=Ao(Qi,A.paddingRight);this.paddingBottom=Ao(fi,A.paddingBottom);this.paddingLeft=Ao(wi,A.paddingLeft);this.position=Ao(Ci,A.position);this.textAlign=Ao(hi,A.textAlign);this.textDecorationColor=Ao(_i,A.textDecorationColor||A.color);this.textDecorationLine=Ao(Si,A.textDecorationLine);this.textShadow=Ao(Ei,A.textShadow);this.textTransform=Ao(Fi,A.textTransform);this.transform=Ao(pi,A.transform);this.transformOrigin=Ao(Ii,A.transformOrigin);this.visibility=Ao(yi,A.visibility);this.wordBreak=Ao(bi,A.wordBreak);this.zIndex=Ao(Oi,A.zIndex)}A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Ti.VISIBLE};A.prototype.isTransparent=function(){return rr(this.backgroundColor)};A.prototype.isTransformed=function(){return this.transform!==null};A.prototype.isPositioned=function(){return this.position!==gi.STATIC};A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto};A.prototype.isFloating=function(){return this.float!==Xn.NONE};A.prototype.isInlineLevel=function(){return Xi(this.display,4)||Xi(this.display,33554432)||Xi(this.display,268435456)||Xi(this.display,536870912)||Xi(this.display,67108864)||Xi(this.display,134217728)};return A}(),Zi=function(){function A(A){this.content=Ao(Gi,A.content);this.quotes=Ao(Wi,A.quotes)}return A}(),$i=function(){function A(A){this.counterIncrement=Ao(Ji,A.counterIncrement);this.counterReset=Ao(ki,A.counterReset)}return A}(),Ao=function(A,e){var t=new It;var r=e!==null&&typeof e!=="undefined"?e.toString():A.initialValue;t.write(r);var n=new Tt(t.read());switch(A.type){case lr.IDENT_VALUE:var i=n.parseComponentValue();return A.parse(bt(i)?i.value:A.initialValue);case lr.VALUE:return A.parse(n.parseComponentValue());case lr.LIST:return A.parse(n.parseComponentValues());case lr.TOKEN_VALUE:return n.parseComponentValue();case lr.TYPE_VALUE:switch(A.format){case"angle":return Zt.parse(n.parseComponentValue());case"color":return tr.parse(n.parseComponentValue());case"image":return Bn.parse(n.parseComponentValue());case"length":var o=n.parseComponentValue();return xt(o)?o:zt;case"length-percentage":var s=n.parseComponentValue();return Pt(s)?s:zt}}throw new Error("Attempting to parse unsupported css format type "+A.format)},eo=function(){function A(A){this.styles=new qi(window.getComputedStyle(A,null));this.textNodes=[];this.elements=[];if(this.styles.transform!==null&&Mo(A)){A.style.transform="none"}this.bounds=T(A);this.flags=0}return A}(),to=function(){function A(A,e){this.text=A;this.bounds=e}return A}(),ro=function(A,t,r){var e=oo(A,t);var n=[];var i=0;e.forEach(function(A){if(t.textDecorationLine.length||A.trim().length>0){if(br.SUPPORT_RANGE_BOUNDS){n.push(new to(A,io(r,i,A.length)))}else{var e=r.splitText(A.length);n.push(new to(A,no(r)));r=e}}else if(!br.SUPPORT_RANGE_BOUNDS){r=r.splitText(A.length)}i+=A.length});return n},no=function(A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(true));var r=A.parentNode;if(r){r.replaceChild(t,A);var n=T(t);if(t.firstChild){r.replaceChild(t.firstChild,t)}return n}}return new I(0,0,0,0)},io=function(A,e,t){var r=A.ownerDocument;if(!r){throw new Error("Node has no owner document")}var n=r.createRange();n.setStart(A,e);n.setEnd(A,e+t);return I.fromClientRect(n.getBoundingClientRect())},oo=function(A,e){return e.letterSpacing!==0?c(A).map(function(A){return w(A)}):so(A,e)},so=function(A,e){var t=VA(A,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===ai.BREAK_WORD?"break-word":e.wordBreak});var r=[];var n;while(!(n=t.next()).done){if(n.value){r.push(n.value.slice())}}return r},Bo=function(){function A(A,e){this.text=ao(A.data,e.textTransform);this.textBounds=ro(this.text,e,A)}return A}(),ao=function(A,e){switch(e){case di.LOWERCASE:return A.toLowerCase();case di.CAPITALIZE:return A.replace(co,uo);case di.UPPERCASE:return A.toUpperCase();default:return A}},co=/(^|\s|:|-|\(|\))([a-z])/g,uo=function(A,e,t){if(A.length>0){return e+t.toUpperCase()}return A},lo=function(t){e(A,t);function A(A){var e=t.call(this,A)||this;e.src=A.currentSrc||A.src;e.intrinsicWidth=A.naturalWidth;e.intrinsicHeight=A.naturalHeight;Lr.getInstance().addImage(e.src);return e}return A}(eo),Qo=function(t){e(A,t);function A(A){var e=t.call(this,A)||this;e.canvas=A;e.intrinsicWidth=A.width;e.intrinsicHeight=A.height;return e}return A}(eo),fo=function(r){e(A,r);function A(A){var e=r.call(this,A)||this;var t=new XMLSerializer;e.svg="data:image/svg+xml,"+encodeURIComponent(t.serializeToString(A));e.intrinsicWidth=A.width.baseVal.value;e.intrinsicHeight=A.height.baseVal.value;Lr.getInstance().addImage(e.svg);return e}return A}(eo),wo=function(t){e(A,t);function A(A){var e=t.call(this,A)||this;e.value=A.value;return e}return A}(eo),Uo=function(t){e(A,t);function A(A){var e=t.call(this,A)||this;e.start=A.start;e.reversed=typeof A.reversed==="boolean"&&A.reversed===true;return e}return A}(eo),ho=[{type:zA.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],go=[{type:zA.PERCENTAGE_TOKEN,flags:0,number:50}],Co=function(A){if(A.width>A.height){return new I(A.left+(A.width-A.height)/2,A.top,A.height,A.height)}else if(A.width<A.height){return new I(A.left,A.top+(A.height-A.width)/2,A.width,A.width)}return A},Eo=function(A){var e=A.type===Ho?new Array(A.value.length+1).join("•"):A.value;return e.length===0?A.placeholder||"":e},Fo="checkbox",po="radio",Ho="password",No=707406591,vo=function(t){e(A,t);function A(A){var e=t.call(this,A)||this;e.type=A.type.toLowerCase();e.checked=A.checked;e.value=Eo(A);if(e.type===Fo||e.type===po){e.styles.backgroundColor=3739148031;e.styles.borderTopColor=e.styles.borderRightColor=e.styles.borderBottomColor=e.styles.borderLeftColor=2779096575;e.styles.borderTopWidth=e.styles.borderRightWidth=e.styles.borderBottomWidth=e.styles.borderLeftWidth=1;e.styles.borderTopStyle=e.styles.borderRightStyle=e.styles.borderBottomStyle=e.styles.borderLeftStyle=Tn.SOLID;e.styles.backgroundClip=[Qr.BORDER_BOX];e.styles.backgroundOrigin=[0];e.bounds=Co(e.bounds)}switch(e.type){case Fo:e.styles.borderTopRightRadius=e.styles.borderTopLeftRadius=e.styles.borderBottomRightRadius=e.styles.borderBottomLeftRadius=ho;break;case po:e.styles.borderTopRightRadius=e.styles.borderTopLeftRadius=e.styles.borderBottomRightRadius=e.styles.borderBottomLeftRadius=go;break}return e}return A}(eo),Ko=function(r){e(A,r);function A(A){var e=r.call(this,A)||this;var t=A.options[A.selectedIndex||0];e.value=t?t.text||"":"";return e}return A}(eo),mo=function(t){e(A,t);function A(A){var e=t.call(this,A)||this;e.value=A.value;return e}return A}(eo),Io=function(A){return tr.parse(Tt.create(A).parseComponentValue())},To=function(n){e(A,n);function A(A){var e=n.call(this,A)||this;e.src=A.src;e.width=parseInt(A.width,10)||0;e.height=parseInt(A.height,10)||0;e.backgroundColor=e.styles.backgroundColor;try{if(A.contentWindow&&A.contentWindow.document&&A.contentWindow.document.documentElement){e.tree=Oo(A.contentWindow.document.documentElement);var t=A.contentWindow.document.documentElement?Io(getComputedStyle(A.contentWindow.document.documentElement).backgroundColor):ur.TRANSPARENT;var r=A.contentWindow.document.body?Io(getComputedStyle(A.contentWindow.document.body).backgroundColor):ur.TRANSPARENT;e.backgroundColor=rr(t)?rr(r)?e.styles.backgroundColor:r:t}}catch(A){}return e}return A}(eo),yo=["OL","UL","MENU"],Ro=function(A,e,t){for(var r=A.firstChild,n=void 0;r;r=n){n=r.nextSibling;if(So(r)&&r.data.trim().length>0){e.textNodes.push(new Bo(r,e.styles))}else if(Do(r)){var i=bo(r);if(i.styles.isVisible()){if(Lo(r,i,t)){i.flags|=4}else if(_o(i.styles)){i.flags|=2}if(yo.indexOf(r.tagName)!==-1){i.flags|=8}e.elements.push(i);if(!Zo(r)&&!Go(r)&&!$o(r)){Ro(r,i,t)}}}}},bo=function(A){if(Wo(A)){return new lo(A)}if(ko(A)){return new Qo(A)}if(Go(A)){return new fo(A)}if(Po(A)){return new wo(A)}if(Vo(A)){return new Uo(A)}if(zo(A)){return new vo(A)}if($o(A)){return new Ko(A)}if(Zo(A)){return new mo(A)}if(Yo(A)){return new To(A)}return new eo(A)},Oo=function(A){var e=bo(A);e.flags|=4;Ro(A,e,e);return e},Lo=function(A,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Jo(A)&&t.styles.isTransparent()},_o=function(A){return A.isPositioned()||A.isFloating()},So=function(A){return A.nodeType===Node.TEXT_NODE},Do=function(A){return A.nodeType===Node.ELEMENT_NODE},Mo=function(A){return Do(A)&&typeof A.style!=="undefined"&&!xo(A)},xo=function(A){return typeof A.className==="object"},Po=function(A){return A.tagName==="LI"},Vo=function(A){return A.tagName==="OL"},zo=function(A){return A.tagName==="INPUT"},Xo=function(A){return A.tagName==="HTML"},Go=function(A){return A.tagName==="svg"},Jo=function(A){return A.tagName==="BODY"},ko=function(A){return A.tagName==="CANVAS"},Wo=function(A){return A.tagName==="IMG"},Yo=function(A){return A.tagName==="IFRAME"},jo=function(A){return A.tagName==="STYLE"},qo=function(A){return A.tagName==="SCRIPT"},Zo=function(A){return A.tagName==="TEXTAREA"},$o=function(A){return A.tagName==="SELECT"},As=function(){function A(){this.counters={}}A.prototype.getCounterValue=function(A){var e=this.counters[A];if(e&&e.length){return e[e.length-1]}return 1};A.prototype.getCounterValues=function(A){var e=this.counters[A];return e?e:[]};A.prototype.pop=function(A){var e=this;A.forEach(function(A){return e.counters[A].pop()})};A.prototype.parse=function(A){var t=this;var e=A.counterIncrement;var r=A.counterReset;var n=true;if(e!==null){e.forEach(function(A){var e=t.counters[A.counter];if(e&&A.increment!==0){n=false;e[Math.max(0,e.length-1)]+=A.increment}})}var i=[];if(n){r.forEach(function(A){var e=t.counters[A.counter];i.push(A.counter);if(!e){e=t.counters[A.counter]=[]}e.push(A.reset)})}return i};return A}(),es={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"]},ts={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},rs={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ns={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},is=function(r,A,e,n,t,i){if(r<A||r>e){return gs(r,t,i.length>0)}return n.integers.reduce(function(A,e,t){while(r>=e){r-=e;A+=n.values[t]}return A},"")+i},os=function(A,e,t,r){var n="";do{if(!t){A--}n=r(A)+n;A/=e}while(A*e>=e);return n},ss=function(A,e,t,r,n){var i=t-e+1;return(A<0?"-":"")+(os(Math.abs(A),i,r,function(A){return w(Math.floor(A%i)+e)})+n)},Bs=function(A,e,t){if(t===void 0){t=". "}var r=e.length;return os(Math.abs(A),r,false,function(A){return e[Math.floor(A%r)]})+t},as=1<<0,cs=1<<1,us=1<<2,ls=1<<3,Qs=function(A,e,t,r,n,i){if(A<-9999||A>9999){return gs(A,Ai.CJK_DECIMAL,n.length>0)}var o=Math.abs(A);var s=n;if(o===0){return e[0]+s}for(var B=0;o>0&&B<=4;B++){var a=o%10;if(a===0&&Xi(i,as)&&s!==""){s=e[a]+s}else if(a>1||a===1&&B===0||a===1&&B===1&&Xi(i,cs)||a===1&&B===1&&Xi(i,us)&&A>100||a===1&&B>1&&Xi(i,ls)){s=e[a]+(B>0?t[B-1]:"")+s}else if(a===1&&B>0){s=t[B-1]+s}o=Math.floor(o/10)}return(A<0?r:"")+s},fs="十百千萬",ws="拾佰仟萬",Us="マイナス",hs="마이너스",gs=function(A,e,t){var r=t?". ":"";var n=t?"、":"";var i=t?", ":"";var o=t?" ":"";switch(e){case Ai.DISC:return"•"+o;case Ai.CIRCLE:return"◦"+o;case Ai.SQUARE:return"◾"+o;case Ai.DECIMAL_LEADING_ZERO:var s=ss(A,48,57,true,r);return s.length<4?"0"+s:s;case Ai.CJK_DECIMAL:return Bs(A,"〇一二三四五六七八九",n);case Ai.LOWER_ROMAN:return is(A,1,3999,es,Ai.DECIMAL,r).toLowerCase();case Ai.UPPER_ROMAN:return is(A,1,3999,es,Ai.DECIMAL,r);case Ai.LOWER_GREEK:return ss(A,945,969,false,r);case Ai.LOWER_ALPHA:return ss(A,97,122,false,r);case Ai.UPPER_ALPHA:return ss(A,65,90,false,r);case Ai.ARABIC_INDIC:return ss(A,1632,1641,true,r);case Ai.ARMENIAN:case Ai.UPPER_ARMENIAN:return is(A,1,9999,ts,Ai.DECIMAL,r);case Ai.LOWER_ARMENIAN:return is(A,1,9999,ts,Ai.DECIMAL,r).toLowerCase();case Ai.BENGALI:return ss(A,2534,2543,true,r);case Ai.CAMBODIAN:case Ai.KHMER:return ss(A,6112,6121,true,r);case Ai.CJK_EARTHLY_BRANCH:return Bs(A,"子丑寅卯辰巳午未申酉戌亥",n);case Ai.CJK_HEAVENLY_STEM:return Bs(A,"甲乙丙丁戊己庚辛壬癸",n);case Ai.CJK_IDEOGRAPHIC:case Ai.TRAD_CHINESE_INFORMAL:return Qs(A,"零一二三四五六七八九",fs,"負",n,cs|us|ls);case Ai.TRAD_CHINESE_FORMAL:return Qs(A,"零壹貳參肆伍陸柒捌玖",ws,"負",n,as|cs|us|ls);case Ai.SIMP_CHINESE_INFORMAL:return Qs(A,"零一二三四五六七八九",fs,"负",n,cs|us|ls);case Ai.SIMP_CHINESE_FORMAL:return Qs(A,"零壹贰叁肆伍陆柒捌玖",ws,"负",n,as|cs|us|ls);case Ai.JAPANESE_INFORMAL:return Qs(A,"〇一二三四五六七八九","十百千万",Us,n,0);case Ai.JAPANESE_FORMAL:return Qs(A,"零壱弐参四伍六七八九","拾百千万",Us,n,as|cs|us);case Ai.KOREAN_HANGUL_FORMAL:return Qs(A,"영일이삼사오육칠팔구","십백천만",hs,i,as|cs|us);case Ai.KOREAN_HANJA_INFORMAL:return Qs(A,"零一二三四五六七八九","十百千萬",hs,i,0);case Ai.KOREAN_HANJA_FORMAL:return Qs(A,"零壹貳參四五六七八九","拾百千",hs,i,as|cs|us);case Ai.DEVANAGARI:return ss(A,2406,2415,true,r);case Ai.GEORGIAN:return is(A,1,19999,ns,Ai.DECIMAL,r);case Ai.GUJARATI:return ss(A,2790,2799,true,r);case Ai.GURMUKHI:return ss(A,2662,2671,true,r);case Ai.HEBREW:return is(A,1,10999,rs,Ai.DECIMAL,r);case Ai.HIRAGANA:return Bs(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Ai.HIRAGANA_IROHA:return Bs(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Ai.KANNADA:return ss(A,3302,3311,true,r);case Ai.KATAKANA:return Bs(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case Ai.KATAKANA_IROHA:return Bs(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case Ai.LAO:return ss(A,3792,3801,true,r);case Ai.MONGOLIAN:return ss(A,6160,6169,true,r);case Ai.MYANMAR:return ss(A,4160,4169,true,r);case Ai.ORIYA:return ss(A,2918,2927,true,r);case Ai.PERSIAN:return ss(A,1776,1785,true,r);case Ai.TAMIL:return ss(A,3046,3055,true,r);case Ai.TELUGU:return ss(A,3174,3183,true,r);case Ai.THAI:return ss(A,3664,3673,true,r);case Ai.TIBETAN:return ss(A,3872,3881,true,r);case Ai.DECIMAL:default:return ss(A,48,57,true,r)}},Cs="data-html2canvas-ignore",Es=function(){function A(A,e){this.options=e;this.scrolledElements=[];this.referenceElement=A;this.counters=new As;this.quoteDepth=0;if(!A.ownerDocument){throw new Error("Cloned element does not have an owner document")}this.documentElement=this.cloneNode(A.ownerDocument.documentElement)}A.prototype.toIFrame=function(A,t){var e=this;var r=Fs(A,t);if(!r.contentWindow){return Promise.reject("Unable to find iframe window")}var n=A.defaultView.pageXOffset;var i=A.defaultView.pageYOffset;var o=r.contentWindow;var s=o.document;var B=ps(r).then(function(){return a(e,void 0,void 0,function(){var e;return S(this,function(A){switch(A.label){case 0:this.scrolledElements.forEach(Ks);if(o){o.scrollTo(t.left,t.top);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==t.top||o.scrollX!==t.left)){s.documentElement.style.top=-t.top+"px";s.documentElement.style.left=-t.left+"px";s.documentElement.style.position="absolute"}}e=this.options.onclone;if(typeof this.clonedReferenceElement==="undefined"){return[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]}if(!(s.fonts&&s.fonts.ready))return[3,2];return[4,s.fonts.ready];case 1:A.sent();A.label=2;case 2:if(typeof e==="function"){return[2,Promise.resolve().then(function(){return e(s)}).then(function(){return r})]}return[2,r]}})})});s.open();s.write(Ns(document.doctype)+"<html></html>");vs(this.referenceElement.ownerDocument,n,i);s.replaceChild(s.adoptNode(this.documentElement),s.documentElement);s.close();return B};A.prototype.createElementClone=function(A){if(ko(A)){return this.createCanvasClone(A)}if(jo(A)){return this.createStyleClone(A)}var e=A.cloneNode(false);if(Wo(e)&&e.loading==="lazy"){e.loading="eager"}return e};A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(A,e){if(e&&typeof e.cssText==="string"){return A+e.cssText}return A},"");var r=A.cloneNode(false);r.textContent=t;return r}}catch(A){Or.getInstance(this.options.id).error("Unable to access cssRules property",A);if(A.name!=="SecurityError"){throw A}}return A.cloneNode(false)};A.prototype.createCanvasClone=function(A){if(this.options.inlineImages&&A.ownerDocument){var e=A.ownerDocument.createElement("img");try{e.src=A.toDataURL();return e}catch(A){Or.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var t=A.cloneNode(false);try{t.width=A.width;t.height=A.height;var r=A.getContext("2d");var n=t.getContext("2d");if(n){if(r){n.putImageData(r.getImageData(0,0,A.width,A.height),0,0)}else{n.drawImage(A,0,0)}}return t}catch(A){}return t};A.prototype.cloneNode=function(A){if(So(A)){return document.createTextNode(A.data)}if(!A.ownerDocument){return A.cloneNode(false)}var e=A.ownerDocument.defaultView;if(e&&Do(A)&&(Mo(A)||xo(A))){var t=this.createElementClone(A);var r=e.getComputedStyle(A);var n=e.getComputedStyle(A,":before");var i=e.getComputedStyle(A,":after");if(this.referenceElement===A&&Mo(t)){this.clonedReferenceElement=t}if(Jo(t)){bs(t)}var o=this.counters.parse(new $i(r));var s=this.resolvePseudoContent(A,t,n,ds.BEFORE);for(var B=A.firstChild;B;B=B.nextSibling){if(!Do(B)||!qo(B)&&!B.hasAttribute(Cs)&&(typeof this.options.ignoreElements!=="function"||!this.options.ignoreElements(B))){if(!this.options.copyStyles||!Do(B)||!jo(B)){t.appendChild(this.cloneNode(B))}}}if(s){t.insertBefore(s,t.firstChild)}var a=this.resolvePseudoContent(A,t,i,ds.AFTER);if(a){t.appendChild(a)}this.counters.pop(o);if(r&&(this.options.copyStyles||xo(A))&&!Yo(A)){Hs(r,t)}if(A.scrollTop!==0||A.scrollLeft!==0){this.scrolledElements.push([t,A.scrollLeft,A.scrollTop])}if((Zo(A)||$o(A))&&(Zo(t)||$o(t))){t.value=A.value}return t}return A.cloneNode(false)};A.prototype.resolvePseudoContent=function(f,A,e,t){var w=this;if(!e){return}var r=e.content;var U=A.ownerDocument;if(!U||!r||r==="none"||r==="-moz-alt-content"||e.display==="none"){return}this.counters.parse(new $i(e));var h=new Zi(e);var g=U.createElement("html2canvaspseudoelement");Hs(e,g);h.content.forEach(function(A){if(A.type===zA.STRING_TOKEN){g.appendChild(U.createTextNode(A.value))}else if(A.type===zA.URL_TOKEN){var e=U.createElement("img");e.src=A.value;e.style.opacity="1";g.appendChild(e)}else if(A.type===zA.FUNCTION){if(A.name==="attr"){var t=A.values.filter(bt);if(t.length){g.appendChild(U.createTextNode(f.getAttribute(t[0].value)||""))}}else if(A.name==="counter"){var r=A.values.filter(St),n=r[0],i=r[1];if(n&&bt(n)){var o=w.counters.getCounterValue(n.value);var s=i&&bt(i)?ei.parse(i.value):Ai.DECIMAL;g.appendChild(U.createTextNode(gs(o,s,false)))}}else if(A.name==="counters"){var B=A.values.filter(St),n=B[0],a=B[1],i=B[2];if(n&&bt(n)){var c=w.counters.getCounterValues(n.value);var u=i&&bt(i)?ei.parse(i.value):Ai.DECIMAL;var l=a&&a.type===zA.STRING_TOKEN?a.value:"";var Q=c.map(function(A){return gs(A,u,false)}).join(l);g.appendChild(U.createTextNode(Q))}}}else if(A.type===zA.IDENT_TOKEN){switch(A.value){case"open-quote":g.appendChild(U.createTextNode(Yi(h.quotes,w.quoteDepth++,true)));break;case"close-quote":g.appendChild(U.createTextNode(Yi(h.quotes,--w.quoteDepth,false)));break;default:g.appendChild(U.createTextNode(A.value))}}});g.className=Ts+" "+ys;var n=t===ds.BEFORE?" "+Ts:" "+ys;if(xo(A)){A.className.baseValue+=n}else{A.className+=n}return g};A.destroy=function(A){if(A.parentNode){A.parentNode.removeChild(A);return true}return false};return A}(),ds;(function(A){A[A["BEFORE"]=0]="BEFORE";A[A["AFTER"]=1]="AFTER"})(ds||(ds={}));var Fs=function(A,e){var t=A.createElement("iframe");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(Cs,"true");A.body.appendChild(t);return t},ps=function(n){return new Promise(function(e,A){var t=n.contentWindow;if(!t){return A("No window assigned for iframe")}var r=t.document;t.onload=n.onload=r.onreadystatechange=function(){t.onload=n.onload=r.onreadystatechange=null;var A=setInterval(function(){if(r.body.childNodes.length>0&&r.readyState==="complete"){clearInterval(A);e(n)}},50)}})},Hs=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);if(r!=="content"){e.style.setProperty(r,A.getPropertyValue(r))}}return e},Ns=function(A){var e="";if(A){e+="<!DOCTYPE ";if(A.name){e+=A.name}if(A.internalSubset){e+=A.internalSubset}if(A.publicId){e+='"'+A.publicId+'"'}if(A.systemId){e+='"'+A.systemId+'"'}e+=">"}return e},vs=function(A,e,t){if(A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)){A.defaultView.scrollTo(e,t)}},Ks=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t;e.scrollTop=r},ms=":before",Is=":after",Ts="___html2canvas___pseudoelement_before",ys="___html2canvas___pseudoelement_after",Rs='{\n    content: "" !important;\n    display: none !important;\n}',bs=function(A){Os(A,"."+Ts+ms+Rs+"\n         ."+ys+Is+Rs)},Os=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e;A.appendChild(r)}},Ls;(function(A){A[A["VECTOR"]=0]="VECTOR";A[A["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(Ls||(Ls={}));var _s=function(A,t){if(A.length===t.length){return A.some(function(A,e){return A===t[e]})}return false},Ss=function(A,t,r,n,i){return A.map(function(A,e){switch(e){case 0:return A.add(t,r);case 1:return A.add(t+n,r);case 2:return A.add(t+n,r+i);case 3:return A.add(t,r+i)}return A})},Ds=function(){function t(A,e){this.type=Ls.VECTOR;this.x=A;this.y=e}t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)};return t}(),Ms=function(A,e,t){return new Ds(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},xs=function(){function B(A,e,t,r){this.type=Ls.BEZIER_CURVE;this.start=A;this.startControl=e;this.endControl=t;this.end=r}B.prototype.subdivide=function(A,e){var t=Ms(this.start,this.startControl,A);var r=Ms(this.startControl,this.endControl,A);var n=Ms(this.endControl,this.end,A);var i=Ms(t,r,A);var o=Ms(r,n,A);var s=Ms(i,o,A);return e?new B(this.start,t,i,s):new B(s,o,n,this.end)};B.prototype.add=function(A,e){return new B(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))};B.prototype.reverse=function(){return new B(this.end,this.endControl,this.startControl,this.start)};return B}(),Ps=function(A){return A.type===Ls.BEZIER_CURVE},Vs=function(){function A(A){var e=A.styles;var t=A.bounds;var r=Jt(e.borderTopLeftRadius,t.width,t.height),n=r[0],i=r[1];var o=Jt(e.borderTopRightRadius,t.width,t.height),s=o[0],B=o[1];var a=Jt(e.borderBottomRightRadius,t.width,t.height),c=a[0],u=a[1];var l=Jt(e.borderBottomLeftRadius,t.width,t.height),Q=l[0],f=l[1];var w=[];w.push((n+s)/t.width);w.push((Q+c)/t.width);w.push((i+f)/t.height);w.push((B+u)/t.height);var U=Math.max.apply(Math,w);if(U>1){n/=U;i/=U;s/=U;B/=U;c/=U;u/=U;Q/=U;f/=U}var h=t.width-s;var g=t.height-u;var C=t.width-c;var E=t.height-f;var d=e.borderTopWidth;var F=e.borderRightWidth;var p=e.borderBottomWidth;var H=e.borderLeftWidth;var N=kt(e.paddingTop,A.bounds.width);var v=kt(e.paddingRight,A.bounds.width);var K=kt(e.paddingBottom,A.bounds.width);var m=kt(e.paddingLeft,A.bounds.width);this.topLeftBorderBox=n>0||i>0?Xs(t.left,t.top,n,i,zs.TOP_LEFT):new Ds(t.left,t.top);this.topRightBorderBox=s>0||B>0?Xs(t.left+h,t.top,s,B,zs.TOP_RIGHT):new Ds(t.left+t.width,t.top);this.bottomRightBorderBox=c>0||u>0?Xs(t.left+C,t.top+g,c,u,zs.BOTTOM_RIGHT):new Ds(t.left+t.width,t.top+t.height);this.bottomLeftBorderBox=Q>0||f>0?Xs(t.left,t.top+E,Q,f,zs.BOTTOM_LEFT):new Ds(t.left,t.top+t.height);this.topLeftPaddingBox=n>0||i>0?Xs(t.left+H,t.top+d,Math.max(0,n-H),Math.max(0,i-d),zs.TOP_LEFT):new Ds(t.left+H,t.top+d);this.topRightPaddingBox=s>0||B>0?Xs(t.left+Math.min(h,t.width+H),t.top+d,h>t.width+H?0:s-H,B-d,zs.TOP_RIGHT):new Ds(t.left+t.width-F,t.top+d);this.bottomRightPaddingBox=c>0||u>0?Xs(t.left+Math.min(C,t.width-H),t.top+Math.min(g,t.height+d),Math.max(0,c-F),u-p,zs.BOTTOM_RIGHT):new Ds(t.left+t.width-F,t.top+t.height-p);this.bottomLeftPaddingBox=Q>0||f>0?Xs(t.left+H,t.top+E,Math.max(0,Q-H),f-p,zs.BOTTOM_LEFT):new Ds(t.left+H,t.top+t.height-p);this.topLeftContentBox=n>0||i>0?Xs(t.left+H+m,t.top+d+N,Math.max(0,n-(H+m)),Math.max(0,i-(d+N)),zs.TOP_LEFT):new Ds(t.left+H+m,t.top+d+N);this.topRightContentBox=s>0||B>0?Xs(t.left+Math.min(h,t.width+H+m),t.top+d+N,h>t.width+H+m?0:s-H+m,B-(d+N),zs.TOP_RIGHT):new Ds(t.left+t.width-(F+v),t.top+d+N);this.bottomRightContentBox=c>0||u>0?Xs(t.left+Math.min(C,t.width-(H+m)),t.top+Math.min(g,t.height+d+N),Math.max(0,c-(F+v)),u-(p+K),zs.BOTTOM_RIGHT):new Ds(t.left+t.width-(F+v),t.top+t.height-(p+K));this.bottomLeftContentBox=Q>0||f>0?Xs(t.left+H+m,t.top+E,Math.max(0,Q-(H+m)),f-(p+K),zs.BOTTOM_LEFT):new Ds(t.left+H+m,t.top+t.height-(p+K))}return A}(),zs;(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"})(zs||(zs={}));var Xs=function(A,e,t,r,n){var i=4*((Math.sqrt(2)-1)/3);var o=t*i;var s=r*i;var B=A+t;var a=e+r;switch(n){case zs.TOP_LEFT:return new xs(new Ds(A,a),new Ds(A,a-s),new Ds(B-o,e),new Ds(B,e));case zs.TOP_RIGHT:return new xs(new Ds(A,e),new Ds(A+o,e),new Ds(B,a-s),new Ds(B,a));case zs.BOTTOM_RIGHT:return new xs(new Ds(B,e),new Ds(B,e+s),new Ds(A+o,a),new Ds(A,a));case zs.BOTTOM_LEFT:default:return new xs(new Ds(B,a),new Ds(B-o,a),new Ds(A,e+s),new Ds(A,e))}},Gs=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},Js=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},ks=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},Ws=function(){function A(A,e,t){this.type=0;this.offsetX=A;this.offsetY=e;this.matrix=t;this.target=2|4}return A}(),Ys=function(){function A(A,e){this.type=1;this.target=e;this.path=A}return A}(),js=function(A){return A.type===0},qs=function(A){return A.type===1},Zs=function(){function A(A){this.element=A;this.inlineLevel=[];this.nonInlineLevel=[];this.negativeZIndex=[];this.zeroOrAutoZIndexOrTransformedOrOpacity=[];this.positiveZIndex=[];this.nonPositionedFloats=[];this.nonPositionedInlineLevel=[]}return A}(),$s=function(){function A(A,e){this.container=A;this.effects=e.slice(0);this.curves=new Vs(A);if(A.styles.transform!==null){var t=A.bounds.left+A.styles.transformOrigin[0].number;var r=A.bounds.top+A.styles.transformOrigin[1].number;var n=A.styles.transform;this.effects.push(new Ws(t,r,n))}if(A.styles.overflowX!==si.VISIBLE){var i=Gs(this.curves);var o=ks(this.curves);if(_s(i,o)){this.effects.push(new Ys(i,2|4))}else{this.effects.push(new Ys(i,2));this.effects.push(new Ys(o,4))}}}A.prototype.getParentEffects=function(){var A=this.effects.slice(0);if(this.container.styles.overflowX!==si.VISIBLE){var e=Gs(this.curves);var t=ks(this.curves);if(!_s(e,t)){A.push(new Ys(t,2|4))}}return A};return A}(),AB=function(c,u,l,Q){c.container.elements.forEach(function(A){var e=Xi(A.flags,4);var t=Xi(A.flags,2);var r=new $s(A,c.getParentEffects());if(Xi(A.styles.display,2048)){Q.push(r)}var n=Xi(A.flags,8)?[]:Q;if(e||t){var i=e||A.styles.isPositioned()?l:u;var o=new Zs(r);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var s=A.styles.zIndex.order;if(s<0){var B=0;i.negativeZIndex.some(function(A,e){if(s>A.element.container.styles.zIndex.order){B=e;return false}else if(B>0){return true}return false});i.negativeZIndex.splice(B,0,o)}else if(s>0){var a=0;i.positiveZIndex.some(function(A,e){if(s>=A.element.container.styles.zIndex.order){a=e+1;return false}else if(a>0){return true}return false});i.positiveZIndex.splice(a,0,o)}else{i.zeroOrAutoZIndexOrTransformedOrOpacity.push(o)}}else{if(A.styles.isFloating()){i.nonPositionedFloats.push(o)}else{i.nonPositionedInlineLevel.push(o)}}AB(r,o,e?o:l,n)}else{if(A.styles.isInlineLevel()){u.inlineLevel.push(r)}else{u.nonInlineLevel.push(r)}AB(r,u,l,n)}if(Xi(A.flags,8)){eB(A,n)}})},eB=function(A,e){var t=A instanceof Uo?A.start:1;var r=A instanceof Uo?A.reversed:false;for(var n=0;n<e.length;n++){var i=e[n];if(i.container instanceof wo&&typeof i.container.value==="number"&&i.container.value!==0){t=i.container.value}i.listValue=gs(t,i.container.styles.listStyleType,true);t+=r?-1:1}},tB=function(A){var e=new $s(A,[]);var t=new Zs(e);var r=[];AB(e,t,t,r);eB(e.container,r);return t},rB=function(A,e){switch(e){case 0:return nB(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return nB(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return nB(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);case 3:default:return nB(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}},nB=function(A,e,t,r){var n=[];if(Ps(A)){n.push(A.subdivide(.5,false))}else{n.push(A)}if(Ps(t)){n.push(t.subdivide(.5,true))}else{n.push(t)}if(Ps(r)){n.push(r.subdivide(.5,true).reverse())}else{n.push(r)}if(Ps(e)){n.push(e.subdivide(.5,false).reverse())}else{n.push(e)}return n},iB=function(A){var e=A.bounds;var t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},oB=function(A){var e=A.styles;var t=A.bounds;var r=kt(e.paddingLeft,t.width);var n=kt(e.paddingRight,t.width);var i=kt(e.paddingTop,t.width);var o=kt(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+i+o))},sB=function(A,e){if(A===0){return e.bounds}if(A===2){return oB(e)}return iB(e)},BB=function(A,e){if(A===Qr.BORDER_BOX){return e.bounds}if(A===Qr.CONTENT_BOX){return oB(e)}return iB(e)},aB=function(A,e,t){var r=sB(QB(A.styles.backgroundOrigin,e),A);var n=BB(QB(A.styles.backgroundClip,e),A);var i=lB(QB(A.styles.backgroundSize,e),t,r);var o=i[0],s=i[1];var B=Jt(QB(A.styles.backgroundPosition,e),r.width-o,r.height-s);var a=fB(QB(A.styles.backgroundRepeat,e),B,i,r,n);var c=Math.round(r.left+B[0]);var u=Math.round(r.top+B[1]);return[a,c,u,o,s]},cB=function(A){return bt(A)&&A.value===hn.AUTO},uB=function(A){return typeof A==="number"},lB=function(A,e,t){var r=e[0],n=e[1],i=e[2];var o=A[0],s=A[1];if(Pt(o)&&s&&Pt(s)){return[kt(o,t.width),kt(s,t.height)]}var B=uB(i);if(bt(o)&&(o.value===hn.CONTAIN||o.value===hn.COVER)){if(uB(i)){var a=t.width/t.height;return a<i!==(o.value===hn.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var c=uB(r);var u=uB(n);var l=c||u;if(cB(o)&&(!s||cB(s))){if(c&&u){return[r,n]}if(!B&&!l){return[t.width,t.height]}if(l&&B){var Q=c?r:n*i;var f=u?n:r/i;return[Q,f]}var w=c?r:t.width;var U=u?n:t.height;return[w,U]}if(B){var h=0;var g=0;if(Pt(o)){h=kt(o,t.width)}else if(Pt(s)){g=kt(s,t.height)}if(cB(o)){h=g*i}else if(!s||cB(s)){g=h/i}return[h,g]}var C=null;var E=null;if(Pt(o)){C=kt(o,t.width)}else if(s&&Pt(s)){E=kt(s,t.height)}if(C!==null&&(!s||cB(s))){E=c&&u?C/r*n:t.height}if(E!==null&&cB(o)){C=c&&u?E/n*r:t.width}if(C!==null&&E!==null){return[C,E]}throw new Error("Unable to calculate background-size for element")},QB=function(A,e){var t=A[e];if(typeof t==="undefined"){return A[0]}return t},fB=function(A,e,t,r,n){var i=e[0],o=e[1];var s=t[0],B=t[1];switch(A){case fn.REPEAT_X:return[new Ds(Math.round(r.left),Math.round(r.top+o)),new Ds(Math.round(r.left+r.width),Math.round(r.top+o)),new Ds(Math.round(r.left+r.width),Math.round(B+r.top+o)),new Ds(Math.round(r.left),Math.round(B+r.top+o))];case fn.REPEAT_Y:return[new Ds(Math.round(r.left+i),Math.round(r.top)),new Ds(Math.round(r.left+i+s),Math.round(r.top)),new Ds(Math.round(r.left+i+s),Math.round(r.height+r.top)),new Ds(Math.round(r.left+i),Math.round(r.height+r.top))];case fn.NO_REPEAT:return[new Ds(Math.round(r.left+i),Math.round(r.top+o)),new Ds(Math.round(r.left+i+s),Math.round(r.top+o)),new Ds(Math.round(r.left+i+s),Math.round(r.top+o+B)),new Ds(Math.round(r.left+i),Math.round(r.top+o+B))];default:return[new Ds(Math.round(n.left),Math.round(n.top)),new Ds(Math.round(n.left+n.width),Math.round(n.top)),new Ds(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ds(Math.round(n.left),Math.round(n.height+n.top))]}},wB="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",UB="Hidden Text",hB=function(){function A(A){this._data={};this._document=A}A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div");var r=this._document.createElement("img");var n=this._document.createElement("span");var i=this._document.body;t.style.visibility="hidden";t.style.fontFamily=A;t.style.fontSize=e;t.style.margin="0";t.style.padding="0";i.appendChild(t);r.src=wB;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(UB));t.appendChild(n);t.appendChild(r);var o=r.offsetTop-n.offsetTop+2;t.removeChild(n);t.appendChild(this._document.createTextNode(UB));t.style.lineHeight="normal";r.style.verticalAlign="super";var s=r.offsetTop-t.offsetTop+2;i.removeChild(t);return{baseline:o,middle:s}};A.prototype.getMetrics=function(A,e){var t=A+" "+e;if(typeof this._data[t]==="undefined"){this._data[t]=this.parseMetrics(A,e)}return this._data[t]};return A}(),gB=1e4,CB=function(){function E(A){this._activeEffects=[];this.canvas=A.canvas?A.canvas:document.createElement("canvas");this.ctx=this.canvas.getContext("2d");this.options=A;if(!A.canvas){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 hB(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=[];Or.getInstance(A.id).debug("Canvas renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}E.prototype.applyEffects=function(A,e){var t=this;while(this._activeEffects.length){this.popEffect()}A.filter(function(A){return Xi(A.target,e)}).forEach(function(A){return t.applyEffect(A)})};E.prototype.applyEffect=function(A){this.ctx.save();if(js(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)}if(qs(A)){this.path(A.path);this.ctx.clip()}this._activeEffects.push(A)};E.prototype.popEffect=function(){this._activeEffects.pop();this.ctx.restore()};E.prototype.renderStack=function(t){return a(this,void 0,void 0,function(){var e;return S(this,function(A){switch(A.label){case 0:e=t.element.container.styles;if(!e.isVisible())return[3,2];this.ctx.globalAlpha=e.opacity;return[4,this.renderStackContent(t)];case 1:A.sent();A.label=2;case 2:return[2]}})})};E.prototype.renderNode=function(e){return a(this,void 0,void 0,function(){return S(this,function(A){switch(A.label){case 0:if(!e.container.styles.isVisible())return[3,3];return[4,this.renderNodeBackgroundAndBorders(e)];case 1:A.sent();return[4,this.renderNodeContent(e)];case 2:A.sent();A.label=3;case 3:return[2]}})})};E.prototype.renderTextWithLetterSpacing=function(t,A){var r=this;if(A===0){this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height)}else{var e=c(t.text).map(function(A){return w(A)});e.reduce(function(A,e){r.ctx.fillText(e,A,t.bounds.top+t.bounds.height);return A+r.ctx.measureText(e).width},t.bounds.left)}};E.prototype.createFontStyle=function(A){var e=A.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join("");var t=A.fontFamily.join(", ");var r=yt(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,e,A.fontWeight,r,t].join(" "),t,r]};E.prototype.renderTextNode=function(r,s){return a(this,void 0,void 0,function(){var e,t,n,i;var o=this;return S(this,function(A){e=this.createFontStyle(s),t=e[0],n=e[1],i=e[2];this.ctx.font=t;r.textBounds.forEach(function(r){o.ctx.fillStyle=nr(s.color);o.renderTextWithLetterSpacing(r,s.letterSpacing);var A=s.textShadow;if(A.length&&r.text.trim().length){A.slice(0).reverse().forEach(function(A){o.ctx.shadowColor=nr(A.color);o.ctx.shadowOffsetX=A.offsetX.number*o.options.scale;o.ctx.shadowOffsetY=A.offsetY.number*o.options.scale;o.ctx.shadowBlur=A.blur.number;o.ctx.fillText(r.text,r.bounds.left,r.bounds.top+r.bounds.height)});o.ctx.shadowColor="";o.ctx.shadowOffsetX=0;o.ctx.shadowOffsetY=0;o.ctx.shadowBlur=0}if(s.textDecorationLine.length){o.ctx.fillStyle=nr(s.textDecorationColor||s.color);s.textDecorationLine.forEach(function(A){switch(A){case 1:var e=o.fontMetrics.getMetrics(n,i).baseline;o.ctx.fillRect(r.bounds.left,Math.round(r.bounds.top+e),r.bounds.width,1);break;case 2:o.ctx.fillRect(r.bounds.left,Math.round(r.bounds.top),r.bounds.width,1);break;case 3:var t=o.fontMetrics.getMetrics(n,i).middle;o.ctx.fillRect(r.bounds.left,Math.ceil(r.bounds.top+t),r.bounds.width,1);break}})}});return[2]})})};E.prototype.renderReplacedElement=function(A,e,t){if(t&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var r=oB(A);var n=ks(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()}};E.prototype.renderNodeContent=function(C){return a(this,void 0,void 0,function(){var e,t,r,n,i,o,s,B,s,a,c,u,l,Q,f,w,U,s,h,g,Q;return S(this,function(A){switch(A.label){case 0:this.applyEffects(C.effects,4);e=C.container;t=C.curves;r=e.styles;n=0,i=e.textNodes;A.label=1;case 1:if(!(n<i.length))return[3,4];o=i[n];return[4,this.renderTextNode(o,r)];case 2:A.sent();A.label=3;case 3:n++;return[3,1];case 4:if(!(e instanceof lo))return[3,8];A.label=5;case 5:A.trys.push([5,7,,8]);return[4,this.options.cache.match(e.src)];case 6:s=A.sent();this.renderReplacedElement(e,t,s);return[3,8];case 7:B=A.sent();Or.getInstance(this.options.id).error("Error loading image "+e.src);return[3,8];case 8:if(e instanceof Qo){this.renderReplacedElement(e,t,e.canvas)}if(!(e instanceof fo))return[3,12];A.label=9;case 9:A.trys.push([9,11,,12]);return[4,this.options.cache.match(e.svg)];case 10:s=A.sent();this.renderReplacedElement(e,t,s);return[3,12];case 11:a=A.sent();Or.getInstance(this.options.id).error("Error loading svg "+e.svg.substring(0,255));return[3,12];case 12:if(!(e instanceof To&&e.tree))return[3,14];c=new E({id:this.options.id,scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:e.width,height:e.height,cache:this.options.cache,windowWidth:e.width,windowHeight:e.height});return[4,c.render(e.tree)];case 13:u=A.sent();if(e.width&&e.height){this.ctx.drawImage(u,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height)}A.label=14;case 14:if(e instanceof vo){l=Math.min(e.bounds.width,e.bounds.height);if(e.type===Fo){if(e.checked){this.ctx.save();this.path([new Ds(e.bounds.left+l*.39363,e.bounds.top+l*.79),new Ds(e.bounds.left+l*.16,e.bounds.top+l*.5549),new Ds(e.bounds.left+l*.27347,e.bounds.top+l*.44071),new Ds(e.bounds.left+l*.39694,e.bounds.top+l*.5649),new Ds(e.bounds.left+l*.72983,e.bounds.top+l*.23),new Ds(e.bounds.left+l*.84,e.bounds.top+l*.34085),new Ds(e.bounds.left+l*.39363,e.bounds.top+l*.79)]);this.ctx.fillStyle=nr(No);this.ctx.fill();this.ctx.restore()}}else if(e.type===po){if(e.checked){this.ctx.save();this.ctx.beginPath();this.ctx.arc(e.bounds.left+l/2,e.bounds.top+l/2,l/4,0,Math.PI*2,true);this.ctx.fillStyle=nr(No);this.ctx.fill();this.ctx.restore()}}}if(EB(e)&&e.value.length){this.ctx.font=this.createFontStyle(r)[0];this.ctx.fillStyle=nr(r.color);this.ctx.textBaseline="middle";this.ctx.textAlign=FB(e.styles.textAlign);Q=oB(e);f=0;switch(e.styles.textAlign){case Ui.CENTER:f+=Q.width/2;break;case Ui.RIGHT:f+=Q.width;break}w=Q.add(f,0,0,-Q.height/2+1);this.ctx.save();this.path([new Ds(Q.left,Q.top),new Ds(Q.left+Q.width,Q.top),new Ds(Q.left+Q.width,Q.top+Q.height),new Ds(Q.left,Q.top+Q.height)]);this.ctx.clip();this.renderTextWithLetterSpacing(new to(e.value,w),r.letterSpacing);this.ctx.restore();this.ctx.textBaseline="bottom";this.ctx.textAlign="left"}if(!Xi(e.styles.display,2048))return[3,20];if(!(e.styles.listStyleImage!==null))return[3,19];U=e.styles.listStyleImage;if(!(U.type===tn.URL))return[3,18];s=void 0;h=U.url;A.label=15;case 15:A.trys.push([15,17,,18]);return[4,this.options.cache.match(h)];case 16:s=A.sent();this.ctx.drawImage(s,e.bounds.left-(s.width+10),e.bounds.top);return[3,18];case 17:g=A.sent();Or.getInstance(this.options.id).error("Error loading list-style-image "+h);return[3,18];case 18:return[3,20];case 19:if(C.listValue&&e.styles.listStyleType!==Ai.NONE){this.ctx.font=this.createFontStyle(r)[0];this.ctx.fillStyle=nr(r.color);this.ctx.textBaseline="middle";this.ctx.textAlign="right";Q=new I(e.bounds.left,e.bounds.top+kt(e.styles.paddingTop,e.bounds.width),e.bounds.width,jn(r.lineHeight,r.fontSize.number)/2+1);this.renderTextWithLetterSpacing(new to(C.listValue,Q),r.letterSpacing);this.ctx.textBaseline="bottom";this.ctx.textAlign="left"}A.label=20;case 20:return[2]}})})};E.prototype.renderStackContent=function(U){return a(this,void 0,void 0,function(){var e,t,r,n,i,r,o,s,r,B,a,r,c,u,r,l,Q,r,f,w,r;return S(this,function(A){switch(A.label){case 0:return[4,this.renderNodeBackgroundAndBorders(U.element)];case 1:A.sent();e=0,t=U.negativeZIndex;A.label=2;case 2:if(!(e<t.length))return[3,5];r=t[e];return[4,this.renderStack(r)];case 3:A.sent();A.label=4;case 4:e++;return[3,2];case 5:return[4,this.renderNodeContent(U.element)];case 6:A.sent();n=0,i=U.nonInlineLevel;A.label=7;case 7:if(!(n<i.length))return[3,10];r=i[n];return[4,this.renderNode(r)];case 8:A.sent();A.label=9;case 9:n++;return[3,7];case 10:o=0,s=U.nonPositionedFloats;A.label=11;case 11:if(!(o<s.length))return[3,14];r=s[o];return[4,this.renderStack(r)];case 12:A.sent();A.label=13;case 13:o++;return[3,11];case 14:B=0,a=U.nonPositionedInlineLevel;A.label=15;case 15:if(!(B<a.length))return[3,18];r=a[B];return[4,this.renderStack(r)];case 16:A.sent();A.label=17;case 17:B++;return[3,15];case 18:c=0,u=U.inlineLevel;A.label=19;case 19:if(!(c<u.length))return[3,22];r=u[c];return[4,this.renderNode(r)];case 20:A.sent();A.label=21;case 21:c++;return[3,19];case 22:l=0,Q=U.zeroOrAutoZIndexOrTransformedOrOpacity;A.label=23;case 23:if(!(l<Q.length))return[3,26];r=Q[l];return[4,this.renderStack(r)];case 24:A.sent();A.label=25;case 25:l++;return[3,23];case 26:f=0,w=U.positiveZIndex;A.label=27;case 27:if(!(f<w.length))return[3,30];r=w[f];return[4,this.renderStack(r)];case 28:A.sent();A.label=29;case 29:f++;return[3,27];case 30:return[2]}})})};E.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()};E.prototype.path=function(A){this.ctx.beginPath();this.formatPath(A);this.ctx.closePath()};E.prototype.formatPath=function(A){var r=this;A.forEach(function(A,e){var t=Ps(A)?A.start:A;if(e===0){r.ctx.moveTo(t.x,t.y)}else{r.ctx.lineTo(t.x,t.y)}if(Ps(A)){r.ctx.bezierCurveTo(A.startControl.x,A.startControl.y,A.endControl.x,A.endControl.y,A.end.x,A.end.y)}})};E.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)};E.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");n.drawImage(A,0,0,A.width,A.height,0,0,e,t);return r};E.prototype.renderBackgroundImage=function(_){return a(this,void 0,void 0,function(){var O,e,L,t,r,n;return S(this,function(A){switch(A.label){case 0:O=_.styles.backgroundImage.length-1;e=function(e){var t,r,n,i,o,s,B,a,c,u,l,o,s,B,a,c,Q,f,w,U,h,g,C,E,d,u,F,o,p,H,a,c,N,s,B,v,K,m,I,T,y,R,b;return S(this,function(A){switch(A.label){case 0:if(!(e.type===tn.URL))return[3,5];t=void 0;r=e.url;A.label=1;case 1:A.trys.push([1,3,,4]);return[4,L.options.cache.match(r)];case 2:t=A.sent();return[3,4];case 3:n=A.sent();Or.getInstance(L.options.id).error("Error loading background-image "+r);return[3,4];case 4:if(t){i=aB(_,O,[t.width,t.height,t.width/t.height]),o=i[0],s=i[1],B=i[2],a=i[3],c=i[4];u=L.ctx.createPattern(L.resizeImage(t,a,c),"repeat");L.renderRepeat(o,u,s,B)}return[3,6];case 5:if(rn(e)){l=aB(_,O,[null,null,null]),o=l[0],s=l[1],B=l[2],a=l[3],c=l[4];Q=Cr(e.angle,a,c),f=Q[0],w=Q[1],U=Q[2],h=Q[3],g=Q[4];C=document.createElement("canvas");C.width=a;C.height=c;E=C.getContext("2d");d=E.createLinearGradient(w,h,U,g);hr(e.stops,f).forEach(function(A){return d.addColorStop(A.stop,nr(A.color))});E.fillStyle=d;E.fillRect(0,0,a,c);if(a>0&&c>0){u=L.ctx.createPattern(C,"repeat");L.renderRepeat(o,u,s,B)}}else if(nn(e)){F=aB(_,O,[null,null,null]),o=F[0],p=F[1],H=F[2],a=F[3],c=F[4];N=e.position.length===0?[Xt]:e.position;s=kt(N[0],a);B=kt(N[N.length-1],c);v=Fr(e,s,B,a,c),K=v[0],m=v[1];if(K>0&&K>0){I=L.ctx.createRadialGradient(p+s,H+B,0,p+s,H+B,K);hr(e.stops,K*2).forEach(function(A){return I.addColorStop(A.stop,nr(A.color))});L.path(o);L.ctx.fillStyle=I;if(K!==m){T=_.bounds.left+.5*_.bounds.width;y=_.bounds.top+.5*_.bounds.height;R=m/K;b=1/R;L.ctx.save();L.ctx.translate(T,y);L.ctx.transform(1,0,0,R,0,0);L.ctx.translate(-T,-y);L.ctx.fillRect(p,b*(H-y)+y,a,c*b);L.ctx.restore()}else{L.ctx.fill()}}}A.label=6;case 6:O--;return[2]}})};L=this;t=0,r=_.styles.backgroundImage.slice(0).reverse();A.label=1;case 1:if(!(t<r.length))return[3,4];n=r[t];return[5,e(n)];case 2:A.sent();A.label=3;case 3:t++;return[3,1];case 4:return[2]}})})};E.prototype.renderBorder=function(e,t,r){return a(this,void 0,void 0,function(){return S(this,function(A){this.path(rB(r,t));this.ctx.fillStyle=nr(e);this.ctx.fill();return[2]})})};E.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var e,t,r,n,i,o,s,B;var a=this;return S(this,function(A){switch(A.label){case 0:this.applyEffects(c.effects,2);e=c.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}];n=dB(QB(e.backgroundClip,0),c.curves);if(!(t||e.boxShadow.length))return[3,2];this.ctx.save();this.path(n);this.ctx.clip();if(!rr(e.backgroundColor)){this.ctx.fillStyle=nr(e.backgroundColor);this.ctx.fill()}return[4,this.renderBackgroundImage(c.container)];case 1:A.sent();this.ctx.restore();e.boxShadow.slice(0).reverse().forEach(function(A){a.ctx.save();var e=Gs(c.curves);var t=A.inset?0:gB;var r=Ss(e,-t+(A.inset?1:-1)*A.spread.number,(A.inset?1:-1)*A.spread.number,A.spread.number*(A.inset?-2:2),A.spread.number*(A.inset?-2:2));if(A.inset){a.path(e);a.ctx.clip();a.mask(r)}else{a.mask(e);a.ctx.clip();a.path(r)}a.ctx.shadowOffsetX=A.offsetX.number+t;a.ctx.shadowOffsetY=A.offsetY.number;a.ctx.shadowColor=nr(A.color);a.ctx.shadowBlur=A.blur.number;a.ctx.fillStyle=A.inset?nr(A.color):"rgba(0,0,0,1)";a.ctx.fill();a.ctx.restore()});A.label=2;case 2:i=0;o=0,s=r;A.label=3;case 3:if(!(o<s.length))return[3,7];B=s[o];if(!(B.style!==Tn.NONE&&!rr(B.color)))return[3,5];return[4,this.renderBorder(B.color,i,c.curves)];case 4:A.sent();A.label=5;case 5:i++;A.label=6;case 6:o++;return[3,3];case 7:return[2]}})})};E.prototype.render=function(t){return a(this,void 0,void 0,function(){var e;return S(this,function(A){switch(A.label){case 0:if(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=tB(t);return[4,this.renderStack(e)];case 1:A.sent();this.applyEffects([],2);return[2,this.canvas]}})})};return E}(),EB=function(A){if(A instanceof mo){return true}else if(A instanceof Ko){return true}else if(A instanceof vo&&A.type!==po&&A.type!==Fo){return true}return false},dB=function(A,e){switch(A){case Qr.BORDER_BOX:return Gs(e);case Qr.CONTENT_BOX:return Js(e);case Qr.PADDING_BOX:default:return ks(e)}},FB=function(A){switch(A){case Ui.CENTER:return"center";case Ui.RIGHT:return"right";case Ui.LEFT:default:return"left"}},pB=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);Or.getInstance(A.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+A.width+"x"+A.height+" at "+A.x+","+A.y+") with scale "+A.scale)}A.prototype.render=function(r){return a(this,void 0,void 0,function(){var e,t;return S(this,function(A){switch(A.label){case 0:e=yr(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,r);return[4,HB(e)];case 1:t=A.sent();if(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);return[2,this.canvas]}})})};return A}(),HB=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)};t.onerror=e;t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(r))})},NB=undefined,vB=function(A){return tr.parse(Tt.create(A).parseComponentValue())},KB=function(A,e){if(e===void 0){e={}}return mB(A,e)};if(typeof window!=="undefined"){Lr.setContext(window)}var mB=function(v,K){return a(NB,void 0,void 0,function(){var e,t,r,n,i,o,s,B,a,c,u,l,Q,f,w,U,h,g,C,E,d,F,p,H,N,H;return S(this,function(A){switch(A.label){case 0:e=v.ownerDocument;if(!e){throw new Error("Element is not attached to a Document")}t=e.defaultView;if(!t){throw new Error("Document is not attached to a Window")}r=(Math.round(Math.random()*1e3)+Date.now()).toString(16);n=Jo(v)||Xo(v)?y(e):T(v),i=n.width,o=n.height,s=n.left,B=n.top;a={allowTaint:false,imageTimeout:15e3,proxy:undefined,useCORS:false};c=m({},a,K);u={backgroundColor:"#ffffff",cache:K.cache?K.cache:Lr.create(r,c),logging:true,removeContainer:true,foreignObjectRendering:false,scale:t.devicePixelRatio||1,windowWidth:t.innerWidth,windowHeight:t.innerHeight,scrollX:t.pageXOffset,scrollY:t.pageYOffset,x:s,y:B,width:Math.ceil(i),height:Math.ceil(o),id:r};l=m({},u,c,K);Q=new I(l.scrollX,l.scrollY,l.windowWidth,l.windowHeight);Or.create({id:r,enabled:l.logging});Or.getInstance(r).debug("Starting document clone");f=new Es(v,{id:r,onclone:l.onclone,ignoreElements:l.ignoreElements,inlineImages:l.foreignObjectRendering,copyStyles:l.foreignObjectRendering});w=f.clonedReferenceElement;if(!w){return[2,Promise.reject("Unable to find element in cloned iframe")]}return[4,f.toIFrame(e,Q)];case 1:U=A.sent();h=e.documentElement?vB(getComputedStyle(e.documentElement).backgroundColor):ur.TRANSPARENT;g=e.body?vB(getComputedStyle(e.body).backgroundColor):ur.TRANSPARENT;C=K.backgroundColor;E=typeof C==="string"?vB(C):C===null?ur.TRANSPARENT:4294967295;d=v===e.documentElement?rr(h)?rr(g)?E:g:h:E;F={id:r,cache:l.cache,canvas:l.canvas,backgroundColor:d,scale:l.scale,x:l.x,y:l.y,scrollX:l.scrollX,scrollY:l.scrollY,width:l.width,height:l.height,windowWidth:l.windowWidth,windowHeight:l.windowHeight};if(!l.foreignObjectRendering)return[3,3];Or.getInstance(r).debug("Document cloned, using foreign object rendering");H=new pB(F);return[4,H.render(w)];case 2:p=A.sent();return[3,5];case 3:Or.getInstance(r).debug("Document cloned, using computed rendering");Lr.attachInstance(l.cache);Or.getInstance(r).debug("Starting DOM parsing");N=Oo(w);Lr.detachInstance();if(d===N.styles.backgroundColor){N.styles.backgroundColor=ur.TRANSPARENT}Or.getInstance(r).debug("Starting renderer");H=new CB(F);return[4,H.render(N)];case 4:p=A.sent();A.label=5;case 5:if(l.removeContainer===true){if(!Es.destroy(U)){Or.getInstance(r).error("Cannot detach cloned iframe as it is not in the DOM anymore")}}Or.getInstance(r).debug("Finished rendering");Or.destroy(r);Lr.destroy(r);return[2,p]}})})};return KB}()},"163d":function(A,e,t){"use strict";function r(A){var e=a(A,!1);if("string"==typeof e&&2<e.length){var t,r,n=(e=C?e.trim():Q(e,3)).charCodeAt(0);if(43===n||45===n){if(88===(A=e.charCodeAt(2))||120===A)return NaN}else if(48===n){switch(e.charCodeAt(1)){case 66:case 98:t=2,r=49;break;case 79:case 111:t=8,r=55;break;default:return+e}for(var i,o=e.slice(2),s=0,B=o.length;s<B;s++)if((i=o.charCodeAt(s))<48||r<i)return NaN;return parseInt(o,t)}}return+e}var n=t("e7ad"),i=t("e042"),o=t("75c4"),s=t("1e5b"),a=t("94b3"),B=t("238a"),c=t("2ea2").f,u=t("dcb7").f,l=t("064e").f,Q=t("777a").trim,f="Number",w=n[f],U=w,h=w.prototype,g=o(t("e005")(h))==f,C="trim"in String.prototype;if(!w(" 0o1")||!w("0b1")||w("+0x1")){w=function(A){var A=arguments.length<1?0:A,e=this;return e instanceof w&&(g?B(function(){h.valueOf.call(e)}):o(e)!=f)?s(new U(r(A)),e,w):r(A)};for(var E,d=t("149f")?c(U):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),F=0;d.length>F;F++)i(U,E=d[F])&&!i(w,E)&&l(w,E,u(U,E));(w.prototype=h).constructor=w,t("bf16")(n,f,w)}},"196d":function(A,e,t){A.exports=function(t){var r={};function n(A){if(r[A])return r[A].exports;var e=r[A]={i:A,l:!1,exports:{}};return t[A].call(e.exports,e,e.exports,n),e.l=!0,e.exports}return n.m=t,n.c=r,n.d=function(A,e,t){n.o(A,e)||Object.defineProperty(A,e,{configurable:!1,enumerable:!0,get:t})},n.n=function(A){var e=A&&A.__esModule?function(){return A.default}:function(){return A};return n.d(e,"a",e),e},n.o=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},n.p="",n(n.s=39)}([function(A,e){A=A.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=A)},function(A,e,t){var r=t(28)("wks"),n=t(29),i=t(0).Symbol,o="function"==typeof i;(A.exports=function(A){return r[A]||(r[A]=o&&i[A]||(o?i:n)("Symbol."+A))}).store=r},function(A,e){A=A.exports={version:"2.5.7"};"number"==typeof __e&&(__e=A)},function(A,e,t){var r=t(6);A.exports=function(A){if(!r(A))throw TypeError(A+" is not an object!");return A}},function(A,e,t){var w=t(0),U=t(2),h=t(11),g=t(5),C=t(9),E=function(A,e,t){var r,n,i,o=A&E.F,s=A&E.G,B=A&E.S,a=A&E.P,c=A&E.B,u=A&E.W,l=s?U:U[e]||(U[e]={}),Q=l.prototype,f=s?w:B?w[e]:(w[e]||{}).prototype;for(r in s&&(t=e),t)(n=!o&&f&&void 0!==f[r])&&C(l,r)||(i=(n?f:t)[r],l[r]=s&&"function"!=typeof f[r]?t[r]:c&&n?h(i,w):u&&f[r]==i?function(r){function A(A,e,t){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(A);case 2:return new r(A,e)}return new r(A,e,t)}return r.apply(this,arguments)}return A.prototype=r.prototype,A}(i):a&&"function"==typeof i?h(Function.call,i):i,a&&((l.virtual||(l.virtual={}))[r]=i,A&E.R&&Q&&!Q[r]&&g(Q,r,i)))};E.F=1,E.G=2,E.S=4,E.P=8,E.B=16,E.W=32,E.U=64,E.R=128,A.exports=E},function(A,e,t){var r=t(13),n=t(31);A.exports=t(7)?function(A,e,t){return r.f(A,e,n(1,t))}:function(A,e,t){return A[e]=t,A}},function(A,e){A.exports=function(A){return"object"==typeof A?null!==A:"function"==typeof A}},function(A,e,t){A.exports=!t(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(A,e){A.exports={}},function(A,e){var t={}.hasOwnProperty;A.exports=function(A,e){return t.call(A,e)}},function(A,e){var t={}.toString;A.exports=function(A){return t.call(A).slice(8,-1)}},function(A,e,t){var i=t(12);A.exports=function(r,n,A){if(i(r),void 0===n)return r;switch(A){case 1:return function(A){return r.call(n,A)};case 2:return function(A,e){return r.call(n,A,e)};case 3:return function(A,e,t){return r.call(n,A,e,t)}}return function(){return r.apply(n,arguments)}}},function(A,e){A.exports=function(A){if("function"!=typeof A)throw TypeError(A+" is not a function!");return A}},function(A,e,t){var r=t(3),n=t(49),i=t(50),o=Object.defineProperty;e.f=t(7)?Object.defineProperty:function(A,e,t){if(r(A),e=i(e,!0),r(t),n)try{return o(A,e,t)}catch(A){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(A[e]=t.value),A}},function(A,e){A.exports=function(A){try{return!!A()}catch(A){return!0}}},function(A,e,t){var r=t(16);A.exports=function(A){return Object(r(A))}},function(A,e){A.exports=function(A){if(null==A)throw TypeError("Can't call method on  "+A);return A}},function(A,e,t){var r=t(45),n=t(30);A.exports=Object.keys||function(A){return r(A,n)}},function(A,e,t){var r=t(26),n=t(16);A.exports=function(A){return r(n(A))}},function(A,e){var t=Math.ceil,r=Math.floor;A.exports=function(A){return isNaN(A=+A)?0:(0<A?r:t)(A)}},function(A,e,t){var r=t(28)("keys"),n=t(29);A.exports=function(A){return r[A]||(r[A]=n(A))}},function(A,e){A.exports=!0},function(A,e,t){var r=t(6),n=t(0).document,i=r(n)&&r(n.createElement);A.exports=function(A){return i?n.createElement(A):{}}},function(A,e,t){var r=t(13).f,n=t(9),i=t(1)("toStringTag");A.exports=function(A,e,t){A&&!n(A=t?A:A.prototype,i)&&r(A,i,{configurable:!0,value:e})}},function(A,e,t){"use strict";var n=t(12);A.exports.f=function(e){return new function(A){var t,r;this.promise=new e(function(A,e){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=A,r=e}),this.resolve=n(t),this.reject=n(r)}}},function(A,s,B){"use strict";(function(t){Object.defineProperty(s,"__esModule",{value:!0});var n=o(B(42)),A=o(B(51)),e=o(B(79)),r=o(B(85)),i=o(B(86));function o(A){return A&&A.__esModule?A:{default:A}}s.default={name:"VueUeditorWrap",data:function(){return{status:0,initValue:"",defaultConfig:{UEDITOR_HOME_URL:t.env.BASE_URL?t.env.BASE_URL+"UEditor/":"/static/UEditor/"}}},props:{mode:{type:String,default:"observer",validator:function(A){return-1!==["observer","listener"].indexOf(A)}},value:{type:String,default:""},config:{type:Object,default:function(){return{}}},init:{type:Function,default:function(){return function(){}}},destroy:{type:Boolean,default:!1},name:{type:String,default:""},observerDebounceTime:{type:Number,default:50,validator:function(A){return 20<=A}},observerOptions:{type:Object,default:function(){return{attributes:!0,attributeFilter:["src","style","type","name"],characterData:!0,childList:!0,subtree:!0}}},forceInit:{type:Boolean,default:!1},editorId:{type:String}},computed:{mixedConfig:function(){return(0,e.default)({},this.defaultConfig,this.config)}},methods:{registerButton:function(A){var e=A.name,n=A.icon,i=A.tip,o=A.handler,t=A.index,A=A.UE,s=void 0===A?window.UE:A;s.registerUI(e,function(e,t){e.registerCommand(t,{execCommand:function(){o(e,t)}});var r=new s.ui.Button({name:t,title:i,cssRules:"background-image: url("+n+") !important;background-size: cover;",onclick:function(){e.execCommand(t)}});return e.addListener("selectionchange",function(){var A=e.queryCommandState(t);-1===A?(r.setDisabled(!0),r.setChecked(!1)):(r.setDisabled(!1),r.setChecked(A))}),r},t,this.id)},_initEditor:function(){var A=this;this.$refs.script.id=this.id=this.editorId||"editor_"+Math.random().toString(16).slice(-6),this.init(),this.$emit("before-init",this.id,this.mixedConfig),this.$emit("beforeInit",this.id,this.mixedConfig),this.editor=window.UE.getEditor(this.id,this.mixedConfig),this.editor.addListener("ready",function(){2===A.status?A.editor.setContent(A.value):(A.status=2,A.$emit("ready",A.editor),A.initValue&&A.editor.setContent(A.initValue)),"observer"===A.mode&&window.MutationObserver?A._observerChangeListener():A._normalChangeListener()})},_checkDependencies:function(){var t=this;return new A.default(function(A,e){window.UE&&window.UEDITOR_CONFIG&&0!==(0,n.default)(window.UEDITOR_CONFIG).length&&window.UE.getEditor?A():window.$loadEnv?window.$loadEnv.on("scriptsLoaded",function(){A()}):(window.$loadEnv=new r.default,t._loadConfig().then(function(){return t._loadCore()}).then(function(){A(),window.$loadEnv.emit("scriptsLoaded")}))})},_loadConfig:function(){var r=this;return new A.default(function(A,e){var t;window.UE&&window.UEDITOR_CONFIG&&0!==(0,n.default)(window.UEDITOR_CONFIG).length?A():((t=document.createElement("script")).type="text/javascript",t.src=r.mixedConfig.UEDITOR_HOME_URL+"ueditor.config.js",document.getElementsByTagName("head")[0].appendChild(t),t.onload=function(){window.UE&&window.UEDITOR_CONFIG&&0!==(0,n.default)(window.UEDITOR_CONFIG).length&&A()})})},_loadCore:function(){var r=this;return new A.default(function(A,e){var t;window.UE&&window.UE.getEditor?A():((t=document.createElement("script")).type="text/javascript",t.src=r.mixedConfig.UEDITOR_HOME_URL+"ueditor.all.min.js",document.getElementsByTagName("head")[0].appendChild(t),t.onload=function(){window.UE&&window.UE.getEditor&&A()})})},_setContent:function(A){A===this.editor.getContent()||this.editor.setContent(A)},contentChangeHandler:function(){this.$emit("input",this.editor.getContent())},_normalChangeListener:function(){this.editor.addListener("contentChange",this.contentChangeHandler)},_observerChangeListener:function(){var e=this;this.observer=new MutationObserver((0,i.default)(function(A){e.editor.document.getElementById("baidu_pastebin")||e.$emit("input",e.editor.getContent())},this.observerDebounceTime)),this.observer.observe(this.editor.body,this.observerOptions)}},deactivated:function(){this.editor&&this.editor.removeListener("contentChange",this.contentChangeHandler),this.observer&&this.observer.disconnect()},beforeDestroy:function(){this.destroy&&this.editor&&this.editor.destroy&&this.editor.destroy(),this.observer&&this.observer.disconnect&&this.observer.disconnect()},watch:{value:{handler:function(A){var e=this;switch(null===A&&(A=""),this.status){case 0:this.status=1,this.initValue=A,(this.forceInit||void 0!==t&&t.client||"undefined"!=typeof window)&&this._checkDependencies().then(function(){e.$refs.script?e._initEditor():e.$nextTick(function(){return e._initEditor()})});break;case 1:this.initValue=A;break;case 2:this._setContent(A)}},immediate:!0}}}}).call(s,B(41))},function(A,e,t){var r=t(10);A.exports=Object("z").propertyIsEnumerable(0)?Object:function(A){return"String"==r(A)?A.split(""):Object(A)}},function(A,e,t){var r=t(19),n=Math.min;A.exports=function(A){return 0<A?n(r(A),9007199254740991):0}},function(A,e,t){var r=t(2),n=t(0),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});(A.exports=function(A,e){return i[A]||(i[A]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:t(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(A,e){var t=0,r=Math.random();A.exports=function(A){return"Symbol(".concat(void 0===A?"":A,")_",(++t+r).toString(36))}},function(A,e){A.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(A,e){A.exports=function(A,e){return{enumerable:!(1&A),configurable:!(2&A),writable:!(4&A),value:e}}},function(A,e,t){"use strict";function g(){return this}var C=t(21),E=t(4),d=t(56),F=t(5),p=t(8),H=t(57),N=t(23),v=t(60),K=t(1)("iterator"),m=!([].keys&&"next"in[].keys());A.exports=function(A,e,t,r,n,i,o){H(t,e,r);function s(A){if(!m&&A in f)return f[A];switch(A){case"keys":case"values":return function(){return new t(this,A)}}return function(){return new t(this,A)}}var B,a,c,u=e+" Iterator",l="values"==n,Q=!1,f=A.prototype,w=f[K]||f["@@iterator"]||n&&f[n],U=w||s(n),h=n?l?s("entries"):U:void 0,r="Array"==e&&f.entries||w;if(r&&(c=v(r.call(new A)))!==Object.prototype&&c.next&&(N(c,u,!0),C||"function"==typeof c[K]||F(c,K,g)),l&&w&&"values"!==w.name&&(Q=!0,U=function(){return w.call(this)}),C&&!o||!m&&!Q&&f[K]||F(f,K,U),p[e]=U,p[u]=g,n)if(B={values:l?U:s("values"),keys:i?U:s("keys"),entries:h},o)for(a in B)a in f||d(f,a,B[a]);else E(E.P+E.F*(m||Q),e,B);return B}},function(A,e,t){t=t(0).document;A.exports=t&&t.documentElement},function(A,e,t){var r=t(10),n=t(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());A.exports=function(A){var e;return void 0===A?"Undefined":null===A?"Null":"string"==typeof(A=function(A,e){try{return A[e]}catch(A){}}(e=Object(A),n))?A:i?r(e):"Object"==(A=r(e))&&"function"==typeof e.callee?"Arguments":A}},function(A,e,t){var r=t(3),n=t(12),i=t(1)("species");A.exports=function(A,e){var t,A=r(A).constructor;return void 0===A||null==(t=r(A)[i])?e:n(t)}},function(A,e,t){function r(){var A,e=+this;h.hasOwnProperty(e)&&(A=h[e],delete h[e],A())}function n(A){r.call(A.data)}var i,o=t(11),s=t(71),B=t(33),a=t(22),c=t(0),u=c.process,l=c.setImmediate,Q=c.clearImmediate,f=c.MessageChannel,w=c.Dispatch,U=0,h={};l&&Q||(l=function(A){for(var e=[],t=1;t<arguments.length;)e.push(arguments[t++]);return h[++U]=function(){s("function"==typeof A?A:Function(A),e)},i(U),U},Q=function(A){delete h[A]},"process"==t(10)(u)?i=function(A){u.nextTick(o(r,A,1))}:w&&w.now?i=function(A){w.now(o(r,A,1))}:f?(f=(t=new f).port2,t.port1.onmessage=n,i=o(f.postMessage,f,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(A){c.postMessage(A+"","*")},c.addEventListener("message",n,!1)):i="onreadystatechange"in a("script")?function(A){B.appendChild(a("script")).onreadystatechange=function(){B.removeChild(this),r.call(A)}}:function(A){setTimeout(o(r,A,1),0)}),A.exports={set:l,clear:Q}},function(A,e){A.exports=function(A){try{return{e:!1,v:A()}}catch(A){return{e:!0,v:A}}}},function(A,e,t){var r=t(3),n=t(6),i=t(24);A.exports=function(A,e){if(r(A),n(e)&&e.constructor===A)return e;A=i.f(A);return(0,A.resolve)(e),A.promise}},function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,n=t(25),i=t.n(n);for(r in n)"default"!==r&&function(A){t.d(e,A,function(){return n[A]})}(r);var o=t(87),o=t(40)(i.a,o.a,!1,null,null,null);o.options.__file="src/components/vue-ueditor-wrap.vue",e.default=o.exports},function(A,e){A.exports=function(A,e,t,r,n,i){var o,s=A=A||{},B=typeof A.default;"object"!=B&&"function"!=B||(s=(o=A).default);var a,c,A="function"==typeof s?s.options:s;return e&&(A.render=e.render,A.staticRenderFns=e.staticRenderFns,A._compiled=!0),t&&(A.functional=!0),n&&(A._scopeId=n),i?(a=function(A){(A=A||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(A=__VUE_SSR_CONTEXT__),r&&r.call(this,A),A&&A._registeredComponents&&A._registeredComponents.add(i)},A._ssrRegister=a):r&&(a=r),a&&(n=A.functional,c=n?A.render:A.beforeCreate,n?(A._injectStyles=a,A.render=function(A,e){return a.call(e),c(A,e)}):A.beforeCreate=c?[].concat(c,a):[a]),{esModule:o,exports:s,options:A}}},function(A,e){var t,r,A=A.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(A){try{return t.call(null,e,0)}catch(A){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(A){t=n}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(A){r=i}}();var s,B=[],a=!1,c=-1;function u(){a&&s&&(a=!1,s.length?B=s.concat(B):c=-1,B.length&&l())}function l(){if(!a){var A=o(u);a=!0;for(var e=B.length;e;){for(s=B,B=[];++c<e;)s&&s[c].run();c=-1,e=B.length}s=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(A){try{return r.call(null,e)}catch(A){return r.call(this,e)}}}(A)}}function Q(A,e){this.fun=A,this.array=e}function f(){}A.nextTick=function(A){var e=new Array(arguments.length-1);if(1<arguments.length)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];B.push(new Q(A,e)),1!==B.length||a||o(l)},Q.prototype.run=function(){this.fun.apply(null,this.array)},A.title="browser",A.browser=!0,A.env={},A.argv=[],A.version="",A.versions={},A.on=f,A.addListener=f,A.once=f,A.off=f,A.removeListener=f,A.removeAllListeners=f,A.emit=f,A.prependListener=f,A.prependOnceListener=f,A.listeners=function(A){return[]},A.binding=function(A){throw new Error("process.binding is not supported")},A.cwd=function(){return"/"},A.chdir=function(A){throw new Error("process.chdir is not supported")},A.umask=function(){return 0}},function(A,e,t){A.exports={default:t(43),__esModule:!0}},function(A,e,t){t(44),A.exports=t(2).Object.keys},function(A,e,t){var r=t(15),n=t(17);t(48)("keys",function(){return function(A){return n(r(A))}})},function(A,e,t){var o=t(9),s=t(18),B=t(46)(!1),a=t(20)("IE_PROTO");A.exports=function(A,e){var t,r=s(A),n=0,i=[];for(t in r)t!=a&&o(r,t)&&i.push(t);for(;e.length>n;)o(r,t=e[n++])&&(~B(i,t)||i.push(t));return i}},function(A,e,t){var B=t(18),a=t(27),c=t(47);A.exports=function(s){return function(A,e,t){var r,n=B(A),i=a(n.length),o=c(t,i);if(s&&e!=e){for(;o<i;)if((r=n[o++])!=r)return!0}else for(;o<i;o++)if((s||o in n)&&n[o]===e)return s||o||0;return!s&&-1}}},function(A,e,t){var r=t(19),n=Math.max,i=Math.min;A.exports=function(A,e){return(A=r(A))<0?n(A+e,0):i(A,e)}},function(A,e,t){var n=t(4),i=t(2),o=t(14);A.exports=function(A,e){var t=(i.Object||{})[A]||Object[A],r={};r[A]=e(t),n(n.S+n.F*o(function(){t(1)}),"Object",r)}},function(A,e,t){A.exports=!t(7)&&!t(14)(function(){return 7!=Object.defineProperty(t(22)("div"),"a",{get:function(){return 7}}).a})},function(A,e,t){var n=t(6);A.exports=function(A,e){if(!n(A))return A;var t,r;if(e&&"function"==typeof(t=A.toString)&&!n(r=t.call(A)))return r;if("function"==typeof(t=A.valueOf)&&!n(r=t.call(A)))return r;if(!e&&"function"==typeof(t=A.toString)&&!n(r=t.call(A)))return r;throw TypeError("Can't convert object to primitive value")}},function(A,e,t){A.exports={default:t(52),__esModule:!0}},function(A,e,t){t(53),t(54),t(61),t(65),t(77),t(78),A.exports=t(2).Promise},function(A,e){},function(A,e,t){"use strict";var r=t(55)(!0);t(32)(String,"String",function(A){this._t=String(A),this._i=0},function(){var A=this._t,e=this._i;return e>=A.length?{value:void 0,done:!0}:(e=r(A,e),this._i+=e.length,{value:e,done:!1})})},function(A,e,t){var o=t(19),s=t(16);A.exports=function(i){return function(A,e){var t,r=String(s(A)),n=o(e),A=r.length;return n<0||A<=n?i?"":void 0:(e=r.charCodeAt(n))<55296||56319<e||n+1===A||(t=r.charCodeAt(n+1))<56320||57343<t?i?r.charAt(n):e:i?r.slice(n,n+2):t-56320+(e-55296<<10)+65536}}},function(A,e,t){A.exports=t(5)},function(A,e,t){"use strict";var r=t(58),n=t(31),i=t(23),o={};t(5)(o,t(1)("iterator"),function(){return this}),A.exports=function(A,e,t){A.prototype=r(o,{next:n(1,t)}),i(A,e+" Iterator")}},function(A,e,t){function r(){}var n=t(3),i=t(59),o=t(30),s=t(20)("IE_PROTO"),B=function(){var A=t(22)("iframe"),e=o.length;for(A.style.display="none",t(33).appendChild(A),A.src="javascript:",(A=A.contentWindow.document).open(),A.write("<script>document.F=Object<\/script>"),A.close(),B=A.F;e--;)delete B.prototype[o[e]];return B()};A.exports=Object.create||function(A,e){var t;return null!==A?(r.prototype=n(A),t=new r,r.prototype=null,t[s]=A):t=B(),void 0===e?t:i(t,e)}},function(A,e,t){var o=t(13),s=t(3),B=t(17);A.exports=t(7)?Object.defineProperties:function(A,e){s(A);for(var t,r=B(e),n=r.length,i=0;i<n;)o.f(A,t=r[i++],e[t]);return A}},function(A,e,t){var r=t(9),n=t(15),i=t(20)("IE_PROTO"),o=Object.prototype;A.exports=Object.getPrototypeOf||function(A){return A=n(A),r(A,i)?A[i]:"function"==typeof A.constructor&&A instanceof A.constructor?A.constructor.prototype:A instanceof Object?o:null}},function(A,e,t){t(62);for(var r=t(0),n=t(5),i=t(8),o=t(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),B=0;B<s.length;B++){var a=s[B],c=r[a],c=c&&c.prototype;c&&!c[o]&&n(c,o,a),i[a]=i.Array}},function(A,e,t){"use strict";var r=t(63),n=t(64),i=t(8),o=t(18);A.exports=t(32)(Array,"Array",function(A,e){this._t=o(A),this._i=0,this._k=e},function(){var A=this._t,e=this._k,t=this._i++;return!A||t>=A.length?(this._t=void 0,n(1)):n(0,"keys"==e?t:"values"==e?A[t]:[t,A[t]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(A,e){A.exports=function(){}},function(A,e){A.exports=function(A,e){return{value:e,done:!!A}}},function(A,e,t){"use strict";function r(){}function u(A){var e;return!(!U(A)||"function"!=typeof(e=A.then))&&e}function n(c,e){var t;c._n||(c._n=!0,t=c._c,F(function(){for(var B=c._v,a=1==c._s,A=0;t.length>A;)!function(A){var e,t,r,n=a?A.ok:A.fail,i=A.resolve,o=A.reject,s=A.domain;try{n?(a||(2==c._h&&_(c),c._h=1),!0===n?e=B:(s&&s.enter(),e=n(B),s&&(s.exit(),r=!0)),e===A.promise?o(K("Promise-chain cycle")):(t=u(e))?t.call(e,i,o):i(e)):o(B)}catch(A){s&&!r&&s.exit(),o(A)}}(t[A++]);c._c=[],c._n=!1,e&&!c._h&&O(c)}))}function i(A){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=A,e._s=2,e._a||(e._a=e._c.slice()),n(e,!0))}var o,s,B,a,c=t(21),l=t(0),Q=t(11),f=t(34),w=t(4),U=t(6),h=t(12),g=t(66),C=t(67),E=t(35),d=t(36).set,F=t(72)(),p=t(24),H=t(37),N=t(73),v=t(38),K=l.TypeError,m=l.process,I=m&&m.versions,T=I&&I.v8||"",y=l.Promise,R="process"==f(m),b=s=p.f,f=!!function(){try{var A=y.resolve(1),e=(A.constructor={})[t(1)("species")]=function(A){A(r,r)};return(R||"function"==typeof PromiseRejectionEvent)&&A.then(r)instanceof e&&0!==T.indexOf("6.6")&&-1===N.indexOf("Chrome/66")}catch(A){}}(),O=function(n){d.call(l,function(){var A,e,t=n._v,r=L(n);if(r&&(A=H(function(){R?m.emit("unhandledRejection",t,n):(e=l.onunhandledrejection)?e({promise:n,reason:t}):(e=l.console)&&e.error&&e.error("Unhandled promise rejection",t)}),n._h=R||L(n)?2:1),n._a=void 0,r&&A.e)throw A.v})},L=function(A){return 1!==A._h&&0===(A._a||A._c).length},_=function(e){d.call(l,function(){var A;R?m.emit("rejectionHandled",e):(A=l.onrejectionhandled)&&A({promise:e,reason:e._v})})},S=function(A){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===A)throw K("Promise can't be resolved itself");(t=u(A))?F(function(){var e={_w:r,_d:!1};try{t.call(A,Q(S,e,1),Q(i,e,1))}catch(A){i.call(e,A)}}):(r._v=A,r._s=1,n(r,!1))}catch(A){i.call({_w:r,_d:!1},A)}}};f||(y=function(A){g(this,y,"Promise","_h"),h(A),o.call(this);try{A(Q(S,this,1),Q(i,this,1))}catch(A){i.call(this,A)}},(o=function(A){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(74)(y.prototype,{then:function(A,e){var t=b(E(this,y));return t.ok="function"!=typeof A||A,t.fail="function"==typeof e&&e,t.domain=R?m.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&n(this,!1),t.promise},catch:function(A){return this.then(void 0,A)}}),B=function(){var A=new o;this.promise=A,this.resolve=Q(S,A,1),this.reject=Q(i,A,1)},p.f=b=function(A){return A===y||A===a?new B:s(A)}),w(w.G+w.W+w.F*!f,{Promise:y}),t(23)(y,"Promise"),t(75)("Promise"),a=t(2).Promise,w(w.S+w.F*!f,"Promise",{reject:function(A){var e=b(this);return(0,e.reject)(A),e.promise}}),w(w.S+w.F*(c||!f),"Promise",{resolve:function(A){return v(c&&this===a?y:this,A)}}),w(w.S+w.F*!(f&&t(76)(function(A){y.all(A).catch(r)})),"Promise",{all:function(A){var o=this,e=b(o),s=e.resolve,B=e.reject,t=H(function(){var r=[],n=0,i=1;C(A,!1,function(A){var e=n++,t=!1;r.push(void 0),i++,o.resolve(A).then(function(A){t||(t=!0,r[e]=A,--i||s(r))},B)}),--i||s(r)});return t.e&&B(t.v),e.promise},race:function(A){var e=this,t=b(e),r=t.reject,n=H(function(){C(A,!1,function(A){e.resolve(A).then(t.resolve,r)})});return n.e&&r(n.v),t.promise}})},function(A,e){A.exports=function(A,e,t,r){if(!(A instanceof e)||void 0!==r&&r in A)throw TypeError(t+": incorrect invocation!");return A}},function(A,e,t){var u=t(11),l=t(68),Q=t(69),f=t(3),w=t(27),U=t(70),h={},g={};(e=A.exports=function(A,e,t,r,n){var i,o,s,B,n=n?function(){return A}:U(A),a=u(t,r,e?2:1),c=0;if("function"!=typeof n)throw TypeError(A+" is not iterable!");if(Q(n)){for(i=w(A.length);c<i;c++)if((B=e?a(f(o=A[c])[0],o[1]):a(A[c]))===h||B===g)return B}else for(s=n.call(A);!(o=s.next()).done;)if((B=l(s,a,o.value,e))===h||B===g)return B}).BREAK=h,e.RETURN=g},function(A,e,t){var i=t(3);A.exports=function(A,e,t,r){try{return r?e(i(t)[0],t[1]):e(t)}catch(e){var n=A.return;throw void 0!==n&&i(n.call(A)),e}}},function(A,e,t){var r=t(8),n=t(1)("iterator"),i=Array.prototype;A.exports=function(A){return void 0!==A&&(r.Array===A||i[n]===A)}},function(A,e,t){var r=t(34),n=t(1)("iterator"),i=t(8);A.exports=t(2).getIteratorMethod=function(A){if(null!=A)return A[n]||A["@@iterator"]||i[r(A)]}},function(A,e){A.exports=function(A,e,t){var r=void 0===t;switch(e.length){case 0:return r?A():A.call(t);case 1:return r?A(e[0]):A.call(t,e[0]);case 2:return r?A(e[0],e[1]):A.call(t,e[0],e[1]);case 3:return r?A(e[0],e[1],e[2]):A.call(t,e[0],e[1],e[2]);case 4:return r?A(e[0],e[1],e[2],e[3]):A.call(t,e[0],e[1],e[2],e[3])}return A.apply(t,e)}},function(A,e,t){var s=t(0),B=t(36).set,a=s.MutationObserver||s.WebKitMutationObserver,c=s.process,u=s.Promise,l="process"==t(10)(c);A.exports=function(){function A(){var A,e;for(l&&(A=c.domain)&&A.exit();t;){e=t.fn,t=t.next;try{e()}catch(A){throw t?n():r=void 0,A}}r=void 0,A&&A.enter()}var t,r,e,n,i,o;return n=l?function(){c.nextTick(A)}:!a||s.navigator&&s.navigator.standalone?u&&u.resolve?(e=u.resolve(void 0),function(){e.then(A)}):function(){B.call(s,A)}:(i=!0,o=document.createTextNode(""),new a(A).observe(o,{characterData:!0}),function(){o.data=i=!i}),function(A){A={fn:A,next:void 0};r&&(r.next=A),t||(t=A,n()),r=A}}},function(A,e,t){t=t(0).navigator;A.exports=t&&t.userAgent||""},function(A,e,t){var n=t(5);A.exports=function(A,e,t){for(var r in e)t&&A[r]?A[r]=e[r]:n(A,r,e[r]);return A}},function(A,e,t){"use strict";var r=t(0),n=t(2),i=t(13),o=t(7),s=t(1)("species");A.exports=function(A){A=("function"==typeof n[A]?n:r)[A];o&&A&&!A[s]&&i.f(A,s,{configurable:!0,get:function(){return this}})}},function(A,e,t){var i=t(1)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(A){}A.exports=function(A,e){if(!e&&!o)return!1;var t=!1;try{var r=[7],n=r[i]();n.next=function(){return{done:t=!0}},r[i]=function(){return n},A(r)}catch(A){}return t}},function(A,e,t){"use strict";var r=t(4),n=t(2),i=t(0),o=t(35),s=t(38);r(r.P+r.R,"Promise",{finally:function(e){var t=o(this,n.Promise||i.Promise),A="function"==typeof e;return this.then(A?function(A){return s(t,e()).then(function(){return A})}:e,A?function(A){return s(t,e()).then(function(){throw A})}:e)}})},function(A,e,t){"use strict";var r=t(4),n=t(24),i=t(37);r(r.S,"Promise",{try:function(A){var e=n.f(this),A=i(A);return(A.e?e.reject:e.resolve)(A.v),e.promise}})},function(A,e,t){A.exports={default:t(80),__esModule:!0}},function(A,e,t){t(81),A.exports=t(2).Object.assign},function(A,e,t){var r=t(4);r(r.S+r.F,"Object",{assign:t(82)})},function(A,e,t){"use strict";var l=t(17),Q=t(83),f=t(84),w=t(15),U=t(26),n=Object.assign;A.exports=!n||t(14)(function(){var A={},e={},t=Symbol(),r="abcdefghijklmnopqrst";return A[t]=7,r.split("").forEach(function(A){e[A]=A}),7!=n({},A)[t]||Object.keys(n({},e)).join("")!=r})?function(A,e){for(var t=w(A),r=arguments.length,n=1,i=Q.f,o=f.f;n<r;)for(var s,B=U(arguments[n++]),a=i?l(B).concat(i(B)):l(B),c=a.length,u=0;u<c;)o.call(B,s=a[u++])&&(t[s]=B[s]);return t}:n},function(A,e){e.f=Object.getOwnPropertySymbols},function(A,e){e.f={}.propertyIsEnumerable},function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){this.listeners={},this.on=function(A,e){void 0===this.listeners[A]&&(this.listeners[A]=[]),this.listeners[A].push(e)},this.emit=function(A){this.listeners[A]&&this.listeners[A].forEach(function(A){return A()})}}},function(A,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,r){var n=null;return function(){var A=this,e=arguments;n&&clearTimeout(n),n=setTimeout(function(){t.apply(A,e)},r)}}},function(A,e,t){"use strict";var r=function(){var A=this.$createElement,A=this._self._c||A;return A("div",[A("script",{ref:"script",attrs:{name:this.name,type:"text/plain"}})])};r._withStripped=!0;r={render:r,staticRenderFns:[]};e.a=r}]).default},"1e5b":function(A,e,t){var n=t("fb68"),i=t("859b").set;A.exports=function(A,e,t){var r,e=e.constructor;return e!==t&&"function"==typeof e&&(r=e.prototype)!==t.prototype&&n(r)&&i&&i(A,r),A}},"6a61":function(A,e,t){var r=function(o){"use strict";var B,A=Object.prototype,a=A.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",t=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function i(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{i({},"")}catch(A){i=function(A,e,t){return A[e]=t}}function s(A,e,t,r){var n,i,o,s,e=e&&e.prototype instanceof U?e:U,e=Object.create(e.prototype),r=new N(r||[]);return e._invoke=(n=A,i=t,o=r,s=u,function(A,e){if(s===Q)throw new Error("Generator is already running");if(s===f){if("throw"===A)throw e;return K()}for(o.method=A,o.arg=e;;){var t=o.delegate;if(t){var r=function A(e,t){var r=e.iterator[t.method];if(r===B){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=B,A(e,t),"throw"===t.method))return w;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}r=c(r,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,w;var r=r.arg;if(!r)return t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,w;{if(!r.done)return r;t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=B)}t.delegate=null;return w}(t,o);if(r){if(r===w)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===u)throw s=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=Q;r=c(n,i,o);if("normal"===r.type){if(s=o.done?f:l,r.arg!==w)return{value:r.arg,done:o.done}}else"throw"===r.type&&(s=f,o.method="throw",o.arg=r.arg)}}),e}function c(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}o.wrap=s;var u="suspendedStart",l="suspendedYield",Q="executing",f="completed",w={};function U(){}function h(){}function g(){}var C={};C[r]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(v([])));e&&e!==A&&a.call(e,r)&&(C=e);var E=g.prototype=U.prototype=Object.create(C);function d(A){["next","throw","return"].forEach(function(e){i(A,e,function(A){return this._invoke(e,A)})})}function F(o,s){var e;this._invoke=function(t,r){function A(){return new s(function(A,e){!function e(A,t,r,n){A=c(o[A],o,t);if("throw"!==A.type){var i=A.arg,t=i.value;return t&&"object"==typeof t&&a.call(t,"__await")?s.resolve(t.__await).then(function(A){e("next",A,r,n)},function(A){e("throw",A,r,n)}):s.resolve(t).then(function(A){i.value=A,r(i)},function(A){return e("throw",A,r,n)})}n(A.arg)}(t,r,A,e)})}return e=e?e.then(A,A):A()}}function p(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function H(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function N(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(p,this),this.reset(!0)}function v(e){if(e){var A=e[r];if(A)return A.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var t=-1,A=function A(){for(;++t<e.length;)if(a.call(e,t))return A.value=e[t],A.done=!1,A;return A.value=B,A.done=!0,A};return A.next=A}}return{next:K}}function K(){return{value:B,done:!0}}return((h.prototype=E.constructor=g).constructor=h).displayName=i(g,n,"GeneratorFunction"),o.isGeneratorFunction=function(A){A="function"==typeof A&&A.constructor;return!!A&&(A===h||"GeneratorFunction"===(A.displayName||A.name))},o.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,g):(A.__proto__=g,i(A,n,"GeneratorFunction")),A.prototype=Object.create(E),A},o.awrap=function(A){return{__await:A}},d(F.prototype),F.prototype[t]=function(){return this},o.AsyncIterator=F,o.async=function(A,e,t,r,n){void 0===n&&(n=Promise);var i=new F(s(A,e,t,r),n);return o.isGeneratorFunction(e)?i:i.next().then(function(A){return A.done?A.value:i.next()})},d(E),i(E,n,"Generator"),E[r]=function(){return this},E.toString=function(){return"[object Generator]"},o.keys=function(t){var A,r=[];for(A in t)r.push(A);return r.reverse(),function A(){for(;r.length;){var e=r.pop();if(e in t)return A.value=e,A.done=!1,A}return A.done=!0,A}},o.values=v,N.prototype={constructor:N,reset:function(A){if(this.prev=0,this.next=0,this.sent=this._sent=B,this.done=!1,this.delegate=null,this.method="next",this.arg=B,this.tryEntries.forEach(H),!A)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=B)},stop:function(){this.done=!0;var A=this.tryEntries[0].completion;if("throw"===A.type)throw A.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function A(A,e){return i.type="throw",i.arg=t,r.next=A,e&&(r.method="next",r.arg=B),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e],i=n.completion;if("root"===n.tryLoc)return A("end");if(n.tryLoc<=this.prev){var o=a.call(n,"catchLoc"),s=a.call(n,"finallyLoc");if(o&&s){if(this.prev<n.catchLoc)return A(n.catchLoc,!0);if(this.prev<n.finallyLoc)return A(n.finallyLoc)}else if(o){if(this.prev<n.catchLoc)return A(n.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return A(n.finallyLoc)}}}},abrupt:function(A,e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===A||"continue"===A)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var i=n?n.completion:{};return i.type=A,i.arg=e,n?(this.method="next",this.next=n.finallyLoc,w):this.complete(i)},complete:function(A,e){if("throw"===A.type)throw A.arg;return"break"===A.type||"continue"===A.type?this.next=A.arg:"return"===A.type?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):"normal"===A.type&&e&&(this.next=e),w},finish:function(A){for(var e=this.tryEntries.length-1;0<=e;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),H(t),w}},catch:function(A){for(var e=this.tryEntries.length-1;0<=e;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var r,n=t.completion;return"throw"===n.type&&(r=n.arg,H(t)),r}}throw new Error("illegal catch attempt")},delegateYield:function(A,e,t){return this.delegate={iterator:v(A),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=B),w}},o}(A.exports);try{regeneratorRuntime=r}catch(A){Function("r","regeneratorRuntime = r")(r)}},"777a":function(A,e,t){var i=t("e46b"),r=t("f6b4"),o=t("238a"),s=t("9769"),t="["+s+"]",n=RegExp("^"+t+t+"*"),B=RegExp(t+t+"*$"),t=function(A,e,t){var r={},n=o(function(){return!!s[A]()||"​"!="​"[A]()}),e=r[A]=n?e(a):s[A];t&&(r[t]=e),i(i.P+i.F*n,"String",r)},a=t.trim=function(A,e){return A=String(r(A)),1&e&&(A=A.replace(n,"")),2&e&&(A=A.replace(B,"")),A};A.exports=t},"859b":function(A,e,n){function i(A,e){if(r(A),!t(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var t=n("fb68"),r=n("69b3");A.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(A,t,r){try{(r=n("4ce5")(Function.call,n("dcb7").f(Object.prototype,"__proto__").set,2))(A,[]),t=!(A instanceof Array)}catch(A){t=!0}return function(A,e){return i(A,e),t?A.__proto__=e:r(A,e),A}}({},!1):void 0),check:i}},9769:function(A,e){A.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},cc57:function(A,e,t){var r=t("064e").f,n=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in n||t("149f")&&r(n,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(A){return""}}})},cf7f:function(A,e,t){"use strict";function B(A,e,t,r,n,i,o){try{var s=A[i](o),B=s.value}catch(A){return void t(A)}s.done?e(B):Promise.resolve(B).then(r,n)}function r(s){return function(){var A=this,o=arguments;return new Promise(function(e,t){var r=s.apply(A,o);function n(A){B(r,e,t,n,i,"next",A)}function i(A){B(r,e,t,n,i,"throw",A)}n(void 0)})}}t.d(e,"a",function(){return r})}}]);