@ltm-blueverse/alpha-hub-studio 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/package.json +23 -0
- package/static/apple-touch-icon.png +0 -0
- package/static/assets/DecisionWorkspace-DG6zPNls.js +1 -0
- package/static/assets/DiffMergeWorkspace-C8yIdDC7.js +1 -0
- package/static/assets/EntityResolutionTab-RBysMLhB.js +6 -0
- package/static/assets/GraphInspectorPanel-Bbrbhd03.js +1 -0
- package/static/assets/GraphWorkspace-AxTFEhNP.js +1116 -0
- package/static/assets/ImportExportWorkspace-BK3TofDv.js +6 -0
- package/static/assets/KGOverviewTab-D9EWKL_n.js +1 -0
- package/static/assets/LineageDiagram-XxBVa1Ij.js +27 -0
- package/static/assets/MarkdownContentViewer-Chx4ysCK.js +45 -0
- package/static/assets/MemoryWorkspace-CIjaTN_S.js +6 -0
- package/static/assets/OntologySummaryTab-NJ3ZrkoJ.js +1 -0
- package/static/assets/ReasoningWorkspace-B127Rd-S.js +19 -0
- package/static/assets/RegistryTab-BE2-yKLC.js +11 -0
- package/static/assets/SparqlWorkspace-RwPj2YK7.js +26 -0
- package/static/assets/TimelinePanel-DmtiXgmN.js +36 -0
- package/static/assets/VocabularyWorkspace-YF9waL5N.js +44 -0
- package/static/assets/book-open-BqEIxx1e.js +6 -0
- package/static/assets/chevron-right-CiEuNwKq.js +11 -0
- package/static/assets/circle-check-BToWKwbO.js +6 -0
- package/static/assets/copy-BfQXGhHP.js +6 -0
- package/static/assets/download-gQOgYz3q.js +6 -0
- package/static/assets/external-link-DqNu6T-f.js +6 -0
- package/static/assets/file-text-Bbz-r0FQ.js +6 -0
- package/static/assets/git-branch-B8yDcUSY.js +6 -0
- package/static/assets/graph-vendor-CUDaIrp7.js +312 -0
- package/static/assets/graphTheme-DNKLxzKZ.js +6 -0
- package/static/assets/hero-B5GXDCBc.png +0 -0
- package/static/assets/index-Bt8w1Tz_.css +1 -0
- package/static/assets/index-C00aFykz.js +9 -0
- package/static/assets/index-DHWWI-uw.js +1730 -0
- package/static/assets/index-Dli_3Iwd.js +22 -0
- package/static/assets/index-DtC_GayB.js +16 -0
- package/static/assets/index-MVDNL3vw.js +127 -0
- package/static/assets/info-vaffNQOD.js +6 -0
- package/static/assets/layers-Cct6D_wK.js +6 -0
- package/static/assets/loader-circle-C8NUmtFx.js +6 -0
- package/static/assets/neighborhoodPanelPlugin-w1yJlm0A.js +1 -0
- package/static/assets/pencil-DYlEC6ri.js +6 -0
- package/static/assets/play-G1gyOk2a.js +6 -0
- package/static/assets/queries-CYtdSB4H.js +1 -0
- package/static/assets/query-vendor-BqVbYexz.js +34 -0
- package/static/assets/refresh-cw-CL9OXZ89.js +6 -0
- package/static/assets/registryStore-MVt_NgVV.js +1 -0
- package/static/assets/style-BZV40eAE.css +1 -0
- package/static/assets/style-D8TqSrGs.js +15 -0
- package/static/assets/temporalOverlayPlugin-CRhLa1FU.js +1 -0
- package/static/assets/timeline-vendor-WyY-t3YQ.js +97 -0
- package/static/assets/timeline-vendor-lG7zfUUF.css +1 -0
- package/static/assets/trash-2-DiZNV6Gj.js +6 -0
- package/static/assets/x-DpqMYq96.js +6 -0
- package/static/favicon-32.png +0 -0
- package/static/favicon.svg +13 -0
- package/static/icons.svg +24 -0
- package/static/index.html +18 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{b as sn,c as ae,j as m}from"./index-DHWWI-uw.js";import{a as v,R as ar,j as O,g as un}from"./query-vendor-BqVbYexz.js";import{u as ln,a as cn,b as dn}from"./queries-CYtdSB4H.js";import{C as fn,a as pn}from"./chevron-right-CiEuNwKq.js";import{F as hn}from"./file-text-Bbz-r0FQ.js";import{r as gn}from"./index-C00aFykz.js";import{u as mn,C as vn}from"./index-Dli_3Iwd.js";import{L as yn}from"./loader-circle-C8NUmtFx.js";import{C as bn}from"./circle-check-BToWKwbO.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Sn=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Dn=sn("folder",Sn);var In=gn();const sr=v.createContext(null);function P(){const t=v.useContext(sr);if(t===null)throw new Error("No Tree Api Provided");return t}const ur=v.createContext(null);function wn(){const t=v.useContext(ur);if(t===null)throw new Error("Provide a NodesContext");return t}const lr=v.createContext(null);function On(){const t=v.useContext(lr);if(t===null)throw new Error("Provide a DnDContext");return t}const cr=v.createContext(0);function dr(){v.useContext(cr)}function fe(t,e,r){return Math.max(Math.min(t,r),e)}function fr(t){return t&&t.isLeaf}function pr(t){return t&&t.isInternal&&!t.isOpen}function hr(t){var e;return t&&t.isOpen&&!(!((e=t.children)===null||e===void 0)&&e.length)}const gr=(t,e)=>{let r=t;for(;r;){if(r.id===e.id)return!0;r=r.parent}return!1},mr=t=>{if(!t.parent)throw Error("Node does not have a parent");return t.parent.children.findIndex(e=>e.id===t.id)};function Ze(t,e){if(!t)return null;if(t.id===e)return t;if(t.children)for(let r of t.children){const n=Ze(r,e);if(n)return n}return null}function Se(t,e){if(e(t),t.children)for(let r of t.children)Se(r,e)}function vr(t){const e=br(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=xn(e,n);break}r?.focus()}function yr(t){const e=br(t);let r;for(let n=0;n<e.length;++n)if(e[n]===t){r=Tn(e,n);break}r?.focus()}function xn(t,e){return e+1<t.length?t[e+1]:t[0]}function Tn(t,e){return e-1>=0?t[e-1]:t[t.length-1]}function br(t){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(e=>e===t||!t.contains(e))}function ne(t,e){return typeof e=="boolean"?e:typeof e=="string"?t[e]:e(t)}function Sr(t){return t===null?null:W(t)}function W(t){return typeof t=="string"?t:t.id}function Dr(t,...e){if(t)return t(...e)}function Ir(t){return new Promise((e,r)=>{let n=0;function i(){n+=1,n===100&&r(),t()?e():setTimeout(i,10)}i()})}function wr(t){var e,r;const n=t.focusedNode;return n?n.isOpen?0:n.parent?n.childIndex+1:0:(r=(e=t.root.children)===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0}function Or(t){const e=t.focusedNode;return e?e.isOpen?e.id:e.parent&&!e.parent.isRoot?e.parent.id:null:null}const En=Object.freeze(Object.defineProperty({__proto__:null,access:ne,bound:fe,dfs:Ze,focusNextElement:vr,focusPrevElement:yr,getInsertIndex:wr,getInsertParentId:Or,identify:W,identifyNull:Sr,indexOf:mr,isClosed:pr,isDescendant:gr,isItem:fr,isOpenWithEmptyChildren:hr,safeRun:Dr,waitFor:Ir,walk:Se},Symbol.toStringTag,{value:"Module"})),Cn={display:"flex",alignItems:"center",zIndex:1},Nn={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},kn={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},_n=ar.memo(function({top:e,left:r,indent:n}){const i={position:"absolute",pointerEvents:"none",top:e-2+"px",left:r+"px",right:n+"px"};return O.jsxs("div",{style:Object.assign(Object.assign({},Cn),i),children:[O.jsx("div",{style:Object.assign({},kn)}),O.jsx("div",{style:Object.assign({},Nn)})]})});function An({node:t,attrs:e,innerRef:r,children:n}){return O.jsx("div",Object.assign({},e,{ref:r,onFocus:i=>i.stopPropagation(),onClick:t.handleClick,children:n}))}function Pn(t){return O.jsxs("div",{ref:t.dragHandle,style:t.style,children:[O.jsx("span",{onClick:e=>{e.stopPropagation(),t.node.toggle()},children:t.node.isLeaf?"🌳":t.node.isOpen?"🗁":"🗀"})," ",t.node.isEditing?O.jsx(Rn,Object.assign({},t)):O.jsx(jn,Object.assign({},t))]})}function jn(t){return O.jsx(O.Fragment,{children:O.jsx("span",{children:t.node.data.name})})}function Rn({node:t}){const e=v.useRef();return v.useEffect(()=>{var r,n;(r=e.current)===null||r===void 0||r.focus(),(n=e.current)===null||n===void 0||n.select()},[]),O.jsx("input",{ref:e,defaultValue:t.data.name,onBlur:()=>t.reset(),onKeyDown:r=>{var n;r.key==="Escape"&&t.reset(),r.key==="Enter"&&t.submit(((n=e.current)===null||n===void 0?void 0:n.value)||"")}})}function Ne(t){return{type:"EDIT",id:t}}function Ln(t={id:null},e){return e.type==="EDIT"?Object.assign(Object.assign({},t),{id:e.id}):t}function q(t){return{type:"FOCUS",id:t}}function Hn(){return{type:"TREE_BLUR"}}function Mn(t={id:null,treeFocused:!1},e){return e.type==="FOCUS"?Object.assign(Object.assign({},t),{id:e.id,treeFocused:!0}):e.type==="TREE_BLUR"?Object.assign(Object.assign({},t),{treeFocused:!1}):t}class De{constructor(e){this.handleClick=r=>{r.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():r.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=e.tree,this.id=e.id,this.data=e.data,this.level=e.level,this.children=e.children,this.parent=e.parent,this.isDraggable=e.isDraggable,this.rowIndex=e.rowIndex}get isRoot(){return this.id===oe}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var e;return this.isSelected&&!(!((e=this.prev)===null||e===void 0)&&e.isSelected)}get isSelectedEnd(){var e;return this.isSelected&&!(!((e=this.next)===null||e===void 0)&&e.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var e,r;const n=this.childIndex;return(r=(e=this.parent)===null||e===void 0?void 0:e.children[n+1])!==null&&r!==void 0?r:null}isAncestorOf(e){if(!e)return!1;let r=e;for(;r;){if(r.id===this.id)return!0;r=r.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(e){this.tree.submit(this,e)}reset(){this.tree.reset()}clone(){return new De(Object.assign({},this))}edit(){return this.tree.edit(this)}}const oe="__REACT_ARBORIST_INTERNAL_ROOT__";function dt(t){var e;function r(o,a,s){const u=t.accessId(o),c=new De({tree:t,data:o,level:a,parent:s,id:u,children:null,isDraggable:t.isDraggable(o),rowIndex:null}),d=t.accessChildren(o);return d&&(c.children=d.map(h=>r(h,a+1,c))),c}const n=new De({tree:t,id:oe,data:{id:oe},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),i=(e=t.props.data)!==null&&e!==void 0?e:[];return n.children=i.map(o=>r(o,0,n)),n}const Fe={open(t,e){return{type:"VISIBILITY_OPEN",id:t,filtered:e}},close(t,e){return{type:"VISIBILITY_CLOSE",id:t,filtered:e}},toggle(t,e){return{type:"VISIBILITY_TOGGLE",id:t,filtered:e}},clear(t){return{type:"VISIBILITY_CLEAR",filtered:t}}};function ft(t={},e){if(e.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},t),{[e.id]:!0});if(e.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},t),{[e.id]:!1});if(e.type==="VISIBILITY_TOGGLE"){const r=t[e.id];return Object.assign(Object.assign({},t),{[e.id]:!r})}else return e.type==="VISIBILITY_CLEAR"?{}:t}function $n(t={filtered:{},unfiltered:{}},e){return e.type.startsWith("VISIBILITY")?e.filtered?Object.assign(Object.assign({},t),{filtered:ft(t.filtered,e)}):Object.assign(Object.assign({},t),{unfiltered:ft(t.unfiltered,e)}):t}const J=t=>{var e;return{nodes:{open:{filtered:{},unfiltered:(e=t?.initialOpenState)!==null&&e!==void 0?e:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},L={clear:()=>({type:"SELECTION_CLEAR"}),only:t=>({type:"SELECTION_ONLY",id:W(t)}),add:t=>({type:"SELECTION_ADD",ids:(Array.isArray(t)?t:[t]).map(W)}),remove:t=>({type:"SELECTION_REMOVE",ids:(Array.isArray(t)?t:[t]).map(W)}),set:t=>Object.assign({type:"SELECTION_SET"},t),mostRecent:t=>({type:"SELECTION_MOST_RECENT",id:t===null?null:W(t)}),anchor:t=>({type:"SELECTION_ANCHOR",id:t===null?null:W(t)})};function Vn(t=J().nodes.selection,e){const r=t.ids;switch(e.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},t),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},t),{ids:new Set([e.id])});case"SELECTION_ADD":return e.ids.length===0?t:(e.ids.forEach(n=>r.add(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_REMOVE":return e.ids.length===0?t:(e.ids.forEach(n=>r.delete(n)),Object.assign(Object.assign({},t),{ids:new Set(r)}));case"SELECTION_SET":return Object.assign(Object.assign({},t),{ids:e.ids,mostRecent:e.mostRecent,anchor:e.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},t),{mostRecent:e.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},t),{anchor:e.id});default:return t}}const Z={cursor(t){return{type:"DND_CURSOR",cursor:t}},dragStart(t,e){return{type:"DND_DRAG_START",id:t,dragIds:e}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(t,e){return{type:"DND_HOVERING",parentId:t,index:e}}};function Un(t=J().dnd,e){switch(e.type){case"DND_CURSOR":return Object.assign(Object.assign({},t),{cursor:e.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},t),{dragId:e.id,dragIds:e.dragIds});case"DND_DRAG_END":return J().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},t),{parentId:e.parentId,index:e.index});default:return t}}const Wn={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},zn=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e}px, ${r}px)`}},Fn=t=>{if(!t)return{display:"none"};const{x:e,y:r}=t;return{transform:`translate(${e+10}px, ${r+10}px)`}};function xr({offset:t,mouse:e,id:r,dragIds:n,isDragging:i}){return O.jsxs(Bn,{isDragging:i,children:[O.jsx(qn,{offset:t,children:O.jsx(Yn,{id:r,dragIds:n})}),O.jsx(Kn,{mouse:e,count:n.length})]})}const Bn=v.memo(function(e){return e.isDragging?O.jsx("div",{style:Wn,children:e.children}):null});function qn(t){return O.jsx("div",{className:"row preview",style:zn(t.offset),children:t.children})}function Kn(t){const{count:e,mouse:r}=t;return e>1?O.jsx("div",{className:"selected-count",style:Fn(r),children:e}):null}const Yn=v.memo(function(e){const r=P(),n=r.get(e.id);return n?O.jsx(r.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*r.indent,opacity:.2,background:"transparent"},tree:r}):null});function Be(){return Be=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Be.apply(null,arguments)}function pt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qe(t,e){return qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},qe(t,e)}function Gn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qe(t,e)}var ht=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Xn(t,e){return!!(t===e||ht(t)&&ht(e))}function Qn(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!Xn(t[r],e[r]))return!1;return!0}function ke(t,e){e===void 0&&(e=Qn);var r,n=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&r===this&&e(s,n)||(i=t.apply(this,s),o=!0,r=this,n=s),i}return a}var Jn=typeof performance=="object"&&typeof performance.now=="function",gt=Jn?function(){return performance.now()}:function(){return Date.now()};function mt(t){cancelAnimationFrame(t.id)}function Zn(t,e){var r=gt();function n(){gt()-r>=e?t.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var _e=-1;function vt(t){if(t===void 0&&(t=!1),_e===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),_e=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return _e}var K=null;function yt(t){if(t===void 0&&(t=!1),K===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?K="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?K="negative":K="positive-ascending"),document.body.removeChild(e),K}return K}var ei=150,ti=function(e,r){return e},pe=null,he=null;typeof window<"u"&&typeof window.WeakSet<"u"&&(pe=new WeakSet,he=new WeakSet);function ri(t){var e,r=t.getItemOffset,n=t.getEstimatedTotalSize,i=t.getItemSize,o=t.getOffsetForIndexAndAlignment,a=t.getStartIndexForOffset,s=t.getStopIndexForStartIndex,u=t.initInstanceProps,c=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return e=(function(h){Gn(y,h);function y(D){var l;return l=h.call(this,D)||this,l._instanceProps=u(l.props,pt(l)),l._outerRef=void 0,l._resetIsScrollingTimeoutId=null,l.state={instance:pt(l),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof l.props.initialScrollOffset=="number"?l.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},l._callOnItemsRendered=void 0,l._callOnItemsRendered=ke(function(f,p,g,S){return l.props.onItemsRendered({overscanStartIndex:f,overscanStopIndex:p,visibleStartIndex:g,visibleStopIndex:S})}),l._callOnScroll=void 0,l._callOnScroll=ke(function(f,p,g){return l.props.onScroll({scrollDirection:f,scrollOffset:p,scrollUpdateWasRequested:g})}),l._getItemStyle=void 0,l._getItemStyle=function(f){var p=l.props,g=p.direction,S=p.itemSize,w=p.layout,I=l._getItemStyleCache(c&&S,c&&w,c&&g),T;if(I.hasOwnProperty(f))T=I[f];else{var E=r(l.props,f,l._instanceProps),N=i(l.props,f,l._instanceProps),k=g==="horizontal"||w==="horizontal",M=g==="rtl",se=k?E:0;I[f]=T={position:"absolute",left:M?void 0:se,right:M?se:void 0,top:k?0:E,height:k?"100%":N,width:k?N:"100%"}}return T},l._getItemStyleCache=void 0,l._getItemStyleCache=ke(function(f,p,g){return{}}),l._onScrollHorizontal=function(f){var p=f.currentTarget,g=p.clientWidth,S=p.scrollLeft,w=p.scrollWidth;l.setState(function(I){if(I.scrollOffset===S)return null;var T=l.props.direction,E=S;if(T==="rtl")switch(yt()){case"negative":E=-S;break;case"positive-descending":E=w-g-S;break}return E=Math.max(0,Math.min(E,w-g)),{isScrolling:!0,scrollDirection:I.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},l._resetIsScrollingDebounced)},l._onScrollVertical=function(f){var p=f.currentTarget,g=p.clientHeight,S=p.scrollHeight,w=p.scrollTop;l.setState(function(I){if(I.scrollOffset===w)return null;var T=Math.max(0,Math.min(w,S-g));return{isScrolling:!0,scrollDirection:I.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},l._resetIsScrollingDebounced)},l._outerRefSetter=function(f){var p=l.props.outerRef;l._outerRef=f,typeof p=="function"?p(f):p!=null&&typeof p=="object"&&p.hasOwnProperty("current")&&(p.current=f)},l._resetIsScrollingDebounced=function(){l._resetIsScrollingTimeoutId!==null&&mt(l._resetIsScrollingTimeoutId),l._resetIsScrollingTimeoutId=Zn(l._resetIsScrolling,ei)},l._resetIsScrolling=function(){l._resetIsScrollingTimeoutId=null,l.setState({isScrolling:!1},function(){l._getItemStyleCache(-1,null)})},l}y.getDerivedStateFromProps=function(l,f){return ni(l,f),d(l),null};var b=y.prototype;return b.scrollTo=function(l){l=Math.max(0,l),this.setState(function(f){return f.scrollOffset===l?null:{scrollDirection:f.scrollOffset<l?"forward":"backward",scrollOffset:l,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},b.scrollToItem=function(l,f){f===void 0&&(f="auto");var p=this.props,g=p.itemCount,S=p.layout,w=this.state.scrollOffset;l=Math.max(0,Math.min(l,g-1));var I=0;if(this._outerRef){var T=this._outerRef;S==="vertical"?I=T.scrollWidth>T.clientWidth?vt():0:I=T.scrollHeight>T.clientHeight?vt():0}this.scrollTo(o(this.props,l,f,w,this._instanceProps,I))},b.componentDidMount=function(){var l=this.props,f=l.direction,p=l.initialScrollOffset,g=l.layout;if(typeof p=="number"&&this._outerRef!=null){var S=this._outerRef;f==="horizontal"||g==="horizontal"?S.scrollLeft=p:S.scrollTop=p}this._callPropsCallbacks()},b.componentDidUpdate=function(){var l=this.props,f=l.direction,p=l.layout,g=this.state,S=g.scrollOffset,w=g.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var I=this._outerRef;if(f==="horizontal"||p==="horizontal")if(f==="rtl")switch(yt()){case"negative":I.scrollLeft=-S;break;case"positive-ascending":I.scrollLeft=S;break;default:var T=I.clientWidth,E=I.scrollWidth;I.scrollLeft=E-T-S;break}else I.scrollLeft=S;else I.scrollTop=S}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&mt(this._resetIsScrollingTimeoutId)},b.render=function(){var l=this.props,f=l.children,p=l.className,g=l.direction,S=l.height,w=l.innerRef,I=l.innerElementType,T=l.innerTagName,E=l.itemCount,N=l.itemData,k=l.itemKey,M=k===void 0?ti:k,se=l.layout,Jr=l.outerElementType,Zr=l.outerTagName,en=l.style,tn=l.useIsScrolling,rn=l.width,st=this.state.isScrolling,Ce=g==="horizontal"||se==="horizontal",nn=Ce?this._onScrollHorizontal:this._onScrollVertical,ut=this._getRangeToRender(),on=ut[0],an=ut[1],lt=[];if(E>0)for(var ee=on;ee<=an;ee++)lt.push(v.createElement(f,{data:N,key:M(ee,N),index:ee,isScrolling:tn?st:void 0,style:this._getItemStyle(ee)}));var ct=n(this.props,this._instanceProps);return v.createElement(Jr||Zr||"div",{className:p,onScroll:nn,ref:this._outerRefSetter,style:Be({position:"relative",height:S,width:rn,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:g},en)},v.createElement(I||T||"div",{children:lt,ref:w,style:{height:Ce?"100%":ct,pointerEvents:st?"none":void 0,width:Ce?ct:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var l=this.props.itemCount;if(l>0){var f=this._getRangeToRender(),p=f[0],g=f[1],S=f[2],w=f[3];this._callOnItemsRendered(p,g,S,w)}}if(typeof this.props.onScroll=="function"){var I=this.state,T=I.scrollDirection,E=I.scrollOffset,N=I.scrollUpdateWasRequested;this._callOnScroll(T,E,N)}},b._getRangeToRender=function(){var l=this.props,f=l.itemCount,p=l.overscanCount,g=this.state,S=g.isScrolling,w=g.scrollDirection,I=g.scrollOffset;if(f===0)return[0,0,0,0];var T=a(this.props,I,this._instanceProps),E=s(this.props,T,I,this._instanceProps),N=!S||w==="backward"?Math.max(1,p):1,k=!S||w==="forward"?Math.max(1,p):1;return[Math.max(0,T-N),Math.max(0,Math.min(f-1,E+k)),T,E]},y})(v.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var ni=function(e,r){var n=e.children,i=e.direction,o=e.height,a=e.layout,s=e.innerTagName,u=e.outerTagName,c=e.width,d=r.instance;{(s!=null||u!=null)&&he&&!he.has(d)&&(he.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=i==="horizontal"||a==="horizontal";switch(i){case"horizontal":case"vertical":pe&&!pe.has(d)&&(pe.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(a){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+a+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(h&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!h&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},ii=ri({getItemOffset:function(e,r){var n=e.itemSize;return r*n},getItemSize:function(e,r){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var r=e.itemCount,n=e.itemSize;return n*r},getOffsetForIndexAndAlignment:function(e,r,n,i,o,a){var s=e.direction,u=e.height,c=e.itemCount,d=e.itemSize,h=e.layout,y=e.width,b=s==="horizontal"||h==="horizontal",D=b?y:u,l=Math.max(0,c*d-D),f=Math.min(l,r*d),p=Math.max(0,r*d-D+d+a);switch(n==="smart"&&(i>=p-D&&i<=f+D?n="auto":n="center"),n){case"start":return f;case"end":return p;case"center":{var g=Math.round(p+(f-p)/2);return g<Math.ceil(D/2)?0:g>l+Math.floor(D/2)?l:g}default:return i>=p&&i<=f?i:i<p?p:f}},getStartIndexForOffset:function(e,r){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(e,r,n){var i=e.direction,o=e.height,a=e.itemCount,s=e.itemSize,u=e.layout,c=e.width,d=i==="horizontal"||u==="horizontal",h=r*s,y=d?c:o,b=Math.ceil((y+n-h)/s);return Math.max(0,Math.min(a-1,r+b-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var r=e.itemSize;if(typeof r!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(r===null?"null":typeof r)+'" was specified.'))}});function oi(){var t,e;const r=P(),i=On().cursor;if(!i||i.type!=="line")return null;const o=r.indent,a=r.rowHeight*i.index+((e=(t=r.props.padding)!==null&&t!==void 0?t:r.props.paddingTop)!==null&&e!==void 0?e:0),s=o*i.level,u=r.renderCursor;return O.jsx(u,{top:a,left:s,indent:o})}var ai=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const si=v.forwardRef(function(e,r){const{children:n}=e,i=ai(e,["children"]),o=P();return O.jsxs("div",Object.assign({ref:r},i,{onClick:a=>{a.currentTarget===a.target&&o.deselectAll()},children:[O.jsx(ui,{}),n]}))}),ui=()=>{const t=P();return O.jsx("div",{style:{height:t.visibleNodes.length*t.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:O.jsx(oi,{})})};var li=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};const ci=v.forwardRef(function(e,r){var n,i,o,a,{style:s}=e,u=li(e,["style"]);const c=P(),d=(i=(n=c.props.padding)!==null&&n!==void 0?n:c.props.paddingTop)!==null&&i!==void 0?i:0,h=(a=(o=c.props.padding)!==null&&o!==void 0?o:c.props.paddingBottom)!==null&&a!==void 0?a:0;return O.jsx("div",Object.assign({ref:r,style:Object.assign(Object.assign({},s),{height:`${parseFloat(s.height)+d+h}px`})},u))});var Tr=v.createContext({dragDropManager:void 0}),R;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(R||(R={}));function x(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(e===void 0)throw new Error("invariant requires an error message argument");if(!t){var o;if(e===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;o=new Error(e.replace(/%s/g,function(){return n[a++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var et="dnd-core/INIT_COORDS",we="dnd-core/BEGIN_DRAG",tt="dnd-core/PUBLISH_DRAG_SOURCE",Oe="dnd-core/HOVER",xe="dnd-core/DROP",Te="dnd-core/END_DRAG";function bt(t,e){return{type:et,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function ge(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ge=function(r){return typeof r}:ge=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ge(t)}function di(t,e,r){return e.split(".").reduce(function(n,i){return n&&n[i]?n[i]:r||null},t)}function fi(t,e){return t.filter(function(r){return r!==e})}function Er(t){return ge(t)==="object"}function pi(t,e){var r=new Map,n=function(a){r.set(a,r.has(a)?r.get(a)+1:1)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o,a){o===1&&i.push(a)}),i}function hi(t,e){return t.filter(function(r){return e.indexOf(r)>-1})}var gi={type:et,payload:{clientOffset:null,sourceClientOffset:null}};function mi(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},i=n.publishSource,o=i===void 0?!0:i,a=n.clientOffset,s=n.getSourceClientOffset,u=t.getMonitor(),c=t.getRegistry();t.dispatch(bt(a)),vi(r,u,c);var d=Si(r,u);if(d===null){t.dispatch(gi);return}var h=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");yi(s),h=s(d)}t.dispatch(bt(a,h));var y=c.getSource(d),b=y.beginDrag(u,d);if(b!=null){bi(b),c.pinSource(d);var D=c.getSourceType(d);return{type:we,payload:{itemType:D,item:b,sourceId:d,clientOffset:a||null,sourceClientOffset:h||null,isSourcePublic:!!o}}}}}function vi(t,e,r){x(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){x(r.getSource(n),"Expected sourceIds to be registered.")})}function yi(t){x(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function bi(t){x(Er(t),"Item must be an object.")}function Si(t,e){for(var r=null,n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function Di(t){return function(){var r=t.getMonitor();if(r.isDragging())return{type:tt}}}function Ke(t,e){return e===null?t===null:Array.isArray(t)?t.some(function(r){return r===e}):t===e}function Ii(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.clientOffset;wi(r);var o=r.slice(0),a=t.getMonitor(),s=t.getRegistry();Oi(o,a,s);var u=a.getItemType();return xi(o,s,u),Ti(o,a,s),{type:Oe,payload:{targetIds:o,clientOffset:i||null}}}}function wi(t){x(Array.isArray(t),"Expected targetIds to be an array.")}function Oi(t,e,r){x(e.isDragging(),"Cannot call hover while not dragging."),x(!e.didDrop(),"Cannot call hover after drop.");for(var n=0;n<t.length;n++){var i=t[n];x(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(i);x(o,"Expected targetIds to be registered.")}}function xi(t,e,r){for(var n=t.length-1;n>=0;n--){var i=t[n],o=e.getTargetType(i);Ke(o,r)||t.splice(n,1)}}function Ti(t,e,r){t.forEach(function(n){var i=r.getTarget(n);i.hover(e,n)})}function St(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?St(Object(r),!0).forEach(function(n){Ei(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ei(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ci(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.getMonitor(),i=t.getRegistry();Ni(n);var o=Ai(n);o.forEach(function(a,s){var u=ki(a,s,i,n),c={type:xe,payload:{dropResult:Dt(Dt({},r),u)}};t.dispatch(c)})}}function Ni(t){x(t.isDragging(),"Cannot call drop while not dragging."),x(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function ki(t,e,r,n){var i=r.getTarget(t),o=i?i.drop(n,t):void 0;return _i(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function _i(t){x(typeof t>"u"||Er(t),"Drop result must either be an object or undefined.")}function Ai(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function Pi(t){return function(){var r=t.getMonitor(),n=t.getRegistry();ji(r);var i=r.getSourceId();if(i!=null){var o=n.getSource(i,!0);o.endDrag(r,i),n.unpinSource()}return{type:Te}}}function ji(t){x(t.isDragging(),"Cannot call endDrag while not dragging.")}function Ri(t){return{beginDrag:mi(t),publishDragSource:Di(t),hover:Ii(t),drop:Ci(t),endDrag:Pi(t)}}function Li(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Hi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Mi(t,e,r){return e&&Hi(t.prototype,e),t}function te(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $i=(function(){function t(e,r){var n=this;Li(this,t),te(this,"store",void 0),te(this,"monitor",void 0),te(this,"backend",void 0),te(this,"isSetUp",!1),te(this,"handleRefCountChange",function(){var i=n.store.getState().refCount>0;n.backend&&(i&&!n.isSetUp?(n.backend.setup(),n.isSetUp=!0):!i&&n.isSetUp&&(n.backend.teardown(),n.isSetUp=!1))}),this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}return Mi(t,[{key:"receiveBackend",value:function(r){this.backend=r}},{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 r=this,n=this.store.dispatch;function i(a){return function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=a.apply(r,u);typeof d<"u"&&n(d)}}var o=Ri(this);return Object.keys(o).reduce(function(a,s){var u=o[s];return a[s]=i(u),a},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),t})(),It=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ot={INIT:"@@redux/INIT"+wt(),REPLACE:"@@redux/REPLACE"+wt()};function Vi(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ui(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(Fi(t))return"date";if(zi(t))return"error";var r=Wi(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wi(t){return typeof t.constructor=="function"?t.constructor.name:null}function zi(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function Fi(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function Y(t){var e=typeof t;return e=Ui(t),e}function Cr(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function. Instead, received: '"+Y(r)+"'");return r(Cr)(t,e)}if(typeof t!="function")throw new Error("Expected the root reducer to be a function. Instead, received: '"+Y(t)+"'");var i=t,o=e,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function h(l){if(typeof l!="function")throw new Error("Expected the listener to be a function. Instead, received: '"+Y(l)+"'");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var f=!0;return c(),s.push(l),function(){if(f){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");f=!1,c();var g=s.indexOf(l);s.splice(g,1),a=null}}}function y(l){if(!Vi(l))throw new Error("Actions must be plain objects. Instead, the actual type was: '"+Y(l)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof l.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,o=i(o,l)}finally{u=!1}for(var f=a=s,p=0;p<f.length;p++){var g=f[p];g()}return l}function b(l){if(typeof l!="function")throw new Error("Expected the nextReducer to be a function. Instead, received: '"+Y(l));i=l,y({type:Ot.REPLACE})}function D(){var l,f=h;return l={subscribe:function(g){if(typeof g!="object"||g===null)throw new Error("Expected the observer to be an object. Instead, received: '"+Y(g)+"'");function S(){g.next&&g.next(d())}S();var w=f(S);return{unsubscribe:w}}},l[It]=function(){return this},l}return y({type:Ot.INIT}),n={dispatch:y,subscribe:h,getState:d,replaceReducer:b},n[It]=D,n}var Bi=function(e,r){return e===r};function qi(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Ki(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bi;if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Tt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xt(Object(r),!0).forEach(function(n){Yi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Et={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Gi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Et,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case et:case we:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Oe:return qi(t.clientOffset,r.clientOffset)?t:Tt(Tt({},t),{},{clientOffset:r.clientOffset});case Te:case xe:return Et;default:return t}}var rt="dnd-core/ADD_SOURCE",nt="dnd-core/ADD_TARGET",it="dnd-core/REMOVE_SOURCE",Ee="dnd-core/REMOVE_TARGET";function Xi(t){return{type:rt,payload:{sourceId:t}}}function Qi(t){return{type:nt,payload:{targetId:t}}}function Ji(t){return{type:it,payload:{sourceId:t}}}function Zi(t){return{type:Ee,payload:{targetId:t}}}function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ct(Object(r),!0).forEach(function(n){eo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var to={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ro(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:to,e=arguments.length>1?arguments[1]:void 0,r=e.payload;switch(e.type){case we:return j(j({},t),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case tt:return j(j({},t),{},{isSourcePublic:!0});case Oe:return j(j({},t),{},{targetIds:r.targetIds});case Ee:return t.targetIds.indexOf(r.targetId)===-1?t:j(j({},t),{},{targetIds:fi(t.targetIds,r.targetId)});case xe:return j(j({},t),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Te:return j(j({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function no(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case rt:case nt:return t+1;case it:case Ee:return t-1;default:return t}}var Ie=[],ot=[];Ie.__IS_NONE__=!0;ot.__IS_ALL__=!0;function io(t,e){if(t===Ie)return!1;if(t===ot||typeof e>"u")return!0;var r=hi(e,t);return r.length>0}function oo(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Oe:break;case rt:case nt:case Ee:case it:return Ie;case we:case tt:case Te:case xe:default:return ot}var e=t.payload,r=e.targetIds,n=r===void 0?[]:r,i=e.prevTargetIds,o=i===void 0?[]:i,a=pi(n,o),s=a.length>0||!Ki(n,o);if(!s)return Ie;var u=o[o.length-1],c=n[n.length-1];return u!==c&&(u&&a.push(u),c&&a.push(c)),a}function ao(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return t+1}function Nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function kt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Nt(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function so(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:oo(t.dirtyHandlerIds,{type:e.type,payload:kt(kt({},e.payload),{},{prevTargetIds:di(t,"dragOperation.targetIds",[])})}),dragOffset:Gi(t.dragOffset,e),refCount:no(t.refCount,e),dragOperation:ro(t.dragOperation,e),stateId:ao(t.stateId)}}function lo(t,e){return{x:t.x+e.x,y:t.y+e.y}}function Nr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function co(t){var e=t.clientOffset,r=t.initialClientOffset,n=t.initialSourceClientOffset;return!e||!r||!n?null:Nr(lo(e,n),r)}function fo(t){var e=t.clientOffset,r=t.initialClientOffset;return!e||!r?null:Nr(e,r)}function po(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function go(t,e,r){return e&&ho(t.prototype,e),t}function _t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mo=(function(){function t(e,r){po(this,t),_t(this,"store",void 0),_t(this,"registry",void 0),this.store=e,this.registry=r}return go(t,[{key:"subscribeToStateChange",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=i.handlerIds;x(typeof r=="function","listener must be a function."),x(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,s=function(){var c=n.store.getState(),d=c.stateId;try{var h=d===a||d===a+1&&!io(c.dirtyHandlerIds,o);h||r()}finally{a=d}};return this.store.subscribe(s)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;x(typeof r=="function","listener must be a function.");var i=this.store.getState().dragOffset,o=function(){var s=n.store.getState().dragOffset;s!==i&&(i=s,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return x(n,"Expected to find a valid source. sourceId=".concat(r)),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(x(n,"Expected to find a valid target. targetId=".concat(r)),!this.isDragging()||this.didDrop())return!1;var i=this.registry.getTargetType(r),o=this.getItemType();return Ke(i,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(x(n,"Expected to find a valid source. sourceId=".concat(r)),!this.isDragging()||!this.isSourcePublic())return!1;var i=this.registry.getSourceType(r),o=this.getItemType();return i!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var i=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),a=this.getItemType();if(a&&!Ke(o,a))return!1;var s=this.getTargetIds();if(!s.length)return!1;var u=s.indexOf(r);return i?u===s.length-1:u>-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!!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 co(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return fo(this.store.getState().dragOffset)}}]),t})(),vo=0;function yo(){return vo++}function me(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?me=function(r){return typeof r}:me=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},me(t)}function bo(t){x(typeof t.canDrag=="function","Expected canDrag to be a function."),x(typeof t.beginDrag=="function","Expected beginDrag to be a function."),x(typeof t.endDrag=="function","Expected endDrag to be a function.")}function So(t){x(typeof t.canDrop=="function","Expected canDrop to be a function."),x(typeof t.hover=="function","Expected hover to be a function."),x(typeof t.drop=="function","Expected beginDrag to be a function.")}function Ye(t,e){if(e&&Array.isArray(t)){t.forEach(function(r){return Ye(r,!1)});return}x(typeof t=="string"||me(t)==="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const At=typeof global<"u"?global:self,kr=At.MutationObserver||At.WebKitMutationObserver;function _r(t){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),t()}}}function Do(t){let e=1;const r=new kr(t),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){e=-e,n.data=e}}const Io=typeof kr=="function"?Do:_r;class wo{enqueueTask(e){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const r=this.index;if(this.index++,e[r].call(),this.index>this.capacity){for(let n=0,i=e.length-this.index;n<i;n++)e[n]=e[n+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Io(this.flush),this.requestErrorThrow=_r(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Oo{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,r){this.onError=e,this.release=r,this.task=null}}class xo{create(e){const r=this.freeTasks,n=r.length?r.pop():new Oo(this.onError,i=>r[r.length]=i);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}const Ar=new wo,To=new xo(Ar.registerPendingError);function Eo(t){Ar.enqueueTask(To.create(t))}function Co(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function No(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ko(t,e,r){return e&&No(t.prototype,e),t}function G(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _o(t,e){return Ro(t)||jo(t,e)||Po(t,e)||Ao()}function Ao(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Po(t,e){if(t){if(typeof t=="string")return Pt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pt(t,e)}}function Pt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jo(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Ro(t){if(Array.isArray(t))return t}function Lo(t){var e=yo().toString();switch(t){case R.SOURCE:return"S".concat(e);case R.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function jt(t){switch(t[0]){case"S":return R.SOURCE;case"T":return R.TARGET;default:x(!1,"Cannot parse handler ID: ".concat(t))}}function Rt(t,e){var r=t.entries(),n=!1;do{var i=r.next(),o=i.done,a=_o(i.value,2),s=a[1];if(s===e)return!0;n=!!o}while(!n);return!1}var Ho=(function(){function t(e){Co(this,t),G(this,"types",new Map),G(this,"dragSources",new Map),G(this,"dropTargets",new Map),G(this,"pinnedSourceId",null),G(this,"pinnedSource",null),G(this,"store",void 0),this.store=e}return ko(t,[{key:"addSource",value:function(r,n){Ye(r),bo(n);var i=this.addHandler(R.SOURCE,r,n);return this.store.dispatch(Xi(i)),i}},{key:"addTarget",value:function(r,n){Ye(r,!0),So(n);var i=this.addHandler(R.TARGET,r,n);return this.store.dispatch(Qi(i)),i}},{key:"containsHandler",value:function(r){return Rt(this.dragSources,r)||Rt(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;x(this.isSourceId(r),"Expected a valid source ID.");var i=n&&r===this.pinnedSourceId,o=i?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return x(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return x(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return x(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=jt(r);return n===R.SOURCE}},{key:"isTargetId",value:function(r){var n=jt(r);return n===R.TARGET}},{key:"removeSource",value:function(r){var n=this;x(this.getSource(r),"Expected an existing source."),this.store.dispatch(Ji(r)),Eo(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){x(this.getTarget(r),"Expected an existing target."),this.store.dispatch(Zi(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);x(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){x(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,i){var o=Lo(r);return this.types.set(o,n),r===R.SOURCE?this.dragSources.set(o,i):r===R.TARGET&&this.dropTargets.set(o,i),o}}]),t})();function Mo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=$o(n),o=new mo(i,new Ho(i)),a=new $i(i,o),s=t(a,e,r);return a.receiveBackend(s),a}function $o(t){var e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Cr(uo,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var Vo=["children"];function Uo(t,e){return Bo(t)||Fo(t,e)||zo(t,e)||Wo()}function Wo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zo(t,e){if(t){if(typeof t=="string")return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lt(t,e)}}function Lt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fo(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Bo(t){if(Array.isArray(t))return t}function qo(t,e){if(t==null)return{};var r=Ko(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ko(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}var Ht=0,ve=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Yo=v.memo(function(e){var r=e.children,n=qo(e,Vo),i=Go(n),o=Uo(i,2),a=o[0],s=o[1];return v.useEffect(function(){if(s){var u=Pr();return++Ht,function(){--Ht===0&&(u[ve]=null)}}},[]),O.jsx(Tr.Provider,Object.assign({value:a},{children:r}),void 0)});function Go(t){if("manager"in t){var e={dragDropManager:t.manager};return[e,!1]}var r=Xo(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[r,n]}function Xo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=e;return i[ve]||(i[ve]={dragDropManager:Mo(t,e,r,n)}),i[ve]}function Pr(){return typeof global<"u"?global:window}function Qo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Zo(t,e,r){return e&&Jo(t.prototype,e),t}function Mt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ae=!1,Pe=!1,ea=(function(){function t(e){Qo(this,t),Mt(this,"internalMonitor",void 0),Mt(this,"sourceId",null),this.internalMonitor=e.getMonitor()}return Zo(t,[{key:"receiveHandlerId",value:function(r){this.sourceId=r}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){x(!Ae,"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 Ae=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Ae=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;x(!Pe,"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 Pe=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Pe=!1}}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"isDraggingSource",value:function(r){return this.internalMonitor.isDraggingSource(r)}},{key:"isOverTarget",value:function(r,n){return this.internalMonitor.isOverTarget(r,n)}},{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(r){return this.internalMonitor.subscribeToOffsetChange(r)}},{key:"canDragSource",value:function(r){return this.internalMonitor.canDragSource(r)}},{key:"canDropOnTarget",value:function(r){return this.internalMonitor.canDropOnTarget(r)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),t})();function ta(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ra(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function na(t,e,r){return e&&ra(t.prototype,e),t}function $t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var je=!1,ia=(function(){function t(e){ta(this,t),$t(this,"internalMonitor",void 0),$t(this,"targetId",null),this.internalMonitor=e.getMonitor()}return na(t,[{key:"receiveHandlerId",value:function(r){this.targetId=r}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(r,n){return this.internalMonitor.subscribeToStateChange(r,n)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;x(!je,"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 je=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{je=!1}}},{key:"isOver",value:function(r){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,r):!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()}}]),t})();function oa(t){if(typeof t.type!="string"){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function aa(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!v.isValidElement(e)){var n=e;return t(n,r),n}var i=e;oa(i);var o=r?function(a){return t(a,r)}:t;return sa(i,o)}}function jr(t){var e={};return Object.keys(t).forEach(function(r){var n=t[r];if(r.endsWith("Ref"))e[r]=t[r];else{var i=aa(n);e[r]=function(){return i}}}),e}function Vt(t,e){typeof t=="function"?t(e):t.current=e}function sa(t,e){var r=t.ref;return x(typeof r!="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 <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?v.cloneElement(t,{ref:function(i){Vt(r,i),Vt(e,i)}}):v.cloneElement(t,{ref:e})}function ye(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(r){return typeof r}:ye=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ye(t)}function Ge(t){return t!==null&&ye(t)==="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Xe(t,e,r,n){var i=void 0;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var d=t[c],h=e[c];if(i=void 0,i===!1||i===void 0&&d!==h)return!1}return!0}function ua(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function la(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ca(t,e,r){return e&&la(t.prototype,e),t}function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var da=(function(){function t(e){var r=this;ua(this,t),A(this,"hooks",jr({dragSource:function(i,o){r.clearDragSource(),r.dragSourceOptions=o||null,Ge(i)?r.dragSourceRef=i:r.dragSourceNode=i,r.reconnectDragSource()},dragPreview:function(i,o){r.clearDragPreview(),r.dragPreviewOptions=o||null,Ge(i)?r.dragPreviewRef=i:r.dragPreviewNode=i,r.reconnectDragPreview()}})),A(this,"handlerId",null),A(this,"dragSourceRef",null),A(this,"dragSourceNode",void 0),A(this,"dragSourceOptionsInternal",null),A(this,"dragSourceUnsubscribe",void 0),A(this,"dragPreviewRef",null),A(this,"dragPreviewNode",void 0),A(this,"dragPreviewOptionsInternal",null),A(this,"dragPreviewUnsubscribe",void 0),A(this,"lastConnectedHandlerId",null),A(this,"lastConnectedDragSource",null),A(this,"lastConnectedDragSourceOptions",null),A(this,"lastConnectedDragPreview",null),A(this,"lastConnectedDragPreviewOptions",null),A(this,"backend",void 0),this.backend=e}return ca(t,[{key:"receiveHandlerId",value:function(r){this.handlerId!==r&&(this.handlerId=r,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(r){this.dragSourceOptionsInternal=r}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(r){this.dragPreviewOptionsInternal=r}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var r=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(n&&this.disconnectDragSource(),!!this.handlerId){if(!r){this.lastConnectedDragSource=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=r,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,r,this.dragSourceOptions))}}},{key:"reconnectDragPreview",value:function(){var r=this.dragPreview,n=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,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!Xe(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!Xe(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),t})();function fa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pa(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ha(t,e,r){return e&&pa(t.prototype,e),t}function $(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ga=(function(){function t(e){var r=this;fa(this,t),$(this,"hooks",jr({dropTarget:function(i,o){r.clearDropTarget(),r.dropTargetOptions=o,Ge(i)?r.dropTargetRef=i:r.dropTargetNode=i,r.reconnect()}})),$(this,"handlerId",null),$(this,"dropTargetRef",null),$(this,"dropTargetNode",void 0),$(this,"dropTargetOptionsInternal",null),$(this,"unsubscribeDropTarget",void 0),$(this,"lastConnectedHandlerId",null),$(this,"lastConnectedDropTarget",null),$(this,"lastConnectedDropTargetOptions",null),$(this,"backend",void 0),this.backend=e}return ha(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var r=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();r&&this.disconnectDropTarget();var n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(r){r!==this.handlerId&&(this.handlerId=r,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(r){this.dropTargetOptionsInternal=r}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!Xe(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),t})();function ma(t,e,r){var n=r.getRegistry(),i=n.addTarget(t,e);return[i,function(){return n.removeTarget(i)}]}function va(t,e,r){var n=r.getRegistry(),i=n.addSource(t,e);return[i,function(){return n.removeSource(i)}]}var F=typeof window<"u"?v.useLayoutEffect:v.useEffect;function be(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?be=function(r){return typeof r}:be=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},be(t)}function ya(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ba(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Sa(t,e,r){return e&&ba(t.prototype,e),t}function Re(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Da=(function(){function t(e,r,n){ya(this,t),Re(this,"spec",void 0),Re(this,"monitor",void 0),Re(this,"connector",void 0),this.spec=e,this.monitor=r,this.connector=n}return Sa(t,[{key:"beginDrag",value:function(){var r,n=this.spec,i=this.monitor,o=null;return be(n.item)==="object"?o=n.item:typeof n.item=="function"?o=n.item(i):o={},(r=o)!==null&&r!==void 0?r:null}},{key:"canDrag",value:function(){var r=this.spec,n=this.monitor;return typeof r.canDrag=="boolean"?r.canDrag:typeof r.canDrag=="function"?r.canDrag(n):!0}},{key:"isDragging",value:function(r,n){var i=this.spec,o=this.monitor,a=i.isDragging;return a?a(o):n===r.getSourceId()}},{key:"endDrag",value:function(){var r=this.spec,n=this.monitor,i=this.connector,o=r.end;o&&o(n.getItem(),n),i.reconnect()}}]),t})();function Ia(t,e,r){var n=v.useMemo(function(){return new Da(t,e,r)},[e,r]);return v.useEffect(function(){n.spec=t},[t]),n}function B(){var t=v.useContext(Tr),e=t.dragDropManager;return x(e!=null,"Expected drag drop context"),e}function wa(t){return v.useMemo(function(){var e=t.type;return x(e!=null,"spec.type must be defined"),e},[t])}function Oa(t,e){return Ca(t)||Ea(t,e)||Ta(t,e)||xa()}function xa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ta(t,e){if(t){if(typeof t=="string")return Ut(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ut(t,e)}}function Ut(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ea(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Ca(t){if(Array.isArray(t))return t}function Na(t,e,r){var n=B(),i=Ia(t,e,r),o=wa(t);F(function(){if(o!=null){var s=va(o,i,n),u=Oa(s,2),c=u[0],d=u[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d}},[n,e,r,i,o])}function ka(t){return ja(t)||Pa(t)||Aa(t)||_a()}function _a(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aa(t,e){if(t){if(typeof t=="string")return Qe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(t,e)}}function Pa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ja(t){if(Array.isArray(t))return Qe(t)}function Qe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rr(t,e){var r=ka(e||[]);return e==null&&typeof t!="function"&&r.push(t),v.useMemo(function(){return typeof t=="function"?t():t},r)}function Ra(){var t=B();return v.useMemo(function(){return new ea(t)},[t])}function La(t,e){var r=B(),n=v.useMemo(function(){return new da(r.getBackend())},[r]);return F(function(){return n.dragSourceOptions=t||null,n.reconnect(),function(){return n.disconnectDragSource()}},[n,t]),F(function(){return n.dragPreviewOptions=e||null,n.reconnect(),function(){return n.disconnectDragPreview()}},[n,e]),n}var Le,Wt;function Ha(){return Wt||(Wt=1,Le=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!t(e[a],r[a]))return!1}return!0}return e!==e&&r!==r}),Le}var Ma=Ha();const $a=un(Ma);function Va(t,e){return Fa(t)||za(t,e)||Wa(t,e)||Ua()}function Ua(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wa(t,e){if(t){if(typeof t=="string")return zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zt(t,e)}}function zt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function za(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Fa(t){if(Array.isArray(t))return t}function Lr(t,e,r){var n=v.useState(function(){return e(t)}),i=Va(n,2),o=i[0],a=i[1],s=v.useCallback(function(){var u=e(t);$a(o,u)||(a(u),r&&r())},[o,t,r]);return F(s),[o,s]}function Ba(t,e){return Ga(t)||Ya(t,e)||Ka(t,e)||qa()}function qa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ka(t,e){if(t){if(typeof t=="string")return Ft(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ft(t,e)}}function Ft(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ya(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function Ga(t){if(Array.isArray(t))return t}function Xa(t,e,r){var n=Lr(t,e,r),i=Ba(n,2),o=i[0],a=i[1];return F(function(){var u=t.getHandlerId();if(u!=null)return t.subscribeToStateChange(a,{handlerIds:[u]})},[t,a]),o}function Hr(t,e,r){return Xa(e,t||function(){return{}},function(){return r.reconnect()})}function Qa(t){return v.useMemo(function(){return t.hooks.dragSource()},[t])}function Ja(t){return v.useMemo(function(){return t.hooks.dragPreview()},[t])}function Za(t,e){var r=Rr(t,e);x(!r.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 n=Ra(),i=La(r.options,r.previewOptions);return Na(r,n,i),[Hr(r.collect,n,i),Qa(i),Ja(i)]}function es(t){var e=t.accept;return v.useMemo(function(){return x(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]},[e])}function ts(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ns(t,e,r){return e&&rs(t.prototype,e),t}function Bt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var is=(function(){function t(e,r){ts(this,t),Bt(this,"spec",void 0),Bt(this,"monitor",void 0),this.spec=e,this.monitor=r}return ns(t,[{key:"canDrop",value:function(){var r=this.spec,n=this.monitor;return r.canDrop?r.canDrop(n.getItem(),n):!0}},{key:"hover",value:function(){var r=this.spec,n=this.monitor;r.hover&&r.hover(n.getItem(),n)}},{key:"drop",value:function(){var r=this.spec,n=this.monitor;if(r.drop)return r.drop(n.getItem(),n)}}]),t})();function os(t,e){var r=v.useMemo(function(){return new is(t,e)},[e]);return v.useEffect(function(){r.spec=t},[t]),r}function as(t,e){return cs(t)||ls(t,e)||us(t,e)||ss()}function ss(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function us(t,e){if(t){if(typeof t=="string")return qt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qt(t,e)}}function qt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ls(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function cs(t){if(Array.isArray(t))return t}function ds(t,e,r){var n=B(),i=os(t,e),o=es(t);F(function(){var s=ma(o,i,n),u=as(s,2),c=u[0],d=u[1];return e.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,e,i,r,o.map(function(a){return a.toString()}).join("|")])}function fs(){var t=B();return v.useMemo(function(){return new ia(t)},[t])}function ps(t){var e=B(),r=v.useMemo(function(){return new ga(e.getBackend())},[e]);return F(function(){return r.dropTargetOptions=t||null,r.reconnect(),function(){return r.disconnectDropTarget()}},[t]),r}function hs(t){return v.useMemo(function(){return t.hooks.dropTarget()},[t])}function Mr(t,e){var r=Rr(t,e),n=fs(),i=ps(r.options);return ds(r,n,i),[Hr(r.collect,n,i),hs(i)]}function gs(t,e){return bs(t)||ys(t,e)||vs(t,e)||ms()}function ms(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vs(t,e){if(t){if(typeof t=="string")return Kt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kt(t,e)}}function Kt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ys(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function bs(t){if(Array.isArray(t))return t}function Ss(t){var e=B(),r=e.getMonitor(),n=Lr(r,t),i=gs(n,2),o=i[0],a=i[1];return v.useEffect(function(){return r.subscribeToOffsetChange(a)}),v.useEffect(function(){return r.subscribeToStateChange(a)}),o}function $r(t){var e=null,r=function(){return e==null&&(e=t()),e};return r}function Ds(t,e){return t.filter(function(r){return r!==e})}function Is(t,e){var r=new Set,n=function(a){return r.add(a)};t.forEach(n),e.forEach(n);var i=[];return r.forEach(function(o){return i.push(o)}),i}function ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Os(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function xs(t,e,r){return e&&Os(t.prototype,e),t}function Yt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ts=(function(){function t(e){ws(this,t),Yt(this,"entered",[]),Yt(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}return xs(t,[{key:"enter",value:function(r){var n=this,i=this.entered.length,o=function(s){return n.isNodeInDocument(s)&&(!s.contains||s.contains(r))};return this.entered=Is(this.entered.filter(o),[r]),i===0&&this.entered.length>0}},{key:"leave",value:function(r){var n=this.entered.length;return this.entered=Ds(this.entered.filter(this.isNodeInDocument),r),n>0&&this.entered.length===0}},{key:"reset",value:function(){this.entered=[]}}]),t})(),Es=$r(function(){return/firefox/i.test(navigator.userAgent)}),Vr=$r(function(){return!!window.safari});function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ns(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ks(t,e,r){return e&&Ns(t.prototype,e),t}function re(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gt=(function(){function t(e,r){Cs(this,t),re(this,"xs",void 0),re(this,"ys",void 0),re(this,"c1s",void 0),re(this,"c2s",void 0),re(this,"c3s",void 0);for(var n=e.length,i=[],o=0;o<n;o++)i.push(o);i.sort(function(N,k){return e[N]<e[k]?-1:1});for(var a=[],s=[],u,c,d=0;d<n-1;d++)u=e[d+1]-e[d],c=r[d+1]-r[d],a.push(u),s.push(c/u);for(var h=[s[0]],y=0;y<a.length-1;y++){var b=s[y],D=s[y+1];if(b*D<=0)h.push(0);else{u=a[y];var l=a[y+1],f=u+l;h.push(3*f/((f+l)/b+(f+u)/D))}}h.push(s[s.length-1]);for(var p=[],g=[],S,w=0;w<h.length-1;w++){S=s[w];var I=h[w],T=1/a[w],E=I+h[w+1]-S-S;p.push((S-I-E)*T),g.push(E*T*T)}this.xs=e,this.ys=r,this.c1s=h,this.c2s=p,this.c3s=g}return ks(t,[{key:"interpolate",value:function(r){var n=this.xs,i=this.ys,o=this.c1s,a=this.c2s,s=this.c3s,u=n.length-1;if(r===n[u])return i[u];for(var c=0,d=s.length-1,h;c<=d;){h=Math.floor(.5*(c+d));var y=n[h];if(y<r)c=h+1;else if(y>r)d=h-1;else return i[h]}u=Math.max(0,d);var b=r-n[u],D=b*b;return i[u]+o[u]*b+a[u]*D+s[u]*b*D}}]),t})(),_s=1;function Ur(t){var e=t.nodeType===_s?t:t.parentElement;if(!e)return null;var r=e.getBoundingClientRect(),n=r.top,i=r.left;return{x:i,y:n}}function ue(t){return{x:t.clientX,y:t.clientY}}function As(t){var e;return t.nodeName==="IMG"&&(Es()||!((e=document.documentElement)!==null&&e!==void 0&&e.contains(t)))}function Ps(t,e,r,n){var i=t?e.width:r,o=t?e.height:n;return Vr()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function js(t,e,r,n,i){var o=As(e),a=o?t:e,s=Ur(a),u={x:r.x-s.x,y:r.y-s.y},c=t.offsetWidth,d=t.offsetHeight,h=n.anchorX,y=n.anchorY,b=Ps(o,e,c,d),D=b.dragPreviewWidth,l=b.dragPreviewHeight,f=function(){var E=new Gt([0,.5,1],[u.y,u.y/d*l,u.y+l-d]),N=E.interpolate(y);return Vr()&&o&&(N+=(window.devicePixelRatio-1)*l),N},p=function(){var E=new Gt([0,.5,1],[u.x,u.x/c*D,u.x+D-c]);return E.interpolate(h)},g=i.offsetX,S=i.offsetY,w=g===0||g,I=S===0||S;return{x:w?g:p(),y:I?S:f()}}var Wr="__NATIVE_FILE__",zr="__NATIVE_URL__",Fr="__NATIVE_TEXT__",Br="__NATIVE_HTML__";const Xt=Object.freeze(Object.defineProperty({__proto__:null,FILE:Wr,HTML:Br,TEXT:Fr,URL:zr},Symbol.toStringTag,{value:"Module"}));function He(t,e,r){var n=e.reduce(function(i,o){return i||t.getData(o)},"");return n??r}var X;function le(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Je=(X={},le(X,Wr,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),le(X,Br,{exposeProperties:{html:function(e,r){return He(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),le(X,zr,{exposeProperties:{urls:function(e,r){return He(e,r,"").split(`
|
|
15
|
+
`)},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),le(X,Fr,{exposeProperties:{text:function(e,r){return He(e,r,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),X);function Rs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ls(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hs(t,e,r){return e&&Ls(t.prototype,e),t}function Qt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ms=(function(){function t(e){Rs(this,t),Qt(this,"item",void 0),Qt(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}return Hs(t,[{key:"initializeExposedProperties",value:function(){var r=this;Object.keys(this.config.exposeProperties).forEach(function(n){Object.defineProperty(r.item,n,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(n,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(r){var n=this;if(r){var i={};Object.keys(this.config.exposeProperties).forEach(function(o){i[o]={value:n.config.exposeProperties[o](r,n.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,i)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(r,n){return n===r.getSourceId()}},{key:"endDrag",value:function(){}}]),t})();function $s(t,e){var r=new Ms(Je[t]);return r.loadDataTransfer(e),r}function Me(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(Je).filter(function(r){var n=Je[r].matchesTypes;return n.some(function(i){return e.indexOf(i)>-1})})[0]||null}function Vs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Us(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ws(t,e,r){return e&&Us(t.prototype,e),t}function $e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zs=(function(){function t(e,r){Vs(this,t),$e(this,"ownerDocument",null),$e(this,"globalContext",void 0),$e(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=r}return Ws(t,[{key:"window",get:function(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}},{key:"document",get:function(){var r;return(r=this.globalContext)!==null&&r!==void 0&&r.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var r;return((r=this.optionsArgs)===null||r===void 0?void 0:r.rootElement)||this.window}}]),t})();function Jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jt(Object(r),!0).forEach(function(n){C(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Fs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qs(t,e,r){return e&&Bs(t.prototype,e),t}function C(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ks=(function(){function t(e,r,n){var i=this;Fs(this,t),C(this,"options",void 0),C(this,"actions",void 0),C(this,"monitor",void 0),C(this,"registry",void 0),C(this,"enterLeaveCounter",void 0),C(this,"sourcePreviewNodes",new Map),C(this,"sourcePreviewNodeOptions",new Map),C(this,"sourceNodes",new Map),C(this,"sourceNodeOptions",new Map),C(this,"dragStartSourceIds",null),C(this,"dropTargetIds",[]),C(this,"dragEnterTargetIds",[]),C(this,"currentNativeSource",null),C(this,"currentNativeHandle",null),C(this,"currentDragSourceNode",null),C(this,"altKeyPressed",!1),C(this,"mouseMoveTimeoutTimer",null),C(this,"asyncEndDragFrameId",null),C(this,"dragOverTargetIds",null),C(this,"lastClientOffset",null),C(this,"hoverRafId",null),C(this,"getSourceClientOffset",function(o){var a=i.sourceNodes.get(o);return a&&Ur(a)||null}),C(this,"endDragNativeItem",function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)}),C(this,"isNodeInDocument",function(o){return!!(o&&i.document&&i.document.body&&i.document.body.contains(o))}),C(this,"endDragIfSourceWasRemovedFromDOM",function(){var o=i.currentDragSourceNode;o==null||i.isNodeInDocument(o)||i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),C(this,"handleTopDragStartCapture",function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]}),C(this,"handleTopDragStart",function(o){if(!o.defaultPrevented){var a=i.dragStartSourceIds;i.dragStartSourceIds=null;var s=ue(o);i.monitor.isDragging()&&i.actions.endDrag(),i.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:s});var u=o.dataTransfer,c=Me(u);if(i.monitor.isDragging()){if(u&&typeof u.setDragImage=="function"){var d=i.monitor.getSourceId(),h=i.sourceNodes.get(d),y=i.sourcePreviewNodes.get(d)||h;if(y){var b=i.getCurrentSourcePreviewNodeOptions(),D=b.anchorX,l=b.anchorY,f=b.offsetX,p=b.offsetY,g={anchorX:D,anchorY:l},S={offsetX:f,offsetY:p},w=js(h,y,s,g,S);u.setDragImage(y,w.x,w.y)}}try{u?.setData("application/json",{})}catch{}i.setCurrentDragSourceNode(o.target);var I=i.getCurrentSourcePreviewNodeOptions(),T=I.captureDraggingState;T?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(c)i.beginDragNativeItem(c);else{if(u&&!u.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}}}),C(this,"handleTopDragEndCapture",function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag()}),C(this,"handleTopDragEnterCapture",function(o){i.dragEnterTargetIds=[];var a=i.enterLeaveCounter.enter(o.target);if(!(!a||i.monitor.isDragging())){var s=o.dataTransfer,u=Me(s);u&&i.beginDragNativeItem(u,s)}}),C(this,"handleTopDragEnter",function(o){var a=i.dragEnterTargetIds;if(i.dragEnterTargetIds=[],!!i.monitor.isDragging()){i.altKeyPressed=o.altKey,a.length>0&&i.actions.hover(a,{clientOffset:ue(o)});var s=a.some(function(u){return i.monitor.canDropOnTarget(u)});s&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect()))}}),C(this,"handleTopDragOverCapture",function(){i.dragOverTargetIds=[]}),C(this,"handleTopDragOver",function(o){var a=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}i.altKeyPressed=o.altKey,i.lastClientOffset=ue(o),i.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(a||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}));var s=(a||[]).some(function(u){return i.monitor.canDropOnTarget(u)});s?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))}),C(this,"handleTopDragLeaveCapture",function(o){i.isDraggingNativeItem()&&o.preventDefault();var a=i.enterLeaveCounter.leave(o.target);a&&i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0)}),C(this,"handleTopDropCapture",function(o){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var a;o.preventDefault(),(a=i.currentNativeSource)===null||a===void 0||a.loadDataTransfer(o.dataTransfer)}else Me(o.dataTransfer)&&o.preventDefault();i.enterLeaveCounter.reset()}),C(this,"handleTopDrop",function(o){var a=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(a,{clientOffset:ue(o)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag()}),C(this,"handleSelectStart",function(o){var a=o.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(o.preventDefault(),a.dragDrop()))}),this.options=new zs(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Ts(this.isNodeInDocument)}return qs(t,[{key:"profile",value:function(){var r,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((r=this.dragStartSourceIds)===null||r===void 0?void 0:r.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var r=this.rootElement;if(r!==void 0){if(r.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");r.__isReactDndBackendSetUp=!0,this.addEventListeners(r)}}},{key:"teardown",value:function(){var r=this.rootElement;if(r!==void 0&&(r.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:"connectDragPreview",value:function(r,n,i){var o=this;return this.sourcePreviewNodeOptions.set(r,i),this.sourcePreviewNodes.set(r,n),function(){o.sourcePreviewNodes.delete(r),o.sourcePreviewNodeOptions.delete(r)}}},{key:"connectDragSource",value:function(r,n,i){var o=this;this.sourceNodes.set(r,n),this.sourceNodeOptions.set(r,i);var a=function(c){return o.handleDragStart(c,r)},s=function(c){return o.handleSelectStart(c)};return n.setAttribute("draggable","true"),n.addEventListener("dragstart",a),n.addEventListener("selectstart",s),function(){o.sourceNodes.delete(r),o.sourceNodeOptions.delete(r),n.removeEventListener("dragstart",a),n.removeEventListener("selectstart",s),n.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(r,n){var i=this,o=function(c){return i.handleDragEnter(c,r)},a=function(c){return i.handleDragOver(c,r)},s=function(c){return i.handleDrop(c,r)};return n.addEventListener("dragenter",o),n.addEventListener("dragover",a),n.addEventListener("drop",s),function(){n.removeEventListener("dragenter",o),n.removeEventListener("dragover",a),n.removeEventListener("drop",s)}}},{key:"addEventListeners",value:function(r){r.addEventListener&&(r.addEventListener("dragstart",this.handleTopDragStart),r.addEventListener("dragstart",this.handleTopDragStartCapture,!0),r.addEventListener("dragend",this.handleTopDragEndCapture,!0),r.addEventListener("dragenter",this.handleTopDragEnter),r.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.addEventListener("dragover",this.handleTopDragOver),r.addEventListener("dragover",this.handleTopDragOverCapture,!0),r.addEventListener("drop",this.handleTopDrop),r.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(r){r.removeEventListener&&(r.removeEventListener("dragstart",this.handleTopDragStart),r.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),r.removeEventListener("dragend",this.handleTopDragEndCapture,!0),r.removeEventListener("dragenter",this.handleTopDragEnter),r.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),r.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),r.removeEventListener("dragover",this.handleTopDragOver),r.removeEventListener("dragover",this.handleTopDragOverCapture,!0),r.removeEventListener("drop",this.handleTopDrop),r.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(r);return Zt({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var r=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(r);return Zt({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}},{key:"isDraggingNativeItem",value:function(){var r=this.monitor.getItemType();return Object.keys(Xt).some(function(n){return Xt[n]===r})}},{key:"beginDragNativeItem",value:function(r,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=$s(r,n),this.currentNativeHandle=this.registry.addSource(r,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(r){var n=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=r;var i=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var o;return(o=n.rootElement)===null||o===void 0?void 0:o.addEventListener("mousemove",n.endDragIfSourceWasRemovedFromDOM,!0)},i)}},{key:"clearCurrentDragSourceNode",value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var r;(r=this.window)===null||r===void 0||r.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:"handleDragStart",value:function(r,n){r.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}},{key:"handleDragEnter",value:function(r,n){this.dragEnterTargetIds.unshift(n)}},{key:"handleDragOver",value:function(r,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}},{key:"handleDrop",value:function(r,n){this.dropTargetIds.unshift(n)}}]),t})(),ce;function Ys(){return ce||(ce=new Image,ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ce}var Gs=function(e,r,n){return new Ks(e,r,n)};function Xs(t){const e=P(),r=e.selectedIds,[n,i,o]=Za(()=>({canDrag:()=>t.isDraggable,type:"NODE",item:()=>{const a=e.isSelected(t.id)?Array.from(r):[t.id];return e.dispatch(Z.dragStart(t.id,a)),{id:t.id,dragIds:a}},end:()=>{e.hideCursor(),e.dispatch(Z.dragEnd())}}),[r,t]);return v.useEffect(()=>{o(Ys())},[o]),i}function Qs(t,e){const r=t.getBoundingClientRect(),n=e.x-Math.round(r.x),i=e.y-Math.round(r.y),o=r.height,a=i<o/2,s=!a,u=o/4,c=i>u&&i<o-u;return{x:n,inTopHalf:a,inBottomHalf:s,inMiddle:c,atTop:!c&&a,atBottom:!c&&s}}function Js(t,e,r,n){return t?t.isInternal?n.atTop?[e,t]:n.inMiddle?[t,t]:[t,r]:n.inTopHalf?[e,t]:[t,r]:[e,null]}function de(t,e){return{parentId:t||null,index:e}}function Q(t,e){return{type:"line",index:t,level:e}}function Zs(t){return{type:"highlight",id:t}}function Ve(t,e){var r;let n=t;for(;n.parent&&n.level>e;)n=n.parent;const i=((r=n.parent)===null||r===void 0?void 0:r.id)||null,o=mr(n)+1;return{parentId:i,index:o}}function qr(t){var e;const r=Qs(t.element,t.offset),n=t.indent,i=Math.round(Math.max(0,r.x-n)/n),{node:o,nextNode:a,prevNode:s}=t,[u,c]=Js(o,s,a,r);if(o&&o.isInternal&&r.inMiddle)return{drop:de(o.id,null),cursor:Zs(o.id)};if(!u)return{drop:de((e=c?.parent)===null||e===void 0?void 0:e.id,0),cursor:Q(0,0)};if(fr(u)){const d=fe(i,c?.level||0,u.level);return{drop:Ve(u,d),cursor:Q(u.rowIndex+1,d)}}if(pr(u)){const d=fe(i,c?.level||0,u.level);return{drop:Ve(u,d),cursor:Q(u.rowIndex+1,d)}}if(hr(u)){const d=fe(i,0,u.level+1);return d>u.level?{drop:de(u.id,0),cursor:Q(u.rowIndex+1,d)}:{drop:Ve(u,d),cursor:Q(u.rowIndex+1,d)}}return{drop:de(u?.id,0),cursor:Q(u.rowIndex+1,u.level+1)}}function eu(t,e){const r=P(),[n,i]=Mr(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,a)=>{const s=a.getClientOffset();if(!t.current||!s)return;const{cursor:u,drop:c}=qr({element:t.current,offset:s,indent:r.indent,node:e,prevNode:e.prev,nextNode:e.next});c&&r.dispatch(Z.hovering(c.parentId,c.index)),a.canDrop()?u&&r.showCursor(u):r.hideCursor()},drop:(o,a)=>{if(!a.canDrop())return null;let{parentId:s,index:u,dragIds:c}=r.state.dnd;Dr(r.props.onMove,{dragIds:c,parentId:s===oe?null:s,index:u===null?0:u,dragNodes:r.dragNodes,parentNode:r.get(s)}),r.open(s)}}),[e,t.current,r.props]);return i}function tu(t){const e=P(),r=e.at(t);if(!r)throw new Error(`Could not find node for index: ${t}`);return v.useMemo(()=>{const n=r.clone();return e.visibleNodes[t]=n,n},[...Object.values(r.state),r])}const ru=ar.memo(function({index:e,style:r}){dr(),wn();const n=P(),i=tu(e),o=v.useRef(null),a=Xs(i),s=eu(o,i),u=v.useCallback(l=>{o.current=l,s(l)},[s]),c=n.indent*i.level,d=v.useMemo(()=>({paddingLeft:c}),[c]),h=v.useMemo(()=>{var l,f;return Object.assign(Object.assign({},r),{top:parseFloat(r.top)+((f=(l=n.props.padding)!==null&&l!==void 0?l:n.props.paddingTop)!==null&&f!==void 0?f:0)})},[r,n.props.padding,n.props.paddingTop]),y={role:"treeitem","aria-level":i.level+1,"aria-selected":i.isSelected,"aria-expanded":i.isOpen,style:h,tabIndex:-1,className:n.props.rowClassName};v.useEffect(()=>{var l;!i.isEditing&&i.isFocused&&((l=o.current)===null||l===void 0||l.focus({preventScroll:!0}))},[i.isEditing,i.isFocused,o.current]);const b=n.renderNode,D=n.renderRow;return O.jsx(D,{node:i,innerRef:u,attrs:y,children:O.jsx(b,{node:i,tree:n,style:d,dragHandle:a})})});let Ue="",er=null;function Kr(){dr();const t=P();return O.jsx("div",{role:"tree",style:{height:t.height,width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,onFocus:e=>{e.currentTarget.contains(e.relatedTarget)||t.onFocus()},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.onBlur()},onKeyDown:e=>{var r;if(t.isEditing)return;if(e.key==="Backspace"){if(!t.props.onDelete)return;const i=Array.from(t.selectedIds);if(i.length>1){let o=t.mostRecentNode;for(;o&&o.isSelected;)o=o.nextSibling;o||(o=t.lastNode),t.focus(o,{scroll:!1}),t.delete(Array.from(i))}else{const o=t.focusedNode;if(o){const a=o.nextSibling,s=o.parent;t.focus(a||s,{scroll:!1}),t.delete(o)}}return}if(e.key==="Tab"&&!e.shiftKey){e.preventDefault(),vr(e.currentTarget);return}if(e.key==="Tab"&&e.shiftKey){e.preventDefault(),yr(e.currentTarget);return}if(e.key==="ArrowDown"){e.preventDefault();const i=t.nextNode;if(e.metaKey){t.select(t.focusedNode),t.activate(t.focusedNode);return}else if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.firstNode);return}}if(e.key==="ArrowUp"){e.preventDefault();const i=t.prevNode;if(!e.shiftKey||t.props.disableMultiSelection){t.focus(i);return}else{if(!i)return;const o=t.focusedNode;o?o.isSelected?t.selectContiguous(i):t.selectMulti(i):t.focus(t.lastNode);return}}if(e.key==="ArrowRight"){const i=t.focusedNode;if(!i)return;i.isInternal&&i.isOpen?t.focus(t.nextNode):i.isInternal&&t.open(i.id);return}if(e.key==="ArrowLeft"){const i=t.focusedNode;if(!i||i.isRoot)return;i.isInternal&&i.isOpen?t.close(i.id):!((r=i.parent)===null||r===void 0)&&r.isRoot||t.focus(i.parent);return}if(e.key==="a"&&e.metaKey&&!t.props.disableMultiSelection){e.preventDefault(),t.selectAll();return}if(e.key==="a"&&!e.metaKey&&t.props.onCreate){t.createLeaf();return}if(e.key==="A"&&!e.metaKey){if(!t.props.onCreate)return;t.createInternal();return}if(e.key==="Home"){e.preventDefault(),t.focus(t.firstNode);return}if(e.key==="End"){e.preventDefault(),t.focus(t.lastNode);return}if(e.key==="Enter"){const i=t.focusedNode;if(!i||!i.isEditable||!t.props.onRename)return;setTimeout(()=>{i&&t.edit(i)});return}if(e.key===" "){e.preventDefault();const i=t.focusedNode;if(!i)return;i.isLeaf?(i.select(),i.activate()):i.toggle();return}if(e.key==="*"){const i=t.focusedNode;if(!i)return;t.openSiblings(i);return}if(e.key==="PageUp"){e.preventDefault(),t.pageUp();return}e.key==="PageDown"&&(e.preventDefault(),t.pageDown()),clearTimeout(er),Ue+=e.key,er=setTimeout(()=>{Ue=""},600);const n=t.visibleNodes.find(i=>{const o=i.data.name;return typeof o=="string"?o.toLowerCase().startsWith(Ue):!1});n&&t.focus(n.id)},children:O.jsx(ii,{className:t.props.className,outerRef:t.listEl,itemCount:t.visibleNodes.length,height:t.height,width:t.width,itemSize:t.rowHeight,overscanCount:t.overscanCount,itemKey:e=>{var r;return((r=t.visibleNodes[e])===null||r===void 0?void 0:r.id)||e},outerElementType:si,innerElementType:ci,onScroll:t.props.onScroll,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:ru})})}function tr(t){return t.isFiltered?iu(t.root,t.isMatch.bind(t)):nu(t.root)}function nu(t){const e=[];function r(n){var i;n.level>=0&&e.push(n),n.isOpen&&((i=n.children)===null||i===void 0||i.forEach(r))}return r(t),e.forEach(Yr),e}function iu(t,e){const r={},n=[];function i(a){if(!a.isRoot&&e(a)){r[a.id]=!0;let u=a.parent;for(;u;)r[u.id]=!0,u=u.parent}if(a.children)for(let u of a.children)i(u)}function o(a){var s;a.level>=0&&r[a.id]&&n.push(a),a.isOpen&&((s=a.children)===null||s===void 0||s.forEach(o))}return i(t),o(t),n.forEach(Yr),n}function Yr(t,e){t.rowIndex=e}const rr=t=>t.reduce((e,r,n)=>(e[r.id]=n,e),{});var We=function(t,e,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{c(n.next(d))}catch(h){a(h)}}function u(d){try{c(n.throw(d))}catch(h){a(h)}}function c(d){d.done?o(d.value):i(d.value).then(s,u)}c((n=n.apply(t,e||[])).next())})};const{safeRun:_,identify:V,identifyNull:H}=En;class ie{constructor(e,r,n,i){this.store=e,this.props=r,this.list=n,this.listEl=i,this.visibleStartIndex=0,this.visibleStopIndex=0,this.root=dt(this),this.visibleNodes=tr(this),this.idToIndex=rr(this.visibleNodes)}update(e){this.props=e,this.root=dt(this),this.visibleNodes=tr(this),this.idToIndex=rr(this.visibleNodes)}dispatch(e){return this.store.dispatch(e)}get state(){return this.store.getState()}get openState(){return this.state.nodes.open.unfiltered}get width(){var e;return(e=this.props.width)!==null&&e!==void 0?e:300}get height(){var e;return(e=this.props.height)!==null&&e!==void 0?e:500}get indent(){var e;return(e=this.props.indent)!==null&&e!==void 0?e:24}get rowHeight(){var e;return(e=this.props.rowHeight)!==null&&e!==void 0?e:24}get overscanCount(){var e;return(e=this.props.overscanCount)!==null&&e!==void 0?e:1}get searchTerm(){return(this.props.searchTerm||"").trim()}get matchFn(){var e;const r=(e=this.props.searchMatch)!==null&&e!==void 0?e:((n,i)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(i.toLocaleLowerCase()));return n=>r(n,this.searchTerm)}accessChildren(e){var r;const n=this.props.childrenAccessor||"children";return(r=ne(e,n))!==null&&r!==void 0?r:null}accessId(e){const r=this.props.idAccessor||"id",n=ne(e,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}get firstNode(){var e;return(e=this.visibleNodes[0])!==null&&e!==void 0?e:null}get lastNode(){var e;return(e=this.visibleNodes[this.visibleNodes.length-1])!==null&&e!==void 0?e:null}get focusedNode(){var e;return(e=this.get(this.state.nodes.focus.id))!==null&&e!==void 0?e:null}get mostRecentNode(){var e;return(e=this.get(this.state.nodes.selection.mostRecent))!==null&&e!==void 0?e:null}get nextNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e+1)}get prevNode(){const e=this.indexOf(this.focusedNode);return e===null?null:this.at(e-1)}get(e){return e&&e in this.idToIndex&&this.visibleNodes[this.idToIndex[e]]||null}at(e){return this.visibleNodes[e]||null}nodesBetween(e,r){var n;if(e===null||r===null)return[];const i=(n=this.indexOf(e))!==null&&n!==void 0?n:0,o=this.indexOf(r);if(o===null)return[];const a=Math.min(i,o),s=Math.max(i,o);return this.visibleNodes.slice(a,s+1)}indexOf(e){const r=Sr(e);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return We(this,arguments,void 0,function*(e={}){var r,n;const i=e.parentId===void 0?Or(this):e.parentId,o=(r=e.index)!==null&&r!==void 0?r:wr(this),a=(n=e.type)!==null&&n!==void 0?n:"leaf",s=yield _(this.props.onCreate,{type:a,parentId:i,index:o,parentNode:this.get(i)});s&&(this.focus(s),setTimeout(()=>{this.edit(s).then(()=>{this.select(s),this.activate(s)})}))})}delete(e){return We(this,void 0,void 0,function*(){if(!e)return;const n=(Array.isArray(e)?e:[e]).map(V),i=n.map(o=>this.get(o)).filter(o=>!!o);yield _(this.props.onDelete,{nodes:i,ids:n})})}edit(e){const r=V(e);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(Ne(r)),new Promise(n=>{ie.editPromise=n})}submit(e,r){return We(this,void 0,void 0,function*(){if(!e)return;const n=V(e);yield _(this.props.onRename,{id:n,name:r,node:this.get(n)}),this.dispatch(Ne(null)),this.resolveEdit({cancelled:!1,value:r}),setTimeout(()=>this.onFocus())})}reset(){this.dispatch(Ne(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(e){const r=this.get(H(e));r&&_(this.props.onActivate,r)}resolveEdit(e){const r=ie.editPromise;r&&r(e),ie.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let e=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&e.push(n)}return e}focus(e,r={}){e&&(this.props.selectionFollowsFocus?this.select(e):(this.dispatch(q(V(e))),r.scroll!==!1&&this.scrollTo(e),this.focusedNode&&_(this.props.onFocus,this.focusedNode)))}pageUp(){var e,r;const n=this.visibleStartIndex,o=this.visibleStopIndex-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a>n?a=n:a=Math.max(n-o,0),this.focus(this.at(a))}pageDown(){var e,r;const n=this.visibleStartIndex,i=this.visibleStopIndex,o=i-n;let a=(r=(e=this.focusedNode)===null||e===void 0?void 0:e.rowIndex)!==null&&r!==void 0?r:0;a<i?a=i:a=Math.min(a+o,this.visibleNodes.length-1),this.focus(this.at(a))}select(e,r={}){if(!e)return;const n=r.focus!==!1,i=V(e);n&&this.dispatch(q(i)),this.dispatch(L.only(i)),this.dispatch(L.anchor(i)),this.dispatch(L.mostRecent(i)),this.scrollTo(i,r.align),this.focusedNode&&n&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes)}deselect(e){if(!e)return;const r=V(e);this.dispatch(L.remove(r)),_(this.props.onSelect,this.selectedNodes)}selectMulti(e){const r=this.get(H(e));r&&(this.dispatch(q(r.id)),this.dispatch(L.add(r.id)),this.dispatch(L.anchor(r.id)),this.dispatch(L.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes))}selectContiguous(e){if(!e)return;const r=V(e),{anchor:n,mostRecent:i}=this.state.nodes.selection;this.dispatch(q(r)),this.dispatch(L.remove(this.nodesBetween(n,i))),this.dispatch(L.add(this.nodesBetween(n,H(r)))),this.dispatch(L.mostRecent(r)),this.scrollTo(r),this.focusedNode&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),_(this.props.onSelect,this.selectedNodes)}selectAll(){var e;this.setSelection({ids:Object.keys(this.idToIndex),anchor:this.firstNode,mostRecent:this.lastNode}),this.dispatch(q((e=this.lastNode)===null||e===void 0?void 0:e.id)),this.focusedNode&&_(this.props.onFocus,this.focusedNode),_(this.props.onSelect,this.selectedNodes)}setSelection(e){var r;const n=new Set((r=e.ids)===null||r===void 0?void 0:r.map(V)),i=H(e.anchor),o=H(e.mostRecent);this.dispatch(L.set({ids:n,anchor:i,mostRecent:o})),_(this.props.onSelect,this.selectedNodes)}get cursorParentId(){const{cursor:e}=this.state.dnd;return e.type==="highlight"?e.id:null}get cursorOverFolder(){return this.state.dnd.cursor.type==="highlight"}get dragNodes(){return this.state.dnd.dragIds.map(e=>this.get(e)).filter(e=>!!e)}get dragNode(){return this.get(this.state.nodes.drag.id)}get dragDestinationParent(){return this.get(this.state.nodes.drag.destinationParentId)}get dragDestinationIndex(){return this.state.nodes.drag.destinationIndex}canDrop(){var e;if(this.isFiltered)return!1;const r=(e=this.get(this.state.dnd.parentId))!==null&&e!==void 0?e:this.root,n=this.dragNodes,i=this.props.disableDrop;for(const o of n)if(!o||!r||o.isInternal&&gr(r,o))return!1;return typeof i=="function"?!i({parentNode:r,dragNodes:this.dragNodes,index:this.state.dnd.index||0}):typeof i=="string"?!r.data[i]:typeof i=="boolean"?!i:!0}hideCursor(){this.dispatch(Z.cursor({type:"none"}))}showCursor(e){this.dispatch(Z.cursor(e))}open(e){const r=H(e);r&&(this.isOpen(r)||(this.dispatch(Fe.open(r,this.isFiltered)),_(this.props.onToggle,r)))}close(e){const r=H(e);r&&this.isOpen(r)&&(this.dispatch(Fe.close(r,this.isFiltered)),_(this.props.onToggle,r))}toggle(e){const r=H(e);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(e){const r=H(e);if(!r)return;const n=Ze(this.root,r);let i=n?.parent;for(;i;)this.open(i.id),i=i.parent}openSiblings(e){const r=e.parent;if(!r)this.toggle(e.id);else if(r.children){const n=e.isOpen;for(let i of r.children)i.isInternal&&(n?this.close(i.id):this.open(i.id));this.scrollTo(this.focusedNode)}}openAll(){Se(this.root,e=>{e.isInternal&&e.open()})}closeAll(){Se(this.root,e=>{e.isInternal&&e.close()})}scrollTo(e,r="smart"){if(!e)return;const n=V(e);return this.openParents(n),Ir(()=>n in this.idToIndex).then(()=>{var i;const o=this.idToIndex[n];o!==void 0&&((i=this.list.current)===null||i===void 0||i.scrollToItem(o,r))}).catch(()=>{})}get isEditing(){return this.state.nodes.edit.id!==null}get isFiltered(){var e;return!!(!((e=this.props.searchTerm)===null||e===void 0)&&e.trim())}get hasFocus(){return this.state.nodes.focus.treeFocused}get hasNoSelection(){return this.state.nodes.selection.ids.size===0}get hasOneSelection(){return this.state.nodes.selection.ids.size===1}get hasMultipleSelections(){return this.state.nodes.selection.ids.size>1}isSelected(e){return e?this.state.nodes.selection.ids.has(e):!1}isOpen(e){var r,n,i;if(!e)return!1;if(e===oe)return!0;const o=(r=this.props.openByDefault)!==null&&r!==void 0?r:!0;return this.isFiltered?(n=this.state.nodes.open.filtered[e])!==null&&n!==void 0?n:!0:(i=this.state.nodes.open.unfiltered[e])!==null&&i!==void 0?i:o}isEditable(e){const r=this.props.disableEdit||(()=>!1);return!ne(e,r)}isDraggable(e){const r=this.props.disableDrag||(()=>!1);return!ne(e,r)}isDragging(e){const r=H(e);return r?this.state.nodes.drag.id===r:!1}isFocused(e){return this.hasFocus&&this.state.nodes.focus.id===e}isMatch(e){return this.matchFn(e)}willReceiveDrop(e){const r=H(e);if(!r)return!1;const{destinationParentId:n,destinationIndex:i}=this.state.nodes.drag;return r===n&&i===null}onFocus(){const e=this.focusedNode||this.firstNode;e&&this.dispatch(q(e.id))}onBlur(){this.dispatch(Hn())}onItemsRendered(e){this.visibleStartIndex=e.visibleStartIndex,this.visibleStopIndex=e.visibleStopIndex}get renderContainer(){return this.props.renderContainer||Kr}get renderRow(){return this.props.renderRow||An}get renderNode(){return this.props.children||Pn}get renderDragPreview(){return this.props.renderDragPreview||xr}get renderCursor(){return this.props.renderCursor||_n}}var ou=typeof Symbol=="function"&&Symbol.observable||"@@observable",nr=ou,ze=()=>Math.random().toString(36).substring(7).split("").join("."),au={INIT:`@@redux/INIT${ze()}`,REPLACE:`@@redux/REPLACE${ze()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ze()}`},z=au;function Gr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function su(t){if(t===void 0)return"undefined";if(t===null)return"null";const e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(cu(t))return"date";if(lu(t))return"error";const r=uu(t);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(t).slice(8,-1).toLowerCase().replace(/\s/g,"")}function uu(t){return typeof t.constructor=="function"?t.constructor.name:null}function lu(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function cu(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function U(t){let e=typeof t;return e=su(t),e}function Xr(t,e,r){if(typeof t!="function")throw new Error(`Expected the root reducer to be a function. Instead, received: '${U(t)}'`);if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(`Expected the enhancer to be a function. Instead, received: '${U(r)}'`);return r(Xr)(t,e)}let n=t,i=e,o=new Map,a=o,s=0,u=!1;function c(){a===o&&(a=new Map,o.forEach((f,p)=>{a.set(p,f)}))}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(f){if(typeof f!="function")throw new Error(`Expected the listener to be a function. Instead, received: '${U(f)}'`);if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let p=!0;c();const g=s++;return a.set(g,f),function(){if(p){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");p=!1,c(),a.delete(g),o=null}}}function y(f){if(!Gr(f))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${U(f)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof f.type>"u")throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof f.type!="string")throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${U(f.type)}'. Value was: '${f.type}' (stringified)`);if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,i=n(i,f)}finally{u=!1}return(o=a).forEach(g=>{g()}),f}function b(f){if(typeof f!="function")throw new Error(`Expected the nextReducer to be a function. Instead, received: '${U(f)}`);n=f,y({type:z.REPLACE})}function D(){const f=h;return{subscribe(p){if(typeof p!="object"||p===null)throw new Error(`Expected the observer to be an object. Instead, received: '${U(p)}'`);function g(){const w=p;w.next&&w.next(d())}return g(),{unsubscribe:f(g)}},[nr](){return this}}}return y({type:z.INIT}),{dispatch:y,subscribe:h,getState:d,replaceReducer:b,[nr]:D}}function ir(t){typeof console<"u"&&typeof console.error=="function"&&console.error(t);try{throw new Error(t)}catch{}}function du(t,e,r,n){const i=Object.keys(e),o=r&&r.type===z.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Gr(t))return`The ${o} has unexpected type of "${U(t)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(t).filter(s=>!e.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===z.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function fu(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:z.INIT})>"u")throw new Error(`The slice reducer for key "${e}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:z.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(`The slice reducer for key "${e}" returned undefined when probed with a random type. Don't try to handle '${z.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function or(t){const e=Object.keys(t),r={};for(let a=0;a<e.length;a++){const s=e[a];typeof t[s]>"u"&&ir(`No reducer provided for key "${s}"`),typeof t[s]=="function"&&(r[s]=t[s])}const n=Object.keys(r);let i;i={};let o;try{fu(r)}catch(a){o=a}return function(s={},u){if(o)throw o;{const h=du(s,r,u,i);h&&ir(h)}let c=!1;const d={};for(let h=0;h<n.length;h++){const y=n[h],b=r[y],D=s[y],l=b(D,u);if(typeof l>"u"){const f=u&&u.type;throw new Error(`When called with an action of type ${f?`"${String(f)}"`:"(unknown type)"}, the slice reducer for key "${y}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[y]=l,c=c||l!==D}return c=c||n.length!==Object.keys(s).length,c?d:s}}function pu(t=J().nodes.drag,e){switch(e.type){case"DND_DRAG_START":return Object.assign(Object.assign({},t),{id:e.id,selectedIds:e.dragIds});case"DND_DRAG_END":return Object.assign(Object.assign({},t),{id:null,destinationParentId:null,destinationIndex:null,selectedIds:[]});case"DND_HOVERING":return e.parentId!==t.destinationParentId||e.index!=t.destinationIndex?Object.assign(Object.assign({},t),{destinationParentId:e.parentId,destinationIndex:e.index}):t;default:return t}}const hu=or({nodes:or({focus:Mn,edit:Ln,open:$n,selection:Vn,drag:pu}),dnd:Un}),gu=J();function mu({treeProps:t,imperativeHandle:e,children:r}){const n=v.useRef(null),i=v.useRef(null),o=v.useRef(Xr(hu,J(t))),a=In.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>gu),s=v.useMemo(()=>new ie(o.current,t,n,i),[]),u=v.useRef(0);return v.useMemo(()=>{u.current+=1,s.update(t)},[...Object.values(t),a.nodes.open]),v.useImperativeHandle(e,()=>s),v.useEffect(()=>{s.props.selection?s.select(s.props.selection,{focus:!1}):s.deselectAll()},[s.props.selection]),v.useEffect(()=>{s.props.searchTerm||o.current.dispatch(Fe.clear(!0))},[s.props.searchTerm]),O.jsx(sr.Provider,{value:s,children:O.jsx(cr.Provider,{value:u.current,children:O.jsx(ur.Provider,{value:a.nodes,children:O.jsx(lr.Provider,{value:a.dnd,children:O.jsx(Yo,Object.assign({backend:Gs,options:{rootElement:s.props.dndRootElement||void 0}},t.dndManager&&{manager:t.dndManager},{children:r}))})})})})}function vu(){const t=P(),[,e]=Mr(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?t.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const i=n.getClientOffset();if(!t.listEl.current||!i)return;const{cursor:o,drop:a}=qr({element:t.listEl.current,offset:i,indent:t.indent,node:null,prevNode:t.visibleNodes[t.visibleNodes.length-1],nextNode:null});a&&t.dispatch(Z.hovering(a.parentId,a.index)),n.canDrop()?o&&t.showCursor(o):t.hideCursor()}}),[t]);e(t.listEl)}function yu(t){return vu(),t.children}function bu(){const e=P().props.renderContainer||Kr;return O.jsx(O.Fragment,{children:O.jsx(e,{})})}function Su(){const t=P(),{offset:e,mouse:r,item:n,isDragging:i}=Ss(a=>({offset:a.getSourceClientOffset(),mouse:a.getClientOffset(),item:a.getItem(),isDragging:a.isDragging()})),o=t.props.renderDragPreview||xr;return O.jsx(o,{offset:e,mouse:r,id:n?.id||null,dragIds:n?.dragIds||[],isDragging:i})}class Du{constructor(e){this.root=Iu(e)}get data(){var e,r;return(r=(e=this.root.children)===null||e===void 0?void 0:e.map(n=>n.data))!==null&&r!==void 0?r:[]}create(e){const r=e.parentId?this.find(e.parentId):this.root;if(!r)return null;r.addChild(e.data,e.index)}move(e){const r=this.find(e.id),n=e.parentId?this.find(e.parentId):this.root;!r||!n||(n.addChild(r.data,e.index),r.drop())}update(e){const r=this.find(e.id);r&&r.update(e.changes)}drop(e){const r=this.find(e.id);r&&r.drop()}find(e,r=this.root){if(!r)return null;if(r.id===e)return r;if(r.children){for(let n of r.children){const i=this.find(e,n);if(i)return i}return null}return null}}function Iu(t){const e=new Qr({id:"ROOT"},null);return e.children=t.map(r=>at(r,e)),e}function at(t,e){const r=new Qr(t,e);return t.children&&(r.children=t.children.map(n=>at(n,r))),r}class Qr{constructor(e,r){this.data=e,this.parent=r,this.id=e.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(e,r){var n,i;const o=at(e,this);this.children=(n=this.children)!==null&&n!==void 0?n:[],this.children.splice(r,0,o),this.data.children=(i=this.data.children)!==null&&i!==void 0?i:[],this.data.children.splice(r,0,e)}removeChild(e){var r,n;(r=this.children)===null||r===void 0||r.splice(e,1),(n=this.data.children)===null||n===void 0||n.splice(e,1)}update(e){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(Object.assign(Object.assign({},this.data),e),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let wu=0;function Ou(t){const[e,r]=v.useState(t),n=v.useMemo(()=>new Du(e),[e]);return[e,{onMove:c=>{for(const d of c.dragIds)n.move({id:d,parentId:c.parentId,index:c.index});r(n.data)},onRename:({name:c,id:d})=>{n.update({id:d,changes:{name:c}}),r(n.data)},onCreate:({parentId:c,index:d,type:h})=>{const y={id:`simple-tree-id-${wu++}`,name:""};return h==="internal"&&(y.children=[]),n.create({parentId:c,index:d,data:y}),r(n.data),y},onDelete:c=>{c.ids.forEach(d=>n.drop({id:d})),r(n.data)}}]}function xu(t){if(t.initialData&&t.data)throw new Error("React Arborist Tree => Provide either a data or initialData prop, but not both.");if(t.initialData&&(t.onCreate||t.onDelete||t.onMove||t.onRename))throw new Error(`React Arborist Tree => You passed the initialData prop along with a data handler.
|
|
16
|
+
Use the data prop if you want to provide your own handlers.`);if(t.initialData){const[e,r]=Ou(t.initialData);return Object.assign(Object.assign(Object.assign({},t),r),{data:e})}else return t}function Tu(t,e){const r=xu(t);return O.jsxs(mu,{treeProps:r,imperativeHandle:e,children:[O.jsx(yu,{children:O.jsx(bu,{})}),O.jsx(Su,{})]})}const Eu=v.forwardRef(Tu),Cu=t=>{const e=ae.c(7);if(e[0]!=="b7996d787daf3bd548e7bb6b75bf069de246fb929b79b6e8eae962282da194cc"){for(let s=0;s<7;s+=1)e[s]=Symbol.for("react.memo_cache_sentinel");e[0]="b7996d787daf3bd548e7bb6b75bf069de246fb929b79b6e8eae962282da194cc"}const{data:r,onSelectConcept:n}=t;let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={height:"100%",width:"100%",backgroundColor:"transparent",overflow:"hidden"},e[1]=i):i=e[1];let o;e[2]!==n?(o=s=>{const{node:u,style:c,dragHandle:d}=s,h=u.children&&u.children.length>0;return m.jsxDEV("div",{ref:d,onClick:()=>{u.toggle(),n(u.data)},style:{...c,display:"flex",alignItems:"center",padding:"0 8px",cursor:"pointer",backgroundColor:u.isSelected?"rgba(255,45,75,0.12)":"transparent",userSelect:"none",borderBottom:"1px solid rgba(255,255,255,0.04)",transition:"background 0.15s"},onMouseEnter:y=>{u.isSelected||(y.currentTarget.style.background="rgba(255,45,75,0.06)")},onMouseLeave:y=>{u.isSelected||(y.currentTarget.style.background="transparent")},children:[m.jsxDEV("span",{style:{width:20,display:"flex",justifyContent:"center"},children:h?u.isOpen?m.jsxDEV(fn,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:38},void 0):m.jsxDEV(pn,{size:14,color:"#b08b93"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:82},void 0):null},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:71,columnNumber:10},void 0),m.jsxDEV("span",{style:{marginRight:8,display:"flex",alignItems:"center"},children:h?m.jsxDEV(Dn,{size:14,color:"#d2a8ff"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:24},void 0):m.jsxDEV(hn,{size:14,color:"#484f58"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:63},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:75,columnNumber:139},void 0),m.jsxDEV("span",{style:{fontSize:13,color:"#e8ccd1",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:u.data.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:79,columnNumber:109},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:50,columnNumber:14},void 0)},e[2]=n,e[3]=o):o=e[3];let a;return e[4]!==r||e[5]!==o?(a=m.jsxDEV("div",{style:i,children:m.jsxDEV(Eu,{data:r,idAccessor:"uri",width:"100%",height:600,indent:24,rowHeight:36,childrenAccessor:"children",children:o},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:94,columnNumber:26},void 0)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ConceptTree.tsx",lineNumber:94,columnNumber:10},void 0),e[4]=r,e[5]=o,e[6]=a):a=e[6],a},Nu=()=>{const t=ae.c(30);if(t[0]!=="8df03c263bd9f8209cad32f6abe1f1b025fb3779dec3de0ddd910d0f970f4e6d"){for(let E=0;E<30;E+=1)t[E]=Symbol.for("react.memo_cache_sentinel");t[0]="8df03c263bd9f8209cad32f6abe1f1b025fb3779dec3de0ddd910d0f970f4e6d"}const[e,r]=v.useState(null),[n,i]=v.useState(null),o=ln();let a;t[1]!==o?(a=E=>{if(E.length>0){const N=E[0];r(N),i(null),o.mutate(N,{onSuccess:k=>{i(k),setTimeout(()=>{r(null),i(null)},4e3)},onError:k=>{console.error("Upload failed:",k),r(null)}})}},t[1]=o,t[2]=a):a=t[2];const s=a;let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u={"text/turtle":[".ttl"],"application/rdf+xml":[".rdf",".owl"]},t[3]=u):u=t[3];let c;t[4]!==s?(c={onDrop:s,accept:u,maxFiles:1},t[4]=s,t[5]=c):c=t[5];const{getRootProps:d,getInputProps:h,isDragActive:y}=mn(c);let b;t[6]!==d?(b=d(),t[6]=d,t[7]=b):b=t[7];const D=`2px dashed ${y?"#ff2d4b":"rgba(255,45,75,0.25)"}`,l=y?"rgba(255,45,75,0.06)":"rgba(0,0,0,0.2)";let f;t[8]!==D||t[9]!==l?(f={border:D,backgroundColor:l,borderRadius:8,padding:"16px 12px",textAlign:"center",cursor:"pointer",transition:"all 0.2s ease"},t[8]=D,t[9]=l,t[10]=f):f=t[10];let p;t[11]!==h?(p=h(),t[11]=h,t[12]=p):p=t[12];let g;t[13]!==p?(g=m.jsxDEV("input",{...p},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:116,columnNumber:10},void 0),t[13]=p,t[14]=g):g=t[14];let S;t[15]!==e?.name||t[16]!==o.isPending||t[17]!==n||t[18]!==y?(S=o.isPending?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#b08b93"},children:[m.jsxDEV(yn,{className:"animate-spin",size:20,style:{marginBottom:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:129,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12},children:["Uploading ",e?.name,"…"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:131,columnNumber:12},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:124,columnNumber:37},void 0):n?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#3fb950"},children:[m.jsxDEV(bn,{size:20,style:{marginBottom:6}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:138,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12,fontWeight:500},children:"Import Successful!"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:140,columnNumber:12},void 0),m.jsxDEV("span",{style:{fontSize:11,marginTop:2,color:"#43d17a"},children:["+",n.nodes_added," concepts · +",n.edges_added," links"]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:143,columnNumber:35},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:133,columnNumber:64},void 0):m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",color:"#b08b93"},children:[m.jsxDEV(vn,{size:20,style:{marginBottom:6,color:y?"#ff2d4b":"#484f58"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:152,columnNumber:8},void 0),m.jsxDEV("span",{style:{fontSize:12,fontWeight:500,color:"#e8ccd1"},children:y?"Drop here…":"Import Vocabulary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:155,columnNumber:12},void 0),m.jsxDEV("span",{style:{fontSize:11,marginTop:2},children:".ttl or .rdf"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:159,columnNumber:73},void 0)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:147,columnNumber:98},void 0),t[15]=e?.name,t[16]=o.isPending,t[17]=n,t[18]=y,t[19]=S):S=t[19];let w;t[20]!==b||t[21]!==f||t[22]!==g||t[23]!==S?(w=m.jsxDEV("div",{...b,style:f,children:[g,S]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:173,columnNumber:11},void 0),t[20]=b,t[21]=f,t[22]=g,t[23]=S,t[24]=w):w=t[24];let I;t[25]!==o.isError?(I=o.isError&&m.jsxDEV("p",{style:{color:"#f85149",fontSize:11,marginTop:6,textAlign:"center"},children:"Upload failed. Check console."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:184,columnNumber:37},void 0),t[25]=o.isError,t[26]=I):I=t[26];let T;return t[27]!==w||t[28]!==I?(T=m.jsxDEV("div",{children:[w,I]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/ImportDropzone.tsx",lineNumber:197,columnNumber:11},void 0),t[27]=w,t[28]=I,t[29]=T):T=t[29],T};function ku(t){const e=ae.c(27);if(e[0]!=="aec2dbb5f2235759623c4633ba260f211614993c061e4327a2f6d1c2c81f2cb6"){for(let M=0;M<27;M+=1)e[M]=Symbol.for("react.memo_cache_sentinel");e[0]="aec2dbb5f2235759623c4633ba260f211614993c061e4327a2f6d1c2c81f2cb6"}const{onSelectConcept:r}=t,{data:n,isLoading:i}=cn();let o;e[1]!==n?(o=n===void 0?[]:n,e[1]=n,e[2]=o):o=e[2];const a=o,[s,u]=v.useState(),c=s??a[0]?.uri,{data:d,isLoading:h}=dn(c);let y;e[3]!==d?(y=d===void 0?[]:d,e[3]=d,e[4]=y):y=e[4];const b=y;let D,l,f,p;e[5]===Symbol.for("react.memo_cache_sentinel")?(D={width:340,display:"flex",flexDirection:"column",borderRight:"1px solid rgba(255,45,75,0.15)",backgroundColor:"#010409",overflow:"hidden"},l={padding:"20px 20px 16px",borderBottom:"1px solid rgba(255,45,75,0.15)"},f=m.jsxDEV("h2",{style:{fontSize:18,color:"#e8ccd1",margin:"0 0 4px 0",fontWeight:600},children:"Ontology & Vocabulary"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:74,columnNumber:10},this),p={color:"#b08b93",fontSize:13,margin:0},e[5]=D,e[6]=l,e[7]=f,e[8]=p):(D=e[5],l=e[6],f=e[7],p=e[8]);const g=a.length?`${a.length} vocabulary scheme${a.length>1?"s":""}`:"No vocabularies loaded";let S;e[9]!==g?(S=m.jsxDEV("div",{style:l,children:[f,m.jsxDEV("p",{style:p,children:g},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:98,columnNumber:31},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:98,columnNumber:11},this),e[9]=g,e[10]=S):S=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w={padding:"12px 16px",borderBottom:"1px solid rgba(255,45,75,0.1)"},e[11]=w):w=e[11];let I;e[12]!==a||e[13]!==i||e[14]!==c?(I=m.jsxDEV("div",{style:w,children:i?m.jsxDEV("div",{style:{color:"#b08b93",fontSize:13},children:"Loading schemes…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:116,columnNumber:46},this):a.length===0?m.jsxDEV("div",{style:{color:"#484f58",fontSize:13,fontStyle:"italic"},children:"No schemes found. Import a .ttl or .rdf file below."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:119,columnNumber:58},this):m.jsxDEV("select",{value:c||"",onChange:M=>u(M.target.value),style:{width:"100%",appearance:"none",background:"rgba(0,0,0,0.3)",border:"1px solid rgba(255,45,75,0.2)",color:"#e8ccd1",padding:"8px 12px",borderRadius:6,fontSize:13,cursor:"pointer",outline:"none"},children:a.map(_u)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:123,columnNumber:70},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:116,columnNumber:11},this),e[12]=a,e[13]=i,e[14]=c,e[15]=I):I=e[15];let T;e[16]===Symbol.for("react.memo_cache_sentinel")?(T={flex:1,overflow:"hidden",display:"flex",flexDirection:"column"},e[16]=T):T=e[16];let E;e[17]!==b||e[18]!==r||e[19]!==c||e[20]!==h?(E=m.jsxDEV("div",{style:T,children:h?m.jsxDEV("div",{style:{padding:20,color:"#b08b93",fontSize:13,textAlign:"center"},children:"Loading hierarchy…"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:156,columnNumber:43},this):b.length===0?m.jsxDEV("div",{style:{padding:20,color:"#484f58",fontSize:13,textAlign:"center",fontStyle:"italic"},children:c?"No concepts found in this scheme.":"Select a scheme to browse concepts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:161,columnNumber:62},this):m.jsxDEV("div",{style:{flex:1,overflow:"hidden"},children:m.jsxDEV(Cu,{data:b,onSelectConcept:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:170,columnNumber:10},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:167,columnNumber:116},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:156,columnNumber:11},this),e[17]=b,e[18]=r,e[19]=c,e[20]=h,e[21]=E):E=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=m.jsxDEV("div",{style:{padding:"12px 16px",borderTop:"1px solid rgba(255,45,75,0.15)"},children:m.jsxDEV(Nu,{},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:184,columnNumber:8},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:181,columnNumber:11},this),e[22]=N):N=e[22];let k;return e[23]!==S||e[24]!==I||e[25]!==E?(k=m.jsxDEV("div",{style:D,children:[S,I,E,N]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:191,columnNumber:11},this),e[23]=S,e[24]=I,e[25]=E,e[26]=k):k=e[26],k}function _u(t){return m.jsxDEV("option",{value:t.uri,style:{background:"#0a0508"},children:t.label},t.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/Sidebar.tsx",lineNumber:202,columnNumber:10},this)}function Au(t){const e=ae.c(23);if(e[0]!=="f86142e83fe075c7b4907ab9302726d4520b07fdc6619a1ef09eb7ba09aae0a4"){for(let l=0;l<23;l+=1)e[l]=Symbol.for("react.memo_cache_sentinel");e[0]="f86142e83fe075c7b4907ab9302726d4520b07fdc6619a1ef09eb7ba09aae0a4"}const{concept:r}=t;if(!r){let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"#b08b93",textAlign:"center",padding:40},e[1]=l):l=e[1];let f;return e[2]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsxDEV("div",{style:l,children:[m.jsxDEV("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",style:{marginBottom:16,opacity:.4},children:m.jsxDEV("path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:45,columnNumber:12},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:42,columnNumber:28},this),m.jsxDEV("p",{style:{fontSize:15,fontWeight:500,marginBottom:4},children:"No concept selected"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:45,columnNumber:93},this),m.jsxDEV("p",{style:{fontSize:13},children:"Click a concept in the tree to view its properties."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:49,columnNumber:35},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:42,columnNumber:12},this),e[2]=f):f=e[2],f}let n,i,o,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(n={padding:28,overflowY:"auto",height:"100%"},i={borderBottom:"1px solid rgba(255,45,75,0.2)",paddingBottom:20,marginBottom:24},o=m.jsxDEV("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:[m.jsxDEV("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:"#d2a8ff",boxShadow:"0 0 8px rgba(210,168,255,0.6)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:78,columnNumber:8},this),m.jsxDEV("span",{style:{color:"#d2a8ff",fontSize:12,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.06em"},children:"SKOS Concept"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:85,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:73,columnNumber:10},this),a={margin:0,color:"#fff",fontSize:22,fontWeight:700,wordBreak:"break-word"},e[3]=n,e[4]=i,e[5]=o,e[6]=a):(n=e[3],i=e[4],o=e[5],a=e[6]);let s;e[7]!==r.pref_label?(s=m.jsxDEV("div",{style:i,children:[o,m.jsxDEV("h2",{style:a,children:r.pref_label},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:111,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:111,columnNumber:10},this),e[7]=r.pref_label,e[8]=s):s=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={marginBottom:20,padding:"8px 14px",background:"rgba(255,45,75,0.08)",border:"1px solid rgba(255,45,75,0.2)",borderRadius:6,fontSize:13,color:"#ff8fa0",fontFamily:"'JetBrains Mono', monospace",wordBreak:"break-all"},e[9]=u):u=e[9];let c;e[10]!==r.uri?(c=m.jsxDEV("div",{style:u,children:r.uri},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:136,columnNumber:10},this),e[10]=r.uri,e[11]=c):c=e[11];let d;e[12]!==r.alt_labels?(d=r.alt_labels&&r.alt_labels.length>0&&m.jsxDEV("section",{style:{marginBottom:24},children:[m.jsxDEV("h4",{style:{color:"#b08b93",fontSize:12,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Alternative Labels"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:146,columnNumber:8},this),m.jsxDEV("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:r.alt_labels.map(ju)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:152,columnNumber:33},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:144,columnNumber:65},this),e[12]=r.alt_labels,e[13]=d):d=e[13];let h,y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y={background:"rgba(0,0,0,0.2)",padding:16,borderRadius:8,border:"1px solid rgba(255,255,255,0.05)"},h=m.jsxDEV("h4",{style:{color:"#b08b93",fontSize:12,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:"Narrower Concepts"},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:171,columnNumber:11},this),e[14]=h,e[15]=y):(h=e[14],y=e[15]);let b;e[16]!==r.children?(b=m.jsxDEV("section",{style:y,children:[h,r.children&&r.children.length>0?m.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:6},children:r.children.map(Pu)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:186,columnNumber:87},this):m.jsxDEV("p",{style:{margin:0,color:"#484f58",fontStyle:"italic",fontSize:13},children:"Leaf concept — no narrower concepts."},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:190,columnNumber:49},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:186,columnNumber:11},this),e[16]=r.children,e[17]=b):b=e[17];let D;return e[18]!==b||e[19]!==s||e[20]!==c||e[21]!==d?(D=m.jsxDEV("div",{style:n,children:[s,c,d,b]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:203,columnNumber:11},this),e[18]=b,e[19]=s,e[20]=c,e[21]=d,e[22]=D):D=e[22],D}function Pu(t){return m.jsxDEV("span",{style:{color:"#e8ccd1",fontSize:13,padding:"6px 10px",background:"rgba(255,45,75,0.06)",borderRadius:4,border:"1px solid rgba(255,45,75,0.12)"},children:t.pref_label},t.uri,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:215,columnNumber:10},this)}function ju(t,e){return m.jsxDEV("span",{style:{background:"#21262d",color:"#e8ccd1",padding:"4px 10px",borderRadius:4,fontSize:13,border:"1px solid rgba(255,255,255,0.06)"},children:t},e,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/PropertyPanel.tsx",lineNumber:225,columnNumber:10},this)}const Ru=`
|
|
17
|
+
.vocab-workspace {
|
|
18
|
+
display: flex;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background: #0a0508;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
}
|
|
24
|
+
.vocab-main {
|
|
25
|
+
flex: 1;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
position: relative;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
}
|
|
31
|
+
.vocab-main-content {
|
|
32
|
+
flex: 1;
|
|
33
|
+
overflow-y: auto;
|
|
34
|
+
}
|
|
35
|
+
.vocab-detail-glass {
|
|
36
|
+
background: linear-gradient(135deg, rgba(13,17,23,0.75), rgba(22,27,34,0.6));
|
|
37
|
+
backdrop-filter: blur(16px) saturate(1.2);
|
|
38
|
+
-webkit-backdrop-filter: blur(16px) saturate(1.2);
|
|
39
|
+
border: 1px solid rgba(255,45,75,0.15);
|
|
40
|
+
box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 1px 1px 0 rgba(255,255,255,0.04);
|
|
41
|
+
border-radius: 14px;
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
`;function Bu(){const t=ae.c(7);if(t[0]!=="8458dc3d7f14b6efe4f67baef3c0b0ab33aca0ff15905b3b2463b90d4d1919d2"){for(let u=0;u<7;u+=1)t[u]=Symbol.for("react.memo_cache_sentinel");t[0]="8458dc3d7f14b6efe4f67baef3c0b0ab33aca0ff15905b3b2463b90d4d1919d2"}const[e,r]=v.useState(null);let n,i;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsxDEV("style",{children:Ru},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:55,columnNumber:10},this),i=m.jsxDEV(ku,{onSelectConcept:r},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:56,columnNumber:10},this),t[1]=n,t[2]=i):(n=t[1],i=t[2]);let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=m.jsxDEV("div",{style:{position:"absolute",inset:0,pointerEvents:"none",background:"radial-gradient(ellipse at top right, rgba(210,168,255,0.04), transparent 60%)"}},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:65,columnNumber:10},this),t[3]=o):o=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a={padding:32},t[4]=a):a=t[4];let s;return t[5]!==e?(s=m.jsxDEV("div",{className:"vocab-workspace",children:[n,i,m.jsxDEV("div",{className:"vocab-main",children:[o,m.jsxDEV("div",{className:"vocab-main-content",style:a,children:m.jsxDEV("div",{className:"vocab-detail-glass",children:m.jsxDEV(Au,{concept:e},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:166},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:130},this)},void 0,!1,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:83},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:51},this)]},void 0,!0,{fileName:"/Users/deepjoy/Documents/Alpha Semantic Hub/Alpha Semantic Hub Logo and Icon/explorer/src/workspaces/VocabularyWorkspace/VocabularyWorkspace.tsx",lineNumber:86,columnNumber:10},this),t[5]=e,t[6]=s):s=t[6],s}export{Bu as VocabularyWorkspace};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as o}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const a=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],t=o("book-open",a);export{t as B};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{b as o}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],c=o("chevron-down",n);/**
|
|
7
|
+
* @license lucide-react v1.8.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const e=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],h=o("chevron-right",e);export{c as C,h as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as c}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],r=c("circle-check",e);export{r as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as c}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],t=c("copy",e);export{t as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as o}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as a}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],n=a("external-link",e);export{n as E};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as e}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const a=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o=e("file-text",a);export{o as F};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b as c}from"./index-DHWWI-uw.js";/**
|
|
2
|
+
* @license lucide-react v1.8.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
|