UNPKG

@guardian/mobile-apps-article-templates

Version:

Templates for articles on both iOS and Android next-gen apps

2 lines 291 kB
/*! For license information please see boot.js.LICENSE.txt */ (()=>{var r={28:(r,s,c)=>{"use strict";var u=c(9392);r.exports=/ipad|iphone|ipod/i.test(u)&&"undefined"!=typeof Pebble},34:(r,s,c)=>{"use strict";var u=c(4901);r.exports=function(r){return"object"==typeof r?null!==r:u(r)}},55:(r,s,c)=>{"use strict";c.r(s),c.d(s,{init:()=>p});var u=c(7457);function newCricketData(r,s){var c=document.getElementById("cricket-header"),u=document.getElementById("cricket-scorecard");c&&(c.innerHTML=r),u&&(u.innerHTML=s)}function newCricketStatus(r){var s=document.getElementsByClassName("cricket")[0];s&&"pre-match"===r?s.classList.add("cricket--".concat(r)):s.classList.remove("cricket--pre-match")}function cricketMatchInfoFailed(){var r=document.getElementById("cricket-header"),s=document.getElementById("cricket-scorecard"),c=document.getElementById("cricket__tab--stats"),u=document.getElementById("cricket__tabpanel--stats");if(c&&"true"===c.getAttribute("aria-selected")){var l=document.querySelector(".tabs a:first-of-type");if(l){var p=document.querySelector(l.getAttribute("href"));l.setAttribute("aria-selected","true"),p.style.display="block"}}removeElement(c),removeElement(u),removeElement(r),removeElement(s)}function removeElement(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function cricket_init(){!function setupGlobals(){window.newCricketData=newCricketData,window.newCricketStatus=newCricketStatus,window.cricketMatchInfoFailed=cricketMatchInfoFailed}()}var l=c(3317),p=function init(){(0,u.init)(),cricket_init(),document.getElementsByClassName("article__body--liveblog").length>0&&(0,l.T)()}},62:(r,s,c)=>{"use strict";var u=c(5751),l=c(3496);r.exports=function repeat(r){var s=String(l(this)),c="",p=u(r);if(p<0||p==1/0)throw RangeError("Count can't be negative");for(;p>0;(p>>>=1)&&(s+=s))1&p&&(c+=s);return c}},67:(r,s,c)=>{"use strict";c(7145)},81:(r,s,c)=>{"use strict";var u=c(9565),l=c(9306),p=c(8551),h=c(6823),m=c(851),v=TypeError;r.exports=function(r,s){var c=arguments.length<2?m(r):s;if(l(c))return p(u(c,r));throw new v(h(r)+" is not iterable")}},96:(r,s,c)=>{s.f=c(2814)},108:(r,s,c)=>{var u=c(7675);r.exports=function(r,s,c){if(u(r),void 0===s)return r;switch(c){case 1:return function(c){return r.call(s,c)};case 2:return function(c,u){return r.call(s,c,u)};case 3:return function(c,u,l){return r.call(s,c,u,l)}}return function(){return r.apply(s,arguments)}}},114:(r,s,c)=>{"use strict";var u=c(6601),l=c(324).getWeak,p=c(3068),h=c(5041),m=c(5968),v=c(6318),g=c(1307),y=c(9701),_=c(7200),w=g(5),b=g(6),E=0,uncaughtFrozenStore=function(r){return r._l||(r._l=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.a=[]},findUncaughtFrozen=function(r,s){return w(r.a,(function(r){return r[0]===s}))};UncaughtFrozenStore.prototype={get:function(r){var s=findUncaughtFrozen(this,r);if(s)return s[1]},has:function(r){return!!findUncaughtFrozen(this,r)},set:function(r,s){var c=findUncaughtFrozen(this,r);c?c[1]=s:this.a.push([r,s])},delete:function(r){var s=b(this.a,(function(s){return s[0]===r}));return~s&&this.a.splice(s,1),!!~s}},r.exports={getConstructor:function(r,s,c,p){var g=r((function(r,u){m(r,g,s,"_i"),r._t=s,r._i=E++,r._l=void 0,null!=u&&v(u,c,r[p],r)}));return u(g.prototype,{delete:function(r){if(!h(r))return!1;var c=l(r);return!0===c?uncaughtFrozenStore(_(this,s)).delete(r):c&&y(c,this._i)&&delete c[this._i]},has:function has(r){if(!h(r))return!1;var c=l(r);return!0===c?uncaughtFrozenStore(_(this,s)).has(r):c&&y(c,this._i)}}),g},def:function(r,s,c){var u=l(p(s),!0);return!0===u?uncaughtFrozenStore(r).set(s,c):u[r._i]=c,r},ufstore:uncaughtFrozenStore}},121:r=>{var s,c,u,l,p,h;r.exports=(c=[],u=document,l=u.documentElement.doScroll,p="DOMContentLoaded",(h=(l?/^loaded|^c/:/^loaded|^i|^c/).test(u.readyState))||u.addEventListener(p,s=function(){for(u.removeEventListener(p,s),h=1;s=c.shift();)s()}),function(r){h?setTimeout(r,0):c.push(r)})},267:(r,s,c)=>{var u=c(2814)("match");r.exports=function(r){var s=/./;try{"/./"[r](s)}catch(c){try{return s[u]=!1,!"/./"[r](s)}catch(r){}}return!0}},270:(r,s,c)=>{"use strict";var u=c(3068);r.exports=function(){var r=u(this),s="";return r.global&&(s+="g"),r.ignoreCase&&(s+="i"),r.multiline&&(s+="m"),r.unicode&&(s+="u"),r.sticky&&(s+="y"),s}},280:(r,s,c)=>{"use strict";var u=c(6518),l=c(7751),p=c(6395),h=c(550),m=c(916).CONSTRUCTOR,v=c(3438),g=l("Promise"),y=p&&!m;u({target:"Promise",stat:!0,forced:p||m},{resolve:function resolve(r){return v(y&&this===g?h:this,r)}})},283:(r,s,c)=>{"use strict";var u=c(9504),l=c(9039),p=c(4901),h=c(9297),m=c(3724),v=c(350).CONFIGURABLE,g=c(3706),y=c(1181),_=y.enforce,w=y.get,b=String,E=Object.defineProperty,x=u("".slice),S=u("".replace),C=u([].join),k=m&&!l((function(){return 8!==E((function(){}),"length",{value:8}).length})),T=String(String).split("String"),A=r.exports=function(r,s,c){"Symbol("===x(b(s),0,7)&&(s="["+S(b(s),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),c&&c.getter&&(s="get "+s),c&&c.setter&&(s="set "+s),(!h(r,"name")||v&&r.name!==s)&&(m?E(r,"name",{value:s,configurable:!0}):r.name=s),k&&c&&h(c,"arity")&&r.length!==c.arity&&E(r,"length",{value:c.arity});try{c&&h(c,"constructor")&&c.constructor?m&&E(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=_(r);return h(u,"source")||(u.source=C(T,"string"==typeof s?s:"")),r};Function.prototype.toString=A((function toString(){return p(this)&&w(this).source||g(this)}),"toString")},284:(r,s,c)=>{var u=c(6594),l=c(2814)("iterator"),p=Array.prototype;r.exports=function(r){return void 0!==r&&(u.Array===r||p[l]===r)}},308:(r,s,c)=>{"use strict";var u=c(5988)(!0);r.exports=function(r,s,c){return s+(c?u(r,s).length:1)}},324:(r,s,c)=>{var u=c(1415)("meta"),l=c(5041),p=c(9701),h=c(4727).f,m=0,v=Object.isExtensible||function(){return!0},g=!c(4944)((function(){return v(Object.preventExtensions({}))})),setMeta=function(r){h(r,u,{value:{i:"O"+ ++m,w:{}}})},y=r.exports={KEY:u,NEED:!1,fastKey:function(r,s){if(!l(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!p(r,u)){if(!v(r))return"F";if(!s)return"E";setMeta(r)}return r[u].i},getWeak:function(r,s){if(!p(r,u)){if(!v(r))return!0;if(!s)return!1;setMeta(r)}return r[u].w},onFreeze:function(r){return g&&y.NEED&&v(r)&&!p(r,u)&&setMeta(r),r}}},350:(r,s,c)=>{"use strict";var u=c(3724),l=c(9297),p=Function.prototype,h=u&&Object.getOwnPropertyDescriptor,m=l(p,"name"),v=m&&"something"===function something(){}.name,g=m&&(!u||u&&h(p,"name").configurable);r.exports={EXISTS:m,PROPER:v,CONFIGURABLE:g}},397:(r,s,c)=>{"use strict";var u=c(7751);r.exports=u("document","documentElement")},410:(r,s,c)=>{var u=c(2153);r.exports=function(r,s){if("number"!=typeof r&&"Number"!=u(r))throw TypeError(s);return+r}},421:r=>{"use strict";r.exports={}},436:(r,s,c)=>{"use strict";var u,l,p,h=c(6518),m=c(6395),v=c(9088),g=c(4475),y=c(9565),_=c(6840),w=c(2967),b=c(687),E=c(7633),x=c(9306),S=c(4901),C=c(34),k=c(679),T=c(2293),A=c(9225).set,N=c(1955),L=c(3138),I=c(1103),P=c(8265),O=c(1181),M=c(550),B=c(916),R=c(6043),j="Promise",q=B.CONSTRUCTOR,G=B.REJECTION_EVENT,D=B.SUBCLASSING,H=O.getterFor(j),U=O.set,$=M&&M.prototype,W=M,V=$,z=g.TypeError,Y=g.document,J=g.process,X=R.f,Q=X,K=!!(Y&&Y.createEvent&&g.dispatchEvent),Z="unhandledrejection",isThenable=function(r){var s;return!(!C(r)||!S(s=r.then))&&s},callReaction=function(r,s){var c,u,l,p=s.value,h=1===s.state,m=h?r.ok:r.fail,v=r.resolve,g=r.reject,_=r.domain;try{m?(h||(2===s.rejection&&onHandleUnhandled(s),s.rejection=1),!0===m?c=p:(_&&_.enter(),c=m(p),_&&(_.exit(),l=!0)),c===r.promise?g(new z("Promise-chain cycle")):(u=isThenable(c))?y(u,c,v,g):v(c)):g(p)}catch(r){_&&!l&&_.exit(),g(r)}},notify=function(r,s){r.notified||(r.notified=!0,N((function(){for(var c,u=r.reactions;c=u.get();)callReaction(c,r);r.notified=!1,s&&!r.rejection&&onUnhandled(r)})))},dispatchEvent=function(r,s,c){var u,l;K?((u=Y.createEvent("Event")).promise=s,u.reason=c,u.initEvent(r,!1,!0),g.dispatchEvent(u)):u={promise:s,reason:c},!G&&(l=g["on"+r])?l(u):r===Z&&L("Unhandled promise rejection",c)},onUnhandled=function(r){y(A,g,(function(){var s,c=r.facade,u=r.value;if(isUnhandled(r)&&(s=I((function(){v?J.emit("unhandledRejection",u,c):dispatchEvent(Z,c,u)})),r.rejection=v||isUnhandled(r)?2:1,s.error))throw s.value}))},isUnhandled=function(r){return 1!==r.rejection&&!r.parent},onHandleUnhandled=function(r){y(A,g,(function(){var s=r.facade;v?J.emit("rejectionHandled",s):dispatchEvent("rejectionhandled",s,r.value)}))},bind=function(r,s,c){return function(u){r(s,u,c)}},internalReject=function(r,s,c){r.done||(r.done=!0,c&&(r=c),r.value=s,r.state=2,notify(r,!0))},internalResolve=function(r,s,c){if(!r.done){r.done=!0,c&&(r=c);try{if(r.facade===s)throw new z("Promise can't be resolved itself");var u=isThenable(s);u?N((function(){var c={done:!1};try{y(u,s,bind(internalResolve,c,r),bind(internalReject,c,r))}catch(s){internalReject(c,s,r)}})):(r.value=s,r.state=1,notify(r,!1))}catch(s){internalReject({done:!1},s,r)}}};if(q&&(V=(W=function Promise(r){k(this,V),x(r),y(u,this);var s=H(this);try{r(bind(internalResolve,s),bind(internalReject,s))}catch(r){internalReject(s,r)}}).prototype,(u=function Promise(r){U(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:0,value:void 0})}).prototype=_(V,"then",(function then(r,s){var c=H(this),u=X(T(this,W));return c.parent=!0,u.ok=!S(r)||r,u.fail=S(s)&&s,u.domain=v?J.domain:void 0,0===c.state?c.reactions.add(u):N((function(){callReaction(u,c)})),u.promise})),l=function(){var r=new u,s=H(r);this.promise=r,this.resolve=bind(internalResolve,s),this.reject=bind(internalReject,s)},R.f=X=function(r){return r===W||undefined===r?new l(r):Q(r)},!m&&S(M)&&$!==Object.prototype)){p=$.then,D||_($,"then",(function then(r,s){var c=this;return new W((function(r,s){y(p,c,r,s)})).then(r,s)}),{unsafe:!0});try{delete $.constructor}catch(r){}w&&w($,V)}h({global:!0,constructor:!0,wrap:!0,forced:q},{Promise:W}),b(W,j,!1,!0),E(j)},471:(r,s,c)=>{"use strict";var u=c(5446),l=c(6375),p=c(1043),h=c(4005),m=c(6594),v=c(4968),g=c(7404),y=c(9595),_=c(2814)("iterator"),w=!([].keys&&"next"in[].keys()),b="keys",E="values",returnThis=function(){return this};r.exports=function(r,s,c,x,S,C,k){v(c,s,x);var T,A,N,getMethod=function(r){if(!w&&r in O)return O[r];switch(r){case b:return function keys(){return new c(this,r)};case E:return function values(){return new c(this,r)}}return function entries(){return new c(this,r)}},L=s+" Iterator",I=S==E,P=!1,O=r.prototype,M=O[_]||O["@@iterator"]||S&&O[S],B=M||getMethod(S),R=S?I?getMethod("entries"):B:void 0,j="Array"==s&&O.entries||M;if(j&&(N=y(j.call(new r)))!==Object.prototype&&N.next&&(g(N,L,!0),u||"function"==typeof N[_]||h(N,_,returnThis)),I&&M&&M.name!==E&&(P=!0,B=function values(){return M.call(this)}),u&&!k||!w&&!P&&O[_]||h(O,_,B),m[s]=B,m[L]=returnThis,S)if(T={values:I?B:getMethod(E),keys:C?B:getMethod(b),entries:R},k)for(A in T)A in O||p(O,A,T[A]);else l(l.P+l.F*(w||P),s,T);return T}},495:(r,s,c)=>{var u=c(3366),l=c(2663);c(7699)("keys",(function(){return function keys(r){return l(u(r))}}))},507:(r,s,c)=>{var u=c(6375);u(u.S,"Object",{is:c(8279)})},516:r=>{"use strict";r.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},533:(r,s,c)=>{"use strict";var u=c(3068),l=c(8279),p=c(9951);c(2868)("search",1,(function(r,s,c,h){return[function search(c){var u=r(this),l=null==c?void 0:c[s];return void 0!==l?l.call(c,u):new RegExp(c)[s](String(u))},function(r){var s=h(c,r,this);if(s.done)return s.value;var m=u(r),v=String(this),g=m.lastIndex;l(g,0)||(m.lastIndex=0);var y=p(m,v);return l(m.lastIndex,g)||(m.lastIndex=g),null===y?-1:y.index}]}))},537:(r,s,c)=>{"use strict";var u=c(550),l=c(4428),p=c(916).CONSTRUCTOR;r.exports=p||!l((function(r){u.all(r).then(void 0,(function(){}))}))},550:(r,s,c)=>{"use strict";var u=c(4475);r.exports=u.Promise},573:(r,s,c)=>{var u=c(6375);u(u.S,"Math",{log1p:c(3993)})},616:(r,s,c)=>{"use strict";var u=c(9039);r.exports=!u((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")}))},631:(r,s,c)=>{var u=c(6375),l=Math.imul;u(u.S+u.F*c(4944)((function(){return-5!=l(4294967295,5)||2!=l.length})),"Math",{imul:function imul(r,s){var c=65535,u=+r,l=+s,p=c&u,h=c&l;return 0|p*h+((c&u>>>16)*h+p*(c&l>>>16)<<16>>>0)}})},637:(r,s,c)=>{"use strict";var u=c(1531),l=c(3068),p=c(3214),h=c(308),m=c(6498),v=c(9951),g=c(9064),y=c(4944),_=Math.min,w=[].push,b="split",E="length",x="lastIndex",S=4294967295,C=!y((function(){RegExp(S,"y")}));c(2868)("split",2,(function(r,s,c,y){var k;return k="c"=="abbc"[b](/(b)*/)[1]||4!="test"[b](/(?:)/,-1)[E]||2!="ab"[b](/(?:ab)*/)[E]||4!="."[b](/(.?)(.?)/)[E]||"."[b](/()()/)[E]>1||""[b](/.?/)[E]?function(r,s){var l=String(this);if(void 0===r&&0===s)return[];if(!u(r))return c.call(l,r,s);for(var p,h,m,v=[],y=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),_=0,b=void 0===s?S:s>>>0,C=new RegExp(r.source,y+"g");(p=g.call(C,l))&&!((h=C[x])>_&&(v.push(l.slice(_,p.index)),p[E]>1&&p.index<l[E]&&w.apply(v,p.slice(1)),m=p[0][E],_=h,v[E]>=b));)C[x]===p.index&&C[x]++;return _===l[E]?!m&&C.test("")||v.push(""):v.push(l.slice(_)),v[E]>b?v.slice(0,b):v}:"0"[b](void 0,0)[E]?function(r,s){return void 0===r&&0===s?[]:c.call(this,r,s)}:c,[function split(c,u){var l=r(this),p=null==c?void 0:c[s];return void 0!==p?p.call(c,l,u):k.call(String(l),c,u)},function(r,s){var u=y(k,r,this,s,k!==c);if(u.done)return u.value;var g=l(r),w=String(this),b=p(g,RegExp),E=g.unicode,x=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(C?"y":"g"),T=new b(C?g:"^(?:"+g.source+")",x),A=void 0===s?S:s>>>0;if(0===A)return[];if(0===w.length)return null===v(T,w)?[w]:[];for(var N=0,L=0,I=[];L<w.length;){T.lastIndex=C?L:0;var P,O=v(T,C?w:w.slice(L));if(null===O||(P=_(m(T.lastIndex+(C?0:L)),w.length))===N)L=h(w,L,E);else{if(I.push(w.slice(N,L)),I.length===A)return I;for(var M=1;M<=O.length-1;M++)if(I.push(O[M]),I.length===A)return I;L=N=P}}return I.push(w.slice(N)),I}]}))},655:(r,s,c)=>{"use strict";var u=c(6955),l=String;r.exports=function(r){if("Symbol"===u(r))throw new TypeError("Cannot convert a Symbol value to a string");return l(r)}},679:(r,s,c)=>{"use strict";var u=c(1625),l=TypeError;r.exports=function(r,s){if(u(s,r))return r;throw new l("Incorrect invocation")}},687:(r,s,c)=>{"use strict";var u=c(4913).f,l=c(9297),p=c(8227)("toStringTag");r.exports=function(r,s,c){r&&!c&&(r=r.prototype),r&&!l(r,p)&&u(r,p,{configurable:!0,value:s})}},708:(r,s,c)=>{var u,l,p,h=c(4772),m=c(1157),v=c(9460),g=c(5498),y=c(1790),_=y.process,w=y.setImmediate,b=y.clearImmediate,E=y.MessageChannel,x=y.Dispatch,S=0,C={},k="onreadystatechange",run=function(){var r=+this;if(C.hasOwnProperty(r)){var s=C[r];delete C[r],s()}},listener=function(r){run.call(r.data)};w&&b||(w=function setImmediate(r){for(var s=[],c=1;arguments.length>c;)s.push(arguments[c++]);return C[++S]=function(){m("function"==typeof r?r:Function(r),s)},u(S),S},b=function clearImmediate(r){delete C[r]},"process"==c(2153)(_)?u=function(r){_.nextTick(h(run,r,1))}:x&&x.now?u=function(r){x.now(h(run,r,1))}:E?(p=(l=new E).port2,l.port1.onmessage=listener,u=h(p.postMessage,p,1)):y.addEventListener&&"function"==typeof postMessage&&!y.importScripts?(u=function(r){y.postMessage(r+"","*")},y.addEventListener("message",listener,!1)):u=k in g("script")?function(r){v.appendChild(g("script"))[k]=function(){v.removeChild(this),run.call(r)}}:function(r){setTimeout(h(run,r,1),0)}),r.exports={set:w,clear:b}},741:r=>{"use strict";var s=Math.ceil,c=Math.floor;r.exports=Math.trunc||function trunc(r){var u=+r;return(u>0?c:s)(u)}},747:(r,s,c)=>{"use strict";var u=c(6699),l=c(6193),p=c(4659),h=Error.captureStackTrace;r.exports=function(r,s,c,m){p&&(h?h(r,s):u(r,"stack",l(c,m)))}},757:(r,s,c)=>{"use strict";var u=c(7751),l=c(4901),p=c(1625),h=c(7040),m=Object;r.exports=h?function(r){return"symbol"==typeof r}:function(r){var s=u("Symbol");return l(s)&&p(s.prototype,m(r))}},791:(r,s,c)=>{"use strict";var u=c(6375),l=c(5751),p=c(410),h=c(62),m=1..toFixed,v=Math.floor,g=[0,0,0,0,0,0],y="Number.toFixed: incorrect invocation!",_="0",multiply=function(r,s){for(var c=-1,u=s;++c<6;)u+=r*g[c],g[c]=u%1e7,u=v(u/1e7)},divide=function(r){for(var s=6,c=0;--s>=0;)c+=g[s],g[s]=v(c/r),c=c%r*1e7},numToString=function(){for(var r=6,s="";--r>=0;)if(""!==s||0===r||0!==g[r]){var c=String(g[r]);s=""===s?c:s+h.call(_,7-c.length)+c}return s},pow=function(r,s,c){return 0===s?c:s%2==1?pow(r,s-1,c*r):pow(r*r,s/2,c)};u(u.P+u.F*(!!m&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!c(4944)((function(){m.call({})}))),"Number",{toFixed:function toFixed(r){var s,c,u,m,v=p(this,y),g=l(r),w="",b=_;if(g<0||g>20)throw RangeError(y);if(v!=v)return"NaN";if(v<=-1e21||v>=1e21)return String(v);if(v<0&&(w="-",v=-v),v>1e-21)if(s=function(r){for(var s=0,c=r;c>=4096;)s+=12,c/=4096;for(;c>=2;)s+=1,c/=2;return s}(v*pow(2,69,1))-69,c=s<0?v*pow(2,-s,1):v/pow(2,s,1),c*=4503599627370496,(s=52-s)>0){for(multiply(0,c),u=g;u>=7;)multiply(1e7,0),u-=7;for(multiply(pow(10,u,1),0),u=s-1;u>=23;)divide(1<<23),u-=23;divide(1<<u),multiply(1,1),divide(2),b=numToString()}else multiply(0,c),multiply(1<<-s,0),b=numToString()+h.call(_,g);return b=g>0?w+((m=b.length)<=g?"0."+h.call(_,g-m)+b:b.slice(0,m-g)+"."+b.slice(m-g)):w+b}})},851:(r,s,c)=>{"use strict";var u=c(6955),l=c(5966),p=c(4117),h=c(6269),m=c(8227)("iterator");r.exports=function(r){if(!p(r))return l(r,m)||l(r,"@@iterator")||h[u(r)]}},869:(r,s,c)=>{c(1970),r.exports=c(3750).Object.values},870:(r,s,c)=>{c(1761)("Uint8",1,(function(r){return function Uint8Array(s,c,u){return r(this,s,c,u)}}))},871:(r,s,c)=>{"use strict";var u=c(6375),l=c(1307)(3);u(u.P+u.F*!c(3484)([].some,!0),"Array",{some:function some(r){return l(this,r,arguments[1])}})},873:r=>{r.exports=function(r){return"object"==typeof r?null!==r:"function"==typeof r}},880:(r,s,c)=>{var u=c(6498),l=c(62),p=c(3496);r.exports=function(r,s,c,h){var m=String(p(r)),v=m.length,g=void 0===c?" ":String(c),y=u(s);if(y<=v||""==g)return m;var _=y-v,w=l.call(g,Math.ceil(_/g.length));return w.length>_&&(w=w.slice(0,_)),h?w+m:m+w}},916:(r,s,c)=>{"use strict";var u=c(4475),l=c(550),p=c(4901),h=c(2796),m=c(3706),v=c(8227),g=c(7290),y=c(516),_=c(6395),w=c(7388),b=l&&l.prototype,E=v("species"),x=!1,S=p(u.PromiseRejectionEvent),C=h("Promise",(function(){var r=m(l),s=r!==String(l);if(!s&&66===w)return!0;if(_&&(!b.catch||!b.finally))return!0;if(!w||w<51||!/native code/.test(r)){var c=new l((function(r){r(1)})),FakePromise=function(r){r((function(){}),(function(){}))};if((c.constructor={})[E]=FakePromise,!(x=c.then((function(){}))instanceof FakePromise))return!0}return!s&&(g||y)&&!S}));r.exports={CONSTRUCTOR:C,REJECTION_EVENT:S,SUBCLASSING:x}},926:(r,s,c)=>{"use strict";c(9004)("bold",(function(r){return function bold(){return r(this,"b","","")}}))},932:(r,s,c)=>{r.exports=!c(6875)&&!c(4944)((function(){return 7!=Object.defineProperty(c(5498)("div"),"a",{get:function(){return 7}}).a}))},941:(r,s,c)=>{var u=c(6375),l=c(3496),p=c(4944),h=c(8251),m="["+h+"]",v=RegExp("^"+m+m+"*"),g=RegExp(m+m+"*$"),exporter=function(r,s,c){var l={},m=p((function(){return!!h[r]()||"​…"!="​…"[r]()})),v=l[r]=m?s(y):h[r];c&&(l[c]=v),u(u.P+u.F*m,"String",l)},y=exporter.trim=function(r,s){return r=String(l(r)),1&s&&(r=r.replace(v,"")),2&s&&(r=r.replace(g,"")),r};r.exports=exporter},968:(r,s,c)=>{var u=c(6375);u(u.S+u.F*!c(6875),"Object",{defineProperty:c(4727).f})},993:(r,s,c)=>{var u=Date.prototype,l="Invalid Date",p="toString",h=u[p],m=u.getTime;new Date(NaN)+""!=l&&c(1043)(u,p,(function toString(){var r=m.call(this);return r==r?h.call(this):l}))},1043:(r,s,c)=>{var u=c(1790),l=c(4005),p=c(9701),h=c(1415)("src"),m=c(8189),v="toString",g=(""+m).split(v);c(3750).inspectSource=function(r){return m.call(r)},(r.exports=function(r,s,c,m){var v="function"==typeof c;v&&(p(c,"name")||l(c,"name",s)),r[s]!==c&&(v&&(p(c,h)||l(c,h,r[s]?""+r[s]:g.join(String(s)))),r===u?r[s]=c:m?r[s]?r[s]=c:l(r,s,c):(delete r[s],l(r,s,c)))})(Function.prototype,v,(function toString(){return"function"==typeof this&&this[h]||m.call(this)}))},1072:(r,s,c)=>{"use strict";var u=c(1828),l=c(8727);r.exports=Object.keys||function keys(r){return u(r,l)}},1088:(r,s,c)=>{"use strict";var u=c(6518),l=c(9565),p=c(6395),h=c(350),m=c(4901),v=c(3994),g=c(2787),y=c(2967),_=c(687),w=c(6699),b=c(6840),E=c(8227),x=c(6269),S=c(7657),C=h.PROPER,k=h.CONFIGURABLE,T=S.IteratorPrototype,A=S.BUGGY_SAFARI_ITERATORS,N=E("iterator"),L="keys",I="values",P="entries",returnThis=function(){return this};r.exports=function(r,s,c,h,E,S,O){v(c,s,h);var M,B,R,getIterationMethod=function(r){if(r===E&&H)return H;if(!A&&r&&r in G)return G[r];switch(r){case L:return function keys(){return new c(this,r)};case I:return function values(){return new c(this,r)};case P:return function entries(){return new c(this,r)}}return function(){return new c(this)}},j=s+" Iterator",q=!1,G=r.prototype,D=G[N]||G["@@iterator"]||E&&G[E],H=!A&&D||getIterationMethod(E),U="Array"===s&&G.entries||D;if(U&&(M=g(U.call(new r)))!==Object.prototype&&M.next&&(p||g(M)===T||(y?y(M,T):m(M[N])||b(M,N,returnThis)),_(M,j,!0,!0),p&&(x[j]=returnThis)),C&&E===I&&D&&D.name!==I&&(!p&&k?w(G,"name",I):(q=!0,H=function values(){return l(D,this)})),E)if(B={values:getIterationMethod(I),keys:S?H:getIterationMethod(L),entries:getIterationMethod(P)},O)for(R in B)(A||q||!(R in G))&&b(G,R,B[R]);else u({target:s,proto:!0,forced:A||q},B);return p&&!O||G[N]===H||b(G,N,H,{name:E}),x[s]=H,B}},1092:(r,s,c)=>{"use strict";c.r(s),c.d(s,{init:()=>Mt});var u=c(7457),l=c(2740),p=c(3889),h=c(1929);function none(){}function selector(r){return null==r?none:function(){return this.querySelector(r)}}function empty(){return[]}function selectorAll(r){return null==r?empty:function(){return this.querySelectorAll(r)}}function arrayAll(r){return function(){return function array(r){return null==r?[]:Array.isArray(r)?r:Array.from(r)}(r.apply(this,arguments))}}function matcher(r){return function(){return this.matches(r)}}function childMatcher(r){return function(s){return s.matches(r)}}var m=Array.prototype.find;function childFirst(){return this.firstElementChild}var v=Array.prototype.filter;function children(){return Array.from(this.children)}function sparse(r){return new Array(r.length)}function EnterNode(r,s){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=s}function bindIndex(r,s,c,u,l,p){for(var h,m=0,v=s.length,g=p.length;m<g;++m)(h=s[m])?(h.__data__=p[m],u[m]=h):c[m]=new EnterNode(r,p[m]);for(;m<v;++m)(h=s[m])&&(l[m]=h)}function bindKey(r,s,c,u,l,p,h){var m,v,g,y=new Map,_=s.length,w=p.length,b=new Array(_);for(m=0;m<_;++m)(v=s[m])&&(b[m]=g=h.call(v,v.__data__,m,s)+"",y.has(g)?l[m]=v:y.set(g,v));for(m=0;m<w;++m)g=h.call(r,p[m],m,p)+"",(v=y.get(g))?(u[m]=v,v.__data__=p[m],y.delete(g)):c[m]=new EnterNode(r,p[m]);for(m=0;m<_;++m)(v=s[m])&&y.get(b[m])===v&&(l[m]=v)}function datum(r){return r.__data__}function arraylike(r){return"object"==typeof r&&"length"in r?r:Array.from(r)}function ascending(r,s){return r<s?-1:r>s?1:r>=s?0:NaN}EnterNode.prototype={constructor:EnterNode,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,s){return this._parent.insertBefore(r,s)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};var g="http://www.w3.org/1999/xhtml";const y={svg:"http://www.w3.org/2000/svg",xhtml:g,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(r){var s=r+="",c=s.indexOf(":");return c>=0&&"xmlns"!==(s=r.slice(0,c))&&(r=r.slice(c+1)),y.hasOwnProperty(s)?{space:y[s],local:r}:r}function attrRemove(r){return function(){this.removeAttribute(r)}}function attrRemoveNS(r){return function(){this.removeAttributeNS(r.space,r.local)}}function attrConstant(r,s){return function(){this.setAttribute(r,s)}}function attrConstantNS(r,s){return function(){this.setAttributeNS(r.space,r.local,s)}}function attrFunction(r,s){return function(){var c=s.apply(this,arguments);null==c?this.removeAttribute(r):this.setAttribute(r,c)}}function attrFunctionNS(r,s){return function(){var c=s.apply(this,arguments);null==c?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,c)}}function src_window(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function styleRemove(r){return function(){this.style.removeProperty(r)}}function styleConstant(r,s,c){return function(){this.style.setProperty(r,s,c)}}function styleFunction(r,s,c){return function(){var u=s.apply(this,arguments);null==u?this.style.removeProperty(r):this.style.setProperty(r,u,c)}}function styleValue(r,s){return r.style.getPropertyValue(s)||src_window(r).getComputedStyle(r,null).getPropertyValue(s)}function propertyRemove(r){return function(){delete this[r]}}function propertyConstant(r,s){return function(){this[r]=s}}function propertyFunction(r,s){return function(){var c=s.apply(this,arguments);null==c?delete this[r]:this[r]=c}}function classArray(r){return r.trim().split(/^|\s+/)}function classList(r){return r.classList||new ClassList(r)}function ClassList(r){this._node=r,this._names=classArray(r.getAttribute("class")||"")}function classedAdd(r,s){for(var c=classList(r),u=-1,l=s.length;++u<l;)c.add(s[u])}function classedRemove(r,s){for(var c=classList(r),u=-1,l=s.length;++u<l;)c.remove(s[u])}function classedTrue(r){return function(){classedAdd(this,r)}}function classedFalse(r){return function(){classedRemove(this,r)}}function classedFunction(r,s){return function(){(s.apply(this,arguments)?classedAdd:classedRemove)(this,r)}}function textRemove(){this.textContent=""}function textConstant(r){return function(){this.textContent=r}}function textFunction(r){return function(){var s=r.apply(this,arguments);this.textContent=null==s?"":s}}function htmlRemove(){this.innerHTML=""}function htmlConstant(r){return function(){this.innerHTML=r}}function htmlFunction(r){return function(){var s=r.apply(this,arguments);this.innerHTML=null==s?"":s}}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function creatorInherit(r){return function(){var s=this.ownerDocument,c=this.namespaceURI;return c===g&&s.documentElement.namespaceURI===g?s.createElement(r):s.createElementNS(c,r)}}function creatorFixed(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function creator(r){var s=namespace(r);return(s.local?creatorFixed:creatorInherit)(s)}function constantNull(){return null}function remove(){var r=this.parentNode;r&&r.removeChild(this)}function selection_cloneShallow(){var r=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(r,this.nextSibling):r}function selection_cloneDeep(){var r=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(r,this.nextSibling):r}function onRemove(r){return function(){var s=this.__on;if(s){for(var c,u=0,l=-1,p=s.length;u<p;++u)c=s[u],r.type&&c.type!==r.type||c.name!==r.name?s[++l]=c:this.removeEventListener(c.type,c.listener,c.options);++l?s.length=l:delete this.__on}}}function onAdd(r,s,c){return function(){var u,l=this.__on,p=function contextListener(r){return function(s){r.call(this,s,this.__data__)}}(s);if(l)for(var h=0,m=l.length;h<m;++h)if((u=l[h]).type===r.type&&u.name===r.name)return this.removeEventListener(u.type,u.listener,u.options),this.addEventListener(u.type,u.listener=p,u.options=c),void(u.value=s);this.addEventListener(r.type,p,c),u={type:r.type,name:r.name,value:s,listener:p,options:c},l?l.push(u):this.__on=[u]}}function dispatchEvent(r,s,c){var u=src_window(r),l=u.CustomEvent;"function"==typeof l?l=new l(s,c):(l=u.document.createEvent("Event"),c?(l.initEvent(s,c.bubbles,c.cancelable),l.detail=c.detail):l.initEvent(s,!1,!1)),r.dispatchEvent(l)}function dispatchConstant(r,s){return function(){return dispatchEvent(this,r,s)}}function dispatchFunction(r,s){return function(){return dispatchEvent(this,r,s.apply(this,arguments))}}ClassList.prototype={add:function(r){this._names.indexOf(r)<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var s=this._names.indexOf(r);s>=0&&(this._names.splice(s,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};var _=[null];function Selection(r,s){this._groups=r,this._parents=s}function selection(){return new Selection([[document.documentElement]],_)}Selection.prototype=selection.prototype={constructor:Selection,select:function selection_select(r){"function"!=typeof r&&(r=selector(r));for(var s=this._groups,c=s.length,u=new Array(c),l=0;l<c;++l)for(var p,h,m=s[l],v=m.length,g=u[l]=new Array(v),y=0;y<v;++y)(p=m[y])&&(h=r.call(p,p.__data__,y,m))&&("__data__"in p&&(h.__data__=p.__data__),g[y]=h);return new Selection(u,this._parents)},selectAll:function selectAll(r){r="function"==typeof r?arrayAll(r):selectorAll(r);for(var s=this._groups,c=s.length,u=[],l=[],p=0;p<c;++p)for(var h,m=s[p],v=m.length,g=0;g<v;++g)(h=m[g])&&(u.push(r.call(h,h.__data__,g,m)),l.push(h));return new Selection(u,l)},selectChild:function selectChild(r){return this.select(null==r?childFirst:function childFind(r){return function(){return m.call(this.children,r)}}("function"==typeof r?r:childMatcher(r)))},selectChildren:function selectChildren(r){return this.selectAll(null==r?children:function childrenFilter(r){return function(){return v.call(this.children,r)}}("function"==typeof r?r:childMatcher(r)))},filter:function selection_filter(r){"function"!=typeof r&&(r=matcher(r));for(var s=this._groups,c=s.length,u=new Array(c),l=0;l<c;++l)for(var p,h=s[l],m=h.length,v=u[l]=[],g=0;g<m;++g)(p=h[g])&&r.call(p,p.__data__,g,h)&&v.push(p);return new Selection(u,this._parents)},data:function data(r,s){if(!arguments.length)return Array.from(this,datum);var c=s?bindKey:bindIndex,u=this._parents,l=this._groups;"function"!=typeof r&&(r=function src_constant(r){return function(){return r}}(r));for(var p=l.length,h=new Array(p),m=new Array(p),v=new Array(p),g=0;g<p;++g){var y=u[g],_=l[g],w=_.length,b=arraylike(r.call(y,y&&y.__data__,g,u)),E=b.length,x=m[g]=new Array(E),S=h[g]=new Array(E);c(y,_,x,S,v[g]=new Array(w),b,s);for(var C,k,T=0,A=0;T<E;++T)if(C=x[T]){for(T>=A&&(A=T+1);!(k=S[A])&&++A<E;);C._next=k||null}}return(h=new Selection(h,u))._enter=m,h._exit=v,h},enter:function enter(){return new Selection(this._enter||this._groups.map(sparse),this._parents)},exit:function exit(){return new Selection(this._exit||this._groups.map(sparse),this._parents)},join:function join(r,s,c){var u=this.enter(),l=this,p=this.exit();return"function"==typeof r?(u=r(u))&&(u=u.selection()):u=u.append(r+""),null!=s&&(l=s(l))&&(l=l.selection()),null==c?p.remove():c(p),u&&l?u.merge(l).order():l},merge:function merge(r){for(var s=r.selection?r.selection():r,c=this._groups,u=s._groups,l=c.length,p=u.length,h=Math.min(l,p),m=new Array(l),v=0;v<h;++v)for(var g,y=c[v],_=u[v],w=y.length,b=m[v]=new Array(w),E=0;E<w;++E)(g=y[E]||_[E])&&(b[E]=g);for(;v<l;++v)m[v]=c[v];return new Selection(m,this._parents)},selection:function selection_selection(){return this},order:function order(){for(var r=this._groups,s=-1,c=r.length;++s<c;)for(var u,l=r[s],p=l.length-1,h=l[p];--p>=0;)(u=l[p])&&(h&&4^u.compareDocumentPosition(h)&&h.parentNode.insertBefore(u,h),h=u);return this},sort:function sort(r){function compareNode(s,c){return s&&c?r(s.__data__,c.__data__):!s-!c}r||(r=ascending);for(var s=this._groups,c=s.length,u=new Array(c),l=0;l<c;++l){for(var p,h=s[l],m=h.length,v=u[l]=new Array(m),g=0;g<m;++g)(p=h[g])&&(v[g]=p);v.sort(compareNode)}return new Selection(u,this._parents).order()},call:function call(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this},nodes:function nodes(){return Array.from(this)},node:function node(){for(var r=this._groups,s=0,c=r.length;s<c;++s)for(var u=r[s],l=0,p=u.length;l<p;++l){var h=u[l];if(h)return h}return null},size:function size(){let r=0;for(const s of this)++r;return r},empty:function selection_empty(){return!this.node()},each:function each(r){for(var s=this._groups,c=0,u=s.length;c<u;++c)for(var l,p=s[c],h=0,m=p.length;h<m;++h)(l=p[h])&&r.call(l,l.__data__,h,p);return this},attr:function attr(r,s){var c=namespace(r);if(arguments.length<2){var u=this.node();return c.local?u.getAttributeNS(c.space,c.local):u.getAttribute(c)}return this.each((null==s?c.local?attrRemoveNS:attrRemove:"function"==typeof s?c.local?attrFunctionNS:attrFunction:c.local?attrConstantNS:attrConstant)(c,s))},style:function style(r,s,c){return arguments.length>1?this.each((null==s?styleRemove:"function"==typeof s?styleFunction:styleConstant)(r,s,null==c?"":c)):styleValue(this.node(),r)},property:function property(r,s){return arguments.length>1?this.each((null==s?propertyRemove:"function"==typeof s?propertyFunction:propertyConstant)(r,s)):this.node()[r]},classed:function classed(r,s){var c=classArray(r+"");if(arguments.length<2){for(var u=classList(this.node()),l=-1,p=c.length;++l<p;)if(!u.contains(c[l]))return!1;return!0}return this.each(("function"==typeof s?classedFunction:s?classedTrue:classedFalse)(c,s))},text:function selection_text(r){return arguments.length?this.each(null==r?textRemove:("function"==typeof r?textFunction:textConstant)(r)):this.node().textContent},html:function html(r){return arguments.length?this.each(null==r?htmlRemove:("function"==typeof r?htmlFunction:htmlConstant)(r)):this.node().innerHTML},raise:function selection_raise(){return this.each(raise)},lower:function selection_lower(){return this.each(lower)},append:function append(r){var s="function"==typeof r?r:creator(r);return this.select((function(){return this.appendChild(s.apply(this,arguments))}))},insert:function insert(r,s){var c="function"==typeof r?r:creator(r),u=null==s?constantNull:"function"==typeof s?s:selector(s);return this.select((function(){return this.insertBefore(c.apply(this,arguments),u.apply(this,arguments)||null)}))},remove:function selection_remove(){return this.each(remove)},clone:function clone(r){return this.select(r?selection_cloneDeep:selection_cloneShallow)},datum:function selection_datum(r){return arguments.length?this.property("__data__",r):this.node().__data__},on:function on(r,s,c){var u,l,p=function parseTypenames(r){return r.trim().split(/^|\s+/).map((function(r){var s="",c=r.indexOf(".");return c>=0&&(s=r.slice(c+1),r=r.slice(0,c)),{type:r,name:s}}))}(r+""),h=p.length;if(!(arguments.length<2)){for(m=s?onAdd:onRemove,u=0;u<h;++u)this.each(m(p[u],s,c));return this}var m=this.node().__on;if(m)for(var v,g=0,y=m.length;g<y;++g)for(u=0,v=m[g];u<h;++u)if((l=p[u]).type===v.type&&l.name===v.name)return v.value},dispatch:function selection_dispatch(r,s){return this.each(("function"==typeof s?dispatchFunction:dispatchConstant)(r,s))},[Symbol.iterator]:function*iterator(){for(var r=this._groups,s=0,c=r.length;s<c;++s)for(var u,l=r[s],p=0,h=l.length;p<h;++p)(u=l[p])&&(yield u)}};const w=selection;var b={value:()=>{}};function dispatch_dispatch(){for(var r,s=0,c=arguments.length,u={};s<c;++s){if(!(r=arguments[s]+"")||r in u||/[\s.]/.test(r))throw new Error("illegal type: "+r);u[r]=[]}return new Dispatch(u)}function Dispatch(r){this._=r}function get(r,s){for(var c,u=0,l=r.length;u<l;++u)if((c=r[u]).name===s)return c.value}function set(r,s,c){for(var u=0,l=r.length;u<l;++u)if(r[u].name===s){r[u]=b,r=r.slice(0,u).concat(r.slice(u+1));break}return null!=c&&r.push({name:s,value:c}),r}Dispatch.prototype=dispatch_dispatch.prototype={constructor:Dispatch,on:function(r,s){var c,u=this._,l=function dispatch_parseTypenames(r,s){return r.trim().split(/^|\s+/).map((function(r){var c="",u=r.indexOf(".");if(u>=0&&(c=r.slice(u+1),r=r.slice(0,u)),r&&!s.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:c}}))}(r+"",u),p=-1,h=l.length;if(!(arguments.length<2)){if(null!=s&&"function"!=typeof s)throw new Error("invalid callback: "+s);for(;++p<h;)if(c=(r=l[p]).type)u[c]=set(u[c],r.name,s);else if(null==s)for(c in u)u[c]=set(u[c],r.name,null);return this}for(;++p<h;)if((c=(r=l[p]).type)&&(c=get(u[c],r.name)))return c},copy:function(){var r={},s=this._;for(var c in s)r[c]=s[c].slice();return new Dispatch(r)},call:function(r,s){if((c=arguments.length-2)>0)for(var c,u,l=new Array(c),p=0;p<c;++p)l[p]=arguments[p+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(p=0,c=(u=this._[r]).length;p<c;++p)u[p].value.apply(s,l)},apply:function(r,s,c){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var u=this._[r],l=0,p=u.length;l<p;++l)u[l].value.apply(s,c)}};const E=dispatch_dispatch;var x,S,C=0,k=0,T=0,A=1e3,N=0,L=0,I=0,P="object"==typeof performance&&performance.now?performance:Date,O="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function now(){return L||(O(clearNow),L=P.now()+I)}function clearNow(){L=0}function Timer(){this._call=this._time=this._next=null}function timer(r,s,c){var u=new Timer;return u.restart(r,s,c),u}function wake(){L=(N=P.now())+I,C=k=0;try{!function timerFlush(){now(),++C;for(var r,s=x;s;)(r=L-s._time)>=0&&s._call.call(void 0,r),s=s._next;--C}()}finally{C=0,function nap(){var r,s,c=x,u=1/0;for(;c;)c._call?(u>c._time&&(u=c._time),r=c,c=c._next):(s=c._next,c._next=null,c=r?r._next=s:x=s);S=r,sleep(u)}(),L=0}}function poke(){var r=P.now(),s=r-N;s>A&&(I-=s,N=r)}function sleep(r){C||(k&&(k=clearTimeout(k)),r-L>24?(r<1/0&&(k=setTimeout(wake,r-P.now()-I)),T&&(T=clearInterval(T))):(T||(N=P.now(),T=setInterval(poke,A)),C=1,O(wake)))}function src_timeout(r,s,c){var u=new Timer;return s=null==s?0:+s,u.restart((c=>{u.stop(),r(c+s)}),s,c),u}Timer.prototype=timer.prototype={constructor:Timer,restart:function(r,s,c){if("function"!=typeof r)throw new TypeError("callback is not a function");c=(null==c?now():+c)+(null==s?0:+s),this._next||S===this||(S?S._next=this:x=this,S=this),this._call=r,this._time=c,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};var M=E("start","end","cancel","interrupt"),B=[],R=0,j=1,q=2,G=3,D=4,H=5,U=6;function schedule(r,s,c,u,l,p){var h=r.__transition;if(h){if(c in h)return}else r.__transition={};!function create(r,s,c){var u,l=r.__transition;function schedule(r){c.state=j,c.timer.restart(start,c.delay,c.time),c.delay<=r&&start(r-c.delay)}function start(p){var h,m,v,g;if(c.state!==j)return stop();for(h in l)if((g=l[h]).name===c.name){if(g.state===G)return src_timeout(start);g.state===D?(g.state=U,g.timer.stop(),g.on.call("interrupt",r,r.__data__,g.index,g.group),delete l[h]):+h<s&&(g.state=U,g.timer.stop(),g.on.call("cancel",r,r.__data__,g.index,g.group),delete l[h])}if(src_timeout((function(){c.state===G&&(c.state=D,c.timer.restart(tick,c.delay,c.time),tick(p))})),c.state=q,c.on.call("start",r,r.__data__,c.index,c.group),c.state===q){for(c.state=G,u=new Array(v=c.tween.length),h=0,m=-1;h<v;++h)(g=c.tween[h].value.call(r,r.__data__,c.index,c.group))&&(u[++m]=g);u.length=m+1}}function tick(s){for(var l=s<c.duration?c.ease.call(null,s/c.duration):(c.timer.restart(stop),c.state=H,1),p=-1,h=u.length;++p<h;)u[p].call(r,l);c.state===H&&(c.on.call("end",r,r.__data__,c.index,c.group),stop())}function stop(){for(var u in c.state=U,c.timer.stop(),delete l[s],l)return;delete r.__transition}l[s]=c,c.timer=timer(schedule,0,c.time)}(r,c,{name:s,index:u,group:l,on:M,tween:B,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:R})}function init(r,s){var c=schedule_get(r,s);if(c.state>R)throw new Error("too late; already scheduled");return c}function schedule_set(r,s){var c=schedule_get(r,s);if(c.state>G)throw new Error("too late; already running");return c}function schedule_get(r,s){var c=r.__transition;if(!c||!(c=c[s]))throw new Error("transition not found");return c}function number(r,s){return r=+r,s=+s,function(c){return r*(1-c)+s*c}}var $,W=180/Math.PI,V={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(r,s,c,u,l,p){var h,m,v;return(h=Math.sqrt(r*r+s*s))&&(r/=h,s/=h),(v=r*c+s*u)&&(c-=r*v,u-=s*v),(m=Math.sqrt(c*c+u*u))&&(c/=m,u/=m,v/=m),r*u<s*c&&(r=-r,s=-s,v=-v,h=-h),{translateX:l,translateY:p,rotate:Math.atan2(s,r)*W,skewX:Math.atan(v)*W,scaleX:h,scaleY:m}}function interpolateTransform(r,s,c,u){function pop(r){return r.length?r.pop()+" ":""}return function(l,p){var h=[],m=[];return l=r(l),p=r(p),function translate(r,u,l,p,h,m){if(r!==l||u!==p){var v=h.push("translate(",null,s,null,c);m.push({i:v-4,x:number(r,l)},{i:v-2,x:number(u,p)})}else(l||p)&&h.push("translate("+l+s+p+c)}(l.translateX,l.translateY,p.translateX,p.translateY,h,m),function rotate(r,s,c,l){r!==s?(r-s>180?s+=360:s-r>180&&(r+=360),l.push({i:c.push(pop(c)+"rotate(",null,u)-2,x:number(r,s)})):s&&c.push(pop(c)+"rotate("+s+u)}(l.rotate,p.rotate,h,m),function skewX(r,s,c,l){r!==s?l.push({i:c.push(pop(c)+"skewX(",null,u)-2,x:number(r,s)}):s&&c.push(pop(c)+"skewX("+s+u)}(l.skewX,p.skewX,h,m),function scale(r,s,c,u,l,p){if(r!==c||s!==u){var h=l.push(pop(l)+"scale(",null,",",null,")");p.push({i:h-4,x:number(r,c)},{i:h-2,x:number(s,u)})}else 1===c&&1===u||l.push(pop(l)+"scale("+c+","+u+")")}(l.scaleX,l.scaleY,p.scaleX,p.scaleY,h,m),l=p=null,function(r){for(var s,c=-1,u=m.length;++c<u;)h[(s=m[c]).i]=s.x(r);return h.join("")}}}var z=interpolateTransform((function parseCss(r){const s=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(r+"");return s.isIdentity?V:decompose(s.a,s.b,s.c,s.d,s.e,s.f)}),"px, ","px)","deg)"),Y=interpolateTransform((function parseSvg(r){return null==r?V:($||($=document.createElementNS("http://www.w3.org/2000/svg","g")),$.setAttribute("transform",r),(r=$.transform.baseVal.consolidate())?decompose((r=r.matrix).a,r.b,r.c,r.d,r.e,r.f):V)}),", ",")",")");function tweenRemove(r,s){var c,u;return function(){var l=schedule_set(this,r),p=l.tween;if(p!==c)for(var h=0,m=(u=c=p).length;h<m;++h)if(u[h].name===s){(u=u.slice()).splice(h,1);break}l.tween=u}}function tweenFunction(r,s,c){var u,l;if("function"!=typeof c)throw new Error;return function(){var p=schedule_set(this,r),h=p.tween;if(h!==u){l=(u=h).slice();for(var m={name:s,value:c},v=0,g=l.length;v<g;++v)if(l[v].name===s){l[v]=m;break}v===g&&l.push(m)}p.tween=l}}function tweenValue(r,s,c){var u=r._id;return r.each((function(){var r=schedule_set(this,u);(r.value||(r.value={}))[s]=c.apply(this,arguments)})),function(r){return schedule_get(r,u).value[s]}}function src_define(r,s,c){r.prototype=s.prototype=c,c.constructor=r}function extend(r,s){var c=Object.create(r.prototype);for(var u in s)c[u]=s[u];return c}function Color(){}var J=.7,X=1/J,Q="\\s*([+-]?\\d+)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tt=/^#([0-9a-f]{3,8})$/,et=new RegExp(`^rgb\\(${Q},${Q},${Q}\\)$`),nt=new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`),rt=new RegExp(`^rgba\\(${Q},${Q},${Q},${K}\\)$`),it=new RegExp(`^rgba\\(${Z},${Z},${Z},${K}\\)$`),ot=new RegExp(`^hsl\\(${K},${Z},${Z}\\)$`),at=new RegExp(`^hsla\\(${K},${Z},${Z},${K}\\)$`),st={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};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(r){var s,c;return r=(r+"").trim().toLowerCase(),(s=tt.exec(r))?(c=s[1].length,s=parseInt(s[1],16),6===c?rgbn(s):3===c?new Rgb(s>>8&15|s>>4&240,s>>4&15|240&s,(15&s)<<4|15&s,1):8===c?rgba(s>>24&255,s>>16&255,s>>8&255,(255&s)/255):4===c?rgba(s>>12&15|s>>8&240,s>>8&15|s>>4&240,s>>4&15|240&s,((15&s)<<4|15&s)/255):null):(s=et.exec(r))?new Rgb(s[1],s[2],s[3],1):(s=nt.exec(r))?new Rgb(255*s[1]/100,255*s[2]/100,255*s[3]/100,1):(s=rt.exec(r))?rgba(s[1],s[2],s[3],s[4]):(s=it.exec(r))?rgba(255*s[1]/100,255*s[2]/100,255*s[3]/100,s[4]):(s=ot.exec(r))?hsla(s[1],s[2]/100,s[3]/100,1):(s=at.exec(r))?hsla(s[1],s[2]/100,s[3]/100,s[4]):st.hasOwnProperty(r)?rgbn(st[r]):"transparent"===r?new Rgb(NaN,NaN,NaN,0):null}function rgbn(r){return new Rgb(r>>16&255,r>>8&255,255&r,1)}function rgba(r,s,c,u){return u<=0&&(r=s=c=NaN),new Rgb(r,s,c,u)}function color_rgb(r,s,c,u){return 1===arguments.length?function rgbConvert(r){return r instanceof Color||(r=color(r)),r?new Rgb((r=r.rgb()).r,r.g,r.b,r.opacity):new Rgb}(r):new Rgb(r,s,c,null==u?1:u)}function Rgb(r,s,c,u){this.r=+r,this.g=+s,this.b=+c,this.opacity=+u}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatRgb(){const r=clampa(this.opacity);return`${1===r?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===r?")":`, ${r})`}`}function clampa(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function clampi(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function hex(r){return((r=clampi(r))<16?"0":"")+r.toString(16)}function hsla(r,s,c,u){return u<=0?r=s=c=NaN:c<=0||c>=1?r=s=NaN:s<=0&&(r=NaN),new Hsl(r,s,c,u)}function hslConvert(r){if(r instanceof Hsl)return new Hsl(r.h,r.s,r.l,r.opacity);if(r instanceof Color||(r=color(r)),!r)return new Hsl;if(r instanceof Hsl)return r;var s=(r=r.rgb()).r/255,c=r.g/255,u=r.b/255,l=Math.min(s,c,u),p=Math.max(s,c,u),h=NaN,m=p-l,v=(p+l)/2;return m?(h=s===p?(c-u)/m+6*(c<u):c===p?(u-s)/m+2:(s-c)/m+4,m/=v<.5?p+l:2-p-l,h*=60):m=v>0&&v<1?0:h,new Hsl(h,m,v,r.opacity)}function Hsl(r,s,c,u){this.h=+r,this.s=+s,this.l=+c,this.opacity=+u}function clamph(r){return(r=(r||0)%360)<0?r+360:r}function clampt(r){return Math.max(0,Math.min(1,r||0))}function hsl2rgb(r,s,c){return 255*(r<60?s+(c-s)*r/60:r<180?c:r<240?s+(c-s)*(240-r)/60:s)}function basis(r,s,c,u,l){var p=r*r,h=p*r;return((1-3*r+3*p-h)*s+(4-6*p+3*h)*c+(1+3*r+3*p-3*h)*u+h*l)/6}src_define(Color,color,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:function color_formatHex8(){return this.rgb().formatHex8()},formatHsl:function color_formatHsl(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),src_define(Rgb,color_rgb,extend(Color,{brighter(r){return r=null==r?X:Math.pow(X,r),new Rgb(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=null==r?J:Math.pow(J,r),new Rgb(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(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:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),src_define(Hsl,(function hsl(r,s,c,u){return 1===arguments.length?hslConvert(r):new Hsl(r,s,c,null==u?1:u)}),extend(Color,{brighter(r){return r=null==r?X:Math.pow(X,r),new Hsl(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=null==r?J:Math.pow(J,r),new Hsl(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+360*(this.h<0),s=isNaN(r)||isNaN(this.s)?0:this.s,c=this.l,u=c+(c<.5?c:1-c)*s,l=2*c-u;return new Rgb(hsl2rgb(r>=240?r-240:r+120,l,u),hsl2rgb(r,l,u),hsl2rgb(r<120?r+24