import{P as W,r as S,R as k,g as no,_ as ao,b as io,c as qe,d as O,e as Dn}from"./acebuilds-fbc0ccc6.js";import{r as oo,R as lo}from"./reactflow-10657c96.js";var Sn=function(){return Sn=Object.assign||function(r){for(var t,n=1,a=arguments.length;n0&&i[i.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]0)&&!(a=n.next()).done;)i.push(a.value)}catch(l){o={error:l}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return i}function xn(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,i;n0?n:e.name,writable:!1,configurable:!1,enumerable:!0})}return t}function uo(e){var r=e.name,t=r&&r.lastIndexOf(".")!==-1;if(t&&!e.type){var n=r.split(".").pop().toLowerCase(),a=so.get(n);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var co=[".DS_Store","Thumbs.db"];function po(e){return Je(this,void 0,void 0,function(){return Xe(this,function(r){return Mr(e)&&fo(e.dataTransfer)?[2,bo(e.dataTransfer,e.type)]:vo(e)?[2,go(e)]:Array.isArray(e)&&e.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,mo(e)]:[2,[]]})})}function fo(e){return Mr(e)}function vo(e){return Mr(e)&&Mr(e.target)}function Mr(e){return typeof e=="object"&&e!==null}function go(e){return Tt(e.target.files).map(function(r){return vr(r)})}function mo(e){return Je(this,void 0,void 0,function(){var r;return Xe(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(n){return n.getFile()}))];case 1:return r=t.sent(),[2,r.map(function(n){return vr(n)})]}})})}function bo(e,r){return Je(this,void 0,void 0,function(){var t,n;return Xe(this,function(a){switch(a.label){case 0:return e.items?(t=Tt(e.items).filter(function(i){return i.kind==="file"}),r!=="drop"?[2,t]:[4,Promise.all(t.map(ho))]):[3,2];case 1:return n=a.sent(),[2,wn(Pa(n))];case 2:return[2,wn(Tt(e.files).map(function(i){return vr(i)}))]}})})}function wn(e){return e.filter(function(r){return co.indexOf(r.name)===-1})}function Tt(e){if(e===null)return[];for(var r=[],t=0;te.length)&&(r=e.length);for(var t=0,n=new Array(r);tt)return[!1,On(t)];if(e.sizet)return[!1,On(t)]}return[!0,null]}function Ge(e){return e!=null}function Fo(e){var r=e.files,t=e.accept,n=e.minSize,a=e.maxSize,i=e.multiple,o=e.maxFiles,l=e.validator;return!i&&r.length>1||i&&o>=1&&r.length>o?!1:r.every(function(s){var c=Ta(s,t),p=sr(c,1),u=p[0],d=Ba(s,n,a),f=sr(d,1),g=f[0],v=l?l(s):null;return u&&g&&!v})}function Fr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Pr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(r){return r==="Files"||r==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Tn(e){e.preventDefault()}function No(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Lo(e){return e.indexOf("Edge/")!==-1}function Go(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return No(e)||Lo(e)}function xe(){for(var e=arguments.length,r=new Array(e),t=0;t1?a-1:0),o=1;oe.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function el(e,r){if(e==null)return{};var t={},n=Object.keys(e),a,i;for(i=0;i=0)&&(t[a]=e[a]);return t}var Ut=S.forwardRef(function(e,r){var t=e.children,n=Nr(e,zo),a=rl(n),i=a.open,o=Nr(a,Ho);return S.useImperativeHandle(r,function(){return{open:i}},[i]),k.createElement(S.Fragment,null,t(j(j({},o),{},{open:i})))});Ut.displayName="Dropzone";var La={disabled:!1,getFilesFromEvent:po,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ut.defaultProps=La;Ut.propTypes={children:W.func,accept:W.objectOf(W.arrayOf(W.string)),multiple:W.bool,preventDropOnDocument:W.bool,noClick:W.bool,noKeyboard:W.bool,noDrag:W.bool,noDragEventsBubbling:W.bool,minSize:W.number,maxSize:W.number,maxFiles:W.number,disabled:W.bool,getFilesFromEvent:W.func,onFileDialogCancel:W.func,onFileDialogOpen:W.func,useFsAccessApi:W.bool,autoFocus:W.bool,onDragEnter:W.func,onDragLeave:W.func,onDragOver:W.func,onDrop:W.func,onDropAccepted:W.func,onDropRejected:W.func,onError:W.func,validator:W.func};var Nt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function rl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=j(j({},La),e),t=r.accept,n=r.disabled,a=r.getFilesFromEvent,i=r.maxSize,o=r.minSize,l=r.multiple,s=r.maxFiles,c=r.onDragEnter,p=r.onDragLeave,u=r.onDragOver,d=r.onDrop,f=r.onDropAccepted,g=r.onDropRejected,v=r.onFileDialogCancel,m=r.onFileDialogOpen,b=r.useFsAccessApi,h=r.autoFocus,y=r.preventDropOnDocument,D=r.noClick,x=r.noKeyboard,w=r.noDrag,E=r.noDragEventsBubbling,B=r.onError,A=r.validator,F=S.useMemo(function(){return ko(t)},[t]),M=S.useMemo(function(){return $o(t)},[t]),K=S.useMemo(function(){return typeof m=="function"?m:Mn},[m]),V=S.useMemo(function(){return typeof v=="function"?v:Mn},[v]),T=S.useRef(null),G=S.useRef(null),ee=S.useReducer(tl,Nt),de=mt(ee,2),re=de[0],U=de[1],te=re.isFocused,pe=re.isFileDialogActive,H=S.useRef(typeof window<"u"&&window.isSecureContext&&b&&Wo()),be=function(){!H.current&&pe&&setTimeout(function(){if(G.current){var R=G.current.files;R.length||(U({type:"closeDialog"}),V())}},300)};S.useEffect(function(){return window.addEventListener("focus",be,!1),function(){window.removeEventListener("focus",be,!1)}},[G,pe,V,H]);var X=S.useRef([]),ae=function(R){T.current&&T.current.contains(R.target)||(R.preventDefault(),X.current=[])};S.useEffect(function(){return y&&(document.addEventListener("dragover",Tn,!1),document.addEventListener("drop",ae,!1)),function(){y&&(document.removeEventListener("dragover",Tn),document.removeEventListener("drop",ae))}},[T,y]),S.useEffect(function(){return!n&&h&&T.current&&T.current.focus(),function(){}},[T,h,n]);var fe=S.useCallback(function(C){B?B(C):console.error(C)},[B]),Be=S.useCallback(function(C){C.preventDefault(),C.persist(),Ee(C),X.current=[].concat(Ko(X.current),[C.target]),Pr(C)&&Promise.resolve(a(C)).then(function(R){if(!(Fr(C)&&!E)){var q=R.length,_=q>0&&Fo({files:R,accept:F,minSize:o,maxSize:i,multiple:l,maxFiles:s,validator:A}),oe=q>0&&!_;U({isDragAccept:_,isDragReject:oe,isDragActive:!0,type:"setDraggedFiles"}),c&&c(C)}}).catch(function(R){return fe(R)})},[a,c,fe,E,F,o,i,l,s,A]),Me=S.useCallback(function(C){C.preventDefault(),C.persist(),Ee(C);var R=Pr(C);if(R&&C.dataTransfer)try{C.dataTransfer.dropEffect="copy"}catch{}return R&&u&&u(C),!1},[u,E]),$e=S.useCallback(function(C){C.preventDefault(),C.persist(),Ee(C);var R=X.current.filter(function(_){return T.current&&T.current.contains(_)}),q=R.indexOf(C.target);q!==-1&&R.splice(q,1),X.current=R,!(R.length>0)&&(U({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Pr(C)&&p&&p(C))},[T,p,E]),he=S.useCallback(function(C,R){var q=[],_=[];C.forEach(function(oe){var tr=Ta(oe,F),Ue=mt(tr,2),ut=Ue[0],ct=Ue[1],dt=Ba(oe,o,i),Er=mt(dt,2),pt=Er[0],ft=Er[1],vt=A?A(oe):null;if(ut&&pt&&!vt)q.push(oe);else{var gt=[ct,ft];vt&&(gt=gt.concat(vt)),_.push({file:oe,errors:gt.filter(function(to){return to})})}}),(!l&&q.length>1||l&&s>=1&&q.length>s)&&(q.forEach(function(oe){_.push({file:oe,errors:[Mo]})}),q.splice(0)),U({acceptedFiles:q,fileRejections:_,type:"setFiles"}),d&&d(q,_,R),_.length>0&&g&&g(_,R),q.length>0&&f&&f(q,R)},[U,l,F,o,i,s,d,f,g,A]),Ce=S.useCallback(function(C){C.preventDefault(),C.persist(),Ee(C),X.current=[],Pr(C)&&Promise.resolve(a(C)).then(function(R){Fr(C)&&!E||he(R,C)}).catch(function(R){return fe(R)}),U({type:"reset"})},[a,he,fe,E]),we=S.useCallback(function(){if(H.current){U({type:"openDialog"}),K();var C={multiple:l,types:M};window.showOpenFilePicker(C).then(function(R){return a(R)}).then(function(R){he(R,null),U({type:"closeDialog"})}).catch(function(R){jo(R)?(V(R),U({type:"closeDialog"})):Uo(R)?(H.current=!1,G.current?(G.current.value=null,G.current.click()):fe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):fe(R)});return}G.current&&(U({type:"openDialog"}),K(),G.current.value=null,G.current.click())},[U,K,V,b,he,fe,M,l]),ke=S.useCallback(function(C){!T.current||!T.current.isEqualNode(C.target)||(C.key===" "||C.key==="Enter"||C.keyCode===32||C.keyCode===13)&&(C.preventDefault(),we())},[T,we]),Fe=S.useCallback(function(){U({type:"focus"})},[]),er=S.useCallback(function(){U({type:"blur"})},[]),je=S.useCallback(function(){D||(Go()?setTimeout(we,0):we())},[D,we]),Se=function(R){return n?null:R},rr=function(R){return x?null:Se(R)},Ie=function(R){return w?null:Se(R)},Ee=function(R){E&&R.stopPropagation()},Zi=S.useMemo(function(){return function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=C.refKey,q=R===void 0?"ref":R,_=C.role,oe=C.onKeyDown,tr=C.onFocus,Ue=C.onBlur,ut=C.onClick,ct=C.onDragEnter,dt=C.onDragOver,Er=C.onDragLeave,pt=C.onDrop,ft=Nr(C,qo);return j(j(Ft({onKeyDown:rr(xe(oe,ke)),onFocus:rr(xe(tr,Fe)),onBlur:rr(xe(Ue,er)),onClick:Se(xe(ut,je)),onDragEnter:Ie(xe(ct,Be)),onDragOver:Ie(xe(dt,Me)),onDragLeave:Ie(xe(Er,$e)),onDrop:Ie(xe(pt,Ce)),role:typeof _=="string"&&_!==""?_:"presentation"},q,T),!n&&!x?{tabIndex:0}:{}),ft)}},[T,ke,Fe,er,je,Be,Me,$e,Ce,x,w,n]),eo=S.useCallback(function(C){C.stopPropagation()},[]),ro=S.useMemo(function(){return function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=C.refKey,q=R===void 0?"ref":R,_=C.onChange,oe=C.onClick,tr=Nr(C,Vo),Ue=Ft({accept:F,multiple:l,type:"file",style:{display:"none"},onChange:Se(xe(_,Ce)),onClick:Se(xe(oe,eo)),tabIndex:-1},q,G);return j(j({},Ue),tr)}},[G,t,l,Ce,n]);return j(j({},re),{},{isFocused:te&&!n,getRootProps:Zi,getInputProps:ro,rootRef:T,inputRef:G,open:Se(we)})}function tl(e,r){switch(r.type){case"focus":return j(j({},e),{},{isFocused:!0});case"blur":return j(j({},e),{},{isFocused:!1});case"openDialog":return j(j({},Nt),{},{isFileDialogActive:!0});case"closeDialog":return j(j({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return j(j({},e),{},{isDragActive:r.isDragActive,isDragAccept:r.isDragAccept,isDragReject:r.isDragReject});case"setFiles":return j(j({},e),{},{acceptedFiles:r.acceptedFiles,fileRejections:r.fileRejections});case"reset":return j({},Nt);default:return e}}function Mn(){}var Ga={exports:{}},L={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var J=typeof Symbol=="function"&&Symbol.for,zt=J?Symbol.for("react.element"):60103,Ht=J?Symbol.for("react.portal"):60106,Hr=J?Symbol.for("react.fragment"):60107,qr=J?Symbol.for("react.strict_mode"):60108,Vr=J?Symbol.for("react.profiler"):60114,Kr=J?Symbol.for("react.provider"):60109,Yr=J?Symbol.for("react.context"):60110,qt=J?Symbol.for("react.async_mode"):60111,Jr=J?Symbol.for("react.concurrent_mode"):60111,Xr=J?Symbol.for("react.forward_ref"):60112,_r=J?Symbol.for("react.suspense"):60113,nl=J?Symbol.for("react.suspense_list"):60120,Qr=J?Symbol.for("react.memo"):60115,Zr=J?Symbol.for("react.lazy"):60116,al=J?Symbol.for("react.block"):60121,il=J?Symbol.for("react.fundamental"):60117,ol=J?Symbol.for("react.responder"):60118,ll=J?Symbol.for("react.scope"):60119;function ce(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case zt:switch(e=e.type,e){case qt:case Jr:case Hr:case Vr:case qr:case _r:return e;default:switch(e=e&&e.$$typeof,e){case Yr:case Xr:case Zr:case Qr:case Kr:return e;default:return r}}case Ht:return r}}}function Wa(e){return ce(e)===Jr}L.AsyncMode=qt;L.ConcurrentMode=Jr;L.ContextConsumer=Yr;L.ContextProvider=Kr;L.Element=zt;L.ForwardRef=Xr;L.Fragment=Hr;L.Lazy=Zr;L.Memo=Qr;L.Portal=Ht;L.Profiler=Vr;L.StrictMode=qr;L.Suspense=_r;L.isAsyncMode=function(e){return Wa(e)||ce(e)===qt};L.isConcurrentMode=Wa;L.isContextConsumer=function(e){return ce(e)===Yr};L.isContextProvider=function(e){return ce(e)===Kr};L.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zt};L.isForwardRef=function(e){return ce(e)===Xr};L.isFragment=function(e){return ce(e)===Hr};L.isLazy=function(e){return ce(e)===Zr};L.isMemo=function(e){return ce(e)===Qr};L.isPortal=function(e){return ce(e)===Ht};L.isProfiler=function(e){return ce(e)===Vr};L.isStrictMode=function(e){return ce(e)===qr};L.isSuspense=function(e){return ce(e)===_r};L.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hr||e===Jr||e===Vr||e===qr||e===_r||e===nl||typeof e=="object"&&e!==null&&(e.$$typeof===Zr||e.$$typeof===Qr||e.$$typeof===Kr||e.$$typeof===Yr||e.$$typeof===Xr||e.$$typeof===il||e.$$typeof===ol||e.$$typeof===ll||e.$$typeof===al)};L.typeOf=ce;Ga.exports=L;var sl=Ga.exports,Vt=sl,ul={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cl={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dl={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kt={};Kt[Vt.ForwardRef]=dl;Kt[Vt.Memo]=$a;function Fn(e){return Vt.isMemo(e)?$a:Kt[e.$$typeof]||ul}var pl=Object.defineProperty,fl=Object.getOwnPropertyNames,Nn=Object.getOwnPropertySymbols,vl=Object.getOwnPropertyDescriptor,gl=Object.getPrototypeOf,Ln=Object.prototype;function ka(e,r,t){if(typeof r!="string"){if(Ln){var n=gl(r);n&&n!==Ln&&ka(e,n,t)}var a=fl(r);Nn&&(a=a.concat(Nn(r)));for(var i=Fn(e),o=Fn(r),l=0;l"u"&&(t=r,r=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(ie(1));return t(ja)(e,r)}if(typeof e!="function")throw new Error(ie(2));var a=e,i=r,o=[],l=o,s=!1;function c(){l===o&&(l=o.slice())}function p(){if(s)throw new Error(ie(3));return i}function u(v){if(typeof v!="function")throw new Error(ie(4));if(s)throw new Error(ie(5));var m=!0;return c(),l.push(v),function(){if(m){if(s)throw new Error(ie(6));m=!1,c();var h=l.indexOf(v);l.splice(h,1),o=null}}}function d(v){if(!bl(v))throw new Error(ie(7));if(typeof v.type>"u")throw new Error(ie(8));if(s)throw new Error(ie(9));try{s=!0,i=a(i,v)}finally{s=!1}for(var m=o=l,b=0;b=0;n--){var a=r[n](e);if(a)return a}return function(i,o){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+o.wrappedComponentName+".")}}function ss(e,r){return e===r}function us(e){var r=e===void 0?{}:e,t=r.connectHOC,n=t===void 0?zl:t,a=r.mapStateToPropsFactories,i=a===void 0?_l:a,o=r.mapDispatchToPropsFactories,l=o===void 0?Yl:o,s=r.mergePropsFactories,c=s===void 0?ts:s,p=r.selectorFactory,u=p===void 0?os:p;return function(f,g,v,m){m===void 0&&(m={});var b=m,h=b.pure,y=h===void 0?!0:h,D=b.areStatesEqual,x=D===void 0?ss:D,w=b.areOwnPropsEqual,E=w===void 0?ht:w,B=b.areStatePropsEqual,A=B===void 0?ht:B,F=b.areMergedPropsEqual,M=F===void 0?ht:F,K=qe(b,ls),V=yt(f,i,"mapStateToProps"),T=yt(g,l,"mapDispatchToProps"),G=yt(v,c,"mergeProps");return n(u,O({methodName:"connect",getDisplayName:function(de){return"Connect("+de+")"},shouldHandleStateChanges:!!f,initMapStateToProps:V,initMapDispatchToProps:T,initMergeProps:G,pure:y,areStatesEqual:x,areOwnPropsEqual:E,areStatePropsEqual:A,areMergedPropsEqual:M},K))}}const ei=us();Dl(oo.unstable_batchedUpdates);function cs(e,r){if(e.length!==r.length)return!1;for(var t=0;t");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var t=r.prototype;return t.componentDidMount=function(){this.unbind=ge(window,[{eventName:"error",fn:this.onWindowError}])},t.componentDidCatch=function(a){if(a instanceof Wr){this.setState({});return}throw a},t.componentWillUnmount=function(){this.unbind()},t.render=function(){return this.props.children(this.setCallbacks)},r}(k.Component),Is=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,$r=function(r){return r+1},xs=function(r){return` You have lifted an item in position `+$r(r.source.index)+` `},ii=function(r,t){var n=r.droppableId===t.droppableId,a=$r(r.index),i=$r(t.index);return n?` You have moved the item from position `+a+` to position `+i+` `:` You have moved the item from position `+a+` in list `+r.droppableId+` to list `+t.droppableId+` in position `+i+` `},oi=function(r,t,n){var a=t.droppableId===n.droppableId;return a?` The item `+r+` has been combined with `+n.draggableId:` The item `+r+` in list `+t.droppableId+` has been combined with `+n.draggableId+` in list `+n.droppableId+` `},ws=function(r){var t=r.destination;if(t)return ii(r.source,t);var n=r.combine;return n?oi(r.draggableId,r.source,n):"You are over an area that cannot be dropped on"},Xn=function(r){return` The item has returned to its starting position of `+$r(r.index)+` `},Cs=function(r){if(r.reason==="CANCEL")return` Movement cancelled. `+Xn(r.source)+` `;var t=r.destination,n=r.combine;return t?` You have dropped the item. `+ii(r.source,t)+` `:n?` You have dropped the item. `+oi(r.draggableId,r.source,n)+` `:` The item has been dropped while not over a drop area. `+Xn(r.source)+` `},Br={dragHandleUsageInstructions:Is,onDragStart:xs,onDragUpdate:ws,onDragEnd:Cs},Y={x:0,y:0},Z=function(r,t){return{x:r.x+t.x,y:r.y+t.y}},le=function(r,t){return{x:r.x-t.x,y:r.y-t.y}},Ae=function(r,t){return r.x===t.x&&r.y===t.y},_e=function(r){return{x:r.x!==0?-r.x:0,y:r.y!==0?-r.y:0}},We=function(r,t,n){var a;return n===void 0&&(n=0),a={},a[r]=t,a[r==="x"?"y":"x"]=n,a},cr=function(r,t){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))},_n=function(r,t){return Math.min.apply(Math,t.map(function(n){return cr(r,n)}))},li=function(r){return function(t){return{x:r(t.x),y:r(t.y)}}},Es=function(e,r){var t=ye({top:Math.max(r.top,e.top),right:Math.min(r.right,e.right),bottom:Math.min(r.bottom,e.bottom),left:Math.max(r.left,e.left)});return t.width<=0||t.height<=0?null:t},wr=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},Qn=function(r){return[{x:r.left,y:r.top},{x:r.right,y:r.top},{x:r.left,y:r.bottom},{x:r.right,y:r.bottom}]},Ps={top:0,right:0,bottom:0,left:0},As=function(r,t){return t?wr(r,t.scroll.diff.displacement):r},Os=function(r,t,n){if(n&&n.increasedBy){var a;return O({},r,(a={},a[t.end]=r[t.end]+n.increasedBy[t.line],a))}return r},Rs=function(r,t){return t&&t.shouldClipSubject?Es(t.pageMarginBox,r):ye(r)},Ve=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,a=e.frame,i=As(r.marginBox,a),o=Os(i,n,t),l=Rs(o,a);return{page:r,withPlaceholder:t,active:l}},Zt=function(e,r){e.frame||I(!1);var t=e.frame,n=le(r,t.scroll.initial),a=_e(n),i=O({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:a},max:t.scroll.max}}),o=Ve({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i}),l=O({},e,{frame:i,subject:o});return l};function kr(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function en(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;te.bottom,c=n.lefte.right,p=s&&c;if(p)return!0;var u=s&&o||c&&i;return u}},Fs=function(e){var r=me(e.top,e.bottom),t=me(e.left,e.right);return function(n){var a=r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right);return a}},tn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},fi={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ns=function(e){return function(r){var t=me(r.top,r.bottom),n=me(r.left,r.right);return function(a){return e===tn?t(a.top)&&t(a.bottom):n(a.left)&&n(a.right)}}},Ls=function(r,t){var n=t.frame?t.frame.scroll.diff.displacement:Y;return wr(r,n)},Gs=function(r,t,n){return t.subject.active?n(t.subject.active)(r):!1},Ws=function(r,t,n){return n(t)(r)},nn=function(r){var t=r.target,n=r.destination,a=r.viewport,i=r.withDroppableDisplacement,o=r.isVisibleThroughFrameFn,l=i?Ls(t,n):t;return Gs(l,n,o)&&Ws(l,a,o)},$s=function(r){return nn(O({},r,{isVisibleThroughFrameFn:pi}))},vi=function(r){return nn(O({},r,{isVisibleThroughFrameFn:Fs}))},ks=function(r){return nn(O({},r,{isVisibleThroughFrameFn:Ns(r.destination.axis)}))},js=function(r,t,n){if(typeof n=="boolean")return n;if(!t)return!0;var a=t.invisible,i=t.visible;if(a[r])return!1;var o=i[r];return o?o.shouldAnimate:!0};function Us(e,r){var t=e.page.marginBox,n={top:r.point.y,right:0,bottom:0,left:r.point.x};return ye(_t(t,n))}function pr(e){var r=e.afterDragging,t=e.destination,n=e.displacedBy,a=e.viewport,i=e.forceShouldAnimate,o=e.last;return r.reduce(function(s,c){var p=Us(c,n),u=c.descriptor.id;s.all.push(u);var d=$s({target:p,destination:t,viewport:a,withDroppableDisplacement:!0});if(!d)return s.invisible[c.descriptor.id]=!0,s;var f=js(u,o,i),g={draggableId:u,shouldAnimate:f};return s.visible[u]=g,s},{all:[],visible:{},invisible:{}})}function zs(e,r){if(!e.length)return 0;var t=e[e.length-1].descriptor.index;return r.inHomeList?t:t+1}function Zn(e){var r=e.insideDestination,t=e.inHomeList,n=e.displacedBy,a=e.destination,i=zs(r,{inHomeList:t});return{displaced:dr,displacedBy:n,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:i}}}}function jr(e){var r=e.draggable,t=e.insideDestination,n=e.destination,a=e.viewport,i=e.displacedBy,o=e.last,l=e.index,s=e.forceShouldAnimate,c=Ze(r,n);if(l==null)return Zn({insideDestination:t,inHomeList:c,displacedBy:i,destination:n});var p=Te(t,function(v){return v.descriptor.index===l});if(!p)return Zn({insideDestination:t,inHomeList:c,displacedBy:i,destination:n});var u=at(r,t),d=t.indexOf(p),f=u.slice(d),g=pr({afterDragging:f,destination:n,displacedBy:i,last:o,viewport:a.frame,forceShouldAnimate:s});return{displaced:g,displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function Re(e,r){return!!r.effected[e]}var Hs=function(e){var r=e.isMovingForward,t=e.destination,n=e.draggables,a=e.combine,i=e.afterCritical;if(!t.isCombineEnabled)return null;var o=a.draggableId,l=n[o],s=l.descriptor.index,c=Re(o,i);return c?r?s:s-1:r?s+1:s},qs=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.insideDestination,a=e.location;if(!n.length)return null;var i=a.index,o=r?i+1:i-1,l=n[0].descriptor.index,s=n[n.length-1].descriptor.index,c=t?s:s+1;return oc?null:o},Vs=function(e){var r=e.isMovingForward,t=e.isInHomeList,n=e.draggable,a=e.draggables,i=e.destination,o=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,p=l.at;if(p||I(!1),p.type==="REORDER"){var u=qs({isMovingForward:r,isInHomeList:t,location:p.destination,insideDestination:o});return u==null?null:jr({draggable:n,insideDestination:o,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:u})}var d=Hs({isMovingForward:r,destination:i,displaced:l.displaced,draggables:a,combine:p.combine,afterCritical:c});return d==null?null:jr({draggable:n,insideDestination:o,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})},Ks=function(e){var r=e.displaced,t=e.afterCritical,n=e.combineWith,a=e.displacedBy,i=!!(r.visible[n]||r.invisible[n]);return Re(n,t)?i?Y:_e(a.point):i?a.point:Y},Ys=function(e){var r=e.afterCritical,t=e.impact,n=e.draggables,a=nt(t);a||I(!1);var i=a.draggableId,o=n[i].page.borderBox.center,l=Ks({displaced:t.displaced,afterCritical:r,combineWith:i,displacedBy:t.displacedBy});return Z(o,l)},gi=function(r,t){return t.margin[r.start]+t.borderBox[r.size]/2},Js=function(r,t){return t.margin[r.end]+t.borderBox[r.size]/2},an=function(r,t,n){return t[r.crossAxisStart]+n.margin[r.crossAxisStart]+n.borderBox[r.crossAxisSize]/2},ea=function(r){var t=r.axis,n=r.moveRelativeTo,a=r.isMoving;return We(t.line,n.marginBox[t.end]+gi(t,a),an(t,n.marginBox,a))},ra=function(r){var t=r.axis,n=r.moveRelativeTo,a=r.isMoving;return We(t.line,n.marginBox[t.start]-Js(t,a),an(t,n.marginBox,a))},Xs=function(r){var t=r.axis,n=r.moveInto,a=r.isMoving;return We(t.line,n.contentBox[t.start]+gi(t,a),an(t,n.contentBox,a))},_s=function(e){var r=e.impact,t=e.draggable,n=e.draggables,a=e.droppable,i=e.afterCritical,o=Qe(a.descriptor.id,n),l=t.page,s=a.axis;if(!o.length)return Xs({axis:s,moveInto:a.page,isMoving:l});var c=r.displaced,p=r.displacedBy,u=c.all[0];if(u){var d=n[u];if(Re(u,i))return ra({axis:s,moveRelativeTo:d.page,isMoving:l});var f=Lr(d.page,p.point);return ra({axis:s,moveRelativeTo:f,isMoving:l})}var g=o[o.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(Re(g.descriptor.id,i)){var v=Lr(g.page,_e(i.displacedBy.point));return ea({axis:s,moveRelativeTo:v,isMoving:l})}return ea({axis:s,moveRelativeTo:g.page,isMoving:l})},Lt=function(e,r){var t=e.frame;return t?Z(r,t.scroll.diff.displacement):r},Qs=function(r){var t=r.impact,n=r.draggable,a=r.droppable,i=r.draggables,o=r.afterCritical,l=n.page.borderBox.center,s=t.at;return!a||!s?l:s.type==="REORDER"?_s({impact:t,draggable:n,draggables:i,droppable:a,afterCritical:o}):Ys({impact:t,draggables:i,afterCritical:o})},it=function(e){var r=Qs(e),t=e.droppable,n=t?Lt(t,r):r;return n},mi=function(e,r){var t=le(r,e.scroll.initial),n=_e(t),a=ye({top:r.y,bottom:r.y+e.frame.height,left:r.x,right:r.x+e.frame.width}),i={frame:a,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:r,diff:{value:t,displacement:n}}};return i};function ta(e,r){return e.map(function(t){return r[t]})}function Zs(e,r){for(var t=0;t1?p.sort(function(u,d){return ne(u)[l.start]-ne(d)[l.start]})[0]:c.sort(function(u,d){var f=_n(t,Qn(ne(u))),g=_n(t,Qn(ne(d)));return f!==g?f-g:ne(u)[l.start]-ne(d)[l.start]})[0]},na=function(r,t){var n=r.page.borderBox.center;return Re(r.descriptor.id,t)?le(n,t.displacedBy.point):n},au=function(r,t){var n=r.page.borderBox;return Re(r.descriptor.id,t)?wr(n,_e(t.displacedBy.point)):n},iu=function(e){var r=e.pageBorderBoxCenter,t=e.viewport,n=e.destination,a=e.insideDestination,i=e.afterCritical,o=a.filter(function(l){return vi({target:au(l,i),destination:n,viewport:t.frame,withDroppableDisplacement:!0})}).sort(function(l,s){var c=cr(r,Lt(n,na(l,i))),p=cr(r,Lt(n,na(s,i)));return cr.left&&e.topr.top}function fu(e){var r=e.pageBorderBox,t=e.draggable,n=e.candidates,a=t.page.borderBox.center,i=n.map(function(o){var l=o.axis,s=We(o.axis.line,r.center[l.line],o.page.borderBox.center[l.crossAxisLine]);return{id:o.descriptor.id,distance:cr(a,s)}}).sort(function(o,l){return l.distance-o.distance});return i[0]?i[0].id:null}function vu(e){var r=e.pageBorderBox,t=e.draggable,n=e.droppables,a=tt(n).filter(function(i){if(!i.isEnabled)return!1;var o=i.subject.active;if(!o||!pu(r,o))return!1;if(Di(o)(r.center))return!0;var l=i.axis,s=o.center[l.crossAxisLine],c=r[l.crossAxisStart],p=r[l.crossAxisEnd],u=me(o[l.crossAxisStart],o[l.crossAxisEnd]),d=u(c),f=u(p);return!d&&!f?!0:d?cs});return a.length?a.length===1?a[0].descriptor.id:fu({pageBorderBox:r,draggable:t,candidates:a}):null}var Si=function(r,t){return ye(wr(r,t))},gu=function(e,r){var t=e.frame;return t?Si(r,t.scroll.diff.value):r};function Ii(e){var r=e.displaced,t=e.id;return!!(r.visible[t]||r.invisible[t])}function mu(e){var r=e.draggable,t=e.closest,n=e.inHomeList;return t?n&&t.descriptor.index>r.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var bu=function(e){var r=e.pageBorderBoxWithDroppableScroll,t=e.draggable,n=e.destination,a=e.insideDestination,i=e.last,o=e.viewport,l=e.afterCritical,s=n.axis,c=Cr(n.axis,t.displaceBy),p=c.value,u=r[s.start],d=r[s.end],f=at(t,a),g=Te(f,function(m){var b=m.descriptor.id,h=m.page.borderBox.center[s.line],y=Re(b,l),D=Ii({displaced:i,id:b});return y?D?d<=h:ub[l.start]+y&&ub[l.start]-c+y&&pb[l.start]+c+y&&ub[l.start]+y&&p=oa)return Ti;var i=a/oa,o=$t+Yu*i,l=n==="CANCEL"?o*Ju:o;return Number(l.toFixed(2))},_u=function(e){var r=e.impact,t=e.draggable,n=e.dimensions,a=e.viewport,i=e.afterCritical,o=n.draggables,l=n.droppables,s=se(r),c=s?l[s]:null,p=l[t.descriptor.droppableId],u=Ci({impact:r,draggable:t,draggables:o,afterCritical:i,droppable:c||p,viewport:a}),d=le(u,t.client.borderBox.center);return d},Qu=function(e){var r=e.draggables,t=e.reason,n=e.lastImpact,a=e.home,i=e.viewport,o=e.onLiftImpact;if(!n.at||t!=="DROP"){var l=wi({draggables:r,impact:o,destination:a,viewport:i,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if(n.at.type==="REORDER")return{impact:n,didDropInsideDroppable:!0};var s=O({},n,{displaced:dr});return{impact:s,didDropInsideDroppable:!0}},Zu=function(e){var r=e.getState,t=e.dispatch;return function(n){return function(a){if(a.type!=="DROP"){n(a);return}var i=r(),o=a.payload.reason;if(i.phase==="COLLECTING"){t(qu({reason:o}));return}if(i.phase!=="IDLE"){var l=i.phase==="DROP_PENDING"&&i.isWaiting;l&&I(!1),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||I(!1);var s=i.critical,c=i.dimensions,p=c.draggables[i.critical.draggable.id],u=Qu({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=u.impact,f=u.didDropInsideDroppable,g=f?rn(d):null,v=f?nt(d):null,m={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:p.descriptor.id,type:p.descriptor.type,source:m,reason:o,mode:i.movementMode,destination:g,combine:v},h=_u({impact:d,draggable:p,dimensions:c,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d},D=!Ae(i.current.client.offset,h)||!!b.combine;if(!D){t(un({completed:y}));return}var x=Xu({current:i.current.client.offset,destination:h,reason:o}),w={newHomeClientOffset:h,dropDuration:x,completed:y};t(Hu(w))}}}},Bi=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ec(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}function rc(e){var r=e.onWindowScroll;function t(){r(Bi())}var n=ur(t),a=ec(n),i=Pe;function o(){return i!==Pe}function l(){o()&&I(!1),i=ge(window,[a])}function s(){o()||I(!1),n.cancel(),i(),i=Pe}return{start:l,stop:s,isActive:o}}var tc=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},nc=function(e){var r=rc({onWindowScroll:function(n){e.dispatch(Wu({newScroll:n}))}});return function(t){return function(n){!r.isActive()&&n.type==="INITIAL_PUBLISH"&&r.start(),r.isActive()&&tc(n)&&r.stop(),t(n)}}},ac=function(e){var r=!1,t=!1,n=setTimeout(function(){t=!0}),a=function(o){r||t||(r=!0,e(o),clearTimeout(n))};return a.wasCalled=function(){return r},a},ic=function(){var e=[],r=function(i){var o=en(e,function(c){return c.timerId===i});o===-1&&I(!1);var l=e.splice(o,1),s=l[0];s.callback()},t=function(i){var o=setTimeout(function(){return r(o)}),l={timerId:o,callback:i};e.push(l)},n=function(){if(e.length){var i=[].concat(e);e.length=0,i.forEach(function(o){clearTimeout(o.timerId),o.callback()})}};return{add:t,flush:n}},oc=function(r,t){return r==null&&t==null?!0:r==null||t==null?!1:r.droppableId===t.droppableId&&r.index===t.index},lc=function(r,t){return r==null&&t==null?!0:r==null||t==null?!1:r.draggableId===t.draggableId&&r.droppableId===t.droppableId},sc=function(r,t){if(r===t)return!0;var n=r.draggable.id===t.draggable.id&&r.draggable.droppableId===t.draggable.droppableId&&r.draggable.type===t.draggable.type&&r.draggable.index===t.draggable.index,a=r.droppable.id===t.droppable.id&&r.droppable.type===t.droppable.type;return n&&a},nr=function(r,t){t()},Ar=function(r,t){return{draggableId:r.draggable.id,type:r.droppable.type,source:{droppableId:r.droppable.id,index:r.draggable.index},mode:t}},wt=function(r,t,n,a){if(!r){n(a(t));return}var i=ac(n),o={announce:i};r(t,o),i.wasCalled()||n(a(t))},uc=function(e,r){var t=ic(),n=null,a=function(d,f){n&&I(!1),nr("onBeforeCapture",function(){var g=e().onBeforeCapture;if(g){var v={draggableId:d,mode:f};g(v)}})},i=function(d,f){n&&I(!1),nr("onBeforeDragStart",function(){var g=e().onBeforeDragStart;g&&g(Ar(d,f))})},o=function(d,f){n&&I(!1);var g=Ar(d,f);n={mode:f,lastCritical:d,lastLocation:g.source,lastCombine:null},t.add(function(){nr("onDragStart",function(){return wt(e().onDragStart,g,r,Br.onDragStart)})})},l=function(d,f){var g=rn(f),v=nt(f);n||I(!1);var m=!sc(d,n.lastCritical);m&&(n.lastCritical=d);var b=!oc(n.lastLocation,g);b&&(n.lastLocation=g);var h=!lc(n.lastCombine,v);if(h&&(n.lastCombine=v),!(!m&&!b&&!h)){var y=O({},Ar(d,n.mode),{combine:v,destination:g});t.add(function(){nr("onDragUpdate",function(){return wt(e().onDragUpdate,y,r,Br.onDragUpdate)})})}},s=function(){n||I(!1),t.flush()},c=function(d){n||I(!1),n=null,nr("onDragEnd",function(){return wt(e().onDragEnd,d,r,Br.onDragEnd)})},p=function(){if(n){var d=O({},Ar(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});c(d)}};return{beforeCapture:a,beforeStart:i,start:o,update:l,flush:s,drop:c,abort:p}},cc=function(e,r){var t=uc(e,r);return function(n){return function(a){return function(i){if(i.type==="BEFORE_INITIAL_CAPTURE"){t.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){var o=i.payload.critical;t.beforeStart(o,i.payload.movementMode),a(i),t.start(o,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){var l=i.payload.completed.result;t.flush(),a(i),t.drop(l);return}if(a(i),i.type==="FLUSH"){t.abort();return}var s=n.getState();s.phase==="DRAGGING"&&t.update(s.critical,s.impact)}}}},dc=function(e){return function(r){return function(t){if(t.type!=="DROP_ANIMATION_FINISHED"){r(t);return}var n=e.getState();n.phase!=="DROP_ANIMATING"&&I(!1),e.dispatch(un({completed:n.completed}))}}},pc=function(e){var r=null,t=null;function n(){t&&(cancelAnimationFrame(t),t=null),r&&(r(),r=null)}return function(a){return function(i){if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&n(),a(i),i.type==="DROP_ANIMATE"){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var s=e.getState();s.phase==="DROP_ANIMATING"&&e.dispatch(Ri())}};t=requestAnimationFrame(function(){t=null,r=ge(window,[o])})}}}},fc=function(e){return function(){return function(r){return function(t){(t.type==="DROP_COMPLETE"||t.type==="FLUSH"||t.type==="DROP_ANIMATE")&&e.stopPublishing(),r(t)}}}},vc=function(e){var r=!1;return function(){return function(t){return function(n){if(n.type==="INITIAL_PUBLISH"){r=!0,e.tryRecordFocus(n.payload.critical.draggable.id),t(n),e.tryRestoreFocusRecorded();return}if(t(n),!!r){if(n.type==="FLUSH"){r=!1,e.tryRestoreFocusRecorded();return}if(n.type==="DROP_COMPLETE"){r=!1;var a=n.payload.completed.result;a.combine&&e.tryShiftRecord(a.draggableId,a.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},gc=function(r){return r.type==="DROP_COMPLETE"||r.type==="DROP_ANIMATE"||r.type==="FLUSH"},mc=function(e){return function(r){return function(t){return function(n){if(gc(n)){e.stop(),t(n);return}if(n.type==="INITIAL_PUBLISH"){t(n);var a=r.getState();a.phase!=="DRAGGING"&&I(!1),e.start(a);return}t(n),e.scroll(r.getState())}}}},bc=function(e){return function(r){return function(t){if(r(t),t.type==="PUBLISH_WHILE_DRAGGING"){var n=e.getState();n.phase==="DROP_PENDING"&&(n.isWaiting||e.dispatch(Oi({reason:n.reason})))}}}},hc=Ua,yc=function(e){var r=e.dimensionMarshal,t=e.focusMarshal,n=e.styleMarshal,a=e.getResponders,i=e.announce,o=e.autoScroller;return ja(Ou,hc(hl(Ku(n),fc(r),Vu(r),Zu,dc,pc,bc,mc(o),nc,vc(t),cc(a,i))))},Ct=function(){return{additions:{},removals:{},modified:{}}};function Dc(e){var r=e.registry,t=e.callbacks,n=Ct(),a=null,i=function(){a||(t.collectionStarting(),a=requestAnimationFrame(function(){a=null;var p=n,u=p.additions,d=p.removals,f=p.modified,g=Object.keys(u).map(function(b){return r.draggable.getById(b).getDimension(Y)}).sort(function(b,h){return b.descriptor.index-h.descriptor.index}),v=Object.keys(f).map(function(b){var h=r.droppable.getById(b),y=h.callbacks.getScrollWhileDragging();return{droppableId:b,scroll:y}}),m={additions:g,removals:Object.keys(d),modified:v};n=Ct(),t.publish(m)}))},o=function(p){var u=p.descriptor.id;n.additions[u]=p,n.modified[p.descriptor.droppableId]=!0,n.removals[u]&&delete n.removals[u],i()},l=function(p){var u=p.descriptor;n.removals[u.id]=!0,n.modified[u.droppableId]=!0,n.additions[u.id]&&delete n.additions[u.id],i()},s=function(){a&&(cancelAnimationFrame(a),a=null,n=Ct())};return{add:o,remove:l,stop:s}}var Mi=function(e){var r=e.scrollHeight,t=e.scrollWidth,n=e.height,a=e.width,i=le({x:t,y:r},{x:a,y:n}),o={x:Math.max(0,i.x),y:Math.max(0,i.y)};return o},Fi=function(){var e=document.documentElement;return e||I(!1),e},Ni=function(){var e=Fi(),r=Mi({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return r},Sc=function(){var e=Bi(),r=Ni(),t=e.y,n=e.x,a=Fi(),i=a.clientWidth,o=a.clientHeight,l=n+i,s=t+o,c=ye({top:t,left:n,right:l,bottom:s}),p={frame:c,scroll:{initial:e,current:e,max:r,diff:{value:Y,displacement:Y}}};return p},Ic=function(e){var r=e.critical,t=e.scrollOptions,n=e.registry,a=Sc(),i=a.scroll.current,o=r.droppable,l=n.droppable.getAllByType(o.type).map(function(u){return u.callbacks.getDimensionAndWatchScroll(i,t)}),s=n.draggable.getAllByType(r.draggable.type).map(function(u){return u.getDimension(i)}),c={draggables:ci(s),droppables:ui(l)},p={dimensions:c,critical:r,viewport:a};return p};function la(e,r,t){if(t.descriptor.id===r.id||t.descriptor.type!==r.type)return!1;var n=e.droppable.getById(t.descriptor.droppableId);return n.descriptor.mode==="virtual"}var xc=function(e,r){var t=null,n=Dc({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:e}),a=function(f,g){e.droppable.exists(f)||I(!1),t&&r.updateDroppableIsEnabled({id:f,isEnabled:g})},i=function(f,g){t&&(e.droppable.exists(f)||I(!1),r.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:g}))},o=function(f,g){t&&(e.droppable.exists(f)||I(!1),r.updateDroppableScroll({id:f,newScroll:g}))},l=function(f,g){t&&e.droppable.getById(f).callbacks.scroll(g)},s=function(){if(t){n.stop();var f=t.critical.droppable;e.droppable.getAllByType(f.type).forEach(function(g){return g.callbacks.dragStopped()}),t.unsubscribe(),t=null}},c=function(f){t||I(!1);var g=t.critical.draggable;f.type==="ADDITION"&&la(e,g,f.value)&&n.add(f.value),f.type==="REMOVAL"&&la(e,g,f.value)&&n.remove(f.value)},p=function(f){t&&I(!1);var g=e.draggable.getById(f.draggableId),v=e.droppable.getById(g.descriptor.droppableId),m={draggable:g.descriptor,droppable:v.descriptor},b=e.subscribe(c);return t={critical:m,unsubscribe:b},Ic({critical:m,registry:e,scrollOptions:f.scrollOptions})},u={updateDroppableIsEnabled:a,updateDroppableIsCombineEnabled:i,scrollDroppable:l,updateDroppableScroll:o,startPublishing:p,stopPublishing:s};return u},Li=function(e,r){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===r?!1:e.completed.result.reason==="DROP"},wc=function(e){window.scrollBy(e.x,e.y)},Cc=z(function(e){return tt(e).filter(function(r){return!(!r.isEnabled||!r.frame)})}),Ec=function(r,t){var n=Te(Cc(t),function(a){return a.frame||I(!1),Di(a.frame.pageMarginBox)(r)});return n},Pc=function(e){var r=e.center,t=e.destination,n=e.droppables;if(t){var a=n[t];return a.frame?a:null}var i=Ec(r,n);return i},Oe={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(r){return Math.pow(r,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},Ac=function(e,r){var t=e[r.size]*Oe.startFromPercentage,n=e[r.size]*Oe.maxScrollAtPercentage,a={startScrollingFrom:t,maxScrollValueAt:n};return a},Gi=function(e){var r=e.startOfRange,t=e.endOfRange,n=e.current,a=t-r;if(a===0)return 0;var i=n-r,o=i/a;return o},pn=1,Oc=function(e,r){if(e>r.startScrollingFrom)return 0;if(e<=r.maxScrollValueAt)return Oe.maxPixelScroll;if(e===r.startScrollingFrom)return pn;var t=Gi({startOfRange:r.maxScrollValueAt,endOfRange:r.startScrollingFrom,current:e}),n=1-t,a=Oe.maxPixelScroll*Oe.ease(n);return Math.ceil(a)},sa=Oe.durationDampening.accelerateAt,ua=Oe.durationDampening.stopDampeningAt,Rc=function(e,r){var t=r,n=ua,a=Date.now(),i=a-t;if(i>=ua)return e;if(ir.height,i=t.width>r.width;return!i&&!a?n:i&&a?null:{x:i?0:n.x,y:a?0:n.y}},Bc=li(function(e){return e===0?0:e}),Wi=function(e){var r=e.dragStartTime,t=e.container,n=e.subject,a=e.center,i=e.shouldUseTimeDampening,o={top:a.y-t.top,right:t.right-a.x,bottom:t.bottom-a.y,left:a.x-t.left},l=da({container:t,distanceToEdges:o,dragStartTime:r,axis:tn,shouldUseTimeDampening:i}),s=da({container:t,distanceToEdges:o,dragStartTime:r,axis:fi,shouldUseTimeDampening:i}),c=Bc({x:s,y:l});if(Ae(c,Y))return null;var p=Tc({container:t,subject:n,proposedScroll:c});return p?Ae(p,Y)?null:p:null},Mc=li(function(e){return e===0?0:e>0?1:-1}),fn=function(){var e=function(t,n){return t<0?t:t>n?t-n:0};return function(r){var t=r.current,n=r.max,a=r.change,i=Z(t,a),o={x:e(i.x,n.x),y:e(i.y,n.y)};return Ae(o,Y)?null:o}}(),$i=function(r){var t=r.max,n=r.current,a=r.change,i={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},o=Mc(a),l=fn({max:i,current:n,change:o});return!l||o.x!==0&&l.x===0||o.y!==0&&l.y===0},vn=function(r,t){return $i({current:r.scroll.current,max:r.scroll.max,change:t})},Fc=function(r,t){if(!vn(r,t))return null;var n=r.scroll.max,a=r.scroll.current;return fn({current:a,max:n,change:t})},gn=function(r,t){var n=r.frame;return n?$i({current:n.scroll.current,max:n.scroll.max,change:t}):!1},Nc=function(r,t){var n=r.frame;return!n||!gn(r,t)?null:fn({current:n.scroll.current,max:n.scroll.max,change:t})},Lc=function(e){var r=e.viewport,t=e.subject,n=e.center,a=e.dragStartTime,i=e.shouldUseTimeDampening,o=Wi({dragStartTime:a,container:r.frame,subject:t,center:n,shouldUseTimeDampening:i});return o&&vn(r,o)?o:null},Gc=function(e){var r=e.droppable,t=e.subject,n=e.center,a=e.dragStartTime,i=e.shouldUseTimeDampening,o=r.frame;if(!o)return null;var l=Wi({dragStartTime:a,container:o.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:i});return l&&gn(r,l)?l:null},pa=function(e){var r=e.state,t=e.dragStartTime,n=e.shouldUseTimeDampening,a=e.scrollWindow,i=e.scrollDroppable,o=r.current.page.borderBoxCenter,l=r.dimensions.draggables[r.critical.draggable.id],s=l.page.marginBox;if(r.isWindowScrollAllowed){var c=r.viewport,p=Lc({dragStartTime:t,viewport:c,subject:s,center:o,shouldUseTimeDampening:n});if(p){a(p);return}}var u=Pc({center:o,destination:se(r.impact),droppables:r.dimensions.droppables});if(u){var d=Gc({dragStartTime:t,droppable:u,subject:s,center:o,shouldUseTimeDampening:n});d&&i(u.descriptor.id,d)}},Wc=function(e){var r=e.scrollWindow,t=e.scrollDroppable,n=ur(r),a=ur(t),i=null,o=function(p){i||I(!1);var u=i,d=u.shouldUseTimeDampening,f=u.dragStartTime;pa({state:p,scrollWindow:n,scrollDroppable:a,dragStartTime:f,shouldUseTimeDampening:d})},l=function(p){i&&I(!1);var u=Date.now(),d=!1,f=function(){d=!0};pa({state:p,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:f,scrollDroppable:f}),i={dragStartTime:u,shouldUseTimeDampening:d},d&&o(p)},s=function(){i&&(n.cancel(),a.cancel(),i=null)};return{start:l,stop:s,scroll:o}},$c=function(e){var r=e.move,t=e.scrollDroppable,n=e.scrollWindow,a=function(c,p){var u=Z(c.current.client.selection,p);r({client:u})},i=function(c,p){if(!gn(c,p))return p;var u=Nc(c,p);if(!u)return t(c.descriptor.id,p),null;var d=le(p,u);t(c.descriptor.id,d);var f=le(p,d);return f},o=function(c,p,u){if(!c||!vn(p,u))return u;var d=Fc(p,u);if(!d)return n(u),null;var f=le(u,d);n(f);var g=le(u,f);return g},l=function(c){var p=c.scrollJumpRequest;if(p){var u=se(c.impact);u||I(!1);var d=i(c.dimensions.droppables[u],p);if(d){var f=c.viewport,g=o(c.isWindowScrollAllowed,f,d);g&&a(c,g)}}};return l},kc=function(e){var r=e.scrollDroppable,t=e.scrollWindow,n=e.move,a=Wc({scrollWindow:t,scrollDroppable:r}),i=$c({move:n,scrollWindow:t,scrollDroppable:r}),o=function(c){if(c.phase==="DRAGGING"){if(c.movementMode==="FLUID"){a.scroll(c);return}c.scrollJumpRequest&&i(c)}},l={scroll:o,start:a.start,stop:a.stop};return l},Ke="data-rbd",Ye=function(){var e=Ke+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),kt=function(){var e=Ke+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),jc=function(){var e=Ke+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),fa={contextId:Ke+"-scroll-container-context-id"},Uc=function(r){return function(t){return"["+t+'="'+r+'"]'}},ar=function(r,t){return r.map(function(n){var a=n.styles[t];return a?n.selector+" { "+a+" }":""}).join(" ")},zc="pointer-events: none;",Hc=function(e){var r=Uc(e),t=function(){var l=` cursor: -webkit-grab; cursor: grab; `;return{selector:r(Ye.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:l,dragging:zc,dropAnimating:l}}}(),n=function(){var l=` transition: `+lr.outOfTheWay+`; `;return{selector:r(kt.contextId),styles:{dragging:l,dropAnimating:l,userCancel:l}}}(),a={selector:r(jc.contextId),styles:{always:"overflow-anchor: none;"}},i={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}},o=[n,t,a,i];return{always:ar(o,"always"),resting:ar(o,"resting"),dragging:ar(o,"dragging"),dropAnimating:ar(o,"dropAnimating"),userCancel:ar(o,"userCancel")}},ue=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect,Et=function(){var r=document.querySelector("head");return r||I(!1),r},va=function(r){var t=document.createElement("style");return r&&t.setAttribute("nonce",r),t.type="text/css",t};function qc(e,r){var t=N(function(){return Hc(e)},[e]),n=S.useRef(null),a=S.useRef(null),i=P(z(function(u){var d=a.current;d||I(!1),d.textContent=u}),[]),o=P(function(u){var d=n.current;d||I(!1),d.textContent=u},[]);ue(function(){!n.current&&!a.current||I(!1);var u=va(r),d=va(r);return n.current=u,a.current=d,u.setAttribute(Ke+"-always",e),d.setAttribute(Ke+"-dynamic",e),Et().appendChild(u),Et().appendChild(d),o(t.always),i(t.resting),function(){var f=function(v){var m=v.current;m||I(!1),Et().removeChild(m),v.current=null};f(n),f(a)}},[r,o,i,t.always,t.resting,e]);var l=P(function(){return i(t.dragging)},[i,t.dragging]),s=P(function(u){if(u==="DROP"){i(t.dropAnimating);return}i(t.userCancel)},[i,t.dropAnimating,t.userCancel]),c=P(function(){a.current&&i(t.resting)},[i,t.resting]),p=N(function(){return{dragging:l,dropping:s,resting:c}},[l,s,c]);return p}var ki=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function ot(e){return e instanceof ki(e).HTMLElement}function Vc(e,r){var t="["+Ye.contextId+'="'+e+'"]',n=si(document.querySelectorAll(t));if(!n.length)return null;var a=Te(n,function(i){return i.getAttribute(Ye.draggableId)===r});return!a||!ot(a)?null:a}function Kc(e){var r=S.useRef({}),t=S.useRef(null),n=S.useRef(null),a=S.useRef(!1),i=P(function(d,f){var g={id:d,focus:f};return r.current[d]=g,function(){var m=r.current,b=m[d];b!==g&&delete m[d]}},[]),o=P(function(d){var f=Vc(e,d);f&&f!==document.activeElement&&f.focus()},[e]),l=P(function(d,f){t.current===d&&(t.current=f)},[]),s=P(function(){n.current||a.current&&(n.current=requestAnimationFrame(function(){n.current=null;var d=t.current;d&&o(d)}))},[o]),c=P(function(d){t.current=null;var f=document.activeElement;f&&f.getAttribute(Ye.draggableId)===d&&(t.current=d)},[]);ue(function(){return a.current=!0,function(){a.current=!1;var d=n.current;d&&cancelAnimationFrame(d)}},[]);var p=N(function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:l}},[i,c,s,l]);return p}function Yc(){var e={draggables:{},droppables:{}},r=[];function t(u){return r.push(u),function(){var f=r.indexOf(u);f!==-1&&r.splice(f,1)}}function n(u){r.length&&r.forEach(function(d){return d(u)})}function a(u){return e.draggables[u]||null}function i(u){var d=a(u);return d||I(!1),d}var o={register:function(d){e.draggables[d.descriptor.id]=d,n({type:"ADDITION",value:d})},update:function(d,f){var g=e.draggables[f.descriptor.id];g&&g.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:function(d){var f=d.descriptor.id,g=a(f);g&&d.uniqueId===g.uniqueId&&(delete e.draggables[f],n({type:"REMOVAL",value:d}))},getById:i,findById:a,exists:function(d){return!!a(d)},getAllByType:function(d){return kr(e.draggables).filter(function(f){return f.descriptor.type===d})}};function l(u){return e.droppables[u]||null}function s(u){var d=l(u);return d||I(!1),d}var c={register:function(d){e.droppables[d.descriptor.id]=d},unregister:function(d){var f=l(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:l,exists:function(d){return!!l(d)},getAllByType:function(d){return kr(e.droppables).filter(function(f){return f.descriptor.type===d})}};function p(){e.draggables={},e.droppables={},r.length=0}return{draggable:o,droppable:c,subscribe:t,clean:p}}function Jc(){var e=N(Yc,[]);return S.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var mn=k.createContext(null),Ur=function(){var e=document.body;return e||I(!1),e},Xc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},_c=function(r){return"rbd-announcement-"+r};function Qc(e){var r=N(function(){return _c(e)},[e]),t=S.useRef(null);S.useEffect(function(){var i=document.createElement("div");return t.current=i,i.id=r,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),O(i.style,Xc),Ur().appendChild(i),function(){setTimeout(function(){var s=Ur();s.contains(i)&&s.removeChild(i),i===t.current&&(t.current=null)})}},[r]);var n=P(function(a){var i=t.current;if(i){i.textContent=a;return}},[]);return n}var Zc=0,ed={separator:"::"};function bn(e,r){return r===void 0&&(r=ed),N(function(){return""+e+r.separator+Zc++},[r.separator,e])}function rd(e){var r=e.contextId,t=e.uniqueId;return"rbd-hidden-text-"+r+"-"+t}function td(e){var r=e.contextId,t=e.text,n=bn("hidden-text",{separator:"-"}),a=N(function(){return rd({contextId:r,uniqueId:n})},[n,r]);return S.useEffect(function(){var o=document.createElement("div");return o.id=a,o.textContent=t,o.style.display="none",Ur().appendChild(o),function(){var s=Ur();s.contains(o)&&s.removeChild(o)}},[a,t]),a}var lt=k.createContext(null);function ji(e){var r=S.useRef(e);return S.useEffect(function(){r.current=e}),r}function nd(){var e=null;function r(){return!!e}function t(o){return o===e}function n(o){e&&I(!1);var l={abandon:o};return e=l,l}function a(){e||I(!1),e=null}function i(){e&&(e.abandon(),a())}return{isClaimed:r,isActive:t,claim:n,release:a,tryAbandon:i}}var ad=9,id=13,hn=27,Ui=32,od=33,ld=34,sd=35,ud=36,cd=37,dd=38,pd=39,fd=40,Or,vd=(Or={},Or[id]=!0,Or[ad]=!0,Or),zi=function(e){vd[e.keyCode]&&e.preventDefault()},st=function(){var e="visibilitychange";if(typeof document>"u")return e;var r=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],t=Te(r,function(n){return"on"+n in document});return t||e}(),Hi=0,ga=5;function gd(e,r){return Math.abs(r.x-e.x)>=ga||Math.abs(r.y-e.y)>=ga}var ma={type:"IDLE"};function md(e){var r=e.cancel,t=e.completed,n=e.getPhase,a=e.setPhase;return[{eventName:"mousemove",fn:function(o){var l=o.button,s=o.clientX,c=o.clientY;if(l===Hi){var p={x:s,y:c},u=n();if(u.type==="DRAGGING"){o.preventDefault(),u.actions.move(p);return}u.type!=="PENDING"&&I(!1);var d=u.point;if(gd(d,p)){o.preventDefault();var f=u.actions.fluidLift(p);a({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(o){var l=n();if(l.type!=="DRAGGING"){r();return}o.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:function(o){n().type==="DRAGGING"&&o.preventDefault(),r()}},{eventName:"keydown",fn:function(o){var l=n();if(l.type==="PENDING"){r();return}if(o.keyCode===hn){o.preventDefault(),r();return}zi(o)}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){n().type==="PENDING"&&r()}},{eventName:"webkitmouseforcedown",fn:function(o){var l=n();if(l.type==="IDLE"&&I(!1),l.actions.shouldRespectForcePress()){r();return}o.preventDefault()}},{eventName:st,fn:r}]}function bd(e){var r=S.useRef(ma),t=S.useRef(Pe),n=N(function(){return{eventName:"mousedown",fn:function(u){if(!u.defaultPrevented&&u.button===Hi&&!(u.ctrlKey||u.metaKey||u.shiftKey||u.altKey)){var d=e.findClosestDraggableId(u);if(d){var f=e.tryGetLock(d,o,{sourceEvent:u});if(f){u.preventDefault();var g={x:u.clientX,y:u.clientY};t.current(),c(f,g)}}}}}},[e]),a=N(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(u){if(!u.defaultPrevented){var d=e.findClosestDraggableId(u);if(d){var f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&u.preventDefault())}}}}},[e]),i=P(function(){var u={passive:!1,capture:!0};t.current=ge(window,[a,n],u)},[a,n]),o=P(function(){var p=r.current;p.type!=="IDLE"&&(r.current=ma,t.current(),i())},[i]),l=P(function(){var p=r.current;o(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[o]),s=P(function(){var u={capture:!0,passive:!1},d=md({cancel:l,completed:o,getPhase:function(){return r.current},setPhase:function(g){r.current=g}});t.current=ge(window,d,u)},[l,o]),c=P(function(u,d){r.current.type!=="IDLE"&&I(!1),r.current={type:"PENDING",point:d,actions:u},s()},[s]);ue(function(){return i(),function(){t.current()}},[i])}var ze;function hd(){}var yd=(ze={},ze[ld]=!0,ze[od]=!0,ze[ud]=!0,ze[sd]=!0,ze);function Dd(e,r){function t(){r(),e.cancel()}function n(){r(),e.drop()}return[{eventName:"keydown",fn:function(i){if(i.keyCode===hn){i.preventDefault(),t();return}if(i.keyCode===Ui){i.preventDefault(),n();return}if(i.keyCode===fd){i.preventDefault(),e.moveDown();return}if(i.keyCode===dd){i.preventDefault(),e.moveUp();return}if(i.keyCode===pd){i.preventDefault(),e.moveRight();return}if(i.keyCode===cd){i.preventDefault(),e.moveLeft();return}if(yd[i.keyCode]){i.preventDefault();return}zi(i)}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:st,fn:t}]}function Sd(e){var r=S.useRef(hd),t=N(function(){return{eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==Ui)return;var o=e.findClosestDraggableId(i);if(!o)return;var l=e.tryGetLock(o,p,{sourceEvent:i});if(!l)return;i.preventDefault();var s=!0,c=l.snapLift();r.current();function p(){s||I(!1),s=!1,r.current(),n()}r.current=ge(window,Dd(c,p),{capture:!0,passive:!1})}}},[e]),n=P(function(){var i={passive:!1,capture:!0};r.current=ge(window,[t],i)},[t]);ue(function(){return n(),function(){r.current()}},[n])}var Pt={type:"IDLE"},Id=120,xd=.15;function wd(e){var r=e.cancel,t=e.getPhase;return[{eventName:"orientationchange",fn:r},{eventName:"resize",fn:r},{eventName:"contextmenu",fn:function(a){a.preventDefault()}},{eventName:"keydown",fn:function(a){if(t().type!=="DRAGGING"){r();return}a.keyCode===hn&&a.preventDefault(),r()}},{eventName:st,fn:r}]}function Cd(e){var r=e.cancel,t=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(i){var o=n();if(o.type!=="DRAGGING"){r();return}o.hasMoved=!0;var l=i.touches[0],s=l.clientX,c=l.clientY,p={x:s,y:c};i.preventDefault(),o.actions.move(p)}},{eventName:"touchend",fn:function(i){var o=n();if(o.type!=="DRAGGING"){r();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:function(i){if(n().type!=="DRAGGING"){r();return}i.preventDefault(),r()}},{eventName:"touchforcechange",fn:function(i){var o=n();o.type==="IDLE"&&I(!1);var l=i.touches[0];if(l){var s=l.force>=xd;if(s){var c=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){c&&r();return}if(c){if(o.hasMoved){i.preventDefault();return}r();return}i.preventDefault()}}}},{eventName:st,fn:r}]}function Ed(e){var r=S.useRef(Pt),t=S.useRef(Pe),n=P(function(){return r.current},[]),a=P(function(f){r.current=f},[]),i=N(function(){return{eventName:"touchstart",fn:function(f){if(!f.defaultPrevented){var g=e.findClosestDraggableId(f);if(g){var v=e.tryGetLock(g,l,{sourceEvent:f});if(v){var m=f.touches[0],b=m.clientX,h=m.clientY,y={x:b,y:h};t.current(),u(v,y)}}}}}},[e]),o=P(function(){var f={capture:!0,passive:!1};t.current=ge(window,[i],f)},[i]),l=P(function(){var d=r.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),a(Pt),t.current(),o())},[o,a]),s=P(function(){var d=r.current;l(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[l]),c=P(function(){var f={capture:!0,passive:!1},g={cancel:s,completed:l,getPhase:n},v=ge(window,Cd(g),f),m=ge(window,wd(g),f);t.current=function(){v(),m()}},[s,n,l]),p=P(function(){var f=n();f.type!=="PENDING"&&I(!1);var g=f.actions.fluidLift(f.point);a({type:"DRAGGING",actions:g,hasMoved:!1})},[n,a]),u=P(function(f,g){n().type!=="IDLE"&&I(!1);var v=setTimeout(p,Id);a({type:"PENDING",point:g,actions:f,longPressTimerId:v}),c()},[c,n,a,p]);ue(function(){return o(),function(){t.current();var g=n();g.type==="PENDING"&&(clearTimeout(g.longPressTimerId),a(Pt))}},[n,o,a]),ue(function(){var f=ge(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return f},[])}var Pd={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function qi(e,r){if(r==null)return!1;var t=!!Pd[r.tagName.toLowerCase()];if(t)return!0;var n=r.getAttribute("contenteditable");return n==="true"||n===""?!0:r===e?!1:qi(e,r.parentElement)}function Ad(e,r){var t=r.target;return ot(t)?qi(e,t):!1}var Od=function(e){return ye(e.getBoundingClientRect()).center};function Rd(e){return e instanceof ki(e).Element}var Td=function(){var e="matches";if(typeof document>"u")return e;var r=[e,"msMatchesSelector","webkitMatchesSelector"],t=Te(r,function(n){return n in Element.prototype});return t||e}();function Vi(e,r){return e==null?null:e[Td](r)?e:Vi(e.parentElement,r)}function Bd(e,r){return e.closest?e.closest(r):Vi(e,r)}function Md(e){return"["+Ye.contextId+'="'+e+'"]'}function Fd(e,r){var t=r.target;if(!Rd(t))return null;var n=Md(e),a=Bd(t,n);return!a||!ot(a)?null:a}function Nd(e,r){var t=Fd(e,r);return t?t.getAttribute(Ye.draggableId):null}function Ld(e,r){var t="["+kt.contextId+'="'+e+'"]',n=si(document.querySelectorAll(t)),a=Te(n,function(i){return i.getAttribute(kt.id)===r});return!a||!ot(a)?null:a}function Gd(e){e.preventDefault()}function Rr(e){var r=e.expected,t=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||r!==t)}function Ki(e){var r=e.lockAPI,t=e.store,n=e.registry,a=e.draggableId;if(r.isClaimed())return!1;var i=n.draggable.findById(a);return!(!i||!i.options.isEnabled||!Li(t.getState(),a))}function Wd(e){var r=e.lockAPI,t=e.contextId,n=e.store,a=e.registry,i=e.draggableId,o=e.forceSensorStop,l=e.sourceEvent,s=Ki({lockAPI:r,store:n,registry:a,draggableId:i});if(!s)return null;var c=a.draggable.getById(i),p=Ld(t,c.descriptor.id);if(!p||l&&!c.options.canDragInteractiveElements&&Ad(p,l))return null;var u=r.claim(o||Pe),d="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function g(){return r.isActive(u)}function v(w,E){Rr({expected:w,phase:d,isLockActive:g,shouldWarn:!0})&&n.dispatch(E())}var m=v.bind(null,"DRAGGING");function b(w){function E(){r.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(E(),d!=="PRE_DRAG"&&I(!1)),n.dispatch(Tu(w.liftActionArgs)),d="DRAGGING";function B(A,F){if(F===void 0&&(F={shouldBlockNextClick:!1}),w.cleanup(),F.shouldBlockNextClick){var M=ge(window,[{eventName:"click",fn:Gd,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}E(),n.dispatch(Oi({reason:A}))}return O({isActive:function(){return Rr({expected:"DRAGGING",phase:d,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(F){return B("DROP",F)},cancel:function(F){return B("CANCEL",F)}},w.actions)}function h(w){var E=ur(function(A){m(function(){return Ai({client:A})})}),B=b({liftActionArgs:{id:i,clientSelection:w,movementMode:"FLUID"},cleanup:function(){return E.cancel()},actions:{move:E}});return O({},B,{move:E})}function y(){var w={moveUp:function(){return m(ku)},moveRight:function(){return m(Uu)},moveDown:function(){return m(ju)},moveLeft:function(){return m(zu)}};return b({liftActionArgs:{id:i,clientSelection:Od(p),movementMode:"SNAP"},cleanup:Pe,actions:w})}function D(){var w=Rr({expected:"PRE_DRAG",phase:d,isLockActive:g,shouldWarn:!0});w&&r.release()}var x={isActive:function(){return Rr({expected:"PRE_DRAG",phase:d,isLockActive:g,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:h,snapLift:y,abort:D};return x}var $d=[bd,Sd,Ed];function kd(e){var r=e.contextId,t=e.store,n=e.registry,a=e.customSensors,i=e.enableDefaultSensors,o=[].concat(i?$d:[],a||[]),l=S.useState(function(){return nd()})[0],s=P(function(h,y){h.isDragging&&!y.isDragging&&l.tryAbandon()},[l]);ue(function(){var h=t.getState(),y=t.subscribe(function(){var D=t.getState();s(h,D),h=D});return y},[l,t,s]),ue(function(){return l.tryAbandon},[l.tryAbandon]);for(var c=P(function(b){return Ki({lockAPI:l,registry:n,store:t,draggableId:b})},[l,n,t]),p=P(function(b,h,y){return Wd({lockAPI:l,registry:n,contextId:r,store:t,draggableId:b,forceSensorStop:h,sourceEvent:y&&y.sourceEvent?y.sourceEvent:null})},[r,l,n,t]),u=P(function(b){return Nd(r,b)},[r]),d=P(function(b){var h=n.draggable.findById(b);return h?h.options:null},[n.draggable]),f=P(function(){l.isClaimed()&&(l.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(sn()))},[l,t]),g=P(l.isClaimed,[l]),v=N(function(){return{canGetLock:c,tryGetLock:p,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:f,isLockClaimed:g}},[c,p,u,d,f,g]),m=0;m=r?e.call(null):a.id=requestAnimationFrame(n)}var a={id:requestAnimationFrame(n)};return a}var Rt=-1;function wa(e){if(e===void 0&&(e=!1),Rt===-1||e){var r=document.createElement("div"),t=r.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(r),Rt=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Rt}var He=null;function Ca(e){if(e===void 0&&(e=!1),He===null||e){var r=document.createElement("div"),t=r.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",r.appendChild(n),document.body.appendChild(r),r.scrollLeft>0?He="positive-descending":(r.scrollLeft=1,r.scrollLeft===0?He="negative":He="positive-ascending"),document.body.removeChild(r),He}return He}var Np=150,Lp=function(r,t){return r};function Gp(e){var r,t=e.getItemOffset,n=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return r=function(u){Yt(d,u);function d(g){var v;return v=u.call(this,g)||this,v._instanceProps=s(v.props,Dn(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:Dn(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=z(function(m,b,h,y){return v.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:b,visibleStartIndex:h,visibleStopIndex:y})}),v._callOnScroll=void 0,v._callOnScroll=z(function(m,b,h){return v.props.onScroll({scrollDirection:m,scrollOffset:b,scrollUpdateWasRequested:h})}),v._getItemStyle=void 0,v._getItemStyle=function(m){var b=v.props,h=b.direction,y=b.itemSize,D=b.layout,x=v._getItemStyleCache(c&&y,c&&D,c&&h),w;if(x.hasOwnProperty(m))w=x[m];else{var E=t(v.props,m,v._instanceProps),B=a(v.props,m,v._instanceProps),A=h==="horizontal"||D==="horizontal",F=h==="rtl",M=A?E:0;x[m]=w={position:"absolute",left:F?void 0:M,right:F?M:void 0,top:A?0:E,height:A?"100%":B,width:A?B:"100%"}}return w},v._getItemStyleCache=void 0,v._getItemStyleCache=z(function(m,b,h){return{}}),v._onScrollHorizontal=function(m){var b=m.currentTarget,h=b.clientWidth,y=b.scrollLeft,D=b.scrollWidth;v.setState(function(x){if(x.scrollOffset===y)return null;var w=v.props.direction,E=y;if(w==="rtl")switch(Ca()){case"negative":E=-y;break;case"positive-descending":E=D-h-y;break}return E=Math.max(0,Math.min(E,D-h)),{isScrolling:!0,scrollDirection:x.scrollOffsetw.clientWidth?wa():0:x=w.scrollHeight>w.clientHeight?wa():0}this.scrollTo(i(this.props,v,m,D,this._instanceProps,x))},f.componentDidMount=function(){var v=this.props,m=v.direction,b=v.initialScrollOffset,h=v.layout;if(typeof b=="number"&&this._outerRef!=null){var y=this._outerRef;m==="horizontal"||h==="horizontal"?y.scrollLeft=b:y.scrollTop=b}this._callPropsCallbacks()},f.componentDidUpdate=function(){var v=this.props,m=v.direction,b=v.layout,h=this.state,y=h.scrollOffset,D=h.scrollUpdateWasRequested;if(D&&this._outerRef!=null){var x=this._outerRef;if(m==="horizontal"||b==="horizontal")if(m==="rtl")switch(Ca()){case"negative":x.scrollLeft=-y;break;case"positive-ascending":x.scrollLeft=y;break;default:var w=x.clientWidth,E=x.scrollWidth;x.scrollLeft=E-w-y;break}else x.scrollLeft=y;else x.scrollTop=y}this._callPropsCallbacks()},f.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&xa(this._resetIsScrollingTimeoutId)},f.render=function(){var v=this.props,m=v.children,b=v.className,h=v.direction,y=v.height,D=v.innerRef,x=v.innerElementType,w=v.innerTagName,E=v.itemCount,B=v.itemData,A=v.itemKey,F=A===void 0?Lp:A,M=v.layout,K=v.outerElementType,V=v.outerTagName,T=v.style,G=v.useIsScrolling,ee=v.width,de=this.state.isScrolling,re=h==="horizontal"||M==="horizontal",U=re?this._onScrollHorizontal:this._onScrollVertical,te=this._getRangeToRender(),pe=te[0],H=te[1],be=[];if(E>0)for(var X=pe;X<=H;X++)be.push(S.createElement(m,{data:B,key:F(X,B),index:X,isScrolling:G?de:void 0,style:this._getItemStyle(X)}));var ae=n(this.props,this._instanceProps);return S.createElement(K||V||"div",{className:b,onScroll:U,ref:this._outerRefSetter,style:O({position:"relative",height:y,width:ee,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:h},T)},S.createElement(x||w||"div",{children:be,ref:D,style:{height:re?"100%":ae,pointerEvents:de?"none":void 0,width:re?ae:"100%"}}))},f._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var m=this._getRangeToRender(),b=m[0],h=m[1],y=m[2],D=m[3];this._callOnItemsRendered(b,h,y,D)}}if(typeof this.props.onScroll=="function"){var x=this.state,w=x.scrollDirection,E=x.scrollOffset,B=x.scrollUpdateWasRequested;this._callOnScroll(w,E,B)}},f._getRangeToRender=function(){var v=this.props,m=v.itemCount,b=v.overscanCount,h=this.state,y=h.isScrolling,D=h.scrollDirection,x=h.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,x,this._instanceProps),E=l(this.props,w,x,this._instanceProps),B=!y||D==="backward"?Math.max(1,b):1,A=!y||D==="forward"?Math.max(1,b):1;return[Math.max(0,w-B),Math.max(0,Math.min(m-1,E+A)),w,E]},d}(S.PureComponent),r.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var Wp=function(r,t){r.children,r.direction,r.height,r.layout,r.innerTagName,r.outerTagName,r.width,t.instance},Vp=Gp({getItemOffset:function(r,t){var n=r.itemSize;return t*n},getItemSize:function(r,t){var n=r.itemSize;return n},getEstimatedTotalSize:function(r){var t=r.itemCount,n=r.itemSize;return n*t},getOffsetForIndexAndAlignment:function(r,t,n,a,i,o){var l=r.direction,s=r.height,c=r.itemCount,p=r.itemSize,u=r.layout,d=r.width,f=l==="horizontal"||u==="horizontal",g=f?d:s,v=Math.max(0,c*p-g),m=Math.min(v,t*p),b=Math.max(0,t*p-g+p+o);switch(n==="smart"&&(a>=b-g&&a<=m+g?n="auto":n="center"),n){case"start":return m;case"end":return b;case"center":{var h=Math.round(b+(m-b)/2);return hv+Math.floor(g/2)?v:h}case"auto":default:return a>=b&&a<=m?a:a