@obb871001/api-integration-sdk 1.0.15 → 1.0.18

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 (3) hide show
  1. package/dist/index.cjs +10 -10
  2. package/dist/index.js +266 -230
  3. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@tanstack/react-query");const D=require("react"),fr=require("axios"),N=D.createContext(null),dr=()=>{const b=D.useContext(N);if(!b)throw new Error("useApiContext must be used within ApiProvider");return b},vr=()=>D.useContext(N)||{recentlyCreatedOwnerStacks:[]};var q={exports:{}},$={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dr=require("@tanstack/react-query"),C=require("react"),vr=require("axios"),Q=C.createContext(null),xe=()=>{const c=C.useContext(Q);if(!c)throw new Error("useApiContext must be used within ApiProvider");return c},pr=()=>{const{client:c}=xe(),v=C.useCallback(async d=>{const{mac_address:p="",app_version:o="",anydesk_id:m=""}=d,{data:y}=await c.post("/cash-register/login",{mac_address:p,app_version:o,anydesk_id:m});return y},[c]),_=C.useCallback(async()=>{const{data:d}=await c.get("/getMemberInfo");return d},[c]),R=C.useCallback(async()=>{const{data:d}=await c.get("/getGameList");return d},[c]),T=C.useCallback(async()=>{const{data:d}=await c.get("/getNowCurrencyExchange");return d},[c]),P=C.useCallback(async()=>{const{data:d}=await c.get("/getFavoriteGame");return d},[c]);return{machineLoginApi:v,userInfoApi:_,userGameListApi:R,userFavoriteGameApi:P,userCurrencyExchangeApi:T}},yr=()=>{const{userInfoApi:c}=pr(),{data:v,isFetching:_}=dr.useQueries({queries:[{queryKey:["getMemberInfo"],queryFn:c,refetchInterval:5e4}]});return{data:v,isFetching:_}};var V={exports:{}},$={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Oe;function pr(){if(Oe)return $;Oe=1;var b=D,E=Symbol.for("react.element"),T=Symbol.for("react.fragment"),R=Object.prototype.hasOwnProperty,O=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,w={key:!0,ref:!0,__self:!0,__source:!0};function m(p,u,g){var h,_={},x=null,Y=null;g!==void 0&&(x=""+g),u.key!==void 0&&(x=""+u.key),u.ref!==void 0&&(Y=u.ref);for(h in u)R.call(u,h)&&!w.hasOwnProperty(h)&&(_[h]=u[h]);if(p&&p.defaultProps)for(h in u=p.defaultProps,u)_[h]===void 0&&(_[h]=u[h]);return{$$typeof:E,type:p,key:x,ref:Y,props:_,_owner:O.current}}return $.Fragment=T,$.jsx=m,$.jsxs=m,$}var W={};/**
