@deephaven/embed-chart 0.35.1-react-spectrum-provider.11 → 0.35.1-test-envoy.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -803,17 +803,17 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
803
803
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MP(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,u=e.shake,l=e.flash,s=e.spin,c=e.spinPulse,v=e.spinReverse,x=e.pulse,y=e.fixedWidth,g=e.inverse,k=e.border,N=e.listItem,b=e.flip,w=e.size,A=e.rotation,M=e.pull,R=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":u,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":v,"fa-spin-pulse":c,"fa-pulse":x,"fa-fw":y,"fa-inverse":g,"fa-border":k,"fa-li":N,"fa-flip":b===!0,"fa-flip-horizontal":b==="horizontal"||b==="both","fa-flip-vertical":b==="vertical"||b==="both"},xf(t,"fa-".concat(w),typeof w<"u"&&w!==null),xf(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),xf(t,"fa-pull-".concat(M),typeof M<"u"&&M!==null),xf(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(R).map(function(L){return R[L]?L:null}).filter(function(L){return L})}function FP(e){return e=e-0,e===e}function $k(e){return FP(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var NP=["style"];function RP(e){return e.charAt(0).toUpperCase()+e.slice(1)}function IP(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=$k(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[RP(i)]=a:t[i]=a,t},{})}function zk(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return zk(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,c){var v=t.attributes[c];switch(c){case"class":s.attrs.className=v,delete t.attributes.class;break;case"style":s.attrs.style=IP(v);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?s.attrs[c.toLowerCase()]=v:s.attrs[$k(c)]=v}return s},{attrs:{}}),a=r.style,u=a===void 0?{}:a,l=AP(r,NP);return i.attrs.style=Eo(Eo({},i.attrs.style),u),e.apply(void 0,[t.tag,Eo(Eo({},i.attrs),l)].concat(c2(n)))}var Uk=!1;try{Uk=!0}catch{}function PP(){if(!Uk&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function X3(e){if(e&&dv(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(s2.icon)return s2.icon(e);if(e===null)return null;if(e&&dv(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function jy(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xf({},e,t):{}}var vm=ka.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,u=e.title,l=e.titleId,s=e.maskId,c=X3(r),v=jy("classes",[].concat(c2(MP(e)),c2(a.split(" ")))),x=jy("transform",typeof e.transform=="string"?s2.transform(e.transform):e.transform),y=jy("mask",X3(n)),g=SP(c,Eo(Eo(Eo(Eo({},v),x),y),{},{symbol:i,title:u,titleId:l,maskId:s}));if(!g)return PP("Could not find icon",c),null;var k=g.abstract,N={ref:t};return Object.keys(e).forEach(function(b){vm.defaultProps.hasOwnProperty(b)||(N[b]=e[b])}),LP(k[0],N)});vm.displayName="FontAwesomeIcon";vm.propTypes={beat:lr.bool,border:lr.bool,beatFade:lr.bool,bounce:lr.bool,className:lr.string,fade:lr.bool,flash:lr.bool,mask:lr.oneOfType([lr.object,lr.array,lr.string]),maskId:lr.string,fixedWidth:lr.bool,inverse:lr.bool,flip:lr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:lr.oneOfType([lr.object,lr.array,lr.string]),listItem:lr.bool,pull:lr.oneOf(["right","left"]),pulse:lr.bool,rotation:lr.oneOf([0,90,180,270]),shake:lr.bool,size:lr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:lr.bool,spinPulse:lr.bool,spinReverse:lr.bool,symbol:lr.oneOfType([lr.bool,lr.string]),title:lr.string,titleId:lr.string,transform:lr.oneOfType([lr.string,lr.object]),swapOpacity:lr.bool};vm.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var LP=zk.bind(null,ka.createElement),Q3=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function DP(e,t){return!!(e===t||Q3(e)&&Q3(t))}function BP(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!DP(e[r],t[r]))return!1;return!0}function Wq(e,t){t===void 0&&(t=BP);var r,n=[],i,a=!1;function u(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return u}var Z3=Object.prototype.toString,jk=function(t){var r=Z3.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Z3.call(t.callee)==="[object Function]"),n},Gy,K3;function $P(){if(K3)return Gy;K3=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=jk,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),u=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(y){var g=y.constructor;return g&&g.prototype===y},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!c["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{s(window[y])}catch{return!0}}catch{return!0}return!1}(),x=function(y){if(typeof window>"u"||!v)return s(y);try{return s(y)}catch{return!1}};e=function(g){var k=g!==null&&typeof g=="object",N=r.call(g)==="[object Function]",b=n(g),w=k&&r.call(g)==="[object String]",A=[];if(!k&&!N&&!b)throw new TypeError("Object.keys called on a non-object");var M=u&&N;if(w&&g.length>0&&!t.call(g,0))for(var R=0;R<g.length;++R)A.push(String(R));if(b&&g.length>0)for(var L=0;L<g.length;++L)A.push(String(L));else for(var D in g)!(M&&D==="prototype")&&t.call(g,D)&&A.push(String(D));if(a)for(var ne=x(g),Y=0;Y<l.length;++Y)!(ne&&l[Y]==="constructor")&&t.call(g,l[Y])&&A.push(l[Y]);return A}}return Gy=e,Gy}var zP=Array.prototype.slice,UP=jk,J3=Object.keys,I0=J3?function(t){return J3(t)}:$P(),eE=Object.keys;I0.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return UP(n)?eE(zP.call(n)):eE(n)})}else Object.keys=I0;return Object.keys||I0};var sw=I0,mm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==i||u.enumerable!==!0)return!1}return!0},jP=mm,Vo=function(){return jP()&&!!Symbol.toStringTag},tE=typeof Symbol<"u"&&Symbol,GP=mm,cw=function(){return typeof tE!="function"||typeof Symbol!="function"||typeof tE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:GP()},HP="Function.prototype.bind called on incompatible ",Hy=Array.prototype.slice,WP=Object.prototype.toString,VP="[object Function]",qP=function(t){var r=this;if(typeof r!="function"||WP.call(r)!==VP)throw new TypeError(HP+r);for(var n=Hy.call(arguments,1),i,a=function(){if(this instanceof i){var v=r.apply(this,n.concat(Hy.call(arguments)));return Object(v)===v?v:this}else return r.apply(t,n.concat(Hy.call(arguments)))},u=Math.max(0,r.length-n.length),l=[],s=0;s<u;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},YP=qP,hw=Function.prototype.bind||YP,XP=hw,QP=XP.call(Function.call,Object.prototype.hasOwnProperty),pr,jf=SyntaxError,Gk=Function,Nf=TypeError,Wy=function(e){try{return Gk('"use strict"; return ('+e+").constructor;")()}catch{}},zu=Object.getOwnPropertyDescriptor;if(zu)try{zu({},"")}catch{zu=null}var Vy=function(){throw new Nf},ZP=zu?function(){try{return arguments.callee,Vy}catch{try{return zu(arguments,"callee").get}catch{return Vy}}}():Vy,ef=cw(),go=Object.getPrototypeOf||function(e){return e.__proto__},ff={},KP=typeof Uint8Array>"u"?pr:go(Uint8Array),Rf={"%AggregateError%":typeof AggregateError>"u"?pr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?pr:ArrayBuffer,"%ArrayIteratorPrototype%":ef?go([][Symbol.iterator]()):pr,"%AsyncFromSyncIteratorPrototype%":pr,"%AsyncFunction%":ff,"%AsyncGenerator%":ff,"%AsyncGeneratorFunction%":ff,"%AsyncIteratorPrototype%":ff,"%Atomics%":typeof Atomics>"u"?pr:Atomics,"%BigInt%":typeof BigInt>"u"?pr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?pr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?pr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?pr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?pr:FinalizationRegistry,"%Function%":Gk,"%GeneratorFunction%":ff,"%Int8Array%":typeof Int8Array>"u"?pr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?pr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?pr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ef?go(go([][Symbol.iterator]())):pr,"%JSON%":typeof JSON=="object"?JSON:pr,"%Map%":typeof Map>"u"?pr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ef?pr:go(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?pr:Promise,"%Proxy%":typeof Proxy>"u"?pr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?pr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?pr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ef?pr:go(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?pr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ef?go(""[Symbol.iterator]()):pr,"%Symbol%":ef?Symbol:pr,"%SyntaxError%":jf,"%ThrowTypeError%":ZP,"%TypedArray%":KP,"%TypeError%":Nf,"%Uint8Array%":typeof Uint8Array>"u"?pr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?pr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?pr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?pr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?pr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?pr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?pr:WeakSet},JP=function e(t){var r;if(t==="%AsyncFunction%")r=Wy("async function () {}");else if(t==="%GeneratorFunction%")r=Wy("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Wy("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=go(i.prototype))}return Rf[t]=r,r},rE={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fd=hw,pv=QP,eL=fd.call(Function.call,Array.prototype.concat),tL=fd.call(Function.apply,Array.prototype.splice),nE=fd.call(Function.call,String.prototype.replace),vv=fd.call(Function.call,String.prototype.slice),rL=fd.call(Function.call,RegExp.prototype.exec),nL=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,iL=/\\(\\)?/g,aL=function(t){var r=vv(t,0,1),n=vv(t,-1);if(r==="%"&&n!=="%")throw new jf("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new jf("invalid intrinsic syntax, expected opening `%`");var i=[];return nE(t,nL,function(a,u,l,s){i[i.length]=l?nE(s,iL,"$1"):u||a}),i},oL=function(t,r){var n=t,i;if(pv(rE,n)&&(i=rE[n],n="%"+i[0]+"%"),pv(Rf,n)){var a=Rf[n];if(a===ff&&(a=JP(n)),typeof a>"u"&&!r)throw new Nf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new jf("intrinsic "+t+" does not exist!")},qo=function(t,r){if(typeof t!="string"||t.length===0)throw new Nf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Nf('"allowMissing" argument must be a boolean');if(rL(/^%?[^%]*%?$/,t)===null)throw new jf("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aL(t),i=n.length>0?n[0]:"",a=oL("%"+i+"%",r),u=a.name,l=a.value,s=!1,c=a.alias;c&&(i=c[0],tL(n,eL([0,1],c)));for(var v=1,x=!0;v<n.length;v+=1){var y=n[v],g=vv(y,0,1),k=vv(y,-1);if((g==='"'||g==="'"||g==="`"||k==='"'||k==="'"||k==="`")&&g!==k)throw new jf("property names with quotes must have matching quotes");if((y==="constructor"||!x)&&(s=!0),i+="."+y,u="%"+i+"%",pv(Rf,u))l=Rf[u];else if(l!=null){if(!(y in l)){if(!r)throw new Nf("base intrinsic for "+t+" exists, but the property is not available.");return}if(zu&&v+1>=n.length){var N=zu(l,y);x=!!N,x&&"get"in N&&!("originalValue"in N.get)?l=N.get:l=l[y]}else x=pv(l,y),l=l[y];x&&!s&&(Rf[u]=l)}}return l},Gf={},uL={get exports(){return Gf},set exports(e){Gf=e}};(function(e){var t=hw,r=qo,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),u=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(x){var y=a(t,i,arguments);if(u&&l){var g=u(y,"length");g.configurable&&l(y,"length",{value:1+s(0,x.length-(arguments.length-1))})}return y};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(uL);var Hk=qo,Wk=Gf,lL=Wk(Hk("String.prototype.indexOf")),ia=function(t,r){var n=Hk(t,!!r);return typeof n=="function"&&lL(t,".prototype.")>-1?Wk(n):n},fL=Vo(),sL=ia,d2=sL("Object.prototype.toString"),gm=function(t){return fL&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:d2(t)==="[object Arguments]"},Vk=function(t){return gm(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&d2(t)!=="[object Array]"&&d2(t.callee)==="[object Function]"},cL=function(){return gm(arguments)}();gm.isLegacyArguments=Vk;var qk=cL?gm:Vk,hL=qo,p2=hL("%Object.defineProperty%",!0),v2=function(){if(p2)try{return p2({},"a",{value:1}),!0}catch{return!1}return!1};v2.hasArrayLengthDefineBug=function(){if(!v2())return null;try{return p2([],"length",{value:1}).length!==1}catch{return!0}};var dL=v2,pL=sw,vL=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",mL=Object.prototype.toString,gL=Array.prototype.concat,Yk=Object.defineProperty,yL=function(e){return typeof e=="function"&&mL.call(e)==="[object Function]"},xL=dL(),Xk=Yk&&xL,_L=function(e,t,r,n){t in e&&(!yL(n)||!n())||(Xk?Yk(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},Qk=function(e,t){var r=arguments.length>2?arguments[2]:{},n=pL(t);vL&&(n=gL.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)_L(e,n[i],t[n[i]],r[n[i]])};Qk.supportsDescriptors=!!Xk;var fl=Qk,iE=function(e){return e!==e},Zk=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||iE(t)&&iE(r))},wL=Zk,Kk=function(){return typeof Object.is=="function"?Object.is:wL},bL=Kk,SL=fl,EL=function(){var t=bL();return SL(Object,{is:t},{is:function(){return Object.is!==t}}),t},AL=fl,TL=Gf,CL=Zk,Jk=Kk,kL=EL,e4=TL(Jk(),Object);AL(e4,{getPolyfill:Jk,implementation:CL,shim:kL});var OL=e4,m2=ia,t4=Vo(),r4,n4,g2,y2;if(t4){r4=m2("Object.prototype.hasOwnProperty"),n4=m2("RegExp.prototype.exec"),g2={};var qy=function(){throw g2};y2={toString:qy,valueOf:qy},typeof Symbol.toPrimitive=="symbol"&&(y2[Symbol.toPrimitive]=qy)}var ML=m2("Object.prototype.toString"),FL=Object.getOwnPropertyDescriptor,NL="[object RegExp]",RL=t4?function(t){if(!t||typeof t!="object")return!1;var r=FL(t,"lastIndex"),n=r&&r4(r,"value");if(!n)return!1;try{n4(t,y2)}catch(i){return i===g2}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:ML(t)===NL},mv={},IL={get exports(){return mv},set exports(e){mv=e}},jh=function(){return typeof function(){}.name=="string"},mh=Object.getOwnPropertyDescriptor;if(mh)try{mh([],"length")}catch{mh=null}jh.functionsHaveConfigurableNames=function(){if(!jh()||!mh)return!1;var t=mh(function(){},"name");return!!t&&!!t.configurable};var PL=Function.prototype.bind;jh.boundFunctionsHaveNames=function(){return jh()&&typeof PL=="function"&&function(){}.bind().name!==""};var LL=jh;(function(e){var t=LL.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(IL);var DL=mv,BL=fl.supportsDescriptors,$L=Object.getOwnPropertyDescriptor,i4=function(){if(BL&&/a/mig.flags==="gim"){var t=$L(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return DL},zL=fl.supportsDescriptors,UL=i4,jL=Object.getOwnPropertyDescriptor,GL=Object.defineProperty,HL=TypeError,aE=Object.getPrototypeOf,WL=/a/,VL=function(){if(!zL||!aE)throw new HL("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=UL(),r=aE(WL),n=jL(r,"flags");return(!n||n.get!==t)&&GL(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},qL=fl,YL=Gf,XL=mv,a4=i4,QL=VL,o4=YL(a4());qL(o4,{getPolyfill:a4,implementation:XL,shim:QL});var ZL=o4,KL={}.toString,u4=Array.isArray||function(e){return KL.call(e)=="[object Array]"},JL=Date.prototype.getDay,eD=function(t){try{return JL.call(t),!0}catch{return!1}},tD=Object.prototype.toString,rD="[object Date]",nD=Vo(),iD=function(t){return typeof t!="object"||t===null?!1:nD?eD(t):tD.call(t)===rD},aD=String.prototype.valueOf,oD=function(t){try{return aD.call(t),!0}catch{return!1}},uD=Object.prototype.toString,lD="[object String]",fD=Vo(),l4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:fD?oD(t):uD.call(t)===lD},sD=Number.prototype.toString,cD=function(t){try{return sD.call(t),!0}catch{return!1}},hD=Object.prototype.toString,dD="[object Number]",pD=Vo(),vD=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:pD?cD(t):hD.call(t)===dD},f4=ia,mD=f4("Boolean.prototype.toString"),gD=f4("Object.prototype.toString"),yD=function(t){try{return mD(t),!0}catch{return!1}},xD="[object Boolean]",_D=Vo(),wD=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:_D&&Symbol.toStringTag in t?yD(t):gD(t)===xD},x2={},oE={get exports(){return x2},set exports(e){x2=e}},bD=Object.prototype.toString,SD=cw();if(SD){var ED=Symbol.prototype.toString,AD=/^Symbol\(.*\)$/,TD=function(t){return typeof t.valueOf()!="symbol"?!1:AD.test(ED.call(t))};oE.exports=function(t){if(typeof t=="symbol")return!0;if(bD.call(t)!=="[object Symbol]")return!1;try{return TD(t)}catch{return!1}}}else oE.exports=function(t){return!1};var _2={},uE={get exports(){return _2},set exports(e){_2=e}},lE=typeof BigInt<"u"&&BigInt,CD=function(){return typeof lE=="function"&&typeof BigInt=="function"&&typeof lE(42)=="bigint"&&typeof BigInt(42)=="bigint"},kD=CD();if(kD){var OD=BigInt.prototype.valueOf,MD=function(t){try{return OD.call(t),!0}catch{}return!1};uE.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:MD(t)}}else uE.exports=function(t){return!1};var FD=l4,ND=vD,RD=wD,ID=x2,PD=_2,LD=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(FD(t))return"String";if(ND(t))return"Number";if(RD(t))return"Boolean";if(ID(t))return"Symbol";if(PD(t))return"BigInt"},dw=typeof Map=="function"&&Map.prototype?Map:null,DD=typeof Set=="function"&&Set.prototype?Set:null,gv;dw||(gv=function(t){return!1});var s4=dw?Map.prototype.has:null,fE=DD?Set.prototype.has:null;!gv&&!s4&&(gv=function(t){return!1});var c4=gv||function(t){if(!t||typeof t!="object")return!1;try{if(s4.call(t),fE)try{fE.call(t)}catch{return!0}return t instanceof dw}catch{}return!1},BD=typeof Map=="function"&&Map.prototype?Map:null,pw=typeof Set=="function"&&Set.prototype?Set:null,yv;pw||(yv=function(t){return!1});var sE=BD?Map.prototype.has:null,h4=pw?Set.prototype.has:null;!yv&&!h4&&(yv=function(t){return!1});var d4=yv||function(t){if(!t||typeof t!="object")return!1;try{if(h4.call(t),sE)try{sE.call(t)}catch{return!0}return t instanceof pw}catch{}return!1},xv=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,cE=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,_v;xv||(_v=function(t){return!1});var w2=xv?xv.prototype.has:null,Yy=cE?cE.prototype.has:null;!_v&&!w2&&(_v=function(t){return!1});var $D=_v||function(t){if(!t||typeof t!="object")return!1;try{if(w2.call(t,w2),Yy)try{Yy.call(t,Yy)}catch{return!0}return t instanceof xv}catch{}return!1},b2={},hE={get exports(){return b2},set exports(e){b2=e}},zD=qo,p4=ia,UD=zD("%WeakSet%",!0),Xy=p4("WeakSet.prototype.has",!0);if(Xy){var Qy=p4("WeakMap.prototype.has",!0);hE.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Xy(t,Xy),Qy)try{Qy(t,Qy)}catch{return!0}return t instanceof UD}catch{}return!1}}else hE.exports=function(t){return!1};var jD=c4,GD=d4,HD=$D,WD=b2,VD=function(t){if(t&&typeof t=="object"){if(jD(t))return"Map";if(GD(t))return"Set";if(HD(t))return"WeakMap";if(WD(t))return"WeakSet"}return!1},S2={},Zy={get exports(){return S2},set exports(e){S2=e}},dE=qk;if(cw()||mm()){var Ky=Symbol.iterator;Zy.exports=function(t){if(t!=null&&typeof t[Ky]<"u")return t[Ky]();if(dE(t))return Array.prototype[Ky].call(t)}}else{var qD=u4,YD=l4,pE=qo,XD=pE("%Map%",!0),QD=pE("%Set%",!0),Mi=ia,vE=Mi("Array.prototype.push"),mE=Mi("String.prototype.charCodeAt"),ZD=Mi("String.prototype.slice"),KD=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=mE(t,r);if(i<55296||i>56319)return r+1;var a=mE(t,r+1);return a<56320||a>57343?r+1:r+2},Jy=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},gE=function(t,r){if(qD(t)||dE(t))return Jy(t);if(YD(t)){var n=0;return{next:function(){var a=KD(t,n),u=ZD(t,n,a);return n=a,{done:a>t.length,value:u}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!XD&&!QD)Zy.exports=function(t){if(t!=null)return gE(t,!0)};else{var JD=c4,eB=d4,yE=Mi("Map.prototype.forEach",!0),xE=Mi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var _E=Mi("Map.prototype.iterator",!0),wE=Mi("Set.prototype.iterator",!0),bE=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var SE=Mi("Map.prototype.@@iterator",!0)||Mi("Map.prototype._es6-shim iterator_",!0),EE=Mi("Set.prototype.@@iterator",!0)||Mi("Set.prototype._es6-shim iterator_",!0),tB=function(t){if(JD(t)){if(_E)return bE(_E(t));if(SE)return SE(t);if(yE){var r=[];return yE(t,function(i,a){vE(r,[a,i])}),Jy(r)}}if(eB(t)){if(wE)return bE(wE(t));if(EE)return EE(t);if(xE){var n=[];return xE(t,function(i){vE(n,i)}),Jy(n)}}};Zy.exports=function(t){return tB(t)||gE(t)}}}const rB={},nB=Object.freeze(Object.defineProperty({__proto__:null,default:rB},Symbol.toStringTag,{value:"Module"})),iB=el(nB);var vw=typeof Map=="function"&&Map.prototype,e1=Object.getOwnPropertyDescriptor&&vw?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,wv=vw&&e1&&typeof e1.get=="function"?e1.get:null,aB=vw&&Map.prototype.forEach,mw=typeof Set=="function"&&Set.prototype,t1=Object.getOwnPropertyDescriptor&&mw?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,bv=mw&&t1&&typeof t1.get=="function"?t1.get:null,oB=mw&&Set.prototype.forEach,uB=typeof WeakMap=="function"&&WeakMap.prototype,gh=uB?WeakMap.prototype.has:null,lB=typeof WeakSet=="function"&&WeakSet.prototype,yh=lB?WeakSet.prototype.has:null,fB=typeof WeakRef=="function"&&WeakRef.prototype,AE=fB?WeakRef.prototype.deref:null,sB=Boolean.prototype.valueOf,cB=Object.prototype.toString,hB=Function.prototype.toString,dB=String.prototype.match,gw=String.prototype.slice,Ao=String.prototype.replace,pB=String.prototype.toUpperCase,TE=String.prototype.toLowerCase,v4=RegExp.prototype.test,CE=Array.prototype.concat,Wi=Array.prototype.join,vB=Array.prototype.slice,kE=Math.floor,E2=typeof BigInt=="function"?BigInt.prototype.valueOf:null,r1=Object.getOwnPropertySymbols,A2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",On=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hf||"symbol")?Symbol.toStringTag:null,m4=Object.prototype.propertyIsEnumerable,OE=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ME(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||v4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-kE(-e):kE(e);if(n!==e){var i=String(n),a=gw.call(t,i.length+1);return Ao.call(i,r,"$&_")+"."+Ao.call(Ao.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ao.call(t,r,"$&_")}var T2=iB,FE=T2.custom,NE=y4(FE)?FE:null,mB=function e(t,r,n,i){var a=r||{};if(yo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=yo(a,"customInspect")?a.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yo(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yo(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return _4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?ME(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?ME(t,c):c}var v=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=v&&v>0&&typeof t=="object")return C2(t)?"[Array]":"[Object]";var x=IB(a,n);if(typeof i>"u")i=[];else if(x4(i,t)>=0)return"[Circular]";function y(je,Ke,mt){if(Ke&&(i=vB.call(i),i.push(Ke)),mt){var lt={depth:a.depth};return yo(a,"quoteStyle")&&(lt.quoteStyle=a.quoteStyle),e(je,lt,n+1,i)}return e(je,a,n+1,i)}if(typeof t=="function"&&!RE(t)){var g=AB(t),k=Jp(t,y);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(k.length>0?" { "+Wi.call(k,", ")+" }":"")}if(y4(t)){var N=Hf?Ao.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A2.call(t);return typeof t=="object"&&!Hf?Nc(N):N}if(FB(t)){for(var b="<"+TE.call(String(t.nodeName)),w=t.attributes||[],A=0;A<w.length;A++)b+=" "+w[A].name+"="+g4(gB(w[A].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+TE.call(String(t.nodeName))+">",b}if(C2(t)){if(t.length===0)return"[]";var M=Jp(t,y);return x&&!RB(M)?"["+k2(M,x)+"]":"[ "+Wi.call(M,", ")+" ]"}if(xB(t)){var R=Jp(t,y);return!("cause"in Error.prototype)&&"cause"in t&&!m4.call(t,"cause")?"{ ["+String(t)+"] "+Wi.call(CE.call("[cause]: "+y(t.cause),R),", ")+" }":R.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Wi.call(R,", ")+" }"}if(typeof t=="object"&&u){if(NE&&typeof t[NE]=="function"&&T2)return T2(t,{depth:v-n});if(u!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(TB(t)){var L=[];return aB.call(t,function(je,Ke){L.push(y(Ke,t,!0)+" => "+y(je,t))}),IE("Map",wv.call(t),L,x)}if(OB(t)){var D=[];return oB.call(t,function(je){D.push(y(je,t))}),IE("Set",bv.call(t),D,x)}if(CB(t))return n1("WeakMap");if(MB(t))return n1("WeakSet");if(kB(t))return n1("WeakRef");if(wB(t))return Nc(y(Number(t)));if(SB(t))return Nc(y(E2.call(t)));if(bB(t))return Nc(sB.call(t));if(_B(t))return Nc(y(String(t)));if(!yB(t)&&!RE(t)){var ne=Jp(t,y),Y=OE?OE(t)===Object.prototype:t instanceof Object||t.constructor===Object,ae=t instanceof Object?"":"null prototype",Ce=!Y&&On&&Object(t)===t&&On in t?gw.call(Yo(t),8,-1):ae?"Object":"",Fe=Y||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Ie=Fe+(Ce||ae?"["+Wi.call(CE.call([],Ce||[],ae||[]),": ")+"] ":"");return ne.length===0?Ie+"{}":x?Ie+"{"+k2(ne,x)+"}":Ie+"{ "+Wi.call(ne,", ")+" }"}return String(t)};function g4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function gB(e){return Ao.call(String(e),/"/g,"&quot;")}function C2(e){return Yo(e)==="[object Array]"&&(!On||!(typeof e=="object"&&On in e))}function yB(e){return Yo(e)==="[object Date]"&&(!On||!(typeof e=="object"&&On in e))}function RE(e){return Yo(e)==="[object RegExp]"&&(!On||!(typeof e=="object"&&On in e))}function xB(e){return Yo(e)==="[object Error]"&&(!On||!(typeof e=="object"&&On in e))}function _B(e){return Yo(e)==="[object String]"&&(!On||!(typeof e=="object"&&On in e))}function wB(e){return Yo(e)==="[object Number]"&&(!On||!(typeof e=="object"&&On in e))}function bB(e){return Yo(e)==="[object Boolean]"&&(!On||!(typeof e=="object"&&On in e))}function y4(e){if(Hf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!A2)return!1;try{return A2.call(e),!0}catch{}return!1}function SB(e){if(!e||typeof e!="object"||!E2)return!1;try{return E2.call(e),!0}catch{}return!1}var EB=Object.prototype.hasOwnProperty||function(e){return e in this};function yo(e,t){return EB.call(e,t)}function Yo(e){return cB.call(e)}function AB(e){if(e.name)return e.name;var t=dB.call(hB.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function x4(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function TB(e){if(!wv||!e||typeof e!="object")return!1;try{wv.call(e);try{bv.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function CB(e){if(!gh||!e||typeof e!="object")return!1;try{gh.call(e,gh);try{yh.call(e,yh)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function kB(e){if(!AE||!e||typeof e!="object")return!1;try{return AE.call(e),!0}catch{}return!1}function OB(e){if(!bv||!e||typeof e!="object")return!1;try{bv.call(e);try{wv.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function MB(e){if(!yh||!e||typeof e!="object")return!1;try{yh.call(e,yh);try{gh.call(e,gh)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function FB(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function _4(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return _4(gw.call(e,0,t.maxStringLength),t)+n}var i=Ao.call(Ao.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,NB);return g4(i,"single",t)}function NB(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+pB.call(t.toString(16))}function Nc(e){return"Object("+e+")"}function n1(e){return e+" { ? }"}function IE(e,t,r,n){var i=n?k2(r,n):Wi.call(r,", ");return e+" ("+t+") {"+i+"}"}function RB(e){for(var t=0;t<e.length;t++)if(x4(e[t],`
804
804
  `)>=0)return!1;return!0}function IB(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Wi.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Wi.call(Array(t+1),r)}}function k2(e,t){if(e.length===0)return"";var r=`
805
805
  `+t.prev+t.base;return r+Wi.call(e,","+r)+`
806
- `+t.prev}function Jp(e,t){var r=C2(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=yo(e,i)?t(e[i],e):""}var a=typeof r1=="function"?r1(e):[],u;if(Hf){u={};for(var l=0;l<a.length;l++)u["$"+a[l]]=a[l]}for(var s in e)yo(e,s)&&(r&&String(Number(s))===s&&s<e.length||Hf&&u["$"+s]instanceof Symbol||(v4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof r1=="function")for(var c=0;c<a.length;c++)m4.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var yw=qo,os=ia,PB=mB,LB=yw("%TypeError%"),e0=yw("%WeakMap%",!0),t0=yw("%Map%",!0),DB=os("WeakMap.prototype.get",!0),BB=os("WeakMap.prototype.set",!0),$B=os("WeakMap.prototype.has",!0),zB=os("Map.prototype.get",!0),UB=os("Map.prototype.set",!0),jB=os("Map.prototype.has",!0),xw=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},GB=function(e,t){var r=xw(e,t);return r&&r.value},HB=function(e,t,r){var n=xw(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},WB=function(e,t){return!!xw(e,t)},VB=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new LB("Side channel does not contain "+PB(a))},get:function(a){if(e0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return DB(t,a)}else if(t0){if(r)return zB(r,a)}else if(n)return GB(n,a)},has:function(a){if(e0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return $B(t,a)}else if(t0){if(r)return jB(r,a)}else if(n)return WB(n,a);return!1},set:function(a,u){e0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new e0),BB(t,a,u)):t0?(r||(r=new t0),UB(r,a,u)):(n||(n={key:{},next:null}),HB(n,a,u))}};return i},qB=Object.prototype.hasOwnProperty,YB=Object.prototype.toString,w4=function(t,r,n){if(YB.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var u in t)qB.call(t,u)&&r.call(n,t[u],u,t)},i1=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],XB=typeof globalThis>"u"?Lr:globalThis,b4=function(){for(var t=[],r=0;r<i1.length;r++)typeof XB[i1[r]]=="function"&&(t[t.length]=i1[r]);return t},Sv={},QB={get exports(){return Sv},set exports(e){Sv=e}},a1,PE;function ZB(){if(PE)return a1;PE=1;var e=qo,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return a1=t,a1}var LE;function S4(){return LE||(LE=1,function(e){e.exports=ZB()}(QB)),Sv}var o1,DE;function KB(){if(DE)return o1;DE=1;var e=w4,t=b4,r=ia,n=r("Object.prototype.toString"),i=Vo(),a=typeof globalThis>"u"?Lr:globalThis,u=t(),l=r("Array.prototype.indexOf",!0)||function(k,N){for(var b=0;b<k.length;b+=1)if(k[b]===N)return b;return-1},s=r("String.prototype.slice"),c={},v=S4(),x=Object.getPrototypeOf;i&&v&&x&&e(u,function(g){var k=new a[g];if(Symbol.toStringTag in k){var N=x(k),b=v(N,Symbol.toStringTag);if(!b){var w=x(N);b=v(w,Symbol.toStringTag)}c[g]=b.get}});var y=function(k){var N=!1;return e(c,function(b,w){if(!N)try{N=b.call(k)===w}catch{}}),N};return o1=function(k){if(!k||typeof k!="object")return!1;if(!i||!(Symbol.toStringTag in k)){var N=s(n(k),8,-1);return l(u,N)>-1}return v?y(k):!1},o1}var E4=w4,JB=b4,A4=ia,e$=A4("Object.prototype.toString"),T4=Vo(),BE=typeof globalThis>"u"?Lr:globalThis,t$=JB(),r$=A4("String.prototype.slice"),C4={},u1=S4(),l1=Object.getPrototypeOf;T4&&u1&&l1&&E4(t$,function(e){if(typeof BE[e]=="function"){var t=new BE[e];if(Symbol.toStringTag in t){var r=l1(t),n=u1(r,Symbol.toStringTag);if(!n){var i=l1(r);n=u1(i,Symbol.toStringTag)}C4[e]=n.get}}});var n$=function(t){var r=!1;return E4(C4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},i$=KB(),a$=function(t){return i$(t)?!T4||!(Symbol.toStringTag in t)?r$(e$(t),8,-1):n$(t):!1},o$=sw,k4=mm(),O4=ia,$E=Object,u$=O4("Array.prototype.push"),zE=O4("Object.prototype.propertyIsEnumerable"),l$=k4?Object.getOwnPropertySymbols:null,M4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=$E(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=$E(arguments[i]),u=o$(a),l=k4&&(Object.getOwnPropertySymbols||l$);if(l)for(var s=l(a),c=0;c<s.length;++c){var v=s[c];zE(a,v)&&u$(u,v)}for(var x=0;x<u.length;++x){var y=u[x];if(zE(a,y)){var g=a[y];n[y]=g}}}return n},f1=M4,f$=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var u in i)a+=u;return e!==a},s$=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},F4=function(){return!Object.assign||f$()||s$()?f1:Object.assign},c$=fl,h$=F4,d$=function(){var t=h$();return c$(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},p$=fl,v$=Gf,m$=M4,N4=F4,g$=d$,y$=v$.apply(N4()),R4=function(t,r){return y$(Object,arguments)};p$(R4,{getPolyfill:N4,implementation:m$,shim:g$});var x$=R4,UE=sw,jE=qk,GE=OL,HE=RL,WE=ZL,VE=u4,qE=iD,YE=LD,_$=qo,Ga=ia,XE=VD,Wf=S2,w$=VB,QE=a$,I4=x$,ZE=Ga("Date.prototype.getTime"),s1=Object.getPrototypeOf,KE=Ga("Object.prototype.toString"),Ev=_$("%Set%",!0),O2=Ga("Map.prototype.has",!0),Av=Ga("Map.prototype.get",!0),JE=Ga("Map.prototype.size",!0),Tv=Ga("Set.prototype.add",!0),P4=Ga("Set.prototype.delete",!0),Cv=Ga("Set.prototype.has",!0),P0=Ga("Set.prototype.size",!0);function eA(e,t,r,n){for(var i=Wf(e),a;(a=i.next())&&!a.done;)if(Da(t,a.value,r,n))return P4(e,a.value),!0;return!1}function L4(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function b$(e,t,r,n,i,a){var u=L4(r);if(u!=null)return u;var l=Av(t,u),s=I4({},i,{strict:!1});return typeof l>"u"&&!O2(t,u)||!Da(n,l,s,a)?!1:!O2(e,u)&&Da(n,l,s,a)}function S$(e,t,r){var n=L4(r);return n??(Cv(t,n)&&!Cv(e,n))}function tA(e,t,r,n,i,a){for(var u=Wf(e),l,s;(l=u.next())&&!l.done;)if(s=l.value,Da(r,s,i,a)&&Da(n,Av(t,s),i,a))return P4(e,s),!0;return!1}function Da(e,t,r,n){var i=r||{};if(i.strict?GE(e,t):e===t)return!0;var a=YE(e),u=YE(t);if(a!==u)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?GE(e,t):e==t;var l=n.has(e),s=n.has(t),c;if(l&&s){if(n.get(e)===n.get(t))return!0}else c={};return l||n.set(e,c),s||n.set(t,c),T$(e,t,i,n)}function rA(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function E$(e,t,r,n){if(P0(e)!==P0(t))return!1;for(var i=Wf(e),a=Wf(t),u,l,s;(u=i.next())&&!u.done;)if(u.value&&typeof u.value=="object")s||(s=new Ev),Tv(s,u.value);else if(!Cv(t,u.value)){if(r.strict||!S$(e,t,u.value))return!1;s||(s=new Ev),Tv(s,u.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!eA(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Cv(e,l.value)&&!eA(s,l.value,r.strict,n))return!1;return P0(s)===0}return!0}function A$(e,t,r,n){if(JE(e)!==JE(t))return!1;for(var i=Wf(e),a=Wf(t),u,l,s,c,v,x;(u=i.next())&&!u.done;)if(c=u.value[0],v=u.value[1],c&&typeof c=="object")s||(s=new Ev),Tv(s,c);else if(x=Av(t,c),typeof x>"u"&&!O2(t,c)||!Da(v,x,r,n)){if(r.strict||!b$(e,t,c,v,r,n))return!1;s||(s=new Ev),Tv(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],x=l.value[1],c&&typeof c=="object"){if(!tA(s,e,c,x,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Da(Av(e,c),x,r,n))&&!tA(s,e,c,x,I4({},r,{strict:!1}),n))return!1;return P0(s)===0}return!0}function T$(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||KE(e)!==KE(t)||jE(e)!==jE(t))return!1;var u=VE(e),l=VE(t);if(u!==l)return!1;var s=e instanceof Error,c=t instanceof Error;if(s!==c||(s||c)&&(e.name!==t.name||e.message!==t.message))return!1;var v=HE(e),x=HE(t);if(v!==x||(v||x)&&(e.source!==t.source||WE(e)!==WE(t)))return!1;var y=qE(e),g=qE(t);if(y!==g||(y||g)&&ZE(e)!==ZE(t)||r.strict&&s1&&s1(e)!==s1(t)||QE(e)!==QE(t))return!1;var k=rA(e),N=rA(t);if(k!==N)return!1;if(k||N){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var b=UE(e),w=UE(t);if(b.length!==w.length)return!1;for(b.sort(),w.sort(),i=b.length-1;i>=0;i--)if(b[i]!=w[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Da(e[a],t[a],r,n))return!1;var A=XE(e),M=XE(t);return A!==M?!1:A==="Set"||M==="Set"?E$(e,t,r,n):A==="Map"?A$(e,t,r,n):!0}var Vq=function(t,r,n){return Da(t,r,n,w$())},nA={},C$={get exports(){return nA},set exports(e){nA=e}};/*! Native Promise Only
806
+ `+t.prev}function Jp(e,t){var r=C2(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=yo(e,i)?t(e[i],e):""}var a=typeof r1=="function"?r1(e):[],u;if(Hf){u={};for(var l=0;l<a.length;l++)u["$"+a[l]]=a[l]}for(var s in e)yo(e,s)&&(r&&String(Number(s))===s&&s<e.length||Hf&&u["$"+s]instanceof Symbol||(v4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof r1=="function")for(var c=0;c<a.length;c++)m4.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var yw=qo,os=ia,PB=mB,LB=yw("%TypeError%"),e0=yw("%WeakMap%",!0),t0=yw("%Map%",!0),DB=os("WeakMap.prototype.get",!0),BB=os("WeakMap.prototype.set",!0),$B=os("WeakMap.prototype.has",!0),zB=os("Map.prototype.get",!0),UB=os("Map.prototype.set",!0),jB=os("Map.prototype.has",!0),xw=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},GB=function(e,t){var r=xw(e,t);return r&&r.value},HB=function(e,t,r){var n=xw(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},WB=function(e,t){return!!xw(e,t)},VB=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new LB("Side channel does not contain "+PB(a))},get:function(a){if(e0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return DB(t,a)}else if(t0){if(r)return zB(r,a)}else if(n)return GB(n,a)},has:function(a){if(e0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return $B(t,a)}else if(t0){if(r)return jB(r,a)}else if(n)return WB(n,a);return!1},set:function(a,u){e0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new e0),BB(t,a,u)):t0?(r||(r=new t0),UB(r,a,u)):(n||(n={key:{},next:null}),HB(n,a,u))}};return i},qB=Object.prototype.hasOwnProperty,YB=Object.prototype.toString,w4=function(t,r,n){if(YB.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var u in t)qB.call(t,u)&&r.call(n,t[u],u,t)},i1=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],XB=typeof globalThis>"u"?Lr:globalThis,b4=function(){for(var t=[],r=0;r<i1.length;r++)typeof XB[i1[r]]=="function"&&(t[t.length]=i1[r]);return t},Sv={},QB={get exports(){return Sv},set exports(e){Sv=e}},a1,PE;function ZB(){if(PE)return a1;PE=1;var e=qo,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return a1=t,a1}var LE;function S4(){return LE||(LE=1,function(e){e.exports=ZB()}(QB)),Sv}var o1,DE;function KB(){if(DE)return o1;DE=1;var e=w4,t=b4,r=ia,n=r("Object.prototype.toString"),i=Vo(),a=typeof globalThis>"u"?Lr:globalThis,u=t(),l=r("Array.prototype.indexOf",!0)||function(k,N){for(var b=0;b<k.length;b+=1)if(k[b]===N)return b;return-1},s=r("String.prototype.slice"),c={},v=S4(),x=Object.getPrototypeOf;i&&v&&x&&e(u,function(g){var k=new a[g];if(Symbol.toStringTag in k){var N=x(k),b=v(N,Symbol.toStringTag);if(!b){var w=x(N);b=v(w,Symbol.toStringTag)}c[g]=b.get}});var y=function(k){var N=!1;return e(c,function(b,w){if(!N)try{N=b.call(k)===w}catch{}}),N};return o1=function(k){if(!k||typeof k!="object")return!1;if(!i||!(Symbol.toStringTag in k)){var N=s(n(k),8,-1);return l(u,N)>-1}return v?y(k):!1},o1}var E4=w4,JB=b4,A4=ia,e7=A4("Object.prototype.toString"),T4=Vo(),BE=typeof globalThis>"u"?Lr:globalThis,t7=JB(),r7=A4("String.prototype.slice"),C4={},u1=S4(),l1=Object.getPrototypeOf;T4&&u1&&l1&&E4(t7,function(e){if(typeof BE[e]=="function"){var t=new BE[e];if(Symbol.toStringTag in t){var r=l1(t),n=u1(r,Symbol.toStringTag);if(!n){var i=l1(r);n=u1(i,Symbol.toStringTag)}C4[e]=n.get}}});var n7=function(t){var r=!1;return E4(C4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},i7=KB(),a7=function(t){return i7(t)?!T4||!(Symbol.toStringTag in t)?r7(e7(t),8,-1):n7(t):!1},o7=sw,k4=mm(),O4=ia,$E=Object,u7=O4("Array.prototype.push"),zE=O4("Object.prototype.propertyIsEnumerable"),l7=k4?Object.getOwnPropertySymbols:null,M4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=$E(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=$E(arguments[i]),u=o7(a),l=k4&&(Object.getOwnPropertySymbols||l7);if(l)for(var s=l(a),c=0;c<s.length;++c){var v=s[c];zE(a,v)&&u7(u,v)}for(var x=0;x<u.length;++x){var y=u[x];if(zE(a,y)){var g=a[y];n[y]=g}}}return n},f1=M4,f7=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var u in i)a+=u;return e!==a},s7=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},F4=function(){return!Object.assign||f7()||s7()?f1:Object.assign},c7=fl,h7=F4,d7=function(){var t=h7();return c7(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},p7=fl,v7=Gf,m7=M4,N4=F4,g7=d7,y7=v7.apply(N4()),R4=function(t,r){return y7(Object,arguments)};p7(R4,{getPolyfill:N4,implementation:m7,shim:g7});var x7=R4,UE=sw,jE=qk,GE=OL,HE=RL,WE=ZL,VE=u4,qE=iD,YE=LD,_7=qo,Ga=ia,XE=VD,Wf=S2,w7=VB,QE=a7,I4=x7,ZE=Ga("Date.prototype.getTime"),s1=Object.getPrototypeOf,KE=Ga("Object.prototype.toString"),Ev=_7("%Set%",!0),O2=Ga("Map.prototype.has",!0),Av=Ga("Map.prototype.get",!0),JE=Ga("Map.prototype.size",!0),Tv=Ga("Set.prototype.add",!0),P4=Ga("Set.prototype.delete",!0),Cv=Ga("Set.prototype.has",!0),P0=Ga("Set.prototype.size",!0);function eA(e,t,r,n){for(var i=Wf(e),a;(a=i.next())&&!a.done;)if(Da(t,a.value,r,n))return P4(e,a.value),!0;return!1}function L4(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function b7(e,t,r,n,i,a){var u=L4(r);if(u!=null)return u;var l=Av(t,u),s=I4({},i,{strict:!1});return typeof l>"u"&&!O2(t,u)||!Da(n,l,s,a)?!1:!O2(e,u)&&Da(n,l,s,a)}function S7(e,t,r){var n=L4(r);return n??(Cv(t,n)&&!Cv(e,n))}function tA(e,t,r,n,i,a){for(var u=Wf(e),l,s;(l=u.next())&&!l.done;)if(s=l.value,Da(r,s,i,a)&&Da(n,Av(t,s),i,a))return P4(e,s),!0;return!1}function Da(e,t,r,n){var i=r||{};if(i.strict?GE(e,t):e===t)return!0;var a=YE(e),u=YE(t);if(a!==u)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?GE(e,t):e==t;var l=n.has(e),s=n.has(t),c;if(l&&s){if(n.get(e)===n.get(t))return!0}else c={};return l||n.set(e,c),s||n.set(t,c),T7(e,t,i,n)}function rA(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function E7(e,t,r,n){if(P0(e)!==P0(t))return!1;for(var i=Wf(e),a=Wf(t),u,l,s;(u=i.next())&&!u.done;)if(u.value&&typeof u.value=="object")s||(s=new Ev),Tv(s,u.value);else if(!Cv(t,u.value)){if(r.strict||!S7(e,t,u.value))return!1;s||(s=new Ev),Tv(s,u.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!eA(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Cv(e,l.value)&&!eA(s,l.value,r.strict,n))return!1;return P0(s)===0}return!0}function A7(e,t,r,n){if(JE(e)!==JE(t))return!1;for(var i=Wf(e),a=Wf(t),u,l,s,c,v,x;(u=i.next())&&!u.done;)if(c=u.value[0],v=u.value[1],c&&typeof c=="object")s||(s=new Ev),Tv(s,c);else if(x=Av(t,c),typeof x>"u"&&!O2(t,c)||!Da(v,x,r,n)){if(r.strict||!b7(e,t,c,v,r,n))return!1;s||(s=new Ev),Tv(s,c)}if(s){for(;(l=a.next())&&!l.done;)if(c=l.value[0],x=l.value[1],c&&typeof c=="object"){if(!tA(s,e,c,x,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Da(Av(e,c),x,r,n))&&!tA(s,e,c,x,I4({},r,{strict:!1}),n))return!1;return P0(s)===0}return!0}function T7(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||KE(e)!==KE(t)||jE(e)!==jE(t))return!1;var u=VE(e),l=VE(t);if(u!==l)return!1;var s=e instanceof Error,c=t instanceof Error;if(s!==c||(s||c)&&(e.name!==t.name||e.message!==t.message))return!1;var v=HE(e),x=HE(t);if(v!==x||(v||x)&&(e.source!==t.source||WE(e)!==WE(t)))return!1;var y=qE(e),g=qE(t);if(y!==g||(y||g)&&ZE(e)!==ZE(t)||r.strict&&s1&&s1(e)!==s1(t)||QE(e)!==QE(t))return!1;var k=rA(e),N=rA(t);if(k!==N)return!1;if(k||N){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var b=UE(e),w=UE(t);if(b.length!==w.length)return!1;for(b.sort(),w.sort(),i=b.length-1;i>=0;i--)if(b[i]!=w[i])return!1;for(i=b.length-1;i>=0;i--)if(a=b[i],!Da(e[a],t[a],r,n))return!1;var A=XE(e),M=XE(t);return A!==M?!1:A==="Set"||M==="Set"?E7(e,t,r,n):A==="Map"?A7(e,t,r,n):!0}var Vq=function(t,r,n){return Da(t,r,n,w7())},nA={},C7={get exports(){return nA},set exports(e){nA=e}};/*! Native Promise Only
807
807
  v0.8.1 (c) Kyle Simpson
808
808
  MIT License: http://getify.mit-license.org
809
- */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Lr<"u"?Lr:Lr,function(){var r,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(M){return setImmediate(M)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(M,R,L,D){return Object.defineProperty(M,R,{value:L,writable:!0,configurable:D!==!1})}}catch{r=function(R,L,D){return R[L]=D,R}}i=function(){var M,R,L;function D(ne,Y){this.fn=ne,this.self=Y,this.next=void 0}return{add:function(Y,ae){L=new D(Y,ae),R?R.next=L:M=L,R=L,L=void 0},drain:function(){var Y=M;for(M=R=n=void 0;Y;)Y.fn.call(Y.self),Y=Y.next}}}();function l(A,M){i.add(A,M),n||(n=u(i.drain))}function s(A){var M,R=typeof A;return A!=null&&(R=="object"||R=="function")&&(M=A.then),typeof M=="function"?M:!1}function c(){for(var A=0;A<this.chain.length;A++)v(this,this.state===1?this.chain[A].success:this.chain[A].failure,this.chain[A]);this.chain.length=0}function v(A,M,R){var L,D;try{M===!1?R.reject(A.msg):(M===!0?L=A.msg:L=M.call(void 0,A.msg),L===R.promise?R.reject(TypeError("Promise-chain cycle")):(D=s(L))?D.call(L,R.resolve,R.reject):R.resolve(L))}catch(ne){R.reject(ne)}}function x(A){var M,R=this;if(!R.triggered){R.triggered=!0,R.def&&(R=R.def);try{(M=s(A))?l(function(){var L=new k(R);try{M.call(A,function(){x.apply(L,arguments)},function(){y.apply(L,arguments)})}catch(D){y.call(L,D)}}):(R.msg=A,R.state=1,R.chain.length>0&&l(c,R))}catch(L){y.call(new k(R),L)}}}function y(A){var M=this;M.triggered||(M.triggered=!0,M.def&&(M=M.def),M.msg=A,M.state=2,M.chain.length>0&&l(c,M))}function g(A,M,R,L){for(var D=0;D<M.length;D++)(function(Y){A.resolve(M[Y]).then(function(Ce){R(Y,Ce)},L)})(D)}function k(A){this.def=A,this.triggered=!1}function N(A){this.promise=A,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(A){if(typeof A!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var M=new N(this);this.then=function(L,D){var ne={success:typeof L=="function"?L:!0,failure:typeof D=="function"?D:!1};return ne.promise=new this.constructor(function(ae,Ce){if(typeof ae!="function"||typeof Ce!="function")throw TypeError("Not a function");ne.resolve=ae,ne.reject=Ce}),M.chain.push(ne),M.state!==0&&l(c,M),ne.promise},this.catch=function(L){return this.then(void 0,L)};try{A.call(void 0,function(L){x.call(M,L)},function(L){y.call(M,L)})}catch(R){y.call(M,R)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(M){var R=this;return M&&typeof M=="object"&&M.__NPO__===1?M:new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");D(M)})}),r(b,"reject",function(M){return new this(function(L,D){if(typeof L!="function"||typeof D!="function")throw TypeError("Not a function");D(M)})}),r(b,"all",function(M){var R=this;return a.call(M)!="[object Array]"?R.reject(TypeError("Not an array")):M.length===0?R.resolve([]):new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");var Y=M.length,ae=Array(Y),Ce=0;g(R,M,function(Ie,je){ae[Ie]=je,++Ce===Y&&D(ae)},ne)})}),r(b,"race",function(M){var R=this;return a.call(M)!="[object Array]"?R.reject(TypeError("Not an array")):new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");g(R,M,function(ae,Ce){D(Ce)},ne)})}),b})})(C$);var iA={},k$={get exports(){return iA},set exports(e){iA=e}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(o){return r.call(o)},i=self.document;function a(o){return o&&(o.ownerDocument||o.document||o).documentElement}function u(o){return o&&(o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(f){for(var h=f.length,d=new Array(h);h--;)d[h]=f[h];return d}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,x=v.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,d){c.call(this,f,h,d+"")},v.setProperty=function(f,h,d){x.call(this,f,h+"",d)}}t.ascending=y;function y(o,f){return o<f?-1:o>f?1:o>=f?0:NaN}t.descending=function(o,f){return f<o?-1:f>o?1:f>=o?0:NaN},t.min=function(o,f){var h=-1,d=o.length,p,m;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=m;break}for(;++h<d;)(m=o[h])!=null&&p>m&&(p=m)}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&p>m&&(p=m)}return p},t.max=function(o,f){var h=-1,d=o.length,p,m;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=m;break}for(;++h<d;)(m=o[h])!=null&&m>p&&(p=m)}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&m>p&&(p=m)}return p},t.extent=function(o,f){var h=-1,d=o.length,p,m,E;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=E=m;break}for(;++h<d;)(m=o[h])!=null&&(p>m&&(p=m),E<m&&(E=m))}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=E=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&(p>m&&(p=m),E<m&&(E=m))}return[p,E]};function g(o){return o===null?NaN:+o}function k(o){return!isNaN(o)}t.sum=function(o,f){var h=0,d=o.length,p,m=-1;if(arguments.length===1)for(;++m<d;)k(p=+o[m])&&(h+=p);else for(;++m<d;)k(p=+f.call(o,o[m],m))&&(h+=p);return h},t.mean=function(o,f){var h=0,d=o.length,p,m=-1,E=d;if(arguments.length===1)for(;++m<d;)k(p=g(o[m]))?h+=p:--E;else for(;++m<d;)k(p=g(f.call(o,o[m],m)))?h+=p:--E;if(E)return h/E},t.quantile=function(o,f){var h=(o.length-1)*f+1,d=Math.floor(h),p=+o[d-1],m=h-d;return m?p+m*(o[d]-p):p},t.median=function(o,f){var h=[],d=o.length,p,m=-1;if(arguments.length===1)for(;++m<d;)k(p=g(o[m]))&&h.push(p);else for(;++m<d;)k(p=g(f.call(o,o[m],m)))&&h.push(p);if(h.length)return t.quantile(h.sort(y),.5)},t.variance=function(o,f){var h=o.length,d=0,p,m,E=0,_=-1,O=0;if(arguments.length===1)for(;++_<h;)k(p=g(o[_]))&&(m=p-d,d+=m/++O,E+=m*(p-d));else for(;++_<h;)k(p=g(f.call(o,o[_],_)))&&(m=p-d,d+=m/++O,E+=m*(p-d));if(O>1)return E/(O-1)},t.deviation=function(){var o=t.variance.apply(this,arguments);return o&&Math.sqrt(o)};function N(o){return{left:function(f,h,d,p){for(arguments.length<3&&(d=0),arguments.length<4&&(p=f.length);d<p;){var m=d+p>>>1;o(f[m],h)<0?d=m+1:p=m}return d},right:function(f,h,d,p){for(arguments.length<3&&(d=0),arguments.length<4&&(p=f.length);d<p;){var m=d+p>>>1;o(f[m],h)>0?p=m:d=m+1}return d}}}var b=N(y);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(o){return N(o.length===1?function(f,h){return y(o(f),h)}:o)},t.shuffle=function(o,f,h){(d=arguments.length)<3&&(h=o.length,d<2&&(f=0));for(var d=h-f,p,m;d;)m=Math.random()*d--|0,p=o[d+f],o[d+f]=o[m+f],o[m+f]=p;return o},t.permute=function(o,f){for(var h=f.length,d=new Array(h);h--;)d[h]=o[f[h]];return d},t.pairs=function(o){for(var f=0,h=o.length-1,d=o[0],p=new Array(h<0?0:h);f<h;)p[f]=[d,d=o[++f]];return p},t.transpose=function(o){if(!(m=o.length))return[];for(var f=-1,h=t.min(o,w),d=new Array(h);++f<h;)for(var p=-1,m,E=d[f]=new Array(m);++p<m;)E[p]=o[p][f];return d};function w(o){return o.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(o){var f=[];for(var h in o)f.push(h);return f},t.values=function(o){var f=[];for(var h in o)f.push(o[h]);return f},t.entries=function(o){var f=[];for(var h in o)f.push({key:h,value:o[h]});return f},t.merge=function(o){for(var f=o.length,h,d=-1,p=0,m,E;++d<f;)p+=o[d].length;for(m=new Array(p);--f>=0;)for(E=o[f],h=E.length;--h>=0;)m[--p]=E[h];return m};var A=Math.abs;t.range=function(o,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=o,o=0)),(f-o)/h===1/0)throw new Error("infinite range");var d=[],p=M(A(h)),m=-1,E;if(o*=p,f*=p,h*=p,h<0)for(;(E=o+h*++m)>f;)d.push(E/p);else for(;(E=o+h*++m)<f;)d.push(E/p);return d};function M(o){for(var f=1;o*f%1;)f*=10;return f}function R(o,f){for(var h in f)Object.defineProperty(o.prototype,h,{value:f[h],enumerable:!1})}t.map=function(o,f){var h=new L;if(o instanceof L)o.forEach(function(_,O){h.set(_,O)});else if(Array.isArray(o)){var d=-1,p=o.length,m;if(arguments.length===1)for(;++d<p;)h.set(d,o[d]);else for(;++d<p;)h.set(f.call(o,m=o[d],d),m)}else for(var E in o)h.set(E,o[E]);return h};function L(){this._=Object.create(null)}var D="__proto__",ne="\0";R(L,{has:Ce,get:function(o){return this._[Y(o)]},set:function(o,f){return this._[Y(o)]=f},remove:Fe,keys:Ie,values:function(){var o=[];for(var f in this._)o.push(this._[f]);return o},entries:function(){var o=[];for(var f in this._)o.push({key:ae(f),value:this._[f]});return o},size:je,empty:Ke,forEach:function(o){for(var f in this._)o.call(this,ae(f),this._[f])}});function Y(o){return(o+="")===D||o[0]===ne?ne+o:o}function ae(o){return(o+="")[0]===ne?o.slice(1):o}function Ce(o){return Y(o)in this._}function Fe(o){return(o=Y(o))in this._&&delete this._[o]}function Ie(){var o=[];for(var f in this._)o.push(ae(f));return o}function je(){var o=0;for(var f in this._)++o;return o}function Ke(){for(var o in this._)return!1;return!0}t.nest=function(){var o={},f=[],h=[],d,p;function m(_,O,I){if(I>=f.length)return p?p.call(o,O):d?O.sort(d):O;for(var P=-1,$=O.length,z=f[I++],re,oe,j,q=new L,K;++P<$;)(K=q.get(re=z(oe=O[P])))?K.push(oe):q.set(re,[oe]);return _?(oe=_(),j=function(ue,le){oe.set(ue,m(_,le,I))}):(oe={},j=function(ue,le){oe[ue]=m(_,le,I)}),q.forEach(j),oe}function E(_,O){if(O>=f.length)return _;var I=[],P=h[O++];return _.forEach(function($,z){I.push({key:$,values:E(z,O)})}),P?I.sort(function($,z){return P($.key,z.key)}):I}return o.map=function(_,O){return m(O,_,0)},o.entries=function(_){return E(m(t.map,_,0),0)},o.key=function(_){return f.push(_),o},o.sortKeys=function(_){return h[f.length-1]=_,o},o.sortValues=function(_){return d=_,o},o.rollup=function(_){return p=_,o},o},t.set=function(o){var f=new mt;if(o)for(var h=0,d=o.length;h<d;++h)f.add(o[h]);return f};function mt(){this._=Object.create(null)}R(mt,{has:Ce,add:function(o){return this._[Y(o+="")]=!0,o},remove:Fe,values:Ie,size:je,empty:Ke,forEach:function(o){for(var f in this._)o.call(this,ae(f))}}),t.behavior={};function lt(o){return o}t.rebind=function(o,f){for(var h=1,d=arguments.length,p;++h<d;)o[p=arguments[h]]=Ue(o,f,f[p]);return o};function Ue(o,f,h){return function(){var d=h.apply(f,arguments);return d===f?o:d}}function Ye(o,f){if(f in o)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,d=It.length;h<d;++h){var p=It[h]+f;if(p in o)return p}}var It=["webkit","ms","moz","Moz","o","O"];function Ze(){}t.dispatch=function(){for(var o=new Ee,f=-1,h=arguments.length;++f<h;)o[arguments[f]]=tt(o);return o};function Ee(){}Ee.prototype.on=function(o,f){var h=o.indexOf("."),d="";if(h>=0&&(d=o.slice(h+1),o=o.slice(0,h)),o)return arguments.length<2?this[o].on(d):this[o].on(d,f);if(arguments.length===2){if(f==null)for(o in this)this.hasOwnProperty(o)&&this[o].on(d,null);return this}};function tt(o){var f=[],h=new L;function d(){for(var p=f,m=-1,E=p.length,_;++m<E;)(_=p[m].on)&&_.apply(this,arguments);return o}return d.on=function(p,m){var E=h.get(p),_;return arguments.length<2?E&&E.on:(E&&(E.on=null,f=f.slice(0,_=f.indexOf(E)).concat(f.slice(_+1)),h.remove(p)),m&&f.push(h.set(p,{on:m})),o)},d}t.event=null;function ct(){t.event.preventDefault()}function rt(){for(var o=t.event,f;f=o.sourceEvent;)o=f;return o}function yt(o){for(var f=new Ee,h=0,d=arguments.length;++h<d;)f[arguments[h]]=tt(f);return f.of=function(p,m){return function(E){try{var _=E.sourceEvent=t.event;E.target=o,t.event=E,f[E.type].apply(p,m)}finally{t.event=_}}},f}t.requote=function(o){return o.replace(Tt,"\\$&")};var Tt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Yt={}.__proto__?function(o,f){o.__proto__=f}:function(o,f){for(var h in f)o[h]=f[h]};function Xt(o){return Yt(o,Ae),o}var Qe=function(o,f){return f.querySelector(o)},Ot=function(o,f){return f.querySelectorAll(o)},jt=function(o,f){var h=o.matches||o[Ye(o,"matchesSelector")];return jt=function(d,p){return h.call(d,p)},jt(o,f)};typeof Sizzle=="function"&&(Qe=function(o,f){return Sizzle(o,f)[0]||null},Ot=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ae=t.selection.prototype=[];Ae.select=function(o){var f=[],h,d,p,m;o=G(o);for(var E=-1,_=this.length;++E<_;){f.push(h=[]),h.parentNode=(p=this[E]).parentNode;for(var O=-1,I=p.length;++O<I;)(m=p[O])?(h.push(d=o.call(m,m.__data__,O,E)),d&&"__data__"in m&&(d.__data__=m.__data__)):h.push(null)}return Xt(f)};function G(o){return typeof o=="function"?o:function(){return Qe(o,this)}}Ae.selectAll=function(o){var f=[],h,d;o=ie(o);for(var p=-1,m=this.length;++p<m;)for(var E=this[p],_=-1,O=E.length;++_<O;)(d=E[_])&&(f.push(h=n(o.call(d,d.__data__,_,p))),h.parentNode=d);return Xt(f)};function ie(o){return typeof o=="function"?o:function(){return Ot(o,this)}}var C="http://www.w3.org/1999/xhtml",S={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:S,qualify:function(o){var f=o.indexOf(":"),h=o;return f>=0&&(h=o.slice(0,f))!=="xmlns"&&(o=o.slice(f+1)),S.hasOwnProperty(h)?{space:S[h],local:o}:o}},Ae.attr=function(o,f){if(arguments.length<2){if(typeof o=="string"){var h=this.node();return o=t.ns.qualify(o),o.local?h.getAttributeNS(o.space,o.local):h.getAttribute(o)}for(f in o)this.each(T(f,o[f]));return this}return this.each(T(o,f))};function T(o,f){o=t.ns.qualify(o);function h(){this.removeAttribute(o)}function d(){this.removeAttributeNS(o.space,o.local)}function p(){this.setAttribute(o,f)}function m(){this.setAttributeNS(o.space,o.local,f)}function E(){var O=f.apply(this,arguments);O==null?this.removeAttribute(o):this.setAttribute(o,O)}function _(){var O=f.apply(this,arguments);O==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,O)}return f==null?o.local?d:h:typeof f=="function"?o.local?_:E:o.local?m:p}function B(o){return o.trim().replace(/\s+/g," ")}Ae.classed=function(o,f){if(arguments.length<2){if(typeof o=="string"){var h=this.node(),d=(o=Ne(o)).length,p=-1;if(f=h.classList){for(;++p<d;)if(!f.contains(o[p]))return!1}else for(f=h.getAttribute("class");++p<d;)if(!se(o[p]).test(f))return!1;return!0}for(f in o)this.each(De(f,o[f]));return this}return this.each(De(o,f))};function se(o){return new RegExp("(?:^|\\s+)"+t.requote(o)+"(?:\\s+|$)","g")}function Ne(o){return(o+"").trim().split(/^|\s+/)}function De(o,f){o=Ne(o).map(Qt);var h=o.length;function d(){for(var m=-1;++m<h;)o[m](this,f)}function p(){for(var m=-1,E=f.apply(this,arguments);++m<h;)o[m](this,E)}return typeof f=="function"?p:d}function Qt(o){var f=se(o);return function(h,d){if(p=h.classList)return d?p.add(o):p.remove(o);var p=h.getAttribute("class")||"";d?(f.lastIndex=0,f.test(p)||h.setAttribute("class",B(p+" "+o))):h.setAttribute("class",B(p.replace(f," ")))}}Ae.style=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f="");for(h in o)this.each(fr(h,o[h],f));return this}if(d<2){var p=this.node();return u(p).getComputedStyle(p,null).getPropertyValue(o)}h=""}return this.each(fr(o,f,h))};function fr(o,f,h){function d(){this.style.removeProperty(o)}function p(){this.style.setProperty(o,f,h)}function m(){var E=f.apply(this,arguments);E==null?this.style.removeProperty(o):this.style.setProperty(o,E,h)}return f==null?d:typeof f=="function"?m:p}Ae.property=function(o,f){if(arguments.length<2){if(typeof o=="string")return this.node()[o];for(f in o)this.each(rr(f,o[f]));return this}return this.each(rr(o,f))};function rr(o,f){function h(){delete this[o]}function d(){this[o]=f}function p(){var m=f.apply(this,arguments);m==null?delete this[o]:this[o]=m}return f==null?h:typeof f=="function"?p:d}Ae.text=function(o){return arguments.length?this.each(typeof o=="function"?function(){var f=o.apply(this,arguments);this.textContent=f??""}:o==null?function(){this.textContent=""}:function(){this.textContent=o}):this.node().textContent},Ae.html=function(o){return arguments.length?this.each(typeof o=="function"?function(){var f=o.apply(this,arguments);this.innerHTML=f??""}:o==null?function(){this.innerHTML=""}:function(){this.innerHTML=o}):this.node().innerHTML},Ae.append=function(o){return o=Hr(o),this.select(function(){return this.appendChild(o.apply(this,arguments))})};function Hr(o){function f(){var d=this.ownerDocument,p=this.namespaceURI;return p===C&&d.documentElement.namespaceURI===C?d.createElement(o):d.createElementNS(p,o)}function h(){return this.ownerDocument.createElementNS(o.space,o.local)}return typeof o=="function"?o:(o=t.ns.qualify(o)).local?h:f}Ae.insert=function(o,f){return o=Hr(o),f=G(f),this.select(function(){return this.insertBefore(o.apply(this,arguments),f.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(Ar)};function Ar(){var o=this.parentNode;o&&o.removeChild(this)}Ae.data=function(o,f){var h=-1,d=this.length,p,m;if(!arguments.length){for(o=new Array(d=(p=this[0]).length);++h<d;)(m=p[h])&&(o[h]=m.__data__);return o}function E(P,$){var z,re=P.length,oe=$.length,j=Math.min(re,oe),q=new Array(oe),K=new Array(oe),ue=new Array(re),le,ee;if(f){var Me=new L,Be=new Array(re),Je;for(z=-1;++z<re;)(le=P[z])&&(Me.has(Je=f.call(le,le.__data__,z))?ue[z]=le:Me.set(Je,le),Be[z]=Je);for(z=-1;++z<oe;)(le=Me.get(Je=f.call($,ee=$[z],z)))?le!==!0&&(q[z]=le,le.__data__=ee):K[z]=Li(ee),Me.set(Je,!0);for(z=-1;++z<re;)z in Be&&Me.get(Be[z])!==!0&&(ue[z]=P[z])}else{for(z=-1;++z<j;)le=P[z],ee=$[z],le?(le.__data__=ee,q[z]=le):K[z]=Li(ee);for(;z<oe;++z)K[z]=Li($[z]);for(;z<re;++z)ue[z]=P[z]}K.update=q,K.parentNode=q.parentNode=ue.parentNode=P.parentNode,_.push(K),O.push(q),I.push(ue)}var _=md([]),O=Xt([]),I=Xt([]);if(typeof o=="function")for(;++h<d;)E(p=this[h],o.call(p,p.parentNode.__data__,h));else for(;++h<d;)E(p=this[h],o);return O.enter=function(){return _},O.exit=function(){return I},O};function Li(o){return{__data__:o}}Ae.datum=function(o){return arguments.length?this.property("__data__",o):this.property("__data__")},Ae.filter=function(o){var f=[],h,d,p;typeof o!="function"&&(o=Zo(o));for(var m=0,E=this.length;m<E;m++){f.push(h=[]),h.parentNode=(d=this[m]).parentNode;for(var _=0,O=d.length;_<O;_++)(p=d[_])&&o.call(p,p.__data__,_,m)&&h.push(p)}return Xt(f)};function Zo(o){return function(){return jt(this,o)}}Ae.order=function(){for(var o=-1,f=this.length;++o<f;)for(var h=this[o],d=h.length-1,p=h[d],m;--d>=0;)(m=h[d])&&(p&&p!==m.nextSibling&&p.parentNode.insertBefore(m,p),p=m);return this},Ae.sort=function(o){o=aa.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(o);return this.order()};function aa(o){return arguments.length||(o=y),function(f,h){return f&&h?o(f.__data__,h.__data__):!f-!h}}Ae.each=function(o){return oi(this,function(f,h,d){o.call(f,f.__data__,h,d)})};function oi(o,f){for(var h=0,d=o.length;h<d;h++)for(var p=o[h],m=0,E=p.length,_;m<E;m++)(_=p[m])&&f(_,m,h);return o}Ae.call=function(o){var f=n(arguments);return o.apply(f[0]=this,f),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var o=0,f=this.length;o<f;o++)for(var h=this[o],d=0,p=h.length;d<p;d++){var m=h[d];if(m)return m}return null},Ae.size=function(){var o=0;return oi(this,function(){++o}),o};function md(o){return Yt(o,xi),o}var xi=[];t.selection.enter=md,t.selection.enter.prototype=xi,xi.append=Ae.append,xi.empty=Ae.empty,xi.node=Ae.node,xi.call=Ae.call,xi.size=Ae.size,xi.select=function(o){for(var f=[],h,d,p,m,E,_=-1,O=this.length;++_<O;){p=(m=this[_]).update,f.push(h=[]),h.parentNode=m.parentNode;for(var I=-1,P=m.length;++I<P;)(E=m[I])?(h.push(p[I]=d=o.call(m.parentNode,E.__data__,I,_)),d.__data__=E.__data__):h.push(null)}return Xt(f)},xi.insert=function(o,f){return arguments.length<2&&(f=Ko(this)),Ae.insert.call(this,o,f)};function Ko(o){var f,h;return function(d,p,m){var E=o[m].update,_=E.length,O;for(m!=h&&(h=m,f=0),p>=f&&(f=p+1);!(O=E[f])&&++f<_;);return O}}t.select=function(o){var f;return typeof o=="string"?(f=[Qe(o,i)],f.parentNode=i.documentElement):(f=[o],f.parentNode=a(o)),Xt([f])},t.selectAll=function(o){var f;return typeof o=="string"?(f=n(Ot(o,i)),f.parentNode=i.documentElement):(f=n(o),f.parentNode=null),Xt([f])},Ae.on=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f=!1);for(h in o)this.each(dl(h,o[h],f));return this}if(d<2)return(d=this.node()["__on"+o])&&d._;h=!1}return this.each(dl(o,f,h))};function dl(o,f,h){var d="__on"+o,p=o.indexOf("."),m=vl;p>0&&(o=o.slice(0,p));var E=pl.get(o);E&&(o=E,m=Lm);function _(){var P=this[d];P&&(this.removeEventListener(o,P,P.$),delete this[d])}function O(){var P=m(f,n(arguments));_.call(this),this.addEventListener(o,this[d]=P,P.$=h),P._=f}function I(){var P=new RegExp("^__on([^.]+)"+t.requote(o)+"$"),$;for(var z in this)if($=z.match(P)){var re=this[z];this.removeEventListener($[1],re,re.$),delete this[z]}}return p?f?O:_:f?Ze:I}var pl=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&pl.forEach(function(o){"on"+o in i&&pl.remove(o)});function vl(o,f){return function(h){var d=t.event;t.event=h,f[0]=this.__data__;try{o.apply(this,f)}finally{t.event=d}}}function Lm(o,f){var h=vl(o,f);return function(d){var p=this,m=d.relatedTarget;(!m||m!==p&&!(m.compareDocumentPosition(p)&8))&&h.call(p,d)}}var oa,Dm=0;function ml(o){var f=".dragsuppress-"+ ++Dm,h="click"+f,d=t.select(u(o)).on("touchmove"+f,ct).on("dragstart"+f,ct).on("selectstart"+f,ct);if(oa==null&&(oa="onselectstart"in o?!1:Ye(o.style,"userSelect")),oa){var p=a(o).style,m=p[oa];p[oa]="none"}return function(E){if(d.on(f,null),oa&&(p[oa]=m),E){var _=function(){d.on(h,null)};d.on(h,function(){ct(),_()},!0),setTimeout(_,0)}}}t.mouse=function(o){return qn(o,rt())};var Qr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qn(o,f){f.changedTouches&&(f=f.changedTouches[0]);var h=o.ownerSVGElement||o;if(h.createSVGPoint){var d=h.createSVGPoint();if(Qr<0){var p=u(o);if(p.scrollX||p.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var m=h[0][0].getScreenCTM();Qr=!(m.f||m.e),h.remove()}}return Qr?(d.x=f.pageX,d.y=f.pageY):(d.x=f.clientX,d.y=f.clientY),d=d.matrixTransform(o.getScreenCTM().inverse()),[d.x,d.y]}var E=o.getBoundingClientRect();return[f.clientX-E.left-o.clientLeft,f.clientY-E.top-o.clientTop]}t.touch=function(o,f,h){if(arguments.length<3&&(h=f,f=rt().changedTouches),f){for(var d=0,p=f.length,m;d<p;++d)if((m=f[d]).identifier===h)return qn(o,m)}},t.behavior.drag=function(){var o=yt(p,"drag","dragstart","dragend"),f=null,h=m(Ze,t.mouse,u,"mousemove","mouseup"),d=m(Mn,t.touch,lt,"touchmove","touchend");function p(){this.on("mousedown.drag",h).on("touchstart.drag",d)}function m(E,_,O,I,P){return function(){var $=this,z=t.event.target.correspondingElement||t.event.target,re=$.parentNode,oe=o.of($,arguments),j=0,q=E(),K=".drag"+(q==null?"":"-"+q),ue,le=t.select(O(z)).on(I+K,Be).on(P+K,Je),ee=ml(z),Me=_(re,q);f?(ue=f.apply($,arguments),ue=[ue.x-Me[0],ue.y-Me[1]]):ue=[0,0],oe({type:"dragstart"});function Be(){var $e=_(re,q),it,dt;$e&&(it=$e[0]-Me[0],dt=$e[1]-Me[1],j|=it|dt,Me=$e,oe({type:"drag",x:$e[0]+ue[0],y:$e[1]+ue[1],dx:it,dy:dt}))}function Je(){_(re,q)&&(le.on(I+K,null).on(P+K,null),ee(j),oe({type:"dragend"}))}}}return p.origin=function(E){return arguments.length?(f=E,p):f},t.rebind(p,o,"on")};function Mn(){return t.event.changedTouches[0].identifier}t.touches=function(o,f){return arguments.length<2&&(f=rt().touches),f?n(f).map(function(h){var d=qn(o,h);return d.identifier=h.identifier,d}):[]};var nr=1e-6,gd=nr*nr,_i=Math.PI,Ha=2*_i,yd=Ha-nr,ui=_i/2,xd=_i/180,Jo=180/_i;function Bm(o,f,h){return(f[0]-o[0])*(h[1]-o[1])-(f[1]-o[1])*(h[0]-o[0])}function _d(o){return o>1?ui:o<-1?-ui:Math.asin(o)}function $m(o){return((o=Math.exp(o))-1/o)/2}function wd(o){return((o=Math.exp(o))+1/o)/2}function zm(o){return((o=Math.exp(2*o))-1)/(o+1)}var eu=Math.SQRT2,fs=2,bd=4;t.interpolateZoom=function(o,f){var h=o[0],d=o[1],p=o[2],m=f[0],E=f[1],_=f[2],O=m-h,I=E-d,P=O*O+I*I,$,z;if(P<gd)z=Math.log(_/p)/eu,$=function(ue){return[h+ue*O,d+ue*I,p*Math.exp(eu*ue*z)]};else{var re=Math.sqrt(P),oe=(_*_-p*p+bd*P)/(2*p*fs*re),j=(_*_-p*p-bd*P)/(2*_*fs*re),q=Math.log(Math.sqrt(oe*oe+1)-oe),K=Math.log(Math.sqrt(j*j+1)-j);z=(K-q)/eu,$=function(ue){var le=ue*z,ee=wd(q),Me=p/(fs*re)*(ee*zm(eu*le+q)-$m(q));return[h+Me*O,d+Me*I,p*ee/wd(eu*le+q)]}}return $.duration=z*1e3,$},t.behavior.zoom=function(){var o={x:0,y:0,k:1},f,h,d,p=[960,500],m=tu,E=250,_=0,O="mousedown.zoom",I="mousemove.zoom",P="mouseup.zoom",$,z="touchstart.zoom",re,oe=yt(le,"zoomstart","zoom","zoomend"),j,q,K,ue;ss||(ss="onwheel"in i?(gl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(gl=function(){return t.event.wheelDelta},"mousewheel"):(gl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(et){et.on(O,zt).on(ss+".zoom",Tr).on("dblclick.zoom",hr).on(z,ir)}le.event=function(et){et.each(function(){var Ht=oe.of(this,arguments),Vt=o;Ci?t.select(this).transition().each("start.zoom",function(){o=this.__chart__||{x:0,y:0,k:1},dt(Ht)}).tween("zoom:zoom",function(){var ar=p[0],wr=p[1],Pr=h?h[0]:ar/2,Wr=h?h[1]:wr/2,fn=t.interpolateZoom([(Pr-o.x)/o.k,(Wr-o.y)/o.k,ar/o.k],[(Pr-Vt.x)/Vt.k,(Wr-Vt.y)/Vt.k,ar/Vt.k]);return function(mn){var Jr=fn(mn),Sn=ar/Jr[2];this.__chart__=o={x:Pr-Jr[0]*Sn,y:Wr-Jr[1]*Sn,k:Sn},Gt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=o,dt(Ht),Gt(Ht),xt(Ht))})},le.translate=function(et){return arguments.length?(o={x:+et[0],y:+et[1],k:o.k},it(),le):[o.x,o.y]},le.scale=function(et){return arguments.length?(o={x:o.x,y:o.y,k:null},Be(+et),it(),le):o.k},le.scaleExtent=function(et){return arguments.length?(m=et==null?tu:[+et[0],+et[1]],le):m},le.center=function(et){return arguments.length?(d=et&&[+et[0],+et[1]],le):d},le.size=function(et){return arguments.length?(p=et&&[+et[0],+et[1]],le):p},le.duration=function(et){return arguments.length?(E=+et,le):E},le.x=function(et){return arguments.length?(q=et,j=et.copy(),o={x:0,y:0,k:1},le):q},le.y=function(et){return arguments.length?(ue=et,K=et.copy(),o={x:0,y:0,k:1},le):ue};function ee(et){return[(et[0]-o.x)/o.k,(et[1]-o.y)/o.k]}function Me(et){return[et[0]*o.k+o.x,et[1]*o.k+o.y]}function Be(et){o.k=Math.max(m[0],Math.min(m[1],et))}function Je(et,Ht){Ht=Me(Ht),o.x+=et[0]-Ht[0],o.y+=et[1]-Ht[1]}function $e(et,Ht,Vt,ar){et.__chart__={x:o.x,y:o.y,k:o.k},Be(Math.pow(2,ar)),Je(h=Ht,Vt),et=t.select(et),E>0&&(et=et.transition().duration(E)),et.call(le.event)}function it(){q&&q.domain(j.range().map(function(et){return(et-o.x)/o.k}).map(j.invert)),ue&&ue.domain(K.range().map(function(et){return(et-o.y)/o.k}).map(K.invert))}function dt(et){_++||et({type:"zoomstart"})}function Gt(et){it(),et({type:"zoom",scale:o.k,translate:[o.x,o.y]})}function xt(et){--_||(et({type:"zoomend"}),h=null)}function zt(){var et=this,Ht=oe.of(et,arguments),Vt=0,ar=t.select(u(et)).on(I,Wr).on(P,fn),wr=ee(t.mouse(et)),Pr=ml(et);Xl.call(et),dt(Ht);function Wr(){Vt=1,Je(t.mouse(et),wr),Gt(Ht)}function fn(){ar.on(I,null).on(P,null),Pr(Vt),xt(Ht)}}function ir(){var et=this,Ht=oe.of(et,arguments),Vt={},ar=0,wr,Pr=".zoom-"+t.event.changedTouches[0].identifier,Wr="touchmove"+Pr,fn="touchend"+Pr,mn=[],Jr=t.select(et),Sn=ml(et);H(),dt(Ht),Jr.on(O,null).on(z,H);function F(){var ke=t.touches(et);return wr=o.k,ke.forEach(function(ge){ge.identifier in Vt&&(Vt[ge.identifier]=ee(ge))}),ke}function H(){var ke=t.event.target;t.select(ke).on(Wr,Z).on(fn,we),mn.push(ke);for(var ge=t.event.changedTouches,xe=0,He=ge.length;xe<He;++xe)Vt[ge[xe].identifier]=null;var We=F(),Xe=Date.now();if(We.length===1){if(Xe-re<500){var ut=We[0];$e(et,ut,Vt[ut.identifier],Math.floor(Math.log(o.k)/Math.LN2)+1),ct()}re=Xe}else if(We.length>1){var ut=We[0],Mt=We[1],wt=ut[0]-Mt[0],nt=ut[1]-Mt[1];ar=wt*wt+nt*nt}}function Z(){var ke=t.touches(et),ge,xe,He,We;Xl.call(et);for(var Xe=0,ut=ke.length;Xe<ut;++Xe,We=null)if(He=ke[Xe],We=Vt[He.identifier]){if(xe)break;ge=He,xe=We}if(We){var Mt=(Mt=He[0]-ge[0])*Mt+(Mt=He[1]-ge[1])*Mt,wt=ar&&Math.sqrt(Mt/ar);ge=[(ge[0]+He[0])/2,(ge[1]+He[1])/2],xe=[(xe[0]+We[0])/2,(xe[1]+We[1])/2],Be(wt*wr)}re=null,Je(ge,xe),Gt(Ht)}function we(){if(t.event.touches.length){for(var ke=t.event.changedTouches,ge=0,xe=ke.length;ge<xe;++ge)delete Vt[ke[ge].identifier];for(var He in Vt)return void F()}t.selectAll(mn).on(Pr,null),Jr.on(O,zt).on(z,ir),Sn(),xt(Ht)}}function Tr(){var et=oe.of(this,arguments);$?clearTimeout($):(Xl.call(this),f=ee(h=d||t.mouse(this)),dt(et)),$=setTimeout(function(){$=null,xt(et)},50),ct(),Be(Math.pow(2,gl()*.002)*o.k),Je(h,f),Gt(et)}function hr(){var et=t.mouse(this),Ht=Math.log(o.k)/Math.LN2;$e(this,et,ee(et),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var tu=[0,1/0],gl,ss;t.color=Di;function Di(){}Di.prototype.toString=function(){return this.rgb()+""},t.hsl=Ln;function Ln(o,f,h){return this instanceof Ln?(this.h=+o,this.s=+f,void(this.l=+h)):arguments.length<2?o instanceof Ln?new Ln(o.h,o.s,o.l):la(""+o,gs,Ln):new Ln(o,f,h)}var yl=Ln.prototype=new Di;yl.brighter=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ln(this.h,this.s,this.l/o)},yl.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ln(this.h,this.s,o*this.l)},yl.rgb=function(){return xl(this.h,this.s,this.l)};function xl(o,f,h){var d,p;o=isNaN(o)?0:(o%=360)<0?o+360:o,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,p=h<=.5?h*(1+f):h+f-h*f,d=2*h-p;function m(_){return _>360?_-=360:_<0&&(_+=360),_<60?d+(p-d)*_/60:_<180?p:_<240?d+(p-d)*(240-_)/60:d}function E(_){return Math.round(m(_)*255)}return new Zr(E(o+120),E(o),E(o-120))}t.hcl=Yn;function Yn(o,f,h){return this instanceof Yn?(this.h=+o,this.c=+f,void(this.l=+h)):arguments.length<2?o instanceof Yn?new Yn(o.h,o.c,o.l):o instanceof Yr?Ad(o.l,o.a,o.b):Ad((o=fa((o=t.rgb(o)).r,o.g,o.b)).l,o.a,o.b):new Yn(o,f,h)}var ru=Yn.prototype=new Di;ru.brighter=function(o){return new Yn(this.h,this.c,Math.min(100,this.l+ua*(arguments.length?o:1)))},ru.darker=function(o){return new Yn(this.h,this.c,Math.max(0,this.l-ua*(arguments.length?o:1)))},ru.rgb=function(){return nu(this.h,this.c,this.l).rgb()};function nu(o,f,h){return isNaN(o)&&(o=0),isNaN(f)&&(f=0),new Yr(h,Math.cos(o*=xd)*f,Math.sin(o)*f)}t.lab=Yr;function Yr(o,f,h){return this instanceof Yr?(this.l=+o,this.a=+f,void(this.b=+h)):arguments.length<2?o instanceof Yr?new Yr(o.l,o.a,o.b):o instanceof Yn?nu(o.h,o.c,o.l):fa((o=Zr(o)).r,o.g,o.b):new Yr(o,f,h)}var ua=18,cs=.95047,hs=1,Sd=1.08883,ds=Yr.prototype=new Di;ds.brighter=function(o){return new Yr(Math.min(100,this.l+ua*(arguments.length?o:1)),this.a,this.b)},ds.darker=function(o){return new Yr(Math.max(0,this.l-ua*(arguments.length?o:1)),this.a,this.b)},ds.rgb=function(){return Ed(this.l,this.a,this.b)};function Ed(o,f,h){var d=(o+16)/116,p=d+f/500,m=d-h/200;return p=ps(p)*cs,d=ps(d)*hs,m=ps(m)*Sd,new Zr(ms(3.2404542*p-1.5371385*d-.4985314*m),ms(-.969266*p+1.8760108*d+.041556*m),ms(.0556434*p-.2040259*d+1.0572252*m))}function Ad(o,f,h){return o>0?new Yn(Math.atan2(h,f)*Jo,Math.sqrt(f*f+h*h),o):new Yn(NaN,NaN,o)}function ps(o){return o>.206893034?o*o*o:(o-4/29)/7.787037}function vs(o){return o>.008856?Math.pow(o,1/3):7.787037*o+4/29}function ms(o){return Math.round(255*(o<=.00304?12.92*o:1.055*Math.pow(o,1/2.4)-.055))}t.rgb=Zr;function Zr(o,f,h){return this instanceof Zr?(this.r=~~o,this.g=~~f,void(this.b=~~h)):arguments.length<2?o instanceof Zr?new Zr(o.r,o.g,o.b):la(""+o,Zr,xl):new Zr(o,f,h)}function Td(o){return new Zr(o>>16,o>>8&255,o&255)}function _l(o){return Td(o)+""}var Bi=Zr.prototype=new Di;Bi.brighter=function(o){o=Math.pow(.7,arguments.length?o:1);var f=this.r,h=this.g,d=this.b,p=30;return!f&&!h&&!d?new Zr(p,p,p):(f&&f<p&&(f=p),h&&h<p&&(h=p),d&&d<p&&(d=p),new Zr(Math.min(255,f/o),Math.min(255,h/o),Math.min(255,d/o)))},Bi.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Zr(o*this.r,o*this.g,o*this.b)},Bi.hsl=function(){return gs(this.r,this.g,this.b)},Bi.toString=function(){return"#"+Wa(this.r)+Wa(this.g)+Wa(this.b)};function Wa(o){return o<16?"0"+Math.max(0,o).toString(16):Math.min(255,o).toString(16)}function la(o,f,h){var d=0,p=0,m=0,E,_,O;if(E=/([a-z]+)\((.*)\)/.exec(o=o.toLowerCase()),E)switch(_=E[2].split(","),E[1]){case"hsl":return h(parseFloat(_[0]),parseFloat(_[1])/100,parseFloat(_[2])/100);case"rgb":return f($i(_[0]),$i(_[1]),$i(_[2]))}return(O=Va.get(o))?f(O.r,O.g,O.b):(o!=null&&o.charAt(0)==="#"&&!isNaN(O=parseInt(o.slice(1),16))&&(o.length===4?(d=(O&3840)>>4,d=d>>4|d,p=O&240,p=p>>4|p,m=O&15,m=m<<4|m):o.length===7&&(d=(O&16711680)>>16,p=(O&65280)>>8,m=O&255)),f(d,p,m))}function gs(o,f,h){var d=Math.min(o/=255,f/=255,h/=255),p=Math.max(o,f,h),m=p-d,E,_,O=(p+d)/2;return m?(_=O<.5?m/(p+d):m/(2-p-d),o==p?E=(f-h)/m+(f<h?6:0):f==p?E=(h-o)/m+2:E=(o-f)/m+4,E*=60):(E=NaN,_=O>0&&O<1?0:E),new Ln(E,_,O)}function fa(o,f,h){o=wl(o),f=wl(f),h=wl(h);var d=vs((.4124564*o+.3575761*f+.1804375*h)/cs),p=vs((.2126729*o+.7151522*f+.072175*h)/hs),m=vs((.0193339*o+.119192*f+.9503041*h)/Sd);return Yr(116*p-16,500*(d-p),200*(p-m))}function wl(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function $i(o){var f=parseFloat(o);return o.charAt(o.length-1)==="%"?Math.round(f*2.55):f}var Va=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Va.forEach(function(o,f){Va.set(o,Td(f))});function vr(o){return typeof o=="function"?o:function(){return o}}t.functor=vr,t.xhr=ys(lt);function ys(o){return function(f,h,d){return arguments.length===2&&typeof h=="function"&&(d=h,h=null),bl(f,h,o,d)}}function bl(o,f,h,d){var p={},m=t.dispatch("beforesend","progress","load","error"),E={},_=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in _)&&/^(http(s)?:)?\/\//.test(o)&&(_=new XDomainRequest),"onload"in _?_.onload=_.onerror=I:_.onreadystatechange=function(){_.readyState>3&&I()};function I(){var P=_.status,$;if(!P&&Um(_)||P>=200&&P<300||P===304){try{$=h.call(p,_)}catch(z){m.error.call(p,z);return}m.load.call(p,$)}else m.error.call(p,_)}return _.onprogress=function(P){var $=t.event;t.event=P;try{m.progress.call(p,_)}finally{t.event=$}},p.header=function(P,$){return P=(P+"").toLowerCase(),arguments.length<2?E[P]:($==null?delete E[P]:E[P]=$+"",p)},p.mimeType=function(P){return arguments.length?(f=P==null?null:P+"",p):f},p.responseType=function(P){return arguments.length?(O=P,p):O},p.response=function(P){return h=P,p},["get","post"].forEach(function(P){p[P]=function(){return p.send.apply(p,[P].concat(n(arguments)))}}),p.send=function(P,$,z){if(arguments.length===2&&typeof $=="function"&&(z=$,$=null),_.open(P,o,!0),f!=null&&!("accept"in E)&&(E.accept=f+",*/*"),_.setRequestHeader)for(var re in E)_.setRequestHeader(re,E[re]);return f!=null&&_.overrideMimeType&&_.overrideMimeType(f),O!=null&&(_.responseType=O),z!=null&&p.on("error",z).on("load",function(oe){z(null,oe)}),m.beforesend.call(p,_),_.send($??null),p},p.abort=function(){return _.abort(),p},t.rebind(p,m,"on"),d==null?p:p.get(Cd(d))}function Cd(o){return o.length===1?function(f,h){o(f==null?h:null)}:o}function Um(o){var f=o.responseType;return f&&f!=="text"?o.response:o.responseText}t.dsv=function(o,f){var h=new RegExp('["'+o+`
809
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Lr<"u"?Lr:Lr,function(){var r,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(M){return setImmediate(M)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(M,R,L,D){return Object.defineProperty(M,R,{value:L,writable:!0,configurable:D!==!1})}}catch{r=function(R,L,D){return R[L]=D,R}}i=function(){var M,R,L;function D(ne,Y){this.fn=ne,this.self=Y,this.next=void 0}return{add:function(Y,ae){L=new D(Y,ae),R?R.next=L:M=L,R=L,L=void 0},drain:function(){var Y=M;for(M=R=n=void 0;Y;)Y.fn.call(Y.self),Y=Y.next}}}();function l(A,M){i.add(A,M),n||(n=u(i.drain))}function s(A){var M,R=typeof A;return A!=null&&(R=="object"||R=="function")&&(M=A.then),typeof M=="function"?M:!1}function c(){for(var A=0;A<this.chain.length;A++)v(this,this.state===1?this.chain[A].success:this.chain[A].failure,this.chain[A]);this.chain.length=0}function v(A,M,R){var L,D;try{M===!1?R.reject(A.msg):(M===!0?L=A.msg:L=M.call(void 0,A.msg),L===R.promise?R.reject(TypeError("Promise-chain cycle")):(D=s(L))?D.call(L,R.resolve,R.reject):R.resolve(L))}catch(ne){R.reject(ne)}}function x(A){var M,R=this;if(!R.triggered){R.triggered=!0,R.def&&(R=R.def);try{(M=s(A))?l(function(){var L=new k(R);try{M.call(A,function(){x.apply(L,arguments)},function(){y.apply(L,arguments)})}catch(D){y.call(L,D)}}):(R.msg=A,R.state=1,R.chain.length>0&&l(c,R))}catch(L){y.call(new k(R),L)}}}function y(A){var M=this;M.triggered||(M.triggered=!0,M.def&&(M=M.def),M.msg=A,M.state=2,M.chain.length>0&&l(c,M))}function g(A,M,R,L){for(var D=0;D<M.length;D++)(function(Y){A.resolve(M[Y]).then(function(Ce){R(Y,Ce)},L)})(D)}function k(A){this.def=A,this.triggered=!1}function N(A){this.promise=A,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function b(A){if(typeof A!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var M=new N(this);this.then=function(L,D){var ne={success:typeof L=="function"?L:!0,failure:typeof D=="function"?D:!1};return ne.promise=new this.constructor(function(ae,Ce){if(typeof ae!="function"||typeof Ce!="function")throw TypeError("Not a function");ne.resolve=ae,ne.reject=Ce}),M.chain.push(ne),M.state!==0&&l(c,M),ne.promise},this.catch=function(L){return this.then(void 0,L)};try{A.call(void 0,function(L){x.call(M,L)},function(L){y.call(M,L)})}catch(R){y.call(M,R)}}var w=r({},"constructor",b,!1);return b.prototype=w,r(w,"__NPO__",0,!1),r(b,"resolve",function(M){var R=this;return M&&typeof M=="object"&&M.__NPO__===1?M:new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");D(M)})}),r(b,"reject",function(M){return new this(function(L,D){if(typeof L!="function"||typeof D!="function")throw TypeError("Not a function");D(M)})}),r(b,"all",function(M){var R=this;return a.call(M)!="[object Array]"?R.reject(TypeError("Not an array")):M.length===0?R.resolve([]):new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");var Y=M.length,ae=Array(Y),Ce=0;g(R,M,function(Ie,je){ae[Ie]=je,++Ce===Y&&D(ae)},ne)})}),r(b,"race",function(M){var R=this;return a.call(M)!="[object Array]"?R.reject(TypeError("Not an array")):new R(function(D,ne){if(typeof D!="function"||typeof ne!="function")throw TypeError("Not a function");g(R,M,function(ae,Ce){D(Ce)},ne)})}),b})})(C7);var iA={},k7={get exports(){return iA},set exports(e){iA=e}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(o){return r.call(o)},i=self.document;function a(o){return o&&(o.ownerDocument||o.document||o).documentElement}function u(o){return o&&(o.ownerDocument&&o.ownerDocument.defaultView||o.document&&o||o.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(f){for(var h=f.length,d=new Array(h);h--;)d[h]=f[h];return d}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,c=l.setAttributeNS,v=this.CSSStyleDeclaration.prototype,x=v.setProperty;l.setAttribute=function(f,h){s.call(this,f,h+"")},l.setAttributeNS=function(f,h,d){c.call(this,f,h,d+"")},v.setProperty=function(f,h,d){x.call(this,f,h+"",d)}}t.ascending=y;function y(o,f){return o<f?-1:o>f?1:o>=f?0:NaN}t.descending=function(o,f){return f<o?-1:f>o?1:f>=o?0:NaN},t.min=function(o,f){var h=-1,d=o.length,p,m;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=m;break}for(;++h<d;)(m=o[h])!=null&&p>m&&(p=m)}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&p>m&&(p=m)}return p},t.max=function(o,f){var h=-1,d=o.length,p,m;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=m;break}for(;++h<d;)(m=o[h])!=null&&m>p&&(p=m)}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&m>p&&(p=m)}return p},t.extent=function(o,f){var h=-1,d=o.length,p,m,E;if(arguments.length===1){for(;++h<d;)if((m=o[h])!=null&&m>=m){p=E=m;break}for(;++h<d;)(m=o[h])!=null&&(p>m&&(p=m),E<m&&(E=m))}else{for(;++h<d;)if((m=f.call(o,o[h],h))!=null&&m>=m){p=E=m;break}for(;++h<d;)(m=f.call(o,o[h],h))!=null&&(p>m&&(p=m),E<m&&(E=m))}return[p,E]};function g(o){return o===null?NaN:+o}function k(o){return!isNaN(o)}t.sum=function(o,f){var h=0,d=o.length,p,m=-1;if(arguments.length===1)for(;++m<d;)k(p=+o[m])&&(h+=p);else for(;++m<d;)k(p=+f.call(o,o[m],m))&&(h+=p);return h},t.mean=function(o,f){var h=0,d=o.length,p,m=-1,E=d;if(arguments.length===1)for(;++m<d;)k(p=g(o[m]))?h+=p:--E;else for(;++m<d;)k(p=g(f.call(o,o[m],m)))?h+=p:--E;if(E)return h/E},t.quantile=function(o,f){var h=(o.length-1)*f+1,d=Math.floor(h),p=+o[d-1],m=h-d;return m?p+m*(o[d]-p):p},t.median=function(o,f){var h=[],d=o.length,p,m=-1;if(arguments.length===1)for(;++m<d;)k(p=g(o[m]))&&h.push(p);else for(;++m<d;)k(p=g(f.call(o,o[m],m)))&&h.push(p);if(h.length)return t.quantile(h.sort(y),.5)},t.variance=function(o,f){var h=o.length,d=0,p,m,E=0,_=-1,O=0;if(arguments.length===1)for(;++_<h;)k(p=g(o[_]))&&(m=p-d,d+=m/++O,E+=m*(p-d));else for(;++_<h;)k(p=g(f.call(o,o[_],_)))&&(m=p-d,d+=m/++O,E+=m*(p-d));if(O>1)return E/(O-1)},t.deviation=function(){var o=t.variance.apply(this,arguments);return o&&Math.sqrt(o)};function N(o){return{left:function(f,h,d,p){for(arguments.length<3&&(d=0),arguments.length<4&&(p=f.length);d<p;){var m=d+p>>>1;o(f[m],h)<0?d=m+1:p=m}return d},right:function(f,h,d,p){for(arguments.length<3&&(d=0),arguments.length<4&&(p=f.length);d<p;){var m=d+p>>>1;o(f[m],h)>0?p=m:d=m+1}return d}}}var b=N(y);t.bisectLeft=b.left,t.bisect=t.bisectRight=b.right,t.bisector=function(o){return N(o.length===1?function(f,h){return y(o(f),h)}:o)},t.shuffle=function(o,f,h){(d=arguments.length)<3&&(h=o.length,d<2&&(f=0));for(var d=h-f,p,m;d;)m=Math.random()*d--|0,p=o[d+f],o[d+f]=o[m+f],o[m+f]=p;return o},t.permute=function(o,f){for(var h=f.length,d=new Array(h);h--;)d[h]=o[f[h]];return d},t.pairs=function(o){for(var f=0,h=o.length-1,d=o[0],p=new Array(h<0?0:h);f<h;)p[f]=[d,d=o[++f]];return p},t.transpose=function(o){if(!(m=o.length))return[];for(var f=-1,h=t.min(o,w),d=new Array(h);++f<h;)for(var p=-1,m,E=d[f]=new Array(m);++p<m;)E[p]=o[p][f];return d};function w(o){return o.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(o){var f=[];for(var h in o)f.push(h);return f},t.values=function(o){var f=[];for(var h in o)f.push(o[h]);return f},t.entries=function(o){var f=[];for(var h in o)f.push({key:h,value:o[h]});return f},t.merge=function(o){for(var f=o.length,h,d=-1,p=0,m,E;++d<f;)p+=o[d].length;for(m=new Array(p);--f>=0;)for(E=o[f],h=E.length;--h>=0;)m[--p]=E[h];return m};var A=Math.abs;t.range=function(o,f,h){if(arguments.length<3&&(h=1,arguments.length<2&&(f=o,o=0)),(f-o)/h===1/0)throw new Error("infinite range");var d=[],p=M(A(h)),m=-1,E;if(o*=p,f*=p,h*=p,h<0)for(;(E=o+h*++m)>f;)d.push(E/p);else for(;(E=o+h*++m)<f;)d.push(E/p);return d};function M(o){for(var f=1;o*f%1;)f*=10;return f}function R(o,f){for(var h in f)Object.defineProperty(o.prototype,h,{value:f[h],enumerable:!1})}t.map=function(o,f){var h=new L;if(o instanceof L)o.forEach(function(_,O){h.set(_,O)});else if(Array.isArray(o)){var d=-1,p=o.length,m;if(arguments.length===1)for(;++d<p;)h.set(d,o[d]);else for(;++d<p;)h.set(f.call(o,m=o[d],d),m)}else for(var E in o)h.set(E,o[E]);return h};function L(){this._=Object.create(null)}var D="__proto__",ne="\0";R(L,{has:Ce,get:function(o){return this._[Y(o)]},set:function(o,f){return this._[Y(o)]=f},remove:Fe,keys:Ie,values:function(){var o=[];for(var f in this._)o.push(this._[f]);return o},entries:function(){var o=[];for(var f in this._)o.push({key:ae(f),value:this._[f]});return o},size:je,empty:Ke,forEach:function(o){for(var f in this._)o.call(this,ae(f),this._[f])}});function Y(o){return(o+="")===D||o[0]===ne?ne+o:o}function ae(o){return(o+="")[0]===ne?o.slice(1):o}function Ce(o){return Y(o)in this._}function Fe(o){return(o=Y(o))in this._&&delete this._[o]}function Ie(){var o=[];for(var f in this._)o.push(ae(f));return o}function je(){var o=0;for(var f in this._)++o;return o}function Ke(){for(var o in this._)return!1;return!0}t.nest=function(){var o={},f=[],h=[],d,p;function m(_,O,I){if(I>=f.length)return p?p.call(o,O):d?O.sort(d):O;for(var P=-1,$=O.length,z=f[I++],re,oe,j,q=new L,K;++P<$;)(K=q.get(re=z(oe=O[P])))?K.push(oe):q.set(re,[oe]);return _?(oe=_(),j=function(ue,le){oe.set(ue,m(_,le,I))}):(oe={},j=function(ue,le){oe[ue]=m(_,le,I)}),q.forEach(j),oe}function E(_,O){if(O>=f.length)return _;var I=[],P=h[O++];return _.forEach(function($,z){I.push({key:$,values:E(z,O)})}),P?I.sort(function($,z){return P($.key,z.key)}):I}return o.map=function(_,O){return m(O,_,0)},o.entries=function(_){return E(m(t.map,_,0),0)},o.key=function(_){return f.push(_),o},o.sortKeys=function(_){return h[f.length-1]=_,o},o.sortValues=function(_){return d=_,o},o.rollup=function(_){return p=_,o},o},t.set=function(o){var f=new mt;if(o)for(var h=0,d=o.length;h<d;++h)f.add(o[h]);return f};function mt(){this._=Object.create(null)}R(mt,{has:Ce,add:function(o){return this._[Y(o+="")]=!0,o},remove:Fe,values:Ie,size:je,empty:Ke,forEach:function(o){for(var f in this._)o.call(this,ae(f))}}),t.behavior={};function lt(o){return o}t.rebind=function(o,f){for(var h=1,d=arguments.length,p;++h<d;)o[p=arguments[h]]=Ue(o,f,f[p]);return o};function Ue(o,f,h){return function(){var d=h.apply(f,arguments);return d===f?o:d}}function Ye(o,f){if(f in o)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var h=0,d=It.length;h<d;++h){var p=It[h]+f;if(p in o)return p}}var It=["webkit","ms","moz","Moz","o","O"];function Ze(){}t.dispatch=function(){for(var o=new Ee,f=-1,h=arguments.length;++f<h;)o[arguments[f]]=tt(o);return o};function Ee(){}Ee.prototype.on=function(o,f){var h=o.indexOf("."),d="";if(h>=0&&(d=o.slice(h+1),o=o.slice(0,h)),o)return arguments.length<2?this[o].on(d):this[o].on(d,f);if(arguments.length===2){if(f==null)for(o in this)this.hasOwnProperty(o)&&this[o].on(d,null);return this}};function tt(o){var f=[],h=new L;function d(){for(var p=f,m=-1,E=p.length,_;++m<E;)(_=p[m].on)&&_.apply(this,arguments);return o}return d.on=function(p,m){var E=h.get(p),_;return arguments.length<2?E&&E.on:(E&&(E.on=null,f=f.slice(0,_=f.indexOf(E)).concat(f.slice(_+1)),h.remove(p)),m&&f.push(h.set(p,{on:m})),o)},d}t.event=null;function ct(){t.event.preventDefault()}function rt(){for(var o=t.event,f;f=o.sourceEvent;)o=f;return o}function yt(o){for(var f=new Ee,h=0,d=arguments.length;++h<d;)f[arguments[h]]=tt(f);return f.of=function(p,m){return function(E){try{var _=E.sourceEvent=t.event;E.target=o,t.event=E,f[E.type].apply(p,m)}finally{t.event=_}}},f}t.requote=function(o){return o.replace(Tt,"\\$&")};var Tt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Yt={}.__proto__?function(o,f){o.__proto__=f}:function(o,f){for(var h in f)o[h]=f[h]};function Xt(o){return Yt(o,Ae),o}var Qe=function(o,f){return f.querySelector(o)},Ot=function(o,f){return f.querySelectorAll(o)},jt=function(o,f){var h=o.matches||o[Ye(o,"matchesSelector")];return jt=function(d,p){return h.call(d,p)},jt(o,f)};typeof Sizzle=="function"&&(Qe=function(o,f){return Sizzle(o,f)[0]||null},Ot=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ae=t.selection.prototype=[];Ae.select=function(o){var f=[],h,d,p,m;o=G(o);for(var E=-1,_=this.length;++E<_;){f.push(h=[]),h.parentNode=(p=this[E]).parentNode;for(var O=-1,I=p.length;++O<I;)(m=p[O])?(h.push(d=o.call(m,m.__data__,O,E)),d&&"__data__"in m&&(d.__data__=m.__data__)):h.push(null)}return Xt(f)};function G(o){return typeof o=="function"?o:function(){return Qe(o,this)}}Ae.selectAll=function(o){var f=[],h,d;o=ie(o);for(var p=-1,m=this.length;++p<m;)for(var E=this[p],_=-1,O=E.length;++_<O;)(d=E[_])&&(f.push(h=n(o.call(d,d.__data__,_,p))),h.parentNode=d);return Xt(f)};function ie(o){return typeof o=="function"?o:function(){return Ot(o,this)}}var C="http://www.w3.org/1999/xhtml",S={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:S,qualify:function(o){var f=o.indexOf(":"),h=o;return f>=0&&(h=o.slice(0,f))!=="xmlns"&&(o=o.slice(f+1)),S.hasOwnProperty(h)?{space:S[h],local:o}:o}},Ae.attr=function(o,f){if(arguments.length<2){if(typeof o=="string"){var h=this.node();return o=t.ns.qualify(o),o.local?h.getAttributeNS(o.space,o.local):h.getAttribute(o)}for(f in o)this.each(T(f,o[f]));return this}return this.each(T(o,f))};function T(o,f){o=t.ns.qualify(o);function h(){this.removeAttribute(o)}function d(){this.removeAttributeNS(o.space,o.local)}function p(){this.setAttribute(o,f)}function m(){this.setAttributeNS(o.space,o.local,f)}function E(){var O=f.apply(this,arguments);O==null?this.removeAttribute(o):this.setAttribute(o,O)}function _(){var O=f.apply(this,arguments);O==null?this.removeAttributeNS(o.space,o.local):this.setAttributeNS(o.space,o.local,O)}return f==null?o.local?d:h:typeof f=="function"?o.local?_:E:o.local?m:p}function B(o){return o.trim().replace(/\s+/g," ")}Ae.classed=function(o,f){if(arguments.length<2){if(typeof o=="string"){var h=this.node(),d=(o=Ne(o)).length,p=-1;if(f=h.classList){for(;++p<d;)if(!f.contains(o[p]))return!1}else for(f=h.getAttribute("class");++p<d;)if(!se(o[p]).test(f))return!1;return!0}for(f in o)this.each(De(f,o[f]));return this}return this.each(De(o,f))};function se(o){return new RegExp("(?:^|\\s+)"+t.requote(o)+"(?:\\s+|$)","g")}function Ne(o){return(o+"").trim().split(/^|\s+/)}function De(o,f){o=Ne(o).map(Qt);var h=o.length;function d(){for(var m=-1;++m<h;)o[m](this,f)}function p(){for(var m=-1,E=f.apply(this,arguments);++m<h;)o[m](this,E)}return typeof f=="function"?p:d}function Qt(o){var f=se(o);return function(h,d){if(p=h.classList)return d?p.add(o):p.remove(o);var p=h.getAttribute("class")||"";d?(f.lastIndex=0,f.test(p)||h.setAttribute("class",B(p+" "+o))):h.setAttribute("class",B(p.replace(f," ")))}}Ae.style=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f="");for(h in o)this.each(fr(h,o[h],f));return this}if(d<2){var p=this.node();return u(p).getComputedStyle(p,null).getPropertyValue(o)}h=""}return this.each(fr(o,f,h))};function fr(o,f,h){function d(){this.style.removeProperty(o)}function p(){this.style.setProperty(o,f,h)}function m(){var E=f.apply(this,arguments);E==null?this.style.removeProperty(o):this.style.setProperty(o,E,h)}return f==null?d:typeof f=="function"?m:p}Ae.property=function(o,f){if(arguments.length<2){if(typeof o=="string")return this.node()[o];for(f in o)this.each(rr(f,o[f]));return this}return this.each(rr(o,f))};function rr(o,f){function h(){delete this[o]}function d(){this[o]=f}function p(){var m=f.apply(this,arguments);m==null?delete this[o]:this[o]=m}return f==null?h:typeof f=="function"?p:d}Ae.text=function(o){return arguments.length?this.each(typeof o=="function"?function(){var f=o.apply(this,arguments);this.textContent=f??""}:o==null?function(){this.textContent=""}:function(){this.textContent=o}):this.node().textContent},Ae.html=function(o){return arguments.length?this.each(typeof o=="function"?function(){var f=o.apply(this,arguments);this.innerHTML=f??""}:o==null?function(){this.innerHTML=""}:function(){this.innerHTML=o}):this.node().innerHTML},Ae.append=function(o){return o=Hr(o),this.select(function(){return this.appendChild(o.apply(this,arguments))})};function Hr(o){function f(){var d=this.ownerDocument,p=this.namespaceURI;return p===C&&d.documentElement.namespaceURI===C?d.createElement(o):d.createElementNS(p,o)}function h(){return this.ownerDocument.createElementNS(o.space,o.local)}return typeof o=="function"?o:(o=t.ns.qualify(o)).local?h:f}Ae.insert=function(o,f){return o=Hr(o),f=G(f),this.select(function(){return this.insertBefore(o.apply(this,arguments),f.apply(this,arguments)||null)})},Ae.remove=function(){return this.each(Ar)};function Ar(){var o=this.parentNode;o&&o.removeChild(this)}Ae.data=function(o,f){var h=-1,d=this.length,p,m;if(!arguments.length){for(o=new Array(d=(p=this[0]).length);++h<d;)(m=p[h])&&(o[h]=m.__data__);return o}function E(P,$){var z,re=P.length,oe=$.length,j=Math.min(re,oe),q=new Array(oe),K=new Array(oe),ue=new Array(re),le,ee;if(f){var Me=new L,Be=new Array(re),Je;for(z=-1;++z<re;)(le=P[z])&&(Me.has(Je=f.call(le,le.__data__,z))?ue[z]=le:Me.set(Je,le),Be[z]=Je);for(z=-1;++z<oe;)(le=Me.get(Je=f.call($,ee=$[z],z)))?le!==!0&&(q[z]=le,le.__data__=ee):K[z]=Li(ee),Me.set(Je,!0);for(z=-1;++z<re;)z in Be&&Me.get(Be[z])!==!0&&(ue[z]=P[z])}else{for(z=-1;++z<j;)le=P[z],ee=$[z],le?(le.__data__=ee,q[z]=le):K[z]=Li(ee);for(;z<oe;++z)K[z]=Li($[z]);for(;z<re;++z)ue[z]=P[z]}K.update=q,K.parentNode=q.parentNode=ue.parentNode=P.parentNode,_.push(K),O.push(q),I.push(ue)}var _=md([]),O=Xt([]),I=Xt([]);if(typeof o=="function")for(;++h<d;)E(p=this[h],o.call(p,p.parentNode.__data__,h));else for(;++h<d;)E(p=this[h],o);return O.enter=function(){return _},O.exit=function(){return I},O};function Li(o){return{__data__:o}}Ae.datum=function(o){return arguments.length?this.property("__data__",o):this.property("__data__")},Ae.filter=function(o){var f=[],h,d,p;typeof o!="function"&&(o=Zo(o));for(var m=0,E=this.length;m<E;m++){f.push(h=[]),h.parentNode=(d=this[m]).parentNode;for(var _=0,O=d.length;_<O;_++)(p=d[_])&&o.call(p,p.__data__,_,m)&&h.push(p)}return Xt(f)};function Zo(o){return function(){return jt(this,o)}}Ae.order=function(){for(var o=-1,f=this.length;++o<f;)for(var h=this[o],d=h.length-1,p=h[d],m;--d>=0;)(m=h[d])&&(p&&p!==m.nextSibling&&p.parentNode.insertBefore(m,p),p=m);return this},Ae.sort=function(o){o=aa.apply(this,arguments);for(var f=-1,h=this.length;++f<h;)this[f].sort(o);return this.order()};function aa(o){return arguments.length||(o=y),function(f,h){return f&&h?o(f.__data__,h.__data__):!f-!h}}Ae.each=function(o){return oi(this,function(f,h,d){o.call(f,f.__data__,h,d)})};function oi(o,f){for(var h=0,d=o.length;h<d;h++)for(var p=o[h],m=0,E=p.length,_;m<E;m++)(_=p[m])&&f(_,m,h);return o}Ae.call=function(o){var f=n(arguments);return o.apply(f[0]=this,f),this},Ae.empty=function(){return!this.node()},Ae.node=function(){for(var o=0,f=this.length;o<f;o++)for(var h=this[o],d=0,p=h.length;d<p;d++){var m=h[d];if(m)return m}return null},Ae.size=function(){var o=0;return oi(this,function(){++o}),o};function md(o){return Yt(o,xi),o}var xi=[];t.selection.enter=md,t.selection.enter.prototype=xi,xi.append=Ae.append,xi.empty=Ae.empty,xi.node=Ae.node,xi.call=Ae.call,xi.size=Ae.size,xi.select=function(o){for(var f=[],h,d,p,m,E,_=-1,O=this.length;++_<O;){p=(m=this[_]).update,f.push(h=[]),h.parentNode=m.parentNode;for(var I=-1,P=m.length;++I<P;)(E=m[I])?(h.push(p[I]=d=o.call(m.parentNode,E.__data__,I,_)),d.__data__=E.__data__):h.push(null)}return Xt(f)},xi.insert=function(o,f){return arguments.length<2&&(f=Ko(this)),Ae.insert.call(this,o,f)};function Ko(o){var f,h;return function(d,p,m){var E=o[m].update,_=E.length,O;for(m!=h&&(h=m,f=0),p>=f&&(f=p+1);!(O=E[f])&&++f<_;);return O}}t.select=function(o){var f;return typeof o=="string"?(f=[Qe(o,i)],f.parentNode=i.documentElement):(f=[o],f.parentNode=a(o)),Xt([f])},t.selectAll=function(o){var f;return typeof o=="string"?(f=n(Ot(o,i)),f.parentNode=i.documentElement):(f=n(o),f.parentNode=null),Xt([f])},Ae.on=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f=!1);for(h in o)this.each(dl(h,o[h],f));return this}if(d<2)return(d=this.node()["__on"+o])&&d._;h=!1}return this.each(dl(o,f,h))};function dl(o,f,h){var d="__on"+o,p=o.indexOf("."),m=vl;p>0&&(o=o.slice(0,p));var E=pl.get(o);E&&(o=E,m=Lm);function _(){var P=this[d];P&&(this.removeEventListener(o,P,P.$),delete this[d])}function O(){var P=m(f,n(arguments));_.call(this),this.addEventListener(o,this[d]=P,P.$=h),P._=f}function I(){var P=new RegExp("^__on([^.]+)"+t.requote(o)+"$"),$;for(var z in this)if($=z.match(P)){var re=this[z];this.removeEventListener($[1],re,re.$),delete this[z]}}return p?f?O:_:f?Ze:I}var pl=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&pl.forEach(function(o){"on"+o in i&&pl.remove(o)});function vl(o,f){return function(h){var d=t.event;t.event=h,f[0]=this.__data__;try{o.apply(this,f)}finally{t.event=d}}}function Lm(o,f){var h=vl(o,f);return function(d){var p=this,m=d.relatedTarget;(!m||m!==p&&!(m.compareDocumentPosition(p)&8))&&h.call(p,d)}}var oa,Dm=0;function ml(o){var f=".dragsuppress-"+ ++Dm,h="click"+f,d=t.select(u(o)).on("touchmove"+f,ct).on("dragstart"+f,ct).on("selectstart"+f,ct);if(oa==null&&(oa="onselectstart"in o?!1:Ye(o.style,"userSelect")),oa){var p=a(o).style,m=p[oa];p[oa]="none"}return function(E){if(d.on(f,null),oa&&(p[oa]=m),E){var _=function(){d.on(h,null)};d.on(h,function(){ct(),_()},!0),setTimeout(_,0)}}}t.mouse=function(o){return qn(o,rt())};var Qr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qn(o,f){f.changedTouches&&(f=f.changedTouches[0]);var h=o.ownerSVGElement||o;if(h.createSVGPoint){var d=h.createSVGPoint();if(Qr<0){var p=u(o);if(p.scrollX||p.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var m=h[0][0].getScreenCTM();Qr=!(m.f||m.e),h.remove()}}return Qr?(d.x=f.pageX,d.y=f.pageY):(d.x=f.clientX,d.y=f.clientY),d=d.matrixTransform(o.getScreenCTM().inverse()),[d.x,d.y]}var E=o.getBoundingClientRect();return[f.clientX-E.left-o.clientLeft,f.clientY-E.top-o.clientTop]}t.touch=function(o,f,h){if(arguments.length<3&&(h=f,f=rt().changedTouches),f){for(var d=0,p=f.length,m;d<p;++d)if((m=f[d]).identifier===h)return qn(o,m)}},t.behavior.drag=function(){var o=yt(p,"drag","dragstart","dragend"),f=null,h=m(Ze,t.mouse,u,"mousemove","mouseup"),d=m(Mn,t.touch,lt,"touchmove","touchend");function p(){this.on("mousedown.drag",h).on("touchstart.drag",d)}function m(E,_,O,I,P){return function(){var $=this,z=t.event.target.correspondingElement||t.event.target,re=$.parentNode,oe=o.of($,arguments),j=0,q=E(),K=".drag"+(q==null?"":"-"+q),ue,le=t.select(O(z)).on(I+K,Be).on(P+K,Je),ee=ml(z),Me=_(re,q);f?(ue=f.apply($,arguments),ue=[ue.x-Me[0],ue.y-Me[1]]):ue=[0,0],oe({type:"dragstart"});function Be(){var $e=_(re,q),it,dt;$e&&(it=$e[0]-Me[0],dt=$e[1]-Me[1],j|=it|dt,Me=$e,oe({type:"drag",x:$e[0]+ue[0],y:$e[1]+ue[1],dx:it,dy:dt}))}function Je(){_(re,q)&&(le.on(I+K,null).on(P+K,null),ee(j),oe({type:"dragend"}))}}}return p.origin=function(E){return arguments.length?(f=E,p):f},t.rebind(p,o,"on")};function Mn(){return t.event.changedTouches[0].identifier}t.touches=function(o,f){return arguments.length<2&&(f=rt().touches),f?n(f).map(function(h){var d=qn(o,h);return d.identifier=h.identifier,d}):[]};var nr=1e-6,gd=nr*nr,_i=Math.PI,Ha=2*_i,yd=Ha-nr,ui=_i/2,xd=_i/180,Jo=180/_i;function Bm(o,f,h){return(f[0]-o[0])*(h[1]-o[1])-(f[1]-o[1])*(h[0]-o[0])}function _d(o){return o>1?ui:o<-1?-ui:Math.asin(o)}function $m(o){return((o=Math.exp(o))-1/o)/2}function wd(o){return((o=Math.exp(o))+1/o)/2}function zm(o){return((o=Math.exp(2*o))-1)/(o+1)}var eu=Math.SQRT2,fs=2,bd=4;t.interpolateZoom=function(o,f){var h=o[0],d=o[1],p=o[2],m=f[0],E=f[1],_=f[2],O=m-h,I=E-d,P=O*O+I*I,$,z;if(P<gd)z=Math.log(_/p)/eu,$=function(ue){return[h+ue*O,d+ue*I,p*Math.exp(eu*ue*z)]};else{var re=Math.sqrt(P),oe=(_*_-p*p+bd*P)/(2*p*fs*re),j=(_*_-p*p-bd*P)/(2*_*fs*re),q=Math.log(Math.sqrt(oe*oe+1)-oe),K=Math.log(Math.sqrt(j*j+1)-j);z=(K-q)/eu,$=function(ue){var le=ue*z,ee=wd(q),Me=p/(fs*re)*(ee*zm(eu*le+q)-$m(q));return[h+Me*O,d+Me*I,p*ee/wd(eu*le+q)]}}return $.duration=z*1e3,$},t.behavior.zoom=function(){var o={x:0,y:0,k:1},f,h,d,p=[960,500],m=tu,E=250,_=0,O="mousedown.zoom",I="mousemove.zoom",P="mouseup.zoom",$,z="touchstart.zoom",re,oe=yt(le,"zoomstart","zoom","zoomend"),j,q,K,ue;ss||(ss="onwheel"in i?(gl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(gl=function(){return t.event.wheelDelta},"mousewheel"):(gl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(et){et.on(O,zt).on(ss+".zoom",Tr).on("dblclick.zoom",hr).on(z,ir)}le.event=function(et){et.each(function(){var Ht=oe.of(this,arguments),Vt=o;Ci?t.select(this).transition().each("start.zoom",function(){o=this.__chart__||{x:0,y:0,k:1},dt(Ht)}).tween("zoom:zoom",function(){var ar=p[0],wr=p[1],Pr=h?h[0]:ar/2,Wr=h?h[1]:wr/2,fn=t.interpolateZoom([(Pr-o.x)/o.k,(Wr-o.y)/o.k,ar/o.k],[(Pr-Vt.x)/Vt.k,(Wr-Vt.y)/Vt.k,ar/Vt.k]);return function(mn){var Jr=fn(mn),Sn=ar/Jr[2];this.__chart__=o={x:Pr-Jr[0]*Sn,y:Wr-Jr[1]*Sn,k:Sn},Gt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=o,dt(Ht),Gt(Ht),xt(Ht))})},le.translate=function(et){return arguments.length?(o={x:+et[0],y:+et[1],k:o.k},it(),le):[o.x,o.y]},le.scale=function(et){return arguments.length?(o={x:o.x,y:o.y,k:null},Be(+et),it(),le):o.k},le.scaleExtent=function(et){return arguments.length?(m=et==null?tu:[+et[0],+et[1]],le):m},le.center=function(et){return arguments.length?(d=et&&[+et[0],+et[1]],le):d},le.size=function(et){return arguments.length?(p=et&&[+et[0],+et[1]],le):p},le.duration=function(et){return arguments.length?(E=+et,le):E},le.x=function(et){return arguments.length?(q=et,j=et.copy(),o={x:0,y:0,k:1},le):q},le.y=function(et){return arguments.length?(ue=et,K=et.copy(),o={x:0,y:0,k:1},le):ue};function ee(et){return[(et[0]-o.x)/o.k,(et[1]-o.y)/o.k]}function Me(et){return[et[0]*o.k+o.x,et[1]*o.k+o.y]}function Be(et){o.k=Math.max(m[0],Math.min(m[1],et))}function Je(et,Ht){Ht=Me(Ht),o.x+=et[0]-Ht[0],o.y+=et[1]-Ht[1]}function $e(et,Ht,Vt,ar){et.__chart__={x:o.x,y:o.y,k:o.k},Be(Math.pow(2,ar)),Je(h=Ht,Vt),et=t.select(et),E>0&&(et=et.transition().duration(E)),et.call(le.event)}function it(){q&&q.domain(j.range().map(function(et){return(et-o.x)/o.k}).map(j.invert)),ue&&ue.domain(K.range().map(function(et){return(et-o.y)/o.k}).map(K.invert))}function dt(et){_++||et({type:"zoomstart"})}function Gt(et){it(),et({type:"zoom",scale:o.k,translate:[o.x,o.y]})}function xt(et){--_||(et({type:"zoomend"}),h=null)}function zt(){var et=this,Ht=oe.of(et,arguments),Vt=0,ar=t.select(u(et)).on(I,Wr).on(P,fn),wr=ee(t.mouse(et)),Pr=ml(et);Xl.call(et),dt(Ht);function Wr(){Vt=1,Je(t.mouse(et),wr),Gt(Ht)}function fn(){ar.on(I,null).on(P,null),Pr(Vt),xt(Ht)}}function ir(){var et=this,Ht=oe.of(et,arguments),Vt={},ar=0,wr,Pr=".zoom-"+t.event.changedTouches[0].identifier,Wr="touchmove"+Pr,fn="touchend"+Pr,mn=[],Jr=t.select(et),Sn=ml(et);H(),dt(Ht),Jr.on(O,null).on(z,H);function F(){var ke=t.touches(et);return wr=o.k,ke.forEach(function(ge){ge.identifier in Vt&&(Vt[ge.identifier]=ee(ge))}),ke}function H(){var ke=t.event.target;t.select(ke).on(Wr,Z).on(fn,we),mn.push(ke);for(var ge=t.event.changedTouches,xe=0,He=ge.length;xe<He;++xe)Vt[ge[xe].identifier]=null;var We=F(),Xe=Date.now();if(We.length===1){if(Xe-re<500){var ut=We[0];$e(et,ut,Vt[ut.identifier],Math.floor(Math.log(o.k)/Math.LN2)+1),ct()}re=Xe}else if(We.length>1){var ut=We[0],Mt=We[1],wt=ut[0]-Mt[0],nt=ut[1]-Mt[1];ar=wt*wt+nt*nt}}function Z(){var ke=t.touches(et),ge,xe,He,We;Xl.call(et);for(var Xe=0,ut=ke.length;Xe<ut;++Xe,We=null)if(He=ke[Xe],We=Vt[He.identifier]){if(xe)break;ge=He,xe=We}if(We){var Mt=(Mt=He[0]-ge[0])*Mt+(Mt=He[1]-ge[1])*Mt,wt=ar&&Math.sqrt(Mt/ar);ge=[(ge[0]+He[0])/2,(ge[1]+He[1])/2],xe=[(xe[0]+We[0])/2,(xe[1]+We[1])/2],Be(wt*wr)}re=null,Je(ge,xe),Gt(Ht)}function we(){if(t.event.touches.length){for(var ke=t.event.changedTouches,ge=0,xe=ke.length;ge<xe;++ge)delete Vt[ke[ge].identifier];for(var He in Vt)return void F()}t.selectAll(mn).on(Pr,null),Jr.on(O,zt).on(z,ir),Sn(),xt(Ht)}}function Tr(){var et=oe.of(this,arguments);$?clearTimeout($):(Xl.call(this),f=ee(h=d||t.mouse(this)),dt(et)),$=setTimeout(function(){$=null,xt(et)},50),ct(),Be(Math.pow(2,gl()*.002)*o.k),Je(h,f),Gt(et)}function hr(){var et=t.mouse(this),Ht=Math.log(o.k)/Math.LN2;$e(this,et,ee(et),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var tu=[0,1/0],gl,ss;t.color=Di;function Di(){}Di.prototype.toString=function(){return this.rgb()+""},t.hsl=Ln;function Ln(o,f,h){return this instanceof Ln?(this.h=+o,this.s=+f,void(this.l=+h)):arguments.length<2?o instanceof Ln?new Ln(o.h,o.s,o.l):la(""+o,gs,Ln):new Ln(o,f,h)}var yl=Ln.prototype=new Di;yl.brighter=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ln(this.h,this.s,this.l/o)},yl.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Ln(this.h,this.s,o*this.l)},yl.rgb=function(){return xl(this.h,this.s,this.l)};function xl(o,f,h){var d,p;o=isNaN(o)?0:(o%=360)<0?o+360:o,f=isNaN(f)||f<0?0:f>1?1:f,h=h<0?0:h>1?1:h,p=h<=.5?h*(1+f):h+f-h*f,d=2*h-p;function m(_){return _>360?_-=360:_<0&&(_+=360),_<60?d+(p-d)*_/60:_<180?p:_<240?d+(p-d)*(240-_)/60:d}function E(_){return Math.round(m(_)*255)}return new Zr(E(o+120),E(o),E(o-120))}t.hcl=Yn;function Yn(o,f,h){return this instanceof Yn?(this.h=+o,this.c=+f,void(this.l=+h)):arguments.length<2?o instanceof Yn?new Yn(o.h,o.c,o.l):o instanceof Yr?Ad(o.l,o.a,o.b):Ad((o=fa((o=t.rgb(o)).r,o.g,o.b)).l,o.a,o.b):new Yn(o,f,h)}var ru=Yn.prototype=new Di;ru.brighter=function(o){return new Yn(this.h,this.c,Math.min(100,this.l+ua*(arguments.length?o:1)))},ru.darker=function(o){return new Yn(this.h,this.c,Math.max(0,this.l-ua*(arguments.length?o:1)))},ru.rgb=function(){return nu(this.h,this.c,this.l).rgb()};function nu(o,f,h){return isNaN(o)&&(o=0),isNaN(f)&&(f=0),new Yr(h,Math.cos(o*=xd)*f,Math.sin(o)*f)}t.lab=Yr;function Yr(o,f,h){return this instanceof Yr?(this.l=+o,this.a=+f,void(this.b=+h)):arguments.length<2?o instanceof Yr?new Yr(o.l,o.a,o.b):o instanceof Yn?nu(o.h,o.c,o.l):fa((o=Zr(o)).r,o.g,o.b):new Yr(o,f,h)}var ua=18,cs=.95047,hs=1,Sd=1.08883,ds=Yr.prototype=new Di;ds.brighter=function(o){return new Yr(Math.min(100,this.l+ua*(arguments.length?o:1)),this.a,this.b)},ds.darker=function(o){return new Yr(Math.max(0,this.l-ua*(arguments.length?o:1)),this.a,this.b)},ds.rgb=function(){return Ed(this.l,this.a,this.b)};function Ed(o,f,h){var d=(o+16)/116,p=d+f/500,m=d-h/200;return p=ps(p)*cs,d=ps(d)*hs,m=ps(m)*Sd,new Zr(ms(3.2404542*p-1.5371385*d-.4985314*m),ms(-.969266*p+1.8760108*d+.041556*m),ms(.0556434*p-.2040259*d+1.0572252*m))}function Ad(o,f,h){return o>0?new Yn(Math.atan2(h,f)*Jo,Math.sqrt(f*f+h*h),o):new Yn(NaN,NaN,o)}function ps(o){return o>.206893034?o*o*o:(o-4/29)/7.787037}function vs(o){return o>.008856?Math.pow(o,1/3):7.787037*o+4/29}function ms(o){return Math.round(255*(o<=.00304?12.92*o:1.055*Math.pow(o,1/2.4)-.055))}t.rgb=Zr;function Zr(o,f,h){return this instanceof Zr?(this.r=~~o,this.g=~~f,void(this.b=~~h)):arguments.length<2?o instanceof Zr?new Zr(o.r,o.g,o.b):la(""+o,Zr,xl):new Zr(o,f,h)}function Td(o){return new Zr(o>>16,o>>8&255,o&255)}function _l(o){return Td(o)+""}var Bi=Zr.prototype=new Di;Bi.brighter=function(o){o=Math.pow(.7,arguments.length?o:1);var f=this.r,h=this.g,d=this.b,p=30;return!f&&!h&&!d?new Zr(p,p,p):(f&&f<p&&(f=p),h&&h<p&&(h=p),d&&d<p&&(d=p),new Zr(Math.min(255,f/o),Math.min(255,h/o),Math.min(255,d/o)))},Bi.darker=function(o){return o=Math.pow(.7,arguments.length?o:1),new Zr(o*this.r,o*this.g,o*this.b)},Bi.hsl=function(){return gs(this.r,this.g,this.b)},Bi.toString=function(){return"#"+Wa(this.r)+Wa(this.g)+Wa(this.b)};function Wa(o){return o<16?"0"+Math.max(0,o).toString(16):Math.min(255,o).toString(16)}function la(o,f,h){var d=0,p=0,m=0,E,_,O;if(E=/([a-z]+)\((.*)\)/.exec(o=o.toLowerCase()),E)switch(_=E[2].split(","),E[1]){case"hsl":return h(parseFloat(_[0]),parseFloat(_[1])/100,parseFloat(_[2])/100);case"rgb":return f($i(_[0]),$i(_[1]),$i(_[2]))}return(O=Va.get(o))?f(O.r,O.g,O.b):(o!=null&&o.charAt(0)==="#"&&!isNaN(O=parseInt(o.slice(1),16))&&(o.length===4?(d=(O&3840)>>4,d=d>>4|d,p=O&240,p=p>>4|p,m=O&15,m=m<<4|m):o.length===7&&(d=(O&16711680)>>16,p=(O&65280)>>8,m=O&255)),f(d,p,m))}function gs(o,f,h){var d=Math.min(o/=255,f/=255,h/=255),p=Math.max(o,f,h),m=p-d,E,_,O=(p+d)/2;return m?(_=O<.5?m/(p+d):m/(2-p-d),o==p?E=(f-h)/m+(f<h?6:0):f==p?E=(h-o)/m+2:E=(o-f)/m+4,E*=60):(E=NaN,_=O>0&&O<1?0:E),new Ln(E,_,O)}function fa(o,f,h){o=wl(o),f=wl(f),h=wl(h);var d=vs((.4124564*o+.3575761*f+.1804375*h)/cs),p=vs((.2126729*o+.7151522*f+.072175*h)/hs),m=vs((.0193339*o+.119192*f+.9503041*h)/Sd);return Yr(116*p-16,500*(d-p),200*(p-m))}function wl(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function $i(o){var f=parseFloat(o);return o.charAt(o.length-1)==="%"?Math.round(f*2.55):f}var Va=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Va.forEach(function(o,f){Va.set(o,Td(f))});function vr(o){return typeof o=="function"?o:function(){return o}}t.functor=vr,t.xhr=ys(lt);function ys(o){return function(f,h,d){return arguments.length===2&&typeof h=="function"&&(d=h,h=null),bl(f,h,o,d)}}function bl(o,f,h,d){var p={},m=t.dispatch("beforesend","progress","load","error"),E={},_=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in _)&&/^(http(s)?:)?\/\//.test(o)&&(_=new XDomainRequest),"onload"in _?_.onload=_.onerror=I:_.onreadystatechange=function(){_.readyState>3&&I()};function I(){var P=_.status,$;if(!P&&Um(_)||P>=200&&P<300||P===304){try{$=h.call(p,_)}catch(z){m.error.call(p,z);return}m.load.call(p,$)}else m.error.call(p,_)}return _.onprogress=function(P){var $=t.event;t.event=P;try{m.progress.call(p,_)}finally{t.event=$}},p.header=function(P,$){return P=(P+"").toLowerCase(),arguments.length<2?E[P]:($==null?delete E[P]:E[P]=$+"",p)},p.mimeType=function(P){return arguments.length?(f=P==null?null:P+"",p):f},p.responseType=function(P){return arguments.length?(O=P,p):O},p.response=function(P){return h=P,p},["get","post"].forEach(function(P){p[P]=function(){return p.send.apply(p,[P].concat(n(arguments)))}}),p.send=function(P,$,z){if(arguments.length===2&&typeof $=="function"&&(z=$,$=null),_.open(P,o,!0),f!=null&&!("accept"in E)&&(E.accept=f+",*/*"),_.setRequestHeader)for(var re in E)_.setRequestHeader(re,E[re]);return f!=null&&_.overrideMimeType&&_.overrideMimeType(f),O!=null&&(_.responseType=O),z!=null&&p.on("error",z).on("load",function(oe){z(null,oe)}),m.beforesend.call(p,_),_.send($??null),p},p.abort=function(){return _.abort(),p},t.rebind(p,m,"on"),d==null?p:p.get(Cd(d))}function Cd(o){return o.length===1?function(f,h){o(f==null?h:null)}:o}function Um(o){var f=o.responseType;return f&&f!=="text"?o.response:o.responseText}t.dsv=function(o,f){var h=new RegExp('["'+o+`
810
810
  ]`),d=o.charCodeAt(0);function p(I,P,$){arguments.length<3&&($=P,P=null);var z=bl(I,f,P==null?m:E(P),$);return z.row=function(re){return arguments.length?z.response((P=re)==null?m:E(re)):P},z}function m(I){return p.parse(I.responseText)}function E(I){return function(P){return p.parse(P.responseText,I)}}p.parse=function(I,P){var $;return p.parseRows(I,function(z,re){if($)return $(z,re-1);var oe=function(j){for(var q={},K=z.length,ue=0;ue<K;++ue)q[z[ue]]=j[ue];return q};$=P?function(j,q){return P(oe(j),q)}:oe})},p.parseRows=function(I,P){var $={},z={},re=[],oe=I.length,j=0,q=0,K,ue;function le(){if(j>=oe)return z;if(ue)return ue=!1,$;var Me=j;if(I.charCodeAt(Me)===34){for(var Be=Me;Be++<oe;)if(I.charCodeAt(Be)===34){if(I.charCodeAt(Be+1)!==34)break;++Be}j=Be+2;var Je=I.charCodeAt(Be+1);return Je===13?(ue=!0,I.charCodeAt(Be+2)===10&&++j):Je===10&&(ue=!0),I.slice(Me+1,Be).replace(/""/g,'"')}for(;j<oe;){var Je=I.charCodeAt(j++),$e=1;if(Je===10)ue=!0;else if(Je===13)ue=!0,I.charCodeAt(j)===10&&(++j,++$e);else if(Je!==d)continue;return I.slice(Me,j-$e)}return I.slice(Me)}for(;(K=le())!==z;){for(var ee=[];K!==$&&K!==z;)ee.push(K),K=le();P&&(ee=P(ee,q++))==null||re.push(ee)}return re},p.format=function(I){if(Array.isArray(I[0]))return p.formatRows(I);var P=new mt,$=[];return I.forEach(function(z){for(var re in z)P.has(re)||$.push(P.add(re))}),[$.map(O).join(o)].concat(I.map(function(z){return $.map(function(re){return O(z[re])}).join(o)})).join(`
811
811
  `)},p.formatRows=function(I){return I.map(_).join(`
812
- `)};function _(I){return I.map(O).join(o)}function O(I){return h.test(I)?'"'+I.replace(/\"/g,'""')+'"':I}return p},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Sl,iu,Xn,El,Qn=this[Ye(this,"requestAnimationFrame")]||function(o){setTimeout(o,17)};t.timer=function(){qa.apply(this,arguments)};function qa(o,f,h){var d=arguments.length;d<2&&(f=0),d<3&&(h=Date.now());var p=h+f,m={c:o,t:p,n:null};return iu?iu.n=m:Sl=m,iu=m,Xn||(El=clearTimeout(El),Xn=1,Qn(Ya)),m}function Ya(){var o=zi(),f=Al()-o;f>24?(isFinite(f)&&(clearTimeout(El),El=setTimeout(Ya,f)),Xn=0):(Xn=1,Qn(Ya))}t.timer.flush=function(){zi(),Al()};function zi(){for(var o=Date.now(),f=Sl;f;)o>=f.t&&f.c(o-f.t)&&(f.c=null),f=f.n;return o}function Al(){for(var o,f=Sl,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(o=f).n):f=o?o.n=f.n:Sl=f.n;return iu=o,h}t.round=function(o,f){return f?Math.round(o*(f=Math.pow(10,f)))/f:Math.round(o)},t.geom={};function wi(o){return o[0]}function bi(o){return o[1]}t.geom.hull=function(o){var f=wi,h=bi;if(arguments.length)return d(o);function d(p){if(p.length<3)return[];var m=vr(f),E=vr(h),_,O=p.length,I=[],P=[];for(_=0;_<O;_++)I.push([+m.call(this,p[_],_),+E.call(this,p[_],_),_]);for(I.sort(kd),_=0;_<O;_++)P.push([I[_][0],-I[_][1]]);var $=au(I),z=au(P),re=z[0]===$[0],oe=z[z.length-1]===$[$.length-1],j=[];for(_=$.length-1;_>=0;--_)j.push(p[I[$[_]][2]]);for(_=+re;_<z.length-oe;++_)j.push(p[I[z[_]][2]]);return j}return d.x=function(p){return arguments.length?(f=p,d):f},d.y=function(p){return arguments.length?(h=p,d):h},d};function au(o){for(var f=o.length,h=[0,1],d=2,p=2;p<f;p++){for(;d>1&&Bm(o[h[d-2]],o[h[d-1]],o[p])<=0;)--d;h[d++]=p}return h.slice(0,d)}function kd(o,f){return o[0]-f[0]||o[1]-f[1]}t.geom.polygon=function(o){return Yt(o,Xa),o};var Xa=t.geom.polygon.prototype=[];Xa.area=function(){for(var o=-1,f=this.length,h,d=this[f-1],p=0;++o<f;)h=d,d=this[o],p+=h[1]*d[0]-h[0]*d[1];return p*.5},Xa.centroid=function(o){var f=-1,h=this.length,d=0,p=0,m,E=this[h-1],_;for(arguments.length||(o=-1/(6*this.area()));++f<h;)m=E,E=this[f],_=m[0]*E[1]-E[0]*m[1],d+=(m[0]+E[0])*_,p+=(m[1]+E[1])*_;return[d*o,p*o]},Xa.clip=function(o){for(var f,h=Od(o),d=-1,p=this.length-Od(this),m,E,_=this[p-1],O,I,P;++d<p;){for(f=o.slice(),o.length=0,O=this[d],I=f[(E=f.length-h)-1],m=-1;++m<E;)P=f[m],Tl(P,_,O)?(Tl(I,_,O)||o.push(xs(I,P,_,O)),o.push(P)):Tl(I,_,O)&&o.push(xs(I,P,_,O)),I=P;h&&o.push(o[0]),_=O}return o};function Tl(o,f,h){return(h[0]-f[0])*(o[1]-f[1])<(h[1]-f[1])*(o[0]-f[0])}function xs(o,f,h,d){var p=o[0],m=h[0],E=f[0]-p,_=d[0]-m,O=o[1],I=h[1],P=f[1]-O,$=d[1]-I,z=(_*(O-I)-$*(p-m))/($*E-_*P);return[p+z*E,O+z*P]}function Od(o){var f=o[0],h=o[o.length-1];return!(f[0]-h[0]||f[1]-h[1])}var Qa,sa,Ui,ou=[],uu,ca,ha=[];function _s(){Ol(this),this.edge=this.site=this.circle=null}function Cl(o){var f=ou.pop()||new _s;return f.site=o,f}function lu(o){Zn(o),Ui.remove(o),ou.push(o),Ol(o)}function ws(o){var f=o.circle,h=f.x,d=f.cy,p={x:h,y:d},m=o.P,E=o.N,_=[o];lu(o);for(var O=m;O.circle&&A(h-O.circle.x)<nr&&A(d-O.circle.cy)<nr;)m=O.P,_.unshift(O),lu(O),O=m;_.unshift(O),Zn(O);for(var I=E;I.circle&&A(h-I.circle.x)<nr&&A(d-I.circle.cy)<nr;)E=I.N,_.push(I),lu(I),I=E;_.push(I),Zn(I);var P=_.length,$;for($=1;$<P;++$)I=_[$],O=_[$-1],Za(I.edge,O.site,I.site,p);O=_[0],I=_[P-1],I.edge=su(O.site,I.site,null,p),da(O),da(I)}function Md(o){for(var f=o.x,h=o.y,d,p,m,E,_=Ui._;_;)if(m=bs(_,h)-f,m>nr)_=_.L;else if(E=f-Fd(_,h),E>nr){if(!_.R){d=_;break}_=_.R}else{m>-nr?(d=_.P,p=_):E>-nr?(d=_,p=_.N):d=p=_;break}var O=Cl(o);if(Ui.insert(d,O),!(!d&&!p)){if(d===p){Zn(d),p=Cl(d.site),Ui.insert(O,p),O.edge=p.edge=su(d.site,O.site),da(d),da(p);return}if(!p){O.edge=su(d.site,O.site);return}Zn(d),Zn(p);var I=d.site,P=I.x,$=I.y,z=o.x-P,re=o.y-$,oe=p.site,j=oe.x-P,q=oe.y-$,K=2*(z*q-re*j),ue=z*z+re*re,le=j*j+q*q,ee={x:(q*ue-re*le)/K+P,y:(z*le-j*ue)/K+$};Za(p.edge,I,oe,ee),O.edge=su(I,o,null,ee),p.edge=su(o,oe,null,ee),da(d),da(p)}}function bs(o,f){var h=o.site,d=h.x,p=h.y,m=p-f;if(!m)return d;var E=o.P;if(!E)return-1/0;h=E.site;var _=h.x,O=h.y,I=O-f;if(!I)return _;var P=_-d,$=1/m-1/I,z=P/I;return $?(-z+Math.sqrt(z*z-2*$*(P*P/(-2*I)-O+I/2+p-m/2)))/$+d:(d+_)/2}function Fd(o,f){var h=o.N;if(h)return bs(h,f);var d=o.site;return d.y===f?d.x:1/0}function Ss(o){this.site=o,this.edges=[]}Ss.prototype.prepare=function(){for(var o=this.edges,f=o.length,h;f--;)h=o[f].edge,(!h.b||!h.a)&&o.splice(f,1);return o.sort(Es),o.length};function Nd(o){for(var f=o[0][0],h=o[1][0],d=o[0][1],p=o[1][1],m,E,_,O,I=sa,P=I.length,$,z,re,oe,j,q;P--;)if($=I[P],!(!$||!$.prepare()))for(re=$.edges,oe=re.length,z=0;z<oe;)q=re[z].end(),_=q.x,O=q.y,j=re[++z%oe].start(),m=j.x,E=j.y,(A(_-m)>nr||A(O-E)>nr)&&(re.splice(z,0,new kl(jm($.site,q,A(_-f)<nr&&p-O>nr?{x:f,y:A(m-f)<nr?E:p}:A(O-p)<nr&&h-_>nr?{x:A(E-p)<nr?m:h,y:p}:A(_-h)<nr&&O-d>nr?{x:h,y:A(m-h)<nr?E:d}:A(O-d)<nr&&_-f>nr?{x:A(E-d)<nr?m:f,y:d}:null),$.site,null)),++oe)}function Es(o,f){return f.angle-o.angle}function Rd(){Ol(this),this.x=this.y=this.arc=this.site=this.cy=null}function da(o){var f=o.P,h=o.N;if(!(!f||!h)){var d=f.site,p=o.site,m=h.site;if(d!==m){var E=p.x,_=p.y,O=d.x-E,I=d.y-_,P=m.x-E,q=m.y-_,$=2*(O*q-I*P);if(!($>=-gd)){var z=O*O+I*I,re=P*P+q*q,oe=(q*z-I*re)/$,j=(O*re-P*z)/$,q=j+_,K=ha.pop()||new Rd;K.arc=o,K.site=p,K.x=oe+E,K.y=q+Math.sqrt(oe*oe+j*j),K.cy=q,o.circle=K;for(var ue=null,le=ca._;le;)if(K.y<le.y||K.y===le.y&&K.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}ca.insert(ue,K),ue||(uu=K)}}}}function Zn(o){var f=o.circle;f&&(f.P||(uu=f.N),ca.remove(f),ha.push(f),Ol(f),o.circle=null)}function As(o,f,h,d){return function(p){var m=p.a,E=p.b,_=m.x,O=m.y,I=E.x,P=E.y,$=0,z=1,re=I-_,oe=P-O,j;if(j=o-_,!(!re&&j>0)){if(j/=re,re<0){if(j<$)return;j<z&&(z=j)}else if(re>0){if(j>z)return;j>$&&($=j)}if(j=h-_,!(!re&&j<0)){if(j/=re,re<0){if(j>z)return;j>$&&($=j)}else if(re>0){if(j<$)return;j<z&&(z=j)}if(j=f-O,!(!oe&&j>0)){if(j/=oe,oe<0){if(j<$)return;j<z&&(z=j)}else if(oe>0){if(j>z)return;j>$&&($=j)}if(j=d-O,!(!oe&&j<0)){if(j/=oe,oe<0){if(j>z)return;j>$&&($=j)}else if(oe>0){if(j<$)return;j<z&&(z=j)}return $>0&&(p.a={x:_+$*re,y:O+$*oe}),z<1&&(p.b={x:_+z*re,y:O+z*oe}),p}}}}}}function Ts(o){for(var f=Qa,h=As(o[0][0],o[0][1],o[1][0],o[1][1]),d=f.length,p;d--;)p=f[d],(!fu(p,o)||!h(p)||A(p.a.x-p.b.x)<nr&&A(p.a.y-p.b.y)<nr)&&(p.a=p.b=null,f.splice(d,1))}function fu(o,f){var h=o.b;if(h)return!0;var d=o.a,p=f[0][0],m=f[1][0],E=f[0][1],_=f[1][1],O=o.l,I=o.r,P=O.x,$=O.y,z=I.x,re=I.y,oe=(P+z)/2,j=($+re)/2,q,K;if(re===$){if(oe<p||oe>=m)return;if(P>z){if(!d)d={x:oe,y:E};else if(d.y>=_)return;h={x:oe,y:_}}else{if(!d)d={x:oe,y:_};else if(d.y<E)return;h={x:oe,y:E}}}else if(q=(P-z)/(re-$),K=j-q*oe,q<-1||q>1)if(P>z){if(!d)d={x:(E-K)/q,y:E};else if(d.y>=_)return;h={x:(_-K)/q,y:_}}else{if(!d)d={x:(_-K)/q,y:_};else if(d.y<E)return;h={x:(E-K)/q,y:E}}else if($<re){if(!d)d={x:p,y:q*p+K};else if(d.x>=m)return;h={x:m,y:q*m+K}}else{if(!d)d={x:m,y:q*m+K};else if(d.x<p)return;h={x:p,y:q*p+K}}return o.a=d,o.b=h,!0}function Id(o,f){this.l=o,this.r=f,this.a=this.b=null}function su(o,f,h,d){var p=new Id(o,f);return Qa.push(p),h&&Za(p,o,f,h),d&&Za(p,f,o,d),sa[o.i].edges.push(new kl(p,o,f)),sa[f.i].edges.push(new kl(p,f,o)),p}function jm(o,f,h){var d=new Id(o,null);return d.a=f,d.b=h,Qa.push(d),d}function Za(o,f,h,d){!o.a&&!o.b?(o.a=d,o.l=f,o.r=h):o.l===h?o.b=d:o.a=d}function kl(o,f,h){var d=o.a,p=o.b;this.edge=o,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):o.l===f?Math.atan2(p.x-d.x,d.y-p.y):Math.atan2(d.x-p.x,p.y-d.y)}kl.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Cs(){this._=null}function Ol(o){o.U=o.C=o.L=o.R=o.P=o.N=null}Cs.prototype={insert:function(o,f){var h,d,p;if(o){if(f.P=o,f.N=o.N,o.N&&(o.N.P=f),o.N=f,o.R){for(o=o.R;o.L;)o=o.L;o.L=f}else o.R=f;h=o}else this._?(o=Ml(this._),f.P=null,f.N=o,o.P=o.L=f,h=o):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,o=f;h&&h.C;)d=h.U,h===d.L?(p=d.R,p&&p.C?(h.C=p.C=!1,d.C=!0,o=d):(o===h.R&&(pa(this,h),o=h,h=o.U),h.C=!1,d.C=!0,cu(this,d))):(p=d.L,p&&p.C?(h.C=p.C=!1,d.C=!0,o=d):(o===h.L&&(cu(this,h),o=h,h=o.U),h.C=!1,d.C=!0,pa(this,d))),h=o.U;this._.C=!1},remove:function(o){o.N&&(o.N.P=o.P),o.P&&(o.P.N=o.N),o.N=o.P=null;var f=o.U,h,d=o.L,p=o.R,m,E;if(d?p?m=Ml(p):m=d:m=p,f?f.L===o?f.L=m:f.R=m:this._=m,d&&p?(E=m.C,m.C=o.C,m.L=d,d.U=m,m!==p?(f=m.U,m.U=o.U,o=m.R,f.L=o,m.R=p,p.U=m):(m.U=f,f=m,o=m.R)):(E=o.C,o=m),o&&(o.U=f),!E){if(o&&o.C){o.C=!1;return}do{if(o===this._)break;if(o===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,pa(this,f),h=f.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,cu(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,pa(this,f),o=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,cu(this,f),h=f.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,pa(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,cu(this,f),o=this._;break}h.C=!0,o=f,f=f.U}while(!o.C);o&&(o.C=!1)}}};function pa(o,f){var h=f,d=f.R,p=h.U;p?p.L===h?p.L=d:p.R=d:o._=d,d.U=p,h.U=d,h.R=d.L,h.R&&(h.R.U=h),d.L=h}function cu(o,f){var h=f,d=f.L,p=h.U;p?p.L===h?p.L=d:p.R=d:o._=d,d.U=p,h.U=d,h.L=d.R,h.L&&(h.L.U=h),d.R=h}function Ml(o){for(;o.L;)o=o.L;return o}function Fl(o,f){var h=o.sort(Pd).pop(),d,p,m;for(Qa=[],sa=new Array(o.length),Ui=new Cs,ca=new Cs;;)if(m=uu,h&&(!m||h.y<m.y||h.y===m.y&&h.x<m.x))(h.x!==d||h.y!==p)&&(sa[h.i]=new Ss(h),Md(h),d=h.x,p=h.y),h=o.pop();else if(m)ws(m.arc);else break;f&&(Ts(f),Nd(f));var E={cells:sa,edges:Qa};return Ui=ca=Qa=sa=null,E}function Pd(o,f){return f.y-o.y||f.x-o.x}t.geom.voronoi=function(o){var f=wi,h=bi,d=f,p=h,m=Ka;if(o)return E(o);function E(O){var I=new Array(O.length),P=m[0][0],$=m[0][1],z=m[1][0],re=m[1][1];return Fl(_(O),m).cells.forEach(function(oe,j){var q=oe.edges,K=oe.site,ue=I[j]=q.length?q.map(function(le){var ee=le.start();return[ee.x,ee.y]}):K.x>=P&&K.x<=z&&K.y>=$&&K.y<=re?[[P,re],[z,re],[z,$],[P,$]]:[];ue.point=O[j]}),I}function _(O){return O.map(function(I,P){return{x:Math.round(d(I,P)/nr)*nr,y:Math.round(p(I,P)/nr)*nr,i:P}})}return E.links=function(O){return Fl(_(O)).edges.filter(function(I){return I.l&&I.r}).map(function(I){return{source:O[I.l.i],target:O[I.r.i]}})},E.triangles=function(O){var I=[];return Fl(_(O)).cells.forEach(function(P,$){for(var z=P.site,re=P.edges.sort(Es),oe=-1,j=re.length,q,K=re[j-1].edge,ue=K.l===z?K.r:K.l;++oe<j;)q=ue,K=re[oe].edge,ue=K.l===z?K.r:K.l,$<q.i&&$<ue.i&&Gm(z,q,ue)<0&&I.push([O[$],O[q.i],O[ue.i]])}),I},E.x=function(O){return arguments.length?(d=vr(f=O),E):f},E.y=function(O){return arguments.length?(p=vr(h=O),E):h},E.clipExtent=function(O){return arguments.length?(m=O??Ka,E):m===Ka?null:m},E.size=function(O){return arguments.length?E.clipExtent(O&&[[0,0],O]):m===Ka?null:m&&m[1]},E};var Ka=[[-1e6,-1e6],[1e6,1e6]];function Gm(o,f,h){return(o.x-h.x)*(f.y-o.y)-(o.x-f.x)*(h.y-o.y)}t.geom.delaunay=function(o){return t.geom.voronoi().triangles(o)},t.geom.quadtree=function(o,f,h,d,p){var m=wi,E=bi,_;if(_=arguments.length)return m=Nl,E=Hm,_===3&&(p=h,d=f,h=f=0),O(o);function O(I){var P,$=vr(m),z=vr(E),re,oe,j,q,K,ue,le,ee;if(f!=null)K=f,ue=h,le=d,ee=p;else if(le=ee=-(K=ue=1/0),re=[],oe=[],q=I.length,_)for(j=0;j<q;++j)P=I[j],P.x<K&&(K=P.x),P.y<ue&&(ue=P.y),P.x>le&&(le=P.x),P.y>ee&&(ee=P.y),re.push(P.x),oe.push(P.y);else for(j=0;j<q;++j){var Me=+$(P=I[j],j),Be=+z(P,j);Me<K&&(K=Me),Be<ue&&(ue=Be),Me>le&&(le=Me),Be>ee&&(ee=Be),re.push(Me),oe.push(Be)}var Je=le-K,$e=ee-ue;Je>$e?ee=ue+Je:le=K+$e;function it(xt,zt,ir,Tr,hr,et,Ht,Vt){if(!(isNaN(ir)||isNaN(Tr)))if(xt.leaf){var ar=xt.x,wr=xt.y;if(ar!=null)if(A(ar-ir)+A(wr-Tr)<.01)dt(xt,zt,ir,Tr,hr,et,Ht,Vt);else{var Pr=xt.point;xt.x=xt.y=xt.point=null,dt(xt,Pr,ar,wr,hr,et,Ht,Vt),dt(xt,zt,ir,Tr,hr,et,Ht,Vt)}else xt.x=ir,xt.y=Tr,xt.point=zt}else dt(xt,zt,ir,Tr,hr,et,Ht,Vt)}function dt(xt,zt,ir,Tr,hr,et,Ht,Vt){var ar=(hr+Ht)*.5,wr=(et+Vt)*.5,Pr=ir>=ar,Wr=Tr>=wr,fn=Wr<<1|Pr;xt.leaf=!1,xt=xt.nodes[fn]||(xt.nodes[fn]=Ld()),Pr?hr=ar:Ht=ar,Wr?et=wr:Vt=wr,it(xt,zt,ir,Tr,hr,et,Ht,Vt)}var Gt=Ld();if(Gt.add=function(xt){it(Gt,xt,+$(xt,++j),+z(xt,j),K,ue,le,ee)},Gt.visit=function(xt){hu(xt,Gt,K,ue,le,ee)},Gt.find=function(xt){return Wm(Gt,xt[0],xt[1],K,ue,le,ee)},j=-1,f==null){for(;++j<q;)it(Gt,I[j],re[j],oe[j],K,ue,le,ee);--j}else I.forEach(Gt.add);return re=oe=I=P=null,Gt}return O.x=function(I){return arguments.length?(m=I,O):m},O.y=function(I){return arguments.length?(E=I,O):E},O.extent=function(I){return arguments.length?(I==null?f=h=d=p=null:(f=+I[0][0],h=+I[0][1],d=+I[1][0],p=+I[1][1]),O):f==null?null:[[f,h],[d,p]]},O.size=function(I){return arguments.length?(I==null?f=h=d=p=null:(f=h=0,d=+I[0],p=+I[1]),O):f==null?null:[d-f,p-h]},O};function Nl(o){return o.x}function Hm(o){return o.y}function Ld(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hu(o,f,h,d,p,m){if(!o(f,h,d,p,m)){var E=(h+p)*.5,_=(d+m)*.5,O=f.nodes;O[0]&&hu(o,O[0],h,d,E,_),O[1]&&hu(o,O[1],E,d,p,_),O[2]&&hu(o,O[2],h,_,E,m),O[3]&&hu(o,O[3],E,_,p,m)}}function Wm(o,f,h,d,p,m,E){var _=1/0,O;return function I(P,$,z,re,oe){if(!($>m||z>E||re<d||oe<p)){if(j=P.point){var j,q=f-P.x,K=h-P.y,ue=q*q+K*K;if(ue<_){var le=Math.sqrt(_=ue);d=f-le,p=h-le,m=f+le,E=h+le,O=j}}for(var ee=P.nodes,Me=($+re)*.5,Be=(z+oe)*.5,Je=f>=Me,$e=h>=Be,it=$e<<1|Je,dt=it+4;it<dt;++it)if(P=ee[it&3])switch(it&3){case 0:I(P,$,z,Me,Be);break;case 1:I(P,Me,z,re,Be);break;case 2:I(P,$,Be,Me,oe);break;case 3:I(P,Me,Be,re,oe);break}}}(o,d,p,m,E),O}t.interpolateRgb=ks;function ks(o,f){o=t.rgb(o),f=t.rgb(f);var h=o.r,d=o.g,p=o.b,m=f.r-h,E=f.g-d,_=f.b-p;return function(O){return"#"+Wa(Math.round(h+m*O))+Wa(Math.round(d+E*O))+Wa(Math.round(p+_*O))}}t.interpolateObject=Dd;function Dd(o,f){var h={},d={},p;for(p in o)p in f?h[p]=li(o[p],f[p]):d[p]=o[p];for(p in f)p in o||(d[p]=f[p]);return function(m){for(p in h)d[p]=h[p](m);return d}}t.interpolateNumber=Si;function Si(o,f){return o=+o,f=+f,function(h){return o*(1-h)+f*h}}t.interpolateString=Os;function Os(o,f){var h=va.lastIndex=Ms.lastIndex=0,d,p,m,E=-1,_=[],O=[];for(o=o+"",f=f+"";(d=va.exec(o))&&(p=Ms.exec(f));)(m=p.index)>h&&(m=f.slice(h,m),_[E]?_[E]+=m:_[++E]=m),(d=d[0])===(p=p[0])?_[E]?_[E]+=p:_[++E]=p:(_[++E]=null,O.push({i:E,x:Si(d,p)})),h=Ms.lastIndex;return h<f.length&&(m=f.slice(h),_[E]?_[E]+=m:_[++E]=m),_.length<2?O[0]?(f=O[0].x,function(I){return f(I)+""}):function(){return f}:(f=O.length,function(I){for(var P=0,$;P<f;++P)_[($=O[P]).i]=$.x(I);return _.join("")})}var va=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ms=new RegExp(va.source,"g");t.interpolate=li;function li(o,f){for(var h=t.interpolators.length,d;--h>=0&&!(d=t.interpolators[h](o,f)););return d}t.interpolators=[function(o,f){var h=typeof f;return(h==="string"?Va.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?ks:Os:f instanceof Di?ks:Array.isArray(f)?bn:h==="object"&&isNaN(f)?Dd:Si)(o,f)}],t.interpolateArray=bn;function bn(o,f){var h=[],d=[],p=o.length,m=f.length,E=Math.min(o.length,f.length),_;for(_=0;_<E;++_)h.push(li(o[_],f[_]));for(;_<p;++_)d[_]=o[_];for(;_<m;++_)d[_]=f[_];return function(O){for(_=0;_<E;++_)d[_]=h[_](O);return d}}var ma=function(){return lt},Bd=t.map({linear:ma,poly:Xr,quad:function(){return Ud},cubic:function(){return Vm},sin:function(){return jd},exp:function(){return Gd},circle:function(){return ga},elastic:Hd,back:Wd,bounce:function(){return qm}}),$d=t.map({in:lt,out:Fs,"in-out":Ns,"out-in":function(o){return Ns(Fs(o))}});t.ease=function(o){var f=o.indexOf("-"),h=f>=0?o.slice(0,f):o,d=f>=0?o.slice(f+1):"in";return h=Bd.get(h)||ma,d=$d.get(d)||lt,zd(d(h.apply(null,r.call(arguments,1))))};function zd(o){return function(f){return f<=0?0:f>=1?1:o(f)}}function Fs(o){return function(f){return 1-o(1-f)}}function Ns(o){return function(f){return .5*(f<.5?o(2*f):2-o(2-2*f))}}function Ud(o){return o*o}function Vm(o){return o*o*o}function Ja(o){if(o<=0)return 0;if(o>=1)return 1;var f=o*o,h=f*o;return 4*(o<.5?h:3*(o-f)+h-.75)}function Xr(o){return function(f){return Math.pow(f,o)}}function jd(o){return 1-Math.cos(o*ui)}function Gd(o){return Math.pow(2,10*(o-1))}function ga(o){return 1-Math.sqrt(1-o*o)}function Hd(o,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/Ha*Math.asin(1/o):(o=1,h=f/4),function(d){return 1+o*Math.pow(2,-10*d)*Math.sin((d-h)*Ha/f)}}function Wd(o){return o||(o=1.70158),function(f){return f*f*((o+1)*f-o)}}function qm(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375}t.interpolateHcl=Ym;function Ym(o,f){o=t.hcl(o),f=t.hcl(f);var h=o.h,d=o.c,p=o.l,m=f.h-h,E=f.c-d,_=f.l-p;return isNaN(E)&&(E=0,d=isNaN(d)?f.c:d),isNaN(m)?(m=0,h=isNaN(h)?f.h:h):m>180?m-=360:m<-180&&(m+=360),function(O){return nu(h+m*O,d+E*O,p+_*O)+""}}t.interpolateHsl=Xm;function Xm(o,f){o=t.hsl(o),f=t.hsl(f);var h=o.h,d=o.s,p=o.l,m=f.h-h,E=f.s-d,_=f.l-p;return isNaN(E)&&(E=0,d=isNaN(d)?f.s:d),isNaN(m)?(m=0,h=isNaN(h)?f.h:h):m>180?m-=360:m<-180&&(m+=360),function(O){return xl(h+m*O,d+E*O,p+_*O)+""}}t.interpolateLab=Qm;function Qm(o,f){o=t.lab(o),f=t.lab(f);var h=o.l,d=o.a,p=o.b,m=f.l-h,E=f.a-d,_=f.b-p;return function(O){return Ed(h+m*O,d+E*O,p+_*O)+""}}t.interpolateRound=Rl;function Rl(o,f){return f-=o,function(h){return Math.round(o+f*h)}}t.transform=function(o){var f=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){f.setAttribute("transform",h);var d=f.transform.baseVal.consolidate()}return new Rs(d?d.matrix:Zm)})(o)};function Rs(o){var f=[o.a,o.b],h=[o.c,o.d],d=Is(f),p=Vd(f,h),m=Is(qd(h,f,-p))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,d*=-1,p*=-1),this.rotate=(d?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*Jo,this.translate=[o.e,o.f],this.scale=[d,m],this.skew=m?Math.atan2(p,m)*Jo:0}Rs.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Vd(o,f){return o[0]*f[0]+o[1]*f[1]}function Is(o){var f=Math.sqrt(Vd(o,o));return f&&(o[0]/=f,o[1]/=f),f}function qd(o,f,h){return o[0]+=h*f[0],o[1]+=h*f[1],o}var Zm={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Ps;function Ei(o){return o.length?o.pop()+",":""}function Km(o,f,h,d){if(o[0]!==f[0]||o[1]!==f[1]){var p=h.push("translate(",null,",",null,")");d.push({i:p-4,x:Si(o[0],f[0])},{i:p-2,x:Si(o[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function ji(o,f,h,d){o!==f?(o-f>180?f+=360:f-o>180&&(o+=360),d.push({i:h.push(Ei(h)+"rotate(",null,")")-2,x:Si(o,f)})):f&&h.push(Ei(h)+"rotate("+f+")")}function Il(o,f,h,d){o!==f?d.push({i:h.push(Ei(h)+"skewX(",null,")")-2,x:Si(o,f)}):f&&h.push(Ei(h)+"skewX("+f+")")}function Yd(o,f,h,d){if(o[0]!==f[0]||o[1]!==f[1]){var p=h.push(Ei(h)+"scale(",null,",",null,")");d.push({i:p-4,x:Si(o[0],f[0])},{i:p-2,x:Si(o[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Ei(h)+"scale("+f+")")}function Ps(o,f){var h=[],d=[];return o=t.transform(o),f=t.transform(f),Km(o.translate,f.translate,h,d),ji(o.rotate,f.rotate,h,d),Il(o.skew,f.skew,h,d),Yd(o.scale,f.scale,h,d),o=f=null,function(p){for(var m=-1,E=d.length,_;++m<E;)h[(_=d[m]).i]=_.x(p);return h.join("")}}function Xd(o,f){return f=(f-=o=+o)||1/f,function(h){return(h-o)/f}}function Qd(o,f){return f=(f-=o=+o)||1/f,function(h){return Math.max(0,Math.min(1,(h-o)/f))}}t.layout={},t.layout.bundle=function(){return function(o){for(var f=[],h=-1,d=o.length;++h<d;)f.push(Zd(o[h]));return f}};function Zd(o){for(var f=o.source,h=o.target,d=Kd(f,h),p=[f];f!==d;)f=f.parent,p.push(f);for(var m=p.length;h!==d;)p.splice(m,0,h),h=h.parent;return p}function Ls(o){for(var f=[],h=o.parent;h!=null;)f.push(o),o=h,h=h.parent;return f.push(o),f}function Kd(o,f){if(o===f)return o;for(var h=Ls(o),d=Ls(f),p=h.pop(),m=d.pop(),E=null;p===m;)E=p,p=h.pop(),m=d.pop();return E}t.layout.chord=function(){var o={},f,h,d,p,m=0,E,_,O;function I(){var $={},z=[],re=t.range(p),oe=[],j,q,K,ue,le;for(f=[],h=[],j=0,ue=-1;++ue<p;){for(q=0,le=-1;++le<p;)q+=d[ue][le];z.push(q),oe.push(t.range(p)),j+=q}for(E&&re.sort(function(Gt,xt){return E(z[Gt],z[xt])}),_&&oe.forEach(function(Gt,xt){Gt.sort(function(zt,ir){return _(d[xt][zt],d[xt][ir])})}),j=(Ha-m*p)/j,q=0,ue=-1;++ue<p;){for(K=q,le=-1;++le<p;){var ee=re[ue],Me=oe[ee][le],Be=d[ee][Me],Je=q,$e=q+=Be*j;$[ee+"-"+Me]={index:ee,subindex:Me,startAngle:Je,endAngle:$e,value:Be}}h[ee]={index:ee,startAngle:K,endAngle:q,value:z[ee]},q+=m}for(ue=-1;++ue<p;)for(le=ue-1;++le<p;){var it=$[ue+"-"+le],dt=$[le+"-"+ue];(it.value||dt.value)&&f.push(it.value<dt.value?{source:dt,target:it}:{source:it,target:dt})}O&&P()}function P(){f.sort(function($,z){return O(($.source.value+$.target.value)/2,(z.source.value+z.target.value)/2)})}return o.matrix=function($){return arguments.length?(p=(d=$)&&d.length,f=h=null,o):d},o.padding=function($){return arguments.length?(m=$,f=h=null,o):m},o.sortGroups=function($){return arguments.length?(E=$,f=h=null,o):E},o.sortSubgroups=function($){return arguments.length?(_=$,f=null,o):_},o.sortChords=function($){return arguments.length?(O=$,f&&P(),o):O},o.chords=function(){return f||I(),f},o.groups=function(){return h||I(),h},o},t.layout.force=function(){var o={},f=t.dispatch("start","tick","end"),h,d=[1,1],p,m,E=.9,_=Ai,O=Ds,I=-30,P=eo,$=.1,z=.64,re=[],oe=[],j,q,K;function ue(ee){return function(Me,Be,Je,$e){if(Me.point!==ee){var it=Me.cx-ee.x,dt=Me.cy-ee.y,Gt=$e-Be,xt=it*it+dt*dt;if(Gt*Gt/z<xt){if(xt<P){var zt=Me.charge/xt;ee.px-=it*zt,ee.py-=dt*zt}return!0}if(Me.point&&xt&&xt<P){var zt=Me.pointCharge/xt;ee.px-=it*zt,ee.py-=dt*zt}}return!Me.charge}}o.tick=function(){if((m*=.99)<.005)return h=null,f.end({type:"end",alpha:m=0}),!0;var ee=re.length,Me=oe.length,Be,Je,$e,it,dt,Gt,xt,zt,ir;for(Je=0;Je<Me;++Je)$e=oe[Je],it=$e.source,dt=$e.target,zt=dt.x-it.x,ir=dt.y-it.y,(Gt=zt*zt+ir*ir)&&(Gt=m*q[Je]*((Gt=Math.sqrt(Gt))-j[Je])/Gt,zt*=Gt,ir*=Gt,dt.x-=zt*(xt=it.weight+dt.weight?it.weight/(it.weight+dt.weight):.5),dt.y-=ir*xt,it.x+=zt*(xt=1-xt),it.y+=ir*xt);if((xt=m*$)&&(zt=d[0]/2,ir=d[1]/2,Je=-1,xt))for(;++Je<ee;)$e=re[Je],$e.x+=(zt-$e.x)*xt,$e.y+=(ir-$e.y)*xt;if(I)for(rp(Be=t.geom.quadtree(re),m,K),Je=-1;++Je<ee;)($e=re[Je]).fixed||Be.visit(ue($e));for(Je=-1;++Je<ee;)$e=re[Je],$e.fixed?($e.x=$e.px,$e.y=$e.py):($e.x-=($e.px-($e.px=$e.x))*E,$e.y-=($e.py-($e.py=$e.y))*E);f.tick({type:"tick",alpha:m})},o.nodes=function(ee){return arguments.length?(re=ee,o):re},o.links=function(ee){return arguments.length?(oe=ee,o):oe},o.size=function(ee){return arguments.length?(d=ee,o):d},o.linkDistance=function(ee){return arguments.length?(_=typeof ee=="function"?ee:+ee,o):_},o.distance=o.linkDistance,o.linkStrength=function(ee){return arguments.length?(O=typeof ee=="function"?ee:+ee,o):O},o.friction=function(ee){return arguments.length?(E=+ee,o):E},o.charge=function(ee){return arguments.length?(I=typeof ee=="function"?ee:+ee,o):I},o.chargeDistance=function(ee){return arguments.length?(P=ee*ee,o):Math.sqrt(P)},o.gravity=function(ee){return arguments.length?($=+ee,o):$},o.theta=function(ee){return arguments.length?(z=ee*ee,o):Math.sqrt(z)},o.alpha=function(ee){return arguments.length?(ee=+ee,m?ee>0?m=ee:(h.c=null,h.t=NaN,h=null,f.end({type:"end",alpha:m=0})):ee>0&&(f.start({type:"start",alpha:m=ee}),h=qa(o.tick)),o):m},o.start=function(){var ee,Me=re.length,Be=oe.length,Je=d[0],$e=d[1],it,dt;for(ee=0;ee<Me;++ee)(dt=re[ee]).index=ee,dt.weight=0;for(ee=0;ee<Be;++ee)dt=oe[ee],typeof dt.source=="number"&&(dt.source=re[dt.source]),typeof dt.target=="number"&&(dt.target=re[dt.target]),++dt.source.weight,++dt.target.weight;for(ee=0;ee<Me;++ee)dt=re[ee],isNaN(dt.x)&&(dt.x=Gt("x",Je)),isNaN(dt.y)&&(dt.y=Gt("y",$e)),isNaN(dt.px)&&(dt.px=dt.x),isNaN(dt.py)&&(dt.py=dt.y);if(j=[],typeof _=="function")for(ee=0;ee<Be;++ee)j[ee]=+_.call(this,oe[ee],ee);else for(ee=0;ee<Be;++ee)j[ee]=_;if(q=[],typeof O=="function")for(ee=0;ee<Be;++ee)q[ee]=+O.call(this,oe[ee],ee);else for(ee=0;ee<Be;++ee)q[ee]=O;if(K=[],typeof I=="function")for(ee=0;ee<Me;++ee)K[ee]=+I.call(this,re[ee],ee);else for(ee=0;ee<Me;++ee)K[ee]=I;function Gt(xt,zt){if(!it){for(it=new Array(Me),hr=0;hr<Me;++hr)it[hr]=[];for(hr=0;hr<Be;++hr){var ir=oe[hr];it[ir.source.index].push(ir.target),it[ir.target.index].push(ir.source)}}for(var Tr=it[ee],hr=-1,et=Tr.length,Ht;++hr<et;)if(!isNaN(Ht=Tr[hr][xt]))return Ht;return Math.random()*zt}return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){if(p||(p=t.behavior.drag().origin(lt).on("dragstart.force",Jd).on("drag.force",le).on("dragend.force",ep)),!arguments.length)return p;this.on("mouseover.force",Kn).on("mouseout.force",tp).call(p)};function le(ee){ee.px=t.event.x,ee.py=t.event.y,o.resume()}return t.rebind(o,f,"on")};function Jd(o){o.fixed|=2}function ep(o){o.fixed&=-7}function Kn(o){o.fixed|=4,o.px=o.x,o.py=o.y}function tp(o){o.fixed&=-5}function rp(o,f,h){var d=0,p=0;if(o.charge=0,!o.leaf)for(var m=o.nodes,E=m.length,_=-1,O;++_<E;)O=m[_],O!=null&&(rp(O,f,h),o.charge+=O.charge,d+=O.charge*O.cx,p+=O.charge*O.cy);if(o.point){o.leaf||(o.point.x+=Math.random()-.5,o.point.y+=Math.random()-.5);var I=f*h[o.point.index];o.charge+=o.pointCharge=I,d+=I*o.point.x,p+=I*o.point.y}o.cx=d/o.charge,o.cy=p/o.charge}var Ai=20,Ds=1,eo=1/0;t.layout.hierarchy=function(){var o=Jm,f=np,h=ip;function d(p){var m=[p],E=[],_;for(p.depth=0;(_=m.pop())!=null;)if(E.push(_),(I=f.call(d,_,_.depth))&&(O=I.length)){for(var O,I,P;--O>=0;)m.push(P=I[O]),P.parent=_,P.depth=_.depth+1;h&&(_.value=0),_.children=I}else h&&(_.value=+h.call(d,_,_.depth)||0),delete _.children;return Jn(p,function($){var z,re;o&&(z=$.children)&&z.sort(o),h&&(re=$.parent)&&(re.value+=$.value)}),E}return d.sort=function(p){return arguments.length?(o=p,d):o},d.children=function(p){return arguments.length?(f=p,d):f},d.value=function(p){return arguments.length?(h=p,d):h},d.revalue=function(p){return h&&(ro(p,function(m){m.children&&(m.value=0)}),Jn(p,function(m){var E;m.children||(m.value=+h.call(d,m,m.depth)||0),(E=m.parent)&&(E.value+=m.value)})),p},d};function to(o,f){return t.rebind(o,f,"sort","children","value"),o.nodes=o,o.links=eg,o}function ro(o,f){for(var h=[o];(o=h.pop())!=null;)if(f(o),(p=o.children)&&(d=p.length))for(var d,p;--d>=0;)h.push(p[d])}function Jn(o,f){for(var h=[o],d=[];(o=h.pop())!=null;)if(d.push(o),(E=o.children)&&(m=E.length))for(var p=-1,m,E;++p<m;)h.push(E[p]);for(;(o=d.pop())!=null;)f(o)}function np(o){return o.children}function ip(o){return o.value}function Jm(o,f){return f.value-o.value}function eg(o){return t.merge(o.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var o=t.layout.hierarchy(),f=[1,1];function h(m,E,_,O){var I=m.children;if(m.x=E,m.y=m.depth*O,m.dx=_,m.dy=O,I&&($=I.length)){var P=-1,$,z,re;for(_=m.value?_/m.value:0;++P<$;)h(z=I[P],E,re=z.value*_,O),E+=re}}function d(m){var E=m.children,_=0;if(E&&(I=E.length))for(var O=-1,I;++O<I;)_=Math.max(_,d(E[O]));return 1+_}function p(m,E){var _=o.call(this,m,E);return h(_[0],0,f[0],f[1]/d(_[0])),_}return p.size=function(m){return arguments.length?(f=m,p):f},to(p,o)},t.layout.pie=function(){var o=Number,f=ap,h=0,d=Ha,p=0;function m(E){var _=E.length,O=E.map(function(ue,le){return+o.call(m,ue,le)}),I=+(typeof h=="function"?h.apply(this,arguments):h),P=(typeof d=="function"?d.apply(this,arguments):d)-I,$=Math.min(Math.abs(P)/_,+(typeof p=="function"?p.apply(this,arguments):p)),z=$*(P<0?-1:1),re=t.sum(O),oe=re?(P-_*z)/re:0,j=t.range(_),q=[],K;return f!=null&&j.sort(f===ap?function(ue,le){return O[le]-O[ue]}:function(ue,le){return f(E[ue],E[le])}),j.forEach(function(ue){q[ue]={data:E[ue],value:K=O[ue],startAngle:I,endAngle:I+=K*oe+z,padAngle:$}}),q}return m.value=function(E){return arguments.length?(o=E,m):o},m.sort=function(E){return arguments.length?(f=E,m):f},m.startAngle=function(E){return arguments.length?(h=E,m):h},m.endAngle=function(E){return arguments.length?(d=E,m):d},m.padAngle=function(E){return arguments.length?(p=E,m):p},m};var ap={};t.layout.stack=function(){var o=lt,f=$s,h=zs,d=ng,p=tg,m=rg;function E(_,O){if(!(oe=_.length))return _;var I=_.map(function(ue,le){return o.call(E,ue,le)}),P=I.map(function(ue){return ue.map(function(le,ee){return[p.call(E,le,ee),m.call(E,le,ee)]})}),$=f.call(E,P,O);I=t.permute(I,$),P=t.permute(P,$);var z=h.call(E,P,O),re=I[0].length,oe,j,q,K;for(q=0;q<re;++q)for(d.call(E,I[0][q],K=z[q],P[0][q][1]),j=1;j<oe;++j)d.call(E,I[j][q],K+=P[j-1][q][1],P[j][q][1]);return _}return E.values=function(_){return arguments.length?(o=_,E):o},E.order=function(_){return arguments.length?(f=typeof _=="function"?_:Bs.get(_)||$s,E):f},E.offset=function(_){return arguments.length?(h=typeof _=="function"?_:Pl.get(_)||zs,E):h},E.x=function(_){return arguments.length?(p=_,E):p},E.y=function(_){return arguments.length?(m=_,E):m},E.out=function(_){return arguments.length?(d=_,E):d},E};function tg(o){return o.x}function rg(o){return o.y}function ng(o,f,h){o.y0=f,o.y=h}var Bs=t.map({"inside-out":function(o){var f=o.length,h,d,p=o.map(op),m=o.map(Ll),E=t.range(f).sort(function($,z){return p[$]-p[z]}),_=0,O=0,I=[],P=[];for(h=0;h<f;++h)d=E[h],_<O?(_+=m[d],I.push(d)):(O+=m[d],P.push(d));return P.reverse().concat(I)},reverse:function(o){return t.range(o.length).reverse()},default:$s}),Pl=t.map({silhouette:function(o){var f=o.length,h=o[0].length,d=[],p=0,m,E,_,O=[];for(E=0;E<h;++E){for(m=0,_=0;m<f;m++)_+=o[m][E][1];_>p&&(p=_),d.push(_)}for(E=0;E<h;++E)O[E]=(p-d[E])/2;return O},wiggle:function(o){var f=o.length,h=o[0],d=h.length,p,m,E,_,O,I,P,$,z,re=[];for(re[0]=$=z=0,m=1;m<d;++m){for(p=0,_=0;p<f;++p)_+=o[p][m][1];for(p=0,O=0,P=h[m][0]-h[m-1][0];p<f;++p){for(E=0,I=(o[p][m][1]-o[p][m-1][1])/(2*P);E<p;++E)I+=(o[E][m][1]-o[E][m-1][1])/P;O+=I*o[p][m][1]}re[m]=$-=_?O/_*P:0,$<z&&(z=$)}for(m=0;m<d;++m)re[m]-=z;return re},expand:function(o){var f=o.length,h=o[0].length,d=1/f,p,m,E,_=[];for(m=0;m<h;++m){for(p=0,E=0;p<f;p++)E+=o[p][m][1];if(E)for(p=0;p<f;p++)o[p][m][1]/=E;else for(p=0;p<f;p++)o[p][m][1]=d}for(m=0;m<h;++m)_[m]=0;return _},zero:zs});function $s(o){return t.range(o.length)}function zs(o){for(var f=-1,h=o[0].length,d=[];++f<h;)d[f]=0;return d}function op(o){for(var f=1,h=0,d=o[0][1],p,m=o.length;f<m;++f)(p=o[f][1])>d&&(h=f,d=p);return h}function Ll(o){return o.reduce(Us,0)}function Us(o,f){return o+f[1]}t.layout.histogram=function(){var o=!0,f=Number,h=ag,d=ig;function p(m,z){for(var _=[],O=m.map(f,this),I=h.call(this,O,z),P=d.call(this,I,O,z),$,z=-1,re=O.length,oe=P.length-1,j=o?1:1/re,q;++z<oe;)$=_[z]=[],$.dx=P[z+1]-($.x=P[z]),$.y=0;if(oe>0)for(z=-1;++z<re;)q=O[z],q>=I[0]&&q<=I[1]&&($=_[t.bisect(P,q,1,oe)-1],$.y+=j,$.push(m[z]));return _}return p.value=function(m){return arguments.length?(f=m,p):f},p.range=function(m){return arguments.length?(h=vr(m),p):h},p.bins=function(m){return arguments.length?(d=typeof m=="number"?function(E){return js(E,m)}:vr(m),p):d},p.frequency=function(m){return arguments.length?(o=!!m,p):o},p};function ig(o,f){return js(o,Math.ceil(Math.log(f.length)/Math.LN2+1))}function js(o,f){for(var h=-1,d=+o[0],p=(o[1]-d)/f,m=[];++h<=f;)m[h]=p*h+d;return m}function ag(o){return[t.min(o),t.max(o)]}t.layout.pack=function(){var o=t.layout.hierarchy().sort(og),f=0,h=[1,1],d;function p(m,E){var _=o.call(this,m,E),O=_[0],I=h[0],P=h[1],$=d==null?Math.sqrt:typeof d=="function"?d:function(){return d};if(O.x=O.y=0,Jn(O,function(re){re.r=+$(re.value)}),Jn(O,Hs),f){var z=f*(d?1:Math.max(2*O.r/I,2*O.r/P))/2;Jn(O,function(re){re.r+=z}),Jn(O,Hs),Jn(O,function(re){re.r-=z})}return fp(O,I/2,P/2,d?1:1/Math.max(2*O.r/I,2*O.r/P)),_}return p.size=function(m){return arguments.length?(h=m,p):h},p.radius=function(m){return arguments.length?(d=m==null||typeof m=="function"?m:+m,p):d},p.padding=function(m){return arguments.length?(f=+m,p):f},to(p,o)};function og(o,f){return o.value-f.value}function Gs(o,f){var h=o._pack_next;o._pack_next=f,f._pack_prev=o,f._pack_next=h,h._pack_prev=f}function up(o,f){o._pack_next=f,f._pack_prev=o}function lp(o,f){var h=f.x-o.x,d=f.y-o.y,p=o.r+f.r;return .999*p*p>h*h+d*d}function Hs(o){if(!(f=o.children)||!(z=f.length))return;var f,h=1/0,d=-1/0,p=1/0,m=-1/0,E,_,O,I,P,$,z;function re(ee){h=Math.min(ee.x-ee.r,h),d=Math.max(ee.x+ee.r,d),p=Math.min(ee.y-ee.r,p),m=Math.max(ee.y+ee.r,m)}if(f.forEach(ug),E=f[0],E.x=-E.r,E.y=0,re(E),z>1&&(_=f[1],_.x=_.r,_.y=0,re(_),z>2))for(O=f[2],sp(E,_,O),re(O),Gs(E,O),E._pack_prev=O,Gs(O,_),_=E._pack_next,I=3;I<z;I++){sp(E,_,O=f[I]);var oe=0,j=1,q=1;for(P=_._pack_next;P!==_;P=P._pack_next,j++)if(lp(P,O)){oe=1;break}if(oe==1)for($=E._pack_prev;$!==P._pack_prev&&!lp($,O);$=$._pack_prev,q++);oe?(j<q||j==q&&_.r<E.r?up(E,_=P):up(E=$,_),I--):(Gs(E,O),_=O,re(O))}var K=(h+d)/2,ue=(p+m)/2,le=0;for(I=0;I<z;I++)O=f[I],O.x-=K,O.y-=ue,le=Math.max(le,O.r+Math.sqrt(O.x*O.x+O.y*O.y));o.r=le,f.forEach(lg)}function ug(o){o._pack_next=o._pack_prev=o}function lg(o){delete o._pack_next,delete o._pack_prev}function fp(o,f,h,d){var p=o.children;if(o.x=f+=d*o.x,o.y=h+=d*o.y,o.r*=d,p)for(var m=-1,E=p.length;++m<E;)fp(p[m],f,h,d)}function sp(o,f,h){var d=o.r+h.r,p=f.x-o.x,m=f.y-o.y;if(d&&(p||m)){var E=f.r+h.r,_=p*p+m*m;E*=E,d*=d;var O=.5+(d-E)/(2*_),I=Math.sqrt(Math.max(0,2*E*(d+_)-(d-=_)*d-E*E))/(2*_);h.x=o.x+O*p+I*m,h.y=o.y+O*m-I*p}else h.x=o.x+d,h.y=o.y}t.layout.tree=function(){var o=t.layout.hierarchy().sort(null).value(null),f=cp,h=[1,1],d=null;function p(P,$){var z=o.call(this,P,$),re=z[0],oe=m(re);if(Jn(oe,E),oe.parent.m=-oe.z,ro(oe,_),d)ro(re,I);else{var j=re,q=re,K=re;ro(re,function(Me){Me.x<j.x&&(j=Me),Me.x>q.x&&(q=Me),Me.depth>K.depth&&(K=Me)});var ue=f(j,q)/2-j.x,le=h[0]/(q.x+f(q,j)/2+ue),ee=h[1]/(K.depth||1);ro(re,function(Me){Me.x=(Me.x+ue)*le,Me.y=Me.depth*ee})}return z}function m(P){for(var $={A:null,children:[P]},z=[$],re;(re=z.pop())!=null;)for(var oe=re.children,j,q=0,K=oe.length;q<K;++q)z.push((oe[q]=j={_:oe[q],parent:re,children:(j=oe[q].children)&&j.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:q}).a=j);return $.children[0]}function E(P){var $=P.children,z=P.parent.children,re=P.i?z[P.i-1]:null;if($.length){sg(P);var oe=($[0].z+$[$.length-1].z)/2;re?(P.z=re.z+f(P._,re._),P.m=P.z-oe):P.z=oe}else re&&(P.z=re.z+f(P._,re._));P.parent.A=O(P,re,P.parent.A||z[0])}function _(P){P._.x=P.z+P.parent.m,P.m+=P.parent.m}function O(P,$,z){if($){for(var re=P,oe=P,j=$,q=re.parent.children[0],K=re.m,ue=oe.m,le=j.m,ee=q.m,Me;j=Vs(j),re=Ws(re),j&&re;)q=Ws(q),oe=Vs(oe),oe.a=P,Me=j.z+le-re.z-K+f(j._,re._),Me>0&&(fg(fi(j,P,z),P,Me),K+=Me,ue+=Me),le+=j.m,K+=re.m,ee+=q.m,ue+=oe.m;j&&!Vs(oe)&&(oe.t=j,oe.m+=le-ue),re&&!Ws(q)&&(q.t=re,q.m+=K-ee,z=P)}return z}function I(P){P.x*=h[0],P.y=P.depth*h[1]}return p.separation=function(P){return arguments.length?(f=P,p):f},p.size=function(P){return arguments.length?(d=(h=P)==null?I:null,p):d?null:h},p.nodeSize=function(P){return arguments.length?(d=(h=P)==null?null:I,p):d?h:null},to(p,o)};function cp(o,f){return o.parent==f.parent?1:2}function Ws(o){var f=o.children;return f.length?f[0]:o.t}function Vs(o){var f=o.children,h;return(h=f.length)?f[h-1]:o.t}function fg(o,f,h){var d=h/(f.i-o.i);f.c-=d,f.s+=h,o.c+=d,f.z+=h,f.m+=h}function sg(o){for(var f=0,h=0,d=o.children,p=d.length,m;--p>=0;)m=d[p],m.z+=f,m.m+=f,f+=m.s+(h+=m.c)}function fi(o,f,h){return o.a.parent===f.parent?o.a:h}t.layout.cluster=function(){var o=t.layout.hierarchy().sort(null).value(null),f=cp,h=[1,1],d=!1;function p(m,E){var _=o.call(this,m,E),O=_[0],I,P=0;Jn(O,function(j){var q=j.children;q&&q.length?(j.x=cg(q),j.y=hp(q)):(j.x=I?P+=f(j,I):0,j.y=0,I=j)});var $=dp(O),z=pp(O),re=$.x-f($,z)/2,oe=z.x+f(z,$)/2;return Jn(O,d?function(j){j.x=(j.x-O.x)*h[0],j.y=(O.y-j.y)*h[1]}:function(j){j.x=(j.x-re)/(oe-re)*h[0],j.y=(1-(O.y?j.y/O.y:1))*h[1]}),_}return p.separation=function(m){return arguments.length?(f=m,p):f},p.size=function(m){return arguments.length?(d=(h=m)==null,p):d?null:h},p.nodeSize=function(m){return arguments.length?(d=(h=m)!=null,p):d?h:null},to(p,o)};function hp(o){return 1+t.max(o,function(f){return f.y})}function cg(o){return o.reduce(function(f,h){return f+h.x},0)/o.length}function dp(o){var f=o.children;return f&&f.length?dp(f[0]):o}function pp(o){var f=o.children,h;return f&&(h=f.length)?pp(f[h-1]):o}t.layout.treemap=function(){var o=t.layout.hierarchy(),f=Math.round,h=[1,1],d=null,p=qs,m=!1,E,_="squarify",O=.5*(1+Math.sqrt(5));function I(j,q){for(var K=-1,ue=j.length,le,ee;++K<ue;)ee=(le=j[K]).value*(q<0?0:q),le.area=isNaN(ee)||ee<=0?0:ee}function P(j){var q=j.children;if(q&&q.length){var K=p(j),ue=[],le=q.slice(),ee,Me=1/0,Be,Je=_==="slice"?K.dx:_==="dice"?K.dy:_==="slice-dice"?j.depth&1?K.dy:K.dx:Math.min(K.dx,K.dy),$e;for(I(le,K.dx*K.dy/j.value),ue.area=0;($e=le.length)>0;)ue.push(ee=le[$e-1]),ue.area+=ee.area,_!=="squarify"||(Be=z(ue,Je))<=Me?(le.pop(),Me=Be):(ue.area-=ue.pop().area,re(ue,Je,K,!1),Je=Math.min(K.dx,K.dy),ue.length=ue.area=0,Me=1/0);ue.length&&(re(ue,Je,K,!0),ue.length=ue.area=0),q.forEach(P)}}function $(j){var q=j.children;if(q&&q.length){var K=p(j),ue=q.slice(),le,ee=[];for(I(ue,K.dx*K.dy/j.value),ee.area=0;le=ue.pop();)ee.push(le),ee.area+=le.area,le.z!=null&&(re(ee,le.z?K.dx:K.dy,K,!ue.length),ee.length=ee.area=0);q.forEach($)}}function z(j,q){for(var K=j.area,ue,le=0,ee=1/0,Me=-1,Be=j.length;++Me<Be;)(ue=j[Me].area)&&(ue<ee&&(ee=ue),ue>le&&(le=ue));return K*=K,q*=q,K?Math.max(q*le*O/K,K/(q*ee*O)):1/0}function re(j,q,K,ue){var le=-1,ee=j.length,Me=K.x,Be=K.y,Je=q?f(j.area/q):0,$e;if(q==K.dx){for((ue||Je>K.dy)&&(Je=K.dy);++le<ee;)$e=j[le],$e.x=Me,$e.y=Be,$e.dy=Je,Me+=$e.dx=Math.min(K.x+K.dx-Me,Je?f($e.area/Je):0);$e.z=!0,$e.dx+=K.x+K.dx-Me,K.y+=Je,K.dy-=Je}else{for((ue||Je>K.dx)&&(Je=K.dx);++le<ee;)$e=j[le],$e.x=Me,$e.y=Be,$e.dx=Je,Be+=$e.dy=Math.min(K.y+K.dy-Be,Je?f($e.area/Je):0);$e.z=!1,$e.dy+=K.y+K.dy-Be,K.x+=Je,K.dx-=Je}}function oe(j){var q=E||o(j),K=q[0];return K.x=K.y=0,K.value?(K.dx=h[0],K.dy=h[1]):K.dx=K.dy=0,E&&o.revalue(K),I([K],K.dx*K.dy/K.value),(E?$:P)(K),m&&(E=q),q}return oe.size=function(j){return arguments.length?(h=j,oe):h},oe.padding=function(j){if(!arguments.length)return d;function q(le){var ee=j.call(oe,le,le.depth);return ee==null?qs(le):vp(le,typeof ee=="number"?[ee,ee,ee,ee]:ee)}function K(le){return vp(le,j)}var ue;return p=(d=j)==null?qs:(ue=typeof j)=="function"?q:(ue==="number"&&(j=[j,j,j,j]),K),oe},oe.round=function(j){return arguments.length?(f=j?Math.round:Number,oe):f!=Number},oe.sticky=function(j){return arguments.length?(m=j,E=null,oe):m},oe.ratio=function(j){return arguments.length?(O=j,oe):O},oe.mode=function(j){return arguments.length?(_=j+"",oe):_},to(oe,o)};function qs(o){return{x:o.x,y:o.y,dx:o.dx,dy:o.dy}}function vp(o,f){var h=o.x+f[3],d=o.y+f[0],p=o.dx-f[1]-f[3],m=o.dy-f[0]-f[2];return p<0&&(h+=p/2,p=0),m<0&&(d+=m/2,m=0),{x:h,y:d,dx:p,dy:m}}t.random={normal:function(o,f){var h=arguments.length;return h<2&&(f=1),h<1&&(o=0),function(){var d,p,m;do d=Math.random()*2-1,p=Math.random()*2-1,m=d*d+p*p;while(!m||m>1);return o+f*d*Math.sqrt(-2*Math.log(m)/m)}},logNormal:function(){var o=t.random.normal.apply(t,arguments);return function(){return Math.exp(o())}},bates:function(o){var f=t.random.irwinHall(o);return function(){return f()/o}},irwinHall:function(o){return function(){for(var f=0,h=0;h<o;h++)f+=Math.random();return f}}},t.scale={};function Dl(o){var f=o[0],h=o[o.length-1];return f<h?[f,h]:[h,f]}function Bl(o){return o.rangeExtent?o.rangeExtent():Dl(o.range())}function hg(o,f,h,d){var p=h(o[0],o[1]),m=d(f[0],f[1]);return function(E){return m(p(E))}}function zr(o,f){var h=0,d=o.length-1,p=o[h],m=o[d],E;return m<p&&(E=h,h=d,d=E,E=p,p=m,m=E),o[h]=f.floor(p),o[d]=f.ceil(m),o}function ya(o){return o?{floor:function(f){return Math.floor(f/o)*o},ceil:function(f){return Math.ceil(f/o)*o}}:no}var no={floor:lt,ceil:lt};function dg(o,f,h,d){var p=[],m=[],E=0,_=Math.min(o.length,f.length)-1;for(o[_]<o[0]&&(o=o.slice().reverse(),f=f.slice().reverse());++E<=_;)p.push(h(o[E-1],o[E])),m.push(d(f[E-1],f[E]));return function(O){var I=t.bisect(o,O,1,_)-1;return m[I](p[I](O))}}t.scale.linear=function(){return xa([0,1],[0,1],li,!1)};function xa(o,f,h,d){var p,m;function E(){var O=Math.min(o.length,f.length)>2?dg:hg,I=d?Qd:Xd;return p=O(o,f,I,h),m=O(f,o,I,li),_}function _(O){return p(O)}return _.invert=function(O){return m(O)},_.domain=function(O){return arguments.length?(o=O.map(Number),E()):o},_.range=function(O){return arguments.length?(f=O,E()):f},_.rangeRound=function(O){return _.range(O).interpolate(Rl)},_.clamp=function(O){return arguments.length?(d=O,E()):d},_.interpolate=function(O){return arguments.length?(h=O,E()):h},_.ticks=function(O){return pu(o,O)},_.tickFormat=function(O,I){return d3_scale_linearTickFormat(o,O,I)},_.nice=function(O){return _a(o,O),E()},_.copy=function(){return xa(o,f,h,d)},E()}function Ys(o,f){return t.rebind(o,f,"range","rangeRound","interpolate","clamp")}function _a(o,f){return zr(o,ya(du(o,f)[2])),zr(o,ya(du(o,f)[2])),o}function du(o,f){f==null&&(f=10);var h=Dl(o),d=h[1]-h[0],p=Math.pow(10,Math.floor(Math.log(d/f)/Math.LN10)),m=f/d*p;return m<=.15?p*=10:m<=.35?p*=5:m<=.75&&(p*=2),h[0]=Math.ceil(h[0]/p)*p,h[1]=Math.floor(h[1]/p)*p+p*.5,h[2]=p,h}function pu(o,f){return t.range.apply(t,du(o,f))}t.scale.log=function(){return $l(t.scale.linear().domain([0,1]),10,!0,[1,10])};function $l(o,f,h,d){function p(_){return(h?Math.log(_<0?0:_):-Math.log(_>0?0:-_))/Math.log(f)}function m(_){return h?Math.pow(f,_):-Math.pow(f,-_)}function E(_){return o(p(_))}return E.invert=function(_){return m(o.invert(_))},E.domain=function(_){return arguments.length?(h=_[0]>=0,o.domain((d=_.map(Number)).map(p)),E):d},E.base=function(_){return arguments.length?(f=+_,o.domain(d.map(p)),E):f},E.nice=function(){var _=zr(d.map(p),h?Math:Xs);return o.domain(_),d=_.map(m),E},E.ticks=function(){var _=Dl(d),O=[],I=_[0],P=_[1],$=Math.floor(p(I)),z=Math.ceil(p(P)),re=f%1?2:f;if(isFinite(z-$)){if(h){for(;$<z;$++)for(var oe=1;oe<re;oe++)O.push(m($)*oe);O.push(m($))}else for(O.push(m($));$++<z;)for(var oe=re-1;oe>0;oe--)O.push(m($)*oe);for($=0;O[$]<I;$++);for(z=O.length;O[z-1]>P;z--);O=O.slice($,z)}return O},E.copy=function(){return $l(o.copy(),f,h,d)},Ys(E,o)}var Xs={floor:function(o){return-Math.ceil(-o)},ceil:function(o){return-Math.floor(-o)}};t.scale.pow=function(){return zl(t.scale.linear(),1,[0,1])};function zl(o,f,h){var d=wa(f),p=wa(1/f);function m(E){return o(d(E))}return m.invert=function(E){return p(o.invert(E))},m.domain=function(E){return arguments.length?(o.domain((h=E.map(Number)).map(d)),m):h},m.ticks=function(E){return pu(h,E)},m.tickFormat=function(E,_){return d3_scale_linearTickFormat(h,E,_)},m.nice=function(E){return m.domain(_a(h,E))},m.exponent=function(E){return arguments.length?(d=wa(f=E),p=wa(1/f),o.domain(h.map(d)),m):f},m.copy=function(){return zl(o.copy(),f,h)},Ys(m,o)}function wa(o){return function(f){return f<0?-Math.pow(-f,o):Math.pow(f,o)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Qs([],{t:"range",a:[[]]})};function Qs(o,f){var h,d,p;function m(_){return d[((h.get(_)||(f.t==="range"?h.set(_,o.push(_)):NaN))-1)%d.length]}function E(_,O){return t.range(o.length).map(function(I){return _+O*I})}return m.domain=function(_){if(!arguments.length)return o;o=[],h=new L;for(var O=-1,I=_.length,P;++O<I;)h.has(P=_[O])||h.set(P,o.push(P));return m[f.t].apply(m,f.a)},m.range=function(_){return arguments.length?(d=_,p=0,f={t:"range",a:arguments},m):d},m.rangePoints=function(_,O){arguments.length<2&&(O=0);var I=_[0],P=_[1],$=o.length<2?(I=(I+P)/2,0):(P-I)/(o.length-1+O);return d=E(I+$*O/2,$),p=0,f={t:"rangePoints",a:arguments},m},m.rangeRoundPoints=function(_,O){arguments.length<2&&(O=0);var I=_[0],P=_[1],$=o.length<2?(I=P=Math.round((I+P)/2),0):(P-I)/(o.length-1+O)|0;return d=E(I+Math.round($*O/2+(P-I-(o.length-1+O)*$)/2),$),p=0,f={t:"rangeRoundPoints",a:arguments},m},m.rangeBands=function(_,O,I){arguments.length<2&&(O=0),arguments.length<3&&(I=O);var P=_[1]<_[0],$=_[P-0],z=_[1-P],re=(z-$)/(o.length-O+2*I);return d=E($+re*I,re),P&&d.reverse(),p=re*(1-O),f={t:"rangeBands",a:arguments},m},m.rangeRoundBands=function(_,O,I){arguments.length<2&&(O=0),arguments.length<3&&(I=O);var P=_[1]<_[0],$=_[P-0],z=_[1-P],re=Math.floor((z-$)/(o.length-O+2*I));return d=E($+Math.round((z-$-(o.length-O)*re)/2),re),P&&d.reverse(),p=Math.round(re*(1-O)),f={t:"rangeRoundBands",a:arguments},m},m.rangeBand=function(){return p},m.rangeExtent=function(){return Dl(f.a[0])},m.copy=function(){return Qs(o,f)},m.domain(o)}t.scale.category10=function(){return t.scale.ordinal().range(mp)},t.scale.category20=function(){return t.scale.ordinal().range(gp)},t.scale.category20b=function(){return t.scale.ordinal().range(yp)},t.scale.category20c=function(){return t.scale.ordinal().range(xp)};var mp=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_l),gp=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_l),yp=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_l),xp=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_l);t.scale.quantile=function(){return Ul([],[])};function Ul(o,f){var h;function d(){var m=0,E=f.length;for(h=[];++m<E;)h[m-1]=t.quantile(o,m/E);return p}function p(m){if(!isNaN(m=+m))return f[t.bisect(h,m)]}return p.domain=function(m){return arguments.length?(o=m.map(g).filter(k).sort(y),d()):o},p.range=function(m){return arguments.length?(f=m,d()):f},p.quantiles=function(){return h},p.invertExtent=function(m){return m=f.indexOf(m),m<0?[NaN,NaN]:[m>0?h[m-1]:o[0],m<h.length?h[m]:o[o.length-1]]},p.copy=function(){return Ul(o,f)},d()}t.scale.quantize=function(){return jl(0,1,[0,1])};function jl(o,f,h){var d,p;function m(_){return h[Math.max(0,Math.min(p,Math.floor(d*(_-o))))]}function E(){return d=h.length/(f-o),p=h.length-1,m}return m.domain=function(_){return arguments.length?(o=+_[0],f=+_[_.length-1],E()):[o,f]},m.range=function(_){return arguments.length?(h=_,E()):h},m.invertExtent=function(_){return _=h.indexOf(_),_=_<0?NaN:_/d+o,[_,_+1/d]},m.copy=function(){return jl(o,f,h)},E()}t.scale.threshold=function(){return Zs([.5],[0,1])};function Zs(o,f){function h(d){if(d<=d)return f[t.bisect(o,d)]}return h.domain=function(d){return arguments.length?(o=d,h):o},h.range=function(d){return arguments.length?(f=d,h):f},h.invertExtent=function(d){return d=f.indexOf(d),[o[d-1],o[d]]},h.copy=function(){return Zs(o,f)},h}t.scale.identity=function(){return Ks([0,1])};function Ks(o){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(o=h.map(f),f):o},f.ticks=function(h){return pu(o,h)},f.tickFormat=function(h,d){return d3_scale_linearTickFormat(o,h,d)},f.copy=function(){return Ks(o)},f}t.svg={};function _p(){return 0}t.svg.arc=function(){var o=Js,f=wp,h=_p,d=vu,p=ec,m=Gl,E=tc;function _(){var I=Math.max(0,+o.apply(this,arguments)),P=Math.max(0,+f.apply(this,arguments)),$=p.apply(this,arguments)-ui,z=m.apply(this,arguments)-ui,re=Math.abs(z-$),oe=$>z?0:1;if(P<I&&(j=P,P=I,I=j),re>=yd)return O(P,oe)+(I?O(I,1-oe):"")+"Z";var j,q,K,ue,le=0,ee=0,Me,Be,Je,$e,it,dt,Gt,xt,zt=[];if((ue=(+E.apply(this,arguments)||0)/2)&&(K=d===vu?Math.sqrt(I*I+P*P):+d.apply(this,arguments),oe||(ee*=-1),P&&(ee=_d(K/P*Math.sin(ue))),I&&(le=_d(K/I*Math.sin(ue)))),P){Me=P*Math.cos($+ee),Be=P*Math.sin($+ee),Je=P*Math.cos(z-ee),$e=P*Math.sin(z-ee);var ir=Math.abs(z-$-2*ee)<=_i?0:1;if(ee&&mu(Me,Be,Je,$e)===oe^ir){var Tr=($+z)/2;Me=P*Math.cos(Tr),Be=P*Math.sin(Tr),Je=$e=null}}else Me=Be=0;if(I){it=I*Math.cos(z-le),dt=I*Math.sin(z-le),Gt=I*Math.cos($+le),xt=I*Math.sin($+le);var hr=Math.abs($-z+2*le)<=_i?0:1;if(le&&mu(it,dt,Gt,xt)===1-oe^hr){var et=($+z)/2;it=I*Math.cos(et),dt=I*Math.sin(et),Gt=xt=null}}else it=dt=0;if(re>nr&&(j=Math.min(Math.abs(P-I)/2,+h.apply(this,arguments)))>.001){q=I<P^oe?0:1;var Ht=j,Vt=j;if(re<_i){var ar=Gt==null?[it,dt]:Je==null?[Me,Be]:xs([Me,Be],[Gt,xt],[Je,$e],[it,dt]),wr=Me-ar[0],Pr=Be-ar[1],Wr=Je-ar[0],fn=$e-ar[1],mn=1/Math.sin(Math.acos((wr*Wr+Pr*fn)/(Math.sqrt(wr*wr+Pr*Pr)*Math.sqrt(Wr*Wr+fn*fn)))/2),Jr=Math.sqrt(ar[0]*ar[0]+ar[1]*ar[1]);Vt=Math.min(j,(I-Jr)/(mn-1)),Ht=Math.min(j,(P-Jr)/(mn+1))}if(Je!=null){var Sn=io(Gt==null?[it,dt]:[Gt,xt],[Me,Be],P,Ht,oe),F=io([Je,$e],[it,dt],P,Ht,oe);j===Ht?zt.push("M",Sn[0],"A",Ht,",",Ht," 0 0,",q," ",Sn[1],"A",P,",",P," 0 ",1-oe^mu(Sn[1][0],Sn[1][1],F[1][0],F[1][1]),",",oe," ",F[1],"A",Ht,",",Ht," 0 0,",q," ",F[0]):zt.push("M",Sn[0],"A",Ht,",",Ht," 0 1,",q," ",F[0])}else zt.push("M",Me,",",Be);if(Gt!=null){var H=io([Me,Be],[Gt,xt],I,-Vt,oe),Z=io([it,dt],Je==null?[Me,Be]:[Je,$e],I,-Vt,oe);j===Vt?zt.push("L",Z[0],"A",Vt,",",Vt," 0 0,",q," ",Z[1],"A",I,",",I," 0 ",oe^mu(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Vt,",",Vt," 0 0,",q," ",H[0]):zt.push("L",Z[0],"A",Vt,",",Vt," 0 0,",q," ",H[0])}else zt.push("L",it,",",dt)}else zt.push("M",Me,",",Be),Je!=null&&zt.push("A",P,",",P," 0 ",ir,",",oe," ",Je,",",$e),zt.push("L",it,",",dt),Gt!=null&&zt.push("A",I,",",I," 0 ",hr,",",1-oe," ",Gt,",",xt);return zt.push("Z"),zt.join("")}function O(I,P){return"M0,"+I+"A"+I+","+I+" 0 1,"+P+" 0,"+-I+"A"+I+","+I+" 0 1,"+P+" 0,"+I}return _.innerRadius=function(I){return arguments.length?(o=vr(I),_):o},_.outerRadius=function(I){return arguments.length?(f=vr(I),_):f},_.cornerRadius=function(I){return arguments.length?(h=vr(I),_):h},_.padRadius=function(I){return arguments.length?(d=I==vu?vu:vr(I),_):d},_.startAngle=function(I){return arguments.length?(p=vr(I),_):p},_.endAngle=function(I){return arguments.length?(m=vr(I),_):m},_.padAngle=function(I){return arguments.length?(E=vr(I),_):E},_.centroid=function(){var I=(+o.apply(this,arguments)+ +f.apply(this,arguments))/2,P=(+p.apply(this,arguments)+ +m.apply(this,arguments))/2-ui;return[Math.cos(P)*I,Math.sin(P)*I]},_};var vu="auto";function Js(o){return o.innerRadius}function wp(o){return o.outerRadius}function ec(o){return o.startAngle}function Gl(o){return o.endAngle}function tc(o){return o&&o.padAngle}function mu(o,f,h,d){return(o-h)*f-(f-d)*o>0?0:1}function io(o,f,h,d,p){var m=o[0]-f[0],E=o[1]-f[1],_=(p?d:-d)/Math.sqrt(m*m+E*E),O=_*E,I=-_*m,P=o[0]+O,$=o[1]+I,z=f[0]+O,re=f[1]+I,oe=(P+z)/2,j=($+re)/2,q=z-P,K=re-$,ue=q*q+K*K,le=h-d,ee=P*re-z*$,Me=(K<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-ee*ee)),Be=(ee*K-q*Me)/ue,Je=(-ee*q-K*Me)/ue,$e=(ee*K+q*Me)/ue,it=(-ee*q+K*Me)/ue,dt=Be-oe,Gt=Je-j,xt=$e-oe,zt=it-j;return dt*dt+Gt*Gt>xt*xt+zt*zt&&(Be=$e,Je=it),[[Be-O,Je-I],[Be*h/le,Je*h/le]]}function rc(){return!0}function nc(o){var f=wi,h=bi,d=rc,p=Dn,m=p.key,E=.7;function _(O){var I=[],P=[],$=-1,z=O.length,re,oe=vr(f),j=vr(h);function q(){I.push("M",p(o(P),E))}for(;++$<z;)d.call(this,re=O[$],$)?P.push([+oe.call(this,re,$),+j.call(this,re,$)]):P.length&&(q(),P=[]);return P.length&&q(),I.length?I.join(""):null}return _.x=function(O){return arguments.length?(f=O,_):f},_.y=function(O){return arguments.length?(h=O,_):h},_.defined=function(O){return arguments.length?(d=O,_):d},_.interpolate=function(O){return arguments.length?(typeof O=="function"?m=p=O:m=(p=gu.get(O)||Dn).key,_):m},_.tension=function(O){return arguments.length?(E=O,_):E},_}t.svg.line=function(){return nc(lt)};var gu=t.map({linear:Dn,"linear-closed":ic,step:ac,"step-before":yu,"step-after":ba,basis:xu,"basis-open":Wl,"basis-closed":ao,bundle:oo,cardinal:Ti,"cardinal-open":bp,"cardinal-closed":Hl,monotone:pg});gu.forEach(function(o,f){f.key=o,f.closed=/-closed$/.test(o)});function Dn(o){return o.length>1?o.join("L"):o+"Z"}function ic(o){return o.join("L")+"Z"}function ac(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("H",(d[0]+(d=o[f])[0])/2,"V",d[1]);return h>1&&p.push("H",d[0]),p.join("")}function yu(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("V",(d=o[f])[1],"H",d[0]);return p.join("")}function ba(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("H",(d=o[f])[0],"V",d[1]);return p.join("")}function bp(o,f){return o.length<4?Dn(o):o[1]+Sa(o.slice(1,-1),Gi(o,f))}function Hl(o,f){return o.length<3?ic(o):o[0]+Sa((o.push(o[0]),o),Gi([o[o.length-2]].concat(o,[o[1]]),f))}function Ti(o,f){return o.length<3?Dn(o):o[0]+Sa(o,Gi(o,f))}function Sa(o,f){if(f.length<1||o.length!=f.length&&o.length!=f.length+2)return Dn(o);var h=o.length!=f.length,d="",p=o[0],m=o[1],E=f[0],_=E,O=1;if(h&&(d+="Q"+(m[0]-E[0]*2/3)+","+(m[1]-E[1]*2/3)+","+m[0]+","+m[1],p=o[1],O=2),f.length>1){_=f[1],m=o[O],O++,d+="C"+(p[0]+E[0])+","+(p[1]+E[1])+","+(m[0]-_[0])+","+(m[1]-_[1])+","+m[0]+","+m[1];for(var I=2;I<f.length;I++,O++)m=o[O],_=f[I],d+="S"+(m[0]-_[0])+","+(m[1]-_[1])+","+m[0]+","+m[1]}if(h){var P=o[O];d+="Q"+(m[0]+_[0]*2/3)+","+(m[1]+_[1]*2/3)+","+P[0]+","+P[1]}return d}function Gi(o,f){for(var h=[],d=(1-f)/2,p,m=o[0],E=o[1],_=1,O=o.length;++_<O;)p=m,m=E,E=o[_],h.push([d*(E[0]-p[0]),d*(E[1]-p[1])]);return h}function xu(o){if(o.length<3)return Dn(o);var f=1,h=o.length,d=o[0],p=d[0],m=d[1],E=[p,p,p,(d=o[1])[0]],_=[m,m,m,d[1]],O=[p,",",m,"L",Kr(ei,E),",",Kr(ei,_)];for(o.push(o[h-1]);++f<=h;)d=o[f],E.shift(),E.push(d[0]),_.shift(),_.push(d[1]),_u(O,E,_);return o.pop(),O.push("L",d),O.join("")}function Wl(o){if(o.length<4)return Dn(o);for(var f=[],h=-1,d=o.length,p,m=[0],E=[0];++h<3;)p=o[h],m.push(p[0]),E.push(p[1]);for(f.push(Kr(ei,m)+","+Kr(ei,E)),--h;++h<d;)p=o[h],m.shift(),m.push(p[0]),E.shift(),E.push(p[1]),_u(f,m,E);return f.join("")}function ao(o){for(var f,h=-1,d=o.length,p=d+4,m,E=[],_=[];++h<4;)m=o[h%d],E.push(m[0]),_.push(m[1]);for(f=[Kr(ei,E),",",Kr(ei,_)],--h;++h<p;)m=o[h%d],E.shift(),E.push(m[0]),_.shift(),_.push(m[1]),_u(f,E,_);return f.join("")}function oo(o,f){var h=o.length-1;if(h)for(var d=o[0][0],p=o[0][1],m=o[h][0]-d,E=o[h][1]-p,_=-1,O,I;++_<=h;)O=o[_],I=_/h,O[0]=f*O[0]+(1-f)*(d+I*m),O[1]=f*O[1]+(1-f)*(p+I*E);return xu(o)}function Kr(o,f){return o[0]*f[0]+o[1]*f[1]+o[2]*f[2]+o[3]*f[3]}var Vl=[0,2/3,1/3,0],ql=[0,1/3,2/3,0],ei=[0,1/6,2/3,1/6];function _u(o,f,h){o.push("C",Kr(Vl,f),",",Kr(Vl,h),",",Kr(ql,f),",",Kr(ql,h),",",Kr(ei,f),",",Kr(ei,h))}function wu(o,f){return(f[1]-o[1])/(f[0]-o[0])}function uo(o){for(var f=0,h=o.length-1,d=[],p=o[0],m=o[1],E=d[0]=wu(p,m);++f<h;)d[f]=(E+(E=wu(p=m,m=o[f+1])))/2;return d[f]=E,d}function lo(o){for(var f=[],h,d,p,m,E=uo(o),_=-1,O=o.length-1;++_<O;)h=wu(o[_],o[_+1]),A(h)<nr?E[_]=E[_+1]=0:(d=E[_]/h,p=E[_+1]/h,m=d*d+p*p,m>9&&(m=h*3/Math.sqrt(m),E[_]=m*d,E[_+1]=m*p));for(_=-1;++_<=O;)m=(o[Math.min(O,_+1)][0]-o[Math.max(0,_-1)][0])/(6*(1+E[_]*E[_])),f.push([m||0,E[_]*m||0]);return f}function pg(o){return o.length<3?Dn(o):o[0]+Sa(o,lo(o))}t.svg.line.radial=function(){var o=nc(Sp);return o.radius=o.x,delete o.x,o.angle=o.y,delete o.y,o};function Sp(o){for(var f,h=-1,d=o.length,p,m;++h<d;)f=o[h],p=f[0],m=f[1]-ui,f[0]=p*Math.cos(m),f[1]=p*Math.sin(m);return o}function oc(o){var f=wi,h=wi,d=0,p=bi,m=rc,E=Dn,_=E.key,O=E,I="L",P=.7;function $(z){var re=[],oe=[],j=[],q=-1,K=z.length,ue,le=vr(f),ee=vr(d),Me=f===h?function(){return Je}:vr(h),Be=d===p?function(){return $e}:vr(p),Je,$e;function it(){re.push("M",E(o(j),P),I,O(o(oe.reverse()),P),"Z")}for(;++q<K;)m.call(this,ue=z[q],q)?(oe.push([Je=+le.call(this,ue,q),$e=+ee.call(this,ue,q)]),j.push([+Me.call(this,ue,q),+Be.call(this,ue,q)])):oe.length&&(it(),oe=[],j=[]);return oe.length&&it(),re.length?re.join(""):null}return $.x=function(z){return arguments.length?(f=h=z,$):h},$.x0=function(z){return arguments.length?(f=z,$):f},$.x1=function(z){return arguments.length?(h=z,$):h},$.y=function(z){return arguments.length?(d=p=z,$):p},$.y0=function(z){return arguments.length?(d=z,$):d},$.y1=function(z){return arguments.length?(p=z,$):p},$.defined=function(z){return arguments.length?(m=z,$):m},$.interpolate=function(z){return arguments.length?(typeof z=="function"?_=E=z:_=(E=gu.get(z)||Dn).key,O=E.reverse||E,I=E.closed?"M":"L",$):_},$.tension=function(z){return arguments.length?(P=z,$):P},$}yu.reverse=ba,ba.reverse=yu,t.svg.area=function(){return oc(lt)},t.svg.area.radial=function(){var o=oc(Sp);return o.radius=o.x,delete o.x,o.innerRadius=o.x0,delete o.x0,o.outerRadius=o.x1,delete o.x1,o.angle=o.y,delete o.y,o.startAngle=o.y0,delete o.y0,o.endAngle=o.y1,delete o.y1,o};function uc(o){return o.source}function lc(o){return o.target}t.svg.chord=function(){var o=uc,f=lc,h=vg,d=ec,p=Gl;function m(P,$){var z=E(this,o,P,$),re=E(this,f,P,$);return"M"+z.p0+O(z.r,z.p1,z.a1-z.a0)+(_(z,re)?I(z.r,z.p1,z.r,z.p0):I(z.r,z.p1,re.r,re.p0)+O(re.r,re.p1,re.a1-re.a0)+I(re.r,re.p1,z.r,z.p0))+"Z"}function E(P,$,z,re){var oe=$.call(P,z,re),j=h.call(P,oe,re),q=d.call(P,oe,re)-ui,K=p.call(P,oe,re)-ui;return{r:j,a0:q,a1:K,p0:[j*Math.cos(q),j*Math.sin(q)],p1:[j*Math.cos(K),j*Math.sin(K)]}}function _(P,$){return P.a0==$.a0&&P.a1==$.a1}function O(P,$,z){return"A"+P+","+P+" 0 "+ +(z>_i)+",1 "+$}function I(P,$,z,re){return"Q 0,0 "+re}return m.radius=function(P){return arguments.length?(h=vr(P),m):h},m.source=function(P){return arguments.length?(o=vr(P),m):o},m.target=function(P){return arguments.length?(f=vr(P),m):f},m.startAngle=function(P){return arguments.length?(d=vr(P),m):d},m.endAngle=function(P){return arguments.length?(p=vr(P),m):p},m};function vg(o){return o.radius}t.svg.diagonal=function(){var o=uc,f=lc,h=Ea;function d(p,m){var E=o.call(this,p,m),_=f.call(this,p,m),O=(E.y+_.y)/2,I=[E,{x:E.x,y:O},{x:_.x,y:O},_];return I=I.map(h),"M"+I[0]+"C"+I[1]+" "+I[2]+" "+I[3]}return d.source=function(p){return arguments.length?(o=vr(p),d):o},d.target=function(p){return arguments.length?(f=vr(p),d):f},d.projection=function(p){return arguments.length?(h=p,d):h},d};function Ea(o){return[o.x,o.y]}t.svg.diagonal.radial=function(){var o=t.svg.diagonal(),f=Ea,h=o.projection;return o.projection=function(d){return arguments.length?h(fc(f=d)):f},o};function fc(o){return function(){var f=o.apply(this,arguments),h=f[0],d=f[1]-ui;return[h*Math.cos(d),h*Math.sin(d)]}}t.svg.symbol=function(){var o=gg,f=mg;function h(d,p){return(Ap.get(o.call(this,d,p))||Ep)(f.call(this,d,p))}return h.type=function(d){return arguments.length?(o=vr(d),h):o},h.size=function(d){return arguments.length?(f=vr(d),h):f},h};function mg(){return 64}function gg(){return"circle"}function Ep(o){var f=Math.sqrt(o/_i);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var Ap=t.map({circle:Ep,cross:function(o){var f=Math.sqrt(o/5)/2;return"M"+-3*f+","+-f+"H"+-f+"V"+-3*f+"H"+f+"V"+-f+"H"+3*f+"V"+f+"H"+f+"V"+3*f+"H"+-f+"V"+f+"H"+-3*f+"Z"},diamond:function(o){var f=Math.sqrt(o/(2*Tp)),h=f*Tp;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(o){var f=Math.sqrt(o)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(o){var f=Math.sqrt(o/Yl),h=f*Yl/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(o){var f=Math.sqrt(o/Yl),h=f*Yl/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=Ap.keys();var Yl=Math.sqrt(3),Tp=Math.tan(30*xd);Ae.transition=function(o){for(var f=Ci||++Ql,h=Su(o),d=[],p,m,E=fo||{time:Date.now(),ease:Ja,delay:0,duration:250},_=-1,O=this.length;++_<O;){d.push(p=[]);for(var I=this[_],P=-1,$=I.length;++P<$;)(m=I[P])&&so(m,P,h,f,E),p.push(m)}return bu(d,h,f)},Ae.interrupt=function(o){return this.each(o==null?Xl:Cp(Su(o)))};var Xl=Cp(Su());function Cp(o){return function(){var f,h,d;(f=this[o])&&(d=f[h=f.active])&&(d.timer.c=null,d.timer.t=NaN,--f.count?delete f[h]:delete this[o],f.active+=.5,d.event&&d.event.interrupt.call(this,this.__data__,d.index))}}function bu(o,f,h){return Yt(o,Ir),o.namespace=f,o.id=h,o}var Ir=[],Ql=0,Ci,fo;Ir.call=Ae.call,Ir.empty=Ae.empty,Ir.node=Ae.node,Ir.size=Ae.size,t.transition=function(o,f){return o&&o.transition?Ci?o.transition(f):o:t.selection().transition(o)},t.transition.prototype=Ir,Ir.select=function(o){var f=this.id,h=this.namespace,d=[],p,m,E;o=G(o);for(var _=-1,O=this.length;++_<O;){d.push(p=[]);for(var I=this[_],P=-1,$=I.length;++P<$;)(E=I[P])&&(m=o.call(E,E.__data__,P,_))?("__data__"in E&&(m.__data__=E.__data__),so(m,P,h,f,E[h][f]),p.push(m)):p.push(null)}return bu(d,h,f)},Ir.selectAll=function(o){var f=this.id,h=this.namespace,d=[],p,m,E,_,O;o=ie(o);for(var I=-1,P=this.length;++I<P;)for(var $=this[I],z=-1,re=$.length;++z<re;)if(E=$[z]){O=E[h][f],m=o.call(E,E.__data__,z,I),d.push(p=[]);for(var oe=-1,j=m.length;++oe<j;)(_=m[oe])&&so(_,oe,h,f,O),p.push(_)}return bu(d,h,f)},Ir.filter=function(o){var f=[],h,d,p;typeof o!="function"&&(o=Zo(o));for(var m=0,E=this.length;m<E;m++){f.push(h=[]);for(var d=this[m],_=0,O=d.length;_<O;_++)(p=d[_])&&o.call(p,p.__data__,_,m)&&h.push(p)}return bu(f,this.namespace,this.id)},Ir.tween=function(o,f){var h=this.id,d=this.namespace;return arguments.length<2?this.node()[d][h].tween.get(o):oi(this,f==null?function(p){p[d][h].tween.remove(o)}:function(p){p[d][h].tween.set(o,f)})};function Zl(o,f,h,d){var p=o.id,m=o.namespace;return oi(o,typeof h=="function"?function(E,_,O){E[m][p].tween.set(f,d(h.call(E,E.__data__,_,O)))}:(h=d(h),function(E){E[m][p].tween.set(f,h)}))}Ir.attr=function(o,f){if(arguments.length<2){for(f in o)this.attr(f,o[f]);return this}var h=o=="transform"?Ps:li,d=t.ns.qualify(o);function p(){this.removeAttribute(d)}function m(){this.removeAttributeNS(d.space,d.local)}function E(O){return O==null?p:(O+="",function(){var I=this.getAttribute(d),P;return I!==O&&(P=h(I,O),function($){this.setAttribute(d,P($))})})}function _(O){return O==null?m:(O+="",function(){var I=this.getAttributeNS(d.space,d.local),P;return I!==O&&(P=h(I,O),function($){this.setAttributeNS(d.space,d.local,P($))})})}return Zl(this,"attr."+o,f,d.local?_:E)},Ir.attrTween=function(o,f){var h=t.ns.qualify(o);function d(m,E){var _=f.call(this,m,E,this.getAttribute(h));return _&&function(O){this.setAttribute(h,_(O))}}function p(m,E){var _=f.call(this,m,E,this.getAttributeNS(h.space,h.local));return _&&function(O){this.setAttributeNS(h.space,h.local,_(O))}}return this.tween("attr."+o,h.local?p:d)},Ir.style=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f="");for(h in o)this.style(h,o[h],f);return this}h=""}function p(){this.style.removeProperty(o)}function m(E){return E==null?p:(E+="",function(){var _=u(this).getComputedStyle(this,null).getPropertyValue(o),O;return _!==E&&(O=li(_,E),function(I){this.style.setProperty(o,O(I),h)})})}return Zl(this,"style."+o,f,m)},Ir.styleTween=function(o,f,h){arguments.length<3&&(h="");function d(p,m){var E=f.call(this,p,m,u(this).getComputedStyle(this,null).getPropertyValue(o));return E&&function(_){this.style.setProperty(o,E(_),h)}}return this.tween("style."+o,d)},Ir.text=function(o){return Zl(this,"text",o,sc)};function sc(o){return o==null&&(o=""),function(){this.textContent=o}}Ir.remove=function(){var o=this.namespace;return this.each("end.transition",function(){var f;this[o].count<2&&(f=this.parentNode)&&f.removeChild(this)})},Ir.ease=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof o!="function"&&(o=t.ease.apply(t,arguments)),oi(this,function(d){d[h][f].ease=o}))},Ir.delay=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:oi(this,typeof o=="function"?function(d,p,m){d[h][f].delay=+o.call(d,d.__data__,p,m)}:(o=+o,function(d){d[h][f].delay=o}))},Ir.duration=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:oi(this,typeof o=="function"?function(d,p,m){d[h][f].duration=Math.max(1,o.call(d,d.__data__,p,m))}:(o=Math.max(1,o),function(d){d[h][f].duration=o}))},Ir.each=function(o,f){var h=this.id,d=this.namespace;if(arguments.length<2){var p=fo,m=Ci;try{Ci=h,oi(this,function(E,_,O){fo=E[d][h],o.call(E,E.__data__,_,O)})}finally{fo=p,Ci=m}}else oi(this,function(E){var _=E[d][h];(_.event||(_.event=t.dispatch("start","end","interrupt"))).on(o,f)});return this},Ir.transition=function(){for(var o=this.id,f=++Ql,h=this.namespace,d=[],p,m,E,_,O=0,I=this.length;O<I;O++){d.push(p=[]);for(var m=this[O],P=0,$=m.length;P<$;P++)(E=m[P])&&(_=E[h][o],so(E,P,h,f,{time:_.time,ease:_.ease,delay:_.delay+_.duration,duration:_.duration})),p.push(E)}return bu(d,h,f)};function Su(o){return o==null?"__transition__":"__transition_"+o+"__"}function so(o,f,h,d,p){var m=o[h]||(o[h]={active:0,count:0}),E=m[d],_,O,I,P,$;function z(j){var q=E.delay;if(O.t=q+_,q<=j)return re(j-q);O.c=re}function re(j){var q=m.active,K=m[q];K&&(K.timer.c=null,K.timer.t=NaN,--m.count,delete m[q],K.event&&K.event.interrupt.call(o,o.__data__,K.index));for(var ue in m)if(+ue<d){var le=m[ue];le.timer.c=null,le.timer.t=NaN,--m.count,delete m[ue]}O.c=oe,qa(function(){return O.c&&oe(j||1)&&(O.c=null,O.t=NaN),1},0,_),m.active=d,E.event&&E.event.start.call(o,o.__data__,f),$=[],E.tween.forEach(function(ee,Me){(Me=Me.call(o,o.__data__,f))&&$.push(Me)}),P=E.ease,I=E.duration}function oe(j){for(var q=j/I,K=P(q),ue=$.length;ue>0;)$[--ue].call(o,K);if(q>=1)return E.event&&E.event.end.call(o,o.__data__,f),--m.count?delete m[d]:delete o[h],1}E||(_=p.time,O=qa(z,0,_),E=m[d]={tween:new L,time:_,timer:O,delay:p.delay,duration:p.duration,ease:p.ease,index:f},p=null,++m.count)}t.svg.axis=function(){var o=t.scale.linear(),f=cc,h=6,d=6,p=3,m=[10],E=null,_;function O(I){I.each(function(){var P=t.select(this),$=this.__chart__||o,z=this.__chart__=o.copy(),re=E??(z.ticks?z.ticks.apply(z,m):z.domain()),oe=_??(z.tickFormat?z.tickFormat.apply(z,m):lt),j=P.selectAll(".tick").data(re,z),q=j.enter().insert("g",".domain").attr("class","tick").style("opacity",nr),K=t.transition(j.exit()).style("opacity",nr).remove(),ue=t.transition(j.order()).style("opacity",1),le=Math.max(h,0)+p,ee,Me=Bl(z),Be=P.selectAll(".domain").data([0]),Je=(Be.enter().append("path").attr("class","domain"),t.transition(Be));q.append("line"),q.append("text");var $e=q.select("line"),it=ue.select("line"),dt=j.select("text").text(oe),Gt=q.select("text"),xt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ir,Tr,hr,et;if(f==="bottom"||f==="top"?(ee=dc,ir="x",hr="y",Tr="x2",et="y2",dt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),Je.attr("d","M"+Me[0]+","+zt*d+"V0H"+Me[1]+"V"+zt*d)):(ee=pc,ir="y",hr="x",Tr="y2",et="x2",dt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),Je.attr("d","M"+zt*d+","+Me[0]+"H0V"+Me[1]+"H"+zt*d)),$e.attr(et,zt*h),Gt.attr(hr,zt*le),it.attr(Tr,0).attr(et,zt*h),xt.attr(ir,0).attr(hr,zt*le),z.rangeBand){var Ht=z,Vt=Ht.rangeBand()/2;$=z=function(ar){return Ht(ar)+Vt}}else $.rangeBand?$=z:K.call(ee,z,$);q.call(ee,$,z),ue.call(ee,z,z)})}return O.scale=function(I){return arguments.length?(o=I,O):o},O.orient=function(I){return arguments.length?(f=I in hc?I+"":cc,O):f},O.ticks=function(){return arguments.length?(m=n(arguments),O):m},O.tickValues=function(I){return arguments.length?(E=I,O):E},O.tickFormat=function(I){return arguments.length?(_=I,O):_},O.tickSize=function(I){var P=arguments.length;return P?(h=+I,d=+arguments[P-1],O):h},O.innerTickSize=function(I){return arguments.length?(h=+I,O):h},O.outerTickSize=function(I){return arguments.length?(d=+I,O):d},O.tickPadding=function(I){return arguments.length?(p=+I,O):p},O.tickSubdivide=function(){return arguments.length&&O},O};var cc="bottom",hc={top:1,right:1,bottom:1,left:1};function dc(o,f,h){o.attr("transform",function(d){var p=f(d);return"translate("+(isFinite(p)?p:h(d))+",0)"})}function pc(o,f,h){o.attr("transform",function(d){var p=f(d);return"translate(0,"+(isFinite(p)?p:h(d))+")"})}t.svg.brush=function(){var o=yt(P,"brushstart","brush","brushend"),f=null,h=null,d=[0,0],p=[0,0],m,E,_=!0,O=!0,I=Eu[0];function P(j){j.each(function(){var q=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),K=q.selectAll(".background").data([0]);K.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),q.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=q.selectAll(".resize").data(I,lt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Be){return"resize "+Be}).style("cursor",function(Be){return vc[Be]}).append("rect").attr("x",function(Be){return/[ew]$/.test(Be)?-3:null}).attr("y",function(Be){return/^[ns]/.test(Be)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",P.empty()?"none":null);var le=t.transition(q),ee=t.transition(K),Me;f&&(Me=Bl(f),ee.attr("x",Me[0]).attr("width",Me[1]-Me[0]),z(le)),h&&(Me=Bl(h),ee.attr("y",Me[0]).attr("height",Me[1]-Me[0]),re(le)),$(le)})}P.event=function(j){j.each(function(){var q=o.of(this,arguments),K={x:d,y:p,i:m,j:E},ue=this.__chart__||K;this.__chart__=K,Ci?t.select(this).transition().each("start.brush",function(){m=ue.i,E=ue.j,d=ue.x,p=ue.y,q({type:"brushstart"})}).tween("brush:brush",function(){var le=bn(d,K.x),ee=bn(p,K.y);return m=E=null,function(Me){d=K.x=le(Me),p=K.y=ee(Me),q({type:"brush",mode:"resize"})}}).each("end.brush",function(){m=K.i,E=K.j,q({type:"brush",mode:"resize"}),q({type:"brushend"})}):(q({type:"brushstart"}),q({type:"brush",mode:"resize"}),q({type:"brushend"}))})};function $(j){j.selectAll(".resize").attr("transform",function(q){return"translate("+d[+/e$/.test(q)]+","+p[+/^s/.test(q)]+")"})}function z(j){j.select(".extent").attr("x",d[0]),j.selectAll(".extent,.n>rect,.s>rect").attr("width",d[1]-d[0])}function re(j){j.select(".extent").attr("y",p[0]),j.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function oe(){var j=this,q=t.select(t.event.target),K=o.of(j,arguments),ue=t.select(j),le=q.datum(),ee=!/^(n|s)$/.test(le)&&f,Me=!/^(e|w)$/.test(le)&&h,Be=q.classed("extent"),Je=ml(j),$e,it=t.mouse(j),dt,Gt=t.select(u(j)).on("keydown.brush",ir).on("keyup.brush",Tr);if(t.event.changedTouches?Gt.on("touchmove.brush",hr).on("touchend.brush",Ht):Gt.on("mousemove.brush",hr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),Be)it[0]=d[0]-it[0],it[1]=p[0]-it[1];else if(le){var xt=+/w$/.test(le),zt=+/^n/.test(le);dt=[d[1-xt]-it[0],p[1-zt]-it[1]],it[0]=d[xt],it[1]=p[zt]}else t.event.altKey&&($e=it.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",q.style("cursor")),K({type:"brushstart"}),hr();function ir(){t.event.keyCode==32&&(Be||($e=null,it[0]-=d[1],it[1]-=p[1],Be=2),ct())}function Tr(){t.event.keyCode==32&&Be==2&&(it[0]+=d[1],it[1]+=p[1],Be=0,ct())}function hr(){var Vt=t.mouse(j),ar=!1;dt&&(Vt[0]+=dt[0],Vt[1]+=dt[1]),Be||(t.event.altKey?($e||($e=[(d[0]+d[1])/2,(p[0]+p[1])/2]),it[0]=d[+(Vt[0]<$e[0])],it[1]=p[+(Vt[1]<$e[1])]):$e=null),ee&&et(Vt,f,0)&&(z(ue),ar=!0),Me&&et(Vt,h,1)&&(re(ue),ar=!0),ar&&($(ue),K({type:"brush",mode:Be?"move":"resize"}))}function et(Vt,ar,wr){var Pr=Bl(ar),Wr=Pr[0],fn=Pr[1],mn=it[wr],Jr=wr?p:d,Sn=Jr[1]-Jr[0],F,H;if(Be&&(Wr-=mn,fn-=Sn+mn),F=(wr?O:_)?Math.max(Wr,Math.min(fn,Vt[wr])):Vt[wr],Be?H=(F+=mn)+Sn:($e&&(mn=Math.max(Wr,Math.min(fn,2*$e[wr]-F))),mn<F?(H=F,F=mn):H=mn),Jr[0]!=F||Jr[1]!=H)return wr?E=null:m=null,Jr[0]=F,Jr[1]=H,!0}function Ht(){hr(),ue.style("pointer-events","all").selectAll(".resize").style("display",P.empty()?"none":null),t.select("body").style("cursor",null),Gt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Je(),K({type:"brushend"})}}return P.x=function(j){return arguments.length?(f=j,I=Eu[!f<<1|!h],P):f},P.y=function(j){return arguments.length?(h=j,I=Eu[!f<<1|!h],P):h},P.clamp=function(j){return arguments.length?(f&&h?(_=!!j[0],O=!!j[1]):f?_=!!j:h&&(O=!!j),P):f&&h?[_,O]:f?_:h?O:null},P.extent=function(j){var q,K,ue,le,ee;return arguments.length?(f&&(q=j[0],K=j[1],h&&(q=q[0],K=K[0]),m=[q,K],f.invert&&(q=f(q),K=f(K)),K<q&&(ee=q,q=K,K=ee),(q!=d[0]||K!=d[1])&&(d=[q,K])),h&&(ue=j[0],le=j[1],f&&(ue=ue[1],le=le[1]),E=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(ee=ue,ue=le,le=ee),(ue!=p[0]||le!=p[1])&&(p=[ue,le])),P):(f&&(m?(q=m[0],K=m[1]):(q=d[0],K=d[1],f.invert&&(q=f.invert(q),K=f.invert(K)),K<q&&(ee=q,q=K,K=ee))),h&&(E?(ue=E[0],le=E[1]):(ue=p[0],le=p[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(ee=ue,ue=le,le=ee))),f&&h?[[q,ue],[K,le]]:f?[q,K]:h&&[ue,le])},P.clear=function(){return P.empty()||(d=[0,0],p=[0,0],m=E=null),P},P.empty=function(){return!!f&&d[0]==d[1]||!!h&&p[0]==p[1]},t.rebind(P,o,"on")};var vc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Eu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=ys(function(o){return o.responseText}),t.json=function(o,f){return bl(o,"application/json",mc,f)};function mc(o){return JSON.parse(o.responseText)}t.html=function(o,f){return bl(o,"text/html",gc,f)};function gc(o){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(o.responseText)}t.xml=ys(function(o){return o.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(k$);var c1=new Date,h1=new Date;function ln(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var u=i(a),l=i.ceil(a);return a-u<l-a?u:l},i.offset=function(a,u){return t(a=new Date(+a),u==null?1:Math.floor(u)),a},i.range=function(a,u,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<u)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<u);return s},i.filter=function(a){return ln(function(u){if(u>=u)for(;e(u),!a(u);)u.setTime(u-1)},function(u,l){if(u>=u)if(l<0)for(;++l<=0;)for(;t(u,-1),!a(u););else for(;--l>=0;)for(;t(u,1),!a(u););})},r&&(i.count=function(a,u){return c1.setTime(+a),h1.setTime(+u),e(c1),e(h1),Math.floor(r(c1,h1))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(u){return n(u)%a===0}:function(u){return i.count(0,u)%a===0}):i}),i}var kv=ln(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});kv.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ln(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):kv};const aA=kv;var oA=kv.range,Ov=1e3,Xu=6e4,Mv=36e5,D4=864e5,B4=6048e5,$4=ln(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ov)},function(e,t){return(t-e)/Ov},function(e){return e.getUTCSeconds()});const uA=$4;var lA=$4.range,z4=ln(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ov)},function(e,t){e.setTime(+e+t*Xu)},function(e,t){return(t-e)/Xu},function(e){return e.getMinutes()});const O$=z4;var M$=z4.range,U4=ln(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ov-e.getMinutes()*Xu)},function(e,t){e.setTime(+e+t*Mv)},function(e,t){return(t-e)/Mv},function(e){return e.getHours()});const F$=U4;var N$=U4.range,j4=ln(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xu)/D4},function(e){return e.getDate()-1});const _w=j4;var R$=j4.range;function sl(e){return ln(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Xu)/B4})}var Fv=sl(0),Gh=sl(1),G4=sl(2),H4=sl(3),Qu=sl(4),W4=sl(5),V4=sl(6),fA=Fv.range,I$=Gh.range,P$=G4.range,L$=H4.range,D$=Qu.range,B$=W4.range,$$=V4.range,q4=ln(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const z$=q4;var U$=q4.range,ww=ln(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ww.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ln(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const Vf=ww;var j$=ww.range,Y4=ln(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Xu)},function(e,t){return(t-e)/Xu},function(e){return e.getUTCMinutes()});const G$=Y4;var H$=Y4.range,X4=ln(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Mv)},function(e,t){return(t-e)/Mv},function(e){return e.getUTCHours()});const W$=X4;var V$=X4.range,Q4=ln(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/D4},function(e){return e.getUTCDate()-1});const bw=Q4;var q$=Q4.range;function cl(e){return ln(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/B4})}var Nv=cl(0),Hh=cl(1),Z4=cl(2),K4=cl(3),Zu=cl(4),J4=cl(5),eO=cl(6),sA=Nv.range,Y$=Hh.range,X$=Z4.range,Q$=K4.range,Z$=Zu.range,K$=J4.range,J$=eO.range,tO=ln(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const e7=tO;var t7=tO.range,Sw=ln(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Sw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ln(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const qf=Sw;var r7=Sw.range;const n7=Object.freeze(Object.defineProperty({__proto__:null,timeDay:_w,timeDays:R$,timeFriday:W4,timeFridays:B$,timeHour:F$,timeHours:N$,timeInterval:ln,timeMillisecond:aA,timeMilliseconds:oA,timeMinute:O$,timeMinutes:M$,timeMonday:Gh,timeMondays:I$,timeMonth:z$,timeMonths:U$,timeSaturday:V4,timeSaturdays:$$,timeSecond:uA,timeSeconds:lA,timeSunday:Fv,timeSundays:fA,timeThursday:Qu,timeThursdays:D$,timeTuesday:G4,timeTuesdays:P$,timeWednesday:H4,timeWednesdays:L$,timeWeek:Fv,timeWeeks:fA,timeYear:Vf,timeYears:j$,utcDay:bw,utcDays:q$,utcFriday:J4,utcFridays:K$,utcHour:W$,utcHours:V$,utcMillisecond:aA,utcMilliseconds:oA,utcMinute:G$,utcMinutes:H$,utcMonday:Hh,utcMondays:Y$,utcMonth:e7,utcMonths:t7,utcSaturday:eO,utcSaturdays:J$,utcSecond:uA,utcSeconds:lA,utcSunday:Nv,utcSundays:sA,utcThursday:Zu,utcThursdays:Z$,utcTuesday:Z4,utcTuesdays:X$,utcWednesday:K4,utcWednesdays:Q$,utcWeek:Nv,utcWeeks:sA,utcYear:qf,utcYears:r7},Symbol.toStringTag,{value:"Module"}));function d1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function p1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Rc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function rO(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,u=e.shortDays,l=e.months,s=e.shortMonths,c=Ic(i),v=Pc(i),x=Ic(a),y=Pc(a),g=Ic(u),k=Pc(u),N=Ic(l),b=Pc(l),w=Ic(s),A=Pc(s),M={a:Ue,A:Ye,b:It,B:Ze,c:null,d:mA,e:mA,f:T7,g:L7,G:B7,H:S7,I:E7,j:A7,L:nO,m:C7,M:k7,p:Ee,q:tt,Q:xA,s:_A,S:O7,u:M7,U:F7,V:N7,w:R7,W:I7,x:null,X:null,y:P7,Y:D7,Z:$7,"%":yA},R={a:ct,A:rt,b:yt,B:Tt,c:null,d:gA,e:gA,f:G7,g:J7,G:t9,H:z7,I:U7,j:j7,L:aO,m:H7,M:W7,p:Yt,q:Xt,Q:xA,s:_A,S:V7,u:q7,U:Y7,V:X7,w:Q7,W:Z7,x:null,X:null,y:K7,Y:e9,Z:r9,"%":yA},L={a:Ce,A:Fe,b:Ie,B:je,c:Ke,d:pA,e:pA,f:x7,g:dA,G:hA,H:vA,I:vA,j:v7,L:y7,m:p7,M:m7,p:ae,q:d7,Q:w7,s:b7,S:g7,u:l7,U:f7,V:s7,w:u7,W:c7,x:mt,X:lt,y:dA,Y:hA,Z:h7,"%":_7};M.x=D(r,M),M.X=D(n,M),M.c=D(t,M),R.x=D(r,R),R.X=D(n,R),R.c=D(t,R);function D(Qe,Ot){return function(jt){var Ae=[],G=-1,ie=0,C=Qe.length,S,T,B;for(jt instanceof Date||(jt=new Date(+jt));++G<C;)Qe.charCodeAt(G)===37&&(Ae.push(Qe.slice(ie,G)),(T=cA[S=Qe.charAt(++G)])!=null?S=Qe.charAt(++G):T=S==="e"?" ":"0",(B=Ot[S])&&(S=B(jt,T)),Ae.push(S),ie=G+1);return Ae.push(Qe.slice(ie,G)),Ae.join("")}}function ne(Qe,Ot){return function(jt){var Ae=Rc(1900,void 0,1),G=Y(Ae,Qe,jt+="",0),ie,C;if(G!=jt.length)return null;if("Q"in Ae)return new Date(Ae.Q);if("s"in Ae)return new Date(Ae.s*1e3+("L"in Ae?Ae.L:0));if(Ot&&!("Z"in Ae)&&(Ae.Z=0),"p"in Ae&&(Ae.H=Ae.H%12+Ae.p*12),Ae.m===void 0&&(Ae.m="q"in Ae?Ae.q:0),"V"in Ae){if(Ae.V<1||Ae.V>53)return null;"w"in Ae||(Ae.w=1),"Z"in Ae?(ie=p1(Rc(Ae.y,0,1)),C=ie.getUTCDay(),ie=C>4||C===0?Hh.ceil(ie):Hh(ie),ie=bw.offset(ie,(Ae.V-1)*7),Ae.y=ie.getUTCFullYear(),Ae.m=ie.getUTCMonth(),Ae.d=ie.getUTCDate()+(Ae.w+6)%7):(ie=d1(Rc(Ae.y,0,1)),C=ie.getDay(),ie=C>4||C===0?Gh.ceil(ie):Gh(ie),ie=_w.offset(ie,(Ae.V-1)*7),Ae.y=ie.getFullYear(),Ae.m=ie.getMonth(),Ae.d=ie.getDate()+(Ae.w+6)%7)}else("W"in Ae||"U"in Ae)&&("w"in Ae||(Ae.w="u"in Ae?Ae.u%7:"W"in Ae?1:0),C="Z"in Ae?p1(Rc(Ae.y,0,1)).getUTCDay():d1(Rc(Ae.y,0,1)).getDay(),Ae.m=0,Ae.d="W"in Ae?(Ae.w+6)%7+Ae.W*7-(C+5)%7:Ae.w+Ae.U*7-(C+6)%7);return"Z"in Ae?(Ae.H+=Ae.Z/100|0,Ae.M+=Ae.Z%100,p1(Ae)):d1(Ae)}}function Y(Qe,Ot,jt,Ae){for(var G=0,ie=Ot.length,C=jt.length,S,T;G<ie;){if(Ae>=C)return-1;if(S=Ot.charCodeAt(G++),S===37){if(S=Ot.charAt(G++),T=L[S in cA?Ot.charAt(G++):S],!T||(Ae=T(Qe,jt,Ae))<0)return-1}else if(S!=jt.charCodeAt(Ae++))return-1}return Ae}function ae(Qe,Ot,jt){var Ae=c.exec(Ot.slice(jt));return Ae?(Qe.p=v[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ce(Qe,Ot,jt){var Ae=g.exec(Ot.slice(jt));return Ae?(Qe.w=k[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Fe(Qe,Ot,jt){var Ae=x.exec(Ot.slice(jt));return Ae?(Qe.w=y[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ie(Qe,Ot,jt){var Ae=w.exec(Ot.slice(jt));return Ae?(Qe.m=A[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function je(Qe,Ot,jt){var Ae=N.exec(Ot.slice(jt));return Ae?(Qe.m=b[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ke(Qe,Ot,jt){return Y(Qe,t,Ot,jt)}function mt(Qe,Ot,jt){return Y(Qe,r,Ot,jt)}function lt(Qe,Ot,jt){return Y(Qe,n,Ot,jt)}function Ue(Qe){return u[Qe.getDay()]}function Ye(Qe){return a[Qe.getDay()]}function It(Qe){return s[Qe.getMonth()]}function Ze(Qe){return l[Qe.getMonth()]}function Ee(Qe){return i[+(Qe.getHours()>=12)]}function tt(Qe){return 1+~~(Qe.getMonth()/3)}function ct(Qe){return u[Qe.getUTCDay()]}function rt(Qe){return a[Qe.getUTCDay()]}function yt(Qe){return s[Qe.getUTCMonth()]}function Tt(Qe){return l[Qe.getUTCMonth()]}function Yt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Xt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var Ot=D(Qe+="",M);return Ot.toString=function(){return Qe},Ot},parse:function(Qe){var Ot=ne(Qe+="",!1);return Ot.toString=function(){return Qe},Ot},utcFormat:function(Qe){var Ot=D(Qe+="",R);return Ot.toString=function(){return Qe},Ot},utcParse:function(Qe){var Ot=ne(Qe+="",!0);return Ot.toString=function(){return Qe},Ot}}}var cA={"-":"",_:" ",0:"0"},vn=/^\s*\d+/,i7=/^%/,a7=/[\\^$*+?|[\]().{}]/g;function gr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function o7(e){return e.replace(a7,"\\$&")}function Ic(e){return new RegExp("^(?:"+e.map(o7).join("|")+")","i")}function Pc(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function u7(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function l7(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function f7(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function s7(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function c7(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hA(e,t,r){var n=vn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function h7(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function d7(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function p7(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function pA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function v7(e,t,r){var n=vn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function vA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function m7(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function g7(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function y7(e,t,r){var n=vn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function x7(e,t,r){var n=vn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _7(e,t,r){var n=i7.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function w7(e,t,r){var n=vn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function b7(e,t,r){var n=vn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mA(e,t){return gr(e.getDate(),t,2)}function S7(e,t){return gr(e.getHours(),t,2)}function E7(e,t){return gr(e.getHours()%12||12,t,2)}function A7(e,t){return gr(1+_w.count(Vf(e),e),t,3)}function nO(e,t){return gr(e.getMilliseconds(),t,3)}function T7(e,t){return nO(e,t)+"000"}function C7(e,t){return gr(e.getMonth()+1,t,2)}function k7(e,t){return gr(e.getMinutes(),t,2)}function O7(e,t){return gr(e.getSeconds(),t,2)}function M7(e){var t=e.getDay();return t===0?7:t}function F7(e,t){return gr(Fv.count(Vf(e)-1,e),t,2)}function iO(e){var t=e.getDay();return t>=4||t===0?Qu(e):Qu.ceil(e)}function N7(e,t){return e=iO(e),gr(Qu.count(Vf(e),e)+(Vf(e).getDay()===4),t,2)}function R7(e){return e.getDay()}function I7(e,t){return gr(Gh.count(Vf(e)-1,e),t,2)}function P7(e,t){return gr(e.getFullYear()%100,t,2)}function L7(e,t){return e=iO(e),gr(e.getFullYear()%100,t,2)}function D7(e,t){return gr(e.getFullYear()%1e4,t,4)}function B7(e,t){var r=e.getDay();return e=r>=4||r===0?Qu(e):Qu.ceil(e),gr(e.getFullYear()%1e4,t,4)}function $7(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gr(t/60|0,"0",2)+gr(t%60,"0",2)}function gA(e,t){return gr(e.getUTCDate(),t,2)}function z7(e,t){return gr(e.getUTCHours(),t,2)}function U7(e,t){return gr(e.getUTCHours()%12||12,t,2)}function j7(e,t){return gr(1+bw.count(qf(e),e),t,3)}function aO(e,t){return gr(e.getUTCMilliseconds(),t,3)}function G7(e,t){return aO(e,t)+"000"}function H7(e,t){return gr(e.getUTCMonth()+1,t,2)}function W7(e,t){return gr(e.getUTCMinutes(),t,2)}function V7(e,t){return gr(e.getUTCSeconds(),t,2)}function q7(e){var t=e.getUTCDay();return t===0?7:t}function Y7(e,t){return gr(Nv.count(qf(e)-1,e),t,2)}function oO(e){var t=e.getUTCDay();return t>=4||t===0?Zu(e):Zu.ceil(e)}function X7(e,t){return e=oO(e),gr(Zu.count(qf(e),e)+(qf(e).getUTCDay()===4),t,2)}function Q7(e){return e.getUTCDay()}function Z7(e,t){return gr(Hh.count(qf(e)-1,e),t,2)}function K7(e,t){return gr(e.getUTCFullYear()%100,t,2)}function J7(e,t){return e=oO(e),gr(e.getUTCFullYear()%100,t,2)}function e9(e,t){return gr(e.getUTCFullYear()%1e4,t,4)}function t9(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Zu(e):Zu.ceil(e),gr(e.getUTCFullYear()%1e4,t,4)}function r9(){return"+0000"}function yA(){return"%"}function xA(e){return+e}function _A(e){return Math.floor(+e/1e3)}var tf,uO,lO,Ew,Aw;fO({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fO(e){return tf=rO(e),uO=tf.format,lO=tf.parse,Ew=tf.utcFormat,Aw=tf.utcParse,tf}var sO="%Y-%m-%dT%H:%M:%S.%LZ";function n9(e){return e.toISOString()}var i9=Date.prototype.toISOString?n9:Ew(sO);const a9=i9;function o9(e){var t=new Date(e);return isNaN(t)?null:t}var u9=+new Date("2000-01-01T00:00:00.000Z")?o9:Aw(sO);const l9=u9,f9=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:a9,isoParse:l9,get timeFormat(){return uO},timeFormatDefaultLocale:fO,timeFormatLocale:rO,get timeParse(){return lO},get utcFormat(){return Ew},get utcParse(){return Aw}},Symbol.toStringTag,{value:"Module"})),qq=el(f9);function s9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rv(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yf(e){return e=Rv(Math.abs(e)),e?e[1]:NaN}function c9(e,t){return function(r,n){for(var i=r.length,a=[],u=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[u=(u+1)%e.length];return a.reverse().join(t)}}function h9(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var d9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Iv(e){if(!(t=d9.exec(e)))throw new Error("invalid format: "+e);var t;return new ym({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Iv.prototype=ym.prototype;function ym(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ym.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function p9(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var cO;function v9(e,t){var r=Rv(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(cO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=n.length;return a===u?n:a>u?n+new Array(a-u+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Rv(e,Math.max(0,t+a-1))[0]}function wA(e,t){var r=Rv(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const bA={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:s9,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return wA(e*100,t)},r:wA,s:v9,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function SA(e){return e}var EA=Array.prototype.map,AA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hO(e){var t=e.grouping===void 0||e.thousands===void 0?SA:c9(EA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?SA:h9(EA.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(x){x=Iv(x);var y=x.fill,g=x.align,k=x.sign,N=x.symbol,b=x.zero,w=x.width,A=x.comma,M=x.precision,R=x.trim,L=x.type;L==="n"?(A=!0,L="g"):bA[L]||(M===void 0&&(M=12),R=!0,L="g"),(b||y==="0"&&g==="=")&&(b=!0,y="0",g="=");var D=N==="$"?r:N==="#"&&/[boxX]/.test(L)?"0"+L.toLowerCase():"",ne=N==="$"?n:/[%p]/.test(L)?u:"",Y=bA[L],ae=/[defgprs%]/.test(L);M=M===void 0?6:/[gprs]/.test(L)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function Ce(Fe){var Ie=D,je=ne,Ke,mt,lt;if(L==="c")je=Y(Fe)+je,Fe="";else{Fe=+Fe;var Ue=Fe<0||1/Fe<0;if(Fe=isNaN(Fe)?s:Y(Math.abs(Fe),M),R&&(Fe=p9(Fe)),Ue&&+Fe==0&&k!=="+"&&(Ue=!1),Ie=(Ue?k==="("?k:l:k==="-"||k==="("?"":k)+Ie,je=(L==="s"?AA[8+cO/3]:"")+je+(Ue&&k==="("?")":""),ae){for(Ke=-1,mt=Fe.length;++Ke<mt;)if(lt=Fe.charCodeAt(Ke),48>lt||lt>57){je=(lt===46?i+Fe.slice(Ke+1):Fe.slice(Ke))+je,Fe=Fe.slice(0,Ke);break}}}A&&!b&&(Fe=t(Fe,1/0));var Ye=Ie.length+Fe.length+je.length,It=Ye<w?new Array(w-Ye+1).join(y):"";switch(A&&b&&(Fe=t(It+Fe,It.length?w-je.length:1/0),It=""),g){case"<":Fe=Ie+Fe+je+It;break;case"=":Fe=Ie+It+Fe+je;break;case"^":Fe=It.slice(0,Ye=It.length>>1)+Ie+Fe+je+It.slice(Ye);break;default:Fe=It+Ie+Fe+je;break}return a(Fe)}return Ce.toString=function(){return x+""},Ce}function v(x,y){var g=c((x=Iv(x),x.type="f",x)),k=Math.max(-8,Math.min(8,Math.floor(Yf(y)/3)))*3,N=Math.pow(10,-k),b=AA[8+k/3];return function(w){return g(N*w)+b}}return{format:c,formatPrefix:v}}var r0,dO,pO;vO({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function vO(e){return r0=hO(e),dO=r0.format,pO=r0.formatPrefix,r0}function m9(e){return Math.max(0,-Yf(Math.abs(e)))}function g9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yf(t)/3)))*3-Yf(Math.abs(e)))}function y9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yf(t)-Yf(e))+1}const x9=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:ym,get format(){return dO},formatDefaultLocale:vO,formatLocale:hO,get formatPrefix(){return pO},formatSpecifier:Iv,precisionFixed:m9,precisionPrefix:g9,precisionRound:y9},Symbol.toStringTag,{value:"Module"})),Yq=el(x9);var _9=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},w9=_9,Xq=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&w9(r))return!1}else if(t!=="number")return!1;return e-e<1},TA={},b9={get exports(){return TA},set exports(e){TA=e}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,u=t.min,l=t.max,s=t.random;function c(G,ie){if(G=G||"",ie=ie||{},G instanceof c)return G;if(!(this instanceof c))return new c(G,ie);var C=v(G);this._originalInput=G,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=ie.format||C.format,this._gradientType=ie.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=C.ok,this._tc_id=i++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var G=this.toRgb();return(G.r*299+G.g*587+G.b*114)/1e3},getLuminance:function(){var G=this.toRgb(),ie,C,S,T,B,se;return ie=G.r/255,C=G.g/255,S=G.b/255,ie<=.03928?T=ie/12.92:T=t.pow((ie+.055)/1.055,2.4),C<=.03928?B=C/12.92:B=t.pow((C+.055)/1.055,2.4),S<=.03928?se=S/12.92:se=t.pow((S+.055)/1.055,2.4),.2126*T+.7152*B+.0722*se},setAlpha:function(G){return this._a=It(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=k(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=k(this._r,this._g,this._b),ie=a(G.h*360),C=a(G.s*100),S=a(G.v*100);return this._a==1?"hsv("+ie+", "+C+"%, "+S+"%)":"hsva("+ie+", "+C+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var G=y(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=y(this._r,this._g,this._b),ie=a(G.h*360),C=a(G.s*100),S=a(G.l*100);return this._a==1?"hsl("+ie+", "+C+"%, "+S+"%)":"hsla("+ie+", "+C+"%, "+S+"%, "+this._roundA+")"},toHex:function(G){return b(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return w(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Ze(this._r,255)*100)+"%",g:a(Ze(this._g,255)*100)+"%",b:a(Ze(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ze(this._r,255)*100)+"%, "+a(Ze(this._g,255)*100)+"%, "+a(Ze(this._b,255)*100)+"%)":"rgba("+a(Ze(this._r,255)*100)+"%, "+a(Ze(this._g,255)*100)+"%, "+a(Ze(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ue[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var ie="#"+A(this._r,this._g,this._b,this._a),C=ie,S=this._gradientType?"GradientType = 1, ":"";if(G){var T=c(G);C="#"+A(T._r,T._g,T._b,T._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+ie+",endColorstr="+C+")"},toString:function(G){var ie=!!G;G=G||this._format;var C=!1,S=this._a<1&&this._a>=0,T=!ie&&S&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return T?G==="name"&&this._a===0?this.toName():this.toRgbString():(G==="rgb"&&(C=this.toRgbString()),G==="prgb"&&(C=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&(C=this.toHexString()),G==="hex3"&&(C=this.toHexString(!0)),G==="hex4"&&(C=this.toHex8String(!0)),G==="hex8"&&(C=this.toHex8String()),G==="name"&&(C=this.toName()),G==="hsl"&&(C=this.toHslString()),G==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(G,ie){var C=G.apply(null,[this].concat([].slice.call(ie)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(ne,arguments)},darken:function(){return this._applyModification(Y,arguments)},desaturate:function(){return this._applyModification(M,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(ae,arguments)},_applyCombination:function(G,ie){return G.apply(null,[this].concat([].slice.call(ie)))},analogous:function(){return this._applyCombination(Ke,arguments)},complement:function(){return this._applyCombination(Ce,arguments)},monochromatic:function(){return this._applyCombination(mt,arguments)},splitcomplement:function(){return this._applyCombination(je,arguments)},triad:function(){return this._applyCombination(Fe,arguments)},tetrad:function(){return this._applyCombination(Ie,arguments)}},c.fromRatio=function(G,ie){if(typeof G=="object"){var C={};for(var S in G)G.hasOwnProperty(S)&&(S==="a"?C[S]=G[S]:C[S]=Tt(G[S]));G=C}return c(G,ie)};function v(G){var ie={r:0,g:0,b:0},C=1,S=null,T=null,B=null,se=!1,Ne=!1;return typeof G=="string"&&(G=jt(G)),typeof G=="object"&&(Ot(G.r)&&Ot(G.g)&&Ot(G.b)?(ie=x(G.r,G.g,G.b),se=!0,Ne=String(G.r).substr(-1)==="%"?"prgb":"rgb"):Ot(G.h)&&Ot(G.s)&&Ot(G.v)?(S=Tt(G.s),T=Tt(G.v),ie=N(G.h,S,T),se=!0,Ne="hsv"):Ot(G.h)&&Ot(G.s)&&Ot(G.l)&&(S=Tt(G.s),B=Tt(G.l),ie=g(G.h,S,B),se=!0,Ne="hsl"),G.hasOwnProperty("a")&&(C=G.a)),C=It(C),{ok:se,format:G.format||Ne,r:u(255,l(ie.r,0)),g:u(255,l(ie.g,0)),b:u(255,l(ie.b,0)),a:C}}function x(G,ie,C){return{r:Ze(G,255)*255,g:Ze(ie,255)*255,b:Ze(C,255)*255}}function y(G,ie,C){G=Ze(G,255),ie=Ze(ie,255),C=Ze(C,255);var S=l(G,ie,C),T=u(G,ie,C),B,se,Ne=(S+T)/2;if(S==T)B=se=0;else{var De=S-T;switch(se=Ne>.5?De/(2-S-T):De/(S+T),S){case G:B=(ie-C)/De+(ie<C?6:0);break;case ie:B=(C-G)/De+2;break;case C:B=(G-ie)/De+4;break}B/=6}return{h:B,s:se,l:Ne}}function g(G,ie,C){var S,T,B;G=Ze(G,360),ie=Ze(ie,100),C=Ze(C,100);function se(Qt,fr,rr){return rr<0&&(rr+=1),rr>1&&(rr-=1),rr<1/6?Qt+(fr-Qt)*6*rr:rr<1/2?fr:rr<2/3?Qt+(fr-Qt)*(2/3-rr)*6:Qt}if(ie===0)S=T=B=C;else{var Ne=C<.5?C*(1+ie):C+ie-C*ie,De=2*C-Ne;S=se(De,Ne,G+1/3),T=se(De,Ne,G),B=se(De,Ne,G-1/3)}return{r:S*255,g:T*255,b:B*255}}function k(G,ie,C){G=Ze(G,255),ie=Ze(ie,255),C=Ze(C,255);var S=l(G,ie,C),T=u(G,ie,C),B,se,Ne=S,De=S-T;if(se=S===0?0:De/S,S==T)B=0;else{switch(S){case G:B=(ie-C)/De+(ie<C?6:0);break;case ie:B=(C-G)/De+2;break;case C:B=(G-ie)/De+4;break}B/=6}return{h:B,s:se,v:Ne}}function N(G,ie,C){G=Ze(G,360)*6,ie=Ze(ie,100),C=Ze(C,100);var S=t.floor(G),T=G-S,B=C*(1-ie),se=C*(1-T*ie),Ne=C*(1-(1-T)*ie),De=S%6,Qt=[C,se,B,B,Ne,C][De],fr=[Ne,C,C,se,B,B][De],rr=[B,B,Ne,C,C,se][De];return{r:Qt*255,g:fr*255,b:rr*255}}function b(G,ie,C,S){var T=[yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16))];return S&&T[0].charAt(0)==T[0].charAt(1)&&T[1].charAt(0)==T[1].charAt(1)&&T[2].charAt(0)==T[2].charAt(1)?T[0].charAt(0)+T[1].charAt(0)+T[2].charAt(0):T.join("")}function w(G,ie,C,S,T){var B=[yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16)),yt(Yt(S))];return T&&B[0].charAt(0)==B[0].charAt(1)&&B[1].charAt(0)==B[1].charAt(1)&&B[2].charAt(0)==B[2].charAt(1)&&B[3].charAt(0)==B[3].charAt(1)?B[0].charAt(0)+B[1].charAt(0)+B[2].charAt(0)+B[3].charAt(0):B.join("")}function A(G,ie,C,S){var T=[yt(Yt(S)),yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16))];return T.join("")}c.equals=function(G,ie){return!G||!ie?!1:c(G).toRgbString()==c(ie).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})};function M(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.s-=ie/100,C.s=Ee(C.s),c(C)}function R(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.s+=ie/100,C.s=Ee(C.s),c(C)}function L(G){return c(G).desaturate(100)}function D(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.l+=ie/100,C.l=Ee(C.l),c(C)}function ne(G,ie){ie=ie===0?0:ie||10;var C=c(G).toRgb();return C.r=l(0,u(255,C.r-a(255*-(ie/100)))),C.g=l(0,u(255,C.g-a(255*-(ie/100)))),C.b=l(0,u(255,C.b-a(255*-(ie/100)))),c(C)}function Y(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.l-=ie/100,C.l=Ee(C.l),c(C)}function ae(G,ie){var C=c(G).toHsl(),S=(C.h+ie)%360;return C.h=S<0?360+S:S,c(C)}function Ce(G){var ie=c(G).toHsl();return ie.h=(ie.h+180)%360,c(ie)}function Fe(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+120)%360,s:ie.s,l:ie.l}),c({h:(C+240)%360,s:ie.s,l:ie.l})]}function Ie(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+90)%360,s:ie.s,l:ie.l}),c({h:(C+180)%360,s:ie.s,l:ie.l}),c({h:(C+270)%360,s:ie.s,l:ie.l})]}function je(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+72)%360,s:ie.s,l:ie.l}),c({h:(C+216)%360,s:ie.s,l:ie.l})]}function Ke(G,ie,C){ie=ie||6,C=C||30;var S=c(G).toHsl(),T=360/C,B=[c(G)];for(S.h=(S.h-(T*ie>>1)+720)%360;--ie;)S.h=(S.h+T)%360,B.push(c(S));return B}function mt(G,ie){ie=ie||6;for(var C=c(G).toHsv(),S=C.h,T=C.s,B=C.v,se=[],Ne=1/ie;ie--;)se.push(c({h:S,s:T,v:B})),B=(B+Ne)%1;return se}c.mix=function(G,ie,C){C=C===0?0:C||50;var S=c(G).toRgb(),T=c(ie).toRgb(),B=C/100,se={r:(T.r-S.r)*B+S.r,g:(T.g-S.g)*B+S.g,b:(T.b-S.b)*B+S.b,a:(T.a-S.a)*B+S.a};return c(se)},c.readability=function(G,ie){var C=c(G),S=c(ie);return(t.max(C.getLuminance(),S.getLuminance())+.05)/(t.min(C.getLuminance(),S.getLuminance())+.05)},c.isReadable=function(G,ie,C){var S=c.readability(G,ie),T,B;switch(B=!1,T=Ae(C),T.level+T.size){case"AAsmall":case"AAAlarge":B=S>=4.5;break;case"AAlarge":B=S>=3;break;case"AAAsmall":B=S>=7;break}return B},c.mostReadable=function(G,ie,C){var S=null,T=0,B,se,Ne,De;C=C||{},se=C.includeFallbackColors,Ne=C.level,De=C.size;for(var Qt=0;Qt<ie.length;Qt++)B=c.readability(G,ie[Qt]),B>T&&(T=B,S=c(ie[Qt]));return c.isReadable(G,S,{level:Ne,size:De})||!se?S:(C.includeFallbackColors=!1,c.mostReadable(G,["#fff","#000"],C))};var lt=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",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",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",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",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ue=c.hexNames=Ye(lt);function Ye(G){var ie={};for(var C in G)G.hasOwnProperty(C)&&(ie[G[C]]=C);return ie}function It(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function Ze(G,ie){ct(G)&&(G="100%");var C=rt(G);return G=u(ie,l(0,parseFloat(G))),C&&(G=parseInt(G*ie,10)/100),t.abs(G-ie)<1e-6?1:G%ie/parseFloat(ie)}function Ee(G){return u(1,l(0,G))}function tt(G){return parseInt(G,16)}function ct(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function rt(G){return typeof G=="string"&&G.indexOf("%")!=-1}function yt(G){return G.length==1?"0"+G:""+G}function Tt(G){return G<=1&&(G=G*100+"%"),G}function Yt(G){return t.round(parseFloat(G)*255).toString(16)}function Xt(G){return tt(G)/255}var Qe=function(){var G="[-\\+]?\\d+%?",ie="[-\\+]?\\d*\\.\\d+%?",C="(?:"+ie+")|(?:"+G+")",S="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",T="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ot(G){return!!Qe.CSS_UNIT.exec(G)}function jt(G){G=G.replace(r,"").replace(n,"").toLowerCase();var ie=!1;if(lt[G])G=lt[G],ie=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=Qe.rgb.exec(G))?{r:C[1],g:C[2],b:C[3]}:(C=Qe.rgba.exec(G))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=Qe.hsl.exec(G))?{h:C[1],s:C[2],l:C[3]}:(C=Qe.hsla.exec(G))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=Qe.hsv.exec(G))?{h:C[1],s:C[2],v:C[3]}:(C=Qe.hsva.exec(G))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=Qe.hex8.exec(G))?{r:tt(C[1]),g:tt(C[2]),b:tt(C[3]),a:Xt(C[4]),format:ie?"name":"hex8"}:(C=Qe.hex6.exec(G))?{r:tt(C[1]),g:tt(C[2]),b:tt(C[3]),format:ie?"name":"hex"}:(C=Qe.hex4.exec(G))?{r:tt(C[1]+""+C[1]),g:tt(C[2]+""+C[2]),b:tt(C[3]+""+C[3]),a:Xt(C[4]+""+C[4]),format:ie?"name":"hex8"}:(C=Qe.hex3.exec(G))?{r:tt(C[1]+""+C[1]),g:tt(C[2]+""+C[2]),b:tt(C[3]+""+C[3]),format:ie?"name":"hex"}:!1}function Ae(G){var ie,C;return G=G||{level:"AA",size:"small"},ie=(G.level||"AA").toUpperCase(),C=(G.size||"small").toLowerCase(),ie!=="AA"&&ie!=="AAA"&&(ie="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:ie,size:C}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(b9);var S9=E9;function E9(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var A9=T9;function T9(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var C9=k9;function k9(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var mO=O9;function O9(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var M9=F9;function F9(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],u=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=u,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var N9=R9;function R9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],v=t[8],x=t[9],y=t[10],g=t[11],k=t[12],N=t[13],b=t[14],w=t[15],A=r*l-n*u,M=r*s-i*u,R=r*c-a*u,L=n*s-i*l,D=n*c-a*l,ne=i*c-a*s,Y=v*N-x*k,ae=v*b-y*k,Ce=v*w-g*k,Fe=x*b-y*N,Ie=x*w-g*N,je=y*w-g*b,Ke=A*je-M*Ie+R*Fe+L*Ce-D*ae+ne*Y;return Ke?(Ke=1/Ke,e[0]=(l*je-s*Ie+c*Fe)*Ke,e[1]=(i*Ie-n*je-a*Fe)*Ke,e[2]=(N*ne-b*D+w*L)*Ke,e[3]=(y*D-x*ne-g*L)*Ke,e[4]=(s*Ce-u*je-c*ae)*Ke,e[5]=(r*je-i*Ce+a*ae)*Ke,e[6]=(b*R-k*ne-w*M)*Ke,e[7]=(v*ne-y*R+g*M)*Ke,e[8]=(u*Ie-l*Ce+c*Y)*Ke,e[9]=(n*Ce-r*Ie-a*Y)*Ke,e[10]=(k*D-N*R+w*A)*Ke,e[11]=(x*R-v*D-g*A)*Ke,e[12]=(l*ae-u*Fe-s*Y)*Ke,e[13]=(r*Fe-n*ae+i*Y)*Ke,e[14]=(N*M-k*L-b*A)*Ke,e[15]=(v*L-x*M+y*A)*Ke,e):null}var I9=P9;function P9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],v=t[8],x=t[9],y=t[10],g=t[11],k=t[12],N=t[13],b=t[14],w=t[15];return e[0]=l*(y*w-g*b)-x*(s*w-c*b)+N*(s*g-c*y),e[1]=-(n*(y*w-g*b)-x*(i*w-a*b)+N*(i*g-a*y)),e[2]=n*(s*w-c*b)-l*(i*w-a*b)+N*(i*c-a*s),e[3]=-(n*(s*g-c*y)-l*(i*g-a*y)+x*(i*c-a*s)),e[4]=-(u*(y*w-g*b)-v*(s*w-c*b)+k*(s*g-c*y)),e[5]=r*(y*w-g*b)-v*(i*w-a*b)+k*(i*g-a*y),e[6]=-(r*(s*w-c*b)-u*(i*w-a*b)+k*(i*c-a*s)),e[7]=r*(s*g-c*y)-u*(i*g-a*y)+v*(i*c-a*s),e[8]=u*(x*w-g*N)-v*(l*w-c*N)+k*(l*g-c*x),e[9]=-(r*(x*w-g*N)-v*(n*w-a*N)+k*(n*g-a*x)),e[10]=r*(l*w-c*N)-u*(n*w-a*N)+k*(n*c-a*l),e[11]=-(r*(l*g-c*x)-u*(n*g-a*x)+v*(n*c-a*l)),e[12]=-(u*(x*b-y*N)-v*(l*b-s*N)+k*(l*y-s*x)),e[13]=r*(x*b-y*N)-v*(n*b-i*N)+k*(n*y-i*x),e[14]=-(r*(l*b-s*N)-u*(n*b-i*N)+k*(n*s-i*l)),e[15]=r*(l*y-s*x)-u*(n*y-i*x)+v*(n*s-i*l),e}var L9=D9;function D9(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],u=e[5],l=e[6],s=e[7],c=e[8],v=e[9],x=e[10],y=e[11],g=e[12],k=e[13],N=e[14],b=e[15],w=t*u-r*a,A=t*l-n*a,M=t*s-i*a,R=r*l-n*u,L=r*s-i*u,D=n*s-i*l,ne=c*k-v*g,Y=c*N-x*g,ae=c*b-y*g,Ce=v*N-x*k,Fe=v*b-y*k,Ie=x*b-y*N;return w*Ie-A*Fe+M*Ce+R*ae-L*Y+D*ne}var B9=$9;function $9(e,t,r){var n=t[0],i=t[1],a=t[2],u=t[3],l=t[4],s=t[5],c=t[6],v=t[7],x=t[8],y=t[9],g=t[10],k=t[11],N=t[12],b=t[13],w=t[14],A=t[15],M=r[0],R=r[1],L=r[2],D=r[3];return e[0]=M*n+R*l+L*x+D*N,e[1]=M*i+R*s+L*y+D*b,e[2]=M*a+R*c+L*g+D*w,e[3]=M*u+R*v+L*k+D*A,M=r[4],R=r[5],L=r[6],D=r[7],e[4]=M*n+R*l+L*x+D*N,e[5]=M*i+R*s+L*y+D*b,e[6]=M*a+R*c+L*g+D*w,e[7]=M*u+R*v+L*k+D*A,M=r[8],R=r[9],L=r[10],D=r[11],e[8]=M*n+R*l+L*x+D*N,e[9]=M*i+R*s+L*y+D*b,e[10]=M*a+R*c+L*g+D*w,e[11]=M*u+R*v+L*k+D*A,M=r[12],R=r[13],L=r[14],D=r[15],e[12]=M*n+R*l+L*x+D*N,e[13]=M*i+R*s+L*y+D*b,e[14]=M*a+R*c+L*g+D*w,e[15]=M*u+R*v+L*k+D*A,e}var z9=U9;function U9(e,t,r){var n=r[0],i=r[1],a=r[2],u,l,s,c,v,x,y,g,k,N,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(u=t[0],l=t[1],s=t[2],c=t[3],v=t[4],x=t[5],y=t[6],g=t[7],k=t[8],N=t[9],b=t[10],w=t[11],e[0]=u,e[1]=l,e[2]=s,e[3]=c,e[4]=v,e[5]=x,e[6]=y,e[7]=g,e[8]=k,e[9]=N,e[10]=b,e[11]=w,e[12]=u*n+v*i+k*a+t[12],e[13]=l*n+x*i+N*a+t[13],e[14]=s*n+y*i+b*a+t[14],e[15]=c*n+g*i+w*a+t[15]),e}var j9=G9;function G9(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var H9=W9;function W9(e,t,r,n){var i=n[0],a=n[1],u=n[2],l=Math.sqrt(i*i+a*a+u*u),s,c,v,x,y,g,k,N,b,w,A,M,R,L,D,ne,Y,ae,Ce,Fe,Ie,je,Ke,mt;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,u*=l,s=Math.sin(r),c=Math.cos(r),v=1-c,x=t[0],y=t[1],g=t[2],k=t[3],N=t[4],b=t[5],w=t[6],A=t[7],M=t[8],R=t[9],L=t[10],D=t[11],ne=i*i*v+c,Y=a*i*v+u*s,ae=u*i*v-a*s,Ce=i*a*v-u*s,Fe=a*a*v+c,Ie=u*a*v+i*s,je=i*u*v+a*s,Ke=a*u*v-i*s,mt=u*u*v+c,e[0]=x*ne+N*Y+M*ae,e[1]=y*ne+b*Y+R*ae,e[2]=g*ne+w*Y+L*ae,e[3]=k*ne+A*Y+D*ae,e[4]=x*Ce+N*Fe+M*Ie,e[5]=y*Ce+b*Fe+R*Ie,e[6]=g*Ce+w*Fe+L*Ie,e[7]=k*Ce+A*Fe+D*Ie,e[8]=x*je+N*Ke+M*mt,e[9]=y*je+b*Ke+R*mt,e[10]=g*je+w*Ke+L*mt,e[11]=k*je+A*Ke+D*mt,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var V9=q9;function q9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],u=t[5],l=t[6],s=t[7],c=t[8],v=t[9],x=t[10],y=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*n,e[5]=u*i+v*n,e[6]=l*i+x*n,e[7]=s*i+y*n,e[8]=c*i-a*n,e[9]=v*i-u*n,e[10]=x*i-l*n,e[11]=y*i-s*n,e}var Y9=X9;function X9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],u=t[1],l=t[2],s=t[3],c=t[8],v=t[9],x=t[10],y=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-c*n,e[1]=u*i-v*n,e[2]=l*i-x*n,e[3]=s*i-y*n,e[8]=a*n+c*i,e[9]=u*n+v*i,e[10]=l*n+x*i,e[11]=s*n+y*i,e}var Q9=Z9;function Z9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],u=t[1],l=t[2],s=t[3],c=t[4],v=t[5],x=t[6],y=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*n,e[1]=u*i+v*n,e[2]=l*i+x*n,e[3]=s*i+y*n,e[4]=c*i-a*n,e[5]=v*i-u*n,e[6]=x*i-l*n,e[7]=y*i-s*n,e}var K9=J9;function J9(e,t,r){var n,i,a,u=r[0],l=r[1],s=r[2],c=Math.sqrt(u*u+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,u*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=u*u*a+i,e[1]=l*u*a+s*n,e[2]=s*u*a-l*n,e[3]=0,e[4]=u*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+u*n,e[7]=0,e[8]=u*s*a+l*n,e[9]=l*s*a-u*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var ez=tz;function tz(e,t,r){var n=t[0],i=t[1],a=t[2],u=t[3],l=n+n,s=i+i,c=a+a,v=n*l,x=n*s,y=n*c,g=i*s,k=i*c,N=a*c,b=u*l,w=u*s,A=u*c;return e[0]=1-(g+N),e[1]=x+A,e[2]=y-w,e[3]=0,e[4]=x-A,e[5]=1-(v+N),e[6]=k+b,e[7]=0,e[8]=y+w,e[9]=k-b,e[10]=1-(v+g),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var rz=nz;function nz(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var iz=az;function az(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var oz=uz;function uz(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var lz=fz;function fz(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var sz=cz;function cz(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var hz=dz;function dz(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=r+r,l=n+n,s=i+i,c=r*u,v=n*u,x=n*l,y=i*u,g=i*l,k=i*s,N=a*u,b=a*l,w=a*s;return e[0]=1-x-k,e[1]=v+w,e[2]=y-b,e[3]=0,e[4]=v-w,e[5]=1-c-k,e[6]=g+N,e[7]=0,e[8]=y+b,e[9]=g-N,e[10]=1-c-x,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var pz=vz;function vz(e,t,r,n,i,a,u){var l=1/(r-t),s=1/(i-n),c=1/(a-u);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(u+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=u*a*2*c,e[15]=0,e}var mz=gz;function gz(e,t,r,n,i){var a=1/Math.tan(t/2),u=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*u,e[15]=0,e}var yz=xz;function xz(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),u=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(u+l),c=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((u-l)*s*.5),e[9]=(i-a)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var _z=wz;function wz(e,t,r,n,i,a,u){var l=1/(t-r),s=1/(n-i),c=1/(a-u);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(u+a)*c,e[15]=1,e}var bz=mO,Sz=Ez;function Ez(e,t,r,n){var i,a,u,l,s,c,v,x,y,g,k=t[0],N=t[1],b=t[2],w=n[0],A=n[1],M=n[2],R=r[0],L=r[1],D=r[2];return Math.abs(k-R)<1e-6&&Math.abs(N-L)<1e-6&&Math.abs(b-D)<1e-6?bz(e):(v=k-R,x=N-L,y=b-D,g=1/Math.sqrt(v*v+x*x+y*y),v*=g,x*=g,y*=g,i=A*y-M*x,a=M*v-w*y,u=w*x-A*v,g=Math.sqrt(i*i+a*a+u*u),g?(g=1/g,i*=g,a*=g,u*=g):(i=0,a=0,u=0),l=x*u-y*a,s=y*i-v*u,c=v*a-x*i,g=Math.sqrt(l*l+s*s+c*c),g?(g=1/g,l*=g,s*=g,c*=g):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=v,e[3]=0,e[4]=a,e[5]=s,e[6]=x,e[7]=0,e[8]=u,e[9]=c,e[10]=y,e[11]=0,e[12]=-(i*k+a*N+u*b),e[13]=-(l*k+s*N+c*b),e[14]=-(v*k+x*N+y*b),e[15]=1,e)}var Az=Tz;function Tz(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var Qq={create:S9,clone:A9,copy:C9,identity:mO,transpose:M9,invert:N9,adjoint:I9,determinant:L9,multiply:B9,translate:z9,scale:j9,rotate:H9,rotateX:V9,rotateY:Y9,rotateZ:Q9,fromRotation:K9,fromRotationTranslation:ez,fromScaling:rz,fromTranslation:iz,fromXRotation:oz,fromYRotation:lz,fromZRotation:sz,fromQuat:hz,frustum:pz,perspective:mz,perspectiveFromFieldOfView:yz,ortho:_z,lookAt:Sz,str:Az},Pv={},Cz={get exports(){return Pv},set exports(e){Pv=e}};Cz.exports=Tw;Pv.isMobile=Tw;Pv.default=Tw;const kz=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Oz=/CrOS/,Mz=/android|ipad|playbook|silk/i;function Tw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=kz.test(t)&&!Oz.test(t)||!!e.tablet&&Mz.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var Fz=!0,Nz=Fz,M2;typeof Lr.matchMedia=="function"?M2=!Lr.matchMedia("(hover: none)").matches:M2=Nz;var Zq=M2,F2={},Rz={get exports(){return F2},set exports(e){F2=e}},If=typeof Reflect=="object"?Reflect:null,CA=If&&typeof If.apply=="function"?If.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},L0;If&&typeof If.ownKeys=="function"?L0=If.ownKeys:Object.getOwnPropertySymbols?L0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:L0=function(t){return Object.getOwnPropertyNames(t)};function Iz(e){console&&console.warn&&console.warn(e)}var gO=Number.isNaN||function(t){return t!==t};function Sr(){Sr.init.call(this)}Rz.exports=Sr;F2.once=Bz;Sr.EventEmitter=Sr;Sr.prototype._events=void 0;Sr.prototype._eventsCount=0;Sr.prototype._maxListeners=void 0;var kA=10;function xm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Sr,"defaultMaxListeners",{enumerable:!0,get:function(){return kA},set:function(e){if(typeof e!="number"||e<0||gO(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kA=e}});Sr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Sr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gO(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function yO(e){return e._maxListeners===void 0?Sr.defaultMaxListeners:e._maxListeners}Sr.prototype.getMaxListeners=function(){return yO(this)};Sr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var l=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw l.context=u,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")CA(s,this,r);else for(var c=s.length,v=SO(s,c),n=0;n<c;++n)CA(v[n],this,r);return!0};function xO(e,t,r,n){var i,a,u;if(xm(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),u=a[t]),u===void 0)u=a[t]=r,++e._eventsCount;else if(typeof u=="function"?u=a[t]=n?[r,u]:[u,r]:n?u.unshift(r):u.push(r),i=yO(e),i>0&&u.length>i&&!u.warned){u.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=u.length,Iz(l)}return e}Sr.prototype.addListener=function(t,r){return xO(this,t,r,!1)};Sr.prototype.on=Sr.prototype.addListener;Sr.prototype.prependListener=function(t,r){return xO(this,t,r,!0)};function Pz(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _O(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Pz.bind(n);return i.listener=r,n.wrapFn=i,i}Sr.prototype.once=function(t,r){return xm(r),this.on(t,_O(this,t,r)),this};Sr.prototype.prependOnceListener=function(t,r){return xm(r),this.prependListener(t,_O(this,t,r)),this};Sr.prototype.removeListener=function(t,r){var n,i,a,u,l;if(xm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,u=n.length-1;u>=0;u--)if(n[u]===r||n[u].listener===r){l=n[u].listener,a=u;break}if(a<0)return this;a===0?n.shift():Lz(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Sr.prototype.off=Sr.prototype.removeListener;Sr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),u;for(i=0;i<a.length;++i)u=a[i],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function wO(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Dz(i):SO(i,i.length)}Sr.prototype.listeners=function(t){return wO(this,t,!0)};Sr.prototype.rawListeners=function(t){return wO(this,t,!1)};Sr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):bO.call(e,t)};Sr.prototype.listenerCount=bO;function bO(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Sr.prototype.eventNames=function(){return this._eventsCount>0?L0(this._events):[]};function SO(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Lz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Dz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Bz(e,t){return new Promise(function(r,n){function i(u){e.removeListener(t,a),n(u)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}EO(e,t,a,{once:!0}),t!=="error"&&$z(e,i,{once:!0})})}function $z(e,t,r){typeof e.on=="function"&&EO(e,"error",t,r)}function EO(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var AO=Uz,v1={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zz=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Uz(e){var t=[];return e.replace(zz,function(r,n,i){var a=n.toLowerCase();for(i=Gz(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==v1[a])return i.unshift(n),t.push(i);if(i.length<v1[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,v1[a])))}}),t}var jz=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function Gz(e){var t=e.match(jz);return t?t.map(Number):[]}var Hz={left:0,top:0},Kq=Wz;function Wz(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Vz(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Vz(e){return e===window||e===document||e===document.body?Hz:e.getBoundingClientRect()}function qz(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var Jq=qz();function Yz(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,u){return n("temp_status",{seg:i,above:a,below:u})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,u){return n("status",{seg:i,above:a,below:u})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var Xz=Yz;function Qz(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],u=n[1],l=i[0],s=i[1],c=r[0],v=r[1];return(l-a)*(v-u)-(s-u)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],u=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*u+a*s;if(c<e)return!1;var v=u*u+s*s;return!(c-v>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],u=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*u)<e},linesIntersect:function(r,n,i,a){var u=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],v=u*c-l*s;if(Math.abs(v)<e)return!1;var x=r[0]-i[0],y=r[1]-i[1],g=(s*y-c*x)/v,k=(u*y-l*x)/v,N={alongA:0,alongB:0,pt:[r[0]+g*u,r[1]+g*l]};return g<=-e?N.alongA=-2:g<e?N.alongA=-1:g-1<=-e?N.alongA=0:g-1<e?N.alongA=1:N.alongA=2,k<=-e?N.alongB=-2:k<e?N.alongB=-1:k-1<=-e?N.alongB=0:k-1<e?N.alongB=1:N.alongB=2,N},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],u=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var v=n[c][0],x=n[c][1];x-a>e!=l-a>e&&(u-v)*(a-x)/(l-x)+v-i>e&&(s=!s),u=v,l=x}return s}};return t}var Zz=Qz,Kz={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},Jz=Kz,Lc=Jz;function eU(e,t,r){function n(k,N){return{id:r?r.segmentId():-1,start:k,end:N,myFill:{above:null,below:null},otherFill:null}}function i(k,N,b){return{id:r?r.segmentId():-1,start:k,end:N,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=Lc.create();function u(k,N,b,w,A,M){var R=t.pointsCompare(N,A);return R!==0?R:t.pointsSame(b,M)?0:k!==w?k?1:-1:t.pointAboveOrOnLine(b,w?A:M,w?M:A)?1:-1}function l(k,N){a.insertBefore(k,function(b){var w=u(k.isStart,k.pt,N,b.isStart,b.pt,b.other.pt);return w<0})}function s(k,N){var b=Lc.node({isStart:!0,pt:k.start,seg:k,primary:N,other:null,status:null});return l(b,k.end),b}function c(k,N,b){var w=Lc.node({isStart:!1,pt:N.end,seg:N,primary:b,other:k,status:null});k.other=w,l(w,k.pt)}function v(k,N){var b=s(k,N);return c(b,k,N),b}function x(k,N){r&&r.segmentChop(k.seg,N),k.other.remove(),k.seg.end=N,k.other.pt=N,l(k.other,k.pt)}function y(k,N){var b=i(N,k.seg.end,k.seg);return x(k,N),v(b,k.primary)}function g(k,N){var b=Lc.create();function w(Ke,mt){var lt=Ke.seg.start,Ue=Ke.seg.end,Ye=mt.seg.start,It=mt.seg.end;return t.pointsCollinear(lt,Ye,It)?t.pointsCollinear(Ue,Ye,It)||t.pointAboveOrOnLine(Ue,Ye,It)?1:-1:t.pointAboveOrOnLine(lt,Ye,It)?1:-1}function A(Ke){return b.findTransition(function(mt){var lt=w(Ke,mt.ev);return lt>0})}function M(Ke,mt){var lt=Ke.seg,Ue=mt.seg,Ye=lt.start,It=lt.end,Ze=Ue.start,Ee=Ue.end;r&&r.checkIntersection(lt,Ue);var tt=t.linesIntersect(Ye,It,Ze,Ee);if(tt===!1){if(!t.pointsCollinear(Ye,It,Ze)||t.pointsSame(Ye,Ee)||t.pointsSame(It,Ze))return!1;var ct=t.pointsSame(Ye,Ze),rt=t.pointsSame(It,Ee);if(ct&&rt)return mt;var yt=!ct&&t.pointBetween(Ye,Ze,Ee),Tt=!rt&&t.pointBetween(It,Ze,Ee);if(ct)return Tt?y(mt,It):y(Ke,Ee),mt;yt&&(rt||(Tt?y(mt,It):y(Ke,Ee)),y(mt,Ye))}else tt.alongA===0&&(tt.alongB===-1?y(Ke,Ze):tt.alongB===0?y(Ke,tt.pt):tt.alongB===1&&y(Ke,Ee)),tt.alongB===0&&(tt.alongA===-1?y(mt,Ye):tt.alongA===0?y(mt,tt.pt):tt.alongA===1&&y(mt,It));return!1}for(var R=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let Ke=function(){if(ne){var mt=M(L,ne);if(mt)return mt}return Y?M(L,Y):!1};r&&r.segmentNew(L.seg,L.primary);var D=A(L),ne=D.before?D.before.ev:null,Y=D.after?D.after.ev:null;r&&r.tempStatus(L.seg,ne?ne.seg:!1,Y?Y.seg:!1);var ae=Ke();if(ae){if(e){var Ce;L.seg.myFill.below===null?Ce=!0:Ce=L.seg.myFill.above!==L.seg.myFill.below,Ce&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(ae.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var Ce;L.seg.myFill.below===null?Ce=!0:Ce=L.seg.myFill.above!==L.seg.myFill.below,Y?L.seg.myFill.below=Y.seg.myFill.above:L.seg.myFill.below=k,Ce?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var Fe;Y?L.primary===Y.primary?Fe=Y.seg.otherFill.above:Fe=Y.seg.myFill.above:Fe=L.primary?N:k,L.seg.otherFill={above:Fe,below:Fe}}r&&r.status(L.seg,ne?ne.seg:!1,Y?Y.seg:!1),L.other.status=D.insert(Lc.node({ev:L}))}else{var Ie=L.status;if(Ie===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(Ie.prev)&&b.exists(Ie.next)&&M(Ie.prev.ev,Ie.next.ev),r&&r.statusRemove(Ie.ev.seg),Ie.remove(),!L.primary){var je=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=je}R.push(L.seg)}a.getHead().remove()}return r&&r.done(),R}return e?{addRegion:function(k){for(var N,b=k[k.length-1],w=0;w<k.length;w++){N=b,b=k[w];var A=t.pointsCompare(N,b);A!==0&&v(n(A<0?N:b,A<0?b:N),!0)}},calculate:function(k){return g(k,!1)}}:{calculate:function(k,N,b,w){return k.forEach(function(A){v(i(A.start,A.end,A),!0)}),b.forEach(function(A){v(i(A.start,A.end,A),!1)}),g(N,w)}}}var tU=eU;function rU(e,t,r){var n=[],i=[];return e.forEach(function(a){var u=a.start,l=a.end;if(t.pointsSame(u,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},v=s;function x(Ie,je,Ke){return v.index=Ie,v.matches_head=je,v.matches_pt1=Ke,v===s?(v=c,!1):(v=null,!0)}for(var y=0;y<n.length;y++){var g=n[y],k=g[0];g[1];var N=g[g.length-1];if(g[g.length-2],t.pointsSame(k,u)){if(x(y,!0,!0))break}else if(t.pointsSame(k,l)){if(x(y,!0,!1))break}else if(t.pointsSame(N,u)){if(x(y,!1,!0))break}else if(t.pointsSame(N,l)&&x(y,!1,!1))break}if(v===s){n.push([u,l]),r&&r.chainNew(u,l);return}if(v===c){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?l:u,A=s.matches_head,g=n[b],M=A?g[0]:g[g.length-1],R=A?g[1]:g[g.length-2],L=A?g[g.length-1]:g[0],D=A?g[g.length-2]:g[1];if(t.pointsCollinear(R,M,w)&&(A?(r&&r.chainRemoveHead(s.index,w),g.shift()):(r&&r.chainRemoveTail(s.index,w),g.pop()),M=R),t.pointsSame(L,w)){n.splice(b,1),t.pointsCollinear(D,L,M)&&(A?(r&&r.chainRemoveTail(s.index,M),g.pop()):(r&&r.chainRemoveHead(s.index,M),g.shift())),r&&r.chainClose(s.index),i.push(g);return}A?(r&&r.chainAddHead(s.index,w),g.unshift(w)):(r&&r.chainAddTail(s.index,w),g.push(w));return}function ne(Ie){r&&r.chainReverse(Ie),n[Ie].reverse()}function Y(Ie,je){var Ke=n[Ie],mt=n[je],lt=Ke[Ke.length-1],Ue=Ke[Ke.length-2],Ye=mt[0],It=mt[1];t.pointsCollinear(Ue,lt,Ye)&&(r&&r.chainRemoveTail(Ie,lt),Ke.pop(),lt=Ue),t.pointsCollinear(lt,Ye,It)&&(r&&r.chainRemoveHead(je,Ye),mt.shift()),r&&r.chainJoin(Ie,je),n[Ie]=Ke.concat(mt),n.splice(je,1)}var ae=s.index,Ce=c.index;r&&r.chainConnect(ae,Ce);var Fe=n[ae].length<n[Ce].length;s.matches_head?c.matches_head?Fe?(ne(ae),Y(ae,Ce)):(ne(Ce),Y(Ce,ae)):Y(Ce,ae):c.matches_head?Y(ae,Ce):Fe?(ne(ae),Y(Ce,ae)):(ne(Ce),Y(ae,Ce))}),i}var nU=rU;function Dc(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var iU={union:function(e,t){return Dc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Dc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Dc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Dc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Dc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},aU=iU,oU={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function u(c){var v=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[v]})}for(var l=u(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,u(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(g,k){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],k)}function i(g){return{region:g,children:[]}}var a=i(null);function u(g,k){for(var N=0;N<g.children.length;N++){var b=g.children[N];if(n(k,b.region)){u(b,k);return}}for(var w=i(k),N=0;N<g.children.length;N++){var b=g.children[N];n(b.region,k)&&(w.children.push(b),g.children.splice(N,1),N--)}g.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||u(a,s)}function c(g,k){for(var N=0,b=g[g.length-1][0],w=g[g.length-1][1],A=[],M=0;M<g.length;M++){var R=g[M][0],L=g[M][1];A.push([R,L]),N+=L*b-R*w,b=R,w=L}var D=N<0;return D!==k&&A.reverse(),A.push([A[0][0],A[0][1]]),A}var v=[];function x(g){var k=[c(g.region,!1)];v.push(k);for(var N=0;N<g.children.length;N++)k.push(y(g.children[N]))}function y(g){for(var k=0;k<g.children.length;k++)x(g.children[k]);return c(g.region,!0)}for(var l=0;l<a.children.length;l++)x(a.children[l]);return v.length<=0?{type:"Polygon",coordinates:[]}:v.length==1?{type:"Polygon",coordinates:v[0]}:{type:"MultiPolygon",coordinates:v}}},uU=oU;/*
812
+ `)};function _(I){return I.map(O).join(o)}function O(I){return h.test(I)?'"'+I.replace(/\"/g,'""')+'"':I}return p},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Sl,iu,Xn,El,Qn=this[Ye(this,"requestAnimationFrame")]||function(o){setTimeout(o,17)};t.timer=function(){qa.apply(this,arguments)};function qa(o,f,h){var d=arguments.length;d<2&&(f=0),d<3&&(h=Date.now());var p=h+f,m={c:o,t:p,n:null};return iu?iu.n=m:Sl=m,iu=m,Xn||(El=clearTimeout(El),Xn=1,Qn(Ya)),m}function Ya(){var o=zi(),f=Al()-o;f>24?(isFinite(f)&&(clearTimeout(El),El=setTimeout(Ya,f)),Xn=0):(Xn=1,Qn(Ya))}t.timer.flush=function(){zi(),Al()};function zi(){for(var o=Date.now(),f=Sl;f;)o>=f.t&&f.c(o-f.t)&&(f.c=null),f=f.n;return o}function Al(){for(var o,f=Sl,h=1/0;f;)f.c?(f.t<h&&(h=f.t),f=(o=f).n):f=o?o.n=f.n:Sl=f.n;return iu=o,h}t.round=function(o,f){return f?Math.round(o*(f=Math.pow(10,f)))/f:Math.round(o)},t.geom={};function wi(o){return o[0]}function bi(o){return o[1]}t.geom.hull=function(o){var f=wi,h=bi;if(arguments.length)return d(o);function d(p){if(p.length<3)return[];var m=vr(f),E=vr(h),_,O=p.length,I=[],P=[];for(_=0;_<O;_++)I.push([+m.call(this,p[_],_),+E.call(this,p[_],_),_]);for(I.sort(kd),_=0;_<O;_++)P.push([I[_][0],-I[_][1]]);var $=au(I),z=au(P),re=z[0]===$[0],oe=z[z.length-1]===$[$.length-1],j=[];for(_=$.length-1;_>=0;--_)j.push(p[I[$[_]][2]]);for(_=+re;_<z.length-oe;++_)j.push(p[I[z[_]][2]]);return j}return d.x=function(p){return arguments.length?(f=p,d):f},d.y=function(p){return arguments.length?(h=p,d):h},d};function au(o){for(var f=o.length,h=[0,1],d=2,p=2;p<f;p++){for(;d>1&&Bm(o[h[d-2]],o[h[d-1]],o[p])<=0;)--d;h[d++]=p}return h.slice(0,d)}function kd(o,f){return o[0]-f[0]||o[1]-f[1]}t.geom.polygon=function(o){return Yt(o,Xa),o};var Xa=t.geom.polygon.prototype=[];Xa.area=function(){for(var o=-1,f=this.length,h,d=this[f-1],p=0;++o<f;)h=d,d=this[o],p+=h[1]*d[0]-h[0]*d[1];return p*.5},Xa.centroid=function(o){var f=-1,h=this.length,d=0,p=0,m,E=this[h-1],_;for(arguments.length||(o=-1/(6*this.area()));++f<h;)m=E,E=this[f],_=m[0]*E[1]-E[0]*m[1],d+=(m[0]+E[0])*_,p+=(m[1]+E[1])*_;return[d*o,p*o]},Xa.clip=function(o){for(var f,h=Od(o),d=-1,p=this.length-Od(this),m,E,_=this[p-1],O,I,P;++d<p;){for(f=o.slice(),o.length=0,O=this[d],I=f[(E=f.length-h)-1],m=-1;++m<E;)P=f[m],Tl(P,_,O)?(Tl(I,_,O)||o.push(xs(I,P,_,O)),o.push(P)):Tl(I,_,O)&&o.push(xs(I,P,_,O)),I=P;h&&o.push(o[0]),_=O}return o};function Tl(o,f,h){return(h[0]-f[0])*(o[1]-f[1])<(h[1]-f[1])*(o[0]-f[0])}function xs(o,f,h,d){var p=o[0],m=h[0],E=f[0]-p,_=d[0]-m,O=o[1],I=h[1],P=f[1]-O,$=d[1]-I,z=(_*(O-I)-$*(p-m))/($*E-_*P);return[p+z*E,O+z*P]}function Od(o){var f=o[0],h=o[o.length-1];return!(f[0]-h[0]||f[1]-h[1])}var Qa,sa,Ui,ou=[],uu,ca,ha=[];function _s(){Ol(this),this.edge=this.site=this.circle=null}function Cl(o){var f=ou.pop()||new _s;return f.site=o,f}function lu(o){Zn(o),Ui.remove(o),ou.push(o),Ol(o)}function ws(o){var f=o.circle,h=f.x,d=f.cy,p={x:h,y:d},m=o.P,E=o.N,_=[o];lu(o);for(var O=m;O.circle&&A(h-O.circle.x)<nr&&A(d-O.circle.cy)<nr;)m=O.P,_.unshift(O),lu(O),O=m;_.unshift(O),Zn(O);for(var I=E;I.circle&&A(h-I.circle.x)<nr&&A(d-I.circle.cy)<nr;)E=I.N,_.push(I),lu(I),I=E;_.push(I),Zn(I);var P=_.length,$;for($=1;$<P;++$)I=_[$],O=_[$-1],Za(I.edge,O.site,I.site,p);O=_[0],I=_[P-1],I.edge=su(O.site,I.site,null,p),da(O),da(I)}function Md(o){for(var f=o.x,h=o.y,d,p,m,E,_=Ui._;_;)if(m=bs(_,h)-f,m>nr)_=_.L;else if(E=f-Fd(_,h),E>nr){if(!_.R){d=_;break}_=_.R}else{m>-nr?(d=_.P,p=_):E>-nr?(d=_,p=_.N):d=p=_;break}var O=Cl(o);if(Ui.insert(d,O),!(!d&&!p)){if(d===p){Zn(d),p=Cl(d.site),Ui.insert(O,p),O.edge=p.edge=su(d.site,O.site),da(d),da(p);return}if(!p){O.edge=su(d.site,O.site);return}Zn(d),Zn(p);var I=d.site,P=I.x,$=I.y,z=o.x-P,re=o.y-$,oe=p.site,j=oe.x-P,q=oe.y-$,K=2*(z*q-re*j),ue=z*z+re*re,le=j*j+q*q,ee={x:(q*ue-re*le)/K+P,y:(z*le-j*ue)/K+$};Za(p.edge,I,oe,ee),O.edge=su(I,o,null,ee),p.edge=su(o,oe,null,ee),da(d),da(p)}}function bs(o,f){var h=o.site,d=h.x,p=h.y,m=p-f;if(!m)return d;var E=o.P;if(!E)return-1/0;h=E.site;var _=h.x,O=h.y,I=O-f;if(!I)return _;var P=_-d,$=1/m-1/I,z=P/I;return $?(-z+Math.sqrt(z*z-2*$*(P*P/(-2*I)-O+I/2+p-m/2)))/$+d:(d+_)/2}function Fd(o,f){var h=o.N;if(h)return bs(h,f);var d=o.site;return d.y===f?d.x:1/0}function Ss(o){this.site=o,this.edges=[]}Ss.prototype.prepare=function(){for(var o=this.edges,f=o.length,h;f--;)h=o[f].edge,(!h.b||!h.a)&&o.splice(f,1);return o.sort(Es),o.length};function Nd(o){for(var f=o[0][0],h=o[1][0],d=o[0][1],p=o[1][1],m,E,_,O,I=sa,P=I.length,$,z,re,oe,j,q;P--;)if($=I[P],!(!$||!$.prepare()))for(re=$.edges,oe=re.length,z=0;z<oe;)q=re[z].end(),_=q.x,O=q.y,j=re[++z%oe].start(),m=j.x,E=j.y,(A(_-m)>nr||A(O-E)>nr)&&(re.splice(z,0,new kl(jm($.site,q,A(_-f)<nr&&p-O>nr?{x:f,y:A(m-f)<nr?E:p}:A(O-p)<nr&&h-_>nr?{x:A(E-p)<nr?m:h,y:p}:A(_-h)<nr&&O-d>nr?{x:h,y:A(m-h)<nr?E:d}:A(O-d)<nr&&_-f>nr?{x:A(E-d)<nr?m:f,y:d}:null),$.site,null)),++oe)}function Es(o,f){return f.angle-o.angle}function Rd(){Ol(this),this.x=this.y=this.arc=this.site=this.cy=null}function da(o){var f=o.P,h=o.N;if(!(!f||!h)){var d=f.site,p=o.site,m=h.site;if(d!==m){var E=p.x,_=p.y,O=d.x-E,I=d.y-_,P=m.x-E,q=m.y-_,$=2*(O*q-I*P);if(!($>=-gd)){var z=O*O+I*I,re=P*P+q*q,oe=(q*z-I*re)/$,j=(O*re-P*z)/$,q=j+_,K=ha.pop()||new Rd;K.arc=o,K.site=p,K.x=oe+E,K.y=q+Math.sqrt(oe*oe+j*j),K.cy=q,o.circle=K;for(var ue=null,le=ca._;le;)if(K.y<le.y||K.y===le.y&&K.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}ca.insert(ue,K),ue||(uu=K)}}}}function Zn(o){var f=o.circle;f&&(f.P||(uu=f.N),ca.remove(f),ha.push(f),Ol(f),o.circle=null)}function As(o,f,h,d){return function(p){var m=p.a,E=p.b,_=m.x,O=m.y,I=E.x,P=E.y,$=0,z=1,re=I-_,oe=P-O,j;if(j=o-_,!(!re&&j>0)){if(j/=re,re<0){if(j<$)return;j<z&&(z=j)}else if(re>0){if(j>z)return;j>$&&($=j)}if(j=h-_,!(!re&&j<0)){if(j/=re,re<0){if(j>z)return;j>$&&($=j)}else if(re>0){if(j<$)return;j<z&&(z=j)}if(j=f-O,!(!oe&&j>0)){if(j/=oe,oe<0){if(j<$)return;j<z&&(z=j)}else if(oe>0){if(j>z)return;j>$&&($=j)}if(j=d-O,!(!oe&&j<0)){if(j/=oe,oe<0){if(j>z)return;j>$&&($=j)}else if(oe>0){if(j<$)return;j<z&&(z=j)}return $>0&&(p.a={x:_+$*re,y:O+$*oe}),z<1&&(p.b={x:_+z*re,y:O+z*oe}),p}}}}}}function Ts(o){for(var f=Qa,h=As(o[0][0],o[0][1],o[1][0],o[1][1]),d=f.length,p;d--;)p=f[d],(!fu(p,o)||!h(p)||A(p.a.x-p.b.x)<nr&&A(p.a.y-p.b.y)<nr)&&(p.a=p.b=null,f.splice(d,1))}function fu(o,f){var h=o.b;if(h)return!0;var d=o.a,p=f[0][0],m=f[1][0],E=f[0][1],_=f[1][1],O=o.l,I=o.r,P=O.x,$=O.y,z=I.x,re=I.y,oe=(P+z)/2,j=($+re)/2,q,K;if(re===$){if(oe<p||oe>=m)return;if(P>z){if(!d)d={x:oe,y:E};else if(d.y>=_)return;h={x:oe,y:_}}else{if(!d)d={x:oe,y:_};else if(d.y<E)return;h={x:oe,y:E}}}else if(q=(P-z)/(re-$),K=j-q*oe,q<-1||q>1)if(P>z){if(!d)d={x:(E-K)/q,y:E};else if(d.y>=_)return;h={x:(_-K)/q,y:_}}else{if(!d)d={x:(_-K)/q,y:_};else if(d.y<E)return;h={x:(E-K)/q,y:E}}else if($<re){if(!d)d={x:p,y:q*p+K};else if(d.x>=m)return;h={x:m,y:q*m+K}}else{if(!d)d={x:m,y:q*m+K};else if(d.x<p)return;h={x:p,y:q*p+K}}return o.a=d,o.b=h,!0}function Id(o,f){this.l=o,this.r=f,this.a=this.b=null}function su(o,f,h,d){var p=new Id(o,f);return Qa.push(p),h&&Za(p,o,f,h),d&&Za(p,f,o,d),sa[o.i].edges.push(new kl(p,o,f)),sa[f.i].edges.push(new kl(p,f,o)),p}function jm(o,f,h){var d=new Id(o,null);return d.a=f,d.b=h,Qa.push(d),d}function Za(o,f,h,d){!o.a&&!o.b?(o.a=d,o.l=f,o.r=h):o.l===h?o.b=d:o.a=d}function kl(o,f,h){var d=o.a,p=o.b;this.edge=o,this.site=f,this.angle=h?Math.atan2(h.y-f.y,h.x-f.x):o.l===f?Math.atan2(p.x-d.x,d.y-p.y):Math.atan2(d.x-p.x,p.y-d.y)}kl.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Cs(){this._=null}function Ol(o){o.U=o.C=o.L=o.R=o.P=o.N=null}Cs.prototype={insert:function(o,f){var h,d,p;if(o){if(f.P=o,f.N=o.N,o.N&&(o.N.P=f),o.N=f,o.R){for(o=o.R;o.L;)o=o.L;o.L=f}else o.R=f;h=o}else this._?(o=Ml(this._),f.P=null,f.N=o,o.P=o.L=f,h=o):(f.P=f.N=null,this._=f,h=null);for(f.L=f.R=null,f.U=h,f.C=!0,o=f;h&&h.C;)d=h.U,h===d.L?(p=d.R,p&&p.C?(h.C=p.C=!1,d.C=!0,o=d):(o===h.R&&(pa(this,h),o=h,h=o.U),h.C=!1,d.C=!0,cu(this,d))):(p=d.L,p&&p.C?(h.C=p.C=!1,d.C=!0,o=d):(o===h.L&&(cu(this,h),o=h,h=o.U),h.C=!1,d.C=!0,pa(this,d))),h=o.U;this._.C=!1},remove:function(o){o.N&&(o.N.P=o.P),o.P&&(o.P.N=o.N),o.N=o.P=null;var f=o.U,h,d=o.L,p=o.R,m,E;if(d?p?m=Ml(p):m=d:m=p,f?f.L===o?f.L=m:f.R=m:this._=m,d&&p?(E=m.C,m.C=o.C,m.L=d,d.U=m,m!==p?(f=m.U,m.U=o.U,o=m.R,f.L=o,m.R=p,p.U=m):(m.U=f,f=m,o=m.R)):(E=o.C,o=m),o&&(o.U=f),!E){if(o&&o.C){o.C=!1;return}do{if(o===this._)break;if(o===f.L){if(h=f.R,h.C&&(h.C=!1,f.C=!0,pa(this,f),h=f.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,cu(this,h),h=f.R),h.C=f.C,f.C=h.R.C=!1,pa(this,f),o=this._;break}}else if(h=f.L,h.C&&(h.C=!1,f.C=!0,cu(this,f),h=f.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,pa(this,h),h=f.L),h.C=f.C,f.C=h.L.C=!1,cu(this,f),o=this._;break}h.C=!0,o=f,f=f.U}while(!o.C);o&&(o.C=!1)}}};function pa(o,f){var h=f,d=f.R,p=h.U;p?p.L===h?p.L=d:p.R=d:o._=d,d.U=p,h.U=d,h.R=d.L,h.R&&(h.R.U=h),d.L=h}function cu(o,f){var h=f,d=f.L,p=h.U;p?p.L===h?p.L=d:p.R=d:o._=d,d.U=p,h.U=d,h.L=d.R,h.L&&(h.L.U=h),d.R=h}function Ml(o){for(;o.L;)o=o.L;return o}function Fl(o,f){var h=o.sort(Pd).pop(),d,p,m;for(Qa=[],sa=new Array(o.length),Ui=new Cs,ca=new Cs;;)if(m=uu,h&&(!m||h.y<m.y||h.y===m.y&&h.x<m.x))(h.x!==d||h.y!==p)&&(sa[h.i]=new Ss(h),Md(h),d=h.x,p=h.y),h=o.pop();else if(m)ws(m.arc);else break;f&&(Ts(f),Nd(f));var E={cells:sa,edges:Qa};return Ui=ca=Qa=sa=null,E}function Pd(o,f){return f.y-o.y||f.x-o.x}t.geom.voronoi=function(o){var f=wi,h=bi,d=f,p=h,m=Ka;if(o)return E(o);function E(O){var I=new Array(O.length),P=m[0][0],$=m[0][1],z=m[1][0],re=m[1][1];return Fl(_(O),m).cells.forEach(function(oe,j){var q=oe.edges,K=oe.site,ue=I[j]=q.length?q.map(function(le){var ee=le.start();return[ee.x,ee.y]}):K.x>=P&&K.x<=z&&K.y>=$&&K.y<=re?[[P,re],[z,re],[z,$],[P,$]]:[];ue.point=O[j]}),I}function _(O){return O.map(function(I,P){return{x:Math.round(d(I,P)/nr)*nr,y:Math.round(p(I,P)/nr)*nr,i:P}})}return E.links=function(O){return Fl(_(O)).edges.filter(function(I){return I.l&&I.r}).map(function(I){return{source:O[I.l.i],target:O[I.r.i]}})},E.triangles=function(O){var I=[];return Fl(_(O)).cells.forEach(function(P,$){for(var z=P.site,re=P.edges.sort(Es),oe=-1,j=re.length,q,K=re[j-1].edge,ue=K.l===z?K.r:K.l;++oe<j;)q=ue,K=re[oe].edge,ue=K.l===z?K.r:K.l,$<q.i&&$<ue.i&&Gm(z,q,ue)<0&&I.push([O[$],O[q.i],O[ue.i]])}),I},E.x=function(O){return arguments.length?(d=vr(f=O),E):f},E.y=function(O){return arguments.length?(p=vr(h=O),E):h},E.clipExtent=function(O){return arguments.length?(m=O??Ka,E):m===Ka?null:m},E.size=function(O){return arguments.length?E.clipExtent(O&&[[0,0],O]):m===Ka?null:m&&m[1]},E};var Ka=[[-1e6,-1e6],[1e6,1e6]];function Gm(o,f,h){return(o.x-h.x)*(f.y-o.y)-(o.x-f.x)*(h.y-o.y)}t.geom.delaunay=function(o){return t.geom.voronoi().triangles(o)},t.geom.quadtree=function(o,f,h,d,p){var m=wi,E=bi,_;if(_=arguments.length)return m=Nl,E=Hm,_===3&&(p=h,d=f,h=f=0),O(o);function O(I){var P,$=vr(m),z=vr(E),re,oe,j,q,K,ue,le,ee;if(f!=null)K=f,ue=h,le=d,ee=p;else if(le=ee=-(K=ue=1/0),re=[],oe=[],q=I.length,_)for(j=0;j<q;++j)P=I[j],P.x<K&&(K=P.x),P.y<ue&&(ue=P.y),P.x>le&&(le=P.x),P.y>ee&&(ee=P.y),re.push(P.x),oe.push(P.y);else for(j=0;j<q;++j){var Me=+$(P=I[j],j),Be=+z(P,j);Me<K&&(K=Me),Be<ue&&(ue=Be),Me>le&&(le=Me),Be>ee&&(ee=Be),re.push(Me),oe.push(Be)}var Je=le-K,$e=ee-ue;Je>$e?ee=ue+Je:le=K+$e;function it(xt,zt,ir,Tr,hr,et,Ht,Vt){if(!(isNaN(ir)||isNaN(Tr)))if(xt.leaf){var ar=xt.x,wr=xt.y;if(ar!=null)if(A(ar-ir)+A(wr-Tr)<.01)dt(xt,zt,ir,Tr,hr,et,Ht,Vt);else{var Pr=xt.point;xt.x=xt.y=xt.point=null,dt(xt,Pr,ar,wr,hr,et,Ht,Vt),dt(xt,zt,ir,Tr,hr,et,Ht,Vt)}else xt.x=ir,xt.y=Tr,xt.point=zt}else dt(xt,zt,ir,Tr,hr,et,Ht,Vt)}function dt(xt,zt,ir,Tr,hr,et,Ht,Vt){var ar=(hr+Ht)*.5,wr=(et+Vt)*.5,Pr=ir>=ar,Wr=Tr>=wr,fn=Wr<<1|Pr;xt.leaf=!1,xt=xt.nodes[fn]||(xt.nodes[fn]=Ld()),Pr?hr=ar:Ht=ar,Wr?et=wr:Vt=wr,it(xt,zt,ir,Tr,hr,et,Ht,Vt)}var Gt=Ld();if(Gt.add=function(xt){it(Gt,xt,+$(xt,++j),+z(xt,j),K,ue,le,ee)},Gt.visit=function(xt){hu(xt,Gt,K,ue,le,ee)},Gt.find=function(xt){return Wm(Gt,xt[0],xt[1],K,ue,le,ee)},j=-1,f==null){for(;++j<q;)it(Gt,I[j],re[j],oe[j],K,ue,le,ee);--j}else I.forEach(Gt.add);return re=oe=I=P=null,Gt}return O.x=function(I){return arguments.length?(m=I,O):m},O.y=function(I){return arguments.length?(E=I,O):E},O.extent=function(I){return arguments.length?(I==null?f=h=d=p=null:(f=+I[0][0],h=+I[0][1],d=+I[1][0],p=+I[1][1]),O):f==null?null:[[f,h],[d,p]]},O.size=function(I){return arguments.length?(I==null?f=h=d=p=null:(f=h=0,d=+I[0],p=+I[1]),O):f==null?null:[d-f,p-h]},O};function Nl(o){return o.x}function Hm(o){return o.y}function Ld(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hu(o,f,h,d,p,m){if(!o(f,h,d,p,m)){var E=(h+p)*.5,_=(d+m)*.5,O=f.nodes;O[0]&&hu(o,O[0],h,d,E,_),O[1]&&hu(o,O[1],E,d,p,_),O[2]&&hu(o,O[2],h,_,E,m),O[3]&&hu(o,O[3],E,_,p,m)}}function Wm(o,f,h,d,p,m,E){var _=1/0,O;return function I(P,$,z,re,oe){if(!($>m||z>E||re<d||oe<p)){if(j=P.point){var j,q=f-P.x,K=h-P.y,ue=q*q+K*K;if(ue<_){var le=Math.sqrt(_=ue);d=f-le,p=h-le,m=f+le,E=h+le,O=j}}for(var ee=P.nodes,Me=($+re)*.5,Be=(z+oe)*.5,Je=f>=Me,$e=h>=Be,it=$e<<1|Je,dt=it+4;it<dt;++it)if(P=ee[it&3])switch(it&3){case 0:I(P,$,z,Me,Be);break;case 1:I(P,Me,z,re,Be);break;case 2:I(P,$,Be,Me,oe);break;case 3:I(P,Me,Be,re,oe);break}}}(o,d,p,m,E),O}t.interpolateRgb=ks;function ks(o,f){o=t.rgb(o),f=t.rgb(f);var h=o.r,d=o.g,p=o.b,m=f.r-h,E=f.g-d,_=f.b-p;return function(O){return"#"+Wa(Math.round(h+m*O))+Wa(Math.round(d+E*O))+Wa(Math.round(p+_*O))}}t.interpolateObject=Dd;function Dd(o,f){var h={},d={},p;for(p in o)p in f?h[p]=li(o[p],f[p]):d[p]=o[p];for(p in f)p in o||(d[p]=f[p]);return function(m){for(p in h)d[p]=h[p](m);return d}}t.interpolateNumber=Si;function Si(o,f){return o=+o,f=+f,function(h){return o*(1-h)+f*h}}t.interpolateString=Os;function Os(o,f){var h=va.lastIndex=Ms.lastIndex=0,d,p,m,E=-1,_=[],O=[];for(o=o+"",f=f+"";(d=va.exec(o))&&(p=Ms.exec(f));)(m=p.index)>h&&(m=f.slice(h,m),_[E]?_[E]+=m:_[++E]=m),(d=d[0])===(p=p[0])?_[E]?_[E]+=p:_[++E]=p:(_[++E]=null,O.push({i:E,x:Si(d,p)})),h=Ms.lastIndex;return h<f.length&&(m=f.slice(h),_[E]?_[E]+=m:_[++E]=m),_.length<2?O[0]?(f=O[0].x,function(I){return f(I)+""}):function(){return f}:(f=O.length,function(I){for(var P=0,$;P<f;++P)_[($=O[P]).i]=$.x(I);return _.join("")})}var va=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ms=new RegExp(va.source,"g");t.interpolate=li;function li(o,f){for(var h=t.interpolators.length,d;--h>=0&&!(d=t.interpolators[h](o,f)););return d}t.interpolators=[function(o,f){var h=typeof f;return(h==="string"?Va.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?ks:Os:f instanceof Di?ks:Array.isArray(f)?bn:h==="object"&&isNaN(f)?Dd:Si)(o,f)}],t.interpolateArray=bn;function bn(o,f){var h=[],d=[],p=o.length,m=f.length,E=Math.min(o.length,f.length),_;for(_=0;_<E;++_)h.push(li(o[_],f[_]));for(;_<p;++_)d[_]=o[_];for(;_<m;++_)d[_]=f[_];return function(O){for(_=0;_<E;++_)d[_]=h[_](O);return d}}var ma=function(){return lt},Bd=t.map({linear:ma,poly:Xr,quad:function(){return Ud},cubic:function(){return Vm},sin:function(){return jd},exp:function(){return Gd},circle:function(){return ga},elastic:Hd,back:Wd,bounce:function(){return qm}}),$d=t.map({in:lt,out:Fs,"in-out":Ns,"out-in":function(o){return Ns(Fs(o))}});t.ease=function(o){var f=o.indexOf("-"),h=f>=0?o.slice(0,f):o,d=f>=0?o.slice(f+1):"in";return h=Bd.get(h)||ma,d=$d.get(d)||lt,zd(d(h.apply(null,r.call(arguments,1))))};function zd(o){return function(f){return f<=0?0:f>=1?1:o(f)}}function Fs(o){return function(f){return 1-o(1-f)}}function Ns(o){return function(f){return .5*(f<.5?o(2*f):2-o(2-2*f))}}function Ud(o){return o*o}function Vm(o){return o*o*o}function Ja(o){if(o<=0)return 0;if(o>=1)return 1;var f=o*o,h=f*o;return 4*(o<.5?h:3*(o-f)+h-.75)}function Xr(o){return function(f){return Math.pow(f,o)}}function jd(o){return 1-Math.cos(o*ui)}function Gd(o){return Math.pow(2,10*(o-1))}function ga(o){return 1-Math.sqrt(1-o*o)}function Hd(o,f){var h;return arguments.length<2&&(f=.45),arguments.length?h=f/Ha*Math.asin(1/o):(o=1,h=f/4),function(d){return 1+o*Math.pow(2,-10*d)*Math.sin((d-h)*Ha/f)}}function Wd(o){return o||(o=1.70158),function(f){return f*f*((o+1)*f-o)}}function qm(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375}t.interpolateHcl=Ym;function Ym(o,f){o=t.hcl(o),f=t.hcl(f);var h=o.h,d=o.c,p=o.l,m=f.h-h,E=f.c-d,_=f.l-p;return isNaN(E)&&(E=0,d=isNaN(d)?f.c:d),isNaN(m)?(m=0,h=isNaN(h)?f.h:h):m>180?m-=360:m<-180&&(m+=360),function(O){return nu(h+m*O,d+E*O,p+_*O)+""}}t.interpolateHsl=Xm;function Xm(o,f){o=t.hsl(o),f=t.hsl(f);var h=o.h,d=o.s,p=o.l,m=f.h-h,E=f.s-d,_=f.l-p;return isNaN(E)&&(E=0,d=isNaN(d)?f.s:d),isNaN(m)?(m=0,h=isNaN(h)?f.h:h):m>180?m-=360:m<-180&&(m+=360),function(O){return xl(h+m*O,d+E*O,p+_*O)+""}}t.interpolateLab=Qm;function Qm(o,f){o=t.lab(o),f=t.lab(f);var h=o.l,d=o.a,p=o.b,m=f.l-h,E=f.a-d,_=f.b-p;return function(O){return Ed(h+m*O,d+E*O,p+_*O)+""}}t.interpolateRound=Rl;function Rl(o,f){return f-=o,function(h){return Math.round(o+f*h)}}t.transform=function(o){var f=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){f.setAttribute("transform",h);var d=f.transform.baseVal.consolidate()}return new Rs(d?d.matrix:Zm)})(o)};function Rs(o){var f=[o.a,o.b],h=[o.c,o.d],d=Is(f),p=Vd(f,h),m=Is(qd(h,f,-p))||0;f[0]*h[1]<h[0]*f[1]&&(f[0]*=-1,f[1]*=-1,d*=-1,p*=-1),this.rotate=(d?Math.atan2(f[1],f[0]):Math.atan2(-h[0],h[1]))*Jo,this.translate=[o.e,o.f],this.scale=[d,m],this.skew=m?Math.atan2(p,m)*Jo:0}Rs.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Vd(o,f){return o[0]*f[0]+o[1]*f[1]}function Is(o){var f=Math.sqrt(Vd(o,o));return f&&(o[0]/=f,o[1]/=f),f}function qd(o,f,h){return o[0]+=h*f[0],o[1]+=h*f[1],o}var Zm={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Ps;function Ei(o){return o.length?o.pop()+",":""}function Km(o,f,h,d){if(o[0]!==f[0]||o[1]!==f[1]){var p=h.push("translate(",null,",",null,")");d.push({i:p-4,x:Si(o[0],f[0])},{i:p-2,x:Si(o[1],f[1])})}else(f[0]||f[1])&&h.push("translate("+f+")")}function ji(o,f,h,d){o!==f?(o-f>180?f+=360:f-o>180&&(o+=360),d.push({i:h.push(Ei(h)+"rotate(",null,")")-2,x:Si(o,f)})):f&&h.push(Ei(h)+"rotate("+f+")")}function Il(o,f,h,d){o!==f?d.push({i:h.push(Ei(h)+"skewX(",null,")")-2,x:Si(o,f)}):f&&h.push(Ei(h)+"skewX("+f+")")}function Yd(o,f,h,d){if(o[0]!==f[0]||o[1]!==f[1]){var p=h.push(Ei(h)+"scale(",null,",",null,")");d.push({i:p-4,x:Si(o[0],f[0])},{i:p-2,x:Si(o[1],f[1])})}else(f[0]!==1||f[1]!==1)&&h.push(Ei(h)+"scale("+f+")")}function Ps(o,f){var h=[],d=[];return o=t.transform(o),f=t.transform(f),Km(o.translate,f.translate,h,d),ji(o.rotate,f.rotate,h,d),Il(o.skew,f.skew,h,d),Yd(o.scale,f.scale,h,d),o=f=null,function(p){for(var m=-1,E=d.length,_;++m<E;)h[(_=d[m]).i]=_.x(p);return h.join("")}}function Xd(o,f){return f=(f-=o=+o)||1/f,function(h){return(h-o)/f}}function Qd(o,f){return f=(f-=o=+o)||1/f,function(h){return Math.max(0,Math.min(1,(h-o)/f))}}t.layout={},t.layout.bundle=function(){return function(o){for(var f=[],h=-1,d=o.length;++h<d;)f.push(Zd(o[h]));return f}};function Zd(o){for(var f=o.source,h=o.target,d=Kd(f,h),p=[f];f!==d;)f=f.parent,p.push(f);for(var m=p.length;h!==d;)p.splice(m,0,h),h=h.parent;return p}function Ls(o){for(var f=[],h=o.parent;h!=null;)f.push(o),o=h,h=h.parent;return f.push(o),f}function Kd(o,f){if(o===f)return o;for(var h=Ls(o),d=Ls(f),p=h.pop(),m=d.pop(),E=null;p===m;)E=p,p=h.pop(),m=d.pop();return E}t.layout.chord=function(){var o={},f,h,d,p,m=0,E,_,O;function I(){var $={},z=[],re=t.range(p),oe=[],j,q,K,ue,le;for(f=[],h=[],j=0,ue=-1;++ue<p;){for(q=0,le=-1;++le<p;)q+=d[ue][le];z.push(q),oe.push(t.range(p)),j+=q}for(E&&re.sort(function(Gt,xt){return E(z[Gt],z[xt])}),_&&oe.forEach(function(Gt,xt){Gt.sort(function(zt,ir){return _(d[xt][zt],d[xt][ir])})}),j=(Ha-m*p)/j,q=0,ue=-1;++ue<p;){for(K=q,le=-1;++le<p;){var ee=re[ue],Me=oe[ee][le],Be=d[ee][Me],Je=q,$e=q+=Be*j;$[ee+"-"+Me]={index:ee,subindex:Me,startAngle:Je,endAngle:$e,value:Be}}h[ee]={index:ee,startAngle:K,endAngle:q,value:z[ee]},q+=m}for(ue=-1;++ue<p;)for(le=ue-1;++le<p;){var it=$[ue+"-"+le],dt=$[le+"-"+ue];(it.value||dt.value)&&f.push(it.value<dt.value?{source:dt,target:it}:{source:it,target:dt})}O&&P()}function P(){f.sort(function($,z){return O(($.source.value+$.target.value)/2,(z.source.value+z.target.value)/2)})}return o.matrix=function($){return arguments.length?(p=(d=$)&&d.length,f=h=null,o):d},o.padding=function($){return arguments.length?(m=$,f=h=null,o):m},o.sortGroups=function($){return arguments.length?(E=$,f=h=null,o):E},o.sortSubgroups=function($){return arguments.length?(_=$,f=null,o):_},o.sortChords=function($){return arguments.length?(O=$,f&&P(),o):O},o.chords=function(){return f||I(),f},o.groups=function(){return h||I(),h},o},t.layout.force=function(){var o={},f=t.dispatch("start","tick","end"),h,d=[1,1],p,m,E=.9,_=Ai,O=Ds,I=-30,P=eo,$=.1,z=.64,re=[],oe=[],j,q,K;function ue(ee){return function(Me,Be,Je,$e){if(Me.point!==ee){var it=Me.cx-ee.x,dt=Me.cy-ee.y,Gt=$e-Be,xt=it*it+dt*dt;if(Gt*Gt/z<xt){if(xt<P){var zt=Me.charge/xt;ee.px-=it*zt,ee.py-=dt*zt}return!0}if(Me.point&&xt&&xt<P){var zt=Me.pointCharge/xt;ee.px-=it*zt,ee.py-=dt*zt}}return!Me.charge}}o.tick=function(){if((m*=.99)<.005)return h=null,f.end({type:"end",alpha:m=0}),!0;var ee=re.length,Me=oe.length,Be,Je,$e,it,dt,Gt,xt,zt,ir;for(Je=0;Je<Me;++Je)$e=oe[Je],it=$e.source,dt=$e.target,zt=dt.x-it.x,ir=dt.y-it.y,(Gt=zt*zt+ir*ir)&&(Gt=m*q[Je]*((Gt=Math.sqrt(Gt))-j[Je])/Gt,zt*=Gt,ir*=Gt,dt.x-=zt*(xt=it.weight+dt.weight?it.weight/(it.weight+dt.weight):.5),dt.y-=ir*xt,it.x+=zt*(xt=1-xt),it.y+=ir*xt);if((xt=m*$)&&(zt=d[0]/2,ir=d[1]/2,Je=-1,xt))for(;++Je<ee;)$e=re[Je],$e.x+=(zt-$e.x)*xt,$e.y+=(ir-$e.y)*xt;if(I)for(rp(Be=t.geom.quadtree(re),m,K),Je=-1;++Je<ee;)($e=re[Je]).fixed||Be.visit(ue($e));for(Je=-1;++Je<ee;)$e=re[Je],$e.fixed?($e.x=$e.px,$e.y=$e.py):($e.x-=($e.px-($e.px=$e.x))*E,$e.y-=($e.py-($e.py=$e.y))*E);f.tick({type:"tick",alpha:m})},o.nodes=function(ee){return arguments.length?(re=ee,o):re},o.links=function(ee){return arguments.length?(oe=ee,o):oe},o.size=function(ee){return arguments.length?(d=ee,o):d},o.linkDistance=function(ee){return arguments.length?(_=typeof ee=="function"?ee:+ee,o):_},o.distance=o.linkDistance,o.linkStrength=function(ee){return arguments.length?(O=typeof ee=="function"?ee:+ee,o):O},o.friction=function(ee){return arguments.length?(E=+ee,o):E},o.charge=function(ee){return arguments.length?(I=typeof ee=="function"?ee:+ee,o):I},o.chargeDistance=function(ee){return arguments.length?(P=ee*ee,o):Math.sqrt(P)},o.gravity=function(ee){return arguments.length?($=+ee,o):$},o.theta=function(ee){return arguments.length?(z=ee*ee,o):Math.sqrt(z)},o.alpha=function(ee){return arguments.length?(ee=+ee,m?ee>0?m=ee:(h.c=null,h.t=NaN,h=null,f.end({type:"end",alpha:m=0})):ee>0&&(f.start({type:"start",alpha:m=ee}),h=qa(o.tick)),o):m},o.start=function(){var ee,Me=re.length,Be=oe.length,Je=d[0],$e=d[1],it,dt;for(ee=0;ee<Me;++ee)(dt=re[ee]).index=ee,dt.weight=0;for(ee=0;ee<Be;++ee)dt=oe[ee],typeof dt.source=="number"&&(dt.source=re[dt.source]),typeof dt.target=="number"&&(dt.target=re[dt.target]),++dt.source.weight,++dt.target.weight;for(ee=0;ee<Me;++ee)dt=re[ee],isNaN(dt.x)&&(dt.x=Gt("x",Je)),isNaN(dt.y)&&(dt.y=Gt("y",$e)),isNaN(dt.px)&&(dt.px=dt.x),isNaN(dt.py)&&(dt.py=dt.y);if(j=[],typeof _=="function")for(ee=0;ee<Be;++ee)j[ee]=+_.call(this,oe[ee],ee);else for(ee=0;ee<Be;++ee)j[ee]=_;if(q=[],typeof O=="function")for(ee=0;ee<Be;++ee)q[ee]=+O.call(this,oe[ee],ee);else for(ee=0;ee<Be;++ee)q[ee]=O;if(K=[],typeof I=="function")for(ee=0;ee<Me;++ee)K[ee]=+I.call(this,re[ee],ee);else for(ee=0;ee<Me;++ee)K[ee]=I;function Gt(xt,zt){if(!it){for(it=new Array(Me),hr=0;hr<Me;++hr)it[hr]=[];for(hr=0;hr<Be;++hr){var ir=oe[hr];it[ir.source.index].push(ir.target),it[ir.target.index].push(ir.source)}}for(var Tr=it[ee],hr=-1,et=Tr.length,Ht;++hr<et;)if(!isNaN(Ht=Tr[hr][xt]))return Ht;return Math.random()*zt}return o.resume()},o.resume=function(){return o.alpha(.1)},o.stop=function(){return o.alpha(0)},o.drag=function(){if(p||(p=t.behavior.drag().origin(lt).on("dragstart.force",Jd).on("drag.force",le).on("dragend.force",ep)),!arguments.length)return p;this.on("mouseover.force",Kn).on("mouseout.force",tp).call(p)};function le(ee){ee.px=t.event.x,ee.py=t.event.y,o.resume()}return t.rebind(o,f,"on")};function Jd(o){o.fixed|=2}function ep(o){o.fixed&=-7}function Kn(o){o.fixed|=4,o.px=o.x,o.py=o.y}function tp(o){o.fixed&=-5}function rp(o,f,h){var d=0,p=0;if(o.charge=0,!o.leaf)for(var m=o.nodes,E=m.length,_=-1,O;++_<E;)O=m[_],O!=null&&(rp(O,f,h),o.charge+=O.charge,d+=O.charge*O.cx,p+=O.charge*O.cy);if(o.point){o.leaf||(o.point.x+=Math.random()-.5,o.point.y+=Math.random()-.5);var I=f*h[o.point.index];o.charge+=o.pointCharge=I,d+=I*o.point.x,p+=I*o.point.y}o.cx=d/o.charge,o.cy=p/o.charge}var Ai=20,Ds=1,eo=1/0;t.layout.hierarchy=function(){var o=Jm,f=np,h=ip;function d(p){var m=[p],E=[],_;for(p.depth=0;(_=m.pop())!=null;)if(E.push(_),(I=f.call(d,_,_.depth))&&(O=I.length)){for(var O,I,P;--O>=0;)m.push(P=I[O]),P.parent=_,P.depth=_.depth+1;h&&(_.value=0),_.children=I}else h&&(_.value=+h.call(d,_,_.depth)||0),delete _.children;return Jn(p,function($){var z,re;o&&(z=$.children)&&z.sort(o),h&&(re=$.parent)&&(re.value+=$.value)}),E}return d.sort=function(p){return arguments.length?(o=p,d):o},d.children=function(p){return arguments.length?(f=p,d):f},d.value=function(p){return arguments.length?(h=p,d):h},d.revalue=function(p){return h&&(ro(p,function(m){m.children&&(m.value=0)}),Jn(p,function(m){var E;m.children||(m.value=+h.call(d,m,m.depth)||0),(E=m.parent)&&(E.value+=m.value)})),p},d};function to(o,f){return t.rebind(o,f,"sort","children","value"),o.nodes=o,o.links=eg,o}function ro(o,f){for(var h=[o];(o=h.pop())!=null;)if(f(o),(p=o.children)&&(d=p.length))for(var d,p;--d>=0;)h.push(p[d])}function Jn(o,f){for(var h=[o],d=[];(o=h.pop())!=null;)if(d.push(o),(E=o.children)&&(m=E.length))for(var p=-1,m,E;++p<m;)h.push(E[p]);for(;(o=d.pop())!=null;)f(o)}function np(o){return o.children}function ip(o){return o.value}function Jm(o,f){return f.value-o.value}function eg(o){return t.merge(o.map(function(f){return(f.children||[]).map(function(h){return{source:f,target:h}})}))}t.layout.partition=function(){var o=t.layout.hierarchy(),f=[1,1];function h(m,E,_,O){var I=m.children;if(m.x=E,m.y=m.depth*O,m.dx=_,m.dy=O,I&&($=I.length)){var P=-1,$,z,re;for(_=m.value?_/m.value:0;++P<$;)h(z=I[P],E,re=z.value*_,O),E+=re}}function d(m){var E=m.children,_=0;if(E&&(I=E.length))for(var O=-1,I;++O<I;)_=Math.max(_,d(E[O]));return 1+_}function p(m,E){var _=o.call(this,m,E);return h(_[0],0,f[0],f[1]/d(_[0])),_}return p.size=function(m){return arguments.length?(f=m,p):f},to(p,o)},t.layout.pie=function(){var o=Number,f=ap,h=0,d=Ha,p=0;function m(E){var _=E.length,O=E.map(function(ue,le){return+o.call(m,ue,le)}),I=+(typeof h=="function"?h.apply(this,arguments):h),P=(typeof d=="function"?d.apply(this,arguments):d)-I,$=Math.min(Math.abs(P)/_,+(typeof p=="function"?p.apply(this,arguments):p)),z=$*(P<0?-1:1),re=t.sum(O),oe=re?(P-_*z)/re:0,j=t.range(_),q=[],K;return f!=null&&j.sort(f===ap?function(ue,le){return O[le]-O[ue]}:function(ue,le){return f(E[ue],E[le])}),j.forEach(function(ue){q[ue]={data:E[ue],value:K=O[ue],startAngle:I,endAngle:I+=K*oe+z,padAngle:$}}),q}return m.value=function(E){return arguments.length?(o=E,m):o},m.sort=function(E){return arguments.length?(f=E,m):f},m.startAngle=function(E){return arguments.length?(h=E,m):h},m.endAngle=function(E){return arguments.length?(d=E,m):d},m.padAngle=function(E){return arguments.length?(p=E,m):p},m};var ap={};t.layout.stack=function(){var o=lt,f=$s,h=zs,d=ng,p=tg,m=rg;function E(_,O){if(!(oe=_.length))return _;var I=_.map(function(ue,le){return o.call(E,ue,le)}),P=I.map(function(ue){return ue.map(function(le,ee){return[p.call(E,le,ee),m.call(E,le,ee)]})}),$=f.call(E,P,O);I=t.permute(I,$),P=t.permute(P,$);var z=h.call(E,P,O),re=I[0].length,oe,j,q,K;for(q=0;q<re;++q)for(d.call(E,I[0][q],K=z[q],P[0][q][1]),j=1;j<oe;++j)d.call(E,I[j][q],K+=P[j-1][q][1],P[j][q][1]);return _}return E.values=function(_){return arguments.length?(o=_,E):o},E.order=function(_){return arguments.length?(f=typeof _=="function"?_:Bs.get(_)||$s,E):f},E.offset=function(_){return arguments.length?(h=typeof _=="function"?_:Pl.get(_)||zs,E):h},E.x=function(_){return arguments.length?(p=_,E):p},E.y=function(_){return arguments.length?(m=_,E):m},E.out=function(_){return arguments.length?(d=_,E):d},E};function tg(o){return o.x}function rg(o){return o.y}function ng(o,f,h){o.y0=f,o.y=h}var Bs=t.map({"inside-out":function(o){var f=o.length,h,d,p=o.map(op),m=o.map(Ll),E=t.range(f).sort(function($,z){return p[$]-p[z]}),_=0,O=0,I=[],P=[];for(h=0;h<f;++h)d=E[h],_<O?(_+=m[d],I.push(d)):(O+=m[d],P.push(d));return P.reverse().concat(I)},reverse:function(o){return t.range(o.length).reverse()},default:$s}),Pl=t.map({silhouette:function(o){var f=o.length,h=o[0].length,d=[],p=0,m,E,_,O=[];for(E=0;E<h;++E){for(m=0,_=0;m<f;m++)_+=o[m][E][1];_>p&&(p=_),d.push(_)}for(E=0;E<h;++E)O[E]=(p-d[E])/2;return O},wiggle:function(o){var f=o.length,h=o[0],d=h.length,p,m,E,_,O,I,P,$,z,re=[];for(re[0]=$=z=0,m=1;m<d;++m){for(p=0,_=0;p<f;++p)_+=o[p][m][1];for(p=0,O=0,P=h[m][0]-h[m-1][0];p<f;++p){for(E=0,I=(o[p][m][1]-o[p][m-1][1])/(2*P);E<p;++E)I+=(o[E][m][1]-o[E][m-1][1])/P;O+=I*o[p][m][1]}re[m]=$-=_?O/_*P:0,$<z&&(z=$)}for(m=0;m<d;++m)re[m]-=z;return re},expand:function(o){var f=o.length,h=o[0].length,d=1/f,p,m,E,_=[];for(m=0;m<h;++m){for(p=0,E=0;p<f;p++)E+=o[p][m][1];if(E)for(p=0;p<f;p++)o[p][m][1]/=E;else for(p=0;p<f;p++)o[p][m][1]=d}for(m=0;m<h;++m)_[m]=0;return _},zero:zs});function $s(o){return t.range(o.length)}function zs(o){for(var f=-1,h=o[0].length,d=[];++f<h;)d[f]=0;return d}function op(o){for(var f=1,h=0,d=o[0][1],p,m=o.length;f<m;++f)(p=o[f][1])>d&&(h=f,d=p);return h}function Ll(o){return o.reduce(Us,0)}function Us(o,f){return o+f[1]}t.layout.histogram=function(){var o=!0,f=Number,h=ag,d=ig;function p(m,z){for(var _=[],O=m.map(f,this),I=h.call(this,O,z),P=d.call(this,I,O,z),$,z=-1,re=O.length,oe=P.length-1,j=o?1:1/re,q;++z<oe;)$=_[z]=[],$.dx=P[z+1]-($.x=P[z]),$.y=0;if(oe>0)for(z=-1;++z<re;)q=O[z],q>=I[0]&&q<=I[1]&&($=_[t.bisect(P,q,1,oe)-1],$.y+=j,$.push(m[z]));return _}return p.value=function(m){return arguments.length?(f=m,p):f},p.range=function(m){return arguments.length?(h=vr(m),p):h},p.bins=function(m){return arguments.length?(d=typeof m=="number"?function(E){return js(E,m)}:vr(m),p):d},p.frequency=function(m){return arguments.length?(o=!!m,p):o},p};function ig(o,f){return js(o,Math.ceil(Math.log(f.length)/Math.LN2+1))}function js(o,f){for(var h=-1,d=+o[0],p=(o[1]-d)/f,m=[];++h<=f;)m[h]=p*h+d;return m}function ag(o){return[t.min(o),t.max(o)]}t.layout.pack=function(){var o=t.layout.hierarchy().sort(og),f=0,h=[1,1],d;function p(m,E){var _=o.call(this,m,E),O=_[0],I=h[0],P=h[1],$=d==null?Math.sqrt:typeof d=="function"?d:function(){return d};if(O.x=O.y=0,Jn(O,function(re){re.r=+$(re.value)}),Jn(O,Hs),f){var z=f*(d?1:Math.max(2*O.r/I,2*O.r/P))/2;Jn(O,function(re){re.r+=z}),Jn(O,Hs),Jn(O,function(re){re.r-=z})}return fp(O,I/2,P/2,d?1:1/Math.max(2*O.r/I,2*O.r/P)),_}return p.size=function(m){return arguments.length?(h=m,p):h},p.radius=function(m){return arguments.length?(d=m==null||typeof m=="function"?m:+m,p):d},p.padding=function(m){return arguments.length?(f=+m,p):f},to(p,o)};function og(o,f){return o.value-f.value}function Gs(o,f){var h=o._pack_next;o._pack_next=f,f._pack_prev=o,f._pack_next=h,h._pack_prev=f}function up(o,f){o._pack_next=f,f._pack_prev=o}function lp(o,f){var h=f.x-o.x,d=f.y-o.y,p=o.r+f.r;return .999*p*p>h*h+d*d}function Hs(o){if(!(f=o.children)||!(z=f.length))return;var f,h=1/0,d=-1/0,p=1/0,m=-1/0,E,_,O,I,P,$,z;function re(ee){h=Math.min(ee.x-ee.r,h),d=Math.max(ee.x+ee.r,d),p=Math.min(ee.y-ee.r,p),m=Math.max(ee.y+ee.r,m)}if(f.forEach(ug),E=f[0],E.x=-E.r,E.y=0,re(E),z>1&&(_=f[1],_.x=_.r,_.y=0,re(_),z>2))for(O=f[2],sp(E,_,O),re(O),Gs(E,O),E._pack_prev=O,Gs(O,_),_=E._pack_next,I=3;I<z;I++){sp(E,_,O=f[I]);var oe=0,j=1,q=1;for(P=_._pack_next;P!==_;P=P._pack_next,j++)if(lp(P,O)){oe=1;break}if(oe==1)for($=E._pack_prev;$!==P._pack_prev&&!lp($,O);$=$._pack_prev,q++);oe?(j<q||j==q&&_.r<E.r?up(E,_=P):up(E=$,_),I--):(Gs(E,O),_=O,re(O))}var K=(h+d)/2,ue=(p+m)/2,le=0;for(I=0;I<z;I++)O=f[I],O.x-=K,O.y-=ue,le=Math.max(le,O.r+Math.sqrt(O.x*O.x+O.y*O.y));o.r=le,f.forEach(lg)}function ug(o){o._pack_next=o._pack_prev=o}function lg(o){delete o._pack_next,delete o._pack_prev}function fp(o,f,h,d){var p=o.children;if(o.x=f+=d*o.x,o.y=h+=d*o.y,o.r*=d,p)for(var m=-1,E=p.length;++m<E;)fp(p[m],f,h,d)}function sp(o,f,h){var d=o.r+h.r,p=f.x-o.x,m=f.y-o.y;if(d&&(p||m)){var E=f.r+h.r,_=p*p+m*m;E*=E,d*=d;var O=.5+(d-E)/(2*_),I=Math.sqrt(Math.max(0,2*E*(d+_)-(d-=_)*d-E*E))/(2*_);h.x=o.x+O*p+I*m,h.y=o.y+O*m-I*p}else h.x=o.x+d,h.y=o.y}t.layout.tree=function(){var o=t.layout.hierarchy().sort(null).value(null),f=cp,h=[1,1],d=null;function p(P,$){var z=o.call(this,P,$),re=z[0],oe=m(re);if(Jn(oe,E),oe.parent.m=-oe.z,ro(oe,_),d)ro(re,I);else{var j=re,q=re,K=re;ro(re,function(Me){Me.x<j.x&&(j=Me),Me.x>q.x&&(q=Me),Me.depth>K.depth&&(K=Me)});var ue=f(j,q)/2-j.x,le=h[0]/(q.x+f(q,j)/2+ue),ee=h[1]/(K.depth||1);ro(re,function(Me){Me.x=(Me.x+ue)*le,Me.y=Me.depth*ee})}return z}function m(P){for(var $={A:null,children:[P]},z=[$],re;(re=z.pop())!=null;)for(var oe=re.children,j,q=0,K=oe.length;q<K;++q)z.push((oe[q]=j={_:oe[q],parent:re,children:(j=oe[q].children)&&j.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:q}).a=j);return $.children[0]}function E(P){var $=P.children,z=P.parent.children,re=P.i?z[P.i-1]:null;if($.length){sg(P);var oe=($[0].z+$[$.length-1].z)/2;re?(P.z=re.z+f(P._,re._),P.m=P.z-oe):P.z=oe}else re&&(P.z=re.z+f(P._,re._));P.parent.A=O(P,re,P.parent.A||z[0])}function _(P){P._.x=P.z+P.parent.m,P.m+=P.parent.m}function O(P,$,z){if($){for(var re=P,oe=P,j=$,q=re.parent.children[0],K=re.m,ue=oe.m,le=j.m,ee=q.m,Me;j=Vs(j),re=Ws(re),j&&re;)q=Ws(q),oe=Vs(oe),oe.a=P,Me=j.z+le-re.z-K+f(j._,re._),Me>0&&(fg(fi(j,P,z),P,Me),K+=Me,ue+=Me),le+=j.m,K+=re.m,ee+=q.m,ue+=oe.m;j&&!Vs(oe)&&(oe.t=j,oe.m+=le-ue),re&&!Ws(q)&&(q.t=re,q.m+=K-ee,z=P)}return z}function I(P){P.x*=h[0],P.y=P.depth*h[1]}return p.separation=function(P){return arguments.length?(f=P,p):f},p.size=function(P){return arguments.length?(d=(h=P)==null?I:null,p):d?null:h},p.nodeSize=function(P){return arguments.length?(d=(h=P)==null?null:I,p):d?h:null},to(p,o)};function cp(o,f){return o.parent==f.parent?1:2}function Ws(o){var f=o.children;return f.length?f[0]:o.t}function Vs(o){var f=o.children,h;return(h=f.length)?f[h-1]:o.t}function fg(o,f,h){var d=h/(f.i-o.i);f.c-=d,f.s+=h,o.c+=d,f.z+=h,f.m+=h}function sg(o){for(var f=0,h=0,d=o.children,p=d.length,m;--p>=0;)m=d[p],m.z+=f,m.m+=f,f+=m.s+(h+=m.c)}function fi(o,f,h){return o.a.parent===f.parent?o.a:h}t.layout.cluster=function(){var o=t.layout.hierarchy().sort(null).value(null),f=cp,h=[1,1],d=!1;function p(m,E){var _=o.call(this,m,E),O=_[0],I,P=0;Jn(O,function(j){var q=j.children;q&&q.length?(j.x=cg(q),j.y=hp(q)):(j.x=I?P+=f(j,I):0,j.y=0,I=j)});var $=dp(O),z=pp(O),re=$.x-f($,z)/2,oe=z.x+f(z,$)/2;return Jn(O,d?function(j){j.x=(j.x-O.x)*h[0],j.y=(O.y-j.y)*h[1]}:function(j){j.x=(j.x-re)/(oe-re)*h[0],j.y=(1-(O.y?j.y/O.y:1))*h[1]}),_}return p.separation=function(m){return arguments.length?(f=m,p):f},p.size=function(m){return arguments.length?(d=(h=m)==null,p):d?null:h},p.nodeSize=function(m){return arguments.length?(d=(h=m)!=null,p):d?h:null},to(p,o)};function hp(o){return 1+t.max(o,function(f){return f.y})}function cg(o){return o.reduce(function(f,h){return f+h.x},0)/o.length}function dp(o){var f=o.children;return f&&f.length?dp(f[0]):o}function pp(o){var f=o.children,h;return f&&(h=f.length)?pp(f[h-1]):o}t.layout.treemap=function(){var o=t.layout.hierarchy(),f=Math.round,h=[1,1],d=null,p=qs,m=!1,E,_="squarify",O=.5*(1+Math.sqrt(5));function I(j,q){for(var K=-1,ue=j.length,le,ee;++K<ue;)ee=(le=j[K]).value*(q<0?0:q),le.area=isNaN(ee)||ee<=0?0:ee}function P(j){var q=j.children;if(q&&q.length){var K=p(j),ue=[],le=q.slice(),ee,Me=1/0,Be,Je=_==="slice"?K.dx:_==="dice"?K.dy:_==="slice-dice"?j.depth&1?K.dy:K.dx:Math.min(K.dx,K.dy),$e;for(I(le,K.dx*K.dy/j.value),ue.area=0;($e=le.length)>0;)ue.push(ee=le[$e-1]),ue.area+=ee.area,_!=="squarify"||(Be=z(ue,Je))<=Me?(le.pop(),Me=Be):(ue.area-=ue.pop().area,re(ue,Je,K,!1),Je=Math.min(K.dx,K.dy),ue.length=ue.area=0,Me=1/0);ue.length&&(re(ue,Je,K,!0),ue.length=ue.area=0),q.forEach(P)}}function $(j){var q=j.children;if(q&&q.length){var K=p(j),ue=q.slice(),le,ee=[];for(I(ue,K.dx*K.dy/j.value),ee.area=0;le=ue.pop();)ee.push(le),ee.area+=le.area,le.z!=null&&(re(ee,le.z?K.dx:K.dy,K,!ue.length),ee.length=ee.area=0);q.forEach($)}}function z(j,q){for(var K=j.area,ue,le=0,ee=1/0,Me=-1,Be=j.length;++Me<Be;)(ue=j[Me].area)&&(ue<ee&&(ee=ue),ue>le&&(le=ue));return K*=K,q*=q,K?Math.max(q*le*O/K,K/(q*ee*O)):1/0}function re(j,q,K,ue){var le=-1,ee=j.length,Me=K.x,Be=K.y,Je=q?f(j.area/q):0,$e;if(q==K.dx){for((ue||Je>K.dy)&&(Je=K.dy);++le<ee;)$e=j[le],$e.x=Me,$e.y=Be,$e.dy=Je,Me+=$e.dx=Math.min(K.x+K.dx-Me,Je?f($e.area/Je):0);$e.z=!0,$e.dx+=K.x+K.dx-Me,K.y+=Je,K.dy-=Je}else{for((ue||Je>K.dx)&&(Je=K.dx);++le<ee;)$e=j[le],$e.x=Me,$e.y=Be,$e.dx=Je,Be+=$e.dy=Math.min(K.y+K.dy-Be,Je?f($e.area/Je):0);$e.z=!1,$e.dy+=K.y+K.dy-Be,K.x+=Je,K.dx-=Je}}function oe(j){var q=E||o(j),K=q[0];return K.x=K.y=0,K.value?(K.dx=h[0],K.dy=h[1]):K.dx=K.dy=0,E&&o.revalue(K),I([K],K.dx*K.dy/K.value),(E?$:P)(K),m&&(E=q),q}return oe.size=function(j){return arguments.length?(h=j,oe):h},oe.padding=function(j){if(!arguments.length)return d;function q(le){var ee=j.call(oe,le,le.depth);return ee==null?qs(le):vp(le,typeof ee=="number"?[ee,ee,ee,ee]:ee)}function K(le){return vp(le,j)}var ue;return p=(d=j)==null?qs:(ue=typeof j)=="function"?q:(ue==="number"&&(j=[j,j,j,j]),K),oe},oe.round=function(j){return arguments.length?(f=j?Math.round:Number,oe):f!=Number},oe.sticky=function(j){return arguments.length?(m=j,E=null,oe):m},oe.ratio=function(j){return arguments.length?(O=j,oe):O},oe.mode=function(j){return arguments.length?(_=j+"",oe):_},to(oe,o)};function qs(o){return{x:o.x,y:o.y,dx:o.dx,dy:o.dy}}function vp(o,f){var h=o.x+f[3],d=o.y+f[0],p=o.dx-f[1]-f[3],m=o.dy-f[0]-f[2];return p<0&&(h+=p/2,p=0),m<0&&(d+=m/2,m=0),{x:h,y:d,dx:p,dy:m}}t.random={normal:function(o,f){var h=arguments.length;return h<2&&(f=1),h<1&&(o=0),function(){var d,p,m;do d=Math.random()*2-1,p=Math.random()*2-1,m=d*d+p*p;while(!m||m>1);return o+f*d*Math.sqrt(-2*Math.log(m)/m)}},logNormal:function(){var o=t.random.normal.apply(t,arguments);return function(){return Math.exp(o())}},bates:function(o){var f=t.random.irwinHall(o);return function(){return f()/o}},irwinHall:function(o){return function(){for(var f=0,h=0;h<o;h++)f+=Math.random();return f}}},t.scale={};function Dl(o){var f=o[0],h=o[o.length-1];return f<h?[f,h]:[h,f]}function Bl(o){return o.rangeExtent?o.rangeExtent():Dl(o.range())}function hg(o,f,h,d){var p=h(o[0],o[1]),m=d(f[0],f[1]);return function(E){return m(p(E))}}function zr(o,f){var h=0,d=o.length-1,p=o[h],m=o[d],E;return m<p&&(E=h,h=d,d=E,E=p,p=m,m=E),o[h]=f.floor(p),o[d]=f.ceil(m),o}function ya(o){return o?{floor:function(f){return Math.floor(f/o)*o},ceil:function(f){return Math.ceil(f/o)*o}}:no}var no={floor:lt,ceil:lt};function dg(o,f,h,d){var p=[],m=[],E=0,_=Math.min(o.length,f.length)-1;for(o[_]<o[0]&&(o=o.slice().reverse(),f=f.slice().reverse());++E<=_;)p.push(h(o[E-1],o[E])),m.push(d(f[E-1],f[E]));return function(O){var I=t.bisect(o,O,1,_)-1;return m[I](p[I](O))}}t.scale.linear=function(){return xa([0,1],[0,1],li,!1)};function xa(o,f,h,d){var p,m;function E(){var O=Math.min(o.length,f.length)>2?dg:hg,I=d?Qd:Xd;return p=O(o,f,I,h),m=O(f,o,I,li),_}function _(O){return p(O)}return _.invert=function(O){return m(O)},_.domain=function(O){return arguments.length?(o=O.map(Number),E()):o},_.range=function(O){return arguments.length?(f=O,E()):f},_.rangeRound=function(O){return _.range(O).interpolate(Rl)},_.clamp=function(O){return arguments.length?(d=O,E()):d},_.interpolate=function(O){return arguments.length?(h=O,E()):h},_.ticks=function(O){return pu(o,O)},_.tickFormat=function(O,I){return d3_scale_linearTickFormat(o,O,I)},_.nice=function(O){return _a(o,O),E()},_.copy=function(){return xa(o,f,h,d)},E()}function Ys(o,f){return t.rebind(o,f,"range","rangeRound","interpolate","clamp")}function _a(o,f){return zr(o,ya(du(o,f)[2])),zr(o,ya(du(o,f)[2])),o}function du(o,f){f==null&&(f=10);var h=Dl(o),d=h[1]-h[0],p=Math.pow(10,Math.floor(Math.log(d/f)/Math.LN10)),m=f/d*p;return m<=.15?p*=10:m<=.35?p*=5:m<=.75&&(p*=2),h[0]=Math.ceil(h[0]/p)*p,h[1]=Math.floor(h[1]/p)*p+p*.5,h[2]=p,h}function pu(o,f){return t.range.apply(t,du(o,f))}t.scale.log=function(){return $l(t.scale.linear().domain([0,1]),10,!0,[1,10])};function $l(o,f,h,d){function p(_){return(h?Math.log(_<0?0:_):-Math.log(_>0?0:-_))/Math.log(f)}function m(_){return h?Math.pow(f,_):-Math.pow(f,-_)}function E(_){return o(p(_))}return E.invert=function(_){return m(o.invert(_))},E.domain=function(_){return arguments.length?(h=_[0]>=0,o.domain((d=_.map(Number)).map(p)),E):d},E.base=function(_){return arguments.length?(f=+_,o.domain(d.map(p)),E):f},E.nice=function(){var _=zr(d.map(p),h?Math:Xs);return o.domain(_),d=_.map(m),E},E.ticks=function(){var _=Dl(d),O=[],I=_[0],P=_[1],$=Math.floor(p(I)),z=Math.ceil(p(P)),re=f%1?2:f;if(isFinite(z-$)){if(h){for(;$<z;$++)for(var oe=1;oe<re;oe++)O.push(m($)*oe);O.push(m($))}else for(O.push(m($));$++<z;)for(var oe=re-1;oe>0;oe--)O.push(m($)*oe);for($=0;O[$]<I;$++);for(z=O.length;O[z-1]>P;z--);O=O.slice($,z)}return O},E.copy=function(){return $l(o.copy(),f,h,d)},Ys(E,o)}var Xs={floor:function(o){return-Math.ceil(-o)},ceil:function(o){return-Math.floor(-o)}};t.scale.pow=function(){return zl(t.scale.linear(),1,[0,1])};function zl(o,f,h){var d=wa(f),p=wa(1/f);function m(E){return o(d(E))}return m.invert=function(E){return p(o.invert(E))},m.domain=function(E){return arguments.length?(o.domain((h=E.map(Number)).map(d)),m):h},m.ticks=function(E){return pu(h,E)},m.tickFormat=function(E,_){return d3_scale_linearTickFormat(h,E,_)},m.nice=function(E){return m.domain(_a(h,E))},m.exponent=function(E){return arguments.length?(d=wa(f=E),p=wa(1/f),o.domain(h.map(d)),m):f},m.copy=function(){return zl(o.copy(),f,h)},Ys(m,o)}function wa(o){return function(f){return f<0?-Math.pow(-f,o):Math.pow(f,o)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Qs([],{t:"range",a:[[]]})};function Qs(o,f){var h,d,p;function m(_){return d[((h.get(_)||(f.t==="range"?h.set(_,o.push(_)):NaN))-1)%d.length]}function E(_,O){return t.range(o.length).map(function(I){return _+O*I})}return m.domain=function(_){if(!arguments.length)return o;o=[],h=new L;for(var O=-1,I=_.length,P;++O<I;)h.has(P=_[O])||h.set(P,o.push(P));return m[f.t].apply(m,f.a)},m.range=function(_){return arguments.length?(d=_,p=0,f={t:"range",a:arguments},m):d},m.rangePoints=function(_,O){arguments.length<2&&(O=0);var I=_[0],P=_[1],$=o.length<2?(I=(I+P)/2,0):(P-I)/(o.length-1+O);return d=E(I+$*O/2,$),p=0,f={t:"rangePoints",a:arguments},m},m.rangeRoundPoints=function(_,O){arguments.length<2&&(O=0);var I=_[0],P=_[1],$=o.length<2?(I=P=Math.round((I+P)/2),0):(P-I)/(o.length-1+O)|0;return d=E(I+Math.round($*O/2+(P-I-(o.length-1+O)*$)/2),$),p=0,f={t:"rangeRoundPoints",a:arguments},m},m.rangeBands=function(_,O,I){arguments.length<2&&(O=0),arguments.length<3&&(I=O);var P=_[1]<_[0],$=_[P-0],z=_[1-P],re=(z-$)/(o.length-O+2*I);return d=E($+re*I,re),P&&d.reverse(),p=re*(1-O),f={t:"rangeBands",a:arguments},m},m.rangeRoundBands=function(_,O,I){arguments.length<2&&(O=0),arguments.length<3&&(I=O);var P=_[1]<_[0],$=_[P-0],z=_[1-P],re=Math.floor((z-$)/(o.length-O+2*I));return d=E($+Math.round((z-$-(o.length-O)*re)/2),re),P&&d.reverse(),p=Math.round(re*(1-O)),f={t:"rangeRoundBands",a:arguments},m},m.rangeBand=function(){return p},m.rangeExtent=function(){return Dl(f.a[0])},m.copy=function(){return Qs(o,f)},m.domain(o)}t.scale.category10=function(){return t.scale.ordinal().range(mp)},t.scale.category20=function(){return t.scale.ordinal().range(gp)},t.scale.category20b=function(){return t.scale.ordinal().range(yp)},t.scale.category20c=function(){return t.scale.ordinal().range(xp)};var mp=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_l),gp=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_l),yp=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_l),xp=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_l);t.scale.quantile=function(){return Ul([],[])};function Ul(o,f){var h;function d(){var m=0,E=f.length;for(h=[];++m<E;)h[m-1]=t.quantile(o,m/E);return p}function p(m){if(!isNaN(m=+m))return f[t.bisect(h,m)]}return p.domain=function(m){return arguments.length?(o=m.map(g).filter(k).sort(y),d()):o},p.range=function(m){return arguments.length?(f=m,d()):f},p.quantiles=function(){return h},p.invertExtent=function(m){return m=f.indexOf(m),m<0?[NaN,NaN]:[m>0?h[m-1]:o[0],m<h.length?h[m]:o[o.length-1]]},p.copy=function(){return Ul(o,f)},d()}t.scale.quantize=function(){return jl(0,1,[0,1])};function jl(o,f,h){var d,p;function m(_){return h[Math.max(0,Math.min(p,Math.floor(d*(_-o))))]}function E(){return d=h.length/(f-o),p=h.length-1,m}return m.domain=function(_){return arguments.length?(o=+_[0],f=+_[_.length-1],E()):[o,f]},m.range=function(_){return arguments.length?(h=_,E()):h},m.invertExtent=function(_){return _=h.indexOf(_),_=_<0?NaN:_/d+o,[_,_+1/d]},m.copy=function(){return jl(o,f,h)},E()}t.scale.threshold=function(){return Zs([.5],[0,1])};function Zs(o,f){function h(d){if(d<=d)return f[t.bisect(o,d)]}return h.domain=function(d){return arguments.length?(o=d,h):o},h.range=function(d){return arguments.length?(f=d,h):f},h.invertExtent=function(d){return d=f.indexOf(d),[o[d-1],o[d]]},h.copy=function(){return Zs(o,f)},h}t.scale.identity=function(){return Ks([0,1])};function Ks(o){function f(h){return+h}return f.invert=f,f.domain=f.range=function(h){return arguments.length?(o=h.map(f),f):o},f.ticks=function(h){return pu(o,h)},f.tickFormat=function(h,d){return d3_scale_linearTickFormat(o,h,d)},f.copy=function(){return Ks(o)},f}t.svg={};function _p(){return 0}t.svg.arc=function(){var o=Js,f=wp,h=_p,d=vu,p=ec,m=Gl,E=tc;function _(){var I=Math.max(0,+o.apply(this,arguments)),P=Math.max(0,+f.apply(this,arguments)),$=p.apply(this,arguments)-ui,z=m.apply(this,arguments)-ui,re=Math.abs(z-$),oe=$>z?0:1;if(P<I&&(j=P,P=I,I=j),re>=yd)return O(P,oe)+(I?O(I,1-oe):"")+"Z";var j,q,K,ue,le=0,ee=0,Me,Be,Je,$e,it,dt,Gt,xt,zt=[];if((ue=(+E.apply(this,arguments)||0)/2)&&(K=d===vu?Math.sqrt(I*I+P*P):+d.apply(this,arguments),oe||(ee*=-1),P&&(ee=_d(K/P*Math.sin(ue))),I&&(le=_d(K/I*Math.sin(ue)))),P){Me=P*Math.cos($+ee),Be=P*Math.sin($+ee),Je=P*Math.cos(z-ee),$e=P*Math.sin(z-ee);var ir=Math.abs(z-$-2*ee)<=_i?0:1;if(ee&&mu(Me,Be,Je,$e)===oe^ir){var Tr=($+z)/2;Me=P*Math.cos(Tr),Be=P*Math.sin(Tr),Je=$e=null}}else Me=Be=0;if(I){it=I*Math.cos(z-le),dt=I*Math.sin(z-le),Gt=I*Math.cos($+le),xt=I*Math.sin($+le);var hr=Math.abs($-z+2*le)<=_i?0:1;if(le&&mu(it,dt,Gt,xt)===1-oe^hr){var et=($+z)/2;it=I*Math.cos(et),dt=I*Math.sin(et),Gt=xt=null}}else it=dt=0;if(re>nr&&(j=Math.min(Math.abs(P-I)/2,+h.apply(this,arguments)))>.001){q=I<P^oe?0:1;var Ht=j,Vt=j;if(re<_i){var ar=Gt==null?[it,dt]:Je==null?[Me,Be]:xs([Me,Be],[Gt,xt],[Je,$e],[it,dt]),wr=Me-ar[0],Pr=Be-ar[1],Wr=Je-ar[0],fn=$e-ar[1],mn=1/Math.sin(Math.acos((wr*Wr+Pr*fn)/(Math.sqrt(wr*wr+Pr*Pr)*Math.sqrt(Wr*Wr+fn*fn)))/2),Jr=Math.sqrt(ar[0]*ar[0]+ar[1]*ar[1]);Vt=Math.min(j,(I-Jr)/(mn-1)),Ht=Math.min(j,(P-Jr)/(mn+1))}if(Je!=null){var Sn=io(Gt==null?[it,dt]:[Gt,xt],[Me,Be],P,Ht,oe),F=io([Je,$e],[it,dt],P,Ht,oe);j===Ht?zt.push("M",Sn[0],"A",Ht,",",Ht," 0 0,",q," ",Sn[1],"A",P,",",P," 0 ",1-oe^mu(Sn[1][0],Sn[1][1],F[1][0],F[1][1]),",",oe," ",F[1],"A",Ht,",",Ht," 0 0,",q," ",F[0]):zt.push("M",Sn[0],"A",Ht,",",Ht," 0 1,",q," ",F[0])}else zt.push("M",Me,",",Be);if(Gt!=null){var H=io([Me,Be],[Gt,xt],I,-Vt,oe),Z=io([it,dt],Je==null?[Me,Be]:[Je,$e],I,-Vt,oe);j===Vt?zt.push("L",Z[0],"A",Vt,",",Vt," 0 0,",q," ",Z[1],"A",I,",",I," 0 ",oe^mu(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Vt,",",Vt," 0 0,",q," ",H[0]):zt.push("L",Z[0],"A",Vt,",",Vt," 0 0,",q," ",H[0])}else zt.push("L",it,",",dt)}else zt.push("M",Me,",",Be),Je!=null&&zt.push("A",P,",",P," 0 ",ir,",",oe," ",Je,",",$e),zt.push("L",it,",",dt),Gt!=null&&zt.push("A",I,",",I," 0 ",hr,",",1-oe," ",Gt,",",xt);return zt.push("Z"),zt.join("")}function O(I,P){return"M0,"+I+"A"+I+","+I+" 0 1,"+P+" 0,"+-I+"A"+I+","+I+" 0 1,"+P+" 0,"+I}return _.innerRadius=function(I){return arguments.length?(o=vr(I),_):o},_.outerRadius=function(I){return arguments.length?(f=vr(I),_):f},_.cornerRadius=function(I){return arguments.length?(h=vr(I),_):h},_.padRadius=function(I){return arguments.length?(d=I==vu?vu:vr(I),_):d},_.startAngle=function(I){return arguments.length?(p=vr(I),_):p},_.endAngle=function(I){return arguments.length?(m=vr(I),_):m},_.padAngle=function(I){return arguments.length?(E=vr(I),_):E},_.centroid=function(){var I=(+o.apply(this,arguments)+ +f.apply(this,arguments))/2,P=(+p.apply(this,arguments)+ +m.apply(this,arguments))/2-ui;return[Math.cos(P)*I,Math.sin(P)*I]},_};var vu="auto";function Js(o){return o.innerRadius}function wp(o){return o.outerRadius}function ec(o){return o.startAngle}function Gl(o){return o.endAngle}function tc(o){return o&&o.padAngle}function mu(o,f,h,d){return(o-h)*f-(f-d)*o>0?0:1}function io(o,f,h,d,p){var m=o[0]-f[0],E=o[1]-f[1],_=(p?d:-d)/Math.sqrt(m*m+E*E),O=_*E,I=-_*m,P=o[0]+O,$=o[1]+I,z=f[0]+O,re=f[1]+I,oe=(P+z)/2,j=($+re)/2,q=z-P,K=re-$,ue=q*q+K*K,le=h-d,ee=P*re-z*$,Me=(K<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-ee*ee)),Be=(ee*K-q*Me)/ue,Je=(-ee*q-K*Me)/ue,$e=(ee*K+q*Me)/ue,it=(-ee*q+K*Me)/ue,dt=Be-oe,Gt=Je-j,xt=$e-oe,zt=it-j;return dt*dt+Gt*Gt>xt*xt+zt*zt&&(Be=$e,Je=it),[[Be-O,Je-I],[Be*h/le,Je*h/le]]}function rc(){return!0}function nc(o){var f=wi,h=bi,d=rc,p=Dn,m=p.key,E=.7;function _(O){var I=[],P=[],$=-1,z=O.length,re,oe=vr(f),j=vr(h);function q(){I.push("M",p(o(P),E))}for(;++$<z;)d.call(this,re=O[$],$)?P.push([+oe.call(this,re,$),+j.call(this,re,$)]):P.length&&(q(),P=[]);return P.length&&q(),I.length?I.join(""):null}return _.x=function(O){return arguments.length?(f=O,_):f},_.y=function(O){return arguments.length?(h=O,_):h},_.defined=function(O){return arguments.length?(d=O,_):d},_.interpolate=function(O){return arguments.length?(typeof O=="function"?m=p=O:m=(p=gu.get(O)||Dn).key,_):m},_.tension=function(O){return arguments.length?(E=O,_):E},_}t.svg.line=function(){return nc(lt)};var gu=t.map({linear:Dn,"linear-closed":ic,step:ac,"step-before":yu,"step-after":ba,basis:xu,"basis-open":Wl,"basis-closed":ao,bundle:oo,cardinal:Ti,"cardinal-open":bp,"cardinal-closed":Hl,monotone:pg});gu.forEach(function(o,f){f.key=o,f.closed=/-closed$/.test(o)});function Dn(o){return o.length>1?o.join("L"):o+"Z"}function ic(o){return o.join("L")+"Z"}function ac(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("H",(d[0]+(d=o[f])[0])/2,"V",d[1]);return h>1&&p.push("H",d[0]),p.join("")}function yu(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("V",(d=o[f])[1],"H",d[0]);return p.join("")}function ba(o){for(var f=0,h=o.length,d=o[0],p=[d[0],",",d[1]];++f<h;)p.push("H",(d=o[f])[0],"V",d[1]);return p.join("")}function bp(o,f){return o.length<4?Dn(o):o[1]+Sa(o.slice(1,-1),Gi(o,f))}function Hl(o,f){return o.length<3?ic(o):o[0]+Sa((o.push(o[0]),o),Gi([o[o.length-2]].concat(o,[o[1]]),f))}function Ti(o,f){return o.length<3?Dn(o):o[0]+Sa(o,Gi(o,f))}function Sa(o,f){if(f.length<1||o.length!=f.length&&o.length!=f.length+2)return Dn(o);var h=o.length!=f.length,d="",p=o[0],m=o[1],E=f[0],_=E,O=1;if(h&&(d+="Q"+(m[0]-E[0]*2/3)+","+(m[1]-E[1]*2/3)+","+m[0]+","+m[1],p=o[1],O=2),f.length>1){_=f[1],m=o[O],O++,d+="C"+(p[0]+E[0])+","+(p[1]+E[1])+","+(m[0]-_[0])+","+(m[1]-_[1])+","+m[0]+","+m[1];for(var I=2;I<f.length;I++,O++)m=o[O],_=f[I],d+="S"+(m[0]-_[0])+","+(m[1]-_[1])+","+m[0]+","+m[1]}if(h){var P=o[O];d+="Q"+(m[0]+_[0]*2/3)+","+(m[1]+_[1]*2/3)+","+P[0]+","+P[1]}return d}function Gi(o,f){for(var h=[],d=(1-f)/2,p,m=o[0],E=o[1],_=1,O=o.length;++_<O;)p=m,m=E,E=o[_],h.push([d*(E[0]-p[0]),d*(E[1]-p[1])]);return h}function xu(o){if(o.length<3)return Dn(o);var f=1,h=o.length,d=o[0],p=d[0],m=d[1],E=[p,p,p,(d=o[1])[0]],_=[m,m,m,d[1]],O=[p,",",m,"L",Kr(ei,E),",",Kr(ei,_)];for(o.push(o[h-1]);++f<=h;)d=o[f],E.shift(),E.push(d[0]),_.shift(),_.push(d[1]),_u(O,E,_);return o.pop(),O.push("L",d),O.join("")}function Wl(o){if(o.length<4)return Dn(o);for(var f=[],h=-1,d=o.length,p,m=[0],E=[0];++h<3;)p=o[h],m.push(p[0]),E.push(p[1]);for(f.push(Kr(ei,m)+","+Kr(ei,E)),--h;++h<d;)p=o[h],m.shift(),m.push(p[0]),E.shift(),E.push(p[1]),_u(f,m,E);return f.join("")}function ao(o){for(var f,h=-1,d=o.length,p=d+4,m,E=[],_=[];++h<4;)m=o[h%d],E.push(m[0]),_.push(m[1]);for(f=[Kr(ei,E),",",Kr(ei,_)],--h;++h<p;)m=o[h%d],E.shift(),E.push(m[0]),_.shift(),_.push(m[1]),_u(f,E,_);return f.join("")}function oo(o,f){var h=o.length-1;if(h)for(var d=o[0][0],p=o[0][1],m=o[h][0]-d,E=o[h][1]-p,_=-1,O,I;++_<=h;)O=o[_],I=_/h,O[0]=f*O[0]+(1-f)*(d+I*m),O[1]=f*O[1]+(1-f)*(p+I*E);return xu(o)}function Kr(o,f){return o[0]*f[0]+o[1]*f[1]+o[2]*f[2]+o[3]*f[3]}var Vl=[0,2/3,1/3,0],ql=[0,1/3,2/3,0],ei=[0,1/6,2/3,1/6];function _u(o,f,h){o.push("C",Kr(Vl,f),",",Kr(Vl,h),",",Kr(ql,f),",",Kr(ql,h),",",Kr(ei,f),",",Kr(ei,h))}function wu(o,f){return(f[1]-o[1])/(f[0]-o[0])}function uo(o){for(var f=0,h=o.length-1,d=[],p=o[0],m=o[1],E=d[0]=wu(p,m);++f<h;)d[f]=(E+(E=wu(p=m,m=o[f+1])))/2;return d[f]=E,d}function lo(o){for(var f=[],h,d,p,m,E=uo(o),_=-1,O=o.length-1;++_<O;)h=wu(o[_],o[_+1]),A(h)<nr?E[_]=E[_+1]=0:(d=E[_]/h,p=E[_+1]/h,m=d*d+p*p,m>9&&(m=h*3/Math.sqrt(m),E[_]=m*d,E[_+1]=m*p));for(_=-1;++_<=O;)m=(o[Math.min(O,_+1)][0]-o[Math.max(0,_-1)][0])/(6*(1+E[_]*E[_])),f.push([m||0,E[_]*m||0]);return f}function pg(o){return o.length<3?Dn(o):o[0]+Sa(o,lo(o))}t.svg.line.radial=function(){var o=nc(Sp);return o.radius=o.x,delete o.x,o.angle=o.y,delete o.y,o};function Sp(o){for(var f,h=-1,d=o.length,p,m;++h<d;)f=o[h],p=f[0],m=f[1]-ui,f[0]=p*Math.cos(m),f[1]=p*Math.sin(m);return o}function oc(o){var f=wi,h=wi,d=0,p=bi,m=rc,E=Dn,_=E.key,O=E,I="L",P=.7;function $(z){var re=[],oe=[],j=[],q=-1,K=z.length,ue,le=vr(f),ee=vr(d),Me=f===h?function(){return Je}:vr(h),Be=d===p?function(){return $e}:vr(p),Je,$e;function it(){re.push("M",E(o(j),P),I,O(o(oe.reverse()),P),"Z")}for(;++q<K;)m.call(this,ue=z[q],q)?(oe.push([Je=+le.call(this,ue,q),$e=+ee.call(this,ue,q)]),j.push([+Me.call(this,ue,q),+Be.call(this,ue,q)])):oe.length&&(it(),oe=[],j=[]);return oe.length&&it(),re.length?re.join(""):null}return $.x=function(z){return arguments.length?(f=h=z,$):h},$.x0=function(z){return arguments.length?(f=z,$):f},$.x1=function(z){return arguments.length?(h=z,$):h},$.y=function(z){return arguments.length?(d=p=z,$):p},$.y0=function(z){return arguments.length?(d=z,$):d},$.y1=function(z){return arguments.length?(p=z,$):p},$.defined=function(z){return arguments.length?(m=z,$):m},$.interpolate=function(z){return arguments.length?(typeof z=="function"?_=E=z:_=(E=gu.get(z)||Dn).key,O=E.reverse||E,I=E.closed?"M":"L",$):_},$.tension=function(z){return arguments.length?(P=z,$):P},$}yu.reverse=ba,ba.reverse=yu,t.svg.area=function(){return oc(lt)},t.svg.area.radial=function(){var o=oc(Sp);return o.radius=o.x,delete o.x,o.innerRadius=o.x0,delete o.x0,o.outerRadius=o.x1,delete o.x1,o.angle=o.y,delete o.y,o.startAngle=o.y0,delete o.y0,o.endAngle=o.y1,delete o.y1,o};function uc(o){return o.source}function lc(o){return o.target}t.svg.chord=function(){var o=uc,f=lc,h=vg,d=ec,p=Gl;function m(P,$){var z=E(this,o,P,$),re=E(this,f,P,$);return"M"+z.p0+O(z.r,z.p1,z.a1-z.a0)+(_(z,re)?I(z.r,z.p1,z.r,z.p0):I(z.r,z.p1,re.r,re.p0)+O(re.r,re.p1,re.a1-re.a0)+I(re.r,re.p1,z.r,z.p0))+"Z"}function E(P,$,z,re){var oe=$.call(P,z,re),j=h.call(P,oe,re),q=d.call(P,oe,re)-ui,K=p.call(P,oe,re)-ui;return{r:j,a0:q,a1:K,p0:[j*Math.cos(q),j*Math.sin(q)],p1:[j*Math.cos(K),j*Math.sin(K)]}}function _(P,$){return P.a0==$.a0&&P.a1==$.a1}function O(P,$,z){return"A"+P+","+P+" 0 "+ +(z>_i)+",1 "+$}function I(P,$,z,re){return"Q 0,0 "+re}return m.radius=function(P){return arguments.length?(h=vr(P),m):h},m.source=function(P){return arguments.length?(o=vr(P),m):o},m.target=function(P){return arguments.length?(f=vr(P),m):f},m.startAngle=function(P){return arguments.length?(d=vr(P),m):d},m.endAngle=function(P){return arguments.length?(p=vr(P),m):p},m};function vg(o){return o.radius}t.svg.diagonal=function(){var o=uc,f=lc,h=Ea;function d(p,m){var E=o.call(this,p,m),_=f.call(this,p,m),O=(E.y+_.y)/2,I=[E,{x:E.x,y:O},{x:_.x,y:O},_];return I=I.map(h),"M"+I[0]+"C"+I[1]+" "+I[2]+" "+I[3]}return d.source=function(p){return arguments.length?(o=vr(p),d):o},d.target=function(p){return arguments.length?(f=vr(p),d):f},d.projection=function(p){return arguments.length?(h=p,d):h},d};function Ea(o){return[o.x,o.y]}t.svg.diagonal.radial=function(){var o=t.svg.diagonal(),f=Ea,h=o.projection;return o.projection=function(d){return arguments.length?h(fc(f=d)):f},o};function fc(o){return function(){var f=o.apply(this,arguments),h=f[0],d=f[1]-ui;return[h*Math.cos(d),h*Math.sin(d)]}}t.svg.symbol=function(){var o=gg,f=mg;function h(d,p){return(Ap.get(o.call(this,d,p))||Ep)(f.call(this,d,p))}return h.type=function(d){return arguments.length?(o=vr(d),h):o},h.size=function(d){return arguments.length?(f=vr(d),h):f},h};function mg(){return 64}function gg(){return"circle"}function Ep(o){var f=Math.sqrt(o/_i);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var Ap=t.map({circle:Ep,cross:function(o){var f=Math.sqrt(o/5)/2;return"M"+-3*f+","+-f+"H"+-f+"V"+-3*f+"H"+f+"V"+-f+"H"+3*f+"V"+f+"H"+f+"V"+3*f+"H"+-f+"V"+f+"H"+-3*f+"Z"},diamond:function(o){var f=Math.sqrt(o/(2*Tp)),h=f*Tp;return"M0,"+-f+"L"+h+",0 0,"+f+" "+-h+",0Z"},square:function(o){var f=Math.sqrt(o)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(o){var f=Math.sqrt(o/Yl),h=f*Yl/2;return"M0,"+h+"L"+f+","+-h+" "+-f+","+-h+"Z"},"triangle-up":function(o){var f=Math.sqrt(o/Yl),h=f*Yl/2;return"M0,"+-h+"L"+f+","+h+" "+-f+","+h+"Z"}});t.svg.symbolTypes=Ap.keys();var Yl=Math.sqrt(3),Tp=Math.tan(30*xd);Ae.transition=function(o){for(var f=Ci||++Ql,h=Su(o),d=[],p,m,E=fo||{time:Date.now(),ease:Ja,delay:0,duration:250},_=-1,O=this.length;++_<O;){d.push(p=[]);for(var I=this[_],P=-1,$=I.length;++P<$;)(m=I[P])&&so(m,P,h,f,E),p.push(m)}return bu(d,h,f)},Ae.interrupt=function(o){return this.each(o==null?Xl:Cp(Su(o)))};var Xl=Cp(Su());function Cp(o){return function(){var f,h,d;(f=this[o])&&(d=f[h=f.active])&&(d.timer.c=null,d.timer.t=NaN,--f.count?delete f[h]:delete this[o],f.active+=.5,d.event&&d.event.interrupt.call(this,this.__data__,d.index))}}function bu(o,f,h){return Yt(o,Ir),o.namespace=f,o.id=h,o}var Ir=[],Ql=0,Ci,fo;Ir.call=Ae.call,Ir.empty=Ae.empty,Ir.node=Ae.node,Ir.size=Ae.size,t.transition=function(o,f){return o&&o.transition?Ci?o.transition(f):o:t.selection().transition(o)},t.transition.prototype=Ir,Ir.select=function(o){var f=this.id,h=this.namespace,d=[],p,m,E;o=G(o);for(var _=-1,O=this.length;++_<O;){d.push(p=[]);for(var I=this[_],P=-1,$=I.length;++P<$;)(E=I[P])&&(m=o.call(E,E.__data__,P,_))?("__data__"in E&&(m.__data__=E.__data__),so(m,P,h,f,E[h][f]),p.push(m)):p.push(null)}return bu(d,h,f)},Ir.selectAll=function(o){var f=this.id,h=this.namespace,d=[],p,m,E,_,O;o=ie(o);for(var I=-1,P=this.length;++I<P;)for(var $=this[I],z=-1,re=$.length;++z<re;)if(E=$[z]){O=E[h][f],m=o.call(E,E.__data__,z,I),d.push(p=[]);for(var oe=-1,j=m.length;++oe<j;)(_=m[oe])&&so(_,oe,h,f,O),p.push(_)}return bu(d,h,f)},Ir.filter=function(o){var f=[],h,d,p;typeof o!="function"&&(o=Zo(o));for(var m=0,E=this.length;m<E;m++){f.push(h=[]);for(var d=this[m],_=0,O=d.length;_<O;_++)(p=d[_])&&o.call(p,p.__data__,_,m)&&h.push(p)}return bu(f,this.namespace,this.id)},Ir.tween=function(o,f){var h=this.id,d=this.namespace;return arguments.length<2?this.node()[d][h].tween.get(o):oi(this,f==null?function(p){p[d][h].tween.remove(o)}:function(p){p[d][h].tween.set(o,f)})};function Zl(o,f,h,d){var p=o.id,m=o.namespace;return oi(o,typeof h=="function"?function(E,_,O){E[m][p].tween.set(f,d(h.call(E,E.__data__,_,O)))}:(h=d(h),function(E){E[m][p].tween.set(f,h)}))}Ir.attr=function(o,f){if(arguments.length<2){for(f in o)this.attr(f,o[f]);return this}var h=o=="transform"?Ps:li,d=t.ns.qualify(o);function p(){this.removeAttribute(d)}function m(){this.removeAttributeNS(d.space,d.local)}function E(O){return O==null?p:(O+="",function(){var I=this.getAttribute(d),P;return I!==O&&(P=h(I,O),function($){this.setAttribute(d,P($))})})}function _(O){return O==null?m:(O+="",function(){var I=this.getAttributeNS(d.space,d.local),P;return I!==O&&(P=h(I,O),function($){this.setAttributeNS(d.space,d.local,P($))})})}return Zl(this,"attr."+o,f,d.local?_:E)},Ir.attrTween=function(o,f){var h=t.ns.qualify(o);function d(m,E){var _=f.call(this,m,E,this.getAttribute(h));return _&&function(O){this.setAttribute(h,_(O))}}function p(m,E){var _=f.call(this,m,E,this.getAttributeNS(h.space,h.local));return _&&function(O){this.setAttributeNS(h.space,h.local,_(O))}}return this.tween("attr."+o,h.local?p:d)},Ir.style=function(o,f,h){var d=arguments.length;if(d<3){if(typeof o!="string"){d<2&&(f="");for(h in o)this.style(h,o[h],f);return this}h=""}function p(){this.style.removeProperty(o)}function m(E){return E==null?p:(E+="",function(){var _=u(this).getComputedStyle(this,null).getPropertyValue(o),O;return _!==E&&(O=li(_,E),function(I){this.style.setProperty(o,O(I),h)})})}return Zl(this,"style."+o,f,m)},Ir.styleTween=function(o,f,h){arguments.length<3&&(h="");function d(p,m){var E=f.call(this,p,m,u(this).getComputedStyle(this,null).getPropertyValue(o));return E&&function(_){this.style.setProperty(o,E(_),h)}}return this.tween("style."+o,d)},Ir.text=function(o){return Zl(this,"text",o,sc)};function sc(o){return o==null&&(o=""),function(){this.textContent=o}}Ir.remove=function(){var o=this.namespace;return this.each("end.transition",function(){var f;this[o].count<2&&(f=this.parentNode)&&f.removeChild(this)})},Ir.ease=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].ease:(typeof o!="function"&&(o=t.ease.apply(t,arguments)),oi(this,function(d){d[h][f].ease=o}))},Ir.delay=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].delay:oi(this,typeof o=="function"?function(d,p,m){d[h][f].delay=+o.call(d,d.__data__,p,m)}:(o=+o,function(d){d[h][f].delay=o}))},Ir.duration=function(o){var f=this.id,h=this.namespace;return arguments.length<1?this.node()[h][f].duration:oi(this,typeof o=="function"?function(d,p,m){d[h][f].duration=Math.max(1,o.call(d,d.__data__,p,m))}:(o=Math.max(1,o),function(d){d[h][f].duration=o}))},Ir.each=function(o,f){var h=this.id,d=this.namespace;if(arguments.length<2){var p=fo,m=Ci;try{Ci=h,oi(this,function(E,_,O){fo=E[d][h],o.call(E,E.__data__,_,O)})}finally{fo=p,Ci=m}}else oi(this,function(E){var _=E[d][h];(_.event||(_.event=t.dispatch("start","end","interrupt"))).on(o,f)});return this},Ir.transition=function(){for(var o=this.id,f=++Ql,h=this.namespace,d=[],p,m,E,_,O=0,I=this.length;O<I;O++){d.push(p=[]);for(var m=this[O],P=0,$=m.length;P<$;P++)(E=m[P])&&(_=E[h][o],so(E,P,h,f,{time:_.time,ease:_.ease,delay:_.delay+_.duration,duration:_.duration})),p.push(E)}return bu(d,h,f)};function Su(o){return o==null?"__transition__":"__transition_"+o+"__"}function so(o,f,h,d,p){var m=o[h]||(o[h]={active:0,count:0}),E=m[d],_,O,I,P,$;function z(j){var q=E.delay;if(O.t=q+_,q<=j)return re(j-q);O.c=re}function re(j){var q=m.active,K=m[q];K&&(K.timer.c=null,K.timer.t=NaN,--m.count,delete m[q],K.event&&K.event.interrupt.call(o,o.__data__,K.index));for(var ue in m)if(+ue<d){var le=m[ue];le.timer.c=null,le.timer.t=NaN,--m.count,delete m[ue]}O.c=oe,qa(function(){return O.c&&oe(j||1)&&(O.c=null,O.t=NaN),1},0,_),m.active=d,E.event&&E.event.start.call(o,o.__data__,f),$=[],E.tween.forEach(function(ee,Me){(Me=Me.call(o,o.__data__,f))&&$.push(Me)}),P=E.ease,I=E.duration}function oe(j){for(var q=j/I,K=P(q),ue=$.length;ue>0;)$[--ue].call(o,K);if(q>=1)return E.event&&E.event.end.call(o,o.__data__,f),--m.count?delete m[d]:delete o[h],1}E||(_=p.time,O=qa(z,0,_),E=m[d]={tween:new L,time:_,timer:O,delay:p.delay,duration:p.duration,ease:p.ease,index:f},p=null,++m.count)}t.svg.axis=function(){var o=t.scale.linear(),f=cc,h=6,d=6,p=3,m=[10],E=null,_;function O(I){I.each(function(){var P=t.select(this),$=this.__chart__||o,z=this.__chart__=o.copy(),re=E??(z.ticks?z.ticks.apply(z,m):z.domain()),oe=_??(z.tickFormat?z.tickFormat.apply(z,m):lt),j=P.selectAll(".tick").data(re,z),q=j.enter().insert("g",".domain").attr("class","tick").style("opacity",nr),K=t.transition(j.exit()).style("opacity",nr).remove(),ue=t.transition(j.order()).style("opacity",1),le=Math.max(h,0)+p,ee,Me=Bl(z),Be=P.selectAll(".domain").data([0]),Je=(Be.enter().append("path").attr("class","domain"),t.transition(Be));q.append("line"),q.append("text");var $e=q.select("line"),it=ue.select("line"),dt=j.select("text").text(oe),Gt=q.select("text"),xt=ue.select("text"),zt=f==="top"||f==="left"?-1:1,ir,Tr,hr,et;if(f==="bottom"||f==="top"?(ee=dc,ir="x",hr="y",Tr="x2",et="y2",dt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),Je.attr("d","M"+Me[0]+","+zt*d+"V0H"+Me[1]+"V"+zt*d)):(ee=pc,ir="y",hr="x",Tr="y2",et="x2",dt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),Je.attr("d","M"+zt*d+","+Me[0]+"H0V"+Me[1]+"H"+zt*d)),$e.attr(et,zt*h),Gt.attr(hr,zt*le),it.attr(Tr,0).attr(et,zt*h),xt.attr(ir,0).attr(hr,zt*le),z.rangeBand){var Ht=z,Vt=Ht.rangeBand()/2;$=z=function(ar){return Ht(ar)+Vt}}else $.rangeBand?$=z:K.call(ee,z,$);q.call(ee,$,z),ue.call(ee,z,z)})}return O.scale=function(I){return arguments.length?(o=I,O):o},O.orient=function(I){return arguments.length?(f=I in hc?I+"":cc,O):f},O.ticks=function(){return arguments.length?(m=n(arguments),O):m},O.tickValues=function(I){return arguments.length?(E=I,O):E},O.tickFormat=function(I){return arguments.length?(_=I,O):_},O.tickSize=function(I){var P=arguments.length;return P?(h=+I,d=+arguments[P-1],O):h},O.innerTickSize=function(I){return arguments.length?(h=+I,O):h},O.outerTickSize=function(I){return arguments.length?(d=+I,O):d},O.tickPadding=function(I){return arguments.length?(p=+I,O):p},O.tickSubdivide=function(){return arguments.length&&O},O};var cc="bottom",hc={top:1,right:1,bottom:1,left:1};function dc(o,f,h){o.attr("transform",function(d){var p=f(d);return"translate("+(isFinite(p)?p:h(d))+",0)"})}function pc(o,f,h){o.attr("transform",function(d){var p=f(d);return"translate(0,"+(isFinite(p)?p:h(d))+")"})}t.svg.brush=function(){var o=yt(P,"brushstart","brush","brushend"),f=null,h=null,d=[0,0],p=[0,0],m,E,_=!0,O=!0,I=Eu[0];function P(j){j.each(function(){var q=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),K=q.selectAll(".background").data([0]);K.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),q.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=q.selectAll(".resize").data(I,lt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Be){return"resize "+Be}).style("cursor",function(Be){return vc[Be]}).append("rect").attr("x",function(Be){return/[ew]$/.test(Be)?-3:null}).attr("y",function(Be){return/^[ns]/.test(Be)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",P.empty()?"none":null);var le=t.transition(q),ee=t.transition(K),Me;f&&(Me=Bl(f),ee.attr("x",Me[0]).attr("width",Me[1]-Me[0]),z(le)),h&&(Me=Bl(h),ee.attr("y",Me[0]).attr("height",Me[1]-Me[0]),re(le)),$(le)})}P.event=function(j){j.each(function(){var q=o.of(this,arguments),K={x:d,y:p,i:m,j:E},ue=this.__chart__||K;this.__chart__=K,Ci?t.select(this).transition().each("start.brush",function(){m=ue.i,E=ue.j,d=ue.x,p=ue.y,q({type:"brushstart"})}).tween("brush:brush",function(){var le=bn(d,K.x),ee=bn(p,K.y);return m=E=null,function(Me){d=K.x=le(Me),p=K.y=ee(Me),q({type:"brush",mode:"resize"})}}).each("end.brush",function(){m=K.i,E=K.j,q({type:"brush",mode:"resize"}),q({type:"brushend"})}):(q({type:"brushstart"}),q({type:"brush",mode:"resize"}),q({type:"brushend"}))})};function $(j){j.selectAll(".resize").attr("transform",function(q){return"translate("+d[+/e$/.test(q)]+","+p[+/^s/.test(q)]+")"})}function z(j){j.select(".extent").attr("x",d[0]),j.selectAll(".extent,.n>rect,.s>rect").attr("width",d[1]-d[0])}function re(j){j.select(".extent").attr("y",p[0]),j.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function oe(){var j=this,q=t.select(t.event.target),K=o.of(j,arguments),ue=t.select(j),le=q.datum(),ee=!/^(n|s)$/.test(le)&&f,Me=!/^(e|w)$/.test(le)&&h,Be=q.classed("extent"),Je=ml(j),$e,it=t.mouse(j),dt,Gt=t.select(u(j)).on("keydown.brush",ir).on("keyup.brush",Tr);if(t.event.changedTouches?Gt.on("touchmove.brush",hr).on("touchend.brush",Ht):Gt.on("mousemove.brush",hr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),Be)it[0]=d[0]-it[0],it[1]=p[0]-it[1];else if(le){var xt=+/w$/.test(le),zt=+/^n/.test(le);dt=[d[1-xt]-it[0],p[1-zt]-it[1]],it[0]=d[xt],it[1]=p[zt]}else t.event.altKey&&($e=it.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",q.style("cursor")),K({type:"brushstart"}),hr();function ir(){t.event.keyCode==32&&(Be||($e=null,it[0]-=d[1],it[1]-=p[1],Be=2),ct())}function Tr(){t.event.keyCode==32&&Be==2&&(it[0]+=d[1],it[1]+=p[1],Be=0,ct())}function hr(){var Vt=t.mouse(j),ar=!1;dt&&(Vt[0]+=dt[0],Vt[1]+=dt[1]),Be||(t.event.altKey?($e||($e=[(d[0]+d[1])/2,(p[0]+p[1])/2]),it[0]=d[+(Vt[0]<$e[0])],it[1]=p[+(Vt[1]<$e[1])]):$e=null),ee&&et(Vt,f,0)&&(z(ue),ar=!0),Me&&et(Vt,h,1)&&(re(ue),ar=!0),ar&&($(ue),K({type:"brush",mode:Be?"move":"resize"}))}function et(Vt,ar,wr){var Pr=Bl(ar),Wr=Pr[0],fn=Pr[1],mn=it[wr],Jr=wr?p:d,Sn=Jr[1]-Jr[0],F,H;if(Be&&(Wr-=mn,fn-=Sn+mn),F=(wr?O:_)?Math.max(Wr,Math.min(fn,Vt[wr])):Vt[wr],Be?H=(F+=mn)+Sn:($e&&(mn=Math.max(Wr,Math.min(fn,2*$e[wr]-F))),mn<F?(H=F,F=mn):H=mn),Jr[0]!=F||Jr[1]!=H)return wr?E=null:m=null,Jr[0]=F,Jr[1]=H,!0}function Ht(){hr(),ue.style("pointer-events","all").selectAll(".resize").style("display",P.empty()?"none":null),t.select("body").style("cursor",null),Gt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Je(),K({type:"brushend"})}}return P.x=function(j){return arguments.length?(f=j,I=Eu[!f<<1|!h],P):f},P.y=function(j){return arguments.length?(h=j,I=Eu[!f<<1|!h],P):h},P.clamp=function(j){return arguments.length?(f&&h?(_=!!j[0],O=!!j[1]):f?_=!!j:h&&(O=!!j),P):f&&h?[_,O]:f?_:h?O:null},P.extent=function(j){var q,K,ue,le,ee;return arguments.length?(f&&(q=j[0],K=j[1],h&&(q=q[0],K=K[0]),m=[q,K],f.invert&&(q=f(q),K=f(K)),K<q&&(ee=q,q=K,K=ee),(q!=d[0]||K!=d[1])&&(d=[q,K])),h&&(ue=j[0],le=j[1],f&&(ue=ue[1],le=le[1]),E=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(ee=ue,ue=le,le=ee),(ue!=p[0]||le!=p[1])&&(p=[ue,le])),P):(f&&(m?(q=m[0],K=m[1]):(q=d[0],K=d[1],f.invert&&(q=f.invert(q),K=f.invert(K)),K<q&&(ee=q,q=K,K=ee))),h&&(E?(ue=E[0],le=E[1]):(ue=p[0],le=p[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(ee=ue,ue=le,le=ee))),f&&h?[[q,ue],[K,le]]:f?[q,K]:h&&[ue,le])},P.clear=function(){return P.empty()||(d=[0,0],p=[0,0],m=E=null),P},P.empty=function(){return!!f&&d[0]==d[1]||!!h&&p[0]==p[1]},t.rebind(P,o,"on")};var vc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Eu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=ys(function(o){return o.responseText}),t.json=function(o,f){return bl(o,"application/json",mc,f)};function mc(o){return JSON.parse(o.responseText)}t.html=function(o,f){return bl(o,"text/html",gc,f)};function gc(o){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(o.responseText)}t.xml=ys(function(o){return o.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(k7);var c1=new Date,h1=new Date;function ln(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var u=i(a),l=i.ceil(a);return a-u<l-a?u:l},i.offset=function(a,u){return t(a=new Date(+a),u==null?1:Math.floor(u)),a},i.range=function(a,u,l){var s=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<u)||!(l>0))return s;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<u);return s},i.filter=function(a){return ln(function(u){if(u>=u)for(;e(u),!a(u);)u.setTime(u-1)},function(u,l){if(u>=u)if(l<0)for(;++l<=0;)for(;t(u,-1),!a(u););else for(;--l>=0;)for(;t(u,1),!a(u););})},r&&(i.count=function(a,u){return c1.setTime(+a),h1.setTime(+u),e(c1),e(h1),Math.floor(r(c1,h1))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(u){return n(u)%a===0}:function(u){return i.count(0,u)%a===0}):i}),i}var kv=ln(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});kv.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ln(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):kv};const aA=kv;var oA=kv.range,Ov=1e3,Xu=6e4,Mv=36e5,D4=864e5,B4=6048e5,$4=ln(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ov)},function(e,t){return(t-e)/Ov},function(e){return e.getUTCSeconds()});const uA=$4;var lA=$4.range,z4=ln(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ov)},function(e,t){e.setTime(+e+t*Xu)},function(e,t){return(t-e)/Xu},function(e){return e.getMinutes()});const O7=z4;var M7=z4.range,U4=ln(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ov-e.getMinutes()*Xu)},function(e,t){e.setTime(+e+t*Mv)},function(e,t){return(t-e)/Mv},function(e){return e.getHours()});const F7=U4;var N7=U4.range,j4=ln(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xu)/D4},function(e){return e.getDate()-1});const _w=j4;var R7=j4.range;function sl(e){return ln(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Xu)/B4})}var Fv=sl(0),Gh=sl(1),G4=sl(2),H4=sl(3),Qu=sl(4),W4=sl(5),V4=sl(6),fA=Fv.range,I7=Gh.range,P7=G4.range,L7=H4.range,D7=Qu.range,B7=W4.range,$7=V4.range,q4=ln(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const z7=q4;var U7=q4.range,ww=ln(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ww.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ln(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const Vf=ww;var j7=ww.range,Y4=ln(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Xu)},function(e,t){return(t-e)/Xu},function(e){return e.getUTCMinutes()});const G7=Y4;var H7=Y4.range,X4=ln(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Mv)},function(e,t){return(t-e)/Mv},function(e){return e.getUTCHours()});const W7=X4;var V7=X4.range,Q4=ln(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/D4},function(e){return e.getUTCDate()-1});const bw=Q4;var q7=Q4.range;function cl(e){return ln(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/B4})}var Nv=cl(0),Hh=cl(1),Z4=cl(2),K4=cl(3),Zu=cl(4),J4=cl(5),eO=cl(6),sA=Nv.range,Y7=Hh.range,X7=Z4.range,Q7=K4.range,Z7=Zu.range,K7=J4.range,J7=eO.range,tO=ln(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const e$=tO;var t$=tO.range,Sw=ln(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Sw.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ln(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const qf=Sw;var r$=Sw.range;const n$=Object.freeze(Object.defineProperty({__proto__:null,timeDay:_w,timeDays:R7,timeFriday:W4,timeFridays:B7,timeHour:F7,timeHours:N7,timeInterval:ln,timeMillisecond:aA,timeMilliseconds:oA,timeMinute:O7,timeMinutes:M7,timeMonday:Gh,timeMondays:I7,timeMonth:z7,timeMonths:U7,timeSaturday:V4,timeSaturdays:$7,timeSecond:uA,timeSeconds:lA,timeSunday:Fv,timeSundays:fA,timeThursday:Qu,timeThursdays:D7,timeTuesday:G4,timeTuesdays:P7,timeWednesday:H4,timeWednesdays:L7,timeWeek:Fv,timeWeeks:fA,timeYear:Vf,timeYears:j7,utcDay:bw,utcDays:q7,utcFriday:J4,utcFridays:K7,utcHour:W7,utcHours:V7,utcMillisecond:aA,utcMilliseconds:oA,utcMinute:G7,utcMinutes:H7,utcMonday:Hh,utcMondays:Y7,utcMonth:e$,utcMonths:t$,utcSaturday:eO,utcSaturdays:J7,utcSecond:uA,utcSeconds:lA,utcSunday:Nv,utcSundays:sA,utcThursday:Zu,utcThursdays:Z7,utcTuesday:Z4,utcTuesdays:X7,utcWednesday:K4,utcWednesdays:Q7,utcWeek:Nv,utcWeeks:sA,utcYear:qf,utcYears:r$},Symbol.toStringTag,{value:"Module"}));function d1(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function p1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Rc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function rO(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,u=e.shortDays,l=e.months,s=e.shortMonths,c=Ic(i),v=Pc(i),x=Ic(a),y=Pc(a),g=Ic(u),k=Pc(u),N=Ic(l),b=Pc(l),w=Ic(s),A=Pc(s),M={a:Ue,A:Ye,b:It,B:Ze,c:null,d:mA,e:mA,f:T$,g:L$,G:B$,H:S$,I:E$,j:A$,L:nO,m:C$,M:k$,p:Ee,q:tt,Q:xA,s:_A,S:O$,u:M$,U:F$,V:N$,w:R$,W:I$,x:null,X:null,y:P$,Y:D$,Z:$$,"%":yA},R={a:ct,A:rt,b:yt,B:Tt,c:null,d:gA,e:gA,f:G$,g:J$,G:t9,H:z$,I:U$,j:j$,L:aO,m:H$,M:W$,p:Yt,q:Xt,Q:xA,s:_A,S:V$,u:q$,U:Y$,V:X$,w:Q$,W:Z$,x:null,X:null,y:K$,Y:e9,Z:r9,"%":yA},L={a:Ce,A:Fe,b:Ie,B:je,c:Ke,d:pA,e:pA,f:x$,g:dA,G:hA,H:vA,I:vA,j:v$,L:y$,m:p$,M:m$,p:ae,q:d$,Q:w$,s:b$,S:g$,u:l$,U:f$,V:s$,w:u$,W:c$,x:mt,X:lt,y:dA,Y:hA,Z:h$,"%":_$};M.x=D(r,M),M.X=D(n,M),M.c=D(t,M),R.x=D(r,R),R.X=D(n,R),R.c=D(t,R);function D(Qe,Ot){return function(jt){var Ae=[],G=-1,ie=0,C=Qe.length,S,T,B;for(jt instanceof Date||(jt=new Date(+jt));++G<C;)Qe.charCodeAt(G)===37&&(Ae.push(Qe.slice(ie,G)),(T=cA[S=Qe.charAt(++G)])!=null?S=Qe.charAt(++G):T=S==="e"?" ":"0",(B=Ot[S])&&(S=B(jt,T)),Ae.push(S),ie=G+1);return Ae.push(Qe.slice(ie,G)),Ae.join("")}}function ne(Qe,Ot){return function(jt){var Ae=Rc(1900,void 0,1),G=Y(Ae,Qe,jt+="",0),ie,C;if(G!=jt.length)return null;if("Q"in Ae)return new Date(Ae.Q);if("s"in Ae)return new Date(Ae.s*1e3+("L"in Ae?Ae.L:0));if(Ot&&!("Z"in Ae)&&(Ae.Z=0),"p"in Ae&&(Ae.H=Ae.H%12+Ae.p*12),Ae.m===void 0&&(Ae.m="q"in Ae?Ae.q:0),"V"in Ae){if(Ae.V<1||Ae.V>53)return null;"w"in Ae||(Ae.w=1),"Z"in Ae?(ie=p1(Rc(Ae.y,0,1)),C=ie.getUTCDay(),ie=C>4||C===0?Hh.ceil(ie):Hh(ie),ie=bw.offset(ie,(Ae.V-1)*7),Ae.y=ie.getUTCFullYear(),Ae.m=ie.getUTCMonth(),Ae.d=ie.getUTCDate()+(Ae.w+6)%7):(ie=d1(Rc(Ae.y,0,1)),C=ie.getDay(),ie=C>4||C===0?Gh.ceil(ie):Gh(ie),ie=_w.offset(ie,(Ae.V-1)*7),Ae.y=ie.getFullYear(),Ae.m=ie.getMonth(),Ae.d=ie.getDate()+(Ae.w+6)%7)}else("W"in Ae||"U"in Ae)&&("w"in Ae||(Ae.w="u"in Ae?Ae.u%7:"W"in Ae?1:0),C="Z"in Ae?p1(Rc(Ae.y,0,1)).getUTCDay():d1(Rc(Ae.y,0,1)).getDay(),Ae.m=0,Ae.d="W"in Ae?(Ae.w+6)%7+Ae.W*7-(C+5)%7:Ae.w+Ae.U*7-(C+6)%7);return"Z"in Ae?(Ae.H+=Ae.Z/100|0,Ae.M+=Ae.Z%100,p1(Ae)):d1(Ae)}}function Y(Qe,Ot,jt,Ae){for(var G=0,ie=Ot.length,C=jt.length,S,T;G<ie;){if(Ae>=C)return-1;if(S=Ot.charCodeAt(G++),S===37){if(S=Ot.charAt(G++),T=L[S in cA?Ot.charAt(G++):S],!T||(Ae=T(Qe,jt,Ae))<0)return-1}else if(S!=jt.charCodeAt(Ae++))return-1}return Ae}function ae(Qe,Ot,jt){var Ae=c.exec(Ot.slice(jt));return Ae?(Qe.p=v[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ce(Qe,Ot,jt){var Ae=g.exec(Ot.slice(jt));return Ae?(Qe.w=k[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Fe(Qe,Ot,jt){var Ae=x.exec(Ot.slice(jt));return Ae?(Qe.w=y[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ie(Qe,Ot,jt){var Ae=w.exec(Ot.slice(jt));return Ae?(Qe.m=A[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function je(Qe,Ot,jt){var Ae=N.exec(Ot.slice(jt));return Ae?(Qe.m=b[Ae[0].toLowerCase()],jt+Ae[0].length):-1}function Ke(Qe,Ot,jt){return Y(Qe,t,Ot,jt)}function mt(Qe,Ot,jt){return Y(Qe,r,Ot,jt)}function lt(Qe,Ot,jt){return Y(Qe,n,Ot,jt)}function Ue(Qe){return u[Qe.getDay()]}function Ye(Qe){return a[Qe.getDay()]}function It(Qe){return s[Qe.getMonth()]}function Ze(Qe){return l[Qe.getMonth()]}function Ee(Qe){return i[+(Qe.getHours()>=12)]}function tt(Qe){return 1+~~(Qe.getMonth()/3)}function ct(Qe){return u[Qe.getUTCDay()]}function rt(Qe){return a[Qe.getUTCDay()]}function yt(Qe){return s[Qe.getUTCMonth()]}function Tt(Qe){return l[Qe.getUTCMonth()]}function Yt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Xt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var Ot=D(Qe+="",M);return Ot.toString=function(){return Qe},Ot},parse:function(Qe){var Ot=ne(Qe+="",!1);return Ot.toString=function(){return Qe},Ot},utcFormat:function(Qe){var Ot=D(Qe+="",R);return Ot.toString=function(){return Qe},Ot},utcParse:function(Qe){var Ot=ne(Qe+="",!0);return Ot.toString=function(){return Qe},Ot}}}var cA={"-":"",_:" ",0:"0"},vn=/^\s*\d+/,i$=/^%/,a$=/[\\^$*+?|[\]().{}]/g;function gr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function o$(e){return e.replace(a$,"\\$&")}function Ic(e){return new RegExp("^(?:"+e.map(o$).join("|")+")","i")}function Pc(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function u$(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function l$(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function f$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function s$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function c$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hA(e,t,r){var n=vn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function h$(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function d$(e,t,r){var n=vn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function p$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function pA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function v$(e,t,r){var n=vn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function vA(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function m$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function g$(e,t,r){var n=vn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function y$(e,t,r){var n=vn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function x$(e,t,r){var n=vn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _$(e,t,r){var n=i$.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function w$(e,t,r){var n=vn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function b$(e,t,r){var n=vn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mA(e,t){return gr(e.getDate(),t,2)}function S$(e,t){return gr(e.getHours(),t,2)}function E$(e,t){return gr(e.getHours()%12||12,t,2)}function A$(e,t){return gr(1+_w.count(Vf(e),e),t,3)}function nO(e,t){return gr(e.getMilliseconds(),t,3)}function T$(e,t){return nO(e,t)+"000"}function C$(e,t){return gr(e.getMonth()+1,t,2)}function k$(e,t){return gr(e.getMinutes(),t,2)}function O$(e,t){return gr(e.getSeconds(),t,2)}function M$(e){var t=e.getDay();return t===0?7:t}function F$(e,t){return gr(Fv.count(Vf(e)-1,e),t,2)}function iO(e){var t=e.getDay();return t>=4||t===0?Qu(e):Qu.ceil(e)}function N$(e,t){return e=iO(e),gr(Qu.count(Vf(e),e)+(Vf(e).getDay()===4),t,2)}function R$(e){return e.getDay()}function I$(e,t){return gr(Gh.count(Vf(e)-1,e),t,2)}function P$(e,t){return gr(e.getFullYear()%100,t,2)}function L$(e,t){return e=iO(e),gr(e.getFullYear()%100,t,2)}function D$(e,t){return gr(e.getFullYear()%1e4,t,4)}function B$(e,t){var r=e.getDay();return e=r>=4||r===0?Qu(e):Qu.ceil(e),gr(e.getFullYear()%1e4,t,4)}function $$(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gr(t/60|0,"0",2)+gr(t%60,"0",2)}function gA(e,t){return gr(e.getUTCDate(),t,2)}function z$(e,t){return gr(e.getUTCHours(),t,2)}function U$(e,t){return gr(e.getUTCHours()%12||12,t,2)}function j$(e,t){return gr(1+bw.count(qf(e),e),t,3)}function aO(e,t){return gr(e.getUTCMilliseconds(),t,3)}function G$(e,t){return aO(e,t)+"000"}function H$(e,t){return gr(e.getUTCMonth()+1,t,2)}function W$(e,t){return gr(e.getUTCMinutes(),t,2)}function V$(e,t){return gr(e.getUTCSeconds(),t,2)}function q$(e){var t=e.getUTCDay();return t===0?7:t}function Y$(e,t){return gr(Nv.count(qf(e)-1,e),t,2)}function oO(e){var t=e.getUTCDay();return t>=4||t===0?Zu(e):Zu.ceil(e)}function X$(e,t){return e=oO(e),gr(Zu.count(qf(e),e)+(qf(e).getUTCDay()===4),t,2)}function Q$(e){return e.getUTCDay()}function Z$(e,t){return gr(Hh.count(qf(e)-1,e),t,2)}function K$(e,t){return gr(e.getUTCFullYear()%100,t,2)}function J$(e,t){return e=oO(e),gr(e.getUTCFullYear()%100,t,2)}function e9(e,t){return gr(e.getUTCFullYear()%1e4,t,4)}function t9(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Zu(e):Zu.ceil(e),gr(e.getUTCFullYear()%1e4,t,4)}function r9(){return"+0000"}function yA(){return"%"}function xA(e){return+e}function _A(e){return Math.floor(+e/1e3)}var tf,uO,lO,Ew,Aw;fO({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fO(e){return tf=rO(e),uO=tf.format,lO=tf.parse,Ew=tf.utcFormat,Aw=tf.utcParse,tf}var sO="%Y-%m-%dT%H:%M:%S.%LZ";function n9(e){return e.toISOString()}var i9=Date.prototype.toISOString?n9:Ew(sO);const a9=i9;function o9(e){var t=new Date(e);return isNaN(t)?null:t}var u9=+new Date("2000-01-01T00:00:00.000Z")?o9:Aw(sO);const l9=u9,f9=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:a9,isoParse:l9,get timeFormat(){return uO},timeFormatDefaultLocale:fO,timeFormatLocale:rO,get timeParse(){return lO},get utcFormat(){return Ew},get utcParse(){return Aw}},Symbol.toStringTag,{value:"Module"})),qq=el(f9);function s9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rv(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yf(e){return e=Rv(Math.abs(e)),e?e[1]:NaN}function c9(e,t){return function(r,n){for(var i=r.length,a=[],u=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[u=(u+1)%e.length];return a.reverse().join(t)}}function h9(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var d9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Iv(e){if(!(t=d9.exec(e)))throw new Error("invalid format: "+e);var t;return new ym({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Iv.prototype=ym.prototype;function ym(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ym.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function p9(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var cO;function v9(e,t){var r=Rv(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(cO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,u=n.length;return a===u?n:a>u?n+new Array(a-u+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Rv(e,Math.max(0,t+a-1))[0]}function wA(e,t){var r=Rv(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const bA={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:s9,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return wA(e*100,t)},r:wA,s:v9,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function SA(e){return e}var EA=Array.prototype.map,AA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hO(e){var t=e.grouping===void 0||e.thousands===void 0?SA:c9(EA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?SA:h9(EA.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(x){x=Iv(x);var y=x.fill,g=x.align,k=x.sign,N=x.symbol,b=x.zero,w=x.width,A=x.comma,M=x.precision,R=x.trim,L=x.type;L==="n"?(A=!0,L="g"):bA[L]||(M===void 0&&(M=12),R=!0,L="g"),(b||y==="0"&&g==="=")&&(b=!0,y="0",g="=");var D=N==="$"?r:N==="#"&&/[boxX]/.test(L)?"0"+L.toLowerCase():"",ne=N==="$"?n:/[%p]/.test(L)?u:"",Y=bA[L],ae=/[defgprs%]/.test(L);M=M===void 0?6:/[gprs]/.test(L)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M));function Ce(Fe){var Ie=D,je=ne,Ke,mt,lt;if(L==="c")je=Y(Fe)+je,Fe="";else{Fe=+Fe;var Ue=Fe<0||1/Fe<0;if(Fe=isNaN(Fe)?s:Y(Math.abs(Fe),M),R&&(Fe=p9(Fe)),Ue&&+Fe==0&&k!=="+"&&(Ue=!1),Ie=(Ue?k==="("?k:l:k==="-"||k==="("?"":k)+Ie,je=(L==="s"?AA[8+cO/3]:"")+je+(Ue&&k==="("?")":""),ae){for(Ke=-1,mt=Fe.length;++Ke<mt;)if(lt=Fe.charCodeAt(Ke),48>lt||lt>57){je=(lt===46?i+Fe.slice(Ke+1):Fe.slice(Ke))+je,Fe=Fe.slice(0,Ke);break}}}A&&!b&&(Fe=t(Fe,1/0));var Ye=Ie.length+Fe.length+je.length,It=Ye<w?new Array(w-Ye+1).join(y):"";switch(A&&b&&(Fe=t(It+Fe,It.length?w-je.length:1/0),It=""),g){case"<":Fe=Ie+Fe+je+It;break;case"=":Fe=Ie+It+Fe+je;break;case"^":Fe=It.slice(0,Ye=It.length>>1)+Ie+Fe+je+It.slice(Ye);break;default:Fe=It+Ie+Fe+je;break}return a(Fe)}return Ce.toString=function(){return x+""},Ce}function v(x,y){var g=c((x=Iv(x),x.type="f",x)),k=Math.max(-8,Math.min(8,Math.floor(Yf(y)/3)))*3,N=Math.pow(10,-k),b=AA[8+k/3];return function(w){return g(N*w)+b}}return{format:c,formatPrefix:v}}var r0,dO,pO;vO({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function vO(e){return r0=hO(e),dO=r0.format,pO=r0.formatPrefix,r0}function m9(e){return Math.max(0,-Yf(Math.abs(e)))}function g9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yf(t)/3)))*3-Yf(Math.abs(e)))}function y9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yf(t)-Yf(e))+1}const x9=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:ym,get format(){return dO},formatDefaultLocale:vO,formatLocale:hO,get formatPrefix(){return pO},formatSpecifier:Iv,precisionFixed:m9,precisionPrefix:g9,precisionRound:y9},Symbol.toStringTag,{value:"Module"})),Yq=el(x9);var _9=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},w9=_9,Xq=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&w9(r))return!1}else if(t!=="number")return!1;return e-e<1},TA={},b9={get exports(){return TA},set exports(e){TA=e}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,u=t.min,l=t.max,s=t.random;function c(G,ie){if(G=G||"",ie=ie||{},G instanceof c)return G;if(!(this instanceof c))return new c(G,ie);var C=v(G);this._originalInput=G,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=ie.format||C.format,this._gradientType=ie.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=C.ok,this._tc_id=i++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var G=this.toRgb();return(G.r*299+G.g*587+G.b*114)/1e3},getLuminance:function(){var G=this.toRgb(),ie,C,S,T,B,se;return ie=G.r/255,C=G.g/255,S=G.b/255,ie<=.03928?T=ie/12.92:T=t.pow((ie+.055)/1.055,2.4),C<=.03928?B=C/12.92:B=t.pow((C+.055)/1.055,2.4),S<=.03928?se=S/12.92:se=t.pow((S+.055)/1.055,2.4),.2126*T+.7152*B+.0722*se},setAlpha:function(G){return this._a=It(G),this._roundA=a(100*this._a)/100,this},toHsv:function(){var G=k(this._r,this._g,this._b);return{h:G.h*360,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=k(this._r,this._g,this._b),ie=a(G.h*360),C=a(G.s*100),S=a(G.v*100);return this._a==1?"hsv("+ie+", "+C+"%, "+S+"%)":"hsva("+ie+", "+C+"%, "+S+"%, "+this._roundA+")"},toHsl:function(){var G=y(this._r,this._g,this._b);return{h:G.h*360,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=y(this._r,this._g,this._b),ie=a(G.h*360),C=a(G.s*100),S=a(G.l*100);return this._a==1?"hsl("+ie+", "+C+"%, "+S+"%)":"hsla("+ie+", "+C+"%, "+S+"%, "+this._roundA+")"},toHex:function(G){return b(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return w(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(Ze(this._r,255)*100)+"%",g:a(Ze(this._g,255)*100)+"%",b:a(Ze(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Ze(this._r,255)*100)+"%, "+a(Ze(this._g,255)*100)+"%, "+a(Ze(this._b,255)*100)+"%)":"rgba("+a(Ze(this._r,255)*100)+"%, "+a(Ze(this._g,255)*100)+"%, "+a(Ze(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ue[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(G){var ie="#"+A(this._r,this._g,this._b,this._a),C=ie,S=this._gradientType?"GradientType = 1, ":"";if(G){var T=c(G);C="#"+A(T._r,T._g,T._b,T._a)}return"progid:DXImageTransform.Microsoft.gradient("+S+"startColorstr="+ie+",endColorstr="+C+")"},toString:function(G){var ie=!!G;G=G||this._format;var C=!1,S=this._a<1&&this._a>=0,T=!ie&&S&&(G==="hex"||G==="hex6"||G==="hex3"||G==="hex4"||G==="hex8"||G==="name");return T?G==="name"&&this._a===0?this.toName():this.toRgbString():(G==="rgb"&&(C=this.toRgbString()),G==="prgb"&&(C=this.toPercentageRgbString()),(G==="hex"||G==="hex6")&&(C=this.toHexString()),G==="hex3"&&(C=this.toHexString(!0)),G==="hex4"&&(C=this.toHex8String(!0)),G==="hex8"&&(C=this.toHex8String()),G==="name"&&(C=this.toName()),G==="hsl"&&(C=this.toHslString()),G==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(G,ie){var C=G.apply(null,[this].concat([].slice.call(ie)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(D,arguments)},brighten:function(){return this._applyModification(ne,arguments)},darken:function(){return this._applyModification(Y,arguments)},desaturate:function(){return this._applyModification(M,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(L,arguments)},spin:function(){return this._applyModification(ae,arguments)},_applyCombination:function(G,ie){return G.apply(null,[this].concat([].slice.call(ie)))},analogous:function(){return this._applyCombination(Ke,arguments)},complement:function(){return this._applyCombination(Ce,arguments)},monochromatic:function(){return this._applyCombination(mt,arguments)},splitcomplement:function(){return this._applyCombination(je,arguments)},triad:function(){return this._applyCombination(Fe,arguments)},tetrad:function(){return this._applyCombination(Ie,arguments)}},c.fromRatio=function(G,ie){if(typeof G=="object"){var C={};for(var S in G)G.hasOwnProperty(S)&&(S==="a"?C[S]=G[S]:C[S]=Tt(G[S]));G=C}return c(G,ie)};function v(G){var ie={r:0,g:0,b:0},C=1,S=null,T=null,B=null,se=!1,Ne=!1;return typeof G=="string"&&(G=jt(G)),typeof G=="object"&&(Ot(G.r)&&Ot(G.g)&&Ot(G.b)?(ie=x(G.r,G.g,G.b),se=!0,Ne=String(G.r).substr(-1)==="%"?"prgb":"rgb"):Ot(G.h)&&Ot(G.s)&&Ot(G.v)?(S=Tt(G.s),T=Tt(G.v),ie=N(G.h,S,T),se=!0,Ne="hsv"):Ot(G.h)&&Ot(G.s)&&Ot(G.l)&&(S=Tt(G.s),B=Tt(G.l),ie=g(G.h,S,B),se=!0,Ne="hsl"),G.hasOwnProperty("a")&&(C=G.a)),C=It(C),{ok:se,format:G.format||Ne,r:u(255,l(ie.r,0)),g:u(255,l(ie.g,0)),b:u(255,l(ie.b,0)),a:C}}function x(G,ie,C){return{r:Ze(G,255)*255,g:Ze(ie,255)*255,b:Ze(C,255)*255}}function y(G,ie,C){G=Ze(G,255),ie=Ze(ie,255),C=Ze(C,255);var S=l(G,ie,C),T=u(G,ie,C),B,se,Ne=(S+T)/2;if(S==T)B=se=0;else{var De=S-T;switch(se=Ne>.5?De/(2-S-T):De/(S+T),S){case G:B=(ie-C)/De+(ie<C?6:0);break;case ie:B=(C-G)/De+2;break;case C:B=(G-ie)/De+4;break}B/=6}return{h:B,s:se,l:Ne}}function g(G,ie,C){var S,T,B;G=Ze(G,360),ie=Ze(ie,100),C=Ze(C,100);function se(Qt,fr,rr){return rr<0&&(rr+=1),rr>1&&(rr-=1),rr<1/6?Qt+(fr-Qt)*6*rr:rr<1/2?fr:rr<2/3?Qt+(fr-Qt)*(2/3-rr)*6:Qt}if(ie===0)S=T=B=C;else{var Ne=C<.5?C*(1+ie):C+ie-C*ie,De=2*C-Ne;S=se(De,Ne,G+1/3),T=se(De,Ne,G),B=se(De,Ne,G-1/3)}return{r:S*255,g:T*255,b:B*255}}function k(G,ie,C){G=Ze(G,255),ie=Ze(ie,255),C=Ze(C,255);var S=l(G,ie,C),T=u(G,ie,C),B,se,Ne=S,De=S-T;if(se=S===0?0:De/S,S==T)B=0;else{switch(S){case G:B=(ie-C)/De+(ie<C?6:0);break;case ie:B=(C-G)/De+2;break;case C:B=(G-ie)/De+4;break}B/=6}return{h:B,s:se,v:Ne}}function N(G,ie,C){G=Ze(G,360)*6,ie=Ze(ie,100),C=Ze(C,100);var S=t.floor(G),T=G-S,B=C*(1-ie),se=C*(1-T*ie),Ne=C*(1-(1-T)*ie),De=S%6,Qt=[C,se,B,B,Ne,C][De],fr=[Ne,C,C,se,B,B][De],rr=[B,B,Ne,C,C,se][De];return{r:Qt*255,g:fr*255,b:rr*255}}function b(G,ie,C,S){var T=[yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16))];return S&&T[0].charAt(0)==T[0].charAt(1)&&T[1].charAt(0)==T[1].charAt(1)&&T[2].charAt(0)==T[2].charAt(1)?T[0].charAt(0)+T[1].charAt(0)+T[2].charAt(0):T.join("")}function w(G,ie,C,S,T){var B=[yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16)),yt(Yt(S))];return T&&B[0].charAt(0)==B[0].charAt(1)&&B[1].charAt(0)==B[1].charAt(1)&&B[2].charAt(0)==B[2].charAt(1)&&B[3].charAt(0)==B[3].charAt(1)?B[0].charAt(0)+B[1].charAt(0)+B[2].charAt(0)+B[3].charAt(0):B.join("")}function A(G,ie,C,S){var T=[yt(Yt(S)),yt(a(G).toString(16)),yt(a(ie).toString(16)),yt(a(C).toString(16))];return T.join("")}c.equals=function(G,ie){return!G||!ie?!1:c(G).toRgbString()==c(ie).toRgbString()},c.random=function(){return c.fromRatio({r:s(),g:s(),b:s()})};function M(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.s-=ie/100,C.s=Ee(C.s),c(C)}function R(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.s+=ie/100,C.s=Ee(C.s),c(C)}function L(G){return c(G).desaturate(100)}function D(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.l+=ie/100,C.l=Ee(C.l),c(C)}function ne(G,ie){ie=ie===0?0:ie||10;var C=c(G).toRgb();return C.r=l(0,u(255,C.r-a(255*-(ie/100)))),C.g=l(0,u(255,C.g-a(255*-(ie/100)))),C.b=l(0,u(255,C.b-a(255*-(ie/100)))),c(C)}function Y(G,ie){ie=ie===0?0:ie||10;var C=c(G).toHsl();return C.l-=ie/100,C.l=Ee(C.l),c(C)}function ae(G,ie){var C=c(G).toHsl(),S=(C.h+ie)%360;return C.h=S<0?360+S:S,c(C)}function Ce(G){var ie=c(G).toHsl();return ie.h=(ie.h+180)%360,c(ie)}function Fe(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+120)%360,s:ie.s,l:ie.l}),c({h:(C+240)%360,s:ie.s,l:ie.l})]}function Ie(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+90)%360,s:ie.s,l:ie.l}),c({h:(C+180)%360,s:ie.s,l:ie.l}),c({h:(C+270)%360,s:ie.s,l:ie.l})]}function je(G){var ie=c(G).toHsl(),C=ie.h;return[c(G),c({h:(C+72)%360,s:ie.s,l:ie.l}),c({h:(C+216)%360,s:ie.s,l:ie.l})]}function Ke(G,ie,C){ie=ie||6,C=C||30;var S=c(G).toHsl(),T=360/C,B=[c(G)];for(S.h=(S.h-(T*ie>>1)+720)%360;--ie;)S.h=(S.h+T)%360,B.push(c(S));return B}function mt(G,ie){ie=ie||6;for(var C=c(G).toHsv(),S=C.h,T=C.s,B=C.v,se=[],Ne=1/ie;ie--;)se.push(c({h:S,s:T,v:B})),B=(B+Ne)%1;return se}c.mix=function(G,ie,C){C=C===0?0:C||50;var S=c(G).toRgb(),T=c(ie).toRgb(),B=C/100,se={r:(T.r-S.r)*B+S.r,g:(T.g-S.g)*B+S.g,b:(T.b-S.b)*B+S.b,a:(T.a-S.a)*B+S.a};return c(se)},c.readability=function(G,ie){var C=c(G),S=c(ie);return(t.max(C.getLuminance(),S.getLuminance())+.05)/(t.min(C.getLuminance(),S.getLuminance())+.05)},c.isReadable=function(G,ie,C){var S=c.readability(G,ie),T,B;switch(B=!1,T=Ae(C),T.level+T.size){case"AAsmall":case"AAAlarge":B=S>=4.5;break;case"AAlarge":B=S>=3;break;case"AAAsmall":B=S>=7;break}return B},c.mostReadable=function(G,ie,C){var S=null,T=0,B,se,Ne,De;C=C||{},se=C.includeFallbackColors,Ne=C.level,De=C.size;for(var Qt=0;Qt<ie.length;Qt++)B=c.readability(G,ie[Qt]),B>T&&(T=B,S=c(ie[Qt]));return c.isReadable(G,S,{level:Ne,size:De})||!se?S:(C.includeFallbackColors=!1,c.mostReadable(G,["#fff","#000"],C))};var lt=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",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",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",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",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",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",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ue=c.hexNames=Ye(lt);function Ye(G){var ie={};for(var C in G)G.hasOwnProperty(C)&&(ie[G[C]]=C);return ie}function It(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function Ze(G,ie){ct(G)&&(G="100%");var C=rt(G);return G=u(ie,l(0,parseFloat(G))),C&&(G=parseInt(G*ie,10)/100),t.abs(G-ie)<1e-6?1:G%ie/parseFloat(ie)}function Ee(G){return u(1,l(0,G))}function tt(G){return parseInt(G,16)}function ct(G){return typeof G=="string"&&G.indexOf(".")!=-1&&parseFloat(G)===1}function rt(G){return typeof G=="string"&&G.indexOf("%")!=-1}function yt(G){return G.length==1?"0"+G:""+G}function Tt(G){return G<=1&&(G=G*100+"%"),G}function Yt(G){return t.round(parseFloat(G)*255).toString(16)}function Xt(G){return tt(G)/255}var Qe=function(){var G="[-\\+]?\\d+%?",ie="[-\\+]?\\d*\\.\\d+%?",C="(?:"+ie+")|(?:"+G+")",S="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",T="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+S),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+S),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+S),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ot(G){return!!Qe.CSS_UNIT.exec(G)}function jt(G){G=G.replace(r,"").replace(n,"").toLowerCase();var ie=!1;if(lt[G])G=lt[G],ie=!0;else if(G=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=Qe.rgb.exec(G))?{r:C[1],g:C[2],b:C[3]}:(C=Qe.rgba.exec(G))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=Qe.hsl.exec(G))?{h:C[1],s:C[2],l:C[3]}:(C=Qe.hsla.exec(G))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=Qe.hsv.exec(G))?{h:C[1],s:C[2],v:C[3]}:(C=Qe.hsva.exec(G))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=Qe.hex8.exec(G))?{r:tt(C[1]),g:tt(C[2]),b:tt(C[3]),a:Xt(C[4]),format:ie?"name":"hex8"}:(C=Qe.hex6.exec(G))?{r:tt(C[1]),g:tt(C[2]),b:tt(C[3]),format:ie?"name":"hex"}:(C=Qe.hex4.exec(G))?{r:tt(C[1]+""+C[1]),g:tt(C[2]+""+C[2]),b:tt(C[3]+""+C[3]),a:Xt(C[4]+""+C[4]),format:ie?"name":"hex8"}:(C=Qe.hex3.exec(G))?{r:tt(C[1]+""+C[1]),g:tt(C[2]+""+C[2]),b:tt(C[3]+""+C[3]),format:ie?"name":"hex"}:!1}function Ae(G){var ie,C;return G=G||{level:"AA",size:"small"},ie=(G.level||"AA").toUpperCase(),C=(G.size||"small").toLowerCase(),ie!=="AA"&&ie!=="AAA"&&(ie="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:ie,size:C}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(b9);var S9=E9;function E9(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var A9=T9;function T9(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var C9=k9;function k9(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var mO=O9;function O9(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var M9=F9;function F9(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],u=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=u,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var N9=R9;function R9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],v=t[8],x=t[9],y=t[10],g=t[11],k=t[12],N=t[13],b=t[14],w=t[15],A=r*l-n*u,M=r*s-i*u,R=r*c-a*u,L=n*s-i*l,D=n*c-a*l,ne=i*c-a*s,Y=v*N-x*k,ae=v*b-y*k,Ce=v*w-g*k,Fe=x*b-y*N,Ie=x*w-g*N,je=y*w-g*b,Ke=A*je-M*Ie+R*Fe+L*Ce-D*ae+ne*Y;return Ke?(Ke=1/Ke,e[0]=(l*je-s*Ie+c*Fe)*Ke,e[1]=(i*Ie-n*je-a*Fe)*Ke,e[2]=(N*ne-b*D+w*L)*Ke,e[3]=(y*D-x*ne-g*L)*Ke,e[4]=(s*Ce-u*je-c*ae)*Ke,e[5]=(r*je-i*Ce+a*ae)*Ke,e[6]=(b*R-k*ne-w*M)*Ke,e[7]=(v*ne-y*R+g*M)*Ke,e[8]=(u*Ie-l*Ce+c*Y)*Ke,e[9]=(n*Ce-r*Ie-a*Y)*Ke,e[10]=(k*D-N*R+w*A)*Ke,e[11]=(x*R-v*D-g*A)*Ke,e[12]=(l*ae-u*Fe-s*Y)*Ke,e[13]=(r*Fe-n*ae+i*Y)*Ke,e[14]=(N*M-k*L-b*A)*Ke,e[15]=(v*L-x*M+y*A)*Ke,e):null}var I9=P9;function P9(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],v=t[8],x=t[9],y=t[10],g=t[11],k=t[12],N=t[13],b=t[14],w=t[15];return e[0]=l*(y*w-g*b)-x*(s*w-c*b)+N*(s*g-c*y),e[1]=-(n*(y*w-g*b)-x*(i*w-a*b)+N*(i*g-a*y)),e[2]=n*(s*w-c*b)-l*(i*w-a*b)+N*(i*c-a*s),e[3]=-(n*(s*g-c*y)-l*(i*g-a*y)+x*(i*c-a*s)),e[4]=-(u*(y*w-g*b)-v*(s*w-c*b)+k*(s*g-c*y)),e[5]=r*(y*w-g*b)-v*(i*w-a*b)+k*(i*g-a*y),e[6]=-(r*(s*w-c*b)-u*(i*w-a*b)+k*(i*c-a*s)),e[7]=r*(s*g-c*y)-u*(i*g-a*y)+v*(i*c-a*s),e[8]=u*(x*w-g*N)-v*(l*w-c*N)+k*(l*g-c*x),e[9]=-(r*(x*w-g*N)-v*(n*w-a*N)+k*(n*g-a*x)),e[10]=r*(l*w-c*N)-u*(n*w-a*N)+k*(n*c-a*l),e[11]=-(r*(l*g-c*x)-u*(n*g-a*x)+v*(n*c-a*l)),e[12]=-(u*(x*b-y*N)-v*(l*b-s*N)+k*(l*y-s*x)),e[13]=r*(x*b-y*N)-v*(n*b-i*N)+k*(n*y-i*x),e[14]=-(r*(l*b-s*N)-u*(n*b-i*N)+k*(n*s-i*l)),e[15]=r*(l*y-s*x)-u*(n*y-i*x)+v*(n*s-i*l),e}var L9=D9;function D9(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],u=e[5],l=e[6],s=e[7],c=e[8],v=e[9],x=e[10],y=e[11],g=e[12],k=e[13],N=e[14],b=e[15],w=t*u-r*a,A=t*l-n*a,M=t*s-i*a,R=r*l-n*u,L=r*s-i*u,D=n*s-i*l,ne=c*k-v*g,Y=c*N-x*g,ae=c*b-y*g,Ce=v*N-x*k,Fe=v*b-y*k,Ie=x*b-y*N;return w*Ie-A*Fe+M*Ce+R*ae-L*Y+D*ne}var B9=$9;function $9(e,t,r){var n=t[0],i=t[1],a=t[2],u=t[3],l=t[4],s=t[5],c=t[6],v=t[7],x=t[8],y=t[9],g=t[10],k=t[11],N=t[12],b=t[13],w=t[14],A=t[15],M=r[0],R=r[1],L=r[2],D=r[3];return e[0]=M*n+R*l+L*x+D*N,e[1]=M*i+R*s+L*y+D*b,e[2]=M*a+R*c+L*g+D*w,e[3]=M*u+R*v+L*k+D*A,M=r[4],R=r[5],L=r[6],D=r[7],e[4]=M*n+R*l+L*x+D*N,e[5]=M*i+R*s+L*y+D*b,e[6]=M*a+R*c+L*g+D*w,e[7]=M*u+R*v+L*k+D*A,M=r[8],R=r[9],L=r[10],D=r[11],e[8]=M*n+R*l+L*x+D*N,e[9]=M*i+R*s+L*y+D*b,e[10]=M*a+R*c+L*g+D*w,e[11]=M*u+R*v+L*k+D*A,M=r[12],R=r[13],L=r[14],D=r[15],e[12]=M*n+R*l+L*x+D*N,e[13]=M*i+R*s+L*y+D*b,e[14]=M*a+R*c+L*g+D*w,e[15]=M*u+R*v+L*k+D*A,e}var z9=U9;function U9(e,t,r){var n=r[0],i=r[1],a=r[2],u,l,s,c,v,x,y,g,k,N,b,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(u=t[0],l=t[1],s=t[2],c=t[3],v=t[4],x=t[5],y=t[6],g=t[7],k=t[8],N=t[9],b=t[10],w=t[11],e[0]=u,e[1]=l,e[2]=s,e[3]=c,e[4]=v,e[5]=x,e[6]=y,e[7]=g,e[8]=k,e[9]=N,e[10]=b,e[11]=w,e[12]=u*n+v*i+k*a+t[12],e[13]=l*n+x*i+N*a+t[13],e[14]=s*n+y*i+b*a+t[14],e[15]=c*n+g*i+w*a+t[15]),e}var j9=G9;function G9(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var H9=W9;function W9(e,t,r,n){var i=n[0],a=n[1],u=n[2],l=Math.sqrt(i*i+a*a+u*u),s,c,v,x,y,g,k,N,b,w,A,M,R,L,D,ne,Y,ae,Ce,Fe,Ie,je,Ke,mt;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,u*=l,s=Math.sin(r),c=Math.cos(r),v=1-c,x=t[0],y=t[1],g=t[2],k=t[3],N=t[4],b=t[5],w=t[6],A=t[7],M=t[8],R=t[9],L=t[10],D=t[11],ne=i*i*v+c,Y=a*i*v+u*s,ae=u*i*v-a*s,Ce=i*a*v-u*s,Fe=a*a*v+c,Ie=u*a*v+i*s,je=i*u*v+a*s,Ke=a*u*v-i*s,mt=u*u*v+c,e[0]=x*ne+N*Y+M*ae,e[1]=y*ne+b*Y+R*ae,e[2]=g*ne+w*Y+L*ae,e[3]=k*ne+A*Y+D*ae,e[4]=x*Ce+N*Fe+M*Ie,e[5]=y*Ce+b*Fe+R*Ie,e[6]=g*Ce+w*Fe+L*Ie,e[7]=k*Ce+A*Fe+D*Ie,e[8]=x*je+N*Ke+M*mt,e[9]=y*je+b*Ke+R*mt,e[10]=g*je+w*Ke+L*mt,e[11]=k*je+A*Ke+D*mt,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var V9=q9;function q9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],u=t[5],l=t[6],s=t[7],c=t[8],v=t[9],x=t[10],y=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+c*n,e[5]=u*i+v*n,e[6]=l*i+x*n,e[7]=s*i+y*n,e[8]=c*i-a*n,e[9]=v*i-u*n,e[10]=x*i-l*n,e[11]=y*i-s*n,e}var Y9=X9;function X9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],u=t[1],l=t[2],s=t[3],c=t[8],v=t[9],x=t[10],y=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-c*n,e[1]=u*i-v*n,e[2]=l*i-x*n,e[3]=s*i-y*n,e[8]=a*n+c*i,e[9]=u*n+v*i,e[10]=l*n+x*i,e[11]=s*n+y*i,e}var Q9=Z9;function Z9(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],u=t[1],l=t[2],s=t[3],c=t[4],v=t[5],x=t[6],y=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+c*n,e[1]=u*i+v*n,e[2]=l*i+x*n,e[3]=s*i+y*n,e[4]=c*i-a*n,e[5]=v*i-u*n,e[6]=x*i-l*n,e[7]=y*i-s*n,e}var K9=J9;function J9(e,t,r){var n,i,a,u=r[0],l=r[1],s=r[2],c=Math.sqrt(u*u+l*l+s*s);return Math.abs(c)<1e-6?null:(c=1/c,u*=c,l*=c,s*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=u*u*a+i,e[1]=l*u*a+s*n,e[2]=s*u*a-l*n,e[3]=0,e[4]=u*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+u*n,e[7]=0,e[8]=u*s*a+l*n,e[9]=l*s*a-u*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var ez=tz;function tz(e,t,r){var n=t[0],i=t[1],a=t[2],u=t[3],l=n+n,s=i+i,c=a+a,v=n*l,x=n*s,y=n*c,g=i*s,k=i*c,N=a*c,b=u*l,w=u*s,A=u*c;return e[0]=1-(g+N),e[1]=x+A,e[2]=y-w,e[3]=0,e[4]=x-A,e[5]=1-(v+N),e[6]=k+b,e[7]=0,e[8]=y+w,e[9]=k-b,e[10]=1-(v+g),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var rz=nz;function nz(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var iz=az;function az(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var oz=uz;function uz(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var lz=fz;function fz(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var sz=cz;function cz(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var hz=dz;function dz(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],u=r+r,l=n+n,s=i+i,c=r*u,v=n*u,x=n*l,y=i*u,g=i*l,k=i*s,N=a*u,b=a*l,w=a*s;return e[0]=1-x-k,e[1]=v+w,e[2]=y-b,e[3]=0,e[4]=v-w,e[5]=1-c-k,e[6]=g+N,e[7]=0,e[8]=y+b,e[9]=g-N,e[10]=1-c-x,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var pz=vz;function vz(e,t,r,n,i,a,u){var l=1/(r-t),s=1/(i-n),c=1/(a-u);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(u+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=u*a*2*c,e[15]=0,e}var mz=gz;function gz(e,t,r,n,i){var a=1/Math.tan(t/2),u=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*u,e[15]=0,e}var yz=xz;function xz(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),u=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(u+l),c=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((u-l)*s*.5),e[9]=(i-a)*c*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var _z=wz;function wz(e,t,r,n,i,a,u){var l=1/(t-r),s=1/(n-i),c=1/(a-u);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(u+a)*c,e[15]=1,e}var bz=mO,Sz=Ez;function Ez(e,t,r,n){var i,a,u,l,s,c,v,x,y,g,k=t[0],N=t[1],b=t[2],w=n[0],A=n[1],M=n[2],R=r[0],L=r[1],D=r[2];return Math.abs(k-R)<1e-6&&Math.abs(N-L)<1e-6&&Math.abs(b-D)<1e-6?bz(e):(v=k-R,x=N-L,y=b-D,g=1/Math.sqrt(v*v+x*x+y*y),v*=g,x*=g,y*=g,i=A*y-M*x,a=M*v-w*y,u=w*x-A*v,g=Math.sqrt(i*i+a*a+u*u),g?(g=1/g,i*=g,a*=g,u*=g):(i=0,a=0,u=0),l=x*u-y*a,s=y*i-v*u,c=v*a-x*i,g=Math.sqrt(l*l+s*s+c*c),g?(g=1/g,l*=g,s*=g,c*=g):(l=0,s=0,c=0),e[0]=i,e[1]=l,e[2]=v,e[3]=0,e[4]=a,e[5]=s,e[6]=x,e[7]=0,e[8]=u,e[9]=c,e[10]=y,e[11]=0,e[12]=-(i*k+a*N+u*b),e[13]=-(l*k+s*N+c*b),e[14]=-(v*k+x*N+y*b),e[15]=1,e)}var Az=Tz;function Tz(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var Qq={create:S9,clone:A9,copy:C9,identity:mO,transpose:M9,invert:N9,adjoint:I9,determinant:L9,multiply:B9,translate:z9,scale:j9,rotate:H9,rotateX:V9,rotateY:Y9,rotateZ:Q9,fromRotation:K9,fromRotationTranslation:ez,fromScaling:rz,fromTranslation:iz,fromXRotation:oz,fromYRotation:lz,fromZRotation:sz,fromQuat:hz,frustum:pz,perspective:mz,perspectiveFromFieldOfView:yz,ortho:_z,lookAt:Sz,str:Az},Pv={},Cz={get exports(){return Pv},set exports(e){Pv=e}};Cz.exports=Tw;Pv.isMobile=Tw;Pv.default=Tw;const kz=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Oz=/CrOS/,Mz=/android|ipad|playbook|silk/i;function Tw(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=kz.test(t)&&!Oz.test(t)||!!e.tablet&&Mz.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var Fz=!0,Nz=Fz,M2;typeof Lr.matchMedia=="function"?M2=!Lr.matchMedia("(hover: none)").matches:M2=Nz;var Zq=M2,F2={},Rz={get exports(){return F2},set exports(e){F2=e}},If=typeof Reflect=="object"?Reflect:null,CA=If&&typeof If.apply=="function"?If.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},L0;If&&typeof If.ownKeys=="function"?L0=If.ownKeys:Object.getOwnPropertySymbols?L0=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:L0=function(t){return Object.getOwnPropertyNames(t)};function Iz(e){console&&console.warn&&console.warn(e)}var gO=Number.isNaN||function(t){return t!==t};function Sr(){Sr.init.call(this)}Rz.exports=Sr;F2.once=Bz;Sr.EventEmitter=Sr;Sr.prototype._events=void 0;Sr.prototype._eventsCount=0;Sr.prototype._maxListeners=void 0;var kA=10;function xm(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Sr,"defaultMaxListeners",{enumerable:!0,get:function(){return kA},set:function(e){if(typeof e!="number"||e<0||gO(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kA=e}});Sr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Sr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||gO(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function yO(e){return e._maxListeners===void 0?Sr.defaultMaxListeners:e._maxListeners}Sr.prototype.getMaxListeners=function(){return yO(this)};Sr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var l=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw l.context=u,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")CA(s,this,r);else for(var c=s.length,v=SO(s,c),n=0;n<c;++n)CA(v[n],this,r);return!0};function xO(e,t,r,n){var i,a,u;if(xm(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),u=a[t]),u===void 0)u=a[t]=r,++e._eventsCount;else if(typeof u=="function"?u=a[t]=n?[r,u]:[u,r]:n?u.unshift(r):u.push(r),i=yO(e),i>0&&u.length>i&&!u.warned){u.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=u.length,Iz(l)}return e}Sr.prototype.addListener=function(t,r){return xO(this,t,r,!1)};Sr.prototype.on=Sr.prototype.addListener;Sr.prototype.prependListener=function(t,r){return xO(this,t,r,!0)};function Pz(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _O(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Pz.bind(n);return i.listener=r,n.wrapFn=i,i}Sr.prototype.once=function(t,r){return xm(r),this.on(t,_O(this,t,r)),this};Sr.prototype.prependOnceListener=function(t,r){return xm(r),this.prependListener(t,_O(this,t,r)),this};Sr.prototype.removeListener=function(t,r){var n,i,a,u,l;if(xm(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,u=n.length-1;u>=0;u--)if(n[u]===r||n[u].listener===r){l=n[u].listener,a=u;break}if(a<0)return this;a===0?n.shift():Lz(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Sr.prototype.off=Sr.prototype.removeListener;Sr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),u;for(i=0;i<a.length;++i)u=a[i],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function wO(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Dz(i):SO(i,i.length)}Sr.prototype.listeners=function(t){return wO(this,t,!0)};Sr.prototype.rawListeners=function(t){return wO(this,t,!1)};Sr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):bO.call(e,t)};Sr.prototype.listenerCount=bO;function bO(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Sr.prototype.eventNames=function(){return this._eventsCount>0?L0(this._events):[]};function SO(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Lz(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Dz(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Bz(e,t){return new Promise(function(r,n){function i(u){e.removeListener(t,a),n(u)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}EO(e,t,a,{once:!0}),t!=="error"&&$z(e,i,{once:!0})})}function $z(e,t,r){typeof e.on=="function"&&EO(e,"error",t,r)}function EO(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var AO=Uz,v1={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zz=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Uz(e){var t=[];return e.replace(zz,function(r,n,i){var a=n.toLowerCase();for(i=Gz(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==v1[a])return i.unshift(n),t.push(i);if(i.length<v1[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,v1[a])))}}),t}var jz=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function Gz(e){var t=e.match(jz);return t?t.map(Number):[]}var Hz={left:0,top:0},Kq=Wz;function Wz(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=Vz(t);return r[0]=n-a.left,r[1]=i-a.top,r}function Vz(e){return e===window||e===document||e===document.body?Hz:e.getBoundingClientRect()}function qz(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var Jq=qz();function Yz(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,u){return n("temp_status",{seg:i,above:a,below:u})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,u){return n("status",{seg:i,above:a,below:u})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var Xz=Yz;function Qz(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],u=n[1],l=i[0],s=i[1],c=r[0],v=r[1];return(l-a)*(v-u)-(s-u)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],u=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],c=l*u+a*s;if(c<e)return!1;var v=u*u+s*s;return!(c-v>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],u=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*u)<e},linesIntersect:function(r,n,i,a){var u=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],c=a[1]-i[1],v=u*c-l*s;if(Math.abs(v)<e)return!1;var x=r[0]-i[0],y=r[1]-i[1],g=(s*y-c*x)/v,k=(u*y-l*x)/v,N={alongA:0,alongB:0,pt:[r[0]+g*u,r[1]+g*l]};return g<=-e?N.alongA=-2:g<e?N.alongA=-1:g-1<=-e?N.alongA=0:g-1<e?N.alongA=1:N.alongA=2,k<=-e?N.alongB=-2:k<e?N.alongB=-1:k-1<=-e?N.alongB=0:k-1<e?N.alongB=1:N.alongB=2,N},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],u=n[n.length-1][0],l=n[n.length-1][1],s=!1,c=0;c<n.length;c++){var v=n[c][0],x=n[c][1];x-a>e!=l-a>e&&(u-v)*(a-x)/(l-x)+v-i>e&&(s=!s),u=v,l=x}return s}};return t}var Zz=Qz,Kz={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},Jz=Kz,Lc=Jz;function eU(e,t,r){function n(k,N){return{id:r?r.segmentId():-1,start:k,end:N,myFill:{above:null,below:null},otherFill:null}}function i(k,N,b){return{id:r?r.segmentId():-1,start:k,end:N,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=Lc.create();function u(k,N,b,w,A,M){var R=t.pointsCompare(N,A);return R!==0?R:t.pointsSame(b,M)?0:k!==w?k?1:-1:t.pointAboveOrOnLine(b,w?A:M,w?M:A)?1:-1}function l(k,N){a.insertBefore(k,function(b){var w=u(k.isStart,k.pt,N,b.isStart,b.pt,b.other.pt);return w<0})}function s(k,N){var b=Lc.node({isStart:!0,pt:k.start,seg:k,primary:N,other:null,status:null});return l(b,k.end),b}function c(k,N,b){var w=Lc.node({isStart:!1,pt:N.end,seg:N,primary:b,other:k,status:null});k.other=w,l(w,k.pt)}function v(k,N){var b=s(k,N);return c(b,k,N),b}function x(k,N){r&&r.segmentChop(k.seg,N),k.other.remove(),k.seg.end=N,k.other.pt=N,l(k.other,k.pt)}function y(k,N){var b=i(N,k.seg.end,k.seg);return x(k,N),v(b,k.primary)}function g(k,N){var b=Lc.create();function w(Ke,mt){var lt=Ke.seg.start,Ue=Ke.seg.end,Ye=mt.seg.start,It=mt.seg.end;return t.pointsCollinear(lt,Ye,It)?t.pointsCollinear(Ue,Ye,It)||t.pointAboveOrOnLine(Ue,Ye,It)?1:-1:t.pointAboveOrOnLine(lt,Ye,It)?1:-1}function A(Ke){return b.findTransition(function(mt){var lt=w(Ke,mt.ev);return lt>0})}function M(Ke,mt){var lt=Ke.seg,Ue=mt.seg,Ye=lt.start,It=lt.end,Ze=Ue.start,Ee=Ue.end;r&&r.checkIntersection(lt,Ue);var tt=t.linesIntersect(Ye,It,Ze,Ee);if(tt===!1){if(!t.pointsCollinear(Ye,It,Ze)||t.pointsSame(Ye,Ee)||t.pointsSame(It,Ze))return!1;var ct=t.pointsSame(Ye,Ze),rt=t.pointsSame(It,Ee);if(ct&&rt)return mt;var yt=!ct&&t.pointBetween(Ye,Ze,Ee),Tt=!rt&&t.pointBetween(It,Ze,Ee);if(ct)return Tt?y(mt,It):y(Ke,Ee),mt;yt&&(rt||(Tt?y(mt,It):y(Ke,Ee)),y(mt,Ye))}else tt.alongA===0&&(tt.alongB===-1?y(Ke,Ze):tt.alongB===0?y(Ke,tt.pt):tt.alongB===1&&y(Ke,Ee)),tt.alongB===0&&(tt.alongA===-1?y(mt,Ye):tt.alongA===0?y(mt,tt.pt):tt.alongA===1&&y(mt,It));return!1}for(var R=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let Ke=function(){if(ne){var mt=M(L,ne);if(mt)return mt}return Y?M(L,Y):!1};r&&r.segmentNew(L.seg,L.primary);var D=A(L),ne=D.before?D.before.ev:null,Y=D.after?D.after.ev:null;r&&r.tempStatus(L.seg,ne?ne.seg:!1,Y?Y.seg:!1);var ae=Ke();if(ae){if(e){var Ce;L.seg.myFill.below===null?Ce=!0:Ce=L.seg.myFill.above!==L.seg.myFill.below,Ce&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(ae.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var Ce;L.seg.myFill.below===null?Ce=!0:Ce=L.seg.myFill.above!==L.seg.myFill.below,Y?L.seg.myFill.below=Y.seg.myFill.above:L.seg.myFill.below=k,Ce?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var Fe;Y?L.primary===Y.primary?Fe=Y.seg.otherFill.above:Fe=Y.seg.myFill.above:Fe=L.primary?N:k,L.seg.otherFill={above:Fe,below:Fe}}r&&r.status(L.seg,ne?ne.seg:!1,Y?Y.seg:!1),L.other.status=D.insert(Lc.node({ev:L}))}else{var Ie=L.status;if(Ie===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(Ie.prev)&&b.exists(Ie.next)&&M(Ie.prev.ev,Ie.next.ev),r&&r.statusRemove(Ie.ev.seg),Ie.remove(),!L.primary){var je=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=je}R.push(L.seg)}a.getHead().remove()}return r&&r.done(),R}return e?{addRegion:function(k){for(var N,b=k[k.length-1],w=0;w<k.length;w++){N=b,b=k[w];var A=t.pointsCompare(N,b);A!==0&&v(n(A<0?N:b,A<0?b:N),!0)}},calculate:function(k){return g(k,!1)}}:{calculate:function(k,N,b,w){return k.forEach(function(A){v(i(A.start,A.end,A),!0)}),b.forEach(function(A){v(i(A.start,A.end,A),!1)}),g(N,w)}}}var tU=eU;function rU(e,t,r){var n=[],i=[];return e.forEach(function(a){var u=a.start,l=a.end;if(t.pointsSame(u,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},v=s;function x(Ie,je,Ke){return v.index=Ie,v.matches_head=je,v.matches_pt1=Ke,v===s?(v=c,!1):(v=null,!0)}for(var y=0;y<n.length;y++){var g=n[y],k=g[0];g[1];var N=g[g.length-1];if(g[g.length-2],t.pointsSame(k,u)){if(x(y,!0,!0))break}else if(t.pointsSame(k,l)){if(x(y,!0,!1))break}else if(t.pointsSame(N,u)){if(x(y,!1,!0))break}else if(t.pointsSame(N,l)&&x(y,!1,!1))break}if(v===s){n.push([u,l]),r&&r.chainNew(u,l);return}if(v===c){r&&r.chainMatch(s.index);var b=s.index,w=s.matches_pt1?l:u,A=s.matches_head,g=n[b],M=A?g[0]:g[g.length-1],R=A?g[1]:g[g.length-2],L=A?g[g.length-1]:g[0],D=A?g[g.length-2]:g[1];if(t.pointsCollinear(R,M,w)&&(A?(r&&r.chainRemoveHead(s.index,w),g.shift()):(r&&r.chainRemoveTail(s.index,w),g.pop()),M=R),t.pointsSame(L,w)){n.splice(b,1),t.pointsCollinear(D,L,M)&&(A?(r&&r.chainRemoveTail(s.index,M),g.pop()):(r&&r.chainRemoveHead(s.index,M),g.shift())),r&&r.chainClose(s.index),i.push(g);return}A?(r&&r.chainAddHead(s.index,w),g.unshift(w)):(r&&r.chainAddTail(s.index,w),g.push(w));return}function ne(Ie){r&&r.chainReverse(Ie),n[Ie].reverse()}function Y(Ie,je){var Ke=n[Ie],mt=n[je],lt=Ke[Ke.length-1],Ue=Ke[Ke.length-2],Ye=mt[0],It=mt[1];t.pointsCollinear(Ue,lt,Ye)&&(r&&r.chainRemoveTail(Ie,lt),Ke.pop(),lt=Ue),t.pointsCollinear(lt,Ye,It)&&(r&&r.chainRemoveHead(je,Ye),mt.shift()),r&&r.chainJoin(Ie,je),n[Ie]=Ke.concat(mt),n.splice(je,1)}var ae=s.index,Ce=c.index;r&&r.chainConnect(ae,Ce);var Fe=n[ae].length<n[Ce].length;s.matches_head?c.matches_head?Fe?(ne(ae),Y(ae,Ce)):(ne(Ce),Y(Ce,ae)):Y(Ce,ae):c.matches_head?Y(ae,Ce):Fe?(ne(ae),Y(Ce,ae)):(ne(Ce),Y(ae,Ce))}),i}var nU=rU;function Dc(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var iU={union:function(e,t){return Dc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Dc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Dc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Dc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Dc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},aU=iU,oU={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function u(c){var v=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[v]})}for(var l=u(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,u(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(g,k){return t.pointInsideRegion([(g[0][0]+g[1][0])*.5,(g[0][1]+g[1][1])*.5],k)}function i(g){return{region:g,children:[]}}var a=i(null);function u(g,k){for(var N=0;N<g.children.length;N++){var b=g.children[N];if(n(k,b.region)){u(b,k);return}}for(var w=i(k),N=0;N<g.children.length;N++){var b=g.children[N];n(b.region,k)&&(w.children.push(b),g.children.splice(N,1),N--)}g.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||u(a,s)}function c(g,k){for(var N=0,b=g[g.length-1][0],w=g[g.length-1][1],A=[],M=0;M<g.length;M++){var R=g[M][0],L=g[M][1];A.push([R,L]),N+=L*b-R*w,b=R,w=L}var D=N<0;return D!==k&&A.reverse(),A.push([A[0][0],A[0][1]]),A}var v=[];function x(g){var k=[c(g.region,!1)];v.push(k);for(var N=0;N<g.children.length;N++)k.push(y(g.children[N]))}function y(g){for(var k=0;k<g.children.length;k++)x(g.children[k]);return c(g.region,!0)}for(var l=0;l<a.children.length;l++)x(a.children[l]);return v.length<=0?{type:"Polygon",coordinates:[]}:v.length==1?{type:"Polygon",coordinates:v[0]}:{type:"MultiPolygon",coordinates:v}}},uU=oU;/*
813
813
  * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
814
814
  * @license MIT
815
815
  * @preserve Project Home: https://github.com/voidqk/polybooljs
816
- */var lU=Xz,fU=Zz,OA=tU,sU=nU,Bc=aU,MA=uU,ci=!1,$c=fU(),Gn;Gn={buildLog:function(e){return e===!0?ci=lU():e===!1&&(ci=!1),ci===!1?!1:ci.list},epsilon:function(e){return $c.epsilon(e)},segments:function(e){var t=OA(!0,$c,ci);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=OA(!1,$c,ci);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Bc.union(e.combined,ci),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Bc.intersect(e.combined,ci),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Bc.difference(e.combined,ci),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Bc.differenceRev(e.combined,ci),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Bc.xor(e.combined,ci),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:sU(e.segments,$c,ci),inverted:e.inverted}},polygonFromGeoJSON:function(e){return MA.toPolygon(Gn,e)},polygonToGeoJSON:function(e){return MA.fromPolygon(Gn,$c,e)},union:function(e,t){return zc(e,t,Gn.selectUnion)},intersect:function(e,t){return zc(e,t,Gn.selectIntersect)},difference:function(e,t){return zc(e,t,Gn.selectDifference)},differenceRev:function(e,t){return zc(e,t,Gn.selectDifferenceRev)},xor:function(e,t){return zc(e,t,Gn.selectXor)}};function zc(e,t,r){var n=Gn.segments(e),i=Gn.segments(t),a=Gn.combine(n,i),u=r(a);return Gn.polygon(u)}typeof window=="object"&&(window.PolyBool=Gn);var eY=Gn,tY=function(t,r,n,i){var a=t[0],u=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,c=0,v=s-1;c<s;v=c++){var x=r[c+n][0],y=r[c+n][1],g=r[v+n][0],k=r[v+n][1],N=y>u!=k>u&&a<(g-x)*(u-y)/(k-y)+x;N&&(l=!l)}return l};const rY=el(n7);var N2={},cU={get exports(){return N2},set exports(e){N2=e}};function hU(e,t,r,n,i){for(var a=i+1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s>=0?(a=u,i=u-1):n=u+1}return a}function dU(e,t,r,n,i){for(var a=i+1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s>0?(a=u,i=u-1):n=u+1}return a}function pU(e,t,r,n,i){for(var a=n-1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s<0?(a=u,n=u+1):i=u-1}return a}function vU(e,t,r,n,i){for(var a=n-1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s<=0?(a=u,n=u+1):i=u-1}return a}function mU(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,u=e[a],l=r!==void 0?r(u,t):u-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function Uc(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var gU={ge:function(e,t,r,n,i){return Uc(e,t,r,n,i,hU)},gt:function(e,t,r,n,i){return Uc(e,t,r,n,i,dU)},lt:function(e,t,r,n,i){return Uc(e,t,r,n,i,pU)},le:function(e,t,r,n,i){return Uc(e,t,r,n,i,vU)},eq:function(e,t,r,n,i){return Uc(e,t,r,n,i,mU)}},sd=yU;function yU(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var Xo=function(t,r,n){var i={},a,u;if(typeof r=="string"&&(r=FA(r)),Array.isArray(r)){var l={};for(u=0;u<r.length;u++)l[r[u]]=!0;r=l}for(a in r)r[a]=FA(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(u=0;u<c.length;u++){var v=c[u];if(n&&(s[v]=!0),v in t){if(i[a]=t[v],n)for(var x=u;x<c.length;x++)s[c[x]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},m1={};function FA(e){return m1[e]?m1[e]:(typeof e=="string"&&(e=m1[e]=e.split(/\s*,\s*|\s+/)),e)}var xU=Xo,_m=_U;function _U(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=xU(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var cd=wU;function wU(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,u=n,l=e.length;u<l;u+=t)e[u]>i&&(i=e[u]),e[u]<a&&(a=e[u]);r[n]=a,r[t+n]=i}return r}var TO=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},Cw=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},NA=Cw,hd=bU;function bU(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,u,l,s;(!t||typeof t=="string")&&(t=new(NA(t||"float32"))(i+r));var c=t.length-r;if(i!==c)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+c);for(a=0,l=r;a<e.length;a++)for(u=0;u<n;u++)t[l++]=e[a][u]===null?NaN:e[a][u]}else if(!t||typeof t=="string"){var v=NA(t||"float32");if(Array.isArray(e)||t==="array")for(t=new v(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new v(e):(t=new v(e.length+r),t.set(e,r))}else t.set(e,r);return t}var SU=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},EU=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const RA=gU,IA=sd,AU=_m,TU=cd,PA=Xo,g1=TO,CU=hd,kU=SU,OU=Cw,LA=EU,MU=1073741824;var FU=function(t,r){r||(r={}),t=CU(t,"float64"),r=PA(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=g1(r.maxDepth,255),i=g1(r.bounds,TU(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=DA(t,i),u=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(OU(r.dtype))(u):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=u));for(let w=0;w<u;++w)l[w]=w;let s=[],c=[],v=[],x=[];g(0,0,1,l,0,1);let y=0;for(let w=0;w<s.length;w++){let A=s[w];if(l.set)l.set(A,y);else for(let R=0,L=A.length;R<L;R++)l[R+y]=A[R];let M=y+s[w].length;x[w]=[y,M],y=M}return l.range=k,l;function g(w,A,M,R,L,D){if(!R.length)return null;let ne=s[L]||(s[L]=[]),Y=v[L]||(v[L]=[]),ae=c[L]||(c[L]=[]),Ce=ne.length;if(L++,L>n||D>MU){for(let Ye=0;Ye<R.length;Ye++)ne.push(R[Ye]),Y.push(D),ae.push(null,null,null,null);return Ce}if(ne.push(R[0]),Y.push(D),R.length<=1)return ae.push(null,null,null,null),Ce;let Fe=M*.5,Ie=w+Fe,je=A+Fe,Ke=[],mt=[],lt=[],Ue=[];for(let Ye=1,It=R.length;Ye<It;Ye++){let Ze=R[Ye],Ee=a[Ze*2],tt=a[Ze*2+1];Ee<Ie?tt<je?Ke.push(Ze):mt.push(Ze):tt<je?lt.push(Ze):Ue.push(Ze)}return D<<=2,ae.push(g(w,A,Fe,Ke,L,D),g(w,je,Fe,mt,L,D+1),g(Ie,A,Fe,lt,L,D+2),g(Ie,je,Fe,Ue,L,D+3)),Ce}function k(...w){let A;if(kU(w[w.length-1])){let lt=w.pop();!w.length&&(lt.x!=null||lt.l!=null||lt.left!=null)&&(w=[lt],A={}),A=PA(lt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else A={};w.length||(w=i);let M=AU(...w),[R,L,D,ne]=[Math.min(M.x,M.x+M.width),Math.min(M.y,M.y+M.height),Math.max(M.x,M.x+M.width),Math.max(M.y,M.y+M.height)],[Y,ae,Ce,Fe]=DA([R,L,D,ne],i),Ie=g1(A.level,s.length);if(A.d!=null){let lt;typeof A.d=="number"?lt=[A.d,A.d]:A.d.length&&(lt=A.d),Ie=Math.min(Math.max(Math.ceil(-LA(Math.abs(lt[0])/(i[2]-i[0]))),Math.ceil(-LA(Math.abs(lt[1])/(i[3]-i[1])))),Ie)}if(Ie=Math.min(Ie,s.length),A.lod)return N(Y,ae,Ce,Fe,Ie);let je=[];Ke(0,0,1,0,0,1);function Ke(lt,Ue,Ye,It,Ze,Ee){if(Ze===null||Ee===null)return;let tt=lt+Ye,ct=Ue+Ye;if(Y>tt||ae>ct||Ce<lt||Fe<Ue||It>=Ie||Ze===Ee)return;let rt=s[It];Ee===void 0&&(Ee=rt.length);for(let G=Ze;G<Ee;G++){let ie=rt[G],C=t[ie*2],S=t[ie*2+1];C>=R&&C<=D&&S>=L&&S<=ne&&je.push(ie)}let yt=c[It],Tt=yt[Ze*4+0],Yt=yt[Ze*4+1],Xt=yt[Ze*4+2],Qe=yt[Ze*4+3],Ot=mt(yt,Ze+1),jt=Ye*.5,Ae=It+1;Ke(lt,Ue,jt,Ae,Tt,Yt||Xt||Qe||Ot),Ke(lt,Ue+jt,jt,Ae,Yt,Xt||Qe||Ot),Ke(lt+jt,Ue,jt,Ae,Xt,Qe||Ot),Ke(lt+jt,Ue+jt,jt,Ae,Qe,Ot)}function mt(lt,Ue){let Ye=null,It=0;for(;Ye===null;)if(Ye=lt[Ue*4+It],It++,It>lt.length)return null;return Ye}return je}function N(w,A,M,R,L){let D=[];for(let ne=0;ne<L;ne++){let Y=v[ne],ae=x[ne][0],Ce=b(w,A,ne),Fe=b(M,R,ne),Ie=RA.ge(Y,Ce),je=RA.gt(Y,Fe,Ie,Y.length-1);D[ne]=[Ie+ae,je+ae]}return D}function b(w,A,M){let R=1,L=.5,D=.5,ne=.5;for(let Y=0;Y<M;Y++)R<<=2,R+=w<L?A<D?0:1:A<D?2:3,ne*=.5,L+=w<L?-ne:ne,D+=A<D?-ne:ne;return R}};function DA(e,t){let[r,n,i,a]=t,u=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,v=e.length/2;c<v;c++)s[2*c]=IA((e[2*c]-r)*u,0,1),s[2*c+1]=IA((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=FU})(cU);var CO=NU;function NU(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var u=a[0],l=u.toUpperCase();if(u!=l)switch(a[0]=l,u){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var RU=function(){function e(t,r){var n=[],i=!0,a=!1,u=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,u=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw u}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xh=Math.PI*2,y1=function(t,r,n,i,a,u,l){var s=t.x,c=t.y;s*=r,c*=n;var v=i*s-a*c,x=a*s+i*c;return{x:v+u,y:x+l}},IU=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),u=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:u+l*n,y:l-u*n},{x:u,y:l}]},BA=function(t,r,n,i){var a=t*i-r*n<0?-1:1,u=t*n+r*i;return u>1&&(u=1),u<-1&&(u=-1),a*Math.acos(u)},PU=function(t,r,n,i,a,u,l,s,c,v,x,y){var g=Math.pow(a,2),k=Math.pow(u,2),N=Math.pow(x,2),b=Math.pow(y,2),w=g*k-g*b-k*N;w<0&&(w=0),w/=g*b+k*N,w=Math.sqrt(w)*(l===s?-1:1);var A=w*a/u*y,M=w*-u/a*x,R=v*A-c*M+(t+n)/2,L=c*A+v*M+(r+i)/2,D=(x-A)/a,ne=(y-M)/u,Y=(-x-A)/a,ae=(-y-M)/u,Ce=BA(1,0,D,ne),Fe=BA(D,ne,Y,ae);return s===0&&Fe>0&&(Fe-=xh),s===1&&Fe<0&&(Fe+=xh),[R,L,Ce,Fe]},LU=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,u=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,v=t.largeArcFlag,x=v===void 0?0:v,y=t.sweepFlag,g=y===void 0?0:y,k=[];if(u===0||l===0)return[];var N=Math.sin(c*xh/360),b=Math.cos(c*xh/360),w=b*(r-i)/2+N*(n-a)/2,A=-N*(r-i)/2+b*(n-a)/2;if(w===0&&A===0)return[];u=Math.abs(u),l=Math.abs(l);var M=Math.pow(w,2)/Math.pow(u,2)+Math.pow(A,2)/Math.pow(l,2);M>1&&(u*=Math.sqrt(M),l*=Math.sqrt(M));var R=PU(r,n,i,a,u,l,x,g,N,b,w,A),L=RU(R,4),D=L[0],ne=L[1],Y=L[2],ae=L[3],Ce=Math.abs(ae)/(xh/4);Math.abs(1-Ce)<1e-7&&(Ce=1);var Fe=Math.max(Math.ceil(Ce),1);ae/=Fe;for(var Ie=0;Ie<Fe;Ie++)k.push(IU(Y,ae)),Y+=ae;return k.map(function(je){var Ke=y1(je[0],u,l,b,N,D,ne),mt=Ke.x,lt=Ke.y,Ue=y1(je[1],u,l,b,N,D,ne),Ye=Ue.x,It=Ue.y,Ze=y1(je[2],u,l,b,N,D,ne),Ee=Ze.x,tt=Ze.y;return{x1:mt,y1:lt,x2:Ye,y2:It,x:Ee,y:tt}})};const DU=Object.freeze(Object.defineProperty({__proto__:null,default:LU},Symbol.toStringTag,{value:"Module"})),BU=el(DU);var $U=UU,zU=BU;function UU(e){for(var t,r=[],n=0,i=0,a=0,u=0,l=null,s=null,c=0,v=0,x=0,y=e.length;x<y;x++){var g=e[x],k=g[0];switch(k){case"M":a=g[1],u=g[2];break;case"A":var N=zU({px:c,py:v,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!N.length)continue;for(var b=0,w;b<N.length;b++)w=N[b],g=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<N.length-1&&r.push(g);break;case"S":var A=c,M=v;(t=="C"||t=="S")&&(A+=A-n,M+=M-i),g=["C",A,M,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=v*2-s):(l=c,s=v),g=$A(c,v,l,s,g[1],g[2]);break;case"Q":l=g[1],s=g[2],g=$A(c,v,g[1],g[2],g[3],g[4]);break;case"L":g=n0(c,v,g[1],g[2]);break;case"H":g=n0(c,v,g[1],v);break;case"V":g=n0(c,v,c,g[1]);break;case"Z":g=n0(c,v,a,u);break}t=k,c=g[g.length-2],v=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=c,i=v),r.push(g)}return r}function n0(e,t,r,n){return["C",e,t,r,n,r,n]}function $A(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var kO=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},jU=AO,GU=CO,HU=$U,WU=kO,VU=qU;function qU(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!WU(e))throw Error("String is not an SVG path.");e=jU(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=GU(e),e=HU(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var Ou=Math.PI,zA=MO(120),YU=XU;function XU(e){for(var t,r=[],n=0,i=0,a=0,u=0,l=null,s=null,c=0,v=0,x=0,y=e.length;x<y;x++){var g=e[x],k=g[0];switch(k){case"M":a=g[1],u=g[2];break;case"A":g=OO(c,v,g[1],g[2],MO(g[3]),g[4],g[5],g[6],g[7]),g.unshift("C"),g.length>7&&(r.push(g.splice(0,7)),g.unshift("C"));break;case"S":var N=c,b=v;(t=="C"||t=="S")&&(N+=N-n,b+=b-i),g=["C",N,b,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=v*2-s):(l=c,s=v),g=UA(c,v,l,s,g[1],g[2]);break;case"Q":l=g[1],s=g[2],g=UA(c,v,g[1],g[2],g[3],g[4]);break;case"L":g=i0(c,v,g[1],g[2]);break;case"H":g=i0(c,v,g[1],v);break;case"V":g=i0(c,v,c,g[1]);break;case"Z":g=i0(c,v,a,u);break}t=k,c=g[g.length-2],v=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=c,i=v),r.push(g)}return r}function i0(e,t,r,n){return["C",e,t,r,n,r,n]}function UA(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function OO(e,t,r,n,i,a,u,l,s,c){if(c)M=c[0],R=c[1],w=c[2],A=c[3];else{var v=x1(e,t,-i);e=v.x,t=v.y,v=x1(l,s,-i),l=v.x,s=v.y;var x=(e-l)/2,y=(t-s)/2,g=x*x/(r*r)+y*y/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var k=r*r,N=n*n,b=(a==u?-1:1)*Math.sqrt(Math.abs((k*N-k*y*y-N*x*x)/(k*y*y+N*x*x)));b==1/0&&(b=1);var w=b*r*y/n+(e+l)/2,A=b*-n*x/r+(t+s)/2,M=Math.asin(((t-A)/n).toFixed(9)),R=Math.asin(((s-A)/n).toFixed(9));M=e<w?Ou-M:M,R=l<w?Ou-R:R,M<0&&(M=Ou*2+M),R<0&&(R=Ou*2+R),u&&M>R&&(M=M-Ou*2),!u&&R>M&&(R=R-Ou*2)}if(Math.abs(R-M)>zA){var L=R,D=l,ne=s;R=M+zA*(u&&R>M?1:-1),l=w+r*Math.cos(R),s=A+n*Math.sin(R);var Y=OO(l,s,r,n,i,0,u,D,ne,[R,L,w,A])}var ae=Math.tan((R-M)/4),Ce=4/3*r*ae,Fe=4/3*n*ae,Ie=[2*e-(e+Ce*Math.sin(M)),2*t-(t-Fe*Math.cos(M)),l+Ce*Math.sin(R),s-Fe*Math.cos(R),l,s];if(c)return Ie;Y&&(Ie=Ie.concat(Y));for(var je=0;je<Ie.length;){var Ke=x1(Ie[je],Ie[je+1],i);Ie[je++]=Ke.x,Ie[je++]=Ke.y}return Ie}function x1(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function MO(e){return e*(Ou/180)}var QU=CO,ZU=YU,KU={M:"moveTo",C:"bezierCurveTo"},JU=function(e,t){e.beginPath(),ZU(QU(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[KU[n]].apply(e,i)}),e.closePath()},ej=sd,tj=rj,_h=1e20;function rj(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,u,l,s,c,v,x,y,g,k,N;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,u=t.height,s=e,t.stride?v=t.stride:v=Math.floor(e.length/a/u)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(y=e,x=y.getContext("2d"),a=y.width,u=y.height,g=x.getImageData(0,0,a,u),s=g.data,v=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(y=e.canvas,x=e,a=y.width,u=y.height,g=x.getImageData(0,0,a,u),s=g.data,v=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,u=e.height,s=g.data,v=4);if(l=Math.max(a,u),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*u),k=0,N=c.length;k<N;k++)s[k]=c[k*v+i]/255;else if(v!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*u),w=Array(a*u),A=Array(l),M=Array(l),R=Array(l+1),L=Array(l);for(k=0,N=a*u;k<N;k++){var D=s[k];b[k]=D===1?0:D===0?_h:Math.pow(Math.max(0,.5-D),2),w[k]=D===1?_h:D===0?0:Math.pow(Math.max(0,D-.5),2)}jA(b,a,u,A,M,L,R),jA(w,a,u,A,M,L,R);var ne=window.Float32Array?new Float32Array(a*u):new Array(a*u);for(k=0,N=a*u;k<N;k++)ne[k]=ej(1-((b[k]-w[k])/n+r),0,1);return ne}function jA(e,t,r,n,i,a,u){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(GA(n,i,a,u,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(GA(n,i,a,u,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function GA(e,t,r,n,i){r[0]=0,n[0]=-_h,n[1]=+_h;for(var a=1,u=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[u]]+r[u]*r[u]))/(2*a-2*r[u]);l<=n[u];)u--,l=(e[a]+a*a-(e[r[u]]+r[u]*r[u]))/(2*a-2*r[u]);u++,r[u]=a,n[u]=l,n[u+1]=+_h}for(a=0,u=0;a<i;a++){for(;n[u+1]<a;)u++;t[a]=(a-r[u])*(a-r[u])+e[r[u]]}}var nj=VU,ij=AO,aj=JU,oj=kO,uj=tj,R2=document.createElement("canvas"),Rn=R2.getContext("2d"),nY=lj;function lj(e,t){if(!oj(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=R2.width=t.w||t.width||200,n=R2.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,u=t.viewbox||t.viewBox||nj(e),l=[r/(u[2]-u[0]),n/(u[3]-u[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Rn.fillStyle="black",Rn.fillRect(0,0,r,n),Rn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Rn.strokeStyle="white":Rn.strokeStyle="black",Rn.lineWidth=Math.abs(a)),Rn.translate(r*.5,n*.5),Rn.scale(s,s),fj()){var c=new Path2D(e);Rn.fill(c),a&&Rn.stroke(c)}else{var v=ij(e);aj(Rn,v),Rn.fill(),a&&Rn.stroke()}Rn.setTransform(1,0,0,1,0,0);var x=uj(Rn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return x}var a0;function fj(){if(a0!=null)return a0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return a0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return a0=r&&r.data&&r.data[3]===255}var sj={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},cj=Object.prototype.toString,FO=function(e){var t;return cj.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},HA=sj,hj=FO,Au=TO,dj=pj,WA={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function pj(e){var t,r=[],n=1,i;if(typeof e=="string")if(HA[e])r=HA[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),u=a.length,l=u<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],u===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],u===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var u=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,k){if(/%$/.test(g))return k===u?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[k]==="h"){if(/deg$/.test(g))return parseFloat(g);if(WA[g]!==void 0)return WA[g]}return parseFloat(g)}),s===a&&r.push(1),n=c||r[u]===void 0?1:r[u],r=r.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(x){return parseFloat(x)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(hj(e)){var v=Au(e.r,e.red,e.R,null);v!==null?(i="rgb",r=[v,Au(e.g,e.green,e.G),Au(e.b,e.blue,e.B)]):(i="hsl",r=[Au(e.h,e.hue,e.H),Au(e.s,e.saturation,e.S),Au(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Au(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Lr.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var vj={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,u,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)u=t+1/3*-(c-1),u<0?u++:u>1&&u--,6*u<1?s=i+(a-i)*6*u:2*u<1?s=a:3*u<2?s=i+(a-i)*(2/3-u)*6:s=i,l[c]=s*255;return l}},mj=dj,gj=vj,o0=sd,yj=function(t){var r,n=mj(t);return n.space?(r=Array(3),r[0]=o0(n.values[0],0,255),r[1]=o0(n.values[1],0,255),r[2]=o0(n.values[2],0,255),n.space[0]==="h"&&(r=gj.rgb(r)),r.push(o0(n.alpha,0,1)),r):[]},xj=yj,u0=sd,_j=Cw,wm=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=_j(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=xj(t),t[0]/=255,t[1]/=255,t[2]/=255),wj(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=u0(Math.floor(t[0]*255),0,255),i[1]=u0(Math.floor(t[1]*255),0,255),i[2]=u0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:u0(Math.floor(t[3]*255),0,255)),i)};function wj(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var Wh={},bj={get exports(){return Wh},set exports(e){Wh=e}},l0=sd;bj.exports=NO;Wh.to=NO;Wh.from=Sj;function NO(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=l0(r,0,255)&255,n=l0(n,0,255)&255,i=l0(i,0,255)&255,a=l0(a,0,255)&255;var u=r*16777216+(n<<16)+(i<<8)+a;return u}function Sj(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var RO=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},IO=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var u=n[i];for(var l in u)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(u[l]===!0)s=r[l];else{if(u[l]===!1)continue;if(typeof u[l]=="function"&&(s=u[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},Ej=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ba={},Aj={get exports(){return Ba},set exports(e){Ba=e}};Aj.exports=wh;Ba.float32=Ba.float=wh;Ba.fract32=Ba.fract=Tj;var VA=new Float32Array(1);function Tj(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=wh(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return wh(e-wh(e))}function wh(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(VA[0]=e,VA[0])}function Cj(e,t){return Mj(e)||Nj(e,t)||PO(e,t)||Ij()}function kj(e){return Oj(e)||Fj(e)||PO(e)||Rj()}function Oj(e){if(Array.isArray(e))return I2(e)}function Mj(e){if(Array.isArray(e))return e}function Fj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,u,l;try{for(r=r.call(e);!(i=(u=r.next()).done)&&(n.push(u.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function PO(e,t){if(e){if(typeof e=="string")return I2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I2(e,t)}}function I2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
816
+ */var lU=Xz,fU=Zz,OA=tU,sU=nU,Bc=aU,MA=uU,ci=!1,$c=fU(),Gn;Gn={buildLog:function(e){return e===!0?ci=lU():e===!1&&(ci=!1),ci===!1?!1:ci.list},epsilon:function(e){return $c.epsilon(e)},segments:function(e){var t=OA(!0,$c,ci);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=OA(!1,$c,ci);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Bc.union(e.combined,ci),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Bc.intersect(e.combined,ci),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Bc.difference(e.combined,ci),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Bc.differenceRev(e.combined,ci),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Bc.xor(e.combined,ci),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:sU(e.segments,$c,ci),inverted:e.inverted}},polygonFromGeoJSON:function(e){return MA.toPolygon(Gn,e)},polygonToGeoJSON:function(e){return MA.fromPolygon(Gn,$c,e)},union:function(e,t){return zc(e,t,Gn.selectUnion)},intersect:function(e,t){return zc(e,t,Gn.selectIntersect)},difference:function(e,t){return zc(e,t,Gn.selectDifference)},differenceRev:function(e,t){return zc(e,t,Gn.selectDifferenceRev)},xor:function(e,t){return zc(e,t,Gn.selectXor)}};function zc(e,t,r){var n=Gn.segments(e),i=Gn.segments(t),a=Gn.combine(n,i),u=r(a);return Gn.polygon(u)}typeof window=="object"&&(window.PolyBool=Gn);var eY=Gn,tY=function(t,r,n,i){var a=t[0],u=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,c=0,v=s-1;c<s;v=c++){var x=r[c+n][0],y=r[c+n][1],g=r[v+n][0],k=r[v+n][1],N=y>u!=k>u&&a<(g-x)*(u-y)/(k-y)+x;N&&(l=!l)}return l};const rY=el(n$);var N2={},cU={get exports(){return N2},set exports(e){N2=e}};function hU(e,t,r,n,i){for(var a=i+1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s>=0?(a=u,i=u-1):n=u+1}return a}function dU(e,t,r,n,i){for(var a=i+1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s>0?(a=u,i=u-1):n=u+1}return a}function pU(e,t,r,n,i){for(var a=n-1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s<0?(a=u,n=u+1):i=u-1}return a}function vU(e,t,r,n,i){for(var a=n-1;n<=i;){var u=n+i>>>1,l=e[u],s=r!==void 0?r(l,t):l-t;s<=0?(a=u,n=u+1):i=u-1}return a}function mU(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,u=e[a],l=r!==void 0?r(u,t):u-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function Uc(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var gU={ge:function(e,t,r,n,i){return Uc(e,t,r,n,i,hU)},gt:function(e,t,r,n,i){return Uc(e,t,r,n,i,dU)},lt:function(e,t,r,n,i){return Uc(e,t,r,n,i,pU)},le:function(e,t,r,n,i){return Uc(e,t,r,n,i,vU)},eq:function(e,t,r,n,i){return Uc(e,t,r,n,i,mU)}},sd=yU;function yU(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var Xo=function(t,r,n){var i={},a,u;if(typeof r=="string"&&(r=FA(r)),Array.isArray(r)){var l={};for(u=0;u<r.length;u++)l[r[u]]=!0;r=l}for(a in r)r[a]=FA(r[a]);var s={};for(a in r){var c=r[a];if(Array.isArray(c))for(u=0;u<c.length;u++){var v=c[u];if(n&&(s[v]=!0),v in t){if(i[a]=t[v],n)for(var x=u;x<c.length;x++)s[c[x]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},m1={};function FA(e){return m1[e]?m1[e]:(typeof e=="string"&&(e=m1[e]=e.split(/\s*,\s*|\s+/)),e)}var xU=Xo,_m=_U;function _U(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=xU(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var cd=wU;function wU(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,u=n,l=e.length;u<l;u+=t)e[u]>i&&(i=e[u]),e[u]<a&&(a=e[u]);r[n]=a,r[t+n]=i}return r}var TO=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},Cw=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},NA=Cw,hd=bU;function bU(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,u,l,s;(!t||typeof t=="string")&&(t=new(NA(t||"float32"))(i+r));var c=t.length-r;if(i!==c)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+c);for(a=0,l=r;a<e.length;a++)for(u=0;u<n;u++)t[l++]=e[a][u]===null?NaN:e[a][u]}else if(!t||typeof t=="string"){var v=NA(t||"float32");if(Array.isArray(e)||t==="array")for(t=new v(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new v(e):(t=new v(e.length+r),t.set(e,r))}else t.set(e,r);return t}var SU=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},EU=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const RA=gU,IA=sd,AU=_m,TU=cd,PA=Xo,g1=TO,CU=hd,kU=SU,OU=Cw,LA=EU,MU=1073741824;var FU=function(t,r){r||(r={}),t=CU(t,"float64"),r=PA(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=g1(r.maxDepth,255),i=g1(r.bounds,TU(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=DA(t,i),u=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(OU(r.dtype))(u):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=u));for(let w=0;w<u;++w)l[w]=w;let s=[],c=[],v=[],x=[];g(0,0,1,l,0,1);let y=0;for(let w=0;w<s.length;w++){let A=s[w];if(l.set)l.set(A,y);else for(let R=0,L=A.length;R<L;R++)l[R+y]=A[R];let M=y+s[w].length;x[w]=[y,M],y=M}return l.range=k,l;function g(w,A,M,R,L,D){if(!R.length)return null;let ne=s[L]||(s[L]=[]),Y=v[L]||(v[L]=[]),ae=c[L]||(c[L]=[]),Ce=ne.length;if(L++,L>n||D>MU){for(let Ye=0;Ye<R.length;Ye++)ne.push(R[Ye]),Y.push(D),ae.push(null,null,null,null);return Ce}if(ne.push(R[0]),Y.push(D),R.length<=1)return ae.push(null,null,null,null),Ce;let Fe=M*.5,Ie=w+Fe,je=A+Fe,Ke=[],mt=[],lt=[],Ue=[];for(let Ye=1,It=R.length;Ye<It;Ye++){let Ze=R[Ye],Ee=a[Ze*2],tt=a[Ze*2+1];Ee<Ie?tt<je?Ke.push(Ze):mt.push(Ze):tt<je?lt.push(Ze):Ue.push(Ze)}return D<<=2,ae.push(g(w,A,Fe,Ke,L,D),g(w,je,Fe,mt,L,D+1),g(Ie,A,Fe,lt,L,D+2),g(Ie,je,Fe,Ue,L,D+3)),Ce}function k(...w){let A;if(kU(w[w.length-1])){let lt=w.pop();!w.length&&(lt.x!=null||lt.l!=null||lt.left!=null)&&(w=[lt],A={}),A=PA(lt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else A={};w.length||(w=i);let M=AU(...w),[R,L,D,ne]=[Math.min(M.x,M.x+M.width),Math.min(M.y,M.y+M.height),Math.max(M.x,M.x+M.width),Math.max(M.y,M.y+M.height)],[Y,ae,Ce,Fe]=DA([R,L,D,ne],i),Ie=g1(A.level,s.length);if(A.d!=null){let lt;typeof A.d=="number"?lt=[A.d,A.d]:A.d.length&&(lt=A.d),Ie=Math.min(Math.max(Math.ceil(-LA(Math.abs(lt[0])/(i[2]-i[0]))),Math.ceil(-LA(Math.abs(lt[1])/(i[3]-i[1])))),Ie)}if(Ie=Math.min(Ie,s.length),A.lod)return N(Y,ae,Ce,Fe,Ie);let je=[];Ke(0,0,1,0,0,1);function Ke(lt,Ue,Ye,It,Ze,Ee){if(Ze===null||Ee===null)return;let tt=lt+Ye,ct=Ue+Ye;if(Y>tt||ae>ct||Ce<lt||Fe<Ue||It>=Ie||Ze===Ee)return;let rt=s[It];Ee===void 0&&(Ee=rt.length);for(let G=Ze;G<Ee;G++){let ie=rt[G],C=t[ie*2],S=t[ie*2+1];C>=R&&C<=D&&S>=L&&S<=ne&&je.push(ie)}let yt=c[It],Tt=yt[Ze*4+0],Yt=yt[Ze*4+1],Xt=yt[Ze*4+2],Qe=yt[Ze*4+3],Ot=mt(yt,Ze+1),jt=Ye*.5,Ae=It+1;Ke(lt,Ue,jt,Ae,Tt,Yt||Xt||Qe||Ot),Ke(lt,Ue+jt,jt,Ae,Yt,Xt||Qe||Ot),Ke(lt+jt,Ue,jt,Ae,Xt,Qe||Ot),Ke(lt+jt,Ue+jt,jt,Ae,Qe,Ot)}function mt(lt,Ue){let Ye=null,It=0;for(;Ye===null;)if(Ye=lt[Ue*4+It],It++,It>lt.length)return null;return Ye}return je}function N(w,A,M,R,L){let D=[];for(let ne=0;ne<L;ne++){let Y=v[ne],ae=x[ne][0],Ce=b(w,A,ne),Fe=b(M,R,ne),Ie=RA.ge(Y,Ce),je=RA.gt(Y,Fe,Ie,Y.length-1);D[ne]=[Ie+ae,je+ae]}return D}function b(w,A,M){let R=1,L=.5,D=.5,ne=.5;for(let Y=0;Y<M;Y++)R<<=2,R+=w<L?A<D?0:1:A<D?2:3,ne*=.5,L+=w<L?-ne:ne,D+=A<D?-ne:ne;return R}};function DA(e,t){let[r,n,i,a]=t,u=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let c=0,v=e.length/2;c<v;c++)s[2*c]=IA((e[2*c]-r)*u,0,1),s[2*c+1]=IA((e[2*c+1]-n)*l,0,1);return s}(function(e){e.exports=FU})(cU);var CO=NU;function NU(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var u=a[0],l=u.toUpperCase();if(u!=l)switch(a[0]=l,u){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var RU=function(){function e(t,r){var n=[],i=!0,a=!1,u=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,u=c}finally{try{!i&&l.return&&l.return()}finally{if(a)throw u}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xh=Math.PI*2,y1=function(t,r,n,i,a,u,l){var s=t.x,c=t.y;s*=r,c*=n;var v=i*s-a*c,x=a*s+i*c;return{x:v+u,y:x+l}},IU=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),u=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:u+l*n,y:l-u*n},{x:u,y:l}]},BA=function(t,r,n,i){var a=t*i-r*n<0?-1:1,u=t*n+r*i;return u>1&&(u=1),u<-1&&(u=-1),a*Math.acos(u)},PU=function(t,r,n,i,a,u,l,s,c,v,x,y){var g=Math.pow(a,2),k=Math.pow(u,2),N=Math.pow(x,2),b=Math.pow(y,2),w=g*k-g*b-k*N;w<0&&(w=0),w/=g*b+k*N,w=Math.sqrt(w)*(l===s?-1:1);var A=w*a/u*y,M=w*-u/a*x,R=v*A-c*M+(t+n)/2,L=c*A+v*M+(r+i)/2,D=(x-A)/a,ne=(y-M)/u,Y=(-x-A)/a,ae=(-y-M)/u,Ce=BA(1,0,D,ne),Fe=BA(D,ne,Y,ae);return s===0&&Fe>0&&(Fe-=xh),s===1&&Fe<0&&(Fe+=xh),[R,L,Ce,Fe]},LU=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,u=t.rx,l=t.ry,s=t.xAxisRotation,c=s===void 0?0:s,v=t.largeArcFlag,x=v===void 0?0:v,y=t.sweepFlag,g=y===void 0?0:y,k=[];if(u===0||l===0)return[];var N=Math.sin(c*xh/360),b=Math.cos(c*xh/360),w=b*(r-i)/2+N*(n-a)/2,A=-N*(r-i)/2+b*(n-a)/2;if(w===0&&A===0)return[];u=Math.abs(u),l=Math.abs(l);var M=Math.pow(w,2)/Math.pow(u,2)+Math.pow(A,2)/Math.pow(l,2);M>1&&(u*=Math.sqrt(M),l*=Math.sqrt(M));var R=PU(r,n,i,a,u,l,x,g,N,b,w,A),L=RU(R,4),D=L[0],ne=L[1],Y=L[2],ae=L[3],Ce=Math.abs(ae)/(xh/4);Math.abs(1-Ce)<1e-7&&(Ce=1);var Fe=Math.max(Math.ceil(Ce),1);ae/=Fe;for(var Ie=0;Ie<Fe;Ie++)k.push(IU(Y,ae)),Y+=ae;return k.map(function(je){var Ke=y1(je[0],u,l,b,N,D,ne),mt=Ke.x,lt=Ke.y,Ue=y1(je[1],u,l,b,N,D,ne),Ye=Ue.x,It=Ue.y,Ze=y1(je[2],u,l,b,N,D,ne),Ee=Ze.x,tt=Ze.y;return{x1:mt,y1:lt,x2:Ye,y2:It,x:Ee,y:tt}})};const DU=Object.freeze(Object.defineProperty({__proto__:null,default:LU},Symbol.toStringTag,{value:"Module"})),BU=el(DU);var $U=UU,zU=BU;function UU(e){for(var t,r=[],n=0,i=0,a=0,u=0,l=null,s=null,c=0,v=0,x=0,y=e.length;x<y;x++){var g=e[x],k=g[0];switch(k){case"M":a=g[1],u=g[2];break;case"A":var N=zU({px:c,py:v,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!N.length)continue;for(var b=0,w;b<N.length;b++)w=N[b],g=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],b<N.length-1&&r.push(g);break;case"S":var A=c,M=v;(t=="C"||t=="S")&&(A+=A-n,M+=M-i),g=["C",A,M,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=v*2-s):(l=c,s=v),g=$A(c,v,l,s,g[1],g[2]);break;case"Q":l=g[1],s=g[2],g=$A(c,v,g[1],g[2],g[3],g[4]);break;case"L":g=n0(c,v,g[1],g[2]);break;case"H":g=n0(c,v,g[1],v);break;case"V":g=n0(c,v,c,g[1]);break;case"Z":g=n0(c,v,a,u);break}t=k,c=g[g.length-2],v=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=c,i=v),r.push(g)}return r}function n0(e,t,r,n){return["C",e,t,r,n,r,n]}function $A(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var kO=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},jU=AO,GU=CO,HU=$U,WU=kO,VU=qU;function qU(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!WU(e))throw Error("String is not an SVG path.");e=jU(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=GU(e),e=HU(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var Ou=Math.PI,zA=MO(120),YU=XU;function XU(e){for(var t,r=[],n=0,i=0,a=0,u=0,l=null,s=null,c=0,v=0,x=0,y=e.length;x<y;x++){var g=e[x],k=g[0];switch(k){case"M":a=g[1],u=g[2];break;case"A":g=OO(c,v,g[1],g[2],MO(g[3]),g[4],g[5],g[6],g[7]),g.unshift("C"),g.length>7&&(r.push(g.splice(0,7)),g.unshift("C"));break;case"S":var N=c,b=v;(t=="C"||t=="S")&&(N+=N-n,b+=b-i),g=["C",N,b,g[1],g[2],g[3],g[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,s=v*2-s):(l=c,s=v),g=UA(c,v,l,s,g[1],g[2]);break;case"Q":l=g[1],s=g[2],g=UA(c,v,g[1],g[2],g[3],g[4]);break;case"L":g=i0(c,v,g[1],g[2]);break;case"H":g=i0(c,v,g[1],v);break;case"V":g=i0(c,v,c,g[1]);break;case"Z":g=i0(c,v,a,u);break}t=k,c=g[g.length-2],v=g[g.length-1],g.length>4?(n=g[g.length-4],i=g[g.length-3]):(n=c,i=v),r.push(g)}return r}function i0(e,t,r,n){return["C",e,t,r,n,r,n]}function UA(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function OO(e,t,r,n,i,a,u,l,s,c){if(c)M=c[0],R=c[1],w=c[2],A=c[3];else{var v=x1(e,t,-i);e=v.x,t=v.y,v=x1(l,s,-i),l=v.x,s=v.y;var x=(e-l)/2,y=(t-s)/2,g=x*x/(r*r)+y*y/(n*n);g>1&&(g=Math.sqrt(g),r=g*r,n=g*n);var k=r*r,N=n*n,b=(a==u?-1:1)*Math.sqrt(Math.abs((k*N-k*y*y-N*x*x)/(k*y*y+N*x*x)));b==1/0&&(b=1);var w=b*r*y/n+(e+l)/2,A=b*-n*x/r+(t+s)/2,M=Math.asin(((t-A)/n).toFixed(9)),R=Math.asin(((s-A)/n).toFixed(9));M=e<w?Ou-M:M,R=l<w?Ou-R:R,M<0&&(M=Ou*2+M),R<0&&(R=Ou*2+R),u&&M>R&&(M=M-Ou*2),!u&&R>M&&(R=R-Ou*2)}if(Math.abs(R-M)>zA){var L=R,D=l,ne=s;R=M+zA*(u&&R>M?1:-1),l=w+r*Math.cos(R),s=A+n*Math.sin(R);var Y=OO(l,s,r,n,i,0,u,D,ne,[R,L,w,A])}var ae=Math.tan((R-M)/4),Ce=4/3*r*ae,Fe=4/3*n*ae,Ie=[2*e-(e+Ce*Math.sin(M)),2*t-(t-Fe*Math.cos(M)),l+Ce*Math.sin(R),s-Fe*Math.cos(R),l,s];if(c)return Ie;Y&&(Ie=Ie.concat(Y));for(var je=0;je<Ie.length;){var Ke=x1(Ie[je],Ie[je+1],i);Ie[je++]=Ke.x,Ie[je++]=Ke.y}return Ie}function x1(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function MO(e){return e*(Ou/180)}var QU=CO,ZU=YU,KU={M:"moveTo",C:"bezierCurveTo"},JU=function(e,t){e.beginPath(),ZU(QU(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[KU[n]].apply(e,i)}),e.closePath()},ej=sd,tj=rj,_h=1e20;function rj(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,u,l,s,c,v,x,y,g,k,N;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,u=t.height,s=e,t.stride?v=t.stride:v=Math.floor(e.length/a/u)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(y=e,x=y.getContext("2d"),a=y.width,u=y.height,g=x.getImageData(0,0,a,u),s=g.data,v=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(y=e.canvas,x=e,a=y.width,u=y.height,g=x.getImageData(0,0,a,u),s=g.data,v=4):window.ImageData&&e instanceof window.ImageData&&(g=e,a=e.width,u=e.height,s=g.data,v=4);if(l=Math.max(a,u),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(c=s,s=Array(a*u),k=0,N=c.length;k<N;k++)s[k]=c[k*v+i]/255;else if(v!==1)throw Error("Raw data can have only 1 value per pixel");var b=Array(a*u),w=Array(a*u),A=Array(l),M=Array(l),R=Array(l+1),L=Array(l);for(k=0,N=a*u;k<N;k++){var D=s[k];b[k]=D===1?0:D===0?_h:Math.pow(Math.max(0,.5-D),2),w[k]=D===1?_h:D===0?0:Math.pow(Math.max(0,D-.5),2)}jA(b,a,u,A,M,L,R),jA(w,a,u,A,M,L,R);var ne=window.Float32Array?new Float32Array(a*u):new Array(a*u);for(k=0,N=a*u;k<N;k++)ne[k]=ej(1-((b[k]-w[k])/n+r),0,1);return ne}function jA(e,t,r,n,i,a,u){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(GA(n,i,a,u,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(GA(n,i,a,u,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function GA(e,t,r,n,i){r[0]=0,n[0]=-_h,n[1]=+_h;for(var a=1,u=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[u]]+r[u]*r[u]))/(2*a-2*r[u]);l<=n[u];)u--,l=(e[a]+a*a-(e[r[u]]+r[u]*r[u]))/(2*a-2*r[u]);u++,r[u]=a,n[u]=l,n[u+1]=+_h}for(a=0,u=0;a<i;a++){for(;n[u+1]<a;)u++;t[a]=(a-r[u])*(a-r[u])+e[r[u]]}}var nj=VU,ij=AO,aj=JU,oj=kO,uj=tj,R2=document.createElement("canvas"),Rn=R2.getContext("2d"),nY=lj;function lj(e,t){if(!oj(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=R2.width=t.w||t.width||200,n=R2.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,u=t.viewbox||t.viewBox||nj(e),l=[r/(u[2]-u[0]),n/(u[3]-u[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Rn.fillStyle="black",Rn.fillRect(0,0,r,n),Rn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Rn.strokeStyle="white":Rn.strokeStyle="black",Rn.lineWidth=Math.abs(a)),Rn.translate(r*.5,n*.5),Rn.scale(s,s),fj()){var c=new Path2D(e);Rn.fill(c),a&&Rn.stroke(c)}else{var v=ij(e);aj(Rn,v),Rn.fill(),a&&Rn.stroke()}Rn.setTransform(1,0,0,1,0,0);var x=uj(Rn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return x}var a0;function fj(){if(a0!=null)return a0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return a0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return a0=r&&r.data&&r.data[3]===255}var sj={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},cj=Object.prototype.toString,FO=function(e){var t;return cj.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},HA=sj,hj=FO,Au=TO,dj=pj,WA={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function pj(e){var t,r=[],n=1,i;if(typeof e=="string")if(HA[e])r=HA[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),u=a.length,l=u<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],u===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],u===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var u=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(g,k){if(/%$/.test(g))return k===u?parseFloat(g)/100:a==="rgb"?parseFloat(g)*255/100:parseFloat(g);if(a[k]==="h"){if(/deg$/.test(g))return parseFloat(g);if(WA[g]!==void 0)return WA[g]}return parseFloat(g)}),s===a&&r.push(1),n=c||r[u]===void 0?1:r[u],r=r.slice(0,u)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(x){return parseFloat(x)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(hj(e)){var v=Au(e.r,e.red,e.R,null);v!==null?(i="rgb",r=[v,Au(e.g,e.green,e.G),Au(e.b,e.blue,e.B)]):(i="hsl",r=[Au(e.h,e.hue,e.H),Au(e.s,e.saturation,e.S),Au(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Au(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Lr.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var vj={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,u,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)u=t+1/3*-(c-1),u<0?u++:u>1&&u--,6*u<1?s=i+(a-i)*6*u:2*u<1?s=a:3*u<2?s=i+(a-i)*(2/3-u)*6:s=i,l[c]=s*255;return l}},mj=dj,gj=vj,o0=sd,yj=function(t){var r,n=mj(t);return n.space?(r=Array(3),r[0]=o0(n.values[0],0,255),r[1]=o0(n.values[1],0,255),r[2]=o0(n.values[2],0,255),n.space[0]==="h"&&(r=gj.rgb(r)),r.push(o0(n.alpha,0,1)),r):[]},xj=yj,u0=sd,_j=Cw,wm=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=_j(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=xj(t),t[0]/=255,t[1]/=255,t[2]/=255),wj(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=u0(Math.floor(t[0]*255),0,255),i[1]=u0(Math.floor(t[1]*255),0,255),i[2]=u0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:u0(Math.floor(t[3]*255),0,255)),i)};function wj(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var Wh={},bj={get exports(){return Wh},set exports(e){Wh=e}},l0=sd;bj.exports=NO;Wh.to=NO;Wh.from=Sj;function NO(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=l0(r,0,255)&255,n=l0(n,0,255)&255,i=l0(i,0,255)&255,a=l0(a,0,255)&255;var u=r*16777216+(n<<16)+(i<<8)+a;return u}function Sj(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var RO=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},IO=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var u=n[i];for(var l in u)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(u[l]===!0)s=r[l];else{if(u[l]===!1)continue;if(typeof u[l]=="function"&&(s=u[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},Ej=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ba={},Aj={get exports(){return Ba},set exports(e){Ba=e}};Aj.exports=wh;Ba.float32=Ba.float=wh;Ba.fract32=Ba.fract=Tj;var VA=new Float32Array(1);function Tj(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=wh(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return wh(e-wh(e))}function wh(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(VA[0]=e,VA[0])}function Cj(e,t){return Mj(e)||Nj(e,t)||PO(e,t)||Ij()}function kj(e){return Oj(e)||Fj(e)||PO(e)||Rj()}function Oj(e){if(Array.isArray(e))return I2(e)}function Mj(e){if(Array.isArray(e))return e}function Fj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,u,l;try{for(r=r.call(e);!(i=(u=r.next()).done)&&(n.push(u.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function PO(e,t){if(e){if(typeof e=="string")return I2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I2(e,t)}}function I2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
817
817
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
818
818
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pj=wm,Lj=cd,Dj=Wh,Bj=N2,Uu=tl,f0=RO,$j=Xo,zj=IO,Uj=hd,qA=Ej,s0=Ba,jj=_m,Gj=cn;function cn(e,t){var r=this;if(!(this instanceof cn))return new cn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],u={},l=[],s=[null],c=[null],v=255,x=100;this.tooManyColors=qA,i=e.texture({data:new Uint8Array(v*4),width:v,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Uu(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:s,palette:a,paletteIds:u,paletteTexture:i,maxColors:v,maxSize:x,canvas:n.canvas}),this.update(t);var y={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(b,w){return[r.tooManyColors?0:v,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(b,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(b,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(b,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(b,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(b,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(b,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(b,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(b,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(b,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},g=Uu({},y);g.frag=f0([`precision highp float;
819
819
  #define GLSLIFY 1
@@ -1129,5 +1129,5 @@ void main() {
1129
1129
  // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1130
1130
 
1131
1131
  gl_FragColor = color;
1132
- }`}),n={};return{regl:t,draw:r,atlas:n}};yr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=WH(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(rt){return parseFloat(rt)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=QH(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=nW(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=yr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(rt,yt){if(typeof rt=="string")try{rt=af.parse(rt)}catch{rt=af.parse(yr.baseFontSize+"px "+rt)}else rt=af.parse(af.stringify(rt));var Tt=af.stringify({size:yr.baseFontSize,family:rt.family,stretch:D0?rt.stretch:void 0,variant:rt.variant,weight:rt.weight,style:rt.style}),Yt=KH(rt.size),Xt=Math.round(Yt[0]*JH(Yt[1]));if(Xt!==r.fontSize[yt]&&(i=!0,r.fontSize[yt]=Xt),(!r.font[yt]||Tt!=r.font[yt].baseString)&&(n=!0,r.font[yt]=yr.fonts[Tt],!r.font[yt])){var Qe=rt.family.join(", "),Ot=[rt.style];rt.style!=rt.variant&&Ot.push(rt.variant),rt.variant!=rt.weight&&Ot.push(rt.weight),D0&&rt.weight!=rt.stretch&&Ot.push(rt.stretch),r.font[yt]={baseString:Tt,family:Qe,weight:rt.weight,stretch:rt.stretch,style:rt.style,variant:rt.variant,width:{},kerning:{},metrics:rW(Qe,{origin:"top",fontSize:yr.baseFontSize,fontStyle:Ot.join(" ")})},yr.fonts[Tt]=r.font[yt]}}),(n||i)&&this.font.forEach(function(rt,yt){var Tt=af.stringify({size:r.fontSize[yt],family:rt.family,stretch:D0?rt.stretch:void 0,variant:rt.variant,weight:rt.weight,style:rt.style});if(r.fontAtlas[yt]=r.shader.atlas[Tt],!r.fontAtlas[yt]){var Yt=rt.metrics;r.shader.atlas[Tt]=r.fontAtlas[yt]={fontString:Tt,step:Math.ceil(r.fontSize[yt]*Yt.bottom*.5)*2,em:r.fontSize[yt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),u=0;u<a.length;u++)a[u]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(rt,yt){yr.atlasContext.font=rt.baseString;for(var Tt=r.fontAtlas[yt],Yt=0;Yt<r.text.length;Yt++){var Xt=r.text.charAt(Yt);if(Tt.ids[Xt]==null&&(Tt.ids[Xt]=Tt.chars.length,Tt.chars.push(Xt),l.push(Xt)),rt.width[Xt]==null&&(rt.width[Xt]=yr.atlasContext.measureText(Xt).width/yr.baseFontSize,r.kerning)){var Qe=[];for(var Ot in rt.width)Qe.push(Ot+Xt,Xt+Ot);tW(rt.kerning,eW(rt.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,v=vo.mallocFloat(this.count*2),x=0,y=0;x<this.counts.length;x++){var g=this.counts[x];if(c)for(var k=0;k<g;k++)v[y++]=t.position[x*2],v[y++]=t.position[x*2+1];else for(var N=0;N<g;N++)v[y++]=t.position[x][0],v[y++]=t.position[x][1]}this.position.call?this.position({type:"float",data:v}):this.position=this.regl.buffer({type:"float",data:v}),vo.freeFloat(v)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=vo.mallocUint8(this.count),w=vo.mallocFloat(this.count*2);this.textWidth=[];for(var A=0,M=0;A<this.counts.length;A++){for(var R=this.counts[A],L=this.font[A]||this.font[0],D=this.fontAtlas[A]||this.fontAtlas[0],ne=0;ne<R;ne++){var Y=this.text.charAt(M),ae=this.text.charAt(M-1);if(b[M]=D.ids[Y],w[M*2]=L.width[Y],ne){var Ce=w[M*2-2],Fe=w[M*2],Ie=w[M*2-1],je=Ie+Ce*.5+Fe*.5;if(this.kerning){var Ke=L.kerning[ae+Y];Ke&&(je+=Ke*.001)}w[M*2+1]=je}else w[M*2+1]=w[M*2]*.5;M++}this.textWidth.push(w.length?w[M*2-2]*.5+w[M*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),vo.freeUint8(b),vo.freeFloat(w),l.length&&this.font.forEach(function(rt,yt){var Tt=r.fontAtlas[yt],Yt=Tt.step,Xt=Math.floor(yr.maxAtlasSize/Yt),Qe=Math.min(Xt,Tt.chars.length),Ot=Math.ceil(Tt.chars.length/Qe),jt=N5(Qe*Yt),Ae=N5(Ot*Yt);Tt.width=jt,Tt.height=Ae,Tt.rows=Ot,Tt.cols=Qe,Tt.em&&Tt.texture({data:XH({canvas:yr.atlasCanvas,font:Tt.fontString,chars:Tt.chars,shape:[jt,Ae],step:[Yt,Yt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(rt,yt){var Tt=Array.isArray(r.align)?r.align.length>1?r.align[yt]:r.align[0]:r.align;if(typeof Tt=="number")return Tt;switch(Tt){case"right":case"end":return-rt;case"center":case"centre":case"middle":return-rt*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(rt,yt){var Tt=(r.font[yt]||r.font[0]).metrics,Yt=0;return Yt+=Tt.bottom*.5,typeof rt=="number"?Yt+=rt-Tt.baseline:Yt+=-Tt[rt],Yt*=-1,Yt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=q1(t.color,"uint8");else{var mt;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var lt=t.color.length;mt=vo.mallocUint8(lt);for(var Ue=(t.color.subarray||t.color.slice).bind(t.color),Ye=0;Ye<lt;Ye+=4)mt.set(q1(Ue(Ye,Ye+4),"uint8"),Ye)}else{var It=t.color.length;mt=vo.mallocUint8(It*4);for(var Ze=0;Ze<It;Ze++)mt.set(q1(t.color[Ze]||0,"uint8"),Ze*4)}this.color=mt}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var Ee=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ee){var tt=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(tt);for(var ct=0;ct<this.batch.length;ct++)this.batch[ct]={count:this.counts.length>1?this.counts[ct]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[ct]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(ct*4,ct*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[ct]:this.opacity,baseline:this.baselineOffset[ct]!=null?this.baselineOffset[ct]:this.baselineOffset[0],align:this.align?this.alignOffset[ct]!=null?this.alignOffset[ct]:this.alignOffset[0]:0,atlas:this.fontAtlas[ct]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(ct*2,ct*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};yr.prototype.destroy=function(){};yr.prototype.kerning=!0;yr.prototype.position={constant:new Float32Array(2)};yr.prototype.translate=null;yr.prototype.scale=null;yr.prototype.font=null;yr.prototype.text="";yr.prototype.positionOffset=[0,0];yr.prototype.opacity=1;yr.prototype.color=new Uint8Array([0,0,0,255]);yr.prototype.alignOffset=[0,0];yr.maxAtlasSize=1024;yr.atlasCanvas=document.createElement("canvas");yr.atlasContext=yr.atlasCanvas.getContext("2d",{alpha:!1});yr.baseFontSize=64;yr.fonts={};function aW(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var uY=yr;function oW(e,t){return e.parent===t.parent?1:2}function uW(e){return e.reduce(lW,0)/e.length}function lW(e,t){return e+t.x}function fW(e){return 1+e.reduce(sW,0)}function sW(e,t){return Math.max(e,t.y)}function cW(e){for(var t;t=e.children;)e=t[0];return e}function hW(e){for(var t;t=e.children;)e=t[t.length-1];return e}function dW(){var e=oW,t=1,r=1,n=!1;function i(a){var u,l=0;a.eachAfter(function(y){var g=y.children;g?(y.x=uW(g),y.y=fW(g)):(y.x=u?l+=e(y,u):0,y.y=0,u=y)});var s=cW(a),c=hW(a),v=s.x-e(s,c)/2,x=c.x+e(c,s)/2;return a.eachAfter(n?function(y){y.x=(y.x-a.x)*t,y.y=(a.y-y.y)*r}:function(y){y.x=(y.x-v)/(x-v)*t,y.y=(1-(a.y?y.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function pW(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function vW(){return this.eachAfter(pW)}function mW(e){var t=this,r,n=[t],i,a,u;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,u=i.length;a<u;++a)n.push(i[a]);while(n.length);return this}function gW(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function yW(e){for(var t=this,r=[t],n=[],i,a,u;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,u=i.length;a<u;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function xW(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function _W(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function wW(e){for(var t=this,r=bW(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function bW(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function SW(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function EW(){var e=[];return this.each(function(t){e.push(t)}),e}function AW(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function TW(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function Rw(e,t){var r=new Xf(e),n=+e.value&&(r.value=e.value),i,a=[r],u,l,s,c;for(t==null&&(t=kW);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(c=l.length))for(i.children=new Array(c),s=c-1;s>=0;--s)a.push(u=i.children[s]=new Xf(l[s])),u.parent=i,u.depth=i.depth+1;return r.eachBefore(bM)}function CW(){return Rw(this).eachBefore(OW)}function kW(e){return e.children}function OW(e){e.data=e.data.data}function bM(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Xf(e){this.data=e,this.depth=this.height=0,this.parent=null}Xf.prototype=Rw.prototype={constructor:Xf,count:vW,each:mW,eachAfter:yW,eachBefore:gW,sum:xW,sort:_W,path:wW,ancestors:SW,descendants:EW,leaves:AW,links:TW,copy:CW};var MW=Array.prototype.slice;function FW(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function SM(e){for(var t=0,r=(e=FW(MW.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&EM(a,i)?++t:(a=RW(n=NW(n,i)),t=0);return a}function NW(e,t){var r,n;if(X1(t,e))return[t];for(r=0;r<e.length;++r)if(v0(t,e[r])&&X1(Jc(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(v0(Jc(e[r],e[n]),t)&&v0(Jc(e[r],t),e[n])&&v0(Jc(e[n],t),e[r])&&X1(AM(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function v0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function EM(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function X1(e,t){for(var r=0;r<t.length;++r)if(!EM(e,t[r]))return!1;return!0}function RW(e){switch(e.length){case 1:return IW(e[0]);case 2:return Jc(e[0],e[1]);case 3:return AM(e[0],e[1],e[2])}}function IW(e){return{x:e.x,y:e.y,r:e.r}}function Jc(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,u=t.y,l=t.r,s=a-r,c=u-n,v=l-i,x=Math.sqrt(s*s+c*c);return{x:(r+a+s/x*v)/2,y:(n+u+c/x*v)/2,r:(x+i+l)/2}}function AM(e,t,r){var n=e.x,i=e.y,a=e.r,u=t.x,l=t.y,s=t.r,c=r.x,v=r.y,x=r.r,y=n-u,g=n-c,k=i-l,N=i-v,b=s-a,w=x-a,A=n*n+i*i-a*a,M=A-u*u-l*l+s*s,R=A-c*c-v*v+x*x,L=g*k-y*N,D=(k*R-N*M)/(L*2)-n,ne=(N*b-k*w)/L,Y=(g*M-y*R)/(L*2)-i,ae=(y*w-g*b)/L,Ce=ne*ne+ae*ae-1,Fe=2*(a+D*ne+Y*ae),Ie=D*D+Y*Y-a*a,je=-(Ce?(Fe+Math.sqrt(Fe*Fe-4*Ce*Ie))/(2*Ce):Ie/Fe);return{x:n+D+ne*je,y:i+Y+ae*je,r:je}}function I5(e,t,r){var n=e.x-t.x,i,a,u=e.y-t.y,l,s,c=n*n+u*u;c?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(c+s-a)/(2*c),l=Math.sqrt(Math.max(0,s/c-i*i)),r.x=e.x-i*n-l*u,r.y=e.y-i*u+l*n):(i=(c+a-s)/(2*c),l=Math.sqrt(Math.max(0,a/c-i*i)),r.x=t.x+i*n-l*u,r.y=t.y+i*u+l*n)):(r.x=t.x+r.r,r.y=t.y)}function P5(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function L5(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function m0(e){this._=e,this.next=null,this.previous=null}function TM(e){if(!(i=e.length))return 0;var t,r,n,i,a,u,l,s,c,v,x;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;I5(r,t,n=e[2]),t=new m0(t),r=new m0(r),n=new m0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){I5(t._,r._,n=e[l]),n=new m0(n),s=r.next,c=t.previous,v=r._.r,x=t._.r;do if(v<=x){if(P5(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}v+=s._.r,s=s.next}else{if(P5(c._,n._)){t=c,t.next=r,r.previous=t,--l;continue e}x+=c._.r,c=c.previous}while(s!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=L5(t);(n=n.next)!==r;)(u=L5(n))<a&&(t=n,a=u);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=SM(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function PW(e){return TM(e),e}function LW(e){return e==null?null:zv(e)}function zv(e){if(typeof e!="function")throw new Error;return e}function Mu(){return 0}function sf(e){return function(){return e}}function DW(e){return Math.sqrt(e.value)}function BW(){var e=null,t=1,r=1,n=Mu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(D5(e)).eachAfter(Q1(n,.5)).eachBefore(B5(1)):a.eachBefore(D5(DW)).eachAfter(Q1(Mu,1)).eachAfter(Q1(n,a.r/Math.min(t,r))).eachBefore(B5(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=LW(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:sf(+a),i):n},i}function D5(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Q1(e,t){return function(r){if(n=r.children){var n,i,a=n.length,u=e(r)*t||0,l;if(u)for(i=0;i<a;++i)n[i].r+=u;if(l=TM(n),u)for(i=0;i<a;++i)n[i].r-=u;r.r=l+u}}}function B5(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function CM(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function pd(e,t,r,n,i){for(var a=e.children,u,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)u=a[l],u.y0=r,u.y1=i,u.x0=t,u.x1=t+=u.value*c}function $W(){var e=1,t=1,r=0,n=!1;function i(u){var l=u.height+1;return u.x0=u.y0=r,u.x1=e,u.y1=t/l,u.eachBefore(a(t,l)),n&&u.eachBefore(CM),u}function a(u,l){return function(s){s.children&&pd(s,s.x0,u*(s.depth+1)/l,s.x1,u*(s.depth+2)/l);var c=s.x0,v=s.y0,x=s.x1-r,y=s.y1-r;x<c&&(c=x=(c+x)/2),y<v&&(v=y=(v+y)/2),s.x0=c,s.y0=v,s.x1=x,s.y1=y}}return i.round=function(u){return arguments.length?(n=!!u,i):n},i.size=function(u){return arguments.length?(e=+u[0],t=+u[1],i):[e,t]},i.padding=function(u){return arguments.length?(r=+u,i):r},i}var $5="$",zW={depth:-1},z5={};function UW(e){return e.id}function jW(e){return e.parentId}function GW(){var e=UW,t=jW;function r(n){var i,a,u=n.length,l,s,c,v=new Array(u),x,y,g={};for(a=0;a<u;++a)i=n[a],c=v[a]=new Xf(i),(x=e(i,a,n))!=null&&(x+="")&&(y=$5+(c.id=x),g[y]=y in g?z5:c);for(a=0;a<u;++a)if(c=v[a],x=t(n[a],a,n),x==null||!(x+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=g[$5+x],!s)throw new Error("missing: "+x);if(s===z5)throw new Error("ambiguous: "+x);s.children?s.children.push(c):s.children=[c],c.parent=s}if(!l)throw new Error("no root");if(l.parent=zW,l.eachBefore(function(k){k.depth=k.parent.depth+1,--u}).eachBefore(bM),l.parent=null,u>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=zv(n),r):e},r.parentId=function(n){return arguments.length?(t=zv(n),r):t},r}function HW(e,t){return e.parent===t.parent?1:2}function Z1(e){var t=e.children;return t?t[0]:e.t}function K1(e){var t=e.children;return t?t[t.length-1]:e.t}function WW(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function VW(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function qW(e,t,r){return e.a.parent===t.parent?e.a:r}function B0(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}B0.prototype=Object.create(Xf.prototype);function YW(e){for(var t=new B0(e,0),r,n=[t],i,a,u,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),u=l-1;u>=0;--u)n.push(i=r.children[u]=new B0(a[u],u)),i.parent=r;return(t.parent=new B0(null,0)).children=[t],t}function XW(){var e=HW,t=1,r=1,n=null;function i(c){var v=YW(c);if(v.eachAfter(a),v.parent.m=-v.z,v.eachBefore(u),n)c.eachBefore(s);else{var x=c,y=c,g=c;c.eachBefore(function(A){A.x<x.x&&(x=A),A.x>y.x&&(y=A),A.depth>g.depth&&(g=A)});var k=x===y?1:e(x,y)/2,N=k-x.x,b=t/(y.x+k+N),w=r/(g.depth||1);c.eachBefore(function(A){A.x=(A.x+N)*b,A.y=A.depth*w})}return c}function a(c){var v=c.children,x=c.parent.children,y=c.i?x[c.i-1]:null;if(v){VW(c);var g=(v[0].z+v[v.length-1].z)/2;y?(c.z=y.z+e(c._,y._),c.m=c.z-g):c.z=g}else y&&(c.z=y.z+e(c._,y._));c.parent.A=l(c,y,c.parent.A||x[0])}function u(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,v,x){if(v){for(var y=c,g=c,k=v,N=y.parent.children[0],b=y.m,w=g.m,A=k.m,M=N.m,R;k=K1(k),y=Z1(y),k&&y;)N=Z1(N),g=K1(g),g.a=c,R=k.z+A-y.z-b+e(k._,y._),R>0&&(WW(qW(k,c,x),c,R),b+=R,w+=R),A+=k.m,b+=y.m,M+=N.m,w+=g.m;k&&!K1(g)&&(g.t=k,g.m+=A-w),y&&!Z1(N)&&(N.t=y,N.m+=b-M,x=c)}return x}function s(c){c.x*=t,c.y=c.depth*r}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(n=!1,t=+c[0],r=+c[1],i):n?null:[t,r]},i.nodeSize=function(c){return arguments.length?(n=!0,t=+c[0],r=+c[1],i):n?[t,r]:null},i}function km(e,t,r,n,i){for(var a=e.children,u,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)u=a[l],u.x0=t,u.x1=n,u.y0=r,u.y1=r+=u.value*c}var kM=(1+Math.sqrt(5))/2;function OM(e,t,r,n,i,a){for(var u=[],l=t.children,s,c,v=0,x=0,y=l.length,g,k,N=t.value,b,w,A,M,R,L,D;v<y;){g=i-r,k=a-n;do b=l[x++].value;while(!b&&x<y);for(w=A=b,L=Math.max(k/g,g/k)/(N*e),D=b*b*L,R=Math.max(A/D,D/w);x<y;++x){if(b+=c=l[x].value,c<w&&(w=c),c>A&&(A=c),D=b*b*L,M=Math.max(A/D,D/w),M>R){b-=c;break}R=M}u.push(s={value:b,dice:g<k,children:l.slice(v,x)}),s.dice?pd(s,r,n,i,N?n+=k*b/N:a):km(s,r,n,N?r+=g*b/N:i,a),N-=b,v=x}return u}const MM=function e(t){function r(n,i,a,u,l){OM(t,n,i,a,u,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(kM);function QW(){var e=MM,t=!1,r=1,n=1,i=[0],a=Mu,u=Mu,l=Mu,s=Mu,c=Mu;function v(y){return y.x0=y.y0=0,y.x1=r,y.y1=n,y.eachBefore(x),i=[0],t&&y.eachBefore(CM),y}function x(y){var g=i[y.depth],k=y.x0+g,N=y.y0+g,b=y.x1-g,w=y.y1-g;b<k&&(k=b=(k+b)/2),w<N&&(N=w=(N+w)/2),y.x0=k,y.y0=N,y.x1=b,y.y1=w,y.children&&(g=i[y.depth+1]=a(y)/2,k+=c(y)-g,N+=u(y)-g,b-=l(y)-g,w-=s(y)-g,b<k&&(k=b=(k+b)/2),w<N&&(N=w=(N+w)/2),e(y,k,N,b,w))}return v.round=function(y){return arguments.length?(t=!!y,v):t},v.size=function(y){return arguments.length?(r=+y[0],n=+y[1],v):[r,n]},v.tile=function(y){return arguments.length?(e=zv(y),v):e},v.padding=function(y){return arguments.length?v.paddingInner(y).paddingOuter(y):v.paddingInner()},v.paddingInner=function(y){return arguments.length?(a=typeof y=="function"?y:sf(+y),v):a},v.paddingOuter=function(y){return arguments.length?v.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):v.paddingTop()},v.paddingTop=function(y){return arguments.length?(u=typeof y=="function"?y:sf(+y),v):u},v.paddingRight=function(y){return arguments.length?(l=typeof y=="function"?y:sf(+y),v):l},v.paddingBottom=function(y){return arguments.length?(s=typeof y=="function"?y:sf(+y),v):s},v.paddingLeft=function(y){return arguments.length?(c=typeof y=="function"?y:sf(+y),v):c},v}function ZW(e,t,r,n,i){var a=e.children,u,l=a.length,s,c=new Array(l+1);for(c[0]=s=u=0;u<l;++u)c[u+1]=s+=a[u].value;v(0,l,e.value,t,r,n,i);function v(x,y,g,k,N,b,w){if(x>=y-1){var A=a[x];A.x0=k,A.y0=N,A.x1=b,A.y1=w;return}for(var M=c[x],R=g/2+M,L=x+1,D=y-1;L<D;){var ne=L+D>>>1;c[ne]<R?L=ne+1:D=ne}R-c[L-1]<c[L]-R&&x+1<L&&--L;var Y=c[L]-M,ae=g-Y;if(b-k>w-N){var Ce=(k*ae+b*Y)/g;v(x,L,Y,k,N,Ce,w),v(L,y,ae,Ce,N,b,w)}else{var Fe=(N*ae+w*Y)/g;v(x,L,Y,k,N,b,Fe),v(L,y,ae,k,Fe,b,w)}}}function KW(e,t,r,n,i){(e.depth&1?km:pd)(e,t,r,n,i)}const JW=function e(t){function r(n,i,a,u,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,v,x,y=-1,g,k=s.length,N=n.value;++y<k;){for(c=s[y],v=c.children,x=c.value=0,g=v.length;x<g;++x)c.value+=v[x].value;c.dice?pd(c,i,a,u,a+=(l-a)*c.value/N):km(c,i,a,i+=(u-i)*c.value/N,l),N-=c.value}else n._squarify=s=OM(t,n,i,a,u,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(kM),eV=Object.freeze(Object.defineProperty({__proto__:null,cluster:dW,hierarchy:Rw,pack:BW,packEnclose:SM,packSiblings:PW,partition:$W,stratify:GW,tree:XW,treemap:QW,treemapBinary:ZW,treemapDice:pd,treemapResquarify:JW,treemapSlice:km,treemapSliceDice:KW,treemapSquarify:MM},Symbol.toStringTag,{value:"Module"})),lY=el(eV);function us(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qo(){}var Ku=.7,Qf=1/Ku,Pf="\\s*([+-]?\\d+)\\s*",Xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,rV=new RegExp(`^rgb\\(${Pf},${Pf},${Pf}\\)$`),nV=new RegExp(`^rgb\\(${ea},${ea},${ea}\\)$`),iV=new RegExp(`^rgba\\(${Pf},${Pf},${Pf},${Xh}\\)$`),aV=new RegExp(`^rgba\\(${ea},${ea},${ea},${Xh}\\)$`),oV=new RegExp(`^hsl\\(${Xh},${ea},${ea}\\)$`),uV=new RegExp(`^hsla\\(${Xh},${ea},${ea},${Xh}\\)$`),U5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};us(Qo,Qh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:j5,formatHex:j5,formatHex8:lV,formatHsl:fV,formatRgb:G5,toString:G5});function j5(){return this.rgb().formatHex()}function lV(){return this.rgb().formatHex8()}function fV(){return FM(this).formatHsl()}function G5(){return this.rgb().formatRgb()}function Qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=tV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?H5(t):r===3?new hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?g0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?g0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rV.exec(e))?new hn(t[1],t[2],t[3],1):(t=nV.exec(e))?new hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iV.exec(e))?g0(t[1],t[2],t[3],t[4]):(t=aV.exec(e))?g0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oV.exec(e))?q5(t[1],t[2]/100,t[3]/100,1):(t=uV.exec(e))?q5(t[1],t[2]/100,t[3]/100,t[4]):U5.hasOwnProperty(e)?H5(U5[e]):e==="transparent"?new hn(NaN,NaN,NaN,0):null}function H5(e){return new hn(e>>16&255,e>>8&255,e&255,1)}function g0(e,t,r,n){return n<=0&&(e=t=r=NaN),new hn(e,t,r,n)}function Iw(e){return e instanceof Qo||(e=Qh(e)),e?(e=e.rgb(),new hn(e.r,e.g,e.b,e.opacity)):new hn}function Uv(e,t,r,n){return arguments.length===1?Iw(e):new hn(e,t,r,n??1)}function hn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}us(hn,Uv,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hn(ju(this.r),ju(this.g),ju(this.b),jv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W5,formatHex:W5,formatHex8:sV,formatRgb:V5,toString:V5}));function W5(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}`}function sV(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}${Bu((isNaN(this.opacity)?1:this.opacity)*255)}`}function V5(){const e=jv(this.opacity);return`${e===1?"rgb(":"rgba("}${ju(this.r)}, ${ju(this.g)}, ${ju(this.b)}${e===1?")":`, ${e})`}`}function jv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ju(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bu(e){return e=ju(e),(e<16?"0":"")+e.toString(16)}function q5(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ni(e,t,r,n)}function FM(e){if(e instanceof Ni)return new Ni(e.h,e.s,e.l,e.opacity);if(e instanceof Qo||(e=Qh(e)),!e)return new Ni;if(e instanceof Ni)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),u=NaN,l=a-i,s=(a+i)/2;return l?(t===a?u=(r-n)/l+(r<n)*6:r===a?u=(n-t)/l+2:u=(t-r)/l+4,l/=s<.5?a+i:2-a-i,u*=60):l=s>0&&s<1?0:u,new Ni(u,l,s,e.opacity)}function U2(e,t,r,n){return arguments.length===1?FM(e):new Ni(e,t,r,n??1)}function Ni(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Ni,U2,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new Ni(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Ni(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new hn(J1(e>=240?e-240:e+120,i,n),J1(e,i,n),J1(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ni(Y5(this.h),y0(this.s),y0(this.l),jv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jv(this.opacity);return`${e===1?"hsl(":"hsla("}${Y5(this.h)}, ${y0(this.s)*100}%, ${y0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y5(e){return e=(e||0)%360,e<0?e+360:e}function y0(e){return Math.max(0,Math.min(1,e||0))}function J1(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const NM=Math.PI/180,RM=180/Math.PI,Gv=18,IM=.96422,PM=1,LM=.82521,DM=4/29,Lf=6/29,BM=3*Lf*Lf,cV=Lf*Lf*Lf;function $M(e){if(e instanceof ta)return new ta(e.l,e.a,e.b,e.opacity);if(e instanceof Fa)return zM(e);e instanceof hn||(e=Iw(e));var t=nx(e.r),r=nx(e.g),n=nx(e.b),i=ex((.2225045*t+.7168786*r+.0606169*n)/PM),a,u;return t===r&&r===n?a=u=i:(a=ex((.4360747*t+.3850649*r+.1430804*n)/IM),u=ex((.0139322*t+.0971045*r+.7141733*n)/LM)),new ta(116*i-16,500*(a-i),200*(i-u),e.opacity)}function j2(e,t,r,n){return arguments.length===1?$M(e):new ta(e,t,r,n??1)}function ta(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}us(ta,j2,vd(Qo,{brighter(e){return new ta(this.l+Gv*(e??1),this.a,this.b,this.opacity)},darker(e){return new ta(this.l-Gv*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=IM*tx(t),e=PM*tx(e),r=LM*tx(r),new hn(rx(3.1338561*t-1.6168667*e-.4906146*r),rx(-.9787684*t+1.9161415*e+.033454*r),rx(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function ex(e){return e>cV?Math.pow(e,1/3):e/BM+DM}function tx(e){return e>Lf?e*e*e:BM*(e-DM)}function rx(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hV(e){if(e instanceof Fa)return new Fa(e.h,e.c,e.l,e.opacity);if(e instanceof ta||(e=$M(e)),e.a===0&&e.b===0)return new Fa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*RM;return new Fa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function G2(e,t,r,n){return arguments.length===1?hV(e):new Fa(e,t,r,n??1)}function Fa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function zM(e){if(isNaN(e.h))return new ta(e.l,0,0,e.opacity);var t=e.h*NM;return new ta(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}us(Fa,G2,vd(Qo,{brighter(e){return new Fa(this.h,this.c,this.l+Gv*(e??1),this.opacity)},darker(e){return new Fa(this.h,this.c,this.l-Gv*(e??1),this.opacity)},rgb(){return zM(this).rgb()}}));var UM=-.14861,Pw=1.78277,Lw=-.29227,Om=-.90649,Zh=1.97294,X5=Zh*Om,Q5=Zh*Pw,Z5=Pw*Lw-Om*UM;function dV(e){if(e instanceof Gu)return new Gu(e.h,e.s,e.l,e.opacity);e instanceof hn||(e=Iw(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Z5*n+X5*t-Q5*r)/(Z5+X5-Q5),a=n-i,u=(Zh*(r-i)-Lw*a)/Om,l=Math.sqrt(u*u+a*a)/(Zh*i*(1-i)),s=l?Math.atan2(u,a)*RM-120:NaN;return new Gu(s<0?s+360:s,l,i,e.opacity)}function H2(e,t,r,n){return arguments.length===1?dV(e):new Gu(e,t,r,n??1)}function Gu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Gu,H2,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new Gu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Gu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*NM,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new hn(255*(t+r*(UM*n+Pw*i)),255*(t+r*(Lw*n+Om*i)),255*(t+r*(Zh*n)),this.opacity)}}));function jM(e,t,r,n,i){var a=e*e,u=a*e;return((1-3*e+3*a-u)*t+(4-6*a+3*u)*r+(1+3*e+3*a-3*u)*n+u*i)/6}function GM(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],u=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return jM((r-n/t)*t,u,i,a,l)}}function HM(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],u=e[(n+1)%t],l=e[(n+2)%t];return jM((r-n/t)*t,i,a,u,l)}}const Mm=e=>()=>e;function WM(e,t){return function(r){return e+r*t}}function pV(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Fm(e,t){var r=t-e;return r?WM(e,r>180||r<-180?r-360*Math.round(r/360):r):Mm(isNaN(e)?t:e)}function vV(e){return(e=+e)==1?dn:function(t,r){return r-t?pV(t,r,e):Mm(isNaN(t)?r:t)}}function dn(e,t){var r=t-e;return r?WM(e,r):Mm(isNaN(e)?t:e)}const W2=function e(t){var r=vV(t);function n(i,a){var u=r((i=Uv(i)).r,(a=Uv(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=dn(i.opacity,a.opacity);return function(v){return i.r=u(v),i.g=l(v),i.b=s(v),i.opacity=c(v),i+""}}return n.gamma=e,n}(1);function VM(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),u,l;for(u=0;u<r;++u)l=Uv(t[u]),n[u]=l.r||0,i[u]=l.g||0,a[u]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var mV=VM(GM),gV=VM(HM);function Dw(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function qM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yV(e,t){return(qM(t)?Dw:YM)(e,t)}function YM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),u;for(u=0;u<n;++u)i[u]=Nm(e[u],t[u]);for(;u<r;++u)a[u]=t[u];return function(l){for(u=0;u<n;++u)a[u]=i[u](l);return a}}function XM(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function QM(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Nm(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var V2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ix=new RegExp(V2.source,"g");function xV(e){return function(){return e}}function _V(e){return function(t){return e(t)+""}}function ZM(e,t){var r=V2.lastIndex=ix.lastIndex=0,n,i,a,u=-1,l=[],s=[];for(e=e+"",t=t+"";(n=V2.exec(e))&&(i=ix.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[u]?l[u]+=a:l[++u]=a),(n=n[0])===(i=i[0])?l[u]?l[u]+=i:l[++u]=i:(l[++u]=null,s.push({i:u,x:Vi(n,i)})),r=ix.lastIndex;return r<t.length&&(a=t.slice(r),l[u]?l[u]+=a:l[++u]=a),l.length<2?s[0]?_V(s[0].x):xV(t):(t=s.length,function(c){for(var v=0,x;v<t;++v)l[(x=s[v]).i]=x.x(c);return l.join("")})}function Nm(e,t){var r=typeof t,n;return t==null||r==="boolean"?Mm(t):(r==="number"?Vi:r==="string"?(n=Qh(t))?(t=n,W2):ZM:t instanceof Qh?W2:t instanceof Date?XM:qM(t)?Dw:Array.isArray(t)?YM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QM:Vi)(e,t)}function wV(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function bV(e,t){var r=Fm(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function SV(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var K5=180/Math.PI,q2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function KM(e,t,r,n,i,a){var u,l,s;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,u=-u),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*K5,skewX:Math.atan(s)*K5,scaleX:u,scaleY:l}}var x0;function EV(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?q2:KM(t.a,t.b,t.c,t.d,t.e,t.f)}function AV(e){return e==null||(x0||(x0=document.createElementNS("http://www.w3.org/2000/svg","g")),x0.setAttribute("transform",e),!(e=x0.transform.baseVal.consolidate()))?q2:(e=e.matrix,KM(e.a,e.b,e.c,e.d,e.e,e.f))}function JM(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,v,x,y,g,k){if(c!==x||v!==y){var N=g.push("translate(",null,t,null,r);k.push({i:N-4,x:Vi(c,x)},{i:N-2,x:Vi(v,y)})}else(x||y)&&g.push("translate("+x+t+y+r)}function u(c,v,x,y){c!==v?(c-v>180?v+=360:v-c>180&&(c+=360),y.push({i:x.push(i(x)+"rotate(",null,n)-2,x:Vi(c,v)})):v&&x.push(i(x)+"rotate("+v+n)}function l(c,v,x,y){c!==v?y.push({i:x.push(i(x)+"skewX(",null,n)-2,x:Vi(c,v)}):v&&x.push(i(x)+"skewX("+v+n)}function s(c,v,x,y,g,k){if(c!==x||v!==y){var N=g.push(i(g)+"scale(",null,",",null,")");k.push({i:N-4,x:Vi(c,x)},{i:N-2,x:Vi(v,y)})}else(x!==1||y!==1)&&g.push(i(g)+"scale("+x+","+y+")")}return function(c,v){var x=[],y=[];return c=e(c),v=e(v),a(c.translateX,c.translateY,v.translateX,v.translateY,x,y),u(c.rotate,v.rotate,x,y),l(c.skewX,v.skewX,x,y),s(c.scaleX,c.scaleY,v.scaleX,v.scaleY,x,y),c=v=null,function(g){for(var k=-1,N=y.length,b;++k<N;)x[(b=y[k]).i]=b.x(g);return x.join("")}}}var TV=JM(EV,"px, ","px)","deg)"),CV=JM(AV,", ",")",")"),kV=1e-12;function J5(e){return((e=Math.exp(e))+1/e)/2}function OV(e){return((e=Math.exp(e))-1/e)/2}function MV(e){return((e=Math.exp(2*e))-1)/(e+1)}const FV=function e(t,r,n){function i(a,u){var l=a[0],s=a[1],c=a[2],v=u[0],x=u[1],y=u[2],g=v-l,k=x-s,N=g*g+k*k,b,w;if(N<kV)w=Math.log(y/c)/t,b=function(ne){return[l+ne*g,s+ne*k,c*Math.exp(t*ne*w)]};else{var A=Math.sqrt(N),M=(y*y-c*c+n*N)/(2*c*r*A),R=(y*y-c*c-n*N)/(2*y*r*A),L=Math.log(Math.sqrt(M*M+1)-M),D=Math.log(Math.sqrt(R*R+1)-R);w=(D-L)/t,b=function(ne){var Y=ne*w,ae=J5(L),Ce=c/(r*A)*(ae*MV(t*Y+L)-OV(L));return[l+Ce*g,s+Ce*k,c*ae/J5(t*Y+L)]}}return b.duration=w*1e3*t/Math.SQRT2,b}return i.rho=function(a){var u=Math.max(.001,+a),l=u*u,s=l*l;return e(u,l,s)},i}(Math.SQRT2,2,4);function eF(e){return function(t,r){var n=e((t=U2(t)).h,(r=U2(r)).h),i=dn(t.s,r.s),a=dn(t.l,r.l),u=dn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=u(l),t+""}}}const NV=eF(Fm);var RV=eF(dn);function IV(e,t){var r=dn((e=j2(e)).l,(t=j2(t)).l),n=dn(e.a,t.a),i=dn(e.b,t.b),a=dn(e.opacity,t.opacity);return function(u){return e.l=r(u),e.a=n(u),e.b=i(u),e.opacity=a(u),e+""}}function tF(e){return function(t,r){var n=e((t=G2(t)).h,(r=G2(r)).h),i=dn(t.c,r.c),a=dn(t.l,r.l),u=dn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=u(l),t+""}}}const PV=tF(Fm);var LV=tF(dn);function rF(e){return function t(r){r=+r;function n(i,a){var u=e((i=H2(i)).h,(a=H2(a)).h),l=dn(i.s,a.s),s=dn(i.l,a.l),c=dn(i.opacity,a.opacity);return function(v){return i.h=u(v),i.s=l(v),i.l=s(Math.pow(v,r)),i.opacity=c(v),i+""}}return n.gamma=t,n}(1)}const DV=rF(Fm);var BV=rF(dn);function $V(e,t){t===void 0&&(t=e,e=Nm);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(u){var l=Math.max(0,Math.min(n-1,Math.floor(u*=n)));return a[l](u-l)}}function zV(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const UV=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Nm,interpolateArray:yV,interpolateBasis:GM,interpolateBasisClosed:HM,interpolateCubehelix:DV,interpolateCubehelixLong:BV,interpolateDate:XM,interpolateDiscrete:wV,interpolateHcl:PV,interpolateHclLong:LV,interpolateHsl:NV,interpolateHslLong:RV,interpolateHue:bV,interpolateLab:IV,interpolateNumber:Vi,interpolateNumberArray:Dw,interpolateObject:QM,interpolateRgb:W2,interpolateRgbBasis:mV,interpolateRgbBasisClosed:gV,interpolateRound:SV,interpolateString:ZM,interpolateTransformCss:TV,interpolateTransformSvg:CV,interpolateZoom:FV,piecewise:$V,quantize:zV},Symbol.toStringTag,{value:"Module"})),fY=el(UV);var jV="Expected a function",nF="__lodash_hash_undefined__",iF=1/0,GV=9007199254740991,HV="[object Function]",WV="[object GeneratorFunction]",VV="[object Symbol]",qV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YV=/^\w*$/,XV=/^\./,QV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZV=/[\\^$.*+?()[\]{}|]/g,KV=/\\(\\)?/g,JV=/^\[object .+?Constructor\]$/,eq=/^(?:0|[1-9]\d*)$/,tq=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,rq=typeof self=="object"&&self&&self.Object===Object&&self,Bw=tq||rq||Function("return this")();function nq(e,t){return e==null?void 0:e[t]}function iq(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var aq=Array.prototype,oq=Function.prototype,aF=Object.prototype,ax=Bw["__core-js_shared__"],eT=function(){var e=/[^.]+$/.exec(ax&&ax.keys&&ax.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oF=oq.toString,Rm=aF.hasOwnProperty,uF=aF.toString,uq=RegExp("^"+oF.call(Rm).replace(ZV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tT=Bw.Symbol,lq=aq.splice,fq=lF(Bw,"Map"),Kh=lF(Object,"create"),rT=tT?tT.prototype:void 0,nT=rT?rT.toString:void 0;function Ju(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function sq(){this.__data__=Kh?Kh(null):{}}function cq(e){return this.has(e)&&delete this.__data__[e]}function hq(e){var t=this.__data__;if(Kh){var r=t[e];return r===nF?void 0:r}return Rm.call(t,e)?t[e]:void 0}function dq(e){var t=this.__data__;return Kh?t[e]!==void 0:Rm.call(t,e)}function pq(e,t){var r=this.__data__;return r[e]=Kh&&t===void 0?nF:t,this}Ju.prototype.clear=sq;Ju.prototype.delete=cq;Ju.prototype.get=hq;Ju.prototype.has=dq;Ju.prototype.set=pq;function ls(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vq(){this.__data__=[]}function mq(e){var t=this.__data__,r=Im(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lq.call(t,r,1),!0}function gq(e){var t=this.__data__,r=Im(t,e);return r<0?void 0:t[r][1]}function yq(e){return Im(this.__data__,e)>-1}function xq(e,t){var r=this.__data__,n=Im(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ls.prototype.clear=vq;ls.prototype.delete=mq;ls.prototype.get=gq;ls.prototype.has=yq;ls.prototype.set=xq;function hl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _q(){this.__data__={hash:new Ju,map:new(fq||ls),string:new Ju}}function wq(e){return Pm(this,e).delete(e)}function bq(e){return Pm(this,e).get(e)}function Sq(e){return Pm(this,e).has(e)}function Eq(e,t){return Pm(this,e).set(e,t),this}hl.prototype.clear=_q;hl.prototype.delete=wq;hl.prototype.get=bq;hl.prototype.has=Sq;hl.prototype.set=Eq;function Aq(e,t,r){var n=e[t];(!(Rm.call(e,t)&&fF(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Im(e,t){for(var r=e.length;r--;)if(fF(e[r][0],t))return r;return-1}function Tq(e){if(!Hv(e)||Rq(e))return!1;var t=Dq(e)||iq(e)?uq:JV;return t.test(Lq(e))}function Cq(e,t,r,n){if(!Hv(e))return e;t=Fq(t,e)?[t]:Oq(t);for(var i=-1,a=t.length,u=a-1,l=e;l!=null&&++i<a;){var s=Pq(t[i]),c=r;if(i!=u){var v=l[s];c=n?n(v,s,l):void 0,c===void 0&&(c=Hv(v)?v:Mq(t[i+1])?[]:{})}Aq(l,s,c),l=l[s]}return e}function kq(e){if(typeof e=="string")return e;if(zw(e))return nT?nT.call(e):"";var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function Oq(e){return sF(e)?e:Iq(e)}function Pm(e,t){var r=e.__data__;return Nq(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lF(e,t){var r=nq(e,t);return Tq(r)?r:void 0}function Mq(e,t){return t=t??GV,!!t&&(typeof e=="number"||eq.test(e))&&e>-1&&e%1==0&&e<t}function Fq(e,t){if(sF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zw(e)?!0:YV.test(e)||!qV.test(e)||t!=null&&e in Object(t)}function Nq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rq(e){return!!eT&&eT in e}var Iq=$w(function(e){e=$q(e);var t=[];return XV.test(e)&&t.push(""),e.replace(QV,function(r,n,i,a){t.push(i?a.replace(KV,"$1"):n||r)}),t});function Pq(e){if(typeof e=="string"||zw(e))return e;var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function Lq(e){if(e!=null){try{return oF.call(e)}catch{}try{return e+""}catch{}}return""}function $w(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(jV);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var u=e.apply(this,n);return r.cache=a.set(i,u),u};return r.cache=new($w.Cache||hl),r}$w.Cache=hl;function fF(e,t){return e===t||e!==e&&t!==t}var sF=Array.isArray;function Dq(e){var t=Hv(e)?uF.call(e):"";return t==HV||t==WV}function Hv(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bq(e){return!!e&&typeof e=="object"}function zw(e){return typeof e=="symbol"||Bq(e)&&uF.call(e)==VV}function $q(e){return e==null?"":kq(e)}function zq(e,t,r){return e==null?e:Cq(e,t,r)}var sY=zq;export{bh as A,lr as B,Uw as C,Hq as D,y3 as E,vm as F,ka as G,sY as H,Wq as I,Vq as J,Gq as K,jq as L,zp as R,Yq as a,Jq as b,eY as c,iA as d,F2 as e,Xq as f,Qq as g,Zq as h,Pv as i,hz as j,rY as k,wm as l,Kq as m,tY as n,N2 as o,AO as p,$2 as q,qq as r,nY as s,TA as t,iY as u,aY as v,oY as w,uY as x,lY as y,fY as z};
1133
- //# sourceMappingURL=vendor-99c7b48f.js.map
1132
+ }`}),n={};return{regl:t,draw:r,atlas:n}};yr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=WH(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(rt){return parseFloat(rt)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=QH(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=nW(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=yr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(rt,yt){if(typeof rt=="string")try{rt=af.parse(rt)}catch{rt=af.parse(yr.baseFontSize+"px "+rt)}else rt=af.parse(af.stringify(rt));var Tt=af.stringify({size:yr.baseFontSize,family:rt.family,stretch:D0?rt.stretch:void 0,variant:rt.variant,weight:rt.weight,style:rt.style}),Yt=KH(rt.size),Xt=Math.round(Yt[0]*JH(Yt[1]));if(Xt!==r.fontSize[yt]&&(i=!0,r.fontSize[yt]=Xt),(!r.font[yt]||Tt!=r.font[yt].baseString)&&(n=!0,r.font[yt]=yr.fonts[Tt],!r.font[yt])){var Qe=rt.family.join(", "),Ot=[rt.style];rt.style!=rt.variant&&Ot.push(rt.variant),rt.variant!=rt.weight&&Ot.push(rt.weight),D0&&rt.weight!=rt.stretch&&Ot.push(rt.stretch),r.font[yt]={baseString:Tt,family:Qe,weight:rt.weight,stretch:rt.stretch,style:rt.style,variant:rt.variant,width:{},kerning:{},metrics:rW(Qe,{origin:"top",fontSize:yr.baseFontSize,fontStyle:Ot.join(" ")})},yr.fonts[Tt]=r.font[yt]}}),(n||i)&&this.font.forEach(function(rt,yt){var Tt=af.stringify({size:r.fontSize[yt],family:rt.family,stretch:D0?rt.stretch:void 0,variant:rt.variant,weight:rt.weight,style:rt.style});if(r.fontAtlas[yt]=r.shader.atlas[Tt],!r.fontAtlas[yt]){var Yt=rt.metrics;r.shader.atlas[Tt]=r.fontAtlas[yt]={fontString:Tt,step:Math.ceil(r.fontSize[yt]*Yt.bottom*.5)*2,em:r.fontSize[yt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),u=0;u<a.length;u++)a[u]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(rt,yt){yr.atlasContext.font=rt.baseString;for(var Tt=r.fontAtlas[yt],Yt=0;Yt<r.text.length;Yt++){var Xt=r.text.charAt(Yt);if(Tt.ids[Xt]==null&&(Tt.ids[Xt]=Tt.chars.length,Tt.chars.push(Xt),l.push(Xt)),rt.width[Xt]==null&&(rt.width[Xt]=yr.atlasContext.measureText(Xt).width/yr.baseFontSize,r.kerning)){var Qe=[];for(var Ot in rt.width)Qe.push(Ot+Xt,Xt+Ot);tW(rt.kerning,eW(rt.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,v=vo.mallocFloat(this.count*2),x=0,y=0;x<this.counts.length;x++){var g=this.counts[x];if(c)for(var k=0;k<g;k++)v[y++]=t.position[x*2],v[y++]=t.position[x*2+1];else for(var N=0;N<g;N++)v[y++]=t.position[x][0],v[y++]=t.position[x][1]}this.position.call?this.position({type:"float",data:v}):this.position=this.regl.buffer({type:"float",data:v}),vo.freeFloat(v)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var b=vo.mallocUint8(this.count),w=vo.mallocFloat(this.count*2);this.textWidth=[];for(var A=0,M=0;A<this.counts.length;A++){for(var R=this.counts[A],L=this.font[A]||this.font[0],D=this.fontAtlas[A]||this.fontAtlas[0],ne=0;ne<R;ne++){var Y=this.text.charAt(M),ae=this.text.charAt(M-1);if(b[M]=D.ids[Y],w[M*2]=L.width[Y],ne){var Ce=w[M*2-2],Fe=w[M*2],Ie=w[M*2-1],je=Ie+Ce*.5+Fe*.5;if(this.kerning){var Ke=L.kerning[ae+Y];Ke&&(je+=Ke*.001)}w[M*2+1]=je}else w[M*2+1]=w[M*2]*.5;M++}this.textWidth.push(w.length?w[M*2-2]*.5+w[M*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:b,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),vo.freeUint8(b),vo.freeFloat(w),l.length&&this.font.forEach(function(rt,yt){var Tt=r.fontAtlas[yt],Yt=Tt.step,Xt=Math.floor(yr.maxAtlasSize/Yt),Qe=Math.min(Xt,Tt.chars.length),Ot=Math.ceil(Tt.chars.length/Qe),jt=N5(Qe*Yt),Ae=N5(Ot*Yt);Tt.width=jt,Tt.height=Ae,Tt.rows=Ot,Tt.cols=Qe,Tt.em&&Tt.texture({data:XH({canvas:yr.atlasCanvas,font:Tt.fontString,chars:Tt.chars,shape:[jt,Ae],step:[Yt,Yt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(rt,yt){var Tt=Array.isArray(r.align)?r.align.length>1?r.align[yt]:r.align[0]:r.align;if(typeof Tt=="number")return Tt;switch(Tt){case"right":case"end":return-rt;case"center":case"centre":case"middle":return-rt*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(rt,yt){var Tt=(r.font[yt]||r.font[0]).metrics,Yt=0;return Yt+=Tt.bottom*.5,typeof rt=="number"?Yt+=rt-Tt.baseline:Yt+=-Tt[rt],Yt*=-1,Yt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=q1(t.color,"uint8");else{var mt;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var lt=t.color.length;mt=vo.mallocUint8(lt);for(var Ue=(t.color.subarray||t.color.slice).bind(t.color),Ye=0;Ye<lt;Ye+=4)mt.set(q1(Ue(Ye,Ye+4),"uint8"),Ye)}else{var It=t.color.length;mt=vo.mallocUint8(It*4);for(var Ze=0;Ze<It;Ze++)mt.set(q1(t.color[Ze]||0,"uint8"),Ze*4)}this.color=mt}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var Ee=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ee){var tt=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(tt);for(var ct=0;ct<this.batch.length;ct++)this.batch[ct]={count:this.counts.length>1?this.counts[ct]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[ct]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(ct*4,ct*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[ct]:this.opacity,baseline:this.baselineOffset[ct]!=null?this.baselineOffset[ct]:this.baselineOffset[0],align:this.align?this.alignOffset[ct]!=null?this.alignOffset[ct]:this.alignOffset[0]:0,atlas:this.fontAtlas[ct]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(ct*2,ct*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};yr.prototype.destroy=function(){};yr.prototype.kerning=!0;yr.prototype.position={constant:new Float32Array(2)};yr.prototype.translate=null;yr.prototype.scale=null;yr.prototype.font=null;yr.prototype.text="";yr.prototype.positionOffset=[0,0];yr.prototype.opacity=1;yr.prototype.color=new Uint8Array([0,0,0,255]);yr.prototype.alignOffset=[0,0];yr.maxAtlasSize=1024;yr.atlasCanvas=document.createElement("canvas");yr.atlasContext=yr.atlasCanvas.getContext("2d",{alpha:!1});yr.baseFontSize=64;yr.fonts={};function aW(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var uY=yr;function oW(e,t){return e.parent===t.parent?1:2}function uW(e){return e.reduce(lW,0)/e.length}function lW(e,t){return e+t.x}function fW(e){return 1+e.reduce(sW,0)}function sW(e,t){return Math.max(e,t.y)}function cW(e){for(var t;t=e.children;)e=t[0];return e}function hW(e){for(var t;t=e.children;)e=t[t.length-1];return e}function dW(){var e=oW,t=1,r=1,n=!1;function i(a){var u,l=0;a.eachAfter(function(y){var g=y.children;g?(y.x=uW(g),y.y=fW(g)):(y.x=u?l+=e(y,u):0,y.y=0,u=y)});var s=cW(a),c=hW(a),v=s.x-e(s,c)/2,x=c.x+e(c,s)/2;return a.eachAfter(n?function(y){y.x=(y.x-a.x)*t,y.y=(a.y-y.y)*r}:function(y){y.x=(y.x-v)/(x-v)*t,y.y=(1-(a.y?y.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function pW(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function vW(){return this.eachAfter(pW)}function mW(e){var t=this,r,n=[t],i,a,u;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,u=i.length;a<u;++a)n.push(i[a]);while(n.length);return this}function gW(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function yW(e){for(var t=this,r=[t],n=[],i,a,u;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,u=i.length;a<u;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function xW(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function _W(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function wW(e){for(var t=this,r=bW(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function bW(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function SW(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function EW(){var e=[];return this.each(function(t){e.push(t)}),e}function AW(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function TW(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function Rw(e,t){var r=new Xf(e),n=+e.value&&(r.value=e.value),i,a=[r],u,l,s,c;for(t==null&&(t=kW);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(c=l.length))for(i.children=new Array(c),s=c-1;s>=0;--s)a.push(u=i.children[s]=new Xf(l[s])),u.parent=i,u.depth=i.depth+1;return r.eachBefore(bM)}function CW(){return Rw(this).eachBefore(OW)}function kW(e){return e.children}function OW(e){e.data=e.data.data}function bM(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Xf(e){this.data=e,this.depth=this.height=0,this.parent=null}Xf.prototype=Rw.prototype={constructor:Xf,count:vW,each:mW,eachAfter:yW,eachBefore:gW,sum:xW,sort:_W,path:wW,ancestors:SW,descendants:EW,leaves:AW,links:TW,copy:CW};var MW=Array.prototype.slice;function FW(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function SM(e){for(var t=0,r=(e=FW(MW.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&EM(a,i)?++t:(a=RW(n=NW(n,i)),t=0);return a}function NW(e,t){var r,n;if(X1(t,e))return[t];for(r=0;r<e.length;++r)if(v0(t,e[r])&&X1(Jc(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(v0(Jc(e[r],e[n]),t)&&v0(Jc(e[r],t),e[n])&&v0(Jc(e[n],t),e[r])&&X1(AM(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function v0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function EM(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function X1(e,t){for(var r=0;r<t.length;++r)if(!EM(e,t[r]))return!1;return!0}function RW(e){switch(e.length){case 1:return IW(e[0]);case 2:return Jc(e[0],e[1]);case 3:return AM(e[0],e[1],e[2])}}function IW(e){return{x:e.x,y:e.y,r:e.r}}function Jc(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,u=t.y,l=t.r,s=a-r,c=u-n,v=l-i,x=Math.sqrt(s*s+c*c);return{x:(r+a+s/x*v)/2,y:(n+u+c/x*v)/2,r:(x+i+l)/2}}function AM(e,t,r){var n=e.x,i=e.y,a=e.r,u=t.x,l=t.y,s=t.r,c=r.x,v=r.y,x=r.r,y=n-u,g=n-c,k=i-l,N=i-v,b=s-a,w=x-a,A=n*n+i*i-a*a,M=A-u*u-l*l+s*s,R=A-c*c-v*v+x*x,L=g*k-y*N,D=(k*R-N*M)/(L*2)-n,ne=(N*b-k*w)/L,Y=(g*M-y*R)/(L*2)-i,ae=(y*w-g*b)/L,Ce=ne*ne+ae*ae-1,Fe=2*(a+D*ne+Y*ae),Ie=D*D+Y*Y-a*a,je=-(Ce?(Fe+Math.sqrt(Fe*Fe-4*Ce*Ie))/(2*Ce):Ie/Fe);return{x:n+D+ne*je,y:i+Y+ae*je,r:je}}function I5(e,t,r){var n=e.x-t.x,i,a,u=e.y-t.y,l,s,c=n*n+u*u;c?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(c+s-a)/(2*c),l=Math.sqrt(Math.max(0,s/c-i*i)),r.x=e.x-i*n-l*u,r.y=e.y-i*u+l*n):(i=(c+a-s)/(2*c),l=Math.sqrt(Math.max(0,a/c-i*i)),r.x=t.x+i*n-l*u,r.y=t.y+i*u+l*n)):(r.x=t.x+r.r,r.y=t.y)}function P5(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function L5(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function m0(e){this._=e,this.next=null,this.previous=null}function TM(e){if(!(i=e.length))return 0;var t,r,n,i,a,u,l,s,c,v,x;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;I5(r,t,n=e[2]),t=new m0(t),r=new m0(r),n=new m0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){I5(t._,r._,n=e[l]),n=new m0(n),s=r.next,c=t.previous,v=r._.r,x=t._.r;do if(v<=x){if(P5(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}v+=s._.r,s=s.next}else{if(P5(c._,n._)){t=c,t.next=r,r.previous=t,--l;continue e}x+=c._.r,c=c.previous}while(s!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=L5(t);(n=n.next)!==r;)(u=L5(n))<a&&(t=n,a=u);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=SM(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function PW(e){return TM(e),e}function LW(e){return e==null?null:zv(e)}function zv(e){if(typeof e!="function")throw new Error;return e}function Mu(){return 0}function sf(e){return function(){return e}}function DW(e){return Math.sqrt(e.value)}function BW(){var e=null,t=1,r=1,n=Mu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(D5(e)).eachAfter(Q1(n,.5)).eachBefore(B5(1)):a.eachBefore(D5(DW)).eachAfter(Q1(Mu,1)).eachAfter(Q1(n,a.r/Math.min(t,r))).eachBefore(B5(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=LW(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:sf(+a),i):n},i}function D5(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Q1(e,t){return function(r){if(n=r.children){var n,i,a=n.length,u=e(r)*t||0,l;if(u)for(i=0;i<a;++i)n[i].r+=u;if(l=TM(n),u)for(i=0;i<a;++i)n[i].r-=u;r.r=l+u}}}function B5(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function CM(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function pd(e,t,r,n,i){for(var a=e.children,u,l=-1,s=a.length,c=e.value&&(n-t)/e.value;++l<s;)u=a[l],u.y0=r,u.y1=i,u.x0=t,u.x1=t+=u.value*c}function $W(){var e=1,t=1,r=0,n=!1;function i(u){var l=u.height+1;return u.x0=u.y0=r,u.x1=e,u.y1=t/l,u.eachBefore(a(t,l)),n&&u.eachBefore(CM),u}function a(u,l){return function(s){s.children&&pd(s,s.x0,u*(s.depth+1)/l,s.x1,u*(s.depth+2)/l);var c=s.x0,v=s.y0,x=s.x1-r,y=s.y1-r;x<c&&(c=x=(c+x)/2),y<v&&(v=y=(v+y)/2),s.x0=c,s.y0=v,s.x1=x,s.y1=y}}return i.round=function(u){return arguments.length?(n=!!u,i):n},i.size=function(u){return arguments.length?(e=+u[0],t=+u[1],i):[e,t]},i.padding=function(u){return arguments.length?(r=+u,i):r},i}var $5="$",zW={depth:-1},z5={};function UW(e){return e.id}function jW(e){return e.parentId}function GW(){var e=UW,t=jW;function r(n){var i,a,u=n.length,l,s,c,v=new Array(u),x,y,g={};for(a=0;a<u;++a)i=n[a],c=v[a]=new Xf(i),(x=e(i,a,n))!=null&&(x+="")&&(y=$5+(c.id=x),g[y]=y in g?z5:c);for(a=0;a<u;++a)if(c=v[a],x=t(n[a],a,n),x==null||!(x+="")){if(l)throw new Error("multiple roots");l=c}else{if(s=g[$5+x],!s)throw new Error("missing: "+x);if(s===z5)throw new Error("ambiguous: "+x);s.children?s.children.push(c):s.children=[c],c.parent=s}if(!l)throw new Error("no root");if(l.parent=zW,l.eachBefore(function(k){k.depth=k.parent.depth+1,--u}).eachBefore(bM),l.parent=null,u>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=zv(n),r):e},r.parentId=function(n){return arguments.length?(t=zv(n),r):t},r}function HW(e,t){return e.parent===t.parent?1:2}function Z1(e){var t=e.children;return t?t[0]:e.t}function K1(e){var t=e.children;return t?t[t.length-1]:e.t}function WW(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function VW(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function qW(e,t,r){return e.a.parent===t.parent?e.a:r}function B0(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}B0.prototype=Object.create(Xf.prototype);function YW(e){for(var t=new B0(e,0),r,n=[t],i,a,u,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),u=l-1;u>=0;--u)n.push(i=r.children[u]=new B0(a[u],u)),i.parent=r;return(t.parent=new B0(null,0)).children=[t],t}function XW(){var e=HW,t=1,r=1,n=null;function i(c){var v=YW(c);if(v.eachAfter(a),v.parent.m=-v.z,v.eachBefore(u),n)c.eachBefore(s);else{var x=c,y=c,g=c;c.eachBefore(function(A){A.x<x.x&&(x=A),A.x>y.x&&(y=A),A.depth>g.depth&&(g=A)});var k=x===y?1:e(x,y)/2,N=k-x.x,b=t/(y.x+k+N),w=r/(g.depth||1);c.eachBefore(function(A){A.x=(A.x+N)*b,A.y=A.depth*w})}return c}function a(c){var v=c.children,x=c.parent.children,y=c.i?x[c.i-1]:null;if(v){VW(c);var g=(v[0].z+v[v.length-1].z)/2;y?(c.z=y.z+e(c._,y._),c.m=c.z-g):c.z=g}else y&&(c.z=y.z+e(c._,y._));c.parent.A=l(c,y,c.parent.A||x[0])}function u(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,v,x){if(v){for(var y=c,g=c,k=v,N=y.parent.children[0],b=y.m,w=g.m,A=k.m,M=N.m,R;k=K1(k),y=Z1(y),k&&y;)N=Z1(N),g=K1(g),g.a=c,R=k.z+A-y.z-b+e(k._,y._),R>0&&(WW(qW(k,c,x),c,R),b+=R,w+=R),A+=k.m,b+=y.m,M+=N.m,w+=g.m;k&&!K1(g)&&(g.t=k,g.m+=A-w),y&&!Z1(N)&&(N.t=y,N.m+=b-M,x=c)}return x}function s(c){c.x*=t,c.y=c.depth*r}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(n=!1,t=+c[0],r=+c[1],i):n?null:[t,r]},i.nodeSize=function(c){return arguments.length?(n=!0,t=+c[0],r=+c[1],i):n?[t,r]:null},i}function km(e,t,r,n,i){for(var a=e.children,u,l=-1,s=a.length,c=e.value&&(i-r)/e.value;++l<s;)u=a[l],u.x0=t,u.x1=n,u.y0=r,u.y1=r+=u.value*c}var kM=(1+Math.sqrt(5))/2;function OM(e,t,r,n,i,a){for(var u=[],l=t.children,s,c,v=0,x=0,y=l.length,g,k,N=t.value,b,w,A,M,R,L,D;v<y;){g=i-r,k=a-n;do b=l[x++].value;while(!b&&x<y);for(w=A=b,L=Math.max(k/g,g/k)/(N*e),D=b*b*L,R=Math.max(A/D,D/w);x<y;++x){if(b+=c=l[x].value,c<w&&(w=c),c>A&&(A=c),D=b*b*L,M=Math.max(A/D,D/w),M>R){b-=c;break}R=M}u.push(s={value:b,dice:g<k,children:l.slice(v,x)}),s.dice?pd(s,r,n,i,N?n+=k*b/N:a):km(s,r,n,N?r+=g*b/N:i,a),N-=b,v=x}return u}const MM=function e(t){function r(n,i,a,u,l){OM(t,n,i,a,u,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(kM);function QW(){var e=MM,t=!1,r=1,n=1,i=[0],a=Mu,u=Mu,l=Mu,s=Mu,c=Mu;function v(y){return y.x0=y.y0=0,y.x1=r,y.y1=n,y.eachBefore(x),i=[0],t&&y.eachBefore(CM),y}function x(y){var g=i[y.depth],k=y.x0+g,N=y.y0+g,b=y.x1-g,w=y.y1-g;b<k&&(k=b=(k+b)/2),w<N&&(N=w=(N+w)/2),y.x0=k,y.y0=N,y.x1=b,y.y1=w,y.children&&(g=i[y.depth+1]=a(y)/2,k+=c(y)-g,N+=u(y)-g,b-=l(y)-g,w-=s(y)-g,b<k&&(k=b=(k+b)/2),w<N&&(N=w=(N+w)/2),e(y,k,N,b,w))}return v.round=function(y){return arguments.length?(t=!!y,v):t},v.size=function(y){return arguments.length?(r=+y[0],n=+y[1],v):[r,n]},v.tile=function(y){return arguments.length?(e=zv(y),v):e},v.padding=function(y){return arguments.length?v.paddingInner(y).paddingOuter(y):v.paddingInner()},v.paddingInner=function(y){return arguments.length?(a=typeof y=="function"?y:sf(+y),v):a},v.paddingOuter=function(y){return arguments.length?v.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):v.paddingTop()},v.paddingTop=function(y){return arguments.length?(u=typeof y=="function"?y:sf(+y),v):u},v.paddingRight=function(y){return arguments.length?(l=typeof y=="function"?y:sf(+y),v):l},v.paddingBottom=function(y){return arguments.length?(s=typeof y=="function"?y:sf(+y),v):s},v.paddingLeft=function(y){return arguments.length?(c=typeof y=="function"?y:sf(+y),v):c},v}function ZW(e,t,r,n,i){var a=e.children,u,l=a.length,s,c=new Array(l+1);for(c[0]=s=u=0;u<l;++u)c[u+1]=s+=a[u].value;v(0,l,e.value,t,r,n,i);function v(x,y,g,k,N,b,w){if(x>=y-1){var A=a[x];A.x0=k,A.y0=N,A.x1=b,A.y1=w;return}for(var M=c[x],R=g/2+M,L=x+1,D=y-1;L<D;){var ne=L+D>>>1;c[ne]<R?L=ne+1:D=ne}R-c[L-1]<c[L]-R&&x+1<L&&--L;var Y=c[L]-M,ae=g-Y;if(b-k>w-N){var Ce=(k*ae+b*Y)/g;v(x,L,Y,k,N,Ce,w),v(L,y,ae,Ce,N,b,w)}else{var Fe=(N*ae+w*Y)/g;v(x,L,Y,k,N,b,Fe),v(L,y,ae,k,Fe,b,w)}}}function KW(e,t,r,n,i){(e.depth&1?km:pd)(e,t,r,n,i)}const JW=function e(t){function r(n,i,a,u,l){if((s=n._squarify)&&s.ratio===t)for(var s,c,v,x,y=-1,g,k=s.length,N=n.value;++y<k;){for(c=s[y],v=c.children,x=c.value=0,g=v.length;x<g;++x)c.value+=v[x].value;c.dice?pd(c,i,a,u,a+=(l-a)*c.value/N):km(c,i,a,i+=(u-i)*c.value/N,l),N-=c.value}else n._squarify=s=OM(t,n,i,a,u,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(kM),eV=Object.freeze(Object.defineProperty({__proto__:null,cluster:dW,hierarchy:Rw,pack:BW,packEnclose:SM,packSiblings:PW,partition:$W,stratify:GW,tree:XW,treemap:QW,treemapBinary:ZW,treemapDice:pd,treemapResquarify:JW,treemapSlice:km,treemapSliceDice:KW,treemapSquarify:MM},Symbol.toStringTag,{value:"Module"})),lY=el(eV);function us(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vd(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qo(){}var Ku=.7,Qf=1/Ku,Pf="\\s*([+-]?\\d+)\\s*",Xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,rV=new RegExp(`^rgb\\(${Pf},${Pf},${Pf}\\)$`),nV=new RegExp(`^rgb\\(${ea},${ea},${ea}\\)$`),iV=new RegExp(`^rgba\\(${Pf},${Pf},${Pf},${Xh}\\)$`),aV=new RegExp(`^rgba\\(${ea},${ea},${ea},${Xh}\\)$`),oV=new RegExp(`^hsl\\(${Xh},${ea},${ea}\\)$`),uV=new RegExp(`^hsla\\(${Xh},${ea},${ea},${Xh}\\)$`),U5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};us(Qo,Qh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:j5,formatHex:j5,formatHex8:lV,formatHsl:fV,formatRgb:G5,toString:G5});function j5(){return this.rgb().formatHex()}function lV(){return this.rgb().formatHex8()}function fV(){return FM(this).formatHsl()}function G5(){return this.rgb().formatRgb()}function Qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=tV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?H5(t):r===3?new hn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?g0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?g0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rV.exec(e))?new hn(t[1],t[2],t[3],1):(t=nV.exec(e))?new hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iV.exec(e))?g0(t[1],t[2],t[3],t[4]):(t=aV.exec(e))?g0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oV.exec(e))?q5(t[1],t[2]/100,t[3]/100,1):(t=uV.exec(e))?q5(t[1],t[2]/100,t[3]/100,t[4]):U5.hasOwnProperty(e)?H5(U5[e]):e==="transparent"?new hn(NaN,NaN,NaN,0):null}function H5(e){return new hn(e>>16&255,e>>8&255,e&255,1)}function g0(e,t,r,n){return n<=0&&(e=t=r=NaN),new hn(e,t,r,n)}function Iw(e){return e instanceof Qo||(e=Qh(e)),e?(e=e.rgb(),new hn(e.r,e.g,e.b,e.opacity)):new hn}function Uv(e,t,r,n){return arguments.length===1?Iw(e):new hn(e,t,r,n??1)}function hn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}us(hn,Uv,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new hn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hn(ju(this.r),ju(this.g),ju(this.b),jv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W5,formatHex:W5,formatHex8:sV,formatRgb:V5,toString:V5}));function W5(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}`}function sV(){return`#${Bu(this.r)}${Bu(this.g)}${Bu(this.b)}${Bu((isNaN(this.opacity)?1:this.opacity)*255)}`}function V5(){const e=jv(this.opacity);return`${e===1?"rgb(":"rgba("}${ju(this.r)}, ${ju(this.g)}, ${ju(this.b)}${e===1?")":`, ${e})`}`}function jv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ju(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bu(e){return e=ju(e),(e<16?"0":"")+e.toString(16)}function q5(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ni(e,t,r,n)}function FM(e){if(e instanceof Ni)return new Ni(e.h,e.s,e.l,e.opacity);if(e instanceof Qo||(e=Qh(e)),!e)return new Ni;if(e instanceof Ni)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),u=NaN,l=a-i,s=(a+i)/2;return l?(t===a?u=(r-n)/l+(r<n)*6:r===a?u=(n-t)/l+2:u=(t-r)/l+4,l/=s<.5?a+i:2-a-i,u*=60):l=s>0&&s<1?0:u,new Ni(u,l,s,e.opacity)}function U2(e,t,r,n){return arguments.length===1?FM(e):new Ni(e,t,r,n??1)}function Ni(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Ni,U2,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new Ni(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Ni(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new hn(J1(e>=240?e-240:e+120,i,n),J1(e,i,n),J1(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ni(Y5(this.h),y0(this.s),y0(this.l),jv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jv(this.opacity);return`${e===1?"hsl(":"hsla("}${Y5(this.h)}, ${y0(this.s)*100}%, ${y0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y5(e){return e=(e||0)%360,e<0?e+360:e}function y0(e){return Math.max(0,Math.min(1,e||0))}function J1(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const NM=Math.PI/180,RM=180/Math.PI,Gv=18,IM=.96422,PM=1,LM=.82521,DM=4/29,Lf=6/29,BM=3*Lf*Lf,cV=Lf*Lf*Lf;function $M(e){if(e instanceof ta)return new ta(e.l,e.a,e.b,e.opacity);if(e instanceof Fa)return zM(e);e instanceof hn||(e=Iw(e));var t=nx(e.r),r=nx(e.g),n=nx(e.b),i=ex((.2225045*t+.7168786*r+.0606169*n)/PM),a,u;return t===r&&r===n?a=u=i:(a=ex((.4360747*t+.3850649*r+.1430804*n)/IM),u=ex((.0139322*t+.0971045*r+.7141733*n)/LM)),new ta(116*i-16,500*(a-i),200*(i-u),e.opacity)}function j2(e,t,r,n){return arguments.length===1?$M(e):new ta(e,t,r,n??1)}function ta(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}us(ta,j2,vd(Qo,{brighter(e){return new ta(this.l+Gv*(e??1),this.a,this.b,this.opacity)},darker(e){return new ta(this.l-Gv*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=IM*tx(t),e=PM*tx(e),r=LM*tx(r),new hn(rx(3.1338561*t-1.6168667*e-.4906146*r),rx(-.9787684*t+1.9161415*e+.033454*r),rx(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function ex(e){return e>cV?Math.pow(e,1/3):e/BM+DM}function tx(e){return e>Lf?e*e*e:BM*(e-DM)}function rx(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nx(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function hV(e){if(e instanceof Fa)return new Fa(e.h,e.c,e.l,e.opacity);if(e instanceof ta||(e=$M(e)),e.a===0&&e.b===0)return new Fa(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*RM;return new Fa(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function G2(e,t,r,n){return arguments.length===1?hV(e):new Fa(e,t,r,n??1)}function Fa(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function zM(e){if(isNaN(e.h))return new ta(e.l,0,0,e.opacity);var t=e.h*NM;return new ta(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}us(Fa,G2,vd(Qo,{brighter(e){return new Fa(this.h,this.c,this.l+Gv*(e??1),this.opacity)},darker(e){return new Fa(this.h,this.c,this.l-Gv*(e??1),this.opacity)},rgb(){return zM(this).rgb()}}));var UM=-.14861,Pw=1.78277,Lw=-.29227,Om=-.90649,Zh=1.97294,X5=Zh*Om,Q5=Zh*Pw,Z5=Pw*Lw-Om*UM;function dV(e){if(e instanceof Gu)return new Gu(e.h,e.s,e.l,e.opacity);e instanceof hn||(e=Iw(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Z5*n+X5*t-Q5*r)/(Z5+X5-Q5),a=n-i,u=(Zh*(r-i)-Lw*a)/Om,l=Math.sqrt(u*u+a*a)/(Zh*i*(1-i)),s=l?Math.atan2(u,a)*RM-120:NaN;return new Gu(s<0?s+360:s,l,i,e.opacity)}function H2(e,t,r,n){return arguments.length===1?dV(e):new Gu(e,t,r,n??1)}function Gu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}us(Gu,H2,vd(Qo,{brighter(e){return e=e==null?Qf:Math.pow(Qf,e),new Gu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ku:Math.pow(Ku,e),new Gu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*NM,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new hn(255*(t+r*(UM*n+Pw*i)),255*(t+r*(Lw*n+Om*i)),255*(t+r*(Zh*n)),this.opacity)}}));function jM(e,t,r,n,i){var a=e*e,u=a*e;return((1-3*e+3*a-u)*t+(4-6*a+3*u)*r+(1+3*e+3*a-3*u)*n+u*i)/6}function GM(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],u=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return jM((r-n/t)*t,u,i,a,l)}}function HM(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],u=e[(n+1)%t],l=e[(n+2)%t];return jM((r-n/t)*t,i,a,u,l)}}const Mm=e=>()=>e;function WM(e,t){return function(r){return e+r*t}}function pV(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Fm(e,t){var r=t-e;return r?WM(e,r>180||r<-180?r-360*Math.round(r/360):r):Mm(isNaN(e)?t:e)}function vV(e){return(e=+e)==1?dn:function(t,r){return r-t?pV(t,r,e):Mm(isNaN(t)?r:t)}}function dn(e,t){var r=t-e;return r?WM(e,r):Mm(isNaN(e)?t:e)}const W2=function e(t){var r=vV(t);function n(i,a){var u=r((i=Uv(i)).r,(a=Uv(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),c=dn(i.opacity,a.opacity);return function(v){return i.r=u(v),i.g=l(v),i.b=s(v),i.opacity=c(v),i+""}}return n.gamma=e,n}(1);function VM(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),u,l;for(u=0;u<r;++u)l=Uv(t[u]),n[u]=l.r||0,i[u]=l.g||0,a[u]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var mV=VM(GM),gV=VM(HM);function Dw(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function qM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yV(e,t){return(qM(t)?Dw:YM)(e,t)}function YM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),u;for(u=0;u<n;++u)i[u]=Nm(e[u],t[u]);for(;u<r;++u)a[u]=t[u];return function(l){for(u=0;u<n;++u)a[u]=i[u](l);return a}}function XM(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Vi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function QM(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Nm(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var V2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ix=new RegExp(V2.source,"g");function xV(e){return function(){return e}}function _V(e){return function(t){return e(t)+""}}function ZM(e,t){var r=V2.lastIndex=ix.lastIndex=0,n,i,a,u=-1,l=[],s=[];for(e=e+"",t=t+"";(n=V2.exec(e))&&(i=ix.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[u]?l[u]+=a:l[++u]=a),(n=n[0])===(i=i[0])?l[u]?l[u]+=i:l[++u]=i:(l[++u]=null,s.push({i:u,x:Vi(n,i)})),r=ix.lastIndex;return r<t.length&&(a=t.slice(r),l[u]?l[u]+=a:l[++u]=a),l.length<2?s[0]?_V(s[0].x):xV(t):(t=s.length,function(c){for(var v=0,x;v<t;++v)l[(x=s[v]).i]=x.x(c);return l.join("")})}function Nm(e,t){var r=typeof t,n;return t==null||r==="boolean"?Mm(t):(r==="number"?Vi:r==="string"?(n=Qh(t))?(t=n,W2):ZM:t instanceof Qh?W2:t instanceof Date?XM:qM(t)?Dw:Array.isArray(t)?YM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QM:Vi)(e,t)}function wV(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function bV(e,t){var r=Fm(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function SV(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var K5=180/Math.PI,q2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function KM(e,t,r,n,i,a){var u,l,s;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,u=-u),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*K5,skewX:Math.atan(s)*K5,scaleX:u,scaleY:l}}var x0;function EV(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?q2:KM(t.a,t.b,t.c,t.d,t.e,t.f)}function AV(e){return e==null||(x0||(x0=document.createElementNS("http://www.w3.org/2000/svg","g")),x0.setAttribute("transform",e),!(e=x0.transform.baseVal.consolidate()))?q2:(e=e.matrix,KM(e.a,e.b,e.c,e.d,e.e,e.f))}function JM(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,v,x,y,g,k){if(c!==x||v!==y){var N=g.push("translate(",null,t,null,r);k.push({i:N-4,x:Vi(c,x)},{i:N-2,x:Vi(v,y)})}else(x||y)&&g.push("translate("+x+t+y+r)}function u(c,v,x,y){c!==v?(c-v>180?v+=360:v-c>180&&(c+=360),y.push({i:x.push(i(x)+"rotate(",null,n)-2,x:Vi(c,v)})):v&&x.push(i(x)+"rotate("+v+n)}function l(c,v,x,y){c!==v?y.push({i:x.push(i(x)+"skewX(",null,n)-2,x:Vi(c,v)}):v&&x.push(i(x)+"skewX("+v+n)}function s(c,v,x,y,g,k){if(c!==x||v!==y){var N=g.push(i(g)+"scale(",null,",",null,")");k.push({i:N-4,x:Vi(c,x)},{i:N-2,x:Vi(v,y)})}else(x!==1||y!==1)&&g.push(i(g)+"scale("+x+","+y+")")}return function(c,v){var x=[],y=[];return c=e(c),v=e(v),a(c.translateX,c.translateY,v.translateX,v.translateY,x,y),u(c.rotate,v.rotate,x,y),l(c.skewX,v.skewX,x,y),s(c.scaleX,c.scaleY,v.scaleX,v.scaleY,x,y),c=v=null,function(g){for(var k=-1,N=y.length,b;++k<N;)x[(b=y[k]).i]=b.x(g);return x.join("")}}}var TV=JM(EV,"px, ","px)","deg)"),CV=JM(AV,", ",")",")"),kV=1e-12;function J5(e){return((e=Math.exp(e))+1/e)/2}function OV(e){return((e=Math.exp(e))-1/e)/2}function MV(e){return((e=Math.exp(2*e))-1)/(e+1)}const FV=function e(t,r,n){function i(a,u){var l=a[0],s=a[1],c=a[2],v=u[0],x=u[1],y=u[2],g=v-l,k=x-s,N=g*g+k*k,b,w;if(N<kV)w=Math.log(y/c)/t,b=function(ne){return[l+ne*g,s+ne*k,c*Math.exp(t*ne*w)]};else{var A=Math.sqrt(N),M=(y*y-c*c+n*N)/(2*c*r*A),R=(y*y-c*c-n*N)/(2*y*r*A),L=Math.log(Math.sqrt(M*M+1)-M),D=Math.log(Math.sqrt(R*R+1)-R);w=(D-L)/t,b=function(ne){var Y=ne*w,ae=J5(L),Ce=c/(r*A)*(ae*MV(t*Y+L)-OV(L));return[l+Ce*g,s+Ce*k,c*ae/J5(t*Y+L)]}}return b.duration=w*1e3*t/Math.SQRT2,b}return i.rho=function(a){var u=Math.max(.001,+a),l=u*u,s=l*l;return e(u,l,s)},i}(Math.SQRT2,2,4);function eF(e){return function(t,r){var n=e((t=U2(t)).h,(r=U2(r)).h),i=dn(t.s,r.s),a=dn(t.l,r.l),u=dn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=u(l),t+""}}}const NV=eF(Fm);var RV=eF(dn);function IV(e,t){var r=dn((e=j2(e)).l,(t=j2(t)).l),n=dn(e.a,t.a),i=dn(e.b,t.b),a=dn(e.opacity,t.opacity);return function(u){return e.l=r(u),e.a=n(u),e.b=i(u),e.opacity=a(u),e+""}}function tF(e){return function(t,r){var n=e((t=G2(t)).h,(r=G2(r)).h),i=dn(t.c,r.c),a=dn(t.l,r.l),u=dn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=u(l),t+""}}}const PV=tF(Fm);var LV=tF(dn);function rF(e){return function t(r){r=+r;function n(i,a){var u=e((i=H2(i)).h,(a=H2(a)).h),l=dn(i.s,a.s),s=dn(i.l,a.l),c=dn(i.opacity,a.opacity);return function(v){return i.h=u(v),i.s=l(v),i.l=s(Math.pow(v,r)),i.opacity=c(v),i+""}}return n.gamma=t,n}(1)}const DV=rF(Fm);var BV=rF(dn);function $V(e,t){t===void 0&&(t=e,e=Nm);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(u){var l=Math.max(0,Math.min(n-1,Math.floor(u*=n)));return a[l](u-l)}}function zV(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const UV=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Nm,interpolateArray:yV,interpolateBasis:GM,interpolateBasisClosed:HM,interpolateCubehelix:DV,interpolateCubehelixLong:BV,interpolateDate:XM,interpolateDiscrete:wV,interpolateHcl:PV,interpolateHclLong:LV,interpolateHsl:NV,interpolateHslLong:RV,interpolateHue:bV,interpolateLab:IV,interpolateNumber:Vi,interpolateNumberArray:Dw,interpolateObject:QM,interpolateRgb:W2,interpolateRgbBasis:mV,interpolateRgbBasisClosed:gV,interpolateRound:SV,interpolateString:ZM,interpolateTransformCss:TV,interpolateTransformSvg:CV,interpolateZoom:FV,piecewise:$V,quantize:zV},Symbol.toStringTag,{value:"Module"})),fY=el(UV);var jV="Expected a function",nF="__lodash_hash_undefined__",iF=1/0,GV=9007199254740991,HV="[object Function]",WV="[object GeneratorFunction]",VV="[object Symbol]",qV=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YV=/^\w*$/,XV=/^\./,QV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZV=/[\\^$.*+?()[\]{}|]/g,KV=/\\(\\)?/g,JV=/^\[object .+?Constructor\]$/,eq=/^(?:0|[1-9]\d*)$/,tq=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,rq=typeof self=="object"&&self&&self.Object===Object&&self,Bw=tq||rq||Function("return this")();function nq(e,t){return e==null?void 0:e[t]}function iq(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var aq=Array.prototype,oq=Function.prototype,aF=Object.prototype,ax=Bw["__core-js_shared__"],eT=function(){var e=/[^.]+$/.exec(ax&&ax.keys&&ax.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),oF=oq.toString,Rm=aF.hasOwnProperty,uF=aF.toString,uq=RegExp("^"+oF.call(Rm).replace(ZV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tT=Bw.Symbol,lq=aq.splice,fq=lF(Bw,"Map"),Kh=lF(Object,"create"),rT=tT?tT.prototype:void 0,nT=rT?rT.toString:void 0;function Ju(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function sq(){this.__data__=Kh?Kh(null):{}}function cq(e){return this.has(e)&&delete this.__data__[e]}function hq(e){var t=this.__data__;if(Kh){var r=t[e];return r===nF?void 0:r}return Rm.call(t,e)?t[e]:void 0}function dq(e){var t=this.__data__;return Kh?t[e]!==void 0:Rm.call(t,e)}function pq(e,t){var r=this.__data__;return r[e]=Kh&&t===void 0?nF:t,this}Ju.prototype.clear=sq;Ju.prototype.delete=cq;Ju.prototype.get=hq;Ju.prototype.has=dq;Ju.prototype.set=pq;function ls(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function vq(){this.__data__=[]}function mq(e){var t=this.__data__,r=Im(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lq.call(t,r,1),!0}function gq(e){var t=this.__data__,r=Im(t,e);return r<0?void 0:t[r][1]}function yq(e){return Im(this.__data__,e)>-1}function xq(e,t){var r=this.__data__,n=Im(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}ls.prototype.clear=vq;ls.prototype.delete=mq;ls.prototype.get=gq;ls.prototype.has=yq;ls.prototype.set=xq;function hl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _q(){this.__data__={hash:new Ju,map:new(fq||ls),string:new Ju}}function wq(e){return Pm(this,e).delete(e)}function bq(e){return Pm(this,e).get(e)}function Sq(e){return Pm(this,e).has(e)}function Eq(e,t){return Pm(this,e).set(e,t),this}hl.prototype.clear=_q;hl.prototype.delete=wq;hl.prototype.get=bq;hl.prototype.has=Sq;hl.prototype.set=Eq;function Aq(e,t,r){var n=e[t];(!(Rm.call(e,t)&&fF(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Im(e,t){for(var r=e.length;r--;)if(fF(e[r][0],t))return r;return-1}function Tq(e){if(!Hv(e)||Rq(e))return!1;var t=Dq(e)||iq(e)?uq:JV;return t.test(Lq(e))}function Cq(e,t,r,n){if(!Hv(e))return e;t=Fq(t,e)?[t]:Oq(t);for(var i=-1,a=t.length,u=a-1,l=e;l!=null&&++i<a;){var s=Pq(t[i]),c=r;if(i!=u){var v=l[s];c=n?n(v,s,l):void 0,c===void 0&&(c=Hv(v)?v:Mq(t[i+1])?[]:{})}Aq(l,s,c),l=l[s]}return e}function kq(e){if(typeof e=="string")return e;if(zw(e))return nT?nT.call(e):"";var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function Oq(e){return sF(e)?e:Iq(e)}function Pm(e,t){var r=e.__data__;return Nq(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lF(e,t){var r=nq(e,t);return Tq(r)?r:void 0}function Mq(e,t){return t=t??GV,!!t&&(typeof e=="number"||eq.test(e))&&e>-1&&e%1==0&&e<t}function Fq(e,t){if(sF(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zw(e)?!0:YV.test(e)||!qV.test(e)||t!=null&&e in Object(t)}function Nq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rq(e){return!!eT&&eT in e}var Iq=$w(function(e){e=$q(e);var t=[];return XV.test(e)&&t.push(""),e.replace(QV,function(r,n,i,a){t.push(i?a.replace(KV,"$1"):n||r)}),t});function Pq(e){if(typeof e=="string"||zw(e))return e;var t=e+"";return t=="0"&&1/e==-iF?"-0":t}function Lq(e){if(e!=null){try{return oF.call(e)}catch{}try{return e+""}catch{}}return""}function $w(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(jV);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var u=e.apply(this,n);return r.cache=a.set(i,u),u};return r.cache=new($w.Cache||hl),r}$w.Cache=hl;function fF(e,t){return e===t||e!==e&&t!==t}var sF=Array.isArray;function Dq(e){var t=Hv(e)?uF.call(e):"";return t==HV||t==WV}function Hv(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Bq(e){return!!e&&typeof e=="object"}function zw(e){return typeof e=="symbol"||Bq(e)&&uF.call(e)==VV}function $q(e){return e==null?"":kq(e)}function zq(e,t,r){return e==null?e:Cq(e,t,r)}var sY=zq;export{bh as A,lr as B,Uw as C,Hq as D,y3 as E,vm as F,ka as G,sY as H,Wq as I,Vq as J,jq as K,Gq as L,zp as R,Yq as a,Jq as b,eY as c,iA as d,F2 as e,Xq as f,Qq as g,Zq as h,Pv as i,hz as j,rY as k,wm as l,Kq as m,tY as n,N2 as o,AO as p,$2 as q,qq as r,nY as s,TA as t,iY as u,aY as v,oY as w,uY as x,lY as y,fY as z};
1133
+ //# sourceMappingURL=vendor-7841d969.js.map