@noxickon/onyx 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/chunks/Button-CLMaoxRW.js +11054 -0
  2. package/dist/chunks/Button-CZYAHivj.js +20 -0
  3. package/dist/chunks/Input-BQQT5eZ0.js +138 -0
  4. package/dist/chunks/Input-DJZcvJdP.js +1 -0
  5. package/dist/chunks/_commonjsHelpers-C6fGbg64.js +6 -0
  6. package/dist/chunks/_commonjsHelpers-DwGv2jUC.js +1 -0
  7. package/dist/chunks/constants-B1_n9ezb.js +1 -0
  8. package/dist/chunks/constants-CDXq37n6.js +4 -0
  9. package/dist/chunks/index-1-zQ3RaM.js +601 -0
  10. package/dist/chunks/index-BgUMV1hv.js +2129 -0
  11. package/dist/chunks/index-CjVXr8mh.js +2 -0
  12. package/dist/chunks/index-XTQUUzZ1.js +22 -0
  13. package/dist/chunks/isObject-BDHKUJKN.js +1 -0
  14. package/dist/chunks/isObject-vmP43YLW.js +6 -0
  15. package/dist/chunks/jsx-runtime-C5mzlN2N.js +284 -0
  16. package/dist/chunks/jsx-runtime-DUiatUiq.js +22 -0
  17. package/dist/chunks/useAuth-C-TIgBfr.js +61 -0
  18. package/dist/chunks/useAuth-CfKOZqhG.js +10 -0
  19. package/dist/chunks/useForm-BIKRbGHj.js +3085 -0
  20. package/dist/chunks/useForm-BZEaiRaa.js +26 -0
  21. package/dist/chunks/useQuery-B_ce5e8f.js +2 -0
  22. package/dist/chunks/useQuery-CJdYhuQu.js +1481 -0
  23. package/dist/context/context.cjs.js +1 -0
  24. package/dist/context/context.es.js +6 -0
  25. package/dist/context.d.ts +44 -0
  26. package/dist/hooks/hooks.cjs.js +6 -0
  27. package/dist/hooks/hooks.es.js +1917 -0
  28. package/dist/hooks.d.ts +130 -0
  29. package/dist/index.css +1 -1
  30. package/dist/index.d.ts +148 -110
  31. package/dist/layout/layout.cjs.js +1 -0
  32. package/dist/layout/layout.es.js +264 -0
  33. package/dist/layout.d.ts +89 -0
  34. package/dist/onyx.cjs.js +12 -0
  35. package/dist/onyx.es.js +2523 -9494
  36. package/dist/pages/pages.cjs.js +7 -0
  37. package/dist/pages/pages.es.js +93 -0
  38. package/dist/pages.d.ts +14 -0
  39. package/dist/shared.css +104 -0
  40. package/package.json +41 -16
  41. package/dist/onyx.umd.js +0 -42
