/*! For license information please see 1326.bundle.js.LICENSE.txt */ (self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[1326],{72759:e=>{"use strict";var t=/("(?:[^\\"]|\\.)*")|[:,]/g;e.exports=function(e,n){var i,r,o;return n=n||{},i=JSON.stringify([1],void 0,void 0===n.indent?2:n.indent).slice(2,-3),r=""===i?1/0:void 0===n.maxLength?80:n.maxLength,o=n.replacer,function e(n,a,s){var l,u,c,f,d,h,p,m,g,y,v,b;if(n&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0===(v=JSON.stringify(n,o)))return v;if(p=r-a.length-s,v.length<=p&&(g=v.replace(t,(function(e,t){return t||e+" "}))).length<=p)return g;if(null!=o&&(n=JSON.parse(v),o=void 0),"object"==typeof n&&null!==n){if(m=a+i,c=[],u=0,Array.isArray(n))for(y="[",l="]",p=n.length;u
0)return[y,i+c.join(",\n"+m),l].join("\n"+a)}return v}(e,"",0)}},27061:e=>{var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c 0&&c>0?(Kb(h,p,m,g,u),ex(h,p,g,m,c),Kb(h,p,m,g,u),ex(h,p,g,m,c),Kb(h,p,m,g,u),ex(h,p,g,m,c)):u>0?(Kb(h,p,m,g,u),Kb(h,p,g,m,u),Kb(h,p,m,g,u),y=g):c>0&&(ex(h,p,m,g,c),ex(h,p,g,m,c),ex(h,p,m,g,c),y=g);const v=l?Math.pow(2,-2*a):1/Zm(y);for(let e=0,t=h*p;e e.r&&(e.r=e[t].r)}function l(){if(t){var i,r,o=t.length;for(n=new Array(o),i=0;i >>1;u[m]0;)--s}0===r(e[n],o)?eo(e,n,s):(++s,eo(e,s,i)),s<=t&&(n=s+1),t<=s&&(i=s-1)}return e}function eo(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}var to=n(53612);function no(e,t,n){if((i=(e=Float64Array.from((0,to.K)(e,n))).length)&&!isNaN(t=+t)){if(t<=0||i<2)return(0,Jr.Z)(e);if(t>=1)return(0,Yr.Z)(e);var i,r=(i-1)*t,o=Math.floor(r),a=(0,Yr.Z)(Kr(e,o).subarray(0,o+1));return a+((0,Jr.Z)(e.subarray(o+1))-a)*(r-o)}}function io(e,t,n=to.Z){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,r=(i-1)*t,o=Math.floor(r),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(r-o)}}function ro(e,t){return no(e,.5,t)}function*oo(e,t){if(null==t)for(let t of e)null!=t&&""!==t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let i of e)i=t(i,++n,e),null!=i&&""!==i&&(i=+i)>=i&&(yield i)}}function ao(e,t,n){const i=Float64Array.from(oo(e,n));return i.sort(Xr.Z),t.map((e=>io(i,e)))}function so(e,t){return ao(e,[.25,.5,.75],t)}function lo(e,t){const n=e.length,i=function(e,t){const n=function(e,t){let n,i=0,r=0,o=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(n=t-r,r+=n/++i,o+=n*(t-r));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-r,r+=n/++i,o+=n*(s-r))}if(i>1)return o/(i-1)}(e,t);return n?Math.sqrt(n):n}(e,t),r=so(e,t),o=(r[2]-r[0])/1.34;return 1.06*(Math.min(i,o)||i||Math.abs(r[0])||1)*Math.pow(n,-.2)}function uo(e){const t=e.maxbins||20,n=e.base||10,i=Math.log(n),r=e.divide||[5,2];let o,a,s,l,u,c,f=e.extent[0],d=e.extent[1];const h=e.span||d-f||Math.abs(f)||1;if(e.step)o=e.step;else if(e.steps){for(l=h/t,u=0,c=e.steps.length;ub*(e-=o)*e+x*e+w+a;return{coef:[w-x*o+b*o*o+a,x-2*b*o,b],predict:_,rSquared:jo(e,t,n,a,_)}}function Vo(e,t,n,i){if(0===i)return Po(e,t,n);if(1===i)return Uo(e,t,n);if(2===i)return Ho(e,t,n);const[r,o,a,s]=Bo(e,t,n),l=r.length,u=[],c=[],f=i+1;let d,h,p,m,g;for(d=0;dt(n,e)),ee(t),K(t))}function La(e){Gr.call(this,[void 0,void 0],e)}function Ba(e,t){$r.call(this,e),this.parent=t,this.count=0}function Ia(e){Gr.call(this,{},e),this._keys=lt();const t=this._targets=[];t.active=0,t.forEach=e=>{for(let n=0,i=t.active;nae(e))):ae(e.name,e.as)}function qa(e){Gr.call(this,lt(),e)}function Wa(e){Gr.call(this,[],e)}function Ga(e){Gr.call(this,[],e)}function Ha(e){Gr.call(this,null,e)}function Va(e){Gr.call(this,[],e)}Fa.Definition={type:"Density",metadata:{generates:!0},params:[{name:"extent",type:"number",array:!0,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:Ma.concat(Oa)},{name:"as",type:"string",array:!0,default:["value","density"]}]},ct(Fa,Gr,{transform(e,t){const n=t.fork(t.NO_SOURCE|t.NO_FIELDS);if(!this.value||t.changed()||e.modified()){const i=Ca(e.distribution,function(e){return()=>e.materialize(e.SOURCE).source}(t)),r=e.steps||e.minsteps||25,o=e.steps||e.maxsteps||200;let a=e.method||"pdf";"pdf"!==a&&"cdf"!==a&&re("Invalid density method: "+a),e.extent||i.data||re("Missing density extent parameter."),a=i[a];const s=e.as||["value","density"],l=ta(a,e.extent||it(i.data()),r,o).map((e=>{const t={};return t[s[0]]=e[0],t[s[1]]=e[1],mr(t)}));this.value&&(n.rem=this.value),this.value=n.add=n.source=l}return n}}),Ta.Definition={type:"DotBin",metadata:{modifies:!0},params:[{name:"field",type:"field",required:!0},{name:"groupby",type:"field",array:!0},{name:"step",type:"number"},{name:"smooth",type:"boolean",default:!1},{name:"as",type:"string",default:"bin"}]},ct(Ta,Gr,{transform(e,t){if(this.value&&!e.modified()&&!t.changed())return t;const n=t.materialize(t.SOURCE).source,i=za(t.source,e.groupby,le),r=e.smooth||!1,o=e.field,a=e.step||((e,t)=>At(it(e,t))/30)(n,o),s=br(((e,t)=>o(e)-o(t))),l=e.as||"bin",u=i.length;let c,f=1/0,d=-1/0,h=0;for(;hd&&(d=t),e[++c][l]=t}return this.value={start:f,stop:d,step:a},t.reflow(!0).modifies(l)}}),ct(Ra,$r),La.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:!0}]},ct(La,Gr,{transform(e,t){const n=this.value,i=e.field,r=t.changed()||t.modified(i.fields)||e.modified("field");let o=n[0],a=n[1];if((r||null==o)&&(o=1/0,a=-1/0),t.visit(r?t.SOURCE:t.ADD,(e=>{const t=De(i(e));null!=t&&(t{for(let t,o=0;ot.modified(e.fields))),f|=c?t.MOD:0),t.visit(f,l),d.modifies(h)}}),ct(rs,$r),ct(as,$r),ct(ls,Gr,{transform(e,t){return this.modified(e.modified()),this.value=e,t.fork(t.NO_SOURCE|t.NO_FIELDS)}}),us.Definition={type:"Pivot",metadata:{generates:!0,changes:!0},params:[{name:"groupby",type:"field",array:!0},{name:"field",type:"field",required:!0},{name:"value",type:"field",required:!0},{name:"op",type:"enum",values:ua,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]},ct(us,ba,{_transform:ba.prototype.transform,transform(e,t){return this._transform(function(e,t){const n=e.field,i=e.value,r=("count"===e.op?"__count__":e.op)||"sum",o=ee(n).concat(ee(i)),a=function(e,t,n){const i={},r=[];return n.visit(n.SOURCE,(t=>{const n=e(t);i[n]||(i[n]=1,r.push(n))})),r.sort(Ye),t?r.slice(0,t):r}(n,e.limit||0,t);return t.changed()&&e.set("__pivot__",null,null,!0),{key:e.key,groupby:e.groupby,ops:a.map((()=>r)),fields:a.map((e=>function(e,t,n,i){return Q((i=>t(i)===e?n(i):NaN),i,e+"")}(e,n,i,o))),as:a.map((e=>e+"")),modified:e.modified.bind(e)}}(e,t),t)}}),ct(cs,Ia,{transform(e,t){const n=e.subflow,i=e.field,r=e=>this.subflow(hr(e),n,t,e);return(e.modified("field")||i&&t.modified(ee(i)))&&re("PreFacet does not support field modification."),this.initTargets(),i?(t.visit(t.MOD,(e=>{const t=r(e);i(e).forEach((e=>t.mod(e)))})),t.visit(t.ADD,(e=>{const t=r(e);i(e).forEach((e=>t.add(mr(e))))})),t.visit(t.REM,(e=>{const t=r(e);i(e).forEach((e=>t.rem(e)))}))):(t.visit(t.MOD,(e=>r(e).mod(e))),t.visit(t.ADD,(e=>r(e).add(e))),t.visit(t.REM,(e=>r(e).rem(e)))),t.clean()&&t.runAfter((()=>this.clean())),t}}),fs.Definition={type:"Project",metadata:{generates:!0,changes:!0},params:[{name:"fields",type:"field",array:!0},{name:"as",type:"string",null:!0,array:!0}]},ct(fs,Gr,{transform(e,t){const n=t.fork(t.NO_SOURCE),i=e.fields,r=Na(e.fields,e.as||[]),o=i?(e,t)=>function(e,t,n,i){for(let r=0,o=n.length;r.5&&t<1.5?.5-Math.abs(t-1):0}function ud(e,t){const n=ld(t);e("d",Yc(null,t,n,n))}function cd(e,t,n,i){const r=ld(t);e.beginPath(),Yc(e,t,(n||0)+r,(i||0)+r)}const fd=Qf(cd),dd=Qf(cd,!1),hd=Qf(cd,!0);var pd={type:"group",tag:"g",nested:!1,attr:function(e,t){e("transform",nd(t))},bound:function(e,t){if(!t.clip&&t.items){const n=t.items,i=n.length;for(let t=0;t{const i=t.x||0,r=t.y||0,o=t.strokeForeground,a=null==t.opacity?1:t.opacity;(t.stroke||t.fill)&&a&&(cd(e,t,i,r),Pf(e,t),t.fill&&jf(e,t,a)&&e.fill(),t.stroke&&!o&&qf(e,t,a)&&e.stroke()),e.save(),e.translate(i,r),t.clip&&sd(e,t),n&&n.translate(-i,-r),Hf(t,(t=>{this.draw(e,t,n)})),n&&n.translate(i,r),e.restore(),o&&t.stroke&&a&&(cd(e,t,i,r),Pf(e,t),qf(e,t,a)&&e.stroke())}))},pick:function(e,t,n,i,r,o){if(t.bounds&&!t.bounds.contains(r,o)||!t.items)return null;const a=n*e.pixelRatio,s=i*e.pixelRatio;return Vf(t,(l=>{let u,c,f;const d=l.bounds;if(d&&!d.contains(r,o))return;c=l.x||0,f=l.y||0;const h=c+(l.width||0),p=f+(l.height||0),m=l.clip;if(m&&(r=0;)if(!1!==e[o].defined&&(n=e[o].x-t[0])*n+(i=e[o].y-t[1])*i{e.dirty=t}))),i.zdirty||(n.exit?(o.nested&&i.items.length?(l=i.items[0],l._svg&&this._update(o,l._svg,l)):n._svg&&(l=n._svg.parentNode,l&&l.removeChild(n._svg)),n._svg=null):(n=o.nested?i.items[0]:n,n._update!==t&&(n._svg&&n._svg.ownerSVGElement?this._update(o,n._svg,n):(this._dirtyAll=!1,hp(n,t)),n._update=t)));return!this._dirtyAll},mark(e,t,n){if(!this.isDirty(t))return t._svg;const i=this._svg,r=Qd[t.marktype],o=!1===t.interactive?"none":null,a="g"===r.tag,s=gp(t,e,n,"g",i);s.setAttribute("class",dh(t));const l=Qh(t);for(const e in l)kp(s,e,l[e]);a||kp(s,"pointer-events",o),kp(s,"clip-path",t.clip?Kc(this,t,t.group):null);let u=null,c=0;const f=e=>{const t=this.isDirty(e),n=gp(e,s,u,r.tag,i);t&&(this._update(r,n,e),a&&function(e,t,n){t=t.lastChild.previousSibling;let i,r=0;Hf(n,(n=>{i=e.mark(t,n,i),++r})),fh(t,1+r)}(this,n,e)),u=n,++c};return r.nested?t.items.length&&f(t.items[0]):Hf(t,f),fh(s,c),s},_update(e,t,n){yp=t,vp=t.__values__,Jh(xp,n),e.attr(xp,n,this);const i=bp[e.type];i&&i.call(this,e,t,n),yp&&this.style(yp,n)},style(e,t){if(null!=t){for(const n in ap){let i="font"===n?qd(t):t[n];if(i===vp[n])continue;const r=ap[n];null==i?e.removeAttribute(r):(tc(i)&&(i=nc(i,this._defs.gradient,Ep())),e.setAttribute(r,i+"")),vp[n]=i}for(const n in sp)wp(e,sp[n],t[n])}},defs(){const e=this._svg,t=this._defs;let n=t.el,i=0;for(const r in t.gradient)n||(t.el=n=ch(e,1,"defs",cp)),i=pp(n,t.gradient[r],i);for(const r in t.clipping)n||(t.el=n=ch(e,1,"defs",cp)),i=mp(n,t.clipping[r],i);n&&(0===i?(e.removeChild(n),t.el=null):fh(n,i))},_clearDefs(){const e=this._defs;e.gradient={},e.clipping={}}});let yp=null,vp=null;const bp={group(e,t,n){const i=yp=t.childNodes[2];vp=i.__values__,e.foreground(xp,n,this),vp=t.__values__,yp=t.childNodes[1],e.content(xp,n,this);const r=yp=t.childNodes[0];e.background(xp,n,this);const o=!1===n.mark.interactive?"none":null;if(o!==vp.events&&(kp(i,"pointer-events",o),kp(r,"pointer-events",o),vp.events=o),n.strokeForeground&&n.stroke){const e=n.fill;kp(i,"display",null),this.style(r,n),kp(r,"stroke",null),e&&(n.fill=null),vp=i.__values__,this.style(i,n),e&&(n.fill=e),yp=null}else kp(i,"display","none")},image(e,t,n){!1===n.smooth?(wp(t,"image-rendering","optimizeSpeed"),wp(t,"image-rendering","pixelated")):wp(t,"image-rendering",null)},text(e,t,n){const i=Id(n);let r,o,a,s;xe(i)?(o=i.map((e=>Ud(n,e))),r=o.join("\n"),r!==vp.text&&(fh(t,0),a=t.ownerDocument,s=Bd(n),o.forEach(((e,i)=>{const r=lh(a,"tspan",cp);r.__data__=n,r.textContent=e,i&&(r.setAttribute("x",0),r.setAttribute("dy",s)),t.appendChild(r)})),vp.text=r)):(o=Ud(n,i),o!==vp.text&&(t.textContent=o,vp.text=o)),kp(t,"font-family",qd(n)),kp(t,"font-size",Ld(n)+"px"),kp(t,"font-style",n.fontStyle),kp(t,"font-variant",n.fontVariant),kp(t,"font-weight",n.fontWeight)}};function xp(e,t,n){t!==vp[e]&&(n?function(e,t,n,i){null!=n?e.setAttributeNS(i,t,n):e.removeAttributeNS(i,t)}(yp,e,t,n):kp(yp,e,t),vp[e]=t)}function wp(e,t,n){n!==vp[t]&&(null==n?e.style.removeProperty(t):e.style.setProperty(t,n+""),vp[t]=n)}function _p(e,t){for(const n in t)kp(e,n,t[n])}function kp(e,t,n){null!=n?e.setAttribute(t,n):e.removeAttribute(t)}function Ep(){let e;return"undefined"==typeof window?"":(e=window.location).hash?e.href.slice(0,-e.hash.length):e.href}function Ap(e){gh.call(this,e),this._text=null,this._defs={gradient:{},clipping:{}}}ct(Ap,gh,{svg(){return this._text},_render(e){const t=ip();t.open("svg",nt({},md,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));const n=this._bgcolor;return n&&"transparent"!==n&&"none"!==n&&t.open("rect",{width:this._width,height:this._height,fill:n}).close(),t.open("g",lp,{transform:"translate("+this._origin+")"}),this.mark(t,e),t.close(),this.defs(t),this._text=t.close()+"",this},mark(e,t){const n=Qd[t.marktype],i=n.tag,r=[Jh,n.attr];e.open("g",{class:dh(t),"clip-path":t.clip?Kc(this,t,t.group):null},Qh(t),{"pointer-events":"g"!==i&&!1===t.interactive?"none":null});const o=o=>{const a=this.href(o);if(a&&e.open("a",a),e.open(i,this.attr(t,o,r,"g"!==i?i:null)),"text"===i){const t=Id(o);if(xe(t)){const n={x:0,dy:Bd(o)};for(let i=0;i