quantum-component-library 1.4.45-qa.9 → 1.4.47-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.
- package/dist/components/copy-activity-form/index.d.ts +6 -4
- package/dist/components.cjs +1 -13
- package/dist/components.js +1292 -1175
- package/dist/{dnd-core-vendor-xRlmIagQ.cjs → dnd-core-vendor-2Ve0kqUN.cjs} +1 -1
- package/dist/{dnd-core-vendor-ewNS-_6P.js → dnd-core-vendor-CErAmYu_.js} +2 -2
- package/dist/emotion-react-vendor-CHdBBD18.cjs +1 -0
- package/dist/emotion-react-vendor-CSrsXjBq.js +81 -0
- package/dist/emotion-vendor-D6PQH2K8.cjs +1 -0
- package/dist/emotion-vendor-DNnoMT20.js +546 -0
- package/dist/generated/gql.d.ts +5 -0
- package/dist/generated/graphql.d.ts +19 -0
- package/dist/{generated-ChsGaiYd.cjs → generated-B5QGMyhw.cjs} +1 -1
- package/dist/{generated-GfcSQz21.js → generated-esGwfMXj.js} +21 -20
- package/dist/graphql/mutations/actions.d.ts +3 -0
- package/dist/{graphql-DiUes2Np.js → graphql-CZIf58Fd.js} +37 -30
- package/dist/{graphql-CqPvuCvr.cjs → graphql-KvyVlavd.cjs} +18 -12
- package/dist/graphql-vendor-BWnD0b-j.js +1285 -0
- package/dist/graphql-vendor-CL0XsjHb.cjs +19 -0
- package/dist/hoist-non-react-statics-vendor-C5vG1oEE.cjs +1 -0
- package/dist/hoist-non-react-statics-vendor-DJU3S3cV.js +68 -0
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +11 -12
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +8 -8
- package/dist/quantum-component-library.css +1 -1
- package/dist/react-dnd-vendor-BPzSDojS.cjs +2 -0
- package/dist/{react-dnd-vendor-D7sre4BN.js → react-dnd-vendor-D4nn9Mqx.js} +3 -3
- package/dist/react-is-vendor-CosIbvzW.cjs +15 -0
- package/dist/react-is-vendor-DpFLFzFZ.js +174 -0
- package/dist/{react-select-vendor-BlikzKjV.cjs → react-select-vendor-BPaBUHFp.cjs} +1 -1
- package/dist/{react-select-vendor-D_4gQlHN.js → react-select-vendor-C_DuqfB7.js} +3 -3
- package/dist/stylis-vendor-CdCMw5Aa.js +334 -0
- package/dist/stylis-vendor-DzcTLVj9.cjs +1 -0
- package/dist/{vendor-DC_iiTML.js → tailwind-vendor-B4y94WzT.js} +477 -1349
- package/dist/tailwind-vendor-C0M23-WD.cjs +1 -0
- package/dist/types.cjs +1 -1
- package/dist/types.js +1 -1
- package/dist/ufuzzy-vendor-7qHa_k39.cjs +1 -0
- package/dist/ufuzzy-vendor-Dl0ZI6Av.js +456 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +8 -8
- package/dist/vendor-BjLvygDR.cjs +1 -0
- package/dist/vendor-VALJ9W3p.js +526 -0
- package/package.json +8 -13
- package/dist/graphql-vendor-BfLpwsFp.cjs +0 -14
- package/dist/graphql-vendor-CLcjksUW.js +0 -669
- package/dist/react-dnd-vendor-8KALuSw2.cjs +0 -2
- package/dist/styled-components-vendor-Bvwhddj9.js +0 -1154
- package/dist/styled-components-vendor-D09ATioU.cjs +0 -60
- package/dist/vendor-BTmhipxH.cjs +0 -1
- /package/dist/{other-react-vendor-Dszzpdy0.cjs → react-jsx-runtime-vendor-Dszzpdy0.cjs} +0 -0
- /package/dist/{other-react-vendor-OVHDjVDe.js → react-jsx-runtime-vendor-OVHDjVDe.js} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";const c=require("./vendor-BjLvygDR.cjs"),Ee=require("react");function Ne(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const q=Ne(Ee);var xe={OPERATION_DEFINITION:"OperationDefinition"};class ne extends Error{constructor(t,r,n,i,a,o,v){super(t),this.name="GraphQLError",this.message=t,a&&(this.path=a),r&&(this.nodes=Array.isArray(r)?r:[r]),n&&(this.source=n),i&&(this.positions=i),o&&(this.originalError=o);var h=v;if(!h&&o){var k=o.extensions;k&&typeof k=="object"&&(h=k)}this.extensions=h||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var l,s;function C(e){return new ne(`Syntax Error: Unexpected token at ${s} in ${e}`)}function le(e){if(e.lastIndex=s,e.test(l))return l.slice(s,s=e.lastIndex)}var Q=/ +(?=[^\s])/y;function Se(e){for(var t=e.split(`
|
|
2
|
+
`),r="",n=0,i=0,a=t.length-1,o=0;o<t.length;o++)Q.lastIndex=0,Q.test(t[o])&&(o&&(!n||Q.lastIndex<n)&&(n=Q.lastIndex),i=i||o,a=o);for(var v=i;v<=a;v++)v!==i&&(r+=`
|
|
3
|
+
`),r+=t[v].slice(n).replace(/\\"""/g,'"""');return r}function x(){for(var e=0|l.charCodeAt(s++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|l.charCodeAt(s++))if(e===35)for(;(e=0|l.charCodeAt(s++))&&e!==10&&e!==13;);s--}function oe(){for(var e=s,t=0|l.charCodeAt(s++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|l.charCodeAt(s++));if(e===s-1)throw C("Name");var r=l.slice(e,--s);return x(),r}function V(){return{kind:"Name",value:oe()}}var Ce=/(?:"""|(?:[\s\S]*?[^\\])""")/y,De=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function $(e){var t;switch(l.charCodeAt(s)){case 91:s++,x();for(var r=[];l.charCodeAt(s)!==93;)r.push($(e));return s++,x(),{kind:"ListValue",values:r};case 123:s++,x();for(var n=[];l.charCodeAt(s)!==125;){var i=V();if(l.charCodeAt(s++)!==58)throw C("ObjectField");x(),n.push({kind:"ObjectField",name:i,value:$(e)})}return s++,x(),{kind:"ObjectValue",fields:n};case 36:if(e)throw C("Variable");return s++,{kind:"Variable",name:V()};case 34:if(l.charCodeAt(s+1)===34&&l.charCodeAt(s+2)===34){if(s+=3,(t=le(Ce))==null)throw C("StringValue");return x(),{kind:"StringValue",value:Se(t.slice(0,-3)),block:!0}}else{var a=s,o;s++;var v=!1;for(o=0|l.charCodeAt(s++);o===92&&(s++,v=!0)||o!==10&&o!==13&&o!==34&&o;o=0|l.charCodeAt(s++));if(o!==34)throw C("StringValue");return t=l.slice(a,s),x(),{kind:"StringValue",value:v?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 h=s++,k;(k=0|l.charCodeAt(s++))>=48&&k<=57;);var y=l.slice(h,--s);if((k=l.charCodeAt(s))===46||k===69||k===101){if((t=le(De))==null)throw C("FloatValue");return x(),{kind:"FloatValue",value:y+t}}else return x(),{kind:"IntValue",value:y};case 110:if(l.charCodeAt(s+1)===117&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===108)return s+=4,x(),{kind:"NullValue"};break;case 116:if(l.charCodeAt(s+1)===114&&l.charCodeAt(s+2)===117&&l.charCodeAt(s+3)===101)return s+=4,x(),{kind:"BooleanValue",value:!0};break;case 102:if(l.charCodeAt(s+1)===97&&l.charCodeAt(s+2)===108&&l.charCodeAt(s+3)===115&&l.charCodeAt(s+4)===101)return s+=5,x(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:oe()}}function be(e){if(l.charCodeAt(s)===40){var t=[];s++,x();do{var r=V();if(l.charCodeAt(s++)!==58)throw C("Argument");x(),t.push({kind:"Argument",name:r,value:$(e)})}while(l.charCodeAt(s)!==41);return s++,x(),t}}function I(e){if(l.charCodeAt(s)===64){var t=[];do s++,t.push({kind:"Directive",name:V(),arguments:be(e)});while(l.charCodeAt(s)===64);return t}}function _e(){for(var e=0;l.charCodeAt(s)===91;)e++,s++,x();var t={kind:"NamedType",name:V()};do if(l.charCodeAt(s)===33&&(s++,x(),t={kind:"NonNullType",type:t}),e){if(l.charCodeAt(s++)!==93)throw C("NamedType");x(),t={kind:"ListType",type:t}}while(e--);return t}function G(){if(l.charCodeAt(s++)!==123)throw C("SelectionSet");return x(),U()}function U(){var e=[];do if(l.charCodeAt(s)===46){if(l.charCodeAt(++s)!==46||l.charCodeAt(++s)!==46)throw C("SelectionSet");switch(s++,x(),l.charCodeAt(s)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:I(!1),selectionSet:G()});break;case 111:l.charCodeAt(s+1)===110?(s+=2,x(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()})):e.push({kind:"FragmentSpread",name:V(),directives:I(!1)});break;case 123:s++,x(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:U()});break;default:e.push({kind:"FragmentSpread",name:V(),directives:I(!1)})}}else{var t=V(),r=void 0;l.charCodeAt(s)===58&&(s++,x(),r=t,t=V());var n=be(!1),i=I(!1),a=void 0;l.charCodeAt(s)===123&&(s++,x(),a=U()),e.push({kind:"Field",alias:r,name:t,arguments:n,directives:i,selectionSet:a})}while(l.charCodeAt(s)!==125);return s++,x(),{kind:"SelectionSet",selections:e}}function qe(){if(x(),l.charCodeAt(s)===40){var e=[];s++,x();do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s++)!==36)throw C("Variable");var r=V();if(l.charCodeAt(s++)!==58)throw C("VariableDefinition");x();var n=_e(),i=void 0;l.charCodeAt(s)===61&&(s++,x(),i=$(!0)),x();var a={kind:"VariableDefinition",variable:{kind:"Variable",name:r},type:n,defaultValue:i,directives:I(!0)};t&&(a.description=t),e.push(a)}while(l.charCodeAt(s)!==41);return s++,x(),e}}function Ve(e){var t=V();if(l.charCodeAt(s++)!==111||l.charCodeAt(s++)!==110)throw C("FragmentDefinition");x();var r={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:V()},directives:I(!1),selectionSet:G()};return e&&(r.description=e),r}function fe(){var e=[];do{var t=void 0;if(l.charCodeAt(s)===34&&(t=$(!0)),l.charCodeAt(s)===123){if(t)throw C("Document");s++,x(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:U()})}else{var r=oe();switch(r){case"fragment":e.push(Ve(t));break;case"query":case"mutation":case"subscription":var n,i=void 0;(n=l.charCodeAt(s))!==40&&n!==64&&n!==123&&(i=V());var a={kind:"OperationDefinition",operation:r,name:i,variableDefinitions:qe(),directives:I(!1),selectionSet:G()};t&&(a.description=t),e.push(a);break;default:throw C("Document")}}}while(s<l.length);return e}function Pe(e,t){return l=e.body?e.body:e,s=0,x(),t&&t.noLocation?{kind:"Document",definitions:fe()}:{kind:"Document",definitions:fe(),loc:{start:0,end:l.length,startToken:void 0,endToken:void 0,source:{body:l,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function _(e,t,r){for(var n="",i=0;i<e.length;i++)i&&(n+=t),n+=r(e[i]);return n}function je(e){return JSON.stringify(e)}function Ie(e){return`"""
|
|
4
|
+
`+e.replace(/"""/g,'\\"""')+`
|
|
5
|
+
"""`}var P=`
|
|
6
|
+
`,E={OperationDefinition(e){var t="";e.description&&(t+=E.StringValue(e.description)+`
|
|
7
|
+
`),t+=e.operation,e.name&&(t+=" "+e.name.value),e.variableDefinitions&&e.variableDefinitions.length&&(e.name||(t+=" "),t+="("+_(e.variableDefinitions,", ",E.VariableDefinition)+")"),e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive));var r=E.SelectionSet(e.selectionSet);return t!=="query"?t+" "+r:r},VariableDefinition(e){var t="";return e.description&&(t+=E.StringValue(e.description)+" "),t+=E.Variable(e.variable)+": "+j(e.type),e.defaultValue&&(t+=" = "+j(e.defaultValue)),e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t},Field(e){var t=e.alias?e.alias.value+": "+e.name.value:e.name.value;if(e.arguments&&e.arguments.length){var r=_(e.arguments,", ",E.Argument);t.length+r.length+2>80?t+="("+(P+=" ")+_(e.arguments,P,E.Argument)+(P=P.slice(0,-2))+")":t+="("+r+")"}return e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),e.selectionSet&&e.selectionSet.selections.length&&(t+=" "+E.SelectionSet(e.selectionSet)),t},StringValue(e){return e.block?Ie(e.value).replace(/\n/g,P):je(e.value)},BooleanValue:e=>""+e.value,NullValue:e=>"null",IntValue:e=>e.value,FloatValue:e=>e.value,EnumValue:e=>e.value,Name:e=>e.value,Variable:e=>"$"+e.name.value,ListValue:e=>"["+_(e.values,", ",j)+"]",ObjectValue:e=>"{"+_(e.fields,", ",E.ObjectField)+"}",ObjectField:e=>e.name.value+": "+j(e.value),Document(e){return!e.definitions||!e.definitions.length?"":_(e.definitions,`
|
|
8
|
+
|
|
9
|
+
`,j)},SelectionSet:e=>"{"+(P+=" ")+_(e.selections,P,j)+(P=P.slice(0,-2))+"}",Argument:e=>e.name.value+": "+j(e.value),FragmentSpread(e){var t="..."+e.name.value;return e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t},InlineFragment(e){var t="...";return e.typeCondition&&(t+=" on "+e.typeCondition.name.value),e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t+=" "+E.SelectionSet(e.selectionSet)},FragmentDefinition(e){var t="";return e.description&&(t+=E.StringValue(e.description)+`
|
|
10
|
+
`),t+="fragment "+e.name.value,t+=" on "+e.typeCondition.name.value,e.directives&&e.directives.length&&(t+=" "+_(e.directives," ",E.Directive)),t+" "+E.SelectionSet(e.selectionSet)},Directive(e){var t="@"+e.name.value;return e.arguments&&e.arguments.length&&(t+="("+_(e.arguments,", ",E.Argument)+")"),t},NamedType:e=>e.name.value,ListType:e=>"["+j(e.type)+"]",NonNullType:e=>j(e.type)+"!"},j=e=>E[e.kind](e);function Re(e){return P=`
|
|
11
|
+
`,E[e.kind]?E[e.kind](e):""}var Te=e=>e&&typeof e.message=="string"&&(e.extensions||e.name==="GraphQLError")?e:typeof e=="object"&&typeof e.message=="string"?new ne(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new ne(e);class se extends Error{constructor(t){var r=(t.graphQLErrors||[]).map(Te),n=((i,a)=>{var o="";if(i)return`[Network] ${i.message}`;if(a)for(var v=0,h=a.length;v<h;v++)o&&(o+=`
|
|
12
|
+
`),o+=`[GraphQL] ${a[v].message}`;return o})(t.networkError,r);super(n),this.name="CombinedError",this.message=n,this.graphQLErrors=r,this.networkError=t.networkError,this.response=t.response}toString(){return this.message}}var J=(e,t)=>{for(var r=0|(t||5381),n=0,i=0|e.length;n<i;n++)r=(r<<5)+r+e.charCodeAt(n);return r},R=new Set,de=new WeakMap,F=(e,t)=>{if(e===null||R.has(e))return"null";if(typeof e!="object")return JSON.stringify(e)||"";if(e.toJSON)return F(e.toJSON(),t);if(Array.isArray(e)){for(var r="[",n=0,i=e.length;n<i;n++)r.length>1&&(r+=","),r+=F(e[n],t)||"null";return r+="]"}else if(!t&&(W!==L&&e instanceof W||Y!==L&&e instanceof Y))return"null";var a=Object.keys(e).sort();if(!a.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var o=de.get(e)||Math.random().toString(36).slice(2);return de.set(e,o),F({__key:o},t)}R.add(e);for(var v="{",h=0,k=a.length;h<k;h++){var y=F(e[a[h]],t);y&&(v.length>1&&(v+=","),v+=F(a[h],t)+":"+y)}return R.delete(e),v+="}"},ae=(e,t,r)=>{if(!(r==null||typeof r!="object"||r.toJSON||R.has(r)))if(Array.isArray(r))for(var n=0,i=r.length;n<i;n++)ae(e,`${t}.${n}`,r[n]);else if(r instanceof W||r instanceof Y)e.set(t,r);else{R.add(r);for(var a in r)ae(e,`${t}.${a}`,r[a])}},z=(e,t)=>(R.clear(),F(e,t||!1));class L{}var W=typeof File<"u"?File:L,Y=typeof Blob<"u"?Blob:L,Fe=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,Me=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,$e=(e,t)=>t%2==0?e.replace(Me,`
|
|
13
|
+
`):e,ve=e=>e.split(Fe).map($e).join("").trim(),he=new Map,B=new Map,ue=e=>{var t;return typeof e=="string"?t=ve(e):e.loc&&B.get(e.__key)===e?t=e.loc.source.body:(t=he.get(e)||ve(Re(e)),he.set(e,t)),typeof e!="string"&&!e.loc&&(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},pe=e=>{var t;if(e.documentId)t=J(e.documentId);else if(t=J(ue(e)),e.definitions){var r=we(e);r&&(t=J(`
|
|
14
|
+
# ${r}`,t))}return t},Le=e=>{var t,r;return typeof e=="string"?(t=pe(e),r=B.get(t)||Pe(e,{noLocation:!0})):(t=e.__key||pe(e),r=B.get(t)||e),r.loc||ue(r),r.__key=t,B.set(t,r),r},M=(e,t,r)=>{var n=t||{},i=Le(e),a=z(n,!0),o=i.__key;return a!=="{}"&&(o=J(a,o)),{key:o,query:i,variables:n,extensions:r}},we=e=>{for(var t=0,r=e.definitions.length;t<r;t++){var n=e.definitions[t];if(n.kind===xe.OPERATION_DEFINITION)return n.name?n.name.value:void 0}},Qe=e=>{for(var t=0,r=e.definitions.length;t<r;t++){var n=e.definitions[t];if(n.kind===xe.OPERATION_DEFINITION)return n.operation}},ye=(e,t,r)=>{if(!("data"in t||"errors"in t&&Array.isArray(t.errors)))throw new Error("No Content");var n=e.kind==="subscription";return{operation:e,data:t.data,error:Array.isArray(t.errors)?new se({graphQLErrors:t.errors,response:r}):void 0,extensions:t.extensions?{...t.extensions}:void 0,hasNext:t.hasNext==null?n:t.hasNext,stale:!1}},H=(e,t)=>{if(typeof e=="object"&&e!=null){if(Array.isArray(e)){e=[...e];for(var r=0,n=t.length;r<n;r++)e[r]=H(e[r],t[r]);return e}if(!e.constructor||e.constructor===Object){e={...e};for(var i in t)e[i]=H(e[i],t[i]);return e}}return t},Je=(e,t,r,n)=>{var i=e.error?e.error.graphQLErrors:[],a=!!e.extensions||!!(t.payload||t).extensions,o={...e.extensions,...(t.payload||t).extensions},v=t.incremental;"path"in t&&(v=[t]);var h={data:e.data};if(v)for(var k=function(){var m=v[y];Array.isArray(m.errors)&&i.push(...m.errors),m.extensions&&(Object.assign(o,m.extensions),a=!0);var b="data",p=h,w=[];if(m.path)w=m.path;else if(n){var S=n.find((d=>d.id===m.id));m.subPath?w=[...S.path,...m.subPath]:w=S.path}for(var f=0,A=w.length;f<A;b=w[f++])p=p[b]=Array.isArray(p[b])?[...p[b]]:{...p[b]};if(m.items)for(var N=+b>=0?b:0,u=0,g=m.items.length;u<g;u++)p[N+u]=H(p[N+u],m.items[u]);else m.data!==void 0&&(p[b]=H(p[b],m.data))},y=0,O=v.length;y<O;y++)k();else h.data=(t.payload||t).data||e.data,i=t.errors||t.payload&&t.payload.errors||i;return{operation:e.operation,data:h.data,error:i.length?new se({graphQLErrors:i,response:r}):void 0,extensions:a?o:void 0,hasNext:t.hasNext!=null?t.hasNext:e.hasNext,stale:!1}},Oe=(e,t,r)=>({operation:e,data:void 0,error:new se({networkError:t,response:r}),extensions:void 0,hasNext:!1,stale:!1});function Be(e){var t={query:void 0,documentId:void 0,operationName:we(e.query),variables:e.variables||void 0,extensions:e.extensions};return"documentId"in e.query&&e.query.documentId&&(!e.query.definitions||!e.query.definitions.length)?t.documentId=e.query.documentId:(!e.extensions||!e.extensions.persistedQuery||e.extensions.persistedQuery.miss)&&(t.query=ue(e.query)),t}var Ge=(e,t)=>{var r=e.kind==="query"&&e.context.preferGetMethod;if(!r||!t)return e.context.url;var n=Ue(e.context.url);for(var i in t){var a=t[i];a&&n[1].set(i,typeof a=="object"?z(a):a)}var o=n.join("?");return o.length>2047&&r!=="force"?(e.context.preferGetMethod=!1,e.context.url):o},Ue=e=>{var t=e.indexOf("?");return t>-1?[e.slice(0,t),new URLSearchParams(e.slice(t+1))]:[e,new URLSearchParams]},ze=(e,t)=>{if(t&&!(e.kind==="query"&&e.context.preferGetMethod)){var r=z(t),n=(v=>{var h=new Map;return(W!==L||Y!==L)&&(R.clear(),ae(h,"variables",v)),h})(t.variables);if(n.size){var i=new FormData;i.append("operations",r),i.append("map",z({...[...n.keys()].map((v=>[v]))}));var a=0;for(var o of n.values())i.append(""+a++,o);return i}return r}},We=(e,t)=>{var r={accept:e.kind==="subscription"?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},n=(typeof e.context.fetchOptions=="function"?e.context.fetchOptions():e.context.fetchOptions)||{};if(n.headers)if((o=>"has"in o&&!Object.keys(o).length)(n.headers))n.headers.forEach(((o,v)=>{r[v]=o}));else if(Array.isArray(n.headers))n.headers.forEach(((o,v)=>{Array.isArray(o)?r[o[0]]?r[o[0]]=`${r[o[0]]},${o[1]}`:r[o[0]]=o[1]:r[v]=o}));else for(var i in n.headers)r[i.toLowerCase()]=n.headers[i];var a=ze(e,t);return typeof a=="string"&&!r["content-type"]&&(r["content-type"]="application/json"),{...n,method:a?"POST":"GET",body:a,headers:r}},Ye=/boundary="?([^=";]+)"?/i,He=/data: ?([^\n]+)/;async function*me(e){if(e.body[Symbol.asyncIterator])for await(var t of e.body)yield t;else{var r=e.body.getReader(),n;try{for(;!(n=await r.read()).done;)yield n.value}finally{r.cancel()}}}async function*ge(e,t){var r=typeof TextDecoder<"u"?new TextDecoder:null,n="",i;for await(var a of e)for(n+=a.constructor.name==="Buffer"?a.toString():r.decode(a,{stream:!0});(i=n.indexOf(t))>-1;)yield n.slice(0,i),n=n.slice(i+t.length)}async function*Ke(e,t,r){var n=!0,i=null,a;try{yield await Promise.resolve();var o=(a=await(e.context.fetch||fetch)(t,r)).headers.get("Content-Type")||"",v;/multipart\/mixed/i.test(o)?v=(async function*(O,m){var b=O.match(Ye),p="--"+(b?b[1]:"-"),w=!0,S;for await(var f of ge(me(m),`\r
|
|
15
|
+
`+p)){if(w){w=!1;var A=f.indexOf(p);if(A>-1)f=f.slice(A+p.length);else continue}try{yield S=JSON.parse(f.slice(f.indexOf(`\r
|
|
16
|
+
\r
|
|
17
|
+
`)+4))}catch(N){if(!S)throw N}if(S&&S.hasNext===!1)break}S&&S.hasNext!==!1&&(yield{hasNext:!1})})(o,a):/text\/event-stream/i.test(o)?v=(async function*(O){var m;for await(var b of ge(me(O),`
|
|
18
|
+
|
|
19
|
+
`)){var p=b.match(He);if(p){var w=p[1];try{yield m=JSON.parse(w)}catch(S){if(!m)throw S}if(m&&m.hasNext===!1)break}}m&&m.hasNext!==!1&&(yield{hasNext:!1})})(a):/text\//i.test(o)?v=(async function*(O){var m=await O.text();try{var b=JSON.parse(m);process.env.NODE_ENV!=="production"&&console.warn('Found response with content-type "text/plain" but it had a valid "application/json" response.'),yield b}catch{throw new Error(m)}})(a):v=(async function*(O){yield JSON.parse(await O.text())})(a);var h;for await(var k of v)k.pending&&!i?h=k.pending:k.pending&&(h=[...h,...k.pending]),i=i?Je(i,k,a,h):ye(e,k,a),n=!1,yield i,n=!0;i||(yield i=ye(e,{},a))}catch(y){if(!n)throw y;yield Oe(e,a&&(a.status<200||a.status>=300)&&a.statusText?new Error(a.statusText):y,a)}}function Xe(e,t,r){var n;return typeof AbortController<"u"&&(r.signal=(n=new AbortController).signal),c.onEnd((()=>{n&&n.abort()}))(c.filter((i=>!!i))(c.fromAsyncIterable(Ke(e,t,r))))}function ke(e){var t=r=>e(r);return t.toPromise=()=>c.toPromise(c.take(1)(c.filter((r=>!r.stale&&!r.hasNext))(t))),t.then=(r,n)=>t.toPromise().then(r,n),t.subscribe=r=>c.subscribe(r)(t),t}function K(e,t,r){return{...t,kind:e,context:t.context?{...t.context,...r}:r||t.context}}var Ze=()=>{},et=({forward:e,dispatchDebug:t})=>r=>{var n=c.mergeMap((a=>{var o=Be(a),v=Ge(a,o),h=We(a,o);process.env.NODE_ENV!=="production"&&t({type:"fetchRequest",message:"A fetch request is being executed.",operation:a,data:{url:v,fetchOptions:h},source:"fetchExchange"});var k=c.takeUntil(c.filter((y=>y.kind==="teardown"&&y.key===a.key))(r))(Xe(a,v,h));return process.env.NODE_ENV!=="production"?c.onPush((y=>{var O=y.data?void 0:y.error;process.env.NODE_ENV!=="production"&&t({type:O?"fetchError":"fetchSuccess",message:`A ${O?"failed":"successful"} fetch response has been returned.`,operation:a,data:{url:v,fetchOptions:h,value:O||y},source:"fetchExchange"})}))(k):k}))(c.filter((a=>a.kind!=="teardown"&&(a.kind!=="subscription"||!!a.context.fetchSubscriptions)))(r)),i=e(c.filter((a=>a.kind==="teardown"||a.kind==="subscription"&&!a.context.fetchSubscriptions))(r));return c.merge([n,i])},tt=e=>({client:t,forward:r,dispatchDebug:n})=>e.reduceRight(((i,a)=>{var o=!1;return a({client:t,forward(v){if(process.env.NODE_ENV!=="production"){if(o)throw new Error("forward() must only be called once in each Exchange.");o=!0}return c.share(i(c.share(v)))},dispatchDebug(v){process.env.NODE_ENV!=="production"&&n({timestamp:Date.now(),source:a.name,...v})}})}),r),rt=({dispatchDebug:e})=>t=>(process.env.NODE_ENV!=="production"&&(t=c.onPush((r=>{if(r.kind!=="teardown"&&process.env.NODE_ENV!=="production"){var n=`No exchange has handled operations of kind "${r.kind}". Check whether you've added an exchange responsible for these operations.`;process.env.NODE_ENV!=="production"&&e({type:"fallbackCatch",message:n,operation:r,source:"fallbackExchange"}),console.warn(n)}}))(t)),c.filter((r=>!1))(t)),nt=function e(t){if(process.env.NODE_ENV!=="production"&&!t.url)throw new Error("You are creating an urql-client without a url.");var r=0,n=new Map,i=new Map,a=new Set,o=[],v={url:t.url,fetchSubscriptions:t.fetchSubscriptions,fetchOptions:t.fetchOptions,fetch:t.fetch,preferGetMethod:t.preferGetMethod,requestPolicy:t.requestPolicy||"cache-first"},h=c.makeSubject();function k(u){(u.kind==="mutation"||u.kind==="teardown"||!a.has(u.key))&&(u.kind==="teardown"?a.delete(u.key):u.kind!=="mutation"&&a.add(u.key),h.next(u))}var y=!1;function O(u){if(u&&k(u),!y){for(y=!0;y&&(u=o.shift());)k(u);y=!1}}var m=u=>{var g=c.takeUntil(c.filter((d=>d.kind==="teardown"&&d.key===u.key))(h.source))(c.filter((d=>d.operation.kind===u.kind&&d.operation.key===u.key&&(!d.operation.context._instance||d.operation.context._instance===u.context._instance)))(N));return u.kind!=="query"?g=c.takeWhile((d=>!!d.hasNext),!0)(g):g=c.switchMap((d=>{var D=c.fromValue(d);return d.stale||d.hasNext?D:c.merge([D,c.map((()=>(d.stale=!0,d)))(c.take(1)(c.filter((T=>T.key===u.key))(h.source)))])}))(g),u.kind!=="mutation"?g=c.onEnd((()=>{a.delete(u.key),n.delete(u.key),i.delete(u.key),y=!1;for(var d=o.length-1;d>=0;d--)o[d].key===u.key&&o.splice(d,1);k(K("teardown",u,u.context))}))(c.onPush((d=>{if(d.stale)if(!d.hasNext)a.delete(u.key);else for(var D=0;D<o.length;D++){var T=o[D];if(T.key===d.operation.key){a.delete(T.key);break}}else d.hasNext||a.delete(u.key);n.set(u.key,d)}))(g)):g=c.onStart((()=>{k(u)}))(g),c.share(g)},b=this instanceof e?this:Object.create(e.prototype),p=Object.assign(b,{suspense:!!t.suspense,operations$:h.source,reexecuteOperation(u){if(u.kind==="teardown")O(u);else if(u.kind==="mutation")o.push(u),Promise.resolve().then(O);else if(i.has(u.key)){for(var g=!1,d=0;d<o.length;d++)o[d].key===u.key&&(o[d]=u,g=!0);g||a.has(u.key)&&u.context.requestPolicy!=="network-only"?(a.delete(u.key),Promise.resolve().then(O)):(o.push(u),Promise.resolve().then(O))}},createRequestOperation(u,g,d){d||(d={});var D;if(process.env.NODE_ENV!=="production"&&u!=="teardown"&&(D=Qe(g.query))!==u)throw new Error(`Expected operation of type "${u}" but found "${D}"`);return K(u,g,{_instance:u==="mutation"?r=r+1|0:void 0,...v,...d,requestPolicy:d.requestPolicy||v.requestPolicy,suspense:d.suspense||d.suspense!==!1&&p.suspense})},executeRequestOperation(u){return u.kind==="mutation"?ke(m(u)):ke(c.lazy((()=>{var g=i.get(u.key);g||i.set(u.key,g=m(u)),g=c.onStart((()=>{O(u)}))(g);var d=n.get(u.key);return u.kind==="query"&&d&&(d.stale||d.hasNext)?c.switchMap(c.fromValue)(c.merge([g,c.filter((D=>D===n.get(u.key)))(c.fromValue(d))])):g})))},executeQuery(u,g){var d=p.createRequestOperation("query",u,g);return p.executeRequestOperation(d)},executeSubscription(u,g){var d=p.createRequestOperation("subscription",u,g);return p.executeRequestOperation(d)},executeMutation(u,g){var d=p.createRequestOperation("mutation",u,g);return p.executeRequestOperation(d)},readQuery(u,g,d){var D=null;return c.subscribe((T=>{D=T}))(p.query(u,g,d)).unsubscribe(),D},query:(u,g,d)=>p.executeQuery(M(u,g),d),subscription:(u,g,d)=>p.executeSubscription(M(u,g),d),mutation:(u,g,d)=>p.executeMutation(M(u,g),d)}),w=Ze;if(process.env.NODE_ENV!=="production"){var{next:S,source:f}=c.makeSubject();p.subscribeToDebugTarget=u=>c.subscribe(u)(f),w=S}var A=tt(t.exchanges),N=c.share(A({client:p,dispatchDebug:w,forward:rt({dispatchDebug:w})})(h.source));return c.publish(N),p},Ae={},Z=q.createContext(Ae),at=Z.Provider;Z.Consumer;Z.displayName="UrqlContext";var ce=()=>{var e=q.useContext(Z);if(e===Ae&&process.env.NODE_ENV!=="production"){var t="No client has been specified using urql's Provider. please create a client and add a Provider.";throw console.error(t),new Error(t)}return e},ie={fetching:!1,stale:!1,hasNext:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},it=(e,t)=>e===t||!(!e||!t||e.key!==t.key),ee=(e,t)=>{var r={...e,...t,data:t.data!==void 0||t.error?t.data:e.data,fetching:!!t.fetching,stale:!!t.stale};return((n,i)=>{for(var a in n)if(!(a in i))return!0;for(var o in i)if(o==="operation"?!it(n[o],i[o]):n[o]!==i[o])return!0;return!1})(e,r)?r:e},ot=(e,t)=>{for(var r=0,n=t.length;r<n;r++)if(e[r]!==t[r])return!0;return!1},te=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t){process.env.NODE_ENV!=="production"&&te&&te.ReactCurrentOwner&&te.ReactCurrentOwner.current?Promise.resolve(t).then(e):e(t)}function st(e){var t=q.useRef(!0),r=ce(),[n,i]=q.useState(ie),a=q.useCallback(((o,v)=>(X(i,{...ie,fetching:!0}),c.toPromise(c.take(1)(c.filter((h=>!h.hasNext))(c.onPush((h=>{t.current&&X(i,{fetching:!1,stale:h.stale,data:h.data,error:h.error,extensions:h.extensions,operation:h.operation,hasNext:h.hasNext})}))(r.executeMutation(M(e,o),v||{}))))))),[r,e,i]);return q.useEffect((()=>(t.current=!0,()=>{t.current=!1})),[]),[n,a]}function ut(e,t){var r=q.useRef(void 0);return q.useMemo((()=>{var n=M(e,t);return r.current!==void 0&&r.current.key===n.key?r.current:(r.current=n,n)}),[e,t])}var ct=e=>{if(!e._react){var t=new Set,r=new Map;e.operations$&&c.subscribe((n=>{n.kind==="teardown"&&t.has(n.key)&&(t.delete(n.key),r.delete(n.key))}))(e.operations$),e._react={get:n=>r.get(n),set(n,i){t.delete(n),r.set(n,i)},dispose(n){t.add(n)}}}return e._react},lt=(e,t)=>t&&t.suspense!==void 0?!!t.suspense:e.suspense;function ft(e){var t=ce(),r=ct(t),n=lt(t,e.context),i=ut(e.query,e.variables),a=q.useMemo((()=>{if(e.pause)return null;var m=t.executeQuery(i,{requestPolicy:e.requestPolicy,...e.context});return n?c.onPush((b=>{r.set(i.key,b)}))(m):m}),[r,t,i,n,e.pause,e.requestPolicy,e.context]),o=q.useCallback(((m,b)=>{if(!m)return{fetching:!1};var p=r.get(i.key);if(p){if(b&&p!=null&&"then"in p)throw p}else{var w,S=c.subscribe((A=>{p=A,w&&w(p)}))(c.takeWhile((()=>b&&!w||!p||"hasNext"in p&&p.hasNext))(m));if(p==null&&b){var f=new Promise((A=>{w=A}));throw r.set(i.key,f),f}else S.unsubscribe()}return p||{fetching:!0}}),[r,i]),v=[t,i,e.requestPolicy,e.context,e.pause],[h,k]=q.useState((()=>[a,ee(ie,o(a,n)),v])),y=h[1];a!==h[0]&&ot(h[2],v)&&k([a,y=ee(h[1],o(a,n)),v]),q.useEffect((()=>{var m=h[0],b=h[2][1],p=!1,w=f=>{p=!0,X(k,(A=>{var N=ee(A[1],f);return A[1]!==N?[A[0],N,A[2]]:A}))};if(m){var S=c.subscribe(w)(c.onEnd((()=>{w({fetching:!1})}))(m));return p||w({fetching:!0}),()=>{r.dispose(b.key),S.unsubscribe()}}else w({fetching:!1})}),[r,h[0],h[2][1]]);var O=q.useCallback((m=>{var b={requestPolicy:e.requestPolicy,...e.context,...m};X(k,(p=>[n?c.onPush((w=>{r.set(i.key,w)}))(t.executeQuery(i,b)):t.executeQuery(i,b),p[1],v]))}),[t,r,i,n,e.requestPolicy,e.context,e.pause]);return[y,O]}var re=(e,t)=>K(e.kind,e,{...e.context,authAttempt:t});function dt(e){return({client:t,forward:r})=>{var n=new Set,i=c.makeSubject(),a=c.makeSubject(),o=new Map;function v(){k=void 0;var O=o;o=new Map,O.forEach(i.next)}function h(O){k=void 0;var m=o;o=new Map,m.forEach((b=>{a.next(Oe(b,O))}))}var k,y=null;return O=>{function m(){k=Promise.resolve().then((()=>e({mutate(f,A,N){var u=t.createRequestOperation("mutation",M(f,A),N);return c.toPromise(c.take(1)(c.filter((g=>g.operation.key===u.key&&u.context._instance===g.operation.context._instance))(c.onStart((()=>{var g=p(u);n.add(g.context._instance),i.next(g)}))(S))))},appendHeaders(f,A){var N=typeof f.context.fetchOptions=="function"?f.context.fetchOptions():f.context.fetchOptions||{};return K(f.kind,f,{...f.context,fetchOptions:{...N,headers:{...N.headers,...A}}})}}))).then((f=>{f&&(y=f),v()})).catch((f=>{process.env.NODE_ENV!=="production"&&console.warn("authExchange()’s initialization function has failed, which is unexpected.\nIf your initialization function is expected to throw/reject, catch this error and handle it explicitly.\nUnless this error is handled it’ll be passed onto any `OperationResult` instantly and authExchange() will block further operations and retry.",f),h(f)}))}m();function b(f){o.set(f.key,re(f,!0)),y&&!k&&(k=y.refreshAuth().then(v).catch(h))}function p(f){return y?y.addAuthToOperation(f):f}var w=c.filter(Boolean)(c.map((f=>f.kind==="teardown"?(o.delete(f.key),f):f.context._instance&&n.has(f.context._instance)?f:f.context.authAttempt?p(f):k||!y?(k||m(),o.has(f.key)||o.set(f.key,re(f,!1)),null):(function(N){return!N.context.authAttempt&&y&&y.willAuthError&&y.willAuthError(N)})(f)?(b(f),null):p(re(f,!1))))(c.merge([i.source,O]))),S=r(w);return c.merge([a.source,c.filter((f=>!n.has(f.operation.context._instance)&&f.error&&(function(N){return y&&y.didAuthError&&y.didAuthError(N.error,N.operation)})(f)&&!f.operation.context.authAttempt?(b(f.operation),!1):(n.has(f.operation.context._instance)&&n.delete(f.operation.context._instance),!0)))(S)])}}}exports.C=nt;exports.authExchange=dt;exports.f=at;exports.fetchExchange=et;exports.useClient=ce;exports.useMutation=st;exports.useQuery=ft;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("./react-is-vendor-CosIbvzW.cjs");var c,d;function w(){if(d)return c;d=1;var u=b.requireReactIs(),g={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},p={};p[u.ForwardRef]=n,p[u.Memo]=f;function y(r){return u.isMemo(r)?f:p[r.$$typeof]||g}var N=Object.defineProperty,R=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,j=Object.getOwnPropertyDescriptor,_=Object.getPrototypeOf,T=Object.prototype;function O(r,t,o){if(typeof t!="string"){if(T){var i=_(t);i&&i!==T&&O(r,i,o)}var a=R(t);v&&(a=a.concat(v(t)));for(var P=y(r),S=y(t),s=0;s<a.length;++s){var e=a[s];if(!l[e]&&!(o&&o[e])&&!(S&&S[e])&&!(P&&P[e])){var I=j(t,e);try{N(r,e,I)}catch{}}}}return r}return c=O,c}w();
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { r as w } from "./react-is-vendor-DpFLFzFZ.js";
|
|
2
|
+
var c, d;
|
|
3
|
+
function A() {
|
|
4
|
+
if (d) return c;
|
|
5
|
+
d = 1;
|
|
6
|
+
var u = w(), g = {
|
|
7
|
+
childContextTypes: !0,
|
|
8
|
+
contextType: !0,
|
|
9
|
+
contextTypes: !0,
|
|
10
|
+
defaultProps: !0,
|
|
11
|
+
displayName: !0,
|
|
12
|
+
getDefaultProps: !0,
|
|
13
|
+
getDerivedStateFromError: !0,
|
|
14
|
+
getDerivedStateFromProps: !0,
|
|
15
|
+
mixins: !0,
|
|
16
|
+
propTypes: !0,
|
|
17
|
+
type: !0
|
|
18
|
+
}, l = {
|
|
19
|
+
name: !0,
|
|
20
|
+
length: !0,
|
|
21
|
+
prototype: !0,
|
|
22
|
+
caller: !0,
|
|
23
|
+
callee: !0,
|
|
24
|
+
arguments: !0,
|
|
25
|
+
arity: !0
|
|
26
|
+
}, N = {
|
|
27
|
+
$$typeof: !0,
|
|
28
|
+
render: !0,
|
|
29
|
+
defaultProps: !0,
|
|
30
|
+
displayName: !0,
|
|
31
|
+
propTypes: !0
|
|
32
|
+
}, f = {
|
|
33
|
+
$$typeof: !0,
|
|
34
|
+
compare: !0,
|
|
35
|
+
defaultProps: !0,
|
|
36
|
+
displayName: !0,
|
|
37
|
+
propTypes: !0,
|
|
38
|
+
type: !0
|
|
39
|
+
}, p = {};
|
|
40
|
+
p[u.ForwardRef] = N, p[u.Memo] = f;
|
|
41
|
+
function y(r) {
|
|
42
|
+
return u.isMemo(r) ? f : p[r.$$typeof] || g;
|
|
43
|
+
}
|
|
44
|
+
var R = Object.defineProperty, j = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols, n = Object.getOwnPropertyDescriptor, _ = Object.getPrototypeOf, T = Object.prototype;
|
|
45
|
+
function O(r, t, o) {
|
|
46
|
+
if (typeof t != "string") {
|
|
47
|
+
if (T) {
|
|
48
|
+
var i = _(t);
|
|
49
|
+
i && i !== T && O(r, i, o);
|
|
50
|
+
}
|
|
51
|
+
var a = j(t);
|
|
52
|
+
v && (a = a.concat(v(t)));
|
|
53
|
+
for (var P = y(r), S = y(t), s = 0; s < a.length; ++s) {
|
|
54
|
+
var e = a[s];
|
|
55
|
+
if (!l[e] && !(o && o[e]) && !(S && S[e]) && !(P && P[e])) {
|
|
56
|
+
var b = n(t, e);
|
|
57
|
+
try {
|
|
58
|
+
R(r, e, b);
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return r;
|
|
65
|
+
}
|
|
66
|
+
return c = O, c;
|
|
67
|
+
}
|
|
68
|
+
A();
|
package/dist/hooks.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./graphql-vendor-CL0XsjHb.cjs"),a=require("react"),i=require("./services.cjs"),u=require("./types.cjs"),L=({url:e,getAuthToken:t})=>new l.C({url:e,requestPolicy:"cache-and-network",exchanges:[l.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),f=({url:e,getAuthToken:t})=>a.useMemo(()=>L({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),p=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),b=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(g=>g.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},h=e=>{const t=d(e),r=m(e),n=p(r.map(o=>o.id),u.AngleDataSource.Sensor),s=b(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]};exports.useGraphqlClient=f;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=p;exports.usePartOptionsForLimbs=b;exports.usePartOptionsForSensorLocations=h;
|
package/dist/hooks.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as c, c as d, f as p } from "./graphql-vendor-BWnD0b-j.js";
|
|
2
2
|
import { useMemo as i } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { getAllAvailableJoints as f, limbsRequiredForJoints as b, getAllAvailableLimbs as m, getEnabledJointPlanes as g, getDefaultJointRange as h, getEnabledSegmentPlanes as L, getDefaultLimbRange as A } from "./services.js";
|
|
3
|
+
import { getAllAvailableJoints as f, limbsRequiredForJoints as b, getAllAvailableLimbs as u, getEnabledJointPlanes as g, getDefaultJointRange as h, getEnabledSegmentPlanes as L, getDefaultLimbRange as A } from "./services.js";
|
|
5
4
|
import { sensorLocationToLimbId as l, AngleDataSource as a } from "./types.js";
|
|
6
5
|
const J = ({
|
|
7
6
|
url: e,
|
|
8
7
|
getAuthToken: t
|
|
9
|
-
}) => new
|
|
8
|
+
}) => new c({
|
|
10
9
|
url: e,
|
|
11
10
|
requestPolicy: "cache-and-network",
|
|
12
11
|
exchanges: [
|
|
13
|
-
|
|
12
|
+
d((s) => {
|
|
14
13
|
const n = t();
|
|
15
14
|
return Promise.resolve({
|
|
16
15
|
addAuthToOperation(r) {
|
|
@@ -24,7 +23,7 @@ const J = ({
|
|
|
24
23
|
}),
|
|
25
24
|
p
|
|
26
25
|
]
|
|
27
|
-
}),
|
|
26
|
+
}), I = ({
|
|
28
27
|
url: e,
|
|
29
28
|
getAuthToken: t
|
|
30
29
|
}) => i(
|
|
@@ -37,7 +36,7 @@ const J = ({
|
|
|
37
36
|
const t = i(() => e.map(l).filter((n) => !!n), [e]);
|
|
38
37
|
return P(t);
|
|
39
38
|
}, S = (e) => i(() => {
|
|
40
|
-
const s =
|
|
39
|
+
const s = u(), n = e.map(l);
|
|
41
40
|
return s.filter((r) => n.includes(r.id));
|
|
42
41
|
}, [e]), v = (e, t) => i(
|
|
43
42
|
() => e.flatMap(
|
|
@@ -50,8 +49,8 @@ const J = ({
|
|
|
50
49
|
[e, t]
|
|
51
50
|
), O = (e, t) => {
|
|
52
51
|
const s = i(() => {
|
|
53
|
-
const r =
|
|
54
|
-
return e.filter((o) => r.some((
|
|
52
|
+
const r = u();
|
|
53
|
+
return e.filter((o) => r.some((m) => m.id === o));
|
|
55
54
|
}, [e]);
|
|
56
55
|
return i(
|
|
57
56
|
() => s.flatMap(
|
|
@@ -63,7 +62,7 @@ const J = ({
|
|
|
63
62
|
),
|
|
64
63
|
[s, t]
|
|
65
64
|
);
|
|
66
|
-
},
|
|
65
|
+
}, D = (e) => {
|
|
67
66
|
const t = S(e), s = F(e), n = v(
|
|
68
67
|
s.map((o) => o.id),
|
|
69
68
|
a.Sensor
|
|
@@ -74,11 +73,11 @@ const J = ({
|
|
|
74
73
|
return [...n, ...r];
|
|
75
74
|
};
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
I as useGraphqlClient,
|
|
78
77
|
P as useJointsForLimbIds,
|
|
79
78
|
F as useJointsForSensorLocations,
|
|
80
79
|
S as useLimbsForSensorLocations,
|
|
81
80
|
v as usePartOptionsForJoints,
|
|
82
81
|
O as usePartOptionsForLimbs,
|
|
83
|
-
|
|
82
|
+
D as usePartOptionsForSensorLocations
|
|
84
83
|
};
|
package/dist/providers.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./react-jsx-runtime-vendor-Dszzpdy0.cjs"),s=require("@chakra-ui/react"),u=require("./graphql-vendor-CL0XsjHb.cjs"),a=require("./hooks.cjs"),c=({children:e,url:t,getAuthToken:n,chakraProviderProps:o})=>{const i=a.useGraphqlClient({url:t,getAuthToken:n});return r.jsxRuntimeExports.jsx(u.f,{value:i,children:r.jsxRuntimeExports.jsx(s.ChakraProvider,{...o,children:e})})};exports.QuantumLibraryProvider=c;
|
package/dist/providers.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as r } from "./
|
|
2
|
-
import { ChakraProvider as
|
|
3
|
-
import {
|
|
4
|
-
import { useGraphqlClient as
|
|
5
|
-
const
|
|
6
|
-
const m =
|
|
7
|
-
return /* @__PURE__ */ r.jsx(
|
|
1
|
+
import { j as r } from "./react-jsx-runtime-vendor-OVHDjVDe.js";
|
|
2
|
+
import { ChakraProvider as s } from "@chakra-ui/react";
|
|
3
|
+
import { d as a } from "./graphql-vendor-BWnD0b-j.js";
|
|
4
|
+
import { useGraphqlClient as n } from "./hooks.js";
|
|
5
|
+
const x = ({ children: o, url: t, getAuthToken: i, chakraProviderProps: e }) => {
|
|
6
|
+
const m = n({ url: t, getAuthToken: i });
|
|
7
|
+
return /* @__PURE__ */ r.jsx(a, { value: m, children: /* @__PURE__ */ r.jsx(s, { ...e, children: o }) });
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
x as QuantumLibraryProvider
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.sticky{position:sticky}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.flex{display:flex}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-8{gap:calc(var(--spacing)*8)}.border{border-style:var(--tw-border-style);border-width:1px}.capitalize{text-transform:capitalize}.outline{outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:64rem){.lg\:col-span-1{grid-column:span 1/span 1}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
|
1
|
+
/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.flex{display:flex}.grid{display:grid}.hidden{display:none}.w-full{width:100%}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}.gap-8{gap:calc(var(--spacing)*8)}.border{border-style:var(--tw-border-style);border-width:1px}.capitalize{text-transform:capitalize}.outline{outline-style:var(--tw-outline-style);outline-width:1px}@media (min-width:64rem){.lg\:col-span-1{grid-column:span 1/span 1}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const ie=require("./react-jsx-runtime-vendor-Dszzpdy0.cjs"),d=require("react"),se=require("./dnd-core-vendor-2Ve0kqUN.cjs"),oe=require("./vendor-BjLvygDR.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
|
+
`),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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as oe } from "./
|
|
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-
|
|
4
|
-
import {
|
|
3
|
+
import { c as fe } from "./dnd-core-vendor-CErAmYu_.js";
|
|
4
|
+
import { u as pe } from "./vendor-VALJ9W3p.js";
|
|
5
5
|
const X = ae({
|
|
6
6
|
dragDropManager: void 0
|
|
7
7
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";var T={exports:{}},t={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var w;function ne(){if(w)return t;w=1;var o=typeof Symbol=="function"&&Symbol.for,_=o?Symbol.for("react.element"):60103,v=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,f=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,m=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,b=o?Symbol.for("react.suspense_list"):60120,E=o?Symbol.for("react.memo"):60115,S=o?Symbol.for("react.lazy"):60116,P=o?Symbol.for("react.block"):60121,$=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,A=o?Symbol.for("react.scope"):60119;function a(e){if(typeof e=="object"&&e!==null){var R=e.$$typeof;switch(R){case _:switch(e=e.type,e){case p:case m:case s:case i:case f:case y:return e;default:switch(e=e&&e.$$typeof,e){case l:case d:case S:case E:case u:return e;default:return R}}case v:return R}}}function c(e){return a(e)===m}return t.AsyncMode=p,t.ConcurrentMode=m,t.ContextConsumer=l,t.ContextProvider=u,t.Element=_,t.ForwardRef=d,t.Fragment=s,t.Lazy=S,t.Memo=E,t.Portal=v,t.Profiler=i,t.StrictMode=f,t.Suspense=y,t.isAsyncMode=function(e){return c(e)||a(e)===p},t.isConcurrentMode=c,t.isContextConsumer=function(e){return a(e)===l},t.isContextProvider=function(e){return a(e)===u},t.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_},t.isForwardRef=function(e){return a(e)===d},t.isFragment=function(e){return a(e)===s},t.isLazy=function(e){return a(e)===S},t.isMemo=function(e){return a(e)===E},t.isPortal=function(e){return a(e)===v},t.isProfiler=function(e){return a(e)===i},t.isStrictMode=function(e){return a(e)===f},t.isSuspense=function(e){return a(e)===y},t.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===s||e===m||e===i||e===f||e===y||e===b||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===E||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===$||e.$$typeof===x||e.$$typeof===A||e.$$typeof===P)},t.typeOf=a,t}var n={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var F;function ce(){return F||(F=1,process.env.NODE_ENV!=="production"&&(function(){var o=typeof Symbol=="function"&&Symbol.for,_=o?Symbol.for("react.element"):60103,v=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,f=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.async_mode"):60111,m=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,b=o?Symbol.for("react.suspense_list"):60120,E=o?Symbol.for("react.memo"):60115,S=o?Symbol.for("react.lazy"):60116,P=o?Symbol.for("react.block"):60121,$=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,A=o?Symbol.for("react.scope"):60119;function a(r){return typeof r=="string"||typeof r=="function"||r===s||r===m||r===i||r===f||r===y||r===b||typeof r=="object"&&r!==null&&(r.$$typeof===S||r.$$typeof===E||r.$$typeof===u||r.$$typeof===l||r.$$typeof===d||r.$$typeof===$||r.$$typeof===x||r.$$typeof===A||r.$$typeof===P)}function c(r){if(typeof r=="object"&&r!==null){var M=r.$$typeof;switch(M){case _:var C=r.type;switch(C){case p:case m:case s:case i:case f:case y:return C;default:var O=C&&C.$$typeof;switch(O){case l:case d:case S:case E:case u:return O;default:return M}}case v:return M}}}var e=p,R=m,N=l,L=u,g=_,D=d,z=s,q=S,V=E,U=v,k=i,W=f,B=y,Y=!1;function G(r){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(r)||c(r)===p}function I(r){return c(r)===m}function K(r){return c(r)===l}function X(r){return c(r)===u}function Z(r){return typeof r=="object"&&r!==null&&r.$$typeof===_}function j(r){return c(r)===d}function H(r){return c(r)===s}function J(r){return c(r)===S}function Q(r){return c(r)===E}function ee(r){return c(r)===v}function re(r){return c(r)===i}function oe(r){return c(r)===f}function te(r){return c(r)===y}n.AsyncMode=e,n.ConcurrentMode=R,n.ContextConsumer=N,n.ContextProvider=L,n.Element=g,n.ForwardRef=D,n.Fragment=z,n.Lazy=q,n.Memo=V,n.Portal=U,n.Profiler=k,n.StrictMode=W,n.Suspense=B,n.isAsyncMode=G,n.isConcurrentMode=I,n.isContextConsumer=K,n.isContextProvider=X,n.isElement=Z,n.isForwardRef=j,n.isFragment=H,n.isLazy=J,n.isMemo=Q,n.isPortal=ee,n.isProfiler=re,n.isStrictMode=oe,n.isSuspense=te,n.isValidElementType=a,n.typeOf=c})()),n}var h;function ae(){return h||(h=1,process.env.NODE_ENV==="production"?T.exports=ne():T.exports=ce()),T.exports}exports.requireReactIs=ae;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
var T = { exports: {} }, t = {};
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
var w;
|
|
11
|
+
function ne() {
|
|
12
|
+
if (w) return t;
|
|
13
|
+
w = 1;
|
|
14
|
+
var o = typeof Symbol == "function" && Symbol.for, _ = o ? Symbol.for("react.element") : 60103, p = o ? Symbol.for("react.portal") : 60106, s = o ? Symbol.for("react.fragment") : 60107, f = o ? Symbol.for("react.strict_mode") : 60108, i = o ? Symbol.for("react.profiler") : 60114, u = o ? Symbol.for("react.provider") : 60109, l = o ? Symbol.for("react.context") : 60110, v = o ? Symbol.for("react.async_mode") : 60111, m = o ? Symbol.for("react.concurrent_mode") : 60111, d = o ? Symbol.for("react.forward_ref") : 60112, y = o ? Symbol.for("react.suspense") : 60113, b = o ? Symbol.for("react.suspense_list") : 60120, E = o ? Symbol.for("react.memo") : 60115, S = o ? Symbol.for("react.lazy") : 60116, P = o ? Symbol.for("react.block") : 60121, $ = o ? Symbol.for("react.fundamental") : 60117, x = o ? Symbol.for("react.responder") : 60118, A = o ? Symbol.for("react.scope") : 60119;
|
|
15
|
+
function a(e) {
|
|
16
|
+
if (typeof e == "object" && e !== null) {
|
|
17
|
+
var C = e.$$typeof;
|
|
18
|
+
switch (C) {
|
|
19
|
+
case _:
|
|
20
|
+
switch (e = e.type, e) {
|
|
21
|
+
case v:
|
|
22
|
+
case m:
|
|
23
|
+
case s:
|
|
24
|
+
case i:
|
|
25
|
+
case f:
|
|
26
|
+
case y:
|
|
27
|
+
return e;
|
|
28
|
+
default:
|
|
29
|
+
switch (e = e && e.$$typeof, e) {
|
|
30
|
+
case l:
|
|
31
|
+
case d:
|
|
32
|
+
case S:
|
|
33
|
+
case E:
|
|
34
|
+
case u:
|
|
35
|
+
return e;
|
|
36
|
+
default:
|
|
37
|
+
return C;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
case p:
|
|
41
|
+
return C;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function c(e) {
|
|
46
|
+
return a(e) === m;
|
|
47
|
+
}
|
|
48
|
+
return t.AsyncMode = v, t.ConcurrentMode = m, t.ContextConsumer = l, t.ContextProvider = u, t.Element = _, t.ForwardRef = d, t.Fragment = s, t.Lazy = S, t.Memo = E, t.Portal = p, t.Profiler = i, t.StrictMode = f, t.Suspense = y, t.isAsyncMode = function(e) {
|
|
49
|
+
return c(e) || a(e) === v;
|
|
50
|
+
}, t.isConcurrentMode = c, t.isContextConsumer = function(e) {
|
|
51
|
+
return a(e) === l;
|
|
52
|
+
}, t.isContextProvider = function(e) {
|
|
53
|
+
return a(e) === u;
|
|
54
|
+
}, t.isElement = function(e) {
|
|
55
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
56
|
+
}, t.isForwardRef = function(e) {
|
|
57
|
+
return a(e) === d;
|
|
58
|
+
}, t.isFragment = function(e) {
|
|
59
|
+
return a(e) === s;
|
|
60
|
+
}, t.isLazy = function(e) {
|
|
61
|
+
return a(e) === S;
|
|
62
|
+
}, t.isMemo = function(e) {
|
|
63
|
+
return a(e) === E;
|
|
64
|
+
}, t.isPortal = function(e) {
|
|
65
|
+
return a(e) === p;
|
|
66
|
+
}, t.isProfiler = function(e) {
|
|
67
|
+
return a(e) === i;
|
|
68
|
+
}, t.isStrictMode = function(e) {
|
|
69
|
+
return a(e) === f;
|
|
70
|
+
}, t.isSuspense = function(e) {
|
|
71
|
+
return a(e) === y;
|
|
72
|
+
}, t.isValidElementType = function(e) {
|
|
73
|
+
return typeof e == "string" || typeof e == "function" || e === s || e === m || e === i || e === f || e === y || e === b || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === E || e.$$typeof === u || e.$$typeof === l || e.$$typeof === d || e.$$typeof === $ || e.$$typeof === x || e.$$typeof === A || e.$$typeof === P);
|
|
74
|
+
}, t.typeOf = a, t;
|
|
75
|
+
}
|
|
76
|
+
var n = {};
|
|
77
|
+
/** @license React v16.13.1
|
|
78
|
+
* react-is.development.js
|
|
79
|
+
*
|
|
80
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/
|
|
85
|
+
var F;
|
|
86
|
+
function ce() {
|
|
87
|
+
return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
88
|
+
var o = typeof Symbol == "function" && Symbol.for, _ = o ? Symbol.for("react.element") : 60103, p = o ? Symbol.for("react.portal") : 60106, s = o ? Symbol.for("react.fragment") : 60107, f = o ? Symbol.for("react.strict_mode") : 60108, i = o ? Symbol.for("react.profiler") : 60114, u = o ? Symbol.for("react.provider") : 60109, l = o ? Symbol.for("react.context") : 60110, v = o ? Symbol.for("react.async_mode") : 60111, m = o ? Symbol.for("react.concurrent_mode") : 60111, d = o ? Symbol.for("react.forward_ref") : 60112, y = o ? Symbol.for("react.suspense") : 60113, b = o ? Symbol.for("react.suspense_list") : 60120, E = o ? Symbol.for("react.memo") : 60115, S = o ? Symbol.for("react.lazy") : 60116, P = o ? Symbol.for("react.block") : 60121, $ = o ? Symbol.for("react.fundamental") : 60117, x = o ? Symbol.for("react.responder") : 60118, A = o ? Symbol.for("react.scope") : 60119;
|
|
89
|
+
function a(r) {
|
|
90
|
+
return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
91
|
+
r === s || r === m || r === i || r === f || r === y || r === b || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === E || r.$$typeof === u || r.$$typeof === l || r.$$typeof === d || r.$$typeof === $ || r.$$typeof === x || r.$$typeof === A || r.$$typeof === P);
|
|
92
|
+
}
|
|
93
|
+
function c(r) {
|
|
94
|
+
if (typeof r == "object" && r !== null) {
|
|
95
|
+
var M = r.$$typeof;
|
|
96
|
+
switch (M) {
|
|
97
|
+
case _:
|
|
98
|
+
var R = r.type;
|
|
99
|
+
switch (R) {
|
|
100
|
+
case v:
|
|
101
|
+
case m:
|
|
102
|
+
case s:
|
|
103
|
+
case i:
|
|
104
|
+
case f:
|
|
105
|
+
case y:
|
|
106
|
+
return R;
|
|
107
|
+
default:
|
|
108
|
+
var O = R && R.$$typeof;
|
|
109
|
+
switch (O) {
|
|
110
|
+
case l:
|
|
111
|
+
case d:
|
|
112
|
+
case S:
|
|
113
|
+
case E:
|
|
114
|
+
case u:
|
|
115
|
+
return O;
|
|
116
|
+
default:
|
|
117
|
+
return M;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
case p:
|
|
121
|
+
return M;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
var e = v, C = m, N = l, L = u, g = _, D = d, z = s, q = S, V = E, U = p, k = i, W = f, B = y, Y = !1;
|
|
126
|
+
function G(r) {
|
|
127
|
+
return Y || (Y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), I(r) || c(r) === v;
|
|
128
|
+
}
|
|
129
|
+
function I(r) {
|
|
130
|
+
return c(r) === m;
|
|
131
|
+
}
|
|
132
|
+
function K(r) {
|
|
133
|
+
return c(r) === l;
|
|
134
|
+
}
|
|
135
|
+
function X(r) {
|
|
136
|
+
return c(r) === u;
|
|
137
|
+
}
|
|
138
|
+
function Z(r) {
|
|
139
|
+
return typeof r == "object" && r !== null && r.$$typeof === _;
|
|
140
|
+
}
|
|
141
|
+
function j(r) {
|
|
142
|
+
return c(r) === d;
|
|
143
|
+
}
|
|
144
|
+
function H(r) {
|
|
145
|
+
return c(r) === s;
|
|
146
|
+
}
|
|
147
|
+
function J(r) {
|
|
148
|
+
return c(r) === S;
|
|
149
|
+
}
|
|
150
|
+
function Q(r) {
|
|
151
|
+
return c(r) === E;
|
|
152
|
+
}
|
|
153
|
+
function ee(r) {
|
|
154
|
+
return c(r) === p;
|
|
155
|
+
}
|
|
156
|
+
function re(r) {
|
|
157
|
+
return c(r) === i;
|
|
158
|
+
}
|
|
159
|
+
function oe(r) {
|
|
160
|
+
return c(r) === f;
|
|
161
|
+
}
|
|
162
|
+
function te(r) {
|
|
163
|
+
return c(r) === y;
|
|
164
|
+
}
|
|
165
|
+
n.AsyncMode = e, n.ConcurrentMode = C, n.ContextConsumer = N, n.ContextProvider = L, n.Element = g, n.ForwardRef = D, n.Fragment = z, n.Lazy = q, n.Memo = V, n.Portal = U, n.Profiler = k, n.StrictMode = W, n.Suspense = B, n.isAsyncMode = G, n.isConcurrentMode = I, n.isContextConsumer = K, n.isContextProvider = X, n.isElement = Z, n.isForwardRef = j, n.isFragment = H, n.isLazy = J, n.isMemo = Q, n.isPortal = ee, n.isProfiler = re, n.isStrictMode = oe, n.isSuspense = te, n.isValidElementType = a, n.typeOf = c;
|
|
166
|
+
})()), n;
|
|
167
|
+
}
|
|
168
|
+
var h;
|
|
169
|
+
function ae() {
|
|
170
|
+
return h || (h = 1, process.env.NODE_ENV === "production" ? T.exports = ne() : T.exports = ce()), T.exports;
|
|
171
|
+
}
|
|
172
|
+
export {
|
|
173
|
+
ae as r
|
|
174
|
+
};
|