quantum-component-library 1.4.53 → 1.4.54-dev.1

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.
Files changed (31) hide show
  1. package/dist/components.cjs +1 -1
  2. package/dist/components.js +30 -30
  3. package/dist/{dnd-core-vendor-Dl2_2nro.js → dnd-core-vendor-BvkN08kD.js} +2 -2
  4. package/dist/{dnd-core-vendor-JZjD_Td8.cjs → dnd-core-vendor-Dpm8Ha_h.cjs} +1 -1
  5. package/dist/{graphql-vendor-B7q7Yz13.cjs → graphql-vendor-CSrUjvOC.cjs} +1 -1
  6. package/dist/{graphql-vendor-e0-pkqHq.js → graphql-vendor-ipMKtdBu.js} +1 -1
  7. package/dist/hooks.cjs +1 -1
  8. package/dist/hooks.js +3 -3
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.js +3 -3
  11. package/dist/{lodash-vendor-CNINpQjK.js → lodash-vendor-CY4G3-79.js} +1 -1
  12. package/dist/{lodash-vendor-DUcUuCwh.cjs → lodash-vendor-CfNg9qwP.cjs} +1 -1
  13. package/dist/{other-CIQ4hL6N.cjs → other-B_xypnnb.cjs} +1 -1
  14. package/dist/{other-Bc-jVnzY.js → other-CPHWCRXi.js} +2 -2
  15. package/dist/{react-dnd-vendor-cqCcPDYo.js → react-dnd-vendor-DYesaYGm.js} +2 -2
  16. package/dist/{react-dnd-vendor-D97_L5Fj.cjs → react-dnd-vendor-DvbjNa5U.cjs} +1 -1
  17. package/dist/{react-select-vendor-Dm7JCXQl.js → react-select-vendor-B0QF8gkj.js} +1 -1
  18. package/dist/{react-select-vendor-DpstHMZN.cjs → react-select-vendor-BLLqfZvd.cjs} +1 -1
  19. package/dist/{services-human-BFuIf4vd.js → services-human-D5IllQkM.js} +2 -2
  20. package/dist/{services-human-BTPVJl80.cjs → services-human-DFPelsei.cjs} +1 -1
  21. package/dist/services.cjs +1 -1
  22. package/dist/services.js +1 -1
  23. package/dist/types.cjs +1 -1
  24. package/dist/types.js +3 -3
  25. package/dist/{utils-conversion-DSzF0R3j.js → utils-conversion-BQfLNP0g.js} +1 -1
  26. package/dist/{utils-conversion-DP8LonZS.cjs → utils-conversion-DFO1UVSN.cjs} +1 -1
  27. package/dist/utils.cjs +1 -1
  28. package/dist/utils.js +1 -1
  29. package/dist/{vendor-2NwaL0dE.js → vendor-BSFJsa1P.js} +1 -1
  30. package/dist/{vendor-vQ2gqPbn.cjs → vendor-DeYnrakH.cjs} +1 -1
  31. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";const M=require("./vendor-vQ2gqPbn.cjs"),s=require("./react-dnd-vendor-D97_L5Fj.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof 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.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}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}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
