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