9
+ */var we;function gr(){if(we)return $;we=1;var c=C,v=Symbol.for("react.element"),_=Symbol.for("react.fragment"),R=Object.prototype.hasOwnProperty,T=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function d(p,o,m){var y,w={},x=null,Y=null;m!==void 0&&(x=""+m),o.key!==void 0&&(x=""+o.key),o.ref!==void 0&&(Y=o.ref);for(y in o)R.call(o,y)&&!P.hasOwnProperty(y)&&(w[y]=o[y]);if(p&&p.defaultProps)for(y in o=p.defaultProps,o)w[y]===void 0&&(w[y]=o[y]);return{$$typeof:v,type:p,key:x,ref:Y,props:w,_owner:T.current}}return $.Fragment=_,$.jsx=d,$.jsxs=d,$}var W={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var xe;function hr(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&(function(){var b=D,E=Symbol.for("react.element"),T=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),p=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),Q=Symbol.iterator,Pe="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var r=Q&&e[Q]||e[Pe];return typeof r=="function"?r:null}var j=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=j.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var ke=!1,Ae=!1,De=!1,Fe=!1,Ie=!1,ee;ee=Symbol.for("react.module.reference");function $e(e){return!!(typeof e=="string"||typeof e=="function"||e===R||e===w||Ie||e===O||e===g||e===h||Fe||e===Y||ke||Ae||De||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===_||e.$$typeof===m||e.$$typeof===p||e.$$typeof===u||e.$$typeof===ee||e.getModuleId!==void 0))}function We(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function re(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case T:return"Portal";case w:return"Profiler";case O:return"StrictMode";case g:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return re(r)+".Consumer";case m:var t=e;return re(t._context)+".Provider";case u:return We(e,e.render,"ForwardRef");case _:var n=e.displayName||null;return n!==null?n:C(e.type)||"Memo";case x:{var o=e,s=o._payload,i=o._init;try{return C(i(s))}catch{return null}}}return null}var S=Object.assign,F=0,te,ne,ae,ie,oe,ue,se;function le(){}le.__reactDisabledLog=!0;function Ye(){{if(F===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Le(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:ie}),group:S({},e,{value:oe}),groupCollapsed:S({},e,{value:ue}),groupEnd:S({},e,{value:se})})}F<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=j.ReactCurrentDispatcher,B;function L(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
18
- `+B+e}}var K=!1,M;{var Me=typeof WeakMap=="function"?WeakMap:Map;M=new Me}function ce(e,r){if(!e||K)return"";{var t=M.get(e);if(t!==void 0)return t}var n;K=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=J.current,J.current=null,Ye();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
19
- `),d=n.stack.split(`
20
- `),l=a.length-1,c=d.length-1;l>=1&&c>=0&&a[l]!==d[c];)c--;for(;l>=1&&c>=0;l--,c--)if(a[l]!==d[c]){if(l!==1||c!==1)do if(l--,c--,c<0||a[l]!==d[c]){var y=`
21
- `+a[l].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,y),y}while(l>=1&&c>=0);break}}}finally{K=!1,J.current=s,Le(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",P=A?L(A):"";return typeof e=="function"&&M.set(e,P),P}function Ve(e,r,t){return ce(e,!1)}function Ue(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function V(e,r,t){if(e==null)return"";if(typeof e=="function")return ce(e,Ue(e));if(typeof e=="string")return L(e);switch(e){case g:return L("Suspense");case h:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return Ve(e.render);case _:return V(e.type,r,t);case x:{var n=e,o=n._payload,s=n._init;try{return V(s(o),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,fe={},de=j.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function qe(e,r,t,n,o){{var s=Function.call.bind(I);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var d=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(U(o),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),U(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,U(o),f("Failed %s type: %s",t,a.message),U(null))}}}var Ne=Array.isArray;function z(e){return Ne(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Be(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Be(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),ve(e)}var he=j.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ye,be;function ze(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Xe(e,r){typeof e.ref=="string"&&he.current}function He(e,r){{var t=function(){ye||(ye=!0,f("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){be||(be=!0,f("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Qe=function(e,r,t,n,o,s,i){var a={$$typeof:E,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,o){{var s,i={},a=null,d=null;t!==void 0&&(pe(t),a=""+t),Ge(r)&&(pe(r.key),a=""+r.key),ze(r)&&(d=r.ref,Xe(r,o));for(s in r)I.call(r,s)&&!Ke.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||d){var c=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&He(i,c),d&&Ze(i,c)}return Qe(e,a,d,o,n,he.current,i)}}var G=j.ReactCurrentOwner,Ee=j.ReactDebugCurrentFrame;function k(e){if(e){var r=e._owner,t=V(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var X;X=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===E}function Re(){{if(G.current){var e=C(G.current.type);if(e)return`
17
+ */var Pe;function hr(){return Pe||(Pe=1,process.env.NODE_ENV!=="production"&&(function(){var c=C,v=Symbol.for("react.element"),_=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),Z=Symbol.iterator,Se="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[Se];return typeof r=="function"?r:null}var k=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];ke("error",e,t)}}function ke(e,r,t){{var n=k.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Ae=!1,Fe=!1,De=!1,Ie=!1,$e=!1,ee;ee=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===R||e===P||$e||e===T||e===m||e===y||Ie||e===Y||Ae||Fe||De||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===w||e.$$typeof===d||e.$$typeof===p||e.$$typeof===o||e.$$typeof===ee||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var u=r.displayName||r.name||"";return u!==""?t+"("+u+")":t}function re(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case _:return"Portal";case P:return"Profiler";case T:return"StrictMode";case m:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var r=e;return re(r)+".Consumer";case d:var t=e;return re(t._context)+".Provider";case o:return Ye(e,e.render,"ForwardRef");case w:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case x:{var u=e,s=u._payload,i=u._init;try{return O(i(s))}catch{return null}}}return null}var S=Object.assign,D=0,te,ne,ae,ie,oe,ue,se;function ce(){}ce.__reactDisabledLog=!0;function Le(){{if(D===0){te=console.log,ne=console.info,ae=console.warn,ie=console.error,oe=console.group,ue=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Me(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:te}),info:S({},e,{value:ne}),warn:S({},e,{value:ae}),error:S({},e,{value:ie}),group:S({},e,{value:oe}),groupCollapsed:S({},e,{value:ue}),groupEnd:S({},e,{value:se})})}D<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=k.ReactCurrentDispatcher,J;function L(e,r,t){{if(J===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
18
+ `+J+e}}var B=!1,M;{var Ue=typeof WeakMap=="function"?WeakMap:Map;M=new Ue}function le(e,r){if(!e||B)return"";{var t=M.get(e);if(t!==void 0)return t}var n;B=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=N.current,N.current=null,Le();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(b){n=b}Reflect.construct(e,[],i)}else{try{i.call()}catch(b){n=b}e.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
19
+ `),h=n.stack.split(`
20
+ `),l=a.length-1,f=h.length-1;l>=1&&f>=0&&a[l]!==h[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==h[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==h[f]){var E=`
21
+ `+a[l].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,E),E}while(l>=1&&f>=0);break}}}finally{B=!1,N.current=s,Me(),Error.prepareStackTrace=u}var F=e?e.displayName||e.name:"",j=F?L(F):"";return typeof e=="function"&&M.set(e,j),j}function qe(e,r,t){return le(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return le(e,Ve(e));if(typeof e=="string")return L(e);switch(e){case m:return L("Suspense");case y:return L("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case o:return qe(e.render);case w:return U(e.type,r,t);case x:{var n=e,u=n._payload,s=n._init;try{return U(s(u),r,t)}catch{}}}return""}var I=Object.prototype.hasOwnProperty,fe={},de=k.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);de.setExtraStackFrame(t)}else de.setExtraStackFrame(null)}function Ne(e,r,t,n,u){{var s=Function.call.bind(I);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(q(u),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),q(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,q(u),g("Failed %s type: %s",t,a.message),q(null))}}}var Je=Array.isArray;function G(e){return Je(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return ve(e),!1}catch{return!0}}function ve(e){return""+e}function pe(e){if(Ge(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),ve(e)}var ye=k.ReactCurrentOwner,Ke={key:!0,ref:!0,__self:!0,__source:!0},ge,he;function ze(e){if(I.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){typeof e.ref=="string"&&ye.current}function Qe(e,r){{var t=function(){ge||(ge=!0,g("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){he||(he=!0,g("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,n,u,s,i){var a={$$typeof:v,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,r,t,n,u){{var s,i={},a=null,h=null;t!==void 0&&(pe(t),a=""+t),Xe(r)&&(pe(r.key),a=""+r.key),ze(r)&&(h=r.ref,He(r,u));for(s in r)I.call(r,s)&&!Ke.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var l=e.defaultProps;for(s in l)i[s]===void 0&&(i[s]=l[s])}if(a||h){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Qe(i,f),h&&Ze(i,f)}return er(e,a,h,u,n,ye.current,i)}}var K=k.ReactCurrentOwner,be=k.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var z;z=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function Ee(){{if(K.current){var e=O(K.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function rr(e){return""}var ge={};function tr(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function tr(e){return""}var _e={};function nr(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
24
 
25
- Check the top-level render call using <`+t+">.")}return r}}function _e(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(ge[t])return;ge[t]=!0;var n="";e&&e._owner&&e._owner!==G.current&&(n=" It was passed a child from "+C(e._owner.type)+"."),k(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),k(null)}}function me(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&_e(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=we(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)H(i.value)&&_e(i.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===u||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=C(r);qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=C(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){k(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),k(null);break}}e.ref!==null&&(k(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),k(null))}}var Ce={};function Te(e,r,t,n,o,s){{var i=$e(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var d=rr();d?a+=d:a+=Re();var l;e===null?l="null":z(e)?l="array":e!==void 0&&e.$$typeof===E?(l="<"+(C(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var c=er(e,r,t,o,s);if(c==null)return c;if(i){var y=r.children;if(y!==void 0)if(n)if(z(y)){for(var A=0;A<y.length;A++)me(y[A],e);Object.freeze&&Object.freeze(y)}else f("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 me(y,e)}if(I.call(r,"key")){var P=C(e),v=Object.keys(r).filter(function(cr){return cr!=="key"}),Z=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[P+Z]){var lr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+t+">.")}return r}}function me(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),A(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function Re(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&me(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)X(i.value)&&me(i.value,r)}}}function ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===o||r.$$typeof===w))t=r.propTypes;else return;if(t){var n=O(r);Ne(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var u=O(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Ce={};function Te(e,r,t,n,u,s){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=tr();h?a+=h:a+=Ee();var l;e===null?l="null":G(e)?l="array":e!==void 0&&e.$$typeof===v?(l="<"+(O(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,a)}var f=rr(e,r,t,u,s);if(f==null)return f;if(i){var E=r.children;if(E!==void 0)if(n)if(G(E)){for(var F=0;F<E.length;F++)Re(E[F],e);Object.freeze&&Object.freeze(E)}else g("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 Re(E,e)}if(I.call(r,"key")){var j=O(e),b=Object.keys(r).filter(function(fr){return fr!=="key"}),H=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Ce[j+H]){var lr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Z,P,lr,P),Ce[P+Z]=!0}}return e===R?ar(c):nr(c),c}}function ir(e,r,t){return Te(e,r,t,!0)}function or(e,r,t){return Te(e,r,t,!1)}var ur=or,sr=ir;W.Fragment=R,W.jsx=ur,W.jsxs=sr})()),W}var Se;function yr(){return Se||(Se=1,process.env.NODE_ENV==="production"?q.exports=pr():q.exports=hr()),q.exports}var br=yr();function Er({baseURL:b,getToken:E,timeoutMs:T=15e3,axiosInstance:R,currency:O,lng:w,onError:m}={}){const p=R??fr.create({baseURL:b,timeout:T,headers:{"Content-Type":"application/json"}});return p.interceptors.request.use(async u=>{if(E){const g=await E();g&&(u.headers=u.headers||{},u.headers.Authorization=`Bearer ${g}`)}return u}),p.interceptors.request.use(u=>{u.headers.Currency=O,u.headers["currency-code"]=O,u.headers.lang=w}),p.interceptors.response.use(u=>u,u=>m?m(u,{instance:p}):Promise.reject(u)),p}function Rr({children:b,...E}){const T={recentlyCreatedOwnerStacks:[]},R=D.useMemo(()=>Er(E),[E]);return br.jsx(N.Provider,{value:{client:R,...T},children:b})}exports.ApiCtx=N;exports.ApiProvider=Rr;exports.useApiContext=dr;exports.useApiContextSafe=vr;
30
+ <%s key={someKey} {...props} />`,H,j,lr,j),Ce[j+H]=!0}}return e===R?ir(f):ar(f),f}}function or(e,r,t){return Te(e,r,t,!0)}function ur(e,r,t){return Te(e,r,t,!1)}var sr=ur,cr=or;W.Fragment=R,W.jsx=sr,W.jsxs=cr})()),W}var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV==="production"?V.exports=gr():V.exports=hr()),V.exports}var Er=br();function _r({baseURL:c,getToken:v,timeoutMs:_=15e3,axiosInstance:R,currency:T,lng:P,onError:d}={}){const p=R??vr.create({baseURL:c,timeout:_,headers:{"Content-Type":"application/json"}});return p.interceptors.request.use(async o=>{if(v){const m=await v();m&&(o.headers=o.headers||{},o.headers.Authorization=`Bearer ${m}`)}return o}),p.interceptors.request.use(o=>{o.headers.Currency=T,o.headers["currency-code"]=T,o.headers.lang=P}),p.interceptors.response.use(o=>o,o=>d?d(o,{instance:p}):Promise.reject(o)),p}function mr({children:c,...v}){const _=C.useMemo(()=>_r(v),[v]);return Er.jsx(Q.Provider,{value:{client:_},children:c})}exports.ApiCtx=Q;exports.ApiProvider=mr;exports.useApiContext=xe;exports.usePeriodicDataUpdater=yr;
package/dist/index.js CHANGED
@@ -1,16 +1,55 @@
1
- import "@tanstack/react-query";
2
- import xe, { createContext as dr, useContext as Pe, useMemo as vr } from "react";
3
- import pr from "axios";
4
- const H = dr(null), Tr = () => {
5
- const b = Pe(H);
6
- if (!b)
1
+ import { useQueries as dr } from "@tanstack/react-query";
2
+ import Pe, { createContext as vr, useContext as pr, useCallback as I, useMemo as hr } from "react";
3
+ import yr from "axios";
4
+ const xe = vr(null), gr = () => {
5
+ const c = pr(xe);
6
+ if (!c)
7
7
  throw new Error("useApiContext must be used within ApiProvider");
8
- return b;
9
- }, Cr = () => Pe(H) || {
10
- recentlyCreatedOwnerStacks: []
11
- // 其他預設屬性...
8
+ return c;
9
+ }, mr = () => {
10
+ const { client: c } = gr(), v = I(
11
+ async (d) => {
12
+ const { mac_address: p = "", app_version: o = "", anydesk_id: _ = "" } = d, { data: h } = await c.post("/cash-register/login", {
13
+ mac_address: p,
14
+ app_version: o,
15
+ anydesk_id: _
16
+ });
17
+ return h;
18
+ },
19
+ [c]
20
+ ), E = I(async () => {
21
+ const { data: d } = await c.get("/getMemberInfo");
22
+ return d;
23
+ }, [c]), R = I(async () => {
24
+ const { data: d } = await c.get("/getGameList");
25
+ return d;
26
+ }, [c]), T = I(async () => {
27
+ const { data: d } = await c.get("/getNowCurrencyExchange");
28
+ return d;
29
+ }, [c]), w = I(async () => {
30
+ const { data: d } = await c.get("/getFavoriteGame");
31
+ return d;
32
+ }, [c]);
33
+ return {
34
+ machineLoginApi: v,
35
+ userInfoApi: E,
36
+ userGameListApi: R,
37
+ userFavoriteGameApi: w,
38
+ userCurrencyExchangeApi: T
39
+ };
40
+ }, Pr = () => {
41
+ const { userInfoApi: c } = mr(), { data: v, isFetching: E } = dr({
42
+ queries: [
43
+ {
44
+ queryKey: ["getMemberInfo"],
45
+ queryFn: c,
46
+ refetchInterval: 5e4
47
+ }
48
+ ]
49
+ });
50
+ return { data: v, isFetching: E };
12
51
  };
13
- var U = { exports: {} }, I = {};
52
+ var q = { exports: {} }, $ = {};
14
53
  /**
15
54
  * @license React
16
55
  * react-jsx-runtime.production.min.js
@@ -21,20 +60,20 @@ var U = { exports: {} }, I = {};
21
60
  * LICENSE file in the root directory of this source tree.
22
61
  */
23
62
  var Ce;
24
- function hr() {
25
- if (Ce) return I;
63
+ function br() {
64
+ if (Ce) return $;
26
65
  Ce = 1;
27
- var b = xe, E = Symbol.for("react.element"), C = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, O = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
28
- function m(p, u, _) {
29
- var h, g = {}, w = null, W = null;
30
- _ !== void 0 && (w = "" + _), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (W = u.ref);
31
- for (h in u) R.call(u, h) && !S.hasOwnProperty(h) && (g[h] = u[h]);
32
- if (p && p.defaultProps) for (h in u = p.defaultProps, u) g[h] === void 0 && (g[h] = u[h]);
33
- return { $$typeof: E, type: p, key: w, ref: W, props: g, _owner: O.current };
66
+ var c = Pe, v = Symbol.for("react.element"), E = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, T = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
67
+ function d(p, o, _) {
68
+ var h, C = {}, P = null, Y = null;
69
+ _ !== void 0 && (P = "" + _), o.key !== void 0 && (P = "" + o.key), o.ref !== void 0 && (Y = o.ref);
70
+ for (h in o) R.call(o, h) && !w.hasOwnProperty(h) && (C[h] = o[h]);
71
+ if (p && p.defaultProps) for (h in o = p.defaultProps, o) C[h] === void 0 && (C[h] = o[h]);
72
+ return { $$typeof: v, type: p, key: P, ref: Y, props: C, _owner: T.current };
34
73
  }
35
- return I.Fragment = C, I.jsx = m, I.jsxs = m, I;
74
+ return $.Fragment = E, $.jsx = d, $.jsxs = d, $;
36
75
  }
37
- var $ = {};
76
+ var W = {};
38
77
  /**
39
78
  * @license React
40
79
  * react-jsx-runtime.development.js
@@ -44,18 +83,18 @@ var $ = {};
44
83
  * This source code is licensed under the MIT license found in the
45
84
  * LICENSE file in the root directory of this source tree.
46
85
  */
47
- var Oe;
48
- function yr() {
49
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
50
- var b = xe, E = Symbol.for("react.element"), C = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), p = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Z = Symbol.iterator, Se = "@@iterator";
86
+ var we;
87
+ function Er() {
88
+ return we || (we = 1, process.env.NODE_ENV !== "production" && (function() {
89
+ var c = Pe, v = Symbol.for("react.element"), E = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, Se = "@@iterator";
51
90
  function je(e) {
52
91
  if (e === null || typeof e != "object")
53
92
  return null;
54
- var r = Z && e[Z] || e[Se];
93
+ var r = Q && e[Q] || e[Se];
55
94
  return typeof r == "function" ? r : null;
56
95
  }
57
- var j = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
- function f(e) {
96
+ var j = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
97
+ function y(e) {
59
98
  {
60
99
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
61
100
  t[n - 1] = arguments[n];
@@ -64,48 +103,48 @@ function yr() {
64
103
  }
65
104
  function ke(e, r, t) {
66
105
  {
67
- var n = j.ReactDebugCurrentFrame, o = n.getStackAddendum();
68
- o !== "" && (r += "%s", t = t.concat([o]));
106
+ var n = j.ReactDebugCurrentFrame, u = n.getStackAddendum();
107
+ u !== "" && (r += "%s", t = t.concat([u]));
69
108
  var s = t.map(function(i) {
70
109
  return String(i);
71
110
  });
72
111
  s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
73
112
  }
74
113
  }
75
- var Ae = !1, De = !1, Fe = !1, Ie = !1, $e = !1, Q;
76
- Q = Symbol.for("react.module.reference");
114
+ var Ae = !1, Fe = !1, De = !1, Ie = !1, $e = !1, Z;
115
+ Z = Symbol.for("react.module.reference");
77
116
  function We(e) {
78
- return !!(typeof e == "string" || typeof e == "function" || e === R || e === S || $e || e === O || e === _ || e === h || Ie || e === W || Ae || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === g || e.$$typeof === m || e.$$typeof === p || e.$$typeof === u || // This needs to include all possible module reference object
117
+ return !!(typeof e == "string" || typeof e == "function" || e === R || e === w || $e || e === T || e === _ || e === h || Ie || e === Y || Ae || Fe || De || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === C || e.$$typeof === d || e.$$typeof === p || e.$$typeof === o || // This needs to include all possible module reference object
79
118
  // types supported by any Flight configuration anywhere since
80
119
  // we don't know which Flight build this will end up being used
81
120
  // with.
82
- e.$$typeof === Q || e.getModuleId !== void 0));
121
+ e.$$typeof === Z || e.getModuleId !== void 0));
83
122
  }
84
123
  function Ye(e, r, t) {
85
124
  var n = e.displayName;
86
125
  if (n)
87
126
  return n;
88
- var o = r.displayName || r.name || "";
89
- return o !== "" ? t + "(" + o + ")" : t;
127
+ var u = r.displayName || r.name || "";
128
+ return u !== "" ? t + "(" + u + ")" : t;
90
129
  }
91
130
  function ee(e) {
92
131
  return e.displayName || "Context";
93
132
  }
94
- function T(e) {
133
+ function O(e) {
95
134
  if (e == null)
96
135
  return null;
97
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
136
+ if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
98
137
  return e.displayName || e.name || null;
99
138
  if (typeof e == "string")
100
139
  return e;
101
140
  switch (e) {
102
141
  case R:
103
142
  return "Fragment";
104
- case C:
143
+ case E:
105
144
  return "Portal";
106
- case S:
145
+ case w:
107
146
  return "Profiler";
108
- case O:
147
+ case T:
109
148
  return "StrictMode";
110
149
  case _:
111
150
  return "Suspense";
@@ -117,18 +156,18 @@ function yr() {
117
156
  case p:
118
157
  var r = e;
119
158
  return ee(r) + ".Consumer";
120
- case m:
159
+ case d:
121
160
  var t = e;
122
161
  return ee(t._context) + ".Provider";
123
- case u:
162
+ case o:
124
163
  return Ye(e, e.render, "ForwardRef");
125
- case g:
164
+ case C:
126
165
  var n = e.displayName || null;
127
- return n !== null ? n : T(e.type) || "Memo";
128
- case w: {
129
- var o = e, s = o._payload, i = o._init;
166
+ return n !== null ? n : O(e.type) || "Memo";
167
+ case P: {
168
+ var u = e, s = u._payload, i = u._init;
130
169
  try {
131
- return T(i(s));
170
+ return O(i(s));
132
171
  } catch {
133
172
  return null;
134
173
  }
@@ -136,13 +175,13 @@ function yr() {
136
175
  }
137
176
  return null;
138
177
  }
139
- var x = Object.assign, D = 0, re, te, ne, ae, ie, oe, ue;
178
+ var x = Object.assign, F = 0, re, te, ne, ae, ie, oe, ue;
140
179
  function se() {
141
180
  }
142
181
  se.__reactDisabledLog = !0;
143
182
  function Le() {
144
183
  {
145
- if (D === 0) {
184
+ if (F === 0) {
146
185
  re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
147
186
  var e = {
148
187
  configurable: !0,
@@ -160,12 +199,12 @@ function yr() {
160
199
  groupEnd: e
161
200
  });
162
201
  }
163
- D++;
202
+ F++;
164
203
  }
165
204
  }
166
- function Ve() {
205
+ function Me() {
167
206
  {
168
- if (D--, D === 0) {
207
+ if (F--, F === 0) {
169
208
  var e = {
170
209
  configurable: !0,
171
210
  enumerable: !0,
@@ -195,39 +234,39 @@ function yr() {
195
234
  })
196
235
  });
197
236
  }
198
- D < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
237
+ F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
238
  }
200
239
  }
201
- var N = j.ReactCurrentDispatcher, q;
202
- function Y(e, r, t) {
240
+ var N = j.ReactCurrentDispatcher, J;
241
+ function L(e, r, t) {
203
242
  {
204
- if (q === void 0)
243
+ if (J === void 0)
205
244
  try {
206
245
  throw Error();
207
- } catch (o) {
208
- var n = o.stack.trim().match(/\n( *(at )?)/);
209
- q = n && n[1] || "";
246
+ } catch (u) {
247
+ var n = u.stack.trim().match(/\n( *(at )?)/);
248
+ J = n && n[1] || "";
210
249
  }
211
250
  return `
212
- ` + q + e;
251
+ ` + J + e;
213
252
  }
214
253
  }
215
- var J = !1, L;
254
+ var B = !1, M;
216
255
  {
217
- var Me = typeof WeakMap == "function" ? WeakMap : Map;
218
- L = new Me();
256
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
257
+ M = new Ue();
219
258
  }
220
- function le(e, r) {
221
- if (!e || J)
259
+ function ce(e, r) {
260
+ if (!e || B)
222
261
  return "";
223
262
  {
224
- var t = L.get(e);
263
+ var t = M.get(e);
225
264
  if (t !== void 0)
226
265
  return t;
227
266
  }
228
267
  var n;
229
- J = !0;
230
- var o = Error.prepareStackTrace;
268
+ B = !0;
269
+ var u = Error.prepareStackTrace;
231
270
  Error.prepareStackTrace = void 0;
232
271
  var s;
233
272
  s = N.current, N.current = null, Le();
@@ -243,116 +282,116 @@ function yr() {
243
282
  }), typeof Reflect == "object" && Reflect.construct) {
244
283
  try {
245
284
  Reflect.construct(i, []);
246
- } catch (v) {
247
- n = v;
285
+ } catch (m) {
286
+ n = m;
248
287
  }
249
288
  Reflect.construct(e, [], i);
250
289
  } else {
251
290
  try {
252
291
  i.call();
253
- } catch (v) {
254
- n = v;
292
+ } catch (m) {
293
+ n = m;
255
294
  }
256
295
  e.call(i.prototype);
257
296
  }
258
297
  } else {
259
298
  try {
260
299
  throw Error();
261
- } catch (v) {
262
- n = v;
300
+ } catch (m) {
301
+ n = m;
263
302
  }
264
303
  e();
265
304
  }
266
- } catch (v) {
267
- if (v && n && typeof v.stack == "string") {
268
- for (var a = v.stack.split(`
269
- `), d = n.stack.split(`
270
- `), l = a.length - 1, c = d.length - 1; l >= 1 && c >= 0 && a[l] !== d[c]; )
271
- c--;
272
- for (; l >= 1 && c >= 0; l--, c--)
273
- if (a[l] !== d[c]) {
274
- if (l !== 1 || c !== 1)
305
+ } catch (m) {
306
+ if (m && n && typeof m.stack == "string") {
307
+ for (var a = m.stack.split(`
308
+ `), g = n.stack.split(`
309
+ `), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; )
310
+ f--;
311
+ for (; l >= 1 && f >= 0; l--, f--)
312
+ if (a[l] !== g[f]) {
313
+ if (l !== 1 || f !== 1)
275
314
  do
276
- if (l--, c--, c < 0 || a[l] !== d[c]) {
277
- var y = `
315
+ if (l--, f--, f < 0 || a[l] !== g[f]) {
316
+ var b = `
278
317
  ` + a[l].replace(" at new ", " at ");
279
- return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, y), y;
318
+ return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, b), b;
280
319
  }
281
- while (l >= 1 && c >= 0);
320
+ while (l >= 1 && f >= 0);
282
321
  break;
283
322
  }
284
323
  }
285
324
  } finally {
286
- J = !1, N.current = s, Ve(), Error.prepareStackTrace = o;
325
+ B = !1, N.current = s, Me(), Error.prepareStackTrace = u;
287
326
  }
288
- var A = e ? e.displayName || e.name : "", P = A ? Y(A) : "";
289
- return typeof e == "function" && L.set(e, P), P;
327
+ var A = e ? e.displayName || e.name : "", S = A ? L(A) : "";
328
+ return typeof e == "function" && M.set(e, S), S;
290
329
  }
291
- function Ue(e, r, t) {
292
- return le(e, !1);
330
+ function Ve(e, r, t) {
331
+ return ce(e, !1);
293
332
  }
294
- function Ne(e) {
333
+ function qe(e) {
295
334
  var r = e.prototype;
296
335
  return !!(r && r.isReactComponent);
297
336
  }
298
- function V(e, r, t) {
337
+ function U(e, r, t) {
299
338
  if (e == null)
300
339
  return "";
301
340
  if (typeof e == "function")
302
- return le(e, Ne(e));
341
+ return ce(e, qe(e));
303
342
  if (typeof e == "string")
304
- return Y(e);
343
+ return L(e);
305
344
  switch (e) {
306
345
  case _:
307
- return Y("Suspense");
346
+ return L("Suspense");
308
347
  case h:
309
- return Y("SuspenseList");
348
+ return L("SuspenseList");
310
349
  }
311
350
  if (typeof e == "object")
312
351
  switch (e.$$typeof) {
313
- case u:
314
- return Ue(e.render);
315
- case g:
316
- return V(e.type, r, t);
317
- case w: {
318
- var n = e, o = n._payload, s = n._init;
352
+ case o:
353
+ return Ve(e.render);
354
+ case C:
355
+ return U(e.type, r, t);
356
+ case P: {
357
+ var n = e, u = n._payload, s = n._init;
319
358
  try {
320
- return V(s(o), r, t);
359
+ return U(s(u), r, t);
321
360
  } catch {
322
361
  }
323
362
  }
324
363
  }
325
364
  return "";
326
365
  }
327
- var F = Object.prototype.hasOwnProperty, ce = {}, fe = j.ReactDebugCurrentFrame;
328
- function M(e) {
366
+ var D = Object.prototype.hasOwnProperty, le = {}, fe = j.ReactDebugCurrentFrame;
367
+ function V(e) {
329
368
  if (e) {
330
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
369
+ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
331
370
  fe.setExtraStackFrame(t);
332
371
  } else
333
372
  fe.setExtraStackFrame(null);
334
373
  }
335
- function qe(e, r, t, n, o) {
374
+ function Ne(e, r, t, n, u) {
336
375
  {
337
- var s = Function.call.bind(F);
376
+ var s = Function.call.bind(D);
338
377
  for (var i in e)
339
378
  if (s(e, i)) {
340
379
  var a = void 0;
341
380
  try {
342
381
  if (typeof e[i] != "function") {
343
- var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
- throw d.name = "Invariant Violation", d;
382
+ var g = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
383
+ throw g.name = "Invariant Violation", g;
345
384
  }
346
385
  a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
386
  } catch (l) {
348
387
  a = l;
349
388
  }
350
- a && !(a instanceof Error) && (M(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), M(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, M(o), f("Failed %s type: %s", t, a.message), M(null));
389
+ a && !(a instanceof Error) && (V(u), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), V(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, V(u), y("Failed %s type: %s", t, a.message), V(null));
351
390
  }
352
391
  }
353
392
  }
354
393
  var Je = Array.isArray;
355
- function B(e) {
394
+ function G(e) {
356
395
  return Je(e);
357
396
  }
358
397
  function Be(e) {
@@ -361,7 +400,7 @@ function yr() {
361
400
  return t;
362
401
  }
363
402
  }
364
- function Ke(e) {
403
+ function Ge(e) {
365
404
  try {
366
405
  return de(e), !1;
367
406
  } catch {
@@ -372,17 +411,17 @@ function yr() {
372
411
  return "" + e;
373
412
  }
374
413
  function ve(e) {
375
- if (Ke(e))
376
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
414
+ if (Ge(e))
415
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), de(e);
377
416
  }
378
- var pe = j.ReactCurrentOwner, ze = {
417
+ var pe = j.ReactCurrentOwner, Ke = {
379
418
  key: !0,
380
419
  ref: !0,
381
420
  __self: !0,
382
421
  __source: !0
383
422
  }, he, ye;
384
- function Ge(e) {
385
- if (F.call(e, "ref")) {
423
+ function ze(e) {
424
+ if (D.call(e, "ref")) {
386
425
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
387
426
  if (r && r.isReactWarning)
388
427
  return !1;
@@ -390,7 +429,7 @@ function yr() {
390
429
  return e.ref !== void 0;
391
430
  }
392
431
  function Xe(e) {
393
- if (F.call(e, "key")) {
432
+ if (D.call(e, "key")) {
394
433
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
395
434
  if (r && r.isReactWarning)
396
435
  return !1;
@@ -400,10 +439,10 @@ function yr() {
400
439
  function He(e, r) {
401
440
  typeof e.ref == "string" && pe.current;
402
441
  }
403
- function Ze(e, r) {
442
+ function Qe(e, r) {
404
443
  {
405
444
  var t = function() {
406
- he || (he = !0, f("%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://reactjs.org/link/special-props)", r));
445
+ he || (he = !0, y("%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://reactjs.org/link/special-props)", r));
407
446
  };
408
447
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
409
448
  get: t,
@@ -411,10 +450,10 @@ function yr() {
411
450
  });
412
451
  }
413
452
  }
414
- function Qe(e, r) {
453
+ function Ze(e, r) {
415
454
  {
416
455
  var t = function() {
417
- ye || (ye = !0, f("%s: `ref` 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://reactjs.org/link/special-props)", r));
456
+ ye || (ye = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", r));
418
457
  };
419
458
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
459
  get: t,
@@ -422,10 +461,10 @@ function yr() {
422
461
  });
423
462
  }
424
463
  }
425
- var er = function(e, r, t, n, o, s, i) {
464
+ var er = function(e, r, t, n, u, s, i) {
426
465
  var a = {
427
466
  // This tag allows us to uniquely identify this as a React Element
428
- $$typeof: E,
467
+ $$typeof: v,
429
468
  // Built-in properties that belong on the element
430
469
  type: e,
431
470
  key: r,
@@ -448,44 +487,44 @@ function yr() {
448
487
  configurable: !1,
449
488
  enumerable: !1,
450
489
  writable: !1,
451
- value: o
490
+ value: u
452
491
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
453
492
  };
454
- function rr(e, r, t, n, o) {
493
+ function rr(e, r, t, n, u) {
455
494
  {
456
- var s, i = {}, a = null, d = null;
457
- t !== void 0 && (ve(t), a = "" + t), Xe(r) && (ve(r.key), a = "" + r.key), Ge(r) && (d = r.ref, He(r, o));
495
+ var s, i = {}, a = null, g = null;
496
+ t !== void 0 && (ve(t), a = "" + t), Xe(r) && (ve(r.key), a = "" + r.key), ze(r) && (g = r.ref, He(r, u));
458
497
  for (s in r)
459
- F.call(r, s) && !ze.hasOwnProperty(s) && (i[s] = r[s]);
498
+ D.call(r, s) && !Ke.hasOwnProperty(s) && (i[s] = r[s]);
460
499
  if (e && e.defaultProps) {
461
500
  var l = e.defaultProps;
462
501
  for (s in l)
463
502
  i[s] === void 0 && (i[s] = l[s]);
464
503
  }
465
- if (a || d) {
466
- var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- a && Ze(i, c), d && Qe(i, c);
504
+ if (a || g) {
505
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
506
+ a && Qe(i, f), g && Ze(i, f);
468
507
  }
469
- return er(e, a, d, o, n, pe.current, i);
508
+ return er(e, a, g, u, n, pe.current, i);
470
509
  }
471
510
  }
472
- var K = j.ReactCurrentOwner, be = j.ReactDebugCurrentFrame;
511
+ var K = j.ReactCurrentOwner, ge = j.ReactDebugCurrentFrame;
473
512
  function k(e) {
474
513
  if (e) {
475
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
476
- be.setExtraStackFrame(t);
514
+ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
515
+ ge.setExtraStackFrame(t);
477
516
  } else
478
- be.setExtraStackFrame(null);
517
+ ge.setExtraStackFrame(null);
479
518
  }
480
519
  var z;
481
520
  z = !1;
482
- function G(e) {
483
- return typeof e == "object" && e !== null && e.$$typeof === E;
521
+ function X(e) {
522
+ return typeof e == "object" && e !== null && e.$$typeof === v;
484
523
  }
485
- function Ee() {
524
+ function me() {
486
525
  {
487
526
  if (K.current) {
488
- var e = T(K.current.type);
527
+ var e = O(K.current.type);
489
528
  if (e)
490
529
  return `
491
530
 
@@ -497,10 +536,10 @@ Check the render method of \`` + e + "`.";
497
536
  function tr(e) {
498
537
  return "";
499
538
  }
500
- var Re = {};
539
+ var be = {};
501
540
  function nr(e) {
502
541
  {
503
- var r = Ee();
542
+ var r = me();
504
543
  if (!r) {
505
544
  var t = typeof e == "string" ? e : e.displayName || e.name;
506
545
  t && (r = `
@@ -510,35 +549,35 @@ Check the top-level render call using <` + t + ">.");
510
549
  return r;
511
550
  }
512
551
  }
513
- function _e(e, r) {
552
+ function Ee(e, r) {
514
553
  {
515
554
  if (!e._store || e._store.validated || e.key != null)
516
555
  return;
517
556
  e._store.validated = !0;
518
557
  var t = nr(r);
519
- if (Re[t])
558
+ if (be[t])
520
559
  return;
521
- Re[t] = !0;
560
+ be[t] = !0;
522
561
  var n = "";
523
- e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + T(e._owner.type) + "."), k(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
562
+ e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
524
563
  }
525
564
  }
526
- function ge(e, r) {
565
+ function _e(e, r) {
527
566
  {
528
567
  if (typeof e != "object")
529
568
  return;
530
- if (B(e))
569
+ if (G(e))
531
570
  for (var t = 0; t < e.length; t++) {
532
571
  var n = e[t];
533
- G(n) && _e(n, r);
572
+ X(n) && Ee(n, r);
534
573
  }
535
- else if (G(e))
574
+ else if (X(e))
536
575
  e._store && (e._store.validated = !0);
537
576
  else if (e) {
538
- var o = je(e);
539
- if (typeof o == "function" && o !== e.entries)
540
- for (var s = o.call(e), i; !(i = s.next()).done; )
541
- G(i.value) && _e(i.value, r);
577
+ var u = je(e);
578
+ if (typeof u == "function" && u !== e.entries)
579
+ for (var s = u.call(e), i; !(i = s.next()).done; )
580
+ X(i.value) && Ee(i.value, r);
542
581
  }
543
582
  }
544
583
  }
@@ -550,21 +589,21 @@ Check the top-level render call using <` + t + ">.");
550
589
  var t;
551
590
  if (typeof r == "function")
552
591
  t = r.propTypes;
553
- else if (typeof r == "object" && (r.$$typeof === u || // Note: Memo only checks outer props here.
592
+ else if (typeof r == "object" && (r.$$typeof === o || // Note: Memo only checks outer props here.
554
593
  // Inner props are checked in the reconciler.
555
- r.$$typeof === g))
594
+ r.$$typeof === C))
556
595
  t = r.propTypes;
557
596
  else
558
597
  return;
559
598
  if (t) {
560
- var n = T(r);
561
- qe(t, e.props, "prop", n, e);
599
+ var n = O(r);
600
+ Ne(t, e.props, "prop", n, e);
562
601
  } else if (r.PropTypes !== void 0 && !z) {
563
602
  z = !0;
564
- var o = T(r);
565
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
603
+ var u = O(r);
604
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", u || "Unknown");
566
605
  }
567
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
606
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
568
607
  }
569
608
  }
570
609
  function ir(e) {
@@ -572,56 +611,56 @@ Check the top-level render call using <` + t + ">.");
572
611
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
573
612
  var n = r[t];
574
613
  if (n !== "children" && n !== "key") {
575
- k(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
614
+ k(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
576
615
  break;
577
616
  }
578
617
  }
579
- e.ref !== null && (k(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
618
+ e.ref !== null && (k(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
580
619
  }
581
620
  }
582
- var me = {};
583
- function Te(e, r, t, n, o, s) {
621
+ var Re = {};
622
+ function Te(e, r, t, n, u, s) {
584
623
  {
585
624
  var i = We(e);
586
625
  if (!i) {
587
626
  var a = "";
588
627
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
589
- var d = tr();
590
- d ? a += d : a += Ee();
628
+ var g = tr();
629
+ g ? a += g : a += me();
591
630
  var l;
592
- e === null ? l = "null" : B(e) ? l = "array" : e !== void 0 && e.$$typeof === E ? (l = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
631
+ e === null ? l = "null" : G(e) ? l = "array" : e !== void 0 && e.$$typeof === v ? (l = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
593
632
  }
594
- var c = rr(e, r, t, o, s);
595
- if (c == null)
596
- return c;
633
+ var f = rr(e, r, t, u, s);
634
+ if (f == null)
635
+ return f;
597
636
  if (i) {
598
- var y = r.children;
599
- if (y !== void 0)
637
+ var b = r.children;
638
+ if (b !== void 0)
600
639
  if (n)
601
- if (B(y)) {
602
- for (var A = 0; A < y.length; A++)
603
- ge(y[A], e);
604
- Object.freeze && Object.freeze(y);
640
+ if (G(b)) {
641
+ for (var A = 0; A < b.length; A++)
642
+ _e(b[A], e);
643
+ Object.freeze && Object.freeze(b);
605
644
  } else
606
- f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
645
+ y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
607
646
  else
608
- ge(y, e);
647
+ _e(b, e);
609
648
  }
610
- if (F.call(r, "key")) {
611
- var P = T(e), v = Object.keys(r).filter(function(fr) {
649
+ if (D.call(r, "key")) {
650
+ var S = O(e), m = Object.keys(r).filter(function(fr) {
612
651
  return fr !== "key";
613
- }), X = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
614
- if (!me[P + X]) {
615
- var cr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
616
- f(`A props object containing a "key" prop is being spread into JSX:
652
+ }), H = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
653
+ if (!Re[S + H]) {
654
+ var lr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
655
+ y(`A props object containing a "key" prop is being spread into JSX:
617
656
  let props = %s;
618
657
  <%s {...props} />
619
658
  React keys must be passed directly to JSX without using spread:
620
659
  let props = %s;
621
- <%s key={someKey} {...props} />`, X, P, cr, P), me[P + X] = !0;
660
+ <%s key={someKey} {...props} />`, H, S, lr, S), Re[S + H] = !0;
622
661
  }
623
662
  }
624
- return e === R ? ir(c) : ar(c), c;
663
+ return e === R ? ir(f) : ar(f), f;
625
664
  }
626
665
  }
627
666
  function or(e, r, t) {
@@ -630,52 +669,49 @@ React keys must be passed directly to JSX without using spread:
630
669
  function ur(e, r, t) {
631
670
  return Te(e, r, t, !1);
632
671
  }
633
- var sr = ur, lr = or;
634
- $.Fragment = R, $.jsx = sr, $.jsxs = lr;
635
- })()), $;
672
+ var sr = ur, cr = or;
673
+ W.Fragment = R, W.jsx = sr, W.jsxs = cr;
674
+ })()), W;
636
675
  }
637
- var we;
638
- function br() {
639
- return we || (we = 1, process.env.NODE_ENV === "production" ? U.exports = hr() : U.exports = yr()), U.exports;
676
+ var Oe;
677
+ function _r() {
678
+ return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? q.exports = br() : q.exports = Er()), q.exports;
640
679
  }
641
- var Er = br();
642
- function Rr({
643
- baseURL: b,
644
- getToken: E,
645
- timeoutMs: C = 15e3,
680
+ var Rr = _r();
681
+ function Tr({
682
+ baseURL: c,
683
+ getToken: v,
684
+ timeoutMs: E = 15e3,
646
685
  axiosInstance: R,
647
- currency: O,
648
- lng: S,
649
- onError: m
686
+ currency: T,
687
+ lng: w,
688
+ onError: d
650
689
  } = {}) {
651
- const p = R ?? pr.create({
652
- baseURL: b,
653
- timeout: C,
690
+ const p = R ?? yr.create({
691
+ baseURL: c,
692
+ timeout: E,
654
693
  headers: { "Content-Type": "application/json" }
655
694
  });
656
- return p.interceptors.request.use(async (u) => {
657
- if (E) {
658
- const _ = await E();
659
- _ && (u.headers = u.headers || {}, u.headers.Authorization = `Bearer ${_}`);
660
- }
661
- return u;
662
- }), p.interceptors.request.use((u) => {
663
- u.headers.Currency = O, u.headers["currency-code"] = O, u.headers.lang = S;
695
+ return p.interceptors.request.use(async (o) => {
696
+ if (v) {
697
+ const _ = await v();
698
+ _ && (o.headers = o.headers || {}, o.headers.Authorization = `Bearer ${_}`);
699
+ }
700
+ return o;
701
+ }), p.interceptors.request.use((o) => {
702
+ o.headers.Currency = T, o.headers["currency-code"] = T, o.headers.lang = w;
664
703
  }), p.interceptors.response.use(
665
- (u) => u,
666
- (u) => m ? m(u, { instance: p }) : Promise.reject(u)
704
+ (o) => o,
705
+ (o) => d ? d(o, { instance: p }) : Promise.reject(o)
667
706
  ), p;
668
707
  }
669
- function Or({ children: b, ...E }) {
670
- const C = {
671
- recentlyCreatedOwnerStacks: []
672
- // 其他 API 相關狀態...
673
- }, R = vr(() => Rr(E), [E]);
674
- return /* @__PURE__ */ Er.jsx(H.Provider, { value: { client: R, ...C }, children: b });
708
+ function xr({ children: c, ...v }) {
709
+ const E = hr(() => Tr(v), [v]);
710
+ return /* @__PURE__ */ Rr.jsx(xe.Provider, { value: { client: E }, children: c });
675
711
  }
676
712
  export {
677
- H as ApiCtx,
678
- Or as ApiProvider,
679
- Tr as useApiContext,
680
- Cr as useApiContextSafe
713
+ xe as ApiCtx,
714
+ xr as ApiProvider,
715
+ gr as useApiContext,
716
+ Pr as usePeriodicDataUpdater
681
717
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@obb871001/api-integration-sdk",
3
3
  "private": false,
4
- "version": "1.0.15",
4
+ "version": "1.0.18",
5
5
  "description": "集成API",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",