import{C as kr,K as $r}from"./KeyStatsSlice.kMlp4Xgv.js";import{C as Ar}from"./ConversionFormSlice.k3MQxLYO.js";import{_ as zr}from"./SimpleSlice.4PMtRsIv.js";import{s as Mr}from"./animation-service.xozQnu8u.js";import{d as b,c as M,f as p,_ as D,r as C,F as mt,l as Nt,g as q,w as oe,Y as Sr,v as X,b1 as nt,n as Vt,t as ht,a4 as B,a_ as xe,a$ as ke,a5 as ct,p as Ft,e as Rt,h as N,m as Nr,s as Cr,at as Ir,x as Tr,j as Er,b as Fr,U as Rr}from"./entry.Nxv8znR8.js";import{F as Br}from"./FaqSlice.fK11Bv-A.js";import{I as Dr,Q as qr}from"./QuoteSlice.Ntu1eJdS.js";import{R as Pr}from"./RichTextSlice.KMk8XuNx.js";import{S as Hr}from"./SimilarResourcesSlice.iCy3I9vZ.js";import{S as Lr}from"./SubscriptionBanner.glML5ESF.js";import{C as Or}from"./ColoredLabel.LNJFzBCx.js";import{T as Wr,L as Vr}from"./twitter.jDgWGxUP.js";import{_ as jr}from"./BackgroundSlice.73GjPUIE.js";import{D as Xr}from"./browser.LshfV5jA.js";import{W as Yr}from"./WistiaPlayer.Hd9yv1tn.js";const Ur={width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kr=p("rect",{x:"0.4646",y:"0.478027",width:"28",height:"28",rx:"14",fill:"#F3F3F9"},null,-1),Gr=p("path",{d:"M22.4646 14.5269C22.4646 10.0816 18.8829 6.47803 14.4646 6.47803C10.0463 6.47803 6.4646 10.0816 6.4646 14.5269C6.4646 18.5443 9.39007 21.8742 13.2146 22.478V16.8536H11.1833V14.5269H13.2146V12.7536C13.2146 10.7364 14.409 9.62213 16.2363 9.62213C17.1113 9.62213 18.0271 9.77933 18.0271 9.77933V11.7601H17.0183C16.0246 11.7601 15.7146 12.3806 15.7146 13.0178V14.5269H17.9333L17.5787 16.8536H15.7146V22.478C19.5391 21.8742 22.4646 18.5443 22.4646 14.5269Z",fill:"#18191D"},null,-1),Qr=[Kr,Gr];function Zr(t,e){return b(),M("svg",Ur,[...Qr])}const Jr={render:Zr},ti={name:"SocialNetworks",props:{articleMeta:{type:Object,required:!0}},data(){return{sharing:{title:this.articleMeta.title,description:this.articleMeta.description?this.articleMeta.description:"",url:this.articleMeta.canonicalUrl},networks:[{network:"twitter",icon:Wr},{network:"facebook",icon:Jr},{network:"linkedin",icon:Vr}]}}},ei={key:0,class:"social-networks"};function ni(t,e,n,r,i,a){const o=C("share-network");return i.sharing.title?(b(),M("div",ei,[(b(!0),M(mt,null,Nt(i.networks,l=>(b(),q(o,{key:l.key,network:l.network,url:i.sharing.url,title:i.sharing.title,description:i.sharing.description},{default:oe(()=>[(b(),q(Sr(l.icon),{class:"icon"}))]),_:2},1032,["network","url","title","description"]))),128))])):X("",!0)}const ri=D(ti,[["render",ni],["__scopeId","data-v-77d0764a"]]);function St(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Tn(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function En(t){let e,n,r;t.length!==2?(e=St,n=(l,c)=>St(t(l),c),r=(l,c)=>t(l)-c):(e=t===St||t===Tn?t:ii,n=t,r=t);function i(l,c,s=0,h=l.length){if(s<h){if(e(c,c)!==0)return h;do{const u=s+h>>>1;n(l[u],c)<0?s=u+1:h=u}while(s<h)}return s}function a(l,c,s=0,h=l.length){if(s<h){if(e(c,c)!==0)return h;do{const u=s+h>>>1;n(l[u],c)<=0?s=u+1:h=u}while(s<h)}return s}function o(l,c,s=0,h=l.length){const u=i(l,c,s,h-1);return u>s&&r(l[u-1],c)>-r(l[u],c)?u-1:u}return{left:i,center:o,right:a}}function ii(){return 0}function ai(t){return t===null?NaN:+t}const oi=En(St),qe=oi.right;En(ai).center;function si(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function jt(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class $e extends Map{constructor(e,n=ui){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(en(this,e))}has(e){return super.has(en(this,e))}set(e,n){return super.set(li(this,e),n)}delete(e){return super.delete(ci(this,e))}}function en({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function li({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function ci({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function ui(t){return t!==null&&typeof t=="object"?t.valueOf():t}function Fn(t){return t}function nn(t,...e){return fi(t,Array.from,Fn,e)}function fi(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const l=new $e,c=r[o++];let s=-1;for(const h of a){const u=c(h,++s,a),f=l.get(u);f?f.push(h):l.set(u,[h])}for(const[h,u]of l)l.set(h,i(u,o));return e(l)}(t,0)}var hi=Array.prototype,di=hi.slice;function de(t){return()=>t}const pi=Math.sqrt(50),mi=Math.sqrt(10),_i=Math.sqrt(2);function Gt(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=pi?10:a>=mi?5:a>=_i?2:1;let l,c,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(t*s),c=Math.round(e*s),l/s<t&&++l,c/s>e&&--c,s=-s):(s=Math.pow(10,i)*o,l=Math.round(t/s),c=Math.round(e/s),l*s<t&&++l,c*s>e&&--c),c<l&&.5<=n&&n<2?Gt(t,e,n*2):[l,c,s]}function Rn(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,a,o]=r?Gt(e,t,n):Gt(t,e,n);if(!(a>=i))return[];const l=a-i+1,c=new Array(l);if(r)if(o<0)for(let s=0;s<l;++s)c[s]=(a-s)/-o;else for(let s=0;s<l;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<l;++s)c[s]=(i+s)/-o;else for(let s=0;s<l;++s)c[s]=(i+s)*o;return c}function _t(t,e,n){return e=+e,t=+t,n=+n,Gt(t,e,n)[2]}function gi(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?_t(e,t,n):_t(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function vi(t,e,n){let r;for(;;){const i=_t(t,e,n);if(i===r||i===0||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function yi(t){return Math.max(1,Math.ceil(Math.log(si(t))/Math.LN2)+1)}function Ae(){var t=Fn,e=jt,n=yi;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,l,c,s=new Array(o);for(a=0;a<o;++a)s[a]=t(i[a],a,i);var h=e(s),u=h[0],f=h[1],d=n(s,u,f);if(!Array.isArray(d)){const k=f,v=+d;if(e===jt&&([u,f]=vi(u,f,v)),d=Rn(u,f,v),d[0]<=u&&(c=_t(u,f,v)),d[d.length-1]>=f)if(k>=f&&e===jt){const y=_t(u,f,v);isFinite(y)&&(y>0?f=(Math.floor(f/y)+1)*y:y<0&&(f=(Math.ceil(f*-y)+1)/-y))}else d.pop()}for(var m=d.length,_=0,w=m;d[_]<=u;)++_;for(;d[w-1]>f;)--w;(_||w<m)&&(d=d.slice(_,w),m=w-_);var A=new Array(m+1),z;for(a=0;a<=m;++a)z=A[a]=[],z.x0=a>0?d[a-1]:u,z.x1=a<m?d[a]:f;if(isFinite(c)){if(c>0)for(a=0;a<o;++a)(l=s[a])!=null&&u<=l&&l<=f&&A[Math.min(m,Math.floor((l-u)/c))].push(i[a]);else if(c<0){for(a=0;a<o;++a)if((l=s[a])!=null&&u<=l&&l<=f){const k=Math.floor((u-l)*c);A[Math.min(m,k+(d[k]<=l))].push(i[a])}}}else for(a=0;a<o;++a)(l=s[a])!=null&&u<=l&&l<=f&&A[qe(d,l,0,m)].push(i[a]);return A}return r.value=function(i){return arguments.length?(t=typeof i=="function"?i:de(i),r):t},r.domain=function(i){return arguments.length?(e=typeof i=="function"?i:de([i[0],i[1]]),r):e},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:de(Array.isArray(i)?di.call(i):i),r):n},r}function gt(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function wi(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bi(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function Pe(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r<i;)a[r]=t+r*n;return a}function xi(t){return t}var pe=1,me=2,ze=3,$t=4,rn=1e-6;function ki(t){return"translate("+t+",0)"}function $i(t){return"translate(0,"+t+")"}function Ai(t){return e=>+t(e)}function zi(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Mi(){return!this.__axis}function Bn(t,e){var n=[],r=null,i=null,a=6,o=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,s=t===pe||t===$t?-1:1,h=t===$t||t===me?"x":"y",u=t===pe||t===ze?ki:$i;function f(d){var m=r??(e.ticks?e.ticks.apply(e,n):e.domain()),_=i??(e.tickFormat?e.tickFormat.apply(e,n):xi),w=Math.max(a,0)+l,A=e.range(),z=+A[0]+c,k=+A[A.length-1]+c,v=(e.bandwidth?zi:Ai)(e.copy(),c),y=d.selection?d.selection():d,F=y.selectAll(".domain").data([null]),R=y.selectAll(".tick").data(m,e).order(),P=R.exit(),g=R.enter().append("g").attr("class","tick"),x=R.select("line"),$=R.select("text");F=F.merge(F.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),R=R.merge(g),x=x.merge(g.append("line").attr("stroke","currentColor").attr(h+"2",s*a)),$=$.merge(g.append("text").attr("fill","currentColor").attr(h,s*w).attr("dy",t===pe?"0em":t===ze?"0.71em":"0.32em")),d!==y&&(F=F.transition(d),R=R.transition(d),x=x.transition(d),$=$.transition(d),P=P.transition(d).attr("opacity",rn).attr("transform",function(I){return isFinite(I=v(I))?u(I+c):this.getAttribute("transform")}),g.attr("opacity",rn).attr("transform",function(I){var S=this.parentNode.__axis;return u((S&&isFinite(S=S(I))?S:v(I))+c)})),P.remove(),F.attr("d",t===$t||t===me?o?"M"+s*o+","+z+"H"+c+"V"+k+"H"+s*o:"M"+c+","+z+"V"+k:o?"M"+z+","+s*o+"V"+c+"H"+k+"V"+s*o:"M"+z+","+c+"H"+k),R.attr("opacity",1).attr("transform",function(I){return u(v(I)+c)}),x.attr(h+"2",s*a),$.attr(h,s*w).text(_),y.filter(Mi).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===me?"start":t===$t?"end":"middle"),y.each(function(){this.__axis=v})}return f.scale=function(d){return arguments.length?(e=d,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),f):n.slice()},f.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),f):r&&r.slice()},f.tickFormat=function(d){return arguments.length?(i=d,f):i},f.tickSize=function(d){return arguments.length?(a=o=+d,f):a},f.tickSizeInner=function(d){return arguments.length?(a=+d,f):a},f.tickSizeOuter=function(d){return arguments.length?(o=+d,f):o},f.tickPadding=function(d){return arguments.length?(l=+d,f):l},f.offset=function(d){return arguments.length?(c=+d,f):c},f}function He(t){return Bn(ze,t)}function se(t){return Bn($t,t)}var Si={value:()=>{}};function Dn(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Xt(n)}function Xt(t){this._=t}function Ni(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Xt.prototype=Dn.prototype={constructor:Xt,on:function(t,e){var n=this._,r=Ni(t+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(t=r[a]).type)&&(i=Ci(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<o;)if(i=(t=r[a]).type)n[i]=an(n[i],t.name,e);else if(e==null)for(i in n)n[i]=an(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Xt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],r=0,i=a.length;r<i;++r)a[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};function Ci(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function an(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Si,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var Me="http://www.w3.org/1999/xhtml";const on={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function le(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),on.hasOwnProperty(e)?{space:on[e],local:t}:t}function Ii(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Me&&e.documentElement.namespaceURI===Me?e.createElement(t):e.createElementNS(n,t)}}function Ti(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function qn(t){var e=le(t);return(e.local?Ti:Ii)(e)}function Ei(){}function Le(t){return t==null?Ei:function(){return this.querySelector(t)}}function Fi(t){typeof t!="function"&&(t=Le(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,l=r[i]=new Array(o),c,s,h=0;h<o;++h)(c=a[h])&&(s=t.call(c,c.__data__,h,a))&&("__data__"in c&&(s.__data__=c.__data__),l[h]=s);return new W(r,this._parents)}function Pn(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ri(){return[]}function Hn(t){return t==null?Ri:function(){return this.querySelectorAll(t)}}function Bi(t){return function(){return Pn(t.apply(this,arguments))}}function Di(t){typeof t=="function"?t=Bi(t):t=Hn(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o=e[a],l=o.length,c,s=0;s<l;++s)(c=o[s])&&(r.push(t.call(c,c.__data__,s,o)),i.push(c));return new W(r,i)}function Ln(t){return function(){return this.matches(t)}}function On(t){return function(e){return e.matches(t)}}var qi=Array.prototype.find;function Pi(t){return function(){return qi.call(this.children,t)}}function Hi(){return this.firstElementChild}function Li(t){return this.select(t==null?Hi:Pi(typeof t=="function"?t:On(t)))}var Oi=Array.prototype.filter;function Wi(){return Array.from(this.children)}function Vi(t){return function(){return Oi.call(this.children,t)}}function ji(t){return this.selectAll(t==null?Wi:Vi(typeof t=="function"?t:On(t)))}function Xi(t){typeof t!="function"&&(t=Ln(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,l=r[i]=[],c,s=0;s<o;++s)(c=a[s])&&t.call(c,c.__data__,s,a)&&l.push(c);return new W(r,this._parents)}function Wn(t){return new Array(t.length)}function Yi(){return new W(this._enter||this._groups.map(Wn),this._parents)}function Qt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Qt.prototype={constructor:Qt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function Ui(t){return function(){return t}}function Ki(t,e,n,r,i,a){for(var o=0,l,c=e.length,s=a.length;o<s;++o)(l=e[o])?(l.__data__=a[o],r[o]=l):n[o]=new Qt(t,a[o]);for(;o<c;++o)(l=e[o])&&(i[o]=l)}function Gi(t,e,n,r,i,a,o){var l,c,s=new Map,h=e.length,u=a.length,f=new Array(h),d;for(l=0;l<h;++l)(c=e[l])&&(f[l]=d=o.call(c,c.__data__,l,e)+"",s.has(d)?i[l]=c:s.set(d,c));for(l=0;l<u;++l)d=o.call(t,a[l],l,a)+"",(c=s.get(d))?(r[l]=c,c.__data__=a[l],s.delete(d)):n[l]=new Qt(t,a[l]);for(l=0;l<h;++l)(c=e[l])&&s.get(f[l])===c&&(i[l]=c)}function Qi(t){return t.__data__}function Zi(t,e){if(!arguments.length)return Array.from(this,Qi);var n=e?Gi:Ki,r=this._parents,i=this._groups;typeof t!="function"&&(t=Ui(t));for(var a=i.length,o=new Array(a),l=new Array(a),c=new Array(a),s=0;s<a;++s){var h=r[s],u=i[s],f=u.length,d=Ji(t.call(h,h&&h.__data__,s,r)),m=d.length,_=l[s]=new Array(m),w=o[s]=new Array(m),A=c[s]=new Array(f);n(h,u,_,w,A,d,e);for(var z=0,k=0,v,y;z<m;++z)if(v=_[z]){for(z>=k&&(k=z+1);!(y=w[k])&&++k<m;);v._next=y||null}}return o=new W(o,r),o._enter=l,o._exit=c,o}function Ji(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ta(){return new W(this._exit||this._groups.map(Wn),this._parents)}function ea(t,e,n){var r=this.enter(),i=this,a=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function na(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,a=r.length,o=Math.min(i,a),l=new Array(i),c=0;c<o;++c)for(var s=n[c],h=r[c],u=s.length,f=l[c]=new Array(u),d,m=0;m<u;++m)(d=s[m]||h[m])&&(f[m]=d);for(;c<i;++c)l[c]=n[c];return new W(l,this._parents)}function ra(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function ia(t){t||(t=aa);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],l=o.length,c=i[a]=new Array(l),s,h=0;h<l;++h)(s=o[h])&&(c[h]=s);c.sort(e)}return new W(i,this._parents).order()}function aa(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function oa(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function sa(){return Array.from(this)}function la(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function ca(){let t=0;for(const e of this)++t;return t}function ua(){return!this.node()}function fa(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],a=0,o=i.length,l;a<o;++a)(l=i[a])&&t.call(l,l.__data__,a,i);return this}function ha(t){return function(){this.removeAttribute(t)}}function da(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pa(t,e){return function(){this.setAttribute(t,e)}}function ma(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _a(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function ga(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function va(t,e){var n=le(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?da:ha:typeof e=="function"?n.local?ga:_a:n.local?ma:pa)(n,e))}function Vn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ya(t){return function(){this.style.removeProperty(t)}}function wa(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ba(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function xa(t,e,n){return arguments.length>1?this.each((e==null?ya:typeof e=="function"?ba:wa)(t,e,n??"")):vt(this.node(),t)}function vt(t,e){return t.style.getPropertyValue(e)||Vn(t).getComputedStyle(t,null).getPropertyValue(e)}function ka(t){return function(){delete this[t]}}function $a(t,e){return function(){this[t]=e}}function Aa(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function za(t,e){return arguments.length>1?this.each((e==null?ka:typeof e=="function"?Aa:$a)(t,e)):this.node()[t]}function jn(t){return t.trim().split(/^|\s+/)}function Oe(t){return t.classList||new Xn(t)}function Xn(t){this._node=t,this._names=jn(t.getAttribute("class")||"")}Xn.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Yn(t,e){for(var n=Oe(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Un(t,e){for(var n=Oe(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Ma(t){return function(){Yn(this,t)}}function Sa(t){return function(){Un(this,t)}}function Na(t,e){return function(){(e.apply(this,arguments)?Yn:Un)(this,t)}}function Ca(t,e){var n=jn(t+"");if(arguments.length<2){for(var r=Oe(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Na:e?Ma:Sa)(n,e))}function Ia(){this.textContent=""}function Ta(t){return function(){this.textContent=t}}function Ea(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Fa(t){return arguments.length?this.each(t==null?Ia:(typeof t=="function"?Ea:Ta)(t)):this.node().textContent}function Ra(){this.innerHTML=""}function Ba(t){return function(){this.innerHTML=t}}function Da(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function qa(t){return arguments.length?this.each(t==null?Ra:(typeof t=="function"?Da:Ba)(t)):this.node().innerHTML}function Pa(){this.nextSibling&&this.parentNode.appendChild(this)}function Ha(){return this.each(Pa)}function La(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Oa(){return this.each(La)}function Wa(t){var e=typeof t=="function"?t:qn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Va(){return null}function ja(t,e){var n=typeof t=="function"?t:qn(t),r=e==null?Va:typeof e=="function"?e:Le(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Xa(){var t=this.parentNode;t&&t.removeChild(this)}function Ya(){return this.each(Xa)}function Ua(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ka(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ga(t){return this.select(t?Ka:Ua)}function Qa(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Za(t){return function(e){t.call(this,e,this.__data__)}}function Ja(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function to(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,a;n<i;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++r]=a;++r?e.length=r:delete this.__on}}}function eo(t,e,n){return function(){var r=this.__on,i,a=Za(e);if(r){for(var o=0,l=r.length;o<l;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=e;return}}this.addEventListener(t.type,a,n),i={type:t.type,name:t.name,value:e,listener:a,options:n},r?r.push(i):this.__on=[i]}}function no(t,e,n){var r=Ja(t+""),i,a=r.length,o;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,s=l.length,h;c<s;++c)for(i=0,h=l[c];i<a;++i)if((o=r[i]).type===h.type&&o.name===h.name)return h.value}return}for(l=e?eo:to,i=0;i<a;++i)this.each(l(r[i],e,n));return this}function Kn(t,e,n){var r=Vn(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ro(t,e){return function(){return Kn(this,t,e)}}function io(t,e){return function(){return Kn(this,t,e.apply(this,arguments))}}function ao(t,e){return this.each((typeof e=="function"?io:ro)(t,e))}function*oo(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var We=[null];function W(t,e){this._groups=t,this._parents=e}function bt(){return new W([[document.documentElement]],We)}function so(){return this}W.prototype=bt.prototype={constructor:W,select:Fi,selectAll:Di,selectChild:Li,selectChildren:ji,filter:Xi,data:Zi,enter:Yi,exit:ta,join:ea,merge:na,selection:so,order:ra,sort:ia,call:oa,nodes:sa,node:la,size:ca,empty:ua,each:fa,attr:va,style:xa,property:za,classed:Ca,text:Fa,html:qa,raise:Ha,lower:Oa,append:Wa,insert:ja,remove:Ya,clone:Ga,datum:Qa,on:no,dispatch:ao,[Symbol.iterator]:oo};function O(t){return typeof t=="string"?new W([[document.querySelector(t)]],[document.documentElement]):new W([[t]],We)}function lo(t){return typeof t=="string"?new W([document.querySelectorAll(t)],[document.documentElement]):new W([Pn(t)],We)}function Ve(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Gn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Bt(){}var Ct=.7,Zt=1/Ct,dt="\\s*([+-]?\\d+)\\s*",It="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",G="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",co=/^#([0-9a-f]{3,8})$/,uo=new RegExp(`^rgb\\(${dt},${dt},${dt}\\)$`),fo=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),ho=new RegExp(`^rgba\\(${dt},${dt},${dt},${It}\\)$`),po=new RegExp(`^rgba\\(${G},${G},${G},${It}\\)$`),mo=new RegExp(`^hsl\\(${It},${G},${G}\\)$`),_o=new RegExp(`^hsla\\(${It},${G},${G},${It}\\)$`),sn={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};Ve(Bt,st,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ln,formatHex:ln,formatHex8:go,formatHsl:vo,formatRgb:cn,toString:cn});function ln(){return this.rgb().formatHex()}function go(){return this.rgb().formatHex8()}function vo(){return Qn(this).formatHsl()}function cn(){return this.rgb().formatRgb()}function st(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=co.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?un(e):n===3?new j(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Ht(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Ht(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=uo.exec(t))?new j(e[1],e[2],e[3],1):(e=fo.exec(t))?new j(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=ho.exec(t))?Ht(e[1],e[2],e[3],e[4]):(e=po.exec(t))?Ht(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=mo.exec(t))?dn(e[1],e[2]/100,e[3]/100,1):(e=_o.exec(t))?dn(e[1],e[2]/100,e[3]/100,e[4]):sn.hasOwnProperty(t)?un(sn[t]):t==="transparent"?new j(NaN,NaN,NaN,0):null}function un(t){return new j(t>>16&255,t>>8&255,t&255,1)}function Ht(t,e,n,r){return r<=0&&(t=e=n=NaN),new j(t,e,n,r)}function yo(t){return t instanceof Bt||(t=st(t)),t?(t=t.rgb(),new j(t.r,t.g,t.b,t.opacity)):new j}function Se(t,e,n,r){return arguments.length===1?yo(t):new j(t,e,n,r??1)}function j(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Ve(j,Se,Gn(Bt,{brighter(t){return t=t==null?Zt:Math.pow(Zt,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ct:Math.pow(Ct,t),new j(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new j(at(this.r),at(this.g),at(this.b),Jt(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:fn,formatHex:fn,formatHex8:wo,formatRgb:hn,toString:hn}));function fn(){return`#${it(this.r)}${it(this.g)}${it(this.b)}`}function wo(){return`#${it(this.r)}${it(this.g)}${it(this.b)}${it((isNaN(this.opacity)?1:this.opacity)*255)}`}function hn(){const t=Jt(this.opacity);return`${t===1?"rgb(":"rgba("}${at(this.r)}, ${at(this.g)}, ${at(this.b)}${t===1?")":`, ${t})`}`}function Jt(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function at(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function it(t){return t=at(t),(t<16?"0":"")+t.toString(16)}function dn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new U(t,e,n,r)}function Qn(t){if(t instanceof U)return new U(t.h,t.s,t.l,t.opacity);if(t instanceof Bt||(t=st(t)),!t)return new U;if(t instanceof U)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,l=a-i,c=(a+i)/2;return l?(e===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-e)/l+2:o=(e-n)/l+4,l/=c<.5?a+i:2-a-i,o*=60):l=c>0&&c<1?0:o,new U(o,l,c,t.opacity)}function bo(t,e,n,r){return arguments.length===1?Qn(t):new U(t,e,n,r??1)}function U(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Ve(U,bo,Gn(Bt,{brighter(t){return t=t==null?Zt:Math.pow(Zt,t),new U(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ct:Math.pow(Ct,t),new U(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new j(_e(t>=240?t-240:t+120,i,r),_e(t,i,r),_e(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new U(pn(this.h),Lt(this.s),Lt(this.l),Jt(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 t=Jt(this.opacity);return`${t===1?"hsl(":"hsla("}${pn(this.h)}, ${Lt(this.s)*100}%, ${Lt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function pn(t){return t=(t||0)%360,t<0?t+360:t}function Lt(t){return Math.max(0,Math.min(1,t||0))}function _e(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const je=t=>()=>t;function xo(t,e){return function(n){return t+n*e}}function ko(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function $o(t){return(t=+t)==1?Zn:function(e,n){return n-e?ko(e,n,t):je(isNaN(e)?n:e)}}function Zn(t,e){var n=e-t;return n?xo(t,n):je(isNaN(t)?e:t)}const ot=function t(e){var n=$o(e);function r(i,a){var o=n((i=Se(i)).r,(a=Se(a)).r),l=n(i.g,a.g),c=n(i.b,a.b),s=Zn(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=l(h),i.b=c(h),i.opacity=s(h),i+""}}return r.gamma=t,r}(1);function Ao(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=t[i]*(1-a)+e[i]*a;return r}}function zo(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Mo(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Xe(t[o],e[o]);for(;o<n;++o)a[o]=e[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function So(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Y(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function No(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Xe(t[i],e[i]):r[i]=e[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var Ne=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ge=new RegExp(Ne.source,"g");function Co(t){return function(){return t}}function Io(t){return function(e){return t(e)+""}}function Jn(t,e){var n=Ne.lastIndex=ge.lastIndex=0,r,i,a,o=-1,l=[],c=[];for(t=t+"",e=e+"";(r=Ne.exec(t))&&(i=ge.exec(e));)(a=i.index)>n&&(a=e.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Y(r,i)})),n=ge.lastIndex;return n<e.length&&(a=e.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?c[0]?Io(c[0].x):Co(e):(e=c.length,function(s){for(var h=0,u;h<e;++h)l[(u=c[h]).i]=u.x(s);return l.join("")})}function Xe(t,e){var n=typeof e,r;return e==null||n==="boolean"?je(e):(n==="number"?Y:n==="string"?(r=st(e))?(e=r,ot):Jn:e instanceof st?ot:e instanceof Date?So:zo(e)?Ao:Array.isArray(e)?Mo:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?No:Y)(t,e)}function To(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var mn=180/Math.PI,Ce={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tr(t,e,n,r,i,a){var o,l,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,c/=l),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*mn,skewX:Math.atan(c)*mn,scaleX:o,scaleY:l}}var Ot;function Eo(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ce:tr(e.a,e.b,e.c,e.d,e.e,e.f)}function Fo(t){return t==null||(Ot||(Ot=document.createElementNS("http://www.w3.org/2000/svg","g")),Ot.setAttribute("transform",t),!(t=Ot.transform.baseVal.consolidate()))?Ce:(t=t.matrix,tr(t.a,t.b,t.c,t.d,t.e,t.f))}function er(t,e,n,r){function i(s){return s.length?s.pop()+" ":""}function a(s,h,u,f,d,m){if(s!==u||h!==f){var _=d.push("translate(",null,e,null,n);m.push({i:_-4,x:Y(s,u)},{i:_-2,x:Y(h,f)})}else(u||f)&&d.push("translate("+u+e+f+n)}function o(s,h,u,f){s!==h?(s-h>180?h+=360:h-s>180&&(s+=360),f.push({i:u.push(i(u)+"rotate(",null,r)-2,x:Y(s,h)})):h&&u.push(i(u)+"rotate("+h+r)}function l(s,h,u,f){s!==h?f.push({i:u.push(i(u)+"skewX(",null,r)-2,x:Y(s,h)}):h&&u.push(i(u)+"skewX("+h+r)}function c(s,h,u,f,d,m){if(s!==u||h!==f){var _=d.push(i(d)+"scale(",null,",",null,")");m.push({i:_-4,x:Y(s,u)},{i:_-2,x:Y(h,f)})}else(u!==1||f!==1)&&d.push(i(d)+"scale("+u+","+f+")")}return function(s,h){var u=[],f=[];return s=t(s),h=t(h),a(s.translateX,s.translateY,h.translateX,h.translateY,u,f),o(s.rotate,h.rotate,u,f),l(s.skewX,h.skewX,u,f),c(s.scaleX,s.scaleY,h.scaleX,h.scaleY,u,f),s=h=null,function(d){for(var m=-1,_=f.length,w;++m<_;)u[(w=f[m]).i]=w.x(d);return u.join("")}}}var Ro=er(Eo,"px, ","px)","deg)"),Bo=er(Fo,", ",")",")"),yt=0,At=0,xt=0,nr=1e3,te,zt,ee=0,lt=0,ce=0,Tt=typeof performance=="object"&&performance.now?performance:Date,rr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ye(){return lt||(rr(Do),lt=Tt.now()+ce)}function Do(){lt=0}function ne(){this._call=this._time=this._next=null}ne.prototype=ir.prototype={constructor:ne,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ye():+n)+(e==null?0:+e),!this._next&&zt!==this&&(zt?zt._next=this:te=this,zt=this),this._call=t,this._time=n,Ie()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ie())}};function ir(t,e,n){var r=new ne;return r.restart(t,e,n),r}function qo(){Ye(),++yt;for(var t=te,e;t;)(e=lt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--yt}function _n(){lt=(ee=Tt.now())+ce,yt=At=0;try{qo()}finally{yt=0,Ho(),lt=0}}function Po(){var t=Tt.now(),e=t-ee;e>nr&&(ce-=e,ee=t)}function Ho(){for(var t,e=te,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:te=n);zt=t,Ie(r)}function Ie(t){if(!yt){At&&(At=clearTimeout(At));var e=t-lt;e>24?(t<1/0&&(At=setTimeout(_n,t-Tt.now()-ce)),xt&&(xt=clearInterval(xt))):(xt||(ee=Tt.now(),xt=setInterval(Po,nr)),yt=1,rr(_n))}}function gn(t,e,n){var r=new ne;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Lo=Dn("start","end","cancel","interrupt"),Oo=[],ar=0,vn=1,Te=2,Yt=3,yn=4,Ee=5,Ut=6;function ue(t,e,n,r,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Wo(t,n,{name:e,index:r,group:i,on:Lo,tween:Oo,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ar})}function Ue(t,e){var n=K(t,e);if(n.state>ar)throw new Error("too late; already scheduled");return n}function Q(t,e){var n=K(t,e);if(n.state>Yt)throw new Error("too late; already running");return n}function K(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Wo(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=ir(a,0,n.time);function a(s){n.state=vn,n.timer.restart(o,n.delay,n.time),n.delay<=s&&o(s-n.delay)}function o(s){var h,u,f,d;if(n.state!==vn)return c();for(h in r)if(d=r[h],d.name===n.name){if(d.state===Yt)return gn(o);d.state===yn?(d.state=Ut,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+h<e&&(d.state=Ut,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[h])}if(gn(function(){n.state===Yt&&(n.state=yn,n.timer.restart(l,n.delay,n.time),l(s))}),n.state=Te,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Te){for(n.state=Yt,i=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function l(s){for(var h=s<n.duration?n.ease.call(null,s/n.duration):(n.timer.restart(c),n.state=Ee,1),u=-1,f=i.length;++u<f;)i[u].call(t,h);n.state===Ee&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=Ut,n.timer.stop(),delete r[e];for(var s in r)return;delete t.__transition}}function Vo(t,e){var n=t.__transition,r,i,a=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){a=!1;continue}i=r.state>Te&&r.state<Ee,r.state=Ut,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}a&&delete t.__transition}}function jo(t){return this.each(function(){Vo(this,t)})}function Xo(t,e){var n,r;return function(){var i=Q(this,t),a=i.tween;if(a!==n){r=n=a;for(var o=0,l=r.length;o<l;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Yo(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Q(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var l={name:e,value:n},c=0,s=i.length;c<s;++c)if(i[c].name===e){i[c]=l;break}c===s&&i.push(l)}a.tween=i}}function Uo(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=K(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?Xo:Yo)(n,t,e))}function Ke(t,e,n){var r=t._id;return t.each(function(){var i=Q(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return K(i,r).value[e]}}function or(t,e){var n;return(typeof e=="number"?Y:e instanceof st?ot:(n=st(e))?(e=n,ot):Jn)(t,e)}function Ko(t){return function(){this.removeAttribute(t)}}function Go(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qo(t,e,n){var r,i=n+"",a;return function(){var o=this.getAttribute(t);return o===i?null:o===r?a:a=e(r=o,n)}}function Zo(t,e,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?a:a=e(r=o,n)}}function Jo(t,e,n){var r,i,a;return function(){var o,l=n(this),c;return l==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=l+"",o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,l)))}}function ts(t,e,n){var r,i,a;return function(){var o,l=n(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=l+"",o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,l)))}}function es(t,e){var n=le(t),r=n==="transform"?Bo:or;return this.attrTween(t,typeof e=="function"?(n.local?ts:Jo)(n,r,Ke(this,"attr."+t,e)):e==null?(n.local?Go:Ko)(n):(n.local?Zo:Qo)(n,r,e))}function ns(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function rs(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function is(t,e){var n,r;function i(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&rs(t,a)),n}return i._value=e,i}function as(t,e){var n,r;function i(){var a=e.apply(this,arguments);return a!==r&&(n=(r=a)&&ns(t,a)),n}return i._value=e,i}function os(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=le(t);return this.tween(n,(r.local?is:as)(r,e))}function ss(t,e){return function(){Ue(this,t).delay=+e.apply(this,arguments)}}function ls(t,e){return e=+e,function(){Ue(this,t).delay=e}}function cs(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ss:ls)(e,t)):K(this.node(),e).delay}function us(t,e){return function(){Q(this,t).duration=+e.apply(this,arguments)}}function fs(t,e){return e=+e,function(){Q(this,t).duration=e}}function hs(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?us:fs)(e,t)):K(this.node(),e).duration}function ds(t,e){if(typeof e!="function")throw new Error;return function(){Q(this,t).ease=e}}function ps(t){var e=this._id;return arguments.length?this.each(ds(e,t)):K(this.node(),e).ease}function ms(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Q(this,t).ease=n}}function _s(t){if(typeof t!="function")throw new Error;return this.each(ms(this._id,t))}function gs(t){typeof t!="function"&&(t=Ln(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a=e[i],o=a.length,l=r[i]=[],c,s=0;s<o;++s)(c=a[s])&&t.call(c,c.__data__,s,a)&&l.push(c);return new et(r,this._parents,this._name,this._id)}function vs(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),l=0;l<a;++l)for(var c=e[l],s=n[l],h=c.length,u=o[l]=new Array(h),f,d=0;d<h;++d)(f=c[d]||s[d])&&(u[d]=f);for(;l<r;++l)o[l]=e[l];return new et(o,this._parents,this._name,this._id)}function ys(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function ws(t,e,n){var r,i,a=ys(e)?Ue:Q;return function(){var o=a(this,t),l=o.on;l!==r&&(i=(r=l).copy()).on(e,n),o.on=i}}function bs(t,e){var n=this._id;return arguments.length<2?K(this.node(),n).on.on(t):this.each(ws(n,t,e))}function xs(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ks(){return this.on("end.remove",xs(this._id))}function $s(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Le(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var l=r[o],c=l.length,s=a[o]=new Array(c),h,u,f=0;f<c;++f)(h=l[f])&&(u=t.call(h,h.__data__,f,l))&&("__data__"in h&&(u.__data__=h.__data__),s[f]=u,ue(s[f],e,n,f,s,K(h,n)));return new et(a,this._parents,e,n)}function As(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Hn(t));for(var r=this._groups,i=r.length,a=[],o=[],l=0;l<i;++l)for(var c=r[l],s=c.length,h,u=0;u<s;++u)if(h=c[u]){for(var f=t.call(h,h.__data__,u,c),d,m=K(h,n),_=0,w=f.length;_<w;++_)(d=f[_])&&ue(d,e,n,_,f,m);a.push(f),o.push(h)}return new et(a,o,e,n)}var zs=bt.prototype.constructor;function Ms(){return new zs(this._groups,this._parents)}function Ss(t,e){var n,r,i;return function(){var a=vt(this,t),o=(this.style.removeProperty(t),vt(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}function sr(t){return function(){this.style.removeProperty(t)}}function Ns(t,e,n){var r,i=n+"",a;return function(){var o=vt(this,t);return o===i?null:o===r?a:a=e(r=o,n)}}function Cs(t,e,n){var r,i,a;return function(){var o=vt(this,t),l=n(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),vt(this,t))),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,l))}}function Is(t,e){var n,r,i,a="style."+e,o="end."+a,l;return function(){var c=Q(this,t),s=c.on,h=c.value[a]==null?l||(l=sr(e)):void 0;(s!==n||i!==h)&&(r=(n=s).copy()).on(o,i=h),c.on=r}}function Ts(t,e,n){var r=(t+="")=="transform"?Ro:or;return e==null?this.styleTween(t,Ss(t,r)).on("end.style."+t,sr(t)):typeof e=="function"?this.styleTween(t,Cs(t,r,Ke(this,"style."+t,e))).each(Is(this._id,t)):this.styleTween(t,Ns(t,r,e),n).on("end.style."+t,null)}function Es(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Fs(t,e,n){var r,i;function a(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Es(t,o,n)),r}return a._value=e,a}function Rs(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Fs(t,e,n??""))}function Bs(t){return function(){this.textContent=t}}function Ds(t){return function(){var e=t(this);this.textContent=e??""}}function qs(t){return this.tween("text",typeof t=="function"?Ds(Ke(this,"text",t)):Bs(t==null?"":t+""))}function Ps(t){return function(e){this.textContent=t.call(this,e)}}function Hs(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Ps(i)),e}return r._value=t,r}function Ls(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Hs(t))}function Os(){for(var t=this._name,e=this._id,n=lr(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],l=o.length,c,s=0;s<l;++s)if(c=o[s]){var h=K(c,e);ue(c,t,n,s,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new et(r,this._parents,t,n)}function Ws(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var l={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var s=Q(this,r),h=s.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),s.on=e}),i===0&&a()})}var Vs=0;function et(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ge(t){return bt().transition(t)}function lr(){return++Vs}var J=bt.prototype;et.prototype=Ge.prototype={constructor:et,select:$s,selectAll:As,selectChild:J.selectChild,selectChildren:J.selectChildren,filter:gs,merge:vs,selection:Ms,transition:Os,call:J.call,nodes:J.nodes,node:J.node,size:J.size,empty:J.empty,each:J.each,on:bs,attr:es,attrTween:os,style:Ts,styleTween:Rs,text:qs,textTween:Ls,remove:ks,tween:Uo,delay:cs,duration:hs,ease:ps,easeVarying:_s,end:Ws,[Symbol.iterator]:J[Symbol.iterator]};function js(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xs={time:null,delay:0,duration:250,ease:js};function Ys(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Us(t){var e,n;t instanceof et?(e=t._id,t=t._name):(e=lr(),(n=Xs).time=Ye(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],l=o.length,c,s=0;s<l;++s)(c=o[s])&&ue(c,t,e,s,o,n||Ys(c,e));return new et(r,this._parents,t,e)}bt.prototype.interrupt=jo;bt.prototype.transition=Us;const Fe=Math.PI,Re=2*Fe,rt=1e-6,Ks=Re-rt;function cr(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Gs(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return cr;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Qs{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?cr:Gs(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,i){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,n,r,i,a,o){this._append`C${+e},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(e,n,r,i,a){if(e=+e,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,c=r-e,s=i-n,h=o-e,u=l-n,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>rt)if(!(Math.abs(u*c-s*h)>rt)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-o,m=i-l,_=c*c+s*s,w=d*d+m*m,A=Math.sqrt(_),z=Math.sqrt(f),k=a*Math.tan((Fe-Math.acos((_+f-w)/(2*A*z)))/2),v=k/z,y=k/A;Math.abs(v-1)>rt&&this._append`L${e+v*h},${n+v*u}`,this._append`A${a},${a},0,0,${+(u*d>h*m)},${this._x1=e+y*c},${this._y1=n+y*s}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),s=e+l,h=n+c,u=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${s},${h}`:(Math.abs(this._x1-s)>rt||Math.abs(this._y1-h)>rt)&&this._append`L${s},${h}`,r&&(f<0&&(f=f%Re+Re),f>Ks?this._append`A${r},${r},0,1,${u},${e-l},${n-c}A${r},${r},0,1,${u},${this._x1=s},${this._y1=h}`:f>rt&&this._append`A${r},${r},0,${+(f>=Fe)},${u},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}var wn={},ve={},ye=34,kt=10,we=13;function ur(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function Zs(t,e){var n=ur(t);return function(r,i){return e(n(r),i,t)}}function bn(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function V(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function Js(t){return t<0?"-"+V(-t,6):t>9999?"+"+V(t,6):V(t,4)}function tl(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":Js(t.getUTCFullYear())+"-"+V(t.getUTCMonth()+1,2)+"-"+V(t.getUTCDate(),2)+(i?"T"+V(e,2)+":"+V(n,2)+":"+V(r,2)+"."+V(i,3)+"Z":r?"T"+V(e,2)+":"+V(n,2)+":"+V(r,2)+"Z":n||e?"T"+V(e,2)+":"+V(n,2)+"Z":"")}function el(t){var e=new RegExp('["'+t+`
\r]`),n=t.charCodeAt(0);function r(u,f){var d,m,_=i(u,function(w,A){if(d)return d(w,A-1);m=w,d=f?Zs(w,f):ur(w)});return _.columns=m||[],_}function i(u,f){var d=[],m=u.length,_=0,w=0,A,z=m<=0,k=!1;u.charCodeAt(m-1)===kt&&--m,u.charCodeAt(m-1)===we&&--m;function v(){if(z)return ve;if(k)return k=!1,wn;var F,R=_,P;if(u.charCodeAt(R)===ye){for(;_++<m&&u.charCodeAt(_)!==ye||u.charCodeAt(++_)===ye;);return(F=_)>=m?z=!0:(P=u.charCodeAt(_++))===kt?k=!0:P===we&&(k=!0,u.charCodeAt(_)===kt&&++_),u.slice(R+1,F-1).replace(/""/g,'"')}for(;_<m;){if((P=u.charCodeAt(F=_++))===kt)k=!0;else if(P===we)k=!0,u.charCodeAt(_)===kt&&++_;else if(P!==n)continue;return u.slice(R,F)}return z=!0,u.slice(R,m)}for(;(A=v())!==ve;){for(var y=[];A!==wn&&A!==ve;)y.push(A),A=v();f&&(y=f(y,w++))==null||d.push(y)}return d}function a(u,f){return u.map(function(d){return f.map(function(m){return h(d[m])}).join(t)})}function o(u,f){return f==null&&(f=bn(u)),[f.map(h).join(t)].concat(a(u,f)).join(`
`)}function l(u,f){return f==null&&(f=bn(u)),a(u,f).join(`
`)}function c(u){return u.map(s).join(`
`)}function s(u){return u.map(h).join(t)}function h(u){return u==null?"":u instanceof Date?tl(u):e.test(u+="")?'"'+u.replace(/"/g,'""')+'"':u}return{parse:r,parseRows:i,format:o,formatBody:l,formatRows:c,formatRow:s,formatValue:h}}var nl=el(","),rl=nl.parse;function il(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function al(t,e){return fetch(t,e).then(il)}function ol(t){return function(e,n,r){return arguments.length===2&&typeof n=="function"&&(r=n,n=void 0),al(e,n).then(function(i){return t(i,r)})}}var Kt=ol(rl);function sl(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(!(t.status===204||t.status===205))return t.json()}function be(t,e){return fetch(t,e).then(sl)}function ll(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function re(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function wt(t){return t=re(Math.abs(t)),t?t[1]:NaN}function cl(t,e){return function(n,r){for(var i=n.length,a=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),a.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=t[o=(o+1)%t.length];return a.reverse().join(e)}}function ul(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var fl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ie(t){if(!(e=fl.exec(t)))throw new Error("invalid format: "+t);var e;return new Qe({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}ie.prototype=Qe.prototype;function Qe(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Qe.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 hl(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var fr;function dl(t,e){var n=re(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(fr=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+re(t,Math.max(0,e+a-1))[0]}function xn(t,e){var n=re(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const kn={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ll,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>xn(t*100,e),r:xn,s:dl,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $n(t){return t}var An=Array.prototype.map,zn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pl(t){var e=t.grouping===void 0||t.thousands===void 0?$n:cl(An.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?$n:ul(An.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function s(u){u=ie(u);var f=u.fill,d=u.align,m=u.sign,_=u.symbol,w=u.zero,A=u.width,z=u.comma,k=u.precision,v=u.trim,y=u.type;y==="n"?(z=!0,y="g"):kn[y]||(k===void 0&&(k=12),v=!0,y="g"),(w||f==="0"&&d==="=")&&(w=!0,f="0",d="=");var F=_==="$"?n:_==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",R=_==="$"?r:/[%p]/.test(y)?o:"",P=kn[y],g=/[defgprs%]/.test(y);k=k===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function x($){var I=F,S=R,L,tn,Dt;if(y==="c")S=P($)+S,$="";else{$=+$;var qt=$<0||1/$<0;if($=isNaN($)?c:P(Math.abs($),k),v&&($=hl($)),qt&&+$==0&&m!=="+"&&(qt=!1),I=(qt?m==="("?m:l:m==="-"||m==="("?"":m)+I,S=(y==="s"?zn[8+fr/3]:"")+S+(qt&&m==="("?")":""),g){for(L=-1,tn=$.length;++L<tn;)if(Dt=$.charCodeAt(L),48>Dt||Dt>57){S=(Dt===46?i+$.slice(L+1):$.slice(L))+S,$=$.slice(0,L);break}}}z&&!w&&($=e($,1/0));var Pt=I.length+$.length+S.length,Z=Pt<A?new Array(A-Pt+1).join(f):"";switch(z&&w&&($=e(Z+$,Z.length?A-S.length:1/0),Z=""),d){case"<":$=I+$+S+Z;break;case"=":$=I+Z+$+S;break;case"^":$=Z.slice(0,Pt=Z.length>>1)+I+$+S+Z.slice(Pt);break;default:$=Z+I+$+S;break}return a($)}return x.toString=function(){return u+""},x}function h(u,f){var d=s((u=ie(u),u.type="f",u)),m=Math.max(-8,Math.min(8,Math.floor(wt(f)/3)))*3,_=Math.pow(10,-m),w=zn[8+m/3];return function(A){return d(_*A)+w}}return{format:s,formatPrefix:h}}var Wt,hr,dr;ml({thousands:",",grouping:[3],currency:["$",""]});function ml(t){return Wt=pl(t),hr=Wt.format,dr=Wt.formatPrefix,Wt}function _l(t){return Math.max(0,-wt(Math.abs(t)))}function gl(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wt(e)/3)))*3-wt(Math.abs(t)))}function vl(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,wt(e)-wt(t))+1}function yl(t,e){return t.parent===e.parent?1:2}function wl(t){return t.reduce(bl,0)/t.length}function bl(t,e){return t+e.x}function xl(t){return 1+t.reduce(kl,0)}function kl(t,e){return Math.max(t,e.y)}function $l(t){for(var e;e=t.children;)t=e[0];return t}function Al(t){for(var e;e=t.children;)t=e[e.length-1];return t}function zl(){var t=yl,e=1,n=1,r=!1;function i(a){var o,l=0;a.eachAfter(function(f){var d=f.children;d?(f.x=wl(d),f.y=xl(d)):(f.x=o?l+=t(f,o):0,f.y=0,o=f)});var c=$l(a),s=Al(a),h=c.x-t(c,s)/2,u=s.x+t(s,c)/2;return a.eachAfter(r?function(f){f.x=(f.x-a.x)*e,f.y=(a.y-f.y)*n}:function(f){f.x=(f.x-h)/(u-h)*e,f.y=(1-(a.y?f.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(t=a,i):t},i.size=function(a){return arguments.length?(r=!1,e=+a[0],n=+a[1],i):r?null:[e,n]},i.nodeSize=function(a){return arguments.length?(r=!0,e=+a[0],n=+a[1],i):r?[e,n]:null},i}function Ml(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else for(;--r>=0;)e+=n[r].value;t.value=e}function Sl(){return this.eachAfter(Ml)}function Nl(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this}function Cl(t,e){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(t.call(e,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Il(t,e){for(var n=this,r=[n],i=[],a,o,l,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,l=a.length;o<l;++o)r.push(a[o]);for(;n=i.pop();)t.call(e,n,++c,this);return this}function Tl(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r}function El(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}function Fl(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Rl(t){for(var e=this,n=Bl(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function Bl(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function Dl(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function ql(){return Array.from(this)}function Pl(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Hl(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Ll(){var t=this,e,n=[t],r,i,a;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,r=t.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function Ze(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=Vl)):e===void 0&&(e=Wl);for(var n=new ae(t),r,i=[n],a,o,l,c;r=i.pop();)if((o=e(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,l=c-1;l>=0;--l)i.push(a=o[l]=new ae(o[l])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Xl)}function Ol(){return Ze(this).eachBefore(jl)}function Wl(t){return t.children}function Vl(t){return Array.isArray(t)?t[1]:null}function jl(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Xl(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ae(t){this.data=t,this.depth=this.height=0,this.parent=null}ae.prototype=Ze.prototype={constructor:ae,count:Sl,each:Nl,eachAfter:Il,eachBefore:Cl,find:Tl,sum:El,sort:Fl,path:Rl,ancestors:Dl,descendants:ql,leaves:Pl,links:Hl,copy:Ol,[Symbol.iterator]:Ll};function fe(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const Mn=Symbol("implicit");function Je(){var t=new $e,e=[],n=[],r=Mn;function i(a){let o=t.get(a);if(o===void 0){if(r!==Mn)return r;t.set(a,o=e.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new $e;for(const o of a)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Je(e,n).unknown(r)},fe.apply(i,arguments),i}function Et(){var t=Je().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,a,o,l=!1,c=0,s=0,h=.5;delete t.unknown;function u(){var f=e().length,d=i<r,m=d?i:r,_=d?r:i;a=(_-m)/Math.max(1,f-c+s*2),l&&(a=Math.floor(a)),m+=(_-m-a*(f-c))*h,o=a*(1-c),l&&(m=Math.round(m),o=Math.round(o));var w=Pe(f).map(function(A){return m+a*A});return n(d?w.reverse():w)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,u()):[r,i]},t.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,l=!0,u()},t.bandwidth=function(){return o},t.step=function(){return a},t.round=function(f){return arguments.length?(l=!!f,u()):l},t.padding=function(f){return arguments.length?(c=Math.min(1,s=+f),u()):c},t.paddingInner=function(f){return arguments.length?(c=Math.min(1,f),u()):c},t.paddingOuter=function(f){return arguments.length?(s=+f,u()):s},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),u()):h},t.copy=function(){return Et(e(),[r,i]).round(l).paddingInner(c).paddingOuter(s).align(h)},fe.apply(u(),arguments)}function Yl(t){return function(){return t}}function Ul(t){return+t}var Sn=[0,1];function ft(t){return t}function Be(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Yl(isNaN(e)?NaN:.5)}function Kl(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Gl(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Be(i,r),a=n(o,a)):(r=Be(r,i),a=n(a,o)),function(l){return a(r(l))}}function Ql(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Be(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(l){var c=qe(t,l,1,r)-1;return a[c](i[c](l))}}function Zl(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Jl(){var t=Sn,e=Sn,n=Xe,r,i,a,o=ft,l,c,s;function h(){var f=Math.min(t.length,e.length);return o!==ft&&(o=Kl(t[0],t[f-1])),l=f>2?Ql:Gl,c=s=null,u}function u(f){return f==null||isNaN(f=+f)?a:(c||(c=l(t.map(r),e,n)))(r(o(f)))}return u.invert=function(f){return o(i((s||(s=l(e,t.map(r),Y)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,Ul),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),n=To,h()},u.clamp=function(f){return arguments.length?(o=f?!0:ft,h()):o!==ft},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(a=f,u):a},function(f,d){return r=f,i=d,h()}}function tc(){return Jl()(ft,ft)}function ec(t,e,n,r){var i=gi(t,e,n),a;switch(r=ie(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(a=gl(i,o))&&(r.precision=a),dr(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=vl(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=_l(i))&&(r.precision=a-(r.type==="%")*2);break}}return hr(r)}function pr(t){var e=t.domain;return t.ticks=function(n){var r=e();return Rn(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return ec(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,a=r.length-1,o=r[i],l=r[a],c,s,h=10;for(l<o&&(s=o,o=l,l=s,s=i,i=a,a=s);h-- >0;){if(s=_t(o,l,n),s===c)return r[i]=o,r[a]=l,e(r);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;c=s}return t},t}function tt(){var t=tc();return t.copy=function(){return Zl(t,tt())},fe.apply(t,arguments),pr(t)}function pt(){var t=0,e=1,n=1,r=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[qe(r,c,0,n)]:a}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return o}return o.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,l()):[t,e]},o.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[t,r[0]]:s>=n?[r[n-1],e]:[r[s-1],r[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return r.slice()},o.copy=function(){return pt().domain([t,e]).range(i).unknown(a)},fe.apply(pr(o),arguments)}function H(t){return function(){return t}}function mr(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Qs(e)}function _r(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function gr(t){this._context=t}gr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function vr(t){return new gr(t)}function yr(t){return t[0]}function wr(t){return t[1]}function De(t,e){var n=H(!0),r=null,i=vr,a=null,o=mr(l);t=typeof t=="function"?t:t===void 0?yr:H(t),e=typeof e=="function"?e:e===void 0?wr:H(e);function l(c){var s,h=(c=_r(c)).length,u,f=!1,d;for(r==null&&(a=i(d=o())),s=0;s<=h;++s)!(s<h&&n(u=c[s],s,c))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(u,s,c),+e(u,s,c));if(d)return a=null,d+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:H(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:H(+c),l):e},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:H(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),l):r},l}function Nn(t,e,n){var r=null,i=H(!0),a=null,o=vr,l=null,c=mr(s);t=typeof t=="function"?t:t===void 0?yr:H(+t),e=typeof e=="function"?e:H(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?wr:H(+n);function s(u){var f,d,m,_=(u=_r(u)).length,w,A=!1,z,k=new Array(_),v=new Array(_);for(a==null&&(l=o(z=c())),f=0;f<=_;++f){if(!(f<_&&i(w=u[f],f,u))===A)if(A=!A)d=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=f-1;m>=d;--m)l.point(k[m],v[m]);l.lineEnd(),l.areaEnd()}A&&(k[f]=+t(w,f,u),v[f]=+e(w,f,u),l.point(r?+r(w,f,u):k[f],n?+n(w,f,u):v[f]))}if(z)return l=null,z+""||null}function h(){return De().defined(i).curve(o).context(a)}return s.x=function(u){return arguments.length?(t=typeof u=="function"?u:H(+u),r=null,s):t},s.x0=function(u){return arguments.length?(t=typeof u=="function"?u:H(+u),s):t},s.x1=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:H(+u),s):r},s.y=function(u){return arguments.length?(e=typeof u=="function"?u:H(+u),n=null,s):e},s.y0=function(u){return arguments.length?(e=typeof u=="function"?u:H(+u),s):e},s.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:H(+u),s):n},s.lineX0=s.lineY0=function(){return h().x(t).y(e)},s.lineY1=function(){return h().x(t).y(n)},s.lineX1=function(){return h().x(r).y(e)},s.defined=function(u){return arguments.length?(i=typeof u=="function"?u:H(!!u),s):i},s.curve=function(u){return arguments.length?(o=u,a!=null&&(l=o(a)),s):o},s.context=function(u){return arguments.length?(u==null?a=l=null:l=o(a=u),s):a},s}function Cn(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function br(t){this._context=t}br.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Cn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Cn(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function In(t){return new br(t)}function Mt(t,e,n){this.k=t,this.x=e,this.y=n}Mt.prototype={constructor:Mt,scale:function(t){return t===1?this:new Mt(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Mt(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Mt.prototype;const nc={props:{id:{type:String},dataset:{type:Array},width:{type:Number}},methods:{drawChart(){const t=this;Kt("/thirdParties/frontpageData/employeeTurnoverArticle/data.csv",e=>({month:+e.month,nb:+e.nb,left:+e.left,run:+e.run,scenario:e.scenario,left_cum:+e.left_cum})).then(function(e){let n,r,i;t.width>550?(r=22,n=1.5,i=4):(r=19,n=1,i=3);const a=2e3,o=1500,l=10,c=t.width/l-5;t.steps=c;const s="#2567f4",h="#36b37e",u=parseInt(Math.random()*100),f=e.filter(x=>x.scenario=="s1"&&x.run==u&&x.month%6==0),d=e.filter(x=>x.scenario=="s2"&&x.run==u&&x.month%6==0),m=f.slice(0,l),_=d.slice(0,l);let w;t.width>550?w=400:w=300;const z=O(`#${t.id}`).append("svg").attr("viewBox",()=>`0 0 ${t.width} ${w}`).attr("width",t.width).attr("height",w).attr("style","overflow:visible;");z.append("text").attr("id","diffText").attr("x",10).attr("y",w/2+5).attr("font-size",12).attr("opacity",0).text(`${t.diff} months`),z.append("text").attr("id","totalGroup1").attr("x",10).attr("y",w-20).attr("font-size",12).attr("opacity",0).text(`${t.diff} months`),z.append("text").attr("id","totalGroup2").attr("x",10).attr("y",20).attr("font-size",12).attr("opacity",0).text(`${t.diff} months`);let k=[],v=[];function y(x){v=[],k=[],v=[...Array(x).keys()];let $=[...Array(r).keys()],I={};$.forEach(function(S){I[S]=0}),v.forEach(function(S){let L=parseInt(Math.random()*r);k.push({id:S,bin:L,inc:I[L]}),I[L]+=1})}const F=z.append("g"),R=z.append("g");function P(x,$,I){$.selectAll("circle").data(k).join(function(S){return S.append("circle").attr("cx",L=>L.bin*i).attr("cy",L=>I==h?w/2+20+L.inc*i:w/2-20-L.inc*i).attr("r",n).attr("fill",I)},function(S){return S},function(S){return S.transition().duration(1).attr("cx",L=>Math.random()*5e3+2e3).attr("cy",L=>Math.random()*5e3+2e3).remove()}).transition().duration(o).attr("updatingData",S=>t.left1=f[x].left_cum).attr("updatingData",S=>t.left2=d[x].left_cum).attr("updatingData",S=>t.total1=f[x].nb).attr("updatingData",S=>t.total2=d[x].nb).attr("updatingData",S=>t.diff=f[x].left_cum-d[x].left_cum).attr("cx",S=>S.bin*i+x*c).attr("cy",S=>I==h?w/2+20+S.inc*i:w/2-20-S.inc*i)}function g(){t.counter<m.length?(y(m[t.counter].left_cum),P(t.counter,F,s),y(_[t.counter].left_cum),P(t.counter,R,h),t.counter++):t.counter=0}Mr(()=>g(),a)})}},mounted(){this.drawChart()},computed:{styleObject(){let t;return this.counter==0?t={visibility:"hidden"}:t={visibility:"initial"},t},dimensions(){let t;return this.width>550?t=400:t=300,{width:this.width+"px",height:t+"px",margin:"0 auto"}}},data(){return{left1:0,left2:0,total1:0,total2:0,counter:0,height:400,diff:0,steps:20}}},rc={style:{position:"relative"}},ic=["id"];function ac(t,e,n,r,i,a){return b(),M("div",{class:"simulation-viz-containter",style:nt(a.dimensions)},[p("div",rc,[p("div",{style:nt(`
        transform: translateX(${(i.counter-1)*i.steps}px);
        position:absolute;
        visibility: ${i.counter==0?"hidden":"visible"};
      `)},[p("div",{class:Vt(n.width<550?"sim-text-sm":""),style:nt(n.width<550?"transform: translate(5px, 150px);":"transform: translate(5px, 190px);")},ht(i.counter*6)+" months ",7),p("div",{class:Vt(n.width<550?"sim-text-sm":""),style:nt(n.width<550?"transform: translate(5px, 240px);":"transform: translate(5px, 310px);")},[B(ht(i.left2)+" left ",1),xe(p("br",null,null,512),[[ke,n.width<850]]),B("the company ")],6),p("div",{class:Vt(n.width<550?"sim-text-sm":""),style:nt(n.width<550?"transform: translate(5px, 0px);":"transform: translate(5px, -20px);")},[B(ht(i.left1)+" left ",1),xe(p("br",null,null,512),[[ke,n.width<850]]),B("the company ")],6)],4)]),p("div",{style:{"text-align":"center"},id:n.id},null,8,ic)],4)}const oc=D(nc,[["render",ac],["__scopeId","data-v-2d0f7caa"]]),sc={},lc={class:"mb-40px"},cc=ct('<h2 id="simulation-title" data-v-d545bcd9> Simulation of employee turnover for two corporations with outdated work practices over 60 months </h2><p id="simulation-sub-title" data-v-d545bcd9> A slight increase in the amount of efforts to improve work culture could lead to dramatic reduction in employee turnover over time. </p><div class="sim-legend" data-v-d545bcd9><div data-v-d545bcd9><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="#2567f4" class="pr-8px bi bi-circle-fill" viewBox="0 0 16 16" data-v-d545bcd9><circle cx="8" cy="8" r="8" data-v-d545bcd9></circle></svg><span class="color-1" data-v-d545bcd9> Company A </span> - Outdated work practices and no efforts to improve work culture </div></div><div data-v-d545bcd9><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="#36b37e" class="pr-8px bi bi-circle-fill" viewBox="0 0 16 16" data-v-d545bcd9><circle cx="8" cy="8" r="8" data-v-d545bcd9></circle></svg><span class="color-2" data-v-d545bcd9> Company B </span> - Outdated work practices with low efforts to improve work culture </div>',4),uc=[cc];function fc(t,e,n,r,i,a){return b(),M("div",lc,uc)}const hc=D(sc,[["render",fc],["__scopeId","data-v-d545bcd9"]]),dc={props:{width:{type:Number}},data(){return{dots:[{id:1},{id:2},{id:3}]}}},ut=t=>(Ft("data-v-72a7b65b"),t=t(),Rt(),t),pc={class:"test sim-bg-light-purple"},mc={class:"dots-legend-container"},_c={class:"dots-item"},gc=ut(()=>p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"#4E4E4E",class:"dot bi bi-circle-fill",viewBox:"0 0 16 16"},[p("circle",{cx:"8",cy:"8",r:"8"})],-1)),vc=[gc],yc=ut(()=>p("br",null,null,-1)),wc=ut(()=>p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"#484d59",class:"dot bi bi-circle-fill",viewBox:"0 0 16 16"},[p("circle",{cx:"8",cy:"8",r:"8"})],-1)),bc=[wc],xc=ut(()=>p("p",{class:"dots-text-item"}," The dots represent the number of accumulated employees that left over time. ",-1)),kc=ut(()=>p("div",null,[p("svg",{width:"240",height:"20",viewBox:"0 0 240 20"},[p("defs",null,[p("marker",{id:"triangle",viewbox:"0 0 20 20",refX:"0",refY:"3",markerWidth:"10",markerHeight:"10",markerUnits:"strokeWidth",orient:"auto-start-reverse"},[p("path",{fill:"#18191d",d:"M0,0 L0,6 L9,3 z"})])]),p("line",{x1:"0",x2:"230",y1:"10",y2:"10","stroke-width":"1.3",stroke:"black",fill:"none",opacity:"0.5","marker-end":"url(#triangle)"})])],-1)),$c=ut(()=>p("p",null," Over time, people get dissatisfied and leave the company ",-1)),Ac=[kc,$c],zc=ut(()=>p("p",{class:"sim-container-bottom"}," Note: Each run of this interactive shows one of the 100 simulations ",-1));function Mc(t,e,n,r,i,a){return b(),M("div",pc,[p("div",{class:"sim-container-top",style:nt(n.width>690?"display:flex":"display:block")},[p("div",mc,[p("div",_c,[(b(!0),M(mt,null,Nt(i.dots,o=>(b(),M("div",{class:"dots-figure",key:o.id},vc))),128)),yc,p("div",{class:"sim-container-top",style:nt(n.width>690?"display:flex":"display:none")},[(b(!0),M(mt,null,Nt(i.dots,o=>(b(),M("div",{class:"dots-figure",key:o.id},bc))),128))],4)]),xc]),p("div",{class:"arrow-legend-container",style:nt(n.width>690?"padding-top:0px":"padding-top:20px")},Ac,4)],4),zc])}const Sc=D(dc,[["render",Mc],["__scopeId","data-v-72a7b65b"]]),Nc={components:{Simulation2:oc,SimulationHeader:hc,SimulationLegend:Sc},methods:{updateWidth(){window.screen.width>=800?this.width=800:this.width=window.screen.width-48}},mounted(){this.updateWidth()},data(){return{width:800}}},Cc={id:"simulation-container"};function Ic(t,e,n,r,i,a){const o=C("SimulationHeader"),l=C("Simulation2"),c=C("SimulationLegend");return b(),M("div",null,[p("div",Cc,[N(o),N(l,{width:i.width,id:"viz"},null,8,["width"]),N(c,{width:i.width},null,8,["width"])])])}const Tc=D(Nc,[["render",Ic],["__scopeId","data-v-f609fecd"]]),Ec={components:{EmployeeTurnoverSimulation:Tc}};function Fc(t,e,n,r,i,a){const o=C("employee-turnover-simulation"),l=zr;return b(),q(l,null,{default:oe(()=>[N(o)]),_:1})}const Rc=D(Ec,[["render",Fc]]),Bc={name:"TextBlock",props:["block"]},T=t=>(Ft("data-v-87b1ea3a"),t=t(),Rt(),t),Dc={class:"rich-text"},qc={key:0},Pc=ct('<p data-v-87b1ea3a> Analysts are calling it a “resignation wave” and a “turnover tsunami”: recent surveys have suggested that <a href="https://www.techrepublic.com/article/the-great-resignation-of-2021-are-30-of-workers-really-going-to-quit/" class="_viz-link" target="_blank" data-v-87b1ea3a>up to 40% of workers</a> want to leave their jobs in 2021. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> The COVID-19 pandemic kicked off a massive shift in work worldwide—millions left the office, lost their jobs, or were forced into unsafe positions as “essential workers” who received little support from their companies. Now, as vaccinations speed up economic recovery, many of those workers are considering new options. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> While reasons for job turnover are personal and varied, many people have chosen to find new employment this year due to burnout. <a class="_viz-link" href="https://www.helpguide.org/articles/stress/burnout-prevention-and-recovery.htm" target="_blank" data-v-87b1ea3a>Burnout</a> is a state of mental, emotional, and sometimes even physical exhaustion, caused by work-related stress. The pandemic pushed many workers into this state, ranging from those in service industries where COVID-19 protections were difficult to maintain to those white-collar workers who felt isolated and overworked. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Many employers think of burnout as a binary: either a worker is burned out or they aren’t. But in fact, the condition exists on a spectrum and can be measured, as burnout expert Leah Weiss explains in <a class="_viz-link" href="https://ssir.org/articles/entry/burnout_from_an_organizational_perspective#" target="_blank" data-v-87b1ea3a>an article for the Stanford Social Innovation Review</a>. The condition is also distinctive from mental health conditions such as depression and anxiety, though workers in distress may suffer from burnout and a mental health condition at the same time. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Unlike mental health conditions, burnout may be directly caused by organizational issues in a company or on a specific team, Weiss writes. For example, members of a team that does not have sufficient personnel or resources to complete necessary responsibilities may be more likely to burn out. When company leadership takes steps to understand burnout’s causes and measure the condition among the whole organization, those leaders can help prevent their workers from burning out.</p><br data-v-87b1ea3a><p data-v-87b1ea3a> What is your burnout risk score? This quiz will help you find out, along with providing statistics on who burns out and why. If your burnout risk is high, consider talking to your manager about steps your company may take to improve working conditions—more on that later. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Are you managing a team? You might be interested in <a class="_viz-link" href="https://360learning.com/ebook/burnout-prevention-guide" target="_blank" data-v-87b1ea3a>our cheat sheet</a> on how to talk to your teams about burnout. </p><br data-v-87b1ea3a>',14),Hc=[Pc],Lc={key:1},Oc=T(()=>p("h3",null,"Compare your answers to the source dataset",-1)),Wc=T(()=>p("p",null,[B(" This quiz was based on a source dataset including responses from 20,000 people who took the same survey you did. Compare "),p("span",{class:"_viz-legend _viz-legend-blue"},"your answers"),B(" with "),p("span",{class:"_viz-legend _viz-legend-grey"},"other"),B(" survey responses, shown below. ")],-1)),Vc=T(()=>p("br",null,null,-1)),jc=T(()=>p("p",null," The respondents were split fairly evenly among gender, with slightly more women than men (52% women, 48% men). Most worked at service companies, and a majority were able to work from home; 54% said this was an option, compared to 46% who did not. Most had mid-level positions, ranging from junior to director. Few respondents characterized their fatigue and responsibility allocations as all the way up at 10 or down at 0; most were somewhere in the middle—factors that contribute to their burnout risk. ",-1)),Xc=T(()=>p("br",null,null,-1)),Yc=[Oc,Wc,Vc,jc,Xc],Uc={key:2},Kc=T(()=>p("h3",null,"Key insight 1: Gender breakdown",-1)),Gc=T(()=>p("p",null,[B(" This chart shows burnout scores by gender. While more "),p("span",{class:"_viz-legend _viz-legend-female"},"women"),B(" responded to the survey, "),p("span",{class:"_viz-legend _viz-legend-male"},"men"),B(" appear to be more at risk of burnout: a higher share of men had burnout scores in the 0.5 to 0.8 range. The majority of women, meanwhile, have burnout scores between 0.2 and 0.6. ")],-1)),Qc=[Kc,Gc],Zc={key:3},Jc=T(()=>p("h3",null,"Key insight 2: Seniority",-1)),tu=T(()=>p("p",null,[B(" Here, we see that more senior employees tend to have higher burnout scores. This pattern holds for both "),p("span",{class:"_viz-legend _viz-legend-male"},"men"),B(" and "),p("span",{class:"_viz-legend _viz-legend-female"},"women"),B(", but men have slightly higher scores for most positions: men at junior and senior-level positions have average burnout scores of 0.37 and 0.46, respectively, compared to corresponding scores of 0.30 and 0.42 for women. ")],-1)),eu=[Jc,tu],nu={key:4},ru=T(()=>p("h3",null,"Key insight 3: Business",-1)),iu=T(()=>p("p",null,[B(" What makes workers in higher-level positions more susceptible to burnout? One answer may be tied to how overwhelmed they feel in their roles. More senior workers tend to face busier schedules and more responsibilities; in the survey, both "),p("span",{class:"_viz-legend _viz-legend-male"},"men"),B(" and "),p("span",{class:"_viz-legend _viz-legend-female"},"women"),B(" in chief positions scored their business over 9, on average, compared to scores under 4 for those in junior and senior positions. ")],-1)),au=[ru,iu],ou={key:5},su=T(()=>p("h3",null,"Key insight 4: Leaving reasons",-1)),lu=T(()=>p("p",null," Some employers may think regular raises provide workers with sufficient incentive to stay at their jobs. In fact, worker reasons for quitting are more complicated, and may often be tied to burnout. ",-1)),cu=T(()=>p("br",null,null,-1)),uu=T(()=>p("p",null,[B(" A Gallup poll conducted in 2008 found that "),p("a",{href:"https://news.gallup.com/businessjournal/106912/turning-around-your-turnover-problem.aspx",target:"_blank"},"career advancement was the most common motivator"),B(" behind a voluntary job change by far; 32% of workers surveyed left for this reason. Pay, lack of job fit, management, and flexibility were also common motivators—and they’re becoming more common in 2021. One survey from Prudential, conducted in March 2021, found "),p("a",{href:"https://news.prudential.com/increasingly-workers-expect-pandemic-workplace-adaptations-to-stick.htm",target:"_blank"},"42% of current remote workers"),B(" say that, if their current employer takes away the remote work option, they will find a new job with more flexibility. ")],-1)),fu=T(()=>p("br",null,null,-1)),hu=[su,lu,cu,uu,fu],du={key:6},pu=T(()=>p("h3",null,"Key insight 5: Industry turnover",-1)),mu=T(()=>p("p",null,[B(" Industry also plays a role in worker burnout. This bar chart shows results from a different survey, conducted by the U.S. Census, that illustrates turnover between the first quarter of 2019 and the first quarter of 2020 -only shows the top 10 industries by number of separations. Industries with more face-to-face customer interactions and physical activity had higher turnovers. The accommodation and food industry had the highest turnover for both "),p("span",{class:"_viz-legend _viz-legend-male"},"men"),B(" and "),p("span",{class:"_viz-legend _viz-legend-female"},"women"),B(": 1.17 million men and 1.33 million women left their jobs in the year represented. Healthcare notably had a much higher turnover for women, while construction had a higher turnover for men. ")],-1)),_u=T(()=>p("br",null,null,-1)),gu=T(()=>p("p",null," These are also industries where many employees were unable to work from home during the pandemic, likely causing turnover to rise even further during the remainder of 2020. ",-1)),vu=[pu,mu,_u,gu],yu={key:7},wu=T(()=>p("br",null,null,-1)),bu=T(()=>p("br",null,null,-1)),xu=T(()=>p("br",null,null,-1)),ku=T(()=>p("p",null," *Average separations per sector -including all 20 sectors, between Q1 2019 and Q1 2020. ",-1)),$u=T(()=>p("br",null,null,-1)),Au=[wu,bu,xu,ku,$u],zu={key:8},Mu=ct('<h3 data-v-87b1ea3a>How to mitigate burnout risk</h3><h4 data-v-87b1ea3a>Whole-company solutions needed</h4><p data-v-87b1ea3a> While burnout is an individual condition, it should be mitigated at the whole-company level. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Wellness is not that whole-company solution, Weiss argues out in her Stanford Social Innovation Review article. Though services such as yoga and medication bring value to teams in the form of team bonding and socializing, these activities may not actually improve employee mental health, retention, and other key metrics, <a href="https://jamanetwork.com/journals/jama/fullarticle/2730614" target="_blank" data-v-87b1ea3a>a 2019 study</a> by Harvard Medical School researchers found. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Instead, companies should be intentional in measuring burnout and implementing solutions specific to their workers, Weiss says. Employers can conduct regular surveys asking similar questions to those in this quiz, along with tailored questions for the workplace, such as “Do you feel a sense of autonomy and voice in your team?” Survey responses can guide workplace leaders in developing burnout mitigation programs, as well as identifying any specific workers who may be struggling. </p><br data-v-87b1ea3a><h4 data-v-87b1ea3a>Transparency and feedback</h4><p data-v-87b1ea3a> One key anti-burnout strategy Weiss highlights is building a culture of transparency and feedback. Workers want to understand choices from management, whether those choices involve the metrics used to track performance or which person is getting promoted. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Open feedback channels, such as anonymous surveys and office hours held by management, can provide opportunities for employees to ask questions and make their concerns known. Team courses and trainings built around worker feedback and based on the idea of <a href="https://360learning.com/collaborative-learning/" target="_blank" data-v-87b1ea3a>Collaborative Learning</a> can contribute to this culture as well. When employees feel that they understand—and are consulted in—company choices, they are more likely to feel connected to the company’s shared goals and values; such a sense of community and collaboration prevents organization-wide burnout. </p><br data-v-87b1ea3a><h4 data-v-87b1ea3a>Flexible work policies</h4><p data-v-87b1ea3a> Remote work and other policies promoting flexibility may also combat burnout. Weiss emphasizes the value of autonomy for workers, while suggesting that guardrails are also necessary so that “workloads are evenly distributed” and “time for rest is protected and even encouraged.” For example, 360Learning internally uses a principle called “your life your way” to remind workers that they may work on any schedule and in any location, as long as key goals are met. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Flexible work policies may be especially crucial for people of color. <a href="https://www.techrepublic.com/article/slack-survey-finds-97-of-black-knowledge-workers-want-the-future-of-the-office-to-be-remote-or-hybrid/" target="_blank" data-v-87b1ea3a>A recent survey from Slack’s think tank, Future Forum</a>, found that only 3% of Black workers in the U.S. wanted to return to full-time, in-person work—compared to 21% of white workers. Black workers are more likely to face stressors tied to their identities in the office, the survey found; with more flexible working environments, they are more able to focus on the job itself. Remote work thus ties into both burnout prevention and building an equitable, inclusive workplace. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> The pandemic irrevocably changed how we work around the world. Employers who lean into these changes—and listen to feedback from their employees—may have less burnt out, more satisfied workers in the years to come. </p><br data-v-87b1ea3a>',20),Su=[Mu],Nu={key:9},Cu=ct('<p data-v-87b1ea3a> Are you managing a team? You might be interested in <a class="_viz-link" href="https://360learning.com/ebook/burnout-prevention-guide" target="_blank" data-v-87b1ea3a>our cheat sheet</a> on how to talk to your teams about burnout. </p><br data-v-87b1ea3a><h3 data-v-87b1ea3a>Sources &amp; Methodology</h3><p data-v-87b1ea3a> The study dataset is publicly available and accessible from <a href="https://www.kaggle.com/blurredmachine/are-your-employees-burning-out" target="_blank" data-v-87b1ea3a>Kaggle</a>. The original source is coming from <a href="https://www.hackerearth.com/en-us/challenges/competitive/hackerearth-machine-learning-challenge-predict-burnout-rate/" target="_blank" data-v-87b1ea3a>HackerEarth</a>. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> Based on completed answers from 21,626 persons who were given a burnout score, a machine learning model was trained to predict all possibilities you can provide in the survey. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> The reasons to leave your job data is coming from <a href="https://news.gallup.com/businessjournal/106912/turning-around-your-turnover-problem.aspx" target="_blank" data-v-87b1ea3a>Gallup</a>. </p><br data-v-87b1ea3a><p data-v-87b1ea3a> The industry turnover data is coming from the <a href="https://j2jexplorer.ces.census.gov/" target="_blank" data-v-87b1ea3a>Job-to-Job Flows explorer</a> by the US Census Bureau and represents people leaving their job from Q1 2019 up to Q1 2020-pre Covid. </p><br data-v-87b1ea3a>',11),Iu=[Cu];function Tu(t,e,n,r,i,a){return b(),M("div",null,[p("div",Dc,[n.block==="block-intro"?(b(),M("div",qc,Hc)):X("",!0),n.block==="block-answers"?(b(),M("div",Lc,Yc)):X("",!0),n.block==="block-density"?(b(),M("div",Uc,Qc)):X("",!0),n.block==="block-dendro-seniority"?(b(),M("div",Zc,eu)):X("",!0),n.block==="block-dendro-allocation"?(b(),M("div",nu,au)):X("",!0),n.block==="block-donut"?(b(),M("div",ou,hu)):X("",!0),n.block==="block-bars"?(b(),M("div",du,vu)):X("",!0),n.block==="block-asterix"?(b(),M("div",yu,Au)):X("",!0),n.block==="block-conclusion"?(b(),M("div",zu,Su)):X("",!0),n.block==="block-sources"?(b(),M("div",Nu,Iu)):X("",!0)])])}const Eu=D(Bc,[["render",Tu],["__scopeId","data-v-87b1ea3a"]]),Fu={name:"Survey",data(){return{isActive:!1,ct:0,results:{gender:"test","company-type":"test",wfh:"test",seniority:"test",allocation:"test",fatigue:"test"}}},mounted(){this.reveal("_viz-form-cie-type","gender")},methods:{reveal(t,e){if(this.ct=document.querySelectorAll("input:checked").length,t!==void 0){let n=document.getElementById(t).classList;if(n.contains("none")&&(n.remove("none"),n.add("initial"),window.innerWidth>500)){const r=document.getElementById(t).offsetTop,a=(window.innerWidth>1200?72:56)+10,o=r-a;window.scrollTo(0,o)}}},submit(t){let n=document.getElementsByClassName("_viz-frame")[0].querySelectorAll("form");for(let r=0;r<n.length;r++){let i=n[r].getElementsByTagName("input")[0].name,a=document.getElementsByName(i);for(let o=0;o<a.length;o++)if(a[o].checked){this.results[i]=a[o].value;break}}this.$emit("submitting",this.results)}}},E=t=>(Ft("data-v-fb316463"),t=t(),Rt(),t),Ru={class:"_viz-overlay"},Bu={class:"_viz-frame"},Du={class:"_viz-entry"},qu=E(()=>p("p",null,"I identify as a...",-1)),Pu=E(()=>p("input",{type:"radio",id:"male",name:"gender",value:"m"},null,-1)),Hu=E(()=>p("label",{for:"male"},"Male",-1)),Lu=E(()=>p("br",null,null,-1)),Ou=E(()=>p("input",{type:"radio",id:"female",name:"gender",value:"f"},null,-1)),Wu=E(()=>p("label",{for:"female"},"Female",-1)),Vu=E(()=>p("br",null,null,-1)),ju=[Pu,Hu,Lu,Ou,Wu,Vu],Xu={id:"_viz-form-cie-type",class:"_viz-entry"},Yu=E(()=>p("p",null,"I work in a...",-1)),Uu=E(()=>p("input",{type:"radio",id:"product",name:"company-type",value:"p"},null,-1)),Ku=E(()=>p("label",{for:"product"},"Product Company",-1)),Gu=E(()=>p("br",null,null,-1)),Qu=E(()=>p("input",{type:"radio",id:"service",name:"company-type",value:"s"},null,-1)),Zu=E(()=>p("label",{for:"service"},"Service Company",-1)),Ju=E(()=>p("br",null,null,-1)),tf=[Uu,Ku,Gu,Qu,Zu,Ju],ef={id:"_viz-form-wfh",class:"none _viz-entry"},nf=E(()=>p("p",null,"I can work from home...",-1)),rf=E(()=>p("input",{type:"radio",id:"wfh-yes",name:"wfh",value:"y"},null,-1)),af=E(()=>p("label",{for:"wfh-yes"},"Yes",-1)),of=E(()=>p("br",null,null,-1)),sf=E(()=>p("input",{type:"radio",id:"wfh-no",name:"wfh",value:"n"},null,-1)),lf=E(()=>p("label",{for:"wfh-no"},"No",-1)),cf=E(()=>p("br",null,null,-1)),uf=[rf,af,of,sf,lf,cf],ff={id:"_viz-form-designation",class:"none _viz-entry"},hf=E(()=>p("p",null,"What is your seniority level?",-1)),df=ct('<input type="radio" id="seniority-0" name="seniority" value="0" data-v-fb316463><label for="seniority-0" data-v-fb316463>Intern</label><br data-v-fb316463><input type="radio" id="seniority-1" name="seniority" value="1" data-v-fb316463><label for="seniority-1" data-v-fb316463>Junior</label><br data-v-fb316463><input type="radio" id="seniority-2" name="seniority" value="2" data-v-fb316463><label for="seniority-2" data-v-fb316463>Senior</label><br data-v-fb316463><input type="radio" id="seniority-3" name="seniority" value="3" data-v-fb316463><label for="seniority-3" data-v-fb316463>VP</label><br data-v-fb316463><input type="radio" id="seniority-4" name="seniority" value="4" data-v-fb316463><label for="seniority-4" data-v-fb316463>Director</label><br data-v-fb316463><input type="radio" id="seniority-5" name="seniority" value="5" data-v-fb316463><label for="seniority-5" data-v-fb316463>Chief</label><br data-v-fb316463>',18),pf=[df],mf={id:"_viz-form-allocation",class:"none _viz-entry"},_f=E(()=>p("p",null,"How busy do you consider yourself, on a scale from 1 -not busy at all- to 10 -much too busy?",-1)),gf=ct('<input type="radio" id="allocation-1" name="allocation" value="1" data-v-fb316463><label for="allocation-1" data-v-fb316463>1</label><input type="radio" id="allocation-2" name="allocation" value="2" data-v-fb316463><label for="allocation-2" data-v-fb316463>2</label><input type="radio" id="allocation-3" name="allocation" value="3" data-v-fb316463><label for="allocation-3" data-v-fb316463>3</label><input type="radio" id="allocation-4" name="allocation" value="4" data-v-fb316463><label for="allocation-4" data-v-fb316463>4</label><input type="radio" id="allocation-5" name="allocation" value="5" data-v-fb316463><label for="allocation-5" data-v-fb316463>5</label><input type="radio" id="allocation-6" name="allocation" value="6" data-v-fb316463><label for="allocation-6" data-v-fb316463>6</label><input type="radio" id="allocation-7" name="allocation" value="7" data-v-fb316463><label for="allocation-7" data-v-fb316463>7</label><input type="radio" id="allocation-8" name="allocation" value="8" data-v-fb316463><label for="allocation-8" data-v-fb316463>8</label><input type="radio" id="allocation-9" name="allocation" value="9" data-v-fb316463><label for="allocation-9" data-v-fb316463>9</label><input type="radio" id="allocation-10" name="allocation" value="10" data-v-fb316463><label for="allocation-10" data-v-fb316463>10</label>',20),vf=[gf],yf={id:"_viz-form-fatigue",class:"none _viz-entry"},wf=E(()=>p("p",null,"How tired at work do you consider yourself, on a scale from 0 -not tired at all- to 10 -much too tired?",-1)),bf=ct('<input type="radio" id="fatigue-0" name="fatigue" value="0" data-v-fb316463><label for="fatigue-0" data-v-fb316463>0</label><input type="radio" id="fatigue-1" name="fatigue" value="1" data-v-fb316463><label for="fatigue-1" data-v-fb316463>1</label><input type="radio" id="fatigue-2" name="fatigue" value="2" data-v-fb316463><label for="fatigue-2" data-v-fb316463>2</label><input type="radio" id="fatigue-3" name="fatigue" value="3" data-v-fb316463><label for="fatigue-3" data-v-fb316463>3</label><input type="radio" id="fatigue-4" name="fatigue" value="4" data-v-fb316463><label for="fatigue-4" data-v-fb316463>4</label><input type="radio" id="fatigue-5" name="fatigue" value="5" data-v-fb316463><label for="fatigue-5" data-v-fb316463>5</label><input type="radio" id="fatigue-6" name="fatigue" value="6" data-v-fb316463><label for="fatigue-6" data-v-fb316463>6</label><input type="radio" id="fatigue-7" name="fatigue" value="7" data-v-fb316463><label for="fatigue-7" data-v-fb316463>7</label><input type="radio" id="fatigue-8" name="fatigue" value="8" data-v-fb316463><label for="fatigue-8" data-v-fb316463>8</label><input type="radio" id="fatigue-9" name="fatigue" value="9" data-v-fb316463><label for="fatigue-9" data-v-fb316463>9</label><input type="radio" id="fatigue-10" name="fatigue" value="10" data-v-fb316463><label for="fatigue-10" data-v-fb316463>10</label>',22),xf=[bf],kf={class:"_viz-question"},$f={id:"_viz-submit",class:"none"},Af=E(()=>p("a",{href:"#_viz-score"},"Check My Burnout Score",-1)),zf=[Af];function Mf(t,e,n,r,i,a){return b(),M("div",null,[p("div",Ru,[p("div",Bu,[p("div",Du,[qu,p("form",{onChange:e[0]||(e[0]=o=>a.reveal("_viz-form-cie-type","gender",o))},ju,32)]),p("div",Xu,[Yu,p("form",{onChange:e[1]||(e[1]=o=>a.reveal("_viz-form-wfh","company-type",o))},tf,32)]),p("div",ef,[nf,p("form",{onChange:e[2]||(e[2]=o=>a.reveal("_viz-form-designation","wfh",o))},uf,32)]),p("div",ff,[hf,p("form",{onChange:e[3]||(e[3]=o=>a.reveal("_viz-form-allocation","seniority",o))},pf,32)]),p("div",mf,[_f,p("form",{class:"_viz-scale",onChange:e[4]||(e[4]=o=>a.reveal("_viz-form-fatigue","allocation",o))},vf,32)]),p("div",yf,[wf,p("form",{class:"_viz-scale",onChange:e[5]||(e[5]=o=>a.reveal("_viz-submit","fatigue",o))},xf,32)]),p("div",kf,[p("p",null,"Question "+ht(i.ct)+"/6",1)]),p("div",$f,[p("button",{onClick:e[6]||(e[6]=(...o)=>a.submit&&a.submit(...o))},zf)])])])])}const Sf=D(Fu,[["render",Mf],["__scopeId","data-v-fb316463"]]),Nf={name:"Answer",props:["trained_data","results"],data(){return{burnout_score:[]}},watch:{results:{handler:function(t){this.getResults(t)},deep:!0}},methods:{getResults(t){let e=this.trained_data.find(_=>_.gender===this.results.gender&&_.company_type===this.results["company-type"]&&_.wfh_setup===this.results.wfh&&_.designation===parseInt(this.results.seniority)&&_.resource_allocation===parseInt(this.results.allocation)&&_.mental_fatigue_score===parseInt(this.results.fatigue));this.burnout_score=e.score;const n=["rgb(54,179,126)","rgb(255,193,13)","rgb(235,64,64)"],r=["#D7F0E5","#FFF3CF","#FBD9D9"],i=["You are not likely to burn out","You might burn out","You are likely burned out"];let a=pt().domain([0,1]).range(i),o=pt().domain([0,1]).range(n),l=pt().domain([0,1]).range(r);O("._viz-score").style("background-color",l(e.score)).style("color",o(e.score)),O("#__viz-gauge-wrapper").html(""),O("#_viz-probability").html(a(e.score));const c=document.getElementById("__viz-gauge-wrapper").offsetWidth,s=50,h=30,u=10,f=O("#__viz-gauge-wrapper").append("svg").style("overflow","visible").attr("viewBox",`0 0 ${c} ${s}`);let d=tt().domain([0,1]).range([h,c-2*h]),m=Ge().duration(1500);f.append("rect").attr("fill","var(--_viz-gray-fill)").attr("stroke","var(--_viz-white)").attr("stroke-width",3).attr("x",h).attr("y",s/2-u/2).attr("width",c-2*h).attr("height",u).attr("rx",5).attr("ry",5),f.append("rect").attr("x",h).attr("y",s/2-u/2).attr("width",0).attr("height",u).attr("rx",5).attr("ry",5).transition(m).styleTween("fill",function(){return e.score<=.33?ot("rgb(54,179,126)","rgb(54,179,126)"):e.score<=.66?ot("rgb(54,179,126)","rgb(255,193,13)"):ot("rgb(54,179,126)","rgb(235,64,64)")}).attr("width",d(e.score))}}},he=t=>(Ft("data-v-a1d2c1e6"),t=t(),Rt(),t),Cf={id:"_viz-score"},If={class:"_viz-score"},Tf=he(()=>p("br",null,null,-1)),Ef=he(()=>p("br",null,null,-1)),Ff=he(()=>p("span",{id:"_viz-probability"},null,-1)),Rf=he(()=>p("div",{id:"__viz-gauge-wrapper"},null,-1));function Bf(t,e,n,r,i,a){return b(),M("div",null,[p("p",Cf,[p("span",If,ht(i.burnout_score),1),Tf,Ef,Ff]),Rf])}const Df=D(Nf,[["render",Bf],["__scopeId","data-v-a1d2c1e6"]]),qf={},xr=t=>(Ft("data-v-32b8d7c3"),t=t(),Rt(),t),Pf=xr(()=>p("h4",null,"Where do you stand?",-1)),Hf=xr(()=>p("p",null," Burnout Scores range from 0 to 1, with 0 representing those lucky workers who are unlikely to burn out in their current jobs. Those workers more likely to burn out—with scores closer to 1—tend to feel more tired and overwhelmed, with limited support from higher-ups. ",-1)),Lf=[Pf,Hf];function Of(t,e,n,r,i,a){return b(),M("div",null,Lf)}const Wf=D(qf,[["render",Of],["__scopeId","data-v-32b8d7c3"]]),Vf={name:"Insight1",props:["ids","results","trained_data","original_data","question"],watch:{results:{handler:function(t){this.draw(this.trained_data,this.original_data,t,this.question,this.ids)},deep:!0}},methods:{check(t){if(this.ids!=="viz0")return!0},draw(t,e,n,r,i){let a=[],o={score:{min:0,max:1,bins:11,attr:"score"},gender:{min:1,bins:2,attr:"gender",axis:["female","male"]},"company-type":{min:1,bins:2,attr:"company_type",axis:["service","product"]},wfh:{min:1,bins:2,attr:"wfh_setup",axis:["no","yes"]},seniority:{max:5,min:0,bins:6,attr:"designation"},allocation:{max:10,min:1,bins:10,attr:"resource_allocation"},fatigue:{max:10,min:0,bins:11,attr:"mental_fatigue_score"}},l=t.find(g=>g.gender===this.results.gender&&g.company_type===this.results["company-type"]&&g.wfh_setup===this.results.wfh&&g.designation===parseInt(this.results.seniority)&&g.resource_allocation===parseInt(this.results.allocation)&&g.mental_fatigue_score===parseInt(this.results.fatigue)),c=Ae().thresholds(o[r].bins),s=e.map(g=>g[o[r].attr]);o[r].min,o[r].max;let h=[],u=[],f=[];if(r==="seniority"||r==="fatigue"||r==="score"||r==="allocation"?f=!0:f=!1,f===!0){r!=="score"?a=parseInt(n[r]):a=Math.trunc(l.score*10)/10,h=c(s);for(let g=0;g<h.length;g++)u.push({name:wi(h[g]),value:h[g].length})}else{a=n[r],h=[...new Set(s)];for(let g=0;g<h.length;g++)u.push({name:h[g],value:s.filter(x=>x==h[g]).length})}const d=600,m=600,_=20,w=["rgb(54,179,126)","rgb(255,193,13)","rgb(235,64,64)"],A=["#D7F0E5","#FFF3CF","#FBD9D9"];let z=pt().domain([0,1]).range(w);pt().domain([0,1]).range(A),O(`#${i}`).html("");const k=O(`#${i}`).append("svg").style("overflow","visible").attr("viewBox",[0,0,d,m]),v=Ge().duration(1500);let y=Et().domain(Pe(o[r].bins)).range([2*_,d-2*_]).padding(.1),F=tt().domain([0,gt(u,g=>g.value)]).nice().range([m-2*_,2*_]),R=g=>g.attr("transform",`translate(0,${m-_})`).call(He(y).tickFormat(x=>o[r].axis!==void 0?o[r].axis[x]:u[x].name).tickSizeInner(0)).call(x=>x.select(".domain").remove()).selectAll("text").attr("font-family","var(--_viz-text-reg)").attr("font-size",20).attr("color","var(--_viz-text").attr("font-weight","bold"),P=g=>g.attr("transform",`translate(${_},0)`).call(se(F).ticks(0).tickSizeInner(0)).call(x=>x.select(".domain").remove()).call(x=>x.append("text").attr("x",_).attr("y",2*_).attr("fill","currentColor").attr("text-anchor","start").attr("class","_viz-legend").text("↑ % answers")).selectAll("text").attr("font-size",20).attr("font-family","var(--_viz-text-reg)").attr("font-size",20).attr("color","var(--_viz-text").attr("font-weight","bold");k.append("g").selectAll("rect").data(u).join("rect").attr("fill",function(g){return r!=="score"?g.name===a?"var(--_viz-blue-shade)":"var(--_viz-white)":g.name===a?z(l.score):"#f3f3f9"}).attr("rx",10).attr("ry",10).attr("x",(g,x)=>y(x)).attr("y",g=>F(0)).attr("height",g=>0).attr("width",y.bandwidth()).transition(v).attr("height",g=>F(0)-F(g.value)).attr("y",g=>F(g.value)),k.append("g").call(R),k.append("g").call(P)}}},jf={key:0,class:"_viz-subtitle-wrapper"},Xf={class:"_viz-subtitle"},Yf=["id"],Uf=["id"];function Kf(t,e,n,r,i,a){return b(),M("div",null,[a.check(n.ids)?(b(),M("div",jf,[p("p",Xf,ht(n.question),1)])):X("",!0),a.check(n.ids)?(b(),M("div",{key:1,id:n.ids,class:"_viz-graph"},null,8,Yf)):(b(),M("div",{key:2,id:n.ids,class:"_viz-graph-burnout"},null,8,Uf))])}const Gf=D(Vf,[["render",Kf],["__scopeId","data-v-23e6c4e3"]]),Qf={name:"Insight2",props:["insight_data","dendro"],watch:{insight_data:{handler:function(t){this.draw(t,this.dendro)}}},methods:{draw(t,e){const r=window.innerWidth>500?300:500,i=30;O(`#${e}`).html("");const a=O(`#${e}`).append("svg").style("overflow","visible").attr("viewBox",[-i,-r/2,600,r]),l=(s=>{const h=Ze(s).sort((u,f)=>Tn(u.height,f.height)||St(u.data.value,f.data.value));return h.dx=window.innerWidth>500?15:25,h.dy=600/(h.height+1),zl().nodeSize([h.dx,h.dy])(h)})(t),c=tt().domain([0,10]).range([0,1]);a.append("g").attr("fill","none").attr("stroke","#555").attr("stroke-width",1.5).selectAll("path").data(l.links()).join("path").attr("d",s=>`
        M${s.target.y},${s.target.x}
        C${s.source.y+l.dy/2},${s.target.x}
         ${s.source.y+l.dy/2},${s.source.x}
         ${s.source.y},${s.source.x}
      `).attr("stroke",s=>(s.target.data.color,s.target.data.color)).attr("stroke-width",s=>s.target.data.value?2:5).attr("stroke-opacity",function(s){return e==="dendro0"?s.target.data.value:c(s.target.data.value)}),a.append("g").selectAll("circle").data(l.descendants()).join("circle").attr("cx",s=>s.y).attr("cy",s=>s.x).attr("fill",s=>s.data.value?s.data.color:"#fff").attr("stroke",s=>s.data.value?"none":s.data.color).attr("stroke-width",2).attr("stroke-opacity",s=>s.data.value?s.data.value:.8).attr("r",s=>s.data.value?2.5:4),a.append("g").attr("font-family","var(--_viz-text-reg)").attr("stroke-linejoin","round").attr("stroke-width",3).selectAll("text").data(l.descendants()).join("text").attr("x",s=>s.y).attr("y",s=>s.x).attr("dy","0.31em").attr("dx",s=>s.children?-6:6).attr("font-size",s=>window.innerWidth<500&&s.data.color?20:10).attr("fill",s=>(s.data.color,s.data.color)).text(s=>s.children?s.data.name:s.data.name+" "+s.data.value).filter(s=>s.children).attr("text-anchor","end").clone(!0).lower().attr("stroke","white")}}},Zf=["id"];function Jf(t,e,n,r,i,a){return b(),M("div",null,[p("div",{id:n.dendro},null,8,Zf)])}const th=D(Qf,[["render",Jf]]),eh={name:"Insight3",props:["original_data","density"],watch:{original_data:{handler:function(t){this.draw(t,this.density)}}},methods:{draw(t,e){const n=window.innerWidth,r=600,i=n>500?300:400,a={top:40,right:30,bottom:30,left:40};O(`#${e}`).html("");const o=O(`#${e}`).append("svg").style("overflow","visible").attr("viewBox",[0,0,r,i]);function l(g){return x=>Math.abs(x/=g)<=1?.75*(1-x*x)/g:0}function c(g,x,$){return x.map(I=>[I,bi($,S=>g(I-S))])}const s=nn(t,g=>g.gender)[0][1].map(g=>+g.score*100),h=nn(t,g=>g.gender)[1][1].map(g=>+g.score*100),u=tt().domain(jt(s)).nice().range([a.left,r-a.right]),f=u.ticks(40),d=Ae().domain(u.domain()).thresholds(f)(h),m=Ae().domain(u.domain()).thresholds(f)(s);let _=tt().domain([0,gt(m,g=>g.length)/s.length/2]).range([i-a.bottom,a.top]),w=tt().domain([0,gt(d,g=>g.length)/h.length/2]).range([i-a.bottom,a.top]);const A=g=>g.attr("transform",`translate(0,${i-a.bottom})`).call(He(u).tickFormat(x=>x/100).tickSizeInner(0).tickPadding(10)).call(x=>x.select(".domain").remove()).selectAll("text").attr("font-family","var(--_viz-text-reg)").attr("font-size",n>500?11:17).attr("color","var(--_viz-text").attr("font-weight","bold"),z=g=>g.attr("transform",`translate(${a.left},0)`).call(se(_).ticks(0,"%").tickSizeInner(0).tickSizeOuter(0)).call(x=>x.select(".domain").remove()).call(x=>x.append("text").attr("x",0).attr("y",a.top).attr("fill","currentColor").attr("text-anchor","start").attr("class","_viz-legend").text("↑ % people")).selectAll("text").attr("font-size",n>500?10:17).attr("font-family","var(--_viz-text-reg)").attr("color","var(--_viz-text").attr("font-weight","bold"),k=c(l(3),f,s),v=c(l(3),f,h);let y=De().curve(In).x(g=>u(g[0])).y(g=>_(g[1])),F=De().curve(In).x(g=>u(g[0])).y(g=>w(g[1])),R=Nn().x(g=>u(g[0])).y1(g=>_(g[1])).y0(_(0)),P=Nn().x(g=>u(g[0])).y1(g=>w(g[1])).y0(w(0));o.append("path").datum(k).attr("fill","none").attr("stroke","var(--_viz-purple-dark)").attr("stroke-opacity",1).attr("stroke-width",2).attr("stroke-linejoin","round").attr("d",y),o.append("path").datum(k).attr("fill","var(--_viz-purple-dark)").attr("fill-opacity",.5).attr("d",R),o.append("path").datum(v).attr("fill","none").attr("stroke","var(--_viz-yellow-light)").attr("stroke-opacity",1).attr("stroke-width",2).attr("stroke-linejoin","round").attr("d",F),o.append("path").datum(v).attr("fill","var(--_viz-yellow-light)").attr("fill-opacity",.5).attr("d",P),o.append("g").call(A),o.append("g").call(z)}}},nh=["id"];function rh(t,e,n,r,i,a){return b(),M("div",null,[p("div",{id:n.density},null,8,nh)])}const ih=D(eh,[["render",rh]]),ah={name:"Insight4",props:["insight_data","ext"],watch:{insight_data:{handler:function(t){this.draw(t,this.ext)}}},methods:{draw(t,e){const i={top:20,right:30,bottom:60,left:40};O(`#${e}`).html("");const a=O(`#${e}`).append("svg").style("overflow","visible").style("padding","10px").attr("viewBox",[0,0,600,500]),o=t.columns.slice(1),l=t.columns[0],c=Je().range(["var(--_viz-legend-male)","var(--_viz-legend-female)"]),s=tt().domain([0,gt(t,m=>gt(o,_=>+m[_]))]).nice().rangeRound([500-i.bottom,i.top]),h=Et().domain(t.map(m=>m[l])).rangeRound([i.left,600-i.right]).paddingInner(.1),u=Et().domain(o).rangeRound([0,h.bandwidth()]).padding(.05);a.append("g").selectAll("g").data(t).join("g").attr("transform",m=>`translate(${h(m[l])},0)`).selectAll("rect").data(m=>o.map(_=>({key:_,value:m[_]}))).join("rect").attr("x",m=>u(m.key)).attr("y",m=>s(m.value)).attr("rx",5).attr("ry",5).attr("width",u.bandwidth()).attr("height",m=>s(0)-s(m.value)).attr("fill",m=>c(m.key)),a.append("text").attr("x",500).attr("y",s(366e3)-5).text("366K separations*").attr("font-family","var(--_viz-text-reg)").attr("font-size",12).attr("fill","var(--_viz-legend-male").attr("text-anchor","start").attr("font-weight","bold"),a.append("text").attr("x",500).attr("y",s(352e3)+12).text("352K separations*").attr("font-family","var(--_viz-text-reg)").attr("font-size",12).attr("fill","var(--_viz-legend-female").attr("text-anchor","start").attr("font-weight","bold"),a.append("line").attr("x1",i.left).attr("y1",s(366e3)).attr("x2",600).attr("y2",s(366e3)).attr("stroke-linecap","round").attr("stroke-width",2).attr("stroke","var(--_viz-legend-male)"),a.append("line").attr("x1",i.left).attr("y1",s(352e3)).attr("x2",600).attr("y2",s(352e3)).attr("stroke-linecap","round").attr("stroke-width",2).attr("stroke","var(--_viz-legend-female)");const f=m=>m.attr("transform",`translate(0,${500-i.bottom})`).call(He(h).tickSizeInner(0).tickSizeOuter(0)).call(_=>_.select(".domain").remove()).selectAll("text").attr("font-family","var(--_viz-text-reg)").attr("font-size",window.innerWidth>500?10:15).attr("color","var(--_viz-text").attr("transform","rotate(-45)").attr("text-anchor","end"),d=m=>m.attr("transform",`translate(${i.left},0)`).call(se(s).ticks(8,"s").tickSizeInner(0)).call(_=>_.select(".domain").remove()).call(_=>_.select(".tick:last-of-type text").clone().attr("x",3).attr("text-anchor","start").attr("font-family","var(--_viz-text-reg)").attr("font-size",window.innerWidth>500?10:15).attr("color","var(--_viz-text").attr("font-weight","bold").text(t.y));a.append("g").call(f),a.append("g").call(d)}}},oh=["id"];function sh(t,e,n,r,i,a){return b(),M("div",null,[p("div",{id:n.ext},null,8,oh)])}const lh=D(ah,[["render",sh]]),ch={name:"Insight6",props:["insight_data","ext"],watch:{insight_data:{handler:function(t){this.draw(t,this.ext)}}},methods:{draw(t,e){const n={top:30,right:0,bottom:10,left:160},r=600,i=500,a=Et().domain(Pe(t.length)).rangeRound([n.top,i-n.bottom]).padding(.1),o=tt().domain([0,gt(t,s=>s.number)]).range([n.left,r-n.right]),l=s=>s.attr("transform",`translate(${n.left-10},0)`).call(se(a).tickFormat(h=>t[h].name).tickSizeOuter(0).tickSizeInner(0)).attr("font-size",20).attr("x",-3).attr("font-family","var(--_viz-text-reg)").attr("color","var(--_viz-text").attr("font-weight","bold");O(`#${e}`).html("");const c=O(`#${e}`).append("svg").style("overflow","visible").style("max-width","400px").style("padding",window.innerWidth>500?"0px":"20px").attr("viewBox",[0,0,r,i]);c.append("g").selectAll("rect").data(t).join("rect").attr("rx",5).attr("fill","var(--_viz-blue-shade)").attr("ry",5).attr("x",o(0)).attr("y",(s,h)=>a(h)).attr("width",s=>o(s.number)-o(0)).attr("height",a.bandwidth()),c.append("g").attr("fill","white").attr("text-anchor","end").attr("font-family","var(--_viz-text-reg)").attr("font-size",15).attr("color","#fff").attr("font-weight","bold").selectAll("text").data(t).join("text").attr("x",s=>o(s.number)).attr("y",(s,h)=>a(h)+a.bandwidth()/2).attr("dy","0.35em").attr("dx",-2).text(s=>s.number+"%").call(s=>s.filter(h=>o(h.number)-o(0)<20).attr("dx",4).attr("fill","black").attr("text-anchor","start")),c.append("g").call(l),lo(".domain").remove()}}},uh=["id"];function fh(t,e,n,r,i,a){return b(),M("div",null,[p("div",{class:"_viz-horizontal",id:n.ext},null,8,uh)])}const hh=D(ch,[["render",fh],["__scopeId","data-v-05aee983"]]),dh={components:{TextBlock:Eu,Survey:Sf,SmallParagraph:Wf,Insight1:Gf,Insight2:th,Insight3:ih,Insight4:lh,Insight6:hh,Answer:Df},data(){return{trained_data:[],original_data:[],insightA_data:[],insightB_data:[],insightC_data:[],insightD_data:[],results:[],show:!1,question:["score","gender","company-type","wfh","seniority","fatigue","allocation"],ids:["viz0","viz1","viz2","viz3","viz4","viz5","viz6"],dendro:["dendro0","dendro1"],density:["density0","density1"],bigTitle:["title1","title2"],ext:["donut0","bars0"]}},mounted(){this.draw()},methods:{getting(t){this.results=t,this.show=!0},draw(){Kt("/thirdParties/frontpageData/burnoutArticle/predictions.csv",function(o){return{gender:o.Gender,company_type:o["Company Type"],wfh_setup:o["WFH Setup Available"],designation:+o.Designation,resource_allocation:+o["Resource Allocation"],mental_fatigue_score:+o["Mental Fatigue Score"],score:+o.score}}).then(function(o){return o}).then(o=>this.trained_data=o),Kt("/thirdParties/frontpageData/burnoutArticle/original.csv",function(o){return{gender:o.Gender,company_type:o["Company Type"],wfh_setup:o["WFH Setup Available"],designation:+o.Designation,resource_allocation:+o["Resource Allocation"],mental_fatigue_score:+o["Mental Fatigue Score"],score:+o["Burn Rate"]}}).then(function(o){return o}).then(o=>this.original_data=o),be("/thirdParties/frontpageData/burnoutArticle/insight_a.json").then(function(o){return o}).then(o=>this.insightA_data=o),be("/thirdParties/frontpageData/burnoutArticle/insight_b.json").then(function(o){return o}).then(o=>this.insightB_data=o),Kt("/thirdParties/frontpageData/burnoutArticle/flow.csv").then(function(o){return o}).then(o=>this.insightC_data=o),be("/thirdParties/frontpageData/burnoutArticle/insight_c.json").then(function(o){return o}).then(o=>this.insightD_data=o)}}},ph={class:"_viz-rich-text-slice"},mh={class:"_viz-rich-text-slice"},_h={class:"_viz-burnout-grid"},gh={class:"_viz-insights-grid"};function vh(t,e,n,r,i,a){const o=C("TextBlock"),l=C("Survey"),c=C("Answer"),s=C("SmallParagraph"),h=C("Insight1"),u=C("Insight3"),f=C("Insight2"),d=C("Insight6"),m=C("Insight4");return b(),M("div",null,[p("section",ph,[N(o,{block:"block-intro"})]),N(l,{onSubmitting:a.getting},null,8,["onSubmitting"]),xe(p("section",mh,[N(c,{results:i.results,trained_data:i.trained_data},null,8,["results","trained_data"]),p("div",_h,[N(s,{class:"_viz-item"}),N(h,{class:"_viz-item",ids:i.ids[0],question:i.question[0],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"])]),N(o,{block:"block-answers"}),p("div",gh,[N(h,{ids:i.ids[1],question:i.question[1],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"]),N(h,{ids:i.ids[2],question:i.question[2],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"]),N(h,{ids:i.ids[3],question:i.question[3],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"]),N(h,{ids:i.ids[4],question:i.question[4],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"]),N(h,{ids:i.ids[5],question:i.question[5],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"]),N(h,{ids:i.ids[6],question:i.question[6],results:i.results,original_data:i.original_data,trained_data:i.trained_data},null,8,["ids","question","results","original_data","trained_data"])]),N(o,{block:"block-density"}),N(u,{original_data:i.original_data,density:i.density[0]},null,8,["original_data","density"]),N(o,{block:"block-dendro-seniority"}),N(f,{insight_data:i.insightA_data,dendro:i.dendro[0]},null,8,["insight_data","dendro"]),N(o,{block:"block-dendro-allocation"}),N(f,{insight_data:i.insightB_data,dendro:i.dendro[1]},null,8,["insight_data","dendro"]),N(o,{block:"block-donut"}),N(d,{insight_data:i.insightD_data,ext:i.ext[0]},null,8,["insight_data","ext"]),N(o,{block:"block-bars"}),N(m,{insight_data:i.insightC_data,ext:i.ext[1]},null,8,["insight_data","ext"]),N(o,{block:"block-asterix"}),N(o,{block:"block-conclusion"}),N(o,{block:"block-sources"})],512),[[ke,i.show]])])}const yh=D(dh,[["render",vh]]),wh={components:{Dataviz:yh}};function bh(t,e,n,r,i,a){const o=C("dataviz");return b(),q(o)}const xh=D(wh,[["render",bh]]),kh={class:"tags-slice"},$h={class:"social-container"},Ah={class:"tags-container"},zh=Nr({__name:"TagsSlice",props:{slice:{}},setup(t){const e=t,n=Cr(()=>e.slice.primary.tags.filter(Ir));return(r,i)=>{const a=Er;return b(),M("section",kh,[p("div",$h,[p("div",Ah,[(b(!0),M(mt,null,Nt(Tr(n),(o,l)=>(b(),q(a,{key:`tag_${o.data.label}_${l}`,link:o,type:"link","section-id":"Blog Article Tags"},{default:oe(()=>[N(Or,{color:"green",label:o.data.label,type:"tag"},null,8,["label"])]),_:2},1032,["link"]))),128))]),N(ri,{"article-meta":r.slice.primary.articleMeta},null,8,["article-meta"])])])}}}),Mh=D(zh,[["__scopeId","data-v-54bd7dea"]]),Sh={props:{slice:{type:Object,required:!0}},setup(t){const e=t.slice.primary.url.provider_name.toLowerCase();Fr({script:[e==="instagram"?Nh():{}]})},computed:{providerName(){return this.slice.primary.url.provider_name.toLowerCase()},sanitizedHtml(){return Xr.sanitize(this.slice.primary.url.html,{ADD_TAGS:["iframe","script"]})}},mounted(){this.providerName==="facebook"&&window.FB&&window.FB.Event.subscribe("xfbml.render",Ch),this.providerName==="instagram"&&window.instgrm&&window.instgrm.Embeds.process(),this.providerName==="twitter"&&window.twttr&&window.twttr.widgets.load()}};function Nh(){return{hid:"instagram",name:"instagram",src:"//www.instagram.com/embed.js",async:!0}}function Ch(){const t=document.getElementsByClassName("fb_iframe_widget")[0];t&&t.classList.replace("fb_iframe_widget","fb_iframe_widget_fluid")}const Ih={class:"wrapper"},Th=["innerHTML"];function Eh(t,e,n,r,i,a){const o=jr;return b(),q(o,{class:Vt(["url-embed-slice",a.providerName])},{default:oe(()=>[p("div",Ih,[p("div",{class:"embed",innerHTML:a.sanitizedHtml},null,8,Th)])]),_:1},8,["class"])}const Fh=D(Sh,[["render",Eh],["__scopeId","data-v-cf6192e1"]]),Rh={components:{WistiaPlayer:Yr},props:{slice:{type:Object,required:!0}},data(){return{wistiaId:this.slice.primary.wistia_id,media:this.slice.slice_label??"video"}}},Bh={class:"wistia-embed-slice"};function Dh(t,e,n,r,i,a){const o=C("wistia-player");return b(),M("section",Bh,[N(o,{"wistia-id":i.wistiaId,media:i.media},null,8,["wistia-id","media"])])}const qh=D(Rh,[["render",Dh],["__scopeId","data-v-7c405b7b"]]),Ph={components:{CodeEmbedSlice:kr,ConversionFormSlice:Ar,EmployeeTurnoverSimulationSlice:Rc,FaqSlice:Br,ImageWithCaptionSlice:Dr,InteractiveQuizSlice:xh,KeyStatsSlice:$r,QuoteSlice:qr,RichTextSlice:Pr,SimilarResourcesSlice:Hr,SubscriptionBanner:Lr,TagsSlice:Mh,UrlEmbedSlice:Fh,WistiaEmbedSlice:qh},props:{slices:{type:Array,required:!0}},computed:{similarResourcesTitle(){return this.$store.common.types[Rr][this.$i18n.locale].blog_article[0].similar_resources_section_title}}},Hh={class:"slices-block"};function Lh(t,e,n,r,i,a){const o=C("code-embed-slice"),l=C("conversion-form-slice"),c=C("employee-turnover-simulation-slice"),s=C("faq-slice"),h=C("similar-resources-slice"),u=C("image-with-caption-slice"),f=C("interactive-quiz-slice"),d=C("key-stats-slice"),m=C("quote-slice"),_=C("rich-text-slice"),w=C("subscription-banner"),A=C("tags-slice"),z=C("url-embed-slice"),k=C("wistia-embed-slice");return b(),M("div",Hh,[(b(!0),M(mt,null,Nt(n.slices,(v,y)=>(b(),M(mt,null,[v.slice_type==="code_embed"?(b(),q(o,{key:`slice-${v.slice_type}-${y}`,"background-color":"blue",slice:v,width:"narrow"},null,8,["slice"])):v.slice_type==="conversion_form"?(b(),q(l,{key:`slice-${v.slice_type}-${y}`,slice:v,"no-skewed-background":""},null,8,["slice"])):v.slice_type==="employee_turnover_simulation"?(b(),q(c,{key:`slice-${v.slice_type}-${y}`,slice:v},null,8,["slice"])):v.slice_type==="faq"?(b(),q(s,{key:`slice-${v.slice_type}-${y}`,slice:v,"title-color":"black"},null,8,["slice"])):v.slice_type==="similar_resources"?(b(),q(h,{key:`slice-${v.slice_type}-${y}`,"max-nb-items":3,"no-background":"",slice:v,title:a.similarResourcesTitle},null,8,["slice","title"])):v.slice_type==="image"?(b(),q(u,{key:`slice-${v.slice_type}-${y}`,slice:v},null,8,["slice"])):v.slice_type==="interactive_quiz"?(b(),q(f,{key:`slice-${v.slice_type}-${y}`})):v.slice_type==="key_stats"?(b(),q(d,{key:`slice-${v.slice_type}-${y}`,slice:v},null,8,["slice"])):v.slice_type==="quote"?(b(),q(m,{key:`slice-${v.slice_type}-${y}`,slice:v,theme:"blog"},null,8,["slice"])):v.slice_type==="text"?(b(),q(_,{key:`slice-${v.slice_type}-${y}`,slice:v,theme:"blog"},null,8,["slice"])):v.slice_type==="subscription_banner"?(b(),q(w,{key:`slice-${v.slice_type}-${y}`,"is-light":""})):v.slice_type==="tags_section"?(b(),q(A,{key:`slice-${v.slice_type}-${y}`,slice:v},null,8,["slice"])):v.slice_type==="url_embed"?(b(),q(z,{key:`slice-${v.slice_type}-${y}`,slice:v},null,8,["slice"])):v.slice_type==="wistia_video"?(b(),q(k,{key:`slice-${v.slice_type}-${y}`,slice:v},null,8,["slice"])):X("",!0)],64))),256))])}const rd=D(Ph,[["render",Lh],["__scopeId","data-v-111af162"]]);export{ri as S,rd as a};
