ruru
Version:
Grafast-flavoured GraphiQL distribution
2 lines • 732 kB
JavaScript
/*! For license information please see 7367.js.LICENSE.txt */
export const __webpack_esm_id__=7367;export const __webpack_esm_ids__=[7367];export const __webpack_esm_modules__={25552(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},8041(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=void 0;var r=n(25552);function i(t){return t.replace(r.ctrlCharactersRegex,"").replace(r.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)})}function a(t){try{return decodeURIComponent(t)}catch(e){return t}}e.sanitizeUrl=function(t){if(!t)return r.BLANK_URL;var e,n=a(t.trim());do{e=(n=a(n=i(n).replace(r.htmlCtrlEntityRegex,"").replace(r.ctrlCharactersRegex,"").replace(r.whitespaceEscapeCharsRegex,"").trim())).match(r.ctrlCharactersRegex)||n.match(r.htmlEntitiesRegex)||n.match(r.htmlCtrlEntityRegex)||n.match(r.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var o=n;if(!o)return r.BLANK_URL;if(function(t){return r.relativeFirstCharacters.indexOf(t[0])>-1}(o))return o;var s=o.trimStart(),l=s.match(r.urlSchemeRegex);if(!l)return o;var c=l[0].toLowerCase().trim();if(r.invalidProtocolRegex.test(c))return r.BLANK_URL;var h=s.replace(/\\/g,"/");if("mailto:"===c||c.includes("://"))return h;if("http:"===c||"https:"===c){if(!function(t){return URL.canParse(t)}(h))return r.BLANK_URL;var u=new URL(h);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return h}},23464(t){t.exports=function(){var t=6e4,e=36e5,n="millisecond",r="second",i="minute",a="hour",o="day",s="week",l="month",c="quarter",h="year",u="date",f="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),a=n-i<0,o=e.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:s,d:o,D:u,h:a,m:i,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",x={};x[b]=g;var _="$isDayjsObject",v=function(t){return t instanceof S||!(!t||!t[_])},w=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var a=e.toLowerCase();x[a]&&(i=a),n&&(x[a]=n,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;x[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},C=y;C.l=w,C.i=v,C.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function g(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return C},m.isValid=function(){return!(this.$d.toString()===f)},m.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return k(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<k(t)},m.$g=function(t,e,n){return C.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,c=!!C.u(e)||e,f=C.p(t),d=function(t,e){var r=C.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return c?r:r.endOf(o)},p=function(t,e){return C.w(n.toDate()[t].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},g=this.$W,m=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case h:return c?d(1,0):d(31,11);case l:return c?d(1,m):d(0,m+1);case s:var x=this.$locale().weekStart||0,_=(g<x?g+7:g)-x;return d(c?y-_:y+(6-_),m);case o:case u:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case i:return p(b+"Seconds",2);case r:return p(b+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var s,c=C.p(t),f="set"+(this.$u?"UTC":""),d=(s={},s[o]=f+"Date",s[u]=f+"Date",s[l]=f+"Month",s[h]=f+"FullYear",s[a]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[c],p=c===o?this.$D+(e-this.$W):e;if(c===l||c===h){var g=this.clone().set(u,1);g.$d[d](p),g.init(),this.$d=g.set(u,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[C.p(t)]()},m.add=function(n,c){var u,f=this;n=Number(n);var d=C.p(c),p=function(t){var e=k(f);return C.w(e.date(e.date()+Math.round(t*n)),f)};if(d===l)return this.set(l,this.$M+n);if(d===h)return this.set(h,this.$y+n);if(d===o)return p(1);if(d===s)return p(7);var g=(u={},u[i]=t,u[a]=e,u[r]=1e3,u)[d]||1,m=this.$d.getTime()+n*g;return C.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,h=n.meridiem,u=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].slice(0,a)},d=function(t){return C.s(a%12||12,t,"0")},g=h||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(p,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return C.s(e.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return u(n.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return e.$D;case"DD":return C.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return u(n.weekdaysMin,e.$W,l,2);case"ddd":return u(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return C.s(a,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return C.s(o,2,"0");case"s":return String(e.$s);case"ss":return C.s(e.$s,2,"0");case"SSS":return C.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,u,f){var d,p=this,g=C.p(u),m=k(n),y=(m.utcOffset()-this.utcOffset())*t,b=this-m,x=function(){return C.m(p,m)};switch(g){case h:d=x()/12;break;case l:d=x();break;case c:d=x()/3;break;case s:d=(b-y)/6048e5;break;case o:d=(b-y)/864e5;break;case a:d=b/e;break;case i:d=b/t;break;case r:d=b/1e3;break;default:d=b}return f?d:C.a(d)},m.daysInMonth=function(){return this.endOf(l).$D},m.$locale=function(){return x[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return C.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),T=S.prototype;return k.prototype=T,[["$ms",n],["$s",r],["$m",i],["$H",a],["$W",o],["$M",l],["$y",h],["$D",u]].forEach(function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),k.extend=function(t,e){return t.$i||(t(e,S,k),t.$i=!0),k},k.locale=w,k.isDayjs=v,k.unix=function(t){return k(1e3*t)},k.en=x[b],k.Ls=x,k.p={},k}()},7083(t,e,n){function r(t,e,n){if(t&&t.length){const[r,i]=e,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(const e of t){const[t,n]=e;e[0]=(t-r)*o-(n-i)*s+r,e[1]=(t-r)*s+(n-i)*o+i}}}function i(t,e){return t[0]===e[0]&&t[1]===e[1]}function a(t,e,n,a=1){const o=n,s=Math.max(e,.1),l=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,c=[0,0];if(o)for(const t of l)r(t,c,o);const h=function(t,e,n){const r=[];for(const e of t){const t=[...e];i(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&r.push(t)}const a=[];e=Math.max(e,.1);const o=[];for(const t of r)for(let e=0;e<t.length-1;e++){const n=t[e],r=t[e+1];if(n[1]!==r[1]){const t=Math.min(n[1],r[1]);o.push({ymin:t,ymax:Math.max(n[1],r[1]),x:t===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!o.length)return a;let s=[],l=o[0].ymin,c=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>l);e++)t=e;o.splice(0,t+1).forEach(t=>{s.push({s:l,edge:t})})}if(s=s.filter(t=>!(t.edge.ymax<=l)),s.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==n||c%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const n=s[t].edge,r=s[e].edge;a.push([[Math.round(n.x),l],[Math.round(r.x),l]])}l+=n,s.forEach(t=>{t.edge.x=t.edge.x+n*t.edge.islope}),c++}return a}(l,s,a);if(o){for(const t of l)r(t,c,-o);!function(t,e,n){const i=[];t.forEach(t=>i.push(...t)),r(i,e,n)}(h,c,-o)}return h}function o(t,e){var n;const r=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=i),a(t,i,r,o||1)}n.r(e),n.d(e,{default:()=>it});class s{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=o(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const r of t)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],e));return n}}function l(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class c extends s{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const r=o(t,Object.assign({},e,{hachureGap:n})),i=Math.PI/180*e.hachureAngle,a=[],s=.5*n*Math.cos(i),c=.5*n*Math.sin(i);for(const[t,e]of r)l([t,e])&&a.push([[t[0]-s,t[1]+c],[...e]],[[t[0]+s,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(a,e)}}}class h extends s{fillPolygons(t,e){const n=this._fillPolygons(t,e),r=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,r);return n.ops=n.ops.concat(i.ops),n}}class u{constructor(t){this.helper=t}fillPolygons(t,e){const n=o(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);const a=r/4;for(const o of t){const t=l(o),s=t/r,c=Math.ceil(s)-1,h=t-c*r,u=(o[0][0]+o[1][0])/2-r/4,f=Math.min(o[0][1],o[1][1]);for(let t=0;t<c;t++){const o=f+h+t*r,s=u-a+2*Math.random()*a,l=o-a+2*Math.random()*a,c=this.helper.ellipse(s,l,i,i,e);n.push(...c.ops)}}return{type:"fillSketch",ops:n}}}class f{constructor(t){this.helper=t}fillPolygons(t,e){const n=o(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,r=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{const a=l(t),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2;let c=t[0],h=t[1];c[0]>h[0]&&(c=t[1],h=t[0]);const u=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let t=0;t<o;t++){const a=t*(n+r),o=a+n,l=[c[0]+a*Math.cos(u)+s*Math.cos(u),c[1]+a*Math.sin(u)+s*Math.sin(u)],h=[c[0]+o*Math.cos(u)+s*Math.cos(u),c[1]+o*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(l[0],l[1],h[0],h[1],e))}}),i}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,r=e.zigzagOffset<0?n:e.zigzagOffset,i=o(t,e=Object.assign({},e,{hachureGap:n+r}));return{type:"fillSketch",ops:this.zigzagLines(i,r,e)}}zigzagLines(t,e,n){const r=[];return t.forEach(t=>{const i=l(t),a=Math.round(i/(2*e));let o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);const c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let t=0;t<a;t++){const i=2*t*e,a=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),l=[o[0]+i*Math.cos(c),o[1]+i*Math.sin(c)],h=[o[0]+a*Math.cos(c),o[1]+a*Math.sin(c)],u=[l[0]+s*Math.cos(c+Math.PI/4),l[1]+s*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(l[0],l[1],u[0],u[1],n),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],n))}}),r}}const p={};class g{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const m={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function y(t,e){return t.type===e}function b(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let r="BOD",i=0,a=n[i];for(;!y(a,2);){let o=0;const s=[];if("BOD"===r){if("M"!==a.text&&"m"!==a.text)return b("M0,0"+t);i++,o=m[a.text],r=a.text}else y(a,1)?o=m[r]:(i++,o=m[a.text],r=a.text);if(!(i+o<n.length))throw new Error("Path data ended short");for(let t=i;t<i+o;t++){const e=n[t];if(!y(e,1))throw new Error("Param not a number: "+r+","+e.text);s[s.length]=+e.text}if("number"!=typeof m[r])throw new Error("Bad segment: "+r);{const t={key:r,data:s};e.push(t),i+=o,a=n[i],"M"===r&&(r="L"),"m"===r&&(r="l")}}return e}function x(t){let e=0,n=0,r=0,i=0;const a=[];for(const{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,n]=s,[r,i]=s;break;case"m":e+=s[0],n+=s[1],a.push({key:"M",data:[e,n]}),r=e,i=n;break;case"L":a.push({key:"L",data:[...s]}),[e,n]=s;break;case"l":e+=s[0],n+=s[1],a.push({key:"L",data:[e,n]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],n=s[5];break;case"c":{const t=s.map((t,r)=>r%2?t+n:t+e);a.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],n=s[3];break;case"q":{const t=s.map((t,r)=>r%2?t+n:t+e);a.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],n=s[6];break;case"a":e+=s[5],n+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,n]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),n=s[0];break;case"v":n+=s[0],a.push({key:"V",data:[n]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],n=s[3];break;case"s":{const t=s.map((t,r)=>r%2?t+n:t+e);a.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],n=s[1];break;case"t":e+=s[0],n+=s[1],a.push({key:"T",data:[e,n]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=r,n=i}return a}function _(t){const e=[];let n="",r=0,i=0,a=0,o=0,s=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[r,i]=h,[a,o]=h;break;case"C":e.push({key:"C",data:[...h]}),r=h[4],i=h[5],s=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[r,i]=h;break;case"H":r=h[0],e.push({key:"L",data:[r,i]});break;case"V":i=h[0],e.push({key:"L",data:[r,i]});break;case"S":{let t=0,a=0;"C"===n||"S"===n?(t=r+(r-s),a=i+(i-l)):(t=r,a=i),e.push({key:"C",data:[t,a,...h]}),s=h[0],l=h[1],r=h[2],i=h[3];break}case"T":{const[t,a]=h;let o=0,c=0;"Q"===n||"T"===n?(o=r+(r-s),c=i+(i-l)):(o=r,c=i);const u=r+2*(o-r)/3,f=i+2*(c-i)/3,d=t+2*(o-t)/3,p=a+2*(c-a)/3;e.push({key:"C",data:[u,f,d,p,t,a]}),s=o,l=c,r=t,i=a;break}case"Q":{const[t,n,a,o]=h,c=r+2*(t-r)/3,u=i+2*(n-i)/3,f=a+2*(t-a)/3,d=o+2*(n-o)/3;e.push({key:"C",data:[c,u,f,d,a,o]}),s=t,l=n,r=a,i=o;break}case"A":{const t=Math.abs(h[0]),n=Math.abs(h[1]),a=h[2],o=h[3],s=h[4],l=h[5],c=h[6];0===t||0===n?(e.push({key:"C",data:[r,i,l,c,l,c]}),r=l,i=c):r===l&&i===c||(w(r,i,l,c,t,n,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),r=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),r=a,i=o}n=c}return e}function v(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function w(t,e,n,r,i,a,o,s,l,c){const h=(u=o,Math.PI*u/180);var u;let f=[],d=0,p=0,g=0,m=0;if(c)[d,p,g,m]=c;else{[t,e]=v(t,e,-h),[n,r]=v(n,r,-h);const o=(t-n)/2,c=(e-r)/2;let u=o*o/(i*i)+c*c/(a*a);u>1&&(u=Math.sqrt(u),i*=u,a*=u);const f=i*i,y=a*a,b=f*y-f*c*c-y*o*o,x=f*c*c+y*o*o,_=(s===l?-1:1)*Math.sqrt(Math.abs(b/x));g=_*i*c/a+(t+n)/2,m=_*-a*o/i+(e+r)/2,d=Math.asin(parseFloat(((e-m)/a).toFixed(9))),p=Math.asin(parseFloat(((r-m)/a).toFixed(9))),t<g&&(d=Math.PI-d),n<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>120*Math.PI/180){const t=p,e=n,s=r;p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=w(n=g+i*Math.cos(p),r=m+a*Math.sin(p),e,s,i,a,o,0,l,[p,t,g,m])}y=p-d;const b=Math.cos(d),x=Math.sin(d),_=Math.cos(p),k=Math.sin(p),C=Math.tan(y/4),S=4/3*i*C,T=4/3*a*C,M=[t,e],A=[t+S*x,e-T*b],B=[n+S*k,r-T*_],L=[n,r];if(A[0]=2*M[0]-A[0],A[1]=2*M[1]-A[1],c)return[A,B,L].concat(f);{f=[A,B,L].concat(f);const t=[];for(let e=0;e<f.length;e+=3){const n=v(f[e][0],f[e][1],h),r=v(f[e+1][0],f[e+1][1],h),i=v(f[e+2][0],f[e+2][1],h);t.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return t}}const k={randOffset:function(t,e){return D(t,e)},randOffsetWithRange:function(t,e,n){return N(t,e,n)},ellipse:function(t,e,n,r,i){return A(t,e,i,M(n,r,i)).opset},doubleLineOps:function(t,e,n,r,i){return z(t,e,n,r,i,!0)}};function C(t,e,n,r,i){return{type:"path",ops:z(t,e,n,r,i)}}function S(t,e,n){const r=(t||[]).length;if(r>2){const i=[];for(let e=0;e<r-1;e++)i.push(...z(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&i.push(...z(t[r-1][0],t[r-1][1],t[0][0],t[0][1],n)),{type:"path",ops:i}}return 2===r?C(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function T(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,r=P(n[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:P(n[0],1.5*(1+.22*e.roughness),$(e));for(let t=1;t<n.length;t++){const a=n[t];if(a.length){const t=P(a,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:P(a,1.5*(1+.22*e.roughness),$(e));for(const e of t)"move"!==e.op&&r.push(e);for(const t of n)"move"!==t.op&&i.push(t)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function M(t,e,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=2*Math.PI/i;let o=Math.abs(t/2),s=Math.abs(e/2);const l=1-n.curveFitting;return o+=D(o*l,n),s+=D(s*l,n),{increment:a,rx:o,ry:s}}function A(t,e,n,r){const[i,a]=q(r.increment,t,e,r.rx,r.ry,1,r.increment*N(.1,N(.4,1,n),n),n);let o=R(i,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[i]=q(r.increment,t,e,r.rx,r.ry,1.5,0,n),a=R(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function B(t,e,n,r,i,a,o,s,l){const c=t,h=e;let u=Math.abs(n/2),f=Math.abs(r/2);u+=D(.01*u,l),f+=D(.01*f,l);let d=i,p=a;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-d)/2),y=j(m,c,h,u,f,d,p,1,l);if(!l.disableMultiStroke){const t=j(m,c,h,u,f,d,p,1.5,l);y.push(...t)}return o&&(s?y.push(...z(c,h,c+u*Math.cos(d),h+f*Math.sin(d),l),...z(c,h,c+u*Math.cos(p),h+f*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(d),h+f*Math.sin(d)]})),{type:"path",ops:y}}function L(t,e){const n=_(x(b(t))),r=[];let i=[0,0],a=[0,0];for(const{key:t,data:o}of n)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":r.push(...z(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[t,n,i,s,l,c]=o;r.push(...W(t,n,i,s,l,c,a,e)),a=[l,c];break}case"Z":r.push(...z(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:r}}function E(t,e){const n=[];for(const r of t)if(r.length){const t=e.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:"move",data:[r[0][0]+D(t,e),r[0][1]+D(t,e)]});for(let a=1;a<i;a++)n.push({op:"lineTo",data:[r[a][0]+D(t,e),r[a][1]+D(t,e)]})}}return{type:"fillPath",ops:n}}function F(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!p[n])switch(n){case"zigzag":p[n]||(p[n]=new c(e));break;case"cross-hatch":p[n]||(p[n]=new h(e));break;case"dots":p[n]||(p[n]=new u(e));break;case"dashed":p[n]||(p[n]=new f(e));break;case"zigzag-line":p[n]||(p[n]=new d(e));break;default:n="hachure",p[n]||(p[n]=new s(e))}return p[n]}(e,k).fillPolygons(t,e)}function $(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function O(t){return t.randomizer||(t.randomizer=new g(t.seed||0)),t.randomizer.next()}function N(t,e,n,r=1){return n.roughness*r*(O(n)*(e-t)+t)}function D(t,e,n=1){return N(-t,t,e,n)}function z(t,e,n,r,i,a=!1){const o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=I(t,e,n,r,i,!0,!1);if(o)return s;const l=I(t,e,n,r,i,!0,!0);return s.concat(l)}function I(t,e,n,r,i,a,o){const s=Math.pow(t-n,2)+Math.pow(e-r,2),l=Math.sqrt(s);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=i.maxRandomnessOffset||0;h*h*100>s&&(h=l/10);const u=h/2,f=.2+.2*O(i);let d=i.bowing*i.maxRandomnessOffset*(r-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-n)/200;d=D(d,i,c),p=D(p,i,c);const g=[],m=()=>D(u,i,c),y=()=>D(h,i,c),b=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:D(h,i,c)),e+(b?0:D(h,i,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(n-t)*f+m(),p+e+(r-e)*f+m(),d+t+2*(n-t)*f+m(),p+e+2*(r-e)*f+m(),n+(b?0:m()),r+(b?0:m())]}):g.push({op:"bcurveTo",data:[d+t+(n-t)*f+y(),p+e+(r-e)*f+y(),d+t+2*(n-t)*f+y(),p+e+2*(r-e)*f+y(),n+(b?0:y()),r+(b?0:y())]}),g}function P(t,e,n){if(!t.length)return[];const r=[];r.push([t[0][0]+D(e,n),t[0][1]+D(e,n)]),r.push([t[0][0]+D(e,n),t[0][1]+D(e,n)]);for(let i=1;i<t.length;i++)r.push([t[i][0]+D(e,n),t[i][1]+D(e,n)]),i===t.length-1&&r.push([t[i][0]+D(e,n),t[i][1]+D(e,n)]);return R(r,null,n)}function R(t,e,n){const r=t.length,i=[];if(r>3){const a=[],o=1-n.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<r;e++){const n=t[e];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*t[e+1][0]-o*t[e-1][0])/6,n[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+D(t,n),e[1]+D(t,n)]})}}else 3===r?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===r&&i.push(...I(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return i}function q(t,e,n,r,i,a,o,s){const l=[],c=[];if(0===s.roughness){t/=4,c.push([e+r*Math.cos(-t),n+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){const t=[e+r*Math.cos(a),n+i*Math.sin(a)];l.push(t),c.push(t)}c.push([e+r*Math.cos(0),n+i*Math.sin(0)]),c.push([e+r*Math.cos(t),n+i*Math.sin(t)])}else{const h=D(.5,s)-Math.PI/2;c.push([D(a,s)+e+.9*r*Math.cos(h-t),D(a,s)+n+.9*i*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let o=h;o<u;o+=t){const t=[D(a,s)+e+r*Math.cos(o),D(a,s)+n+i*Math.sin(o)];l.push(t),c.push(t)}c.push([D(a,s)+e+r*Math.cos(h+2*Math.PI+.5*o),D(a,s)+n+i*Math.sin(h+2*Math.PI+.5*o)]),c.push([D(a,s)+e+.98*r*Math.cos(h+o),D(a,s)+n+.98*i*Math.sin(h+o)]),c.push([D(a,s)+e+.9*r*Math.cos(h+.5*o),D(a,s)+n+.9*i*Math.sin(h+.5*o)])}return[c,l]}function j(t,e,n,r,i,a,o,s,l){const c=a+D(.1,l),h=[];h.push([D(s,l)+e+.9*r*Math.cos(c-t),D(s,l)+n+.9*i*Math.sin(c-t)]);for(let a=c;a<=o;a+=t)h.push([D(s,l)+e+r*Math.cos(a),D(s,l)+n+i*Math.sin(a)]);return h.push([e+r*Math.cos(o),n+i*Math.sin(o)]),h.push([e+r*Math.cos(o),n+i*Math.sin(o)]),R(h,null,l)}function W(t,e,n,r,i,a,o,s){const l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let h=[0,0];const u=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let d=0;d<u;d++)0===d?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:D(c[0],s)),o[1]+(f?0:D(c[0],s))]}),h=f?[i,a]:[i+D(c[d],s),a+D(c[d],s)],l.push({op:"bcurveTo",data:[t+D(c[d],s),e+D(c[d],s),n+D(c[d],s),r+D(c[d],s),h[0],h[1]]});return l}function H(t){return[...t]}function U(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(3===n)r.push(H(t[0]),H(t[1]),H(t[2]),H(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const i=[],a=1-e;r.push(H(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*n[t+1][0]-a*n[t-1][0])/6,e[1]+(a*n[t+1][1]-a*n[t-1][1])/6],i[2]=[n[t+1][0]+(a*n[t][0]-a*n[t+2][0])/6,n[t+1][1]+(a*n[t][1]-a*n[t+2][1])/6],i[3]=[n[t+1][0],n[t+1][1]],r.push(i[1],i[2],i[3])}}return r}function Y(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function G(t,e,n){const r=Y(e,n);if(0===r)return Y(t,e);let i=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/r;return i=Math.max(0,Math.min(1,i)),Y(t,V(e,n,i))}function V(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function X(t,e,n,r){const i=r||[];if(function(t,e){const n=t[e+0],r=t[e+1],i=t[e+2],a=t[e+3];let o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let l=3*i[0]-2*a[0]-n[0];l*=l;let c=3*i[1]-2*a[1]-n[1];return c*=c,o<l&&(o=l),s<c&&(s=c),o+s}(t,e)<n){const n=t[e+0];i.length?(a=i[i.length-1],o=n,Math.sqrt(Y(a,o))>1&&i.push(n)):i.push(n),i.push(t[e+3])}else{const r=.5,a=t[e+0],o=t[e+1],s=t[e+2],l=t[e+3],c=V(a,o,r),h=V(o,s,r),u=V(s,l,r),f=V(c,h,r),d=V(h,u,r),p=V(f,d,r);X([a,c,f,p],0,n,i),X([p,d,u,l],0,n,i)}var a,o;return i}function Z(t,e){return Q(t,0,t.length,e)}function Q(t,e,n,r,i){const a=i||[],o=t[e],s=t[n-1];let l=0,c=1;for(let r=e+1;r<n-1;++r){const e=G(t[r],o,s);e>l&&(l=e,c=r)}return Math.sqrt(l)>r?(Q(t,e,c+1,r,a),Q(t,c,n,r,a)):(a.length||a.push(o),a.push(s)),a}function K(t,e=.15,n){const r=[],i=(t.length-1)/3;for(let n=0;n<i;n++)X(t,3*n,e,r);return n&&n>0?Q(r,0,r.length,n):r}const J="none";class tt{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,r,i){const a=this._o(i);return this._d("line",[C(t,e,n,r,a)],a)}rectangle(t,e,n,r,i){const a=this._o(i),o=[],s=function(t,e,n,r,i){return function(t,e){return S(t,!0,e)}([[t,e],[t+n,e],[t+n,e+r],[t,e+r]],i)}(t,e,n,r,a);if(a.fill){const i=[[t,e],[t+n,e],[t+n,e+r],[t,e+r]];"solid"===a.fillStyle?o.push(E([i],a)):o.push(F([i],a))}return a.stroke!==J&&o.push(s),this._d("rectangle",o,a)}ellipse(t,e,n,r,i){const a=this._o(i),o=[],s=M(n,r,a),l=A(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){const n=A(t,e,a,s).opset;n.type="fillPath",o.push(n)}else o.push(F([l.estimatedPoints],a));return a.stroke!==J&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,n,r){const i=this.ellipse(t,e,n,n,r);return i.shape="circle",i}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[S(t,!1,n)],n)}arc(t,e,n,r,i,a,o=!1,s){const l=this._o(s),c=[],h=B(t,e,n,r,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){const o=Object.assign({},l);o.disableMultiStroke=!0;const s=B(t,e,n,r,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,n,r,i,a,o){const s=t,l=e;let c=Math.abs(n/2),h=Math.abs(r/2);c+=D(.01*c,o),h+=D(.01*h,o);let u=i,f=a;for(;u<0;)u+=2*Math.PI,f+=2*Math.PI;f-u>2*Math.PI&&(u=0,f=2*Math.PI);const d=(f-u)/o.curveStepCount,p=[];for(let t=u;t<=f;t+=d)p.push([s+c*Math.cos(t),l+h*Math.sin(t)]);return p.push([s+c*Math.cos(f),l+h*Math.sin(f)]),p.push([s,l]),F([p],o)}(t,e,n,r,i,a,l));return l.stroke!==J&&c.push(h),this._d("arc",c,l)}curve(t,e){const n=this._o(e),r=[],i=T(t,n);if(n.fill&&n.fill!==J)if("solid"===n.fillStyle){const e=T(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],i=t;if(i.length){const t="number"==typeof i[0][0]?[i]:i;for(const r of t)r.length<3?e.push(...r):3===r.length?e.push(...K(U([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):e.push(...K(U(r),10,(1+n.roughness)/2))}e.length&&r.push(F([e],n))}return n.stroke!==J&&r.push(i),this._d("curve",r,n)}polygon(t,e){const n=this._o(e),r=[],i=S(t,!0,n);return n.fill&&("solid"===n.fillStyle?r.push(E([t],n)):r.push(F([t],n))),n.stroke!==J&&r.push(i),this._d("polygon",r,n)}path(t,e){const n=this._o(e),r=[];if(!t)return this._d("path",r,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const i=n.fill&&"transparent"!==n.fill&&n.fill!==J,a=n.stroke!==J,o=!!(n.simplification&&n.simplification<1),s=function(t,e,n){const r=_(x(b(t))),i=[];let a=[],o=[0,0],s=[];const l=()=>{s.length>=4&&a.push(...K(s,1)),s=[]},c=()=>{l(),a.length&&(i.push(a),a=[])};for(const{key:t,data:e}of r)switch(t){case"M":c(),o=[e[0],e[1]],a.push(o);break;case"L":l(),a.push([e[0],e[1]]);break;case"C":if(!s.length){const t=a.length?a[a.length-1]:o;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":l(),a.push([o[0],o[1]])}if(c(),!n)return i;const h=[];for(const t of i){const e=Z(t,n);e.length&&h.push(e)}return h}(t,0,o?4-4*(n.simplification||1):(1+n.roughness)/2),l=L(t,n);if(i)if("solid"===n.fillStyle)if(1===s.length){const e=L(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else r.push(E(s,n));else r.push(F(s,n));return a&&(o?s.forEach(t=>{r.push(S(t,!1,n))}):r.push(l)),this._d("path",r,n)}opsToPath(t,e){let n="";for(const r of t.ops){const t="number"==typeof e&&e>=0?r.data.map(t=>+t.toFixed(e)):r.data;switch(r.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,r=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:J};break;case"fillPath":e={d:this.opsToPath(t),stroke:J,strokeWidth:0,fill:n.fill||J};break;case"fillSketch":e=this.fillSketch(t,n)}e&&r.push(e)}return r}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||J,strokeWidth:n,fill:J}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class et{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new tt(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(const a of e)switch(a.type){case"path":r.save(),r.strokeStyle="none"===n.stroke?"transparent":n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case"fillPath":{r.save(),r.fillStyle=n.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(r,a,i,e),r.restore();break}case"fillSketch":this.fillSketch(r,a,n)}}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=r,this._drawToContext(t,e,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,n,r="nonzero"){t.beginPath();for(const r of e.ops){const e="number"==typeof n&&n>=0?r.data.map(t=>+t.toFixed(n)):r.data;switch(r.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(r):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,n,r,i){const a=this.gen.line(t,e,n,r,i);return this.draw(a),a}rectangle(t,e,n,r,i){const a=this.gen.rectangle(t,e,n,r,i);return this.draw(a),a}ellipse(t,e,n,r,i){const a=this.gen.ellipse(t,e,n,r,i);return this.draw(a),a}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i),i}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n),n}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n),n}arc(t,e,n,r,i,a,o=!1,s){const l=this.gen.arc(t,e,n,r,i,a,o,s);return this.draw(l),l}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n),n}path(t,e){const n=this.gen.path(t,e);return this.draw(n),n}}const nt="http://www.w3.org/2000/svg";class rt{constructor(t,e){this.svg=t,this.gen=new tt(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(nt,"g"),a=t.options.fixedDecimalPlaceDigits;for(const o of e){let e=null;switch(o.type){case"path":e=r.createElementNS(nt,"path"),e.setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=r.createElementNS(nt,"path"),e.setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(r,o,n)}e&&i.appendChild(e)}return i}fillSketch(t,e,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);const i=t.createElementNS(nt,"path");return i.setAttribute("d",this.opsToPath(e,n.fixedDecimalPlaceDigits)),i.setAttribute("stroke",n.fill||""),i.setAttribute("stroke-width",r+""),i.setAttribute("fill","none"),n.fillLineDash&&i.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,r,i){const a=this.gen.line(t,e,n,r,i);return this.draw(a)}rectangle(t,e,n,r,i){const a=this.gen.rectangle(t,e,n,r,i);return this.draw(a)}ellipse(t,e,n,r,i){const a=this.gen.ellipse(t,e,n,r,i);return this.draw(a)}circle(t,e,n,r){const i=this.gen.circle(t,e,n,r);return this.draw(i)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,r,i,a,o=!1,s){const l=this.gen.arc(t,e,n,r,i,a,o,s);return this.draw(l)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}var it={canvas:(t,e)=>new et(t,e),svg:(t,e)=>new rt(t,e),generator:t=>new tt(t),newSeed:()=>tt.newSeed()}},8968(t,e,n){function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.from("string"==typeof t?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map(function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0})):t},[]);if(i.length){var a=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map(function(t){return t.replace(a,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(t,e){var n=o.match(/(?:^|\n)( *)$/),i=n?n[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:""+i+t}).join("\n")),o+=a+r[e+1]}),o}n.r(e),n.d(e,{dedent:()=>r,default:()=>i});const i=r},79806(t,e,n){function r(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function a(t){let e,n,a;function s(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<0?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=r,n=(e,n)=>r(t(e),n),a=(e,n)=>t(e)-n):(e=t===r||t===i?t:o,n=t,a=t),{left:s,center:function(t,e,n=0,r=t.length){const i=s(t,e,n,r-1);return i>n&&a(t[i-1],e)>-a(t[i],e)?i-1:i},right:function(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<=0?i=e+1:a=e}while(i<a)}return i}}}function o(){return 0}function s(t){return null===t?NaN:+t}n.d(e,{Adder:()=>B,Delaunay:()=>zs,FormatSpecifier:()=>Yc,InternMap:()=>F,InternSet:()=>$,Node:()=>mg,Path:()=>Ja,Voronoi:()=>Es,ZoomTransform:()=>vS,active:()=>ia,arc:()=>ak,area:()=>dk,areaRadial:()=>wk,ascending:()=>r,autoType:()=>dl,axisBottom:()=>ge,axisLeft:()=>me,axisRight:()=>pe,axisTop:()=>de,bin:()=>dt,bisect:()=>f,bisectCenter:()=>u,bisectLeft:()=>h,bisectRight:()=>c,bisector:()=>a,blob:()=>Jl,blur:()=>d,blur2:()=>p,blurImage:()=>g,brush:()=>$a,brushSelection:()=>La,brushX:()=>Ea,brushY:()=>Fa,buffer:()=>ec,chord:()=>Ha,chordDirected:()=>Ya,chordTranspose:()=>Ua,cluster:()=>cg,color:()=>lr,contourDensity:()=>ls,contours:()=>ts,count:()=>_,create:()=>$w,creator:()=>kn,cross:()=>C,csv:()=>oc,csvFormat:()=>tl,csvFormatBody:()=>el,csvFormatRow:()=>rl,csvFormatRows:()=>nl,csvFormatValue:()=>il,csvParse:()=>Ks,csvParseRows:()=>Js,cubehelix:()=>Ho,cumsum:()=>S,curveBasis:()=>fC,curveBasisClosed:()=>pC,curveBasisOpen:()=>mC,curveBumpX:()=>Tk,curveBumpY:()=>Mk,curveBundle:()=>bC,curveCardinal:()=>vC,curveCardinalClosed:()=>kC,curveCardinalOpen:()=>SC,curveCatmullRom:()=>AC,curveCatmullRomClosed:()=>LC,curveCatmullRomOpen:()=>FC,curveLinear:()=>ck,curveLinearClosed:()=>OC,curveMonotoneX:()=>jC,curveMonotoneY:()=>WC,curveNatural:()=>YC,curveStep:()=>VC,curveStepAfter:()=>ZC,curveStepBefore:()=>XC,descending:()=>i,deviation:()=>M,difference:()=>Qt,disjoint:()=>Kt,dispatch:()=>we,drag:()=>Hs,dragDisable:()=>jn,dragEnable:()=>Wn,dsv:()=>ac,dsvFormat:()=>Zs,easeBack:()=>Gl,easeBackIn:()=>Ul,easeBackInOut:()=>Gl,easeBackOut:()=>Yl,easeBounce:()=>jl,easeBounceIn:()=>ql,easeBounceInOut:()=>Wl,easeBounceOut:()=>jl,easeCircle:()=>$l,easeCircleIn:()=>El,easeCircleInOut:()=>$l,easeCircleOut:()=>Fl,easeCubic:()=>ta,easeCubicIn:()=>Ki,easeCubicInOut:()=>ta,easeCubicOut:()=>Ji,easeElastic:()=>Zl,easeElasticIn:()=>Xl,easeElasticInOut:()=>Ql,easeElasticOut:()=>Zl,easeExp:()=>Ll,easeExpIn:()=>Al,easeExpInOut:()=>Ll,easeExpOut:()=>Bl,easeLinear:()=>gl,easePoly:()=>vl,easePolyIn:()=>xl,easePolyInOut:()=>vl,easePolyOut:()=>_l,easeQuad:()=>bl,easeQuadIn:()=>ml,easeQuadInOut:()=>bl,easeQuadOut:()=>yl,easeSin:()=>Tl,easeSinIn:()=>Cl,easeSinInOut:()=>Tl,easeSinOut:()=>Sl,every:()=>Ut,extent:()=>A,fcumsum:()=>E,filter:()=>Gt,flatGroup:()=>j,flatRollup:()=>W,forceCenter:()=>gc,forceCollide:()=>Ac,forceLink:()=>Ec,forceManyBody:()=>zc,forceRadial:()=>Ic,forceSimulation:()=>Dc,forceX:()=>Pc,forceY:()=>Rc,format:()=>Qc,formatDefaultLocale:()=>nh,formatLocale:()=>eh,formatPrefix:()=>Kc,formatSpecifier:()=>Uc,fsum:()=>L,geoAlbers:()=>Cp,geoAlbersUsa:()=>Sp,geoArea:()=>ou,geoAzimuthalEqualArea:()=>Bp,geoAzimuthalEqualAreaRaw:()=>Ap,geoAzimuthalEquidistant:()=>Ep,geoAzimuthalEquidistantRaw:()=>Lp,geoBounds:()=>qu,geoCentroid:()=>Ju,geoCircle:()=>uf,geoClipAntimeridian:()=>wf,geoClipCircle:()=>kf,geoClipExtent:()=>Ef,geoClipRectangle:()=>Lf,geoConicConformal:()=>zp,geoConicConformalRaw:()=>Dp,geoConicEqualArea:()=>kp,geoConicEqualAreaRaw:()=>wp,geoConicEquidistant:()=>qp,geoConicEquidistantRaw:()=>Rp,geoContains:()=>Vf,geoDistance:()=>Pf,geoEqualEarth:()=>Vp,geoEqualEarthRaw:()=>Gp,geoEquirectangular:()=>Pp,geoEquirectangularRaw:()=>Ip,geoGnomonic:()=>Zp,geoGnomonicRaw:()=>Xp,geoGraticule:()=>Qf,geoGraticule10:()=>Kf,geoIdentity:()=>Qp,geoInterpolate:()=>Jf,geoLength:()=>Df,geoMercator:()=>$p,geoMercatorRaw:()=>Fp,geoNaturalEarth1:()=>Jp,geoNaturalEarth1Raw:()=>Kp,geoOrthographic:()=>eg,geoOrthographicRaw:()=>tg,geoPath:()=>op,geoProjection:()=>xp,geoProjectionMutator:()=>_p,geoRotation:()=>lf,geoStereographic:()=>rg,geoStereographicRaw:()=>ng,geoStream:()=>Dh,geoTransform:()=>sp,geoTransverseMercator:()=>ag,geoTransverseMercatorRaw:()=>ig,gray:()=>Co,greatest:()=>_t,greatestIndex:()=>zt,group:()=>P,groupSort:()=>tt,groups:()=>R,hcl:()=>$o,hierarchy:()=>ug,histogram:()=>dt,hsl:()=>vr,html:()=>dc,image:()=>lc,index:()=>Y,indexes:()=>G,interpolate:()=>Gr,interpolateArray:()=>Pr,interpolateBasis:()=>Mr,interpolateBasisClosed:()=>Ar,interpolateBlues:()=>ow,interpolateBrBG:()=>bv,interpolateBuGn:()=>Dv,interpolateBuPu:()=>Iv,interpolateCividis:()=>yw,interpolateCool:()=>_w,interpolateCubehelix:()=>Am,interpolateCubehelixDefault:()=>bw,interpolateCubehelixLong:()=>Bm,interpolateDate:()=>qr,interpolateDiscrete:()=>gm,interpolateGnBu:()=>Rv,interpolateGreens:()=>lw,interpolateGreys:()=>hw,interpolateHcl:()=>Sm,interpolateHclLong:()=>Tm,interpolateHsl:()=>vm,interpolateHslLong:()=>wm,interpolateHue:()=>mm,interpolateInferno:()=>Ew,interpolateLab:()=>km,interpolateMagma:()=>Lw,interpolateNumber:()=>jr,interpolateNumberArray:()=>zr,interpolateObject:()=>Wr,interpolateOrRd:()=>jv,interpolateOranges:()=>mw,interpolatePRGn:()=>_v,interpolatePiYG:()=>wv,interpolatePlasma:()=>Fw,interpolatePuBu:()=>Yv,interpolatePuBuGn:()=>Hv,interpolatePuOr:()=>Cv,interpolatePuRd:()=>Vv,interpolatePurples:()=>fw,interpolateRainbow:()=>ww,interpolateRdBu:()=>Tv,interpolateRdGy:()=>Av,interpolateRdPu:()=>Zv,interpolateRdYlBu:()=>Lv,interpolateRdYlGn:()=>Fv,interpolateReds:()=>pw,interpolateRgb:()=>$r,interpolateRgbBasis:()=>Nr,interpolateRgbBasisClosed:()=>Dr,interpolateRound:()=>ym,interpolateSinebow:()=>Tw,interpolateSpectral:()=>Ov,interpolateString:()=>Yr,interpolateTransformCss:()=>Mi,interpolateTransformSvg:()=>Ai,interpolateTurbo:()=>Mw,interpolateViridis:()=>Bw,interpolateWarm:()=>xw,interpolateYlGn:()=>tw,interpolateYlGnBu:()=>Kv,interpolateYlOrBr:()=>nw,interpolateYlOrRd:()=>iw,interpolateZoom:()=>xm,interrupt:()=>vi,intersection:()=>Jt,interval:()=>bS,isoFormat:()=>gS,isoParse:()=>yS,json:()=>hc,lab:()=>So,lch:()=>Fo,least:()=>Nt,leastIndex:()=>Dt,line:()=>fk,lineRadial:()=>vk,link:()=>Ek,linkHorizontal:()=>Fk,linkRadial:()=>Ok,linkVertical:()=>$k,local:()=>Nw,map:()=>Vt,matcher:()=>Ae,max:()=>pt,maxIndex:()=>gt,mean:()=>Tt,median:()=>Mt,medianIndex:()=>At,merge:()=>Bt,min:()=>mt,minIndex:()=>yt,mode:()=>Lt,namespace:()=>We,namespaces:()=>je,nice:()=>ut,now:()=>oi,pack:()=>Pg,packEnclose:()=>kg,packSiblings:()=>zg,pairs:()=>Et,partition:()=>Ug,path:()=>to,pathRound:()=>eo,permute:()=>Z,pie:()=>mk,piecewise:()=>Lm,pointRadial:()=>kk,pointer:()=>Xr,pointers:()=>zw,polygonArea:()=>Fm,polygonCentroid:()=>$m,polygonContains:()=>Im,polygonHull:()=>zm,polygonLength:()=>Pm,precisionFixed:()=>rh,precisionPrefix:()=>ih,precisionRound:()=>ah,quadtree:()=>_c,quantile:()=>vt,quantileIndex:()=>kt,quantileSorted:()=>wt,quantize:()=>Em,quickselect:()=>bt,radialArea:()=>wk,radialLine:()=>vk,randomBates:()=>Ym,randomBernoulli:()=>Xm,randomBeta:()=>Km,randomBinomial:()=>Jm,randomCauchy:()=>ey,randomExponential:()=>Gm,randomGamma:()=>Qm,randomGeometric:()=>Zm,randomInt:()=>jm,randomIrwinHall:()=>Um,randomLcg:()=>ay,randomLogNormal:()=>Hm,randomLogistic:()=>ny,randomNormal:()=>Wm,randomPareto:()=>Vm,randomPoisson:()=>ry,randomUniform:()=>qm,randomWeibull:()=>ty,range:()=>$t,rank:()=>Ot,reduce:()=>Xt,reverse:()=>Zt,rgb:()=>fr,ribbon:()=>fo,ribbonArrow:()=>po,rollup:()=>H,rollups:()=>U,scaleBand:()=>hy,scaleDiverging:()=>J_,scaleDivergingLog:()=>tv,scaleDivergingPow:()=>nv,scaleDivergingSqrt:()=>rv,scaleDivergingSymlog:()=>ev,scaleIdentity:()=>Sy,scaleImplicit:()=>ly,scaleLinear:()=>Cy,scaleLog:()=>Oy,scaleOrdinal:()=>cy,scalePoint:()=>fy,scalePow:()=>Wy,scaleQuantile:()=>Gy,scaleQuantize:()=>Vy,scaleRadial:()=>Yy,scaleSequential:()=>Y_,scaleSequentialLog:()=>G_,scaleSequentialPow:()=>X_,scaleSequentialQuantile:()=>Q_,scaleSequentialSqrt:()=>Z_,scaleSequentialSymlog:()=>V_,scaleSqrt:()=>Hy,scaleSymlog:()=>Iy,scaleThreshold:()=>Xy,scaleTime:()=>j_,scaleUtc:()=>W_,scan:()=>It,schemeAccent:()=>ov,schemeBlues:()=>aw,schemeBrBG:()=>yv,schemeBuGn:()=>Nv,schemeBuPu:()=>zv,schemeCategory10:()=>av,schemeDark2:()=>sv,schemeGnBu:()=>Pv,schemeGreens:()=>sw,schemeGreys:()=>cw,schemeObservable10:()=>lv,schemeOrRd:()=>qv,schemeOranges:()=>gw,schemePRGn:()=>xv,schemePaired:()=>cv,schemePastel1:()=>hv,schemePastel2:()=>uv,schemePiYG:()=>vv,schemePuBu:()=>Uv,schemePuBuGn:()=>Wv,schemePuOr:()=>kv,schemePuRd:()=>Gv,schemePurples:()=>uw,schemeRdBu:()=>Sv,schemeRdGy:()=>Mv,schemeRdPu:()=>Xv,schemeRdYlBu:()=>Bv,schemeRdYlGn:()=>Ev,schemeReds:()=>dw,schemeSet1:()=>fv,schemeSet2:()=>dv,schemeSet3:()=>pv,schemeSpectral:()=>$v,schemeTableau10:()=>gv,schemeYlGn:()=>Jv,schemeYlGnBu:()=>Qv,schemeYlOrBr:()=>ew,schemeYlOrRd:()=>rw,select:()=>zn,selectAll:()=>Iw,selection:()=>Dn,selector:()=>Ce,selectorAll:()=>Me,shuffle:()=>Pt,shuffler:()=>Rt,some:()=>Yt,sort:()=>Q,stack:()=>eS,stackOffsetDiverging:()=>rS,stackOffsetExpand:()=>nS,stackOffsetNone:()=>QC,stackOffsetSilhouette:()=>iS,stackOffsetWiggle:()=>aS,stackOrderAppearance:()=>oS,stackOrderAscending:()=>lS,stackOrderDescending:()=>hS,stackOrderInsideOut:()=>uS,stackOrderNone:()=>KC,stackOrderReverse:()=>fS,stratify:()=>Qg,style:()=>tn,subset:()=>re,sum:()=>qt,superset:()=>ee,svg:()=>pc,symbol:()=>lC,symbolAsterisk:()=>Dk,symbolCircle:()=>zk,symbolCross:()=>Ik,symbolDiamond:()=>qk,symbolDiamond2:()=>jk,symbolPlus:()=>Wk,symbolSquare:()=>Hk,symbolSquare2:()=>Uk,symbolStar:()=>Xk,symbolTimes:()=>aC,symbolTriangle:()=>Qk,symbolTriangle2:()=>Jk,symbolWye:()=>iC,symbolX:()=>aC,symbols:()=>oC,symbolsFill:()=>oC,symbolsStroke:()=>sC,text:()=>rc,thresholdFreedmanDiaconis:()=>Ct,thresholdScott:()=>St,thresholdSturges:()=>ft,tickFormat:()=>wy,tickIncrement:()=>ct,tickStep:()=>ht,ticks:()=>lt,timeDay:()=>yb,timeDays:()=>bb,timeFormat:()=>yx,timeFormatDefaultLocale:()=>I_,timeFormatLocale:()=>gx,timeFriday:()=>Bb,timeFridays:()=>Db,timeHour:()=>db,timeHours:()=>pb,timeInterval:()=>ib,timeMillisecond:()=>ab,timeMilliseconds:()=>ob,timeMinute:()=>cb,timeMinutes:()=>hb,timeMonday:()=>Sb,timeMondays:()=>Fb,timeMonth:()=>Jb,timeMonths:()=>tx,timeParse:()=>bx,timeSaturday:()=>Lb,timeSaturdays:()=>zb,timeSecond:()=>sb,timeSeconds:()=>lb,timeSunday:()=>Cb,timeSundays:()=>Eb,timeThursday:()=>Ab,timeThursdays:()=>Nb,timeTickInterval:()=>ux,timeTicks:()=>hx,timeTuesday:()=>Tb,timeTuesdays:()=>$b,timeWednesday:()=>Mb,timeWednesdays:()=>Ob,timeWeek:()=>Cb,timeWeeks:()=>Eb,timeYear:()=>rx,timeYears:()=>ix,timeout:()=>pi,timer:()=>ci,timerFlush:()=>hi,transition:()=>Xi,transpose:()=>jt,tree:()=>om,treemap:()=>um,treemapBinary:()=>fm,treemapDice:()=>Hg,treemapResquarify:()=>pm,treemapSlice:()=>sm,treemapSliceDice:()=>dm,treemapSquarify:()=>hm,tsv:()=>sc,tsvFormat:()=>ll,tsvFormatBody:()=>cl,tsvFormatRow:()=>ul,tsvFormatRows:()=>hl,tsvFormatValue:()=>fl,tsvParse:()=>ol,tsvParseRows:()=>sl,union:()=>ie,unixDay:()=>vb,unixDays:()=>wb,utcDay:()=>xb,utcDays:()=>_b,utcFormat:()=>xx,utcFriday:()=>Hb,utcFridays:()=>Qb,utcHour:()=>gb,utcHours:()=>mb,utcMillisecond:()=>ab,utcMilliseconds:()=>ob,utcMinute:()=>ub,utcMinutes:()=>fb,utcMonday:()=>Rb,utcMondays:()=>Gb,utcMonth:()=>ex,utcMonths:()=>nx,utcParse:()=>_x,utcSaturday:()=>Ub,utcSaturdays:()=>Kb,utcSecond:()=>sb,utcSeconds:()=>lb,utcSunday:()=>Pb,utcSundays:()=>Yb,utcThursday:()=>Wb,utcThursdays:()=>Zb,utcTickInterval:()=>cx,utcTicks:()=>lx,utcTuesday:()=>qb,utcTuesdays:()=>Vb,utcWednesday:()=>jb,utcWednesdays:()=>Xb,utcWeek:()=>Pb,utcWeeks:()=>Yb,utcYear:()=>ax,utcYears:()=>ox,variance:()=>T,window:()=>Ze,xml:()=>fc,zip:()=>Ht,zoom:()=>FS,zoomIdentity:()=>wS,zoomTransform:()=>kS}),n.r(e);const l=a(r),c=l.right,h=l.left,u=a(s).center,f=c;function d(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const r=x(e),i=t.slice();return r(t,i,0,n,1),r(i,t,0,n,1),r(t,i,0,n,1),t}const p=m(x),g=m(function(t){const e=x(t);return(t,n,r,i,a)=>{e(t,n,0+(r<<=2),0+(i<<=2),a<<=2),e(t,n,r+1,i+1,a),e(t,n,r+2,i+2,a),e(t,n,r+3,i+3,a)}});function m(t){return function(e,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:a,height:o}=e;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((o=Math.floor(void 0