=x&&(x=_+1);!(b=g[x])&&++x=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ol);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?Rl:"function"===typeof e?Hl:Fl)(t,e,null==n?"":n)):Vl(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Bl:"function"===typeof e?Ul:Wl)(t,e)):this.node()[t]},classed:function(t,e){var n=ql(t+"");if(arguments.length<2){for(var r=Yl(this.node()),i=-1,o=n.length;++i=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Tc(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o=0&&e._call.call(void 0,t),e=e._next;--Nc}()}finally{Nc=0,function(){var t,e,n=Pc,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Pc=e);Ac=t,Kc(r)}(),Fc=0}}function Xc(){var t=Vc.now(),e=t-Rc;e>1e3&&(Hc-=e,Rc=t)}function Kc(t){Nc||(Lc&&(Lc=clearTimeout(Lc)),t-Fc>24?(t<1/0&&(Lc=setTimeout($c,t-Vc.now()-Hc)),zc&&(zc=clearInterval(zc))):(zc||(Rc=Vc.now(),zc=setInterval(Xc,1e3)),Nc=1,Bc($c)))}function Qc(t,e,n){var r=new qc;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}qc.prototype=Yc.prototype={constructor:qc,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Wc():+n)+(null==e?0:+e),this._next||Ac===this||(Ac?Ac._next=this:Pc=this,Ac=this),this._call=t,this._time=n,Kc()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kc())}};var Zc=Ic("start","end","cancel","interrupt"),Gc=[];function Jc(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,c,f,h;if(1!==n.state)return u();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return Qc(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l0)throw new Error("too late; already scheduled");return n}function ef(t,e){var n=nf(t,e);if(n.state>3)throw new Error("too late; already running");return n}function nf(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function rf(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var of,af=180/Math.PI,sf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uf(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:rf(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:rf(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:rf(t,n)},{i:s-2,x:rf(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Nf(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Nf(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Sf.exec(t))?new Rf(e[1],e[2],e[3],1):(e=Cf.exec(t))?new Rf(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ef.exec(t))?Nf(e[1],e[2],e[3],e[4]):(e=Of.exec(t))?Nf(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Mf.exec(t))?Uf(e[1],e[2]/100,e[3]/100,1):(e=jf.exec(t))?Uf(e[1],e[2]/100,e[3]/100,e[4]):Tf.hasOwnProperty(t)?If(Tf[t]):"transparent"===t?new Rf(NaN,NaN,NaN,0):null}function If(t){return new Rf(t>>16&255,t>>8&255,255&t,1)}function Nf(t,e,n,r){return r<=0&&(t=e=n=NaN),new Rf(t,e,n,r)}function Lf(t){return t instanceof yf||(t=Af(t)),t?new Rf((t=t.rgb()).r,t.g,t.b,t.opacity):new Rf}function zf(t,e,n,r){return 1===arguments.length?Lf(t):new Rf(t,e,n,null==r?1:r)}function Rf(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ff(){return"#".concat(Wf(this.r)).concat(Wf(this.g)).concat(Wf(this.b))}function Hf(){var t=Vf(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(Bf(this.r),", ").concat(Bf(this.g),", ").concat(Bf(this.b)).concat(1===t?")":", ".concat(t,")"))}function Vf(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bf(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wf(t){return((t=Bf(t))<16?"0":"")+t.toString(16)}function Uf(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Yf(t,e,n,r)}function qf(t){if(t instanceof Yf)return new Yf(t.h,t.s,t.l,t.opacity);if(t instanceof yf||(t=Af(t)),!t)return new Yf;if(t instanceof Yf)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&u<1?0:a,new Yf(a,s,u,t.opacity)}function Yf(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function $f(t){return(t=(t||0)%360)<0?t+360:t}function Xf(t){return Math.max(0,Math.min(1,t||0))}function Kf(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Qf(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}vf(yf,Af,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Df,formatHex:Df,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qf(this).formatHsl()},formatRgb:Pf,toString:Pf}),vf(Rf,zf,gf(yf,{brighter:function(t){return t=null==t?bf:Math.pow(bf,t),new Rf(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?mf:Math.pow(mf,t),new Rf(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new Rf(Bf(this.r),Bf(this.g),Bf(this.b),Vf(this.opacity))},displayable:function(){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:Ff,formatHex:Ff,formatHex8:function(){return"#".concat(Wf(this.r)).concat(Wf(this.g)).concat(Wf(this.b)).concat(Wf(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:Hf,toString:Hf})),vf(Yf,(function(t,e,n,r){return 1===arguments.length?qf(t):new Yf(t,e,n,null==r?1:r)}),gf(yf,{brighter:function(t){return t=null==t?bf:Math.pow(bf,t),new Yf(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?mf:Math.pow(mf,t),new Yf(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),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 Rf(Kf(t>=240?t-240:t+120,i,r),Kf(t,i,r),Kf(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new Yf($f(this.h),Xf(this.s),Xf(this.l),Vf(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=Vf(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat($f(this.h),", ").concat(100*Xf(this.s),"%, ").concat(100*Xf(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var Zf=function(t){return function(){return t}};function Gf(t,e){return function(n){return t+n*e}}function Jf(t){return 1===(t=+t)?th:function(e,n){return n-e?function(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)}}(e,n,t):Zf(isNaN(e)?n:e)}}function th(t,e){var n=e-t;return n?Gf(t,n):Zf(isNaN(t)?e:t)}var eh=function t(e){var n=Jf(e);function r(t,e){var r=n((t=zf(t)).r,(e=zf(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=th(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function nh(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=ro&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:rf(n,r)})),o=ih.lastIndex;return o=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?tf:ef;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var kh=Cc.prototype.constructor;function Sh(t){return function(){this.style.removeProperty(t)}}function Ch(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Eh(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Ch(t,o,n)),r}return o._value=e,o}function Oh(t){return function(e){this.textContent=t.call(this,e)}}function Mh(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Oh(r)),e}return r._value=t,r}var jh=0;function Th(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Dh(){return++jh}var Ph=Cc.prototype;Th.prototype=function(t){return Cc().transition(t)}.prototype=b({constructor:Th,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=cl(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)}))},Cc.prototype.transition=function(t){var e,n;t instanceof Th?(e=t._id,t=t._name):(e=Dh(),(n=Ah).time=Wc(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o=0?(o>=Rh?10:o>=Fh?5:o>=Hh?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rh?10:o>=Fh?5:o>=Hh?2:1)}function Bh(t,e){return null==t||null==e?NaN:te?1:t>=e?0:NaN}function Wh(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function Uh(t){var e,n,r;function i(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;n(t[a],r)<0?i=a+1:o=a}while(i2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(i>>1;n(t[a],r)<=0?i=a+1:o=a}while(ie&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?ad:od,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(s,a.map(t),rf)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ed),c()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=td,c()},f.clamp=function(t){return arguments.length?(l=!!t||rd,c()):l!==rd},f.interpolate=function(t){return arguments.length?(u=t,c()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,c()}}function ld(){return ud()(rd,rd)}function cd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var fd,hd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dd(t){if(!(e=hd.exec(t)))throw new Error("invalid format: "+t);var e;return new pd({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]})}function pd(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function vd(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 gd(t){return(t=vd(Math.abs(t)))?t[1]:NaN}function yd(t,e){var n=vd(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")}dd.prototype=pd.prototype,pd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var md={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return yd(100*t,e)},r:yd,s:function(t,e){var n=vd(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(fd=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vd(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function bd(t){return t}var _d,xd,wd,kd=Array.prototype.map,Sd=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Cd(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?bd:(e=kd.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?bd:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(kd.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"\u2212":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=dd(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,g=t.precision,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):md[m]||(void 0===g&&(g=12),y=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===h?o:/[%p]/.test(m)?u:"",x=md[m],w=/[defgprs%]/.test(m);function k(t){var i,o,u,h=b,k=_;if("c"===m)k=x(t)+k,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),g),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0===+t&&"+"!==f&&(S=!1),h=(S?"("===f?f:l:"-"===f||"("===f?"":f)+h,k=("s"===m?Sd[8+fd/3]:"")+k+(S&&"("===f?")":""),w)for(i=-1,o=t.length;++i(u=t.charCodeAt(i))||u>57){k=(46===u?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var C=h.length+t.length+k.length,E=C>1)+h+t+k+E.slice(C);break;default:t=E+h+t+k}return s(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var n=f(((t=dd(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(gd(e)/3))),i=Math.pow(10,-r),o=Sd[8+r/3];return function(t){return n(i*t)+o}}}}function Ed(t,e,n,r){var i,o=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Rh?i*=10:o>=Fh?i*=5:o>=Hh&&(i*=2),e0)return[t];if((r=e0){var u=Math.round(t/a),l=Math.round(e/a);for(u*ae&&--l,o=new Array(i=l-u+1);++se&&--f,o=new Array(i=f-c+1);++s0;){if((i=Vh(u,l,n))===r)return o[a]=u,o[s]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function Md(){var t=ld();return t.copy=function(){return sd(t,Md())},cd.apply(t,arguments),Od(t)}function jd(t){return"string"===typeof t?new kc([[document.querySelector(t)]],[document.documentElement]):new kc([[t]],wc)}_d=Cd({thousands:",",grouping:[3],currency:["$",""]}),xd=_d.format,wd=_d.formatPrefix;var Td=Math.PI,Dd=2*Td,Pd=1e-6,Ad=Dd-Pd;function Id(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Nd(){return new Id}Id.prototype=Nd.prototype={constructor:Id,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,l=o-t,c=a-e,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>Pd)if(Math.abs(c*s-u*l)>Pd&&i){var h=n-o,d=r-a,p=s*s+u*u,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Td-Math.acos((p+f-v)/(2*g*y)))/2),b=m/y,_=m/g;Math.abs(b-1)>Pd&&(this._+="L"+(t+b*l)+","+(e+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+a,l=e+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Pd||Math.abs(this._y1-l)>Pd)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Dd+Dd),f>Ad?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>Pd&&(this._+="A"+n+","+n+",0,"+ +(f>=Td)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Ld=Nd,zd=Array.prototype.slice;function Rd(t){return function(){return t}}function Fd(t){this._context=t}function Hd(t){return new Fd(t)}function Vd(t){return t[0]}function Bd(t){return t[1]}function Wd(t,e){var n=Rd(!0),r=null,i=Hd,o=null;function a(a){var s,u,l,c=(a=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}(a)).length,f=!1;for(null==r&&(o=i(l=Ld())),s=0;s<=c;++s)!(s4*o?o=i/4:i=4*o;var a=this.node,s=Md().domain([-o,o]).range([0,this.height]),u=Md().domain([-2,i]).range([0,this.width]),l=Xd(qd).source((function(t){return[u(t.source[0]),s(t.source[1])]})).target((function(t){return[u(t.target[0]),s(t.target[1])]})),c=[[0,0],[0,7],[7,3.5]];jd(a).append("defs").append("marker").attr("id","arrow").attr("viewBox",[0,0,7,7]).attr("refX",7).attr("refY",3.5).attr("markerWidth",7).attr("markerHeight",7).attr("orient","auto-start-reverse").attr("fill",this.arrowColor).attr("stroke",this.arrowColor).append("path").attr("d",Wd()(c)),jd(a).selectAll("rect").data(n).enter().append("rect").attr("x",(function(t){return u(t.x)})).attr("y",(function(t){return s(t.y)})).attr("rx",u(.1)-u(0)).attr("ry",s(.1)-s(0)).attr("width",(function(t){return u(t.width)-u(0)})).attr("height",(function(t){return s(t.height)-s(0)})).style("fill",(function(t){return t.fill})).style("stroke",(function(t){return t.stroke})).style("stroke-width",(function(t){return t["stroke-width"]})),jd(a).selectAll("text").data(e).enter().append("text").text((function(t){return t.text})).attr("font-size",(function(t){return s(t.size)-s(0)+"px"})).attr("fill",(function(t){return t.fill})).style("text-anchor","middle").attr("transform",(function(t){return"translate(".concat(u(t.x),",").concat(s(t.y),"), rotate(").concat(t.angle,")")})).attr("font-family","sans-serif"),jd(a).selectAll(null).data(r).join("path").attr("d",l).attr("marker-end","url(#arrow)").attr("fill","none").attr("stroke",this.arrowColor)}},{key:"render",value:function(){var t=this;return(0,nu.jsx)("svg",{ref:function(e){return t.node=e},viewBox:"0 0 ".concat(this.width," ").concat(this.height),style:{width:"100%",height:"auto"}})}}],[{key:"deviceText",value:function(t){return"device"in t?t.device:"filename"in t?t.filename:t.type}}]),r}(y.Component);function Gd(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Jd="function"===typeof Symbol&&Symbol.observable||"@@observable",tp=function(){return Math.random().toString(36).substring(7).split("").join(".")},ep={INIT:"@@redux/INIT"+tp(),REPLACE:"@@redux/REPLACE"+tp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tp()}};function np(t){if("object"!==typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function rp(t,e,n){var r;if("function"===typeof e&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(Gd(0));if("function"===typeof e&&"undefined"===typeof n&&(n=e,e=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(Gd(1));return n(rp)(t,e)}if("function"!==typeof t)throw new Error(Gd(2));var i=t,o=e,a=[],s=a,u=!1;function l(){s===a&&(s=a.slice())}function c(){if(u)throw new Error(Gd(3));return o}function f(t){if("function"!==typeof t)throw new Error(Gd(4));if(u)throw new Error(Gd(5));var e=!0;return l(),s.push(t),function(){if(e){if(u)throw new Error(Gd(6));e=!1,l();var n=s.indexOf(t);s.splice(n,1),a=null}}}function h(t){if(!np(t))throw new Error(Gd(7));if("undefined"===typeof t.type)throw new Error(Gd(8));if(u)throw new Error(Gd(9));try{u=!0,o=i(o,t)}finally{u=!1}for(var e=a=s,n=0;n2?n-2:0),i=2;i0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,o=n.clientOffset,a=n.getSourceClientOffset,s=t.getMonitor(),u=t.getRegistry();t.dispatch(gp(o)),bp(e,s,u);var l=wp(e,s);if(null!=l){var c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");_p(a),c=a(l)}t.dispatch(gp(o,c));var f=u.getSource(l),h=f.beginDrag(s,l);if(null!=h){xp(h),u.pinSource(l);var d=u.getSourceType(l);return{type:fp,payload:{itemType:d,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}else t.dispatch(yp)}}function bp(t,e,n){ip(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){ip(n.getSource(t),"Expected sourceIds to be registered.")}))}function _p(t){ip("function"===typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function xp(t){ip(up(t),"Item must be an object.")}function wp(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function kp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sp(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();Ep(n);var i=Mp(n);i.forEach((function(i,o){var a=Op(i,o,r,n),s={type:pp,payload:{dropResult:Sp({},e,a)}};t.dispatch(s)}))}}function Ep(t){ip(t.isDragging(),"Cannot call drop while not dragging."),ip(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Op(t,e,n,r){var i=n.getTarget(t),o=i?i.drop(r,t):void 0;return function(t){ip("undefined"===typeof t||up(t),"Drop result must either be an object or undefined.")}(o),"undefined"===typeof o&&(o=0===e?{}:r.getDropResult()),o}function Mp(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function jp(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){ip(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:vp}}}function Tp(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function Dp(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;Pp(e);var i=e.slice(0),o=t.getMonitor(),a=t.getRegistry(),s=o.getItemType();return Ip(i,a,s),Ap(i,o,a),Np(i,o,a),{type:dp,payload:{targetIds:i,clientOffset:r||null}}}}function Pp(t){ip(Array.isArray(t),"Expected targetIds to be an array.")}function Ap(t,e,n){ip(e.isDragging(),"Cannot call hover while not dragging."),ip(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r=0;r--){var i=t[r];Tp(e.getTargetType(i),n)||t.splice(r,1)}}function Np(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function Lp(t){return function(){if(t.getMonitor().isDragging())return{type:hp}}}var zp=function(){function t(n,r){var i=this;e(this,t),this.isSetUp=!1,this.handleRefCountChange=function(){var t=i.store.getState().refCount>0;i.backend&&(t&&!i.isSetUp?(i.backend.setup(),i.isSetUp=!0):!t&&i.isSetUp&&(i.backend.teardown(),i.isSetUp=!1))},this.store=n,this.monitor=r,n.subscribe(this.handleRefCountChange)}return o(t,[{key:"receiveBackend",value:function(t){this.backend=t}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var t=this,e=this.store.dispatch;var n=function(t){return{beginDrag:mp(t),publishDragSource:Lp(t),hover:Dp(t),drop:Cp(t),endDrag:jp(t)}}(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;i-1}))).length>0);var n}Fp.__IS_NONE__=!0,Hp.__IS_ALL__=!0;var Bp=function(){function t(n,r){e(this,t),this.store=n,this.registry=r}return o(t,[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.handlerIds;ip("function"===typeof t,"listener must be a function."),ip("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var i=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===i||o===i+1&&!Vp(n.dirtyHandlerIds,r)||t()}finally{i=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;ip("function"===typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return ip(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return ip(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&(Tp(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t))}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return ip(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t))}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),i=this.getItemType();if(i&&!Tp(r,i))return!1;var o=this.getTargetIds();if(!o.length)return!1;var a=o.indexOf(t);return n?a===o.length-1:a>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(t){var e,n,r=t.clientOffset,i=t.initialClientOffset,o=t.initialSourceClientOffset;return r&&i&&o?Rp((n=o,{x:(e=r).x+n.x,y:e.y+n.y}),i):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return function(t){var e=t.clientOffset,n=t.initialClientOffset;return e&&n?Rp(e,n):null}(this.store.getState().dragOffset)}}]),t}(),Wp="undefined"!==typeof global?global:self,Up=Wp.MutationObserver||Wp.WebKitMutationObserver;function qp(t){return function(){var e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}var Yp="function"===typeof Up?function(t){var e=1,n=new Up(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:qp,$p=function(){function t(){var n=this;e(this,t),this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=function(){for(var t=n.queue;n.indexn.capacity){for(var r=0,i=t.length-n.index;r1&&void 0!==arguments[1]&&arguments[1];ip(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return ip(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return ip(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return ip(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return av(t)===Gp.SOURCE}},{key:"isTargetId",value:function(t){return av(t)===Gp.TARGET}},{key:"removeSource",value:function(t){var e,n=this;ip(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:ev,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},Qp.enqueueTask(Zp.create(e))}},{key:"removeTarget",value:function(t){ip(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:nv,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);ip(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){ip(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=ov(t);return this.types.set(r,e),t===Gp.SOURCE?this.dragSources.set(r,n):t===Gp.TARGET&&this.dropTargets.set(r,n),r}}]),t}(),lv=function(t,e){return t===e};function cv(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function fv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:lv;if(t.length!==e.length)return!1;for(var r=0;r1?arguments[1]:void 0;switch(t.type){case dp:break;case Jp:case tv:case nv:case ev:return Fp;default:return Hp}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,i=e.prevTargetIds,o=void 0===i?[]:i,a=lp(r,o),s=a.length>0||!fv(r,o);if(!s)return Fp;var u=o[o.length-1],l=r[r.length-1];return u!==l&&(u&&a.push(u),l&&a.push(l)),a}function dv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pv(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:vv,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case cp:case fp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case dp:return cv(t.clientOffset,n.clientOffset)?t:pv({},t,{clientOffset:n.clientOffset});case vp:case pp:return vv;default:return t}}function yv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mv(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:bv,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case fp:return mv({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case hp:return mv({},t,{isSourcePublic:!0});case dp:return mv({},t,{targetIds:n.targetIds});case nv:return-1===t.targetIds.indexOf(n.targetId)?t:mv({},t,{targetIds:sp(t.targetIds,n.targetId)});case pp:return mv({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case vp:return mv({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function xv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Jp:case tv:return t+1;case ev:case nv:return t-1;default:return t}}function wv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function kv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sv(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:hv(t.dirtyHandlerIds,{type:e.type,payload:Sv({},e.payload,{prevTargetIds:ap(t,"dragOperation.targetIds",[])})}),dragOffset:gv(t.dragOffset,e),refCount:xv(t.refCount,e),dragOperation:_v(t.dragOperation,e),stateId:wv(t.stateId)}}function Ev(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Ov(r),o=new Bp(i,new uv(i)),a=new zp(i,o),s=t(a,e,n);return a.receiveBackend(s),a}function Ov(t){var e="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return rp(Cv,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Mv=(0,y.createContext)({dragDropManager:void 0});function jv(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Tv=0,Dv=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Pv=(0,y.memo)((function(t){var e=t.children,n=function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Av(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=e;i[Dv]||(i[Dv]={dragDropManager:Ev(t,e,n,r)});return i[Dv]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(jv(t,["children"])),r=tt(n,2),i=r[0],o=r[1];return(0,y.useEffect)((function(){if(o){var t=Av();return++Tv,function(){0===--Tv&&(t[Dv]=null)}}}),[]),(0,nu.jsx)(Mv.Provider,{value:i,children:e})}));function Av(){return"undefined"!==typeof global?global:window}var Iv=n(9638),Nv="undefined"!==typeof window?y.useLayoutEffect:y.useEffect;function Lv(t,e,n){var r=function(t,e,n){var r=tt((0,y.useState)((function(){return e(t)})),2),i=r[0],o=r[1],a=(0,y.useCallback)((function(){var r=e(t);Iv(i,r)||(o(r),n&&n())}),[i,t,n]);return Nv(a),[i,a]}(t,e,n),i=tt(r,2),o=i[0],a=i[1];return Nv((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(a,{handlerIds:[e]})}),[t,a]),o}function zv(t,e,n){return Lv(e,t||function(){return{}},(function(){return n.reconnect()}))}function Rv(t,e){var n=S(e||[]);return null==e&&"function"!==typeof t&&n.push(t),(0,y.useMemo)((function(){return"function"===typeof t?t():t}),n)}function Fv(t){return(0,y.useMemo)((function(){return t.hooks.dragSource()}),[t])}function Hv(t){return(0,y.useMemo)((function(){return t.hooks.dragPreview()}),[t])}function Vv(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),u=0;u, or turn it into a ")+"drag source or a drop target itself.")}}function Uv(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{var i=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,y.isValidElement)(e)){var r=e;return t(r,n),r}var i=e;Wv(i);var o=n?function(e){return t(e,n)}:t;return Yv(i,o)}}(r);e[n]=function(){return i}}})),e}function qv(t,e){"function"===typeof t?t(e):t.current=e}function Yv(t,e){var n=t.ref;return ip("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or . Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,y.cloneElement)(t,{ref:function(t){qv(n,t),qv(e,t)}}):(0,y.cloneElement)(t,{ref:e})}var $v=function(){function t(n){var r=this;e(this,t),this.hooks=Uv({dragSource:function(t,e){r.clearDragSource(),r.dragSourceOptions=e||null,Bv(t)?r.dragSourceRef=t:r.dragSourceNode=t,r.reconnectDragSource()},dragPreview:function(t,e){r.clearDragPreview(),r.dragPreviewOptions=e||null,Bv(t)?r.dragPreviewRef=t:r.dragPreviewNode=t,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=n}return o(t,[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){var t=this.reconnectDragSource();this.reconnectDragPreview(t)}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return e&&this.disconnectDragSource(),this.handlerId?t?(e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),e):(this.lastConnectedDragSource=t,e):e}},{key:"reconnectDragPreview",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(e?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!Vv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Vv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t}();function Xv(){var t=(0,y.useContext)(Mv).dragDropManager;return ip(null!=t,"Expected drag drop context"),t}var Kv=!1,Qv=!1,Zv=function(){function t(n){e(this,t),this.sourceId=null,this.internalMonitor=n.getMonitor()}return o(t,[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){ip(!Kv,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Kv=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Kv=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;ip(!Qv,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Qv=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Qv=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();var Gv=function(){function t(n,r,i){e(this,t),this.spec=n,this.monitor=r,this.connector=i}return o(t,[{key:"beginDrag",value:function(){var t=this.spec,e=this.monitor,n=null;return null!==(n="object"===typeof t.item?t.item:"function"===typeof t.item?t.item(e):{})&&void 0!==n?n:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"===typeof t.canDrag?t.canDrag:"function"!==typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,r=this.monitor,i=n.isDragging;return i?i(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}]),t}();function Jv(t,e,n){var r=Xv(),i=function(t,e,n){var r=(0,y.useMemo)((function(){return new Gv(t,e,n)}),[e,n]);return(0,y.useEffect)((function(){r.spec=t}),[t]),r}(t,e,n),o=function(t){return(0,y.useMemo)((function(){var e=t.type;return ip(null!=e,"spec.type must be defined"),e}),[t])}(t);Nv((function(){if(null!=o){var t=function(t,e,n){var r=n.getRegistry(),i=r.addSource(t,e);return[i,function(){return r.removeSource(i)}]}(o,i,r),a=tt(t,2),s=a[0],u=a[1];return e.receiveHandlerId(s),n.receiveHandlerId(s),u}}),[r,e,n,i,o])}function tg(t,e){var n=Rv(t,e);ip(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r=function(){var t=Xv();return(0,y.useMemo)((function(){return new Zv(t)}),[t])}(),i=function(t,e){var n=Xv(),r=(0,y.useMemo)((function(){return new $v(n.getBackend())}),[n]);return Nv((function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}}),[r,t]),Nv((function(){return r.dragPreviewOptions=e||null,r.reconnect(),function(){return r.disconnectDragPreview()}}),[r,e]),r}(n.options,n.previewOptions);return Jv(n,r,i),[zv(n.collect,r,i),Fv(i),Hv(i)]}function eg(t){return(0,y.useMemo)((function(){return t.hooks.dropTarget()}),[t])}var ng=function(){function t(n){var r=this;e(this,t),this.hooks=Uv({dropTarget:function(t,e){r.clearDropTarget(),r.dropTargetOptions=e,Bv(t)?r.dropTargetRef=t:r.dropTargetNode=t,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=n}return o(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Vv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t}();var rg=!1,ig=function(){function t(n){e(this,t),this.targetId=null,this.internalMonitor=n.getMonitor()}return o(t,[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;ip(!rg,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return rg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{rg=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t}();var og=function(){function t(n,r){e(this,t),this.spec=n,this.monitor=r}return o(t,[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}]),t}();function ag(t,e,n){var r=Xv(),i=function(t,e){var n=(0,y.useMemo)((function(){return new og(t,e)}),[e]);return(0,y.useEffect)((function(){n.spec=t}),[t]),n}(t,e),o=function(t){var e=t.accept;return(0,y.useMemo)((function(){return ip(null!=t.accept,"accept must be defined"),Array.isArray(e)?e:[e]}),[e])}(t);Nv((function(){var t=function(t,e,n){var r=n.getRegistry(),i=r.addTarget(t,e);return[i,function(){return r.removeTarget(i)}]}(o,i,r),a=tt(t,2),s=a[0],u=a[1];return e.receiveHandlerId(s),n.receiveHandlerId(s),u}),[r,e,i,n,o.map((function(t){return t.toString()})).join("|")])}function sg(t,e){var n=Rv(t,e),r=function(){var t=Xv();return(0,y.useMemo)((function(){return new ig(t)}),[t])}(),i=function(t){var e=Xv(),n=(0,y.useMemo)((function(){return new ng(e.getBackend())}),[e]);return Nv((function(){return n.dropTargetOptions=t||null,n.reconnect(),function(){return n.disconnectDropTarget()}}),[t]),n}(n.options);return ag(n,r,i),[zv(n.collect,r,i),eg(i)]}var ug=n(9553),lg=n.n(ug);function cg(t){var e=null;return function(){return null==e&&(e=t()),e}}var fg,hg=function(){function t(n){e(this,t),this.entered=[],this.isNodeInDocument=n}return o(t,[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var i=[];return n.forEach((function(t){return i.push(t)})),i}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),t}(),dg=function(){function t(n){e(this,t),this.config=n,this.item={},this.initializeExposedProperties()}return o(t,[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){var i=e.config.exposeProperties[r];null!=i&&(n[r]={value:i(t,e.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}]),t}(),pg="__NATIVE_FILE__",vg="__NATIVE_URL__",gg="__NATIVE_TEXT__",yg="__NATIVE_HTML__";function mg(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}var bg=(b(fg={},pg,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),b(fg,yg,{exposeProperties:{html:function(t,e){return mg(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),b(fg,vg,{exposeProperties:{urls:function(t,e){return mg(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),b(fg,gg,{exposeProperties:{text:function(t,e){return mg(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),fg);function _g(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(bg).filter((function(t){var n=bg[t];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}var xg=cg((function(){return/firefox/i.test(navigator.userAgent)})),wg=cg((function(){return Boolean(window.safari)})),kg=function(){function t(n,r){e(this,t);for(var i=n.length,o=[],a=0;a
t))return n[s];l=s-1}}var f=t-e[a=Math.max(0,l)],h=f*f;return n[a]+r[a]*f+i[a]*h+o[a]*f*h}}]),t}();function Sg(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function Cg(t){return{x:t.clientX,y:t.clientY}}function Eg(t,e,n,r,i){var o=function(t){var e;return"IMG"===t.nodeName&&(xg()||!(null===(e=document.documentElement)||void 0===e?void 0:e.contains(t)))}(e),a=Sg(o?t:e),s={x:n.x-a.x,y:n.y-a.y},u=t.offsetWidth,l=t.offsetHeight,c=r.anchorX,f=r.anchorY,h=function(t,e,n,r){var i=t?e.width:n,o=t?e.height:r;return wg()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,e,u,l),d=h.dragPreviewWidth,p=h.dragPreviewHeight,v=i.offsetX,g=i.offsetY,y=0===g||g;return{x:0===v||v?v:new kg([0,.5,1],[s.x,s.x/u*d,s.x+d-u]).interpolate(c),y:y?g:function(){var t=new kg([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(f);return wg()&&o&&(t+=(window.devicePixelRatio-1)*p),t}()}}var Og=function(){function t(n,r){e(this,t),this.ownerDocument=null,this.globalContext=n,this.optionsArgs=r}return o(t,[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}},{key:"document",get:function(){var t;return(null===(t=this.globalContext)||void 0===t?void 0:t.document)?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}]),t}();function Mg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jg(t){for(var e=1;e0&&o.actions.hover(e,{clientOffset:Cg(t)}),e.some((function(t){return o.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=o.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(t){var e;(o.dragOverTargetIds=[],o.isDraggingNativeItem())&&(null===(e=o.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer))},this.handleTopDragOver=function(t){var e=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));o.altKeyPressed=t.altKey,o.lastClientOffset=Cg(t),o.scheduleHover(e),(e||[]).some((function(t){return o.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(t){o.isDraggingNativeItem()&&t.preventDefault(),o.enterLeaveCounter.leave(t.target)&&(o.isDraggingNativeItem()&&setTimeout((function(){return o.endDragNativeItem()}),0),o.cancelHover())},this.handleTopDropCapture=function(t){var e;(o.dropTargetIds=[],o.isDraggingNativeItem())?(t.preventDefault(),null===(e=o.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):_g(t.dataTransfer)&&t.preventDefault();o.enterLeaveCounter.reset()},this.handleTopDrop=function(t){var e=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(e,{clientOffset:Cg(t)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag(),o.cancelHover()},this.handleSelectStart=function(t){var e=t.target;"function"===typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))},this.options=new Og(r,i),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new hg(this.isNodeInDocument)}return o(n,[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var i=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",i),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",i),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},i=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",i),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",i),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return jg({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return jg({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(t).some((function(n){return t[n]===e}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=bg[t];if(!n)throw new Error("native type ".concat(t," has no configuration"));var r=new dg(n);return r.loadDataTransfer(e),r}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){var t;if(this.currentDragSourceNode=null,this.rootElement)null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}]),n}(),Dg=function(t,e,n){return new Tg(t,e,n)};function Pg(t){return(0,nu.jsx)(Pv,{backend:Dg,children:t.children})}function Ag(t,e,n){var r=tt(tg((function(){return{type:t,item:e,options:{dropEffect:"move"},collect:function(t){return{isDragging:t.isDragging()}}}})),3),i=r[0].isDragging,o=r[1],a=r[2],s=tt(sg((function(){return{accept:t,collect:function(t){return{canDrop:t.isOver()&&!lg()(t.getItem(),e)}},drop:function(t){return n(t,e)}}})),2);return{isDragging:i,canDrop:s[0].canDrop,drag:o,preview:a,drop:s[1]}}function Ig(t){var e=t.isDragging,n=t.canDrop,r=t.preview,i=t.drop,o=t.children;return(0,nu.jsx)("div",{ref:r,className:"dropTargetParent",style:{width:"100%"},children:(0,nu.jsx)("div",{ref:i,style:{width:"100%"},className:"horizontally-spaced-content".concat(e?" dragSource":"").concat(n?" dropTarget":""),children:o})})}function Ng(t){return(0,nu.jsx)("span",{ref:t.drag,style:{display:"flex",alignItems:"center"},children:(0,nu.jsx)(nt(),{path:"M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z",size:"24px",className:"drag-handle","data-tip":t.tooltip})})}var Lg=32,zg=31,Rg={};function Fg(t){t&&(t.value=!0)}function Hg(){}function Vg(t){return void 0===t.size&&(t.size=t.__iterate(Wg)),t.size}function Bg(t,e){if("number"!==typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?Vg(t)+e:e}function Wg(){return!0}function Ug(t,e,n){return(0===t&&!Xg(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function qg(t,e){return $g(t,e,0)}function Yg(t,e){return $g(t,e,e)}function $g(t,e,n){return void 0===t?n:Xg(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function Xg(t){return t<0||0===t&&1/t===-1/0}var Kg="@@__IMMUTABLE_ITERABLE__@@";function Qg(t){return Boolean(t&&t[Kg])}var Zg="@@__IMMUTABLE_KEYED__@@";function Gg(t){return Boolean(t&&t[Zg])}var Jg="@@__IMMUTABLE_INDEXED__@@";function ty(t){return Boolean(t&&t[Jg])}function ey(t){return Gg(t)||ty(t)}var ny=function(t){return Qg(t)?t:Cy(t)},ry=function(t){function e(t){return Gg(t)?t:Ey(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ny),iy=function(t){function e(t){return ty(t)?t:Oy(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ny),oy=function(t){function e(t){return Qg(t)&&!ey(t)?t:My(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(ny);ny.Keyed=ry,ny.Indexed=iy,ny.Set=oy;var ay="@@__IMMUTABLE_SEQ__@@";function sy(t){return Boolean(t&&t[ay])}var uy="@@__IMMUTABLE_RECORD__@@";function ly(t){return Boolean(t&&t[uy])}function cy(t){return Qg(t)||ly(t)}var fy="@@__IMMUTABLE_ORDERED__@@";function hy(t){return Boolean(t&&t[fy])}var dy="function"===typeof Symbol&&Symbol.iterator,py="@@iterator",vy=dy||py,gy=function(t){this.next=t};function yy(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function my(){return{value:void 0,done:!0}}function by(t){return!!Array.isArray(t)||!!wy(t)}function _y(t){return t&&"function"===typeof t.next}function xy(t){var e=wy(t);return e&&e.call(t)}function wy(t){var e=t&&(dy&&t[dy]||t["@@iterator"]);if("function"===typeof e)return e}gy.prototype.toString=function(){return"[Iterator]"},gy.KEYS=0,gy.VALUES=1,gy.ENTRIES=2,gy.prototype.inspect=gy.prototype.toSource=function(){return this.toString()},gy.prototype[vy]=function(){return this};var ky=Object.prototype.hasOwnProperty;function Sy(t){return!(!Array.isArray(t)&&"string"!==typeof t)||t&&"object"===typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Cy=function(t){function e(t){return null===t||void 0===t?Ay():cy(t)?t.toSeq():function(t){var e=Ly(t);if(e)return function(t){var e=wy(t);return e&&e===t.entries}(t)?e.fromEntrySeq():function(t){var e=wy(t);return e&&e===t.keys}(t)?e.toSetSeq():e;if("object"===typeof t)return new Ty(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var o=n[e?r-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var r=n.length,i=0;return new gy((function(){if(i===r)return{value:void 0,done:!0};var o=n[e?r-++i:i++];return yy(t,o[0],o[1])}))}return this.__iteratorUncached(t,e)},e}(ny),Ey=function(t){function e(t){return null===t||void 0===t?Ay().toKeyedSeq():Qg(t)?Gg(t)?t.toSeq():t.fromEntrySeq():ly(t)?t.toSeq():Iy(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Cy),Oy=function(t){function e(t){return null===t||void 0===t?Ay():Qg(t)?Gg(t)?t.entrySeq():t.toIndexedSeq():ly(t)?t.toSeq().entrySeq():Ny(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Cy),My=function(t){function e(t){return(Qg(t)&&!ey(t)?t:Oy(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Cy);Cy.isSeq=sy,Cy.Keyed=Ey,Cy.Set=My,Cy.Indexed=Oy,Cy.prototype[ay]=!0;var jy=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[Bg(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,r=n.length,i=0;i!==r;){var o=e?r-++i:i++;if(!1===t(n[o],o,this))break}return i},e.prototype.__iterator=function(t,e){var n=this._array,r=n.length,i=0;return new gy((function(){if(i===r)return{value:void 0,done:!0};var o=e?r-++i:i++;return yy(t,o,n[o])}))},e}(Oy),Ty=function(t){function e(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return ky.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length,o=0;o!==i;){var a=r[e?i-++o:o++];if(!1===t(n[a],a,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length,o=0;return new gy((function(){if(o===i)return{value:void 0,done:!0};var a=r[e?i-++o:o++];return yy(t,a,n[a])}))},e}(Ey);Ty.prototype[fy]=!0;var Dy,Py=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=xy(this._collection),r=0;if(_y(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=xy(this._collection);if(!_y(n))return new gy(my);var r=0;return new gy((function(){var e=n.next();return e.done?e:yy(t,r++,e.value)}))},e}(Oy);function Ay(){return Dy||(Dy=new jy([]))}function Iy(t){var e=Ly(t);if(e)return e.fromEntrySeq();if("object"===typeof t)return new Ty(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function Ny(t){var e=Ly(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Ly(t){return Sy(t)?new jy(t):by(t)?new Py(t):void 0}var zy="@@__IMMUTABLE_MAP__@@";function Ry(t){return Boolean(t&&t[zy])}function Fy(t){return Ry(t)&&hy(t)}function Hy(t){return Boolean(t&&"function"===typeof t.equals&&"function"===typeof t.hashCode)}function Vy(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"===typeof t.valueOf&&"function"===typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(Hy(t)&&Hy(e)&&t.equals(e))}var By="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function Wy(t){return t>>>1&1073741824|3221225471&t}var Uy=Object.prototype.valueOf;function qy(t){if(null==t)return Yy(t);if("function"===typeof t.hashCode)return Wy(t.hashCode(t));var e,n=(e=t).valueOf!==Uy&&"function"===typeof e.valueOf?e.valueOf(e):e;if(null==n)return Yy(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(t){if(t!==t||t===1/0)return 0;var e=0|t;e!==t&&(e^=4294967295*t);for(;t>4294967295;)e^=t/=4294967295;return Wy(e)}(n);case"string":return n.length>nm?function(t){var e=om[t];void 0===e&&(e=$y(t),im===rm&&(im=0,om={}),im++,om[t]=e);return e}(n):$y(n);case"object":case"function":return function(t){var e;if(Gy&&void 0!==(e=Zy.get(t)))return e;if(void 0!==(e=t[em]))return e;if(!Ky){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[em]))return e;if(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t),void 0!==e)return e}if(e=Qy(),Gy)Zy.set(t,e);else{if(void 0!==Xy&&!1===Xy(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Ky)Object.defineProperty(t,em,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[em]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[em]=e}}return e}(n);case"symbol":return function(t){var e=Jy[t];if(void 0!==e)return e;return e=Qy(),Jy[t]=e,e}(n);default:if("function"===typeof n.toString)return $y(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function Yy(t){return null===t?1108378658:1108378659}function $y(t){for(var e=0,n=0;n=0&&(l.get=function(e,n){return(e=Bg(this,e))>=0&&es)return{value:void 0,done:!0};var t=i.next();return r||1===e||t.done?t:yy(e,u-1,0===e?void 0:t.value[1],t)}))},l}function vm(t,e,n,r){var i=Cm(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate((function(t,o,l){if(!s||!(s=e.call(n,t,o,l)))return u++,i(t,r?o:u-1,a)})),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),u=!0,l=0;return new gy((function(){var t,o,c;do{if((t=s.next()).done)return r||1===i?t:yy(i,l++,0===i?void 0:t.value[1],t);var f=t.value;o=f[0],c=f[1],u&&(u=e.call(n,c,o,a))}while(u);return 2===i?t:yy(i,o,c,t)}))},i}function gm(t,e){var n=Gg(t),r=[t].concat(e).map((function(t){return Qg(t)?n&&(t=ry(t)):t=n?Iy(t):Ny(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===r.length)return t;if(1===r.length){var i=r[0];if(i===t||n&&Gg(i)||ty(t)&&ty(i))return i}var o=new jy(r);return n?o=o.toKeyedSeq():ty(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=r.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),o}function ym(t,e,n){var r=Cm(t);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function t(u,l){u.__iterate((function(o,u){return(!e||l0}function xm(t,e,n,r){var i=Cm(t),o=new jy(n).map((function(t){return t.size}));return i.size=r?o.max():o.min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(1,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map((function(t){return t=ny(t),xy(i?t.reverse():t)})),a=0,s=!1;return new gy((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=r?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:yy(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},i}function wm(t,e){return t===e?t:sy(t)?e:t.constructor(e)}function km(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Sm(t){return Gg(t)?ry:ty(t)?iy:oy}function Cm(t){return Object.create((Gg(t)?Ey:ty(t)?Oy:My).prototype)}function Em(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Cy.prototype.cacheResult.call(this)}function Om(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t0;)e[n]=arguments[n+1];if("function"!==typeof t)throw new TypeError("Invalid merger function: "+t);return Gm(this,e,t)}function Gm(t,e,n){for(var r=[],i=0;i0;)e[n]=arguments[n+1];return Jm(this,e,t)}function rb(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Vm(this,t,xb(),(function(t){return tb(t,e)}))}function ib(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Vm(this,t,xb(),(function(t){return Jm(t,e)}))}function ob(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function ab(){return this.__ownerID?this:this.__ensureOwner(new Hg)}function sb(){return this.__ensureOwner()}function ub(){return this.__altered}var lb=function(t){function e(e){return null===e||void 0===e?xb():Ry(e)&&!hy(e)?e:xb().withMutations((function(n){var r=t(e);Tm(r.size),r.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return xb().withMutations((function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return wb(this,t,e)},e.prototype.remove=function(t){return wb(this,t,Rg)},e.prototype.deleteAll=function(t){var e=ny(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):xb()},e.prototype.sort=function(t){return $b(mm(this,t))},e.prototype.sortBy=function(t,e){return $b(mm(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(r){r.forEach((function(i,o){r.set(o,t.call(e,i,o,n))}))}))},e.prototype.__iterator=function(t,e){return new yb(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate((function(e){return r++,t(e[1],e[0],n)}),e),r},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_b(this.size,this._root,t,this.__hash):0===this.size?xb():(this.__ownerID=t,this.__altered=!1,this)},e}(ry);lb.isMap=Ry;var cb=lb.prototype;cb[zy]=!0,cb.delete=cb.remove,cb.removeAll=cb.deleteAll,cb.setIn=Um,cb.removeIn=cb.deleteIn=Ym,cb.update=Xm,cb.updateIn=Km,cb.merge=cb.concat=Qm,cb.mergeWith=Zm,cb.mergeDeep=eb,cb.mergeDeepWith=nb,cb.mergeIn=rb,cb.mergeDeepIn=ib,cb.withMutations=ob,cb.wasAltered=ub,cb.asImmutable=sb,cb["@@transducer/init"]=cb.asMutable=ab,cb["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},cb["@@transducer/result"]=function(t){return t.asImmutable()};var fb=function(t,e){this.ownerID=t,this.entries=e};fb.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o=Mb)return function(t,e,n,r){t||(t=new Hg);for(var i=new vb(t,qy(n),[n,r]),o=0;o>>t)&zg),o=this.bitmap;return 0===(o&i)?r:this.nodes[Eb(o&i-1)].get(t+5,e,n,r)},hb.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=qy(r));var s=(0===e?n:n>>>e)&zg,u=1<=jb)return function(t,e,n,r,i){for(var o=0,a=new Array(Lg),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new db(t,o+1,a)}(t,h,l,s,p);if(c&&!p&&2===h.length&&Sb(h[1^f]))return h[1^f];if(c&&p&&1===h.length&&Sb(p))return p;var v=t&&t===this.ownerID,g=c?p?l:l^u:l|u,y=c?p?Ob(h,f,p,v):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,a=0;a>>t)&zg,o=this.nodes[i];return o?o.get(t+5,e,n,r):r},db.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=qy(r));var s=(0===e?n:n>>>e)&zg,u=i===Rg,l=this.nodes,c=l[s];if(u&&!c)return this;var f=kb(c,t,e+5,n,r,i,o,a);if(f===c)return this;var h=this.count;if(c){if(!f&&--h>>n)&zg,s=(0===n?r:r>>>n)&zg,u=a===s?[Cb(t,e,n+5,r,i)]:(o=new vb(e,r,i),a>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Ob(t,e,n,r){var i=r?t:Mm(t);return i[e]=n,i}var Mb=8,jb=16,Tb=8,Db="@@__IMMUTABLE_LIST__@@";function Pb(t){return Boolean(t&&t[Db])}var Ab=function(t){function e(e){var n=Hb();if(null===e||void 0===e)return n;if(Pb(e))return e;var r=t(e),i=r.size;return 0===i?n:(Tm(i),i>0&&i=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?Ub(t,e).set(0,n):Ub(t,0,e+1).set(e,n)}));e+=t._origin;var r=t._tail,i=t._root,o={value:!1};e>=qb(t._capacity)?r=Vb(r,t.__ownerID,0,e,n,o):i=Vb(i,t.__ownerID,t._level,e,n,o);if(!o.value)return t;if(t.__ownerID)return t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t;return Fb(t._origin,t._capacity,t._level,i,r)}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Hb()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){Ub(n,0,e+t.length);for(var r=0;r>>e&zg;if(r>=this.array.length)return new Nb([],t);var i,o=0===r;if(e>0){var a=this.array[r];if((i=a&&a.removeBefore(t,e-5,n))===a&&o)return this}if(o&&!i)return this;var s=Bb(this,t);if(!o)for(var u=0;u>>e&zg;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-5,n))===o&&i===this.array.length-1)return this}var a=Bb(this,t);return a.array.splice(i+1),r&&(a.array[i]=r),a};var Lb,zb={};function Rb(t,e){var n=t._origin,r=t._capacity,i=qb(r),o=t._tail;return a(t._root,t._level,0);function a(t,s,u){return 0===s?function(t,a){var s=a===i?o&&o.array:t&&t.array,u=a>n?0:n-a,l=r-a;l>Lg&&(l=Lg);return function(){if(u===l)return zb;var t=e?--l:u++;return s&&s[t]}}(t,u):function(t,i,o){var s,u=t&&t.array,l=o>n?0:n-o>>i,c=1+(r-o>>i);c>Lg&&(c=Lg);return function(){for(;;){if(s){var t=s();if(t!==zb)return t;s=null}if(l===c)return zb;var n=e?--c:l++;s=a(u&&u[n],i-5,o+(n<>>n&zg,u=t&&s0){var l=t&&t.array[s],c=Vb(l,e,n-5,r,i,o);return c===l?t:((a=Bb(t,e)).array[s]=c,a)}return u&&t.array[s]===i?t:(o&&Fg(o),a=Bb(t,e),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function Bb(t,e){return e&&t&&e===t.ownerID?t:new Nb(t?t.array.slice():[],e)}function Wb(t,e){if(e>=qb(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&zg],r-=5;return n}}function Ub(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new Hg,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,l=t._root,c=0;a+c<0;)l=new Nb(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=5);c&&(a+=c,i+=c,s+=c,o+=c);for(var f=qb(o),h=qb(s);h>=1<f?new Nb([],r):d;if(d&&h>f&&a5;g-=5){var y=f>>>g&zg;v=v.array[y]=Bb(v.array[y],r)}v.array[f>>>5&zg]=d}if(s=h)a-=h,s-=h,u=5,l=null,p=p&&p.removeBefore(r,0,a);else if(a>i||h>>u&zg;if(m!==h>>>u&zg)break;m&&(c+=(1<i&&(l=l.removeBefore(r,u,a-c)),l&&h>>5<<5}var Yb,$b=function(t){function e(t){return null===t||void 0===t?Kb():Fy(t)?t:Kb().withMutations((function(e){var n=ry(t);Tm(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Kb()},e.prototype.set=function(t,e){return Qb(this,t,e)},e.prototype.remove=function(t){return Qb(this,t,Rg)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Xb(e,n,t,this.__hash):0===this.size?Kb():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(lb);function Xb(t,e,n,r){var i=Object.create($b.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Kb(){return Yb||(Yb=Xb(xb(),Hb()))}function Qb(t,e,n){var r,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(n===Rg){if(!u)return t;a.size>=Lg&&a.size>=2*o.size?(r=(i=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t.__altered=!0,t):Xb(r,i)}$b.isOrderedMap=Fy,$b.prototype[fy]=!0,$b.prototype.delete=$b.prototype.remove;var Zb="@@__IMMUTABLE_STACK__@@";function Gb(t){return Boolean(t&&t[Zb])}var Jb=function(t){function e(t){return null===t||void 0===t?r_():Gb(t)?t:r_().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=Bg(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:t[r],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):n_(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Gb(e))return e;Tm(e.size);var n=this.size,r=this._head;return e.__iterate((function(t){n++,r={value:t,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):n_(n,r)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):r_()},e.prototype.slice=function(e,n){if(Ug(e,n,this.size))return this;var r=qg(e,this.size);if(Yg(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var i=this.size-r,o=this._head;r--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):n_(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?n_(this.size,this._head,t,this.__hash):0===this.size?r_():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new jy(this.toArray()).__iterate((function(e,r){return t(e,r,n)}),e);for(var r=0,i=this._head;i&&!1!==t(i.value,r++,this);)i=i.next;return r},e.prototype.__iterator=function(t,e){if(e)return new jy(this.toArray()).__iterator(t,e);var n=0,r=this._head;return new gy((function(){if(r){var e=r.value;return r=r.next,yy(t,n++,e)}return{value:void 0,done:!0}}))},e}(iy);Jb.isStack=Gb;var t_,e_=Jb.prototype;function n_(t,e,n,r){var i=Object.create(e_);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function r_(){return t_||(t_=n_(0))}e_[Zb]=!0,e_.shift=e_.pop,e_.unshift=e_.push,e_.unshiftAll=e_.pushAll,e_.withMutations=ob,e_.wasAltered=ub,e_.asImmutable=sb,e_["@@transducer/init"]=e_.asMutable=ab,e_["@@transducer/step"]=function(t,e){return t.unshift(e)},e_["@@transducer/result"]=function(t){return t.asImmutable()};var i_="@@__IMMUTABLE_SET__@@";function o_(t){return Boolean(t&&t[i_])}function a_(t){return o_(t)&&hy(t)}function s_(t,e){if(t===e)return!0;if(!Qg(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||Gg(t)!==Gg(e)||ty(t)!==ty(e)||hy(t)!==hy(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!ey(t);if(hy(t)){var r=t.entries();return e.every((function(t,e){var i=r.next().value;return i&&Vy(i[1],t)&&(n||Vy(i[0],e))}))&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"===typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var a=!0,s=e.__iterate((function(e,r){if(n?!t.has(e):i?!Vy(e,t.get(r,Rg)):!Vy(t.get(r,Rg),e))return a=!1,!1}));return a&&t.size===s}function u_(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function l_(t){if(!t||"object"!==typeof t)return t;if(!Qg(t)){if(!Im(t))return t;t=Cy(t)}if(Gg(t)){var e={};return t.__iterate((function(t,n){e[n]=l_(t)})),e}var n=[];return t.__iterate((function(t){n.push(l_(t))})),n}var c_=function(t){function e(e){return null===e||void 0===e?v_():o_(e)&&!hy(e)?e:v_().withMutations((function(n){var r=t(e);Tm(r.size),r.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(ry(t).keySeq())},e.intersect=function(t){return(t=ny(t).toArray()).length?h_.intersect.apply(e(t.pop()),t):v_()},e.union=function(t){return(t=ny(t).toArray()).length?h_.union.apply(e(t.pop()),t):v_()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return d_(this,this._map.set(t,t))},e.prototype.remove=function(t){return d_(this,this._map.remove(t))},e.prototype.clear=function(){return d_(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,r=!1,i=d_(this,this._map.mapEntries((function(i){var o=i[1],a=t.call(e,o,o,n);return a!==o&&(r=!0),[a,a]}),e));return r?i:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var r=0;r=0&&e=0&&n>>-15,461845907),e=By(e<<13|e>>>-13,5),e=By((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Wy((e=By(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+A_(qy(t),qy(e))|0}:function(t,e){r=r+A_(qy(t),qy(e))|0}:e?function(t){r=31*r+qy(t)|0}:function(t){r=r+qy(t)|0}),r)}(this))}});var w_=ny.prototype;w_[Kg]=!0,w_[vy]=w_.values,w_.toJSON=w_.toArray,w_.__toStringMapper=Nm,w_.inspect=w_.toSource=function(){return this.toString()},w_.chain=w_.flatMap,w_.contains=w_.includes,u_(ry,{flip:function(){return wm(this,cm(this))},mapEntries:function(t,e){var n=this,r=0;return wm(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],r++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return wm(this,this.toSeq().flip().map((function(r,i){return t.call(e,r,i,n)})).flip())}});var k_=ry.prototype;k_[Zg]=!0,k_[vy]=w_.entries,k_.toJSON=x_,k_.__toStringMapper=function(t,e){return Nm(e)+": "+Nm(t)},u_(iy,{toKeyedSeq:function(){return new am(this,!1)},filter:function(t,e){return wm(this,dm(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return wm(this,hm(this,!1))},slice:function(t,e){return wm(this,pm(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=qg(t,t<0?this.count():this.size);var r=this.slice(0,t);return wm(this,1===n?r:r.concat(Mm(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return wm(this,ym(this,t,!1))},get:function(t,e){return(t=Bg(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=Bg(this,t))>=0&&(void 0!==this.size?this.size===1/0||te?-1:0}function A_(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}C_.has=w_.includes,C_.contains=C_.includes,C_.keys=C_.values,u_(Ey,k_),u_(Oy,S_),u_(My,C_);var I_=function(t){function e(t){return null===t||void 0===t?R_():a_(t)?t:R_().withMutations((function(e){var n=oy(t);Tm(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(ry(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(c_);I_.isOrderedSet=a_;var N_,L_=I_.prototype;function z_(t,e){var n=Object.create(L_);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function R_(){return N_||(N_=z_(Kb()))}L_[fy]=!0,L_.zip=S_.zip,L_.zipWith=S_.zipWith,L_.zipAll=S_.zipAll,L_.__empty=R_,L_.__make=z_;var F_=function(t,e){var n;!function(t){if(ly(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(cy(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!==typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var r=function(o){var a=this;if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var s=Object.keys(t),u=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var l=0;l0,onClick:function(){return t.moveStepUp(i)}}),(0,nu.jsx)(vu,{icon:M,tooltip:"Move this step down",enabled:i+10,onClick:function(){return function(t){return l((function(e){return V(e.names,t)}))}(i)}}),(0,nu.jsx)(vu,{icon:M,tooltip:"Move filter down",buttonSize:"small",enabled:i+1=s()||(0,t.onSelect)(e,t.selectedIndex,n)}function o(t){for(var e=s(),n=t+1;nt;)if(!_x(u(e)))return e;return t}function s(){return vx(t.children)}function u(t){return e.current["tabs-"+t]}function l(t){var e=t.target;do{if(c(e)){if(_x(e))return;return void i([].slice.call(e.parentNode.children).filter(bx).indexOf(e),t)}}while(null!=(e=e.parentNode))}function c(t){if(!bx(t))return!1;var e=t.parentElement;do{if(e===r.current)return!0;if(e.getAttribute("data-rttabs"))break;e=e.parentElement}while(e);return!1}t.children;var f=t.className,h=(t.disabledTabClassName,t.domRef),d=(t.focus,t.forceRenderTabPanel,t.onSelect,t.selectedIndex,t.selectedTabClassName,t.selectedTabPanelClassName,t.environment,t.disableUpDownKeys,function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,yx));return y.createElement("div",Object.assign({},d,{className:px(f),onClick:l,onKeyDown:function(e){var n=t.direction,r=t.disableUpDownKeys;if(c(e.target)){var f=t.selectedIndex,h=!1,d=!1;"Space"!==e.code&&32!==e.keyCode&&"Enter"!==e.code&&13!==e.keyCode||(h=!0,d=!1,l(e)),"ArrowLeft"!==e.code&&37!==e.keyCode&&(r||38!==e.keyCode&&"ArrowUp"!==e.code)?"ArrowRight"!==e.code&&39!==e.keyCode&&(r||40!==e.keyCode&&"ArrowDown"!==e.code)?35===e.keyCode||"End"===e.code?(f=function(){for(var t=s();t--;)if(!_x(u(t)))return t;return null}(),h=!0,d=!0):36!==e.keyCode&&"Home"!==e.code||(f=function(){for(var t=s(),e=0;e=0||(i[n]=t[n]);return i}(t,Cx);return y.createElement("ul",Object.assign({},r,{className:px(n),role:"tablist"}),e)};Ex.tabsRole="TabList",Ex.propTypes={},Ex.defaultProps={className:"react-tabs__tab-list"};var Ox=Ex,Mx=["children","className","disabled","disabledClassName","focus","id","selected","selectedClassName","tabIndex","tabRef"];var jx="react-tabs__tab",Tx={className:jx,disabledClassName:jx+"--disabled",focus:!1,id:null,selected:!1,selectedClassName:jx+"--selected"},Dx=function(t){var e,n=(0,y.useRef)(),r=t.children,i=t.className,o=t.disabled,a=t.disabledClassName,s=t.focus,u=t.id,l=t.selected,c=t.selectedClassName,f=t.tabIndex,h=t.tabRef,d=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r