(self.webpackChunk=self.webpackChunk||[]).push([[934],{3930:function(W,Y,f){"use strict";var E=f(67294);function R(P){var D=(0,E.useRef)(P);return D.current=P,D}Y.Z=R},45210:function(W,Y,f){"use strict";var E=f(67294),R=f(3930),P=f(92770),D=f(31663),N=function(k){D.Z&&((0,P.mf)(k)||console.error("useUnmount expected parameter is a function, got ".concat(typeof k)));var v=(0,R.Z)(k);(0,E.useEffect)(function(){return function(){v.current()}},[])};Y.Z=N},92770:function(W,Y,f){"use strict";f.d(Y,{mf:function(){return R}});var E=function(v){return v!==null&&typeof v=="object"},R=function(v){return typeof v=="function"},P=function(v){return typeof v=="string"},D=function(v){return typeof v=="boolean"},N=function(v){return typeof v=="number"},L=function(v){return typeof v>"u"}},31663:function(W,Y){"use strict";var f=!1;Y.Z=f},95507:function(W,Y,f){"use strict";f.d(Y,{ZM:function(){return d},ZP:function(){return A}});var E=f(74902),R=f(87462),P=f(4942),D=f(97685),N=f(71002),L=f(94184),k=f.n(L),v=f(67294),j=f(53124),w=f(88258),M=f(92820),T=f(25378),Z=f(84739),ne=f(11382),fe=f(24308),le=f(21584),Me=f(96159),ze=function(C,a){var i={};for(var p in C)Object.prototype.hasOwnProperty.call(C,p)&&a.indexOf(p)<0&&(i[p]=C[p]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,p=Object.getOwnPropertySymbols(C);$1},Ze=function(){return Fe==="vertical"?!!F:!De()},Be=et("list",p),Ve=_&&_.length>0&&v.createElement("ul",{className:"".concat(Be,"-item-action"),key:"actions"},_.map(function(pt,dt){return v.createElement("li",{key:"".concat(Be,"-item-action-").concat(dt)},pt,dt!==_.length-1&&v.createElement("em",{className:"".concat(Be,"-item-action-split")}))})),it=Ce?"div":"li",ft=v.createElement(it,(0,R.Z)({},me,Ce?{}:{ref:i},{className:k()("".concat(Be,"-item"),(0,P.Z)({},"".concat(Be,"-item-no-flex"),!Ze()),he)}),Fe==="vertical"&&F?[v.createElement("div",{className:"".concat(Be,"-item-main"),key:"content"},$,Ve),v.createElement("div",{className:"".concat(Be,"-item-extra"),key:"extra"},F)]:[$,Ve,(0,Me.Tm)(F,{key:"extra"})]);return Ce?v.createElement(le.Z,{ref:i,flex:1,style:oe},ft):ft},ee=(0,v.forwardRef)(Te);ee.Meta=Ae;var Ge=ee,g=function(C,a){var i={};for(var p in C)Object.prototype.hasOwnProperty.call(C,p)&&a.indexOf(p)<0&&(i[p]=C[p]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,p=Object.getOwnPropertySymbols(C);$S&&(l.current=S);var I=p?v.createElement("div",{className:"".concat(tt,"-pagination")},v.createElement(Z.Z,(0,R.Z)({},l,{onChange:ht,onShowSizeChange:Dt}))):null,b=(0,E.Z)(De);p&&De.length>(l.current-1)*l.pageSize&&(b=(0,E.Z)(De).splice((l.current-1)*l.pageSize,l.pageSize));var V=Object.keys(Ie||{}).some(function(be){return["xs","sm","md","lg","xl","xxl"].includes(be)}),Q=(0,T.Z)(V),re=v.useMemo(function(){for(var be=0;be0){var de=b.map(function(be,Oe){return lt(be,Oe)}),Ee=v.Children.map(de,function(be,Oe){return v.createElement("div",{key:jt[Oe],style:K},be)});te=Ie?v.createElement(M.Z,{gutter:Ie.gutter},Ee):v.createElement("ul",{className:"".concat(tt,"-items")},de)}else!ae&&!bt&&(te=yt(tt,ye||w.Z));var pe=l.position||"bottom",we=v.useMemo(function(){return{grid:Ie,itemLayout:Ce}},[JSON.stringify(Ie),Ce]);return v.createElement(d.Provider,{value:we},v.createElement("div",(0,R.Z)({className:Yt},Vt),(pe==="top"||pe==="both")&&I,Be&&v.createElement("div",{className:"".concat(tt,"-header")},Be),v.createElement(ne.Z,(0,R.Z)({},Ye),te,ae),Ve&&v.createElement("div",{className:"".concat(tt,"-footer")},Ve),Fe||(pe==="bottom"||pe==="both")&&I))}y.Item=Ge;var A=y},9669:function(W,Y,f){W.exports=f(51609)},55448:function(W,Y,f){"use strict";var E=f(64867),R=f(36026),P=f(4372),D=f(15327),N=f(94097),L=f(84109),k=f(67985),v=f(85061),j=f(45655),w=f(65263);W.exports=function(T){return new Promise(function(ne,fe){var le=T.data,Me=T.headers,ze=T.responseType,Ae;function Te(){T.cancelToken&&T.cancelToken.unsubscribe(Ae),T.signal&&T.signal.removeEventListener("abort",Ae)}E.isFormData(le)&&delete Me["Content-Type"];var ee=new XMLHttpRequest;if(T.auth){var Ge=T.auth.username||"",g=T.auth.password?unescape(encodeURIComponent(T.auth.password)):"";Me.Authorization="Basic "+btoa(Ge+":"+g)}var d=N(T.baseURL,T.url);ee.open(T.method.toUpperCase(),D(d,T.params,T.paramsSerializer),!0),ee.timeout=T.timeout;function h(){if(!!ee){var A="getAllResponseHeaders"in ee?L(ee.getAllResponseHeaders()):null,C=!ze||ze==="text"||ze==="json"?ee.responseText:ee.response,a={data:C,status:ee.status,statusText:ee.statusText,headers:A,config:T,request:ee};R(function(p){ne(p),Te()},function(p){fe(p),Te()},a),ee=null}}if("onloadend"in ee?ee.onloadend=h:ee.onreadystatechange=function(){!ee||ee.readyState!==4||ee.status===0&&!(ee.responseURL&&ee.responseURL.indexOf("file:")===0)||setTimeout(h)},ee.onabort=function(){!ee||(fe(v("Request aborted",T,"ECONNABORTED",ee)),ee=null)},ee.onerror=function(){fe(v("Network Error",T,null,ee)),ee=null},ee.ontimeout=function(){var C=T.timeout?"timeout of "+T.timeout+"ms exceeded":"timeout exceeded",a=T.transitional||j.transitional;T.timeoutErrorMessage&&(C=T.timeoutErrorMessage),fe(v(C,T,a.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",ee)),ee=null},E.isStandardBrowserEnv()){var y=(T.withCredentials||k(d))&&T.xsrfCookieName?P.read(T.xsrfCookieName):void 0;y&&(Me[T.xsrfHeaderName]=y)}"setRequestHeader"in ee&&E.forEach(Me,function(C,a){typeof le>"u"&&a.toLowerCase()==="content-type"?delete Me[a]:ee.setRequestHeader(a,C)}),E.isUndefined(T.withCredentials)||(ee.withCredentials=!!T.withCredentials),ze&&ze!=="json"&&(ee.responseType=T.responseType),typeof T.onDownloadProgress=="function"&&ee.addEventListener("progress",T.onDownloadProgress),typeof T.onUploadProgress=="function"&&ee.upload&&ee.upload.addEventListener("progress",T.onUploadProgress),(T.cancelToken||T.signal)&&(Ae=function(A){!ee||(fe(!A||A&&A.type?new w("canceled"):A),ee.abort(),ee=null)},T.cancelToken&&T.cancelToken.subscribe(Ae),T.signal&&(T.signal.aborted?Ae():T.signal.addEventListener("abort",Ae))),le||(le=null),ee.send(le)})}},51609:function(W,Y,f){"use strict";var E=f(64867),R=f(91849),P=f(30321),D=f(47185),N=f(45655);function L(v){var j=new P(v),w=R(P.prototype.request,j);return E.extend(w,P.prototype,j),E.extend(w,j),w.create=function(T){return L(D(v,T))},w}var k=L(N);k.Axios=P,k.Cancel=f(65263),k.CancelToken=f(14972),k.isCancel=f(26502),k.VERSION=f(97288).version,k.all=function(j){return Promise.all(j)},k.spread=f(8713),k.isAxiosError=f(16268),W.exports=k,W.exports.default=k},65263:function(W){"use strict";function Y(f){this.message=f}Y.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Y.prototype.__CANCEL__=!0,W.exports=Y},14972:function(W,Y,f){"use strict";var E=f(65263);function R(P){if(typeof P!="function")throw new TypeError("executor must be a function.");var D;this.promise=new Promise(function(k){D=k});var N=this;this.promise.then(function(L){if(!!N._listeners){var k,v=N._listeners.length;for(k=0;k=200&&M<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};R.forEach(["delete","get","head"],function(M){j.headers[M]={}}),R.forEach(["post","put","patch"],function(M){j.headers[M]=R.merge(N)}),W.exports=j},97288:function(W){W.exports={version:"0.23.0"}},91849:function(W){"use strict";W.exports=function(f,E){return function(){for(var P=new Array(arguments.length),D=0;D"u"||(E.isArray(M)?T=T+"[]":M=[M],E.forEach(M,function(ne){E.isDate(ne)?ne=ne.toISOString():E.isObject(ne)&&(ne=JSON.stringify(ne)),v.push(R(T)+"="+R(ne))}))}),k=v.join("&")}if(k){var j=D.indexOf("#");j!==-1&&(D=D.slice(0,j)),D+=(D.indexOf("?")===-1?"?":"&")+k}return D}},7303:function(W){"use strict";W.exports=function(f,E){return E?f.replace(/\/+$/,"")+"/"+E.replace(/^\/+/,""):f}},4372:function(W,Y,f){"use strict";var E=f(64867);W.exports=E.isStandardBrowserEnv()?function(){return{write:function(D,N,L,k,v,j){var w=[];w.push(D+"="+encodeURIComponent(N)),E.isNumber(L)&&w.push("expires="+new Date(L).toGMTString()),E.isString(k)&&w.push("path="+k),E.isString(v)&&w.push("domain="+v),j===!0&&w.push("secure"),document.cookie=w.join("; ")},read:function(D){var N=document.cookie.match(new RegExp("(^|;\\s*)("+D+")=([^;]*)"));return N?decodeURIComponent(N[3]):null},remove:function(D){this.write(D,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},91793:function(W){"use strict";W.exports=function(f){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(f)}},16268:function(W){"use strict";W.exports=function(f){return typeof f=="object"&&f.isAxiosError===!0}},67985:function(W,Y,f){"use strict";var E=f(64867);W.exports=E.isStandardBrowserEnv()?function(){var P=/(msie|trident)/i.test(navigator.userAgent),D=document.createElement("a"),N;function L(k){var v=k;return P&&(D.setAttribute("href",v),v=D.href),D.setAttribute("href",v),{href:D.href,protocol:D.protocol?D.protocol.replace(/:$/,""):"",host:D.host,search:D.search?D.search.replace(/^\?/,""):"",hash:D.hash?D.hash.replace(/^#/,""):"",hostname:D.hostname,port:D.port,pathname:D.pathname.charAt(0)==="/"?D.pathname:"/"+D.pathname}}return N=L(window.location.href),function(v){var j=E.isString(v)?L(v):v;return j.protocol===N.protocol&&j.host===N.host}}():function(){return function(){return!0}}()},16016:function(W,Y,f){"use strict";var E=f(64867);W.exports=function(P,D){E.forEach(P,function(L,k){k!==D&&k.toUpperCase()===D.toUpperCase()&&(P[D]=L,delete P[k])})}},84109:function(W,Y,f){"use strict";var E=f(64867),R=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];W.exports=function(D){var N={},L,k,v;return D&&E.forEach(D.split(` `),function(w){if(v=w.indexOf(":"),L=E.trim(w.substr(0,v)).toLowerCase(),k=E.trim(w.substr(v+1)),L){if(N[L]&&R.indexOf(L)>=0)return;L==="set-cookie"?N[L]=(N[L]?N[L]:[]).concat([k]):N[L]=N[L]?N[L]+", "+k:k}}),N}},8713:function(W){"use strict";W.exports=function(f){return function(R){return f.apply(null,R)}}},54875:function(W,Y,f){"use strict";var E=f(97288).version,R={};["object","boolean","number","function","string","symbol"].forEach(function(N,L){R[N]=function(v){return typeof v===N||"a"+(L<1?"n ":" ")+N}});var P={};R.transitional=function(L,k,v){function j(w,M){return"[Axios v"+E+"] Transitional option '"+w+"'"+M+(v?". "+v:"")}return function(w,M,T){if(L===!1)throw new Error(j(M," has been removed"+(k?" in "+k:"")));return k&&!P[M]&&(P[M]=!0,console.warn(j(M," has been deprecated since v"+k+" and will be removed in the near future"))),L?L(w,M,T):!0}};function D(N,L,k){if(typeof N!="object")throw new TypeError("options must be an object");for(var v=Object.keys(N),j=v.length;j-- >0;){var w=v[j],M=L[w];if(M){var T=N[w],Z=T===void 0||M(T,w,N);if(Z!==!0)throw new TypeError("option "+w+" must be "+Z);continue}if(k!==!0)throw Error("Unknown option "+w)}}W.exports={assertOptions:D,validators:R}},64867:function(W,Y,f){"use strict";var E=f(91849),R=Object.prototype.toString;function P(h){return R.call(h)==="[object Array]"}function D(h){return typeof h>"u"}function N(h){return h!==null&&!D(h)&&h.constructor!==null&&!D(h.constructor)&&typeof h.constructor.isBuffer=="function"&&h.constructor.isBuffer(h)}function L(h){return R.call(h)==="[object ArrayBuffer]"}function k(h){return typeof FormData<"u"&&h instanceof FormData}function v(h){var y;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?y=ArrayBuffer.isView(h):y=h&&h.buffer&&h.buffer instanceof ArrayBuffer,y}function j(h){return typeof h=="string"}function w(h){return typeof h=="number"}function M(h){return h!==null&&typeof h=="object"}function T(h){if(R.call(h)!=="[object Object]")return!1;var y=Object.getPrototypeOf(h);return y===null||y===Object.prototype}function Z(h){return R.call(h)==="[object Date]"}function ne(h){return R.call(h)==="[object File]"}function fe(h){return R.call(h)==="[object Blob]"}function le(h){return R.call(h)==="[object Function]"}function Me(h){return M(h)&&le(h.pipe)}function ze(h){return typeof URLSearchParams<"u"&&h instanceof URLSearchParams}function Ae(h){return h.trim?h.trim():h.replace(/^\s+|\s+$/g,"")}function Te(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ee(h,y){if(!(h===null||typeof h>"u"))if(typeof h!="object"&&(h=[h]),P(h))for(var A=0,C=h.length;A"u"&&!N.call(d,a))&&(C===d&&(C=M(d)),v(C)==="Map"?C.set(a,p):C[a]=p)}}),C},g}();Y.Context=T;var Z={$push:function(g,d,h){return fe(d,h,"$push"),g.length?d.concat(g):d},$unshift:function(g,d,h){return fe(d,h,"$unshift"),g.length?g.concat(d):d},$splice:function(g,d,h,y){return Me(d,h),g.forEach(function(A){ze(A),d===y&&A.length&&(d=M(y)),L.apply(d,A)}),d},$set:function(g,d,h){return Te(h),g},$toggle:function(g,d){le(g,"$toggle");var h=g.length?M(d):d;return g.forEach(function(y){h[y]=!d[y]}),h},$unset:function(g,d,h,y){return le(g,"$unset"),g.forEach(function(A){Object.hasOwnProperty.call(d,A)&&(d===y&&(d=M(y)),delete d[A])}),d},$add:function(g,d,h,y){return Ge(d,"$add"),le(g,"$add"),v(d)==="Map"?g.forEach(function(A){var C=A[0],a=A[1];d===y&&d.get(C)!==a&&(d=M(y)),d.set(C,a)}):g.forEach(function(A){d===y&&!d.has(A)&&(d=M(y)),d.add(A)}),d},$remove:function(g,d,h,y){return Ge(d,"$remove"),le(g,"$remove"),g.forEach(function(A){d===y&&d.has(A)&&(d=M(y)),d.delete(A)}),d},$merge:function(g,d,h,y){return ee(d,g),w(g).forEach(function(A){g[A]!==d[A]&&(d===y&&(d=M(y)),d[A]=g[A])}),d},$apply:function(g,d){return Ae(g),g(d)}},ne=new T;Y.isEquals=ne.update.isEquals,Y.extend=ne.extend,Y.default=ne.update,Y.default.default=W.exports=j(Y.default,Y);function fe(g,d,h){D(Array.isArray(g),function(){return"update(): expected target of "+R(h)+" to be an array; got "+R(g)+"."}),le(d[h],h)}function le(g,d){D(Array.isArray(g),function(){return"update(): expected spec of "+R(d)+" to be an array; got "+R(g)+". Did you forget to wrap your parameter in an array?"})}function Me(g,d){D(Array.isArray(g),function(){return"Expected $splice target to be an array; got "+R(g)}),ze(d.$splice)}function ze(g){D(Array.isArray(g),function(){return"update(): expected spec of $splice to be an array of arrays; got "+R(g)+". Did you forget to wrap your parameters in an array?"})}function Ae(g){D(typeof g=="function",function(){return"update(): expected spec of $apply to be a function; got "+R(g)+"."})}function Te(g){D(Object.keys(g).length===1,function(){return"Cannot have more than one key in an object with $set"})}function ee(g,d){D(d&&typeof d=="object",function(){return"update(): $merge expects a spec of type 'object'; got "+R(d)}),D(g&&typeof g=="object",function(){return"update(): $merge expects a target of type 'object'; got "+R(g)})}function Ge(g,d){var h=v(g);D(h==="Map"||h==="Set",function(){return"update(): "+R(d)+" expects a target of type Set or Map; got "+R(h)})}},73453:function(W,Y,f){"use strict";f.d(Y,{Z:function(){return Yt}});var E=f(67294),R=f(94184),P=f.n(R),D=f(48555);function N(l,S){var I=Object.keys(l);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(l);S&&(b=b.filter(function(V){return Object.getOwnPropertyDescriptor(l,V).enumerable})),I.push.apply(I,b)}return I}function L(l){for(var S=1;S"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ge(l){return Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},Ge(l)}var g=20;function d(l){return"touches"in l?l.touches[0].pageY:l.pageY}var h=function(l){le(I,l);var S=ze(I);function I(){var b;Z(this,I);for(var V=arguments.length,Q=new Array(V),re=0;rete},b}return fe(I,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(V){V.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var V=this.state,Q=V.dragging,re=V.visible,K=this.props.prefixCls,te=this.getSpinHeight(),de=this.getTop(),Ee=this.showScroll(),pe=Ee&&re;return E.createElement("div",{ref:this.scrollbarRef,className:P()("".concat(K,"-scrollbar"),T({},"".concat(K,"-scrollbar-show"),Ee)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:pe?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},E.createElement("div",{ref:this.thumbRef,className:P()("".concat(K,"-scrollbar-thumb"),T({},"".concat(K,"-scrollbar-thumb-moving"),Q)),style:{width:"100%",height:te,top:de,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),I}(E.Component);function y(l){var S=l.children,I=l.setRef,b=E.useCallback(function(V){I(V)},[]);return E.cloneElement(S,{ref:b})}function A(l,S,I,b,V,Q){var re=Q.getKey;return l.slice(S,I+1).map(function(K,te){var de=S+te,Ee=V(K,de,{}),pe=re(K);return E.createElement(y,{key:pe,setRef:function(be){return b(K,be)}},Ee)})}var C=f(34203);function a(l,S){if(!(l instanceof S))throw new TypeError("Cannot call a class as a function")}function i(l,S){for(var I=0;Il.length)&&(S=l.length);for(var I=0,b=new Array(S);Iat&&(Nt="bottom")}}se!==null&&se!==l.current.scrollTop&&re(se)}te.current=(0,w.Z)(function(){gt&&Q(),$e(xe-1,Nt)})}};Oe(3)}}}function De(l,S,I,b){var V=I-l,Q=S-I,re=Math.min(V,Q)*2;if(b<=re){var K=Math.floor(b/2);return b%2?I+K+1:I-K}return V>Q?I-(b-Q):I+(b-V)}function Ze(l,S,I){var b=l.length,V=S.length,Q,re;if(b===0&&V===0)return null;bl.length)&&(S=l.length);for(var I=0,b=new Array(S);I"u"?"undefined":Vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),dn=nn,St=function(l,S){var I=(0,E.useRef)(!1),b=(0,E.useRef)(null);function V(){clearTimeout(b.current),I.current=!0,b.current=setTimeout(function(){I.current=!1},50)}var Q=(0,E.useRef)({top:l,bottom:S});return Q.current.top=l,Q.current.bottom=S,function(re){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,te=re<0&&Q.current.top||re>0&&Q.current.bottom;return K&&te?(clearTimeout(b.current),I.current=!1):(!te||I.current)&&V(),!I.current&&te}};function $t(l,S,I,b){var V=(0,E.useRef)(0),Q=(0,E.useRef)(null),re=(0,E.useRef)(null),K=(0,E.useRef)(!1),te=St(S,I);function de(pe){if(!!l){w.Z.cancel(Q.current);var we=pe.deltaY;V.current+=we,re.current=we,!te(we)&&(dn||pe.preventDefault(),Q.current=(0,w.Z)(function(){var be=K.current?10:1;b(V.current*be),V.current=0}))}}function Ee(pe){!l||(K.current=pe.detail===re.current)}return[de,Ee]}var Ct=f(8410),Ut=14/15;function rn(l,S,I){var b=(0,E.useRef)(!1),V=(0,E.useRef)(0),Q=(0,E.useRef)(null),re=(0,E.useRef)(null),K,te=function(we){if(b.current){var be=Math.ceil(we.touches[0].pageY),Oe=V.current-be;V.current=be,I(Oe)&&we.preventDefault(),clearInterval(re.current),re.current=setInterval(function(){Oe*=Ut,(!I(Oe,!0)||Math.abs(Oe)<=.1)&&clearInterval(re.current)},16)}},de=function(){b.current=!1,K()},Ee=function(we){K(),we.touches.length===1&&!b.current&&(b.current=!0,V.current=Math.ceil(we.touches[0].pageY),Q.current=we.target,Q.current.addEventListener("touchmove",te),Q.current.addEventListener("touchend",de))};K=function(){Q.current&&(Q.current.removeEventListener("touchmove",te),Q.current.removeEventListener("touchend",de))},(0,Ct.Z)(function(){return l&&S.current.addEventListener("touchstart",Ee),function(){var pe;(pe=S.current)===null||pe===void 0||pe.removeEventListener("touchstart",Ee),K(),clearInterval(re.current)}},[l])}var ot=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function nt(){return nt=Object.assign||function(l){for(var S=1;Sl.length)&&(S=l.length);for(var I=0,b=new Array(S);I=0)&&(!Object.prototype.propertyIsEnumerable.call(l,b)||(I[b]=l[b]))}return I}function Ft(l,S){if(l==null)return{};var I={},b=Object.keys(l),V,Q;for(Q=0;Q=0)&&(I[V]=l[V]);return I}var yt=[],tt={overflowY:"auto",overflowAnchor:"none"};function Ye(l,S){var I=l.prefixCls,b=I===void 0?"rc-virtual-list":I,V=l.className,Q=l.height,re=l.itemHeight,K=l.fullHeight,te=K===void 0?!0:K,de=l.style,Ee=l.data,pe=l.children,we=l.itemKey,be=l.virtual,Oe=l.component,$e=Oe===void 0?"div":Oe,xe=l.onScroll,wt=l.onVisibleChange,Rt=lt(l,ot),gt=!!(be!==!1&&Q&&re),Nt=gt&&Ee&&re*Ee.length>Q,Jt=(0,E.useState)(0),Qt=Le(Jt,2),vt=Qt[0],Bt=Qt[1],on=(0,E.useState)(!1),At=Le(on,2),It=At[0],Xt=At[1],se=P()(b,V),rt=Ee||yt,at=(0,E.useRef)(),Pt=(0,E.useRef)(),mn=(0,E.useRef)(),qt=E.useCallback(function(ve){return typeof we=="function"?we(ve):ve==null?void 0:ve[we]},[we]),Sn={getKey:qt};function an(ve){Bt(function(Ne){var Ke;typeof ve=="function"?Ke=ve(Ne):Ke=ve;var _t=O(Ke);return at.current.scrollTop=_t,_t})}var yn=(0,E.useRef)({start:0,end:rt.length}),En=(0,E.useRef)(),Dn=Xe(rt,qt),sn=Le(Dn,1),hn=sn[0];En.current=hn;var Je=Fe(qt,null,null),Lt=Le(Je,4),pn=Lt[0],un=Lt[1],en=Lt[2],Gt=Lt[3],Wt=E.useMemo(function(){if(!gt)return{scrollHeight:void 0,start:0,end:rt.length-1,offset:void 0};if(!Nt){var ve;return{scrollHeight:((ve=Pt.current)===null||ve===void 0?void 0:ve.offsetHeight)||0,start:0,end:rt.length-1,offset:void 0}}for(var Ne=0,Ke,_t,xt,bn=rt.length,r=0;r=vt&&Ke===void 0&&(Ke=r,_t=Ne),c>vt+Q&&xt===void 0&&(xt=r),Ne=c}return Ke===void 0&&(Ke=0,_t=0,xt=Math.ceil(Q/re)),xt===void 0&&(xt=rt.length-1),xt=Math.min(xt+1,rt.length),{scrollHeight:Ne,start:Ke,end:xt,offset:_t}},[Nt,gt,vt,rt,Gt,Q]),zt=Wt.scrollHeight,ln=Wt.start,kt=Wt.end,o=Wt.offset;yn.current.start=ln,yn.current.end=kt;var u=zt-Q,s=(0,E.useRef)(u);s.current=u;function O(ve){var Ne=ve;return Number.isNaN(s.current)||(Ne=Math.min(Ne,s.current)),Ne=Math.max(Ne,0),Ne}var H=vt<=0,z=vt>=u,ue=St(H,z);function ce(ve){var Ne=ve;an(Ne)}function J(ve){var Ne=ve.currentTarget.scrollTop;Ne!==vt&&an(Ne),xe==null||xe(ve)}var Pe=$t(gt,H,z,function(ve){an(function(Ne){var Ke=Ne+ve;return Ke})}),ke=Le(Pe,2),Qe=ke[0],st=ke[1];rn(gt,at,function(ve,Ne){return ue(ve,Ne)?!1:(Qe({preventDefault:function(){},deltaY:ve}),!0)}),(0,Ct.Z)(function(){function ve(Ne){gt&&Ne.preventDefault()}return at.current.addEventListener("wheel",Qe),at.current.addEventListener("DOMMouseScroll",st),at.current.addEventListener("MozMousePixelScroll",ve),function(){at.current&&(at.current.removeEventListener("wheel",Qe),at.current.removeEventListener("DOMMouseScroll",st),at.current.removeEventListener("MozMousePixelScroll",ve))}},[gt]);var qe=et(at,rt,en,re,qt,un,an,function(){var ve;(ve=mn.current)===null||ve===void 0||ve.delayHidden()});E.useImperativeHandle(S,function(){return{scrollTo:qe}}),(0,Ct.Z)(function(){if(wt){var ve=rt.slice(ln,kt+1);wt(ve,rt)}},[ln,kt,rt]);var mt=A(rt,ln,kt,pn,pe,Sn),ge=null;return Q&&(ge=We(ye({},te?"height":"maxHeight",Q),tt),gt&&(ge.overflowY="hidden",It&&(ge.pointerEvents="none"))),E.createElement("div",nt({style:We(We({},de),{},{position:"relative"}),className:se},Rt),E.createElement($e,{className:"".concat(b,"-holder"),style:ge,ref:at,onScroll:J},E.createElement(j,{prefixCls:b,height:zt,offset:o,onInnerResize:un,ref:Pt},mt)),gt&&E.createElement(h,{ref:mn,prefixCls:b,scrollTop:vt,height:Q,scrollHeight:zt,count:rt.length,onScroll:ce,onStartMove:function(){Xt(!0)},onStopMove:function(){Xt(!1)}}))}var bt=E.forwardRef(Ye);bt.displayName="List";var Tt=bt,Yt=Tt},16941:function(W,Y,f){var E=f(51474),R=f(64045),P=f(67294),D=f(2177);function N(g){return g&&g.__esModule?g.default:g}function L(g,d,h,y){Object.defineProperty(g,d,{get:h,set:y,enumerable:!0,configurable:!0})}function k(g,d){return Object.keys(d).forEach(function(h){h==="default"||h==="__esModule"||g.hasOwnProperty(h)||Object.defineProperty(g,h,{enumerable:!0,get:function(){return d[h]}})}),g}L(W.exports,"Sortable",()=>$882b6d93070905b3$re_export$Sortable),L(W.exports,"Direction",()=>$882b6d93070905b3$re_export$Direction),L(W.exports,"DOMRect",()=>$882b6d93070905b3$re_export$DOMRect),L(W.exports,"GroupOptions",()=>$882b6d93070905b3$re_export$GroupOptions),L(W.exports,"MoveEvent",()=>$882b6d93070905b3$re_export$MoveEvent),L(W.exports,"Options",()=>$882b6d93070905b3$re_export$Options),L(W.exports,"PullResult",()=>$882b6d93070905b3$re_export$PullResult),L(W.exports,"PutResult",()=>$882b6d93070905b3$re_export$PutResult),L(W.exports,"SortableEvent",()=>$882b6d93070905b3$re_export$SortableEvent),L(W.exports,"SortableOptions",()=>$882b6d93070905b3$re_export$SortableOptions),L(W.exports,"Utils",()=>$882b6d93070905b3$re_export$Utils),L(W.exports,"ReactSortable",()=>ee);function v(g){g.parentElement!==null&&g.parentElement.removeChild(g)}function j(g,d,h){const y=g.children[h]||null;g.insertBefore(d,y)}function w(g){M(g),T(g)}function M(g){g.forEach(d=>v(d.element))}function T(g){g.forEach(d=>{j(d.parentElement,d.element,d.oldIndex)})}function Z(g,d){const h=Me(g),y={parentElement:g.from};let A=[];switch(h){case"normal":A=[{element:g.item,newIndex:g.newIndex,oldIndex:g.oldIndex,parentElement:g.from}];break;case"swap":const i={element:g.item,oldIndex:g.oldIndex,newIndex:g.newIndex,...y},p={element:g.swapItem,oldIndex:g.newIndex,newIndex:g.oldIndex,...y};A=[i,p];break;case"multidrag":A=g.oldIndicies.map(($,_)=>({element:$.multiDragElement,oldIndex:$.index,newIndex:g.newIndicies[_].index,...y}));break}return ze(A,d)}function ne(g,d){const h=fe(g,d);return le(g,h)}function fe(g,d){const h=[...d];return g.concat().reverse().forEach(y=>h.splice(y.oldIndex,1)),h}function le(g,d,h,y){const A=[...d];return g.forEach(C=>{const a=y&&h&&y(C.item,h);A.splice(C.newIndex,0,a||C.item)}),A}function Me(g){return g.oldIndicies&&g.oldIndicies.length>0?"multidrag":g.swapItem?"swap":"normal"}function ze(g,d){return g.map(y=>({...y,item:d[y.oldIndex]})).sort((y,A)=>y.oldIndex-A.oldIndex)}function Ae(g){const{list:d,setList:h,children:y,tag:A,style:C,className:a,clone:i,onAdd:p,onChange:$,onChoose:_,onClone:F,onEnd:he,onFilter:oe,onRemove:me,onSort:ae,onStart:Ce,onUnchoose:Fe,onUpdate:Ie,onMove:et,onSpill:De,onSelect:Ze,onDeselect:Be,...Ve}=g;return Ve}const Te={dragging:null};class ee extends P.Component{static defaultProps={clone:d=>d};constructor(d){super(d),this.ref=(0,P.createRef)();const h=[...d.list].map(y=>Object.assign(y,{chosen:!1,selected:!1}));d.setList(h,this.sortable,Te),N(D)(!d.plugins,` Plugins prop is no longer supported. Instead, mount it with "Sortable.mount(new MultiDrag())" Please read the updated README.md at https://github.com/SortableJS/react-sortablejs. `)}componentDidMount(){if(this.ref.current===null)return;const d=this.makeOptions();N(E).create(this.ref.current,d)}componentDidUpdate(d){d.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:d,style:h,className:y,id:A}=this.props,C={style:h,className:y,id:A},a=!d||d===null?"div":d;return(0,P.createElement)(a,{ref:this.ref,...C},this.getChildren())}getChildren(){const{children:d,dataIdAttr:h,selectedClass:y="sortable-selected",chosenClass:A="sortable-chosen",dragClass:C="sortable-drag",fallbackClass:a="sortable-falback",ghostClass:i="sortable-ghost",swapClass:p="sortable-swap-highlight",filter:$="sortable-filter",list:_}=this.props;if(!d||d==null)return null;const F=h||"data-id";return P.Children.map(d,(he,oe)=>{if(he===void 0)return;const me=_[oe]||{},{className:ae}=he.props,Ce=typeof $=="string"&&{[$.replace(".","")]:!!me.filtered},Fe=N(R)(ae,{[y]:me.selected,[A]:me.chosen,...Ce});return(0,P.cloneElement)(he,{[F]:he.key,className:Fe})})}get sortable(){const d=this.ref.current;if(d===null)return null;const h=Object.keys(d).find(y=>y.includes("Sortable"));return h?d[h]:null}makeOptions(){const d=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],h=["onChange","onClone","onFilter","onSort"],y=Ae(this.props);return d.forEach(C=>y[C]=this.prepareOnHandlerPropAndDOM(C)),h.forEach(C=>y[C]=this.prepareOnHandlerProp(C)),{...y,onMove:(C,a)=>{const{onMove:i}=this.props,p=C.willInsertAfter||-1;if(!i)return p;const $=i(C,a,this.sortable,Te);return typeof $>"u"?!1:$}}}prepareOnHandlerPropAndDOM(d){return h=>{this.callOnHandlerProp(h,d),this[d](h)}}prepareOnHandlerProp(d){return h=>{this.callOnHandlerProp(h,d)}}callOnHandlerProp(d,h){const y=this.props[h];y&&y(d,this.sortable,Te)}onAdd(d){const{list:h,setList:y,clone:A}=this.props,C=[...Te.dragging.props.list],a=Z(d,C);M(a);const i=le(a,h,d,A).map(p=>Object.assign(p,{selected:!1}));y(i,this.sortable,Te)}onRemove(d){const{list:h,setList:y}=this.props,A=Me(d),C=Z(d,h);T(C);let a=[...h];if(d.pullMode!=="clone")a=fe(C,a);else{let i=C;switch(A){case"multidrag":i=C.map((p,$)=>({...p,element:d.clones[$]}));break;case"normal":i=C.map(p=>({...p,element:d.clone}));break;case"swap":default:N(D)(!0,`mode "${A}" cannot clone. Please remove "props.clone" from when using the "${A}" plugin`)}M(i),C.forEach(p=>{const $=p.oldIndex,_=this.props.clone(p.item,d);a.splice($,1,_)})}a=a.map(i=>Object.assign(i,{selected:!1})),y(a,this.sortable,Te)}onUpdate(d){const{list:h,setList:y}=this.props,A=Z(d,h);M(A),T(A);const C=ne(A,h);return y(C,this.sortable,Te)}onStart(){Te.dragging=this}onEnd(){Te.dragging=null}onChoose(d){const{list:h,setList:y}=this.props,A=h.map((C,a)=>{let i=C;return a===d.oldIndex&&(i=Object.assign(C,{chosen:!0})),i});y(A,this.sortable,Te)}onUnchoose(d){const{list:h,setList:y}=this.props,A=h.map((C,a)=>{let i=C;return a===d.oldIndex&&(i=Object.assign(i,{chosen:!1})),i});y(A,this.sortable,Te)}onSpill(d){const{removeOnSpill:h,revertOnSpill:y}=this.props;h&&!y&&v(d.item)}onSelect(d){const{list:h,setList:y}=this.props,A=h.map(C=>Object.assign(C,{selected:!1}));d.newIndicies.forEach(C=>{const a=C.index;if(a===-1){console.log(`"${d.type}" had indice of "${C.index}", which is probably -1 and doesn't usually happen here.`),console.log(d);return}A[a].selected=!0}),y(A,this.sortable,Te)}onDeselect(d){const{list:h,setList:y}=this.props,A=h.map(C=>Object.assign(C,{selected:!1}));d.newIndicies.forEach(C=>{const a=C.index;a!==-1&&(A[a].selected=!0)}),y(A,this.sortable,Te)}}var Ge={};k(W.exports,Ge)},64045:function(W,Y){var f,E;(function(){"use strict";var R={}.hasOwnProperty;function P(){for(var D=[],N=0;N=0)&&(t[c]=r[c]);return t}function k(r,e){if(r==null)return{};var t=L(r,e),n,c;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(r);for(c=0;c=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function v(r){return j(r)||w(r)||M(r)||Z()}function j(r){if(Array.isArray(r))return T(r)}function w(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function M(r,e){if(!!r){if(typeof r=="string")return T(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return T(r,e)}}function T(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t"&&(e=e.substring(1)),r)try{if(r.matches)return r.matches(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e)}catch{return!1}return!1}}function y(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function A(r,e,t,n){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&h(r,e):h(r,e))||n&&r===t)return r;if(r===t)break}while(r=y(r))}return null}var C=/\s+/g;function a(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var n=(" "+r.className+" ").replace(C," ").replace(" "+e+" "," ");r.className=(n+(t?" "+e:"")).replace(C," ")}}function i(r,e,t){var n=r&&r.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function p(r,e){var t="";if(typeof r=="string")t=r;else do{var n=i(r,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(r=r.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(t)}function $(r,e,t){if(r){var n=r.getElementsByTagName(e),c=0,m=n.length;if(t)for(;c=m:x=c<=m,!x)return n;if(n===_())break;n=Ie(n,!1)}return!1}function oe(r,e,t,n){for(var c=0,m=0,x=r.children;m2&&arguments[2]!==void 0?arguments[2]:{},c=n.evt,m=k(n,rn);Ct.pluginEvent.bind(se)(e,t,R({dragEl:G,parentEl:We,ghostEl:ye,rootEl:Le,nextEl:Et,lastDownEl:jt,cloneEl:Ue,cloneHidden:ht,dragStarted:re,putSortable:Ye,activeSortable:se.active,originalEvent:c,oldIndex:Dt,oldDraggableIndex:Ft,newIndex:lt,newDraggableIndex:yt,hideGhostForTarget:on,unhideGhostForTarget:At,cloneNowHidden:function(){ht=!0},cloneNowShown:function(){ht=!1},dispatchSortableEvent:function(U){nt({sortable:t,name:U,originalEvent:c})}},m))};function nt(r){Ut(R({putSortable:Ye,cloneEl:Ue,targetEl:G,rootEl:Le,oldIndex:Dt,oldDraggableIndex:Ft,newIndex:lt,newDraggableIndex:yt},r))}var G,We,ye,Le,Et,jt,Ue,ht,Dt,lt,Ft,yt,tt,Ye,bt=!1,Tt=!1,Yt=[],l,S,I,b,V,Q,re,K,te,de=!1,Ee=!1,pe,we,be=[],Oe=!1,$e=[],xe=typeof document<"u",wt=Te,Rt=Me||le?"cssFloat":"float",gt=xe&&!ee&&!Te&&"draggable"in document.createElement("div"),Nt=function(){if(!!xe){if(le)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),Jt=function(e,t){var n=i(e),c=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),m=oe(e,0,t),x=oe(e,1,t),U=m&&i(m),B=x&&i(x),X=U&&parseInt(U.marginLeft)+parseInt(U.marginRight)+F(m).width,ie=B&&parseInt(B.marginLeft)+parseInt(B.marginRight)+F(x).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(m&&U.float&&U.float!=="none"){var q=U.float==="left"?"left":"right";return x&&(B.clear==="both"||B.clear===q)?"vertical":"horizontal"}return m&&(U.display==="block"||U.display==="flex"||U.display==="table"||U.display==="grid"||X>=c&&n[Rt]==="none"||x&&n[Rt]==="none"&&X+ie>c)?"vertical":"horizontal"},Qt=function(e,t,n){var c=n?e.left:e.top,m=n?e.right:e.bottom,x=n?e.width:e.height,U=n?t.left:t.top,B=n?t.right:t.bottom,X=n?t.width:t.height;return c===U||m===B||c+x/2===U+X/2},vt=function(e,t){var n;return Yt.some(function(c){var m=c[Xe].options.emptyInsertThreshold;if(!(!m||me(c))){var x=F(c),U=e>=x.left-m&&e<=x.right+m,B=t>=x.top-m&&t<=x.bottom+m;if(U&&B)return n=c}}),n},Bt=function(e){function t(m,x){return function(U,B,X,ie){var q=U.options.group.name&&B.options.group.name&&U.options.group.name===B.options.group.name;if(m==null&&(x||q))return!0;if(m==null||m===!1)return!1;if(x&&m==="clone")return m;if(typeof m=="function")return t(m(U,B,X,ie),x)(U,B,X,ie);var Se=(x?U:B).options.group.name;return m===!0||typeof m=="string"&&m===Se||m.join&&m.indexOf(Se)>-1}}var n={},c=e.group;(!c||P(c)!="object")&&(c={name:c}),n.name=c.name,n.checkPull=t(c.pull,!0),n.checkPut=t(c.put),n.revertClone=c.revertClone,e.group=n},on=function(){!Nt&&ye&&i(ye,"display","none")},At=function(){!Nt&&ye&&i(ye,"display","")};xe&&!ee&&document.addEventListener("click",function(r){if(Tt)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),Tt=!1,!1},!0);var It=function(e){if(G){e=e.touches?e.touches[0]:e;var t=vt(e.clientX,e.clientY);if(t){var n={};for(var c in e)e.hasOwnProperty(c)&&(n[c]=e[c]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Xe]._onDragOver(n)}}},Xt=function(e){G&&G.parentNode[Xe]._isOutsideThisEl(e.target)};function se(r,e){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=e=N({},e),r[Xe]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Jt(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(x,U){x.setData("Text",U.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:se.supportPointer!==!1&&"PointerEvent"in window&&!Ae,emptyInsertThreshold:5};Ct.initializePlugins(this,r,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Bt(e);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=e.forceFallback?!1:gt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(r,"pointerdown",this._onTapStart):(g(r,"mousedown",this._onTapStart),g(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(r,"dragover",this),g(r,"dragenter",this)),Yt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),N(this,Vt())}se.prototype={constructor:se,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(K=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,G):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var t=this,n=this.el,c=this.options,m=c.preventOnFilter,x=e.type,U=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,B=(U||e).target,X=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||B,ie=c.filter;if(Dn(n),!G&&!(/mousedown|pointerdown/.test(x)&&e.button!==0||c.disabled)&&!X.isContentEditable&&!(!this.nativeDraggable&&Ae&&B&&B.tagName.toUpperCase()==="SELECT")&&(B=A(B,c.draggable,n,!1),!(B&&B.animated)&&jt!==B)){if(Dt=ae(B),Ft=ae(B,c.draggable),typeof ie=="function"){if(ie.call(this,e,B,this)){nt({sortable:t,rootEl:X,name:"filter",targetEl:B,toEl:n,fromEl:n}),ot("filter",t,{evt:e}),m&&e.cancelable&&e.preventDefault();return}}else if(ie&&(ie=ie.split(",").some(function(q){if(q=A(X,q.trim(),n,!1),q)return nt({sortable:t,rootEl:q,name:"filter",targetEl:B,fromEl:n,toEl:n}),ot("filter",t,{evt:e}),!0}),ie)){m&&e.cancelable&&e.preventDefault();return}c.handle&&!A(X,c.handle,n,!1)||this._prepareDragStart(e,U,B)}}},_prepareDragStart:function(e,t,n){var c=this,m=c.el,x=c.options,U=m.ownerDocument,B;if(n&&!G&&n.parentNode===m){var X=F(n);if(Le=m,G=n,We=G.parentNode,Et=G.nextSibling,jt=n,tt=x.group,se.dragged=G,l={target:G,clientX:(t||e).clientX,clientY:(t||e).clientY},V=l.clientX-X.left,Q=l.clientY-X.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,G.style["will-change"]="all",B=function(){if(ot("delayEnded",c,{evt:e}),se.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!ze&&c.nativeDraggable&&(G.draggable=!0),c._triggerDragStart(e,t),nt({sortable:c,name:"choose",originalEvent:e}),a(G,x.chosenClass,!0)},x.ignore.split(",").forEach(function(ie){$(G,ie.trim(),Pt)}),g(U,"dragover",It),g(U,"mousemove",It),g(U,"touchmove",It),g(U,"mouseup",c._onDrop),g(U,"touchend",c._onDrop),g(U,"touchcancel",c._onDrop),ze&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),ot("delayStart",this,{evt:e}),x.delay&&(!x.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Me||le))){if(se.eventCanceled){this._onDrop();return}g(U,"mouseup",c._disableDelayedDrag),g(U,"touchend",c._disableDelayedDrag),g(U,"touchcancel",c._disableDelayedDrag),g(U,"mousemove",c._delayedDragTouchMoveHandler),g(U,"touchmove",c._delayedDragTouchMoveHandler),x.supportPointer&&g(U,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(B,x.delay)}else B()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&Pt(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;d(e,"mouseup",this._disableDelayedDrag),d(e,"touchend",this._disableDelayedDrag),d(e,"touchcancel",this._disableDelayedDrag),d(e,"mousemove",this._delayedDragTouchMoveHandler),d(e,"touchmove",this._delayedDragTouchMoveHandler),d(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):t?g(document,"touchmove",this._onTouchMove):g(document,"mousemove",this._onTouchMove):(g(G,"dragend",this),g(Le,"dragstart",this._onDragStart));try{document.selection?sn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(bt=!1,Le&&G){ot("dragStarted",this,{evt:t}),this.nativeDraggable&&g(document,"dragover",Xt);var n=this.options;!e&&a(G,n.dragClass,!1),a(G,n.ghostClass,!0),se.active=this,e&&this._appendGhost(),nt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(S){this._lastX=S.clientX,this._lastY=S.clientY,on();for(var e=document.elementFromPoint(S.clientX,S.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(S.clientX,S.clientY),e!==t);)t=e;if(G.parentNode[Xe]._isOutsideThisEl(e),t)do{if(t[Xe]){var n=void 0;if(n=t[Xe]._onDragOver({clientX:S.clientX,clientY:S.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);At()}},_onTouchMove:function(e){if(l){var t=this.options,n=t.fallbackTolerance,c=t.fallbackOffset,m=e.touches?e.touches[0]:e,x=ye&&p(ye,!0),U=ye&&x&&x.a,B=ye&&x&&x.d,X=wt&&we&&Ce(we),ie=(m.clientX-l.clientX+c.x)/(U||1)+(X?X[0]-be[0]:0)/(U||1),q=(m.clientY-l.clientY+c.y)/(B||1)+(X?X[1]-be[1]:0)/(B||1);if(!se.active&&!bt){if(n&&Math.max(Math.abs(m.clientX-this._lastX),Math.abs(m.clientY-this._lastY))=0&&(nt({rootEl:We,name:"add",toEl:We,fromEl:Le,originalEvent:e}),nt({sortable:this,name:"remove",toEl:We,originalEvent:e}),nt({rootEl:We,name:"sort",toEl:We,fromEl:Le,originalEvent:e}),nt({sortable:this,name:"sort",toEl:We,originalEvent:e})),Ye&&Ye.save()):lt!==Dt&<>=0&&(nt({sortable:this,name:"update",toEl:We,originalEvent:e}),nt({sortable:this,name:"sort",toEl:We,originalEvent:e})),se.active&&((lt==null||lt===-1)&&(lt=Dt,yt=Ft),nt({sortable:this,name:"end",toEl:We,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ot("nulling",this),Le=G=We=ye=Et=Ue=jt=ht=l=S=re=lt=yt=Dt=Ft=K=te=Ye=tt=se.dragged=se.ghost=se.clone=se.active=null,$e.forEach(function(e){e.checked=!0}),$e.length=I=b=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":G&&(this._onDragOver(e),rt(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,c=0,m=n.length,x=this.options;cn.right+c||r.clientX<=n.right&&r.clientY>n.bottom&&r.clientX>=n.left:r.clientX>n.right&&r.clientY>n.top||r.clientX<=n.right&&r.clientY>n.bottom+c}function an(r,e,t,n,c,m,x,U){var B=n?r.clientY:r.clientX,X=n?t.height:t.width,ie=n?t.top:t.left,q=n?t.bottom:t.right,Se=!1;if(!x){if(U&&peie+X*m/2:Bq-pe)return-te}else if(B>ie+X*(1-c)/2&&Bq-X*m/2)?B>ie+X/2?1:-1:0}function yn(r){return ae(G)1&&(J.forEach(function(U){m.addAnimationState({target:U,rect:qe?F(U):x}),dt(U),U.fromRect=x,n.removeAnimationState(U)}),qe=!1,_t(!this.options.removeCloneOnHide,c))},dragOverCompleted:function(t){var n=t.sortable,c=t.isOwner,m=t.insertion,x=t.activeSortable,U=t.parentEl,B=t.putSortable,X=this.options;if(m){if(c&&x._hideClone(),st=!1,X.animation&&J.length>1&&(qe||!c&&!x.options.sort&&!B)){var ie=F(ge,!1,!0,!0);J.forEach(function(Se){Se!==ge&&(pt(Se,ie),U.appendChild(Se))}),qe=!0}if(!c)if(qe||bn(),J.length>1){var q=Ne;x._showClone(n),x.options.animation&&!Ne&&q&&Pe.forEach(function(Se){x.addAnimationState({target:Se,rect:ve}),Se.fromRect=ve,Se.thisAnimationDuration=null})}else x._showClone(n)}},dragOverAnimationCapture:function(t){var n=t.dragRect,c=t.isOwner,m=t.activeSortable;if(J.forEach(function(U){U.thisAnimationDuration=null}),m.options.animation&&!c&&m.multiDrag.isMultiDrag){ve=N({},n);var x=p(ge,!0);ve.top-=x.f,ve.left-=x.e}},dragOverAnimationComplete:function(){qe&&(qe=!1,bn())},drop:function(t){var n=t.originalEvent,c=t.rootEl,m=t.parentEl,x=t.sortable,U=t.dispatchSortableEvent,B=t.oldIndex,X=t.putSortable,ie=X||this.sortable;if(!!n){var q=this.options,Se=m.children;if(!mt)if(q.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),a(ge,q.selectedClass,!~J.indexOf(ge)),~J.indexOf(ge))J.splice(J.indexOf(ge),1),ke=null,Ut({sortable:x,rootEl:c,name:"deselect",targetEl:ge,originalEvent:n});else{if(J.push(ge),Ut({sortable:x,rootEl:c,name:"select",targetEl:ge,originalEvent:n}),n.shiftKey&&ke&&x.el.contains(ke)){var _e=ae(ke),Re=ae(ge);if(~_e&&~Re&&_e!==Re){var He,ut;for(Re>_e?(ut=_e,He=Re):(ut=Re,He=_e+1);ut1){var Ht=F(ge),ct=ae(ge,":not(."+this.options.selectedClass+")");if(!st&&q.animation&&(ge.thisAnimationDuration=null),ie.captureAnimationState(),!st&&(q.animation&&(ge.fromRect=Ht,J.forEach(function(je){if(je.thisAnimationDuration=null,je!==ge){var Kt=qe?F(je):Ht;je.fromRect=Kt,ie.addAnimationState({target:je,rect:Kt})}})),bn(),J.forEach(function(je){Se[ct]?m.insertBefore(je,Se[ct]):m.appendChild(je),ct++}),B===ae(ge))){var Ot=!1;J.forEach(function(je){if(je.sortableIndex!==ae(je)){Ot=!0;return}}),Ot&&U("update")}J.forEach(function(je){dt(je)}),ie.animateAll()}Qe=ie}(c===m||X&&X.lastPutMode!=="clone")&&Pe.forEach(function(je){je.parentNode&&je.parentNode.removeChild(je)})}},nullingGlobal:function(){this.isMultiDrag=mt=!1,Pe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),d(document,"pointerup",this._deselectMultiDrag),d(document,"mouseup",this._deselectMultiDrag),d(document,"touchend",this._deselectMultiDrag),d(document,"keydown",this._checkKeyDown),d(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(typeof mt<"u"&&mt)&&Qe===this.sortable&&!(t&&A(t.target,this.options.draggable,this.sortable.el,!1))&&!(t&&t.button!==0))for(;J.length;){var n=J[0];a(n,this.options.selectedClass,!1),J.shift(),Ut({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},N(r,{pluginName:"multiDrag",utils:{select:function(t){var n=t.parentNode[Xe];!n||!n.options.multiDrag||~J.indexOf(t)||(Qe&&Qe!==n&&(Qe.multiDrag._deselectMultiDrag(),Qe=n),a(t,n.options.selectedClass,!0),J.push(t))},deselect:function(t){var n=t.parentNode[Xe],c=J.indexOf(t);!n||!n.options.multiDrag||!~c||(a(t,n.options.selectedClass,!1),J.splice(c,1))}},eventProperties:function(){var t=this,n=[],c=[];return J.forEach(function(m){n.push({multiDragElement:m,index:m.sortableIndex});var x;qe&&m!==ge?x=-1:qe?x=ae(m,":not(."+t.options.selectedClass+")"):x=ae(m),c.push({multiDragElement:m,index:x})}),{items:v(J),clones:[].concat(Pe),oldIndicies:n,newIndicies:c}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),t==="ctrl"?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function _t(r,e){J.forEach(function(t,n){var c=e.children[t.sortableIndex+(r?Number(n):0)];c?e.insertBefore(t,c):e.appendChild(t)})}function xt(r,e){Pe.forEach(function(t,n){var c=e.children[t.sortableIndex+(r?Number(n):0)];c?e.insertBefore(t,c):e.appendChild(t)})}function bn(){J.forEach(function(r){r!==ge&&r.parentNode&&r.parentNode.removeChild(r)})}se.mount(new ln),se.mount(H,O),Y.default=se},2177:function(W,Y,f){"use strict";f.r(Y),f.d(Y,{default:function(){return P}});var E=!0,R="Invariant failed";function P(D,N){if(!D){if(E)throw new Error(R);var L=typeof N=="function"?N():N,k=L?R+": "+L:R;throw new Error(k)}}},87620:function(W,Y,f){"use strict";f.d(Y,{ZP:function(){return v}});var E=f(67294),R=Object.prototype.hasOwnProperty;function P(w,M,T){for(T of w.keys())if(D(T,M))return T}function D(w,M){var T,Z,ne;if(w===M)return!0;if(w&&M&&(T=w.constructor)===M.constructor){if(T===Date)return w.getTime()===M.getTime();if(T===RegExp)return w.toString()===M.toString();if(T===Array){if((Z=w.length)===M.length)for(;Z--&&D(w[Z],M[Z]););return Z===-1}if(T===Set){if(w.size!==M.size)return!1;for(Z of w)if(ne=Z,ne&&typeof ne=="object"&&(ne=P(M,ne),!ne)||!M.has(ne))return!1;return!0}if(T===Map){if(w.size!==M.size)return!1;for(Z of w)if(ne=Z[0],ne&&typeof ne=="object"&&(ne=P(M,ne),!ne)||!D(Z[1],M.get(ne)))return!1;return!0}if(T===ArrayBuffer)w=new Uint8Array(w),M=new Uint8Array(M);else if(T===DataView){if((Z=w.byteLength)===M.byteLength)for(;Z--&&w.getInt8(Z)===M.getInt8(Z););return Z===-1}if(ArrayBuffer.isView(w)){if((Z=w.byteLength)===M.byteLength)for(;Z--&&w[Z]===M[Z];);return Z===-1}if(!T||typeof w=="object"){Z=0;for(T in w)if(R.call(w,T)&&++Z&&!R.call(M,T)||!(T in M)||!D(w[T],M[T]))return!1;return Object.keys(M).length===Z}}return w!==w&&M!==M}function N(w){if(!w||!w.length)throw new Error("useDeepCompareEffect should not be used with no dependencies. Use React.useEffect instead.");if(w.every(L))throw new Error("useDeepCompareEffect should not be used with dependencies that are all primitive values. Use React.useEffect instead.")}function L(w){return w==null||/^[sbn]/.test(typeof w)}function k(w){var M=E.useRef(w),T=E.useRef(0);return D(w,M.current)||(M.current=w,T.current+=1),E.useMemo(function(){return M.current},[T.current])}function v(w,M){return E.useEffect(w,k(M))}function j(w,M){return React.useEffect(w,k(M))}},14912:function(W,Y,f){"use strict";f.d(Y,{k:function(){return R}});var E=f(34155);function R(D,N,...L){if(P()&&N===void 0)throw new Error("invariant requires an error message argument");if(!D){let k;if(N===void 0)k=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let v=0;k=new Error(N.replace(/%s/g,function(){return L[v++]})),k.name="Invariant Violation"}throw k.framesToPop=1,k}}function P(){return typeof E<"u"&&!0}},46580:function(W,Y,f){"use strict";f.d(Y,{w:function(){return E}});function E(R,P,D,N){let L=D?D.call(N,R,P):void 0;if(L!==void 0)return!!L;if(R===P)return!0;if(typeof R!="object"||!R||typeof P!="object"||!P)return!1;const k=Object.keys(R),v=Object.keys(P);if(k.length!==v.length)return!1;const j=Object.prototype.hasOwnProperty.bind(P);for(let w=0;w"u"&&(s=u,u=void 0),typeof s<"u"){if(typeof s!="function")throw new Error(P(1));return s(Z)(o,u)}if(typeof o!="function")throw new Error(P(2));var H=o,z=u,ue=[],ce=ue,J=!1;function Pe(){ce===ue&&(ce=ue.slice())}function ke(){if(J)throw new Error(P(3));return z}function Qe(ge){if(typeof ge!="function")throw new Error(P(4));if(J)throw new Error(P(5));var ve=!0;return Pe(),ce.push(ge),function(){if(!!ve){if(J)throw new Error(P(6));ve=!1,Pe();var Ke=ce.indexOf(ge);ce.splice(Ke,1),ue=null}}}function st(ge){if(!k(ge))throw new Error(P(7));if(typeof ge.type>"u")throw new Error(P(8));if(J)throw new Error(P(9));try{J=!0,z=H(z,ge)}finally{J=!1}for(var ve=ue=ce,Ne=0;Ne0)return"Unexpected "+(ue.length>1?"keys":"key")+" "+('"'+ue.join('", "')+'" found in '+z+". ")+"Expected to find one of the known reducer keys instead: "+('"'+H.join('", "')+'". Unexpected keys will be ignored.')}function Me(o){Object.keys(o).forEach(function(u){var s=o[u],O=s(void 0,{type:L.INIT});if(typeof O>"u")throw new Error(P(12));if(typeof s(void 0,{type:L.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(P(13))})}function ze(o){for(var u=Object.keys(o),s={},O=0;O"u"){var _t=ke&&ke.type;throw new Error(P(14))}qe[ge]=Ke,st=st||Ke!==Ne}return st=st||z.length!==Object.keys(Pe).length,st?qe:Pe}}function Ae(o,u){return function(){return u(o.apply(this,arguments))}}function Te(o,u){if(typeof o=="function")return Ae(o,u);if(typeof o!="object"||o===null)throw new Error(P(16));var s={};for(var O in o){var H=o[O];typeof H=="function"&&(s[O]=Ae(H,u))}return s}function ee(){for(var o=arguments.length,u=new Array(o),s=0;s-1})}var F="dnd-core/INIT_COORDS",he="dnd-core/BEGIN_DRAG",oe="dnd-core/PUBLISH_DRAG_SOURCE",me="dnd-core/HOVER",ae="dnd-core/DROP",Ce="dnd-core/END_DRAG";function Fe(o,u){return{type:F,payload:{sourceClientOffset:u||null,clientOffset:o||null}}}var Ie={type:F,payload:{clientOffset:null,sourceClientOffset:null}};function et(o){return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},H=O.publishSource,z=H===void 0?!0:H,ue=O.clientOffset,ce=O.getSourceClientOffset,J=o.getMonitor(),Pe=o.getRegistry();o.dispatch(Fe(ue)),De(s,J,Pe);var ke=Ve(s,J);if(ke==null){o.dispatch(Ie);return}var Qe=null;if(ue){if(!ce)throw new Error("getSourceClientOffset must be defined");Ze(ce),Qe=ce(ke)}o.dispatch(Fe(ue,Qe));var st=Pe.getSource(ke),qe=st.beginDrag(J,ke);if(qe!=null){Be(qe),Pe.pinSource(ke);var mt=Pe.getSourceType(ke);return{type:he,payload:{itemType:mt,item:qe,sourceId:ke,clientOffset:ue||null,sourceClientOffset:Qe||null,isSourcePublic:!!z}}}}}function De(o,u,s){(0,y.k)(!u.isDragging(),"Cannot call beginDrag while dragging."),o.forEach(function(O){(0,y.k)(s.getSource(O),"Expected sourceIds to be registered.")})}function Ze(o){(0,y.k)(typeof o=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Be(o){(0,y.k)(p(o),"Item must be an object.")}function Ve(o,u){for(var s=null,O=o.length-1;O>=0;O--)if(u.canDragSource(o[O])){s=o[O];break}return s}function it(o,u,s){return u in o?Object.defineProperty(o,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[u]=s,o}function ft(o){for(var u=1;u0&&arguments[0]!==void 0?arguments[0]:{},O=o.getMonitor(),H=o.getRegistry();dt(O);var z=nn(O);z.forEach(function(ue,ce){var J=Xe(ue,ce,H,O),Pe={type:ae,payload:{dropResult:ft({},s,J)}};o.dispatch(Pe)})}}function dt(o){(0,y.k)(o.isDragging(),"Cannot call drop while not dragging."),(0,y.k)(!o.didDrop(),"Cannot call drop twice during one drag operation.")}function Xe(o,u,s,O){var H=s.getTarget(o),z=H?H.drop(O,o):void 0;return Vt(z),typeof z>"u"&&(z=u===0?{}:O.getDropResult()),z}function Vt(o){(0,y.k)(typeof o>"u"||p(o),"Drop result must either be an object or undefined.")}function nn(o){var u=o.getTargetIds().filter(o.canDropOnTarget,o);return u.reverse(),u}function dn(o){return function(){var s=o.getMonitor(),O=o.getRegistry();St(s);var H=s.getSourceId();if(H!=null){var z=O.getSource(H,!0);z.endDrag(s,H),O.unpinSource()}return{type:Ce}}}function St(o){(0,y.k)(o.isDragging(),"Cannot call endDrag while not dragging.")}function $t(o,u){return u===null?o===null:Array.isArray(o)?o.some(function(s){return s===u}):o===u}function Ct(o){return function(s){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=O.clientOffset;Ut(s);var z=s.slice(0),ue=o.getMonitor(),ce=o.getRegistry(),J=ue.getItemType();return ot(z,ce,J),rn(z,ue,ce),nt(z,ue,ce),{type:me,payload:{targetIds:z,clientOffset:H||null}}}}function Ut(o){(0,y.k)(Array.isArray(o),"Expected targetIds to be an array.")}function rn(o,u,s){(0,y.k)(u.isDragging(),"Cannot call hover while not dragging."),(0,y.k)(!u.didDrop(),"Cannot call hover after drop.");for(var O=0;O=0;O--){var H=o[O],z=u.getTargetType(H);$t(z,s)||o.splice(O,1)}}function nt(o,u,s){o.forEach(function(O){var H=s.getTarget(O);H.hover(u,O)})}function G(o){return function(){var s=o.getMonitor();if(s.isDragging())return{type:oe}}}function We(o){return{beginDrag:et(o),publishDragSource:G(o),hover:Ct(o),drop:pt(o),endDrag:dn(o)}}var ye=function(){function o(u,s){var O=this;d(this,o),this.isSetUp=!1,this.handleRefCountChange=function(){var H=O.store.getState().refCount>0;O.backend&&(H&&!O.isSetUp?(O.backend.setup(),O.isSetUp=!0):!H&&O.isSetUp&&(O.backend.teardown(),O.isSetUp=!1))},this.store=u,this.monitor=s,u.subscribe(this.handleRefCountChange)}return h(o,[{key:"receiveBackend",value:function(s){this.backend=s}},{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 s=this,O=this.store.dispatch;function H(ue){return function(){for(var ce=arguments.length,J=new Array(ce),Pe=0;Pe"u")return!0;var s=_(u,o);return s.length>0}var Ft=function(){function o(u,s){d(this,o),this.store=u,this.registry=s}return h(o,[{key:"subscribeToStateChange",value:function(s){var O=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=H.handlerIds;(0,y.k)(typeof s=="function","listener must be a function."),(0,y.k)(typeof z>"u"||Array.isArray(z),"handlerIds, when specified, must be an array of strings.");var ue=this.store.getState().stateId,ce=function(){var Pe=O.store.getState(),ke=Pe.stateId;try{var Qe=ke===ue||ke===ue+1&&!lt(Pe.dirtyHandlerIds,z);Qe||s()}finally{ue=ke}};return this.store.subscribe(ce)}},{key:"subscribeToOffsetChange",value:function(s){var O=this;(0,y.k)(typeof s=="function","listener must be a function.");var H=this.store.getState().dragOffset,z=function(){var ce=O.store.getState().dragOffset;ce!==H&&(H=ce,s())};return this.store.subscribe(z)}},{key:"canDragSource",value:function(s){if(!s)return!1;var O=this.registry.getSource(s);return(0,y.k)(O,"Expected to find a valid source. sourceId=".concat(s)),this.isDragging()?!1:O.canDrag(this,s)}},{key:"canDropOnTarget",value:function(s){if(!s)return!1;var O=this.registry.getTarget(s);if((0,y.k)(O,"Expected to find a valid target. targetId=".concat(s)),!this.isDragging()||this.didDrop())return!1;var H=this.registry.getTargetType(s),z=this.getItemType();return $t(H,z)&&O.canDrop(this,s)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(s){if(!s)return!1;var O=this.registry.getSource(s,!0);if((0,y.k)(O,"Expected to find a valid source. sourceId=".concat(s)),!this.isDragging()||!this.isSourcePublic())return!1;var H=this.registry.getSourceType(s),z=this.getItemType();return H!==z?!1:O.isDragging(this,s)}},{key:"isOverTarget",value:function(s){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!s)return!1;var H=O.shallow;if(!this.isDragging())return!1;var z=this.registry.getTargetType(s),ue=this.getItemType();if(ue&&!$t(z,ue))return!1;var ce=this.getTargetIds();if(!ce.length)return!1;var J=ce.indexOf(s);return H?J===ce.length-1:J>-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 jt(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Ue(this.store.getState().dragOffset)}}]),o}();const yt=typeof global<"u"?global:self,tt=yt.MutationObserver||yt.WebKitMutationObserver;function Ye(o){return function(){const s=setTimeout(H,0),O=setInterval(H,50);function H(){clearTimeout(s),clearInterval(O),o()}}}function bt(o){let u=1;const s=new tt(o),O=document.createTextNode("");return s.observe(O,{characterData:!0}),function(){u=-u,O.data=u}}const Tt=typeof tt=="function"?bt:Ye;class Yt{enqueueTask(u){const{queue:s,requestFlush:O}=this;s.length||(O(),this.flushing=!0),s[s.length]=u}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:u}=this;for(;this.indexthis.capacity){for(let O=0,H=u.length-this.index;O{this.pendingErrors.push(u),this.requestErrorThrow()},this.requestFlush=Tt(this.flush),this.requestErrorThrow=Ye(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class l{call(){try{this.task&&this.task()}catch(u){this.onError(u)}finally{this.task=null,this.release(this)}}constructor(u,s){this.onError=u,this.release=s,this.task=null}}class S{create(u){const s=this.freeTasks,O=s.length?s.pop():new l(this.onError,H=>s[s.length]=H);return O.task=u,O}constructor(u){this.onError=u,this.freeTasks=[]}}const I=new Yt,b=new S(I.registerPendingError);function V(o){I.enqueueTask(b.create(o))}var Q="dnd-core/ADD_SOURCE",re="dnd-core/ADD_TARGET",K="dnd-core/REMOVE_SOURCE",te="dnd-core/REMOVE_TARGET";function de(o){return{type:Q,payload:{sourceId:o}}}function Ee(o){return{type:re,payload:{targetId:o}}}function pe(o){return{type:K,payload:{sourceId:o}}}function we(o){return{type:te,payload:{targetId:o}}}function be(o){(0,y.k)(typeof o.canDrag=="function","Expected canDrag to be a function."),(0,y.k)(typeof o.beginDrag=="function","Expected beginDrag to be a function."),(0,y.k)(typeof o.endDrag=="function","Expected endDrag to be a function.")}function Oe(o){(0,y.k)(typeof o.canDrop=="function","Expected canDrop to be a function."),(0,y.k)(typeof o.hover=="function","Expected hover to be a function."),(0,y.k)(typeof o.drop=="function","Expected beginDrag to be a function.")}function $e(o,u){if(u&&Array.isArray(o)){o.forEach(function(s){return $e(s,!1)});return}(0,y.k)(typeof o=="string"||A(o)==="symbol",u?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var xe;(function(o){o.SOURCE="SOURCE",o.TARGET="TARGET"})(xe||(xe={}));var wt=0;function Rt(){return wt++}function gt(o){var u=Rt().toString();switch(o){case xe.SOURCE:return"S".concat(u);case xe.TARGET:return"T".concat(u);default:throw new Error("Unknown Handler Role: ".concat(o))}}function Nt(o){switch(o[0]){case"S":return xe.SOURCE;case"T":return xe.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(o))}}function Jt(o,u){var s=o.entries(),O=!1;do{var H=s.next(),z=H.done,ue=E(H.value,2),ce=ue[1];if(ce===u)return!0;O=!!z}while(!O);return!1}var Qt=function(){function o(u){d(this,o),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=u}return h(o,[{key:"addSource",value:function(s,O){$e(s),be(O);var H=this.addHandler(xe.SOURCE,s,O);return this.store.dispatch(de(H)),H}},{key:"addTarget",value:function(s,O){$e(s,!0),Oe(O);var H=this.addHandler(xe.TARGET,s,O);return this.store.dispatch(Ee(H)),H}},{key:"containsHandler",value:function(s){return Jt(this.dragSources,s)||Jt(this.dropTargets,s)}},{key:"getSource",value:function(s){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,y.k)(this.isSourceId(s),"Expected a valid source ID.");var H=O&&s===this.pinnedSourceId,z=H?this.pinnedSource:this.dragSources.get(s);return z}},{key:"getTarget",value:function(s){return(0,y.k)(this.isTargetId(s),"Expected a valid target ID."),this.dropTargets.get(s)}},{key:"getSourceType",value:function(s){return(0,y.k)(this.isSourceId(s),"Expected a valid source ID."),this.types.get(s)}},{key:"getTargetType",value:function(s){return(0,y.k)(this.isTargetId(s),"Expected a valid target ID."),this.types.get(s)}},{key:"isSourceId",value:function(s){var O=Nt(s);return O===xe.SOURCE}},{key:"isTargetId",value:function(s){var O=Nt(s);return O===xe.TARGET}},{key:"removeSource",value:function(s){var O=this;(0,y.k)(this.getSource(s),"Expected an existing source."),this.store.dispatch(pe(s)),V(function(){O.dragSources.delete(s),O.types.delete(s)})}},{key:"removeTarget",value:function(s){(0,y.k)(this.getTarget(s),"Expected an existing target."),this.store.dispatch(we(s)),this.dropTargets.delete(s),this.types.delete(s)}},{key:"pinSource",value:function(s){var O=this.getSource(s);(0,y.k)(O,"Expected an existing source."),this.pinnedSourceId=s,this.pinnedSource=O}},{key:"unpinSource",value:function(){(0,y.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(s,O,H){var z=gt(s);return this.types.set(z,O),s===xe.SOURCE?this.dragSources.set(z,H):s===xe.TARGET&&this.dropTargets.set(z,H),z}}]),o}(),vt=function(u,s){return u===s};function Bt(o,u){return!o&&!u?!0:!o||!u?!1:o.x===u.x&&o.y===u.y}function on(o,u){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vt;if(o.length!==u.length)return!1;for(var O=0;O0&&arguments[0]!==void 0?arguments[0]:ht,u=arguments.length>1?arguments[1]:void 0;switch(u.type){case me:break;case Q:case re:case te:case K:return ht;case he:case oe:case Ce:case ae:default:return Dt}var s=u.payload,O=s.targetIds,H=O===void 0?[]:O,z=s.prevTargetIds,ue=z===void 0?[]:z,ce=$(H,ue),J=ce.length>0||!on(H,ue);if(!J)return ht;var Pe=ue[ue.length-1],ke=H[H.length-1];return Pe!==ke&&(Pe&&ce.push(Pe),ke&&ce.push(ke)),ce}function It(o,u,s){return u in o?Object.defineProperty(o,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[u]=s,o}function Xt(o){for(var u=1;u0&&arguments[0]!==void 0?arguments[0]:se,u=arguments.length>1?arguments[1]:void 0,s=u.payload;switch(u.type){case F:case he:return{initialSourceClientOffset:s.sourceClientOffset,initialClientOffset:s.clientOffset,clientOffset:s.clientOffset};case me:return Bt(o.clientOffset,s.clientOffset)?o:Xt({},o,{clientOffset:s.clientOffset});case Ce:case ae:return se;default:return o}}function at(o,u,s){return u in o?Object.defineProperty(o,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[u]=s,o}function Pt(o){for(var u=1;u0&&arguments[0]!==void 0?arguments[0]:mn,u=arguments.length>1?arguments[1]:void 0,s=u.payload;switch(u.type){case he:return Pt({},o,{itemType:s.itemType,item:s.item,sourceId:s.sourceId,isSourcePublic:s.isSourcePublic,dropResult:null,didDrop:!1});case oe:return Pt({},o,{isSourcePublic:!0});case me:return Pt({},o,{targetIds:s.targetIds});case te:return o.targetIds.indexOf(s.targetId)===-1?o:Pt({},o,{targetIds:a(o.targetIds,s.targetId)});case ae:return Pt({},o,{dropResult:s.dropResult,didDrop:!0,targetIds:[]});case Ce:return Pt({},o,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return o}}function Sn(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,u=arguments.length>1?arguments[1]:void 0;switch(u.type){case Q:case re:return o+1;case K:case te:return o-1;default:return o}}function an(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return o+1}function yn(o,u,s){return u in o?Object.defineProperty(o,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[u]=s,o}function En(o){for(var u=1;u0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:At(o.dirtyHandlerIds,{type:u.type,payload:En({},u.payload,{prevTargetIds:C(o,"dragOperation.targetIds",[])})}),dragOffset:rt(o.dragOffset,u),refCount:Sn(o.refCount,u),dragOperation:qt(o.dragOperation,u),stateId:an(o.stateId)}}function sn(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=hn(O),z=new Ft(H,new Qt(H)),ue=new ye(H,z),ce=o(ue,u,s);return ue.receiveBackend(ce),ue}function hn(o){var u=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Z(Dn,o&&u&&u({name:"dnd-core",instanceId:"dnd-core"}))}var Je=f(67294),Lt=f(73861);function pn(o,u){if(o==null)return{};var s=un(o,u),O,H;if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(o);for(H=0;H=0)&&(!Object.prototype.propertyIsEnumerable.call(o,O)||(s[O]=o[O]))}return s}function un(o,u){if(o==null)return{};var s={},O=Object.keys(o),H,z;for(z=0;z=0)&&(s[H]=o[H]);return s}var en=0,Gt=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Wt=(0,Je.memo)(function(u){var s=u.children,O=pn(u,["children"]),H=zt(O),z=E(H,2),ue=z[0],ce=z[1];return(0,Je.useEffect)(function(){if(ce){var J=kt();return++en,function(){--en===0&&(J[Gt]=null)}}},[]),(0,R.jsx)(Lt.L.Provider,{value:ue,children:s})});function zt(o){if("manager"in o){var u={dragDropManager:o.manager};return[u,!1]}var s=ln(o.backend,o.context,o.options,o.debugMode),O=!o.context;return[s,O]}function ln(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kt(),s=arguments.length>2?arguments[2]:void 0,O=arguments.length>3?arguments[3]:void 0,H=u;return H[Gt]||(H[Gt]={dragDropManager:sn(o,u,s,O)}),H[Gt]}function kt(){return typeof global<"u"?global:window}},36336:function(W,Y,f){"use strict";f.d(Y,{J:function(){return k}});var E=f(5574),R=f(64063),P=f(67294),D=f(50284);function N(v,j,w){var M=(0,P.useState)(function(){return j(v)}),T=E(M,2),Z=T[0],ne=T[1],fe=(0,P.useCallback)(function(){var le=j(v);R(Z,le)||(ne(le),w&&w())},[Z,v,w]);return(0,D.L)(fe),[Z,fe]}function L(v,j,w){var M=N(v,j,w),T=E(M,2),Z=T[0],ne=T[1];return(0,D.L)(function(){var le=v.getHandlerId();if(le!=null)return v.subscribeToStateChange(ne,{handlerIds:[le]})},[v,ne]),Z}function k(v,j,w){return L(j,v||function(){return{}},function(){return w.reconnect()})}},98958:function(W,Y,f){"use strict";f.d(Y,{c:function(){return A}});var E=f(14912),R=f(36336),P=f(2212),D=f(67294);function N(C){return(0,D.useMemo)(function(){return C.hooks.dragSource()},[C])}function L(C){return(0,D.useMemo)(function(){return C.hooks.dragPreview()},[C])}var k=f(12444),v=f(72004),j=f(46580),w=f(30362),M=f(85529),T=function(){function C(a){var i=this;k(this,C),this.hooks=(0,M.p)({dragSource:function($,_){i.clearDragSource(),i.dragSourceOptions=_||null,(0,w.d)($)?i.dragSourceRef=$:i.dragSourceNode=$,i.reconnectDragSource()},dragPreview:function($,_){i.clearDragPreview(),i.dragPreviewOptions=_||null,(0,w.d)($)?i.dragPreviewRef=$:i.dragPreviewNode=$,i.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=a}return v(C,[{key:"receiveHandlerId",value:function(i){this.handlerId!==i&&(this.handlerId=i,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(i){this.dragSourceOptionsInternal=i}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(i){this.dragPreviewOptionsInternal=i}},{key:"reconnect",value:function(){var i=this.reconnectDragSource();this.reconnectDragPreview(i)}},{key:"reconnectDragSource",value:function(){var i=this.dragSource,p=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return p&&this.disconnectDragSource(),this.handlerId?i?(p&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=i,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,i,this.dragSourceOptions)),p):(this.lastConnectedDragSource=i,p):p}},{key:"reconnectDragPreview",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,p=this.dragPreview,$=i||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if($&&this.disconnectDragPreview(),!!this.handlerId){if(!p){this.lastConnectedDragPreview=p;return}$&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=p,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,p,this.dragPreviewOptions))}}},{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!(0,j.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,j.w)(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}}]),C}(),Z=f(21403),ne=f(50284);function fe(C,a){var i=(0,Z.N)(),p=(0,D.useMemo)(function(){return new T(i.getBackend())},[i]);return(0,ne.L)(function(){return p.dragSourceOptions=C||null,p.reconnect(),function(){return p.disconnectDragSource()}},[p,C]),(0,ne.L)(function(){return p.dragPreviewOptions=a||null,p.reconnect(),function(){return p.disconnectDragPreview()}},[p,a]),p}var le=!1,Me=!1,ze=function(){function C(a){k(this,C),this.sourceId=null,this.internalMonitor=a.getMonitor()}return v(C,[{key:"receiveHandlerId",value:function(i){this.sourceId=i}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,E.k)(!le,"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 le=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{le=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,E.k)(!Me,"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 Me=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Me=!1}}},{key:"subscribeToStateChange",value:function(i,p){return this.internalMonitor.subscribeToStateChange(i,p)}},{key:"isDraggingSource",value:function(i){return this.internalMonitor.isDraggingSource(i)}},{key:"isOverTarget",value:function(i,p){return this.internalMonitor.isOverTarget(i,p)}},{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(i){return this.internalMonitor.subscribeToOffsetChange(i)}},{key:"canDragSource",value:function(i){return this.internalMonitor.canDragSource(i)}},{key:"canDropOnTarget",value:function(i){return this.internalMonitor.canDropOnTarget(i)}},{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()}}]),C}();function Ae(){var C=(0,Z.N)();return(0,D.useMemo)(function(){return new ze(C)},[C])}var Te=f(5574),ee=f(45279),Ge=f(52677),g=function(){function C(a,i,p){k(this,C),this.spec=a,this.monitor=i,this.connector=p}return v(C,[{key:"beginDrag",value:function(){var i=this.spec,p=this.monitor,$=null;return Ge(i.item)==="object"?$=i.item:typeof i.item=="function"?$=i.item(p):$={},$??null}},{key:"canDrag",value:function(){var i=this.spec,p=this.monitor;return typeof i.canDrag=="boolean"?i.canDrag:typeof i.canDrag=="function"?i.canDrag(p):!0}},{key:"isDragging",value:function(i,p){var $=this.spec,_=this.monitor,F=$.isDragging;return F?F(_):p===i.getSourceId()}},{key:"endDrag",value:function(){var i=this.spec,p=this.monitor,$=this.connector,_=i.end;_&&_(p.getItem(),p),$.reconnect()}}]),C}();function d(C,a,i){var p=(0,D.useMemo)(function(){return new g(C,a,i)},[a,i]);return(0,D.useEffect)(function(){p.spec=C},[C]),p}function h(C){return(0,D.useMemo)(function(){var a=C.type;return(0,E.k)(a!=null,"spec.type must be defined"),a},[C])}function y(C,a,i){var p=(0,Z.N)(),$=d(C,a,i),_=h(C);(0,ne.L)(function(){if(_!=null){var he=(0,ee.w)(_,$,p),oe=Te(he,2),me=oe[0],ae=oe[1];return a.receiveHandlerId(me),i.receiveHandlerId(me),ae}},[p,a,i,$,_])}function A(C,a){var i=(0,P.w)(C,a);(0,E.k)(!i.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 p=Ae(),$=fe(i.options,i.previewOptions);return y(i,p,$),[(0,R.J)(i.collect,p,$),N($),L($)]}},21403:function(W,Y,f){"use strict";f.d(Y,{N:function(){return D}});var E=f(14912),R=f(67294),P=f(73861);function D(){var N=(0,R.useContext)(P.L),L=N.dragDropManager;return(0,E.k)(L!=null,"Expected drag drop context"),L}},98169:function(W,Y,f){"use strict";f.d(Y,{L:function(){return d}});var E=f(36336),R=f(2212),P=f(67294);function D(h){return(0,P.useMemo)(function(){return h.hooks.dropTarget()},[h])}var N=f(12444),L=f(72004),k=f(46580),v=f(30362),j=f(85529),w=function(){function h(y){var A=this;N(this,h),this.hooks=(0,j.p)({dropTarget:function(a,i){A.clearDropTarget(),A.dropTargetOptions=i,(0,v.d)(a)?A.dropTargetRef=a:A.dropTargetNode=a,A.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=y}return L(h,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var A=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();A&&this.disconnectDropTarget();var C=this.dropTarget;if(!!this.handlerId){if(!C){this.lastConnectedDropTarget=C;return}A&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=C,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,C,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(A){A!==this.handlerId&&(this.handlerId=A,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(A){this.dropTargetOptionsInternal=A}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,k.w)(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}}]),h}(),M=f(21403),T=f(50284);function Z(h){var y=(0,M.N)(),A=(0,P.useMemo)(function(){return new w(y.getBackend())},[y]);return(0,T.L)(function(){return A.dropTargetOptions=h||null,A.reconnect(),function(){return A.disconnectDropTarget()}},[h]),A}var ne=f(14912),fe=!1,le=function(){function h(y){N(this,h),this.targetId=null,this.internalMonitor=y.getMonitor()}return L(h,[{key:"receiveHandlerId",value:function(A){this.targetId=A}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(A,C){return this.internalMonitor.subscribeToStateChange(A,C)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,ne.k)(!fe,"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 fe=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{fe=!1}}},{key:"isOver",value:function(A){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,A):!1}},{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()}}]),h}();function Me(){var h=(0,M.N)();return(0,P.useMemo)(function(){return new le(h)},[h])}var ze=f(5574),Ae=f(45279);function Te(h){var y=h.accept;return(0,P.useMemo)(function(){return(0,ne.k)(h.accept!=null,"accept must be defined"),Array.isArray(y)?y:[y]},[y])}var ee=function(){function h(y,A){N(this,h),this.spec=y,this.monitor=A}return L(h,[{key:"canDrop",value:function(){var A=this.spec,C=this.monitor;return A.canDrop?A.canDrop(C.getItem(),C):!0}},{key:"hover",value:function(){var A=this.spec,C=this.monitor;A.hover&&A.hover(C.getItem(),C)}},{key:"drop",value:function(){var A=this.spec,C=this.monitor;if(A.drop)return A.drop(C.getItem(),C)}}]),h}();function Ge(h,y){var A=(0,P.useMemo)(function(){return new ee(h,y)},[y]);return(0,P.useEffect)(function(){A.spec=h},[h]),A}function g(h,y,A){var C=(0,M.N)(),a=Ge(h,y),i=Te(h);(0,T.L)(function(){var $=(0,Ae.n)(i,a,C),_=ze($,2),F=_[0],he=_[1];return y.receiveHandlerId(F),A.receiveHandlerId(F),he},[C,y,a,A,i.map(function(p){return p.toString()}).join("|")])}function d(h,y){var A=(0,R.w)(h,y),C=Me(),a=Z(A.options);return g(A,C,a),[(0,E.J)(A.collect,C,a),D(a)]}},50284:function(W,Y,f){"use strict";f.d(Y,{L:function(){return R}});var E=f(67294),R=typeof window<"u"?E.useLayoutEffect:E.useEffect},2212:function(W,Y,f){"use strict";f.d(Y,{w:function(){return P}});var E=f(19632),R=f(67294);function P(D,N){var L=E(N||[]);return N==null&&typeof D!="function"&&L.push(D),(0,R.useMemo)(function(){return typeof D=="function"?D():D},L)}},30362:function(W,Y,f){"use strict";f.d(Y,{d:function(){return R}});var E=f(52677);function R(P){return P!==null&&E(P)==="object"&&Object.prototype.hasOwnProperty.call(P,"current")}},45279:function(W,Y,f){"use strict";f.d(Y,{n:function(){return E},w:function(){return R}});function E(P,D,N){var L=N.getRegistry(),k=L.addTarget(P,D);return[k,function(){return L.removeTarget(k)}]}function R(P,D,N){var L=N.getRegistry(),k=L.addSource(P,D);return[k,function(){return L.removeSource(k)}]}},85529:function(W,Y,f){"use strict";f.d(Y,{p:function(){return N}});var E=f(14912),R=f(67294);function P(v){if(typeof v.type!="string"){var j=v.type.displayName||v.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(j," into a
, or turn it into a ")+"drag source or a drop target itself.")}}function D(v){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!(0,R.isValidElement)(j)){var M=j;return v(M,w),M}var T=j;P(T);var Z=w?function(ne){return v(ne,w)}:v;return k(T,Z)}}function N(v){var j={};return Object.keys(v).forEach(function(w){var M=v[w];if(w.endsWith("Ref"))j[w]=v[w];else{var T=D(M);j[w]=function(){return T}}}),j}function L(v,j){typeof v=="function"?v(j):v.current=j}function k(v,j){var w=v.ref;return(0,E.k)(typeof w!="string","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"),w?(0,R.cloneElement)(v,{ref:function(T){L(w,T),L(j,T)}}):(0,R.cloneElement)(v,{ref:j})}},36963:function(W,Y,f){"use strict";f.d(Y,{PD:function(){return C}});var E={};f.r(E),f.d(E,{FILE:function(){return k},HTML:function(){return w},TEXT:function(){return j},URL:function(){return v}});function R(a){let i=null;return()=>(i==null&&(i=a()),i)}function P(a,i){return a.filter(p=>p!==i)}function D(a,i){const p=new Set,$=F=>p.add(F);a.forEach($),i.forEach($);const _=[];return p.forEach(F=>_.push(F)),_}class N{enter(i){const p=this.entered.length,$=_=>this.isNodeInDocument(_)&&(!_.contains||_.contains(i));return this.entered=D(this.entered.filter($),[i]),p===0&&this.entered.length>0}leave(i){const p=this.entered.length;return this.entered=P(this.entered.filter(this.isNodeInDocument),i),p>0&&this.entered.length===0}reset(){this.entered=[]}constructor(i){this.entered=[],this.isNodeInDocument=i}}class L{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(i=>{Object.defineProperty(this.item,i,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${i}" until the drop event.`),null}})})}loadDataTransfer(i){if(i){const p={};Object.keys(this.config.exposeProperties).forEach($=>{const _=this.config.exposeProperties[$];_!=null&&(p[$]={value:_(i,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,p)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(i,p){return p===i.getSourceId()}endDrag(){}constructor(i){this.config=i,this.item={},this.initializeExposedProperties()}}const k="__NATIVE_FILE__",v="__NATIVE_URL__",j="__NATIVE_TEXT__",w="__NATIVE_HTML__";function M(a,i,p){const $=i.reduce((_,F)=>_||a.getData(F),"");return $??p}const T={[k]:{exposeProperties:{files:a=>Array.prototype.slice.call(a.files),items:a=>a.items,dataTransfer:a=>a},matchesTypes:["Files"]},[w]:{exposeProperties:{html:(a,i)=>M(a,i,""),dataTransfer:a=>a},matchesTypes:["Html","text/html"]},[v]:{exposeProperties:{urls:(a,i)=>M(a,i,"").split(` `),dataTransfer:a=>a},matchesTypes:["Url","text/uri-list"]},[j]:{exposeProperties:{text:(a,i)=>M(a,i,""),dataTransfer:a=>a},matchesTypes:["Text","text/plain"]}};function Z(a,i){const p=T[a];if(!p)throw new Error(`native type ${a} has no configuration`);const $=new L(p);return $.loadDataTransfer(i),$}function ne(a){if(!a)return null;const i=Array.prototype.slice.call(a.types||[]);return Object.keys(T).filter(p=>{const $=T[p];return $!=null&&$.matchesTypes?$.matchesTypes.some(_=>i.indexOf(_)>-1):!1})[0]||null}const fe=R(()=>/firefox/i.test(navigator.userAgent)),le=R(()=>Boolean(window.safari));class Me{interpolate(i){const{xs:p,ys:$,c1s:_,c2s:F,c3s:he}=this;let oe=p.length-1;if(i===p[oe])return $[oe];let me=0,ae=he.length-1,Ce;for(;me<=ae;){Ce=Math.floor(.5*(me+ae));const et=p[Ce];if(eti)ae=Ce-1;else return $[Ce]}oe=Math.max(0,ae);const Fe=i-p[oe],Ie=Fe*Fe;return $[oe]+_[oe]*Fe+F[oe]*Ie+he[oe]*Fe*Ie}constructor(i,p){const{length:$}=i,_=[];for(let De=0;De<$;De++)_.push(De);_.sort((De,Ze)=>i[De]{let Xe=new Me([0,.5,1],[me.y,me.y/Ce*De,me.y+De-Ce]).interpolate(Ie);return le()&&F&&(Xe+=(window.devicePixelRatio-1)*De),Xe},Be=()=>new Me([0,.5,1],[me.x,me.x/ae*et,me.x+et-ae]).interpolate(Fe),{offsetX:Ve,offsetY:it}=_,ft=Ve===0||Ve,pt=it===0||it;return{x:ft?Ve:Be(),y:pt?it:Ze()}}class d{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var i;return!((i=this.globalContext)===null||i===void 0)&&i.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var i;return((i=this.optionsArgs)===null||i===void 0?void 0:i.rootElement)||this.window}constructor(i,p){this.ownerDocument=null,this.globalContext=i,this.optionsArgs=p}}function h(a,i,p){return i in a?Object.defineProperty(a,i,{value:p,enumerable:!0,configurable:!0,writable:!0}):a[i]=p,a}function y(a){for(var i=1;i{this.sourcePreviewNodes.delete(i),this.sourcePreviewNodeOptions.delete(i)}}connectDragSource(i,p,$){this.sourceNodes.set(i,p),this.sourceNodeOptions.set(i,$);const _=he=>this.handleDragStart(he,i),F=he=>this.handleSelectStart(he);return p.setAttribute("draggable","true"),p.addEventListener("dragstart",_),p.addEventListener("selectstart",F),()=>{this.sourceNodes.delete(i),this.sourceNodeOptions.delete(i),p.removeEventListener("dragstart",_),p.removeEventListener("selectstart",F),p.setAttribute("draggable","false")}}connectDropTarget(i,p){const $=he=>this.handleDragEnter(he,i),_=he=>this.handleDragOver(he,i),F=he=>this.handleDrop(he,i);return p.addEventListener("dragenter",$),p.addEventListener("dragover",_),p.addEventListener("drop",F),()=>{p.removeEventListener("dragenter",$),p.removeEventListener("dragover",_),p.removeEventListener("drop",F)}}addEventListeners(i){!i.addEventListener||(i.addEventListener("dragstart",this.handleTopDragStart),i.addEventListener("dragstart",this.handleTopDragStartCapture,!0),i.addEventListener("dragend",this.handleTopDragEndCapture,!0),i.addEventListener("dragenter",this.handleTopDragEnter),i.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),i.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),i.addEventListener("dragover",this.handleTopDragOver),i.addEventListener("dragover",this.handleTopDragOverCapture,!0),i.addEventListener("drop",this.handleTopDrop),i.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(i){!i.removeEventListener||(i.removeEventListener("dragstart",this.handleTopDragStart),i.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),i.removeEventListener("dragend",this.handleTopDragEndCapture,!0),i.removeEventListener("dragenter",this.handleTopDragEnter),i.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),i.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),i.removeEventListener("dragover",this.handleTopDragOver),i.removeEventListener("dragover",this.handleTopDragOverCapture,!0),i.removeEventListener("drop",this.handleTopDrop),i.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const i=this.monitor.getSourceId(),p=this.sourceNodeOptions.get(i);return y({dropEffect:this.altKeyPressed?"copy":"move"},p||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const i=this.monitor.getSourceId(),p=this.sourcePreviewNodeOptions.get(i);return y({anchorX:.5,anchorY:.5,captureDraggingState:!1},p||{})}isDraggingNativeItem(){const i=this.monitor.getItemType();return Object.keys(E).some(p=>E[p]===i)}beginDragNativeItem(i,p){this.clearCurrentDragSourceNode(),this.currentNativeSource=Z(i,p),this.currentNativeHandle=this.registry.addSource(i,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(i){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=i;const p=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var $;return($=this.rootElement)===null||$===void 0?void 0:$.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},p)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var i;(i=this.window)===null||i===void 0||i.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(i,p){i.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(p))}handleDragEnter(i,p){this.dragEnterTargetIds.unshift(p)}handleDragOver(i,p){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(p)}handleDrop(i,p){this.dropTargetIds.unshift(p)}constructor(i,p,$){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=_=>{const F=this.sourceNodes.get(_);return F&&Ae(F)||null},this.endDragNativeItem=()=>{!this.isDraggingNativeItem()||(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=_=>Boolean(_&&this.document&&this.document.body&&this.document.body.contains(_)),this.endDragIfSourceWasRemovedFromDOM=()=>{const _=this.currentDragSourceNode;_==null||this.isNodeInDocument(_)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=_=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(_||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=_=>{if(_.defaultPrevented)return;const{dragStartSourceIds:F}=this;this.dragStartSourceIds=null;const he=Te(_);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(F||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:he});const{dataTransfer:oe}=_,me=ne(oe);if(this.monitor.isDragging()){if(oe&&typeof oe.setDragImage=="function"){const Ce=this.monitor.getSourceId(),Fe=this.sourceNodes.get(Ce),Ie=this.sourcePreviewNodes.get(Ce)||Fe;if(Ie){const{anchorX:et,anchorY:De,offsetX:Ze,offsetY:Be}=this.getCurrentSourcePreviewNodeOptions(),ft=g(Fe,Ie,he,{anchorX:et,anchorY:De},{offsetX:Ze,offsetY:Be});oe.setDragImage(Ie,ft.x,ft.y)}}try{oe==null||oe.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(_.target);const{captureDraggingState:ae}=this.getCurrentSourcePreviewNodeOptions();ae?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(me)this.beginDragNativeItem(me);else{if(oe&&!oe.types&&(_.target&&!_.target.hasAttribute||!_.target.hasAttribute("draggable")))return;_.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=_=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var F;(F=this.currentNativeSource)===null||F===void 0||F.loadDataTransfer(_.dataTransfer)}if(!this.enterLeaveCounter.enter(_.target)||this.monitor.isDragging())return;const{dataTransfer:oe}=_,me=ne(oe);me&&this.beginDragNativeItem(me,oe)},this.handleTopDragEnter=_=>{const{dragEnterTargetIds:F}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=_.altKey,F.length>0&&this.actions.hover(F,{clientOffset:Te(_)}),F.some(oe=>this.monitor.canDropOnTarget(oe))&&(_.preventDefault(),_.dataTransfer&&(_.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=_=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var F;(F=this.currentNativeSource)===null||F===void 0||F.loadDataTransfer(_.dataTransfer)}},this.handleTopDragOver=_=>{const{dragOverTargetIds:F}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){_.preventDefault(),_.dataTransfer&&(_.dataTransfer.dropEffect="none");return}this.altKeyPressed=_.altKey,this.lastClientOffset=Te(_),this.scheduleHover(F),(F||[]).some(oe=>this.monitor.canDropOnTarget(oe))?(_.preventDefault(),_.dataTransfer&&(_.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?_.preventDefault():(_.preventDefault(),_.dataTransfer&&(_.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=_=>{this.isDraggingNativeItem()&&_.preventDefault(),this.enterLeaveCounter.leave(_.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=_=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var F;_.preventDefault(),(F=this.currentNativeSource)===null||F===void 0||F.loadDataTransfer(_.dataTransfer)}else ne(_.dataTransfer)&&_.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=_=>{const{dropTargetIds:F}=this;this.dropTargetIds=[],this.actions.hover(F,{clientOffset:Te(_)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=_=>{const F=_.target;typeof F.dragDrop=="function"&&(F.tagName==="INPUT"||F.tagName==="SELECT"||F.tagName==="TEXTAREA"||F.isContentEditable||(_.preventDefault(),F.dragDrop()))},this.options=new d(p,$),this.actions=i.getActions(),this.monitor=i.getMonitor(),this.registry=i.getRegistry(),this.enterLeaveCounter=new N(this.isNodeInDocument)}}const C=function(i,p,$){return new A(i,p,$)}}}]);