@@ -0,0 +1,2 @@
1
+ "use strict";const se=require("./_commonjsHelpers-DwGv2jUC.js"),ae=require("react");function le(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var N=function(t,e){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},N(t,e)};function z(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");N(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}exports.__assign=function(){return exports.__assign=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},exports.__assign.apply(this,arguments)};function ce(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function y(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var E="Invariant Violation",D=Object.setPrototypeOf,ue=D===void 0?function(t,e){return t.__proto__=e,t}:D,V=function(t){z(e,t);function e(r){r===void 0&&(r=E);var n=t.call(this,typeof r=="number"?E+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=E,ue(n,e.prototype),n}return e}(Error);function p(t,e){if(!t)throw new V(e)}var B=["debug","log","warn","error","silent"],fe=B.indexOf("log");function _(t){return function(){if(B.indexOf(t)>=fe){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=_("debug"),t.log=_("log"),t.warn=_("warn"),t.error=_("error")})(p||(p={}));var J="3.13.8";function u(t){try{return t()}catch{}}const j=u(function(){return globalThis})||u(function(){return window})||u(function(){return self})||u(function(){return global})||u(function(){return u.constructor("return this")()});var I=new Map;function he(t){var e=I.get(t)||1;return I.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function pe(t,e){var r=he("stringifyForDisplay");return JSON.stringify(t,function(n,o){return o===void 0?r:o},e).split(JSON.stringify(r)).join("<undefined>")}function b(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var o=e;e=R(o),e||(e=M(o,r),r=[])}t.apply(void 0,[e].concat(r))}}var f=Object.assign(function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e||p(e,R(r,n)||M(r,n))},{debug:b(p.debug),log:b(p.log),warn:b(p.warn),error:b(p.error)});function de(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new V(R(t,e)||M(t,e))}var L=Symbol.for("ApolloErrorMessageHandler_"+J);function $(t){if(typeof t=="string")return t;try{return pe(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function R(t,e){if(e===void 0&&(e=[]),!!t)return j[L]&&j[L](t,e.map($))}function M(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:J,message:t,args:e.map($)})))}var ge=u(function(){return navigator.product})=="ReactNative",Y=typeof Symbol=="function"&&typeof Symbol.for=="function",X=typeof u(function(){return window.document.createElement})=="function",ye=u(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,ve=(X||ge)&&!ye;function Z(t){return t!==null&&typeof t=="object"}function we(){}class U{constructor(e=1/0,r=we){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function k(){}const _e=k,be=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},me=typeof WeakMap<"u"?WeakMap:Map,Ee=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:k,unregister:k}},Oe=10024;class P{constructor(e=1/0,r=_e){this.max=e,this.dispose=r,this.map=new me,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let o=0;o<Oe;o++){const i=n.next().value;if(!i)break;this.unfinalizedNodes.delete(i);const s=i.key;delete i.key,i.keyRef=new be(s),this.registry.register(s,i,i)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Ee(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:o}=r;o&&(o.older=n),n&&(n.newer=o),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=o)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var O=new WeakSet;function ee(t){t.size<=(t.max||-1)||O.has(t)||(O.add(t),setTimeout(function(){t.clean(),O.delete(t)},100))}var Se=function(t,e){var r=new P(t,e);return r.set=function(n,o){var i=P.prototype.set.call(this,n,o);return ee(this),i},r},Ne=function(t,e){var r=new U(t,e);return r.set=function(n,o){var i=U.prototype.set.call(this,n,o);return ee(this),i},r},je=Symbol.for("apollo.cacheSize"),te=exports.__assign({},j[je]),ke={};function re(t,e){ke[t]=e}function A(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(o){var i=n[o];i!==void 0&&(r[o]=i)})}),r}function Ae(t,e){return A(t,e,e.variables&&{variables:A(exports.__assign(exports.__assign({},t&&t.variables),e.variables))})}function Ce(t){return t.hasOwnProperty("graphQLErrors")}var xe=function(t){var e=y(y(y([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return Z(r)&&r.message||"Error message not found."}).join(`
2
+ `)},ze=function(t){z(e,t);function e(r){var n=r.graphQLErrors,o=r.protocolErrors,i=r.clientErrors,s=r.networkError,a=r.errorMessage,c=r.extraInfo,l=t.call(this,a)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=o||[],l.clientErrors=i||[],l.networkError=s||null,l.message=a||xe(l),l.extraInfo=c,l.cause=y(y(y([s],n||[],!0),o||[],!0),i||[],!0).find(function(v){return!!v})||null,l.__proto__=e.prototype,l}return e}(Error);const{toString:F,hasOwnProperty:Re}=Object.prototype,q=Function.prototype.toString,C=new Map;function Me(t,e){try{return x(t,e)}finally{C.clear()}}function x(t,e){if(t===e)return!0;const r=F.call(t),n=F.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Q(t,e))return!0;const o=W(t),i=W(e),s=o.length;if(s!==i.length)return!1;for(let a=0;a<s;++a)if(!Re.call(e,o[a]))return!1;for(let a=0;a<s;++a){const c=o[a];if(!x(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Q(t,e))return!0;const o=t.entries(),i=r==="[object Map]";for(;;){const s=o.next();if(s.done)break;const[a,c]=s.value;if(!e.has(a)||i&&!x(c,e.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let o=t.byteLength;if(o===e.byteLength)for(;o--&&t[o]===e[o];);return o===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=q.call(t);return o!==q.call(e)?!1:!Ie(o,De)}}return!1}function W(t){return Object.keys(t).filter(Te,t)}function Te(t){return this[t]!==void 0}const De="{ [native code] }";function Ie(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function Q(t,e){let r=C.get(t);if(r){if(r.has(e))return!0}else C.set(t,r=new Set);return r.add(e),!1}var S={exports:{}},G;function Le(){return G||(G=1,function(t){t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,ae)}(S)),S.exports}var g=Le();const Ue=se.getDefaultExportFromCjs(g),ne=le({__proto__:null,default:Ue},[g]);var H=Y?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function oe(){f("createContext"in ne,54);var t=g.createContext[H];return t||(Object.defineProperty(g.createContext,H,{value:t=g.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}function Pe(t){var e=g.useContext(oe()),r=t||e.client;return f(!!r,58),r}exports.DocumentType=void 0;(function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"})(exports.DocumentType||(exports.DocumentType={}));var d;function K(t){var e;switch(t){case exports.DocumentType.Query:e="Query";break;case exports.DocumentType.Mutation:e="Mutation";break;case exports.DocumentType.Subscription:e="Subscription";break}return e}function ie(t){d||(d=new Se(te.parser||1e3));var e=d.get(t);if(e)return e;var r,n,o;f(!!t&&!!t.kind,70,t);for(var i=[],s=[],a=[],c=[],l=0,v=t.definitions;l<v.length;l++){var h=v[l];if(h.kind==="FragmentDefinition"){i.push(h);continue}if(h.kind==="OperationDefinition")switch(h.operation){case"query":s.push(h);break;case"mutation":a.push(h);break;case"subscription":c.push(h);break}}f(!i.length||s.length||a.length||c.length,71),f(s.length+a.length+c.length<=1,72,t,s.length,c.length,a.length),n=s.length?exports.DocumentType.Query:exports.DocumentType.Mutation,!s.length&&!a.length&&(n=exports.DocumentType.Subscription);var m=s.length?s:a.length?a:c;f(m.length===1,73,t,m.length);var w=m[0];r=w.variableDefinitions||[],w.name&&w.name.kind==="Name"?o=w.name.value:o="data";var T={name:o,type:n,variables:r};return d.set(t,T),T}ie.resetCache=function(){d=void 0};globalThis.__DEV__!==!1&&re("parser",function(){return d?d.size:0});function Fe(t,e){var r=ie(t),n=K(e),o=K(r.type);f(r.type===e,74,n,n,o)}exports.ApolloError=ze;exports.AutoCleanedStrongCache=Ne;exports.React=ne;exports.__extends=z;exports.__rest=ce;exports.cacheSizes=te;exports.canUseDOM=X;exports.canUseLayoutEffect=ve;exports.canUseSymbol=Y;exports.compact=A;exports.equal=Me;exports.getApolloContext=oe;exports.invariant=f;exports.isApolloError=Ce;exports.isNonNullObject=Z;exports.mergeOptions=Ae;exports.newInvariantError=de;exports.registerGlobalCache=re;exports.rehacktExports=g;exports.useApolloClient=Pe;exports.verifyDocumentType=Fe;
@@ -0,0 +1,22 @@
1
+ "use strict";const U=require("./index-CjVXr8mh.js");function L(e,t){if(!!!e)throw new Error(t)}function ee(e){return typeof e=="object"&&e!==null}function te(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const ne=/\r\n|[\n\r]/g;function F(e,t){let n=0,s=1;for(const i of e.body.matchAll(ne)){if(typeof i.index=="number"||te(!1),i.index>=t)break;n=i.index+i[0].length,s+=1}return{line:s,column:t+1-n}}function ie(e){return G(e.source,F(e.source,e.start))}function G(e,t){const n=e.locationOffset.column-1,s="".padStart(n)+e.body,i=t.line-1,r=e.locationOffset.line-1,a=t.line+r,u=t.line===1?n:0,l=t.column+u,E=`${e.name}:${a}:${l}
2
+ `,p=s.split(/\r\n|[\n\r]/g),N=p[i];if(N.length>120){const m=Math.floor(l/80),b=l%80,f=[];for(let I=0;I<N.length;I+=80)f.push(N.slice(I,I+80));return E+V([[`${a} |`,f[0]],...f.slice(1,m+1).map(I=>["|",I]),["|","^".padStart(b)],["|",f[m+1]]])}return E+V([[`${a-1} |`,p[i-1]],[`${a} |`,N],["|","^".padStart(l)],[`${a+1} |`,p[i+1]]])}function V(e){const t=e.filter(([s,i])=>i!==void 0),n=Math.max(...t.map(([s])=>s.length));return t.map(([s,i])=>s.padStart(n)+(i?" "+i:"")).join(`
3
+ `)}function se(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class M extends Error{constructor(t,...n){var s,i,r;const{nodes:a,source:u,positions:l,path:E,originalError:p,extensions:N}=se(n);super(t),this.name="GraphQLError",this.path=E??void 0,this.originalError=p??void 0,this.nodes=B(Array.isArray(a)?a:a?[a]:void 0);const m=B((s=this.nodes)===null||s===void 0?void 0:s.map(f=>f.loc).filter(f=>f!=null));this.source=u??(m==null||(i=m[0])===null||i===void 0?void 0:i.source),this.positions=l??(m==null?void 0:m.map(f=>f.start)),this.locations=l&&u?l.map(f=>F(u,f)):m==null?void 0:m.map(f=>F(f.source,f.start));const b=ee(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(r=N??b)!==null&&r!==void 0?r:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,M):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
4
+
5
+ `+ie(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
6
+
7
+ `+G(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function B(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new M(`Syntax Error: ${n}`,{source:e,positions:[t]})}class re{constructor(t,n,s){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=s}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Y{constructor(t,n,s,i,r,a){this.kind=t,this.start=n,this.end=s,this.line=i,this.column=r,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const oe={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};new Set(Object.keys(oe));var x;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(x||(x={}));var w;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(w||(w={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function ae(e){return e===9||e===32}function D(e){return e>=48&&e<=57}function $(e){return e>=97&&e<=122||e>=65&&e<=90}function J(e){return $(e)||e===95}function ce(e){return $(e)||D(e)||e===95}function ue(e){var t;let n=Number.MAX_SAFE_INTEGER,s=null,i=-1;for(let a=0;a<e.length;++a){var r;const u=e[a],l=le(u);l!==u.length&&(s=(r=s)!==null&&r!==void 0?r:a,i=a,a!==0&&l<n&&(n=l))}return e.map((a,u)=>u===0?a:a.slice(n)).slice((t=s)!==null&&t!==void 0?t:0,i+1)}function le(e){let t=0;for(;t<e.length&&ae(e.charCodeAt(t));)++t;return t}var o;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(o||(o={}));class he{constructor(t){const n=new Y(o.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==o.EOF)do if(t.next)t=t.next;else{const n=de(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===o.COMMENT);return t}}function pe(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R}function _(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function C(e,t){return q(e.charCodeAt(t))&&X(e.charCodeAt(t+1))}function q(e){return e>=55296&&e<=56319}function X(e){return e>=56320&&e<=57343}function T(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){const s=String.fromCodePoint(n);return s==='"'?`'"'`:`"${s}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,s,i){const r=e.line,a=1+n-e.lineStart;return new Y(t,n,s,r,a,i)}function de(e,t){const n=e.source.body,s=n.length;let i=t;for(;i<s;){const r=n.charCodeAt(i);switch(r){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return fe(e,i);case 33:return h(e,o.BANG,i,i+1);case 36:return h(e,o.DOLLAR,i,i+1);case 38:return h(e,o.AMP,i,i+1);case 40:return h(e,o.PAREN_L,i,i+1);case 41:return h(e,o.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return h(e,o.SPREAD,i,i+3);break;case 58:return h(e,o.COLON,i,i+1);case 61:return h(e,o.EQUALS,i,i+1);case 64:return h(e,o.AT,i,i+1);case 91:return h(e,o.BRACKET_L,i,i+1);case 93:return h(e,o.BRACKET_R,i,i+1);case 123:return h(e,o.BRACE_L,i,i+1);case 124:return h(e,o.PIPE,i,i+1);case 125:return h(e,o.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?xe(e,i):me(e,i)}if(D(r)||r===45)return Ee(e,i,r);if(J(r))return Oe(e,i);throw d(e.source,i,r===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:_(r)||C(n,i)?`Unexpected character: ${T(e,i)}.`:`Invalid character: ${T(e,i)}.`)}return h(e,o.EOF,s,s)}function fe(e,t){const n=e.source.body,s=n.length;let i=t+1;for(;i<s;){const r=n.charCodeAt(i);if(r===10||r===13)break;if(_(r))++i;else if(C(n,i))i+=2;else break}return h(e,o.COMMENT,t,i,n.slice(t+1,i))}function Ee(e,t,n){const s=e.source.body;let i=t,r=n,a=!1;if(r===45&&(r=s.charCodeAt(++i)),r===48){if(r=s.charCodeAt(++i),D(r))throw d(e.source,i,`Invalid number, unexpected digit after 0: ${T(e,i)}.`)}else i=R(e,i,r),r=s.charCodeAt(i);if(r===46&&(a=!0,r=s.charCodeAt(++i),i=R(e,i,r),r=s.charCodeAt(i)),(r===69||r===101)&&(a=!0,r=s.charCodeAt(++i),(r===43||r===45)&&(r=s.charCodeAt(++i)),i=R(e,i,r),r=s.charCodeAt(i)),r===46||J(r))throw d(e.source,i,`Invalid number, expected digit but got: ${T(e,i)}.`);return h(e,a?o.FLOAT:o.INT,t,i,s.slice(t,i))}function R(e,t,n){if(!D(n))throw d(e.source,t,`Invalid number, expected digit but got: ${T(e,t)}.`);const s=e.source.body;let i=t+1;for(;D(s.charCodeAt(i));)++i;return i}function me(e,t){const n=e.source.body,s=n.length;let i=t+1,r=i,a="";for(;i<s;){const u=n.charCodeAt(i);if(u===34)return a+=n.slice(r,i),h(e,o.STRING,t,i+1,a);if(u===92){a+=n.slice(r,i);const l=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?Ne(e,i):Te(e,i):Ie(e,i);a+=l.value,i+=l.size,r=i;continue}if(u===10||u===13)break;if(_(u))++i;else if(C(n,i))i+=2;else throw d(e.source,i,`Invalid character within String: ${T(e,i)}.`)}throw d(e.source,i,"Unterminated string.")}function Ne(e,t){const n=e.source.body;let s=0,i=3;for(;i<12;){const r=n.charCodeAt(t+i++);if(r===125){if(i<5||!_(s))break;return{value:String.fromCodePoint(s),size:i}}if(s=s<<4|y(r),s<0)break}throw d(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Te(e,t){const n=e.source.body,s=j(n,t+2);if(_(s))return{value:String.fromCodePoint(s),size:6};if(q(s)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=j(n,t+8);if(X(i))return{value:String.fromCodePoint(s,i),size:12}}throw d(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function j(e,t){return y(e.charCodeAt(t))<<12|y(e.charCodeAt(t+1))<<8|y(e.charCodeAt(t+2))<<4|y(e.charCodeAt(t+3))}function y(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ie(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
8
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function xe(e,t){const n=e.source.body,s=n.length;let i=e.lineStart,r=t+3,a=r,u="";const l=[];for(;r<s;){const E=n.charCodeAt(r);if(E===34&&n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34){u+=n.slice(a,r),l.push(u);const p=h(e,o.BLOCK_STRING,t,r+3,ue(l).join(`
9
+ `));return e.line+=l.length-1,e.lineStart=i,p}if(E===92&&n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34&&n.charCodeAt(r+3)===34){u+=n.slice(a,r),a=r+1,r+=4;continue}if(E===10||E===13){u+=n.slice(a,r),l.push(u),E===13&&n.charCodeAt(r+1)===10?r+=2:++r,u="",a=r,i=r;continue}if(_(E))++r;else if(C(n,r))r+=2;else throw d(e.source,r,`Invalid character within String: ${T(e,r)}.`)}throw d(e.source,r,"Unterminated string.")}function Oe(e,t){const n=e.source.body,s=n.length;let i=t+1;for(;i<s;){const r=n.charCodeAt(i);if(ce(r))++i;else break}return h(e,o.NAME,t,i,n.slice(t,i))}const _e=10,Q=2;function z(e){return S(e,[])}function S(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ae(e,t);default:return String(e)}}function Ae(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(ye(e)){const s=e.toJSON();if(s!==e)return typeof s=="string"?s:S(s,n)}else if(Array.isArray(e))return ge(e,n);return De(e,n)}function ye(e){return typeof e.toJSON=="function"}function De(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>Q?"["+ve(e)+"]":"{ "+n.map(([i,r])=>i+": "+S(r,t)).join(", ")+" }"}function ge(e,t){if(e.length===0)return"[]";if(t.length>Q)return"[Array]";const n=Math.min(_e,e.length),s=e.length-n,i=[];for(let r=0;r<n;++r)i.push(S(e[r],t));return s===1?i.push("... 1 more item"):s>1&&i.push(`... ${s} more items`),"["+i.join(", ")+"]"}function ve(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const ke=globalThis.process&&process.env.NODE_ENV==="production",Ce=ke?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var s;const i=n.prototype[Symbol.toStringTag],r=Symbol.toStringTag in t?t[Symbol.toStringTag]:(s=t.constructor)===null||s===void 0?void 0:s.name;if(i===r){const a=z(t);throw new Error(`Cannot use ${i} "${a}" from another module or realm.
10
+
11
+ Ensure that there is only one instance of "graphql" in the node_modules
12
+ directory. If different versions of "graphql" are the dependencies of other
13
+ relied on modules, use "resolutions" to ensure only one version is installed.
14
+
15
+ https://yarnpkg.com/en/docs/selective-version-resolutions
16
+
17
+ Duplicate "graphql" modules cannot be used at the same time since different
18
+ versions may have different capabilities and behavior. The data from one
19
+ version used in the function from another could produce confusing and
20
+ spurious results.`)}}return!1};class H{constructor(t,n="GraphQL request",s={line:1,column:1}){typeof t=="string"||L(!1,`Body must be a string. Received: ${z(t)}.`),this.body=t,this.name=n,this.locationOffset=s,this.locationOffset.line>0||L(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||L(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Se(e){return Ce(e,H)}function be(e,t){const n=new Le(e,t),s=n.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:n.tokenCount}),s}class Le{constructor(t,n={}){const s=Se(t)?t:new H(t);this._lexer=new he(s),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:x.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let s;return this.peek(o.NAME)&&(s=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:s,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(o.NAME);switch(t.value){case"query":return x.QUERY;case"mutation":return x.MUTATION;case"subscription":return x.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let s,i;return this.expectOptionalToken(o.COLON)?(s=n,i=this.parseName()):i=n,this.node(t,{kind:c.FIELD,alias:s,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,s=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:s,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(o.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case o.BRACKET_L:return this.parseList(t);case o.BRACE_L:return this.parseObject(t);case o.INT:return this.advanceLexer(),this.node(n,{kind:c.INT,value:n.value});case o.FLOAT:return this.advanceLexer(),this.node(n,{kind:c.FLOAT,value:n.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:c.BOOLEAN,value:!0});case"false":return this.node(n,{kind:c.BOOLEAN,value:!1});case"null":return this.node(n,{kind:c.NULL});default:return this.node(n,{kind:c.ENUM,value:n.value})}case o.DOLLAR:if(t)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){const s=this._lexer.token.value;throw d(this._lexer.source,n.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:c.STRING,value:t.value,block:t.kind===o.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:c.LIST,values:this.any(o.BRACKET_L,n,o.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:c.OBJECT,fields:this.any(o.BRACE_L,n,o.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,s=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.OBJECT_FIELD,name:s,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(o.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(o.AT),this.node(n,{kind:c.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(o.BRACKET_L)){const s=this.parseTypeReference();this.expectToken(o.BRACKET_R),n=this.node(t,{kind:c.LIST_TYPE,type:s})}else n=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(t,{kind:c.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:c.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const s=this.parseConstDirectives(),i=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(t,{kind:c.SCHEMA_DEFINITION,description:n,directives:s,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(o.COLON);const s=this.parseNamedType();return this.node(t,{kind:c.OPERATION_TYPE_DEFINITION,operation:n,type:s})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const s=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:c.SCALAR_TYPE_DEFINITION,description:n,name:s,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const s=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.OBJECT_TYPE_DEFINITION,description:n,name:s,interfaces:i,directives:r,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),s=this.parseName(),i=this.parseArgumentDefs();this.expectToken(o.COLON);const r=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:c.FIELD_DEFINITION,description:n,name:s,arguments:i,type:r,directives:a})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),s=this.parseName();this.expectToken(o.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(o.EQUALS)&&(r=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:c.INPUT_VALUE_DEFINITION,description:n,name:s,type:i,defaultValue:r,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const s=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:c.INTERFACE_TYPE_DEFINITION,description:n,name:s,interfaces:i,directives:r,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const s=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(t,{kind:c.UNION_TYPE_DEFINITION,description:n,name:s,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const s=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(t,{kind:c.ENUM_TYPE_DEFINITION,description:n,name:s,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),s=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:c.ENUM_VALUE_DEFINITION,description:n,name:s,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw d(this._lexer.source,this._lexer.token.start,`${g(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const s=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:s,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===o.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),s=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(n.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:c.SCHEMA_EXTENSION,directives:n,operationTypes:s})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:c.SCALAR_TYPE_EXTENSION,name:n,directives:s})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),s=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(s.length===0&&i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.OBJECT_TYPE_EXTENSION,name:n,interfaces:s,directives:i,fields:r})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),s=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(s.length===0&&i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:c.INTERFACE_TYPE_EXTENSION,name:n,interfaces:s,directives:i,fields:r})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),s=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(s.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.UNION_TYPE_EXTENSION,name:n,directives:s,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),s=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(s.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.ENUM_TYPE_EXTENSION,name:n,directives:s,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),s=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(s.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:c.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:s,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);const s=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:c.DIRECTIVE_DEFINITION,description:n,name:s,arguments:i,repeatable:r,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(w,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new re(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw d(this._lexer.source,n.start,`Expected ${W(t)}, found ${g(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===o.NAME&&n.value===t)this.advanceLexer();else throw d(this._lexer.source,n.start,`Expected "${t}", found ${g(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===o.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return d(this._lexer.source,n.start,`Unexpected ${g(n)}.`)}any(t,n,s){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(s);)i.push(n.call(this));return i}optionalMany(t,n,s){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(s));return i}return[]}many(t,n,s){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(s));return i}delimitedMany(t,n){this.expectOptionalToken(t);const s=[];do s.push(n.call(this));while(this.expectOptionalToken(t));return s}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==o.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw d(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function g(e){const t=e.value;return W(e.kind)+(t!=null?` "${t}"`:"")}function W(e){return pe(e)?`"${e}"`:e}var v=new Map,P=new Map,Z=!0,k=!1;function K(e){return e.replace(/[\s,]+/g," ").trim()}function Re(e){return K(e.source.body.substring(e.start,e.end))}function Fe(e){var t=new Set,n=[];return e.definitions.forEach(function(s){if(s.kind==="FragmentDefinition"){var i=s.name.value,r=Re(s.loc),a=P.get(i);a&&!a.has(r)?Z&&console.warn("Warning: fragment with name "+i+` already exists.
21
+ graphql-tag enforces all fragment names across your application to be unique; read more about
22
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||P.set(i,a=new Set),a.add(r),t.has(r)||(t.add(r),n.push(s))}else n.push(s)}),U.__assign(U.__assign({},e),{definitions:n})}function we(e){var t=new Set(e.definitions);t.forEach(function(s){s.loc&&delete s.loc,Object.keys(s).forEach(function(i){var r=s[i];r&&typeof r=="object"&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function Pe(e){var t=K(e);if(!v.has(t)){var n=be(e,{experimentalFragmentVariables:k,allowLegacyFragmentVariables:k});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");v.set(t,we(Fe(n)))}return v.get(t)}function O(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var s=e[0];return t.forEach(function(i,r){i&&i.kind==="Document"?s+=i.loc.source.body:s+=i,s+=e[r+1]}),Pe(s)}function Me(){v.clear(),P.clear()}function Ue(){Z=!1}function Ve(){k=!0}function Be(){k=!1}var A={gql:O,resetCaches:Me,disableFragmentWarnings:Ue,enableExperimentalFragmentVariables:Ve,disableExperimentalFragmentVariables:Be};(function(e){e.gql=A.gql,e.resetCaches=A.resetCaches,e.disableFragmentWarnings=A.disableFragmentWarnings,e.enableExperimentalFragmentVariables=A.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=A.disableExperimentalFragmentVariables})(O||(O={}));O.default=O;exports.gql=O;
@@ -0,0 +1 @@
1
+ "use strict";function c(t){return t!==null&&(typeof t=="object"||typeof t=="function")}exports.isObject=c;
@@ -0,0 +1,6 @@
1
+ function n(t) {
2
+ return t !== null && (typeof t == "object" || typeof t == "function");
3
+ }
4
+ export {
5
+ n as i
6
+ };
@@ -0,0 +1,284 @@
1
+ import ee from "react";
2
+ var T = { exports: {} }, R = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.js
6
+ *
7
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var F;
13
+ function re() {
14
+ if (F) return R;
15
+ F = 1;
16
+ var l = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
17
+ function f(d, a, s) {
18
+ var m = null;
19
+ if (s !== void 0 && (m = "" + s), a.key !== void 0 && (m = "" + a.key), "key" in a) {
20
+ s = {};
21
+ for (var E in a)
22
+ E !== "key" && (s[E] = a[E]);
23
+ } else s = a;
24
+ return a = s.ref, {
25
+ $$typeof: l,
26
+ type: d,
27
+ key: m,
28
+ ref: a !== void 0 ? a : null,
29
+ props: s
30
+ };
31
+ }
32
+ return R.Fragment = _, R.jsx = f, R.jsxs = f, R;
33
+ }
34
+ var b = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var D;
45
+ function te() {
46
+ return D || (D = 1, process.env.NODE_ENV !== "production" && function() {
47
+ function l(e) {
48
+ if (e == null) return null;
49
+ if (typeof e == "function")
50
+ return e.$$typeof === Z ? null : e.displayName || e.name || null;
51
+ if (typeof e == "string") return e;
52
+ switch (e) {
53
+ case p:
54
+ return "Fragment";
55
+ case J:
56
+ return "Profiler";
57
+ case U:
58
+ return "StrictMode";
59
+ case G:
60
+ return "Suspense";
61
+ case X:
62
+ return "SuspenseList";
63
+ case H:
64
+ return "Activity";
65
+ }
66
+ if (typeof e == "object")
67
+ switch (typeof e.tag == "number" && console.error(
68
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
+ ), e.$$typeof) {
70
+ case W:
71
+ return "Portal";
72
+ case z:
73
+ return (e.displayName || "Context") + ".Provider";
74
+ case q:
75
+ return (e._context.displayName || "Context") + ".Consumer";
76
+ case V:
77
+ var r = e.render;
78
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
+ case B:
80
+ return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
81
+ case g:
82
+ r = e._payload, e = e._init;
83
+ try {
84
+ return l(e(r));
85
+ } catch {
86
+ }
87
+ }
88
+ return null;
89
+ }
90
+ function _(e) {
91
+ return "" + e;
92
+ }
93
+ function f(e) {
94
+ try {
95
+ _(e);
96
+ var r = !1;
97
+ } catch {
98
+ r = !0;
99
+ }
100
+ if (r) {
101
+ r = console;
102
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
103
+ return t.call(
104
+ r,
105
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
+ n
107
+ ), _(e);
108
+ }
109
+ }
110
+ function d(e) {
111
+ if (e === p) return "<>";
112
+ if (typeof e == "object" && e !== null && e.$$typeof === g)
113
+ return "<...>";
114
+ try {
115
+ var r = l(e);
116
+ return r ? "<" + r + ">" : "<...>";
117
+ } catch {
118
+ return "<...>";
119
+ }
120
+ }
121
+ function a() {
122
+ var e = k.A;
123
+ return e === null ? null : e.getOwner();
124
+ }
125
+ function s() {
126
+ return Error("react-stack-top-frame");
127
+ }
128
+ function m(e) {
129
+ if (h.call(e, "key")) {
130
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
+ if (r && r.isReactWarning) return !1;
132
+ }
133
+ return e.key !== void 0;
134
+ }
135
+ function E(e, r) {
136
+ function t() {
137
+ y || (y = !0, console.error(
138
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
+ r
140
+ ));
141
+ }
142
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
143
+ get: t,
144
+ configurable: !0
145
+ });
146
+ }
147
+ function L() {
148
+ var e = l(this.type);
149
+ return N[e] || (N[e] = !0, console.error(
150
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
+ )), e = this.props.ref, e !== void 0 ? e : null;
152
+ }
153
+ function M(e, r, t, n, c, u, A, S) {
154
+ return t = u.ref, e = {
155
+ $$typeof: x,
156
+ type: e,
157
+ key: r,
158
+ props: u,
159
+ _owner: c
160
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
161
+ enumerable: !1,
162
+ get: L
163
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
+ configurable: !1,
165
+ enumerable: !1,
166
+ writable: !0,
167
+ value: 0
168
+ }), Object.defineProperty(e, "_debugInfo", {
169
+ configurable: !1,
170
+ enumerable: !1,
171
+ writable: !0,
172
+ value: null
173
+ }), Object.defineProperty(e, "_debugStack", {
174
+ configurable: !1,
175
+ enumerable: !1,
176
+ writable: !0,
177
+ value: A
178
+ }), Object.defineProperty(e, "_debugTask", {
179
+ configurable: !1,
180
+ enumerable: !1,
181
+ writable: !0,
182
+ value: S
183
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
+ }
185
+ function j(e, r, t, n, c, u, A, S) {
186
+ var o = r.children;
187
+ if (o !== void 0)
188
+ if (n)
189
+ if (Q(o)) {
190
+ for (n = 0; n < o.length; n++)
191
+ w(o[n]);
192
+ Object.freeze && Object.freeze(o);
193
+ } else
194
+ console.error(
195
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
+ );
197
+ else w(o);
198
+ if (h.call(r, "key")) {
199
+ o = l(e);
200
+ var i = Object.keys(r).filter(function(K) {
201
+ return K !== "key";
202
+ });
203
+ n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ `A props object containing a "key" prop is being spread into JSX:
205
+ let props = %s;
206
+ <%s {...props} />
207
+ React keys must be passed directly to JSX without using spread:
208
+ let props = %s;
209
+ <%s key={someKey} {...props} />`,
210
+ n,
211
+ o,
212
+ i,
213
+ o
214
+ ), I[o + n] = !0);
215
+ }
216
+ if (o = null, t !== void 0 && (f(t), o = "" + t), m(r) && (f(r.key), o = "" + r.key), "key" in r) {
217
+ t = {};
218
+ for (var P in r)
219
+ P !== "key" && (t[P] = r[P]);
220
+ } else t = r;
221
+ return o && E(
222
+ t,
223
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
+ ), M(
225
+ e,
226
+ o,
227
+ u,
228
+ c,
229
+ a(),
230
+ t,
231
+ A,
232
+ S
233
+ );
234
+ }
235
+ function w(e) {
236
+ typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
237
+ }
238
+ var v = ee, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, h = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
239
+ return null;
240
+ };
241
+ v = {
242
+ "react-stack-bottom-frame": function(e) {
243
+ return e();
244
+ }
245
+ };
246
+ var y, N = {}, C = v["react-stack-bottom-frame"].bind(
247
+ v,
248
+ s
249
+ )(), Y = O(d(s)), I = {};
250
+ b.Fragment = p, b.jsx = function(e, r, t, n, c) {
251
+ var u = 1e4 > k.recentlyCreatedOwnerStacks++;
252
+ return j(
253
+ e,
254
+ r,
255
+ t,
256
+ !1,
257
+ n,
258
+ c,
259
+ u ? Error("react-stack-top-frame") : C,
260
+ u ? O(d(e)) : Y
261
+ );
262
+ }, b.jsxs = function(e, r, t, n, c) {
263
+ var u = 1e4 > k.recentlyCreatedOwnerStacks++;
264
+ return j(
265
+ e,
266
+ r,
267
+ t,
268
+ !0,
269
+ n,
270
+ c,
271
+ u ? Error("react-stack-top-frame") : C,
272
+ u ? O(d(e)) : Y
273
+ );
274
+ };
275
+ }()), b;
276
+ }
277
+ var $;
278
+ function ne() {
279
+ return $ || ($ = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
280
+ }
281
+ var ae = ne();
282
+ export {
283
+ ae as j
284
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";const ee=require("react");var T={exports:{}},R={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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
+ */var F;function re(){if(F)return R;F=1;var l=Symbol.for("react.transitional.element"),_=Symbol.for("react.fragment");function f(d,a,s){var m=null;if(s!==void 0&&(m=""+s),a.key!==void 0&&(m=""+a.key),"key"in a){s={};for(var E in a)E!=="key"&&(s[E]=a[E])}else s=a;return a=s.ref,{$$typeof:l,type:d,key:m,ref:a!==void 0?a:null,props:s}}return R.Fragment=_,R.jsx=f,R.jsxs=f,R}var b={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var D;function te(){return D||(D=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case G:return"Suspense";case X:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case W:return"Portal";case z:return(e.displayName||"Context")+".Provider";case J:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function _(e){return""+e}function f(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function d(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function m(e){if(h.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){y||(y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function L(){var e=l(this.type);return N[e]||(N[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function M(e,r,t,n,c,u,A,S){return t=u.ref,e={$$typeof:x,type:e,key:r,props:u,_owner:c},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:L}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function j(e,r,t,n,c,u,A,S){var o=r.children;if(o!==void 0)if(n)if(Q(o)){for(n=0;n<o.length;n++)w(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(o);if(h.call(r,"key")){o=l(e);var i=Object.keys(r).filter(function(K){return K!=="key"});n=0<i.length?"{key: someKey, "+i.join(": ..., ")+": ...}":"{key: someKey}",I[o+n]||(i=0<i.length?"{"+i.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,n,o,i,o),I[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),m(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,o,u,c,a(),t,A,S)}function w(e){typeof e=="object"&&e!==null&&e.$$typeof===x&&e._store&&(e._store.validated=1)}var v=ee,x=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,Q=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(e){return e()}};var y,N={},C=v["react-stack-bottom-frame"].bind(v,s)(),Y=O(d(s)),I={};b.Fragment=p,b.jsx=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!1,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)},b.jsxs=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!0,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)}}()),b}var $;function ne(){return $||($=1,process.env.NODE_ENV==="production"?T.exports=re():T.exports=te()),T.exports}var oe=ne();exports.jsxRuntimeExports=oe;
@@ -0,0 +1,61 @@
1
+ import { j as h } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { g as x } from "./index-BgUMV1hv.js";
3
+ import { u as d } from "./useQuery-CJdYhuQu.js";
4
+ import { createContext as g, useContext as A } from "react";
5
+ const t = g({
6
+ user: null,
7
+ loading: !1,
8
+ error: null,
9
+ isLoggedIn: !1,
10
+ isAdmin: !1,
11
+ refreshUser: async () => Promise.resolve()
12
+ }), P = x`
13
+ query getCurrentUser {
14
+ me {
15
+ id
16
+ username
17
+ email
18
+ role
19
+ }
20
+ }
21
+ `;
22
+ function v({
23
+ adminRole: r = "admin",
24
+ children: s,
25
+ getCurrentUserQuery: n = P,
26
+ options: i = {},
27
+ pollInterval: u = 5 * 60 * 1e3
28
+ }) {
29
+ const { data: o, error: l, loading: c, refetch: a } = d(n, {
30
+ fetchPolicy: "cache-and-network",
31
+ nextFetchPolicy: "cache-first",
32
+ errorPolicy: "all",
33
+ pollInterval: u,
34
+ ...i
35
+ }), e = (o == null ? void 0 : o.me) || null, m = !!e, f = (e == null ? void 0 : e.role) === r;
36
+ return /* @__PURE__ */ h.jsx(
37
+ t.Provider,
38
+ {
39
+ value: {
40
+ user: e,
41
+ loading: c,
42
+ error: l ?? null,
43
+ isLoggedIn: m,
44
+ isAdmin: f,
45
+ refreshUser: a
46
+ },
47
+ children: s
48
+ }
49
+ );
50
+ }
51
+ function C() {
52
+ const r = A(t);
53
+ if (!r)
54
+ throw new Error("useOxAuth must be used within an AuthProvider");
55
+ return r;
56
+ }
57
+ export {
58
+ v as O,
59
+ t as a,
60
+ C as u
61
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";const f=require("./jsx-runtime-DUiatUiq.js"),m=require("./index-XTQUUzZ1.js"),A=require("./useQuery-B_ce5e8f.js"),s=require("react"),n=s.createContext({user:null,loading:!1,error:null,isLoggedIn:!1,isAdmin:!1,refreshUser:async()=>Promise.resolve()}),g=m.gql`
2
+ query getCurrentUser {
3
+ me {
4
+ id
5
+ username
6
+ email
7
+ role
8
+ }
9
+ }
10
+ `;function P({adminRole:r="admin",children:o,getCurrentUserQuery:u=g,options:i={},pollInterval:c=5*60*1e3}){const{data:t,error:l,loading:x,refetch:h}=A.useQuery(u,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",pollInterval:c,...i}),e=(t==null?void 0:t.me)||null,a=!!e,d=(e==null?void 0:e.role)===r;return f.jsxRuntimeExports.jsx(n.Provider,{value:{user:e,loading:x,error:l??null,isLoggedIn:a,isAdmin:d,refreshUser:h},children:o})}function y(){const r=s.useContext(n);if(!r)throw new Error("useOxAuth must be used within an AuthProvider");return r}exports.OxAuthContext=n;exports.OxAuthProvider=P;exports.useOxAuth=y;