1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3829],{3733:t=>{"use strict";var e=Math.PI/180;function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);this.rx=t,this.ry=e,this.ax=i}r.prototype.transform=function(t){var r=Math.cos(this.ax*e),i=Math.sin(this.ax*e),n=[this.rx*(t[0]*r+t[2]*i),this.rx*(t[1]*r+t[3]*i),this.ry*(-t[0]*i+t[2]*r),this.ry*(-t[1]*i+t[3]*r)],a=n[0]*n[0]+n[2]*n[2],s=n[1]*n[1]+n[3]*n[3],o=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),l=(a+s)/2;if(o<1e-10*l)return this.rx=this.ry=Math.sqrt(l),this.ax=0,this;var u=n[0]*n[1]+n[2]*n[3],h=l+(o=Math.sqrt(o))/2,c=l-o/2;return this.ax=1e-10>Math.abs(u)&&1e-10>Math.abs(h-s)?90:180*Math.atan(Math.abs(u)>Math.abs(h-s)?(h-a)/u:u/(h-s))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(c)):(this.ax+=90,this.rx=Math.sqrt(c),this.ry=Math.sqrt(h)),this},r.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx},t.exports=r},8791:(t,e,r)=>{"use strict";t.exports=r(15406)},12752:t=>{var e=/[a-z0-9_-]/i,r=/[\s\t]/,i=/[^a-z0-9_-]/i;t.exports={parse:function(t){for(var i,n,a=!0,s=0,o="",l=0,u=[];;){if(n=t[l],0===s)if(!n&&a)break;else if(n||a)if('"'===n||"'"===n)i=n,s=1,a=!1;else if(r.test(n));else if(e.test(n))s=3,a=!1,l--;else throw Error("Parse error");else throw Error("Parse error");else if(1===s)if(n)"\\"===n?s=2:n===i?(u.push(o),o="",s=4):o+=n;else throw Error("Parse Error");else if(2===s)if(n===i||"\\"===n)o+=n,s=1;else throw Error("Parse error");else if(3===s)if(n)e.test(n)?o+=n:","===n?(u.push(o),o="",s=0):r.test(n)?s=5:"\\"===n&&(s=6);else{u.push(o);break}else if(6===s)if(/[0-9a-f]/i.test(n))throw Error("Parse error");else o+=n,s=3;else if(5===s)if(n)if(e.test(n))o+=" "+n,s=3;else if(","===n)u.push(o),o="",s=0;else if(r.test(n));else throw Error("Parse error");else{u.push(o);break}else if(4===s)if(n)if(","===n)s=0;else if(r.test(n));else throw Error("Parse error");else break;l++}return u},stringify:function(t,e){var r=e&&e.quote||'"';if('"'!==r&&"'"!==r)throw Error("Quote must be `'` or `\"`");for(var n=RegExp(r,"g"),a=[],s=0;s<t.length;++s){var o=t[s];i.test(o)&&(o=o.replace(/\\/g,"\\\\").replace(n,"\\"+r),o=r+o+r),a.push(o)}return a.join(", ")}}},15406:(t,e,r)=>{"use strict";var i=r(83534),n=r(27683),a=r(45112),s=r(39447),o=r(3733);function l(t){if(!(this instanceof l))return new l(t);var e=i(t);this.segments=e.segments,this.err=e.err,this.__stack=[]}l.from=function(t){if("string"==typeof t)return new l(t);if(t instanceof l){var e=new l("");return e.err=t.err,e.segments=t.segments.map(function(t){return t.slice()}),e.__stack=t.__stack.map(function(t){return a().matrix(t.toArray())}),e}throw Error("SvgPath.from: invalid param type "+t)},l.prototype.__matrix=function(t){var e,r=this;t.queue.length&&this.iterate(function(i,n,a,s){var l,u,h,c;switch(i[0]){case"v":u=0===(l=t.calc(0,i[1],!0))[0]?["v",l[1]]:["l",l[0],l[1]];break;case"V":u=(l=t.calc(a,i[1],!1))[0]===t.calc(a,s,!1)[0]?["V",l[1]]:["L",l[0],l[1]];break;case"h":u=0===(l=t.calc(i[1],0,!0))[1]?["h",l[0]]:["l",l[0],l[1]];break;case"H":u=(l=t.calc(i[1],s,!1))[1]===t.calc(a,s,!1)[1]?["H",l[0]]:["L",l[0],l[1]];break;case"a":case"A":var f=t.toArray(),p=o(i[1],i[2],i[3]).transform(f);if(f[0]*f[3]-f[1]*f[2]<0&&(i[5]=i[5]?"0":"1"),l=t.calc(i[6],i[7],"a"===i[0]),"A"===i[0]&&i[6]===a&&i[7]===s||"a"===i[0]&&0===i[6]&&0===i[7]){u=["a"===i[0]?"l":"L",l[0],l[1]];break}u=p.isDegenerate()?["a"===i[0]?"l":"L",l[0],l[1]]:[i[0],p.rx,p.ry,p.ax,i[4],i[5],l[0],l[1]];break;case"m":c=n>0,u=["m",(l=t.calc(i[1],i[2],c))[0],l[1]];break;default:for(e=1,u=[h=i[0]],c=h.toLowerCase()===h;e<i.length;e+=2)l=t.calc(i[e],i[e+1],c),u.push(l[0],l[1])}r.segments[n]=u},!0)},l.prototype.__evaluateStack=function(){var t,e;if(this.__stack.length){if(1===this.__stack.length){this.__matrix(this.__stack[0]),this.__stack=[];return}for(t=a(),e=this.__stack.length;--e>=0;)t.matrix(this.__stack[e].toArray());this.__matrix(t),this.__stack=[]}},l.prototype.toString=function(){var t="",e="",r=!1;this.__evaluateStack();for(var i=0,n=this.segments.length;i<n;i++){var a=this.segments[i],s=a[0];s!==e||"m"===s||"M"===s?("m"===s&&"z"===e&&(t+=" "),t+=s,r=!1):r=!0;for(var o=1;o<a.length;o++){var l=a[o];1===o?r&&l>=0&&(t+=" "):l>=0&&(t+=" "),t+=l}e=s}return t},l.prototype.translate=function(t,e){return this.__stack.push(a().translate(t,e||0)),this},l.prototype.scale=function(t,e){return this.__stack.push(a().scale(t,e||0===e?e:t)),this},l.prototype.rotate=function(t,e,r){return this.__stack.push(a().rotate(t,e||0,r||0)),this},l.prototype.skewX=function(t){return this.__stack.push(a().skewX(t)),this},l.prototype.skewY=function(t){return this.__stack.push(a().skewY(t)),this},l.prototype.matrix=function(t){return this.__stack.push(a().matrix(t)),this},l.prototype.transform=function(t){return t.trim()&&this.__stack.push(n(t)),this},l.prototype.round=function(t){var e,r=0,i=0,n=0,a=0;
1return t=t||0,this.__evaluateStack(),this.segments.forEach(function(s){var o=s[0].toLowerCase()===s[0];switch(s[0]){case"H":case"h":o&&(s[1]+=n),n=s[1]-s[1].toFixed(t),s[1]=+s[1].toFixed(t);return;case"V":case"v":o&&(s[1]+=a),a=s[1]-s[1].toFixed(t),s[1]=+s[1].toFixed(t);return;case"Z":case"z":n=r,a=i;return;case"M":case"m":o&&(s[1]+=n,s[2]+=a),n=s[1]-s[1].toFixed(t),a=s[2]-s[2].toFixed(t),r=n,i=a,s[1]=+s[1].toFixed(t),s[2]=+s[2].toFixed(t);return;case"A":case"a":o&&(s[6]+=n,s[7]+=a),n=s[6]-s[6].toFixed(t),a=s[7]-s[7].toFixed(t),s[1]=+s[1].toFixed(t),s[2]=+s[2].toFixed(t),s[3]=+s[3].toFixed(t+2),s[6]=+s[6].toFixed(t),s[7]=+s[7].toFixed(t);return;default:e=s.length,o&&(s[e-2]+=n,s[e-1]+=a),n=s[e-2]-s[e-2].toFixed(t),a=s[e-1]-s[e-1].toFixed(t),s.forEach(function(e,r){r&&(s[r]=+s[r].toFixed(t))});return}}),this},l.prototype.iterate=function(t,e){var r,i,n,a=this.segments,s={},o=!1,l=0,u=0,h=0,c=0;if(e||this.__evaluateStack(),a.forEach(function(e,r){var i=t(e,r,l,u);Array.isArray(i)&&(s[r]=i,o=!0);var n=e[0]===e[0].toLowerCase();switch(e[0]){case"m":case"M":l=e[1]+(n?l:0),u=e[2]+(n?u:0),h=l,c=u;return;case"h":case"H":l=e[1]+(n?l:0);return;case"v":case"V":u=e[1]+(n?u:0);return;case"z":case"Z":l=h,u=c;return;default:l=e[e.length-2]+(n?l:0),u=e[e.length-1]+(n?u:0)}}),!o)return this;for(r=0,n=[];r<a.length;r++)if(void 0!==s[r])for(i=0;i<s[r].length;i++)n.push(s[r][i]);else n.push(a[r]);return this.segments=n,this},l.prototype.abs=function(){return this.iterate(function(t,e,r,i){var n,a=t[0],s=a.toUpperCase();if(a!==s)switch(t[0]=s,a){case"v":t[1]+=i;return;case"a":t[6]+=r,t[7]+=i;return;default:for(n=1;n<t.length;n++)t[n]+=n%2?r:i}},!0),this},l.prototype.rel=function(){return this.iterate(function(t,e,r,i){var n,a=t[0],s=a.toLowerCase();if(a!==s&&(0!==e||"M"!==a))switch(t[0]=s,a){case"V":t[1]-=i;return;case"A":t[6]-=r,t[7]-=i;return;default:for(n=1;n<t.length;n++)t[n]-=n%2?r:i}},!0),this},l.prototype.unarc=function(){return this.iterate(function(t,e,r,i){var n,a,o,l=[],u=t[0];return"A"!==u&&"a"!==u?null:("a"===u?(a=r+t[6],o=i+t[7]):(a=t[6],o=t[7]),0===(n=s(r,i,a,o,t[4],t[5],t[1],t[2],t[3])).length)?[["a"===t[0]?"l":"L",t[6],t[7]]]:(n.forEach(function(t){l.push(["C",t[2],t[3],t[4],t[5],t[6],t[7]])}),l)}),this},l.prototype.unshort=function(){var t,e,r,i,n,a=this.segments;return this.iterate(function(s,o,l,u){var h,c=s[0],f=c.toUpperCase();o&&("T"===f?(h="t"===c,"Q"===(r=a[o-1])[0]?(t=r[1]-l,e=r[2]-u):"q"===r[0]?(t=r[1]-r[3],e=r[2]-r[4]):(t=0,e=0),i=-t,n=-e,h||(i+=l,n+=u),a[o]=[h?"q":"Q",i,n,s[1],s[2]]):"S"===f&&(h="s"===c,"C"===(r=a[o-1])[0]?(t=r[3]-l,e=r[4]-u):"c"===r[0]?(t=r[3]-r[5],e=r[4]-r[6]):(t=0,e=0),i=-t,n=-e,h||(i+=l,n+=u),a[o]=[h?"c":"C",i,n,s[1],s[2],s[3],s[4]]))}),this},t.exports=l},19984:t=>{"use strict";var e={}.hasOwnProperty,r=function(t,r){if(!t)return r;var i={};for(var n in r)i[n]=e.call(t,n)?t[n]:r[n];return i},i=/[ -,\.\/:-@\[-\^`\{-~]/,n=/[ -,\.\/:-@\[\]\^`\{-~]/,a=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,s=function t(e,s){"single"!=(s=r(s,t.options)).quotes&&"double"!=s.quotes&&(s.quotes="single");for(var o="double"==s.quotes?'"':"'",l=s.isIdentifier,u=e.charAt(0),h="",c=0,f=e.length;c<f;){var p=e.charAt(c++),d=p.charCodeAt(),g=void 0;if(d<32||d>126){if(d>=55296&&d<=56319&&c<f){var m=e.charCodeAt(c++);(64512&m)==56320?d=((1023&d)<<10)+(1023&m)+65536:c--}g="\\"+d.toString(16).toUpperCase()+" "}else g=s.escapeEverything?i.test(p)?"\\"+p:"\\"+d.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(p)?"\\"+d.toString(16).toUpperCase()+" ":"\\"==p||!l&&('"'==p&&o==p||"'"==p&&o==p)||l&&n.test(p)?"\\"+p:p;h+=g}return(l&&(/^-[-\d]/.test(h)?h="\\-"+h.slice(1):/\d/.test(u)&&(h="\\3"+u+" "+h.slice(1))),h=h.replace(a,function(t,e,r){return e&&e.length%2?t:(e||"")+r}),!l&&s.wrap)?o+h+o:h};s.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},s.version="3.0.0",t.exports=s},27683:(t,e,r)=>{"use strict";var i=r(45112),n={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},a=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,s=/[\s,]+/;t.exports=function(t){var e,r,o=new i;
1return t.split(a).forEach(function(t){if(t.length){if(void 0!==n[t]){e=t;return}switch(r=t.split(s).map(function(t){return+t||0}),e){case"matrix":6===r.length&&o.matrix(r);return;case"scale":1===r.length?o.scale(r[0],r[0]):2===r.length&&o.scale(r[0],r[1]);return;case"rotate":1===r.length?o.rotate(r[0],0,0):3===r.length&&o.rotate(r[0],r[1],r[2]);return;case"translate":1===r.length?o.translate(r[0],0):2===r.length&&o.translate(r[0],r[1]);return;case"skewX":1===r.length&&o.skewX(r[0]);return;case"skewY":1===r.length&&o.skewY(r[0]);return}}}),o}},39447:t=>{"use strict";var e=2*Math.PI;function r(t,e,r,i){var n=t*r+e*i;return n>1&&(n=1),n<-1&&(n=-1),(t*i-e*r<0?-1:1)*Math.acos(n)}t.exports=function(t,i,n,a,s,o,l,u,h){var c,f,p,d,g,m,y,b,v,x,S,w,k,M,C,F=Math.sin(h*e/360),A=Math.cos(h*e/360),T=A*(t-n)/2+F*(i-a)/2,P=-F*(t-n)/2+A*(i-a)/2;if(0===T&&0===P||0===l||0===u)return[];var B=T*T/((l=Math.abs(l))*l)+P*P/((u=Math.abs(u))*u);B>1&&(l*=Math.sqrt(B),u*=Math.sqrt(B));var L=(c=l,f=u,p=A*(t-n)/2+F*(i-a)/2,d=-F*(t-n)/2+A*(i-a)/2,g=c*c,m=f*f,y=p*p,(v=g*m-g*(b=d*d)-m*y)<0&&(v=0),v/=g*b+m*y,x=(v=Math.sqrt(v)*(s===o?-1:1))*c/f*d,S=-(v*f)/c*p,M=r(1,0,w=(p-x)/c,k=(d-S)/f),C=r(w,k,(-p-x)/c,(-d-S)/f),0===o&&C>0&&(C-=e),1===o&&C<0&&(C+=e),[A*x-F*S+(t+n)/2,F*x+A*S+(i+a)/2,M,C]),E=[],N=L[2],O=L[3],_=Math.max(Math.ceil(Math.abs(O)/(e/4)),1);O/=_;for(var H=0;H<_;H++)E.push(function(t,e){var r=4/3*Math.tan(e/4),i=Math.cos(t),n=Math.sin(t),a=Math.cos(t+e),s=Math.sin(t+e);return[i,n,i-n*r,n+i*r,a+s*r,s-a*r,a,s]}(N,O)),N+=O;return E.map(function(t){for(var e=0;e<t.length;e+=2){var r=t[e+0],i=t[e+1],n=A*(r*=l)-F*(i*=u),a=F*r+A*i;t[e+0]=n+L[0],t[e+1]=a+L[1]}return t})}},45112:t=>{"use strict";function e(){if(!(this instanceof e))return new e;this.queue=[],this.cache=null}e.prototype.matrix=function(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]||(this.cache=null,this.queue.push(t)),this},e.prototype.translate=function(t,e){return(0!==t||0!==e)&&(this.cache=null,this.queue.push([1,0,0,1,t,e])),this},e.prototype.scale=function(t,e){return(1!==t||1!==e)&&(this.cache=null,this.queue.push([t,0,0,e,0,0])),this},e.prototype.rotate=function(t,e,r){var i,n,a;return 0!==t&&(this.translate(e,r),n=Math.cos(i=t*Math.PI/180),a=Math.sin(i),this.queue.push([n,a,-a,n,0,0]),this.cache=null,this.translate(-e,-r)),this},e.prototype.skewX=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,0,Math.tan(t*Math.PI/180),1,0,0])),this},e.prototype.skewY=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,Math.tan(t*Math.PI/180),0,1,0,0])),this},e.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var t,e,r=1;r<this.queue.length;r++)this.cache=(t=this.cache,e=this.queue[r],[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]);return this.cache},e.prototype.calc=function(t,e,r){var i;return this.queue.length?(this.cache||(this.cache=this.toArray()),[t*(i=this.cache)[0]+e*i[2]+(r?0:i[4]),t*i[1]+e*i[3]+(r?0:i[5])]):[t,e]},t.exports=e},53829:(t,e,r)=>{"use strict";r.r(e),r.d(e,{svg2pdf:()=>tY});var i=r(19984),n=r.n(i),a=r(12752),s=r.n(a),o=r(26597),l=r(8791),u=r.n(l),h=function(t){var e,r,i=t,n={a:0,b:0,c:0},a=[];return r=function(e,r){var s,o,l,u,h,c;if(e.test(i))for(o=0,l=(s=i.match(e)).length;o<l;o+=1)n[r]+=1,u=s[o],h=i.indexOf(u),c=u.length,a.push({selector:t.substr(h,c),type:r,index:h,length:c}),i=i.replace(u,Array(c+1).join(" "))},(e=function(t){var e,r,n,a;if(t.test(i))for(r=0,n=(e=i.match(t)).length;r<n;r+=1)a=e[r],i=i.replace(a,Array(a.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),e(/\\[0-9A-Fa-f]{1,5}\s/g),e(/\\./g),!function(){var t,e,r,n,a=/{[^]*/gm;if(a.test(i))for(e=0,r=(t=i.match(a)).length;e<r;e+=1)n=t[e],i=i.replace(n,Array(n.length+1).join(" "))}(),r(/(\[[^\]]+\])/g,"b"),r(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),r(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),r(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),r(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),r(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),i=(i=(i=(i=(i=(i=i.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),r(/([^\s\+>~\.\[:]+)/g,"c"),a.sort(function(t,e){return t.index-e.index}),{selector:t,specificity:"0,"+n.a.toString()+","+n.b.toString()+","+n.c.toString(),specificityArray:[0,n.a,n.b,n.c],parts:a}},c=function(t,e){var r,i,n;if("string"==typeof t)if(-1!==t.indexOf(","))throw"Invalid CSS selector";else r=h(t).specificityArray;else if(Array.isArray(t))if(4!==t.filter(function(t){return"number"==typeof t}).length)throw"Invalid specificity array";else r=t;else throw"Invalid CSS selector or specificity array";if("string"==typeof e)if(-1!==e.indexOf(","))throw"Invalid CSS selector";else i=h(e).specificityArray;else if(Array.isArray(e))if(4!==e.filter(function(t){return"number"==typeof t}).length)throw"Invalid specificity array";else i=e;else throw"Invalid CSS selector or specificity array";
1for(n=0;n<4;n+=1)if(r[n]<i[n])return -1;else if(r[n]>i[n])return 1;return 0},f=function(t,e){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function p(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var d=function(){return(d=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function g(t,e,r,i){return new(r||(r=Promise))(function(n,a){function s(t){try{l(i.next(t))}catch(t){a(t)}}function o(t){try{l(i.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?n(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,o)}l((i=i.apply(t,e||[])).next())})}function m(t,e){var r,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){var l=[a,o];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(n=2&l[0]?i.return:l[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;switch(i=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,i=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){s.label=l[1];break}if(6===l[0]&&s.label<n[1]){s.label=n[1],n=l;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(l);break}n[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],i=0}finally{r=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var y=function(){function t(t){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,t){for(var e in"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase(),this.simpleColors={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",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"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",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee9
10",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"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",slategrey:"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"},this.simpleColors)t==e&&(t=this.simpleColors[e]);this.colorDefs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^rgb\(([0-9.]+)%,\s*([0-9.]+)%,\s*([0-9.]+)%\)$/,example:["rgb(50.5%, 25.75%, 75.5%)","rgb(100%,0%,0%)"],process:function(t){return[Math.round(2.55*parseFloat(t[1])),Math.round(2.55*parseFloat(t[2])),Math.round(2.55*parseFloat(t[3]))]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}];for(var r=0;r<this.colorDefs.length;r++){var i=this.colorDefs[r].re,n=this.colorDefs[r].process,a=i.exec(t);if(a){var s=n(a);this.r=s[0],this.g=s[1],this.b=s[2],this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?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}}return t.prototype.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},t.prototype.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+(this.a||"1")+")"},t.prototype.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},t.prototype.getHelpXML=function(){for(var e=[],r=0;r<this.colorDefs.length;r++)for(var i=this.colorDefs[r].example,n=0;n<i.length;n++)e[e.length]=i[n];for(var a in this.simpleColors)e[e.length]=a;var s=document.createElement("ul");for(s.setAttribute("id","rgbcolor-examples"),r=0;r<e.length;r++)try{var o=document.createElement("li"),l=new t(e[r]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+l.toHex()+"; color:"+l.toHex(),u.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+e[r]+" -> "+l.toRGB()+" -> "+l.toHex());o.appendChild(u),o.appendChild(h),s.appendChild(o)}catch(t){}return s},t}(),b=function(){function t(t){this.color=t}return t.prototype.getFillData=function(t,e){return g(this,void 0,void 0,function(){return m(this,function(t){return[2,void 0]})})},t}(),v=function(){function t(){this.xmlSpace="",this.whiteSpace="",this.fill=null,this.fillOpacity=1,this.fontFamily="",this.fontSize=16,this.fontStyle="",this.fontWeight="",this.opacity=1,this.stroke=null,this.strokeDasharray=null,this.strokeDashoffset=0,this.strokeLinecap="",this.strokeLinejoin="",this.strokeMiterlimit=4,this.strokeOpacity=1,this.strokeWidth=1,this.alignmentBaseline="",this.textAnchor="",this.visibility="",this.color=null,this.contextFill=null,this.contextStroke=null,this.fillRule=null}return t.prototype.clone=function(){var e=new t;
1return e.xmlSpace=this.xmlSpace,e.whiteSpace=this.whiteSpace,e.fill=this.fill,e.fillOpacity=this.fillOpacity,e.fontFamily=this.fontFamily,e.fontSize=this.fontSize,e.fontStyle=this.fontStyle,e.fontWeight=this.fontWeight,e.opacity=this.opacity,e.stroke=this.stroke,e.strokeDasharray=this.strokeDasharray,e.strokeDashoffset=this.strokeDashoffset,e.strokeLinecap=this.strokeLinecap,e.strokeLinejoin=this.strokeLinejoin,e.strokeMiterlimit=this.strokeMiterlimit,e.strokeOpacity=this.strokeOpacity,e.strokeWidth=this.strokeWidth,e.textAnchor=this.textAnchor,e.alignmentBaseline=this.alignmentBaseline,e.visibility=this.visibility,e.color=this.color,e.fillRule=this.fillRule,e.contextFill=this.contextFill,e.contextStroke=this.contextStroke,e},t.default=function(){var e=new t;return e.xmlSpace="default",e.whiteSpace="normal",e.fill=new b(new y("rgb(0, 0, 0)")),e.fillOpacity=1,e.fontFamily="times",e.fontSize=16,e.fontStyle="normal",e.fontWeight="normal",e.opacity=1,e.stroke=null,e.strokeDasharray=null,e.strokeDashoffset=0,e.strokeLinecap="butt",e.strokeLinejoin="miter",e.strokeMiterlimit=4,e.strokeOpacity=1,e.strokeWidth=1,e.alignmentBaseline="baseline",e.textAnchor="start",e.visibility="visible",e.color=new y("rgb(0, 0, 0)"),e.fillRule="nonzero",e.contextFill=null,e.contextStroke=null,e},t.getContextColors=function(t,e){void 0===e&&(e=!1);var r={};return t.attributeState.contextFill&&(r.contextFill=t.attributeState.contextFill),t.attributeState.contextStroke&&(r.contextStroke=t.attributeState.contextStroke),e&&t.attributeState.color&&(r.color=t.attributeState.color),r},t}(),x=function(){function t(t,e){var r,i,n;this.pdf=t,this.svg2pdfParameters=e.svg2pdfParameters,this.attributeState=e.attributeState?e.attributeState.clone():v.default(),this.viewport=e.viewport,this.refsHandler=e.refsHandler,this.styleSheets=e.styleSheets,this.textMeasure=e.textMeasure,this.transform=null!=(r=e.transform)?r:this.pdf.unitMatrix,this.withinClipPath=null!=(i=e.withinClipPath)&&i,this.withinUse=null!=(n=e.withinUse)&&n}return t.prototype.clone=function(e){var r,i,n,a;return void 0===e&&(e={}),new t(this.pdf,{svg2pdfParameters:this.svg2pdfParameters,attributeState:e.attributeState?e.attributeState.clone():this.attributeState.clone(),viewport:null!=(r=e.viewport)?r:this.viewport,refsHandler:this.refsHandler,styleSheets:this.styleSheets,textMeasure:this.textMeasure,transform:null!=(i=e.transform)?i:this.transform,withinClipPath:null!=(n=e.withinClipPath)?n:this.withinClipPath,withinUse:null!=(a=e.withinUse)?a:this.withinUse})},t}(),S=function(){function t(e){this.renderedElements={},this.idMap=e,this.idPrefix=String(t.instanceCounter++)}return t.prototype.getRendered=function(t,e,r){return g(this,void 0,void 0,function(){var i,n;return m(this,function(a){switch(a.label){case 0:return i=this.generateKey(t,e),this.renderedElements.hasOwnProperty(i)?[2,this.renderedElements[t]]:(n=this.get(t),this.renderedElements[i]=n,[4,r(n)]);case 1:return a.sent(),[2,n]}})})},t.prototype.get=function(t){return this.idMap[n()(t,{isIdentifier:!0})]},t.prototype.generateKey=function(t,e){var r="";return e&&(r=["color","contextFill","contextStroke"].map(function(t){var r,i;return null!=(i=null==(r=e[t])?void 0:r.toRGBA())?i:""}).join("|")),this.idPrefix+"|"+t+"|"+r},t.instanceCounter=0,t}();function w(t,e){return Math.atan2(e[1]-t[1],e[0]-t[0])}var k=2/3;function M(t,e){return[k*(e[0]-t[0])+t[0],k*(e[1]-t[1])+t[1]]}function C(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function F(t,e){return C([e[0]-t[0],e[1]-t[1]])}function A(t,e){return[t[0]+e[0],t[1]+e[1]]}function T(t,e){var r=t[0],i=t[1];return[e.a*r+e.c*i+e.e,e.b*r+e.d*i+e.f]}var P=function(){function t(){this.segments=[]}return t.prototype.moveTo=function(t,e){return this.segments.push(new B(t,e)),this},t.prototype.lineTo=function(t,e){return this.segments.push(new L(t,e)),this},t.prototype.curveTo=function(t,e,r,i,n,a){return this.segments.push(new E(t,e,r,i,n,a)),this},t.prototype.close=function(){return this.segments.push(new N),this},t.prototype.transform=function(t){this.segments.forEach(function(e){if(e instanceof B||e instanceof L||e instanceof E){var r=T([e.x,e.y],t);e.x=r[0],e.y=r[1]}if(e instanceof E){var i=T([e.x1,e.y1],t),n=T([e.x2,e.y2],t);e.x1=i[0],e.y1=i[1],e.x2=n[0],e.y2=n[1]}})},t.prototype.draw=function(t){var e=t.pdf;
1this.segments.forEach(function(t){t instanceof B?e.moveTo(t.x,t.y):t instanceof L?e.lineTo(t.x,t.y):t instanceof E?e.curveTo(t.x1,t.y1,t.x2,t.y2,t.x,t.y):e.close()})},t}(),B=function(t,e){this.x=t,this.y=e},L=function(t,e){this.x=t,this.y=e},E=function(t,e,r,i,n,a){this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.x=n,this.y=a},N=function(){};function O(t,e){return e.split(",").indexOf((t.nodeName||t.tagName).toLowerCase())>=0}function _(t,e,r,i){void 0===i&&(i=r);var n,a=null==(n=t.style)?void 0:n.getPropertyValue(i);return a||e.getPropertyValue(t,i)||t.hasAttribute(r)&&t.getAttribute(r)||void 0}function H(t,e,r){if("none"===_(t.element,r.styleSheets,"display"))return!1;var i=e,n=_(t.element,r.styleSheets,"visibility");return n&&(i="hidden"!==n),i}function R(t,e,r){var i=H(t,e,r);return 0!==t.element.childNodes.length&&(t.children.forEach(function(t){t.isVisible(i,r)&&(i=!0)}),i)}var D=function(){function t(){this.markers=[]}return t.prototype.addMarker=function(t){this.markers.push(t)},t.prototype.draw=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a,s,o,l;return m(this,function(u){switch(u.label){case 0:e=0,u.label=1;case 1:return e<this.markers.length?(r=this.markers[e],i=void 0,n=r.angle,a=r.anchor,s=Math.cos(n),o=Math.sin(n),i=t.pdf.Matrix(s,o,-o,s,a[0],a[1]),i=t.pdf.matrixMult(t.pdf.Matrix(t.attributeState.strokeWidth,0,0,t.attributeState.strokeWidth,0,0),i),i=t.pdf.matrixMult(i,t.transform),t.pdf.saveGraphicsState(),l=v.getContextColors(t),[4,t.refsHandler.getRendered(r.id,l,function(e){return e.apply(t)})]):[3,4];case 2:u.sent(),t.pdf.doFormObject(t.refsHandler.generateKey(r.id,l),i),t.pdf.restoreGraphicsState(),u.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},t}(),I=function(t,e,r,i){void 0===i&&(i=!1),this.id=t,this.anchor=e,this.angle=r,this.isStartMarker=i},q=/url\(["']?#([^"']+)["']?\)/,j={bottom:"bottom","text-bottom":"bottom",top:"top","text-top":"top",hanging:"hanging",middle:"middle",central:"middle",center:"middle",mathematical:"middle",ideographic:"ideographic",alphabetic:"alphabetic",baseline:"alphabetic"},V="http://www.w3.org/2000/svg";function W(t,e){var r;return(r=t&&t.toString().match(/^([\-0-9.]+)em$/))?parseFloat(r[1])*e:(r=t&&t.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(r[1]):0}function G(t){return j[t]||"alphabetic"}function U(t){for(var e,r=[],i=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;e=i.exec(t);)r.push(parseFloat(e[0]));return r}function z(t,e){if("transparent"===t){var r=new y("rgb(0,0,0)");return r.a=0,r}if(e&&"currentcolor"===t.toLowerCase())return e.color||new y("rgb(0,0,0)");if(e&&"context-stroke"===t.toLowerCase())return e.contextStroke||new y("rgb(0,0,0)");if(e&&"context-fill"===t.toLowerCase())return e.contextFill||new y("rgb(0,0,0)");var i=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(t);if(i){var n=U(i[1]),a=new y("rgb("+n.slice(0,3).join(",")+")");return a.a=n[3],a}return new y(t)}var X,Y={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"},Q=2===parseFloat((X=o.jsPDF.version.split("."))[0])&&3===parseFloat(X[1]);function $(t,e){return Q?400==e?"italic"==t?"italic":"normal":700==e&&"italic"!==t?"bold":t+""+e:400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"}function K(t,e){if("none"===_(e.element,t.styleSheets,"display"))return[0,0,0,0];var r=[];return e.children.forEach(function(e){var i=e.getBoundingBox(t);if(0!==i[0]||0!==i[1]||0!==i[2]||0!==i[3]){var n=e.computeNodeTransform(t);i[0]=i[0]*n.sx+n.tx,i[1]=i[1]*n.sy+n.ty,i[2]=i[2]*n.sx,i[3]=i[3]*n.sy,r=0===r.length?i:[Math.min(r[0],i[0]),Math.min(r[1],i[1]),Math.max(r[0]+r[2],i[0]+i[2])-Math.min(r[0],i[0]),Math.max(r[1]+r[3],i[1]+i[3])-Math.min(r[1],i[1])]}}),0===r.length?[0,0,0,0]:r}function Z(t,e){var r=parseFloat,i=r(t.getAttribute("x1"))||r(_(t,e.styleSheets,"x"))||r(_(t,e.styleSheets,"cx"))-r(_(t,e.styleSheets,"r"))||0,n=r(t.getAttribute("x2"))||i+r(_(t,e.styleSheets,"width"))||r(_(t,e.styleSheets,"cx"))+r(_(t,e.styleSheets,"r"))||0,a=r(t.getAttribute("y1"))||r(_(t,e.
vendor: 7,606 bytes, line 1
1styleSheets,"y"))||r(_(t,e.styleSheets,"cy"))-r(_(t,e.styleSheets,"r"))||0,s=r(t.getAttribute("y2"))||a+r(_(t,e.styleSheets,"height"))||r(_(t,e.styleSheets,"cy"))+r(_(t,e.styleSheets,"r"))||0;return[Math.min(i,n),Math.min(a,s),Math.max(i,n)-Math.min(i,n),Math.max(a,s)-Math.min(a,s)]}function J(t,e,r,i,n,a,s,o){void 0===o&&(o=!1);var l,u,h=e[0],c=e[1],f=e[2],p=e[3],d=n/f,g=a/p,m=t.getAttribute("preserveAspectRatio");if(m){var y=m.split(" ");"defer"===y[0]&&(y=y.slice(1)),l=y[0],u=y[1]||"meet"}else l="xMidYMid",u="meet";if("none"!==l&&("meet"===u?d=g=Math.min(d,g):"slice"===u&&(d=g=Math.max(d,g))),o)return s.pdf.Matrix(d,0,0,g,0,0);var b=r-h*d,v=i-c*g;l.indexOf("xMid")>=0?b+=(n-f*d)/2:l.indexOf("xMax")>=0&&(b+=n-f*d),l.indexOf("YMid")>=0?v+=(a-p*g)/2:l.indexOf("YMax")>=0&&(v+=a-p*g);var x=s.pdf.Matrix(1,0,0,1,b,v),S=s.pdf.Matrix(d,0,0,g,0,0);return s.pdf.matrixMult(S,x)}function tt(t,e){if(!t||"none"===t)return e.pdf.unitMatrix;for(var r,i,n=/^[\s,]*matrix\(([^)]+)\)\s*/,a=/^[\s,]*translate\(([^)]+)\)\s*/,s=/^[\s,]*rotate\(([^)]+)\)\s*/,o=/^[\s,]*scale\(([^)]+)\)\s*/,l=/^[\s,]*skewX\(([^)]+)\)\s*/,u=/^[\s,]*skewY\(([^)]+)\)\s*/,h=e.pdf.unitMatrix;t.length>0&&t.length!==i;){i=t.length;var c=n.exec(t);if(c&&(r=U(c[1]),h=e.pdf.matrixMult(e.pdf.Matrix(r[0],r[1],r[2],r[3],r[4],r[5]),h),t=t.substr(c[0].length)),c=s.exec(t)){var f=Math.PI*(r=U(c[1]))[0]/180;if(h=e.pdf.matrixMult(e.pdf.Matrix(Math.cos(f),Math.sin(f),-Math.sin(f),Math.cos(f),0,0),h),r[1]||r[2]){var p=e.pdf.Matrix(1,0,0,1,r[1],r[2]),d=e.pdf.Matrix(1,0,0,1,-r[1],-r[2]);h=e.pdf.matrixMult(d,e.pdf.matrixMult(h,p))}t=t.substr(c[0].length)}(c=a.exec(t))&&(r=U(c[1]),h=e.pdf.matrixMult(e.pdf.Matrix(1,0,0,1,r[0],r[1]||0),h),t=t.substr(c[0].length)),(c=o.exec(t))&&((r=U(c[1]))[1]||(r[1]=r[0]),h=e.pdf.matrixMult(e.pdf.Matrix(r[0],0,0,r[1],0,0),h),t=t.substr(c[0].length)),(c=l.exec(t))&&(r=parseFloat(c[1])*(Math.PI/180),h=e.pdf.matrixMult(e.pdf.Matrix(1,0,Math.tan(r),1,0,0),h),t=t.substr(c[0].length)),(c=u.exec(t))&&(r=parseFloat(c[1])*(Math.PI/180),h=e.pdf.matrixMult(e.pdf.Matrix(1,Math.tan(r),0,1,0,0),h),t=t.substr(c[0].length))}return h}var te=function(){function t(t,e){this.element=t,this.children=e,this.parent=null}return t.prototype.setParent=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.getBoundingBox=function(t){return"none"===_(this.element,t.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(t)},t.prototype.computeNodeTransform=function(t){var e=this.computeNodeTransformCore(t),r=_(this.element,t.styleSheets,"transform");return r?t.pdf.matrixMult(e,tt(r,t)):e},t}(),tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t){return Promise.resolve()},e.prototype.getBoundingBoxCore=function(t){return[]},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e}(te),ti=function(t){function e(e,r,i){var n=t.call(this,r,i)||this;return n.pdfGradientType=e,n.contextColor=void 0,n}return p(e,t),e.prototype.apply=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a,s;return m(this,function(l){return(e=this.element.getAttribute("id"))&&(r=this.getStops(t.styleSheets),i=0,n=!1,r.forEach(function(t){var e=t.opacity;e&&1!==e&&(i+=e,n=!0)}),n&&(a=new o.GState({opacity:i/r.length})),s=new o.ShadingPattern(this.pdfGradientType,this.getCoordinates(),r,a),t.pdf.addShadingPattern(e,s)),[2]})})},e.prototype.getStops=function(t){var r=this;if(this.stops)return this.stops;if(void 0===this.contextColor){this.contextColor=null;for(var i=this;i;){var n=_(i.element,t,"color");if(n){this.contextColor=z(n,null);break}i=i.getParent()}}var a=[];return this.children.forEach(function(i){if("stop"===i.element.tagName.toLowerCase()){var n=_(i.element,t,"color"),s=z(_(i.element,t,"stop-color")||"",n?{color:z(n,null)}:{color:r.contextColor}),o=parseFloat(_(i.element,t,"stop-opacity")||"1");a.push({offset:e.parseGradientOffset(i.element.getAttribute("offset")||"0"),color:[s.r,s.g,s.b],opacity:o})}}),this.stops=a},e.prototype.getBoundingBoxCore=function(t){return Z(this.element,t)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return R(this,t,e)},e.parseGradientOffset=function(t){var e=parseFloat(t);return!isNaN(e)&&t.indexOf("%")>=0?e/100:e},e}(tr),tn=function(t){function e(e,r){return t.call(this,"axial",e,r)||this}return p(e,t),e.prototype.getCoordinates=function(){return[parseFloat(this.element.getAttribute("x1")||"0"),parseFloat(this.element.getAttribute("y1")||"0"),parseFloat(this.element.getAttribute("x2")||"1"),parseFloat(this.element.getAttribute("y2")||"0")]},e}(ti),ta=function(t){function e(e,r){return t.call(this,"radial",e,r)||this}return p(e,t),e.prototype.getCoordinates=function(){var t=this.element.getAttribute("cx"),e=this.element.getAttribute("cy"),r=this.element.getAttribute("fx"),i=this.element.getAttribute("fy");return[parseFloat(r||t||"0.5"),parseFloat(i||e||"0.5"),0,parseFloat(t||"0.5"),parseFloat(e||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},e}(ti),ts=function(){function t(t,e){this.key=t,this.gradient=e}return t.prototype.getFillData=function(t,e){return g(this,void 0,void 0,function(){var r,i,n;return m(this,function(a){switch(a.label){case 0:return[4,e.refsHandler.getRendered(this.key,null,function(t){return t.apply(new x(e.pdf,{refsHandler:e.refsHandler,textMeasure:e.textMeasure,styleSheets:e.styleSheets,viewport:e.viewport,svg2pdfParameters:e.svg2pdfParameters}))})];case 1:return a.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?r=e.pdf.unitMatrix:(i=t.getBoundingBox(e),r=e.pdf.Matrix(i[2],0,0,i[3],i[0],i[1])),n=tt(_(this.gradient.element,e.styleSheets,"gradientTransform","transform"),e),[2,{key:this.key,matrix:e.pdf.matrixMult(n,r)}]}})})},t}(),to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.apply=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a;return m(this,function(s){switch(s.label){case 0:if(!(e=this.element.getAttribute("id")))return[2];r=this.getBoundingBox(t),i=new o.TilingPattern([r[0],r[1],r[0]+r[2],r[1]+r[3]],r[2],r[3]),t.pdf.beginTilingPattern(i),n=0,a=this.children,s.label=1;case 1:return n<a.length?[4,a[n].render(new x(t.pdf,{attributeState:t.attributeState,refsHandler:t.refsHandler,styleSheets:t.styleSheets,viewport:t.viewport,svg2pdfParameters:t.svg2pdfParameters,textMeasure:t.textMeasure}))]:[3,4];case 2:s.sent(),s.label=3;case 3:return n++,[3,1];case 4:return t.pdf.endTilingPattern(e,i),[2]}})})},e.prototype.getBoundingBoxCore=function(t){return Z(this.element,t)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return R(this,t,e)},e}(tr),tl=function(){function t(t,e){this.key=t,this.pattern=e}return t.prototype.getFillData=function(t,e){return g(this,void 0,void 0,function(){var r,i,n,a,s,o,l,u,h,c,f,p;return m(this,function(d){switch(d.label){case 0:return[4,e.refsHandler.getRendered(this.key,null,function(t){return t.apply(new x(e.pdf,{refsHandler:e.refsHandler,textMeasure:e.textMeasure,styleSheets:e.styleSheets,viewport:e.viewport,svg2pdfParameters:e.svg2pdfParameters}))})];case 1:return d.sent(),r={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},n=e.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(i=t.getBoundingBox(e),n=e.pdf.Matr
1ix(1,0,0,1,i[0],i[1]),o=(s=this.pattern.getBoundingBox(e))[0]*i[0]||0,l=s[1]*i[1]||0,u=s[2]*i[2]||0,h=s[3]*i[3]||0,r.boundingBox=[o,l,o+u,l+h],r.xStep=u,r.yStep=h),a=e.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(i||(i=t.getBoundingBox(e)),a=e.pdf.Matrix(i[2],0,0,i[3],0,0),o=(s=r.boundingBox||this.pattern.getBoundingBox(e))[0]/i[0]||0,l=s[1]/i[1]||0,u=s[2]/i[2]||0,h=s[3]/i[3]||0,r.boundingBox=[o,l,o+u,l+h],r.xStep=u,r.yStep=h),c=e.pdf.unitMatrix,(f=_(this.pattern.element,e.styleSheets,"patternTransform","transform"))&&(c=tt(f,e)),p=a,p=e.pdf.matrixMult(p,n),p=e.pdf.matrixMult(p,c),r.matrix=p=e.pdf.matrixMult(p,e.transform),[2,r]}})})},t}();function tu(t,e,r){var i=r||e.element,n=_(i,t.styleSheets,"color");if(n){var a=z(n,t.attributeState);a.ok?t.attributeState.color=a:t.attributeState.color=new y("rgb(0,0,0)")}var o=_(i,t.styleSheets,"visibility");o&&(t.attributeState.visibility=o);var l=_(i,t.styleSheets,"fill");l&&(t.attributeState.fill=function(t,e){var r=q.exec(t);if(r){var i=r[1],n=e.refsHandler.get(i);return n&&(n instanceof tn||n instanceof ta)?function(t,e,r){var i=e.getStops(r.styleSheets);if(0===i.length)return null;if(1===i.length){var n=i[0].color,a=new y;return a.ok=!0,a.r=n[0],a.g=n[1],a.b=n[2],a.a=i[0].opacity,new b(a)}return new ts(t,e)}(i,n,e):n&&n instanceof to?new tl(i,n):new b(new y("rgb(0, 0, 0)"))}var a=z(t,e.attributeState);return a.ok?new b(a):null}(l,t));var u=_(i,t.styleSheets,"fill-opacity");u&&(t.attributeState.fillOpacity=parseFloat(u));var h=_(i,t.styleSheets,"stroke-opacity");h&&(t.attributeState.strokeOpacity=parseFloat(h));var c=_(i,t.styleSheets,"opacity");c&&(t.attributeState.opacity=parseFloat(c));var f=_(i,t.styleSheets,"stroke-width");void 0!==f&&""!==f&&(t.attributeState.strokeWidth=Math.abs(parseFloat(f)));var p=_(i,t.styleSheets,"stroke");if(p)if("none"===p)t.attributeState.stroke=null;else{var d=z(p,t.attributeState);d.ok&&(t.attributeState.stroke=new b(d))}p&&t.attributeState.stroke instanceof b&&(t.attributeState.contextStroke=t.attributeState.stroke.color),l&&t.attributeState.fill instanceof b&&(t.attributeState.contextFill=t.attributeState.fill.color);var g=_(i,t.styleSheets,"stroke-linecap");g&&(t.attributeState.strokeLinecap=g);var m=_(i,t.styleSheets,"stroke-linejoin");m&&(t.attributeState.strokeLinejoin=m);var v=_(i,t.styleSheets,"stroke-dasharray");if(v){var x=parseInt(_(i,t.styleSheets,"stroke-dashoffset")||"0");t.attributeState.strokeDasharray=U(v),t.attributeState.strokeDashoffset=x}var S=_(i,t.styleSheets,"stroke-miterlimit");void 0!==S&&""!==S&&(t.attributeState.strokeMiterlimit=parseFloat(S));var w=i.getAttribute("xml:space");w&&(t.attributeState.xmlSpace=w);var k=_(i,t.styleSheets,"white-space");k&&(t.attributeState.whiteSpace=k);var M=_(i,t.styleSheets,"font-weight");M&&(t.attributeState.fontWeight=M);var C=_(i,t.styleSheets,"font-style");C&&(t.attributeState.fontStyle=C);var F=_(i,t.styleSheets,"font-family");if(F){var A,T,P,B,L=s().parse(F);t.attributeState.fontFamily=(A=t.attributeState,T=$(A.fontStyle,A.fontWeight),P=t.pdf.getFontList(),B="",L.some(function(t){var e=P[t];return e&&e.indexOf(T)>=0?(B=t,!0):(t=t.toLowerCase(),!!Y.hasOwnProperty(t)&&(B=t,!0))})||(B="times"),B)}var E=_(i,t.styleSheets,"font-size");if(E){var N=t.pdf.getFontSize();t.attributeState.fontSize=W(E,N)}var O=_(i,t.styleSheets,"vertical-align")||_(i,t.styleSheets,"alignment-baseline");if(O){var H=O.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);H&&(t.attributeState.alignmentBaseline=H[0])}var R=_(i,t.styleSheets,"text-anchor");R&&(t.attributeState.textAnchor=R);var D=_(i,t.styleSheets,"fill-rule");D&&(t.attributeState.fillRule=D)}function th(t,e,r){var i,n=1;i=+(t.attributeState.fillOpacity*t.attributeState.opacity),t.attributeState.fill instanceof b&&void 0!==t.attributeState.fill.color.a&&(i*=t.attributeState.fill.color.a),n*=t.attributeState.strokeOpacity*t.attributeState.opacity,t.attributeState.stroke instanceof b&&void 0!==t.attributeState.stroke.color.a&&(n*=t.attributeState.stroke.color.a);var a,s,l=i<1,u=n<1;if(O(r,"use")?(l=!0,u=!0,i*=!!t.attributeState.fill,n*=!!t.attributeState.stroke):t.withinUse&&(t.attributeState.fill!==e.attributeState.fill?(l=!0,i*=!!t.attributeState.fill):l&&!t.attributeState.fill&&(i=0),t.attributeState.stroke!==e.attributeState.stroke?(u=!0,n*=!!t.attributeState.stroke):u&&!t.attributeState.stroke&&(n=0)),l||u){var h={};l&&(h.opacity=i),u&&(h["stroke-opacity"]=n),t.pdf.setGState(new o.GState(h))}if(t.attributeState.fill&&t.attributeState.fill!==e.attributeState.fill&&t.attributeState.fill instanceof b&&t.attributeState.fill.color.ok&&!O(r,"text")&&t.pdf.setFillColor(t.attributeState.fill.color.r,t.attributeState.fill.color.g,t.attributeState.fill.color.b),t.attributeState.strokeWidth!==e.attributeState.strokeWidth&&t.pdf.setLineWidth(t.attributeState.strokeWidth),t.attributeState.stroke!==e.attributeState.stroke&&t.attributeState.stroke instanceof b&&t.pdf.setDrawColor(t.attributeState.stroke.color.r,t.attributeState.stroke.color.g,t.attributeState.stroke.color.b),t.attributeState.strokeLinecap!==e.attributeState.strokeLinecap&&t.pdf.setLineCap(t.attributeState.strokeLinecap),t.attributeState.strokeLinejoin!==e.attributeState.strokeLinejoin&&t.pdf.setLineJoin(t.attributeState.strokeLinejoin),(t.attributeState.strokeDasharray!==e.attributeState.strokeDasharray||t.attributeState.strokeDashoffset!==e.attributeState.strokeDashoffset)&&t.attributeState.strokeDasharray&&t.pdf.setLineDashPattern(t.attributeState.strokeDasharray,t.attributeState.strokeDashoffset),t.attributeState.strokeMiterlimit!==e.attributeState.strokeMiterlimit&&t.pdf.setLineMiterLimit(t.attributeState.strokeMiterlimit),t.attributeState.fontFamily!==e.attributeState.fontFamily&&
vendor: 4,538 bytes, line 1
1(a=Y.hasOwnProperty(t.attributeState.fontFamily)?Y[t.attributeState.fontFamily]:t.attributeState.fontFamily),t.attributeState.fill&&t.attributeState.fill!==e.attributeState.fill&&t.attributeState.fill instanceof b&&t.attributeState.fill.color.ok){var c=t.attributeState.fill.color;t.pdf.setTextColor(c.r,c.g,c.b)}t.attributeState.fontWeight===e.attributeState.fontWeight&&t.attributeState.fontStyle===e.attributeState.fontStyle||(s=$(t.attributeState.fontStyle,t.attributeState.fontWeight)),void 0===a&&void 0===s||(void 0===a&&(a=Y.hasOwnProperty(t.attributeState.fontFamily)?Y[t.attributeState.fontFamily]:t.attributeState.fontFamily),t.pdf.setFont(a,s)),t.attributeState.fontSize!==e.attributeState.fontSize&&t.pdf.setFontSize(t.attributeState.fontSize*t.pdf.internal.scaleFactor)}function tc(t,e,r){var i=q.exec(t);if(i){var n=i[1];return r.refsHandler.get(n)||void 0}}function tf(t,e,r){return g(this,void 0,void 0,function(){var i,n;return m(this,function(a){switch(a.label){case 0:return i=r.clone(),e.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===e.element.getAttribute("clipPathUnits").toLowerCase()&&(n=t.getBoundingBox(r),i.transform=r.pdf.matrixMult(r.pdf.Matrix(n[2],0,0,n[3],n[0],n[1]),r.transform)),[4,e.apply(i)];case 1:return a.sent(),[2]}})})}var tp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t){return g(this,void 0,void 0,function(){var e,r,i,n;return m(this,function(a){switch(a.label){case 0:return this.isVisible("hidden"!==t.attributeState.visibility,t)?((e=t.clone()).transform=e.pdf.matrixMult(this.computeNodeTransform(e),t.transform),tu(e,this),(i=(r=_(this.element,e.styleSheets,"clip-path"))&&"none"!==r)?(n=tc(r,0,e))?n.isVisible(!0,e)?(e.pdf.saveGraphicsState(),[4,tf(this,n,e)]):[3,2]:[3,4]:[3,5]):[2];case 1:return a.sent(),[3,3];case 2:return[2];case 3:return[3,5];case 4:i=!1,a.label=5;case 5:return e.withinClipPath||e.pdf.saveGraphicsState(),th(e,t,this.element),[4,this.renderCore(e)];case 6:return a.sent(),e.withinClipPath||e.pdf.restoreGraphicsState(),i&&e.pdf.restoreGraphicsState(),[2]}})})},e}(te),td=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(tp),tg=function(t){function e(e,r,i){var n=t.call(this,r,i)||this;return n.cachedPath=null,n.hasMarkers=e,n}return p(e,t),e.prototype.renderCore=function(t){return g(this,void 0,void 0,function(){var e;return m(this,function(r){switch(r.label){case 0:return null===(e=this.getCachedPath(t))||0===e.segments.length?[2]:(t.withinClipPath?e.transform(t.transform):t.pdf.setCurrentTransformationMatrix(t.transform),e.draw(t),[4,this.fillOrStroke(t)]);case 1:return r.sent(),this.hasMarkers?[4,this.drawMarkers(t,e)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.getCachedPath=function(t){return this.cachedPath||(this.cachedPath=this.getPath(t))},e.prototype.drawMarkers=function(t,e){return g(this,void 0,void 0,function(){return m(this,function(r){switch(r.label){case 0:return[4,this.getMarkers(e,t).draw(t.clone({transform:t.pdf.unitMatrix}))];case 1:return r.sent(),[2]}})})},e.prototype.fillOrStroke=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a;return m(this,function(s){switch(s.label){case 0:return t.withinClipPath?[2]:(e=t.attributeState.fill,r=t.attributeState.stroke&&0!==t.attributeState.strokeWidth,e?[4,e.getFillData(this,t)]:[3,2]);case 1:return n=s.sent(),[3,3];case 2:n=void 0,s.label=3;case 3:return i=n,a="evenodd"===t.attributeState.fillRule,e&&r||t.withinUse?a?t.pdf.fillStrokeEvenOdd(i):t.pdf.fillStroke(i):e?a?t.pdf.fillEvenOdd(i):t.pdf.fill(i):r?t.pdf.stroke():t.pdf.discardPath(),[2]}})})},e.prototype.getBoundingBoxCore=function(t){var e=this.getCachedPath(t);if(!e||!e.segments.length)return[0,0,0,0];for(var r=1/0,i=1/0,n=-1/0,a=-1/0,s=0,o=0,l=0;l<e.segments.length;l++){var u=e.segments[l];(u instanceof B||u instanceof L||u instanceof E)&&(s=u.x,o=u.y),u instanceof E?(r=Math.min(r,s,u.x1,u.x2,u.x),n=Math.max(n,s,u.x1,u.x2,u.x),i=Math.min(i,o,u.y1,u.y2,u.y),a=Math.max(a,o,u.y1,u.y2,u.y)):(r=Math.min(r,s),n=Math.max(n,s),i=Math.min(i,o),a=Math.max(a,o))}return[r,i,n-r,a-i]},e.prototype.getMarkers=function(t,e){var r=_(this.element,e.styleSheets,"marker-start"),i=_(this.element,e.styleSheets,"marker-mid"),n=_(this.element,e.styleSheets,"marker-end"),a=new D;if(r||i||n){n&&(n=tm(n)),r&&(r=tm(r)),i&&(i=tm(i));for(var s=t.segments,o=[1,0],l=void 0,u=!1,h=[1,0],c=!1,f=function(t){var e=s[t],f=r&&(1===t||!(s[t]instanceof B)&&s[t-1]instanceof B);
1f&&s.forEach(function(e,r){if(!c&&e instanceof N&&r>t){var i=s[r-1];c=(i instanceof B||i instanceof L||i instanceof E)&&i}});var p=n&&(t===s.length-1||!(s[t]instanceof B)&&s[t+1]instanceof B),d=i&&t>0&&!(1===t&&s[t-1]instanceof B),g=s[t-1]||null;if(g instanceof B||g instanceof L||g instanceof E)if(e instanceof E)f&&a.addMarker(new I(r,[g.x,g.y],w(c?[c.x,c.y]:[g.x,g.y],[e.x1,e.y1]),!0)),p&&a.addMarker(new I(n,[e.x,e.y],w([e.x2,e.y2],[e.x,e.y]))),d&&(l=F([g.x,g.y],[e.x1,e.y1]),l=g instanceof B?l:C(A(o,l)),a.addMarker(new I(i,[g.x,g.y],Math.atan2(l[1],l[0])))),o=F([e.x2,e.y2],[e.x,e.y]);else if(e instanceof B||e instanceof L){if(l=F([g.x,g.y],[e.x,e.y]),f){var m=c?F([c.x,c.y],[e.x,e.y]):l;a.addMarker(new I(r,[g.x,g.y],Math.atan2(m[1],m[0]),!0))}p&&a.addMarker(new I(n,[e.x,e.y],Math.atan2(l[1],l[0]))),d&&(m=e instanceof B?o:g instanceof B?l:C(A(o,l)),a.addMarker(new I(i,[g.x,g.y],Math.atan2(m[1],m[0])))),o=l}else e instanceof N&&(l=F([g.x,g.y],[u.x,u.y]),d&&(m=g instanceof B?l:C(A(o,l)),a.addMarker(new I(i,[g.x,g.y],Math.atan2(m[1],m[0])))),p&&(m=C(A(l,h)),a.addMarker(new I(n,[u.x,u.y],Math.atan2(m[1],m[0])))),o=l);else{u=e instanceof B&&e;var y=s[t+1];(y instanceof B||y instanceof L||y instanceof E)&&(h=F([u.x,u.y],[y.x,y.y]))}},p=0;p<s.length;p++)f(p)}return a.markers.forEach(function(t){var r=e.refsHandler.get(t.id);if(r){var i=_(r.element,e.styleSheets,"orient");null!=i&&(t.isStartMarker&&"auto-start-reverse"===i&&(t.angle+=Math.PI),isNaN(Number(i))||(t.angle=parseFloat(i)/180*Math.PI))}}),a},e}(td);function tm(t){var e=q.exec(t);return e&&e[1]||void 0}var ty=function(t){function e(e,r){return t.call(this,!0,e,r)||this}return p(e,t),e.prototype.getPath=function(t){if(t.withinClipPath||null===t.attributeState.stroke)return null;var e=parseFloat(this.element.getAttribute("x1")||"0"),r=parseFloat(this.element.getAttribute("y1")||"0"),i=parseFloat(this.element.getAttribute("x2")||"0"),n=parseFloat(this.element.getAttribute("y2")||"0");return e||i||r||n?(new P).moveTo(e,r).lineTo(i,n):null},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return H(this,t,e)},e.prototype.fillOrStroke=function(e){return g(this,void 0,void 0,function(){return m(this,function(r){switch(r.label){case 0:return e.attributeState.fill=null,[4,t.prototype.fillOrStroke.call(this,e)];case 1:return r.sent(),[2]}})})},e}(tg),tb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.apply=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a;return m(this,function(s){switch(s.label){case 0:return this.isVisible("hidden"!==t.attributeState.visibility,t)?((e=t.clone()).transform=e.pdf.unitMatrix,tu(e,this),(r=_(this.element,e.styleSheets,"clip-path"))&&"none"!==r&&(i=tc(r,0,e))?i.isVisible(!0,e)?[4,tf(this,i,e)]:[3,2]:[3,3]):[2];case 1:return s.sent(),[3,3];case 2:return[2];case 3:th(e,t,this.element),n=0,a=this.children,s.label=4;case 4:return n<a.length?[4,a[n].render(e)]:[3,7];case 5:s.sent(),s.label=6;case 6:return n++,[3,4];case 7:return[2]}})})},e.prototype.getBoundingBoxCore=function(t){return K(t,this)},e.prototype.isVisible=function(t,e){return R(this,t,e)},e.prototype.computeNodeTransformCore=function(t){var e=parseFloat(_(this.element,t.styleSheets,"x")||"0"),r=parseFloat(_(this.element,t.styleSheets,"y")||"0"),i=this.element.getAttribute("viewBox");if(i){var n=U(i),a=parseFloat(_(this.element,t.styleSheets,"width")||_(this.element.ownerSVGElement,t.styleSheets,"width")||i[2]),s=parseFloat(_(this.element,t.styleSheets,"height")||_(this.element.ownerSVGElement,t.styleSheets,"height")||i[3]);return J(this.element,n,e,r,a,s,t)}return t.pdf.Matrix(1,0,0,1,e,r)},e}(tr),tv=function(t,e){this.width=t,this.height=e},tx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.renderCore=function(t){return g(this,void 0,void 0,function(){var r,i,n,a,s,o,l,u,h,c,f,p,d;return m(this,function(g){switch(g.label){case 0:return r=parseFloat,(i=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(n=i.substring(1),s=O((a=t.refsHandler.get(n)).element,"symbol,svg")&&a.element.hasAttribute("viewBox"),o=r(_(this.element,t.styleSheets,"x")||"0"),l=r(_(this.element,t.styleSheets,"y")||"0"),u=void 0,h=void 0,s?(u=r(_(this.element,t.styleSheets,"width")||_(a.element,t.styleSheets,"width")||"0"),h=r(_(this.element,t.styleSheets,"he
1ight")||_(a.element,t.styleSheets,"height")||"0"),o+=r(_(a.element,t.styleSheets,"x")||"0"),l+=r(_(a.element,t.styleSheets,"y")||"0"),f=U(a.element.getAttribute("viewBox")),c=J(a.element,f,o,l,u,h,t)):c=t.pdf.Matrix(1,0,0,1,o,l),p=v.getContextColors(t,!0),d=new x(t.pdf,{refsHandler:t.refsHandler,styleSheets:t.styleSheets,withinUse:!0,viewport:s?new tv(u,h):t.viewport,svg2pdfParameters:t.svg2pdfParameters,textMeasure:t.textMeasure,attributeState:Object.assign(v.default(),p)}),[4,t.refsHandler.getRendered(n,p,function(t){return e.renderReferencedNode(t,n,d)})]):[2];case 1:return g.sent(),t.pdf.saveGraphicsState(),t.pdf.setCurrentTransformationMatrix(t.transform),s&&"visible"!==_(a.element,t.styleSheets,"overflow")&&(t.pdf.rect(o,l,u,h),t.pdf.clip().discardPath()),t.pdf.doFormObject(t.refsHandler.generateKey(n,p),c),t.pdf.restoreGraphicsState(),[2]}})})},e.renderReferencedNode=function(t,e,r){return g(this,void 0,void 0,function(){var i;return m(this,function(n){switch(n.label){case 0:return i=[(i=t.getBoundingBox(r))[0]-.5*i[2],i[1]-.5*i[3],2*i[2],2*i[3]],r.pdf.beginFormObject(i[0],i[1],i[2],i[3],r.pdf.unitMatrix),t instanceof tb?[4,t.apply(r)]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,t.render(r)];case 3:n.sent(),n.label=4;case 4:return r.pdf.endFormObject(r.refsHandler.generateKey(e,r.attributeState)),[2]}})})},e.prototype.getBoundingBoxCore=function(t){return Z(this.element,t)},e.prototype.isVisible=function(t,e){return H(this,t,e)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e}(td),tS=function(t){function e(e,r){return t.call(this,!1,e,r)||this}return p(e,t),e.prototype.getPath=function(t){var e=parseFloat(_(this.element,t.styleSheets,"width")||"0"),r=parseFloat(_(this.element,t.styleSheets,"height")||"0");if(!isFinite(e)||e<=0||!isFinite(r)||r<=0)return null;var i=_(this.element,t.styleSheets,"rx"),n=_(this.element,t.styleSheets,"ry"),a=Math.min(parseFloat(i||n||"0"),.5*e),s=Math.min(parseFloat(n||i||"0"),.5*r),o=parseFloat(_(this.element,t.styleSheets,"x")||"0"),l=parseFloat(_(this.element,t.styleSheets,"y")||"0"),u=4/3*(Math.SQRT2-1);return 0===a&&0===s?(new P).moveTo(o,l).lineTo(o+e,l).lineTo(o+e,l+r).lineTo(o,l+r).close():(new P).moveTo(o+=a,l).lineTo(o+=e-2*a,l).curveTo(o+a*u,l,o+a,l+(s-s*u),o+=a,l+=s).lineTo(o,l+=r-2*s).curveTo(o,l+s*u,o-a*u,l+s,o-=a,l+=s).lineTo(o+=2*a-e,l).curveTo(o-a*u,l,o-a,l-s*u,o-=a,l-=s).lineTo(o,l+=2*s-r).curveTo(o,l-s*u,o+a*u,l-s,o+=a,l-=s).close()},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return H(this,t,e)},e}(tg),tw=function(t){function e(e,r){return t.call(this,!1,e,r)||this}return p(e,t),e.prototype.getPath=function(t){var e=this.getRx(t),r=this.getRy(t);if(!isFinite(e)||r<=0||!isFinite(r)||r<=0)return null;var i=parseFloat(_(this.element,t.styleSheets,"cx")||"0"),n=parseFloat(_(this.element,t.styleSheets,"cy")||"0"),a=4/3*(Math.SQRT2-1)*e,s=4/3*(Math.SQRT2-1)*r;return(new P).moveTo(i+e,n).curveTo(i+e,n-s,i+a,n-r,i,n-r).curveTo(i-a,n-r,i-e,n-s,i-e,n).curveTo(i-e,n+s,i-a,n+r,i,n+r).curveTo(i+a,n+r,i+e,n+s,i+e,n)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return H(this,t,e)},e}(tg),tk=function(t){function e(e,r){return t.call(this,e,r)||this}return p(e,t),e.prototype.getRx=function(t){return parseFloat(_(this.element,t.styleSheets,"rx")||"0")},e.prototype.getRy=function(t){return parseFloat(_(this.element,t.styleSheets,"ry")||"0")},e}(tw);function tM(t){var e="invisible",r=t.stroke&&0!==t.strokeWidth,i=t.fill;return i&&r?e="fillThenStroke":i?e="fill":r&&(e="stroke"),e}function tC(t){return t.replace(/[\n\r]/g,"")}function tF(t){return t.replace(/[\t]/g," ")}function tA(t){return t.replace(/ +/g," ")}function tT(t,e,r){switch(_(t,r.styleSheets,"text-transform")){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();default:return e}}var tP=function(){function t(t,e,r,i){this.textNode=t,this.texts=[],this.textNodes=[],this.contexts=[],this.textAnchor=e,this.originX=r,this.originY=i,this.textMeasures=[]}return t.prototype.setX=function(t){this.originX=t},t.prototype.setY=function(t){this.originY=t},t.prototype.add=function(t,e,r){this.texts.push(e),this.textNodes.push(t),this.contexts.push(r)},t.prototype.rightTrimText=function(){for(var t=this.texts.length-1;t>=0;t--)if("preserve"===this.contexts[t].attributeState.xmlSpace||"pre"===this.contexts[t].attributeState.whiteSpace||(this.texts[t]=this.texts[t].replace(/\s+$/,"")),this.texts[t].match(/[^\s]/))return!1;return!0},t.prototype.measureText=function(t){for(var e=0;e<this.texts.length;e++)this.textMeasures.push({width:t.textMeasure.measureTextWidth(this.texts[e],this.contexts[e].attributeState),length:this.texts[e].length})},t.prototype.put=function(e,r){var i,n,a,s,o=[],l=[],u=[],h=this.originX,c=this.originY,f=h,p=h;for(i=0;i<this.textNodes.length;i++){n=this.textNodes[i],a=this.contexts[i],s=this.textMeasures[i]||{width:e.textMeasure.measureTextWidth(this.texts[i],this.contexts[i].attributeState),length:this.texts[i].length};var d=h,g=c;if("#text"!==n.nodeName&&!o.includes(n)){o.push(n);var m=t.resolveRelativePositionAttribute(n,"dx");null!==m&&(d+=W(m,a.attributeState.fontSize));var y=t.resolveRelativePositionAttribute(n,"dy");null!==y&&(g+=W(y,a.attributeState.fontSize))}l[i]=d,u[i]=g,h=d+s.width+s.length*r,c=g,f=Math.min(f,d),p=Math.max(p,h)}var b=0;switch(this.textAnchor){case"start":b=0;break;case"middle":b=(p-f)/2;break;case"end":b=p-f}for(i=0;i<this.textNodes.length;i++)if(n=this.textNodes[i],a=this.contexts[i],"#text"===n.nodeName||"hidden"
1!==a.attributeState.visibility){e.pdf.saveGraphicsState(),th(a,e,n);var v=a.attributeState.alignmentBaseline,x=tM(a.attributeState);e.pdf.text(this.texts[i],l[i]-b,u[i],{baseline:G(v),angle:e.transform,renderingMode:"fill"===x?void 0:x,charSpace:0===r?void 0:r}),e.pdf.restoreGraphicsState()}return[h,c]},t.resolveRelativePositionAttribute=function(t,e){for(var r,i=t;i&&O(i,"tspan");){if(i.hasAttribute(e))return i.getAttribute(e);if((null==(r=t.parentElement)?void 0:r.firstChild)!==t)break;i=i.parentElement}return null},t}(),tB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.boundingBox=[],e}return p(e,t),e.prototype.processTSpans=function(t,e,r,i,n,a){for(var s=r.pdf.getFontSize(),o="preserve"===r.attributeState.xmlSpace||"pre"===r.attributeState.whiteSpace,l=!0,u=!1,h=0;h<e.childNodes.length;h++){var c=e.childNodes[h];if(c.textContent){var f=c.textContent;if("#text"===c.nodeName){var p=tC(f);p=tF(p),o||(p=tA(p),l&&p.match(/^\s/)&&(u=!0),p.match(/[^\s]/)&&(l=!1),a.prevText.match(/\s$/)&&(p=p.replace(/^\s+/,"")));var d=tT(e,p,r);n.add(e,d,r),a.prevText=f,a.prevContext=r}else if(O(c,"title"));else if(O(c,"tspan")){var g=c.getAttribute("x");if(null!==g){var m=W(g,s);n=new tP(this,_(c,r.styleSheets,"text-anchor")||r.attributeState.textAnchor,m,0),i.push({type:"y",chunk:n})}var y=c.getAttribute("y");if(null!==y){var b=W(y,s);n=new tP(this,_(c,r.styleSheets,"text-anchor")||r.attributeState.textAnchor,0,b),i.push({type:"x",chunk:n})}var v=r.clone();tu(v,t,c),this.processTSpans(t,c,v,i,n,a)}}}return u},e.prototype.renderCore=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a,s,o,l,u,h,c,f,p,d,g,y,b,v,x,S,w,k;return m(this,function(m){if(t.pdf.saveGraphicsState(),e=0,r=0,i=1,n=t.pdf.getFontSize(),a=W(this.element.getAttribute("x"),n),s=W(this.element.getAttribute("y"),n),o=W(this.element.getAttribute("dx"),n),l=W(this.element.getAttribute("dy"),n),u=parseFloat(this.element.getAttribute("textLength")||"0"),h=t.attributeState.visibility,0===this.element.childElementCount){var M,C;M=c=this.element.textContent||"",C=t.attributeState,M=tF(M=tC(M)),"preserve"===C.xmlSpace||"pre"===C.whiteSpace||(M=tA(M=M.trim())),f=M,p=tT(this.element,f,t),e=t.textMeasure.getTextOffset(p,t.attributeState),u>0&&(d=t.textMeasure.measureTextWidth(p,t.attributeState),"preserve"!==t.attributeState.xmlSpace&&"pre"!==t.attributeState.whiteSpace&&c.match(/^\s/)&&(i=0),r=(u-d)/(p.length-i)||0),"visible"===h&&(g=t.attributeState.alignmentBaseline,y=tM(t.attributeState),t.pdf.text(p,a+o-e,s+l,{baseline:G(g),angle:t.transform,renderingMode:"fill"===y?void 0:y,charSpace:0===r?void 0:r}),this.boundingBox=[a+o-e,s+l+.1*n,t.textMeasure.measureTextWidth(p,t.attributeState),n])}else{for(b=[],v=new tP(this,t.attributeState.textAnchor,a+o,s+l),b.push({type:"",chunk:v}),i=+!this.processTSpans(this,this.element,t,b,v,{prevText:" ",prevContext:t}),x=!0,S=b.length-1;S>=0;S--)x&&(x=b[S].chunk.rightTrimText());u>0&&(w=0,k=0,b.forEach(function(e){var r=e.chunk;r.measureText(t),r.textMeasures.forEach(function(t){var e=t.width,r=t.length;w+=e,k+=r})}),r=(u-w)/(k-i)),b.reduce(function(e,i){var n=i.type,a=i.chunk;return"x"===n?a.setX(e[0]):"y"===n&&a.setY(e[1]),a.put(t,r)},[0,0])}return t.pdf.restoreGraphicsState(),[2]})})},e.prototype.isVisible=function(t,e){return R(this,t,e)},e.prototype.getBoundingBoxCore=function(t){return this.boundingBox.length>0?this.boundingBox:Z(this.element,t)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e}(td),tL=function(t){function e(e,r){return t.call(this,!0,e,r)||this}return p(e,t),e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return H(this,t,e)},e.prototype.getPath=function(t){var e,r,i=new(u())(_(this.element,t.styleSheets,"d")||"").unshort().unarc().abs(),n=new P;return i.iterate(function(t){switch(t[0]){case"M":n.moveTo(t[1],t[2]);break;case"L":n.lineTo(t[1],t[2]);break;case"H":n.lineTo(t[1],r);break;case"V":n.lineTo(e,t[1]);break;case"C":n.curveTo(t[1],t[2],t[3],t[4],t[5],t[6]);break;case"Q":var i=M([e,r],[t[1],t[2]]),a=M([t[3],t[4]],[t[1],t[2]]);n.curveTo(i[0],i[1],a[0],a[1],t[3],t[4]);break;case"Z":n.close()}switch(t[0]){case"M":case"L":e=t[1],r=t[2];break;case"H":e=t[1];break;case"V":r=t[1];break;
1case"C":e=t[5],r=t[6];break;case"Q":e=t[3],r=t[4]}}),n},e}(tg),tE=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,((?:.|\s)*)$/i,tN=function(t){function e(r,i){var n=t.call(this,r,i)||this;return n.imageLoadingPromise=null,n.imageUrl=n.element.getAttribute("xlink:href")||n.element.getAttribute("href"),n.imageUrl&&(n.imageLoadingPromise=e.fetchImageData(n.imageUrl)),n}return p(e,t),e.prototype.renderCore=function(t){return g(this,void 0,void 0,function(){var r,i,n,a,s,o,l,u,h,c,f,p,d,g,y,b,v;return m(this,function(m){switch(m.label){case 0:return this.imageLoadingPromise?(t.pdf.setCurrentTransformationMatrix(t.transform),r=parseFloat(_(this.element,t.styleSheets,"width")||"0"),i=parseFloat(_(this.element,t.styleSheets,"height")||"0"),n=parseFloat(_(this.element,t.styleSheets,"x")||"0"),a=parseFloat(_(this.element,t.styleSheets,"y")||"0"),!isFinite(r)||r<=0||!isFinite(i)||i<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return o=(s=m.sent()).data,0!==(l=s.format).indexOf("svg")?[3,3]:(u=(new DOMParser).parseFromString(o,"image/svg+xml").firstElementChild,!(!(h=this.element.getAttribute("preserveAspectRatio"))||0>h.indexOf("defer"))&&u.getAttribute("preserveAspectRatio")||u.setAttribute("preserveAspectRatio",h||""),u.setAttribute("x",String(n)),u.setAttribute("y",String(a)),u.setAttribute("width",String(r)),u.setAttribute("height",String(i)),[4,tU(u,c={}).render(new x(t.pdf,{refsHandler:new S(c),styleSheets:t.styleSheets,viewport:new tv(r,i),svg2pdfParameters:t.svg2pdfParameters,textMeasure:t.textMeasure}))]);case 2:return m.sent(),[2];case 3:f="data:image/".concat(l,";base64,").concat(btoa(o)),m.label=4;case 4:return m.trys.push([4,6,,7]),[4,e.getImageDimensions(f)];case 5:return y=[0,0,d=(p=m.sent())[0],g=p[1]],b=J(this.element,y,n,a,r,i,t),t.pdf.setCurrentTransformationMatrix(b),t.pdf.addImage(f,"",0,0,d,g),[3,7];case 6:return v=m.sent(),"object"==typeof console&&console.warn&&console.warn("Could not load image ".concat(this.imageUrl,". \n").concat(v)),[3,7];case 7:return[2]}})})},e.prototype.getBoundingBoxCore=function(t){return Z(this.element,t)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return H(this,t,e)},e.fetchImageData=function(t){return g(this,void 0,void 0,function(){var r,i,n,a;return m(this,function(s){switch(s.label){case 0:if(!(n=t.match(tE)))return[3,1];if("image"!==(a=n[2].split("/"))[0])throw Error("Unsupported image URL: ".concat(t));return i=a[1],r=n[5],r="base64"===n[4]?atob(r=r.replace(/\s/g,"")):decodeURIComponent(r),[3,3];case 1:return[4,e.fetchImage(t)];case 2:r=s.sent(),i=t.substring(t.lastIndexOf(".")+1),s.label=3;case 3:return[2,{data:r,format:i}]}})})},e.fetchImage=function(t){return new Promise(function(e,r){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="arraybuffer",i.onload=function(){if(200!==i.status)throw Error("Error ".concat(i.status,": Failed to load image '").concat(t,"'"));for(var r=new Uint8Array(i.response),n="",a=0;a<r.length;a++)n+=String.fromCharCode(r[a]);e(n)},i.onerror=r,i.onabort=r,i.send(null)})},e.getMimeType=function(t){switch(t=t.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/".concat(t)}},e.getImageDimensions=function(t){return new Promise(function(e,r){var i=new Image;i.onload=function(){e([i.width,i.height])},i.onerror=r,i.src=t})},e}(td),tO=function(t){function e(e,r,i){var n=t.call(this,!0,r,i)||this;return n.closed=e,n}return p(e,t),e.prototype.getPath=function(t){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var r=e.parsePointsString(this.element.getAttribute("points")),i=new P;if(r.length<1)return i;i.moveTo(r[0][0],r[0][1]);for(var n=1;n<r.length;n++)i.lineTo(r[n][0],r[n][1]);return this.closed&&i.close(),i},e.prototype.isVisible=function(t,e){return H(this,t,e)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.parsePointsString=function(t){for(var e=U(t),r=[],i=0;i<e.length-1;i+=2){var n=e[i],a=e[i+1];r.push([n,a])}return r},e}(tg),t_=function(t){function e(e,r){return t.call(this,!0,e,r)||this}return p(e,t),e}(tO),tH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t){return Promise.resolve()},e.prototype.getBoundingBoxCore=function(t){return[0,0,0,0]},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e.prototype.isVisible=function(t,e){return H(this,t,e)},e}(te),tR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.apply=function(t){return g(this,void 0,void 0,function(){var e,r,i,n,a,s;return m(this,function(l){switch(l.label){case 0:e=this.computeNodeTransform(t),r=this.getBoundingBox(t),t.pdf.beginFormObject(r[0],r[1],r[2],r[3],e),i=v.getContextColors(t),function(t){var e,r=t.attributeState,i=t.pdf,n=1;e=+(r.fillOpacity*r.opacity),r.fill instanceof b&&void 0!==r.fill.color.a&&(e*=r.fill.color.a),n*=r.strokeOpacity*r.opacity,r.stroke instanceof b&&void 0!==r.stroke.color.a&&(n*=r.stroke.color.a);var a,s={};
vendor: 4,269 bytes, line 1
1if(s.opacity=e,s["stroke-opacity"]=n,i.setGState(new o.GState(s)),r.fill&&r.fill instanceof b&&r.fill.color.ok?i.setFillColor(r.fill.color.r,r.fill.color.g,r.fill.color.b):i.setFillColor(0,0,0),i.setLineWidth(r.strokeWidth),r.stroke instanceof b?i.setDrawColor(r.stroke.color.r,r.stroke.color.g,r.stroke.color.b):i.setDrawColor(0,0,0),i.setLineCap(r.strokeLinecap),i.setLineJoin(r.strokeLinejoin),r.strokeDasharray?i.setLineDashPattern(r.strokeDasharray,r.strokeDashoffset):i.setLineDashPattern([],0),i.setLineMiterLimit(r.strokeMiterlimit),a=Y.hasOwnProperty(r.fontFamily)?Y[r.fontFamily]:r.fontFamily,r.fill&&r.fill instanceof b&&r.fill.color.ok){var l=r.fill.color;i.setTextColor(l.r,l.g,l.b)}else i.setTextColor(0,0,0);var u="";"bold"===r.fontWeight&&(u="bold"),"italic"===r.fontStyle&&(u+="italic"),""===u&&(u="normal"),void 0!==a||void 0!==u?(void 0===a&&(a=Y.hasOwnProperty(r.fontFamily)?Y[r.fontFamily]:r.fontFamily),i.setFont(a,u)):i.setFont("helvetica",u),i.setFontSize(r.fontSize*i.internal.scaleFactor)}(n=new x(t.pdf,{refsHandler:t.refsHandler,styleSheets:t.styleSheets,viewport:t.viewport,svg2pdfParameters:t.svg2pdfParameters,textMeasure:t.textMeasure,attributeState:Object.assign(v.default(),i)})),a=0,s=this.children,l.label=1;case 1:return a<s.length?[4,s[a].render(n)]:[3,4];case 2:l.sent(),l.label=3;case 3:return a++,[3,1];case 4:return t.pdf.endFormObject(n.refsHandler.generateKey(this.element.getAttribute("id"),i)),[2]}})})},e.prototype.getBoundingBoxCore=function(t){var e,r=this.element.getAttribute("viewBox");return r&&(e=U(r)),[e&&e[0]||0,e&&e[1]||0,e&&e[2]||parseFloat(this.element.getAttribute("markerWidth")||"3"),e&&e[3]||parseFloat(this.element.getAttribute("markerHeight")||"3")]},e.prototype.computeNodeTransformCore=function(t){var e,r=parseFloat(this.element.getAttribute("refX")||"0"),i=parseFloat(this.element.getAttribute("refY")||"0"),n=this.element.getAttribute("viewBox");if(n){var a=U(n);e=J(this.element,a,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),t,!0),e=t.pdf.matrixMult(t.pdf.Matrix(1,0,0,1,-r,-i),e)}else e=t.pdf.Matrix(1,0,0,1,-r,-i);return e},e.prototype.isVisible=function(t,e){return R(this,t,e)},e}(tr),tD=function(t){function e(e,r){return t.call(this,e,r)||this}return p(e,t),e.prototype.getR=function(t){var e;return null!=(e=this.r)?e:this.r=parseFloat(_(this.element,t.styleSheets,"r")||"0")},e.prototype.getRx=function(t){return this.getR(t)},e.prototype.getRy=function(t){return this.getR(t)},e}(tw),tI=function(t){function e(e,r){return t.call(this,!1,e,r)||this}return p(e,t),e}(tO),tq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.renderCore=function(t){return g(this,void 0,void 0,function(){var e,r;return m(this,function(i){switch(i.label){case 0:e=0,r=this.children,i.label=1;case 1:return e<r.length?[4,r[e].render(t)]:[3,4];case 2:i.sent(),i.label=3;case 3:return e++,[3,1];case 4:return[2]}})})},e.prototype.getBoundingBoxCore=function(t){return K(t,this)},e}(tp),tj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.isVisible=function(t,e){return R(this,t,e)},e.prototype.render=function(e){return g(this,void 0,void 0,function(){var r,i,n,a,s;return m(this,function(o){switch(o.label){case 0:return this.isVisible("hidden"!==e.attributeState.visibility,e)?(r=this.getX(e),i=this.getY(e),n=this.getWidth(e),a=this.getHeight(e),e.pdf.saveGraphicsState(),s=e.transform,this.element.hasAttribute("transform")&&(s=e.pdf.matrixMult(tt(this.element.getAttribute("transform"),e),s)),e.pdf.setCurrentTransformationMatrix(s),e.withinUse||"visible"===_(this.element,e.styleSheets,"overflow")||e.pdf.rect(r,i,n,a).clip().discardPath(),[4,t.prototype.render.call(this,e.clone({transform:e.pdf.unitMatrix,viewport:e.withinUse?e.viewport:new tv(n,a)}))]):[2];case 1:return o.sent(),e.pdf.restoreGraphicsState(),[2]}})})},e.prototype.computeNodeTransform=function(t){return this.computeNodeTransformCore(t)},e.prototype.computeNodeTransformCore=function(t){if(t.withinUse)return t.pdf.unitMatrix;var e,r=this.getX(t),i=this.getY(t),n=this.getViewBox();if(n){var a=this.getWidth(t),s=this.getHeight(t);e=J(this.element,n,r,i,a,s,t)}
vendor: 4,298 bytes, line 1
1else e=t.pdf.Matrix(1,0,0,1,r,i);return e},e.prototype.getWidth=function(t){if(void 0!==this.width)return this.width;var e,r,i=t.svg2pdfParameters;if(this.isOutermostSvg(t))if(null!=i.width)e=i.width;else if(r=_(this.element,t.styleSheets,"width"))e=parseFloat(r);else{var n=this.getViewBox();if(n&&(null!=i.height||_(this.element,t.styleSheets,"height"))){var a=n[2]/n[3];e=this.getHeight(t)*a}else e=Math.min(300,t.viewport.width,2*t.viewport.height)}else e=(r=_(this.element,t.styleSheets,"width"))?parseFloat(r):t.viewport.width;return this.width=e},e.prototype.getHeight=function(t){if(void 0!==this.height)return this.height;var e,r,i=t.svg2pdfParameters;if(this.isOutermostSvg(t))if(null!=i.height)e=i.height;else if(r=_(this.element,t.styleSheets,"height"))e=parseFloat(r);else{var n=this.getViewBox();if(n){var a=n[2]/n[3];e=this.getWidth(t)/a}else e=Math.min(150,t.viewport.width/2,t.viewport.height)}else e=(r=_(this.element,t.styleSheets,"height"))?parseFloat(r):t.viewport.height;return this.height=e},e.prototype.getX=function(t){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(t))return this.x=0;var e=_(this.element,t.styleSheets,"x");return this.x=e?parseFloat(e):0},e.prototype.getY=function(t){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(t))return this.y=0;var e=_(this.element,t.styleSheets,"y");return this.y=e?parseFloat(e):0},e.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var t=this.element.getAttribute("viewBox");return this.viewBox=t?U(t):void 0},e.prototype.isOutermostSvg=function(t){return t.svg2pdfParameters.element===this.element},e}(tq),tV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.isVisible=function(t,e){return R(this,t,e)},e.prototype.computeNodeTransformCore=function(t){return t.pdf.unitMatrix},e}(tq),tW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.renderCore=function(e){return g(this,void 0,void 0,function(){var r,i,n,a;return m(this,function(s){switch(s.label){case 0:return[4,t.prototype.renderCore.call(this,e)];case 1:return s.sent(),(r=_(this.element,e.styleSheets,"href"))&&(i=this.getBoundingBox(e),n=e.pdf.internal.scaleFactor,a=e.pdf.internal.pageSize.getHeight(),e.pdf.link(n*(i[0]*e.transform.sx+e.transform.tx),a-n*(i[1]*e.transform.sy+e.transform.ty),n*i[2],n*i[3],{url:r})),[2]}})})},e}(tV),tG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.apply=function(t){return g(this,void 0,void 0,function(){var e,r,i,n;return m(this,function(a){switch(a.label){case 0:if(!this.isVisible(!0,t))return[2];e=t.pdf.matrixMult(this.computeNodeTransform(t),t.transform),t.pdf.setCurrentTransformationMatrix(e),r=0,i=this.children,a.label=1;case 1:return r<i.length?[4,i[r].render(new x(t.pdf,{refsHandler:t.refsHandler,styleSheets:t.styleSheets,viewport:t.viewport,withinClipPath:!0,svg2pdfParameters:t.svg2pdfParameters,textMeasure:t.textMeasure}))]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return n=this.children.length>0&&_(this.children[0].element,t.styleSheets,"clip-rule")?this.getClipRuleAttr(this.children[0].element,t.styleSheets):this.getClipRuleAttr(this.element,t.styleSheets),t.pdf.clip(n).discardPath(),t.pdf.setCurrentTransformationMatrix(e.inversed()),[2]}})})},e.prototype.getBoundingBoxCore=function(t){return K(t,this)},e.prototype.isVisible=function(t,e){return R(this,t,e)},e.prototype.getClipRuleAttr=function(t,e){return"evenodd"===_(t,e,"clip-rule")?"evenodd":void 0},e}(tr);function tU(t,e){var r,i=[];switch(function(t,e){for(var r=[],i=0;i<t.childNodes.length;i++){var n=t.childNodes[i];"#"!==n.nodeName.charAt(0)&&r.push(n)}for(i=0;i<r.length;i++)e(i,r[i])}(t,function(t,r){return i.push(tU(r,e))}),t.tagName.toLowerCase()){case"a":r=new tW(t,i);break;case"g":r=new tV(t,i);break;case"circle":r=new tD(t,i);break;case"clippath":r=new tG(t,i);break;case"ellipse":r=new tk(t,i);break;case"lineargradient":r=new tn(t,i);break;case"image":r=new tN(t,i);break;case"line":r=new ty(t,i);break;case"marker":r=new tR(t,i);break;case"path":r=new tL(t,i);break;case"pattern":r=new to(t,i);break;case"polygon":r=new t_(t,i);break;case"polyline":r=new tI(t,i);break;case"radialgradient":r=new ta(t,i);break;
1case"rect":r=new tS(t,i);break;case"svg":r=new tj(t,i);break;case"symbol":r=new tb(t,i);break;case"text":r=new tB(t,i);break;case"use":r=new tx(t,i);break;default:r=new tH(t,i)}if(null!=e&&r.element.hasAttribute("id")){var a=n()(r.element.id,{isIdentifier:!0});e[a]=e[a]||r}return r.children.forEach(function(t){return t.setParent(r)}),r}var tz=function(){function t(t,e){this.rootSvg=t,this.loadExternalSheets=e,this.styleSheets=[]}return t.prototype.load=function(){return g(this,void 0,void 0,function(){var t;return m(this,function(e){switch(e.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return t=e.sent(),this.parseCssSheets(t),[2]}})})},t.prototype.collectStyleSheetTexts=function(){return g(this,void 0,void 0,function(){var e,r,i,n,a;return m(this,function(s){switch(s.label){case 0:if(e=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(n=0;n<this.rootSvg.ownerDocument.childNodes.length;n++)"xml-stylesheet"===(r=this.rootSvg.ownerDocument.childNodes[n]).nodeName&&"string"==typeof r.data&&e.push(t.loadSheet(r.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(i=this.rootSvg.querySelectorAll("style,link"),n=0;n<i.length;n++)O(a=i[n],"style")?e.push(a.textContent):this.loadExternalSheets&&O(a,"link")&&"stylesheet"===a.getAttribute("rel")&&a.hasAttribute("href")&&e.push(t.loadSheet(a.getAttribute("href")));return[4,Promise.all(e)];case 1:return[2,s.sent().filter(function(t){return null!==t})]}})})},t.prototype.parseCssSheets=function(e){for(var r=document.implementation.createHTMLDocument(""),i=0;i<e.length;i++){var n=e[i],a=r.createElement("style");a.textContent=n,r.body.appendChild(a);var s=a.sheet;if(s instanceof CSSStyleSheet){for(var o=s.cssRules.length-1;o>=0;o--){var l=s.cssRules[o];if(l instanceof CSSStyleRule){if(l.selectorText.indexOf(",")>=0){s.deleteRule(o);for(var u=l.cssText.substring(l.selectorText.length),h=t.splitSelectorAtCommas(l.selectorText),c=0;c<h.length;c++)s.insertRule(h[c]+u,o+c)}}else s.deleteRule(o)}this.styleSheets.push(s)}}},t.splitSelectorAtCommas=function(t){for(var e,r=/,|["']/g,i=/[^\\]["]/g,n=/[^\\][']/g,a=[],s="initial",o=-1,l=i,u=0;u<t.length;)switch(s){case"initial":r.lastIndex=u,(e=r.exec(t))?(","===e[0]?(a.push(t.substring(o+1,r.lastIndex-1).trim()),o=r.lastIndex-1):(s="withinQuotes",l='"'===e[0]?i:n),u=r.lastIndex):(a.push(t.substring(o+1).trim()),u=t.length);break;case"withinQuotes":l.lastIndex=u,(e=l.exec(t))&&(u=l.lastIndex,s="initial")}return a},t.loadSheet=function(t){return new Promise(function(e,r){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="text",i.onload=function(){200!==i.status&&r(Error("Error ".concat(i.status,": Failed to load '").concat(t,"'"))),e(i.responseText)},i.onerror=r,i.onabort=r,i.send(null)}).catch(function(){return null})},t.prototype.getPropertyValue=function(t,e){for(var r=[],i=0,n=this.styleSheets;i<n.length;i++)for(var a=n[i],s=0;s<a.cssRules.length;s++){var o=a.cssRules[s];o.style.getPropertyValue(e)&&t.matches(o.selectorText)&&r.push(o)}if(0!==r.length)return r.reduce(function(t,r){var i;return 1===((i=t.style.getPropertyPriority(e))!==r.style.getPropertyPriority(e)?"important"===i?1:-1:c(t.selectorText,r.selectorText))?t:r}).style.getPropertyValue(e)||void 0},t}(),tX=function(){function t(){this.measureMethods={}}return t.prototype.getTextOffset=function(t,e){var r=e.textAnchor;if("start"===r)return 0;var i=this.measureTextWidth(t,e),n=0;switch(r){case"end":n=i;break;case"middle":n=i/2}return n},t.prototype.measureTextWidth=function(t,e){if(0===t.length)return 0;var r=e.fontFamily;return this.getMeasureFunction(r).call(this,t,e.fontFamily,e.fontSize+"px",e.fontStyle,e.fontWeight)},t.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS(V,"text");var t=document.createElementNS(V,"svg");t.appendChild(this.textMeasuringTextElement),t.style.setProperty("position","absolute"),t.style.setProperty("visibility","hidden"),document.body.appendChild(t)}return this.textMeasuringTextElement},t.prototype.canvasTextMeasure=function(t,e,r,i,n){var a=document.createElement("canvas").getContext("2d");return null!=a?(a.font=[i,n,r,e].join(" "),a.measureText(t).width):0},t.prototype.svgTextMeasure=function(t,e,r,i,n,a){void 0===a&&(a=this.getMeasurementTextNode());var s=a;return s.setAttribute("font-family",e),s.setAttribute("font-size",r),s.setAttribute("font-style",i),s.setAttribute("font-weight",n),s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.textContent=t,s.getBBox().width},t.prototype.getMeasureFunction=function(e){var r=this.measureMethods[e];if(!r){var i="16px",n="normal",a="normal";r=Math.abs(this.canvasTextMeasure(t.testString,e,i,n,a)-this.svgTextMeasure(t.testString,e,i,n,a))<t.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[e]=r}return r},t.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var t=this.textMeasuringTextElement.parentNode;t&&document.body.removeChild(t),this.textMeasuringTextElement=void 0}},t.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",t.epsilon=.1,t}();function tY(t,e){return g(this,arguments,void 0,function(t,e,r){var i,n,a,s,o,l,u,h,c,f,p,g,y,b;return void 0===r&&(r={}),m(this,function(m){switch(m.label){case 0:return i=null!=(g=r.x)?g:0,n=null!=(y=r.y)?y:0,a=null!=(b=r.loadExternalStyleSheets)&&b,o=new S(s={}),[4,(l=new tz(t,a)).load()];
1case 1:return m.sent(),u=new tv(e.internal.pageSize.getWidth(),e.internal.pageSize.getHeight()),h=d(d({},r),{element:t}),c=new tX,f=new x(e,{refsHandler:o,styleSheets:l,viewport:u,svg2pdfParameters:h,textMeasure:c}),e.advancedAPI(),e.saveGraphicsState(),e.setCurrentTransformationMatrix(e.Matrix(1,0,0,1,i,n)),e.setLineWidth(f.attributeState.strokeWidth),p=f.attributeState.fill.color,e.setFillColor(p.r,p.g,p.b),e.setFont(f.attributeState.fontFamily),e.setFontSize(f.attributeState.fontSize*e.internal.scaleFactor),[4,tU(t,s).render(f)];case 2:return m.sent(),e.restoreGraphicsState(),e.compatAPI(),f.textMeasure.cleanupTextMeasuring(),[2,e]}})})}o.jsPDF.API.svg=function(t,e){return void 0===e&&(e={}),tY(t,this,e)}},83534:t=>{"use strict";var e={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function i(t){return t>=48&&t<=57}function n(t){this.index=0,this.path=t,this.max=t.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function a(t){for(var e;t.index<t.max&&(10===(e=t.path.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0);)t.index++}function s(t){var r,i=(r=t.path[t.segmentStart]).toLowerCase(),n=t.data;if("m"===i&&n.length>2&&(t.result.push([r,n[0],n[1]]),n=n.slice(2),i="l",r="m"===r?"l":"L"),"r"===i)t.result.push([r].concat(n));else for(;n.length>=e[i]&&(t.result.push([r].concat(n.splice(0,e[i]))),e[i]););}t.exports=function(t){var r=new n(t),o=r.max;for(a(r);r.index<o&&!r.err.length;)!function(t){var r,n,o,l,u,h,c=t.max;if(t.segmentStart=t.index,o=(32|(n=t.path.charCodeAt(t.index)))==97,!function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(n)){t.err="SvgPath: bad command "+t.path[t.index]+" (at pos "+t.index+")";return}if(u=e[t.path[t.index].toLowerCase()],t.index++,a(t),t.data=[],!u)return s(t);for(l=!1;;){for(h=u;h>0;h--){if(o&&(3===h||4===h)?!function(t){var e=t.path.charCodeAt(t.index);if(48===e){t.param=0,t.index++;return}if(49===e){t.param=1,t.index++;return}t.err="SvgPath: arc flag can be 0 or 1 only (at pos "+t.index+")"}(t):!function(t){var e,r=t.index,n=r,a=t.max,s=!1,o=!1,l=!1,u=!1;if(n>=a){t.err="SvgPath: missed param (at pos "+n+")";return}if((43===(e=t.path.charCodeAt(n))||45===e)&&(e=++n<a?t.path.charCodeAt(n):0),!i(e)&&46!==e){t.err="SvgPath: param should start with 0..9 or `.` (at pos "+n+")";return}if(46!==e){if(s=48===e,e=++n<a?t.path.charCodeAt(n):0,s&&n<a&&e&&i(e)){t.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+r+")";return}for(;n<a&&i(t.path.charCodeAt(n));)n++,o=!0;e=n<a?t.path.charCodeAt(n):0}if(46===e){for(u=!0,n++;i(t.path.charCodeAt(n));)n++,l=!0;e=n<a?t.path.charCodeAt(n):0}if(101===e||69===e){if(u&&!o&&!l){t.err="SvgPath: invalid float exponent (at pos "+n+")";return}if((43===(e=++n<a?t.path.charCodeAt(n):0)||45===e)&&n++,n<a&&i(t.path.charCodeAt(n)))for(;n<a&&i(t.path.charCodeAt(n));)n++;else{t.err="SvgPath: invalid float exponent (at pos "+n+")";return}}t.index=n,t.param=parseFloat(t.path.slice(r,n))+0}(t),t.err.length)return void s(t);t.data.push(t.param),a(t),l=!1,t.index<c&&44===t.path.charCodeAt(t.index)&&(t.index++,a(t),l=!0)}if(!l&&(t.index>=t.max||!((r=t.path.charCodeAt(t.index))>=48&&r<=57||43===r||45===r||46===r)))break}s(t)}(r);return r.result.length&&(0>"mM".indexOf(r.result[0][0])?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.