69 lines
201 KiB
JavaScript
69 lines
201 KiB
JavaScript
|
|
import{r as G,R as ee,p as Ne,c as Ir,a as Pu,u as it,m as Oo,j as Re,M as Ru,b as U,B as Tt,d as Li,e as Wi,f as Ao,g as Gi,_ as Du,h as ne,i as Eu,k as ki,l as Bu,S as Ou,n as Au,o as Tu,C as Mu,I as To,q as Nu}from"./index-3a58cb87.js";import{S as Fu}from"./Select-0e7ed95b.js";import{u as Lu}from"./useRemainingViewPortHeight-1c35aab5.js";import{C as Wu,B as $i}from"./BaseModal-ab8cd8e0.js";import{r as Hi,t as Gu,g as ku,b as Wr,a as gr,c as zi,d as mr,f as $u,e as Hu}from"./index-84fa0cb3.js";import{I as kn}from"./Input-4a412620.js";import{_ as Mt}from"./objectWithoutPropertiesLoose-4f48578a.js";import{F as Mo,p as No,A as Br}from"./Fab-12e96042.js";import{P as zu,a as ju}from"./play-c7b83a10.js";function $n(){return $n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},$n.apply(this,arguments)}function Vu(e,r){if(e==null)return{};var t=Uu(e,r),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function Uu(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}var na=G.forwardRef(function(e,r){var t=e.color,n=t===void 0?"currentColor":t,o=e.size,i=o===void 0?24:o,l=Vu(e,["color","size"]);return ee.createElement("svg",$n({ref:r,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),ee.createElement("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),ee.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),ee.createElement("line",{x1:"3",y1:"18",x2:"21",y2:"18"}))});na.propTypes={color:Ne.string,size:Ne.oneOfType([Ne.string,Ne.number])};na.displayName="Menu";const qu=na;function Hn(){return Hn=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Hn.apply(this,arguments)}function _u(e,r){if(e==null)return{};var t=Xu(e,r),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function Xu(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}var aa=G.forwardRef(function(e,r){var t=e.color,n=t===void 0?"currentColor":t,o=e.size,i=o===void 0?24:o,l=_u(e,["color","size"]);return ee.createElement("svg",Hn({ref:r,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),ee.createElement("polyline",{points:"1 4 1 10 7 10"}),ee.createElement("polyline",{points:"23 20 23 14 17 14"}),ee.createElement("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"}))});aa.propTypes={color:Ne.string,size:Ne.oneOfType([Ne.string,Ne.number])};aa.displayName="RefreshCcw";const Fo=aa;function zn(){return zn=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},zn.apply(this,arguments)}function Ku(e,r){if(e==null)return{};var t=Yu(e,r),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function Yu(e,r){if(e==null)return{};var t={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(r.indexOf(o)>=0)&&(t[o]=e[o]);return t}var oa=G.forwardRef(function(e,r){var t=e.color,n=t===void 0?"currentColor":t,o=e.size,i=o===void 0?24:o,l=Ku(e,["color","size"]);return ee.createElement("svg",zn({ref:r,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),ee.createE
|
||
|
|
* 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 He=typeof Symbol=="function"&&Symbol.for,fa=He?Symbol.for("react.element"):60103,pa=He?Symbol.for("react.portal"):60106,Xt=He?Symbol.for("react.fragment"):60107,Kt=He?Symbol.for("react.strict_mode"):60108,Yt=He?Symbol.for("react.profiler"):60114,Jt=He?Symbol.for("react.provider"):60109,Qt=He?Symbol.for("react.context"):60110,va=He?Symbol.for("react.async_mode"):60111,Zt=He?Symbol.for("react.concurrent_mode"):60111,en=He?Symbol.for("react.forward_ref"):60112,rn=He?Symbol.for("react.suspense"):60113,gf=He?Symbol.for("react.suspense_list"):60120,tn=He?Symbol.for("react.memo"):60115,nn=He?Symbol.for("react.lazy"):60116,mf=He?Symbol.for("react.block"):60121,hf=He?Symbol.for("react.fundamental"):60117,bf=He?Symbol.for("react.responder"):60118,yf=He?Symbol.for("react.scope"):60119;function tr(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case fa:switch(e=e.type,e){case va:case Zt:case Xt:case Yt:case Kt:case rn:return e;default:switch(e=e&&e.$$typeof,e){case Qt:case en:case nn:case tn:case Jt:return e;default:return r}}case pa:return r}}}function Qi(e){return tr(e)===Zt}he.AsyncMode=va;he.ConcurrentMode=Zt;he.ContextConsumer=Qt;he.ContextProvider=Jt;he.Element=fa;he.ForwardRef=en;he.Fragment=Xt;he.Lazy=nn;he.Memo=tn;he.Portal=pa;he.Profiler=Yt;he.StrictMode=Kt;he.Suspense=rn;he.isAsyncMode=function(e){return Qi(e)||tr(e)===va};he.isConcurrentMode=Qi;he.isContextConsumer=function(e){return tr(e)===Qt};he.isContextProvider=function(e){return tr(e)===Jt};he.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fa};he.isForwardRef=function(e){return tr(e)===en};he.isFragment=function(e){return tr(e)===Xt};he.isLazy=function(e){return tr(e)===nn};he.isMemo=function(e){return tr(e)===tn};he.isPortal=function(e){return tr(e)===pa};he.isProfiler=function(e){return tr(e)===Yt};he.isStrictMode=function(e){return tr(e)===Kt};he.isSuspense=function(e){return tr(e)===rn};he.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xt||e===Zt||e===Yt||e===Kt||e===rn||e===gf||typeof e=="object"&&e!==null&&(e.$$typeof===nn||e.$$typeof===tn||e.$$typeof===Jt||e.$$typeof===Qt||e.$$typeof===en||e.$$typeof===hf||e.$$typeof===bf||e.$$typeof===yf||e.$$typeof===mf)};he.typeOf=tr;(function(e){e.exports=he})(vf);var ga=_n,wf={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Cf={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Sf={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ma={};ma[ga.ForwardRef]=Sf;ma[ga.Memo]=Zi;function Ko(e){return ga.isMemo(e)?Zi:ma[e.$$typeof]||wf}var xf=Object.defineProperty,If=Object.getOwnPropertyNames,Yo=Object.getOwnPropertySymbols,Pf=Object.getOwnPropertyDescriptor,Rf=Object.getPrototypeOf,Jo=Object.prototype;function el(e,r,t){if(typeof r!="string"){if(Jo){var n=Rf(r);n&&n!==Jo&&el(e,n,t)}var o=If(r);Yo&&(o=o.concat(Yo(r)));for(var i=Ko(e),l=Ko(r),s=0;s<o.length;++s){var f=o[s];if(!Cf[f]&&!(t&&t[f])&&!(l&&l[f])&&!(i&&i[f])){var u=Pf(r,f);try{xf(e,f,u)}catch{}}}}return e}var Qo=el,Xn={},Df={get exports(){return Xn},set exports(e){Xn=e}},Ce={};/** @license React v17.0.2
|
||
|
|
* 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 an=60103,on=60106,lt=60107,st=60108,ut=60114,ct=60109,dt=60110,ft=60112,pt=60113,ha=60120,vt=60115,gt=60116,rl=60121,tl=60122,nl=60117,al=60129,ol=60131;if(typeof Symbol=="function"&&Symbol.for){var ze=Symbol.for;an=ze("react.element"),on=ze("react.portal"),lt=ze("react.fragment"),st=ze("react.strict_mode"),ut=ze("react.profiler"),ct=ze("react.provider"),dt=ze("react.context"),ft=ze("react.forward_ref"),pt=ze("react.suspense"),ha=ze("react.suspense_list"),vt=ze("react.memo"),gt=ze("react.lazy"),rl=ze("react.block"),tl=ze("react.server.block"),nl=ze("react.fundamental"),al=ze("react.debug_trace_mode"),ol=ze("react.legacy_hidden")}function pr(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case an:switch(e=e.type,e){case lt:case ut:case st:case pt:case ha:return e;default:switch(e=e&&e.$$typeof,e){case dt:case ft:case gt:case vt:case ct:return e;default:return r}}case on:return r}}}var Ef=ct,Bf=an,Of=ft,Af=lt,Tf=gt,Mf=vt,Nf=on,Ff=ut,Lf=st,Wf=pt;Ce.ContextConsumer=dt;Ce.ContextProvider=Ef;Ce.Element=Bf;Ce.ForwardRef=Of;Ce.Fragment=Af;Ce.Lazy=Tf;Ce.Memo=Mf;Ce.Portal=Nf;Ce.Profiler=Ff;Ce.StrictMode=Lf;Ce.Suspense=Wf;Ce.isAsyncMode=function(){return!1};Ce.isConcurrentMode=function(){return!1};Ce.isContextConsumer=function(e){return pr(e)===dt};Ce.isContextProvider=function(e){return pr(e)===ct};Ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===an};Ce.isForwardRef=function(e){return pr(e)===ft};Ce.isFragment=function(e){return pr(e)===lt};Ce.isLazy=function(e){return pr(e)===gt};Ce.isMemo=function(e){return pr(e)===vt};Ce.isPortal=function(e){return pr(e)===on};Ce.isProfiler=function(e){return pr(e)===ut};Ce.isStrictMode=function(e){return pr(e)===st};Ce.isSuspense=function(e){return pr(e)===pt};Ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lt||e===ut||e===al||e===st||e===pt||e===ha||e===ol||typeof e=="object"&&e!==null&&(e.$$typeof===gt||e.$$typeof===vt||e.$$typeof===ct||e.$$typeof===dt||e.$$typeof===ft||e.$$typeof===nl||e.$$typeof===rl||e[0]===tl)};Ce.typeOf=pr;(function(e){e.exports=Ce})(Df);var Gf=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],kf=["reactReduxForwardedRef"],$f=[],Hf=[null,null];function zf(e,r){var t=e[1];return[r.payload,t+1]}function Zo(e,r,t){Ji(function(){return e.apply(void 0,r)},t)}function jf(e,r,t,n,o,i,l){e.current=n,r.current=o,t.current=!1,i.current&&(i.current=null,l())}function Vf(e,r,t,n,o,i,l,s,f,u){if(e){var m=!1,g=null,p=function(){if(!m){var S=r.getState(),P,D;try{P=n(S,o.current)}catch(B){D=B,g=B}D||(g=null),P===i.current?l.current||f():(i.current=P,s.current=P,l.current=!0,u({type:"STORE_UPDATED",payload:{error:D}}))}};t.onStateChange=p,t.trySubscribe(),p();var b=function(){if(m=!0,t.tryUnsubscribe(),t.onStateChange=null,g)throw g};return b}}var Uf=function(){return[null,0]};function qf(e,r){r===void 0&&(r={});var t=r,n=t.getDisplayName,o=n===void 0?function(O){return"ConnectAdvanced("+O+")"}:n,i=t.methodName,l=i===void 0?"connectAdvanced":i,s=t.renderCountProp,f=s===void 0?void 0:s,u=t.shouldHandleStateChanges,m=u===void 0?!0:u,g=t.storeKey,p=g===void 0?"store":g;t.withRef;var b=t.forwardRef,C=b===void 0?!1:b,S=t.context,P=S===void 0?Xi:S,D=Mt(t,Gf),B=P;return function(A){var k=A.displayName||A.name||"Component",j=o(k),J=ne({},D,{getDisplayName:o,methodName:l,renderCountProp:f,shouldHandleStateChanges:m,storeKey:p,displayName:j,wrappedComponentName:k,WrappedComponent:A}),fe=D.pure;function le(V){return e(V.dispatch,J)}var be=fe?G.useMemo:function(V){return V()};function pe(V){var se=G.useMemo(function(){var Er=V.reactReduxForwardedRef,Ur=Mt(V,kf);return[V.context,Er,Ur]},[V]),Ie=se[0],Se=se[1],we=se[2],Ee=G.useMemo(function(){return Ie&&Ie.Consumer&&Xn.isContextConsumer(ee.createElement(Ie.Consumer,null))?Ie:B},[Ie,B]),De=G.useContext(Ee),Oe=Boolean(V.store)&&Boolean(V.store.getState)&&Boolean(V.store.dispatch);Boolean(De)&&Boolean(De.store);var Fe=Oe?V.store:De.store,ur=G.useMemo(function(){return le(Fe)},[Fe]),Ve=G.useMemo(fu
|
||
|
|
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
|
||
|
|
`,$t=function(r){return r+1},Rp=function(r){return`
|
||
|
|
You have lifted an item in position `+$t(r.source.index)+`
|
||
|
|
`},fl=function(r,t){var n=r.droppableId===t.droppableId,o=$t(r.index),i=$t(t.index);return n?`
|
||
|
|
You have moved the item from position `+o+`
|
||
|
|
to position `+i+`
|
||
|
|
`:`
|
||
|
|
You have moved the item from position `+o+`
|
||
|
|
in list `+r.droppableId+`
|
||
|
|
to list `+t.droppableId+`
|
||
|
|
in position `+i+`
|
||
|
|
`},pl=function(r,t,n){var o=t.droppableId===n.droppableId;return o?`
|
||
|
|
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+`
|
||
|
|
`},Dp=function(r){var t=r.destination;if(t)return fl(r.source,t);var n=r.combine;return n?pl(r.draggableId,r.source,n):"You are over an area that cannot be dropped on"},ai=function(r){return`
|
||
|
|
The item has returned to its starting position
|
||
|
|
of `+$t(r.index)+`
|
||
|
|
`},Ep=function(r){if(r.reason==="CANCEL")return`
|
||
|
|
Movement cancelled.
|
||
|
|
`+ai(r.source)+`
|
||
|
|
`;var t=r.destination,n=r.combine;return t?`
|
||
|
|
You have dropped the item.
|
||
|
|
`+fl(r.source,t)+`
|
||
|
|
`:n?`
|
||
|
|
You have dropped the item.
|
||
|
|
`+pl(r.draggableId,r.source,n)+`
|
||
|
|
`:`
|
||
|
|
The item has been dropped while not over a drop area.
|
||
|
|
`+ai(r.source)+`
|
||
|
|
`},At={dragHandleUsageInstructions:Pp,onDragStart:Rp,onDragUpdate:Dp,onDragEnd:Ep},$e={x:0,y:0},je=function(r,t){return{x:r.x+t.x,y:r.y+t.y}},Ze=function(r,t){return{x:r.x-t.x,y:r.y-t.y}},Sr=function(r,t){return r.x===t.x&&r.y===t.y},Hr=function(r){return{x:r.x!==0?-r.x:0,y:r.y!==0?-r.y:0}},Mr=function(r,t,n){var o;return n===void 0&&(n=0),o={},o[r]=t,o[r==="x"?"y":"x"]=n,o},tt=function(r,t){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))},oi=function(r,t){return Math.min.apply(Math,t.map(function(n){return tt(r,n)}))},vl=function(r){return function(t){return{x:r(t.x),y:r(t.y)}}},Bp=function(e,r){var t=fr({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},mt=function(r,t){return{top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x}},ii=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}]},Op={top:0,right:0,bottom:0,left:0},Ap=function(r,t){return t?mt(r,t.scroll.diff.displacement):r},Tp=function(r,t,n){if(n&&n.increasedBy){var o;return ne({},r,(o={},o[t.end]=r[t.end]+n.increasedBy[t.line],o))}return r},Mp=function(r,t){return t&&t.shouldClipSubject?Bp(t.pageMarginBox,r):fr(r)},Gr=function(e){var r=e.page,t=e.withPlaceholder,n=e.axis,o=e.frame,i=Ap(r.marginBox,o),l=Tp(i,n,t),s=Mp(l,o);return{page:r,withPlaceholder:t,active:s}},Ca=function(e,r){e.frame||W(!1);var t=e.frame,n=Ze(r,t.scroll.initial),o=Hr(n),i=ne({},t,{scroll:{initial:t.scroll.initial,current:r,diff:{value:n,displacement:o},max:t.scroll.max}}),l=Gr({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i}),s=ne({},e,{frame:i,subject:l});return s};function Ht(e){return Object.values?Object.values(e):Object.keys(e).map(function(r){return e[r]})}function Sa(e,r){if(e.findIndex)return e.findIndex(r);for(var t=0;t<e.length;t++)if(r(e[t]))return t;return-1}function Rr(e,r){if(e.find)return e.find(r);var t=Sa(e,r);if(t!==-1)return e[t]}function gl(e){return Array.prototype.slice.call(e)}var ml=ke(function(e){return e.reduce(function(r,t){return r[t.descriptor.id]=t,r},{})}),hl=ke(function(e){return e.reduce(function(r,t){return r[t.descriptor.id]=t,r},{})}),ln=ke(function(e){return Ht(e)}),Np=ke(function(e){return Ht(e)}),zr=ke(function(e,r){var t=Np(r).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,o){return n.descriptor.index-o.descriptor.index});return t});function xa(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function sn(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var un=ke(function(e,r){return r.filter(function(t){return t.descriptor.id!==e.descriptor.id})}),Fp=function(e){var r=e.isMovingForward,t=e.draggable,n=e.destination,o=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;var l=xa(i);if(!l)return null;function s(S){var P={type:"COMBINE",combine:{draggableId:S,droppableId:n.descriptor.id}};return ne({},i,{at:P})}var f=i.displaced.all,u=f.length?f[0]:null;if(r)return u?s(u):null;var m=un(t,o);if(!u){if(!m.length)return null;var g=m[m.length-1];return s(g.descriptor.id)}var p=Sa(m,function(S){return S.descriptor.id===u});p===-1&&W(!1);var b=p-1;if(b<0)return null;var C=m[b];return s(C.descriptor.id)},jr=function(e,r){return e.descriptor.droppableId===r.descriptor.id},bl={point:$e,value:0},nt={invisible:{},visible:{},all:[]},Lp={displaced:nt,displacedBy:bl,at:null},sr=function(e,r){return function(t){return e<=t&&t<=r}},yl=function(e){var r=sr(e.top,e.bottom),t=sr(e.left,e.right);return function(n){var o=r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right);if(o)return!0;var i=r(n.top)||r(n.bottom),l=t(n.left)||t(n.right),s=i&&l;if(s)return!0;var f=n.top<e.top&&n.bottom>e.bottom,u=n.left<e.left&&n.right>e.right,m=f&&u;if(m)return!0;var g=f&&l||u&&i;return g}},Wp=function(e){var r=sr(e.top,e.bottom),t=sr(e.left,e.right);return function(n){var o=r(n.top)&&r(n.bottom)&&t(n.left)&&t(n.right);return o}},Ia={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",siz
|
||
|
|
cursor: -webkit-grab;
|
||
|
|
cursor: grab;
|
||
|
|
`;return{selector:r($r.contextId),styles:{always:`
|
||
|
|
-webkit-touch-callout: none;
|
||
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||
|
|
touch-action: manipulation;
|
||
|
|
`,resting:s,dragging:qg,dropAnimating:s}}}(),n=function(){var s=`
|
||
|
|
transition: `+Qr.outOfTheWay+`;
|
||
|
|
`;return{selector:r(Zn.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}}(),o={selector:r(Vg.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;
|
||
|
|
`}},l=[n,t,o,i];return{always:Kr(l,"always"),resting:Kr(l,"resting"),dragging:Kr(l,"dragging"),dropAnimating:Kr(l,"dropAnimating"),userCancel:Kr(l,"userCancel")}},rr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?G.useLayoutEffect:G.useEffect,Mn=function(){var r=document.querySelector("head");return r||W(!1),r},Si=function(r){var t=document.createElement("style");return r&&t.setAttribute("nonce",r),t.type="text/css",t};function Xg(e,r){var t=me(function(){return _g(e)},[e]),n=G.useRef(null),o=G.useRef(null),i=Y(ke(function(g){var p=o.current;p||W(!1),p.textContent=g}),[]),l=Y(function(g){var p=n.current;p||W(!1),p.textContent=g},[]);rr(function(){!n.current&&!o.current||W(!1);var g=Si(r),p=Si(r);return n.current=g,o.current=p,g.setAttribute(kr+"-always",e),p.setAttribute(kr+"-dynamic",e),Mn().appendChild(g),Mn().appendChild(p),l(t.always),i(t.resting),function(){var b=function(S){var P=S.current;P||W(!1),Mn().removeChild(P),S.current=null};b(n),b(o)}},[r,l,i,t.always,t.resting,e]);var s=Y(function(){return i(t.dragging)},[i,t.dragging]),f=Y(function(g){if(g==="DROP"){i(t.dropAnimating);return}i(t.userCancel)},[i,t.dropAnimating,t.userCancel]),u=Y(function(){o.current&&i(t.resting)},[i,t.resting]),m=me(function(){return{dragging:s,dropping:f,resting:u}},[s,f,u]);return m}var _l=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function dn(e){return e instanceof _l(e).HTMLElement}function Kg(e,r){var t="["+$r.contextId+'="'+e+'"]',n=gl(document.querySelectorAll(t));if(!n.length)return null;var o=Rr(n,function(i){return i.getAttribute($r.draggableId)===r});return!o||!dn(o)?null:o}function Yg(e){var r=G.useRef({}),t=G.useRef(null),n=G.useRef(null),o=G.useRef(!1),i=Y(function(p,b){var C={id:p,focus:b};return r.current[p]=C,function(){var P=r.current,D=P[p];D!==C&&delete P[p]}},[]),l=Y(function(p){var b=Kg(e,p);b&&b!==document.activeElement&&b.focus()},[e]),s=Y(function(p,b){t.current===p&&(t.current=b)},[]),f=Y(function(){n.current||o.current&&(n.current=requestAnimationFrame(function(){n.current=null;var p=t.current;p&&l(p)}))},[l]),u=Y(function(p){t.current=null;var b=document.activeElement;b&&b.getAttribute($r.draggableId)===p&&(t.current=p)},[]);rr(function(){return o.current=!0,function(){o.current=!1;var p=n.current;p&&cancelAnimationFrame(p)}},[]);var m=me(function(){return{register:i,tryRecordFocus:u,tryRestoreFocusRecorded:f,tryShiftRecord:s}},[i,u,f,s]);return m}function Jg(){var e={draggables:{},droppables:{}},r=[];function t(g){return r.push(g),function(){var b=r.indexOf(g);b!==-1&&r.splice(b,1)}}function n(g){r.length&&r.forEach(function(p){return p(g)})}function o(g){return e.draggables[g]||null}function i(g){var p=o(g);return p||W(!1),p}var l={register:function(p){e.draggables[p.descriptor.id]=p,n({type:"ADDITION",value:p})},update:function(p,b){var C=e.draggables[b.descriptor.id];C&&C.uniqueId===p.uniqueId&&(delete e.draggables[b.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var b=p.descriptor.id,C=o(b);C&&p.uniqueId===C.uniqueId&&(delete e.draggables[b],n({type:"REMOVAL",value:p}))},getById:i,findById:o,exists:function(p){return Boolean(o(p))},getAllByType:function(p){return Ht(e.draggables).filter(function(b){return b.descriptor.type===p})}};function s(g){return e.droppables[g]||null}function f(g){var p=s(g);return p||W(!1),p}var u={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var b=s(p.descriptor.id);b&&p.uniqueId===b.uniqueId&&delete e.droppables[p.descriptor.id]},getById:f,findById:s,exists:function(p){return Boolean(s(p))},getAllByType:function(p){return Ht(e.droppables).filter(function(b){return b.descriptor.type===p})}};function m(){e.draggables={},e.droppables={},r.length=0}return{draggable:l,droppable:u,subscribe:t,clean:m}}function Qg(){var e=me(Jg,[]);return G.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Wa=ee.createContext(null),jt=function(){var e=document.body;return e||W(!1),e},Zg={position:"absolute",width:"1px",height:"1px",mar
|