@obb871001/api-integration-sdk 1.0.16 → 1.0.19

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