/*! For license information please see html2pdf.bundle.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("html2pdf",[],t):"object"==typeof exports?exports.html2pdf=t():e.html2pdf=t()}(self,function(){return function(){var e,t,A={"./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":function(e,t,A){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var A=0,r=Array(t);A0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return(0,r.default)(function*(){var t=yield fetch(e),A=yield t.blob();return yield createImageBitmap(A)})()}};return"undefined"==typeof DOMParser&&void 0!==e||Reflect.deleteProperty(t,"DOMParser"),t},node:function(e){var{DOMParser:t,canvas:A,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:A.createCanvas,createImage:A.loadImage}}});function c(e){return e.replace(/(?!\u3000)\s+/gm," ")}function u(e){return e.replace(/^[\n \t]+/,"")}function h(e){return e.replace(/[\n \t]+$/,"")}function d(e){return((e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var f=/^[A-Z-]+$/;function p(e){return f.test(e)?e.toLowerCase():e}function g(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function m(e){if(!e.startsWith("rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(e,A)=>t--&&A?String(Math.round(parseFloat(e))):e)}var w=/(\[[^\]]+\])/g,B=/(#[^\s+>~.[:]+)/g,y=/(\.[^\s+>~.[:]+)/g,v=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,b=/(:[\w-]+\([^)]*\))/gi,C=/(:[^\s+>~.[:]+)/g,_=/([^\s+>~.[:]+)/g;function j(e,t){var A=t.exec(e);return A?[e.replace(t," "),A.length]:[e,0]}function x(e){var t=[0,0,0],A=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[A,r]=j(A,w),t[1]+=r,[A,r]=j(A,B),t[0]+=r,[A,r]=j(A,y),t[1]+=r,[A,r]=j(A,v),t[2]+=r,[A,r]=j(A,b),t[1]+=r,[A,r]=j(A,C),t[1]+=r,A=A.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[A,r]=j(A,_),t[2]+=r,t.join("")}var F=1e-8;function Q(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function U(e,t){return(e[0]*t[0]+e[1]*t[1])/(Q(e)*Q(t))}function E(e,t){return(e[0]*t[1]0&&void 0!==arguments[0]?arguments[0]:" ",{document:t,name:A}=this;return c(this.getString()).trim().split(e).map(e=>new T(t,A,e))}hasValue(e){var{value:t}=this;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t}isString(e){var{value:t}=this,A="string"==typeof t;return A&&e?e.test(t):A}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return void 0===e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var{value:t}=this,A=parseFloat(t);return this.isString(/%$/)&&(A/=100),A}getString(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=m(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[A,r]="boolean"==typeof e?[void 0,e]:[e],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(A);default:var s=this.getNumber();return t&&s<1?s*n.computeSize(A):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}getFillStyleDefinition(e,t){var A=this.getDefinition();if(!A)return null;if("function"==typeof A.createGradient)return A.createGradient(this.document.ctx,e,t);if("function"==typeof A.createPattern){if(A.getHrefAttribute().hasValue()){var r=A.getAttribute("patternTransform");A=A.getHrefAttribute().getDefinition(),r.hasValue()&&A.getAttribute("patternTransform",!0).setValue(r.value)}return A.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?T.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),A=t.length,r=0,n=0;n1&&void 0!==arguments[1]?arguments[1]:0,[A=t,r=t]=d(e);return new M(A,r)}static parseScale(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[A=t,r=A]=d(e);return new M(A,r)}static parsePath(e){for(var t=d(e),A=t.length,r=[],n=0;n0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:A}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=""),t.forEach((e,t)=>{for(var{run:r}=e,n=A[t];n;)r(n),n=n.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(this.working&&t){var{events:A,eventElements:r}=this;A.forEach((A,n)=>{var{x:s,y:i}=A;!r[n]&&t.isPointInPath&&t.isPointInPath(s,i)&&(r[n]=e)})}}checkBoundingBox(e,t){if(this.working&&t){var{events:A,eventElements:r}=this;A.forEach((A,n)=>{var{x:s,y:i}=A;!r[n]&&t.isPointInBox(s,i)&&(r[n]=e)})}}mapXY(e,t){for(var{window:A,ctx:r}=this.screen,n=new M(e,t),s=r.canvas;s;)n.x-=s.offsetLeft,n.y-=s.offsetTop,s=s.offsetParent;return A.scrollX&&(n.x+=A.scrollX),A.scrollY&&(n.y+=A.scrollY),n}onClick(e){var{x:t,y:A}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:A,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:A}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:A,run(e){e.onMouseMove&&e.onMouseMove()}})}}var R="undefined"!=typeof window?window:null,K="undefined"!=typeof fetch?fetch.bind(void 0):null;class V{constructor(e){var{fetch:t=K,window:A=R}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new O,this.mouse=new D(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=A,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:t,ctx:A,aspectRatio:r,width:n,desiredWidth:s,height:i,desiredHeight:o,minX:a=0,minY:l=0,refX:u,refY:h,clip:d=!1,clipX:f=0,clipY:p=0}=e,g=c(r).replace(/^defer\s/,""),[m,w]=g.split(" "),B=m||"xMidYMid",y=w||"meet",v=n/s,b=i/o,C=Math.min(v,b),_=Math.max(v,b),j=s,x=o;"meet"===y&&(j*=C,x*=C),"slice"===y&&(j*=_,x*=_);var F=new T(t,"refX",u),Q=new T(t,"refY",h),U=F.hasValue()&&Q.hasValue();if(U&&A.translate(-C*F.getPixels("x"),-C*Q.getPixels("y")),d){var E=C*f,S=C*p;A.beginPath(),A.moveTo(E,S),A.lineTo(n,S),A.lineTo(n,i),A.lineTo(E,i),A.closePath(),A.clip()}if(!U){var L="meet"===y&&C===b,I="slice"===y&&_===b,N="meet"===y&&C===v,k="slice"===y&&_===v;B.startsWith("xMid")&&(L||I)&&A.translate(n/2-j/2,0),B.endsWith("YMid")&&(N||k)&&A.translate(0,i/2-x/2),B.startsWith("xMax")&&(L||I)&&A.translate(n-j,0),B.endsWith("YMax")&&(N||k)&&A.translate(0,i-x)}switch(!0){case"none"===B:A.scale(v,b);break;case"meet"===y:A.scale(C,C);break;case"slice"===y:A.scale(_,_)}A.translate(-a,-l)}start(e){var{enableRedraw:t=!1,ignoreMouse:A=!1,ignoreAnimation:r=!1,ignoreDimensions:n=!1,ignoreClear:i=!1,forceRedraw:o,scaleWidth:a,scaleHeight:l,offsetX:c,offsetY:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:h,mouse:d}=this,f=1e3/h;if(this.frameDuration=f,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,n,i,a,l,c,u),t){var p=Date.now(),g=p,m=0,w=()=>{p=Date.now(),(m=p-g)>=f&&(g=p-m%f,this.shouldUpdate(r,o)&&(this.render(e,n,i,a,l,c,u),d.runEvents())),this.intervalId=s(w)};A||d.start(),this.intervalId=s(w)}}stop(){this.intervalId&&(s.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:A}=this;if(this.animations.reduce((e,t)=>t.update(A)||e,!1))return!0}return!("function"!=typeof t||!t())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}render(e,t,A,r,n,s,i){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:a,viewPort:l,ctx:c,isFirstRender:u}=this,h=c.canvas;l.clear(),h.width&&h.height?l.setCurrent(h.width,h.height):l.setCurrent(o,a);var f=e.getStyle("width"),p=e.getStyle("height");!t&&(u||"number"!=typeof r&&"number"!=typeof n)&&(f.hasValue()&&(h.width=f.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),p.hasValue()&&(h.height=p.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var g=h.clientWidth||h.width,m=h.clientHeight||h.height;if(t&&f.hasValue()&&p.hasValue()&&(g=f.getPixels("x"),m=p.getPixels("y")),l.setCurrent(g,m),"number"==typeof s&&e.getAttribute("x",!0).setValue(s),"number"==typeof i&&e.getAttribute("y",!0).setValue(i),"number"==typeof r||"number"==typeof n){var w=d(e.getAttribute("viewBox").getString()),B=0,y=0;if("number"==typeof r){var v=e.getStyle("width");v.hasValue()?B=v.getPixels("x")/r:isNaN(w[2])||(B=w[2]/r)}if("number"==typeof n){var b=e.getStyle("height");b.hasValue()?y=b.getPixels("y")/n:isNaN(w[3])||(y=w[3]/n)}B||(B=y),y||(y=B),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(n);var C=e.getStyle("transform",!0,!0);C.setValue("".concat(C.getString()," scale(").concat(1/B,", ").concat(1/y,")"))}A||c.clearRect(0,0,g,m),e.render(c),u&&(this.isFirstRender=!1)}}V.defaultWindow=R,V.defaultFetch=K;var{defaultFetch:G}=V,z="undefined"!=typeof DOMParser?DOMParser:null;class q{constructor(){var{fetch:e=G,DOMParser:t=z}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return(0,r.default)(function*(){return e.startsWith("<")?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(A){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}load(e){var t=this;return(0,r.default)(function*(){var A=yield t.fetch(e),r=yield A.text();return t.parseFromString(r)})()}}class W{constructor(e,t){this.type="translate",this.point=null,this.point=M.parse(t)}apply(e){var{x:t,y:A}=this.point;e.translate(t||0,A||0)}unapply(e){var{x:t,y:A}=this.point;e.translate(-1*t||0,-1*A||0)}applyToPoint(e){var{x:t,y:A}=this.point;e.applyTransform([1,0,0,1,t||0,A||0])}}class X{constructor(e,t,A){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=d(t);this.angle=new T(e,"angle",r[0]),this.originX=A[0],this.originY=A[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:A,originX:r,originY:n,angle:s}=this,i=t+r.getPixels("x"),o=A+n.getPixels("y");e.translate(i,o),e.rotate(s.getRadians()),e.translate(-i,-o)}unapply(e){var{cx:t,cy:A,originX:r,originY:n,angle:s}=this,i=t+r.getPixels("x"),o=A+n.getPixels("y");e.translate(i,o),e.rotate(-1*s.getRadians()),e.translate(-i,-o)}applyToPoint(e){var{cx:t,cy:A,angle:r}=this,n=r.getRadians();e.applyTransform([1,0,0,1,t||0,A||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-A||0])}}class Y{constructor(e,t,A){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var r=M.parseScale(t);0!==r.x&&0!==r.y||(r.x=F,r.y=F),this.scale=r,this.originX=A[0],this.originY=A[1]}apply(e){var{scale:{x:t,y:A},originX:r,originY:n}=this,s=r.getPixels("x"),i=n.getPixels("y");e.translate(s,i),e.scale(t,A||t),e.translate(-s,-i)}unapply(e){var{scale:{x:t,y:A},originX:r,originY:n}=this,s=r.getPixels("x"),i=n.getPixels("y");e.translate(s,i),e.scale(1/t,1/A||t),e.translate(-s,-i)}applyToPoint(e){var{x:t,y:A}=this.scale;e.applyTransform([t||0,0,0,A||0,0,0])}}class J{constructor(e,t,A){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=d(t),this.originX=A[0],this.originY=A[1]}apply(e){var{originX:t,originY:A,matrix:r}=this,n=t.getPixels("x"),s=A.getPixels("y");e.translate(n,s),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-n,-s)}unapply(e){var{originX:t,originY:A,matrix:r}=this,n=r[0],s=r[2],i=r[4],o=r[1],a=r[3],l=r[5],c=1/(n*(1*a-0*l)-s*(1*o-0*l)+i*(0*o-0*a)),u=t.getPixels("x"),h=A.getPixels("y");e.translate(u,h),e.transform(c*(1*a-0*l),c*(0*l-1*o),c*(0*i-1*s),c*(1*n-0*i),c*(s*l-i*a),c*(i*o-n*l)),e.translate(-u,-h)}applyToPoint(e){e.applyTransform(this.matrix)}}class Z extends J{constructor(e,t,A){super(e,t,A),this.type="skew",this.angle=null,this.angle=new T(e,"angle",t)}}class $ extends Z{constructor(e,t,A){super(e,t,A),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class ee extends Z{constructor(e,t,A){super(e,t,A),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class te{constructor(e,t,A){this.document=e,this.transforms=[];var r=function(e){return c(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(t);r.forEach(e=>{if("none"!==e){var[t,r]=function(e){var[t,A]=e.split("(");return[t.trim(),A.trim().replace(")","")]}(e),n=te.transformTypes[t];void 0!==n&&this.transforms.push(new n(this.document,r,A))}})}static fromElement(e,t){var A=t.getStyle("transform",!1,!0),[r,n=r]=t.getStyle("transform-origin",!1,!0).split(),s=[r,n];return A.hasValue()?new te(e,A.getString(),s):null}apply(e){for(var{transforms:t}=this,A=t.length,r=0;r=0;A--)t[A].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,A=t.length,r=0;r2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=t,this.captureTextNodes=A,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType){Array.from(t.attributes).forEach(t=>{var A=p(t.nodeName);this.attributes[A]=new T(e,A,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(e=>e.trim()).forEach(t=>{if(t){var[A,r]=t.split(":").map(e=>e.trim());this.styles[A]=new T(e,A,r)}});var{definitions:r}=e,n=this.getAttribute("id");n.hasValue()&&(r[n.getString()]||(r[n.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(1===t.nodeType)this.addChild(t);else if(A&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=this.attributes[e];if(!A&&t){var r=new T(this.document,e,"");return this.attributes[e]=r,r}return A||T.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return T.empty(this.document)}getStyle(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.styles[e];if(r)return r;var n=this.getAttribute(e);if(null!=n&&n.hasValue())return this.styles[e]=n,n;if(!A){var{parent:s}=this;if(s){var i=s.getStyle(e);if(null!=i&&i.hasValue())return i}}if(t){var o=new T(this.document,e,"");return this.styles[e]=o,o}return r||T.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var A=this.getStyle("filter").getDefinition();A&&(this.applyEffects(e),A.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=te.fromElement(this.document,this);t&&t.apply(e);var A=this.getStyle("clip-path",!1,!0);if(A.hasValue()){var r=A.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof Ae?e:this.document.createElement(e);t.parent=this,Ae.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t,{node:A}=this;if("function"==typeof A.matches)return A.matches(e);var r=null===(t=A.getAttribute)||void 0===t?void 0:t.call(A,"class");return!(!r||""===r)&&r.split(" ").some(t=>".".concat(t)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var A in e)if(!A.startsWith("@")&&this.matchesSelector(A)){var r=e[A],n=t[A];if(r)for(var s in r){var i=this.stylesSpecificity[s];void 0===i&&(i="000"),n>=i&&(this.styles[s]=r[s],this.stylesSpecificity[s]=n)}}}removeStyles(e,t){return t.reduce((t,A)=>{var r=e.getStyle(A);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),[...t,[A,n]]},[])}restoreStyles(e,t){t.forEach(t=>{var[A,r]=t;e.getStyle(A,!0).setValue(r)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}Ae.ignoreChildTypes=["title"];class re extends Ae{constructor(e,t,A){super(e,t,A)}}function ne(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function se(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function ie(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class oe{constructor(e,t,A,r,n,s){var i=s?"string"==typeof s?oe.parse(s):s:{};this.fontFamily=n||i.fontFamily,this.fontSize=r||i.fontSize,this.fontStyle=e||i.fontStyle,this.fontWeight=A||i.fontWeight,this.fontVariant=t||i.fontVariant}static parse(){var e=arguments.length>1?arguments[1]:void 0,t="",A="",r="",n="",s="",i=c(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return i.forEach(e=>{switch(!0){case!o.fontStyle&&oe.styles.includes(e):"inherit"!==e&&(t=e),o.fontStyle=!0;break;case!o.fontVariant&&oe.variants.includes(e):"inherit"!==e&&(A=e),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&oe.weights.includes(e):"inherit"!==e&&(r=e),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==e&&([n]=e.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==e&&(s+=e)}}),new oe(t,A,r,n,s,e)}toString(){return[se(this.fontStyle),this.fontVariant,ie(this.fontWeight),this.fontSize,(e=this.fontFamily,"undefined"==typeof process?e:e.trim().split(",").map(ne).join(","))].join(" ").trim();var e}}oe.styles="normal|italic|oblique|inherit",oe.variants="normal|small-caps|inherit",oe.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class ae{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=A,this.y2=r,this.addPoint(e,t),this.addPoint(A,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){void 0!==e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:A,x2:r,y2:n}=e;this.addPoint(t,A),this.addPoint(r,n)}}sumCubic(e,t,A,r,n){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*A+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*n}bezierCurveAdd(e,t,A,r,n){var s=6*t-12*A+6*r,i=-3*t+9*A-9*r+3*n,o=3*A-3*t;if(0!==i){var a=Math.pow(s,2)-4*o*i;if(!(a<0)){var l=(-s+Math.sqrt(a))/(2*i);0=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",A=new M(this.command[e],this.command[t]);return this.makeAbsolute(A)}getAsControlPoint(e,t){var A=this.getPoint(e,t);return this.control=A,A}getAsCurrentPoint(e,t){var A=this.getPoint(e,t);return this.current=A,A}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==o.SVGPathData.CURVE_TO&&e!==o.SVGPathData.SMOOTH_CURVE_TO&&e!==o.SVGPathData.QUAD_TO&&e!==o.SVGPathData.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:A},control:{x:r,y:n}}=this;return new M(2*t-r,2*A-n)}makeAbsolute(e){if(this.command.relative){var{x:t,y:A}=this.current;e.x+=t,e.y+=A}return e}addMarker(e,t,A){var{points:r,angles:n}=this;A&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=r[r.length-1].angleTo(A)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,A=0;A1&&void 0!==arguments[1]&&arguments[1];if(!t){var A=this.getStyle("fill"),r=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(A.isUrlDefinition()){var i=A.getFillStyleDefinition(this,r);i&&(e.fillStyle=i)}else if(A.hasValue()){"currentColor"===A.getString()&&A.setValue(this.getStyle("color").getColor());var o=A.getColor();"inherit"!==o&&(e.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(r.hasValue()){var a=new T(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=a}if(n.isUrlDefinition()){var l=n.getFillStyleDefinition(this,s);l&&(e.strokeStyle=l)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var c=n.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(s.hasValue()){var u=new T(this.document,"stroke",e.strokeStyle).addOpacity(s).getString();e.strokeStyle=u}var h=this.getStyle("stroke-width");if(h.hasValue()){var f=h.getPixels();e.lineWidth=f||F}var p=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),w=this.getStyle("stroke-dasharray"),B=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),g.hasValue()&&(e.lineJoin=g.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),w.hasValue()&&"none"!==w.getString()){var y=d(w.getString());void 0!==e.setLineDash?e.setLineDash(y):void 0!==e.webkitLineDash?e.webkitLineDash=y:void 0===e.mozDash||1===y.length&&0===y[0]||(e.mozDash=y);var v=B.getPixels();void 0!==e.lineDashOffset?e.lineDashOffset=v:void 0!==e.webkitLineDashOffset?e.webkitLineDashOffset=v:void 0!==e.mozDashOffset&&(e.mozDashOffset=v)}}if(this.modifiedEmSizeStack=!1,void 0!==e.font){var b=this.getStyle("font"),C=this.getStyle("font-style"),_=this.getStyle("font-variant"),j=this.getStyle("font-weight"),x=this.getStyle("font-size"),Q=this.getStyle("font-family"),U=new oe(C.getString(),_.getString(),j.getString(),x.hasValue()?"".concat(x.getPixels(!0),"px"):"",Q.getString(),oe.parse(b.getString(),e.font));C.setValue(U.fontStyle),_.setValue(U.fontVariant),j.setValue(U.fontWeight),x.setValue(U.fontSize),Q.setValue(U.fontFamily),e.font=U.toString(),x.isPixels()&&(this.document.emSize=x.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class ue extends ce{constructor(e,t,A){super(e,t,A),this.type="path",this.pathParser=null,this.pathParser=new le(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,A=new ae;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case le.MOVE_TO:this.pathM(e,A);break;case le.LINE_TO:this.pathL(e,A);break;case le.HORIZ_LINE_TO:this.pathH(e,A);break;case le.VERT_LINE_TO:this.pathV(e,A);break;case le.CURVE_TO:this.pathC(e,A);break;case le.SMOOTH_CURVE_TO:this.pathS(e,A);break;case le.QUAD_TO:this.pathQ(e,A);break;case le.SMOOTH_QUAD_TO:this.pathT(e,A);break;case le.ARC:this.pathA(e,A);break;case le.CLOSE_PATH:this.pathZ(e,A)}return A}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),A=e.getMarkerAngles();return t.map((e,t)=>[e,A[t]])}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var A=this.getMarkers();if(A){var r=A.length-1,n=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),i=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[a,l]=A[0];o.render(e,a,l)}if(s.isUrlDefinition())for(var c=s.getDefinition(),u=1;u1&&(r*=Math.sqrt(u),n*=Math.sqrt(u));var h=(i===o?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(r,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(h)&&(h=0);var d=new M(h*r*c.y/n,h*-n*c.x/r),f=new M((t.x+l.x)/2+Math.cos(a)*d.x-Math.sin(a)*d.y,(t.y+l.y)/2+Math.sin(a)*d.x+Math.cos(a)*d.y),p=E([1,0],[(c.x-d.x)/r,(c.y-d.y)/n]),g=[(c.x-d.x)/r,(c.y-d.y)/n],m=[(-c.x-d.x)/r,(-c.y-d.y)/n],w=E(g,m);return U(g,m)<=-1&&(w=Math.PI),U(g,m)>=1&&(w=0),{currentPoint:l,rX:r,rY:n,sweepFlag:o,xAxisRotation:a,centp:f,a1:p,ad:w}}pathA(e,t){var{pathParser:A}=this,{currentPoint:r,rX:n,rY:s,sweepFlag:i,xAxisRotation:o,centp:a,a1:l,ad:c}=ue.pathA(A),u=1-i?1:-1,h=l+u*(c/2),d=new M(a.x+n*Math.cos(h),a.y+s*Math.sin(h));if(A.addMarkerAngle(d,h-u*Math.PI/2),A.addMarkerAngle(r,h-u*Math.PI),t.addPoint(r.x,r.y),e&&!isNaN(l)&&!isNaN(c)){var f=n>s?n:s,p=n>s?1:n/s,g=n>s?s/n:1;e.translate(a.x,a.y),e.rotate(o),e.scale(p,g),e.arc(0,0,f,l,l+c,Boolean(1-i)),e.scale(1/p,1/g),e.rotate(-o),e.translate(-a.x,-a.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){ue.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class he extends ue{constructor(e,t,A){super(e,t,A),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class de extends ce{constructor(e,t,A){super(e,t,new.target===de||A),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);var A=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();A&&(e.textBaseline=A)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((A,r)=>{var n=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(n):t=n}),t}getFontSize(){var{document:e,parent:t}=this,A=oe.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(A)}getTElementBoundingBox(e){var t=this.getFontSize();return new ae(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,A){var r=t[A],n=null;if(e.isArabic){var s=t.length,i=t[A-1],o=t[A+1],a="isolated";if((0===A||" "===i)&&A0&&" "!==i&&A0&&" "!==i&&(A===s-1||" "===o)&&(a="initial"),void 0!==e.glyphs[r]){var l=e.glyphs[r];n=l instanceof he?l:l[a]}}else n=e.glyphs[r];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var t=e||this.node,A=Array.from(t.parentNode.childNodes),r=A.indexOf(t),n=A.length-1,s=c(t.textContent||"");return 0===r&&(s=u(s)),r===n&&(s=h(s)),s}renderChildren(e){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,A)=>{this.renderChild(e,this,this,A)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}renderTElementChildren(e){var{document:t,parent:A}=this,r=this.getText(),n=A.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:s}=n.fontFace,i=oe.parse(t.ctx.font),o=A.getStyle("font-size").getNumber(i.fontSize),a=A.getStyle("font-style").getString(i.fontStyle),l=o/s,c=n.isRTL?r.split("").reverse().join(""):r,u=d(A.getAttribute("dx").getString()),h=c.length,f=0;f=this.leafTexts.length)){var e,t=this.leafTexts[this.textChunkStart],A=t.getStyle("text-anchor").getString("start");e="start"===A?t.x-this.minX:"end"===A?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r{this.adjustChildCoordinatesRecursiveCore(e,this,this,A)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,A,r){var n=A.children[r];n.children.length>0?n.children.forEach((A,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,n,r)}):this.adjustChildCoordinates(e,t,A,r)}adjustChildCoordinates(e,t,A,r){var n=A.children[r];if("function"!=typeof n.measureText)return n;e.save(),n.setContext(e,!0);var s=n.getAttribute("x"),i=n.getAttribute("y"),o=n.getAttribute("dx"),a=n.getAttribute("dy"),l=n.getStyle("font-family").getDefinition(),c=Boolean(l)&&l.isRTL;0===r&&(s.hasValue()||s.setValue(n.getInheritedAttribute("x")),i.hasValue()||i.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),a.hasValue()||a.setValue(n.getInheritedAttribute("dy")));var u=n.measureText(e);return c&&(t.x-=u),s.hasValue()?(t.applyAnchoring(),n.x=s.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),n.x=t.x),t.x=n.x,c||(t.x+=u),i.hasValue()?(n.y=i.getPixels("y"),a.hasValue()&&(n.y+=a.getPixels("y"))):(a.hasValue()&&(t.y+=a.getPixels("y")),n.y=t.y),t.y=n.y,t.leafTexts.push(n),t.minX=Math.min(t.minX,n.x,n.x+u),t.maxX=Math.max(t.maxX,n.x,n.x+u),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,t,A,r){var n=A.children[r];if("function"!=typeof n.getBoundingBox)return null;var s=n.getBoundingBox(e);return s?(n.children.forEach((A,r)=>{var i=t.getChildBoundingBox(e,t,n,r);s.addBoundingBox(i)}),s):null}renderChild(e,t,A,r){var n=A.children[r];n.render(e),n.children.forEach((A,r)=>{t.renderChild(e,t,n,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var A=this.getText(),r=this.measureTargetText(e,A);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:A}=this,r=A.getStyle("font-family").getDefinition();if(r){for(var n=this.getFontSize(),s=r.isRTL?t.split("").reverse().join(""):t,i=d(A.getAttribute("dx").getString()),o=s.length,a=0,l=0;l0?"":this.getTextFromNode()}getText(){return this.text}}class pe extends fe{constructor(){super(...arguments),this.type="textNode"}}class ge extends ce{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:A}=this,{screen:r,window:n}=A,s=e.canvas;if(r.setDefaults(e),s.style&&void 0!==e.font&&n&&void 0!==n.getComputedStyle){e.font=n.getComputedStyle(s).getPropertyValue("font");var i=new T(A,"fontSize",oe.parse(e.font).fontSize);i.hasValue()&&(A.rootEmSize=i.getPixels("y"),A.emSize=A.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:a}=r.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var l=this.getAttribute("refX"),c=this.getAttribute("refY"),u=this.getAttribute("viewBox"),h=u.hasValue()?d(u.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,g=0,m=0,w=0;h&&(p=h[0],g=h[1]),this.root||(o=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y"),"marker"===this.type&&(m=p,w=g,p=0,g=0)),r.viewPort.setCurrent(o,a),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(o=h[2],a=h[3]),A.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:o,height:r.viewPort.height,desiredHeight:a,minX:p,minY:g,refX:l.getValue(),refY:c.getValue(),clip:f,clipX:m,clipY:w}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(o,a))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,A=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),n=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),i=this.getAttribute("style"),o=r.getNumber(0),a=n.getNumber(0);if(A)if("string"==typeof A)this.getAttribute("preserveAspectRatio",!0).setValue(A);else{var l=this.getAttribute("preserveAspectRatio");l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),n.setValue(t),s.hasValue()||s.setValue("0 0 ".concat(o||e," ").concat(a||t)),i.hasValue()){var c=this.getStyle("width"),u=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),u.hasValue()&&u.setValue("".concat(t,"px"))}}}class me extends ue{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),i=this.getAttribute("ry"),o=s.getPixels("x"),a=i.getPixels("y");if(s.hasValue()&&!i.hasValue()&&(a=o),i.hasValue()&&!s.hasValue()&&(o=a),o=Math.min(o,r/2),a=Math.min(a,n/2),e){var l=(Math.sqrt(2)-1)/3*4;e.beginPath(),n>0&&r>0&&(e.moveTo(t+o,A),e.lineTo(t+r-o,A),e.bezierCurveTo(t+r-o+l*o,A,t+r,A+a-l*a,t+r,A+a),e.lineTo(t+r,A+n-a),e.bezierCurveTo(t+r,A+n-a+l*a,t+r-o+l*o,A+n,t+r-o,A+n),e.lineTo(t+o,A+n),e.bezierCurveTo(t+o-l*o,A+n,t,A+n-a+l*a,t,A+n-a),e.lineTo(t,A+a),e.bezierCurveTo(t,A+a-l*a,t+o-l*o,A,t+o,A),e.closePath())}return new ae(t,A,t+r,A+n)}getMarkers(){return null}}class we extends ue{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),A=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,A,r,0,2*Math.PI,!1),e.closePath()),new ae(t-r,A-r,t+r,A+r)}getMarkers(){return null}}class Be extends ue{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=(Math.sqrt(2)-1)/3*4,A=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return e&&A>0&&r>0&&(e.beginPath(),e.moveTo(n+A,s),e.bezierCurveTo(n+A,s+t*r,n+t*A,s+r,n,s+r),e.bezierCurveTo(n-t*A,s+r,n-A,s+t*r,n-A,s),e.bezierCurveTo(n-A,s-t*r,n-t*A,s-r,n,s-r),e.bezierCurveTo(n+t*A,s-r,n+A,s-t*r,n+A,s),e.closePath()),new ae(n-A,s-r,n+A,s+r)}getMarkers(){return null}}class ye extends ue{constructor(){super(...arguments),this.type="line"}getPoints(){return[new M(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new M(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:A},{x:r,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,A),e.lineTo(r,n)),new ae(t,A,r,n)}getMarkers(){var[e,t]=this.getPoints(),A=e.angleTo(t);return[[e,A],[t,A]]}}class ve extends ue{constructor(e,t,A){super(e,t,A),this.type="polyline",this.points=[],this.points=M.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:A,y:r}]=t,n=new ae(A,r);return e&&(e.beginPath(),e.moveTo(A,r)),t.forEach(t=>{var{x:A,y:r}=t;n.addPoint(A,r),e&&e.lineTo(A,r)}),n}getMarkers(){var{points:e}=this,t=e.length-1,A=[];return e.forEach((r,n)=>{n!==t&&A.push([r,r.angleTo(e[n+1])])}),A.length>0&&A.push([e[e.length-1],A[A.length-1][1]]),A}}class be extends ve{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:A,y:r}]=this.points;return e&&(e.lineTo(A,r),e.closePath()),t}}class Ce extends Ae{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,A){var r=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),s=new ge(this.document,null);s.attributes.viewBox=new T(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new T(this.document,"width","".concat(r,"px")),s.attributes.height=new T(this.document,"height","".concat(n,"px")),s.attributes.transform=new T(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var i=this.document.createCanvas(r,n),o=i.getContext("2d"),a=this.getAttribute("x"),l=this.getAttribute("y");a.hasValue()&&l.hasValue()&&o.translate(a.getPixels("x",!0),l.getPixels("y",!0)),A.hasValue()?this.styles["fill-opacity"]=A:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var u=-1;u<=1;u++)o.save(),s.attributes.x=new T(this.document,"x",c*i.width),s.attributes.y=new T(this.document,"y",u*i.height),s.render(o),o.restore();return e.createPattern(i,"repeat")}}class _e extends Ae{constructor(){super(...arguments),this.type="marker"}render(e,t,A){if(t){var{x:r,y:n}=t,s=this.getAttribute("orient").getString("auto"),i=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(r,n),"auto"===s&&e.rotate(A),"strokeWidth"===i&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new ge(this.document,null);o.type=this.type,o.attributes.viewBox=new T(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new T(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new T(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new T(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new T(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new T(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new T(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new T(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),"strokeWidth"===i&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===s&&e.rotate(-A),e.translate(-r,-n)}}}class je extends Ae{constructor(){super(...arguments),this.type="defs"}render(){}}class xe extends ce{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new ae;return this.children.forEach(A=>{t.addBoundingBox(A.getBoundingBox(e))}),t}}class Fe extends Ae{constructor(e,t,A){super(e,t,A),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:r,children:n}=this;n.forEach(e=>{"stop"===e.type&&r.push(e)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,A){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:n}=r,s=this.getGradient(e,t);if(!s)return this.addParentOpacity(A,n[n.length-1].color);if(n.forEach(e=>{s.addColorStop(e.offset,this.addParentOpacity(A,e.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:i}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:a}=i.screen,[l]=a.viewPorts,c=new me(i,null);c.attributes.x=new T(i,"x",-o/3),c.attributes.y=new T(i,"y",-o/3),c.attributes.width=new T(i,"width",o),c.attributes.height=new T(i,"height",o);var u=new xe(i,null);u.attributes.transform=new T(i,"transform",this.getAttribute("gradientTransform").getValue()),u.children=[c];var h=new ge(i,null);h.attributes.x=new T(i,"x",0),h.attributes.y=new T(i,"y",0),h.attributes.width=new T(i,"width",l.width),h.attributes.height=new T(i,"height",l.height),h.children=[u];var d=i.createCanvas(l.width,l.height),f=d.getContext("2d");return f.fillStyle=s,h.render(f),f.createPattern(d,"no-repeat")}return s}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){return e.hasValue()?new T(this.document,"color",t).addOpacity(e).getColor():t}}class Qe extends Fe{constructor(e,t,A){super(e,t,A),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,t){var A="objectBoundingBox"===this.getGradientUnits(),r=A?t.getBoundingBox(e):null;if(A&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=A?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=A?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),i=A?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=A?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===i&&s===o?null:e.createLinearGradient(n,s,i,o)}}class Ue extends Fe{constructor(e,t,A){super(e,t,A),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,t){var A="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(A&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=A?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=A?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),i=n,o=s;this.getAttribute("fx").hasValue()&&(i=A?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=A?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var a=A?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),l=this.getAttribute("fr").getPixels();return e.createRadialGradient(i,o,l,n,s,a)}}class Ee extends Ae{constructor(e,t,A){super(e,t,A),this.type="stop";var r=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);""===s.getString()&&s.setValue("#000"),n.hasValue()&&(s=s.addOpacity(n)),this.offset=r,this.color=s.getColor()}}class Se extends Ae{constructor(e,t,A){super(e,t,A),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new T(e,"values",null);var r=this.getAttribute("values");r.hasValue()&&this.values.setValue(r.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:A,to:r}=this.getProgress(),n=A.getNumber()+(r.getNumber()-A.getNumber())*t;return"%"===e&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:t}=this,A=this.getProperty();if(this.initialValue||(this.initialValue=A.getString(),this.initialUnits=A.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,A.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=A.getString();return!1}this.duration+=e;var n=!1;if(this.begint+(n[A]-t)*e).join(" ");return s}}class Ne extends Ae{constructor(e,t,A){super(e,t,A),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:r}=e,{children:n}=this;for(var s of n)switch(s.type){case"font-face":this.fontFace=s;var i=s.getStyle("font-family");i.hasValue()&&(r[i.getString()]=this);break;case"missing-glyph":this.missingGlyph=s;break;case"glyph":var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class ke extends Ae{constructor(e,t,A){super(e,t,A),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class He extends ue{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class Pe extends de{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}class Te extends de{constructor(e,t,A){super(e,t,A),this.type="a";var{childNodes:r}=t,n=r[0],s=r.length>0&&Array.from(r).every(e=>3===e.nodeType);this.hasText=s,this.text=s?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:A,y:r}=this,{mouse:n}=t.screen,s=new T(t,"fontSize",oe.parse(t.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new ae(A,r-s.getPixels("y"),A+this.measureText(e),r))}else if(this.children.length>0){var i=new xe(this.document,null);i.children=this.children,i.parent=this,i.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function Oe(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),A.push.apply(A,r)}return A}function Me(e){for(var t=1;t{var{type:A,points:r}=t;switch(A){case le.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case le.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case le.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case le.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case le.ARC:var[n,s,i,o,a,l,c,u]=r,h=i>o?i:o,d=i>o?1:i/o,f=i>o?o/i:1;e&&(e.translate(n,s),e.rotate(c),e.scale(d,f),e.arc(0,0,h,a,a+l,Boolean(1-u)),e.scale(1/d,1/f),e.rotate(-c),e.translate(-n,-s));break;case le.CLOSE_PATH:e&&e.closePath()}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),A=this.getFontSize(),{glyphInfo:r}=this,n=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach((r,n)=>{var{p0:s,p1:i,rotation:o,text:a}=r;e.save(),e.translate(s.x,s.y),e.rotate(o),e.fillStyle&&e.fillText(a,0,0),e.strokeStyle&&e.strokeText(a,0,0),e.restore(),"underline"===t&&(0===n&&e.moveTo(s.x,s.y+A/8),e.lineTo(i.x,i.y+A/5))}),"underline"===t&&(e.lineWidth=A/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,A,r,n,s,i,o,a){var l=s,c=this.measureText(e,o);" "===o&&"justify"===t&&A-1&&(l+=this.getLetterSpacingAt(a));var u=this.textHeight/20,h=this.getEquidistantPointOnPath(l,u,0),d=this.getEquidistantPointOnPath(l+c,u,0),f={p0:h,p1:d},p=h&&d?Math.atan2(d.y-h.y,d.x-h.x):0;if(i){var g=Math.cos(Math.PI/2+p)*i,m=Math.cos(-p)*i;f.p0=Me(Me({},h),{},{x:h.x+g,y:h.y+m}),f.p1=Me(Me({},d),{},{x:d.x+g,y:d.y+m})}return{offset:l+=c,segment:f,rotation:p}}measureText(e,t){var{measuresCache:A}=this,r=t||this.getText();if(A.has(r))return A.get(r);var n=this.measureTargetText(e,r);return A.set(r,n),n}setTextData(e){if(!this.glyphInfo){var t=this.getText(),A=t.split(""),r=t.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(e=>e.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),i=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),a=this.parent.getStyle("letter-spacing"),l=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(l=o.getPixels()):l=a.getPixels();var c=[],u=t.length;this.letterSpacingCache=c;for(var h=0;h0===A?0:e+t||0,0),f=this.measureText(e),p=Math.max(f+d,0);this.textWidth=f,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),m=this.getStyle("startOffset").getNumber(0)*g,w=0;"middle"!==i&&"center"!==i||(w=-p/2),"end"!==i&&"right"!==i||(w=-p),w+=m,A.forEach((t,n)=>{var{offset:o,segment:a,rotation:l}=this.findSegmentToFitChar(e,i,p,g,r,w,s,t,n);w=o,a.p0&&a.p1&&this.glyphInfo.push({text:A[n],p0:a.p0,p1:a.p1,rotation:l})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:A}=e;for(A.reset();!A.isEnd();){var{current:r}=A,n=r?r.x:0,s=r?r.y:0,i=A.next(),o=i.type,a=[];switch(i.type){case le.MOVE_TO:this.pathM(A,a);break;case le.LINE_TO:o=this.pathL(A,a);break;case le.HORIZ_LINE_TO:o=this.pathH(A,a);break;case le.VERT_LINE_TO:o=this.pathV(A,a);break;case le.CURVE_TO:this.pathC(A,a);break;case le.SMOOTH_CURVE_TO:o=this.pathS(A,a);break;case le.QUAD_TO:this.pathQ(A,a);break;case le.SMOOTH_QUAD_TO:o=this.pathT(A,a);break;case le.ARC:a=this.pathA(A);break;case le.CLOSE_PATH:ue.pathZ(A)}i.type!==le.CLOSE_PATH?t.push({type:o,points:a,start:{x:n,y:s},pathLength:this.calcLength(n,s,o,a)}):t.push({type:le.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:A,y:r}=ue.pathM(e).point;t.push(A,r)}pathL(e,t){var{x:A,y:r}=ue.pathL(e).point;return t.push(A,r),le.LINE_TO}pathH(e,t){var{x:A,y:r}=ue.pathH(e).point;return t.push(A,r),le.LINE_TO}pathV(e,t){var{x:A,y:r}=ue.pathV(e).point;return t.push(A,r),le.LINE_TO}pathC(e,t){var{point:A,controlPoint:r,currentPoint:n}=ue.pathC(e);t.push(A.x,A.y,r.x,r.y,n.x,n.y)}pathS(e,t){var{point:A,controlPoint:r,currentPoint:n}=ue.pathS(e);return t.push(A.x,A.y,r.x,r.y,n.x,n.y),le.CURVE_TO}pathQ(e,t){var{controlPoint:A,currentPoint:r}=ue.pathQ(e);t.push(A.x,A.y,r.x,r.y)}pathT(e,t){var{controlPoint:A,currentPoint:r}=ue.pathT(e);return t.push(A.x,A.y,r.x,r.y),le.QUAD_TO}pathA(e){var{rX:t,rY:A,sweepFlag:r,xAxisRotation:n,centp:s,a1:i,ad:o}=ue.pathA(e);return 0===r&&o>0&&(o-=2*Math.PI),1===r&&o<0&&(o+=2*Math.PI),[s.x,s.y,t,A,i,o,n,r]}calcLength(e,t,A,r){var n=0,s=null,i=null,o=0;switch(A){case le.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case le.CURVE_TO:for(n=0,s=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),o=.01;o<=1;o+=.01)i=this.getPointOnCubicBezier(o,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),n+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return n;case le.QUAD_TO:for(n=0,s=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),o=.01;o<=1;o+=.01)i=this.getPointOnQuadraticBezier(o,e,t,r[0],r[1],r[2],r[3]),n+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return n;case le.ARC:n=0;var a=r[4],l=r[5],c=r[4]+l,u=Math.PI/180;if(Math.abs(a-c)c;o-=u)i=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],o,0),n+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;else for(o=a+u;o5&&void 0!==arguments[5]?arguments[5]:t,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:A,o=(n-A)/(r-t+F),a=Math.sqrt(e*e/(1+o*o));rt)return null;var{dataArray:n}=this;for(var s of n){if(!s||!(s.pathLength<5e-5||A+s.pathLength+5e-5=0&&o>c)break;r=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break;case le.CURVE_TO:(o=i/s.pathLength)>1&&(o=1),r=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case le.QUAD_TO:(o=i/s.pathLength)>1&&(o=1),r=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3])}if(r)return r;break}A+=s.pathLength}return null}getLineLength(e,t,A,r){return Math.sqrt((A-e)*(A-e)+(r-t)*(r-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,A,r,n,s,i,o,a){return{x:o*S(e)+s*L(e)+r*I(e)+t*N(e),y:a*S(e)+i*L(e)+n*I(e)+A*N(e)}}getPointOnQuadraticBezier(e,t,A,r,n,s,i){return{x:s*k(e)+r*H(e)+t*P(e),y:i*k(e)+n*H(e)+A*P(e)}}getPointOnEllipticalArc(e,t,A,r,n,s){var i=Math.cos(s),o=Math.sin(s),a=A*Math.cos(n),l=r*Math.sin(n);return{x:e+(a*i-l*o),y:t+(a*o+l*i)}}buildEquidistantCache(e,t){var A=this.getPathLength(),r=t||.25,n=e||A/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==r){this.equidistantCache={step:n,precision:r,points:[]};for(var s=0,i=0;i<=A;i+=r){var o=this.getPointOnPath(i),a=this.getPointOnPath(i+r);o&&a&&(s+=this.getLineLength(o.x,o.y,a.x,a.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:i}),s-=n)}}}getEquidistantPointOnPath(e,t,A){if(this.buildEquidistantCache(t,A),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}var Re=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Ke extends ce{constructor(e,t,A){super(e,t,A),this.type="image",this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var n=r.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),n?this.loadSvg(r):this.loadImage(r),this.isSvg=n}}loadImage(e){var t=this;return(0,r.default)(function*(){try{var A=yield t.document.createImage(e);t.image=A}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}t.loaded=!0})()}loadSvg(e){var t=this;return(0,r.default)(function*(){var A=Re.exec(e);if(A){var r=A[5];"base64"===A[4]?t.image=atob(r):t.image=decodeURIComponent(r)}else try{var n=yield t.document.fetch(e),s=yield n.text();t.image=s}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}t.loaded=!0})()}renderChildren(e){var{document:t,image:A,loaded:r}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(r&&A&&i&&o){if(e.save(),e.translate(n,s),this.isSvg){var a=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:i,scaleHeight:o});a.document.documentElement.parent=this,a.render()}else{var l=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i,desiredWidth:l.width,height:o,desiredHeight:l.height}),this.loaded&&(void 0===l.complete||l.complete)&&e.drawImage(l,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),A=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new ae(e,t,e+A,t+r)}}class Ve extends ce{constructor(){super(...arguments),this.type="symbol"}render(e){}}class Ge{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var A=this;return(0,r.default)(function*(){try{var{document:r}=A,n=(yield r.canvg.parser.load(t)).getElementsByTagName("font");Array.from(n).forEach(t=>{var A=r.createElement(t);r.definitions[e]=A})}catch(e){console.error('Error while loading font "'.concat(t,'":'),e)}A.loaded=!0})()}}class ze extends Ae{constructor(e,t,A){super(e,t,A),this.type="style",c(Array.from(t.childNodes).map(e=>e.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(t=>{var A=t.trim();if(A){var r=A.split("{"),n=r[0].split(","),s=r[1].split(";");n.forEach(t=>{var A=t.trim();if(A){var r=e.styles[A]||{};if(s.forEach(t=>{var A=t.indexOf(":"),n=t.substr(0,A).trim(),s=t.substr(A+1,t.length-A).trim();n&&s&&(r[n]=new T(e,n,s))}),e.styles[A]=r,e.stylesSpecificity[A]=x(A),"@font-face"===A){var n=r["font-family"].getString().replace(/"|'/g,"");r.src.getString().split(",").forEach(t=>{if(t.indexOf('format("svg")')>0){var A=g(t);A&&new Ge(e).load(n,A)}})}}})}})}}ze.parseExternalUrl=g;class qe extends ce{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var t=this.getAttribute("x"),A=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),A.hasValue()&&e.translate(0,A.getPixels("y"))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:A}=this;if(A){var r=A;if("symbol"===A.type&&((r=new ge(t,null)).attributes.viewBox=new T(t,"viewBox",A.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new T(t,"preserveAspectRatio",A.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new T(t,"overflow",A.getAttribute("overflow").getString()),r.children=A.children,A.styles.opacity=new T(t,"opacity",this.calculateOpacity())),"svg"===r.type){var n=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);n.hasValue()&&(r.attributes.width=new T(t,"width",n.getString())),s.hasValue()&&(r.attributes.height=new T(t,"height",s.getString()))}var i=r.parent;r.parent=this,r.render(e),r.parent=i}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return te.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function We(e,t,A,r,n,s){return e[A*r*4+4*t+s]}function Xe(e,t,A,r,n,s,i){e[A*r*4+4*t+s]=i}function Ye(e,t,A){return e[t]*A}function Je(e,t,A,r){return t+Math.cos(e)*A+Math.sin(e)*r}class Ze extends Ae{constructor(e,t,A){super(e,t,A),this.type="feColorMatrix";var r=d(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=r[0];r=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=r[0]*Math.PI/180;r=[Je(s,.213,.787,-.213),Je(s,.715,-.715,-.715),Je(s,.072,-.072,.928),0,0,Je(s,.213,-.213,.143),Je(s,.715,.285,.14),Je(s,.072,-.072,-.283),0,0,Je(s,.213,-.213,-.787),Je(s,.715,-.715,.715),Je(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=r,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,A,r,n){for(var{includeOpacity:s,matrix:i}=this,o=e.getImageData(0,0,r,n),a=0;a{o.addBoundingBox(t.getBoundingBox(e))}),r=Math.floor(o.x1),n=Math.floor(o.y1),s=Math.floor(o.width),i=Math.floor(o.height)}var a=this.removeStyles(t,$e.ignoreStyles),l=A.createCanvas(r+s,n+i),c=l.getContext("2d");A.screen.setDefaults(c),this.renderChildren(c),new Ze(A,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,r+s,n+i);var u=A.createCanvas(r+s,n+i),h=u.getContext("2d");A.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=c.createPattern(l,"no-repeat"),h.fillRect(0,0,r+s,n+i),e.fillStyle=h.createPattern(u,"no-repeat"),e.fillRect(0,0,r+s,n+i),this.restoreStyles(t,a)}render(e){}}$e.ignoreStyles=["mask","transform","clip-path"];var et=()=>{};class tt extends Ae{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,A=Reflect.getPrototypeOf(e),{beginPath:r,closePath:n}=e;A&&(A.beginPath=et,A.closePath=et),Reflect.apply(r,e,[]),this.children.forEach(r=>{if(void 0!==r.path){var s=void 0!==r.elementTransform?r.elementTransform():null;s||(s=te.fromElement(t,r)),s&&s.apply(e),r.path(e),A&&(A.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),A&&(A.beginPath=r,A.closePath=n)}render(e){}}class At extends Ae{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:A,children:r}=this,n=t.getBoundingBox(e);if(n){var s=0,i=0;r.forEach(e=>{var t=e.extraFilterDistance||0;s=Math.max(s,t),i=Math.max(i,t)});var o=Math.floor(n.width),a=Math.floor(n.height),l=o+2*s,c=a+2*i;if(!(l<1||c<1)){var u=Math.floor(n.x),h=Math.floor(n.y),d=this.removeStyles(t,At.ignoreStyles),f=A.createCanvas(l,c),p=f.getContext("2d");A.screen.setDefaults(p),p.translate(-u+s,-h+i),t.render(p),r.forEach(e=>{"function"==typeof e.apply&&e.apply(p,0,0,l,c)}),e.drawImage(f,0,0,l,c,u-s,h-i,l,c),this.restoreStyles(t,d)}}}render(e){}}At.ignoreStyles=["filter","transform","clip-path"];class rt extends Ae{constructor(e,t,A){super(e,t,A),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,A,r,n){}}class nt extends Ae{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,A,r,n){}}class st extends Ae{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,A,r,n){}}class it extends Ae{constructor(e,t,A){super(e,t,A),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,A,r,n){var{document:s,blurRadius:i}=this,o=s.window?s.window.document.body:null,l=e.canvas;l.id=s.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),(0,a.canvasRGBA)(l,t,A,r,n,i),o&&o.removeChild(l)}}class ot extends Ae{constructor(){super(...arguments),this.type="title"}}class at extends Ae{constructor(){super(...arguments),this.type="desc"}}var lt={svg:ge,rect:me,circle:we,ellipse:Be,line:ye,polyline:ve,polygon:be,path:ue,pattern:Ce,marker:_e,defs:je,linearGradient:Qe,radialGradient:Ue,stop:Ee,animate:Se,animateColor:Le,animateTransform:Ie,font:Ne,"font-face":ke,"missing-glyph":He,glyph:he,text:de,tspan:fe,tref:Pe,a:Te,textPath:De,image:Ke,g:xe,symbol:Ve,style:ze,use:qe,mask:$e,clipPath:tt,filter:At,feDropShadow:rt,feMorphology:nt,feComposite:st,feColorMatrix:Ze,feGaussianBlur:it,title:ot,desc:at};function ct(e,t){var A=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),A.push.apply(A,r)}return A}function ut(){return ut=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=document.createElement("img");return t&&(A.crossOrigin="Anonymous"),new Promise((t,r)=>{A.onload=()=>{t(A)},A.onerror=(e,t,A,n,s)=>{r(s)},A.src=e})}),ut.apply(this,arguments)}class ht{constructor(e){var{rootEmSize:t=12,emSize:A=12,createCanvas:r=ht.createCanvas,createImage:n=ht.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=A,this.createCanvas=r,this.createImage=this.bindCreateImage(n,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return"boolean"==typeof t?(A,r)=>e(A,"boolean"==typeof r?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){var t=e.nodeName.replace(/^[^:]+:/,""),A=ht.elementTypes[t];return void 0!==A?new A(this,e):new re(this,e)}createTextNode(e){return new pe(this,e)}setViewBox(e){this.screen.setViewBox(function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new q(A),this.screen=new V(e,A),this.options=A;var r=new ht(this,A),n=r.createDocumentElement(t);this.document=r,this.documentElement=n}static from(e,t){var A=arguments;return(0,r.default)(function*(){var r=A.length>2&&void 0!==A[2]?A[2]:{},n=new q(r),s=yield n.parse(t);return new pt(e,s,r)})()}static fromString(e,t){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new q(A).parseFromString(t);return new pt(e,r,A)}fork(e,t){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return pt.from(e,t,ft(ft({},this.options),A))}forkString(e,t){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return pt.fromString(e,t,ft(ft({},this.options),A))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return(0,r.default)(function*(){var A=e.length>0&&void 0!==e[0]?e[0]:{};t.start(ft({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},A)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:t,screen:A,options:r}=this;A.start(t,ft(ft({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,A)}}},"./node_modules/core-js/internals/a-callable.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-callable.js"),n=A("./node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(n(e)+" is not a function")}},"./node_modules/core-js/internals/a-constructor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-constructor.js"),n=A("./node_modules/core-js/internals/try-to-string.js"),s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(n(e)+" is not a constructor")}},"./node_modules/core-js/internals/a-possible-prototype.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-possible-prototype.js"),n=String,s=TypeError;e.exports=function(e){if(r(e))return e;throw new s("Can't set "+n(e)+" as a prototype")}},"./node_modules/core-js/internals/a-set.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/set-helpers.js").has;e.exports=function(e){return r(e),e}},"./node_modules/core-js/internals/add-to-unscopables.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/well-known-symbol.js"),n=A("./node_modules/core-js/internals/object-create.js"),s=A("./node_modules/core-js/internals/object-define-property.js").f,i=r("unscopables"),o=Array.prototype;void 0===o[i]&&s(o,i,{configurable:!0,value:n(null)}),e.exports=function(e){o[i][e]=!0}},"./node_modules/core-js/internals/advance-string-index.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/string-multibyte.js").charAt;e.exports=function(e,t,A){return t+(A?r(e,t).length:1)}},"./node_modules/core-js/internals/an-instance.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/object-is-prototype-of.js"),n=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new n("Incorrect invocation")}},"./node_modules/core-js/internals/an-object.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-object.js"),n=String,s=TypeError;e.exports=function(e){if(r(e))return e;throw new s(n(e)+" is not an object")}},"./node_modules/core-js/internals/array-buffer-non-extensible.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js");e.exports=r(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},"./node_modules/core-js/internals/array-for-each.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/array-iteration.js").forEach,n=A("./node_modules/core-js/internals/array-method-is-strict.js")("forEach");e.exports=n?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-from.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-bind-context.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-object.js"),i=A("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),o=A("./node_modules/core-js/internals/is-array-iterator-method.js"),a=A("./node_modules/core-js/internals/is-constructor.js"),l=A("./node_modules/core-js/internals/length-of-array-like.js"),c=A("./node_modules/core-js/internals/create-property.js"),u=A("./node_modules/core-js/internals/get-iterator.js"),h=A("./node_modules/core-js/internals/get-iterator-method.js"),d=Array;e.exports=function(e){var t=s(e),A=a(this),f=arguments.length,p=f>1?arguments[1]:void 0,g=void 0!==p;g&&(p=r(p,f>2?arguments[2]:void 0));var m,w,B,y,v,b,C=h(t),_=0;if(!C||this===d&&o(C))for(m=l(t),w=A?new this(m):d(m);m>_;_++)b=g?p(t[_],_):t[_],c(w,_,b);else for(w=A?new this:[],v=(y=u(t,C)).next;!(B=n(v,y)).done;_++)b=g?i(y,p,[B.value,_],!0):B.value,c(w,_,b);return w.length=_,w}},"./node_modules/core-js/internals/array-includes.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-indexed-object.js"),n=A("./node_modules/core-js/internals/to-absolute-index.js"),s=A("./node_modules/core-js/internals/length-of-array-like.js"),i=function(e){return function(t,A,i){var o=r(t),a=s(o);if(0===a)return!e&&-1;var l,c=n(i,a);if(e&&A!=A){for(;a>c;)if((l=o[c++])!=l)return!0}else for(;a>c;c++)if((e||c in o)&&o[c]===A)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-bind-context.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/indexed-object.js"),i=A("./node_modules/core-js/internals/to-object.js"),o=A("./node_modules/core-js/internals/length-of-array-like.js"),a=A("./node_modules/core-js/internals/array-species-create.js"),l=n([].push),c=function(e){var t=1===e,A=2===e,n=3===e,c=4===e,u=6===e,h=7===e,d=5===e||u;return function(f,p,g,m){for(var w,B,y=i(f),v=s(y),b=o(v),C=r(p,g),_=0,j=m||a,x=t?j(f,b):A||h?j(f,0):void 0;b>_;_++)if((d||_ in v)&&(B=C(w=v[_],_,y),e))if(t)x[_]=B;else if(B)switch(e){case 3:return!0;case 5:return w;case 6:return _;case 2:l(x,w)}else switch(e){case 4:return!1;case 7:l(x,w)}return u?-1:n||c?c:x}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js"),n=A("./node_modules/core-js/internals/well-known-symbol.js"),s=A("./node_modules/core-js/internals/environment-v8-version.js"),i=n("species");e.exports=function(e){return s>=51||!r(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var A=[][e];return!!A&&r(function(){A.call(null,t||function(){return 1},1)})}},"./node_modules/core-js/internals/array-reduce.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-callable.js"),n=A("./node_modules/core-js/internals/to-object.js"),s=A("./node_modules/core-js/internals/indexed-object.js"),i=A("./node_modules/core-js/internals/length-of-array-like.js"),o=TypeError,a="Reduce of empty array with no initial value",l=function(e){return function(t,A,l,c){var u=n(t),h=s(u),d=i(u);if(r(A),0===d&&l<2)throw new o(a);var f=e?d-1:0,p=e?-1:1;if(l<2)for(;;){if(f in h){c=h[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw new o(a)}for(;e?f>=0:d>f;f+=p)f in h&&(c=A(c,h[f],f,u));return c}};e.exports={left:l(!1),right:l(!0)}},"./node_modules/core-js/internals/array-slice.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r([].slice)},"./node_modules/core-js/internals/array-species-constructor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-array.js"),n=A("./node_modules/core-js/internals/is-constructor.js"),s=A("./node_modules/core-js/internals/is-object.js"),i=A("./node_modules/core-js/internals/well-known-symbol.js")("species"),o=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(n(t)&&(t===o||r(t.prototype))||s(t)&&null===(t=t[i]))&&(t=void 0)),void 0===t?o:t}},"./node_modules/core-js/internals/array-species-create.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/an-object.js"),n=A("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e,t,A,s){try{return s?t(r(A)[0],A[1]):t(A)}catch(t){n(e,"throw",t)}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),n=!1;try{var s=0,i={next:function(){return{done:!!s++}},return:function(){n=!0}};i[r]=function(){return this},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){try{if(!t&&!n)return!1}catch(e){return!1}var A=!1;try{var s={};s[r]=function(){return{next:function(){return{done:A=!0}}}},e(s)}catch(e){}return A}},"./node_modules/core-js/internals/classof-raw.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=r({}.toString),s=r("".slice);e.exports=function(e){return s(n(e),8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-string-tag-support.js"),n=A("./node_modules/core-js/internals/is-callable.js"),s=A("./node_modules/core-js/internals/classof-raw.js"),i=A("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),o=Object,a="Arguments"===s(function(){return arguments}());e.exports=r?s:function(e){var t,A,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(A=function(e,t){try{return e[t]}catch(e){}}(t=o(e),i))?A:a?s(t):"Object"===(r=s(t))&&n(t.callee)?"Arguments":r}},"./node_modules/core-js/internals/collection-strong.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/object-create.js"),n=A("./node_modules/core-js/internals/define-built-in-accessor.js"),s=A("./node_modules/core-js/internals/define-built-ins.js"),i=A("./node_modules/core-js/internals/function-bind-context.js"),o=A("./node_modules/core-js/internals/an-instance.js"),a=A("./node_modules/core-js/internals/is-null-or-undefined.js"),l=A("./node_modules/core-js/internals/iterate.js"),c=A("./node_modules/core-js/internals/iterator-define.js"),u=A("./node_modules/core-js/internals/create-iter-result-object.js"),h=A("./node_modules/core-js/internals/set-species.js"),d=A("./node_modules/core-js/internals/descriptors.js"),f=A("./node_modules/core-js/internals/internal-metadata.js").fastKey,p=A("./node_modules/core-js/internals/internal-state.js"),g=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,A,c){var u=e(function(e,n){o(e,h),g(e,{type:t,index:r(null),first:null,last:null,size:0}),d||(e.size=0),a(n)||l(n,e[c],{that:e,AS_ENTRIES:A})}),h=u.prototype,p=m(t),w=function(e,t,A){var r,n,s=p(e),i=B(e,t);return i?i.value=A:(s.last=i={index:n=f(t,!0),key:t,value:A,previous:r=s.last,next:null,removed:!1},s.first||(s.first=i),r&&(r.next=i),d?s.size++:e.size++,"F"!==n&&(s.index[n]=i)),e},B=function(e,t){var A,r=p(e),n=f(t);if("F"!==n)return r.index[n];for(A=r.first;A;A=A.next)if(A.key===t)return A};return s(h,{clear:function(){for(var e=p(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=r(null),d?e.size=0:this.size=0},delete:function(e){var t=this,A=p(t),r=B(t,e);if(r){var n=r.next,s=r.previous;delete A.index[r.index],r.removed=!0,s&&(s.next=n),n&&(n.previous=s),A.first===r&&(A.first=n),A.last===r&&(A.last=s),d?A.size--:t.size--}return!!r},forEach:function(e){for(var t,A=p(this),r=i(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:A.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!B(this,e)}}),s(h,A?{get:function(e){var t=B(this,e);return t&&t.value},set:function(e,t){return w(this,0===e?0:e,t)}}:{add:function(e){return w(this,e=0===e?0:e,e)}}),d&&n(h,"size",{configurable:!0,get:function(){return p(this).size}}),u},setStrong:function(e,t,A){var r=t+" Iterator",n=m(t),s=m(r);c(e,t,function(e,t){g(this,{type:r,target:e,state:n(e),kind:t,last:null})},function(){for(var e=s(this),t=e.kind,A=e.last;A&&A.removed;)A=A.previous;return e.target&&(e.last=A=A?A.next:e.state.first)?u("keys"===t?A.key:"values"===t?A.value:[A.key,A.value],!1):(e.target=null,u(void 0,!0))},A?"entries":"values",!A,!0),h(t)}}},"./node_modules/core-js/internals/collection.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/global-this.js"),s=A("./node_modules/core-js/internals/function-uncurry-this.js"),i=A("./node_modules/core-js/internals/is-forced.js"),o=A("./node_modules/core-js/internals/define-built-in.js"),a=A("./node_modules/core-js/internals/internal-metadata.js"),l=A("./node_modules/core-js/internals/iterate.js"),c=A("./node_modules/core-js/internals/an-instance.js"),u=A("./node_modules/core-js/internals/is-callable.js"),h=A("./node_modules/core-js/internals/is-null-or-undefined.js"),d=A("./node_modules/core-js/internals/is-object.js"),f=A("./node_modules/core-js/internals/fails.js"),p=A("./node_modules/core-js/internals/check-correctness-of-iteration.js"),g=A("./node_modules/core-js/internals/set-to-string-tag.js"),m=A("./node_modules/core-js/internals/inherit-if-required.js");e.exports=function(e,t,A){var w=-1!==e.indexOf("Map"),B=-1!==e.indexOf("Weak"),y=w?"set":"add",v=n[e],b=v&&v.prototype,C=v,_={},j=function(e){var t=s(b[e]);o(b,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(B&&!d(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return B&&!d(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(B&&!d(e))&&t(this,0===e?0:e)}:function(e,A){return t(this,0===e?0:e,A),this})};if(i(e,!u(v)||!(B||b.forEach&&!f(function(){(new v).entries().next()}))))C=A.getConstructor(t,e,w,y),a.enable();else if(i(e,!0)){var x=new C,F=x[y](B?{}:-0,1)!==x,Q=f(function(){x.has(1)}),U=p(function(e){new v(e)}),E=!B&&f(function(){for(var e=new v,t=5;t--;)e[y](t,t);return!e.has(-0)});U||((C=t(function(e,t){c(e,b);var A=m(new v,e,C);return h(t)||l(t,A[y],{that:A,AS_ENTRIES:w}),A})).prototype=b,b.constructor=C),(Q||E)&&(j("delete"),j("has"),w&&j("get")),(E||F)&&j(y),B&&b.clear&&delete b.clear}return _[e]=C,r({global:!0,constructor:!0,forced:C!==v},_),g(C,e),B||A.setStrong(C,e,w),C}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/has-own-property.js"),n=A("./node_modules/core-js/internals/own-keys.js"),s=A("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=A("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,A){for(var o=n(t),a=i.f,l=s.f,c=0;c"+a+""}},"./node_modules/core-js/internals/create-iter-result-object.js":function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/object-define-property.js"),s=A("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=r?function(e,t,A){return n.f(e,t,s(1,A))}:function(e,t,A){return e[t]=A,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/object-define-property.js"),s=A("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,A){r?n.f(e,t,s(0,A)):e[t]=A}},"./node_modules/core-js/internals/define-built-in-accessor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/make-built-in.js"),n=A("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t,A){return A.get&&r(A.get,t,{getter:!0}),A.set&&r(A.set,t,{setter:!0}),n.f(e,t,A)}},"./node_modules/core-js/internals/define-built-in.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-callable.js"),n=A("./node_modules/core-js/internals/object-define-property.js"),s=A("./node_modules/core-js/internals/make-built-in.js"),i=A("./node_modules/core-js/internals/define-global-property.js");e.exports=function(e,t,A,o){o||(o={});var a=o.enumerable,l=void 0!==o.name?o.name:t;if(r(A)&&s(A,l,o),o.global)a?e[t]=A:i(t,A);else{try{o.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=A:n.f(e,t,{value:A,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},"./node_modules/core-js/internals/define-built-ins.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/define-built-in.js");e.exports=function(e,t,A){for(var n in t)r(e,n,t[n],A);return e}},"./node_modules/core-js/internals/define-global-property.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(A){r[e]=t}return t}},"./node_modules/core-js/internals/descriptors.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},"./node_modules/core-js/internals/document-create-element.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/is-object.js"),s=r.document,i=n(s)&&n(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"./node_modules/core-js/internals/does-not-exceed-safe-integer.js":function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},"./node_modules/core-js/internals/dom-iterables.js":function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/dom-token-list-prototype.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/document-create-element.js")("span").classList,n=r&&r.constructor&&r.constructor.prototype;e.exports=n===Object.prototype?void 0:n},"./node_modules/core-js/internals/enum-bug-keys.js":function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/environment-is-ios-pebble.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/environment-user-agent.js");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},"./node_modules/core-js/internals/environment-is-ios.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/environment-user-agent.js");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"./node_modules/core-js/internals/environment-is-node.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/environment.js");e.exports="NODE"===r},"./node_modules/core-js/internals/environment-is-webos-webkit.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/environment-user-agent.js");e.exports=/web0s(?!.*chrome)/i.test(r)},"./node_modules/core-js/internals/environment-user-agent.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js").navigator,n=r&&r.userAgent;e.exports=n?String(n):""},"./node_modules/core-js/internals/environment-v8-version.js":function(e,t,A){"use strict";var r,n,s=A("./node_modules/core-js/internals/global-this.js"),i=A("./node_modules/core-js/internals/environment-user-agent.js"),o=s.process,a=s.Deno,l=o&&o.versions||a&&a.version,c=l&&l.v8;c&&(n=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},"./node_modules/core-js/internals/environment.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/environment-user-agent.js"),s=A("./node_modules/core-js/internals/classof-raw.js"),i=function(e){return n.slice(0,e.length)===e};e.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===s(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},"./node_modules/core-js/internals/export.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=A("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=A("./node_modules/core-js/internals/define-built-in.js"),o=A("./node_modules/core-js/internals/define-global-property.js"),a=A("./node_modules/core-js/internals/copy-constructor-properties.js"),l=A("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var A,c,u,h,d,f=e.target,p=e.global,g=e.stat;if(A=p?r:g?r[f]||o(f,{}):r[f]&&r[f].prototype)for(c in t){if(h=t[c],u=e.dontCallGetSet?(d=n(A,c))&&d.value:A[c],!l(p?c:f+(g?".":"#")+c,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;a(h,u)}(e.sham||u&&u.sham)&&s(h,"sham",!0),i(A,c,h,e)}}},"./node_modules/core-js/internals/fails.js":function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.regexp.exec.js");var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/define-built-in.js"),s=A("./node_modules/core-js/internals/regexp-exec.js"),i=A("./node_modules/core-js/internals/fails.js"),o=A("./node_modules/core-js/internals/well-known-symbol.js"),a=A("./node_modules/core-js/internals/create-non-enumerable-property.js"),l=o("species"),c=RegExp.prototype;e.exports=function(e,t,A,u){var h=o(e),d=!i(function(){var t={};return t[h]=function(){return 7},7!==""[e](t)}),f=d&&!i(function(){var t=!1,A=/a/;return"split"===e&&((A={}).constructor={},A.constructor[l]=function(){return A},A.flags="",A[h]=/./[h]),A.exec=function(){return t=!0,null},A[h](""),!t});if(!d||!f||A){var p=/./[h],g=t(h,""[e],function(e,t,A,n,i){var o=t.exec;return o===s||o===c.exec?d&&!i?{done:!0,value:r(p,t,A,n)}:{done:!0,value:r(e,A,t,n)}:{done:!1}});n(String.prototype,e,g[0]),n(c,h,g[1])}u&&a(c[h],"sham",!0)}},"./node_modules/core-js/internals/freezing.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},"./node_modules/core-js/internals/function-apply.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-bind-native.js"),n=Function.prototype,s=n.apply,i=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?i.bind(s):function(){return i.apply(s,arguments)})},"./node_modules/core-js/internals/function-bind-context.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this-clause.js"),n=A("./node_modules/core-js/internals/a-callable.js"),s=A("./node_modules/core-js/internals/function-bind-native.js"),i=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:s?i(e,t):function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/function-bind-native.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js");e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},"./node_modules/core-js/internals/function-call.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-bind-native.js"),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},"./node_modules/core-js/internals/function-name.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/has-own-property.js"),s=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,o=n(s,"name"),a=o&&"something"===function(){}.name,l=o&&(!r||r&&i(s,"name").configurable);e.exports={EXISTS:o,PROPER:a,CONFIGURABLE:l}},"./node_modules/core-js/internals/function-uncurry-this-accessor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/a-callable.js");e.exports=function(e,t,A){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[A]))}catch(e){}}},"./node_modules/core-js/internals/function-uncurry-this-clause.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/classof-raw.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=function(e){if("Function"===r(e))return n(e)}},"./node_modules/core-js/internals/function-uncurry-this.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-bind-native.js"),n=Function.prototype,s=n.call,i=r&&n.bind.bind(s,s);e.exports=r?i:function(e){return function(){return s.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/is-callable.js");e.exports=function(e,t){return arguments.length<2?(A=r[e],n(A)?A:void 0):r[e]&&r[e][t];var A}},"./node_modules/core-js/internals/get-iterator-direct.js":function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},"./node_modules/core-js/internals/get-iterator-method.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/classof.js"),n=A("./node_modules/core-js/internals/get-method.js"),s=A("./node_modules/core-js/internals/is-null-or-undefined.js"),i=A("./node_modules/core-js/internals/iterators.js"),o=A("./node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(!s(e))return n(e,o)||n(e,"@@iterator")||i[r(e)]}},"./node_modules/core-js/internals/get-iterator.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/a-callable.js"),s=A("./node_modules/core-js/internals/an-object.js"),i=A("./node_modules/core-js/internals/try-to-string.js"),o=A("./node_modules/core-js/internals/get-iterator-method.js"),a=TypeError;e.exports=function(e,t){var A=arguments.length<2?o(e):t;if(n(A))return s(r(A,e));throw new a(i(e)+" is not iterable")}},"./node_modules/core-js/internals/get-json-replacer-function.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/is-array.js"),s=A("./node_modules/core-js/internals/is-callable.js"),i=A("./node_modules/core-js/internals/classof-raw.js"),o=A("./node_modules/core-js/internals/to-string.js"),a=r([].push);e.exports=function(e){if(s(e))return e;if(n(e)){for(var t=e.length,A=[],r=0;r]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,A,r,u,h){var d=A+e.length,f=r.length,p=c;return void 0!==u&&(u=n(u),p=l),o(h,p,function(n,o){var l;switch(i(o,0)){case"$":return"$";case"&":return e;case"`":return a(t,0,A);case"'":return a(t,d);case"<":l=u[a(o,1,-1)];break;default:var c=+o;if(0===c)return n;if(c>f){var h=s(c/10);return 0===h?n:h<=f?void 0===r[h-1]?i(o,1):r[h-1]+i(o,1):n}l=r[c-1]}return void 0===l?"":l})}},"./node_modules/core-js/internals/global-this.js":function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has-own-property.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/to-object.js"),s=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(n(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":function(e){"use strict";e.exports={}},"./node_modules/core-js/internals/host-report-errors.js":function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},"./node_modules/core-js/internals/html.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/get-built-in.js");e.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/fails.js"),s=A("./node_modules/core-js/internals/document-create-element.js");e.exports=!r&&!n(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/indexed-object.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/fails.js"),s=A("./node_modules/core-js/internals/classof-raw.js"),i=Object,o=r("".split);e.exports=n(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?o(e,""):i(e)}:i},"./node_modules/core-js/internals/inherit-if-required.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-callable.js"),n=A("./node_modules/core-js/internals/is-object.js"),s=A("./node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,A){var i,o;return s&&r(i=t.constructor)&&i!==A&&n(o=i.prototype)&&o!==A.prototype&&s(e,o),e}},"./node_modules/core-js/internals/inspect-source.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/is-callable.js"),s=A("./node_modules/core-js/internals/shared-store.js"),i=r(Function.toString);n(s.inspectSource)||(s.inspectSource=function(e){return i(e)}),e.exports=s.inspectSource},"./node_modules/core-js/internals/internal-metadata.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/hidden-keys.js"),i=A("./node_modules/core-js/internals/is-object.js"),o=A("./node_modules/core-js/internals/has-own-property.js"),a=A("./node_modules/core-js/internals/object-define-property.js").f,l=A("./node_modules/core-js/internals/object-get-own-property-names.js"),c=A("./node_modules/core-js/internals/object-get-own-property-names-external.js"),u=A("./node_modules/core-js/internals/object-is-extensible.js"),h=A("./node_modules/core-js/internals/uid.js"),d=A("./node_modules/core-js/internals/freezing.js"),f=!1,p=h("meta"),g=0,m=function(e){a(e,p,{value:{objectID:"O"+g++,weakData:{}}})},w=e.exports={enable:function(){w.enable=function(){},f=!0;var e=l.f,t=n([].splice),A={};A[p]=1,e(A).length&&(l.f=function(A){for(var r=e(A),n=0,s=r.length;nw;w++)if((y=E(e[w]))&&l(p,y))return y;return new f(!1)}g=c(e,m)}for(v=j?e.next:g.next;!(b=n(v,g)).done;){try{y=E(b.value)}catch(e){h(g,"throw",e)}if("object"==typeof y&&y&&l(p,y))return y}return new f(!1)}},"./node_modules/core-js/internals/iterator-close-all.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e,t,A){for(var n=e.length-1;n>=0;n--)if(void 0!==e[n])try{A=r(e[n].iterator,t,A)}catch(e){t="throw",A=e}if("throw"===t)throw A;return A}},"./node_modules/core-js/internals/iterator-close.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/an-object.js"),s=A("./node_modules/core-js/internals/get-method.js");e.exports=function(e,t,A){var i,o;n(e);try{if(!(i=s(e,"return"))){if("throw"===t)throw A;return A}i=r(i,e)}catch(e){o=!0,i=e}if("throw"===t)throw A;if(o)throw i;return n(i),A}},"./node_modules/core-js/internals/iterator-create-constructor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,n=A("./node_modules/core-js/internals/object-create.js"),s=A("./node_modules/core-js/internals/create-property-descriptor.js"),i=A("./node_modules/core-js/internals/set-to-string-tag.js"),o=A("./node_modules/core-js/internals/iterators.js"),a=function(){return this};e.exports=function(e,t,A,l){var c=t+" Iterator";return e.prototype=n(r,{next:s(+!l,A)}),i(e,c,!1,!0),o[c]=a,e}},"./node_modules/core-js/internals/iterator-create-proxy.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/object-create.js"),s=A("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=A("./node_modules/core-js/internals/define-built-ins.js"),o=A("./node_modules/core-js/internals/well-known-symbol.js"),a=A("./node_modules/core-js/internals/internal-state.js"),l=A("./node_modules/core-js/internals/get-method.js"),c=A("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,u=A("./node_modules/core-js/internals/create-iter-result-object.js"),h=A("./node_modules/core-js/internals/iterator-close.js"),d=A("./node_modules/core-js/internals/iterator-close-all.js"),f=o("toStringTag"),p="IteratorHelper",g="WrapForValidIterator",m="normal",w="throw",B=a.set,y=function(e){var t=a.getterFor(e?g:p);return i(n(c),{next:function(){var A=t(this);if(e)return A.nextHandler();if(A.done)return u(void 0,!0);try{var r=A.nextHandler();return A.returnHandlerResult?r:u(r,A.done)}catch(e){throw A.done=!0,e}},return:function(){var A=t(this),n=A.iterator;if(A.done=!0,e){var s=l(n,"return");return s?r(s,n):u(void 0,!0)}if(A.inner)try{h(A.inner.iterator,m)}catch(e){return h(n,w,e)}if(A.openIters)try{d(A.openIters,m)}catch(e){return h(n,w,e)}return n&&h(n,m),u(void 0,!0)}})},v=y(!0),b=y(!1);s(b,f,"Iterator Helper"),e.exports=function(e,t,A){var r=function(r,n){n?(n.iterator=r.iterator,n.next=r.next):n=r,n.type=t?g:p,n.returnHandlerResult=!!A,n.nextHandler=e,n.counter=0,n.done=!1,B(this,n)};return r.prototype=t?v:b,r}},"./node_modules/core-js/internals/iterator-define.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/is-pure.js"),i=A("./node_modules/core-js/internals/function-name.js"),o=A("./node_modules/core-js/internals/is-callable.js"),a=A("./node_modules/core-js/internals/iterator-create-constructor.js"),l=A("./node_modules/core-js/internals/object-get-prototype-of.js"),c=A("./node_modules/core-js/internals/object-set-prototype-of.js"),u=A("./node_modules/core-js/internals/set-to-string-tag.js"),h=A("./node_modules/core-js/internals/create-non-enumerable-property.js"),d=A("./node_modules/core-js/internals/define-built-in.js"),f=A("./node_modules/core-js/internals/well-known-symbol.js"),p=A("./node_modules/core-js/internals/iterators.js"),g=A("./node_modules/core-js/internals/iterators-core.js"),m=i.PROPER,w=i.CONFIGURABLE,B=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,v=f("iterator"),b="keys",C="values",_="entries",j=function(){return this};e.exports=function(e,t,A,i,f,g,x){a(A,t,i);var F,Q,U,E=function(e){if(e===f&&k)return k;if(!y&&e&&e in I)return I[e];switch(e){case b:case C:case _:return function(){return new A(this,e)}}return function(){return new A(this)}},S=t+" Iterator",L=!1,I=e.prototype,N=I[v]||I["@@iterator"]||f&&I[f],k=!y&&N||E(f),H="Array"===t&&I.entries||N;if(H&&(F=l(H.call(new e)))!==Object.prototype&&F.next&&(s||l(F)===B||(c?c(F,B):o(F[v])||d(F,v,j)),u(F,S,!0,!0),s&&(p[S]=j)),m&&f===C&&N&&N.name!==C&&(!s&&w?h(I,"name",C):(L=!0,k=function(){return n(N,this)})),f)if(Q={values:E(C),keys:g?k:E(b),entries:E(_)},x)for(U in Q)(y||L||!(U in I))&&d(I,U,Q[U]);else r({target:t,proto:!0,forced:y||L},Q);return s&&!x||I[v]===k||d(I,v,k,{name:f}),p[t]=k,Q}},"./node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js":function(e){"use strict";e.exports=function(e,t){var A="function"==typeof Iterator&&Iterator.prototype[e];if(A)try{A.call({next:null},t).next()}catch(e){return!0}}},"./node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js");e.exports=function(e,t){var A=r.Iterator,n=A&&A.prototype,s=n&&n[e],i=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return s}},"./node_modules/core-js/internals/iterators-core.js":function(e,t,A){"use strict";var r,n,s,i=A("./node_modules/core-js/internals/fails.js"),o=A("./node_modules/core-js/internals/is-callable.js"),a=A("./node_modules/core-js/internals/is-object.js"),l=A("./node_modules/core-js/internals/object-create.js"),c=A("./node_modules/core-js/internals/object-get-prototype-of.js"),u=A("./node_modules/core-js/internals/define-built-in.js"),h=A("./node_modules/core-js/internals/well-known-symbol.js"),d=A("./node_modules/core-js/internals/is-pure.js"),f=h("iterator"),p=!1;[].keys&&("next"in(s=[].keys())?(n=c(c(s)))!==Object.prototype&&(r=n):p=!0),!a(r)||i(function(){var e={};return r[f].call(e)!==e})?r={}:d&&(r=l(r)),o(r[f])||u(r,f,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},"./node_modules/core-js/internals/iterators.js":function(e){"use strict";e.exports={}},"./node_modules/core-js/internals/length-of-array-like.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-length.js");e.exports=function(e){return r(e.length)}},"./node_modules/core-js/internals/make-built-in.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/fails.js"),s=A("./node_modules/core-js/internals/is-callable.js"),i=A("./node_modules/core-js/internals/has-own-property.js"),o=A("./node_modules/core-js/internals/descriptors.js"),a=A("./node_modules/core-js/internals/function-name.js").CONFIGURABLE,l=A("./node_modules/core-js/internals/inspect-source.js"),c=A("./node_modules/core-js/internals/internal-state.js"),u=c.enforce,h=c.get,d=String,f=Object.defineProperty,p=r("".slice),g=r("".replace),m=r([].join),w=o&&!n(function(){return 8!==f(function(){},"length",{value:8}).length}),B=String(String).split("String"),y=e.exports=function(e,t,A){"Symbol("===p(d(t),0,7)&&(t="["+g(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(t="get "+t),A&&A.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),w&&A&&i(A,"arity")&&e.length!==A.arity&&f(e,"length",{value:A.arity});try{A&&i(A,"constructor")&&A.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=u(e);return i(r,"source")||(r.source=m(B,"string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return s(this)&&h(this).source||l(this)},"toString")},"./node_modules/core-js/internals/math-trunc.js":function(e){"use strict";var t=Math.ceil,A=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?A:t)(r)}},"./node_modules/core-js/internals/microtask.js":function(e,t,A){"use strict";var r,n,s,i,o,a=A("./node_modules/core-js/internals/global-this.js"),l=A("./node_modules/core-js/internals/safe-get-built-in.js"),c=A("./node_modules/core-js/internals/function-bind-context.js"),u=A("./node_modules/core-js/internals/task.js").set,h=A("./node_modules/core-js/internals/queue.js"),d=A("./node_modules/core-js/internals/environment-is-ios.js"),f=A("./node_modules/core-js/internals/environment-is-ios-pebble.js"),p=A("./node_modules/core-js/internals/environment-is-webos-webkit.js"),g=A("./node_modules/core-js/internals/environment-is-node.js"),m=a.MutationObserver||a.WebKitMutationObserver,w=a.document,B=a.process,y=a.Promise,v=l("queueMicrotask");if(!v){var b=new h,C=function(){var e,t;for(g&&(e=B.domain)&&e.exit();t=b.get();)try{t()}catch(e){throw b.head&&r(),e}e&&e.enter()};d||g||p||!m||!w?!f&&y&&y.resolve?((i=y.resolve(void 0)).constructor=y,o=c(i.then,i),r=function(){o(C)}):g?r=function(){B.nextTick(C)}:(u=c(u,a),r=function(){u(C)}):(n=!0,s=w.createTextNode(""),new m(C).observe(s,{characterData:!0}),r=function(){s.data=n=!n}),v=function(e){b.head||r(),b.add(e)}}e.exports=v},"./node_modules/core-js/internals/new-promise-capability.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-callable.js"),n=TypeError,s=function(e){var t,A;this.promise=new e(function(e,r){if(void 0!==t||void 0!==A)throw new n("Bad Promise constructor");t=e,A=r}),this.resolve=r(t),this.reject=r(A)};e.exports.f=function(e){return new s(e)}},"./node_modules/core-js/internals/not-a-regexp.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-regexp.js"),n=TypeError;e.exports=function(e){if(r(e))throw new n("The method doesn't accept regular expressions");return e}},"./node_modules/core-js/internals/object-assign.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/function-call.js"),i=A("./node_modules/core-js/internals/fails.js"),o=A("./node_modules/core-js/internals/object-keys.js"),a=A("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=A("./node_modules/core-js/internals/object-property-is-enumerable.js"),c=A("./node_modules/core-js/internals/to-object.js"),u=A("./node_modules/core-js/internals/indexed-object.js"),h=Object.assign,d=Object.defineProperty,f=n([].concat);e.exports=!h||i(function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},A=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[A]=7,n.split("").forEach(function(e){t[e]=e}),7!==h({},e)[A]||o(h({},t)).join("")!==n})?function(e,t){for(var A=c(e),n=arguments.length,i=1,h=a.f,d=l.f;n>i;)for(var p,g=u(arguments[i++]),m=h?f(o(g),h(g)):o(g),w=m.length,B=0;w>B;)p=m[B++],r&&!s(d,g,p)||(A[p]=g[p]);return A}:h},"./node_modules/core-js/internals/object-create.js":function(e,t,A){"use strict";var r,n=A("./node_modules/core-js/internals/an-object.js"),s=A("./node_modules/core-js/internals/object-define-properties.js"),i=A("./node_modules/core-js/internals/enum-bug-keys.js"),o=A("./node_modules/core-js/internals/hidden-keys.js"),a=A("./node_modules/core-js/internals/html.js"),l=A("./node_modules/core-js/internals/document-create-element.js"),c=A("./node_modules/core-js/internals/shared-key.js"),u="prototype",h="script",d=c("IE_PROTO"),f=function(){},p=function(e){return"<"+h+">"+e+""},g=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,A;m="undefined"!=typeof document?document.domain&&r?g(r):(t=l("iframe"),A="java"+h+":",t.style.display="none",a.appendChild(t),t.src=String(A),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):g(r);for(var n=i.length;n--;)delete m[u][i[n]];return m()};o[d]=!0,e.exports=Object.create||function(e,t){var A;return null!==e?(f[u]=n(e),A=new f,f[u]=null,A[d]=e):A=m(),void 0===t?A:s.f(A,t)}},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/v8-prototype-define-bug.js"),s=A("./node_modules/core-js/internals/object-define-property.js"),i=A("./node_modules/core-js/internals/an-object.js"),o=A("./node_modules/core-js/internals/to-indexed-object.js"),a=A("./node_modules/core-js/internals/object-keys.js");t.f=r&&!n?Object.defineProperties:function(e,t){i(e);for(var A,r=o(t),n=a(t),l=n.length,c=0;l>c;)s.f(e,A=n[c++],r[A]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/ie8-dom-define.js"),s=A("./node_modules/core-js/internals/v8-prototype-define-bug.js"),i=A("./node_modules/core-js/internals/an-object.js"),o=A("./node_modules/core-js/internals/to-property-key.js"),a=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",d="writable";t.f=r?s?function(e,t,A){if(i(e),t=o(t),i(A),"function"==typeof e&&"prototype"===t&&"value"in A&&d in A&&!A[d]){var r=c(e,t);r&&r[d]&&(e[t]=A.value,A={configurable:h in A?A[h]:r[h],enumerable:u in A?A[u]:r[u],writable:!1})}return l(e,t,A)}:l:function(e,t,A){if(i(e),t=o(t),i(A),n)try{return l(e,t,A)}catch(e){}if("get"in A||"set"in A)throw new a("Accessors not supported");return"value"in A&&(e[t]=A.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/object-property-is-enumerable.js"),i=A("./node_modules/core-js/internals/create-property-descriptor.js"),o=A("./node_modules/core-js/internals/to-indexed-object.js"),a=A("./node_modules/core-js/internals/to-property-key.js"),l=A("./node_modules/core-js/internals/has-own-property.js"),c=A("./node_modules/core-js/internals/ie8-dom-define.js"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=a(t),c)try{return u(e,t)}catch(e){}if(l(e,t))return i(!n(s.f,e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/classof-raw.js"),n=A("./node_modules/core-js/internals/to-indexed-object.js"),s=A("./node_modules/core-js/internals/object-get-own-property-names.js").f,i=A("./node_modules/core-js/internals/array-slice.js"),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"Window"===r(e)?function(e){try{return s(e)}catch(e){return i(o)}}(e):s(n(e))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/object-keys-internal.js"),n=A("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/has-own-property.js"),n=A("./node_modules/core-js/internals/is-callable.js"),s=A("./node_modules/core-js/internals/to-object.js"),i=A("./node_modules/core-js/internals/shared-key.js"),o=A("./node_modules/core-js/internals/correct-prototype-getter.js"),a=i("IE_PROTO"),l=Object,c=l.prototype;e.exports=o?l.getPrototypeOf:function(e){var t=s(e);if(r(t,a))return t[a];var A=t.constructor;return n(A)&&t instanceof A?A.prototype:t instanceof l?c:null}},"./node_modules/core-js/internals/object-is-extensible.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/fails.js"),n=A("./node_modules/core-js/internals/is-object.js"),s=A("./node_modules/core-js/internals/classof-raw.js"),i=A("./node_modules/core-js/internals/array-buffer-non-extensible.js"),o=Object.isExtensible,a=r(function(){o(1)});e.exports=a||i?function(e){return!!n(e)&&(!i||"ArrayBuffer"!==s(e))&&(!o||o(e))}:o},"./node_modules/core-js/internals/object-is-prototype-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r({}.isPrototypeOf)},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/has-own-property.js"),s=A("./node_modules/core-js/internals/to-indexed-object.js"),i=A("./node_modules/core-js/internals/array-includes.js").indexOf,o=A("./node_modules/core-js/internals/hidden-keys.js"),a=r([].push);e.exports=function(e,t){var A,r=s(e),l=0,c=[];for(A in r)!n(o,A)&&n(r,A)&&a(c,A);for(;t.length>l;)n(r,A=t[l++])&&(~i(c,A)||a(c,A));return c}},"./node_modules/core-js/internals/object-keys.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/object-keys-internal.js"),n=A("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,n)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t){"use strict";var A={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!A.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:A},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this-accessor.js"),n=A("./node_modules/core-js/internals/is-object.js"),s=A("./node_modules/core-js/internals/require-object-coercible.js"),i=A("./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,A={};try{(e=r(Object.prototype,"__proto__","set"))(A,[]),t=A instanceof Array}catch(e){}return function(A,r){return s(A),i(r),n(A)?(t?e(A,r):A.__proto__=r,A):A}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-string-tag-support.js"),n=A("./node_modules/core-js/internals/classof.js");e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/is-callable.js"),s=A("./node_modules/core-js/internals/is-object.js"),i=TypeError;e.exports=function(e,t){var A,o;if("string"===t&&n(A=e.toString)&&!s(o=r(A,e)))return o;if(n(A=e.valueOf)&&!s(o=r(A,e)))return o;if("string"!==t&&n(A=e.toString)&&!s(o=r(A,e)))return o;throw new i("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/get-built-in.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/object-get-own-property-names.js"),i=A("./node_modules/core-js/internals/object-get-own-property-symbols.js"),o=A("./node_modules/core-js/internals/an-object.js"),a=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=s.f(o(e)),A=i.f;return A?a(t,A(e)):t}},"./node_modules/core-js/internals/path.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js");e.exports=r},"./node_modules/core-js/internals/perform.js":function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},"./node_modules/core-js/internals/promise-constructor-detection.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/promise-native-constructor.js"),s=A("./node_modules/core-js/internals/is-callable.js"),i=A("./node_modules/core-js/internals/is-forced.js"),o=A("./node_modules/core-js/internals/inspect-source.js"),a=A("./node_modules/core-js/internals/well-known-symbol.js"),l=A("./node_modules/core-js/internals/environment.js"),c=A("./node_modules/core-js/internals/is-pure.js"),u=A("./node_modules/core-js/internals/environment-v8-version.js"),h=n&&n.prototype,d=a("species"),f=!1,p=s(r.PromiseRejectionEvent),g=i("Promise",function(){var e=o(n),t=e!==String(n);if(!t&&66===u)return!0;if(c&&(!h.catch||!h.finally))return!0;if(!u||u<51||!/native code/.test(e)){var A=new n(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((A.constructor={})[d]=r,!(f=A.then(function(){})instanceof r))return!0}return!(t||"BROWSER"!==l&&"DENO"!==l||p)});e.exports={CONSTRUCTOR:g,REJECTION_EVENT:p,SUBCLASSING:f}},"./node_modules/core-js/internals/promise-native-constructor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js");e.exports=r.Promise},"./node_modules/core-js/internals/promise-resolve.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/an-object.js"),n=A("./node_modules/core-js/internals/is-object.js"),s=A("./node_modules/core-js/internals/new-promise-capability.js");e.exports=function(e,t){if(r(e),n(t)&&t.constructor===e)return t;var A=s.f(e);return(0,A.resolve)(t),A.promise}},"./node_modules/core-js/internals/promise-statics-incorrect-iteration.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/promise-native-constructor.js"),n=A("./node_modules/core-js/internals/check-correctness-of-iteration.js"),s=A("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR;e.exports=s||!n(function(e){r.all(e).then(void 0,function(){})})},"./node_modules/core-js/internals/queue.js":function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},A=this.tail;A?A.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},"./node_modules/core-js/internals/regexp-exec-abstract.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/an-object.js"),s=A("./node_modules/core-js/internals/is-callable.js"),i=A("./node_modules/core-js/internals/classof-raw.js"),o=A("./node_modules/core-js/internals/regexp-exec.js"),a=TypeError;e.exports=function(e,t){var A=e.exec;if(s(A)){var l=r(A,e,t);return null!==l&&n(l),l}if("RegExp"===i(e))return r(o,e,t);throw new a("RegExp#exec called on incompatible receiver")}},"./node_modules/core-js/internals/regexp-exec.js":function(e,t,A){"use strict";var r,n,s=A("./node_modules/core-js/internals/function-call.js"),i=A("./node_modules/core-js/internals/function-uncurry-this.js"),o=A("./node_modules/core-js/internals/to-string.js"),a=A("./node_modules/core-js/internals/regexp-flags.js"),l=A("./node_modules/core-js/internals/regexp-sticky-helpers.js"),c=A("./node_modules/core-js/internals/shared.js"),u=A("./node_modules/core-js/internals/object-create.js"),h=A("./node_modules/core-js/internals/internal-state.js").get,d=A("./node_modules/core-js/internals/regexp-unsupported-dot-all.js"),f=A("./node_modules/core-js/internals/regexp-unsupported-ncg.js"),p=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,w=i("".charAt),B=i("".indexOf),y=i("".replace),v=i("".slice),b=(n=/b*/g,s(g,r=/a/,"a"),s(g,n,"a"),0!==r.lastIndex||0!==n.lastIndex),C=l.BROKEN_CARET,_=void 0!==/()??/.exec("")[1];(b||_||C||d||f)&&(m=function(e){var t,A,r,n,i,l,c,d=this,f=h(d),j=o(e),x=f.raw;if(x)return x.lastIndex=d.lastIndex,t=s(m,x,j),d.lastIndex=x.lastIndex,t;var F=f.groups,Q=C&&d.sticky,U=s(a,d),E=d.source,S=0,L=j;if(Q&&(U=y(U,"y",""),-1===B(U,"g")&&(U+="g"),L=v(j,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==w(j,d.lastIndex-1))&&(E="(?: "+E+")",L=" "+L,S++),A=new RegExp("^(?:"+E+")",U)),_&&(A=new RegExp("^"+E+"$(?!\\s)",U)),b&&(r=d.lastIndex),n=s(g,Q?A:d,L),Q?n?(n.input=v(n.input,S),n[0]=v(n[0],S),n.index=d.lastIndex,d.lastIndex+=n[0].length):d.lastIndex=0:b&&n&&(d.lastIndex=d.global?n.index+n[0].length:r),_&&n&&n.length>1&&s(p,n[0],A,function(){for(i=1;ib)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})},"./node_modules/core-js/internals/require-object-coercible.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/is-null-or-undefined.js"),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},"./node_modules/core-js/internals/safe-get-built-in.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/descriptors.js"),s=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!n)return r[e];var t=s(r,e);return t&&t.value}},"./node_modules/core-js/internals/schedulers-fix.js":function(e,t,A){"use strict";var r,n=A("./node_modules/core-js/internals/global-this.js"),s=A("./node_modules/core-js/internals/function-apply.js"),i=A("./node_modules/core-js/internals/is-callable.js"),o=A("./node_modules/core-js/internals/environment.js"),a=A("./node_modules/core-js/internals/environment-user-agent.js"),l=A("./node_modules/core-js/internals/array-slice.js"),c=A("./node_modules/core-js/internals/validate-arguments-length.js"),u=n.Function,h=/MSIE .\./.test(a)||"BUN"===o&&((r=n.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var A=t?2:1;return h?function(r,n){var o=c(arguments.length,1)>A,a=i(r)?r:u(r),h=o?l(arguments,A):[],d=o?function(){s(a,this,h)}:a;return t?e(d,n):e(d)}:e}},"./node_modules/core-js/internals/set-clone.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/set-helpers.js"),n=A("./node_modules/core-js/internals/set-iterate.js"),s=r.Set,i=r.add;e.exports=function(e){var t=new s;return n(e,function(e){i(t,e)}),t}},"./node_modules/core-js/internals/set-difference.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-set.js"),n=A("./node_modules/core-js/internals/set-helpers.js"),s=A("./node_modules/core-js/internals/set-clone.js"),i=A("./node_modules/core-js/internals/set-size.js"),o=A("./node_modules/core-js/internals/get-set-record.js"),a=A("./node_modules/core-js/internals/set-iterate.js"),l=A("./node_modules/core-js/internals/iterate-simple.js"),c=n.has,u=n.remove;e.exports=function(e){var t=r(this),A=o(e),n=s(t);return i(t)<=A.size?a(t,function(e){A.includes(e)&&u(n,e)}):l(A.getIterator(),function(e){c(n,e)&&u(n,e)}),n}},"./node_modules/core-js/internals/set-helpers.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=Set.prototype;e.exports={Set:Set,add:r(n.add),has:r(n.has),remove:r(n.delete),proto:n}},"./node_modules/core-js/internals/set-intersection.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-set.js"),n=A("./node_modules/core-js/internals/set-helpers.js"),s=A("./node_modules/core-js/internals/set-size.js"),i=A("./node_modules/core-js/internals/get-set-record.js"),o=A("./node_modules/core-js/internals/set-iterate.js"),a=A("./node_modules/core-js/internals/iterate-simple.js"),l=n.Set,c=n.add,u=n.has;e.exports=function(e){var t=r(this),A=i(e),n=new l;return s(t)>A.size?a(A.getIterator(),function(e){u(t,e)&&c(n,e)}):o(t,function(e){A.includes(e)&&c(n,e)}),n}},"./node_modules/core-js/internals/set-is-disjoint-from.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-set.js"),n=A("./node_modules/core-js/internals/set-helpers.js").has,s=A("./node_modules/core-js/internals/set-size.js"),i=A("./node_modules/core-js/internals/get-set-record.js"),o=A("./node_modules/core-js/internals/set-iterate.js"),a=A("./node_modules/core-js/internals/iterate-simple.js"),l=A("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e){var t=r(this),A=i(e);if(s(t)<=A.size)return!1!==o(t,function(e){if(A.includes(e))return!1},!0);var c=A.getIterator();return!1!==a(c,function(e){if(n(t,e))return l(c,"normal",!1)})}},"./node_modules/core-js/internals/set-is-subset-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-set.js"),n=A("./node_modules/core-js/internals/set-size.js"),s=A("./node_modules/core-js/internals/set-iterate.js"),i=A("./node_modules/core-js/internals/get-set-record.js");e.exports=function(e){var t=r(this),A=i(e);return!(n(t)>A.size)&&!1!==s(t,function(e){if(!A.includes(e))return!1},!0)}},"./node_modules/core-js/internals/set-is-superset-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/a-set.js"),n=A("./node_modules/core-js/internals/set-helpers.js").has,s=A("./node_modules/core-js/internals/set-size.js"),i=A("./node_modules/core-js/internals/get-set-record.js"),o=A("./node_modules/core-js/internals/iterate-simple.js"),a=A("./node_modules/core-js/internals/iterator-close.js");e.exports=function(e){var t=r(this),A=i(e);if(s(t)3})}},"./node_modules/core-js/internals/string-multibyte.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/to-integer-or-infinity.js"),s=A("./node_modules/core-js/internals/to-string.js"),i=A("./node_modules/core-js/internals/require-object-coercible.js"),o=r("".charAt),a=r("".charCodeAt),l=r("".slice),c=function(e){return function(t,A){var r,c,u=s(i(t)),h=n(A),d=u.length;return h<0||h>=d?e?"":void 0:(r=a(u,h))<55296||r>56319||h+1===d||(c=a(u,h+1))<56320||c>57343?e?o(u,h):r:e?l(u,h,h+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},"./node_modules/core-js/internals/string-trim-forced.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-name.js").PROPER,n=A("./node_modules/core-js/internals/fails.js"),s=A("./node_modules/core-js/internals/whitespaces.js");e.exports=function(e){return n(function(){return!!s[e]()||"​…᠎"!=="​…᠎"[e]()||r&&s[e].name!==e})}},"./node_modules/core-js/internals/string-trim.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=A("./node_modules/core-js/internals/require-object-coercible.js"),s=A("./node_modules/core-js/internals/to-string.js"),i=A("./node_modules/core-js/internals/whitespaces.js"),o=r("".replace),a=RegExp("^["+i+"]+"),l=RegExp("(^|[^"+i+"])["+i+"]+$"),c=function(e){return function(t){var A=s(n(t));return 1&e&&(A=o(A,a,"")),2&e&&(A=o(A,l,"$1")),A}};e.exports={start:c(1),end:c(2),trim:c(3)}},"./node_modules/core-js/internals/symbol-constructor-detection.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/environment-v8-version.js"),n=A("./node_modules/core-js/internals/fails.js"),s=A("./node_modules/core-js/internals/global-this.js").String;e.exports=!!Object.getOwnPropertySymbols&&!n(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},"./node_modules/core-js/internals/symbol-define-to-primitive.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/get-built-in.js"),s=A("./node_modules/core-js/internals/well-known-symbol.js"),i=A("./node_modules/core-js/internals/define-built-in.js");e.exports=function(){var e=n("Symbol"),t=e&&e.prototype,A=t&&t.valueOf,o=s("toPrimitive");t&&!t[o]&&i(t,o,function(e){return r(A,this)},{arity:1})}},"./node_modules/core-js/internals/symbol-registry-detection.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/symbol-constructor-detection.js");e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},"./node_modules/core-js/internals/task.js":function(e,t,A){"use strict";var r,n,s,i,o=A("./node_modules/core-js/internals/global-this.js"),a=A("./node_modules/core-js/internals/function-apply.js"),l=A("./node_modules/core-js/internals/function-bind-context.js"),c=A("./node_modules/core-js/internals/is-callable.js"),u=A("./node_modules/core-js/internals/has-own-property.js"),h=A("./node_modules/core-js/internals/fails.js"),d=A("./node_modules/core-js/internals/html.js"),f=A("./node_modules/core-js/internals/array-slice.js"),p=A("./node_modules/core-js/internals/document-create-element.js"),g=A("./node_modules/core-js/internals/validate-arguments-length.js"),m=A("./node_modules/core-js/internals/environment-is-ios.js"),w=A("./node_modules/core-js/internals/environment-is-node.js"),B=o.setImmediate,y=o.clearImmediate,v=o.process,b=o.Dispatch,C=o.Function,_=o.MessageChannel,j=o.String,x=0,F={},Q="onreadystatechange";h(function(){r=o.location});var U=function(e){if(u(F,e)){var t=F[e];delete F[e],t()}},E=function(e){return function(){U(e)}},S=function(e){U(e.data)},L=function(e){o.postMessage(j(e),r.protocol+"//"+r.host)};B&&y||(B=function(e){g(arguments.length,1);var t=c(e)?e:C(e),A=f(arguments,1);return F[++x]=function(){a(t,void 0,A)},n(x),x},y=function(e){delete F[e]},w?n=function(e){v.nextTick(E(e))}:b&&b.now?n=function(e){b.now(E(e))}:_&&!m?(i=(s=new _).port2,s.port1.onmessage=S,n=l(i.postMessage,i)):o.addEventListener&&c(o.postMessage)&&!o.importScripts&&r&&"file:"!==r.protocol&&!h(L)?(n=L,o.addEventListener("message",S,!1)):n=Q in p("script")?function(e){d.appendChild(p("script"))[Q]=function(){d.removeChild(this),U(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:B,clear:y}},"./node_modules/core-js/internals/this-number-value.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js");e.exports=r(1.1.valueOf)},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-integer-or-infinity.js"),n=Math.max,s=Math.min;e.exports=function(e,t){var A=r(e);return A<0?n(A+t,0):s(A,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/indexed-object.js"),n=A("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return r(n(e))}},"./node_modules/core-js/internals/to-integer-or-infinity.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/math-trunc.js");e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},"./node_modules/core-js/internals/to-length.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-integer-or-infinity.js"),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/require-object-coercible.js"),n=Object;e.exports=function(e){return n(r(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/is-object.js"),s=A("./node_modules/core-js/internals/is-symbol.js"),i=A("./node_modules/core-js/internals/get-method.js"),o=A("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=A("./node_modules/core-js/internals/well-known-symbol.js"),l=TypeError,c=a("toPrimitive");e.exports=function(e,t){if(!n(e)||s(e))return e;var A,a=i(e,c);if(a){if(void 0===t&&(t="default"),A=r(a,e,t),!n(A)||s(A))return A;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},"./node_modules/core-js/internals/to-property-key.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-primitive.js"),n=A("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},"./node_modules/core-js/internals/to-set-like.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/get-built-in.js"),n=A("./node_modules/core-js/internals/is-callable.js"),s=A("./node_modules/core-js/internals/is-iterable.js"),i=A("./node_modules/core-js/internals/is-object.js"),o=r("Set");e.exports=function(e){return function(e){return i(e)&&"number"==typeof e.size&&n(e.has)&&n(e.keys)}(e)?e:s(e)?new o(e):e}},"./node_modules/core-js/internals/to-string-tag-support.js":function(e,t,A){"use strict";var r={};r[A("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(r)},"./node_modules/core-js/internals/to-string.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/classof.js"),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},"./node_modules/core-js/internals/try-to-string.js":function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},"./node_modules/core-js/internals/uid.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-uncurry-this.js"),n=0,s=Math.random(),i=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++n+s,36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/symbol-constructor-detection.js");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/v8-prototype-define-bug.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/descriptors.js"),n=A("./node_modules/core-js/internals/fails.js");e.exports=r&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},"./node_modules/core-js/internals/validate-arguments-length.js":function(e){"use strict";var t=TypeError;e.exports=function(e,A){if(e=51||!n(function(){var e=[];return e[p]=!1,e.concat()[0]!==e}),m=function(e){if(!i(e))return!1;var t=e[p];return void 0!==t?!!t:s(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!h("concat")},{concat:function(e){var t,A,r,n,s,i=o(this),h=u(i,0),d=0;for(t=-1,r=arguments.length;t1?arguments[1]:void 0;return a?o(this,e,t)||0:s(this,e,t)}})},"./node_modules/core-js/modules/es.array.iterator.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-indexed-object.js"),n=A("./node_modules/core-js/internals/add-to-unscopables.js"),s=A("./node_modules/core-js/internals/iterators.js"),i=A("./node_modules/core-js/internals/internal-state.js"),o=A("./node_modules/core-js/internals/object-define-property.js").f,a=A("./node_modules/core-js/internals/iterator-define.js"),l=A("./node_modules/core-js/internals/create-iter-result-object.js"),c=A("./node_modules/core-js/internals/is-pure.js"),u=A("./node_modules/core-js/internals/descriptors.js"),h="Array Iterator",d=i.set,f=i.getterFor(h);e.exports=a(Array,"Array",function(e,t){d(this,{type:h,target:r(e),index:0,kind:t})},function(){var e=f(this),t=e.target,A=e.index++;if(!t||A>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(A,!1);case"values":return l(t[A],!1)}return l([A,t[A]],!1)},"values");var p=s.Arguments=s.Array;if(n("keys"),n("values"),n("entries"),!c&&u&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(e){}},"./node_modules/core-js/modules/es.array.join.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/indexed-object.js"),i=A("./node_modules/core-js/internals/to-indexed-object.js"),o=A("./node_modules/core-js/internals/array-method-is-strict.js"),a=n([].join);r({target:"Array",proto:!0,forced:s!==Object||!o("join",",")},{join:function(e){return a(i(this),void 0===e?",":e)}})},"./node_modules/core-js/modules/es.array.map.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/array-iteration.js").map;r({target:"Array",proto:!0,forced:!A("./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.reduce.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/array-reduce.js").left,s=A("./node_modules/core-js/internals/array-method-is-strict.js"),i=A("./node_modules/core-js/internals/environment-v8-version.js");r({target:"Array",proto:!0,forced:!A("./node_modules/core-js/internals/environment-is-node.js")&&i>79&&i<83||!s("reduce")},{reduce:function(e){var t=arguments.length;return n(this,e,t,t>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.reverse.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/is-array.js"),i=n([].reverse),o=[1,2];r({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return s(this)&&(this.length=this.length),i(this)}})},"./node_modules/core-js/modules/es.array.slice.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/is-array.js"),s=A("./node_modules/core-js/internals/is-constructor.js"),i=A("./node_modules/core-js/internals/is-object.js"),o=A("./node_modules/core-js/internals/to-absolute-index.js"),a=A("./node_modules/core-js/internals/length-of-array-like.js"),l=A("./node_modules/core-js/internals/to-indexed-object.js"),c=A("./node_modules/core-js/internals/create-property.js"),u=A("./node_modules/core-js/internals/well-known-symbol.js"),h=A("./node_modules/core-js/internals/array-method-has-species-support.js"),d=A("./node_modules/core-js/internals/array-slice.js"),f=h("slice"),p=u("species"),g=Array,m=Math.max;r({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var A,r,u,h=l(this),f=a(h),w=o(e,f),B=o(void 0===t?f:t,f);if(n(h)&&(A=h.constructor,(s(A)&&(A===g||n(A.prototype))||i(A)&&null===(A=A[p]))&&(A=void 0),A===g||void 0===A))return d(h,w,B);for(r=new(void 0===A?g:A)(m(B-w,0)),u=0;w2)if(l=y(l),43===(t=F(l,0))||45===t){if(88===(A=F(l,2))||120===A)return NaN}else if(48===t){switch(F(l,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+l}for(i=(s=x(l,2)).length,o=0;on)return NaN;return parseInt(s,r)}return+l}(t)}(e));return h(_,t=this)&&p(function(){B(t)})?u(Object(A),this,U):A};U.prototype=_,Q&&!n&&(_.constructor=U),r({global:!0,constructor:!0,wrap:!0,forced:Q},{Number:U});var E=function(e,t){for(var A,r=s?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)c(t,A=r[n])&&!c(e,A)&&w(e,A,m(t,A))};n&&C&&E(o[v],C),(Q||n)&&E(o[v],b)},"./node_modules/core-js/modules/es.object.assign.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/object-assign.js");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},"./node_modules/core-js/modules/es.object.get-own-property-symbols.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/symbol-constructor-detection.js"),s=A("./node_modules/core-js/internals/fails.js"),i=A("./node_modules/core-js/internals/object-get-own-property-symbols.js"),o=A("./node_modules/core-js/internals/to-object.js");r({target:"Object",stat:!0,forced:!n||s(function(){i.f(1)})},{getOwnPropertySymbols:function(e){var t=i.f;return t?t(o(e)):[]}})},"./node_modules/core-js/modules/es.object.keys.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/to-object.js"),s=A("./node_modules/core-js/internals/object-keys.js");r({target:"Object",stat:!0,forced:A("./node_modules/core-js/internals/fails.js")(function(){s(1)})},{keys:function(e){return s(n(e))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/to-string-tag-support.js"),n=A("./node_modules/core-js/internals/define-built-in.js"),s=A("./node_modules/core-js/internals/object-to-string.js");r||n(Object.prototype,"toString",s,{unsafe:!0})},"./node_modules/core-js/modules/es.promise.all.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/a-callable.js"),i=A("./node_modules/core-js/internals/new-promise-capability.js"),o=A("./node_modules/core-js/internals/perform.js"),a=A("./node_modules/core-js/internals/iterate.js");r({target:"Promise",stat:!0,forced:A("./node_modules/core-js/internals/promise-statics-incorrect-iteration.js")},{all:function(e){var t=this,A=i.f(t),r=A.resolve,l=A.reject,c=o(function(){var A=s(t.resolve),i=[],o=0,c=1;a(e,function(e){var s=o++,a=!1;c++,n(A,t,e).then(function(e){a||(a=!0,i[s]=e,--c||r(i))},l)}),--c||r(i)});return c.error&&l(c.value),A.promise}})},"./node_modules/core-js/modules/es.promise.catch.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/is-pure.js"),s=A("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR,i=A("./node_modules/core-js/internals/promise-native-constructor.js"),o=A("./node_modules/core-js/internals/get-built-in.js"),a=A("./node_modules/core-js/internals/is-callable.js"),l=A("./node_modules/core-js/internals/define-built-in.js"),c=i&&i.prototype;if(r({target:"Promise",proto:!0,forced:s,real:!0},{catch:function(e){return this.then(void 0,e)}}),!n&&a(i)){var u=o("Promise").prototype.catch;c.catch!==u&&l(c,"catch",u,{unsafe:!0})}},"./node_modules/core-js/modules/es.promise.constructor.js":function(e,t,A){"use strict";var r,n,s,i,o=A("./node_modules/core-js/internals/export.js"),a=A("./node_modules/core-js/internals/is-pure.js"),l=A("./node_modules/core-js/internals/environment-is-node.js"),c=A("./node_modules/core-js/internals/global-this.js"),u=A("./node_modules/core-js/internals/path.js"),h=A("./node_modules/core-js/internals/function-call.js"),d=A("./node_modules/core-js/internals/define-built-in.js"),f=A("./node_modules/core-js/internals/object-set-prototype-of.js"),p=A("./node_modules/core-js/internals/set-to-string-tag.js"),g=A("./node_modules/core-js/internals/set-species.js"),m=A("./node_modules/core-js/internals/a-callable.js"),w=A("./node_modules/core-js/internals/is-callable.js"),B=A("./node_modules/core-js/internals/is-object.js"),y=A("./node_modules/core-js/internals/an-instance.js"),v=A("./node_modules/core-js/internals/species-constructor.js"),b=A("./node_modules/core-js/internals/task.js").set,C=A("./node_modules/core-js/internals/microtask.js"),_=A("./node_modules/core-js/internals/host-report-errors.js"),j=A("./node_modules/core-js/internals/perform.js"),x=A("./node_modules/core-js/internals/queue.js"),F=A("./node_modules/core-js/internals/internal-state.js"),Q=A("./node_modules/core-js/internals/promise-native-constructor.js"),U=A("./node_modules/core-js/internals/promise-constructor-detection.js"),E=A("./node_modules/core-js/internals/new-promise-capability.js"),S="Promise",L=U.CONSTRUCTOR,I=U.REJECTION_EVENT,N=U.SUBCLASSING,k=F.getterFor(S),H=F.set,P=Q&&Q.prototype,T=Q,O=P,M=c.TypeError,D=c.document,R=c.process,K=E.f,V=K,G=!!(D&&D.createEvent&&c.dispatchEvent),z="unhandledrejection",q=function(e){var t;return!(!B(e)||!w(t=e.then))&&t},W=function(e,t){var A,r,n,s=t.value,i=1===t.state,o=i?e.ok:e.fail,a=e.resolve,l=e.reject,c=e.domain;try{o?(i||(2===t.rejection&&$(t),t.rejection=1),!0===o?A=s:(c&&c.enter(),A=o(s),c&&(c.exit(),n=!0)),A===e.promise?l(new M("Promise-chain cycle")):(r=q(A))?h(r,A,a,l):a(A)):l(s)}catch(e){c&&!n&&c.exit(),l(e)}},X=function(e,t){e.notified||(e.notified=!0,C(function(){for(var A,r=e.reactions;A=r.get();)W(A,e);e.notified=!1,t&&!e.rejection&&J(e)}))},Y=function(e,t,A){var r,n;G?((r=D.createEvent("Event")).promise=t,r.reason=A,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:A},!I&&(n=c["on"+e])?n(r):e===z&&_("Unhandled promise rejection",A)},J=function(e){h(b,c,function(){var t,A=e.facade,r=e.value;if(Z(e)&&(t=j(function(){l?R.emit("unhandledRejection",r,A):Y(z,A,r)}),e.rejection=l||Z(e)?2:1,t.error))throw t.value})},Z=function(e){return 1!==e.rejection&&!e.parent},$=function(e){h(b,c,function(){var t=e.facade;l?R.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)})},ee=function(e,t,A){return function(r){e(t,r,A)}},te=function(e,t,A){e.done||(e.done=!0,A&&(e=A),e.value=t,e.state=2,X(e,!0))},Ae=function(e,t,A){if(!e.done){e.done=!0,A&&(e=A);try{if(e.facade===t)throw new M("Promise can't be resolved itself");var r=q(t);r?C(function(){var A={done:!1};try{h(r,t,ee(Ae,A,e),ee(te,A,e))}catch(t){te(A,t,e)}}):(e.value=t,e.state=1,X(e,!1))}catch(t){te({done:!1},t,e)}}};if(L&&(O=(T=function(e){y(this,O),m(e),h(r,this);var t=k(this);try{e(ee(Ae,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(r=function(e){H(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:null})}).prototype=d(O,"then",function(e,t){var A=k(this),r=K(v(this,T));return A.parent=!0,r.ok=!w(e)||e,r.fail=w(t)&&t,r.domain=l?R.domain:void 0,0===A.state?A.reactions.add(r):C(function(){W(r,A)}),r.promise}),n=function(){var e=new r,t=k(e);this.promise=e,this.resolve=ee(Ae,t),this.reject=ee(te,t)},E.f=K=function(e){return e===T||e===s?new n(e):V(e)},!a&&w(Q)&&P!==Object.prototype)){i=P.then,N||d(P,"then",function(e,t){var A=this;return new T(function(e,t){h(i,A,e,t)}).then(e,t)},{unsafe:!0});try{delete P.constructor}catch(e){}f&&f(P,O)}o({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:T}),s=u.Promise,p(T,S,!1,!0),g(S)},"./node_modules/core-js/modules/es.promise.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.promise.constructor.js"),A("./node_modules/core-js/modules/es.promise.all.js"),A("./node_modules/core-js/modules/es.promise.catch.js"),A("./node_modules/core-js/modules/es.promise.race.js"),A("./node_modules/core-js/modules/es.promise.reject.js"),A("./node_modules/core-js/modules/es.promise.resolve.js")},"./node_modules/core-js/modules/es.promise.race.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/a-callable.js"),i=A("./node_modules/core-js/internals/new-promise-capability.js"),o=A("./node_modules/core-js/internals/perform.js"),a=A("./node_modules/core-js/internals/iterate.js");r({target:"Promise",stat:!0,forced:A("./node_modules/core-js/internals/promise-statics-incorrect-iteration.js")},{race:function(e){var t=this,A=i.f(t),r=A.reject,l=o(function(){var i=s(t.resolve);a(e,function(e){n(i,t,e).then(A.resolve,r)})});return l.error&&r(l.value),A.promise}})},"./node_modules/core-js/modules/es.promise.reject.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/new-promise-capability.js");r({target:"Promise",stat:!0,forced:A("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR},{reject:function(e){var t=n.f(this);return(0,t.reject)(e),t.promise}})},"./node_modules/core-js/modules/es.promise.resolve.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/get-built-in.js"),s=A("./node_modules/core-js/internals/is-pure.js"),i=A("./node_modules/core-js/internals/promise-native-constructor.js"),o=A("./node_modules/core-js/internals/promise-constructor-detection.js").CONSTRUCTOR,a=A("./node_modules/core-js/internals/promise-resolve.js"),l=n("Promise"),c=s&&!o;r({target:"Promise",stat:!0,forced:s||o},{resolve:function(e){return a(c&&this===l?i:this,e)}})},"./node_modules/core-js/modules/es.regexp.exec.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/regexp-exec.js");r({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},"./node_modules/core-js/modules/es.regexp.test.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.regexp.exec.js");var r,n,s=A("./node_modules/core-js/internals/export.js"),i=A("./node_modules/core-js/internals/function-call.js"),o=A("./node_modules/core-js/internals/is-callable.js"),a=A("./node_modules/core-js/internals/an-object.js"),l=A("./node_modules/core-js/internals/to-string.js"),c=(r=!1,(n=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===n.test("abc")&&r),u=/./.test;s({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=a(this),A=l(e),r=t.exec;if(!o(r))return i(u,t,A);var n=i(r,t,A);return null!==n&&(a(n),!0)}})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-name.js").PROPER,n=A("./node_modules/core-js/internals/define-built-in.js"),s=A("./node_modules/core-js/internals/an-object.js"),i=A("./node_modules/core-js/internals/to-string.js"),o=A("./node_modules/core-js/internals/fails.js"),a=A("./node_modules/core-js/internals/regexp-get-flags.js"),l="toString",c=RegExp.prototype,u=c[l],h=o(function(){return"/a/b"!==u.call({source:"a",flags:"b"})}),d=r&&u.name!==l;(h||d)&&n(c,l,function(){var e=s(this);return"/"+i(e.source)+"/"+i(a(e))},{unsafe:!0})},"./node_modules/core-js/modules/es.set.constructor.js":function(e,t,A){"use strict";A("./node_modules/core-js/internals/collection.js")("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},A("./node_modules/core-js/internals/collection-strong.js"))},"./node_modules/core-js/modules/es.set.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.set.constructor.js")},"./node_modules/core-js/modules/es.string.ends-with.js":function(e,t,A){"use strict";var r,n=A("./node_modules/core-js/internals/export.js"),s=A("./node_modules/core-js/internals/function-uncurry-this-clause.js"),i=A("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,o=A("./node_modules/core-js/internals/to-length.js"),a=A("./node_modules/core-js/internals/to-string.js"),l=A("./node_modules/core-js/internals/not-a-regexp.js"),c=A("./node_modules/core-js/internals/require-object-coercible.js"),u=A("./node_modules/core-js/internals/correct-is-regexp-logic.js"),h=A("./node_modules/core-js/internals/is-pure.js"),d=s("".slice),f=Math.min,p=u("endsWith");n({target:"String",proto:!0,forced:!(!h&&!p&&(r=i(String.prototype,"endsWith"),r&&!r.writable)||p)},{endsWith:function(e){var t=a(c(this));l(e);var A=arguments.length>1?arguments[1]:void 0,r=t.length,n=void 0===A?r:f(o(A),r),s=a(e);return d(t,n-s.length,n)===s}})},"./node_modules/core-js/modules/es.string.includes.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/not-a-regexp.js"),i=A("./node_modules/core-js/internals/require-object-coercible.js"),o=A("./node_modules/core-js/internals/to-string.js"),a=A("./node_modules/core-js/internals/correct-is-regexp-logic.js"),l=n("".indexOf);r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~l(o(i(this)),o(s(e)),arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/string-multibyte.js").charAt,n=A("./node_modules/core-js/internals/to-string.js"),s=A("./node_modules/core-js/internals/internal-state.js"),i=A("./node_modules/core-js/internals/iterator-define.js"),o=A("./node_modules/core-js/internals/create-iter-result-object.js"),a="String Iterator",l=s.set,c=s.getterFor(a);i(String,"String",function(e){l(this,{type:a,string:n(e),index:0})},function(){var e,t=c(this),A=t.string,n=t.index;return n>=A.length?o(void 0,!0):(e=r(A,n),t.index+=e.length,o(e,!1))})},"./node_modules/core-js/modules/es.string.link.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/create-html.js");r({target:"String",proto:!0,forced:A("./node_modules/core-js/internals/string-html-forced.js")("link")},{link:function(e){return n(this,"a","href",e)}})},"./node_modules/core-js/modules/es.string.match.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),i=A("./node_modules/core-js/internals/an-object.js"),o=A("./node_modules/core-js/internals/is-object.js"),a=A("./node_modules/core-js/internals/to-length.js"),l=A("./node_modules/core-js/internals/to-string.js"),c=A("./node_modules/core-js/internals/require-object-coercible.js"),u=A("./node_modules/core-js/internals/get-method.js"),h=A("./node_modules/core-js/internals/advance-string-index.js"),d=A("./node_modules/core-js/internals/regexp-get-flags.js"),f=A("./node_modules/core-js/internals/regexp-exec-abstract.js"),p=n("".indexOf);s("match",function(e,t,A){return[function(t){var A=c(this),n=o(t)?u(t,e):void 0;return n?r(n,t,A):new RegExp(t)[e](l(A))},function(e){var r=i(this),n=l(e),s=A(t,r,n);if(s.done)return s.value;var o=l(d(r));if(-1===p(o,"g"))return f(r,n);var c=-1!==p(o,"u");r.lastIndex=0;for(var u,g=[],m=0;null!==(u=f(r,n));){var w=l(u[0]);g[m]=w,""===w&&(r.lastIndex=h(n,a(r.lastIndex),c)),m++}return 0===m?null:g}]})},"./node_modules/core-js/modules/es.string.replace.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-apply.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/function-uncurry-this.js"),i=A("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),o=A("./node_modules/core-js/internals/fails.js"),a=A("./node_modules/core-js/internals/an-object.js"),l=A("./node_modules/core-js/internals/is-callable.js"),c=A("./node_modules/core-js/internals/is-object.js"),u=A("./node_modules/core-js/internals/to-integer-or-infinity.js"),h=A("./node_modules/core-js/internals/to-length.js"),d=A("./node_modules/core-js/internals/to-string.js"),f=A("./node_modules/core-js/internals/require-object-coercible.js"),p=A("./node_modules/core-js/internals/advance-string-index.js"),g=A("./node_modules/core-js/internals/get-method.js"),m=A("./node_modules/core-js/internals/get-substitution.js"),w=A("./node_modules/core-js/internals/regexp-get-flags.js"),B=A("./node_modules/core-js/internals/regexp-exec-abstract.js"),y=A("./node_modules/core-js/internals/well-known-symbol.js")("replace"),v=Math.max,b=Math.min,C=s([].concat),_=s([].push),j=s("".indexOf),x=s("".slice),F=function(e){return void 0===e?e:String(e)},Q="$0"==="a".replace(/./,"$0"),U=!!/./[y]&&""===/./[y]("a","$0");i("replace",function(e,t,A){var s=U?"$":"$0";return[function(e,A){var r=f(this),s=c(e)?g(e,y):void 0;return s?n(s,e,r,A):n(t,d(r),e,A)},function(e,n){var i=a(this),o=d(e);if("string"==typeof n&&-1===j(n,s)&&-1===j(n,"$<")){var c=A(t,i,o,n);if(c.done)return c.value}var f=l(n);f||(n=d(n));var g,y=d(w(i)),Q=-1!==j(y,"g");Q&&(g=-1!==j(y,"u"),i.lastIndex=0);for(var U,E=[];null!==(U=B(i,o))&&(_(E,U),Q);)""===d(U[0])&&(i.lastIndex=p(o,h(i.lastIndex),g));for(var S="",L=0,I=0;I=L&&(S+=x(o,L,H)+N,L=H+k.length)}return S+x(o,L)}]},!!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})||!Q||U)},"./node_modules/core-js/modules/es.string.split.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/function-call.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"),i=A("./node_modules/core-js/internals/an-object.js"),o=A("./node_modules/core-js/internals/is-object.js"),a=A("./node_modules/core-js/internals/require-object-coercible.js"),l=A("./node_modules/core-js/internals/species-constructor.js"),c=A("./node_modules/core-js/internals/advance-string-index.js"),u=A("./node_modules/core-js/internals/to-length.js"),h=A("./node_modules/core-js/internals/to-string.js"),d=A("./node_modules/core-js/internals/get-method.js"),f=A("./node_modules/core-js/internals/regexp-exec-abstract.js"),p=A("./node_modules/core-js/internals/regexp-sticky-helpers.js"),g=A("./node_modules/core-js/internals/fails.js"),m=p.UNSUPPORTED_Y,w=Math.min,B=n([].push),y=n("".slice),v=!g(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var A="ab".split(e);return 2!==A.length||"a"!==A[0]||"b"!==A[1]}),b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;s("split",function(e,t,A){var n="0".split(void 0,0).length?function(e,A){return void 0===e&&0===A?[]:r(t,this,e,A)}:t;return[function(t,A){var s=a(this),i=o(t)?d(t,e):void 0;return i?r(i,t,s,A):r(n,h(s),t,A)},function(e,r){var s=i(this),o=h(e);if(!b){var a=A(n,s,o,r,n!==t);if(a.done)return a.value}var d=l(s,RegExp),p=s.unicode,g=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(m?"g":"y"),v=new d(m?"^(?:"+s.source+")":s,g),C=void 0===r?4294967295:r>>>0;if(0===C)return[];if(0===o.length)return null===f(v,o)?[o]:[];for(var _=0,j=0,x=[];j1?arguments[1]:void 0,t.length)),r=a(e);return d(t,A,A+r.length)===r}})},"./node_modules/core-js/modules/es.string.trim.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/string-trim.js").trim;r({target:"String",proto:!0,forced:A("./node_modules/core-js/internals/string-trim-forced.js")("trim")},{trim:function(){return n(this)}})},"./node_modules/core-js/modules/es.symbol.constructor.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/global-this.js"),s=A("./node_modules/core-js/internals/function-call.js"),i=A("./node_modules/core-js/internals/function-uncurry-this.js"),o=A("./node_modules/core-js/internals/is-pure.js"),a=A("./node_modules/core-js/internals/descriptors.js"),l=A("./node_modules/core-js/internals/symbol-constructor-detection.js"),c=A("./node_modules/core-js/internals/fails.js"),u=A("./node_modules/core-js/internals/has-own-property.js"),h=A("./node_modules/core-js/internals/object-is-prototype-of.js"),d=A("./node_modules/core-js/internals/an-object.js"),f=A("./node_modules/core-js/internals/to-indexed-object.js"),p=A("./node_modules/core-js/internals/to-property-key.js"),g=A("./node_modules/core-js/internals/to-string.js"),m=A("./node_modules/core-js/internals/create-property-descriptor.js"),w=A("./node_modules/core-js/internals/object-create.js"),B=A("./node_modules/core-js/internals/object-keys.js"),y=A("./node_modules/core-js/internals/object-get-own-property-names.js"),v=A("./node_modules/core-js/internals/object-get-own-property-names-external.js"),b=A("./node_modules/core-js/internals/object-get-own-property-symbols.js"),C=A("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),_=A("./node_modules/core-js/internals/object-define-property.js"),j=A("./node_modules/core-js/internals/object-define-properties.js"),x=A("./node_modules/core-js/internals/object-property-is-enumerable.js"),F=A("./node_modules/core-js/internals/define-built-in.js"),Q=A("./node_modules/core-js/internals/define-built-in-accessor.js"),U=A("./node_modules/core-js/internals/shared.js"),E=A("./node_modules/core-js/internals/shared-key.js"),S=A("./node_modules/core-js/internals/hidden-keys.js"),L=A("./node_modules/core-js/internals/uid.js"),I=A("./node_modules/core-js/internals/well-known-symbol.js"),N=A("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),k=A("./node_modules/core-js/internals/well-known-symbol-define.js"),H=A("./node_modules/core-js/internals/symbol-define-to-primitive.js"),P=A("./node_modules/core-js/internals/set-to-string-tag.js"),T=A("./node_modules/core-js/internals/internal-state.js"),O=A("./node_modules/core-js/internals/array-iteration.js").forEach,M=E("hidden"),D="Symbol",R="prototype",K=T.set,V=T.getterFor(D),G=Object[R],z=n.Symbol,q=z&&z[R],W=n.RangeError,X=n.TypeError,Y=n.QObject,J=C.f,Z=_.f,$=v.f,ee=x.f,te=i([].push),Ae=U("symbols"),re=U("op-symbols"),ne=U("wks"),se=!Y||!Y[R]||!Y[R].findChild,ie=function(e,t,A){var r=J(G,t);r&&delete G[t],Z(e,t,A),r&&e!==G&&Z(G,t,r)},oe=a&&c(function(){return 7!==w(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?ie:Z,ae=function(e,t){var A=Ae[e]=w(q);return K(A,{type:D,tag:e,description:t}),a||(A.description=t),A},le=function(e,t,A){e===G&&le(re,t,A),d(e);var r=p(t);return d(A),u(Ae,r)?(A.enumerable?(u(e,M)&&e[M][r]&&(e[M][r]=!1),A=w(A,{enumerable:m(0,!1)})):(u(e,M)||Z(e,M,m(1,w(null))),e[M][r]=!0),oe(e,r,A)):Z(e,r,A)},ce=function(e,t){d(e);var A=f(t),r=B(A).concat(fe(A));return O(r,function(t){a&&!s(ue,A,t)||le(e,t,A[t])}),e},ue=function(e){var t=p(e),A=s(ee,this,t);return!(this===G&&u(Ae,t)&&!u(re,t))&&(!(A||!u(this,t)||!u(Ae,t)||u(this,M)&&this[M][t])||A)},he=function(e,t){var A=f(e),r=p(t);if(A!==G||!u(Ae,r)||u(re,r)){var n=J(A,r);return!n||!u(Ae,r)||u(A,M)&&A[M][r]||(n.enumerable=!0),n}},de=function(e){var t=$(f(e)),A=[];return O(t,function(e){u(Ae,e)||u(S,e)||te(A,e)}),A},fe=function(e){var t=e===G,A=$(t?re:f(e)),r=[];return O(A,function(e){!u(Ae,e)||t&&!u(G,e)||te(r,Ae[e])}),r};l||(z=function(){if(h(q,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=L(e),A=function(e){var r=void 0===this?n:this;r===G&&s(A,re,e),u(r,M)&&u(r[M],t)&&(r[M][t]=!1);var i=m(1,e);try{oe(r,t,i)}catch(e){if(!(e instanceof W))throw e;ie(r,t,i)}};return a&&se&&oe(G,t,{configurable:!0,set:A}),ae(t,e)},F(q=z[R],"toString",function(){return V(this).tag}),F(z,"withoutSetter",function(e){return ae(L(e),e)}),x.f=ue,_.f=le,j.f=ce,C.f=he,y.f=v.f=de,b.f=fe,N.f=function(e){return ae(I(e),e)},a&&(Q(q,"description",{configurable:!0,get:function(){return V(this).description}}),o||F(G,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:z}),O(B(ne),function(e){k(e)}),r({target:D,stat:!0,forced:!l},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!a},{create:function(e,t){return void 0===t?w(e):ce(w(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de}),H(),P(z,D),S[M]=!0},"./node_modules/core-js/modules/es.symbol.description.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/descriptors.js"),s=A("./node_modules/core-js/internals/global-this.js"),i=A("./node_modules/core-js/internals/function-uncurry-this.js"),o=A("./node_modules/core-js/internals/has-own-property.js"),a=A("./node_modules/core-js/internals/is-callable.js"),l=A("./node_modules/core-js/internals/object-is-prototype-of.js"),c=A("./node_modules/core-js/internals/to-string.js"),u=A("./node_modules/core-js/internals/define-built-in-accessor.js"),h=A("./node_modules/core-js/internals/copy-constructor-properties.js"),d=s.Symbol,f=d&&d.prototype;if(n&&a(d)&&(!("description"in f)||void 0!==d().description)){var p={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(f,this)?new d(e):void 0===e?d():d(e);return""===e&&(p[t]=!0),t};h(g,d),g.prototype=f,f.constructor=g;var m="Symbol(description detection)"===String(d("description detection")),w=i(f.valueOf),B=i(f.toString),y=/^Symbol\((.*)\)[^)]+$/,v=i("".replace),b=i("".slice);u(f,"description",{configurable:!0,get:function(){var e=w(this);if(o(p,e))return"";var t=B(e),A=m?b(t,7,-1):v(t,y,"$1");return""===A?void 0:A}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},"./node_modules/core-js/modules/es.symbol.for.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/get-built-in.js"),s=A("./node_modules/core-js/internals/has-own-property.js"),i=A("./node_modules/core-js/internals/to-string.js"),o=A("./node_modules/core-js/internals/shared.js"),a=A("./node_modules/core-js/internals/symbol-registry-detection.js"),l=o("string-to-symbol-registry"),c=o("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!a},{for:function(e){var t=i(e);if(s(l,t))return l[t];var A=n("Symbol")(t);return l[t]=A,c[A]=t,A}})},"./node_modules/core-js/modules/es.symbol.iterator.js":function(e,t,A){"use strict";A("./node_modules/core-js/internals/well-known-symbol-define.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.symbol.constructor.js"),A("./node_modules/core-js/modules/es.symbol.for.js"),A("./node_modules/core-js/modules/es.symbol.key-for.js"),A("./node_modules/core-js/modules/es.json.stringify.js"),A("./node_modules/core-js/modules/es.object.get-own-property-symbols.js")},"./node_modules/core-js/modules/es.symbol.key-for.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/has-own-property.js"),s=A("./node_modules/core-js/internals/is-symbol.js"),i=A("./node_modules/core-js/internals/try-to-string.js"),o=A("./node_modules/core-js/internals/shared.js"),a=A("./node_modules/core-js/internals/symbol-registry-detection.js"),l=o("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!a},{keyFor:function(e){if(!s(e))throw new TypeError(i(e)+" is not a symbol");if(n(l,e))return l[e]}})},"./node_modules/core-js/modules/esnext.iterator.constructor.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.iterator.constructor.js")},"./node_modules/core-js/modules/esnext.iterator.for-each.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.iterator.for-each.js")},"./node_modules/core-js/modules/esnext.iterator.map.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/es.iterator.map.js")},"./node_modules/core-js/modules/esnext.set.add-all.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/a-set.js"),s=A("./node_modules/core-js/internals/set-helpers.js").add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=n(this),t=0,A=arguments.length;t1?arguments[1]:void 0);return!1!==i(t,function(e){if(!A(e,e,t))return!1},!0)}})},"./node_modules/core-js/modules/esnext.set.filter.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-bind-context.js"),s=A("./node_modules/core-js/internals/a-set.js"),i=A("./node_modules/core-js/internals/set-helpers.js"),o=A("./node_modules/core-js/internals/set-iterate.js"),a=i.Set,l=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=s(this),A=n(e,arguments.length>1?arguments[1]:void 0),r=new a;return o(t,function(e){A(e,e,t)&&l(r,e)}),r}})},"./node_modules/core-js/modules/esnext.set.find.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-bind-context.js"),s=A("./node_modules/core-js/internals/a-set.js"),i=A("./node_modules/core-js/internals/set-iterate.js");r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=s(this),A=n(e,arguments.length>1?arguments[1]:void 0),r=i(t,function(e){if(A(e,e,t))return{value:e}},!0);return r&&r.value}})},"./node_modules/core-js/modules/esnext.set.intersection.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-set-like.js"),i=A("./node_modules/core-js/internals/set-intersection.js");r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return n(i,this,s(e))}})},"./node_modules/core-js/modules/esnext.set.is-disjoint-from.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-set-like.js"),i=A("./node_modules/core-js/internals/set-is-disjoint-from.js");r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return n(i,this,s(e))}})},"./node_modules/core-js/modules/esnext.set.is-subset-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-set-like.js"),i=A("./node_modules/core-js/internals/set-is-subset-of.js");r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return n(i,this,s(e))}})},"./node_modules/core-js/modules/esnext.set.is-superset-of.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-set-like.js"),i=A("./node_modules/core-js/internals/set-is-superset-of.js");r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return n(i,this,s(e))}})},"./node_modules/core-js/modules/esnext.set.join.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-uncurry-this.js"),s=A("./node_modules/core-js/internals/a-set.js"),i=A("./node_modules/core-js/internals/set-iterate.js"),o=A("./node_modules/core-js/internals/to-string.js"),a=n([].join),l=n([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=s(this),A=void 0===e?",":o(e),r=[];return i(t,function(e){l(r,e)}),a(r,A)}})},"./node_modules/core-js/modules/esnext.set.map.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-bind-context.js"),s=A("./node_modules/core-js/internals/a-set.js"),i=A("./node_modules/core-js/internals/set-helpers.js"),o=A("./node_modules/core-js/internals/set-iterate.js"),a=i.Set,l=i.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=s(this),A=n(e,arguments.length>1?arguments[1]:void 0),r=new a;return o(t,function(e){l(r,A(e,e,t))}),r}})},"./node_modules/core-js/modules/esnext.set.reduce.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/a-callable.js"),s=A("./node_modules/core-js/internals/a-set.js"),i=A("./node_modules/core-js/internals/set-iterate.js"),o=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=s(this),A=arguments.length<2,r=A?void 0:arguments[1];if(n(e),i(t,function(n){A?(A=!1,r=n):r=e(r,n,n,t)}),A)throw new o("Reduce of empty set with no initial value");return r}})},"./node_modules/core-js/modules/esnext.set.some.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-bind-context.js"),s=A("./node_modules/core-js/internals/a-set.js"),i=A("./node_modules/core-js/internals/set-iterate.js");r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=s(this),A=n(e,arguments.length>1?arguments[1]:void 0);return!0===i(t,function(e){if(A(e,e,t))return!0},!0)}})},"./node_modules/core-js/modules/esnext.set.symmetric-difference.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-set-like.js"),i=A("./node_modules/core-js/internals/set-symmetric-difference.js");r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return n(i,this,s(e))}})},"./node_modules/core-js/modules/esnext.set.union.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/function-call.js"),s=A("./node_modules/core-js/internals/to-set-like.js"),i=A("./node_modules/core-js/internals/set-union.js");r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return n(i,this,s(e))}})},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/dom-iterables.js"),s=A("./node_modules/core-js/internals/dom-token-list-prototype.js"),i=A("./node_modules/core-js/internals/array-for-each.js"),o=A("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=function(e){if(e&&e.forEach!==i)try{o(e,"forEach",i)}catch(t){e.forEach=i}};for(var l in n)n[l]&&a(r[l]&&r[l].prototype);a(s)},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/global-this.js"),n=A("./node_modules/core-js/internals/dom-iterables.js"),s=A("./node_modules/core-js/internals/dom-token-list-prototype.js"),i=A("./node_modules/core-js/modules/es.array.iterator.js"),o=A("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=A("./node_modules/core-js/internals/set-to-string-tag.js"),l=A("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),c=i.values,u=function(e,t){if(e){if(e[l]!==c)try{o(e,l,c)}catch(t){e[l]=c}if(a(e,t,!0),n[t])for(var A in i)if(e[A]!==i[A])try{o(e,A,i[A])}catch(t){e[A]=i[A]}}};for(var h in n)u(r[h]&&r[h].prototype,h);u(s,"DOMTokenList")},"./node_modules/core-js/modules/web.set-interval.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/global-this.js"),s=A("./node_modules/core-js/internals/schedulers-fix.js")(n.setInterval,!0);r({global:!0,bind:!0,forced:n.setInterval!==s},{setInterval:s})},"./node_modules/core-js/modules/web.set-timeout.js":function(e,t,A){"use strict";var r=A("./node_modules/core-js/internals/export.js"),n=A("./node_modules/core-js/internals/global-this.js"),s=A("./node_modules/core-js/internals/schedulers-fix.js")(n.setTimeout,!0);r({global:!0,bind:!0,forced:n.setTimeout!==s},{setTimeout:s})},"./node_modules/core-js/modules/web.timers.js":function(e,t,A){"use strict";A("./node_modules/core-js/modules/web.set-interval.js"),A("./node_modules/core-js/modules/web.set-timeout.js")},"./node_modules/dompurify/dist/purify.es.mjs":function(e,t,A){"use strict";A.r(t),A.d(t,{default:function(){return Ae}});const{entries:r,setPrototypeOf:n,isFrozen:s,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object;let{freeze:a,seal:l,create:c}=Object,{apply:u,construct:h}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),l||(l=function(e){return e}),u||(u=function(e,t,A){return e.apply(t,A)}),h||(h=function(e,t){return new e(...t)});const d=Q(Array.prototype.forEach),f=Q(Array.prototype.lastIndexOf),p=Q(Array.prototype.pop),g=Q(Array.prototype.push),m=Q(Array.prototype.splice),w=Q(String.prototype.toLowerCase),B=Q(String.prototype.toString),y=Q(String.prototype.match),v=Q(String.prototype.replace),b=Q(String.prototype.indexOf),C=Q(String.prototype.trim),_=Q(Object.prototype.hasOwnProperty),j=Q(RegExp.prototype.test),x=(F=TypeError,function(){for(var e=arguments.length,t=new Array(e),A=0;A1?A-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:w;n&&n(e,null);let r=t.length;for(;r--;){let n=t[r];if("string"==typeof n){const e=A(n);e!==n&&(s(t)||(t[r]=e),n=e)}e[n]=!0}return e}function E(e){for(let t=0;t/gm),z=l(/\$\{[\w\W]*/gm),q=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=l(/^aria-[\-\w]+$/),X=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=l(/^(?:\w+script|data):/i),J=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=l(/^html$/i),$=l(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:$,DATA_ATTR:q,DOCTYPE_NAME:Z,ERB_EXPR:G,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:V,TMPLIT_EXPR:z});const te=function(){return"undefined"==typeof window?null:window};var Ae=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const A=t=>e(t);if(A.version="3.2.6",A.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return A.isSupported=!1,A;let{document:n}=t;const s=n,i=s.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:u,Element:h,NodeFilter:F,NamedNodeMap:Q=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:V,trustedTypes:G}=t,z=h.prototype,q=L(z,"cloneNode"),W=L(z,"remove"),Y=L(z,"nextSibling"),J=L(z,"childNodes"),$=L(z,"parentNode");if("function"==typeof l){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Ae,re="";const{implementation:ne,createNodeIterator:se,createDocumentFragment:ie,getElementsByTagName:oe}=n,{importNode:ae}=s;let le={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};A.isSupported="function"==typeof r&&"function"==typeof $&&ne&&void 0!==ne.createHTMLDocument;const{MUSTACHE_EXPR:ce,ERB_EXPR:ue,TMPLIT_EXPR:he,DATA_ATTR:de,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:pe,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:me}=ee;let{IS_ALLOWED_URI:we}=ee,Be=null;const ye=U({},[...I,...N,...k,...P,...O]);let ve=null;const be=U({},[...M,...D,...R,...K]);let Ce=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,je=null,xe=!0,Fe=!0,Qe=!1,Ue=!0,Ee=!1,Se=!0,Le=!1,Ie=!1,Ne=!1,ke=!1,He=!1,Pe=!1,Te=!0,Oe=!1,Me=!0,De=!1,Re={},Ke=null;const Ve=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const ze=U({},["audio","video","img","source","image","track"]);let qe=null;const We=U({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Ze=Je,$e=!1,et=null;const tt=U({},[Xe,Ye,Je],B);let At=U({},["mi","mo","mn","ms","mtext"]),rt=U({},["annotation-xml"]);const nt=U({},["title","style","font","a","script"]);let st=null;const it=["application/xhtml+xml","text/html"];let ot=null,at=null;const lt=n.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!at||at!==e){if(e&&"object"==typeof e||(e={}),e=S(e),st=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===st?B:w,Be=_(e,"ALLOWED_TAGS")?U({},e.ALLOWED_TAGS,ot):ye,ve=_(e,"ALLOWED_ATTR")?U({},e.ALLOWED_ATTR,ot):be,et=_(e,"ALLOWED_NAMESPACES")?U({},e.ALLOWED_NAMESPACES,B):tt,qe=_(e,"ADD_URI_SAFE_ATTR")?U(S(We),e.ADD_URI_SAFE_ATTR,ot):We,Ge=_(e,"ADD_DATA_URI_TAGS")?U(S(ze),e.ADD_DATA_URI_TAGS,ot):ze,Ke=_(e,"FORBID_CONTENTS")?U({},e.FORBID_CONTENTS,ot):Ve,_e=_(e,"FORBID_TAGS")?U({},e.FORBID_TAGS,ot):S({}),je=_(e,"FORBID_ATTR")?U({},e.FORBID_ATTR,ot):S({}),Re=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,xe=!1!==e.ALLOW_ARIA_ATTR,Fe=!1!==e.ALLOW_DATA_ATTR,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ee=e.SAFE_FOR_TEMPLATES||!1,Se=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Te=!1!==e.SANITIZE_DOM,Oe=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,De=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||X,Ze=e.NAMESPACE||Je,At=e.MATHML_TEXT_INTEGRATION_POINTS||At,rt=e.HTML_INTEGRATION_POINTS||rt,Ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ee&&(Fe=!1),He&&(ke=!0),Re&&(Be=U({},O),ve=[],!0===Re.html&&(U(Be,I),U(ve,M)),!0===Re.svg&&(U(Be,N),U(ve,D),U(ve,K)),!0===Re.svgFilters&&(U(Be,k),U(ve,D),U(ve,K)),!0===Re.mathMl&&(U(Be,P),U(ve,R),U(ve,K))),e.ADD_TAGS&&(Be===ye&&(Be=S(Be)),U(Be,e.ADD_TAGS,ot)),e.ADD_ATTR&&(ve===be&&(ve=S(ve)),U(ve,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&U(qe,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&(Ke===Ve&&(Ke=S(Ke)),U(Ke,e.FORBID_CONTENTS,ot)),Me&&(Be["#text"]=!0),Le&&U(Be,["html","head","body"]),Be.table&&(U(Be,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ae=e.TRUSTED_TYPES_POLICY,re=Ae.createHTML("")}else void 0===Ae&&(Ae=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let A=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(A=t.getAttribute(r));const n="dompurify"+(A?"#"+A:"");try{return e.createPolicy(n,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(G,i)),null!==Ae&&"string"==typeof re&&(re=Ae.createHTML(""));a&&a(e),at=e}},ht=U({},[...N,...k,...H]),dt=U({},[...P,...T]),ft=function(e){g(A.removed,{element:e});try{$(e).removeChild(e)}catch(t){W(e)}},pt=function(e,t){try{g(A.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){g(A.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ke||He)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,A=null;if(Ne)e=""+e;else{const t=y(e,/^[\r\n\t ]+/);A=t&&t[0]}"application/xhtml+xml"===st&&Ze===Je&&(e=''+e+"");const r=Ae?Ae.createHTML(e):e;if(Ze===Je)try{t=(new V).parseFromString(r,st)}catch(e){}if(!t||!t.documentElement){t=ne.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=$e?re:r}catch(e){}}const s=t.body||t.documentElement;return e&&A&&s.insertBefore(n.createTextNode(A),s.childNodes[0]||null),Ze===Je?oe.call(t,Le?"html":"body")[0]:Le?t.documentElement:s},mt=function(e){return se.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof E&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof Q)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Bt=function(e){return"function"==typeof u&&e instanceof u};function yt(e,t,r){d(e,e=>{e.call(A,t,r,at)})}const vt=function(e){let t=null;if(yt(le.beforeSanitizeElements,e,null),wt(e))return ft(e),!0;const r=ot(e.nodeName);if(yt(le.uponSanitizeElement,e,{tagName:r,allowedTags:Be}),Se&&e.hasChildNodes()&&!Bt(e.firstElementChild)&&j(/<[/\w!]/g,e.innerHTML)&&j(/<[/\w!]/g,e.textContent))return ft(e),!0;if(7===e.nodeType)return ft(e),!0;if(Se&&8===e.nodeType&&j(/<[/\w]/g,e.data))return ft(e),!0;if(!Be[r]||_e[r]){if(!_e[r]&&Ct(r)){if(Ce.tagNameCheck instanceof RegExp&&j(Ce.tagNameCheck,r))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))return!1}if(Me&&!Ke[r]){const t=$(e)||e.parentNode,A=J(e)||e.childNodes;if(A&&t)for(let r=A.length-1;r>=0;--r){const n=q(A[r],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,Y(e))}}return ft(e),!0}return e instanceof h&&!function(e){let t=$(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const A=w(e.tagName),r=w(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Ye?t.namespaceURI===Je?"svg"===A:t.namespaceURI===Xe?"svg"===A&&("annotation-xml"===r||At[r]):Boolean(ht[A]):e.namespaceURI===Xe?t.namespaceURI===Je?"math"===A:t.namespaceURI===Ye?"math"===A&&rt[r]:Boolean(dt[A]):e.namespaceURI===Je?!(t.namespaceURI===Ye&&!rt[r])&&!(t.namespaceURI===Xe&&!At[r])&&!dt[A]&&(nt[A]||!ht[A]):!("application/xhtml+xml"!==st||!et[e.namespaceURI]))}(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!j(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ee&&3===e.nodeType&&(t=e.textContent,d([ce,ue,he],e=>{t=v(t,e," ")}),e.textContent!==t&&(g(A.removed,{element:e.cloneNode()}),e.textContent=t)),yt(le.afterSanitizeElements,e,null),!1):(ft(e),!0)},bt=function(e,t,A){if(Te&&("id"===t||"name"===t)&&(A in n||A in lt))return!1;if(Fe&&!je[t]&&j(de,t));else if(xe&&j(fe,t));else if(!ve[t]||je[t]){if(!(Ct(e)&&(Ce.tagNameCheck instanceof RegExp&&j(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&j(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&j(Ce.tagNameCheck,A)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(A))))return!1}else if(qe[t]);else if(j(we,v(A,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(A,"data:")||!Ge[e])if(Qe&&!j(pe,v(A,ge,"")));else if(A)return!1;return!0},Ct=function(e){return"annotation-xml"!==e&&y(e,me)},_t=function(e){yt(le.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||wt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ve,forceKeepAttr:void 0};let n=t.length;for(;n--;){const s=t[n],{name:i,namespaceURI:o,value:a}=s,l=ot(i),c=a;let u="value"===i?c:C(c);if(r.attrName=l,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,yt(le.uponSanitizeAttribute,e,r),u=r.attrValue,!Oe||"id"!==l&&"name"!==l||(pt(i,e),u="user-content-"+u),Se&&j(/((--!?|])>)|<\/(style|title)/i,u)){pt(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){pt(i,e);continue}if(!Ue&&j(/\/>/i,u)){pt(i,e);continue}Ee&&d([ce,ue,he],e=>{u=v(u,e," ")});const h=ot(e.nodeName);if(bt(h,l,u)){if(Ae&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(o);else switch(G.getAttributeType(h,l)){case"TrustedHTML":u=Ae.createHTML(u);break;case"TrustedScriptURL":u=Ae.createScriptURL(u)}if(u!==c)try{o?e.setAttributeNS(o,i,u):e.setAttribute(i,u),wt(e)?ft(e):p(A.removed)}catch(t){pt(i,e)}}else pt(i,e)}yt(le.afterSanitizeAttributes,e,null)},jt=function e(t){let A=null;const r=mt(t);for(yt(le.beforeSanitizeShadowDOM,t,null);A=r.nextNode();)yt(le.uponSanitizeShadowNode,A,null),vt(A),_t(A),A.content instanceof o&&e(A.content);yt(le.afterSanitizeShadowDOM,t,null)};return A.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,n=null,i=null,a=null;if($e=!e,$e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Bt(e)){if("function"!=typeof e.toString)throw x("toString is not a function");if("string"!=typeof(e=e.toString()))throw x("dirty is not a string, aborting")}if(!A.isSupported)return e;if(Ie||ut(t),A.removed=[],"string"==typeof e&&(De=!1),De){if(e.nodeName){const t=ot(e.nodeName);if(!Be[t]||_e[t])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)r=gt("\x3c!----\x3e"),n=r.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?r=n:r.appendChild(n);else{if(!ke&&!Ee&&!Le&&-1===e.indexOf("<"))return Ae&&Pe?Ae.createHTML(e):e;if(r=gt(e),!r)return ke?null:Pe?re:""}r&&Ne&&ft(r.firstChild);const l=mt(De?e:r);for(;i=l.nextNode();)vt(i),_t(i),i.content instanceof o&&jt(i.content);if(De)return e;if(ke){if(He)for(a=ie.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(ve.shadowroot||ve.shadowrootmode)&&(a=ae.call(s,a,!0)),a}let c=Le?r.outerHTML:r.innerHTML;return Le&&Be["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&j(Z,r.ownerDocument.doctype.name)&&(c="\n"+c),Ee&&d([ce,ue,he],e=>{c=v(c,e," ")}),Ae&&Pe?Ae.createHTML(c):c},A.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},A.clearConfig=function(){at=null,Ie=!1},A.isValidAttribute=function(e,t,A){at||ut({});const r=ot(e),n=ot(t);return bt(r,n,A)},A.addHook=function(e,t){"function"==typeof t&&g(le[e],t)},A.removeHook=function(e,t){if(void 0!==t){const A=f(le[e],t);return-1===A?void 0:m(le[e],A,1)[0]}return p(le[e])},A.removeHooks=function(e){le[e]=[]},A.removeAllHooks=function(){le={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},A}()},"./node_modules/fast-png/lib-esm/PngDecoder.js":function(e,t,A){"use strict";A.r(t),A.d(t,{default:function(){return u}});var r=A("./node_modules/iobuffer/lib-esm/IOBuffer.js"),n=A("./node_modules/pako/dist/pako.esm.mjs"),s=A("./node_modules/fast-png/lib-esm/helpers/crc.js"),i=A("./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js"),o=A("./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js"),a=A("./node_modules/fast-png/lib-esm/helpers/signature.js"),l=A("./node_modules/fast-png/lib-esm/helpers/text.js"),c=A("./node_modules/fast-png/lib-esm/internalTypes.js");class u extends r.IOBuffer{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,t={}){super(e);const{checkCrc:A=!1}=t;this._checkCrc=A,this._inflator=new n.Inflate,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=c.CompressionMethod.UNKNOWN,this._filterMethod=c.FilterMethod.UNKNOWN,this._interlaceMethod=c.InterlaceMethod.UNKNOWN,this._colorType=c.ColorType.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for((0,a.checkSignature)(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for((0,a.checkSignature)(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const A=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case l.textChunkName:(0,l.decodetEXt)(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e)}if(this.offset-A!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?(0,s.checkCrc)(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const A=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=A+e}if(this.offset-A!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?(0,s.checkCrc)(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error(`invalid bit depth: ${e}`);return e}(this.readUint8());const t=this.readUint8();let A;switch(this._colorType=t,t){case c.ColorType.GREYSCALE:A=1;break;case c.ColorType.TRUECOLOUR:A=3;break;case c.ColorType.INDEXED_COLOUR:A=1;break;case c.ColorType.GREYSCALE_ALPHA:A=2;break;case c.ColorType.TRUECOLOUR_ALPHA:A=4;break;case c.ColorType.UNKNOWN:default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=A,this._compressionMethod=this.readUint8(),this._compressionMethod!==c.CompressionMethod.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const A=[];this._palette=A;for(let e=0;ethis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;tthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t({index:((e+t.yOffset)*this._png.width+t.xOffset+A)*this._png.channels,frameIndex:(e*t.width+A)*this._png.channels});switch(t.blendOp){case c.BlendOpType.SOURCE:for(let A=0;A255!==e.at(-1));this.writeUint32(e.length),this.writeChars("tRNS");for(const t of e)this.writeByte(t.at(-1));(0,s.writeCrc)(this,4+e.length)}encodeIDAT(e){this.writeUint32(e.length),this.writeChars("IDAT"),this.writeBytes(e),(0,s.writeCrc)(this,e.length+4)}encodeData(){const{width:e,height:t,channels:A,depth:s,data:i}=this._png,o=s<=8?Math.ceil(e*s/8)*A:Math.ceil(e*s/8*A/2),l=(new r.IOBuffer).setBigEndian();let c=0;if(this._interlaceMethod===a.InterlaceMethod.NO_INTERLACE)for(let e=0;e>8&255),A.writeByte(255&e)}}return r}(this._png,i,l,c));const u=l.toArray(),f=(0,n.deflate)(u,this._zlibOptions);this.encodeIDAT(f)}_checkData(e){const{colorType:t,channels:A,depth:r}=function(e,t){const{channels:A=4,depth:r=8}=e;if(4!==A&&3!==A&&2!==A&&1!==A)throw new RangeError(`unsupported number of channels: ${A}`);const n={channels:A,depth:r,colorType:a.ColorType.UNKNOWN};switch(A){case 4:n.colorType=a.ColorType.TRUECOLOUR_ALPHA;break;case 3:n.colorType=a.ColorType.TRUECOLOUR;break;case 1:n.colorType=t?a.ColorType.INDEXED_COLOUR:a.ColorType.GREYSCALE;break;case 2:n.colorType=a.ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return n}(e,e.palette),n={width:u(e.width,"width"),height:u(e.height,"height"),channels:A,data:e.data,depth:r,text:e.text,palette:e.palette};this._colorType=t;const s=r<8?Math.ceil(n.width*r/8)*n.height*A:n.width*n.height*A;if(n.data.length!==s)throw new RangeError(`wrong data size. Found ${n.data.length}, expected ${s}`);return n}}function u(e,t){if(Number.isInteger(e)&&e>0)return e;throw new TypeError(`${t} must be a positive integer`)}function h(e,t,A,r){for(let n=0;n>n,r>>=A,i%e.width!==0););}if(e.palette)for(const t of a){const A=e.palette.at(t);if(!A)throw new Error("Incorrect index of palette color");s.set(A,o),o+=A.length}return s}A.r(t),A.d(t,{convertIndexedToRgb:function(){return r}})},"./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js":function(e,t,A){"use strict";A.r(t),A.d(t,{applyUnfilter:function(){return n}});var r=A("./node_modules/fast-png/lib-esm/helpers/unfilter.js");function n(e,t,A,n,s,i){switch(e){case 0:(0,r.unfilterNone)(t,A,s);break;case 1:(0,r.unfilterSub)(t,A,s,i);break;case 2:(0,r.unfilterUp)(t,A,n,s);break;case 3:(0,r.unfilterAverage)(t,A,n,s,i);break;case 4:(0,r.unfilterPaeth)(t,A,n,s,i);break;default:throw new Error(`Unsupported filter: ${e}`)}}},"./node_modules/fast-png/lib-esm/helpers/crc.js":function(e,t,A){"use strict";A.r(t),A.d(t,{checkCrc:function(){return i},writeCrc:function(){return o}});const r=[];for(let e=0;e<256;e++){let t=e;for(let e=0;e<8;e++)1&t?t=3988292384^t>>>1:t>>>=1;r[e]=t}const n=4294967295;function s(e,t){return(function(e,t,A){let n=e;for(let e=0;e>>8;return n}(n,e,t)^n)>>>0}function i(e,t,A){const r=e.readUint32(),n=s(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(n!==r)throw new Error(`CRC mismatch for chunk ${A}. Expected ${r}, found ${n}`)}function o(e,t){e.writeUint32(s(new Uint8Array(e.buffer,e.byteOffset+e.offset-t,t),t))}},"./node_modules/fast-png/lib-esm/helpers/decodeInterlaceAdam7.js":function(e,t,A){"use strict";A.r(t),A.d(t,{decodeInterlaceAdam7:function(){return i}});var r=A("./node_modules/fast-png/lib-esm/helpers/applyUnfilter.js");const n=new Uint16Array([255]),s=255===new Uint8Array(n.buffer)[0];function i(e){const{data:t,width:A,height:n,channels:i,depth:a}=e,l=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],c=Math.ceil(a/8)*i,u=new Uint8Array(n*A*c);let h=0;for(let e=0;e<7;e++){const s=l[e],i=Math.ceil((A-s.x)/s.xStep),o=Math.ceil((n-s.y)/s.yStep);if(i<=0||o<=0)continue;const a=i*c,d=new Uint8Array(a);for(let e=0;e=A||i>=n))for(let e=0;e>8&255}},"./node_modules/fast-png/lib-esm/helpers/decodeInterlaceNull.js":function(e,t,A){"use strict";A.r(t),A.d(t,{decodeInterlaceNull:function(){return o}});var r=A("./node_modules/fast-png/lib-esm/helpers/unfilter.js");const n=new Uint16Array([255]),s=255===new Uint8Array(n.buffer)[0],i=new Uint8Array(0);function o(e){const{data:t,width:A,height:n,channels:o,depth:l}=e,c=Math.ceil(l/8)*o,u=Math.ceil(l/8*o*A),h=new Uint8Array(n*u);let d,f,p=i,g=0;for(let e=0;e>8&255}},"./node_modules/fast-png/lib-esm/helpers/signature.js":function(e,t,A){"use strict";A.r(t),A.d(t,{checkSignature:function(){return s},hasPngSignature:function(){return i},writeSignature:function(){return n}});const r=Uint8Array.of(137,80,78,71,13,10,26,10);function n(e){e.writeBytes(r)}function s(e){if(!i(e.readBytes(r.length)))throw new Error("wrong PNG signature")}function i(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const a=/^[\u0000-\u00FF]*$/;function l(e){if(!a.test(e))throw new Error("invalid latin1 text")}function c(e,t,A){const r=h(t);e[r]=d(t,A-r.length-1)}function u(e,t,A){o(t),l(A);const i=t.length+1+A.length;e.writeUint32(i),e.writeChars(n),e.writeChars(t),e.writeByte(s),e.writeChars(A),(0,r.writeCrc)(e,i+4)}function h(e){for(e.mark();e.readByte()!==s;);const t=e.offset;e.reset();const A=i.decode(e.readBytes(t-e.offset-1));return e.skip(1),o(A),A}function d(e,t){return i.decode(e.readBytes(t))}},"./node_modules/fast-png/lib-esm/helpers/unfilter.js":function(e,t,A){"use strict";function r(e,t,A){for(let r=0;r>1)&255}else{for(;s>1)&255;for(;s>1)&255}}function o(e,t,A,r,n){let s=0;if(0===A.length){for(;s>1|(21845&w)<<1;B=(61680&(B=(52428&B)>>2|(13107&B)<<2))>>4|(3855&B)<<4,m[w]=((65280&B)>>8|(255&B)<<8)>>1}var y=function(e,t,A){for(var r=e.length,n=0,i=new s(t);n>l]=c}else for(o=new s(r),n=0;n>15-e[n]);return o},v=new n(288);for(w=0;w<144;++w)v[w]=8;for(w=144;w<256;++w)v[w]=9;for(w=256;w<280;++w)v[w]=7;for(w=280;w<288;++w)v[w]=8;var b=new n(32);for(w=0;w<32;++w)b[w]=5;var C=y(v,9,0),_=y(v,9,1),j=y(b,5,0),x=y(b,5,1),F=function(e){for(var t=e[0],A=1;At&&(t=e[A]);return t},Q=function(e,t,A){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&A},U=function(e,t){var A=t/8|0;return(e[A]|e[A+1]<<8|e[A+2]<<16)>>(7&t)},E=function(e){return(e+7)/8|0},S=function(e,t,A){return(null==t||t<0)&&(t=0),(null==A||A>e.length)&&(A=e.length),new n(e.subarray(t,A))},L={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],N=function(e,t,A){var r=new Error(t||I[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,N),!A)throw r;return r},k=function(e,t,A,r){var s=e.length,i=r?r.length:0;if(!s||t.f&&!t.l)return A||new n(0);var c=!A,u=c||2!=t.i,d=t.i;c&&(A=new n(3*s));var f=function(e){var t=A.length;if(e>t){var r=new n(Math.max(2*t,e));r.set(A),A=r}},g=t.f||0,m=t.p||0,w=t.b||0,B=t.l,v=t.d,b=t.m,C=t.n,j=8*s;do{if(!B){g=Q(e,m,1);var L=Q(e,m+1,3);if(m+=3,!L){var I=e[(G=E(m)+4)-4]|e[G-3]<<8,k=G+I;if(k>s){d&&N(0);break}u&&f(w+I),A.set(e.subarray(G,k),w),t.b=w+=I,t.p=m=8*k,t.f=g;continue}if(1==L)B=_,v=x,b=9,C=5;else if(2==L){var H=Q(e,m,31)+257,P=Q(e,m+10,15)+4,T=H+Q(e,m+5,31)+1;m+=14;for(var O=new n(T),M=new n(19),D=0;D>4)<16)O[D++]=G;else{var q=0,W=0;for(16==G?(W=3+Q(e,m,3),m+=2,q=O[D-1]):17==G?(W=3+Q(e,m,7),m+=3):18==G&&(W=11+Q(e,m,127),m+=7);W--;)O[D++]=q}}var X=O.subarray(0,H),Y=O.subarray(H);b=F(X),C=F(Y),B=y(X,b,1),v=y(Y,C,1)}else N(1);if(m>j){d&&N(0);break}}u&&f(w+131072);for(var J=(1<>4;if((m+=15&q)>j){d&&N(0);break}if(q||N(2),ee<256)A[w++]=ee;else{if(256==ee){$=m,B=null;break}var te=ee-254;if(ee>264){var Ae=o[D=ee-257];te=Q(e,m,(1<>4;if(re||N(3),m+=15&re,Y=p[ne],ne>3&&(Ae=a[ne],Y+=U(e,m)&(1<j){d&&N(0);break}u&&f(w+131072);var se=w+te;if(w>8},P=function(e,t,A){A<<=7&t;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8,e[r+2]|=A>>16},T=function(e,t){for(var A=[],r=0;rf&&(f=o[r].s);var p=new s(f+1),g=O(A[h-1],p,0);if(g>t){r=0;var m=0,w=g-t,B=1<t))break;m+=B-(1<>=w;m>0;){var v=o[r].s;p[v]=0&&m;--r){var b=o[r].s;p[b]==t&&(--p[b],++m)}g=t}return{t:new n(p),l:g}},O=function(e,t,A){return-1==e.s?Math.max(O(e.l,t,A+1),O(e.r,t,A+1)):t[e.s]=A},M=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new s(++t),r=0,n=e[0],i=1,o=function(e){A[r++]=e},a=1;a<=t;++a)if(e[a]==n&&a!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(n),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(n);i=1,n=e[a]}return{c:A.subarray(0,r),n:t}},D=function(e,t){for(var A=0,r=0;r>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var s=0;s4&&!k[l[K-1]];--K);var V,G,z,q,W=d+5<<3,X=D(n,v)+D(i,b)+c,Y=D(n,g)+D(i,B)+c+14+3*K+D(L,k)+2*L[16]+3*L[17]+7*L[18];if(h>=0&&W<=X&&W<=Y)return R(t,f,e.subarray(h,h+d));if(H(t,f,1+(Y15&&(H(t,f,ee[I]>>5&127),f+=ee[I]>>12)}}}else V=C,G=v,z=j,q=b;for(I=0;I255){P(t,f,V[257+(te=Ae>>18&31)]),f+=G[te+257],te>7&&(H(t,f,Ae>>23&31),f+=o[te]);var re=31&Ae;P(t,f,z[re]),f+=q[re],re>3&&(P(t,f,Ae>>5&8191),f+=a[re])}else P(t,f,V[Ae]),f+=G[Ae]}return P(t,f,V[256]),f+G[256]},V=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new n(0),z=function(e,t,A,r,l,c){var u=c.z||e.length,h=new n(r+u+5*(1+Math.ceil(u/7e3))+l),f=h.subarray(r,h.length-l),p=c.l,m=7&(c.r||0);if(t){m&&(f[0]=c.r>>3);for(var w=V[t-1],B=w>>13,y=8191&w,v=(1<7e3||k>24576)&&(D>423||!p)){m=K(e,f,0,F,Q,U,I,k,P,N-P,m),k=L=I=0,P=N;for(var G=0;G<286;++G)Q[G]=0;for(G=0;G<30;++G)U[G]=0}var z=2,q=0,W=y,X=O-M&32767;if(D>2&&T==x(N-X))for(var Y=Math.min(B,D)-1,J=Math.min(32767,N),Z=Math.min(258,D);X<=J&&--W&&O!=M;){if(e[N+z]==e[N+z-X]){for(var $=0;$z){if(z=$,q=X,$>Y)break;var ee=Math.min(X,$-2),te=0;for(G=0;Gte&&(te=re,M=Ae)}}}X+=(O=M)-(M=b[O])&32767}if(q){F[k++]=268435456|d[z]<<18|g[q];var ne=31&d[z],se=31&g[q];I+=o[ne]+a[se],++Q[257+ne],++U[se],H=N+z,++L}else F[k++]=e[N],++Q[e[N]]}}for(N=Math.max(N,H);N=u&&(f[m/8|0]=p,ie=u),m=R(f,m+1,e.subarray(N,ie))}c.i=u}return S(h,0,r+E(m)+l)},q=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var A=t,r=9;--r;)A=(1&A&&-306674912)^A>>>1;e[t]=A}return e}(),W=function(){var e=-1;return{p:function(t){for(var A=e,r=0;r>>8;e=A},d:function(){return~e}}},X=function(){var e=1,t=0;return{p:function(A){for(var r=e,n=t,s=0|A.length,i=0;i!=s;){for(var o=Math.min(i+2655,s);i>16),n=(65535&n)+15*(n>>16)}e=r,t=n},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},Y=function(e,t,A,r,s){if(!s&&(s={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new n(i.length+e.length);o.set(i),o.set(e,i.length),e=o,s.w=i.length}return z(e,null==t.level?6:t.level,null==t.mem?s.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,A,r,s)},J=function(e,t){var A={};for(var r in e)A[r]=e[r];for(var r in t)A[r]=t[r];return A},Z=function(e,t,A){for(var r=e(),n=e.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),i=0;i>>0},fe=function(e,t){return de(e,t)+4294967296*de(e,t+4)},pe=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},ge=function(e,t){var A=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&pe(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),A){e[3]=8;for(var r=0;r<=A.length;++r)e[r+10]=A.charCodeAt(r)}},me=function(e){31==e[0]&&139==e[1]&&8==e[2]||N(6,"invalid gzip data");var t=e[3],A=10;4&t&&(A+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[A++]);return A+(2&t)},we=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Be=function(e){return 10+(e.filename?e.filename.length+1:0)},ye=function(e,t){var A=t.level,r=0==A?0:A<6?1:9==A?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var n=X();n.p(t.dictionary),pe(e,2,n.d())}},ve=function(e,t){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&N(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&N(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)};function be(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var Ce=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var A=this.o.dictionary.subarray(-32768);this.b.set(A,32768-A.length),this.s.i=32768-A.length}}return e.prototype.p=function(e,t){this.ondata(Y(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||N(5),this.s.l&&N(4);var A=e.length+this.s.z;if(A>this.b.length){if(A>2*this.b.length-32768){var r=new n(-32768&A);r.set(this.b.subarray(0,this.s.z)),this.b=r}var s=this.b.length-this.s.z;this.b.set(e.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(s),32768),this.s.z=e.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2)},e.prototype.flush=function(){this.ondata||N(5),this.s.l&&N(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},e}(),_e=function(){return function(e,t){ue([Ae,function(){return[ce,Ce]}],this,be.call(this,e,t),function(e){var t=new Ce(e.data);onmessage=ce(t)},6,1)}}();function je(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[Ae],function(e){return oe(xe(e.data[0],e.data[1]))},0,A)}function xe(e,t){return Y(e,t||{},0,0)}var Fe=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var A=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:A?A.length:0},this.o=new n(32768),this.p=new n(0),A&&this.o.set(A)}return e.prototype.e=function(e){if(this.ondata||N(5),this.d&&N(4),this.p.length){if(e.length){var t=new n(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,A=k(this.p,this.s,this.o);this.ondata(S(A,t,this.s.b),this.d),this.o=S(A,this.s.b-32768),this.s.b=this.o.length,this.p=S(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),Qe=function(){return function(e,t){ue([te,function(){return[ce,Fe]}],this,be.call(this,e,t),function(e){var t=new Fe(e.data);onmessage=ce(t)},7,0)}}();function Ue(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[te],function(e){return oe(Ee(e.data[0],ae(e.data[1])))},1,A)}function Ee(e,t){return k(e,{i:2},t&&t.out,t&&t.dictionary)}var Se=function(){function e(e,t){this.c=W(),this.l=0,this.v=1,Ce.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,Ce.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var A=Y(e,this.o,this.v&&Be(this.o),t&&8,this.s);this.v&&(ge(A,this.o),this.v=0),t&&(pe(A,A.length-8,this.c.d()),pe(A,A.length-4,this.l)),this.ondata(A,t)},e.prototype.flush=function(){Ce.prototype.flush.call(this)},e}(),Le=function(){return function(e,t){ue([Ae,re,function(){return[ce,Ce,Se]}],this,be.call(this,e,t),function(e){var t=new Se(e.data);onmessage=ce(t)},8,1)}}();function Ie(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[Ae,re,function(){return[Ne]}],function(e){return oe(Ne(e.data[0],e.data[1]))},2,A)}function Ne(e,t){t||(t={});var A=W(),r=e.length;A.p(e);var n=Y(e,t,Be(t),8),s=n.length;return ge(n,t),pe(n,s-8,A.d()),pe(n,s-4,r),n}var ke=function(){function e(e,t){this.v=1,this.r=0,Fe.call(this,e,t)}return e.prototype.push=function(e,t){if(Fe.prototype.e.call(this,e),this.r+=e.length,this.v){var A=this.p.subarray(this.v-1),r=A.length>3?me(A):4;if(r>A.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-A.length);this.p=A.subarray(r),this.v=0}Fe.prototype.c.call(this,t),!this.s.f||this.s.l||t||(this.v=E(this.s.p)+9,this.s={i:0},this.o=new n(0),this.push(new n(0),t))},e}(),He=function(){return function(e,t){var A=this;ue([te,ne,function(){return[ce,Fe,ke]}],this,be.call(this,e,t),function(e){var t=new ke(e.data);t.onmember=function(e){return postMessage(e)},onmessage=ce(t)},9,0,function(e){return A.onmember&&A.onmember(e)})}}();function Pe(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[te,ne,function(){return[Te]}],function(e){return oe(Te(e.data[0],e.data[1]))},3,A)}function Te(e,t){var A=me(e);return A+8>e.length&&N(6,"invalid gzip data"),k(e.subarray(A,-8),{i:2},t&&t.out||new n(we(e)),t&&t.dictionary)}var Oe=function(){function e(e,t){this.c=X(),this.v=1,Ce.call(this,e,t)}return e.prototype.push=function(e,t){this.c.p(e),Ce.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var A=Y(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(ye(A,this.o),this.v=0),t&&pe(A,A.length-4,this.c.d()),this.ondata(A,t)},e.prototype.flush=function(){Ce.prototype.flush.call(this)},e}(),Me=function(){return function(e,t){ue([Ae,se,function(){return[ce,Ce,Oe]}],this,be.call(this,e,t),function(e){var t=new Oe(e.data);onmessage=ce(t)},10,1)}}();function De(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[Ae,se,function(){return[Re]}],function(e){return oe(Re(e.data[0],e.data[1]))},4,A)}function Re(e,t){t||(t={});var A=X();A.p(e);var r=Y(e,t,t.dictionary?6:2,4);return ye(r,t),pe(r,r.length-4,A.d()),r}var Ke=function(){function e(e,t){Fe.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(Fe.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(ve(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&N(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Fe.prototype.c.call(this,t)},e}(),Ve=function(){return function(e,t){ue([te,ie,function(){return[ce,Fe,Ke]}],this,be.call(this,e,t),function(e){var t=new Ke(e.data);onmessage=ce(t)},11,0)}}();function Ge(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),le(e,t,[te,ie,function(){return[ze]}],function(e){return oe(ze(e.data[0],ae(e.data[1])))},5,A)}function ze(e,t){return k(e.subarray(ve(e,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}var qe=function(){function e(e,t){this.o=be.call(this,e,t)||{},this.G=ke,this.I=Fe,this.Z=Ke}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,A){e.ondata(t,A)}},e.prototype.push=function(e,t){if(this.ondata||N(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var A=new n(this.p.length+e.length);A.set(this.p),A.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}(),We=function(){function e(e,t){qe.call(this,e,t),this.queuedSize=0,this.G=He,this.I=Qe,this.Z=Ve}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,A,r){e.ondata(t,A,r)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},e.prototype.push=function(e,t){this.queuedSize+=e.length,qe.prototype.push.call(this,e,t)},e}();function Xe(e,t,A){return A||(A=t,t={}),"function"!=typeof A&&N(7),31==e[0]&&139==e[1]&&8==e[2]?Pe(e,t,A):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ue(e,t,A):Ge(e,t,A)}function Ye(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?Te(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ee(e,t):ze(e,t)}var Je=function(e,t,A,r){for(var s in e){var i=e[s],o=t+s,a=r;Array.isArray(i)&&(a=J(r,i[1]),i=i[0]),i instanceof n?A[o]=[i,a]:(A[o+="/"]=[new n(0),a],Je(i,o,A,r))}},Ze="undefined"!=typeof TextEncoder&&new TextEncoder,$e="undefined"!=typeof TextDecoder&&new TextDecoder,et=0;try{$e.decode(G,{stream:!0}),et=1}catch(e){}var tt=function(e){for(var t="",A=0;;){var r=e[A++],n=(r>127)+(r>223)+(r>239);if(A+n>e.length)return{s:t,r:S(e,A-1)};n?3==n?(r=((15&r)<<18|(63&e[A++])<<12|(63&e[A++])<<6|63&e[A++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&n?String.fromCharCode((31&r)<<6|63&e[A++]):String.fromCharCode((15&r)<<12|(63&e[A++])<<6|63&e[A++]):t+=String.fromCharCode(r)}},At=function(){function e(e){this.ondata=e,et?this.t=new TextDecoder:this.p=G}return e.prototype.push=function(e,t){if(this.ondata||N(5),t=!!t,this.t)return this.ondata(this.t.decode(e,{stream:!0}),t),void(t&&(this.t.decode().length&&N(8),this.t=null));this.p||N(4);var A=new n(this.p.length+e.length);A.set(this.p),A.set(e,this.p.length);var r=tt(A),s=r.s,i=r.r;t?(i.length&&N(8),this.p=null):this.p=i,this.ondata(s,t)},e}(),rt=function(){function e(e){this.ondata=e}return e.prototype.push=function(e,t){this.ondata||N(5),this.d&&N(4),this.ondata(nt(e),this.d=t||!1)},e}();function nt(e,t){if(t){for(var A=new n(e.length),r=0;r>1)),o=0,a=function(e){i[o++]=e};for(r=0;ri.length){var l=new n(o+8+(s-r<<1));l.set(i),i=l}var c=e.charCodeAt(r);c<128||t?a(c):c<2048?(a(192|c>>6),a(128|63&c)):c>55295&&c<57344?(a(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++r))>>18),a(128|c>>12&63),a(128|c>>6&63),a(128|63&c)):(a(224|c>>12),a(128|c>>6&63),a(128|63&c))}return S(i,0,o)}function st(e,t){if(t){for(var A="",r=0;r65535&&N(9),t+=r+4}return t},ut=function(e,t,A,r,n,s,i,o){var a=r.length,l=A.extra,c=o&&o.length,u=ct(l);pe(e,t,null!=i?33639248:67324752),t+=4,null!=i&&(e[t++]=20,e[t++]=A.os),e[t]=20,t+=2,e[t++]=A.flag<<1|(s<0&&8),e[t++]=n&&8,e[t++]=255&A.compression,e[t++]=A.compression>>8;var h=new Date(null==A.mtime?Date.now():A.mtime),d=h.getFullYear()-1980;if((d<0||d>119)&&N(10),pe(e,t,d<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=s&&(pe(e,t,A.crc),pe(e,t+4,s<0?-s-2:s),pe(e,t+8,A.size)),pe(e,t+12,a),pe(e,t+14,u),t+=16,null!=i&&(pe(e,t,c),pe(e,t+6,A.attrs),pe(e,t+10,i),t+=14),e.set(r,t),t+=a,u)for(var f in l){var p=l[f],g=p.length;pe(e,t,+f),pe(e,t+2,g),e.set(p,t+4),t+=4+g}return c&&(e.set(o,t),t+=c),t},ht=function(e,t,A,r,n){pe(e,t,101010256),pe(e,t+8,A),pe(e,t+10,A),pe(e,t+12,r),pe(e,t+16,n)},dt=function(){function e(e){this.filename=e,this.c=W(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||N(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}(),ft=function(){function e(e,t){var A=this;t||(t={}),dt.call(this,e),this.d=new Ce(t,function(e,t){A.ondata(null,e,t)}),this.compression=8,this.flag=it(t.level)}return e.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},e.prototype.push=function(e,t){dt.prototype.push.call(this,e,t)},e}(),pt=function(){function e(e,t){var A=this;t||(t={}),dt.call(this,e),this.d=new _e(t,function(e,t,r){A.ondata(e,t,r)}),this.compression=8,this.flag=it(t.level),this.terminate=this.d.terminate}return e.prototype.process=function(e,t){this.d.push(e,t)},e.prototype.push=function(e,t){dt.prototype.push.call(this,e,t)},e}(),gt=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||N(5),2&this.d)this.ondata(N(4+8*(1&this.d),0,1),null,!1);else{var A=nt(e.filename),r=A.length,s=e.comment,i=s&&nt(s),o=r!=e.filename.length||i&&s.length!=i.length,a=r+ct(e.extra)+30;r>65535&&this.ondata(N(11,0,1),null,!1);var l=new n(a);ut(l,0,e,A,o,-1);var c=[l],u=function(){for(var e=0,A=c;e65535&&_(N(11,0,1),null),C)if(g<16e4)try{_(null,xe(n,l))}catch(e){_(e,null)}else u.push(je(n,l,_));else _(null,n)},g=0;g65535&&N(11);var m=u?xe(l,c):l,w=m.length,B=W();B.p(l),r.push(J(c,{size:l.length,crc:B.d(),c:m,f:_,m:f,u:h!=o.length||f&&d.length!=p,o:s,compression:u})),s+=30+h+g+w,i+=76+2*(h+g)+(p||0)+w}for(var y=new n(i+22),v=s,b=i-s,C=0;C0){var r=Math.min(this.c,e.length),s=e.subarray(0,r);if(this.c-=r,this.d?this.d.push(s,!this.c):this.k[0].push(s),(e=e.subarray(r)).length)return this.push(e,t)}else{var i=0,o=0,a=void 0,l=void 0;this.p.length?e.length?((l=new n(this.p.length+e.length)).set(this.p),l.set(e,this.p.length)):l=this.p:l=e;for(var c=l.length,u=this.c,h=u&&this.d,d=function(){var e,t=de(l,o);if(67324752==t){i=1,a=o,f.d=null,f.c=0;var r=he(l,o+6),n=he(l,o+8),s=2048&r,h=8&r,d=he(l,o+26),p=he(l,o+28);if(c>o+30+d+p){var g=[];f.k.unshift(g),i=2;var m,w=de(l,o+18),B=de(l,o+22),y=st(l.subarray(o+30,o+=30+d),!s);4294967295==w?(e=h?[-2]:lt(l,o),w=e[0],B=e[1]):h&&(w=-1),o+=p,f.c=w;var v={name:y,compression:n,start:function(){if(v.ondata||N(5),w){var e=A.o[n];e||v.ondata(N(14,"unknown compression type "+n,1),null,!1),(m=w<0?new e(y):new e(y,w,B)).ondata=function(e,t,A){v.ondata(e,t,A)};for(var t=0,r=g;t=0&&(v.size=w,v.originalSize=B),f.onfile(v)}return"break"}if(u){if(134695760==t)return a=o+=12+(-2==u&&8),i=3,f.c=0,"break";if(33639248==t)return a=o-=4,i=3,f.c=0,"break"}},f=this;o65558)return o(N(13,0,1),null),s;var l=he(e,a+8);if(l){var c=l,u=de(e,a+16),h=4294967295==u||65535==c;if(h){var d=de(e,a-12);(h=101075792==de(e,d))&&(c=l=de(e,d+32),u=de(e,d+48))}for(var f=t&&t.filter,p=function(t){var A=at(e,u,h),a=A[0],c=A[1],d=A[2],p=A[3],g=A[4],m=A[5],w=ot(e,m);u=g;var B=function(e,t){e?(s(),o(e,null)):(t&&(i[p]=t),--l||o(null,i))};if(!f||f({name:p,size:c,originalSize:d,compression:a}))if(a)if(8==a){var y=e.subarray(w,w+c);if(d<524288||c>.8*d)try{B(null,Ee(y,{out:new n(d)}))}catch(e){B(e,null)}else r.push(Ue(y,{size:d},B))}else B(N(14,"unknown compression type "+a,1),null);else B(null,S(e,w,w+c));else B(null,null)},g=0;g65558)&&N(13);var s=he(e,r+8);if(!s)return{};var i=de(e,r+16),o=4294967295==i||65535==s;if(o){var a=de(e,r-12);(o=101075792==de(e,a))&&(s=de(e,a+32),i=de(e,a+48))}for(var l=t&&t.filter,c=0;c0&&n[n.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=55296&&n<=56319&&A>10),i%1024+56320)),(n+1===A||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),h=0;h<64;h++)u[c.charCodeAt(h)]=h;for(var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f="undefined"==typeof Uint8Array?[]:new Uint8Array(256),p=0;p<64;p++)f[d.charCodeAt(p)]=p;for(var g=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},m=function(){function e(e,t,A,r,n,s){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=r,this.index=n,this.data=s}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),y=0;y<64;y++)B[w.charCodeAt(y)]=y;var v=10,b=13,C=15,_=17,j=18,x=19,F=20,Q=21,U=22,E=24,S=25,L=26,I=27,N=28,k=30,H=32,P=33,T=34,O=35,M=37,D=38,R=39,K=40,V=42,G=[9001,65288],z="×",q="÷",W=function(e){var t,A,r,n=function(e){var t,A,r,n,s,i=.75*e.length,o=e.length,a=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&s;return l}(e),s=Array.isArray(n)?function(e){for(var t=e.length,A=[],r=0;r0;){var i=r[--s];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=A;o<=r.length;){var a;if((a=r[++o])===t)return!0;if(a!==v)break}if(i!==v)break}return!1},re=function(e,t){for(var A=e;A>=0;){var r=t[A];if(r!==v)return r;A--}return 0},ne=function(e,t,A,r,n){if(0===A[r])return z;var s=r-1;if(Array.isArray(n)&&!0===n[s])return z;var i=s-1,o=s+1,a=t[s],l=i>=0?t[i]:0,c=t[o];if(2===a&&3===c)return z;if(-1!==Y.indexOf(a))return"!";if(-1!==Y.indexOf(c))return z;if(-1!==J.indexOf(c))return z;if(8===re(s,t))return q;if(11===W.get(e[s]))return z;if((a===H||a===P)&&11===W.get(e[o]))return z;if(7===a||7===c)return z;if(9===a)return z;if(-1===[v,b,C].indexOf(a)&&9===c)return z;if(-1!==[_,j,x,E,N].indexOf(c))return z;if(re(s,t)===U)return z;if(Ae(23,U,s,t))return z;if(Ae([_,j],Q,s,t))return z;if(Ae(12,12,s,t))return z;if(a===v)return q;if(23===a||23===c)return z;if(16===c||16===a)return q;if(-1!==[b,C,Q].indexOf(c)||14===a)return z;if(36===l&&-1!==te.indexOf(a))return z;if(a===N&&36===c)return z;if(c===F)return z;if(-1!==X.indexOf(c)&&a===S||-1!==X.indexOf(a)&&c===S)return z;if(a===I&&-1!==[M,H,P].indexOf(c)||-1!==[M,H,P].indexOf(a)&&c===L)return z;if(-1!==X.indexOf(a)&&-1!==Z.indexOf(c)||-1!==Z.indexOf(a)&&-1!==X.indexOf(c))return z;if(-1!==[I,L].indexOf(a)&&(c===S||-1!==[U,C].indexOf(c)&&t[o+1]===S)||-1!==[U,C].indexOf(a)&&c===S||a===S&&-1!==[S,N,E].indexOf(c))return z;if(-1!==[S,N,E,_,j].indexOf(c))for(var u=s;u>=0;){if((h=t[u])===S)return z;if(-1===[N,E].indexOf(h))break;u--}if(-1!==[I,L].indexOf(c))for(u=-1!==[_,j].indexOf(a)?i:s;u>=0;){var h;if((h=t[u])===S)return z;if(-1===[N,E].indexOf(h))break;u--}if(D===a&&-1!==[D,R,T,O].indexOf(c)||-1!==[R,T].indexOf(a)&&-1!==[R,K].indexOf(c)||-1!==[K,O].indexOf(a)&&c===K)return z;if(-1!==ee.indexOf(a)&&-1!==[F,L].indexOf(c)||-1!==ee.indexOf(c)&&a===I)return z;if(-1!==X.indexOf(a)&&-1!==X.indexOf(c))return z;if(a===E&&-1!==X.indexOf(c))return z;if(-1!==X.concat(S).indexOf(a)&&c===U&&-1===G.indexOf(e[o])||-1!==X.concat(S).indexOf(c)&&a===j)return z;if(41===a&&41===c){for(var d=A[s],f=1;d>0&&41===t[--d];)f++;if(f%2!=0)return z}return a===H&&c===P?z:q},se=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=function(e,t){void 0===t&&(t="strict");var A=[],r=[],n=[];return e.forEach(function(e,s){var i=W.get(e);if(i>50?(n.push(!0),i-=50):n.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(s),A.push(16);if(4===i||11===i){if(0===s)return r.push(s),A.push(k);var o=A[s-1];return-1===$.indexOf(o)?(r.push(r[s-1]),A.push(o)):(r.push(s),A.push(k))}return r.push(s),31===i?A.push("strict"===t?Q:M):i===V||29===i?A.push(k):43===i?e>=131072&&e<=196605||e>=196608&&e<=262141?A.push(M):A.push(k):void A.push(i)}),[r,A,n]}(e,t.lineBreak),r=A[0],n=A[1],s=A[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(n=n.map(function(e){return-1!==[S,k,V].indexOf(e)?M:e}));var i="keep-all"===t.wordBreak?s.map(function(t,A){return t&&e[A]>=19968&&e[A]<=40959}):void 0;return[r,n,i]},ie=function(){function e(e,t,A,r){this.codePoints=e,this.required="!"===t,this.start=A,this.end=r}return e.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),oe=45,ae=43,le=-1,ce=function(e){return e>=48&&e<=57},ue=function(e){return ce(e)||e>=65&&e<=70||e>=97&&e<=102},he=function(e){return 10===e||9===e||32===e},de=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},fe=function(e){return de(e)||ce(e)||e===oe},pe=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ge=function(e,t){return 92===e&&10!==t},me=function(e,t,A){return e===oe?de(t)||ge(t,A):!!de(e)||!(92!==e||!ge(e,t))},we=function(e,t,A){return e===ae||e===oe?!!ce(t)||46===t&&ce(A):ce(46===e?t:e)},Be=function(e){var t=0,A=1;e[t]!==ae&&e[t]!==oe||(e[t]===oe&&(A=-1),t++);for(var r=[];ce(e[t]);)r.push(e[t++]);var n=r.length?parseInt(l.apply(void 0,r),10):0;46===e[t]&&t++;for(var s=[];ce(e[t]);)s.push(e[t++]);var i=s.length,o=i?parseInt(l.apply(void 0,s),10):0;69!==e[t]&&101!==e[t]||t++;var a=1;e[t]!==ae&&e[t]!==oe||(e[t]===oe&&(a=-1),t++);for(var c=[];ce(e[t]);)c.push(e[t++]);var u=c.length?parseInt(l.apply(void 0,c),10):0;return A*(n+o*Math.pow(10,-i))*Math.pow(10,a*u)},ye={type:2},ve={type:3},be={type:4},Ce={type:13},_e={type:8},je={type:21},xe={type:9},Fe={type:10},Qe={type:11},Ue={type:12},Ee={type:14},Se={type:23},Le={type:1},Ie={type:25},Ne={type:24},ke={type:26},He={type:27},Pe={type:28},Te={type:29},Oe={type:31},Me={type:32},De=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(a(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Me;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),A=this.peekCodePoint(1),r=this.peekCodePoint(2);if(fe(t)||ge(A,r)){var n=me(t,A,r)?2:1;return{type:5,value:this.consumeName(),flags:n}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case 39:return this.consumeStringToken(39);case 40:return ye;case 41:return ve;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;break;case ae:if(we(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return be;case oe:var s=e,i=this.peekCodePoint(0),o=this.peekCodePoint(1);if(we(s,i,o))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(me(s,i,o))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(i===oe&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Ne;break;case 46:if(we(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint()))return this.consumeToken();if(a===le)return this.consumeToken()}break;case 58:return ke;case 59:return He;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===oe&&this.peekCodePoint(2)===oe)return this.consumeCodePoint(),this.consumeCodePoint(),Ie;break;case 64:var c=this.peekCodePoint(0),u=this.peekCodePoint(1),h=this.peekCodePoint(2);if(me(c,u,h))return{type:7,value:this.consumeName()};break;case 91:return Pe;case 92:if(ge(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Te;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 123:return Qe;case 125:return Ue;case 117:case 85:var d=this.peekCodePoint(0),f=this.peekCodePoint(1);return d!==ae||!ue(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),xe;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),je;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Fe;break;case le:return Me}return he(e)?(this.consumeWhiteSpace(),Oe):ce(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):de(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:l(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();ue(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var A=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),A=!0;if(A)return{type:30,start:parseInt(l.apply(void 0,e.map(function(e){return 63===e?48:e})),16),end:parseInt(l.apply(void 0,e.map(function(e){return 63===e?70:e})),16)};var r=parseInt(l.apply(void 0,e),16);if(this.peekCodePoint(0)===oe&&ue(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var n=[];ue(t)&&n.length<6;)n.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(l.apply(void 0,n),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===le)return{type:22,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var A=this.consumeStringToken(this.consumeCodePoint());return 0===A.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===le||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:A.value}):(this.consumeBadUrlRemnants(),Se)}for(;;){var r=this.consumeCodePoint();if(r===le||41===r)return{type:22,value:l.apply(void 0,e)};if(he(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===le||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Se);if(34===r||39===r||40===r||pe(r))return this.consumeBadUrlRemnants(),Se;if(92===r){if(!ge(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Se;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;he(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===le)return;ge(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var A=Math.min(5e4,e);t+=l.apply(void 0,this._value.splice(0,A)),e-=A}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",A=0;;){var r=this._value[A];if(r===le||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(A)};if(10===r)return this._value.splice(0,A),Le;if(92===r){var n=this._value[A+1];n!==le&&void 0!==n&&(10===n?(t+=this.consumeStringSlice(A),A=-1,this._value.shift()):ge(r,n)&&(t+=this.consumeStringSlice(A),t+=l(this.consumeEscapedCodePoint()),A=-1))}A++}},e.prototype.consumeNumber=function(){var e=[],t=4,A=this.peekCodePoint(0);for(A!==ae&&A!==oe||e.push(this.consumeCodePoint());ce(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===A&&ce(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ce(this.peekCodePoint(0));)e.push(this.consumeCodePoint());A=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((69===A||101===A)&&((r===ae||r===oe)&&ce(n)||ce(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ce(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Be(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],A=e[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);return me(r,n,s)?{type:15,number:t,flags:A,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:t,flags:A}):{type:17,number:t,flags:A}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ue(e)){for(var t=l(e);ue(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());he(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(t,16);return 0===A||function(e){return e>=55296&&e<=57343}(A)||A>1114111?65533:A}return e===le?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(fe(t))e+=l(t);else{if(!ge(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=l(this.consumeEscapedCodePoint())}}},e}(),Re=function(){function e(e){this._tokens=e}return e.create=function(t){var A=new De;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},A=this.consumeToken();;){if(32===A.type||Je(A,e))return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue()),A=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var A=this.consumeToken();if(32===A.type||3===A.type)return t;this.reconsumeToken(A),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Me:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Ke=function(e){return 15===e.type},Ve=function(e){return 17===e.type},Ge=function(e){return 20===e.type},ze=function(e){return 0===e.type},qe=function(e,t){return Ge(e)&&e.value===t},We=function(e){return 31!==e.type},Xe=function(e){return 31!==e.type&&4!==e.type},Ye=function(e){var t=[],A=[];return e.forEach(function(e){if(4===e.type){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(A),void(A=[])}31!==e.type&&A.push(e)}),A.length&&t.push(A),t},Je=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},Ze=function(e){return 17===e.type||15===e.type},$e=function(e){return 16===e.type||Ze(e)},et=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},tt={type:17,number:0,flags:4},At={type:16,number:50,flags:4},rt={type:16,number:100,flags:4},nt=function(e,t,A){var r=e[0],n=e[1];return[st(r,t),st(void 0!==n?n:r,A)]},st=function(e,t){if(16===e.type)return e.number/100*t;if(Ke(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},it="grad",ot="turn",at=function(e,t){if(15===t.type)switch(t.unit){case"deg":return Math.PI*t.number/180;case it:return Math.PI/200*t.number;case"rad":return t.number;case ot:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")},lt=function(e){return 15===e.type&&("deg"===e.unit||e.unit===it||"rad"===e.unit||e.unit===ot)},ct=function(e){switch(e.filter(Ge).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tt,tt];case"to top":case"bottom":return ut(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tt,rt];case"to right":case"left":return ut(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[rt,rt];case"to bottom":case"top":return ut(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[rt,tt];case"to left":case"right":return ut(270)}return 0},ut=function(e){return Math.PI*e/180},ht=function(e,t){if(18===t.type){var A=yt[t.name];if(void 0===A)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),n=t.value.substring(1,2),s=t.value.substring(2,3);return pt(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(4===t.value.length){r=t.value.substring(0,1),n=t.value.substring(1,2),s=t.value.substring(2,3);var i=t.value.substring(3,4);return pt(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(i+i,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),n=t.value.substring(2,4),s=t.value.substring(4,6),pt(parseInt(r,16),parseInt(n,16),parseInt(s,16),1);if(8===t.value.length)return r=t.value.substring(0,2),n=t.value.substring(2,4),s=t.value.substring(4,6),i=t.value.substring(6,8),pt(parseInt(r,16),parseInt(n,16),parseInt(s,16),parseInt(i,16)/255)}if(20===t.type){var o=bt[t.value.toUpperCase()];if(void 0!==o)return o}return bt.TRANSPARENT},dt=function(e){return!(255&e)},ft=function(e){var t=255&e,A=255&e>>8,r=255&e>>16,n=255&e>>24;return t<255?"rgba("+n+","+r+","+A+","+t/255+")":"rgb("+n+","+r+","+A+")"},pt=function(e,t,A,r){return(e<<24|t<<16|A<<8|Math.round(255*r))>>>0},gt=function(e,t){if(17===e.type)return e.number;if(16===e.type){var A=3===t?1:255;return 3===t?e.number/100*A:Math.round(e.number/100*A)}return 0},mt=function(e,t){var A=t.filter(Xe);if(3===A.length){var r=A.map(gt),n=r[0],s=r[1],i=r[2];return pt(n,s,i,1)}if(4===A.length){var o=A.map(gt),a=(n=o[0],s=o[1],i=o[2],o[3]);return pt(n,s,i,a)}return 0};function wt(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<.5?t:A<2/3?6*(t-e)*(2/3-A)+e:e}var Bt=function(e,t){var A=t.filter(Xe),r=A[0],n=A[1],s=A[2],i=A[3],o=(17===r.type?ut(r.number):at(e,r))/(2*Math.PI),a=$e(n)?n.number/100:0,l=$e(s)?s.number/100:0,c=void 0!==i&&$e(i)?st(i,1):1;if(0===a)return pt(255*l,255*l,255*l,1);var u=l<=.5?l*(a+1):l+a-l*a,h=2*l-u,d=wt(h,u,o+1/3),f=wt(h,u,o),p=wt(h,u,o-1/3);return pt(255*d,255*f,255*p,c)},yt={hsl:Bt,hsla:Bt,rgb:mt,rgba:mt},vt=function(e,t){return ht(e,Re.create(t).parseComponentValue())},bt={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},Ct={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ge(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_t={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jt=function(e,t){var A=ht(e,t[0]),r=t[1];return r&&$e(r)?{color:A,stop:r}:{color:A,stop:null}},xt=function(e,t){var A=e[0],r=e[e.length-1];null===A.stop&&(A.stop=tt),null===r.stop&&(r.stop=rt);for(var n=[],s=0,i=0;is?n.push(a):n.push(s),s=a}else n.push(null)}var l=null;for(i=0;ie.optimumDistance)?{optimumCorner:t,optimumDistance:o}:e},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Et=function(e,t){var A=ut(180),r=[];return Ye(t).forEach(function(t,n){if(0===n){var s=t[0];if(20===s.type&&-1!==["top","left","right","bottom"].indexOf(s.value))return void(A=ct(t));if(lt(s))return void(A=(at(e,s)+ut(270))%ut(360))}var i=jt(e,t);r.push(i)}),{angle:A,stops:r,type:1}},St="closest-side",Lt="farthest-side",It="closest-corner",Nt="farthest-corner",kt="circle",Ht="ellipse",Pt="cover",Tt="contain",Ot=function(e,t){var A=0,r=3,n=[],s=[];return Ye(t).forEach(function(t,i){var o=!0;if(0===i?o=t.reduce(function(e,t){if(Ge(t))switch(t.value){case"center":return s.push(At),!1;case"top":case"left":return s.push(tt),!1;case"right":case"bottom":return s.push(rt),!1}else if($e(t)||Ze(t))return s.push(t),!1;return e},o):1===i&&(o=t.reduce(function(e,t){if(Ge(t))switch(t.value){case kt:return A=0,!1;case Ht:return A=1,!1;case Tt:case St:return r=0,!1;case Lt:return r=1,!1;case It:return r=2,!1;case Pt:case Nt:return r=3,!1}else if(Ze(t)||$e(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},o)),o){var a=jt(e,t);n.push(a)}}),{size:r,shape:A,stops:n,position:s,type:2}},Mt=function(e,t){if(22===t.type){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(18===t.type){var r=Rt[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)};var Dt,Rt={"linear-gradient":function(e,t){var A=ut(180),r=[];return Ye(t).forEach(function(t,n){if(0===n){var s=t[0];if(20===s.type&&"to"===s.value)return void(A=ct(t));if(lt(s))return void(A=at(e,s))}var i=jt(e,t);r.push(i)}),{angle:A,stops:r,type:1}},"-moz-linear-gradient":Et,"-ms-linear-gradient":Et,"-o-linear-gradient":Et,"-webkit-linear-gradient":Et,"radial-gradient":function(e,t){var A=0,r=3,n=[],s=[];return Ye(t).forEach(function(t,i){var o=!0;if(0===i){var a=!1;o=t.reduce(function(e,t){if(a)if(Ge(t))switch(t.value){case"center":return s.push(At),e;case"top":case"left":return s.push(tt),e;case"right":case"bottom":return s.push(rt),e}else($e(t)||Ze(t))&&s.push(t);else if(Ge(t))switch(t.value){case kt:return A=0,!1;case Ht:return A=1,!1;case"at":return a=!0,!1;case St:return r=0,!1;case Pt:case Lt:return r=1,!1;case Tt:case It:return r=2,!1;case Nt:return r=3,!1}else if(Ze(t)||$e(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},o)}if(o){var l=jt(e,t);n.push(l)}}),{size:r,shape:A,stops:n,position:s,type:2}},"-moz-radial-gradient":Ot,"-ms-radial-gradient":Ot,"-o-radial-gradient":Ot,"-webkit-radial-gradient":Ot,"-webkit-gradient":function(e,t){var A=ut(180),r=[],n=1;return Ye(t).forEach(function(t,A){var s=t[0];if(0===A){if(Ge(s)&&"linear"===s.value)return void(n=1);if(Ge(s)&&"radial"===s.value)return void(n=2)}if(18===s.type)if("from"===s.name){var i=ht(e,s.values[0]);r.push({stop:tt,color:i})}else if("to"===s.name)i=ht(e,s.values[0]),r.push({stop:rt,color:i});else if("color-stop"===s.name){var o=s.values.filter(Xe);if(2===o.length){i=ht(e,o[1]);var a=o[0];Ve(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:i})}}}),1===n?{angle:(A+ut(180))%ut(360),stops:r,type:n}:{size:3,shape:0,stops:r,position:[],type:n}}},Kt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var A=t[0];return 20===A.type&&"none"===A.value?[]:t.filter(function(e){return Xe(e)&&function(e){return!(20===e.type&&"none"===e.value||18===e.type&&!Rt[e.name])}(e)}).map(function(t){return Mt(e,t)})}},Vt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Ge(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Gt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Ye(t).map(function(e){return e.filter($e)}).map(et)}},zt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Ge).map(function(e){return e.value}).join(" ")}).map(qt)}},qt=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Dt||(Dt={}));var Wt,Xt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Ye(t).map(function(e){return e.filter(Yt)})}},Yt=function(e){return Ge(e)||$e(e)},Jt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Zt=Jt("top"),$t=Jt("right"),eA=Jt("bottom"),tA=Jt("left"),AA=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return et(t.filter($e))}}},rA=AA("top-left"),nA=AA("top-right"),sA=AA("bottom-right"),iA=AA("bottom-left"),oA=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},aA=oA("top"),lA=oA("right"),cA=oA("bottom"),uA=oA("left"),hA=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Ke(t)?t.number:0}}},dA=hA("top"),fA=hA("right"),pA=hA("bottom"),gA=hA("left"),mA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wA={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},BA={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).reduce(function(e,t){return e|yA(t.value)},0)}},yA=function(e){switch(e){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},vA={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},bA={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Wt||(Wt={}));var CA,_A={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Wt.STRICT:Wt.NORMAL}},jA={name:"line-height",initialValue:"normal",prefix:!1,type:4},xA=function(e,t){return Ge(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:$e(e)?st(e,t):t},FA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Mt(e,t)}},QA={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},UA={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},EA=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},SA=EA("top"),LA=EA("right"),IA=EA("bottom"),NA=EA("left"),kA={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Ge).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},HA={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},PA=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},TA=PA("top"),OA=PA("right"),MA=PA("bottom"),DA=PA("left"),RA={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},KA={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},VA={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&qe(t[0],"none")?[]:Ye(t).map(function(t){for(var A={color:bt.TRANSPARENT,offsetX:tt,offsetY:tt,blur:tt},r=0,n=0;n1?1:0],this.overflowWrap=Cr(e,HA,t.overflowWrap),this.paddingTop=Cr(e,TA,t.paddingTop),this.paddingRight=Cr(e,OA,t.paddingRight),this.paddingBottom=Cr(e,MA,t.paddingBottom),this.paddingLeft=Cr(e,DA,t.paddingLeft),this.paintOrder=Cr(e,mr,t.paintOrder),this.position=Cr(e,KA,t.position),this.textAlign=Cr(e,RA,t.textAlign),this.textDecorationColor=Cr(e,Ar,null!==(A=t.textDecorationColor)&&void 0!==A?A:t.color),this.textDecorationLine=Cr(e,rr,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Cr(e,VA,t.textShadow),this.textTransform=Cr(e,GA,t.textTransform),this.transform=Cr(e,zA,t.transform),this.transformOrigin=Cr(e,YA,t.transformOrigin),this.visibility=Cr(e,JA,t.visibility),this.webkitTextStrokeColor=Cr(e,wr,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Cr(e,Br,t.webkitTextStrokeWidth),this.wordBreak=Cr(e,ZA,t.wordBreak),this.zIndex=Cr(e,$A,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return dt(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return lr(this.display,4)||lr(this.display,33554432)||lr(this.display,268435456)||lr(this.display,536870912)||lr(this.display,67108864)||lr(this.display,134217728)},e}(),vr=function(e,t){this.content=Cr(e,cr,t.content),this.quotes=Cr(e,fr,t.quotes)},br=function(e,t){this.counterIncrement=Cr(e,ur,t.counterIncrement),this.counterReset=Cr(e,hr,t.counterReset)},Cr=function(e,t,A){var r=new De,n=null!=A?A.toString():t.initialValue;r.write(n);var s=new Re(r.read());switch(t.type){case 2:var i=s.parseComponentValue();return t.parse(e,Ge(i)?i.value:t.initialValue);case 0:return t.parse(e,s.parseComponentValue());case 1:return t.parse(e,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(t.format){case"angle":return at(e,s.parseComponentValue());case"color":return ht(e,s.parseComponentValue());case"image":return Mt(e,s.parseComponentValue());case"length":var o=s.parseComponentValue();return Ze(o)?o:tt;case"length-percentage":var a=s.parseComponentValue();return $e(a)?a:tt;case"time":return er.parse(e,s.parseComponentValue())}}},_r=function(e,t){var A=function(e){switch(e.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(e);return 1===A||t===A},jr=function(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,_r(t,3),this.styles=new yr(e,window.getComputedStyle(t,null)),En(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=o(this.context,t),_r(t,4)&&(this.flags|=16)},xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qr=0;Qr<64;Qr++)Fr[xr.charCodeAt(Qr)]=Qr;for(var Ur=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},Er=function(){function e(e,t,A,r,n,s){this.initialValue=e,this.errorValue=t,this.highStart=A,this.highValueIndex=r,this.index=n,this.data=s}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ir=0;Ir<64;Ir++)Lr[Sr.charCodeAt(Ir)]=Ir;var Nr,kr=8,Hr=9,Pr=11,Tr=12,Or=function(){for(var e=[],t=0;t>10),i%1024+56320)),(n+1===A||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},Mr=function(e){var t,A,r,n=function(e){var t,A,r,n,s,i=.75*e.length,o=e.length,a=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t>4,c[a++]=(15&r)<<4|n>>2,c[a++]=(3&n)<<6|63&s;return l}(e),s=Array.isArray(n)?function(e){for(var t=e.length,A=[],r=0;r=55296&&n<=56319&&A=A)return{done:!0,value:null};for(var e=Dr;ri.x||n.y>i.y;return i=n,0===t||o});return e.body.removeChild(t),o}(document);return Object.defineProperty(Wr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,A=e.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),A.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Wr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var n=new Image,s=t.toDataURL();n.src=s;var i=zr(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),qr(i).then(function(t){r.drawImage(t,0,0);var n=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var i=e.createElement("div");return i.style.backgroundImage="url("+s+")",i.style.height=A+"px",Gr(n)?qr(zr(A,A,0,0,i)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Gr(r.getImageData(0,0,A,A).data)}).catch(function(){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(Wr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Wr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Wr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Wr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Wr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Xr=function(e,t){this.text=e,this.bounds=t},Yr=function(e,t){var A=t.ownerDocument;if(A){var r=A.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var s=o(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),s}}return i.EMPTY},Jr=function(e,t,A){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,t),n.setEnd(e,t+A),n},Zr=function(e){if(Wr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return function(e){for(var t,A=Vr(e),r=[];!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r}(e)},$r=function(e,t){return 0!==t.letterSpacing?Zr(e):function(e,t){if(Wr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(e){return e.segment})}return tn(e,t)}(e,t)},en=[32,160,4961,65792,65793,4153,4241],tn=function(e,t){for(var A,r=function(e,t){var A=a(e),r=se(A,t),n=r[0],s=r[1],i=r[2],o=A.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var e=z;c0)if(Wr.SUPPORT_RANGE_BOUNDS){var n=Jr(r,o,t.length).getClientRects();if(n.length>1){var a=Zr(t),l=0;a.forEach(function(t){s.push(new Xr(t,i.fromDOMRectList(e,Jr(r,l+o,t.length).getClientRects()))),l+=t.length})}else s.push(new Xr(t,i.fromDOMRectList(e,n)))}else{var c=r.splitText(t.length);s.push(new Xr(t,Yr(e,r))),r=c}else Wr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));o+=t.length}),s}(e,this.text,A,t)},rn=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(nn,sn);case 2:return e.toUpperCase();default:return e}},nn=/(^|\s|:|-|\(|\))([a-z])/g,sn=function(e,t,A){return e.length>0?t+A.toUpperCase():e},on=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.src=A.currentSrc||A.src,r.intrinsicWidth=A.naturalWidth,r.intrinsicHeight=A.naturalHeight,r.context.cache.addImage(r.src),r}return t(A,e),A}(jr),an=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.canvas=A,r.intrinsicWidth=A.width,r.intrinsicHeight=A.height,r}return t(A,e),A}(jr),ln=function(e){function A(t,A){var r=e.call(this,t,A)||this,n=new XMLSerializer,s=o(t,A);return A.setAttribute("width",s.width+"px"),A.setAttribute("height",s.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(A)),r.intrinsicWidth=A.width.baseVal.value,r.intrinsicHeight=A.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(A,e),A}(jr),cn=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.value=A.value,r}return t(A,e),A}(jr),un=function(e){function A(t,A){var r=e.call(this,t,A)||this;return r.start=A.start,r.reversed="boolean"==typeof A.reversed&&!0===A.reversed,r}return t(A,e),A}(jr),hn=[{type:15,flags:0,unit:"px",number:3}],dn=[{type:16,flags:0,number:50}],fn="checkbox",pn="radio",gn="password",mn=707406591,wn=function(e){function A(t,A){var r,n,s,o=e.call(this,t,A)||this;switch(o.type=A.type.toLowerCase(),o.checked=A.checked,o.value=0===(s=(n=A).type===gn?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":s,o.type!==fn&&o.type!==pn||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=(r=o.bounds).width>r.height?new i(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)A.textNodes.push(new An(e,n,A.styles));else if(Un(n))if(Vn(n)&&n.assignedNodes)n.assignedNodes().forEach(function(t){return Cn(e,t,A,r)});else{var i=_n(e,n);i.styles.isVisible()&&(xn(n,i,r)?i.flags|=4:Fn(i.styles)&&(i.flags|=2),-1!==bn.indexOf(n.tagName)&&(i.flags|=8),A.elements.push(i),n.slot,n.shadowRoot?Cn(e,n.shadowRoot,i,r):Rn(n)||kn(n)||Kn(n)||Cn(e,n,i,r))}},_n=function(e,t){return On(t)?new on(e,t):Pn(t)?new an(e,t):kn(t)?new ln(e,t):Ln(t)?new cn(e,t):In(t)?new un(e,t):Nn(t)?new wn(e,t):Kn(t)?new Bn(e,t):Rn(t)?new yn(e,t):Mn(t)?new vn(e,t):new jr(e,t)},jn=function(e,t){var A=_n(e,t);return A.flags|=4,Cn(e,t,A,A),A},xn=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Hn(e)&&A.styles.isTransparent()},Fn=function(e){return e.isPositioned()||e.isFloating()},Qn=function(e){return e.nodeType===Node.TEXT_NODE},Un=function(e){return e.nodeType===Node.ELEMENT_NODE},En=function(e){return Un(e)&&void 0!==e.style&&!Sn(e)},Sn=function(e){return"object"==typeof e.className},Ln=function(e){return"LI"===e.tagName},In=function(e){return"OL"===e.tagName},Nn=function(e){return"INPUT"===e.tagName},kn=function(e){return"svg"===e.tagName},Hn=function(e){return"BODY"===e.tagName},Pn=function(e){return"CANVAS"===e.tagName},Tn=function(e){return"VIDEO"===e.tagName},On=function(e){return"IMG"===e.tagName},Mn=function(e){return"IFRAME"===e.tagName},Dn=function(e){return"STYLE"===e.tagName},Rn=function(e){return"TEXTAREA"===e.tagName},Kn=function(e){return"SELECT"===e.tagName},Vn=function(e){return"SLOT"===e.tagName},Gn=function(e){return e.tagName.indexOf("-")>0},zn=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,A=e.counterIncrement,r=e.counterReset,n=!0;null!==A&&A.forEach(function(e){var A=t.counters[e.counter];A&&0!==e.increment&&(n=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=e.increment)});var s=[];return n&&r.forEach(function(e){var A=t.counters[e.counter];s.push(e.counter),A||(A=t.counters[e.counter]=[]),A.push(e.reset)}),s},e}(),qn={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"]},Wn={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Xn={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Yn={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jn=function(e,t,A,r,n,s){return eA?is(e,n,s.length>0):r.integers.reduce(function(t,A,n){for(;e>=A;)e-=A,t+=r.values[n];return t},"")+s},Zn=function(e,t,A,r){var n="";do{A||e--,n=r(e)+n,e/=t}while(e*t>=t);return n},$n=function(e,t,A,r,n){var s=A-t+1;return(e<0?"-":"")+(Zn(Math.abs(e),s,r,function(e){return l(Math.floor(e%s)+t)})+n)},es=function(e,t,A){void 0===A&&(A=". ");var r=t.length;return Zn(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+A},ts=function(e,t,A,r,n,s){if(e<-9999||e>9999)return is(e,4,n.length>0);var i=Math.abs(e),o=n;if(0===i)return t[0]+o;for(var a=0;i>0&&a<=4;a++){var l=i%10;0===l&&lr(s,1)&&""!==o?o=t[l]+o:l>1||1===l&&0===a||1===l&&1===a&&lr(s,2)||1===l&&1===a&&lr(s,4)&&e>100||1===l&&a>1&&lr(s,8)?o=t[l]+(a>0?A[a-1]:"")+o:1===l&&a>0&&(o=A[a-1]+o),i=Math.floor(i/10)}return(e<0?r:"")+o},As="十百千萬",rs="拾佰仟萬",ns="マイナス",ss="마이너스",is=function(e,t,A){var r=A?". ":"",n=A?"、":"",s=A?", ":"",i=A?" ":"";switch(t){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=$n(e,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return es(e,"〇一二三四五六七八九",n);case 6:return Jn(e,1,3999,qn,3,r).toLowerCase();case 7:return Jn(e,1,3999,qn,3,r);case 8:return $n(e,945,969,!1,r);case 9:return $n(e,97,122,!1,r);case 10:return $n(e,65,90,!1,r);case 11:return $n(e,1632,1641,!0,r);case 12:case 49:return Jn(e,1,9999,Wn,3,r);case 35:return Jn(e,1,9999,Wn,3,r).toLowerCase();case 13:return $n(e,2534,2543,!0,r);case 14:case 30:return $n(e,6112,6121,!0,r);case 15:return es(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return es(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ts(e,"零一二三四五六七八九",As,"負",n,14);case 47:return ts(e,"零壹貳參肆伍陸柒捌玖",rs,"負",n,15);case 42:return ts(e,"零一二三四五六七八九",As,"负",n,14);case 41:return ts(e,"零壹贰叁肆伍陆柒捌玖",rs,"负",n,15);case 26:return ts(e,"〇一二三四五六七八九","十百千万",ns,n,0);case 25:return ts(e,"零壱弐参四伍六七八九","拾百千万",ns,n,7);case 31:return ts(e,"영일이삼사오육칠팔구","십백천만",ss,s,7);case 33:return ts(e,"零一二三四五六七八九","十百千萬",ss,s,0);case 32:return ts(e,"零壹貳參四五六七八九","拾百千",ss,s,7);case 18:return $n(e,2406,2415,!0,r);case 20:return Jn(e,1,19999,Yn,3,r);case 21:return $n(e,2790,2799,!0,r);case 22:return $n(e,2662,2671,!0,r);case 22:return Jn(e,1,10999,Xn,3,r);case 23:return es(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return es(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return $n(e,3302,3311,!0,r);case 28:return es(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return es(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return $n(e,3792,3801,!0,r);case 37:return $n(e,6160,6169,!0,r);case 38:return $n(e,4160,4169,!0,r);case 39:return $n(e,2918,2927,!0,r);case 40:return $n(e,1776,1785,!0,r);case 43:return $n(e,3046,3055,!0,r);case 44:return $n(e,3174,3183,!0,r);case 45:return $n(e,3664,3673,!0,r);case 46:return $n(e,3872,3881,!0,r);default:return $n(e,48,57,!0,r)}},os="data-html2canvas-ignore",as=function(){function e(e,t,A){if(this.context=e,this.options=A,this.scrolledElements=[],this.referenceElement=t,this.counters=new zn,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var A=this,s=cs(e,t);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,a=s.contentWindow,l=a.document,c=ds(s).then(function(){return r(A,void 0,void 0,function(){var e,A;return n(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ws),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-t.left,a.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(A=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,hs(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(l,A)}).then(function(){return s})]:[2,s]}})})});return l.open(),l.write(gs(document.doctype)+""),ms(this.referenceElement.ownerDocument,i,o),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){if(_r(e,2),Pn(e))return this.createCanvasClone(e);if(Tn(e))return this.createVideoClone(e);if(Dn(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return On(t)&&(On(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Gn(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return ps(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var A=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=A,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var A=e.ownerDocument.createElement("img");try{return A.src=e.toDataURL(),A}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var n=e.getContext("2d"),s=r.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,e.width,e.height),0,0);else{var i=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(i){var o=i.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var A=t.getContext("2d");try{return A&&(A.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||A.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,A){Un(t)&&("SCRIPT"===t.tagName||t.hasAttribute(os)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&Un(t)&&Dn(t)||e.appendChild(this.cloneNode(t,A))},e.prototype.cloneChildNodes=function(e,t,A){for(var r=this,n=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;n;n=n.nextSibling)if(Un(n)&&Vn(n)&&"function"==typeof n.assignedNodes){var s=n.assignedNodes();s.length&&s.forEach(function(e){return r.appendChildNode(t,e,A)})}else this.appendChildNode(t,n,A)},e.prototype.cloneNode=function(e,t){if(Qn(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var A=e.ownerDocument.defaultView;if(A&&Un(e)&&(En(e)||Sn(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var n=A.getComputedStyle(e),s=A.getComputedStyle(e,":before"),i=A.getComputedStyle(e,":after");this.referenceElement===e&&En(r)&&(this.clonedReferenceElement=r),Hn(r)&&bs(r);var o=this.counters.parse(new br(this.context,n)),a=this.resolvePseudoContent(e,r,s,Nr.BEFORE);Gn(e)&&(t=!0),Tn(e)||this.cloneChildNodes(e,r,t),a&&r.insertBefore(a,r.firstChild);var l=this.resolvePseudoContent(e,r,i,Nr.AFTER);return l&&r.appendChild(l),this.counters.pop(o),(n&&(this.options.copyStyles||Sn(e))&&!Mn(e)||t)&&ps(n,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Rn(e)||Kn(e))&&(Rn(r)||Kn(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,A,r){var n=this;if(A){var s=A.content,i=t.ownerDocument;if(i&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==A.display){this.counters.parse(new br(this.context,A));var o=new vr(this.context,A),a=i.createElement("html2canvaspseudoelement");ps(A,a),o.content.forEach(function(t){if(0===t.type)a.appendChild(i.createTextNode(t.value));else if(22===t.type){var A=i.createElement("img");A.src=t.value,A.style.opacity="1",a.appendChild(A)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Ge);r.length&&a.appendChild(i.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var s=t.values.filter(Xe),l=s[0],c=s[1];if(l&&Ge(l)){var u=n.counters.getCounterValue(l.value),h=c&&Ge(c)?UA.parse(n.context,c.value):3;a.appendChild(i.createTextNode(is(u,h,!1)))}}else if("counters"===t.name){var d=t.values.filter(Xe),f=(l=d[0],d[1]);if(c=d[2],l&&Ge(l)){var p=n.counters.getCounterValues(l.value),g=c&&Ge(c)?UA.parse(n.context,c.value):3,m=f&&0===f.type?f.value:"",w=p.map(function(e){return is(e,g,!1)}).join(m);a.appendChild(i.createTextNode(w))}}}else if(20===t.type)switch(t.value){case"open-quote":a.appendChild(i.createTextNode(pr(o.quotes,n.quoteDepth++,!0)));break;case"close-quote":a.appendChild(i.createTextNode(pr(o.quotes,--n.quoteDepth,!1)));break;default:a.appendChild(i.createTextNode(t.value))}}),a.className=Bs+" "+ys;var l=r===Nr.BEFORE?" "+Bs:" "+ys;return Sn(t)?t.className.baseValue+=l:t.className+=l,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Nr||(Nr={}));var ls,cs=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(os,"true"),e.body.appendChild(A),A},us=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},hs=function(e){return Promise.all([].slice.call(e.images,0).map(us))},ds=function(e){return new Promise(function(t,A){var r=e.contentWindow;if(!r)return A("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var A=setInterval(function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(A),t(e))},50)}})},fs=["all","d","content"],ps=function(e,t){for(var A=e.length-1;A>=0;A--){var r=e.item(A);-1===fs.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},gs=function(e){var t="";return e&&(t+=""),t},ms=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},ws=function(e){var t=e[0],A=e[1],r=e[2];t.scrollLeft=A,t.scrollTop=r},Bs="___html2canvas___pseudoelement_before",ys="___html2canvas___pseudoelement_after",vs='{\n content: "" !important;\n display: none !important;\n}',bs=function(e){Cs(e,"."+Bs+":before"+vs+"\n ."+ys+":after"+vs)},Cs=function(e,t){var A=e.ownerDocument;if(A){var r=A.createElement("style");r.textContent=t,e.appendChild(r)}},_s=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),js=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Ls(e)||Us(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,A,r,s,i=this;return n(this,function(n){switch(n.label){case 0:return t=_s.isSameOrigin(e),A=!Es(e)&&!0===this._options.useCORS&&Wr.SUPPORT_CORS_IMAGES&&!t,r=!Es(e)&&!t&&!Ls(e)&&"string"==typeof this._options.proxy&&Wr.SUPPORT_CORS_XHR&&!A,t||!1!==this._options.allowTaint||Es(e)||Ls(e)||r||A?(s=e,r?[4,this.proxy(s)]:[3,2]):[2];case 1:s=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Ss(s)||A)&&(r.crossOrigin="anonymous"),r.src=s,!0===r.complete&&setTimeout(function(){return e(r)},500),i._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,n.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(n,s){var i=Wr.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===i)n(o.response);else{var e=new FileReader;e.addEventListener("load",function(){return n(e.result)},!1),e.addEventListener("error",function(e){return s(e)},!1),e.readAsDataURL(o.response)}else s("Failed to proxy resource "+r+" with status code "+o.status)},o.onerror=s;var a=A.indexOf("?")>-1?"&":"?";if(o.open("GET",""+A+a+"url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&o instanceof XMLHttpRequest&&(o.responseType=i),t._options.imageTimeout){var l=t._options.imageTimeout;o.timeout=l,o.ontimeout=function(){return s("Timed out ("+l+"ms) proxying "+r)}}o.send()})},e}(),xs=/^data:image\/svg\+xml/i,Fs=/^data:image\/.*;base64,/i,Qs=/^data:image\/.*/i,Us=function(e){return Wr.SUPPORT_SVG_DRAWING||!Is(e)},Es=function(e){return Qs.test(e)},Ss=function(e){return Fs.test(e)},Ls=function(e){return"blob"===e.substr(0,4)},Is=function(e){return"svg"===e.substr(-3).toLowerCase()||xs.test(e)},Ns=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),ks=function(e,t,A){return new Ns(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},Hs=function(){function e(e,t,A,r){this.type=1,this.start=e,this.startControl=t,this.endControl=A,this.end=r}return e.prototype.subdivide=function(t,A){var r=ks(this.start,this.startControl,t),n=ks(this.startControl,this.endControl,t),s=ks(this.endControl,this.end,t),i=ks(r,n,t),o=ks(n,s,t),a=ks(i,o,t);return A?new e(this.start,r,i,a):new e(a,o,s,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ps=function(e){return 1===e.type},Ts=function(e){var t=e.styles,A=e.bounds,r=nt(t.borderTopLeftRadius,A.width,A.height),n=r[0],s=r[1],i=nt(t.borderTopRightRadius,A.width,A.height),o=i[0],a=i[1],l=nt(t.borderBottomRightRadius,A.width,A.height),c=l[0],u=l[1],h=nt(t.borderBottomLeftRadius,A.width,A.height),d=h[0],f=h[1],p=[];p.push((n+o)/A.width),p.push((d+c)/A.width),p.push((s+f)/A.height),p.push((a+u)/A.height);var g=Math.max.apply(Math,p);g>1&&(n/=g,s/=g,o/=g,a/=g,c/=g,u/=g,d/=g,f/=g);var m=A.width-o,w=A.height-u,B=A.width-c,y=A.height-f,v=t.borderTopWidth,b=t.borderRightWidth,C=t.borderBottomWidth,_=t.borderLeftWidth,j=st(t.paddingTop,e.bounds.width),x=st(t.paddingRight,e.bounds.width),F=st(t.paddingBottom,e.bounds.width),Q=st(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?Os(A.left+_/3,A.top+v/3,n-_/3,s-v/3,ls.TOP_LEFT):new Ns(A.left+_/3,A.top+v/3),this.topRightBorderDoubleOuterBox=n>0||s>0?Os(A.left+m,A.top+v/3,o-b/3,a-v/3,ls.TOP_RIGHT):new Ns(A.left+A.width-b/3,A.top+v/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Os(A.left+B,A.top+w,c-b/3,u-C/3,ls.BOTTOM_RIGHT):new Ns(A.left+A.width-b/3,A.top+A.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?Os(A.left+_/3,A.top+y,d-_/3,f-C/3,ls.BOTTOM_LEFT):new Ns(A.left+_/3,A.top+A.height-C/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?Os(A.left+2*_/3,A.top+2*v/3,n-2*_/3,s-2*v/3,ls.TOP_LEFT):new Ns(A.left+2*_/3,A.top+2*v/3),this.topRightBorderDoubleInnerBox=n>0||s>0?Os(A.left+m,A.top+2*v/3,o-2*b/3,a-2*v/3,ls.TOP_RIGHT):new Ns(A.left+A.width-2*b/3,A.top+2*v/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Os(A.left+B,A.top+w,c-2*b/3,u-2*C/3,ls.BOTTOM_RIGHT):new Ns(A.left+A.width-2*b/3,A.top+A.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?Os(A.left+2*_/3,A.top+y,d-2*_/3,f-2*C/3,ls.BOTTOM_LEFT):new Ns(A.left+2*_/3,A.top+A.height-2*C/3),this.topLeftBorderStroke=n>0||s>0?Os(A.left+_/2,A.top+v/2,n-_/2,s-v/2,ls.TOP_LEFT):new Ns(A.left+_/2,A.top+v/2),this.topRightBorderStroke=n>0||s>0?Os(A.left+m,A.top+v/2,o-b/2,a-v/2,ls.TOP_RIGHT):new Ns(A.left+A.width-b/2,A.top+v/2),this.bottomRightBorderStroke=c>0||u>0?Os(A.left+B,A.top+w,c-b/2,u-C/2,ls.BOTTOM_RIGHT):new Ns(A.left+A.width-b/2,A.top+A.height-C/2),this.bottomLeftBorderStroke=d>0||f>0?Os(A.left+_/2,A.top+y,d-_/2,f-C/2,ls.BOTTOM_LEFT):new Ns(A.left+_/2,A.top+A.height-C/2),this.topLeftBorderBox=n>0||s>0?Os(A.left,A.top,n,s,ls.TOP_LEFT):new Ns(A.left,A.top),this.topRightBorderBox=o>0||a>0?Os(A.left+m,A.top,o,a,ls.TOP_RIGHT):new Ns(A.left+A.width,A.top),this.bottomRightBorderBox=c>0||u>0?Os(A.left+B,A.top+w,c,u,ls.BOTTOM_RIGHT):new Ns(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=d>0||f>0?Os(A.left,A.top+y,d,f,ls.BOTTOM_LEFT):new Ns(A.left,A.top+A.height),this.topLeftPaddingBox=n>0||s>0?Os(A.left+_,A.top+v,Math.max(0,n-_),Math.max(0,s-v),ls.TOP_LEFT):new Ns(A.left+_,A.top+v),this.topRightPaddingBox=o>0||a>0?Os(A.left+Math.min(m,A.width-b),A.top+v,m>A.width+b?0:Math.max(0,o-b),Math.max(0,a-v),ls.TOP_RIGHT):new Ns(A.left+A.width-b,A.top+v),this.bottomRightPaddingBox=c>0||u>0?Os(A.left+Math.min(B,A.width-_),A.top+Math.min(w,A.height-C),Math.max(0,c-b),Math.max(0,u-C),ls.BOTTOM_RIGHT):new Ns(A.left+A.width-b,A.top+A.height-C),this.bottomLeftPaddingBox=d>0||f>0?Os(A.left+_,A.top+Math.min(y,A.height-C),Math.max(0,d-_),Math.max(0,f-C),ls.BOTTOM_LEFT):new Ns(A.left+_,A.top+A.height-C),this.topLeftContentBox=n>0||s>0?Os(A.left+_+Q,A.top+v+j,Math.max(0,n-(_+Q)),Math.max(0,s-(v+j)),ls.TOP_LEFT):new Ns(A.left+_+Q,A.top+v+j),this.topRightContentBox=o>0||a>0?Os(A.left+Math.min(m,A.width+_+Q),A.top+v+j,m>A.width+_+Q?0:o-_+Q,a-(v+j),ls.TOP_RIGHT):new Ns(A.left+A.width-(b+x),A.top+v+j),this.bottomRightContentBox=c>0||u>0?Os(A.left+Math.min(B,A.width-(_+Q)),A.top+Math.min(w,A.height+v+j),Math.max(0,c-(b+x)),u-(C+F),ls.BOTTOM_RIGHT):new Ns(A.left+A.width-(b+x),A.top+A.height-(C+F)),this.bottomLeftContentBox=d>0||f>0?Os(A.left+_+Q,A.top+y,Math.max(0,d-(_+Q)),f-(C+F),ls.BOTTOM_LEFT):new Ns(A.left+_+Q,A.top+A.height-(C+F))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(ls||(ls={}));var Os=function(e,t,A,r,n){var s=(Math.sqrt(2)-1)/3*4,i=A*s,o=r*s,a=e+A,l=t+r;switch(n){case ls.TOP_LEFT:return new Hs(new Ns(e,l),new Ns(e,l-o),new Ns(a-i,t),new Ns(a,t));case ls.TOP_RIGHT:return new Hs(new Ns(e,t),new Ns(e+i,t),new Ns(a,l-o),new Ns(a,l));case ls.BOTTOM_RIGHT:return new Hs(new Ns(a,t),new Ns(a,t+o),new Ns(e+i,l),new Ns(e,l));case ls.BOTTOM_LEFT:default:return new Hs(new Ns(a,l),new Ns(a-i,l),new Ns(e,t+o),new Ns(e,t))}},Ms=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ds=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Rs=function(e,t,A){this.offsetX=e,this.offsetY=t,this.matrix=A,this.type=0,this.target=6},Ks=function(e,t){this.path=e,this.target=t,this.type=1},Vs=function(e){this.opacity=e,this.type=2,this.target=6},Gs=function(e){return 1===e.type},zs=function(e,t){return e.length===t.length&&e.some(function(e,A){return e===t[A]})},qs=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Ws=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Ts(this.container),this.container.styles.opacity<1&&this.effects.push(new Vs(this.container.styles.opacity)),null!==this.container.styles.transform){var A=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 Rs(A,r,n))}if(0!==this.container.styles.overflowX){var s=Ms(this.curves),i=Ds(this.curves);zs(s,i)?this.effects.push(new Ks(s,6)):(this.effects.push(new Ks(s,2)),this.effects.push(new Ks(i,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),A=this.parent,r=this.effects.slice(0);A;){var n=A.effects.filter(function(e){return!Gs(e)});if(t||0!==A.container.styles.position||!A.parent){if(r.unshift.apply(r,n),t=-1===[2,3].indexOf(A.container.styles.position),0!==A.container.styles.overflowX){var s=Ms(A.curves),i=Ds(A.curves);zs(s,i)||r.unshift(new Ks(i,6))}}else r.unshift.apply(r,n);A=A.parent}return r.filter(function(t){return lr(t.target,e)})},e}(),Xs=function(e,t,A,r){e.container.elements.forEach(function(n){var s=lr(n.flags,4),i=lr(n.flags,2),o=new Ws(n,e);lr(n.styles.display,2048)&&r.push(o);var a=lr(n.flags,8)?[]:r;if(s||i){var l=s||n.styles.isPositioned()?A:t,c=new qs(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var u=n.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some(function(e,t){return u>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),l.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;l.positiveZIndex.some(function(e,t){return u>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0}),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Xs(o,c,s?c:A,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),Xs(o,t,A,a);lr(n.flags,8)&&Ys(n,a)})},Ys=function(e,t){for(var A=e instanceof un?e.start:1,r=e instanceof un&&e.reversed,n=0;n0&&e.intrinsicHeight>0){var r=ti(e),n=Ds(t);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,s,o,a,l,c,u,h,d,f,p,g,m,w,B,y,v;return n(this,function(n){switch(n.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,s=t.styles,o=0,a=t.textNodes,n.label=1;case 1:return o0&&_>0&&(w=r.ctx.createPattern(p,"repeat"),r.renderRepeat(y,w,x,F))):function(e){return 2===e.type}(A)&&(B=Ai(e,t,[null,null,null]),y=B[0],v=B[1],b=B[2],C=B[3],_=B[4],j=0===A.position.length?[At]:A.position,x=st(j[0],C),F=st(j[j.length-1],_),Q=function(e,t,A,r,n){var s=0,i=0;switch(e.size){case 0:0===e.shape?s=i=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):1===e.shape&&(s=Math.min(Math.abs(t),Math.abs(t-r)),i=Math.min(Math.abs(A),Math.abs(A-n)));break;case 2:if(0===e.shape)s=i=Math.min(Qt(t,A),Qt(t,A-n),Qt(t-r,A),Qt(t-r,A-n));else if(1===e.shape){var o=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(t),Math.abs(t-r)),a=Ut(r,n,t,A,!0),l=a[0],c=a[1];i=o*(s=Qt(l-t,(c-A)/o))}break;case 1:0===e.shape?s=i=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):1===e.shape&&(s=Math.max(Math.abs(t),Math.abs(t-r)),i=Math.max(Math.abs(A),Math.abs(A-n)));break;case 3:if(0===e.shape)s=i=Math.max(Qt(t,A),Qt(t,A-n),Qt(t-r,A),Qt(t-r,A-n));else if(1===e.shape){o=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(t),Math.abs(t-r));var u=Ut(r,n,t,A,!1);l=u[0],c=u[1],i=o*(s=Qt(l-t,(c-A)/o))}}return Array.isArray(e.size)&&(s=st(e.size[0],r),i=2===e.size.length?st(e.size[1],n):s),[s,i]}(A,x,F,C,_),U=Q[0],E=Q[1],U>0&&E>0&&(S=r.ctx.createRadialGradient(v+x,b+F,0,v+x,b+F,U),xt(A.stops,2*U).forEach(function(e){return S.addColorStop(e.stop,ft(e.color))}),r.path(y),r.ctx.fillStyle=S,U!==E?(L=e.bounds.left+.5*e.bounds.width,I=e.bounds.top+.5*e.bounds.height,k=1/(N=E/U),r.ctx.save(),r.ctx.translate(L,I),r.ctx.transform(1,0,0,N,0,0),r.ctx.translate(-L,-I),r.ctx.fillRect(v,k*(b-I)+I,C,_*k),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return t--,[2]}})},r=this,s=0,i=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return s0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,i,e.curves,2)]:[3,11]:[3,13];case 4:return n.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,i,e.curves,3)];case 6:return n.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,i,e.curves)];case 8:return n.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,i,e.curves)];case 10:n.sent(),n.label=11;case 11:i++,n.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,t,A,s,i){return r(this,void 0,void 0,function(){var r,o,a,l,c,u,h,d,f,p,g,m,w,B,y,v;return n(this,function(n){return this.ctx.save(),r=function(e,t){switch(t){case 0:return Zs(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Zs(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Zs(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Zs(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(s,A),o=Js(s,A),2===i&&(this.path(o),this.ctx.clip()),Ps(o[0])?(a=o[0].start.x,l=o[0].start.y):(a=o[0].x,l=o[0].y),Ps(o[1])?(c=o[1].end.x,u=o[1].end.y):(c=o[1].x,u=o[1].y),h=0===A||2===A?Math.abs(a-c):Math.abs(l-u),this.ctx.beginPath(),3===i?this.formatPath(r):this.formatPath(o.slice(0,2)),d=t<3?3*t:2*t,f=t<3?2*t:t,3===i&&(d=t,f=t),p=!0,h<=2*d?p=!1:h<=2*d+f?(d*=g=h/(2*d+f),f*=g):(m=Math.floor((h+f)/(d+f)),w=(h-m*d)/(m-1),f=(B=(h-(m+1)*d)/m)<=0||Math.abs(f-w){const e=new Uint8Array(4);return!((new Uint32Array(e.buffer)[0]=1)&e[0])})(),s={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class i{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=8192,t={}){let A=!1;"number"==typeof e?e=new ArrayBuffer(e):(A=!0,this.lastWrittenByte=e.byteLength);const r=t.offset?t.offset>>>0:0,n=e.byteLength-r;let s=r;(ArrayBuffer.isView(e)||e instanceof i)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+r),e=e.buffer),this.lastWrittenByte=A?n:0,this.buffer=e,this.length=n,this.byteLength=n,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,n),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=2*(this.offset+e),A=new Uint8Array(t);A.set(new Uint8Array(this.buffer)),this.buffer=A.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const A=s[t].BYTES_PER_ELEMENT*e,r=this.byteOffset+this.offset,i=this.buffer.slice(r,r+A);if(this.littleEndian===n&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(r,r+A));e.reverse();const n=new s[t](e.buffer);return this.offset+=A,n.reverse(),n}const o=new s[t](i);return this.offset+=A,o}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let A=0;Athis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}},"./node_modules/iobuffer/lib-esm/text.js":function(e,t,A){"use strict";function r(e,t="utf8"){return new TextDecoder(t).decode(e)}A.r(t),A.d(t,{decode:function(){return r},encode:function(){return s}});const n=new TextEncoder;function s(e){return n.encode(e)}},"./node_modules/jspdf/dist/jspdf.es.min.js":function(e,t,A){"use strict";A.r(t),A.d(t,{AcroForm:function(){return Ue},AcroFormAppearance:function(){return je},AcroFormButton:function(){return we},AcroFormCheckBox:function(){return be},AcroFormChoiceField:function(){return fe},AcroFormComboBox:function(){return ge},AcroFormEditBox:function(){return me},AcroFormListBox:function(){return pe},AcroFormPasswordField:function(){return _e},AcroFormPushButton:function(){return Be},AcroFormRadioButton:function(){return ye},AcroFormTextField:function(){return Ce},GState:function(){return H},ShadingPattern:function(){return T},TilingPattern:function(){return O},default:function(){return M},jsPDF:function(){return M}});var r=A("./node_modules/@babel/runtime/helpers/esm/typeof.js"),n=A("./node_modules/fflate/esm/browser.js"),s=A("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=A("./node_modules/fast-png/lib-esm/index.js"),o=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function a(){o.console&&"function"==typeof o.console.log&&o.console.log.apply(o.console,arguments)}var l={log:a,warn:function(e){o.console&&("function"==typeof o.console.warn?o.console.warn.apply(o.console,arguments):a.call(null,arguments))},error:function(e){o.console&&("function"==typeof o.console.error?o.console.error.apply(o.console,arguments):a(e))}};function c(e,t,A){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){d(r.response,t,A)},r.onerror=function(){l.error("could not download file")},r.send()}function u(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function h(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(A){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var d=o.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.default)(window))||window!==o?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var r=o.URL||o.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener","string"==typeof e?(n.href=e,n.origin!==location.origin?u(n.href)?c(e,t,A):h(n,n.target="_blank"):h(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){h(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download","string"==typeof e)if(u(e))c(e,t,A);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){h(n)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.default)(t)&&(l.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,A),t)}:function(e,t,A,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return c(e,t,A);var s="application/octet-stream"===e.type,i=/constructor/i.test(o.HTMLElement)||o.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||s&&i)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.default)(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},l.readAsDataURL(e)}else{var u=o.URL||o.webkitURL,h=u.createObjectURL(e);n?n.location=h:location.href=h,n=null,setTimeout(function(){u.revokeObjectURL(h)},4e4)}});function f(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),A=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==A.length&&(A="0"+A),"#"+e+t+A}}var p=o.atob.bind(o),g=o.btoa.bind(o);function m(e,t){var A=e[0],r=e[1],n=e[2],s=e[3];A=B(A,r,n,s,t[0],7,-680876936),s=B(s,A,r,n,t[1],12,-389564586),n=B(n,s,A,r,t[2],17,606105819),r=B(r,n,s,A,t[3],22,-1044525330),A=B(A,r,n,s,t[4],7,-176418897),s=B(s,A,r,n,t[5],12,1200080426),n=B(n,s,A,r,t[6],17,-1473231341),r=B(r,n,s,A,t[7],22,-45705983),A=B(A,r,n,s,t[8],7,1770035416),s=B(s,A,r,n,t[9],12,-1958414417),n=B(n,s,A,r,t[10],17,-42063),r=B(r,n,s,A,t[11],22,-1990404162),A=B(A,r,n,s,t[12],7,1804603682),s=B(s,A,r,n,t[13],12,-40341101),n=B(n,s,A,r,t[14],17,-1502002290),A=y(A,r=B(r,n,s,A,t[15],22,1236535329),n,s,t[1],5,-165796510),s=y(s,A,r,n,t[6],9,-1069501632),n=y(n,s,A,r,t[11],14,643717713),r=y(r,n,s,A,t[0],20,-373897302),A=y(A,r,n,s,t[5],5,-701558691),s=y(s,A,r,n,t[10],9,38016083),n=y(n,s,A,r,t[15],14,-660478335),r=y(r,n,s,A,t[4],20,-405537848),A=y(A,r,n,s,t[9],5,568446438),s=y(s,A,r,n,t[14],9,-1019803690),n=y(n,s,A,r,t[3],14,-187363961),r=y(r,n,s,A,t[8],20,1163531501),A=y(A,r,n,s,t[13],5,-1444681467),s=y(s,A,r,n,t[2],9,-51403784),n=y(n,s,A,r,t[7],14,1735328473),A=v(A,r=y(r,n,s,A,t[12],20,-1926607734),n,s,t[5],4,-378558),s=v(s,A,r,n,t[8],11,-2022574463),n=v(n,s,A,r,t[11],16,1839030562),r=v(r,n,s,A,t[14],23,-35309556),A=v(A,r,n,s,t[1],4,-1530992060),s=v(s,A,r,n,t[4],11,1272893353),n=v(n,s,A,r,t[7],16,-155497632),r=v(r,n,s,A,t[10],23,-1094730640),A=v(A,r,n,s,t[13],4,681279174),s=v(s,A,r,n,t[0],11,-358537222),n=v(n,s,A,r,t[3],16,-722521979),r=v(r,n,s,A,t[6],23,76029189),A=v(A,r,n,s,t[9],4,-640364487),s=v(s,A,r,n,t[12],11,-421815835),n=v(n,s,A,r,t[15],16,530742520),A=b(A,r=v(r,n,s,A,t[2],23,-995338651),n,s,t[0],6,-198630844),s=b(s,A,r,n,t[7],10,1126891415),n=b(n,s,A,r,t[14],15,-1416354905),r=b(r,n,s,A,t[5],21,-57434055),A=b(A,r,n,s,t[12],6,1700485571),s=b(s,A,r,n,t[3],10,-1894986606),n=b(n,s,A,r,t[10],15,-1051523),r=b(r,n,s,A,t[1],21,-2054922799),A=b(A,r,n,s,t[8],6,1873313359),s=b(s,A,r,n,t[15],10,-30611744),n=b(n,s,A,r,t[6],15,-1560198380),r=b(r,n,s,A,t[13],21,1309151649),A=b(A,r,n,s,t[4],6,-145523070),s=b(s,A,r,n,t[11],10,-1120210379),n=b(n,s,A,r,t[2],15,718787259),r=b(r,n,s,A,t[9],21,-343485551),e[0]=E(A,e[0]),e[1]=E(r,e[1]),e[2]=E(n,e[2]),e[3]=E(s,e[3])}function w(e,t,A,r,n,s){return t=E(E(t,e),E(r,s)),E(t<>>32-n,A)}function B(e,t,A,r,n,s,i){return w(t&A|~t&r,e,t,n,s,i)}function y(e,t,A,r,n,s,i){return w(t&r|A&~r,e,t,n,s,i)}function v(e,t,A,r,n,s,i){return w(t^A^r,e,t,n,s,i)}function b(e,t,A,r,n,s,i){return w(A^(t|~r),e,t,n,s,i)}function C(e){var t,A=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)m(r,_(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(m(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*A,m(r,n),r}function _(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var j="0123456789abcdef".split("");function x(e){for(var t="",A=0;A<4;A++)t+=j[e>>8*A+4&15]+j[e>>8*A&15];return t}function F(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Q(e){return C(e).map(F).join("")}var U="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&4294967295}function S(e,t){var A,r,n,s;if(e!==A){for(var i=(n=e,s=1+(256/e.length|0),new Array(s+1).join(n)),o=[],a=0;a<256;a++)o[a]=a;var l=0;for(a=0;a<256;a++){var c=o[a];l=(l+c+i.charCodeAt(a))%256,o[a]=o[l],o[l]=c}A=e,r=o}else o=r;var u=t.length,h=0,d=0,f="";for(a=0;a€/\f©þdSiz";var s=(t+this.padding).substr(0,32),i=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,i),this.P=-(1+(255^n)),this.encryptionKey=Q(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=S(this.encryptionKey,this.padding)}function N(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,r=0;r126?"#"+("0"+n.toString(16)).slice(-2):e[r]}return t}function k(e){if("object"!==(0,r.default)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,A,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof A||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var n=Math.random().toString(35);return t[e][n]=[A,!!r],n},this.unsubscribe=function(e){for(var A in t)if(t[A][e])return delete t[A][e],0===Object.keys(t[A]).length&&delete t[A],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var s in t[A]){var i=t[A][s];try{i[0].apply(e,r)}catch(e){o.console&&l.error("jsPDF PubSub Error",e.message,e)}i[1]&&n.push(s)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function H(e){if(!(this instanceof H))return new H(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function P(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function T(e,t,A,r,n){if(!(this instanceof T))return new T(e,t,A,r,n);this.type="axial"===e?2:3,this.coords=t,this.colors=A,P.call(this,r,n)}function O(e,t,A,r,n){if(!(this instanceof O))return new O(e,t,A,r,n);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,P.call(this,r,n)}function M(e){var t,A="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],s=arguments[2],i=arguments[3],a=[],c=1,u=16,h="S",p=null;"object"===(0,r.default)(e=e||{})&&(A=e.orientation,n=e.unit||n,s=e.format||s,i=e.compress||e.compressPdf||i,null!==(p=e.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),c="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(u=e.floatPrecision),h=e.defaultPathOperation||"S"),a=e.filters||(!0===i?["FlateEncode"]:a),n=n||"mm",A=(""+(A||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,w={},B={internal:{},__private__:{}};B.__private__.PubSub=k;var y="1.3",v=B.__private__.getPdfVersion=function(){return y};B.__private__.setPdfVersion=function(e){y=e};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};B.__private__.getPageFormats=function(){return b};var C=B.__private__.getPageFormat=function(e){return b[e]};s=s||"a4";var _="compat",j="advanced",x=_;function F(){this.saveGraphicsState(),ce(new Ve(je,0,0,-je,0,vA()*je).toString()+" cm"),this.setFontSize(this.getFontSize()/je),h="n",x=j}function Q(){this.restoreGraphicsState(),h="S",x=_}var U=B.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};B.advancedAPI=function(e){var t=x===_;return t&&F.call(this),"function"!=typeof e||(e(this),t&&Q.call(this)),this},B.compatAPI=function(e){var t=x===j;return t&&Q.call(this),"function"!=typeof e||(e(this),t&&F.call(this)),this},B.isAdvancedAPI=function(){return x===j};var E,S=function(e){if(x!==j)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=B.roundToPrecision=B.__private__.roundToPrecision=function(e,A){var r=t||A;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};E=B.hpf=B.__private__.hpf="number"==typeof u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return L(e,u)}:"smart"===u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return L(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return L(e,16)};var P=B.f2=B.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return L(e,2)},D=B.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return L(e,3)},R=B.scale=B.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return x===_?e*je:x===j?e:void 0},K=function(e){return R(function(e){return x===_?vA()-e:x===j?e:void 0}(e))};B.__private__.setPrecision=B.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var V,G="00000000000000000000000000000000",z=B.__private__.getFileId=function(){return G},q=B.__private__.setFileId=function(e){return G=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():G.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==p&&(St=new I(p.userPermissions,p.userPassword,p.ownerPassword,G)),G};B.setFileId=function(e){return q(e),this},B.getFileId=function(){return z()};var W=B.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),A=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),n=Math.abs(t%60),s=[A,$(r),"'",$(n),"'"].join("");return["D:",e.getFullYear(),$(e.getMonth()+1),$(e.getDate()),$(e.getHours()),$(e.getMinutes()),$(e.getSeconds()),s].join("")},X=B.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),A=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),n=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),i=parseInt(e.substr(14,2),10);return new Date(t,A,r,n,s,i,0)},Y=B.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=W(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return V=t},J=B.__private__.getCreationDate=function(e){var t=V;return"jsDate"===e&&(t=X(V)),t};B.setCreationDate=function(e){return Y(e),this},B.getCreationDate=function(e){return J(e)};var Z,$=B.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},ee=B.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},te=0,Ae=[],re=[],ne=0,se=[],ie=[],oe=!1,ae=re;B.__private__.setCustomOutputDestination=function(e){oe=!0,ae=e};var le=function(e){oe||(ae=e)};B.__private__.resetCustomOutputDestination=function(){oe=!1,ae=re};var ce=B.__private__.out=function(e){return e=e.toString(),ne+=e.length+1,ae.push(e),ae},ue=B.__private__.write=function(e){return ce(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},he=B.__private__.getArrayBuffer=function(e){for(var t=e.length,A=new ArrayBuffer(t),r=new Uint8Array(A);t--;)r[t]=e.charCodeAt(t);return A},de=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];B.__private__.getStandardFonts=function(){return de};var fe=e.fontSize||16;B.__private__.setFontSize=B.setFontSize=function(e){return fe=x===j?e/je:e,this};var pe,ge=B.__private__.getFontSize=B.getFontSize=function(){return x===_?fe:fe*je},me=e.R2L||!1;B.__private__.setR2L=B.setR2L=function(e){return me=e,this},B.__private__.getR2L=B.getR2L=function(){return me};var we,Be=B.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))pe=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');pe=e}else pe=parseInt(e,10)};B.__private__.getZoomMode=function(){return pe};var ye,ve=B.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');we=e};B.__private__.getPageMode=function(){return we};var be=B.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');ye=e};B.__private__.getLayoutMode=function(){return ye},B.__private__.setDisplayMode=B.setDisplayMode=function(e,t,A){return Be(e),be(t),ve(A),this};var Ce={title:"",subject:"",author:"",keywords:"",creator:""};B.__private__.getDocumentProperty=function(e){if(-1===Object.keys(Ce).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ce[e]},B.__private__.getDocumentProperties=function(){return Ce},B.__private__.setDocumentProperties=B.setProperties=B.setDocumentProperties=function(e){for(var t in Ce)Ce.hasOwnProperty(t)&&e[t]&&(Ce[t]=e[t]);return this},B.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(Ce).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ce[e]=t};var _e,je,xe,Fe,Qe,Ue={},Ee={},Se=[],Le={},Ie={},Ne={},ke={},He=null,Pe=0,Te=[],Oe=new k(B),Me=e.hotfixes||[],De={},Re={},Ke=[],Ve=function e(t,A,r,n,s,i){if(!(this instanceof e))return new e(t,A,r,n,s,i);isNaN(t)&&(t=1),isNaN(A)&&(A=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(s)&&(s=0),isNaN(i)&&(i=0),this._matrix=[t,A,r,n,s,i]};Object.defineProperty(Ve.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ve.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ve.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ve.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ve.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ve.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ve.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ve.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ve.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ve.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ve.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ve.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ve.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ve.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ve.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ve.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ve.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(e)},Ve.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,A=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,n=e.shx*this.shy+e.sy*this.sy,s=e.tx*this.sx+e.ty*this.shx+this.tx,i=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ve(t,A,r,n,s,i)},Ve.prototype.decompose=function(){var e=this.sx,t=this.shy,A=this.shx,r=this.sy,n=this.tx,s=this.ty,i=Math.sqrt(e*e+t*t),o=(e/=i)*A+(t/=i)*r;A-=e*o,r-=t*o;var a=Math.sqrt(A*A+r*r);return o/=a,e*(r/=a)>16&255,n=l>>8&255,s=255&l}if(void 0===n||void 0===i&&A===n&&n===s)t="string"==typeof A?A+" "+o[0]:2===e.precision?P(A/255)+" "+o[0]:D(A/255)+" "+o[0];else if(void 0===i||"object"===(0,r.default)(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",o[1]].join(" ");t="string"==typeof A?[A,n,s,o[1]].join(" "):2===e.precision?[P(A/255),P(n/255),P(s/255),o[1]].join(" "):[D(A/255),D(n/255),D(s/255),o[1]].join(" ")}else t="string"==typeof A?[A,n,s,i,o[2]].join(" "):2===e.precision?[P(A),P(n),P(s),P(i),o[2]].join(" "):[D(A),D(n),D(s),D(i),o[2]].join(" ");return t},rt=B.__private__.getFilters=function(){return a},nt=B.__private__.putStream=function(e){var t=(e=e||{}).data||"",A=e.filters||rt(),r=e.alreadyAppliedFilters||[],n=e.addLength1||!1,s=t.length,i=e.objectId,o=function(e){return e};if(null!==p&&void 0===i)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(o=St.encryptor(i,0));var a={};!0===A&&(A=["FlateEncode"]);var l=e.additionalKeyValues||[],c=(a=void 0!==M.API.processDataByFilters?M.API.processDataByFilters(t,A):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(l.push({key:"Length",value:a.data.length}),!0===n&&l.push({key:"Length1",value:s})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var u=0;u>"),0!==a.data.length&&(ce("stream"),ce(o(a.data)),ce("endstream"))},st=B.__private__.putPage=function(e){var t=e.number,A=e.data,r=e.objId,n=e.contentsObjId;Je(r,!0),ce("<>"),ce("endobj");var s=A.join("\n");return x===j&&(s+="\nQ"),Je(n,!0),nt({data:s,filters:rt(),objectId:n}),ce("endobj"),r},it=B.__private__.putPages=function(){var e,t,A=[];for(e=1;e<=Pe;e++)Te[e].objId=Ye(),Te[e].contentsObjId=Ye();for(e=1;e<=Pe;e++)A.push(st({number:e,data:ie[e],objId:Te[e].objId,contentsObjId:Te[e].contentsObjId,mediaBox:Te[e].mediaBox,cropBox:Te[e].cropBox,bleedBox:Te[e].bleedBox,trimBox:Te[e].trimBox,artBox:Te[e].artBox,userUnit:Te[e].userUnit,rootDictionaryObjId:$e,resourceDictionaryObjId:et}));Je($e,!0),ce("<>"),ce("endobj"),Oe.publish("postPutPages")},ot=function(e){Oe.publish("putFont",{font:e,out:ce,newObject:Xe,putStream:nt}),!0!==e.isAlreadyPutted&&(e.objectNumber=Xe(),ce("<<"),ce("/Type /Font"),ce("/BaseFont /"+N(e.postScriptName)),ce("/Subtype /Type1"),"string"==typeof e.encoding&&ce("/Encoding /"+e.encoding),ce("/FirstChar 32"),ce("/LastChar 255"),ce(">>"),ce("endobj"))},at=function(e){e.objectNumber=Xe();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[E(e.x),E(e.y),E(e.x+e.width),E(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var A=e.pages[1].join("\n");nt({data:A,additionalKeyValues:t,objectId:e.objectNumber}),ce("endobj")},lt=function(e,t){t||(t=21);var A=Xe(),r=function(e,t){var A,r=[],n=1/(t-1);for(A=0;A<1;A+=n)r.push(A);if(r.push(1),0!=e[0].offset){var s={offset:0,color:e[0].color};e.unshift(s)}if(1!=e[e.length-1].offset){var i={offset:1,color:e[e.length-1].color};e.push(i)}for(var o="",a=0,l=0;le[a+1].offset;)a++;var c=e[a].offset,u=(A-c)/(e[a+1].offset-c),h=e[a].color,d=e[a+1].color;o+=ee(Math.round((1-u)*h[0]+u*d[0]).toString(16))+ee(Math.round((1-u)*h[1]+u*d[1]).toString(16))+ee(Math.round((1-u)*h[2]+u*d[2]).toString(16))}return o.trim()}(e.colors,t),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+t+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),nt({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:A}),ce("endobj"),e.objectNumber=Xe(),ce("<< /ShadingType "+e.type),ce("/ColorSpace /DeviceRGB");var s="/Coords ["+E(parseFloat(e.coords[0]))+" "+E(parseFloat(e.coords[1]))+" ";2===e.type?s+=E(parseFloat(e.coords[2]))+" "+E(parseFloat(e.coords[3])):s+=E(parseFloat(e.coords[2]))+" "+E(parseFloat(e.coords[3]))+" "+E(parseFloat(e.coords[4]))+" "+E(parseFloat(e.coords[5])),ce(s+="]"),e.matrix&&ce("/Matrix ["+e.matrix.toString()+"]"),ce("/Function "+A+" 0 R"),ce("/Extend [true true]"),ce(">>"),ce("endobj")},ct=function(e,t){var A=Ye(),r=Xe();t.push({resourcesOid:A,objectOid:r}),e.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+e.boundingBox.map(E).join(" ")+"]"}),n.push({key:"XStep",value:E(e.xStep)}),n.push({key:"YStep",value:E(e.yStep)}),n.push({key:"Resources",value:A+" 0 R"}),e.matrix&&n.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),nt({data:e.stream,additionalKeyValues:n,objectId:e.objectNumber}),ce("endobj")},ut=function(e){for(var t in e.objectNumber=Xe(),ce("<<"),e)switch(t){case"opacity":ce("/ca "+P(e[t]));break;case"stroke-opacity":ce("/CA "+P(e[t]))}ce(">>"),ce("endobj")},ht=function(e){Je(e.resourcesOid,!0),ce("<<"),ce("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in ce("/Font <<"),Ue)Ue.hasOwnProperty(e)&&(!1===m||!0===m&&w.hasOwnProperty(e))&&ce("/"+e+" "+Ue[e].objectNumber+" 0 R");ce(">>")}(),function(){if(Object.keys(Le).length>0){for(var e in ce("/Shading <<"),Le)Le.hasOwnProperty(e)&&Le[e]instanceof T&&Le[e].objectNumber>=0&&ce("/"+e+" "+Le[e].objectNumber+" 0 R");Oe.publish("putShadingPatternDict"),ce(">>")}}(),function(e){if(Object.keys(Le).length>0){for(var t in ce("/Pattern <<"),Le)Le.hasOwnProperty(t)&&Le[t]instanceof B.TilingPattern&&Le[t].objectNumber>=0&&Le[t].objectNumber>")}}(e.objectOid),function(){if(Object.keys(Ne).length>0){var e;for(e in ce("/ExtGState <<"),Ne)Ne.hasOwnProperty(e)&&Ne[e].objectNumber>=0&&ce("/"+e+" "+Ne[e].objectNumber+" 0 R");Oe.publish("putGStateDict"),ce(">>")}}(),function(){for(var e in ce("/XObject <<"),De)De.hasOwnProperty(e)&&De[e].objectNumber>=0&&ce("/"+e+" "+De[e].objectNumber+" 0 R");Oe.publish("putXobjectDict"),ce(">>")}(),ce(">>"),ce("endobj")},dt=function(e){Ee[e.fontName]=Ee[e.fontName]||{},Ee[e.fontName][e.fontStyle]=e.id},ft=function(e,t,A,r,n){var s={id:"F"+(Object.keys(Ue).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:A,encoding:r,isStandardFont:n||!1,metadata:{}};return Oe.publish("addFont",{font:s,instance:this}),Ue[s.id]=s,dt(s),s.id},pt=B.__private__.pdfEscape=B.pdfEscape=function(e,t){return function(e,t){var A,r,n,s,i,o,a,l,c;if(n=(t=t||{}).sourceEncoding||"Unicode",i=t.outputEncoding,(t.autoencode||i)&&Ue[_e].metadata&&Ue[_e].metadata[n]&&Ue[_e].metadata[n].encoding&&(s=Ue[_e].metadata[n].encoding,!i&&Ue[_e].encoding&&(i=Ue[_e].encoding),!i&&s.codePages&&(i=s.codePages[0]),"string"==typeof i&&(i=s[i]),i)){for(a=!1,o=[],A=0,r=e.length;A>8&&(a=!0);e=o.join("")}for(A=e.length;void 0===a&&0!==A;)e.charCodeAt(A-1)>>8&&(a=!0),A--;if(!a)return e;for(o=t.noBOM?[]:[254,255],A=0,r=e.length;A>8)>>8)throw new Error("Character at position "+A+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(c),o.push(l-(c<<8))}return String.fromCharCode.apply(void 0,o)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gt=B.__private__.beginPage=function(e){ie[++Pe]=[],Te[Pe]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Bt(Pe),le(ie[Z])},mt=function(e,t){var r,n,i;switch(A=t||A,"string"==typeof e&&(r=C(e.toLowerCase()),Array.isArray(r)&&(n=r[0],i=r[1])),Array.isArray(e)&&(n=e[0]*je,i=e[1]*je),isNaN(n)&&(n=s[0],i=s[1]),(n>14400||i>14400)&&(l.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),i=Math.min(14400,i)),s=[n,i],A.substr(0,1)){case"l":i>n&&(s=[i,n]);break;case"p":n>i&&(s=[i,n])}gt(s),Jt(Xt),ce(sA),0!==uA&&ce(uA+" J"),0!==hA&&ce(hA+" j"),Oe.publish("addPage",{pageNumber:Pe})},wt=function(e){e>0&&e<=Pe&&(ie.splice(e,1),Te.splice(e,1),Pe--,Z>Pe&&(Z=Pe),this.setPage(Z))},Bt=function(e){e>0&&e<=Pe&&(Z=e)},yt=B.__private__.getNumberOfPages=B.getNumberOfPages=function(){return ie.length-1},vt=function(e,t,A){var r,n=void 0;return A=A||{},e=void 0!==e?e:Ue[_e].fontName,t=void 0!==t?t:Ue[_e].fontStyle,r=e.toLowerCase(),void 0!==Ee[r]&&void 0!==Ee[r][t]?n=Ee[r][t]:void 0!==Ee[e]&&void 0!==Ee[e][t]?n=Ee[e][t]:!1===A.disableWarning&&l.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),n||A.noFallback||null==(n=Ee.times[t])&&(n=Ee.times.normal),n},bt=B.__private__.putInfo=function(){var e=Xe(),t=function(e){return e};for(var A in null!==p&&(t=St.encryptor(e,0)),ce("<<"),ce("/Producer ("+pt(t("jsPDF "+M.version))+")"),Ce)Ce.hasOwnProperty(A)&&Ce[A]&&ce("/"+A.substr(0,1).toUpperCase()+A.substr(1)+" ("+pt(t(Ce[A]))+")");ce("/CreationDate ("+pt(t(V))+")"),ce(">>"),ce("endobj")},Ct=B.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||$e;switch(Xe(),ce("<<"),ce("/Type /Catalog"),ce("/Pages "+t+" 0 R"),pe||(pe="fullwidth"),pe){case"fullwidth":ce("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ce("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ce("/OpenAction [3 0 R /Fit]");break;case"original":ce("/OpenAction [3 0 R /XYZ null null 1]");break;default:var A=""+pe;"%"===A.substr(A.length-1)&&(pe=parseInt(pe)/100),"number"==typeof pe&&ce("/OpenAction [3 0 R /XYZ null null "+P(pe)+"]")}switch(ye||(ye="continuous"),ye){case"continuous":ce("/PageLayout /OneColumn");break;case"single":ce("/PageLayout /SinglePage");break;case"two":case"twoleft":ce("/PageLayout /TwoColumnLeft");break;case"tworight":ce("/PageLayout /TwoColumnRight")}we&&ce("/PageMode /"+we),Oe.publish("putCatalog"),ce(">>"),ce("endobj")},_t=B.__private__.putTrailer=function(){ce("trailer"),ce("<<"),ce("/Size "+(te+1)),ce("/Root "+te+" 0 R"),ce("/Info "+(te-1)+" 0 R"),null!==p&&ce("/Encrypt "+St.oid+" 0 R"),ce("/ID [ <"+G+"> <"+G+"> ]"),ce(">>")},jt=B.__private__.putHeader=function(){ce("%PDF-"+y),ce("%ºß¬à")},xt=B.__private__.putXRef=function(){var e="0000000000";ce("xref"),ce("0 "+(te+1)),ce("0000000000 65535 f ");for(var t=1;t<=te;t++)"function"==typeof Ae[t]?ce((e+Ae[t]()).slice(-10)+" 00000 n "):void 0!==Ae[t]?ce((e+Ae[t]).slice(-10)+" 00000 n "):ce("0000000000 00000 n ")},Ft=B.__private__.buildDocument=function(){var e;te=0,ne=0,re=[],Ae=[],se=[],$e=Ye(),et=Ye(),le(re),Oe.publish("buildDocument"),jt(),it(),function(){Oe.publish("putAdditionalObjects");for(var e=0;e"),ce("/O <"+St.toHexString(St.O)+">"),ce("/P "+St.P),ce(">>"),ce("endobj")),bt(),Ct();var t=ne;return xt(),_t(),ce("startxref"),ce(""+t),ce("%%EOF"),le(ie[Z]),re.join("\n")},Qt=B.__private__.getBlob=function(e){return new Blob([he(e)],{type:"application/pdf"})},Ut=B.output=B.__private__.output=(We=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Ft();case"save":B.save(t.filename);break;case"arraybuffer":return he(Ft());case"blob":return Qt(Ft());case"bloburi":case"bloburl":if(void 0!==o.URL&&"function"==typeof o.URL.createObjectURL)return o.URL&&o.URL.createObjectURL(Qt(Ft()))||void 0;l.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var A="",r=Ft();try{A=g(r)}catch(e){A=g(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+A;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var n="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",s=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(n=t.pdfObjectUrl,s="");var i='