/*! * /*! * * html2canvas 1.6.3 * * Copyright (c) 2024 Niklas von Hertzen * * Released under MIT License * * / */ !function(A,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("html2canvas",[],e):"object"==typeof exports?exports.html2canvas=e():A.html2canvas=e()}(this,(()=>(()=>{"use strict";var A={4381:(A,e,t)=>{t.r(e),t.d(e,{LineBreaker:()=>tA,fromCodePoint:()=>n,toCodePoints:()=>r});for(var r=function(A){for(var e=[],t=0,r=A.length;t=55296&&n<=56319&&t>10),B%1024+56320)),(n+1===t||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),s=0;s<64;s++)B[o.charCodeAt(s)]=s;for(var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<64;c++)a[i.charCodeAt(c)]=c;for(var l=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},u=function(){function A(A,e,t,r,n,o){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=o}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q="undefined"==typeof Uint8Array?[]:new Uint8Array(256),w=0;w<64;w++)Q[g.charCodeAt(w)]=w;var C=10,d=13,U=15,F=17,h=18,f=19,p=20,E=21,H=22,y=24,I=25,m=26,v=27,b=28,K=30,L=32,S=33,D=34,T=35,O=37,x=38,M=39,V=40,G=42,P=[9001,65288],R="×",k="÷",_=function(A,e){var t,r,n,o=function(A){var e,t,r,n,o,B=.75*A.length,s=A.length,i=0;"="===A[A.length-1]&&(B--,"="===A[A.length-2]&&B--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(B):new Array(B),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e>4,l[i++]=(15&r)<<4|n>>2,l[i++]=(3&n)<<6|63&o;return c}(A),B=Array.isArray(o)?function(A){for(var e=A.length,t=[],r=0;r0;){var B=r[--o];if(Array.isArray(A)?-1!==A.indexOf(B):A===B)for(var s=t;s<=r.length;){var i;if((i=r[++s])===e)return!0;if(i!==C)break}if(B!==C)break}return!1},q=function(A,e){for(var t=A;t>=0;){var r=e[t];if(r!==C)return r;t--}return 0},$=function(A,e,t,r,n){if(0===t[r])return R;var o=r-1;if(Array.isArray(n)&&!0===n[o])return R;var B=o-1,s=o+1,i=e[o],a=B>=0?e[B]:0,c=e[s];if(2===i&&3===c)return R;if(-1!==X.indexOf(i))return"!";if(-1!==X.indexOf(c))return R;if(-1!==J.indexOf(c))return R;if(8===q(o,e))return k;if(11===_.get(A[o]))return R;if((i===L||i===S)&&11===_.get(A[s]))return R;if(7===i||7===c)return R;if(9===i)return R;if(-1===[C,d,U].indexOf(i)&&9===c)return R;if(-1!==[F,h,f,y,b].indexOf(c))return R;if(q(o,e)===H)return R;if(z(23,H,o,e))return R;if(z([F,h],E,o,e))return R;if(z(12,12,o,e))return R;if(i===C)return k;if(23===i||23===c)return R;if(16===c||16===i)return k;if(-1!==[d,U,E].indexOf(c)||14===i)return R;if(36===a&&-1!==j.indexOf(i))return R;if(i===b&&36===c)return R;if(c===p)return R;if(-1!==N.indexOf(c)&&i===I||-1!==N.indexOf(i)&&c===I)return R;if(i===v&&-1!==[O,L,S].indexOf(c)||-1!==[O,L,S].indexOf(i)&&c===m)return R;if(-1!==N.indexOf(i)&&-1!==W.indexOf(c)||-1!==W.indexOf(i)&&-1!==N.indexOf(c))return R;if(-1!==[v,m].indexOf(i)&&(c===I||-1!==[H,U].indexOf(c)&&e[s+1]===I)||-1!==[H,U].indexOf(i)&&c===I||i===I&&-1!==[I,b,y].indexOf(c))return R;if(-1!==[I,b,y,F,h].indexOf(c))for(var l=o;l>=0;){if((u=e[l])===I)return R;if(-1===[b,y].indexOf(u))break;l--}if(-1!==[v,m].indexOf(c))for(l=-1!==[F,h].indexOf(i)?B:o;l>=0;){var u;if((u=e[l])===I)return R;if(-1===[b,y].indexOf(u))break;l--}if(x===i&&-1!==[x,M,D,T].indexOf(c)||-1!==[M,D].indexOf(i)&&-1!==[M,V].indexOf(c)||-1!==[V,T].indexOf(i)&&c===V)return R;if(-1!==Z.indexOf(i)&&-1!==[p,m].indexOf(c)||-1!==Z.indexOf(c)&&i===v)return R;if(-1!==N.indexOf(i)&&-1!==N.indexOf(c))return R;if(i===y&&-1!==N.indexOf(c))return R;if(-1!==N.concat(I).indexOf(i)&&c===H&&-1===P.indexOf(A[s])||-1!==N.concat(I).indexOf(c)&&i===h)return R;if(41===i&&41===c){for(var g=t[o],Q=1;g>0&&41===e[--g];)Q++;if(Q%2!=0)return R}return i===L&&c===S?R:k},AA=function(A,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=function(A,e){void 0===e&&(e="strict");var t=[],r=[],n=[];return A.forEach((function(A,o){var B=_.get(A);if(B>50?(n.push(!0),B-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(A))return r.push(o),t.push(16);if(4===B||11===B){if(0===o)return r.push(o),t.push(K);var s=t[o-1];return-1===Y.indexOf(s)?(r.push(r[o-1]),t.push(s)):(r.push(o),t.push(K))}return r.push(o),31===B?t.push("strict"===e?E:O):B===G||29===B?t.push(K):43===B?A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(O):t.push(K):void t.push(B)})),[r,t,n]}(A,e.lineBreak),r=t[0],n=t[1],o=t[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(A){return-1!==[I,K,G].indexOf(A)?O:A})));var B="keep-all"===e.wordBreak?o.map((function(e,t){return e&&A[t]>=19968&&A[t]<=40959})):void 0;return[r,n,B]},eA=function(){function A(A,e,t,r){this.codePoints=A,this.required="!"===e,this.start=t,this.end=r}return A.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),tA=function(A,e){var t=r(A),n=AA(t,e),o=n[0],B=n[1],s=n[2],i=t.length,a=0,c=0;return{next:function(){if(c>=i)return{done:!0,value:null};for(var A=R;c{t.r(e),t.d(e,{GraphemeBreaker:()=>f,fromCodePoint:()=>C,splitGraphemes:()=>p,toCodePoints:()=>w});for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="undefined"==typeof Uint8Array?[]:new Uint8Array(256),o=0;o<64;o++)n[r.charCodeAt(o)]=o;for(var B=function(A,e,t){return A.slice?A.slice(e,t):new Uint16Array(Array.prototype.slice.call(A,e,t))},s=function(){function A(A,e,t,r,n,o){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=r,this.index=n,this.data=o}return A.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=((e=this.index[A>>5])<<2)+(31&A),this.data[e];if(A<=65535)return e=((e=this.index[2048+(A-55296>>5)])<<2)+(31&A),this.data[e];if(A>11),e=this.index[e],e+=A>>5&63,e=((e=this.index[e])<<2)+(31&A),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},A}(),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<64;c++)a[i.charCodeAt(c)]=c;var l=8,u=9,g=11,Q=12,w=function(A){for(var e=[],t=0,r=A.length;t=55296&&n<=56319&&t>10),B%1024+56320)),(n+1===t||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},d=function(A,e){var t,r,o,i=function(A){var e,t,r,o,B,s=.75*A.length,i=A.length,a=0;"="===A[A.length-1]&&(s--,"="===A[A.length-2]&&s--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e>4,l[a++]=(15&r)<<4|o>>2,l[a++]=(3&o)<<6|63&B;return c}(A),a=Array.isArray(i)?function(A){for(var e=A.length,t=[],r=0;r=t)return{done:!0,value:null};for(var A=U;r{Object.defineProperty(e,"__esModule",{value:!0}),e.contains=void 0;e.contains=function(A,e){return!!(A&e)}},9236:function(A,e,t){var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(n,o){function B(A){try{i(r.next(A))}catch(A){o(A)}}function s(A){try{i(r.throw(A))}catch(A){o(A)}}function i(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(B,s)}i((r=r.apply(A,e||[])).next())}))},n=this&&this.__generator||function(A,e){var t,r,n,o,B={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(i){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(B=0)),B;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return B.label++,{value:s[1],done:!1};case 5:B.label++,r=s[1],s=[0];continue;case 7:s=B.ops.pop(),B.trys.pop();continue;default:if(!(n=B.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){B=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]0&&setTimeout((function(){return e("Timed out (".concat(a._options.imageTimeout,"ms) loading image"))}),a._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},A.prototype.has=function(A){return A in e.cache},A.prototype.keys=function(){return Promise.resolve(Object.keys(e.cache))},A.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise((function(n,B){var s=o.FEATURES.SUPPORT_RESPONSE_TYPE?"blob":"text",i=new XMLHttpRequest;i.onload=function(){if(200===i.status)if("text"===s)n(i.response);else{var A=new FileReader;A.addEventListener("load",(function(){return n(A.result)}),!1),A.addEventListener("error",(function(A){return B(A)}),!1),A.readAsDataURL(i.response)}else B("Failed to proxy resource ".concat(r," with status code ").concat(i.status))},i.onerror=B;var a=t.includes("?")?"&":"?";if(i.open("GET","".concat(t).concat(a,"url=").concat(encodeURIComponent(A),"&responseType=").concat(s)),"text"!==s&&i instanceof XMLHttpRequest&&(i.responseType=s),e._options.imageTimeout){var c=e._options.imageTimeout;i.timeout=c,i.ontimeout=function(){return B("Timed out (".concat(c,"ms) proxying ").concat(r))}}i.send()}))},A}();e.Cache=s;var i=/^data:image\/svg\+xml/i,a=/^data:image\/.*;base64,/i,c=/^data:image\/.*/i,l=function(A){return o.FEATURES.SUPPORT_SVG_DRAWING||!w(A)},u=function(A){return c.test(A)},g=function(A){return a.test(A)},Q=function(A){return"blob"===A.slice(0,4)},w=function(A){return"svg"===A.slice(-3).toLowerCase()||i.test(A)}},4121:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0;var r=t(6928),n=t(9236),o=function(){function A(e,t){var o;this.windowBounds=t,this.instanceName="#".concat(A.instanceCount++),this.logger=new r.Logger({id:this.instanceName,enabled:e.logging}),this.cache=null!==(o=e.cache)&&void 0!==o?o:new n.Cache(this,e)}return A.instanceCount=1,A}();e.Context=o},9123:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isDebugging=void 0;e.isDebugging=function(A,e){var t=function(A){switch(A.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(A);return 1===t||e===t}},9143:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FEATURES=e.loadSerializedSVG=e.deserializeSvg=e.serializeSvg=e.createForeignObjectSVG=void 0;var r=t(4381),n=t(4691),o=function(A){return 0===A[0]&&255===A[1]&&0===A[2]&&255===A[3]};e.createForeignObjectSVG=function(A,e,t,r,n){var o="http://www.w3.org/2000/svg",B=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return B.setAttributeNS(null,"width",A.toString()),B.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"),B.appendChild(s),s.appendChild(n),B};e.serializeSvg=function(A,e){void 0===e&&(e="");var t=(new XMLSerializer).serializeToString(A),r="base64"===e?btoa(t):encodeURIComponent(t);return"".concat("data:image/svg+xml").concat(e&&";".concat(e),",").concat(r)};var B=/^data:image\/.*;base64,/i;e.deserializeSvg=function(A){var e=B.test(A)?atob(A):decodeURIComponent(A),t=(new DOMParser).parseFromString(e,"image/svg+xml"),r=t.querySelector("parsererror");if(r)throw new Error("Deserialisation failed",{cause:r});var o=t.documentElement,s=o.firstElementChild;return s&&(0,n.isSVGForeignObjectElement)(s),o};e.loadSerializedSVG=function(A){return new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src=(0,e.serializeSvg)(A,"charset=utf-8")}))},e.FEATURES={get SUPPORT_RANGE_BOUNDS(){var A=function(A){if(A.createRange){var e=A.createRange();if(e.getBoundingClientRect){var t=A.createElement("boundtest");t.style.height="".concat(123,"px"),t.style.display="block",A.body.appendChild(t),e.selectNode(t);var r=e.getBoundingClientRect(),n=Math.round(r.height);if(A.body.removeChild(t),123===n)return!0}}return!1}(document);return Object.defineProperty(e.FEATURES,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=e.FEATURES.SUPPORT_RANGE_BOUNDS&&function(A){var e=A.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",A.body.appendChild(e);var t=A.createRange();e.innerHTML="function"==typeof"".repeat?"👨".repeat(10):"";var n=e.firstChild,o=(0,r.toCodePoints)(n.data).map((function(A){return(0,r.fromCodePoint)(A)})),B=0,s={},i=o.every((function(A,e){t.setStart(n,B),t.setEnd(n,B+A.length);var r=t.getBoundingClientRect();B+=A.length;var o=r.x>s.x||r.y>s.y;return s=r,0===e||o}));return A.body.removeChild(e),i}(document);return Object.defineProperty(e.FEATURES,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=function(A){var e=new Image,t=A.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),t.toDataURL()}catch(A){return!1}return!0}(document);return Object.defineProperty(e.FEATURES,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A="function"==typeof Array.from&&"function"==typeof window.fetch?function(A){var t=A.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var B=new Image,s=t.toDataURL();B.src=s;var i=(0,e.createForeignObjectSVG)(r,r,0,0,B);return n.fillStyle="red",n.fillRect(0,0,r,r),(0,e.loadSerializedSVG)(i).then((function(t){n.drawImage(t,0,0);var B=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var i=A.createElement("div");return i.style.backgroundImage="url(".concat(s,")"),i.style.height="".concat(r,"px"),o(B)?(0,e.loadSerializedSVG)((0,e.createForeignObjectSVG)(r,r,0,0,i)):Promise.reject(!1)})).then((function(A){return n.drawImage(A,0,0),o(n.getImageData(0,0,r,r).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(e.FEATURES,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=void 0!==(new Image).crossOrigin;return Object.defineProperty(e.FEATURES,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(e.FEATURES,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(e.FEATURES,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(e.FEATURES,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}}},6928:function(A,e){var t=this&&this.__spreadArray||function(A,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;n{Object.defineProperty(e,"__esModule",{value:!0}),e.SMALL_IMAGE=void 0,e.SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},9764:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CSSParsedCounterDeclaration=e.CSSParsedPseudoDeclaration=e.CSSParsedDeclaration=void 0;var r=t(9085),n=t(6206),o=t(1533),B=t(1655),s=t(6034),i=t(8823),a=t(6575),c=t(8569),l=t(7427),u=t(2688),g=t(7133),Q=t(3876),w=t(5531),C=t(448),d=t(2366),U=t(7099),F=t(8541),h=t(2978),f=t(4837),p=t(6051),E=t(8653),H=t(7555),y=t(5158),I=t(8266),m=t(9334),v=t(6287),b=t(7831),K=t(2863),L=t(1085),S=t(4215),D=t(1863),T=t(216),O=t(3153),x=t(5278),M=t(2214),V=t(3893),G=t(530),P=t(3678),R=t(7566),k=t(5640),_=t(8962),N=t(1932),X=t(2325),J=t(1234),W=t(8317),Y=t(2757),Z=t(4663),j=t(1154),z=t(8287),q=t(1804),$=t(3335),AA=t(721),eA=t(7816),tA=t(9535),rA=t(4055),nA=t(1261),oA=t(5797),BA=t(3263),sA=t(9648),iA=t(445),aA=t(1881),cA=function(){function A(A,e){var t,r;this.animationDuration=gA(A,p.duration,e.animationDuration),this.backgroundClip=gA(A,n.backgroundClip,e.backgroundClip),this.backgroundColor=gA(A,o.backgroundColor,e.backgroundColor),this.backgroundImage=gA(A,B.backgroundImage,e.backgroundImage),this.backgroundOrigin=gA(A,s.backgroundOrigin,e.backgroundOrigin),this.backgroundPosition=gA(A,i.backgroundPosition,e.backgroundPosition),this.backgroundRepeat=gA(A,a.backgroundRepeat,e.backgroundRepeat),this.backgroundSize=gA(A,c.backgroundSize,e.backgroundSize),this.borderTopColor=gA(A,l.borderTopColor,e.borderTopColor),this.borderRightColor=gA(A,l.borderRightColor,e.borderRightColor),this.borderBottomColor=gA(A,l.borderBottomColor,e.borderBottomColor),this.borderLeftColor=gA(A,l.borderLeftColor,e.borderLeftColor),this.borderTopLeftRadius=gA(A,u.borderTopLeftRadius,e.borderTopLeftRadius),this.borderTopRightRadius=gA(A,u.borderTopRightRadius,e.borderTopRightRadius),this.borderBottomRightRadius=gA(A,u.borderBottomRightRadius,e.borderBottomRightRadius),this.borderBottomLeftRadius=gA(A,u.borderBottomLeftRadius,e.borderBottomLeftRadius),this.borderTopStyle=gA(A,g.borderTopStyle,e.borderTopStyle),this.borderRightStyle=gA(A,g.borderRightStyle,e.borderRightStyle),this.borderBottomStyle=gA(A,g.borderBottomStyle,e.borderBottomStyle),this.borderLeftStyle=gA(A,g.borderLeftStyle,e.borderLeftStyle),this.borderTopWidth=gA(A,Q.borderTopWidth,e.borderTopWidth),this.borderRightWidth=gA(A,Q.borderRightWidth,e.borderRightWidth),this.borderBottomWidth=gA(A,Q.borderBottomWidth,e.borderBottomWidth),this.borderLeftWidth=gA(A,Q.borderLeftWidth,e.borderLeftWidth),this.boxShadow=gA(A,w.boxShadow,e.boxShadow),this.color=gA(A,C.color,e.color),this.direction=gA(A,h.direction,e.direction),this.display=gA(A,f.display,e.display),this.float=gA(A,E.float,e.cssFloat),this.fontFamily=gA(A,H.fontFamily,e.fontFamily),this.fontSize=gA(A,y.fontSize,e.fontSize),this.fontStyle=gA(A,I.fontStyle,e.fontStyle),this.fontVariant=gA(A,m.fontVariant,e.fontVariant),this.fontWeight=gA(A,v.fontWeight,e.fontWeight),this.letterSpacing=gA(A,b.letterSpacing,e.letterSpacing),this.lineBreak=gA(A,K.lineBreak,e.lineBreak),this.lineHeight=gA(A,L.lineHeight,e.lineHeight),this.listStyleImage=gA(A,S.listStyleImage,e.listStyleImage),this.listStylePosition=gA(A,D.listStylePosition,e.listStylePosition),this.listStyleType=gA(A,T.listStyleType,e.listStyleType),this.marginTop=gA(A,O.marginTop,e.marginTop),this.marginRight=gA(A,O.marginRight,e.marginRight),this.marginBottom=gA(A,O.marginBottom,e.marginBottom),this.marginLeft=gA(A,O.marginLeft,e.marginLeft),this.objectFit=gA(A,x.objectFit,e.objectFit),this.opacity=gA(A,M.opacity,e.opacity);var d=gA(A,V.overflow,e.overflow);this.overflowX=d[0],this.overflowY=d[d.length>1?1:0],this.overflowWrap=gA(A,G.overflowWrap,e.overflowWrap),this.paddingTop=gA(A,P.paddingTop,e.paddingTop),this.paddingRight=gA(A,P.paddingRight,e.paddingRight),this.paddingBottom=gA(A,P.paddingBottom,e.paddingBottom),this.paddingLeft=gA(A,P.paddingLeft,e.paddingLeft),this.paintOrder=gA(A,R.paintOrder,e.paintOrder),this.position=gA(A,k.position,e.position),this.textAlign=gA(A,N.textAlign,e.textAlign),this.textDecorationColor=gA(A,X.textDecorationColor,null!==(t=e.textDecorationColor)&&void 0!==t?t:e.color),this.textDecorationLine=gA(A,J.textDecorationLine,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=gA(A,W.textShadow,e.textShadow),this.textTransform=gA(A,Y.textTransform,e.textTransform),this.transform=gA(A,Z.transform,e.transform),this.transformOrigin=gA(A,j.transformOrigin,e.transformOrigin),this.visibility=gA(A,z.visibility,e.visibility),this.webkitTextStrokeColor=gA(A,q.webkitTextStrokeColor,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=gA(A,$.webkitTextStrokeWidth,e.webkitTextStrokeWidth),this.wordBreak=gA(A,AA.wordBreak,e.wordBreak),this.zIndex=gA(A,eA.zIndex,e.zIndex),this.objectFit=gA(A,x.objectFit,e.objectFit)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},A.prototype.isTransparent=function(){return(0,oA.isTransparent)(this.backgroundColor)},A.prototype.isTransformed=function(){return null!==this.transform},A.prototype.isPositioned=function(){return 0!==this.position},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return 0!==this.float},A.prototype.isInlineLevel=function(){return(0,r.contains)(this.display,4)||(0,r.contains)(this.display,33554432)||(0,r.contains)(this.display,268435456)||(0,r.contains)(this.display,536870912)||(0,r.contains)(this.display,67108864)||(0,r.contains)(this.display,134217728)},A}();e.CSSParsedDeclaration=cA;var lA=function(A,e){this.content=gA(A,d.content,e.content),this.quotes=gA(A,_.quotes,e.quotes)};e.CSSParsedPseudoDeclaration=lA;var uA=function(A,e){this.counterIncrement=gA(A,U.counterIncrement,e.counterIncrement),this.counterReset=gA(A,F.counterReset,e.counterReset)};e.CSSParsedCounterDeclaration=uA;var gA=function(A,e,t){var r=new rA.Tokenizer,n=null!=t?t.toString():e.initialValue;r.write(n);var o=new tA.Parser(r.read());switch(e.type){case 2:var B=o.parseComponentValue();return e.parse(A,(0,tA.isIdentToken)(B)?B.value:e.initialValue);case 0:return e.parse(A,o.parseComponentValue());case 1:return e.parse(A,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return nA.angle.parse(A,o.parseComponentValue());case"color":return oA.color.parse(A,o.parseComponentValue());case"image":return BA.image.parse(A,o.parseComponentValue());case"length":var s=o.parseComponentValue();return(0,sA.isLength)(s)?s:iA.ZERO_LENGTH;case"length-percentage":var i=o.parseComponentValue();return(0,iA.isLengthPercentage)(i)?i:iA.ZERO_LENGTH;case"time":return aA.time.parse(A,o.parseComponentValue())}}}},8110:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseDocumentSize=e.parseBounds=e.Bounds=void 0;var t=function(){function A(A,e,t,r){this.left=A,this.top=e,this.width=t,this.height=r}return A.prototype.add=function(e,t,r,n){return new A(this.left+e,this.top+t,this.width+r,this.height+n)},A.fromClientRect=function(e,t){return new A(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},A.fromDOMRectList=function(e,t){var r=Array.from(t).find((function(A){return 0!==A.width}));return r?new A(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):A.EMPTY},A.EMPTY=new A(0,0,0,0),A}();e.Bounds=t;e.parseBounds=function(A,e){return t.fromClientRect(A,e.getBoundingClientRect())};e.parseDocumentSize=function(A){var e=A.body,r=A.documentElement;if(!e||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),o=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new t(0,0,n,o)}},8892:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.segmentGraphemes=e.parseTextBounds=e.TextBounds=void 0;var r=t(4381),n=t(1573),o=t(8110),B=t(9143),s=function(A,e){this.text=A,this.bounds=e};e.TextBounds=s;e.parseTextBounds=function(A,t,r,n){var l=c(t,r),u=[],g=0;return l.forEach((function(t){if(r.textDecorationLine.length||t.trim().length>0)if(B.FEATURES.SUPPORT_RANGE_BOUNDS){var c=a(n,g,t.length).getClientRects();if(c.length>1){var l=(0,e.segmentGraphemes)(t),Q=0;l.forEach((function(e){u.push(new s(e,o.Bounds.fromDOMRectList(A,a(n,Q+g,e.length).getClientRects()))),Q+=e.length}))}else u.push(new s(t,o.Bounds.fromDOMRectList(A,c)))}else{var w=n.splitText(t.length);u.push(new s(t,i(A,n))),n=w}else B.FEATURES.SUPPORT_RANGE_BOUNDS||(n=n.splitText(t.length));g+=t.length})),u};var i=function(A,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var B=(0,o.parseBounds)(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),B}}return o.Bounds.EMPTY},a=function(A,e,t){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,e),n.setEnd(A,e+t),n};e.segmentGraphemes=function(A){if(B.FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(A)).map((function(A){return A.segment}))}return(0,n.splitGraphemes)(A)};var c=function(A,t){return 0!==t.letterSpacing?(0,e.segmentGraphemes)(A):function(A,e){if(B.FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(A)).map((function(A){return A.segment}))}return u(A,e)}(A,t)},l=[32,160,4961,65792,65793,4153,4241],u=function(A,e){for(var t,n=(0,r.LineBreaker)(A,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),o=[],B=function(){if(t.value){var A=t.value.slice(),e=(0,r.toCodePoints)(A),n="";e.forEach((function(A){-1===l.indexOf(A)?n+=(0,r.fromCodePoint)(A):(n.length&&o.push(n),o.push((0,r.fromCodePoint)(A)),n="")})),n.length&&o.push(n)}};!(t=n.next()).done;)B();return o}},6206:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundClip=void 0;var r=t(9535);e.backgroundClip={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if((0,r.isIdentToken)(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}}},1533:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundColor=void 0,e.backgroundColor={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},1655:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundImage=void 0;var r=t(3263),n=t(9535);e.backgroundImage={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e.filter((function(A){return(0,n.nonFunctionArgSeparator)(A)&&(0,r.isSupportedImage)(A)})).map((function(e){return r.image.parse(A,e)}))}}},6034:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundOrigin=void 0;var r=t(9535);e.backgroundOrigin={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,e){return e.map((function(A){if((0,r.isIdentToken)(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}}},8823:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundPosition=void 0;var r=t(9535),n=t(445);e.backgroundPosition={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,e){return(0,r.parseFunctionArgs)(e).map((function(A){return A.filter(n.isLengthPercentage)})).map(n.parseLengthPercentageTuple)}}},6575:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundRepeat=void 0;var r=t(9535);e.backgroundRepeat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,e){return(0,r.parseFunctionArgs)(e).map((function(A){return A.filter(r.isIdentToken).map((function(A){return A.value})).join(" ")})).map(n)}};var n=function(A){switch(A){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}}},8569:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.backgroundSize=e.BACKGROUND_SIZE=void 0;var r,n=t(9535),o=t(445);!function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"}(r||(e.BACKGROUND_SIZE=r={})),e.backgroundSize={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,e){return(0,n.parseFunctionArgs)(e).map((function(A){return A.filter(B)}))}};var B=function(A){return(0,n.isIdentToken)(A)||(0,o.isLengthPercentage)(A)}},7427:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.borderLeftColor=e.borderBottomColor=e.borderRightColor=e.borderTopColor=void 0;var t=function(A){return{name:"border-".concat(A,"-color"),initialValue:"transparent",prefix:!1,type:3,format:"color"}};e.borderTopColor=t("top"),e.borderRightColor=t("right"),e.borderBottomColor=t("bottom"),e.borderLeftColor=t("left")},2688:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.borderBottomLeftRadius=e.borderBottomRightRadius=e.borderTopRightRadius=e.borderTopLeftRadius=void 0;var r=t(445),n=function(A){return{name:"border-radius-".concat(A),initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return(0,r.parseLengthPercentageTuple)(e.filter(r.isLengthPercentage))}}};e.borderTopLeftRadius=n("top-left"),e.borderTopRightRadius=n("top-right"),e.borderBottomRightRadius=n("bottom-right"),e.borderBottomLeftRadius=n("bottom-left")},7133:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.borderLeftStyle=e.borderBottomStyle=e.borderRightStyle=e.borderTopStyle=void 0;var t=function(A){return{name:"border-".concat(A,"-style"),initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}};e.borderTopStyle=t("top"),e.borderRightStyle=t("right"),e.borderBottomStyle=t("bottom"),e.borderLeftStyle=t("left")},3876:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.borderLeftWidth=e.borderBottomWidth=e.borderRightWidth=e.borderTopWidth=void 0;var r=t(9535),n=function(A){return{name:"border-".concat(A,"-width"),initialValue:"0",type:0,prefix:!1,parse:function(A,e){return(0,r.isDimensionToken)(e)?e.number:0}}};e.borderTopWidth=n("top"),e.borderRightWidth=n("right"),e.borderBottomWidth=n("bottom"),e.borderLeftWidth=n("left")},5531:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boxShadow=void 0;var r=t(9535),n=t(445),o=t(5797),B=t(9648);e.boxShadow={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&(0,r.isIdentWithValue)(e[0],"none")?[]:(0,r.parseFunctionArgs)(e).map((function(e){for(var t={color:255,offsetX:n.ZERO_LENGTH,offsetY:n.ZERO_LENGTH,blur:n.ZERO_LENGTH,spread:n.ZERO_LENGTH,inset:!1},s=0,i=0;i{Object.defineProperty(e,"__esModule",{value:!0}),e.color=void 0,e.color={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},2366:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.content=void 0,e.content={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,e){if(0===e.length)return[];var t=e[0];return 20===t.type&&"none"===t.value?[]:e}}},7099:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.counterIncrement=void 0;var r=t(9535);e.counterIncrement={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;for(var n=[],o=e.filter(r.nonWhiteSpace),B=0;B{Object.defineProperty(e,"__esModule",{value:!0}),e.counterReset=void 0;var r=t(9535);e.counterReset={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return[];for(var t=[],n=e.filter(r.nonWhiteSpace),o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.direction=void 0,e.direction={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,e){return"rtl"===e?1:0}}},4837:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.display=void 0;var r=t(9535);e.display={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,e){return e.filter(r.isIdentToken).reduce((function(A,e){return A|n(e.value)}),0)}};var n=function(A){switch(A){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0}},6051:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.duration=void 0;var r=t(9535),n=t(1881);e.duration={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(A,e){return e.filter(r.isDimensionToken).map((function(e){return n.time.parse(A,e)}))}}},8653:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.float=void 0,e.float={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}}},7555:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fontFamily=void 0,e.fontFamily={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,e){var t=[],r=[];return e.forEach((function(A){switch(A.type){case 20:case 0:t.push(A.value);break;case 17:t.push(A.number.toString());break;case 4:r.push(t.join(" ")),t.length=0}})),t.length&&r.push(t.join(" ")),r.map((function(A){return-1===A.indexOf(" ")?A:"'".concat(A,"'")}))}}},5158:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fontSize=void 0,e.fontSize={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"}},8266:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fontStyle=void 0,e.fontStyle={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}}},9334:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fontVariant=void 0;var r=t(9535);e.fontVariant={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return e.filter(r.isIdentToken).map((function(A){return A.value}))}}},6287:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fontWeight=void 0;var r=t(9535);e.fontWeight={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,e){return(0,r.isNumberToken)(e)?e.number:(0,r.isIdentToken)(e)&&"bold"===e.value?700:400}}},7831:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.letterSpacing=void 0,e.letterSpacing={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}}},2863:(A,e)=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.lineBreak=e.LINE_BREAK=void 0,function(A){A.NORMAL="normal",A.STRICT="strict"}(t||(e.LINE_BREAK=t={})),e.lineBreak={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"strict"===e?t.STRICT:t.NORMAL}}},1085:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.computeLineHeight=e.lineHeight=void 0;var r=t(9535),n=t(445);e.lineHeight={name:"line-height",initialValue:"normal",prefix:!1,type:4};e.computeLineHeight=function(A,e){return(0,r.isIdentToken)(A)&&"normal"===A.value?1.2*e:17===A.type?e*A.number:(0,n.isLengthPercentage)(A)?(0,n.getAbsoluteValue)(A,e):e}},4215:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listStyleImage=void 0;var r=t(3263);e.listStyleImage={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,e){return 20===e.type&&"none"===e.value?null:r.image.parse(A,e)}}},1863:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listStylePosition=void 0,e.listStylePosition={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,e){return"inside"===e?0:1}}},216:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listStyleType=void 0,e.listStyleType={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 23;case"hiragana":return 24;case"hiragana-iroha":return 25;case"japanese-formal":return 26;case"japanese-informal":return 27;case"kannada":return 28;case"katakana":return 29;case"katakana-iroha":return 30;case"khmer":return 31;case"korean-hangul-formal":return 32;case"korean-hanja-formal":return 33;case"korean-hanja-informal":return 34;case"lao":return 35;case"lower-armenian":return 36;case"malayalam":return 37;case"mongolian":return 38;case"myanmar":return 39;case"oriya":return 40;case"persian":return 41;case"simp-chinese-formal":return 42;case"simp-chinese-informal":return 43;case"tamil":return 44;case"telugu":return 45;case"thai":return 46;case"tibetan":return 47;case"trad-chinese-formal":return 48;case"trad-chinese-informal":return 49;case"upper-armenian":return 50;case"disclosure-open":return 51;case"disclosure-closed":return 52;default:return-1}}}},3153:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.marginLeft=e.marginBottom=e.marginRight=e.marginTop=void 0;var t=function(A){return{name:"margin-".concat(A),initialValue:"0",prefix:!1,type:4}};e.marginTop=t("top"),e.marginRight=t("right"),e.marginBottom=t("bottom"),e.marginLeft=t("left")},5278:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.objectFit=void 0,e.objectFit={name:"object-fit",initialValue:"fill",prefix:!1,type:2,parse:function(A,e){switch(e){case"contain":return"contain";case"cover":return"cover";case"none":return"none";case"scale-down":return"scale-down";default:return"fill"}}}},2214:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.opacity=void 0;var r=t(9535);e.opacity={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,e){return(0,r.isNumberToken)(e)?e.number:1}}},530:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.overflowWrap=void 0,e.overflowWrap={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){return"break-word"===e?"break-word":"normal"}}},3893:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.overflow=void 0;var r=t(9535);e.overflow={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,e){return e.filter(r.isIdentToken).map((function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}}))}}},3678:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.paddingLeft=e.paddingBottom=e.paddingRight=e.paddingTop=void 0;var t=function(A){return{name:"padding-".concat(A),initialValue:"0",prefix:!1,type:3,format:"length-percentage"}};e.paddingTop=t("top"),e.paddingRight=t("right"),e.paddingBottom=t("bottom"),e.paddingLeft=t("left")},7566:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.paintOrder=void 0;var r=t(9535);e.paintOrder={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(A,e){var t=[];return e.filter(r.isIdentToken).forEach((function(A){switch(A.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2)}})),[0,1,2].forEach((function(A){-1===t.indexOf(A)&&t.push(A)})),t}}},5640:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.position=void 0,e.position={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}}},8962:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getQuote=e.quotes=void 0;var r=t(9535);e.quotes={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(A,e){if(0===e.length)return null;var t=e[0];if(20===t.type&&"none"===t.value)return null;var n=[],o=e.filter(r.isStringToken);if(o.length%2!=0)return null;for(var B=0;B{Object.defineProperty(e,"__esModule",{value:!0}),e.textAlign=void 0,e.textAlign={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}}},2325:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.textDecorationColor=void 0,e.textDecorationColor={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},1234:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.textDecorationLine=void 0;var r=t(9535);e.textDecorationLine={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,e){return e.filter(r.isIdentToken).map((function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(A){return 0!==A}))}}},8317:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.textShadow=void 0;var r=t(9535),n=t(445),o=t(5797),B=t(9648);e.textShadow={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,e){return 1===e.length&&(0,r.isIdentWithValue)(e[0],"none")?[]:(0,r.parseFunctionArgs)(e).map((function(e){for(var t={color:o.COLORS.TRANSPARENT,offsetX:n.ZERO_LENGTH,offsetY:n.ZERO_LENGTH,blur:n.ZERO_LENGTH},r=0,s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),e.textTransform=void 0,e.textTransform={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}}},1154:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.transformOrigin=void 0;var r=t(445),n={type:16,number:50,flags:t(4055).FLAG_INTEGER},o=[n,n];e.transformOrigin={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,e){var t=e.filter(r.isLengthPercentage);return 2!==t.length?o:[t[0],t[1]]}}},4663:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.transform=void 0,e.transform={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(A,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var r=t[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported transform function "'.concat(e.name,'"'));return r(e.values)}return null}};var t={matrix:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number}));return 6===e.length?e:null},matrix3d:function(A){var e=A.filter((function(A){return 17===A.type})).map((function(A){return A.number})),t=e[0],r=e[1],n=(e[2],e[3],e[4]),o=e[5],B=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),s=e[13];e[14],e[15];return 16===e.length?[t,r,n,o,B,s]:null}}},8287:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.visibility=void 0,e.visibility={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,e){switch(e){case"hidden":return 1;case"collapse":return 2;default:return 0}}}},1804:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.webkitTextStrokeColor=void 0,e.webkitTextStrokeColor={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"}},3335:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.webkitTextStrokeWidth=void 0;var r=t(9535);e.webkitTextStrokeWidth={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return(0,r.isDimensionToken)(e)?e.number:0}}},721:(A,e)=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.wordBreak=e.WORD_BREAK=void 0,function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"}(t||(e.WORD_BREAK=t={})),e.wordBreak={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,e){switch(e){case"break-all":return t.BREAK_ALL;case"keep-all":return t.KEEP_ALL;default:return t.NORMAL}}}},7816:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.zIndex=void 0;var r=t(9535);e.zIndex={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,e){if(20===e.type)return{auto:!0,order:0};if((0,r.isNumberToken)(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}}},9535:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseFunctionArgs=e.nonFunctionArgSeparator=e.nonWhiteSpace=e.isIdentWithValue=e.isStringToken=e.isIdentToken=e.isNumberToken=e.isDimensionToken=e.Parser=void 0;var r=t(4055),n=function(){function A(A){this._tokens=A}return A.create=function(e){var t=new r.Tokenizer;return t.write(e),new A(t.read())},A.parseValue=function(e){return A.create(e).parseComponentValue()},A.parseValues=function(e){return A.create(e).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var A=this.consumeToken();31===A.type;)A=this.consumeToken();if(32===A.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do{A=this.consumeToken()}while(31===A.type);if(32===A.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(32===e.type)return A;A.push(e),A.push()}},A.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},A.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(32===t.type||o(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},A.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(32===t.type||3===t.type)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var A=this._tokens.shift();return void 0===A?r.EOF_TOKEN:A},A.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},A}();e.Parser=n;e.isDimensionToken=function(A){return 15===A.type};e.isNumberToken=function(A){return 17===A.type};e.isIdentToken=function(A){return 20===A.type};e.isStringToken=function(A){return 0===A.type};e.isIdentWithValue=function(A,t){return(0,e.isIdentToken)(A)&&A.value===t};e.nonWhiteSpace=function(A){return 31!==A.type};e.nonFunctionArgSeparator=function(A){return 31!==A.type&&4!==A.type&&6!==A.type};e.parseFunctionArgs=function(A){var e=[],t=[];return A.forEach((function(A){if(4===A.type){if(0===t.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(t),void(t=[])}31!==A.type&&t.push(A)})),t.length&&e.push(t),e};var o=function(A,e){return 11===e&&12===A.type||(28===e&&29===A.type||2===e&&3===A.type)}},4055:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Tokenizer=e.EOF_TOKEN=e.FLAG_NUMBER=e.FLAG_INTEGER=e.FLAG_ID=e.FLAG_UNRESTRICTED=void 0;var r=t(4381);e.FLAG_UNRESTRICTED=1,e.FLAG_ID=2,e.FLAG_INTEGER=4,e.FLAG_NUMBER=8;var n=45,o=43,B=-1,s=function(A){return A>=48&&A<=57},i=function(A){return s(A)||A>=65&&A<=70||A>=97&&A<=102},a=function(A){return 10===A||9===A||32===A},c=function(A){return function(A){return function(A){return A>=97&&A<=122}(A)||function(A){return A>=65&&A<=90}(A)}(A)||function(A){return A>=128}(A)||95===A},l=function(A){return c(A)||s(A)||A===n},u=function(A){return A>=0&&A<=8||11===A||A>=14&&A<=31||127===A},g=function(A,e){return 92===A&&10!==e},Q=function(A,e,t){return A===n?c(e)||g(e,t):!!c(A)||!(92!==A||!g(A,e))},w=function(A,e,t){return A===o||A===n?!!s(e)||46===e&&s(t):s(46===A?e:A)},C=function(A){var e=0,t=1;A[e]!==o&&A[e]!==n||(A[e]===n&&(t=-1),e++);for(var B=[];s(A[e]);)B.push(A[e++]);var i=B.length?parseInt(r.fromCodePoint.apply(void 0,B),10):0;46===A[e]&&e++;for(var a=[];s(A[e]);)a.push(A[e++]);var c=a.length,l=c?parseInt(r.fromCodePoint.apply(void 0,a),10):0;69!==A[e]&&101!==A[e]||e++;var u=1;A[e]!==o&&A[e]!==n||(A[e]===n&&(u=-1),e++);for(var g=[];s(A[e]);)g.push(A[e++]);var Q=g.length?parseInt(r.fromCodePoint.apply(void 0,g),10):0;return t*(i+l*Math.pow(10,-c))*Math.pow(10,u*Q)},d={type:2},U={type:3},F={type:4},h={type:13},f={type:8},p={type:21},E={type:9},H={type:10},y={type:11},I={type:12},m={type:14},v={type:23},b={type:1},K={type:25},L={type:24},S={type:26},D={type:27},T={type:28},O={type:29},x={type:31};e.EOF_TOKEN={type:32};var M=function(){function A(){this._value=[]}return A.prototype.write=function(A){this._value=this._value.concat((0,r.toCodePoints)(A))},A.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==e.EOF_TOKEN;)A.push(t),t=this.consumeToken();return A},A.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),u=this.peekCodePoint(1),C=this.peekCodePoint(2);if(l(t)||g(u,C)){var v=Q(t,u,C)?e.FLAG_ID:e.FLAG_UNRESTRICTED;return{type:5,value:this.consumeName(),flags:v}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),h;break;case 39:return this.consumeStringToken(39);case 40:return d;case 41:return U;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),m;break;case o:if(w(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 44:return F;case n:var b=A,M=this.peekCodePoint(0),V=this.peekCodePoint(1);if(w(b,M,V))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Q(b,M,V))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(M===n&&62===V)return this.consumeCodePoint(),this.consumeCodePoint(),L;break;case 46:if(w(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var G=this.consumeCodePoint();if(42===G&&47===(G=this.consumeCodePoint()))return this.consumeToken();if(G===B)return this.consumeToken()}break;case 58:return S;case 59:return D;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===n&&this.peekCodePoint(2)===n)return this.consumeCodePoint(),this.consumeCodePoint(),K;break;case 64:var P=this.peekCodePoint(0),R=this.peekCodePoint(1),k=this.peekCodePoint(2);if(Q(P,R,k))return{type:7,value:this.consumeName()};break;case 91:return T;case 92:if(g(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case 93:return O;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),f;break;case 123:return y;case 125:return I;case 117:case 85:var _=this.peekCodePoint(0),N=this.peekCodePoint(1);return _!==o||!i(N)&&63!==N||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),E;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),p;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),H;break;case B:return e.EOF_TOKEN}return a(A)?(this.consumeWhiteSpace(),x):s(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):c(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:(0,r.fromCodePoint)(A)}},A.prototype.consumeCodePoint=function(){var A=this._value.shift();return void 0===A?-1:A},A.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},A.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},A.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();i(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;63===e&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t)return{type:30,start:parseInt(r.fromCodePoint.apply(void 0,A.map((function(A){return 63===A?48:A}))),16),end:parseInt(r.fromCodePoint.apply(void 0,A.map((function(A){return 63===A?70:A}))),16)};var o=parseInt(r.fromCodePoint.apply(void 0,A),16);if(this.peekCodePoint(0)===n&&i(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var B=[];i(e)&&B.length<6;)B.push(e),e=this.consumeCodePoint();return{type:30,start:o,end:parseInt(r.fromCodePoint.apply(void 0,B),16)}}return{type:30,start:o,end:o}},A.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return"url"===A.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},A.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===B)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var t=this.consumeStringToken(this.consumeCodePoint());return 0===t.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===B||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),v)}for(;;){var n=this.consumeCodePoint();if(n===B||41===n)return{type:22,value:r.fromCodePoint.apply(void 0,A)};if(a(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===B||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:r.fromCodePoint.apply(void 0,A)}):(this.consumeBadUrlRemnants(),v);if(34===n||39===n||40===n||u(n))return this.consumeBadUrlRemnants(),v;if(92===n){if(!g(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),v;A.push(this.consumeEscapedCodePoint())}else A.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;a(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(41===A||A===B)return;g(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(A){for(var e="";A>0;){var t=Math.min(5e4,A);e+=r.fromCodePoint.apply(void 0,this._value.splice(0,t)),A-=t}return this._value.shift(),e},A.prototype.consumeStringToken=function(A){for(var e="",t=0;;){var n=this._value[t];if(n===B||void 0===n||n===A)return{type:0,value:e+=this.consumeStringSlice(t)};if(10===n)return this._value.splice(0,t),b;if(92===n){var o=this._value[t+1];o!==B&&void 0!==o&&(10===o?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):g(n,o)&&(e+=this.consumeStringSlice(t),e+=(0,r.fromCodePoint)(this.consumeEscapedCodePoint()),t=-1))}t++}},A.prototype.consumeNumber=function(){var A=[],t=e.FLAG_INTEGER,r=this.peekCodePoint(0);for(r!==o&&r!==n||A.push(this.consumeCodePoint());s(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(46===r&&s(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=e.FLAG_NUMBER;s(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),B=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===r||101===r)&&((B===o||B===n)&&s(i)||s(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=e.FLAG_NUMBER;s(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[C(A),t]},A.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),o=this.peekCodePoint(2);return Q(r,n,o)?{type:15,number:e,flags:t,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},A.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(i(A)){for(var e=(0,r.fromCodePoint)(A);i(this.peekCodePoint(0))&&e.length<6;)e+=(0,r.fromCodePoint)(this.consumeCodePoint());a(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return 0===t||function(A){return A>=55296&&A<=57343}(t)||t>1114111?65533:t}return A===B?65533:A},A.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(l(e))A+=(0,r.fromCodePoint)(e);else{if(!g(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),A;A+=(0,r.fromCodePoint)(this.consumeEscapedCodePoint())}}},A}();e.Tokenizer=M},1261:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.deg=e.parseNamedSide=e.isAngle=e.angle=void 0;var r=t(9535),n=t(445),o="grad",B="turn";e.angle={name:"angle",parse:function(A,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case o:return Math.PI/200*e.number;case"rad":return e.number;case B:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}};e.isAngle=function(A){return 15===A.type&&("deg"===A.unit||A.unit===o||"rad"===A.unit||A.unit===B)};e.parseNamedSide=function(A){switch(A.filter(r.isIdentToken).map((function(A){return A.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[n.ZERO_LENGTH,n.ZERO_LENGTH];case"to top":case"bottom":return(0,e.deg)(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[n.ZERO_LENGTH,n.HUNDRED_PERCENT];case"to right":case"left":return(0,e.deg)(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[n.HUNDRED_PERCENT,n.HUNDRED_PERCENT];case"to bottom":case"top":return(0,e.deg)(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[n.HUNDRED_PERCENT,n.ZERO_LENGTH];case"to left":case"right":return(0,e.deg)(270)}return 0};e.deg=function(A){return Math.PI*A/180}},5797:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.COLORS=e.parseColor=e.pack=e.asString=e.isTransparent=e.color=void 0;var r=t(9535),n=t(1261),o=t(445);e.color={name:"color",parse:function(A,t){if(18===t.type){var r=u[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported color function "'.concat(t.name,'"'));return r(A,t.values)}if(5===t.type){if(3===t.value.length){var n=t.value.substring(0,1),o=t.value.substring(1,2),B=t.value.substring(2,3);return(0,e.pack)(parseInt(n+n,16),parseInt(o+o,16),parseInt(B+B,16),1)}if(4===t.value.length){n=t.value.substring(0,1),o=t.value.substring(1,2),B=t.value.substring(2,3);var s=t.value.substring(3,4);return(0,e.pack)(parseInt(n+n,16),parseInt(o+o,16),parseInt(B+B,16),parseInt(s+s,16)/255)}if(6===t.value.length){n=t.value.substring(0,2),o=t.value.substring(2,4),B=t.value.substring(4,6);return(0,e.pack)(parseInt(n,16),parseInt(o,16),parseInt(B,16),1)}if(8===t.value.length){n=t.value.substring(0,2),o=t.value.substring(2,4),B=t.value.substring(4,6),s=t.value.substring(6,8);return(0,e.pack)(parseInt(n,16),parseInt(o,16),parseInt(B,16),parseInt(s,16)/255)}}if(20===t.type){var i=e.COLORS[t.value.toUpperCase()];if(void 0!==i)return i}return e.COLORS.TRANSPARENT}};e.isTransparent=function(A){return!(255&A)};e.asString=function(A){var e=255&A,t=255&A>>8,r=255&A>>16,n=255&A>>24;return e<255?"rgba(".concat(n,",").concat(r,",").concat(t,",").concat(e/255,")"):"rgb(".concat(n,",").concat(r,",").concat(t,")")};e.pack=function(A,e,t,r){return(A<<24|e<<16|t<<8|Math.round(255*r))>>>0};var B=function(A,e){if(17===A.type)return A.number;if(16===A.type){var t=3===e?1:255;return 3===e?A.number/100*t:Math.round(A.number/100*t)}return 0},s=function(A,t){var n=t.filter(r.nonFunctionArgSeparator);if(3===n.length){var o=n.map(B),s=o[0],i=o[1],a=o[2];return(0,e.pack)(s,i,a,1)}if(4===n.length){var c=n.map(B),l=(s=c[0],i=c[1],a=c[2],c[3]);return(0,e.pack)(s,i,a,l)}return 0};function i(A,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-A)*t*6+A:t<.5?e:t<2/3?6*(e-A)*(2/3-t)+A:A}var a=function(A,t){var B=t.filter(r.nonFunctionArgSeparator),s=B[0],a=B[1],c=B[2],l=B[3];return function(A,t,r,n){if(0===t)return(0,e.pack)(255*r,255*r,255*r,1);var o=r<=.5?r*(t+1):r+t-r*t,B=2*r-o,s=i(B,o,A+1/3),a=i(B,o,A),c=i(B,o,A-1/3);return(0,e.pack)(255*s,255*a,255*c,n)}((17===s.type?(0,n.deg)(s.number):n.angle.parse(A,s))/(2*Math.PI),(0,o.isLengthPercentage)(a)?a.number/100:0,(0,o.isLengthPercentage)(c)?c.number/100:0,void 0!==l&&(0,o.isLengthPercentage)(l)?(0,o.getAbsoluteValue)(l,1):1)};function c(A,e,t){var r=t*Math.PI/180,n=(A+16)/116,o=e*Math.cos(r)/500+n,B=n-e*Math.sin(r)/200,s=3.2406*l(o)+-1.5372*l(n)+-.4986*l(B),i=-.9689*l(o)+1.8758*l(n)+.0415*l(B),a=.0557*l(o)+-.204*l(n)+1.057*l(B),c=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s,u=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,g=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:12.92*a,Q=Math.min(Math.max(0,c),1),w=Math.min(Math.max(0,u),1),C=Math.min(Math.max(0,g),1);return[Math.round(255*Q),Math.round(255*w),Math.round(255*C)]}function l(A){return A>.206893034?Math.pow(A,3):(A-4/29)/7.787037}var u={hsl:a,hsla:a,rgb:s,rgba:s,lch:function(A,t){var n=t.filter(r.nonFunctionArgSeparator);if(4===n.length){var o=n.map(B),s=o[0],i=o[1],a=o[2],l=o[3],u=c(s,i,a),g=u[0],Q=u[1],w=u[2];return(0,e.pack)(g,Q,w,l)}if(3===n.length){var C=n.map(B),d=c(s=C[0],i=C[1],a=C[2]);g=d[0],Q=d[1],w=d[2];return(0,e.pack)(g,Q,w,1)}return(0,e.pack)(255,255,255,1)}};e.parseColor=function(A,t){return e.color.parse(A,r.Parser.create(t).parseComponentValue())},e.COLORS={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}},1338:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.prefixLinearGradient=void 0;var r=t(9535),n=t(1261),o=t(3586);e.prefixLinearGradient=function(A,e){var t=(0,n.deg)(180),B=[];return(0,r.parseFunctionArgs)(e).forEach((function(e,r){if(0===r){var s=e[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(t=(0,n.parseNamedSide)(e));if((0,n.isAngle)(s))return void(t=(n.angle.parse(A,s)+(0,n.deg)(270))%(0,n.deg)(360))}var i=(0,o.parseColorStop)(A,e);B.push(i)})),{angle:t,stops:B,type:1}}},2336:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.prefixRadialGradient=void 0;var r=t(9535),n=t(3586),o=t(445),B=t(9648),s=t(1878);e.prefixRadialGradient=function(A,e){var t=0,i=3,a=[],c=[];return(0,r.parseFunctionArgs)(e).forEach((function(e,l){var u=!0;if(0===l?u=e.reduce((function(A,e){if((0,r.isIdentToken)(e))switch(e.value){case"center":return c.push(o.FIFTY_PERCENT),!1;case"top":case"left":return c.push(o.ZERO_LENGTH),!1;case"right":case"bottom":return c.push(o.HUNDRED_PERCENT),!1}else if((0,o.isLengthPercentage)(e)||(0,B.isLength)(e))return c.push(e),!1;return A}),u):1===l&&(u=e.reduce((function(A,e){if((0,r.isIdentToken)(e))switch(e.value){case s.CIRCLE:return t=0,!1;case s.ELLIPSE:return t=1,!1;case s.CONTAIN:case s.CLOSEST_SIDE:return i=0,!1;case s.FARTHEST_SIDE:return i=1,!1;case s.CLOSEST_CORNER:return i=2,!1;case s.COVER:case s.FARTHEST_CORNER:return i=3,!1}else if((0,B.isLength)(e)||(0,o.isLengthPercentage)(e))return Array.isArray(i)||(i=[]),i.push(e),!1;return A}),u)),u){var g=(0,n.parseColorStop)(A,e);a.push(g)}})),{size:i,shape:t,stops:a,position:c,type:2}}},486:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.webkitGradient=void 0;var r=t(9535),n=t(1261),o=t(5797),B=t(445);e.webkitGradient=function(A,e){var t=(0,n.deg)(180),s=[],i=1;return(0,r.parseFunctionArgs)(e).forEach((function(e,t){var n=e[0];if(0===t){if((0,r.isIdentToken)(n)&&"linear"===n.value)return void(i=1);if((0,r.isIdentToken)(n)&&"radial"===n.value)return void(i=2)}if(18===n.type)if("from"===n.name){var a=o.color.parse(A,n.values[0]);s.push({stop:B.ZERO_LENGTH,color:a})}else if("to"===n.name){a=o.color.parse(A,n.values[0]);s.push({stop:B.HUNDRED_PERCENT,color:a})}else if("color-stop"===n.name){var c=n.values.filter(r.nonFunctionArgSeparator);if(2===c.length){a=o.color.parse(A,c[1]);var l=c[0];(0,r.isNumberToken)(l)&&s.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}})),1===i?{angle:(t+(0,n.deg)(180))%(0,n.deg)(360),stops:s,type:i}:{size:3,shape:0,stops:s,position:[],type:i}}},6608:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createCounterText=e.CounterState=void 0;var r=t(4381),n=t(9085),o=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},A.prototype.pop=function(A){var e=this;A.forEach((function(A){return e.counters[A].pop()}))},A.prototype.parse=function(A){var e=this,t=A.counterIncrement,r=A.counterReset,n=!0;null!==t&&t.forEach((function(A){var t=e.counters[A.counter];t&&0!==A.increment&&(n=!1,t.length||t.push(1),t[Math.max(0,t.length-1)]+=A.increment)}));var o=[];return n&&r.forEach((function(A){var t=e.counters[A.counter];o.push(A.counter),t||(t=e.counters[A.counter]=[]),t.push(A.reset)})),o},A}();e.CounterState=o;var B={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"]},s={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},i={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},a={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},c=function(A,t,r,n,o,B){return Ar?(0,e.createCounterText)(A,o,B.length>0):n.integers.reduce((function(e,t,r){for(;A>=t;)A-=t,e+=n.values[r];return e}),"")+B},l=function(A,e,t,r){var n="";do{t||A--,n=r(A)+n,A/=e}while(A*e>=e);return n},u=function(A,e,t,n,o){var B=t-e+1;return(A<0?"-":"")+(l(Math.abs(A),B,n,(function(A){return(0,r.fromCodePoint)(Math.floor(A%B)+e)}))+o)},g=function(A,e,t){void 0===t&&(t=". ");var r=e.length;return l(Math.abs(A),r,!1,(function(A){return e[Math.floor(A%r)]}))+t},Q=function(A,t,r,o,B,s){if(A<-9999||A>9999)return(0,e.createCounterText)(A,4,B.length>0);var i=Math.abs(A),a=B;if(0===i)return t[0]+a;for(var c=0;i>0&&c<=4;c++){var l=i%10;0===l&&(0,n.contains)(s,1)&&""!==a?a=t[l]+a:l>1||1===l&&0===c||1===l&&1===c&&(0,n.contains)(s,2)||1===l&&1===c&&(0,n.contains)(s,4)&&A>100||1===l&&c>1&&(0,n.contains)(s,8)?a=t[l]+(c>0?r[c-1]:"")+a:1===l&&c>0&&(a=r[c-1]+a),i=Math.floor(i/10)}return(A<0?o:"")+a},w="十百千萬",C="拾佰仟萬",d="マイナス",U="마이너스";e.createCounterText=function(A,e,t){var r=t?". ":"",n=t?"、":"",o=t?", ":"",l=t?" ":"";switch(e){case 0:return"•"+l;case 1:return"◦"+l;case 2:return"◾"+l;case 5:var F=u(A,48,57,!0,r);return F.length<4?"0".concat(F):F;case 4:return g(A,"〇一二三四五六七八九",n);case 6:return c(A,1,3999,B,3,r).toLowerCase();case 7:return c(A,1,3999,B,3,r);case 8:return u(A,945,969,!1,r);case 9:return u(A,97,122,!1,r);case 10:return u(A,65,90,!1,r);case 11:return u(A,1632,1641,!0,r);case 12:case 50:return c(A,1,9999,s,3,r);case 36:return c(A,1,9999,s,3,r).toLowerCase();case 13:return u(A,2534,2543,!0,r);case 14:case 31:return u(A,6112,6121,!0,r);case 15:return g(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return g(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 49:return Q(A,"零一二三四五六七八九",w,"負",n,14);case 48:return Q(A,"零壹貳參肆伍陸柒捌玖",C,"負",n,15);case 43:return Q(A,"零一二三四五六七八九",w,"负",n,14);case 42:return Q(A,"零壹贰叁肆伍陆柒捌玖",C,"负",n,15);case 27:return Q(A,"〇一二三四五六七八九","十百千万",d,n,0);case 26:return Q(A,"零壱弐参四伍六七八九","拾百千万",d,n,7);case 32:return Q(A,"영일이삼사오육칠팔구","십백천만",U,o,7);case 34:return Q(A,"零一二三四五六七八九","十百千萬",U,o,0);case 33:return Q(A,"零壹貳參四五六七八九","拾百千",U,o,7);case 18:return u(A,2406,2415,!0,r);case 20:return c(A,1,19999,a,3,r);case 21:return u(A,2790,2799,!0,r);case 22:return u(A,2662,2671,!0,r);case 23:return c(A,1,10999,i,3,r);case 24:return g(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 25:return g(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 28:return u(A,3302,3311,!0,r);case 29:return g(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 30:return g(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 35:return u(A,3792,3801,!0,r);case 38:return u(A,6160,6169,!0,r);case 39:return u(A,4160,4169,!0,r);case 40:return u(A,2918,2927,!0,r);case 41:return u(A,1776,1785,!0,r);case 44:return u(A,3046,3055,!0,r);case 45:return u(A,3174,3183,!0,r);case 46:return u(A,3664,3673,!0,r);case 47:return u(A,3872,3881,!0,r);default:return u(A,48,57,!0,r)}}},3586:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.calculateRadius=e.calculateGradientDirection=e.processColorStops=e.parseColorStop=void 0;var r=t(5797),n=t(445);e.parseColorStop=function(A,e){var t=r.color.parse(A,e[0]),o=e[1];return o&&(0,n.isLengthPercentage)(o)?{color:t,stop:o}:{color:t,stop:null}};e.processColorStops=function(A,e){var t=A[0],r=A[A.length-1];null===t.stop&&(t.stop=n.ZERO_LENGTH),null===r.stop&&(r.stop=n.HUNDRED_PERCENT);for(var o=[],B=0,s=0;sB?o.push(a):o.push(B),B=a}else o.push(null)}var c=null;for(s=0;sA.optimumDistance)?{optimumCorner:e,optimumDistance:i}:A}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner};e.calculateRadius=function(A,e,t,r,s){var i=0,a=0;switch(A.size){case 0:0===A.shape?i=a=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-s)):1===A.shape&&(i=Math.min(Math.abs(e),Math.abs(e-r)),a=Math.min(Math.abs(t),Math.abs(t-s)));break;case 2:if(0===A.shape)i=a=Math.min(o(e,t),o(e,t-s),o(e-r,t),o(e-r,t-s));else if(1===A.shape){var c=Math.min(Math.abs(t),Math.abs(t-s))/Math.min(Math.abs(e),Math.abs(e-r)),l=B(r,s,e,t,!0),u=l[0],g=l[1];a=c*(i=o(u-e,(g-t)/c))}break;case 1:0===A.shape?i=a=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-s)):1===A.shape&&(i=Math.max(Math.abs(e),Math.abs(e-r)),a=Math.max(Math.abs(t),Math.abs(t-s)));break;case 3:if(0===A.shape)i=a=Math.max(o(e,t),o(e,t-s),o(e-r,t),o(e-r,t-s));else if(1===A.shape){c=Math.max(Math.abs(t),Math.abs(t-s))/Math.max(Math.abs(e),Math.abs(e-r));var Q=B(r,s,e,t,!1);u=Q[0],g=Q[1];a=c*(i=o(u-e,(g-t)/c))}}return Array.isArray(A.size)&&(i=(0,n.getAbsoluteValue)(A.size[0],r),a=2===A.size.length?(0,n.getAbsoluteValue)(A.size[1],s):i),[i,a]}},7404:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.linearGradient=void 0;var r=t(9535),n=t(1261),o=t(3586);e.linearGradient=function(A,e){var t=(0,n.deg)(180),B=[];return(0,r.parseFunctionArgs)(e).forEach((function(e,r){if(0===r){var s=e[0];if(20===s.type&&"to"===s.value)return void(t=(0,n.parseNamedSide)(e));if((0,n.isAngle)(s))return void(t=n.angle.parse(A,s))}var i=(0,o.parseColorStop)(A,e);B.push(i)})),{angle:t,stops:B,type:1}}},1878:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.radialGradient=e.CONTAIN=e.COVER=e.ELLIPSE=e.CIRCLE=e.FARTHEST_CORNER=e.CLOSEST_CORNER=e.FARTHEST_SIDE=e.CLOSEST_SIDE=void 0;var r=t(9535),n=t(3586),o=t(445),B=t(9648);e.CLOSEST_SIDE="closest-side",e.FARTHEST_SIDE="farthest-side",e.CLOSEST_CORNER="closest-corner",e.FARTHEST_CORNER="farthest-corner",e.CIRCLE="circle",e.ELLIPSE="ellipse",e.COVER="cover",e.CONTAIN="contain";e.radialGradient=function(A,t){var s=0,i=3,a=[],c=[];return(0,r.parseFunctionArgs)(t).forEach((function(t,l){var u=!0;if(0===l){var g=!1;u=t.reduce((function(A,t){if(g)if((0,r.isIdentToken)(t))switch(t.value){case"center":return c.push(o.FIFTY_PERCENT),A;case"top":case"left":return c.push(o.ZERO_LENGTH),A;case"right":case"bottom":return c.push(o.HUNDRED_PERCENT),A}else((0,o.isLengthPercentage)(t)||(0,B.isLength)(t))&&c.push(t);else if((0,r.isIdentToken)(t))switch(t.value){case e.CIRCLE:return s=0,!1;case e.ELLIPSE:return s=1,!1;case"at":return g=!0,!1;case e.CLOSEST_SIDE:return i=0,!1;case e.COVER:case e.FARTHEST_SIDE:return i=1,!1;case e.CONTAIN:case e.CLOSEST_CORNER:return i=2,!1;case e.FARTHEST_CORNER:return i=3,!1}else if((0,B.isLength)(t)||(0,o.isLengthPercentage)(t))return Array.isArray(i)||(i=[]),i.push(t),!1;return A}),u)}if(u){var Q=(0,n.parseColorStop)(A,t);a.push(Q)}})),{size:i,shape:s,stops:a,position:c,type:2}}},3263:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSupportedImage=e.image=e.isRadialGradient=e.isLinearGradient=void 0;var r=t(7404),n=t(1338),o=t(486),B=t(1878),s=t(2336);e.isLinearGradient=function(A){return 1===A.type};e.isRadialGradient=function(A){return 2===A.type},e.image={name:"image",parse:function(A,e){if(22===e.type){var t={url:e.value,type:0};return A.cache.addImage(e.value),t}if(18===e.type){var r=i[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'.concat(e.name,'"'));return r(A,e.values)}throw new Error("Unsupported image type ".concat(e.type))}},e.isSupportedImage=function(A){return!(20===A.type&&"none"===A.value||18===A.type&&!i[A.name])};var i={"linear-gradient":r.linearGradient,"-moz-linear-gradient":n.prefixLinearGradient,"-ms-linear-gradient":n.prefixLinearGradient,"-o-linear-gradient":n.prefixLinearGradient,"-webkit-linear-gradient":n.prefixLinearGradient,"radial-gradient":B.radialGradient,"-moz-radial-gradient":s.prefixRadialGradient,"-ms-radial-gradient":s.prefixRadialGradient,"-o-radial-gradient":s.prefixRadialGradient,"-webkit-radial-gradient":s.prefixRadialGradient,"-webkit-gradient":o.webkitGradient}},445:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getAbsoluteValue=e.getAbsoluteValueForTuple=e.HUNDRED_PERCENT=e.FIFTY_PERCENT=e.ZERO_LENGTH=e.parseLengthPercentageTuple=e.isLengthPercentage=void 0;var r=t(4055),n=t(9535),o=t(9648);e.isLengthPercentage=function(A){return 16===A.type||(0,o.isLength)(A)};e.parseLengthPercentageTuple=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},e.ZERO_LENGTH={type:17,number:0,flags:r.FLAG_INTEGER},e.FIFTY_PERCENT={type:16,number:50,flags:r.FLAG_INTEGER},e.HUNDRED_PERCENT={type:16,number:100,flags:r.FLAG_INTEGER};e.getAbsoluteValueForTuple=function(A,t,r){var n=A[0],o=A[1];return[(0,e.getAbsoluteValue)(n,t),(0,e.getAbsoluteValue)(void 0!==o?o:n,r)]};e.getAbsoluteValue=function(A,e){if(16===A.type)return A.number/100*e;if((0,n.isDimensionToken)(A))switch(A.unit){case"rem":case"em":return 16*A.number;default:return A.number}return A.number}},9648:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isLength=void 0;e.isLength=function(A){return 17===A.type||15===A.type}},1881:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.time=void 0,e.time={name:"time",parse:function(A,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}}},8910:function(A,e,t){var r=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(n,o){function B(A){try{i(r.next(A))}catch(A){o(A)}}function s(A){try{i(r.throw(A))}catch(A){o(A)}}function i(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(B,s)}i((r=r.apply(A,e||[])).next())}))},n=this&&this.__generator||function(A,e){var t,r,n,o,B={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(i){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(B=0)),B;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return B.label++,{value:s[1],done:!1};case 5:B.label++,r=s[1],s=[0];continue;case 7:s=B.ops.pop(),B.trys.pop();continue;default:if(!(n=B.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){B=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]")),p(this.referenceElement.ownerDocument,B,s),a.replaceChild(l,a.documentElement),a.close(),c},A.prototype.createElementClone=function(A){if((0,u.isDebugging)(A,2),(0,B.isCanvasElement)(A))return this.createCanvasClone(A);if((0,B.isVideoElement)(A))return this.createVideoClone(A);if((0,B.isStyleElement)(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return(0,B.isImageElement)(e)&&((0,B.isImageElement)(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),(0,B.isCustomElement)(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return(0,e.copyCSSStyles)(A.style,t),t},A.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce((function(A,e){return e&&"string"==typeof e.cssText?A+e.cssText:A}),""),r=A.cloneNode(!1);return r.textContent=t,r}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),"SecurityError"!==A.name)throw A}return A.cloneNode(!1)},A.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var r=A.cloneNode(!1);try{r.width=A.width,r.height=A.height;var n=A.getContext("2d"),o=r.getContext("2d",{willReadFrequently:!0});if(o)if(!this.options.allowTaint&&n)o.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var B=null!==(e=A.getContext("webgl2"))&&void 0!==e?e:A.getContext("webgl");if(B){var s=B.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}o.drawImage(A,0,0)}return r}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",A)}return r},A.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",A)}var r=A.ownerDocument.createElement("canvas");return r.width=A.offsetWidth,r.height=A.offsetHeight,r},A.prototype.appendChildNode=function(A,e,t){(0,B.isElementNode)(e)&&((0,B.isScriptElement)(e)||e.hasAttribute(g)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&(0,B.isElementNode)(e)&&(0,B.isStyleElement)(e)||A.appendChild(this.cloneNode(e,t))},A.prototype.cloneChildNodes=function(A,e,t){for(var r=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if((0,B.isElementNode)(n)&&(0,B.isSlotElement)(n)&&"function"==typeof n.assignedNodes){var o=n.assignedNodes();o.length&&o.forEach((function(A){return r.appendChildNode(e,A,t)}))}else this.appendChildNode(e,n,t)},A.prototype.cloneNode=function(A,t){if((0,B.isTextNode)(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&(0,B.isElementNode)(A)&&((0,B.isHTMLElementNode)(A)||(0,B.isSVGElementNode)(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var s=r.getComputedStyle(A),i=r.getComputedStyle(A,":before"),a=r.getComputedStyle(A,":after");this.referenceElement===A&&(0,B.isHTMLElementNode)(n)&&(this.clonedReferenceElement=n),(0,B.isBodyElement)(n)&&m(n);var l=this.counters.parse(new c.CSSParsedCounterDeclaration(this.context,s)),u=this.resolvePseudoContent(A,n,i,o.BEFORE);(0,B.isCustomElement)(A)&&(t=!0),(0,B.isVideoElement)(A)||this.cloneChildNodes(A,n,t),u&&n.insertBefore(u,n.firstChild);var g=this.resolvePseudoContent(A,n,a,o.AFTER);return g&&n.appendChild(g),this.counters.pop(l),(s&&(this.options.copyStyles||(0,B.isSVGElementNode)(A))&&!(0,B.isIFrameElement)(A)||t)&&(0,e.copyCSSStyles)(s,n),0===A.scrollTop&&0===A.scrollLeft||this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),((0,B.isTextareaElement)(A)||(0,B.isSelectElement)(A))&&((0,B.isTextareaElement)(n)||(0,B.isSelectElement)(n))&&(n.value=A.value),n}return A.cloneNode(!1)},A.prototype.resolvePseudoContent=function(A,t,r,n){var u=this;if(r){var g=r.content,Q=t.ownerDocument;if(Q&&g&&"normal"!==g&&"none"!==g&&"-moz-alt-content"!==g&&"none"!==r.display){this.counters.parse(new c.CSSParsedCounterDeclaration(this.context,r));var w=new c.CSSParsedPseudoDeclaration(this.context,r),C=Q.createElement("html2canvaspseudoelement");(0,e.copyCSSStyles)(r,C),w.content.forEach((function(e){if(0===e.type)C.appendChild(Q.createTextNode(e.value));else if(22===e.type){var t=Q.createElement("img");t.src=e.value,t.style.opacity="1",C.appendChild(t)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(s.isIdentToken);r.length&&C.appendChild(Q.createTextNode(A.getAttribute(r[0].value)||""))}else if("counter"===e.name){var n=e.values.filter(s.nonFunctionArgSeparator),o=n[0],B=n[1];if(o&&(0,s.isIdentToken)(o)){var c=u.counters.getCounterValue(o.value),g=B&&(0,s.isIdentToken)(B)?a.listStyleType.parse(u.context,B.value):3;C.appendChild(Q.createTextNode((0,i.createCounterText)(c,g,!1)))}}else if("counters"===e.name){var d=e.values.filter(s.nonFunctionArgSeparator),U=(o=d[0],d[1]);B=d[2];if(o&&(0,s.isIdentToken)(o)){var F=u.counters.getCounterValues(o.value),h=B&&(0,s.isIdentToken)(B)?a.listStyleType.parse(u.context,B.value):3,f=U&&0===U.type?U.value:"",p=F.map((function(A){return(0,i.createCounterText)(A,h,!1)})).join(f);C.appendChild(Q.createTextNode(p))}}}else if(20===e.type)switch(e.value){case"open-quote":C.appendChild(Q.createTextNode((0,l.getQuote)(w.quotes,u.quoteDepth++,!0)));break;case"close-quote":C.appendChild(Q.createTextNode((0,l.getQuote)(w.quotes,--u.quoteDepth,!1)));break;default:C.appendChild(Q.createTextNode(e.value))}})),C.className="".concat(H," ").concat(y);var d=n===o.BEFORE?" ".concat(H):" ".concat(y);return(0,B.isSVGElementNode)(t)?t.className.baseValue+=d:t.className+=d,C}}},A.destroy=function(A,e){var t=A.getElementById(e),r=document.getElementById(e),n=t||r;if(!n)return!1;try{n.src="about:blank",n.contentWindow&&(n.contentWindow.document.open(),n.contentWindow.document.write(""),n.contentWindow.document.close())}catch(A){}return!!n.parentNode&&(n.parentNode.removeChild(n),!0)},A}();e.DocumentCloner=Q,function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"}(o||(o={}));var w=0,C=function(A,e){var t=A.createElement("iframe"),r="html2canvas-iframe-".concat(w++);return t.setAttribute("id",r),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.style.width=e.width.toString()+"px",t.style.height=e.height.toString()+"px",t.scrolling="no",t.setAttribute(g,"true"),A.body.appendChild(t),t},d=function(A){return new Promise((function(e){A.complete?e():A.src?(A.onload=e,A.onerror=e):e()}))},U=function(A){return Promise.all([].slice.call(A.images,0).map(d))},F=function(A){return new Promise((function(e,t){var r=A.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var t=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(t),e(A))}),50)}}))},h=["all","d","content"];e.copyCSSStyles=function(A,e){for(var t=A.length-1;t>=0;t--){var r=A.item(t);-1===h.indexOf(r)&&e.style.setProperty(r,A.getPropertyValue(r))}return e};var f=function(A){var e="";return A&&(e+=""),e},p=function(A,e,t){A&&A.defaultView&&(e!==A.defaultView.pageXOffset||t!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(e,t)},E=function(A){var e=A[0],t=A[1],r=A[2];e.scrollLeft=t,e.scrollTop=r},H="___html2canvas___pseudoelement_before",y="___html2canvas___pseudoelement_after",I='{\n content: "" !important;\n display: none !important;\n}',m=function(A){v(A,".".concat(H).concat(":before").concat(I,"\n .").concat(y).concat(":after").concat(I))},v=function(A,e){var t=A.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,A.appendChild(r)}},b=function(A,e){var t,r=e.createElement("base");r.href=e.baseURI;var n=A.getElementsByTagName("head").item(0);null==n||n.insertBefore(r,null!==(t=null==n?void 0:n.firstChild)&&void 0!==t?t:null)}},4405:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ElementContainer=void 0;var r=t(9764),n=t(8110),o=t(4691),B=t(9123),s=function(A,e){this.context=A,this.textNodes=[],this.elements=[],this.flags=0,(0,B.isDebugging)(e,3),this.styles=new r.CSSParsedDeclaration(A,window.getComputedStyle(e,null)),(0,o.isHTMLElementNode)(e)&&(this.styles.animationDuration.some((function(A){return A>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=(0,n.parseBounds)(this.context,e),(0,B.isDebugging)(e,4)&&(this.flags|=16)};e.ElementContainer=s},1973:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.LIElementContainer=void 0;var o=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return n(e,A),e}(t(4405).ElementContainer);e.LIElementContainer=o},7297:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.OLElementContainer=void 0;var o=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return n(e,A),e}(t(4405).ElementContainer);e.OLElementContainer=o},9298:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.SelectElementContainer=void 0;var o=function(A){function e(e,t){var r=A.call(this,e,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return n(e,A),e}(t(4405).ElementContainer);e.SelectElementContainer=o},2276:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.TextareaElementContainer=void 0;var o=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.value=t.value,r}return n(e,A),e}(t(4405).ElementContainer);e.TextareaElementContainer=o},4691:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isCustomElement=e.isSlotElement=e.isSelectElement=e.isTextareaElement=e.isScriptElement=e.isStyleElement=e.isIFrameElement=e.isImageElement=e.isVideoElement=e.isCanvasElement=e.isBodyElement=e.isSVGForeignObjectElement=e.isSVGElement=e.isHTMLElement=e.isInputElement=e.isOLElement=e.isLIElement=e.isSVGElementNode=e.isHTMLElementNode=e.isElementNode=e.isTextNode=e.parseTree=void 0;var r=t(4405),n=t(1973),o=t(7297),B=t(9298),s=t(2276),i=t(6347),a=t(99),c=t(8296),l=t(6733),u=t(771),g=t(1374),Q=["OL","UL","MENU"],w=function(A,t,r,n){for(var o,B=t.firstChild,s=void 0;B;B=s)if(s=B.nextSibling,(0,e.isTextNode)(B)&&B.data.length>0){for(var i=void 0,a=B,c=0;c<3&&a;c++){if("U"===(null===(o=a.parentElement)||void 0===o?void 0:o.tagName)){i=!0;break}a=a.parentElement}var l=r.styles.textDecorationLine;if(i&&l)for(var u=0;u0}},6347:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasElementContainer=void 0;var o=function(A){function e(e,t){var r=A.call(this,e,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return n(e,A),e}(t(4405).ElementContainer);e.CanvasElementContainer=o},99:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.IFrameElementContainer=void 0;var o=t(4405),B=t(4691),s=t(5797),i=function(A){function e(e,t){var r=A.call(this,e,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||t.offsetWidth||0,r.height=parseInt(t.height,10)||t.offsetHeight||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=(0,B.parseTree)(e,t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?(0,s.parseColor)(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):s.COLORS.TRANSPARENT,o=t.contentWindow.document.body?(0,s.parseColor)(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):s.COLORS.TRANSPARENT;r.backgroundColor=(0,s.isTransparent)(n)?(0,s.isTransparent)(o)?r.styles.backgroundColor:o:n}}catch(A){}return r}return n(e,A),e}(o.ElementContainer);e.IFrameElementContainer=i},8296:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.ImageElementContainer=void 0;var o=t(4405),B=t(9143),s=function(A){function e(t,r){var n=A.call(this,t,r)||this;return n.intrinsicWidth=0,n.intrinsicHeight=0,n.isInlinedSvg=function(){return e.INLINED_SVG.test(n.src)},n.isSvg=function(){return e.SVG.test(n.src)},n.src=r.currentSrc||r.src,n.isSVG=n.isSvg()||n.isInlinedSvg(),n.context.cache.addImage(n.src),n}return n(e,A),e.prototype.setup=function(A){var t=this;return new Promise((function(r){if(t.isSvg())r();else if(t.isInlinedSvg()){var n=t.src.split(",")[1],o=(0,B.deserializeSvg)(n),s=o.width.baseVal,i=o.height.baseVal;e.IS_FIRE_FOX&&(s.valueAsString=s.value.toString(),i.valueAsString=i.value.toString(),A.src=(0,B.serializeSvg)(o,"base64")),t.intrinsicWidth=s.value,t.intrinsicHeight=i.value,r()}else t.intrinsicWidth=A.naturalWidth,t.intrinsicHeight=A.naturalHeight,t.intrinsicWidth&&t.intrinsicHeight?r():A.addEventListener("load",(function(e){t.intrinsicWidth=A.naturalWidth,t.intrinsicHeight=A.naturalHeight,r()}))}))},e.SVG=/\.svg(?:\?.*)?$/i,e.INLINED_SVG=/^data:image\/svg\+xml/i,e.IS_FIRE_FOX=/firefox/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),e}(o.ElementContainer);e.ImageElementContainer=s},6733:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(e,"__esModule",{value:!0}),e.InputElementContainer=e.INPUT_COLOR=e.PASSWORD=e.RADIO=e.CHECKBOX=void 0;var o=t(4405),B=t(8110),s=[{type:15,flags:0,unit:"px",number:3}],i=[{type:16,flags:0,number:50}];e.CHECKBOX="checkbox",e.RADIO="radio",e.PASSWORD="password",e.INPUT_COLOR=707406591;var a=function(A){function t(t,r){var n,o,a,c=A.call(this,t,r)||this;switch(c.type=r.type.toLowerCase(),c.checked=r.checked,c.value=0===(o=(n=r).type===e.PASSWORD?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":o,c.type!==e.CHECKBOX&&c.type!==e.RADIO||(c.styles.backgroundColor=3739148031,c.styles.borderTopColor=c.styles.borderRightColor=c.styles.borderBottomColor=c.styles.borderLeftColor=2779096575,c.styles.borderTopWidth=c.styles.borderRightWidth=c.styles.borderBottomWidth=c.styles.borderLeftWidth=1,c.styles.borderTopStyle=c.styles.borderRightStyle=c.styles.borderBottomStyle=c.styles.borderLeftStyle=1,c.styles.backgroundClip=[0],c.styles.backgroundOrigin=[0],c.bounds=(a=c.bounds).width>a.height?new B.Bounds(a.left+(a.width-a.height)/2,a.top,a.height,a.height):a.width{Object.defineProperty(e,"__esModule",{value:!0}),e.TextContainer=void 0;var r=t(8892),n=function(A,e,t){this.text=o(e.data,t.textTransform),this.textBounds=(0,r.parseTextBounds)(A,this.text,t,e)};e.TextContainer=n;var o=function(A,e){switch(e){case 1:return A.toLowerCase();case 3:return A.replace(B,s);case 2:return A.toUpperCase();default:return A}},B=/(^|\s|:|-|\(|\))([a-z])/g,s=function(A,e,t){return A.length>0?e+t.toUpperCase():A}},8156:function(A,e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(A){for(var e,t=1,r=arguments.length;t0&&n[n.length-1])||6!==s[0]&&2!==s[0])){B=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.calculateBackgroundRepeatPath=e.getBackgroundValueForIndex=e.calculateBackgroundSize=e.isAuto=e.calculateBackgroundRendering=e.calculateBackgroundPaintingArea=e.calculateBackgroundPositioningArea=void 0;var r=t(8569),n=t(2170),o=t(445),B=t(9535),s=t(8891);e.calculateBackgroundPositioningArea=function(A,e){return 0===A?e.bounds:2===A?(0,s.contentBox)(e):(0,s.paddingBox)(e)};e.calculateBackgroundPaintingArea=function(A,e){return 0===A?e.bounds:2===A?(0,s.contentBox)(e):(0,s.paddingBox)(e)};e.calculateBackgroundRendering=function(A,t,r){var n=(0,e.calculateBackgroundPositioningArea)((0,e.getBackgroundValueForIndex)(A.styles.backgroundOrigin,t),A),B=(0,e.calculateBackgroundPaintingArea)((0,e.getBackgroundValueForIndex)(A.styles.backgroundClip,t),A),s=(0,e.calculateBackgroundSize)((0,e.getBackgroundValueForIndex)(A.styles.backgroundSize,t),r,n),i=s[0],a=s[1],c=(0,o.getAbsoluteValueForTuple)((0,e.getBackgroundValueForIndex)(A.styles.backgroundPosition,t),n.width-i,n.height-a);return[(0,e.calculateBackgroundRepeatPath)((0,e.getBackgroundValueForIndex)(A.styles.backgroundRepeat,t),c,s,n,B),Math.round(n.left+c[0]),Math.round(n.top+c[1]),i=Math.max(1,i),a=Math.max(1,a)]};e.isAuto=function(A){return(0,B.isIdentToken)(A)&&A.value===r.BACKGROUND_SIZE.AUTO};var i=function(A){return"number"==typeof A};e.calculateBackgroundSize=function(A,t,n){var s=t[0],a=t[1],c=t[2],l=A[0],u=A[1];if(!l)return[0,0];if((0,o.isLengthPercentage)(l)&&u&&(0,o.isLengthPercentage)(u))return[(0,o.getAbsoluteValue)(l,n.width),(0,o.getAbsoluteValue)(u,n.height)];var g=i(c);if((0,B.isIdentToken)(l)&&(l.value===r.BACKGROUND_SIZE.CONTAIN||l.value===r.BACKGROUND_SIZE.COVER))return i(c)?n.width/n.height{Object.defineProperty(e,"__esModule",{value:!0}),e.isBezierCurve=e.BezierCurve=void 0;var r=t(2170),n=t(5338),o=function(A,e,t){return new r.Vector(A.x+(e.x-A.x)*t,A.y+(e.y-A.y)*t)},B=function(){function A(A,e,t,r){this.type=n.PathType.BEZIER_CURVE,this.start=A,this.startControl=e,this.endControl=t,this.end=r}return A.prototype.subdivide=function(e,t){var r=o(this.start,this.startControl,e),n=o(this.startControl,this.endControl,e),B=o(this.endControl,this.end,e),s=o(r,n,e),i=o(n,B,e),a=o(s,i,e);return t?new A(this.start,r,s,a):new A(a,i,B,this.end)},A.prototype.add=function(e,t){return new A(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}();e.BezierCurve=B;e.isBezierCurve=function(A){return A.type===n.PathType.BEZIER_CURVE}},339:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parsePathForBorderStroke=e.parsePathForBorderDoubleInner=e.parsePathForBorderDoubleOuter=e.parsePathForBorder=void 0;var r=t(5372);e.parsePathForBorder=function(A,e){switch(e){case 0:return o(A.topLeftBorderBox,A.topLeftPaddingBox,A.topRightBorderBox,A.topRightPaddingBox);case 1:return o(A.topRightBorderBox,A.topRightPaddingBox,A.bottomRightBorderBox,A.bottomRightPaddingBox);case 2:return o(A.bottomRightBorderBox,A.bottomRightPaddingBox,A.bottomLeftBorderBox,A.bottomLeftPaddingBox);default:return o(A.bottomLeftBorderBox,A.bottomLeftPaddingBox,A.topLeftBorderBox,A.topLeftPaddingBox)}};e.parsePathForBorderDoubleOuter=function(A,e){switch(e){case 0:return o(A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox,A.topRightBorderBox,A.topRightBorderDoubleOuterBox);case 1:return o(A.topRightBorderBox,A.topRightBorderDoubleOuterBox,A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox);case 2:return o(A.bottomRightBorderBox,A.bottomRightBorderDoubleOuterBox,A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox);default:return o(A.bottomLeftBorderBox,A.bottomLeftBorderDoubleOuterBox,A.topLeftBorderBox,A.topLeftBorderDoubleOuterBox)}};e.parsePathForBorderDoubleInner=function(A,e){switch(e){case 0:return o(A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox,A.topRightBorderDoubleInnerBox,A.topRightPaddingBox);case 1:return o(A.topRightBorderDoubleInnerBox,A.topRightPaddingBox,A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox);case 2:return o(A.bottomRightBorderDoubleInnerBox,A.bottomRightPaddingBox,A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox);default:return o(A.bottomLeftBorderDoubleInnerBox,A.bottomLeftPaddingBox,A.topLeftBorderDoubleInnerBox,A.topLeftPaddingBox)}};e.parsePathForBorderStroke=function(A,e){switch(e){case 0:return n(A.topLeftBorderStroke,A.topRightBorderStroke);case 1:return n(A.topRightBorderStroke,A.bottomRightBorderStroke);case 2:return n(A.bottomRightBorderStroke,A.bottomLeftBorderStroke);default:return n(A.bottomLeftBorderStroke,A.topLeftBorderStroke)}};var n=function(A,e){var t=[];return(0,r.isBezierCurve)(A)?t.push(A.subdivide(.5,!1)):t.push(A),(0,r.isBezierCurve)(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},o=function(A,e,t,n){var o=[];return(0,r.isBezierCurve)(A)?o.push(A.subdivide(.5,!1)):o.push(A),(0,r.isBezierCurve)(t)?o.push(t.subdivide(.5,!0)):o.push(t),(0,r.isBezierCurve)(n)?o.push(n.subdivide(.5,!0).reverse()):o.push(n),(0,r.isBezierCurve)(e)?o.push(e.subdivide(.5,!1).reverse()):o.push(e),o}},7074:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePaddingBoxPath=e.calculateContentBoxPath=e.calculateBorderBoxPath=e.BoundCurves=void 0;var r,n=t(445),o=t(2170),B=t(5372),s=function(A){var e=A.styles,t=A.bounds,B=(0,n.getAbsoluteValueForTuple)(e.borderTopLeftRadius,t.width,t.height),s=B[0],a=B[1],c=(0,n.getAbsoluteValueForTuple)(e.borderTopRightRadius,t.width,t.height),l=c[0],u=c[1],g=(0,n.getAbsoluteValueForTuple)(e.borderBottomRightRadius,t.width,t.height),Q=g[0],w=g[1],C=(0,n.getAbsoluteValueForTuple)(e.borderBottomLeftRadius,t.width,t.height),d=C[0],U=C[1],F=[];F.push((s+l)/t.width),F.push((d+Q)/t.width),F.push((a+U)/t.height),F.push((u+w)/t.height);var h=Math.max.apply(Math,F);h>1&&(s/=h,a/=h,l/=h,u/=h,Q/=h,w/=h,d/=h,U/=h);var f=t.width-l,p=t.height-w,E=t.width-Q,H=t.height-U,y=e.borderTopWidth,I=e.borderRightWidth,m=e.borderBottomWidth,v=e.borderLeftWidth,b=(0,n.getAbsoluteValue)(e.paddingTop,A.bounds.width),K=(0,n.getAbsoluteValue)(e.paddingRight,A.bounds.width),L=(0,n.getAbsoluteValue)(e.paddingBottom,A.bounds.width),S=(0,n.getAbsoluteValue)(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||a>0?i(t.left+v/3,t.top+y/3,s-v/3,a-y/3,r.TOP_LEFT):new o.Vector(t.left+v/3,t.top+y/3),this.topRightBorderDoubleOuterBox=s>0||a>0?i(t.left+f,t.top+y/3,l-I/3,u-y/3,r.TOP_RIGHT):new o.Vector(t.left+t.width-I/3,t.top+y/3),this.bottomRightBorderDoubleOuterBox=Q>0||w>0?i(t.left+E,t.top+p,Q-I/3,w-m/3,r.BOTTOM_RIGHT):new o.Vector(t.left+t.width-I/3,t.top+t.height-m/3),this.bottomLeftBorderDoubleOuterBox=d>0||U>0?i(t.left+v/3,t.top+H,d-v/3,U-m/3,r.BOTTOM_LEFT):new o.Vector(t.left+v/3,t.top+t.height-m/3),this.topLeftBorderDoubleInnerBox=s>0||a>0?i(t.left+2*v/3,t.top+2*y/3,s-2*v/3,a-2*y/3,r.TOP_LEFT):new o.Vector(t.left+2*v/3,t.top+2*y/3),this.topRightBorderDoubleInnerBox=s>0||a>0?i(t.left+f,t.top+2*y/3,l-2*I/3,u-2*y/3,r.TOP_RIGHT):new o.Vector(t.left+t.width-2*I/3,t.top+2*y/3),this.bottomRightBorderDoubleInnerBox=Q>0||w>0?i(t.left+E,t.top+p,Q-2*I/3,w-2*m/3,r.BOTTOM_RIGHT):new o.Vector(t.left+t.width-2*I/3,t.top+t.height-2*m/3),this.bottomLeftBorderDoubleInnerBox=d>0||U>0?i(t.left+2*v/3,t.top+H,d-2*v/3,U-2*m/3,r.BOTTOM_LEFT):new o.Vector(t.left+2*v/3,t.top+t.height-2*m/3),this.topLeftBorderStroke=s>0||a>0?i(t.left+v/2,t.top+y/2,s-v/2,a-y/2,r.TOP_LEFT):new o.Vector(t.left+v/2,t.top+y/2),this.topRightBorderStroke=s>0||a>0?i(t.left+f,t.top+y/2,l-I/2,u-y/2,r.TOP_RIGHT):new o.Vector(t.left+t.width-I/2,t.top+y/2),this.bottomRightBorderStroke=Q>0||w>0?i(t.left+E,t.top+p,Q-I/2,w-m/2,r.BOTTOM_RIGHT):new o.Vector(t.left+t.width-I/2,t.top+t.height-m/2),this.bottomLeftBorderStroke=d>0||U>0?i(t.left+v/2,t.top+H,d-v/2,U-m/2,r.BOTTOM_LEFT):new o.Vector(t.left+v/2,t.top+t.height-m/2),this.topLeftBorderBox=s>0||a>0?i(t.left,t.top,s,a,r.TOP_LEFT):new o.Vector(t.left,t.top),this.topRightBorderBox=l>0||u>0?i(t.left+f,t.top,l,u,r.TOP_RIGHT):new o.Vector(t.left+t.width,t.top),this.bottomRightBorderBox=Q>0||w>0?i(t.left+E,t.top+p,Q,w,r.BOTTOM_RIGHT):new o.Vector(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=d>0||U>0?i(t.left,t.top+H,d,U,r.BOTTOM_LEFT):new o.Vector(t.left,t.top+t.height),this.topLeftPaddingBox=s>0||a>0?i(t.left+v,t.top+y,Math.max(0,s-v),Math.max(0,a-y),r.TOP_LEFT):new o.Vector(t.left+v,t.top+y),this.topRightPaddingBox=l>0||u>0?i(t.left+Math.min(f,t.width-I),t.top+y,f>t.width+I?0:Math.max(0,l-I),Math.max(0,u-y),r.TOP_RIGHT):new o.Vector(t.left+t.width-I,t.top+y),this.bottomRightPaddingBox=Q>0||w>0?i(t.left+Math.min(E,t.width-v),t.top+Math.min(p,t.height-m),Math.max(0,Q-I),Math.max(0,w-m),r.BOTTOM_RIGHT):new o.Vector(t.left+t.width-I,t.top+t.height-m),this.bottomLeftPaddingBox=d>0||U>0?i(t.left+v,t.top+Math.min(H,t.height-m),Math.max(0,d-v),Math.max(0,U-m),r.BOTTOM_LEFT):new o.Vector(t.left+v,t.top+t.height-m),this.topLeftContentBox=s>0||a>0?i(t.left+v+S,t.top+y+b,Math.max(0,s-(v+S)),Math.max(0,a-(y+b)),r.TOP_LEFT):new o.Vector(t.left+v+S,t.top+y+b),this.topRightContentBox=l>0||u>0?i(t.left+Math.min(f,t.width+v+S),t.top+y+b,f>t.width+v+S?0:l-v+S,u-(y+b),r.TOP_RIGHT):new o.Vector(t.left+t.width-(I+K),t.top+y+b),this.bottomRightContentBox=Q>0||w>0?i(t.left+Math.min(E,t.width-(v+S)),t.top+Math.min(p,t.height+y+b),Math.max(0,Q-(I+K)),w-(m+L),r.BOTTOM_RIGHT):new o.Vector(t.left+t.width-(I+K),t.top+t.height-(m+L)),this.bottomLeftContentBox=d>0||U>0?i(t.left+v+S,t.top+H,Math.max(0,d-(v+S)),U-(m+L),r.BOTTOM_LEFT):new o.Vector(t.left+v+S,t.top+t.height-(m+L))};e.BoundCurves=s,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"}(r||(r={}));var i=function(A,e,t,n,s){var i=(Math.sqrt(2)-1)/3*4,a=t*i,c=n*i,l=A+t,u=e+n;switch(s){case r.TOP_LEFT:return new B.BezierCurve(new o.Vector(A,u),new o.Vector(A,u-c),new o.Vector(l-a,e),new o.Vector(l,e));case r.TOP_RIGHT:return new B.BezierCurve(new o.Vector(A,e),new o.Vector(A+a,e),new o.Vector(l,u-c),new o.Vector(l,u));case r.BOTTOM_RIGHT:return new B.BezierCurve(new o.Vector(l,e),new o.Vector(l,e+c),new o.Vector(A+a,u),new o.Vector(A,u));case r.BOTTOM_LEFT:default:return new B.BezierCurve(new o.Vector(l,u),new o.Vector(l-a,u),new o.Vector(A,e+c),new o.Vector(A,e))}};e.calculateBorderBoxPath=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]};e.calculateContentBoxPath=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]};e.calculatePaddingBoxPath=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]}},8891:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentBox=e.paddingBox=void 0;var r=t(445);e.paddingBox=function(A){var e=A.bounds,t=A.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))};e.contentBox=function(A){var e=A.styles,t=A.bounds,n=(0,r.getAbsoluteValue)(e.paddingLeft,t.width),o=(0,r.getAbsoluteValue)(e.paddingRight,t.width),B=(0,r.getAbsoluteValue)(e.paddingTop,t.width),s=(0,r.getAbsoluteValue)(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+o),-(e.borderTopWidth+e.borderBottomWidth+B+s))}},9314:function(A,e,t){var r,n=this&&this.__extends||(r=function(A,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])},r(A,e)},function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=A}r(A,e),A.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),o=this&&this.__awaiter||function(A,e,t,r){return new(t||(t=Promise))((function(n,o){function B(A){try{i(r.next(A))}catch(A){o(A)}}function s(A){try{i(r.throw(A))}catch(A){o(A)}}function i(A){var e;A.done?n(A.value):(e=A.value,e instanceof t?e:new t((function(A){A(e)}))).then(B,s)}i((r=r.apply(A,e||[])).next())}))},B=this&&this.__generator||function(A,e){var t,r,n,o,B={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(i){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(B=0)),B;)try{if(t=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return B.label++,{value:s[1],done:!1};case 5:B.label++,r=s[1],s=[0];continue;case 7:s=B.ops.pop(),B.trys.pop();continue;default:if(!(n=B.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){B=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]0&&A.intrinsicHeight>0,n=A instanceof p.SVGElementContainer||A instanceof h.ImageElementContainer&&A.isSVG;if(r||n){var o=(0,m.contentBox)(A),B=(0,I.calculatePaddingBoxPath)(e);this.path(B);var s=(0,K.calculateObjectFitBounds)(A.styles.objectFit,A.intrinsicWidth,A.intrinsicHeight,o.width,o.height),i=s.src,a=s.dest;this.ctx.save(),this.ctx.clip(),r?this.ctx.drawImage(t,i.left,i.top,i.width,i.height,o.left+a.left,o.top+a.top,a.width,a.height):this.ctx.drawImage(t,o.left,o.top,o.width,o.height),this.ctx.restore()}}},e.prototype.renderNodeContent=function(A){return o(this,void 0,void 0,(function(){var t,r,n,o,l,g,Q,C,d,E,H,y,I,v,b,K,L,S,D;return B(this,(function(B){switch(B.label){case 0:this.applyEffects(A.getEffects(4)),t=A.container,r=A.curves,n=t.styles,o=0,l=t.textNodes,B.label=1;case 1:return o0&&n.height>0&&(s=(0,E.calculateBackgroundRendering)(A,e,[n.width,n.height,n.width/n.height]),y=s[0],L=s[1],S=s[2],v=s[3],b=s[4],p=r.ctx.createPattern(r.resizeImage(n,v,b),"repeat"),r.renderRepeat(y,p,L,S)),[3,6];case 5:(0,Q.isLinearGradient)(t)?(i=(0,E.calculateBackgroundRendering)(A,e,[null,null,null]),y=i[0],L=i[1],S=i[2],v=i[3],b=i[4],a=(0,g.calculateGradientDirection)(t.angle,v,b),c=a[0],l=a[1],C=a[2],d=a[3],U=a[4],(F=document.createElement("canvas")).width=Math.max(1,v),F.height=Math.max(1,b),h=F.getContext("2d"),f=h.createLinearGradient(l,d,C,U),(0,g.processColorStops)(t.stops,c||1).forEach((function(A){return f.addColorStop(A.stop,(0,u.asString)(A.color))})),h.fillStyle=f,h.fillRect(0,0,v,b),v>0&&b>0&&(p=r.ctx.createPattern(F,"repeat"),r.renderRepeat(y,p,L,S))):(0,Q.isRadialGradient)(t)&&(H=(0,E.calculateBackgroundRendering)(A,e,[null,null,null]),y=H[0],I=H[1],m=H[2],v=H[3],b=H[4],K=0===t.position.length?[w.FIFTY_PERCENT]:t.position,L=(0,w.getAbsoluteValue)(K[0],v),S=(0,w.getAbsoluteValue)(K[K.length-1],b),D=(0,g.calculateRadius)(t,L,S,v,b),T=D[0],O=D[1],T>0&&O>0&&(x=r.ctx.createRadialGradient(I+L,m+S,0,I+L,m+S,T),(0,g.processColorStops)(t.stops,2*T).forEach((function(A){return x.addColorStop(A.stop,(0,u.asString)(A.color))})),r.path(y),r.ctx.fillStyle=x,T!==O?(M=A.bounds.left+.5*A.bounds.width,V=A.bounds.top+.5*A.bounds.height,P=1/(G=O/T),r.ctx.save(),r.ctx.translate(M,V),r.ctx.transform(1,0,0,G,0,0),r.ctx.translate(-M,-V),r.ctx.fillRect(I,P*(m-V)+V,v,b*P),r.ctx.restore()):r.ctx.fill())),B.label=6;case 6:return e--,[2]}}))},r=this,n=0,o=A.styles.backgroundImage.slice(0).reverse(),i.label=1;case 1:return n0?2!==C.style?[3,5]:[4,this.renderDashedDottedBorder(C.color,C.width,g,A.curves,2)]:[3,11]:[3,13];case 4:return B.sent(),[3,11];case 5:return 3!==C.style?[3,7]:[4,this.renderDashedDottedBorder(C.color,C.width,g,A.curves,3)];case 6:return B.sent(),[3,11];case 7:return 4!==C.style?[3,9]:[4,this.renderDoubleBorder(C.color,C.width,g,A.curves)];case 8:return B.sent(),[3,11];case 9:return[4,this.renderSolidBorder(C.color,g,A.curves)];case 10:B.sent(),B.label=11;case 11:g++,B.label=12;case 12:return Q++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(A,e,t,r,n){return o(this,void 0,void 0,(function(){var o,s,i,a,c,l,g,Q,w,C,d,U,F,h,f,p;return B(this,(function(B){return this.ctx.save(),o=(0,y.parsePathForBorderStroke)(r,t),s=(0,y.parsePathForBorder)(r,t),2===n&&(this.path(s),this.ctx.clip()),(0,H.isBezierCurve)(s[0])?(i=s[0].start.x,a=s[0].start.y):(i=s[0].x,a=s[0].y),(0,H.isBezierCurve)(s[1])?(c=s[1].end.x,l=s[1].end.y):(c=s[1].x,l=s[1].y),g=0===t||2===t?Math.abs(i-c):Math.abs(a-l),this.ctx.beginPath(),3===n?this.formatPath(o):this.formatPath(s.slice(0,2)),Q=e<3?3*e:2*e,w=e<3?2*e:e,3===n&&(Q=e,w=e),C=!0,g<=2*Q?C=!1:g<=2*Q+w?(Q*=d=g/(2*Q+w),w*=d):(U=Math.floor((g+w)/(Q+w)),F=(g-U*Q)/(U-1),w=(h=(g-(U+1)*Q)/U)<=0||Math.abs(w-F)0&&n[n.length-1])||6!==s[0]&&2!==s[0])){B=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]{Object.defineProperty(e,"__esModule",{value:!0}),e.isOpacityEffect=e.isClipEffect=e.isTransformEffect=e.OpacityEffect=e.ClipEffect=e.TransformEffect=void 0;var t=function(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6};e.TransformEffect=t;var r=function(A,e){this.path=A,this.target=e,this.type=1};e.ClipEffect=r;var n=function(A){this.opacity=A,this.type=2,this.target=6};e.OpacityEffect=n;e.isTransformEffect=function(A){return 0===A.type};e.isClipEffect=function(A){return 1===A.type};e.isOpacityEffect=function(A){return 2===A.type}},3808:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FontMetrics=void 0;var r=t(1508),n="Hidden Text",o=function(){function A(A){this._data={},this._document=A}return A.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),o=this._document.createElement("img"),B=this._document.createElement("span"),s=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",s.appendChild(t),o.src=r.SMALL_IMAGE,o.width=1,o.height=1,o.style.margin="0",o.style.padding="0",o.style.verticalAlign="baseline",B.style.fontFamily=A,B.style.fontSize=e,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(n)),t.appendChild(B),t.appendChild(o);var i=o.offsetTop-B.offsetTop+2;t.removeChild(B),t.appendChild(this._document.createTextNode(n)),t.style.lineHeight="normal",o.style.verticalAlign="super";var a=o.offsetTop-t.offsetTop+2;return s.removeChild(t),{baseline:i,middle:a}},A.prototype.getMetrics=function(A,e){var t="".concat(A," ").concat(e);return void 0===this._data[t]&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},A}();e.FontMetrics=o},4176:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.calculateObjectFitBounds=void 0;var r=t(8110);e.calculateObjectFitBounds=function(A,e,t,n,o){var B,s,i,a,c,l,u,g,Q=e/t,w=n/o,C=.5,d=.5;switch("scale-down"===A&&(A=e{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.reversePath=e.transformPath=e.equalPath=e.PathType=void 0,function(A){A[A.VECTOR=0]="VECTOR",A[A.BEZIER_CURVE=1]="BEZIER_CURVE"}(t||(e.PathType=t={}));e.equalPath=function(A,e){return A.length===e.length&&A.some((function(A,t){return A===e[t]}))};e.transformPath=function(A,e,t,r,n){return A.map((function(A,o){switch(o){case 0:return A.add(e,t);case 1:return A.add(e+r,t);case 2:return A.add(e+r,t+n);case 3:return A.add(e,t+n)}return A}))};e.reversePath=function(A){return A.slice(0).reverse().map((function(A){return A.reverse()}))}},4602:(A,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Renderer=void 0;var t=function(A,e){this.context=A,this.options=e};e.Renderer=t},3523:(A,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseStackingContexts=e.ElementPaint=e.StackingContext=void 0;var r=t(9085),n=t(6608),o=t(1973),B=t(7297),s=t(7074),i=t(3251),a=t(5338),c=function(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]};e.StackingContext=c;var l=function(){function A(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new s.BoundCurves(this.container),this.container.styles.opacity<1&&this.effects.push(new i.OpacityEffect(this.container.styles.opacity)),null!==this.container.styles.transform){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new i.TransformEffect(t,r,n))}if(0!==this.container.styles.overflowX){var o=(0,s.calculateBorderBoxPath)(this.curves),B=(0,s.calculatePaddingBoxPath)(this.curves);(0,a.equalPath)(o,B)?this.effects.push(new i.ClipEffect(o,6)):(this.effects.push(new i.ClipEffect(o,2)),this.effects.push(new i.ClipEffect(B,4)))}}return A.prototype.getEffects=function(A){for(var e=-1===[2,3].indexOf(this.container.styles.position),t=this.parent,n=this.effects.slice(0);t;){var o=t.effects.filter((function(A){return!(0,i.isClipEffect)(A)}));if((e||0!==t.container.styles.position||!t.parent)&&(e=-1===[2,3].indexOf(t.container.styles.position),0!==t.container.styles.overflowX)){var B=(0,s.calculateBorderBoxPath)(t.curves),c=(0,s.calculatePaddingBoxPath)(t.curves);(0,a.equalPath)(B,c)||n.unshift(new i.ClipEffect(c,6))}n.unshift.apply(n,o),t=t.parent}return n.filter((function(e){return(0,r.contains)(e.target,A)}))},A}();e.ElementPaint=l;var u=function(A,e,t,n){A.container.elements.forEach((function(o){var B=(0,r.contains)(o.flags,4),s=(0,r.contains)(o.flags,2),i=new l(o,A);(0,r.contains)(o.styles.display,2048)&&n.push(i);var a=(0,r.contains)(o.flags,8)?[]:n;if(B||s){var Q=B||o.styles.isPositioned()?t:e,w=new c(i);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var C=o.styles.zIndex.order;if(C<0){var d=0;Q.negativeZIndex.some((function(A,e){return C>A.element.container.styles.zIndex.order?(d=e,!1):d>0})),Q.negativeZIndex.splice(d,0,w)}else if(C>0){var U=0;Q.positiveZIndex.some((function(A,e){return C>=A.element.container.styles.zIndex.order?(U=e+1,!1):U>0})),Q.positiveZIndex.splice(U,0,w)}else Q.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else o.styles.isFloating()?Q.nonPositionedFloats.push(w):Q.nonPositionedInlineLevel.push(w);u(i,w,B?w:t,a)}else o.styles.isInlineLevel()?e.inlineLevel.push(i):e.nonInlineLevel.push(i),u(i,e,t,a);(0,r.contains)(o.flags,8)&&g(o,a)}))},g=function(A,e){for(var t=A instanceof B.OLElementContainer?A.start:1,r=A instanceof B.OLElementContainer&&A.reversed,s=0;s{Object.defineProperty(e,"__esModule",{value:!0}),e.isVector=e.Vector=void 0;var r=t(5338),n=function(){function A(A,e){this.type=r.PathType.VECTOR,this.x=A,this.y=e}return A.prototype.add=function(e,t){return new A(this.x+e,this.y+t)},A.prototype.reverse=function(){return this},A}();e.Vector=n;e.isVector=function(A){return A.type===r.PathType.VECTOR}}},e={};function t(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return A[r].call(o.exports,o,o.exports,t),o.exports}t.d=(A,e)=>{for(var r in e)t.o(e,r)&&!t.o(A,r)&&Object.defineProperty(A,r,{enumerable:!0,get:e[r]})},t.o=(A,e)=>Object.prototype.hasOwnProperty.call(A,e),t.r=A=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})};var r=t(8156);return r=r.default})())); //# sourceMappingURL=main.js.map