1
+ "use strict";const M=require("./vendor-DeYnrakH.cjs"),s=require("./react-dnd-vendor-DvbjNa5U.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof 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.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}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}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
@@ -1,4 +1,4 @@
1
- "use strict";const A=require("./vendor-vQ2gqPbn.cjs");var Z={OPERATION_DEFINITION:"OperationDefinition"};class J extends Error{constructor(t,n,a,c,l,s,f){super(t),this.name="GraphQLError",this.message=t,l&&(this.path=l),n&&(this.nodes=Array.isArray(n)?n:[n]),a&&(this.source=a),c&&(this.positions=c),s&&(this.originalError=s);var p=f;if(!p&&s){var v=s.extensions;v&&typeof v=="object"&&(p=v)}this.extensions=p||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var i,r;function m(e){return new J(`Syntax Error: Unexpected token at ${r} in ${e}`)}function R(e){if(e.lastIndex=r,e.test(i))return i.slice(r,r=e.lastIndex)}var _=/ +(?=[^\s])/y;function ee(e){for(var t=e.split(`
1
+ "use strict";const A=require("./vendor-DeYnrakH.cjs");var Z={OPERATION_DEFINITION:"OperationDefinition"};class J extends Error{constructor(t,n,a,c,l,s,f){super(t),this.name="GraphQLError",this.message=t,l&&(this.path=l),n&&(this.nodes=Array.isArray(n)?n:[n]),a&&(this.source=a),c&&(this.positions=c),s&&(this.originalError=s);var p=f;if(!p&&s){var v=s.extensions;v&&typeof v=="object"&&(p=v)}this.extensions=p||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var i,r;function m(e){return new J(`Syntax Error: Unexpected token at ${r} in ${e}`)}function R(e){if(e.lastIndex=r,e.test(i))return i.slice(r,r=e.lastIndex)}var _=/ +(?=[^\s])/y;function ee(e){for(var t=e.split(`
2
2
  `),n="",a=0,c=0,l=t.length-1,s=0;s<t.length;s++)_.lastIndex=0,_.test(t[s])&&(s&&(!a||_.lastIndex<a)&&(a=_.lastIndex),c=c||s,l=s);for(var f=c;f<=l;f++)f!==c&&(n+=`
3
3
  `),n+=t[f].slice(a).replace(/\\"""/g,'"""');return n}function u(){for(var e=0|i.charCodeAt(r++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|i.charCodeAt(r++))if(e===35)for(;(e=0|i.charCodeAt(r++))&&e!==10&&e!==13;);r--}function M(){for(var e=r,t=0|i.charCodeAt(r++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|i.charCodeAt(r++));if(e===r-1)throw m("Name");var n=i.slice(e,--r);return u(),n}function k(){return{kind:"Name",value:M()}}var te=/(?:"""|(?:[\s\S]*?[^\\])""")/y,re=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function x(e){var t;switch(i.charCodeAt(r)){case 91:r++,u();for(var n=[];i.charCodeAt(r)!==93;)n.push(x(e));return r++,u(),{kind:"ListValue",values:n};case 123:r++,u();for(var a=[];i.charCodeAt(r)!==125;){var c=k();if(i.charCodeAt(r++)!==58)throw m("ObjectField");u(),a.push({kind:"ObjectField",name:c,value:x(e)})}return r++,u(),{kind:"ObjectValue",fields:a};case 36:if(e)throw m("Variable");return r++,{kind:"Variable",name:k()};case 34:if(i.charCodeAt(r+1)===34&&i.charCodeAt(r+2)===34){if(r+=3,(t=R(te))==null)throw m("StringValue");return u(),{kind:"StringValue",value:ee(t.slice(0,-3)),block:!0}}else{var l=r,s;r++;var f=!1;for(s=0|i.charCodeAt(r++);s===92&&(r++,f=!0)||s!==10&&s!==13&&s!==34&&s;s=0|i.charCodeAt(r++));if(s!==34)throw m("StringValue");return t=i.slice(l,r),u(),{kind:"StringValue",value:f?JSON.parse(t):t.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var p=r++,v;(v=0|i.charCodeAt(r++))>=48&&v<=57;);var h=i.slice(p,--r);if((v=i.charCodeAt(r))===46||v===69||v===101){if((t=R(re))==null)throw m("FloatValue");return u(),{kind:"FloatValue",value:h+t}}else return u(),{kind:"IntValue",value:h};case 110:if(i.charCodeAt(r+1)===117&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===108)return r+=4,u(),{kind:"NullValue"};break;case 116:if(i.charCodeAt(r+1)===114&&i.charCodeAt(r+2)===117&&i.charCodeAt(r+3)===101)return r+=4,u(),{kind:"BooleanValue",value:!0};break;case 102:if(i.charCodeAt(r+1)===97&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===115&&i.charCodeAt(r+4)===101)return r+=5,u(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:M()}}function W(e){if(i.charCodeAt(r)===40){var t=[];r++,u();do{var n=k();if(i.charCodeAt(r++)!==58)throw m("Argument");u(),t.push({kind:"Argument",name:n,value:x(e)})}while(i.charCodeAt(r)!==41);return r++,u(),t}}function b(e){if(i.charCodeAt(r)===64){var t=[];do r++,t.push({kind:"Directive",name:k(),arguments:W(e)});while(i.charCodeAt(r)===64);return t}}function ne(){for(var e=0;i.charCodeAt(r)===91;)e++,r++,u();var t={kind:"NamedType",name:k()};do if(i.charCodeAt(r)===33&&(r++,u(),t={kind:"NonNullType",type:t}),e){if(i.charCodeAt(r++)!==93)throw m("NamedType");u(),t={kind:"ListType",type:t}}while(e--);return t}function j(){if(i.charCodeAt(r++)!==123)throw m("SelectionSet");return u(),L()}function L(){var e=[];do if(i.charCodeAt(r)===46){if(i.charCodeAt(++r)!==46||i.charCodeAt(++r)!==46)throw m("SelectionSet");switch(r++,u(),i.charCodeAt(r)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:b(!1),selectionSet:j()});break;case 111:i.charCodeAt(r+1)===110?(r+=2,u(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()})):e.push({kind:"FragmentSpread",name:k(),directives:b(!1)});break;case 123:r++,u(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:L()});break;default:e.push({kind:"FragmentSpread",name:k(),directives:b(!1)})}}else{var t=k(),n=void 0;i.charCodeAt(r)===58&&(r++,u(),n=t,t=k());var a=W(!1),c=b(!1),l=void 0;i.charCodeAt(r)===123&&(r++,u(),l=L()),e.push({kind:"Field",alias:n,name:t,arguments:a,directives:c,selectionSet:l})}while(i.charCodeAt(r)!==125);return r++,u(),{kind:"SelectionSet",selections:e}}function ie(){if(u(),i.charCodeAt(r)===40){var e=[];r++,u();do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r++)!==36)throw m("Variable");var n=k();if(i.charCodeAt(r++)!==58)throw m("VariableDefinition");u();var a=ne(),c=void 0;i.charCodeAt(r)===61&&(r++,u(),c=x(!0)),u();var l={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:a,defaultValue:c,directives:b(!0)};t&&(l.description=t),e.push(l)}while(i.charCodeAt(r)!==41);return r++,u(),e}}function ae(e){var t=k();if(i.charCodeAt(r++)!==111||i.charCodeAt(r++)!==110)throw m("FragmentDefinition");u();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()};return e&&(n.description=e),n}function B(){var e=[];do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r)===123){if(t)throw m("Document");r++,u(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:L()})}else{var n=M();switch(n){case"fragment":e.push(ae(t));break;case"query":case"mutation":case"subscription":var a,c=void 0;(a=i.charCodeAt(r))!==40&&a!==64&&a!==123&&(c=k());var l={kind:"OperationDefinition",operation:n,name:c,variableDefinitions:ie(),directives:b(!1),selectionSet:j()};t&&(l.description=t),e.push(l);break;default:throw m("Document")}}}while(r<i.length);return e}function oe(e,t){return i=e.body?e.body:e,r=0,u(),t&&t.noLocation?{kind:"Document",definitions:B()}:{kind:"Document",definitions:B(),loc:{start:0,end:i.length,startToken:void 0,endToken:void 0,source:{body:i,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function g(e,t,n){for(var a="",c=0;c<e.length;c++)c&&(a+=t),a+=n(e[c]);return a}function se(e){return JSON.stringify(e)}function ce(e){return`"""
4
4
  `+e.replace(/"""/g,'\\"""')+`
@@ -1,4 +1,4 @@
1
- import { f as q, m as R, t as te, a as re, b as B, d as ne, o as ie } from "./vendor-2NwaL0dE.js";
1
+ import { f as q, m as R, t as te, a as re, b as B, d as ne, o as ie } from "./vendor-BSFJsa1P.js";
2
2
  var ae = {
3
3
  OPERATION_DEFINITION: "OperationDefinition"
4
4
  };
package/dist/hooks.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./services-human-BTPVJl80.cjs"),l=require("./types.cjs");require("./lodash-vendor-DUcUuCwh.cjs");require("./moment-vendor-1cRqq0AH.cjs");const f=require("./graphql-vendor-B7q7Yz13.cjs"),p=require("urql"),P=require("./providers.cjs");require("./react-jsx-runtime-vendor-Dszzpdy0.cjs");require("./graphql-Dm6zPwG7.cjs");const d=(e,s)=>u.useMemo(()=>e.flatMap(o=>c.getEnabledJointPlanes(o,s).map(t=>({id:{joint:o},plane:t,...c.getDefaultJointRange(o,t),sensorOnly:s===l.AngleDataSource.Sensor}))),[e,s]),b=(e,s)=>{const n=u.useMemo(()=>{const t=c.getAllAvailableLimbs();return e.filter(a=>t.some(r=>r.id===a))},[e]);return u.useMemo(()=>n.flatMap(t=>c.getEnabledSegmentPlanes(t,s).map(a=>({id:{segment:t},plane:a,...c.getDefaultLimbRange(t,a),sensorOnly:s===l.AngleDataSource.Sensor}))),[n,s])},S=()=>{const e=u.useMemo(()=>c.getAllAvailableLimbs(),[]),s=u.useMemo(()=>c.getAllAvailablePoseJoints(),[]),n=b(e.map(r=>r.id),l.AngleDataSource.Pose),o=d(s.map(r=>r.id),l.AngleDataSource.Pose),t=b(e.map(r=>r.id),l.AngleDataSource.Sensor),a=d(s.map(r=>r.id),l.AngleDataSource.Sensor);return u.useMemo(()=>{const r=new Map;return[...o,...n].forEach(i=>{const m="joint"in i.id?`joint:${i.id.joint}:${i.plane}`:`segment:${i.id.segment}:${i.plane}`;r.set(m,{...i,sensorOnly:!1})}),[...a,...t].forEach(i=>{const m="joint"in i.id?`joint:${i.id.joint}:${i.plane}`:`segment:${i.id.segment}:${i.plane}`;r.has(m)||r.set(m,{...i,sensorOnly:!0})}),Array.from(r.values())},[o,n,a,t])},h=({url:e,getAuthToken:s})=>new p.Client({url:e,requestPolicy:"cache-and-network",exchanges:[f.authExchange(n=>{const o=s();return Promise.resolve({addAuthToOperation(t){return o?n.appendHeaders(t,{Authorization:`Bearer ${o}`}):t},didAuthError:t=>/unauthorized/gi.test(t?.message),refreshAuth:()=>Promise.resolve()})}),p.fetchExchange]}),q=({url:e,getAuthToken:s})=>u.useMemo(()=>h({url:e,getAuthToken:s}),[e,s]),g=e=>{const s=c.getAllAvailableJoints();return u.useMemo(()=>s.filter(n=>n.id==="NavalSpine"||n.id==="ChestSpine"?!1:c.limbsRequiredForJoints[n.id].every(t=>e.includes(t))),[e,s])},L=e=>{const s=u.useMemo(()=>e.map(l.sensorLocationToLimbId).filter(o=>!!o),[e]);return g(s)},A=e=>u.useMemo(()=>{const n=c.getAllAvailableLimbs(),o=e.map(l.sensorLocationToLimbId);return n.filter(t=>o.includes(t.id))},[e]),O=e=>{const s=A(e),n=L(e),o=d(n.map(a=>a.id),l.AngleDataSource.Sensor),t=b(s.map(a=>a.id),l.AngleDataSource.Sensor);return[...o,...t]},v=()=>{const e=u.useContext(P.UiLabelContext);if(e===void 0)throw new Error("useUiLabelContext must be used within a UiLabelProvider");return e};exports.useAllPartParameters=S;exports.useGraphqlClient=q;exports.useJointsForLimbIds=g;exports.useJointsForSensorLocations=L;exports.useLimbsForSensorLocations=A;exports.usePartOptionsForJoints=d;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=O;exports.useUiLabelContext=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./services-human-DFPelsei.cjs"),l=require("./types.cjs");require("./lodash-vendor-CfNg9qwP.cjs");require("./moment-vendor-1cRqq0AH.cjs");const f=require("./graphql-vendor-CSrUjvOC.cjs"),p=require("urql"),P=require("./providers.cjs");require("./react-jsx-runtime-vendor-Dszzpdy0.cjs");require("./graphql-Dm6zPwG7.cjs");const d=(e,s)=>u.useMemo(()=>e.flatMap(o=>c.getEnabledJointPlanes(o,s).map(t=>({id:{joint:o},plane:t,...c.getDefaultJointRange(o,t),sensorOnly:s===l.AngleDataSource.Sensor}))),[e,s]),b=(e,s)=>{const n=u.useMemo(()=>{const t=c.getAllAvailableLimbs();return e.filter(a=>t.some(r=>r.id===a))},[e]);return u.useMemo(()=>n.flatMap(t=>c.getEnabledSegmentPlanes(t,s).map(a=>({id:{segment:t},plane:a,...c.getDefaultLimbRange(t,a),sensorOnly:s===l.AngleDataSource.Sensor}))),[n,s])},S=()=>{const e=u.useMemo(()=>c.getAllAvailableLimbs(),[]),s=u.useMemo(()=>c.getAllAvailablePoseJoints(),[]),n=b(e.map(r=>r.id),l.AngleDataSource.Pose),o=d(s.map(r=>r.id),l.AngleDataSource.Pose),t=b(e.map(r=>r.id),l.AngleDataSource.Sensor),a=d(s.map(r=>r.id),l.AngleDataSource.Sensor);return u.useMemo(()=>{const r=new Map;return[...o,...n].forEach(i=>{const m="joint"in i.id?`joint:${i.id.joint}:${i.plane}`:`segment:${i.id.segment}:${i.plane}`;r.set(m,{...i,sensorOnly:!1})}),[...a,...t].forEach(i=>{const m="joint"in i.id?`joint:${i.id.joint}:${i.plane}`:`segment:${i.id.segment}:${i.plane}`;r.has(m)||r.set(m,{...i,sensorOnly:!0})}),Array.from(r.values())},[o,n,a,t])},h=({url:e,getAuthToken:s})=>new p.Client({url:e,requestPolicy:"cache-and-network",exchanges:[f.authExchange(n=>{const o=s();return Promise.resolve({addAuthToOperation(t){return o?n.appendHeaders(t,{Authorization:`Bearer ${o}`}):t},didAuthError:t=>/unauthorized/gi.test(t?.message),refreshAuth:()=>Promise.resolve()})}),p.fetchExchange]}),q=({url:e,getAuthToken:s})=>u.useMemo(()=>h({url:e,getAuthToken:s}),[e,s]),g=e=>{const s=c.getAllAvailableJoints();return u.useMemo(()=>s.filter(n=>n.id==="NavalSpine"||n.id==="ChestSpine"?!1:c.limbsRequiredForJoints[n.id].every(t=>e.includes(t))),[e,s])},L=e=>{const s=u.useMemo(()=>e.map(l.sensorLocationToLimbId).filter(o=>!!o),[e]);return g(s)},A=e=>u.useMemo(()=>{const n=c.getAllAvailableLimbs(),o=e.map(l.sensorLocationToLimbId);return n.filter(t=>o.includes(t.id))},[e]),O=e=>{const s=A(e),n=L(e),o=d(n.map(a=>a.id),l.AngleDataSource.Sensor),t=b(s.map(a=>a.id),l.AngleDataSource.Sensor);return[...o,...t]},v=()=>{const e=u.useContext(P.UiLabelContext);if(e===void 0)throw new Error("useUiLabelContext must be used within a UiLabelProvider");return e};exports.useAllPartParameters=S;exports.useGraphqlClient=q;exports.useJointsForLimbIds=g;exports.useJointsForSensorLocations=L;exports.useLimbsForSensorLocations=A;exports.usePartOptionsForJoints=d;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=O;exports.useUiLabelContext=v;
package/dist/hooks.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { useMemo as l, useContext as b } from "react";
2
- import { h as g, i as h, j as p, k as L, l as P, m as O, n as A, o as J } from "./services-human-BFuIf4vd.js";
2
+ import { h as g, i as h, j as p, k as L, l as P, m as O, n as A, o as J } from "./services-human-D5IllQkM.js";
3
3
  import { AngleDataSource as m, sensorLocationToLimbId as f } from "./types.js";
4
- import "./lodash-vendor-CNINpQjK.js";
4
+ import "./lodash-vendor-CY4G3-79.js";
5
5
  import "./moment-vendor-DMLRxgRE.js";
6
- import { a as v } from "./graphql-vendor-e0-pkqHq.js";
6
+ import { a as v } from "./graphql-vendor-ipMKtdBu.js";
7
7
  import { Client as x, fetchExchange as y } from "urql";
8
8
  import { UiLabelContext as S } from "./providers.js";
9
9
  import "./react-jsx-runtime-vendor-OVHDjVDe.js";
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-CIQ4hL6N.cjs");const r=require("./components.cjs"),o=require("./hooks.cjs"),s=require("./providers.cjs"),n=require("./services-action-DBOzfgMl.cjs"),e=require("./services-human-BTPVJl80.cjs"),m=require("./services.cjs"),t=require("./types.cjs"),g=require("./utils-cn-FIKrq5Mb.cjs"),i=require("./utils-conversion-DP8LonZS.cjs"),d=require("./utils-memo-BJJP2KfI.cjs"),a=require("./utils-parameters-dwKmz1VU.cjs"),l=require("./utils-text-lORqO4uI.cjs");exports.ActivityList=r.ActivityList;exports.CopyActivityForm=r.CopyActivityForm;exports.CopyModuleForm=r.CopyModuleForm;exports.ModuleForm=r.ModuleForm;exports.ParameterEditList=r.ParameterEditList;exports.ParameterEditSelect=r.ParameterEditSelect;exports.UpsertActivityForm=r.UpsertActivityForm;exports.UpsertModuleForm=r.UpsertModuleForm;exports.useAllPartParameters=o.useAllPartParameters;exports.useGraphqlClient=o.useGraphqlClient;exports.useJointsForLimbIds=o.useJointsForLimbIds;exports.useJointsForSensorLocations=o.useJointsForSensorLocations;exports.useLimbsForSensorLocations=o.useLimbsForSensorLocations;exports.usePartOptionsForJoints=o.usePartOptionsForJoints;exports.usePartOptionsForLimbs=o.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=o.usePartOptionsForSensorLocations;exports.useUiLabelContext=o.useUiLabelContext;exports.QuantumLibraryProvider=s.QuantumLibraryProvider;exports.UiLabelContext=s.UiLabelContext;exports.UiLabelProvider=s.UiLabelProvider;exports.getActivityKindFromActivityType=n.getActivityKindFromActivityType;exports.mapActivityTypeEnumToLabel=n.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=n.mapSessionTypeEnumToLabel;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getSuggestedSensorLocations=e.getSuggestedSensorLocations;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.reportKindName=m.reportKindName;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.cn=g.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.memo=d.memo;exports.parameterToThreshold=a.parameterToThreshold;exports.parametersToThresholds=a.parametersToThresholds;exports.thresholdToParameter=a.thresholdToParameter;exports.thresholdsToParameters=a.thresholdsToParameters;exports.capitalizeAll=l.capitalizeAll;exports.pluralize=l.pluralize;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-B_xypnnb.cjs");const r=require("./components.cjs"),o=require("./hooks.cjs"),s=require("./providers.cjs"),n=require("./services-action-DBOzfgMl.cjs"),e=require("./services-human-DFPelsei.cjs"),m=require("./services.cjs"),t=require("./types.cjs"),g=require("./utils-cn-FIKrq5Mb.cjs"),i=require("./utils-conversion-DFO1UVSN.cjs"),d=require("./utils-memo-BJJP2KfI.cjs"),a=require("./utils-parameters-dwKmz1VU.cjs"),l=require("./utils-text-lORqO4uI.cjs");exports.ActivityList=r.ActivityList;exports.CopyActivityForm=r.CopyActivityForm;exports.CopyModuleForm=r.CopyModuleForm;exports.ModuleForm=r.ModuleForm;exports.ParameterEditList=r.ParameterEditList;exports.ParameterEditSelect=r.ParameterEditSelect;exports.UpsertActivityForm=r.UpsertActivityForm;exports.UpsertModuleForm=r.UpsertModuleForm;exports.useAllPartParameters=o.useAllPartParameters;exports.useGraphqlClient=o.useGraphqlClient;exports.useJointsForLimbIds=o.useJointsForLimbIds;exports.useJointsForSensorLocations=o.useJointsForSensorLocations;exports.useLimbsForSensorLocations=o.useLimbsForSensorLocations;exports.usePartOptionsForJoints=o.usePartOptionsForJoints;exports.usePartOptionsForLimbs=o.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=o.usePartOptionsForSensorLocations;exports.useUiLabelContext=o.useUiLabelContext;exports.QuantumLibraryProvider=s.QuantumLibraryProvider;exports.UiLabelContext=s.UiLabelContext;exports.UiLabelProvider=s.UiLabelProvider;exports.getActivityKindFromActivityType=n.getActivityKindFromActivityType;exports.mapActivityTypeEnumToLabel=n.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=n.mapSessionTypeEnumToLabel;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getSuggestedSensorLocations=e.getSuggestedSensorLocations;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.reportKindName=m.reportKindName;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.cn=g.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.memo=d.memo;exports.parameterToThreshold=a.parameterToThreshold;exports.parametersToThresholds=a.parametersToThresholds;exports.thresholdToParameter=a.thresholdToParameter;exports.thresholdsToParameters=a.thresholdsToParameters;exports.capitalizeAll=l.capitalizeAll;exports.pluralize=l.pluralize;
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import "./other-Bc-jVnzY.js";
1
+ import "./other-CPHWCRXi.js";
2
2
  import { ActivityList as s, CopyActivityForm as o, CopyModuleForm as i, ModuleForm as r, ParameterEditList as n, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
3
3
  import { useAllPartParameters as p, useGraphqlClient as b, useJointsForLimbIds as c, useJointsForSensorLocations as A, useLimbsForSensorLocations as T, usePartOptionsForJoints as u, usePartOptionsForLimbs as P, usePartOptionsForSensorLocations as S, useUiLabelContext as h } from "./hooks.js";
4
4
  import { QuantumLibraryProvider as y, UiLabelContext as F, UiLabelProvider as N } from "./providers.js";
5
5
  import { g as v, m as f, a as x } from "./services-action-CfZFwhy-.js";
6
- import { n as D, j as k, m as E, u as U, t as M, U as C, s as O, w as R, v as j, J as H, O as W, i as z, l as B, h as K, k as q, Q as V, P as w, x as G, b as Q, a as X, T as Y, R as Z, d as _, W as $, V as ee, e as ae, L as te, K as se, y as oe, c as ie, g as re, S as ne, f as me, M as le, N as ge, D as de, G as pe, F as be, E as ce, q as Ae, r as Te, p as ue, o as Pe, B as Se, C as he, H as Le, z as ye, A as Fe, I as Ne } from "./services-human-BFuIf4vd.js";
6
+ import { n as D, j as k, m as E, u as U, t as M, U as C, s as O, w as R, v as j, J as H, O as W, i as z, l as B, h as K, k as q, Q as V, P as w, x as G, b as Q, a as X, T as Y, R as Z, d as _, W as $, V as ee, e as ae, L as te, K as se, y as oe, c as ie, g as re, S as ne, f as me, M as le, N as ge, D as de, G as pe, F as be, E as ce, q as Ae, r as Te, p as ue, o as Pe, B as Se, C as he, H as Le, z as ye, A as Fe, I as Ne } from "./services-human-D5IllQkM.js";
7
7
  import { reportKindName as ve } from "./services.js";
8
8
  import { AngleDataSource as xe, analysisStatBuilder as Ie, areThresholdsEmpty as De, availablePlanes as ke, axes as Ee, canBeVerticalForce as Ue, dimensionName as Me, dimensionToLegacy as Ce, getAnalysisName as Oe, getAnalysisPartIdNoSide as Re, getJointIdNoSide as je, getJointIdWithSide as He, getLimbIdNoSide as We, getLimbIdWithSide as ze, getPointSide as Be, isDeviceEqual as Ke, isLimbTrackingFrame as qe, isSyncError as Ve, jointAngle as we, jointOrLimbHasThreshold as Ge, jointOrLimbThresholdCount as Qe, limbAngle as Xe, mkUnit as Ye, partAndPlaneHasThreshold as Ze, partIdName as _e, partIdToJointLimbId as $e, partIdToString as ea, partKinds as aa, planes as ta, sensorLocationName as sa, sensorLocationToLimbId as oa, thresholdForPart as ia, thresholdFragmentsToThresholds as ra, thresholdsToInput as na, tryMkUnit as ma, updateThreshold as la } from "./types.js";
9
9
  import { c as da } from "./utils-cn-CgdSr4hO.js";
10
- import { d as ba, n as ca, j as Aa, g as Ta, h as ua, i as Pa, k as Sa, m as ha, a as La, e as ya, c as Fa, b as Na, p as Ja, r as va, s as fa, l as xa, f as Ia } from "./utils-conversion-DSzF0R3j.js";
10
+ import { d as ba, n as ca, j as Aa, g as Ta, h as ua, i as Pa, k as Sa, m as ha, a as La, e as ya, c as Fa, b as Na, p as Ja, r as va, s as fa, l as xa, f as Ia } from "./utils-conversion-BQfLNP0g.js";
11
11
  import { m as ka } from "./utils-memo-DtXdOqCT.js";
12
12
  import { p as Ua, a as Ma, t as Ca, b as Oa } from "./utils-parameters-DkefNhWo.js";
13
13
  import { c as ja, p as Ha } from "./utils-text-CN3zLiZ7.js";
@@ -1,4 +1,4 @@
1
- import { c as D, g as Fa } from "./other-Bc-jVnzY.js";
1
+ import { c as D, g as Fa } from "./other-CPHWCRXi.js";
2
2
  var K, Mr;
3
3
  function Ha() {
4
4
  if (Mr) return K;
@@ -1 +1 @@
1
- "use strict";const m=require("./other-CIQ4hL6N.cjs");var K,Mr;function Fa(){if(Mr)return K;Mr=1;function e(){this.__data__=[],this.size=0}return K=e,K}var V,Gr;function D(){if(Gr)return V;Gr=1;function e(r,t){return r===t||r!==r&&t!==t}return V=e,V}var k,Dr;function L(){if(Dr)return k;Dr=1;var e=D();function r(t,a){for(var n=t.length;n--;)if(e(t[n][0],a))return n;return-1}return k=r,k}var z,Lr;function Ha(){if(Lr)return z;Lr=1;var e=L(),r=Array.prototype,t=r.splice;function a(n){var i=this.__data__,u=e(i,n);if(u<0)return!1;var s=i.length-1;return u==s?i.pop():t.call(i,u,1),--this.size,!0}return z=a,z}var $,Fr;function Ea(){if(Fr)return $;Fr=1;var e=L();function r(t){var a=this.__data__,n=e(a,t);return n<0?void 0:a[n][1]}return $=r,$}var J,Hr;function Ba(){if(Hr)return J;Hr=1;var e=L();function r(t){return e(this.__data__,t)>-1}return J=r,J}var X,Er;function Ua(){if(Er)return X;Er=1;var e=L();function r(t,a){var n=this.__data__,i=e(n,t);return i<0?(++this.size,n.push([t,a])):n[i][1]=a,this}return X=r,X}var W,Br;function F(){if(Br)return W;Br=1;var e=Fa(),r=Ha(),t=Ea(),a=Ba(),n=Ua();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,W=i,W}var Y,Ur;function Na(){if(Ur)return Y;Ur=1;var e=F();function r(){this.__data__=new e,this.size=0}return Y=r,Y}var Z,Nr;function Ka(){if(Nr)return Z;Nr=1;function e(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}return Z=e,Z}var Q,Kr;function Va(){if(Kr)return Q;Kr=1;function e(r){return this.__data__.get(r)}return Q=e,Q}var ee,Vr;function ka(){if(Vr)return ee;Vr=1;function e(r){return this.__data__.has(r)}return ee=e,ee}var re,kr;function Ca(){if(kr)return re;kr=1;var e=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal;return re=e,re}var te,zr;function A(){if(zr)return te;zr=1;var e=Ca(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return te=t,te}var ae,$r;function Ra(){if($r)return ae;$r=1;var e=A(),r=e.Symbol;return ae=r,ae}var ne,Jr;function za(){if(Jr)return ne;Jr=1;var e=Ra(),r=Object.prototype,t=r.hasOwnProperty,a=r.toString,n=e?e.toStringTag:void 0;function i(u){var s=t.call(u,n),o=u[n];try{u[n]=void 0;var c=!0}catch{}var f=a.call(u);return c&&(s?u[n]=o:delete u[n]),f}return ne=i,ne}var ie,Xr;function $a(){if(Xr)return ie;Xr=1;var e=Object.prototype,r=e.toString;function t(a){return r.call(a)}return ie=t,ie}var ue,Wr;function H(){if(Wr)return ue;Wr=1;var e=Ra(),r=za(),t=$a(),a="[object Null]",n="[object Undefined]",i=e?e.toStringTag:void 0;function u(s){return s==null?s===void 0?n:a:i&&i in Object(s)?r(s):t(s)}return ue=u,ue}var se,Yr;function T(){if(Yr)return se;Yr=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return se=e,se}var oe,Zr;function Sr(){if(Zr)return oe;Zr=1;var e=H(),r=T(),t="[object AsyncFunction]",a="[object Function]",n="[object GeneratorFunction]",i="[object Proxy]";function u(s){if(!r(s))return!1;var o=e(s);return o==a||o==n||o==t||o==i}return oe=u,oe}var ce,Qr;function Ja(){if(Qr)return ce;Qr=1;var e=A(),r=e["__core-js_shared__"];return ce=r,ce}var fe,et;function Xa(){if(et)return fe;et=1;var e=Ja(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function t(a){return!!r&&r in a}return fe=t,fe}var ve,rt;function Wa(){if(rt)return ve;rt=1;var e=Function.prototype,r=e.toString;function t(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return ve=t,ve}var _e,tt;function Ya(){if(tt)return _e;tt=1;var e=Sr(),r=Xa(),t=T(),a=Wa(),n=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,o=u.toString,c=s.hasOwnProperty,f=RegExp("^"+o.call(c).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(h){if(!t(h)||r(h))return!1;var g=e(h)?f:i;return g.test(a(h))}return _e=_,_e}var he,at;function Za(){if(at)return he;at=1;function e(r,t){return r?.[t]}return he=e,he}var le,nt;function mr(){if(nt)return le;nt=1;var e=Ya(),r=Za();function t(a,n){var i=r(a,n);return e(i)?i:void 0}return le=t,le}var de,it;function Oa(){if(it)return de;it=1;var e=mr(),r=A(),t=e(r,"Map");return de=t,de}var pe,ut;function E(){if(ut)return pe;ut=1;var e=mr(),r=e(Object,"create");return pe=r,pe}var ge,st;function Qa(){if(st)return ge;st=1;var e=E();function r(){this.__data__=e?e(null):{},this.size=0}return ge=r,ge}var be,ot;function en(){if(ot)return be;ot=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return be=e,be}var ye,ct;function rn(){if(ct)return ye;ct=1;var e=E(),r="__lodash_hash_undefined__",t=Object.prototype,a=t.hasOwnProperty;function n(i){var u=this.__data__;if(e){var s=u[i];return s===r?void 0:s}return a.call(u,i)?u[i]:void 0}return ye=n,ye}var qe,ft;function tn(){if(ft)return qe;ft=1;var e=E(),r=Object.prototype,t=r.hasOwnProperty;function a(n){var i=this.__data__;return e?i[n]!==void 0:t.call(i,n)}return qe=a,qe}var Ce,vt;function an(){if(vt)return Ce;vt=1;var e=E(),r="__lodash_hash_undefined__";function t(a,n){var i=this.__data__;return this.size+=this.has(a)?0:1,i[a]=e&&n===void 0?r:n,this}return Ce=t,Ce}var Re,_t;function nn(){if(_t)return Re;_t=1;var e=Qa(),r=en(),t=rn(),a=tn(),n=an();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,Re=i,Re}var Oe,ht;function un(){if(ht)return Oe;ht=1;var e=nn(),r=F(),t=Oa();function a(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Oe=a,Oe}var Te,lt;function sn(){if(lt)return Te;lt=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Te=e,Te}var je,dt;function B(){if(dt)return je;dt=1;var e=sn();function r(t,a){var n=t.__data__;return e(a)?n[typeof a=="string"?"string":"hash"]:n.map}return je=r,je}var Ae,pt;function on(){if(pt)return Ae;pt=1;var e=B();function r(t){var a=e(this,t).delete(t);return this.size-=a?1:0,a}return Ae=r,Ae}var Ie,gt;function cn(){if(gt)return Ie;gt=1;var e=B();function r(t){return e(this,t).get(t)}return Ie=r,Ie}var Se,bt;function fn(){if(bt)return Se;bt=1;var e=B();function r(t){return e(this,t).has(t)}return Se=r,Se}var me,yt;function vn(){if(yt)return me;yt=1;var e=B();function r(t,a){var n=e(this,t),i=n.size;return n.set(t,a),this.size+=n.size==i?0:1,this}return me=r,me}var Pe,qt;function _n(){if(qt)return Pe;qt=1;var e=un(),r=on(),t=cn(),a=fn(),n=vn();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,Pe=i,Pe}var xe,Ct;function hn(){if(Ct)return xe;Ct=1;var e=F(),r=Oa(),t=_n(),a=200;function n(i,u){var s=this.__data__;if(s instanceof e){var o=s.__data__;if(!r||o.length<a-1)return o.push([i,u]),this.size=++s.size,this;s=this.__data__=new t(o)}return s.set(i,u),this.size=s.size,this}return xe=n,xe}var we,Rt;function ln(){if(Rt)return we;Rt=1;var e=F(),r=Na(),t=Ka(),a=Va(),n=ka(),i=hn();function u(s){var o=this.__data__=new e(s);this.size=o.size}return u.prototype.clear=r,u.prototype.delete=t,u.prototype.get=a,u.prototype.has=n,u.prototype.set=i,we=u,we}var Me,Ot;function Ta(){if(Ot)return Me;Ot=1;var e=mr(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Me=r,Me}var Ge,Tt;function Pr(){if(Tt)return Ge;Tt=1;var e=Ta();function r(t,a,n){a=="__proto__"&&e?e(t,a,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[a]=n}return Ge=r,Ge}var De,jt;function ja(){if(jt)return De;jt=1;var e=Pr(),r=D();function t(a,n,i){(i!==void 0&&!r(a[n],i)||i===void 0&&!(n in a))&&e(a,n,i)}return De=t,De}var Le,At;function dn(){if(At)return Le;At=1;function e(r){return function(t,a,n){for(var i=-1,u=Object(t),s=n(t),o=s.length;o--;){var c=s[r?o:++i];if(a(u[c],c,u)===!1)break}return t}}return Le=e,Le}var Fe,It;function pn(){if(It)return Fe;It=1;var e=dn(),r=e();return Fe=r,Fe}var P={exports:{}};P.exports;var St;function gn(){return St||(St=1,(function(e,r){var t=A(),a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i?t.Buffer:void 0,s=u?u.allocUnsafe:void 0;function o(c,f){if(f)return c.slice();var _=c.length,h=s?s(_):new c.constructor(_);return c.copy(h),h}e.exports=o})(P,P.exports)),P.exports}var He,mt;function bn(){if(mt)return He;mt=1;var e=A(),r=e.Uint8Array;return He=r,He}var Ee,Pt;function yn(){if(Pt)return Ee;Pt=1;var e=bn();function r(t){var a=new t.constructor(t.byteLength);return new e(a).set(new e(t)),a}return Ee=r,Ee}var Be,xt;function qn(){if(xt)return Be;xt=1;var e=yn();function r(t,a){var n=a?e(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}return Be=r,Be}var Ue,wt;function Cn(){if(wt)return Ue;wt=1;function e(r,t){var a=-1,n=r.length;for(t||(t=Array(n));++a<n;)t[a]=r[a];return t}return Ue=e,Ue}var Ne,Mt;function Rn(){if(Mt)return Ne;Mt=1;var e=T(),r=Object.create,t=(function(){function a(){}return function(n){if(!e(n))return{};if(r)return r(n);a.prototype=n;var i=new a;return a.prototype=void 0,i}})();return Ne=t,Ne}var Ke,Gt;function On(){if(Gt)return Ke;Gt=1;function e(r,t){return function(a){return r(t(a))}}return Ke=e,Ke}var Ve,Dt;function Aa(){if(Dt)return Ve;Dt=1;var e=On(),r=e(Object.getPrototypeOf,Object);return Ve=r,Ve}var ke,Lt;function Ia(){if(Lt)return ke;Lt=1;var e=Object.prototype;function r(t){var a=t&&t.constructor,n=typeof a=="function"&&a.prototype||e;return t===n}return ke=r,ke}var ze,Ft;function Tn(){if(Ft)return ze;Ft=1;var e=Rn(),r=Aa(),t=Ia();function a(n){return typeof n.constructor=="function"&&!t(n)?e(r(n)):{}}return ze=a,ze}var $e,Ht;function M(){if(Ht)return $e;Ht=1;function e(r){return r!=null&&typeof r=="object"}return $e=e,$e}var Je,Et;function jn(){if(Et)return Je;Et=1;var e=H(),r=M(),t="[object Arguments]";function a(n){return r(n)&&e(n)==t}return Je=a,Je}var Xe,Bt;function Sa(){if(Bt)return Xe;Bt=1;var e=jn(),r=M(),t=Object.prototype,a=t.hasOwnProperty,n=t.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(u){return r(u)&&a.call(u,"callee")&&!n.call(u,"callee")};return Xe=i,Xe}var We,Ut;function ma(){if(Ut)return We;Ut=1;var e=Array.isArray;return We=e,We}var Ye,Nt;function Pa(){if(Nt)return Ye;Nt=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Ye=r,Ye}var Ze,Kt;function xr(){if(Kt)return Ze;Kt=1;var e=Sr(),r=Pa();function t(a){return a!=null&&r(a.length)&&!e(a)}return Ze=t,Ze}var Qe,Vt;function An(){if(Vt)return Qe;Vt=1;var e=xr(),r=M();function t(a){return r(a)&&e(a)}return Qe=t,Qe}var x={exports:{}},er,kt;function In(){if(kt)return er;kt=1;function e(){return!1}return er=e,er}x.exports;var zt;function xa(){return zt||(zt=1,(function(e,r){var t=A(),a=In(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===n,s=u?t.Buffer:void 0,o=s?s.isBuffer:void 0,c=o||a;e.exports=c})(x,x.exports)),x.exports}var rr,$t;function Sn(){if($t)return rr;$t=1;var e=H(),r=Aa(),t=M(),a="[object Object]",n=Function.prototype,i=Object.prototype,u=n.toString,s=i.hasOwnProperty,o=u.call(Object);function c(f){if(!t(f)||e(f)!=a)return!1;var _=r(f);if(_===null)return!0;var h=s.call(_,"constructor")&&_.constructor;return typeof h=="function"&&h instanceof h&&u.call(h)==o}return rr=c,rr}var tr,Jt;function mn(){if(Jt)return tr;Jt=1;var e=H(),r=Pa(),t=M(),a="[object Arguments]",n="[object Array]",i="[object Boolean]",u="[object Date]",s="[object Error]",o="[object Function]",c="[object Map]",f="[object Number]",_="[object Object]",h="[object RegExp]",g="[object Set]",y="[object String]",q="[object WeakMap]",C="[object ArrayBuffer]",j="[object DataView]",l="[object Float32Array]",U="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",R="[object Int32Array]",b="[object Uint8Array]",d="[object Uint8ClampedArray]",G="[object Uint16Array]",p="[object Uint32Array]",v={};v[l]=v[U]=v[N]=v[I]=v[R]=v[b]=v[d]=v[G]=v[p]=!0,v[a]=v[n]=v[C]=v[i]=v[j]=v[u]=v[s]=v[o]=v[c]=v[f]=v[_]=v[h]=v[g]=v[y]=v[q]=!1;function S(O){return t(O)&&r(O.length)&&!!v[e(O)]}return tr=S,tr}var ar,Xt;function Pn(){if(Xt)return ar;Xt=1;function e(r){return function(t){return r(t)}}return ar=e,ar}var w={exports:{}};w.exports;var Wt;function xn(){return Wt||(Wt=1,(function(e,r){var t=Ca(),a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i&&t.process,s=(function(){try{var o=n&&n.require&&n.require("util").types;return o||u&&u.binding&&u.binding("util")}catch{}})();e.exports=s})(w,w.exports)),w.exports}var nr,Yt;function wa(){if(Yt)return nr;Yt=1;var e=mn(),r=Pn(),t=xn(),a=t&&t.isTypedArray,n=a?r(a):e;return nr=n,nr}var ir,Zt;function Ma(){if(Zt)return ir;Zt=1;function e(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}return ir=e,ir}var ur,Qt;function wn(){if(Qt)return ur;Qt=1;var e=Pr(),r=D(),t=Object.prototype,a=t.hasOwnProperty;function n(i,u,s){var o=i[u];(!(a.call(i,u)&&r(o,s))||s===void 0&&!(u in i))&&e(i,u,s)}return ur=n,ur}var sr,ea;function Mn(){if(ea)return sr;ea=1;var e=wn(),r=Pr();function t(a,n,i,u){var s=!i;i||(i={});for(var o=-1,c=n.length;++o<c;){var f=n[o],_=u?u(i[f],a[f],f,i,a):void 0;_===void 0&&(_=a[f]),s?r(i,f,_):e(i,f,_)}return i}return sr=t,sr}var or,ra;function Gn(){if(ra)return or;ra=1;function e(r,t){for(var a=-1,n=Array(r);++a<r;)n[a]=t(a);return n}return or=e,or}var cr,ta;function Ga(){if(ta)return cr;ta=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(a,n){var i=typeof a;return n=n??e,!!n&&(i=="number"||i!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<n}return cr=t,cr}var fr,aa;function Dn(){if(aa)return fr;aa=1;var e=Gn(),r=Sa(),t=ma(),a=xa(),n=Ga(),i=wa(),u=Object.prototype,s=u.hasOwnProperty;function o(c,f){var _=t(c),h=!_&&r(c),g=!_&&!h&&a(c),y=!_&&!h&&!g&&i(c),q=_||h||g||y,C=q?e(c.length,String):[],j=C.length;for(var l in c)(f||s.call(c,l))&&!(q&&(l=="length"||g&&(l=="offset"||l=="parent")||y&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||n(l,j)))&&C.push(l);return C}return fr=o,fr}var vr,na;function Ln(){if(na)return vr;na=1;function e(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}return vr=e,vr}var _r,ia;function Fn(){if(ia)return _r;ia=1;var e=T(),r=Ia(),t=Ln(),a=Object.prototype,n=a.hasOwnProperty;function i(u){if(!e(u))return t(u);var s=r(u),o=[];for(var c in u)c=="constructor"&&(s||!n.call(u,c))||o.push(c);return o}return _r=i,_r}var hr,ua;function Da(){if(ua)return hr;ua=1;var e=Dn(),r=Fn(),t=xr();function a(n){return t(n)?e(n,!0):r(n)}return hr=a,hr}var lr,sa;function Hn(){if(sa)return lr;sa=1;var e=Mn(),r=Da();function t(a){return e(a,r(a))}return lr=t,lr}var dr,oa;function En(){if(oa)return dr;oa=1;var e=ja(),r=gn(),t=qn(),a=Cn(),n=Tn(),i=Sa(),u=ma(),s=An(),o=xa(),c=Sr(),f=T(),_=Sn(),h=wa(),g=Ma(),y=Hn();function q(C,j,l,U,N,I,R){var b=g(C,l),d=g(j,l),G=R.get(d);if(G){e(C,l,G);return}var p=I?I(b,d,l+"",C,j,R):void 0,v=p===void 0;if(v){var S=u(d),O=!S&&o(d),wr=!S&&!O&&h(d);p=d,S||O||wr?u(b)?p=b:s(b)?p=a(b):O?(v=!1,p=r(d,!0)):wr?(v=!1,p=t(d,!0)):p=[]:_(d)||i(d)?(p=b,i(b)?p=y(b):(!f(b)||c(b))&&(p=n(d))):v=!1}v&&(R.set(d,p),N(p,d,U,I,R),R.delete(d)),e(C,l,p)}return dr=q,dr}var pr,ca;function Bn(){if(ca)return pr;ca=1;var e=ln(),r=ja(),t=pn(),a=En(),n=T(),i=Da(),u=Ma();function s(o,c,f,_,h){o!==c&&t(c,function(g,y){if(h||(h=new e),n(g))a(o,c,y,f,s,_,h);else{var q=_?_(u(o,y),g,y+"",o,c,h):void 0;q===void 0&&(q=g),r(o,y,q)}},i)}return pr=s,pr}var gr,fa;function La(){if(fa)return gr;fa=1;function e(r){return r}return gr=e,gr}var br,va;function Un(){if(va)return br;va=1;function e(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}return br=e,br}var yr,_a;function Nn(){if(_a)return yr;_a=1;var e=Un(),r=Math.max;function t(a,n,i){return n=r(n===void 0?a.length-1:n,0),function(){for(var u=arguments,s=-1,o=r(u.length-n,0),c=Array(o);++s<o;)c[s]=u[n+s];s=-1;for(var f=Array(n+1);++s<n;)f[s]=u[s];return f[n]=i(c),e(a,this,f)}}return yr=t,yr}var qr,ha;function Kn(){if(ha)return qr;ha=1;function e(r){return function(){return r}}return qr=e,qr}var Cr,la;function Vn(){if(la)return Cr;la=1;var e=Kn(),r=Ta(),t=La(),a=r?function(n,i){return r(n,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return Cr=a,Cr}var Rr,da;function kn(){if(da)return Rr;da=1;var e=800,r=16,t=Date.now;function a(n){var i=0,u=0;return function(){var s=t(),o=r-(s-u);if(u=s,o>0){if(++i>=e)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}return Rr=a,Rr}var Or,pa;function zn(){if(pa)return Or;pa=1;var e=Vn(),r=kn(),t=r(e);return Or=t,Or}var Tr,ga;function $n(){if(ga)return Tr;ga=1;var e=La(),r=Nn(),t=zn();function a(n,i){return t(r(n,i,e),n+"")}return Tr=a,Tr}var jr,ba;function Jn(){if(ba)return jr;ba=1;var e=D(),r=xr(),t=Ga(),a=T();function n(i,u,s){if(!a(s))return!1;var o=typeof u;return(o=="number"?r(s)&&t(u,s.length):o=="string"&&u in s)?e(s[u],i):!1}return jr=n,jr}var Ar,ya;function Xn(){if(ya)return Ar;ya=1;var e=$n(),r=Jn();function t(a){return e(function(n,i){var u=-1,s=i.length,o=s>1?i[s-1]:void 0,c=s>2?i[2]:void 0;for(o=a.length>3&&typeof o=="function"?(s--,o):void 0,c&&r(i[0],i[1],c)&&(o=s<3?void 0:o,s=1),n=Object(n);++u<s;){var f=i[u];f&&a(n,f,u,o)}return n})}return Ar=t,Ar}var Ir,qa;function Wn(){if(qa)return Ir;qa=1;var e=Bn(),r=Xn(),t=r(function(a,n,i){e(a,n,i)});return Ir=t,Ir}var Yn=Wn();const Zn=m.getDefaultExportFromCjs(Yn);exports.merge=Zn;
1
+ "use strict";const m=require("./other-B_xypnnb.cjs");var K,Mr;function Fa(){if(Mr)return K;Mr=1;function e(){this.__data__=[],this.size=0}return K=e,K}var V,Gr;function D(){if(Gr)return V;Gr=1;function e(r,t){return r===t||r!==r&&t!==t}return V=e,V}var k,Dr;function L(){if(Dr)return k;Dr=1;var e=D();function r(t,a){for(var n=t.length;n--;)if(e(t[n][0],a))return n;return-1}return k=r,k}var z,Lr;function Ha(){if(Lr)return z;Lr=1;var e=L(),r=Array.prototype,t=r.splice;function a(n){var i=this.__data__,u=e(i,n);if(u<0)return!1;var s=i.length-1;return u==s?i.pop():t.call(i,u,1),--this.size,!0}return z=a,z}var $,Fr;function Ea(){if(Fr)return $;Fr=1;var e=L();function r(t){var a=this.__data__,n=e(a,t);return n<0?void 0:a[n][1]}return $=r,$}var J,Hr;function Ba(){if(Hr)return J;Hr=1;var e=L();function r(t){return e(this.__data__,t)>-1}return J=r,J}var X,Er;function Ua(){if(Er)return X;Er=1;var e=L();function r(t,a){var n=this.__data__,i=e(n,t);return i<0?(++this.size,n.push([t,a])):n[i][1]=a,this}return X=r,X}var W,Br;function F(){if(Br)return W;Br=1;var e=Fa(),r=Ha(),t=Ea(),a=Ba(),n=Ua();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,W=i,W}var Y,Ur;function Na(){if(Ur)return Y;Ur=1;var e=F();function r(){this.__data__=new e,this.size=0}return Y=r,Y}var Z,Nr;function Ka(){if(Nr)return Z;Nr=1;function e(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}return Z=e,Z}var Q,Kr;function Va(){if(Kr)return Q;Kr=1;function e(r){return this.__data__.get(r)}return Q=e,Q}var ee,Vr;function ka(){if(Vr)return ee;Vr=1;function e(r){return this.__data__.has(r)}return ee=e,ee}var re,kr;function Ca(){if(kr)return re;kr=1;var e=typeof m.commonjsGlobal=="object"&&m.commonjsGlobal&&m.commonjsGlobal.Object===Object&&m.commonjsGlobal;return re=e,re}var te,zr;function A(){if(zr)return te;zr=1;var e=Ca(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return te=t,te}var ae,$r;function Ra(){if($r)return ae;$r=1;var e=A(),r=e.Symbol;return ae=r,ae}var ne,Jr;function za(){if(Jr)return ne;Jr=1;var e=Ra(),r=Object.prototype,t=r.hasOwnProperty,a=r.toString,n=e?e.toStringTag:void 0;function i(u){var s=t.call(u,n),o=u[n];try{u[n]=void 0;var c=!0}catch{}var f=a.call(u);return c&&(s?u[n]=o:delete u[n]),f}return ne=i,ne}var ie,Xr;function $a(){if(Xr)return ie;Xr=1;var e=Object.prototype,r=e.toString;function t(a){return r.call(a)}return ie=t,ie}var ue,Wr;function H(){if(Wr)return ue;Wr=1;var e=Ra(),r=za(),t=$a(),a="[object Null]",n="[object Undefined]",i=e?e.toStringTag:void 0;function u(s){return s==null?s===void 0?n:a:i&&i in Object(s)?r(s):t(s)}return ue=u,ue}var se,Yr;function T(){if(Yr)return se;Yr=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return se=e,se}var oe,Zr;function Sr(){if(Zr)return oe;Zr=1;var e=H(),r=T(),t="[object AsyncFunction]",a="[object Function]",n="[object GeneratorFunction]",i="[object Proxy]";function u(s){if(!r(s))return!1;var o=e(s);return o==a||o==n||o==t||o==i}return oe=u,oe}var ce,Qr;function Ja(){if(Qr)return ce;Qr=1;var e=A(),r=e["__core-js_shared__"];return ce=r,ce}var fe,et;function Xa(){if(et)return fe;et=1;var e=Ja(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function t(a){return!!r&&r in a}return fe=t,fe}var ve,rt;function Wa(){if(rt)return ve;rt=1;var e=Function.prototype,r=e.toString;function t(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return ve=t,ve}var _e,tt;function Ya(){if(tt)return _e;tt=1;var e=Sr(),r=Xa(),t=T(),a=Wa(),n=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,o=u.toString,c=s.hasOwnProperty,f=RegExp("^"+o.call(c).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(h){if(!t(h)||r(h))return!1;var g=e(h)?f:i;return g.test(a(h))}return _e=_,_e}var he,at;function Za(){if(at)return he;at=1;function e(r,t){return r?.[t]}return he=e,he}var le,nt;function mr(){if(nt)return le;nt=1;var e=Ya(),r=Za();function t(a,n){var i=r(a,n);return e(i)?i:void 0}return le=t,le}var de,it;function Oa(){if(it)return de;it=1;var e=mr(),r=A(),t=e(r,"Map");return de=t,de}var pe,ut;function E(){if(ut)return pe;ut=1;var e=mr(),r=e(Object,"create");return pe=r,pe}var ge,st;function Qa(){if(st)return ge;st=1;var e=E();function r(){this.__data__=e?e(null):{},this.size=0}return ge=r,ge}var be,ot;function en(){if(ot)return be;ot=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return be=e,be}var ye,ct;function rn(){if(ct)return ye;ct=1;var e=E(),r="__lodash_hash_undefined__",t=Object.prototype,a=t.hasOwnProperty;function n(i){var u=this.__data__;if(e){var s=u[i];return s===r?void 0:s}return a.call(u,i)?u[i]:void 0}return ye=n,ye}var qe,ft;function tn(){if(ft)return qe;ft=1;var e=E(),r=Object.prototype,t=r.hasOwnProperty;function a(n){var i=this.__data__;return e?i[n]!==void 0:t.call(i,n)}return qe=a,qe}var Ce,vt;function an(){if(vt)return Ce;vt=1;var e=E(),r="__lodash_hash_undefined__";function t(a,n){var i=this.__data__;return this.size+=this.has(a)?0:1,i[a]=e&&n===void 0?r:n,this}return Ce=t,Ce}var Re,_t;function nn(){if(_t)return Re;_t=1;var e=Qa(),r=en(),t=rn(),a=tn(),n=an();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,Re=i,Re}var Oe,ht;function un(){if(ht)return Oe;ht=1;var e=nn(),r=F(),t=Oa();function a(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Oe=a,Oe}var Te,lt;function sn(){if(lt)return Te;lt=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Te=e,Te}var je,dt;function B(){if(dt)return je;dt=1;var e=sn();function r(t,a){var n=t.__data__;return e(a)?n[typeof a=="string"?"string":"hash"]:n.map}return je=r,je}var Ae,pt;function on(){if(pt)return Ae;pt=1;var e=B();function r(t){var a=e(this,t).delete(t);return this.size-=a?1:0,a}return Ae=r,Ae}var Ie,gt;function cn(){if(gt)return Ie;gt=1;var e=B();function r(t){return e(this,t).get(t)}return Ie=r,Ie}var Se,bt;function fn(){if(bt)return Se;bt=1;var e=B();function r(t){return e(this,t).has(t)}return Se=r,Se}var me,yt;function vn(){if(yt)return me;yt=1;var e=B();function r(t,a){var n=e(this,t),i=n.size;return n.set(t,a),this.size+=n.size==i?0:1,this}return me=r,me}var Pe,qt;function _n(){if(qt)return Pe;qt=1;var e=un(),r=on(),t=cn(),a=fn(),n=vn();function i(u){var s=-1,o=u==null?0:u.length;for(this.clear();++s<o;){var c=u[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=r,i.prototype.get=t,i.prototype.has=a,i.prototype.set=n,Pe=i,Pe}var xe,Ct;function hn(){if(Ct)return xe;Ct=1;var e=F(),r=Oa(),t=_n(),a=200;function n(i,u){var s=this.__data__;if(s instanceof e){var o=s.__data__;if(!r||o.length<a-1)return o.push([i,u]),this.size=++s.size,this;s=this.__data__=new t(o)}return s.set(i,u),this.size=s.size,this}return xe=n,xe}var we,Rt;function ln(){if(Rt)return we;Rt=1;var e=F(),r=Na(),t=Ka(),a=Va(),n=ka(),i=hn();function u(s){var o=this.__data__=new e(s);this.size=o.size}return u.prototype.clear=r,u.prototype.delete=t,u.prototype.get=a,u.prototype.has=n,u.prototype.set=i,we=u,we}var Me,Ot;function Ta(){if(Ot)return Me;Ot=1;var e=mr(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Me=r,Me}var Ge,Tt;function Pr(){if(Tt)return Ge;Tt=1;var e=Ta();function r(t,a,n){a=="__proto__"&&e?e(t,a,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[a]=n}return Ge=r,Ge}var De,jt;function ja(){if(jt)return De;jt=1;var e=Pr(),r=D();function t(a,n,i){(i!==void 0&&!r(a[n],i)||i===void 0&&!(n in a))&&e(a,n,i)}return De=t,De}var Le,At;function dn(){if(At)return Le;At=1;function e(r){return function(t,a,n){for(var i=-1,u=Object(t),s=n(t),o=s.length;o--;){var c=s[r?o:++i];if(a(u[c],c,u)===!1)break}return t}}return Le=e,Le}var Fe,It;function pn(){if(It)return Fe;It=1;var e=dn(),r=e();return Fe=r,Fe}var P={exports:{}};P.exports;var St;function gn(){return St||(St=1,(function(e,r){var t=A(),a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i?t.Buffer:void 0,s=u?u.allocUnsafe:void 0;function o(c,f){if(f)return c.slice();var _=c.length,h=s?s(_):new c.constructor(_);return c.copy(h),h}e.exports=o})(P,P.exports)),P.exports}var He,mt;function bn(){if(mt)return He;mt=1;var e=A(),r=e.Uint8Array;return He=r,He}var Ee,Pt;function yn(){if(Pt)return Ee;Pt=1;var e=bn();function r(t){var a=new t.constructor(t.byteLength);return new e(a).set(new e(t)),a}return Ee=r,Ee}var Be,xt;function qn(){if(xt)return Be;xt=1;var e=yn();function r(t,a){var n=a?e(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}return Be=r,Be}var Ue,wt;function Cn(){if(wt)return Ue;wt=1;function e(r,t){var a=-1,n=r.length;for(t||(t=Array(n));++a<n;)t[a]=r[a];return t}return Ue=e,Ue}var Ne,Mt;function Rn(){if(Mt)return Ne;Mt=1;var e=T(),r=Object.create,t=(function(){function a(){}return function(n){if(!e(n))return{};if(r)return r(n);a.prototype=n;var i=new a;return a.prototype=void 0,i}})();return Ne=t,Ne}var Ke,Gt;function On(){if(Gt)return Ke;Gt=1;function e(r,t){return function(a){return r(t(a))}}return Ke=e,Ke}var Ve,Dt;function Aa(){if(Dt)return Ve;Dt=1;var e=On(),r=e(Object.getPrototypeOf,Object);return Ve=r,Ve}var ke,Lt;function Ia(){if(Lt)return ke;Lt=1;var e=Object.prototype;function r(t){var a=t&&t.constructor,n=typeof a=="function"&&a.prototype||e;return t===n}return ke=r,ke}var ze,Ft;function Tn(){if(Ft)return ze;Ft=1;var e=Rn(),r=Aa(),t=Ia();function a(n){return typeof n.constructor=="function"&&!t(n)?e(r(n)):{}}return ze=a,ze}var $e,Ht;function M(){if(Ht)return $e;Ht=1;function e(r){return r!=null&&typeof r=="object"}return $e=e,$e}var Je,Et;function jn(){if(Et)return Je;Et=1;var e=H(),r=M(),t="[object Arguments]";function a(n){return r(n)&&e(n)==t}return Je=a,Je}var Xe,Bt;function Sa(){if(Bt)return Xe;Bt=1;var e=jn(),r=M(),t=Object.prototype,a=t.hasOwnProperty,n=t.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(u){return r(u)&&a.call(u,"callee")&&!n.call(u,"callee")};return Xe=i,Xe}var We,Ut;function ma(){if(Ut)return We;Ut=1;var e=Array.isArray;return We=e,We}var Ye,Nt;function Pa(){if(Nt)return Ye;Nt=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Ye=r,Ye}var Ze,Kt;function xr(){if(Kt)return Ze;Kt=1;var e=Sr(),r=Pa();function t(a){return a!=null&&r(a.length)&&!e(a)}return Ze=t,Ze}var Qe,Vt;function An(){if(Vt)return Qe;Vt=1;var e=xr(),r=M();function t(a){return r(a)&&e(a)}return Qe=t,Qe}var x={exports:{}},er,kt;function In(){if(kt)return er;kt=1;function e(){return!1}return er=e,er}x.exports;var zt;function xa(){return zt||(zt=1,(function(e,r){var t=A(),a=In(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,u=i&&i.exports===n,s=u?t.Buffer:void 0,o=s?s.isBuffer:void 0,c=o||a;e.exports=c})(x,x.exports)),x.exports}var rr,$t;function Sn(){if($t)return rr;$t=1;var e=H(),r=Aa(),t=M(),a="[object Object]",n=Function.prototype,i=Object.prototype,u=n.toString,s=i.hasOwnProperty,o=u.call(Object);function c(f){if(!t(f)||e(f)!=a)return!1;var _=r(f);if(_===null)return!0;var h=s.call(_,"constructor")&&_.constructor;return typeof h=="function"&&h instanceof h&&u.call(h)==o}return rr=c,rr}var tr,Jt;function mn(){if(Jt)return tr;Jt=1;var e=H(),r=Pa(),t=M(),a="[object Arguments]",n="[object Array]",i="[object Boolean]",u="[object Date]",s="[object Error]",o="[object Function]",c="[object Map]",f="[object Number]",_="[object Object]",h="[object RegExp]",g="[object Set]",y="[object String]",q="[object WeakMap]",C="[object ArrayBuffer]",j="[object DataView]",l="[object Float32Array]",U="[object Float64Array]",N="[object Int8Array]",I="[object Int16Array]",R="[object Int32Array]",b="[object Uint8Array]",d="[object Uint8ClampedArray]",G="[object Uint16Array]",p="[object Uint32Array]",v={};v[l]=v[U]=v[N]=v[I]=v[R]=v[b]=v[d]=v[G]=v[p]=!0,v[a]=v[n]=v[C]=v[i]=v[j]=v[u]=v[s]=v[o]=v[c]=v[f]=v[_]=v[h]=v[g]=v[y]=v[q]=!1;function S(O){return t(O)&&r(O.length)&&!!v[e(O)]}return tr=S,tr}var ar,Xt;function Pn(){if(Xt)return ar;Xt=1;function e(r){return function(t){return r(t)}}return ar=e,ar}var w={exports:{}};w.exports;var Wt;function xn(){return Wt||(Wt=1,(function(e,r){var t=Ca(),a=r&&!r.nodeType&&r,n=a&&!0&&e&&!e.nodeType&&e,i=n&&n.exports===a,u=i&&t.process,s=(function(){try{var o=n&&n.require&&n.require("util").types;return o||u&&u.binding&&u.binding("util")}catch{}})();e.exports=s})(w,w.exports)),w.exports}var nr,Yt;function wa(){if(Yt)return nr;Yt=1;var e=mn(),r=Pn(),t=xn(),a=t&&t.isTypedArray,n=a?r(a):e;return nr=n,nr}var ir,Zt;function Ma(){if(Zt)return ir;Zt=1;function e(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}return ir=e,ir}var ur,Qt;function wn(){if(Qt)return ur;Qt=1;var e=Pr(),r=D(),t=Object.prototype,a=t.hasOwnProperty;function n(i,u,s){var o=i[u];(!(a.call(i,u)&&r(o,s))||s===void 0&&!(u in i))&&e(i,u,s)}return ur=n,ur}var sr,ea;function Mn(){if(ea)return sr;ea=1;var e=wn(),r=Pr();function t(a,n,i,u){var s=!i;i||(i={});for(var o=-1,c=n.length;++o<c;){var f=n[o],_=u?u(i[f],a[f],f,i,a):void 0;_===void 0&&(_=a[f]),s?r(i,f,_):e(i,f,_)}return i}return sr=t,sr}var or,ra;function Gn(){if(ra)return or;ra=1;function e(r,t){for(var a=-1,n=Array(r);++a<r;)n[a]=t(a);return n}return or=e,or}var cr,ta;function Ga(){if(ta)return cr;ta=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(a,n){var i=typeof a;return n=n??e,!!n&&(i=="number"||i!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<n}return cr=t,cr}var fr,aa;function Dn(){if(aa)return fr;aa=1;var e=Gn(),r=Sa(),t=ma(),a=xa(),n=Ga(),i=wa(),u=Object.prototype,s=u.hasOwnProperty;function o(c,f){var _=t(c),h=!_&&r(c),g=!_&&!h&&a(c),y=!_&&!h&&!g&&i(c),q=_||h||g||y,C=q?e(c.length,String):[],j=C.length;for(var l in c)(f||s.call(c,l))&&!(q&&(l=="length"||g&&(l=="offset"||l=="parent")||y&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||n(l,j)))&&C.push(l);return C}return fr=o,fr}var vr,na;function Ln(){if(na)return vr;na=1;function e(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}return vr=e,vr}var _r,ia;function Fn(){if(ia)return _r;ia=1;var e=T(),r=Ia(),t=Ln(),a=Object.prototype,n=a.hasOwnProperty;function i(u){if(!e(u))return t(u);var s=r(u),o=[];for(var c in u)c=="constructor"&&(s||!n.call(u,c))||o.push(c);return o}return _r=i,_r}var hr,ua;function Da(){if(ua)return hr;ua=1;var e=Dn(),r=Fn(),t=xr();function a(n){return t(n)?e(n,!0):r(n)}return hr=a,hr}var lr,sa;function Hn(){if(sa)return lr;sa=1;var e=Mn(),r=Da();function t(a){return e(a,r(a))}return lr=t,lr}var dr,oa;function En(){if(oa)return dr;oa=1;var e=ja(),r=gn(),t=qn(),a=Cn(),n=Tn(),i=Sa(),u=ma(),s=An(),o=xa(),c=Sr(),f=T(),_=Sn(),h=wa(),g=Ma(),y=Hn();function q(C,j,l,U,N,I,R){var b=g(C,l),d=g(j,l),G=R.get(d);if(G){e(C,l,G);return}var p=I?I(b,d,l+"",C,j,R):void 0,v=p===void 0;if(v){var S=u(d),O=!S&&o(d),wr=!S&&!O&&h(d);p=d,S||O||wr?u(b)?p=b:s(b)?p=a(b):O?(v=!1,p=r(d,!0)):wr?(v=!1,p=t(d,!0)):p=[]:_(d)||i(d)?(p=b,i(b)?p=y(b):(!f(b)||c(b))&&(p=n(d))):v=!1}v&&(R.set(d,p),N(p,d,U,I,R),R.delete(d)),e(C,l,p)}return dr=q,dr}var pr,ca;function Bn(){if(ca)return pr;ca=1;var e=ln(),r=ja(),t=pn(),a=En(),n=T(),i=Da(),u=Ma();function s(o,c,f,_,h){o!==c&&t(c,function(g,y){if(h||(h=new e),n(g))a(o,c,y,f,s,_,h);else{var q=_?_(u(o,y),g,y+"",o,c,h):void 0;q===void 0&&(q=g),r(o,y,q)}},i)}return pr=s,pr}var gr,fa;function La(){if(fa)return gr;fa=1;function e(r){return r}return gr=e,gr}var br,va;function Un(){if(va)return br;va=1;function e(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}return br=e,br}var yr,_a;function Nn(){if(_a)return yr;_a=1;var e=Un(),r=Math.max;function t(a,n,i){return n=r(n===void 0?a.length-1:n,0),function(){for(var u=arguments,s=-1,o=r(u.length-n,0),c=Array(o);++s<o;)c[s]=u[n+s];s=-1;for(var f=Array(n+1);++s<n;)f[s]=u[s];return f[n]=i(c),e(a,this,f)}}return yr=t,yr}var qr,ha;function Kn(){if(ha)return qr;ha=1;function e(r){return function(){return r}}return qr=e,qr}var Cr,la;function Vn(){if(la)return Cr;la=1;var e=Kn(),r=Ta(),t=La(),a=r?function(n,i){return r(n,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:t;return Cr=a,Cr}var Rr,da;function kn(){if(da)return Rr;da=1;var e=800,r=16,t=Date.now;function a(n){var i=0,u=0;return function(){var s=t(),o=r-(s-u);if(u=s,o>0){if(++i>=e)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}return Rr=a,Rr}var Or,pa;function zn(){if(pa)return Or;pa=1;var e=Vn(),r=kn(),t=r(e);return Or=t,Or}var Tr,ga;function $n(){if(ga)return Tr;ga=1;var e=La(),r=Nn(),t=zn();function a(n,i){return t(r(n,i,e),n+"")}return Tr=a,Tr}var jr,ba;function Jn(){if(ba)return jr;ba=1;var e=D(),r=xr(),t=Ga(),a=T();function n(i,u,s){if(!a(s))return!1;var o=typeof u;return(o=="number"?r(s)&&t(u,s.length):o=="string"&&u in s)?e(s[u],i):!1}return jr=n,jr}var Ar,ya;function Xn(){if(ya)return Ar;ya=1;var e=$n(),r=Jn();function t(a){return e(function(n,i){var u=-1,s=i.length,o=s>1?i[s-1]:void 0,c=s>2?i[2]:void 0;for(o=a.length>3&&typeof o=="function"?(s--,o):void 0,c&&r(i[0],i[1],c)&&(o=s<3?void 0:o,s=1),n=Object(n);++u<s;){var f=i[u];f&&a(n,f,u,o)}return n})}return Ar=t,Ar}var Ir,qa;function Wn(){if(qa)return Ir;qa=1;var e=Bn(),r=Xn(),t=r(function(a,n,i){e(a,n,i)});return Ir=t,Ir}var Yn=Wn();const Zn=m.getDefaultExportFromCjs(Yn);exports.merge=Zn;
@@ -1 +1 @@
1
- "use strict";require("react");require("./components.cjs");require("./hooks.cjs");require("./providers.cjs");require("./services-action-DBOzfgMl.cjs");require("./services-human-BTPVJl80.cjs");require("./services.cjs");require("./types.cjs");require("./utils-cn-FIKrq5Mb.cjs");require("./utils-conversion-DP8LonZS.cjs");require("./utils-memo-BJJP2KfI.cjs");require("./utils-parameters-dwKmz1VU.cjs");require("./utils-text-lORqO4uI.cjs");var r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=r;exports.getDefaultExportFromCjs=o;
1
+ "use strict";require("react");require("./components.cjs");require("./hooks.cjs");require("./providers.cjs");require("./services-action-DBOzfgMl.cjs");require("./services-human-DFPelsei.cjs");require("./services.cjs");require("./types.cjs");require("./utils-cn-FIKrq5Mb.cjs");require("./utils-conversion-DFO1UVSN.cjs");require("./utils-memo-BJJP2KfI.cjs");require("./utils-parameters-dwKmz1VU.cjs");require("./utils-text-lORqO4uI.cjs");var r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=r;exports.getDefaultExportFromCjs=o;
@@ -3,11 +3,11 @@ import "./components.js";
3
3
  import "./hooks.js";
4
4
  import "./providers.js";
5
5
  import "./services-action-CfZFwhy-.js";
6
- import "./services-human-BFuIf4vd.js";
6
+ import "./services-human-D5IllQkM.js";
7
7
  import "./services.js";
8
8
  import "./types.js";
9
9
  import "./utils-cn-CgdSr4hO.js";
10
- import "./utils-conversion-DSzF0R3j.js";
10
+ import "./utils-conversion-BQfLNP0g.js";
11
11
  import "./utils-memo-DtXdOqCT.js";
12
12
  import "./utils-parameters-DkefNhWo.js";
13
13
  import "./utils-text-CN3zLiZ7.js";
@@ -1,7 +1,7 @@
1
1
  import { j as oe } from "./react-jsx-runtime-vendor-OVHDjVDe.js";
2
2
  import { createContext as ae, memo as ce, useEffect as y, useLayoutEffect as ue, useState as de, useCallback as le, useMemo as p, isValidElement as he, cloneElement as k, useContext as ge } from "react";
3
- import { c as fe } from "./dnd-core-vendor-Dl2_2nro.js";
4
- import { e as pe } from "./vendor-2NwaL0dE.js";
3
+ import { c as fe } from "./dnd-core-vendor-BvkN08kD.js";
4
+ import { e as pe } from "./vendor-BSFJsa1P.js";
5
5
  const X = ae({
6
6
  dragDropManager: void 0
7
7
  });
@@ -1,2 +1,2 @@
1
- "use strict";const ie=require("./react-jsx-runtime-vendor-Dszzpdy0.cjs"),d=require("react"),se=require("./dnd-core-vendor-JZjD_Td8.cjs"),oe=require("./vendor-vQ2gqPbn.cjs"),U=d.createContext({dragDropManager:void 0});function m(r,e,...t){if(ae()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;i=new Error(e.replace(/%s/g,function(){return t[n++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function ae(){return typeof process<"u"&&process.env.NODE_ENV==="production"}const k=typeof global<"u"?global:self,Y=k.MutationObserver||k.WebKitMutationObserver;function X(r){return function(){const t=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(t),clearInterval(i),r()}}}function ce(r){let e=1;const t=new Y(r),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}const ue=typeof Y=="function"?ce:X;class de{enqueueTask(e){const{queue:t,requestFlush:i}=this;t.length||(i(),this.flushing=!0),t[t.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 t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let i=0,n=e.length-this.index;i<n;i++)e[i]=e[i+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=ue(this.flush),this.requestErrorThrow=X(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class le{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class he{create(e){const t=this.freeTasks,i=t.length?t.pop():new le(this.onError,n=>t[t.length]=n);return i.task=e,i}constructor(e){this.onError=e,this.freeTasks=[]}}const z=new de,ge=new he(z.registerPendingError);function fe(r){z.enqueueTask(ge.create(r))}function pe(r,e){if(r==null)return{};var t=ve(r,e),i,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function ve(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,s;for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}let _=0;const E=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var De=d.memo(function(e){var{children:t}=e,i=pe(e,["children"]);const[n,s]=me(i);return d.useEffect(()=>{if(s){const a=V();return++_,()=>{--_===0&&(a[E]=null)}}},[]),ie.jsxRuntimeExports.jsx(U.Provider,{value:n,children:t})});function me(r){if("manager"in r)return[{dragDropManager:r.manager},!1];const e=Te(r.backend,r.context,r.options,r.debugMode),t=!r.context;return[e,t]}function Te(r,e=V(),t,i){const n=e;return n[E]||(n[E]={dragDropManager:se.createDragDropManager(r,e,t,i)}),n[E]}function V(){return typeof global<"u"?global:window}const I=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Ie(r,e,t){const[i,n]=d.useState(()=>e(r)),s=d.useCallback(()=>{const a=e(r);oe.equal(i,a)||(n(a),t&&t())},[i,r,t]);return I(s),[i,s]}function Se(r,e,t){const[i,n]=Ie(r,e,t);return I(function(){const a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(n,{handlerIds:[a]})},[r,n]),i}function W(r,e,t){return Se(e,r||(()=>({})),()=>t.reconnect())}function B(r,e){const t=[];return typeof r!="function"&&t.push(r),d.useMemo(()=>typeof r=="function"?r():r,t)}function Ce(r){return d.useMemo(()=>r.hooks.dragSource(),[r])}function Oe(r){return d.useMemo(()=>r.hooks.dragPreview(),[r])}let y=!1,b=!1;class we{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){m(!y,"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 y=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{y=!1}}isDragging(){if(!this.sourceId)return!1;m(!b,"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 b=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{b=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let P=!1;class Ee{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;m(!P,"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 P=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{P=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function ye(r,e,t){const i=t.getRegistry(),n=i.addTarget(r,e);return[n,()=>i.removeTarget(n)]}function be(r,e,t){const i=t.getRegistry(),n=i.addSource(r,e);return[n,()=>i.removeSource(n)]}function x(r,e,t,i){let n;if(n!==void 0)return!!n;if(r===e)return!0;if(typeof r!="object"||!r||typeof e!="object"||!e)return!1;const s=Object.keys(r),a=Object.keys(e);if(s.length!==a.length)return!1;const o=Object.prototype.hasOwnProperty.bind(e);for(let u=0;u<s.length;u++){const l=s[u];if(!o(l))return!1;const h=r[l],g=e[l];if(n=void 0,n===!1||n===void 0&&h!==g)return!1}return!0}function L(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function Pe(r){if(typeof r.type=="string")return;const e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function Ne(r){return(e=null,t=null)=>{if(!d.isValidElement(e)){const s=e;return r(s,t),s}const i=e;return Pe(i),Me(i,t?s=>r(s,t):r)}}function K(r){const e={};return Object.keys(r).forEach(t=>{const i=r[t];if(t.endsWith("Ref"))e[t]=r[t];else{const n=Ne(i);e[t]=()=>n}}),e}function F(r,e){typeof r=="function"?r(e):r.current=e}function Me(r,e){const t=r.ref;return m(typeof t!="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"),t?d.cloneElement(r,{ref:i=>{F(t,i),F(e,i)}}):d.cloneElement(r,{ref:e})}class xe{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!x(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!x(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=K({dragSource:(t,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,L(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,L(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Le{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!x(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=K({dropTarget:(t,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,L(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function S(){const{dragDropManager:r}=d.useContext(U);return m(r!=null,"Expected drag drop context"),r}function Re(r,e){const t=S(),i=d.useMemo(()=>new xe(t.getBackend()),[t]);return I(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),I(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function He(){const r=S();return d.useMemo(()=>new we(r),[r])}class ke{beginDrag(){const e=this.spec,t=this.monitor;let i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(t):i={},i??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const i=this.spec,n=this.monitor,{isDragging:s}=i;return s?s(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,i=this.connector,{end:n}=e;n&&n(t.getItem(),t),i.reconnect()}constructor(e,t,i){this.spec=e,this.monitor=t,this.connector=i}}function _e(r,e,t){const i=d.useMemo(()=>new ke(r,e,t),[e,t]);return d.useEffect(()=>{i.spec=r},[r]),i}function Fe(r){return d.useMemo(()=>{const e=r.type;return m(e!=null,"spec.type must be defined"),e},[r])}function qe(r,e,t){const i=S(),n=_e(r,e,t),s=Fe(r);I(function(){if(s!=null){const[o,u]=be(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u}},[i,e,t,n,s])}function Ae(r,e){const t=B(r);m(!t.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)");const i=He(),n=Re(t.options,t.previewOptions);return qe(t,i,n),[W(t.collect,i,n),Ce(n),Oe(n)]}function je(r){return d.useMemo(()=>r.hooks.dropTarget(),[r])}function Ue(r){const e=S(),t=d.useMemo(()=>new Le(e.getBackend()),[e]);return I(()=>(t.dropTargetOptions=r||null,t.reconnect(),()=>t.disconnectDropTarget()),[r]),t}function Ye(){const r=S();return d.useMemo(()=>new Ee(r),[r])}function Xe(r){const{accept:e}=r;return d.useMemo(()=>(m(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class ze{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Ve(r,e){const t=d.useMemo(()=>new ze(r,e),[e]);return d.useEffect(()=>{t.spec=r},[r]),t}function We(r,e,t){const i=S(),n=Ve(r,e),s=Xe(r);I(function(){const[o,u]=ye(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u},[i,e,n,t,s.map(a=>a.toString()).join("|")])}function Be(r,e){const t=B(r),i=Ye(),n=Ue(t.options);return We(t,i,n),[W(t.collect,i,n),je(n)]}function G(r){let e=null;return()=>(e==null&&(e=r()),e)}function Ke(r,e){return r.filter(t=>t!==e)}function Ge(r,e){const t=new Set,i=s=>t.add(s);r.forEach(i),e.forEach(i);const n=[];return t.forEach(s=>n.push(s)),n}class $e{enter(e){const t=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(e));return this.entered=Ge(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=Ke(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Qe{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(t[i]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const $="__NATIVE_FILE__",Q="__NATIVE_URL__",J="__NATIVE_TEXT__",Z="__NATIVE_HTML__",q=Object.freeze(Object.defineProperty({__proto__:null,FILE:$,HTML:Z,TEXT:J,URL:Q},Symbol.toStringTag,{value:"Module"}));function N(r,e,t){const i=e.reduce((n,s)=>n||r.getData(s),"");return i??t}const R={[$]:{exposeProperties:{files:r=>Array.prototype.slice.call(r.files),items:r=>r.items,dataTransfer:r=>r},matchesTypes:["Files"]},[Z]:{exposeProperties:{html:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Html","text/html"]},[Q]:{exposeProperties:{urls:(r,e)=>N(r,e,"").split(`
1
+ "use strict";const ie=require("./react-jsx-runtime-vendor-Dszzpdy0.cjs"),d=require("react"),se=require("./dnd-core-vendor-Dpm8Ha_h.cjs"),oe=require("./vendor-DeYnrakH.cjs"),U=d.createContext({dragDropManager:void 0});function m(r,e,...t){if(ae()&&e===void 0)throw new Error("invariant requires an error message argument");if(!r){let i;if(e===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;i=new Error(e.replace(/%s/g,function(){return t[n++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}}function ae(){return typeof process<"u"&&process.env.NODE_ENV==="production"}const k=typeof global<"u"?global:self,Y=k.MutationObserver||k.WebKitMutationObserver;function X(r){return function(){const t=setTimeout(n,0),i=setInterval(n,50);function n(){clearTimeout(t),clearInterval(i),r()}}}function ce(r){let e=1;const t=new Y(r),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}const ue=typeof Y=="function"?ce:X;class de{enqueueTask(e){const{queue:t,requestFlush:i}=this;t.length||(i(),this.flushing=!0),t[t.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 t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let i=0,n=e.length-this.index;i<n;i++)e[i]=e[i+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=ue(this.flush),this.requestErrorThrow=X(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class le{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}class he{create(e){const t=this.freeTasks,i=t.length?t.pop():new le(this.onError,n=>t[t.length]=n);return i.task=e,i}constructor(e){this.onError=e,this.freeTasks=[]}}const z=new de,ge=new he(z.registerPendingError);function fe(r){z.enqueueTask(ge.create(r))}function pe(r,e){if(r==null)return{};var t=ve(r,e),i,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)i=s[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function ve(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,s;for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}let _=0;const E=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var De=d.memo(function(e){var{children:t}=e,i=pe(e,["children"]);const[n,s]=me(i);return d.useEffect(()=>{if(s){const a=V();return++_,()=>{--_===0&&(a[E]=null)}}},[]),ie.jsxRuntimeExports.jsx(U.Provider,{value:n,children:t})});function me(r){if("manager"in r)return[{dragDropManager:r.manager},!1];const e=Te(r.backend,r.context,r.options,r.debugMode),t=!r.context;return[e,t]}function Te(r,e=V(),t,i){const n=e;return n[E]||(n[E]={dragDropManager:se.createDragDropManager(r,e,t,i)}),n[E]}function V(){return typeof global<"u"?global:window}const I=typeof window<"u"?d.useLayoutEffect:d.useEffect;function Ie(r,e,t){const[i,n]=d.useState(()=>e(r)),s=d.useCallback(()=>{const a=e(r);oe.equal(i,a)||(n(a),t&&t())},[i,r,t]);return I(s),[i,s]}function Se(r,e,t){const[i,n]=Ie(r,e,t);return I(function(){const a=r.getHandlerId();if(a!=null)return r.subscribeToStateChange(n,{handlerIds:[a]})},[r,n]),i}function W(r,e,t){return Se(e,r||(()=>({})),()=>t.reconnect())}function B(r,e){const t=[];return typeof r!="function"&&t.push(r),d.useMemo(()=>typeof r=="function"?r():r,t)}function Ce(r){return d.useMemo(()=>r.hooks.dragSource(),[r])}function Oe(r){return d.useMemo(()=>r.hooks.dragPreview(),[r])}let y=!1,b=!1;class we{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){m(!y,"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 y=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{y=!1}}isDragging(){if(!this.sourceId)return!1;m(!b,"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 b=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{b=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let P=!1;class Ee{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;m(!P,"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 P=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{P=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function ye(r,e,t){const i=t.getRegistry(),n=i.addTarget(r,e);return[n,()=>i.removeTarget(n)]}function be(r,e,t){const i=t.getRegistry(),n=i.addSource(r,e);return[n,()=>i.removeSource(n)]}function x(r,e,t,i){let n;if(n!==void 0)return!!n;if(r===e)return!0;if(typeof r!="object"||!r||typeof e!="object"||!e)return!1;const s=Object.keys(r),a=Object.keys(e);if(s.length!==a.length)return!1;const o=Object.prototype.hasOwnProperty.bind(e);for(let u=0;u<s.length;u++){const l=s[u];if(!o(l))return!1;const h=r[l],g=e[l];if(n=void 0,n===!1||n===void 0&&h!==g)return!1}return!0}function L(r){return r!==null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function Pe(r){if(typeof r.type=="string")return;const e=r.type.displayName||r.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function Ne(r){return(e=null,t=null)=>{if(!d.isValidElement(e)){const s=e;return r(s,t),s}const i=e;return Pe(i),Me(i,t?s=>r(s,t):r)}}function K(r){const e={};return Object.keys(r).forEach(t=>{const i=r[t];if(t.endsWith("Ref"))e[t]=r[t];else{const n=Ne(i);e[t]=()=>n}}),e}function F(r,e){typeof r=="function"?r(e):r.current=e}function Me(r,e){const t=r.ref;return m(typeof t!="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"),t?d.cloneElement(r,{ref:i=>{F(t,i),F(e,i)}}):d.cloneElement(r,{ref:e})}class xe{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,i=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(i&&this.disconnectDragPreview(),!!this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!x(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!x(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=K({dragSource:(t,i)=>{this.clearDragSource(),this.dragSourceOptions=i||null,L(t)?this.dragSourceRef=t:this.dragSourceNode=t,this.reconnectDragSource()},dragPreview:(t,i)=>{this.clearDragPreview(),this.dragPreviewOptions=i||null,L(t)?this.dragPreviewRef=t:this.dragPreviewNode=t,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class Le{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!x(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=K({dropTarget:(t,i)=>{this.clearDropTarget(),this.dropTargetOptions=i,L(t)?this.dropTargetRef=t:this.dropTargetNode=t,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function S(){const{dragDropManager:r}=d.useContext(U);return m(r!=null,"Expected drag drop context"),r}function Re(r,e){const t=S(),i=d.useMemo(()=>new xe(t.getBackend()),[t]);return I(()=>(i.dragSourceOptions=r||null,i.reconnect(),()=>i.disconnectDragSource()),[i,r]),I(()=>(i.dragPreviewOptions=e||null,i.reconnect(),()=>i.disconnectDragPreview()),[i,e]),i}function He(){const r=S();return d.useMemo(()=>new we(r),[r])}class ke{beginDrag(){const e=this.spec,t=this.monitor;let i=null;return typeof e.item=="object"?i=e.item:typeof e.item=="function"?i=e.item(t):i={},i??null}canDrag(){const e=this.spec,t=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(t):!0}isDragging(e,t){const i=this.spec,n=this.monitor,{isDragging:s}=i;return s?s(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,i=this.connector,{end:n}=e;n&&n(t.getItem(),t),i.reconnect()}constructor(e,t,i){this.spec=e,this.monitor=t,this.connector=i}}function _e(r,e,t){const i=d.useMemo(()=>new ke(r,e,t),[e,t]);return d.useEffect(()=>{i.spec=r},[r]),i}function Fe(r){return d.useMemo(()=>{const e=r.type;return m(e!=null,"spec.type must be defined"),e},[r])}function qe(r,e,t){const i=S(),n=_e(r,e,t),s=Fe(r);I(function(){if(s!=null){const[o,u]=be(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u}},[i,e,t,n,s])}function Ae(r,e){const t=B(r);m(!t.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)");const i=He(),n=Re(t.options,t.previewOptions);return qe(t,i,n),[W(t.collect,i,n),Ce(n),Oe(n)]}function je(r){return d.useMemo(()=>r.hooks.dropTarget(),[r])}function Ue(r){const e=S(),t=d.useMemo(()=>new Le(e.getBackend()),[e]);return I(()=>(t.dropTargetOptions=r||null,t.reconnect(),()=>t.disconnectDropTarget()),[r]),t}function Ye(){const r=S();return d.useMemo(()=>new Ee(r),[r])}function Xe(r){const{accept:e}=r;return d.useMemo(()=>(m(r.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class ze{canDrop(){const e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function Ve(r,e){const t=d.useMemo(()=>new ze(r,e),[e]);return d.useEffect(()=>{t.spec=r},[r]),t}function We(r,e,t){const i=S(),n=Ve(r,e),s=Xe(r);I(function(){const[o,u]=ye(s,n,i);return e.receiveHandlerId(o),t.receiveHandlerId(o),u},[i,e,n,t,s.map(a=>a.toString()).join("|")])}function Be(r,e){const t=B(r),i=Ye(),n=Ue(t.options);return We(t,i,n),[W(t.collect,i,n),je(n)]}function G(r){let e=null;return()=>(e==null&&(e=r()),e)}function Ke(r,e){return r.filter(t=>t!==e)}function Ge(r,e){const t=new Set,i=s=>t.add(s);r.forEach(i),e.forEach(i);const n=[];return t.forEach(s=>n.push(s)),n}class $e{enter(e){const t=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(e));return this.entered=Ge(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=Ke(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Qe{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(t[i]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const $="__NATIVE_FILE__",Q="__NATIVE_URL__",J="__NATIVE_TEXT__",Z="__NATIVE_HTML__",q=Object.freeze(Object.defineProperty({__proto__:null,FILE:$,HTML:Z,TEXT:J,URL:Q},Symbol.toStringTag,{value:"Module"}));function N(r,e,t){const i=e.reduce((n,s)=>n||r.getData(s),"");return i??t}const R={[$]:{exposeProperties:{files:r=>Array.prototype.slice.call(r.files),items:r=>r.items,dataTransfer:r=>r},matchesTypes:["Files"]},[Z]:{exposeProperties:{html:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Html","text/html"]},[Q]:{exposeProperties:{urls:(r,e)=>N(r,e,"").split(`
2
2
  `),dataTransfer:r=>r},matchesTypes:["Url","text/uri-list"]},[J]:{exposeProperties:{text:(r,e)=>N(r,e,""),dataTransfer:r=>r},matchesTypes:["Text","text/plain"]}};function Je(r,e){const t=R[r];if(!t)throw new Error(`native type ${r} has no configuration`);const i=new Qe(t);return i.loadDataTransfer(e),i}function M(r){if(!r)return null;const e=Array.prototype.slice.call(r.types||[]);return Object.keys(R).filter(t=>{const i=R[t];return i?.matchesTypes?i.matchesTypes.some(n=>e.indexOf(n)>-1):!1})[0]||null}const Ze=G(()=>/firefox/i.test(navigator.userAgent)),ee=G(()=>!!window.safari);class A{interpolate(e){const{xs:t,ys:i,c1s:n,c2s:s,c3s:a}=this;let o=t.length-1;if(e===t[o])return i[o];let u=0,l=a.length-1,h;for(;u<=l;){h=Math.floor(.5*(u+l));const c=t[h];if(c<e)u=h+1;else if(c>e)l=h-1;else return i[h]}o=Math.max(0,l);const g=e-t[o],f=g*g;return i[o]+n[o]*g+s[o]*f+a[o]*g*f}constructor(e,t){const{length:i}=e,n=[];for(let c=0;c<i;c++)n.push(c);n.sort((c,p)=>e[c]<e[p]?-1:1);const s=[],a=[];let o,u;for(let c=0;c<i-1;c++)o=e[c+1]-e[c],u=t[c+1]-t[c],s.push(o),a.push(u/o);const l=[a[0]];for(let c=0;c<s.length-1;c++){const p=a[c],v=a[c+1];if(p*v<=0)l.push(0);else{o=s[c];const D=s[c+1],T=o+D;l.push(3*T/((T+D)/p+(T+o)/v))}}l.push(a[a.length-1]);const h=[],g=[];let f;for(let c=0;c<l.length-1;c++){f=a[c];const p=l[c],v=1/s[c],D=p+l[c+1]-f-f;h.push((f-p-D)*v),g.push(D*v*v)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=h,this.c3s=g}}const et=1;function te(r){const e=r.nodeType===et?r:r.parentElement;if(!e)return null;const{top:t,left:i}=e.getBoundingClientRect();return{x:i,y:t}}function w(r){return{x:r.clientX,y:r.clientY}}function tt(r){var e;return r.nodeName==="IMG"&&(Ze()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(r)))}function rt(r,e,t,i){let n=r?e.width:t,s=r?e.height:i;return ee()&&r&&(s/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:s}}function nt(r,e,t,i,n){const s=tt(e),o=te(s?r:e),u={x:t.x-o.x,y:t.y-o.y},{offsetWidth:l,offsetHeight:h}=r,{anchorX:g,anchorY:f}=i,{dragPreviewWidth:c,dragPreviewHeight:p}=rt(s,e,l,h),v=()=>{let H=new A([0,.5,1],[u.y,u.y/h*p,u.y+p-h]).interpolate(f);return ee()&&s&&(H+=(window.devicePixelRatio-1)*p),H},D=()=>new A([0,.5,1],[u.x,u.x/l*c,u.x+c-l]).interpolate(g),{offsetX:T,offsetY:C}=n,O=T===0||T,re=C===0||C;return{x:O?T:D(),y:re?C:v()}}class it{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function st(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.forEach(function(n){st(r,n,t[n])})}return r}class ot{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,i){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,i);const n=a=>this.handleDragStart(a,e),s=a=>this.handleSelectStart(a);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const i=a=>this.handleDragEnter(a,e),n=a=>this.handleDragOver(a,e),s=a=>this.handleDrop(a,e);return t.addEventListener("dragenter",i),t.addEventListener("dragover",n),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",i),t.removeEventListener("dragover",n),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return j({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return j({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(q).some(t=>q[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Je(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{const s=this.sourceNodes.get(n);return s&&te(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{const n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const a=w(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:o}=n,u=M(o);if(this.monitor.isDragging()){if(o&&typeof o.setDragImage=="function"){const h=this.monitor.getSourceId(),g=this.sourceNodes.get(h),f=this.sourcePreviewNodes.get(h)||g;if(f){const{anchorX:c,anchorY:p,offsetX:v,offsetY:D}=this.getCurrentSourcePreviewNodeOptions(),O=nt(g,f,a,{anchorX:c,anchorY:p},{offsetX:v,offsetY:D});o.setDragImage(f,O.x,O.y)}}try{o?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(o&&!o.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;const{dataTransfer:o}=n,u=M(o);u&&this.beginDragNativeItem(u,o)},this.handleTopDragEnter=n=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=n.altKey,s.length>0&&this.actions.hover(s,{clientOffset:w(n)}),s.some(o=>this.monitor.canDropOnTarget(o))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=w(n),this.scheduleHover(s),(s||[]).some(o=>this.monitor.canDropOnTarget(o))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;n.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(n.dataTransfer)}else M(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:w(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{const s=n.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(n.preventDefault(),s.dragDrop()))},this.options=new it(t,i),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new $e(this.isNodeInDocument)}}const at=function(e,t,i){return new ot(e,t,i)};exports.DndProvider=De;exports.HTML5Backend=at;exports.asap=fe;exports.invariant=m;exports.useDrag=Ae;exports.useDrop=Be;
@@ -4,7 +4,7 @@ import { _ as ee, a as D, b as f, c as jt, d as me, e as x, f as Ut, g as Qt, h
4
4
  import { j as A, c as gt, k as qt } from "./emotion-react-vendor-CSrsXjBq.js";
5
5
  import { createPortal as en } from "react-dom";
6
6
  import { a as tn } from "./floating-ui-vendor-BcB50aec.js";
7
- import { i as Je, g as nn } from "./vendor-2NwaL0dE.js";
7
+ import { i as Je, g as nn } from "./vendor-BSFJsa1P.js";
8
8
  import { useTheme as bt, useFormControl as un, useMultiStyleConfig as ae, Box as L, useColorModeValue as Qe, MenuIcon as an, chakra as ze, Menu as on, Spinner as rn, Divider as ln, useStyleConfig as sn, useBreakpointValue as cn, Icon as ke } from "@chakra-ui/react";
9
9
  import { j as S } from "./react-jsx-runtime-vendor-OVHDjVDe.js";
10
10
  var dn = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];